From e9cd8ff3114f6c704840ed6748e8d18964872d25 Mon Sep 17 00:00:00 2001 From: Jeffrey McGovern Date: Thu, 17 Oct 2024 22:20:45 -0700 Subject: [PATCH] update mermaid to 11.3.0 from jsdeliver - Downloaded from https://cdn.jsdelivr.net/npm/mermaid@11.3.0/dist/mermaid.min.js - Stole the idea from [a different fork](https://github.com/iamcco/markdown-preview.nvim/pull/652) --- app/_static/mermaid.min.js | 1987 +++++++++++++++++++++++------------- 1 file changed, 1291 insertions(+), 696 deletions(-) diff --git a/app/_static/mermaid.min.js b/app/_static/mermaid.min.js index be7181c..18a0afc 100644 --- a/app/_static/mermaid.min.js +++ b/app/_static/mermaid.min.js @@ -1,43 +1,293 @@ -(function(fA,b0){typeof exports=="object"&&typeof module<"u"?module.exports=b0():typeof define=="function"&&define.amd?define(b0):(fA=typeof globalThis<"u"?globalThis:fA||self,fA.mermaid=b0())})(this,function(){"use strict";function fA(i){for(var a=[],f=1;f=X?_t:""+Array(X+1-ft.length).join(Rt)+_t},Tt={s:pt,z:function(_t){var X=-_t.utcOffset(),Rt=Math.abs(X),ft=Math.floor(Rt/60),de=Rt%60;return(X<=0?"+":"-")+pt(ft,2,"0")+":"+pt(de,2,"0")},m:function _t(X,Rt){if(X.date()1)return _t(ae[0])}else{var Wt=X.name;yt[Wt]=X,de=Wt}return!ft&&de&&(kt=de),de||!ft&&kt},rt=function(_t,X){if(ht(_t))return _t.clone();var Rt=typeof X=="object"?X:{};return Rt.date=_t,Rt.args=arguments,new gt(Rt)},wt=Tt;wt.l=mt,wt.i=ht,wt.w=function(_t,X){return rt(_t,{locale:X.$L,utc:X.$u,x:X.$x,$offset:X.$offset})};var gt=function(){function _t(Rt){this.$L=mt(Rt.locale,null,!0),this.parse(Rt)}var X=_t.prototype;return X.parse=function(Rt){this.$d=function(ft){var de=ft.date,J=ft.utc;if(de===null)return new Date(NaN);if(wt.u(de))return new Date;if(de instanceof Date)return new Date(de);if(typeof de=="string"&&!/Z$/i.test(de)){var ae=de.match(it);if(ae){var Wt=ae[2]-1||0,It=(ae[7]||"0").substring(0,3);return J?new Date(Date.UTC(ae[1],Wt,ae[3]||1,ae[4]||0,ae[5]||0,ae[6]||0,It)):new Date(ae[1],Wt,ae[3]||1,ae[4]||0,ae[5]||0,ae[6]||0,It)}}return new Date(de)}(Rt),this.$x=Rt.x||{},this.init()},X.init=function(){var Rt=this.$d;this.$y=Rt.getFullYear(),this.$M=Rt.getMonth(),this.$D=Rt.getDate(),this.$W=Rt.getDay(),this.$H=Rt.getHours(),this.$m=Rt.getMinutes(),this.$s=Rt.getSeconds(),this.$ms=Rt.getMilliseconds()},X.$utils=function(){return wt},X.isValid=function(){return this.$d.toString()!==Y},X.isSame=function(Rt,ft){var de=rt(Rt);return this.startOf(ft)<=de&&de<=this.endOf(ft)},X.isAfter=function(Rt,ft){return rt(Rt){},debug:(...i)=>{},info:(...i)=>{},warn:(...i)=>{},error:(...i)=>{},fatal:(...i)=>{}},Aft=function(i="fatal"){let a=d5.fatal;typeof i=="string"?(i=i.toLowerCase(),i in d5&&(a=d5[i])):typeof i=="number"&&(a=i),zt.trace=()=>{},zt.debug=()=>{},zt.info=()=>{},zt.warn=()=>{},zt.error=()=>{},zt.fatal=()=>{},a<=d5.fatal&&(zt.fatal=console.error?console.error.bind(console,Gb("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",Gb("FATAL"))),a<=d5.error&&(zt.error=console.error?console.error.bind(console,Gb("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",Gb("ERROR"))),a<=d5.warn&&(zt.warn=console.warn?console.warn.bind(console,Gb("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",Gb("WARN"))),a<=d5.info&&(zt.info=console.info?console.info.bind(console,Gb("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",Gb("INFO"))),a<=d5.debug&&(zt.debug=console.debug?console.debug.bind(console,Gb("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",Gb("DEBUG"))),a<=d5.trace&&(zt.trace=console.debug?console.debug.bind(console,Gb("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",Gb("TRACE")))},Gb=i=>`%c${ip().format("ss.SSS")} : ${i} : `;var Lft={};Object.defineProperty(Lft,"__esModule",{value:!0});var Xx=Lft.sanitizeUrl=void 0,t5e=/^([^\w]*)(javascript|data|vbscript)/im,e5e=/&#(\w+)(^\w|;)?/g,n5e=/&(newline|tab);/gi,r5e=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,i5e=/^.+(:|:)/gim,s5e=[".","/"];function a5e(i){return s5e.indexOf(i[0])>-1}function o5e(i){return i.replace(e5e,function(a,f){return String.fromCharCode(f)})}function c5e(i){var a=o5e(i||"").replace(n5e,"").replace(r5e,"").trim();if(!a)return"about:blank";if(a5e(a))return a;var f=a.match(i5e);if(!f)return a;var p=f[0];return t5e.test(p)?"about:blank":a}Xx=Lft.sanitizeUrl=c5e;function rU(i,a){return i==null||a==null?NaN:ia?1:i>=a?0:NaN}function u5e(i,a){return i==null||a==null?NaN:ai?1:a>=i?0:NaN}function Mft(i){let a,f,p;i.length!==2?(a=rU,f=(E,C)=>rU(i(E),C),p=(E,C)=>i(E)-C):(a=i===rU||i===u5e?i:l5e,f=i,p=i);function v(E,C,D=0,P=E.length){if(D>>1;f(E[B],C)<0?D=B+1:P=B}while(D>>1;f(E[B],C)<=0?D=B+1:P=B}while(DD&&p(E[B-1],C)>-p(E[B],C)?B-1:B}return{left:v,center:b,right:m}}function l5e(){return 0}function h5e(i){return i===null?NaN:+i}const f5e=Mft(rU).right;Mft(h5e).center;const d5e=f5e;class fLt extends Map{constructor(a,f=b5e){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:f}}),a!=null)for(const[p,v]of a)this.set(p,v)}get(a){return super.get(dLt(this,a))}has(a){return super.has(dLt(this,a))}set(a,f){return super.set(g5e(this,a),f)}delete(a){return super.delete(p5e(this,a))}}function dLt({_intern:i,_key:a},f){const p=a(f);return i.has(p)?i.get(p):f}function g5e({_intern:i,_key:a},f){const p=a(f);return i.has(p)?i.get(p):(i.set(p,f),f)}function p5e({_intern:i,_key:a},f){const p=a(f);return i.has(p)&&(f=i.get(p),i.delete(p)),f}function b5e(i){return i!==null&&typeof i=="object"?i.valueOf():i}var Dft=Math.sqrt(50),Ift=Math.sqrt(10),Oft=Math.sqrt(2);function v5e(i,a,f){var p,v=-1,m,b,E;if(a=+a,i=+i,f=+f,i===a&&f>0)return[i];if((p=a0){let C=Math.round(i/E),D=Math.round(a/E);for(C*Ea&&--D,b=new Array(m=D-C+1);++va&&--D,b=new Array(m=D-C+1);++v=0?(m>=Dft?10:m>=Ift?5:m>=Oft?2:1)*Math.pow(10,v):-Math.pow(10,-v)/(m>=Dft?10:m>=Ift?5:m>=Oft?2:1)}function Nft(i,a,f){var p=Math.abs(a-i)/Math.max(0,f),v=Math.pow(10,Math.floor(Math.log(p)/Math.LN10)),m=p/v;return m>=Dft?v*=10:m>=Ift?v*=5:m>=Oft&&(v*=2),a=p)&&(f=p);else{let p=-1;for(let v of i)(v=a(v,++p,i))!=null&&(f=v)&&(f=v)}return f}function m5e(i,a){let f;if(a===void 0)for(const p of i)p!=null&&(f>p||f===void 0&&p>=p)&&(f=p);else{let p=-1;for(let v of i)(v=a(v,++p,i))!=null&&(f>v||f===void 0&&v>=v)&&(f=v)}return f}function y5e(i){return i}var iU=1,Pft=2,Fft=3,sU=4,pLt=1e-6;function x5e(i){return"translate("+i+",0)"}function k5e(i){return"translate(0,"+i+")"}function E5e(i){return a=>+i(a)}function T5e(i,a){return a=Math.max(0,i.bandwidth()-a*2)/2,i.round()&&(a=Math.round(a)),f=>+i(f)+a}function _5e(){return!this.__axis}function bLt(i,a){var f=[],p=null,v=null,m=6,b=6,E=3,C=typeof window<"u"&&window.devicePixelRatio>1?0:.5,D=i===iU||i===sU?-1:1,P=i===sU||i===Pft?"x":"y",B=i===iU||i===Fft?x5e:k5e;function j(R){var H=p??(a.ticks?a.ticks.apply(a,f):a.domain()),Y=v??(a.tickFormat?a.tickFormat.apply(a,f):y5e),it=Math.max(m,0)+E,nt=a.range(),st=+nt[0]+C,pt=+nt[nt.length-1]+C,Tt=(a.bandwidth?T5e:E5e)(a.copy(),C),kt=R.selection?R.selection():R,yt=kt.selectAll(".domain").data([null]),ht=kt.selectAll(".tick").data(H,a).order(),mt=ht.exit(),rt=ht.enter().append("g").attr("class","tick"),wt=ht.select("line"),gt=ht.select("text");yt=yt.merge(yt.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),ht=ht.merge(rt),wt=wt.merge(rt.append("line").attr("stroke","currentColor").attr(P+"2",D*m)),gt=gt.merge(rt.append("text").attr("fill","currentColor").attr(P,D*it).attr("dy",i===iU?"0em":i===Fft?"0.71em":"0.32em")),R!==kt&&(yt=yt.transition(R),ht=ht.transition(R),wt=wt.transition(R),gt=gt.transition(R),mt=mt.transition(R).attr("opacity",pLt).attr("transform",function(lt){return isFinite(lt=Tt(lt))?B(lt+C):this.getAttribute("transform")}),rt.attr("opacity",pLt).attr("transform",function(lt){var _t=this.parentNode.__axis;return B((_t&&isFinite(_t=_t(lt))?_t:Tt(lt))+C)})),mt.remove(),yt.attr("d",i===sU||i===Pft?b?"M"+D*b+","+st+"H"+C+"V"+pt+"H"+D*b:"M"+C+","+st+"V"+pt:b?"M"+st+","+D*b+"V"+C+"H"+pt+"V"+D*b:"M"+st+","+C+"H"+pt),ht.attr("opacity",1).attr("transform",function(lt){return B(Tt(lt)+C)}),wt.attr(P+"2",D*m),gt.attr(P,D*it).text(Y),kt.filter(_5e).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",i===Pft?"start":i===sU?"end":"middle"),kt.each(function(){this.__axis=Tt})}return j.scale=function(R){return arguments.length?(a=R,j):a},j.ticks=function(){return f=Array.from(arguments),j},j.tickArguments=function(R){return arguments.length?(f=R==null?[]:Array.from(R),j):f.slice()},j.tickValues=function(R){return arguments.length?(p=R==null?null:Array.from(R),j):p&&p.slice()},j.tickFormat=function(R){return arguments.length?(v=R,j):v},j.tickSize=function(R){return arguments.length?(m=b=+R,j):m},j.tickSizeInner=function(R){return arguments.length?(m=+R,j):m},j.tickSizeOuter=function(R){return arguments.length?(b=+R,j):b},j.tickPadding=function(R){return arguments.length?(E=+R,j):E},j.offset=function(R){return arguments.length?(C=+R,j):C},j}function C5e(i){return bLt(iU,i)}function S5e(i){return bLt(Fft,i)}var A5e={value:()=>{}};function vLt(){for(var i=0,a=arguments.length,f={},p;i=0&&(p=f.slice(v+1),f=f.slice(0,v)),f&&!a.hasOwnProperty(f))throw new Error("unknown type: "+f);return{type:f,name:p}})}aU.prototype=vLt.prototype={constructor:aU,on:function(i,a){var f=this._,p=L5e(i+"",f),v,m=-1,b=p.length;if(arguments.length<2){for(;++m0)for(var f=new Array(v),p=0,v,m;p=0&&(a=i.slice(0,f))!=="xmlns"&&(i=i.slice(f+1)),mLt.hasOwnProperty(a)?{space:mLt[a],local:i}:i}function D5e(i){return function(){var a=this.ownerDocument,f=this.namespaceURI;return f===Bft&&a.documentElement.namespaceURI===Bft?a.createElement(i):a.createElementNS(f,i)}}function I5e(i){return function(){return this.ownerDocument.createElementNS(i.space,i.local)}}function yLt(i){var a=oU(i);return(a.local?I5e:D5e)(a)}function O5e(){}function Rft(i){return i==null?O5e:function(){return this.querySelector(i)}}function N5e(i){typeof i!="function"&&(i=Rft(i));for(var a=this._groups,f=a.length,p=new Array(f),v=0;v=pt&&(pt=st+1);!(kt=it[pt])&&++pt=0;)(b=p[v])&&(m&&b.compareDocumentPosition(m)^4&&m.parentNode.insertBefore(b,m),m=b);return this}function i6e(i){i||(i=s6e);function a(B,j){return B&&j?i(B.__data__,j.__data__):!B-!j}for(var f=this._groups,p=f.length,v=new Array(p),m=0;ma?1:i>=a?0:NaN}function a6e(){var i=arguments[0];return arguments[0]=this,i.apply(null,arguments),this}function o6e(){return Array.from(this)}function c6e(){for(var i=this._groups,a=0,f=i.length;a1?this.each((a==null?m6e:typeof a=="function"?x6e:y6e)(i,a,f??"")):dA(this.node(),i)}function dA(i,a){return i.style.getPropertyValue(a)||CLt(i).getComputedStyle(i,null).getPropertyValue(a)}function E6e(i){return function(){delete this[i]}}function T6e(i,a){return function(){this[i]=a}}function _6e(i,a){return function(){var f=a.apply(this,arguments);f==null?delete this[i]:this[i]=f}}function C6e(i,a){return arguments.length>1?this.each((a==null?E6e:typeof a=="function"?_6e:T6e)(i,a)):this.node()[i]}function SLt(i){return i.trim().split(/^|\s+/)}function jft(i){return i.classList||new ALt(i)}function ALt(i){this._node=i,this._names=SLt(i.getAttribute("class")||"")}ALt.prototype={add:function(i){var a=this._names.indexOf(i);a<0&&(this._names.push(i),this._node.setAttribute("class",this._names.join(" ")))},remove:function(i){var a=this._names.indexOf(i);a>=0&&(this._names.splice(a,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(i){return this._names.indexOf(i)>=0}};function LLt(i,a){for(var f=jft(i),p=-1,v=a.length;++p=0&&(f=a.slice(p+1),a=a.slice(0,p)),{type:a,name:f}})}function txe(i){return function(){var a=this.__on;if(a){for(var f=0,p=-1,v=a.length,m;f>8&15|a>>4&240,a>>4&15|a&240,(a&15)<<4|a&15,1):f===8?hU(a>>24&255,a>>16&255,a>>8&255,(a&255)/255):f===4?hU(a>>12&15|a>>8&240,a>>8&15|a>>4&240,a>>4&15|a&240,((a&15)<<4|a&15)/255):null):(a=uxe.exec(i))?new v0(a[1],a[2],a[3],1):(a=lxe.exec(i))?new v0(a[1]*255/100,a[2]*255/100,a[3]*255/100,1):(a=hxe.exec(i))?hU(a[1],a[2],a[3],a[4]):(a=fxe.exec(i))?hU(a[1]*255/100,a[2]*255/100,a[3]*255/100,a[4]):(a=dxe.exec(i))?jLt(a[1],a[2]/100,a[3]/100,1):(a=gxe.exec(i))?jLt(a[1],a[2]/100,a[3]/100,a[4]):ILt.hasOwnProperty(i)?PLt(ILt[i]):i==="transparent"?new v0(NaN,NaN,NaN,0):null}function PLt(i){return new v0(i>>16&255,i>>8&255,i&255,1)}function hU(i,a,f,p){return p<=0&&(i=a=f=NaN),new v0(i,a,f,p)}function FLt(i){return i instanceof B9||(i=R9(i)),i?(i=i.rgb(),new v0(i.r,i.g,i.b,i.opacity)):new v0}function qft(i,a,f,p){return arguments.length===1?FLt(i):new v0(i,a,f,p??1)}function v0(i,a,f,p){this.r=+i,this.g=+a,this.b=+f,this.opacity=+p}yN(v0,qft,uU(B9,{brighter(i){return i=i==null?lU:Math.pow(lU,i),new v0(this.r*i,this.g*i,this.b*i,this.opacity)},darker(i){return i=i==null?xN:Math.pow(xN,i),new v0(this.r*i,this.g*i,this.b*i,this.opacity)},rgb(){return this},clamp(){return new v0(j9(this.r),j9(this.g),j9(this.b),fU(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:BLt,formatHex:BLt,formatHex8:vxe,formatRgb:RLt,toString:RLt}));function BLt(){return`#${$9(this.r)}${$9(this.g)}${$9(this.b)}`}function vxe(){return`#${$9(this.r)}${$9(this.g)}${$9(this.b)}${$9((isNaN(this.opacity)?1:this.opacity)*255)}`}function RLt(){const i=fU(this.opacity);return`${i===1?"rgb(":"rgba("}${j9(this.r)}, ${j9(this.g)}, ${j9(this.b)}${i===1?")":`, ${i})`}`}function fU(i){return isNaN(i)?1:Math.max(0,Math.min(1,i))}function j9(i){return Math.max(0,Math.min(255,Math.round(i)||0))}function $9(i){return i=j9(i),(i<16?"0":"")+i.toString(16)}function jLt(i,a,f,p){return p<=0?i=a=f=NaN:f<=0||f>=1?i=a=NaN:a<=0&&(i=NaN),new Vw(i,a,f,p)}function $Lt(i){if(i instanceof Vw)return new Vw(i.h,i.s,i.l,i.opacity);if(i instanceof B9||(i=R9(i)),!i)return new Vw;if(i instanceof Vw)return i;i=i.rgb();var a=i.r/255,f=i.g/255,p=i.b/255,v=Math.min(a,f,p),m=Math.max(a,f,p),b=NaN,E=m-v,C=(m+v)/2;return E?(a===m?b=(f-p)/E+(f0&&C<1?0:b,new Vw(b,E,C,i.opacity)}function wxe(i,a,f,p){return arguments.length===1?$Lt(i):new Vw(i,a,f,p??1)}function Vw(i,a,f,p){this.h=+i,this.s=+a,this.l=+f,this.opacity=+p}yN(Vw,wxe,uU(B9,{brighter(i){return i=i==null?lU:Math.pow(lU,i),new Vw(this.h,this.s,this.l*i,this.opacity)},darker(i){return i=i==null?xN:Math.pow(xN,i),new Vw(this.h,this.s,this.l*i,this.opacity)},rgb(){var i=this.h%360+(this.h<0)*360,a=isNaN(i)||isNaN(this.s)?0:this.s,f=this.l,p=f+(f<.5?f:1-f)*a,v=2*f-p;return new v0(Hft(i>=240?i-240:i+120,v,p),Hft(i,v,p),Hft(i<120?i+240:i-120,v,p),this.opacity)},clamp(){return new Vw(zLt(this.h),dU(this.s),dU(this.l),fU(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 i=fU(this.opacity);return`${i===1?"hsl(":"hsla("}${zLt(this.h)}, ${dU(this.s)*100}%, ${dU(this.l)*100}%${i===1?")":`, ${i})`}`}}));function zLt(i){return i=(i||0)%360,i<0?i+360:i}function dU(i){return Math.max(0,Math.min(1,i||0))}function Hft(i,a,f){return(i<60?a+(f-a)*i/60:i<180?f:i<240?a+(f-a)*(240-i)/60:a)*255}const mxe=Math.PI/180,yxe=180/Math.PI,gU=18,qLt=.96422,HLt=1,VLt=.82521,GLt=4/29,pA=6/29,ULt=3*pA*pA,xxe=pA*pA*pA;function WLt(i){if(i instanceof i3)return new i3(i.l,i.a,i.b,i.opacity);if(i instanceof g5)return KLt(i);i instanceof v0||(i=FLt(i));var a=Wft(i.r),f=Wft(i.g),p=Wft(i.b),v=Vft((.2225045*a+.7168786*f+.0606169*p)/HLt),m,b;return a===f&&f===p?m=b=v:(m=Vft((.4360747*a+.3850649*f+.1430804*p)/qLt),b=Vft((.0139322*a+.0971045*f+.7141733*p)/VLt)),new i3(116*v-16,500*(m-v),200*(v-b),i.opacity)}function kxe(i,a,f,p){return arguments.length===1?WLt(i):new i3(i,a,f,p??1)}function i3(i,a,f,p){this.l=+i,this.a=+a,this.b=+f,this.opacity=+p}yN(i3,kxe,uU(B9,{brighter(i){return new i3(this.l+gU*(i??1),this.a,this.b,this.opacity)},darker(i){return new i3(this.l-gU*(i??1),this.a,this.b,this.opacity)},rgb(){var i=(this.l+16)/116,a=isNaN(this.a)?i:i+this.a/500,f=isNaN(this.b)?i:i-this.b/200;return a=qLt*Gft(a),i=HLt*Gft(i),f=VLt*Gft(f),new v0(Uft(3.1338561*a-1.6168667*i-.4906146*f),Uft(-.9787684*a+1.9161415*i+.033454*f),Uft(.0719453*a-.2289914*i+1.4052427*f),this.opacity)}}));function Vft(i){return i>xxe?Math.pow(i,1/3):i/ULt+GLt}function Gft(i){return i>pA?i*i*i:ULt*(i-GLt)}function Uft(i){return 255*(i<=.0031308?12.92*i:1.055*Math.pow(i,1/2.4)-.055)}function Wft(i){return(i/=255)<=.04045?i/12.92:Math.pow((i+.055)/1.055,2.4)}function Exe(i){if(i instanceof g5)return new g5(i.h,i.c,i.l,i.opacity);if(i instanceof i3||(i=WLt(i)),i.a===0&&i.b===0)return new g5(NaN,0()=>i;function YLt(i,a){return function(f){return i+f*a}}function Txe(i,a,f){return i=Math.pow(i,f),a=Math.pow(a,f)-i,f=1/f,function(p){return Math.pow(i+p*a,f)}}function _xe(i,a){var f=a-i;return f?YLt(i,f>180||f<-180?f-360*Math.round(f/360):f):pU(isNaN(i)?a:i)}function Cxe(i){return(i=+i)==1?EN:function(a,f){return f-a?Txe(a,f,i):pU(isNaN(a)?f:a)}}function EN(i,a){var f=a-i;return f?YLt(i,f):pU(isNaN(i)?a:i)}const bU=function i(a){var f=Cxe(a);function p(v,m){var b=f((v=qft(v)).r,(m=qft(m)).r),E=f(v.g,m.g),C=f(v.b,m.b),D=EN(v.opacity,m.opacity);return function(P){return v.r=b(P),v.g=E(P),v.b=C(P),v.opacity=D(P),v+""}}return p.gamma=i,p}(1);function Sxe(i,a){a||(a=[]);var f=i?Math.min(a.length,i.length):0,p=a.slice(),v;return function(m){for(v=0;vf&&(m=a.slice(f,m),E[b]?E[b]+=m:E[++b]=m),(p=p[0])===(v=v[0])?E[b]?E[b]+=v:E[++b]=v:(E[++b]=null,C.push({i:b,x:Gw(p,v)})),f=Xft.lastIndex;return f180?P+=360:P-D>180&&(D+=360),j.push({i:B.push(v(B)+"rotate(",null,p)-2,x:Gw(D,P)})):P&&B.push(v(B)+"rotate("+P+p)}function E(D,P,B,j){D!==P?j.push({i:B.push(v(B)+"skewX(",null,p)-2,x:Gw(D,P)}):P&&B.push(v(B)+"skewX("+P+p)}function C(D,P,B,j,R,H){if(D!==B||P!==j){var Y=R.push(v(R)+"scale(",null,",",null,")");H.push({i:Y-4,x:Gw(D,B)},{i:Y-2,x:Gw(P,j)})}else(B!==1||j!==1)&&R.push(v(R)+"scale("+B+","+j+")")}return function(D,P){var B=[],j=[];return D=i(D),P=i(P),m(D.translateX,D.translateY,P.translateX,P.translateY,B,j),b(D.rotate,P.rotate,B,j),E(D.skewX,P.skewX,B,j),C(D.scaleX,D.scaleY,P.scaleX,P.scaleY,B,j),D=P=null,function(R){for(var H=-1,Y=j.length,it;++H=0&&i._call.call(void 0,a),i=i._next;--bA}function rMt(){z9=(mU=SN.now())+yU,bA=TN=0;try{qxe()}finally{bA=0,Vxe(),z9=0}}function Hxe(){var i=SN.now(),a=i-mU;a>tMt&&(yU-=a,mU=i)}function Vxe(){for(var i,a=wU,f,p=1/0;a;)a._call?(p>a._time&&(p=a._time),i=a,a=a._next):(f=a._next,a._next=null,a=i?i._next=f:wU=f);CN=i,t1t(p)}function t1t(i){if(!bA){TN&&(TN=clearTimeout(TN));var a=i-z9;a>24?(i<1/0&&(TN=setTimeout(rMt,i-SN.now()-yU)),_N&&(_N=clearInterval(_N))):(_N||(mU=SN.now(),_N=setInterval(Hxe,tMt)),bA=1,eMt(rMt))}}function iMt(i,a,f){var p=new xU;return a=a==null?0:+a,p.restart(v=>{p.stop(),i(v+a)},a,f),p}var Gxe=vLt("start","end","cancel","interrupt"),Uxe=[],sMt=0,aMt=1,e1t=2,kU=3,oMt=4,n1t=5,EU=6;function TU(i,a,f,p,v,m){var b=i.__transition;if(!b)i.__transition={};else if(f in b)return;Wxe(i,f,{name:a,index:p,group:v,on:Gxe,tween:Uxe,time:m.time,delay:m.delay,duration:m.duration,ease:m.ease,timer:null,state:sMt})}function r1t(i,a){var f=Uw(i,a);if(f.state>sMt)throw new Error("too late; already scheduled");return f}function s3(i,a){var f=Uw(i,a);if(f.state>kU)throw new Error("too late; already running");return f}function Uw(i,a){var f=i.__transition;if(!f||!(f=f[a]))throw new Error("transition not found");return f}function Wxe(i,a,f){var p=i.__transition,v;p[a]=f,f.timer=nMt(m,0,f.time);function m(D){f.state=aMt,f.timer.restart(b,f.delay,f.time),f.delay<=D&&b(D-f.delay)}function b(D){var P,B,j,R;if(f.state!==aMt)return C();for(P in p)if(R=p[P],R.name===f.name){if(R.state===kU)return iMt(b);R.state===oMt?(R.state=EU,R.timer.stop(),R.on.call("interrupt",i,i.__data__,R.index,R.group),delete p[P]):+Pe1t&&p.state=0&&(a=a.slice(0,f)),!a||a==="start"})}function Tke(i,a,f){var p,v,m=Eke(a)?r1t:s3;return function(){var b=m(this,i),E=b.on;E!==p&&(v=(p=E).copy()).on(a,f),b.on=v}}function _ke(i,a){var f=this._id;return arguments.length<2?Uw(this.node(),f).on.on(i):this.each(Tke(f,i,a))}function Cke(i){return function(){var a=this.parentNode;for(var f in this.__transition)if(+f!==i)return;a&&a.removeChild(this)}}function Ske(){return this.on("end.remove",Cke(this._id))}function Ake(i){var a=this._name,f=this._id;typeof i!="function"&&(i=Rft(i));for(var p=this._groups,v=p.length,m=new Array(v),b=0;bq9)if(!(Math.abs(P*E-C*D)>q9)||!v)this._+="L"+(this._x1=i)+","+(this._y1=a);else{var j=f-m,R=p-b,H=E*E+C*C,Y=j*j+R*R,it=Math.sqrt(H),nt=Math.sqrt(B),st=v*Math.tan((s1t-Math.acos((H+B-Y)/(2*it*nt)))/2),pt=st/nt,Tt=st/it;Math.abs(pt-1)>q9&&(this._+="L"+(i+pt*D)+","+(a+pt*P)),this._+="A"+v+","+v+",0,0,"+ +(P*j>D*R)+","+(this._x1=i+Tt*E)+","+(this._y1=a+Tt*C)}},arc:function(i,a,f,p,v,m){i=+i,a=+a,f=+f,m=!!m;var b=f*Math.cos(p),E=f*Math.sin(p),C=i+b,D=a+E,P=1^m,B=m?p-v:v-p;if(f<0)throw new Error("negative radius: "+f);this._x1===null?this._+="M"+C+","+D:(Math.abs(this._x1-C)>q9||Math.abs(this._y1-D)>q9)&&(this._+="L"+C+","+D),f&&(B<0&&(B=B%a1t+a1t),B>Jke?this._+="A"+f+","+f+",0,1,"+P+","+(i-b)+","+(a-E)+"A"+f+","+f+",0,1,"+P+","+(this._x1=C)+","+(this._y1=D):B>q9&&(this._+="A"+f+","+f+",0,"+ +(B>=s1t)+","+P+","+(this._x1=i+f*Math.cos(v))+","+(this._y1=a+f*Math.sin(v))))},rect:function(i,a,f,p){this._+="M"+(this._x0=this._x1=+i)+","+(this._y0=this._y1=+a)+"h"+ +f+"v"+ +p+"h"+-f+"Z"},toString:function(){return this._}};function t8e(i){if(!i.ok)throw new Error(i.status+" "+i.statusText);return i.text()}function e8e(i,a){return fetch(i,a).then(t8e)}function n8e(i){return(a,f)=>e8e(a,f).then(p=>new DOMParser().parseFromString(p,i))}var r8e=n8e("image/svg+xml");function i8e(i){return Math.abs(i=Math.round(i))>=1e21?i.toLocaleString("en").replace(/,/g,""):i.toString(10)}function _U(i,a){if((f=(i=a?i.toExponential(a-1):i.toExponential()).indexOf("e"))<0)return null;var f,p=i.slice(0,f);return[p.length>1?p[0]+p.slice(2):p,+i.slice(f+1)]}function vA(i){return i=_U(Math.abs(i)),i?i[1]:NaN}function s8e(i,a){return function(f,p){for(var v=f.length,m=[],b=0,E=i[0],C=0;v>0&&E>0&&(C+E+1>p&&(E=Math.max(1,p-C)),m.push(f.substring(v-=E,v+E)),!((C+=E+1)>p));)E=i[b=(b+1)%i.length];return m.reverse().join(a)}}function a8e(i){return function(a){return a.replace(/[0-9]/g,function(f){return i[+f]})}}var o8e=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function CU(i){if(!(a=o8e.exec(i)))throw new Error("invalid format: "+i);var a;return new u1t({fill:a[1],align:a[2],sign:a[3],symbol:a[4],zero:a[5],width:a[6],comma:a[7],precision:a[8]&&a[8].slice(1),trim:a[9],type:a[10]})}CU.prototype=u1t.prototype;function u1t(i){this.fill=i.fill===void 0?" ":i.fill+"",this.align=i.align===void 0?">":i.align+"",this.sign=i.sign===void 0?"-":i.sign+"",this.symbol=i.symbol===void 0?"":i.symbol+"",this.zero=!!i.zero,this.width=i.width===void 0?void 0:+i.width,this.comma=!!i.comma,this.precision=i.precision===void 0?void 0:+i.precision,this.trim=!!i.trim,this.type=i.type===void 0?"":i.type+""}u1t.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function c8e(i){t:for(var a=i.length,f=1,p=-1,v;f0&&(p=0);break}return p>0?i.slice(0,p)+i.slice(v+1):i}var hMt;function u8e(i,a){var f=_U(i,a);if(!f)return i+"";var p=f[0],v=f[1],m=v-(hMt=Math.max(-8,Math.min(8,Math.floor(v/3)))*3)+1,b=p.length;return m===b?p:m>b?p+new Array(m-b+1).join("0"):m>0?p.slice(0,m)+"."+p.slice(m):"0."+new Array(1-m).join("0")+_U(i,Math.max(0,a+m-1))[0]}function fMt(i,a){var f=_U(i,a);if(!f)return i+"";var p=f[0],v=f[1];return v<0?"0."+new Array(-v).join("0")+p:p.length>v+1?p.slice(0,v+1)+"."+p.slice(v+1):p+new Array(v-p.length+2).join("0")}const dMt={"%":(i,a)=>(i*100).toFixed(a),b:i=>Math.round(i).toString(2),c:i=>i+"",d:i8e,e:(i,a)=>i.toExponential(a),f:(i,a)=>i.toFixed(a),g:(i,a)=>i.toPrecision(a),o:i=>Math.round(i).toString(8),p:(i,a)=>fMt(i*100,a),r:fMt,s:u8e,X:i=>Math.round(i).toString(16).toUpperCase(),x:i=>Math.round(i).toString(16)};function gMt(i){return i}var pMt=Array.prototype.map,bMt=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function l8e(i){var a=i.grouping===void 0||i.thousands===void 0?gMt:s8e(pMt.call(i.grouping,Number),i.thousands+""),f=i.currency===void 0?"":i.currency[0]+"",p=i.currency===void 0?"":i.currency[1]+"",v=i.decimal===void 0?".":i.decimal+"",m=i.numerals===void 0?gMt:a8e(pMt.call(i.numerals,String)),b=i.percent===void 0?"%":i.percent+"",E=i.minus===void 0?"−":i.minus+"",C=i.nan===void 0?"NaN":i.nan+"";function D(B){B=CU(B);var j=B.fill,R=B.align,H=B.sign,Y=B.symbol,it=B.zero,nt=B.width,st=B.comma,pt=B.precision,Tt=B.trim,kt=B.type;kt==="n"?(st=!0,kt="g"):dMt[kt]||(pt===void 0&&(pt=12),Tt=!0,kt="g"),(it||j==="0"&&R==="=")&&(it=!0,j="0",R="=");var yt=Y==="$"?f:Y==="#"&&/[boxX]/.test(kt)?"0"+kt.toLowerCase():"",ht=Y==="$"?p:/[%p]/.test(kt)?b:"",mt=dMt[kt],rt=/[defgprs%]/.test(kt);pt=pt===void 0?6:/[gprs]/.test(kt)?Math.max(1,Math.min(21,pt)):Math.max(0,Math.min(20,pt));function wt(gt){var lt=yt,_t=ht,X,Rt,ft;if(kt==="c")_t=mt(gt)+_t,gt="";else{gt=+gt;var de=gt<0||1/gt<0;if(gt=isNaN(gt)?C:mt(Math.abs(gt),pt),Tt&&(gt=c8e(gt)),de&&+gt==0&&H!=="+"&&(de=!1),lt=(de?H==="("?H:E:H==="-"||H==="("?"":H)+lt,_t=(kt==="s"?bMt[8+hMt/3]:"")+_t+(de&&H==="("?")":""),rt){for(X=-1,Rt=gt.length;++Xft||ft>57){_t=(ft===46?v+gt.slice(X+1):gt.slice(X))+_t,gt=gt.slice(0,X);break}}}st&&!it&&(gt=a(gt,1/0));var J=lt.length+gt.length+_t.length,ae=J>1)+lt+gt+_t+ae.slice(J);break;default:gt=ae+lt+gt+_t;break}return m(gt)}return wt.toString=function(){return B+""},wt}function P(B,j){var R=D((B=CU(B),B.type="f",B)),H=Math.max(-8,Math.min(8,Math.floor(vA(j)/3)))*3,Y=Math.pow(10,-H),it=bMt[8+H/3];return function(nt){return R(Y*nt)+it}}return{format:D,formatPrefix:P}}var SU,vMt,wMt;h8e({thousands:",",grouping:[3],currency:["$",""]});function h8e(i){return SU=l8e(i),vMt=SU.format,wMt=SU.formatPrefix,SU}function f8e(i){return Math.max(0,-vA(Math.abs(i)))}function d8e(i,a){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(vA(a)/3)))*3-vA(Math.abs(i)))}function g8e(i,a){return i=Math.abs(i),a=Math.abs(a)-i,Math.max(0,vA(a)-vA(i))+1}function l1t(i,a){switch(arguments.length){case 0:break;case 1:this.range(i);break;default:this.range(a).domain(i);break}return this}const mMt=Symbol("implicit");function yMt(){var i=new fLt,a=[],f=[],p=mMt;function v(m){let b=i.get(m);if(b===void 0){if(p!==mMt)return p;i.set(m,b=a.push(m)-1)}return f[b%f.length]}return v.domain=function(m){if(!arguments.length)return a.slice();a=[],i=new fLt;for(const b of m)i.has(b)||i.set(b,a.push(b)-1);return v},v.range=function(m){return arguments.length?(f=Array.from(m),v):f.slice()},v.unknown=function(m){return arguments.length?(p=m,v):p},v.copy=function(){return yMt(a,f).unknown(p)},l1t.apply(v,arguments),v}function p8e(i){return function(){return i}}function b8e(i){return+i}var xMt=[0,1];function wA(i){return i}function h1t(i,a){return(a-=i=+i)?function(f){return(f-i)/a}:p8e(isNaN(a)?NaN:.5)}function v8e(i,a){var f;return i>a&&(f=i,i=a,a=f),function(p){return Math.max(i,Math.min(a,p))}}function w8e(i,a,f){var p=i[0],v=i[1],m=a[0],b=a[1];return v2?m8e:w8e,C=D=null,B}function B(j){return j==null||isNaN(j=+j)?m:(C||(C=E(i.map(p),a,f)))(p(b(j)))}return B.invert=function(j){return b(v((D||(D=E(a,i.map(p),Gw)))(j)))},B.domain=function(j){return arguments.length?(i=Array.from(j,b8e),P()):i.slice()},B.range=function(j){return arguments.length?(a=Array.from(j),P()):a.slice()},B.rangeRound=function(j){return a=Array.from(j),f=Nxe,P()},B.clamp=function(j){return arguments.length?(b=j?!0:wA,P()):b!==wA},B.interpolate=function(j){return arguments.length?(f=j,P()):f},B.unknown=function(j){return arguments.length?(m=j,B):m},function(j,R){return p=j,v=R,P()}}function EMt(){return y8e()(wA,wA)}function x8e(i,a,f,p){var v=Nft(i,a,f),m;switch(p=CU(p??",f"),p.type){case"s":{var b=Math.max(Math.abs(i),Math.abs(a));return p.precision==null&&!isNaN(m=d8e(v,b))&&(p.precision=m),wMt(p,b)}case"":case"e":case"g":case"p":case"r":{p.precision==null&&!isNaN(m=g8e(v,Math.max(Math.abs(i),Math.abs(a))))&&(p.precision=m-(p.type==="e"));break}case"f":case"%":{p.precision==null&&!isNaN(m=f8e(v))&&(p.precision=m-(p.type==="%")*2);break}}return vMt(p)}function k8e(i){var a=i.domain;return i.ticks=function(f){var p=a();return v5e(p[0],p[p.length-1],f??10)},i.tickFormat=function(f,p){var v=a();return x8e(v[0],v[v.length-1],f??10,p)},i.nice=function(f){f==null&&(f=10);var p=a(),v=0,m=p.length-1,b=p[v],E=p[m],C,D,P=10;for(E0;){if(D=gLt(b,E,f),D===C)return p[v]=b,p[m]=E,a(p);if(D>0)b=Math.floor(b/D)*D,E=Math.ceil(E/D)*D;else if(D<0)b=Math.ceil(b*D)/D,E=Math.floor(E*D)/D;else break;C=D}return i},i}function AU(){var i=EMt();return i.copy=function(){return kMt(i,AU())},l1t.apply(i,arguments),k8e(i)}function E8e(i,a){i=i.slice();var f=0,p=i.length-1,v=i[f],m=i[p],b;return m0))return C;do C.push(D=new Date(+m)),a(m,E),i(m);while(D=b)for(;i(b),!m(b);)b.setTime(b-1)},function(b,E){if(b>=b)if(E<0)for(;++E<=0;)for(;a(b,-1),!m(b););else for(;--E>=0;)for(;a(b,1),!m(b););})},f&&(v.count=function(m,b){return f1t.setTime(+m),d1t.setTime(+b),i(f1t),i(d1t),Math.floor(f(f1t,d1t))},v.every=function(m){return m=Math.floor(m),!isFinite(m)||!(m>0)?null:m>1?v.filter(p?function(b){return p(b)%m===0}:function(b){return v.count(0,b)%m===0}):v}),v}var LU=ng(function(){},function(i,a){i.setTime(+i+a)},function(i,a){return a-i});LU.every=function(i){return i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?ng(function(a){a.setTime(Math.floor(a/i)*i)},function(a,f){a.setTime(+a+f*i)},function(a,f){return(f-a)/i}):LU};const T8e=LU;LU.range;const v5=1e3,a3=v5*60,H9=a3*60,V9=H9*24,g1t=V9*7,TMt=V9*30,p1t=V9*365;var _Mt=ng(function(i){i.setTime(i-i.getMilliseconds())},function(i,a){i.setTime(+i+a*v5)},function(i,a){return(a-i)/v5},function(i){return i.getUTCSeconds()});const AN=_Mt;_Mt.range;var CMt=ng(function(i){i.setTime(i-i.getMilliseconds()-i.getSeconds()*v5)},function(i,a){i.setTime(+i+a*a3)},function(i,a){return(a-i)/a3},function(i){return i.getMinutes()});const MU=CMt;CMt.range;var SMt=ng(function(i){i.setTime(i-i.getMilliseconds()-i.getSeconds()*v5-i.getMinutes()*a3)},function(i,a){i.setTime(+i+a*H9)},function(i,a){return(a-i)/H9},function(i){return i.getHours()});const DU=SMt;SMt.range;var AMt=ng(i=>i.setHours(0,0,0,0),(i,a)=>i.setDate(i.getDate()+a),(i,a)=>(a-i-(a.getTimezoneOffset()-i.getTimezoneOffset())*a3)/V9,i=>i.getDate()-1);const mA=AMt;AMt.range;function G9(i){return ng(function(a){a.setDate(a.getDate()-(a.getDay()+7-i)%7),a.setHours(0,0,0,0)},function(a,f){a.setDate(a.getDate()+f*7)},function(a,f){return(f-a-(f.getTimezoneOffset()-a.getTimezoneOffset())*a3)/g1t})}var yA=G9(0),IU=G9(1),_8e=G9(2),C8e=G9(3),xA=G9(4),S8e=G9(5),A8e=G9(6);yA.range,IU.range,_8e.range,C8e.range,xA.range,S8e.range,A8e.range;var LMt=ng(function(i){i.setDate(1),i.setHours(0,0,0,0)},function(i,a){i.setMonth(i.getMonth()+a)},function(i,a){return a.getMonth()-i.getMonth()+(a.getFullYear()-i.getFullYear())*12},function(i){return i.getMonth()});const OU=LMt;LMt.range;var b1t=ng(function(i){i.setMonth(0,1),i.setHours(0,0,0,0)},function(i,a){i.setFullYear(i.getFullYear()+a)},function(i,a){return a.getFullYear()-i.getFullYear()},function(i){return i.getFullYear()});b1t.every=function(i){return!isFinite(i=Math.floor(i))||!(i>0)?null:ng(function(a){a.setFullYear(Math.floor(a.getFullYear()/i)*i),a.setMonth(0,1),a.setHours(0,0,0,0)},function(a,f){a.setFullYear(a.getFullYear()+f*i)})};const U9=b1t;b1t.range;var MMt=ng(function(i){i.setUTCHours(0,0,0,0)},function(i,a){i.setUTCDate(i.getUTCDate()+a)},function(i,a){return(a-i)/V9},function(i){return i.getUTCDate()-1});const DMt=MMt;MMt.range;function W9(i){return ng(function(a){a.setUTCDate(a.getUTCDate()-(a.getUTCDay()+7-i)%7),a.setUTCHours(0,0,0,0)},function(a,f){a.setUTCDate(a.getUTCDate()+f*7)},function(a,f){return(f-a)/g1t})}var IMt=W9(0),NU=W9(1),L8e=W9(2),M8e=W9(3),kA=W9(4),D8e=W9(5),I8e=W9(6);IMt.range,NU.range,L8e.range,M8e.range,kA.range,D8e.range,I8e.range;var v1t=ng(function(i){i.setUTCMonth(0,1),i.setUTCHours(0,0,0,0)},function(i,a){i.setUTCFullYear(i.getUTCFullYear()+a)},function(i,a){return a.getUTCFullYear()-i.getUTCFullYear()},function(i){return i.getUTCFullYear()});v1t.every=function(i){return!isFinite(i=Math.floor(i))||!(i>0)?null:ng(function(a){a.setUTCFullYear(Math.floor(a.getUTCFullYear()/i)*i),a.setUTCMonth(0,1),a.setUTCHours(0,0,0,0)},function(a,f){a.setUTCFullYear(a.getUTCFullYear()+f*i)})};const LN=v1t;v1t.range;function O8e(i,a,f,p,v,m){const b=[[AN,1,v5],[AN,5,5*v5],[AN,15,15*v5],[AN,30,30*v5],[m,1,a3],[m,5,5*a3],[m,15,15*a3],[m,30,30*a3],[v,1,H9],[v,3,3*H9],[v,6,6*H9],[v,12,12*H9],[p,1,V9],[p,2,2*V9],[f,1,g1t],[a,1,TMt],[a,3,3*TMt],[i,1,p1t]];function E(D,P,B){const j=Pit).right(b,j);if(R===b.length)return i.every(Nft(D/p1t,P/p1t,B));if(R===0)return T8e.every(Math.max(Nft(D,P,B),1));const[H,Y]=b[j/b[R-1][2]53)return null;"w"in Vt||(Vt.w=1),"Z"in Vt?(Gt=m1t(MN(Vt.y,0,1)),un=Gt.getUTCDay(),Gt=un>4||un===0?NU.ceil(Gt):NU(Gt),Gt=DMt.offset(Gt,(Vt.V-1)*7),Vt.y=Gt.getUTCFullYear(),Vt.m=Gt.getUTCMonth(),Vt.d=Gt.getUTCDate()+(Vt.w+6)%7):(Gt=w1t(MN(Vt.y,0,1)),un=Gt.getDay(),Gt=un>4||un===0?IU.ceil(Gt):IU(Gt),Gt=mA.offset(Gt,(Vt.V-1)*7),Vt.y=Gt.getFullYear(),Vt.m=Gt.getMonth(),Vt.d=Gt.getDate()+(Vt.w+6)%7)}else("W"in Vt||"U"in Vt)&&("w"in Vt||(Vt.w="u"in Vt?Vt.u%7:"W"in Vt?1:0),un="Z"in Vt?m1t(MN(Vt.y,0,1)).getUTCDay():w1t(MN(Vt.y,0,1)).getDay(),Vt.m=0,Vt.d="W"in Vt?(Vt.w+6)%7+Vt.W*7-(un+5)%7:Vt.w+Vt.U*7-(un+6)%7);return"Z"in Vt?(Vt.H+=Vt.Z/100|0,Vt.M+=Vt.Z%100,m1t(Vt)):w1t(Vt)}}function mt(ne,Ee,ye,Vt){for(var Ae=0,Gt=Ee.length,un=ye.length,jt,Ke;Ae=un)return-1;if(jt=Ee.charCodeAt(Ae++),jt===37){if(jt=Ee.charAt(Ae++),Ke=kt[jt in OMt?Ee.charAt(Ae++):jt],!Ke||(Vt=Ke(ne,ye,Vt))<0)return-1}else if(jt!=ye.charCodeAt(Vt++))return-1}return Vt}function rt(ne,Ee,ye){var Vt=D.exec(Ee.slice(ye));return Vt?(ne.p=P.get(Vt[0].toLowerCase()),ye+Vt[0].length):-1}function wt(ne,Ee,ye){var Vt=R.exec(Ee.slice(ye));return Vt?(ne.w=H.get(Vt[0].toLowerCase()),ye+Vt[0].length):-1}function gt(ne,Ee,ye){var Vt=B.exec(Ee.slice(ye));return Vt?(ne.w=j.get(Vt[0].toLowerCase()),ye+Vt[0].length):-1}function lt(ne,Ee,ye){var Vt=nt.exec(Ee.slice(ye));return Vt?(ne.m=st.get(Vt[0].toLowerCase()),ye+Vt[0].length):-1}function _t(ne,Ee,ye){var Vt=Y.exec(Ee.slice(ye));return Vt?(ne.m=it.get(Vt[0].toLowerCase()),ye+Vt[0].length):-1}function X(ne,Ee,ye){return mt(ne,a,Ee,ye)}function Rt(ne,Ee,ye){return mt(ne,f,Ee,ye)}function ft(ne,Ee,ye){return mt(ne,p,Ee,ye)}function de(ne){return b[ne.getDay()]}function J(ne){return m[ne.getDay()]}function ae(ne){return C[ne.getMonth()]}function Wt(ne){return E[ne.getMonth()]}function It(ne){return v[+(ne.getHours()>=12)]}function Nt(ne){return 1+~~(ne.getMonth()/3)}function me(ne){return b[ne.getUTCDay()]}function Ue(ne){return m[ne.getUTCDay()]}function _n(ne){return C[ne.getUTCMonth()]}function _e(ne){return E[ne.getUTCMonth()]}function rr(ne){return v[+(ne.getUTCHours()>=12)]}function Te(ne){return 1+~~(ne.getUTCMonth()/3)}return{format:function(ne){var Ee=yt(ne+="",pt);return Ee.toString=function(){return ne},Ee},parse:function(ne){var Ee=ht(ne+="",!1);return Ee.toString=function(){return ne},Ee},utcFormat:function(ne){var Ee=yt(ne+="",Tt);return Ee.toString=function(){return ne},Ee},utcParse:function(ne){var Ee=ht(ne+="",!0);return Ee.toString=function(){return ne},Ee}}}var OMt={"-":"",_:" ",0:"0"},nd=/^\s*\d+/,B8e=/^%/,R8e=/[\\^$*+?|[\]().{}]/g;function Hc(i,a,f){var p=i<0?"-":"",v=(p?-i:i)+"",m=v.length;return p+(m[a.toLowerCase(),f]))}function $8e(i,a,f){var p=nd.exec(a.slice(f,f+1));return p?(i.w=+p[0],f+p[0].length):-1}function z8e(i,a,f){var p=nd.exec(a.slice(f,f+1));return p?(i.u=+p[0],f+p[0].length):-1}function q8e(i,a,f){var p=nd.exec(a.slice(f,f+2));return p?(i.U=+p[0],f+p[0].length):-1}function H8e(i,a,f){var p=nd.exec(a.slice(f,f+2));return p?(i.V=+p[0],f+p[0].length):-1}function V8e(i,a,f){var p=nd.exec(a.slice(f,f+2));return p?(i.W=+p[0],f+p[0].length):-1}function NMt(i,a,f){var p=nd.exec(a.slice(f,f+4));return p?(i.y=+p[0],f+p[0].length):-1}function PMt(i,a,f){var p=nd.exec(a.slice(f,f+2));return p?(i.y=+p[0]+(+p[0]>68?1900:2e3),f+p[0].length):-1}function G8e(i,a,f){var p=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(a.slice(f,f+6));return p?(i.Z=p[1]?0:-(p[2]+(p[3]||"00")),f+p[0].length):-1}function U8e(i,a,f){var p=nd.exec(a.slice(f,f+1));return p?(i.q=p[0]*3-3,f+p[0].length):-1}function W8e(i,a,f){var p=nd.exec(a.slice(f,f+2));return p?(i.m=p[0]-1,f+p[0].length):-1}function FMt(i,a,f){var p=nd.exec(a.slice(f,f+2));return p?(i.d=+p[0],f+p[0].length):-1}function K8e(i,a,f){var p=nd.exec(a.slice(f,f+3));return p?(i.m=0,i.d=+p[0],f+p[0].length):-1}function BMt(i,a,f){var p=nd.exec(a.slice(f,f+2));return p?(i.H=+p[0],f+p[0].length):-1}function Y8e(i,a,f){var p=nd.exec(a.slice(f,f+2));return p?(i.M=+p[0],f+p[0].length):-1}function X8e(i,a,f){var p=nd.exec(a.slice(f,f+2));return p?(i.S=+p[0],f+p[0].length):-1}function Q8e(i,a,f){var p=nd.exec(a.slice(f,f+3));return p?(i.L=+p[0],f+p[0].length):-1}function Z8e(i,a,f){var p=nd.exec(a.slice(f,f+6));return p?(i.L=Math.floor(p[0]/1e3),f+p[0].length):-1}function J8e(i,a,f){var p=B8e.exec(a.slice(f,f+1));return p?f+p[0].length:-1}function t7e(i,a,f){var p=nd.exec(a.slice(f));return p?(i.Q=+p[0],f+p[0].length):-1}function e7e(i,a,f){var p=nd.exec(a.slice(f));return p?(i.s=+p[0],f+p[0].length):-1}function RMt(i,a){return Hc(i.getDate(),a,2)}function n7e(i,a){return Hc(i.getHours(),a,2)}function r7e(i,a){return Hc(i.getHours()%12||12,a,2)}function i7e(i,a){return Hc(1+mA.count(U9(i),i),a,3)}function jMt(i,a){return Hc(i.getMilliseconds(),a,3)}function s7e(i,a){return jMt(i,a)+"000"}function a7e(i,a){return Hc(i.getMonth()+1,a,2)}function o7e(i,a){return Hc(i.getMinutes(),a,2)}function c7e(i,a){return Hc(i.getSeconds(),a,2)}function u7e(i){var a=i.getDay();return a===0?7:a}function l7e(i,a){return Hc(yA.count(U9(i)-1,i),a,2)}function $Mt(i){var a=i.getDay();return a>=4||a===0?xA(i):xA.ceil(i)}function h7e(i,a){return i=$Mt(i),Hc(xA.count(U9(i),i)+(U9(i).getDay()===4),a,2)}function f7e(i){return i.getDay()}function d7e(i,a){return Hc(IU.count(U9(i)-1,i),a,2)}function g7e(i,a){return Hc(i.getFullYear()%100,a,2)}function p7e(i,a){return i=$Mt(i),Hc(i.getFullYear()%100,a,2)}function b7e(i,a){return Hc(i.getFullYear()%1e4,a,4)}function v7e(i,a){var f=i.getDay();return i=f>=4||f===0?xA(i):xA.ceil(i),Hc(i.getFullYear()%1e4,a,4)}function w7e(i){var a=i.getTimezoneOffset();return(a>0?"-":(a*=-1,"+"))+Hc(a/60|0,"0",2)+Hc(a%60,"0",2)}function zMt(i,a){return Hc(i.getUTCDate(),a,2)}function m7e(i,a){return Hc(i.getUTCHours(),a,2)}function y7e(i,a){return Hc(i.getUTCHours()%12||12,a,2)}function x7e(i,a){return Hc(1+DMt.count(LN(i),i),a,3)}function qMt(i,a){return Hc(i.getUTCMilliseconds(),a,3)}function k7e(i,a){return qMt(i,a)+"000"}function E7e(i,a){return Hc(i.getUTCMonth()+1,a,2)}function T7e(i,a){return Hc(i.getUTCMinutes(),a,2)}function _7e(i,a){return Hc(i.getUTCSeconds(),a,2)}function C7e(i){var a=i.getUTCDay();return a===0?7:a}function S7e(i,a){return Hc(IMt.count(LN(i)-1,i),a,2)}function HMt(i){var a=i.getUTCDay();return a>=4||a===0?kA(i):kA.ceil(i)}function A7e(i,a){return i=HMt(i),Hc(kA.count(LN(i),i)+(LN(i).getUTCDay()===4),a,2)}function L7e(i){return i.getUTCDay()}function M7e(i,a){return Hc(NU.count(LN(i)-1,i),a,2)}function D7e(i,a){return Hc(i.getUTCFullYear()%100,a,2)}function I7e(i,a){return i=HMt(i),Hc(i.getUTCFullYear()%100,a,2)}function O7e(i,a){return Hc(i.getUTCFullYear()%1e4,a,4)}function N7e(i,a){var f=i.getUTCDay();return i=f>=4||f===0?kA(i):kA.ceil(i),Hc(i.getUTCFullYear()%1e4,a,4)}function P7e(){return"+0000"}function VMt(){return"%"}function GMt(i){return+i}function UMt(i){return Math.floor(+i/1e3)}var EA,PU;F7e({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function F7e(i){return EA=F8e(i),PU=EA.format,EA.parse,EA.utcFormat,EA.utcParse,EA}function B7e(i){return new Date(i)}function R7e(i){return i instanceof Date?+i:+new Date(+i)}function WMt(i,a,f,p,v,m,b,E,C,D){var P=EMt(),B=P.invert,j=P.domain,R=D(".%L"),H=D(":%S"),Y=D("%I:%M"),it=D("%I %p"),nt=D("%a %d"),st=D("%b %d"),pt=D("%B"),Tt=D("%Y");function kt(yt){return(C(yt)1?0:i<-1?ON:Math.acos(i)}function YMt(i){return i>=1?FU:i<=-1?-FU:Math.asin(i)}function q7e(i){return i.innerRadius}function H7e(i){return i.outerRadius}function V7e(i){return i.startAngle}function G7e(i){return i.endAngle}function U7e(i){return i&&i.padAngle}function W7e(i,a,f,p,v,m,b,E){var C=f-i,D=p-a,P=b-v,B=E-m,j=B*C-P*D;if(!(j*jX*X+Rt*Rt&&(mt=wt,rt=gt),{cx:mt,cy:rt,x01:-P,y01:-B,x11:mt*(v/kt-1),y11:rt*(v/kt-1)}}function _A(){var i=q7e,a=H7e,f=rf(0),p=null,v=V7e,m=G7e,b=U7e,E=null;function C(){var D,P,B=+i.apply(this,arguments),j=+a.apply(this,arguments),R=v.apply(this,arguments)-FU,H=m.apply(this,arguments)-FU,Y=KMt(H-R),it=H>R;if(E||(E=D=c1t()),jm0))E.moveTo(0,0);else if(Y>BU-m0)E.moveTo(j*K9(R),j*o3(R)),E.arc(0,0,j,R,H,!it),B>m0&&(E.moveTo(B*K9(H),B*o3(H)),E.arc(0,0,B,H,R,it));else{var nt=R,st=H,pt=R,Tt=H,kt=Y,yt=Y,ht=b.apply(this,arguments)/2,mt=ht>m0&&(p?+p.apply(this,arguments):TA(B*B+j*j)),rt=y1t(KMt(j-B)/2,+f.apply(this,arguments)),wt=rt,gt=rt,lt,_t;if(mt>m0){var X=YMt(mt/B*o3(ht)),Rt=YMt(mt/j*o3(ht));(kt-=X*2)>m0?(X*=it?1:-1,pt+=X,Tt-=X):(kt=0,pt=Tt=(R+H)/2),(yt-=Rt*2)>m0?(Rt*=it?1:-1,nt+=Rt,st-=Rt):(yt=0,nt=st=(R+H)/2)}var ft=j*K9(nt),de=j*o3(nt),J=B*K9(Tt),ae=B*o3(Tt);if(rt>m0){var Wt=j*K9(st),It=j*o3(st),Nt=B*K9(pt),me=B*o3(pt),Ue;if(Ym0?gt>m0?(lt=RU(Nt,me,ft,de,j,gt,it),_t=RU(Wt,It,J,ae,j,gt,it),E.moveTo(lt.cx+lt.x01,lt.cy+lt.y01),gtm0)||!(kt>m0)?E.lineTo(J,ae):wt>m0?(lt=RU(J,ae,Wt,It,B,-wt,it),_t=RU(ft,de,Nt,me,B,-wt,it),E.lineTo(lt.cx+lt.x01,lt.cy+lt.y01),wti?1:a>=i?0:NaN}function Q7e(i){return i}function Z7e(){var i=Q7e,a=X7e,f=null,p=rf(0),v=rf(BU),m=rf(0);function b(E){var C,D=(E=XMt(E)).length,P,B,j=0,R=new Array(D),H=new Array(D),Y=+p.apply(this,arguments),it=Math.min(BU,Math.max(-BU,v.apply(this,arguments)-Y)),nt,st=Math.min(Math.abs(it)/D,m.apply(this,arguments)),pt=st*(it<0?-1:1),Tt;for(C=0;C0&&(j+=Tt);for(a!=null?R.sort(function(kt,yt){return a(H[kt],H[yt])}):f!=null&&R.sort(function(kt,yt){return f(E[kt],E[yt])}),C=0,B=j?(it-D*pt)/j:0;C0?Tt*B:0)+pt,H[P]={data:E[P],index:C,value:Tt,startAngle:Y,endAngle:nt,padAngle:st};return H}return b.value=function(E){return arguments.length?(i=typeof E=="function"?E:rf(+E),b):i},b.sortValues=function(E){return arguments.length?(a=E,f=null,b):a},b.sort=function(E){return arguments.length?(f=E,a=null,b):f},b.startAngle=function(E){return arguments.length?(p=typeof E=="function"?E:rf(+E),b):p},b.endAngle=function(E){return arguments.length?(v=typeof E=="function"?E:rf(+E),b):v},b.padAngle=function(E){return arguments.length?(m=typeof E=="function"?E:rf(+E),b):m},b}class ZMt{constructor(a,f){this._context=a,this._x=f}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(a,f){switch(a=+a,f=+f,this._point){case 0:{this._point=1,this._line?this._context.lineTo(a,f):this._context.moveTo(a,f);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+a)/2,this._y0,this._x0,f,a,f):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+f)/2,a,this._y0,a,f);break}}this._x0=a,this._y0=f}}function J7e(i){return new ZMt(i,!0)}function t9e(i){return new ZMt(i,!1)}function Qx(){}function jU(i,a,f){i._context.bezierCurveTo((2*i._x0+i._x1)/3,(2*i._y0+i._y1)/3,(i._x0+2*i._x1)/3,(i._y0+2*i._y1)/3,(i._x0+4*i._x1+a)/6,(i._y0+4*i._y1+f)/6)}function $U(i){this._context=i}$U.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:jU(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(i,a){switch(i=+i,a=+a,this._point){case 0:this._point=1,this._line?this._context.lineTo(i,a):this._context.moveTo(i,a);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:jU(this,i,a);break}this._x0=this._x1,this._x1=i,this._y0=this._y1,this._y1=a}};function CA(i){return new $U(i)}function JMt(i){this._context=i}JMt.prototype={areaStart:Qx,areaEnd:Qx,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(i,a){switch(i=+i,a=+a,this._point){case 0:this._point=1,this._x2=i,this._y2=a;break;case 1:this._point=2,this._x3=i,this._y3=a;break;case 2:this._point=3,this._x4=i,this._y4=a,this._context.moveTo((this._x0+4*this._x1+i)/6,(this._y0+4*this._y1+a)/6);break;default:jU(this,i,a);break}this._x0=this._x1,this._x1=i,this._y0=this._y1,this._y1=a}};function e9e(i){return new JMt(i)}function tDt(i){this._context=i}tDt.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(i,a){switch(i=+i,a=+a,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var f=(this._x0+4*this._x1+i)/6,p=(this._y0+4*this._y1+a)/6;this._line?this._context.lineTo(f,p):this._context.moveTo(f,p);break;case 3:this._point=4;default:jU(this,i,a);break}this._x0=this._x1,this._x1=i,this._y0=this._y1,this._y1=a}};function n9e(i){return new tDt(i)}function eDt(i,a){this._basis=new $U(i),this._beta=a}eDt.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var i=this._x,a=this._y,f=i.length-1;if(f>0)for(var p=i[0],v=a[0],m=i[f]-p,b=a[f]-v,E=-1,C;++E<=f;)C=E/f,this._basis.point(this._beta*i[E]+(1-this._beta)*(p+C*m),this._beta*a[E]+(1-this._beta)*(v+C*b));this._x=this._y=null,this._basis.lineEnd()},point:function(i,a){this._x.push(+i),this._y.push(+a)}};const r9e=function i(a){function f(p){return a===1?new $U(p):new eDt(p,a)}return f.beta=function(p){return i(+p)},f}(.85);function zU(i,a,f){i._context.bezierCurveTo(i._x1+i._k*(i._x2-i._x0),i._y1+i._k*(i._y2-i._y0),i._x2+i._k*(i._x1-a),i._y2+i._k*(i._y1-f),i._x2,i._y2)}function x1t(i,a){this._context=i,this._k=(1-a)/6}x1t.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:zU(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(i,a){switch(i=+i,a=+a,this._point){case 0:this._point=1,this._line?this._context.lineTo(i,a):this._context.moveTo(i,a);break;case 1:this._point=2,this._x1=i,this._y1=a;break;case 2:this._point=3;default:zU(this,i,a);break}this._x0=this._x1,this._x1=this._x2,this._x2=i,this._y0=this._y1,this._y1=this._y2,this._y2=a}};const i9e=function i(a){function f(p){return new x1t(p,a)}return f.tension=function(p){return i(+p)},f}(0);function k1t(i,a){this._context=i,this._k=(1-a)/6}k1t.prototype={areaStart:Qx,areaEnd:Qx,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(i,a){switch(i=+i,a=+a,this._point){case 0:this._point=1,this._x3=i,this._y3=a;break;case 1:this._point=2,this._context.moveTo(this._x4=i,this._y4=a);break;case 2:this._point=3,this._x5=i,this._y5=a;break;default:zU(this,i,a);break}this._x0=this._x1,this._x1=this._x2,this._x2=i,this._y0=this._y1,this._y1=this._y2,this._y2=a}};const s9e=function i(a){function f(p){return new k1t(p,a)}return f.tension=function(p){return i(+p)},f}(0);function E1t(i,a){this._context=i,this._k=(1-a)/6}E1t.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(i,a){switch(i=+i,a=+a,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:zU(this,i,a);break}this._x0=this._x1,this._x1=this._x2,this._x2=i,this._y0=this._y1,this._y1=this._y2,this._y2=a}};const a9e=function i(a){function f(p){return new E1t(p,a)}return f.tension=function(p){return i(+p)},f}(0);function T1t(i,a,f){var p=i._x1,v=i._y1,m=i._x2,b=i._y2;if(i._l01_a>m0){var E=2*i._l01_2a+3*i._l01_a*i._l12_a+i._l12_2a,C=3*i._l01_a*(i._l01_a+i._l12_a);p=(p*E-i._x0*i._l12_2a+i._x2*i._l01_2a)/C,v=(v*E-i._y0*i._l12_2a+i._y2*i._l01_2a)/C}if(i._l23_a>m0){var D=2*i._l23_2a+3*i._l23_a*i._l12_a+i._l12_2a,P=3*i._l23_a*(i._l23_a+i._l12_a);m=(m*D+i._x1*i._l23_2a-a*i._l12_2a)/P,b=(b*D+i._y1*i._l23_2a-f*i._l12_2a)/P}i._context.bezierCurveTo(p,v,m,b,i._x2,i._y2)}function nDt(i,a){this._context=i,this._alpha=a}nDt.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(i,a){if(i=+i,a=+a,this._point){var f=this._x2-i,p=this._y2-a;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(f*f+p*p,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(i,a):this._context.moveTo(i,a);break;case 1:this._point=2;break;case 2:this._point=3;default:T1t(this,i,a);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=i,this._y0=this._y1,this._y1=this._y2,this._y2=a}};const o9e=function i(a){function f(p){return a?new nDt(p,a):new x1t(p,0)}return f.alpha=function(p){return i(+p)},f}(.5);function rDt(i,a){this._context=i,this._alpha=a}rDt.prototype={areaStart:Qx,areaEnd:Qx,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(i,a){if(i=+i,a=+a,this._point){var f=this._x2-i,p=this._y2-a;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(f*f+p*p,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=i,this._y3=a;break;case 1:this._point=2,this._context.moveTo(this._x4=i,this._y4=a);break;case 2:this._point=3,this._x5=i,this._y5=a;break;default:T1t(this,i,a);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=i,this._y0=this._y1,this._y1=this._y2,this._y2=a}};const c9e=function i(a){function f(p){return a?new rDt(p,a):new k1t(p,0)}return f.alpha=function(p){return i(+p)},f}(.5);function iDt(i,a){this._context=i,this._alpha=a}iDt.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(i,a){if(i=+i,a=+a,this._point){var f=this._x2-i,p=this._y2-a;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(f*f+p*p,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:T1t(this,i,a);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=i,this._y0=this._y1,this._y1=this._y2,this._y2=a}};const u9e=function i(a){function f(p){return a?new iDt(p,a):new E1t(p,0)}return f.alpha=function(p){return i(+p)},f}(.5);function sDt(i){this._context=i}sDt.prototype={areaStart:Qx,areaEnd:Qx,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(i,a){i=+i,a=+a,this._point?this._context.lineTo(i,a):(this._point=1,this._context.moveTo(i,a))}};function l9e(i){return new sDt(i)}function aDt(i){return i<0?-1:1}function oDt(i,a,f){var p=i._x1-i._x0,v=a-i._x1,m=(i._y1-i._y0)/(p||v<0&&-0),b=(f-i._y1)/(v||p<0&&-0),E=(m*v+b*p)/(p+v);return(aDt(m)+aDt(b))*Math.min(Math.abs(m),Math.abs(b),.5*Math.abs(E))||0}function cDt(i,a){var f=i._x1-i._x0;return f?(3*(i._y1-i._y0)/f-a)/2:a}function _1t(i,a,f){var p=i._x0,v=i._y0,m=i._x1,b=i._y1,E=(m-p)/3;i._context.bezierCurveTo(p+E,v+E*a,m-E,b-E*f,m,b)}function qU(i){this._context=i}qU.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:_1t(this,this._t0,cDt(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(i,a){var f=NaN;if(i=+i,a=+a,!(i===this._x1&&a===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(i,a):this._context.moveTo(i,a);break;case 1:this._point=2;break;case 2:this._point=3,_1t(this,cDt(this,f=oDt(this,i,a)),f);break;default:_1t(this,this._t0,f=oDt(this,i,a));break}this._x0=this._x1,this._x1=i,this._y0=this._y1,this._y1=a,this._t0=f}}};function uDt(i){this._context=new lDt(i)}(uDt.prototype=Object.create(qU.prototype)).point=function(i,a){qU.prototype.point.call(this,a,i)};function lDt(i){this._context=i}lDt.prototype={moveTo:function(i,a){this._context.moveTo(a,i)},closePath:function(){this._context.closePath()},lineTo:function(i,a){this._context.lineTo(a,i)},bezierCurveTo:function(i,a,f,p,v,m){this._context.bezierCurveTo(a,i,p,f,m,v)}};function h9e(i){return new qU(i)}function f9e(i){return new uDt(i)}function hDt(i){this._context=i}hDt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var i=this._x,a=this._y,f=i.length;if(f)if(this._line?this._context.lineTo(i[0],a[0]):this._context.moveTo(i[0],a[0]),f===2)this._context.lineTo(i[1],a[1]);else for(var p=fDt(i),v=fDt(a),m=0,b=1;b=0;--a)v[a]=(b[a]-v[a+1])/m[a];for(m[f-1]=(i[f]+v[f-1])/2,a=0;a=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(i,a){switch(i=+i,a=+a,this._point){case 0:this._point=1,this._line?this._context.lineTo(i,a):this._context.moveTo(i,a);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,a),this._context.lineTo(i,a);else{var f=this._x*(1-this._t)+i*this._t;this._context.lineTo(f,this._y),this._context.lineTo(f,a)}break}}this._x=i,this._y=a}};function g9e(i){return new HU(i,.5)}function p9e(i){return new HU(i,0)}function b9e(i){return new HU(i,1)}function NN(i,a,f){this.k=i,this.x=a,this.y=f}NN.prototype={constructor:NN,scale:function(i){return i===1?this:new NN(this.k*i,this.x,this.y)},translate:function(i,a){return i===0&a===0?this:new NN(this.k,this.x+this.k*i,this.y+this.k*a)},apply:function(i){return[i[0]*this.k+this.x,i[1]*this.k+this.y]},applyX:function(i){return i*this.k+this.x},applyY:function(i){return i*this.k+this.y},invert:function(i){return[(i[0]-this.x)/this.k,(i[1]-this.y)/this.k]},invertX:function(i){return(i-this.x)/this.k},invertY:function(i){return(i-this.y)/this.k},rescaleX:function(i){return i.copy().domain(i.range().map(this.invertX,this).map(i.invert,i))},rescaleY:function(i){return i.copy().domain(i.range().map(this.invertY,this).map(i.invert,i))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}},NN.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:dDt,setPrototypeOf:gDt,isFrozen:v9e,getPrototypeOf:w9e,getOwnPropertyDescriptor:m9e}=Object;let{freeze:ig,seal:Ww,create:y9e}=Object,{apply:C1t,construct:S1t}=typeof Reflect<"u"&&Reflect;C1t||(C1t=function(a,f,p){return a.apply(f,p)}),ig||(ig=function(a){return a}),Ww||(Ww=function(a){return a}),S1t||(S1t=function(a,f){return new a(...f)});const x9e=Ub(Array.prototype.forEach),pDt=Ub(Array.prototype.pop),PN=Ub(Array.prototype.push),VU=Ub(String.prototype.toLowerCase),A1t=Ub(String.prototype.toString),k9e=Ub(String.prototype.match),Kw=Ub(String.prototype.replace),E9e=Ub(String.prototype.indexOf),T9e=Ub(String.prototype.trim),I2=Ub(RegExp.prototype.test),FN=_9e(TypeError);function Ub(i){return function(a){for(var f=arguments.length,p=new Array(f>1?f-1:0),v=1;v/gm),M9e=Ww(/\${[\w\W]*}/gm),D9e=Ww(/^data-[\-\w.\u00B7-\uFFFF]/),I9e=Ww(/^aria-[\-\w]+$/),yDt=Ww(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),O9e=Ww(/^(?:\w+script|data):/i),N9e=Ww(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),xDt=Ww(/^html$/i);var kDt=Object.freeze({__proto__:null,MUSTACHE_EXPR:A9e,ERB_EXPR:L9e,TMPLIT_EXPR:M9e,DATA_ATTR:D9e,ARIA_ATTR:I9e,IS_ALLOWED_URI:yDt,IS_SCRIPT_OR_DATA:O9e,ATTR_WHITESPACE:N9e,DOCTYPE_NAME:xDt});const P9e=()=>typeof window>"u"?null:window,F9e=function(a,f){if(typeof a!="object"||typeof a.createPolicy!="function")return null;let p=null;const v="data-tt-policy-suffix";f&&f.hasAttribute(v)&&(p=f.getAttribute(v));const m="dompurify"+(p?"#"+p:"");try{return a.createPolicy(m,{createHTML(b){return b},createScriptURL(b){return b}})}catch{return console.warn("TrustedTypes policy "+m+" could not be created."),null}};function EDt(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:P9e();const a=Gi=>EDt(Gi);if(a.version="3.0.3",a.removed=[],!i||!i.document||i.document.nodeType!==9)return a.isSupported=!1,a;const f=i.document,p=f.currentScript;let{document:v}=i;const{DocumentFragment:m,HTMLTemplateElement:b,Node:E,Element:C,NodeFilter:D,NamedNodeMap:P=i.NamedNodeMap||i.MozNamedAttrMap,HTMLFormElement:B,DOMParser:j,trustedTypes:R}=i,H=C.prototype,Y=GU(H,"cloneNode"),it=GU(H,"nextSibling"),nt=GU(H,"childNodes"),st=GU(H,"parentNode");if(typeof b=="function"){const Gi=v.createElement("template");Gi.content&&Gi.content.ownerDocument&&(v=Gi.content.ownerDocument)}let pt,Tt="";const{implementation:kt,createNodeIterator:yt,createDocumentFragment:ht,getElementsByTagName:mt}=v,{importNode:rt}=f;let wt={};a.isSupported=typeof dDt=="function"&&typeof st=="function"&&kt&&kt.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:gt,ERB_EXPR:lt,TMPLIT_EXPR:_t,DATA_ATTR:X,ARIA_ATTR:Rt,IS_SCRIPT_OR_DATA:ft,ATTR_WHITESPACE:de}=kDt;let{IS_ALLOWED_URI:J}=kDt,ae=null;const Wt=Io({},[...bDt,...L1t,...M1t,...D1t,...vDt]);let It=null;const Nt=Io({},[...wDt,...I1t,...mDt,...UU]);let me=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}})),Ue=null,_n=null,_e=!0,rr=!0,Te=!1,ne=!0,Ee=!1,ye=!1,Vt=!1,Ae=!1,Gt=!1,un=!1,jt=!1,Ke=!0,oe=!1;const Or="user-content-";let Le=!0,Nr=!1,fe={},sr=null;const Yn=Io({},["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 tr=null;const ur=Io({},["audio","video","img","source","image","track"]);let gn=null;const En=Io({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Dr="http://www.w3.org/1998/Math/MathML",hr="http://www.w3.org/2000/svg",Ki="http://www.w3.org/1999/xhtml";let Is=Ki,Ha=!1,hi=null;const qi=Io({},[Dr,hr,Ki],A1t);let zn;const Zn=["application/xhtml+xml","text/html"],Pr="text/html";let On,xi=null;const In=v.createElement("form"),rc=function(He){return He instanceof RegExp||He instanceof Function},qn=function(He){if(!(xi&&xi===He)){if((!He||typeof He!="object")&&(He={}),He=SA(He),zn=Zn.indexOf(He.PARSER_MEDIA_TYPE)===-1?zn=Pr:zn=He.PARSER_MEDIA_TYPE,On=zn==="application/xhtml+xml"?A1t:VU,ae="ALLOWED_TAGS"in He?Io({},He.ALLOWED_TAGS,On):Wt,It="ALLOWED_ATTR"in He?Io({},He.ALLOWED_ATTR,On):Nt,hi="ALLOWED_NAMESPACES"in He?Io({},He.ALLOWED_NAMESPACES,A1t):qi,gn="ADD_URI_SAFE_ATTR"in He?Io(SA(En),He.ADD_URI_SAFE_ATTR,On):En,tr="ADD_DATA_URI_TAGS"in He?Io(SA(ur),He.ADD_DATA_URI_TAGS,On):ur,sr="FORBID_CONTENTS"in He?Io({},He.FORBID_CONTENTS,On):Yn,Ue="FORBID_TAGS"in He?Io({},He.FORBID_TAGS,On):{},_n="FORBID_ATTR"in He?Io({},He.FORBID_ATTR,On):{},fe="USE_PROFILES"in He?He.USE_PROFILES:!1,_e=He.ALLOW_ARIA_ATTR!==!1,rr=He.ALLOW_DATA_ATTR!==!1,Te=He.ALLOW_UNKNOWN_PROTOCOLS||!1,ne=He.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ee=He.SAFE_FOR_TEMPLATES||!1,ye=He.WHOLE_DOCUMENT||!1,Gt=He.RETURN_DOM||!1,un=He.RETURN_DOM_FRAGMENT||!1,jt=He.RETURN_TRUSTED_TYPE||!1,Ae=He.FORCE_BODY||!1,Ke=He.SANITIZE_DOM!==!1,oe=He.SANITIZE_NAMED_PROPS||!1,Le=He.KEEP_CONTENT!==!1,Nr=He.IN_PLACE||!1,J=He.ALLOWED_URI_REGEXP||yDt,Is=He.NAMESPACE||Ki,me=He.CUSTOM_ELEMENT_HANDLING||{},He.CUSTOM_ELEMENT_HANDLING&&rc(He.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(me.tagNameCheck=He.CUSTOM_ELEMENT_HANDLING.tagNameCheck),He.CUSTOM_ELEMENT_HANDLING&&rc(He.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(me.attributeNameCheck=He.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),He.CUSTOM_ELEMENT_HANDLING&&typeof He.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(me.allowCustomizedBuiltInElements=He.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ee&&(rr=!1),un&&(Gt=!0),fe&&(ae=Io({},[...vDt]),It=[],fe.html===!0&&(Io(ae,bDt),Io(It,wDt)),fe.svg===!0&&(Io(ae,L1t),Io(It,I1t),Io(It,UU)),fe.svgFilters===!0&&(Io(ae,M1t),Io(It,I1t),Io(It,UU)),fe.mathMl===!0&&(Io(ae,D1t),Io(It,mDt),Io(It,UU))),He.ADD_TAGS&&(ae===Wt&&(ae=SA(ae)),Io(ae,He.ADD_TAGS,On)),He.ADD_ATTR&&(It===Nt&&(It=SA(It)),Io(It,He.ADD_ATTR,On)),He.ADD_URI_SAFE_ATTR&&Io(gn,He.ADD_URI_SAFE_ATTR,On),He.FORBID_CONTENTS&&(sr===Yn&&(sr=SA(sr)),Io(sr,He.FORBID_CONTENTS,On)),Le&&(ae["#text"]=!0),ye&&Io(ae,["html","head","body"]),ae.table&&(Io(ae,["tbody"]),delete Ue.tbody),He.TRUSTED_TYPES_POLICY){if(typeof He.TRUSTED_TYPES_POLICY.createHTML!="function")throw FN('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof He.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw FN('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');pt=He.TRUSTED_TYPES_POLICY,Tt=pt.createHTML("")}else pt===void 0&&(pt=F9e(R,p)),pt!==null&&typeof Tt=="string"&&(Tt=pt.createHTML(""));ig&&ig(He),xi=He}},ss=Io({},["mi","mo","mn","ms","mtext"]),Aa=Io({},["foreignobject","desc","title","annotation-xml"]),Ya=Io({},["title","style","font","a","script"]),Ea=Io({},L1t);Io(Ea,M1t),Io(Ea,C9e);const ga=Io({},D1t);Io(ga,S9e);const Es=function(He){let Er=st(He);(!Er||!Er.tagName)&&(Er={namespaceURI:Is,tagName:"template"});const ci=VU(He.tagName),Xa=VU(Er.tagName);return hi[He.namespaceURI]?He.namespaceURI===hr?Er.namespaceURI===Ki?ci==="svg":Er.namespaceURI===Dr?ci==="svg"&&(Xa==="annotation-xml"||ss[Xa]):!!Ea[ci]:He.namespaceURI===Dr?Er.namespaceURI===Ki?ci==="math":Er.namespaceURI===hr?ci==="math"&&Aa[Xa]:!!ga[ci]:He.namespaceURI===Ki?Er.namespaceURI===hr&&!Aa[Xa]||Er.namespaceURI===Dr&&!ss[Xa]?!1:!ga[ci]&&(Ya[ci]||!Ea[ci]):!!(zn==="application/xhtml+xml"&&hi[He.namespaceURI]):!1},Bs=function(He){PN(a.removed,{element:He});try{He.parentNode.removeChild(He)}catch{He.remove()}},Ta=function(He,Er){try{PN(a.removed,{attribute:Er.getAttributeNode(He),from:Er})}catch{PN(a.removed,{attribute:null,from:Er})}if(Er.removeAttribute(He),He==="is"&&!It[He])if(Gt||un)try{Bs(Er)}catch{}else try{Er.setAttribute(He,"")}catch{}},La=function(He){let Er,ci;if(Ae)He=""+He;else{const yu=k9e(He,/^[\r\n\t ]+/);ci=yu&&yu[0]}zn==="application/xhtml+xml"&&Is===Ki&&(He=''+He+"");const Xa=pt?pt.createHTML(He):He;if(Is===Ki)try{Er=new j().parseFromString(Xa,zn)}catch{}if(!Er||!Er.documentElement){Er=kt.createDocument(Is,"template",null);try{Er.documentElement.innerHTML=Ha?Tt:Xa}catch{}}const kc=Er.body||Er.documentElement;return He&&ci&&kc.insertBefore(v.createTextNode(ci),kc.childNodes[0]||null),Is===Ki?mt.call(Er,ye?"html":"body")[0]:ye?Er.documentElement:kc},Va=function(He){return yt.call(He.ownerDocument||He,He,D.SHOW_ELEMENT|D.SHOW_COMMENT|D.SHOW_TEXT,null,!1)},sv=function(He){return He instanceof B&&(typeof He.nodeName!="string"||typeof He.textContent!="string"||typeof He.removeChild!="function"||!(He.attributes instanceof P)||typeof He.removeAttribute!="function"||typeof He.setAttribute!="function"||typeof He.namespaceURI!="string"||typeof He.insertBefore!="function"||typeof He.hasChildNodes!="function")},rl=function(He){return typeof E=="object"?He instanceof E:He&&typeof He=="object"&&typeof He.nodeType=="number"&&typeof He.nodeName=="string"},mu=function(He,Er,ci){wt[He]&&x9e(wt[He],Xa=>{Xa.call(a,Er,ci,xi)})},As=function(He){let Er;if(mu("beforeSanitizeElements",He,null),sv(He))return Bs(He),!0;const ci=On(He.nodeName);if(mu("uponSanitizeElement",He,{tagName:ci,allowedTags:ae}),He.hasChildNodes()&&!rl(He.firstElementChild)&&(!rl(He.content)||!rl(He.content.firstElementChild))&&I2(/<[/\w]/g,He.innerHTML)&&I2(/<[/\w]/g,He.textContent))return Bs(He),!0;if(!ae[ci]||Ue[ci]){if(!Ue[ci]&&sd(ci)&&(me.tagNameCheck instanceof RegExp&&I2(me.tagNameCheck,ci)||me.tagNameCheck instanceof Function&&me.tagNameCheck(ci)))return!1;if(Le&&!sr[ci]){const Xa=st(He)||He.parentNode,kc=nt(He)||He.childNodes;if(kc&&Xa){const yu=kc.length;for(let mo=yu-1;mo>=0;--mo)Xa.insertBefore(Y(kc[mo],!0),it(He))}}return Bs(He),!0}return He instanceof C&&!Es(He)||(ci==="noscript"||ci==="noembed")&&I2(/<\/no(script|embed)/i,He.innerHTML)?(Bs(He),!0):(Ee&&He.nodeType===3&&(Er=He.textContent,Er=Kw(Er,gt," "),Er=Kw(Er,lt," "),Er=Kw(Er,_t," "),He.textContent!==Er&&(PN(a.removed,{element:He.cloneNode()}),He.textContent=Er)),mu("afterSanitizeElements",He,null),!1)},gp=function(He,Er,ci){if(Ke&&(Er==="id"||Er==="name")&&(ci in v||ci in In))return!1;if(!(rr&&!_n[Er]&&I2(X,Er))){if(!(_e&&I2(Rt,Er))){if(!It[Er]||_n[Er]){if(!(sd(He)&&(me.tagNameCheck instanceof RegExp&&I2(me.tagNameCheck,He)||me.tagNameCheck instanceof Function&&me.tagNameCheck(He))&&(me.attributeNameCheck instanceof RegExp&&I2(me.attributeNameCheck,Er)||me.attributeNameCheck instanceof Function&&me.attributeNameCheck(Er))||Er==="is"&&me.allowCustomizedBuiltInElements&&(me.tagNameCheck instanceof RegExp&&I2(me.tagNameCheck,ci)||me.tagNameCheck instanceof Function&&me.tagNameCheck(ci))))return!1}else if(!gn[Er]){if(!I2(J,Kw(ci,de,""))){if(!((Er==="src"||Er==="xlink:href"||Er==="href")&&He!=="script"&&E9e(ci,"data:")===0&&tr[He])){if(!(Te&&!I2(ft,Kw(ci,de,"")))){if(ci)return!1}}}}}}return!0},sd=function(He){return He.indexOf("-")>0},Rl=function(He){let Er,ci,Xa,kc;mu("beforeSanitizeAttributes",He,null);const{attributes:yu}=He;if(!yu)return;const mo={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:It};for(kc=yu.length;kc--;){Er=yu[kc];const{name:xu,namespaceURI:cf}=Er;if(ci=xu==="value"?Er.value:T9e(Er.value),Xa=On(xu),mo.attrName=Xa,mo.attrValue=ci,mo.keepAttr=!0,mo.forceKeepAttr=void 0,mu("uponSanitizeAttribute",He,mo),ci=mo.attrValue,mo.forceKeepAttr||(Ta(xu,He),!mo.keepAttr))continue;if(!ne&&I2(/\/>/i,ci)){Ta(xu,He);continue}Ee&&(ci=Kw(ci,gt," "),ci=Kw(ci,lt," "),ci=Kw(ci,_t," "));const x3=On(He.nodeName);if(gp(x3,Xa,ci)){if(oe&&(Xa==="id"||Xa==="name")&&(Ta(xu,He),ci=Or+ci),pt&&typeof R=="object"&&typeof R.getAttributeType=="function"&&!cf)switch(R.getAttributeType(x3,Xa)){case"TrustedHTML":{ci=pt.createHTML(ci);break}case"TrustedScriptURL":{ci=pt.createScriptURL(ci);break}}try{cf?He.setAttributeNS(cf,xu,ci):He.setAttribute(xu,ci),pDt(a.removed)}catch{}}}mu("afterSanitizeAttributes",He,null)},$u=function Gi(He){let Er;const ci=Va(He);for(mu("beforeSanitizeShadowDOM",He,null);Er=ci.nextNode();)mu("uponSanitizeShadowNode",Er,null),!As(Er)&&(Er.content instanceof m&&Gi(Er.content),Rl(Er));mu("afterSanitizeShadowDOM",He,null)};return a.sanitize=function(Gi){let He=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Er,ci,Xa,kc;if(Ha=!Gi,Ha&&(Gi=""),typeof Gi!="string"&&!rl(Gi))if(typeof Gi.toString=="function"){if(Gi=Gi.toString(),typeof Gi!="string")throw FN("dirty is not a string, aborting")}else throw FN("toString is not a function");if(!a.isSupported)return Gi;if(Vt||qn(He),a.removed=[],typeof Gi=="string"&&(Nr=!1),Nr){if(Gi.nodeName){const xu=On(Gi.nodeName);if(!ae[xu]||Ue[xu])throw FN("root node is forbidden and cannot be sanitized in-place")}}else if(Gi instanceof E)Er=La(""),ci=Er.ownerDocument.importNode(Gi,!0),ci.nodeType===1&&ci.nodeName==="BODY"||ci.nodeName==="HTML"?Er=ci:Er.appendChild(ci);else{if(!Gt&&!Ee&&!ye&&Gi.indexOf("<")===-1)return pt&&jt?pt.createHTML(Gi):Gi;if(Er=La(Gi),!Er)return Gt?null:jt?Tt:""}Er&&Ae&&Bs(Er.firstChild);const yu=Va(Nr?Gi:Er);for(;Xa=yu.nextNode();)As(Xa)||(Xa.content instanceof m&&$u(Xa.content),Rl(Xa));if(Nr)return Gi;if(Gt){if(un)for(kc=ht.call(Er.ownerDocument);Er.firstChild;)kc.appendChild(Er.firstChild);else kc=Er;return(It.shadowroot||It.shadowrootmod)&&(kc=rt.call(f,kc,!0)),kc}let mo=ye?Er.outerHTML:Er.innerHTML;return ye&&ae["!doctype"]&&Er.ownerDocument&&Er.ownerDocument.doctype&&Er.ownerDocument.doctype.name&&I2(xDt,Er.ownerDocument.doctype.name)&&(mo=" -`+mo),Ee&&(mo=Kw(mo,gt," "),mo=Kw(mo,lt," "),mo=Kw(mo,_t," ")),pt&&jt?pt.createHTML(mo):mo},a.setConfig=function(Gi){qn(Gi),Vt=!0},a.clearConfig=function(){xi=null,Vt=!1},a.isValidAttribute=function(Gi,He,Er){xi||qn({});const ci=On(Gi),Xa=On(He);return gp(ci,Xa,Er)},a.addHook=function(Gi,He){typeof He=="function"&&(wt[Gi]=wt[Gi]||[],PN(wt[Gi],He))},a.removeHook=function(Gi){if(wt[Gi])return pDt(wt[Gi])},a.removeHooks=function(Gi){wt[Gi]&&(wt[Gi]=[])},a.removeAllHooks=function(){wt={}},a}var WU=EDt();const KU=//gi,B9e=i=>i?CDt(i).replace(/\\n/g,"#br#").split("#br#"):[""],TDt=i=>WU.sanitize(i),_Dt=(i,a)=>{var f;if(((f=a.flowchart)==null?void 0:f.htmlLabels)!==!1){const p=a.securityLevel;p==="antiscript"||p==="strict"?i=TDt(i):p!=="loose"&&(i=CDt(i),i=i.replace(//g,">"),i=i.replace(/=/g,"="),i=z9e(i))}return i},sg=(i,a)=>i&&(a.dompurifyConfig?i=WU.sanitize(_Dt(i,a),a.dompurifyConfig).toString():i=WU.sanitize(_Dt(i,a),{FORBID_TAGS:["style"]}).toString(),i),R9e=(i,a)=>typeof i=="string"?sg(i,a):i.flat().map(f=>sg(f,a)),j9e=i=>KU.test(i),$9e=i=>i.split(KU),z9e=i=>i.replace(/#br#/g,"
"),CDt=i=>i.replace(KU,"#br#"),q9e=i=>{let a="";return i&&(a=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,a=a.replaceAll(/\(/g,"\\("),a=a.replaceAll(/\)/g,"\\)")),a},h1=i=>!(i===!1||["false","null","0"].includes(String(i).trim().toLowerCase())),H9e=function(...i){const a=i.filter(f=>!isNaN(f));return Math.max(...a)},V9e=function(...i){const a=i.filter(f=>!isNaN(f));return Math.min(...a)},BN=function(i){let a=i;if(i.split("~").length-1>=2){let f=a;do a=f,f=a.replace(/~([^\s,:;]+)~/,"<$1>");while(f!=a);return BN(f)}else return a},yi={getRows:B9e,sanitizeText:sg,sanitizeTextOrArray:R9e,hasBreaks:j9e,splitBreaks:$9e,lineBreakRegex:KU,removeScript:TDt,getUrl:q9e,evaluate:h1,getMax:H9e,getMin:V9e},YU={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:i=>i>=255?255:i<0?0:i,g:i=>i>=255?255:i<0?0:i,b:i=>i>=255?255:i<0?0:i,h:i=>i%360,s:i=>i>=100?100:i<0?0:i,l:i=>i>=100?100:i<0?0:i,a:i=>i>=1?1:i<0?0:i},toLinear:i=>{const a=i/255;return i>.03928?Math.pow((a+.055)/1.055,2.4):a/12.92},hue2rgb:(i,a,f)=>(f<0&&(f+=1),f>1&&(f-=1),f<1/6?i+(a-i)*6*f:f<1/2?a:f<2/3?i+(a-i)*(2/3-f)*6:i),hsl2rgb:({h:i,s:a,l:f},p)=>{if(!a)return f*2.55;i/=360,a/=100,f/=100;const v=f<.5?f*(1+a):f+a-f*a,m=2*f-v;switch(p){case"r":return YU.hue2rgb(m,v,i+1/3)*255;case"g":return YU.hue2rgb(m,v,i)*255;case"b":return YU.hue2rgb(m,v,i-1/3)*255}},rgb2hsl:({r:i,g:a,b:f},p)=>{i/=255,a/=255,f/=255;const v=Math.max(i,a,f),m=Math.min(i,a,f),b=(v+m)/2;if(p==="l")return b*100;if(v===m)return 0;const E=v-m,C=b>.5?E/(2-v-m):E/(v+m);if(p==="s")return C*100;switch(v){case i:return((a-f)/E+(aa>f?Math.min(a,Math.max(f,i)):Math.min(f,Math.max(a,i)),round:i=>Math.round(i*1e10)/1e10},unit:{dec2hex:i=>{const a=Math.round(i).toString(16);return a.length>1?a:`0${a}`}}},Zx={};for(let i=0;i<=255;i++)Zx[i]=Sa.unit.dec2hex(i);const y0={ALL:0,RGB:1,HSL:2};class G9e{constructor(){this.type=y0.ALL}get(){return this.type}set(a){if(this.type&&this.type!==a)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=a}reset(){this.type=y0.ALL}is(a){return this.type===a}}const U9e=G9e;class W9e{constructor(a,f){this.color=f,this.changed=!1,this.data=a,this.type=new U9e}set(a,f){return this.color=f,this.changed=!1,this.data=a,this.type.type=y0.ALL,this}_ensureHSL(){const a=this.data,{h:f,s:p,l:v}=a;f===void 0&&(a.h=Sa.channel.rgb2hsl(a,"h")),p===void 0&&(a.s=Sa.channel.rgb2hsl(a,"s")),v===void 0&&(a.l=Sa.channel.rgb2hsl(a,"l"))}_ensureRGB(){const a=this.data,{r:f,g:p,b:v}=a;f===void 0&&(a.r=Sa.channel.hsl2rgb(a,"r")),p===void 0&&(a.g=Sa.channel.hsl2rgb(a,"g")),v===void 0&&(a.b=Sa.channel.hsl2rgb(a,"b"))}get r(){const a=this.data,f=a.r;return!this.type.is(y0.HSL)&&f!==void 0?f:(this._ensureHSL(),Sa.channel.hsl2rgb(a,"r"))}get g(){const a=this.data,f=a.g;return!this.type.is(y0.HSL)&&f!==void 0?f:(this._ensureHSL(),Sa.channel.hsl2rgb(a,"g"))}get b(){const a=this.data,f=a.b;return!this.type.is(y0.HSL)&&f!==void 0?f:(this._ensureHSL(),Sa.channel.hsl2rgb(a,"b"))}get h(){const a=this.data,f=a.h;return!this.type.is(y0.RGB)&&f!==void 0?f:(this._ensureRGB(),Sa.channel.rgb2hsl(a,"h"))}get s(){const a=this.data,f=a.s;return!this.type.is(y0.RGB)&&f!==void 0?f:(this._ensureRGB(),Sa.channel.rgb2hsl(a,"s"))}get l(){const a=this.data,f=a.l;return!this.type.is(y0.RGB)&&f!==void 0?f:(this._ensureRGB(),Sa.channel.rgb2hsl(a,"l"))}get a(){return this.data.a}set r(a){this.type.set(y0.RGB),this.changed=!0,this.data.r=a}set g(a){this.type.set(y0.RGB),this.changed=!0,this.data.g=a}set b(a){this.type.set(y0.RGB),this.changed=!0,this.data.b=a}set h(a){this.type.set(y0.HSL),this.changed=!0,this.data.h=a}set s(a){this.type.set(y0.HSL),this.changed=!0,this.data.s=a}set l(a){this.type.set(y0.HSL),this.changed=!0,this.data.l=a}set a(a){this.changed=!0,this.data.a=a}}const K9e=W9e,XU=new K9e({r:0,g:0,b:0,a:0},"transparent"),SDt={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:i=>{if(i.charCodeAt(0)!==35)return;const a=i.match(SDt.re);if(!a)return;const f=a[1],p=parseInt(f,16),v=f.length,m=v%4===0,b=v>4,E=b?1:17,C=b?8:4,D=m?0:-1,P=b?255:15;return XU.set({r:(p>>C*(D+3)&P)*E,g:(p>>C*(D+2)&P)*E,b:(p>>C*(D+1)&P)*E,a:m?(p&P)*E/255:1},i)},stringify:i=>{const{r:a,g:f,b:p,a:v}=i;return v<1?`#${Zx[Math.round(a)]}${Zx[Math.round(f)]}${Zx[Math.round(p)]}${Zx[Math.round(v*255)]}`:`#${Zx[Math.round(a)]}${Zx[Math.round(f)]}${Zx[Math.round(p)]}`}},RN=SDt,QU={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:i=>{const a=i.match(QU.hueRe);if(a){const[,f,p]=a;switch(p){case"grad":return Sa.channel.clamp.h(parseFloat(f)*.9);case"rad":return Sa.channel.clamp.h(parseFloat(f)*180/Math.PI);case"turn":return Sa.channel.clamp.h(parseFloat(f)*360)}}return Sa.channel.clamp.h(parseFloat(i))},parse:i=>{const a=i.charCodeAt(0);if(a!==104&&a!==72)return;const f=i.match(QU.re);if(!f)return;const[,p,v,m,b,E]=f;return XU.set({h:QU._hue2deg(p),s:Sa.channel.clamp.s(parseFloat(v)),l:Sa.channel.clamp.l(parseFloat(m)),a:b?Sa.channel.clamp.a(E?parseFloat(b)/100:parseFloat(b)):1},i)},stringify:i=>{const{h:a,s:f,l:p,a:v}=i;return v<1?`hsla(${Sa.lang.round(a)}, ${Sa.lang.round(f)}%, ${Sa.lang.round(p)}%, ${v})`:`hsl(${Sa.lang.round(a)}, ${Sa.lang.round(f)}%, ${Sa.lang.round(p)}%)`}},ZU=QU,JU={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:i=>{i=i.toLowerCase();const a=JU.colors[i];if(a)return RN.parse(a)},stringify:i=>{const a=RN.stringify(i);for(const f in JU.colors)if(JU.colors[f]===a)return f}},ADt=JU,LDt={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:i=>{const a=i.charCodeAt(0);if(a!==114&&a!==82)return;const f=i.match(LDt.re);if(!f)return;const[,p,v,m,b,E,C,D,P]=f;return XU.set({r:Sa.channel.clamp.r(v?parseFloat(p)*2.55:parseFloat(p)),g:Sa.channel.clamp.g(b?parseFloat(m)*2.55:parseFloat(m)),b:Sa.channel.clamp.b(C?parseFloat(E)*2.55:parseFloat(E)),a:D?Sa.channel.clamp.a(P?parseFloat(D)/100:parseFloat(D)):1},i)},stringify:i=>{const{r:a,g:f,b:p,a:v}=i;return v<1?`rgba(${Sa.lang.round(a)}, ${Sa.lang.round(f)}, ${Sa.lang.round(p)}, ${Sa.lang.round(v)})`:`rgb(${Sa.lang.round(a)}, ${Sa.lang.round(f)}, ${Sa.lang.round(p)})`}},tW=LDt,Yw={format:{keyword:ADt,hex:RN,rgb:tW,rgba:tW,hsl:ZU,hsla:ZU},parse:i=>{if(typeof i!="string")return i;const a=RN.parse(i)||tW.parse(i)||ZU.parse(i)||ADt.parse(i);if(a)return a;throw new Error(`Unsupported color format: "${i}"`)},stringify:i=>!i.changed&&i.color?i.color:i.type.is(y0.HSL)||i.data.r===void 0?ZU.stringify(i):i.a<1||!Number.isInteger(i.r)||!Number.isInteger(i.g)||!Number.isInteger(i.b)?tW.stringify(i):RN.stringify(i)},MDt=(i,a)=>{const f=Yw.parse(i);for(const p in a)f[p]=Sa.channel.clamp[p](a[p]);return Yw.stringify(f)},AA=(i,a,f=0,p=1)=>{if(typeof i!="number")return MDt(i,{a});const v=XU.set({r:Sa.channel.clamp.r(i),g:Sa.channel.clamp.g(a),b:Sa.channel.clamp.b(f),a:Sa.channel.clamp.a(p)});return Yw.stringify(v)},Y9e=(i,a)=>Sa.lang.round(Yw.parse(i)[a]),X9e=i=>{const{r:a,g:f,b:p}=Yw.parse(i),v=.2126*Sa.channel.toLinear(a)+.7152*Sa.channel.toLinear(f)+.0722*Sa.channel.toLinear(p);return Sa.lang.round(v)},Q9e=i=>X9e(i)>=.5,X9=i=>!Q9e(i),DDt=(i,a,f)=>{const p=Yw.parse(i),v=p[a],m=Sa.channel.clamp[a](v+f);return v!==m&&(p[a]=m),Yw.stringify(p)},Ds=(i,a)=>DDt(i,"l",a),ta=(i,a)=>DDt(i,"l",-a),mn=(i,a)=>{const f=Yw.parse(i),p={};for(const v in a)a[v]&&(p[v]=f[v]+a[v]);return MDt(i,p)},Z9e=(i,a,f=50)=>{const{r:p,g:v,b:m,a:b}=Yw.parse(i),{r:E,g:C,b:D,a:P}=Yw.parse(a),B=f/100,j=B*2-1,R=b-P,Y=((j*R===-1?j:(j+R)/(1+j*R))+1)/2,it=1-Y,nt=p*Y+E*it,st=v*Y+C*it,pt=m*Y+D*it,Tt=b*B+P*(1-B);return AA(nt,st,pt,Tt)},Hi=(i,a=100)=>{const f=Yw.parse(i);return f.r=255-f.r,f.g=255-f.g,f.b=255-f.b,Z9e(f,i,a)},ag=(i,a)=>a?mn(i,{s:-40,l:10}):mn(i,{s:-40,l:-10}),eW="#ffffff",nW="#f2f2f2";let J9e=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||mn(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||mn(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ag(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ag(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ag(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ag(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||Hi(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Hi(this.tertiaryColor),this.lineColor=this.lineColor||Hi(this.background),this.arrowheadColor=this.arrowheadColor||Hi(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?ta(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||ta(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Hi(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||Ds(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||mn(this.primaryColor,{h:30}),this.cScale4=this.cScale4||mn(this.primaryColor,{h:60}),this.cScale5=this.cScale5||mn(this.primaryColor,{h:90}),this.cScale6=this.cScale6||mn(this.primaryColor,{h:120}),this.cScale7=this.cScale7||mn(this.primaryColor,{h:150}),this.cScale8=this.cScale8||mn(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||mn(this.primaryColor,{h:270}),this.cScale10=this.cScale10||mn(this.primaryColor,{h:300}),this.cScale11=this.cScale11||mn(this.primaryColor,{h:330}),this.darkMode)for(let f=0;f{this[p]=a[p]}),this.updateColors(),f.forEach(p=>{this[p]=a[p]})}};const tEe=i=>{const a=new J9e;return a.calculate(i),a};let eEe=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=Ds(this.primaryColor,16),this.tertiaryColor=mn(this.primaryColor,{h:-160}),this.primaryBorderColor=Hi(this.background),this.secondaryBorderColor=ag(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ag(this.tertiaryColor,this.darkMode),this.primaryTextColor=Hi(this.primaryColor),this.secondaryTextColor=Hi(this.secondaryColor),this.tertiaryTextColor=Hi(this.tertiaryColor),this.lineColor=Hi(this.background),this.textColor=Hi(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=Ds(Hi("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=AA(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=ta("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=ta(this.sectionBkgColor,10),this.taskBorderColor=AA(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=AA(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=Ds(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=Ds(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=Ds(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=mn(this.primaryColor,{h:64}),this.fillType3=mn(this.secondaryColor,{h:64}),this.fillType4=mn(this.primaryColor,{h:-64}),this.fillType5=mn(this.secondaryColor,{h:-64}),this.fillType6=mn(this.primaryColor,{h:128}),this.fillType7=mn(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||mn(this.primaryColor,{h:30}),this.cScale4=this.cScale4||mn(this.primaryColor,{h:60}),this.cScale5=this.cScale5||mn(this.primaryColor,{h:90}),this.cScale6=this.cScale6||mn(this.primaryColor,{h:120}),this.cScale7=this.cScale7||mn(this.primaryColor,{h:150}),this.cScale8=this.cScale8||mn(this.primaryColor,{h:210}),this.cScale9=this.cScale9||mn(this.primaryColor,{h:270}),this.cScale10=this.cScale10||mn(this.primaryColor,{h:300}),this.cScale11=this.cScale11||mn(this.primaryColor,{h:330});for(let a=0;a{this[p]=a[p]}),this.updateColors(),f.forEach(p=>{this[p]=a[p]})}};const nEe=i=>{const a=new eEe;return a.calculate(i),a};let rEe=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=mn(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=mn(this.primaryColor,{h:-160}),this.primaryBorderColor=ag(this.primaryColor,this.darkMode),this.secondaryBorderColor=ag(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ag(this.tertiaryColor,this.darkMode),this.primaryTextColor=Hi(this.primaryColor),this.secondaryTextColor=Hi(this.secondaryColor),this.tertiaryTextColor=Hi(this.tertiaryColor),this.lineColor=Hi(this.background),this.textColor=Hi(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=AA(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||mn(this.primaryColor,{h:30}),this.cScale4=this.cScale4||mn(this.primaryColor,{h:60}),this.cScale5=this.cScale5||mn(this.primaryColor,{h:90}),this.cScale6=this.cScale6||mn(this.primaryColor,{h:120}),this.cScale7=this.cScale7||mn(this.primaryColor,{h:150}),this.cScale8=this.cScale8||mn(this.primaryColor,{h:210}),this.cScale9=this.cScale9||mn(this.primaryColor,{h:270}),this.cScale10=this.cScale10||mn(this.primaryColor,{h:300}),this.cScale11=this.cScale11||mn(this.primaryColor,{h:330}),this["cScalePeer1"]=this["cScalePeer1"]||ta(this.secondaryColor,45),this["cScalePeer2"]=this["cScalePeer2"]||ta(this.tertiaryColor,40);for(let a=0;a{this[p]=a[p]}),this.updateColors(),f.forEach(p=>{this[p]=a[p]})}};const IDt=i=>{const a=new rEe;return a.calculate(i),a};let iEe=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=Ds("#cde498",10),this.primaryBorderColor=ag(this.primaryColor,this.darkMode),this.secondaryBorderColor=ag(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ag(this.tertiaryColor,this.darkMode),this.primaryTextColor=Hi(this.primaryColor),this.secondaryTextColor=Hi(this.secondaryColor),this.tertiaryTextColor=Hi(this.primaryColor),this.lineColor=Hi(this.background),this.textColor=Hi(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=ta(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||mn(this.primaryColor,{h:30}),this.cScale4=this.cScale4||mn(this.primaryColor,{h:60}),this.cScale5=this.cScale5||mn(this.primaryColor,{h:90}),this.cScale6=this.cScale6||mn(this.primaryColor,{h:120}),this.cScale7=this.cScale7||mn(this.primaryColor,{h:150}),this.cScale8=this.cScale8||mn(this.primaryColor,{h:210}),this.cScale9=this.cScale9||mn(this.primaryColor,{h:270}),this.cScale10=this.cScale10||mn(this.primaryColor,{h:300}),this.cScale11=this.cScale11||mn(this.primaryColor,{h:330}),this["cScalePeer1"]=this["cScalePeer1"]||ta(this.secondaryColor,45),this["cScalePeer2"]=this["cScalePeer2"]||ta(this.tertiaryColor,40);for(let a=0;a{this[p]=a[p]}),this.updateColors(),f.forEach(p=>{this[p]=a[p]})}};const sEe=i=>{const a=new iEe;return a.calculate(i),a};class aEe{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=Ds(this.contrast,55),this.background="#ffffff",this.tertiaryColor=mn(this.primaryColor,{h:-160}),this.primaryBorderColor=ag(this.primaryColor,this.darkMode),this.secondaryBorderColor=ag(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ag(this.tertiaryColor,this.darkMode),this.primaryTextColor=Hi(this.primaryColor),this.secondaryTextColor=Hi(this.secondaryColor),this.tertiaryTextColor=Hi(this.tertiaryColor),this.lineColor=Hi(this.background),this.textColor=Hi(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=Ds(this.contrast,55),this.border2=this.contrast,this.actorBorder=Ds(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 a=0;a{this[p]=a[p]}),this.updateColors(),f.forEach(p=>{this[p]=a[p]})}}const w5={base:{getThemeVariables:tEe},dark:{getThemeVariables:nEe},default:{getThemeVariables:IDt},forest:{getThemeVariables:sEe},neutral:{getThemeVariables:i=>{const a=new aEe;return a.calculate(i),a}}},Jx={theme:"default",themeVariables:w5.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};Jx.class&&(Jx.class.arrowMarkerAbsolute=Jx.arrowMarkerAbsolute),Jx.gitGraph&&(Jx.gitGraph.arrowMarkerAbsolute=Jx.arrowMarkerAbsolute);const ODt=(i,a="")=>Object.keys(i).reduce((f,p)=>Array.isArray(i[p])?f:typeof i[p]=="object"&&i[p]!==null?[...f,a+p,...ODt(i[p],"")]:[...f,a+p],[]),oEe=ODt(Jx,""),f1=Jx;/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function NDt(i){return typeof i>"u"||i===null}function cEe(i){return typeof i=="object"&&i!==null}function uEe(i){return Array.isArray(i)?i:NDt(i)?[]:[i]}function lEe(i,a){var f,p,v,m;if(a)for(m=Object.keys(a),f=0,p=m.length;fE&&(m=" ... ",a=p-E+m.length),f-p>E&&(b=" ...",f=p+E-b.length),{str:m+i.slice(a,f).replace(/\t/g,"→")+b,pos:p-a+m.length}}function N1t(i,a){return og.repeat(" ",a-i.length)+i}function mEe(i,a){if(a=Object.create(a||null),!i.buffer)return null;a.maxLength||(a.maxLength=79),typeof a.indent!="number"&&(a.indent=1),typeof a.linesBefore!="number"&&(a.linesBefore=3),typeof a.linesAfter!="number"&&(a.linesAfter=2);for(var f=/\r?\n|\r|\0/g,p=[0],v=[],m,b=-1;m=f.exec(i.buffer);)v.push(m.index),p.push(m.index+m[0].length),i.position<=m.index&&b<0&&(b=p.length-2);b<0&&(b=p.length-1);var E="",C,D,P=Math.min(i.line+a.linesAfter,v.length).toString().length,B=a.maxLength-(a.indent+P+3);for(C=1;C<=a.linesBefore&&!(b-C<0);C++)D=O1t(i.buffer,p[b-C],v[b-C],i.position-(p[b]-p[b-C]),B),E=og.repeat(" ",a.indent)+N1t((i.line-C+1).toString(),P)+" | "+D.str+` -`+E;for(D=O1t(i.buffer,p[b],v[b],i.position,B),E+=og.repeat(" ",a.indent)+N1t((i.line+1).toString(),P)+" | "+D.str+` -`,E+=og.repeat("-",a.indent+P+3+D.pos)+`^ -`,C=1;C<=a.linesAfter&&!(b+C>=v.length);C++)D=O1t(i.buffer,p[b+C],v[b+C],i.position-(p[b]-p[b+C]),B),E+=og.repeat(" ",a.indent)+N1t((i.line+C+1).toString(),P)+" | "+D.str+` -`;return E.replace(/\n$/,"")}var yEe=mEe,xEe=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],kEe=["scalar","sequence","mapping"];function EEe(i){var a={};return i!==null&&Object.keys(i).forEach(function(f){i[f].forEach(function(p){a[String(p)]=f})}),a}function TEe(i,a){if(a=a||{},Object.keys(a).forEach(function(f){if(xEe.indexOf(f)===-1)throw new m5('Unknown option "'+f+'" is met in definition of "'+i+'" YAML type.')}),this.options=a,this.tag=i,this.kind=a.kind||null,this.resolve=a.resolve||function(){return!0},this.construct=a.construct||function(f){return f},this.instanceOf=a.instanceOf||null,this.predicate=a.predicate||null,this.represent=a.represent||null,this.representName=a.representName||null,this.defaultStyle=a.defaultStyle||null,this.multi=a.multi||!1,this.styleAliases=EEe(a.styleAliases||null),kEe.indexOf(this.kind)===-1)throw new m5('Unknown kind "'+this.kind+'" is specified for "'+i+'" YAML type.')}var x0=TEe;function FDt(i,a){var f=[];return i[a].forEach(function(p){var v=f.length;f.forEach(function(m,b){m.tag===p.tag&&m.kind===p.kind&&m.multi===p.multi&&(v=b)}),f[v]=p}),f}function _Ee(){var i={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},a,f;function p(v){v.multi?(i.multi[v.kind].push(v),i.multi.fallback.push(v)):i[v.kind][v.tag]=i.fallback[v.tag]=v}for(a=0,f=arguments.length;a=0?"0b"+i.toString(2):"-0b"+i.toString(2).slice(1)},octal:function(i){return i>=0?"0o"+i.toString(8):"-0o"+i.toString(8).slice(1)},decimal:function(i){return i.toString(10)},hexadecimal:function(i){return i>=0?"0x"+i.toString(16).toUpperCase():"-0x"+i.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),GEe=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function UEe(i){return!(i===null||!GEe.test(i)||i[i.length-1]==="_")}function WEe(i){var a,f;return a=i.replace(/_/g,"").toLowerCase(),f=a[0]==="-"?-1:1,"+-".indexOf(a[0])>=0&&(a=a.slice(1)),a===".inf"?f===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:a===".nan"?NaN:f*parseFloat(a,10)}var KEe=/^[-+]?[0-9]+e/;function YEe(i,a){var f;if(isNaN(i))switch(a){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===i)switch(a){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===i)switch(a){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(og.isNegativeZero(i))return"-0.0";return f=i.toString(10),KEe.test(f)?f.replace("e",".e"):f}function XEe(i){return Object.prototype.toString.call(i)==="[object Number]"&&(i%1!==0||og.isNegativeZero(i))}var QEe=new x0("tag:yaml.org,2002:float",{kind:"scalar",resolve:UEe,construct:WEe,predicate:XEe,represent:YEe,defaultStyle:"lowercase"}),ZEe=BDt.extend({implicit:[OEe,BEe,VEe,QEe]}),JEe=ZEe,RDt=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),jDt=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 tTe(i){return i===null?!1:RDt.exec(i)!==null||jDt.exec(i)!==null}function eTe(i){var a,f,p,v,m,b,E,C=0,D=null,P,B,j;if(a=RDt.exec(i),a===null&&(a=jDt.exec(i)),a===null)throw new Error("Date resolve error");if(f=+a[1],p=+a[2]-1,v=+a[3],!a[4])return new Date(Date.UTC(f,p,v));if(m=+a[4],b=+a[5],E=+a[6],a[7]){for(C=a[7].slice(0,3);C.length<3;)C+="0";C=+C}return a[9]&&(P=+a[10],B=+(a[11]||0),D=(P*60+B)*6e4,a[9]==="-"&&(D=-D)),j=new Date(Date.UTC(f,p,v,m,b,E,C)),D&&j.setTime(j.getTime()-D),j}function nTe(i){return i.toISOString()}var rTe=new x0("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:tTe,construct:eTe,instanceOf:Date,represent:nTe});function iTe(i){return i==="<<"||i===null}var sTe=new x0("tag:yaml.org,2002:merge",{kind:"scalar",resolve:iTe}),F1t=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= -\r`;function aTe(i){if(i===null)return!1;var a,f,p=0,v=i.length,m=F1t;for(f=0;f64)){if(a<0)return!1;p+=6}return p%8===0}function oTe(i){var a,f,p=i.replace(/[\r\n=]/g,""),v=p.length,m=F1t,b=0,E=[];for(a=0;a>16&255),E.push(b>>8&255),E.push(b&255)),b=b<<6|m.indexOf(p.charAt(a));return f=v%4*6,f===0?(E.push(b>>16&255),E.push(b>>8&255),E.push(b&255)):f===18?(E.push(b>>10&255),E.push(b>>2&255)):f===12&&E.push(b>>4&255),new Uint8Array(E)}function cTe(i){var a="",f=0,p,v,m=i.length,b=F1t;for(p=0;p>18&63],a+=b[f>>12&63],a+=b[f>>6&63],a+=b[f&63]),f=(f<<8)+i[p];return v=m%3,v===0?(a+=b[f>>18&63],a+=b[f>>12&63],a+=b[f>>6&63],a+=b[f&63]):v===2?(a+=b[f>>10&63],a+=b[f>>4&63],a+=b[f<<2&63],a+=b[64]):v===1&&(a+=b[f>>2&63],a+=b[f<<4&63],a+=b[64],a+=b[64]),a}function uTe(i){return Object.prototype.toString.call(i)==="[object Uint8Array]"}var lTe=new x0("tag:yaml.org,2002:binary",{kind:"scalar",resolve:aTe,construct:oTe,predicate:uTe,represent:cTe}),hTe=Object.prototype.hasOwnProperty,fTe=Object.prototype.toString;function dTe(i){if(i===null)return!0;var a=[],f,p,v,m,b,E=i;for(f=0,p=E.length;f>10)+55296,(i-65536&1023)+56320)}for(var WDt=new Array(256),KDt=new Array(256),MA=0;MA<256;MA++)WDt[MA]=UDt(MA)?1:0,KDt[MA]=UDt(MA);function OTe(i,a){this.input=i,this.filename=a.filename||null,this.schema=a.schema||TTe,this.onWarning=a.onWarning||null,this.legacy=a.legacy||!1,this.json=a.json||!1,this.listener=a.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=i.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function YDt(i,a){var f={name:i.filename,buffer:i.input.slice(0,-1),position:i.position,line:i.line,column:i.position-i.lineStart};return f.snippet=yEe(f),new m5(a,f)}function $s(i,a){throw YDt(i,a)}function sW(i,a){i.onWarning&&i.onWarning.call(null,YDt(i,a))}var XDt={YAML:function(a,f,p){var v,m,b;a.version!==null&&$s(a,"duplication of %YAML directive"),p.length!==1&&$s(a,"YAML directive accepts exactly one argument"),v=/^([0-9]+)\.([0-9]+)$/.exec(p[0]),v===null&&$s(a,"ill-formed argument of the YAML directive"),m=parseInt(v[1],10),b=parseInt(v[2],10),m!==1&&$s(a,"unacceptable YAML version of the document"),a.version=p[0],a.checkLineBreaks=b<2,b!==1&&b!==2&&sW(a,"unsupported YAML version of the document")},TAG:function(a,f,p){var v,m;p.length!==2&&$s(a,"TAG directive accepts exactly two arguments"),v=p[0],m=p[1],HDt.test(v)||$s(a,"ill-formed tag handle (first argument) of the TAG directive"),tk.call(a.tagMap,v)&&$s(a,'there is a previously declared suffix for "'+v+'" tag handle'),VDt.test(m)||$s(a,"ill-formed tag prefix (second argument) of the TAG directive");try{m=decodeURIComponent(m)}catch{$s(a,"tag prefix is malformed: "+m)}a.tagMap[v]=m}};function ek(i,a,f,p){var v,m,b,E;if(a1&&(i.result+=og.repeat(` -`,a-1))}function NTe(i,a,f){var p,v,m,b,E,C,D,P,B=i.kind,j=i.result,R;if(R=i.input.charCodeAt(i.position),sp(R)||LA(R)||R===35||R===38||R===42||R===33||R===124||R===62||R===39||R===34||R===37||R===64||R===96||(R===63||R===45)&&(v=i.input.charCodeAt(i.position+1),sp(v)||f&&LA(v)))return!1;for(i.kind="scalar",i.result="",m=b=i.position,E=!1;R!==0;){if(R===58){if(v=i.input.charCodeAt(i.position+1),sp(v)||f&&LA(v))break}else if(R===35){if(p=i.input.charCodeAt(i.position-1),sp(p))break}else{if(i.position===i.lineStart&&aW(i)||f&&LA(R))break;if(c3(R))if(C=i.line,D=i.lineStart,P=i.lineIndent,Pf(i,!1,-1),i.lineIndent>=a){E=!0,R=i.input.charCodeAt(i.position);continue}else{i.position=b,i.line=C,i.lineStart=D,i.lineIndent=P;break}}E&&(ek(i,m,b,!1),j1t(i,i.line-C),m=b=i.position,E=!1),Q9(R)||(b=i.position+1),R=i.input.charCodeAt(++i.position)}return ek(i,m,b,!1),i.result?!0:(i.kind=B,i.result=j,!1)}function PTe(i,a){var f,p,v;if(f=i.input.charCodeAt(i.position),f!==39)return!1;for(i.kind="scalar",i.result="",i.position++,p=v=i.position;(f=i.input.charCodeAt(i.position))!==0;)if(f===39)if(ek(i,p,i.position,!0),f=i.input.charCodeAt(++i.position),f===39)p=i.position,i.position++,v=i.position;else return!0;else c3(f)?(ek(i,p,v,!0),j1t(i,Pf(i,!1,a)),p=v=i.position):i.position===i.lineStart&&aW(i)?$s(i,"unexpected end of the document within a single quoted scalar"):(i.position++,v=i.position);$s(i,"unexpected end of the stream within a single quoted scalar")}function FTe(i,a){var f,p,v,m,b,E;if(E=i.input.charCodeAt(i.position),E!==34)return!1;for(i.kind="scalar",i.result="",i.position++,f=p=i.position;(E=i.input.charCodeAt(i.position))!==0;){if(E===34)return ek(i,f,i.position,!0),i.position++,!0;if(E===92){if(ek(i,f,i.position,!0),E=i.input.charCodeAt(++i.position),c3(E))Pf(i,!1,a);else if(E<256&&WDt[E])i.result+=KDt[E],i.position++;else if((b=MTe(E))>0){for(v=b,m=0;v>0;v--)E=i.input.charCodeAt(++i.position),(b=LTe(E))>=0?m=(m<<4)+b:$s(i,"expected hexadecimal character");i.result+=ITe(m),i.position++}else $s(i,"unknown escape sequence");f=p=i.position}else c3(E)?(ek(i,f,p,!0),j1t(i,Pf(i,!1,a)),f=p=i.position):i.position===i.lineStart&&aW(i)?$s(i,"unexpected end of the document within a double quoted scalar"):(i.position++,p=i.position)}$s(i,"unexpected end of the stream within a double quoted scalar")}function BTe(i,a){var f=!0,p,v,m,b=i.tag,E,C=i.anchor,D,P,B,j,R,H=Object.create(null),Y,it,nt,st;if(st=i.input.charCodeAt(i.position),st===91)P=93,R=!1,E=[];else if(st===123)P=125,R=!0,E={};else return!1;for(i.anchor!==null&&(i.anchorMap[i.anchor]=E),st=i.input.charCodeAt(++i.position);st!==0;){if(Pf(i,!0,a),st=i.input.charCodeAt(i.position),st===P)return i.position++,i.tag=b,i.anchor=C,i.kind=R?"mapping":"sequence",i.result=E,!0;f?st===44&&$s(i,"expected the node content, but found ','"):$s(i,"missed comma between flow collection entries"),it=Y=nt=null,B=j=!1,st===63&&(D=i.input.charCodeAt(i.position+1),sp(D)&&(B=j=!0,i.position++,Pf(i,!0,a))),p=i.line,v=i.lineStart,m=i.position,IA(i,a,rW,!1,!0),it=i.tag,Y=i.result,Pf(i,!0,a),st=i.input.charCodeAt(i.position),(j||i.line===p)&&st===58&&(B=!0,st=i.input.charCodeAt(++i.position),Pf(i,!0,a),IA(i,a,rW,!1,!0),nt=i.result),R?DA(i,E,H,it,Y,nt,p,v,m):B?E.push(DA(i,null,H,it,Y,nt,p,v,m)):E.push(Y),Pf(i,!0,a),st=i.input.charCodeAt(i.position),st===44?(f=!0,st=i.input.charCodeAt(++i.position)):f=!1}$s(i,"unexpected end of the stream within a flow collection")}function RTe(i,a){var f,p,v=B1t,m=!1,b=!1,E=a,C=0,D=!1,P,B;if(B=i.input.charCodeAt(i.position),B===124)p=!1;else if(B===62)p=!0;else return!1;for(i.kind="scalar",i.result="";B!==0;)if(B=i.input.charCodeAt(++i.position),B===43||B===45)B1t===v?v=B===43?qDt:_Te:$s(i,"repeat of a chomping mode identifier");else if((P=DTe(B))>=0)P===0?$s(i,"bad explicit indentation width of a block scalar; it cannot be less than one"):b?$s(i,"repeat of an indentation width identifier"):(E=a+P-1,b=!0);else break;if(Q9(B)){do B=i.input.charCodeAt(++i.position);while(Q9(B));if(B===35)do B=i.input.charCodeAt(++i.position);while(!c3(B)&&B!==0)}for(;B!==0;){for(R1t(i),i.lineIndent=0,B=i.input.charCodeAt(i.position);(!b||i.lineIndentE&&(E=i.lineIndent),c3(B)){C++;continue}if(i.lineIndenta)&&C!==0)$s(i,"bad indentation of a sequence entry");else if(i.lineIndenta)&&(it&&(b=i.line,E=i.lineStart,C=i.position),IA(i,a,iW,!0,v)&&(it?H=i.result:Y=i.result),it||(DA(i,B,j,R,H,Y,b,E,C),R=H=Y=null),Pf(i,!0,-1),st=i.input.charCodeAt(i.position)),(i.line===m||i.lineIndent>a)&&st!==0)$s(i,"bad indentation of a mapping entry");else if(i.lineIndenta?C=1:i.lineIndent===a?C=0:i.lineIndenta?C=1:i.lineIndent===a?C=0:i.lineIndent tag; it should be "scalar", not "'+i.kind+'"'),B=0,j=i.implicitTypes.length;B"),i.result!==null&&H.kind!==i.kind&&$s(i,"unacceptable node kind for !<"+i.tag+'> tag; it should be "'+H.kind+'", not "'+i.kind+'"'),H.resolve(i.result,i.tag)?(i.result=H.construct(i.result,i.tag),i.anchor!==null&&(i.anchorMap[i.anchor]=i.result)):$s(i,"cannot resolve a node with !<"+i.tag+"> explicit tag")}return i.listener!==null&&i.listener("close",i),i.tag!==null||i.anchor!==null||P}function HTe(i){var a=i.position,f,p,v,m=!1,b;for(i.version=null,i.checkLineBreaks=i.legacy,i.tagMap=Object.create(null),i.anchorMap=Object.create(null);(b=i.input.charCodeAt(i.position))!==0&&(Pf(i,!0,-1),b=i.input.charCodeAt(i.position),!(i.lineIndent>0||b!==37));){for(m=!0,b=i.input.charCodeAt(++i.position),f=i.position;b!==0&&!sp(b);)b=i.input.charCodeAt(++i.position);for(p=i.input.slice(f,i.position),v=[],p.length<1&&$s(i,"directive name must not be less than one character in length");b!==0;){for(;Q9(b);)b=i.input.charCodeAt(++i.position);if(b===35){do b=i.input.charCodeAt(++i.position);while(b!==0&&!c3(b));break}if(c3(b))break;for(f=i.position;b!==0&&!sp(b);)b=i.input.charCodeAt(++i.position);v.push(i.input.slice(f,i.position))}b!==0&&R1t(i),tk.call(XDt,p)?XDt[p](i,p,v):sW(i,'unknown document directive "'+p+'"')}if(Pf(i,!0,-1),i.lineIndent===0&&i.input.charCodeAt(i.position)===45&&i.input.charCodeAt(i.position+1)===45&&i.input.charCodeAt(i.position+2)===45?(i.position+=3,Pf(i,!0,-1)):m&&$s(i,"directives end mark is expected"),IA(i,i.lineIndent-1,iW,!1,!0),Pf(i,!0,-1),i.checkLineBreaks&&STe.test(i.input.slice(a,i.position))&&sW(i,"non-ASCII line breaks are interpreted as content"),i.documents.push(i.result),i.position===i.lineStart&&aW(i)){i.input.charCodeAt(i.position)===46&&(i.position+=3,Pf(i,!0,-1));return}if(i.position"u"&&(f=a,a=null);var p=JDt(i,f);if(typeof a!="function")return p;for(var v=0,m=p.length;v$1t(i,m,f)),i):Array.isArray(a)&&Array.isArray(i)?(a.forEach(m=>{i.includes(m)||i.push(m)}),i):i===void 0||p<=0?i!=null&&typeof i=="object"&&typeof a=="object"?Object.assign(i,a):a:(a!==void 0&&typeof i=="object"&&typeof a=="object"&&Object.keys(a).forEach(m=>{typeof a[m]=="object"&&(i[m]===void 0||typeof i[m]=="object")?(i[m]===void 0&&(i[m]=Array.isArray(a[m])?[]:{}),i[m]=$1t(i[m],a[m],{depth:p-1,clobber:v})):(v||typeof i[m]!="object"&&typeof a[m]!="object")&&(i[m]=a[m])}),i)},rd=$1t,OA=Object.freeze(f1);let ap=rd({},OA),eIt,NA=[],$N=rd({},OA);const oW=(i,a)=>{let f=rd({},i),p={};for(const v of a)iIt(v),p=rd(p,v);if(f=rd(f,p),p.theme&&p.theme in w5){const v=rd({},eIt),m=rd(v.themeVariables||{},p.themeVariables);f.theme&&f.theme in w5&&(f.themeVariables=w5[f.theme].getThemeVariables(m))}return $N=f,cIt($N),$N},ZTe=i=>(ap=rd({},OA),ap=rd(ap,i),i.theme&&w5[i.theme]&&(ap.themeVariables=w5[i.theme].getThemeVariables(i.themeVariables)),oW(ap,NA),ap),JTe=i=>{eIt=rd({},i)},t_e=i=>(ap=rd(ap,i),oW(ap,NA),ap),nIt=()=>rd({},ap),rIt=i=>(cIt(i),rd($N,i),Oe()),Oe=()=>rd({},$N),iIt=i=>{["secure",...ap.secure??[]].forEach(a=>{i[a]!==void 0&&(zt.debug(`Denied attempt to modify a secure key ${a}`,i[a]),delete i[a])}),Object.keys(i).forEach(a=>{a.indexOf("__")===0&&delete i[a]}),Object.keys(i).forEach(a=>{typeof i[a]=="string"&&(i[a].includes("<")||i[a].includes(">")||i[a].includes("url(data:"))&&delete i[a],typeof i[a]=="object"&&iIt(i[a])})},sIt=i=>{i.fontFamily&&(i.themeVariables?i.themeVariables.fontFamily||(i.themeVariables={fontFamily:i.fontFamily}):i.themeVariables={fontFamily:i.fontFamily}),NA.push(i),oW(ap,NA)},cW=(i=ap)=>{NA=[],oW(i,NA)};var aIt=(i=>(i.LAZY_LOAD_DEPRECATED="The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",i))(aIt||{});const oIt={},e_e=i=>{oIt[i]||(zt.warn(aIt[i]),oIt[i]=!0)},cIt=i=>{i&&(i.lazyLoadedDiagrams||i.loadExternalDiagramsAtStartup)&&e_e("LAZY_LOAD_DEPRECATED")},n_e=function(i,a){for(let f of a)i.attr(f[0],f[1])},r_e=function(i,a,f){let p=new Map;return f?(p.set("width","100%"),p.set("style",`max-width: ${a}px;`)):(p.set("height",i),p.set("width",a)),p},Wb=function(i,a,f,p){const v=r_e(a,f,p);n_e(i,v)},Z9=function(i,a,f,p){const v=a.node().getBBox(),m=v.width,b=v.height;zt.info(`SVG bounds: ${m}x${b}`,v);let E=0,C=0;zt.info(`Graph bounds: ${E}x${C}`,i),E=m+f*2,C=b+f*2,zt.info(`Calculated bounds: ${E}x${C}`),Wb(a,C,E,p);const D=`${v.x-f} ${v.y-f} ${v.width+2*f} ${v.height+2*f}`;a.attr("viewBox",D)},uW={},i_e=(i,a,f)=>{let p="";return i in uW&&uW[i]?p=uW[i](f):zt.warn(`No theme found for ${i}`),` & { - font-family: ${f.fontFamily}; - font-size: ${f.fontSize}; - fill: ${f.textColor} +"use strict";var __esbuild_esm_mermaid=(()=>{var oxt=Object.create;var Z1=Object.defineProperty;var lxt=Object.getOwnPropertyDescriptor;var cxt=Object.getOwnPropertyNames;var uxt=Object.getPrototypeOf,hxt=Object.prototype.hasOwnProperty;var o=(e,t)=>Z1(e,"name",{value:t,configurable:!0});var R=(e,t)=>()=>(e&&(t=e(e=0)),t);var Ti=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),xr=(e,t)=>{for(var r in t)Z1(e,r,{get:t[r],enumerable:!0})},Zb=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of cxt(t))!hxt.call(e,i)&&i!==r&&Z1(e,i,{get:()=>t[i],enumerable:!(n=lxt(t,i))||n.enumerable});return e},wr=(e,t,r)=>(Zb(e,t,"default"),r&&Zb(r,t,"default")),Qi=(e,t,r)=>(r=e!=null?oxt(uxt(e)):{},Zb(t||!e||!e.__esModule?Z1(r,"default",{value:e,enumerable:!0}):r,e)),fxt=e=>Zb(Z1({},"__esModule",{value:!0}),e);var Jb=Ti((pS,mS)=>{"use strict";(function(e,t){typeof pS=="object"&&typeof mS<"u"?mS.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs=t()})(pS,function(){"use strict";var e=1e3,t=6e4,r=36e5,n="millisecond",i="second",a="minute",s="hour",l="day",u="week",h="month",f="quarter",d="year",p="date",m="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:o(function(k){var I=["th","st","nd","rd"],C=k%100;return"["+k+(I[(C-20)%10]||I[C]||I[0])+"]"},"ordinal")},x=o(function(k,I,C){var O=String(k);return!O||O.length>=I?k:""+Array(I+1-O.length).join(C)+k},"m"),b={s:x,z:o(function(k){var I=-k.utcOffset(),C=Math.abs(I),O=Math.floor(C/60),D=C%60;return(I<=0?"+":"-")+x(O,2,"0")+":"+x(D,2,"0")},"z"),m:o(function k(I,C){if(I.date()1)return k(F[0])}else{var B=I.name;S[B]=I,D=B}return!O&&D&&(w=D),D||!O&&w},"t"),A=o(function(k,I){if(E(k))return k.clone();var C=typeof I=="object"?I:{};return C.date=k,C.args=arguments,new M(C)},"O"),L=b;L.l=_,L.i=E,L.w=function(k,I){return A(k,{locale:I.$L,utc:I.$u,x:I.$x,$offset:I.$offset})};var M=function(){function k(C){this.$L=_(C.locale,null,!0),this.parse(C),this.$x=this.$x||C.x||{},this[T]=!0}o(k,"M");var I=k.prototype;return I.parse=function(C){this.$d=function(O){var D=O.date,P=O.utc;if(D===null)return new Date(NaN);if(L.u(D))return new Date;if(D instanceof Date)return new Date(D);if(typeof D=="string"&&!/Z$/i.test(D)){var F=D.match(g);if(F){var B=F[2]-1||0,G=(F[7]||"0").substring(0,3);return P?new Date(Date.UTC(F[1],B,F[3]||1,F[4]||0,F[5]||0,F[6]||0,G)):new Date(F[1],B,F[3]||1,F[4]||0,F[5]||0,F[6]||0,G)}}return new Date(D)}(C),this.init()},I.init=function(){var C=this.$d;this.$y=C.getFullYear(),this.$M=C.getMonth(),this.$D=C.getDate(),this.$W=C.getDay(),this.$H=C.getHours(),this.$m=C.getMinutes(),this.$s=C.getSeconds(),this.$ms=C.getMilliseconds()},I.$utils=function(){return L},I.isValid=function(){return this.$d.toString()!==m},I.isSame=function(C,O){var D=A(C);return this.startOf(O)<=D&&D<=this.endOf(O)},I.isAfter=function(C,O){return A(C){"use strict";Az=Qi(Jb(),1),nu={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},V={trace:o((...e)=>{},"trace"),debug:o((...e)=>{},"debug"),info:o((...e)=>{},"info"),warn:o((...e)=>{},"warn"),error:o((...e)=>{},"error"),fatal:o((...e)=>{},"fatal")},J1=o(function(e="fatal"){let t=nu.fatal;typeof e=="string"?e.toLowerCase()in nu&&(t=nu[e]):typeof e=="number"&&(t=e),V.trace=()=>{},V.debug=()=>{},V.info=()=>{},V.warn=()=>{},V.error=()=>{},V.fatal=()=>{},t<=nu.fatal&&(V.fatal=console.error?console.error.bind(console,So("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",So("FATAL"))),t<=nu.error&&(V.error=console.error?console.error.bind(console,So("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",So("ERROR"))),t<=nu.warn&&(V.warn=console.warn?console.warn.bind(console,So("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",So("WARN"))),t<=nu.info&&(V.info=console.info?console.info.bind(console,So("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",So("INFO"))),t<=nu.debug&&(V.debug=console.debug?console.debug.bind(console,So("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",So("DEBUG"))),t<=nu.trace&&(V.trace=console.debug?console.debug.bind(console,So("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",So("TRACE")))},"setLogLevel"),So=o(e=>`%c${(0,Az.default)().format("ss.SSS")} : ${e} : `,"format")});var dxt,hp,gS,_z,t4=R(()=>{"use strict";dxt=Object.freeze({left:0,top:0,width:16,height:16}),hp=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),gS=Object.freeze({...dxt,...hp}),_z=Object.freeze({...gS,body:"",hidden:!1})});var pxt,Lz,Dz=R(()=>{"use strict";t4();pxt=Object.freeze({width:null,height:null}),Lz=Object.freeze({...pxt,...hp})});var e4,yS,r4,Rz=R(()=>{"use strict";e4=/^[a-z0-9]+(-[a-z0-9]+)*$/,yS=o((e,t,r,n="")=>{let i=e.split(":");if(e.slice(0,1)==="@"){if(i.length<2||i.length>3)return null;n=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){let l=i.pop(),u=i.pop(),h={provider:i.length>0?i[0]:n,prefix:u,name:l};return t&&!r4(h)?null:h}let a=i[0],s=a.split("-");if(s.length>1){let l={provider:n,prefix:s.shift(),name:s.join("-")};return t&&!r4(l)?null:l}if(r&&n===""){let l={provider:n,prefix:"",name:a};return t&&!r4(l,r)?null:l}return null},"stringToIcon"),r4=o((e,t)=>e?!!((e.provider===""||e.provider.match(e4))&&(t&&e.prefix===""||e.prefix.match(e4))&&e.name.match(e4)):!1,"validateIconName")});function Nz(e,t){let r={};!e.hFlip!=!t.hFlip&&(r.hFlip=!0),!e.vFlip!=!t.vFlip&&(r.vFlip=!0);let n=((e.rotate||0)+(t.rotate||0))%4;return n&&(r.rotate=n),r}var Mz=R(()=>{"use strict";o(Nz,"mergeIconTransformations")});function vS(e,t){let r=Nz(e,t);for(let n in _z)n in hp?n in e&&!(n in r)&&(r[n]=hp[n]):n in t?r[n]=t[n]:n in e&&(r[n]=e[n]);return r}var Iz=R(()=>{"use strict";t4();Mz();o(vS,"mergeIconData")});function Oz(e,t){let r=e.icons,n=e.aliases||Object.create(null),i=Object.create(null);function a(s){if(r[s])return i[s]=[];if(!(s in i)){i[s]=null;let l=n[s]&&n[s].parent,u=l&&a(l);u&&(i[s]=[l].concat(u))}return i[s]}return o(a,"resolve"),(t||Object.keys(r).concat(Object.keys(n))).forEach(a),i}var Pz=R(()=>{"use strict";o(Oz,"getIconsTree")});function Bz(e,t,r){let n=e.icons,i=e.aliases||Object.create(null),a={};function s(l){a=vS(n[l]||i[l],a)}return o(s,"parse"),s(t),r.forEach(s),vS(e,a)}function xS(e,t){if(e.icons[t])return Bz(e,t,[]);let r=Oz(e,[t])[t];return r?Bz(e,t,r):null}var Fz=R(()=>{"use strict";Iz();Pz();o(Bz,"internalGetIconData");o(xS,"getIconData")});function bS(e,t,r){if(t===1)return e;if(r=r||100,typeof e=="number")return Math.ceil(e*t*r)/r;if(typeof e!="string")return e;let n=e.split(mxt);if(n===null||!n.length)return e;let i=[],a=n.shift(),s=gxt.test(a);for(;;){if(s){let l=parseFloat(a);isNaN(l)?i.push(a):i.push(Math.ceil(l*t*r)/r)}else i.push(a);if(a=n.shift(),a===void 0)return i.join("");s=!s}}var mxt,gxt,zz=R(()=>{"use strict";mxt=/(-?[0-9.]*[0-9]+[0-9.]*)/g,gxt=/^-?[0-9.]*[0-9]+[0-9.]*$/g;o(bS,"calculateSize")});function yxt(e,t="defs"){let r="",n=e.indexOf("<"+t);for(;n>=0;){let i=e.indexOf(">",n),a=e.indexOf("",a);if(s===-1)break;r+=e.slice(i+1,a).trim(),e=e.slice(0,n).trim()+e.slice(s+1)}return{defs:r,content:e}}function vxt(e,t){return e?""+e+""+t:t}function $z(e,t,r){let n=yxt(e);return vxt(n.defs,t+n.content+r)}var Gz=R(()=>{"use strict";o(yxt,"splitSVGDefs");o(vxt,"mergeDefsAndContent");o($z,"wrapSVGContent")});function wS(e,t){let r={...gS,...e},n={...Lz,...t},i={left:r.left,top:r.top,width:r.width,height:r.height},a=r.body;[r,n].forEach(y=>{let v=[],x=y.hFlip,b=y.vFlip,w=y.rotate;x?b?w+=2:(v.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),v.push("scale(-1 1)"),i.top=i.left=0):b&&(v.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),v.push("scale(1 -1)"),i.top=i.left=0);let S;switch(w<0&&(w-=Math.floor(w/4)*4),w=w%4,w){case 1:S=i.height/2+i.top,v.unshift("rotate(90 "+S.toString()+" "+S.toString()+")");break;case 2:v.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:S=i.width/2+i.left,v.unshift("rotate(-90 "+S.toString()+" "+S.toString()+")");break}w%2===1&&(i.left!==i.top&&(S=i.left,i.left=i.top,i.top=S),i.width!==i.height&&(S=i.width,i.width=i.height,i.height=S)),v.length&&(a=$z(a,'',""))});let s=n.width,l=n.height,u=i.width,h=i.height,f,d;s===null?(d=l===null?"1em":l==="auto"?h:l,f=bS(d,u/h)):(f=s==="auto"?u:s,d=l===null?bS(f,h/u):l==="auto"?h:l);let p={},m=o((y,v)=>{xxt(v)||(p[y]=v.toString())},"setAttr");m("width",f),m("height",d);let g=[i.left,i.top,u,h];return p.viewBox=g.join(" "),{attributes:p,viewBox:g,body:a}}var xxt,Vz=R(()=>{"use strict";t4();Dz();zz();Gz();xxt=o(e=>e==="unset"||e==="undefined"||e==="none","isUnsetKeyword");o(wS,"iconToSVG")});function TS(e,t=wxt){let r=[],n;for(;n=bxt.exec(e);)r.push(n[1]);if(!r.length)return e;let i="suffix"+(Math.random()*16777216|Date.now()).toString(16);return r.forEach(a=>{let s=typeof t=="function"?t(a):t+(Txt++).toString(),l=a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+l+')([")]|\\.[a-z])',"g"),"$1"+s+i+"$3")}),e=e.replace(new RegExp(i,"g"),""),e}var bxt,wxt,Txt,Uz=R(()=>{"use strict";bxt=/\sid="(\S+)"/g,wxt="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16),Txt=0;o(TS,"replaceIDs")});function kS(e,t){let r=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(let n in t)r+=" "+n+'="'+t[n]+'"';return'"+e+""}var Hz=R(()=>{"use strict";o(kS,"iconToHTML")});var Yz=Ti((Lae,Wz)=>{"use strict";var fp=1e3,dp=fp*60,pp=dp*60,Yf=pp*24,kxt=Yf*7,Ext=Yf*365.25;Wz.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return Cxt(e);if(r==="number"&&isFinite(e))return t.long?Axt(e):Sxt(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Cxt(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*Ext;case"weeks":case"week":case"w":return r*kxt;case"days":case"day":case"d":return r*Yf;case"hours":case"hour":case"hrs":case"hr":case"h":return r*pp;case"minutes":case"minute":case"mins":case"min":case"m":return r*dp;case"seconds":case"second":case"secs":case"sec":case"s":return r*fp;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}o(Cxt,"parse");function Sxt(e){var t=Math.abs(e);return t>=Yf?Math.round(e/Yf)+"d":t>=pp?Math.round(e/pp)+"h":t>=dp?Math.round(e/dp)+"m":t>=fp?Math.round(e/fp)+"s":e+"ms"}o(Sxt,"fmtShort");function Axt(e){var t=Math.abs(e);return t>=Yf?n4(e,t,Yf,"day"):t>=pp?n4(e,t,pp,"hour"):t>=dp?n4(e,t,dp,"minute"):t>=fp?n4(e,t,fp,"second"):e+" ms"}o(Axt,"fmtLong");function n4(e,t,r,n){var i=t>=r*1.5;return Math.round(e/r)+" "+n+(i?"s":"")}o(n4,"plural")});var Xz=Ti((Rae,qz)=>{"use strict";function _xt(e){r.debug=r,r.default=r,r.coerce=u,r.disable=a,r.enable=i,r.enabled=s,r.humanize=Yz(),r.destroy=h,Object.keys(e).forEach(f=>{r[f]=e[f]}),r.names=[],r.skips=[],r.formatters={};function t(f){let d=0;for(let p=0;p{if(E==="%%")return"%";S++;let A=r.formatters[_];if(typeof A=="function"){let L=v[S];E=A.call(x,L),v.splice(S,1),S--}return E}),r.formatArgs.call(x,v),(x.log||r.log).apply(x,v)}return o(y,"debug"),y.namespace=f,y.useColors=r.useColors(),y.color=r.selectColor(f),y.extend=n,y.destroy=r.destroy,Object.defineProperty(y,"enabled",{enumerable:!0,configurable:!1,get:o(()=>p!==null?p:(m!==r.namespaces&&(m=r.namespaces,g=r.enabled(f)),g),"get"),set:o(v=>{p=v},"set")}),typeof r.init=="function"&&r.init(y),y}o(r,"createDebug");function n(f,d){let p=r(this.namespace+(typeof d>"u"?":":d)+f);return p.log=this.log,p}o(n,"extend");function i(f){r.save(f),r.namespaces=f,r.names=[],r.skips=[];let d,p=(typeof f=="string"?f:"").split(/[\s,]+/),m=p.length;for(d=0;d"-"+d)].join(",");return r.enable(""),f}o(a,"disable");function s(f){if(f[f.length-1]==="*")return!0;let d,p;for(d=0,p=r.skips.length;d{"use strict";qs.formatArgs=Dxt;qs.save=Rxt;qs.load=Nxt;qs.useColors=Lxt;qs.storage=Mxt();qs.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();qs.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function Lxt(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}o(Lxt,"useColors");function Dxt(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+i4.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(1,0,t,"color: inherit");let r=0,n=0;e[0].replace(/%[a-zA-Z%]/g,i=>{i!=="%%"&&(r++,i==="%c"&&(n=r))}),e.splice(n,0,t)}o(Dxt,"formatArgs");qs.log=console.debug||console.log||(()=>{});function Rxt(e){try{e?qs.storage.setItem("debug",e):qs.storage.removeItem("debug")}catch{}}o(Rxt,"save");function Nxt(){let e;try{e=qs.storage.getItem("debug")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}o(Nxt,"load");function Mxt(){try{return localStorage}catch{}}o(Mxt,"localstorage");i4.exports=Xz()(qs);var{formatters:Ixt}=i4.exports;Ixt.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var Iae,Kz=R(()=>{"use strict";Rz();Fz();Vz();Uz();Hz();Iae=Qi(jz(),1)});var CS,ES,Qz,a4,Oxt,Ao,iu=R(()=>{"use strict";ce();Kz();CS={body:'?',height:80,width:80},ES=new Map,Qz=new Map,a4=o(e=>{for(let t of e){if(!t.name)throw new Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if(V.debug("Registering icon pack:",t.name),"loader"in t)Qz.set(t.name,t.loader);else if("icons"in t)ES.set(t.name,t.icons);else throw V.error("Invalid icon loader:",t),new Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),Oxt=o(async(e,t)=>{let r=yS(e,!0,t!==void 0);if(!r)throw new Error(`Invalid icon name: ${e}`);let n=r.prefix||t;if(!n)throw new Error(`Icon name must contain a prefix: ${e}`);let i=ES.get(n);if(!i){let s=Qz.get(n);if(!s)throw new Error(`Icon set not found: ${r.prefix}`);try{i={...await s(),prefix:n},ES.set(n,i)}catch(l){throw V.error(l),new Error(`Failed to load icon set: ${r.prefix}`)}}let a=xS(i,r.name);if(!a)throw new Error(`Icon not found: ${e}`);return a},"getRegisteredIconData"),Ao=o(async(e,t)=>{let r;try{r=await Oxt(e,t?.fallbackPrefix)}catch(a){V.error(a),r=CS}let n=wS(r,t);return kS(TS(n.body),n.attributes)},"getIconSVG")});function s4(e){for(var t=[],r=1;r{"use strict";o(s4,"dedent")});var o4,qf,Zz,l4=R(()=>{"use strict";o4=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,qf=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,Zz=/\s*%%.*\n/gm});var mp,AS=R(()=>{"use strict";mp=class extends Error{static{o(this,"UnknownDiagramError")}constructor(t){super(t),this.name="UnknownDiagramError"}}});var Xf,gp,c4,_S,Jz,jf=R(()=>{"use strict";ce();l4();AS();Xf={},gp=o(function(e,t){e=e.replace(o4,"").replace(qf,"").replace(Zz,` +`);for(let[r,{detector:n}]of Object.entries(Xf))if(n(e,t))return r;throw new mp(`No diagram type detected matching given configuration for text: ${e}`)},"detectType"),c4=o((...e)=>{for(let{id:t,detector:r,loader:n}of e)_S(t,r,n)},"registerLazyLoadedDiagrams"),_S=o((e,t,r)=>{Xf[e]&&V.warn(`Detector with key ${e} already exists. Overwriting.`),Xf[e]={detector:t,loader:r},V.debug(`Detector with key ${e} added${r?" with loader":""}`)},"addDetector"),Jz=o(e=>Xf[e].loader,"getDiagramLoader")});var ty,t$,LS=R(()=>{"use strict";ty=function(){var e=o(function(_t,dt,Y,ft){for(Y=Y||{},ft=_t.length;ft--;Y[_t[ft]]=dt);return Y},"o"),t=[1,24],r=[1,25],n=[1,26],i=[1,27],a=[1,28],s=[1,63],l=[1,64],u=[1,65],h=[1,66],f=[1,67],d=[1,68],p=[1,69],m=[1,29],g=[1,30],y=[1,31],v=[1,32],x=[1,33],b=[1,34],w=[1,35],S=[1,36],T=[1,37],E=[1,38],_=[1,39],A=[1,40],L=[1,41],M=[1,42],N=[1,43],k=[1,44],I=[1,45],C=[1,46],O=[1,47],D=[1,48],P=[1,50],F=[1,51],B=[1,52],G=[1,53],z=[1,54],W=[1,55],Q=[1,56],j=[1,57],at=[1,58],X=[1,59],J=[1,60],Z=[14,42],H=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],q=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],K=[1,82],ot=[1,83],ct=[1,84],ut=[1,85],et=[12,14,42],Mt=[12,14,33,42],it=[12,14,33,42,76,77,79,80],wt=[12,33],Ot=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],St={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:o(function(dt,Y,ft,mt,rt,ht,nt){var st=ht.length-1;switch(rt){case 3:mt.setDirection("TB");break;case 4:mt.setDirection("BT");break;case 5:mt.setDirection("RL");break;case 6:mt.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:mt.setC4Type(ht[st-3]);break;case 19:mt.setTitle(ht[st].substring(6)),this.$=ht[st].substring(6);break;case 20:mt.setAccDescription(ht[st].substring(15)),this.$=ht[st].substring(15);break;case 21:this.$=ht[st].trim(),mt.setTitle(this.$);break;case 22:case 23:this.$=ht[st].trim(),mt.setAccDescription(this.$);break;case 28:ht[st].splice(2,0,"ENTERPRISE"),mt.addPersonOrSystemBoundary(...ht[st]),this.$=ht[st];break;case 29:ht[st].splice(2,0,"SYSTEM"),mt.addPersonOrSystemBoundary(...ht[st]),this.$=ht[st];break;case 30:mt.addPersonOrSystemBoundary(...ht[st]),this.$=ht[st];break;case 31:ht[st].splice(2,0,"CONTAINER"),mt.addContainerBoundary(...ht[st]),this.$=ht[st];break;case 32:mt.addDeploymentNode("node",...ht[st]),this.$=ht[st];break;case 33:mt.addDeploymentNode("nodeL",...ht[st]),this.$=ht[st];break;case 34:mt.addDeploymentNode("nodeR",...ht[st]),this.$=ht[st];break;case 35:mt.popBoundaryParseStack();break;case 39:mt.addPersonOrSystem("person",...ht[st]),this.$=ht[st];break;case 40:mt.addPersonOrSystem("external_person",...ht[st]),this.$=ht[st];break;case 41:mt.addPersonOrSystem("system",...ht[st]),this.$=ht[st];break;case 42:mt.addPersonOrSystem("system_db",...ht[st]),this.$=ht[st];break;case 43:mt.addPersonOrSystem("system_queue",...ht[st]),this.$=ht[st];break;case 44:mt.addPersonOrSystem("external_system",...ht[st]),this.$=ht[st];break;case 45:mt.addPersonOrSystem("external_system_db",...ht[st]),this.$=ht[st];break;case 46:mt.addPersonOrSystem("external_system_queue",...ht[st]),this.$=ht[st];break;case 47:mt.addContainer("container",...ht[st]),this.$=ht[st];break;case 48:mt.addContainer("container_db",...ht[st]),this.$=ht[st];break;case 49:mt.addContainer("container_queue",...ht[st]),this.$=ht[st];break;case 50:mt.addContainer("external_container",...ht[st]),this.$=ht[st];break;case 51:mt.addContainer("external_container_db",...ht[st]),this.$=ht[st];break;case 52:mt.addContainer("external_container_queue",...ht[st]),this.$=ht[st];break;case 53:mt.addComponent("component",...ht[st]),this.$=ht[st];break;case 54:mt.addComponent("component_db",...ht[st]),this.$=ht[st];break;case 55:mt.addComponent("component_queue",...ht[st]),this.$=ht[st];break;case 56:mt.addComponent("external_component",...ht[st]),this.$=ht[st];break;case 57:mt.addComponent("external_component_db",...ht[st]),this.$=ht[st];break;case 58:mt.addComponent("external_component_queue",...ht[st]),this.$=ht[st];break;case 60:mt.addRel("rel",...ht[st]),this.$=ht[st];break;case 61:mt.addRel("birel",...ht[st]),this.$=ht[st];break;case 62:mt.addRel("rel_u",...ht[st]),this.$=ht[st];break;case 63:mt.addRel("rel_d",...ht[st]),this.$=ht[st];break;case 64:mt.addRel("rel_l",...ht[st]),this.$=ht[st];break;case 65:mt.addRel("rel_r",...ht[st]),this.$=ht[st];break;case 66:mt.addRel("rel_b",...ht[st]),this.$=ht[st];break;case 67:ht[st].splice(0,1),mt.addRel("rel",...ht[st]),this.$=ht[st];break;case 68:mt.updateElStyle("update_el_style",...ht[st]),this.$=ht[st];break;case 69:mt.updateRelStyle("update_rel_style",...ht[st]),this.$=ht[st];break;case 70:mt.updateLayoutConfig("update_layout_config",...ht[st]),this.$=ht[st];break;case 71:this.$=[ht[st]];break;case 72:ht[st].unshift(ht[st-1]),this.$=ht[st];break;case 73:case 75:this.$=ht[st].trim();break;case 74:let Tt={};Tt[ht[st-1].trim()]=ht[st].trim(),this.$=Tt;break;case 76:this.$="";break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:t,23:r,24:n,26:i,28:a,29:49,30:61,32:62,34:s,36:l,37:u,38:h,39:f,40:d,41:p,43:23,44:m,45:g,46:y,47:v,48:x,49:b,50:w,51:S,52:T,53:E,54:_,55:A,56:L,57:M,58:N,59:k,60:I,61:C,62:O,63:D,64:P,65:F,66:B,67:G,68:z,69:W,70:Q,71:j,72:at,73:X,74:J},{13:70,19:20,20:21,21:22,22:t,23:r,24:n,26:i,28:a,29:49,30:61,32:62,34:s,36:l,37:u,38:h,39:f,40:d,41:p,43:23,44:m,45:g,46:y,47:v,48:x,49:b,50:w,51:S,52:T,53:E,54:_,55:A,56:L,57:M,58:N,59:k,60:I,61:C,62:O,63:D,64:P,65:F,66:B,67:G,68:z,69:W,70:Q,71:j,72:at,73:X,74:J},{13:71,19:20,20:21,21:22,22:t,23:r,24:n,26:i,28:a,29:49,30:61,32:62,34:s,36:l,37:u,38:h,39:f,40:d,41:p,43:23,44:m,45:g,46:y,47:v,48:x,49:b,50:w,51:S,52:T,53:E,54:_,55:A,56:L,57:M,58:N,59:k,60:I,61:C,62:O,63:D,64:P,65:F,66:B,67:G,68:z,69:W,70:Q,71:j,72:at,73:X,74:J},{13:72,19:20,20:21,21:22,22:t,23:r,24:n,26:i,28:a,29:49,30:61,32:62,34:s,36:l,37:u,38:h,39:f,40:d,41:p,43:23,44:m,45:g,46:y,47:v,48:x,49:b,50:w,51:S,52:T,53:E,54:_,55:A,56:L,57:M,58:N,59:k,60:I,61:C,62:O,63:D,64:P,65:F,66:B,67:G,68:z,69:W,70:Q,71:j,72:at,73:X,74:J},{13:73,19:20,20:21,21:22,22:t,23:r,24:n,26:i,28:a,29:49,30:61,32:62,34:s,36:l,37:u,38:h,39:f,40:d,41:p,43:23,44:m,45:g,46:y,47:v,48:x,49:b,50:w,51:S,52:T,53:E,54:_,55:A,56:L,57:M,58:N,59:k,60:I,61:C,62:O,63:D,64:P,65:F,66:B,67:G,68:z,69:W,70:Q,71:j,72:at,73:X,74:J},{14:[1,74]},e(Z,[2,13],{43:23,29:49,30:61,32:62,20:75,34:s,36:l,37:u,38:h,39:f,40:d,41:p,44:m,45:g,46:y,47:v,48:x,49:b,50:w,51:S,52:T,53:E,54:_,55:A,56:L,57:M,58:N,59:k,60:I,61:C,62:O,63:D,64:P,65:F,66:B,67:G,68:z,69:W,70:Q,71:j,72:at,73:X,74:J}),e(Z,[2,14]),e(H,[2,16],{12:[1,76]}),e(Z,[2,36],{12:[1,77]}),e(q,[2,19]),e(q,[2,20]),{25:[1,78]},{27:[1,79]},e(q,[2,23]),{35:80,75:81,76:K,77:ot,79:ct,80:ut},{35:86,75:81,76:K,77:ot,79:ct,80:ut},{35:87,75:81,76:K,77:ot,79:ct,80:ut},{35:88,75:81,76:K,77:ot,79:ct,80:ut},{35:89,75:81,76:K,77:ot,79:ct,80:ut},{35:90,75:81,76:K,77:ot,79:ct,80:ut},{35:91,75:81,76:K,77:ot,79:ct,80:ut},{35:92,75:81,76:K,77:ot,79:ct,80:ut},{35:93,75:81,76:K,77:ot,79:ct,80:ut},{35:94,75:81,76:K,77:ot,79:ct,80:ut},{35:95,75:81,76:K,77:ot,79:ct,80:ut},{35:96,75:81,76:K,77:ot,79:ct,80:ut},{35:97,75:81,76:K,77:ot,79:ct,80:ut},{35:98,75:81,76:K,77:ot,79:ct,80:ut},{35:99,75:81,76:K,77:ot,79:ct,80:ut},{35:100,75:81,76:K,77:ot,79:ct,80:ut},{35:101,75:81,76:K,77:ot,79:ct,80:ut},{35:102,75:81,76:K,77:ot,79:ct,80:ut},{35:103,75:81,76:K,77:ot,79:ct,80:ut},{35:104,75:81,76:K,77:ot,79:ct,80:ut},e(et,[2,59]),{35:105,75:81,76:K,77:ot,79:ct,80:ut},{35:106,75:81,76:K,77:ot,79:ct,80:ut},{35:107,75:81,76:K,77:ot,79:ct,80:ut},{35:108,75:81,76:K,77:ot,79:ct,80:ut},{35:109,75:81,76:K,77:ot,79:ct,80:ut},{35:110,75:81,76:K,77:ot,79:ct,80:ut},{35:111,75:81,76:K,77:ot,79:ct,80:ut},{35:112,75:81,76:K,77:ot,79:ct,80:ut},{35:113,75:81,76:K,77:ot,79:ct,80:ut},{35:114,75:81,76:K,77:ot,79:ct,80:ut},{35:115,75:81,76:K,77:ot,79:ct,80:ut},{20:116,29:49,30:61,32:62,34:s,36:l,37:u,38:h,39:f,40:d,41:p,43:23,44:m,45:g,46:y,47:v,48:x,49:b,50:w,51:S,52:T,53:E,54:_,55:A,56:L,57:M,58:N,59:k,60:I,61:C,62:O,63:D,64:P,65:F,66:B,67:G,68:z,69:W,70:Q,71:j,72:at,73:X,74:J},{12:[1,118],33:[1,117]},{35:119,75:81,76:K,77:ot,79:ct,80:ut},{35:120,75:81,76:K,77:ot,79:ct,80:ut},{35:121,75:81,76:K,77:ot,79:ct,80:ut},{35:122,75:81,76:K,77:ot,79:ct,80:ut},{35:123,75:81,76:K,77:ot,79:ct,80:ut},{35:124,75:81,76:K,77:ot,79:ct,80:ut},{35:125,75:81,76:K,77:ot,79:ct,80:ut},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(Z,[2,15]),e(H,[2,17],{21:22,19:130,22:t,23:r,24:n,26:i,28:a}),e(Z,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:t,23:r,24:n,26:i,28:a,34:s,36:l,37:u,38:h,39:f,40:d,41:p,44:m,45:g,46:y,47:v,48:x,49:b,50:w,51:S,52:T,53:E,54:_,55:A,56:L,57:M,58:N,59:k,60:I,61:C,62:O,63:D,64:P,65:F,66:B,67:G,68:z,69:W,70:Q,71:j,72:at,73:X,74:J}),e(q,[2,21]),e(q,[2,22]),e(et,[2,39]),e(Mt,[2,71],{75:81,35:132,76:K,77:ot,79:ct,80:ut}),e(it,[2,73]),{78:[1,133]},e(it,[2,75]),e(it,[2,76]),e(et,[2,40]),e(et,[2,41]),e(et,[2,42]),e(et,[2,43]),e(et,[2,44]),e(et,[2,45]),e(et,[2,46]),e(et,[2,47]),e(et,[2,48]),e(et,[2,49]),e(et,[2,50]),e(et,[2,51]),e(et,[2,52]),e(et,[2,53]),e(et,[2,54]),e(et,[2,55]),e(et,[2,56]),e(et,[2,57]),e(et,[2,58]),e(et,[2,60]),e(et,[2,61]),e(et,[2,62]),e(et,[2,63]),e(et,[2,64]),e(et,[2,65]),e(et,[2,66]),e(et,[2,67]),e(et,[2,68]),e(et,[2,69]),e(et,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(wt,[2,28]),e(wt,[2,29]),e(wt,[2,30]),e(wt,[2,31]),e(wt,[2,32]),e(wt,[2,33]),e(wt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(H,[2,18]),e(Z,[2,38]),e(Mt,[2,72]),e(it,[2,74]),e(et,[2,24]),e(et,[2,35]),e(Ot,[2,25]),e(Ot,[2,26],{12:[1,138]}),e(Ot,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:o(function(dt,Y){if(Y.recoverable)this.trace(dt);else{var ft=new Error(dt);throw ft.hash=Y,ft}},"parseError"),parse:o(function(dt){var Y=this,ft=[0],mt=[],rt=[null],ht=[],nt=this.table,st="",Tt=0,kt=0,Ct=0,At=2,$t=1,Nt=ht.slice.call(arguments,1),yt=Object.create(this.lexer),Ut={yy:{}};for(var zt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,zt)&&(Ut.yy[zt]=this.yy[zt]);yt.setInput(dt,Ut.yy),Ut.yy.lexer=yt,Ut.yy.parser=this,typeof yt.yylloc>"u"&&(yt.yylloc={});var ae=yt.yylloc;ht.push(ae);var ke=yt.options&&yt.options.ranges;typeof Ut.yy.parseError=="function"?this.parseError=Ut.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ee(qe){ft.length=ft.length-2*qe,rt.length=rt.length-qe,ht.length=ht.length-qe}o(Ee,"popStack");function le(){var qe;return qe=mt.pop()||yt.lex()||$t,typeof qe!="number"&&(qe instanceof Array&&(mt=qe,qe=mt.pop()),qe=Y.symbols_[qe]||qe),qe}o(le,"lex");for(var Zt,me,Ht,ne,xe,Se,Ye={},fe,ee,pe,Me;;){if(Ht=ft[ft.length-1],this.defaultActions[Ht]?ne=this.defaultActions[Ht]:((Zt===null||typeof Zt>"u")&&(Zt=le()),ne=nt[Ht]&&nt[Ht][Zt]),typeof ne>"u"||!ne.length||!ne[0]){var oe="";Me=[];for(fe in nt[Ht])this.terminals_[fe]&&fe>At&&Me.push("'"+this.terminals_[fe]+"'");yt.showPosition?oe="Parse error on line "+(Tt+1)+`: +`+yt.showPosition()+` +Expecting `+Me.join(", ")+", got '"+(this.terminals_[Zt]||Zt)+"'":oe="Parse error on line "+(Tt+1)+": Unexpected "+(Zt==$t?"end of input":"'"+(this.terminals_[Zt]||Zt)+"'"),this.parseError(oe,{text:yt.match,token:this.terminals_[Zt]||Zt,line:yt.yylineno,loc:ae,expected:Me})}if(ne[0]instanceof Array&&ne.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ht+", token: "+Zt);switch(ne[0]){case 1:ft.push(Zt),rt.push(yt.yytext),ht.push(yt.yylloc),ft.push(ne[1]),Zt=null,me?(Zt=me,me=null):(kt=yt.yyleng,st=yt.yytext,Tt=yt.yylineno,ae=yt.yylloc,Ct>0&&Ct--);break;case 2:if(ee=this.productions_[ne[1]][1],Ye.$=rt[rt.length-ee],Ye._$={first_line:ht[ht.length-(ee||1)].first_line,last_line:ht[ht.length-1].last_line,first_column:ht[ht.length-(ee||1)].first_column,last_column:ht[ht.length-1].last_column},ke&&(Ye._$.range=[ht[ht.length-(ee||1)].range[0],ht[ht.length-1].range[1]]),Se=this.performAction.apply(Ye,[st,kt,Tt,Ut.yy,ne[1],rt,ht].concat(Nt)),typeof Se<"u")return Se;ee&&(ft=ft.slice(0,-1*ee*2),rt=rt.slice(0,-1*ee),ht=ht.slice(0,-1*ee)),ft.push(this.productions_[ne[1]][0]),rt.push(Ye.$),ht.push(Ye._$),pe=nt[ft[ft.length-2]][ft[ft.length-1]],ft.push(pe);break;case 3:return!0}}return!0},"parse")},Vt=function(){var _t={EOF:1,parseError:o(function(Y,ft){if(this.yy.parser)this.yy.parser.parseError(Y,ft);else throw new Error(Y)},"parseError"),setInput:o(function(dt,Y){return this.yy=Y||this.yy||{},this._input=dt,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var dt=this._input[0];this.yytext+=dt,this.yyleng++,this.offset++,this.match+=dt,this.matched+=dt;var Y=dt.match(/(?:\r\n?|\n).*/g);return Y?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),dt},"input"),unput:o(function(dt){var Y=dt.length,ft=dt.split(/(?:\r\n?|\n)/g);this._input=dt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Y),this.offset-=Y;var mt=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),ft.length-1&&(this.yylineno-=ft.length-1);var rt=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:ft?(ft.length===mt.length?this.yylloc.first_column:0)+mt[mt.length-ft.length].length-ft[0].length:this.yylloc.first_column-Y},this.options.ranges&&(this.yylloc.range=[rt[0],rt[0]+this.yyleng-Y]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(dt){this.unput(this.match.slice(dt))},"less"),pastInput:o(function(){var dt=this.matched.substr(0,this.matched.length-this.match.length);return(dt.length>20?"...":"")+dt.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var dt=this.match;return dt.length<20&&(dt+=this._input.substr(0,20-dt.length)),(dt.substr(0,20)+(dt.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var dt=this.pastInput(),Y=new Array(dt.length+1).join("-");return dt+this.upcomingInput()+` +`+Y+"^"},"showPosition"),test_match:o(function(dt,Y){var ft,mt,rt;if(this.options.backtrack_lexer&&(rt={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(rt.yylloc.range=this.yylloc.range.slice(0))),mt=dt[0].match(/(?:\r\n?|\n).*/g),mt&&(this.yylineno+=mt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:mt?mt[mt.length-1].length-mt[mt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+dt[0].length},this.yytext+=dt[0],this.match+=dt[0],this.matches=dt,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(dt[0].length),this.matched+=dt[0],ft=this.performAction.call(this,this.yy,this,Y,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),ft)return ft;if(this._backtrack){for(var ht in rt)this[ht]=rt[ht];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var dt,Y,ft,mt;this._more||(this.yytext="",this.match="");for(var rt=this._currentRules(),ht=0;htY[0].length)){if(Y=ft,mt=ht,this.options.backtrack_lexer){if(dt=this.test_match(ft,rt[ht]),dt!==!1)return dt;if(this._backtrack){Y=!1;continue}else return!1}else if(!this.options.flex)break}return Y?(dt=this.test_match(Y,rt[mt]),dt!==!1?dt:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var Y=this.next();return Y||this.lex()},"lex"),begin:o(function(Y){this.conditionStack.push(Y)},"begin"),popState:o(function(){var Y=this.conditionStack.length-1;return Y>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(Y){return Y=this.conditionStack.length-1-Math.abs(Y||0),Y>=0?this.conditionStack[Y]:"INITIAL"},"topState"),pushState:o(function(Y){this.begin(Y)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:o(function(Y,ft,mt,rt){var ht=rt;switch(mt){case 0:return 6;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 22;case 5:return 23;case 6:return this.begin("acc_title"),24;break;case 7:return this.popState(),"acc_title_value";break;case 8:return this.begin("acc_descr"),26;break;case 9:return this.popState(),"acc_descr_value";break;case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:break;case 14:c;break;case 15:return 12;case 16:break;case 17:return 11;case 18:return 15;case 19:return 16;case 20:return 17;case 21:return 18;case 22:return this.begin("person_ext"),45;break;case 23:return this.begin("person"),44;break;case 24:return this.begin("system_ext_queue"),51;break;case 25:return this.begin("system_ext_db"),50;break;case 26:return this.begin("system_ext"),49;break;case 27:return this.begin("system_queue"),48;break;case 28:return this.begin("system_db"),47;break;case 29:return this.begin("system"),46;break;case 30:return this.begin("boundary"),37;break;case 31:return this.begin("enterprise_boundary"),34;break;case 32:return this.begin("system_boundary"),36;break;case 33:return this.begin("container_ext_queue"),57;break;case 34:return this.begin("container_ext_db"),56;break;case 35:return this.begin("container_ext"),55;break;case 36:return this.begin("container_queue"),54;break;case 37:return this.begin("container_db"),53;break;case 38:return this.begin("container"),52;break;case 39:return this.begin("container_boundary"),38;break;case 40:return this.begin("component_ext_queue"),63;break;case 41:return this.begin("component_ext_db"),62;break;case 42:return this.begin("component_ext"),61;break;case 43:return this.begin("component_queue"),60;break;case 44:return this.begin("component_db"),59;break;case 45:return this.begin("component"),58;break;case 46:return this.begin("node"),39;break;case 47:return this.begin("node"),39;break;case 48:return this.begin("node_l"),40;break;case 49:return this.begin("node_r"),41;break;case 50:return this.begin("rel"),64;break;case 51:return this.begin("birel"),65;break;case 52:return this.begin("rel_u"),66;break;case 53:return this.begin("rel_u"),66;break;case 54:return this.begin("rel_d"),67;break;case 55:return this.begin("rel_d"),67;break;case 56:return this.begin("rel_l"),68;break;case 57:return this.begin("rel_l"),68;break;case 58:return this.begin("rel_r"),69;break;case 59:return this.begin("rel_r"),69;break;case 60:return this.begin("rel_b"),70;break;case 61:return this.begin("rel_index"),71;break;case 62:return this.begin("update_el_style"),72;break;case 63:return this.begin("update_rel_style"),73;break;case 64:return this.begin("update_layout_config"),74;break;case 65:return"EOF_IN_STRUCT";case 66:return this.begin("attribute"),"ATTRIBUTE_EMPTY";break;case 67:this.begin("attribute");break;case 68:this.popState(),this.popState();break;case 69:return 80;case 70:break;case 71:return 80;case 72:this.begin("string");break;case 73:this.popState();break;case 74:return"STR";case 75:this.begin("string_kv");break;case 76:return this.begin("string_kv_key"),"STR_KEY";break;case 77:this.popState(),this.begin("string_kv_value");break;case 78:return"STR_VALUE";case 79:this.popState(),this.popState();break;case 80:return"STR";case 81:return"LBRACE";case 82:return"RBRACE";case 83:return"SPACE";case 84:return"EOL";case 85:return 14}},"anonymous"),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:title\s[^#\n;]+)/,/^(?:accDescription\s[^#\n;]+)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:C4Context\b)/,/^(?:C4Container\b)/,/^(?:C4Component\b)/,/^(?:C4Dynamic\b)/,/^(?:C4Deployment\b)/,/^(?:Person_Ext\b)/,/^(?:Person\b)/,/^(?:SystemQueue_Ext\b)/,/^(?:SystemDb_Ext\b)/,/^(?:System_Ext\b)/,/^(?:SystemQueue\b)/,/^(?:SystemDb\b)/,/^(?:System\b)/,/^(?:Boundary\b)/,/^(?:Enterprise_Boundary\b)/,/^(?:System_Boundary\b)/,/^(?:ContainerQueue_Ext\b)/,/^(?:ContainerDb_Ext\b)/,/^(?:Container_Ext\b)/,/^(?:ContainerQueue\b)/,/^(?:ContainerDb\b)/,/^(?:Container\b)/,/^(?:Container_Boundary\b)/,/^(?:ComponentQueue_Ext\b)/,/^(?:ComponentDb_Ext\b)/,/^(?:Component_Ext\b)/,/^(?:ComponentQueue\b)/,/^(?:ComponentDb\b)/,/^(?:Component\b)/,/^(?:Deployment_Node\b)/,/^(?:Node\b)/,/^(?:Node_L\b)/,/^(?:Node_R\b)/,/^(?:Rel\b)/,/^(?:BiRel\b)/,/^(?:Rel_Up\b)/,/^(?:Rel_U\b)/,/^(?:Rel_Down\b)/,/^(?:Rel_D\b)/,/^(?:Rel_Left\b)/,/^(?:Rel_L\b)/,/^(?:Rel_Right\b)/,/^(?:Rel_R\b)/,/^(?:Rel_Back\b)/,/^(?:RelIndex\b)/,/^(?:UpdateElementStyle\b)/,/^(?:UpdateRelStyle\b)/,/^(?:UpdateLayoutConfig\b)/,/^(?:$)/,/^(?:[(][ ]*[,])/,/^(?:[(])/,/^(?:[)])/,/^(?:,,)/,/^(?:,)/,/^(?:[ ]*["]["])/,/^(?:[ ]*["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[ ]*[\$])/,/^(?:[^=]*)/,/^(?:[=][ ]*["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:[^,]+)/,/^(?:\{)/,/^(?:\})/,/^(?:[\s]+)/,/^(?:[\n\r]+)/,/^(?:$)/],conditions:{acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},string_kv_value:{rules:[78,79],inclusive:!1},string_kv_key:{rules:[77],inclusive:!1},string_kv:{rules:[76],inclusive:!1},string:{rules:[73,74],inclusive:!1},attribute:{rules:[68,69,70,71,72,75,80],inclusive:!1},update_layout_config:{rules:[65,66,67,68],inclusive:!1},update_rel_style:{rules:[65,66,67,68],inclusive:!1},update_el_style:{rules:[65,66,67,68],inclusive:!1},rel_b:{rules:[65,66,67,68],inclusive:!1},rel_r:{rules:[65,66,67,68],inclusive:!1},rel_l:{rules:[65,66,67,68],inclusive:!1},rel_d:{rules:[65,66,67,68],inclusive:!1},rel_u:{rules:[65,66,67,68],inclusive:!1},rel_bi:{rules:[],inclusive:!1},rel:{rules:[65,66,67,68],inclusive:!1},node_r:{rules:[65,66,67,68],inclusive:!1},node_l:{rules:[65,66,67,68],inclusive:!1},node:{rules:[65,66,67,68],inclusive:!1},index:{rules:[],inclusive:!1},rel_index:{rules:[65,66,67,68],inclusive:!1},component_ext_queue:{rules:[],inclusive:!1},component_ext_db:{rules:[65,66,67,68],inclusive:!1},component_ext:{rules:[65,66,67,68],inclusive:!1},component_queue:{rules:[65,66,67,68],inclusive:!1},component_db:{rules:[65,66,67,68],inclusive:!1},component:{rules:[65,66,67,68],inclusive:!1},container_boundary:{rules:[65,66,67,68],inclusive:!1},container_ext_queue:{rules:[65,66,67,68],inclusive:!1},container_ext_db:{rules:[65,66,67,68],inclusive:!1},container_ext:{rules:[65,66,67,68],inclusive:!1},container_queue:{rules:[65,66,67,68],inclusive:!1},container_db:{rules:[65,66,67,68],inclusive:!1},container:{rules:[65,66,67,68],inclusive:!1},birel:{rules:[65,66,67,68],inclusive:!1},system_boundary:{rules:[65,66,67,68],inclusive:!1},enterprise_boundary:{rules:[65,66,67,68],inclusive:!1},boundary:{rules:[65,66,67,68],inclusive:!1},system_ext_queue:{rules:[65,66,67,68],inclusive:!1},system_ext_db:{rules:[65,66,67,68],inclusive:!1},system_ext:{rules:[65,66,67,68],inclusive:!1},system_queue:{rules:[65,66,67,68],inclusive:!1},system_db:{rules:[65,66,67,68],inclusive:!1},system:{rules:[65,66,67,68],inclusive:!1},person_ext:{rules:[65,66,67,68],inclusive:!1},person:{rules:[65,66,67,68],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,81,82,83,84,85],inclusive:!0}}};return _t}();St.lexer=Vt;function Pt(){this.yy={}}return o(Pt,"Parser"),Pt.prototype=St,St.Parser=Pt,new Pt}();ty.parser=ty;t$=ty});var DS,Vn,yp=R(()=>{"use strict";DS=o((e,t,{depth:r=2,clobber:n=!1}={})=>{let i={depth:r,clobber:n};return Array.isArray(t)&&!Array.isArray(e)?(t.forEach(a=>DS(e,a,i)),e):Array.isArray(t)&&Array.isArray(e)?(t.forEach(a=>{e.includes(a)||e.push(a)}),e):e===void 0||r<=0?e!=null&&typeof e=="object"&&typeof t=="object"?Object.assign(e,t):t:(t!==void 0&&typeof e=="object"&&typeof t=="object"&&Object.keys(t).forEach(a=>{typeof t[a]=="object"&&(e[a]===void 0||typeof e[a]=="object")?(e[a]===void 0&&(e[a]=Array.isArray(t[a])?[]:{}),e[a]=DS(e[a],t[a],{depth:r-1,clobber:n})):(n||typeof e[a]!="object"&&typeof t[a]!="object")&&(e[a]=t[a])}),e)},"assignWithDepth"),Vn=DS});var u4,e$,r$=R(()=>{"use strict";u4={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:o(e=>e>=255?255:e<0?0:e,"r"),g:o(e=>e>=255?255:e<0?0:e,"g"),b:o(e=>e>=255?255:e<0?0:e,"b"),h:o(e=>e%360,"h"),s:o(e=>e>=100?100:e<0?0:e,"s"),l:o(e=>e>=100?100:e<0?0:e,"l"),a:o(e=>e>=1?1:e<0?0:e,"a")},toLinear:o(e=>{let t=e/255;return e>.03928?Math.pow((t+.055)/1.055,2.4):t/12.92},"toLinear"),hue2rgb:o((e,t,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<.16666666666666666?e+(t-e)*6*r:r<.5?t:r<.6666666666666666?e+(t-e)*(.6666666666666666-r)*6:e),"hue2rgb"),hsl2rgb:o(({h:e,s:t,l:r},n)=>{if(!t)return r*2.55;e/=360,t/=100,r/=100;let i=r<.5?r*(1+t):r+t-r*t,a=2*r-i;switch(n){case"r":return u4.hue2rgb(a,i,e+.3333333333333333)*255;case"g":return u4.hue2rgb(a,i,e)*255;case"b":return u4.hue2rgb(a,i,e-.3333333333333333)*255}},"hsl2rgb"),rgb2hsl:o(({r:e,g:t,b:r},n)=>{e/=255,t/=255,r/=255;let i=Math.max(e,t,r),a=Math.min(e,t,r),s=(i+a)/2;if(n==="l")return s*100;if(i===a)return 0;let l=i-a,u=s>.5?l/(2-i-a):l/(i+a);if(n==="s")return u*100;switch(i){case e:return((t-r)/l+(t{"use strict";Pxt={clamp:o((e,t,r)=>t>r?Math.min(t,Math.max(r,e)):Math.min(r,Math.max(t,e)),"clamp"),round:o(e=>Math.round(e*1e10)/1e10,"round")},n$=Pxt});var Bxt,a$,s$=R(()=>{"use strict";Bxt={dec2hex:o(e=>{let t=Math.round(e).toString(16);return t.length>1?t:`0${t}`},"dec2hex")},a$=Bxt});var Fxt,We,rc=R(()=>{"use strict";r$();i$();s$();Fxt={channel:e$,lang:n$,unit:a$},We=Fxt});var au,Mi,ey=R(()=>{"use strict";rc();au={};for(let e=0;e<=255;e++)au[e]=We.unit.dec2hex(e);Mi={ALL:0,RGB:1,HSL:2}});var RS,o$,l$=R(()=>{"use strict";ey();RS=class{static{o(this,"Type")}constructor(){this.type=Mi.ALL}get(){return this.type}set(t){if(this.type&&this.type!==t)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=t}reset(){this.type=Mi.ALL}is(t){return this.type===t}},o$=RS});var NS,c$,u$=R(()=>{"use strict";rc();l$();ey();NS=class{static{o(this,"Channels")}constructor(t,r){this.color=r,this.changed=!1,this.data=t,this.type=new o$}set(t,r){return this.color=r,this.changed=!1,this.data=t,this.type.type=Mi.ALL,this}_ensureHSL(){let t=this.data,{h:r,s:n,l:i}=t;r===void 0&&(t.h=We.channel.rgb2hsl(t,"h")),n===void 0&&(t.s=We.channel.rgb2hsl(t,"s")),i===void 0&&(t.l=We.channel.rgb2hsl(t,"l"))}_ensureRGB(){let t=this.data,{r,g:n,b:i}=t;r===void 0&&(t.r=We.channel.hsl2rgb(t,"r")),n===void 0&&(t.g=We.channel.hsl2rgb(t,"g")),i===void 0&&(t.b=We.channel.hsl2rgb(t,"b"))}get r(){let t=this.data,r=t.r;return!this.type.is(Mi.HSL)&&r!==void 0?r:(this._ensureHSL(),We.channel.hsl2rgb(t,"r"))}get g(){let t=this.data,r=t.g;return!this.type.is(Mi.HSL)&&r!==void 0?r:(this._ensureHSL(),We.channel.hsl2rgb(t,"g"))}get b(){let t=this.data,r=t.b;return!this.type.is(Mi.HSL)&&r!==void 0?r:(this._ensureHSL(),We.channel.hsl2rgb(t,"b"))}get h(){let t=this.data,r=t.h;return!this.type.is(Mi.RGB)&&r!==void 0?r:(this._ensureRGB(),We.channel.rgb2hsl(t,"h"))}get s(){let t=this.data,r=t.s;return!this.type.is(Mi.RGB)&&r!==void 0?r:(this._ensureRGB(),We.channel.rgb2hsl(t,"s"))}get l(){let t=this.data,r=t.l;return!this.type.is(Mi.RGB)&&r!==void 0?r:(this._ensureRGB(),We.channel.rgb2hsl(t,"l"))}get a(){return this.data.a}set r(t){this.type.set(Mi.RGB),this.changed=!0,this.data.r=t}set g(t){this.type.set(Mi.RGB),this.changed=!0,this.data.g=t}set b(t){this.type.set(Mi.RGB),this.changed=!0,this.data.b=t}set h(t){this.type.set(Mi.HSL),this.changed=!0,this.data.h=t}set s(t){this.type.set(Mi.HSL),this.changed=!0,this.data.s=t}set l(t){this.type.set(Mi.HSL),this.changed=!0,this.data.l=t}set a(t){this.changed=!0,this.data.a=t}},c$=NS});var zxt,lh,ry=R(()=>{"use strict";u$();zxt=new c$({r:0,g:0,b:0,a:0},"transparent"),lh=zxt});var h$,Kf,MS=R(()=>{"use strict";ry();ey();h$={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:o(e=>{if(e.charCodeAt(0)!==35)return;let t=e.match(h$.re);if(!t)return;let r=t[1],n=parseInt(r,16),i=r.length,a=i%4===0,s=i>4,l=s?1:17,u=s?8:4,h=a?0:-1,f=s?255:15;return lh.set({r:(n>>u*(h+3)&f)*l,g:(n>>u*(h+2)&f)*l,b:(n>>u*(h+1)&f)*l,a:a?(n&f)*l/255:1},e)},"parse"),stringify:o(e=>{let{r:t,g:r,b:n,a:i}=e;return i<1?`#${au[Math.round(t)]}${au[Math.round(r)]}${au[Math.round(n)]}${au[Math.round(i*255)]}`:`#${au[Math.round(t)]}${au[Math.round(r)]}${au[Math.round(n)]}`},"stringify")},Kf=h$});var h4,ny,f$=R(()=>{"use strict";rc();ry();h4={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:o(e=>{let t=e.match(h4.hueRe);if(t){let[,r,n]=t;switch(n){case"grad":return We.channel.clamp.h(parseFloat(r)*.9);case"rad":return We.channel.clamp.h(parseFloat(r)*180/Math.PI);case"turn":return We.channel.clamp.h(parseFloat(r)*360)}}return We.channel.clamp.h(parseFloat(e))},"_hue2deg"),parse:o(e=>{let t=e.charCodeAt(0);if(t!==104&&t!==72)return;let r=e.match(h4.re);if(!r)return;let[,n,i,a,s,l]=r;return lh.set({h:h4._hue2deg(n),s:We.channel.clamp.s(parseFloat(i)),l:We.channel.clamp.l(parseFloat(a)),a:s?We.channel.clamp.a(l?parseFloat(s)/100:parseFloat(s)):1},e)},"parse"),stringify:o(e=>{let{h:t,s:r,l:n,a:i}=e;return i<1?`hsla(${We.lang.round(t)}, ${We.lang.round(r)}%, ${We.lang.round(n)}%, ${i})`:`hsl(${We.lang.round(t)}, ${We.lang.round(r)}%, ${We.lang.round(n)}%)`},"stringify")},ny=h4});var f4,IS,d$=R(()=>{"use strict";MS();f4={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:o(e=>{e=e.toLowerCase();let t=f4.colors[e];if(t)return Kf.parse(t)},"parse"),stringify:o(e=>{let t=Kf.stringify(e);for(let r in f4.colors)if(f4.colors[r]===t)return r},"stringify")},IS=f4});var p$,iy,m$=R(()=>{"use strict";rc();ry();p$={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:o(e=>{let t=e.charCodeAt(0);if(t!==114&&t!==82)return;let r=e.match(p$.re);if(!r)return;let[,n,i,a,s,l,u,h,f]=r;return lh.set({r:We.channel.clamp.r(i?parseFloat(n)*2.55:parseFloat(n)),g:We.channel.clamp.g(s?parseFloat(a)*2.55:parseFloat(a)),b:We.channel.clamp.b(u?parseFloat(l)*2.55:parseFloat(l)),a:h?We.channel.clamp.a(f?parseFloat(h)/100:parseFloat(h)):1},e)},"parse"),stringify:o(e=>{let{r:t,g:r,b:n,a:i}=e;return i<1?`rgba(${We.lang.round(t)}, ${We.lang.round(r)}, ${We.lang.round(n)}, ${We.lang.round(i)})`:`rgb(${We.lang.round(t)}, ${We.lang.round(r)}, ${We.lang.round(n)})`},"stringify")},iy=p$});var $xt,Ii,su=R(()=>{"use strict";MS();f$();d$();m$();ey();$xt={format:{keyword:IS,hex:Kf,rgb:iy,rgba:iy,hsl:ny,hsla:ny},parse:o(e=>{if(typeof e!="string")return e;let t=Kf.parse(e)||iy.parse(e)||ny.parse(e)||IS.parse(e);if(t)return t;throw new Error(`Unsupported color format: "${e}"`)},"parse"),stringify:o(e=>!e.changed&&e.color?e.color:e.type.is(Mi.HSL)||e.data.r===void 0?ny.stringify(e):e.a<1||!Number.isInteger(e.r)||!Number.isInteger(e.g)||!Number.isInteger(e.b)?iy.stringify(e):Kf.stringify(e),"stringify")},Ii=$xt});var Gxt,d4,OS=R(()=>{"use strict";rc();su();Gxt=o((e,t)=>{let r=Ii.parse(e);for(let n in t)r[n]=We.channel.clamp[n](t[n]);return Ii.stringify(r)},"change"),d4=Gxt});var Vxt,Xs,PS=R(()=>{"use strict";rc();ry();su();OS();Vxt=o((e,t,r=0,n=1)=>{if(typeof e!="number")return d4(e,{a:t});let i=lh.set({r:We.channel.clamp.r(e),g:We.channel.clamp.g(t),b:We.channel.clamp.b(r),a:We.channel.clamp.a(n)});return Ii.stringify(i)},"rgba"),Xs=Vxt});var Uxt,ay,g$=R(()=>{"use strict";rc();su();Uxt=o((e,t)=>We.lang.round(Ii.parse(e)[t]),"channel"),ay=Uxt});var Hxt,y$,v$=R(()=>{"use strict";rc();su();Hxt=o(e=>{let{r:t,g:r,b:n}=Ii.parse(e),i=.2126*We.channel.toLinear(t)+.7152*We.channel.toLinear(r)+.0722*We.channel.toLinear(n);return We.lang.round(i)},"luminance"),y$=Hxt});var Wxt,x$,b$=R(()=>{"use strict";v$();Wxt=o(e=>y$(e)>=.5,"isLight"),x$=Wxt});var Yxt,Ka,w$=R(()=>{"use strict";b$();Yxt=o(e=>!x$(e),"isDark"),Ka=Yxt});var qxt,p4,BS=R(()=>{"use strict";rc();su();qxt=o((e,t,r)=>{let n=Ii.parse(e),i=n[t],a=We.channel.clamp[t](i+r);return i!==a&&(n[t]=a),Ii.stringify(n)},"adjustChannel"),p4=qxt});var Xxt,Re,T$=R(()=>{"use strict";BS();Xxt=o((e,t)=>p4(e,"l",t),"lighten"),Re=Xxt});var jxt,Pe,k$=R(()=>{"use strict";BS();jxt=o((e,t)=>p4(e,"l",-t),"darken"),Pe=jxt});var Kxt,It,E$=R(()=>{"use strict";su();OS();Kxt=o((e,t)=>{let r=Ii.parse(e),n={};for(let i in t)t[i]&&(n[i]=r[i]+t[i]);return d4(e,n)},"adjust"),It=Kxt});var Qxt,C$,S$=R(()=>{"use strict";su();PS();Qxt=o((e,t,r=50)=>{let{r:n,g:i,b:a,a:s}=Ii.parse(e),{r:l,g:u,b:h,a:f}=Ii.parse(t),d=r/100,p=d*2-1,m=s-f,y=((p*m===-1?p:(p+m)/(1+p*m))+1)/2,v=1-y,x=n*y+l*v,b=i*y+u*v,w=a*y+h*v,S=s*d+f*(1-d);return Xs(x,b,w,S)},"mix"),C$=Qxt});var Zxt,ye,A$=R(()=>{"use strict";su();S$();Zxt=o((e,t=100)=>{let r=Ii.parse(e);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,C$(r,e,t)},"invert"),ye=Zxt});var _$=R(()=>{"use strict";PS();g$();w$();T$();k$();E$();A$()});var ul=R(()=>{"use strict";_$()});var ch,uh,sy=R(()=>{"use strict";ch="#ffffff",uh="#f2f2f2"});var ki,vp=R(()=>{"use strict";ul();ki=o((e,t)=>t?It(e,{s:-40,l:10}):It(e,{s:-40,l:-10}),"mkBorder")});var FS,D$,R$=R(()=>{"use strict";ul();sy();vp();FS=class{static{o(this,"Theme")}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||It(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||It(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ki(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ki(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ki(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ki(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||ye(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||ye(this.tertiaryColor),this.lineColor=this.lineColor||ye(this.background),this.arrowheadColor=this.arrowheadColor||ye(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?Pe(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||this.actorBorder,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||Pe(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||ye(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||Re(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||It(this.primaryColor,{h:30}),this.cScale4=this.cScale4||It(this.primaryColor,{h:60}),this.cScale5=this.cScale5||It(this.primaryColor,{h:90}),this.cScale6=this.cScale6||It(this.primaryColor,{h:120}),this.cScale7=this.cScale7||It(this.primaryColor,{h:150}),this.cScale8=this.cScale8||It(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||It(this.primaryColor,{h:270}),this.cScale10=this.cScale10||It(this.primaryColor,{h:300}),this.cScale11=this.cScale11||It(this.primaryColor,{h:330}),this.darkMode)for(let r=0;r{this[n]=t[n]}),this.updateColors(),r.forEach(n=>{this[n]=t[n]})}},D$=o(e=>{let t=new FS;return t.calculate(e),t},"getThemeVariables")});var zS,N$,M$=R(()=>{"use strict";ul();vp();zS=class{static{o(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=Re(this.primaryColor,16),this.tertiaryColor=It(this.primaryColor,{h:-160}),this.primaryBorderColor=ye(this.background),this.secondaryBorderColor=ki(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ki(this.tertiaryColor,this.darkMode),this.primaryTextColor=ye(this.primaryColor),this.secondaryTextColor=ye(this.secondaryColor),this.tertiaryTextColor=ye(this.tertiaryColor),this.lineColor=ye(this.background),this.textColor=ye(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=Re(ye("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=Xs(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=Pe("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=Pe(this.sectionBkgColor,10),this.taskBorderColor=Xs(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=Xs(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.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){this.secondBkg=Re(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=Re(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.actorBorder,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=Re(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.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,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=It(this.primaryColor,{h:64}),this.fillType3=It(this.secondaryColor,{h:64}),this.fillType4=It(this.primaryColor,{h:-64}),this.fillType5=It(this.secondaryColor,{h:-64}),this.fillType6=It(this.primaryColor,{h:128}),this.fillType7=It(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||It(this.primaryColor,{h:30}),this.cScale4=this.cScale4||It(this.primaryColor,{h:60}),this.cScale5=this.cScale5||It(this.primaryColor,{h:90}),this.cScale6=this.cScale6||It(this.primaryColor,{h:120}),this.cScale7=this.cScale7||It(this.primaryColor,{h:150}),this.cScale8=this.cScale8||It(this.primaryColor,{h:210}),this.cScale9=this.cScale9||It(this.primaryColor,{h:270}),this.cScale10=this.cScale10||It(this.primaryColor,{h:300}),this.cScale11=this.cScale11||It(this.primaryColor,{h:330});for(let t=0;t{this[n]=t[n]}),this.updateColors(),r.forEach(n=>{this[n]=t[n]})}},N$=o(e=>{let t=new zS;return t.calculate(e),t},"getThemeVariables")});var $S,xp,m4=R(()=>{"use strict";ul();vp();sy();$S=class{static{o(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=It(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=It(this.primaryColor,{h:-160}),this.primaryBorderColor=ki(this.primaryColor,this.darkMode),this.secondaryBorderColor=ki(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ki(this.tertiaryColor,this.darkMode),this.primaryTextColor=ye(this.primaryColor),this.secondaryTextColor=ye(this.secondaryColor),this.tertiaryTextColor=ye(this.tertiaryColor),this.lineColor=ye(this.background),this.textColor=ye(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="rgba(232,232,232, 0.8)",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="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="#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=Xs(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.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",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||It(this.primaryColor,{h:30}),this.cScale4=this.cScale4||It(this.primaryColor,{h:60}),this.cScale5=this.cScale5||It(this.primaryColor,{h:90}),this.cScale6=this.cScale6||It(this.primaryColor,{h:120}),this.cScale7=this.cScale7||It(this.primaryColor,{h:150}),this.cScale8=this.cScale8||It(this.primaryColor,{h:210}),this.cScale9=this.cScale9||It(this.primaryColor,{h:270}),this.cScale10=this.cScale10||It(this.primaryColor,{h:300}),this.cScale11=this.cScale11||It(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||Pe(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||Pe(this.tertiaryColor,40);for(let t=0;t{this[n]=t[n]}),this.updateColors(),r.forEach(n=>{this[n]=t[n]})}},xp=o(e=>{let t=new $S;return t.calculate(e),t},"getThemeVariables")});var GS,I$,O$=R(()=>{"use strict";ul();sy();vp();GS=class{static{o(this,"Theme")}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=Re("#cde498",10),this.primaryBorderColor=ki(this.primaryColor,this.darkMode),this.secondaryBorderColor=ki(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ki(this.tertiaryColor,this.darkMode),this.primaryTextColor=ye(this.primaryColor),this.secondaryTextColor=ye(this.secondaryColor),this.tertiaryTextColor=ye(this.primaryColor),this.lineColor=ye(this.background),this.textColor=ye(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="calculated",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.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.actorBorder=Pe(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.actorLineColor=this.actorBorder,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||It(this.primaryColor,{h:30}),this.cScale4=this.cScale4||It(this.primaryColor,{h:60}),this.cScale5=this.cScale5||It(this.primaryColor,{h:90}),this.cScale6=this.cScale6||It(this.primaryColor,{h:120}),this.cScale7=this.cScale7||It(this.primaryColor,{h:150}),this.cScale8=this.cScale8||It(this.primaryColor,{h:210}),this.cScale9=this.cScale9||It(this.primaryColor,{h:270}),this.cScale10=this.cScale10||It(this.primaryColor,{h:300}),this.cScale11=this.cScale11||It(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||Pe(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||Pe(this.tertiaryColor,40);for(let t=0;t{this[n]=t[n]}),this.updateColors(),r.forEach(n=>{this[n]=t[n]})}},I$=o(e=>{let t=new GS;return t.calculate(e),t},"getThemeVariables")});var VS,P$,B$=R(()=>{"use strict";ul();vp();sy();VS=class{static{o(this,"Theme")}constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=Re(this.contrast,55),this.background="#ffffff",this.tertiaryColor=It(this.primaryColor,{h:-160}),this.primaryBorderColor=ki(this.primaryColor,this.darkMode),this.secondaryBorderColor=ki(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ki(this.tertiaryColor,this.darkMode),this.primaryTextColor=ye(this.primaryColor),this.secondaryTextColor=ye(this.secondaryColor),this.tertiaryTextColor=ye(this.tertiaryColor),this.lineColor=ye(this.background),this.textColor=ye(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=this.actorBorder,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.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.secondBkg=Re(this.contrast,55),this.border2=this.contrast,this.actorBorder=Re(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let t=0;t{this[n]=t[n]}),this.updateColors(),r.forEach(n=>{this[n]=t[n]})}},P$=o(e=>{let t=new VS;return t.calculate(e),t},"getThemeVariables")});var _o,g4=R(()=>{"use strict";R$();M$();m4();O$();B$();_o={base:{getThemeVariables:D$},dark:{getThemeVariables:N$},default:{getThemeVariables:xp},forest:{getThemeVariables:I$},neutral:{getThemeVariables:P$}}});var ou,F$=R(()=>{"use strict";ou={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"]},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,paddingX:5,paddingY:5},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16},theme:"default",look:"classic",handDrawnSeed:0,layout:"dagre",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","suppressErrorRendering","maxEdges"],legacyMathML:!1,forceLegacyMathML:!1,deterministicIds:!1,fontSize:16,markdownAutoWrap:!0,suppressErrorRendering:!1}});var z$,$$,G$,Er,hl=R(()=>{"use strict";g4();F$();z$={...ou,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"BRANDES_KOEPF"},themeCSS:void 0,themeVariables:_o.default.getThemeVariables(),sequence:{...ou.sequence,messageFont:o(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:o(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:o(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")},gantt:{...ou.gantt,tickInterval:void 0,useWidth:void 0},c4:{...ou.c4,useWidth:void 0,personFont:o(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),external_personFont:o(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:o(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:o(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:o(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:o(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:o(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:o(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:o(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:o(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:o(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:o(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:o(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:o(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:o(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:o(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:o(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:o(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:o(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:o(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:o(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:o(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")},pie:{...ou.pie,useWidth:984},xyChart:{...ou.xyChart,useWidth:void 0},requirement:{...ou.requirement,useWidth:void 0},packet:{...ou.packet}},$$=o((e,t="")=>Object.keys(e).reduce((r,n)=>Array.isArray(e[n])?r:typeof e[n]=="object"&&e[n]!==null?[...r,t+n,...$$(e[n],"")]:[...r,t+n],[]),"keyify"),G$=new Set($$(z$,"")),Er=z$});var bp,Jxt,US=R(()=>{"use strict";hl();ce();bp=o(e=>{if(V.debug("sanitizeDirective called with",e),!(typeof e!="object"||e==null)){if(Array.isArray(e)){e.forEach(t=>bp(t));return}for(let t of Object.keys(e)){if(V.debug("Checking key",t),t.startsWith("__")||t.includes("proto")||t.includes("constr")||!G$.has(t)||e[t]==null){V.debug("sanitize deleting key: ",t),delete e[t];continue}if(typeof e[t]=="object"){V.debug("sanitizing object",t),bp(e[t]);continue}let r=["themeCSS","fontFamily","altFontFamily"];for(let n of r)t.includes(n)&&(V.debug("sanitizing css option",t),e[t]=Jxt(e[t]))}if(e.themeVariables)for(let t of Object.keys(e.themeVariables)){let r=e.themeVariables[t];r?.match&&!r.match(/^[\d "#%(),.;A-Za-z]+$/)&&(e.themeVariables[t]="")}V.debug("After sanitization",e)}},"sanitizeDirective"),Jxt=o(e=>{let t=0,r=0;for(let n of e){if(t{"use strict";yp();ce();g4();hl();US();hh=Object.freeze(Er),gs=Vn({},hh),wp=[],oy=Vn({},hh),y4=o((e,t)=>{let r=Vn({},e),n={};for(let i of t)Y$(i),n=Vn(n,i);if(r=Vn(r,n),n.theme&&n.theme in _o){let i=Vn({},U$),a=Vn(i.themeVariables||{},n.themeVariables);r.theme&&r.theme in _o&&(r.themeVariables=_o[r.theme].getThemeVariables(a))}return oy=r,X$(oy),oy},"updateCurrentConfig"),HS=o(e=>(gs=Vn({},hh),gs=Vn(gs,e),e.theme&&_o[e.theme]&&(gs.themeVariables=_o[e.theme].getThemeVariables(e.themeVariables)),y4(gs,wp),gs),"setSiteConfig"),H$=o(e=>{U$=Vn({},e)},"saveConfigFromInitialize"),W$=o(e=>(gs=Vn(gs,e),y4(gs,wp),gs),"updateSiteConfig"),WS=o(()=>Vn({},gs),"getSiteConfig"),v4=o(e=>(X$(e),Vn(oy,e),Nr()),"setConfig"),Nr=o(()=>Vn({},oy),"getConfig"),Y$=o(e=>{e&&(["secure",...gs.secure??[]].forEach(t=>{Object.hasOwn(e,t)&&(V.debug(`Denied attempt to modify a secure key ${t}`,e[t]),delete e[t])}),Object.keys(e).forEach(t=>{t.startsWith("__")&&delete e[t]}),Object.keys(e).forEach(t=>{typeof e[t]=="string"&&(e[t].includes("<")||e[t].includes(">")||e[t].includes("url(data:"))&&delete e[t],typeof e[t]=="object"&&Y$(e[t])}))},"sanitize"),q$=o(e=>{bp(e),e.fontFamily&&!e.themeVariables?.fontFamily&&(e.themeVariables={...e.themeVariables,fontFamily:e.fontFamily}),wp.push(e),y4(gs,wp)},"addDirective"),ly=o((e=gs)=>{wp=[],y4(e,wp)},"reset"),tbt={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},V$={},ebt=o(e=>{V$[e]||(V.warn(tbt[e]),V$[e]=!0)},"issueWarning"),X$=o(e=>{e&&(e.lazyLoadedDiagrams||e.loadExternalDiagramsAtStartup)&&ebt("LAZY_LOAD_DEPRECATED")},"checkConfig")});var XS=Ti((YS,qS)=>{"use strict";(function(e,t){typeof YS=="object"&&typeof qS<"u"?qS.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self,e.DOMPurify=t())})(YS,function(){"use strict";let{entries:e,setPrototypeOf:t,isFrozen:r,getPrototypeOf:n,getOwnPropertyDescriptor:i}=Object,{freeze:a,seal:s,create:l}=Object,{apply:u,construct:h}=typeof Reflect<"u"&&Reflect;a||(a=o(function(St){return St},"freeze")),s||(s=o(function(St){return St},"seal")),u||(u=o(function(St,Vt,Pt){return St.apply(Vt,Pt)},"apply")),h||(h=o(function(St,Vt){return new St(...Vt)},"construct"));let f=E(Array.prototype.forEach),d=E(Array.prototype.pop),p=E(Array.prototype.push),m=E(String.prototype.toLowerCase),g=E(String.prototype.toString),y=E(String.prototype.match),v=E(String.prototype.replace),x=E(String.prototype.indexOf),b=E(String.prototype.trim),w=E(Object.prototype.hasOwnProperty),S=E(RegExp.prototype.test),T=_(TypeError);function E(Ot){return function(St){for(var Vt=arguments.length,Pt=new Array(Vt>1?Vt-1:0),_t=1;_t2&&arguments[2]!==void 0?arguments[2]:m;t&&t(Ot,null);let Pt=St.length;for(;Pt--;){let _t=St[Pt];if(typeof _t=="string"){let dt=Vt(_t);dt!==_t&&(r(St)||(St[Pt]=dt),_t=dt)}Ot[_t]=!0}return Ot}o(A,"addToSet");function L(Ot){for(let St=0;St/gm),at=s(/\${[\w\W]*}/gm),X=s(/^data-[\-\w.\u00B7-\uFFFF]/),J=s(/^aria-[\-\w]+$/),Z=s(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),H=s(/^(?:\w+script|data):/i),q=s(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),K=s(/^html$/i),ot=s(/^[a-z][.\w]*(-[.\w]+)+$/i);var ct=Object.freeze({__proto__:null,MUSTACHE_EXPR:Q,ERB_EXPR:j,TMPLIT_EXPR:at,DATA_ATTR:X,ARIA_ATTR:J,IS_ALLOWED_URI:Z,IS_SCRIPT_OR_DATA:H,ATTR_WHITESPACE:q,DOCTYPE_NAME:K,CUSTOM_ELEMENT:ot});let ut={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},et=o(function(){return typeof window>"u"?null:window},"getGlobal"),Mt=o(function(St,Vt){if(typeof St!="object"||typeof St.createPolicy!="function")return null;let Pt=null,_t="data-tt-policy-suffix";Vt&&Vt.hasAttribute(_t)&&(Pt=Vt.getAttribute(_t));let dt="dompurify"+(Pt?"#"+Pt:"");try{return St.createPolicy(dt,{createHTML(Y){return Y},createScriptURL(Y){return Y}})}catch{return console.warn("TrustedTypes policy "+dt+" could not be created."),null}},"_createTrustedTypesPolicy");function it(){let Ot=arguments.length>0&&arguments[0]!==void 0?arguments[0]:et(),St=o(Xe=>it(Xe),"DOMPurify");if(St.version="3.1.6",St.removed=[],!Ot||!Ot.document||Ot.document.nodeType!==ut.document)return St.isSupported=!1,St;let{document:Vt}=Ot,Pt=Vt,_t=Pt.currentScript,{DocumentFragment:dt,HTMLTemplateElement:Y,Node:ft,Element:mt,NodeFilter:rt,NamedNodeMap:ht=Ot.NamedNodeMap||Ot.MozNamedAttrMap,HTMLFormElement:nt,DOMParser:st,trustedTypes:Tt}=Ot,kt=mt.prototype,Ct=N(kt,"cloneNode"),At=N(kt,"remove"),$t=N(kt,"nextSibling"),Nt=N(kt,"childNodes"),yt=N(kt,"parentNode");if(typeof Y=="function"){let Xe=Vt.createElement("template");Xe.content&&Xe.content.ownerDocument&&(Vt=Xe.content.ownerDocument)}let Ut,zt="",{implementation:ae,createNodeIterator:ke,createDocumentFragment:Ee,getElementsByTagName:le}=Vt,{importNode:Zt}=Pt,me={};St.isSupported=typeof e=="function"&&typeof yt=="function"&&ae&&ae.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:Ht,ERB_EXPR:ne,TMPLIT_EXPR:xe,DATA_ATTR:Se,ARIA_ATTR:Ye,IS_SCRIPT_OR_DATA:fe,ATTR_WHITESPACE:ee,CUSTOM_ELEMENT:pe}=ct,{IS_ALLOWED_URI:Me}=ct,oe=null,qe=A({},[...k,...I,...C,...D,...F]),Cr=null,En=A({},[...B,...G,...z,...W]),or=Object.seal(l(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}})),ln=null,Ir=null,ii=!0,mn=!0,Pn=!1,Sr=!0,pi=!1,ps=!0,Bn=!1,Eo=!1,cl=!1,Fn=!1,wi=!1,Ae=!1,Ie=!0,we=!1,Wt="user-content-",Fe=!0,gt=!1,gn={},vt=null,qa=A({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),W1=null,Y1=A({},["audio","video","img","source","image","track"]),q1=null,X1=A({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),lp="http://www.w3.org/1998/Math/MathML",jn="http://www.w3.org/2000/svg",ca="http://www.w3.org/1999/xhtml",Zl=ca,Vf=!1,j1=null,mz=A({},[lp,jn,ca],g),Uf=null,ua=["application/xhtml+xml","text/html"],K1="text/html",Cn=null,Ni=null,gz=Vt.createElement("form"),cp=o(function(Dt){return Dt instanceof RegExp||Dt instanceof Function},"isRegexOrFunction"),Jl=o(function(){let Dt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Ni&&Ni===Dt)){if((!Dt||typeof Dt!="object")&&(Dt={}),Dt=M(Dt),Uf=ua.indexOf(Dt.PARSER_MEDIA_TYPE)===-1?K1:Dt.PARSER_MEDIA_TYPE,Cn=Uf==="application/xhtml+xml"?g:m,oe=w(Dt,"ALLOWED_TAGS")?A({},Dt.ALLOWED_TAGS,Cn):qe,Cr=w(Dt,"ALLOWED_ATTR")?A({},Dt.ALLOWED_ATTR,Cn):En,j1=w(Dt,"ALLOWED_NAMESPACES")?A({},Dt.ALLOWED_NAMESPACES,g):mz,q1=w(Dt,"ADD_URI_SAFE_ATTR")?A(M(X1),Dt.ADD_URI_SAFE_ATTR,Cn):X1,W1=w(Dt,"ADD_DATA_URI_TAGS")?A(M(Y1),Dt.ADD_DATA_URI_TAGS,Cn):Y1,vt=w(Dt,"FORBID_CONTENTS")?A({},Dt.FORBID_CONTENTS,Cn):qa,ln=w(Dt,"FORBID_TAGS")?A({},Dt.FORBID_TAGS,Cn):{},Ir=w(Dt,"FORBID_ATTR")?A({},Dt.FORBID_ATTR,Cn):{},gn=w(Dt,"USE_PROFILES")?Dt.USE_PROFILES:!1,ii=Dt.ALLOW_ARIA_ATTR!==!1,mn=Dt.ALLOW_DATA_ATTR!==!1,Pn=Dt.ALLOW_UNKNOWN_PROTOCOLS||!1,Sr=Dt.ALLOW_SELF_CLOSE_IN_ATTR!==!1,pi=Dt.SAFE_FOR_TEMPLATES||!1,ps=Dt.SAFE_FOR_XML!==!1,Bn=Dt.WHOLE_DOCUMENT||!1,Fn=Dt.RETURN_DOM||!1,wi=Dt.RETURN_DOM_FRAGMENT||!1,Ae=Dt.RETURN_TRUSTED_TYPE||!1,cl=Dt.FORCE_BODY||!1,Ie=Dt.SANITIZE_DOM!==!1,we=Dt.SANITIZE_NAMED_PROPS||!1,Fe=Dt.KEEP_CONTENT!==!1,gt=Dt.IN_PLACE||!1,Me=Dt.ALLOWED_URI_REGEXP||Z,Zl=Dt.NAMESPACE||ca,or=Dt.CUSTOM_ELEMENT_HANDLING||{},Dt.CUSTOM_ELEMENT_HANDLING&&cp(Dt.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(or.tagNameCheck=Dt.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Dt.CUSTOM_ELEMENT_HANDLING&&cp(Dt.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(or.attributeNameCheck=Dt.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Dt.CUSTOM_ELEMENT_HANDLING&&typeof Dt.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(or.allowCustomizedBuiltInElements=Dt.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),pi&&(mn=!1),wi&&(Fn=!0),gn&&(oe=A({},F),Cr=[],gn.html===!0&&(A(oe,k),A(Cr,B)),gn.svg===!0&&(A(oe,I),A(Cr,G),A(Cr,W)),gn.svgFilters===!0&&(A(oe,C),A(Cr,G),A(Cr,W)),gn.mathMl===!0&&(A(oe,D),A(Cr,z),A(Cr,W))),Dt.ADD_TAGS&&(oe===qe&&(oe=M(oe)),A(oe,Dt.ADD_TAGS,Cn)),Dt.ADD_ATTR&&(Cr===En&&(Cr=M(Cr)),A(Cr,Dt.ADD_ATTR,Cn)),Dt.ADD_URI_SAFE_ATTR&&A(q1,Dt.ADD_URI_SAFE_ATTR,Cn),Dt.FORBID_CONTENTS&&(vt===qa&&(vt=M(vt)),A(vt,Dt.FORBID_CONTENTS,Cn)),Fe&&(oe["#text"]=!0),Bn&&A(oe,["html","head","body"]),oe.table&&(A(oe,["tbody"]),delete ln.tbody),Dt.TRUSTED_TYPES_POLICY){if(typeof Dt.TRUSTED_TYPES_POLICY.createHTML!="function")throw T('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Dt.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw T('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');Ut=Dt.TRUSTED_TYPES_POLICY,zt=Ut.createHTML("")}else Ut===void 0&&(Ut=Mt(Tt,_t)),Ut!==null&&typeof zt=="string"&&(zt=Ut.createHTML(""));a&&a(Dt),Ni=Dt}},"_parseConfig"),Hf=A({},["mi","mo","mn","ms","mtext"]),Co=A({},["foreignobject","annotation-xml"]),Kb=A({},["title","style","font","a","script"]),Wf=A({},[...I,...C,...O]),up=A({},[...D,...P]),Xa=o(function(Dt){let ge=yt(Dt);(!ge||!ge.tagName)&&(ge={namespaceURI:Zl,tagName:"template"});let ze=m(Dt.tagName),Sn=m(ge.tagName);return j1[Dt.namespaceURI]?Dt.namespaceURI===jn?ge.namespaceURI===ca?ze==="svg":ge.namespaceURI===lp?ze==="svg"&&(Sn==="annotation-xml"||Hf[Sn]):!!Wf[ze]:Dt.namespaceURI===lp?ge.namespaceURI===ca?ze==="math":ge.namespaceURI===jn?ze==="math"&&Co[Sn]:!!up[ze]:Dt.namespaceURI===ca?ge.namespaceURI===jn&&!Co[Sn]||ge.namespaceURI===lp&&!Hf[Sn]?!1:!up[ze]&&(Kb[ze]||!Wf[ze]):!!(Uf==="application/xhtml+xml"&&j1[Dt.namespaceURI]):!1},"_checkValidNamespace"),tc=o(function(Dt){p(St.removed,{element:Dt});try{yt(Dt).removeChild(Dt)}catch{At(Dt)}},"_forceRemove"),Qb=o(function(Dt,ge){try{p(St.removed,{attribute:ge.getAttributeNode(Dt),from:ge})}catch{p(St.removed,{attribute:null,from:ge})}if(ge.removeAttribute(Dt),Dt==="is"&&!Cr[Dt])if(Fn||wi)try{tc(ge)}catch{}else try{ge.setAttribute(Dt,"")}catch{}},"_removeAttribute"),yz=o(function(Dt){let ge=null,ze=null;if(cl)Dt=""+Dt;else{let ha=y(Dt,/^[\r\n\t ]+/);ze=ha&&ha[0]}Uf==="application/xhtml+xml"&&Zl===ca&&(Dt=''+Dt+"");let Sn=Ut?Ut.createHTML(Dt):Dt;if(Zl===ca)try{ge=new st().parseFromString(Sn,Uf)}catch{}if(!ge||!ge.documentElement){ge=ae.createDocument(Zl,"template",null);try{ge.documentElement.innerHTML=Vf?zt:Sn}catch{}}let Na=ge.body||ge.documentElement;return Dt&&ze&&Na.insertBefore(Vt.createTextNode(ze),Na.childNodes[0]||null),Zl===ca?le.call(ge,Bn?"html":"body")[0]:Bn?ge.documentElement:Na},"_initDocument"),vz=o(function(Dt){return ke.call(Dt.ownerDocument||Dt,Dt,rt.SHOW_ELEMENT|rt.SHOW_COMMENT|rt.SHOW_TEXT|rt.SHOW_PROCESSING_INSTRUCTION|rt.SHOW_CDATA_SECTION,null)},"_createNodeIterator"),xz=o(function(Dt){return Dt instanceof nt&&(typeof Dt.nodeName!="string"||typeof Dt.textContent!="string"||typeof Dt.removeChild!="function"||!(Dt.attributes instanceof ht)||typeof Dt.removeAttribute!="function"||typeof Dt.setAttribute!="function"||typeof Dt.namespaceURI!="string"||typeof Dt.insertBefore!="function"||typeof Dt.hasChildNodes!="function")},"_isClobbered"),bz=o(function(Dt){return typeof ft=="function"&&Dt instanceof ft},"_isNode"),ru=o(function(Dt,ge,ze){me[Dt]&&f(me[Dt],Sn=>{Sn.call(St,ge,ze,Ni)})},"_executeHook"),wz=o(function(Dt){let ge=null;if(ru("beforeSanitizeElements",Dt,null),xz(Dt))return tc(Dt),!0;let ze=Cn(Dt.nodeName);if(ru("uponSanitizeElement",Dt,{tagName:ze,allowedTags:oe}),Dt.hasChildNodes()&&!bz(Dt.firstElementChild)&&S(/<[/\w]/g,Dt.innerHTML)&&S(/<[/\w]/g,Dt.textContent)||Dt.nodeType===ut.progressingInstruction||ps&&Dt.nodeType===ut.comment&&S(/<[/\w]/g,Dt.data))return tc(Dt),!0;if(!oe[ze]||ln[ze]){if(!ln[ze]&&kz(ze)&&(or.tagNameCheck instanceof RegExp&&S(or.tagNameCheck,ze)||or.tagNameCheck instanceof Function&&or.tagNameCheck(ze)))return!1;if(Fe&&!vt[ze]){let Sn=yt(Dt)||Dt.parentNode,Na=Nt(Dt)||Dt.childNodes;if(Na&&Sn){let ha=Na.length;for(let ms=ha-1;ms>=0;--ms){let ec=Ct(Na[ms],!0);ec.__removalCount=(Dt.__removalCount||0)+1,Sn.insertBefore(ec,$t(Dt))}}}return tc(Dt),!0}return Dt instanceof mt&&!Xa(Dt)||(ze==="noscript"||ze==="noembed"||ze==="noframes")&&S(/<\/no(script|embed|frames)/i,Dt.innerHTML)?(tc(Dt),!0):(pi&&Dt.nodeType===ut.text&&(ge=Dt.textContent,f([Ht,ne,xe],Sn=>{ge=v(ge,Sn," ")}),Dt.textContent!==ge&&(p(St.removed,{element:Dt.cloneNode()}),Dt.textContent=ge)),ru("afterSanitizeElements",Dt,null),!1)},"_sanitizeElements"),Tz=o(function(Dt,ge,ze){if(Ie&&(ge==="id"||ge==="name")&&(ze in Vt||ze in gz))return!1;if(!(mn&&!Ir[ge]&&S(Se,ge))){if(!(ii&&S(Ye,ge))){if(!Cr[ge]||Ir[ge]){if(!(kz(Dt)&&(or.tagNameCheck instanceof RegExp&&S(or.tagNameCheck,Dt)||or.tagNameCheck instanceof Function&&or.tagNameCheck(Dt))&&(or.attributeNameCheck instanceof RegExp&&S(or.attributeNameCheck,ge)||or.attributeNameCheck instanceof Function&&or.attributeNameCheck(ge))||ge==="is"&&or.allowCustomizedBuiltInElements&&(or.tagNameCheck instanceof RegExp&&S(or.tagNameCheck,ze)||or.tagNameCheck instanceof Function&&or.tagNameCheck(ze))))return!1}else if(!q1[ge]){if(!S(Me,v(ze,ee,""))){if(!((ge==="src"||ge==="xlink:href"||ge==="href")&&Dt!=="script"&&x(ze,"data:")===0&&W1[Dt])){if(!(Pn&&!S(fe,v(ze,ee,"")))){if(ze)return!1}}}}}}return!0},"_isValidAttribute"),kz=o(function(Dt){return Dt!=="annotation-xml"&&y(Dt,pe)},"_isBasicCustomElement"),Ez=o(function(Dt){ru("beforeSanitizeAttributes",Dt,null);let{attributes:ge}=Dt;if(!ge)return;let ze={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Cr},Sn=ge.length;for(;Sn--;){let Na=ge[Sn],{name:ha,namespaceURI:ms,value:ec}=Na,Q1=Cn(ha),ja=ha==="value"?ec:b(ec);if(ze.attrName=Q1,ze.attrValue=ja,ze.keepAttr=!0,ze.forceKeepAttr=void 0,ru("uponSanitizeAttribute",Dt,ze),ja=ze.attrValue,ps&&S(/((--!?|])>)|<\/(style|title)/i,ja)){Qb(ha,Dt);continue}if(ze.forceKeepAttr||(Qb(ha,Dt),!ze.keepAttr))continue;if(!Sr&&S(/\/>/i,ja)){Qb(ha,Dt);continue}pi&&f([Ht,ne,xe],Sz=>{ja=v(ja,Sz," ")});let Cz=Cn(Dt.nodeName);if(Tz(Cz,Q1,ja)){if(we&&(Q1==="id"||Q1==="name")&&(Qb(ha,Dt),ja=Wt+ja),Ut&&typeof Tt=="object"&&typeof Tt.getAttributeType=="function"&&!ms)switch(Tt.getAttributeType(Cz,Q1)){case"TrustedHTML":{ja=Ut.createHTML(ja);break}case"TrustedScriptURL":{ja=Ut.createScriptURL(ja);break}}try{ms?Dt.setAttributeNS(ms,ha,ja):Dt.setAttribute(ha,ja),xz(Dt)?tc(Dt):d(St.removed)}catch{}}}ru("afterSanitizeAttributes",Dt,null)},"_sanitizeAttributes"),sxt=o(function Xe(Dt){let ge=null,ze=vz(Dt);for(ru("beforeSanitizeShadowDOM",Dt,null);ge=ze.nextNode();)ru("uponSanitizeShadowNode",ge,null),!wz(ge)&&(ge.content instanceof dt&&Xe(ge.content),Ez(ge));ru("afterSanitizeShadowDOM",Dt,null)},"_sanitizeShadowDOM");return St.sanitize=function(Xe){let Dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ge=null,ze=null,Sn=null,Na=null;if(Vf=!Xe,Vf&&(Xe=""),typeof Xe!="string"&&!bz(Xe))if(typeof Xe.toString=="function"){if(Xe=Xe.toString(),typeof Xe!="string")throw T("dirty is not a string, aborting")}else throw T("toString is not a function");if(!St.isSupported)return Xe;if(Eo||Jl(Dt),St.removed=[],typeof Xe=="string"&&(gt=!1),gt){if(Xe.nodeName){let ec=Cn(Xe.nodeName);if(!oe[ec]||ln[ec])throw T("root node is forbidden and cannot be sanitized in-place")}}else if(Xe instanceof ft)ge=yz(""),ze=ge.ownerDocument.importNode(Xe,!0),ze.nodeType===ut.element&&ze.nodeName==="BODY"||ze.nodeName==="HTML"?ge=ze:ge.appendChild(ze);else{if(!Fn&&!pi&&!Bn&&Xe.indexOf("<")===-1)return Ut&&Ae?Ut.createHTML(Xe):Xe;if(ge=yz(Xe),!ge)return Fn?null:Ae?zt:""}ge&&cl&&tc(ge.firstChild);let ha=vz(gt?Xe:ge);for(;Sn=ha.nextNode();)wz(Sn)||(Sn.content instanceof dt&&sxt(Sn.content),Ez(Sn));if(gt)return Xe;if(Fn){if(wi)for(Na=Ee.call(ge.ownerDocument);ge.firstChild;)Na.appendChild(ge.firstChild);else Na=ge;return(Cr.shadowroot||Cr.shadowrootmode)&&(Na=Zt.call(Pt,Na,!0)),Na}let ms=Bn?ge.outerHTML:ge.innerHTML;return Bn&&oe["!doctype"]&&ge.ownerDocument&&ge.ownerDocument.doctype&&ge.ownerDocument.doctype.name&&S(K,ge.ownerDocument.doctype.name)&&(ms=" +`+ms),pi&&f([Ht,ne,xe],ec=>{ms=v(ms,ec," ")}),Ut&&Ae?Ut.createHTML(ms):ms},St.setConfig=function(){let Xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Jl(Xe),Eo=!0},St.clearConfig=function(){Ni=null,Eo=!1},St.isValidAttribute=function(Xe,Dt,ge){Ni||Jl({});let ze=Cn(Xe),Sn=Cn(Dt);return Tz(ze,Sn,ge)},St.addHook=function(Xe,Dt){typeof Dt=="function"&&(me[Xe]=me[Xe]||[],p(me[Xe],Dt))},St.removeHook=function(Xe){if(me[Xe])return d(me[Xe])},St.removeHooks=function(Xe){me[Xe]&&(me[Xe]=[])},St.removeAllHooks=function(){me={}},St}o(it,"createDOMPurify");var wt=it();return wt})});var wV={};xr(wV,{default:()=>j4t});function lbt(e){return String(e).replace(obt,t=>sbt[t])}function fbt(e){if(e.default)return e.default;var t=e.type,r=Array.isArray(t)?t[0]:t;if(typeof r!="string")return r.enum[0];switch(r){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}function xbt(e){for(var t=0;t=i[0]&&e<=i[1])return r.name}return null}function AG(e){for(var t=0;t=R4[t]&&e<=R4[t+1])return!0;return!1}function Dbt(e,t){ac[e]=t}function b7(e,t,r){if(!ac[t])throw new Error("Font metrics not found for font: "+t+".");var n=e.charCodeAt(0),i=ac[t][n];if(!i&&e[0]in K$&&(n=K$[e[0]].charCodeAt(0),i=ac[t][n]),!i&&r==="text"&&AG(n)&&(i=ac[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}function Rbt(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!jS[t]){var r=jS[t]={cssEmPerMu:x4.quad[t]/18};for(var n in x4)x4.hasOwnProperty(n)&&(r[n]=x4[n][t])}return jS[t]}function J$(e){if(e instanceof xs)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}function Obt(e){if(e instanceof td)return e;throw new Error("Expected span but got "+String(e)+".")}function $(e,t,r,n,i,a){An[e][i]={font:t,group:r,replace:n},a&&n&&(An[e][n]=An[e][i])}function Ce(e){for(var{type:t,names:r,props:n,handler:i,htmlBuilder:a,mathmlBuilder:s}=e,l={type:t,numArgs:n.numArgs,argTypes:n.argTypes,allowedInArgument:!!n.allowedInArgument,allowedInText:!!n.allowedInText,allowedInMath:n.allowedInMath===void 0?!0:n.allowedInMath,numOptionalArgs:n.numOptionalArgs||0,infix:!!n.infix,primitive:!!n.primitive,handler:i},u=0;u0&&(a.push(S4(s,t)),s=[]),a.push(n[l]));s.length>0&&a.push(S4(s,t));var h;r?(h=S4(Oi(r,t,!0)),h.classes=["tag"],a.push(h)):i&&a.push(i);var f=fu(["katex-html"],a);if(f.setAttribute("aria-hidden","true"),h){var d=h.children[0];d.style.height=ve(f.height+f.depth),f.depth&&(d.style.verticalAlign=ve(-f.depth))}return f}function zG(e){return new Jf(e)}function iG(e,t,r,n,i){var a=bs(e,r),s;a.length===1&&a[0]instanceof vs&&tr.contains(["mrow","mtable"],a[0].type)?s=a[0]:s=new se.MathNode("mrow",a);var l=new se.MathNode("annotation",[new se.TextNode(t)]);l.setAttribute("encoding","application/x-tex");var u=new se.MathNode("semantics",[s,l]),h=new se.MathNode("math",[u]);h.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),n&&h.setAttribute("display","block");var f=i?"katex":"katex-mathml";return Bt.makeSpan([f],[h])}function mr(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function E7(e){var t=V4(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function V4(e){return e&&(e.type==="atom"||Bbt.hasOwnProperty(e.type))?e:null}function UG(e,t){var r=Oi(e.body,t,!0);return d4t([e.mclass],r,t)}function HG(e,t){var r,n=bs(e.body,t);return e.mclass==="minner"?r=new se.MathNode("mpadded",n):e.mclass==="mord"?e.isCharacterBox?(r=n[0],r.type="mi"):r=new se.MathNode("mi",n):(e.isCharacterBox?(r=n[0],r.type="mo"):r=new se.MathNode("mo",n),e.mclass==="mbin"?(r.attributes.lspace="0.22em",r.attributes.rspace="0.22em"):e.mclass==="mpunct"?(r.attributes.lspace="0em",r.attributes.rspace="0.17em"):e.mclass==="mopen"||e.mclass==="mclose"?(r.attributes.lspace="0em",r.attributes.rspace="0em"):e.mclass==="minner"&&(r.attributes.lspace="0.0556em",r.attributes.width="+0.1111em")),r}function g4t(e,t,r){var n=p4t[e];switch(n){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(n,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var i=r.callFunction("\\\\cdleft",[t[0]],[]),a={type:"atom",text:n,mode:"math",family:"rel"},s=r.callFunction("\\Big",[a],[]),l=r.callFunction("\\\\cdright",[t[1]],[]),u={type:"ordgroup",mode:"math",body:[i,s,l]};return r.callFunction("\\\\cdparent",[u],[])}case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var h={type:"textord",text:"\\Vert",mode:"math"};return r.callFunction("\\Big",[h],[])}default:return{type:"textord",text:" ",mode:"math"}}}function y4t(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var r=e.fetch().text;if(r==="&"||r==="\\\\")e.consume();else if(r==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new ue("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var n=[],i=[n],a=0;a-1))if("<>AV".indexOf(h)>-1)for(var d=0;d<2;d++){for(var p=!0,m=u+1;mAV=|." after @',s[u]);var g=g4t(h,f,e),y={type:"styling",body:[g],mode:"math",style:"display"};n.push(y),l=aG()}a%2===0?n.push(l):n.shift(),n=[],i.push(n)}e.gullet.endGroup(),e.gullet.endGroup();var v=new Array(i[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:v,colSeparationType:"CD",hLinesBeforeRow:new Array(i.length+1).fill([])}}function H4(e,t){var r=V4(e);if(r&&tr.contains(D4t,r.text))return r;throw r?new ue("Invalid delimiter '"+r.text+"' after '"+t.funcName+"'",e):new ue("Invalid delimiter type '"+e.type+"'",e)}function lG(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}function oc(e){for(var{type:t,names:r,props:n,handler:i,htmlBuilder:a,mathmlBuilder:s}=e,l={type:t,numArgs:n.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},u=0;u1||!f)&&y.pop(),x.length{"use strict";Ks=class e{static{o(this,"SourceLocation")}constructor(t,r,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=t,this.start=r,this.end=n}static range(t,r){return r?!t||!t.loc||!r.loc||t.loc.lexer!==r.loc.lexer?null:new e(t.loc.lexer,t.loc.start,r.loc.end):t&&t.loc}},Do=class e{static{o(this,"Token")}constructor(t,r){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=t,this.loc=r}range(t,r){return new e(r,Ks.range(this,t))}},ue=class e{static{o(this,"ParseError")}constructor(t,r){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var n="KaTeX parse error: "+t,i,a,s=r&&r.loc;if(s&&s.start<=s.end){var l=s.lexer.input;i=s.start,a=s.end,i===l.length?n+=" at end of input: ":n+=" at position "+(i+1)+": ";var u=l.slice(i,a).replace(/[^]/g,"$&\u0332"),h;i>15?h="\u2026"+l.slice(i-15,i):h=l.slice(0,i);var f;a+15":">","<":"<",'"':""","'":"'"},obt=/[&><"']/g;o(lbt,"escape");SG=o(function e(t){return t.type==="ordgroup"||t.type==="color"?t.body.length===1?e(t.body[0]):t:t.type==="font"?e(t.body):t},"getBaseElem"),cbt=o(function(t){var r=SG(t);return r.type==="mathord"||r.type==="textord"||r.type==="atom"},"isCharacterBox"),ubt=o(function(t){if(!t)throw new Error("Expected non-null, but got "+String(t));return t},"assert"),hbt=o(function(t){var r=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(t);return r?r[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(r[1])?null:r[1].toLowerCase():"_relative"},"protocolFromUrl"),tr={contains:rbt,deflt:nbt,escape:lbt,hyphenate:abt,getBaseElem:SG,isCharacterBox:cbt,protocolFromUrl:hbt},D4={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format "},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color ",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:o(e=>"#"+e,"cliProcessor")},macros:{type:"object",cli:"-m, --macro ",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:o((e,t)=>(t.push(e),t),"cliProcessor")},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:o(e=>Math.max(0,e),"processor"),cli:"--min-rule-thickness ",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:o(e=>Math.max(0,e),"processor"),cli:"-s, --max-size ",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:o(e=>Math.max(0,e),"processor"),cli:"-e, --max-expand ",cliProcessor:o(e=>e==="Infinity"?1/0:parseInt(e),"cliProcessor")},globalGroup:{type:"boolean",cli:!1}};o(fbt,"getDefaultValue");dy=class{static{o(this,"Settings")}constructor(t){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,t=t||{};for(var r in D4)if(D4.hasOwnProperty(r)){var n=D4[r];this[r]=t[r]!==void 0?n.processor?n.processor(t[r]):t[r]:fbt(n)}}reportNonstrict(t,r,n){var i=this.strict;if(typeof i=="function"&&(i=i(t,r,n)),!(!i||i==="ignore")){if(i===!0||i==="error")throw new ue("LaTeX-incompatible input and strict mode is set to 'error': "+(r+" ["+t+"]"),n);i==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+t+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+r+" ["+t+"]"))}}useStrictBehavior(t,r,n){var i=this.strict;if(typeof i=="function")try{i=i(t,r,n)}catch{i="error"}return!i||i==="ignore"?!1:i===!0||i==="error"?!0:i==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+t+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+r+" ["+t+"]")),!1)}isTrusted(t){if(t.url&&!t.protocol){var r=tr.protocolFromUrl(t.url);if(r==null)return!1;t.protocol=r}var n=typeof this.trust=="function"?this.trust(t):this.trust;return!!n}},nc=class{static{o(this,"Style")}constructor(t,r,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=t,this.size=r,this.cramped=n}sup(){return ic[dbt[this.id]]}sub(){return ic[pbt[this.id]]}fracNum(){return ic[mbt[this.id]]}fracDen(){return ic[gbt[this.id]]}cramp(){return ic[ybt[this.id]]}text(){return ic[vbt[this.id]]}isTight(){return this.size>=2}},x7=0,N4=1,Ep=2,uu=3,py=4,Lo=5,Cp=6,Qa=7,ic=[new nc(x7,0,!1),new nc(N4,0,!0),new nc(Ep,1,!1),new nc(uu,1,!0),new nc(py,2,!1),new nc(Lo,2,!0),new nc(Cp,3,!1),new nc(Qa,3,!0)],dbt=[py,Lo,py,Lo,Cp,Qa,Cp,Qa],pbt=[Lo,Lo,Lo,Lo,Qa,Qa,Qa,Qa],mbt=[Ep,uu,py,Lo,Cp,Qa,Cp,Qa],gbt=[uu,uu,Lo,Lo,Qa,Qa,Qa,Qa],ybt=[N4,N4,uu,uu,Lo,Lo,Qa,Qa],vbt=[x7,N4,Ep,uu,Ep,uu,Ep,uu],rr={DISPLAY:ic[x7],TEXT:ic[Ep],SCRIPT:ic[py],SCRIPTSCRIPT:ic[Cp]},o7=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];o(xbt,"scriptFromCodepoint");R4=[];o7.forEach(e=>e.blocks.forEach(t=>R4.push(...t)));o(AG,"supportedCodepoint");kp=80,bbt=o(function(t,r){return"M95,"+(622+t+r)+` +c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 +c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54 +c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10 +s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429 +c69,-144,104.5,-217.7,106.5,-221 +l`+t/2.075+" -"+t+` +c5.3,-9.3,12,-14,20,-14 +H400000v`+(40+t)+`H845.2724 +s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7 +c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z +M`+(834+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},"sqrtMain"),wbt=o(function(t,r){return"M263,"+(601+t+r)+`c0.7,0,18,39.7,52,119 +c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120 +c340,-704.7,510.7,-1060.3,512,-1067 +l`+t/2.084+" -"+t+` +c4.7,-7.3,11,-11,19,-11 +H40000v`+(40+t)+`H1012.3 +s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232 +c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1 +s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26 +c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z +M`+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},"sqrtSize1"),Tbt=o(function(t,r){return"M983 "+(10+t+r)+` +l`+t/3.13+" -"+t+` +c4,-6.7,10,-10,18,-10 H400000v`+(40+t)+` +H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7 +s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744 +c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30 +c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722 +c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5 +c53.7,-170.3,84.5,-266.8,92.5,-289.5z +M`+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},"sqrtSize2"),kbt=o(function(t,r){return"M424,"+(2398+t+r)+` +c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514 +c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20 +s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121 +s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081 +l`+t/4.223+" -"+t+`c4,-6.7,10,-10,18,-10 H400000 +v`+(40+t)+`H1014.6 +s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185 +c-2,6,-10,9,-24,9 +c-8,0,-12,-0.7,-12,-2z M`+(1001+t)+" "+r+` +h400000v`+(40+t)+"h-400000z"},"sqrtSize3"),Ebt=o(function(t,r){return"M473,"+(2713+t+r)+` +c339.3,-1799.3,509.3,-2700,510,-2702 l`+t/5.298+" -"+t+` +c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+t)+`H1017.7 +s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9 +c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200 +c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26 +s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104, +606zM`+(1001+t)+" "+r+"h400000v"+(40+t)+"H1017.7z"},"sqrtSize4"),Cbt=o(function(t){var r=t/2;return"M400000 "+t+" H0 L"+r+" 0 l65 45 L145 "+(t-80)+" H400000z"},"phasePath"),Sbt=o(function(t,r,n){var i=n-54-r-t;return"M702 "+(t+r)+"H400000"+(40+t)+` +H742v`+i+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1 +h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170 +c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667 +219 661 l218 661zM702 `+r+"H400000v"+(40+t)+"H742z"},"sqrtTall"),Abt=o(function(t,r,n){r=1e3*r;var i="";switch(t){case"sqrtMain":i=bbt(r,kp);break;case"sqrtSize1":i=wbt(r,kp);break;case"sqrtSize2":i=Tbt(r,kp);break;case"sqrtSize3":i=kbt(r,kp);break;case"sqrtSize4":i=Ebt(r,kp);break;case"sqrtTall":i=Sbt(r,kp,n)}return i},"sqrtPath"),_bt=o(function(t,r){switch(t){case"\u239C":return"M291 0 H417 V"+r+" H291z M291 0 H417 V"+r+" H291z";case"\u2223":return"M145 0 H188 V"+r+" H145z M145 0 H188 V"+r+" H145z";case"\u2225":return"M145 0 H188 V"+r+" H145z M145 0 H188 V"+r+" H145z"+("M367 0 H410 V"+r+" H367z M367 0 H410 V"+r+" H367z");case"\u239F":return"M457 0 H583 V"+r+" H457z M457 0 H583 V"+r+" H457z";case"\u23A2":return"M319 0 H403 V"+r+" H319z M319 0 H403 V"+r+" H319z";case"\u23A5":return"M263 0 H347 V"+r+" H263z M263 0 H347 V"+r+" H263z";case"\u23AA":return"M384 0 H504 V"+r+" H384z M384 0 H504 V"+r+" H384z";case"\u23D0":return"M312 0 H355 V"+r+" H312z M312 0 H355 V"+r+" H312z";case"\u2016":return"M257 0 H300 V"+r+" H257z M257 0 H300 V"+r+" H257z"+("M478 0 H521 V"+r+" H478z M478 0 H521 V"+r+" H478z");default:return""}},"innerPath"),j$={doubleleftarrow:`M262 157 +l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3 + 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28 + 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5 +c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5 + 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87 +-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7 +-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z +m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l +-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5 + 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88 +-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68 +-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18 +-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782 +c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3 +-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120 + 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8 +-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247 +c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208 + 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3 + 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202 + l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117 +-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7 + 5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13 + 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688 + 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7 +-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80 +H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0 + 435 0h399565z`,leftgroupunder:`M400000 262 +H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219 + 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3 +-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5 +-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7 +-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5 + 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3 +-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7 +-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z +m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333 + 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5 + 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667 +-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12 + 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7 +-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0 +v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5 +-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3 +-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21 + 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z +M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z +M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23 +-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8 +c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3 + 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z +M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334 +c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14 +-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7 + 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11 + 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214 +c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14 + 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3 + 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0 +-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6 +-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z +m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8 +60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8 +-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z +m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2 +c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6 +-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z +m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0 +85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8 +-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z +m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1 +c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128 +-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 + 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 + 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85 +-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5 +-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67 + 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l +-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5 +s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1 +c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3 + 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237 +-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0 + 3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18 + 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3 +-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2 +-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 + 69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11 +-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7 + 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z +m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8 + 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5 +-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95 +-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8 + 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 + 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3 +-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z +m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3 + 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0 +-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21 + 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z +M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23 + 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32 +-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142 +-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40 + 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69 +-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3 +-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19 +-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101 + 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167 +c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3 + 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42 + 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333 +-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70 + 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7 +-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0 + 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0 + 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128 +-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418 +-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9 + 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114 +c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751 + 181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457 +-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0 + 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697 + 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696 + -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345 +-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409 + 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9 + 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409 + -175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5 +3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11 +10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63 +-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1 +-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59 +H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359 +c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22 +c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10 +-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10 +-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10 +-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1, +-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, +-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, +-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, +-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202 +c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5 +c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130 +s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47 +121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6 +s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11 +c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z +M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32 +-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0 +13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39 +-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5 +-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5 +-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67 +151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11 +c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17 +c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21 +c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40 +c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z +M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0 +c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, +-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 +c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z +M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11 +c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9, +1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7, +-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z +M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0 +c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, +-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 +c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z +M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},Lbt=o(function(t,r){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v1759 h347 v-84 +H403z M403 1759 V0 H319 V1759 v`+r+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v1759 H0 v84 H347z +M347 1759 V0 H263 V1759 v`+r+" v1759 h84z";case"vert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15 +c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15 +c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+" v585 h43z";case"doublevert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15 +c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15 +c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+` v585 h43z +M367 15 v585 v`+r+` v585 c2.667,10,9.667,15,21,15 +c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15 +c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+r+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+r+` v1715 h263 v84 H319z +MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+r+` v1799 H0 v-84 H319z +MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v602 h84z +M403 1759 V0 H319 V1759 v`+r+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v602 h84z +M347 1759 V0 h-84 V1759 v`+r+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1 +c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349, +-36,557 l0,`+(r+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210, +949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9 +c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5, +-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189 +l0,-`+(r+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3, +-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3, +63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5 +c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(r+9)+` +c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664 +c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11 +c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17 +c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558 +l0,-`+(r+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7, +-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}},"tallDelim"),Jf=class{static{o(this,"DocumentFragment")}constructor(t){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(t){return tr.contains(this.classes,t)}toNode(){for(var t=document.createDocumentFragment(),r=0;rr.toText(),"toText");return this.children.map(t).join("")}},ac={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},x4={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},K$={\u00C5:"A",\u00D0:"D",\u00DE:"o",\u00E5:"a",\u00F0:"d",\u00FE:"o",\u0410:"A",\u0411:"B",\u0412:"B",\u0413:"F",\u0414:"A",\u0415:"E",\u0416:"K",\u0417:"3",\u0418:"N",\u0419:"N",\u041A:"K",\u041B:"N",\u041C:"M",\u041D:"H",\u041E:"O",\u041F:"N",\u0420:"P",\u0421:"C",\u0422:"T",\u0423:"y",\u0424:"O",\u0425:"X",\u0426:"U",\u0427:"h",\u0428:"W",\u0429:"W",\u042A:"B",\u042B:"X",\u042C:"B",\u042D:"3",\u042E:"X",\u042F:"R",\u0430:"a",\u0431:"b",\u0432:"a",\u0433:"r",\u0434:"y",\u0435:"e",\u0436:"m",\u0437:"e",\u0438:"n",\u0439:"n",\u043A:"n",\u043B:"n",\u043C:"m",\u043D:"n",\u043E:"o",\u043F:"n",\u0440:"p",\u0441:"c",\u0442:"o",\u0443:"y",\u0444:"b",\u0445:"x",\u0446:"n",\u0447:"n",\u0448:"w",\u0449:"w",\u044A:"a",\u044B:"m",\u044C:"a",\u044D:"e",\u044E:"m",\u044F:"r"};o(Dbt,"setFontMetrics");o(b7,"getCharacterMetrics");jS={};o(Rbt,"getGlobalMetrics");Nbt=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],Q$=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Z$=o(function(t,r){return r.size<2?t:Nbt[t-1][r.size-1]},"sizeAtStyle"),M4=class e{static{o(this,"Options")}constructor(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||e.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=Q$[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var r={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var n in t)t.hasOwnProperty(n)&&(r[n]=t[n]);return new e(r)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:Z$(this.textSize,t)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(t){return this.size===t&&this.textSize===t?this:this.extend({style:this.style.text(),size:t,textSize:t,sizeMultiplier:Q$[t-1]})}havingBaseStyle(t){t=t||this.style.text();var r=Z$(e.BASESIZE,t);return this.size===r&&this.textSize===e.BASESIZE&&this.style===t?this:this.extend({style:t,size:r})}havingBaseSizing(){var t;switch(this.style.id){case 4:case 5:t=3;break;case 6:case 7:t=1;break;default:t=6}return this.extend({style:this.style.text(),size:t})}withColor(t){return this.extend({color:t})}withPhantom(){return this.extend({phantom:!0})}withFont(t){return this.extend({font:t})}withTextFontFamily(t){return this.extend({fontFamily:t,font:""})}withTextFontWeight(t){return this.extend({fontWeight:t,font:""})}withTextFontShape(t){return this.extend({fontShape:t,font:""})}sizingClasses(t){return t.size!==this.size?["sizing","reset-size"+t.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==e.BASESIZE?["sizing","reset-size"+this.size,"size"+e.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=Rbt(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}};M4.BASESIZE=6;l7={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},Mbt={ex:!0,em:!0,mu:!0},_G=o(function(t){return typeof t!="string"&&(t=t.unit),t in l7||t in Mbt||t==="ex"},"validUnit"),Zn=o(function(t,r){var n;if(t.unit in l7)n=l7[t.unit]/r.fontMetrics().ptPerEm/r.sizeMultiplier;else if(t.unit==="mu")n=r.fontMetrics().cssEmPerMu;else{var i;if(r.style.isTight()?i=r.havingStyle(r.style.text()):i=r,t.unit==="ex")n=i.fontMetrics().xHeight;else if(t.unit==="em")n=i.fontMetrics().quad;else throw new ue("Invalid unit: '"+t.unit+"'");i!==r&&(n*=i.sizeMultiplier/r.sizeMultiplier)}return Math.min(t.number*n,r.maxSize)},"calculateSize"),ve=o(function(t){return+t.toFixed(4)+"em"},"makeEm"),ph=o(function(t){return t.filter(r=>r).join(" ")},"createClass"),LG=o(function(t,r,n){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},r){r.style.isTight()&&this.classes.push("mtight");var i=r.getColor();i&&(this.style.color=i)}},"initNode"),DG=o(function(t){var r=document.createElement(t);r.className=ph(this.classes);for(var n in this.style)this.style.hasOwnProperty(n)&&(r.style[n]=this.style[n]);for(var i in this.attributes)this.attributes.hasOwnProperty(i)&&r.setAttribute(i,this.attributes[i]);for(var a=0;a",r},"toMarkup"),td=class{static{o(this,"Span")}constructor(t,r,n,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,LG.call(this,t,n,i),this.children=r||[]}setAttribute(t,r){this.attributes[t]=r}hasClass(t){return tr.contains(this.classes,t)}toNode(){return DG.call(this,"span")}toMarkup(){return RG.call(this,"span")}},my=class{static{o(this,"Anchor")}constructor(t,r,n,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,LG.call(this,r,i),this.children=n||[],this.setAttribute("href",t)}setAttribute(t,r){this.attributes[t]=r}hasClass(t){return tr.contains(this.classes,t)}toNode(){return DG.call(this,"a")}toMarkup(){return RG.call(this,"a")}},c7=class{static{o(this,"Img")}constructor(t,r,n){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=r,this.src=t,this.classes=["mord"],this.style=n}hasClass(t){return tr.contains(this.classes,t)}toNode(){var t=document.createElement("img");t.src=this.src,t.alt=this.alt,t.className="mord";for(var r in this.style)this.style.hasOwnProperty(r)&&(t.style[r]=this.style[r]);return t}toMarkup(){var t=''+tr.escape(this.alt)+'0&&(r=document.createElement("span"),r.style.marginRight=ve(this.italic)),this.classes.length>0&&(r=r||document.createElement("span"),r.className=ph(this.classes));for(var n in this.style)this.style.hasOwnProperty(n)&&(r=r||document.createElement("span"),r.style[n]=this.style[n]);return r?(r.appendChild(t),r):t}toMarkup(){var t=!1,r="0&&(n+="margin-right:"+this.italic+"em;");for(var i in this.style)this.style.hasOwnProperty(i)&&(n+=tr.hyphenate(i)+":"+this.style[i]+";");n&&(t=!0,r+=' style="'+tr.escape(n)+'"');var a=tr.escape(this.text);return t?(r+=">",r+=a,r+="",r):a}},dl=class{static{o(this,"SvgNode")}constructor(t,r){this.children=void 0,this.attributes=void 0,this.children=t||[],this.attributes=r||{}}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"svg");for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&r.setAttribute(n,this.attributes[n]);for(var i=0;i':''}},gy=class{static{o(this,"LineNode")}constructor(t){this.attributes=void 0,this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"line");for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&r.setAttribute(n,this.attributes[n]);return r}toMarkup(){var t="","\\gt",!0);$(U,tt,bt,"\u2208","\\in",!0);$(U,tt,bt,"\uE020","\\@not");$(U,tt,bt,"\u2282","\\subset",!0);$(U,tt,bt,"\u2283","\\supset",!0);$(U,tt,bt,"\u2286","\\subseteq",!0);$(U,tt,bt,"\u2287","\\supseteq",!0);$(U,xt,bt,"\u2288","\\nsubseteq",!0);$(U,xt,bt,"\u2289","\\nsupseteq",!0);$(U,tt,bt,"\u22A8","\\models");$(U,tt,bt,"\u2190","\\leftarrow",!0);$(U,tt,bt,"\u2264","\\le");$(U,tt,bt,"\u2264","\\leq",!0);$(U,tt,bt,"<","\\lt",!0);$(U,tt,bt,"\u2192","\\rightarrow",!0);$(U,tt,bt,"\u2192","\\to");$(U,xt,bt,"\u2271","\\ngeq",!0);$(U,xt,bt,"\u2270","\\nleq",!0);$(U,tt,pu,"\xA0","\\ ");$(U,tt,pu,"\xA0","\\space");$(U,tt,pu,"\xA0","\\nobreakspace");$(ie,tt,pu,"\xA0","\\ ");$(ie,tt,pu,"\xA0"," ");$(ie,tt,pu,"\xA0","\\space");$(ie,tt,pu,"\xA0","\\nobreakspace");$(U,tt,pu,null,"\\nobreak");$(U,tt,pu,null,"\\allowbreak");$(U,tt,$4,",",",");$(U,tt,$4,";",";");$(U,xt,_e,"\u22BC","\\barwedge",!0);$(U,xt,_e,"\u22BB","\\veebar",!0);$(U,tt,_e,"\u2299","\\odot",!0);$(U,tt,_e,"\u2295","\\oplus",!0);$(U,tt,_e,"\u2297","\\otimes",!0);$(U,tt,Lt,"\u2202","\\partial",!0);$(U,tt,_e,"\u2298","\\oslash",!0);$(U,xt,_e,"\u229A","\\circledcirc",!0);$(U,xt,_e,"\u22A1","\\boxdot",!0);$(U,tt,_e,"\u25B3","\\bigtriangleup");$(U,tt,_e,"\u25BD","\\bigtriangledown");$(U,tt,_e,"\u2020","\\dagger");$(U,tt,_e,"\u22C4","\\diamond");$(U,tt,_e,"\u22C6","\\star");$(U,tt,_e,"\u25C3","\\triangleleft");$(U,tt,_e,"\u25B9","\\triangleright");$(U,tt,Qs,"{","\\{");$(ie,tt,Lt,"{","\\{");$(ie,tt,Lt,"{","\\textbraceleft");$(U,tt,Za,"}","\\}");$(ie,tt,Lt,"}","\\}");$(ie,tt,Lt,"}","\\textbraceright");$(U,tt,Qs,"{","\\lbrace");$(U,tt,Za,"}","\\rbrace");$(U,tt,Qs,"[","\\lbrack",!0);$(ie,tt,Lt,"[","\\lbrack",!0);$(U,tt,Za,"]","\\rbrack",!0);$(ie,tt,Lt,"]","\\rbrack",!0);$(U,tt,Qs,"(","\\lparen",!0);$(U,tt,Za,")","\\rparen",!0);$(ie,tt,Lt,"<","\\textless",!0);$(ie,tt,Lt,">","\\textgreater",!0);$(U,tt,Qs,"\u230A","\\lfloor",!0);$(U,tt,Za,"\u230B","\\rfloor",!0);$(U,tt,Qs,"\u2308","\\lceil",!0);$(U,tt,Za,"\u2309","\\rceil",!0);$(U,tt,Lt,"\\","\\backslash");$(U,tt,Lt,"\u2223","|");$(U,tt,Lt,"\u2223","\\vert");$(ie,tt,Lt,"|","\\textbar",!0);$(U,tt,Lt,"\u2225","\\|");$(U,tt,Lt,"\u2225","\\Vert");$(ie,tt,Lt,"\u2225","\\textbardbl");$(ie,tt,Lt,"~","\\textasciitilde");$(ie,tt,Lt,"\\","\\textbackslash");$(ie,tt,Lt,"^","\\textasciicircum");$(U,tt,bt,"\u2191","\\uparrow",!0);$(U,tt,bt,"\u21D1","\\Uparrow",!0);$(U,tt,bt,"\u2193","\\downarrow",!0);$(U,tt,bt,"\u21D3","\\Downarrow",!0);$(U,tt,bt,"\u2195","\\updownarrow",!0);$(U,tt,bt,"\u21D5","\\Updownarrow",!0);$(U,tt,Ei,"\u2210","\\coprod");$(U,tt,Ei,"\u22C1","\\bigvee");$(U,tt,Ei,"\u22C0","\\bigwedge");$(U,tt,Ei,"\u2A04","\\biguplus");$(U,tt,Ei,"\u22C2","\\bigcap");$(U,tt,Ei,"\u22C3","\\bigcup");$(U,tt,Ei,"\u222B","\\int");$(U,tt,Ei,"\u222B","\\intop");$(U,tt,Ei,"\u222C","\\iint");$(U,tt,Ei,"\u222D","\\iiint");$(U,tt,Ei,"\u220F","\\prod");$(U,tt,Ei,"\u2211","\\sum");$(U,tt,Ei,"\u2A02","\\bigotimes");$(U,tt,Ei,"\u2A01","\\bigoplus");$(U,tt,Ei,"\u2A00","\\bigodot");$(U,tt,Ei,"\u222E","\\oint");$(U,tt,Ei,"\u222F","\\oiint");$(U,tt,Ei,"\u2230","\\oiiint");$(U,tt,Ei,"\u2A06","\\bigsqcup");$(U,tt,Ei,"\u222B","\\smallint");$(ie,tt,Sp,"\u2026","\\textellipsis");$(U,tt,Sp,"\u2026","\\mathellipsis");$(ie,tt,Sp,"\u2026","\\ldots",!0);$(U,tt,Sp,"\u2026","\\ldots",!0);$(U,tt,Sp,"\u22EF","\\@cdots",!0);$(U,tt,Sp,"\u22F1","\\ddots",!0);$(U,tt,Lt,"\u22EE","\\varvdots");$(U,tt,Un,"\u02CA","\\acute");$(U,tt,Un,"\u02CB","\\grave");$(U,tt,Un,"\xA8","\\ddot");$(U,tt,Un,"~","\\tilde");$(U,tt,Un,"\u02C9","\\bar");$(U,tt,Un,"\u02D8","\\breve");$(U,tt,Un,"\u02C7","\\check");$(U,tt,Un,"^","\\hat");$(U,tt,Un,"\u20D7","\\vec");$(U,tt,Un,"\u02D9","\\dot");$(U,tt,Un,"\u02DA","\\mathring");$(U,tt,er,"\uE131","\\@imath");$(U,tt,er,"\uE237","\\@jmath");$(U,tt,Lt,"\u0131","\u0131");$(U,tt,Lt,"\u0237","\u0237");$(ie,tt,Lt,"\u0131","\\i",!0);$(ie,tt,Lt,"\u0237","\\j",!0);$(ie,tt,Lt,"\xDF","\\ss",!0);$(ie,tt,Lt,"\xE6","\\ae",!0);$(ie,tt,Lt,"\u0153","\\oe",!0);$(ie,tt,Lt,"\xF8","\\o",!0);$(ie,tt,Lt,"\xC6","\\AE",!0);$(ie,tt,Lt,"\u0152","\\OE",!0);$(ie,tt,Lt,"\xD8","\\O",!0);$(ie,tt,Un,"\u02CA","\\'");$(ie,tt,Un,"\u02CB","\\`");$(ie,tt,Un,"\u02C6","\\^");$(ie,tt,Un,"\u02DC","\\~");$(ie,tt,Un,"\u02C9","\\=");$(ie,tt,Un,"\u02D8","\\u");$(ie,tt,Un,"\u02D9","\\.");$(ie,tt,Un,"\xB8","\\c");$(ie,tt,Un,"\u02DA","\\r");$(ie,tt,Un,"\u02C7","\\v");$(ie,tt,Un,"\xA8",'\\"');$(ie,tt,Un,"\u02DD","\\H");$(ie,tt,Un,"\u25EF","\\textcircled");NG={"--":!0,"---":!0,"``":!0,"''":!0};$(ie,tt,Lt,"\u2013","--",!0);$(ie,tt,Lt,"\u2013","\\textendash");$(ie,tt,Lt,"\u2014","---",!0);$(ie,tt,Lt,"\u2014","\\textemdash");$(ie,tt,Lt,"\u2018","`",!0);$(ie,tt,Lt,"\u2018","\\textquoteleft");$(ie,tt,Lt,"\u2019","'",!0);$(ie,tt,Lt,"\u2019","\\textquoteright");$(ie,tt,Lt,"\u201C","``",!0);$(ie,tt,Lt,"\u201C","\\textquotedblleft");$(ie,tt,Lt,"\u201D","''",!0);$(ie,tt,Lt,"\u201D","\\textquotedblright");$(U,tt,Lt,"\xB0","\\degree",!0);$(ie,tt,Lt,"\xB0","\\degree");$(ie,tt,Lt,"\xB0","\\textdegree",!0);$(U,tt,Lt,"\xA3","\\pounds");$(U,tt,Lt,"\xA3","\\mathsterling",!0);$(ie,tt,Lt,"\xA3","\\pounds");$(ie,tt,Lt,"\xA3","\\textsterling",!0);$(U,xt,Lt,"\u2720","\\maltese");$(ie,xt,Lt,"\u2720","\\maltese");tG='0123456789/@."';for(b4=0;b40)return fl(a,h,i,r,s.concat(f));if(u){var d,p;if(u==="boldsymbol"){var m=$bt(a,i,r,s,n);d=m.fontName,p=[m.fontClass]}else l?(d=OG[u].fontName,p=[u]):(d=C4(u,r.fontWeight,r.fontShape),p=[u,r.fontWeight,r.fontShape]);if(G4(a,d,i).metrics)return fl(a,d,i,r,s.concat(p));if(NG.hasOwnProperty(a)&&d.slice(0,10)==="Typewriter"){for(var g=[],y=0;y{if(ph(e.classes)!==ph(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(e.classes.length===1){var r=e.classes[0];if(r==="mbin"||r==="mord")return!1}for(var n in e.style)if(e.style.hasOwnProperty(n)&&e.style[n]!==t.style[n])return!1;for(var i in t.style)if(t.style.hasOwnProperty(i)&&e.style[i]!==t.style[i])return!1;return!0},"canCombine"),Ubt=o(e=>{for(var t=0;tr&&(r=s.height),s.depth>n&&(n=s.depth),s.maxFontSize>i&&(i=s.maxFontSize)}t.height=r,t.depth=n,t.maxFontSize=i},"sizeElementFromChildren"),ys=o(function(t,r,n,i){var a=new td(t,r,n,i);return w7(a),a},"makeSpan"),MG=o((e,t,r,n)=>new td(e,t,r,n),"makeSvgSpan"),Hbt=o(function(t,r,n){var i=ys([t],[],r);return i.height=Math.max(n||r.fontMetrics().defaultRuleThickness,r.minRuleThickness),i.style.borderBottomWidth=ve(i.height),i.maxFontSize=1,i},"makeLineSpan"),Wbt=o(function(t,r,n,i){var a=new my(t,r,n,i);return w7(a),a},"makeAnchor"),IG=o(function(t){var r=new Jf(t);return w7(r),r},"makeFragment"),Ybt=o(function(t,r){return t instanceof Jf?ys([],[t],r):t},"wrapFragment"),qbt=o(function(t){if(t.positionType==="individualShift"){for(var r=t.children,n=[r[0]],i=-r[0].shift-r[0].elem.depth,a=i,s=1;s{var r=ys(["mspace"],[],t),n=Zn(e,t);return r.style.marginRight=ve(n),r},"makeGlue"),C4=o(function(t,r,n){var i="";switch(t){case"amsrm":i="AMS";break;case"textrm":i="Main";break;case"textsf":i="SansSerif";break;case"texttt":i="Typewriter";break;default:i=t}var a;return r==="textbf"&&n==="textit"?a="BoldItalic":r==="textbf"?a="Bold":r==="textit"?a="Italic":a="Regular",i+"-"+a},"retrieveTextFontName"),OG={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},PG={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},Kbt=o(function(t,r){var[n,i,a]=PG[t],s=new sc(n),l=new dl([s],{width:ve(i),height:ve(a),style:"width:"+ve(i),viewBox:"0 0 "+1e3*i+" "+1e3*a,preserveAspectRatio:"xMinYMin"}),u=MG(["overlay"],[l],r);return u.height=a,u.style.height=ve(a),u.style.width=ve(i),u},"staticSvg"),Bt={fontMap:OG,makeSymbol:fl,mathsym:zbt,makeSpan:ys,makeSvgSpan:MG,makeLineSpan:Hbt,makeAnchor:Wbt,makeFragment:IG,wrapFragment:Ybt,makeVList:Xbt,makeOrd:Gbt,makeGlue:jbt,staticSvg:Kbt,svgData:PG,tryCombineChars:Ubt},Qn={number:3,unit:"mu"},Qf={number:4,unit:"mu"},cu={number:5,unit:"mu"},Qbt={mord:{mop:Qn,mbin:Qf,mrel:cu,minner:Qn},mop:{mord:Qn,mop:Qn,mrel:cu,minner:Qn},mbin:{mord:Qf,mop:Qf,mopen:Qf,minner:Qf},mrel:{mord:cu,mop:cu,mopen:cu,minner:cu},mopen:{},mclose:{mop:Qn,mbin:Qf,mrel:cu,minner:Qn},mpunct:{mord:Qn,mop:Qn,mrel:cu,mopen:Qn,mclose:Qn,mpunct:Qn,minner:Qn},minner:{mord:Qn,mop:Qn,mbin:Qf,mrel:cu,mopen:Qn,mpunct:Qn,minner:Qn}},Zbt={mord:{mop:Qn},mop:{mord:Qn,mop:Qn},mbin:{},mrel:{},mopen:{},mclose:{mop:Qn},mpunct:{},minner:{mop:Qn}},BG={},O4={},P4={};o(Ce,"defineFunction");o(ed,"defineFunctionBuilders");B4=o(function(t){return t.type==="ordgroup"&&t.body.length===1?t.body[0]:t},"normalizeArgument"),mi=o(function(t){return t.type==="ordgroup"?t.body:[t]},"ordargument"),fu=Bt.makeSpan,Jbt=["leftmost","mbin","mopen","mrel","mop","mpunct"],t4t=["rightmost","mrel","mclose","mpunct"],e4t={display:rr.DISPLAY,text:rr.TEXT,script:rr.SCRIPT,scriptscript:rr.SCRIPTSCRIPT},r4t={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},Oi=o(function(t,r,n,i){i===void 0&&(i=[null,null]);for(var a=[],s=0;s{var v=y.classes[0],x=g.classes[0];v==="mbin"&&tr.contains(t4t,x)?y.classes[0]="mord":x==="mbin"&&tr.contains(Jbt,v)&&(g.classes[0]="mord")},{node:d},p,m),nG(a,(g,y)=>{var v=h7(y),x=h7(g),b=v&&x?g.hasClass("mtight")?Zbt[v][x]:Qbt[v][x]:null;if(b)return Bt.makeGlue(b,h)},{node:d},p,m),a},"buildExpression"),nG=o(function e(t,r,n,i,a){i&&t.push(i);for(var s=0;sp=>{t.splice(d+1,0,p),s++})(s)}i&&t.pop()},"traverseNonSpaceNodes"),FG=o(function(t){return t instanceof Jf||t instanceof my||t instanceof td&&t.hasClass("enclosing")?t:null},"checkPartialGroup"),n4t=o(function e(t,r){var n=FG(t);if(n){var i=n.children;if(i.length){if(r==="right")return e(i[i.length-1],"right");if(r==="left")return e(i[0],"left")}}return t},"getOutermostNode"),h7=o(function(t,r){return t?(r&&(t=n4t(t,r)),r4t[t.classes[0]]||null):null},"getTypeOfDomTree"),yy=o(function(t,r){var n=["nulldelimiter"].concat(t.baseSizingClasses());return fu(r.concat(n))},"makeNullDelimiter"),Or=o(function(t,r,n){if(!t)return fu();if(O4[t.type]){var i=O4[t.type](t,r);if(n&&r.size!==n.size){i=fu(r.sizingClasses(n),[i],r);var a=r.sizeMultiplier/n.sizeMultiplier;i.height*=a,i.depth*=a}return i}else throw new ue("Got group of unknown type: '"+t.type+"'")},"buildGroup");o(S4,"buildHTMLUnbreakable");o(f7,"buildHTML");o(zG,"newDocumentFragment");vs=class{static{o(this,"MathNode")}constructor(t,r,n){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=t,this.attributes={},this.children=r||[],this.classes=n||[]}setAttribute(t,r){this.attributes[t]=r}getAttribute(t){return this.attributes[t]}toNode(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&t.setAttribute(r,this.attributes[r]);this.classes.length>0&&(t.className=ph(this.classes));for(var n=0;n0&&(t+=' class ="'+tr.escape(ph(this.classes))+'"'),t+=">";for(var n=0;n",t}toText(){return this.children.map(t=>t.toText()).join("")}},Zf=class{static{o(this,"TextNode")}constructor(t){this.text=void 0,this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return tr.escape(this.toText())}toText(){return this.text}},d7=class{static{o(this,"SpaceNode")}constructor(t){this.width=void 0,this.character=void 0,this.width=t,t>=.05555&&t<=.05556?this.character="\u200A":t>=.1666&&t<=.1667?this.character="\u2009":t>=.2222&&t<=.2223?this.character="\u2005":t>=.2777&&t<=.2778?this.character="\u2005\u200A":t>=-.05556&&t<=-.05555?this.character="\u200A\u2063":t>=-.1667&&t<=-.1666?this.character="\u2009\u2063":t>=-.2223&&t<=-.2222?this.character="\u205F\u2063":t>=-.2778&&t<=-.2777?this.character="\u2005\u2063":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var t=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return t.setAttribute("width",ve(this.width)),t}toMarkup(){return this.character?""+this.character+"":''}toText(){return this.character?this.character:" "}},se={MathNode:vs,TextNode:Zf,SpaceNode:d7,newDocumentFragment:zG},Ro=o(function(t,r,n){return An[r][t]&&An[r][t].replace&&t.charCodeAt(0)!==55349&&!(NG.hasOwnProperty(t)&&n&&(n.fontFamily&&n.fontFamily.slice(4,6)==="tt"||n.font&&n.font.slice(4,6)==="tt"))&&(t=An[r][t].replace),new se.TextNode(t)},"makeText"),T7=o(function(t){return t.length===1?t[0]:new se.MathNode("mrow",t)},"makeRow"),k7=o(function(t,r){if(r.fontFamily==="texttt")return"monospace";if(r.fontFamily==="textsf")return r.fontShape==="textit"&&r.fontWeight==="textbf"?"sans-serif-bold-italic":r.fontShape==="textit"?"sans-serif-italic":r.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(r.fontShape==="textit"&&r.fontWeight==="textbf")return"bold-italic";if(r.fontShape==="textit")return"italic";if(r.fontWeight==="textbf")return"bold";var n=r.font;if(!n||n==="mathnormal")return null;var i=t.mode;if(n==="mathit")return"italic";if(n==="boldsymbol")return t.type==="textord"?"bold":"bold-italic";if(n==="mathbf")return"bold";if(n==="mathbb")return"double-struck";if(n==="mathfrak")return"fraktur";if(n==="mathscr"||n==="mathcal")return"script";if(n==="mathsf")return"sans-serif";if(n==="mathtt")return"monospace";var a=t.text;if(tr.contains(["\\imath","\\jmath"],a))return null;An[i][a]&&An[i][a].replace&&(a=An[i][a].replace);var s=Bt.fontMap[n].fontName;return b7(a,s,i)?Bt.fontMap[n].variant:null},"getVariant"),bs=o(function(t,r,n){if(t.length===1){var i=yn(t[0],r);return n&&i instanceof vs&&i.type==="mo"&&(i.setAttribute("lspace","0em"),i.setAttribute("rspace","0em")),[i]}for(var a=[],s,l=0;l0&&(d.text=d.text.slice(0,1)+"\u0338"+d.text.slice(1),a.pop())}}}a.push(u),s=u}return a},"buildExpression"),mh=o(function(t,r,n){return T7(bs(t,r,n))},"buildExpressionRow"),yn=o(function(t,r){if(!t)return new se.MathNode("mrow");if(P4[t.type]){var n=P4[t.type](t,r);return n}else throw new ue("Got group of unknown type: '"+t.type+"'")},"buildGroup");o(iG,"buildMathML");$G=o(function(t){return new M4({style:t.displayMode?rr.DISPLAY:rr.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},"optionsFromSettings"),GG=o(function(t,r){if(r.displayMode){var n=["katex-display"];r.leqno&&n.push("leqno"),r.fleqn&&n.push("fleqn"),t=Bt.makeSpan(n,[t])}return t},"displayWrap"),i4t=o(function(t,r,n){var i=$G(n),a;if(n.output==="mathml")return iG(t,r,i,n.displayMode,!0);if(n.output==="html"){var s=f7(t,i);a=Bt.makeSpan(["katex"],[s])}else{var l=iG(t,r,i,n.displayMode,!1),u=f7(t,i);a=Bt.makeSpan(["katex"],[l,u])}return GG(a,n)},"buildTree"),a4t=o(function(t,r,n){var i=$G(n),a=f7(t,i),s=Bt.makeSpan(["katex"],[a]);return GG(s,n)},"buildHTMLTree"),s4t={widehat:"^",widecheck:"\u02C7",widetilde:"~",utilde:"~",overleftarrow:"\u2190",underleftarrow:"\u2190",xleftarrow:"\u2190",overrightarrow:"\u2192",underrightarrow:"\u2192",xrightarrow:"\u2192",underbrace:"\u23DF",overbrace:"\u23DE",overgroup:"\u23E0",undergroup:"\u23E1",overleftrightarrow:"\u2194",underleftrightarrow:"\u2194",xleftrightarrow:"\u2194",Overrightarrow:"\u21D2",xRightarrow:"\u21D2",overleftharpoon:"\u21BC",xleftharpoonup:"\u21BC",overrightharpoon:"\u21C0",xrightharpoonup:"\u21C0",xLeftarrow:"\u21D0",xLeftrightarrow:"\u21D4",xhookleftarrow:"\u21A9",xhookrightarrow:"\u21AA",xmapsto:"\u21A6",xrightharpoondown:"\u21C1",xleftharpoondown:"\u21BD",xrightleftharpoons:"\u21CC",xleftrightharpoons:"\u21CB",xtwoheadleftarrow:"\u219E",xtwoheadrightarrow:"\u21A0",xlongequal:"=",xtofrom:"\u21C4",xrightleftarrows:"\u21C4",xrightequilibrium:"\u21CC",xleftequilibrium:"\u21CB","\\cdrightarrow":"\u2192","\\cdleftarrow":"\u2190","\\cdlongequal":"="},o4t=o(function(t){var r=new se.MathNode("mo",[new se.TextNode(s4t[t.replace(/^\\/,"")])]);return r.setAttribute("stretchy","true"),r},"mathMLnode"),l4t={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},c4t=o(function(t){return t.type==="ordgroup"?t.body.length:1},"groupLength"),u4t=o(function(t,r){function n(){var l=4e5,u=t.label.slice(1);if(tr.contains(["widehat","widecheck","widetilde","utilde"],u)){var h=t,f=c4t(h.base),d,p,m;if(f>5)u==="widehat"||u==="widecheck"?(d=420,l=2364,m=.42,p=u+"4"):(d=312,l=2340,m=.34,p="tilde4");else{var g=[1,1,2,2,3,3][f];u==="widehat"||u==="widecheck"?(l=[0,1062,2364,2364,2364][g],d=[0,239,300,360,420][g],m=[0,.24,.3,.3,.36,.42][g],p=u+g):(l=[0,600,1033,2339,2340][g],d=[0,260,286,306,312][g],m=[0,.26,.286,.3,.306,.34][g],p="tilde"+g)}var y=new sc(p),v=new dl([y],{width:"100%",height:ve(m),viewBox:"0 0 "+l+" "+d,preserveAspectRatio:"none"});return{span:Bt.makeSvgSpan([],[v],r),minWidth:0,height:m}}else{var x=[],b=l4t[u],[w,S,T]=b,E=T/1e3,_=w.length,A,L;if(_===1){var M=b[3];A=["hide-tail"],L=[M]}else if(_===2)A=["halfarrow-left","halfarrow-right"],L=["xMinYMin","xMaxYMin"];else if(_===3)A=["brace-left","brace-center","brace-right"],L=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support + `+_+" children.");for(var N=0;N<_;N++){var k=new sc(w[N]),I=new dl([k],{width:"400em",height:ve(E),viewBox:"0 0 "+l+" "+T,preserveAspectRatio:L[N]+" slice"}),C=Bt.makeSvgSpan([A[N]],[I],r);if(_===1)return{span:C,minWidth:S,height:E};C.style.height=ve(E),x.push(C)}return{span:Bt.makeSpan(["stretchy"],x,r),minWidth:S,height:E}}}o(n,"buildSvgSpan_");var{span:i,minWidth:a,height:s}=n();return i.height=s,i.style.height=ve(s),a>0&&(i.style.minWidth=ve(a)),i},"svgSpan"),h4t=o(function(t,r,n,i,a){var s,l=t.height+t.depth+n+i;if(/fbox|color|angl/.test(r)){if(s=Bt.makeSpan(["stretchy",r],[],a),r==="fbox"){var u=a.color&&a.getColor();u&&(s.style.borderColor=u)}}else{var h=[];/^[bx]cancel$/.test(r)&&h.push(new gy({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(r)&&h.push(new gy({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var f=new dl(h,{width:"100%",height:ve(l)});s=Bt.makeSvgSpan([],[f],a)}return s.height=l,s.style.height=ve(l),s},"encloseSpan"),du={encloseSpan:h4t,mathMLnode:o4t,svgSpan:u4t};o(mr,"assertNodeType");o(E7,"assertSymbolNodeType");o(V4,"checkSymbolNodeType");C7=o((e,t)=>{var r,n,i;e&&e.type==="supsub"?(n=mr(e.base,"accent"),r=n.base,e.base=r,i=Obt(Or(e,t)),e.base=n):(n=mr(e,"accent"),r=n.base);var a=Or(r,t.havingCrampedStyle()),s=n.isShifty&&tr.isCharacterBox(r),l=0;if(s){var u=tr.getBaseElem(r),h=Or(u,t.havingCrampedStyle());l=J$(h).skew}var f=n.label==="\\c",d=f?a.height+a.depth:Math.min(a.height,t.fontMetrics().xHeight),p;if(n.isStretchy)p=du.svgSpan(n,t),p=Bt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"elem",elem:p,wrapperClasses:["svg-align"],wrapperStyle:l>0?{width:"calc(100% - "+ve(2*l)+")",marginLeft:ve(2*l)}:void 0}]},t);else{var m,g;n.label==="\\vec"?(m=Bt.staticSvg("vec",t),g=Bt.svgData.vec[1]):(m=Bt.makeOrd({mode:n.mode,text:n.label},t,"textord"),m=J$(m),m.italic=0,g=m.width,f&&(d+=m.depth)),p=Bt.makeSpan(["accent-body"],[m]);var y=n.label==="\\textcircled";y&&(p.classes.push("accent-full"),d=a.height);var v=l;y||(v-=g/2),p.style.left=ve(v),n.label==="\\textcircled"&&(p.style.top=".2em"),p=Bt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:-d},{type:"elem",elem:p}]},t)}var x=Bt.makeSpan(["mord","accent"],[p],t);return i?(i.children[0]=x,i.height=Math.max(x.height,i.height),i.classes[0]="mord",i):x},"htmlBuilder$a"),VG=o((e,t)=>{var r=e.isStretchy?du.mathMLnode(e.label):new se.MathNode("mo",[Ro(e.label,e.mode)]),n=new se.MathNode("mover",[yn(e.base,t),r]);return n.setAttribute("accent","true"),n},"mathmlBuilder$9"),f4t=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));Ce({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:o((e,t)=>{var r=B4(t[0]),n=!f4t.test(e.funcName),i=!n||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:n,isShifty:i,base:r}},"handler"),htmlBuilder:C7,mathmlBuilder:VG});Ce({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:o((e,t)=>{var r=t[0],n=e.parser.mode;return n==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),n="text"),{type:"accent",mode:n,label:e.funcName,isStretchy:!1,isShifty:!0,base:r}},"handler"),htmlBuilder:C7,mathmlBuilder:VG});Ce({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:o((e,t)=>{var{parser:r,funcName:n}=e,i=t[0];return{type:"accentUnder",mode:r.mode,label:n,base:i}},"handler"),htmlBuilder:o((e,t)=>{var r=Or(e.base,t),n=du.svgSpan(e,t),i=e.label==="\\utilde"?.12:0,a=Bt.makeVList({positionType:"top",positionData:r.height,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:i},{type:"elem",elem:r}]},t);return Bt.makeSpan(["mord","accentunder"],[a],t)},"htmlBuilder"),mathmlBuilder:o((e,t)=>{var r=du.mathMLnode(e.label),n=new se.MathNode("munder",[yn(e.base,t),r]);return n.setAttribute("accentunder","true"),n},"mathmlBuilder")});A4=o(e=>{var t=new se.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t},"paddedNode");Ce({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:n,funcName:i}=e;return{type:"xArrow",mode:n.mode,label:i,body:t[0],below:r[0]}},htmlBuilder(e,t){var r=t.style,n=t.havingStyle(r.sup()),i=Bt.wrapFragment(Or(e.body,n,t),t),a=e.label.slice(0,2)==="\\x"?"x":"cd";i.classes.push(a+"-arrow-pad");var s;e.below&&(n=t.havingStyle(r.sub()),s=Bt.wrapFragment(Or(e.below,n,t),t),s.classes.push(a+"-arrow-pad"));var l=du.svgSpan(e,t),u=-t.fontMetrics().axisHeight+.5*l.height,h=-t.fontMetrics().axisHeight-.5*l.height-.111;(i.depth>.25||e.label==="\\xleftequilibrium")&&(h-=i.depth);var f;if(s){var d=-t.fontMetrics().axisHeight+s.height+.5*l.height+.111;f=Bt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:h},{type:"elem",elem:l,shift:u},{type:"elem",elem:s,shift:d}]},t)}else f=Bt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:h},{type:"elem",elem:l,shift:u}]},t);return f.children[0].children[0].children[1].classes.push("svg-align"),Bt.makeSpan(["mrel","x-arrow"],[f],t)},mathmlBuilder(e,t){var r=du.mathMLnode(e.label);r.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var n;if(e.body){var i=A4(yn(e.body,t));if(e.below){var a=A4(yn(e.below,t));n=new se.MathNode("munderover",[r,a,i])}else n=new se.MathNode("mover",[r,i])}else if(e.below){var s=A4(yn(e.below,t));n=new se.MathNode("munder",[r,s])}else n=A4(),n=new se.MathNode("mover",[r,n]);return n}});d4t=Bt.makeSpan;o(UG,"htmlBuilder$9");o(HG,"mathmlBuilder$8");Ce({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:r,funcName:n}=e,i=t[0];return{type:"mclass",mode:r.mode,mclass:"m"+n.slice(5),body:mi(i),isCharacterBox:tr.isCharacterBox(i)}},htmlBuilder:UG,mathmlBuilder:HG});U4=o(e=>{var t=e.type==="ordgroup"&&e.body.length?e.body[0]:e;return t.type==="atom"&&(t.family==="bin"||t.family==="rel")?"m"+t.family:"mord"},"binrelClass");Ce({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:r}=e;return{type:"mclass",mode:r.mode,mclass:U4(t[0]),body:mi(t[1]),isCharacterBox:tr.isCharacterBox(t[1])}}});Ce({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:r,funcName:n}=e,i=t[1],a=t[0],s;n!=="\\stackrel"?s=U4(i):s="mrel";var l={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:n!=="\\stackrel",body:mi(i)},u={type:"supsub",mode:a.mode,base:l,sup:n==="\\underset"?null:a,sub:n==="\\underset"?a:null};return{type:"mclass",mode:r.mode,mclass:s,body:[u],isCharacterBox:tr.isCharacterBox(u)}},htmlBuilder:UG,mathmlBuilder:HG});Ce({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"pmb",mode:r.mode,mclass:U4(t[0]),body:mi(t[0])}},htmlBuilder(e,t){var r=Oi(e.body,t,!0),n=Bt.makeSpan([e.mclass],r,t);return n.style.textShadow="0.02em 0.01em 0.04px",n},mathmlBuilder(e,t){var r=bs(e.body,t),n=new se.MathNode("mstyle",r);return n.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),n}});p4t={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},aG=o(()=>({type:"styling",body:[],mode:"math",style:"display"}),"newCell"),sG=o(e=>e.type==="textord"&&e.text==="@","isStartOfArrow"),m4t=o((e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t,"isLabelEnd");o(g4t,"cdArrow");o(y4t,"parseCD");Ce({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e;return{type:"cdlabel",mode:r.mode,side:n.slice(4),label:t[0]}},htmlBuilder(e,t){var r=t.havingStyle(t.style.sup()),n=Bt.wrapFragment(Or(e.label,r,t),t);return n.classes.push("cd-label-"+e.side),n.style.bottom=ve(.8-n.depth),n.height=0,n.depth=0,n},mathmlBuilder(e,t){var r=new se.MathNode("mrow",[yn(e.label,t)]);return r=new se.MathNode("mpadded",[r]),r.setAttribute("width","0"),e.side==="left"&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),r=new se.MathNode("mstyle",[r]),r.setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}});Ce({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:r}=e;return{type:"cdlabelparent",mode:r.mode,fragment:t[0]}},htmlBuilder(e,t){var r=Bt.wrapFragment(Or(e.fragment,t),t);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder(e,t){return new se.MathNode("mrow",[yn(e.fragment,t)])}});Ce({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:r}=e,n=mr(t[0],"ordgroup"),i=n.body,a="",s=0;s=1114111)throw new ue("\\@char with invalid code point "+a);return u<=65535?h=String.fromCharCode(u):(u-=65536,h=String.fromCharCode((u>>10)+55296,(u&1023)+56320)),{type:"textord",mode:r.mode,text:h}}});WG=o((e,t)=>{var r=Oi(e.body,t.withColor(e.color),!1);return Bt.makeFragment(r)},"htmlBuilder$8"),YG=o((e,t)=>{var r=bs(e.body,t.withColor(e.color)),n=new se.MathNode("mstyle",r);return n.setAttribute("mathcolor",e.color),n},"mathmlBuilder$7");Ce({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:r}=e,n=mr(t[0],"color-token").color,i=t[1];return{type:"color",mode:r.mode,color:n,body:mi(i)}},htmlBuilder:WG,mathmlBuilder:YG});Ce({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:r,breakOnTokenText:n}=e,i=mr(t[0],"color-token").color;r.gullet.macros.set("\\current@color",i);var a=r.parseExpression(!0,n);return{type:"color",mode:r.mode,color:i,body:a}},htmlBuilder:WG,mathmlBuilder:YG});Ce({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,r){var{parser:n}=e,i=n.gullet.future().text==="["?n.parseSizeGroup(!0):null,a=!n.settings.displayMode||!n.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:n.mode,newLine:a,size:i&&mr(i,"size").value}},htmlBuilder(e,t){var r=Bt.makeSpan(["mspace"],[],t);return e.newLine&&(r.classes.push("newline"),e.size&&(r.style.marginTop=ve(Zn(e.size,t)))),r},mathmlBuilder(e,t){var r=new se.MathNode("mspace");return e.newLine&&(r.setAttribute("linebreak","newline"),e.size&&r.setAttribute("height",ve(Zn(e.size,t)))),r}});p7={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},qG=o(e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new ue("Expected a control sequence",e);return t},"checkControlSequence"),v4t=o(e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},"getRHS"),XG=o((e,t,r,n)=>{var i=e.gullet.macros.get(r.text);i==null&&(r.noexpand=!0,i={tokens:[r],numArgs:0,unexpandable:!e.gullet.isExpandable(r.text)}),e.gullet.macros.set(t,i,n)},"letCommand");Ce({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:r}=e;t.consumeSpaces();var n=t.fetch();if(p7[n.text])return(r==="\\global"||r==="\\\\globallong")&&(n.text=p7[n.text]),mr(t.parseFunction(),"internal");throw new ue("Invalid token after macro prefix",n)}});Ce({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=t.gullet.popToken(),i=n.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new ue("Expected a control sequence",n);for(var a=0,s,l=[[]];t.gullet.future().text!=="{";)if(n=t.gullet.popToken(),n.text==="#"){if(t.gullet.future().text==="{"){s=t.gullet.future(),l[a].push("{");break}if(n=t.gullet.popToken(),!/^[1-9]$/.test(n.text))throw new ue('Invalid argument number "'+n.text+'"');if(parseInt(n.text)!==a+1)throw new ue('Argument number "'+n.text+'" out of order');a++,l.push([])}else{if(n.text==="EOF")throw new ue("Expected a macro definition");l[a].push(n.text)}var{tokens:u}=t.gullet.consumeArg();return s&&u.unshift(s),(r==="\\edef"||r==="\\xdef")&&(u=t.gullet.expandTokens(u),u.reverse()),t.gullet.macros.set(i,{tokens:u,numArgs:a,delimiters:l},r===p7[r]),{type:"internal",mode:t.mode}}});Ce({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=qG(t.gullet.popToken());t.gullet.consumeSpaces();var i=v4t(t);return XG(t,n,i,r==="\\\\globallet"),{type:"internal",mode:t.mode}}});Ce({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=qG(t.gullet.popToken()),i=t.gullet.popToken(),a=t.gullet.popToken();return XG(t,n,a,r==="\\\\globalfuture"),t.gullet.pushToken(a),t.gullet.pushToken(i),{type:"internal",mode:t.mode}}});hy=o(function(t,r,n){var i=An.math[t]&&An.math[t].replace,a=b7(i||t,r,n);if(!a)throw new Error("Unsupported symbol "+t+" and font size "+r+".");return a},"getMetrics"),S7=o(function(t,r,n,i){var a=n.havingBaseStyle(r),s=Bt.makeSpan(i.concat(a.sizingClasses(n)),[t],n),l=a.sizeMultiplier/n.sizeMultiplier;return s.height*=l,s.depth*=l,s.maxFontSize=a.sizeMultiplier,s},"styleWrap"),jG=o(function(t,r,n){var i=r.havingBaseStyle(n),a=(1-r.sizeMultiplier/i.sizeMultiplier)*r.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=ve(a),t.height-=a,t.depth+=a},"centerSpan"),x4t=o(function(t,r,n,i,a,s){var l=Bt.makeSymbol(t,"Main-Regular",a,i),u=S7(l,r,i,s);return n&&jG(u,i,r),u},"makeSmallDelim"),b4t=o(function(t,r,n,i){return Bt.makeSymbol(t,"Size"+r+"-Regular",n,i)},"mathrmSize"),KG=o(function(t,r,n,i,a,s){var l=b4t(t,r,a,i),u=S7(Bt.makeSpan(["delimsizing","size"+r],[l],i),rr.TEXT,i,s);return n&&jG(u,i,rr.TEXT),u},"makeLargeDelim"),ZS=o(function(t,r,n){var i;r==="Size1-Regular"?i="delim-size1":i="delim-size4";var a=Bt.makeSpan(["delimsizinginner",i],[Bt.makeSpan([],[Bt.makeSymbol(t,r,n)])]);return{type:"elem",elem:a}},"makeGlyphSpan"),JS=o(function(t,r,n){var i=ac["Size4-Regular"][t.charCodeAt(0)]?ac["Size4-Regular"][t.charCodeAt(0)][4]:ac["Size1-Regular"][t.charCodeAt(0)][4],a=new sc("inner",_bt(t,Math.round(1e3*r))),s=new dl([a],{width:ve(i),height:ve(r),style:"width:"+ve(i),viewBox:"0 0 "+1e3*i+" "+Math.round(1e3*r),preserveAspectRatio:"xMinYMin"}),l=Bt.makeSvgSpan([],[s],n);return l.height=r,l.style.height=ve(r),l.style.width=ve(i),{type:"elem",elem:l}},"makeInner"),m7=.008,_4={type:"kern",size:-1*m7},w4t=["|","\\lvert","\\rvert","\\vert"],T4t=["\\|","\\lVert","\\rVert","\\Vert"],QG=o(function(t,r,n,i,a,s){var l,u,h,f,d="",p=0;l=h=f=t,u=null;var m="Size1-Regular";t==="\\uparrow"?h=f="\u23D0":t==="\\Uparrow"?h=f="\u2016":t==="\\downarrow"?l=h="\u23D0":t==="\\Downarrow"?l=h="\u2016":t==="\\updownarrow"?(l="\\uparrow",h="\u23D0",f="\\downarrow"):t==="\\Updownarrow"?(l="\\Uparrow",h="\u2016",f="\\Downarrow"):tr.contains(w4t,t)?(h="\u2223",d="vert",p=333):tr.contains(T4t,t)?(h="\u2225",d="doublevert",p=556):t==="["||t==="\\lbrack"?(l="\u23A1",h="\u23A2",f="\u23A3",m="Size4-Regular",d="lbrack",p=667):t==="]"||t==="\\rbrack"?(l="\u23A4",h="\u23A5",f="\u23A6",m="Size4-Regular",d="rbrack",p=667):t==="\\lfloor"||t==="\u230A"?(h=l="\u23A2",f="\u23A3",m="Size4-Regular",d="lfloor",p=667):t==="\\lceil"||t==="\u2308"?(l="\u23A1",h=f="\u23A2",m="Size4-Regular",d="lceil",p=667):t==="\\rfloor"||t==="\u230B"?(h=l="\u23A5",f="\u23A6",m="Size4-Regular",d="rfloor",p=667):t==="\\rceil"||t==="\u2309"?(l="\u23A4",h=f="\u23A5",m="Size4-Regular",d="rceil",p=667):t==="("||t==="\\lparen"?(l="\u239B",h="\u239C",f="\u239D",m="Size4-Regular",d="lparen",p=875):t===")"||t==="\\rparen"?(l="\u239E",h="\u239F",f="\u23A0",m="Size4-Regular",d="rparen",p=875):t==="\\{"||t==="\\lbrace"?(l="\u23A7",u="\u23A8",f="\u23A9",h="\u23AA",m="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(l="\u23AB",u="\u23AC",f="\u23AD",h="\u23AA",m="Size4-Regular"):t==="\\lgroup"||t==="\u27EE"?(l="\u23A7",f="\u23A9",h="\u23AA",m="Size4-Regular"):t==="\\rgroup"||t==="\u27EF"?(l="\u23AB",f="\u23AD",h="\u23AA",m="Size4-Regular"):t==="\\lmoustache"||t==="\u23B0"?(l="\u23A7",f="\u23AD",h="\u23AA",m="Size4-Regular"):(t==="\\rmoustache"||t==="\u23B1")&&(l="\u23AB",f="\u23A9",h="\u23AA",m="Size4-Regular");var g=hy(l,m,a),y=g.height+g.depth,v=hy(h,m,a),x=v.height+v.depth,b=hy(f,m,a),w=b.height+b.depth,S=0,T=1;if(u!==null){var E=hy(u,m,a);S=E.height+E.depth,T=2}var _=y+w+S,A=Math.max(0,Math.ceil((r-_)/(T*x))),L=_+A*T*x,M=i.fontMetrics().axisHeight;n&&(M*=i.sizeMultiplier);var N=L/2-M,k=[];if(d.length>0){var I=L-y-w,C=Math.round(L*1e3),O=Lbt(d,Math.round(I*1e3)),D=new sc(d,O),P=(p/1e3).toFixed(3)+"em",F=(C/1e3).toFixed(3)+"em",B=new dl([D],{width:P,height:F,viewBox:"0 0 "+p+" "+C}),G=Bt.makeSvgSpan([],[B],i);G.height=C/1e3,G.style.width=P,G.style.height=F,k.push({type:"elem",elem:G})}else{if(k.push(ZS(f,m,a)),k.push(_4),u===null){var z=L-y-w+2*m7;k.push(JS(h,z,i))}else{var W=(L-y-w-S)/2+2*m7;k.push(JS(h,W,i)),k.push(_4),k.push(ZS(u,m,a)),k.push(_4),k.push(JS(h,W,i))}k.push(_4),k.push(ZS(l,m,a))}var Q=i.havingBaseStyle(rr.TEXT),j=Bt.makeVList({positionType:"bottom",positionData:N,children:k},Q);return S7(Bt.makeSpan(["delimsizing","mult"],[j],Q),rr.TEXT,i,s)},"makeStackedDelim"),t7=80,e7=.08,r7=o(function(t,r,n,i,a){var s=Abt(t,i,n),l=new sc(t,s),u=new dl([l],{width:"400em",height:ve(r),viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return Bt.makeSvgSpan(["hide-tail"],[u],a)},"sqrtSvg"),k4t=o(function(t,r){var n=r.havingBaseSizing(),i=eV("\\surd",t*n.sizeMultiplier,tV,n),a=n.sizeMultiplier,s=Math.max(0,r.minRuleThickness-r.fontMetrics().sqrtRuleThickness),l,u=0,h=0,f=0,d;return i.type==="small"?(f=1e3+1e3*s+t7,t<1?a=1:t<1.4&&(a=.7),u=(1+s+e7)/a,h=(1+s)/a,l=r7("sqrtMain",u,f,s,r),l.style.minWidth="0.853em",d=.833/a):i.type==="large"?(f=(1e3+t7)*fy[i.size],h=(fy[i.size]+s)/a,u=(fy[i.size]+s+e7)/a,l=r7("sqrtSize"+i.size,u,f,s,r),l.style.minWidth="1.02em",d=1/a):(u=t+s+e7,h=t+s,f=Math.floor(1e3*t+s)+t7,l=r7("sqrtTall",u,f,s,r),l.style.minWidth="0.742em",d=1.056),l.height=h,l.style.height=ve(u),{span:l,advanceWidth:d,ruleWidth:(r.fontMetrics().sqrtRuleThickness+s)*a}},"makeSqrtImage"),ZG=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","\\surd"],E4t=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1"],JG=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],fy=[0,1.2,1.8,2.4,3],C4t=o(function(t,r,n,i,a){if(t==="<"||t==="\\lt"||t==="\u27E8"?t="\\langle":(t===">"||t==="\\gt"||t==="\u27E9")&&(t="\\rangle"),tr.contains(ZG,t)||tr.contains(JG,t))return KG(t,r,!1,n,i,a);if(tr.contains(E4t,t))return QG(t,fy[r],!1,n,i,a);throw new ue("Illegal delimiter: '"+t+"'")},"makeSizedDelim"),S4t=[{type:"small",style:rr.SCRIPTSCRIPT},{type:"small",style:rr.SCRIPT},{type:"small",style:rr.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],A4t=[{type:"small",style:rr.SCRIPTSCRIPT},{type:"small",style:rr.SCRIPT},{type:"small",style:rr.TEXT},{type:"stack"}],tV=[{type:"small",style:rr.SCRIPTSCRIPT},{type:"small",style:rr.SCRIPT},{type:"small",style:rr.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],_4t=o(function(t){if(t.type==="small")return"Main-Regular";if(t.type==="large")return"Size"+t.size+"-Regular";if(t.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+t.type+"' here.")},"delimTypeToFont"),eV=o(function(t,r,n,i){for(var a=Math.min(2,3-i.style.size),s=a;sr)return n[s]}return n[n.length-1]},"traverseSequence"),rV=o(function(t,r,n,i,a,s){t==="<"||t==="\\lt"||t==="\u27E8"?t="\\langle":(t===">"||t==="\\gt"||t==="\u27E9")&&(t="\\rangle");var l;tr.contains(JG,t)?l=S4t:tr.contains(ZG,t)?l=tV:l=A4t;var u=eV(t,r,l,i);return u.type==="small"?x4t(t,u.style,n,i,a,s):u.type==="large"?KG(t,u.size,n,i,a,s):QG(t,r,n,i,a,s)},"makeCustomSizedDelim"),L4t=o(function(t,r,n,i,a,s){var l=i.fontMetrics().axisHeight*i.sizeMultiplier,u=901,h=5/i.fontMetrics().ptPerEm,f=Math.max(r-l,n+l),d=Math.max(f/500*u,2*f-h);return rV(t,d,!0,i,a,s)},"makeLeftRightDelim"),hu={sqrtImage:k4t,sizedDelim:C4t,sizeToMaxHeight:fy,customSizedDelim:rV,leftRightDelim:L4t},oG={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},D4t=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","<",">","\\langle","\u27E8","\\rangle","\u27E9","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];o(H4,"checkDelimiter");Ce({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:o((e,t)=>{var r=H4(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:oG[e.funcName].size,mclass:oG[e.funcName].mclass,delim:r.text}},"handler"),htmlBuilder:o((e,t)=>e.delim==="."?Bt.makeSpan([e.mclass]):hu.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),"htmlBuilder"),mathmlBuilder:o(e=>{var t=[];e.delim!=="."&&t.push(Ro(e.delim,e.mode));var r=new se.MathNode("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var n=ve(hu.sizeToMaxHeight[e.size]);return r.setAttribute("minsize",n),r.setAttribute("maxsize",n),r},"mathmlBuilder")});o(lG,"assertParsed");Ce({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:o((e,t)=>{var r=e.parser.gullet.macros.get("\\current@color");if(r&&typeof r!="string")throw new ue("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:H4(t[0],e).text,color:r}},"handler")});Ce({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:o((e,t)=>{var r=H4(t[0],e),n=e.parser;++n.leftrightDepth;var i=n.parseExpression(!1);--n.leftrightDepth,n.expect("\\right",!1);var a=mr(n.parseFunction(),"leftright-right");return{type:"leftright",mode:n.mode,body:i,left:r.text,right:a.delim,rightColor:a.color}},"handler"),htmlBuilder:o((e,t)=>{lG(e);for(var r=Oi(e.body,t,!0,["mopen","mclose"]),n=0,i=0,a=!1,s=0;s{lG(e);var r=bs(e.body,t);if(e.left!=="."){var n=new se.MathNode("mo",[Ro(e.left,e.mode)]);n.setAttribute("fence","true"),r.unshift(n)}if(e.right!=="."){var i=new se.MathNode("mo",[Ro(e.right,e.mode)]);i.setAttribute("fence","true"),e.rightColor&&i.setAttribute("mathcolor",e.rightColor),r.push(i)}return T7(r)},"mathmlBuilder")});Ce({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:o((e,t)=>{var r=H4(t[0],e);if(!e.parser.leftrightDepth)throw new ue("\\middle without preceding \\left",r);return{type:"middle",mode:e.parser.mode,delim:r.text}},"handler"),htmlBuilder:o((e,t)=>{var r;if(e.delim===".")r=yy(t,[]);else{r=hu.sizedDelim(e.delim,1,t,e.mode,[]);var n={delim:e.delim,options:t};r.isMiddle=n}return r},"htmlBuilder"),mathmlBuilder:o((e,t)=>{var r=e.delim==="\\vert"||e.delim==="|"?Ro("|","text"):Ro(e.delim,e.mode),n=new se.MathNode("mo",[r]);return n.setAttribute("fence","true"),n.setAttribute("lspace","0.05em"),n.setAttribute("rspace","0.05em"),n},"mathmlBuilder")});A7=o((e,t)=>{var r=Bt.wrapFragment(Or(e.body,t),t),n=e.label.slice(1),i=t.sizeMultiplier,a,s=0,l=tr.isCharacterBox(e.body);if(n==="sout")a=Bt.makeSpan(["stretchy","sout"]),a.height=t.fontMetrics().defaultRuleThickness/i,s=-.5*t.fontMetrics().xHeight;else if(n==="phase"){var u=Zn({number:.6,unit:"pt"},t),h=Zn({number:.35,unit:"ex"},t),f=t.havingBaseSizing();i=i/f.sizeMultiplier;var d=r.height+r.depth+u+h;r.style.paddingLeft=ve(d/2+u);var p=Math.floor(1e3*d*i),m=Cbt(p),g=new dl([new sc("phase",m)],{width:"400em",height:ve(p/1e3),viewBox:"0 0 400000 "+p,preserveAspectRatio:"xMinYMin slice"});a=Bt.makeSvgSpan(["hide-tail"],[g],t),a.style.height=ve(d),s=r.depth+u+h}else{/cancel/.test(n)?l||r.classes.push("cancel-pad"):n==="angl"?r.classes.push("anglpad"):r.classes.push("boxpad");var y=0,v=0,x=0;/box/.test(n)?(x=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),y=t.fontMetrics().fboxsep+(n==="colorbox"?0:x),v=y):n==="angl"?(x=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),y=4*x,v=Math.max(0,.25-r.depth)):(y=l?.2:0,v=y),a=du.encloseSpan(r,n,y,v,t),/fbox|boxed|fcolorbox/.test(n)?(a.style.borderStyle="solid",a.style.borderWidth=ve(x)):n==="angl"&&x!==.049&&(a.style.borderTopWidth=ve(x),a.style.borderRightWidth=ve(x)),s=r.depth+v,e.backgroundColor&&(a.style.backgroundColor=e.backgroundColor,e.borderColor&&(a.style.borderColor=e.borderColor))}var b;if(e.backgroundColor)b=Bt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:s},{type:"elem",elem:r,shift:0}]},t);else{var w=/cancel|phase/.test(n)?["svg-align"]:[];b=Bt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:r,shift:0},{type:"elem",elem:a,shift:s,wrapperClasses:w}]},t)}return/cancel/.test(n)&&(b.height=r.height,b.depth=r.depth),/cancel/.test(n)&&!l?Bt.makeSpan(["mord","cancel-lap"],[b],t):Bt.makeSpan(["mord"],[b],t)},"htmlBuilder$7"),_7=o((e,t)=>{var r=0,n=new se.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[yn(e.body,t)]);switch(e.label){case"\\cancel":n.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":n.setAttribute("notation","downdiagonalstrike");break;case"\\phase":n.setAttribute("notation","phasorangle");break;case"\\sout":n.setAttribute("notation","horizontalstrike");break;case"\\fbox":n.setAttribute("notation","box");break;case"\\angl":n.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(r=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,n.setAttribute("width","+"+2*r+"pt"),n.setAttribute("height","+"+2*r+"pt"),n.setAttribute("lspace",r+"pt"),n.setAttribute("voffset",r+"pt"),e.label==="\\fcolorbox"){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);n.setAttribute("style","border: "+i+"em solid "+String(e.borderColor))}break;case"\\xcancel":n.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&n.setAttribute("mathbackground",e.backgroundColor),n},"mathmlBuilder$6");Ce({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,r){var{parser:n,funcName:i}=e,a=mr(t[0],"color-token").color,s=t[1];return{type:"enclose",mode:n.mode,label:i,backgroundColor:a,body:s}},htmlBuilder:A7,mathmlBuilder:_7});Ce({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,r){var{parser:n,funcName:i}=e,a=mr(t[0],"color-token").color,s=mr(t[1],"color-token").color,l=t[2];return{type:"enclose",mode:n.mode,label:i,backgroundColor:s,borderColor:a,body:l}},htmlBuilder:A7,mathmlBuilder:_7});Ce({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\fbox",body:t[0]}}});Ce({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e,i=t[0];return{type:"enclose",mode:r.mode,label:n,body:i}},htmlBuilder:A7,mathmlBuilder:_7});Ce({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\angl",body:t[0]}}});nV={};o(oc,"defineEnvironment");iV={};o(lt,"defineMacro");o(cG,"getHLines");W4=o(e=>{var t=e.parser.settings;if(!t.displayMode)throw new ue("{"+e.envName+"} can be used only in display mode.")},"validateAmsEnvironmentContext");o(L7,"getAutoTag");o(gh,"parseArray");o(D7,"dCellStyle");lc=o(function(t,r){var n,i,a=t.body.length,s=t.hLinesBeforeRow,l=0,u=new Array(a),h=[],f=Math.max(r.fontMetrics().arrayRuleWidth,r.minRuleThickness),d=1/r.fontMetrics().ptPerEm,p=5*d;if(t.colSeparationType&&t.colSeparationType==="small"){var m=r.havingStyle(rr.SCRIPT).sizeMultiplier;p=.2778*(m/r.sizeMultiplier)}var g=t.colSeparationType==="CD"?Zn({number:3,unit:"ex"},r):12*d,y=3*d,v=t.arraystretch*g,x=.7*v,b=.3*v,w=0;function S(wt){for(var Ot=0;Ot0&&(w+=.25),h.push({pos:w,isDashed:wt[Ot]})}for(o(S,"setHLinePos"),S(s[0]),n=0;n0&&(N+=b,_wt))for(n=0;n=l)){var J=void 0;(i>0||t.hskipBeforeAndAfter)&&(J=tr.deflt(W.pregap,p),J!==0&&(O=Bt.makeSpan(["arraycolsep"],[]),O.style.width=ve(J),C.push(O)));var Z=[];for(n=0;n0){for(var ot=Bt.makeLineSpan("hline",r,f),ct=Bt.makeLineSpan("hdashline",r,f),ut=[{type:"elem",elem:u,shift:0}];h.length>0;){var et=h.pop(),Mt=et.pos-k;et.isDashed?ut.push({type:"elem",elem:ct,shift:Mt}):ut.push({type:"elem",elem:ot,shift:Mt})}u=Bt.makeVList({positionType:"individualShift",children:ut},r)}if(P.length===0)return Bt.makeSpan(["mord"],[u],r);var it=Bt.makeVList({positionType:"individualShift",children:P},r);return it=Bt.makeSpan(["tag"],[it],r),Bt.makeFragment([u,it])},"htmlBuilder"),R4t={c:"center ",l:"left ",r:"right "},cc=o(function(t,r){for(var n=[],i=new se.MathNode("mtd",[],["mtr-glue"]),a=new se.MathNode("mtd",[],["mml-eqn-num"]),s=0;s0){var g=t.cols,y="",v=!1,x=0,b=g.length;g[0].type==="separator"&&(p+="top ",x=1),g[g.length-1].type==="separator"&&(p+="bottom ",b-=1);for(var w=x;w0?"left ":"",p+=A[A.length-1].length>0?"right ":"";for(var L=1;L-1?"alignat":"align",a=t.envName==="split",s=gh(t.parser,{cols:n,addJot:!0,autoTag:a?void 0:L7(t.envName),emptySingleRow:!0,colSeparationType:i,maxNumCols:a?2:void 0,leqno:t.parser.settings.leqno},"display"),l,u=0,h={type:"ordgroup",mode:t.mode,body:[]};if(r[0]&&r[0].type==="ordgroup"){for(var f="",d=0;d0&&m&&(v=1),n[g]={type:"align",align:y,pregap:v,postgap:0}}return s.colSeparationType=m?"align":"alignat",s},"alignedHandler");oc({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var r=V4(t[0]),n=r?[t[0]]:mr(t[0],"ordgroup").body,i=n.map(function(s){var l=E7(s),u=l.text;if("lcr".indexOf(u)!==-1)return{type:"align",align:u};if(u==="|")return{type:"separator",separator:"|"};if(u===":")return{type:"separator",separator:":"};throw new ue("Unknown column alignment: "+u,s)}),a={cols:i,hskipBeforeAndAfter:!0,maxNumCols:i.length};return gh(e.parser,a,D7(e.envName))},htmlBuilder:lc,mathmlBuilder:cc});oc({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],r="c",n={hskipBeforeAndAfter:!1,cols:[{type:"align",align:r}]};if(e.envName.charAt(e.envName.length-1)==="*"){var i=e.parser;if(i.consumeSpaces(),i.fetch().text==="["){if(i.consume(),i.consumeSpaces(),r=i.fetch().text,"lcr".indexOf(r)===-1)throw new ue("Expected l or c or r",i.nextToken);i.consume(),i.consumeSpaces(),i.expect("]"),i.consume(),n.cols=[{type:"align",align:r}]}}var a=gh(e.parser,n,D7(e.envName)),s=Math.max(0,...a.body.map(l=>l.length));return a.cols=new Array(s).fill({type:"align",align:r}),t?{type:"leftright",mode:e.mode,body:[a],left:t[0],right:t[1],rightColor:void 0}:a},htmlBuilder:lc,mathmlBuilder:cc});oc({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},r=gh(e.parser,t,"script");return r.colSeparationType="small",r},htmlBuilder:lc,mathmlBuilder:cc});oc({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var r=V4(t[0]),n=r?[t[0]]:mr(t[0],"ordgroup").body,i=n.map(function(s){var l=E7(s),u=l.text;if("lc".indexOf(u)!==-1)return{type:"align",align:u};throw new ue("Unknown column alignment: "+u,s)});if(i.length>1)throw new ue("{subarray} can contain only one column");var a={cols:i,hskipBeforeAndAfter:!1,arraystretch:.5};if(a=gh(e.parser,a,"script"),a.body.length>0&&a.body[0].length>1)throw new ue("{subarray} can contain only one column");return a},htmlBuilder:lc,mathmlBuilder:cc});oc({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},r=gh(e.parser,t,D7(e.envName));return{type:"leftright",mode:e.mode,body:[r],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:lc,mathmlBuilder:cc});oc({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:aV,htmlBuilder:lc,mathmlBuilder:cc});oc({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){tr.contains(["gather","gather*"],e.envName)&&W4(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:L7(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return gh(e.parser,t,"display")},htmlBuilder:lc,mathmlBuilder:cc});oc({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:aV,htmlBuilder:lc,mathmlBuilder:cc});oc({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){W4(e);var t={autoTag:L7(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return gh(e.parser,t,"display")},htmlBuilder:lc,mathmlBuilder:cc});oc({type:"array",names:["CD"],props:{numArgs:0},handler(e){return W4(e),y4t(e.parser)},htmlBuilder:lc,mathmlBuilder:cc});lt("\\nonumber","\\gdef\\@eqnsw{0}");lt("\\notag","\\nonumber");Ce({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new ue(e.funcName+" valid only within array environment")}});uG=nV;Ce({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:r,funcName:n}=e,i=t[0];if(i.type!=="ordgroup")throw new ue("Invalid environment name",i);for(var a="",s=0;s{var r=e.font,n=t.withFont(r);return Or(e.body,n)},"htmlBuilder$5"),oV=o((e,t)=>{var r=e.font,n=t.withFont(r);return yn(e.body,n)},"mathmlBuilder$4"),hG={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};Ce({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:o((e,t)=>{var{parser:r,funcName:n}=e,i=B4(t[0]),a=n;return a in hG&&(a=hG[a]),{type:"font",mode:r.mode,font:a.slice(1),body:i}},"handler"),htmlBuilder:sV,mathmlBuilder:oV});Ce({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:o((e,t)=>{var{parser:r}=e,n=t[0],i=tr.isCharacterBox(n);return{type:"mclass",mode:r.mode,mclass:U4(n),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:n}],isCharacterBox:i}},"handler")});Ce({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:o((e,t)=>{var{parser:r,funcName:n,breakOnTokenText:i}=e,{mode:a}=r,s=r.parseExpression(!0,i),l="math"+n.slice(1);return{type:"font",mode:a,font:l,body:{type:"ordgroup",mode:r.mode,body:s}}},"handler"),htmlBuilder:sV,mathmlBuilder:oV});lV=o((e,t)=>{var r=t;return e==="display"?r=r.id>=rr.SCRIPT.id?r.text():rr.DISPLAY:e==="text"&&r.size===rr.DISPLAY.size?r=rr.TEXT:e==="script"?r=rr.SCRIPT:e==="scriptscript"&&(r=rr.SCRIPTSCRIPT),r},"adjustStyle"),R7=o((e,t)=>{var r=lV(e.size,t.style),n=r.fracNum(),i=r.fracDen(),a;a=t.havingStyle(n);var s=Or(e.numer,a,t);if(e.continued){var l=8.5/t.fontMetrics().ptPerEm,u=3.5/t.fontMetrics().ptPerEm;s.height=s.height0?g=3*p:g=7*p,y=t.fontMetrics().denom1):(d>0?(m=t.fontMetrics().num2,g=p):(m=t.fontMetrics().num3,g=3*p),y=t.fontMetrics().denom2);var v;if(f){var b=t.fontMetrics().axisHeight;m-s.depth-(b+.5*d){var r=new se.MathNode("mfrac",[yn(e.numer,t),yn(e.denom,t)]);if(!e.hasBarLine)r.setAttribute("linethickness","0px");else if(e.barSize){var n=Zn(e.barSize,t);r.setAttribute("linethickness",ve(n))}var i=lV(e.size,t.style);if(i.size!==t.style.size){r=new se.MathNode("mstyle",[r]);var a=i.size===rr.DISPLAY.size?"true":"false";r.setAttribute("displaystyle",a),r.setAttribute("scriptlevel","0")}if(e.leftDelim!=null||e.rightDelim!=null){var s=[];if(e.leftDelim!=null){var l=new se.MathNode("mo",[new se.TextNode(e.leftDelim.replace("\\",""))]);l.setAttribute("fence","true"),s.push(l)}if(s.push(r),e.rightDelim!=null){var u=new se.MathNode("mo",[new se.TextNode(e.rightDelim.replace("\\",""))]);u.setAttribute("fence","true"),s.push(u)}return T7(s)}return r},"mathmlBuilder$3");Ce({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:o((e,t)=>{var{parser:r,funcName:n}=e,i=t[0],a=t[1],s,l=null,u=null,h="auto";switch(n){case"\\dfrac":case"\\frac":case"\\tfrac":s=!0;break;case"\\\\atopfrac":s=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":s=!1,l="(",u=")";break;case"\\\\bracefrac":s=!1,l="\\{",u="\\}";break;case"\\\\brackfrac":s=!1,l="[",u="]";break;default:throw new Error("Unrecognized genfrac command")}switch(n){case"\\dfrac":case"\\dbinom":h="display";break;case"\\tfrac":case"\\tbinom":h="text";break}return{type:"genfrac",mode:r.mode,continued:!1,numer:i,denom:a,hasBarLine:s,leftDelim:l,rightDelim:u,size:h,barSize:null}},"handler"),htmlBuilder:R7,mathmlBuilder:N7});Ce({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:o((e,t)=>{var{parser:r,funcName:n}=e,i=t[0],a=t[1];return{type:"genfrac",mode:r.mode,continued:!0,numer:i,denom:a,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}},"handler")});Ce({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:r,token:n}=e,i;switch(r){case"\\over":i="\\frac";break;case"\\choose":i="\\binom";break;case"\\atop":i="\\\\atopfrac";break;case"\\brace":i="\\\\bracefrac";break;case"\\brack":i="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:i,token:n}}});fG=["display","text","script","scriptscript"],dG=o(function(t){var r=null;return t.length>0&&(r=t,r=r==="."?null:r),r},"delimFromValue");Ce({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:r}=e,n=t[4],i=t[5],a=B4(t[0]),s=a.type==="atom"&&a.family==="open"?dG(a.text):null,l=B4(t[1]),u=l.type==="atom"&&l.family==="close"?dG(l.text):null,h=mr(t[2],"size"),f,d=null;h.isBlank?f=!0:(d=h.value,f=d.number>0);var p="auto",m=t[3];if(m.type==="ordgroup"){if(m.body.length>0){var g=mr(m.body[0],"textord");p=fG[Number(g.text)]}}else m=mr(m,"textord"),p=fG[Number(m.text)];return{type:"genfrac",mode:r.mode,numer:n,denom:i,continued:!1,hasBarLine:f,barSize:d,leftDelim:s,rightDelim:u,size:p}},htmlBuilder:R7,mathmlBuilder:N7});Ce({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:r,funcName:n,token:i}=e;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:mr(t[0],"size").value,token:i}}});Ce({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:o((e,t)=>{var{parser:r,funcName:n}=e,i=t[0],a=ubt(mr(t[1],"infix").size),s=t[2],l=a.number>0;return{type:"genfrac",mode:r.mode,numer:i,denom:s,continued:!1,hasBarLine:l,barSize:a,leftDelim:null,rightDelim:null,size:"auto"}},"handler"),htmlBuilder:R7,mathmlBuilder:N7});cV=o((e,t)=>{var r=t.style,n,i;e.type==="supsub"?(n=e.sup?Or(e.sup,t.havingStyle(r.sup()),t):Or(e.sub,t.havingStyle(r.sub()),t),i=mr(e.base,"horizBrace")):i=mr(e,"horizBrace");var a=Or(i.base,t.havingBaseStyle(rr.DISPLAY)),s=du.svgSpan(i,t),l;if(i.isOver?(l=Bt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:s}]},t),l.children[0].children[0].children[1].classes.push("svg-align")):(l=Bt.makeVList({positionType:"bottom",positionData:a.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:a}]},t),l.children[0].children[0].children[0].classes.push("svg-align")),n){var u=Bt.makeSpan(["mord",i.isOver?"mover":"munder"],[l],t);i.isOver?l=Bt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:u},{type:"kern",size:.2},{type:"elem",elem:n}]},t):l=Bt.makeVList({positionType:"bottom",positionData:u.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:u}]},t)}return Bt.makeSpan(["mord",i.isOver?"mover":"munder"],[l],t)},"htmlBuilder$3"),N4t=o((e,t)=>{var r=du.mathMLnode(e.label);return new se.MathNode(e.isOver?"mover":"munder",[yn(e.base,t),r])},"mathmlBuilder$2");Ce({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e;return{type:"horizBrace",mode:r.mode,label:n,isOver:/^\\over/.test(n),base:t[0]}},htmlBuilder:cV,mathmlBuilder:N4t});Ce({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:o((e,t)=>{var{parser:r}=e,n=t[1],i=mr(t[0],"url").url;return r.settings.isTrusted({command:"\\href",url:i})?{type:"href",mode:r.mode,href:i,body:mi(n)}:r.formatUnsupportedCmd("\\href")},"handler"),htmlBuilder:o((e,t)=>{var r=Oi(e.body,t,!1);return Bt.makeAnchor(e.href,[],r,t)},"htmlBuilder"),mathmlBuilder:o((e,t)=>{var r=mh(e.body,t);return r instanceof vs||(r=new vs("mrow",[r])),r.setAttribute("href",e.href),r},"mathmlBuilder")});Ce({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:o((e,t)=>{var{parser:r}=e,n=mr(t[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:n}))return r.formatUnsupportedCmd("\\url");for(var i=[],a=0;a{var{parser:r,funcName:n,token:i}=e,a=mr(t[0],"raw").string,s=t[1];r.settings.strict&&r.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var l,u={};switch(n){case"\\htmlClass":u.class=a,l={command:"\\htmlClass",class:a};break;case"\\htmlId":u.id=a,l={command:"\\htmlId",id:a};break;case"\\htmlStyle":u.style=a,l={command:"\\htmlStyle",style:a};break;case"\\htmlData":{for(var h=a.split(","),f=0;f{var r=Oi(e.body,t,!1),n=["enclosing"];e.attributes.class&&n.push(...e.attributes.class.trim().split(/\s+/));var i=Bt.makeSpan(n,r,t);for(var a in e.attributes)a!=="class"&&e.attributes.hasOwnProperty(a)&&i.setAttribute(a,e.attributes[a]);return i},"htmlBuilder"),mathmlBuilder:o((e,t)=>mh(e.body,t),"mathmlBuilder")});Ce({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:o((e,t)=>{var{parser:r}=e;return{type:"htmlmathml",mode:r.mode,html:mi(t[0]),mathml:mi(t[1])}},"handler"),htmlBuilder:o((e,t)=>{var r=Oi(e.html,t,!1);return Bt.makeFragment(r)},"htmlBuilder"),mathmlBuilder:o((e,t)=>mh(e.mathml,t),"mathmlBuilder")});n7=o(function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!r)throw new ue("Invalid size: '"+t+"' in \\includegraphics");var n={number:+(r[1]+r[2]),unit:r[3]};if(!_G(n))throw new ue("Invalid unit: '"+n.unit+"' in \\includegraphics.");return n},"sizeData");Ce({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:o((e,t,r)=>{var{parser:n}=e,i={number:0,unit:"em"},a={number:.9,unit:"em"},s={number:0,unit:"em"},l="";if(r[0])for(var u=mr(r[0],"raw").string,h=u.split(","),f=0;f{var r=Zn(e.height,t),n=0;e.totalheight.number>0&&(n=Zn(e.totalheight,t)-r);var i=0;e.width.number>0&&(i=Zn(e.width,t));var a={height:ve(r+n)};i>0&&(a.width=ve(i)),n>0&&(a.verticalAlign=ve(-n));var s=new c7(e.src,e.alt,a);return s.height=r,s.depth=n,s},"htmlBuilder"),mathmlBuilder:o((e,t)=>{var r=new se.MathNode("mglyph",[]);r.setAttribute("alt",e.alt);var n=Zn(e.height,t),i=0;if(e.totalheight.number>0&&(i=Zn(e.totalheight,t)-n,r.setAttribute("valign",ve(-i))),r.setAttribute("height",ve(n+i)),e.width.number>0){var a=Zn(e.width,t);r.setAttribute("width",ve(a))}return r.setAttribute("src",e.src),r},"mathmlBuilder")});Ce({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:n}=e,i=mr(t[0],"size");if(r.settings.strict){var a=n[1]==="m",s=i.value.unit==="mu";a?(s||r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" supports only mu units, "+("not "+i.value.unit+" units")),r.mode!=="math"&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" works only in math mode")):s&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" doesn't support mu units")}return{type:"kern",mode:r.mode,dimension:i.value}},htmlBuilder(e,t){return Bt.makeGlue(e.dimension,t)},mathmlBuilder(e,t){var r=Zn(e.dimension,t);return new se.SpaceNode(r)}});Ce({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:o((e,t)=>{var{parser:r,funcName:n}=e,i=t[0];return{type:"lap",mode:r.mode,alignment:n.slice(5),body:i}},"handler"),htmlBuilder:o((e,t)=>{var r;e.alignment==="clap"?(r=Bt.makeSpan([],[Or(e.body,t)]),r=Bt.makeSpan(["inner"],[r],t)):r=Bt.makeSpan(["inner"],[Or(e.body,t)]);var n=Bt.makeSpan(["fix"],[]),i=Bt.makeSpan([e.alignment],[r,n],t),a=Bt.makeSpan(["strut"]);return a.style.height=ve(i.height+i.depth),i.depth&&(a.style.verticalAlign=ve(-i.depth)),i.children.unshift(a),i=Bt.makeSpan(["thinbox"],[i],t),Bt.makeSpan(["mord","vbox"],[i],t)},"htmlBuilder"),mathmlBuilder:o((e,t)=>{var r=new se.MathNode("mpadded",[yn(e.body,t)]);if(e.alignment!=="rlap"){var n=e.alignment==="llap"?"-1":"-0.5";r.setAttribute("lspace",n+"width")}return r.setAttribute("width","0px"),r},"mathmlBuilder")});Ce({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:r,parser:n}=e,i=n.mode;n.switchMode("math");var a=r==="\\("?"\\)":"$",s=n.parseExpression(!1,a);return n.expect(a),n.switchMode(i),{type:"styling",mode:n.mode,style:"text",body:s}}});Ce({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new ue("Mismatched "+e.funcName)}});pG=o((e,t)=>{switch(t.style.size){case rr.DISPLAY.size:return e.display;case rr.TEXT.size:return e.text;case rr.SCRIPT.size:return e.script;case rr.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}},"chooseMathStyle");Ce({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:o((e,t)=>{var{parser:r}=e;return{type:"mathchoice",mode:r.mode,display:mi(t[0]),text:mi(t[1]),script:mi(t[2]),scriptscript:mi(t[3])}},"handler"),htmlBuilder:o((e,t)=>{var r=pG(e,t),n=Oi(r,t,!1);return Bt.makeFragment(n)},"htmlBuilder"),mathmlBuilder:o((e,t)=>{var r=pG(e,t);return mh(r,t)},"mathmlBuilder")});uV=o((e,t,r,n,i,a,s)=>{e=Bt.makeSpan([],[e]);var l=r&&tr.isCharacterBox(r),u,h;if(t){var f=Or(t,n.havingStyle(i.sup()),n);h={elem:f,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-f.depth)}}if(r){var d=Or(r,n.havingStyle(i.sub()),n);u={elem:d,kern:Math.max(n.fontMetrics().bigOpSpacing2,n.fontMetrics().bigOpSpacing4-d.height)}}var p;if(h&&u){var m=n.fontMetrics().bigOpSpacing5+u.elem.height+u.elem.depth+u.kern+e.depth+s;p=Bt.makeVList({positionType:"bottom",positionData:m,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:u.elem,marginLeft:ve(-a)},{type:"kern",size:u.kern},{type:"elem",elem:e},{type:"kern",size:h.kern},{type:"elem",elem:h.elem,marginLeft:ve(a)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]},n)}else if(u){var g=e.height-s;p=Bt.makeVList({positionType:"top",positionData:g,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:u.elem,marginLeft:ve(-a)},{type:"kern",size:u.kern},{type:"elem",elem:e}]},n)}else if(h){var y=e.depth+s;p=Bt.makeVList({positionType:"bottom",positionData:y,children:[{type:"elem",elem:e},{type:"kern",size:h.kern},{type:"elem",elem:h.elem,marginLeft:ve(a)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]},n)}else return e;var v=[p];if(u&&a!==0&&!l){var x=Bt.makeSpan(["mspace"],[],n);x.style.marginRight=ve(a),v.unshift(x)}return Bt.makeSpan(["mop","op-limits"],v,n)},"assembleSupSub"),hV=["\\smallint"],Ap=o((e,t)=>{var r,n,i=!1,a;e.type==="supsub"?(r=e.sup,n=e.sub,a=mr(e.base,"op"),i=!0):a=mr(e,"op");var s=t.style,l=!1;s.size===rr.DISPLAY.size&&a.symbol&&!tr.contains(hV,a.name)&&(l=!0);var u;if(a.symbol){var h=l?"Size2-Regular":"Size1-Regular",f="";if((a.name==="\\oiint"||a.name==="\\oiiint")&&(f=a.name.slice(1),a.name=f==="oiint"?"\\iint":"\\iiint"),u=Bt.makeSymbol(a.name,h,"math",t,["mop","op-symbol",l?"large-op":"small-op"]),f.length>0){var d=u.italic,p=Bt.staticSvg(f+"Size"+(l?"2":"1"),t);u=Bt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:u,shift:0},{type:"elem",elem:p,shift:l?.08:0}]},t),a.name="\\"+f,u.classes.unshift("mop"),u.italic=d}}else if(a.body){var m=Oi(a.body,t,!0);m.length===1&&m[0]instanceof xs?(u=m[0],u.classes[0]="mop"):u=Bt.makeSpan(["mop"],m,t)}else{for(var g=[],y=1;y{var r;if(e.symbol)r=new vs("mo",[Ro(e.name,e.mode)]),tr.contains(hV,e.name)&&r.setAttribute("largeop","false");else if(e.body)r=new vs("mo",bs(e.body,t));else{r=new vs("mi",[new Zf(e.name.slice(1))]);var n=new vs("mo",[Ro("\u2061","text")]);e.parentIsSupSub?r=new vs("mrow",[r,n]):r=zG([r,n])}return r},"mathmlBuilder$1"),M4t={"\u220F":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22C0":"\\bigwedge","\u22C1":"\\bigvee","\u22C2":"\\bigcap","\u22C3":"\\bigcup","\u2A00":"\\bigodot","\u2A01":"\\bigoplus","\u2A02":"\\bigotimes","\u2A04":"\\biguplus","\u2A06":"\\bigsqcup"};Ce({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","\u220F","\u2210","\u2211","\u22C0","\u22C1","\u22C2","\u22C3","\u2A00","\u2A01","\u2A02","\u2A04","\u2A06"],props:{numArgs:0},handler:o((e,t)=>{var{parser:r,funcName:n}=e,i=n;return i.length===1&&(i=M4t[i]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},"handler"),htmlBuilder:Ap,mathmlBuilder:vy});Ce({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:o((e,t)=>{var{parser:r}=e,n=t[0];return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:mi(n)}},"handler"),htmlBuilder:Ap,mathmlBuilder:vy});I4t={"\u222B":"\\int","\u222C":"\\iint","\u222D":"\\iiint","\u222E":"\\oint","\u222F":"\\oiint","\u2230":"\\oiiint"};Ce({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:Ap,mathmlBuilder:vy});Ce({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:Ap,mathmlBuilder:vy});Ce({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","\u222B","\u222C","\u222D","\u222E","\u222F","\u2230"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e,n=r;return n.length===1&&(n=I4t[n]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:Ap,mathmlBuilder:vy});fV=o((e,t)=>{var r,n,i=!1,a;e.type==="supsub"?(r=e.sup,n=e.sub,a=mr(e.base,"operatorname"),i=!0):a=mr(e,"operatorname");var s;if(a.body.length>0){for(var l=a.body.map(d=>{var p=d.text;return typeof p=="string"?{type:"textord",mode:d.mode,text:p}:d}),u=Oi(l,t.withFont("mathrm"),!0),h=0;h{for(var r=bs(e.body,t.withFont("mathrm")),n=!0,i=0;if.toText()).join("");r=[new se.TextNode(l)]}var u=new se.MathNode("mi",r);u.setAttribute("mathvariant","normal");var h=new se.MathNode("mo",[Ro("\u2061","text")]);return e.parentIsSupSub?new se.MathNode("mrow",[u,h]):se.newDocumentFragment([u,h])},"mathmlBuilder");Ce({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:o((e,t)=>{var{parser:r,funcName:n}=e,i=t[0];return{type:"operatorname",mode:r.mode,body:mi(i),alwaysHandleSupSub:n==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},"handler"),htmlBuilder:fV,mathmlBuilder:O4t});lt("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");ed({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?Bt.makeFragment(Oi(e.body,t,!1)):Bt.makeSpan(["mord"],Oi(e.body,t,!0),t)},mathmlBuilder(e,t){return mh(e.body,t,!0)}});Ce({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:r}=e,n=t[0];return{type:"overline",mode:r.mode,body:n}},htmlBuilder(e,t){var r=Or(e.body,t.havingCrampedStyle()),n=Bt.makeLineSpan("overline-line",t),i=t.fontMetrics().defaultRuleThickness,a=Bt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*i},{type:"elem",elem:n},{type:"kern",size:i}]},t);return Bt.makeSpan(["mord","overline"],[a],t)},mathmlBuilder(e,t){var r=new se.MathNode("mo",[new se.TextNode("\u203E")]);r.setAttribute("stretchy","true");var n=new se.MathNode("mover",[yn(e.body,t),r]);return n.setAttribute("accent","true"),n}});Ce({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:o((e,t)=>{var{parser:r}=e,n=t[0];return{type:"phantom",mode:r.mode,body:mi(n)}},"handler"),htmlBuilder:o((e,t)=>{var r=Oi(e.body,t.withPhantom(),!1);return Bt.makeFragment(r)},"htmlBuilder"),mathmlBuilder:o((e,t)=>{var r=bs(e.body,t);return new se.MathNode("mphantom",r)},"mathmlBuilder")});Ce({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:o((e,t)=>{var{parser:r}=e,n=t[0];return{type:"hphantom",mode:r.mode,body:n}},"handler"),htmlBuilder:o((e,t)=>{var r=Bt.makeSpan([],[Or(e.body,t.withPhantom())]);if(r.height=0,r.depth=0,r.children)for(var n=0;n{var r=bs(mi(e.body),t),n=new se.MathNode("mphantom",r),i=new se.MathNode("mpadded",[n]);return i.setAttribute("height","0px"),i.setAttribute("depth","0px"),i},"mathmlBuilder")});Ce({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:o((e,t)=>{var{parser:r}=e,n=t[0];return{type:"vphantom",mode:r.mode,body:n}},"handler"),htmlBuilder:o((e,t)=>{var r=Bt.makeSpan(["inner"],[Or(e.body,t.withPhantom())]),n=Bt.makeSpan(["fix"],[]);return Bt.makeSpan(["mord","rlap"],[r,n],t)},"htmlBuilder"),mathmlBuilder:o((e,t)=>{var r=bs(mi(e.body),t),n=new se.MathNode("mphantom",r),i=new se.MathNode("mpadded",[n]);return i.setAttribute("width","0px"),i},"mathmlBuilder")});Ce({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e,n=mr(t[0],"size").value,i=t[1];return{type:"raisebox",mode:r.mode,dy:n,body:i}},htmlBuilder(e,t){var r=Or(e.body,t),n=Zn(e.dy,t);return Bt.makeVList({positionType:"shift",positionData:-n,children:[{type:"elem",elem:r}]},t)},mathmlBuilder(e,t){var r=new se.MathNode("mpadded",[yn(e.body,t)]),n=e.dy.number+e.dy.unit;return r.setAttribute("voffset",n),r}});Ce({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});Ce({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler(e,t,r){var{parser:n}=e,i=r[0],a=mr(t[0],"size"),s=mr(t[1],"size");return{type:"rule",mode:n.mode,shift:i&&mr(i,"size").value,width:a.value,height:s.value}},htmlBuilder(e,t){var r=Bt.makeSpan(["mord","rule"],[],t),n=Zn(e.width,t),i=Zn(e.height,t),a=e.shift?Zn(e.shift,t):0;return r.style.borderRightWidth=ve(n),r.style.borderTopWidth=ve(i),r.style.bottom=ve(a),r.width=n,r.height=i+a,r.depth=-a,r.maxFontSize=i*1.125*t.sizeMultiplier,r},mathmlBuilder(e,t){var r=Zn(e.width,t),n=Zn(e.height,t),i=e.shift?Zn(e.shift,t):0,a=t.color&&t.getColor()||"black",s=new se.MathNode("mspace");s.setAttribute("mathbackground",a),s.setAttribute("width",ve(r)),s.setAttribute("height",ve(n));var l=new se.MathNode("mpadded",[s]);return i>=0?l.setAttribute("height",ve(i)):(l.setAttribute("height",ve(i)),l.setAttribute("depth",ve(-i))),l.setAttribute("voffset",ve(i)),l}});o(dV,"sizingGroup");mG=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],P4t=o((e,t)=>{var r=t.havingSize(e.size);return dV(e.body,r,t)},"htmlBuilder");Ce({type:"sizing",names:mG,props:{numArgs:0,allowedInText:!0},handler:o((e,t)=>{var{breakOnTokenText:r,funcName:n,parser:i}=e,a=i.parseExpression(!1,r);return{type:"sizing",mode:i.mode,size:mG.indexOf(n)+1,body:a}},"handler"),htmlBuilder:P4t,mathmlBuilder:o((e,t)=>{var r=t.havingSize(e.size),n=bs(e.body,r),i=new se.MathNode("mstyle",n);return i.setAttribute("mathsize",ve(r.sizeMultiplier)),i},"mathmlBuilder")});Ce({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:o((e,t,r)=>{var{parser:n}=e,i=!1,a=!1,s=r[0]&&mr(r[0],"ordgroup");if(s)for(var l="",u=0;u{var r=Bt.makeSpan([],[Or(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return r;if(e.smashHeight&&(r.height=0,r.children))for(var n=0;n{var r=new se.MathNode("mpadded",[yn(e.body,t)]);return e.smashHeight&&r.setAttribute("height","0px"),e.smashDepth&&r.setAttribute("depth","0px"),r},"mathmlBuilder")});Ce({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:n}=e,i=r[0],a=t[0];return{type:"sqrt",mode:n.mode,body:a,index:i}},htmlBuilder(e,t){var r=Or(e.body,t.havingCrampedStyle());r.height===0&&(r.height=t.fontMetrics().xHeight),r=Bt.wrapFragment(r,t);var n=t.fontMetrics(),i=n.defaultRuleThickness,a=i;t.style.idr.height+r.depth+s&&(s=(s+d-r.height-r.depth)/2);var p=u.height-r.height-s-h;r.style.paddingLeft=ve(f);var m=Bt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+p)},{type:"elem",elem:u},{type:"kern",size:h}]},t);if(e.index){var g=t.havingStyle(rr.SCRIPTSCRIPT),y=Or(e.index,g,t),v=.6*(m.height-m.depth),x=Bt.makeVList({positionType:"shift",positionData:-v,children:[{type:"elem",elem:y}]},t),b=Bt.makeSpan(["root"],[x]);return Bt.makeSpan(["mord","sqrt"],[b,m],t)}else return Bt.makeSpan(["mord","sqrt"],[m],t)},mathmlBuilder(e,t){var{body:r,index:n}=e;return n?new se.MathNode("mroot",[yn(r,t),yn(n,t)]):new se.MathNode("msqrt",[yn(r,t)])}});gG={display:rr.DISPLAY,text:rr.TEXT,script:rr.SCRIPT,scriptscript:rr.SCRIPTSCRIPT};Ce({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:r,funcName:n,parser:i}=e,a=i.parseExpression(!0,r),s=n.slice(1,n.length-5);return{type:"styling",mode:i.mode,style:s,body:a}},htmlBuilder(e,t){var r=gG[e.style],n=t.havingStyle(r).withFont("");return dV(e.body,n,t)},mathmlBuilder(e,t){var r=gG[e.style],n=t.havingStyle(r),i=bs(e.body,n),a=new se.MathNode("mstyle",i),s={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},l=s[e.style];return a.setAttribute("scriptlevel",l[0]),a.setAttribute("displaystyle",l[1]),a}});B4t=o(function(t,r){var n=t.base;if(n)if(n.type==="op"){var i=n.limits&&(r.style.size===rr.DISPLAY.size||n.alwaysHandleSupSub);return i?Ap:null}else if(n.type==="operatorname"){var a=n.alwaysHandleSupSub&&(r.style.size===rr.DISPLAY.size||n.limits);return a?fV:null}else{if(n.type==="accent")return tr.isCharacterBox(n.base)?C7:null;if(n.type==="horizBrace"){var s=!t.sub;return s===n.isOver?cV:null}else return null}else return null},"htmlBuilderDelegate");ed({type:"supsub",htmlBuilder(e,t){var r=B4t(e,t);if(r)return r(e,t);var{base:n,sup:i,sub:a}=e,s=Or(n,t),l,u,h=t.fontMetrics(),f=0,d=0,p=n&&tr.isCharacterBox(n);if(i){var m=t.havingStyle(t.style.sup());l=Or(i,m,t),p||(f=s.height-m.fontMetrics().supDrop*m.sizeMultiplier/t.sizeMultiplier)}if(a){var g=t.havingStyle(t.style.sub());u=Or(a,g,t),p||(d=s.depth+g.fontMetrics().subDrop*g.sizeMultiplier/t.sizeMultiplier)}var y;t.style===rr.DISPLAY?y=h.sup1:t.style.cramped?y=h.sup3:y=h.sup2;var v=t.sizeMultiplier,x=ve(.5/h.ptPerEm/v),b=null;if(u){var w=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");(s instanceof xs||w)&&(b=ve(-s.italic))}var S;if(l&&u){f=Math.max(f,y,l.depth+.25*h.xHeight),d=Math.max(d,h.sub2);var T=h.defaultRuleThickness,E=4*T;if(f-l.depth-(u.height-d)0&&(f+=_,d-=_)}var A=[{type:"elem",elem:u,shift:d,marginRight:x,marginLeft:b},{type:"elem",elem:l,shift:-f,marginRight:x}];S=Bt.makeVList({positionType:"individualShift",children:A},t)}else if(u){d=Math.max(d,h.sub1,u.height-.8*h.xHeight);var L=[{type:"elem",elem:u,marginLeft:b,marginRight:x}];S=Bt.makeVList({positionType:"shift",positionData:d,children:L},t)}else if(l)f=Math.max(f,y,l.depth+.25*h.xHeight),S=Bt.makeVList({positionType:"shift",positionData:-f,children:[{type:"elem",elem:l,marginRight:x}]},t);else throw new Error("supsub must have either sup or sub.");var M=h7(s,"right")||"mord";return Bt.makeSpan([M],[s,Bt.makeSpan(["msupsub"],[S])],t)},mathmlBuilder(e,t){var r=!1,n,i;e.base&&e.base.type==="horizBrace"&&(i=!!e.sup,i===e.base.isOver&&(r=!0,n=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var a=[yn(e.base,t)];e.sub&&a.push(yn(e.sub,t)),e.sup&&a.push(yn(e.sup,t));var s;if(r)s=n?"mover":"munder";else if(e.sub)if(e.sup){var h=e.base;h&&h.type==="op"&&h.limits&&t.style===rr.DISPLAY||h&&h.type==="operatorname"&&h.alwaysHandleSupSub&&(t.style===rr.DISPLAY||h.limits)?s="munderover":s="msubsup"}else{var u=e.base;u&&u.type==="op"&&u.limits&&(t.style===rr.DISPLAY||u.alwaysHandleSupSub)||u&&u.type==="operatorname"&&u.alwaysHandleSupSub&&(u.limits||t.style===rr.DISPLAY)?s="munder":s="msub"}else{var l=e.base;l&&l.type==="op"&&l.limits&&(t.style===rr.DISPLAY||l.alwaysHandleSupSub)||l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(l.limits||t.style===rr.DISPLAY)?s="mover":s="msup"}return new se.MathNode(s,a)}});ed({type:"atom",htmlBuilder(e,t){return Bt.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var r=new se.MathNode("mo",[Ro(e.text,e.mode)]);if(e.family==="bin"){var n=k7(e,t);n==="bold-italic"&&r.setAttribute("mathvariant",n)}else e.family==="punct"?r.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&r.setAttribute("stretchy","false");return r}});pV={mi:"italic",mn:"normal",mtext:"normal"};ed({type:"mathord",htmlBuilder(e,t){return Bt.makeOrd(e,t,"mathord")},mathmlBuilder(e,t){var r=new se.MathNode("mi",[Ro(e.text,e.mode,t)]),n=k7(e,t)||"italic";return n!==pV[r.type]&&r.setAttribute("mathvariant",n),r}});ed({type:"textord",htmlBuilder(e,t){return Bt.makeOrd(e,t,"textord")},mathmlBuilder(e,t){var r=Ro(e.text,e.mode,t),n=k7(e,t)||"normal",i;return e.mode==="text"?i=new se.MathNode("mtext",[r]):/[0-9]/.test(e.text)?i=new se.MathNode("mn",[r]):e.text==="\\prime"?i=new se.MathNode("mo",[r]):i=new se.MathNode("mi",[r]),n!==pV[i.type]&&i.setAttribute("mathvariant",n),i}});i7={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},a7={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};ed({type:"spacing",htmlBuilder(e,t){if(a7.hasOwnProperty(e.text)){var r=a7[e.text].className||"";if(e.mode==="text"){var n=Bt.makeOrd(e,t,"textord");return n.classes.push(r),n}else return Bt.makeSpan(["mspace",r],[Bt.mathsym(e.text,e.mode,t)],t)}else{if(i7.hasOwnProperty(e.text))return Bt.makeSpan(["mspace",i7[e.text]],[],t);throw new ue('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var r;if(a7.hasOwnProperty(e.text))r=new se.MathNode("mtext",[new se.TextNode("\xA0")]);else{if(i7.hasOwnProperty(e.text))return new se.MathNode("mspace");throw new ue('Unknown type of space "'+e.text+'"')}return r}});yG=o(()=>{var e=new se.MathNode("mtd",[]);return e.setAttribute("width","50%"),e},"pad");ed({type:"tag",mathmlBuilder(e,t){var r=new se.MathNode("mtable",[new se.MathNode("mtr",[yG(),new se.MathNode("mtd",[mh(e.body,t)]),yG(),new se.MathNode("mtd",[mh(e.tag,t)])])]);return r.setAttribute("width","100%"),r}});vG={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},xG={"\\textbf":"textbf","\\textmd":"textmd"},F4t={"\\textit":"textit","\\textup":"textup"},bG=o((e,t)=>{var r=e.font;if(r){if(vG[r])return t.withTextFontFamily(vG[r]);if(xG[r])return t.withTextFontWeight(xG[r]);if(r==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(F4t[r])},"optionsWithFont");Ce({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:n}=e,i=t[0];return{type:"text",mode:r.mode,body:mi(i),font:n}},htmlBuilder(e,t){var r=bG(e,t),n=Oi(e.body,r,!0);return Bt.makeSpan(["mord","text"],n,r)},mathmlBuilder(e,t){var r=bG(e,t);return mh(e.body,r)}});Ce({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"underline",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=Or(e.body,t),n=Bt.makeLineSpan("underline-line",t),i=t.fontMetrics().defaultRuleThickness,a=Bt.makeVList({positionType:"top",positionData:r.height,children:[{type:"kern",size:i},{type:"elem",elem:n},{type:"kern",size:3*i},{type:"elem",elem:r}]},t);return Bt.makeSpan(["mord","underline"],[a],t)},mathmlBuilder(e,t){var r=new se.MathNode("mo",[new se.TextNode("\u203E")]);r.setAttribute("stretchy","true");var n=new se.MathNode("munder",[yn(e.body,t),r]);return n.setAttribute("accentunder","true"),n}});Ce({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"vcenter",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=Or(e.body,t),n=t.fontMetrics().axisHeight,i=.5*(r.height-n-(r.depth+n));return Bt.makeVList({positionType:"shift",positionData:i,children:[{type:"elem",elem:r}]},t)},mathmlBuilder(e,t){return new se.MathNode("mpadded",[yn(e.body,t)],["vcenter"])}});Ce({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,r){throw new ue("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var r=wG(e),n=[],i=t.havingStyle(t.style.text()),a=0;ae.body.replace(/ /g,e.star?"\u2423":"\xA0"),"makeVerb"),dh=BG,mV=`[ \r + ]`,z4t="\\\\[a-zA-Z@]+",$4t="\\\\[^\uD800-\uDFFF]",G4t="("+z4t+")"+mV+"*",V4t=`\\\\( +|[ \r ]+ +?)[ \r ]*`,g7="[\u0300-\u036F]",U4t=new RegExp(g7+"+$"),H4t="("+mV+"+)|"+(V4t+"|")+"([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]"+(g7+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(g7+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+G4t)+("|"+$4t+")"),F4=class{static{o(this,"Lexer")}constructor(t,r){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=t,this.settings=r,this.tokenRegex=new RegExp(H4t,"g"),this.catcodes={"%":14,"~":13}}setCatcode(t,r){this.catcodes[t]=r}lex(){var t=this.input,r=this.tokenRegex.lastIndex;if(r===t.length)return new Do("EOF",new Ks(this,r,r));var n=this.tokenRegex.exec(t);if(n===null||n.index!==r)throw new ue("Unexpected character: '"+t[r]+"'",new Do(t[r],new Ks(this,r,r+1)));var i=n[6]||n[3]||(n[2]?"\\ ":" ");if(this.catcodes[i]===14){var a=t.indexOf(` +`,this.tokenRegex.lastIndex);return a===-1?(this.tokenRegex.lastIndex=t.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=a+1,this.lex()}return new Do(i,new Ks(this,r,this.tokenRegex.lastIndex))}},y7=class{static{o(this,"Namespace")}constructor(t,r){t===void 0&&(t={}),r===void 0&&(r={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=r,this.builtins=t,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new ue("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var t=this.undefStack.pop();for(var r in t)t.hasOwnProperty(r)&&(t[r]==null?delete this.current[r]:this.current[r]=t[r])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(t){return this.current.hasOwnProperty(t)||this.builtins.hasOwnProperty(t)}get(t){return this.current.hasOwnProperty(t)?this.current[t]:this.builtins[t]}set(t,r,n){if(n===void 0&&(n=!1),n){for(var i=0;i0&&(this.undefStack[this.undefStack.length-1][t]=r)}else{var a=this.undefStack[this.undefStack.length-1];a&&!a.hasOwnProperty(t)&&(a[t]=this.current[t])}r==null?delete this.current[t]:this.current[t]=r}},W4t=iV;lt("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});lt("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}});lt("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}});lt("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}});lt("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var r=e.future();return t[0].length===1&&t[0][0].text===r.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}});lt("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");lt("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});TG={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};lt("\\char",function(e){var t=e.popToken(),r,n="";if(t.text==="'")r=8,t=e.popToken();else if(t.text==='"')r=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]==="\\")n=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new ue("\\char` missing argument");n=t.text.charCodeAt(0)}else r=10;if(r){if(n=TG[t.text],n==null||n>=r)throw new ue("Invalid base-"+r+" digit "+t.text);for(var i;(i=TG[e.future().text])!=null&&i{var n=e.consumeArg().tokens;if(n.length!==1)throw new ue("\\newcommand's first argument must be a macro name");var i=n[0].text,a=e.isDefined(i);if(a&&!t)throw new ue("\\newcommand{"+i+"} attempting to redefine "+(i+"; use \\renewcommand"));if(!a&&!r)throw new ue("\\renewcommand{"+i+"} when command "+i+" does not yet exist; use \\newcommand");var s=0;if(n=e.consumeArg().tokens,n.length===1&&n[0].text==="["){for(var l="",u=e.expandNextToken();u.text!=="]"&&u.text!=="EOF";)l+=u.text,u=e.expandNextToken();if(!l.match(/^\s*[0-9]+\s*$/))throw new ue("Invalid number of arguments: "+l);s=parseInt(l),n=e.consumeArg().tokens}return e.macros.set(i,{tokens:n,numArgs:s}),""},"newcommand");lt("\\newcommand",e=>M7(e,!1,!0));lt("\\renewcommand",e=>M7(e,!0,!1));lt("\\providecommand",e=>M7(e,!0,!0));lt("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(r=>r.text).join("")),""});lt("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(r=>r.text).join("")),""});lt("\\show",e=>{var t=e.popToken(),r=t.text;return console.log(t,e.macros.get(r),dh[r],An.math[r],An.text[r]),""});lt("\\bgroup","{");lt("\\egroup","}");lt("~","\\nobreakspace");lt("\\lq","`");lt("\\rq","'");lt("\\aa","\\r a");lt("\\AA","\\r A");lt("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xA9}");lt("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");lt("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xAE}");lt("\u212C","\\mathscr{B}");lt("\u2130","\\mathscr{E}");lt("\u2131","\\mathscr{F}");lt("\u210B","\\mathscr{H}");lt("\u2110","\\mathscr{I}");lt("\u2112","\\mathscr{L}");lt("\u2133","\\mathscr{M}");lt("\u211B","\\mathscr{R}");lt("\u212D","\\mathfrak{C}");lt("\u210C","\\mathfrak{H}");lt("\u2128","\\mathfrak{Z}");lt("\\Bbbk","\\Bbb{k}");lt("\xB7","\\cdotp");lt("\\llap","\\mathllap{\\textrm{#1}}");lt("\\rlap","\\mathrlap{\\textrm{#1}}");lt("\\clap","\\mathclap{\\textrm{#1}}");lt("\\mathstrut","\\vphantom{(}");lt("\\underbar","\\underline{\\text{#1}}");lt("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}');lt("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}");lt("\\ne","\\neq");lt("\u2260","\\neq");lt("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}");lt("\u2209","\\notin");lt("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}");lt("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}");lt("\u225A","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225A}}");lt("\u225B","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225B}}");lt("\u225D","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225D}}");lt("\u225E","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225E}}");lt("\u225F","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225F}}");lt("\u27C2","\\perp");lt("\u203C","\\mathclose{!\\mkern-0.8mu!}");lt("\u220C","\\notni");lt("\u231C","\\ulcorner");lt("\u231D","\\urcorner");lt("\u231E","\\llcorner");lt("\u231F","\\lrcorner");lt("\xA9","\\copyright");lt("\xAE","\\textregistered");lt("\uFE0F","\\textregistered");lt("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');lt("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');lt("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');lt("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');lt("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}");lt("\u22EE","\\vdots");lt("\\varGamma","\\mathit{\\Gamma}");lt("\\varDelta","\\mathit{\\Delta}");lt("\\varTheta","\\mathit{\\Theta}");lt("\\varLambda","\\mathit{\\Lambda}");lt("\\varXi","\\mathit{\\Xi}");lt("\\varPi","\\mathit{\\Pi}");lt("\\varSigma","\\mathit{\\Sigma}");lt("\\varUpsilon","\\mathit{\\Upsilon}");lt("\\varPhi","\\mathit{\\Phi}");lt("\\varPsi","\\mathit{\\Psi}");lt("\\varOmega","\\mathit{\\Omega}");lt("\\substack","\\begin{subarray}{c}#1\\end{subarray}");lt("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");lt("\\boxed","\\fbox{$\\displaystyle{#1}$}");lt("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");lt("\\implies","\\DOTSB\\;\\Longrightarrow\\;");lt("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");kG={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};lt("\\dots",function(e){var t="\\dotso",r=e.expandAfterFuture().text;return r in kG?t=kG[r]:(r.slice(0,4)==="\\not"||r in An.math&&tr.contains(["bin","rel"],An.math[r].group))&&(t="\\dotsb"),t});I7={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};lt("\\dotso",function(e){var t=e.future().text;return t in I7?"\\ldots\\,":"\\ldots"});lt("\\dotsc",function(e){var t=e.future().text;return t in I7&&t!==","?"\\ldots\\,":"\\ldots"});lt("\\cdots",function(e){var t=e.future().text;return t in I7?"\\@cdots\\,":"\\@cdots"});lt("\\dotsb","\\cdots");lt("\\dotsm","\\cdots");lt("\\dotsi","\\!\\cdots");lt("\\dotsx","\\ldots\\,");lt("\\DOTSI","\\relax");lt("\\DOTSB","\\relax");lt("\\DOTSX","\\relax");lt("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");lt("\\,","\\tmspace+{3mu}{.1667em}");lt("\\thinspace","\\,");lt("\\>","\\mskip{4mu}");lt("\\:","\\tmspace+{4mu}{.2222em}");lt("\\medspace","\\:");lt("\\;","\\tmspace+{5mu}{.2777em}");lt("\\thickspace","\\;");lt("\\!","\\tmspace-{3mu}{.1667em}");lt("\\negthinspace","\\!");lt("\\negmedspace","\\tmspace-{4mu}{.2222em}");lt("\\negthickspace","\\tmspace-{5mu}{.277em}");lt("\\enspace","\\kern.5em ");lt("\\enskip","\\hskip.5em\\relax");lt("\\quad","\\hskip1em\\relax");lt("\\qquad","\\hskip2em\\relax");lt("\\tag","\\@ifstar\\tag@literal\\tag@paren");lt("\\tag@paren","\\tag@literal{({#1})}");lt("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new ue("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});lt("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");lt("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");lt("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");lt("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");lt("\\newline","\\\\\\relax");lt("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");gV=ve(ac["Main-Regular"][84][1]-.7*ac["Main-Regular"][65][1]);lt("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+gV+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");lt("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+gV+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");lt("\\hspace","\\@ifstar\\@hspacer\\@hspace");lt("\\@hspace","\\hskip #1\\relax");lt("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");lt("\\ordinarycolon",":");lt("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");lt("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');lt("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');lt("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');lt("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');lt("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');lt("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');lt("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');lt("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');lt("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');lt("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');lt("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');lt("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');lt("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');lt("\u2237","\\dblcolon");lt("\u2239","\\eqcolon");lt("\u2254","\\coloneqq");lt("\u2255","\\eqqcolon");lt("\u2A74","\\Coloneqq");lt("\\ratio","\\vcentcolon");lt("\\coloncolon","\\dblcolon");lt("\\colonequals","\\coloneqq");lt("\\coloncolonequals","\\Coloneqq");lt("\\equalscolon","\\eqqcolon");lt("\\equalscoloncolon","\\Eqqcolon");lt("\\colonminus","\\coloneq");lt("\\coloncolonminus","\\Coloneq");lt("\\minuscolon","\\eqcolon");lt("\\minuscoloncolon","\\Eqcolon");lt("\\coloncolonapprox","\\Colonapprox");lt("\\coloncolonsim","\\Colonsim");lt("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");lt("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");lt("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");lt("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");lt("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220C}}");lt("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");lt("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");lt("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");lt("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");lt("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");lt("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");lt("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");lt("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");lt("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}");lt("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}");lt("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}");lt("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}");lt("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}");lt("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}");lt("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}");lt("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}");lt("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}");lt("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}");lt("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228A}");lt("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2ACB}");lt("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228B}");lt("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2ACC}");lt("\\imath","\\html@mathml{\\@imath}{\u0131}");lt("\\jmath","\\html@mathml{\\@jmath}{\u0237}");lt("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`\u27E6}}");lt("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27E7}}");lt("\u27E6","\\llbracket");lt("\u27E7","\\rrbracket");lt("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}");lt("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}");lt("\u2983","\\lBrace");lt("\u2984","\\rBrace");lt("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`\u29B5}}");lt("\u29B5","\\minuso");lt("\\darr","\\downarrow");lt("\\dArr","\\Downarrow");lt("\\Darr","\\Downarrow");lt("\\lang","\\langle");lt("\\rang","\\rangle");lt("\\uarr","\\uparrow");lt("\\uArr","\\Uparrow");lt("\\Uarr","\\Uparrow");lt("\\N","\\mathbb{N}");lt("\\R","\\mathbb{R}");lt("\\Z","\\mathbb{Z}");lt("\\alef","\\aleph");lt("\\alefsym","\\aleph");lt("\\Alpha","\\mathrm{A}");lt("\\Beta","\\mathrm{B}");lt("\\bull","\\bullet");lt("\\Chi","\\mathrm{X}");lt("\\clubs","\\clubsuit");lt("\\cnums","\\mathbb{C}");lt("\\Complex","\\mathbb{C}");lt("\\Dagger","\\ddagger");lt("\\diamonds","\\diamondsuit");lt("\\empty","\\emptyset");lt("\\Epsilon","\\mathrm{E}");lt("\\Eta","\\mathrm{H}");lt("\\exist","\\exists");lt("\\harr","\\leftrightarrow");lt("\\hArr","\\Leftrightarrow");lt("\\Harr","\\Leftrightarrow");lt("\\hearts","\\heartsuit");lt("\\image","\\Im");lt("\\infin","\\infty");lt("\\Iota","\\mathrm{I}");lt("\\isin","\\in");lt("\\Kappa","\\mathrm{K}");lt("\\larr","\\leftarrow");lt("\\lArr","\\Leftarrow");lt("\\Larr","\\Leftarrow");lt("\\lrarr","\\leftrightarrow");lt("\\lrArr","\\Leftrightarrow");lt("\\Lrarr","\\Leftrightarrow");lt("\\Mu","\\mathrm{M}");lt("\\natnums","\\mathbb{N}");lt("\\Nu","\\mathrm{N}");lt("\\Omicron","\\mathrm{O}");lt("\\plusmn","\\pm");lt("\\rarr","\\rightarrow");lt("\\rArr","\\Rightarrow");lt("\\Rarr","\\Rightarrow");lt("\\real","\\Re");lt("\\reals","\\mathbb{R}");lt("\\Reals","\\mathbb{R}");lt("\\Rho","\\mathrm{P}");lt("\\sdot","\\cdot");lt("\\sect","\\S");lt("\\spades","\\spadesuit");lt("\\sub","\\subset");lt("\\sube","\\subseteq");lt("\\supe","\\supseteq");lt("\\Tau","\\mathrm{T}");lt("\\thetasym","\\vartheta");lt("\\weierp","\\wp");lt("\\Zeta","\\mathrm{Z}");lt("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");lt("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");lt("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");lt("\\bra","\\mathinner{\\langle{#1}|}");lt("\\ket","\\mathinner{|{#1}\\rangle}");lt("\\braket","\\mathinner{\\langle{#1}\\rangle}");lt("\\Bra","\\left\\langle#1\\right|");lt("\\Ket","\\left|#1\\right\\rangle");yV=o(e=>t=>{var r=t.consumeArg().tokens,n=t.consumeArg().tokens,i=t.consumeArg().tokens,a=t.consumeArg().tokens,s=t.macros.get("|"),l=t.macros.get("\\|");t.macros.beginGroup();var u=o(d=>p=>{e&&(p.macros.set("|",s),i.length&&p.macros.set("\\|",l));var m=d;if(!d&&i.length){var g=p.future();g.text==="|"&&(p.popToken(),m=!0)}return{tokens:m?i:n,numArgs:0}},"midMacro");t.macros.set("|",u(!1)),i.length&&t.macros.set("\\|",u(!0));var h=t.consumeArg().tokens,f=t.expandTokens([...a,...h,...r]);return t.macros.endGroup(),{tokens:f.reverse(),numArgs:0}},"braketHelper");lt("\\bra@ket",yV(!1));lt("\\bra@set",yV(!0));lt("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");lt("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");lt("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");lt("\\angln","{\\angl n}");lt("\\blue","\\textcolor{##6495ed}{#1}");lt("\\orange","\\textcolor{##ffa500}{#1}");lt("\\pink","\\textcolor{##ff00af}{#1}");lt("\\red","\\textcolor{##df0030}{#1}");lt("\\green","\\textcolor{##28ae7b}{#1}");lt("\\gray","\\textcolor{gray}{#1}");lt("\\purple","\\textcolor{##9d38bd}{#1}");lt("\\blueA","\\textcolor{##ccfaff}{#1}");lt("\\blueB","\\textcolor{##80f6ff}{#1}");lt("\\blueC","\\textcolor{##63d9ea}{#1}");lt("\\blueD","\\textcolor{##11accd}{#1}");lt("\\blueE","\\textcolor{##0c7f99}{#1}");lt("\\tealA","\\textcolor{##94fff5}{#1}");lt("\\tealB","\\textcolor{##26edd5}{#1}");lt("\\tealC","\\textcolor{##01d1c1}{#1}");lt("\\tealD","\\textcolor{##01a995}{#1}");lt("\\tealE","\\textcolor{##208170}{#1}");lt("\\greenA","\\textcolor{##b6ffb0}{#1}");lt("\\greenB","\\textcolor{##8af281}{#1}");lt("\\greenC","\\textcolor{##74cf70}{#1}");lt("\\greenD","\\textcolor{##1fab54}{#1}");lt("\\greenE","\\textcolor{##0d923f}{#1}");lt("\\goldA","\\textcolor{##ffd0a9}{#1}");lt("\\goldB","\\textcolor{##ffbb71}{#1}");lt("\\goldC","\\textcolor{##ff9c39}{#1}");lt("\\goldD","\\textcolor{##e07d10}{#1}");lt("\\goldE","\\textcolor{##a75a05}{#1}");lt("\\redA","\\textcolor{##fca9a9}{#1}");lt("\\redB","\\textcolor{##ff8482}{#1}");lt("\\redC","\\textcolor{##f9685d}{#1}");lt("\\redD","\\textcolor{##e84d39}{#1}");lt("\\redE","\\textcolor{##bc2612}{#1}");lt("\\maroonA","\\textcolor{##ffbde0}{#1}");lt("\\maroonB","\\textcolor{##ff92c6}{#1}");lt("\\maroonC","\\textcolor{##ed5fa6}{#1}");lt("\\maroonD","\\textcolor{##ca337c}{#1}");lt("\\maroonE","\\textcolor{##9e034e}{#1}");lt("\\purpleA","\\textcolor{##ddd7ff}{#1}");lt("\\purpleB","\\textcolor{##c6b9fc}{#1}");lt("\\purpleC","\\textcolor{##aa87ff}{#1}");lt("\\purpleD","\\textcolor{##7854ab}{#1}");lt("\\purpleE","\\textcolor{##543b78}{#1}");lt("\\mintA","\\textcolor{##f5f9e8}{#1}");lt("\\mintB","\\textcolor{##edf2df}{#1}");lt("\\mintC","\\textcolor{##e0e5cc}{#1}");lt("\\grayA","\\textcolor{##f6f7f7}{#1}");lt("\\grayB","\\textcolor{##f0f1f2}{#1}");lt("\\grayC","\\textcolor{##e3e5e6}{#1}");lt("\\grayD","\\textcolor{##d6d8da}{#1}");lt("\\grayE","\\textcolor{##babec2}{#1}");lt("\\grayF","\\textcolor{##888d93}{#1}");lt("\\grayG","\\textcolor{##626569}{#1}");lt("\\grayH","\\textcolor{##3b3e40}{#1}");lt("\\grayI","\\textcolor{##21242c}{#1}");lt("\\kaBlue","\\textcolor{##314453}{#1}");lt("\\kaGreen","\\textcolor{##71B307}{#1}");vV={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},v7=class{static{o(this,"MacroExpander")}constructor(t,r,n){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=r,this.expansionCount=0,this.feed(t),this.macros=new y7(W4t,r.macros),this.mode=n,this.stack=[]}feed(t){this.lexer=new F4(t,this.settings)}switchMode(t){this.mode=t}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(t){this.stack.push(t)}pushTokens(t){this.stack.push(...t)}scanArgument(t){var r,n,i;if(t){if(this.consumeSpaces(),this.future().text!=="[")return null;r=this.popToken(),{tokens:i,end:n}=this.consumeArg(["]"])}else({tokens:i,start:r,end:n}=this.consumeArg());return this.pushToken(new Do("EOF",n.loc)),this.pushTokens(i),r.range(n,"")}consumeSpaces(){for(;;){var t=this.future();if(t.text===" ")this.stack.pop();else break}}consumeArg(t){var r=[],n=t&&t.length>0;n||this.consumeSpaces();var i=this.future(),a,s=0,l=0;do{if(a=this.popToken(),r.push(a),a.text==="{")++s;else if(a.text==="}"){if(--s,s===-1)throw new ue("Extra }",a)}else if(a.text==="EOF")throw new ue("Unexpected end of input in a macro argument, expected '"+(t&&n?t[l]:"}")+"'",a);if(t&&n)if((s===0||s===1&&t[l]==="{")&&a.text===t[l]){if(++l,l===t.length){r.splice(-l,l);break}}else l=0}while(s!==0||n);return i.text==="{"&&r[r.length-1].text==="}"&&(r.pop(),r.shift()),r.reverse(),{tokens:r,start:i,end:a}}consumeArgs(t,r){if(r){if(r.length!==t+1)throw new ue("The length of delimiters doesn't match the number of args!");for(var n=r[0],i=0;ithis.settings.maxExpand)throw new ue("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(t){var r=this.popToken(),n=r.text,i=r.noexpand?null:this._getExpansion(n);if(i==null||t&&i.unexpandable){if(t&&i==null&&n[0]==="\\"&&!this.isDefined(n))throw new ue("Undefined control sequence: "+n);return this.pushToken(r),!1}this.countExpansion(1);var a=i.tokens,s=this.consumeArgs(i.numArgs,i.delimiters);if(i.numArgs){a=a.slice();for(var l=a.length-1;l>=0;--l){var u=a[l];if(u.text==="#"){if(l===0)throw new ue("Incomplete placeholder at end of macro body",u);if(u=a[--l],u.text==="#")a.splice(l+1,1);else if(/^[1-9]$/.test(u.text))a.splice(l,2,...s[+u.text-1]);else throw new ue("Not a valid argument number",u)}}}return this.pushTokens(a),a.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var t=this.stack.pop();return t.treatAsRelax&&(t.text="\\relax"),t}throw new Error}expandMacro(t){return this.macros.has(t)?this.expandTokens([new Do(t)]):void 0}expandTokens(t){var r=[],n=this.stack.length;for(this.pushTokens(t);this.stack.length>n;)if(this.expandOnce(!0)===!1){var i=this.stack.pop();i.treatAsRelax&&(i.noexpand=!1,i.treatAsRelax=!1),r.push(i)}return this.countExpansion(r.length),r}expandMacroAsText(t){var r=this.expandMacro(t);return r&&r.map(n=>n.text).join("")}_getExpansion(t){var r=this.macros.get(t);if(r==null)return r;if(t.length===1){var n=this.lexer.catcodes[t];if(n!=null&&n!==13)return}var i=typeof r=="function"?r(this):r;if(typeof i=="string"){var a=0;if(i.indexOf("#")!==-1)for(var s=i.replace(/##/g,"");s.indexOf("#"+(a+1))!==-1;)++a;for(var l=new F4(i,this.settings),u=[],h=l.lex();h.text!=="EOF";)u.push(h),h=l.lex();u.reverse();var f={tokens:u,numArgs:a};return f}return i}isDefined(t){return this.macros.has(t)||dh.hasOwnProperty(t)||An.math.hasOwnProperty(t)||An.text.hasOwnProperty(t)||vV.hasOwnProperty(t)}isExpandable(t){var r=this.macros.get(t);return r!=null?typeof r=="string"||typeof r=="function"||!r.unexpandable:dh.hasOwnProperty(t)&&!dh[t].primitive}},EG=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,L4=Object.freeze({"\u208A":"+","\u208B":"-","\u208C":"=","\u208D":"(","\u208E":")","\u2080":"0","\u2081":"1","\u2082":"2","\u2083":"3","\u2084":"4","\u2085":"5","\u2086":"6","\u2087":"7","\u2088":"8","\u2089":"9","\u2090":"a","\u2091":"e","\u2095":"h","\u1D62":"i","\u2C7C":"j","\u2096":"k","\u2097":"l","\u2098":"m","\u2099":"n","\u2092":"o","\u209A":"p","\u1D63":"r","\u209B":"s","\u209C":"t","\u1D64":"u","\u1D65":"v","\u2093":"x","\u1D66":"\u03B2","\u1D67":"\u03B3","\u1D68":"\u03C1","\u1D69":"\u03D5","\u1D6A":"\u03C7","\u207A":"+","\u207B":"-","\u207C":"=","\u207D":"(","\u207E":")","\u2070":"0","\xB9":"1","\xB2":"2","\xB3":"3","\u2074":"4","\u2075":"5","\u2076":"6","\u2077":"7","\u2078":"8","\u2079":"9","\u1D2C":"A","\u1D2E":"B","\u1D30":"D","\u1D31":"E","\u1D33":"G","\u1D34":"H","\u1D35":"I","\u1D36":"J","\u1D37":"K","\u1D38":"L","\u1D39":"M","\u1D3A":"N","\u1D3C":"O","\u1D3E":"P","\u1D3F":"R","\u1D40":"T","\u1D41":"U","\u2C7D":"V","\u1D42":"W","\u1D43":"a","\u1D47":"b","\u1D9C":"c","\u1D48":"d","\u1D49":"e","\u1DA0":"f","\u1D4D":"g",\u02B0:"h","\u2071":"i",\u02B2:"j","\u1D4F":"k",\u02E1:"l","\u1D50":"m",\u207F:"n","\u1D52":"o","\u1D56":"p",\u02B3:"r",\u02E2:"s","\u1D57":"t","\u1D58":"u","\u1D5B":"v",\u02B7:"w",\u02E3:"x",\u02B8:"y","\u1DBB":"z","\u1D5D":"\u03B2","\u1D5E":"\u03B3","\u1D5F":"\u03B4","\u1D60":"\u03D5","\u1D61":"\u03C7","\u1DBF":"\u03B8"}),s7={"\u0301":{text:"\\'",math:"\\acute"},"\u0300":{text:"\\`",math:"\\grave"},"\u0308":{text:'\\"',math:"\\ddot"},"\u0303":{text:"\\~",math:"\\tilde"},"\u0304":{text:"\\=",math:"\\bar"},"\u0306":{text:"\\u",math:"\\breve"},"\u030C":{text:"\\v",math:"\\check"},"\u0302":{text:"\\^",math:"\\hat"},"\u0307":{text:"\\.",math:"\\dot"},"\u030A":{text:"\\r",math:"\\mathring"},"\u030B":{text:"\\H"},"\u0327":{text:"\\c"}},CG={\u00E1:"a\u0301",\u00E0:"a\u0300",\u00E4:"a\u0308",\u01DF:"a\u0308\u0304",\u00E3:"a\u0303",\u0101:"a\u0304",\u0103:"a\u0306",\u1EAF:"a\u0306\u0301",\u1EB1:"a\u0306\u0300",\u1EB5:"a\u0306\u0303",\u01CE:"a\u030C",\u00E2:"a\u0302",\u1EA5:"a\u0302\u0301",\u1EA7:"a\u0302\u0300",\u1EAB:"a\u0302\u0303",\u0227:"a\u0307",\u01E1:"a\u0307\u0304",\u00E5:"a\u030A",\u01FB:"a\u030A\u0301",\u1E03:"b\u0307",\u0107:"c\u0301",\u1E09:"c\u0327\u0301",\u010D:"c\u030C",\u0109:"c\u0302",\u010B:"c\u0307",\u00E7:"c\u0327",\u010F:"d\u030C",\u1E0B:"d\u0307",\u1E11:"d\u0327",\u00E9:"e\u0301",\u00E8:"e\u0300",\u00EB:"e\u0308",\u1EBD:"e\u0303",\u0113:"e\u0304",\u1E17:"e\u0304\u0301",\u1E15:"e\u0304\u0300",\u0115:"e\u0306",\u1E1D:"e\u0327\u0306",\u011B:"e\u030C",\u00EA:"e\u0302",\u1EBF:"e\u0302\u0301",\u1EC1:"e\u0302\u0300",\u1EC5:"e\u0302\u0303",\u0117:"e\u0307",\u0229:"e\u0327",\u1E1F:"f\u0307",\u01F5:"g\u0301",\u1E21:"g\u0304",\u011F:"g\u0306",\u01E7:"g\u030C",\u011D:"g\u0302",\u0121:"g\u0307",\u0123:"g\u0327",\u1E27:"h\u0308",\u021F:"h\u030C",\u0125:"h\u0302",\u1E23:"h\u0307",\u1E29:"h\u0327",\u00ED:"i\u0301",\u00EC:"i\u0300",\u00EF:"i\u0308",\u1E2F:"i\u0308\u0301",\u0129:"i\u0303",\u012B:"i\u0304",\u012D:"i\u0306",\u01D0:"i\u030C",\u00EE:"i\u0302",\u01F0:"j\u030C",\u0135:"j\u0302",\u1E31:"k\u0301",\u01E9:"k\u030C",\u0137:"k\u0327",\u013A:"l\u0301",\u013E:"l\u030C",\u013C:"l\u0327",\u1E3F:"m\u0301",\u1E41:"m\u0307",\u0144:"n\u0301",\u01F9:"n\u0300",\u00F1:"n\u0303",\u0148:"n\u030C",\u1E45:"n\u0307",\u0146:"n\u0327",\u00F3:"o\u0301",\u00F2:"o\u0300",\u00F6:"o\u0308",\u022B:"o\u0308\u0304",\u00F5:"o\u0303",\u1E4D:"o\u0303\u0301",\u1E4F:"o\u0303\u0308",\u022D:"o\u0303\u0304",\u014D:"o\u0304",\u1E53:"o\u0304\u0301",\u1E51:"o\u0304\u0300",\u014F:"o\u0306",\u01D2:"o\u030C",\u00F4:"o\u0302",\u1ED1:"o\u0302\u0301",\u1ED3:"o\u0302\u0300",\u1ED7:"o\u0302\u0303",\u022F:"o\u0307",\u0231:"o\u0307\u0304",\u0151:"o\u030B",\u1E55:"p\u0301",\u1E57:"p\u0307",\u0155:"r\u0301",\u0159:"r\u030C",\u1E59:"r\u0307",\u0157:"r\u0327",\u015B:"s\u0301",\u1E65:"s\u0301\u0307",\u0161:"s\u030C",\u1E67:"s\u030C\u0307",\u015D:"s\u0302",\u1E61:"s\u0307",\u015F:"s\u0327",\u1E97:"t\u0308",\u0165:"t\u030C",\u1E6B:"t\u0307",\u0163:"t\u0327",\u00FA:"u\u0301",\u00F9:"u\u0300",\u00FC:"u\u0308",\u01D8:"u\u0308\u0301",\u01DC:"u\u0308\u0300",\u01D6:"u\u0308\u0304",\u01DA:"u\u0308\u030C",\u0169:"u\u0303",\u1E79:"u\u0303\u0301",\u016B:"u\u0304",\u1E7B:"u\u0304\u0308",\u016D:"u\u0306",\u01D4:"u\u030C",\u00FB:"u\u0302",\u016F:"u\u030A",\u0171:"u\u030B",\u1E7D:"v\u0303",\u1E83:"w\u0301",\u1E81:"w\u0300",\u1E85:"w\u0308",\u0175:"w\u0302",\u1E87:"w\u0307",\u1E98:"w\u030A",\u1E8D:"x\u0308",\u1E8B:"x\u0307",\u00FD:"y\u0301",\u1EF3:"y\u0300",\u00FF:"y\u0308",\u1EF9:"y\u0303",\u0233:"y\u0304",\u0177:"y\u0302",\u1E8F:"y\u0307",\u1E99:"y\u030A",\u017A:"z\u0301",\u017E:"z\u030C",\u1E91:"z\u0302",\u017C:"z\u0307",\u00C1:"A\u0301",\u00C0:"A\u0300",\u00C4:"A\u0308",\u01DE:"A\u0308\u0304",\u00C3:"A\u0303",\u0100:"A\u0304",\u0102:"A\u0306",\u1EAE:"A\u0306\u0301",\u1EB0:"A\u0306\u0300",\u1EB4:"A\u0306\u0303",\u01CD:"A\u030C",\u00C2:"A\u0302",\u1EA4:"A\u0302\u0301",\u1EA6:"A\u0302\u0300",\u1EAA:"A\u0302\u0303",\u0226:"A\u0307",\u01E0:"A\u0307\u0304",\u00C5:"A\u030A",\u01FA:"A\u030A\u0301",\u1E02:"B\u0307",\u0106:"C\u0301",\u1E08:"C\u0327\u0301",\u010C:"C\u030C",\u0108:"C\u0302",\u010A:"C\u0307",\u00C7:"C\u0327",\u010E:"D\u030C",\u1E0A:"D\u0307",\u1E10:"D\u0327",\u00C9:"E\u0301",\u00C8:"E\u0300",\u00CB:"E\u0308",\u1EBC:"E\u0303",\u0112:"E\u0304",\u1E16:"E\u0304\u0301",\u1E14:"E\u0304\u0300",\u0114:"E\u0306",\u1E1C:"E\u0327\u0306",\u011A:"E\u030C",\u00CA:"E\u0302",\u1EBE:"E\u0302\u0301",\u1EC0:"E\u0302\u0300",\u1EC4:"E\u0302\u0303",\u0116:"E\u0307",\u0228:"E\u0327",\u1E1E:"F\u0307",\u01F4:"G\u0301",\u1E20:"G\u0304",\u011E:"G\u0306",\u01E6:"G\u030C",\u011C:"G\u0302",\u0120:"G\u0307",\u0122:"G\u0327",\u1E26:"H\u0308",\u021E:"H\u030C",\u0124:"H\u0302",\u1E22:"H\u0307",\u1E28:"H\u0327",\u00CD:"I\u0301",\u00CC:"I\u0300",\u00CF:"I\u0308",\u1E2E:"I\u0308\u0301",\u0128:"I\u0303",\u012A:"I\u0304",\u012C:"I\u0306",\u01CF:"I\u030C",\u00CE:"I\u0302",\u0130:"I\u0307",\u0134:"J\u0302",\u1E30:"K\u0301",\u01E8:"K\u030C",\u0136:"K\u0327",\u0139:"L\u0301",\u013D:"L\u030C",\u013B:"L\u0327",\u1E3E:"M\u0301",\u1E40:"M\u0307",\u0143:"N\u0301",\u01F8:"N\u0300",\u00D1:"N\u0303",\u0147:"N\u030C",\u1E44:"N\u0307",\u0145:"N\u0327",\u00D3:"O\u0301",\u00D2:"O\u0300",\u00D6:"O\u0308",\u022A:"O\u0308\u0304",\u00D5:"O\u0303",\u1E4C:"O\u0303\u0301",\u1E4E:"O\u0303\u0308",\u022C:"O\u0303\u0304",\u014C:"O\u0304",\u1E52:"O\u0304\u0301",\u1E50:"O\u0304\u0300",\u014E:"O\u0306",\u01D1:"O\u030C",\u00D4:"O\u0302",\u1ED0:"O\u0302\u0301",\u1ED2:"O\u0302\u0300",\u1ED6:"O\u0302\u0303",\u022E:"O\u0307",\u0230:"O\u0307\u0304",\u0150:"O\u030B",\u1E54:"P\u0301",\u1E56:"P\u0307",\u0154:"R\u0301",\u0158:"R\u030C",\u1E58:"R\u0307",\u0156:"R\u0327",\u015A:"S\u0301",\u1E64:"S\u0301\u0307",\u0160:"S\u030C",\u1E66:"S\u030C\u0307",\u015C:"S\u0302",\u1E60:"S\u0307",\u015E:"S\u0327",\u0164:"T\u030C",\u1E6A:"T\u0307",\u0162:"T\u0327",\u00DA:"U\u0301",\u00D9:"U\u0300",\u00DC:"U\u0308",\u01D7:"U\u0308\u0301",\u01DB:"U\u0308\u0300",\u01D5:"U\u0308\u0304",\u01D9:"U\u0308\u030C",\u0168:"U\u0303",\u1E78:"U\u0303\u0301",\u016A:"U\u0304",\u1E7A:"U\u0304\u0308",\u016C:"U\u0306",\u01D3:"U\u030C",\u00DB:"U\u0302",\u016E:"U\u030A",\u0170:"U\u030B",\u1E7C:"V\u0303",\u1E82:"W\u0301",\u1E80:"W\u0300",\u1E84:"W\u0308",\u0174:"W\u0302",\u1E86:"W\u0307",\u1E8C:"X\u0308",\u1E8A:"X\u0307",\u00DD:"Y\u0301",\u1EF2:"Y\u0300",\u0178:"Y\u0308",\u1EF8:"Y\u0303",\u0232:"Y\u0304",\u0176:"Y\u0302",\u1E8E:"Y\u0307",\u0179:"Z\u0301",\u017D:"Z\u030C",\u1E90:"Z\u0302",\u017B:"Z\u0307",\u03AC:"\u03B1\u0301",\u1F70:"\u03B1\u0300",\u1FB1:"\u03B1\u0304",\u1FB0:"\u03B1\u0306",\u03AD:"\u03B5\u0301",\u1F72:"\u03B5\u0300",\u03AE:"\u03B7\u0301",\u1F74:"\u03B7\u0300",\u03AF:"\u03B9\u0301",\u1F76:"\u03B9\u0300",\u03CA:"\u03B9\u0308",\u0390:"\u03B9\u0308\u0301",\u1FD2:"\u03B9\u0308\u0300",\u1FD1:"\u03B9\u0304",\u1FD0:"\u03B9\u0306",\u03CC:"\u03BF\u0301",\u1F78:"\u03BF\u0300",\u03CD:"\u03C5\u0301",\u1F7A:"\u03C5\u0300",\u03CB:"\u03C5\u0308",\u03B0:"\u03C5\u0308\u0301",\u1FE2:"\u03C5\u0308\u0300",\u1FE1:"\u03C5\u0304",\u1FE0:"\u03C5\u0306",\u03CE:"\u03C9\u0301",\u1F7C:"\u03C9\u0300",\u038E:"\u03A5\u0301",\u1FEA:"\u03A5\u0300",\u03AB:"\u03A5\u0308",\u1FE9:"\u03A5\u0304",\u1FE8:"\u03A5\u0306",\u038F:"\u03A9\u0301",\u1FFA:"\u03A9\u0300"},z4=class e{static{o(this,"Parser")}constructor(t,r){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new v7(t,r,this.mode),this.settings=r,this.leftrightDepth=0}expect(t,r){if(r===void 0&&(r=!0),this.fetch().text!==t)throw new ue("Expected '"+t+"', got '"+this.fetch().text+"'",this.fetch());r&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(t){this.mode=t,this.gullet.switchMode(t)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var t=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),t}finally{this.gullet.endGroups()}}subparse(t){var r=this.nextToken;this.consume(),this.gullet.pushToken(new Do("}")),this.gullet.pushTokens(t);var n=this.parseExpression(!1);return this.expect("}"),this.nextToken=r,n}parseExpression(t,r){for(var n=[];;){this.mode==="math"&&this.consumeSpaces();var i=this.fetch();if(e.endOfExpression.indexOf(i.text)!==-1||r&&i.text===r||t&&dh[i.text]&&dh[i.text].infix)break;var a=this.parseAtom(r);if(a){if(a.type==="internal")continue}else break;n.push(a)}return this.mode==="text"&&this.formLigatures(n),this.handleInfixNodes(n)}handleInfixNodes(t){for(var r=-1,n,i=0;i=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+r[0]+'" used in math mode',t);var l=An[this.mode][r].group,u=Ks.range(t),h;if(Pbt.hasOwnProperty(l)){var f=l;h={type:"atom",mode:this.mode,family:f,loc:u,text:r}}else h={type:l,mode:this.mode,loc:u,text:r};s=h}else if(r.charCodeAt(0)>=128)this.settings.strict&&(AG(r.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+r[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+r[0]+'"'+(" ("+r.charCodeAt(0)+")"),t)),s={type:"textord",mode:"text",loc:Ks.range(t),text:r};else return null;if(this.consume(),a)for(var d=0;d{t.tagName==="A"&&t.hasAttribute("target")&&t.setAttribute(e,t.getAttribute("target")??"")}),_p.default.addHook("afterSanitizeAttributes",t=>{t.tagName==="A"&&t.hasAttribute(e)&&(t.setAttribute("target",t.getAttribute(e)??""),t.removeAttribute(e),t.getAttribute("target")==="_blank"&&t.setAttribute("rel","noopener"))})}var _p,rd,K4t,Q4t,CV,kV,Zr,J4t,t3t,e3t,r3t,SV,n3t,Tr,i3t,a3t,yh,B7,s3t,o3t,EV,F7,Pi,nd,vh,Yt,hr=R(()=>{"use strict";_p=Qi(XS(),1),rd=//gi,K4t=o(e=>e?SV(e).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),Q4t=(()=>{let e=!1;return()=>{e||(Z4t(),e=!0)}})();o(Z4t,"setupDompurifyHooks");CV=o(e=>(Q4t(),_p.default.sanitize(e)),"removeScript"),kV=o((e,t)=>{if(t.flowchart?.htmlLabels!==!1){let r=t.securityLevel;r==="antiscript"||r==="strict"?e=CV(e):r!=="loose"&&(e=SV(e),e=e.replace(//g,">"),e=e.replace(/=/g,"="),e=r3t(e))}return e},"sanitizeMore"),Zr=o((e,t)=>e&&(t.dompurifyConfig?e=_p.default.sanitize(kV(e,t),t.dompurifyConfig).toString():e=_p.default.sanitize(kV(e,t),{FORBID_TAGS:["style"]}).toString(),e),"sanitizeText"),J4t=o((e,t)=>typeof e=="string"?Zr(e,t):e.flat().map(r=>Zr(r,t)),"sanitizeTextOrArray"),t3t=o(e=>rd.test(e),"hasBreaks"),e3t=o(e=>e.split(rd),"splitBreaks"),r3t=o(e=>e.replace(/#br#/g,"
"),"placeholderToBreak"),SV=o(e=>e.replace(rd,"#br#"),"breakToPlaceholder"),n3t=o(e=>{let t="";return e&&(t=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,t=t.replaceAll(/\(/g,"\\("),t=t.replaceAll(/\)/g,"\\)")),t},"getUrl"),Tr=o(e=>!(e===!1||["false","null","0"].includes(String(e).trim().toLowerCase())),"evaluate"),i3t=o(function(...e){let t=e.filter(r=>!isNaN(r));return Math.max(...t)},"getMax"),a3t=o(function(...e){let t=e.filter(r=>!isNaN(r));return Math.min(...t)},"getMin"),yh=o(function(e){let t=e.split(/(,)/),r=[];for(let n=0;n0&&n+1Math.max(0,e.split(t).length-1),"countOccurrence"),s3t=o((e,t)=>{let r=B7(e,"~"),n=B7(t,"~");return r===1&&n===1},"shouldCombineSets"),o3t=o(e=>{let t=B7(e,"~"),r=!1;if(t<=1)return e;t%2!==0&&e.startsWith("~")&&(e=e.substring(1),r=!0);let n=[...e],i=n.indexOf("~"),a=n.lastIndexOf("~");for(;i!==-1&&a!==-1&&i!==a;)n[i]="<",n[a]=">",i=n.indexOf("~"),a=n.lastIndexOf("~");return r&&n.unshift("~"),n.join("")},"processSet"),EV=o(()=>window.MathMLElement!==void 0,"isMathMLSupported"),F7=/\$\$(.*)\$\$/g,Pi=o(e=>(e.match(F7)?.length??0)>0,"hasKatex"),nd=o(async(e,t)=>{e=await vh(e,t);let r=document.createElement("div");r.innerHTML=e,r.id="katex-temp",r.style.visibility="hidden",r.style.position="absolute",r.style.top="0",document.querySelector("body")?.insertAdjacentElement("beforeend",r);let i={width:r.clientWidth,height:r.clientHeight};return r.remove(),i},"calculateMathMLDimensions"),vh=o(async(e,t)=>{if(!Pi(e))return e;if(!(EV()||t.legacyMathML||t.forceLegacyMathML))return e.replace(F7,"MathML is unsupported in this environment.");let{default:r}=await Promise.resolve().then(()=>(TV(),wV)),n=t.forceLegacyMathML||!EV()&&t.legacyMathML?"htmlAndMathml":"mathml";return e.split(rd).map(i=>Pi(i)?`
${i}
`:`
${i}
`).join("").replace(F7,(i,a)=>r.renderToString(a,{throwOnError:!0,displayMode:!0,output:n}).replace(/\n/g," ").replace(//g,""))},"renderKatex"),Yt={getRows:K4t,sanitizeText:Zr,sanitizeTextOrArray:J4t,hasBreaks:t3t,splitBreaks:e3t,lineBreakRegex:rd,removeScript:CV,getUrl:n3t,evaluate:Tr,getMax:i3t,getMin:a3t}});var l3t,c3t,Pr,No,Jn=R(()=>{"use strict";ce();l3t=o(function(e,t){for(let r of t)e.attr(r[0],r[1])},"d3Attrs"),c3t=o(function(e,t,r){let n=new Map;return r?(n.set("width","100%"),n.set("style",`max-width: ${t}px;`)):(n.set("height",e),n.set("width",t)),n},"calculateSvgSizeAttrs"),Pr=o(function(e,t,r,n){let i=c3t(t,r,n);l3t(e,i)},"configureSvgSize"),No=o(function(e,t,r,n){let i=t.node().getBBox(),a=i.width,s=i.height;V.info(`SVG bounds: ${a}x${s}`,i);let l=0,u=0;V.info(`Graph bounds: ${l}x${u}`,e),l=a+r*2,u=s+r*2,V.info(`Calculated bounds: ${l}x${u}`),Pr(t,u,l,n);let h=`${i.x-r} ${i.y-r} ${i.width+2*r} ${i.height+2*r}`;t.attr("viewBox",h)},"setupGraphViewbox")});var Y4,u3t,AV,_V,z7=R(()=>{"use strict";ce();Y4={},u3t=o((e,t,r)=>{let n="";return e in Y4&&Y4[e]?n=Y4[e](r):V.warn(`No theme found for ${e}`),` & { + font-family: ${r.fontFamily}; + font-size: ${r.fontSize}; + fill: ${r.textColor} } /* Classes common for multiple diagrams */ & .error-icon { - fill: ${f.errorBkgColor}; + fill: ${r.errorBkgColor}; } & .error-text { - fill: ${f.errorTextColor}; - stroke: ${f.errorTextColor}; + fill: ${r.errorTextColor}; + stroke: ${r.errorTextColor}; } & .edge-thickness-normal { - stroke-width: 2px; + stroke-width: 1px; } & .edge-thickness-thick { stroke-width: 3.5px @@ -45,7 +295,10 @@ & .edge-pattern-solid { stroke-dasharray: 0; } - + & .edge-thickness-invisible { + stroke-width: 0; + fill: none; + } & .edge-pattern-dashed{ stroke-dasharray: 3; } @@ -54,77 +307,171 @@ } & .marker { - fill: ${f.lineColor}; - stroke: ${f.lineColor}; + fill: ${r.lineColor}; + stroke: ${r.lineColor}; } & .marker.cross { - stroke: ${f.lineColor}; + stroke: ${r.lineColor}; } & svg { - font-family: ${f.fontFamily}; - font-size: ${f.fontSize}; - } - - ${p} - - ${a} -`},s_e=(i,a)=>{uW[i]=a},a_e=i_e;let z1t="",lW="",q1t="";const H1t=i=>sg(i,Oe()),cg=function(){z1t="",q1t="",lW=""},ug=function(i){z1t=H1t(i).replace(/^\s+/g,"")},op=function(){return z1t||lW},cp=function(i){q1t=H1t(i).replace(/\n\s+/g,` -`)},up=function(){return q1t},Kb=function(i){lW=H1t(i)},O2=function(){return lW},uIt=Object.freeze(Object.defineProperty({__proto__:null,clear:cg,default:{getAccTitle:op,setAccTitle:ug,getDiagramTitle:O2,setDiagramTitle:Kb,getAccDescription:up,setAccDescription:cp,clear:cg},getAccDescription:up,getAccTitle:op,getDiagramTitle:O2,setAccDescription:cp,setAccTitle:ug,setDiagramTitle:Kb},Symbol.toStringTag,{value:"Module"}));let J9={};const V1t=function(i,a,f,p){zt.debug("parseDirective is being called",a,f,p);try{if(a!==void 0)switch(a=a.trim(),f){case"open_directive":J9={};break;case"type_directive":if(!J9)throw new Error("currentDirective is undefined");J9.type=a.toLowerCase();break;case"arg_directive":if(!J9)throw new Error("currentDirective is undefined");J9.args=JSON.parse(a);break;case"close_directive":o_e(i,J9,p),J9=void 0;break}}catch(v){zt.error(`Error while rendering sequenceDiagram directive: ${a} jison context: ${f}`),zt.error(v.message)}},o_e=function(i,a,f){switch(zt.info(`Directive type=${a.type} with args:`,a.args),a.type){case"init":case"initialize":{["config"].forEach(p=>{a.args[p]!==void 0&&(f==="flowchart-v2"&&(f="flowchart"),a.args[f]=a.args[p],delete a.args[p])}),zt.info("sanitize in handleDirective",a.args),jA(a.args),zt.info("sanitize in handleDirective (done)",a.args),sIt(a.args);break}case"wrap":case"nowrap":i&&i.setWrap&&i.setWrap(a.type==="wrap");break;case"themeCss":zt.warn("themeCss encountered");break;default:zt.warn(`Unhandled directive: source: '%%{${a.type}: ${JSON.stringify(a.args?a.args:{})}}%%`,a);break}},c_e=zt,u_e=Aft,zN=Oe,l_e=i=>sg(i,zN()),lIt=Z9,h_e=()=>uIt,f_e=(i,a,f,p)=>V1t(i,a,f,p),hW={},fW=(i,a,f)=>{if(hW[i])throw new Error(`Diagram ${i} already registered.`);hW[i]=a,f&&dIt(i,f),s_e(i,a.styles),a.injectUtils&&a.injectUtils(c_e,u_e,zN,l_e,lIt,h_e(),f_e)},G1t=i=>{if(i in hW)return hW[i];throw new Error(`Diagram ${i} not found.`)};class hIt extends Error{constructor(a){super(a),this.name="UnknownDiagramError"}}const d_e=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,g_e=/\s*%%.*\n/gm,PA={},dW=function(i,a){i=i.replace(tIt,"").replace(d_e,"").replace(g_e,` -`);for(const[f,{detector:p}]of Object.entries(PA))if(p(i,a))return f;throw new hIt(`No diagram type detected matching given configuration for text: ${i}`)},fIt=(...i)=>{for(const{id:a,detector:f,loader:p}of i)dIt(a,f,p)},p_e=async()=>{zt.debug("Loading registered diagrams");const a=(await Promise.allSettled(Object.entries(PA).map(async([f,{detector:p,loader:v}])=>{if(v)try{G1t(f)}catch{try{const{diagram:b,id:E}=await v();fW(E,b,p)}catch(b){throw zt.error(`Failed to load external diagram with key ${f}. Removing from detectors.`),delete PA[f],b}}}))).filter(f=>f.status==="rejected");if(a.length>0){zt.error(`Failed to load ${a.length} external diagrams`);for(const f of a)zt.error(f);throw new Error(`Failed to load ${a.length} external diagrams`)}},dIt=(i,a,f)=>{PA[i]?zt.error(`Detector with key ${i} already exists`):PA[i]={detector:a,loader:f},zt.debug(`Detector with key ${i} added${f?" with loader":""}`)},b_e=i=>PA[i].loader;var v_e=typeof global=="object"&&global&&global.Object===Object&&global;const gIt=v_e;var w_e=typeof self=="object"&&self&&self.Object===Object&&self,m_e=gIt||w_e||Function("return this")();const Xw=m_e;var y_e=Xw.Symbol;const Yb=y_e;var pIt=Object.prototype,x_e=pIt.hasOwnProperty,k_e=pIt.toString,qN=Yb?Yb.toStringTag:void 0;function E_e(i){var a=x_e.call(i,qN),f=i[qN];try{i[qN]=void 0;var p=!0}catch{}var v=k_e.call(i);return p&&(a?i[qN]=f:delete i[qN]),v}var T_e=Object.prototype,__e=T_e.toString;function C_e(i){return __e.call(i)}var S_e="[object Null]",A_e="[object Undefined]",bIt=Yb?Yb.toStringTag:void 0;function tE(i){return i==null?i===void 0?A_e:S_e:bIt&&bIt in Object(i)?E_e(i):C_e(i)}function N2(i){var a=typeof i;return i!=null&&(a=="object"||a=="function")}var L_e="[object AsyncFunction]",M_e="[object Function]",D_e="[object GeneratorFunction]",I_e="[object Proxy]";function FA(i){if(!N2(i))return!1;var a=tE(i);return a==M_e||a==D_e||a==L_e||a==I_e}var O_e=Xw["__core-js_shared__"];const U1t=O_e;var vIt=function(){var i=/[^.]+$/.exec(U1t&&U1t.keys&&U1t.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}();function N_e(i){return!!vIt&&vIt in i}var P_e=Function.prototype,F_e=P_e.toString;function eE(i){if(i!=null){try{return F_e.call(i)}catch{}try{return i+""}catch{}}return""}var B_e=/[\\^$.*+?()[\]{}|]/g,R_e=/^\[object .+?Constructor\]$/,j_e=Function.prototype,$_e=Object.prototype,z_e=j_e.toString,q_e=$_e.hasOwnProperty,H_e=RegExp("^"+z_e.call(q_e).replace(B_e,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function V_e(i){if(!N2(i)||N_e(i))return!1;var a=FA(i)?H_e:R_e;return a.test(eE(i))}function G_e(i,a){return i==null?void 0:i[a]}function nE(i,a){var f=G_e(i,a);return V_e(f)?f:void 0}var U_e=nE(Object,"create");const HN=U_e;function W_e(){this.__data__=HN?HN(null):{},this.size=0}function K_e(i){var a=this.has(i)&&delete this.__data__[i];return this.size-=a?1:0,a}var Y_e="__lodash_hash_undefined__",X_e=Object.prototype,Q_e=X_e.hasOwnProperty;function Z_e(i){var a=this.__data__;if(HN){var f=a[i];return f===Y_e?void 0:f}return Q_e.call(a,i)?a[i]:void 0}var J_e=Object.prototype,tCe=J_e.hasOwnProperty;function eCe(i){var a=this.__data__;return HN?a[i]!==void 0:tCe.call(a,i)}var nCe="__lodash_hash_undefined__";function rCe(i,a){var f=this.__data__;return this.size+=this.has(i)?0:1,f[i]=HN&&a===void 0?nCe:a,this}function rE(i){var a=-1,f=i==null?0:i.length;for(this.clear();++a-1}function lCe(i,a){var f=this.__data__,p=gW(f,i);return p<0?(++this.size,f.push([i,a])):f[p][1]=a,this}function y5(i){var a=-1,f=i==null?0:i.length;for(this.clear();++am.args);jA(v),p=rd(p,[...v])}else p=f.args;if(p){let v=dW(i,a);["config"].forEach(m=>{p[m]!==void 0&&(v==="flowchart-v2"&&(v="flowchart"),p[v]=p[m],delete p[m])})}return p},mIt=function(i,a=null){try{const f=new RegExp(`[%]{2}(?![{]${yCe.source})(?=[}][%]{2}).* -`,"ig");i=i.trim().replace(f,"").replace(/'/gm,'"'),zt.debug(`Detecting diagram directive${a!==null?" type:"+a:""} based on the text:${i}`);let p;const v=[];for(;(p=W1t.exec(i))!==null;)if(p.index===W1t.lastIndex&&W1t.lastIndex++,p&&!a||a&&p[1]&&p[1].match(a)||a&&p[2]&&p[2].match(a)){const m=p[1]?p[1]:p[2],b=p[3]?p[3].trim():p[4]?JSON.parse(p[4].trim()):null;v.push({type:m,args:b})}return v.length===0&&v.push({type:i,args:null}),v.length===1?v[0]:v}catch(f){return zt.error(`ERROR: ${f.message} - Unable to parse directive - ${a!==null?" type:"+a:""} based on the text:${i}`),{type:null,args:null}}},kCe=function(i,a){for(const[f,p]of a.entries())if(p.match(i))return f;return-1};function Xb(i,a){if(!i)return a;const f=`curve${i.charAt(0).toUpperCase()+i.slice(1)}`;return mCe[f]||a}function ECe(i,a){const f=i.trim();if(f)return a.securityLevel!=="loose"?Xx(f):f}const TCe=(i,...a)=>{const f=i.split("."),p=f.length-1,v=f[p];let m=window;for(let b=0;b{f+=bW(m,a),a=m});let p=f/2,v;return a=void 0,i.forEach(m=>{if(a&&!v){const b=bW(m,a);if(b=1&&(v={x:m.x,y:m.y}),E>0&&E<1&&(v={x:(1-E)*a.x+E*m.x,y:(1-E)*a.y+E*m.y})}}a=m}),v}function CCe(i){return i.length===1?i[0]:_Ce(i)}const SCe=(i,a,f)=>{let p;zt.info(`our points ${JSON.stringify(a)}`),a[0]!==f&&(a=a.reverse());let m=25,b;p=void 0,a.forEach(P=>{if(p&&!b){const B=bW(P,p);if(B=1&&(b={x:P.x,y:P.y}),j>0&&j<1&&(b={x:(1-j)*p.x+j*P.x,y:(1-j)*p.y+j*P.y})}}p=P});const E=i?10:5,C=Math.atan2(a[0].y-b.y,a[0].x-b.x),D={x:0,y:0};return D.x=Math.sin(C)*E+(a[0].x+b.x)/2,D.y=-Math.cos(C)*E+(a[0].y+b.y)/2,D};function ACe(i,a,f){let p=JSON.parse(JSON.stringify(f)),v;zt.info("our points",p),a!=="start_left"&&a!=="start_right"&&(p=p.reverse()),p.forEach(B=>{v=B});let b=25+i,E;v=void 0,p.forEach(B=>{if(v&&!E){const j=bW(B,v);if(j=1&&(E={x:B.x,y:B.y}),R>0&&R<1&&(E={x:(1-R)*v.x+R*B.x,y:(1-R)*v.y+R*B.y})}}v=B});const C=10+i*.5,D=Math.atan2(p[0].y-E.y,p[0].x-E.x),P={x:0,y:0};return P.x=Math.sin(D)*C+(p[0].x+E.x)/2,P.y=-Math.cos(D)*C+(p[0].y+E.y)/2,a==="start_left"&&(P.x=Math.sin(D+Math.PI)*C+(p[0].x+E.x)/2,P.y=-Math.cos(D+Math.PI)*C+(p[0].y+E.y)/2),a==="end_right"&&(P.x=Math.sin(D-Math.PI)*C+(p[0].x+E.x)/2-5,P.y=-Math.cos(D-Math.PI)*C+(p[0].y+E.y)/2-5),a==="end_left"&&(P.x=Math.sin(D)*C+(p[0].x+E.x)/2-5,P.y=-Math.cos(D)*C+(p[0].y+E.y)/2-5),P}function Qw(i){let a="",f="";for(const p of i)p!==void 0&&(p.startsWith("color:")||p.startsWith("text-align:")?f=f+p+";":a=a+p+";");return{style:a,labelStyle:f}}let yIt=0;const xIt=()=>(yIt++,"id-"+Math.random().toString(36).substr(2,12)+"-"+yIt);function LCe(i){let a="";const f="0123456789abcdef",p=f.length;for(let v=0;vLCe(i.length),MCe=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}},DCe=function(i,a){const f=a.text.replace(yi.lineBreakRegex," "),[,p]=$A(a.fontSize),v=i.append("text");v.attr("x",a.x),v.attr("y",a.y),v.style("text-anchor",a.anchor),v.style("font-family",a.fontFamily),v.style("font-size",p),v.style("font-weight",a.fontWeight),v.attr("fill",a.fill),a.class!==void 0&&v.attr("class",a.class);const m=v.append("tspan");return m.attr("x",a.x+a.textMargin*2),m.attr("fill",a.fill),m.text(f),v},EIt=RA((i,a,f)=>{if(!i||(f=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"
"},f),yi.lineBreakRegex.test(i)))return i;const p=i.split(" "),v=[];let m="";return p.forEach((b,E)=>{const C=u3(`${b} `,f),D=u3(m,f);if(C>a){const{hyphenatedStrings:j,remainingWord:R}=ICe(b,a,"-",f);v.push(m,...j),m=R}else D+C>=a?(v.push(m),m=b):m=[m,b].filter(Boolean).join(" ");E+1===p.length&&v.push(m)}),v.filter(b=>b!=="").join(f.joinWith)},(i,a,f)=>`${i}${a}${f.fontSize}${f.fontWeight}${f.fontFamily}${f.joinWith}`),ICe=RA((i,a,f="-",p)=>{p=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},p);const v=[...i],m=[];let b="";return v.forEach((E,C)=>{const D=`${b}${E}`;if(u3(D,p)>=a){const B=C+1,j=v.length===B,R=`${D}${f}`;m.push(j?D:R),b=""}else b=D}),{hyphenatedStrings:m,remainingWord:b}},(i,a,f="-",p)=>`${i}${a}${f}${p.fontSize}${p.fontWeight}${p.fontFamily}`);function K1t(i,a){return a=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:15},a),Y1t(i,a).height}function u3(i,a){return a=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},a),Y1t(i,a).width}const Y1t=RA((i,a)=>{a=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},a);const{fontSize:f,fontFamily:p,fontWeight:v}=a;if(!i)return{width:0,height:0};const[,m]=$A(f),b=["sans-serif",p],E=i.split(yi.lineBreakRegex),C=[],D=Mr("body");if(!D.remove)return{width:0,height:0,lineHeight:0};const P=D.append("svg");for(const j of b){let R=0;const H={width:0,height:0,lineHeight:0};for(const Y of E){const it=MCe();it.text=Y||wIt;const nt=DCe(P,it).style("font-size",m).style("font-weight",v).style("font-family",j),st=(nt._groups||nt)[0][0].getBBox();if(st.width===0&&st.height===0)throw new Error("svg element not in render tree");H.width=Math.round(Math.max(H.width,st.width)),R=Math.round(st.height),H.height+=R,H.lineHeight=Math.round(Math.max(H.lineHeight,R))}C.push(H)}P.remove();const B=isNaN(C[1].height)||isNaN(C[1].width)||isNaN(C[1].lineHeight)||C[0].height>C[1].height&&C[0].width>C[1].width&&C[0].lineHeight>C[1].lineHeight?0:1;return C[B]},(i,a)=>`${i}${a.fontSize}${a.fontWeight}${a.fontFamily}`),OCe=class{constructor(a,f){this.deterministic=a,this.seed=f,this.count=f?f.length:0}next(){return this.deterministic?this.count++:Date.now()}};let vW;const NCe=function(i){return vW=vW||document.createElement("div"),i=escape(i).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),vW.innerHTML=i,unescape(vW.textContent)},jA=i=>{if(zt.debug("directiveSanitizer called with",i),typeof i=="object"&&(i.length?i.forEach(a=>jA(a)):Object.keys(i).forEach(a=>{zt.debug("Checking key",a),a.startsWith("__")&&(zt.debug("sanitize deleting __ option",a),delete i[a]),a.includes("proto")&&(zt.debug("sanitize deleting proto option",a),delete i[a]),a.includes("constr")&&(zt.debug("sanitize deleting constr option",a),delete i[a]),a.includes("themeCSS")&&(zt.debug("sanitizing themeCss option"),i[a]=wW(i[a])),a.includes("fontFamily")&&(zt.debug("sanitizing fontFamily option"),i[a]=wW(i[a])),a.includes("altFontFamily")&&(zt.debug("sanitizing altFontFamily option"),i[a]=wW(i[a])),oEe.includes(a)?typeof i[a]=="object"&&(zt.debug("sanitize deleting object",a),jA(i[a])):(zt.debug("sanitize deleting option",a),delete i[a])})),i.themeVariables){const a=Object.keys(i.themeVariables);for(const f of a){const p=i.themeVariables[f];p&&p.match&&!p.match(/^[\d "#%(),.;A-Za-z]+$/)&&(i.themeVariables[f]="")}}zt.debug("After sanitization",i)},wW=i=>{let a=0,f=0;for(const p of i){if(a{if(!p)return;const v=i.node().getBBox();i.append("text").text(p).attr("x",v.x+v.width/2).attr("y",-f).attr("class",a)},$A=i=>{if(typeof i=="number")return[i,i+"px"];const a=parseInt(i,10);return Number.isNaN(a)?[void 0,void 0]:i===String(a)?[a,i+"px"]:[a,i]},lo={assignWithDepth:rd,wrapLabel:EIt,calculateTextHeight:K1t,calculateTextWidth:u3,calculateTextDimensions:Y1t,detectInit:xCe,detectDirective:mIt,isSubstringInArray:kCe,interpolateToCurve:Xb,calcLabelPosition:CCe,calcCardinalityPosition:SCe,calcTerminalLabelPosition:ACe,formatUrl:ECe,getStylesFromArray:Qw,generateId:xIt,random:kIt,runFunc:TCe,entityDecode:NCe,initIdGenerator:OCe,directiveSanitizer:jA,sanitizeCss:wW,insertTitle:FCe,parseFontSize:$A};var _It="comm",CIt="rule",SIt="decl",BCe="@import",RCe="@keyframes",jCe=Math.abs,X1t=String.fromCharCode;function AIt(i){return i.trim()}function Q1t(i,a,f){return i.replace(a,f)}function $Ce(i,a){return i.indexOf(a)}function GN(i,a){return i.charCodeAt(a)|0}function UN(i,a,f){return i.slice(a,f)}function nk(i){return i.length}function LIt(i){return i.length}function mW(i,a){return a.push(i),i}var yW=1,zA=1,MIt=0,Qb=0,Ff=0,qA="";function Z1t(i,a,f,p,v,m,b){return{value:i,root:a,parent:f,type:p,props:v,children:m,line:yW,column:zA,length:b,return:""}}function zCe(){return Ff}function qCe(){return Ff=Qb>0?GN(qA,--Qb):0,zA--,Ff===10&&(zA=1,yW--),Ff}function Zw(){return Ff=Qb2||J1t(Ff)>3?"":" "}function UCe(i,a){for(;--a&&Zw()&&!(Ff<48||Ff>102||Ff>57&&Ff<65||Ff>70&&Ff<97););return kW(i,xW()+(a<6&&iE()==32&&Zw()==32))}function edt(i){for(;Zw();)switch(Ff){case i:return Qb;case 34:case 39:i!==34&&i!==39&&edt(Ff);break;case 40:i===41&&edt(i);break;case 92:Zw();break}return Qb}function WCe(i,a){for(;Zw()&&i+Ff!==47+10;)if(i+Ff===42+42&&iE()===47)break;return"/*"+kW(a,Qb-1)+"*"+X1t(i===47?i:Zw())}function KCe(i){for(;!J1t(iE());)Zw();return kW(i,Qb)}function YCe(i){return VCe(EW("",null,null,null,[""],i=HCe(i),0,[0],i))}function EW(i,a,f,p,v,m,b,E,C){for(var D=0,P=0,B=b,j=0,R=0,H=0,Y=1,it=1,nt=1,st=0,pt="",Tt=v,kt=m,yt=p,ht=pt;it;)switch(H=st,st=Zw()){case 40:if(H!=108&&GN(ht,B-1)==58){$Ce(ht+=Q1t(tdt(st),"&","&\f"),"&\f")!=-1&&(nt=-1);break}case 34:case 39:case 91:ht+=tdt(st);break;case 9:case 10:case 13:case 32:ht+=GCe(H);break;case 92:ht+=UCe(xW()-1,7);continue;case 47:switch(iE()){case 42:case 47:mW(XCe(WCe(Zw(),xW()),a,f),C);break;default:ht+="/"}break;case 123*Y:E[D++]=nk(ht)*nt;case 125*Y:case 59:case 0:switch(st){case 0:case 125:it=0;case 59+P:R>0&&nk(ht)-B&&mW(R>32?IIt(ht+";",p,f,B-1):IIt(Q1t(ht," ","")+";",p,f,B-2),C);break;case 59:ht+=";";default:if(mW(yt=DIt(ht,a,f,D,P,v,E,pt,Tt=[],kt=[],B),m),st===123)if(P===0)EW(ht,a,yt,yt,Tt,m,B,E,kt);else switch(j===99&&GN(ht,3)===110?100:j){case 100:case 109:case 115:EW(i,yt,yt,p&&mW(DIt(i,yt,yt,0,0,v,E,pt,v,Tt=[],B),kt),v,kt,B,E,p?Tt:kt);break;default:EW(ht,yt,yt,yt,[""],kt,0,E,kt)}}D=P=R=0,Y=nt=1,pt=ht="",B=b;break;case 58:B=1+nk(ht),R=H;default:if(Y<1){if(st==123)--Y;else if(st==125&&Y++==0&&qCe()==125)continue}switch(ht+=X1t(st),st*Y){case 38:nt=P>0?1:(ht+="\f",-1);break;case 44:E[D++]=(nk(ht)-1)*nt,nt=1;break;case 64:iE()===45&&(ht+=tdt(Zw())),j=iE(),P=B=nk(pt=ht+=KCe(xW())),st++;break;case 45:H===45&&nk(ht)==2&&(Y=0)}}return m}function DIt(i,a,f,p,v,m,b,E,C,D,P){for(var B=v-1,j=v===0?m:[""],R=LIt(j),H=0,Y=0,it=0;H0?j[nt]+" "+st:Q1t(st,/&\f/g,j[nt])))&&(C[it++]=pt);return Z1t(i,a,f,v===0?CIt:E,C,D,P)}function XCe(i,a,f){return Z1t(i,a,f,_It,X1t(zCe()),UN(i,2,-2),0)}function IIt(i,a,f,p){return Z1t(i,a,f,SIt,UN(i,0,p),UN(i,p+1,-1),p)}function ndt(i,a){for(var f="",p=LIt(i),v=0;vi.match(/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/)!==null,loader:async()=>{const{diagram:i}=await Promise.resolve().then(()=>KLe);return{id:NIt,diagram:i}}},PIt="flowchart",JCe={id:PIt,detector:(i,a)=>{var f,p;return((f=a==null?void 0:a.flowchart)==null?void 0:f.defaultRenderer)==="dagre-wrapper"||((p=a==null?void 0:a.flowchart)==null?void 0:p.defaultRenderer)==="elk"?!1:i.match(/^\s*graph/)!==null},loader:async()=>{const{diagram:i}=await Promise.resolve().then(()=>Fje);return{id:PIt,diagram:i}}},FIt="flowchart-v2",tSe={id:FIt,detector:(i,a)=>{var f,p,v;return((f=a==null?void 0:a.flowchart)==null?void 0:f.defaultRenderer)==="dagre-d3"||((p=a==null?void 0:a.flowchart)==null?void 0:p.defaultRenderer)==="elk"?!1:i.match(/^\s*graph/)!==null&&((v=a==null?void 0:a.flowchart)==null?void 0:v.defaultRenderer)==="dagre-wrapper"?!0:i.match(/^\s*flowchart/)!==null},loader:async()=>{const{diagram:i}=await Promise.resolve().then(()=>Bje);return{id:FIt,diagram:i}}},BIt="er",eSe={id:BIt,detector:i=>i.match(/^\s*erDiagram/)!==null,loader:async()=>{const{diagram:i}=await Promise.resolve().then(()=>l$e);return{id:BIt,diagram:i}}},RIt="gitGraph",nSe={id:RIt,detector:i=>i.match(/^\s*gitGraph/)!==null,loader:async()=>{const{diagram:i}=await Promise.resolve().then(()=>B$e);return{id:RIt,diagram:i}}},jIt="gantt",rSe={id:jIt,detector:i=>i.match(/^\s*gantt/)!==null,loader:async()=>{const{diagram:i}=await Promise.resolve().then(()=>_ze);return{id:jIt,diagram:i}}},$It="info",iSe={id:$It,detector:i=>i.match(/^\s*info/)!==null,loader:async()=>{const{diagram:i}=await Promise.resolve().then(()=>Sze);return{id:$It,diagram:i}}},zIt="pie",sSe={id:zIt,detector:i=>i.match(/^\s*pie/)!==null,loader:async()=>{const{diagram:i}=await Promise.resolve().then(()=>Dze);return{id:zIt,diagram:i}}},qIt="quadrantChart",aSe={id:qIt,detector:i=>i.match(/^\s*quadrantChart/)!==null,loader:async()=>{const{diagram:i}=await Promise.resolve().then(()=>Wze);return{id:qIt,diagram:i}}},HIt="requirement",oSe={id:HIt,detector:i=>i.match(/^\s*requirement(Diagram)?/)!==null,loader:async()=>{const{diagram:i}=await Promise.resolve().then(()=>rqe);return{id:HIt,diagram:i}}},VIt="sequence",cSe={id:VIt,detector:i=>i.match(/^\s*sequenceDiagram/)!==null,loader:async()=>{const{diagram:i}=await Promise.resolve().then(()=>aHe);return{id:VIt,diagram:i}}},GIt="class",uSe={id:GIt,detector:(i,a)=>{var f;return((f=a==null?void 0:a.class)==null?void 0:f.defaultRenderer)==="dagre-wrapper"?!1:i.match(/^\s*classDiagram/)!==null},loader:async()=>{const{diagram:i}=await Promise.resolve().then(()=>AHe);return{id:GIt,diagram:i}}},UIt="classDiagram",lSe={id:UIt,detector:(i,a)=>{var f;return i.match(/^\s*classDiagram/)!==null&&((f=a==null?void 0:a.class)==null?void 0:f.defaultRenderer)==="dagre-wrapper"?!0:i.match(/^\s*classDiagram-v2/)!==null},loader:async()=>{const{diagram:i}=await Promise.resolve().then(()=>NHe);return{id:UIt,diagram:i}}},WIt="state",hSe={id:WIt,detector:(i,a)=>{var f;return((f=a==null?void 0:a.state)==null?void 0:f.defaultRenderer)==="dagre-wrapper"?!1:i.match(/^\s*stateDiagram/)!==null},loader:async()=>{const{diagram:i}=await Promise.resolve().then(()=>kVe);return{id:WIt,diagram:i}}},KIt="stateDiagram",fSe={id:KIt,detector:(i,a)=>{var f,p;return!!(i.match(/^\s*stateDiagram-v2/)!==null||i.match(/^\s*stateDiagram/)&&((f=a==null?void 0:a.state)==null?void 0:f.defaultRenderer)==="dagre-wrapper"||i.match(/^\s*stateDiagram/)&&((p=a==null?void 0:a.state)==null?void 0:p.defaultRenderer)==="dagre-wrapper")},loader:async()=>{const{diagram:i}=await Promise.resolve().then(()=>zVe);return{id:KIt,diagram:i}}},YIt="journey",dSe={id:YIt,detector:i=>i.match(/^\s*journey/)!==null,loader:async()=>{const{diagram:i}=await Promise.resolve().then(()=>oGe);return{id:YIt,diagram:i}}},gSe=()=>"",XIt={setConf:function(){},draw:(i,a,f)=>{try{zt.debug(`Renering svg for syntax error -`);const p=Mr("#"+a),v=p.append("g");v.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"),v.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"),v.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"),v.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"),v.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"),v.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"),v.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"),v.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text("mermaid version "+f),p.attr("height",100),p.attr("width",500),p.attr("viewBox","768 0 912 512")}catch(p){zt.error("Error while rendering info diagram"),zt.error(PCe(p))}}},pSe={db:{clear:()=>{}},styles:gSe,renderer:XIt,parser:{parser:{yy:{}},parse:()=>{}},init:()=>{}},QIt="flowchart-elk",bSe={id:QIt,detector:(i,a)=>{var f;return!!(i.match(/^\s*flowchart-elk/)||i.match(/^\s*flowchart|graph/)&&((f=a==null?void 0:a.flowchart)==null?void 0:f.defaultRenderer)==="elk")},loader:async()=>{const{diagram:i}=await Promise.resolve().then(()=>EGe);return{id:QIt,diagram:i}}},ZIt="timeline",vSe={id:ZIt,detector:i=>i.match(/^\s*timeline/)!==null,loader:async()=>{const{diagram:i}=await Promise.resolve().then(()=>qGe);return{id:ZIt,diagram:i}}},JIt="mindmap",wSe={id:JIt,detector:i=>i.match(/^\s*mindmap/)!==null,loader:async()=>{const{diagram:i}=await Promise.resolve().then(()=>yUe);return{id:JIt,diagram:i}}};let tOt=!1;const rdt=()=>{tOt||(tOt=!0,fW("error",pSe,i=>i.toLowerCase().trim()==="error"),fW("---",{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},i=>i.toLowerCase().trimStart().startsWith("---")),fIt(ZCe,lSe,uSe,eSe,rSe,iSe,sSe,oSe,cSe,bSe,tSe,JCe,wSe,vSe,nSe,fSe,hSe,dSe,aSe))},mSe=i=>i.trimStart().replace(/^\s*%%(?!{)[^\n]+\n?/gm,"");class eOt{constructor(a){var m,b;this.text=a,this.type="graph",this.text+=` -`;const f=Oe();try{this.type=dW(a,f)}catch(E){this.type="error",this.detectError=E}const p=G1t(this.type);zt.debug("Type "+this.type),this.db=p.db,(b=(m=this.db).clear)==null||b.call(m),this.renderer=p.renderer,this.parser=p.parser;const v=this.parser.parse.bind(this.parser);this.parser.parse=E=>v(mSe(QTe(E,this.db))),this.parser.parser.yy=this.db,p.init&&(p.init(f),zt.info("Initialized diagram "+this.type,f)),this.parse()}parse(){var a,f;if(this.detectError)throw this.detectError;(f=(a=this.db).clear)==null||f.call(a),this.parser.parse(this.text)}async render(a,f){await this.renderer.draw(this.text,a,f,this)}getParser(){return this.parser}getType(){return this.type}}const idt=async i=>{const a=dW(i,Oe());try{G1t(a)}catch{const p=b_e(a);if(!p)throw new hIt(`Diagram ${a} not found.`);const{id:v,diagram:m}=await p();fW(v,m)}return new eOt(i)};let sdt=[];const ySe=i=>{sdt.push(i)},xSe=()=>{sdt.forEach(i=>{i()}),sdt=[]};var kSe=Object.prototype;function TW(i){var a=i&&i.constructor,f=typeof a=="function"&&a.prototype||kSe;return i===f}function nOt(i,a){return function(f){return i(a(f))}}var ESe=nOt(Object.keys,Object);const TSe=ESe;var _Se=Object.prototype,CSe=_Se.hasOwnProperty;function rOt(i){if(!TW(i))return TSe(i);var a=[];for(var f in Object(i))CSe.call(i,f)&&f!="constructor"&&a.push(f);return a}var SSe=nE(Xw,"DataView");const adt=SSe;var ASe=nE(Xw,"Promise");const odt=ASe;var LSe=nE(Xw,"Set");const HA=LSe;var MSe=nE(Xw,"WeakMap");const cdt=MSe;var iOt="[object Map]",DSe="[object Object]",sOt="[object Promise]",aOt="[object Set]",oOt="[object WeakMap]",cOt="[object DataView]",ISe=eE(adt),OSe=eE(VN),NSe=eE(odt),PSe=eE(HA),FSe=eE(cdt),sE=tE;(adt&&sE(new adt(new ArrayBuffer(1)))!=cOt||VN&&sE(new VN)!=iOt||odt&&sE(odt.resolve())!=sOt||HA&&sE(new HA)!=aOt||cdt&&sE(new cdt)!=oOt)&&(sE=function(i){var a=tE(i),f=a==DSe?i.constructor:void 0,p=f?eE(f):"";if(p)switch(p){case ISe:return cOt;case OSe:return iOt;case NSe:return sOt;case PSe:return aOt;case FSe:return oOt}return a});const VA=sE;function l3(i){return i!=null&&typeof i=="object"}var BSe="[object Arguments]";function uOt(i){return l3(i)&&tE(i)==BSe}var lOt=Object.prototype,RSe=lOt.hasOwnProperty,jSe=lOt.propertyIsEnumerable,$Se=uOt(function(){return arguments}())?uOt:function(i){return l3(i)&&RSe.call(i,"callee")&&!jSe.call(i,"callee")};const GA=$Se;var zSe=Array.isArray;const Bf=zSe;var qSe=9007199254740991;function udt(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=qSe}function rk(i){return i!=null&&udt(i.length)&&!FA(i)}function HSe(){return!1}var hOt=typeof exports=="object"&&exports&&!exports.nodeType&&exports,fOt=hOt&&typeof module=="object"&&module&&!module.nodeType&&module,VSe=fOt&&fOt.exports===hOt,dOt=VSe?Xw.Buffer:void 0,GSe=dOt?dOt.isBuffer:void 0,USe=GSe||HSe;const UA=USe;var WSe="[object Arguments]",KSe="[object Array]",YSe="[object Boolean]",XSe="[object Date]",QSe="[object Error]",ZSe="[object Function]",JSe="[object Map]",tAe="[object Number]",eAe="[object Object]",nAe="[object RegExp]",rAe="[object Set]",iAe="[object String]",sAe="[object WeakMap]",aAe="[object ArrayBuffer]",oAe="[object DataView]",cAe="[object Float32Array]",uAe="[object Float64Array]",lAe="[object Int8Array]",hAe="[object Int16Array]",fAe="[object Int32Array]",dAe="[object Uint8Array]",gAe="[object Uint8ClampedArray]",pAe="[object Uint16Array]",bAe="[object Uint32Array]",_l={};_l[cAe]=_l[uAe]=_l[lAe]=_l[hAe]=_l[fAe]=_l[dAe]=_l[gAe]=_l[pAe]=_l[bAe]=!0,_l[WSe]=_l[KSe]=_l[aAe]=_l[YSe]=_l[oAe]=_l[XSe]=_l[QSe]=_l[ZSe]=_l[JSe]=_l[tAe]=_l[eAe]=_l[nAe]=_l[rAe]=_l[iAe]=_l[sAe]=!1;function vAe(i){return l3(i)&&udt(i.length)&&!!_l[tE(i)]}function _W(i){return function(a){return i(a)}}var gOt=typeof exports=="object"&&exports&&!exports.nodeType&&exports,WN=gOt&&typeof module=="object"&&module&&!module.nodeType&&module,wAe=WN&&WN.exports===gOt,ldt=wAe&&gIt.process,mAe=function(){try{var i=WN&&WN.require&&WN.require("util").types;return i||ldt&&ldt.binding&&ldt.binding("util")}catch{}}();const WA=mAe;var pOt=WA&&WA.isTypedArray,yAe=pOt?_W(pOt):vAe;const CW=yAe;var xAe="[object Map]",kAe="[object Set]",EAe=Object.prototype,TAe=EAe.hasOwnProperty;function KA(i){if(i==null)return!0;if(rk(i)&&(Bf(i)||typeof i=="string"||typeof i.splice=="function"||UA(i)||CW(i)||GA(i)))return!i.length;var a=VA(i);if(a==xAe||a==kAe)return!i.size;if(TW(i))return!rOt(i).length;for(var f in i)if(TAe.call(i,f))return!1;return!0}const _Ae="graphics-document document";function CAe(i,a){i.attr("role",_Ae),KA(a)||i.attr("aria-roledescription",a)}function SAe(i,a,f,p){if(i.insert!==void 0)if(a||f){if(f){const v="chart-desc-"+p;i.attr("aria-describedby",v),i.insert("desc",":first-child").attr("id",v).text(f)}if(a){const v="chart-title-"+p;i.attr("aria-labelledby",v),i.insert("title",":first-child").attr("id",v).text(a)}}else return}const bOt=["graph","flowchart","flowchart-v2","flowchart-elk","stateDiagram","stateDiagram-v2"],AAe=5e4,LAe="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",MAe="sandbox",DAe="loose",IAe="http://www.w3.org/2000/svg",OAe="http://www.w3.org/1999/xlink",NAe="http://www.w3.org/1999/xhtml",PAe="100%",FAe="100%",BAe="border:0;margin:0;",RAe="margin:0",jAe="allow-top-navigation-by-user-activation allow-popups",$Ae='The "iframe" tag is not supported by your browser.',zAe=["foreignobject"],qAe=["dominant-baseline"];async function HAe(i,a){rdt();try{(await idt(i)).parse()}catch(f){if(a!=null&&a.suppressErrors)return!1;throw f}return!0}const VAe=function(i){let a=i;return a=a.replace(/style.*:\S*#.*;/g,function(f){return f.substring(0,f.length-1)}),a=a.replace(/classDef.*:\S*#.*;/g,function(f){return f.substring(0,f.length-1)}),a=a.replace(/#\w+;/g,function(f){const p=f.substring(1,f.length-1);return/^\+?\d+$/.test(p)?"fl°°"+p+"¶ß":"fl°"+p+"¶ß"}),a},KN=function(i){return i.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},vOt=(i,a,f=[])=>` -.${i} ${a} { ${f.join(" !important; ")} !important; }`,GAe=(i,a,f={})=>{var v;let p="";if(i.themeCSS!==void 0&&(p+=` -${i.themeCSS}`),i.fontFamily!==void 0&&(p+=` -:root { --mermaid-font-family: ${i.fontFamily}}`),i.altFontFamily!==void 0&&(p+=` -:root { --mermaid-alt-font-family: ${i.altFontFamily}}`),!KA(f)&&bOt.includes(a)){const C=i.htmlLabels||((v=i.flowchart)==null?void 0:v.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];for(const D in f){const P=f[D];KA(P.styles)||C.forEach(B=>{p+=vOt(P.id,B,P.styles)}),KA(P.textStyles)||(p+=vOt(P.id,"tspan",P.textStyles))}}return p},UAe=(i,a,f,p)=>{const v=GAe(i,a,f),m=a_e(a,v,i.themeVariables);return ndt(YCe(`${p}{${m}}`),QCe)},WAe=(i="",a,f)=>{let p=i;return!f&&!a&&(p=p.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),p=KN(p),p=p.replace(/
/g,"
"),p},KAe=(i="",a)=>{const f=a?a.viewBox.baseVal.height+"px":FAe,p=btoa(''+i+"");return``},wOt=(i,a,f,p,v)=>{const m=i.append("div");m.attr("id",f),p&&m.attr("style",p);const b=m.append("svg").attr("id",a).attr("width","100%").attr("xmlns",IAe);return v&&b.attr("xmlns:xlink",v),b.append("g"),i};function mOt(i,a){return i.append("iframe").attr("id",a).attr("style","width: 100%; height: 100%;").attr("sandbox","")}const YAe=(i,a,f,p)=>{var v,m,b;(v=i.getElementById(a))==null||v.remove(),(m=i.getElementById(f))==null||m.remove(),(b=i.getElementById(p))==null||b.remove()},XAe=async function(i,a,f){var _t,X,Rt,ft;rdt(),cW();const p=lo.detectInit(a);p&&(jA(p),sIt(p));const v=Oe();zt.debug(v),a.length>((v==null?void 0:v.maxTextSize)??AAe)&&(a=LAe),a=a.replace(/\r\n?/g,` -`),a=a.replace(/<(\w+)([^>]*)>/g,(de,J,ae)=>"<"+J+ae.replace(/="([^"]*)"/g,"='$1'")+">");const m="#"+i,b="i"+i,E="#"+b,C="d"+i,D="#"+C;let P=Mr("body");const B=v.securityLevel===MAe,j=v.securityLevel===DAe,R=v.fontFamily;if(f!==void 0){if(f&&(f.innerHTML=""),B){const de=mOt(Mr(f),b);P=Mr(de.nodes()[0].contentDocument.body),P.node().style.margin=0}else P=Mr(f);wOt(P,i,C,`font-family: ${R}`,OAe)}else{if(YAe(document,i,C,b),B){const de=mOt(Mr("body"),b);P=Mr(de.nodes()[0].contentDocument.body),P.node().style.margin=0}else P=Mr("body");wOt(P,i,C)}a=VAe(a);let H,Y;try{H=await idt(a)}catch(de){H=new eOt("error"),Y=de}const it=P.select(D).node(),nt=H.type,st=it.firstChild,pt=st.firstChild,Tt=bOt.includes(nt)?H.renderer.getClasses(a,H):{},kt=UAe(v,nt,Tt,m),yt=document.createElement("style");yt.innerHTML=kt,st.insertBefore(yt,pt);try{await H.renderer.draw(a,i,OIt,H)}catch(de){throw XIt.draw(a,i,OIt),de}const ht=P.select(`${D} svg`),mt=(X=(_t=H.db).getAccTitle)==null?void 0:X.call(_t),rt=(ft=(Rt=H.db).getAccDescription)==null?void 0:ft.call(Rt);ZAe(nt,ht,mt,rt),P.select(`[id="${i}"]`).selectAll("foreignobject > *").attr("xmlns",NAe);let wt=P.select(D).node().innerHTML;if(zt.debug("config.arrowMarkerAbsolute",v.arrowMarkerAbsolute),wt=WAe(wt,B,h1(v.arrowMarkerAbsolute)),B){const de=P.select(D+" svg").node();wt=KAe(wt,de)}else j||(wt=WU.sanitize(wt,{ADD_TAGS:zAe,ADD_ATTR:qAe}));if(xSe(),Y)throw Y;const lt=Mr(B?E:D).node();return lt&&"remove"in lt&<.remove(),{svg:wt,bindFunctions:H.db.bindFunctions}};function QAe(i={}){var f;i!=null&&i.fontFamily&&!((f=i.themeVariables)!=null&&f.fontFamily)&&(i.themeVariables||(i.themeVariables={}),i.themeVariables.fontFamily=i.fontFamily),JTe(i),i!=null&&i.theme&&i.theme in w5?i.themeVariables=w5[i.theme].getThemeVariables(i.themeVariables):i&&(i.themeVariables=w5.default.getThemeVariables(i.themeVariables));const a=typeof i=="object"?ZTe(i):nIt();Aft(a.logLevel),rdt()}function ZAe(i,a,f,p){CAe(a,i),SAe(a,f,p,a.attr("id"))}const d1=Object.freeze({render:XAe,parse:HAe,parseDirective:V1t,getDiagramFromText:idt,initialize:QAe,getConfig:Oe,setConfig:rIt,getSiteConfig:nIt,updateSiteConfig:t_e,reset:()=>{cW()},globalReset:()=>{cW(OA)},defaultConfig:OA});Aft(Oe().logLevel),cW(Oe());const JAe=(i,a,f)=>{zt.warn(i),TIt(i)?(f&&f(i.str,i.hash),a.push({...i,message:i.str,error:i})):(f&&f(i),i instanceof Error&&a.push({str:i.message,message:i.message,hash:i.name,error:i}))},yOt=async function(i={querySelector:".mermaid"}){try{await tLe(i)}catch(a){if(TIt(a)&&zt.error(a.str),P2.parseError&&P2.parseError(a),!i.suppressErrors)throw zt.error("Use the suppressErrors option to suppress these errors"),a}},tLe=async function({postRenderCallback:i,querySelector:a,nodes:f}={querySelector:".mermaid"}){const p=d1.getConfig();zt.debug(`${i?"":"No "}Callback function found`);let v;if(f)v=f;else if(a)v=document.querySelectorAll(a);else throw new Error("Nodes and querySelector are both undefined");zt.debug(`Found ${v.length} diagrams`),(p==null?void 0:p.startOnLoad)!==void 0&&(zt.debug("Start On Load: "+(p==null?void 0:p.startOnLoad)),d1.updateSiteConfig({startOnLoad:p==null?void 0:p.startOnLoad}));const m=new lo.initIdGenerator(p.deterministicIds,p.deterministicIDSeed);let b;const E=[];for(const C of Array.from(v)){zt.info("Rendering diagram: "+C.id);/*! Check if previously processed */if(C.getAttribute("data-processed"))continue;C.setAttribute("data-processed","true");const D=`mermaid-${m.next()}`;b=C.innerHTML,b=fA(lo.entityDecode(b)).trim().replace(//gi,"
");const P=lo.detectInit(b);P&&zt.debug("Detected early reinit: ",P);try{const{svg:B,bindFunctions:j}=await TOt(D,b,C);C.innerHTML=B,i&&await i(D),j&&j(C)}catch(B){JAe(B,E,P2.parseError)}}if(E.length>0)throw E[0]},xOt=function(i){d1.initialize(i)},eLe=async function(i,a,f){zt.warn("mermaid.init is deprecated. Please use run instead."),i&&xOt(i);const p={postRenderCallback:f,querySelector:".mermaid"};typeof a=="string"?p.querySelector=a:a&&(a instanceof HTMLElement?p.nodes=[a]:p.nodes=a),await yOt(p)},nLe=async(i,{lazyLoad:a=!0}={})=>{fIt(...i),a===!1&&await p_e()},kOt=function(){if(P2.startOnLoad){const{startOnLoad:i}=d1.getConfig();i&&P2.run().catch(a=>zt.error("Mermaid failed to initialize",a))}};if(typeof document<"u"){/*! - * Wait for document loaded before starting the execution - */window.addEventListener("load",kOt,!1)}const rLe=function(i){P2.parseError=i},SW=[];let hdt=!1;const EOt=async()=>{if(!hdt){for(hdt=!0;SW.length>0;){const i=SW.shift();if(i)try{await i()}catch(a){zt.error("Error executing queue",a)}}hdt=!1}},iLe=async(i,a)=>new Promise((f,p)=>{const v=()=>new Promise((m,b)=>{d1.parse(i,a).then(E=>{m(E),f(E)},E=>{var C;zt.error("Error parsing",E),(C=P2.parseError)==null||C.call(P2,E),b(E),p(E)})});SW.push(v),EOt().catch(p)}),TOt=(i,a,f)=>new Promise((p,v)=>{const m=()=>new Promise((b,E)=>{d1.render(i,a,f).then(C=>{b(C),p(C)},C=>{var D;zt.error("Error parsing",C),(D=P2.parseError)==null||D.call(P2,C),E(C),v(C)})});SW.push(m),EOt().catch(v)}),P2={startOnLoad:!0,mermaidAPI:d1,parse:iLe,render:TOt,init:eLe,run:yOt,registerExternalDiagrams:nLe,initialize:xOt,parseError:void 0,contentLoaded:kOt,setParseErrorHandler:rLe,detectType:dW};var AW=function(){var i=function(qi,zn,Zn,Pr){for(Zn=Zn||{},Pr=qi.length;Pr--;Zn[qi[Pr]]=zn);return Zn},a=[1,6],f=[1,7],p=[1,8],v=[1,9],m=[1,16],b=[1,11],E=[1,12],C=[1,13],D=[1,14],P=[1,15],B=[1,27],j=[1,33],R=[1,34],H=[1,35],Y=[1,36],it=[1,37],nt=[1,72],st=[1,73],pt=[1,74],Tt=[1,75],kt=[1,76],yt=[1,77],ht=[1,78],mt=[1,38],rt=[1,39],wt=[1,40],gt=[1,41],lt=[1,42],_t=[1,43],X=[1,44],Rt=[1,45],ft=[1,46],de=[1,47],J=[1,48],ae=[1,49],Wt=[1,50],It=[1,51],Nt=[1,52],me=[1,53],Ue=[1,54],_n=[1,55],_e=[1,56],rr=[1,57],Te=[1,59],ne=[1,60],Ee=[1,61],ye=[1,62],Vt=[1,63],Ae=[1,64],Gt=[1,65],un=[1,66],jt=[1,67],Ke=[1,68],oe=[1,69],Or=[24,52],Le=[24,44,46,47,48,49,50,51,52,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84],Nr=[15,24,44,46,47,48,49,50,51,52,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84],fe=[1,94],sr=[1,95],Yn=[1,96],tr=[1,97],ur=[15,24,52],gn=[7,8,9,10,18,22,25,26,27,28],En=[15,24,43,52],Dr=[15,24,43,52,86,87,89,90],hr=[15,43],Ki=[44,46,47,48,49,50,51,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84],Is={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,directive:6,direction_tb:7,direction_bt:8,direction_rl:9,direction_lr:10,graphConfig:11,openDirective:12,typeDirective:13,closeDirective:14,NEWLINE:15,":":16,argDirective:17,open_directive:18,type_directive:19,arg_directive:20,close_directive:21,C4_CONTEXT:22,statements:23,EOF:24,C4_CONTAINER:25,C4_COMPONENT:26,C4_DYNAMIC:27,C4_DEPLOYMENT:28,otherStatements:29,diagramStatements:30,otherStatement:31,title:32,accDescription:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,boundaryStatement:39,boundaryStartStatement:40,boundaryStopStatement:41,boundaryStart:42,LBRACE:43,ENTERPRISE_BOUNDARY:44,attributes:45,SYSTEM_BOUNDARY:46,BOUNDARY:47,CONTAINER_BOUNDARY:48,NODE:49,NODE_L:50,NODE_R:51,RBRACE:52,diagramStatement:53,PERSON:54,PERSON_EXT:55,SYSTEM:56,SYSTEM_DB:57,SYSTEM_QUEUE:58,SYSTEM_EXT:59,SYSTEM_EXT_DB:60,SYSTEM_EXT_QUEUE:61,CONTAINER:62,CONTAINER_DB:63,CONTAINER_QUEUE:64,CONTAINER_EXT:65,CONTAINER_EXT_DB:66,CONTAINER_EXT_QUEUE:67,COMPONENT:68,COMPONENT_DB:69,COMPONENT_QUEUE:70,COMPONENT_EXT:71,COMPONENT_EXT_DB:72,COMPONENT_EXT_QUEUE:73,REL:74,BIREL:75,REL_U:76,REL_D:77,REL_L:78,REL_R:79,REL_B:80,REL_INDEX:81,UPDATE_EL_STYLE:82,UPDATE_REL_STYLE:83,UPDATE_LAYOUT_CONFIG:84,attribute:85,STR:86,STR_KEY:87,STR_VALUE:88,ATTRIBUTE:89,ATTRIBUTE_EMPTY:90,$accept:0,$end:1},terminals_:{2:"error",7:"direction_tb",8:"direction_bt",9:"direction_rl",10:"direction_lr",15:"NEWLINE",16:":",18:"open_directive",19:"type_directive",20:"arg_directive",21:"close_directive",22:"C4_CONTEXT",24:"EOF",25:"C4_CONTAINER",26:"C4_COMPONENT",27:"C4_DYNAMIC",28:"C4_DEPLOYMENT",32:"title",33:"accDescription",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",43:"LBRACE",44:"ENTERPRISE_BOUNDARY",46:"SYSTEM_BOUNDARY",47:"BOUNDARY",48:"CONTAINER_BOUNDARY",49:"NODE",50:"NODE_L",51:"NODE_R",52:"RBRACE",54:"PERSON",55:"PERSON_EXT",56:"SYSTEM",57:"SYSTEM_DB",58:"SYSTEM_QUEUE",59:"SYSTEM_EXT",60:"SYSTEM_EXT_DB",61:"SYSTEM_EXT_QUEUE",62:"CONTAINER",63:"CONTAINER_DB",64:"CONTAINER_QUEUE",65:"CONTAINER_EXT",66:"CONTAINER_EXT_DB",67:"CONTAINER_EXT_QUEUE",68:"COMPONENT",69:"COMPONENT_DB",70:"COMPONENT_QUEUE",71:"COMPONENT_EXT",72:"COMPONENT_EXT_DB",73:"COMPONENT_EXT_QUEUE",74:"REL",75:"BIREL",76:"REL_U",77:"REL_D",78:"REL_L",79:"REL_R",80:"REL_B",81:"REL_INDEX",82:"UPDATE_EL_STYLE",83:"UPDATE_REL_STYLE",84:"UPDATE_LAYOUT_CONFIG",86:"STR",87:"STR_KEY",88:"STR_VALUE",89:"ATTRIBUTE",90:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[3,2],[5,1],[5,1],[5,1],[5,1],[4,1],[6,4],[6,6],[12,1],[13,1],[17,1],[14,1],[11,4],[11,4],[11,4],[11,4],[11,4],[23,1],[23,1],[23,2],[29,1],[29,2],[29,3],[31,1],[31,1],[31,2],[31,2],[31,1],[39,3],[40,3],[40,3],[40,4],[42,2],[42,2],[42,2],[42,2],[42,2],[42,2],[42,2],[41,1],[30,1],[30,2],[30,3],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,1],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[45,1],[45,2],[85,1],[85,2],[85,1],[85,1]],performAction:function(zn,Zn,Pr,On,xi,In,rc){var qn=In.length-1;switch(xi){case 4:On.setDirection("TB");break;case 5:On.setDirection("BT");break;case 6:On.setDirection("RL");break;case 7:On.setDirection("LR");break;case 11:On.parseDirective("%%{","open_directive");break;case 12:break;case 13:In[qn]=In[qn].trim().replace(/'/g,'"'),On.parseDirective(In[qn],"arg_directive");break;case 14:On.parseDirective("}%%","close_directive","c4Context");break;case 15:case 16:case 17:case 18:case 19:On.setC4Type(In[qn-3]);break;case 26:On.setTitle(In[qn].substring(6)),this.$=In[qn].substring(6);break;case 27:On.setAccDescription(In[qn].substring(15)),this.$=In[qn].substring(15);break;case 28:this.$=In[qn].trim(),On.setTitle(this.$);break;case 29:case 30:this.$=In[qn].trim(),On.setAccDescription(this.$);break;case 35:case 36:In[qn].splice(2,0,"ENTERPRISE"),On.addPersonOrSystemBoundary(...In[qn]),this.$=In[qn];break;case 37:On.addPersonOrSystemBoundary(...In[qn]),this.$=In[qn];break;case 38:In[qn].splice(2,0,"CONTAINER"),On.addContainerBoundary(...In[qn]),this.$=In[qn];break;case 39:On.addDeploymentNode("node",...In[qn]),this.$=In[qn];break;case 40:On.addDeploymentNode("nodeL",...In[qn]),this.$=In[qn];break;case 41:On.addDeploymentNode("nodeR",...In[qn]),this.$=In[qn];break;case 42:On.popBoundaryParseStack();break;case 46:On.addPersonOrSystem("person",...In[qn]),this.$=In[qn];break;case 47:On.addPersonOrSystem("external_person",...In[qn]),this.$=In[qn];break;case 48:On.addPersonOrSystem("system",...In[qn]),this.$=In[qn];break;case 49:On.addPersonOrSystem("system_db",...In[qn]),this.$=In[qn];break;case 50:On.addPersonOrSystem("system_queue",...In[qn]),this.$=In[qn];break;case 51:On.addPersonOrSystem("external_system",...In[qn]),this.$=In[qn];break;case 52:On.addPersonOrSystem("external_system_db",...In[qn]),this.$=In[qn];break;case 53:On.addPersonOrSystem("external_system_queue",...In[qn]),this.$=In[qn];break;case 54:On.addContainer("container",...In[qn]),this.$=In[qn];break;case 55:On.addContainer("container_db",...In[qn]),this.$=In[qn];break;case 56:On.addContainer("container_queue",...In[qn]),this.$=In[qn];break;case 57:On.addContainer("external_container",...In[qn]),this.$=In[qn];break;case 58:On.addContainer("external_container_db",...In[qn]),this.$=In[qn];break;case 59:On.addContainer("external_container_queue",...In[qn]),this.$=In[qn];break;case 60:On.addComponent("component",...In[qn]),this.$=In[qn];break;case 61:On.addComponent("component_db",...In[qn]),this.$=In[qn];break;case 62:On.addComponent("component_queue",...In[qn]),this.$=In[qn];break;case 63:On.addComponent("external_component",...In[qn]),this.$=In[qn];break;case 64:On.addComponent("external_component_db",...In[qn]),this.$=In[qn];break;case 65:On.addComponent("external_component_queue",...In[qn]),this.$=In[qn];break;case 67:On.addRel("rel",...In[qn]),this.$=In[qn];break;case 68:On.addRel("birel",...In[qn]),this.$=In[qn];break;case 69:On.addRel("rel_u",...In[qn]),this.$=In[qn];break;case 70:On.addRel("rel_d",...In[qn]),this.$=In[qn];break;case 71:On.addRel("rel_l",...In[qn]),this.$=In[qn];break;case 72:On.addRel("rel_r",...In[qn]),this.$=In[qn];break;case 73:On.addRel("rel_b",...In[qn]),this.$=In[qn];break;case 74:In[qn].splice(0,1),On.addRel("rel",...In[qn]),this.$=In[qn];break;case 75:On.updateElStyle("update_el_style",...In[qn]),this.$=In[qn];break;case 76:On.updateRelStyle("update_rel_style",...In[qn]),this.$=In[qn];break;case 77:On.updateLayoutConfig("update_layout_config",...In[qn]),this.$=In[qn];break;case 78:this.$=[In[qn]];break;case 79:In[qn].unshift(In[qn-1]),this.$=In[qn];break;case 80:case 82:this.$=In[qn].trim();break;case 81:let ss={};ss[In[qn-1].trim()]=In[qn].trim(),this.$=ss;break;case 83:this.$="";break}},table:[{3:1,4:2,5:3,6:4,7:a,8:f,9:p,10:v,11:5,12:10,18:m,22:b,25:E,26:C,27:D,28:P},{1:[3]},{1:[2,1]},{1:[2,2]},{3:17,4:2,5:3,6:4,7:a,8:f,9:p,10:v,11:5,12:10,18:m,22:b,25:E,26:C,27:D,28:P},{1:[2,8]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{1:[2,7]},{13:18,19:[1,19]},{15:[1,20]},{15:[1,21]},{15:[1,22]},{15:[1,23]},{15:[1,24]},{19:[2,11]},{1:[2,3]},{14:25,16:[1,26],21:B},i([16,21],[2,12]),{23:28,29:29,30:30,31:31,32:j,33:R,34:H,36:Y,38:it,39:58,40:70,42:71,44:nt,46:st,47:pt,48:Tt,49:kt,50:yt,51:ht,53:32,54:mt,55:rt,56:wt,57:gt,58:lt,59:_t,60:X,61:Rt,62:ft,63:de,64:J,65:ae,66:Wt,67:It,68:Nt,69:me,70:Ue,71:_n,72:_e,73:rr,74:Te,75:ne,76:Ee,77:ye,78:Vt,79:Ae,80:Gt,81:un,82:jt,83:Ke,84:oe},{23:79,29:29,30:30,31:31,32:j,33:R,34:H,36:Y,38:it,39:58,40:70,42:71,44:nt,46:st,47:pt,48:Tt,49:kt,50:yt,51:ht,53:32,54:mt,55:rt,56:wt,57:gt,58:lt,59:_t,60:X,61:Rt,62:ft,63:de,64:J,65:ae,66:Wt,67:It,68:Nt,69:me,70:Ue,71:_n,72:_e,73:rr,74:Te,75:ne,76:Ee,77:ye,78:Vt,79:Ae,80:Gt,81:un,82:jt,83:Ke,84:oe},{23:80,29:29,30:30,31:31,32:j,33:R,34:H,36:Y,38:it,39:58,40:70,42:71,44:nt,46:st,47:pt,48:Tt,49:kt,50:yt,51:ht,53:32,54:mt,55:rt,56:wt,57:gt,58:lt,59:_t,60:X,61:Rt,62:ft,63:de,64:J,65:ae,66:Wt,67:It,68:Nt,69:me,70:Ue,71:_n,72:_e,73:rr,74:Te,75:ne,76:Ee,77:ye,78:Vt,79:Ae,80:Gt,81:un,82:jt,83:Ke,84:oe},{23:81,29:29,30:30,31:31,32:j,33:R,34:H,36:Y,38:it,39:58,40:70,42:71,44:nt,46:st,47:pt,48:Tt,49:kt,50:yt,51:ht,53:32,54:mt,55:rt,56:wt,57:gt,58:lt,59:_t,60:X,61:Rt,62:ft,63:de,64:J,65:ae,66:Wt,67:It,68:Nt,69:me,70:Ue,71:_n,72:_e,73:rr,74:Te,75:ne,76:Ee,77:ye,78:Vt,79:Ae,80:Gt,81:un,82:jt,83:Ke,84:oe},{23:82,29:29,30:30,31:31,32:j,33:R,34:H,36:Y,38:it,39:58,40:70,42:71,44:nt,46:st,47:pt,48:Tt,49:kt,50:yt,51:ht,53:32,54:mt,55:rt,56:wt,57:gt,58:lt,59:_t,60:X,61:Rt,62:ft,63:de,64:J,65:ae,66:Wt,67:It,68:Nt,69:me,70:Ue,71:_n,72:_e,73:rr,74:Te,75:ne,76:Ee,77:ye,78:Vt,79:Ae,80:Gt,81:un,82:jt,83:Ke,84:oe},{15:[1,83]},{17:84,20:[1,85]},{15:[2,14]},{24:[1,86]},i(Or,[2,20],{53:32,39:58,40:70,42:71,30:87,44:nt,46:st,47:pt,48:Tt,49:kt,50:yt,51:ht,54:mt,55:rt,56:wt,57:gt,58:lt,59:_t,60:X,61:Rt,62:ft,63:de,64:J,65:ae,66:Wt,67:It,68:Nt,69:me,70:Ue,71:_n,72:_e,73:rr,74:Te,75:ne,76:Ee,77:ye,78:Vt,79:Ae,80:Gt,81:un,82:jt,83:Ke,84:oe}),i(Or,[2,21]),i(Le,[2,23],{15:[1,88]}),i(Or,[2,43],{15:[1,89]}),i(Nr,[2,26]),i(Nr,[2,27]),{35:[1,90]},{37:[1,91]},i(Nr,[2,30]),{45:92,85:93,86:fe,87:sr,89:Yn,90:tr},{45:98,85:93,86:fe,87:sr,89:Yn,90:tr},{45:99,85:93,86:fe,87:sr,89:Yn,90:tr},{45:100,85:93,86:fe,87:sr,89:Yn,90:tr},{45:101,85:93,86:fe,87:sr,89:Yn,90:tr},{45:102,85:93,86:fe,87:sr,89:Yn,90:tr},{45:103,85:93,86:fe,87:sr,89:Yn,90:tr},{45:104,85:93,86:fe,87:sr,89:Yn,90:tr},{45:105,85:93,86:fe,87:sr,89:Yn,90:tr},{45:106,85:93,86:fe,87:sr,89:Yn,90:tr},{45:107,85:93,86:fe,87:sr,89:Yn,90:tr},{45:108,85:93,86:fe,87:sr,89:Yn,90:tr},{45:109,85:93,86:fe,87:sr,89:Yn,90:tr},{45:110,85:93,86:fe,87:sr,89:Yn,90:tr},{45:111,85:93,86:fe,87:sr,89:Yn,90:tr},{45:112,85:93,86:fe,87:sr,89:Yn,90:tr},{45:113,85:93,86:fe,87:sr,89:Yn,90:tr},{45:114,85:93,86:fe,87:sr,89:Yn,90:tr},{45:115,85:93,86:fe,87:sr,89:Yn,90:tr},{45:116,85:93,86:fe,87:sr,89:Yn,90:tr},i(ur,[2,66]),{45:117,85:93,86:fe,87:sr,89:Yn,90:tr},{45:118,85:93,86:fe,87:sr,89:Yn,90:tr},{45:119,85:93,86:fe,87:sr,89:Yn,90:tr},{45:120,85:93,86:fe,87:sr,89:Yn,90:tr},{45:121,85:93,86:fe,87:sr,89:Yn,90:tr},{45:122,85:93,86:fe,87:sr,89:Yn,90:tr},{45:123,85:93,86:fe,87:sr,89:Yn,90:tr},{45:124,85:93,86:fe,87:sr,89:Yn,90:tr},{45:125,85:93,86:fe,87:sr,89:Yn,90:tr},{45:126,85:93,86:fe,87:sr,89:Yn,90:tr},{45:127,85:93,86:fe,87:sr,89:Yn,90:tr},{30:128,39:58,40:70,42:71,44:nt,46:st,47:pt,48:Tt,49:kt,50:yt,51:ht,53:32,54:mt,55:rt,56:wt,57:gt,58:lt,59:_t,60:X,61:Rt,62:ft,63:de,64:J,65:ae,66:Wt,67:It,68:Nt,69:me,70:Ue,71:_n,72:_e,73:rr,74:Te,75:ne,76:Ee,77:ye,78:Vt,79:Ae,80:Gt,81:un,82:jt,83:Ke,84:oe},{15:[1,130],43:[1,129]},{45:131,85:93,86:fe,87:sr,89:Yn,90:tr},{45:132,85:93,86:fe,87:sr,89:Yn,90:tr},{45:133,85:93,86:fe,87:sr,89:Yn,90:tr},{45:134,85:93,86:fe,87:sr,89:Yn,90:tr},{45:135,85:93,86:fe,87:sr,89:Yn,90:tr},{45:136,85:93,86:fe,87:sr,89:Yn,90:tr},{45:137,85:93,86:fe,87:sr,89:Yn,90:tr},{24:[1,138]},{24:[1,139]},{24:[1,140]},{24:[1,141]},i(gn,[2,9]),{14:142,21:B},{21:[2,13]},{1:[2,15]},i(Or,[2,22]),i(Le,[2,24],{31:31,29:143,32:j,33:R,34:H,36:Y,38:it}),i(Or,[2,44],{29:29,30:30,31:31,53:32,39:58,40:70,42:71,23:144,32:j,33:R,34:H,36:Y,38:it,44:nt,46:st,47:pt,48:Tt,49:kt,50:yt,51:ht,54:mt,55:rt,56:wt,57:gt,58:lt,59:_t,60:X,61:Rt,62:ft,63:de,64:J,65:ae,66:Wt,67:It,68:Nt,69:me,70:Ue,71:_n,72:_e,73:rr,74:Te,75:ne,76:Ee,77:ye,78:Vt,79:Ae,80:Gt,81:un,82:jt,83:Ke,84:oe}),i(Nr,[2,28]),i(Nr,[2,29]),i(ur,[2,46]),i(En,[2,78],{85:93,45:145,86:fe,87:sr,89:Yn,90:tr}),i(Dr,[2,80]),{88:[1,146]},i(Dr,[2,82]),i(Dr,[2,83]),i(ur,[2,47]),i(ur,[2,48]),i(ur,[2,49]),i(ur,[2,50]),i(ur,[2,51]),i(ur,[2,52]),i(ur,[2,53]),i(ur,[2,54]),i(ur,[2,55]),i(ur,[2,56]),i(ur,[2,57]),i(ur,[2,58]),i(ur,[2,59]),i(ur,[2,60]),i(ur,[2,61]),i(ur,[2,62]),i(ur,[2,63]),i(ur,[2,64]),i(ur,[2,65]),i(ur,[2,67]),i(ur,[2,68]),i(ur,[2,69]),i(ur,[2,70]),i(ur,[2,71]),i(ur,[2,72]),i(ur,[2,73]),i(ur,[2,74]),i(ur,[2,75]),i(ur,[2,76]),i(ur,[2,77]),{41:147,52:[1,148]},{15:[1,149]},{43:[1,150]},i(hr,[2,35]),i(hr,[2,36]),i(hr,[2,37]),i(hr,[2,38]),i(hr,[2,39]),i(hr,[2,40]),i(hr,[2,41]),{1:[2,16]},{1:[2,17]},{1:[2,18]},{1:[2,19]},{15:[1,151]},i(Le,[2,25]),i(Or,[2,45]),i(En,[2,79]),i(Dr,[2,81]),i(ur,[2,31]),i(ur,[2,42]),i(Ki,[2,32]),i(Ki,[2,33],{15:[1,152]}),i(gn,[2,10]),i(Ki,[2,34])],defaultActions:{2:[2,1],3:[2,2],5:[2,8],6:[2,4],7:[2,5],8:[2,6],9:[2,7],16:[2,11],17:[2,3],27:[2,14],85:[2,13],86:[2,15],138:[2,16],139:[2,17],140:[2,18],141:[2,19]},parseError:function(zn,Zn){if(Zn.recoverable)this.trace(zn);else{var Pr=new Error(zn);throw Pr.hash=Zn,Pr}},parse:function(zn){var Zn=this,Pr=[0],On=[],xi=[null],In=[],rc=this.table,qn="",ss=0,Aa=0,Ya=2,Ea=1,ga=In.slice.call(arguments,1),Es=Object.create(this.lexer),Bs={yy:{}};for(var Ta in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ta)&&(Bs.yy[Ta]=this.yy[Ta]);Es.setInput(zn,Bs.yy),Bs.yy.lexer=Es,Bs.yy.parser=this,typeof Es.yylloc>"u"&&(Es.yylloc={});var La=Es.yylloc;In.push(La);var Va=Es.options&&Es.options.ranges;typeof Bs.yy.parseError=="function"?this.parseError=Bs.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function sv(){var ci;return ci=On.pop()||Es.lex()||Ea,typeof ci!="number"&&(ci instanceof Array&&(On=ci,ci=On.pop()),ci=Zn.symbols_[ci]||ci),ci}for(var rl,mu,As,gp,sd={},Rl,$u,Gi,He;;){if(mu=Pr[Pr.length-1],this.defaultActions[mu]?As=this.defaultActions[mu]:((rl===null||typeof rl>"u")&&(rl=sv()),As=rc[mu]&&rc[mu][rl]),typeof As>"u"||!As.length||!As[0]){var Er="";He=[];for(Rl in rc[mu])this.terminals_[Rl]&&Rl>Ya&&He.push("'"+this.terminals_[Rl]+"'");Es.showPosition?Er="Parse error on line "+(ss+1)+`: -`+Es.showPosition()+` -Expecting `+He.join(", ")+", got '"+(this.terminals_[rl]||rl)+"'":Er="Parse error on line "+(ss+1)+": Unexpected "+(rl==Ea?"end of input":"'"+(this.terminals_[rl]||rl)+"'"),this.parseError(Er,{text:Es.match,token:this.terminals_[rl]||rl,line:Es.yylineno,loc:La,expected:He})}if(As[0]instanceof Array&&As.length>1)throw new Error("Parse Error: multiple actions possible at state: "+mu+", token: "+rl);switch(As[0]){case 1:Pr.push(rl),xi.push(Es.yytext),In.push(Es.yylloc),Pr.push(As[1]),rl=null,Aa=Es.yyleng,qn=Es.yytext,ss=Es.yylineno,La=Es.yylloc;break;case 2:if($u=this.productions_[As[1]][1],sd.$=xi[xi.length-$u],sd._$={first_line:In[In.length-($u||1)].first_line,last_line:In[In.length-1].last_line,first_column:In[In.length-($u||1)].first_column,last_column:In[In.length-1].last_column},Va&&(sd._$.range=[In[In.length-($u||1)].range[0],In[In.length-1].range[1]]),gp=this.performAction.apply(sd,[qn,Aa,ss,Bs.yy,As[1],xi,In].concat(ga)),typeof gp<"u")return gp;$u&&(Pr=Pr.slice(0,-1*$u*2),xi=xi.slice(0,-1*$u),In=In.slice(0,-1*$u)),Pr.push(this.productions_[As[1]][0]),xi.push(sd.$),In.push(sd._$),Gi=rc[Pr[Pr.length-2]][Pr[Pr.length-1]],Pr.push(Gi);break;case 3:return!0}}return!0}},Ha=function(){var qi={EOF:1,parseError:function(Zn,Pr){if(this.yy.parser)this.yy.parser.parseError(Zn,Pr);else throw new Error(Zn)},setInput:function(zn,Zn){return this.yy=Zn||this.yy||{},this._input=zn,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var zn=this._input[0];this.yytext+=zn,this.yyleng++,this.offset++,this.match+=zn,this.matched+=zn;var Zn=zn.match(/(?:\r\n?|\n).*/g);return Zn?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),zn},unput:function(zn){var Zn=zn.length,Pr=zn.split(/(?:\r\n?|\n)/g);this._input=zn+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Zn),this.offset-=Zn;var On=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Pr.length-1&&(this.yylineno-=Pr.length-1);var xi=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Pr?(Pr.length===On.length?this.yylloc.first_column:0)+On[On.length-Pr.length].length-Pr[0].length:this.yylloc.first_column-Zn},this.options.ranges&&(this.yylloc.range=[xi[0],xi[0]+this.yyleng-Zn]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). -`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(zn){this.unput(this.match.slice(zn))},pastInput:function(){var zn=this.matched.substr(0,this.matched.length-this.match.length);return(zn.length>20?"...":"")+zn.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var zn=this.match;return zn.length<20&&(zn+=this._input.substr(0,20-zn.length)),(zn.substr(0,20)+(zn.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var zn=this.pastInput(),Zn=new Array(zn.length+1).join("-");return zn+this.upcomingInput()+` -`+Zn+"^"},test_match:function(zn,Zn){var Pr,On,xi;if(this.options.backtrack_lexer&&(xi={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(xi.yylloc.range=this.yylloc.range.slice(0))),On=zn[0].match(/(?:\r\n?|\n).*/g),On&&(this.yylineno+=On.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:On?On[On.length-1].length-On[On.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+zn[0].length},this.yytext+=zn[0],this.match+=zn[0],this.matches=zn,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(zn[0].length),this.matched+=zn[0],Pr=this.performAction.call(this,this.yy,this,Zn,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Pr)return Pr;if(this._backtrack){for(var In in xi)this[In]=xi[In];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var zn,Zn,Pr,On;this._more||(this.yytext="",this.match="");for(var xi=this._currentRules(),In=0;InZn[0].length)){if(Zn=Pr,On=In,this.options.backtrack_lexer){if(zn=this.test_match(Pr,xi[In]),zn!==!1)return zn;if(this._backtrack){Zn=!1;continue}else return!1}else if(!this.options.flex)break}return Zn?(zn=this.test_match(Zn,xi[On]),zn!==!1?zn:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var Zn=this.next();return Zn||this.lex()},begin:function(Zn){this.conditionStack.push(Zn)},popState:function(){var Zn=this.conditionStack.length-1;return Zn>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(Zn){return Zn=this.conditionStack.length-1-Math.abs(Zn||0),Zn>=0?this.conditionStack[Zn]:"INITIAL"},pushState:function(Zn){this.begin(Zn)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(Zn,Pr,On,xi){switch(On){case 0:return this.begin("open_directive"),18;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 10;case 5:return this.begin("type_directive"),19;case 6:return this.popState(),this.begin("arg_directive"),16;case 7:return this.popState(),this.popState(),21;case 8:return 20;case 9:return 32;case 10:return 33;case 11:return this.begin("acc_title"),34;case 12:return this.popState(),"acc_title_value";case 13:return this.begin("acc_descr"),36;case 14:return this.popState(),"acc_descr_value";case 15:this.begin("acc_descr_multiline");break;case 16:this.popState();break;case 17:return"acc_descr_multiline_value";case 18:break;case 19:c;break;case 20:return 15;case 21:break;case 22:return 22;case 23:return 25;case 24:return 26;case 25:return 27;case 26:return 28;case 27:return this.begin("person_ext"),55;case 28:return this.begin("person"),54;case 29:return this.begin("system_ext_queue"),61;case 30:return this.begin("system_ext_db"),60;case 31:return this.begin("system_ext"),59;case 32:return this.begin("system_queue"),58;case 33:return this.begin("system_db"),57;case 34:return this.begin("system"),56;case 35:return this.begin("boundary"),47;case 36:return this.begin("enterprise_boundary"),44;case 37:return this.begin("system_boundary"),46;case 38:return this.begin("container_ext_queue"),67;case 39:return this.begin("container_ext_db"),66;case 40:return this.begin("container_ext"),65;case 41:return this.begin("container_queue"),64;case 42:return this.begin("container_db"),63;case 43:return this.begin("container"),62;case 44:return this.begin("container_boundary"),48;case 45:return this.begin("component_ext_queue"),73;case 46:return this.begin("component_ext_db"),72;case 47:return this.begin("component_ext"),71;case 48:return this.begin("component_queue"),70;case 49:return this.begin("component_db"),69;case 50:return this.begin("component"),68;case 51:return this.begin("node"),49;case 52:return this.begin("node"),49;case 53:return this.begin("node_l"),50;case 54:return this.begin("node_r"),51;case 55:return this.begin("rel"),74;case 56:return this.begin("birel"),75;case 57:return this.begin("rel_u"),76;case 58:return this.begin("rel_u"),76;case 59:return this.begin("rel_d"),77;case 60:return this.begin("rel_d"),77;case 61:return this.begin("rel_l"),78;case 62:return this.begin("rel_l"),78;case 63:return this.begin("rel_r"),79;case 64:return this.begin("rel_r"),79;case 65:return this.begin("rel_b"),80;case 66:return this.begin("rel_index"),81;case 67:return this.begin("update_el_style"),82;case 68:return this.begin("update_rel_style"),83;case 69:return this.begin("update_layout_config"),84;case 70:return"EOF_IN_STRUCT";case 71:return this.begin("attribute"),"ATTRIBUTE_EMPTY";case 72:this.begin("attribute");break;case 73:this.popState(),this.popState();break;case 74:return 90;case 75:break;case 76:return 90;case 77:this.begin("string");break;case 78:this.popState();break;case 79:return"STR";case 80:this.begin("string_kv");break;case 81:return this.begin("string_kv_key"),"STR_KEY";case 82:this.popState(),this.begin("string_kv_value");break;case 83:return"STR_VALUE";case 84:this.popState(),this.popState();break;case 85:return"STR";case 86:return"LBRACE";case 87:return"RBRACE";case 88:return"SPACE";case 89:return"EOL";case 90:return 24}},rules:[/^(?:%%\{)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:title\s[^#\n;]+)/,/^(?:accDescription\s[^#\n;]+)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:C4Context\b)/,/^(?:C4Container\b)/,/^(?:C4Component\b)/,/^(?:C4Dynamic\b)/,/^(?:C4Deployment\b)/,/^(?:Person_Ext\b)/,/^(?:Person\b)/,/^(?:SystemQueue_Ext\b)/,/^(?:SystemDb_Ext\b)/,/^(?:System_Ext\b)/,/^(?:SystemQueue\b)/,/^(?:SystemDb\b)/,/^(?:System\b)/,/^(?:Boundary\b)/,/^(?:Enterprise_Boundary\b)/,/^(?:System_Boundary\b)/,/^(?:ContainerQueue_Ext\b)/,/^(?:ContainerDb_Ext\b)/,/^(?:Container_Ext\b)/,/^(?:ContainerQueue\b)/,/^(?:ContainerDb\b)/,/^(?:Container\b)/,/^(?:Container_Boundary\b)/,/^(?:ComponentQueue_Ext\b)/,/^(?:ComponentDb_Ext\b)/,/^(?:Component_Ext\b)/,/^(?:ComponentQueue\b)/,/^(?:ComponentDb\b)/,/^(?:Component\b)/,/^(?:Deployment_Node\b)/,/^(?:Node\b)/,/^(?:Node_L\b)/,/^(?:Node_R\b)/,/^(?:Rel\b)/,/^(?:BiRel\b)/,/^(?:Rel_Up\b)/,/^(?:Rel_U\b)/,/^(?:Rel_Down\b)/,/^(?:Rel_D\b)/,/^(?:Rel_Left\b)/,/^(?:Rel_L\b)/,/^(?:Rel_Right\b)/,/^(?:Rel_R\b)/,/^(?:Rel_Back\b)/,/^(?:RelIndex\b)/,/^(?:UpdateElementStyle\b)/,/^(?:UpdateRelStyle\b)/,/^(?:UpdateLayoutConfig\b)/,/^(?:$)/,/^(?:[(][ ]*[,])/,/^(?:[(])/,/^(?:[)])/,/^(?:,,)/,/^(?:,)/,/^(?:[ ]*["]["])/,/^(?:[ ]*["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[ ]*[\$])/,/^(?:[^=]*)/,/^(?:[=][ ]*["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:[^,]+)/,/^(?:\{)/,/^(?:\})/,/^(?:[\s]+)/,/^(?:[\n\r]+)/,/^(?:$)/],conditions:{acc_descr_multiline:{rules:[16,17],inclusive:!1},acc_descr:{rules:[14],inclusive:!1},acc_title:{rules:[12],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[7,8],inclusive:!1},type_directive:{rules:[6,7],inclusive:!1},open_directive:{rules:[5],inclusive:!1},string_kv_value:{rules:[83,84],inclusive:!1},string_kv_key:{rules:[82],inclusive:!1},string_kv:{rules:[81],inclusive:!1},string:{rules:[78,79],inclusive:!1},attribute:{rules:[73,74,75,76,77,80,85],inclusive:!1},update_layout_config:{rules:[70,71,72,73],inclusive:!1},update_rel_style:{rules:[70,71,72,73],inclusive:!1},update_el_style:{rules:[70,71,72,73],inclusive:!1},rel_b:{rules:[70,71,72,73],inclusive:!1},rel_r:{rules:[70,71,72,73],inclusive:!1},rel_l:{rules:[70,71,72,73],inclusive:!1},rel_d:{rules:[70,71,72,73],inclusive:!1},rel_u:{rules:[70,71,72,73],inclusive:!1},rel_bi:{rules:[],inclusive:!1},rel:{rules:[70,71,72,73],inclusive:!1},node_r:{rules:[70,71,72,73],inclusive:!1},node_l:{rules:[70,71,72,73],inclusive:!1},node:{rules:[70,71,72,73],inclusive:!1},index:{rules:[],inclusive:!1},rel_index:{rules:[70,71,72,73],inclusive:!1},component_ext_queue:{rules:[],inclusive:!1},component_ext_db:{rules:[70,71,72,73],inclusive:!1},component_ext:{rules:[70,71,72,73],inclusive:!1},component_queue:{rules:[70,71,72,73],inclusive:!1},component_db:{rules:[70,71,72,73],inclusive:!1},component:{rules:[70,71,72,73],inclusive:!1},container_boundary:{rules:[70,71,72,73],inclusive:!1},container_ext_queue:{rules:[],inclusive:!1},container_ext_db:{rules:[70,71,72,73],inclusive:!1},container_ext:{rules:[70,71,72,73],inclusive:!1},container_queue:{rules:[70,71,72,73],inclusive:!1},container_db:{rules:[70,71,72,73],inclusive:!1},container:{rules:[70,71,72,73],inclusive:!1},birel:{rules:[70,71,72,73],inclusive:!1},system_boundary:{rules:[70,71,72,73],inclusive:!1},enterprise_boundary:{rules:[70,71,72,73],inclusive:!1},boundary:{rules:[70,71,72,73],inclusive:!1},system_ext_queue:{rules:[70,71,72,73],inclusive:!1},system_ext_db:{rules:[70,71,72,73],inclusive:!1},system_ext:{rules:[70,71,72,73],inclusive:!1},system_queue:{rules:[70,71,72,73],inclusive:!1},system_db:{rules:[70,71,72,73],inclusive:!1},system:{rules:[70,71,72,73],inclusive:!1},person_ext:{rules:[70,71,72,73],inclusive:!1},person:{rules:[70,71,72,73],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,9,10,11,13,15,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,86,87,88,89,90],inclusive:!0}}};return qi}();Is.lexer=Ha;function hi(){this.yy={}}return hi.prototype=Is,Is.Parser=hi,new hi}();AW.parser=AW;const sLe=AW;let Jw=[],ik=[""],lg="global",tm="",h3=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],YN=[],fdt="",ddt=!1,LW=4,MW=2;var _Ot;const aLe=function(){return _Ot},oLe=function(i){_Ot=sg(i,Oe())},cLe=function(i,a,f){d1.parseDirective(this,i,a,f)},uLe=function(i,a,f,p,v,m,b,E,C){if(i==null||a===void 0||a===null||f===void 0||f===null||p===void 0||p===null)return;let D={};const P=YN.find(B=>B.from===a&&B.to===f);if(P?D=P:YN.push(D),D.type=i,D.from=a,D.to=f,D.label={text:p},v==null)D.techn={text:""};else if(typeof v=="object"){let[B,j]=Object.entries(v)[0];D[B]={text:j}}else D.techn={text:v};if(m==null)D.descr={text:""};else if(typeof m=="object"){let[B,j]=Object.entries(m)[0];D[B]={text:j}}else D.descr={text:m};if(typeof b=="object"){let[B,j]=Object.entries(b)[0];D[B]=j}else D.sprite=b;if(typeof E=="object"){let[B,j]=Object.entries(E)[0];D[B]=j}else D.tags=E;if(typeof C=="object"){let[B,j]=Object.entries(C)[0];D[B]=j}else D.link=C;D.wrap=sk()},lLe=function(i,a,f,p,v,m,b){if(a===null||f===null)return;let E={};const C=Jw.find(D=>D.alias===a);if(C&&a===C.alias?E=C:(E.alias=a,Jw.push(E)),f==null?E.label={text:""}:E.label={text:f},p==null)E.descr={text:""};else if(typeof p=="object"){let[D,P]=Object.entries(p)[0];E[D]={text:P}}else E.descr={text:p};if(typeof v=="object"){let[D,P]=Object.entries(v)[0];E[D]=P}else E.sprite=v;if(typeof m=="object"){let[D,P]=Object.entries(m)[0];E[D]=P}else E.tags=m;if(typeof b=="object"){let[D,P]=Object.entries(b)[0];E[D]=P}else E.link=b;E.typeC4Shape={text:i},E.parentBoundary=lg,E.wrap=sk()},hLe=function(i,a,f,p,v,m,b,E){if(a===null||f===null)return;let C={};const D=Jw.find(P=>P.alias===a);if(D&&a===D.alias?C=D:(C.alias=a,Jw.push(C)),f==null?C.label={text:""}:C.label={text:f},p==null)C.techn={text:""};else if(typeof p=="object"){let[P,B]=Object.entries(p)[0];C[P]={text:B}}else C.techn={text:p};if(v==null)C.descr={text:""};else if(typeof v=="object"){let[P,B]=Object.entries(v)[0];C[P]={text:B}}else C.descr={text:v};if(typeof m=="object"){let[P,B]=Object.entries(m)[0];C[P]=B}else C.sprite=m;if(typeof b=="object"){let[P,B]=Object.entries(b)[0];C[P]=B}else C.tags=b;if(typeof E=="object"){let[P,B]=Object.entries(E)[0];C[P]=B}else C.link=E;C.wrap=sk(),C.typeC4Shape={text:i},C.parentBoundary=lg},fLe=function(i,a,f,p,v,m,b,E){if(a===null||f===null)return;let C={};const D=Jw.find(P=>P.alias===a);if(D&&a===D.alias?C=D:(C.alias=a,Jw.push(C)),f==null?C.label={text:""}:C.label={text:f},p==null)C.techn={text:""};else if(typeof p=="object"){let[P,B]=Object.entries(p)[0];C[P]={text:B}}else C.techn={text:p};if(v==null)C.descr={text:""};else if(typeof v=="object"){let[P,B]=Object.entries(v)[0];C[P]={text:B}}else C.descr={text:v};if(typeof m=="object"){let[P,B]=Object.entries(m)[0];C[P]=B}else C.sprite=m;if(typeof b=="object"){let[P,B]=Object.entries(b)[0];C[P]=B}else C.tags=b;if(typeof E=="object"){let[P,B]=Object.entries(E)[0];C[P]=B}else C.link=E;C.wrap=sk(),C.typeC4Shape={text:i},C.parentBoundary=lg},dLe=function(i,a,f,p,v){if(i===null||a===null)return;let m={};const b=h3.find(E=>E.alias===i);if(b&&i===b.alias?m=b:(m.alias=i,h3.push(m)),a==null?m.label={text:""}:m.label={text:a},f==null)m.type={text:"system"};else if(typeof f=="object"){let[E,C]=Object.entries(f)[0];m[E]={text:C}}else m.type={text:f};if(typeof p=="object"){let[E,C]=Object.entries(p)[0];m[E]=C}else m.tags=p;if(typeof v=="object"){let[E,C]=Object.entries(v)[0];m[E]=C}else m.link=v;m.parentBoundary=lg,m.wrap=sk(),tm=lg,lg=i,ik.push(tm)},gLe=function(i,a,f,p,v){if(i===null||a===null)return;let m={};const b=h3.find(E=>E.alias===i);if(b&&i===b.alias?m=b:(m.alias=i,h3.push(m)),a==null?m.label={text:""}:m.label={text:a},f==null)m.type={text:"container"};else if(typeof f=="object"){let[E,C]=Object.entries(f)[0];m[E]={text:C}}else m.type={text:f};if(typeof p=="object"){let[E,C]=Object.entries(p)[0];m[E]=C}else m.tags=p;if(typeof v=="object"){let[E,C]=Object.entries(v)[0];m[E]=C}else m.link=v;m.parentBoundary=lg,m.wrap=sk(),tm=lg,lg=i,ik.push(tm)},pLe=function(i,a,f,p,v,m,b,E){if(a===null||f===null)return;let C={};const D=h3.find(P=>P.alias===a);if(D&&a===D.alias?C=D:(C.alias=a,h3.push(C)),f==null?C.label={text:""}:C.label={text:f},p==null)C.type={text:"node"};else if(typeof p=="object"){let[P,B]=Object.entries(p)[0];C[P]={text:B}}else C.type={text:p};if(v==null)C.descr={text:""};else if(typeof v=="object"){let[P,B]=Object.entries(v)[0];C[P]={text:B}}else C.descr={text:v};if(typeof b=="object"){let[P,B]=Object.entries(b)[0];C[P]=B}else C.tags=b;if(typeof E=="object"){let[P,B]=Object.entries(E)[0];C[P]=B}else C.link=E;C.nodeType=i,C.parentBoundary=lg,C.wrap=sk(),tm=lg,lg=a,ik.push(tm)},bLe=function(){lg=tm,ik.pop(),tm=ik.pop(),ik.push(tm)},vLe=function(i,a,f,p,v,m,b,E,C,D,P){let B=Jw.find(j=>j.alias===a);if(!(B===void 0&&(B=h3.find(j=>j.alias===a),B===void 0))){if(f!=null)if(typeof f=="object"){let[j,R]=Object.entries(f)[0];B[j]=R}else B.bgColor=f;if(p!=null)if(typeof p=="object"){let[j,R]=Object.entries(p)[0];B[j]=R}else B.fontColor=p;if(v!=null)if(typeof v=="object"){let[j,R]=Object.entries(v)[0];B[j]=R}else B.borderColor=v;if(m!=null)if(typeof m=="object"){let[j,R]=Object.entries(m)[0];B[j]=R}else B.shadowing=m;if(b!=null)if(typeof b=="object"){let[j,R]=Object.entries(b)[0];B[j]=R}else B.shape=b;if(E!=null)if(typeof E=="object"){let[j,R]=Object.entries(E)[0];B[j]=R}else B.sprite=E;if(C!=null)if(typeof C=="object"){let[j,R]=Object.entries(C)[0];B[j]=R}else B.techn=C;if(D!=null)if(typeof D=="object"){let[j,R]=Object.entries(D)[0];B[j]=R}else B.legendText=D;if(P!=null)if(typeof P=="object"){let[j,R]=Object.entries(P)[0];B[j]=R}else B.legendSprite=P}},wLe=function(i,a,f,p,v,m,b){const E=YN.find(C=>C.from===a&&C.to===f);if(E!==void 0){if(p!=null)if(typeof p=="object"){let[C,D]=Object.entries(p)[0];E[C]=D}else E.textColor=p;if(v!=null)if(typeof v=="object"){let[C,D]=Object.entries(v)[0];E[C]=D}else E.lineColor=v;if(m!=null)if(typeof m=="object"){let[C,D]=Object.entries(m)[0];E[C]=parseInt(D)}else E.offsetX=parseInt(m);if(b!=null)if(typeof b=="object"){let[C,D]=Object.entries(b)[0];E[C]=parseInt(D)}else E.offsetY=parseInt(b)}},mLe=function(i,a,f){let p=LW,v=MW;if(typeof a=="object"){const m=Object.values(a)[0];p=parseInt(m)}else p=parseInt(a);if(typeof f=="object"){const m=Object.values(f)[0];v=parseInt(m)}else v=parseInt(f);p>=1&&(LW=p),v>=1&&(MW=v)},yLe=function(){return LW},xLe=function(){return MW},kLe=function(){return lg},ELe=function(){return tm},COt=function(i){return i==null?Jw:Jw.filter(a=>a.parentBoundary===i)},TLe=function(i){return Jw.find(a=>a.alias===i)},_Le=function(i){return Object.keys(COt(i))},CLe=function(i){return i==null?h3:h3.filter(a=>a.parentBoundary===i)},SLe=function(){return YN},ALe=function(){return fdt},LLe=function(i){ddt=i},sk=function(){return ddt},SOt={addPersonOrSystem:lLe,addPersonOrSystemBoundary:dLe,addContainer:hLe,addContainerBoundary:gLe,addComponent:fLe,addDeploymentNode:pLe,popBoundaryParseStack:bLe,addRel:uLe,updateElStyle:vLe,updateRelStyle:wLe,updateLayoutConfig:mLe,autoWrap:sk,setWrap:LLe,getC4ShapeArray:COt,getC4Shape:TLe,getC4ShapeKeys:_Le,getBoundarys:CLe,getCurrentBoundaryParse:kLe,getParentBoundaryParse:ELe,getRels:SLe,getTitle:ALe,getC4Type:aLe,getC4ShapeInRow:yLe,getC4BoundaryInRow:xLe,setAccTitle:ug,getAccTitle:op,getAccDescription:up,setAccDescription:cp,parseDirective:cLe,getConfig:()=>Oe().c4,clear:function(){Jw=[],h3=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],tm="",lg="global",ik=[""],YN=[],ik=[""],fdt="",ddt=!1,LW=4,MW=2},LINETYPE:{SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25},ARROWTYPE:{FILLED:0,OPEN:1},PLACEMENT:{LEFTOF:0,RIGHTOF:1,OVER:2},setTitle:function(i){fdt=sg(i,Oe())},setC4Type:oLe},DW=function(i,a){const f=i.append("rect");if(f.attr("x",a.x),f.attr("y",a.y),f.attr("fill",a.fill),f.attr("stroke",a.stroke),f.attr("width",a.width),f.attr("height",a.height),f.attr("rx",a.rx),f.attr("ry",a.ry),a.attrs!=="undefined"&&a.attrs!==null)for(let p in a.attrs)f.attr(p,a.attrs[p]);return a.class!=="undefined"&&f.attr("class",a.class),f},AOt=function(i,a){DW(i,{x:a.startx,y:a.starty,width:a.stopx-a.startx,height:a.stopy-a.starty,fill:a.fill,stroke:a.stroke,class:"rect"}).lower()},MLe=function(i,a){const f=a.text.replace(//gi," "),p=i.append("text");p.attr("x",a.x),p.attr("y",a.y),p.attr("class","legend"),p.style("text-anchor",a.anchor),a.class!==void 0&&p.attr("class",a.class);const v=p.append("tspan");return v.attr("x",a.x+a.textMargin*2),v.text(f),p},DLe=function(i,a,f,p){const v=i.append("image");v.attr("x",a),v.attr("y",f);var m=Xx(p);v.attr("xlink:href",m)},ILe=function(i,a,f,p){const v=i.append("use");v.attr("x",a),v.attr("y",f);const m=Xx(p);v.attr("xlink:href","#"+m)},aE=function(){return{x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}},gdt=function(){return{x:0,y:0,width:100,height:100,fill:void 0,anchor:void 0,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}},pdt=function(i,a){return DW(i,a)},LOt=function(i,a,f,p,v,m){const b=i.append("image");b.attr("width",a),b.attr("height",f),b.attr("x",p),b.attr("y",v);let E=m.startsWith("data:image/png;base64")?m:Xx(m);b.attr("xlink:href",E)},OLe=(i,a,f)=>{const p=i.append("g");let v=0;for(let m of a){let b=m.textColor?m.textColor:"#444444",E=m.lineColor?m.lineColor:"#444444",C=m.offsetX?parseInt(m.offsetX):0,D=m.offsetY?parseInt(m.offsetY):0,P="";if(v===0){let j=p.append("line");j.attr("x1",m.startPoint.x),j.attr("y1",m.startPoint.y),j.attr("x2",m.endPoint.x),j.attr("y2",m.endPoint.y),j.attr("stroke-width","1"),j.attr("stroke",E),j.style("fill","none"),m.type!=="rel_b"&&j.attr("marker-end","url("+P+"#arrowhead)"),(m.type==="birel"||m.type==="rel_b")&&j.attr("marker-start","url("+P+"#arrowend)"),v=-1}else{let j=p.append("path");j.attr("fill","none").attr("stroke-width","1").attr("stroke",E).attr("d","Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx",m.startPoint.x).replaceAll("starty",m.startPoint.y).replaceAll("controlx",m.startPoint.x+(m.endPoint.x-m.startPoint.x)/2-(m.endPoint.x-m.startPoint.x)/4).replaceAll("controly",m.startPoint.y+(m.endPoint.y-m.startPoint.y)/2).replaceAll("stopx",m.endPoint.x).replaceAll("stopy",m.endPoint.y)),m.type!=="rel_b"&&j.attr("marker-end","url("+P+"#arrowhead)"),(m.type==="birel"||m.type==="rel_b")&&j.attr("marker-start","url("+P+"#arrowend)")}let B=f.messageFont();k5(f)(m.label.text,p,Math.min(m.startPoint.x,m.endPoint.x)+Math.abs(m.endPoint.x-m.startPoint.x)/2+C,Math.min(m.startPoint.y,m.endPoint.y)+Math.abs(m.endPoint.y-m.startPoint.y)/2+D,m.label.width,m.label.height,{fill:b},B),m.techn&&m.techn.text!==""&&(B=f.messageFont(),k5(f)("["+m.techn.text+"]",p,Math.min(m.startPoint.x,m.endPoint.x)+Math.abs(m.endPoint.x-m.startPoint.x)/2+C,Math.min(m.startPoint.y,m.endPoint.y)+Math.abs(m.endPoint.y-m.startPoint.y)/2+f.messageFontSize+5+D,Math.max(m.label.width,m.techn.width),m.techn.height,{fill:b,"font-style":"italic"},B))}},NLe=function(i,a,f){const p=i.append("g");let v=a.bgColor?a.bgColor:"none",m=a.borderColor?a.borderColor:"#444444",b=a.fontColor?a.fontColor:"black",E={"stroke-width":1,"stroke-dasharray":"7.0,7.0"};a.nodeType&&(E={"stroke-width":1});let C={x:a.x,y:a.y,fill:v,stroke:m,width:a.width,height:a.height,rx:2.5,ry:2.5,attrs:E};pdt(p,C);let D=f.boundaryFont();D.fontWeight="bold",D.fontSize=D.fontSize+2,D.fontColor=b,k5(f)(a.label.text,p,a.x,a.y+a.label.Y,a.width,a.height,{fill:"#444444"},D),a.type&&a.type.text!==""&&(D=f.boundaryFont(),D.fontColor=b,k5(f)(a.type.text,p,a.x,a.y+a.type.Y,a.width,a.height,{fill:"#444444"},D)),a.descr&&a.descr.text!==""&&(D=f.boundaryFont(),D.fontSize=D.fontSize-2,D.fontColor=b,k5(f)(a.descr.text,p,a.x,a.y+a.descr.Y,a.width,a.height,{fill:"#444444"},D))},PLe=function(i,a,f){var B;let p=a.bgColor?a.bgColor:f[a.typeC4Shape.text+"_bg_color"],v=a.borderColor?a.borderColor:f[a.typeC4Shape.text+"_border_color"],m=a.fontColor?a.fontColor:"#FFFFFF",b="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";switch(a.typeC4Shape.text){case"person":b="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";break;case"external_person":b="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAB6ElEQVR4Xu2YLY+EMBCG9+dWr0aj0Wg0Go1Go0+j8Xdv2uTCvv1gpt0ebHKPuhDaeW4605Z9mJvx4AdXUyTUdd08z+u6flmWZRnHsWkafk9DptAwDPu+f0eAYtu2PEaGWuj5fCIZrBAC2eLBAnRCsEkkxmeaJp7iDJ2QMDdHsLg8SxKFEJaAo8lAXnmuOFIhTMpxxKATebo4UiFknuNo4OniSIXQyRxEA3YsnjGCVEjVXD7yLUAqxBGUyPv/Y4W2beMgGuS7kVQIBycH0fD+oi5pezQETxdHKmQKGk1eQEYldK+jw5GxPfZ9z7Mk0Qnhf1W1m3w//EUn5BDmSZsbR44QQLBEqrBHqOrmSKaQAxdnLArCrxZcM7A7ZKs4ioRq8LFC+NpC3WCBJsvpVw5edm9iEXFuyNfxXAgSwfrFQ1c0iNda8AdejvUgnktOtJQQxmcfFzGglc5WVCj7oDgFqU18boeFSs52CUh8LE8BIVQDT1ABrB0HtgSEYlX5doJnCwv9TXocKCaKbnwhdDKPq4lf3SwU3HLq4V/+WYhHVMa/3b4IlfyikAduCkcBc7mQ3/z/Qq/cTuikhkzB12Ae/mcJC9U+Vo8Ej1gWAtgbeGgFsAMHr50BIWOLCbezvhpBFUdY6EJuJ/QDW0XoMX60zZ0AAAAASUVORK5CYII=";break}const E=i.append("g");E.attr("class","person-man");const C=aE();switch(a.typeC4Shape.text){case"person":case"external_person":case"system":case"external_system":case"container":case"external_container":case"component":case"external_component":C.x=a.x,C.y=a.y,C.fill=p,C.width=a.width,C.height=a.height,C.stroke=v,C.rx=2.5,C.ry=2.5,C.attrs={"stroke-width":.5},pdt(E,C);break;case"system_db":case"external_system_db":case"container_db":case"external_container_db":case"component_db":case"external_component_db":E.append("path").attr("fill",p).attr("stroke-width","0.5").attr("stroke",v).attr("d","Mstartx,startyc0,-10 half,-10 half,-10c0,0 half,0 half,10l0,heightc0,10 -half,10 -half,10c0,0 -half,0 -half,-10l0,-height".replaceAll("startx",a.x).replaceAll("starty",a.y).replaceAll("half",a.width/2).replaceAll("height",a.height)),E.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",v).attr("d","Mstartx,startyc0,10 half,10 half,10c0,0 half,0 half,-10".replaceAll("startx",a.x).replaceAll("starty",a.y).replaceAll("half",a.width/2));break;case"system_queue":case"external_system_queue":case"container_queue":case"external_container_queue":case"component_queue":case"external_component_queue":E.append("path").attr("fill",p).attr("stroke-width","0.5").attr("stroke",v).attr("d","Mstartx,startylwidth,0c5,0 5,half 5,halfc0,0 0,half -5,halfl-width,0c-5,0 -5,-half -5,-halfc0,0 0,-half 5,-half".replaceAll("startx",a.x).replaceAll("starty",a.y).replaceAll("width",a.width).replaceAll("half",a.height/2)),E.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",v).attr("d","Mstartx,startyc-5,0 -5,half -5,halfc0,half 5,half 5,half".replaceAll("startx",a.x+a.width).replaceAll("starty",a.y).replaceAll("half",a.height/2));break}let D=VLe(f,a.typeC4Shape.text);switch(E.append("text").attr("fill",m).attr("font-family",D.fontFamily).attr("font-size",D.fontSize-2).attr("font-style","italic").attr("lengthAdjust","spacing").attr("textLength",a.typeC4Shape.width).attr("x",a.x+a.width/2-a.typeC4Shape.width/2).attr("y",a.y+a.typeC4Shape.Y).text("<<"+a.typeC4Shape.text+">>"),a.typeC4Shape.text){case"person":case"external_person":LOt(E,48,48,a.x+a.width/2-24,a.y+a.image.Y,b);break}let P=f[a.typeC4Shape.text+"Font"]();return P.fontWeight="bold",P.fontSize=P.fontSize+2,P.fontColor=m,k5(f)(a.label.text,E,a.x,a.y+a.label.Y,a.width,a.height,{fill:m},P),P=f[a.typeC4Shape.text+"Font"](),P.fontColor=m,a.techn&&((B=a.techn)==null?void 0:B.text)!==""?k5(f)(a.techn.text,E,a.x,a.y+a.techn.Y,a.width,a.height,{fill:m,"font-style":"italic"},P):a.type&&a.type.text!==""&&k5(f)(a.type.text,E,a.x,a.y+a.type.Y,a.width,a.height,{fill:m,"font-style":"italic"},P),a.descr&&a.descr.text!==""&&(P=f.personFont(),P.fontColor=m,k5(f)(a.descr.text,E,a.x,a.y+a.descr.Y,a.width,a.height,{fill:m},P)),a.height},FLe=function(i){i.append("defs").append("symbol").attr("id","database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},BLe=function(i){i.append("defs").append("symbol").attr("id","computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},RLe=function(i){i.append("defs").append("symbol").attr("id","clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},jLe=function(i){i.append("defs").append("marker").attr("id","arrowhead").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")},$Le=function(i){i.append("defs").append("marker").attr("id","arrowend").attr("refX",1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z")},zLe=function(i){i.append("defs").append("marker").attr("id","filled-head").attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},qLe=function(i){i.append("defs").append("marker").attr("id","sequencenumber").attr("refX",15).attr("refY",15).attr("markerWidth",60).attr("markerHeight",40).attr("orient","auto").append("circle").attr("cx",15).attr("cy",15).attr("r",6)},HLe=function(i){const f=i.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);f.append("path").attr("fill","black").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 9,2 V 6 L16,4 Z"),f.append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 0,1 L 6,7 M 6,1 L 0,7")},VLe=(i,a)=>({fontFamily:i[a+"FontFamily"],fontSize:i[a+"FontSize"],fontWeight:i[a+"FontWeight"]}),k5=function(){function i(v,m,b,E,C,D,P){const B=m.append("text").attr("x",b+C/2).attr("y",E+D/2+5).style("text-anchor","middle").text(v);p(B,P)}function a(v,m,b,E,C,D,P,B){const{fontSize:j,fontFamily:R,fontWeight:H}=B,Y=v.split(yi.lineBreakRegex);for(let it=0;it=this.data.widthLimit||p>=this.data.widthLimit||this.nextData.cnt>MOt)&&(f=this.nextData.startx+a.margin+Ss.nextLinePaddingX,v=this.nextData.stopy+a.margin*2,this.nextData.stopx=p=f+a.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=m=v+a.height,this.nextData.cnt=1),a.x=f,a.y=v,this.updateVal(this.data,"startx",f,Math.min),this.updateVal(this.data,"starty",v,Math.min),this.updateVal(this.data,"stopx",p,Math.max),this.updateVal(this.data,"stopy",m,Math.max),this.updateVal(this.nextData,"startx",f,Math.min),this.updateVal(this.nextData,"starty",v,Math.min),this.updateVal(this.nextData,"stopx",p,Math.max),this.updateVal(this.nextData,"stopy",m,Math.max)}init(a){this.name="",this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,widthLimit:void 0},this.nextData={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,cnt:0},vdt(a.db.getConfig())}bumpLastMargin(a){this.data.stopx+=a,this.data.stopy+=a}}const vdt=function(i){rd(Ss,i),i.fontFamily&&(Ss.personFontFamily=Ss.systemFontFamily=Ss.messageFontFamily=i.fontFamily),i.fontSize&&(Ss.personFontSize=Ss.systemFontSize=Ss.messageFontSize=i.fontSize),i.fontWeight&&(Ss.personFontWeight=Ss.systemFontWeight=Ss.messageFontWeight=i.fontWeight)},XN=(i,a)=>({fontFamily:i[a+"FontFamily"],fontSize:i[a+"FontSize"],fontWeight:i[a+"FontWeight"]}),NW=i=>({fontFamily:i.boundaryFontFamily,fontSize:i.boundaryFontSize,fontWeight:i.boundaryFontWeight}),GLe=i=>({fontFamily:i.messageFontFamily,fontSize:i.messageFontSize,fontWeight:i.messageFontWeight});function em(i,a,f,p,v){if(!a[i].width)if(f)a[i].text=EIt(a[i].text,v,p),a[i].textLines=a[i].text.split(yi.lineBreakRegex).length,a[i].width=v,a[i].height=K1t(a[i].text,p);else{let m=a[i].text.split(yi.lineBreakRegex);a[i].textLines=m.length;let b=0;a[i].height=0,a[i].width=0;for(const E of m)a[i].width=Math.max(u3(E,p),a[i].width),b=K1t(E,p),a[i].height=a[i].height+b}}const IOt=function(i,a,f){a.x=f.data.startx,a.y=f.data.starty,a.width=f.data.stopx-f.data.startx,a.height=f.data.stopy-f.data.starty,a.label.y=Ss.c4ShapeMargin-35;let p=a.wrap&&Ss.wrap,v=NW(Ss);v.fontSize=v.fontSize+2,v.fontWeight="bold";let m=u3(a.label.text,v);em("label",a,p,v,m),f3.drawBoundary(i,a,Ss)},OOt=function(i,a,f,p){let v=0;for(const m of p){v=0;const b=f[m];let E=XN(Ss,b.typeC4Shape.text);switch(E.fontSize=E.fontSize-2,b.typeC4Shape.width=u3("<<"+b.typeC4Shape.text+">>",E),b.typeC4Shape.height=E.fontSize+2,b.typeC4Shape.Y=Ss.c4ShapePadding,v=b.typeC4Shape.Y+b.typeC4Shape.height-4,b.image={width:0,height:0,Y:0},b.typeC4Shape.text){case"person":case"external_person":b.image.width=48,b.image.height=48,b.image.Y=v,v=b.image.Y+b.image.height;break}b.sprite&&(b.image.width=48,b.image.height=48,b.image.Y=v,v=b.image.Y+b.image.height);let C=b.wrap&&Ss.wrap,D=Ss.width-Ss.c4ShapePadding*2,P=XN(Ss,b.typeC4Shape.text);if(P.fontSize=P.fontSize+2,P.fontWeight="bold",em("label",b,C,P,D),b.label.Y=v+8,v=b.label.Y+b.label.height,b.type&&b.type.text!==""){b.type.text="["+b.type.text+"]";let R=XN(Ss,b.typeC4Shape.text);em("type",b,C,R,D),b.type.Y=v+5,v=b.type.Y+b.type.height}else if(b.techn&&b.techn.text!==""){b.techn.text="["+b.techn.text+"]";let R=XN(Ss,b.techn.text);em("techn",b,C,R,D),b.techn.Y=v+5,v=b.techn.Y+b.techn.height}let B=v,j=b.label.width;if(b.descr&&b.descr.text!==""){let R=XN(Ss,b.typeC4Shape.text);em("descr",b,C,R,D),b.descr.Y=v+20,v=b.descr.Y+b.descr.height,j=Math.max(b.label.width,b.descr.width),B=v-b.descr.textLines*5}j=j+Ss.c4ShapePadding,b.width=Math.max(b.width||Ss.width,j,Ss.width),b.height=Math.max(b.height||Ss.height,B,Ss.height),b.margin=b.margin||Ss.c4ShapeMargin,i.insert(b),f3.drawC4Shape(a,b,Ss)}i.bumpLastMargin(Ss.c4ShapeMargin)};let Zb=class{constructor(a,f){this.x=a,this.y=f}},NOt=function(i,a){let f=i.x,p=i.y,v=a.x,m=a.y,b=f+i.width/2,E=p+i.height/2,C=Math.abs(f-v),D=Math.abs(p-m),P=D/C,B=i.height/i.width,j=null;return p==m&&fv?j=new Zb(f,E):f==v&&pm&&(j=new Zb(b,p)),f>v&&p=P?j=new Zb(f,E+P*i.width/2):j=new Zb(b-C/D*i.height/2,p+i.height):f=P?j=new Zb(f+i.width,E+P*i.width/2):j=new Zb(b+C/D*i.height/2,p+i.height):fm?B>=P?j=new Zb(f+i.width,E-P*i.width/2):j=new Zb(b+i.height/2*C/D,p):f>v&&p>m&&(B>=P?j=new Zb(f,E-i.width/2*P):j=new Zb(b-i.height/2*C/D,p)),j},ULe=function(i,a){let f={x:0,y:0};f.x=a.x+a.width/2,f.y=a.y+a.height/2;let p=NOt(i,f);f.x=i.x+i.width/2,f.y=i.y+i.height/2;let v=NOt(a,f);return{startPoint:p,endPoint:v}};const WLe=function(i,a,f,p){let v=0;for(let m of a){v=v+1;let b=m.wrap&&Ss.wrap,E=GLe(Ss);p.db.getC4Type()==="C4Dynamic"&&(m.label.text=v+": "+m.label.text);let D=u3(m.label.text,E);em("label",m,b,E,D),m.techn&&m.techn.text!==""&&(D=u3(m.techn.text,E),em("techn",m,b,E,D)),m.descr&&m.descr.text!==""&&(D=u3(m.descr.text,E),em("descr",m,b,E,D));let P=f(m.from),B=f(m.to),j=ULe(P,B);m.startPoint=j.startPoint,m.endPoint=j.endPoint}f3.drawRels(i,a,Ss)};function POt(i,a,f,p,v){let m=new DOt(v);m.data.widthLimit=f.data.widthLimit/Math.min(bdt,p.length);for(let[b,E]of p.entries()){let C=0;E.image={width:0,height:0,Y:0},E.sprite&&(E.image.width=48,E.image.height=48,E.image.Y=C,C=E.image.Y+E.image.height);let D=E.wrap&&Ss.wrap,P=NW(Ss);if(P.fontSize=P.fontSize+2,P.fontWeight="bold",em("label",E,D,P,m.data.widthLimit),E.label.Y=C+8,C=E.label.Y+E.label.height,E.type&&E.type.text!==""){E.type.text="["+E.type.text+"]";let H=NW(Ss);em("type",E,D,H,m.data.widthLimit),E.type.Y=C+5,C=E.type.Y+E.type.height}if(E.descr&&E.descr.text!==""){let H=NW(Ss);H.fontSize=H.fontSize-2,em("descr",E,D,H,m.data.widthLimit),E.descr.Y=C+20,C=E.descr.Y+E.descr.height}if(b==0||b%bdt===0){let H=f.data.startx+Ss.diagramMarginX,Y=f.data.stopy+Ss.diagramMarginY+C;m.setData(H,H,Y,Y)}else{let H=m.data.stopx!==m.data.startx?m.data.stopx+Ss.diagramMarginX:m.data.startx,Y=m.data.starty;m.setData(H,H,Y,Y)}m.name=E.alias;let B=v.db.getC4ShapeArray(E.alias),j=v.db.getC4ShapeKeys(E.alias);j.length>0&&OOt(m,i,B,j),a=E.alias;let R=v.db.getBoundarys(a);R.length>0&&POt(i,a,m,R,v),E.alias!=="global"&&IOt(i,E,m),f.data.stopy=Math.max(m.data.stopy+Ss.c4ShapeMargin,f.data.stopy),f.data.stopx=Math.max(m.data.stopx+Ss.c4ShapeMargin,f.data.stopx),IW=Math.max(IW,f.data.stopx),OW=Math.max(OW,f.data.stopy)}}const FOt={drawPersonOrSystemArray:OOt,drawBoundary:IOt,setConf:vdt,draw:function(i,a,f,p){Ss=Oe().c4;const v=Oe().securityLevel;let m;v==="sandbox"&&(m=Mr("#i"+a));const b=Mr(v==="sandbox"?m.nodes()[0].contentDocument.body:"body");let E=p.db;p.db.setWrap(Ss.wrap),MOt=E.getC4ShapeInRow(),bdt=E.getC4BoundaryInRow(),zt.debug(`C:${JSON.stringify(Ss,null,2)}`);const C=v==="sandbox"?b.select(`[id="${a}"]`):Mr(`[id="${a}"]`);f3.insertComputerIcon(C),f3.insertDatabaseIcon(C),f3.insertClockIcon(C);let D=new DOt(p);D.setData(Ss.diagramMarginX,Ss.diagramMarginX,Ss.diagramMarginY,Ss.diagramMarginY),D.data.widthLimit=screen.availWidth,IW=Ss.diagramMarginX,OW=Ss.diagramMarginY;const P=p.db.getTitle();let B=p.db.getBoundarys("");POt(C,"",D,B,p),f3.insertArrowHead(C),f3.insertArrowEnd(C),f3.insertArrowCrossHead(C),f3.insertArrowFilledHead(C),WLe(C,p.db.getRels(),p.db.getC4Shape,p),D.data.stopx=IW,D.data.stopy=OW;const j=D.data;let H=j.stopy-j.starty+2*Ss.diagramMarginY;const it=j.stopx-j.startx+2*Ss.diagramMarginX;P&&C.append("text").text(P).attr("x",(j.stopx-j.startx)/2-4*Ss.diagramMarginX).attr("y",j.starty+Ss.diagramMarginY),Wb(C,H,it,Ss.useMaxWidth);const nt=P?60:0;C.attr("viewBox",j.startx-Ss.diagramMarginX+" -"+(Ss.diagramMarginY+nt)+" "+it+" "+(H+nt)),zt.debug("models:",j)}},KLe=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:sLe,db:SOt,renderer:FOt,styles:i=>`.person { - stroke: ${i.personBorder}; - fill: ${i.personBkg}; - } -`,init:i=>{FOt.setConf(i.c4)}}},Symbol.toStringTag,{value:"Module"}));var wdt=function(){var i=function(dg,cs,zs,Ma){for(zs=zs||{},Ma=dg.length;Ma--;zs[dg[Ma]]=cs);return zs},a=[1,9],f=[1,7],p=[1,6],v=[1,8],m=[1,20,21,22,23,38,44,46,48,52,66,67,87,88,89,90,91,92,96,106,107,110,112,113,119,120,121,122,123,124,125,126,127,128],b=[2,10],E=[1,20],C=[1,21],D=[1,22],P=[1,23],B=[1,30],j=[1,32],R=[1,33],H=[1,34],Y=[1,62],it=[1,48],nt=[1,52],st=[1,36],pt=[1,37],Tt=[1,38],kt=[1,39],yt=[1,40],ht=[1,56],mt=[1,63],rt=[1,51],wt=[1,53],gt=[1,55],lt=[1,59],_t=[1,60],X=[1,41],Rt=[1,42],ft=[1,43],de=[1,44],J=[1,61],ae=[1,50],Wt=[1,54],It=[1,57],Nt=[1,58],me=[1,49],Ue=[1,66],_n=[1,71],_e=[1,20,21,22,23,38,42,44,46,48,52,66,67,87,88,89,90,91,92,96,106,107,110,112,113,119,120,121,122,123,124,125,126,127,128],rr=[1,75],Te=[1,74],ne=[1,76],Ee=[20,21,23,81,82],ye=[1,99],Vt=[1,104],Ae=[1,107],Gt=[1,108],un=[1,101],jt=[1,106],Ke=[1,109],oe=[1,102],Or=[1,114],Le=[1,113],Nr=[1,103],fe=[1,105],sr=[1,110],Yn=[1,111],tr=[1,112],ur=[1,115],gn=[20,21,22,23,81,82],En=[20,21,22,23,53,81,82],Dr=[20,21,22,23,40,52,53,55,57,59,61,63,65,66,67,69,71,73,74,76,81,82,92,96,106,107,110,112,113,123,124,125,126,127,128],hr=[20,21,23],Ki=[20,21,23,52,66,67,81,82,92,96,106,107,110,112,113,123,124,125,126,127,128],Is=[1,12,20,21,22,23,24,38,42,44,46,48,52,66,67,87,88,89,90,91,92,96,106,107,110,112,113,119,120,121,122,123,124,125,126,127,128],Ha=[52,66,67,92,96,106,107,110,112,113,123,124,125,126,127,128],hi=[1,150],qi=[1,158],zn=[1,159],Zn=[1,160],Pr=[1,161],On=[1,145],xi=[1,146],In=[1,141],rc=[1,142],qn=[1,153],ss=[1,154],Aa=[1,155],Ya=[1,156],Ea=[1,157],ga=[1,162],Es=[1,163],Bs=[1,148],Ta=[1,151],La=[1,147],Va=[1,144],sv=[20,21,22,23,38,42,44,46,48,52,66,67,87,88,89,90,91,92,96,106,107,110,112,113,119,120,121,122,123,124,125,126,127,128],rl=[1,166],mu=[20,21,22,23,26,52,66,67,92,106,107,110,112,113,123,124,125,126,127,128],As=[20,21,22,23,24,26,38,40,41,42,52,56,58,60,62,64,66,67,68,70,72,73,75,77,81,82,87,88,89,90,91,92,93,96,106,107,110,112,113,114,115,123,124,125,126,127,128],gp=[12,21,22,24],sd=[22,107],Rl=[1,251],$u=[1,246],Gi=[1,247],He=[1,255],Er=[1,252],ci=[1,249],Xa=[1,248],kc=[1,250],yu=[1,253],mo=[1,254],xu=[1,256],cf=[1,274],x3=[20,21,23,107],v1=[20,21,22,23,66,67,87,103,106,107,110,111,112,113,114],k3={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,directive:5,openDirective:6,typeDirective:7,closeDirective:8,separator:9,":":10,argDirective:11,open_directive:12,type_directive:13,arg_directive:14,close_directive:15,graphConfig:16,document:17,line:18,statement:19,SEMI:20,NEWLINE:21,SPACE:22,EOF:23,GRAPH:24,NODIR:25,DIR:26,FirstStmtSeperator:27,ending:28,endToken:29,spaceList:30,spaceListNewline:31,verticeStatement:32,styleStatement:33,linkStyleStatement:34,classDefStatement:35,classStatement:36,clickStatement:37,subgraph:38,text:39,SQS:40,SQE:41,end:42,direction:43,acc_title:44,acc_title_value:45,acc_descr:46,acc_descr_value:47,acc_descr_multiline_value:48,link:49,node:50,vertex:51,AMP:52,STYLE_SEPARATOR:53,idString:54,DOUBLECIRCLESTART:55,DOUBLECIRCLEEND:56,PS:57,PE:58,"(-":59,"-)":60,STADIUMSTART:61,STADIUMEND:62,SUBROUTINESTART:63,SUBROUTINEEND:64,VERTEX_WITH_PROPS_START:65,ALPHA:66,COLON:67,PIPE:68,CYLINDERSTART:69,CYLINDEREND:70,DIAMOND_START:71,DIAMOND_STOP:72,TAGEND:73,TRAPSTART:74,TRAPEND:75,INVTRAPSTART:76,INVTRAPEND:77,linkStatement:78,arrowText:79,TESTSTR:80,START_LINK:81,LINK:82,textToken:83,STR:84,MD_STR:85,keywords:86,STYLE:87,LINKSTYLE:88,CLASSDEF:89,CLASS:90,CLICK:91,DOWN:92,UP:93,textNoTags:94,textNoTagsToken:95,DEFAULT:96,stylesOpt:97,alphaNum:98,CALLBACKNAME:99,CALLBACKARGS:100,HREF:101,LINK_TARGET:102,HEX:103,numList:104,INTERPOLATE:105,NUM:106,COMMA:107,style:108,styleComponent:109,MINUS:110,UNIT:111,BRKT:112,DOT:113,PCT:114,TAGSTART:115,alphaNumToken:116,idStringToken:117,alphaNumStatement:118,direction_tb:119,direction_bt:120,direction_rl:121,direction_lr:122,PUNCTUATION:123,UNICODE_TEXT:124,PLUS:125,EQUALS:126,MULT:127,UNDERSCORE:128,graphCodeTokens:129,ARROW_CROSS:130,ARROW_POINT:131,ARROW_CIRCLE:132,ARROW_OPEN:133,QUOTE:134,$accept:0,$end:1},terminals_:{2:"error",10:":",12:"open_directive",13:"type_directive",14:"arg_directive",15:"close_directive",20:"SEMI",21:"NEWLINE",22:"SPACE",23:"EOF",24:"GRAPH",25:"NODIR",26:"DIR",38:"subgraph",40:"SQS",41:"SQE",42:"end",44:"acc_title",45:"acc_title_value",46:"acc_descr",47:"acc_descr_value",48:"acc_descr_multiline_value",52:"AMP",53:"STYLE_SEPARATOR",55:"DOUBLECIRCLESTART",56:"DOUBLECIRCLEEND",57:"PS",58:"PE",59:"(-",60:"-)",61:"STADIUMSTART",62:"STADIUMEND",63:"SUBROUTINESTART",64:"SUBROUTINEEND",65:"VERTEX_WITH_PROPS_START",66:"ALPHA",67:"COLON",68:"PIPE",69:"CYLINDERSTART",70:"CYLINDEREND",71:"DIAMOND_START",72:"DIAMOND_STOP",73:"TAGEND",74:"TRAPSTART",75:"TRAPEND",76:"INVTRAPSTART",77:"INVTRAPEND",80:"TESTSTR",81:"START_LINK",82:"LINK",84:"STR",85:"MD_STR",87:"STYLE",88:"LINKSTYLE",89:"CLASSDEF",90:"CLASS",91:"CLICK",92:"DOWN",93:"UP",96:"DEFAULT",99:"CALLBACKNAME",100:"CALLBACKARGS",101:"HREF",102:"LINK_TARGET",103:"HEX",105:"INTERPOLATE",106:"NUM",107:"COMMA",110:"MINUS",111:"UNIT",112:"BRKT",113:"DOT",114:"PCT",115:"TAGSTART",119:"direction_tb",120:"direction_bt",121:"direction_rl",122:"direction_lr",123:"PUNCTUATION",124:"UNICODE_TEXT",125:"PLUS",126:"EQUALS",127:"MULT",128:"UNDERSCORE",130:"ARROW_CROSS",131:"ARROW_POINT",132:"ARROW_CIRCLE",133:"ARROW_OPEN",134:"QUOTE"},productions_:[0,[3,1],[3,2],[5,4],[5,6],[6,1],[7,1],[11,1],[8,1],[4,2],[17,0],[17,2],[18,1],[18,1],[18,1],[18,1],[18,1],[16,2],[16,2],[16,2],[16,3],[28,2],[28,1],[29,1],[29,1],[29,1],[27,1],[27,1],[27,2],[31,2],[31,2],[31,1],[31,1],[30,2],[30,1],[19,2],[19,2],[19,2],[19,2],[19,2],[19,2],[19,9],[19,6],[19,4],[19,1],[19,2],[19,2],[19,1],[9,1],[9,1],[9,1],[32,3],[32,4],[32,2],[32,1],[50,1],[50,5],[50,3],[51,4],[51,4],[51,6],[51,4],[51,4],[51,4],[51,8],[51,4],[51,4],[51,4],[51,6],[51,4],[51,4],[51,4],[51,4],[51,4],[51,1],[49,2],[49,3],[49,3],[49,1],[49,3],[78,1],[79,3],[39,1],[39,2],[39,1],[39,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[94,1],[94,2],[35,5],[35,5],[36,5],[37,2],[37,4],[37,3],[37,5],[37,2],[37,4],[37,4],[37,6],[37,2],[37,4],[37,2],[37,4],[37,4],[37,6],[33,5],[33,5],[34,5],[34,5],[34,9],[34,9],[34,7],[34,7],[104,1],[104,3],[97,1],[97,3],[108,1],[108,2],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[95,1],[95,1],[95,1],[95,1],[54,1],[54,2],[98,1],[98,2],[118,1],[118,1],[118,1],[118,1],[43,1],[43,1],[43,1],[43,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[129,1],[129,1],[129,1],[129,1],[129,1],[129,1],[129,1],[129,1],[129,1],[129,1],[129,1],[129,1],[129,1],[129,1],[129,1],[129,1],[129,1],[129,1],[129,1],[129,1],[129,1],[129,1],[129,1],[129,1],[129,1],[129,1]],performAction:function(cs,zs,Ma,Ei,Rc,Ne,pp){var We=Ne.length-1;switch(Rc){case 5:Ei.parseDirective("%%{","open_directive");break;case 6:Ei.parseDirective(Ne[We],"type_directive");break;case 7:Ne[We]=Ne[We].trim().replace(/'/g,'"'),Ei.parseDirective(Ne[We],"arg_directive");break;case 8:Ei.parseDirective("}%%","close_directive","flowchart");break;case 10:this.$=[];break;case 11:(!Array.isArray(Ne[We])||Ne[We].length>0)&&Ne[We-1].push(Ne[We]),this.$=Ne[We-1];break;case 12:case 97:case 153:case 155:case 156:this.$=Ne[We];break;case 19:Ei.setDirection("TB"),this.$="TB";break;case 20:Ei.setDirection(Ne[We-1]),this.$=Ne[We-1];break;case 35:this.$=Ne[We-1].nodes;break;case 36:case 37:case 38:case 39:case 40:this.$=[];break;case 41:this.$=Ei.addSubGraph(Ne[We-6],Ne[We-1],Ne[We-4]);break;case 42:this.$=Ei.addSubGraph(Ne[We-3],Ne[We-1],Ne[We-3]);break;case 43:this.$=Ei.addSubGraph(void 0,Ne[We-1],void 0);break;case 45:this.$=Ne[We].trim(),Ei.setAccTitle(this.$);break;case 46:case 47:this.$=Ne[We].trim(),Ei.setAccDescription(this.$);break;case 51:Ei.addLink(Ne[We-2].stmt,Ne[We],Ne[We-1]),this.$={stmt:Ne[We],nodes:Ne[We].concat(Ne[We-2].nodes)};break;case 52:Ei.addLink(Ne[We-3].stmt,Ne[We-1],Ne[We-2]),this.$={stmt:Ne[We-1],nodes:Ne[We-1].concat(Ne[We-3].nodes)};break;case 53:this.$={stmt:Ne[We-1],nodes:Ne[We-1]};break;case 54:this.$={stmt:Ne[We],nodes:Ne[We]};break;case 55:this.$=[Ne[We]];break;case 56:this.$=Ne[We-4].concat(Ne[We]);break;case 57:this.$=[Ne[We-2]],Ei.setClass(Ne[We-2],Ne[We]);break;case 58:this.$=Ne[We-3],Ei.addVertex(Ne[We-3],Ne[We-1],"square");break;case 59:this.$=Ne[We-3],Ei.addVertex(Ne[We-3],Ne[We-1],"doublecircle");break;case 60:this.$=Ne[We-5],Ei.addVertex(Ne[We-5],Ne[We-2],"circle");break;case 61:this.$=Ne[We-3],Ei.addVertex(Ne[We-3],Ne[We-1],"ellipse");break;case 62:this.$=Ne[We-3],Ei.addVertex(Ne[We-3],Ne[We-1],"stadium");break;case 63:this.$=Ne[We-3],Ei.addVertex(Ne[We-3],Ne[We-1],"subroutine");break;case 64:this.$=Ne[We-7],Ei.addVertex(Ne[We-7],Ne[We-1],"rect",void 0,void 0,void 0,Object.fromEntries([[Ne[We-5],Ne[We-3]]]));break;case 65:this.$=Ne[We-3],Ei.addVertex(Ne[We-3],Ne[We-1],"cylinder");break;case 66:this.$=Ne[We-3],Ei.addVertex(Ne[We-3],Ne[We-1],"round");break;case 67:this.$=Ne[We-3],Ei.addVertex(Ne[We-3],Ne[We-1],"diamond");break;case 68:this.$=Ne[We-5],Ei.addVertex(Ne[We-5],Ne[We-2],"hexagon");break;case 69:this.$=Ne[We-3],Ei.addVertex(Ne[We-3],Ne[We-1],"odd");break;case 70:this.$=Ne[We-3],Ei.addVertex(Ne[We-3],Ne[We-1],"trapezoid");break;case 71:this.$=Ne[We-3],Ei.addVertex(Ne[We-3],Ne[We-1],"inv_trapezoid");break;case 72:this.$=Ne[We-3],Ei.addVertex(Ne[We-3],Ne[We-1],"lean_right");break;case 73:this.$=Ne[We-3],Ei.addVertex(Ne[We-3],Ne[We-1],"lean_left");break;case 74:this.$=Ne[We],Ei.addVertex(Ne[We]);break;case 75:Ne[We-1].text=Ne[We],this.$=Ne[We-1];break;case 76:case 77:Ne[We-2].text=Ne[We-1],this.$=Ne[We-2];break;case 78:this.$=Ne[We];break;case 79:var uf=Ei.destructLink(Ne[We],Ne[We-2]);this.$={type:uf.type,stroke:uf.stroke,length:uf.length,text:Ne[We-1]};break;case 80:var uf=Ei.destructLink(Ne[We]);this.$={type:uf.type,stroke:uf.stroke,length:uf.length};break;case 81:this.$=Ne[We-1];break;case 82:this.$={text:Ne[We],type:"text"};break;case 83:this.$={text:Ne[We-1].text+""+Ne[We],type:Ne[We-1].type};break;case 84:this.$={text:Ne[We],type:"text"};break;case 85:this.$={text:Ne[We],type:"markdown"};break;case 98:case 154:this.$=Ne[We-1]+""+Ne[We];break;case 99:case 100:this.$=Ne[We-4],Ei.addClass(Ne[We-2],Ne[We]);break;case 101:this.$=Ne[We-4],Ei.setClass(Ne[We-2],Ne[We]);break;case 102:case 110:this.$=Ne[We-1],Ei.setClickEvent(Ne[We-1],Ne[We]);break;case 103:case 111:this.$=Ne[We-3],Ei.setClickEvent(Ne[We-3],Ne[We-2]),Ei.setTooltip(Ne[We-3],Ne[We]);break;case 104:this.$=Ne[We-2],Ei.setClickEvent(Ne[We-2],Ne[We-1],Ne[We]);break;case 105:this.$=Ne[We-4],Ei.setClickEvent(Ne[We-4],Ne[We-3],Ne[We-2]),Ei.setTooltip(Ne[We-4],Ne[We]);break;case 106:case 112:this.$=Ne[We-1],Ei.setLink(Ne[We-1],Ne[We]);break;case 107:case 113:this.$=Ne[We-3],Ei.setLink(Ne[We-3],Ne[We-2]),Ei.setTooltip(Ne[We-3],Ne[We]);break;case 108:case 114:this.$=Ne[We-3],Ei.setLink(Ne[We-3],Ne[We-2],Ne[We]);break;case 109:case 115:this.$=Ne[We-5],Ei.setLink(Ne[We-5],Ne[We-4],Ne[We]),Ei.setTooltip(Ne[We-5],Ne[We-2]);break;case 116:this.$=Ne[We-4],Ei.addVertex(Ne[We-2],void 0,void 0,Ne[We]);break;case 117:case 119:this.$=Ne[We-4],Ei.updateLink(Ne[We-2],Ne[We]);break;case 118:this.$=Ne[We-4],Ei.updateLink([Ne[We-2]],Ne[We]);break;case 120:this.$=Ne[We-8],Ei.updateLinkInterpolate([Ne[We-6]],Ne[We-2]),Ei.updateLink([Ne[We-6]],Ne[We]);break;case 121:this.$=Ne[We-8],Ei.updateLinkInterpolate(Ne[We-6],Ne[We-2]),Ei.updateLink(Ne[We-6],Ne[We]);break;case 122:this.$=Ne[We-6],Ei.updateLinkInterpolate([Ne[We-4]],Ne[We]);break;case 123:this.$=Ne[We-6],Ei.updateLinkInterpolate(Ne[We-4],Ne[We]);break;case 124:case 126:this.$=[Ne[We]];break;case 125:case 127:Ne[We-2].push(Ne[We]),this.$=Ne[We-2];break;case 129:this.$=Ne[We-1]+Ne[We];break;case 151:this.$=Ne[We];break;case 152:this.$=Ne[We-1]+""+Ne[We];break;case 157:this.$="v";break;case 158:this.$="-";break;case 159:this.$={stmt:"dir",value:"TB"};break;case 160:this.$={stmt:"dir",value:"BT"};break;case 161:this.$={stmt:"dir",value:"RL"};break;case 162:this.$={stmt:"dir",value:"LR"};break}},table:[{3:1,4:2,5:3,6:5,12:a,16:4,21:f,22:p,24:v},{1:[3]},{1:[2,1]},{3:10,4:2,5:3,6:5,12:a,16:4,21:f,22:p,24:v},i(m,b,{17:11}),{7:12,13:[1,13]},{16:14,21:f,22:p,24:v},{16:15,21:f,22:p,24:v},{25:[1,16],26:[1,17]},{13:[2,5]},{1:[2,2]},{1:[2,9],18:18,19:19,20:E,21:C,22:D,23:P,32:24,33:25,34:26,35:27,36:28,37:29,38:B,43:31,44:j,46:R,48:H,50:35,51:45,52:Y,54:46,66:it,67:nt,87:st,88:pt,89:Tt,90:kt,91:yt,92:ht,96:mt,106:rt,107:wt,110:gt,112:lt,113:_t,117:47,119:X,120:Rt,121:ft,122:de,123:J,124:ae,125:Wt,126:It,127:Nt,128:me},{8:64,10:[1,65],15:Ue},i([10,15],[2,6]),i(m,[2,17]),i(m,[2,18]),i(m,[2,19]),{20:[1,68],21:[1,69],22:_n,27:67,30:70},i(_e,[2,11]),i(_e,[2,12]),i(_e,[2,13]),i(_e,[2,14]),i(_e,[2,15]),i(_e,[2,16]),{9:72,20:rr,21:Te,23:ne,49:73,78:77,81:[1,78],82:[1,79]},{9:80,20:rr,21:Te,23:ne},{9:81,20:rr,21:Te,23:ne},{9:82,20:rr,21:Te,23:ne},{9:83,20:rr,21:Te,23:ne},{9:84,20:rr,21:Te,23:ne},{9:86,20:rr,21:Te,22:[1,85],23:ne},i(_e,[2,44]),{45:[1,87]},{47:[1,88]},i(_e,[2,47]),i(Ee,[2,54],{30:89,22:_n}),{22:[1,90]},{22:[1,91]},{22:[1,92]},{22:[1,93]},{26:ye,52:Vt,66:Ae,67:Gt,84:[1,97],92:un,98:96,99:[1,94],101:[1,95],106:jt,107:Ke,110:oe,112:Or,113:Le,116:100,118:98,123:Nr,124:fe,125:sr,126:Yn,127:tr,128:ur},i(_e,[2,159]),i(_e,[2,160]),i(_e,[2,161]),i(_e,[2,162]),i(gn,[2,55],{53:[1,116]}),i(En,[2,74],{117:129,40:[1,117],52:Y,55:[1,118],57:[1,119],59:[1,120],61:[1,121],63:[1,122],65:[1,123],66:it,67:nt,69:[1,124],71:[1,125],73:[1,126],74:[1,127],76:[1,128],92:ht,96:mt,106:rt,107:wt,110:gt,112:lt,113:_t,123:J,124:ae,125:Wt,126:It,127:Nt,128:me}),i(Dr,[2,151]),i(Dr,[2,176]),i(Dr,[2,177]),i(Dr,[2,178]),i(Dr,[2,179]),i(Dr,[2,180]),i(Dr,[2,181]),i(Dr,[2,182]),i(Dr,[2,183]),i(Dr,[2,184]),i(Dr,[2,185]),i(Dr,[2,186]),i(Dr,[2,187]),i(Dr,[2,188]),i(Dr,[2,189]),i(Dr,[2,190]),i(Dr,[2,191]),{9:130,20:rr,21:Te,23:ne},{11:131,14:[1,132]},i(hr,[2,8]),i(m,[2,20]),i(m,[2,26]),i(m,[2,27]),{21:[1,133]},i(Ki,[2,34],{30:134,22:_n}),i(_e,[2,35]),{50:135,51:45,52:Y,54:46,66:it,67:nt,92:ht,96:mt,106:rt,107:wt,110:gt,112:lt,113:_t,117:47,123:J,124:ae,125:Wt,126:It,127:Nt,128:me},i(Is,[2,48]),i(Is,[2,49]),i(Is,[2,50]),i(Ha,[2,78],{79:136,68:[1,138],80:[1,137]}),{22:hi,24:qi,26:zn,38:Zn,39:139,42:Pr,52:Vt,66:Ae,67:Gt,73:On,81:xi,83:140,84:In,85:rc,86:152,87:qn,88:ss,89:Aa,90:Ya,91:Ea,92:ga,93:Es,95:143,96:Bs,106:jt,107:Ke,110:Ta,112:Or,113:Le,114:La,115:Va,116:149,123:Nr,124:fe,125:sr,126:Yn,127:tr,128:ur},i([52,66,67,68,80,92,96,106,107,110,112,113,123,124,125,126,127,128],[2,80]),i(_e,[2,36]),i(_e,[2,37]),i(_e,[2,38]),i(_e,[2,39]),i(_e,[2,40]),{22:hi,24:qi,26:zn,38:Zn,39:164,42:Pr,52:Vt,66:Ae,67:Gt,73:On,81:xi,83:140,84:In,85:rc,86:152,87:qn,88:ss,89:Aa,90:Ya,91:Ea,92:ga,93:Es,95:143,96:Bs,106:jt,107:Ke,110:Ta,112:Or,113:Le,114:La,115:Va,116:149,123:Nr,124:fe,125:sr,126:Yn,127:tr,128:ur},i(sv,b,{17:165}),i(_e,[2,45]),i(_e,[2,46]),i(Ee,[2,53],{52:rl}),{26:ye,52:Vt,66:Ae,67:Gt,92:un,98:167,103:[1,168],106:jt,107:Ke,110:oe,112:Or,113:Le,116:100,118:98,123:Nr,124:fe,125:sr,126:Yn,127:tr,128:ur},{96:[1,169],104:170,106:[1,171]},{26:ye,52:Vt,66:Ae,67:Gt,92:un,96:[1,172],98:173,106:jt,107:Ke,110:oe,112:Or,113:Le,116:100,118:98,123:Nr,124:fe,125:sr,126:Yn,127:tr,128:ur},{26:ye,52:Vt,66:Ae,67:Gt,92:un,98:174,106:jt,107:Ke,110:oe,112:Or,113:Le,116:100,118:98,123:Nr,124:fe,125:sr,126:Yn,127:tr,128:ur},i(hr,[2,102],{22:[1,175],100:[1,176]}),i(hr,[2,106],{22:[1,177]}),i(hr,[2,110],{116:100,118:179,22:[1,178],26:ye,52:Vt,66:Ae,67:Gt,92:un,106:jt,107:Ke,110:oe,112:Or,113:Le,123:Nr,124:fe,125:sr,126:Yn,127:tr,128:ur}),i(hr,[2,112],{22:[1,180]}),i(mu,[2,153]),i(mu,[2,155]),i(mu,[2,156]),i(mu,[2,157]),i(mu,[2,158]),i(As,[2,163]),i(As,[2,164]),i(As,[2,165]),i(As,[2,166]),i(As,[2,167]),i(As,[2,168]),i(As,[2,169]),i(As,[2,170]),i(As,[2,171]),i(As,[2,172]),i(As,[2,173]),i(As,[2,174]),i(As,[2,175]),{52:Y,54:181,66:it,67:nt,92:ht,96:mt,106:rt,107:wt,110:gt,112:lt,113:_t,117:47,123:J,124:ae,125:Wt,126:It,127:Nt,128:me},{22:hi,24:qi,26:zn,38:Zn,39:182,42:Pr,52:Vt,66:Ae,67:Gt,73:On,81:xi,83:140,84:In,85:rc,86:152,87:qn,88:ss,89:Aa,90:Ya,91:Ea,92:ga,93:Es,95:143,96:Bs,106:jt,107:Ke,110:Ta,112:Or,113:Le,114:La,115:Va,116:149,123:Nr,124:fe,125:sr,126:Yn,127:tr,128:ur},{22:hi,24:qi,26:zn,38:Zn,39:183,42:Pr,52:Vt,66:Ae,67:Gt,73:On,81:xi,83:140,84:In,85:rc,86:152,87:qn,88:ss,89:Aa,90:Ya,91:Ea,92:ga,93:Es,95:143,96:Bs,106:jt,107:Ke,110:Ta,112:Or,113:Le,114:La,115:Va,116:149,123:Nr,124:fe,125:sr,126:Yn,127:tr,128:ur},{22:hi,24:qi,26:zn,38:Zn,39:185,42:Pr,52:Vt,57:[1,184],66:Ae,67:Gt,73:On,81:xi,83:140,84:In,85:rc,86:152,87:qn,88:ss,89:Aa,90:Ya,91:Ea,92:ga,93:Es,95:143,96:Bs,106:jt,107:Ke,110:Ta,112:Or,113:Le,114:La,115:Va,116:149,123:Nr,124:fe,125:sr,126:Yn,127:tr,128:ur},{22:hi,24:qi,26:zn,38:Zn,39:186,42:Pr,52:Vt,66:Ae,67:Gt,73:On,81:xi,83:140,84:In,85:rc,86:152,87:qn,88:ss,89:Aa,90:Ya,91:Ea,92:ga,93:Es,95:143,96:Bs,106:jt,107:Ke,110:Ta,112:Or,113:Le,114:La,115:Va,116:149,123:Nr,124:fe,125:sr,126:Yn,127:tr,128:ur},{22:hi,24:qi,26:zn,38:Zn,39:187,42:Pr,52:Vt,66:Ae,67:Gt,73:On,81:xi,83:140,84:In,85:rc,86:152,87:qn,88:ss,89:Aa,90:Ya,91:Ea,92:ga,93:Es,95:143,96:Bs,106:jt,107:Ke,110:Ta,112:Or,113:Le,114:La,115:Va,116:149,123:Nr,124:fe,125:sr,126:Yn,127:tr,128:ur},{22:hi,24:qi,26:zn,38:Zn,39:188,42:Pr,52:Vt,66:Ae,67:Gt,73:On,81:xi,83:140,84:In,85:rc,86:152,87:qn,88:ss,89:Aa,90:Ya,91:Ea,92:ga,93:Es,95:143,96:Bs,106:jt,107:Ke,110:Ta,112:Or,113:Le,114:La,115:Va,116:149,123:Nr,124:fe,125:sr,126:Yn,127:tr,128:ur},{66:[1,189]},{22:hi,24:qi,26:zn,38:Zn,39:190,42:Pr,52:Vt,66:Ae,67:Gt,73:On,81:xi,83:140,84:In,85:rc,86:152,87:qn,88:ss,89:Aa,90:Ya,91:Ea,92:ga,93:Es,95:143,96:Bs,106:jt,107:Ke,110:Ta,112:Or,113:Le,114:La,115:Va,116:149,123:Nr,124:fe,125:sr,126:Yn,127:tr,128:ur},{22:hi,24:qi,26:zn,38:Zn,39:191,42:Pr,52:Vt,66:Ae,67:Gt,71:[1,192],73:On,81:xi,83:140,84:In,85:rc,86:152,87:qn,88:ss,89:Aa,90:Ya,91:Ea,92:ga,93:Es,95:143,96:Bs,106:jt,107:Ke,110:Ta,112:Or,113:Le,114:La,115:Va,116:149,123:Nr,124:fe,125:sr,126:Yn,127:tr,128:ur},{22:hi,24:qi,26:zn,38:Zn,39:193,42:Pr,52:Vt,66:Ae,67:Gt,73:On,81:xi,83:140,84:In,85:rc,86:152,87:qn,88:ss,89:Aa,90:Ya,91:Ea,92:ga,93:Es,95:143,96:Bs,106:jt,107:Ke,110:Ta,112:Or,113:Le,114:La,115:Va,116:149,123:Nr,124:fe,125:sr,126:Yn,127:tr,128:ur},{22:hi,24:qi,26:zn,38:Zn,39:194,42:Pr,52:Vt,66:Ae,67:Gt,73:On,81:xi,83:140,84:In,85:rc,86:152,87:qn,88:ss,89:Aa,90:Ya,91:Ea,92:ga,93:Es,95:143,96:Bs,106:jt,107:Ke,110:Ta,112:Or,113:Le,114:La,115:Va,116:149,123:Nr,124:fe,125:sr,126:Yn,127:tr,128:ur},{22:hi,24:qi,26:zn,38:Zn,39:195,42:Pr,52:Vt,66:Ae,67:Gt,73:On,81:xi,83:140,84:In,85:rc,86:152,87:qn,88:ss,89:Aa,90:Ya,91:Ea,92:ga,93:Es,95:143,96:Bs,106:jt,107:Ke,110:Ta,112:Or,113:Le,114:La,115:Va,116:149,123:Nr,124:fe,125:sr,126:Yn,127:tr,128:ur},i(Dr,[2,152]),i(gp,[2,3]),{8:196,15:Ue},{15:[2,7]},i(m,[2,28]),i(Ki,[2,33]),i(Ee,[2,51],{30:197,22:_n}),i(Ha,[2,75],{22:[1,198]}),{22:[1,199]},{22:hi,24:qi,26:zn,38:Zn,39:200,42:Pr,52:Vt,66:Ae,67:Gt,73:On,81:xi,83:140,84:In,85:rc,86:152,87:qn,88:ss,89:Aa,90:Ya,91:Ea,92:ga,93:Es,95:143,96:Bs,106:jt,107:Ke,110:Ta,112:Or,113:Le,114:La,115:Va,116:149,123:Nr,124:fe,125:sr,126:Yn,127:tr,128:ur},{22:hi,24:qi,26:zn,38:Zn,42:Pr,52:Vt,66:Ae,67:Gt,73:On,81:xi,82:[1,201],83:202,86:152,87:qn,88:ss,89:Aa,90:Ya,91:Ea,92:ga,93:Es,95:143,96:Bs,106:jt,107:Ke,110:Ta,112:Or,113:Le,114:La,115:Va,116:149,123:Nr,124:fe,125:sr,126:Yn,127:tr,128:ur},i(As,[2,82]),i(As,[2,84]),i(As,[2,85]),i(As,[2,141]),i(As,[2,142]),i(As,[2,143]),i(As,[2,144]),i(As,[2,145]),i(As,[2,146]),i(As,[2,147]),i(As,[2,148]),i(As,[2,149]),i(As,[2,150]),i(As,[2,86]),i(As,[2,87]),i(As,[2,88]),i(As,[2,89]),i(As,[2,90]),i(As,[2,91]),i(As,[2,92]),i(As,[2,93]),i(As,[2,94]),i(As,[2,95]),i(As,[2,96]),{9:204,20:rr,21:Te,22:hi,23:ne,24:qi,26:zn,38:Zn,40:[1,203],42:Pr,52:Vt,66:Ae,67:Gt,73:On,81:xi,83:202,86:152,87:qn,88:ss,89:Aa,90:Ya,91:Ea,92:ga,93:Es,95:143,96:Bs,106:jt,107:Ke,110:Ta,112:Or,113:Le,114:La,115:Va,116:149,123:Nr,124:fe,125:sr,126:Yn,127:tr,128:ur},{18:18,19:19,20:E,21:C,22:D,23:P,32:24,33:25,34:26,35:27,36:28,37:29,38:B,42:[1,205],43:31,44:j,46:R,48:H,50:35,51:45,52:Y,54:46,66:it,67:nt,87:st,88:pt,89:Tt,90:kt,91:yt,92:ht,96:mt,106:rt,107:wt,110:gt,112:lt,113:_t,117:47,119:X,120:Rt,121:ft,122:de,123:J,124:ae,125:Wt,126:It,127:Nt,128:me},{22:_n,30:206},{22:[1,207],26:ye,52:Vt,66:Ae,67:Gt,92:un,106:jt,107:Ke,110:oe,112:Or,113:Le,116:100,118:179,123:Nr,124:fe,125:sr,126:Yn,127:tr,128:ur},{22:[1,208]},{22:[1,209]},{22:[1,210],107:[1,211]},i(sd,[2,124]),{22:[1,212]},{22:[1,213],26:ye,52:Vt,66:Ae,67:Gt,92:un,106:jt,107:Ke,110:oe,112:Or,113:Le,116:100,118:179,123:Nr,124:fe,125:sr,126:Yn,127:tr,128:ur},{22:[1,214],26:ye,52:Vt,66:Ae,67:Gt,92:un,106:jt,107:Ke,110:oe,112:Or,113:Le,116:100,118:179,123:Nr,124:fe,125:sr,126:Yn,127:tr,128:ur},{84:[1,215]},i(hr,[2,104],{22:[1,216]}),{84:[1,217],102:[1,218]},{84:[1,219]},i(mu,[2,154]),{84:[1,220],102:[1,221]},i(gn,[2,57],{117:129,52:Y,66:it,67:nt,92:ht,96:mt,106:rt,107:wt,110:gt,112:lt,113:_t,123:J,124:ae,125:Wt,126:It,127:Nt,128:me}),{22:hi,24:qi,26:zn,38:Zn,41:[1,222],42:Pr,52:Vt,66:Ae,67:Gt,73:On,81:xi,83:202,86:152,87:qn,88:ss,89:Aa,90:Ya,91:Ea,92:ga,93:Es,95:143,96:Bs,106:jt,107:Ke,110:Ta,112:Or,113:Le,114:La,115:Va,116:149,123:Nr,124:fe,125:sr,126:Yn,127:tr,128:ur},{22:hi,24:qi,26:zn,38:Zn,42:Pr,52:Vt,56:[1,223],66:Ae,67:Gt,73:On,81:xi,83:202,86:152,87:qn,88:ss,89:Aa,90:Ya,91:Ea,92:ga,93:Es,95:143,96:Bs,106:jt,107:Ke,110:Ta,112:Or,113:Le,114:La,115:Va,116:149,123:Nr,124:fe,125:sr,126:Yn,127:tr,128:ur},{22:hi,24:qi,26:zn,38:Zn,39:224,42:Pr,52:Vt,66:Ae,67:Gt,73:On,81:xi,83:140,84:In,85:rc,86:152,87:qn,88:ss,89:Aa,90:Ya,91:Ea,92:ga,93:Es,95:143,96:Bs,106:jt,107:Ke,110:Ta,112:Or,113:Le,114:La,115:Va,116:149,123:Nr,124:fe,125:sr,126:Yn,127:tr,128:ur},{22:hi,24:qi,26:zn,38:Zn,42:Pr,52:Vt,58:[1,225],66:Ae,67:Gt,73:On,81:xi,83:202,86:152,87:qn,88:ss,89:Aa,90:Ya,91:Ea,92:ga,93:Es,95:143,96:Bs,106:jt,107:Ke,110:Ta,112:Or,113:Le,114:La,115:Va,116:149,123:Nr,124:fe,125:sr,126:Yn,127:tr,128:ur},{22:hi,24:qi,26:zn,38:Zn,42:Pr,52:Vt,60:[1,226],66:Ae,67:Gt,73:On,81:xi,83:202,86:152,87:qn,88:ss,89:Aa,90:Ya,91:Ea,92:ga,93:Es,95:143,96:Bs,106:jt,107:Ke,110:Ta,112:Or,113:Le,114:La,115:Va,116:149,123:Nr,124:fe,125:sr,126:Yn,127:tr,128:ur},{22:hi,24:qi,26:zn,38:Zn,42:Pr,52:Vt,62:[1,227],66:Ae,67:Gt,73:On,81:xi,83:202,86:152,87:qn,88:ss,89:Aa,90:Ya,91:Ea,92:ga,93:Es,95:143,96:Bs,106:jt,107:Ke,110:Ta,112:Or,113:Le,114:La,115:Va,116:149,123:Nr,124:fe,125:sr,126:Yn,127:tr,128:ur},{22:hi,24:qi,26:zn,38:Zn,42:Pr,52:Vt,64:[1,228],66:Ae,67:Gt,73:On,81:xi,83:202,86:152,87:qn,88:ss,89:Aa,90:Ya,91:Ea,92:ga,93:Es,95:143,96:Bs,106:jt,107:Ke,110:Ta,112:Or,113:Le,114:La,115:Va,116:149,123:Nr,124:fe,125:sr,126:Yn,127:tr,128:ur},{67:[1,229]},{22:hi,24:qi,26:zn,38:Zn,42:Pr,52:Vt,66:Ae,67:Gt,70:[1,230],73:On,81:xi,83:202,86:152,87:qn,88:ss,89:Aa,90:Ya,91:Ea,92:ga,93:Es,95:143,96:Bs,106:jt,107:Ke,110:Ta,112:Or,113:Le,114:La,115:Va,116:149,123:Nr,124:fe,125:sr,126:Yn,127:tr,128:ur},{22:hi,24:qi,26:zn,38:Zn,42:Pr,52:Vt,66:Ae,67:Gt,72:[1,231],73:On,81:xi,83:202,86:152,87:qn,88:ss,89:Aa,90:Ya,91:Ea,92:ga,93:Es,95:143,96:Bs,106:jt,107:Ke,110:Ta,112:Or,113:Le,114:La,115:Va,116:149,123:Nr,124:fe,125:sr,126:Yn,127:tr,128:ur},{22:hi,24:qi,26:zn,38:Zn,39:232,42:Pr,52:Vt,66:Ae,67:Gt,73:On,81:xi,83:140,84:In,85:rc,86:152,87:qn,88:ss,89:Aa,90:Ya,91:Ea,92:ga,93:Es,95:143,96:Bs,106:jt,107:Ke,110:Ta,112:Or,113:Le,114:La,115:Va,116:149,123:Nr,124:fe,125:sr,126:Yn,127:tr,128:ur},{22:hi,24:qi,26:zn,38:Zn,41:[1,233],42:Pr,52:Vt,66:Ae,67:Gt,73:On,81:xi,83:202,86:152,87:qn,88:ss,89:Aa,90:Ya,91:Ea,92:ga,93:Es,95:143,96:Bs,106:jt,107:Ke,110:Ta,112:Or,113:Le,114:La,115:Va,116:149,123:Nr,124:fe,125:sr,126:Yn,127:tr,128:ur},{22:hi,24:qi,26:zn,38:Zn,42:Pr,52:Vt,66:Ae,67:Gt,73:On,75:[1,234],77:[1,235],81:xi,83:202,86:152,87:qn,88:ss,89:Aa,90:Ya,91:Ea,92:ga,93:Es,95:143,96:Bs,106:jt,107:Ke,110:Ta,112:Or,113:Le,114:La,115:Va,116:149,123:Nr,124:fe,125:sr,126:Yn,127:tr,128:ur},{22:hi,24:qi,26:zn,38:Zn,42:Pr,52:Vt,66:Ae,67:Gt,73:On,75:[1,237],77:[1,236],81:xi,83:202,86:152,87:qn,88:ss,89:Aa,90:Ya,91:Ea,92:ga,93:Es,95:143,96:Bs,106:jt,107:Ke,110:Ta,112:Or,113:Le,114:La,115:Va,116:149,123:Nr,124:fe,125:sr,126:Yn,127:tr,128:ur},{9:238,20:rr,21:Te,23:ne},i(Ee,[2,52],{52:rl}),i(Ha,[2,77]),i(Ha,[2,76]),{22:hi,24:qi,26:zn,38:Zn,42:Pr,52:Vt,66:Ae,67:Gt,68:[1,239],73:On,81:xi,83:202,86:152,87:qn,88:ss,89:Aa,90:Ya,91:Ea,92:ga,93:Es,95:143,96:Bs,106:jt,107:Ke,110:Ta,112:Or,113:Le,114:La,115:Va,116:149,123:Nr,124:fe,125:sr,126:Yn,127:tr,128:ur},i(Ha,[2,79]),i(As,[2,83]),{22:hi,24:qi,26:zn,38:Zn,39:240,42:Pr,52:Vt,66:Ae,67:Gt,73:On,81:xi,83:140,84:In,85:rc,86:152,87:qn,88:ss,89:Aa,90:Ya,91:Ea,92:ga,93:Es,95:143,96:Bs,106:jt,107:Ke,110:Ta,112:Or,113:Le,114:La,115:Va,116:149,123:Nr,124:fe,125:sr,126:Yn,127:tr,128:ur},i(sv,b,{17:241}),i(_e,[2,43]),{51:242,52:Y,54:46,66:it,67:nt,92:ht,96:mt,106:rt,107:wt,110:gt,112:lt,113:_t,117:47,123:J,124:ae,125:Wt,126:It,127:Nt,128:me},{22:Rl,66:$u,67:Gi,87:He,97:243,103:Er,106:ci,108:244,109:245,110:Xa,111:kc,112:yu,113:mo,114:xu},{22:Rl,66:$u,67:Gi,87:He,97:257,103:Er,106:ci,108:244,109:245,110:Xa,111:kc,112:yu,113:mo,114:xu},{22:Rl,66:$u,67:Gi,87:He,97:258,103:Er,105:[1,259],106:ci,108:244,109:245,110:Xa,111:kc,112:yu,113:mo,114:xu},{22:Rl,66:$u,67:Gi,87:He,97:260,103:Er,105:[1,261],106:ci,108:244,109:245,110:Xa,111:kc,112:yu,113:mo,114:xu},{106:[1,262]},{22:Rl,66:$u,67:Gi,87:He,97:263,103:Er,106:ci,108:244,109:245,110:Xa,111:kc,112:yu,113:mo,114:xu},{22:Rl,66:$u,67:Gi,87:He,97:264,103:Er,106:ci,108:244,109:245,110:Xa,111:kc,112:yu,113:mo,114:xu},{26:ye,52:Vt,66:Ae,67:Gt,92:un,98:265,106:jt,107:Ke,110:oe,112:Or,113:Le,116:100,118:98,123:Nr,124:fe,125:sr,126:Yn,127:tr,128:ur},i(hr,[2,103]),{84:[1,266]},i(hr,[2,107],{22:[1,267]}),i(hr,[2,108]),i(hr,[2,111]),i(hr,[2,113],{22:[1,268]}),i(hr,[2,114]),i(En,[2,58]),i(En,[2,59]),{22:hi,24:qi,26:zn,38:Zn,42:Pr,52:Vt,58:[1,269],66:Ae,67:Gt,73:On,81:xi,83:202,86:152,87:qn,88:ss,89:Aa,90:Ya,91:Ea,92:ga,93:Es,95:143,96:Bs,106:jt,107:Ke,110:Ta,112:Or,113:Le,114:La,115:Va,116:149,123:Nr,124:fe,125:sr,126:Yn,127:tr,128:ur},i(En,[2,66]),i(En,[2,61]),i(En,[2,62]),i(En,[2,63]),{66:[1,270]},i(En,[2,65]),i(En,[2,67]),{22:hi,24:qi,26:zn,38:Zn,42:Pr,52:Vt,66:Ae,67:Gt,72:[1,271],73:On,81:xi,83:202,86:152,87:qn,88:ss,89:Aa,90:Ya,91:Ea,92:ga,93:Es,95:143,96:Bs,106:jt,107:Ke,110:Ta,112:Or,113:Le,114:La,115:Va,116:149,123:Nr,124:fe,125:sr,126:Yn,127:tr,128:ur},i(En,[2,69]),i(En,[2,70]),i(En,[2,72]),i(En,[2,71]),i(En,[2,73]),i(gp,[2,4]),i([22,52,66,67,92,96,106,107,110,112,113,123,124,125,126,127,128],[2,81]),{22:hi,24:qi,26:zn,38:Zn,41:[1,272],42:Pr,52:Vt,66:Ae,67:Gt,73:On,81:xi,83:202,86:152,87:qn,88:ss,89:Aa,90:Ya,91:Ea,92:ga,93:Es,95:143,96:Bs,106:jt,107:Ke,110:Ta,112:Or,113:Le,114:La,115:Va,116:149,123:Nr,124:fe,125:sr,126:Yn,127:tr,128:ur},{18:18,19:19,20:E,21:C,22:D,23:P,32:24,33:25,34:26,35:27,36:28,37:29,38:B,42:[1,273],43:31,44:j,46:R,48:H,50:35,51:45,52:Y,54:46,66:it,67:nt,87:st,88:pt,89:Tt,90:kt,91:yt,92:ht,96:mt,106:rt,107:wt,110:gt,112:lt,113:_t,117:47,119:X,120:Rt,121:ft,122:de,123:J,124:ae,125:Wt,126:It,127:Nt,128:me},i(gn,[2,56]),i(hr,[2,116],{107:cf}),i(x3,[2,126],{109:275,22:Rl,66:$u,67:Gi,87:He,103:Er,106:ci,110:Xa,111:kc,112:yu,113:mo,114:xu}),i(v1,[2,128]),i(v1,[2,130]),i(v1,[2,131]),i(v1,[2,132]),i(v1,[2,133]),i(v1,[2,134]),i(v1,[2,135]),i(v1,[2,136]),i(v1,[2,137]),i(v1,[2,138]),i(v1,[2,139]),i(v1,[2,140]),i(hr,[2,117],{107:cf}),i(hr,[2,118],{107:cf}),{22:[1,276]},i(hr,[2,119],{107:cf}),{22:[1,277]},i(sd,[2,125]),i(hr,[2,99],{107:cf}),i(hr,[2,100],{107:cf}),i(hr,[2,101],{116:100,118:179,26:ye,52:Vt,66:Ae,67:Gt,92:un,106:jt,107:Ke,110:oe,112:Or,113:Le,123:Nr,124:fe,125:sr,126:Yn,127:tr,128:ur}),i(hr,[2,105]),{102:[1,278]},{102:[1,279]},{58:[1,280]},{68:[1,281]},{72:[1,282]},{9:283,20:rr,21:Te,23:ne},i(_e,[2,42]),{22:Rl,66:$u,67:Gi,87:He,103:Er,106:ci,108:284,109:245,110:Xa,111:kc,112:yu,113:mo,114:xu},i(v1,[2,129]),{26:ye,52:Vt,66:Ae,67:Gt,92:un,98:285,106:jt,107:Ke,110:oe,112:Or,113:Le,116:100,118:98,123:Nr,124:fe,125:sr,126:Yn,127:tr,128:ur},{26:ye,52:Vt,66:Ae,67:Gt,92:un,98:286,106:jt,107:Ke,110:oe,112:Or,113:Le,116:100,118:98,123:Nr,124:fe,125:sr,126:Yn,127:tr,128:ur},i(hr,[2,109]),i(hr,[2,115]),i(En,[2,60]),{22:hi,24:qi,26:zn,38:Zn,39:287,42:Pr,52:Vt,66:Ae,67:Gt,73:On,81:xi,83:140,84:In,85:rc,86:152,87:qn,88:ss,89:Aa,90:Ya,91:Ea,92:ga,93:Es,95:143,96:Bs,106:jt,107:Ke,110:Ta,112:Or,113:Le,114:La,115:Va,116:149,123:Nr,124:fe,125:sr,126:Yn,127:tr,128:ur},i(En,[2,68]),i(sv,b,{17:288}),i(x3,[2,127],{109:275,22:Rl,66:$u,67:Gi,87:He,103:Er,106:ci,110:Xa,111:kc,112:yu,113:mo,114:xu}),i(hr,[2,122],{116:100,118:179,22:[1,289],26:ye,52:Vt,66:Ae,67:Gt,92:un,106:jt,107:Ke,110:oe,112:Or,113:Le,123:Nr,124:fe,125:sr,126:Yn,127:tr,128:ur}),i(hr,[2,123],{116:100,118:179,22:[1,290],26:ye,52:Vt,66:Ae,67:Gt,92:un,106:jt,107:Ke,110:oe,112:Or,113:Le,123:Nr,124:fe,125:sr,126:Yn,127:tr,128:ur}),{22:hi,24:qi,26:zn,38:Zn,41:[1,291],42:Pr,52:Vt,66:Ae,67:Gt,73:On,81:xi,83:202,86:152,87:qn,88:ss,89:Aa,90:Ya,91:Ea,92:ga,93:Es,95:143,96:Bs,106:jt,107:Ke,110:Ta,112:Or,113:Le,114:La,115:Va,116:149,123:Nr,124:fe,125:sr,126:Yn,127:tr,128:ur},{18:18,19:19,20:E,21:C,22:D,23:P,32:24,33:25,34:26,35:27,36:28,37:29,38:B,42:[1,292],43:31,44:j,46:R,48:H,50:35,51:45,52:Y,54:46,66:it,67:nt,87:st,88:pt,89:Tt,90:kt,91:yt,92:ht,96:mt,106:rt,107:wt,110:gt,112:lt,113:_t,117:47,119:X,120:Rt,121:ft,122:de,123:J,124:ae,125:Wt,126:It,127:Nt,128:me},{22:Rl,66:$u,67:Gi,87:He,97:293,103:Er,106:ci,108:244,109:245,110:Xa,111:kc,112:yu,113:mo,114:xu},{22:Rl,66:$u,67:Gi,87:He,97:294,103:Er,106:ci,108:244,109:245,110:Xa,111:kc,112:yu,113:mo,114:xu},i(En,[2,64]),i(_e,[2,41]),i(hr,[2,120],{107:cf}),i(hr,[2,121],{107:cf})],defaultActions:{2:[2,1],9:[2,5],10:[2,2],132:[2,7]},parseError:function(cs,zs){if(zs.recoverable)this.trace(cs);else{var Ma=new Error(cs);throw Ma.hash=zs,Ma}},parse:function(cs){var zs=this,Ma=[0],Ei=[],Rc=[null],Ne=[],pp=this.table,We="",uf=0,lm=0,EE=2,bp=1,B5=Ne.slice.call(arguments,1),ah=Object.create(this.lexer),ad={yy:{}};for(var R5 in this.yy)Object.prototype.hasOwnProperty.call(this.yy,R5)&&(ad.yy[R5]=this.yy[R5]);ah.setInput(cs,ad.yy),ad.yy.lexer=ah,ad.yy.parser=this,typeof ah.yylloc>"u"&&(ah.yylloc={});var j5=ah.yylloc;Ne.push(j5);var TE=ah.options&&ah.options.ranges;typeof ad.yy.parseError=="function"?this.parseError=ad.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function vL(){var oh;return oh=Ei.pop()||ah.lex()||bp,typeof oh!="number"&&(oh instanceof Array&&(Ei=oh,oh=Ei.pop()),oh=zs.symbols_[oh]||oh),oh}for(var w1,vp,od,hm,av={},fm,Ec,gk,Wo;;){if(vp=Ma[Ma.length-1],this.defaultActions[vp]?od=this.defaultActions[vp]:((w1===null||typeof w1>"u")&&(w1=vL()),od=pp[vp]&&pp[vp][w1]),typeof od>"u"||!od.length||!od[0]){var pk="";Wo=[];for(fm in pp[vp])this.terminals_[fm]&&fm>EE&&Wo.push("'"+this.terminals_[fm]+"'");ah.showPosition?pk="Parse error on line "+(uf+1)+`: -`+ah.showPosition()+` -Expecting `+Wo.join(", ")+", got '"+(this.terminals_[w1]||w1)+"'":pk="Parse error on line "+(uf+1)+": Unexpected "+(w1==bp?"end of input":"'"+(this.terminals_[w1]||w1)+"'"),this.parseError(pk,{text:ah.match,token:this.terminals_[w1]||w1,line:ah.yylineno,loc:j5,expected:Wo})}if(od[0]instanceof Array&&od.length>1)throw new Error("Parse Error: multiple actions possible at state: "+vp+", token: "+w1);switch(od[0]){case 1:Ma.push(w1),Rc.push(ah.yytext),Ne.push(ah.yylloc),Ma.push(od[1]),w1=null,lm=ah.yyleng,We=ah.yytext,uf=ah.yylineno,j5=ah.yylloc;break;case 2:if(Ec=this.productions_[od[1]][1],av.$=Rc[Rc.length-Ec],av._$={first_line:Ne[Ne.length-(Ec||1)].first_line,last_line:Ne[Ne.length-1].last_line,first_column:Ne[Ne.length-(Ec||1)].first_column,last_column:Ne[Ne.length-1].last_column},TE&&(av._$.range=[Ne[Ne.length-(Ec||1)].range[0],Ne[Ne.length-1].range[1]]),hm=this.performAction.apply(av,[We,lm,uf,ad.yy,od[1],Rc,Ne].concat(B5)),typeof hm<"u")return hm;Ec&&(Ma=Ma.slice(0,-1*Ec*2),Rc=Rc.slice(0,-1*Ec),Ne=Ne.slice(0,-1*Ec)),Ma.push(this.productions_[od[1]][0]),Rc.push(av.$),Ne.push(av._$),gk=pp[Ma[Ma.length-2]][Ma[Ma.length-1]],Ma.push(gk);break;case 3:return!0}}return!0}},bL=function(){var dg={EOF:1,parseError:function(zs,Ma){if(this.yy.parser)this.yy.parser.parseError(zs,Ma);else throw new Error(zs)},setInput:function(cs,zs){return this.yy=zs||this.yy||{},this._input=cs,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var cs=this._input[0];this.yytext+=cs,this.yyleng++,this.offset++,this.match+=cs,this.matched+=cs;var zs=cs.match(/(?:\r\n?|\n).*/g);return zs?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),cs},unput:function(cs){var zs=cs.length,Ma=cs.split(/(?:\r\n?|\n)/g);this._input=cs+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-zs),this.offset-=zs;var Ei=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Ma.length-1&&(this.yylineno-=Ma.length-1);var Rc=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Ma?(Ma.length===Ei.length?this.yylloc.first_column:0)+Ei[Ei.length-Ma.length].length-Ma[0].length:this.yylloc.first_column-zs},this.options.ranges&&(this.yylloc.range=[Rc[0],Rc[0]+this.yyleng-zs]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). -`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(cs){this.unput(this.match.slice(cs))},pastInput:function(){var cs=this.matched.substr(0,this.matched.length-this.match.length);return(cs.length>20?"...":"")+cs.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var cs=this.match;return cs.length<20&&(cs+=this._input.substr(0,20-cs.length)),(cs.substr(0,20)+(cs.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var cs=this.pastInput(),zs=new Array(cs.length+1).join("-");return cs+this.upcomingInput()+` -`+zs+"^"},test_match:function(cs,zs){var Ma,Ei,Rc;if(this.options.backtrack_lexer&&(Rc={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(Rc.yylloc.range=this.yylloc.range.slice(0))),Ei=cs[0].match(/(?:\r\n?|\n).*/g),Ei&&(this.yylineno+=Ei.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Ei?Ei[Ei.length-1].length-Ei[Ei.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+cs[0].length},this.yytext+=cs[0],this.match+=cs[0],this.matches=cs,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(cs[0].length),this.matched+=cs[0],Ma=this.performAction.call(this,this.yy,this,zs,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Ma)return Ma;if(this._backtrack){for(var Ne in Rc)this[Ne]=Rc[Ne];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var cs,zs,Ma,Ei;this._more||(this.yytext="",this.match="");for(var Rc=this._currentRules(),Ne=0;Nezs[0].length)){if(zs=Ma,Ei=Ne,this.options.backtrack_lexer){if(cs=this.test_match(Ma,Rc[Ne]),cs!==!1)return cs;if(this._backtrack){zs=!1;continue}else return!1}else if(!this.options.flex)break}return zs?(cs=this.test_match(zs,Rc[Ei]),cs!==!1?cs:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var zs=this.next();return zs||this.lex()},begin:function(zs){this.conditionStack.push(zs)},popState:function(){var zs=this.conditionStack.length-1;return zs>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(zs){return zs=this.conditionStack.length-1-Math.abs(zs||0),zs>=0?this.conditionStack[zs]:"INITIAL"},pushState:function(zs){this.begin(zs)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(zs,Ma,Ei,Rc){switch(Ei){case 0:return this.begin("open_directive"),12;case 1:return this.begin("type_directive"),13;case 2:return this.popState(),this.begin("arg_directive"),10;case 3:return this.popState(),this.popState(),15;case 4:return 14;case 5:return this.begin("acc_title"),44;case 6:return this.popState(),"acc_title_value";case 7:return this.begin("acc_descr"),46;case 8:return this.popState(),"acc_descr_value";case 9:this.begin("acc_descr_multiline");break;case 10:this.popState();break;case 11:return"acc_descr_multiline_value";case 12:this.begin("md_string");break;case 13:return"MD_STR";case 14:this.popState();break;case 15:this.begin("string");break;case 16:this.popState();break;case 17:return"STR";case 18:return 87;case 19:return 96;case 20:return 88;case 21:return 105;case 22:return 89;case 23:return 90;case 24:this.begin("href");break;case 25:this.popState();break;case 26:return 101;case 27:this.begin("callbackname");break;case 28:this.popState();break;case 29:this.popState(),this.begin("callbackargs");break;case 30:return 99;case 31:this.popState();break;case 32:return 100;case 33:this.begin("click");break;case 34:this.popState();break;case 35:return 91;case 36:return zs.lex.firstGraph()&&this.begin("dir"),24;case 37:return zs.lex.firstGraph()&&this.begin("dir"),24;case 38:return zs.lex.firstGraph()&&this.begin("dir"),24;case 39:return 38;case 40:return 42;case 41:return 102;case 42:return 102;case 43:return 102;case 44:return 102;case 45:return this.popState(),25;case 46:return this.popState(),26;case 47:return this.popState(),26;case 48:return this.popState(),26;case 49:return this.popState(),26;case 50:return this.popState(),26;case 51:return this.popState(),26;case 52:return this.popState(),26;case 53:return this.popState(),26;case 54:return this.popState(),26;case 55:return this.popState(),26;case 56:return 119;case 57:return 120;case 58:return 121;case 59:return 122;case 60:return 106;case 61:return 112;case 62:return 53;case 63:return 67;case 64:return 52;case 65:return 20;case 66:return 107;case 67:return 127;case 68:return 82;case 69:return 82;case 70:return 82;case 71:return 82;case 72:return 81;case 73:return 81;case 74:return 81;case 75:return 59;case 76:return 60;case 77:return 61;case 78:return 62;case 79:return 63;case 80:return 64;case 81:return 65;case 82:return 69;case 83:return 70;case 84:return 55;case 85:return 56;case 86:return 110;case 87:return 113;case 88:return 128;case 89:return 125;case 90:return 114;case 91:return 126;case 92:return 126;case 93:return 115;case 94:return 73;case 95:return 93;case 96:return"SEP";case 97:return 92;case 98:return 66;case 99:return 75;case 100:return 74;case 101:return 77;case 102:return 76;case 103:return 123;case 104:return 124;case 105:return 68;case 106:return 57;case 107:return 58;case 108:return 40;case 109:return 41;case 110:return 71;case 111:return 72;case 112:return 134;case 113:return 21;case 114:return 22;case 115:return 23}},rules:[/^(?:%%\{)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s]+["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*~~[\~]+\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\[)/,/^(?:\]\))/,/^(?:\[\[)/,/^(?:\]\])/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\])/,/^(?:\(\(\()/,/^(?:\)\)\))/,/^(?:-)/,/^(?:\.)/,/^(?:[\_])/,/^(?:\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:[A-Za-z]+)/,/^(?:\\\])/,/^(?:\[\/)/,/^(?:\/\])/,/^(?:\[\\)/,/^(?:[!"#$%&'*+,-.`?\\_/])/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\()/,/^(?:\))/,/^(?:\[)/,/^(?:\])/,/^(?:\{)/,/^(?:\})/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},callbackargs:{rules:[31,32],inclusive:!1},callbackname:{rules:[28,29,30],inclusive:!1},href:{rules:[25,26],inclusive:!1},click:{rules:[34,35],inclusive:!1},vertex:{rules:[],inclusive:!1},dir:{rules:[45,46,47,48,49,50,51,52,53,54,55],inclusive:!1},acc_descr_multiline:{rules:[10,11],inclusive:!1},acc_descr:{rules:[8],inclusive:!1},acc_title:{rules:[6],inclusive:!1},md_string:{rules:[13,14],inclusive:!1},string:{rules:[16,17],inclusive:!1},INITIAL:{rules:[0,5,7,9,12,15,18,19,20,21,22,23,24,27,33,36,37,38,39,40,41,42,43,44,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115],inclusive:!0}}};return dg}();k3.lexer=bL;function um(){this.yy={}}return um.prototype=k3,k3.Parser=um,new um}();wdt.parser=wdt;const mdt=wdt,YLe="flowchart-";let BOt=0,ydt=Oe(),Cl={},oE=[],YA={},E5=[],PW={},xdt={},FW=0,kdt=!0,Jb,BW,RW=[];const jW=i=>yi.sanitizeText(i,ydt),ROt=function(i,a,f){d1.parseDirective(this,i,a,f)},QN=function(i){const a=Object.keys(Cl);for(const f of a)if(Cl[f].id===i)return Cl[f].domId;return i},jOt=function(i,a,f,p,v,m,b={}){let E,C=i;C!==void 0&&C.trim().length!==0&&(Cl[C]===void 0&&(Cl[C]={id:C,labelType:"text",domId:YLe+C+"-"+BOt,styles:[],classes:[]}),BOt++,a!==void 0?(ydt=Oe(),E=jW(a.text.trim()),Cl[C].labelType=a.type,E[0]==='"'&&E[E.length-1]==='"'&&(E=E.substring(1,E.length-1)),Cl[C].text=E):Cl[C].text===void 0&&(Cl[C].text=i),f!==void 0&&(Cl[C].type=f),p!=null&&p.forEach(function(D){Cl[C].styles.push(D)}),v!=null&&v.forEach(function(D){Cl[C].classes.push(D)}),m!==void 0&&(Cl[C].dir=m),Cl[C].props===void 0?Cl[C].props=b:b!==void 0&&Object.assign(Cl[C].props,b))},$Ot=function(i,a,f){const m={start:i,end:a,type:void 0,text:"",labelType:"text"};zt.info("abc78 Got edge...",m);const b=f.text;b!==void 0&&(m.text=jW(b.text.trim()),m.text[0]==='"'&&m.text[m.text.length-1]==='"'&&(m.text=m.text.substring(1,m.text.length-1)),m.labelType=b.type),f!==void 0&&(m.type=f.type,m.stroke=f.stroke,m.length=f.length),oE.push(m)},zOt=function(i,a,f){zt.info("addLink (abc78)",i,a,f);let p,v;for(p=0;p/)&&(Jb="LR"),Jb.match(/.*v/)&&(Jb="TB"),Jb==="TD"&&(Jb="TB")},$W=function(i,a){i.split(",").forEach(function(f){let p=f;Cl[p]!==void 0&&Cl[p].classes.push(a),PW[p]!==void 0&&PW[p].classes.push(a)})},XLe=function(i,a){i.split(",").forEach(function(f){a!==void 0&&(xdt[BW==="gen-1"?QN(f):f]=jW(a))})},QLe=function(i,a,f){let p=QN(i);if(Oe().securityLevel!=="loose"||a===void 0)return;let v=[];if(typeof f=="string"){v=f.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let m=0;m")),v.classed("hover",!0)}).on("mouseout",function(){a.transition().duration(500).style("opacity",0),Mr(this).classed("hover",!1)})};RW.push(tNt);const eNt=function(i="gen-1"){Cl={},YA={},oE=[],RW=[tNt],E5=[],PW={},FW=0,xdt=[],kdt=!0,BW=i,cg()},nNt=i=>{BW=i||"gen-2"},rNt=function(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"},iNt=function(i,a,f){let p=i.text.trim(),v=f.text;i===f&&f.text.match(/\s/)&&(p=void 0);function m(P){const B={boolean:{},number:{},string:{}},j=[];let R;return{nodeList:P.filter(function(Y){const it=typeof Y;return Y.stmt&&Y.stmt==="dir"?(R=Y.value,!1):Y.trim()===""?!1:it in B?B[it].hasOwnProperty(Y)?!1:B[it][Y]=!0:j.includes(Y)?!1:j.push(Y)}),dir:R}}let b=[];const{nodeList:E,dir:C}=m(b.concat.apply(b,a));if(b=E,BW==="gen-1")for(let P=0;P2e3)return;if(sNt[ZN]=a,E5[a].id===i)return{result:!0,count:0};let p=0,v=1;for(;p=0){const b=aNt(i,m);if(b.result)return{result:!0,count:v+b.count};v=v+b.count}p=p+1}return{result:!1,count:v}},oNt=function(i){return sNt[i]},cNt=function(){ZN=-1,E5.length>0&&aNt("none",E5.length-1)},uNt=function(){return E5},lNt=()=>kdt?(kdt=!1,!0):!1,JLe=i=>{let a=i.trim(),f="arrow_open";switch(a[0]){case"<":f="arrow_point",a=a.slice(1);break;case"x":f="arrow_cross",a=a.slice(1);break;case"o":f="arrow_circle",a=a.slice(1);break}let p="normal";return a.includes("=")&&(p="thick"),a.includes(".")&&(p="dotted"),{type:f,stroke:p}},tMe=(i,a)=>{const f=a.length;let p=0;for(let v=0;v{const a=i.trim();let f=a.slice(0,-1),p="arrow_open";switch(a.slice(-1)){case"x":p="arrow_cross",a[0]==="x"&&(p="double_"+p,f=f.slice(1));break;case">":p="arrow_point",a[0]==="<"&&(p="double_"+p,f=f.slice(1));break;case"o":p="arrow_circle",a[0]==="o"&&(p="double_"+p,f=f.slice(1));break}let v="normal",m=f.length-1;f[0]==="="&&(v="thick"),f[0]==="~"&&(v="invisible");let b=tMe(".",f);return b&&(v="dotted",m=b),{type:p,stroke:v,length:m}},hNt=(i,a)=>{const f=eMe(i);let p;if(a){if(p=JLe(a),p.stroke!==f.stroke)return{type:"INVALID",stroke:"INVALID"};if(p.type==="arrow_open")p.type=f.type;else{if(p.type!==f.type)return{type:"INVALID",stroke:"INVALID"};p.type="double_"+p.type}return p.type==="double_arrow"&&(p.type="double_arrow_point"),p.length=f.length,p}return f},fNt=(i,a)=>{let f=!1;return i.forEach(p=>{p.nodes.indexOf(a)>=0&&(f=!0)}),f},dNt=(i,a)=>{const f=[];return i.nodes.forEach((p,v)=>{fNt(a,p)||f.push(i.nodes[v])}),{nodes:f}},gNt={firstGraph:lNt},ak={parseDirective:ROt,defaultConfig:()=>OA.flowchart,setAccTitle:ug,getAccTitle:op,getAccDescription:up,setAccDescription:cp,addVertex:jOt,lookUpDomId:QN,addLink:zOt,updateLinkInterpolate:qOt,updateLink:HOt,addClass:VOt,setDirection:GOt,setClass:$W,setTooltip:XLe,getTooltip:WOt,setClickEvent:KOt,setLink:UOt,bindFunctions:YOt,getDirection:XOt,getVertices:QOt,getEdges:ZOt,getClasses:JOt,clear:eNt,setGen:nNt,defaultStyle:rNt,addSubGraph:iNt,getDepthFirstPos:oNt,indexNodes:cNt,getSubGraphs:uNt,destructLink:hNt,lex:gNt,exists:fNt,makeUniq:dNt,setDiagramTitle:Kb,getDiagramTitle:O2},nMe=Object.freeze(Object.defineProperty({__proto__:null,addClass:VOt,addLink:zOt,addSingleLink:$Ot,addSubGraph:iNt,addVertex:jOt,bindFunctions:YOt,clear:eNt,default:ak,defaultStyle:rNt,destructLink:hNt,firstGraph:lNt,getClasses:JOt,getDepthFirstPos:oNt,getDirection:XOt,getEdges:ZOt,getSubGraphs:uNt,getTooltip:WOt,getVertices:QOt,indexNodes:cNt,lex:gNt,lookUpDomId:QN,parseDirective:ROt,setClass:$W,setClickEvent:KOt,setDirection:GOt,setGen:nNt,setLink:UOt,updateLink:HOt,updateLinkInterpolate:qOt},Symbol.toStringTag,{value:"Module"}));var rMe="[object Symbol]";function cE(i){return typeof i=="symbol"||l3(i)&&tE(i)==rMe}function XA(i,a){for(var f=-1,p=i==null?0:i.length,v=Array(p);++f0){if(++a>=yMe)return arguments[0]}else a=0;return i.apply(void 0,arguments)}}function QA(i){return function(){return i}}var TMe=function(){try{var i=nE(Object,"defineProperty");return i({},"",{}),i}catch{}}();const qW=TMe;var _Me=qW?function(i,a){return qW(i,"toString",{configurable:!0,enumerable:!1,value:QA(a),writable:!0})}:uE,CMe=EMe(_Me);const kNt=CMe;function ENt(i,a){for(var f=-1,p=i==null?0:i.length;++f-1}var DMe=9007199254740991,IMe=/^(?:0|[1-9]\d*)$/;function HW(i,a){var f=typeof i;return a=a??DMe,!!a&&(f=="number"||f!="symbol"&&IMe.test(i))&&i>-1&&i%1==0&&i1?f[v-1]:void 0,b=v>2?f[2]:void 0;for(m=i.length>3&&typeof m=="function"?(v--,m):void 0,b&&tP(f[0],f[1],b)&&(m=v<3?void 0:m,v=1),a=Object(a);++p0&&f(E)?a>1?YW(E,a-1,f,p,v):Tdt(v,E):p||(v[v.length]=E)}return v}function ZA(i){var a=i==null?0:i.length;return a?YW(i,1):[]}function tDe(i){return kNt(CNt(i,void 0,ZA),i+"")}var eDe=nOt(Object.getPrototypeOf,Object);const _dt=eDe;var nDe="[object Object]",rDe=Function.prototype,iDe=Object.prototype,MNt=rDe.toString,sDe=iDe.hasOwnProperty,aDe=MNt.call(Object);function DNt(i){if(!l3(i)||tE(i)!=nDe)return!1;var a=_dt(i);if(a===null)return!0;var f=sDe.call(a,"constructor")&&a.constructor;return typeof f=="function"&&f instanceof f&&MNt.call(f)==aDe}function oDe(i,a,f,p){var v=-1,m=i==null?0:i.length;for(p&&m&&(f=i[++v]);++vE))return!1;var D=m.get(i),P=m.get(a);if(D&&P)return D==a&&P==i;var B=-1,j=!0,R=f&HIe?new rP:void 0;for(m.set(i,a),m.set(a,i);++B2?a[2]:void 0;for(v&&tP(a[0],a[1],v)&&(p=1);++f-1?v[m?a[b]:b]:void 0}}var FOe=Math.max;function BOe(i,a,f){var p=i==null?0:i.length;if(!p)return-1;var v=f==null?0:pMe(f);return v<0&&(v=FOe(p+v,0)),TNt(i,ok(a),v)}var ROe=POe(BOe);const Bdt=ROe;function hPt(i,a){var f=-1,p=rk(i)?Array(i.length):[];return ZW(i,function(v,m,b){p[++f]=a(v,m,b)}),p}function Rf(i,a){var f=Bf(i)?XA:hPt;return f(i,ok(a))}function jOe(i,a){return i==null?i:Idt(i,Fdt(a),lE)}function $Oe(i,a){return i&&Odt(i,Fdt(a))}function zOe(i,a){return i>a}var qOe=Object.prototype,HOe=qOe.hasOwnProperty;function VOe(i,a){return i!=null&&HOe.call(i,a)}function eo(i,a){return i!=null&&sPt(i,a,VOe)}function GOe(i,a){return XA(a,function(f){return i[f]})}function _5(i){return i==null?[]:GOe(i,F2(i))}function sf(i){return i===void 0}function fPt(i,a){return ia||m&&b&&C&&!E&&!D||p&&b&&C||!f&&C||!v)return 1;if(!p&&!m&&!D&&i=E)return C;var D=f[p];return C*(D=="desc"?-1:1)}}return i.index-a.index}function ZOe(i,a,f){a.length?a=XA(a,function(m){return Bf(m)?function(b){return KW(b,m.length===1?m[0]:m)}:m}):a=[uE];var p=-1;a=XA(a,_W(ok));var v=hPt(i,function(m,b,E){var C=XA(a,function(D){return D(m)});return{criteria:C,index:++p,value:m}});return YOe(v,function(m,b){return QOe(m,b,f)})}function JOe(i,a){return KOe(i,a,function(f,p){return aPt(i,p)})}var tNe=tDe(function(i,a){return i==null?{}:JOe(i,a)});const sP=tNe;var eNe=Math.ceil,nNe=Math.max;function rNe(i,a,f,p){for(var v=-1,m=nNe(eNe((a-i)/(f||1)),0),b=Array(m);m--;)b[p?m:++v]=i,i+=f;return b}function iNe(i){return function(a,f,p){return p&&typeof p!="number"&&tP(a,f,p)&&(f=p=void 0),a=zW(a),f===void 0?(f=a,a=0):f=zW(f),p=p===void 0?a1&&tP(i,a[0],a[1])?a=[]:f>2&&tP(a[0],a[1],a[2])&&(a=[a[0]]),ZOe(i,YW(a,1),[])});const oP=oNe;var cNe=1/0,uNe=HA&&1/Ldt(new HA([,-0]))[1]==cNe?function(i){return new HA(i)}:mMe;const lNe=uNe;var hNe=200;function fNe(i,a,f){var p=-1,v=MMe,m=i.length,b=!0,E=[],C=E;if(f)b=!1,v=OOe;else if(m>=hNe){var D=a?null:lNe(i);if(D)return Ldt(D);b=!1,v=QNt,C=new rP}else C=a?[]:E;t:for(;++p1?v.setNode(m,f):v.setNode(m)}),this}setNode(a,f){return eo(this._nodes,a)?(arguments.length>1&&(this._nodes[a]=f),this):(this._nodes[a]=arguments.length>1?f:this._defaultNodeLabelFn(a),this._isCompound&&(this._parent[a]=dE,this._children[a]={},this._children[dE][a]=!0),this._in[a]={},this._preds[a]={},this._out[a]={},this._sucs[a]={},++this._nodeCount,this)}node(a){return this._nodes[a]}hasNode(a){return eo(this._nodes,a)}removeNode(a){var f=this;if(eo(this._nodes,a)){var p=function(v){f.removeEdge(f._edgeObjs[v])};delete this._nodes[a],this._isCompound&&(this._removeFromParentsChildList(a),delete this._parent[a],vr(this.children(a),function(v){f.setParent(v)}),delete this._children[a]),vr(F2(this._in[a]),p),delete this._in[a],delete this._preds[a],vr(F2(this._out[a]),p),delete this._out[a],delete this._sucs[a],--this._nodeCount}return this}setParent(a,f){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(sf(f))f=dE;else{f+="";for(var p=f;!sf(p);p=this.parent(p))if(p===a)throw new Error("Setting "+f+" as parent of "+a+" would create a cycle");this.setNode(f)}return this.setNode(a),this._removeFromParentsChildList(a),this._parent[a]=f,this._children[f][a]=!0,this}_removeFromParentsChildList(a){delete this._children[this._parent[a]][a]}parent(a){if(this._isCompound){var f=this._parent[a];if(f!==dE)return f}}children(a){if(sf(a)&&(a=dE),this._isCompound){var f=this._children[a];if(f)return F2(f)}else{if(a===dE)return this.nodes();if(this.hasNode(a))return[]}}predecessors(a){var f=this._preds[a];if(f)return F2(f)}successors(a){var f=this._sucs[a];if(f)return F2(f)}neighbors(a){var f=this.predecessors(a);if(f)return gNe(f,this.successors(a))}isLeaf(a){var f;return this.isDirected()?f=this.successors(a):f=this.neighbors(a),f.length===0}filterNodes(a){var f=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});f.setGraph(this.graph());var p=this;vr(this._nodes,function(b,E){a(E)&&f.setNode(E,b)}),vr(this._edgeObjs,function(b){f.hasNode(b.v)&&f.hasNode(b.w)&&f.setEdge(b,p.edge(b))});var v={};function m(b){var E=p.parent(b);return E===void 0||f.hasNode(E)?(v[b]=E,E):E in v?v[E]:m(E)}return this._isCompound&&vr(f.nodes(),function(b){f.setParent(b,m(b))}),f}setDefaultEdgeLabel(a){return FA(a)||(a=QA(a)),this._defaultEdgeLabelFn=a,this}edgeCount(){return this._edgeCount}edges(){return _5(this._edgeObjs)}setPath(a,f){var p=this,v=arguments;return aP(a,function(m,b){return v.length>1?p.setEdge(m,b,f):p.setEdge(m,b),b}),this}setEdge(){var a,f,p,v,m=!1,b=arguments[0];typeof b=="object"&&b!==null&&"v"in b?(a=b.v,f=b.w,p=b.name,arguments.length===2&&(v=arguments[1],m=!0)):(a=b,f=arguments[1],p=arguments[3],arguments.length>2&&(v=arguments[2],m=!0)),a=""+a,f=""+f,sf(p)||(p=""+p);var E=cP(this._isDirected,a,f,p);if(eo(this._edgeLabels,E))return m&&(this._edgeLabels[E]=v),this;if(!sf(p)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(a),this.setNode(f),this._edgeLabels[E]=m?v:this._defaultEdgeLabelFn(a,f,p);var C=mNe(this._isDirected,a,f,p);return a=C.v,f=C.w,Object.freeze(C),this._edgeObjs[E]=C,gPt(this._preds[f],a),gPt(this._sucs[a],f),this._in[f][E]=C,this._out[a][E]=C,this._edgeCount++,this}edge(a,f,p){var v=arguments.length===1?zdt(this._isDirected,arguments[0]):cP(this._isDirected,a,f,p);return this._edgeLabels[v]}hasEdge(a,f,p){var v=arguments.length===1?zdt(this._isDirected,arguments[0]):cP(this._isDirected,a,f,p);return eo(this._edgeLabels,v)}removeEdge(a,f,p){var v=arguments.length===1?zdt(this._isDirected,arguments[0]):cP(this._isDirected,a,f,p),m=this._edgeObjs[v];return m&&(a=m.v,f=m.w,delete this._edgeLabels[v],delete this._edgeObjs[v],pPt(this._preds[f],a),pPt(this._sucs[a],f),delete this._in[f][v],delete this._out[a][v],this._edgeCount--),this}inEdges(a,f){var p=this._in[a];if(p){var v=_5(p);return f?T5(v,function(m){return m.v===f}):v}}outEdges(a,f){var p=this._out[a];if(p){var v=_5(p);return f?T5(v,function(m){return m.w===f}):v}}nodeEdges(a,f){var p=this.inEdges(a,f);if(p)return p.concat(this.outEdges(a,f))}}jf.prototype._nodeCount=0,jf.prototype._edgeCount=0;function gPt(i,a){i[a]?i[a]++:i[a]=1}function pPt(i,a){--i[a]||delete i[a]}function cP(i,a,f,p){var v=""+a,m=""+f;if(!i&&v>m){var b=v;v=m,m=b}return v+dPt+m+dPt+(sf(p)?wNe:p)}function mNe(i,a,f,p){var v=""+a,m=""+f;if(!i&&v>m){var b=v;v=m,m=b}var E={v,w:m};return p&&(E.name=p),E}function zdt(i,a){return cP(i,a.v,a.w,a.name)}class yNe{constructor(){var a={};a._next=a._prev=a,this._sentinel=a}dequeue(){var a=this._sentinel,f=a._prev;if(f!==a)return bPt(f),f}enqueue(a){var f=this._sentinel;a._prev&&a._next&&bPt(a),a._next=f._next,f._next._prev=a,f._next=a,a._prev=f}toString(){for(var a=[],f=this._sentinel,p=f._prev;p!==f;)a.push(JSON.stringify(p,xNe)),p=p._prev;return"["+a.join(", ")+"]"}}function bPt(i){i._prev._next=i._next,i._next._prev=i._prev,delete i._next,delete i._prev}function xNe(i,a){if(i!=="_next"&&i!=="_prev")return a}var kNe=QA(1);function ENe(i,a){if(i.nodeCount()<=1)return[];var f=_Ne(i,a||kNe),p=TNe(f.graph,f.buckets,f.zeroIdx);return ZA(Rf(p,function(v){return i.outEdges(v.v,v.w)}))}function TNe(i,a,f){for(var p=[],v=a[a.length-1],m=a[0],b;i.nodeCount();){for(;b=m.dequeue();)qdt(i,a,f,b);for(;b=v.dequeue();)qdt(i,a,f,b);if(i.nodeCount()){for(var E=a.length-2;E>0;--E)if(b=a[E].dequeue(),b){p=p.concat(qdt(i,a,f,b,!0));break}}}return p}function qdt(i,a,f,p,v){var m=v?[]:void 0;return vr(i.inEdges(p.v),function(b){var E=i.edge(b),C=i.node(b.v);v&&m.push({v:b.v,w:b.w}),C.out-=E,Hdt(a,f,C)}),vr(i.outEdges(p.v),function(b){var E=i.edge(b),C=b.w,D=i.node(C);D.in-=E,Hdt(a,f,D)}),i.removeNode(p.v),m}function _Ne(i,a){var f=new jf,p=0,v=0;vr(i.nodes(),function(E){f.setNode(E,{v:E,in:0,out:0})}),vr(i.edges(),function(E){var C=f.edge(E.v,E.w)||0,D=a(E),P=C+D;f.setEdge(E.v,E.w,P),v=Math.max(v,f.node(E.v).out+=D),p=Math.max(p,f.node(E.w).in+=D)});var m=fE(v+p+3).map(function(){return new yNe}),b=p+1;return vr(f.nodes(),function(E){Hdt(m,b,f.node(E))}),{graph:f,buckets:m,zeroIdx:b}}function Hdt(i,a,f){f.out?f.in?i[f.out-f.in+a].enqueue(f):i[i.length-1].enqueue(f):i[0].enqueue(f)}function CNe(i){var a=i.graph().acyclicer==="greedy"?ENe(i,f(i)):SNe(i);vr(a,function(p){var v=i.edge(p);i.removeEdge(p),v.forwardName=p.name,v.reversed=!0,i.setEdge(p.w,p.v,v,eK("rev"))});function f(p){return function(v){return p.edge(v).weight}}}function SNe(i){var a=[],f={},p={};function v(m){eo(p,m)||(p[m]=!0,f[m]=!0,vr(i.outEdges(m),function(b){eo(f,b.w)?a.push(b):v(b.w)}),delete f[m])}return vr(i.nodes(),v),a}function ANe(i){vr(i.edges(),function(a){var f=i.edge(a);if(f.reversed){i.removeEdge(a);var p=f.forwardName;delete f.reversed,delete f.forwardName,i.setEdge(a.w,a.v,f,p)}})}function tL(i,a,f,p){var v;do v=eK(p);while(i.hasNode(v));return f.dummy=a,i.setNode(v,f),v}function LNe(i){var a=new jf().setGraph(i.graph());return vr(i.nodes(),function(f){a.setNode(f,i.node(f))}),vr(i.edges(),function(f){var p=a.edge(f.v,f.w)||{weight:0,minlen:1},v=i.edge(f);a.setEdge(f.v,f.w,{weight:p.weight+v.weight,minlen:Math.max(p.minlen,v.minlen)})}),a}function vPt(i){var a=new jf({multigraph:i.isMultigraph()}).setGraph(i.graph());return vr(i.nodes(),function(f){i.children(f).length||a.setNode(f,i.node(f))}),vr(i.edges(),function(f){a.setEdge(f,i.edge(f))}),a}function wPt(i,a){var f=i.x,p=i.y,v=a.x-f,m=a.y-p,b=i.width/2,E=i.height/2;if(!v&&!m)throw new Error("Not possible to find intersection inside of the rectangle");var C,D;return Math.abs(m)*b>Math.abs(v)*E?(m<0&&(E=-E),C=E*v/m,D=E):(v<0&&(b=-b),C=b,D=b*m/v),{x:f+C,y:p+D}}function nK(i){var a=Rf(fE(yPt(i)+1),function(){return[]});return vr(i.nodes(),function(f){var p=i.node(f),v=p.rank;sf(v)||(a[v][p.order]=f)}),a}function MNe(i){var a=iP(Rf(i.nodes(),function(f){return i.node(f).rank}));vr(i.nodes(),function(f){var p=i.node(f);eo(p,"rank")&&(p.rank-=a)})}function DNe(i){var a=iP(Rf(i.nodes(),function(m){return i.node(m).rank})),f=[];vr(i.nodes(),function(m){var b=i.node(m).rank-a;f[b]||(f[b]=[]),f[b].push(m)});var p=0,v=i.graph().nodeRankFactor;vr(f,function(m,b){sf(m)&&b%v!==0?--p:p&&vr(m,function(E){i.node(E).rank+=p})})}function mPt(i,a,f,p){var v={width:0,height:0};return arguments.length>=4&&(v.rank=f,v.order=p),tL(i,"border",v,a)}function yPt(i){return hE(Rf(i.nodes(),function(a){var f=i.node(a).rank;if(!sf(f))return f}))}function INe(i,a){var f={lhs:[],rhs:[]};return vr(i,function(p){a(p)?f.lhs.push(p):f.rhs.push(p)}),f}function ONe(i,a){var f=oPt();try{return a()}finally{console.log(i+" time: "+(oPt()-f)+"ms")}}function NNe(i,a){return a()}function PNe(i){function a(f){var p=i.children(f),v=i.node(f);if(p.length&&vr(p,a),eo(v,"minRank")){v.borderLeft=[],v.borderRight=[];for(var m=v.minRank,b=v.maxRank+1;mb.lim&&(E=b,C=!0);var D=T5(a.edges(),function(P){return C===IPt(i,i.node(P.v),E)&&C!==IPt(i,i.node(P.w),E)});return $dt(D,function(P){return uP(a,P)})}function DPt(i,a,f,p){var v=f.v,m=f.w;i.removeEdge(v,m),i.setEdge(p.v,p.w,{}),Kdt(i),Wdt(i,a),XNe(i,a)}function XNe(i,a){var f=Bdt(i.nodes(),function(v){return!a.node(v).parent}),p=KNe(i,f);p=p.slice(1),vr(p,function(v){var m=i.node(v).parent,b=a.edge(v,m),E=!1;b||(b=a.edge(m,v),E=!0),a.node(v).rank=a.node(m).rank+(E?b.minlen:-b.minlen)})}function QNe(i,a,f){return i.hasEdge(a,f)}function IPt(i,a,f){return f.low<=a.lim&&a.lim<=f.lim}function ZNe(i){switch(i.graph().ranker){case"network-simplex":OPt(i);break;case"tight-tree":tPe(i);break;case"longest-path":JNe(i);break;default:OPt(i)}}var JNe=Udt;function tPe(i){Udt(i),TPt(i)}function OPt(i){gE(i)}function ePe(i){var a=tL(i,"root",{},"_root"),f=nPe(i),p=hE(_5(f))-1,v=2*p+1;i.graph().nestingRoot=a,vr(i.edges(),function(b){i.edge(b).minlen*=v});var m=rPe(i)+1;vr(i.children(),function(b){NPt(i,a,v,m,p,f,b)}),i.graph().nodeRankFactor=v}function NPt(i,a,f,p,v,m,b){var E=i.children(b);if(!E.length){b!==a&&i.setEdge(a,b,{weight:0,minlen:f});return}var C=mPt(i,"_bt"),D=mPt(i,"_bb"),P=i.node(b);i.setParent(C,b),P.borderTop=C,i.setParent(D,b),P.borderBottom=D,vr(E,function(B){NPt(i,a,f,p,v,m,B);var j=i.node(B),R=j.borderTop?j.borderTop:B,H=j.borderBottom?j.borderBottom:B,Y=j.borderTop?p:2*p,it=R!==H?1:v-m[b]+1;i.setEdge(C,R,{weight:Y,minlen:it,nestingEdge:!0}),i.setEdge(H,D,{weight:Y,minlen:it,nestingEdge:!0})}),i.parent(b)||i.setEdge(a,C,{weight:0,minlen:v+m[b]})}function nPe(i){var a={};function f(p,v){var m=i.children(p);m&&m.length&&vr(m,function(b){f(b,v+1)}),a[p]=v}return vr(i.children(),function(p){f(p,1)}),a}function rPe(i){return aP(i.edges(),function(a,f){return a+i.edge(f).weight},0)}function iPe(i){var a=i.graph();i.removeNode(a.nestingRoot),delete a.nestingRoot,vr(i.edges(),function(f){var p=i.edge(f);p.nestingEdge&&i.removeEdge(f)})}function sPe(i,a,f){var p={},v;vr(f,function(m){for(var b=i.parent(m),E,C;b;){if(E=i.parent(b),E?(C=p[E],p[E]=b):(C=v,v=b),C&&C!==b){a.setEdge(C,b);return}b=E}})}function aPe(i,a,f){var p=oPe(i),v=new jf({compound:!0}).setGraph({root:p}).setDefaultNodeLabel(function(m){return i.node(m)});return vr(i.nodes(),function(m){var b=i.node(m),E=i.parent(m);(b.rank===a||b.minRank<=a&&a<=b.maxRank)&&(v.setNode(m),v.setParent(m,E||p),vr(i[f](m),function(C){var D=C.v===m?C.w:C.v,P=v.edge(D,m),B=sf(P)?0:P.weight;v.setEdge(D,m,{weight:i.edge(C).weight+B})}),eo(b,"minRank")&&v.setNode(m,{borderLeft:b.borderLeft[a],borderRight:b.borderRight[a]}))}),v}function oPe(i){for(var a;i.hasNode(a=eK("_root")););return a}function cPe(i,a){for(var f=0,p=1;p0;)P%2&&(B+=E[P+1]),P=P-1>>1,E[P]+=D.weight;C+=D.weight*B})),C}function lPe(i){var a={},f=T5(i.nodes(),function(E){return!i.children(E).length}),p=hE(Rf(f,function(E){return i.node(E).rank})),v=Rf(fE(p+1),function(){return[]});function m(E){if(!eo(a,E)){a[E]=!0;var C=i.node(E);v[C.rank].push(E),vr(i.successors(E),m)}}var b=oP(f,function(E){return i.node(E).rank});return vr(b,m),v}function hPe(i,a){return Rf(a,function(f){var p=i.inEdges(f);if(p.length){var v=aP(p,function(m,b){var E=i.edge(b),C=i.node(b.v);return{sum:m.sum+E.weight*C.order,weight:m.weight+E.weight}},{sum:0,weight:0});return{v:f,barycenter:v.sum/v.weight,weight:v.weight}}else return{v:f}})}function fPe(i,a){var f={};vr(i,function(v,m){var b=f[v.v]={indegree:0,in:[],out:[],vs:[v.v],i:m};sf(v.barycenter)||(b.barycenter=v.barycenter,b.weight=v.weight)}),vr(a.edges(),function(v){var m=f[v.v],b=f[v.w];!sf(m)&&!sf(b)&&(b.indegree++,m.out.push(f[v.w]))});var p=T5(f,function(v){return!v.indegree});return dPe(p)}function dPe(i){var a=[];function f(m){return function(b){b.merged||(sf(b.barycenter)||sf(m.barycenter)||b.barycenter>=m.barycenter)&&gPe(m,b)}}function p(m){return function(b){b.in.push(m),--b.indegree===0&&i.push(b)}}for(;i.length;){var v=i.pop();a.push(v),vr(v.in.reverse(),f(v)),vr(v.out,p(v))}return Rf(T5(a,function(m){return!m.merged}),function(m){return sP(m,["vs","i","barycenter","weight"])})}function gPe(i,a){var f=0,p=0;i.weight&&(f+=i.barycenter*i.weight,p+=i.weight),a.weight&&(f+=a.barycenter*a.weight,p+=a.weight),i.vs=a.vs.concat(i.vs),i.barycenter=f/p,i.weight=p,i.i=Math.min(a.i,i.i),a.merged=!0}function pPe(i,a){var f=INe(i,function(P){return eo(P,"barycenter")}),p=f.lhs,v=oP(f.rhs,function(P){return-P.i}),m=[],b=0,E=0,C=0;p.sort(bPe(!!a)),C=PPt(m,v,C),vr(p,function(P){C+=P.vs.length,m.push(P.vs),b+=P.barycenter*P.weight,E+=P.weight,C=PPt(m,v,C)});var D={vs:ZA(m)};return E&&(D.barycenter=b/E,D.weight=E),D}function PPt(i,a,f){for(var p;a.length&&(p=JW(a)).i<=f;)a.pop(),i.push(p.vs),f++;return f}function bPe(i){return function(a,f){return a.barycenterf.barycenter?1:i?f.i-a.i:a.i-f.i}}function FPt(i,a,f,p){var v=i.children(a),m=i.node(a),b=m?m.borderLeft:void 0,E=m?m.borderRight:void 0,C={};b&&(v=T5(v,function(H){return H!==b&&H!==E}));var D=hPe(i,v);vr(D,function(H){if(i.children(H.v).length){var Y=FPt(i,H.v,f,p);C[H.v]=Y,eo(Y,"barycenter")&&wPe(H,Y)}});var P=fPe(D,f);vPe(P,C);var B=pPe(P,p);if(b&&(B.vs=ZA([b,B.vs,E]),i.predecessors(b).length)){var j=i.node(i.predecessors(b)[0]),R=i.node(i.predecessors(E)[0]);eo(B,"barycenter")||(B.barycenter=0,B.weight=0),B.barycenter=(B.barycenter*B.weight+j.order+R.order)/(B.weight+2),B.weight+=2}return B}function vPe(i,a){vr(i,function(f){f.vs=ZA(f.vs.map(function(p){return a[p]?a[p].vs:p}))})}function wPe(i,a){sf(i.barycenter)?(i.barycenter=a.barycenter,i.weight=a.weight):(i.barycenter=(i.barycenter*i.weight+a.barycenter*a.weight)/(i.weight+a.weight),i.weight+=a.weight)}function mPe(i){var a=yPt(i),f=BPt(i,fE(1,a+1),"inEdges"),p=BPt(i,fE(a-1,-1,-1),"outEdges"),v=lPe(i);RPt(i,v);for(var m=Number.POSITIVE_INFINITY,b,E=0,C=0;C<4;++E,++C){yPe(E%2?f:p,E%4>=2),v=nK(i);var D=cPe(i,v);Db||E>a[C].lim));for(D=C,C=p;(C=i.parent(C))!==D;)m.push(C);return{path:v.concat(m.reverse()),lca:D}}function EPe(i){var a={},f=0;function p(v){var m=f;vr(i.children(v),p),a[v]={low:m,lim:f++}}return vr(i.children(),p),a}function TPe(i,a){var f={};function p(v,m){var b=0,E=0,C=v.length,D=JW(m);return vr(m,function(P,B){var j=CPe(i,P),R=j?i.node(j).order:C;(j||P===D)&&(vr(m.slice(E,B+1),function(H){vr(i.predecessors(H),function(Y){var it=i.node(Y),nt=it.order;(ntD)&&jPt(f,j,P)})})}function v(m,b){var E=-1,C,D=0;return vr(b,function(P,B){if(i.node(P).dummy==="border"){var j=i.predecessors(P);j.length&&(C=i.node(j[0]).order,p(b,D,B,E,C),D=B,E=C)}p(b,D,b.length,C,m.length)}),b}return aP(a,v),f}function CPe(i,a){if(i.node(a).dummy)return Bdt(i.predecessors(a),function(f){return i.node(f).dummy})}function jPt(i,a,f){if(a>f){var p=a;a=f,f=p}var v=i[a];v||(i[a]=v={}),v[f]=!0}function SPe(i,a,f){if(a>f){var p=a;a=f,f=p}return eo(i[a],f)}function APe(i,a,f,p){var v={},m={},b={};return vr(a,function(E){vr(E,function(C,D){v[C]=C,m[C]=C,b[C]=D})}),vr(a,function(E){var C=-1;vr(E,function(D){var P=p(D);if(P.length){P=oP(P,function(Y){return b[Y]});for(var B=(P.length-1)/2,j=Math.floor(B),R=Math.ceil(B);j<=R;++j){var H=P[j];m[D]===D&&C0}function g3(i,a,f){var p=i.x,v=i.y,m=[],b=Number.POSITIVE_INFINITY,E=Number.POSITIVE_INFINITY;a.forEach(function(H){b=Math.min(b,H.x),E=Math.min(E,H.y)});for(var C=p-i.width/2-b,D=v-i.height/2-E,P=0;P1&&m.sort(function(H,Y){var it=H.x-f.x,nt=H.y-f.y,st=Math.sqrt(it*it+nt*nt),pt=Y.x-f.x,Tt=Y.y-f.y,kt=Math.sqrt(pt*pt+Tt*Tt);return stMath.abs(v)*E?(m<0&&(E=-E),C=m===0?0:E*v/m,D=E):(v<0&&(b=-b),C=b,D=v===0?0:b*m/v),{x:f+C,y:p+D}}var a0t={rect:DFe,ellipse:IFe,circle:OFe,diamond:NFe};function MFe(i){a0t=i}function DFe(i,a,f){var p=i.insert("rect",":first-child").attr("rx",f.rx).attr("ry",f.ry).attr("x",-a.width/2).attr("y",-a.height/2).attr("width",a.width).attr("height",a.height);return f.intersect=function(v){return s0t(f,v)},p}function IFe(i,a,f){var p=a.width/2,v=a.height/2,m=i.insert("ellipse",":first-child").attr("x",-a.width/2).attr("y",-a.height/2).attr("rx",p).attr("ry",v);return f.intersect=function(b){return GPt(f,p,v,b)},m}function OFe(i,a,f){var p=Math.max(a.width,a.height)/2,v=i.insert("circle",":first-child").attr("x",-a.width/2).attr("y",-a.height/2).attr("r",p);return f.intersect=function(m){return AFe(f,p,m)},v}function NFe(i,a,f){var p=a.width*Math.SQRT2/2,v=a.height*Math.SQRT2/2,m=[{x:0,y:-v},{x:-p,y:0},{x:0,y:v},{x:p,y:0}],b=i.insert("polygon",":first-child").attr("points",m.map(function(E){return E.x+","+E.y}).join(" "));return f.intersect=function(E){return g3(f,m,E)},b}function PFe(){var i=function(a,f){RFe(f);var p=lP(a,"output"),v=lP(p,"clusters"),m=lP(p,"edgePaths"),b=n0t(lP(p,"edgeLabels"),f),E=i0t(lP(p,"nodes"),f,a0t);eL(f),SFe(E,f),CFe(b,f),r0t(m,f,Zdt);var C=e0t(v,f);_Fe(C,f),jFe(f)};return i.createNodes=function(a){return arguments.length?(TFe(a),i):i0t},i.createClusters=function(a){return arguments.length?(bFe(a),i):e0t},i.createEdgeLabels=function(a){return arguments.length?(vFe(a),i):n0t},i.createEdgePaths=function(a){return arguments.length?(wFe(a),i):r0t},i.shapes=function(a){return arguments.length?(MFe(a),i):a0t},i.arrows=function(a){return arguments.length?(uFe(a),i):Zdt},i}var FFe={paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10,rx:0,ry:0,shape:"rect"},BFe={arrowhead:"normal",curve:rg};function RFe(i){i.nodes().forEach(function(a){var f=i.node(a);!eo(f,"label")&&!i.children(a).length&&(f.label=a),eo(f,"paddingX")&&JA(f,{paddingLeft:f.paddingX,paddingRight:f.paddingX}),eo(f,"paddingY")&&JA(f,{paddingTop:f.paddingY,paddingBottom:f.paddingY}),eo(f,"padding")&&JA(f,{paddingLeft:f.padding,paddingRight:f.padding,paddingTop:f.padding,paddingBottom:f.padding}),JA(f,FFe),vr(["paddingLeft","paddingRight","paddingTop","paddingBottom"],function(p){f[p]=Number(f[p])}),eo(f,"width")&&(f._prevWidth=f.width),eo(f,"height")&&(f._prevHeight=f.height)}),i.edges().forEach(function(a){var f=i.edge(a);eo(f,"label")||(f.label=""),JA(f,BFe)})}function jFe(i){vr(i.nodes(),function(a){var f=i.node(a);eo(f,"_prevWidth")?f.width=f._prevWidth:delete f.width,eo(f,"_prevHeight")?f.height=f._prevHeight:delete f.height,delete f._prevWidth,delete f._prevHeight})}function lP(i,a){var f=i.select("g."+a);return f.empty()&&(f=i.append("g").attr("class",a)),f}function WPt(i,a,f){const p=a.width,v=a.height,m=(p+v)*.9,b=[{x:m/2,y:0},{x:m,y:-m/2},{x:m/2,y:-m},{x:0,y:-m/2}],E=C5(i,m,m,b);return f.intersect=function(C){return g3(f,b,C)},E}function KPt(i,a,f){const v=a.height,m=v/4,b=a.width+2*m,E=[{x:m,y:0},{x:b-m,y:0},{x:b,y:-v/2},{x:b-m,y:-v},{x:m,y:-v},{x:0,y:-v/2}],C=C5(i,b,v,E);return f.intersect=function(D){return g3(f,E,D)},C}function YPt(i,a,f){const p=a.width,v=a.height,m=[{x:-v/2,y:0},{x:p,y:0},{x:p,y:-v},{x:-v/2,y:-v},{x:0,y:-v/2}],b=C5(i,p,v,m);return f.intersect=function(E){return g3(f,m,E)},b}function XPt(i,a,f){const p=a.width,v=a.height,m=[{x:-2*v/6,y:0},{x:p-v/6,y:0},{x:p+2*v/6,y:-v},{x:v/6,y:-v}],b=C5(i,p,v,m);return f.intersect=function(E){return g3(f,m,E)},b}function QPt(i,a,f){const p=a.width,v=a.height,m=[{x:2*v/6,y:0},{x:p+v/6,y:0},{x:p-2*v/6,y:-v},{x:-v/6,y:-v}],b=C5(i,p,v,m);return f.intersect=function(E){return g3(f,m,E)},b}function ZPt(i,a,f){const p=a.width,v=a.height,m=[{x:-2*v/6,y:0},{x:p+2*v/6,y:0},{x:p-v/6,y:-v},{x:v/6,y:-v}],b=C5(i,p,v,m);return f.intersect=function(E){return g3(f,m,E)},b}function JPt(i,a,f){const p=a.width,v=a.height,m=[{x:v/6,y:0},{x:p-v/6,y:0},{x:p+2*v/6,y:-v},{x:-2*v/6,y:-v}],b=C5(i,p,v,m);return f.intersect=function(E){return g3(f,m,E)},b}function tFt(i,a,f){const p=a.width,v=a.height,m=[{x:0,y:0},{x:p+v/2,y:0},{x:p,y:-v/2},{x:p+v/2,y:-v},{x:0,y:-v}],b=C5(i,p,v,m);return f.intersect=function(E){return g3(f,m,E)},b}function eFt(i,a,f){const p=a.height,v=a.width+p/4,m=i.insert("rect",":first-child").attr("rx",p/2).attr("ry",p/2).attr("x",-v/2).attr("y",-p/2).attr("width",v).attr("height",p);return f.intersect=function(b){return s0t(f,b)},m}function nFt(i,a,f){const p=a.width,v=a.height,m=[{x:0,y:0},{x:p,y:0},{x:p,y:-v},{x:0,y:-v},{x:0,y:0},{x:-8,y:0},{x:p+8,y:0},{x:p+8,y:-v},{x:-8,y:-v},{x:-8,y:0}],b=C5(i,p,v,m);return f.intersect=function(E){return g3(f,m,E)},b}function rFt(i,a,f){const p=a.width,v=p/2,m=v/(2.5+p/50),b=a.height+m,E="M 0,"+m+" a "+v+","+m+" 0,0,0 "+p+" 0 a "+v+","+m+" 0,0,0 "+-p+" 0 l 0,"+b+" a "+v+","+m+" 0,0,0 "+p+" 0 l 0,"+-b,C=i.attr("label-offset-y",m).insert("path",":first-child").attr("d",E).attr("transform","translate("+-p/2+","+-(b/2+m)+")");return f.intersect=function(D){const P=s0t(f,D),B=P.x-f.x;if(v!=0&&(Math.abs(B)f.height/2-m)){let j=m*m*(1-B*B/(v*v));j!=0&&(j=Math.sqrt(j)),j=m-j,D.y-f.y>0&&(j=-j),P.y+=j}return P},C}function $Fe(i){i.shapes().question=WPt,i.shapes().hexagon=KPt,i.shapes().stadium=eFt,i.shapes().subroutine=nFt,i.shapes().cylinder=rFt,i.shapes().rect_left_inv_arrow=YPt,i.shapes().lean_right=XPt,i.shapes().lean_left=QPt,i.shapes().trapezoid=ZPt,i.shapes().inv_trapezoid=JPt,i.shapes().rect_right_inv_arrow=tFt}function zFe(i){i({question:WPt}),i({hexagon:KPt}),i({stadium:eFt}),i({subroutine:nFt}),i({cylinder:rFt}),i({rect_left_inv_arrow:YPt}),i({lean_right:XPt}),i({lean_left:QPt}),i({trapezoid:ZPt}),i({inv_trapezoid:JPt}),i({rect_right_inv_arrow:tFt})}function C5(i,a,f,p){return i.insert("polygon",":first-child").attr("points",p.map(function(v){return v.x+","+v.y}).join(" ")).attr("transform","translate("+-a/2+","+f/2+")")}const qFe={addToRender:$Fe,addToRenderV2:zFe},iFt={},HFe=function(i){const a=Object.keys(i);for(const f of a)iFt[f]=i[f]},sFt=function(i,a,f,p,v,m){const b=p?p.select(`[id="${f}"]`):Mr(`[id="${f}"]`),E=v||document;Object.keys(i).forEach(function(D){const P=i[D];let B="default";P.classes.length>0&&(B=P.classes.join(" "));const j=Qw(P.styles);let R=P.text!==void 0?P.text:P.id,H;if(h1(Oe().flowchart.htmlLabels)){const nt={label:R.replace(/fa[blrs]?:fa-[\w-]+/g,st=>``)};H=Jdt(b,nt).node(),H.parentNode.removeChild(H)}else{const nt=E.createElementNS("http://www.w3.org/2000/svg","text");nt.setAttribute("style",j.labelStyle.replace("color:","fill:"));const st=R.split(yi.lineBreakRegex);for(const pt of st){const Tt=E.createElementNS("http://www.w3.org/2000/svg","tspan");Tt.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),Tt.setAttribute("dy","1em"),Tt.setAttribute("x","1"),Tt.textContent=pt,nt.appendChild(Tt)}H=nt}let Y=0,it="";switch(P.type){case"round":Y=5,it="rect";break;case"square":it="rect";break;case"diamond":it="question";break;case"hexagon":it="hexagon";break;case"odd":it="rect_left_inv_arrow";break;case"lean_right":it="lean_right";break;case"lean_left":it="lean_left";break;case"trapezoid":it="trapezoid";break;case"inv_trapezoid":it="inv_trapezoid";break;case"odd_right":it="rect_left_inv_arrow";break;case"circle":it="circle";break;case"ellipse":it="ellipse";break;case"stadium":it="stadium";break;case"subroutine":it="subroutine";break;case"cylinder":it="cylinder";break;case"group":it="rect";break;default:it="rect"}zt.warn("Adding node",P.id,P.domId),a.setNode(m.db.lookUpDomId(P.id),{labelType:"svg",labelStyle:j.labelStyle,shape:it,label:H,rx:Y,ry:Y,class:B,style:j.style,id:m.db.lookUpDomId(P.id)})})},aFt=function(i,a,f){let p=0,v,m;if(i.defaultStyle!==void 0){const b=Qw(i.defaultStyle);v=b.style,m=b.labelStyle}i.forEach(function(b){p++;const E="L-"+b.start+"-"+b.end,C="LS-"+b.start,D="LE-"+b.end,P={};b.type==="arrow_open"?P.arrowhead="none":P.arrowhead="normal";let B="",j="";if(b.style!==void 0){const R=Qw(b.style);B=R.style,j=R.labelStyle}else switch(b.stroke){case"normal":B="fill:none",v!==void 0&&(B=v),m!==void 0&&(j=m);break;case"dotted":B="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":B=" stroke-width: 3.5px;fill:none";break}P.style=B,P.labelStyle=j,b.interpolate!==void 0?P.curve=Xb(b.interpolate,rg):i.defaultInterpolate!==void 0?P.curve=Xb(i.defaultInterpolate,rg):P.curve=Xb(iFt.curve,rg),b.text===void 0?b.style!==void 0&&(P.arrowheadStyle="fill: #333"):(P.arrowheadStyle="fill: #333",P.labelpos="c",h1(Oe().flowchart.htmlLabels)?(P.labelType="html",P.label=`${b.text.replace(/fa[blrs]?:fa-[\w-]+/g,R=>``)}`):(P.labelType="text",P.label=b.text.replace(yi.lineBreakRegex,` -`),b.style===void 0&&(P.style=P.style||"stroke: #333; stroke-width: 1.5px;fill:none"),P.labelStyle=P.labelStyle.replace("color:","fill:"))),P.id=E,P.class=C+" "+D,P.minlen=b.length||1,a.setEdge(f.db.lookUpDomId(b.start),f.db.lookUpDomId(b.end),P,p)})},VFe={setConf:HFe,addVertices:sFt,addEdges:aFt,getClasses:function(i,a){zt.info("Extracting classes"),a.db.clear();try{return a.parse(i),a.db.getClasses()}catch(f){return zt.error(f),{}}},draw:function(i,a,f,p){zt.info("Drawing flowchart"),p.db.clear();const{securityLevel:v,flowchart:m}=Oe();let b;v==="sandbox"&&(b=Mr("#i"+a));const E=Mr(v==="sandbox"?b.nodes()[0].contentDocument.body:"body"),C=v==="sandbox"?b.nodes()[0].contentDocument:document;try{p.parser.parse(i)}catch{zt.debug("Parsing failed")}let D=p.db.getDirection();D===void 0&&(D="TD");const P=m.nodeSpacing||50,B=m.rankSpacing||50,j=new jf({multigraph:!0,compound:!0}).setGraph({rankdir:D,nodesep:P,ranksep:B,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});let R;const H=p.db.getSubGraphs();for(let yt=H.length-1;yt>=0;yt--)R=H[yt],p.db.addVertex(R.id,R.title,"group",void 0,R.classes);const Y=p.db.getVertices();zt.warn("Get vertices",Y);const it=p.db.getEdges();let nt=0;for(nt=H.length-1;nt>=0;nt--){R=H[nt],zft("cluster").append("text");for(let yt=0;yt{a.forEach(v=>{KFe[v](i,f,p)})},KFe={extension:(i,a,f)=>{zt.trace("Making markers for ",f),i.append("defs").append("marker").attr("id",a+"-extensionStart").attr("class","marker extension "+a).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),i.append("defs").append("marker").attr("id",a+"-extensionEnd").attr("class","marker extension "+a).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},composition:(i,a)=>{i.append("defs").append("marker").attr("id",a+"-compositionStart").attr("class","marker composition "+a).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id",a+"-compositionEnd").attr("class","marker composition "+a).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},aggregation:(i,a)=>{i.append("defs").append("marker").attr("id",a+"-aggregationStart").attr("class","marker aggregation "+a).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id",a+"-aggregationEnd").attr("class","marker aggregation "+a).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},dependency:(i,a)=>{i.append("defs").append("marker").attr("id",a+"-dependencyStart").attr("class","marker dependency "+a).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id",a+"-dependencyEnd").attr("class","marker dependency "+a).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},lollipop:(i,a)=>{i.append("defs").append("marker").attr("id",a+"-lollipopStart").attr("class","marker lollipop "+a).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","white").attr("cx",6).attr("cy",7).attr("r",6)},point:(i,a)=>{i.append("marker").attr("id",a+"-pointEnd").attr("class","marker "+a).attr("viewBox","0 0 10 10").attr("refX",10).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),i.append("marker").attr("id",a+"-pointStart").attr("class","marker "+a).attr("viewBox","0 0 10 10").attr("refX",0).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},circle:(i,a)=>{i.append("marker").attr("id",a+"-circleEnd").attr("class","marker "+a).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),i.append("marker").attr("id",a+"-circleStart").attr("class","marker "+a).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},cross:(i,a)=>{i.append("marker").attr("id",a+"-crossEnd").attr("class","marker cross "+a).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),i.append("marker").attr("id",a+"-crossStart").attr("class","marker cross "+a).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},barb:(i,a)=>{i.append("defs").append("marker").attr("id",a+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")}},oFt=WFe;function YFe(i,a){a&&i.attr("style",a)}function XFe(i){const a=Mr(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),f=a.append("xhtml:div"),p=i.label,v=i.isNode?"nodeLabel":"edgeLabel";return f.html('"+p+""),YFe(f,i.labelStyle),f.style("display","inline-block"),f.style("white-space","nowrap"),f.attr("xmlns","http://www.w3.org/1999/xhtml"),a.node()}const lp=(i,a,f,p)=>{let v=i||"";if(typeof v=="object"&&(v=v[0]),h1(Oe().flowchart.htmlLabels)){v=v.replace(/\\n|\n/g,"
"),zt.info("vertexText"+v);const m={isNode:p,label:KN(v).replace(/fa[blrs]?:fa-[\w-]+/g,E=>``),labelStyle:a.replace("fill:","color:")};return XFe(m)}else{const m=document.createElementNS("http://www.w3.org/2000/svg","text");m.setAttribute("style",a.replace("color:","fill:"));let b=[];typeof v=="string"?b=v.split(/\\n|\n|/gi):Array.isArray(v)?b=v:b=[];for(const E of b){const C=document.createElementNS("http://www.w3.org/2000/svg","tspan");C.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),C.setAttribute("dy","1em"),C.setAttribute("x","0"),f?C.setAttribute("class","title-row"):C.setAttribute("class","row"),C.textContent=E.trim(),m.appendChild(C)}return m}};function QFe(i,a){var{includeImageAlt:f=!0}=a||{};return cFt(i,f)}function cFt(i,a){return i&&typeof i=="object"&&(i.value||(a?i.alt:"")||"children"in i&&uFt(i.children,a)||Array.isArray(i)&&uFt(i,a))||""}function uFt(i,a){for(var f=[],p=-1;++pv?0:v+a:a=a>v?v:a,f=f>0?f:0,p.length<1e4)b=Array.from(p),b.unshift(a,f),[].splice.apply(i,b);else for(f&&[].splice.apply(i,[a,f]);m0?(p3(i,i.length,0,a),i):a}const lFt={}.hasOwnProperty;function ZFe(i){const a={};let f=-1;for(;++fb))return;const ht=a.events.length;let mt=ht,rt,wt;for(;mt--;)if(a.events[mt][0]==="exit"&&a.events[mt][1].type==="chunkFlow"){if(rt){wt=a.events[mt][1].end;break}rt=!0}for(nt(p),yt=ht;ytpt;){const kt=f[Tt];a.containerState=kt[1],kt[0].exit.call(a,i)}f.length=pt}function st(){v.write([null]),m=void 0,v=void 0,a.containerState._closeFlow=void 0}}function lBe(i,a,f){return el(i,i.attempt(this.parser.constructs.document,a,f),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function dFt(i){if(i===null||ev(i)||iBe(i))return 1;if(sBe(i))return 2}function u0t(i,a,f){const p=[];let v=-1;for(;++v1&&i[f][1].end.offset-i[f][1].start.offset>1?2:1;const B=Object.assign({},i[p][1].end),j=Object.assign({},i[f][1].start);gFt(B,-C),gFt(j,C),b={type:C>1?"strongSequence":"emphasisSequence",start:B,end:Object.assign({},i[p][1].end)},E={type:C>1?"strongSequence":"emphasisSequence",start:Object.assign({},i[f][1].start),end:j},m={type:C>1?"strongText":"emphasisText",start:Object.assign({},i[p][1].end),end:Object.assign({},i[f][1].start)},v={type:C>1?"strong":"emphasis",start:Object.assign({},b.start),end:Object.assign({},E.end)},i[p][1].end=Object.assign({},b.start),i[f][1].start=Object.assign({},E.end),D=[],i[p][1].end.offset-i[p][1].start.offset&&(D=tv(D,[["enter",i[p][1],a],["exit",i[p][1],a]])),D=tv(D,[["enter",v,a],["enter",b,a],["exit",b,a],["enter",m,a]]),D=tv(D,u0t(a.parser.constructs.insideSpan.null,i.slice(p+1,f),a)),D=tv(D,[["exit",m,a],["enter",E,a],["exit",E,a],["exit",v,a]]),i[f][1].end.offset-i[f][1].start.offset?(P=2,D=tv(D,[["enter",i[f][1],a],["exit",i[f][1],a]])):P=0,p3(i,p-1,f-p+3,D),f=p+D.length-P-2;break}}for(f=-1;++f=4?b(D):f(D)}function b(D){return D===null?C(D):Ka(D)?i.attempt(kBe,b,C)(D):(i.enter("codeFlowValue"),E(D))}function E(D){return D===null||Ka(D)?(i.exit("codeFlowValue"),b(D)):(i.consume(D),E)}function C(D){return i.exit("codeIndented"),a(D)}}function TBe(i,a,f){const p=this;return v;function v(b){return p.parser.lazy[p.now().line]?f(b):Ka(b)?(i.enter("lineEnding"),i.consume(b),i.exit("lineEnding"),v):el(i,m,"linePrefix",4+1)(b)}function m(b){const E=p.events[p.events.length-1];return E&&E[1].type==="linePrefix"&&E[2].sliceSerialize(E[1],!0).length>=4?a(b):Ka(b)?v(b):f(b)}}const _Be={name:"codeText",tokenize:ABe,resolve:CBe,previous:SBe};function CBe(i){let a=i.length-4,f=3,p,v;if((i[f][1].type==="lineEnding"||i[f][1].type==="space")&&(i[a][1].type==="lineEnding"||i[a][1].type==="space")){for(p=f;++p=4?a(b):i.interrupt(p.parser.constructs.flow,f,a)(b)}}function xFt(i,a,f,p,v,m,b,E,C){const D=C||Number.POSITIVE_INFINITY;let P=0;return B;function B(nt){return nt===60?(i.enter(p),i.enter(v),i.enter(m),i.consume(nt),i.exit(m),j):nt===null||nt===41||c0t(nt)?f(nt):(i.enter(p),i.enter(b),i.enter(E),i.enter("chunkString",{contentType:"string"}),Y(nt))}function j(nt){return nt===62?(i.enter(m),i.consume(nt),i.exit(m),i.exit(v),i.exit(p),a):(i.enter(E),i.enter("chunkString",{contentType:"string"}),R(nt))}function R(nt){return nt===62?(i.exit("chunkString"),i.exit(E),j(nt)):nt===null||nt===60||Ka(nt)?f(nt):(i.consume(nt),nt===92?H:R)}function H(nt){return nt===60||nt===62||nt===92?(i.consume(nt),R):R(nt)}function Y(nt){return nt===40?++P>D?f(nt):(i.consume(nt),Y):nt===41?P--?(i.consume(nt),Y):(i.exit("chunkString"),i.exit(E),i.exit(b),i.exit(p),a(nt)):nt===null||ev(nt)?P?f(nt):(i.exit("chunkString"),i.exit(E),i.exit(b),i.exit(p),a(nt)):c0t(nt)?f(nt):(i.consume(nt),nt===92?it:Y)}function it(nt){return nt===40||nt===41||nt===92?(i.consume(nt),Y):Y(nt)}}function kFt(i,a,f,p,v,m){const b=this;let E=0,C;return D;function D(R){return i.enter(p),i.enter(v),i.consume(R),i.exit(v),i.enter(m),P}function P(R){return R===null||R===91||R===93&&!C||R===94&&!E&&"_hiddenFootnoteSupport"in b.parser.constructs||E>999?f(R):R===93?(i.exit(m),i.enter(v),i.consume(R),i.exit(v),i.exit(p),a):Ka(R)?(i.enter("lineEnding"),i.consume(R),i.exit("lineEnding"),P):(i.enter("chunkString",{contentType:"string"}),B(R))}function B(R){return R===null||R===91||R===93||Ka(R)||E++>999?(i.exit("chunkString"),P(R)):(i.consume(R),C=C||!$f(R),R===92?j:B)}function j(R){return R===91||R===92||R===93?(i.consume(R),E++,B):B(R)}}function EFt(i,a,f,p,v,m){let b;return E;function E(j){return i.enter(p),i.enter(v),i.consume(j),i.exit(v),b=j===40?41:j,C}function C(j){return j===b?(i.enter(v),i.consume(j),i.exit(v),i.exit(p),a):(i.enter(m),D(j))}function D(j){return j===b?(i.exit(m),C(b)):j===null?f(j):Ka(j)?(i.enter("lineEnding"),i.consume(j),i.exit("lineEnding"),el(i,D,"linePrefix")):(i.enter("chunkString",{contentType:"string"}),P(j))}function P(j){return j===b||j===null||Ka(j)?(i.exit("chunkString"),D(j)):(i.consume(j),j===92?B:P)}function B(j){return j===b||j===92?(i.consume(j),P):P(j)}}function hP(i,a){let f;return p;function p(v){return Ka(v)?(i.enter("lineEnding"),i.consume(v),i.exit("lineEnding"),f=!0,p):$f(v)?el(i,p,f?"linePrefix":"lineSuffix")(v):a(v)}}function nL(i){return i.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const PBe={name:"definition",tokenize:BBe},FBe={tokenize:RBe,partial:!0};function BBe(i,a,f){const p=this;let v;return m;function m(C){return i.enter("definition"),kFt.call(p,i,b,f,"definitionLabel","definitionLabelMarker","definitionLabelString")(C)}function b(C){return v=nL(p.sliceSerialize(p.events[p.events.length-1][1]).slice(1,-1)),C===58?(i.enter("definitionMarker"),i.consume(C),i.exit("definitionMarker"),hP(i,xFt(i,i.attempt(FBe,el(i,E,"whitespace"),el(i,E,"whitespace")),f,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):f(C)}function E(C){return C===null||Ka(C)?(i.exit("definition"),p.parser.defined.includes(v)||p.parser.defined.push(v),a(C)):f(C)}}function RBe(i,a,f){return p;function p(b){return ev(b)?hP(i,v)(b):f(b)}function v(b){return b===34||b===39||b===40?EFt(i,el(i,m,"whitespace"),f,"definitionTitle","definitionTitleMarker","definitionTitleString")(b):f(b)}function m(b){return b===null||Ka(b)?a(b):f(b)}}const jBe={name:"hardBreakEscape",tokenize:$Be};function $Be(i,a,f){return p;function p(m){return i.enter("hardBreakEscape"),i.enter("escapeMarker"),i.consume(m),v}function v(m){return Ka(m)?(i.exit("escapeMarker"),i.exit("hardBreakEscape"),a(m)):f(m)}}const zBe={name:"headingAtx",tokenize:HBe,resolve:qBe};function qBe(i,a){let f=i.length-2,p=3,v,m;return i[p][1].type==="whitespace"&&(p+=2),f-2>p&&i[f][1].type==="whitespace"&&(f-=2),i[f][1].type==="atxHeadingSequence"&&(p===f-1||f-4>p&&i[f-2][1].type==="whitespace")&&(f-=p+1===f?2:4),f>p&&(v={type:"atxHeadingText",start:i[p][1].start,end:i[f][1].end},m={type:"chunkText",start:i[p][1].start,end:i[f][1].end,contentType:"text"},p3(i,p,f-p+1,[["enter",v,a],["enter",m,a],["exit",m,a],["exit",v,a]])),i}function HBe(i,a,f){const p=this;let v=0;return m;function m(P){return i.enter("atxHeading"),i.enter("atxHeadingSequence"),b(P)}function b(P){return P===35&&v++<6?(i.consume(P),b):P===null||ev(P)?(i.exit("atxHeadingSequence"),p.interrupt?a(P):E(P)):f(P)}function E(P){return P===35?(i.enter("atxHeadingSequence"),C(P)):P===null||Ka(P)?(i.exit("atxHeading"),a(P)):$f(P)?el(i,E,"whitespace")(P):(i.enter("atxHeadingText"),D(P))}function C(P){return P===35?(i.consume(P),C):(i.exit("atxHeadingSequence"),E(P))}function D(P){return P===null||P===35||ev(P)?(i.exit("atxHeadingText"),E(P)):(i.consume(P),D)}}const VBe=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],TFt=["pre","script","style","textarea"],GBe={name:"htmlFlow",tokenize:KBe,resolveTo:WBe,concrete:!0},UBe={tokenize:YBe,partial:!0};function WBe(i){let a=i.length;for(;a--&&!(i[a][0]==="enter"&&i[a][1].type==="htmlFlow"););return a>1&&i[a-2][1].type==="linePrefix"&&(i[a][1].start=i[a-2][1].start,i[a+1][1].start=i[a-2][1].start,i.splice(a-2,2)),i}function KBe(i,a,f){const p=this;let v,m,b,E,C;return D;function D(Nt){return i.enter("htmlFlow"),i.enter("htmlFlowData"),i.consume(Nt),P}function P(Nt){return Nt===33?(i.consume(Nt),B):Nt===47?(i.consume(Nt),H):Nt===63?(i.consume(Nt),v=3,p.interrupt?a:ae):b3(Nt)?(i.consume(Nt),b=String.fromCharCode(Nt),m=!0,Y):f(Nt)}function B(Nt){return Nt===45?(i.consume(Nt),v=2,j):Nt===91?(i.consume(Nt),v=5,b="CDATA[",E=0,R):b3(Nt)?(i.consume(Nt),v=4,p.interrupt?a:ae):f(Nt)}function j(Nt){return Nt===45?(i.consume(Nt),p.interrupt?a:ae):f(Nt)}function R(Nt){return Nt===b.charCodeAt(E++)?(i.consume(Nt),E===b.length?p.interrupt?a:gt:R):f(Nt)}function H(Nt){return b3(Nt)?(i.consume(Nt),b=String.fromCharCode(Nt),Y):f(Nt)}function Y(Nt){return Nt===null||Nt===47||Nt===62||ev(Nt)?Nt!==47&&m&&TFt.includes(b.toLowerCase())?(v=1,p.interrupt?a(Nt):gt(Nt)):VBe.includes(b.toLowerCase())?(v=6,Nt===47?(i.consume(Nt),it):p.interrupt?a(Nt):gt(Nt)):(v=7,p.interrupt&&!p.parser.lazy[p.now().line]?f(Nt):m?st(Nt):nt(Nt)):Nt===45||im(Nt)?(i.consume(Nt),b+=String.fromCharCode(Nt),Y):f(Nt)}function it(Nt){return Nt===62?(i.consume(Nt),p.interrupt?a:gt):f(Nt)}function nt(Nt){return $f(Nt)?(i.consume(Nt),nt):rt(Nt)}function st(Nt){return Nt===47?(i.consume(Nt),rt):Nt===58||Nt===95||b3(Nt)?(i.consume(Nt),pt):$f(Nt)?(i.consume(Nt),st):rt(Nt)}function pt(Nt){return Nt===45||Nt===46||Nt===58||Nt===95||im(Nt)?(i.consume(Nt),pt):Tt(Nt)}function Tt(Nt){return Nt===61?(i.consume(Nt),kt):$f(Nt)?(i.consume(Nt),Tt):st(Nt)}function kt(Nt){return Nt===null||Nt===60||Nt===61||Nt===62||Nt===96?f(Nt):Nt===34||Nt===39?(i.consume(Nt),C=Nt,yt):$f(Nt)?(i.consume(Nt),kt):(C=null,ht(Nt))}function yt(Nt){return Nt===null||Ka(Nt)?f(Nt):Nt===C?(i.consume(Nt),mt):(i.consume(Nt),yt)}function ht(Nt){return Nt===null||Nt===34||Nt===39||Nt===60||Nt===61||Nt===62||Nt===96||ev(Nt)?Tt(Nt):(i.consume(Nt),ht)}function mt(Nt){return Nt===47||Nt===62||$f(Nt)?st(Nt):f(Nt)}function rt(Nt){return Nt===62?(i.consume(Nt),wt):f(Nt)}function wt(Nt){return $f(Nt)?(i.consume(Nt),wt):Nt===null||Ka(Nt)?gt(Nt):f(Nt)}function gt(Nt){return Nt===45&&v===2?(i.consume(Nt),Rt):Nt===60&&v===1?(i.consume(Nt),ft):Nt===62&&v===4?(i.consume(Nt),Wt):Nt===63&&v===3?(i.consume(Nt),ae):Nt===93&&v===5?(i.consume(Nt),J):Ka(Nt)&&(v===6||v===7)?i.check(UBe,Wt,lt)(Nt):Nt===null||Ka(Nt)?lt(Nt):(i.consume(Nt),gt)}function lt(Nt){return i.exit("htmlFlowData"),_t(Nt)}function _t(Nt){return Nt===null?It(Nt):Ka(Nt)?i.attempt({tokenize:X,partial:!0},_t,It)(Nt):(i.enter("htmlFlowData"),gt(Nt))}function X(Nt,me,Ue){return _n;function _n(rr){return Nt.enter("lineEnding"),Nt.consume(rr),Nt.exit("lineEnding"),_e}function _e(rr){return p.parser.lazy[p.now().line]?Ue(rr):me(rr)}}function Rt(Nt){return Nt===45?(i.consume(Nt),ae):gt(Nt)}function ft(Nt){return Nt===47?(i.consume(Nt),b="",de):gt(Nt)}function de(Nt){return Nt===62&&TFt.includes(b.toLowerCase())?(i.consume(Nt),Wt):b3(Nt)&&b.length<8?(i.consume(Nt),b+=String.fromCharCode(Nt),de):gt(Nt)}function J(Nt){return Nt===93?(i.consume(Nt),ae):gt(Nt)}function ae(Nt){return Nt===62?(i.consume(Nt),Wt):Nt===45&&v===2?(i.consume(Nt),ae):gt(Nt)}function Wt(Nt){return Nt===null||Ka(Nt)?(i.exit("htmlFlowData"),It(Nt)):(i.consume(Nt),Wt)}function It(Nt){return i.exit("htmlFlow"),a(Nt)}}function YBe(i,a,f){return p;function p(v){return i.exit("htmlFlowData"),i.enter("lineEndingBlank"),i.consume(v),i.exit("lineEndingBlank"),i.attempt(rK,a,f)}}const XBe={name:"htmlText",tokenize:QBe};function QBe(i,a,f){const p=this;let v,m,b,E;return C;function C(It){return i.enter("htmlText"),i.enter("htmlTextData"),i.consume(It),D}function D(It){return It===33?(i.consume(It),P):It===47?(i.consume(It),ht):It===63?(i.consume(It),kt):b3(It)?(i.consume(It),wt):f(It)}function P(It){return It===45?(i.consume(It),B):It===91?(i.consume(It),m="CDATA[",b=0,it):b3(It)?(i.consume(It),Tt):f(It)}function B(It){return It===45?(i.consume(It),j):f(It)}function j(It){return It===null||It===62?f(It):It===45?(i.consume(It),R):H(It)}function R(It){return It===null||It===62?f(It):H(It)}function H(It){return It===null?f(It):It===45?(i.consume(It),Y):Ka(It)?(E=H,J(It)):(i.consume(It),H)}function Y(It){return It===45?(i.consume(It),Wt):H(It)}function it(It){return It===m.charCodeAt(b++)?(i.consume(It),b===m.length?nt:it):f(It)}function nt(It){return It===null?f(It):It===93?(i.consume(It),st):Ka(It)?(E=nt,J(It)):(i.consume(It),nt)}function st(It){return It===93?(i.consume(It),pt):nt(It)}function pt(It){return It===62?Wt(It):It===93?(i.consume(It),pt):nt(It)}function Tt(It){return It===null||It===62?Wt(It):Ka(It)?(E=Tt,J(It)):(i.consume(It),Tt)}function kt(It){return It===null?f(It):It===63?(i.consume(It),yt):Ka(It)?(E=kt,J(It)):(i.consume(It),kt)}function yt(It){return It===62?Wt(It):kt(It)}function ht(It){return b3(It)?(i.consume(It),mt):f(It)}function mt(It){return It===45||im(It)?(i.consume(It),mt):rt(It)}function rt(It){return Ka(It)?(E=rt,J(It)):$f(It)?(i.consume(It),rt):Wt(It)}function wt(It){return It===45||im(It)?(i.consume(It),wt):It===47||It===62||ev(It)?gt(It):f(It)}function gt(It){return It===47?(i.consume(It),Wt):It===58||It===95||b3(It)?(i.consume(It),lt):Ka(It)?(E=gt,J(It)):$f(It)?(i.consume(It),gt):Wt(It)}function lt(It){return It===45||It===46||It===58||It===95||im(It)?(i.consume(It),lt):_t(It)}function _t(It){return It===61?(i.consume(It),X):Ka(It)?(E=_t,J(It)):$f(It)?(i.consume(It),_t):gt(It)}function X(It){return It===null||It===60||It===61||It===62||It===96?f(It):It===34||It===39?(i.consume(It),v=It,Rt):Ka(It)?(E=X,J(It)):$f(It)?(i.consume(It),X):(i.consume(It),v=void 0,de)}function Rt(It){return It===v?(i.consume(It),ft):It===null?f(It):Ka(It)?(E=Rt,J(It)):(i.consume(It),Rt)}function ft(It){return It===62||It===47||ev(It)?gt(It):f(It)}function de(It){return It===null||It===34||It===39||It===60||It===61||It===96?f(It):It===62||ev(It)?gt(It):(i.consume(It),de)}function J(It){return i.exit("htmlTextData"),i.enter("lineEnding"),i.consume(It),i.exit("lineEnding"),el(i,ae,"linePrefix",p.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function ae(It){return i.enter("htmlTextData"),E(It)}function Wt(It){return It===62?(i.consume(It),i.exit("htmlTextData"),i.exit("htmlText"),a):f(It)}}const d0t={name:"labelEnd",tokenize:rRe,resolveTo:nRe,resolveAll:eRe},ZBe={tokenize:iRe},JBe={tokenize:sRe},tRe={tokenize:aRe};function eRe(i){let a=-1,f;for(;++a-1&&(b[0]=b[0].slice(p)),m>0&&b.push(i[v].slice(0,m))),b}function MRe(i,a){let f=-1;const p=[];let v;for(;++f13&&f<32||f>126&&f<160||f>55295&&f<57344||f>64975&&f<65008||(f&65535)===65535||(f&65535)===65534||f>1114111?"�":String.fromCharCode(f)}const RRe=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function jRe(i){return i.replace(RRe,$Re)}function $Re(i,a,f){if(a)return a;if(f.charCodeAt(0)===35){const v=f.charCodeAt(1),m=v===120||v===88;return LFt(f.slice(m?2:1),m?16:10)}return h0t(f)||i}function sK(i){return!i||typeof i!="object"?"":"position"in i||"type"in i?MFt(i.position):"start"in i||"end"in i?MFt(i):"line"in i||"column"in i?p0t(i):""}function p0t(i){return DFt(i&&i.line)+":"+DFt(i&&i.column)}function MFt(i){return p0t(i&&i.start)+"-"+p0t(i&&i.end)}function DFt(i){return i&&typeof i=="number"?i:1}const IFt={}.hasOwnProperty,OFt=function(i,a,f){return typeof a!="string"&&(f=a,a=void 0),zRe(f)(BRe(PRe(f).document().write(FRe()(i,a,!0))))};function zRe(i){const a={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:E(Le),autolinkProtocol:gt,autolinkEmail:gt,atxHeading:E(jt),blockQuote:E(ye),characterEscape:gt,characterReference:gt,codeFenced:E(Vt),codeFencedFenceInfo:C,codeFencedFenceMeta:C,codeIndented:E(Vt,C),codeText:E(Ae,C),codeTextData:gt,data:gt,codeFlowValue:gt,definition:E(Gt),definitionDestinationString:C,definitionLabelString:C,definitionTitleString:C,emphasis:E(un),hardBreakEscape:E(Ke),hardBreakTrailing:E(Ke),htmlFlow:E(oe,C),htmlFlowData:gt,htmlText:E(oe,C),htmlTextData:gt,image:E(Or),label:C,link:E(Le),listItem:E(fe),listItemValue:H,listOrdered:E(Nr,R),listUnordered:E(Nr),paragraph:E(sr),reference:_n,referenceString:C,resourceDestinationString:C,resourceTitleString:C,setextHeading:E(jt),strong:E(Yn),thematicBreak:E(ur)},exit:{atxHeading:P(),atxHeadingSequence:ht,autolink:P(),autolinkEmail:Ee,autolinkProtocol:ne,blockQuote:P(),characterEscapeValue:lt,characterReferenceMarkerHexadecimal:rr,characterReferenceMarkerNumeric:rr,characterReferenceValue:Te,codeFenced:P(st),codeFencedFence:nt,codeFencedFenceInfo:Y,codeFencedFenceMeta:it,codeFlowValue:lt,codeIndented:P(pt),codeText:P(de),codeTextData:lt,data:lt,definition:P(),definitionDestinationString:yt,definitionLabelString:Tt,definitionTitleString:kt,emphasis:P(),hardBreakEscape:P(X),hardBreakTrailing:P(X),htmlFlow:P(Rt),htmlFlowData:lt,htmlText:P(ft),htmlTextData:lt,image:P(ae),label:It,labelText:Wt,lineEnding:_t,link:P(J),listItem:P(),listOrdered:P(),listUnordered:P(),paragraph:P(),referenceString:_e,resourceDestinationString:Nt,resourceTitleString:me,resource:Ue,setextHeading:P(wt),setextHeadingLineSequence:rt,setextHeadingText:mt,strong:P(),thematicBreak:P()}};NFt(a,(i||{}).mdastExtensions||[]);const f={};return p;function p(gn){let En={type:"root",children:[]};const Dr={stack:[En],tokenStack:[],config:a,enter:D,exit:B,buffer:C,resume:j,setData:m,getData:b},hr=[];let Ki=-1;for(;++Ki0){const Is=Dr.tokenStack[Dr.tokenStack.length-1];(Is[1]||PFt).call(Dr,void 0,Is[0])}for(En.position={start:uk(gn.length>0?gn[0][1].start:{line:1,column:1,offset:0}),end:uk(gn.length>0?gn[gn.length-2][1].end:{line:1,column:1,offset:0})},Ki=-1;++Ki{P!==0&&(v++,p.push([])),D.split(" ").forEach(B=>{B&&p[v].push({content:B,type:E})})}):(b.type==="strong"||b.type==="emphasis")&&b.children.forEach(C=>{m(C,b.type)})}return f.forEach(b=>{b.type==="paragraph"&&b.children.forEach(E=>{m(E)})}),p}function GRe(i){const{children:a}=OFt(i);function f(p){return p.type==="text"?p.value.replace(/\n/g,"
"):p.type==="strong"?`${p.children.map(f).join("")}`:p.type==="emphasis"?`${p.children.map(f).join("")}`:p.type==="paragraph"?`

${p.children.map(f).join("")}

`:`Unsupported markdown: ${p.type}`}return a.map(f).join("")}function URe(i,a){a&&i.attr("style",a)}function WRe(i,a,f,p,v=!1){const m=i.append("foreignObject"),b=m.append("xhtml:div"),E=a.label,C=a.isNode?"nodeLabel":"edgeLabel";b.html(` - "+E+""),URe(b,a.labelStyle),b.style("display","table-cell"),b.style("white-space","nowrap"),b.style("max-width",f+"px"),b.attr("xmlns","http://www.w3.org/1999/xhtml"),v&&b.attr("class","labelBkg");let D=b.node().getBoundingClientRect();return D.width===f&&(b.style("display","table"),b.style("white-space","break-spaces"),b.style("width",f+"px"),D=b.node().getBoundingClientRect()),m.style("width",D.width),m.style("height",D.height),m.node()}function FFt(i,a,f){return i.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",a*f-.1+"em").attr("dy",f+"em")}function BFt(i,a,f){const p=i.append("text"),v=FFt(p,1,a);RFt(v,[{content:f,type:"normal"}]);const m=v.node().getComputedTextLength();return p.remove(),m}function KRe(i,a,f,p=!1){const m=a.append("g");let b=m.insert("rect").attr("class","background");const E=m.append("text").attr("y","-10.1");let C=0;if(f.forEach(D=>{let P=D.map(Y=>Y.content).join(" "),B="",j=[],R=0;if(BFt(m,1.1,P)<=i)j.push(P);else{for(let Y=0;Y<=P.length;Y++)if(B=P.slice(R,Y),zt.info(B,R,Y),BFt(m,1.1,B)>i){const nt=P.slice(R,Y).lastIndexOf(" ");nt>-1&&(Y=R+nt+1),j.push(P.slice(R,Y).trim()),R=Y,B=null}B!=null&&j.push(B)}const H=j.map(Y=>({content:Y,type:D.type}));for(const Y of H){let it=FFt(E,C,1.1);RFt(it,[Y]),C++}}),p){const D=E.node().getBBox(),P=2;return b.attr("x",-P).attr("y",-P).attr("width",D.width+2*P).attr("height",D.height+2*P),m.node()}else return E.node()}function RFt(i,a){i.text(""),a.forEach((f,p)=>{const v=i.append("tspan").attr("font-style",f.type==="em"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",f.type==="strong"?"bold":"normal");p===0?v.text(f.content):v.text(" "+f.content)})}const aK=(i,a="",{style:f="",isTitle:p=!1,classes:v="",useHtmlLabels:m=!0,isNode:b=!0,width:E,addSvgBackground:C=!1}={})=>{if(zt.info("createText",a,f,p,v,m,b,C),m){const D=GRe(a),P={isNode:b,label:KN(D).replace(/fa[blrs]?:fa-[\w-]+/g,j=>``),labelStyle:f.replace("fill:","color:")};return WRe(i,P,E,v,C)}else{const D=VRe(a);return KRe(E,i,D,C)}},Rd=async(i,a,f,p)=>{let v;const m=a.useHtmlLabels||h1(Oe().flowchart.htmlLabels);f?v=f:v="node default";const b=i.insert("g").attr("class",v).attr("id",a.domId||a.id),E=b.insert("g").attr("class","label").attr("style",a.labelStyle);let C;a.labelText===void 0?C="":C=typeof a.labelText=="string"?a.labelText:a.labelText[0];const D=E.node();let P;a.labelType==="markdown"?P=aK(E,sg(KN(C),Oe()),{useHtmlLabels:m,width:a.width||Oe().flowchart.wrappingWidth,classes:"markdown-node-label"}):P=D.appendChild(lp(sg(KN(C),Oe()),a.labelStyle,!1,p));let B=P.getBBox();const j=a.padding/2;if(h1(Oe().flowchart.htmlLabels)){const R=P.children[0],H=Mr(P),Y=R.getElementsByTagName("img");if(Y){const it=C.replace(/]*>/g,"").trim()==="";await Promise.all([...Y].map(nt=>new Promise(st=>nt.addEventListener("load",function(){if(nt.style.display="flex",nt.style.flexDirection="column",it){const pt=Oe().fontSize?Oe().fontSize:window.getComputedStyle(document.body).fontSize,Tt=5;nt.style.width=parseInt(pt,10)*Tt+"px"}else nt.style.width="100%";st(nt)}))))}B=R.getBoundingClientRect(),H.attr("width",B.width),H.attr("height",B.height)}return m?E.attr("transform","translate("+-B.width/2+", "+-B.height/2+")"):E.attr("transform","translate(0, "+-B.height/2+")"),a.centerLabel&&E.attr("transform","translate("+-B.width/2+", "+-B.height/2+")"),E.insert("rect",":first-child"),{shapeSvg:b,bbox:B,halfPadding:j,label:E}},af=(i,a)=>{const f=a.node().getBBox();i.width=f.width,i.height=f.height};function A5(i,a,f,p){return i.insert("polygon",":first-child").attr("points",p.map(function(v){return v.x+","+v.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-a/2+","+f/2+")")}let nc={},sm={},jFt={};const YRe=()=>{sm={},jFt={},nc={}},oK=(i,a)=>(zt.trace("In isDecendant",a," ",i," = ",sm[a].includes(i)),!!sm[a].includes(i)),XRe=(i,a)=>(zt.info("Decendants of ",a," is ",sm[a]),zt.info("Edge is ",i),i.v===a||i.w===a?!1:sm[a]?sm[a].includes(i.v)||oK(i.v,a)||oK(i.w,a)||sm[a].includes(i.w):(zt.debug("Tilt, ",a,",not in decendants"),!1)),$Ft=(i,a,f,p)=>{zt.warn("Copying children of ",i,"root",p,"data",a.node(i),p);const v=a.children(i)||[];i!==p&&v.push(i),zt.warn("Copying (nodes) clusterId",i,"nodes",v),v.forEach(m=>{if(a.children(m).length>0)$Ft(m,a,f,p);else{const b=a.node(m);zt.info("cp ",m," to ",p," with parent ",i),f.setNode(m,b),p!==a.parent(m)&&(zt.warn("Setting parent",m,a.parent(m)),f.setParent(m,a.parent(m))),i!==p&&m!==i?(zt.debug("Setting parent",m,i),f.setParent(m,i)):(zt.info("In copy ",i,"root",p,"data",a.node(i),p),zt.debug("Not Setting parent for node=",m,"cluster!==rootId",i!==p,"node!==clusterId",m!==i));const E=a.edges(m);zt.debug("Copying Edges",E),E.forEach(C=>{zt.info("Edge",C);const D=a.edge(C.v,C.w,C.name);zt.info("Edge data",D,p);try{XRe(C,p)?(zt.info("Copying as ",C.v,C.w,D,C.name),f.setEdge(C.v,C.w,D,C.name),zt.info("newGraph edges ",f.edges(),f.edge(f.edges()[0]))):zt.info("Skipping copy of edge ",C.v,"-->",C.w," rootId: ",p," clusterId:",i)}catch(P){zt.error(P)}})}zt.debug("Removing node",m),a.removeNode(m)})},zFt=(i,a)=>{const f=a.children(i);let p=[...f];for(const v of f)jFt[v]=i,p=[...p,...zFt(v,a)];return p},fP=(i,a)=>{zt.trace("Searching",i);const f=a.children(i);if(zt.trace("Searching children of id ",i,f),f.length<1)return zt.trace("This is a valid node",i),i;for(const p of f){const v=fP(p,a);if(v)return zt.trace("Found replacement for",i," => ",v),v}},cK=i=>!nc[i]||!nc[i].externalConnections?i:nc[i]?nc[i].id:i,QRe=(i,a)=>{if(!i||a>10){zt.debug("Opting out, no graph ");return}else zt.debug("Opting in, graph ");i.nodes().forEach(function(f){i.children(f).length>0&&(zt.warn("Cluster identified",f," Replacement id in edges: ",fP(f,i)),sm[f]=zFt(f,i),nc[f]={id:fP(f,i),clusterData:i.node(f)})}),i.nodes().forEach(function(f){const p=i.children(f),v=i.edges();p.length>0?(zt.debug("Cluster identified",f,sm),v.forEach(m=>{if(m.v!==f&&m.w!==f){const b=oK(m.v,f),E=oK(m.w,f);b^E&&(zt.warn("Edge: ",m," leaves cluster ",f),zt.warn("Decendants of XXX ",f,": ",sm[f]),nc[f].externalConnections=!0)}})):zt.debug("Not a cluster ",f,sm)}),i.edges().forEach(function(f){const p=i.edge(f);zt.warn("Edge "+f.v+" -> "+f.w+": "+JSON.stringify(f)),zt.warn("Edge "+f.v+" -> "+f.w+": "+JSON.stringify(i.edge(f)));let v=f.v,m=f.w;if(zt.warn("Fix XXX",nc,"ids:",f.v,f.w,"Translating: ",nc[f.v]," --- ",nc[f.w]),nc[f.v]&&nc[f.w]&&nc[f.v]===nc[f.w]){zt.warn("Fixing and trixing link to self - removing XXX",f.v,f.w,f.name),zt.warn("Fixing and trixing - removing XXX",f.v,f.w,f.name),v=cK(f.v),m=cK(f.w),i.removeEdge(f.v,f.w,f.name);const b=f.w+"---"+f.v;i.setNode(b,{domId:b,id:b,labelStyle:"",labelText:p.label,padding:0,shape:"labelRect",style:""});const E=JSON.parse(JSON.stringify(p)),C=JSON.parse(JSON.stringify(p));E.label="",E.arrowTypeEnd="none",C.label="",E.fromCluster=f.v,C.toCluster=f.v,i.setEdge(v,b,E,f.name+"-cyclic-special"),i.setEdge(b,m,C,f.name+"-cyclic-special")}else(nc[f.v]||nc[f.w])&&(zt.warn("Fixing and trixing - removing XXX",f.v,f.w,f.name),v=cK(f.v),m=cK(f.w),i.removeEdge(f.v,f.w,f.name),v!==f.v&&(p.fromCluster=f.v),m!==f.w&&(p.toCluster=f.w),zt.warn("Fix Replacing with XXX",v,m,f.name),i.setEdge(v,m,p,f.name))}),zt.warn("Adjusted Graph",S5(i)),qFt(i,0),zt.trace(nc)},qFt=(i,a)=>{if(zt.warn("extractor - ",a,S5(i),i.children("D")),a>10){zt.error("Bailing out");return}let f=i.nodes(),p=!1;for(const v of f){const m=i.children(v);p=p||m.length>0}if(!p){zt.debug("Done, no node has children",i.nodes());return}zt.debug("Nodes = ",f,a);for(const v of f)if(zt.debug("Extracting node",v,nc,nc[v]&&!nc[v].externalConnections,!i.parent(v),i.node(v),i.children("D")," Depth ",a),!nc[v])zt.debug("Not a cluster",v,a);else if(!nc[v].externalConnections&&i.children(v)&&i.children(v).length>0){zt.warn("Cluster without external connections, without a parent and with children",v,a);let b=i.graph().rankdir==="TB"?"LR":"TB";nc[v]&&nc[v].clusterData&&nc[v].clusterData.dir&&(b=nc[v].clusterData.dir,zt.warn("Fixing dir",nc[v].clusterData.dir,b));const E=new jf({multigraph:!0,compound:!0}).setGraph({rankdir:b,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});zt.warn("Old graph before copy",S5(i)),$Ft(v,i,E,v),i.setNode(v,{clusterNode:!0,id:v,clusterData:nc[v].clusterData,labelText:nc[v].labelText,graph:E}),zt.warn("New graph after copy node: (",v,")",S5(E)),zt.debug("Old graph after copy",S5(i))}else zt.warn("Cluster ** ",v," **not meeting the criteria !externalConnections:",!nc[v].externalConnections," no parent: ",!i.parent(v)," children ",i.children(v)&&i.children(v).length>0,i.children("D"),a),zt.debug(nc);f=i.nodes(),zt.warn("New list of nodes",f);for(const v of f){const m=i.node(v);zt.warn(" Now next level",v,m),m.clusterNode&&qFt(m.graph,a+1)}},HFt=(i,a)=>{if(a.length===0)return[];let f=Object.assign(a);return a.forEach(p=>{const v=i.children(p),m=HFt(i,v);f=[...f,...m]}),f},ZRe=i=>HFt(i,i.children());function JRe(i,a){return i.intersect(a)}function VFt(i,a,f,p){var v=i.x,m=i.y,b=v-p.x,E=m-p.y,C=Math.sqrt(a*a*E*E+f*f*b*b),D=Math.abs(a*f*b/C);p.x0}function nje(i,a,f){var p=i.x,v=i.y,m=[],b=Number.POSITIVE_INFINITY,E=Number.POSITIVE_INFINITY;typeof a.forEach=="function"?a.forEach(function(H){b=Math.min(b,H.x),E=Math.min(E,H.y)}):(b=Math.min(b,a.x),E=Math.min(E,a.y));for(var C=p-i.width/2-b,D=v-i.height/2-E,P=0;P1&&m.sort(function(H,Y){var it=H.x-f.x,nt=H.y-f.y,st=Math.sqrt(it*it+nt*nt),pt=Y.x-f.x,Tt=Y.y-f.y,kt=Math.sqrt(pt*pt+Tt*Tt);return st{var f=i.x,p=i.y,v=a.x-f,m=a.y-p,b=i.width/2,E=i.height/2,C,D;return Math.abs(m)*b>Math.abs(v)*E?(m<0&&(E=-E),C=m===0?0:E*v/m,D=E):(v<0&&(b=-b),C=b,D=v===0?0:b*m/v),{x:f+C,y:p+D}},Ah={node:JRe,circle:tje,ellipse:VFt,polygon:nje,rect:dP},rje=async(i,a)=>{a.useHtmlLabels||Oe().flowchart.htmlLabels||(a.centerLabel=!0);const{shapeSvg:p,bbox:v,halfPadding:m}=await Rd(i,a,"node "+a.classes,!0);zt.info("Classes = ",a.classes);const b=p.insert("rect",":first-child");return b.attr("rx",a.rx).attr("ry",a.ry).attr("x",-v.width/2-m).attr("y",-v.height/2-m).attr("width",v.width+a.padding).attr("height",v.height+a.padding),af(a,b),a.intersect=function(E){return Ah.rect(a,E)},p};let UFt=0;const ije=function(i,a,f,p,v){const m=function(st){switch(st){case v.db.relationType.AGGREGATION:return"aggregation";case v.db.relationType.EXTENSION:return"extension";case v.db.relationType.COMPOSITION:return"composition";case v.db.relationType.DEPENDENCY:return"dependency";case v.db.relationType.LOLLIPOP:return"lollipop"}};a.points=a.points.filter(st=>!Number.isNaN(st.y));const b=a.points,E=Y9().x(function(st){return st.x}).y(function(st){return st.y}).curve(CA),C=i.append("path").attr("d",E(b)).attr("id","edge"+UFt).attr("class","relation");let D="";p.arrowMarkerAbsolute&&(D=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,D=D.replace(/\(/g,"\\("),D=D.replace(/\)/g,"\\)")),f.relation.lineType==1&&C.attr("class","relation dashed-line"),f.relation.lineType==10&&C.attr("class","relation dotted-line"),f.relation.type1!=="none"&&C.attr("marker-start","url("+D+"#"+m(f.relation.type1)+"Start)"),f.relation.type2!=="none"&&C.attr("marker-end","url("+D+"#"+m(f.relation.type2)+"End)");let P,B;const j=a.points.length;let R=lo.calcLabelPosition(a.points);P=R.x,B=R.y;let H,Y,it,nt;if(j%2!==0&&j>1){let st=lo.calcCardinalityPosition(f.relation.type1!=="none",a.points,a.points[0]),pt=lo.calcCardinalityPosition(f.relation.type2!=="none",a.points,a.points[j-1]);zt.debug("cardinality_1_point "+JSON.stringify(st)),zt.debug("cardinality_2_point "+JSON.stringify(pt)),H=st.x,Y=st.y,it=pt.x,nt=pt.y}if(f.title!==void 0){const st=i.append("g").attr("class","classLabel"),pt=st.append("text").attr("class","label").attr("x",P).attr("y",B).attr("fill","red").attr("text-anchor","middle").text(f.title);window.label=pt;const Tt=pt.node().getBBox();st.insert("rect",":first-child").attr("class","box").attr("x",Tt.x-p.padding/2).attr("y",Tt.y-p.padding/2).attr("width",Tt.width+p.padding).attr("height",Tt.height+p.padding)}zt.info("Rendering relation "+JSON.stringify(f)),f.relationTitle1!==void 0&&f.relationTitle1!=="none"&&i.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",H).attr("y",Y).attr("fill","black").attr("font-size","6").text(f.relationTitle1),f.relationTitle2!==void 0&&f.relationTitle2!=="none"&&i.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",it).attr("y",nt).attr("fill","black").attr("font-size","6").text(f.relationTitle2),UFt++},sje=function(i,a,f,p){zt.debug("Rendering class ",a,f);const v=a.id,m={id:v,label:a.id,width:0,height:0},b=i.append("g").attr("id",p.db.lookUpDomId(v)).attr("class","classGroup");let E;a.link?E=b.append("svg:a").attr("xlink:href",a.link).attr("target",a.linkTarget).append("text").attr("y",f.textHeight+f.padding).attr("x",0):E=b.append("text").attr("y",f.textHeight+f.padding).attr("x",0);let C=!0;a.annotations.forEach(function(kt){const yt=E.append("tspan").text("«"+kt+"»");C||yt.attr("dy",f.textHeight),C=!1});let D=WFt(a);const P=E.append("tspan").text(D).attr("class","title");C||P.attr("dy",f.textHeight);const B=E.node().getBBox().height,j=b.append("line").attr("x1",0).attr("y1",f.padding+B+f.dividerMargin/2).attr("y2",f.padding+B+f.dividerMargin/2),R=b.append("text").attr("x",f.padding).attr("y",B+f.dividerMargin+f.textHeight).attr("fill","white").attr("class","classText");C=!0,a.members.forEach(function(kt){KFt(R,kt,C,f),C=!1});const H=R.node().getBBox(),Y=b.append("line").attr("x1",0).attr("y1",f.padding+B+f.dividerMargin+H.height).attr("y2",f.padding+B+f.dividerMargin+H.height),it=b.append("text").attr("x",f.padding).attr("y",B+2*f.dividerMargin+H.height+f.textHeight).attr("fill","white").attr("class","classText");C=!0,a.methods.forEach(function(kt){KFt(it,kt,C,f),C=!1});const nt=b.node().getBBox();var st=" ";a.cssClasses.length>0&&(st=st+a.cssClasses.join(" "));const Tt=b.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",nt.width+2*f.padding).attr("height",nt.height+f.padding+.5*f.dividerMargin).attr("class",st).node().getBBox().width;return E.node().childNodes.forEach(function(kt){kt.setAttribute("x",(Tt-kt.getBBox().width)/2)}),a.tooltip&&E.insert("title").text(a.tooltip),j.attr("x2",Tt),Y.attr("x2",Tt),m.width=Tt,m.height=nt.height+f.padding+.5*f.dividerMargin,m},WFt=function(i){let a=i.id;return i.type&&(a+="<"+i.type+">"),a},aje=function(i,a,f,p){zt.debug("Rendering note ",a,f);const v=a.id,m={id:v,text:a.text,width:0,height:0},b=i.append("g").attr("id",v).attr("class","classGroup");let E=b.append("text").attr("y",f.textHeight+f.padding).attr("x",0);const C=JSON.parse(`"${a.text}"`).split(` -`);C.forEach(function(j){zt.debug(`Adding line: ${j}`),E.append("tspan").text(j).attr("class","title").attr("dy",f.textHeight)});const D=b.node().getBBox(),B=b.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",D.width+2*f.padding).attr("height",D.height+C.length*f.textHeight+f.padding+.5*f.dividerMargin).node().getBBox().width;return E.node().childNodes.forEach(function(j){j.setAttribute("x",(B-j.getBBox().width)/2)}),m.width=B,m.height=D.height+C.length*f.textHeight+f.padding+.5*f.dividerMargin,m},uK=function(i){let a="",f="",p="",v="",m=i.substring(0,1),b=i.substring(i.length-1,i.length);m.match(/[#+~-]/)&&(v=m);let E=/[\s\w)~]/;b.match(E)||(f=YFt(b));const C=v===""?0:1;let D=f===""?i.length:i.length-1;i=i.substring(C,D);const P=i.indexOf("("),B=i.indexOf(")");if(P>1&&B>P&&B<=i.length){let R=i.substring(0,P).trim();const H=i.substring(P+1,B);if(a=v+R+"("+BN(H.trim())+")",B{const{shapeSvg:f,bbox:p}=await Rd(i,a,void 0,!0),v=p.width+a.padding,m=p.height+a.padding,b=v+m,E=[{x:b/2,y:0},{x:b,y:-b/2},{x:b/2,y:-b},{x:0,y:-b/2}];zt.info("Question main (Circle)");const C=A5(f,b,b,E);return C.attr("style",a.style),af(a,C),a.intersect=function(D){return zt.warn("Intersect called"),Ah.polygon(a,E,D)},f},oje=(i,a)=>{const f=i.insert("g").attr("class","node default").attr("id",a.domId||a.id),p=28,v=[{x:0,y:p/2},{x:p/2,y:0},{x:0,y:-p/2},{x:-p/2,y:0}];return f.insert("polygon",":first-child").attr("points",v.map(function(b){return b.x+","+b.y}).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),a.width=28,a.height=28,a.intersect=function(b){return Ah.circle(a,14,b)},f},cje=async(i,a)=>{const{shapeSvg:f,bbox:p}=await Rd(i,a,void 0,!0),v=4,m=p.height+a.padding,b=m/v,E=p.width+2*b+a.padding,C=[{x:b,y:0},{x:E-b,y:0},{x:E,y:-m/2},{x:E-b,y:-m},{x:b,y:-m},{x:0,y:-m/2}],D=A5(f,E,m,C);return D.attr("style",a.style),af(a,D),a.intersect=function(P){return Ah.polygon(a,C,P)},f},uje=async(i,a)=>{const{shapeSvg:f,bbox:p}=await Rd(i,a,void 0,!0),v=p.width+a.padding,m=p.height+a.padding,b=[{x:-m/2,y:0},{x:v,y:0},{x:v,y:-m},{x:-m/2,y:-m},{x:0,y:-m/2}];return A5(f,v,m,b).attr("style",a.style),a.width=v+m,a.height=m,a.intersect=function(C){return Ah.polygon(a,b,C)},f},lje=async(i,a)=>{const{shapeSvg:f,bbox:p}=await Rd(i,a,void 0,!0),v=p.width+a.padding,m=p.height+a.padding,b=[{x:-2*m/6,y:0},{x:v-m/6,y:0},{x:v+2*m/6,y:-m},{x:m/6,y:-m}],E=A5(f,v,m,b);return E.attr("style",a.style),af(a,E),a.intersect=function(C){return Ah.polygon(a,b,C)},f},hje=async(i,a)=>{const{shapeSvg:f,bbox:p}=await Rd(i,a,void 0,!0),v=p.width+a.padding,m=p.height+a.padding,b=[{x:2*m/6,y:0},{x:v+m/6,y:0},{x:v-2*m/6,y:-m},{x:-m/6,y:-m}],E=A5(f,v,m,b);return E.attr("style",a.style),af(a,E),a.intersect=function(C){return Ah.polygon(a,b,C)},f},fje=async(i,a)=>{const{shapeSvg:f,bbox:p}=await Rd(i,a,void 0,!0),v=p.width+a.padding,m=p.height+a.padding,b=[{x:-2*m/6,y:0},{x:v+2*m/6,y:0},{x:v-m/6,y:-m},{x:m/6,y:-m}],E=A5(f,v,m,b);return E.attr("style",a.style),af(a,E),a.intersect=function(C){return Ah.polygon(a,b,C)},f},dje=async(i,a)=>{const{shapeSvg:f,bbox:p}=await Rd(i,a,void 0,!0),v=p.width+a.padding,m=p.height+a.padding,b=[{x:m/6,y:0},{x:v-m/6,y:0},{x:v+2*m/6,y:-m},{x:-2*m/6,y:-m}],E=A5(f,v,m,b);return E.attr("style",a.style),af(a,E),a.intersect=function(C){return Ah.polygon(a,b,C)},f},gje=async(i,a)=>{const{shapeSvg:f,bbox:p}=await Rd(i,a,void 0,!0),v=p.width+a.padding,m=p.height+a.padding,b=[{x:0,y:0},{x:v+m/2,y:0},{x:v,y:-m/2},{x:v+m/2,y:-m},{x:0,y:-m}],E=A5(f,v,m,b);return E.attr("style",a.style),af(a,E),a.intersect=function(C){return Ah.polygon(a,b,C)},f},pje=async(i,a)=>{const{shapeSvg:f,bbox:p}=await Rd(i,a,void 0,!0),v=p.width+a.padding,m=v/2,b=m/(2.5+v/50),E=p.height+b+a.padding,C="M 0,"+b+" a "+m+","+b+" 0,0,0 "+v+" 0 a "+m+","+b+" 0,0,0 "+-v+" 0 l 0,"+E+" a "+m+","+b+" 0,0,0 "+v+" 0 l 0,"+-E,D=f.attr("label-offset-y",b).insert("path",":first-child").attr("style",a.style).attr("d",C).attr("transform","translate("+-v/2+","+-(E/2+b)+")");return af(a,D),a.intersect=function(P){const B=Ah.rect(a,P),j=B.x-a.x;if(m!=0&&(Math.abs(j)a.height/2-b)){let R=b*b*(1-j*j/(m*m));R!=0&&(R=Math.sqrt(R)),R=b-R,P.y-a.y>0&&(R=-R),B.y+=R}return B},f},bje=async(i,a)=>{const{shapeSvg:f,bbox:p,halfPadding:v}=await Rd(i,a,"node "+a.classes,!0),m=f.insert("rect",":first-child"),b=p.width+a.padding,E=p.height+a.padding;if(m.attr("class","basic label-container").attr("style",a.style).attr("rx",a.rx).attr("ry",a.ry).attr("x",-p.width/2-v).attr("y",-p.height/2-v).attr("width",b).attr("height",E),a.props){const C=new Set(Object.keys(a.props));a.props.borders&&(QFt(m,a.props.borders,b,E),C.delete("borders")),C.forEach(D=>{zt.warn(`Unknown node property ${D}`)})}return af(a,m),a.intersect=function(C){return Ah.rect(a,C)},f},vje=async(i,a)=>{const{shapeSvg:f}=await Rd(i,a,"label",!0);zt.trace("Classes = ",a.classes);const p=f.insert("rect",":first-child"),v=0,m=0;if(p.attr("width",v).attr("height",m),f.attr("class","label edgeLabel"),a.props){const b=new Set(Object.keys(a.props));a.props.borders&&(QFt(p,a.props.borders,v,m),b.delete("borders")),b.forEach(E=>{zt.warn(`Unknown node property ${E}`)})}return af(a,p),a.intersect=function(b){return Ah.rect(a,b)},f};function QFt(i,a,f,p){const v=[],m=E=>{v.push(E,0)},b=E=>{v.push(0,E)};a.includes("t")?(zt.debug("add top border"),m(f)):b(f),a.includes("r")?(zt.debug("add right border"),m(p)):b(p),a.includes("b")?(zt.debug("add bottom border"),m(f)):b(f),a.includes("l")?(zt.debug("add left border"),m(p)):b(p),i.attr("stroke-dasharray",v.join(" "))}const wje=(i,a)=>{let f;a.classes?f="node "+a.classes:f="node default";const p=i.insert("g").attr("class",f).attr("id",a.domId||a.id),v=p.insert("rect",":first-child"),m=p.insert("line"),b=p.insert("g").attr("class","label"),E=a.labelText.flat?a.labelText.flat():a.labelText;let C="";typeof E=="object"?C=E[0]:C=E,zt.info("Label text abc79",C,E,typeof E=="object");const D=b.node().appendChild(lp(C,a.labelStyle,!0,!0));let P={width:0,height:0};if(h1(Oe().flowchart.htmlLabels)){const Y=D.children[0],it=Mr(D);P=Y.getBoundingClientRect(),it.attr("width",P.width),it.attr("height",P.height)}zt.info("Text 2",E);const B=E.slice(1,E.length);let j=D.getBBox();const R=b.node().appendChild(lp(B.join?B.join("
"):B,a.labelStyle,!0,!0));if(h1(Oe().flowchart.htmlLabels)){const Y=R.children[0],it=Mr(R);P=Y.getBoundingClientRect(),it.attr("width",P.width),it.attr("height",P.height)}const H=a.padding/2;return Mr(R).attr("transform","translate( "+(P.width>j.width?0:(j.width-P.width)/2)+", "+(j.height+H+5)+")"),Mr(D).attr("transform","translate( "+(P.width{const{shapeSvg:f,bbox:p}=await Rd(i,a,void 0,!0),v=p.height+a.padding,m=p.width+v/4+a.padding,b=f.insert("rect",":first-child").attr("style",a.style).attr("rx",v/2).attr("ry",v/2).attr("x",-m/2).attr("y",-v/2).attr("width",m).attr("height",v);return af(a,b),a.intersect=function(E){return Ah.rect(a,E)},f},yje=async(i,a)=>{const{shapeSvg:f,bbox:p,halfPadding:v}=await Rd(i,a,void 0,!0),m=f.insert("circle",":first-child");return m.attr("style",a.style).attr("rx",a.rx).attr("ry",a.ry).attr("r",p.width/2+v).attr("width",p.width+a.padding).attr("height",p.height+a.padding),zt.info("Circle main"),af(a,m),a.intersect=function(b){return zt.info("Circle intersect",a,p.width/2+v,b),Ah.circle(a,p.width/2+v,b)},f},xje=async(i,a)=>{const{shapeSvg:f,bbox:p,halfPadding:v}=await Rd(i,a,void 0,!0),m=5,b=f.insert("g",":first-child"),E=b.insert("circle"),C=b.insert("circle");return E.attr("style",a.style).attr("rx",a.rx).attr("ry",a.ry).attr("r",p.width/2+v+m).attr("width",p.width+a.padding+m*2).attr("height",p.height+a.padding+m*2),C.attr("style",a.style).attr("rx",a.rx).attr("ry",a.ry).attr("r",p.width/2+v).attr("width",p.width+a.padding).attr("height",p.height+a.padding),zt.info("DoubleCircle main"),af(a,E),a.intersect=function(D){return zt.info("DoubleCircle intersect",a,p.width/2+v+m,D),Ah.circle(a,p.width/2+v+m,D)},f},kje=async(i,a)=>{const{shapeSvg:f,bbox:p}=await Rd(i,a,void 0,!0),v=p.width+a.padding,m=p.height+a.padding,b=[{x:0,y:0},{x:v,y:0},{x:v,y:-m},{x:0,y:-m},{x:0,y:0},{x:-8,y:0},{x:v+8,y:0},{x:v+8,y:-m},{x:-8,y:-m},{x:-8,y:0}],E=A5(f,v,m,b);return E.attr("style",a.style),af(a,E),a.intersect=function(C){return Ah.polygon(a,b,C)},f},Eje=(i,a)=>{const f=i.insert("g").attr("class","node default").attr("id",a.domId||a.id),p=f.insert("circle",":first-child");return p.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),af(a,p),a.intersect=function(v){return Ah.circle(a,7,v)},f},ZFt=(i,a,f)=>{const p=i.insert("g").attr("class","node default").attr("id",a.domId||a.id);let v=70,m=10;f==="LR"&&(v=10,m=70);const b=p.append("rect").attr("x",-1*v/2).attr("y",-1*m/2).attr("width",v).attr("height",m).attr("class","fork-join");return af(a,b),a.height=a.height+a.padding/2,a.width=a.width+a.padding/2,a.intersect=function(E){return Ah.rect(a,E)},p},JFt={rhombus:XFt,question:XFt,rect:bje,labelRect:vje,rectWithTitle:wje,choice:oje,circle:yje,doublecircle:xje,stadium:mje,hexagon:cje,rect_left_inv_arrow:uje,lean_right:lje,lean_left:hje,trapezoid:fje,inv_trapezoid:dje,rect_right_inv_arrow:gje,cylinder:pje,start:Eje,end:(i,a)=>{const f=i.insert("g").attr("class","node default").attr("id",a.domId||a.id),p=f.insert("circle",":first-child"),v=f.insert("circle",":first-child");return v.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),p.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),af(a,v),a.intersect=function(m){return Ah.circle(a,7,m)},f},note:rje,subroutine:kje,fork:ZFt,join:ZFt,class_box:(i,a)=>{const f=a.padding/2,p=4,v=8;let m;a.classes?m="node "+a.classes:m="node default";const b=i.insert("g").attr("class",m).attr("id",a.domId||a.id),E=b.insert("rect",":first-child"),C=b.insert("line"),D=b.insert("line");let P=0,B=p;const j=b.insert("g").attr("class","label");let R=0;const H=a.classData.annotations&&a.classData.annotations[0],Y=a.classData.annotations[0]?"«"+a.classData.annotations[0]+"»":"",it=j.node().appendChild(lp(Y,a.labelStyle,!0,!0));let nt=it.getBBox();if(h1(Oe().flowchart.htmlLabels)){const mt=it.children[0],rt=Mr(it);nt=mt.getBoundingClientRect(),rt.attr("width",nt.width),rt.attr("height",nt.height)}a.classData.annotations[0]&&(B+=nt.height+p,P+=nt.width);let st=a.classData.label;a.classData.type!==void 0&&a.classData.type!==""&&(Oe().flowchart.htmlLabels?st+="<"+a.classData.type+">":st+="<"+a.classData.type+">");const pt=j.node().appendChild(lp(st,a.labelStyle,!0,!0));Mr(pt).attr("class","classTitle");let Tt=pt.getBBox();if(h1(Oe().flowchart.htmlLabels)){const mt=pt.children[0],rt=Mr(pt);Tt=mt.getBoundingClientRect(),rt.attr("width",Tt.width),rt.attr("height",Tt.height)}B+=Tt.height+p,Tt.width>P&&(P=Tt.width);const kt=[];a.classData.members.forEach(mt=>{const rt=uK(mt);let wt=rt.displayText;Oe().flowchart.htmlLabels&&(wt=wt.replace(//g,">"));const gt=j.node().appendChild(lp(wt,rt.cssStyle?rt.cssStyle:a.labelStyle,!0,!0));let lt=gt.getBBox();if(h1(Oe().flowchart.htmlLabels)){const _t=gt.children[0],X=Mr(gt);lt=_t.getBoundingClientRect(),X.attr("width",lt.width),X.attr("height",lt.height)}lt.width>P&&(P=lt.width),B+=lt.height+p,kt.push(gt)}),B+=v;const yt=[];if(a.classData.methods.forEach(mt=>{const rt=uK(mt);let wt=rt.displayText;Oe().flowchart.htmlLabels&&(wt=wt.replace(//g,">"));const gt=j.node().appendChild(lp(wt,rt.cssStyle?rt.cssStyle:a.labelStyle,!0,!0));let lt=gt.getBBox();if(h1(Oe().flowchart.htmlLabels)){const _t=gt.children[0],X=Mr(gt);lt=_t.getBoundingClientRect(),X.attr("width",lt.width),X.attr("height",lt.height)}lt.width>P&&(P=lt.width),B+=lt.height+p,yt.push(gt)}),B+=v,H){let mt=(P-nt.width)/2;Mr(it).attr("transform","translate( "+(-1*P/2+mt)+", "+-1*B/2+")"),R=nt.height+p}let ht=(P-Tt.width)/2;return Mr(pt).attr("transform","translate( "+(-1*P/2+ht)+", "+(-1*B/2+R)+")"),R+=Tt.height+p,C.attr("class","divider").attr("x1",-P/2-f).attr("x2",P/2+f).attr("y1",-B/2-f+v+R).attr("y2",-B/2-f+v+R),R+=v,kt.forEach(mt=>{Mr(mt).attr("transform","translate( "+-P/2+", "+(-1*B/2+R+v/2)+")"),R+=Tt.height+p}),R+=v,D.attr("class","divider").attr("x1",-P/2-f).attr("x2",P/2+f).attr("y1",-B/2-f+v+R).attr("y2",-B/2-f+v+R),R+=v,yt.forEach(mt=>{Mr(mt).attr("transform","translate( "+-P/2+", "+(-1*B/2+R)+")"),R+=Tt.height+p}),E.attr("class","outer title-state").attr("x",-P/2-f).attr("y",-(B/2)-f).attr("width",P+a.padding).attr("height",B+a.padding),af(a,E),a.intersect=function(mt){return Ah.rect(a,mt)},b}};let rL={};const tBt=async(i,a,f)=>{let p,v;if(a.link){let m;Oe().securityLevel==="sandbox"?m="_top":a.linkTarget&&(m=a.linkTarget||"_blank"),p=i.insert("svg:a").attr("xlink:href",a.link).attr("target",m),v=await JFt[a.shape](p,a,f)}else v=await JFt[a.shape](i,a,f),p=v;return a.tooltip&&v.attr("title",a.tooltip),a.class&&v.attr("class","node default "+a.class),rL[a.id]=p,a.haveCallback&&rL[a.id].attr("class",rL[a.id].attr("class")+" clickable"),p},Tje=(i,a)=>{rL[a.id]=i},_je=()=>{rL={}},eBt=i=>{const a=rL[i.id];zt.trace("Transforming node",i.diff,i,"translate("+(i.x-i.width/2-5)+", "+i.width/2+")");const f=8,p=i.diff||0;return i.clusterNode?a.attr("transform","translate("+(i.x+p-i.width/2)+", "+(i.y-i.height/2-f)+")"):a.attr("transform","translate("+i.x+", "+i.y+")"),p},Cje={rect:(i,a)=>{zt.info("Creating subgraph rect for ",a.id,a);const f=i.insert("g").attr("class","cluster"+(a.class?" "+a.class:"")).attr("id",a.id),p=f.insert("rect",":first-child"),v=h1(Oe().flowchart.htmlLabels),m=f.insert("g").attr("class","cluster-label"),b=a.labelType==="markdown"?aK(m,a.labelText,{style:a.labelStyle,useHtmlLabels:v}):m.node().appendChild(lp(a.labelText,a.labelStyle,void 0,!0));let E=b.getBBox();if(h1(Oe().flowchart.htmlLabels)){const j=b.children[0],R=Mr(b);E=j.getBoundingClientRect(),R.attr("width",E.width),R.attr("height",E.height)}const C=0*a.padding,D=C/2,P=a.width<=E.width+C?E.width+C:a.width;a.width<=E.width+C?a.diff=(E.width-a.width)/2-a.padding/2:a.diff=-a.padding/2,zt.trace("Data ",a,JSON.stringify(a)),p.attr("style",a.style).attr("rx",a.rx).attr("ry",a.ry).attr("x",a.x-P/2).attr("y",a.y-a.height/2-D).attr("width",P).attr("height",a.height+C),v?m.attr("transform","translate("+(a.x-E.width/2)+", "+(a.y-a.height/2)+")"):m.attr("transform","translate("+a.x+", "+(a.y-a.height/2)+")");const B=p.node().getBBox();return a.width=B.width,a.height=B.height,a.intersect=function(j){return dP(a,j)},f},roundedWithTitle:(i,a)=>{const f=i.insert("g").attr("class",a.classes).attr("id",a.id),p=f.insert("rect",":first-child"),v=f.insert("g").attr("class","cluster-label"),m=f.append("rect"),b=v.node().appendChild(lp(a.labelText,a.labelStyle,void 0,!0));let E=b.getBBox();if(h1(Oe().flowchart.htmlLabels)){const j=b.children[0],R=Mr(b);E=j.getBoundingClientRect(),R.attr("width",E.width),R.attr("height",E.height)}E=b.getBBox();const C=0*a.padding,D=C/2,P=a.width<=E.width+a.padding?E.width+a.padding:a.width;a.width<=E.width+a.padding?a.diff=(E.width+a.padding*0-a.width)/2:a.diff=-a.padding/2,p.attr("class","outer").attr("x",a.x-P/2-D).attr("y",a.y-a.height/2-D).attr("width",P+C).attr("height",a.height+C),m.attr("class","inner").attr("x",a.x-P/2-D).attr("y",a.y-a.height/2-D+E.height-1).attr("width",P+C).attr("height",a.height+C-E.height-3),v.attr("transform","translate("+(a.x-E.width/2)+", "+(a.y-a.height/2-a.padding/3+(h1(Oe().flowchart.htmlLabels)?5:3))+")");const B=p.node().getBBox();return a.height=B.height,a.intersect=function(j){return dP(a,j)},f},noteGroup:(i,a)=>{const f=i.insert("g").attr("class","note-cluster").attr("id",a.id),p=f.insert("rect",":first-child"),v=0*a.padding,m=v/2;p.attr("rx",a.rx).attr("ry",a.ry).attr("x",a.x-a.width/2-m).attr("y",a.y-a.height/2-m).attr("width",a.width+v).attr("height",a.height+v).attr("fill","none");const b=p.node().getBBox();return a.width=b.width,a.height=b.height,a.intersect=function(E){return dP(a,E)},f},divider:(i,a)=>{const f=i.insert("g").attr("class",a.classes).attr("id",a.id),p=f.insert("rect",":first-child"),v=0*a.padding,m=v/2;p.attr("class","divider").attr("x",a.x-a.width/2-m).attr("y",a.y-a.height/2).attr("width",a.width+v).attr("height",a.height+v);const b=p.node().getBBox();return a.width=b.width,a.height=b.height,a.diff=-a.padding/2,a.intersect=function(E){return dP(a,E)},f}};let nBt={};const Sje=(i,a)=>{zt.trace("Inserting cluster");const f=a.shape||"rect";nBt[a.id]=Cje[f](i,a)},Aje=()=>{nBt={}};let lK={},jd={};const Lje=()=>{lK={},jd={}},rBt=(i,a)=>{const f=h1(Oe().flowchart.htmlLabels),p=a.labelType==="markdown"?aK(i,a.label,{style:a.labelStyle,useHtmlLabels:f,addSvgBackground:!0}):lp(a.label,a.labelStyle);zt.info("abc82",a,a.labelType);const v=i.insert("g").attr("class","edgeLabel"),m=v.insert("g").attr("class","label");m.node().appendChild(p);let b=p.getBBox();if(f){const C=p.children[0],D=Mr(p);b=C.getBoundingClientRect(),D.attr("width",b.width),D.attr("height",b.height)}m.attr("transform","translate("+-b.width/2+", "+-b.height/2+")"),lK[a.id]=v,a.width=b.width,a.height=b.height;let E;if(a.startLabelLeft){const C=lp(a.startLabelLeft,a.labelStyle),D=i.insert("g").attr("class","edgeTerminals"),P=D.insert("g").attr("class","inner");E=P.node().appendChild(C);const B=C.getBBox();P.attr("transform","translate("+-B.width/2+", "+-B.height/2+")"),jd[a.id]||(jd[a.id]={}),jd[a.id].startLeft=D,hK(E,a.startLabelLeft)}if(a.startLabelRight){const C=lp(a.startLabelRight,a.labelStyle),D=i.insert("g").attr("class","edgeTerminals"),P=D.insert("g").attr("class","inner");E=D.node().appendChild(C),P.node().appendChild(C);const B=C.getBBox();P.attr("transform","translate("+-B.width/2+", "+-B.height/2+")"),jd[a.id]||(jd[a.id]={}),jd[a.id].startRight=D,hK(E,a.startLabelRight)}if(a.endLabelLeft){const C=lp(a.endLabelLeft,a.labelStyle),D=i.insert("g").attr("class","edgeTerminals"),P=D.insert("g").attr("class","inner");E=P.node().appendChild(C);const B=C.getBBox();P.attr("transform","translate("+-B.width/2+", "+-B.height/2+")"),D.node().appendChild(C),jd[a.id]||(jd[a.id]={}),jd[a.id].endLeft=D,hK(E,a.endLabelLeft)}if(a.endLabelRight){const C=lp(a.endLabelRight,a.labelStyle),D=i.insert("g").attr("class","edgeTerminals"),P=D.insert("g").attr("class","inner");E=P.node().appendChild(C);const B=C.getBBox();P.attr("transform","translate("+-B.width/2+", "+-B.height/2+")"),D.node().appendChild(C),jd[a.id]||(jd[a.id]={}),jd[a.id].endRight=D,hK(E,a.endLabelRight)}return p};function hK(i,a){Oe().flowchart.htmlLabels&&i&&(i.style.width=a.length*9+"px",i.style.height="12px")}const Mje=(i,a)=>{zt.info("Moving label abc78 ",i.id,i.label,lK[i.id]);let f=a.updatedPath?a.updatedPath:a.originalPath;if(i.label){const p=lK[i.id];let v=i.x,m=i.y;if(f){const b=lo.calcLabelPosition(f);zt.info("Moving label "+i.label+" from (",v,",",m,") to (",b.x,",",b.y,") abc78"),a.updatedPath&&(v=b.x,m=b.y)}p.attr("transform","translate("+v+", "+m+")")}if(i.startLabelLeft){const p=jd[i.id].startLeft;let v=i.x,m=i.y;if(f){const b=lo.calcTerminalLabelPosition(i.arrowTypeStart?10:0,"start_left",f);v=b.x,m=b.y}p.attr("transform","translate("+v+", "+m+")")}if(i.startLabelRight){const p=jd[i.id].startRight;let v=i.x,m=i.y;if(f){const b=lo.calcTerminalLabelPosition(i.arrowTypeStart?10:0,"start_right",f);v=b.x,m=b.y}p.attr("transform","translate("+v+", "+m+")")}if(i.endLabelLeft){const p=jd[i.id].endLeft;let v=i.x,m=i.y;if(f){const b=lo.calcTerminalLabelPosition(i.arrowTypeEnd?10:0,"end_left",f);v=b.x,m=b.y}p.attr("transform","translate("+v+", "+m+")")}if(i.endLabelRight){const p=jd[i.id].endRight;let v=i.x,m=i.y;if(f){const b=lo.calcTerminalLabelPosition(i.arrowTypeEnd?10:0,"end_right",f);v=b.x,m=b.y}p.attr("transform","translate("+v+", "+m+")")}},Dje=(i,a)=>{const f=i.x,p=i.y,v=Math.abs(a.x-f),m=Math.abs(a.y-p),b=i.width/2,E=i.height/2;return v>=b||m>=E},Ije=(i,a,f)=>{zt.warn(`intersection calc abc89: - outsidePoint: ${JSON.stringify(a)} - insidePoint : ${JSON.stringify(f)} - node : x:${i.x} y:${i.y} w:${i.width} h:${i.height}`);const p=i.x,v=i.y,m=Math.abs(p-f.x),b=i.width/2;let E=f.xMath.abs(p-a.x)*C){let B=f.y{zt.warn("abc88 cutPathAtIntersect",i,a);let f=[],p=i[0],v=!1;return i.forEach(m=>{if(zt.info("abc88 checking point",m,a),!Dje(a,m)&&!v){const b=Ije(a,p,m);zt.warn("abc88 inside",m,p,b),zt.warn("abc88 intersection",b);let E=!1;f.forEach(C=>{E=E||C.x===b.x&&C.y===b.y}),f.some(C=>C.x===b.x&&C.y===b.y)?zt.warn("abc88 no intersect",b,f):f.push(b),v=!0}else zt.warn("abc88 outside",m,p),p=m,v||f.push(m)}),zt.warn("abc88 returning points",f),f},Oje=function(i,a,f,p,v,m){let b=f.points,E=!1;const C=m.node(a.v);var D=m.node(a.w);zt.info("abc88 InsertEdge: ",f),D.intersect&&C.intersect&&(b=b.slice(1,f.points.length-1),b.unshift(C.intersect(b[0])),zt.info("Last point",b[b.length-1],D,D.intersect(b[b.length-1])),b.push(D.intersect(b[b.length-1]))),f.toCluster&&(zt.info("to cluster abc88",p[f.toCluster]),b=iBt(f.points,p[f.toCluster].node),E=!0),f.fromCluster&&(zt.info("from cluster abc88",p[f.fromCluster]),b=iBt(b.reverse(),p[f.fromCluster].node).reverse(),E=!0);const P=b.filter(nt=>!Number.isNaN(nt.y));let B;v==="graph"||v==="flowchart"?B=f.curve||CA:B=CA;const j=Y9().x(function(nt){return nt.x}).y(function(nt){return nt.y}).curve(B);let R;switch(f.thickness){case"normal":R="edge-thickness-normal";break;case"thick":R="edge-thickness-thick";break;case"invisible":R="edge-thickness-thick";break;default:R=""}switch(f.pattern){case"solid":R+=" edge-pattern-solid";break;case"dotted":R+=" edge-pattern-dotted";break;case"dashed":R+=" edge-pattern-dashed";break}const H=i.append("path").attr("d",j(P)).attr("id",f.id).attr("class"," "+R+(f.classes?" "+f.classes:"")).attr("style",f.style);let Y="";switch((Oe().flowchart.arrowMarkerAbsolute||Oe().state.arrowMarkerAbsolute)&&(Y=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,Y=Y.replace(/\(/g,"\\("),Y=Y.replace(/\)/g,"\\)")),zt.info("arrowTypeStart",f.arrowTypeStart),zt.info("arrowTypeEnd",f.arrowTypeEnd),f.arrowTypeStart){case"arrow_cross":H.attr("marker-start","url("+Y+"#"+v+"-crossStart)");break;case"arrow_point":H.attr("marker-start","url("+Y+"#"+v+"-pointStart)");break;case"arrow_barb":H.attr("marker-start","url("+Y+"#"+v+"-barbStart)");break;case"arrow_circle":H.attr("marker-start","url("+Y+"#"+v+"-circleStart)");break;case"aggregation":H.attr("marker-start","url("+Y+"#"+v+"-aggregationStart)");break;case"extension":H.attr("marker-start","url("+Y+"#"+v+"-extensionStart)");break;case"composition":H.attr("marker-start","url("+Y+"#"+v+"-compositionStart)");break;case"dependency":H.attr("marker-start","url("+Y+"#"+v+"-dependencyStart)");break;case"lollipop":H.attr("marker-start","url("+Y+"#"+v+"-lollipopStart)");break}switch(f.arrowTypeEnd){case"arrow_cross":H.attr("marker-end","url("+Y+"#"+v+"-crossEnd)");break;case"arrow_point":H.attr("marker-end","url("+Y+"#"+v+"-pointEnd)");break;case"arrow_barb":H.attr("marker-end","url("+Y+"#"+v+"-barbEnd)");break;case"arrow_circle":H.attr("marker-end","url("+Y+"#"+v+"-circleEnd)");break;case"aggregation":H.attr("marker-end","url("+Y+"#"+v+"-aggregationEnd)");break;case"extension":H.attr("marker-end","url("+Y+"#"+v+"-extensionEnd)");break;case"composition":H.attr("marker-end","url("+Y+"#"+v+"-compositionEnd)");break;case"dependency":H.attr("marker-end","url("+Y+"#"+v+"-dependencyEnd)");break;case"lollipop":H.attr("marker-end","url("+Y+"#"+v+"-lollipopEnd)");break}let it={};return E&&(it.updatedPath=b),it.originalPath=f.points,it},sBt=async(i,a,f,p)=>{zt.info("Graph in recursive render: XXX",S5(a),p);const v=a.graph().rankdir;zt.trace("Dir in recursive render - dir:",v);const m=i.insert("g").attr("class","root");a.nodes()?zt.info("Recursive render XXX",a.nodes()):zt.info("No nodes found for",a),a.edges().length>0&&zt.trace("Recursive edges",a.edge(a.edges()[0]));const b=m.insert("g").attr("class","clusters"),E=m.insert("g").attr("class","edgePaths"),C=m.insert("g").attr("class","edgeLabels"),D=m.insert("g").attr("class","nodes");await Promise.all(a.nodes().map(async function(B){const j=a.node(B);if(p!==void 0){const R=JSON.parse(JSON.stringify(p.clusterData));zt.info("Setting data for cluster XXX (",B,") ",R,p),a.setNode(p.id,R),a.parent(B)||(zt.trace("Setting parent",B,p.id),a.setParent(B,p.id,R))}if(zt.info("(Insert) Node XXX"+B+": "+JSON.stringify(a.node(B))),j&&j.clusterNode){zt.info("Cluster identified",B,j.width,a.node(B));const R=await sBt(D,j.graph,f,a.node(B)),H=R.elem;af(j,H),j.diff=R.diff||0,zt.info("Node bounds (abc123)",B,j,j.width,j.x,j.y),Tje(H,j),zt.warn("Recursive render complete ",H,j)}else a.children(B).length>0?(zt.info("Cluster - the non recursive path XXX",B,j.id,j,a),zt.info(fP(j.id,a)),nc[j.id]={id:fP(j.id,a),node:j}):(zt.info("Node - the non recursive path",B,j.id,j),await tBt(D,a.node(B),v))})),a.edges().forEach(function(B){const j=a.edge(B.v,B.w,B.name);zt.info("Edge "+B.v+" -> "+B.w+": "+JSON.stringify(B)),zt.info("Edge "+B.v+" -> "+B.w+": ",B," ",JSON.stringify(a.edge(B))),zt.info("Fix",nc,"ids:",B.v,B.w,"Translateing: ",nc[B.v],nc[B.w]),rBt(C,j)}),a.edges().forEach(function(B){zt.info("Edge "+B.v+" -> "+B.w+": "+JSON.stringify(B))}),zt.info("#############################################"),zt.info("### Layout ###"),zt.info("#############################################"),zt.info(a),eL(a),zt.info("Graph after layout:",S5(a));let P=0;return ZRe(a).forEach(function(B){const j=a.node(B);zt.info("Position "+B+": "+JSON.stringify(a.node(B))),zt.info("Position "+B+": ("+j.x,","+j.y,") width: ",j.width," height: ",j.height),j&&j.clusterNode?eBt(j):a.children(B).length>0?(Sje(b,j),nc[j.id].node=j):eBt(j)}),a.edges().forEach(function(B){const j=a.edge(B);zt.info("Edge "+B.v+" -> "+B.w+": "+JSON.stringify(j),j);const R=Oje(E,B,j,nc,f,a);Mje(j,R)}),a.nodes().forEach(function(B){const j=a.node(B);zt.info(B,j.type,j.diff),j.type==="group"&&(P=j.diff)}),{elem:m,diff:P}},v0t=async(i,a,f,p,v)=>{oFt(i,f,p,v),_je(),Lje(),Aje(),YRe(),zt.warn("Graph at first:",S5(a)),QRe(a),zt.warn("Graph after:",S5(a)),await sBt(i,a,p)},aBt={},Nje=function(i){const a=Object.keys(i);for(const f of a)aBt[f]=i[f]},oBt=function(i,a,f,p,v,m){const b=p.select(`[id="${f}"]`);Object.keys(i).forEach(function(C){const D=i[C];let P="default";D.classes.length>0&&(P=D.classes.join(" ")),P=P+" flowchart-label";const B=Qw(D.styles);let j=D.text!==void 0?D.text:D.id,R;if(zt.info("vertex",D,D.labelType),D.labelType==="markdown")zt.info("vertex",D,D.labelType);else if(h1(Oe().flowchart.htmlLabels)){const it={label:j.replace(/fa[blrs]?:fa-[\w-]+/g,nt=>``)};R=Jdt(b,it).node(),R.parentNode.removeChild(R)}else{const it=v.createElementNS("http://www.w3.org/2000/svg","text");it.setAttribute("style",B.labelStyle.replace("color:","fill:"));const nt=j.split(yi.lineBreakRegex);for(const st of nt){const pt=v.createElementNS("http://www.w3.org/2000/svg","tspan");pt.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),pt.setAttribute("dy","1em"),pt.setAttribute("x","1"),pt.textContent=st,it.appendChild(pt)}R=it}let H=0,Y="";switch(D.type){case"round":H=5,Y="rect";break;case"square":Y="rect";break;case"diamond":Y="question";break;case"hexagon":Y="hexagon";break;case"odd":Y="rect_left_inv_arrow";break;case"lean_right":Y="lean_right";break;case"lean_left":Y="lean_left";break;case"trapezoid":Y="trapezoid";break;case"inv_trapezoid":Y="inv_trapezoid";break;case"odd_right":Y="rect_left_inv_arrow";break;case"circle":Y="circle";break;case"ellipse":Y="ellipse";break;case"stadium":Y="stadium";break;case"subroutine":Y="subroutine";break;case"cylinder":Y="cylinder";break;case"group":Y="rect";break;case"doublecircle":Y="doublecircle";break;default:Y="rect"}a.setNode(D.id,{labelStyle:B.labelStyle,shape:Y,labelText:j,labelType:D.labelType,rx:H,ry:H,class:P,style:B.style,id:D.id,link:D.link,linkTarget:D.linkTarget,tooltip:m.db.getTooltip(D.id)||"",domId:m.db.lookUpDomId(D.id),haveCallback:D.haveCallback,width:D.type==="group"?500:void 0,dir:D.dir,type:D.type,props:D.props,padding:Oe().flowchart.padding}),zt.info("setNode",{labelStyle:B.labelStyle,labelType:D.labelType,shape:Y,labelText:j,rx:H,ry:H,class:P,style:B.style,id:D.id,domId:m.db.lookUpDomId(D.id),width:D.type==="group"?500:void 0,type:D.type,dir:D.dir,props:D.props,padding:Oe().flowchart.padding})})},cBt=function(i,a,f){zt.info("abc78 edges = ",i);let p=0,v={},m,b;if(i.defaultStyle!==void 0){const E=Qw(i.defaultStyle);m=E.style,b=E.labelStyle}i.forEach(function(E){p++;const C="L-"+E.start+"-"+E.end;v[C]===void 0?(v[C]=0,zt.info("abc78 new entry",C,v[C])):(v[C]++,zt.info("abc78 new entry",C,v[C]));let D=C+"-"+v[C];zt.info("abc78 new link id to be used is",C,D,v[C]);const P="LS-"+E.start,B="LE-"+E.end,j={style:"",labelStyle:""};switch(j.minlen=E.length||1,E.type==="arrow_open"?j.arrowhead="none":j.arrowhead="normal",j.arrowTypeStart="arrow_open",j.arrowTypeEnd="arrow_open",E.type){case"double_arrow_cross":j.arrowTypeStart="arrow_cross";case"arrow_cross":j.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":j.arrowTypeStart="arrow_point";case"arrow_point":j.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":j.arrowTypeStart="arrow_circle";case"arrow_circle":j.arrowTypeEnd="arrow_circle";break}let R="",H="";switch(E.stroke){case"normal":R="fill:none;",m!==void 0&&(R=m),b!==void 0&&(H=b),j.thickness="normal",j.pattern="solid";break;case"dotted":j.thickness="normal",j.pattern="dotted",j.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":j.thickness="thick",j.pattern="solid",j.style="stroke-width: 3.5px;fill:none;";break;case"invisible":j.thickness="invisible",j.pattern="solid",j.style="stroke-width: 0;fill:none;";break}if(E.style!==void 0){const Y=Qw(E.style);R=Y.style,H=Y.labelStyle}j.style=j.style+=R,j.labelStyle=j.labelStyle+=H,E.interpolate!==void 0?j.curve=Xb(E.interpolate,rg):i.defaultInterpolate!==void 0?j.curve=Xb(i.defaultInterpolate,rg):j.curve=Xb(aBt.curve,rg),E.text===void 0?E.style!==void 0&&(j.arrowheadStyle="fill: #333"):(j.arrowheadStyle="fill: #333",j.labelpos="c"),j.labelType=E.labelType,j.label=E.text.replace(yi.lineBreakRegex,` -`),E.style===void 0&&(j.style=j.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),j.labelStyle=j.labelStyle.replace("color:","fill:"),j.id=D,j.classes="flowchart-link "+P+" "+B,a.setEdge(E.start,E.end,j,p)})},w0t={setConf:Nje,addVertices:oBt,addEdges:cBt,getClasses:function(i,a){zt.info("Extracting classes"),a.db.clear();try{return a.parse(i),a.db.getClasses()}catch{return}},draw:async function(i,a,f,p){zt.info("Drawing flowchart"),p.db.clear(),ak.setGen("gen-2"),p.parser.parse(i);let v=p.db.getDirection();v===void 0&&(v="TD");const{securityLevel:m,flowchart:b}=Oe(),E=b.nodeSpacing||50,C=b.rankSpacing||50;let D;m==="sandbox"&&(D=Mr("#i"+a));const P=Mr(m==="sandbox"?D.nodes()[0].contentDocument.body:"body"),B=m==="sandbox"?D.nodes()[0].contentDocument:document,j=new jf({multigraph:!0,compound:!0}).setGraph({rankdir:v,nodesep:E,ranksep:C,marginx:0,marginy:0}).setDefaultEdgeLabel(function(){return{}});let R;const H=p.db.getSubGraphs();zt.info("Subgraphs - ",H);for(let kt=H.length-1;kt>=0;kt--)R=H[kt],zt.info("Subgraph - ",R),p.db.addVertex(R.id,{text:R.title,type:R.labelType},"group",void 0,R.classes,R.dir);const Y=p.db.getVertices(),it=p.db.getEdges();zt.info("Edges",it);let nt=0;for(nt=H.length-1;nt>=0;nt--){R=H[nt],zft("cluster").append("text");for(let kt=0;kt{const f=Y9e,p=f(i,"r"),v=f(i,"g"),m=f(i,"b");return AA(p,v,m,a)},uBt=i=>`.label { - font-family: ${i.fontFamily}; - color: ${i.nodeTextColor||i.textColor}; + font-family: ${r.fontFamily}; + font-size: ${r.fontSize}; + } + & p { + margin: 0 + } + + ${n} + + ${t} +`},"getStyles"),AV=o((e,t)=>{t!==void 0&&(Y4[e]=t)},"addStylesForDiagram"),_V=u3t});var xy={};xr(xy,{clear:()=>Ar,getAccDescription:()=>zr,getAccTitle:()=>Br,getDiagramTitle:()=>Jr,setAccDescription:()=>Fr,setAccTitle:()=>Mr,setDiagramTitle:()=>cn});var $7,G7,V7,U7,Ar,Mr,Br,Fr,zr,cn,Jr,Ci=R(()=>{"use strict";hr();js();$7="",G7="",V7="",U7=o(e=>Zr(e,Nr()),"sanitizeText"),Ar=o(()=>{$7="",V7="",G7=""},"clear"),Mr=o(e=>{$7=U7(e).replace(/^\s+/g,"")},"setAccTitle"),Br=o(()=>$7,"getAccTitle"),Fr=o(e=>{V7=U7(e).replace(/\n\s+/g,` +`)},"setAccDescription"),zr=o(()=>V7,"getAccDescription"),cn=o(e=>{G7=U7(e)},"setDiagramTitle"),Jr=o(()=>G7,"getDiagramTitle")});var LV,h3t,pt,W7,X4,f3t,Y7,d3t,q4,id,by,H7,Ue=R(()=>{"use strict";jf();ce();js();hr();Jn();z7();Ci();LV=V,h3t=J1,pt=Nr,W7=v4,X4=hh,f3t=o(e=>Zr(e,pt()),"sanitizeText"),Y7=No,d3t=o(()=>xy,"getCommonDb"),q4={},id=o((e,t,r)=>{q4[e]&&LV.warn(`Diagram with id ${e} already registered. Overwriting.`),q4[e]=t,r&&_S(e,r),AV(e,t.styles),t.injectUtils?.(LV,h3t,pt,f3t,Y7,d3t(),()=>{})},"registerDiagram"),by=o(e=>{if(e in q4)return q4[e];throw new H7(e)},"getDiagram"),H7=class extends Error{static{o(this,"DiagramNotFoundError")}constructor(t){super(`Diagram ${t} not found.`)}}});var ml,xh,Ja,pl,uc,wy,q7,X7,j4,K4,DV,p3t,m3t,g3t,y3t,v3t,x3t,b3t,w3t,T3t,k3t,E3t,C3t,S3t,A3t,_3t,L3t,D3t,RV,R3t,N3t,NV,M3t,I3t,O3t,P3t,bh,B3t,F3t,z3t,$3t,G3t,Ty,j7=R(()=>{"use strict";Ue();hr();Ci();ml=[],xh=[""],Ja="global",pl="",uc=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],wy=[],q7="",X7=!1,j4=4,K4=2,p3t=o(function(){return DV},"getC4Type"),m3t=o(function(e){DV=Zr(e,pt())},"setC4Type"),g3t=o(function(e,t,r,n,i,a,s,l,u){if(e==null||t===void 0||t===null||r===void 0||r===null||n===void 0||n===null)return;let h={},f=wy.find(d=>d.from===t&&d.to===r);if(f?h=f:wy.push(h),h.type=e,h.from=t,h.to=r,h.label={text:n},i==null)h.techn={text:""};else if(typeof i=="object"){let[d,p]=Object.entries(i)[0];h[d]={text:p}}else h.techn={text:i};if(a==null)h.descr={text:""};else if(typeof a=="object"){let[d,p]=Object.entries(a)[0];h[d]={text:p}}else h.descr={text:a};if(typeof s=="object"){let[d,p]=Object.entries(s)[0];h[d]=p}else h.sprite=s;if(typeof l=="object"){let[d,p]=Object.entries(l)[0];h[d]=p}else h.tags=l;if(typeof u=="object"){let[d,p]=Object.entries(u)[0];h[d]=p}else h.link=u;h.wrap=bh()},"addRel"),y3t=o(function(e,t,r,n,i,a,s){if(t===null||r===null)return;let l={},u=ml.find(h=>h.alias===t);if(u&&t===u.alias?l=u:(l.alias=t,ml.push(l)),r==null?l.label={text:""}:l.label={text:r},n==null)l.descr={text:""};else if(typeof n=="object"){let[h,f]=Object.entries(n)[0];l[h]={text:f}}else l.descr={text:n};if(typeof i=="object"){let[h,f]=Object.entries(i)[0];l[h]=f}else l.sprite=i;if(typeof a=="object"){let[h,f]=Object.entries(a)[0];l[h]=f}else l.tags=a;if(typeof s=="object"){let[h,f]=Object.entries(s)[0];l[h]=f}else l.link=s;l.typeC4Shape={text:e},l.parentBoundary=Ja,l.wrap=bh()},"addPersonOrSystem"),v3t=o(function(e,t,r,n,i,a,s,l){if(t===null||r===null)return;let u={},h=ml.find(f=>f.alias===t);if(h&&t===h.alias?u=h:(u.alias=t,ml.push(u)),r==null?u.label={text:""}:u.label={text:r},n==null)u.techn={text:""};else if(typeof n=="object"){let[f,d]=Object.entries(n)[0];u[f]={text:d}}else u.techn={text:n};if(i==null)u.descr={text:""};else if(typeof i=="object"){let[f,d]=Object.entries(i)[0];u[f]={text:d}}else u.descr={text:i};if(typeof a=="object"){let[f,d]=Object.entries(a)[0];u[f]=d}else u.sprite=a;if(typeof s=="object"){let[f,d]=Object.entries(s)[0];u[f]=d}else u.tags=s;if(typeof l=="object"){let[f,d]=Object.entries(l)[0];u[f]=d}else u.link=l;u.wrap=bh(),u.typeC4Shape={text:e},u.parentBoundary=Ja},"addContainer"),x3t=o(function(e,t,r,n,i,a,s,l){if(t===null||r===null)return;let u={},h=ml.find(f=>f.alias===t);if(h&&t===h.alias?u=h:(u.alias=t,ml.push(u)),r==null?u.label={text:""}:u.label={text:r},n==null)u.techn={text:""};else if(typeof n=="object"){let[f,d]=Object.entries(n)[0];u[f]={text:d}}else u.techn={text:n};if(i==null)u.descr={text:""};else if(typeof i=="object"){let[f,d]=Object.entries(i)[0];u[f]={text:d}}else u.descr={text:i};if(typeof a=="object"){let[f,d]=Object.entries(a)[0];u[f]=d}else u.sprite=a;if(typeof s=="object"){let[f,d]=Object.entries(s)[0];u[f]=d}else u.tags=s;if(typeof l=="object"){let[f,d]=Object.entries(l)[0];u[f]=d}else u.link=l;u.wrap=bh(),u.typeC4Shape={text:e},u.parentBoundary=Ja},"addComponent"),b3t=o(function(e,t,r,n,i){if(e===null||t===null)return;let a={},s=uc.find(l=>l.alias===e);if(s&&e===s.alias?a=s:(a.alias=e,uc.push(a)),t==null?a.label={text:""}:a.label={text:t},r==null)a.type={text:"system"};else if(typeof r=="object"){let[l,u]=Object.entries(r)[0];a[l]={text:u}}else a.type={text:r};if(typeof n=="object"){let[l,u]=Object.entries(n)[0];a[l]=u}else a.tags=n;if(typeof i=="object"){let[l,u]=Object.entries(i)[0];a[l]=u}else a.link=i;a.parentBoundary=Ja,a.wrap=bh(),pl=Ja,Ja=e,xh.push(pl)},"addPersonOrSystemBoundary"),w3t=o(function(e,t,r,n,i){if(e===null||t===null)return;let a={},s=uc.find(l=>l.alias===e);if(s&&e===s.alias?a=s:(a.alias=e,uc.push(a)),t==null?a.label={text:""}:a.label={text:t},r==null)a.type={text:"container"};else if(typeof r=="object"){let[l,u]=Object.entries(r)[0];a[l]={text:u}}else a.type={text:r};if(typeof n=="object"){let[l,u]=Object.entries(n)[0];a[l]=u}else a.tags=n;if(typeof i=="object"){let[l,u]=Object.entries(i)[0];a[l]=u}else a.link=i;a.parentBoundary=Ja,a.wrap=bh(),pl=Ja,Ja=e,xh.push(pl)},"addContainerBoundary"),T3t=o(function(e,t,r,n,i,a,s,l){if(t===null||r===null)return;let u={},h=uc.find(f=>f.alias===t);if(h&&t===h.alias?u=h:(u.alias=t,uc.push(u)),r==null?u.label={text:""}:u.label={text:r},n==null)u.type={text:"node"};else if(typeof n=="object"){let[f,d]=Object.entries(n)[0];u[f]={text:d}}else u.type={text:n};if(i==null)u.descr={text:""};else if(typeof i=="object"){let[f,d]=Object.entries(i)[0];u[f]={text:d}}else u.descr={text:i};if(typeof s=="object"){let[f,d]=Object.entries(s)[0];u[f]=d}else u.tags=s;if(typeof l=="object"){let[f,d]=Object.entries(l)[0];u[f]=d}else u.link=l;u.nodeType=e,u.parentBoundary=Ja,u.wrap=bh(),pl=Ja,Ja=t,xh.push(pl)},"addDeploymentNode"),k3t=o(function(){Ja=pl,xh.pop(),pl=xh.pop(),xh.push(pl)},"popBoundaryParseStack"),E3t=o(function(e,t,r,n,i,a,s,l,u,h,f){let d=ml.find(p=>p.alias===t);if(!(d===void 0&&(d=uc.find(p=>p.alias===t),d===void 0))){if(r!=null)if(typeof r=="object"){let[p,m]=Object.entries(r)[0];d[p]=m}else d.bgColor=r;if(n!=null)if(typeof n=="object"){let[p,m]=Object.entries(n)[0];d[p]=m}else d.fontColor=n;if(i!=null)if(typeof i=="object"){let[p,m]=Object.entries(i)[0];d[p]=m}else d.borderColor=i;if(a!=null)if(typeof a=="object"){let[p,m]=Object.entries(a)[0];d[p]=m}else d.shadowing=a;if(s!=null)if(typeof s=="object"){let[p,m]=Object.entries(s)[0];d[p]=m}else d.shape=s;if(l!=null)if(typeof l=="object"){let[p,m]=Object.entries(l)[0];d[p]=m}else d.sprite=l;if(u!=null)if(typeof u=="object"){let[p,m]=Object.entries(u)[0];d[p]=m}else d.techn=u;if(h!=null)if(typeof h=="object"){let[p,m]=Object.entries(h)[0];d[p]=m}else d.legendText=h;if(f!=null)if(typeof f=="object"){let[p,m]=Object.entries(f)[0];d[p]=m}else d.legendSprite=f}},"updateElStyle"),C3t=o(function(e,t,r,n,i,a,s){let l=wy.find(u=>u.from===t&&u.to===r);if(l!==void 0){if(n!=null)if(typeof n=="object"){let[u,h]=Object.entries(n)[0];l[u]=h}else l.textColor=n;if(i!=null)if(typeof i=="object"){let[u,h]=Object.entries(i)[0];l[u]=h}else l.lineColor=i;if(a!=null)if(typeof a=="object"){let[u,h]=Object.entries(a)[0];l[u]=parseInt(h)}else l.offsetX=parseInt(a);if(s!=null)if(typeof s=="object"){let[u,h]=Object.entries(s)[0];l[u]=parseInt(h)}else l.offsetY=parseInt(s)}},"updateRelStyle"),S3t=o(function(e,t,r){let n=j4,i=K4;if(typeof t=="object"){let a=Object.values(t)[0];n=parseInt(a)}else n=parseInt(t);if(typeof r=="object"){let a=Object.values(r)[0];i=parseInt(a)}else i=parseInt(r);n>=1&&(j4=n),i>=1&&(K4=i)},"updateLayoutConfig"),A3t=o(function(){return j4},"getC4ShapeInRow"),_3t=o(function(){return K4},"getC4BoundaryInRow"),L3t=o(function(){return Ja},"getCurrentBoundaryParse"),D3t=o(function(){return pl},"getParentBoundaryParse"),RV=o(function(e){return e==null?ml:ml.filter(t=>t.parentBoundary===e)},"getC4ShapeArray"),R3t=o(function(e){return ml.find(t=>t.alias===e)},"getC4Shape"),N3t=o(function(e){return Object.keys(RV(e))},"getC4ShapeKeys"),NV=o(function(e){return e==null?uc:uc.filter(t=>t.parentBoundary===e)},"getBoundaries"),M3t=NV,I3t=o(function(){return wy},"getRels"),O3t=o(function(){return q7},"getTitle"),P3t=o(function(e){X7=e},"setWrap"),bh=o(function(){return X7},"autoWrap"),B3t=o(function(){ml=[],uc=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],pl="",Ja="global",xh=[""],wy=[],xh=[""],q7="",X7=!1,j4=4,K4=2},"clear"),F3t={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25},z3t={FILLED:0,OPEN:1},$3t={LEFTOF:0,RIGHTOF:1,OVER:2},G3t=o(function(e){q7=Zr(e,pt())},"setTitle"),Ty={addPersonOrSystem:y3t,addPersonOrSystemBoundary:b3t,addContainer:v3t,addContainerBoundary:w3t,addComponent:x3t,addDeploymentNode:T3t,popBoundaryParseStack:k3t,addRel:g3t,updateElStyle:E3t,updateRelStyle:C3t,updateLayoutConfig:S3t,autoWrap:bh,setWrap:P3t,getC4ShapeArray:RV,getC4Shape:R3t,getC4ShapeKeys:N3t,getBoundaries:NV,getBoundarys:M3t,getCurrentBoundaryParse:L3t,getParentBoundaryParse:D3t,getRels:I3t,getTitle:O3t,getC4Type:p3t,getC4ShapeInRow:A3t,getC4BoundaryInRow:_3t,setAccTitle:Mr,getAccTitle:Br,getAccDescription:zr,setAccDescription:Fr,getConfig:o(()=>pt().c4,"getConfig"),clear:B3t,LINETYPE:F3t,ARROWTYPE:z3t,PLACEMENT:$3t,setTitle:G3t,setC4Type:m3t}});function ad(e,t){return e==null||t==null?NaN:et?1:e>=t?0:NaN}var K7=R(()=>{"use strict";o(ad,"ascending")});function Q7(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}var MV=R(()=>{"use strict";o(Q7,"descending")});function sd(e){let t,r,n;e.length!==2?(t=ad,r=o((l,u)=>ad(e(l),u),"compare2"),n=o((l,u)=>e(l)-u,"delta")):(t=e===ad||e===Q7?e:V3t,r=e,n=e);function i(l,u,h=0,f=l.length){if(h>>1;r(l[d],u)<0?h=d+1:f=d}while(h>>1;r(l[d],u)<=0?h=d+1:f=d}while(hh&&n(l[d-1],u)>-n(l[d],u)?d-1:d}return o(s,"center"),{left:i,center:s,right:a}}function V3t(){return 0}var Z7=R(()=>{"use strict";K7();MV();o(sd,"bisector");o(V3t,"zero")});function J7(e){return e===null?NaN:+e}var IV=R(()=>{"use strict";o(J7,"number")});var OV,PV,U3t,H3t,tA,BV=R(()=>{"use strict";K7();Z7();IV();OV=sd(ad),PV=OV.right,U3t=OV.left,H3t=sd(J7).center,tA=PV});function FV({_intern:e,_key:t},r){let n=t(r);return e.has(n)?e.get(n):r}function W3t({_intern:e,_key:t},r){let n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function Y3t({_intern:e,_key:t},r){let n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function q3t(e){return e!==null&&typeof e=="object"?e.valueOf():e}var Lp,zV=R(()=>{"use strict";Lp=class extends Map{static{o(this,"InternMap")}constructor(t,r=q3t){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(let[n,i]of t)this.set(n,i)}get(t){return super.get(FV(this,t))}has(t){return super.has(FV(this,t))}set(t,r){return super.set(W3t(this,t),r)}delete(t){return super.delete(Y3t(this,t))}};o(FV,"intern_get");o(W3t,"intern_set");o(Y3t,"intern_delete");o(q3t,"keyof")});function Q4(e,t,r){let n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),s=a>=X3t?10:a>=j3t?5:a>=K3t?2:1,l,u,h;return i<0?(h=Math.pow(10,-i)/s,l=Math.round(e*h),u=Math.round(t*h),l/ht&&--u,h=-h):(h=Math.pow(10,i)*s,l=Math.round(e/h),u=Math.round(t/h),l*ht&&--u),u0))return[];if(e===t)return[e];let n=t=i))return[];let l=a-i+1,u=new Array(l);if(n)if(s<0)for(let h=0;h{"use strict";X3t=Math.sqrt(50),j3t=Math.sqrt(10),K3t=Math.sqrt(2);o(Q4,"tickSpec");o(Z4,"ticks");o(ky,"tickIncrement");o(Dp,"tickStep")});function J4(e,t){let r;if(t===void 0)for(let n of e)n!=null&&(r=n)&&(r=n);else{let n=-1;for(let i of e)(i=t(i,++n,e))!=null&&(r=i)&&(r=i)}return r}var GV=R(()=>{"use strict";o(J4,"max")});function t3(e,t){let r;if(t===void 0)for(let n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);else{let n=-1;for(let i of e)(i=t(i,++n,e))!=null&&(r>i||r===void 0&&i>=i)&&(r=i)}return r}var VV=R(()=>{"use strict";o(t3,"min")});function e3(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(i);++n{"use strict";o(e3,"range")});var wh=R(()=>{"use strict";BV();Z7();GV();VV();UV();$V();zV()});function eA(e){return e}var HV=R(()=>{"use strict";o(eA,"default")});function Q3t(e){return"translate("+e+",0)"}function Z3t(e){return"translate(0,"+e+")"}function J3t(e){return t=>+e(t)}function t5t(e,t){return t=Math.max(0,e.bandwidth()-t*2)/2,e.round()&&(t=Math.round(t)),r=>+e(r)+t}function e5t(){return!this.__axis}function YV(e,t){var r=[],n=null,i=null,a=6,s=6,l=3,u=typeof window<"u"&&window.devicePixelRatio>1?0:.5,h=e===n3||e===r3?-1:1,f=e===r3||e===rA?"x":"y",d=e===n3||e===nA?Q3t:Z3t;function p(m){var g=n??(t.ticks?t.ticks.apply(t,r):t.domain()),y=i??(t.tickFormat?t.tickFormat.apply(t,r):eA),v=Math.max(a,0)+l,x=t.range(),b=+x[0]+u,w=+x[x.length-1]+u,S=(t.bandwidth?t5t:J3t)(t.copy(),u),T=m.selection?m.selection():m,E=T.selectAll(".domain").data([null]),_=T.selectAll(".tick").data(g,t).order(),A=_.exit(),L=_.enter().append("g").attr("class","tick"),M=_.select("line"),N=_.select("text");E=E.merge(E.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),_=_.merge(L),M=M.merge(L.append("line").attr("stroke","currentColor").attr(f+"2",h*a)),N=N.merge(L.append("text").attr("fill","currentColor").attr(f,h*v).attr("dy",e===n3?"0em":e===nA?"0.71em":"0.32em")),m!==T&&(E=E.transition(m),_=_.transition(m),M=M.transition(m),N=N.transition(m),A=A.transition(m).attr("opacity",WV).attr("transform",function(k){return isFinite(k=S(k))?d(k+u):this.getAttribute("transform")}),L.attr("opacity",WV).attr("transform",function(k){var I=this.parentNode.__axis;return d((I&&isFinite(I=I(k))?I:S(k))+u)})),A.remove(),E.attr("d",e===r3||e===rA?s?"M"+h*s+","+b+"H"+u+"V"+w+"H"+h*s:"M"+u+","+b+"V"+w:s?"M"+b+","+h*s+"V"+u+"H"+w+"V"+h*s:"M"+b+","+u+"H"+w),_.attr("opacity",1).attr("transform",function(k){return d(S(k)+u)}),M.attr(f+"2",h*a),N.attr(f,h*v).text(y),T.filter(e5t).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===rA?"start":e===r3?"end":"middle"),T.each(function(){this.__axis=S})}return o(p,"axis"),p.scale=function(m){return arguments.length?(t=m,p):t},p.ticks=function(){return r=Array.from(arguments),p},p.tickArguments=function(m){return arguments.length?(r=m==null?[]:Array.from(m),p):r.slice()},p.tickValues=function(m){return arguments.length?(n=m==null?null:Array.from(m),p):n&&n.slice()},p.tickFormat=function(m){return arguments.length?(i=m,p):i},p.tickSize=function(m){return arguments.length?(a=s=+m,p):a},p.tickSizeInner=function(m){return arguments.length?(a=+m,p):a},p.tickSizeOuter=function(m){return arguments.length?(s=+m,p):s},p.tickPadding=function(m){return arguments.length?(l=+m,p):l},p.offset=function(m){return arguments.length?(u=+m,p):u},p}function iA(e){return YV(n3,e)}function aA(e){return YV(nA,e)}var n3,rA,nA,r3,WV,qV=R(()=>{"use strict";HV();n3=1,rA=2,nA=3,r3=4,WV=1e-6;o(Q3t,"translateX");o(Z3t,"translateY");o(J3t,"number");o(t5t,"center");o(e5t,"entering");o(YV,"axis");o(iA,"axisTop");o(aA,"axisBottom")});var XV=R(()=>{"use strict";qV()});function KV(){for(var e=0,t=arguments.length,r={},n;e=0&&(n=r.slice(i+1),r=r.slice(0,i)),r&&!t.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:n}})}function i5t(e,t){for(var r=0,n=e.length,i;r{"use strict";r5t={value:o(()=>{},"value")};o(KV,"dispatch");o(i3,"Dispatch");o(n5t,"parseTypenames");i3.prototype=KV.prototype={constructor:i3,on:o(function(e,t){var r=this._,n=n5t(e+"",r),i,a=-1,s=n.length;if(arguments.length<2){for(;++a0)for(var r=new Array(i),n=0,i,a;n{"use strict";QV()});var a3,lA,cA=R(()=>{"use strict";a3="http://www.w3.org/1999/xhtml",lA={svg:"http://www.w3.org/2000/svg",xhtml:a3,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}});function hc(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),lA.hasOwnProperty(t)?{space:lA[t],local:e}:e}var s3=R(()=>{"use strict";cA();o(hc,"default")});function a5t(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===a3&&t.documentElement.namespaceURI===a3?t.createElement(e):t.createElementNS(r,e)}}function s5t(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Ey(e){var t=hc(e);return(t.local?s5t:a5t)(t)}var uA=R(()=>{"use strict";s3();cA();o(a5t,"creatorInherit");o(s5t,"creatorFixed");o(Ey,"default")});function o5t(){}function Th(e){return e==null?o5t:function(){return this.querySelector(e)}}var o3=R(()=>{"use strict";o(o5t,"none");o(Th,"default")});function hA(e){typeof e!="function"&&(e=Th(e));for(var t=this._groups,r=t.length,n=new Array(r),i=0;i{"use strict";gl();o3();o(hA,"default")});function fA(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}var JV=R(()=>{"use strict";o(fA,"array")});function l5t(){return[]}function Rp(e){return e==null?l5t:function(){return this.querySelectorAll(e)}}var dA=R(()=>{"use strict";o(l5t,"empty");o(Rp,"default")});function c5t(e){return function(){return fA(e.apply(this,arguments))}}function pA(e){typeof e=="function"?e=c5t(e):e=Rp(e);for(var t=this._groups,r=t.length,n=[],i=[],a=0;a{"use strict";gl();JV();dA();o(c5t,"arrayAll");o(pA,"default")});function Np(e){return function(){return this.matches(e)}}function l3(e){return function(t){return t.matches(e)}}var Cy=R(()=>{"use strict";o(Np,"default");o(l3,"childMatcher")});function h5t(e){return function(){return u5t.call(this.children,e)}}function f5t(){return this.firstElementChild}function mA(e){return this.select(e==null?f5t:h5t(typeof e=="function"?e:l3(e)))}var u5t,eU=R(()=>{"use strict";Cy();u5t=Array.prototype.find;o(h5t,"childFind");o(f5t,"childFirst");o(mA,"default")});function p5t(){return Array.from(this.children)}function m5t(e){return function(){return d5t.call(this.children,e)}}function gA(e){return this.selectAll(e==null?p5t:m5t(typeof e=="function"?e:l3(e)))}var d5t,rU=R(()=>{"use strict";Cy();d5t=Array.prototype.filter;o(p5t,"children");o(m5t,"childrenFilter");o(gA,"default")});function yA(e){typeof e!="function"&&(e=Np(e));for(var t=this._groups,r=t.length,n=new Array(r),i=0;i{"use strict";gl();Cy();o(yA,"default")});function Sy(e){return new Array(e.length)}var vA=R(()=>{"use strict";o(Sy,"default")});function xA(){return new ai(this._enter||this._groups.map(Sy),this._parents)}function Ay(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}var bA=R(()=>{"use strict";vA();gl();o(xA,"default");o(Ay,"EnterNode");Ay.prototype={constructor:Ay,appendChild:o(function(e){return this._parent.insertBefore(e,this._next)},"appendChild"),insertBefore:o(function(e,t){return this._parent.insertBefore(e,t)},"insertBefore"),querySelector:o(function(e){return this._parent.querySelector(e)},"querySelector"),querySelectorAll:o(function(e){return this._parent.querySelectorAll(e)},"querySelectorAll")}});function wA(e){return function(){return e}}var iU=R(()=>{"use strict";o(wA,"default")});function g5t(e,t,r,n,i,a){for(var s=0,l,u=t.length,h=a.length;s=w&&(w=b+1);!(T=v[w])&&++w{"use strict";gl();bA();iU();o(g5t,"bindIndex");o(y5t,"bindKey");o(v5t,"datum");o(TA,"default");o(x5t,"arraylike")});function kA(){return new ai(this._exit||this._groups.map(Sy),this._parents)}var sU=R(()=>{"use strict";vA();gl();o(kA,"default")});function EA(e,t,r){var n=this.enter(),i=this,a=this.exit();return typeof e=="function"?(n=e(n),n&&(n=n.selection())):n=n.append(e+""),t!=null&&(i=t(i),i&&(i=i.selection())),r==null?a.remove():r(a),n&&i?n.merge(i).order():i}var oU=R(()=>{"use strict";o(EA,"default")});function CA(e){for(var t=e.selection?e.selection():e,r=this._groups,n=t._groups,i=r.length,a=n.length,s=Math.min(i,a),l=new Array(i),u=0;u{"use strict";gl();o(CA,"default")});function SA(){for(var e=this._groups,t=-1,r=e.length;++t=0;)(s=n[i])&&(a&&s.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(s,a),a=s);return this}var cU=R(()=>{"use strict";o(SA,"default")});function AA(e){e||(e=b5t);function t(d,p){return d&&p?e(d.__data__,p.__data__):!d-!p}o(t,"compareNode");for(var r=this._groups,n=r.length,i=new Array(n),a=0;at?1:e>=t?0:NaN}var uU=R(()=>{"use strict";gl();o(AA,"default");o(b5t,"ascending")});function _A(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}var hU=R(()=>{"use strict";o(_A,"default")});function LA(){return Array.from(this)}var fU=R(()=>{"use strict";o(LA,"default")});function DA(){for(var e=this._groups,t=0,r=e.length;t{"use strict";o(DA,"default")});function RA(){let e=0;for(let t of this)++e;return e}var pU=R(()=>{"use strict";o(RA,"default")});function NA(){return!this.node()}var mU=R(()=>{"use strict";o(NA,"default")});function MA(e){for(var t=this._groups,r=0,n=t.length;r{"use strict";o(MA,"default")});function w5t(e){return function(){this.removeAttribute(e)}}function T5t(e){return function(){this.removeAttributeNS(e.space,e.local)}}function k5t(e,t){return function(){this.setAttribute(e,t)}}function E5t(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function C5t(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function S5t(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,r)}}function IA(e,t){var r=hc(e);if(arguments.length<2){var n=this.node();return r.local?n.getAttributeNS(r.space,r.local):n.getAttribute(r)}return this.each((t==null?r.local?T5t:w5t:typeof t=="function"?r.local?S5t:C5t:r.local?E5t:k5t)(r,t))}var yU=R(()=>{"use strict";s3();o(w5t,"attrRemove");o(T5t,"attrRemoveNS");o(k5t,"attrConstant");o(E5t,"attrConstantNS");o(C5t,"attrFunction");o(S5t,"attrFunctionNS");o(IA,"default")});function _y(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}var OA=R(()=>{"use strict";o(_y,"default")});function A5t(e){return function(){this.style.removeProperty(e)}}function _5t(e,t,r){return function(){this.style.setProperty(e,t,r)}}function L5t(e,t,r){return function(){var n=t.apply(this,arguments);n==null?this.style.removeProperty(e):this.style.setProperty(e,n,r)}}function PA(e,t,r){return arguments.length>1?this.each((t==null?A5t:typeof t=="function"?L5t:_5t)(e,t,r??"")):kh(this.node(),e)}function kh(e,t){return e.style.getPropertyValue(t)||_y(e).getComputedStyle(e,null).getPropertyValue(t)}var BA=R(()=>{"use strict";OA();o(A5t,"styleRemove");o(_5t,"styleConstant");o(L5t,"styleFunction");o(PA,"default");o(kh,"styleValue")});function D5t(e){return function(){delete this[e]}}function R5t(e,t){return function(){this[e]=t}}function N5t(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function FA(e,t){return arguments.length>1?this.each((t==null?D5t:typeof t=="function"?N5t:R5t)(e,t)):this.node()[e]}var vU=R(()=>{"use strict";o(D5t,"propertyRemove");o(R5t,"propertyConstant");o(N5t,"propertyFunction");o(FA,"default")});function xU(e){return e.trim().split(/^|\s+/)}function zA(e){return e.classList||new bU(e)}function bU(e){this._node=e,this._names=xU(e.getAttribute("class")||"")}function wU(e,t){for(var r=zA(e),n=-1,i=t.length;++n{"use strict";o(xU,"classArray");o(zA,"classList");o(bU,"ClassList");bU.prototype={add:o(function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},"add"),remove:o(function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},"remove"),contains:o(function(e){return this._names.indexOf(e)>=0},"contains")};o(wU,"classedAdd");o(TU,"classedRemove");o(M5t,"classedTrue");o(I5t,"classedFalse");o(O5t,"classedFunction");o($A,"default")});function P5t(){this.textContent=""}function B5t(e){return function(){this.textContent=e}}function F5t(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function GA(e){return arguments.length?this.each(e==null?P5t:(typeof e=="function"?F5t:B5t)(e)):this.node().textContent}var EU=R(()=>{"use strict";o(P5t,"textRemove");o(B5t,"textConstant");o(F5t,"textFunction");o(GA,"default")});function z5t(){this.innerHTML=""}function $5t(e){return function(){this.innerHTML=e}}function G5t(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function VA(e){return arguments.length?this.each(e==null?z5t:(typeof e=="function"?G5t:$5t)(e)):this.node().innerHTML}var CU=R(()=>{"use strict";o(z5t,"htmlRemove");o($5t,"htmlConstant");o(G5t,"htmlFunction");o(VA,"default")});function V5t(){this.nextSibling&&this.parentNode.appendChild(this)}function UA(){return this.each(V5t)}var SU=R(()=>{"use strict";o(V5t,"raise");o(UA,"default")});function U5t(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function HA(){return this.each(U5t)}var AU=R(()=>{"use strict";o(U5t,"lower");o(HA,"default")});function WA(e){var t=typeof e=="function"?e:Ey(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}var _U=R(()=>{"use strict";uA();o(WA,"default")});function H5t(){return null}function YA(e,t){var r=typeof e=="function"?e:Ey(e),n=t==null?H5t:typeof t=="function"?t:Th(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),n.apply(this,arguments)||null)})}var LU=R(()=>{"use strict";uA();o3();o(H5t,"constantNull");o(YA,"default")});function W5t(){var e=this.parentNode;e&&e.removeChild(this)}function qA(){return this.each(W5t)}var DU=R(()=>{"use strict";o(W5t,"remove");o(qA,"default")});function Y5t(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function q5t(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function XA(e){return this.select(e?q5t:Y5t)}var RU=R(()=>{"use strict";o(Y5t,"selection_cloneShallow");o(q5t,"selection_cloneDeep");o(XA,"default")});function jA(e){return arguments.length?this.property("__data__",e):this.node().__data__}var NU=R(()=>{"use strict";o(jA,"default")});function X5t(e){return function(t){e.call(this,t,this.__data__)}}function j5t(e){return e.trim().split(/^|\s+/).map(function(t){var r="",n=t.indexOf(".");return n>=0&&(r=t.slice(n+1),t=t.slice(0,n)),{type:t,name:r}})}function K5t(e){return function(){var t=this.__on;if(t){for(var r=0,n=-1,i=t.length,a;r{"use strict";o(X5t,"contextListener");o(j5t,"parseTypenames");o(K5t,"onRemove");o(Q5t,"onAdd");o(KA,"default")});function IU(e,t,r){var n=_y(e),i=n.CustomEvent;typeof i=="function"?i=new i(t,r):(i=n.document.createEvent("Event"),r?(i.initEvent(t,r.bubbles,r.cancelable),i.detail=r.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function Z5t(e,t){return function(){return IU(this,e,t)}}function J5t(e,t){return function(){return IU(this,e,t.apply(this,arguments))}}function QA(e,t){return this.each((typeof t=="function"?J5t:Z5t)(e,t))}var OU=R(()=>{"use strict";OA();o(IU,"dispatchEvent");o(Z5t,"dispatchConstant");o(J5t,"dispatchFunction");o(QA,"default")});function*ZA(){for(var e=this._groups,t=0,r=e.length;t{"use strict";o(ZA,"default")});function ai(e,t){this._groups=e,this._parents=t}function BU(){return new ai([[document.documentElement]],JA)}function twt(){return this}var JA,mu,gl=R(()=>{"use strict";ZV();tU();eU();rU();nU();aU();bA();sU();oU();lU();cU();uU();hU();fU();dU();pU();mU();gU();yU();BA();vU();kU();EU();CU();SU();AU();_U();LU();DU();RU();NU();MU();OU();PU();JA=[null];o(ai,"Selection");o(BU,"selection");o(twt,"selection_selection");ai.prototype=BU.prototype={constructor:ai,select:hA,selectAll:pA,selectChild:mA,selectChildren:gA,filter:yA,data:TA,enter:xA,exit:kA,join:EA,merge:CA,selection:twt,order:SA,sort:AA,call:_A,nodes:LA,node:DA,size:RA,empty:NA,each:MA,attr:IA,style:PA,property:FA,classed:$A,text:GA,html:VA,raise:UA,lower:HA,append:WA,insert:YA,remove:qA,clone:XA,datum:jA,on:KA,dispatch:QA,[Symbol.iterator]:ZA};mu=BU});function Gt(e){return typeof e=="string"?new ai([[document.querySelector(e)]],[document.documentElement]):new ai([[e]],JA)}var FU=R(()=>{"use strict";gl();o(Gt,"default")});var yl=R(()=>{"use strict";Cy();s3();FU();gl();o3();dA();BA()});var zU=R(()=>{"use strict"});function Eh(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Mp(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}var t8=R(()=>{"use strict";o(Eh,"default");o(Mp,"extend")});function Ch(){}function GU(){return this.rgb().formatHex()}function lwt(){return this.rgb().formatHex8()}function cwt(){return XU(this).formatHsl()}function VU(){return this.rgb().formatRgb()}function xl(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=ewt.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?UU(t):r===3?new fa(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?c3(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?c3(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=rwt.exec(e))?new fa(t[1],t[2],t[3],1):(t=nwt.exec(e))?new fa(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=iwt.exec(e))?c3(t[1],t[2],t[3],t[4]):(t=awt.exec(e))?c3(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=swt.exec(e))?YU(t[1],t[2]/100,t[3]/100,1):(t=owt.exec(e))?YU(t[1],t[2]/100,t[3]/100,t[4]):$U.hasOwnProperty(e)?UU($U[e]):e==="transparent"?new fa(NaN,NaN,NaN,0):null}function UU(e){return new fa(e>>16&255,e>>8&255,e&255,1)}function c3(e,t,r,n){return n<=0&&(e=t=r=NaN),new fa(e,t,r,n)}function r8(e){return e instanceof Ch||(e=xl(e)),e?(e=e.rgb(),new fa(e.r,e.g,e.b,e.opacity)):new fa}function Op(e,t,r,n){return arguments.length===1?r8(e):new fa(e,t,r,n??1)}function fa(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function HU(){return`#${od(this.r)}${od(this.g)}${od(this.b)}`}function uwt(){return`#${od(this.r)}${od(this.g)}${od(this.b)}${od((isNaN(this.opacity)?1:this.opacity)*255)}`}function WU(){let e=f3(this.opacity);return`${e===1?"rgb(":"rgba("}${ld(this.r)}, ${ld(this.g)}, ${ld(this.b)}${e===1?")":`, ${e})`}`}function f3(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ld(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function od(e){return e=ld(e),(e<16?"0":"")+e.toString(16)}function YU(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new vl(e,t,r,n)}function XU(e){if(e instanceof vl)return new vl(e.h,e.s,e.l,e.opacity);if(e instanceof Ch||(e=xl(e)),!e)return new vl;if(e instanceof vl)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),s=NaN,l=a-i,u=(a+i)/2;return l?(t===a?s=(r-n)/l+(r0&&u<1?0:s,new vl(s,l,u,e.opacity)}function jU(e,t,r,n){return arguments.length===1?XU(e):new vl(e,t,r,n??1)}function vl(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function qU(e){return e=(e||0)%360,e<0?e+360:e}function u3(e){return Math.max(0,Math.min(1,e||0))}function e8(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}var Ly,h3,Ip,Dy,fc,ewt,rwt,nwt,iwt,awt,swt,owt,$U,n8=R(()=>{"use strict";t8();o(Ch,"Color");Ly=.7,h3=1/Ly,Ip="\\s*([+-]?\\d+)\\s*",Dy="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",fc="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ewt=/^#([0-9a-f]{3,8})$/,rwt=new RegExp(`^rgb\\(${Ip},${Ip},${Ip}\\)$`),nwt=new RegExp(`^rgb\\(${fc},${fc},${fc}\\)$`),iwt=new RegExp(`^rgba\\(${Ip},${Ip},${Ip},${Dy}\\)$`),awt=new RegExp(`^rgba\\(${fc},${fc},${fc},${Dy}\\)$`),swt=new RegExp(`^hsl\\(${Dy},${fc},${fc}\\)$`),owt=new RegExp(`^hsla\\(${Dy},${fc},${fc},${Dy}\\)$`),$U={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};Eh(Ch,xl,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:GU,formatHex:GU,formatHex8:lwt,formatHsl:cwt,formatRgb:VU,toString:VU});o(GU,"color_formatHex");o(lwt,"color_formatHex8");o(cwt,"color_formatHsl");o(VU,"color_formatRgb");o(xl,"color");o(UU,"rgbn");o(c3,"rgba");o(r8,"rgbConvert");o(Op,"rgb");o(fa,"Rgb");Eh(fa,Op,Mp(Ch,{brighter(e){return e=e==null?h3:Math.pow(h3,e),new fa(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Ly:Math.pow(Ly,e),new fa(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new fa(ld(this.r),ld(this.g),ld(this.b),f3(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:HU,formatHex:HU,formatHex8:uwt,formatRgb:WU,toString:WU}));o(HU,"rgb_formatHex");o(uwt,"rgb_formatHex8");o(WU,"rgb_formatRgb");o(f3,"clampa");o(ld,"clampi");o(od,"hex");o(YU,"hsla");o(XU,"hslConvert");o(jU,"hsl");o(vl,"Hsl");Eh(vl,jU,Mp(Ch,{brighter(e){return e=e==null?h3:Math.pow(h3,e),new vl(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Ly:Math.pow(Ly,e),new vl(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new fa(e8(e>=240?e-240:e+120,i,n),e8(e,i,n),e8(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new vl(qU(this.h),u3(this.s),u3(this.l),f3(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(){let e=f3(this.opacity);return`${e===1?"hsl(":"hsla("}${qU(this.h)}, ${u3(this.s)*100}%, ${u3(this.l)*100}%${e===1?")":`, ${e})`}`}}));o(qU,"clamph");o(u3,"clampt");o(e8,"hsl2rgb")});var KU,QU,ZU=R(()=>{"use strict";KU=Math.PI/180,QU=180/Math.PI});function iH(e){if(e instanceof dc)return new dc(e.l,e.a,e.b,e.opacity);if(e instanceof gu)return aH(e);e instanceof fa||(e=r8(e));var t=o8(e.r),r=o8(e.g),n=o8(e.b),i=i8((.2225045*t+.7168786*r+.0606169*n)/tH),a,s;return t===r&&r===n?a=s=i:(a=i8((.4360747*t+.3850649*r+.1430804*n)/JU),s=i8((.0139322*t+.0971045*r+.7141733*n)/eH)),new dc(116*i-16,500*(a-i),200*(i-s),e.opacity)}function l8(e,t,r,n){return arguments.length===1?iH(e):new dc(e,t,r,n??1)}function dc(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function i8(e){return e>hwt?Math.pow(e,1/3):e/nH+rH}function a8(e){return e>Pp?e*e*e:nH*(e-rH)}function s8(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function o8(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function fwt(e){if(e instanceof gu)return new gu(e.h,e.c,e.l,e.opacity);if(e instanceof dc||(e=iH(e)),e.a===0&&e.b===0)return new gu(NaN,0{"use strict";t8();n8();ZU();d3=18,JU=.96422,tH=1,eH=.82521,rH=4/29,Pp=6/29,nH=3*Pp*Pp,hwt=Pp*Pp*Pp;o(iH,"labConvert");o(l8,"lab");o(dc,"Lab");Eh(dc,l8,Mp(Ch,{brighter(e){return new dc(this.l+d3*(e??1),this.a,this.b,this.opacity)},darker(e){return new dc(this.l-d3*(e??1),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return t=JU*a8(t),e=tH*a8(e),r=eH*a8(r),new fa(s8(3.1338561*t-1.6168667*e-.4906146*r),s8(-.9787684*t+1.9161415*e+.033454*r),s8(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}}));o(i8,"xyz2lab");o(a8,"lab2xyz");o(s8,"lrgb2rgb");o(o8,"rgb2lrgb");o(fwt,"hclConvert");o(Ry,"hcl");o(gu,"Hcl");o(aH,"hcl2lab");Eh(gu,Ry,Mp(Ch,{brighter(e){return new gu(this.h,this.c,this.l+d3*(e??1),this.opacity)},darker(e){return new gu(this.h,this.c,this.l-d3*(e??1),this.opacity)},rgb(){return aH(this).rgb()}}))});var Bp=R(()=>{"use strict";n8();sH()});function c8(e,t,r,n,i){var a=e*e,s=a*e;return((1-3*e+3*a-s)*t+(4-6*a+3*s)*r+(1+3*e+3*a-3*s)*n+s*i)/6}function u8(e){var t=e.length-1;return function(r){var n=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),i=e[n],a=e[n+1],s=n>0?e[n-1]:2*i-a,l=n{"use strict";o(c8,"basis");o(u8,"default")});function f8(e){var t=e.length;return function(r){var n=Math.floor(((r%=1)<0?++r:r)*t),i=e[(n+t-1)%t],a=e[n%t],s=e[(n+1)%t],l=e[(n+2)%t];return c8((r-n/t)*t,i,a,s,l)}}var oH=R(()=>{"use strict";h8();o(f8,"default")});var Fp,d8=R(()=>{"use strict";Fp=o(e=>()=>e,"default")});function lH(e,t){return function(r){return e+r*t}}function dwt(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function cH(e,t){var r=t-e;return r?lH(e,r>180||r<-180?r-360*Math.round(r/360):r):Fp(isNaN(e)?t:e)}function uH(e){return(e=+e)==1?yu:function(t,r){return r-t?dwt(t,r,e):Fp(isNaN(t)?r:t)}}function yu(e,t){var r=t-e;return r?lH(e,r):Fp(isNaN(e)?t:e)}var p8=R(()=>{"use strict";d8();o(lH,"linear");o(dwt,"exponential");o(cH,"hue");o(uH,"gamma");o(yu,"nogamma")});function hH(e){return function(t){var r=t.length,n=new Array(r),i=new Array(r),a=new Array(r),s,l;for(s=0;s{"use strict";Bp();h8();oH();p8();cd=o(function e(t){var r=uH(t);function n(i,a){var s=r((i=Op(i)).r,(a=Op(a)).r),l=r(i.g,a.g),u=r(i.b,a.b),h=yu(i.opacity,a.opacity);return function(f){return i.r=s(f),i.g=l(f),i.b=u(f),i.opacity=h(f),i+""}}return o(n,"rgb"),n.gamma=e,n},"rgbGamma")(1);o(hH,"rgbSpline");pwt=hH(u8),mwt=hH(f8)});function g8(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i{"use strict";o(g8,"default");o(fH,"isNumberArray")});function pH(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),s;for(s=0;s{"use strict";p3();o(pH,"genericArray")});function y8(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}var gH=R(()=>{"use strict";o(y8,"default")});function Zi(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var Ny=R(()=>{"use strict";o(Zi,"default")});function v8(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=Sh(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var yH=R(()=>{"use strict";p3();o(v8,"default")});function gwt(e){return function(){return e}}function ywt(e){return function(t){return e(t)+""}}function zp(e,t){var r=b8.lastIndex=x8.lastIndex=0,n,i,a,s=-1,l=[],u=[];for(e=e+"",t=t+"";(n=b8.exec(e))&&(i=x8.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),l[s]?l[s]+=a:l[++s]=a),(n=n[0])===(i=i[0])?l[s]?l[s]+=i:l[++s]=i:(l[++s]=null,u.push({i:s,x:Zi(n,i)})),r=x8.lastIndex;return r{"use strict";Ny();b8=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,x8=new RegExp(b8.source,"g");o(gwt,"zero");o(ywt,"one");o(zp,"default")});function Sh(e,t){var r=typeof t,n;return t==null||r==="boolean"?Fp(t):(r==="number"?Zi:r==="string"?(n=xl(t))?(t=n,cd):zp:t instanceof xl?cd:t instanceof Date?y8:fH(t)?g8:Array.isArray(t)?pH:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?v8:Zi)(e,t)}var p3=R(()=>{"use strict";Bp();m8();mH();gH();Ny();yH();w8();d8();dH();o(Sh,"default")});function m3(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}var vH=R(()=>{"use strict";o(m3,"default")});function y3(e,t,r,n,i,a){var s,l,u;return(s=Math.sqrt(e*e+t*t))&&(e/=s,t/=s),(u=e*r+t*n)&&(r-=e*u,n-=t*u),(l=Math.sqrt(r*r+n*n))&&(r/=l,n/=l,u/=l),e*n{"use strict";xH=180/Math.PI,g3={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};o(y3,"default")});function wH(e){let t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?g3:y3(t.a,t.b,t.c,t.d,t.e,t.f)}function TH(e){return e==null?g3:(v3||(v3=document.createElementNS("http://www.w3.org/2000/svg","g")),v3.setAttribute("transform",e),(e=v3.transform.baseVal.consolidate())?(e=e.matrix,y3(e.a,e.b,e.c,e.d,e.e,e.f)):g3)}var v3,kH=R(()=>{"use strict";bH();o(wH,"parseCss");o(TH,"parseSvg")});function EH(e,t,r,n){function i(h){return h.length?h.pop()+" ":""}o(i,"pop");function a(h,f,d,p,m,g){if(h!==d||f!==p){var y=m.push("translate(",null,t,null,r);g.push({i:y-4,x:Zi(h,d)},{i:y-2,x:Zi(f,p)})}else(d||p)&&m.push("translate("+d+t+p+r)}o(a,"translate");function s(h,f,d,p){h!==f?(h-f>180?f+=360:f-h>180&&(h+=360),p.push({i:d.push(i(d)+"rotate(",null,n)-2,x:Zi(h,f)})):f&&d.push(i(d)+"rotate("+f+n)}o(s,"rotate");function l(h,f,d,p){h!==f?p.push({i:d.push(i(d)+"skewX(",null,n)-2,x:Zi(h,f)}):f&&d.push(i(d)+"skewX("+f+n)}o(l,"skewX");function u(h,f,d,p,m,g){if(h!==d||f!==p){var y=m.push(i(m)+"scale(",null,",",null,")");g.push({i:y-4,x:Zi(h,d)},{i:y-2,x:Zi(f,p)})}else(d!==1||p!==1)&&m.push(i(m)+"scale("+d+","+p+")")}return o(u,"scale"),function(h,f){var d=[],p=[];return h=e(h),f=e(f),a(h.translateX,h.translateY,f.translateX,f.translateY,d,p),s(h.rotate,f.rotate,d,p),l(h.skewX,f.skewX,d,p),u(h.scaleX,h.scaleY,f.scaleX,f.scaleY,d,p),h=f=null,function(m){for(var g=-1,y=p.length,v;++g{"use strict";Ny();kH();o(EH,"interpolateTransform");T8=EH(wH,"px, ","px)","deg)"),k8=EH(TH,", ",")",")")});function SH(e){return function(t,r){var n=e((t=Ry(t)).h,(r=Ry(r)).h),i=yu(t.c,r.c),a=yu(t.l,r.l),s=yu(t.opacity,r.opacity);return function(l){return t.h=n(l),t.c=i(l),t.l=a(l),t.opacity=s(l),t+""}}}var E8,vwt,AH=R(()=>{"use strict";Bp();p8();o(SH,"hcl");E8=SH(cH),vwt=SH(yu)});var $p=R(()=>{"use strict";p3();Ny();vH();w8();CH();m8();AH()});function Fy(){return ud||(DH(xwt),ud=Py.now()+w3)}function xwt(){ud=0}function By(){this._call=this._time=this._next=null}function T3(e,t,r){var n=new By;return n.restart(e,t,r),n}function RH(){Fy(),++Gp;for(var e=x3,t;e;)(t=ud-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Gp}function _H(){ud=(b3=Py.now())+w3,Gp=Iy=0;try{RH()}finally{Gp=0,wwt(),ud=0}}function bwt(){var e=Py.now(),t=e-b3;t>LH&&(w3-=t,b3=e)}function wwt(){for(var e,t=x3,r,n=1/0;t;)t._call?(n>t._time&&(n=t._time),e=t,t=t._next):(r=t._next,t._next=null,t=e?e._next=r:x3=r);Oy=e,C8(n)}function C8(e){if(!Gp){Iy&&(Iy=clearTimeout(Iy));var t=e-ud;t>24?(e<1/0&&(Iy=setTimeout(_H,e-Py.now()-w3)),My&&(My=clearInterval(My))):(My||(b3=Py.now(),My=setInterval(bwt,LH)),Gp=1,DH(_H))}}var Gp,Iy,My,LH,x3,Oy,b3,ud,w3,Py,DH,S8=R(()=>{"use strict";Gp=0,Iy=0,My=0,LH=1e3,b3=0,ud=0,w3=0,Py=typeof performance=="object"&&performance.now?performance:Date,DH=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};o(Fy,"now");o(xwt,"clearNow");o(By,"Timer");By.prototype=T3.prototype={constructor:By,restart:o(function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?Fy():+r)+(t==null?0:+t),!this._next&&Oy!==this&&(Oy?Oy._next=this:x3=this,Oy=this),this._call=e,this._time=r,C8()},"restart"),stop:o(function(){this._call&&(this._call=null,this._time=1/0,C8())},"stop")};o(T3,"timer");o(RH,"timerFlush");o(_H,"wake");o(bwt,"poke");o(wwt,"nap");o(C8,"sleep")});function zy(e,t,r){var n=new By;return t=t==null?0:+t,n.restart(i=>{n.stop(),e(i+t)},t,r),n}var NH=R(()=>{"use strict";S8();o(zy,"default")});var k3=R(()=>{"use strict";S8();NH()});function vu(e,t,r,n,i,a){var s=e.__transition;if(!s)e.__transition={};else if(r in s)return;Ewt(e,r,{name:t,index:n,group:i,on:Twt,tween:kwt,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:OH})}function Gy(e,t){var r=Bi(e,t);if(r.state>OH)throw new Error("too late; already scheduled");return r}function da(e,t){var r=Bi(e,t);if(r.state>E3)throw new Error("too late; already running");return r}function Bi(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function Ewt(e,t,r){var n=e.__transition,i;n[t]=r,r.timer=T3(a,0,r.time);function a(h){r.state=MH,r.timer.restart(s,r.delay,r.time),r.delay<=h&&s(h-r.delay)}o(a,"schedule");function s(h){var f,d,p,m;if(r.state!==MH)return u();for(f in n)if(m=n[f],m.name===r.name){if(m.state===E3)return zy(s);m.state===IH?(m.state=$y,m.timer.stop(),m.on.call("interrupt",e,e.__data__,m.index,m.group),delete n[f]):+f{"use strict";oA();k3();Twt=sA("start","end","cancel","interrupt"),kwt=[],OH=0,MH=1,C3=2,E3=3,IH=4,S3=5,$y=6;o(vu,"default");o(Gy,"init");o(da,"set");o(Bi,"get");o(Ewt,"create")});function Vy(e,t){var r=e.__transition,n,i,a=!0,s;if(r){t=t==null?null:t+"";for(s in r){if((n=r[s]).name!==t){a=!1;continue}i=n.state>C3&&n.state{"use strict";ws();o(Vy,"default")});function A8(e){return this.each(function(){Vy(this,e)})}var BH=R(()=>{"use strict";PH();o(A8,"default")});function Cwt(e,t){var r,n;return function(){var i=da(this,e),a=i.tween;if(a!==r){n=r=a;for(var s=0,l=n.length;s{"use strict";ws();o(Cwt,"tweenRemove");o(Swt,"tweenFunction");o(_8,"default");o(Vp,"tweenValue")});function Hy(e,t){var r;return(typeof t=="number"?Zi:t instanceof xl?cd:(r=xl(t))?(t=r,cd):zp)(e,t)}var L8=R(()=>{"use strict";Bp();$p();o(Hy,"default")});function Awt(e){return function(){this.removeAttribute(e)}}function _wt(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Lwt(e,t,r){var n,i=r+"",a;return function(){var s=this.getAttribute(e);return s===i?null:s===n?a:a=t(n=s,r)}}function Dwt(e,t,r){var n,i=r+"",a;return function(){var s=this.getAttributeNS(e.space,e.local);return s===i?null:s===n?a:a=t(n=s,r)}}function Rwt(e,t,r){var n,i,a;return function(){var s,l=r(this),u;return l==null?void this.removeAttribute(e):(s=this.getAttribute(e),u=l+"",s===u?null:s===n&&u===i?a:(i=u,a=t(n=s,l)))}}function Nwt(e,t,r){var n,i,a;return function(){var s,l=r(this),u;return l==null?void this.removeAttributeNS(e.space,e.local):(s=this.getAttributeNS(e.space,e.local),u=l+"",s===u?null:s===n&&u===i?a:(i=u,a=t(n=s,l)))}}function D8(e,t){var r=hc(e),n=r==="transform"?k8:Hy;return this.attrTween(e,typeof t=="function"?(r.local?Nwt:Rwt)(r,n,Vp(this,"attr."+e,t)):t==null?(r.local?_wt:Awt)(r):(r.local?Dwt:Lwt)(r,n,t))}var FH=R(()=>{"use strict";$p();yl();Uy();L8();o(Awt,"attrRemove");o(_wt,"attrRemoveNS");o(Lwt,"attrConstant");o(Dwt,"attrConstantNS");o(Rwt,"attrFunction");o(Nwt,"attrFunctionNS");o(D8,"default")});function Mwt(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function Iwt(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function Owt(e,t){var r,n;function i(){var a=t.apply(this,arguments);return a!==n&&(r=(n=a)&&Iwt(e,a)),r}return o(i,"tween"),i._value=t,i}function Pwt(e,t){var r,n;function i(){var a=t.apply(this,arguments);return a!==n&&(r=(n=a)&&Mwt(e,a)),r}return o(i,"tween"),i._value=t,i}function R8(e,t){var r="attr."+e;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;var n=hc(e);return this.tween(r,(n.local?Owt:Pwt)(n,t))}var zH=R(()=>{"use strict";yl();o(Mwt,"attrInterpolate");o(Iwt,"attrInterpolateNS");o(Owt,"attrTweenNS");o(Pwt,"attrTween");o(R8,"default")});function Bwt(e,t){return function(){Gy(this,e).delay=+t.apply(this,arguments)}}function Fwt(e,t){return t=+t,function(){Gy(this,e).delay=t}}function N8(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Bwt:Fwt)(t,e)):Bi(this.node(),t).delay}var $H=R(()=>{"use strict";ws();o(Bwt,"delayFunction");o(Fwt,"delayConstant");o(N8,"default")});function zwt(e,t){return function(){da(this,e).duration=+t.apply(this,arguments)}}function $wt(e,t){return t=+t,function(){da(this,e).duration=t}}function M8(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?zwt:$wt)(t,e)):Bi(this.node(),t).duration}var GH=R(()=>{"use strict";ws();o(zwt,"durationFunction");o($wt,"durationConstant");o(M8,"default")});function Gwt(e,t){if(typeof t!="function")throw new Error;return function(){da(this,e).ease=t}}function I8(e){var t=this._id;return arguments.length?this.each(Gwt(t,e)):Bi(this.node(),t).ease}var VH=R(()=>{"use strict";ws();o(Gwt,"easeConstant");o(I8,"default")});function Vwt(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;da(this,e).ease=r}}function O8(e){if(typeof e!="function")throw new Error;return this.each(Vwt(this._id,e))}var UH=R(()=>{"use strict";ws();o(Vwt,"easeVarying");o(O8,"default")});function P8(e){typeof e!="function"&&(e=Np(e));for(var t=this._groups,r=t.length,n=new Array(r),i=0;i{"use strict";yl();hd();o(P8,"default")});function B8(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,r=e._groups,n=t.length,i=r.length,a=Math.min(n,i),s=new Array(n),l=0;l{"use strict";hd();o(B8,"default")});function Uwt(e){return(e+"").trim().split(/^|\s+/).every(function(t){var r=t.indexOf(".");return r>=0&&(t=t.slice(0,r)),!t||t==="start"})}function Hwt(e,t,r){var n,i,a=Uwt(t)?Gy:da;return function(){var s=a(this,e),l=s.on;l!==n&&(i=(n=l).copy()).on(t,r),s.on=i}}function F8(e,t){var r=this._id;return arguments.length<2?Bi(this.node(),r).on.on(e):this.each(Hwt(r,e,t))}var YH=R(()=>{"use strict";ws();o(Uwt,"start");o(Hwt,"onFunction");o(F8,"default")});function Wwt(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function z8(){return this.on("end.remove",Wwt(this._id))}var qH=R(()=>{"use strict";o(Wwt,"removeFunction");o(z8,"default")});function $8(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Th(e));for(var n=this._groups,i=n.length,a=new Array(i),s=0;s{"use strict";yl();hd();ws();o($8,"default")});function G8(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Rp(e));for(var n=this._groups,i=n.length,a=[],s=[],l=0;l{"use strict";yl();hd();ws();o(G8,"default")});function V8(){return new Ywt(this._groups,this._parents)}var Ywt,KH=R(()=>{"use strict";yl();Ywt=mu.prototype.constructor;o(V8,"default")});function qwt(e,t){var r,n,i;return function(){var a=kh(this,e),s=(this.style.removeProperty(e),kh(this,e));return a===s?null:a===r&&s===n?i:i=t(r=a,n=s)}}function QH(e){return function(){this.style.removeProperty(e)}}function Xwt(e,t,r){var n,i=r+"",a;return function(){var s=kh(this,e);return s===i?null:s===n?a:a=t(n=s,r)}}function jwt(e,t,r){var n,i,a;return function(){var s=kh(this,e),l=r(this),u=l+"";return l==null&&(u=l=(this.style.removeProperty(e),kh(this,e))),s===u?null:s===n&&u===i?a:(i=u,a=t(n=s,l))}}function Kwt(e,t){var r,n,i,a="style."+t,s="end."+a,l;return function(){var u=da(this,e),h=u.on,f=u.value[a]==null?l||(l=QH(t)):void 0;(h!==r||i!==f)&&(n=(r=h).copy()).on(s,i=f),u.on=n}}function U8(e,t,r){var n=(e+="")=="transform"?T8:Hy;return t==null?this.styleTween(e,qwt(e,n)).on("end.style."+e,QH(e)):typeof t=="function"?this.styleTween(e,jwt(e,n,Vp(this,"style."+e,t))).each(Kwt(this._id,e)):this.styleTween(e,Xwt(e,n,t),r).on("end.style."+e,null)}var ZH=R(()=>{"use strict";$p();yl();ws();Uy();L8();o(qwt,"styleNull");o(QH,"styleRemove");o(Xwt,"styleConstant");o(jwt,"styleFunction");o(Kwt,"styleMaybeRemove");o(U8,"default")});function Qwt(e,t,r){return function(n){this.style.setProperty(e,t.call(this,n),r)}}function Zwt(e,t,r){var n,i;function a(){var s=t.apply(this,arguments);return s!==i&&(n=(i=s)&&Qwt(e,s,r)),n}return o(a,"tween"),a._value=t,a}function H8(e,t,r){var n="style."+(e+="");if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;return this.tween(n,Zwt(e,t,r??""))}var JH=R(()=>{"use strict";o(Qwt,"styleInterpolate");o(Zwt,"styleTween");o(H8,"default")});function Jwt(e){return function(){this.textContent=e}}function tTt(e){return function(){var t=e(this);this.textContent=t??""}}function W8(e){return this.tween("text",typeof e=="function"?tTt(Vp(this,"text",e)):Jwt(e==null?"":e+""))}var tW=R(()=>{"use strict";Uy();o(Jwt,"textConstant");o(tTt,"textFunction");o(W8,"default")});function eTt(e){return function(t){this.textContent=e.call(this,t)}}function rTt(e){var t,r;function n(){var i=e.apply(this,arguments);return i!==r&&(t=(r=i)&&eTt(i)),t}return o(n,"tween"),n._value=e,n}function Y8(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,rTt(e))}var eW=R(()=>{"use strict";o(eTt,"textInterpolate");o(rTt,"textTween");o(Y8,"default")});function q8(){for(var e=this._name,t=this._id,r=A3(),n=this._groups,i=n.length,a=0;a{"use strict";hd();ws();o(q8,"default")});function X8(){var e,t,r=this,n=r._id,i=r.size();return new Promise(function(a,s){var l={value:s},u={value:o(function(){--i===0&&a()},"value")};r.each(function(){var h=da(this,n),f=h.on;f!==e&&(t=(e=f).copy(),t._.cancel.push(l),t._.interrupt.push(l),t._.end.push(u)),h.on=t}),i===0&&a()})}var nW=R(()=>{"use strict";ws();o(X8,"default")});function ts(e,t,r,n){this._groups=e,this._parents=t,this._name=r,this._id=n}function iW(e){return mu().transition(e)}function A3(){return++nTt}var nTt,xu,hd=R(()=>{"use strict";yl();FH();zH();$H();GH();VH();UH();HH();WH();YH();qH();XH();jH();KH();ZH();JH();tW();eW();rW();Uy();nW();nTt=0;o(ts,"Transition");o(iW,"transition");o(A3,"newId");xu=mu.prototype;ts.prototype=iW.prototype={constructor:ts,select:$8,selectAll:G8,selectChild:xu.selectChild,selectChildren:xu.selectChildren,filter:P8,merge:B8,selection:V8,transition:q8,call:xu.call,nodes:xu.nodes,node:xu.node,size:xu.size,empty:xu.empty,each:xu.each,on:F8,attr:D8,attrTween:R8,style:U8,styleTween:H8,text:W8,textTween:Y8,remove:z8,tween:_8,delay:N8,duration:M8,ease:I8,easeVarying:O8,end:X8,[Symbol.iterator]:xu[Symbol.iterator]}});function _3(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var aW=R(()=>{"use strict";o(_3,"cubicInOut")});var j8=R(()=>{"use strict";aW()});function aTt(e,t){for(var r;!(r=e.__transition)||!(r=r[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return r}function K8(e){var t,r;e instanceof ts?(t=e._id,e=e._name):(t=A3(),(r=iTt).time=Fy(),e=e==null?null:e+"");for(var n=this._groups,i=n.length,a=0;a{"use strict";hd();ws();j8();k3();iTt={time:null,delay:0,duration:250,ease:_3};o(aTt,"inherit");o(K8,"default")});var oW=R(()=>{"use strict";yl();BH();sW();mu.prototype.interrupt=A8;mu.prototype.transition=K8});var L3=R(()=>{"use strict";oW()});var lW=R(()=>{"use strict"});var cW=R(()=>{"use strict"});var uW=R(()=>{"use strict"});function hW(e){return[+e[0],+e[1]]}function sTt(e){return[hW(e[0]),hW(e[1])]}function Q8(e){return{type:e}}var bge,wge,Tge,kge,Ege,Cge,fW=R(()=>{"use strict";L3();lW();cW();uW();({abs:bge,max:wge,min:Tge}=Math);o(hW,"number1");o(sTt,"number2");kge={name:"x",handles:["w","e"].map(Q8),input:o(function(e,t){return e==null?null:[[+e[0],t[0][1]],[+e[1],t[1][1]]]},"input"),output:o(function(e){return e&&[e[0][0],e[1][0]]},"output")},Ege={name:"y",handles:["n","s"].map(Q8),input:o(function(e,t){return e==null?null:[[t[0][0],+e[0]],[t[1][0],+e[1]]]},"input"),output:o(function(e){return e&&[e[0][1],e[1][1]]},"output")},Cge={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(Q8),input:o(function(e){return e==null?null:sTt(e)},"input"),output:o(function(e){return e},"output")};o(Q8,"type")});var dW=R(()=>{"use strict";fW()});function pW(e){this._+=e[0];for(let t=1,r=e.length;t=0))throw new Error(`invalid digits: ${e}`);if(t>15)return pW;let r=10**t;return function(n){this._+=n[0];for(let i=1,a=n.length;i{"use strict";Z8=Math.PI,J8=2*Z8,fd=1e-6,oTt=J8-fd;o(pW,"append");o(lTt,"appendRound");dd=class{static{o(this,"Path")}constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?pW:lTt(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,a,s){this._append`C${+t},${+r},${+n},${+i},${this._x1=+a},${this._y1=+s}`}arcTo(t,r,n,i,a){if(t=+t,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let s=this._x1,l=this._y1,u=n-t,h=i-r,f=s-t,d=l-r,p=f*f+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(p>fd)if(!(Math.abs(d*u-h*f)>fd)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let m=n-s,g=i-l,y=u*u+h*h,v=m*m+g*g,x=Math.sqrt(y),b=Math.sqrt(p),w=a*Math.tan((Z8-Math.acos((y+p-v)/(2*x*b)))/2),S=w/b,T=w/x;Math.abs(S-1)>fd&&this._append`L${t+S*f},${r+S*d}`,this._append`A${a},${a},0,0,${+(d*m>f*g)},${this._x1=t+T*u},${this._y1=r+T*h}`}}arc(t,r,n,i,a,s){if(t=+t,r=+r,n=+n,s=!!s,n<0)throw new Error(`negative radius: ${n}`);let l=n*Math.cos(i),u=n*Math.sin(i),h=t+l,f=r+u,d=1^s,p=s?i-a:a-i;this._x1===null?this._append`M${h},${f}`:(Math.abs(this._x1-h)>fd||Math.abs(this._y1-f)>fd)&&this._append`L${h},${f}`,n&&(p<0&&(p=p%J8+J8),p>oTt?this._append`A${n},${n},0,1,${d},${t-l},${r-u}A${n},${n},0,1,${d},${this._x1=h},${this._y1=f}`:p>fd&&this._append`A${n},${n},0,${+(p>=Z8)},${d},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}};o(mW,"path");mW.prototype=dd.prototype});var t_=R(()=>{"use strict";gW()});var yW=R(()=>{"use strict"});var vW=R(()=>{"use strict"});var xW=R(()=>{"use strict"});var bW=R(()=>{"use strict"});var wW=R(()=>{"use strict"});var TW=R(()=>{"use strict"});var kW=R(()=>{"use strict"});function e_(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function pd(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}var Wy=R(()=>{"use strict";o(e_,"default");o(pd,"formatDecimalParts")});function bl(e){return e=pd(Math.abs(e)),e?e[1]:NaN}var Yy=R(()=>{"use strict";Wy();o(bl,"default")});function r_(e,t){return function(r,n){for(var i=r.length,a=[],s=0,l=e[0],u=0;i>0&&l>0&&(u+l+1>n&&(l=Math.max(1,n-u)),a.push(r.substring(i-=l,i+l)),!((u+=l+1)>n));)l=e[s=(s+1)%e.length];return a.reverse().join(t)}}var EW=R(()=>{"use strict";o(r_,"default")});function n_(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var CW=R(()=>{"use strict";o(n_,"default")});function Ah(e){if(!(t=cTt.exec(e)))throw new Error("invalid format: "+e);var t;return new D3({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function D3(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}var cTt,i_=R(()=>{"use strict";cTt=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;o(Ah,"formatSpecifier");Ah.prototype=D3.prototype;o(D3,"FormatSpecifier");D3.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type}});function a_(e){t:for(var t=e.length,r=1,n=-1,i;r0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var SW=R(()=>{"use strict";o(a_,"default")});function o_(e,t){var r=pd(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(s_=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,s=n.length;return a===s?n:a>s?n+new Array(a-s+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+pd(e,Math.max(0,t+a-1))[0]}var s_,l_=R(()=>{"use strict";Wy();o(o_,"default")});function R3(e,t){var r=pd(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}var AW=R(()=>{"use strict";Wy();o(R3,"default")});var c_,_W=R(()=>{"use strict";Wy();l_();AW();c_={"%":o((e,t)=>(e*100).toFixed(t),"%"),b:o(e=>Math.round(e).toString(2),"b"),c:o(e=>e+"","c"),d:e_,e:o((e,t)=>e.toExponential(t),"e"),f:o((e,t)=>e.toFixed(t),"f"),g:o((e,t)=>e.toPrecision(t),"g"),o:o(e=>Math.round(e).toString(8),"o"),p:o((e,t)=>R3(e*100,t),"p"),r:R3,s:o_,X:o(e=>Math.round(e).toString(16).toUpperCase(),"X"),x:o(e=>Math.round(e).toString(16),"x")}});function N3(e){return e}var LW=R(()=>{"use strict";o(N3,"default")});function u_(e){var t=e.grouping===void 0||e.thousands===void 0?N3:r_(DW.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?N3:n_(DW.call(e.numerals,String)),s=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"\u2212":e.minus+"",u=e.nan===void 0?"NaN":e.nan+"";function h(d){d=Ah(d);var p=d.fill,m=d.align,g=d.sign,y=d.symbol,v=d.zero,x=d.width,b=d.comma,w=d.precision,S=d.trim,T=d.type;T==="n"?(b=!0,T="g"):c_[T]||(w===void 0&&(w=12),S=!0,T="g"),(v||p==="0"&&m==="=")&&(v=!0,p="0",m="=");var E=y==="$"?r:y==="#"&&/[boxX]/.test(T)?"0"+T.toLowerCase():"",_=y==="$"?n:/[%p]/.test(T)?s:"",A=c_[T],L=/[defgprs%]/.test(T);w=w===void 0?6:/[gprs]/.test(T)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function M(N){var k=E,I=_,C,O,D;if(T==="c")I=A(N)+I,N="";else{N=+N;var P=N<0||1/N<0;if(N=isNaN(N)?u:A(Math.abs(N),w),S&&(N=a_(N)),P&&+N==0&&g!=="+"&&(P=!1),k=(P?g==="("?g:l:g==="-"||g==="("?"":g)+k,I=(T==="s"?RW[8+s_/3]:"")+I+(P&&g==="("?")":""),L){for(C=-1,O=N.length;++CD||D>57){I=(D===46?i+N.slice(C+1):N.slice(C))+I,N=N.slice(0,C);break}}}b&&!v&&(N=t(N,1/0));var F=k.length+N.length+I.length,B=F>1)+k+N+I+B.slice(F);break;default:N=B+k+N+I;break}return a(N)}return o(M,"format"),M.toString=function(){return d+""},M}o(h,"newFormat");function f(d,p){var m=h((d=Ah(d),d.type="f",d)),g=Math.max(-8,Math.min(8,Math.floor(bl(p)/3)))*3,y=Math.pow(10,-g),v=RW[8+g/3];return function(x){return m(y*x)+v}}return o(f,"formatPrefix"),{format:h,formatPrefix:f}}var DW,RW,NW=R(()=>{"use strict";Yy();EW();CW();i_();SW();_W();l_();LW();DW=Array.prototype.map,RW=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];o(u_,"default")});function h_(e){return M3=u_(e),I3=M3.format,O3=M3.formatPrefix,M3}var M3,I3,O3,MW=R(()=>{"use strict";NW();h_({thousands:",",grouping:[3],currency:["$",""]});o(h_,"defaultLocale")});function P3(e){return Math.max(0,-bl(Math.abs(e)))}var IW=R(()=>{"use strict";Yy();o(P3,"default")});function B3(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(bl(t)/3)))*3-bl(Math.abs(e)))}var OW=R(()=>{"use strict";Yy();o(B3,"default")});function F3(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,bl(t)-bl(e))+1}var PW=R(()=>{"use strict";Yy();o(F3,"default")});var f_=R(()=>{"use strict";MW();i_();IW();OW();PW()});var BW=R(()=>{"use strict"});var FW=R(()=>{"use strict"});var zW=R(()=>{"use strict"});var $W=R(()=>{"use strict"});function _h(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}var qy=R(()=>{"use strict";o(_h,"initRange")});function bu(){var e=new Lp,t=[],r=[],n=d_;function i(a){let s=e.get(a);if(s===void 0){if(n!==d_)return n;e.set(a,s=t.push(a)-1)}return r[s%r.length]}return o(i,"scale"),i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new Lp;for(let s of a)e.has(s)||e.set(s,t.push(s)-1);return i},i.range=function(a){return arguments.length?(r=Array.from(a),i):r.slice()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return bu(t,r).unknown(n)},_h.apply(i,arguments),i}var d_,p_=R(()=>{"use strict";wh();qy();d_=Symbol("implicit");o(bu,"ordinal")});function Up(){var e=bu().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,s,l=!1,u=0,h=0,f=.5;delete e.unknown;function d(){var p=t().length,m=i{"use strict";wh();qy();p_();o(Up,"band")});function m_(e){return function(){return e}}var VW=R(()=>{"use strict";o(m_,"constants")});function g_(e){return+e}var UW=R(()=>{"use strict";o(g_,"number")});function Hp(e){return e}function y_(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:m_(isNaN(t)?NaN:.5)}function uTt(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function hTt(e,t,r){var n=e[0],i=e[1],a=t[0],s=t[1];return i2?fTt:hTt,u=h=null,d}o(f,"rescale");function d(p){return p==null||isNaN(p=+p)?a:(u||(u=l(e.map(n),t,r)))(n(s(p)))}return o(d,"scale"),d.invert=function(p){return s(i((h||(h=l(t,e.map(n),Zi)))(p)))},d.domain=function(p){return arguments.length?(e=Array.from(p,g_),f()):e.slice()},d.range=function(p){return arguments.length?(t=Array.from(p),f()):t.slice()},d.rangeRound=function(p){return t=Array.from(p),r=m3,f()},d.clamp=function(p){return arguments.length?(s=p?!0:Hp,f()):s!==Hp},d.interpolate=function(p){return arguments.length?(r=p,f()):r},d.unknown=function(p){return arguments.length?(a=p,d):a},function(p,m){return n=p,i=m,f()}}function Xy(){return dTt()(Hp,Hp)}var HW,v_=R(()=>{"use strict";wh();$p();VW();UW();HW=[0,1];o(Hp,"identity");o(y_,"normalize");o(uTt,"clamper");o(hTt,"bimap");o(fTt,"polymap");o(z3,"copy");o(dTt,"transformer");o(Xy,"continuous")});function x_(e,t,r,n){var i=Dp(e,t,r),a;switch(n=Ah(n??",f"),n.type){case"s":{var s=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=B3(i,s))&&(n.precision=a),O3(n,s)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=F3(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=P3(i))&&(n.precision=a-(n.type==="%")*2);break}}return I3(n)}var WW=R(()=>{"use strict";wh();f_();o(x_,"tickFormat")});function pTt(e){var t=e.domain;return e.ticks=function(r){var n=t();return Z4(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return x_(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,a=n.length-1,s=n[i],l=n[a],u,h,f=10;for(l0;){if(h=ky(s,l,r),h===u)return n[i]=s,n[a]=l,t(n);if(h>0)s=Math.floor(s/h)*h,l=Math.ceil(l/h)*h;else if(h<0)s=Math.ceil(s*h)/h,l=Math.floor(l*h)/h;else break;u=h}return e},e}function wl(){var e=Xy();return e.copy=function(){return z3(e,wl())},_h.apply(e,arguments),pTt(e)}var YW=R(()=>{"use strict";wh();v_();qy();WW();o(pTt,"linearish");o(wl,"linear")});function b_(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],a=e[n],s;return a{"use strict";o(b_,"nice")});function vn(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return o(i,"interval"),i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{let s=i(a),l=i.ceil(a);return a-s(t(a=new Date(+a),s==null?1:Math.floor(s)),a),i.range=(a,s,l)=>{let u=[];if(a=i.ceil(a),l=l==null?1:Math.floor(l),!(a0))return u;let h;do u.push(h=new Date(+a)),t(a,l),e(a);while(hvn(s=>{if(s>=s)for(;e(s),!a(s);)s.setTime(s-1)},(s,l)=>{if(s>=s)if(l<0)for(;++l<=0;)for(;t(s,-1),!a(s););else for(;--l>=0;)for(;t(s,1),!a(s););}),r&&(i.count=(a,s)=>(w_.setTime(+a),T_.setTime(+s),e(w_),e(T_),Math.floor(r(w_,T_))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?s=>n(s)%a===0:s=>i.count(0,s)%a===0):i)),i}var w_,T_,wu=R(()=>{"use strict";w_=new Date,T_=new Date;o(vn,"timeInterval")});var pc,XW,k_=R(()=>{"use strict";wu();pc=vn(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);pc.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?vn(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):pc);XW=pc.range});var Zs,jW,E_=R(()=>{"use strict";wu();Zs=vn(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*1e3)},(e,t)=>(t-e)/1e3,e=>e.getUTCSeconds()),jW=Zs.range});var Tu,mTt,$3,gTt,C_=R(()=>{"use strict";wu();Tu=vn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*1e3)},(e,t)=>{e.setTime(+e+t*6e4)},(e,t)=>(t-e)/6e4,e=>e.getMinutes()),mTt=Tu.range,$3=vn(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*6e4)},(e,t)=>(t-e)/6e4,e=>e.getUTCMinutes()),gTt=$3.range});var ku,yTt,G3,vTt,S_=R(()=>{"use strict";wu();ku=vn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*1e3-e.getMinutes()*6e4)},(e,t)=>{e.setTime(+e+t*36e5)},(e,t)=>(t-e)/36e5,e=>e.getHours()),yTt=ku.range,G3=vn(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*36e5)},(e,t)=>(t-e)/36e5,e=>e.getUTCHours()),vTt=G3.range});var Mo,xTt,Ky,bTt,V3,wTt,A_=R(()=>{"use strict";wu();Mo=vn(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/864e5,e=>e.getDate()-1),xTt=Mo.range,Ky=vn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/864e5,e=>e.getUTCDate()-1),bTt=Ky.range,V3=vn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/864e5,e=>Math.floor(e/864e5)),wTt=V3.range});function yd(e){return vn(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/6048e5)}function vd(e){return vn(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/6048e5)}var Tl,Lh,U3,H3,gc,W3,Y3,QW,TTt,kTt,ETt,CTt,STt,ATt,xd,Wp,ZW,JW,Dh,tY,eY,rY,_Tt,LTt,DTt,RTt,NTt,MTt,__=R(()=>{"use strict";wu();o(yd,"timeWeekday");Tl=yd(0),Lh=yd(1),U3=yd(2),H3=yd(3),gc=yd(4),W3=yd(5),Y3=yd(6),QW=Tl.range,TTt=Lh.range,kTt=U3.range,ETt=H3.range,CTt=gc.range,STt=W3.range,ATt=Y3.range;o(vd,"utcWeekday");xd=vd(0),Wp=vd(1),ZW=vd(2),JW=vd(3),Dh=vd(4),tY=vd(5),eY=vd(6),rY=xd.range,_Tt=Wp.range,LTt=ZW.range,DTt=JW.range,RTt=Dh.range,NTt=tY.range,MTt=eY.range});var Eu,ITt,q3,OTt,L_=R(()=>{"use strict";wu();Eu=vn(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth()),ITt=Eu.range,q3=vn(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth()),OTt=q3.range});var Js,PTt,kl,BTt,D_=R(()=>{"use strict";wu();Js=vn(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Js.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:vn(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});PTt=Js.range,kl=vn(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());kl.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:vn(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});BTt=kl.range});function iY(e,t,r,n,i,a){let s=[[Zs,1,1e3],[Zs,5,5*1e3],[Zs,15,15*1e3],[Zs,30,30*1e3],[a,1,6e4],[a,5,5*6e4],[a,15,15*6e4],[a,30,30*6e4],[i,1,36e5],[i,3,3*36e5],[i,6,6*36e5],[i,12,12*36e5],[n,1,864e5],[n,2,2*864e5],[r,1,6048e5],[t,1,2592e6],[t,3,3*2592e6],[e,1,31536e6]];function l(h,f,d){let p=fv).right(s,p);if(m===s.length)return e.every(Dp(h/31536e6,f/31536e6,d));if(m===0)return pc.every(Math.max(Dp(h,f,d),1));let[g,y]=s[p/s[m-1][2]{"use strict";wh();k_();E_();C_();S_();A_();__();L_();D_();o(iY,"ticker");[zTt,$Tt]=iY(kl,q3,xd,V3,G3,$3),[R_,N_]=iY(Js,Eu,Tl,Mo,ku,Tu)});var X3=R(()=>{"use strict";k_();E_();C_();S_();A_();__();L_();D_();aY()});function M_(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function I_(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Qy(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function O_(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,s=e.shortDays,l=e.months,u=e.shortMonths,h=Zy(i),f=Jy(i),d=Zy(a),p=Jy(a),m=Zy(s),g=Jy(s),y=Zy(l),v=Jy(l),x=Zy(u),b=Jy(u),w={a:P,A:F,b:B,B:G,c:null,d:hY,e:hY,f:ckt,g:xkt,G:wkt,H:skt,I:okt,j:lkt,L:gY,m:ukt,M:hkt,p:z,q:W,Q:pY,s:mY,S:fkt,u:dkt,U:pkt,V:mkt,w:gkt,W:ykt,x:null,X:null,y:vkt,Y:bkt,Z:Tkt,"%":dY},S={a:Q,A:j,b:at,B:X,c:null,d:fY,e:fY,f:Skt,g:Pkt,G:Fkt,H:kkt,I:Ekt,j:Ckt,L:vY,m:Akt,M:_kt,p:J,q:Z,Q:pY,s:mY,S:Lkt,u:Dkt,U:Rkt,V:Nkt,w:Mkt,W:Ikt,x:null,X:null,y:Okt,Y:Bkt,Z:zkt,"%":dY},T={a:M,A:N,b:k,B:I,c:C,d:cY,e:cY,f:rkt,g:lY,G:oY,H:uY,I:uY,j:ZTt,L:ekt,m:QTt,M:JTt,p:L,q:KTt,Q:ikt,s:akt,S:tkt,u:WTt,U:YTt,V:qTt,w:HTt,W:XTt,x:O,X:D,y:lY,Y:oY,Z:jTt,"%":nkt};w.x=E(r,w),w.X=E(n,w),w.c=E(t,w),S.x=E(r,S),S.X=E(n,S),S.c=E(t,S);function E(H,q){return function(K){var ot=[],ct=-1,ut=0,et=H.length,Mt,it,wt;for(K instanceof Date||(K=new Date(+K));++ct53)return null;"w"in ot||(ot.w=1),"Z"in ot?(ut=I_(Qy(ot.y,0,1)),et=ut.getUTCDay(),ut=et>4||et===0?Wp.ceil(ut):Wp(ut),ut=Ky.offset(ut,(ot.V-1)*7),ot.y=ut.getUTCFullYear(),ot.m=ut.getUTCMonth(),ot.d=ut.getUTCDate()+(ot.w+6)%7):(ut=M_(Qy(ot.y,0,1)),et=ut.getDay(),ut=et>4||et===0?Lh.ceil(ut):Lh(ut),ut=Mo.offset(ut,(ot.V-1)*7),ot.y=ut.getFullYear(),ot.m=ut.getMonth(),ot.d=ut.getDate()+(ot.w+6)%7)}else("W"in ot||"U"in ot)&&("w"in ot||(ot.w="u"in ot?ot.u%7:"W"in ot?1:0),et="Z"in ot?I_(Qy(ot.y,0,1)).getUTCDay():M_(Qy(ot.y,0,1)).getDay(),ot.m=0,ot.d="W"in ot?(ot.w+6)%7+ot.W*7-(et+5)%7:ot.w+ot.U*7-(et+6)%7);return"Z"in ot?(ot.H+=ot.Z/100|0,ot.M+=ot.Z%100,I_(ot)):M_(ot)}}o(_,"newParse");function A(H,q,K,ot){for(var ct=0,ut=q.length,et=K.length,Mt,it;ct=et)return-1;if(Mt=q.charCodeAt(ct++),Mt===37){if(Mt=q.charAt(ct++),it=T[Mt in sY?q.charAt(ct++):Mt],!it||(ot=it(H,K,ot))<0)return-1}else if(Mt!=K.charCodeAt(ot++))return-1}return ot}o(A,"parseSpecifier");function L(H,q,K){var ot=h.exec(q.slice(K));return ot?(H.p=f.get(ot[0].toLowerCase()),K+ot[0].length):-1}o(L,"parsePeriod");function M(H,q,K){var ot=m.exec(q.slice(K));return ot?(H.w=g.get(ot[0].toLowerCase()),K+ot[0].length):-1}o(M,"parseShortWeekday");function N(H,q,K){var ot=d.exec(q.slice(K));return ot?(H.w=p.get(ot[0].toLowerCase()),K+ot[0].length):-1}o(N,"parseWeekday");function k(H,q,K){var ot=x.exec(q.slice(K));return ot?(H.m=b.get(ot[0].toLowerCase()),K+ot[0].length):-1}o(k,"parseShortMonth");function I(H,q,K){var ot=y.exec(q.slice(K));return ot?(H.m=v.get(ot[0].toLowerCase()),K+ot[0].length):-1}o(I,"parseMonth");function C(H,q,K){return A(H,t,q,K)}o(C,"parseLocaleDateTime");function O(H,q,K){return A(H,r,q,K)}o(O,"parseLocaleDate");function D(H,q,K){return A(H,n,q,K)}o(D,"parseLocaleTime");function P(H){return s[H.getDay()]}o(P,"formatShortWeekday");function F(H){return a[H.getDay()]}o(F,"formatWeekday");function B(H){return u[H.getMonth()]}o(B,"formatShortMonth");function G(H){return l[H.getMonth()]}o(G,"formatMonth");function z(H){return i[+(H.getHours()>=12)]}o(z,"formatPeriod");function W(H){return 1+~~(H.getMonth()/3)}o(W,"formatQuarter");function Q(H){return s[H.getUTCDay()]}o(Q,"formatUTCShortWeekday");function j(H){return a[H.getUTCDay()]}o(j,"formatUTCWeekday");function at(H){return u[H.getUTCMonth()]}o(at,"formatUTCShortMonth");function X(H){return l[H.getUTCMonth()]}o(X,"formatUTCMonth");function J(H){return i[+(H.getUTCHours()>=12)]}o(J,"formatUTCPeriod");function Z(H){return 1+~~(H.getUTCMonth()/3)}return o(Z,"formatUTCQuarter"),{format:o(function(H){var q=E(H+="",w);return q.toString=function(){return H},q},"format"),parse:o(function(H){var q=_(H+="",!1);return q.toString=function(){return H},q},"parse"),utcFormat:o(function(H){var q=E(H+="",S);return q.toString=function(){return H},q},"utcFormat"),utcParse:o(function(H){var q=_(H+="",!0);return q.toString=function(){return H},q},"utcParse")}}function Hr(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a[t.toLowerCase(),r]))}function HTt(e,t,r){var n=Ji.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function WTt(e,t,r){var n=Ji.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function YTt(e,t,r){var n=Ji.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function qTt(e,t,r){var n=Ji.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function XTt(e,t,r){var n=Ji.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function oY(e,t,r){var n=Ji.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function lY(e,t,r){var n=Ji.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function jTt(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function KTt(e,t,r){var n=Ji.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function QTt(e,t,r){var n=Ji.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function cY(e,t,r){var n=Ji.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function ZTt(e,t,r){var n=Ji.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function uY(e,t,r){var n=Ji.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function JTt(e,t,r){var n=Ji.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function tkt(e,t,r){var n=Ji.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function ekt(e,t,r){var n=Ji.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function rkt(e,t,r){var n=Ji.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function nkt(e,t,r){var n=GTt.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function ikt(e,t,r){var n=Ji.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function akt(e,t,r){var n=Ji.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function hY(e,t){return Hr(e.getDate(),t,2)}function skt(e,t){return Hr(e.getHours(),t,2)}function okt(e,t){return Hr(e.getHours()%12||12,t,2)}function lkt(e,t){return Hr(1+Mo.count(Js(e),e),t,3)}function gY(e,t){return Hr(e.getMilliseconds(),t,3)}function ckt(e,t){return gY(e,t)+"000"}function ukt(e,t){return Hr(e.getMonth()+1,t,2)}function hkt(e,t){return Hr(e.getMinutes(),t,2)}function fkt(e,t){return Hr(e.getSeconds(),t,2)}function dkt(e){var t=e.getDay();return t===0?7:t}function pkt(e,t){return Hr(Tl.count(Js(e)-1,e),t,2)}function yY(e){var t=e.getDay();return t>=4||t===0?gc(e):gc.ceil(e)}function mkt(e,t){return e=yY(e),Hr(gc.count(Js(e),e)+(Js(e).getDay()===4),t,2)}function gkt(e){return e.getDay()}function ykt(e,t){return Hr(Lh.count(Js(e)-1,e),t,2)}function vkt(e,t){return Hr(e.getFullYear()%100,t,2)}function xkt(e,t){return e=yY(e),Hr(e.getFullYear()%100,t,2)}function bkt(e,t){return Hr(e.getFullYear()%1e4,t,4)}function wkt(e,t){var r=e.getDay();return e=r>=4||r===0?gc(e):gc.ceil(e),Hr(e.getFullYear()%1e4,t,4)}function Tkt(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Hr(t/60|0,"0",2)+Hr(t%60,"0",2)}function fY(e,t){return Hr(e.getUTCDate(),t,2)}function kkt(e,t){return Hr(e.getUTCHours(),t,2)}function Ekt(e,t){return Hr(e.getUTCHours()%12||12,t,2)}function Ckt(e,t){return Hr(1+Ky.count(kl(e),e),t,3)}function vY(e,t){return Hr(e.getUTCMilliseconds(),t,3)}function Skt(e,t){return vY(e,t)+"000"}function Akt(e,t){return Hr(e.getUTCMonth()+1,t,2)}function _kt(e,t){return Hr(e.getUTCMinutes(),t,2)}function Lkt(e,t){return Hr(e.getUTCSeconds(),t,2)}function Dkt(e){var t=e.getUTCDay();return t===0?7:t}function Rkt(e,t){return Hr(xd.count(kl(e)-1,e),t,2)}function xY(e){var t=e.getUTCDay();return t>=4||t===0?Dh(e):Dh.ceil(e)}function Nkt(e,t){return e=xY(e),Hr(Dh.count(kl(e),e)+(kl(e).getUTCDay()===4),t,2)}function Mkt(e){return e.getUTCDay()}function Ikt(e,t){return Hr(Wp.count(kl(e)-1,e),t,2)}function Okt(e,t){return Hr(e.getUTCFullYear()%100,t,2)}function Pkt(e,t){return e=xY(e),Hr(e.getUTCFullYear()%100,t,2)}function Bkt(e,t){return Hr(e.getUTCFullYear()%1e4,t,4)}function Fkt(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Dh(e):Dh.ceil(e),Hr(e.getUTCFullYear()%1e4,t,4)}function zkt(){return"+0000"}function dY(){return"%"}function pY(e){return+e}function mY(e){return Math.floor(+e/1e3)}var sY,Ji,GTt,VTt,bY=R(()=>{"use strict";X3();o(M_,"localDate");o(I_,"utcDate");o(Qy,"newDate");o(O_,"formatLocale");sY={"-":"",_:" ",0:"0"},Ji=/^\s*\d+/,GTt=/^%/,VTt=/[\\^$*+?|[\]().{}]/g;o(Hr,"pad");o(UTt,"requote");o(Zy,"formatRe");o(Jy,"formatLookup");o(HTt,"parseWeekdayNumberSunday");o(WTt,"parseWeekdayNumberMonday");o(YTt,"parseWeekNumberSunday");o(qTt,"parseWeekNumberISO");o(XTt,"parseWeekNumberMonday");o(oY,"parseFullYear");o(lY,"parseYear");o(jTt,"parseZone");o(KTt,"parseQuarter");o(QTt,"parseMonthNumber");o(cY,"parseDayOfMonth");o(ZTt,"parseDayOfYear");o(uY,"parseHour24");o(JTt,"parseMinutes");o(tkt,"parseSeconds");o(ekt,"parseMilliseconds");o(rkt,"parseMicroseconds");o(nkt,"parseLiteralPercent");o(ikt,"parseUnixTimestamp");o(akt,"parseUnixTimestampSeconds");o(hY,"formatDayOfMonth");o(skt,"formatHour24");o(okt,"formatHour12");o(lkt,"formatDayOfYear");o(gY,"formatMilliseconds");o(ckt,"formatMicroseconds");o(ukt,"formatMonthNumber");o(hkt,"formatMinutes");o(fkt,"formatSeconds");o(dkt,"formatWeekdayNumberMonday");o(pkt,"formatWeekNumberSunday");o(yY,"dISO");o(mkt,"formatWeekNumberISO");o(gkt,"formatWeekdayNumberSunday");o(ykt,"formatWeekNumberMonday");o(vkt,"formatYear");o(xkt,"formatYearISO");o(bkt,"formatFullYear");o(wkt,"formatFullYearISO");o(Tkt,"formatZone");o(fY,"formatUTCDayOfMonth");o(kkt,"formatUTCHour24");o(Ekt,"formatUTCHour12");o(Ckt,"formatUTCDayOfYear");o(vY,"formatUTCMilliseconds");o(Skt,"formatUTCMicroseconds");o(Akt,"formatUTCMonthNumber");o(_kt,"formatUTCMinutes");o(Lkt,"formatUTCSeconds");o(Dkt,"formatUTCWeekdayNumberMonday");o(Rkt,"formatUTCWeekNumberSunday");o(xY,"UTCdISO");o(Nkt,"formatUTCWeekNumberISO");o(Mkt,"formatUTCWeekdayNumberSunday");o(Ikt,"formatUTCWeekNumberMonday");o(Okt,"formatUTCYear");o(Pkt,"formatUTCYearISO");o(Bkt,"formatUTCFullYear");o(Fkt,"formatUTCFullYearISO");o(zkt,"formatUTCZone");o(dY,"formatLiteralPercent");o(pY,"formatUnixTimestamp");o(mY,"formatUnixTimestampSeconds")});function P_(e){return Yp=O_(e),bd=Yp.format,wY=Yp.parse,TY=Yp.utcFormat,kY=Yp.utcParse,Yp}var Yp,bd,wY,TY,kY,EY=R(()=>{"use strict";bY();P_({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});o(P_,"defaultLocale")});var B_=R(()=>{"use strict";EY()});function $kt(e){return new Date(e)}function Gkt(e){return e instanceof Date?+e:+new Date(+e)}function CY(e,t,r,n,i,a,s,l,u,h){var f=Xy(),d=f.invert,p=f.domain,m=h(".%L"),g=h(":%S"),y=h("%I:%M"),v=h("%I %p"),x=h("%a %d"),b=h("%b %d"),w=h("%B"),S=h("%Y");function T(E){return(u(E){"use strict";X3();B_();v_();qy();qW();o($kt,"date");o(Gkt,"number");o(CY,"calendar");o(j3,"time")});var AY=R(()=>{"use strict";GW();YW();p_();SY()});function F_(e){for(var t=e.length/6|0,r=new Array(t),n=0;n{"use strict";o(F_,"default")});var z_,LY=R(()=>{"use strict";_Y();z_=F_("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab")});var DY=R(()=>{"use strict";LY()});function zn(e){return o(function(){return e},"constant")}var K3=R(()=>{"use strict";o(zn,"default")});function NY(e){return e>1?0:e<-1?qp:Math.acos(e)}function G_(e){return e>=1?tv:e<=-1?-tv:Math.asin(e)}var $_,pa,Rh,RY,Q3,El,wd,ta,qp,tv,Xp,Z3=R(()=>{"use strict";$_=Math.abs,pa=Math.atan2,Rh=Math.cos,RY=Math.max,Q3=Math.min,El=Math.sin,wd=Math.sqrt,ta=1e-12,qp=Math.PI,tv=qp/2,Xp=2*qp;o(NY,"acos");o(G_,"asin")});function J3(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{let n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new dd(t)}var V_=R(()=>{"use strict";t_();o(J3,"withPath")});function Vkt(e){return e.innerRadius}function Ukt(e){return e.outerRadius}function Hkt(e){return e.startAngle}function Wkt(e){return e.endAngle}function Ykt(e){return e&&e.padAngle}function qkt(e,t,r,n,i,a,s,l){var u=r-e,h=n-t,f=s-i,d=l-a,p=d*u-f*h;if(!(p*pC*C+O*O&&(A=M,L=N),{cx:A,cy:L,x01:-f,y01:-d,x11:A*(i/T-1),y11:L*(i/T-1)}}function Cl(){var e=Vkt,t=Ukt,r=zn(0),n=null,i=Hkt,a=Wkt,s=Ykt,l=null,u=J3(h);function h(){var f,d,p=+e.apply(this,arguments),m=+t.apply(this,arguments),g=i.apply(this,arguments)-tv,y=a.apply(this,arguments)-tv,v=$_(y-g),x=y>g;if(l||(l=f=u()),mta))l.moveTo(0,0);else if(v>Xp-ta)l.moveTo(m*Rh(g),m*El(g)),l.arc(0,0,m,g,y,!x),p>ta&&(l.moveTo(p*Rh(y),p*El(y)),l.arc(0,0,p,y,g,x));else{var b=g,w=y,S=g,T=y,E=v,_=v,A=s.apply(this,arguments)/2,L=A>ta&&(n?+n.apply(this,arguments):wd(p*p+m*m)),M=Q3($_(m-p)/2,+r.apply(this,arguments)),N=M,k=M,I,C;if(L>ta){var O=G_(L/p*El(A)),D=G_(L/m*El(A));(E-=O*2)>ta?(O*=x?1:-1,S+=O,T-=O):(E=0,S=T=(g+y)/2),(_-=D*2)>ta?(D*=x?1:-1,b+=D,w-=D):(_=0,b=w=(g+y)/2)}var P=m*Rh(b),F=m*El(b),B=p*Rh(T),G=p*El(T);if(M>ta){var z=m*Rh(w),W=m*El(w),Q=p*Rh(S),j=p*El(S),at;if(vta?k>ta?(I=t5(Q,j,P,F,m,k,x),C=t5(z,W,B,G,m,k,x),l.moveTo(I.cx+I.x01,I.cy+I.y01),kta)||!(E>ta)?l.lineTo(B,G):N>ta?(I=t5(B,G,z,W,p,-N,x),C=t5(P,F,Q,j,p,-N,x),l.lineTo(I.cx+I.x01,I.cy+I.y01),N{"use strict";K3();Z3();V_();o(Vkt,"arcInnerRadius");o(Ukt,"arcOuterRadius");o(Hkt,"arcStartAngle");o(Wkt,"arcEndAngle");o(Ykt,"arcPadAngle");o(qkt,"intersect");o(t5,"cornerTangents");o(Cl,"default")});function ev(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}var t2e,U_=R(()=>{"use strict";t2e=Array.prototype.slice;o(ev,"default")});function IY(e){this._context=e}function Cu(e){return new IY(e)}var H_=R(()=>{"use strict";o(IY,"Linear");IY.prototype={areaStart:o(function(){this._line=0},"areaStart"),areaEnd:o(function(){this._line=NaN},"areaEnd"),lineStart:o(function(){this._point=0},"lineStart"),lineEnd:o(function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:o(function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}},"point")};o(Cu,"default")});function OY(e){return e[0]}function PY(e){return e[1]}var BY=R(()=>{"use strict";o(OY,"x");o(PY,"y")});function ma(e,t){var r=zn(!0),n=null,i=Cu,a=null,s=J3(l);e=typeof e=="function"?e:e===void 0?OY:zn(e),t=typeof t=="function"?t:t===void 0?PY:zn(t);function l(u){var h,f=(u=ev(u)).length,d,p=!1,m;for(n==null&&(a=i(m=s())),h=0;h<=f;++h)!(h{"use strict";U_();K3();H_();V_();BY();o(ma,"default")});function W_(e,t){return te?1:t>=e?0:NaN}var zY=R(()=>{"use strict";o(W_,"default")});function Y_(e){return e}var $Y=R(()=>{"use strict";o(Y_,"default")});function e5(){var e=Y_,t=W_,r=null,n=zn(0),i=zn(Xp),a=zn(0);function s(l){var u,h=(l=ev(l)).length,f,d,p=0,m=new Array(h),g=new Array(h),y=+n.apply(this,arguments),v=Math.min(Xp,Math.max(-Xp,i.apply(this,arguments)-y)),x,b=Math.min(Math.abs(v)/h,a.apply(this,arguments)),w=b*(v<0?-1:1),S;for(u=0;u0&&(p+=S);for(t!=null?m.sort(function(T,E){return t(g[T],g[E])}):r!=null&&m.sort(function(T,E){return r(l[T],l[E])}),u=0,d=p?(v-h*w)/p:0;u0?S*d:0)+w,g[f]={data:l[f],index:u,value:S,startAngle:y,endAngle:x,padAngle:b};return g}return o(s,"pie"),s.value=function(l){return arguments.length?(e=typeof l=="function"?l:zn(+l),s):e},s.sortValues=function(l){return arguments.length?(t=l,r=null,s):t},s.sort=function(l){return arguments.length?(r=l,t=null,s):r},s.startAngle=function(l){return arguments.length?(n=typeof l=="function"?l:zn(+l),s):n},s.endAngle=function(l){return arguments.length?(i=typeof l=="function"?l:zn(+l),s):i},s.padAngle=function(l){return arguments.length?(a=typeof l=="function"?l:zn(+l),s):a},s}var GY=R(()=>{"use strict";U_();K3();zY();$Y();Z3();o(e5,"default")});function q_(e){return new r5(e,!0)}function X_(e){return new r5(e,!1)}var r5,VY=R(()=>{"use strict";r5=class{static{o(this,"Bump")}constructor(t,r){this._context=t,this._x=r}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(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}};o(q_,"bumpX");o(X_,"bumpY")});function to(){}var rv=R(()=>{"use strict";o(to,"default")});function jp(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function nv(e){this._context=e}function Ts(e){return new nv(e)}var iv=R(()=>{"use strict";o(jp,"point");o(nv,"Basis");nv.prototype={areaStart:o(function(){this._line=0},"areaStart"),areaEnd:o(function(){this._line=NaN},"areaEnd"),lineStart:o(function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},"lineStart"),lineEnd:o(function(){switch(this._point){case 3:jp(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},"lineEnd"),point:o(function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);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:jp(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t},"point")};o(Ts,"default")});function UY(e){this._context=e}function n5(e){return new UY(e)}var HY=R(()=>{"use strict";rv();iv();o(UY,"BasisClosed");UY.prototype={areaStart:to,areaEnd:to,lineStart:o(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},"lineStart"),lineEnd:o(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}}},"lineEnd"),point:o(function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:jp(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t},"point")};o(n5,"default")});function WY(e){this._context=e}function i5(e){return new WY(e)}var YY=R(()=>{"use strict";iv();o(WY,"BasisOpen");WY.prototype={areaStart:o(function(){this._line=0},"areaStart"),areaEnd:o(function(){this._line=NaN},"areaEnd"),lineStart:o(function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},"lineStart"),lineEnd:o(function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:o(function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:jp(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t},"point")};o(i5,"default")});function qY(e,t){this._basis=new nv(e),this._beta=t}var j_,XY=R(()=>{"use strict";iv();o(qY,"Bundle");qY.prototype={lineStart:o(function(){this._x=[],this._y=[],this._basis.lineStart()},"lineStart"),lineEnd:o(function(){var e=this._x,t=this._y,r=e.length-1;if(r>0)for(var n=e[0],i=t[0],a=e[r]-n,s=t[r]-i,l=-1,u;++l<=r;)u=l/r,this._basis.point(this._beta*e[l]+(1-this._beta)*(n+u*a),this._beta*t[l]+(1-this._beta)*(i+u*s));this._x=this._y=null,this._basis.lineEnd()},"lineEnd"),point:o(function(e,t){this._x.push(+e),this._y.push(+t)},"point")};j_=o(function e(t){function r(n){return t===1?new nv(n):new qY(n,t)}return o(r,"bundle"),r.beta=function(n){return e(+n)},r},"custom")(.85)});function Kp(e,t,r){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-r),e._x2,e._y2)}function a5(e,t){this._context=e,this._k=(1-t)/6}var K_,av=R(()=>{"use strict";o(Kp,"point");o(a5,"Cardinal");a5.prototype={areaStart:o(function(){this._line=0},"areaStart"),areaEnd:o(function(){this._line=NaN},"areaEnd"),lineStart:o(function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},"lineStart"),lineEnd:o(function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Kp(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:o(function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Kp(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t},"point")};K_=o(function e(t){function r(n){return new a5(n,t)}return o(r,"cardinal"),r.tension=function(n){return e(+n)},r},"custom")(0)});function s5(e,t){this._context=e,this._k=(1-t)/6}var Q_,Z_=R(()=>{"use strict";rv();av();o(s5,"CardinalClosed");s5.prototype={areaStart:to,areaEnd:to,lineStart:o(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},"lineStart"),lineEnd:o(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}}},"lineEnd"),point:o(function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Kp(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t},"point")};Q_=o(function e(t){function r(n){return new s5(n,t)}return o(r,"cardinal"),r.tension=function(n){return e(+n)},r},"custom")(0)});function o5(e,t){this._context=e,this._k=(1-t)/6}var J_,t9=R(()=>{"use strict";av();o(o5,"CardinalOpen");o5.prototype={areaStart:o(function(){this._line=0},"areaStart"),areaEnd:o(function(){this._line=NaN},"areaEnd"),lineStart:o(function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},"lineStart"),lineEnd:o(function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:o(function(e,t){switch(e=+e,t=+t,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:Kp(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t},"point")};J_=o(function e(t){function r(n){return new o5(n,t)}return o(r,"cardinal"),r.tension=function(n){return e(+n)},r},"custom")(0)});function sv(e,t,r){var n=e._x1,i=e._y1,a=e._x2,s=e._y2;if(e._l01_a>ta){var l=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,u=3*e._l01_a*(e._l01_a+e._l12_a);n=(n*l-e._x0*e._l12_2a+e._x2*e._l01_2a)/u,i=(i*l-e._y0*e._l12_2a+e._y2*e._l01_2a)/u}if(e._l23_a>ta){var h=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,f=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*h+e._x1*e._l23_2a-t*e._l12_2a)/f,s=(s*h+e._y1*e._l23_2a-r*e._l12_2a)/f}e._context.bezierCurveTo(n,i,a,s,e._x2,e._y2)}function jY(e,t){this._context=e,this._alpha=t}var e9,l5=R(()=>{"use strict";Z3();av();o(sv,"point");o(jY,"CatmullRom");jY.prototype={areaStart:o(function(){this._line=0},"areaStart"),areaEnd:o(function(){this._line=NaN},"areaEnd"),lineStart:o(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},"lineStart"),lineEnd:o(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},"lineEnd"),point:o(function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,n=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:sv(this,e,t);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=e,this._y0=this._y1,this._y1=this._y2,this._y2=t},"point")};e9=o(function e(t){function r(n){return t?new jY(n,t):new a5(n,0)}return o(r,"catmullRom"),r.alpha=function(n){return e(+n)},r},"custom")(.5)});function KY(e,t){this._context=e,this._alpha=t}var r9,QY=R(()=>{"use strict";Z_();rv();l5();o(KY,"CatmullRomClosed");KY.prototype={areaStart:to,areaEnd:to,lineStart:o(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},"lineStart"),lineEnd:o(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}}},"lineEnd"),point:o(function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,n=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:sv(this,e,t);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=e,this._y0=this._y1,this._y1=this._y2,this._y2=t},"point")};r9=o(function e(t){function r(n){return t?new KY(n,t):new s5(n,0)}return o(r,"catmullRom"),r.alpha=function(n){return e(+n)},r},"custom")(.5)});function ZY(e,t){this._context=e,this._alpha=t}var n9,JY=R(()=>{"use strict";t9();l5();o(ZY,"CatmullRomOpen");ZY.prototype={areaStart:o(function(){this._line=0},"areaStart"),areaEnd:o(function(){this._line=NaN},"areaEnd"),lineStart:o(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},"lineStart"),lineEnd:o(function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:o(function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,n=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,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:sv(this,e,t);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=e,this._y0=this._y1,this._y1=this._y2,this._y2=t},"point")};n9=o(function e(t){function r(n){return t?new ZY(n,t):new o5(n,0)}return o(r,"catmullRom"),r.alpha=function(n){return e(+n)},r},"custom")(.5)});function tq(e){this._context=e}function c5(e){return new tq(e)}var eq=R(()=>{"use strict";rv();o(tq,"LinearClosed");tq.prototype={areaStart:to,areaEnd:to,lineStart:o(function(){this._point=0},"lineStart"),lineEnd:o(function(){this._point&&this._context.closePath()},"lineEnd"),point:o(function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))},"point")};o(c5,"default")});function rq(e){return e<0?-1:1}function nq(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),s=(r-e._y1)/(i||n<0&&-0),l=(a*i+s*n)/(n+i);return(rq(a)+rq(s))*Math.min(Math.abs(a),Math.abs(s),.5*Math.abs(l))||0}function iq(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function i9(e,t,r){var n=e._x0,i=e._y0,a=e._x1,s=e._y1,l=(a-n)/3;e._context.bezierCurveTo(n+l,i+l*t,a-l,s-l*r,a,s)}function u5(e){this._context=e}function aq(e){this._context=new sq(e)}function sq(e){this._context=e}function a9(e){return new u5(e)}function s9(e){return new aq(e)}var oq=R(()=>{"use strict";o(rq,"sign");o(nq,"slope3");o(iq,"slope2");o(i9,"point");o(u5,"MonotoneX");u5.prototype={areaStart:o(function(){this._line=0},"areaStart"),areaEnd:o(function(){this._line=NaN},"areaEnd"),lineStart:o(function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},"lineStart"),lineEnd:o(function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:i9(this,this._t0,iq(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:o(function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,i9(this,iq(this,r=nq(this,e,t)),r);break;default:i9(this,this._t0,r=nq(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}},"point")};o(aq,"MonotoneY");(aq.prototype=Object.create(u5.prototype)).point=function(e,t){u5.prototype.point.call(this,t,e)};o(sq,"ReflectContext");sq.prototype={moveTo:o(function(e,t){this._context.moveTo(t,e)},"moveTo"),closePath:o(function(){this._context.closePath()},"closePath"),lineTo:o(function(e,t){this._context.lineTo(t,e)},"lineTo"),bezierCurveTo:o(function(e,t,r,n,i,a){this._context.bezierCurveTo(t,e,n,r,a,i)},"bezierCurveTo")};o(a9,"monotoneX");o(s9,"monotoneY")});function cq(e){this._context=e}function lq(e){var t,r=e.length-1,n,i=new Array(r),a=new Array(r),s=new Array(r);for(i[0]=0,a[0]=2,s[0]=e[0]+2*e[1],t=1;t=0;--t)i[t]=(s[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t{"use strict";o(cq,"Natural");cq.prototype={areaStart:o(function(){this._line=0},"areaStart"),areaEnd:o(function(){this._line=NaN},"areaEnd"),lineStart:o(function(){this._x=[],this._y=[]},"lineStart"),lineEnd:o(function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=lq(e),i=lq(t),a=0,s=1;s{"use strict";o(f5,"Step");f5.prototype={areaStart:o(function(){this._line=0},"areaStart"),areaEnd:o(function(){this._line=NaN},"areaEnd"),lineStart:o(function(){this._x=this._y=NaN,this._point=0},"lineStart"),lineEnd:o(function(){0=0&&(this._t=1-this._t,this._line=1-this._line)},"lineEnd"),point:o(function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t},"point")};o(d5,"default");o(o9,"stepBefore");o(l9,"stepAfter")});var fq=R(()=>{"use strict";MY();FY();GY();HY();YY();iv();VY();XY();Z_();t9();av();QY();JY();l5();eq();H_();oq();uq();hq()});var dq=R(()=>{"use strict"});var pq=R(()=>{"use strict"});function Nh(e,t,r){this.k=e,this.x=t,this.y=r}function u9(e){for(;!e.__zoom;)if(!(e=e.parentNode))return c9;return e.__zoom}var c9,h9=R(()=>{"use strict";o(Nh,"Transform");Nh.prototype={constructor:Nh,scale:o(function(e){return e===1?this:new Nh(this.k*e,this.x,this.y)},"scale"),translate:o(function(e,t){return e===0&t===0?this:new Nh(this.k,this.x+this.k*e,this.y+this.k*t)},"translate"),apply:o(function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},"apply"),applyX:o(function(e){return e*this.k+this.x},"applyX"),applyY:o(function(e){return e*this.k+this.y},"applyY"),invert:o(function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},"invert"),invertX:o(function(e){return(e-this.x)/this.k},"invertX"),invertY:o(function(e){return(e-this.y)/this.k},"invertY"),rescaleX:o(function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},"rescaleX"),rescaleY:o(function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},"rescaleY"),toString:o(function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"},"toString")};c9=new Nh(1,0,0);u9.prototype=Nh.prototype;o(u9,"transform")});var mq=R(()=>{"use strict"});var gq=R(()=>{"use strict";L3();dq();pq();h9();mq()});var yq=R(()=>{"use strict";gq();h9()});var ur=R(()=>{"use strict";wh();XV();dW();yW();Bp();vW();xW();oA();zU();bW();j8();wW();kW();f_();BW();FW();$p();t_();zW();TW();$W();AY();DY();yl();fq();X3();B_();k3();L3();yq()});var vq=Ti(ea=>{"use strict";Object.defineProperty(ea,"__esModule",{value:!0});ea.BLANK_URL=ea.relativeFirstCharacters=ea.whitespaceEscapeCharsRegex=ea.urlSchemeRegex=ea.ctrlCharactersRegex=ea.htmlCtrlEntityRegex=ea.htmlEntitiesRegex=ea.invalidProtocolRegex=void 0;ea.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im;ea.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g;ea.htmlCtrlEntityRegex=/&(newline|tab);/gi;ea.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim;ea.urlSchemeRegex=/^.+(:|:)/gim;ea.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g;ea.relativeFirstCharacters=[".","/"];ea.BLANK_URL="about:blank"});var Qp=Ti(p5=>{"use strict";Object.defineProperty(p5,"__esModule",{value:!0});p5.sanitizeUrl=void 0;var Ia=vq();function Xkt(e){return Ia.relativeFirstCharacters.indexOf(e[0])>-1}o(Xkt,"isRelativeUrlWithoutProtocol");function jkt(e){var t=e.replace(Ia.ctrlCharactersRegex,"");return t.replace(Ia.htmlEntitiesRegex,function(r,n){return String.fromCharCode(n)})}o(jkt,"decodeHtmlCharacters");function Kkt(e){return URL.canParse(e)}o(Kkt,"isValidUrl");function xq(e){try{return decodeURIComponent(e)}catch{return e}}o(xq,"decodeURI");function Qkt(e){if(!e)return Ia.BLANK_URL;var t,r=xq(e.trim());do r=jkt(r).replace(Ia.htmlCtrlEntityRegex,"").replace(Ia.ctrlCharactersRegex,"").replace(Ia.whitespaceEscapeCharsRegex,"").trim(),r=xq(r),t=r.match(Ia.ctrlCharactersRegex)||r.match(Ia.htmlEntitiesRegex)||r.match(Ia.htmlCtrlEntityRegex)||r.match(Ia.whitespaceEscapeCharsRegex);while(t&&t.length>0);var n=r;if(!n)return Ia.BLANK_URL;if(Xkt(n))return n;var i=n.trimStart(),a=i.match(Ia.urlSchemeRegex);if(!a)return n;var s=a[0].toLowerCase().trim();if(Ia.invalidProtocolRegex.test(s))return Ia.BLANK_URL;var l=i.replace(/\\/g,"/");if(s==="mailto:"||s.includes("://"))return l;if(s==="http:"||s==="https:"){if(!Kkt(l))return Ia.BLANK_URL;var u=new URL(l);return u.protocol=u.protocol.toLowerCase(),u.hostname=u.hostname.toLowerCase(),u.toString()}return l}o(Qkt,"sanitizeUrl");p5.sanitizeUrl=Qkt});var f9,Td,m5,bq,wq,Tq,Sl,ov,lv=R(()=>{"use strict";f9=Qi(Qp(),1);hr();Td=o((e,t)=>{let r=e.append("rect");if(r.attr("x",t.x),r.attr("y",t.y),r.attr("fill",t.fill),r.attr("stroke",t.stroke),r.attr("width",t.width),r.attr("height",t.height),t.name&&r.attr("name",t.name),t.rx&&r.attr("rx",t.rx),t.ry&&r.attr("ry",t.ry),t.attrs!==void 0)for(let n in t.attrs)r.attr(n,t.attrs[n]);return t.class&&r.attr("class",t.class),r},"drawRect"),m5=o((e,t)=>{let r={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};Td(e,r).lower()},"drawBackgroundRect"),bq=o((e,t)=>{let r=t.text.replace(rd," "),n=e.append("text");n.attr("x",t.x),n.attr("y",t.y),n.attr("class","legend"),n.style("text-anchor",t.anchor),t.class&&n.attr("class",t.class);let i=n.append("tspan");return i.attr("x",t.x+t.textMargin*2),i.text(r),n},"drawText"),wq=o((e,t,r,n)=>{let i=e.append("image");i.attr("x",t),i.attr("y",r);let a=(0,f9.sanitizeUrl)(n);i.attr("xlink:href",a)},"drawImage"),Tq=o((e,t,r,n)=>{let i=e.append("use");i.attr("x",t),i.attr("y",r);let a=(0,f9.sanitizeUrl)(n);i.attr("xlink:href",`#${a}`)},"drawEmbeddedImage"),Sl=o(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),ov=o(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj")});var kq,d9,Eq,Zkt,Jkt,tEt,eEt,rEt,nEt,iEt,aEt,sEt,oEt,lEt,cEt,Su,Al,Cq=R(()=>{"use strict";hr();lv();kq=Qi(Qp(),1),d9=o(function(e,t){return Td(e,t)},"drawRect"),Eq=o(function(e,t,r,n,i,a){let s=e.append("image");s.attr("width",t),s.attr("height",r),s.attr("x",n),s.attr("y",i);let l=a.startsWith("data:image/png;base64")?a:(0,kq.sanitizeUrl)(a);s.attr("xlink:href",l)},"drawImage"),Zkt=o((e,t,r)=>{let n=e.append("g"),i=0;for(let a of t){let s=a.textColor?a.textColor:"#444444",l=a.lineColor?a.lineColor:"#444444",u=a.offsetX?parseInt(a.offsetX):0,h=a.offsetY?parseInt(a.offsetY):0,f="";if(i===0){let p=n.append("line");p.attr("x1",a.startPoint.x),p.attr("y1",a.startPoint.y),p.attr("x2",a.endPoint.x),p.attr("y2",a.endPoint.y),p.attr("stroke-width","1"),p.attr("stroke",l),p.style("fill","none"),a.type!=="rel_b"&&p.attr("marker-end","url("+f+"#arrowhead)"),(a.type==="birel"||a.type==="rel_b")&&p.attr("marker-start","url("+f+"#arrowend)"),i=-1}else{let p=n.append("path");p.attr("fill","none").attr("stroke-width","1").attr("stroke",l).attr("d","Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx",a.startPoint.x).replaceAll("starty",a.startPoint.y).replaceAll("controlx",a.startPoint.x+(a.endPoint.x-a.startPoint.x)/2-(a.endPoint.x-a.startPoint.x)/4).replaceAll("controly",a.startPoint.y+(a.endPoint.y-a.startPoint.y)/2).replaceAll("stopx",a.endPoint.x).replaceAll("stopy",a.endPoint.y)),a.type!=="rel_b"&&p.attr("marker-end","url("+f+"#arrowhead)"),(a.type==="birel"||a.type==="rel_b")&&p.attr("marker-start","url("+f+"#arrowend)")}let d=r.messageFont();Su(r)(a.label.text,n,Math.min(a.startPoint.x,a.endPoint.x)+Math.abs(a.endPoint.x-a.startPoint.x)/2+u,Math.min(a.startPoint.y,a.endPoint.y)+Math.abs(a.endPoint.y-a.startPoint.y)/2+h,a.label.width,a.label.height,{fill:s},d),a.techn&&a.techn.text!==""&&(d=r.messageFont(),Su(r)("["+a.techn.text+"]",n,Math.min(a.startPoint.x,a.endPoint.x)+Math.abs(a.endPoint.x-a.startPoint.x)/2+u,Math.min(a.startPoint.y,a.endPoint.y)+Math.abs(a.endPoint.y-a.startPoint.y)/2+r.messageFontSize+5+h,Math.max(a.label.width,a.techn.width),a.techn.height,{fill:s,"font-style":"italic"},d))}},"drawRels"),Jkt=o(function(e,t,r){let n=e.append("g"),i=t.bgColor?t.bgColor:"none",a=t.borderColor?t.borderColor:"#444444",s=t.fontColor?t.fontColor:"black",l={"stroke-width":1,"stroke-dasharray":"7.0,7.0"};t.nodeType&&(l={"stroke-width":1});let u={x:t.x,y:t.y,fill:i,stroke:a,width:t.width,height:t.height,rx:2.5,ry:2.5,attrs:l};d9(n,u);let h=r.boundaryFont();h.fontWeight="bold",h.fontSize=h.fontSize+2,h.fontColor=s,Su(r)(t.label.text,n,t.x,t.y+t.label.Y,t.width,t.height,{fill:"#444444"},h),t.type&&t.type.text!==""&&(h=r.boundaryFont(),h.fontColor=s,Su(r)(t.type.text,n,t.x,t.y+t.type.Y,t.width,t.height,{fill:"#444444"},h)),t.descr&&t.descr.text!==""&&(h=r.boundaryFont(),h.fontSize=h.fontSize-2,h.fontColor=s,Su(r)(t.descr.text,n,t.x,t.y+t.descr.Y,t.width,t.height,{fill:"#444444"},h))},"drawBoundary"),tEt=o(function(e,t,r){let n=t.bgColor?t.bgColor:r[t.typeC4Shape.text+"_bg_color"],i=t.borderColor?t.borderColor:r[t.typeC4Shape.text+"_border_color"],a=t.fontColor?t.fontColor:"#FFFFFF",s="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";switch(t.typeC4Shape.text){case"person":s="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";break;case"external_person":s="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAB6ElEQVR4Xu2YLY+EMBCG9+dWr0aj0Wg0Go1Go0+j8Xdv2uTCvv1gpt0ebHKPuhDaeW4605Z9mJvx4AdXUyTUdd08z+u6flmWZRnHsWkafk9DptAwDPu+f0eAYtu2PEaGWuj5fCIZrBAC2eLBAnRCsEkkxmeaJp7iDJ2QMDdHsLg8SxKFEJaAo8lAXnmuOFIhTMpxxKATebo4UiFknuNo4OniSIXQyRxEA3YsnjGCVEjVXD7yLUAqxBGUyPv/Y4W2beMgGuS7kVQIBycH0fD+oi5pezQETxdHKmQKGk1eQEYldK+jw5GxPfZ9z7Mk0Qnhf1W1m3w//EUn5BDmSZsbR44QQLBEqrBHqOrmSKaQAxdnLArCrxZcM7A7ZKs4ioRq8LFC+NpC3WCBJsvpVw5edm9iEXFuyNfxXAgSwfrFQ1c0iNda8AdejvUgnktOtJQQxmcfFzGglc5WVCj7oDgFqU18boeFSs52CUh8LE8BIVQDT1ABrB0HtgSEYlX5doJnCwv9TXocKCaKbnwhdDKPq4lf3SwU3HLq4V/+WYhHVMa/3b4IlfyikAduCkcBc7mQ3/z/Qq/cTuikhkzB12Ae/mcJC9U+Vo8Ej1gWAtgbeGgFsAMHr50BIWOLCbezvhpBFUdY6EJuJ/QDW0XoMX60zZ0AAAAASUVORK5CYII=";break}let l=e.append("g");l.attr("class","person-man");let u=Sl();switch(t.typeC4Shape.text){case"person":case"external_person":case"system":case"external_system":case"container":case"external_container":case"component":case"external_component":u.x=t.x,u.y=t.y,u.fill=n,u.width=t.width,u.height=t.height,u.stroke=i,u.rx=2.5,u.ry=2.5,u.attrs={"stroke-width":.5},d9(l,u);break;case"system_db":case"external_system_db":case"container_db":case"external_container_db":case"component_db":case"external_component_db":l.append("path").attr("fill",n).attr("stroke-width","0.5").attr("stroke",i).attr("d","Mstartx,startyc0,-10 half,-10 half,-10c0,0 half,0 half,10l0,heightc0,10 -half,10 -half,10c0,0 -half,0 -half,-10l0,-height".replaceAll("startx",t.x).replaceAll("starty",t.y).replaceAll("half",t.width/2).replaceAll("height",t.height)),l.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",i).attr("d","Mstartx,startyc0,10 half,10 half,10c0,0 half,0 half,-10".replaceAll("startx",t.x).replaceAll("starty",t.y).replaceAll("half",t.width/2));break;case"system_queue":case"external_system_queue":case"container_queue":case"external_container_queue":case"component_queue":case"external_component_queue":l.append("path").attr("fill",n).attr("stroke-width","0.5").attr("stroke",i).attr("d","Mstartx,startylwidth,0c5,0 5,half 5,halfc0,0 0,half -5,halfl-width,0c-5,0 -5,-half -5,-halfc0,0 0,-half 5,-half".replaceAll("startx",t.x).replaceAll("starty",t.y).replaceAll("width",t.width).replaceAll("half",t.height/2)),l.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",i).attr("d","Mstartx,startyc-5,0 -5,half -5,halfc0,half 5,half 5,half".replaceAll("startx",t.x+t.width).replaceAll("starty",t.y).replaceAll("half",t.height/2));break}let h=cEt(r,t.typeC4Shape.text);switch(l.append("text").attr("fill",a).attr("font-family",h.fontFamily).attr("font-size",h.fontSize-2).attr("font-style","italic").attr("lengthAdjust","spacing").attr("textLength",t.typeC4Shape.width).attr("x",t.x+t.width/2-t.typeC4Shape.width/2).attr("y",t.y+t.typeC4Shape.Y).text("<<"+t.typeC4Shape.text+">>"),t.typeC4Shape.text){case"person":case"external_person":Eq(l,48,48,t.x+t.width/2-24,t.y+t.image.Y,s);break}let f=r[t.typeC4Shape.text+"Font"]();return f.fontWeight="bold",f.fontSize=f.fontSize+2,f.fontColor=a,Su(r)(t.label.text,l,t.x,t.y+t.label.Y,t.width,t.height,{fill:a},f),f=r[t.typeC4Shape.text+"Font"](),f.fontColor=a,t.techn&&t.techn?.text!==""?Su(r)(t.techn.text,l,t.x,t.y+t.techn.Y,t.width,t.height,{fill:a,"font-style":"italic"},f):t.type&&t.type.text!==""&&Su(r)(t.type.text,l,t.x,t.y+t.type.Y,t.width,t.height,{fill:a,"font-style":"italic"},f),t.descr&&t.descr.text!==""&&(f=r.personFont(),f.fontColor=a,Su(r)(t.descr.text,l,t.x,t.y+t.descr.Y,t.width,t.height,{fill:a},f)),t.height},"drawC4Shape"),eEt=o(function(e){e.append("defs").append("symbol").attr("id","database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},"insertDatabaseIcon"),rEt=o(function(e){e.append("defs").append("symbol").attr("id","computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},"insertComputerIcon"),nEt=o(function(e){e.append("defs").append("symbol").attr("id","clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},"insertClockIcon"),iEt=o(function(e){e.append("defs").append("marker").attr("id","arrowhead").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")},"insertArrowHead"),aEt=o(function(e){e.append("defs").append("marker").attr("id","arrowend").attr("refX",1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z")},"insertArrowEnd"),sEt=o(function(e){e.append("defs").append("marker").attr("id","filled-head").attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"insertArrowFilledHead"),oEt=o(function(e){e.append("defs").append("marker").attr("id","sequencenumber").attr("refX",15).attr("refY",15).attr("markerWidth",60).attr("markerHeight",40).attr("orient","auto").append("circle").attr("cx",15).attr("cy",15).attr("r",6)},"insertDynamicNumber"),lEt=o(function(e){let r=e.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);r.append("path").attr("fill","black").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 9,2 V 6 L16,4 Z"),r.append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 0,1 L 6,7 M 6,1 L 0,7")},"insertArrowCrossHead"),cEt=o((e,t)=>({fontFamily:e[t+"FontFamily"],fontSize:e[t+"FontSize"],fontWeight:e[t+"FontWeight"]}),"getC4ShapeFont"),Su=function(){function e(i,a,s,l,u,h,f){let d=a.append("text").attr("x",s+u/2).attr("y",l+h/2+5).style("text-anchor","middle").text(i);n(d,f)}o(e,"byText");function t(i,a,s,l,u,h,f,d){let{fontSize:p,fontFamily:m,fontWeight:g}=d,y=i.split(Yt.lineBreakRegex);for(let v=0;v{"use strict";uEt=typeof global=="object"&&global&&global.Object===Object&&global,y5=uEt});var hEt,fEt,si,Io=R(()=>{"use strict";p9();hEt=typeof self=="object"&&self&&self.Object===Object&&self,fEt=y5||hEt||Function("return this")(),si=fEt});var dEt,ra,kd=R(()=>{"use strict";Io();dEt=si.Symbol,ra=dEt});function gEt(e){var t=pEt.call(e,cv),r=e[cv];try{e[cv]=void 0;var n=!0}catch{}var i=mEt.call(e);return n&&(t?e[cv]=r:delete e[cv]),i}var Sq,pEt,mEt,cv,Aq,_q=R(()=>{"use strict";kd();Sq=Object.prototype,pEt=Sq.hasOwnProperty,mEt=Sq.toString,cv=ra?ra.toStringTag:void 0;o(gEt,"getRawTag");Aq=gEt});function xEt(e){return vEt.call(e)}var yEt,vEt,Lq,Dq=R(()=>{"use strict";yEt=Object.prototype,vEt=yEt.toString;o(xEt,"objectToString");Lq=xEt});function TEt(e){return e==null?e===void 0?wEt:bEt:Rq&&Rq in Object(e)?Aq(e):Lq(e)}var bEt,wEt,Rq,ga,Au=R(()=>{"use strict";kd();_q();Dq();bEt="[object Null]",wEt="[object Undefined]",Rq=ra?ra.toStringTag:void 0;o(TEt,"baseGetTag");ga=TEt});function kEt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var xn,eo=R(()=>{"use strict";o(kEt,"isObject");xn=kEt});function _Et(e){if(!xn(e))return!1;var t=ga(e);return t==CEt||t==SEt||t==EEt||t==AEt}var EEt,CEt,SEt,AEt,Si,uv=R(()=>{"use strict";Au();eo();EEt="[object AsyncFunction]",CEt="[object Function]",SEt="[object GeneratorFunction]",AEt="[object Proxy]";o(_Et,"isFunction");Si=_Et});var LEt,v5,Nq=R(()=>{"use strict";Io();LEt=si["__core-js_shared__"],v5=LEt});function DEt(e){return!!Mq&&Mq in e}var Mq,Iq,Oq=R(()=>{"use strict";Nq();Mq=function(){var e=/[^.]+$/.exec(v5&&v5.keys&&v5.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();o(DEt,"isMasked");Iq=DEt});function MEt(e){if(e!=null){try{return NEt.call(e)}catch{}try{return e+""}catch{}}return""}var REt,NEt,_u,m9=R(()=>{"use strict";REt=Function.prototype,NEt=REt.toString;o(MEt,"toSource");_u=MEt});function GEt(e){if(!xn(e)||Iq(e))return!1;var t=Si(e)?$Et:OEt;return t.test(_u(e))}var IEt,OEt,PEt,BEt,FEt,zEt,$Et,Pq,Bq=R(()=>{"use strict";uv();Oq();eo();m9();IEt=/[\\^$.*+?()[\]{}|]/g,OEt=/^\[object .+?Constructor\]$/,PEt=Function.prototype,BEt=Object.prototype,FEt=PEt.toString,zEt=BEt.hasOwnProperty,$Et=RegExp("^"+FEt.call(zEt).replace(IEt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");o(GEt,"baseIsNative");Pq=GEt});function VEt(e,t){return e?.[t]}var Fq,zq=R(()=>{"use strict";o(VEt,"getValue");Fq=VEt});function UEt(e,t){var r=Fq(e,t);return Pq(r)?r:void 0}var ks,Mh=R(()=>{"use strict";Bq();zq();o(UEt,"getNative");ks=UEt});var HEt,Lu,hv=R(()=>{"use strict";Mh();HEt=ks(Object,"create"),Lu=HEt});function WEt(){this.__data__=Lu?Lu(null):{},this.size=0}var $q,Gq=R(()=>{"use strict";hv();o(WEt,"hashClear");$q=WEt});function YEt(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Vq,Uq=R(()=>{"use strict";o(YEt,"hashDelete");Vq=YEt});function KEt(e){var t=this.__data__;if(Lu){var r=t[e];return r===qEt?void 0:r}return jEt.call(t,e)?t[e]:void 0}var qEt,XEt,jEt,Hq,Wq=R(()=>{"use strict";hv();qEt="__lodash_hash_undefined__",XEt=Object.prototype,jEt=XEt.hasOwnProperty;o(KEt,"hashGet");Hq=KEt});function JEt(e){var t=this.__data__;return Lu?t[e]!==void 0:ZEt.call(t,e)}var QEt,ZEt,Yq,qq=R(()=>{"use strict";hv();QEt=Object.prototype,ZEt=QEt.hasOwnProperty;o(JEt,"hashHas");Yq=JEt});function e6t(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Lu&&t===void 0?t6t:t,this}var t6t,Xq,jq=R(()=>{"use strict";hv();t6t="__lodash_hash_undefined__";o(e6t,"hashSet");Xq=e6t});function Zp(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t{"use strict";Gq();Uq();Wq();qq();jq();o(Zp,"Hash");Zp.prototype.clear=$q;Zp.prototype.delete=Vq;Zp.prototype.get=Hq;Zp.prototype.has=Yq;Zp.prototype.set=Xq;g9=Zp});function r6t(){this.__data__=[],this.size=0}var Qq,Zq=R(()=>{"use strict";o(r6t,"listCacheClear");Qq=r6t});function n6t(e,t){return e===t||e!==e&&t!==t}var Oo,Ed=R(()=>{"use strict";o(n6t,"eq");Oo=n6t});function i6t(e,t){for(var r=e.length;r--;)if(Oo(e[r][0],t))return r;return-1}var Ih,fv=R(()=>{"use strict";Ed();o(i6t,"assocIndexOf");Ih=i6t});function o6t(e){var t=this.__data__,r=Ih(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():s6t.call(t,r,1),--this.size,!0}var a6t,s6t,Jq,tX=R(()=>{"use strict";fv();a6t=Array.prototype,s6t=a6t.splice;o(o6t,"listCacheDelete");Jq=o6t});function l6t(e){var t=this.__data__,r=Ih(t,e);return r<0?void 0:t[r][1]}var eX,rX=R(()=>{"use strict";fv();o(l6t,"listCacheGet");eX=l6t});function c6t(e){return Ih(this.__data__,e)>-1}var nX,iX=R(()=>{"use strict";fv();o(c6t,"listCacheHas");nX=c6t});function u6t(e,t){var r=this.__data__,n=Ih(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var aX,sX=R(()=>{"use strict";fv();o(u6t,"listCacheSet");aX=u6t});function Jp(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t{"use strict";Zq();tX();rX();iX();sX();o(Jp,"ListCache");Jp.prototype.clear=Qq;Jp.prototype.delete=Jq;Jp.prototype.get=eX;Jp.prototype.has=nX;Jp.prototype.set=aX;Oh=Jp});var h6t,Ph,x5=R(()=>{"use strict";Mh();Io();h6t=ks(si,"Map"),Ph=h6t});function f6t(){this.size=0,this.__data__={hash:new g9,map:new(Ph||Oh),string:new g9}}var oX,lX=R(()=>{"use strict";Kq();dv();x5();o(f6t,"mapCacheClear");oX=f6t});function d6t(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var cX,uX=R(()=>{"use strict";o(d6t,"isKeyable");cX=d6t});function p6t(e,t){var r=e.__data__;return cX(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Bh,pv=R(()=>{"use strict";uX();o(p6t,"getMapData");Bh=p6t});function m6t(e){var t=Bh(this,e).delete(e);return this.size-=t?1:0,t}var hX,fX=R(()=>{"use strict";pv();o(m6t,"mapCacheDelete");hX=m6t});function g6t(e){return Bh(this,e).get(e)}var dX,pX=R(()=>{"use strict";pv();o(g6t,"mapCacheGet");dX=g6t});function y6t(e){return Bh(this,e).has(e)}var mX,gX=R(()=>{"use strict";pv();o(y6t,"mapCacheHas");mX=y6t});function v6t(e,t){var r=Bh(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var yX,vX=R(()=>{"use strict";pv();o(v6t,"mapCacheSet");yX=v6t});function tm(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t{"use strict";lX();fX();pX();gX();vX();o(tm,"MapCache");tm.prototype.clear=oX;tm.prototype.delete=hX;tm.prototype.get=dX;tm.prototype.has=mX;tm.prototype.set=yX;Cd=tm});function y9(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(x6t);var r=o(function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var s=e.apply(this,n);return r.cache=a.set(i,s)||a,s},"memoized");return r.cache=new(y9.Cache||Cd),r}var x6t,em,v9=R(()=>{"use strict";b5();x6t="Expected a function";o(y9,"memoize");y9.Cache=Cd;em=y9});function b6t(){this.__data__=new Oh,this.size=0}var xX,bX=R(()=>{"use strict";dv();o(b6t,"stackClear");xX=b6t});function w6t(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var wX,TX=R(()=>{"use strict";o(w6t,"stackDelete");wX=w6t});function T6t(e){return this.__data__.get(e)}var kX,EX=R(()=>{"use strict";o(T6t,"stackGet");kX=T6t});function k6t(e){return this.__data__.has(e)}var CX,SX=R(()=>{"use strict";o(k6t,"stackHas");CX=k6t});function C6t(e,t){var r=this.__data__;if(r instanceof Oh){var n=r.__data__;if(!Ph||n.length{"use strict";dv();x5();b5();E6t=200;o(C6t,"stackSet");AX=C6t});function rm(e){var t=this.__data__=new Oh(e);this.size=t.size}var yc,mv=R(()=>{"use strict";dv();bX();TX();EX();SX();_X();o(rm,"Stack");rm.prototype.clear=xX;rm.prototype.delete=wX;rm.prototype.get=kX;rm.prototype.has=CX;rm.prototype.set=AX;yc=rm});var S6t,nm,x9=R(()=>{"use strict";Mh();S6t=function(){try{var e=ks(Object,"defineProperty");return e({},"",{}),e}catch{}}(),nm=S6t});function A6t(e,t,r){t=="__proto__"&&nm?nm(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var vc,im=R(()=>{"use strict";x9();o(A6t,"baseAssignValue");vc=A6t});function _6t(e,t,r){(r!==void 0&&!Oo(e[t],r)||r===void 0&&!(t in e))&&vc(e,t,r)}var gv,b9=R(()=>{"use strict";im();Ed();o(_6t,"assignMergeValue");gv=_6t});function L6t(e){return function(t,r,n){for(var i=-1,a=Object(t),s=n(t),l=s.length;l--;){var u=s[e?l:++i];if(r(a[u],u,a)===!1)break}return t}}var LX,DX=R(()=>{"use strict";o(L6t,"createBaseFor");LX=L6t});var D6t,am,w5=R(()=>{"use strict";DX();D6t=LX(),am=D6t});function N6t(e,t){if(t)return e.slice();var r=e.length,n=MX?MX(r):new e.constructor(r);return e.copy(n),n}var IX,RX,R6t,NX,MX,T5,w9=R(()=>{"use strict";Io();IX=typeof exports=="object"&&exports&&!exports.nodeType&&exports,RX=IX&&typeof module=="object"&&module&&!module.nodeType&&module,R6t=RX&&RX.exports===IX,NX=R6t?si.Buffer:void 0,MX=NX?NX.allocUnsafe:void 0;o(N6t,"cloneBuffer");T5=N6t});var M6t,sm,T9=R(()=>{"use strict";Io();M6t=si.Uint8Array,sm=M6t});function I6t(e){var t=new e.constructor(e.byteLength);return new sm(t).set(new sm(e)),t}var om,k5=R(()=>{"use strict";T9();o(I6t,"cloneArrayBuffer");om=I6t});function O6t(e,t){var r=t?om(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var E5,k9=R(()=>{"use strict";k5();o(O6t,"cloneTypedArray");E5=O6t});function P6t(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r{"use strict";o(P6t,"copyArray");C5=P6t});var OX,B6t,PX,BX=R(()=>{"use strict";eo();OX=Object.create,B6t=function(){function e(){}return o(e,"object"),function(t){if(!xn(t))return{};if(OX)return OX(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),PX=B6t});function F6t(e,t){return function(r){return e(t(r))}}var S5,C9=R(()=>{"use strict";o(F6t,"overArg");S5=F6t});var z6t,lm,A5=R(()=>{"use strict";C9();z6t=S5(Object.getPrototypeOf,Object),lm=z6t});function G6t(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||$6t;return e===r}var $6t,xc,cm=R(()=>{"use strict";$6t=Object.prototype;o(G6t,"isPrototype");xc=G6t});function V6t(e){return typeof e.constructor=="function"&&!xc(e)?PX(lm(e)):{}}var _5,S9=R(()=>{"use strict";BX();A5();cm();o(V6t,"initCloneObject");_5=V6t});function U6t(e){return e!=null&&typeof e=="object"}var ti,Po=R(()=>{"use strict";o(U6t,"isObjectLike");ti=U6t});function W6t(e){return ti(e)&&ga(e)==H6t}var H6t,A9,FX=R(()=>{"use strict";Au();Po();H6t="[object Arguments]";o(W6t,"baseIsArguments");A9=W6t});var zX,Y6t,q6t,X6t,_l,um=R(()=>{"use strict";FX();Po();zX=Object.prototype,Y6t=zX.hasOwnProperty,q6t=zX.propertyIsEnumerable,X6t=A9(function(){return arguments}())?A9:function(e){return ti(e)&&Y6t.call(e,"callee")&&!q6t.call(e,"callee")},_l=X6t});var j6t,Le,Hn=R(()=>{"use strict";j6t=Array.isArray,Le=j6t});function Q6t(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=K6t}var K6t,hm,L5=R(()=>{"use strict";K6t=9007199254740991;o(Q6t,"isLength");hm=Q6t});function Z6t(e){return e!=null&&hm(e.length)&&!Si(e)}var oi,Bo=R(()=>{"use strict";uv();L5();o(Z6t,"isArrayLike");oi=Z6t});function J6t(e){return ti(e)&&oi(e)}var Sd,D5=R(()=>{"use strict";Bo();Po();o(J6t,"isArrayLikeObject");Sd=J6t});function tCt(){return!1}var $X,GX=R(()=>{"use strict";o(tCt,"stubFalse");$X=tCt});var HX,VX,eCt,UX,rCt,nCt,Ll,fm=R(()=>{"use strict";Io();GX();HX=typeof exports=="object"&&exports&&!exports.nodeType&&exports,VX=HX&&typeof module=="object"&&module&&!module.nodeType&&module,eCt=VX&&VX.exports===HX,UX=eCt?si.Buffer:void 0,rCt=UX?UX.isBuffer:void 0,nCt=rCt||$X,Ll=nCt});function cCt(e){if(!ti(e)||ga(e)!=iCt)return!1;var t=lm(e);if(t===null)return!0;var r=oCt.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&WX.call(r)==lCt}var iCt,aCt,sCt,WX,oCt,lCt,YX,qX=R(()=>{"use strict";Au();A5();Po();iCt="[object Object]",aCt=Function.prototype,sCt=Object.prototype,WX=aCt.toString,oCt=sCt.hasOwnProperty,lCt=WX.call(Object);o(cCt,"isPlainObject");YX=cCt});function ICt(e){return ti(e)&&hm(e.length)&&!!$n[ga(e)]}var uCt,hCt,fCt,dCt,pCt,mCt,gCt,yCt,vCt,xCt,bCt,wCt,TCt,kCt,ECt,CCt,SCt,ACt,_Ct,LCt,DCt,RCt,NCt,MCt,$n,XX,jX=R(()=>{"use strict";Au();L5();Po();uCt="[object Arguments]",hCt="[object Array]",fCt="[object Boolean]",dCt="[object Date]",pCt="[object Error]",mCt="[object Function]",gCt="[object Map]",yCt="[object Number]",vCt="[object Object]",xCt="[object RegExp]",bCt="[object Set]",wCt="[object String]",TCt="[object WeakMap]",kCt="[object ArrayBuffer]",ECt="[object DataView]",CCt="[object Float32Array]",SCt="[object Float64Array]",ACt="[object Int8Array]",_Ct="[object Int16Array]",LCt="[object Int32Array]",DCt="[object Uint8Array]",RCt="[object Uint8ClampedArray]",NCt="[object Uint16Array]",MCt="[object Uint32Array]",$n={};$n[CCt]=$n[SCt]=$n[ACt]=$n[_Ct]=$n[LCt]=$n[DCt]=$n[RCt]=$n[NCt]=$n[MCt]=!0;$n[uCt]=$n[hCt]=$n[kCt]=$n[fCt]=$n[ECt]=$n[dCt]=$n[pCt]=$n[mCt]=$n[gCt]=$n[yCt]=$n[vCt]=$n[xCt]=$n[bCt]=$n[wCt]=$n[TCt]=!1;o(ICt,"baseIsTypedArray");XX=ICt});function OCt(e){return function(t){return e(t)}}var Fo,Ad=R(()=>{"use strict";o(OCt,"baseUnary");Fo=OCt});var KX,yv,PCt,_9,BCt,zo,vv=R(()=>{"use strict";p9();KX=typeof exports=="object"&&exports&&!exports.nodeType&&exports,yv=KX&&typeof module=="object"&&module&&!module.nodeType&&module,PCt=yv&&yv.exports===KX,_9=PCt&&y5.process,BCt=function(){try{var e=yv&&yv.require&&yv.require("util").types;return e||_9&&_9.binding&&_9.binding("util")}catch{}}(),zo=BCt});var QX,FCt,Fh,xv=R(()=>{"use strict";jX();Ad();vv();QX=zo&&zo.isTypedArray,FCt=QX?Fo(QX):XX,Fh=FCt});function zCt(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var bv,L9=R(()=>{"use strict";o(zCt,"safeGet");bv=zCt});function VCt(e,t,r){var n=e[t];(!(GCt.call(e,t)&&Oo(n,r))||r===void 0&&!(t in e))&&vc(e,t,r)}var $Ct,GCt,bc,dm=R(()=>{"use strict";im();Ed();$Ct=Object.prototype,GCt=$Ct.hasOwnProperty;o(VCt,"assignValue");bc=VCt});function UCt(e,t,r,n){var i=!r;r||(r={});for(var a=-1,s=t.length;++a{"use strict";dm();im();o(UCt,"copyObject");$o=UCt});function HCt(e,t){for(var r=-1,n=Array(e);++r{"use strict";o(HCt,"baseTimes");ZX=HCt});function qCt(e,t){var r=typeof e;return t=t??WCt,!!t&&(r=="number"||r!="symbol"&&YCt.test(e))&&e>-1&&e%1==0&&e{"use strict";WCt=9007199254740991,YCt=/^(?:0|[1-9]\d*)$/;o(qCt,"isIndex");zh=qCt});function KCt(e,t){var r=Le(e),n=!r&&_l(e),i=!r&&!n&&Ll(e),a=!r&&!n&&!i&&Fh(e),s=r||n||i||a,l=s?ZX(e.length,String):[],u=l.length;for(var h in e)(t||jCt.call(e,h))&&!(s&&(h=="length"||i&&(h=="offset"||h=="parent")||a&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||zh(h,u)))&&l.push(h);return l}var XCt,jCt,R5,D9=R(()=>{"use strict";JX();um();Hn();fm();wv();xv();XCt=Object.prototype,jCt=XCt.hasOwnProperty;o(KCt,"arrayLikeKeys");R5=KCt});function QCt(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var tj,ej=R(()=>{"use strict";o(QCt,"nativeKeysIn");tj=QCt});function tSt(e){if(!xn(e))return tj(e);var t=xc(e),r=[];for(var n in e)n=="constructor"&&(t||!JCt.call(e,n))||r.push(n);return r}var ZCt,JCt,rj,nj=R(()=>{"use strict";eo();cm();ej();ZCt=Object.prototype,JCt=ZCt.hasOwnProperty;o(tSt,"baseKeysIn");rj=tSt});function eSt(e){return oi(e)?R5(e,!0):rj(e)}var Es,$h=R(()=>{"use strict";D9();nj();Bo();o(eSt,"keysIn");Es=eSt});function rSt(e){return $o(e,Es(e))}var ij,aj=R(()=>{"use strict";_d();$h();o(rSt,"toPlainObject");ij=rSt});function nSt(e,t,r,n,i,a,s){var l=bv(e,r),u=bv(t,r),h=s.get(u);if(h){gv(e,r,h);return}var f=a?a(l,u,r+"",e,t,s):void 0,d=f===void 0;if(d){var p=Le(u),m=!p&&Ll(u),g=!p&&!m&&Fh(u);f=u,p||m||g?Le(l)?f=l:Sd(l)?f=C5(l):m?(d=!1,f=T5(u,!0)):g?(d=!1,f=E5(u,!0)):f=[]:YX(u)||_l(u)?(f=l,_l(l)?f=ij(l):(!xn(l)||Si(l))&&(f=_5(u))):d=!1}d&&(s.set(u,f),i(f,u,n,a,s),s.delete(u)),gv(e,r,f)}var sj,oj=R(()=>{"use strict";b9();w9();k9();E9();S9();um();Hn();D5();fm();uv();eo();qX();xv();L9();aj();o(nSt,"baseMergeDeep");sj=nSt});function lj(e,t,r,n,i){e!==t&&am(t,function(a,s){if(i||(i=new yc),xn(a))sj(e,t,s,r,lj,n,i);else{var l=n?n(bv(e,s),a,s+"",e,t,i):void 0;l===void 0&&(l=a),gv(e,s,l)}},Es)}var cj,uj=R(()=>{"use strict";mv();b9();w5();oj();eo();$h();L9();o(lj,"baseMerge");cj=lj});function iSt(e){return e}var na,Du=R(()=>{"use strict";o(iSt,"identity");na=iSt});function aSt(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var hj,fj=R(()=>{"use strict";o(aSt,"apply");hj=aSt});function sSt(e,t,r){return t=dj(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=dj(n.length-t,0),s=Array(a);++i{"use strict";fj();dj=Math.max;o(sSt,"overRest");N5=sSt});function oSt(e){return function(){return e}}var Cs,N9=R(()=>{"use strict";o(oSt,"constant");Cs=oSt});var lSt,pj,mj=R(()=>{"use strict";N9();x9();Du();lSt=nm?function(e,t){return nm(e,"toString",{configurable:!0,enumerable:!1,value:Cs(t),writable:!0})}:na,pj=lSt});function fSt(e){var t=0,r=0;return function(){var n=hSt(),i=uSt-(n-r);if(r=n,i>0){if(++t>=cSt)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var cSt,uSt,hSt,gj,yj=R(()=>{"use strict";cSt=800,uSt=16,hSt=Date.now;o(fSt,"shortOut");gj=fSt});var dSt,M5,M9=R(()=>{"use strict";mj();yj();dSt=gj(pj),M5=dSt});function pSt(e,t){return M5(N5(e,t,na),e+"")}var wc,pm=R(()=>{"use strict";Du();R9();M9();o(pSt,"baseRest");wc=pSt});function mSt(e,t,r){if(!xn(r))return!1;var n=typeof t;return(n=="number"?oi(r)&&zh(t,r.length):n=="string"&&t in r)?Oo(r[t],e):!1}var ro,Ld=R(()=>{"use strict";Ed();Bo();wv();eo();o(mSt,"isIterateeCall");ro=mSt});function gSt(e){return wc(function(t,r){var n=-1,i=r.length,a=i>1?r[i-1]:void 0,s=i>2?r[2]:void 0;for(a=e.length>3&&typeof a=="function"?(i--,a):void 0,s&&ro(r[0],r[1],s)&&(a=i<3?void 0:a,i=1),t=Object(t);++n{"use strict";pm();Ld();o(gSt,"createAssigner");I5=gSt});var ySt,Gh,O9=R(()=>{"use strict";uj();I9();ySt=I5(function(e,t,r){cj(e,t,r)}),Gh=ySt});function mm(e,t){if(!e)return t;let r=`curve${e.charAt(0).toUpperCase()+e.slice(1)}`;return vSt[r]??t}function TSt(e,t){let r=e.trim();if(r)return t.securityLevel!=="loose"?(0,bj.sanitizeUrl)(r):r}function kj(e,t){return!e||!t?0:Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function ESt(e){let t,r=0;e.forEach(i=>{r+=kj(i,t),t=i});let n=r/2;return F9(e,n)}function CSt(e){return e.length===1?e[0]:ESt(e)}function ASt(e,t,r){let n=structuredClone(r);V.info("our points",n),t!=="start_left"&&t!=="start_right"&&n.reverse();let i=25+e,a=F9(n,i),s=10+e*.5,l=Math.atan2(n[0].y-a.y,n[0].x-a.x),u={x:0,y:0};return t==="start_left"?(u.x=Math.sin(l+Math.PI)*s+(n[0].x+a.x)/2,u.y=-Math.cos(l+Math.PI)*s+(n[0].y+a.y)/2):t==="end_right"?(u.x=Math.sin(l-Math.PI)*s+(n[0].x+a.x)/2-5,u.y=-Math.cos(l-Math.PI)*s+(n[0].y+a.y)/2-5):t==="end_left"?(u.x=Math.sin(l)*s+(n[0].x+a.x)/2-5,u.y=-Math.cos(l)*s+(n[0].y+a.y)/2-5):(u.x=Math.sin(l)*s+(n[0].x+a.x)/2,u.y=-Math.cos(l)*s+(n[0].y+a.y)/2),u}function gm(e){let t="",r="";for(let n of e)n!==void 0&&(n.startsWith("color:")||n.startsWith("text-align:")?r=r+n+";":t=t+n+";");return{style:t,labelStyle:r}}function _St(e){let t="",r="0123456789abcdef",n=r.length;for(let i=0;i{"use strict";bj=Qi(Qp(),1);ur();hr();US();ce();jf();yp();v9();O9();l4();B9="\u200B",vSt={curveBasis:Ts,curveBasisClosed:n5,curveBasisOpen:i5,curveBumpX:q_,curveBumpY:X_,curveBundle:j_,curveCardinalClosed:Q_,curveCardinalOpen:J_,curveCardinal:K_,curveCatmullRomClosed:r9,curveCatmullRomOpen:n9,curveCatmullRom:e9,curveLinear:Cu,curveLinearClosed:c5,curveMonotoneX:a9,curveMonotoneY:s9,curveNatural:h5,curveStep:d5,curveStepAfter:l9,curveStepBefore:o9},xSt=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,bSt=o(function(e,t){let r=wj(e,/(?:init\b)|(?:initialize\b)/),n={};if(Array.isArray(r)){let s=r.map(l=>l.args);bp(s),n=Vn(n,[...s])}else n=r.args;if(!n)return;let i=gp(e,t),a="config";return n[a]!==void 0&&(i==="flowchart-v2"&&(i="flowchart"),n[i]=n[a],delete n[a]),n},"detectInit"),wj=o(function(e,t=null){try{let r=new RegExp(`[%]{2}(?![{]${xSt.source})(?=[}][%]{2}).* +`,"ig");e=e.trim().replace(r,"").replace(/'/gm,'"'),V.debug(`Detecting diagram directive${t!==null?" type:"+t:""} based on the text:${e}`);let n,i=[];for(;(n=qf.exec(e))!==null;)if(n.index===qf.lastIndex&&qf.lastIndex++,n&&!t||t&&n[1]?.match(t)||t&&n[2]?.match(t)){let a=n[1]?n[1]:n[2],s=n[3]?n[3].trim():n[4]?JSON.parse(n[4].trim()):null;i.push({type:a,args:s})}return i.length===0?{type:e,args:null}:i.length===1?i[0]:i}catch(r){return V.error(`ERROR: ${r.message} - Unable to parse directive type: '${t}' based on the text: '${e}'`),{type:void 0,args:null}}},"detectDirective"),Tj=o(function(e){return e.replace(qf,"")},"removeDirectives"),wSt=o(function(e,t){for(let[r,n]of t.entries())if(n.match(e))return r;return-1},"isSubstringInArray");o(mm,"interpolateToCurve");o(TSt,"formatUrl");kSt=o((e,...t)=>{let r=e.split("."),n=r.length-1,i=r[n],a=window;for(let s=0;s{let r=Math.pow(10,t);return Math.round(e*r)/r},"roundNumber"),F9=o((e,t)=>{let r,n=t;for(let i of e){if(r){let a=kj(i,r);if(a=1)return{x:i.x,y:i.y};if(s>0&&s<1)return{x:vj((1-s)*r.x+s*i.x,5),y:vj((1-s)*r.y+s*i.y,5)}}}r=i}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),SSt=o((e,t,r)=>{V.info(`our points ${JSON.stringify(t)}`),t[0]!==r&&(t=t.reverse());let i=F9(t,25),a=e?10:5,s=Math.atan2(t[0].y-i.y,t[0].x-i.x),l={x:0,y:0};return l.x=Math.sin(s)*a+(t[0].x+i.x)/2,l.y=-Math.cos(s)*a+(t[0].y+i.y)/2,l},"calcCardinalityPosition");o(ASt,"calcTerminalLabelPosition");o(gm,"getStylesFromArray");xj=0,z9=o(()=>(xj++,"id-"+Math.random().toString(36).substr(2,12)+"-"+xj),"generateId");o(_St,"makeRandomHex");$9=o(e=>_St(e.length),"random"),LSt=o(function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},"getTextObj"),DSt=o(function(e,t){let r=t.text.replace(Yt.lineBreakRegex," "),[,n]=Tc(t.fontSize),i=e.append("text");i.attr("x",t.x),i.attr("y",t.y),i.style("text-anchor",t.anchor),i.style("font-family",t.fontFamily),i.style("font-size",n),i.style("font-weight",t.fontWeight),i.attr("fill",t.fill),t.class!==void 0&&i.attr("class",t.class);let a=i.append("tspan");return a.attr("x",t.x+t.textMargin*2),a.attr("fill",t.fill),a.text(r),i},"drawSimpleText"),G9=em((e,t,r)=>{if(!e||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"
"},r),Yt.lineBreakRegex.test(e)))return e;let n=e.split(" ").filter(Boolean),i=[],a="";return n.forEach((s,l)=>{let u=Dl(`${s} `,r),h=Dl(a,r);if(u>t){let{hyphenatedStrings:p,remainingWord:m}=RSt(s,t,"-",r);i.push(a,...p),a=m}else h+u>=t?(i.push(a),a=s):a=[a,s].filter(Boolean).join(" ");l+1===n.length&&i.push(a)}),i.filter(s=>s!=="").join(r.joinWith)},(e,t,r)=>`${e}${t}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`),RSt=em((e,t,r="-",n)=>{n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},n);let i=[...e],a=[],s="";return i.forEach((l,u)=>{let h=`${s}${l}`;if(Dl(h,n)>=t){let d=u+1,p=i.length===d,m=`${h}${r}`;a.push(p?h:m),s=""}else s=h}),{hyphenatedStrings:a,remainingWord:s}},(e,t,r="-",n)=>`${e}${t}${r}${n.fontSize}${n.fontWeight}${n.fontFamily}`);o(P5,"calculateTextHeight");o(Dl,"calculateTextWidth");V9=em((e,t)=>{let{fontSize:r=12,fontFamily:n="Arial",fontWeight:i=400}=t;if(!e)return{width:0,height:0};let[,a]=Tc(r),s=["sans-serif",n],l=e.split(Yt.lineBreakRegex),u=[],h=Gt("body");if(!h.remove)return{width:0,height:0,lineHeight:0};let f=h.append("svg");for(let p of s){let m=0,g={width:0,height:0,lineHeight:0};for(let y of l){let v=LSt();v.text=y||B9;let x=DSt(f,v).style("font-size",a).style("font-weight",i).style("font-family",p),b=(x._groups||x)[0][0].getBBox();if(b.width===0&&b.height===0)throw new Error("svg element not in render tree");g.width=Math.round(Math.max(g.width,b.width)),m=Math.round(b.height),g.height+=m,g.lineHeight=Math.round(Math.max(g.lineHeight,m))}u.push(g)}f.remove();let d=isNaN(u[1].height)||isNaN(u[1].width)||isNaN(u[1].lineHeight)||u[0].height>u[1].height&&u[0].width>u[1].width&&u[0].lineHeight>u[1].lineHeight?0:1;return u[d]},(e,t)=>`${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`),P9=class{constructor(t=!1,r){this.count=0;this.count=r?r.length:0,this.next=t?()=>this.count++:()=>Date.now()}static{o(this,"InitIDGenerator")}},NSt=o(function(e){return O5=O5||document.createElement("div"),e=escape(e).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),O5.innerHTML=e,unescape(O5.textContent)},"entityDecode");o(U9,"isDetailedError");MSt=o((e,t,r,n)=>{if(!n)return;let i=e.node()?.getBBox();i&&e.append("text").text(n).attr("x",i.x+i.width/2).attr("y",-r).attr("class",t)},"insertTitle"),Tc=o(e=>{if(typeof e=="number")return[e,e+"px"];let t=parseInt(e??"",10);return Number.isNaN(t)?[void 0,void 0]:e===String(t)?[t,e+"px"]:[t,e]},"parseFontSize");o(Ss,"cleanAndMerge");Oe={assignWithDepth:Vn,wrapLabel:G9,calculateTextHeight:P5,calculateTextWidth:Dl,calculateTextDimensions:V9,cleanAndMerge:Ss,detectInit:bSt,detectDirective:wj,isSubstringInArray:wSt,interpolateToCurve:mm,calcLabelPosition:CSt,calcCardinalityPosition:SSt,calcTerminalLabelPosition:ASt,formatUrl:TSt,getStylesFromArray:gm,generateId:z9,random:$9,runFunc:kSt,entityDecode:NSt,insertTitle:MSt,parseFontSize:Tc,InitIDGenerator:P9},Ej=o(function(e){let t=e;return t=t.replace(/style.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),t=t.replace(/classDef.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),t=t.replace(/#\w+;/g,function(r){let n=r.substring(1,r.length-1);return/^\+?\d+$/.test(n)?"\uFB02\xB0\xB0"+n+"\xB6\xDF":"\uFB02\xB0"+n+"\xB6\xDF"}),t},"encodeEntities"),no=o(function(e){return e.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),B5=o((e,t,{counter:r=0,prefix:n,suffix:i})=>`${n?`${n}_`:""}${e}_${t}_${r}${i?`_${i}`:""}`,"getEdgeId")});function Rl(e,t,r,n,i){if(!t[e].width)if(r)t[e].text=G9(t[e].text,i,n),t[e].textLines=t[e].text.split(Yt.lineBreakRegex).length,t[e].width=i,t[e].height=P5(t[e].text,n);else{let a=t[e].text.split(Yt.lineBreakRegex);t[e].textLines=a.length;let s=0;t[e].height=0,t[e].width=0;for(let l of a)t[e].width=Math.max(Dl(l,n),t[e].width),s=P5(l,n),t[e].height=t[e].height+s}}function Lj(e,t,r,n,i){let a=new G5(i);a.data.widthLimit=r.data.widthLimit/Math.min(H9,n.length);for(let[s,l]of n.entries()){let u=0;l.image={width:0,height:0,Y:0},l.sprite&&(l.image.width=48,l.image.height=48,l.image.Y=u,u=l.image.Y+l.image.height);let h=l.wrap&&$e.wrap,f=F5($e);if(f.fontSize=f.fontSize+2,f.fontWeight="bold",Rl("label",l,h,f,a.data.widthLimit),l.label.Y=u+8,u=l.label.Y+l.label.height,l.type&&l.type.text!==""){l.type.text="["+l.type.text+"]";let g=F5($e);Rl("type",l,h,g,a.data.widthLimit),l.type.Y=u+5,u=l.type.Y+l.type.height}if(l.descr&&l.descr.text!==""){let g=F5($e);g.fontSize=g.fontSize-2,Rl("descr",l,h,g,a.data.widthLimit),l.descr.Y=u+20,u=l.descr.Y+l.descr.height}if(s==0||s%H9===0){let g=r.data.startx+$e.diagramMarginX,y=r.data.stopy+$e.diagramMarginY+u;a.setData(g,g,y,y)}else{let g=a.data.stopx!==a.data.startx?a.data.stopx+$e.diagramMarginX:a.data.startx,y=a.data.starty;a.setData(g,g,y,y)}a.name=l.alias;let d=i.db.getC4ShapeArray(l.alias),p=i.db.getC4ShapeKeys(l.alias);p.length>0&&_j(a,e,d,p),t=l.alias;let m=i.db.getBoundarys(t);m.length>0&&Lj(e,t,a,m,i),l.alias!=="global"&&Aj(e,l,a),r.data.stopy=Math.max(a.data.stopy+$e.c4ShapeMargin,r.data.stopy),r.data.stopx=Math.max(a.data.stopx+$e.c4ShapeMargin,r.data.stopx),z5=Math.max(z5,r.data.stopx),$5=Math.max($5,r.data.stopy)}}var z5,$5,Sj,H9,$e,G5,W9,Tv,F5,ISt,Aj,_j,As,Cj,OSt,PSt,BSt,Y9,Dj=R(()=>{"use strict";ur();Cq();ce();LS();hr();j7();Ue();yp();_r();Jn();z5=0,$5=0,Sj=4,H9=2;ty.yy=Ty;$e={},G5=class{static{o(this,"Bounds")}constructor(t){this.name="",this.data={},this.data.startx=void 0,this.data.stopx=void 0,this.data.starty=void 0,this.data.stopy=void 0,this.data.widthLimit=void 0,this.nextData={},this.nextData.startx=void 0,this.nextData.stopx=void 0,this.nextData.starty=void 0,this.nextData.stopy=void 0,this.nextData.cnt=0,W9(t.db.getConfig())}setData(t,r,n,i){this.nextData.startx=this.data.startx=t,this.nextData.stopx=this.data.stopx=r,this.nextData.starty=this.data.starty=n,this.nextData.stopy=this.data.stopy=i}updateVal(t,r,n,i){t[r]===void 0?t[r]=n:t[r]=i(n,t[r])}insert(t){this.nextData.cnt=this.nextData.cnt+1;let r=this.nextData.startx===this.nextData.stopx?this.nextData.stopx+t.margin:this.nextData.stopx+t.margin*2,n=r+t.width,i=this.nextData.starty+t.margin*2,a=i+t.height;(r>=this.data.widthLimit||n>=this.data.widthLimit||this.nextData.cnt>Sj)&&(r=this.nextData.startx+t.margin+$e.nextLinePaddingX,i=this.nextData.stopy+t.margin*2,this.nextData.stopx=n=r+t.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=a=i+t.height,this.nextData.cnt=1),t.x=r,t.y=i,this.updateVal(this.data,"startx",r,Math.min),this.updateVal(this.data,"starty",i,Math.min),this.updateVal(this.data,"stopx",n,Math.max),this.updateVal(this.data,"stopy",a,Math.max),this.updateVal(this.nextData,"startx",r,Math.min),this.updateVal(this.nextData,"starty",i,Math.min),this.updateVal(this.nextData,"stopx",n,Math.max),this.updateVal(this.nextData,"stopy",a,Math.max)}init(t){this.name="",this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,widthLimit:void 0},this.nextData={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,cnt:0},W9(t.db.getConfig())}bumpLastMargin(t){this.data.stopx+=t,this.data.stopy+=t}},W9=o(function(e){Vn($e,e),e.fontFamily&&($e.personFontFamily=$e.systemFontFamily=$e.messageFontFamily=e.fontFamily),e.fontSize&&($e.personFontSize=$e.systemFontSize=$e.messageFontSize=e.fontSize),e.fontWeight&&($e.personFontWeight=$e.systemFontWeight=$e.messageFontWeight=e.fontWeight)},"setConf"),Tv=o((e,t)=>({fontFamily:e[t+"FontFamily"],fontSize:e[t+"FontSize"],fontWeight:e[t+"FontWeight"]}),"c4ShapeFont"),F5=o(e=>({fontFamily:e.boundaryFontFamily,fontSize:e.boundaryFontSize,fontWeight:e.boundaryFontWeight}),"boundaryFont"),ISt=o(e=>({fontFamily:e.messageFontFamily,fontSize:e.messageFontSize,fontWeight:e.messageFontWeight}),"messageFont");o(Rl,"calcC4ShapeTextWH");Aj=o(function(e,t,r){t.x=r.data.startx,t.y=r.data.starty,t.width=r.data.stopx-r.data.startx,t.height=r.data.stopy-r.data.starty,t.label.y=$e.c4ShapeMargin-35;let n=t.wrap&&$e.wrap,i=F5($e);i.fontSize=i.fontSize+2,i.fontWeight="bold";let a=Dl(t.label.text,i);Rl("label",t,n,i,a),Al.drawBoundary(e,t,$e)},"drawBoundary"),_j=o(function(e,t,r,n){let i=0;for(let a of n){i=0;let s=r[a],l=Tv($e,s.typeC4Shape.text);switch(l.fontSize=l.fontSize-2,s.typeC4Shape.width=Dl("\xAB"+s.typeC4Shape.text+"\xBB",l),s.typeC4Shape.height=l.fontSize+2,s.typeC4Shape.Y=$e.c4ShapePadding,i=s.typeC4Shape.Y+s.typeC4Shape.height-4,s.image={width:0,height:0,Y:0},s.typeC4Shape.text){case"person":case"external_person":s.image.width=48,s.image.height=48,s.image.Y=i,i=s.image.Y+s.image.height;break}s.sprite&&(s.image.width=48,s.image.height=48,s.image.Y=i,i=s.image.Y+s.image.height);let u=s.wrap&&$e.wrap,h=$e.width-$e.c4ShapePadding*2,f=Tv($e,s.typeC4Shape.text);if(f.fontSize=f.fontSize+2,f.fontWeight="bold",Rl("label",s,u,f,h),s.label.Y=i+8,i=s.label.Y+s.label.height,s.type&&s.type.text!==""){s.type.text="["+s.type.text+"]";let m=Tv($e,s.typeC4Shape.text);Rl("type",s,u,m,h),s.type.Y=i+5,i=s.type.Y+s.type.height}else if(s.techn&&s.techn.text!==""){s.techn.text="["+s.techn.text+"]";let m=Tv($e,s.techn.text);Rl("techn",s,u,m,h),s.techn.Y=i+5,i=s.techn.Y+s.techn.height}let d=i,p=s.label.width;if(s.descr&&s.descr.text!==""){let m=Tv($e,s.typeC4Shape.text);Rl("descr",s,u,m,h),s.descr.Y=i+20,i=s.descr.Y+s.descr.height,p=Math.max(s.label.width,s.descr.width),d=i-s.descr.textLines*5}p=p+$e.c4ShapePadding,s.width=Math.max(s.width||$e.width,p,$e.width),s.height=Math.max(s.height||$e.height,d,$e.height),s.margin=s.margin||$e.c4ShapeMargin,e.insert(s),Al.drawC4Shape(t,s,$e)}e.bumpLastMargin($e.c4ShapeMargin)},"drawC4ShapeArray"),As=class{static{o(this,"Point")}constructor(t,r){this.x=t,this.y=r}},Cj=o(function(e,t){let r=e.x,n=e.y,i=t.x,a=t.y,s=r+e.width/2,l=n+e.height/2,u=Math.abs(r-i),h=Math.abs(n-a),f=h/u,d=e.height/e.width,p=null;return n==a&&ri?p=new As(r,l):r==i&&na&&(p=new As(s,n)),r>i&&n=f?p=new As(r,l+f*e.width/2):p=new As(s-u/h*e.height/2,n+e.height):r=f?p=new As(r+e.width,l+f*e.width/2):p=new As(s+u/h*e.height/2,n+e.height):ra?d>=f?p=new As(r+e.width,l-f*e.width/2):p=new As(s+e.height/2*u/h,n):r>i&&n>a&&(d>=f?p=new As(r,l-e.width/2*f):p=new As(s-e.height/2*u/h,n)),p},"getIntersectPoint"),OSt=o(function(e,t){let r={x:0,y:0};r.x=t.x+t.width/2,r.y=t.y+t.height/2;let n=Cj(e,r);r.x=e.x+e.width/2,r.y=e.y+e.height/2;let i=Cj(t,r);return{startPoint:n,endPoint:i}},"getIntersectPoints"),PSt=o(function(e,t,r,n){let i=0;for(let a of t){i=i+1;let s=a.wrap&&$e.wrap,l=ISt($e);n.db.getC4Type()==="C4Dynamic"&&(a.label.text=i+": "+a.label.text);let h=Dl(a.label.text,l);Rl("label",a,s,l,h),a.techn&&a.techn.text!==""&&(h=Dl(a.techn.text,l),Rl("techn",a,s,l,h)),a.descr&&a.descr.text!==""&&(h=Dl(a.descr.text,l),Rl("descr",a,s,l,h));let f=r(a.from),d=r(a.to),p=OSt(f,d);a.startPoint=p.startPoint,a.endPoint=p.endPoint}Al.drawRels(e,t,$e)},"drawRels");o(Lj,"drawInsideBoundary");BSt=o(function(e,t,r,n){$e=pt().c4;let i=pt().securityLevel,a;i==="sandbox"&&(a=Gt("#i"+t));let s=i==="sandbox"?Gt(a.nodes()[0].contentDocument.body):Gt("body"),l=n.db;n.db.setWrap($e.wrap),Sj=l.getC4ShapeInRow(),H9=l.getC4BoundaryInRow(),V.debug(`C:${JSON.stringify($e,null,2)}`);let u=i==="sandbox"?s.select(`[id="${t}"]`):Gt(`[id="${t}"]`);Al.insertComputerIcon(u),Al.insertDatabaseIcon(u),Al.insertClockIcon(u);let h=new G5(n);h.setData($e.diagramMarginX,$e.diagramMarginX,$e.diagramMarginY,$e.diagramMarginY),h.data.widthLimit=screen.availWidth,z5=$e.diagramMarginX,$5=$e.diagramMarginY;let f=n.db.getTitle(),d=n.db.getBoundarys("");Lj(u,"",h,d,n),Al.insertArrowHead(u),Al.insertArrowEnd(u),Al.insertArrowCrossHead(u),Al.insertArrowFilledHead(u),PSt(u,n.db.getRels(),n.db.getC4Shape,n),h.data.stopx=z5,h.data.stopy=$5;let p=h.data,g=p.stopy-p.starty+2*$e.diagramMarginY,v=p.stopx-p.startx+2*$e.diagramMarginX;f&&u.append("text").text(f).attr("x",(p.stopx-p.startx)/2-4*$e.diagramMarginX).attr("y",p.starty+$e.diagramMarginY),Pr(u,g,v,$e.useMaxWidth);let x=f?60:0;u.attr("viewBox",p.startx-$e.diagramMarginX+" -"+($e.diagramMarginY+x)+" "+v+" "+(g+x)),V.debug("models:",p)},"draw"),Y9={drawPersonOrSystemArray:_j,drawBoundary:Aj,setConf:W9,draw:BSt}});var FSt,Rj,Nj=R(()=>{"use strict";FSt=o(e=>`.person { + stroke: ${e.personBorder}; + fill: ${e.personBkg}; + } +`,"getStyles"),Rj=FSt});var Mj={};xr(Mj,{diagram:()=>zSt});var zSt,Ij=R(()=>{"use strict";LS();j7();Dj();Nj();zSt={parser:t$,db:Ty,renderer:Y9,styles:Rj,init:o(({c4:e,wrap:t})=>{Y9.setConf(e),Ty.setWrap(t)},"init")}});function Zj(e){return typeof e>"u"||e===null}function USt(e){return typeof e=="object"&&e!==null}function HSt(e){return Array.isArray(e)?e:Zj(e)?[]:[e]}function WSt(e,t){var r,n,i,a;if(t)for(a=Object.keys(t),r=0,n=a.length;rl&&(a=" ... ",t=n-l+a.length),r-n>l&&(s=" ...",r=n+l-s.length),{str:a+e.slice(t,r).replace(/\t/g,"\u2192")+s,pos:n-t+a.length}}function X9(e,t){return Fi.repeat(" ",t-e.length)+e}function t7t(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var r=/\r?\n|\r|\0/g,n=[0],i=[],a,s=-1;a=r.exec(e.buffer);)i.push(a.index),n.push(a.index+a[0].length),e.position<=a.index&&s<0&&(s=n.length-2);s<0&&(s=n.length-1);var l="",u,h,f=Math.min(e.line+t.linesAfter,i.length).toString().length,d=t.maxLength-(t.indent+f+3);for(u=1;u<=t.linesBefore&&!(s-u<0);u++)h=q9(e.buffer,n[s-u],i[s-u],e.position-(n[s]-n[s-u]),d),l=Fi.repeat(" ",t.indent)+X9((e.line-u+1).toString(),f)+" | "+h.str+` +`+l;for(h=q9(e.buffer,n[s],i[s],e.position,d),l+=Fi.repeat(" ",t.indent)+X9((e.line+1).toString(),f)+" | "+h.str+` +`,l+=Fi.repeat("-",t.indent+f+3+h.pos)+`^ +`,u=1;u<=t.linesAfter&&!(s+u>=i.length);u++)h=q9(e.buffer,n[s+u],i[s+u],e.position-(n[s]-n[s+u]),d),l+=Fi.repeat(" ",t.indent)+X9((e.line+u+1).toString(),f)+" | "+h.str+` +`;return l.replace(/\n$/,"")}function i7t(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}function a7t(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(r7t.indexOf(r)===-1)throw new _s('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(r){return r},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=i7t(t.styleAliases||null),n7t.indexOf(this.kind)===-1)throw new _s('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}function Bj(e,t){var r=[];return e[t].forEach(function(n){var i=r.length;r.forEach(function(a,s){a.tag===n.tag&&a.kind===n.kind&&a.multi===n.multi&&(i=s)}),r[i]=n}),r}function s7t(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function n(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(i)):e[i.kind][i.tag]=e.fallback[i.tag]=i}for(o(n,"collectType"),t=0,r=arguments.length;t=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:r*parseFloat(t,10)}function R7t(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Fi.isNegativeZero(e))return"-0.0";return r=e.toString(10),D7t.test(r)?r.replace("e",".e"):r}function N7t(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Fi.isNegativeZero(e))}function O7t(e){return e===null?!1:eK.exec(e)!==null||rK.exec(e)!==null}function P7t(e){var t,r,n,i,a,s,l,u=0,h=null,f,d,p;if(t=eK.exec(e),t===null&&(t=rK.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(r,n,i));if(a=+t[4],s=+t[5],l=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(f=+t[10],d=+(t[11]||0),h=(f*60+d)*6e4,t[9]==="-"&&(h=-h)),p=new Date(Date.UTC(r,n,i,a,s,l,u)),h&&p.setTime(p.getTime()-h),p}function B7t(e){return e.toISOString()}function z7t(e){return e==="<<"||e===null}function G7t(e){if(e===null)return!1;var t,r,n=0,i=e.length,a=eL;for(r=0;r64)){if(t<0)return!1;n+=6}return n%8===0}function V7t(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,a=eL,s=0,l=[];for(t=0;t>16&255),l.push(s>>8&255),l.push(s&255)),s=s<<6|a.indexOf(n.charAt(t));return r=i%4*6,r===0?(l.push(s>>16&255),l.push(s>>8&255),l.push(s&255)):r===18?(l.push(s>>10&255),l.push(s>>2&255)):r===12&&l.push(s>>4&255),new Uint8Array(l)}function U7t(e){var t="",r=0,n,i,a=e.length,s=eL;for(n=0;n>18&63],t+=s[r>>12&63],t+=s[r>>6&63],t+=s[r&63]),r=(r<<8)+e[n];return i=a%3,i===0?(t+=s[r>>18&63],t+=s[r>>12&63],t+=s[r>>6&63],t+=s[r&63]):i===2?(t+=s[r>>10&63],t+=s[r>>4&63],t+=s[r<<2&63],t+=s[64]):i===1&&(t+=s[r>>2&63],t+=s[r<<4&63],t+=s[64],t+=s[64]),t}function H7t(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}function X7t(e){if(e===null)return!0;var t=[],r,n,i,a,s,l=e;for(r=0,n=l.length;r>10)+55296,(e-65536&1023)+56320)}function dAt(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||nK,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function uK(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=e7t(r),new _s(t,r)}function je(e,t){throw uK(e,t)}function H5(e,t){e.onWarning&&e.onWarning.call(null,uK(e,t))}function Vh(e,t,r,n){var i,a,s,l;if(t1&&(e.result+=Fi.repeat(` +`,t-1))}function pAt(e,t,r){var n,i,a,s,l,u,h,f,d=e.kind,p=e.result,m;if(m=e.input.charCodeAt(e.position),Ls(m)||vm(m)||m===35||m===38||m===42||m===33||m===124||m===62||m===39||m===34||m===37||m===64||m===96||(m===63||m===45)&&(i=e.input.charCodeAt(e.position+1),Ls(i)||r&&vm(i)))return!1;for(e.kind="scalar",e.result="",a=s=e.position,l=!1;m!==0;){if(m===58){if(i=e.input.charCodeAt(e.position+1),Ls(i)||r&&vm(i))break}else if(m===35){if(n=e.input.charCodeAt(e.position-1),Ls(n))break}else{if(e.position===e.lineStart&&q5(e)||r&&vm(m))break;if(kc(m))if(u=e.line,h=e.lineStart,f=e.lineIndent,Ai(e,!1,-1),e.lineIndent>=t){l=!0,m=e.input.charCodeAt(e.position);continue}else{e.position=s,e.line=u,e.lineStart=h,e.lineIndent=f;break}}l&&(Vh(e,a,s,!1),nL(e,e.line-u),a=s=e.position,l=!1),Rd(m)||(s=e.position+1),m=e.input.charCodeAt(++e.position)}return Vh(e,a,s,!1),e.result?!0:(e.kind=d,e.result=p,!1)}function mAt(e,t){var r,n,i;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(Vh(e,n,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)n=e.position,e.position++,i=e.position;else return!0;else kc(r)?(Vh(e,n,i,!0),nL(e,Ai(e,!1,t)),n=i=e.position):e.position===e.lineStart&&q5(e)?je(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);je(e,"unexpected end of the stream within a single quoted scalar")}function gAt(e,t){var r,n,i,a,s,l;if(l=e.input.charCodeAt(e.position),l!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;(l=e.input.charCodeAt(e.position))!==0;){if(l===34)return Vh(e,r,e.position,!0),e.position++,!0;if(l===92){if(Vh(e,r,e.position,!0),l=e.input.charCodeAt(++e.position),kc(l))Ai(e,!1,t);else if(l<256&&lK[l])e.result+=cK[l],e.position++;else if((s=uAt(l))>0){for(i=s,a=0;i>0;i--)l=e.input.charCodeAt(++e.position),(s=cAt(l))>=0?a=(a<<4)+s:je(e,"expected hexadecimal character");e.result+=fAt(a),e.position++}else je(e,"unknown escape sequence");r=n=e.position}else kc(l)?(Vh(e,r,n,!0),nL(e,Ai(e,!1,t)),r=n=e.position):e.position===e.lineStart&&q5(e)?je(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}je(e,"unexpected end of the stream within a double quoted scalar")}function yAt(e,t){var r=!0,n,i,a,s=e.tag,l,u=e.anchor,h,f,d,p,m,g=Object.create(null),y,v,x,b;if(b=e.input.charCodeAt(e.position),b===91)f=93,m=!1,l=[];else if(b===123)f=125,m=!0,l={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=l),b=e.input.charCodeAt(++e.position);b!==0;){if(Ai(e,!0,t),b=e.input.charCodeAt(e.position),b===f)return e.position++,e.tag=s,e.anchor=u,e.kind=m?"mapping":"sequence",e.result=l,!0;r?b===44&&je(e,"expected the node content, but found ','"):je(e,"missed comma between flow collection entries"),v=y=x=null,d=p=!1,b===63&&(h=e.input.charCodeAt(e.position+1),Ls(h)&&(d=p=!0,e.position++,Ai(e,!0,t))),n=e.line,i=e.lineStart,a=e.position,bm(e,t,V5,!1,!0),v=e.tag,y=e.result,Ai(e,!0,t),b=e.input.charCodeAt(e.position),(p||e.line===n)&&b===58&&(d=!0,b=e.input.charCodeAt(++e.position),Ai(e,!0,t),bm(e,t,V5,!1,!0),x=e.result),m?xm(e,l,g,v,y,x,n,i,a):d?l.push(xm(e,null,g,v,y,x,n,i,a)):l.push(y),Ai(e,!0,t),b=e.input.charCodeAt(e.position),b===44?(r=!0,b=e.input.charCodeAt(++e.position)):r=!1}je(e,"unexpected end of the stream within a flow collection")}function vAt(e,t){var r,n,i=j9,a=!1,s=!1,l=t,u=0,h=!1,f,d;if(d=e.input.charCodeAt(e.position),d===124)n=!1;else if(d===62)n=!0;else return!1;for(e.kind="scalar",e.result="";d!==0;)if(d=e.input.charCodeAt(++e.position),d===43||d===45)j9===i?i=d===43?Fj:aAt:je(e,"repeat of a chomping mode identifier");else if((f=hAt(d))>=0)f===0?je(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?je(e,"repeat of an indentation width identifier"):(l=t+f-1,s=!0);else break;if(Rd(d)){do d=e.input.charCodeAt(++e.position);while(Rd(d));if(d===35)do d=e.input.charCodeAt(++e.position);while(!kc(d)&&d!==0)}for(;d!==0;){for(rL(e),e.lineIndent=0,d=e.input.charCodeAt(e.position);(!s||e.lineIndentl&&(l=e.lineIndent),kc(d)){u++;continue}if(e.lineIndentt)&&u!==0)je(e,"bad indentation of a sequence entry");else if(e.lineIndentt)&&(v&&(s=e.line,l=e.lineStart,u=e.position),bm(e,t,U5,!0,i)&&(v?g=e.result:y=e.result),v||(xm(e,d,p,m,g,y,s,l,u),m=g=y=null),Ai(e,!0,-1),b=e.input.charCodeAt(e.position)),(e.line===a||e.lineIndent>t)&&b!==0)je(e,"bad indentation of a mapping entry");else if(e.lineIndentt?u=1:e.lineIndent===t?u=0:e.lineIndentt?u=1:e.lineIndent===t?u=0:e.lineIndent tag; it should be "scalar", not "'+e.kind+'"'),d=0,p=e.implicitTypes.length;d"),e.result!==null&&g.kind!==e.kind&&je(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+g.kind+'", not "'+e.kind+'"'),g.resolve(e.result,e.tag)?(e.result=g.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):je(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||f}function kAt(e){var t=e.position,r,n,i,a=!1,s;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(s=e.input.charCodeAt(e.position))!==0&&(Ai(e,!0,-1),s=e.input.charCodeAt(e.position),!(e.lineIndent>0||s!==37));){for(a=!0,s=e.input.charCodeAt(++e.position),r=e.position;s!==0&&!Ls(s);)s=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),i=[],n.length<1&&je(e,"directive name must not be less than one character in length");s!==0;){for(;Rd(s);)s=e.input.charCodeAt(++e.position);if(s===35){do s=e.input.charCodeAt(++e.position);while(s!==0&&!kc(s));break}if(kc(s))break;for(r=e.position;s!==0&&!Ls(s);)s=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}s!==0&&rL(e),Uh.call(Gj,n)?Gj[n](e,n,i):H5(e,'unknown document directive "'+n+'"')}if(Ai(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,Ai(e,!0,-1)):a&&je(e,"directives end mark is expected"),bm(e,e.lineIndent-1,U5,!1,!0),Ai(e,!0,-1),e.checkLineBreaks&&oAt.test(e.input.slice(t,e.position))&&H5(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&q5(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Ai(e,!0,-1));return}if(e.position"u"&&(r=t,t=null);var n=hK(e,r);if(typeof t!="function")return n;for(var i=0,a=n.length;i=55296&&r<=56319&&t+1=56320&&n<=57343)?(r-55296)*1024+n-56320+65536:r}function bK(e){var t=/^\n* /;return t.test(e)}function JAt(e,t,r,n,i,a,s,l){var u,h=0,f=null,d=!1,p=!1,m=n!==-1,g=-1,y=QAt(kv(e,0))&&ZAt(kv(e,e.length-1));if(t||s)for(u=0;u=65536?u+=2:u++){if(h=kv(e,u),!Av(h))return ym;y=y&&Yj(h,f,l),f=h}else{for(u=0;u=65536?u+=2:u++){if(h=kv(e,u),h===Cv)d=!0,m&&(p=p||u-g-1>n&&e[g+1]!==" ",g=u);else if(!Av(h))return ym;y=y&&Yj(h,f,l),f=h}p=p||m&&u-g-1>n&&e[g+1]!==" "}return!d&&!p?y&&!s&&!i(e)?wK:a===Sv?ym:J9:r>9&&bK(e)?ym:s?a===Sv?ym:J9:p?kK:TK}function t8t(e,t,r,n,i){e.dump=function(){if(t.length===0)return e.quotingType===Sv?'""':"''";if(!e.noCompatMode&&(HAt.indexOf(t)!==-1||WAt.test(t)))return e.quotingType===Sv?'"'+t+'"':"'"+t+"'";var a=e.indent*Math.max(1,r),s=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-a),l=n||e.flowLevel>-1&&r>=e.flowLevel;function u(h){return KAt(e,h)}switch(o(u,"testAmbiguity"),JAt(t,l,e.indent,s,u,e.quotingType,e.forceQuotes&&!n,i)){case wK:return t;case J9:return"'"+t.replace(/'/g,"''")+"'";case TK:return"|"+qj(t,e.indent)+Xj(Hj(t,a));case kK:return">"+qj(t,e.indent)+Xj(Hj(e8t(t,s),a));case ym:return'"'+r8t(t)+'"';default:throw new _s("impossible error: invalid scalar style")}}()}function qj(e,t){var r=bK(e)?String(t):"",n=e[e.length-1]===` +`,i=n&&(e[e.length-2]===` +`||e===` +`),a=i?"+":n?"":"-";return r+a+` +`}function Xj(e){return e[e.length-1]===` +`?e.slice(0,-1):e}function e8t(e,t){for(var r=/(\n+)([^\n]*)/g,n=function(){var h=e.indexOf(` +`);return h=h!==-1?h:e.length,r.lastIndex=h,jj(e.slice(0,h),t)}(),i=e[0]===` +`||e[0]===" ",a,s;s=r.exec(e);){var l=s[1],u=s[2];a=u[0]===" ",n+=l+(!i&&!a&&u!==""?` +`:"")+jj(u,t),i=a}return n}function jj(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,n,i=0,a,s=0,l=0,u="";n=r.exec(e);)l=n.index,l-i>t&&(a=s>i?s:l,u+=` +`+e.slice(i,a),i=a+1),s=l;return u+=` +`,e.length-i>t&&s>i?u+=e.slice(i,s)+` +`+e.slice(s+1):u+=e.slice(i),u.slice(1)}function r8t(e){for(var t="",r=0,n,i=0;i=65536?i+=2:i++)r=kv(e,i),n=Pa[r],!n&&Av(r)?(t+=e[i],r>=65536&&(t+=e[i+1])):t+=n||qAt(r);return t}function n8t(e,t,r){var n="",i=e.tag,a,s,l;for(a=0,s=r.length;a"u"&&Ru(e,t,null,!1,!1))&&(n!==""&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}function Kj(e,t,r,n){var i="",a=e.tag,s,l,u;for(s=0,l=r.length;s"u"&&Ru(e,t+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=Z9(e,t)),e.dump&&Cv===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=a,e.dump=i||"[]"}function i8t(e,t,r){var n="",i=e.tag,a=Object.keys(r),s,l,u,h,f;for(s=0,l=a.length;s1024&&(f+="? "),f+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Ru(e,t,h,!1,!1)&&(f+=e.dump,n+=f));e.tag=i,e.dump="{"+n+"}"}function a8t(e,t,r,n){var i="",a=e.tag,s=Object.keys(r),l,u,h,f,d,p;if(e.sortKeys===!0)s.sort();else if(typeof e.sortKeys=="function")s.sort(e.sortKeys);else if(e.sortKeys)throw new _s("sortKeys must be a boolean or a function");for(l=0,u=s.length;l1024,d&&(e.dump&&Cv===e.dump.charCodeAt(0)?p+="?":p+="? "),p+=e.dump,d&&(p+=Z9(e,t)),Ru(e,t+1,f,!0,d)&&(e.dump&&Cv===e.dump.charCodeAt(0)?p+=":":p+=": ",p+=e.dump,i+=p));e.tag=a,e.dump=i||"{}"}function Qj(e,t,r){var n,i,a,s,l,u;for(i=r?e.explicitTypes:e.implicitTypes,a=0,s=i.length;a tag resolver accepts not "'+u+'" style');e.dump=n}return!0}return!1}function Ru(e,t,r,n,i,a,s){e.tag=null,e.dump=r,Qj(e,r,!1)||Qj(e,r,!0);var l=dK.call(e.dump),u=n,h;n&&(n=e.flowLevel<0||e.flowLevel>t);var f=l==="[object Object]"||l==="[object Array]",d,p;if(f&&(d=e.duplicates.indexOf(r),p=d!==-1),(e.tag!==null&&e.tag!=="?"||p||e.indent!==2&&t>0)&&(i=!1),p&&e.usedDuplicates[d])e.dump="*ref_"+d;else{if(f&&p&&!e.usedDuplicates[d]&&(e.usedDuplicates[d]=!0),l==="[object Object]")n&&Object.keys(e.dump).length!==0?(a8t(e,t,e.dump,i),p&&(e.dump="&ref_"+d+e.dump)):(i8t(e,t,e.dump),p&&(e.dump="&ref_"+d+" "+e.dump));else if(l==="[object Array]")n&&e.dump.length!==0?(e.noArrayIndent&&!s&&t>0?Kj(e,t-1,e.dump,i):Kj(e,t,e.dump,i),p&&(e.dump="&ref_"+d+e.dump)):(n8t(e,t,e.dump),p&&(e.dump="&ref_"+d+" "+e.dump));else if(l==="[object String]")e.tag!=="?"&&t8t(e,e.dump,t,a,u);else{if(l==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new _s("unacceptable kind of an object to dump "+l)}e.tag!==null&&e.tag!=="?"&&(h=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?h="!"+h:h.slice(0,18)==="tag:yaml.org,2002:"?h="!!"+h.slice(18):h="!<"+h+">",e.dump=h+" "+e.dump)}return!0}function s8t(e,t){var r=[],n=[],i,a;for(tL(e,r,n),i=0,a=n.length;i{"use strict";o(Zj,"isNothing");o(USt,"isObject");o(HSt,"toArray");o(WSt,"extend");o(YSt,"repeat");o(qSt,"isNegativeZero");XSt=Zj,jSt=USt,KSt=HSt,QSt=YSt,ZSt=qSt,JSt=WSt,Fi={isNothing:XSt,isObject:jSt,toArray:KSt,repeat:QSt,isNegativeZero:ZSt,extend:JSt};o(Jj,"formatError");o(Ev,"YAMLException$1");Ev.prototype=Object.create(Error.prototype);Ev.prototype.constructor=Ev;Ev.prototype.toString=o(function(t){return this.name+": "+Jj(this,t)},"toString");_s=Ev;o(q9,"getLine");o(X9,"padStart");o(t7t,"makeSnippet");e7t=t7t,r7t=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],n7t=["scalar","sequence","mapping"];o(i7t,"compileStyleAliases");o(a7t,"Type$1");Oa=a7t;o(Bj,"compileList");o(s7t,"compileMap");o(K9,"Schema$1");K9.prototype.extend=o(function(t){var r=[],n=[];if(t instanceof Oa)n.push(t);else if(Array.isArray(t))n=n.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(r=r.concat(t.implicit)),t.explicit&&(n=n.concat(t.explicit));else throw new _s("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(a){if(!(a instanceof Oa))throw new _s("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(a.loadKind&&a.loadKind!=="scalar")throw new _s("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(a.multi)throw new _s("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(a){if(!(a instanceof Oa))throw new _s("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(K9.prototype);return i.implicit=(this.implicit||[]).concat(r),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=Bj(i,"implicit"),i.compiledExplicit=Bj(i,"explicit"),i.compiledTypeMap=s7t(i.compiledImplicit,i.compiledExplicit),i},"extend");o7t=K9,l7t=new Oa("tag:yaml.org,2002:str",{kind:"scalar",construct:o(function(e){return e!==null?e:""},"construct")}),c7t=new Oa("tag:yaml.org,2002:seq",{kind:"sequence",construct:o(function(e){return e!==null?e:[]},"construct")}),u7t=new Oa("tag:yaml.org,2002:map",{kind:"mapping",construct:o(function(e){return e!==null?e:{}},"construct")}),h7t=new o7t({explicit:[l7t,c7t,u7t]});o(f7t,"resolveYamlNull");o(d7t,"constructYamlNull");o(p7t,"isNull");m7t=new Oa("tag:yaml.org,2002:null",{kind:"scalar",resolve:f7t,construct:d7t,predicate:p7t,represent:{canonical:o(function(){return"~"},"canonical"),lowercase:o(function(){return"null"},"lowercase"),uppercase:o(function(){return"NULL"},"uppercase"),camelcase:o(function(){return"Null"},"camelcase"),empty:o(function(){return""},"empty")},defaultStyle:"lowercase"});o(g7t,"resolveYamlBoolean");o(y7t,"constructYamlBoolean");o(v7t,"isBoolean");x7t=new Oa("tag:yaml.org,2002:bool",{kind:"scalar",resolve:g7t,construct:y7t,predicate:v7t,represent:{lowercase:o(function(e){return e?"true":"false"},"lowercase"),uppercase:o(function(e){return e?"TRUE":"FALSE"},"uppercase"),camelcase:o(function(e){return e?"True":"False"},"camelcase")},defaultStyle:"lowercase"});o(b7t,"isHexCode");o(w7t,"isOctCode");o(T7t,"isDecCode");o(k7t,"resolveYamlInteger");o(E7t,"constructYamlInteger");o(C7t,"isInteger");S7t=new Oa("tag:yaml.org,2002:int",{kind:"scalar",resolve:k7t,construct:E7t,predicate:C7t,represent:{binary:o(function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},"binary"),octal:o(function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},"octal"),decimal:o(function(e){return e.toString(10)},"decimal"),hexadecimal:o(function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),A7t=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");o(_7t,"resolveYamlFloat");o(L7t,"constructYamlFloat");D7t=/^[-+]?[0-9]+e/;o(R7t,"representYamlFloat");o(N7t,"isFloat");M7t=new Oa("tag:yaml.org,2002:float",{kind:"scalar",resolve:_7t,construct:L7t,predicate:N7t,represent:R7t,defaultStyle:"lowercase"}),tK=h7t.extend({implicit:[m7t,x7t,S7t,M7t]}),I7t=tK,eK=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),rK=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]))?))?$");o(O7t,"resolveYamlTimestamp");o(P7t,"constructYamlTimestamp");o(B7t,"representYamlTimestamp");F7t=new Oa("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:O7t,construct:P7t,instanceOf:Date,represent:B7t});o(z7t,"resolveYamlMerge");$7t=new Oa("tag:yaml.org,2002:merge",{kind:"scalar",resolve:z7t}),eL=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= +\r`;o(G7t,"resolveYamlBinary");o(V7t,"constructYamlBinary");o(U7t,"representYamlBinary");o(H7t,"isBinary");W7t=new Oa("tag:yaml.org,2002:binary",{kind:"scalar",resolve:G7t,construct:V7t,predicate:H7t,represent:U7t}),Y7t=Object.prototype.hasOwnProperty,q7t=Object.prototype.toString;o(X7t,"resolveYamlOmap");o(j7t,"constructYamlOmap");K7t=new Oa("tag:yaml.org,2002:omap",{kind:"sequence",resolve:X7t,construct:j7t}),Q7t=Object.prototype.toString;o(Z7t,"resolveYamlPairs");o(J7t,"constructYamlPairs");tAt=new Oa("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Z7t,construct:J7t}),eAt=Object.prototype.hasOwnProperty;o(rAt,"resolveYamlSet");o(nAt,"constructYamlSet");iAt=new Oa("tag:yaml.org,2002:set",{kind:"mapping",resolve:rAt,construct:nAt}),nK=I7t.extend({implicit:[F7t,$7t],explicit:[W7t,K7t,tAt,iAt]}),Uh=Object.prototype.hasOwnProperty,V5=1,iK=2,aK=3,U5=4,j9=1,aAt=2,Fj=3,sAt=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,oAt=/[\x85\u2028\u2029]/,lAt=/[,\[\]\{\}]/,sK=/^(?:!|!!|![a-z\-]+!)$/i,oK=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;o(zj,"_class");o(kc,"is_EOL");o(Rd,"is_WHITE_SPACE");o(Ls,"is_WS_OR_EOL");o(vm,"is_FLOW_INDICATOR");o(cAt,"fromHexCode");o(uAt,"escapedHexLen");o(hAt,"fromDecimalCode");o($j,"simpleEscapeSequence");o(fAt,"charFromCodepoint");lK=new Array(256),cK=new Array(256);for(Dd=0;Dd<256;Dd++)lK[Dd]=$j(Dd)?1:0,cK[Dd]=$j(Dd);o(dAt,"State$1");o(uK,"generateError");o(je,"throwError");o(H5,"throwWarning");Gj={YAML:o(function(t,r,n){var i,a,s;t.version!==null&&je(t,"duplication of %YAML directive"),n.length!==1&&je(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&je(t,"ill-formed argument of the YAML directive"),a=parseInt(i[1],10),s=parseInt(i[2],10),a!==1&&je(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=s<2,s!==1&&s!==2&&H5(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:o(function(t,r,n){var i,a;n.length!==2&&je(t,"TAG directive accepts exactly two arguments"),i=n[0],a=n[1],sK.test(i)||je(t,"ill-formed tag handle (first argument) of the TAG directive"),Uh.call(t.tagMap,i)&&je(t,'there is a previously declared suffix for "'+i+'" tag handle'),oK.test(a)||je(t,"ill-formed tag prefix (second argument) of the TAG directive");try{a=decodeURIComponent(a)}catch{je(t,"tag prefix is malformed: "+a)}t.tagMap[i]=a},"handleTagDirective")};o(Vh,"captureSegment");o(Vj,"mergeMappings");o(xm,"storeMappingPair");o(rL,"readLineBreak");o(Ai,"skipSeparationSpace");o(q5,"testDocumentSeparator");o(nL,"writeFoldedLines");o(pAt,"readPlainScalar");o(mAt,"readSingleQuotedScalar");o(gAt,"readDoubleQuotedScalar");o(yAt,"readFlowCollection");o(vAt,"readBlockScalar");o(Uj,"readBlockSequence");o(xAt,"readBlockMapping");o(bAt,"readTagProperty");o(wAt,"readAnchorProperty");o(TAt,"readAlias");o(bm,"composeNode");o(kAt,"readDocument");o(hK,"loadDocuments");o(EAt,"loadAll$1");o(CAt,"load$1");SAt=EAt,AAt=CAt,fK={loadAll:SAt,load:AAt},dK=Object.prototype.toString,pK=Object.prototype.hasOwnProperty,iL=65279,_At=9,Cv=10,LAt=13,DAt=32,RAt=33,NAt=34,Q9=35,MAt=37,IAt=38,OAt=39,PAt=42,mK=44,BAt=45,W5=58,FAt=61,zAt=62,$At=63,GAt=64,gK=91,yK=93,VAt=96,vK=123,UAt=124,xK=125,Pa={};Pa[0]="\\0";Pa[7]="\\a";Pa[8]="\\b";Pa[9]="\\t";Pa[10]="\\n";Pa[11]="\\v";Pa[12]="\\f";Pa[13]="\\r";Pa[27]="\\e";Pa[34]='\\"';Pa[92]="\\\\";Pa[133]="\\N";Pa[160]="\\_";Pa[8232]="\\L";Pa[8233]="\\P";HAt=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],WAt=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;o(YAt,"compileStyleMap");o(qAt,"encodeHex");XAt=1,Sv=2;o(jAt,"State");o(Hj,"indentString");o(Z9,"generateNextLine");o(KAt,"testImplicitResolving");o(Y5,"isWhitespace");o(Av,"isPrintable");o(Wj,"isNsCharOrWhitespace");o(Yj,"isPlainSafe");o(QAt,"isPlainSafeFirst");o(ZAt,"isPlainSafeLast");o(kv,"codePointAt");o(bK,"needIndentIndicator");wK=1,J9=2,TK=3,kK=4,ym=5;o(JAt,"chooseScalarStyle");o(t8t,"writeScalar");o(qj,"blockHeader");o(Xj,"dropEndingNewline");o(e8t,"foldString");o(jj,"foldLine");o(r8t,"escapeString");o(n8t,"writeFlowSequence");o(Kj,"writeBlockSequence");o(i8t,"writeFlowMapping");o(a8t,"writeBlockMapping");o(Qj,"detectType");o(Ru,"writeNode");o(s8t,"getDuplicateReferences");o(tL,"inspectNode");o(o8t,"dump$1");l8t=o8t,c8t={dump:l8t};o(aL,"renamed");X5=tK,j5=fK.load,LEe=fK.loadAll,DEe=c8t.dump,REe=aL("safeLoad","load"),NEe=aL("safeLoadAll","loadAll"),MEe=aL("safeDump","dump")});function lL(e){let t=[];for(let r of e){let n=Lv.get(r);n?.styles&&(t=[...t,...n.styles??[]].map(i=>i.trim())),n?.textStyles&&(t=[...t,...n.textStyles??[]].map(i=>i.trim()))}return t}var u8t,CK,wm,Hh,Ds,Lv,Nu,cL,uL,K5,oL,Go,Q5,Z5,J5,tw,h8t,f8t,d8t,p8t,m8t,g8t,y8t,hL,v8t,x8t,b8t,SK,w8t,T8t,fL,AK,_K,k8t,LK,E8t,C8t,S8t,A8t,_8t,_v,DK,RK,L8t,D8t,NK,R8t,N8t,M8t,I8t,O8t,MK,IK,P8t,B8t,F8t,z8t,$8t,G8t,ew,dL=R(()=>{"use strict";ur();_r();Ue();hr();ce();sL();Ci();u8t="flowchart-",CK=0,wm=pt(),Hh=new Map,Ds=[],Lv=new Map,Nu=[],cL=new Map,uL=new Map,K5=0,oL=!0,Z5=[],J5=o(e=>Yt.sanitizeText(e,wm),"sanitizeText"),tw=o(function(e){for(let t of Hh.values())if(t.id===e)return t.domId;return e},"lookUpDomId"),h8t=o(function(e,t,r,n,i,a,s={},l){if(!e||e.trim().length===0)return;let u,h=Hh.get(e);if(h===void 0&&(h={id:e,labelType:"text",domId:u8t+e+"-"+CK,styles:[],classes:[]},Hh.set(e,h)),CK++,t!==void 0?(wm=pt(),u=J5(t.text.trim()),h.labelType=t.type,u.startsWith('"')&&u.endsWith('"')&&(u=u.substring(1,u.length-1)),h.text=u):h.text===void 0&&(h.text=e),r!==void 0&&(h.type=r),n?.forEach(function(f){h.styles.push(f)}),i?.forEach(function(f){h.classes.push(f)}),a!==void 0&&(h.dir=a),h.props===void 0?h.props=s:s!==void 0&&Object.assign(h.props,s),l!==void 0){let f;l.includes(` +`)?f=l+` +`:f=`{ +`+l+` +}`;let d=j5(f,{schema:X5});if(d.shape&&(d.shape!==d.shape.toLowerCase()||d.shape.includes("_")))throw new Error(`No such shape: ${d.shape}. Shape names should be lowercase.`);d?.shape&&(h.type=d?.shape),d?.label&&(h.text=d?.label),d?.icon&&(h.icon=d?.icon,!d.label?.trim()&&h.text===e&&(h.text="")),d?.form&&(h.form=d?.form),d?.pos&&(h.pos=d?.pos),d?.img&&(h.img=d?.img,!d.label?.trim()&&h.text===e&&(h.text="")),d?.constraint&&(h.constraint=d.constraint),d.w&&(h.assetWidth=Number(d.w)),d.h&&(h.assetHeight=Number(d.h))}},"addVertex"),f8t=o(function(e,t,r){let a={start:e,end:t,type:void 0,text:"",labelType:"text"};V.info("abc78 Got edge...",a);let s=r.text;if(s!==void 0&&(a.text=J5(s.text.trim()),a.text.startsWith('"')&&a.text.endsWith('"')&&(a.text=a.text.substring(1,a.text.length-1)),a.labelType=s.type),r!==void 0&&(a.type=r.type,a.stroke=r.stroke,a.length=r.length>10?10:r.length),Ds.length<(wm.maxEdges??500))V.info("Pushing edge..."),Ds.push(a);else throw new Error(`Edge limit exceeded. ${Ds.length} edges found, but the limit is ${wm.maxEdges}. + +Initialize mermaid with maxEdges set to a higher number to allow more edges. +You cannot set this config via configuration inside the diagram as it is a secure config. +You have to call mermaid.initialize.`)},"addSingleLink"),d8t=o(function(e,t,r){V.info("addLink",e,t,r);for(let n of e)for(let i of t)f8t(n,i,r)},"addLink"),p8t=o(function(e,t){e.forEach(function(r){r==="default"?Ds.defaultInterpolate=t:Ds[r].interpolate=t})},"updateLinkInterpolate"),m8t=o(function(e,t){e.forEach(function(r){if(typeof r=="number"&&r>=Ds.length)throw new Error(`The index ${r} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${Ds.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);r==="default"?Ds.defaultStyle=t:(Ds[r].style=t,(Ds[r]?.style?.length??0)>0&&!Ds[r]?.style?.some(n=>n?.startsWith("fill"))&&Ds[r]?.style?.push("fill:none"))})},"updateLink"),g8t=o(function(e,t){e.split(",").forEach(function(r){let n=Lv.get(r);n===void 0&&(n={id:r,styles:[],textStyles:[]},Lv.set(r,n)),t?.forEach(function(i){if(/color/.exec(i)){let a=i.replace("fill","bgFill");n.textStyles.push(a)}n.styles.push(i)})})},"addClass"),y8t=o(function(e){Go=e,/.*/.exec(Go)&&(Go="LR"),/.*v/.exec(Go)&&(Go="TB"),Go==="TD"&&(Go="TB")},"setDirection"),hL=o(function(e,t){for(let r of e.split(",")){let n=Hh.get(r);n&&n.classes.push(t);let i=cL.get(r);i&&i.classes.push(t)}},"setClass"),v8t=o(function(e,t){if(t!==void 0){t=J5(t);for(let r of e.split(","))uL.set(Q5==="gen-1"?tw(r):r,t)}},"setTooltip"),x8t=o(function(e,t,r){let n=tw(e);if(pt().securityLevel!=="loose"||t===void 0)return;let i=[];if(typeof r=="string"){i=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let s=0;s")),i.classed("hover",!0)}).on("mouseout",function(){t.transition().duration(500).style("opacity",0),Gt(this).classed("hover",!1)})},"setupToolTips");Z5.push(LK);E8t=o(function(e="gen-1"){Hh=new Map,Lv=new Map,Ds=[],Z5=[LK],Nu=[],cL=new Map,K5=0,uL=new Map,oL=!0,Q5=e,wm=pt(),Ar()},"clear"),C8t=o(e=>{Q5=e||"gen-2"},"setGen"),S8t=o(function(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"},"defaultStyle"),A8t=o(function(e,t,r){let n=e.text.trim(),i=r.text;e===r&&/\s/.exec(r.text)&&(n=void 0);function a(h){let f={boolean:{},number:{},string:{}},d=[],p;return{nodeList:h.filter(function(g){let y=typeof g;return g.stmt&&g.stmt==="dir"?(p=g.value,!1):g.trim()===""?!1:y in f?f[y].hasOwnProperty(g)?!1:f[y][g]=!0:d.includes(g)?!1:d.push(g)}),dir:p}}o(a,"uniq");let{nodeList:s,dir:l}=a(t.flat());if(Q5==="gen-1")for(let h=0;h2e3)return{result:!1,count:0};if(DK[_v]=t,Nu[t].id===e)return{result:!0,count:0};let n=0,i=1;for(;n=0){let s=RK(e,a);if(s.result)return{result:!0,count:i+s.count};i=i+s.count}n=n+1}return{result:!1,count:i}},"indexNodes2"),L8t=o(function(e){return DK[e]},"getDepthFirstPos"),D8t=o(function(){_v=-1,Nu.length>0&&RK("none",Nu.length-1)},"indexNodes"),NK=o(function(){return Nu},"getSubGraphs"),R8t=o(()=>oL?(oL=!1,!0):!1,"firstGraph"),N8t=o(e=>{let t=e.trim(),r="arrow_open";switch(t[0]){case"<":r="arrow_point",t=t.slice(1);break;case"x":r="arrow_cross",t=t.slice(1);break;case"o":r="arrow_circle",t=t.slice(1);break}let n="normal";return t.includes("=")&&(n="thick"),t.includes(".")&&(n="dotted"),{type:r,stroke:n}},"destructStartLink"),M8t=o((e,t)=>{let r=t.length,n=0;for(let i=0;i{let t=e.trim(),r=t.slice(0,-1),n="arrow_open";switch(t.slice(-1)){case"x":n="arrow_cross",t.startsWith("x")&&(n="double_"+n,r=r.slice(1));break;case">":n="arrow_point",t.startsWith("<")&&(n="double_"+n,r=r.slice(1));break;case"o":n="arrow_circle",t.startsWith("o")&&(n="double_"+n,r=r.slice(1));break}let i="normal",a=r.length-1;r.startsWith("=")&&(i="thick"),r.startsWith("~")&&(i="invisible");let s=M8t(".",r);return s&&(i="dotted",a=s),{type:n,stroke:i,length:a}},"destructEndLink"),O8t=o((e,t)=>{let r=I8t(e),n;if(t){if(n=N8t(t),n.stroke!==r.stroke)return{type:"INVALID",stroke:"INVALID"};if(n.type==="arrow_open")n.type=r.type;else{if(n.type!==r.type)return{type:"INVALID",stroke:"INVALID"};n.type="double_"+n.type}return n.type==="double_arrow"&&(n.type="double_arrow_point"),n.length=r.length,n}return r},"destructLink"),MK=o((e,t)=>{for(let r of e)if(r.nodes.includes(t))return!0;return!1},"exists"),IK=o((e,t)=>{let r=[];return e.nodes.forEach((n,i)=>{MK(t,n)||r.push(e.nodes[i])}),{nodes:r}},"makeUniq"),P8t={firstGraph:R8t},B8t=o(e=>e.img?"imageSquare":e.icon?e.form==="circle"?"iconCircle":e.form==="square"?"iconSquare":e.form==="rounded"?"iconRounded":"icon":e.type==="square"?"squareRect":e.type==="round"?"roundedRect":e.type??"squareRect","getTypeFromVertex"),F8t=o((e,t)=>e.find(r=>r.id===t),"findNode"),z8t=o(e=>{let t="none",r="arrow_point";switch(e){case"arrow_point":case"arrow_circle":case"arrow_cross":r=e;break;case"double_arrow_point":case"double_arrow_circle":case"double_arrow_cross":t=e.replace("double_",""),r=t;break}return{arrowTypeStart:t,arrowTypeEnd:r}},"destructEdgeType"),$8t=o((e,t,r,n,i,a)=>{let s=r.get(e.id),l=n.get(e.id)??!1,u=F8t(t,e.id);u?(u.cssStyles=e.styles,u.cssCompiledStyles=lL(e.classes),u.cssClasses=e.classes.join(" ")):t.push({id:e.id,label:e.text,labelStyle:"",parentId:s,padding:i.flowchart?.padding||8,cssStyles:e.styles,cssCompiledStyles:lL(["default","node",...e.classes]),cssClasses:"default "+e.classes.join(" "),shape:B8t(e),dir:e.dir,domId:e.domId,isGroup:l,look:a,link:e.link,linkTarget:e.linkTarget,tooltip:SK(e.id),icon:e.icon,pos:e.pos,img:e.img,assetWidth:e.assetWidth,assetHeight:e.assetHeight,constraint:e.constraint})},"addNodeFromVertex");o(lL,"getCompiledStyles");G8t=o(()=>{let e=pt(),t=[],r=[],n=NK(),i=new Map,a=new Map;for(let u=n.length-1;u>=0;u--){let h=n[u];h.nodes.length>0&&a.set(h.id,!0);for(let f of h.nodes)i.set(f,h.id)}for(let u=n.length-1;u>=0;u--){let h=n[u];t.push({id:h.id,label:h.title,labelStyle:"",parentId:i.get(h.id),padding:8,cssCompiledStyles:lL(h.classes),cssClasses:h.classes.join(" "),shape:"rect",dir:h.dir,isGroup:!0,look:e.look})}AK().forEach(u=>{$8t(u,t,i,a,e,e.look||"classic")});let l=_K();return l.forEach((u,h)=>{let{arrowTypeStart:f,arrowTypeEnd:d}=z8t(u.type),p=[...l.defaultStyle??[]];u.style&&p.push(...u.style);let m={id:B5(u.start,u.end,{counter:h,prefix:"L"}),start:u.start,end:u.end,type:u.type??"normal",label:u.text,labelpos:"c",thickness:u.stroke,minlen:u.length,classes:u?.stroke==="invisible"?"":"edge-thickness-normal edge-pattern-solid flowchart-link",arrowTypeStart:u?.stroke==="invisible"?"none":f,arrowTypeEnd:u?.stroke==="invisible"?"none":d,arrowheadStyle:"fill: #333",labelStyle:p,style:p,pattern:u.stroke,look:e.look};r.push(m)}),{nodes:t,edges:r,other:{},config:e}},"getData"),ew={defaultConfig:o(()=>X4.flowchart,"defaultConfig"),setAccTitle:Mr,getAccTitle:Br,getAccDescription:zr,getData:G8t,setAccDescription:Fr,addVertex:h8t,lookUpDomId:tw,addLink:d8t,updateLinkInterpolate:p8t,updateLink:m8t,addClass:g8t,setDirection:y8t,setClass:hL,setTooltip:v8t,getTooltip:SK,setClickEvent:w8t,setLink:b8t,bindFunctions:T8t,getDirection:fL,getVertices:AK,getEdges:_K,getClasses:k8t,clear:E8t,setGen:C8t,defaultStyle:S8t,addSubGraph:A8t,getDepthFirstPos:L8t,indexNodes:D8t,getSubGraphs:NK,destructLink:O8t,lex:P8t,exists:MK,makeUniq:IK,setDiagramTitle:cn,getDiagramTitle:Jr}});var rw,pL=R(()=>{"use strict";ur();rw=o((e,t)=>{let r;return t==="sandbox"&&(r=Gt("#i"+e)),(t==="sandbox"?Gt(r.nodes()[0].contentDocument.body):Gt("body")).select(`[id="${e}"]`)},"getDiagramElement")});var io,Nd=R(()=>{"use strict";io=o(({flowchart:e})=>{let t=e?.subGraphTitleMargin?.top??0,r=e?.subGraphTitleMargin?.bottom??0,n=t+r;return{subGraphTitleTopMargin:t,subGraphTitleBottomMargin:r,subGraphTitleTotalMargin:n}},"getSubGraphTitleMargins")});function mL(e,t,r){if(e&&e.length){let[n,i]=t,a=Math.PI/180*r,s=Math.cos(a),l=Math.sin(a);for(let u of e){let[h,f]=u;u[0]=(h-n)*s-(f-i)*l+n,u[1]=(h-n)*l+(f-i)*s+i}}}function V8t(e,t){return e[0]===t[0]&&e[1]===t[1]}function U8t(e,t,r,n=1){let i=r,a=Math.max(t,.1),s=e[0]&&e[0][0]&&typeof e[0][0]=="number"?[e]:e,l=[0,0];if(i)for(let h of s)mL(h,l,i);let u=function(h,f,d){let p=[];for(let b of h){let w=[...b];V8t(w[0],w[w.length-1])||w.push([w[0][0],w[0][1]]),w.length>2&&p.push(w)}let m=[];f=Math.max(f,.1);let g=[];for(let b of p)for(let w=0;wb.yminw.ymin?1:b.xw.x?1:b.ymax===w.ymax?0:(b.ymax-w.ymax)/Math.abs(b.ymax-w.ymax)),!g.length)return m;let y=[],v=g[0].ymin,x=0;for(;y.length||g.length;){if(g.length){let b=-1;for(let w=0;wv);w++)b=w;g.splice(0,b+1).forEach(w=>{y.push({s:v,edge:w})})}if(y=y.filter(b=>!(b.edge.ymax<=v)),y.sort((b,w)=>b.edge.x===w.edge.x?0:(b.edge.x-w.edge.x)/Math.abs(b.edge.x-w.edge.x)),(d!==1||x%f==0)&&y.length>1)for(let b=0;b=y.length)break;let S=y[b].edge,T=y[w].edge;m.push([[Math.round(S.x),v],[Math.round(T.x),v]])}v+=d,y.forEach(b=>{b.edge.x=b.edge.x+d*b.edge.islope}),x++}return m}(s,a,n);if(i){for(let h of s)mL(h,l,-i);(function(h,f,d){let p=[];h.forEach(m=>p.push(...m)),mL(p,f,d)})(u,l,-i)}return u}function Mv(e,t){var r;let n=t.hachureAngle+90,i=t.hachureGap;i<0&&(i=4*t.strokeWidth),i=Math.round(Math.max(i,.1));let a=1;return t.roughness>=1&&(((r=t.randomizer)===null||r===void 0?void 0:r.next())||Math.random())>.7&&(a=i),U8t(e,i,n,a||1)}function hw(e){let t=e[0],r=e[1];return Math.sqrt(Math.pow(t[0]-r[0],2)+Math.pow(t[1]-r[1],2))}function yL(e,t){return e.type===t}function RL(e){let t=[],r=function(s){let l=new Array;for(;s!=="";)if(s.match(/^([ \t\r\n,]+)/))s=s.substr(RegExp.$1.length);else if(s.match(/^([aAcChHlLmMqQsStTvVzZ])/))l[l.length]={type:H8t,text:RegExp.$1},s=s.substr(RegExp.$1.length);else{if(!s.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];l[l.length]={type:gL,text:`${parseFloat(RegExp.$1)}`},s=s.substr(RegExp.$1.length)}return l[l.length]={type:OK,text:""},l}(e),n="BOD",i=0,a=r[i];for(;!yL(a,OK);){let s=0,l=[];if(n==="BOD"){if(a.text!=="M"&&a.text!=="m")return RL("M0,0"+e);i++,s=nw[a.text],n=a.text}else yL(a,gL)?s=nw[n]:(i++,s=nw[a.text],n=a.text);if(!(i+sf%2?h+r:h+t);a.push({key:"C",data:u}),t=u[4],r=u[5];break}case"Q":a.push({key:"Q",data:[...l]}),t=l[2],r=l[3];break;case"q":{let u=l.map((h,f)=>f%2?h+r:h+t);a.push({key:"Q",data:u}),t=u[2],r=u[3];break}case"A":a.push({key:"A",data:[...l]}),t=l[5],r=l[6];break;case"a":t+=l[5],r+=l[6],a.push({key:"A",data:[l[0],l[1],l[2],l[3],l[4],t,r]});break;case"H":a.push({key:"H",data:[...l]}),t=l[0];break;case"h":t+=l[0],a.push({key:"H",data:[t]});break;case"V":a.push({key:"V",data:[...l]}),r=l[0];break;case"v":r+=l[0],a.push({key:"V",data:[r]});break;case"S":a.push({key:"S",data:[...l]}),t=l[2],r=l[3];break;case"s":{let u=l.map((h,f)=>f%2?h+r:h+t);a.push({key:"S",data:u}),t=u[2],r=u[3];break}case"T":a.push({key:"T",data:[...l]}),t=l[0],r=l[1];break;case"t":t+=l[0],r+=l[1],a.push({key:"T",data:[t,r]});break;case"Z":case"z":a.push({key:"Z",data:[]}),t=n,r=i}return a}function HK(e){let t=[],r="",n=0,i=0,a=0,s=0,l=0,u=0;for(let{key:h,data:f}of e){switch(h){case"M":t.push({key:"M",data:[...f]}),[n,i]=f,[a,s]=f;break;case"C":t.push({key:"C",data:[...f]}),n=f[4],i=f[5],l=f[2],u=f[3];break;case"L":t.push({key:"L",data:[...f]}),[n,i]=f;break;case"H":n=f[0],t.push({key:"L",data:[n,i]});break;case"V":i=f[0],t.push({key:"L",data:[n,i]});break;case"S":{let d=0,p=0;r==="C"||r==="S"?(d=n+(n-l),p=i+(i-u)):(d=n,p=i),t.push({key:"C",data:[d,p,...f]}),l=f[0],u=f[1],n=f[2],i=f[3];break}case"T":{let[d,p]=f,m=0,g=0;r==="Q"||r==="T"?(m=n+(n-l),g=i+(i-u)):(m=n,g=i);let y=n+2*(m-n)/3,v=i+2*(g-i)/3,x=d+2*(m-d)/3,b=p+2*(g-p)/3;t.push({key:"C",data:[y,v,x,b,d,p]}),l=m,u=g,n=d,i=p;break}case"Q":{let[d,p,m,g]=f,y=n+2*(d-n)/3,v=i+2*(p-i)/3,x=m+2*(d-m)/3,b=g+2*(p-g)/3;t.push({key:"C",data:[y,v,x,b,m,g]}),l=d,u=p,n=m,i=g;break}case"A":{let d=Math.abs(f[0]),p=Math.abs(f[1]),m=f[2],g=f[3],y=f[4],v=f[5],x=f[6];d===0||p===0?(t.push({key:"C",data:[n,i,v,x,v,x]}),n=v,i=x):(n!==v||i!==x)&&(WK(n,i,v,x,d,p,m,g,y).forEach(function(b){t.push({key:"C",data:b})}),n=v,i=x);break}case"Z":t.push({key:"Z",data:[]}),n=a,i=s}r=h}return t}function Dv(e,t,r){return[e*Math.cos(r)-t*Math.sin(r),e*Math.sin(r)+t*Math.cos(r)]}function WK(e,t,r,n,i,a,s,l,u,h){let f=(d=s,Math.PI*d/180);var d;let p=[],m=0,g=0,y=0,v=0;if(h)[m,g,y,v]=h;else{[e,t]=Dv(e,t,-f),[r,n]=Dv(r,n,-f);let I=(e-r)/2,C=(t-n)/2,O=I*I/(i*i)+C*C/(a*a);O>1&&(O=Math.sqrt(O),i*=O,a*=O);let D=i*i,P=a*a,F=D*P-D*C*C-P*I*I,B=D*C*C+P*I*I,G=(l===u?-1:1)*Math.sqrt(Math.abs(F/B));y=G*i*C/a+(e+r)/2,v=G*-a*I/i+(t+n)/2,m=Math.asin(parseFloat(((t-v)/a).toFixed(9))),g=Math.asin(parseFloat(((n-v)/a).toFixed(9))),eg&&(m-=2*Math.PI),!u&&g>m&&(g-=2*Math.PI)}let x=g-m;if(Math.abs(x)>120*Math.PI/180){let I=g,C=r,O=n;g=u&&g>m?m+120*Math.PI/180*1:m+120*Math.PI/180*-1,p=WK(r=y+i*Math.cos(g),n=v+a*Math.sin(g),C,O,i,a,s,0,u,[g,I,y,v])}x=g-m;let b=Math.cos(m),w=Math.sin(m),S=Math.cos(g),T=Math.sin(g),E=Math.tan(x/4),_=4/3*i*E,A=4/3*a*E,L=[e,t],M=[e+_*w,t-A*b],N=[r+_*T,n-A*S],k=[r,n];if(M[0]=2*L[0]-M[0],M[1]=2*L[1]-M[1],h)return[M,N,k].concat(p);{p=[M,N,k].concat(p);let I=[];for(let C=0;C2){let i=[];for(let a=0;a2*Math.PI&&(m=0,g=2*Math.PI);let y=2*Math.PI/u.curveStepCount,v=Math.min(y/2,(g-m)/2),x=GK(v,h,f,d,p,m,g,1,u);if(!u.disableMultiStroke){let b=GK(v,h,f,d,p,m,g,1.5,u);x.push(...b)}return s&&(l?x.push(...Wh(h,f,h+d*Math.cos(m),f+p*Math.sin(m),u),...Wh(h,f,h+d*Math.cos(g),f+p*Math.sin(g),u)):x.push({op:"lineTo",data:[h,f]},{op:"lineTo",data:[h+d*Math.cos(m),f+p*Math.sin(m)]})),{type:"path",ops:x}}function FK(e,t){let r=HK(UK(RL(e))),n=[],i=[0,0],a=[0,0];for(let{key:s,data:l}of r)switch(s){case"M":a=[l[0],l[1]],i=[l[0],l[1]];break;case"L":n.push(...Wh(a[0],a[1],l[0],l[1],t)),a=[l[0],l[1]];break;case"C":{let[u,h,f,d,p,m]=l;n.push(...q8t(u,h,f,d,p,m,a,t)),a=[p,m];break}case"Z":n.push(...Wh(a[0],a[1],i[0],i[1],t)),a=[i[0],i[1]]}return{type:"path",ops:n}}function vL(e,t){let r=[];for(let n of e)if(n.length){let i=t.maxRandomnessOffset||0,a=n.length;if(a>2){r.push({op:"move",data:[n[0][0]+nr(i,t),n[0][1]+nr(i,t)]});for(let s=1;s500?.4:-.0016668*u+1.233334;let f=i.maxRandomnessOffset||0;f*f*100>l&&(f=u/10);let d=f/2,p=.2+.2*XK(i),m=i.bowing*i.maxRandomnessOffset*(n-t)/200,g=i.bowing*i.maxRandomnessOffset*(e-r)/200;m=nr(m,i,h),g=nr(g,i,h);let y=[],v=o(()=>nr(d,i,h),"M"),x=o(()=>nr(f,i,h),"k"),b=i.preserveVertices;return a&&(s?y.push({op:"move",data:[e+(b?0:v()),t+(b?0:v())]}):y.push({op:"move",data:[e+(b?0:nr(f,i,h)),t+(b?0:nr(f,i,h))]})),s?y.push({op:"bcurveTo",data:[m+e+(r-e)*p+v(),g+t+(n-t)*p+v(),m+e+2*(r-e)*p+v(),g+t+2*(n-t)*p+v(),r+(b?0:v()),n+(b?0:v())]}):y.push({op:"bcurveTo",data:[m+e+(r-e)*p+x(),g+t+(n-t)*p+x(),m+e+2*(r-e)*p+x(),g+t+2*(n-t)*p+x(),r+(b?0:x()),n+(b?0:x())]}),y}function iw(e,t,r){if(!e.length)return[];let n=[];n.push([e[0][0]+nr(t,r),e[0][1]+nr(t,r)]),n.push([e[0][0]+nr(t,r),e[0][1]+nr(t,r)]);for(let i=1;i3){let a=[],s=1-r.curveTightness;i.push({op:"move",data:[e[1][0],e[1][1]]});for(let l=1;l+21&&i.push(l)):i.push(l),i.push(e[t+3])}else{let u=e[t+0],h=e[t+1],f=e[t+2],d=e[t+3],p=Md(u,h,.5),m=Md(h,f,.5),g=Md(f,d,.5),y=Md(p,m,.5),v=Md(m,g,.5),x=Md(y,v,.5);_L([u,p,y,x],0,r,i),_L([x,v,g,d],0,r,i)}var a,s;return i}function j8t(e,t){return uw(e,0,e.length,t)}function uw(e,t,r,n,i){let a=i||[],s=e[t],l=e[r-1],u=0,h=1;for(let f=t+1;fu&&(u=d,h=f)}return Math.sqrt(u)>n?(uw(e,t,h+1,n,a),uw(e,h,r,n,a)):(a.length||a.push(s),a.push(l)),a}function xL(e,t=.15,r){let n=[],i=(e.length-1)/3;for(let a=0;a0?uw(n,0,n.length,r):n}var Nv,bL,wL,TL,kL,EL,Rs,CL,H8t,gL,OK,nw,W8t,ao,km,LL,aw,DL,Kt,Qe=R(()=>{"use strict";o(mL,"t");o(V8t,"e");o(U8t,"s");o(Mv,"n");Nv=class{static{o(this,"o")}constructor(t){this.helper=t}fillPolygons(t,r){return this._fillPolygons(t,r)}_fillPolygons(t,r){let n=Mv(t,r);return{type:"fillSketch",ops:this.renderLines(n,r)}}renderLines(t,r){let n=[];for(let i of t)n.push(...this.helper.doubleLineOps(i[0][0],i[0][1],i[1][0],i[1][1],r));return n}};o(hw,"a");bL=class extends Nv{static{o(this,"h")}fillPolygons(t,r){let n=r.hachureGap;n<0&&(n=4*r.strokeWidth),n=Math.max(n,.1);let i=Mv(t,Object.assign({},r,{hachureGap:n})),a=Math.PI/180*r.hachureAngle,s=[],l=.5*n*Math.cos(a),u=.5*n*Math.sin(a);for(let[h,f]of i)hw([h,f])&&s.push([[h[0]-l,h[1]+u],[...f]],[[h[0]+l,h[1]-u],[...f]]);return{type:"fillSketch",ops:this.renderLines(s,r)}}},wL=class extends Nv{static{o(this,"r")}fillPolygons(t,r){let n=this._fillPolygons(t,r),i=Object.assign({},r,{hachureAngle:r.hachureAngle+90}),a=this._fillPolygons(t,i);return n.ops=n.ops.concat(a.ops),n}},TL=class{static{o(this,"i")}constructor(t){this.helper=t}fillPolygons(t,r){let n=Mv(t,r=Object.assign({},r,{hachureAngle:0}));return this.dotsOnLines(n,r)}dotsOnLines(t,r){let n=[],i=r.hachureGap;i<0&&(i=4*r.strokeWidth),i=Math.max(i,.1);let a=r.fillWeight;a<0&&(a=r.strokeWidth/2);let s=i/4;for(let l of t){let u=hw(l),h=u/i,f=Math.ceil(h)-1,d=u-f*i,p=(l[0][0]+l[1][0])/2-i/4,m=Math.min(l[0][1],l[1][1]);for(let g=0;g{let l=hw(s),u=Math.floor(l/(n+i)),h=(l+i-u*(n+i))/2,f=s[0],d=s[1];f[0]>d[0]&&(f=s[1],d=s[0]);let p=Math.atan((d[1]-f[1])/(d[0]-f[0]));for(let m=0;m{let s=hw(a),l=Math.round(s/(2*r)),u=a[0],h=a[1];u[0]>h[0]&&(u=a[1],h=a[0]);let f=Math.atan((h[1]-u[1])/(h[0]-u[0]));for(let d=0;d2*Math.PI&&(_=0,A=2*Math.PI);let L=(A-_)/b.curveStepCount,M=[];for(let N=_;N<=A;N+=L)M.push([w+T*Math.cos(N),S+E*Math.sin(N)]);return M.push([w+T*Math.cos(A),S+E*Math.sin(A)]),M.push([w,S]),Tm([M],b)}(t,r,n,i,a,s,h));return h.stroke!==ao&&f.push(d),this._d("arc",f,h)}curve(t,r){let n=this._o(r),i=[],a=PK(t,n);if(n.fill&&n.fill!==ao)if(n.fillStyle==="solid"){let s=PK(t,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));i.push({type:"fillPath",ops:this._mergedShape(s.ops)})}else{let s=[],l=t;if(l.length){let u=typeof l[0][0]=="number"?[l]:l;for(let h of u)h.length<3?s.push(...h):h.length===3?s.push(...xL(VK([h[0],h[0],h[1],h[2]]),10,(1+n.roughness)/2)):s.push(...xL(VK(h),10,(1+n.roughness)/2))}s.length&&i.push(Tm([s],n))}return n.stroke!==ao&&i.push(a),this._d("curve",i,n)}polygon(t,r){let n=this._o(r),i=[],a=sw(t,!0,n);return n.fill&&(n.fillStyle==="solid"?i.push(vL([t],n)):i.push(Tm([t],n))),n.stroke!==ao&&i.push(a),this._d("polygon",i,n)}path(t,r){let n=this._o(r),i=[];if(!t)return this._d("path",i,n);t=(t||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");let a=n.fill&&n.fill!=="transparent"&&n.fill!==ao,s=n.stroke!==ao,l=!!(n.simplification&&n.simplification<1),u=function(f,d,p){let m=HK(UK(RL(f))),g=[],y=[],v=[0,0],x=[],b=o(()=>{x.length>=4&&y.push(...xL(x,d)),x=[]},"i"),w=o(()=>{b(),y.length&&(g.push(y),y=[])},"c");for(let{key:T,data:E}of m)switch(T){case"M":w(),v=[E[0],E[1]],y.push(v);break;case"L":b(),y.push([E[0],E[1]]);break;case"C":if(!x.length){let _=y.length?y[y.length-1]:v;x.push([_[0],_[1]])}x.push([E[0],E[1]]),x.push([E[2],E[3]]),x.push([E[4],E[5]]);break;case"Z":b(),y.push([v[0],v[1]])}if(w(),!p)return g;let S=[];for(let T of g){let E=j8t(T,p);E.length&&S.push(E)}return S}(t,1,l?4-4*(n.simplification||1):(1+n.roughness)/2),h=FK(t,n);if(a)if(n.fillStyle==="solid")if(u.length===1){let f=FK(t,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));i.push({type:"fillPath",ops:this._mergedShape(f.ops)})}else i.push(vL(u,n));else i.push(Tm(u,n));return s&&(l?u.forEach(f=>{i.push(sw(f,!1,n))}):i.push(h)),this._d("path",i,n)}opsToPath(t,r){let n="";for(let i of t.ops){let a=typeof r=="number"&&r>=0?i.data.map(s=>+s.toFixed(r)):i.data;switch(i.op){case"move":n+=`M${a[0]} ${a[1]} `;break;case"bcurveTo":n+=`C${a[0]} ${a[1]}, ${a[2]} ${a[3]}, ${a[4]} ${a[5]} `;break;case"lineTo":n+=`L${a[0]} ${a[1]} `}}return n.trim()}toPaths(t){let r=t.sets||[],n=t.options||this.defaultOptions,i=[];for(let a of r){let s=null;switch(a.type){case"path":s={d:this.opsToPath(a),stroke:n.stroke,strokeWidth:n.strokeWidth,fill:ao};break;case"fillPath":s={d:this.opsToPath(a),stroke:ao,strokeWidth:0,fill:n.fill||ao};break;case"fillSketch":s=this.fillSketch(a,n)}s&&i.push(s)}return i}fillSketch(t,r){let n=r.fillWeight;return n<0&&(n=r.strokeWidth/2),{d:this.opsToPath(t),stroke:r.fill||ao,strokeWidth:n,fill:ao}}_mergedShape(t){return t.filter((r,n)=>n===0||r.op!=="move")}},LL=class{static{o(this,"st")}constructor(t,r){this.canvas=t,this.ctx=this.canvas.getContext("2d"),this.gen=new km(r)}draw(t){let r=t.sets||[],n=t.options||this.getDefaultOptions(),i=this.ctx,a=t.options.fixedDecimalPlaceDigits;for(let s of r)switch(s.type){case"path":i.save(),i.strokeStyle=n.stroke==="none"?"transparent":n.stroke,i.lineWidth=n.strokeWidth,n.strokeLineDash&&i.setLineDash(n.strokeLineDash),n.strokeLineDashOffset&&(i.lineDashOffset=n.strokeLineDashOffset),this._drawToContext(i,s,a),i.restore();break;case"fillPath":{i.save(),i.fillStyle=n.fill||"";let l=t.shape==="curve"||t.shape==="polygon"||t.shape==="path"?"evenodd":"nonzero";this._drawToContext(i,s,a,l),i.restore();break}case"fillSketch":this.fillSketch(i,s,n)}}fillSketch(t,r,n){let i=n.fillWeight;i<0&&(i=n.strokeWidth/2),t.save(),n.fillLineDash&&t.setLineDash(n.fillLineDash),n.fillLineDashOffset&&(t.lineDashOffset=n.fillLineDashOffset),t.strokeStyle=n.fill||"",t.lineWidth=i,this._drawToContext(t,r,n.fixedDecimalPlaceDigits),t.restore()}_drawToContext(t,r,n,i="nonzero"){t.beginPath();for(let a of r.ops){let s=typeof n=="number"&&n>=0?a.data.map(l=>+l.toFixed(n)):a.data;switch(a.op){case"move":t.moveTo(s[0],s[1]);break;case"bcurveTo":t.bezierCurveTo(s[0],s[1],s[2],s[3],s[4],s[5]);break;case"lineTo":t.lineTo(s[0],s[1])}}r.type==="fillPath"?t.fill(i):t.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(t,r,n,i,a){let s=this.gen.line(t,r,n,i,a);return this.draw(s),s}rectangle(t,r,n,i,a){let s=this.gen.rectangle(t,r,n,i,a);return this.draw(s),s}ellipse(t,r,n,i,a){let s=this.gen.ellipse(t,r,n,i,a);return this.draw(s),s}circle(t,r,n,i){let a=this.gen.circle(t,r,n,i);return this.draw(a),a}linearPath(t,r){let n=this.gen.linearPath(t,r);return this.draw(n),n}polygon(t,r){let n=this.gen.polygon(t,r);return this.draw(n),n}arc(t,r,n,i,a,s,l=!1,u){let h=this.gen.arc(t,r,n,i,a,s,l,u);return this.draw(h),h}curve(t,r){let n=this.gen.curve(t,r);return this.draw(n),n}path(t,r){let n=this.gen.path(t,r);return this.draw(n),n}},aw="http://www.w3.org/2000/svg",DL=class{static{o(this,"ot")}constructor(t,r){this.svg=t,this.gen=new km(r)}draw(t){let r=t.sets||[],n=t.options||this.getDefaultOptions(),i=this.svg.ownerDocument||window.document,a=i.createElementNS(aw,"g"),s=t.options.fixedDecimalPlaceDigits;for(let l of r){let u=null;switch(l.type){case"path":u=i.createElementNS(aw,"path"),u.setAttribute("d",this.opsToPath(l,s)),u.setAttribute("stroke",n.stroke),u.setAttribute("stroke-width",n.strokeWidth+""),u.setAttribute("fill","none"),n.strokeLineDash&&u.setAttribute("stroke-dasharray",n.strokeLineDash.join(" ").trim()),n.strokeLineDashOffset&&u.setAttribute("stroke-dashoffset",`${n.strokeLineDashOffset}`);break;case"fillPath":u=i.createElementNS(aw,"path"),u.setAttribute("d",this.opsToPath(l,s)),u.setAttribute("stroke","none"),u.setAttribute("stroke-width","0"),u.setAttribute("fill",n.fill||""),t.shape!=="curve"&&t.shape!=="polygon"||u.setAttribute("fill-rule","evenodd");break;case"fillSketch":u=this.fillSketch(i,l,n)}u&&a.appendChild(u)}return a}fillSketch(t,r,n){let i=n.fillWeight;i<0&&(i=n.strokeWidth/2);let a=t.createElementNS(aw,"path");return a.setAttribute("d",this.opsToPath(r,n.fixedDecimalPlaceDigits)),a.setAttribute("stroke",n.fill||""),a.setAttribute("stroke-width",i+""),a.setAttribute("fill","none"),n.fillLineDash&&a.setAttribute("stroke-dasharray",n.fillLineDash.join(" ").trim()),n.fillLineDashOffset&&a.setAttribute("stroke-dashoffset",`${n.fillLineDashOffset}`),a}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(t,r){return this.gen.opsToPath(t,r)}line(t,r,n,i,a){let s=this.gen.line(t,r,n,i,a);return this.draw(s)}rectangle(t,r,n,i,a){let s=this.gen.rectangle(t,r,n,i,a);return this.draw(s)}ellipse(t,r,n,i,a){let s=this.gen.ellipse(t,r,n,i,a);return this.draw(s)}circle(t,r,n,i){let a=this.gen.circle(t,r,n,i);return this.draw(a)}linearPath(t,r){let n=this.gen.linearPath(t,r);return this.draw(n)}polygon(t,r){let n=this.gen.polygon(t,r);return this.draw(n)}arc(t,r,n,i,a,s,l=!1,u){let h=this.gen.arc(t,r,n,i,a,s,l,u);return this.draw(h)}curve(t,r){let n=this.gen.curve(t,r);return this.draw(n)}path(t,r){let n=this.gen.path(t,r);return this.draw(n)}},Kt={canvas:o((e,t)=>new LL(e,t),"canvas"),svg:o((e,t)=>new DL(e,t),"svg"),generator:o(e=>new km(e),"generator"),newSeed:o(()=>km.newSeed(),"newSeed")}});function IL(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}function tQ(e){Od=e}function so(e,t){if(t){if(eQ.test(e))return e.replace(K8t,jK)}else if(rQ.test(e))return e.replace(Q8t,jK);return e}function t_t(e){return e.replace(J8t,(t,r)=>(r=r.toLowerCase(),r==="colon"?":":r.charAt(0)==="#"?r.charAt(1)==="x"?String.fromCharCode(parseInt(r.substring(2),16)):String.fromCharCode(+r.substring(1)):""))}function fn(e,t){let r=typeof e=="string"?e:e.source;t=t||"";let n={replace:o((i,a)=>{let s=typeof a=="string"?a:a.source;return s=s.replace(e_t,"$1"),r=r.replace(i,s),n},"replace"),getRegex:o(()=>new RegExp(r,t),"getRegex")};return n}function KK(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}function QK(e,t){let r=e.replace(/\|/g,(a,s,l)=>{let u=!1,h=s;for(;--h>=0&&l[h]==="\\";)u=!u;return u?"|":" |"}),n=r.split(/ \|/),i=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length{let a=i.match(/^\s+/);if(a===null)return i;let[s]=a;return s.length>=n.length?i.slice(n.length):i}).join(` +`)}function tn(e,t){return Id.parse(e,t)}var Od,eQ,K8t,rQ,Q8t,Z8t,jK,J8t,e_t,Pv,Cm,i_t,a_t,s_t,Fv,o_t,nQ,iQ,OL,l_t,PL,c_t,u_t,pw,BL,h_t,aQ,f_t,FL,JK,d_t,p_t,sQ,m_t,oQ,g_t,zv,y_t,v_t,x_t,b_t,w_t,T_t,k_t,E_t,C_t,dw,S_t,lQ,cQ,A_t,zL,__t,NL,L_t,fw,Ov,Mu,Sm,Bv,Iu,Em,ML,Id,KEe,QEe,ZEe,JEe,t6e,e6e,r6e,uQ=R(()=>{"use strict";o(IL,"_getDefaults");Od=IL();o(tQ,"changeDefaults");eQ=/[&<>"']/,K8t=new RegExp(eQ.source,"g"),rQ=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Q8t=new RegExp(rQ.source,"g"),Z8t={"&":"&","<":"<",">":">",'"':""","'":"'"},jK=o(e=>Z8t[e],"getEscapeReplacement");o(so,"escape$1");J8t=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;o(t_t,"unescape");e_t=/(^|[^\[])\^/g;o(fn,"edit");o(KK,"cleanUrl");Pv={exec:o(()=>null,"exec")};o(QK,"splitCells");o(Iv,"rtrim");o(r_t,"findClosingBracket");o(ZK,"outputLink");o(n_t,"indentCodeCompensation");Cm=class{static{o(this,"_Tokenizer")}options;rules;lexer;constructor(t){this.options=t||Od}space(t){let r=this.rules.block.newline.exec(t);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(t){let r=this.rules.block.code.exec(t);if(r){let n=r[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?n:Iv(n,` +`)}}}fences(t){let r=this.rules.block.fences.exec(t);if(r){let n=r[0],i=n_t(n,r[3]||"");return{type:"code",raw:n,lang:r[2]?r[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):r[2],text:i}}}heading(t){let r=this.rules.block.heading.exec(t);if(r){let n=r[2].trim();if(/#$/.test(n)){let i=Iv(n,"#");(this.options.pedantic||!i||/ $/.test(i))&&(n=i.trim())}return{type:"heading",raw:r[0],depth:r[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(t){let r=this.rules.block.hr.exec(t);if(r)return{type:"hr",raw:Iv(r[0],` +`)}}blockquote(t){let r=this.rules.block.blockquote.exec(t);if(r){let n=Iv(r[0],` +`).split(` +`),i="",a="",s=[];for(;n.length>0;){let l=!1,u=[],h;for(h=0;h/.test(n[h]))u.push(n[h]),l=!0;else if(!l)u.push(n[h]);else break;n=n.slice(h);let f=u.join(` +`),d=f.replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,` + $1`).replace(/^ {0,3}>[ \t]?/gm,"");i=i?`${i} +${f}`:f,a=a?`${a} +${d}`:d;let p=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(d,s,!0),this.lexer.state.top=p,n.length===0)break;let m=s[s.length-1];if(m?.type==="code")break;if(m?.type==="blockquote"){let g=m,y=g.raw+` +`+n.join(` +`),v=this.blockquote(y);s[s.length-1]=v,i=i.substring(0,i.length-g.raw.length)+v.raw,a=a.substring(0,a.length-g.text.length)+v.text;break}else if(m?.type==="list"){let g=m,y=g.raw+` +`+n.join(` +`),v=this.list(y);s[s.length-1]=v,i=i.substring(0,i.length-m.raw.length)+v.raw,a=a.substring(0,a.length-g.raw.length)+v.raw,n=y.substring(s[s.length-1].raw.length).split(` +`);continue}}return{type:"blockquote",raw:i,tokens:s,text:a}}}list(t){let r=this.rules.block.list.exec(t);if(r){let n=r[1].trim(),i=n.length>1,a={type:"list",raw:"",ordered:i,start:i?+n.slice(0,-1):"",loose:!1,items:[]};n=i?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=i?n:"[*+-]");let s=new RegExp(`^( {0,3}${n})((?:[ ][^\\n]*)?(?:\\n|$))`),l=!1;for(;t;){let u=!1,h="",f="";if(!(r=s.exec(t))||this.rules.block.hr.test(t))break;h=r[0],t=t.substring(h.length);let d=r[2].split(` +`,1)[0].replace(/^\t+/,x=>" ".repeat(3*x.length)),p=t.split(` +`,1)[0],m=!d.trim(),g=0;if(this.options.pedantic?(g=2,f=d.trimStart()):m?g=r[1].length+1:(g=r[2].search(/[^ ]/),g=g>4?1:g,f=d.slice(g),g+=r[1].length),m&&/^ *$/.test(p)&&(h+=p+` +`,t=t.substring(p.length+1),u=!0),!u){let x=new RegExp(`^ {0,${Math.min(3,g-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),b=new RegExp(`^ {0,${Math.min(3,g-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),w=new RegExp(`^ {0,${Math.min(3,g-1)}}(?:\`\`\`|~~~)`),S=new RegExp(`^ {0,${Math.min(3,g-1)}}#`);for(;t;){let T=t.split(` +`,1)[0];if(p=T,this.options.pedantic&&(p=p.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),w.test(p)||S.test(p)||x.test(p)||b.test(t))break;if(p.search(/[^ ]/)>=g||!p.trim())f+=` +`+p.slice(g);else{if(m||d.search(/[^ ]/)>=4||w.test(d)||S.test(d)||b.test(d))break;f+=` +`+p}!m&&!p.trim()&&(m=!0),h+=T+` +`,t=t.substring(T.length+1),d=p.slice(g)}}a.loose||(l?a.loose=!0:/\n *\n *$/.test(h)&&(l=!0));let y=null,v;this.options.gfm&&(y=/^\[[ xX]\] /.exec(f),y&&(v=y[0]!=="[ ] ",f=f.replace(/^\[[ xX]\] +/,""))),a.items.push({type:"list_item",raw:h,task:!!y,checked:v,loose:!1,text:f,tokens:[]}),a.raw+=h}a.items[a.items.length-1].raw=a.items[a.items.length-1].raw.trimEnd(),a.items[a.items.length-1].text=a.items[a.items.length-1].text.trimEnd(),a.raw=a.raw.trimEnd();for(let u=0;ud.type==="space"),f=h.length>0&&h.some(d=>/\n.*\n/.test(d.raw));a.loose=f}if(a.loose)for(let u=0;u$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",a=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):r[3];return{type:"def",tag:n,raw:r[0],href:i,title:a}}}table(t){let r=this.rules.block.table.exec(t);if(!r||!/[:|]/.test(r[2]))return;let n=QK(r[1]),i=r[2].replace(/^\||\| *$/g,"").split("|"),a=r[3]&&r[3].trim()?r[3].replace(/\n[ \t]*$/,"").split(` +`):[],s={type:"table",raw:r[0],header:[],align:[],rows:[]};if(n.length===i.length){for(let l of i)/^ *-+: *$/.test(l)?s.align.push("right"):/^ *:-+: *$/.test(l)?s.align.push("center"):/^ *:-+ *$/.test(l)?s.align.push("left"):s.align.push(null);for(let l=0;l({text:u,tokens:this.lexer.inline(u),header:!1,align:s.align[h]})));return s}}lheading(t){let r=this.rules.block.lheading.exec(t);if(r)return{type:"heading",raw:r[0],depth:r[2].charAt(0)==="="?1:2,text:r[1],tokens:this.lexer.inline(r[1])}}paragraph(t){let r=this.rules.block.paragraph.exec(t);if(r){let n=r[1].charAt(r[1].length-1)===` +`?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:n,tokens:this.lexer.inline(n)}}}text(t){let r=this.rules.block.text.exec(t);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(t){let r=this.rules.inline.escape.exec(t);if(r)return{type:"escape",raw:r[0],text:so(r[1])}}tag(t){let r=this.rules.inline.tag.exec(t);if(r)return!this.lexer.state.inLink&&/^/i.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:r[0]}}link(t){let r=this.rules.inline.link.exec(t);if(r){let n=r[2].trim();if(!this.options.pedantic&&/^$/.test(n))return;let s=Iv(n.slice(0,-1),"\\");if((n.length-s.length)%2===0)return}else{let s=r_t(r[2],"()");if(s>-1){let u=(r[0].indexOf("!")===0?5:4)+r[1].length+s;r[2]=r[2].substring(0,s),r[0]=r[0].substring(0,u).trim(),r[3]=""}}let i=r[2],a="";if(this.options.pedantic){let s=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(i);s&&(i=s[1],a=s[3])}else a=r[3]?r[3].slice(1,-1):"";return i=i.trim(),/^$/.test(n)?i=i.slice(1):i=i.slice(1,-1)),ZK(r,{href:i&&i.replace(this.rules.inline.anyPunctuation,"$1"),title:a&&a.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer)}}reflink(t,r){let n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){let i=(n[2]||n[1]).replace(/\s+/g," "),a=r[i.toLowerCase()];if(!a){let s=n[0].charAt(0);return{type:"text",raw:s,text:s}}return ZK(n,a,n[0],this.lexer)}}emStrong(t,r,n=""){let i=this.rules.inline.emStrongLDelim.exec(t);if(!i||i[3]&&n.match(/[\p{L}\p{N}]/u))return;if(!(i[1]||i[2]||"")||!n||this.rules.inline.punctuation.exec(n)){let s=[...i[0]].length-1,l,u,h=s,f=0,d=i[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(d.lastIndex=0,r=r.slice(-1*t.length+s);(i=d.exec(r))!=null;){if(l=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!l)continue;if(u=[...l].length,i[3]||i[4]){h+=u;continue}else if((i[5]||i[6])&&s%3&&!((s+u)%3)){f+=u;continue}if(h-=u,h>0)continue;u=Math.min(u,u+h+f);let p=[...i[0]][0].length,m=t.slice(0,s+i.index+p+u);if(Math.min(s,u)%2){let y=m.slice(1,-1);return{type:"em",raw:m,text:y,tokens:this.lexer.inlineTokens(y)}}let g=m.slice(2,-2);return{type:"strong",raw:m,text:g,tokens:this.lexer.inlineTokens(g)}}}}codespan(t){let r=this.rules.inline.code.exec(t);if(r){let n=r[2].replace(/\n/g," "),i=/[^ ]/.test(n),a=/^ /.test(n)&&/ $/.test(n);return i&&a&&(n=n.substring(1,n.length-1)),n=so(n,!0),{type:"codespan",raw:r[0],text:n}}}br(t){let r=this.rules.inline.br.exec(t);if(r)return{type:"br",raw:r[0]}}del(t){let r=this.rules.inline.del.exec(t);if(r)return{type:"del",raw:r[0],text:r[2],tokens:this.lexer.inlineTokens(r[2])}}autolink(t){let r=this.rules.inline.autolink.exec(t);if(r){let n,i;return r[2]==="@"?(n=so(r[1]),i="mailto:"+n):(n=so(r[1]),i=n),{type:"link",raw:r[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}}}url(t){let r;if(r=this.rules.inline.url.exec(t)){let n,i;if(r[2]==="@")n=so(r[0]),i="mailto:"+n;else{let a;do a=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])?.[0]??"";while(a!==r[0]);n=so(r[0]),r[1]==="www."?i="http://"+r[0]:i=r[0]}return{type:"link",raw:r[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(t){let r=this.rules.inline.text.exec(t);if(r){let n;return this.lexer.state.inRawBlock?n=r[0]:n=so(r[0]),{type:"text",raw:r[0],text:n}}}},i_t=/^(?: *(?:\n|$))+/,a_t=/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,s_t=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Fv=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,o_t=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,nQ=/(?:[*+-]|\d{1,9}[.)])/,iQ=fn(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,nQ).replace(/blockCode/g,/ {4}/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),OL=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,l_t=/^[^\n]+/,PL=/(?!\s*\])(?:\\.|[^\[\]\\])+/,c_t=fn(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",PL).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),u_t=fn(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,nQ).getRegex(),pw="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",BL=/|$))/,h_t=fn("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))","i").replace("comment",BL).replace("tag",pw).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),aQ=fn(OL).replace("hr",Fv).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",pw).getRegex(),f_t=fn(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",aQ).getRegex(),FL={blockquote:f_t,code:a_t,def:c_t,fences:s_t,heading:o_t,hr:Fv,html:h_t,lheading:iQ,list:u_t,newline:i_t,paragraph:aQ,table:Pv,text:l_t},JK=fn("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Fv).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",pw).getRegex(),d_t={...FL,table:JK,paragraph:fn(OL).replace("hr",Fv).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",JK).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",pw).getRegex()},p_t={...FL,html:fn(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",BL).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Pv,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:fn(OL).replace("hr",Fv).replace("heading",` *#{1,6} *[^ +]`).replace("lheading",iQ).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},sQ=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,m_t=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,oQ=/^( {2,}|\\)\n(?!\s*$)/,g_t=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\]*?>/g,x_t=fn(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,zv).getRegex(),b_t=fn("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,zv).getRegex(),w_t=fn("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,zv).getRegex(),T_t=fn(/\\([punct])/,"gu").replace(/punct/g,zv).getRegex(),k_t=fn(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),E_t=fn(BL).replace("(?:-->|$)","-->").getRegex(),C_t=fn("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment",E_t).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),dw=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,S_t=fn(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",dw).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),lQ=fn(/^!?\[(label)\]\[(ref)\]/).replace("label",dw).replace("ref",PL).getRegex(),cQ=fn(/^!?\[(ref)\](?:\[\])?/).replace("ref",PL).getRegex(),A_t=fn("reflink|nolink(?!\\()","g").replace("reflink",lQ).replace("nolink",cQ).getRegex(),zL={_backpedal:Pv,anyPunctuation:T_t,autolink:k_t,blockSkip:v_t,br:oQ,code:m_t,del:Pv,emStrongLDelim:x_t,emStrongRDelimAst:b_t,emStrongRDelimUnd:w_t,escape:sQ,link:S_t,nolink:cQ,punctuation:y_t,reflink:lQ,reflinkSearch:A_t,tag:C_t,text:g_t,url:Pv},__t={...zL,link:fn(/^!?\[(label)\]\((.*?)\)/).replace("label",dw).getRegex(),reflink:fn(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",dw).getRegex()},NL={...zL,escape:fn(sQ).replace("])","~|])").getRegex(),url:fn(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\u+" ".repeat(h.length));let i,a,s;for(;t;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(l=>(i=l.call({lexer:this},t,r))?(t=t.substring(i.raw.length),r.push(i),!0):!1))){if(i=this.tokenizer.space(t)){t=t.substring(i.raw.length),i.raw.length===1&&r.length>0?r[r.length-1].raw+=` +`:r.push(i);continue}if(i=this.tokenizer.code(t)){t=t.substring(i.raw.length),a=r[r.length-1],a&&(a.type==="paragraph"||a.type==="text")?(a.raw+=` +`+i.raw,a.text+=` +`+i.text,this.inlineQueue[this.inlineQueue.length-1].src=a.text):r.push(i);continue}if(i=this.tokenizer.fences(t)){t=t.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.heading(t)){t=t.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.hr(t)){t=t.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.blockquote(t)){t=t.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.list(t)){t=t.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.html(t)){t=t.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.def(t)){t=t.substring(i.raw.length),a=r[r.length-1],a&&(a.type==="paragraph"||a.type==="text")?(a.raw+=` +`+i.raw,a.text+=` +`+i.raw,this.inlineQueue[this.inlineQueue.length-1].src=a.text):this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title});continue}if(i=this.tokenizer.table(t)){t=t.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.lheading(t)){t=t.substring(i.raw.length),r.push(i);continue}if(s=t,this.options.extensions&&this.options.extensions.startBlock){let l=1/0,u=t.slice(1),h;this.options.extensions.startBlock.forEach(f=>{h=f.call({lexer:this},u),typeof h=="number"&&h>=0&&(l=Math.min(l,h))}),l<1/0&&l>=0&&(s=t.substring(0,l+1))}if(this.state.top&&(i=this.tokenizer.paragraph(s))){a=r[r.length-1],n&&a?.type==="paragraph"?(a.raw+=` +`+i.raw,a.text+=` +`+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=a.text):r.push(i),n=s.length!==t.length,t=t.substring(i.raw.length);continue}if(i=this.tokenizer.text(t)){t=t.substring(i.raw.length),a=r[r.length-1],a&&a.type==="text"?(a.raw+=` +`+i.raw,a.text+=` +`+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=a.text):r.push(i);continue}if(t){let l="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(l);break}else throw new Error(l)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){let n,i,a,s=t,l,u,h;if(this.tokens.links){let f=Object.keys(this.tokens.links);if(f.length>0)for(;(l=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)f.includes(l[0].slice(l[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,l.index)+"["+"a".repeat(l[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(l=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)s=s.slice(0,l.index)+"["+"a".repeat(l[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(l=this.tokenizer.rules.inline.anyPunctuation.exec(s))!=null;)s=s.slice(0,l.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;t;)if(u||(h=""),u=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(f=>(n=f.call({lexer:this},t,r))?(t=t.substring(n.raw.length),r.push(n),!0):!1))){if(n=this.tokenizer.escape(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.tag(t)){t=t.substring(n.raw.length),i=r[r.length-1],i&&n.type==="text"&&i.type==="text"?(i.raw+=n.raw,i.text+=n.text):r.push(n);continue}if(n=this.tokenizer.link(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(n.raw.length),i=r[r.length-1],i&&n.type==="text"&&i.type==="text"?(i.raw+=n.raw,i.text+=n.text):r.push(n);continue}if(n=this.tokenizer.emStrong(t,s,h)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.codespan(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.br(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.del(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.autolink(t)){t=t.substring(n.raw.length),r.push(n);continue}if(!this.state.inLink&&(n=this.tokenizer.url(t))){t=t.substring(n.raw.length),r.push(n);continue}if(a=t,this.options.extensions&&this.options.extensions.startInline){let f=1/0,d=t.slice(1),p;this.options.extensions.startInline.forEach(m=>{p=m.call({lexer:this},d),typeof p=="number"&&p>=0&&(f=Math.min(f,p))}),f<1/0&&f>=0&&(a=t.substring(0,f+1))}if(n=this.tokenizer.inlineText(a)){t=t.substring(n.raw.length),n.raw.slice(-1)!=="_"&&(h=n.raw.slice(-1)),u=!0,i=r[r.length-1],i&&i.type==="text"?(i.raw+=n.raw,i.text+=n.text):r.push(n);continue}if(t){let f="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(f);break}else throw new Error(f)}}return r}},Sm=class{static{o(this,"_Renderer")}options;parser;constructor(t){this.options=t||Od}space(t){return""}code({text:t,lang:r,escaped:n}){let i=(r||"").match(/^\S*/)?.[0],a=t.replace(/\n$/,"")+` +`;return i?'
'+(n?a:so(a,!0))+`
+`:"
"+(n?a:so(a,!0))+`
+`}blockquote({tokens:t}){return`
+${this.parser.parse(t)}
+`}html({text:t}){return t}heading({tokens:t,depth:r}){return`${this.parser.parseInline(t)} +`}hr(t){return`
+`}list(t){let r=t.ordered,n=t.start,i="";for(let l=0;l +`+i+" +`}listitem(t){let r="";if(t.task){let n=this.checkbox({checked:!!t.checked});t.loose?t.tokens.length>0&&t.tokens[0].type==="paragraph"?(t.tokens[0].text=n+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&t.tokens[0].tokens[0].type==="text"&&(t.tokens[0].tokens[0].text=n+" "+t.tokens[0].tokens[0].text)):t.tokens.unshift({type:"text",raw:n+" ",text:n+" "}):r+=n+" "}return r+=this.parser.parse(t.tokens,!!t.loose),`
  • ${r}
  • +`}checkbox({checked:t}){return"'}paragraph({tokens:t}){return`

    ${this.parser.parseInline(t)}

    +`}table(t){let r="",n="";for(let a=0;a${i}`),` + +`+r+` +`+i+`
    +`}tablerow({text:t}){return` +${t} +`}tablecell(t){let r=this.parser.parseInline(t.tokens),n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+r+` +`}strong({tokens:t}){return`${this.parser.parseInline(t)}`}em({tokens:t}){return`${this.parser.parseInline(t)}`}codespan({text:t}){return`${t}`}br(t){return"
    "}del({tokens:t}){return`${this.parser.parseInline(t)}`}link({href:t,title:r,tokens:n}){let i=this.parser.parseInline(n),a=KK(t);if(a===null)return i;t=a;let s='
    ",s}image({href:t,title:r,text:n}){let i=KK(t);if(i===null)return n;t=i;let a=`${n}{let l=a[s].flat(1/0);n=n.concat(this.walkTokens(l,r))}):a.tokens&&(n=n.concat(this.walkTokens(a.tokens,r)))}}return n}use(...t){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(n=>{let i={...n};if(i.async=this.defaults.async||i.async||!1,n.extensions&&(n.extensions.forEach(a=>{if(!a.name)throw new Error("extension name required");if("renderer"in a){let s=r.renderers[a.name];s?r.renderers[a.name]=function(...l){let u=a.renderer.apply(this,l);return u===!1&&(u=s.apply(this,l)),u}:r.renderers[a.name]=a.renderer}if("tokenizer"in a){if(!a.level||a.level!=="block"&&a.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let s=r[a.level];s?s.unshift(a.tokenizer):r[a.level]=[a.tokenizer],a.start&&(a.level==="block"?r.startBlock?r.startBlock.push(a.start):r.startBlock=[a.start]:a.level==="inline"&&(r.startInline?r.startInline.push(a.start):r.startInline=[a.start]))}"childTokens"in a&&a.childTokens&&(r.childTokens[a.name]=a.childTokens)}),i.extensions=r),n.renderer){let a=this.defaults.renderer||new Sm(this.defaults);for(let s in n.renderer){if(!(s in a))throw new Error(`renderer '${s}' does not exist`);if(["options","parser"].includes(s))continue;let l=s,u=n.renderer[l];n.useNewRenderer||(u=this.#e(u,l,a));let h=a[l];a[l]=(...f)=>{let d=u.apply(a,f);return d===!1&&(d=h.apply(a,f)),d||""}}i.renderer=a}if(n.tokenizer){let a=this.defaults.tokenizer||new Cm(this.defaults);for(let s in n.tokenizer){if(!(s in a))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;let l=s,u=n.tokenizer[l],h=a[l];a[l]=(...f)=>{let d=u.apply(a,f);return d===!1&&(d=h.apply(a,f)),d}}i.tokenizer=a}if(n.hooks){let a=this.defaults.hooks||new Em;for(let s in n.hooks){if(!(s in a))throw new Error(`hook '${s}' does not exist`);if(s==="options")continue;let l=s,u=n.hooks[l],h=a[l];Em.passThroughHooks.has(s)?a[l]=f=>{if(this.defaults.async)return Promise.resolve(u.call(a,f)).then(p=>h.call(a,p));let d=u.call(a,f);return h.call(a,d)}:a[l]=(...f)=>{let d=u.apply(a,f);return d===!1&&(d=h.apply(a,f)),d}}i.hooks=a}if(n.walkTokens){let a=this.defaults.walkTokens,s=n.walkTokens;i.walkTokens=function(l){let u=[];return u.push(s.call(this,l)),a&&(u=u.concat(a.call(this,l))),u}}this.defaults={...this.defaults,...i}}),this}#e(t,r,n){switch(r){case"heading":return function(i){return!i.type||i.type!==r?t.apply(this,arguments):t.call(this,n.parser.parseInline(i.tokens),i.depth,t_t(n.parser.parseInline(i.tokens,n.parser.textRenderer)))};case"code":return function(i){return!i.type||i.type!==r?t.apply(this,arguments):t.call(this,i.text,i.lang,!!i.escaped)};case"table":return function(i){if(!i.type||i.type!==r)return t.apply(this,arguments);let a="",s="";for(let u=0;u0&&f.tokens[0].type==="paragraph"?(f.tokens[0].text=g+" "+f.tokens[0].text,f.tokens[0].tokens&&f.tokens[0].tokens.length>0&&f.tokens[0].tokens[0].type==="text"&&(f.tokens[0].tokens[0].text=g+" "+f.tokens[0].tokens[0].text)):f.tokens.unshift({type:"text",text:g+" "}):m+=g+" "}m+=this.parser.parse(f.tokens,l),u+=this.listitem({type:"list_item",raw:m,text:m,task:p,checked:!!d,loose:l,tokens:f.tokens})}return t.call(this,u,a,s)};case"html":return function(i){return!i.type||i.type!==r?t.apply(this,arguments):t.call(this,i.text,i.block)};case"paragraph":return function(i){return!i.type||i.type!==r?t.apply(this,arguments):t.call(this,this.parser.parseInline(i.tokens))};case"escape":return function(i){return!i.type||i.type!==r?t.apply(this,arguments):t.call(this,i.text)};case"link":return function(i){return!i.type||i.type!==r?t.apply(this,arguments):t.call(this,i.href,i.title,this.parser.parseInline(i.tokens))};case"image":return function(i){return!i.type||i.type!==r?t.apply(this,arguments):t.call(this,i.href,i.title,i.text)};case"strong":return function(i){return!i.type||i.type!==r?t.apply(this,arguments):t.call(this,this.parser.parseInline(i.tokens))};case"em":return function(i){return!i.type||i.type!==r?t.apply(this,arguments):t.call(this,this.parser.parseInline(i.tokens))};case"codespan":return function(i){return!i.type||i.type!==r?t.apply(this,arguments):t.call(this,i.text)};case"del":return function(i){return!i.type||i.type!==r?t.apply(this,arguments):t.call(this,this.parser.parseInline(i.tokens))};case"text":return function(i){return!i.type||i.type!==r?t.apply(this,arguments):t.call(this,i.text)}}return t}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,r){return Mu.lex(t,r??this.defaults)}parser(t,r){return Iu.parse(t,r??this.defaults)}#t(t,r){return(n,i)=>{let a={...i},s={...this.defaults,...a};this.defaults.async===!0&&a.async===!1&&(s.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),s.async=!0);let l=this.#r(!!s.silent,!!s.async);if(typeof n>"u"||n===null)return l(new Error("marked(): input parameter is undefined or null"));if(typeof n!="string")return l(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(s.hooks&&(s.hooks.options=s),s.async)return Promise.resolve(s.hooks?s.hooks.preprocess(n):n).then(u=>t(u,s)).then(u=>s.hooks?s.hooks.processAllTokens(u):u).then(u=>s.walkTokens?Promise.all(this.walkTokens(u,s.walkTokens)).then(()=>u):u).then(u=>r(u,s)).then(u=>s.hooks?s.hooks.postprocess(u):u).catch(l);try{s.hooks&&(n=s.hooks.preprocess(n));let u=t(n,s);s.hooks&&(u=s.hooks.processAllTokens(u)),s.walkTokens&&this.walkTokens(u,s.walkTokens);let h=r(u,s);return s.hooks&&(h=s.hooks.postprocess(h)),h}catch(u){return l(u)}}}#r(t,r){return n=>{if(n.message+=` +Please report this to https://github.com/markedjs/marked.`,t){let i="

    An error occurred:

    "+so(n.message+"",!0)+"
    ";return r?Promise.resolve(i):i}if(r)return Promise.reject(n);throw n}}},Id=new ML;o(tn,"marked");tn.options=tn.setOptions=function(e){return Id.setOptions(e),tn.defaults=Id.defaults,tQ(tn.defaults),tn};tn.getDefaults=IL;tn.defaults=Od;tn.use=function(...e){return Id.use(...e),tn.defaults=Id.defaults,tQ(tn.defaults),tn};tn.walkTokens=function(e,t){return Id.walkTokens(e,t)};tn.parseInline=Id.parseInline;tn.Parser=Iu;tn.parser=Iu.parse;tn.Renderer=Sm;tn.TextRenderer=Bv;tn.Lexer=Mu;tn.lexer=Mu.lex;tn.Tokenizer=Cm;tn.Hooks=Em;tn.parse=tn;KEe=tn.options,QEe=tn.setOptions,ZEe=tn.use,JEe=tn.walkTokens,t6e=tn.parseInline,e6e=Iu.parse,r6e=Mu.lex});function D_t(e,{markdownAutoWrap:t}){let n=e.replace(//g,` +`).replace(/\n{2,}/g,` +`),i=s4(n);return t===!1?i.replace(/ /g," "):i}function hQ(e,t={}){let r=D_t(e,t),n=tn.lexer(r),i=[[]],a=0;function s(l,u="normal"){l.type==="text"?l.text.split(` +`).forEach((f,d)=>{d!==0&&(a++,i.push([])),f.split(" ").forEach(p=>{p&&i[a].push({content:p,type:u})})}):l.type==="strong"||l.type==="em"?l.tokens.forEach(h=>{s(h,l.type)}):l.type==="html"&&i[a].push({content:l.text,type:"normal"})}return o(s,"processNode"),n.forEach(l=>{l.type==="paragraph"?l.tokens?.forEach(u=>{s(u)}):l.type==="html"&&i[a].push({content:l.text,type:"normal"})}),i}function fQ(e,{markdownAutoWrap:t}={}){let r=tn.lexer(e);function n(i){return i.type==="text"?t===!1?i.text.replace(/\n */g,"
    ").replace(/ /g," "):i.text.replace(/\n */g,"
    "):i.type==="strong"?`${i.tokens?.map(n).join("")}`:i.type==="em"?`${i.tokens?.map(n).join("")}`:i.type==="paragraph"?`

    ${i.tokens?.map(n).join("")}

    `:i.type==="space"?"":i.type==="html"?`${i.text}`:`Unsupported markdown: ${i.type}`}return o(n,"output"),r.map(n).join("")}var dQ=R(()=>{"use strict";uQ();SS();o(D_t,"preprocessMarkdown");o(hQ,"markdownToLines");o(fQ,"markdownToHTML")});function R_t(e){return Intl.Segmenter?[...new Intl.Segmenter().segment(e)].map(t=>t.segment):[...e]}function N_t(e,t){let r=R_t(t.content);return pQ(e,[],r,t.type)}function pQ(e,t,r,n){if(r.length===0)return[{content:t.join(""),type:n},{content:"",type:n}];let[i,...a]=r,s=[...t,i];return e([{content:s.join(""),type:n}])?pQ(e,s,a,n):(t.length===0&&i&&(t.push(i),r.shift()),[{content:t.join(""),type:n},{content:r.join(""),type:n}])}function mQ(e,t){if(e.some(({content:r})=>r.includes(` +`)))throw new Error("splitLineToFitWidth does not support newlines in the line");return $L(e,t)}function $L(e,t,r=[],n=[]){if(e.length===0)return n.length>0&&r.push(n),r.length>0?r:[];let i="";e[0].content===" "&&(i=" ",e.shift());let a=e.shift()??{content:" ",type:"normal"},s=[...n];if(i!==""&&s.push({content:i,type:"normal"}),s.push(a),t(s))return $L(e,t,r,s);if(n.length>0)r.push(n),e.unshift(a);else if(a.content){let[l,u]=N_t(t,a);r.push([l]),u.content&&e.unshift(u)}return $L(e,t,r)}var gQ=R(()=>{"use strict";o(R_t,"splitTextToChars");o(N_t,"splitWordToFitWidth");o(pQ,"splitWordToFitWidthRecursion");o(mQ,"splitLineToFitWidth");o($L,"splitLineToFitWidthRecursion")});function yQ(e,t){t&&e.attr("style",t)}async function M_t(e,t,r,n,i=!1){let a=e.append("foreignObject");a.attr("width",`${10*r}px`),a.attr("height",`${10*r}px`);let s=a.append("xhtml:div"),l=t.label;t.label&&Pi(t.label)&&(l=await vh(t.label.replace(Yt.lineBreakRegex,` +`),pt()));let u=t.isNode?"nodeLabel":"edgeLabel",h=s.append("span");h.html(l),yQ(h,t.labelStyle),h.attr("class",`${u} ${n}`),yQ(s,t.labelStyle),s.style("display","table-cell"),s.style("white-space","nowrap"),s.style("line-height","1.5"),s.style("max-width",r+"px"),s.style("text-align","center"),s.attr("xmlns","http://www.w3.org/1999/xhtml"),i&&s.attr("class","labelBkg");let f=s.node().getBoundingClientRect();return f.width===r&&(s.style("display","table"),s.style("white-space","break-spaces"),s.style("width",r+"px"),f=s.node().getBoundingClientRect()),a.node()}function GL(e,t,r){return e.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",t*r-.1+"em").attr("dy",r+"em")}function I_t(e,t,r){let n=e.append("text"),i=GL(n,1,t);VL(i,r);let a=i.node().getComputedTextLength();return n.remove(),a}function vQ(e,t,r){let n=e.append("text"),i=GL(n,1,t);VL(i,[{content:r,type:"normal"}]);let a=i.node()?.getBoundingClientRect();return a&&n.remove(),a}function O_t(e,t,r,n=!1){let a=t.append("g"),s=a.insert("rect").attr("class","background").attr("style","stroke: none"),l=a.append("text").attr("y","-10.1"),u=0;for(let h of r){let f=o(p=>I_t(a,1.1,p)<=e,"checkWidth"),d=f(h)?[h]:mQ(h,f);for(let p of d){let m=GL(l,u,1.1);VL(m,p),u++}}if(n){let h=l.node().getBBox(),f=2;return s.attr("x",h.x-f).attr("y",h.y-f).attr("width",h.width+2*f).attr("height",h.height+2*f),a.node()}else return l.node()}function VL(e,t){e.text(""),t.forEach((r,n)=>{let i=e.append("tspan").attr("font-style",r.type==="em"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",r.type==="strong"?"bold":"normal");n===0?i.text(r.content):i.text(" "+r.content)})}function UL(e){return e.replace(/fa[bklrs]?:fa-[\w-]+/g,t=>``)}var ia,Nl=R(()=>{"use strict";Ue();hr();ur();ce();dQ();_r();gQ();o(yQ,"applyStyle");o(M_t,"addHtmlSpan");o(GL,"createTspan");o(I_t,"computeWidthOfText");o(vQ,"computeDimensionOfText");o(O_t,"createFormattedText");o(VL,"updateTextContentAndStyles");o(UL,"replaceIconSubstring");ia=o(async(e,t="",{style:r="",isTitle:n=!1,classes:i="",useHtmlLabels:a=!0,isNode:s=!0,width:l=200,addSvgBackground:u=!1}={},h)=>{if(V.debug("XYZ createText",t,r,n,i,a,s,"addSvgBackground: ",u),a){let f=fQ(t,h),d=UL(no(f)),p=t.replace(/\\\\/g,"\\"),m={isNode:s,label:Pi(t)?p:d,labelStyle:r.replace("fill:","color:")};return await M_t(e,m,l,i,u)}else{let f=t.replace(//g,"
    "),d=hQ(f.replace("
    ","
    "),h),p=O_t(l,e,d,t?u:!1);if(s){/stroke:/.exec(r)&&(r=r.replace("stroke:","lineColor:"));let m=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");Gt(p).attr("style",m)}else{let m=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");Gt(p).select("rect").attr("style",m.replace(/background:/g,"fill:"));let g=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");Gt(p).select("text").attr("style",g)}return p}},"createText")});var P_t,Pd,HL=R(()=>{"use strict";P_t=o((e,t)=>{var r=e.x,n=e.y,i=t.x-r,a=t.y-n,s=e.width/2,l=e.height/2,u,h;return Math.abs(a)*s>Math.abs(i)*l?(a<0&&(l=-l),u=a===0?0:l*i/a,h=l):(i<0&&(s=-s),u=s,h=i===0?0:s*a/i),{x:r+u,y:n+h}},"intersectRect"),Pd=P_t});function B_t(e,t){t&&e.attr("style",t)}async function F_t(e){let t=Gt(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),r=t.append("xhtml:div"),n=e.label;e.label&&Pi(e.label)&&(n=await vh(e.label.replace(Yt.lineBreakRegex,` +`),pt()));let i=e.isNode?"nodeLabel":"edgeLabel";return r.html('"+n+""),B_t(r,e.labelStyle),r.style("display","inline-block"),r.style("padding-right","1px"),r.style("white-space","nowrap"),r.attr("xmlns","http://www.w3.org/1999/xhtml"),t.node()}var z_t,Ec,mw=R(()=>{"use strict";ur();ce();Ue();hr();_r();o(B_t,"applyStyle");o(F_t,"addHtmlLabel");z_t=o(async(e,t,r,n)=>{let i=e||"";if(typeof i=="object"&&(i=i[0]),Tr(pt().flowchart.htmlLabels)){i=i.replace(/\\n|\n/g,"
    "),V.info("vertexText"+i);let a={isNode:n,label:no(i).replace(/fa[blrs]?:fa-[\w-]+/g,l=>``),labelStyle:t&&t.replace("fill:","color:")};return await F_t(a)}else{let a=document.createElementNS("http://www.w3.org/2000/svg","text");a.setAttribute("style",t.replace("color:","fill:"));let s=[];typeof i=="string"?s=i.split(/\\n|\n|/gi):Array.isArray(i)?s=i:s=[];for(let l of s){let u=document.createElementNS("http://www.w3.org/2000/svg","tspan");u.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),u.setAttribute("dy","1em"),u.setAttribute("x","0"),r?u.setAttribute("class","title-row"):u.setAttribute("class","row"),u.textContent=l.trim(),a.appendChild(u)}return a}},"createLabel"),Ec=z_t});var Ml,Am=R(()=>{"use strict";Ml=o((e,t,r,n,i)=>["M",e+i,t,"H",e+r-i,"A",i,i,0,0,1,e+r,t+i,"V",t+n-i,"A",i,i,0,0,1,e+r-i,t+n,"H",e+i,"A",i,i,0,0,1,e,t+n-i,"V",t+i,"A",i,i,0,0,1,e+i,t,"Z"].join(" "),"createRoundedRectPathD")});var xQ,Cc,$_t,te,Jt,Ze=R(()=>{"use strict";Ue();xQ=o(e=>{let{handDrawnSeed:t}=pt();return{fill:e,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:e,seed:t}},"solidStateFill"),Cc=o(e=>{let t=$_t([...e.cssCompiledStyles||[],...e.cssStyles||[]]);return{stylesMap:t,stylesArray:[...t]}},"compileStyles"),$_t=o(e=>{let t=new Map;return e.forEach(r=>{let[n,i]=r.split(":");t.set(n.trim(),i?.trim())}),t},"styles2Map"),te=o(e=>{let{stylesArray:t}=Cc(e),r=[],n=[],i=[],a=[];return t.forEach(s=>{let l=s[0];l==="color"||l==="font-size"||l==="font-family"||l==="font-weight"||l==="font-style"||l==="text-decoration"||l==="text-align"||l==="text-transform"||l==="line-height"||l==="letter-spacing"||l==="word-spacing"||l==="text-shadow"||l==="text-overflow"||l==="white-space"||l==="word-wrap"||l==="word-break"||l==="overflow-wrap"||l==="hyphens"?r.push(s.join(":")+" !important"):(n.push(s.join(":")+" !important"),l.includes("stroke")&&i.push(s.join(":")+" !important"),l==="fill"&&a.push(s.join(":")+" !important"))}),{labelStyles:r.join(";"),nodeStyles:n.join(";"),stylesArray:t,borderStyles:i,backgroundStyles:a}},"styles2String"),Jt=o((e,t)=>{let{themeVariables:r,handDrawnSeed:n}=pt(),{nodeBorder:i,mainBkg:a}=r,{stylesMap:s}=Cc(e);return Object.assign({roughness:.7,fill:s.get("fill")||a,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:s.get("stroke")||i,seed:n,strokeWidth:s.get("stroke-width")?.replace("px","")||1.3,fillLineDash:[0,0]},t)},"userNodeOverrides")});var bQ,G_t,V_t,U_t,H_t,W_t,wQ,gw,TQ,WL=R(()=>{"use strict";Ue();hr();ce();Nd();ur();Qe();Nl();HL();mw();Am();Ze();bQ=o(async(e,t)=>{V.info("Creating subgraph rect for ",t.id,t);let r=pt(),{themeVariables:n,handDrawnSeed:i}=r,{clusterBkg:a,clusterBorder:s}=n,{labelStyles:l,nodeStyles:u,borderStyles:h,backgroundStyles:f}=te(t),d=e.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.id).attr("data-look",t.look),p=Tr(r.flowchart.htmlLabels),m=d.insert("g").attr("class","cluster-label "),g=await ia(m,t.label,{style:t.labelStyle,useHtmlLabels:p,isNode:!0}),y=g.getBBox();if(Tr(r.flowchart.htmlLabels)){let _=g.children[0],A=Gt(g);y=_.getBoundingClientRect(),A.attr("width",y.width),A.attr("height",y.height)}let v=t.width<=y.width+t.padding?y.width+t.padding:t.width;t.width<=y.width+t.padding?t.diff=(v-t.width)/2-t.padding:t.diff=-t.padding;let x=t.height,b=t.x-v/2,w=t.y-x/2;V.trace("Data ",t,JSON.stringify(t));let S;if(t.look==="handDrawn"){let _=Kt.svg(d),A=Jt(t,{roughness:.7,fill:a,stroke:s,fillWeight:3,seed:i}),L=_.path(Ml(b,w,v,x,0),A);S=d.insert(()=>(V.debug("Rough node insert CXC",L),L),":first-child"),S.select("path:nth-child(2)").attr("style",h.join(";")),S.select("path").attr("style",f.join(";").replace("fill","stroke"))}else S=d.insert("rect",":first-child"),S.attr("style",u).attr("rx",t.rx).attr("ry",t.ry).attr("x",b).attr("y",w).attr("width",v).attr("height",x);let{subGraphTitleTopMargin:T}=io(r);if(m.attr("transform",`translate(${t.x-y.width/2}, ${t.y-t.height/2+T})`),l){let _=m.select("span");_&&_.attr("style",l)}let E=S.node().getBBox();return t.offsetX=0,t.width=E.width,t.height=E.height,t.offsetY=y.height-t.padding/2,t.intersect=function(_){return Pd(t,_)},{cluster:d,labelBBox:y}},"rect"),G_t=o((e,t)=>{let r=e.insert("g").attr("class","note-cluster").attr("id",t.id),n=r.insert("rect",":first-child"),i=0*t.padding,a=i/2;n.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-a).attr("y",t.y-t.height/2-a).attr("width",t.width+i).attr("height",t.height+i).attr("fill","none");let s=n.node().getBBox();return t.width=s.width,t.height=s.height,t.intersect=function(l){return Pd(t,l)},{cluster:r,labelBBox:{width:0,height:0}}},"noteGroup"),V_t=o(async(e,t)=>{let r=pt(),{themeVariables:n,handDrawnSeed:i}=r,{altBackground:a,compositeBackground:s,compositeTitleBackground:l,nodeBorder:u}=n,h=e.insert("g").attr("class",t.cssClasses).attr("id",t.id).attr("data-id",t.id).attr("data-look",t.look),f=h.insert("g",":first-child"),d=h.insert("g").attr("class","cluster-label"),p=h.append("rect"),m=d.node().appendChild(await Ec(t.label,t.labelStyle,void 0,!0)),g=m.getBBox();if(Tr(r.flowchart.htmlLabels)){let L=m.children[0],M=Gt(m);g=L.getBoundingClientRect(),M.attr("width",g.width),M.attr("height",g.height)}let y=0*t.padding,v=y/2,x=(t.width<=g.width+t.padding?g.width+t.padding:t.width)+y;t.width<=g.width+t.padding?t.diff=(x-t.width)/2-t.padding:t.diff=-t.padding;let b=t.height+y,w=t.height+y-g.height-6,S=t.x-x/2,T=t.y-b/2;t.width=x;let E=t.y-t.height/2-v+g.height+2,_;if(t.look==="handDrawn"){let L=t.cssClasses.includes("statediagram-cluster-alt"),M=Kt.svg(h),N=t.rx||t.ry?M.path(Ml(S,T,x,b,10),{roughness:.7,fill:l,fillStyle:"solid",stroke:u,seed:i}):M.rectangle(S,T,x,b,{seed:i});_=h.insert(()=>N,":first-child");let k=M.rectangle(S,E,x,w,{fill:L?a:s,fillStyle:L?"hachure":"solid",stroke:u,seed:i});_=h.insert(()=>N,":first-child"),p=h.insert(()=>k)}else _=f.insert("rect",":first-child"),_.attr("class","outer").attr("x",S).attr("y",T).attr("width",x).attr("height",b).attr("data-look",t.look),p.attr("class","inner").attr("x",S).attr("y",E).attr("width",x).attr("height",w);d.attr("transform",`translate(${t.x-g.width/2}, ${T+1-(Tr(r.flowchart.htmlLabels)?0:3)})`);let A=_.node().getBBox();return t.height=A.height,t.offsetX=0,t.offsetY=g.height-t.padding/2,t.labelBBox=g,t.intersect=function(L){return Pd(t,L)},{cluster:h,labelBBox:g}},"roundedWithTitle"),U_t=o((e,t)=>{let r=pt(),{themeVariables:n,handDrawnSeed:i}=r,{nodeBorder:a}=n,s=e.insert("g").attr("class",t.cssClasses).attr("id",t.id).attr("data-look",t.look),l=s.insert("g",":first-child"),u=0*t.padding,h=t.width+u;t.diff=-t.padding;let f=t.height+u,d=t.x-h/2,p=t.y-f/2;t.width=h;let m;if(t.look==="handDrawn"){let v=Kt.svg(s).rectangle(d,p,h,f,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:a,seed:i});m=s.insert(()=>v,":first-child")}else m=l.insert("rect",":first-child"),m.attr("class","divider").attr("x",d).attr("y",p).attr("width",h).attr("height",f).attr("data-look",t.look);let g=m.node().getBBox();return t.height=g.height,t.offsetX=0,t.offsetY=0,t.intersect=function(y){return Pd(t,y)},{cluster:s,labelBBox:{}}},"divider"),H_t=bQ,W_t={rect:bQ,squareRect:H_t,roundedWithTitle:V_t,noteGroup:G_t,divider:U_t},wQ=new Map,gw=o(async(e,t)=>{let r=t.shape||"rect",n=await W_t[r](e,t);return wQ.set(t.id,n),n},"insertCluster"),TQ=o(()=>{wQ=new Map},"clear")});function yw(e,t){if(e===void 0||t===void 0)return{angle:0,deltaX:0,deltaY:0};e=vw(e),t=vw(t);let[r,n]=[e.x,e.y],[i,a]=[t.x,t.y],s=i-r,l=a-n;return{angle:Math.atan(l/s),deltaX:s,deltaY:l}}var Yh,vw,xw,YL=R(()=>{"use strict";Yh={aggregation:18,extension:18,composition:18,dependency:6,lollipop:13.5,arrow_point:4};o(yw,"calculateDeltaAndAngle");vw=o(e=>Array.isArray(e)?{x:e[0],y:e[1]}:e,"pointTransformer"),xw=o(e=>({x:o(function(t,r,n){let i=0;if(r===0&&Object.hasOwn(Yh,e.arrowTypeStart)){let{angle:a,deltaX:s}=yw(n[0],n[1]);i=Yh[e.arrowTypeStart]*Math.cos(a)*(s>=0?1:-1)}else if(r===n.length-1&&Object.hasOwn(Yh,e.arrowTypeEnd)){let{angle:a,deltaX:s}=yw(n[n.length-1],n[n.length-2]);i=Yh[e.arrowTypeEnd]*Math.cos(a)*(s>=0?1:-1)}return vw(t).x+i},"x"),y:o(function(t,r,n){let i=0;if(r===0&&Object.hasOwn(Yh,e.arrowTypeStart)){let{angle:a,deltaY:s}=yw(n[0],n[1]);i=Yh[e.arrowTypeStart]*Math.abs(Math.sin(a))*(s>=0?1:-1)}else if(r===n.length-1&&Object.hasOwn(Yh,e.arrowTypeEnd)){let{angle:a,deltaY:s}=yw(n[n.length-1],n[n.length-2]);i=Yh[e.arrowTypeEnd]*Math.abs(Math.sin(a))*(s>=0?1:-1)}return vw(t).y+i},"y")}),"getLineFunctionsWithOffset")});var EQ,Y_t,kQ,CQ=R(()=>{"use strict";ce();EQ=o((e,t,r,n,i)=>{t.arrowTypeStart&&kQ(e,"start",t.arrowTypeStart,r,n,i),t.arrowTypeEnd&&kQ(e,"end",t.arrowTypeEnd,r,n,i)},"addEdgeMarkers"),Y_t={arrow_cross:"cross",arrow_point:"point",arrow_barb:"barb",arrow_circle:"circle",aggregation:"aggregation",extension:"extension",composition:"composition",dependency:"dependency",lollipop:"lollipop"},kQ=o((e,t,r,n,i,a)=>{let s=Y_t[r];if(!s){V.warn(`Unknown arrow type: ${r}`);return}let l=t==="start"?"Start":"End";e.attr(`marker-${t}`,`url(${n}#${i}_${a}-${s}${l})`)},"addEdgeMarker")});function bw(e,t){pt().flowchart.htmlLabels&&e&&(e.style.width=t.length*9+"px",e.style.height="12px")}function j_t(e){let t=[],r=[];for(let n=1;n5&&Math.abs(a.y-i.y)>5||i.y===a.y&&a.x===s.x&&Math.abs(a.x-i.x)>5&&Math.abs(a.y-s.y)>5)&&(t.push(a),r.push(n))}return{cornerPoints:t,cornerPointPositions:r}}var ww,ya,_Q,$v,Tw,kw,q_t,X_t,SQ,AQ,K_t,Ew,qL=R(()=>{"use strict";Ue();hr();ce();Nl();_r();YL();Nd();ur();Qe();mw();CQ();ww=new Map,ya=new Map,_Q=o(()=>{ww.clear(),ya.clear()},"clear"),$v=o(e=>e?e.reduce((r,n)=>r+";"+n,""):"","getLabelStyles"),Tw=o(async(e,t)=>{let r=Tr(pt().flowchart.htmlLabels),n=await ia(e,t.label,{style:$v(t.labelStyle),useHtmlLabels:r,addSvgBackground:!0,isNode:!1});V.info("abc82",t,t.labelType);let i=e.insert("g").attr("class","edgeLabel"),a=i.insert("g").attr("class","label");a.node().appendChild(n);let s=n.getBBox();if(r){let u=n.children[0],h=Gt(n);s=u.getBoundingClientRect(),h.attr("width",s.width),h.attr("height",s.height)}a.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"),ww.set(t.id,i),t.width=s.width,t.height=s.height;let l;if(t.startLabelLeft){let u=await Ec(t.startLabelLeft,$v(t.labelStyle)),h=e.insert("g").attr("class","edgeTerminals"),f=h.insert("g").attr("class","inner");l=f.node().appendChild(u);let d=u.getBBox();f.attr("transform","translate("+-d.width/2+", "+-d.height/2+")"),ya.get(t.id)||ya.set(t.id,{}),ya.get(t.id).startLeft=h,bw(l,t.startLabelLeft)}if(t.startLabelRight){let u=await Ec(t.startLabelRight,$v(t.labelStyle)),h=e.insert("g").attr("class","edgeTerminals"),f=h.insert("g").attr("class","inner");l=h.node().appendChild(u),f.node().appendChild(u);let d=u.getBBox();f.attr("transform","translate("+-d.width/2+", "+-d.height/2+")"),ya.get(t.id)||ya.set(t.id,{}),ya.get(t.id).startRight=h,bw(l,t.startLabelRight)}if(t.endLabelLeft){let u=await Ec(t.endLabelLeft,$v(t.labelStyle)),h=e.insert("g").attr("class","edgeTerminals"),f=h.insert("g").attr("class","inner");l=f.node().appendChild(u);let d=u.getBBox();f.attr("transform","translate("+-d.width/2+", "+-d.height/2+")"),h.node().appendChild(u),ya.get(t.id)||ya.set(t.id,{}),ya.get(t.id).endLeft=h,bw(l,t.endLabelLeft)}if(t.endLabelRight){let u=await Ec(t.endLabelRight,$v(t.labelStyle)),h=e.insert("g").attr("class","edgeTerminals"),f=h.insert("g").attr("class","inner");l=f.node().appendChild(u);let d=u.getBBox();f.attr("transform","translate("+-d.width/2+", "+-d.height/2+")"),h.node().appendChild(u),ya.get(t.id)||ya.set(t.id,{}),ya.get(t.id).endRight=h,bw(l,t.endLabelRight)}return n},"insertEdgeLabel");o(bw,"setTerminalWidth");kw=o((e,t)=>{V.debug("Moving label abc88 ",e.id,e.label,ww.get(e.id),t);let r=t.updatedPath?t.updatedPath:t.originalPath,n=pt(),{subGraphTitleTotalMargin:i}=io(n);if(e.label){let a=ww.get(e.id),s=e.x,l=e.y;if(r){let u=Oe.calcLabelPosition(r);V.debug("Moving label "+e.label+" from (",s,",",l,") to (",u.x,",",u.y,") abc88"),t.updatedPath&&(s=u.x,l=u.y)}a.attr("transform",`translate(${s}, ${l+i/2})`)}if(e.startLabelLeft){let a=ya.get(e.id).startLeft,s=e.x,l=e.y;if(r){let u=Oe.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_left",r);s=u.x,l=u.y}a.attr("transform",`translate(${s}, ${l})`)}if(e.startLabelRight){let a=ya.get(e.id).startRight,s=e.x,l=e.y;if(r){let u=Oe.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_right",r);s=u.x,l=u.y}a.attr("transform",`translate(${s}, ${l})`)}if(e.endLabelLeft){let a=ya.get(e.id).endLeft,s=e.x,l=e.y;if(r){let u=Oe.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_left",r);s=u.x,l=u.y}a.attr("transform",`translate(${s}, ${l})`)}if(e.endLabelRight){let a=ya.get(e.id).endRight,s=e.x,l=e.y;if(r){let u=Oe.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",r);s=u.x,l=u.y}a.attr("transform",`translate(${s}, ${l})`)}},"positionEdgeLabel"),q_t=o((e,t)=>{let r=e.x,n=e.y,i=Math.abs(t.x-r),a=Math.abs(t.y-n),s=e.width/2,l=e.height/2;return i>=s||a>=l},"outsideNode"),X_t=o((e,t,r)=>{V.debug(`intersection calc abc89: + outsidePoint: ${JSON.stringify(t)} + insidePoint : ${JSON.stringify(r)} + node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);let n=e.x,i=e.y,a=Math.abs(n-r.x),s=e.width/2,l=r.xMath.abs(n-t.x)*u){let d=r.y{V.warn("abc88 cutPathAtIntersect",e,t);let r=[],n=e[0],i=!1;return e.forEach(a=>{if(V.info("abc88 checking point",a,t),!q_t(t,a)&&!i){let s=X_t(t,n,a);V.debug("abc88 inside",a,n,s),V.debug("abc88 intersection",s,t);let l=!1;r.forEach(u=>{l=l||u.x===s.x&&u.y===s.y}),r.some(u=>u.x===s.x&&u.y===s.y)?V.warn("abc88 no intersect",s,r):r.push(s),i=!0}else V.warn("abc88 outside",a,n),n=a,i||r.push(a)}),V.debug("returning points",r),r},"cutPathAtIntersect");o(j_t,"extractCornerPoints");AQ=o(function(e,t,r){let n=t.x-e.x,i=t.y-e.y,a=Math.sqrt(n*n+i*i),s=r/a;return{x:t.x-s*n,y:t.y-s*i}},"findAdjacentPoint"),K_t=o(function(e){let{cornerPointPositions:t}=j_t(e),r=[];for(let n=0;n10&&Math.abs(a.y-i.y)>=10){V.debug("Corner point fixing",Math.abs(a.x-i.x),Math.abs(a.y-i.y));let m=5;s.x===l.x?p={x:h<0?l.x-m+d:l.x+m-d,y:f<0?l.y-d:l.y+d}:p={x:h<0?l.x-d:l.x+d,y:f<0?l.y-m+d:l.y+m-d}}else V.debug("Corner point skipping fixing",Math.abs(a.x-i.x),Math.abs(a.y-i.y));r.push(p,u)}else r.push(e[n]);return r},"fixCorners"),Ew=o(function(e,t,r,n,i,a,s){let{handDrawnSeed:l}=pt(),u=t.points,h=!1,f=i;var d=a;d.intersect&&f.intersect&&(u=u.slice(1,t.points.length-1),u.unshift(f.intersect(u[0])),V.debug("Last point APA12",t.start,"-->",t.end,u[u.length-1],d,d.intersect(u[u.length-1])),u.push(d.intersect(u[u.length-1]))),t.toCluster&&(V.info("to cluster abc88",r.get(t.toCluster)),u=SQ(t.points,r.get(t.toCluster).node),h=!0),t.fromCluster&&(V.debug("from cluster abc88",r.get(t.fromCluster),JSON.stringify(u,null,2)),u=SQ(u.reverse(),r.get(t.fromCluster).node).reverse(),h=!0);let p=u.filter(A=>!Number.isNaN(A.y));p=K_t(p);let m=p[p.length-1];if(p.length>1){m=p[p.length-1];let A=p[p.length-2],L=(m.x-A.x)/2,M=(m.y-A.y)/2,N={x:A.x+L,y:A.y+M};p.splice(-1,0,N)}let g=Ts;t.curve&&(g=t.curve);let{x:y,y:v}=xw(t),x=ma().x(y).y(v).curve(g),b;switch(t.thickness){case"normal":b="edge-thickness-normal";break;case"thick":b="edge-thickness-thick";break;case"invisible":b="edge-thickness-invisible";break;default:b="edge-thickness-normal"}switch(t.pattern){case"solid":b+=" edge-pattern-solid";break;case"dotted":b+=" edge-pattern-dotted";break;case"dashed":b+=" edge-pattern-dashed";break;default:b+=" edge-pattern-solid"}let w,S=x(p),T=Array.isArray(t.style)?t.style:[t.style];if(t.look==="handDrawn"){let A=Kt.svg(e);Object.assign([],p);let L=A.path(S,{roughness:.3,seed:l});b+=" transition",w=Gt(L).select("path").attr("id",t.id).attr("class"," "+b+(t.classes?" "+t.classes:"")).attr("style",T?T.reduce((N,k)=>N+";"+k,""):"");let M=w.attr("d");w.attr("d",M),e.node().appendChild(w.node())}else w=e.append("path").attr("d",S).attr("id",t.id).attr("class"," "+b+(t.classes?" "+t.classes:"")).attr("style",T?T.reduce((A,L)=>A+";"+L,""):"");let E="";(pt().flowchart.arrowMarkerAbsolute||pt().state.arrowMarkerAbsolute)&&(E=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,E=E.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),V.info("arrowTypeStart",t.arrowTypeStart),V.info("arrowTypeEnd",t.arrowTypeEnd),EQ(w,t,E,s,n);let _={};return h&&(_.updatedPath=u),_.originalPath=t.points,_},"insertEdge")});var Q_t,Z_t,J_t,t9t,e9t,r9t,n9t,i9t,a9t,s9t,o9t,Cw,XL=R(()=>{"use strict";ce();Q_t=o((e,t,r,n)=>{t.forEach(i=>{o9t[i](e,r,n)})},"insertMarkers"),Z_t=o((e,t,r)=>{V.trace("Making markers for ",r),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},"extension"),J_t=o((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),t9t=o((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),e9t=o((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),r9t=o((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},"lollipop"),n9t=o((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"point"),i9t=o((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"circle"),a9t=o((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},"cross"),s9t=o((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),o9t={extension:Z_t,composition:J_t,aggregation:t9t,dependency:e9t,lollipop:r9t,point:n9t,circle:i9t,cross:a9t,barb:s9t},Cw=Q_t});function He(e){let t=e.map((r,n)=>`${n===0?"M":"L"}${r.x},${r.y}`);return t.push("Z"),t.join(" ")}function Vo(e,t,r,n,i,a){let s=[],u=r-e,h=n-t,f=u/a,d=2*Math.PI/f,p=t+h/2;for(let m=0;m<=50;m++){let g=m/50,y=e+g*u,v=p+i*Math.sin(d*(y-e));s.push({x:y,y:v})}return s}function Sw(e,t,r,n,i,a){let s=[],l=i*Math.PI/180,f=(a*Math.PI/180-l)/(n-1);for(let d=0;d{"use strict";Nl();Ue();ur();hr();_r();he=o(async(e,t,r)=>{let n,i=t.useHtmlLabels||Tr(pt().flowchart.htmlLabels);r?n=r:n="node default";let a=e.insert("g").attr("class",n).attr("id",t.domId||t.id),s=a.insert("g").attr("class","label").attr("style",t.labelStyle),l;t.label===void 0?l="":l=typeof t.label=="string"?t.label:t.label[0];let u;u=await ia(s,Zr(no(l),pt()),{useHtmlLabels:i,width:t.width||pt().flowchart.wrappingWidth,cssClasses:"markdown-node-label",style:t.labelStyle,addSvgBackground:!!t.icon||!!t.img});let h=u.getBBox(),f=t.padding/2;if(Tr(pt().flowchart.htmlLabels)){let d=u.children[0],p=Gt(u),m=d.getElementsByTagName("img");if(m){let g=l.replace(/]*>/g,"").trim()==="";await Promise.all([...m].map(y=>new Promise(v=>{function x(){if(y.style.display="flex",y.style.flexDirection="column",g){let b=pt().fontSize?pt().fontSize:window.getComputedStyle(document.body).fontSize,S=parseInt(b,10)*5+"px";y.style.minWidth=S,y.style.maxWidth=S}else y.style.width="100%";v(y)}o(x,"setupImage"),setTimeout(()=>{y.complete&&x()}),y.addEventListener("error",x),y.addEventListener("load",x)})))}h=d.getBoundingClientRect(),p.attr("width",h.width),p.attr("height",h.height)}return i?s.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"):s.attr("transform","translate(0, "+-h.height/2+")"),t.centerLabel&&s.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"),s.insert("rect",":first-child"),{shapeSvg:a,bbox:h,halfPadding:f,label:s}},"labelHelper"),Qt=o((e,t)=>{let r=t.node().getBBox();e.width=r.width,e.height=r.height},"updateNodeBounds"),de=o((e,t)=>(e.look==="handDrawn"?"rough-node":"node")+" "+e.cssClasses+" "+(t||""),"getNodeClasses");o(He,"createPathFromPoints");o(Vo,"generateFullSineWavePoints");o(Sw,"generateCirclePoints")});function l9t(e,t){return e.intersect(t)}var LQ,DQ=R(()=>{"use strict";o(l9t,"intersectNode");LQ=l9t});function c9t(e,t,r,n){var i=e.x,a=e.y,s=i-n.x,l=a-n.y,u=Math.sqrt(t*t*l*l+r*r*s*s),h=Math.abs(t*r*s/u);n.x{"use strict";o(c9t,"intersectEllipse");Aw=c9t});function u9t(e,t,r){return Aw(e,t,t,r)}var RQ,NQ=R(()=>{"use strict";jL();o(u9t,"intersectCircle");RQ=u9t});function h9t(e,t,r,n){var i,a,s,l,u,h,f,d,p,m,g,y,v,x,b;if(i=t.y-e.y,s=e.x-t.x,u=t.x*e.y-e.x*t.y,p=i*r.x+s*r.y+u,m=i*n.x+s*n.y+u,!(p!==0&&m!==0&&MQ(p,m))&&(a=n.y-r.y,l=r.x-n.x,h=n.x*r.y-r.x*n.y,f=a*e.x+l*e.y+h,d=a*t.x+l*t.y+h,!(f!==0&&d!==0&&MQ(f,d))&&(g=i*l-a*s,g!==0)))return y=Math.abs(g/2),v=s*h-l*u,x=v<0?(v-y)/g:(v+y)/g,v=a*u-i*h,b=v<0?(v-y)/g:(v+y)/g,{x,y:b}}function MQ(e,t){return e*t>0}var IQ,OQ=R(()=>{"use strict";o(h9t,"intersectLine");o(MQ,"sameSign");IQ=h9t});function f9t(e,t,r){let n=e.x,i=e.y,a=[],s=Number.POSITIVE_INFINITY,l=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(f){s=Math.min(s,f.x),l=Math.min(l,f.y)}):(s=Math.min(s,t.x),l=Math.min(l,t.y));let u=n-e.width/2-s,h=i-e.height/2-l;for(let f=0;f1&&a.sort(function(f,d){let p=f.x-r.x,m=f.y-r.y,g=Math.sqrt(p*p+m*m),y=d.x-r.x,v=d.y-r.y,x=Math.sqrt(y*y+v*v);return g{"use strict";OQ();o(f9t,"intersectPolygon");PQ=f9t});var qt,Je=R(()=>{"use strict";DQ();NQ();jL();BQ();HL();qt={node:LQ,circle:RQ,ellipse:Aw,polygon:PQ,rect:Pd}});var Bd,Gv=R(()=>{"use strict";Be();Je();Am();Ze();Qe();Bd=o(async(e,t,r)=>{let{labelStyles:n,nodeStyles:i}=te(t);t.labelStyle=n;let{shapeSvg:a,bbox:s}=await he(e,t,de(t)),l=Math.max(s.width+r.labelPaddingX*2,t?.width||0),u=Math.max(s.height+r.labelPaddingY*2,t?.height||0),h=-l/2,f=-u/2,d,{rx:p,ry:m}=t,{cssStyles:g}=t;if(r?.rx&&r.ry&&(p=r.rx,m=r.ry),t.look==="handDrawn"){let y=Kt.svg(a),v=Jt(t,{}),x=p||m?y.path(Ml(h,f,l,u,p||0),v):y.rectangle(h,f,l,u,v);d=a.insert(()=>x,":first-child"),d.attr("class","basic label-container").attr("style",g)}else d=a.insert("rect",":first-child"),d.attr("class","basic label-container").attr("style",i).attr("rx",p).attr("ry",m).attr("x",h).attr("y",f).attr("width",l).attr("height",u);return Qt(t,d),t.intersect=function(y){return qt.rect(t,y)},a},"drawRect")});var FQ,zQ=R(()=>{"use strict";Gv();FQ=o(async(e,t)=>Bd(e,t,{rx:5,ry:5,classes:"flowchart-node"}),"state")});var _w,$Q=R(()=>{"use strict";Gv();_w=o(async(e,t)=>{let r={rx:5,ry:5,classes:"",labelPaddingX:(t?.padding||0)*1,labelPaddingY:(t?.padding||0)*1};return Bd(e,t,r)},"roundedRect")});var _m,GQ=R(()=>{"use strict";Gv();_m=o(async(e,t)=>{let r={rx:0,ry:0,classes:"",labelPaddingX:(t?.padding||0)*2,labelPaddingY:(t?.padding||0)*1};return Bd(e,t,r)},"squareRect")});var Vv,VQ=R(()=>{"use strict";Qe();Je();Ze();Be();Vv=o((e,t,{config:{themeVariables:r}})=>{let{lineColor:n}=r,i=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),a;if(t.look==="handDrawn"){let l=Kt.svg(i).circle(0,0,14,xQ(n));a=i.insert(()=>l)}else a=i.insert("circle",":first-child");return a.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),Qt(t,a),t.intersect=function(s){return qt.circle(t,7,s)},i},"stateStart")});var Uv,UQ=R(()=>{"use strict";Qe();Je();Ze();Be();Uv=o((e,t,{config:{themeVariables:r}})=>{let{labelStyles:n,nodeStyles:i}=te(t);t.labelStyle=n;let{cssStyles:a}=t,{lineColor:s,stateBorder:l,nodeBorder:u}=r,h=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),f=Kt.svg(h),d=Jt(t,{});t.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");let p=f.circle(0,0,14,{...d,stroke:s,strokeWidth:2}),m=l??u,g=f.circle(0,0,5,{...d,fill:m,stroke:m,strokeWidth:2,fillStyle:"solid"}),y=h.insert(()=>p,":first-child");return y.insert(()=>g),a&&y.selectAll("path").attr("style",a),i&&y.selectAll("path").attr("style",i),Qt(t,y),t.intersect=function(v){return qt.circle(t,7,v)},h},"stateEnd")});var Lw,HQ=R(()=>{"use strict";Qe();Je();Ze();Be();Lw=o((e,t,{dir:r,config:{state:n,themeVariables:i}})=>{let{nodeStyles:a}=te(t);t.label="";let s=e.insert("g").attr("class",de(t)).attr("id",t.domId??t.id),{cssStyles:l}=t,u=Math.max(70,t?.width??0),h=Math.max(10,t?.height??0);r==="LR"&&(u=Math.max(10,t?.width??0),h=Math.max(70,t?.height??0));let f=-1*u/2,d=-1*h/2,p=Kt.svg(s),m=Jt(t,{stroke:i.lineColor,fill:i.lineColor});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");let g=p.rectangle(f,d,u,h,m),y=s.insert(()=>g,":first-child");l&&t.look!=="handDrawn"&&y.selectAll("path").attr("style",l),a&&t.look!=="handDrawn"&&y.selectAll("path").attr("style",a),Qt(t,y);let v=n?.padding??0;return t.width&&t.height&&(t.width+=v/2||0,t.height+=v/2||0),t.intersect=function(x){return qt.rect(t,x)},s},"forkJoin")});var WQ,YQ=R(()=>{"use strict";Je();Qe();Ze();Be();WQ=o((e,t)=>{let{nodeStyles:r}=te(t);t.label="";let n=e.insert("g").attr("class",de(t)).attr("id",t.domId??t.id),{cssStyles:i}=t,a=Math.max(28,t.width??0),s=[{x:0,y:a/2},{x:a/2,y:0},{x:0,y:-a/2},{x:-a/2,y:0}],l=Kt.svg(n),u=Jt(t,{});t.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");let h=He(s),f=l.path(h,u),d=n.insert(()=>f,":first-child");return i&&t.look!=="handDrawn"&&d.selectAll("path").attr("style",i),r&&t.look!=="handDrawn"&&d.selectAll("path").attr("style",r),t.width=28,t.height=28,t.intersect=function(p){return qt.polygon(t,s,p)},n},"choice")});var qQ,XQ=R(()=>{"use strict";Qe();Je();Ze();Be();qQ=o(async(e,t,{config:{themeVariables:r}})=>{let{labelStyles:n,nodeStyles:i}=te(t);t.labelStyle=n;let{shapeSvg:a,bbox:s}=await he(e,t,de(t)),l=Math.max(s.width+(t.padding??0)*2,t?.width??0),u=Math.max(s.height+(t.padding??0)*2,t?.height??0),h=-l/2,f=-u/2,{cssStyles:d}=t;t.useHtmlLabels||(t.centerLabel=!0);let m=Kt.svg(a),g=Jt(t,{fill:r.noteBkgColor,stroke:r.noteBorderColor});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");let y=m.rectangle(h,f,l,u,g),v=a.insert(()=>y,":first-child");return v.attr("class","basic label-container"),d&&t.look!=="handDrawn"&&v.selectAll("path").attr("style",d),i&&t.look!=="handDrawn"&&v.selectAll("path").attr("style",i),Qt(t,v),t.intersect=function(x){return qt.rect(t,x)},a},"note")});var Dw,jQ=R(()=>{"use strict";Be();Je();Ze();Qe();Am();Dw=o(async(e,t)=>{let{labelStyles:r,nodeStyles:n}=te(t);t.labelStyle=r;let{shapeSvg:i,bbox:a}=await he(e,t,de(t)),s=a.height+t.padding,l=a.width+s/4+t.padding,u,{cssStyles:h}=t;if(t.look==="handDrawn"){let f=Kt.svg(i),d=Jt(t,{}),p=Ml(-l/2,-s/2,l,s,s/2),m=f.path(p,d);u=i.insert(()=>m,":first-child"),u.attr("class","basic label-container").attr("style",h)}else u=i.insert("rect",":first-child"),u.attr("class","basic label-container").attr("style",n).attr("rx",s/2).attr("ry",s/2).attr("x",-l/2).attr("y",-s/2).attr("width",l).attr("height",s);return Qt(t,u),t.intersect=function(f){return qt.rect(t,f)},i},"stadium")});var KQ,QQ=R(()=>{"use strict";ur();hr();Be();mw();Je();Ze();Qe();Ue();Am();ce();KQ=o(async(e,t)=>{let{labelStyles:r,nodeStyles:n}=te(t);t.labelStyle=r;let i;t.cssClasses?i="node "+t.cssClasses:i="node default";let a=e.insert("g").attr("class",i).attr("id",t.domId||t.id),s=a.insert("g"),l=a.insert("g").attr("class","label").attr("style",n),u=t.description,h=t.label,f=l.node().appendChild(await Ec(h,t.labelStyle,!0,!0)),d={width:0,height:0};if(Tr(pt()?.flowchart?.htmlLabels)){let A=f.children[0],L=Gt(f);d=A.getBoundingClientRect(),L.attr("width",d.width),L.attr("height",d.height)}V.info("Text 2",u);let p=u||[],m=f.getBBox(),g=l.node().appendChild(await Ec(p.join?p.join("
    "):p,t.labelStyle,!0,!0)),y=g.children[0],v=Gt(g);d=y.getBoundingClientRect(),v.attr("width",d.width),v.attr("height",d.height);let x=(t.padding||0)/2;Gt(g).attr("transform","translate( "+(d.width>m.width?0:(m.width-d.width)/2)+", "+(m.height+x+5)+")"),Gt(f).attr("transform","translate( "+(d.width(V.debug("Rough node insert CXC",M),N),":first-child"),E=a.insert(()=>(V.debug("Rough node insert CXC",M),M),":first-child")}else E=s.insert("rect",":first-child"),_=s.insert("line"),E.attr("class","outer title-state").attr("style",n).attr("x",-d.width/2-x).attr("y",-d.height/2-x).attr("width",d.width+(t.padding||0)).attr("height",d.height+(t.padding||0)),_.attr("class","divider").attr("x1",-d.width/2-x).attr("x2",d.width/2+x).attr("y1",-d.height/2-x+m.height+x).attr("y2",-d.height/2-x+m.height+x);return Qt(t,E),t.intersect=function(A){return qt.rect(t,A)},a},"rectWithTitle")});function Ba(e,t,r,n){return e.insert("polygon",":first-child").attr("points",n.map(function(i){return i.x+","+i.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+r/2+")")}var Ou=R(()=>{"use strict";o(Ba,"insertPolygonShape")});var Lm,ZQ=R(()=>{"use strict";Be();Je();Ze();Qe();Ou();Lm=o(async(e,t)=>{let{labelStyles:r,nodeStyles:n}=te(t);t.labelStyle=r;let{shapeSvg:i,bbox:a}=await he(e,t,de(t)),s=(t?.padding||0)/2,l=a.width+t.padding,u=a.height+t.padding,h=-a.width/2-s,f=-a.height/2-s,d=[{x:0,y:0},{x:l,y:0},{x:l,y:-u},{x:0,y:-u},{x:0,y:0},{x:-8,y:0},{x:l+8,y:0},{x:l+8,y:-u},{x:-8,y:-u},{x:-8,y:0}];if(t.look==="handDrawn"){let p=Kt.svg(i),m=Jt(t,{}),g=p.rectangle(h-8,f,l+16,u,m),y=p.line(h,f,h,f+u,m),v=p.line(h+l,f,h+l,f+u,m);i.insert(()=>y,":first-child"),i.insert(()=>v,":first-child");let x=i.insert(()=>g,":first-child"),{cssStyles:b}=t;x.attr("class","basic label-container").attr("style",b),Qt(t,x)}else{let p=Ba(i,l,u,d);n&&p.attr("style",n),Qt(t,p)}return t.intersect=function(p){return qt.polygon(t,d,p)},i},"subroutine")});var d9t,p9t,m9t,Hv,JQ=R(()=>{"use strict";Be();Je();Ze();Qe();d9t=o((e,t,r,n,i,a)=>[`M${e},${t+a}`,`a${i},${a} 0,0,0 ${r},0`,`a${i},${a} 0,0,0 ${-r},0`,`l0,${n}`,`a${i},${a} 0,0,0 ${r},0`,`l0,${-n}`].join(" "),"createCylinderPathD"),p9t=o((e,t,r,n,i,a)=>[`M${e},${t+a}`,`M${e+r},${t+a}`,`a${i},${a} 0,0,0 ${-r},0`,`l0,${n}`,`a${i},${a} 0,0,0 ${r},0`,`l0,${-n}`].join(" "),"createOuterCylinderPathD"),m9t=o((e,t,r,n,i,a)=>[`M${e-r/2},${-n/2}`,`a${i},${a} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD"),Hv=o(async(e,t)=>{let{labelStyles:r,nodeStyles:n}=te(t);t.labelStyle=r;let{shapeSvg:i,bbox:a,label:s}=await he(e,t,de(t)),l=Math.max(a.width+t.padding,t.width??0),u=l/2,h=u/(2.5+l/50),f=Math.max(a.height+h+t.padding,t.height??0),d,{cssStyles:p}=t;if(t.look==="handDrawn"){let m=Kt.svg(i),g=p9t(0,0,l,f,u,h),y=m9t(0,h,l,f,u,h),v=m.path(g,Jt(t,{})),x=m.path(y,Jt(t,{fill:"none"}));d=i.insert(()=>x,":first-child"),d=i.insert(()=>v,":first-child"),d.attr("class","basic label-container"),p&&d.attr("style",p)}else{let m=d9t(0,0,l,f,u,h);d=i.insert("path",":first-child").attr("d",m).attr("class","basic label-container").attr("style",p).attr("style",n)}return d.attr("label-offset-y",h),d.attr("transform",`translate(${-l/2}, ${-(f/2+h)})`),Qt(t,d),s.attr("transform",`translate(${-(a.width/2)-(a.x-(a.left??0))}, ${-(a.height/2)+(t.padding??0)/1.5-(a.y-(a.top??0))})`),t.intersect=function(m){let g=qt.rect(t,m),y=g.x-(t.x??0);if(u!=0&&(Math.abs(y)<(t.width??0)/2||Math.abs(y)==(t.width??0)/2&&Math.abs(g.y-(t.y??0))>(t.height??0)/2-h)){let v=h*h*(1-y*y/(u*u));v>0&&(v=Math.sqrt(v)),v=h-v,m.y-(t.y??0)>0&&(v=-v),g.y+=v}return g},i},"cylinder")});var KL,tZ=R(()=>{"use strict";ce();Be();Je();Ze();Qe();KL=o(async(e,t)=>{let{labelStyles:r,nodeStyles:n}=te(t);t.labelStyle=r;let{shapeSvg:i,bbox:a,halfPadding:s}=await he(e,t,de(t)),l=a.width/2+s,u,{cssStyles:h}=t;if(t.look==="handDrawn"){let f=Kt.svg(i),d=Jt(t,{}),p=f.circle(0,0,l*2,d);u=i.insert(()=>p,":first-child"),u.attr("class","basic label-container").attr("style",h)}else u=i.insert("circle",":first-child").attr("class","basic label-container").attr("style",n).attr("r",l).attr("cx",0).attr("cy",0);return Qt(t,u),t.intersect=function(f){return V.info("Circle intersect",t,l,f),qt.circle(t,l,f)},i},"circle")});var Rw,eZ=R(()=>{"use strict";ce();Be();Je();Ze();Qe();Rw=o(async(e,t)=>{let{labelStyles:r,nodeStyles:n}=te(t);t.labelStyle=r;let{shapeSvg:i,bbox:a,halfPadding:s}=await he(e,t,de(t)),u=a.width/2+s+5,h=a.width/2+s,f,{cssStyles:d}=t;if(t.look==="handDrawn"){let p=Kt.svg(i),m=Jt(t,{roughness:.2,strokeWidth:2.5}),g=Jt(t,{roughness:.2,strokeWidth:1.5}),y=p.circle(0,0,u*2,m),v=p.circle(0,0,h*2,g);f=i.insert("g",":first-child"),f.attr("class",t.cssClasses).attr("style",d),f.node()?.appendChild(y),f.node()?.appendChild(v)}else{f=i.insert("g",":first-child");let p=f.insert("circle",":first-child"),m=f.insert("circle");f.attr("class","basic label-container").attr("style",n),p.attr("class","outer-circle").attr("style",n).attr("r",u).attr("cx",0).attr("cy",0),m.attr("class","inner-circle").attr("style",n).attr("r",h).attr("cx",0).attr("cy",0)}return Qt(t,f),t.intersect=function(p){return V.info("DoubleCircle intersect",t,u,p),qt.circle(t,u,p)},i},"doublecircle")});var QL,rZ=R(()=>{"use strict";Be();Je();Ze();Qe();QL=o(async(e,t)=>{let{labelStyles:r,nodeStyles:n}=te(t);t.labelStyle=r;let{shapeSvg:i,bbox:a,label:s}=await he(e,t,de(t)),l=Math.max(a.width+(t.padding??0),t?.width??0),u=Math.max(a.height+(t.padding??0),t?.height??0),h=-l/2,f=-u/2,d=f/2,p=[{x:h+d,y:f},{x:h,y:0},{x:h+d,y:-f},{x:-h,y:-f},{x:-h,y:f}],{cssStyles:m}=t,g=Kt.svg(i),y=Jt(t,{});t.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");let v=He(p),x=g.path(v,y),b=i.insert(()=>x,":first-child");return b.attr("class","basic label-container"),m&&t.look!=="handDrawn"&&b.selectAll("path").attr("style",m),n&&t.look!=="handDrawn"&&b.selectAll("path").attr("style",n),b.attr("transform",`translate(${-d/2},0)`),s.attr("transform",`translate(${-d/2-a.width/2-(a.x-(a.left??0))}, ${-(a.height/2)-(a.y-(a.top??0))})`),Qt(t,b),t.intersect=function(w){return qt.polygon(t,p,w)},i},"rect_left_inv_arrow")});var g9t,Wv,nZ=R(()=>{"use strict";ce();Be();Je();Ze();Qe();Ou();g9t=o((e,t,r)=>[`M${e+r/2},${t}`,`L${e+r},${t-r/2}`,`L${e+r/2},${t-r}`,`L${e},${t-r/2}`,"Z"].join(" "),"createDecisionBoxPathD"),Wv=o(async(e,t)=>{let{labelStyles:r,nodeStyles:n}=te(t);t.labelStyle=r;let{shapeSvg:i,bbox:a}=await he(e,t,de(t)),s=a.width+t.padding,l=a.height+t.padding,u=s+l,h=[{x:u/2,y:0},{x:u,y:-u/2},{x:u/2,y:-u},{x:0,y:-u/2}],f,{cssStyles:d}=t;if(t.look==="handDrawn"){let p=Kt.svg(i),m=Jt(t,{}),g=g9t(0,0,u),y=p.path(g,m);f=i.insert(()=>y,":first-child").attr("transform",`translate(${-u/2}, ${u/2})`),d&&f.attr("style",d)}else f=Ba(i,u,u,h);return n&&f.attr("style",n),Qt(t,f),t.intersect=function(p){return V.debug(`APA12 Intersect called SPLIT +point:`,p,` +node: +`,t,` +res:`,qt.polygon(t,h,p)),qt.polygon(t,h,p)},i},"question")});var y9t,Nw,iZ=R(()=>{"use strict";Be();Je();Ze();Qe();Ou();y9t=o((e,t,r,n,i)=>[`M${e+i},${t}`,`L${e+r-i},${t}`,`L${e+r},${t-n/2}`,`L${e+r-i},${t-n}`,`L${e+i},${t-n}`,`L${e},${t-n/2}`,"Z"].join(" "),"createHexagonPathD"),Nw=o(async(e,t)=>{let{labelStyles:r,nodeStyles:n}=te(t);t.labelStyle=r;let{shapeSvg:i,bbox:a}=await he(e,t,de(t)),s=4,l=a.height+t.padding,u=l/s,h=a.width+2*u+t.padding,f=[{x:u,y:0},{x:h-u,y:0},{x:h,y:-l/2},{x:h-u,y:-l},{x:u,y:-l},{x:0,y:-l/2}],d,{cssStyles:p}=t;if(t.look==="handDrawn"){let m=Kt.svg(i),g=Jt(t,{}),y=y9t(0,0,h,l,u),v=m.path(y,g);d=i.insert(()=>v,":first-child").attr("transform",`translate(${-h/2}, ${l/2})`),p&&d.attr("style",p)}else d=Ba(i,h,l,f);return n&&d.attr("style",n),t.width=h,t.height=l,Qt(t,d),t.intersect=function(m){return qt.polygon(t,f,m)},i},"hexagon")});async function aZ(e,t){let{labelStyles:r,nodeStyles:n}=te(t);t.labelStyle=r;let{shapeSvg:i,bbox:a}=await he(e,t,de(t)),s=Math.max(a.width+t.padding,t?.width||0),l=Math.max(a.height+t.padding,t?.height||0),u=-s/2,h=-l/2,f=i.insert("rect",":first-child");return f.attr("class","text").attr("style",n).attr("rx",0).attr("ry",0).attr("x",u).attr("y",h).attr("width",s).attr("height",l),Qt(t,f),t.intersect=function(d){return qt.rect(t,d)},i}var sZ=R(()=>{"use strict";Be();Je();Ze();o(aZ,"text")});async function Mw(e,t){let{labelStyles:r,nodeStyles:n}=te(t);t.labelStyle=r;let{shapeSvg:i,bbox:a}=await he(e,t,de(t)),s=a.height+t.padding,l=12,u=a.width+t.padding+l,h=0,f=u,d=-s,p=0,m=[{x:h+l,y:d},{x:f,y:d},{x:f,y:p},{x:h,y:p},{x:h,y:d+l},{x:h+l,y:d}],g,{cssStyles:y}=t;if(t.look==="handDrawn"){let v=Kt.svg(i),x=Jt(t,{}),b=He(m),w=v.path(b,x);g=i.insert(()=>w,":first-child").attr("transform",`translate(${-u/2}, ${s/2})`),y&&g.attr("style",y)}else g=Ba(i,u,s,m);return n&&g.attr("style",n),Qt(t,g),t.intersect=function(v){return qt.polygon(t,m,v)},i}var oZ=R(()=>{"use strict";Be();Je();Ze();Qe();Ou();Be();o(Mw,"card")});var Dm,lZ=R(()=>{"use strict";Be();Je();Ze();Qe();Dm=o(async(e,t)=>{let{labelStyles:r,nodeStyles:n}=te(t);t.labelStyle=r;let{shapeSvg:i,bbox:a,label:s}=await he(e,t,de(t)),l=t?.padding??0,u=Math.max(a.width+(t.padding??0)*2,t?.width??0),h=Math.max(a.height+(t.padding??0)*2,t?.height??0),f=-a.width/2-l,d=-a.height/2-l,{cssStyles:p}=t,m=Kt.svg(i),g=Jt(t,{});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");let y=[{x:f,y:d},{x:f+u+8,y:d},{x:f+u+8,y:d+h},{x:f-8,y:d+h},{x:f-8,y:d},{x:f,y:d},{x:f,y:d+h}],v=m.polygon(y.map(b=>[b.x,b.y]),g),x=i.insert(()=>v,":first-child");return x.attr("class","basic label-container").attr("style",p),n&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",n),p&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",n),s.attr("transform",`translate(${-u/2+4+(t.padding??0)-(a.x-(a.left??0))},${-h/2+(t.padding??0)-(a.y-(a.top??0))})`),Qt(t,x),t.intersect=function(b){return qt.rect(t,b)},i},"shadedProcess")});var cZ,uZ=R(()=>{"use strict";ce();Be();Je();Ze();Qe();cZ=o((e,t)=>{let{labelStyles:r}=te(t);t.labelStyle=r;let n=de(t),i=n;n||(i="anchor");let a=e.insert("g").attr("class",i).attr("id",t.domId||t.id),s=1,{cssStyles:l}=t,u=Kt.svg(a),h=Jt(t,{fill:"black",stroke:"none",fillStyle:"solid"});t.look!=="handDrawn"&&(h.roughness=0);let f=u.circle(0,0,s*2,h),d=a.insert(()=>f,":first-child");return d.attr("class","anchor").attr("style",l),Qt(t,d),t.intersect=function(p){return V.info("Circle intersect",t,s,p),qt.circle(t,s,p)},a},"anchor")});var Yv,hZ=R(()=>{"use strict";Be();Je();Ze();Qe();Ou();Yv=o(async(e,t)=>{let{labelStyles:r,nodeStyles:n}=te(t);t.labelStyle=r;let{shapeSvg:i,bbox:a}=await he(e,t,de(t)),s=Math.max(a.width+(t.padding??0),t?.width??0),l=Math.max(a.height+(t.padding??0),t?.height??0),u=[{x:-3*l/6,y:0},{x:s,y:0},{x:s+3*l/6,y:-l},{x:0,y:-l}],h,{cssStyles:f}=t;if(t.look==="handDrawn"){let d=Kt.svg(i),p=Jt(t,{}),m=He(u),g=d.path(m,p);h=i.insert(()=>g,":first-child").attr("transform",`translate(${-s/2}, ${l/2})`),f&&h.attr("style",f)}else h=Ba(i,s,l,u);return n&&h.attr("style",n),t.width=s,t.height=l,Qt(t,h),t.intersect=function(d){return qt.polygon(t,u,d)},i},"lean_right")});var qv,fZ=R(()=>{"use strict";Be();Je();Ze();Qe();Ou();qv=o(async(e,t)=>{let{labelStyles:r,nodeStyles:n}=te(t);t.labelStyle=r;let{shapeSvg:i,bbox:a}=await he(e,t,de(t)),s=Math.max(a.width+(t.padding??0),t?.width??0),l=Math.max(a.height+(t.padding??0),t?.height??0),u=[{x:0,y:0},{x:s+3*l/6,y:0},{x:s,y:-l},{x:-(3*l)/6,y:-l}],h,{cssStyles:f}=t;if(t.look==="handDrawn"){let d=Kt.svg(i),p=Jt(t,{}),m=He(u),g=d.path(m,p);h=i.insert(()=>g,":first-child").attr("transform",`translate(${-s/2}, ${l/2})`),f&&h.attr("style",f)}else h=Ba(i,s,l,u);return n&&h.attr("style",n),t.width=s,t.height=l,Qt(t,h),t.intersect=function(d){return qt.polygon(t,u,d)},i},"lean_left")});var Xv,dZ=R(()=>{"use strict";Be();Je();Ze();Qe();Ou();Xv=o(async(e,t)=>{let{labelStyles:r,nodeStyles:n}=te(t);t.labelStyle=r;let{shapeSvg:i,bbox:a}=await he(e,t,de(t)),s=a.width+t.padding,l=a.height+t.padding,u=[{x:-3*l/6,y:0},{x:s+3*l/6,y:0},{x:s,y:-l},{x:0,y:-l}],h,{cssStyles:f}=t;if(t.look==="handDrawn"){let d=Kt.svg(i),p=Jt(t,{}),m=He(u),g=d.path(m,p);h=i.insert(()=>g,":first-child").attr("transform",`translate(${-s/2}, ${l/2})`),f&&h.attr("style",f)}else h=Ba(i,s,l,u);return n&&h.attr("style",n),t.width=s,t.height=l,Qt(t,h),t.intersect=function(d){return qt.polygon(t,u,d)},i},"trapezoid")});var Rm,pZ=R(()=>{"use strict";Be();Je();Ze();Qe();Ou();Rm=o(async(e,t)=>{let{labelStyles:r,nodeStyles:n}=te(t);t.labelStyle=r;let{shapeSvg:i,bbox:a}=await he(e,t,de(t)),s=Math.max(a.width+(t.padding??0)*2,t?.width??0),l=Math.max(a.height+(t.padding??0)*2,t?.height??0),u=[{x:0,y:0},{x:s,y:0},{x:s+3*l/6,y:-l},{x:-3*l/6,y:-l}],h,{cssStyles:f}=t;if(t.look==="handDrawn"){let d=Kt.svg(i),p=Jt(t,{}),m=He(u),g=d.path(m,p);h=i.insert(()=>g,":first-child").attr("transform",`translate(${-s/2}, ${l/2})`),f&&h.attr("style",f)}else h=Ba(i,s,l,u);return n&&h.attr("style",n),t.width=s,t.height=l,Qt(t,h),t.intersect=function(d){return qt.polygon(t,u,d)},i},"inv_trapezoid")});var mZ,gZ=R(()=>{"use strict";Gv();Be();Je();mZ=o(async(e,t)=>{let{shapeSvg:r,bbox:n,label:i}=await he(e,t,"label"),a=r.insert("rect",":first-child");return a.attr("width",.1).attr("height",.1),r.attr("class","label edgeLabel"),i.attr("transform",`translate(${-(n.width/2)-(n.x-(n.left??0))}, ${-(n.height/2)-(n.y-(n.top??0))})`),Qt(t,a),t.intersect=function(u){return qt.rect(t,u)},r},"labelRect")});var Iw,yZ=R(()=>{"use strict";ce();Be();Je();Ze();Qe();Be();hr();Ue();Iw=o(async(e,t)=>{let{labelStyles:r,nodeStyles:n}=te(t);t.labelStyle=r;let{shapeSvg:i,bbox:a,label:s}=await he(e,t,de(t)),l=Tr(pt().flowchart?.htmlLabels),u=a.width+(t.padding??0),h=u+a.height,f=u+a.height,d=[{x:0,y:0},{x:f,y:0},{x:f/2,y:-h}],{cssStyles:p}=t,m=Kt.svg(i),g=Jt(t,{});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");let y=He(d),v=m.path(y,g),x=i.insert(()=>v,":first-child").attr("transform",`translate(${-h/2}, ${h/2})`);return p&&t.look!=="handDrawn"&&x.selectChildren("path").attr("style",p),n&&t.look!=="handDrawn"&&x.selectChildren("path").attr("style",n),t.width=u,t.height=h,Qt(t,x),s.attr("transform",`translate(${-a.width/2-(a.x-(a.left??0))}, ${h/2-(a.height+(t.padding??0)/(l?2:1)-(a.y-(a.top??0)))})`),t.intersect=function(b){return V.info("Triangle intersect",t,d,b),qt.polygon(t,d,b)},i},"triangle")});var ZL,vZ=R(()=>{"use strict";ce();Be();Je();Ze();Qe();ZL=o(async(e,t)=>{let{labelStyles:r,nodeStyles:n}=te(t);t.labelStyle=r;let i=80,a=50,{shapeSvg:s,bbox:l}=await he(e,t,de(t)),u=Math.max(i,l.width+(t.padding??0)*2,t?.width??0),h=Math.max(a,l.height+(t.padding??0)*2,t?.height??0),f=h/2,{cssStyles:d}=t,p=Kt.svg(s),m=Jt(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");let g=[{x:-u/2,y:-h/2},{x:u/2-f,y:-h/2},...Sw(-u/2+f,0,f,50,90,270),{x:u/2-f,y:h/2},{x:-u/2,y:h/2}],y=He(g),v=p.path(y,m),x=s.insert(()=>v,":first-child");return x.attr("class","basic label-container"),d&&t.look!=="handDrawn"&&x.selectChildren("path").attr("style",d),n&&t.look!=="handDrawn"&&x.selectChildren("path").attr("style",n),Qt(t,x),t.intersect=function(b){return V.info("Pill intersect",t,{radius:f,point:b}),qt.polygon(t,g,b)},s},"halfRoundedRectangle")});var Ow,xZ=R(()=>{"use strict";Be();Je();Ze();Qe();Ow=o(async(e,t)=>{let{labelStyles:r,nodeStyles:n}=te(t);t.labelStyle=r;let{shapeSvg:i,bbox:a}=await he(e,t,de(t)),s=80,l=20,u=Math.max(s,(a.width+(t.padding??0)*2)*1.25,t?.width??0),h=Math.max(l,a.height+(t.padding??0)*2,t?.height??0),f=h/2,{cssStyles:d}=t,p=Kt.svg(i),m=Jt(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");let g=u,y=h,v=g-f,x=y/4,b=[{x:v,y:0},{x,y:0},{x:0,y:y/2},{x,y},{x:v,y},...Sw(-v,-y/2,f,50,270,90)],w=He(b),S=p.path(w,m),T=i.insert(()=>S,":first-child");return T.attr("class","basic label-container"),d&&t.look!=="handDrawn"&&T.selectChildren("path").attr("style",d),n&&t.look!=="handDrawn"&&T.selectChildren("path").attr("style",n),T.attr("transform",`translate(${-u/2}, ${-h/2})`),Qt(t,T),t.intersect=function(E){return qt.polygon(t,b,E)},i},"curvedTrapezoid")});var Pw,bZ=R(()=>{"use strict";Be();Je();Ze();Qe();Pw=o(async(e,t)=>{let{labelStyles:r,nodeStyles:n}=te(t);t.labelStyle=r;let{shapeSvg:i,bbox:a,label:s}=await he(e,t,de(t)),l=Math.max(a.width+(t.padding??0)*2,t?.width??0),u=Math.max(a.height+(t.padding??0)*2,t?.height??0),h=-l/2,f=-u/2,{cssStyles:d}=t,p=Kt.svg(i),m=Jt(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");let g=[{x:h,y:f},{x:h,y:f+u},{x:h+l,y:f+u},{x:h+l,y:f-u/2}],y=He(g),v=p.path(y,m),x=i.insert(()=>v,":first-child");return x.attr("class","basic label-container"),d&&t.look!=="handDrawn"&&x.selectChildren("path").attr("style",d),n&&t.look!=="handDrawn"&&x.selectChildren("path").attr("style",n),x.attr("transform",`translate(0, ${u/4})`),s.attr("transform",`translate(${-l/2+(t.padding??0)-(a.x-(a.left??0))}, ${-u/4+(t.padding??0)-(a.y-(a.top??0))})`),Qt(t,x),t.intersect=function(b){return qt.polygon(t,g,b)},i},"slopedRect")});function wZ(e,t,r,n,i,a,s){let u=(e+r)/2,h=(t+n)/2,f=Math.atan2(n-t,r-e),d=(r-e)/2,p=(n-t)/2,m=d/i,g=p/a,y=Math.sqrt(m**2+g**2);if(y>1)throw new Error("The given radii are too small to create an arc between the points.");let v=Math.sqrt(1-y**2),x=u+v*a*Math.sin(f)*(s?-1:1),b=h-v*i*Math.cos(f)*(s?-1:1),w=Math.atan2((t-b)/a,(e-x)/i),T=Math.atan2((n-b)/a,(r-x)/i)-w;s&&T<0&&(T+=2*Math.PI),!s&&T>0&&(T-=2*Math.PI);let E=[];for(let _=0;_<20;_++){let A=_/19,L=w+A*T,M=x+i*Math.cos(L),N=b+a*Math.sin(L);E.push({x:M,y:N})}return E}var Bw,TZ=R(()=>{"use strict";Be();Je();Ze();Qe();o(wZ,"generateArcPoints");Bw=o(async(e,t)=>{let{labelStyles:r,nodeStyles:n}=te(t);t.labelStyle=r;let{shapeSvg:i,bbox:a}=await he(e,t,de(t)),s=a.width+t.padding+20,l=a.height+t.padding,u=l/2,h=u/(2.5+l/50),{cssStyles:f}=t,d=[{x:s/2,y:-l/2},{x:-s/2,y:-l/2},...wZ(-s/2,-l/2,-s/2,l/2,h,u,!1),{x:s/2,y:l/2},...wZ(s/2,l/2,s/2,-l/2,h,u,!0)],p=Kt.svg(i),m=Jt(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");let g=He(d),y=p.path(g,m),v=i.insert(()=>y,":first-child");return v.attr("class","basic label-container"),f&&t.look!=="handDrawn"&&v.selectAll("path").attr("style",f),n&&t.look!=="handDrawn"&&v.selectAll("path").attr("style",n),v.attr("transform",`translate(${h/2}, 0)`),Qt(t,v),t.intersect=function(x){return qt.polygon(t,d,x)},i},"bowTieRect")});var jv,kZ=R(()=>{"use strict";Be();Je();Ze();Qe();jv=o(async(e,t)=>{let{labelStyles:r,nodeStyles:n}=te(t);t.labelStyle=r;let{shapeSvg:i,bbox:a,label:s}=await he(e,t,de(t)),l=a.width+t.padding,u=a.height+t.padding,h=u*.2,f=-l/2,d=-u/2-h/2,{cssStyles:p}=t,m=Kt.svg(i),g=Jt(t,{});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");let y=[{x:f,y:d+h},{x:-f,y:d+h},{x:-f,y:-d},{x:f,y:-d},{x:f,y:d},{x:-f,y:d},{x:-f,y:d+h}],v=m.polygon(y.map(b=>[b.x,b.y]),g),x=i.insert(()=>v,":first-child");return x.attr("class","basic label-container"),p&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",p),n&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",n),s.attr("transform",`translate(${f+(t.padding??0)/2-(a.x-(a.left??0))}, ${d+h+(t.padding??0)/2-(a.y-(a.top??0))})`),Qt(t,x),t.intersect=function(b){return qt.rect(t,b)},i},"dividedRectangle")});function v9t(e){let t=Math.cos(Math.PI/4),r=Math.sin(Math.PI/4),n=e*2,i={x:n/2*t,y:n/2*r},a={x:-(n/2)*t,y:n/2*r},s={x:-(n/2)*t,y:-(n/2)*r},l={x:n/2*t,y:-(n/2)*r};return`M ${a.x},${a.y} L ${l.x},${l.y} + M ${i.x},${i.y} L ${s.x},${s.y}`}var Fw,EZ=R(()=>{"use strict";ce();Be();Ze();Qe();Je();o(v9t,"createLine");Fw=o((e,t)=>{let{labelStyles:r,nodeStyles:n}=te(t);t.labelStyle=r,t.label="";let i=e.insert("g").attr("class",de(t)).attr("id",t.domId??t.id),a=Math.max(30,t?.width??0),{cssStyles:s}=t,l=Kt.svg(i),u=Jt(t,{});t.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");let h=l.circle(0,0,a*2,u),f=v9t(a),d=l.path(f,u),p=i.insert(()=>h,":first-child");return p.insert(()=>d),s&&t.look!=="handDrawn"&&p.selectAll("path").attr("style",s),n&&t.look!=="handDrawn"&&p.selectAll("path").attr("style",n),Qt(t,p),t.intersect=function(m){return V.info("crossedCircle intersect",t,{radius:a,point:m}),qt.circle(t,a,m)},i},"crossedCircle")});var JL,CZ=R(()=>{"use strict";Be();Je();Ze();Qe();JL=o(async(e,t)=>{let{labelStyles:r,nodeStyles:n}=te(t);t.labelStyle=r;let{shapeSvg:i,bbox:a}=await he(e,t,de(t)),s=100,l=50,u=Math.max(a.width+(t.padding??0)*2,t?.width??0),h=Math.max(a.height+(t.padding??0)*2,t?.height??0),f=u/h,d=u,p=h;d>p*f?p=d/f:d=p*f,d=Math.max(d,s),p=Math.max(p,l);let m=Math.min(p*.2,p/4),g=p+m*2,{cssStyles:y}=t,v=Kt.svg(i),x=Jt(t,{});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");let b=[{x:-d/2,y:g/2},...Vo(-d/2,g/2,d/2,g/2,m,1),{x:d/2,y:-g/2},...Vo(d/2,-g/2,-d/2,-g/2,m,-1)],w=He(b),S=v.path(w,x),T=i.insert(()=>S,":first-child");return T.attr("class","basic label-container"),y&&t.look!=="handDrawn"&&T.selectAll("path").attr("style",y),n&&t.look!=="handDrawn"&&T.selectAll("path").attr("style",n),Qt(t,T),t.intersect=function(E){return qt.polygon(t,b,E)},i},"waveRectangle")});var x9t,b9t,w9t,zw,SZ=R(()=>{"use strict";Be();Ze();Qe();Je();x9t=o((e,t,r,n,i,a)=>`M${e},${t} + a${i},${a} 0,0,1 0,${-n} + l${r},0 + a${i},${a} 0,0,1 0,${n} + M${r},${-n} + a${i},${a} 0,0,0 0,${n} + l${-r},0`,"createCylinderPathD"),b9t=o((e,t,r,n,i,a)=>[`M${e},${t}`,`M${e+r},${t}`,`a${i},${a} 0,0,0 0,${-n}`,`l${-r},0`,`a${i},${a} 0,0,0 0,${n}`,`l${r},0`].join(" "),"createOuterCylinderPathD"),w9t=o((e,t,r,n,i,a)=>[`M${e+r/2},${-n/2}`,`a${i},${a} 0,0,0 0,${n}`].join(" "),"createInnerCylinderPathD"),zw=o(async(e,t)=>{let{labelStyles:r,nodeStyles:n}=te(t);t.labelStyle=r;let{shapeSvg:i,bbox:a,label:s,halfPadding:l}=await he(e,t,de(t)),u=t.look==="neo"?l*2:l,h=a.height+u,f=h/2,d=f/(2.5+h/50),p=a.width+d+u,{cssStyles:m}=t,g;if(t.look==="handDrawn"){let y=Kt.svg(i),v=b9t(0,0,p,h,d,f),x=w9t(0,0,p,h,d,f),b=y.path(v,Jt(t,{})),w=y.path(x,Jt(t,{fill:"none"}));g=i.insert(()=>w,":first-child"),g=i.insert(()=>b,":first-child"),g.attr("class","basic label-container"),m&&g.attr("style",m)}else{let y=x9t(0,0,p,h,d,f);g=i.insert("path",":first-child").attr("d",y).attr("class","basic label-container").attr("style",m).attr("style",n)}return g.attr("class","basic label-container"),m&&t.look!=="handDrawn"&&g.selectAll("path").attr("style",m),n&&t.look!=="handDrawn"&&g.selectAll("path").attr("style",n),g.attr("label-offset-x",d),g.attr("transform",`translate(${-p/2}, ${h/2} )`),s.attr("transform",`translate(${-(a.width/2)-d-(a.x-(a.left??0))}, ${-(a.height/2)-(a.y-(a.top??0))})`),Qt(t,g),t.intersect=function(y){let v=qt.rect(t,y),x=v.y-(t.y??0);if(f!=0&&(Math.abs(x)<(t.height??0)/2||Math.abs(x)==(t.height??0)/2&&Math.abs(v.x-(t.x??0))>(t.width??0)/2-d)){let b=d*d*(1-x*x/(f*f));b!=0&&(b=Math.sqrt(b)),b=d-b,y.x-(t.x??0)>0&&(b=-b),v.x+=b}return v},i},"tiltedCylinder")});var $w,AZ=R(()=>{"use strict";Be();Je();Ze();Qe();$w=o(async(e,t)=>{let{labelStyles:r,nodeStyles:n}=te(t);t.labelStyle=r;let{shapeSvg:i,bbox:a}=await he(e,t,de(t)),s=60,l=20,u=Math.max(s,a.width+(t.padding??0)*2,t?.width??0),h=Math.max(l,a.height+(t.padding??0)*2,t?.height??0),{cssStyles:f}=t,d=Kt.svg(i),p=Jt(t,{});t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");let m=[{x:-u/2*.8,y:-h/2},{x:u/2*.8,y:-h/2},{x:u/2,y:-h/2*.6},{x:u/2,y:h/2},{x:-u/2,y:h/2},{x:-u/2,y:-h/2*.6}],g=He(m),y=d.path(g,p),v=i.insert(()=>y,":first-child");return v.attr("class","basic label-container"),f&&t.look!=="handDrawn"&&v.selectChildren("path").attr("style",f),n&&t.look!=="handDrawn"&&v.selectChildren("path").attr("style",n),Qt(t,v),t.intersect=function(x){return qt.polygon(t,m,x)},i},"trapezoidalPentagon")});var Gw,_Z=R(()=>{"use strict";ce();Be();Je();Ze();Qe();Be();Gw=o(async(e,t)=>{let{labelStyles:r,nodeStyles:n}=te(t);t.labelStyle=r;let{shapeSvg:i,bbox:a,label:s}=await he(e,t,de(t)),l=a.width+(t.padding??0),u=l+a.height,h=l+a.height,f=[{x:0,y:-u},{x:h,y:-u},{x:h/2,y:0}],{cssStyles:d}=t,p=Kt.svg(i),m=Jt(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");let g=He(f),y=p.path(g,m),v=i.insert(()=>y,":first-child").attr("transform",`translate(${-u/2}, ${u/2})`);return d&&t.look!=="handDrawn"&&v.selectChildren("path").attr("style",d),n&&t.look!=="handDrawn"&&v.selectChildren("path").attr("style",n),t.width=l,t.height=u,Qt(t,v),s.attr("transform",`translate(${-a.width/2-(a.x-(a.left??0))}, ${-u/2+(t.padding??0)/2+(a.y-(a.top??0))})`),t.intersect=function(x){return V.info("Triangle intersect",t,f,x),qt.polygon(t,f,x)},i},"flippedTriangle")});var tD,LZ=R(()=>{"use strict";ce();Be();Je();Ze();Qe();tD=o(async(e,t)=>{let{labelStyles:r,nodeStyles:n}=te(t);t.label="",t.labelStyle=r;let{shapeSvg:i}=await he(e,t,de(t)),a=Math.max(30,t?.width??0),s=Math.max(30,t?.height??0),{cssStyles:l}=t,u=Kt.svg(i),h=Jt(t,{});t.look!=="handDrawn"&&(h.roughness=0,h.fillStyle="solid");let f=[{x:0,y:0},{x:a,y:0},{x:0,y:s},{x:a,y:s}],d=He(f),p=u.path(d,h),m=i.insert(()=>p,":first-child");return m.attr("class","basic label-container"),l&&t.look!=="handDrawn"&&m.selectChildren("path").attr("style",l),n&&t.look!=="handDrawn"&&m.selectChildren("path").attr("style",n),m.attr("transform",`translate(${-a/2}, ${-s/2})`),Qt(t,m),t.intersect=function(g){return V.info("Pill intersect",t,{points:f}),qt.polygon(t,f,g)},i},"hourglass")});var Kv,DZ=R(()=>{"use strict";Be();Ze();Qe();Je();Kv=o(async(e,t)=>{let{labelStyles:r,nodeStyles:n}=te(t);t.labelStyle=r;let{shapeSvg:i,bbox:a}=await he(e,t,de(t)),s=Math.max(a.width+(t.padding??0)*2,t?.width??0),l=Math.max(a.height+(t.padding??0)*2,t?.height??0),u=-s/2,h=-l/2,f=.2*l,d=.2*l,{cssStyles:p}=t,m=Kt.svg(i),g=Jt(t,{}),y=[{x:u-f/2,y:h},{x:u+s+f/2,y:h},{x:u+s+f/2,y:h+l},{x:u-f/2,y:h+l}],v=[{x:u+s-f/2,y:h+l},{x:u+s+f/2,y:h+l},{x:u+s+f/2,y:h+l-d}];t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");let x=He(y),b=m.path(x,g),w=He(v),S=m.path(w,{...g,fillStyle:"solid"}),T=i.insert(()=>S,":first-child");return T.insert(()=>b,":first-child"),T.attr("class","basic label-container"),p&&t.look!=="handDrawn"&&T.selectAll("path").attr("style",p),n&&t.look!=="handDrawn"&&T.selectAll("path").attr("style",n),Qt(t,T),t.intersect=function(E){return qt.polygon(t,y,E)},i},"taggedRect")});var Qv,RZ=R(()=>{"use strict";Be();Ze();Qe();Je();Qv=o(async(e,t)=>{let{labelStyles:r,nodeStyles:n}=te(t);t.labelStyle=r;let{shapeSvg:i,bbox:a,label:s}=await he(e,t,de(t)),l=Math.max(a.width+(t.padding??0)*2,t?.width??0),u=Math.max(a.height+(t.padding??0)*2,t?.height??0),h=5,f=-l/2,d=-u/2,{cssStyles:p}=t,m=Kt.svg(i),g=Jt(t,{}),y=[{x:f-h,y:d+h},{x:f-h,y:d+u+h},{x:f+l-h,y:d+u+h},{x:f+l-h,y:d+u},{x:f+l,y:d+u},{x:f+l,y:d+u-h},{x:f+l+h,y:d+u-h},{x:f+l+h,y:d-h},{x:f+h,y:d-h},{x:f+h,y:d},{x:f,y:d},{x:f,y:d+h}],v=[{x:f,y:d+h},{x:f+l-h,y:d+h},{x:f+l-h,y:d+u},{x:f+l,y:d+u},{x:f+l,y:d},{x:f,y:d}];t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");let x=He(y),b=m.path(x,g),w=He(v),S=m.path(w,{...g,fill:"none"}),T=i.insert(()=>S,":first-child");return T.insert(()=>b,":first-child"),T.attr("class","basic label-container"),p&&t.look!=="handDrawn"&&T.selectAll("path").attr("style",p),n&&t.look!=="handDrawn"&&T.selectAll("path").attr("style",n),s.attr("transform",`translate(${-(a.width/2)-h-(a.x-(a.left??0))}, ${-(a.height/2)+h-(a.y-(a.top??0))})`),Qt(t,T),t.intersect=function(E){return qt.polygon(t,y,E)},i},"multiRect")});var T9t,k9t,E9t,Vw,NZ=R(()=>{"use strict";Be();Je();Ze();Qe();T9t=o((e,t,r,n,i,a,s)=>[`M${e},${t+a}`,`a${i},${a} 0,0,0 ${r},0`,`a${i},${a} 0,0,0 ${-r},0`,`l0,${n}`,`a${i},${a} 0,0,0 ${r},0`,`l0,${-n}`,`M${e},${t+a+s}`,`a${i},${a} 0,0,0 ${r},0`].join(" "),"createCylinderPathD"),k9t=o((e,t,r,n,i,a,s)=>[`M${e},${t+a}`,`M${e+r},${t+a}`,`a${i},${a} 0,0,0 ${-r},0`,`l0,${n}`,`a${i},${a} 0,0,0 ${r},0`,`l0,${-n}`,`M${e},${t+a+s}`,`a${i},${a} 0,0,0 ${r},0`].join(" "),"createOuterCylinderPathD"),E9t=o((e,t,r,n,i,a)=>[`M${e-r/2},${-n/2}`,`a${i},${a} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD"),Vw=o(async(e,t)=>{let{labelStyles:r,nodeStyles:n}=te(t);t.labelStyle=r;let{shapeSvg:i,bbox:a,label:s}=await he(e,t,de(t)),l=Math.max(a.width+(t.padding??0),t.width??0),u=l/2,h=u/(2.5+l/50),f=Math.max(a.height+h+(t.padding??0),t.height??0),d=f*.1,p,{cssStyles:m}=t;if(t.look==="handDrawn"){let g=Kt.svg(i),y=k9t(0,0,l,f,u,h,d),v=E9t(0,h,l,f,u,h),x=Jt(t,{}),b=g.path(y,x),w=g.path(v,x);i.insert(()=>w,":first-child").attr("class","line"),p=i.insert(()=>b,":first-child"),p.attr("class","basic label-container"),m&&p.attr("style",m)}else{let g=T9t(0,0,l,f,u,h,d);p=i.insert("path",":first-child").attr("d",g).attr("class","basic label-container").attr("style",m).attr("style",n)}return p.attr("label-offset-y",h),p.attr("transform",`translate(${-l/2}, ${-(f/2+h)})`),Qt(t,p),s.attr("transform",`translate(${-(a.width/2)-(a.x-(a.left??0))}, ${-(a.height/2)+h-(a.y-(a.top??0))})`),t.intersect=function(g){let y=qt.rect(t,g),v=y.x-(t.x??0);if(u!=0&&(Math.abs(v)<(t.width??0)/2||Math.abs(v)==(t.width??0)/2&&Math.abs(y.y-(t.y??0))>(t.height??0)/2-h)){let x=h*h*(1-v*v/(u*u));x>0&&(x=Math.sqrt(x)),x=h-x,g.y-(t.y??0)>0&&(x=-x),y.y+=x}return y},i},"linedCylinder")});var eD,MZ=R(()=>{"use strict";Be();Je();Qe();Ze();eD=o(async(e,t)=>{let{labelStyles:r,nodeStyles:n}=te(t);t.labelStyle=r;let{shapeSvg:i,bbox:a,label:s}=await he(e,t,de(t)),l=Math.max(a.width+(t.padding??0)*2,t?.width??0),u=Math.max(a.height+(t.padding??0)*2,t?.height??0),h=u/8,f=u+h,{cssStyles:d}=t,m=70-l,g=m>0?m/2:0,y=Kt.svg(i),v=Jt(t,{});t.look!=="handDrawn"&&(v.roughness=0,v.fillStyle="solid");let x=[{x:-l/2-g,y:f/2},...Vo(-l/2-g,f/2,l/2+g,f/2,h,.8),{x:l/2+g,y:-f/2},{x:-l/2-g,y:-f/2}],b=He(x),w=y.path(b,v),S=i.insert(()=>w,":first-child");return S.attr("class","basic label-container"),d&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",d),n&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",n),S.attr("transform",`translate(0,${-h/2})`),s.attr("transform",`translate(${-l/2+(t.padding??0)-(a.x-(a.left??0))},${-u/2+(t.padding??0)-h-(a.y-(a.top??0))})`),Qt(t,S),t.intersect=function(T){return qt.polygon(t,x,T)},i},"waveEdgedRectangle")});var Uw,IZ=R(()=>{"use strict";ce();Be();Ze();Qe();Je();Be();Uw=o((e,t)=>{let{labelStyles:r,nodeStyles:n}=te(t);t.label="",t.labelStyle=r;let i=e.insert("g").attr("class",de(t)).attr("id",t.domId??t.id),{cssStyles:a}=t,s=Math.max(35,t?.width??0),l=Math.max(35,t?.height??0),u=7,h=[{x:s,y:0},{x:0,y:l+u/2},{x:s-2*u,y:l+u/2},{x:0,y:2*l},{x:s,y:l-u/2},{x:2*u,y:l-u/2}],f=Kt.svg(i),d=Jt(t,{});t.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");let p=He(h),m=f.path(p,d),g=i.insert(()=>m,":first-child");return a&&t.look!=="handDrawn"&&g.selectAll("path").attr("style",a),n&&t.look!=="handDrawn"&&g.selectAll("path").attr("style",n),g.attr("transform",`translate(-${s/2},${-l})`),Qt(t,g),t.intersect=function(y){return V.info("lightningBolt intersect",t,y),qt.polygon(t,h,y)},i},"lightningBolt")});var Hw,OZ=R(()=>{"use strict";Qe();ce();Je();Ze();Be();Hw=o((e,t,{config:{themeVariables:r}})=>{let{labelStyles:n,nodeStyles:i}=te(t);t.label="",t.labelStyle=n;let a=e.insert("g").attr("class",de(t)).attr("id",t.domId??t.id),s=7,{cssStyles:l}=t,u=Kt.svg(a),{nodeBorder:h}=r,f=Jt(t,{fillStyle:"solid"});t.look!=="handDrawn"&&(f.roughness=0);let d=u.circle(0,0,s*2,f),p=a.insert(()=>d,":first-child");return p.selectAll("path").attr("style",`fill: ${h} !important;`),l&&l.length>0&&t.look!=="handDrawn"&&p.selectAll("path").attr("style",l),i&&t.look!=="handDrawn"&&p.selectAll("path").attr("style",i),Qt(t,p),t.intersect=function(m){return V.info("filledCircle intersect",t,{radius:s,point:m}),qt.circle(t,s,m)},a},"filledCircle")});var Zv,PZ=R(()=>{"use strict";Be();Je();Qe();Ze();Zv=o(async(e,t)=>{let{labelStyles:r,nodeStyles:n}=te(t);t.labelStyle=r;let{shapeSvg:i,bbox:a,label:s}=await he(e,t,de(t)),l=Math.max(a.width+(t.padding??0)*2,t?.width??0),u=Math.max(a.height+(t.padding??0)*2,t?.height??0),h=u/4,f=u+h,d=-l/2,p=-f/2,m=5,{cssStyles:g}=t,y=Vo(d-m,p+f+m,d+l-m,p+f+m,h,.8),v=y?.[y.length-1],x=[{x:d-m,y:p+m},{x:d-m,y:p+f+m},...y,{x:d+l-m,y:v.y-m},{x:d+l,y:v.y-m},{x:d+l,y:v.y-2*m},{x:d+l+m,y:v.y-2*m},{x:d+l+m,y:p-m},{x:d+m,y:p-m},{x:d+m,y:p},{x:d,y:p},{x:d,y:p+m}],b=[{x:d,y:p+m},{x:d+l-m,y:p+m},{x:d+l-m,y:v.y-m},{x:d+l,y:v.y-m},{x:d+l,y:p},{x:d,y:p}],w=Kt.svg(i),S=Jt(t,{});t.look!=="handDrawn"&&(S.roughness=0,S.fillStyle="solid");let T=He(x),E=w.path(T,S),_=He(b),A=w.path(_,S),L=i.insert(()=>E,":first-child");return L.insert(()=>A),L.attr("class","basic label-container"),g&&t.look!=="handDrawn"&&L.selectAll("path").attr("style",g),n&&t.look!=="handDrawn"&&L.selectAll("path").attr("style",n),L.attr("transform",`translate(0,${-h/2})`),s.attr("transform",`translate(${-(a.width/2)-m-(a.x-(a.left??0))}, ${-(a.height/2)+m-h/2-(a.y-(a.top??0))})`),Qt(t,L),t.intersect=function(M){return qt.polygon(t,x,M)},i},"multiWaveEdgedRectangle")});var Ww,BZ=R(()=>{"use strict";Be();Ze();Qe();Je();Ww=o(async(e,t)=>{let{labelStyles:r,nodeStyles:n}=te(t);t.labelStyle=r;let{shapeSvg:i,bbox:a,label:s}=await he(e,t,de(t)),l=Math.max(a.width+(t.padding??0)*2,t?.width??0),u=Math.max(a.height+(t.padding??0)*2,t?.height??0),h=5,f=-l/2,d=-u/2,{cssStyles:p}=t,m=Kt.svg(i),g=Jt(t,{}),y=[{x:f-h,y:d-h},{x:f-h,y:d+u},{x:f+l,y:d+u},{x:f+l,y:d-h}],v=`M${f-h},${d-h} L${f+l},${d-h} L${f+l},${d+u} L${f-h},${d+u} L${f-h},${d-h} + M${f-h},${d} L${f+l},${d} + M${f},${d-h} L${f},${d+u}`;t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");let x=m.path(v,g),b=i.insert(()=>x,":first-child");return b.attr("transform",`translate(${h/2}, ${h/2})`),b.attr("class","basic label-container"),p&&t.look!=="handDrawn"&&b.selectAll("path").attr("style",p),n&&t.look!=="handDrawn"&&b.selectAll("path").attr("style",n),s.attr("transform",`translate(${-(a.width/2)+h/2-(a.x-(a.left??0))}, ${-(a.height/2)+h/2-(a.y-(a.top??0))})`),Qt(t,b),t.intersect=function(w){return qt.polygon(t,y,w)},i},"windowPane")});var rD,FZ=R(()=>{"use strict";Be();Je();Qe();Ze();rD=o(async(e,t)=>{let{labelStyles:r,nodeStyles:n}=te(t);t.labelStyle=r;let{shapeSvg:i,bbox:a,label:s}=await he(e,t,de(t)),l=Math.max(a.width+(t.padding??0)*2,t?.width??0),u=Math.max(a.height+(t.padding??0)*2,t?.height??0),h=u/4,f=u+h,{cssStyles:d}=t,p=Kt.svg(i),m=Jt(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");let g=[{x:-l/2-l/2*.1,y:-f/2},{x:-l/2-l/2*.1,y:f/2},...Vo(-l/2-l/2*.1,f/2,l/2+l/2*.1,f/2,h,.8),{x:l/2+l/2*.1,y:-f/2},{x:-l/2-l/2*.1,y:-f/2},{x:-l/2,y:-f/2},{x:-l/2,y:f/2*1.1},{x:-l/2,y:-f/2}],y=p.polygon(g.map(x=>[x.x,x.y]),m),v=i.insert(()=>y,":first-child");return v.attr("class","basic label-container"),d&&t.look!=="handDrawn"&&v.selectAll("path").attr("style",d),n&&t.look!=="handDrawn"&&v.selectAll("path").attr("style",n),v.attr("transform",`translate(0,${-h/2})`),s.attr("transform",`translate(${-l/2+(t.padding??0)+l/2*.1/2-(a.x-(a.left??0))},${-u/2+(t.padding??0)-h/2-(a.y-(a.top??0))})`),Qt(t,v),t.intersect=function(x){return qt.polygon(t,g,x)},i},"linedWaveEdgedRect")});var nD,zZ=R(()=>{"use strict";Be();Je();Qe();Ze();nD=o(async(e,t)=>{let{labelStyles:r,nodeStyles:n}=te(t);t.labelStyle=r;let{shapeSvg:i,bbox:a,label:s}=await he(e,t,de(t)),l=Math.max(a.width+(t.padding??0)*2,t?.width??0),u=Math.max(a.height+(t.padding??0)*2,t?.height??0),h=u/4,f=.2*l,d=.2*u,p=u+h,{cssStyles:m}=t,g=Kt.svg(i),y=Jt(t,{});t.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");let v=[{x:-l/2-l/2*.1,y:p/2},...Vo(-l/2-l/2*.1,p/2,l/2+l/2*.1,p/2,h,.8),{x:l/2+l/2*.1,y:-p/2},{x:-l/2-l/2*.1,y:-p/2}],x=-l/2+l/2*.1,b=-p/2-d*.4,w=[{x:x+l-f,y:(b+u)*1.4},{x:x+l,y:b+u-d},{x:x+l,y:(b+u)*.9},...Vo(x+l,(b+u)*1.3,x+l-f,(b+u)*1.5,-u*.03,.5)],S=He(v),T=g.path(S,y),E=He(w),_=g.path(E,{...y,fillStyle:"solid"}),A=i.insert(()=>_,":first-child");return A.insert(()=>T,":first-child"),A.attr("class","basic label-container"),m&&t.look!=="handDrawn"&&A.selectAll("path").attr("style",m),n&&t.look!=="handDrawn"&&A.selectAll("path").attr("style",n),A.attr("transform",`translate(0,${-h/2})`),s.attr("transform",`translate(${-l/2+(t.padding??0)-(a.x-(a.left??0))},${-u/2+(t.padding??0)-h/2-(a.y-(a.top??0))})`),Qt(t,A),t.intersect=function(L){return qt.polygon(t,v,L)},i},"taggedWaveEdgedRectangle")});function qh(e,t,r,n=100,i=0,a=180){let s=[],l=i*Math.PI/180,f=(a*Math.PI/180-l)/(n-1);for(let d=0;d{"use strict";Be();Je();Ze();Qe();o(qh,"generateCirclePoints");Yw=o(async(e,t)=>{let{labelStyles:r,nodeStyles:n}=te(t);t.labelStyle=r;let{shapeSvg:i,bbox:a,label:s}=await he(e,t,de(t)),l=a.width+(t.padding??0),u=a.height+(t.padding??0),h=Math.max(5,u*.1),{cssStyles:f}=t,d=[...qh(l/2,-u/2,h,30,-90,0),{x:-l/2-h,y:h},...qh(l/2+h*2,-h,h,20,-180,-270),...qh(l/2+h*2,h,h,20,-90,-180),{x:-l/2-h,y:-u/2},...qh(l/2,u/2,h,20,0,90)],p=[{x:l/2,y:-u/2-h},{x:-l/2,y:-u/2-h},...qh(l/2,-u/2,h,20,-90,0),{x:-l/2-h,y:-h},...qh(l/2+l*.1,-h,h,20,-180,-270),...qh(l/2+l*.1,h,h,20,-90,-180),{x:-l/2-h,y:u/2},...qh(l/2,u/2,h,20,0,90),{x:-l/2,y:u/2+h},{x:l/2,y:u/2+h}],m=Kt.svg(i),g=Jt(t,{fill:"none"});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");let v=He(d).replace("Z",""),x=m.path(v,g),b=He(p),w=m.path(b,{...g}),S=i.insert("g",":first-child");return S.insert(()=>w,":first-child").attr("stroke-opacity",0),S.insert(()=>x,":first-child"),S.attr("class","text"),f&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",f),n&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",n),S.attr("transform",`translate(${h}, 0)`),s.attr("transform",`translate(${-l/2+h-(a.x-(a.left??0))},${-u/2+(t.padding??0)/2-(a.y-(a.top??0))})`),Qt(t,S),t.intersect=function(T){return qt.polygon(t,p,T)},i},"curlyBraceLeft")});function Xh(e,t,r,n=100,i=0,a=180){let s=[],l=i*Math.PI/180,f=(a*Math.PI/180-l)/(n-1);for(let d=0;d{"use strict";Be();Je();Ze();Qe();o(Xh,"generateCirclePoints");GZ=o(async(e,t)=>{let{labelStyles:r,nodeStyles:n}=te(t);t.labelStyle=r;let{shapeSvg:i,bbox:a,label:s}=await he(e,t,de(t)),l=a.width+(t.padding??0),u=a.height+(t.padding??0),h=Math.max(5,u*.1),{cssStyles:f}=t,d=[...Xh(l/2,-u/2,h,20,-90,0),{x:l/2+h,y:-h},...Xh(l/2+h*2,-h,h,20,-180,-270),...Xh(l/2+h*2,h,h,20,-90,-180),{x:l/2+h,y:u/2},...Xh(l/2,u/2,h,20,0,90)],p=[{x:-l/2,y:-u/2-h},{x:l/2,y:-u/2-h},...Xh(l/2,-u/2,h,20,-90,0),{x:l/2+h,y:-h},...Xh(l/2+h*2,-h,h,20,-180,-270),...Xh(l/2+h*2,h,h,20,-90,-180),{x:l/2+h,y:u/2},...Xh(l/2,u/2,h,20,0,90),{x:l/2,y:u/2+h},{x:-l/2,y:u/2+h}],m=Kt.svg(i),g=Jt(t,{fill:"none"});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");let v=He(d).replace("Z",""),x=m.path(v,g),b=He(p),w=m.path(b,{...g}),S=i.insert("g",":first-child");return S.insert(()=>w,":first-child").attr("stroke-opacity",0),S.insert(()=>x,":first-child"),S.attr("class","text"),f&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",f),n&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",n),S.attr("transform",`translate(${-h}, 0)`),s.attr("transform",`translate(${-l/2+(t.padding??0)/2-(a.x-(a.left??0))},${-u/2+(t.padding??0)/2-(a.y-(a.top??0))})`),Qt(t,S),t.intersect=function(T){return qt.polygon(t,p,T)},i},"curlyBraceRight")});function Fa(e,t,r,n=100,i=0,a=180){let s=[],l=i*Math.PI/180,f=(a*Math.PI/180-l)/(n-1);for(let d=0;d{"use strict";Be();Je();Ze();Qe();o(Fa,"generateCirclePoints");UZ=o(async(e,t)=>{let{labelStyles:r,nodeStyles:n}=te(t);t.labelStyle=r;let{shapeSvg:i,bbox:a,label:s}=await he(e,t,de(t)),l=a.width+(t.padding??0),u=a.height+(t.padding??0),h=Math.max(5,u*.1),{cssStyles:f}=t,d=[...Fa(l/2,-u/2,h,30,-90,0),{x:-l/2-h,y:h},...Fa(l/2+h*2,-h,h,20,-180,-270),...Fa(l/2+h*2,h,h,20,-90,-180),{x:-l/2-h,y:-u/2},...Fa(l/2,u/2,h,20,0,90)],p=[...Fa(-l/2+h+h/2,-u/2,h,20,-90,-180),{x:l/2-h/2,y:h},...Fa(-l/2-h/2,-h,h,20,0,90),...Fa(-l/2-h/2,h,h,20,-90,0),{x:l/2-h/2,y:-h},...Fa(-l/2+h+h/2,u/2,h,30,-180,-270)],m=[{x:l/2,y:-u/2-h},{x:-l/2,y:-u/2-h},...Fa(l/2,-u/2,h,20,-90,0),{x:-l/2-h,y:-h},...Fa(l/2+h*2,-h,h,20,-180,-270),...Fa(l/2+h*2,h,h,20,-90,-180),{x:-l/2-h,y:u/2},...Fa(l/2,u/2,h,20,0,90),{x:-l/2,y:u/2+h},{x:l/2-h-h/2,y:u/2+h},...Fa(-l/2+h+h/2,-u/2,h,20,-90,-180),{x:l/2-h/2,y:h},...Fa(-l/2-h/2,-h,h,20,0,90),...Fa(-l/2-h/2,h,h,20,-90,0),{x:l/2-h/2,y:-h},...Fa(-l/2+h+h/2,u/2,h,30,-180,-270)],g=Kt.svg(i),y=Jt(t,{fill:"none"});t.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");let x=He(d).replace("Z",""),b=g.path(x,y),S=He(p).replace("Z",""),T=g.path(S,y),E=He(m),_=g.path(E,{...y}),A=i.insert("g",":first-child");return A.insert(()=>_,":first-child").attr("stroke-opacity",0),A.insert(()=>b,":first-child"),A.insert(()=>T,":first-child"),A.attr("class","text"),f&&t.look!=="handDrawn"&&A.selectAll("path").attr("style",f),n&&t.look!=="handDrawn"&&A.selectAll("path").attr("style",n),A.attr("transform",`translate(${h-h/4}, 0)`),s.attr("transform",`translate(${-l/2+(t.padding??0)/2-(a.x-(a.left??0))},${-u/2+(t.padding??0)/2-(a.y-(a.top??0))})`),Qt(t,A),t.intersect=function(L){return qt.polygon(t,m,L)},i},"curlyBraces")});var WZ,YZ=R(()=>{"use strict";Qe();ce();iu();Je();Ze();Be();WZ=o(async(e,t,{config:{themeVariables:r,flowchart:n}})=>{let{labelStyles:i}=te(t);t.labelStyle=i;let a=t.assetHeight??48,s=t.assetWidth??48,l=Math.max(a,s),u=n?.wrappingWidth;t.width=Math.max(l,u??0);let{shapeSvg:h,bbox:f,halfPadding:d,label:p}=await he(e,t,"icon-shape default"),m=t.pos==="t",g=l+d*2,y=l+d*2,{nodeBorder:v,mainBkg:x}=r,{stylesMap:b}=Cc(t),w=-y/2,S=-g/2,T=t.label?8:0,E=Kt.svg(h),_=Jt(t,{stroke:b.get("fill")||x});t.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");let A=E.rectangle(w,S,y,g,_),L=Math.max(y,f.width),M=g+f.height+T,N=E.rectangle(-L/2,-M/2,L,M,{..._,fill:"transparent",stroke:"none"}),k=h.insert(()=>A,":first-child"),I=h.insert(()=>N);if(t.icon){let C=h.append("g");C.html(`${await Ao(t.icon,{height:l,width:l,fallbackPrefix:""})}`);let O=C.node().getBBox(),D=O.width,P=O.height,F=O.x,B=O.y;C.attr("transform",`translate(${-D/2-F},${m?f.height/2+T/2-P/2-B:-f.height/2-T/2-P/2-B})`),C.selectAll("path").attr("fill",b.get("stroke")??v)}return p.attr("transform",`translate(${-f.width/2-(f.x-(f.left??0))},${m?-M/2:M/2-f.height})`),k.attr("transform",`translate(0,${m?f.height/2+T/2:-f.height/2-T/2})`),Qt(t,I),t.intersect=function(C){if(V.info("iconSquare intersect",t,C),!t.label)return qt.rect(t,C);let O=t.x??0,D=t.y??0,P=t.height??0,F=[];return m?F=[{x:O-f.width/2,y:D-P/2},{x:O+f.width/2,y:D-P/2},{x:O+f.width/2,y:D-P/2+f.height+T},{x:O+y/2,y:D-P/2+f.height+T},{x:O+y/2,y:D+P/2},{x:O-y/2,y:D+P/2},{x:O-y/2,y:D-P/2+f.height+T},{x:O-f.width/2,y:D-P/2+f.height+T}]:F=[{x:O-y/2,y:D-P/2},{x:O+y/2,y:D-P/2},{x:O+y/2,y:D-P/2+g},{x:O+f.width/2,y:D-P/2+g},{x:O+f.width/2/2,y:D+P/2},{x:O-f.width/2,y:D+P/2},{x:O-f.width/2,y:D-P/2+g},{x:O-y/2,y:D-P/2+g}],qt.polygon(t,F,C)},h},"iconSquare")});var qZ,XZ=R(()=>{"use strict";Qe();ce();iu();Je();Ze();Be();qZ=o(async(e,t,{config:{themeVariables:r,flowchart:n}})=>{let{labelStyles:i}=te(t);t.labelStyle=i;let a=t.assetHeight??48,s=t.assetWidth??48,l=Math.max(a,s),u=n?.wrappingWidth;t.width=Math.max(l,u??0);let{shapeSvg:h,bbox:f,label:d}=await he(e,t,"icon-shape default"),p=20,m=t.label?8:0,g=t.pos==="t",{nodeBorder:y,mainBkg:v}=r,{stylesMap:x}=Cc(t),b=Kt.svg(h),w=Jt(t,{stroke:x.get("fill")||v});t.look!=="handDrawn"&&(w.roughness=0,w.fillStyle="solid");let S=h.append("g");t.icon&&S.html(`${await Ao(t.icon,{height:l,width:l,fallbackPrefix:""})}`);let T=S.node().getBBox(),E=T.width,_=T.height,A=T.x,L=T.y,M=Math.max(E,_)*Math.SQRT2+p*2,N=b.circle(0,0,M,w),k=Math.max(M,f.width),I=M+f.height+m,C=b.rectangle(-k/2,-I/2,k,I,{...w,fill:"transparent",stroke:"none"}),O=h.insert(()=>N,":first-child"),D=h.insert(()=>C);return S.attr("transform",`translate(${-E/2-A},${g?f.height/2+m/2-_/2-L:-f.height/2-m/2-_/2-L})`),S.selectAll("path").attr("fill",x.get("stroke")||y),d.attr("transform",`translate(${-f.width/2-(f.x-(f.left??0))},${g?-I/2:I/2-f.height})`),O.attr("transform",`translate(0,${g?f.height/2+m/2:-f.height/2-m/2})`),Qt(t,D),t.intersect=function(P){return V.info("iconSquare intersect",t,P),qt.rect(t,P)},h},"iconCircle")});var jZ,KZ=R(()=>{"use strict";Qe();ce();iu();Je();Ze();Be();jZ=o(async(e,t,{config:{themeVariables:r,flowchart:n}})=>{let{labelStyles:i}=te(t);t.labelStyle=i;let a=t.assetHeight??48,s=t.assetWidth??48,l=Math.max(a,s),u=n?.wrappingWidth;t.width=Math.max(l,u??0);let{shapeSvg:h,bbox:f,label:d}=await he(e,t,"icon-shape default"),p=t.pos==="t",m=l,g=l,{nodeBorder:y}=r,{stylesMap:v}=Cc(t),x=-g/2,b=-m/2,w=t.label?8:0,S=Kt.svg(h),T=Jt(t,{stroke:"none",fill:"none"});t.look!=="handDrawn"&&(T.roughness=0,T.fillStyle="solid");let E=S.rectangle(x,b,g,m,T),_=Math.max(g,f.width),A=m+f.height+w,L=S.rectangle(-_/2,-A/2,_,A,{...T,fill:"transparent",stroke:"none"}),M=h.insert(()=>E,":first-child"),N=h.insert(()=>L);if(t.icon){let k=h.append("g");k.html(`${await Ao(t.icon,{height:l,width:l,fallbackPrefix:""})}`);let I=k.node().getBBox(),C=I.width,O=I.height,D=I.x,P=I.y;k.attr("transform",`translate(${-C/2-D},${p?f.height/2+w/2-O/2-P:-f.height/2-w/2-O/2-P})`),k.selectAll("path").attr("fill",v.get("stroke")||y)}return d.attr("transform",`translate(${-f.width/2-(f.x-(f.left??0))},${p?-A/2:A/2-f.height})`),M.attr("transform",`translate(0,${p?f.height/2+w/2:-f.height/2-w/2})`),Qt(t,N),t.intersect=function(k){if(V.info("iconSquare intersect",t,k),!t.label)return qt.rect(t,k);let I=t.x??0,C=t.y??0,O=t.height??0,D=[];return p?D=[{x:I-f.width/2,y:C-O/2},{x:I+f.width/2,y:C-O/2},{x:I+f.width/2,y:C-O/2+f.height+w},{x:I+g/2,y:C-O/2+f.height+w},{x:I+g/2,y:C+O/2},{x:I-g/2,y:C+O/2},{x:I-g/2,y:C-O/2+f.height+w},{x:I-f.width/2,y:C-O/2+f.height+w}]:D=[{x:I-g/2,y:C-O/2},{x:I+g/2,y:C-O/2},{x:I+g/2,y:C-O/2+m},{x:I+f.width/2,y:C-O/2+m},{x:I+f.width/2/2,y:C+O/2},{x:I-f.width/2,y:C+O/2},{x:I-f.width/2,y:C-O/2+m},{x:I-g/2,y:C-O/2+m}],qt.polygon(t,D,k)},h},"icon")});var QZ,ZZ=R(()=>{"use strict";Qe();ce();Je();Ze();Be();QZ=o(async(e,t,{config:{flowchart:r}})=>{let n=new Image;n.src=t?.img??"",await n.decode();let i=Number(n.naturalWidth.toString().replace("px","")),a=Number(n.naturalHeight.toString().replace("px",""));t.imageAspectRatio=i/a;let{labelStyles:s}=te(t);t.labelStyle=s;let l=r?.wrappingWidth;t.defaultWidth=r?.wrappingWidth;let u=Math.max(t.label?l??0:0,t?.assetWidth??i),h=t.constraint==="on"&&t?.assetHeight?t.assetHeight*t.imageAspectRatio:u,f=t.constraint==="on"?h/t.imageAspectRatio:t?.assetHeight??a;t.width=Math.max(h,l??0);let{shapeSvg:d,bbox:p,label:m}=await he(e,t,"image-shape default"),g=t.pos==="t",y=-h/2,v=-f/2,x=t.label?8:0,b=Kt.svg(d),w=Jt(t,{});t.look!=="handDrawn"&&(w.roughness=0,w.fillStyle="solid");let S=b.rectangle(y,v,h,f,w),T=Math.max(h,p.width),E=f+p.height+x,_=b.rectangle(-T/2,-E/2,T,E,{...w,fill:"none",stroke:"none"}),A=d.insert(()=>S,":first-child"),L=d.insert(()=>_);if(t.img){let M=d.append("image");M.attr("href",t.img),M.attr("width",h),M.attr("height",f),M.attr("preserveAspectRatio","none"),M.attr("transform",`translate(${-h/2},${g?E/2-f:-E/2})`)}return m.attr("transform",`translate(${-p.width/2-(p.x-(p.left??0))},${g?-f/2-p.height/2-x/2:f/2-p.height/2+x/2})`),A.attr("transform",`translate(0,${g?p.height/2+x/2:-p.height/2-x/2})`),Qt(t,L),t.intersect=function(M){if(V.info("iconSquare intersect",t,M),!t.label)return qt.rect(t,M);let N=t.x??0,k=t.y??0,I=t.height??0,C=[];return g?C=[{x:N-p.width/2,y:k-I/2},{x:N+p.width/2,y:k-I/2},{x:N+p.width/2,y:k-I/2+p.height+x},{x:N+h/2,y:k-I/2+p.height+x},{x:N+h/2,y:k+I/2},{x:N-h/2,y:k+I/2},{x:N-h/2,y:k-I/2+p.height+x},{x:N-p.width/2,y:k-I/2+p.height+x}]:C=[{x:N-h/2,y:k-I/2},{x:N+h/2,y:k-I/2},{x:N+h/2,y:k-I/2+f},{x:N+p.width/2,y:k-I/2+f},{x:N+p.width/2/2,y:k+I/2},{x:N-p.width/2,y:k+I/2},{x:N-p.width/2,y:k-I/2+f},{x:N-h/2,y:k-I/2+f}],qt.polygon(t,C,M)},d},"imageSquare")});var JZ,tJ=R(()=>{"use strict";Qe();ce();iu();Je();Ze();Am();Be();JZ=o(async(e,t,{config:{themeVariables:r,flowchart:n}})=>{let{labelStyles:i}=te(t);t.labelStyle=i;let a=t.assetHeight??48,s=t.assetWidth??48,l=Math.max(a,s),u=n?.wrappingWidth;t.width=Math.max(l,u??0);let{shapeSvg:h,bbox:f,halfPadding:d,label:p}=await he(e,t,"icon-shape default"),m=t.pos==="t",g=l+d*2,y=l+d*2,{nodeBorder:v,mainBkg:x}=r,{stylesMap:b}=Cc(t),w=-y/2,S=-g/2,T=t.label?8:0,E=Kt.svg(h),_=Jt(t,{stroke:b.get("fill")||x});t.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");let A=E.path(Ml(w,S,y,g,5),_),L=Math.max(y,f.width),M=g+f.height+T,N=E.rectangle(-L/2,-M/2,L,M,{..._,fill:"transparent",stroke:"none"}),k=h.insert(()=>A,":first-child"),I=h.insert(()=>N);if(t.icon){let C=h.append("g");C.html(`${await Ao(t.icon,{height:l,width:l,fallbackPrefix:""})}`);let O=C.node().getBBox(),D=O.width,P=O.height,F=O.x,B=O.y;C.attr("transform",`translate(${-D/2-F},${m?f.height/2+T/2-P/2-B:-f.height/2-T/2-P/2-B})`),C.selectAll("path").attr("fill",b.get("stroke")??v)}return p.attr("transform",`translate(${-f.width/2-(f.x-(f.left??0))},${m?-M/2:M/2-f.height})`),k.attr("transform",`translate(0,${m?f.height/2+T/2:-f.height/2-T/2})`),Qt(t,I),t.intersect=function(C){if(V.info("iconSquare intersect",t,C),!t.label)return qt.rect(t,C);let O=t.x??0,D=t.y??0,P=t.height??0,F=[];return m?F=[{x:O-f.width/2,y:D-P/2},{x:O+f.width/2,y:D-P/2},{x:O+f.width/2,y:D-P/2+f.height+T},{x:O+y/2,y:D-P/2+f.height+T},{x:O+y/2,y:D+P/2},{x:O-y/2,y:D+P/2},{x:O-y/2,y:D-P/2+f.height+T},{x:O-f.width/2,y:D-P/2+f.height+T}]:F=[{x:O-y/2,y:D-P/2},{x:O+y/2,y:D-P/2},{x:O+y/2,y:D-P/2+g},{x:O+f.width/2,y:D-P/2+g},{x:O+f.width/2/2,y:D+P/2},{x:O-f.width/2,y:D+P/2},{x:O-f.width/2,y:D-P/2+g},{x:O-y/2,y:D-P/2+g}],qt.polygon(t,F,C)},h},"iconRounded")});var iD,Nm,qw,eJ,rJ,aD,sD=R(()=>{"use strict";ce();zQ();$Q();GQ();VQ();UQ();HQ();YQ();XQ();jQ();QQ();ZQ();JQ();tZ();eZ();rZ();nZ();iZ();sZ();oZ();lZ();uZ();hZ();fZ();dZ();pZ();gZ();yZ();vZ();xZ();bZ();TZ();kZ();EZ();CZ();SZ();AZ();_Z();LZ();DZ();RZ();NZ();MZ();IZ();OZ();PZ();BZ();FZ();zZ();$Z();VZ();HZ();YZ();XZ();KZ();ZZ();tJ();iD={state:FQ,stateStart:Vv,stateEnd:Uv,forkJoin:Lw,choice:WQ,note:qQ,rectWithTitle:KQ,roundedRect:_w,squareRect:_m,rectangle:_m,rect:_m,process:_m,proc:_m,rounded:_w,event:_w,stadium:Dw,pill:Dw,terminal:Dw,subroutine:Lm,"framed-rectangle":Lm,"fr-rect":Lm,subprocess:Lm,subproc:Lm,cylinder:Hv,db:Hv,cyl:Hv,database:Hv,question:Wv,diam:Wv,diamond:Wv,decision:Wv,hexagon:Nw,hex:Nw,prepare:Nw,lean_right:Yv,"lean-r":Yv,"lean-right":Yv,"in-out":Yv,lean_left:qv,"lean-l":qv,"lean-left":qv,"out-in":qv,trapezoid:Xv,"trap-b":Xv,"trapezoid-bottom":Xv,priority:Xv,inv_trapezoid:Rm,"inv-trapezoid":Rm,"trapezoid-top":Rm,"trap-t":Rm,manual:Rm,doublecircle:Rw,"dbl-circ":Rw,"double-circle":Rw,circle:KL,circ:KL,rect_left_inv_arrow:QL,odd:QL,card:Mw,"notched-rectangle":Mw,"notch-rect":Mw,"lined-rectangle":Dm,"lin-rect":Dm,"lin-proc":Dm,"lined-process":Dm,"shaded-process":Dm,"small-circle":Vv,"sm-circ":Vv,start:Vv,stop:Uv,"framed-circle":Uv,"fr-circ":Uv,join:Lw,fork:Lw,comment:Yw,"brace-l":Yw,bolt:Uw,"com-link":Uw,"lightning-bolt":Uw,doc:eD,document:eD,delay:ZL,"half-rounded-rectangle":ZL,"horizontal-cylinder":zw,"h-cyl":zw,das:zw,"lined-cylinder":Vw,"lin-cyl":Vw,disk:Vw,"curved-trapezoid":Ow,"curv-trap":Ow,display:Ow,"divided-rectangle":jv,"div-rect":jv,"div-proc":jv,"divided-process":jv,triangle:Iw,tri:Iw,extract:Iw,"window-pane":Ww,"win-pane":Ww,"internal-storage":Ww,"f-circ":Hw,junction:Hw,"filled-circle":Hw,"lin-doc":rD,"lined-document":rD,"notched-pentagon":$w,"notch-pent":$w,"loop-limit":$w,"flipped-triangle":Gw,"flip-tri":Gw,"manual-file":Gw,"sloped-rectangle":Pw,"sl-rect":Pw,"manual-input":Pw,docs:Zv,documents:Zv,"st-doc":Zv,"stacked-document":Zv,processes:Qv,procs:Qv,"stacked-rectangle":Qv,"st-rect":Qv,flag:JL,"paper-tape":JL,"bow-tie-rectangle":Bw,"bow-rect":Bw,"stored-data":Bw,"crossed-circle":Fw,"cross-circ":Fw,summary:Fw,"tag-doc":nD,"tagged-document":nD,"tag-rect":Kv,"tagged-rectangle":Kv,"tag-proc":Kv,"tagged-process":Kv,hourglass:tD,collate:tD,text:aZ,anchor:cZ,brace:Yw,labelRect:mZ,"brace-r":GZ,braces:UZ,iconSquare:WZ,iconCircle:qZ,icon:jZ,iconRounded:JZ,imageSquare:QZ},Nm=new Map,qw=o(async(e,t,r)=>{let n,i;if(t.shape==="rect"&&(t.rx&&t.ry?t.shape="roundedRect":t.shape="squareRect"),!iD[t.shape])throw new Error(`No such shape: ${t.shape}. Please check your syntax.`);if(t.link){let a;r.config.securityLevel==="sandbox"?a="_top":t.linkTarget&&(a=t.linkTarget||"_blank"),n=e.insert("svg:a").attr("xlink:href",t.link).attr("target",a),i=await iD[t.shape](n,t,r)}else i=await iD[t.shape](e,t,r),n=i;return t.tooltip&&i.attr("title",t.tooltip),Nm.set(t.id,n),t.haveCallback&&Nm.get(t.id).attr("class",Nm.get(t.id).attr("class")+" clickable"),n},"insertNode"),eJ=o((e,t)=>{Nm.set(t.id,e)},"setNodeElem"),rJ=o(()=>{Nm.clear()},"clear"),aD=o(e=>{let t=Nm.get(e.id);V.trace("Transforming node",e.diff,e,"translate("+(e.x-e.width/2-5)+", "+e.width/2+")");let r=8,n=e.diff||0;return e.clusterNode?t.attr("transform","translate("+(e.x+n-e.width/2)+", "+(e.y-e.height/2-r)+")"):t.attr("transform","translate("+e.x+", "+e.y+")"),n},"positionNode")});var nJ,iJ=R(()=>{"use strict";js();hr();ce();WL();qL();XL();sD();Be();_r();nJ={common:Yt,getConfig:Nr,insertCluster:gw,insertEdge:Ew,insertEdgeLabel:Tw,insertMarkers:Cw,insertNode:qw,interpolateToCurve:mm,labelHelper:he,log:V,positionEdgeLabel:kw}});function S9t(e){return typeof e=="symbol"||ti(e)&&ga(e)==C9t}var C9t,oo,Fd=R(()=>{"use strict";Au();Po();C9t="[object Symbol]";o(S9t,"isSymbol");oo=S9t});function A9t(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r{"use strict";o(A9t,"arrayMap");Ns=A9t});function oJ(e){if(typeof e=="string")return e;if(Le(e))return Ns(e,oJ)+"";if(oo(e))return sJ?sJ.call(e):"";var t=e+"";return t=="0"&&1/e==-_9t?"-0":t}var _9t,aJ,sJ,lJ,cJ=R(()=>{"use strict";kd();zd();Hn();Fd();_9t=1/0,aJ=ra?ra.prototype:void 0,sJ=aJ?aJ.toString:void 0;o(oJ,"baseToString");lJ=oJ});function D9t(e){for(var t=e.length;t--&&L9t.test(e.charAt(t)););return t}var L9t,uJ,hJ=R(()=>{"use strict";L9t=/\s/;o(D9t,"trimmedEndIndex");uJ=D9t});function N9t(e){return e&&e.slice(0,uJ(e)+1).replace(R9t,"")}var R9t,fJ,dJ=R(()=>{"use strict";hJ();R9t=/^\s+/;o(N9t,"baseTrim");fJ=N9t});function B9t(e){if(typeof e=="number")return e;if(oo(e))return pJ;if(xn(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=xn(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=fJ(e);var r=I9t.test(e);return r||O9t.test(e)?P9t(e.slice(2),r?2:8):M9t.test(e)?pJ:+e}var pJ,M9t,I9t,O9t,P9t,mJ,gJ=R(()=>{"use strict";dJ();eo();Fd();pJ=NaN,M9t=/^[-+]0x[0-9a-f]+$/i,I9t=/^0b[01]+$/i,O9t=/^0o[0-7]+$/i,P9t=parseInt;o(B9t,"toNumber");mJ=B9t});function z9t(e){if(!e)return e===0?e:0;if(e=mJ(e),e===yJ||e===-yJ){var t=e<0?-1:1;return t*F9t}return e===e?e:0}var yJ,F9t,Mm,oD=R(()=>{"use strict";gJ();yJ=1/0,F9t=17976931348623157e292;o(z9t,"toFinite");Mm=z9t});function $9t(e){var t=Mm(e),r=t%1;return t===t?r?t-r:t:0}var Sc,Im=R(()=>{"use strict";oD();o($9t,"toInteger");Sc=$9t});var G9t,Xw,vJ=R(()=>{"use strict";Mh();Io();G9t=ks(si,"WeakMap"),Xw=G9t});function V9t(){}var ei,lD=R(()=>{"use strict";o(V9t,"noop");ei=V9t});function U9t(e,t){for(var r=-1,n=e==null?0:e.length;++r{"use strict";o(U9t,"arrayEach");jw=U9t});function H9t(e,t,r,n){for(var i=e.length,a=r+(n?1:-1);n?a--:++a{"use strict";o(H9t,"baseFindIndex");Kw=H9t});function W9t(e){return e!==e}var xJ,bJ=R(()=>{"use strict";o(W9t,"baseIsNaN");xJ=W9t});function Y9t(e,t,r){for(var n=r-1,i=e.length;++n{"use strict";o(Y9t,"strictIndexOf");wJ=Y9t});function q9t(e,t,r){return t===t?wJ(e,t,r):Kw(e,xJ,r)}var Om,Qw=R(()=>{"use strict";uD();bJ();TJ();o(q9t,"baseIndexOf");Om=q9t});function X9t(e,t){var r=e==null?0:e.length;return!!r&&Om(e,t,0)>-1}var Zw,hD=R(()=>{"use strict";Qw();o(X9t,"arrayIncludes");Zw=X9t});var j9t,kJ,EJ=R(()=>{"use strict";C9();j9t=S5(Object.keys,Object),kJ=j9t});function Z9t(e){if(!xc(e))return kJ(e);var t=[];for(var r in Object(e))Q9t.call(e,r)&&r!="constructor"&&t.push(r);return t}var K9t,Q9t,Pm,Jw=R(()=>{"use strict";cm();EJ();K9t=Object.prototype,Q9t=K9t.hasOwnProperty;o(Z9t,"baseKeys");Pm=Z9t});function J9t(e){return oi(e)?R5(e):Pm(e)}var $r,Ac=R(()=>{"use strict";D9();Jw();Bo();o(J9t,"keys");$r=J9t});var tLt,eLt,rLt,va,CJ=R(()=>{"use strict";dm();_d();I9();Bo();cm();Ac();tLt=Object.prototype,eLt=tLt.hasOwnProperty,rLt=I5(function(e,t){if(xc(t)||oi(t)){$o(t,$r(t),e);return}for(var r in t)eLt.call(t,r)&&bc(e,r,t[r])}),va=rLt});function aLt(e,t){if(Le(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||oo(e)?!0:iLt.test(e)||!nLt.test(e)||t!=null&&e in Object(t)}var nLt,iLt,Bm,tT=R(()=>{"use strict";Hn();Fd();nLt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,iLt=/^\w*$/;o(aLt,"isKey");Bm=aLt});function oLt(e){var t=em(e,function(n){return r.size===sLt&&r.clear(),n}),r=t.cache;return t}var sLt,SJ,AJ=R(()=>{"use strict";v9();sLt=500;o(oLt,"memoizeCapped");SJ=oLt});var lLt,cLt,uLt,_J,LJ=R(()=>{"use strict";AJ();lLt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,cLt=/\\(\\)?/g,uLt=SJ(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(lLt,function(r,n,i,a){t.push(i?a.replace(cLt,"$1"):n||r)}),t}),_J=uLt});function hLt(e){return e==null?"":lJ(e)}var eT,fD=R(()=>{"use strict";cJ();o(hLt,"toString");eT=hLt});function fLt(e,t){return Le(e)?e:Bm(e,t)?[e]:_J(eT(e))}var jh,Jv=R(()=>{"use strict";Hn();tT();LJ();fD();o(fLt,"castPath");jh=fLt});function pLt(e){if(typeof e=="string"||oo(e))return e;var t=e+"";return t=="0"&&1/e==-dLt?"-0":t}var dLt,_c,Fm=R(()=>{"use strict";Fd();dLt=1/0;o(pLt,"toKey");_c=pLt});function mLt(e,t){t=jh(t,e);for(var r=0,n=t.length;e!=null&&r{"use strict";Jv();Fm();o(mLt,"baseGet");Kh=mLt});function gLt(e,t,r){var n=e==null?void 0:Kh(e,t);return n===void 0?r:n}var DJ,RJ=R(()=>{"use strict";t2();o(gLt,"get");DJ=gLt});function yLt(e,t){for(var r=-1,n=t.length,i=e.length;++r{"use strict";o(yLt,"arrayPush");zm=yLt});function vLt(e){return Le(e)||_l(e)||!!(NJ&&e&&e[NJ])}var NJ,MJ,IJ=R(()=>{"use strict";kd();um();Hn();NJ=ra?ra.isConcatSpreadable:void 0;o(vLt,"isFlattenable");MJ=vLt});function OJ(e,t,r,n,i){var a=-1,s=e.length;for(r||(r=MJ),i||(i=[]);++a0&&r(l)?t>1?OJ(l,t-1,r,n,i):zm(i,l):n||(i[i.length]=l)}return i}var Lc,$m=R(()=>{"use strict";rT();IJ();o(OJ,"baseFlatten");Lc=OJ});function xLt(e){var t=e==null?0:e.length;return t?Lc(e,1):[]}var Wr,nT=R(()=>{"use strict";$m();o(xLt,"flatten");Wr=xLt});function bLt(e){return M5(N5(e,void 0,Wr),e+"")}var PJ,BJ=R(()=>{"use strict";nT();R9();M9();o(bLt,"flatRest");PJ=bLt});function wLt(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(i);++n{"use strict";o(wLt,"baseSlice");iT=wLt});function DLt(e){return LLt.test(e)}var TLt,kLt,ELt,CLt,SLt,ALt,_Lt,LLt,FJ,zJ=R(()=>{"use strict";TLt="\\ud800-\\udfff",kLt="\\u0300-\\u036f",ELt="\\ufe20-\\ufe2f",CLt="\\u20d0-\\u20ff",SLt=kLt+ELt+CLt,ALt="\\ufe0e\\ufe0f",_Lt="\\u200d",LLt=RegExp("["+_Lt+TLt+SLt+ALt+"]");o(DLt,"hasUnicode");FJ=DLt});function RLt(e,t,r,n){var i=-1,a=e==null?0:e.length;for(n&&a&&(r=e[++i]);++i{"use strict";o(RLt,"arrayReduce");$J=RLt});function NLt(e,t){return e&&$o(t,$r(t),e)}var VJ,UJ=R(()=>{"use strict";_d();Ac();o(NLt,"baseAssign");VJ=NLt});function MLt(e,t){return e&&$o(t,Es(t),e)}var HJ,WJ=R(()=>{"use strict";_d();$h();o(MLt,"baseAssignIn");HJ=MLt});function ILt(e,t){for(var r=-1,n=e==null?0:e.length,i=0,a=[];++r{"use strict";o(ILt,"arrayFilter");Gm=ILt});function OLt(){return[]}var sT,pD=R(()=>{"use strict";o(OLt,"stubArray");sT=OLt});var PLt,BLt,YJ,FLt,Vm,oT=R(()=>{"use strict";aT();pD();PLt=Object.prototype,BLt=PLt.propertyIsEnumerable,YJ=Object.getOwnPropertySymbols,FLt=YJ?function(e){return e==null?[]:(e=Object(e),Gm(YJ(e),function(t){return BLt.call(e,t)}))}:sT,Vm=FLt});function zLt(e,t){return $o(e,Vm(e),t)}var qJ,XJ=R(()=>{"use strict";_d();oT();o(zLt,"copySymbols");qJ=zLt});var $Lt,GLt,lT,mD=R(()=>{"use strict";rT();A5();oT();pD();$Lt=Object.getOwnPropertySymbols,GLt=$Lt?function(e){for(var t=[];e;)zm(t,Vm(e)),e=lm(e);return t}:sT,lT=GLt});function VLt(e,t){return $o(e,lT(e),t)}var jJ,KJ=R(()=>{"use strict";_d();mD();o(VLt,"copySymbolsIn");jJ=VLt});function ULt(e,t,r){var n=t(e);return Le(e)?n:zm(n,r(e))}var cT,gD=R(()=>{"use strict";rT();Hn();o(ULt,"baseGetAllKeys");cT=ULt});function HLt(e){return cT(e,$r,Vm)}var e2,yD=R(()=>{"use strict";gD();oT();Ac();o(HLt,"getAllKeys");e2=HLt});function WLt(e){return cT(e,Es,lT)}var uT,vD=R(()=>{"use strict";gD();mD();$h();o(WLt,"getAllKeysIn");uT=WLt});var YLt,hT,QJ=R(()=>{"use strict";Mh();Io();YLt=ks(si,"DataView"),hT=YLt});var qLt,fT,ZJ=R(()=>{"use strict";Mh();Io();qLt=ks(si,"Promise"),fT=qLt});var XLt,Qh,xD=R(()=>{"use strict";Mh();Io();XLt=ks(si,"Set"),Qh=XLt});var JJ,jLt,ttt,ett,rtt,ntt,KLt,QLt,ZLt,JLt,tDt,$d,lo,Gd=R(()=>{"use strict";QJ();x5();ZJ();xD();vJ();Au();m9();JJ="[object Map]",jLt="[object Object]",ttt="[object Promise]",ett="[object Set]",rtt="[object WeakMap]",ntt="[object DataView]",KLt=_u(hT),QLt=_u(Ph),ZLt=_u(fT),JLt=_u(Qh),tDt=_u(Xw),$d=ga;(hT&&$d(new hT(new ArrayBuffer(1)))!=ntt||Ph&&$d(new Ph)!=JJ||fT&&$d(fT.resolve())!=ttt||Qh&&$d(new Qh)!=ett||Xw&&$d(new Xw)!=rtt)&&($d=o(function(e){var t=ga(e),r=t==jLt?e.constructor:void 0,n=r?_u(r):"";if(n)switch(n){case KLt:return ntt;case QLt:return JJ;case ZLt:return ttt;case JLt:return ett;case tDt:return rtt}return t},"getTag"));lo=$d});function nDt(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&rDt.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var eDt,rDt,itt,att=R(()=>{"use strict";eDt=Object.prototype,rDt=eDt.hasOwnProperty;o(nDt,"initCloneArray");itt=nDt});function iDt(e,t){var r=t?om(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var stt,ott=R(()=>{"use strict";k5();o(iDt,"cloneDataView");stt=iDt});function sDt(e){var t=new e.constructor(e.source,aDt.exec(e));return t.lastIndex=e.lastIndex,t}var aDt,ltt,ctt=R(()=>{"use strict";aDt=/\w*$/;o(sDt,"cloneRegExp");ltt=sDt});function oDt(e){return htt?Object(htt.call(e)):{}}var utt,htt,ftt,dtt=R(()=>{"use strict";kd();utt=ra?ra.prototype:void 0,htt=utt?utt.valueOf:void 0;o(oDt,"cloneSymbol");ftt=oDt});function ADt(e,t,r){var n=e.constructor;switch(t){case gDt:return om(e);case lDt:case cDt:return new n(+e);case yDt:return stt(e,r);case vDt:case xDt:case bDt:case wDt:case TDt:case kDt:case EDt:case CDt:case SDt:return E5(e,r);case uDt:return new n;case hDt:case pDt:return new n(e);case fDt:return ltt(e);case dDt:return new n;case mDt:return ftt(e)}}var lDt,cDt,uDt,hDt,fDt,dDt,pDt,mDt,gDt,yDt,vDt,xDt,bDt,wDt,TDt,kDt,EDt,CDt,SDt,ptt,mtt=R(()=>{"use strict";k5();ott();ctt();dtt();k9();lDt="[object Boolean]",cDt="[object Date]",uDt="[object Map]",hDt="[object Number]",fDt="[object RegExp]",dDt="[object Set]",pDt="[object String]",mDt="[object Symbol]",gDt="[object ArrayBuffer]",yDt="[object DataView]",vDt="[object Float32Array]",xDt="[object Float64Array]",bDt="[object Int8Array]",wDt="[object Int16Array]",TDt="[object Int32Array]",kDt="[object Uint8Array]",EDt="[object Uint8ClampedArray]",CDt="[object Uint16Array]",SDt="[object Uint32Array]";o(ADt,"initCloneByTag");ptt=ADt});function LDt(e){return ti(e)&&lo(e)==_Dt}var _Dt,gtt,ytt=R(()=>{"use strict";Gd();Po();_Dt="[object Map]";o(LDt,"baseIsMap");gtt=LDt});var vtt,DDt,xtt,btt=R(()=>{"use strict";ytt();Ad();vv();vtt=zo&&zo.isMap,DDt=vtt?Fo(vtt):gtt,xtt=DDt});function NDt(e){return ti(e)&&lo(e)==RDt}var RDt,wtt,Ttt=R(()=>{"use strict";Gd();Po();RDt="[object Set]";o(NDt,"baseIsSet");wtt=NDt});var ktt,MDt,Ett,Ctt=R(()=>{"use strict";Ttt();Ad();vv();ktt=zo&&zo.isSet,MDt=ktt?Fo(ktt):wtt,Ett=MDt});function dT(e,t,r,n,i,a){var s,l=t&IDt,u=t&ODt,h=t&PDt;if(r&&(s=i?r(e,n,i,a):r(e)),s!==void 0)return s;if(!xn(e))return e;var f=Le(e);if(f){if(s=itt(e),!l)return C5(e,s)}else{var d=lo(e),p=d==Att||d==GDt;if(Ll(e))return T5(e,l);if(d==_tt||d==Stt||p&&!i){if(s=u||p?{}:_5(e),!l)return u?jJ(e,HJ(s,e)):qJ(e,VJ(s,e))}else{if(!_n[d])return i?e:{};s=ptt(e,d,l)}}a||(a=new yc);var m=a.get(e);if(m)return m;a.set(e,s),Ett(e)?e.forEach(function(v){s.add(dT(v,t,r,v,e,a))}):xtt(e)&&e.forEach(function(v,x){s.set(x,dT(v,t,r,x,e,a))});var g=h?u?uT:e2:u?Es:$r,y=f?void 0:g(e);return jw(y||e,function(v,x){y&&(x=v,v=e[x]),bc(s,x,dT(v,t,r,x,e,a))}),s}var IDt,ODt,PDt,Stt,BDt,FDt,zDt,$Dt,Att,GDt,VDt,UDt,_tt,HDt,WDt,YDt,qDt,XDt,jDt,KDt,QDt,ZDt,JDt,tRt,eRt,rRt,nRt,iRt,aRt,_n,pT,bD=R(()=>{"use strict";mv();cD();dm();UJ();WJ();w9();E9();XJ();KJ();yD();vD();Gd();att();mtt();S9();Hn();fm();btt();eo();Ctt();Ac();$h();IDt=1,ODt=2,PDt=4,Stt="[object Arguments]",BDt="[object Array]",FDt="[object Boolean]",zDt="[object Date]",$Dt="[object Error]",Att="[object Function]",GDt="[object GeneratorFunction]",VDt="[object Map]",UDt="[object Number]",_tt="[object Object]",HDt="[object RegExp]",WDt="[object Set]",YDt="[object String]",qDt="[object Symbol]",XDt="[object WeakMap]",jDt="[object ArrayBuffer]",KDt="[object DataView]",QDt="[object Float32Array]",ZDt="[object Float64Array]",JDt="[object Int8Array]",tRt="[object Int16Array]",eRt="[object Int32Array]",rRt="[object Uint8Array]",nRt="[object Uint8ClampedArray]",iRt="[object Uint16Array]",aRt="[object Uint32Array]",_n={};_n[Stt]=_n[BDt]=_n[jDt]=_n[KDt]=_n[FDt]=_n[zDt]=_n[QDt]=_n[ZDt]=_n[JDt]=_n[tRt]=_n[eRt]=_n[VDt]=_n[UDt]=_n[_tt]=_n[HDt]=_n[WDt]=_n[YDt]=_n[qDt]=_n[rRt]=_n[nRt]=_n[iRt]=_n[aRt]=!0;_n[$Dt]=_n[Att]=_n[XDt]=!1;o(dT,"baseClone");pT=dT});function oRt(e){return pT(e,sRt)}var sRt,rn,wD=R(()=>{"use strict";bD();sRt=4;o(oRt,"clone");rn=oRt});function uRt(e){return pT(e,lRt|cRt)}var lRt,cRt,TD,Ltt=R(()=>{"use strict";bD();lRt=1,cRt=4;o(uRt,"cloneDeep");TD=uRt});function hRt(e){for(var t=-1,r=e==null?0:e.length,n=0,i=[];++t{"use strict";o(hRt,"compact");Dc=hRt});function dRt(e){return this.__data__.set(e,fRt),this}var fRt,Rtt,Ntt=R(()=>{"use strict";fRt="__lodash_hash_undefined__";o(dRt,"setCacheAdd");Rtt=dRt});function pRt(e){return this.__data__.has(e)}var Mtt,Itt=R(()=>{"use strict";o(pRt,"setCacheHas");Mtt=pRt});function mT(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Cd;++t{"use strict";b5();Ntt();Itt();o(mT,"SetCache");mT.prototype.add=mT.prototype.push=Rtt;mT.prototype.has=Mtt;Um=mT});function mRt(e,t){for(var r=-1,n=e==null?0:e.length;++r{"use strict";o(mRt,"arraySome");yT=mRt});function gRt(e,t){return e.has(t)}var Hm,vT=R(()=>{"use strict";o(gRt,"cacheHas");Hm=gRt});function xRt(e,t,r,n,i,a){var s=r&yRt,l=e.length,u=t.length;if(l!=u&&!(s&&u>l))return!1;var h=a.get(e),f=a.get(t);if(h&&f)return h==t&&f==e;var d=-1,p=!0,m=r&vRt?new Um:void 0;for(a.set(e,t),a.set(t,e);++d{"use strict";gT();kD();vT();yRt=1,vRt=2;o(xRt,"equalArrays");xT=xRt});function bRt(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}var Ott,Ptt=R(()=>{"use strict";o(bRt,"mapToArray");Ott=bRt});function wRt(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var Wm,bT=R(()=>{"use strict";o(wRt,"setToArray");Wm=wRt});function ORt(e,t,r,n,i,a,s){switch(r){case IRt:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case MRt:return!(e.byteLength!=t.byteLength||!a(new sm(e),new sm(t)));case ERt:case CRt:case _Rt:return Oo(+e,+t);case SRt:return e.name==t.name&&e.message==t.message;case LRt:case RRt:return e==t+"";case ARt:var l=Ott;case DRt:var u=n&TRt;if(l||(l=Wm),e.size!=t.size&&!u)return!1;var h=s.get(e);if(h)return h==t;n|=kRt,s.set(e,t);var f=xT(l(e),l(t),n,i,a,s);return s.delete(e),f;case NRt:if(CD)return CD.call(e)==CD.call(t)}return!1}var TRt,kRt,ERt,CRt,SRt,ARt,_Rt,LRt,DRt,RRt,NRt,MRt,IRt,Btt,CD,Ftt,ztt=R(()=>{"use strict";kd();T9();Ed();ED();Ptt();bT();TRt=1,kRt=2,ERt="[object Boolean]",CRt="[object Date]",SRt="[object Error]",ARt="[object Map]",_Rt="[object Number]",LRt="[object RegExp]",DRt="[object Set]",RRt="[object String]",NRt="[object Symbol]",MRt="[object ArrayBuffer]",IRt="[object DataView]",Btt=ra?ra.prototype:void 0,CD=Btt?Btt.valueOf:void 0;o(ORt,"equalByTag");Ftt=ORt});function zRt(e,t,r,n,i,a){var s=r&PRt,l=e2(e),u=l.length,h=e2(t),f=h.length;if(u!=f&&!s)return!1;for(var d=u;d--;){var p=l[d];if(!(s?p in t:FRt.call(t,p)))return!1}var m=a.get(e),g=a.get(t);if(m&&g)return m==t&&g==e;var y=!0;a.set(e,t),a.set(t,e);for(var v=s;++d{"use strict";yD();PRt=1,BRt=Object.prototype,FRt=BRt.hasOwnProperty;o(zRt,"equalObjects");$tt=zRt});function VRt(e,t,r,n,i,a){var s=Le(e),l=Le(t),u=s?Utt:lo(e),h=l?Utt:lo(t);u=u==Vtt?wT:u,h=h==Vtt?wT:h;var f=u==wT,d=h==wT,p=u==h;if(p&&Ll(e)){if(!Ll(t))return!1;s=!0,f=!1}if(p&&!f)return a||(a=new yc),s||Fh(e)?xT(e,t,r,n,i,a):Ftt(e,t,u,r,n,i,a);if(!(r&$Rt)){var m=f&&Htt.call(e,"__wrapped__"),g=d&&Htt.call(t,"__wrapped__");if(m||g){var y=m?e.value():e,v=g?t.value():t;return a||(a=new yc),i(y,v,r,n,a)}}return p?(a||(a=new yc),$tt(e,t,r,n,i,a)):!1}var $Rt,Vtt,Utt,wT,GRt,Htt,Wtt,Ytt=R(()=>{"use strict";mv();ED();ztt();Gtt();Gd();Hn();fm();xv();$Rt=1,Vtt="[object Arguments]",Utt="[object Array]",wT="[object Object]",GRt=Object.prototype,Htt=GRt.hasOwnProperty;o(VRt,"baseIsEqualDeep");Wtt=VRt});function qtt(e,t,r,n,i){return e===t?!0:e==null||t==null||!ti(e)&&!ti(t)?e!==e&&t!==t:Wtt(e,t,r,n,qtt,i)}var TT,SD=R(()=>{"use strict";Ytt();Po();o(qtt,"baseIsEqual");TT=qtt});function WRt(e,t,r,n){var i=r.length,a=i,s=!n;if(e==null)return!a;for(e=Object(e);i--;){var l=r[i];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i{"use strict";mv();SD();URt=1,HRt=2;o(WRt,"baseIsMatch");Xtt=WRt});function YRt(e){return e===e&&!xn(e)}var kT,AD=R(()=>{"use strict";eo();o(YRt,"isStrictComparable");kT=YRt});function qRt(e){for(var t=$r(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,kT(i)]}return t}var Ktt,Qtt=R(()=>{"use strict";AD();Ac();o(qRt,"getMatchData");Ktt=qRt});function XRt(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var ET,_D=R(()=>{"use strict";o(XRt,"matchesStrictComparable");ET=XRt});function jRt(e){var t=Ktt(e);return t.length==1&&t[0][2]?ET(t[0][0],t[0][1]):function(r){return r===e||Xtt(r,e,t)}}var Ztt,Jtt=R(()=>{"use strict";jtt();Qtt();_D();o(jRt,"baseMatches");Ztt=jRt});function KRt(e,t){return e!=null&&t in Object(e)}var tet,eet=R(()=>{"use strict";o(KRt,"baseHasIn");tet=KRt});function QRt(e,t,r){t=jh(t,e);for(var n=-1,i=t.length,a=!1;++n{"use strict";Jv();um();Hn();wv();L5();Fm();o(QRt,"hasPath");CT=QRt});function ZRt(e,t){return e!=null&&CT(e,t,tet)}var ST,DD=R(()=>{"use strict";eet();LD();o(ZRt,"hasIn");ST=ZRt});function eNt(e,t){return Bm(e)&&kT(t)?ET(_c(e),t):function(r){var n=DJ(r,e);return n===void 0&&n===t?ST(r,e):TT(t,n,JRt|tNt)}}var JRt,tNt,ret,net=R(()=>{"use strict";SD();RJ();DD();tT();AD();_D();Fm();JRt=1,tNt=2;o(eNt,"baseMatchesProperty");ret=eNt});function rNt(e){return function(t){return t?.[e]}}var AT,RD=R(()=>{"use strict";o(rNt,"baseProperty");AT=rNt});function nNt(e){return function(t){return Kh(t,e)}}var iet,aet=R(()=>{"use strict";t2();o(nNt,"basePropertyDeep");iet=nNt});function iNt(e){return Bm(e)?AT(_c(e)):iet(e)}var set,oet=R(()=>{"use strict";RD();aet();tT();Fm();o(iNt,"property");set=iNt});function aNt(e){return typeof e=="function"?e:e==null?na:typeof e=="object"?Le(e)?ret(e[0],e[1]):Ztt(e):set(e)}var dn,es=R(()=>{"use strict";Jtt();net();Du();Hn();oet();o(aNt,"baseIteratee");dn=aNt});function sNt(e,t,r,n){for(var i=-1,a=e==null?0:e.length;++i{"use strict";o(sNt,"arrayAggregator");cet=sNt});function oNt(e,t){return e&&am(e,t,$r)}var Ym,_T=R(()=>{"use strict";w5();Ac();o(oNt,"baseForOwn");Ym=oNt});function lNt(e,t){return function(r,n){if(r==null)return r;if(!oi(r))return e(r,n);for(var i=r.length,a=t?i:-1,s=Object(r);(t?a--:++a{"use strict";Bo();o(lNt,"createBaseEach");het=lNt});var cNt,Ms,Zh=R(()=>{"use strict";_T();fet();cNt=het(Ym),Ms=cNt});function uNt(e,t,r,n){return Ms(e,function(i,a,s){t(n,i,r(i),s)}),n}var det,pet=R(()=>{"use strict";Zh();o(uNt,"baseAggregator");det=uNt});function hNt(e,t){return function(r,n){var i=Le(r)?cet:det,a=t?t():{};return i(r,e,dn(n,2),a)}}var met,get=R(()=>{"use strict";uet();pet();es();Hn();o(hNt,"createAggregator");met=hNt});var fNt,LT,yet=R(()=>{"use strict";Io();fNt=o(function(){return si.Date.now()},"now"),LT=fNt});var vet,dNt,pNt,Jh,xet=R(()=>{"use strict";pm();Ed();Ld();$h();vet=Object.prototype,dNt=vet.hasOwnProperty,pNt=wc(function(e,t){e=Object(e);var r=-1,n=t.length,i=n>2?t[2]:void 0;for(i&&ro(t[0],t[1],i)&&(n=1);++r{"use strict";o(mNt,"arrayIncludesWith");DT=mNt});function yNt(e,t,r,n){var i=-1,a=Zw,s=!0,l=e.length,u=[],h=t.length;if(!l)return u;r&&(t=Ns(t,Fo(r))),n?(a=DT,s=!1):t.length>=gNt&&(a=Hm,s=!1,t=new Um(t));t:for(;++i{"use strict";gT();hD();ND();zd();Ad();vT();gNt=200;o(yNt,"baseDifference");bet=yNt});var vNt,tf,Tet=R(()=>{"use strict";wet();$m();pm();D5();vNt=wc(function(e,t){return Sd(e)?bet(e,Lc(t,1,Sd,!0)):[]}),tf=vNt});function xNt(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var xa,ket=R(()=>{"use strict";o(xNt,"last");xa=xNt});function bNt(e,t,r){var n=e==null?0:e.length;return n?(t=r||t===void 0?1:Sc(t),iT(e,t<0?0:t,n)):[]}var gi,Eet=R(()=>{"use strict";dD();Im();o(bNt,"drop");gi=bNt});function wNt(e,t,r){var n=e==null?0:e.length;return n?(t=r||t===void 0?1:Sc(t),t=n-t,iT(e,0,t<0?0:t)):[]}var Pu,Cet=R(()=>{"use strict";dD();Im();o(wNt,"dropRight");Pu=wNt});function TNt(e){return typeof e=="function"?e:na}var qm,RT=R(()=>{"use strict";Du();o(TNt,"castFunction");qm=TNt});function kNt(e,t){var r=Le(e)?jw:Ms;return r(e,qm(t))}var Et,NT=R(()=>{"use strict";cD();Zh();RT();Hn();o(kNt,"forEach");Et=kNt});var Aet=R(()=>{"use strict";NT()});function ENt(e,t){for(var r=-1,n=e==null?0:e.length;++r{"use strict";o(ENt,"arrayEvery");_et=ENt});function CNt(e,t){var r=!0;return Ms(e,function(n,i,a){return r=!!t(n,i,a),r}),r}var Det,Ret=R(()=>{"use strict";Zh();o(CNt,"baseEvery");Det=CNt});function SNt(e,t,r){var n=Le(e)?_et:Det;return r&&ro(e,t,r)&&(t=void 0),n(e,dn(t,3))}var za,Net=R(()=>{"use strict";Let();Ret();es();Hn();Ld();o(SNt,"every");za=SNt});function ANt(e,t){var r=[];return Ms(e,function(n,i,a){t(n,i,a)&&r.push(n)}),r}var MT,MD=R(()=>{"use strict";Zh();o(ANt,"baseFilter");MT=ANt});function _Nt(e,t){var r=Le(e)?Gm:MT;return r(e,dn(t,3))}var Yr,ID=R(()=>{"use strict";aT();MD();es();Hn();o(_Nt,"filter");Yr=_Nt});function LNt(e){return function(t,r,n){var i=Object(t);if(!oi(t)){var a=dn(r,3);t=$r(t),r=o(function(l){return a(i[l],l,i)},"predicate")}var s=e(t,r,n);return s>-1?i[a?t[s]:s]:void 0}}var Met,Iet=R(()=>{"use strict";es();Bo();Ac();o(LNt,"createFind");Met=LNt});function RNt(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var i=r==null?0:Sc(r);return i<0&&(i=DNt(n+i,0)),Kw(e,dn(t,3),i)}var DNt,Oet,Pet=R(()=>{"use strict";uD();es();Im();DNt=Math.max;o(RNt,"findIndex");Oet=RNt});var NNt,rs,Bet=R(()=>{"use strict";Iet();Pet();NNt=Met(Oet),rs=NNt});function MNt(e){return e&&e.length?e[0]:void 0}var aa,Fet=R(()=>{"use strict";o(MNt,"head");aa=MNt});var zet=R(()=>{"use strict";Fet()});function INt(e,t){var r=-1,n=oi(e)?Array(e.length):[];return Ms(e,function(i,a,s){n[++r]=t(i,a,s)}),n}var IT,OD=R(()=>{"use strict";Zh();Bo();o(INt,"baseMap");IT=INt});function ONt(e,t){var r=Le(e)?Ns:IT;return r(e,dn(t,3))}var Xt,Xm=R(()=>{"use strict";zd();es();OD();Hn();o(ONt,"map");Xt=ONt});function PNt(e,t){return Lc(Xt(e,t),1)}var ba,PD=R(()=>{"use strict";$m();Xm();o(PNt,"flatMap");ba=PNt});function BNt(e,t){return e==null?e:am(e,qm(t),Es)}var BD,$et=R(()=>{"use strict";w5();RT();$h();o(BNt,"forIn");BD=BNt});function FNt(e,t){return e&&Ym(e,qm(t))}var FD,Get=R(()=>{"use strict";_T();RT();o(FNt,"forOwn");FD=FNt});var zNt,$Nt,GNt,zD,Vet=R(()=>{"use strict";im();get();zNt=Object.prototype,$Nt=zNt.hasOwnProperty,GNt=met(function(e,t,r){$Nt.call(e,r)?e[r].push(t):vc(e,r,[t])}),zD=GNt});function VNt(e,t){return e>t}var Uet,Het=R(()=>{"use strict";o(VNt,"baseGt");Uet=VNt});function WNt(e,t){return e!=null&&HNt.call(e,t)}var UNt,HNt,Wet,Yet=R(()=>{"use strict";UNt=Object.prototype,HNt=UNt.hasOwnProperty;o(WNt,"baseHas");Wet=WNt});function YNt(e,t){return e!=null&&CT(e,t,Wet)}var jt,qet=R(()=>{"use strict";Yet();LD();o(YNt,"has");jt=YNt});function XNt(e){return typeof e=="string"||!Le(e)&&ti(e)&&ga(e)==qNt}var qNt,yi,OT=R(()=>{"use strict";Au();Hn();Po();qNt="[object String]";o(XNt,"isString");yi=XNt});function jNt(e,t){return Ns(t,function(r){return e[r]})}var Xet,jet=R(()=>{"use strict";zd();o(jNt,"baseValues");Xet=jNt});function KNt(e){return e==null?[]:Xet(e,$r(e))}var gr,$D=R(()=>{"use strict";jet();Ac();o(KNt,"values");gr=KNt});function ZNt(e,t,r,n){e=oi(e)?e:gr(e),r=r&&!n?Sc(r):0;var i=e.length;return r<0&&(r=QNt(i+r,0)),yi(e)?r<=i&&e.indexOf(t,r)>-1:!!i&&Om(e,t,r)>-1}var QNt,Wn,Ket=R(()=>{"use strict";Qw();Bo();OT();Im();$D();QNt=Math.max;o(ZNt,"includes");Wn=ZNt});function tMt(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var i=r==null?0:Sc(r);return i<0&&(i=JNt(n+i,0)),Om(e,t,i)}var JNt,PT,Qet=R(()=>{"use strict";Qw();Im();JNt=Math.max;o(tMt,"indexOf");PT=tMt});function aMt(e){if(e==null)return!0;if(oi(e)&&(Le(e)||typeof e=="string"||typeof e.splice=="function"||Ll(e)||Fh(e)||_l(e)))return!e.length;var t=lo(e);if(t==eMt||t==rMt)return!e.size;if(xc(e))return!Pm(e).length;for(var r in e)if(iMt.call(e,r))return!1;return!0}var eMt,rMt,nMt,iMt,cr,BT=R(()=>{"use strict";Jw();Gd();um();Hn();Bo();fm();cm();xv();eMt="[object Map]",rMt="[object Set]",nMt=Object.prototype,iMt=nMt.hasOwnProperty;o(aMt,"isEmpty");cr=aMt});function oMt(e){return ti(e)&&ga(e)==sMt}var sMt,Zet,Jet=R(()=>{"use strict";Au();Po();sMt="[object RegExp]";o(oMt,"baseIsRegExp");Zet=oMt});var trt,lMt,Uo,ert=R(()=>{"use strict";Jet();Ad();vv();trt=zo&&zo.isRegExp,lMt=trt?Fo(trt):Zet,Uo=lMt});function cMt(e){return e===void 0}var fr,rrt=R(()=>{"use strict";o(cMt,"isUndefined");fr=cMt});function uMt(e,t){return e{"use strict";o(uMt,"baseLt");FT=uMt});function hMt(e,t){var r={};return t=dn(t,3),Ym(e,function(n,i,a){vc(r,i,t(n,i,a))}),r}var Vd,nrt=R(()=>{"use strict";im();_T();es();o(hMt,"mapValues");Vd=hMt});function fMt(e,t,r){for(var n=-1,i=e.length;++n{"use strict";Fd();o(fMt,"baseExtremum");jm=fMt});function dMt(e){return e&&e.length?jm(e,na,Uet):void 0}var Is,irt=R(()=>{"use strict";zT();Het();Du();o(dMt,"max");Is=dMt});function pMt(e){return e&&e.length?jm(e,na,FT):void 0}var Il,VD=R(()=>{"use strict";zT();GD();Du();o(pMt,"min");Il=pMt});function mMt(e,t){return e&&e.length?jm(e,dn(t,2),FT):void 0}var Ud,art=R(()=>{"use strict";zT();es();GD();o(mMt,"minBy");Ud=mMt});function yMt(e){if(typeof e!="function")throw new TypeError(gMt);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}var gMt,srt,ort=R(()=>{"use strict";gMt="Expected a function";o(yMt,"negate");srt=yMt});function vMt(e,t,r,n){if(!xn(e))return e;t=jh(t,e);for(var i=-1,a=t.length,s=a-1,l=e;l!=null&&++i{"use strict";dm();Jv();wv();eo();Fm();o(vMt,"baseSet");lrt=vMt});function xMt(e,t,r){for(var n=-1,i=t.length,a={};++n{"use strict";t2();crt();Jv();o(xMt,"basePickBy");$T=xMt});function bMt(e,t){if(e==null)return{};var r=Ns(uT(e),function(n){return[n]});return t=dn(t),$T(e,r,function(n,i){return t(n,i[0])})}var Os,urt=R(()=>{"use strict";zd();es();UD();vD();o(bMt,"pickBy");Os=bMt});function wMt(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}var hrt,frt=R(()=>{"use strict";o(wMt,"baseSortBy");hrt=wMt});function TMt(e,t){if(e!==t){var r=e!==void 0,n=e===null,i=e===e,a=oo(e),s=t!==void 0,l=t===null,u=t===t,h=oo(t);if(!l&&!h&&!a&&e>t||a&&s&&u&&!l&&!h||n&&s&&u||!r&&u||!i)return 1;if(!n&&!a&&!h&&e{"use strict";Fd();o(TMt,"compareAscending");drt=TMt});function kMt(e,t,r){for(var n=-1,i=e.criteria,a=t.criteria,s=i.length,l=r.length;++n=l)return u;var h=r[n];return u*(h=="desc"?-1:1)}}return e.index-t.index}var mrt,grt=R(()=>{"use strict";prt();o(kMt,"compareMultiple");mrt=kMt});function EMt(e,t,r){t.length?t=Ns(t,function(a){return Le(a)?function(s){return Kh(s,a.length===1?a[0]:a)}:a}):t=[na];var n=-1;t=Ns(t,Fo(dn));var i=IT(e,function(a,s,l){var u=Ns(t,function(h){return h(a)});return{criteria:u,index:++n,value:a}});return hrt(i,function(a,s){return mrt(a,s,r)})}var yrt,vrt=R(()=>{"use strict";zd();t2();es();OD();frt();Ad();grt();Du();Hn();o(EMt,"baseOrderBy");yrt=EMt});var CMt,xrt,brt=R(()=>{"use strict";RD();CMt=AT("length"),xrt=CMt});function BMt(e){for(var t=wrt.lastIndex=0;wrt.test(e);)++t;return t}var Trt,SMt,AMt,_Mt,LMt,DMt,RMt,HD,WD,NMt,krt,Ert,Crt,MMt,Srt,Art,IMt,OMt,PMt,wrt,_rt,Lrt=R(()=>{"use strict";Trt="\\ud800-\\udfff",SMt="\\u0300-\\u036f",AMt="\\ufe20-\\ufe2f",_Mt="\\u20d0-\\u20ff",LMt=SMt+AMt+_Mt,DMt="\\ufe0e\\ufe0f",RMt="["+Trt+"]",HD="["+LMt+"]",WD="\\ud83c[\\udffb-\\udfff]",NMt="(?:"+HD+"|"+WD+")",krt="[^"+Trt+"]",Ert="(?:\\ud83c[\\udde6-\\uddff]){2}",Crt="[\\ud800-\\udbff][\\udc00-\\udfff]",MMt="\\u200d",Srt=NMt+"?",Art="["+DMt+"]?",IMt="(?:"+MMt+"(?:"+[krt,Ert,Crt].join("|")+")"+Art+Srt+")*",OMt=Art+Srt+IMt,PMt="(?:"+[krt+HD+"?",HD,Ert,Crt,RMt].join("|")+")",wrt=RegExp(WD+"(?="+WD+")|"+PMt+OMt,"g");o(BMt,"unicodeSize");_rt=BMt});function FMt(e){return FJ(e)?_rt(e):xrt(e)}var Drt,Rrt=R(()=>{"use strict";brt();zJ();Lrt();o(FMt,"stringSize");Drt=FMt});function zMt(e,t){return $T(e,t,function(r,n){return ST(e,n)})}var Nrt,Mrt=R(()=>{"use strict";UD();DD();o(zMt,"basePick");Nrt=zMt});var $Mt,Hd,Irt=R(()=>{"use strict";Mrt();BJ();$Mt=PJ(function(e,t){return e==null?{}:Nrt(e,t)}),Hd=$Mt});function UMt(e,t,r,n){for(var i=-1,a=VMt(GMt((t-e)/(r||1)),0),s=Array(a);a--;)s[n?a:++i]=e,e+=r;return s}var GMt,VMt,Ort,Prt=R(()=>{"use strict";GMt=Math.ceil,VMt=Math.max;o(UMt,"baseRange");Ort=UMt});function HMt(e){return function(t,r,n){return n&&typeof n!="number"&&ro(t,r,n)&&(r=n=void 0),t=Mm(t),r===void 0?(r=t,t=0):r=Mm(r),n=n===void 0?t{"use strict";Prt();Ld();oD();o(HMt,"createRange");Brt=HMt});var WMt,Ho,zrt=R(()=>{"use strict";Frt();WMt=Brt(),Ho=WMt});function YMt(e,t,r,n,i){return i(e,function(a,s,l){r=n?(n=!1,a):t(r,a,s,l)}),r}var $rt,Grt=R(()=>{"use strict";o(YMt,"baseReduce");$rt=YMt});function qMt(e,t,r){var n=Le(e)?$J:$rt,i=arguments.length<3;return n(e,dn(t,4),r,i,Ms)}var qr,YD=R(()=>{"use strict";GJ();Zh();es();Grt();Hn();o(qMt,"reduce");qr=qMt});function XMt(e,t){var r=Le(e)?Gm:MT;return r(e,srt(dn(t,3)))}var ef,Vrt=R(()=>{"use strict";aT();MD();es();Hn();ort();o(XMt,"reject");ef=XMt});function QMt(e){if(e==null)return 0;if(oi(e))return yi(e)?Drt(e):e.length;var t=lo(e);return t==jMt||t==KMt?e.size:Pm(e).length}var jMt,KMt,qD,Urt=R(()=>{"use strict";Jw();Gd();Bo();OT();Rrt();jMt="[object Map]",KMt="[object Set]";o(QMt,"size");qD=QMt});function ZMt(e,t){var r;return Ms(e,function(n,i,a){return r=t(n,i,a),!r}),!!r}var Hrt,Wrt=R(()=>{"use strict";Zh();o(ZMt,"baseSome");Hrt=ZMt});function JMt(e,t,r){var n=Le(e)?yT:Hrt;return r&&ro(e,t,r)&&(t=void 0),n(e,dn(t,3))}var r2,Yrt=R(()=>{"use strict";kD();es();Wrt();Hn();Ld();o(JMt,"some");r2=JMt});var tIt,Rc,qrt=R(()=>{"use strict";$m();vrt();pm();Ld();tIt=wc(function(e,t){if(e==null)return[];var r=t.length;return r>1&&ro(e,t[0],t[1])?t=[]:r>2&&ro(t[0],t[1],t[2])&&(t=[t[0]]),yrt(e,Lc(t,1),[])}),Rc=tIt});var eIt,rIt,Xrt,jrt=R(()=>{"use strict";xD();lD();bT();eIt=1/0,rIt=Qh&&1/Wm(new Qh([,-0]))[1]==eIt?function(e){return new Qh(e)}:ei,Xrt=rIt});function iIt(e,t,r){var n=-1,i=Zw,a=e.length,s=!0,l=[],u=l;if(r)s=!1,i=DT;else if(a>=nIt){var h=t?null:Xrt(e);if(h)return Wm(h);s=!1,i=Hm,u=new Um}else u=t?[]:l;t:for(;++n{"use strict";gT();hD();ND();vT();jrt();bT();nIt=200;o(iIt,"baseUniq");Km=iIt});var aIt,XD,Krt=R(()=>{"use strict";$m();pm();GT();D5();aIt=wc(function(e){return Km(Lc(e,1,Sd,!0))}),XD=aIt});function sIt(e){return e&&e.length?Km(e):[]}var Qm,Qrt=R(()=>{"use strict";GT();o(sIt,"uniq");Qm=sIt});function oIt(e,t){return e&&e.length?Km(e,dn(t,2)):[]}var Zrt,Jrt=R(()=>{"use strict";es();GT();o(oIt,"uniqBy");Zrt=oIt});function cIt(e){var t=++lIt;return eT(e)+t}var lIt,Wd,tnt=R(()=>{"use strict";fD();lIt=0;o(cIt,"uniqueId");Wd=cIt});function uIt(e,t,r){for(var n=-1,i=e.length,a=t.length,s={};++n{"use strict";o(uIt,"baseZipObject");ent=uIt});function hIt(e,t){return ent(e||[],t||[],bc)}var VT,nnt=R(()=>{"use strict";dm();rnt();o(hIt,"zipObject");VT=hIt});var Ve=R(()=>{"use strict";CJ();wD();Ltt();Dtt();N9();xet();Tet();Eet();Cet();Aet();Net();ID();Bet();zet();PD();nT();NT();$et();Get();Vet();qet();Du();Ket();Qet();Hn();BT();uv();eo();ert();OT();rrt();Ac();ket();Xm();nrt();irt();O9();VD();art();lD();yet();Irt();urt();zrt();YD();Vrt();Urt();Yrt();qrt();Krt();Qrt();tnt();$D();nnt();});function ant(e,t){e[t]?e[t]++:e[t]=1}function snt(e,t){--e[t]||delete e[t]}function n2(e,t,r,n){var i=""+t,a=""+r;if(!e&&i>a){var s=i;i=a,a=s}return i+int+a+int+(fr(n)?fIt:n)}function dIt(e,t,r,n){var i=""+t,a=""+r;if(!e&&i>a){var s=i;i=a,a=s}var l={v:i,w:a};return n&&(l.name=n),l}function jD(e,t){return n2(e,t.v,t.w,t.name)}var fIt,Yd,int,yr,UT=R(()=>{"use strict";Ve();fIt="\0",Yd="\0",int="",yr=class{static{o(this,"Graph")}constructor(t={}){this._isDirected=jt(t,"directed")?t.directed:!0,this._isMultigraph=jt(t,"multigraph")?t.multigraph:!1,this._isCompound=jt(t,"compound")?t.compound:!1,this._label=void 0,this._defaultNodeLabelFn=Cs(void 0),this._defaultEdgeLabelFn=Cs(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[Yd]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(t){return this._label=t,this}graph(){return this._label}setDefaultNodeLabel(t){return Si(t)||(t=Cs(t)),this._defaultNodeLabelFn=t,this}nodeCount(){return this._nodeCount}nodes(){return $r(this._nodes)}sources(){var t=this;return Yr(this.nodes(),function(r){return cr(t._in[r])})}sinks(){var t=this;return Yr(this.nodes(),function(r){return cr(t._out[r])})}setNodes(t,r){var n=arguments,i=this;return Et(t,function(a){n.length>1?i.setNode(a,r):i.setNode(a)}),this}setNode(t,r){return jt(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=r),this):(this._nodes[t]=arguments.length>1?r:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=Yd,this._children[t]={},this._children[Yd][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)}node(t){return this._nodes[t]}hasNode(t){return jt(this._nodes,t)}removeNode(t){var r=this;if(jt(this._nodes,t)){var n=o(function(i){r.removeEdge(r._edgeObjs[i])},"removeEdge");delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],Et(this.children(t),function(i){r.setParent(i)}),delete this._children[t]),Et($r(this._in[t]),n),delete this._in[t],delete this._preds[t],Et($r(this._out[t]),n),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this}setParent(t,r){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(fr(r))r=Yd;else{r+="";for(var n=r;!fr(n);n=this.parent(n))if(n===t)throw new Error("Setting "+r+" as parent of "+t+" would create a cycle");this.setNode(r)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=r,this._children[r][t]=!0,this}_removeFromParentsChildList(t){delete this._children[this._parent[t]][t]}parent(t){if(this._isCompound){var r=this._parent[t];if(r!==Yd)return r}}children(t){if(fr(t)&&(t=Yd),this._isCompound){var r=this._children[t];if(r)return $r(r)}else{if(t===Yd)return this.nodes();if(this.hasNode(t))return[]}}predecessors(t){var r=this._preds[t];if(r)return $r(r)}successors(t){var r=this._sucs[t];if(r)return $r(r)}neighbors(t){var r=this.predecessors(t);if(r)return XD(r,this.successors(t))}isLeaf(t){var r;return this.isDirected()?r=this.successors(t):r=this.neighbors(t),r.length===0}filterNodes(t){var r=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});r.setGraph(this.graph());var n=this;Et(this._nodes,function(s,l){t(l)&&r.setNode(l,s)}),Et(this._edgeObjs,function(s){r.hasNode(s.v)&&r.hasNode(s.w)&&r.setEdge(s,n.edge(s))});var i={};function a(s){var l=n.parent(s);return l===void 0||r.hasNode(l)?(i[s]=l,l):l in i?i[l]:a(l)}return o(a,"findParent"),this._isCompound&&Et(r.nodes(),function(s){r.setParent(s,a(s))}),r}setDefaultEdgeLabel(t){return Si(t)||(t=Cs(t)),this._defaultEdgeLabelFn=t,this}edgeCount(){return this._edgeCount}edges(){return gr(this._edgeObjs)}setPath(t,r){var n=this,i=arguments;return qr(t,function(a,s){return i.length>1?n.setEdge(a,s,r):n.setEdge(a,s),s}),this}setEdge(){var t,r,n,i,a=!1,s=arguments[0];typeof s=="object"&&s!==null&&"v"in s?(t=s.v,r=s.w,n=s.name,arguments.length===2&&(i=arguments[1],a=!0)):(t=s,r=arguments[1],n=arguments[3],arguments.length>2&&(i=arguments[2],a=!0)),t=""+t,r=""+r,fr(n)||(n=""+n);var l=n2(this._isDirected,t,r,n);if(jt(this._edgeLabels,l))return a&&(this._edgeLabels[l]=i),this;if(!fr(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(r),this._edgeLabels[l]=a?i:this._defaultEdgeLabelFn(t,r,n);var u=dIt(this._isDirected,t,r,n);return t=u.v,r=u.w,Object.freeze(u),this._edgeObjs[l]=u,ant(this._preds[r],t),ant(this._sucs[t],r),this._in[r][l]=u,this._out[t][l]=u,this._edgeCount++,this}edge(t,r,n){var i=arguments.length===1?jD(this._isDirected,arguments[0]):n2(this._isDirected,t,r,n);return this._edgeLabels[i]}hasEdge(t,r,n){var i=arguments.length===1?jD(this._isDirected,arguments[0]):n2(this._isDirected,t,r,n);return jt(this._edgeLabels,i)}removeEdge(t,r,n){var i=arguments.length===1?jD(this._isDirected,arguments[0]):n2(this._isDirected,t,r,n),a=this._edgeObjs[i];return a&&(t=a.v,r=a.w,delete this._edgeLabels[i],delete this._edgeObjs[i],snt(this._preds[r],t),snt(this._sucs[t],r),delete this._in[r][i],delete this._out[t][i],this._edgeCount--),this}inEdges(t,r){var n=this._in[t];if(n){var i=gr(n);return r?Yr(i,function(a){return a.v===r}):i}}outEdges(t,r){var n=this._out[t];if(n){var i=gr(n);return r?Yr(i,function(a){return a.w===r}):i}}nodeEdges(t,r){var n=this.inEdges(t,r);if(n)return n.concat(this.outEdges(t,r))}};yr.prototype._nodeCount=0;yr.prototype._edgeCount=0;o(ant,"incrementOrInitEntry");o(snt,"decrementOrRemoveEntry");o(n2,"edgeArgsToId");o(dIt,"edgeArgsToObj");o(jD,"edgeObjToId")});var wa=R(()=>{"use strict";UT()});function ont(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function pIt(e,t){if(e!=="_next"&&e!=="_prev")return t}var HT,lnt=R(()=>{"use strict";HT=class{static{o(this,"List")}constructor(){var t={};t._next=t._prev=t,this._sentinel=t}dequeue(){var t=this._sentinel,r=t._prev;if(r!==t)return ont(r),r}enqueue(t){var r=this._sentinel;t._prev&&t._next&&ont(t),t._next=r._next,r._next._prev=t,r._next=t,t._prev=r}toString(){for(var t=[],r=this._sentinel,n=r._prev;n!==r;)t.push(JSON.stringify(n,pIt)),n=n._prev;return"["+t.join(", ")+"]"}};o(ont,"unlink");o(pIt,"filterOutLinks")});function cnt(e,t){if(e.nodeCount()<=1)return[];var r=yIt(e,t||mIt),n=gIt(r.graph,r.buckets,r.zeroIdx);return Wr(Xt(n,function(i){return e.outEdges(i.v,i.w)}))}function gIt(e,t,r){for(var n=[],i=t[t.length-1],a=t[0],s;e.nodeCount();){for(;s=a.dequeue();)KD(e,t,r,s);for(;s=i.dequeue();)KD(e,t,r,s);if(e.nodeCount()){for(var l=t.length-2;l>0;--l)if(s=t[l].dequeue(),s){n=n.concat(KD(e,t,r,s,!0));break}}}return n}function KD(e,t,r,n,i){var a=i?[]:void 0;return Et(e.inEdges(n.v),function(s){var l=e.edge(s),u=e.node(s.v);i&&a.push({v:s.v,w:s.w}),u.out-=l,QD(t,r,u)}),Et(e.outEdges(n.v),function(s){var l=e.edge(s),u=s.w,h=e.node(u);h.in-=l,QD(t,r,h)}),e.removeNode(n.v),a}function yIt(e,t){var r=new yr,n=0,i=0;Et(e.nodes(),function(l){r.setNode(l,{v:l,in:0,out:0})}),Et(e.edges(),function(l){var u=r.edge(l.v,l.w)||0,h=t(l),f=u+h;r.setEdge(l.v,l.w,f),i=Math.max(i,r.node(l.v).out+=h),n=Math.max(n,r.node(l.w).in+=h)});var a=Ho(i+n+3).map(function(){return new HT}),s=n+1;return Et(r.nodes(),function(l){QD(a,s,r.node(l))}),{graph:r,buckets:a,zeroIdx:s}}function QD(e,t,r){r.out?r.in?e[r.out-r.in+t].enqueue(r):e[e.length-1].enqueue(r):e[0].enqueue(r)}var mIt,unt=R(()=>{"use strict";Ve();wa();lnt();mIt=Cs(1);o(cnt,"greedyFAS");o(gIt,"doGreedyFAS");o(KD,"removeNode");o(yIt,"buildState");o(QD,"assignBucket")});function hnt(e){var t=e.graph().acyclicer==="greedy"?cnt(e,r(e)):vIt(e);Et(t,function(n){var i=e.edge(n);e.removeEdge(n),i.forwardName=n.name,i.reversed=!0,e.setEdge(n.w,n.v,i,Wd("rev"))});function r(n){return function(i){return n.edge(i).weight}}o(r,"weightFn")}function vIt(e){var t=[],r={},n={};function i(a){jt(n,a)||(n[a]=!0,r[a]=!0,Et(e.outEdges(a),function(s){jt(r,s.w)?t.push(s):i(s.w)}),delete r[a])}return o(i,"dfs"),Et(e.nodes(),i),t}function fnt(e){Et(e.edges(),function(t){var r=e.edge(t);if(r.reversed){e.removeEdge(t);var n=r.forwardName;delete r.reversed,delete r.forwardName,e.setEdge(t.w,t.v,r,n)}})}var ZD=R(()=>{"use strict";Ve();unt();o(hnt,"run");o(vIt,"dfsFAS");o(fnt,"undo")});function Nc(e,t,r,n){var i;do i=Wd(n);while(e.hasNode(i));return r.dummy=t,e.setNode(i,r),i}function pnt(e){var t=new yr().setGraph(e.graph());return Et(e.nodes(),function(r){t.setNode(r,e.node(r))}),Et(e.edges(),function(r){var n=t.edge(r.v,r.w)||{weight:0,minlen:1},i=e.edge(r);t.setEdge(r.v,r.w,{weight:n.weight+i.weight,minlen:Math.max(n.minlen,i.minlen)})}),t}function WT(e){var t=new yr({multigraph:e.isMultigraph()}).setGraph(e.graph());return Et(e.nodes(),function(r){e.children(r).length||t.setNode(r,e.node(r))}),Et(e.edges(),function(r){t.setEdge(r,e.edge(r))}),t}function JD(e,t){var r=e.x,n=e.y,i=t.x-r,a=t.y-n,s=e.width/2,l=e.height/2;if(!i&&!a)throw new Error("Not possible to find intersection inside of the rectangle");var u,h;return Math.abs(a)*s>Math.abs(i)*l?(a<0&&(l=-l),u=l*i/a,h=l):(i<0&&(s=-s),u=s,h=s*a/i),{x:r+u,y:n+h}}function rf(e){var t=Xt(Ho(eR(e)+1),function(){return[]});return Et(e.nodes(),function(r){var n=e.node(r),i=n.rank;fr(i)||(t[i][n.order]=r)}),t}function mnt(e){var t=Il(Xt(e.nodes(),function(r){return e.node(r).rank}));Et(e.nodes(),function(r){var n=e.node(r);jt(n,"rank")&&(n.rank-=t)})}function gnt(e){var t=Il(Xt(e.nodes(),function(a){return e.node(a).rank})),r=[];Et(e.nodes(),function(a){var s=e.node(a).rank-t;r[s]||(r[s]=[]),r[s].push(a)});var n=0,i=e.graph().nodeRankFactor;Et(r,function(a,s){fr(a)&&s%i!==0?--n:n&&Et(a,function(l){e.node(l).rank+=n})})}function tR(e,t,r,n){var i={width:0,height:0};return arguments.length>=4&&(i.rank=r,i.order=n),Nc(e,"border",i,t)}function eR(e){return Is(Xt(e.nodes(),function(t){var r=e.node(t).rank;if(!fr(r))return r}))}function ynt(e,t){var r={lhs:[],rhs:[]};return Et(e,function(n){t(n)?r.lhs.push(n):r.rhs.push(n)}),r}function vnt(e,t){var r=LT();try{return t()}finally{console.log(e+" time: "+(LT()-r)+"ms")}}function xnt(e,t){return t()}var Mc=R(()=>{"use strict";Ve();wa();o(Nc,"addDummyNode");o(pnt,"simplify");o(WT,"asNonCompoundGraph");o(JD,"intersectRect");o(rf,"buildLayerMatrix");o(mnt,"normalizeRanks");o(gnt,"removeEmptyRanks");o(tR,"addBorderNode");o(eR,"maxRank");o(ynt,"partition");o(vnt,"time");o(xnt,"notime")});function wnt(e){function t(r){var n=e.children(r),i=e.node(r);if(n.length&&Et(n,t),jt(i,"minRank")){i.borderLeft=[],i.borderRight=[];for(var a=i.minRank,s=i.maxRank+1;a{"use strict";Ve();Mc();o(wnt,"addBorderSegments");o(bnt,"addBorderNode")});function Ent(e){var t=e.graph().rankdir.toLowerCase();(t==="lr"||t==="rl")&&Snt(e)}function Cnt(e){var t=e.graph().rankdir.toLowerCase();(t==="bt"||t==="rl")&&xIt(e),(t==="lr"||t==="rl")&&(bIt(e),Snt(e))}function Snt(e){Et(e.nodes(),function(t){knt(e.node(t))}),Et(e.edges(),function(t){knt(e.edge(t))})}function knt(e){var t=e.width;e.width=e.height,e.height=t}function xIt(e){Et(e.nodes(),function(t){rR(e.node(t))}),Et(e.edges(),function(t){var r=e.edge(t);Et(r.points,rR),jt(r,"y")&&rR(r)})}function rR(e){e.y=-e.y}function bIt(e){Et(e.nodes(),function(t){nR(e.node(t))}),Et(e.edges(),function(t){var r=e.edge(t);Et(r.points,nR),jt(r,"x")&&nR(r)})}function nR(e){var t=e.x;e.x=e.y,e.y=t}var Ant=R(()=>{"use strict";Ve();o(Ent,"adjust");o(Cnt,"undo");o(Snt,"swapWidthHeight");o(knt,"swapWidthHeightOne");o(xIt,"reverseY");o(rR,"reverseYOne");o(bIt,"swapXY");o(nR,"swapXYOne")});function _nt(e){e.graph().dummyChains=[],Et(e.edges(),function(t){TIt(e,t)})}function TIt(e,t){var r=t.v,n=e.node(r).rank,i=t.w,a=e.node(i).rank,s=t.name,l=e.edge(t),u=l.labelRank;if(a!==n+1){e.removeEdge(t);var h,f,d;for(d=0,++n;n{"use strict";Ve();Mc();o(_nt,"run");o(TIt,"normalizeEdge");o(Lnt,"undo")});function i2(e){var t={};function r(n){var i=e.node(n);if(jt(t,n))return i.rank;t[n]=!0;var a=Il(Xt(e.outEdges(n),function(s){return r(s.w)-e.edge(s).minlen}));return(a===Number.POSITIVE_INFINITY||a===void 0||a===null)&&(a=0),i.rank=a}o(r,"dfs"),Et(e.sources(),r)}function qd(e,t){return e.node(t.w).rank-e.node(t.v).rank-e.edge(t).minlen}var YT=R(()=>{"use strict";Ve();o(i2,"longestPath");o(qd,"slack")});function qT(e){var t=new yr({directed:!1}),r=e.nodes()[0],n=e.nodeCount();t.setNode(r,{});for(var i,a;kIt(t,e){"use strict";Ve();wa();YT();o(qT,"feasibleTree");o(kIt,"tightTree");o(EIt,"findMinSlackEdge");o(CIt,"shiftRanks")});var Rnt=R(()=>{"use strict"});var sR=R(()=>{"use strict"});var mWe,oR=R(()=>{"use strict";Ve();sR();mWe=Cs(1)});var Nnt=R(()=>{"use strict";oR()});var lR=R(()=>{"use strict"});var Mnt=R(()=>{"use strict";lR()});var SWe,Int=R(()=>{"use strict";Ve();SWe=Cs(1)});function cR(e){var t={},r={},n=[];function i(a){if(jt(r,a))throw new a2;jt(t,a)||(r[a]=!0,t[a]=!0,Et(e.predecessors(a),i),delete r[a],n.push(a))}if(o(i,"visit"),Et(e.sinks(),i),qD(t)!==e.nodeCount())throw new a2;return n}function a2(){}var uR=R(()=>{"use strict";Ve();cR.CycleException=a2;o(cR,"topsort");o(a2,"CycleException");a2.prototype=new Error});var Ont=R(()=>{"use strict";uR()});function XT(e,t,r){Le(t)||(t=[t]);var n=(e.isDirected()?e.successors:e.neighbors).bind(e),i=[],a={};return Et(t,function(s){if(!e.hasNode(s))throw new Error("Graph does not have node: "+s);Pnt(e,s,r==="post",a,n,i)}),i}function Pnt(e,t,r,n,i,a){jt(n,t)||(n[t]=!0,r||a.push(t),Et(i(t),function(s){Pnt(e,s,r,n,i,a)}),r&&a.push(t))}var hR=R(()=>{"use strict";Ve();o(XT,"dfs");o(Pnt,"doDfs")});function fR(e,t){return XT(e,t,"post")}var Bnt=R(()=>{"use strict";hR();o(fR,"postorder")});function dR(e,t){return XT(e,t,"pre")}var Fnt=R(()=>{"use strict";hR();o(dR,"preorder")});var znt=R(()=>{"use strict";sR();UT()});var $nt=R(()=>{"use strict";Rnt();oR();Nnt();Mnt();Int();Ont();Bnt();Fnt();znt();lR();uR()});function af(e){e=pnt(e),i2(e);var t=qT(e);mR(t),pR(t,e);for(var r,n;r=Hnt(t);)n=Wnt(t,e,r),Ynt(t,e,r,n)}function pR(e,t){var r=fR(e,e.nodes());r=r.slice(0,r.length-1),Et(r,function(n){DIt(e,t,n)})}function DIt(e,t,r){var n=e.node(r),i=n.parent;e.edge(r,i).cutvalue=Vnt(e,t,r)}function Vnt(e,t,r){var n=e.node(r),i=n.parent,a=!0,s=t.edge(r,i),l=0;return s||(a=!1,s=t.edge(i,r)),l=s.weight,Et(t.nodeEdges(r),function(u){var h=u.v===r,f=h?u.w:u.v;if(f!==i){var d=h===a,p=t.edge(u).weight;if(l+=d?p:-p,NIt(e,r,f)){var m=e.edge(r,f).cutvalue;l+=d?-m:m}}}),l}function mR(e,t){arguments.length<2&&(t=e.nodes()[0]),Unt(e,{},1,t)}function Unt(e,t,r,n,i){var a=r,s=e.node(n);return t[n]=!0,Et(e.neighbors(n),function(l){jt(t,l)||(r=Unt(e,t,r,l,n))}),s.low=a,s.lim=r++,i?s.parent=i:delete s.parent,r}function Hnt(e){return rs(e.edges(),function(t){return e.edge(t).cutvalue<0})}function Wnt(e,t,r){var n=r.v,i=r.w;t.hasEdge(n,i)||(n=r.w,i=r.v);var a=e.node(n),s=e.node(i),l=a,u=!1;a.lim>s.lim&&(l=s,u=!0);var h=Yr(t.edges(),function(f){return u===Gnt(e,e.node(f.v),l)&&u!==Gnt(e,e.node(f.w),l)});return Ud(h,function(f){return qd(t,f)})}function Ynt(e,t,r,n){var i=r.v,a=r.w;e.removeEdge(i,a),e.setEdge(n.v,n.w,{}),mR(e),pR(e,t),RIt(e,t)}function RIt(e,t){var r=rs(e.nodes(),function(i){return!t.node(i).parent}),n=dR(e,r);n=n.slice(1),Et(n,function(i){var a=e.node(i).parent,s=t.edge(i,a),l=!1;s||(s=t.edge(a,i),l=!0),t.node(i).rank=t.node(a).rank+(l?s.minlen:-s.minlen)})}function NIt(e,t,r){return e.hasEdge(t,r)}function Gnt(e,t,r){return r.low<=t.lim&&t.lim<=r.lim}var qnt=R(()=>{"use strict";Ve();$nt();Mc();aR();YT();af.initLowLimValues=mR;af.initCutValues=pR;af.calcCutValue=Vnt;af.leaveEdge=Hnt;af.enterEdge=Wnt;af.exchangeEdges=Ynt;o(af,"networkSimplex");o(pR,"initCutValues");o(DIt,"assignCutValue");o(Vnt,"calcCutValue");o(mR,"initLowLimValues");o(Unt,"dfsAssignLowLim");o(Hnt,"leaveEdge");o(Wnt,"enterEdge");o(Ynt,"exchangeEdges");o(RIt,"updateRanks");o(NIt,"isTreeEdge");o(Gnt,"isDescendant")});function gR(e){switch(e.graph().ranker){case"network-simplex":Xnt(e);break;case"tight-tree":IIt(e);break;case"longest-path":MIt(e);break;default:Xnt(e)}}function IIt(e){i2(e),qT(e)}function Xnt(e){af(e)}var MIt,yR=R(()=>{"use strict";aR();qnt();YT();o(gR,"rank");MIt=i2;o(IIt,"tightTreeRanker");o(Xnt,"networkSimplexRanker")});function jnt(e){var t=Nc(e,"root",{},"_root"),r=OIt(e),n=Is(gr(r))-1,i=2*n+1;e.graph().nestingRoot=t,Et(e.edges(),function(s){e.edge(s).minlen*=i});var a=PIt(e)+1;Et(e.children(),function(s){Knt(e,t,i,a,n,r,s)}),e.graph().nodeRankFactor=i}function Knt(e,t,r,n,i,a,s){var l=e.children(s);if(!l.length){s!==t&&e.setEdge(t,s,{weight:0,minlen:r});return}var u=tR(e,"_bt"),h=tR(e,"_bb"),f=e.node(s);e.setParent(u,s),f.borderTop=u,e.setParent(h,s),f.borderBottom=h,Et(l,function(d){Knt(e,t,r,n,i,a,d);var p=e.node(d),m=p.borderTop?p.borderTop:d,g=p.borderBottom?p.borderBottom:d,y=p.borderTop?n:2*n,v=m!==g?1:i-a[s]+1;e.setEdge(u,m,{weight:y,minlen:v,nestingEdge:!0}),e.setEdge(g,h,{weight:y,minlen:v,nestingEdge:!0})}),e.parent(s)||e.setEdge(t,u,{weight:0,minlen:i+a[s]})}function OIt(e){var t={};function r(n,i){var a=e.children(n);a&&a.length&&Et(a,function(s){r(s,i+1)}),t[n]=i}return o(r,"dfs"),Et(e.children(),function(n){r(n,1)}),t}function PIt(e){return qr(e.edges(),function(t,r){return t+e.edge(r).weight},0)}function Qnt(e){var t=e.graph();e.removeNode(t.nestingRoot),delete t.nestingRoot,Et(e.edges(),function(r){var n=e.edge(r);n.nestingEdge&&e.removeEdge(r)})}var Znt=R(()=>{"use strict";Ve();Mc();o(jnt,"run");o(Knt,"dfs");o(OIt,"treeDepths");o(PIt,"sumWeights");o(Qnt,"cleanup")});function Jnt(e,t,r){var n={},i;Et(r,function(a){for(var s=e.parent(a),l,u;s;){if(l=e.parent(s),l?(u=n[l],n[l]=s):(u=i,i=s),u&&u!==s){t.setEdge(u,s);return}s=l}})}var tit=R(()=>{"use strict";Ve();o(Jnt,"addSubgraphConstraints")});function eit(e,t,r){var n=FIt(e),i=new yr({compound:!0}).setGraph({root:n}).setDefaultNodeLabel(function(a){return e.node(a)});return Et(e.nodes(),function(a){var s=e.node(a),l=e.parent(a);(s.rank===t||s.minRank<=t&&t<=s.maxRank)&&(i.setNode(a),i.setParent(a,l||n),Et(e[r](a),function(u){var h=u.v===a?u.w:u.v,f=i.edge(h,a),d=fr(f)?0:f.weight;i.setEdge(h,a,{weight:e.edge(u).weight+d})}),jt(s,"minRank")&&i.setNode(a,{borderLeft:s.borderLeft[t],borderRight:s.borderRight[t]}))}),i}function FIt(e){for(var t;e.hasNode(t=Wd("_root")););return t}var rit=R(()=>{"use strict";Ve();wa();o(eit,"buildLayerGraph");o(FIt,"createRootNode")});function nit(e,t){for(var r=0,n=1;n0;)f%2&&(d+=l[f+1]),f=f-1>>1,l[f]+=h.weight;u+=h.weight*d})),u}var iit=R(()=>{"use strict";Ve();o(nit,"crossCount");o(zIt,"twoLayerCrossCount")});function ait(e){var t={},r=Yr(e.nodes(),function(l){return!e.children(l).length}),n=Is(Xt(r,function(l){return e.node(l).rank})),i=Xt(Ho(n+1),function(){return[]});function a(l){if(!jt(t,l)){t[l]=!0;var u=e.node(l);i[u.rank].push(l),Et(e.successors(l),a)}}o(a,"dfs");var s=Rc(r,function(l){return e.node(l).rank});return Et(s,a),i}var sit=R(()=>{"use strict";Ve();o(ait,"initOrder")});function oit(e,t){return Xt(t,function(r){var n=e.inEdges(r);if(n.length){var i=qr(n,function(a,s){var l=e.edge(s),u=e.node(s.v);return{sum:a.sum+l.weight*u.order,weight:a.weight+l.weight}},{sum:0,weight:0});return{v:r,barycenter:i.sum/i.weight,weight:i.weight}}else return{v:r}})}var lit=R(()=>{"use strict";Ve();o(oit,"barycenter")});function cit(e,t){var r={};Et(e,function(i,a){var s=r[i.v]={indegree:0,in:[],out:[],vs:[i.v],i:a};fr(i.barycenter)||(s.barycenter=i.barycenter,s.weight=i.weight)}),Et(t.edges(),function(i){var a=r[i.v],s=r[i.w];!fr(a)&&!fr(s)&&(s.indegree++,a.out.push(r[i.w]))});var n=Yr(r,function(i){return!i.indegree});return $It(n)}function $It(e){var t=[];function r(a){return function(s){s.merged||(fr(s.barycenter)||fr(a.barycenter)||s.barycenter>=a.barycenter)&&GIt(a,s)}}o(r,"handleIn");function n(a){return function(s){s.in.push(a),--s.indegree===0&&e.push(s)}}for(o(n,"handleOut");e.length;){var i=e.pop();t.push(i),Et(i.in.reverse(),r(i)),Et(i.out,n(i))}return Xt(Yr(t,function(a){return!a.merged}),function(a){return Hd(a,["vs","i","barycenter","weight"])})}function GIt(e,t){var r=0,n=0;e.weight&&(r+=e.barycenter*e.weight,n+=e.weight),t.weight&&(r+=t.barycenter*t.weight,n+=t.weight),e.vs=t.vs.concat(e.vs),e.barycenter=r/n,e.weight=n,e.i=Math.min(t.i,e.i),t.merged=!0}var uit=R(()=>{"use strict";Ve();o(cit,"resolveConflicts");o($It,"doResolveConflicts");o(GIt,"mergeEntries")});function fit(e,t){var r=ynt(e,function(f){return jt(f,"barycenter")}),n=r.lhs,i=Rc(r.rhs,function(f){return-f.i}),a=[],s=0,l=0,u=0;n.sort(VIt(!!t)),u=hit(a,i,u),Et(n,function(f){u+=f.vs.length,a.push(f.vs),s+=f.barycenter*f.weight,l+=f.weight,u=hit(a,i,u)});var h={vs:Wr(a)};return l&&(h.barycenter=s/l,h.weight=l),h}function hit(e,t,r){for(var n;t.length&&(n=xa(t)).i<=r;)t.pop(),e.push(n.vs),r++;return r}function VIt(e){return function(t,r){return t.barycenterr.barycenter?1:e?r.i-t.i:t.i-r.i}}var dit=R(()=>{"use strict";Ve();Mc();o(fit,"sort");o(hit,"consumeUnsortable");o(VIt,"compareWithBias")});function vR(e,t,r,n){var i=e.children(t),a=e.node(t),s=a?a.borderLeft:void 0,l=a?a.borderRight:void 0,u={};s&&(i=Yr(i,function(g){return g!==s&&g!==l}));var h=oit(e,i);Et(h,function(g){if(e.children(g.v).length){var y=vR(e,g.v,r,n);u[g.v]=y,jt(y,"barycenter")&&HIt(g,y)}});var f=cit(h,r);UIt(f,u);var d=fit(f,n);if(s&&(d.vs=Wr([s,d.vs,l]),e.predecessors(s).length)){var p=e.node(e.predecessors(s)[0]),m=e.node(e.predecessors(l)[0]);jt(d,"barycenter")||(d.barycenter=0,d.weight=0),d.barycenter=(d.barycenter*d.weight+p.order+m.order)/(d.weight+2),d.weight+=2}return d}function UIt(e,t){Et(e,function(r){r.vs=Wr(r.vs.map(function(n){return t[n]?t[n].vs:n}))})}function HIt(e,t){fr(e.barycenter)?(e.barycenter=t.barycenter,e.weight=t.weight):(e.barycenter=(e.barycenter*e.weight+t.barycenter*t.weight)/(e.weight+t.weight),e.weight+=t.weight)}var pit=R(()=>{"use strict";Ve();lit();uit();dit();o(vR,"sortSubgraph");o(UIt,"expandSubgraphs");o(HIt,"mergeBarycenters")});function yit(e){var t=eR(e),r=mit(e,Ho(1,t+1),"inEdges"),n=mit(e,Ho(t-1,-1,-1),"outEdges"),i=ait(e);git(e,i);for(var a=Number.POSITIVE_INFINITY,s,l=0,u=0;u<4;++l,++u){WIt(l%2?r:n,l%4>=2),i=rf(e);var h=nit(e,i);h{"use strict";Ve();wa();Mc();tit();rit();iit();sit();pit();o(yit,"order");o(mit,"buildLayerGraphs");o(WIt,"sweepLayerGraphs");o(git,"assignOrder")});function xit(e){var t=qIt(e);Et(e.graph().dummyChains,function(r){for(var n=e.node(r),i=n.edgeObj,a=YIt(e,t,i.v,i.w),s=a.path,l=a.lca,u=0,h=s[u],f=!0;r!==i.w;){if(n=e.node(r),f){for(;(h=s[u])!==l&&e.node(h).maxRanks||l>t[u].lim));for(h=u,u=n;(u=e.parent(u))!==h;)a.push(u);return{path:i.concat(a.reverse()),lca:h}}function qIt(e){var t={},r=0;function n(i){var a=r;Et(e.children(i),n),t[i]={low:a,lim:r++}}return o(n,"dfs"),Et(e.children(),n),t}var bit=R(()=>{"use strict";Ve();o(xit,"parentDummyChains");o(YIt,"findPath");o(qIt,"postorder")});function XIt(e,t){var r={};function n(i,a){var s=0,l=0,u=i.length,h=xa(a);return Et(a,function(f,d){var p=KIt(e,f),m=p?e.node(p).order:u;(p||f===h)&&(Et(a.slice(l,d+1),function(g){Et(e.predecessors(g),function(y){var v=e.node(y),x=v.order;(xh)&&wit(r,p,f)})})}o(n,"scan");function i(a,s){var l=-1,u,h=0;return Et(s,function(f,d){if(e.node(f).dummy==="border"){var p=e.predecessors(f);p.length&&(u=e.node(p[0]).order,n(s,h,d,l,u),h=d,l=u)}n(s,h,s.length,u,a.length)}),s}return o(i,"visitLayer"),qr(t,i),r}function KIt(e,t){if(e.node(t).dummy)return rs(e.predecessors(t),function(r){return e.node(r).dummy})}function wit(e,t,r){if(t>r){var n=t;t=r,r=n}var i=e[t];i||(e[t]=i={}),i[r]=!0}function QIt(e,t,r){if(t>r){var n=t;t=r,r=n}return jt(e[t],r)}function ZIt(e,t,r,n){var i={},a={},s={};return Et(t,function(l){Et(l,function(u,h){i[u]=u,a[u]=u,s[u]=h})}),Et(t,function(l){var u=-1;Et(l,function(h){var f=n(h);if(f.length){f=Rc(f,function(y){return s[y]});for(var d=(f.length-1)/2,p=Math.floor(d),m=Math.ceil(d);p<=m;++p){var g=f[p];a[h]===h&&u{"use strict";Ve();wa();Mc();o(XIt,"findType1Conflicts");o(jIt,"findType2Conflicts");o(KIt,"findOtherInnerSegmentNode");o(wit,"addConflict");o(QIt,"hasConflict");o(ZIt,"verticalAlignment");o(JIt,"horizontalCompaction");o(tOt,"buildBlockGraph");o(eOt,"findSmallestWidthAlignment");o(rOt,"alignCoordinates");o(nOt,"balance");o(Tit,"positionX");o(iOt,"sep");o(aOt,"width")});function Eit(e){e=WT(e),sOt(e),FD(Tit(e),function(t,r){e.node(r).x=t})}function sOt(e){var t=rf(e),r=e.graph().ranksep,n=0;Et(t,function(i){var a=Is(Xt(i,function(s){return e.node(s).height}));Et(i,function(s){e.node(s).y=n+a/2}),n+=a+r})}var Cit=R(()=>{"use strict";Ve();Mc();kit();o(Eit,"position");o(sOt,"positionY")});function co(e,t){var r=t&&t.debugTiming?vnt:xnt;r("layout",function(){var n=r(" buildLayoutGraph",function(){return yOt(e)});r(" runLayout",function(){oOt(n,r)}),r(" updateInputGraph",function(){lOt(e,n)})})}function oOt(e,t){t(" makeSpaceForEdgeLabels",function(){vOt(e)}),t(" removeSelfEdges",function(){AOt(e)}),t(" acyclic",function(){hnt(e)}),t(" nestingGraph.run",function(){jnt(e)}),t(" rank",function(){gR(WT(e))}),t(" injectEdgeLabelProxies",function(){xOt(e)}),t(" removeEmptyRanks",function(){gnt(e)}),t(" nestingGraph.cleanup",function(){Qnt(e)}),t(" normalizeRanks",function(){mnt(e)}),t(" assignRankMinMax",function(){bOt(e)}),t(" removeEdgeLabelProxies",function(){wOt(e)}),t(" normalize.run",function(){_nt(e)}),t(" parentDummyChains",function(){xit(e)}),t(" addBorderSegments",function(){wnt(e)}),t(" order",function(){yit(e)}),t(" insertSelfEdges",function(){_Ot(e)}),t(" adjustCoordinateSystem",function(){Ent(e)}),t(" position",function(){Eit(e)}),t(" positionSelfEdges",function(){LOt(e)}),t(" removeBorderNodes",function(){SOt(e)}),t(" normalize.undo",function(){Lnt(e)}),t(" fixupEdgeLabelCoords",function(){EOt(e)}),t(" undoCoordinateSystem",function(){Cnt(e)}),t(" translateGraph",function(){TOt(e)}),t(" assignNodeIntersects",function(){kOt(e)}),t(" reversePoints",function(){COt(e)}),t(" acyclic.undo",function(){fnt(e)})}function lOt(e,t){Et(e.nodes(),function(r){var n=e.node(r),i=t.node(r);n&&(n.x=i.x,n.y=i.y,t.children(r).length&&(n.width=i.width,n.height=i.height))}),Et(e.edges(),function(r){var n=e.edge(r),i=t.edge(r);n.points=i.points,jt(i,"x")&&(n.x=i.x,n.y=i.y)}),e.graph().width=t.graph().width,e.graph().height=t.graph().height}function yOt(e){var t=new yr({multigraph:!0,compound:!0}),r=bR(e.graph());return t.setGraph(Gh({},uOt,xR(r,cOt),Hd(r,hOt))),Et(e.nodes(),function(n){var i=bR(e.node(n));t.setNode(n,Jh(xR(i,fOt),dOt)),t.setParent(n,e.parent(n))}),Et(e.edges(),function(n){var i=bR(e.edge(n));t.setEdge(n,Gh({},mOt,xR(i,pOt),Hd(i,gOt)))}),t}function vOt(e){var t=e.graph();t.ranksep/=2,Et(e.edges(),function(r){var n=e.edge(r);n.minlen*=2,n.labelpos.toLowerCase()!=="c"&&(t.rankdir==="TB"||t.rankdir==="BT"?n.width+=n.labeloffset:n.height+=n.labeloffset)})}function xOt(e){Et(e.edges(),function(t){var r=e.edge(t);if(r.width&&r.height){var n=e.node(t.v),i=e.node(t.w),a={rank:(i.rank-n.rank)/2+n.rank,e:t};Nc(e,"edge-proxy",a,"_ep")}})}function bOt(e){var t=0;Et(e.nodes(),function(r){var n=e.node(r);n.borderTop&&(n.minRank=e.node(n.borderTop).rank,n.maxRank=e.node(n.borderBottom).rank,t=Is(t,n.maxRank))}),e.graph().maxRank=t}function wOt(e){Et(e.nodes(),function(t){var r=e.node(t);r.dummy==="edge-proxy"&&(e.edge(r.e).labelRank=r.rank,e.removeNode(t))})}function TOt(e){var t=Number.POSITIVE_INFINITY,r=0,n=Number.POSITIVE_INFINITY,i=0,a=e.graph(),s=a.marginx||0,l=a.marginy||0;function u(h){var f=h.x,d=h.y,p=h.width,m=h.height;t=Math.min(t,f-p/2),r=Math.max(r,f+p/2),n=Math.min(n,d-m/2),i=Math.max(i,d+m/2)}o(u,"getExtremes"),Et(e.nodes(),function(h){u(e.node(h))}),Et(e.edges(),function(h){var f=e.edge(h);jt(f,"x")&&u(f)}),t-=s,n-=l,Et(e.nodes(),function(h){var f=e.node(h);f.x-=t,f.y-=n}),Et(e.edges(),function(h){var f=e.edge(h);Et(f.points,function(d){d.x-=t,d.y-=n}),jt(f,"x")&&(f.x-=t),jt(f,"y")&&(f.y-=n)}),a.width=r-t+s,a.height=i-n+l}function kOt(e){Et(e.edges(),function(t){var r=e.edge(t),n=e.node(t.v),i=e.node(t.w),a,s;r.points?(a=r.points[0],s=r.points[r.points.length-1]):(r.points=[],a=i,s=n),r.points.unshift(JD(n,a)),r.points.push(JD(i,s))})}function EOt(e){Et(e.edges(),function(t){var r=e.edge(t);if(jt(r,"x"))switch((r.labelpos==="l"||r.labelpos==="r")&&(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset;break}})}function COt(e){Et(e.edges(),function(t){var r=e.edge(t);r.reversed&&r.points.reverse()})}function SOt(e){Et(e.nodes(),function(t){if(e.children(t).length){var r=e.node(t),n=e.node(r.borderTop),i=e.node(r.borderBottom),a=e.node(xa(r.borderLeft)),s=e.node(xa(r.borderRight));r.width=Math.abs(s.x-a.x),r.height=Math.abs(i.y-n.y),r.x=a.x+r.width/2,r.y=n.y+r.height/2}}),Et(e.nodes(),function(t){e.node(t).dummy==="border"&&e.removeNode(t)})}function AOt(e){Et(e.edges(),function(t){if(t.v===t.w){var r=e.node(t.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e:t,label:e.edge(t)}),e.removeEdge(t)}})}function _Ot(e){var t=rf(e);Et(t,function(r){var n=0;Et(r,function(i,a){var s=e.node(i);s.order=a+n,Et(s.selfEdges,function(l){Nc(e,"selfedge",{width:l.label.width,height:l.label.height,rank:s.rank,order:a+ ++n,e:l.e,label:l.label},"_se")}),delete s.selfEdges})})}function LOt(e){Et(e.nodes(),function(t){var r=e.node(t);if(r.dummy==="selfedge"){var n=e.node(r.e.v),i=n.x+n.width/2,a=n.y,s=r.x-i,l=n.height/2;e.setEdge(r.e,r.label),e.removeNode(t),r.label.points=[{x:i+2*s/3,y:a-l},{x:i+5*s/6,y:a-l},{x:i+s,y:a},{x:i+5*s/6,y:a+l},{x:i+2*s/3,y:a+l}],r.label.x=r.x,r.label.y=r.y}})}function xR(e,t){return Vd(Hd(e,t),Number)}function bR(e){var t={};return Et(e,function(r,n){t[n.toLowerCase()]=r}),t}var cOt,uOt,hOt,fOt,dOt,pOt,mOt,gOt,Sit=R(()=>{"use strict";Ve();wa();Tnt();Ant();ZD();iR();yR();Znt();vit();bit();Cit();Mc();o(co,"layout");o(oOt,"runLayout");o(lOt,"updateInputGraph");cOt=["nodesep","edgesep","ranksep","marginx","marginy"],uOt={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},hOt=["acyclicer","ranker","rankdir","align"],fOt=["width","height"],dOt={width:0,height:0},pOt=["minlen","weight","width","height","labeloffset"],mOt={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},gOt=["labelpos"];o(yOt,"buildLayoutGraph");o(vOt,"makeSpaceForEdgeLabels");o(xOt,"injectEdgeLabelProxies");o(bOt,"assignRankMinMax");o(wOt,"removeEdgeLabelProxies");o(TOt,"translateGraph");o(kOt,"assignNodeIntersects");o(EOt,"fixupEdgeLabelCoords");o(COt,"reversePointsForReversedEdges");o(SOt,"removeBorderNodes");o(AOt,"removeSelfEdges");o(_Ot,"insertSelfEdges");o(LOt,"positionSelfEdges");o(xR,"selectNumberAttrs");o(bR,"canonicalize")});var Xd=R(()=>{"use strict";ZD();Sit();iR();yR()});function Yn(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:DOt(e),edges:ROt(e)};return fr(e.graph())||(t.value=rn(e.graph())),t}function DOt(e){return Xt(e.nodes(),function(t){var r=e.node(t),n=e.parent(t),i={v:t};return fr(r)||(i.value=r),fr(n)||(i.parent=n),i})}function ROt(e){return Xt(e.edges(),function(t){var r=e.edge(t),n={v:t.v,w:t.w};return fr(t.name)||(n.name=t.name),fr(r)||(n.value=r),n})}var s2=R(()=>{"use strict";Ve();UT();o(Yn,"write");o(DOt,"writeNodes");o(ROt,"writeEdges")});var vr,jd,_it,Lit,KT,NOt,Dit,Rit,MOt,Zm,Ait,Nit,Mit,Iit,Oit,Pit=R(()=>{"use strict";ce();wa();s2();vr=new Map,jd=new Map,_it=new Map,Lit=o(()=>{jd.clear(),_it.clear(),vr.clear()},"clear"),KT=o((e,t)=>{let r=jd.get(t)||[];return V.trace("In isDescendant",t," ",e," = ",r.includes(e)),r.includes(e)},"isDescendant"),NOt=o((e,t)=>{let r=jd.get(t)||[];return V.info("Descendants of ",t," is ",r),V.info("Edge is ",e),e.v===t||e.w===t?!1:r?r.includes(e.v)||KT(e.v,t)||KT(e.w,t)||r.includes(e.w):(V.debug("Tilt, ",t,",not in descendants"),!1)},"edgeInCluster"),Dit=o((e,t,r,n)=>{V.warn("Copying children of ",e,"root",n,"data",t.node(e),n);let i=t.children(e)||[];e!==n&&i.push(e),V.warn("Copying (nodes) clusterId",e,"nodes",i),i.forEach(a=>{if(t.children(a).length>0)Dit(a,t,r,n);else{let s=t.node(a);V.info("cp ",a," to ",n," with parent ",e),r.setNode(a,s),n!==t.parent(a)&&(V.warn("Setting parent",a,t.parent(a)),r.setParent(a,t.parent(a))),e!==n&&a!==e?(V.debug("Setting parent",a,e),r.setParent(a,e)):(V.info("In copy ",e,"root",n,"data",t.node(e),n),V.debug("Not Setting parent for node=",a,"cluster!==rootId",e!==n,"node!==clusterId",a!==e));let l=t.edges(a);V.debug("Copying Edges",l),l.forEach(u=>{V.info("Edge",u);let h=t.edge(u.v,u.w,u.name);V.info("Edge data",h,n);try{NOt(u,n)?(V.info("Copying as ",u.v,u.w,h,u.name),r.setEdge(u.v,u.w,h,u.name),V.info("newGraph edges ",r.edges(),r.edge(r.edges()[0]))):V.info("Skipping copy of edge ",u.v,"-->",u.w," rootId: ",n," clusterId:",e)}catch(f){V.error(f)}})}V.debug("Removing node",a),t.removeNode(a)})},"copy"),Rit=o((e,t)=>{let r=t.children(e),n=[...r];for(let i of r)_it.set(i,e),n=[...n,...Rit(i,t)];return n},"extractDescendants"),MOt=o((e,t,r)=>{let n=e.edges().filter(u=>u.v===t||u.w===t),i=e.edges().filter(u=>u.v===r||u.w===r),a=n.map(u=>({v:u.v===t?r:u.v,w:u.w===t?t:u.w})),s=i.map(u=>({v:u.v,w:u.w}));return a.filter(u=>s.some(h=>u.v===h.v&&u.w===h.w))},"findCommonEdges"),Zm=o((e,t,r)=>{let n=t.children(e);if(V.trace("Searching children of id ",e,n),n.length<1)return e;let i;for(let a of n){let s=Zm(a,t,r),l=MOt(t,r,s);if(s)if(l.length>0)i=s;else return s}return i},"findNonClusterChild"),Ait=o(e=>!vr.has(e)||!vr.get(e).externalConnections?e:vr.has(e)?vr.get(e).id:e,"getAnchorId"),Nit=o((e,t)=>{if(!e||t>10){V.debug("Opting out, no graph ");return}else V.debug("Opting in, graph ");e.nodes().forEach(function(r){e.children(r).length>0&&(V.warn("Cluster identified",r," Replacement id in edges: ",Zm(r,e,r)),jd.set(r,Rit(r,e)),vr.set(r,{id:Zm(r,e,r),clusterData:e.node(r)}))}),e.nodes().forEach(function(r){let n=e.children(r),i=e.edges();n.length>0?(V.debug("Cluster identified",r,jd),i.forEach(a=>{let s=KT(a.v,r),l=KT(a.w,r);s^l&&(V.warn("Edge: ",a," leaves cluster ",r),V.warn("Descendants of XXX ",r,": ",jd.get(r)),vr.get(r).externalConnections=!0)})):V.debug("Not a cluster ",r,jd)});for(let r of vr.keys()){let n=vr.get(r).id,i=e.parent(n);i!==r&&vr.has(i)&&!vr.get(i).externalConnections&&(vr.get(r).id=i)}e.edges().forEach(function(r){let n=e.edge(r);V.warn("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(r)),V.warn("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(e.edge(r)));let i=r.v,a=r.w;if(V.warn("Fix XXX",vr,"ids:",r.v,r.w,"Translating: ",vr.get(r.v)," --- ",vr.get(r.w)),vr.get(r.v)||vr.get(r.w)){if(V.warn("Fixing and trying - removing XXX",r.v,r.w,r.name),i=Ait(r.v),a=Ait(r.w),e.removeEdge(r.v,r.w,r.name),i!==r.v){let s=e.parent(i);vr.get(s).externalConnections=!0,n.fromCluster=r.v}if(a!==r.w){let s=e.parent(a);vr.get(s).externalConnections=!0,n.toCluster=r.w}V.warn("Fix Replacing with XXX",i,a,r.name),e.setEdge(i,a,n,r.name)}}),V.warn("Adjusted Graph",Yn(e)),Mit(e,0),V.trace(vr)},"adjustClustersAndEdges"),Mit=o((e,t)=>{if(V.warn("extractor - ",t,Yn(e),e.children("D")),t>10){V.error("Bailing out");return}let r=e.nodes(),n=!1;for(let i of r){let a=e.children(i);n=n||a.length>0}if(!n){V.debug("Done, no node has children",e.nodes());return}V.debug("Nodes = ",r,t);for(let i of r)if(V.debug("Extracting node",i,vr,vr.has(i)&&!vr.get(i).externalConnections,!e.parent(i),e.node(i),e.children("D")," Depth ",t),!vr.has(i))V.debug("Not a cluster",i,t);else if(!vr.get(i).externalConnections&&e.children(i)&&e.children(i).length>0){V.warn("Cluster without external connections, without a parent and with children",i,t);let s=e.graph().rankdir==="TB"?"LR":"TB";vr.get(i)?.clusterData?.dir&&(s=vr.get(i).clusterData.dir,V.warn("Fixing dir",vr.get(i).clusterData.dir,s));let l=new yr({multigraph:!0,compound:!0}).setGraph({rankdir:s,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});V.warn("Old graph before copy",Yn(e)),Dit(i,e,l,i),e.setNode(i,{clusterNode:!0,id:i,clusterData:vr.get(i).clusterData,label:vr.get(i).label,graph:l}),V.warn("New graph after copy node: (",i,")",Yn(l)),V.debug("Old graph after copy",Yn(e))}else V.warn("Cluster ** ",i," **not meeting the criteria !externalConnections:",!vr.get(i).externalConnections," no parent: ",!e.parent(i)," children ",e.children(i)&&e.children(i).length>0,e.children("D"),t),V.debug(vr);r=e.nodes(),V.warn("New list of nodes",r);for(let i of r){let a=e.node(i);V.warn(" Now next level",i,a),a?.clusterNode&&Mit(a.graph,t+1)}},"extractor"),Iit=o((e,t)=>{if(t.length===0)return[];let r=Object.assign([],t);return t.forEach(n=>{let i=e.children(n),a=Iit(e,i);r=[...r,...a]}),r},"sorter"),Oit=o(e=>Iit(e,e.children()),"sortNodesByHierarchy")});var Fit={};xr(Fit,{render:()=>IOt});var Bit,IOt,zit=R(()=>{"use strict";Xd();s2();wa();XL();Be();Pit();sD();WL();qL();ce();Nd();Ue();Bit=o(async(e,t,r,n,i,a)=>{V.warn("Graph in recursive render:XAX",Yn(t),i);let s=t.graph().rankdir;V.trace("Dir in recursive render - dir:",s);let l=e.insert("g").attr("class","root");t.nodes()?V.info("Recursive render XXX",t.nodes()):V.info("No nodes found for",t),t.edges().length>0&&V.info("Recursive edges",t.edge(t.edges()[0]));let u=l.insert("g").attr("class","clusters"),h=l.insert("g").attr("class","edgePaths"),f=l.insert("g").attr("class","edgeLabels"),d=l.insert("g").attr("class","nodes");await Promise.all(t.nodes().map(async function(y){let v=t.node(y);if(i!==void 0){let x=JSON.parse(JSON.stringify(i.clusterData));V.trace(`Setting data for parent cluster XXX + Node.id = `,y,` + data=`,x.height,` +Parent cluster`,i.height),t.setNode(i.id,x),t.parent(y)||(V.trace("Setting parent",y,i.id),t.setParent(y,i.id,x))}if(V.info("(Insert) Node XXX"+y+": "+JSON.stringify(t.node(y))),v?.clusterNode){V.info("Cluster identified XBX",y,v.width,t.node(y));let{ranksep:x,nodesep:b}=t.graph();v.graph.setGraph({...v.graph.graph(),ranksep:x+25,nodesep:b});let w=await Bit(d,v.graph,r,n,t.node(y),a),S=w.elem;Qt(v,S),v.diff=w.diff||0,V.info("New compound node after recursive render XAX",y,"width",v.width,"height",v.height),eJ(S,v)}else t.children(y).length>0?(V.trace("Cluster - the non recursive path XBX",y,v.id,v,v.width,"Graph:",t),V.trace(Zm(v.id,t)),vr.set(v.id,{id:Zm(v.id,t),node:v})):(V.trace("Node - the non recursive path XAX",y,d,t.node(y),s),await qw(d,t.node(y),{config:a,dir:s}))})),await o(async()=>{let y=t.edges().map(async function(v){let x=t.edge(v.v,v.w,v.name);V.info("Edge "+v.v+" -> "+v.w+": "+JSON.stringify(v)),V.info("Edge "+v.v+" -> "+v.w+": ",v," ",JSON.stringify(t.edge(v))),V.info("Fix",vr,"ids:",v.v,v.w,"Translating: ",vr.get(v.v),vr.get(v.w)),await Tw(f,x)});await Promise.all(y)},"processEdges")(),V.info("Graph before layout:",JSON.stringify(Yn(t))),V.info("############################################# XXX"),V.info("### Layout ### XXX"),V.info("############################################# XXX"),co(t),V.info("Graph after layout:",JSON.stringify(Yn(t)));let m=0,{subGraphTitleTotalMargin:g}=io(a);return await Promise.all(Oit(t).map(async function(y){let v=t.node(y);if(V.info("Position XBX => "+y+": ("+v.x,","+v.y,") width: ",v.width," height: ",v.height),v?.clusterNode)v.y+=g,V.info("A tainted cluster node XBX1",y,v.id,v.width,v.height,v.x,v.y,t.parent(y)),vr.get(v.id).node=v,aD(v);else if(t.children(y).length>0){V.info("A pure cluster node XBX1",y,v.id,v.x,v.y,v.width,v.height,t.parent(y)),v.height+=g,t.node(v.parentId);let x=v?.padding/2||0,b=v?.labelBBox?.height||0,w=b-x||0;V.debug("OffsetY",w,"labelHeight",b,"halfPadding",x),await gw(u,v),vr.get(v.id).node=v}else{let x=t.node(v.parentId);v.y+=g/2,V.info("A regular node XBX1 - using the padding",v.id,"parent",v.parentId,v.width,v.height,v.x,v.y,"offsetY",v.offsetY,"parent",x,x?.offsetY,v),aD(v)}})),t.edges().forEach(function(y){let v=t.edge(y);V.info("Edge "+y.v+" -> "+y.w+": "+JSON.stringify(v),v),v.points.forEach(S=>S.y+=g/2);let x=t.node(y.v);var b=t.node(y.w);let w=Ew(h,v,vr,r,x,b,n);kw(v,w)}),t.nodes().forEach(function(y){let v=t.node(y);V.info(y,v.type,v.diff),v.isGroup&&(m=v.diff)}),V.warn("Returning from recursive render XAX",l,m),{elem:l,diff:m}},"recursiveRender"),IOt=o(async(e,t)=>{let r=new yr({multigraph:!0,compound:!0}).setGraph({rankdir:e.direction,nodesep:e.config?.nodeSpacing||e.config?.flowchart?.nodeSpacing||e.nodeSpacing,ranksep:e.config?.rankSpacing||e.config?.flowchart?.rankSpacing||e.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),n=t.select("g");Cw(n,e.markers,e.type,e.diagramId),rJ(),_Q(),TQ(),Lit(),e.nodes.forEach(a=>{r.setNode(a.id,{...a}),a.parentId&&r.setParent(a.id,a.parentId)}),V.debug("Edges:",e.edges),e.edges.forEach(a=>{if(a.start===a.end){let s=a.start,l=s+"---"+s+"---1",u=s+"---"+s+"---2",h=r.node(s);r.setNode(l,{domId:l,id:l,parentId:h.parentId,labelStyle:"",label:"",padding:0,shape:"labelRect",style:"",width:10,height:10}),r.setParent(l,h.parentId),r.setNode(u,{domId:u,id:u,parentId:h.parentId,labelStyle:"",padding:0,shape:"labelRect",label:"",style:"",width:10,height:10}),r.setParent(u,h.parentId);let f=structuredClone(a),d=structuredClone(a),p=structuredClone(a);f.label="",f.arrowTypeEnd="none",f.id=s+"-cyclic-special-1",d.arrowTypeEnd="none",d.id=s+"-cyclic-special-mid",p.label="",h.isGroup&&(f.fromCluster=s,p.toCluster=s),p.id=s+"-cyclic-special-2",r.setEdge(s,l,f,s+"-cyclic-special-0"),r.setEdge(l,u,d,s+"-cyclic-special-1"),r.setEdge(u,s,p,s+"-cyc{"use strict";iJ();ce();o2={},wR=o(e=>{for(let t of e)o2[t.name]=t},"registerLayoutLoaders"),OOt=o(()=>{wR([{name:"dagre",loader:o(async()=>await Promise.resolve().then(()=>(zit(),Fit)),"loader")}])},"registerDefaultLayoutLoaders");OOt();QT=o(async(e,t)=>{if(!(e.layoutAlgorithm in o2))throw new Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);let r=o2[e.layoutAlgorithm];return(await r.loader()).render(e,t,nJ,{algorithm:r.algorithm})},"render"),$it=o((e="",{fallback:t="dagre"}={})=>{if(e in o2)return e;if(t in o2)return V.warn(`Layout algorithm ${e} is not registered. Using ${t} as fallback.`),t;throw new Error(`Both layout algorithms ${e} and ${t} are not registered.`)},"getRegisteredLayoutAlgorithm")});var JT,POt,BOt,TR=R(()=>{"use strict";Jn();ce();JT=o((e,t,r,n)=>{e.attr("class",r);let{width:i,height:a,x:s,y:l}=POt(e,t);Pr(e,a,i,n);let u=BOt(s,l,i,a,t);e.attr("viewBox",u),V.debug(`viewBox configured: ${u} with padding: ${t}`)},"setupViewPortForSVG"),POt=o((e,t)=>{let r=e.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:r.width+t*2,height:r.height+t*2,x:r.x,y:r.y}},"calculateDimensionsWithPadding"),BOt=o((e,t,r,n,i)=>`${e-i} ${t-i} ${r} ${n}`,"createViewBox")});var FOt,zOt,Git,Vit=R(()=>{"use strict";ur();Ue();ce();pL();ZT();TR();_r();dL();FOt=o(function(e,t){return t.db.getClasses()},"getClasses"),zOt=o(async function(e,t,r,n){V.info("REF0:"),V.info("Drawing state diagram (v2)",t);let{securityLevel:i,flowchart:a,layout:s}=pt(),l;i==="sandbox"&&(l=Gt("#i"+t));let u=i==="sandbox"?l.nodes()[0].contentDocument:document;V.debug("Before getData: ");let h=n.db.getData();V.debug("Data: ",h);let f=rw(t,i),d=fL();h.type=n.type,h.layoutAlgorithm=$it(s),h.layoutAlgorithm==="dagre"&&s==="elk"&&V.warn("flowchart-elk was moved to an external package in Mermaid v11. Please refer [release notes](https://github.com/mermaid-js/mermaid/releases/tag/v11.0.0) for more details. This diagram will be rendered using `dagre` layout as a fallback."),h.direction=d,h.nodeSpacing=a?.nodeSpacing||50,h.rankSpacing=a?.rankSpacing||50,h.markers=["point","circle","cross"],h.diagramId=t,V.debug("REF1:",h),await QT(h,f);let p=h.config.flowchart?.diagramPadding??8;Oe.insertTitle(f,"flowchartTitleText",a?.titleTopMargin||0,n.db.getDiagramTitle()),JT(f,p,"flowchart",a?.useMaxWidth||!1);for(let m of h.nodes){let g=Gt(`#${t} [id="${m.id}"]`);if(!g||!m.link)continue;let y=u.createElementNS("http://www.w3.org/2000/svg","a");y.setAttributeNS("http://www.w3.org/2000/svg","class",m.cssClasses),y.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),i==="sandbox"?y.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):m.linkTarget&&y.setAttributeNS("http://www.w3.org/2000/svg","target",m.linkTarget);let v=g.insert(function(){return y},":first-child"),x=g.select(".label-container");x&&v.append(function(){return x.node()});let b=g.select(".label");b&&v.append(function(){return b.node()})}},"draw"),Git={getClasses:FOt,draw:zOt}});var kR,Uit,Hit=R(()=>{"use strict";kR=function(){var e=o(function(wi,Ae,Ie,we){for(Ie=Ie||{},we=wi.length;we--;Ie[wi[we]]=Ae);return Ie},"o"),t=[1,4],r=[1,3],n=[1,5],i=[1,8,9,10,11,27,34,36,38,44,60,83,84,85,86,87,88,101,104,105,108,110,113,114,115,120,121,122,123],a=[2,2],s=[1,13],l=[1,14],u=[1,15],h=[1,16],f=[1,23],d=[1,25],p=[1,26],m=[1,27],g=[1,49],y=[1,48],v=[1,29],x=[1,30],b=[1,31],w=[1,32],S=[1,33],T=[1,44],E=[1,46],_=[1,42],A=[1,47],L=[1,43],M=[1,50],N=[1,45],k=[1,51],I=[1,52],C=[1,34],O=[1,35],D=[1,36],P=[1,37],F=[1,57],B=[1,8,9,10,11,27,32,34,36,38,44,60,83,84,85,86,87,88,101,104,105,108,110,113,114,115,120,121,122,123],G=[1,61],z=[1,60],W=[1,62],Q=[8,9,11,75,77],j=[1,77],at=[1,90],X=[1,95],J=[1,94],Z=[1,91],H=[1,87],q=[1,93],K=[1,89],ot=[1,96],ct=[1,92],ut=[1,97],et=[1,88],Mt=[8,9,10,11,40,75,77],it=[8,9,10,11,40,46,75,77],wt=[8,9,10,11,29,40,44,46,48,50,52,54,56,58,60,63,65,67,68,70,75,77,88,101,104,105,108,110,113,114,115],Ot=[8,9,11,44,60,75,77,88,101,104,105,108,110,113,114,115],St=[44,60,88,101,104,105,108,110,113,114,115],Vt=[1,123],Pt=[1,122],_t=[1,130],dt=[1,144],Y=[1,145],ft=[1,146],mt=[1,147],rt=[1,132],ht=[1,134],nt=[1,138],st=[1,139],Tt=[1,140],kt=[1,141],Ct=[1,142],At=[1,143],$t=[1,148],Nt=[1,149],yt=[1,128],Ut=[1,129],zt=[1,136],ae=[1,131],ke=[1,135],Ee=[1,133],le=[8,9,10,11,27,32,34,36,38,44,60,83,84,85,86,87,88,101,104,105,108,110,113,114,115,120,121,122,123],Zt=[1,151],me=[1,153],Ht=[8,9,11],ne=[8,9,10,11,14,44,60,88,104,105,108,110,113,114,115],xe=[1,173],Se=[1,169],Ye=[1,170],fe=[1,174],ee=[1,171],pe=[1,172],Me=[77,115,118],oe=[8,9,10,11,12,14,27,29,32,44,60,75,83,84,85,86,87,88,89,104,108,110,113,114,115],qe=[10,105],Cr=[31,49,51,53,55,57,62,64,66,67,69,71,115,116,117],En=[1,242],or=[1,240],ln=[1,244],Ir=[1,238],ii=[1,239],mn=[1,241],Pn=[1,243],Sr=[1,245],pi=[1,263],ps=[8,9,11,105],Bn=[8,9,10,11,60,83,104,105,108,109,110,111],Eo={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,shapeData:39,SHAPE_DATA:40,link:41,node:42,styledVertex:43,AMP:44,vertex:45,STYLE_SEPARATOR:46,idString:47,DOUBLECIRCLESTART:48,DOUBLECIRCLEEND:49,PS:50,PE:51,"(-":52,"-)":53,STADIUMSTART:54,STADIUMEND:55,SUBROUTINESTART:56,SUBROUTINEEND:57,VERTEX_WITH_PROPS_START:58,"NODE_STRING[field]":59,COLON:60,"NODE_STRING[value]":61,PIPE:62,CYLINDERSTART:63,CYLINDEREND:64,DIAMOND_START:65,DIAMOND_STOP:66,TAGEND:67,TRAPSTART:68,TRAPEND:69,INVTRAPSTART:70,INVTRAPEND:71,linkStatement:72,arrowText:73,TESTSTR:74,START_LINK:75,edgeText:76,LINK:77,edgeTextToken:78,STR:79,MD_STR:80,textToken:81,keywords:82,STYLE:83,LINKSTYLE:84,CLASSDEF:85,CLASS:86,CLICK:87,DOWN:88,UP:89,textNoTagsToken:90,stylesOpt:91,"idString[vertex]":92,"idString[class]":93,CALLBACKNAME:94,CALLBACKARGS:95,HREF:96,LINK_TARGET:97,"STR[link]":98,"STR[tooltip]":99,alphaNum:100,DEFAULT:101,numList:102,INTERPOLATE:103,NUM:104,COMMA:105,style:106,styleComponent:107,NODE_STRING:108,UNIT:109,BRKT:110,PCT:111,idStringToken:112,MINUS:113,MULT:114,UNICODE_TEXT:115,TEXT:116,TAGSTART:117,EDGE_TEXT:118,alphaNumToken:119,direction_tb:120,direction_bt:121,direction_rl:122,direction_lr:123,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",40:"SHAPE_DATA",44:"AMP",46:"STYLE_SEPARATOR",48:"DOUBLECIRCLESTART",49:"DOUBLECIRCLEEND",50:"PS",51:"PE",52:"(-",53:"-)",54:"STADIUMSTART",55:"STADIUMEND",56:"SUBROUTINESTART",57:"SUBROUTINEEND",58:"VERTEX_WITH_PROPS_START",59:"NODE_STRING[field]",60:"COLON",61:"NODE_STRING[value]",62:"PIPE",63:"CYLINDERSTART",64:"CYLINDEREND",65:"DIAMOND_START",66:"DIAMOND_STOP",67:"TAGEND",68:"TRAPSTART",69:"TRAPEND",70:"INVTRAPSTART",71:"INVTRAPEND",74:"TESTSTR",75:"START_LINK",77:"LINK",79:"STR",80:"MD_STR",83:"STYLE",84:"LINKSTYLE",85:"CLASSDEF",86:"CLASS",87:"CLICK",88:"DOWN",89:"UP",92:"idString[vertex]",93:"idString[class]",94:"CALLBACKNAME",95:"CALLBACKARGS",96:"HREF",97:"LINK_TARGET",98:"STR[link]",99:"STR[tooltip]",101:"DEFAULT",103:"INTERPOLATE",104:"NUM",105:"COMMA",108:"NODE_STRING",109:"UNIT",110:"BRKT",111:"PCT",113:"MINUS",114:"MULT",115:"UNICODE_TEXT",116:"TEXT",117:"TAGSTART",118:"EDGE_TEXT",120:"direction_tb",121:"direction_bt",122:"direction_rl",123:"direction_lr"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[39,2],[39,1],[20,4],[20,3],[20,4],[20,2],[20,2],[20,1],[42,1],[42,6],[42,5],[43,1],[43,3],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,8],[45,4],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,4],[45,4],[45,1],[41,2],[41,3],[41,3],[41,1],[41,3],[76,1],[76,2],[76,1],[76,1],[72,1],[73,3],[30,1],[30,2],[30,1],[30,1],[82,1],[82,1],[82,1],[82,1],[82,1],[82,1],[82,1],[82,1],[82,1],[82,1],[82,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[102,1],[102,3],[91,1],[91,3],[106,1],[106,2],[107,1],[107,1],[107,1],[107,1],[107,1],[107,1],[107,1],[107,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[81,1],[81,1],[81,1],[81,1],[90,1],[90,1],[90,1],[90,1],[90,1],[90,1],[90,1],[90,1],[90,1],[90,1],[90,1],[78,1],[78,1],[119,1],[119,1],[119,1],[119,1],[119,1],[119,1],[119,1],[119,1],[119,1],[119,1],[119,1],[47,1],[47,2],[100,1],[100,2],[33,1],[33,1],[33,1],[33,1]],performAction:o(function(Ae,Ie,we,Wt,Fe,gt,gn){var vt=gt.length-1;switch(Fe){case 2:this.$=[];break;case 3:(!Array.isArray(gt[vt])||gt[vt].length>0)&>[vt-1].push(gt[vt]),this.$=gt[vt-1];break;case 4:case 181:this.$=gt[vt];break;case 11:Wt.setDirection("TB"),this.$="TB";break;case 12:Wt.setDirection(gt[vt-1]),this.$=gt[vt-1];break;case 27:this.$=gt[vt-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=Wt.addSubGraph(gt[vt-6],gt[vt-1],gt[vt-4]);break;case 34:this.$=Wt.addSubGraph(gt[vt-3],gt[vt-1],gt[vt-3]);break;case 35:this.$=Wt.addSubGraph(void 0,gt[vt-1],void 0);break;case 37:this.$=gt[vt].trim(),Wt.setAccTitle(this.$);break;case 38:case 39:this.$=gt[vt].trim(),Wt.setAccDescription(this.$);break;case 43:this.$=gt[vt-1]+gt[vt];break;case 44:this.$=gt[vt];break;case 45:Wt.addVertex(gt[vt-1][0],void 0,void 0,void 0,void 0,void 0,void 0,gt[vt]),Wt.addLink(gt[vt-3].stmt,gt[vt-1],gt[vt-2]),this.$={stmt:gt[vt-1],nodes:gt[vt-1].concat(gt[vt-3].nodes)};break;case 46:Wt.addLink(gt[vt-2].stmt,gt[vt],gt[vt-1]),this.$={stmt:gt[vt],nodes:gt[vt].concat(gt[vt-2].nodes)};break;case 47:Wt.addLink(gt[vt-3].stmt,gt[vt-1],gt[vt-2]),this.$={stmt:gt[vt-1],nodes:gt[vt-1].concat(gt[vt-3].nodes)};break;case 48:this.$={stmt:gt[vt-1],nodes:gt[vt-1]};break;case 49:Wt.addVertex(gt[vt-1][0],void 0,void 0,void 0,void 0,void 0,void 0,gt[vt]),this.$={stmt:gt[vt-1],nodes:gt[vt-1],shapeData:gt[vt]};break;case 50:this.$={stmt:gt[vt],nodes:gt[vt]};break;case 51:this.$=[gt[vt]];break;case 52:Wt.addVertex(gt[vt-5][0],void 0,void 0,void 0,void 0,void 0,void 0,gt[vt-4]),this.$=gt[vt-5].concat(gt[vt]);break;case 53:this.$=gt[vt-4].concat(gt[vt]);break;case 54:this.$=gt[vt];break;case 55:this.$=gt[vt-2],Wt.setClass(gt[vt-2],gt[vt]);break;case 56:this.$=gt[vt-3],Wt.addVertex(gt[vt-3],gt[vt-1],"square");break;case 57:this.$=gt[vt-3],Wt.addVertex(gt[vt-3],gt[vt-1],"doublecircle");break;case 58:this.$=gt[vt-5],Wt.addVertex(gt[vt-5],gt[vt-2],"circle");break;case 59:this.$=gt[vt-3],Wt.addVertex(gt[vt-3],gt[vt-1],"ellipse");break;case 60:this.$=gt[vt-3],Wt.addVertex(gt[vt-3],gt[vt-1],"stadium");break;case 61:this.$=gt[vt-3],Wt.addVertex(gt[vt-3],gt[vt-1],"subroutine");break;case 62:this.$=gt[vt-7],Wt.addVertex(gt[vt-7],gt[vt-1],"rect",void 0,void 0,void 0,Object.fromEntries([[gt[vt-5],gt[vt-3]]]));break;case 63:this.$=gt[vt-3],Wt.addVertex(gt[vt-3],gt[vt-1],"cylinder");break;case 64:this.$=gt[vt-3],Wt.addVertex(gt[vt-3],gt[vt-1],"round");break;case 65:this.$=gt[vt-3],Wt.addVertex(gt[vt-3],gt[vt-1],"diamond");break;case 66:this.$=gt[vt-5],Wt.addVertex(gt[vt-5],gt[vt-2],"hexagon");break;case 67:this.$=gt[vt-3],Wt.addVertex(gt[vt-3],gt[vt-1],"odd");break;case 68:this.$=gt[vt-3],Wt.addVertex(gt[vt-3],gt[vt-1],"trapezoid");break;case 69:this.$=gt[vt-3],Wt.addVertex(gt[vt-3],gt[vt-1],"inv_trapezoid");break;case 70:this.$=gt[vt-3],Wt.addVertex(gt[vt-3],gt[vt-1],"lean_right");break;case 71:this.$=gt[vt-3],Wt.addVertex(gt[vt-3],gt[vt-1],"lean_left");break;case 72:this.$=gt[vt],Wt.addVertex(gt[vt]);break;case 73:gt[vt-1].text=gt[vt],this.$=gt[vt-1];break;case 74:case 75:gt[vt-2].text=gt[vt-1],this.$=gt[vt-2];break;case 76:this.$=gt[vt];break;case 77:var qa=Wt.destructLink(gt[vt],gt[vt-2]);this.$={type:qa.type,stroke:qa.stroke,length:qa.length,text:gt[vt-1]};break;case 78:this.$={text:gt[vt],type:"text"};break;case 79:this.$={text:gt[vt-1].text+""+gt[vt],type:gt[vt-1].type};break;case 80:this.$={text:gt[vt],type:"string"};break;case 81:this.$={text:gt[vt],type:"markdown"};break;case 82:var qa=Wt.destructLink(gt[vt]);this.$={type:qa.type,stroke:qa.stroke,length:qa.length};break;case 83:this.$=gt[vt-1];break;case 84:this.$={text:gt[vt],type:"text"};break;case 85:this.$={text:gt[vt-1].text+""+gt[vt],type:gt[vt-1].type};break;case 86:this.$={text:gt[vt],type:"string"};break;case 87:case 102:this.$={text:gt[vt],type:"markdown"};break;case 99:this.$={text:gt[vt],type:"text"};break;case 100:this.$={text:gt[vt-1].text+""+gt[vt],type:gt[vt-1].type};break;case 101:this.$={text:gt[vt],type:"text"};break;case 103:this.$=gt[vt-4],Wt.addClass(gt[vt-2],gt[vt]);break;case 104:this.$=gt[vt-4],Wt.setClass(gt[vt-2],gt[vt]);break;case 105:case 113:this.$=gt[vt-1],Wt.setClickEvent(gt[vt-1],gt[vt]);break;case 106:case 114:this.$=gt[vt-3],Wt.setClickEvent(gt[vt-3],gt[vt-2]),Wt.setTooltip(gt[vt-3],gt[vt]);break;case 107:this.$=gt[vt-2],Wt.setClickEvent(gt[vt-2],gt[vt-1],gt[vt]);break;case 108:this.$=gt[vt-4],Wt.setClickEvent(gt[vt-4],gt[vt-3],gt[vt-2]),Wt.setTooltip(gt[vt-4],gt[vt]);break;case 109:this.$=gt[vt-2],Wt.setLink(gt[vt-2],gt[vt]);break;case 110:this.$=gt[vt-4],Wt.setLink(gt[vt-4],gt[vt-2]),Wt.setTooltip(gt[vt-4],gt[vt]);break;case 111:this.$=gt[vt-4],Wt.setLink(gt[vt-4],gt[vt-2],gt[vt]);break;case 112:this.$=gt[vt-6],Wt.setLink(gt[vt-6],gt[vt-4],gt[vt]),Wt.setTooltip(gt[vt-6],gt[vt-2]);break;case 115:this.$=gt[vt-1],Wt.setLink(gt[vt-1],gt[vt]);break;case 116:this.$=gt[vt-3],Wt.setLink(gt[vt-3],gt[vt-2]),Wt.setTooltip(gt[vt-3],gt[vt]);break;case 117:this.$=gt[vt-3],Wt.setLink(gt[vt-3],gt[vt-2],gt[vt]);break;case 118:this.$=gt[vt-5],Wt.setLink(gt[vt-5],gt[vt-4],gt[vt]),Wt.setTooltip(gt[vt-5],gt[vt-2]);break;case 119:this.$=gt[vt-4],Wt.addVertex(gt[vt-2],void 0,void 0,gt[vt]);break;case 120:this.$=gt[vt-4],Wt.updateLink([gt[vt-2]],gt[vt]);break;case 121:this.$=gt[vt-4],Wt.updateLink(gt[vt-2],gt[vt]);break;case 122:this.$=gt[vt-8],Wt.updateLinkInterpolate([gt[vt-6]],gt[vt-2]),Wt.updateLink([gt[vt-6]],gt[vt]);break;case 123:this.$=gt[vt-8],Wt.updateLinkInterpolate(gt[vt-6],gt[vt-2]),Wt.updateLink(gt[vt-6],gt[vt]);break;case 124:this.$=gt[vt-6],Wt.updateLinkInterpolate([gt[vt-4]],gt[vt]);break;case 125:this.$=gt[vt-6],Wt.updateLinkInterpolate(gt[vt-4],gt[vt]);break;case 126:case 128:this.$=[gt[vt]];break;case 127:case 129:gt[vt-2].push(gt[vt]),this.$=gt[vt-2];break;case 131:this.$=gt[vt-1]+gt[vt];break;case 179:this.$=gt[vt];break;case 180:this.$=gt[vt-1]+""+gt[vt];break;case 182:this.$=gt[vt-1]+""+gt[vt];break;case 183:this.$={stmt:"dir",value:"TB"};break;case 184:this.$={stmt:"dir",value:"BT"};break;case 185:this.$={stmt:"dir",value:"RL"};break;case 186:this.$={stmt:"dir",value:"LR"};break}},"anonymous"),table:[{3:1,4:2,9:t,10:r,12:n},{1:[3]},e(i,a,{5:6}),{4:7,9:t,10:r,12:n},{4:8,9:t,10:r,12:n},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:s,9:l,10:u,11:h,20:17,22:18,23:19,24:20,25:21,26:22,27:f,33:24,34:d,36:p,38:m,42:28,43:38,44:g,45:39,47:40,60:y,83:v,84:x,85:b,86:w,87:S,88:T,101:E,104:_,105:A,108:L,110:M,112:41,113:N,114:k,115:I,120:C,121:O,122:D,123:P},e(i,[2,9]),e(i,[2,10]),e(i,[2,11]),{8:[1,54],9:[1,55],10:F,15:53,18:56},e(B,[2,3]),e(B,[2,4]),e(B,[2,5]),e(B,[2,6]),e(B,[2,7]),e(B,[2,8]),{8:G,9:z,11:W,21:58,41:59,72:63,75:[1,64],77:[1,65]},{8:G,9:z,11:W,21:66},{8:G,9:z,11:W,21:67},{8:G,9:z,11:W,21:68},{8:G,9:z,11:W,21:69},{8:G,9:z,11:W,21:70},{8:G,9:z,10:[1,71],11:W,21:72},e(B,[2,36]),{35:[1,73]},{37:[1,74]},e(B,[2,39]),e(Q,[2,50],{18:75,39:76,10:F,40:j}),{10:[1,78]},{10:[1,79]},{10:[1,80]},{10:[1,81]},{14:at,44:X,60:J,79:[1,85],88:Z,94:[1,82],96:[1,83],100:84,104:H,105:q,108:K,110:ot,113:ct,114:ut,115:et,119:86},e(B,[2,183]),e(B,[2,184]),e(B,[2,185]),e(B,[2,186]),e(Mt,[2,51]),e(Mt,[2,54],{46:[1,98]}),e(it,[2,72],{112:111,29:[1,99],44:g,48:[1,100],50:[1,101],52:[1,102],54:[1,103],56:[1,104],58:[1,105],60:y,63:[1,106],65:[1,107],67:[1,108],68:[1,109],70:[1,110],88:T,101:E,104:_,105:A,108:L,110:M,113:N,114:k,115:I}),e(wt,[2,179]),e(wt,[2,140]),e(wt,[2,141]),e(wt,[2,142]),e(wt,[2,143]),e(wt,[2,144]),e(wt,[2,145]),e(wt,[2,146]),e(wt,[2,147]),e(wt,[2,148]),e(wt,[2,149]),e(wt,[2,150]),e(i,[2,12]),e(i,[2,18]),e(i,[2,19]),{9:[1,112]},e(Ot,[2,26],{18:113,10:F}),e(B,[2,27]),{42:114,43:38,44:g,45:39,47:40,60:y,88:T,101:E,104:_,105:A,108:L,110:M,112:41,113:N,114:k,115:I},e(B,[2,40]),e(B,[2,41]),e(B,[2,42]),e(St,[2,76],{73:115,62:[1,117],74:[1,116]}),{76:118,78:119,79:[1,120],80:[1,121],115:Vt,118:Pt},e([44,60,62,74,88,101,104,105,108,110,113,114,115],[2,82]),e(B,[2,28]),e(B,[2,29]),e(B,[2,30]),e(B,[2,31]),e(B,[2,32]),{10:_t,12:dt,14:Y,27:ft,28:124,32:mt,44:rt,60:ht,75:nt,79:[1,126],80:[1,127],82:137,83:st,84:Tt,85:kt,86:Ct,87:At,88:$t,89:Nt,90:125,104:yt,108:Ut,110:zt,113:ae,114:ke,115:Ee},e(le,a,{5:150}),e(B,[2,37]),e(B,[2,38]),e(Q,[2,48],{44:Zt}),e(Q,[2,49],{18:152,10:F,40:me}),e(Mt,[2,44]),{44:g,47:154,60:y,88:T,101:E,104:_,105:A,108:L,110:M,112:41,113:N,114:k,115:I},{101:[1,155],102:156,104:[1,157]},{44:g,47:158,60:y,88:T,101:E,104:_,105:A,108:L,110:M,112:41,113:N,114:k,115:I},{44:g,47:159,60:y,88:T,101:E,104:_,105:A,108:L,110:M,112:41,113:N,114:k,115:I},e(Ht,[2,105],{10:[1,160],95:[1,161]}),{79:[1,162]},e(Ht,[2,113],{119:164,10:[1,163],14:at,44:X,60:J,88:Z,104:H,105:q,108:K,110:ot,113:ct,114:ut,115:et}),e(Ht,[2,115],{10:[1,165]}),e(ne,[2,181]),e(ne,[2,168]),e(ne,[2,169]),e(ne,[2,170]),e(ne,[2,171]),e(ne,[2,172]),e(ne,[2,173]),e(ne,[2,174]),e(ne,[2,175]),e(ne,[2,176]),e(ne,[2,177]),e(ne,[2,178]),{44:g,47:166,60:y,88:T,101:E,104:_,105:A,108:L,110:M,112:41,113:N,114:k,115:I},{30:167,67:xe,79:Se,80:Ye,81:168,115:fe,116:ee,117:pe},{30:175,67:xe,79:Se,80:Ye,81:168,115:fe,116:ee,117:pe},{30:177,50:[1,176],67:xe,79:Se,80:Ye,81:168,115:fe,116:ee,117:pe},{30:178,67:xe,79:Se,80:Ye,81:168,115:fe,116:ee,117:pe},{30:179,67:xe,79:Se,80:Ye,81:168,115:fe,116:ee,117:pe},{30:180,67:xe,79:Se,80:Ye,81:168,115:fe,116:ee,117:pe},{108:[1,181]},{30:182,67:xe,79:Se,80:Ye,81:168,115:fe,116:ee,117:pe},{30:183,65:[1,184],67:xe,79:Se,80:Ye,81:168,115:fe,116:ee,117:pe},{30:185,67:xe,79:Se,80:Ye,81:168,115:fe,116:ee,117:pe},{30:186,67:xe,79:Se,80:Ye,81:168,115:fe,116:ee,117:pe},{30:187,67:xe,79:Se,80:Ye,81:168,115:fe,116:ee,117:pe},e(wt,[2,180]),e(i,[2,20]),e(Ot,[2,25]),e(Q,[2,46],{39:188,18:189,10:F,40:j}),e(St,[2,73],{10:[1,190]}),{10:[1,191]},{30:192,67:xe,79:Se,80:Ye,81:168,115:fe,116:ee,117:pe},{77:[1,193],78:194,115:Vt,118:Pt},e(Me,[2,78]),e(Me,[2,80]),e(Me,[2,81]),e(Me,[2,166]),e(Me,[2,167]),{8:G,9:z,10:_t,11:W,12:dt,14:Y,21:196,27:ft,29:[1,195],32:mt,44:rt,60:ht,75:nt,82:137,83:st,84:Tt,85:kt,86:Ct,87:At,88:$t,89:Nt,90:197,104:yt,108:Ut,110:zt,113:ae,114:ke,115:Ee},e(oe,[2,99]),e(oe,[2,101]),e(oe,[2,102]),e(oe,[2,155]),e(oe,[2,156]),e(oe,[2,157]),e(oe,[2,158]),e(oe,[2,159]),e(oe,[2,160]),e(oe,[2,161]),e(oe,[2,162]),e(oe,[2,163]),e(oe,[2,164]),e(oe,[2,165]),e(oe,[2,88]),e(oe,[2,89]),e(oe,[2,90]),e(oe,[2,91]),e(oe,[2,92]),e(oe,[2,93]),e(oe,[2,94]),e(oe,[2,95]),e(oe,[2,96]),e(oe,[2,97]),e(oe,[2,98]),{6:11,7:12,8:s,9:l,10:u,11:h,20:17,22:18,23:19,24:20,25:21,26:22,27:f,32:[1,198],33:24,34:d,36:p,38:m,42:28,43:38,44:g,45:39,47:40,60:y,83:v,84:x,85:b,86:w,87:S,88:T,101:E,104:_,105:A,108:L,110:M,112:41,113:N,114:k,115:I,120:C,121:O,122:D,123:P},{10:F,18:199},{44:[1,200]},e(Mt,[2,43]),{10:[1,201],44:g,60:y,88:T,101:E,104:_,105:A,108:L,110:M,112:111,113:N,114:k,115:I},{10:[1,202]},{10:[1,203],105:[1,204]},e(qe,[2,126]),{10:[1,205],44:g,60:y,88:T,101:E,104:_,105:A,108:L,110:M,112:111,113:N,114:k,115:I},{10:[1,206],44:g,60:y,88:T,101:E,104:_,105:A,108:L,110:M,112:111,113:N,114:k,115:I},{79:[1,207]},e(Ht,[2,107],{10:[1,208]}),e(Ht,[2,109],{10:[1,209]}),{79:[1,210]},e(ne,[2,182]),{79:[1,211],97:[1,212]},e(Mt,[2,55],{112:111,44:g,60:y,88:T,101:E,104:_,105:A,108:L,110:M,113:N,114:k,115:I}),{31:[1,213],67:xe,81:214,115:fe,116:ee,117:pe},e(Cr,[2,84]),e(Cr,[2,86]),e(Cr,[2,87]),e(Cr,[2,151]),e(Cr,[2,152]),e(Cr,[2,153]),e(Cr,[2,154]),{49:[1,215],67:xe,81:214,115:fe,116:ee,117:pe},{30:216,67:xe,79:Se,80:Ye,81:168,115:fe,116:ee,117:pe},{51:[1,217],67:xe,81:214,115:fe,116:ee,117:pe},{53:[1,218],67:xe,81:214,115:fe,116:ee,117:pe},{55:[1,219],67:xe,81:214,115:fe,116:ee,117:pe},{57:[1,220],67:xe,81:214,115:fe,116:ee,117:pe},{60:[1,221]},{64:[1,222],67:xe,81:214,115:fe,116:ee,117:pe},{66:[1,223],67:xe,81:214,115:fe,116:ee,117:pe},{30:224,67:xe,79:Se,80:Ye,81:168,115:fe,116:ee,117:pe},{31:[1,225],67:xe,81:214,115:fe,116:ee,117:pe},{67:xe,69:[1,226],71:[1,227],81:214,115:fe,116:ee,117:pe},{67:xe,69:[1,229],71:[1,228],81:214,115:fe,116:ee,117:pe},e(Q,[2,45],{18:152,10:F,40:me}),e(Q,[2,47],{44:Zt}),e(St,[2,75]),e(St,[2,74]),{62:[1,230],67:xe,81:214,115:fe,116:ee,117:pe},e(St,[2,77]),e(Me,[2,79]),{30:231,67:xe,79:Se,80:Ye,81:168,115:fe,116:ee,117:pe},e(le,a,{5:232}),e(oe,[2,100]),e(B,[2,35]),{43:233,44:g,45:39,47:40,60:y,88:T,101:E,104:_,105:A,108:L,110:M,112:41,113:N,114:k,115:I},{10:F,18:234},{10:En,60:or,83:ln,91:235,104:Ir,106:236,107:237,108:ii,109:mn,110:Pn,111:Sr},{10:En,60:or,83:ln,91:246,103:[1,247],104:Ir,106:236,107:237,108:ii,109:mn,110:Pn,111:Sr},{10:En,60:or,83:ln,91:248,103:[1,249],104:Ir,106:236,107:237,108:ii,109:mn,110:Pn,111:Sr},{104:[1,250]},{10:En,60:or,83:ln,91:251,104:Ir,106:236,107:237,108:ii,109:mn,110:Pn,111:Sr},{44:g,47:252,60:y,88:T,101:E,104:_,105:A,108:L,110:M,112:41,113:N,114:k,115:I},e(Ht,[2,106]),{79:[1,253]},{79:[1,254],97:[1,255]},e(Ht,[2,114]),e(Ht,[2,116],{10:[1,256]}),e(Ht,[2,117]),e(it,[2,56]),e(Cr,[2,85]),e(it,[2,57]),{51:[1,257],67:xe,81:214,115:fe,116:ee,117:pe},e(it,[2,64]),e(it,[2,59]),e(it,[2,60]),e(it,[2,61]),{108:[1,258]},e(it,[2,63]),e(it,[2,65]),{66:[1,259],67:xe,81:214,115:fe,116:ee,117:pe},e(it,[2,67]),e(it,[2,68]),e(it,[2,70]),e(it,[2,69]),e(it,[2,71]),e([10,44,60,88,101,104,105,108,110,113,114,115],[2,83]),{31:[1,260],67:xe,81:214,115:fe,116:ee,117:pe},{6:11,7:12,8:s,9:l,10:u,11:h,20:17,22:18,23:19,24:20,25:21,26:22,27:f,32:[1,261],33:24,34:d,36:p,38:m,42:28,43:38,44:g,45:39,47:40,60:y,83:v,84:x,85:b,86:w,87:S,88:T,101:E,104:_,105:A,108:L,110:M,112:41,113:N,114:k,115:I,120:C,121:O,122:D,123:P},e(Mt,[2,53]),{43:262,44:g,45:39,47:40,60:y,88:T,101:E,104:_,105:A,108:L,110:M,112:41,113:N,114:k,115:I},e(Ht,[2,119],{105:pi}),e(ps,[2,128],{107:264,10:En,60:or,83:ln,104:Ir,108:ii,109:mn,110:Pn,111:Sr}),e(Bn,[2,130]),e(Bn,[2,132]),e(Bn,[2,133]),e(Bn,[2,134]),e(Bn,[2,135]),e(Bn,[2,136]),e(Bn,[2,137]),e(Bn,[2,138]),e(Bn,[2,139]),e(Ht,[2,120],{105:pi}),{10:[1,265]},e(Ht,[2,121],{105:pi}),{10:[1,266]},e(qe,[2,127]),e(Ht,[2,103],{105:pi}),e(Ht,[2,104],{112:111,44:g,60:y,88:T,101:E,104:_,105:A,108:L,110:M,113:N,114:k,115:I}),e(Ht,[2,108]),e(Ht,[2,110],{10:[1,267]}),e(Ht,[2,111]),{97:[1,268]},{51:[1,269]},{62:[1,270]},{66:[1,271]},{8:G,9:z,11:W,21:272},e(B,[2,34]),e(Mt,[2,52]),{10:En,60:or,83:ln,104:Ir,106:273,107:237,108:ii,109:mn,110:Pn,111:Sr},e(Bn,[2,131]),{14:at,44:X,60:J,88:Z,100:274,104:H,105:q,108:K,110:ot,113:ct,114:ut,115:et,119:86},{14:at,44:X,60:J,88:Z,100:275,104:H,105:q,108:K,110:ot,113:ct,114:ut,115:et,119:86},{97:[1,276]},e(Ht,[2,118]),e(it,[2,58]),{30:277,67:xe,79:Se,80:Ye,81:168,115:fe,116:ee,117:pe},e(it,[2,66]),e(le,a,{5:278}),e(ps,[2,129],{107:264,10:En,60:or,83:ln,104:Ir,108:ii,109:mn,110:Pn,111:Sr}),e(Ht,[2,124],{119:164,10:[1,279],14:at,44:X,60:J,88:Z,104:H,105:q,108:K,110:ot,113:ct,114:ut,115:et}),e(Ht,[2,125],{119:164,10:[1,280],14:at,44:X,60:J,88:Z,104:H,105:q,108:K,110:ot,113:ct,114:ut,115:et}),e(Ht,[2,112]),{31:[1,281],67:xe,81:214,115:fe,116:ee,117:pe},{6:11,7:12,8:s,9:l,10:u,11:h,20:17,22:18,23:19,24:20,25:21,26:22,27:f,32:[1,282],33:24,34:d,36:p,38:m,42:28,43:38,44:g,45:39,47:40,60:y,83:v,84:x,85:b,86:w,87:S,88:T,101:E,104:_,105:A,108:L,110:M,112:41,113:N,114:k,115:I,120:C,121:O,122:D,123:P},{10:En,60:or,83:ln,91:283,104:Ir,106:236,107:237,108:ii,109:mn,110:Pn,111:Sr},{10:En,60:or,83:ln,91:284,104:Ir,106:236,107:237,108:ii,109:mn,110:Pn,111:Sr},e(it,[2,62]),e(B,[2,33]),e(Ht,[2,122],{105:pi}),e(Ht,[2,123],{105:pi})],defaultActions:{},parseError:o(function(Ae,Ie){if(Ie.recoverable)this.trace(Ae);else{var we=new Error(Ae);throw we.hash=Ie,we}},"parseError"),parse:o(function(Ae){var Ie=this,we=[0],Wt=[],Fe=[null],gt=[],gn=this.table,vt="",qa=0,W1=0,Y1=0,q1=2,X1=1,lp=gt.slice.call(arguments,1),jn=Object.create(this.lexer),ca={yy:{}};for(var Zl in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Zl)&&(ca.yy[Zl]=this.yy[Zl]);jn.setInput(Ae,ca.yy),ca.yy.lexer=jn,ca.yy.parser=this,typeof jn.yylloc>"u"&&(jn.yylloc={});var Vf=jn.yylloc;gt.push(Vf);var j1=jn.options&&jn.options.ranges;typeof ca.yy.parseError=="function"?this.parseError=ca.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function mz(Xa){we.length=we.length-2*Xa,Fe.length=Fe.length-Xa,gt.length=gt.length-Xa}o(mz,"popStack");function Uf(){var Xa;return Xa=Wt.pop()||jn.lex()||X1,typeof Xa!="number"&&(Xa instanceof Array&&(Wt=Xa,Xa=Wt.pop()),Xa=Ie.symbols_[Xa]||Xa),Xa}o(Uf,"lex");for(var ua,K1,Cn,Ni,gz,cp,Jl={},Hf,Co,Kb,Wf;;){if(Cn=we[we.length-1],this.defaultActions[Cn]?Ni=this.defaultActions[Cn]:((ua===null||typeof ua>"u")&&(ua=Uf()),Ni=gn[Cn]&&gn[Cn][ua]),typeof Ni>"u"||!Ni.length||!Ni[0]){var up="";Wf=[];for(Hf in gn[Cn])this.terminals_[Hf]&&Hf>q1&&Wf.push("'"+this.terminals_[Hf]+"'");jn.showPosition?up="Parse error on line "+(qa+1)+`: +`+jn.showPosition()+` +Expecting `+Wf.join(", ")+", got '"+(this.terminals_[ua]||ua)+"'":up="Parse error on line "+(qa+1)+": Unexpected "+(ua==X1?"end of input":"'"+(this.terminals_[ua]||ua)+"'"),this.parseError(up,{text:jn.match,token:this.terminals_[ua]||ua,line:jn.yylineno,loc:Vf,expected:Wf})}if(Ni[0]instanceof Array&&Ni.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Cn+", token: "+ua);switch(Ni[0]){case 1:we.push(ua),Fe.push(jn.yytext),gt.push(jn.yylloc),we.push(Ni[1]),ua=null,K1?(ua=K1,K1=null):(W1=jn.yyleng,vt=jn.yytext,qa=jn.yylineno,Vf=jn.yylloc,Y1>0&&Y1--);break;case 2:if(Co=this.productions_[Ni[1]][1],Jl.$=Fe[Fe.length-Co],Jl._$={first_line:gt[gt.length-(Co||1)].first_line,last_line:gt[gt.length-1].last_line,first_column:gt[gt.length-(Co||1)].first_column,last_column:gt[gt.length-1].last_column},j1&&(Jl._$.range=[gt[gt.length-(Co||1)].range[0],gt[gt.length-1].range[1]]),cp=this.performAction.apply(Jl,[vt,W1,qa,ca.yy,Ni[1],Fe,gt].concat(lp)),typeof cp<"u")return cp;Co&&(we=we.slice(0,-1*Co*2),Fe=Fe.slice(0,-1*Co),gt=gt.slice(0,-1*Co)),we.push(this.productions_[Ni[1]][0]),Fe.push(Jl.$),gt.push(Jl._$),Kb=gn[we[we.length-2]][we[we.length-1]],we.push(Kb);break;case 3:return!0}}return!0},"parse")},cl=function(){var wi={EOF:1,parseError:o(function(Ie,we){if(this.yy.parser)this.yy.parser.parseError(Ie,we);else throw new Error(Ie)},"parseError"),setInput:o(function(Ae,Ie){return this.yy=Ie||this.yy||{},this._input=Ae,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var Ae=this._input[0];this.yytext+=Ae,this.yyleng++,this.offset++,this.match+=Ae,this.matched+=Ae;var Ie=Ae.match(/(?:\r\n?|\n).*/g);return Ie?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Ae},"input"),unput:o(function(Ae){var Ie=Ae.length,we=Ae.split(/(?:\r\n?|\n)/g);this._input=Ae+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Ie),this.offset-=Ie;var Wt=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),we.length-1&&(this.yylineno-=we.length-1);var Fe=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:we?(we.length===Wt.length?this.yylloc.first_column:0)+Wt[Wt.length-we.length].length-we[0].length:this.yylloc.first_column-Ie},this.options.ranges&&(this.yylloc.range=[Fe[0],Fe[0]+this.yyleng-Ie]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(Ae){this.unput(this.match.slice(Ae))},"less"),pastInput:o(function(){var Ae=this.matched.substr(0,this.matched.length-this.match.length);return(Ae.length>20?"...":"")+Ae.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var Ae=this.match;return Ae.length<20&&(Ae+=this._input.substr(0,20-Ae.length)),(Ae.substr(0,20)+(Ae.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var Ae=this.pastInput(),Ie=new Array(Ae.length+1).join("-");return Ae+this.upcomingInput()+` +`+Ie+"^"},"showPosition"),test_match:o(function(Ae,Ie){var we,Wt,Fe;if(this.options.backtrack_lexer&&(Fe={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(Fe.yylloc.range=this.yylloc.range.slice(0))),Wt=Ae[0].match(/(?:\r\n?|\n).*/g),Wt&&(this.yylineno+=Wt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Wt?Wt[Wt.length-1].length-Wt[Wt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Ae[0].length},this.yytext+=Ae[0],this.match+=Ae[0],this.matches=Ae,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(Ae[0].length),this.matched+=Ae[0],we=this.performAction.call(this,this.yy,this,Ie,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),we)return we;if(this._backtrack){for(var gt in Fe)this[gt]=Fe[gt];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Ae,Ie,we,Wt;this._more||(this.yytext="",this.match="");for(var Fe=this._currentRules(),gt=0;gtIe[0].length)){if(Ie=we,Wt=gt,this.options.backtrack_lexer){if(Ae=this.test_match(we,Fe[gt]),Ae!==!1)return Ae;if(this._backtrack){Ie=!1;continue}else return!1}else if(!this.options.flex)break}return Ie?(Ae=this.test_match(Ie,Fe[Wt]),Ae!==!1?Ae:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var Ie=this.next();return Ie||this.lex()},"lex"),begin:o(function(Ie){this.conditionStack.push(Ie)},"begin"),popState:o(function(){var Ie=this.conditionStack.length-1;return Ie>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(Ie){return Ie=this.conditionStack.length-1-Math.abs(Ie||0),Ie>=0?this.conditionStack[Ie]:"INITIAL"},"topState"),pushState:o(function(Ie){this.begin(Ie)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:o(function(Ie,we,Wt,Fe){var gt=Fe;switch(Wt){case 0:return this.begin("acc_title"),34;break;case 1:return this.popState(),"acc_title_value";break;case 2:return this.begin("acc_descr"),36;break;case 3:return this.popState(),"acc_descr_value";break;case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return this.pushState("shapeData"),we.yytext="",40;break;case 8:return this.pushState("shapeDataStr"),40;break;case 9:return this.popState(),40;break;case 10:let gn=/\n\s*/g;return we.yytext=we.yytext.replace(gn,"
    "),40;break;case 11:return 40;case 12:this.popState();break;case 13:this.begin("callbackname");break;case 14:this.popState();break;case 15:this.popState(),this.begin("callbackargs");break;case 16:return 94;case 17:this.popState();break;case 18:return 95;case 19:return"MD_STR";case 20:this.popState();break;case 21:this.begin("md_string");break;case 22:return"STR";case 23:this.popState();break;case 24:this.pushState("string");break;case 25:return 83;case 26:return 101;case 27:return 84;case 28:return 103;case 29:return 85;case 30:return 86;case 31:return 96;case 32:this.begin("click");break;case 33:this.popState();break;case 34:return 87;case 35:return Ie.lex.firstGraph()&&this.begin("dir"),12;break;case 36:return Ie.lex.firstGraph()&&this.begin("dir"),12;break;case 37:return Ie.lex.firstGraph()&&this.begin("dir"),12;break;case 38:return 27;case 39:return 32;case 40:return 97;case 41:return 97;case 42:return 97;case 43:return 97;case 44:return this.popState(),13;break;case 45:return this.popState(),14;break;case 46:return this.popState(),14;break;case 47:return this.popState(),14;break;case 48:return this.popState(),14;break;case 49:return this.popState(),14;break;case 50:return this.popState(),14;break;case 51:return this.popState(),14;break;case 52:return this.popState(),14;break;case 53:return this.popState(),14;break;case 54:return this.popState(),14;break;case 55:return 120;case 56:return 121;case 57:return 122;case 58:return 123;case 59:return 104;case 60:return 110;case 61:return 46;case 62:return 60;case 63:return 44;case 64:return 8;case 65:return 105;case 66:return 114;case 67:return this.popState(),77;break;case 68:return this.pushState("edgeText"),75;break;case 69:return 118;case 70:return this.popState(),77;break;case 71:return this.pushState("thickEdgeText"),75;break;case 72:return 118;case 73:return this.popState(),77;break;case 74:return this.pushState("dottedEdgeText"),75;break;case 75:return 118;case 76:return 77;case 77:return this.popState(),53;break;case 78:return"TEXT";case 79:return this.pushState("ellipseText"),52;break;case 80:return this.popState(),55;break;case 81:return this.pushState("text"),54;break;case 82:return this.popState(),57;break;case 83:return this.pushState("text"),56;break;case 84:return 58;case 85:return this.pushState("text"),67;break;case 86:return this.popState(),64;break;case 87:return this.pushState("text"),63;break;case 88:return this.popState(),49;break;case 89:return this.pushState("text"),48;break;case 90:return this.popState(),69;break;case 91:return this.popState(),71;break;case 92:return 116;case 93:return this.pushState("trapText"),68;break;case 94:return this.pushState("trapText"),70;break;case 95:return 117;case 96:return 67;case 97:return 89;case 98:return"SEP";case 99:return 88;case 100:return 114;case 101:return 110;case 102:return 44;case 103:return 108;case 104:return 113;case 105:return 115;case 106:return this.popState(),62;break;case 107:return this.pushState("text"),62;break;case 108:return this.popState(),51;break;case 109:return this.pushState("text"),50;break;case 110:return this.popState(),31;break;case 111:return this.pushState("text"),29;break;case 112:return this.popState(),66;break;case 113:return this.pushState("text"),65;break;case 114:return"TEXT";case 115:return"QUOTE";case 116:return 9;case 117:return 10;case 118:return 11}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:@\{)/,/^(?:["])/,/^(?:["])/,/^(?:[^\"]+)/,/^(?:[^}^"]+)/,/^(?:\})/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s])/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:[^=]|=(?!))/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:[^\.]|\.(?!))/,/^(?:\s*~~[\~]+\s*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|[^\\\[\]\(\)\{\}\/]+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/,/^(?:-)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:[^\[\]\(\)\{\}\|\"]+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{shapeDataEndBracket:{rules:[21,24,76,79,81,83,87,89,93,94,107,109,111,113],inclusive:!1},shapeDataStr:{rules:[9,10,21,24,76,79,81,83,87,89,93,94,107,109,111,113],inclusive:!1},shapeData:{rules:[8,11,12,21,24,76,79,81,83,87,89,93,94,107,109,111,113],inclusive:!1},callbackargs:{rules:[17,18,21,24,76,79,81,83,87,89,93,94,107,109,111,113],inclusive:!1},callbackname:{rules:[14,15,16,21,24,76,79,81,83,87,89,93,94,107,109,111,113],inclusive:!1},href:{rules:[21,24,76,79,81,83,87,89,93,94,107,109,111,113],inclusive:!1},click:{rules:[21,24,33,34,76,79,81,83,87,89,93,94,107,109,111,113],inclusive:!1},dottedEdgeText:{rules:[21,24,73,75,76,79,81,83,87,89,93,94,107,109,111,113],inclusive:!1},thickEdgeText:{rules:[21,24,70,72,76,79,81,83,87,89,93,94,107,109,111,113],inclusive:!1},edgeText:{rules:[21,24,67,69,76,79,81,83,87,89,93,94,107,109,111,113],inclusive:!1},trapText:{rules:[21,24,76,79,81,83,87,89,90,91,92,93,94,107,109,111,113],inclusive:!1},ellipseText:{rules:[21,24,76,77,78,79,81,83,87,89,93,94,107,109,111,113],inclusive:!1},text:{rules:[21,24,76,79,80,81,82,83,86,87,88,89,93,94,106,107,108,109,110,111,112,113,114],inclusive:!1},vertex:{rules:[21,24,76,79,81,83,87,89,93,94,107,109,111,113],inclusive:!1},dir:{rules:[21,24,44,45,46,47,48,49,50,51,52,53,54,76,79,81,83,87,89,93,94,107,109,111,113],inclusive:!1},acc_descr_multiline:{rules:[5,6,21,24,76,79,81,83,87,89,93,94,107,109,111,113],inclusive:!1},acc_descr:{rules:[3,21,24,76,79,81,83,87,89,93,94,107,109,111,113],inclusive:!1},acc_title:{rules:[1,21,24,76,79,81,83,87,89,93,94,107,109,111,113],inclusive:!1},md_string:{rules:[19,20,21,24,76,79,81,83,87,89,93,94,107,109,111,113],inclusive:!1},string:{rules:[21,22,23,24,76,79,81,83,87,89,93,94,107,109,111,113],inclusive:!1},INITIAL:{rules:[0,2,4,7,13,21,24,25,26,27,28,29,30,31,32,35,36,37,38,39,40,41,42,43,55,56,57,58,59,60,61,62,63,64,65,66,67,68,70,71,73,74,76,79,81,83,84,85,87,89,93,94,95,96,97,98,99,100,101,102,103,104,105,107,109,111,113,115,116,117,118],inclusive:!0}}};return wi}();Eo.lexer=cl;function Fn(){this.yy={}}return o(Fn,"Parser"),Fn.prototype=Eo,Eo.Parser=Fn,new Fn}();kR.parser=kR;Uit=kR});var $Ot,GOt,Wit,Yit=R(()=>{"use strict";ul();$Ot=o((e,t)=>{let r=ay,n=r(e,"r"),i=r(e,"g"),a=r(e,"b");return Xs(n,i,a,t)},"fade"),GOt=o(e=>`.label { + font-family: ${e.fontFamily}; + color: ${e.nodeTextColor||e.textColor}; } .cluster-label text { - fill: ${i.titleColor}; + fill: ${e.titleColor}; } - .cluster-label span,p { - color: ${i.titleColor}; + .cluster-label span { + color: ${e.titleColor}; + } + .cluster-label span p { + background-color: transparent; } - .label text,span,p { - fill: ${i.nodeTextColor||i.textColor}; - color: ${i.nodeTextColor||i.textColor}; + .label text,span { + fill: ${e.nodeTextColor||e.textColor}; + color: ${e.nodeTextColor||e.textColor}; } .node rect, @@ -132,11 +479,11 @@ Expecting `+Wo.join(", ")+", got '"+(this.terminals_[w1]||w1)+"'":pk="Parse erro .node ellipse, .node polygon, .node path { - fill: ${i.mainBkg}; - stroke: ${i.nodeBorder}; + fill: ${e.mainBkg}; + stroke: ${e.nodeBorder}; stroke-width: 1px; } - .flowchart-label text { + .rough-node .label text , .node .label text, .image-shape .label, .icon-shape .label { text-anchor: middle; } // .flowchart-label .text-outer-tspan { @@ -146,58 +493,74 @@ Expecting `+Wo.join(", ")+", got '"+(this.terminals_[w1]||w1)+"'":pk="Parse erro // text-anchor: start; // } - .node .label { + .node .katex path { + fill: #000; + stroke: #000; + stroke-width: 1px; + } + + .rough-node .label,.node .label, .image-shape .label, .icon-shape .label { text-align: center; } .node.clickable { cursor: pointer; } + + .root .anchor path { + fill: ${e.lineColor} !important; + stroke-width: 0; + stroke: ${e.lineColor}; + } + .arrowheadPath { - fill: ${i.arrowheadColor}; + fill: ${e.arrowheadColor}; } .edgePath .path { - stroke: ${i.lineColor}; + stroke: ${e.lineColor}; stroke-width: 2.0px; } .flowchart-link { - stroke: ${i.lineColor}; + stroke: ${e.lineColor}; fill: none; } .edgeLabel { - background-color: ${i.edgeLabelBackground}; + background-color: ${e.edgeLabelBackground}; + p { + background-color: ${e.edgeLabelBackground}; + } rect { opacity: 0.5; - background-color: ${i.edgeLabelBackground}; - fill: ${i.edgeLabelBackground}; + background-color: ${e.edgeLabelBackground}; + fill: ${e.edgeLabelBackground}; } text-align: center; } /* For html labels only */ .labelBkg { - background-color: ${Pje(i.edgeLabelBackground,.5)}; - // background-color: + background-color: ${$Ot(e.edgeLabelBackground,.5)}; + // background-color: } .cluster rect { - fill: ${i.clusterBkg}; - stroke: ${i.clusterBorder}; + fill: ${e.clusterBkg}; + stroke: ${e.clusterBorder}; stroke-width: 1px; } .cluster text { - fill: ${i.titleColor}; + fill: ${e.titleColor}; } - .cluster span,p { - color: ${i.titleColor}; + .cluster span { + color: ${e.titleColor}; } /* .cluster div { - color: ${i.titleColor}; + color: ${e.titleColor}; } */ div.mermaidTooltip { @@ -205,10 +568,10 @@ Expecting `+Wo.join(", ")+", got '"+(this.terminals_[w1]||w1)+"'":pk="Parse erro text-align: center; max-width: 200px; padding: 2px; - font-family: ${i.fontFamily}; + font-family: ${e.fontFamily}; font-size: 12px; - background: ${i.tertiaryColor}; - border: 1px solid ${i.border2}; + background: ${e.tertiaryColor}; + border: 1px solid ${e.border2}; border-radius: 2px; pointer-events: none; z-index: 100; @@ -217,71 +580,217 @@ Expecting `+Wo.join(", ")+", got '"+(this.terminals_[w1]||w1)+"'":pk="Parse erro .flowchartTitleText { text-anchor: middle; font-size: 18px; - fill: ${i.textColor}; - } -`,Fje=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:mdt,db:ak,renderer:w0t,styles:uBt,init:i=>{i.flowchart||(i.flowchart={}),i.flowchart.arrowMarkerAbsolute=i.arrowMarkerAbsolute,VFe.setConf(i.flowchart),ak.clear(),ak.setGen("gen-1")}}},Symbol.toStringTag,{value:"Module"})),Bje=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:mdt,db:ak,renderer:w0t,styles:uBt,init:i=>{i.flowchart||(i.flowchart={}),i.flowchart.arrowMarkerAbsolute=i.arrowMarkerAbsolute,rIt({flowchart:{arrowMarkerAbsolute:i.arrowMarkerAbsolute}}),w0t.setConf(i.flowchart),ak.clear(),ak.setGen("gen-2")}}},Symbol.toStringTag,{value:"Module"}));var m0t=function(){var i=function(lt,_t,X,Rt){for(X=X||{},Rt=lt.length;Rt--;X[lt[Rt]]=_t);return X},a=[1,2],f=[1,5],p=[6,9,11,23,25,27,29,30,31,52],v=[1,17],m=[1,18],b=[1,19],E=[1,20],C=[1,21],D=[1,22],P=[1,25],B=[1,30],j=[1,31],R=[1,32],H=[1,33],Y=[1,34],it=[6,9,11,15,20,23,25,27,29,30,31,44,45,46,47,48,52],nt=[1,46],st=[30,31,49,50],pt=[4,6,9,11,23,25,27,29,30,31,52],Tt=[44,45,46,47,48],kt=[22,37],yt=[1,66],ht=[1,65],mt=[22,37,39,41],rt={trace:function(){},yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,entityName:17,relSpec:18,role:19,BLOCK_START:20,attributes:21,BLOCK_STOP:22,title:23,title_value:24,acc_title:25,acc_title_value:26,acc_descr:27,acc_descr_value:28,acc_descr_multiline_value:29,ALPHANUM:30,ENTITY_NAME:31,attribute:32,attributeType:33,attributeName:34,attributeKeyTypeList:35,attributeComment:36,ATTRIBUTE_WORD:37,attributeKeyType:38,COMMA:39,ATTRIBUTE_KEY:40,COMMENT:41,cardinality:42,relType:43,ZERO_OR_ONE:44,ZERO_OR_MORE:45,ONE_OR_MORE:46,ONLY_ONE:47,MD_PARENT:48,NON_IDENTIFYING:49,IDENTIFYING:50,WORD:51,open_directive:52,type_directive:53,arg_directive:54,close_directive:55,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",20:"BLOCK_START",22:"BLOCK_STOP",23:"title",24:"title_value",25:"acc_title",26:"acc_title_value",27:"acc_descr",28:"acc_descr_value",29:"acc_descr_multiline_value",30:"ALPHANUM",31:"ENTITY_NAME",37:"ATTRIBUTE_WORD",39:"COMMA",40:"ATTRIBUTE_KEY",41:"COMMENT",44:"ZERO_OR_ONE",45:"ZERO_OR_MORE",46:"ONE_OR_MORE",47:"ONLY_ONE",48:"MD_PARENT",49:"NON_IDENTIFYING",50:"IDENTIFYING",51:"WORD",52:"open_directive",53:"type_directive",54:"arg_directive",55:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,5],[10,4],[10,3],[10,1],[10,2],[10,2],[10,2],[10,1],[17,1],[17,1],[21,1],[21,2],[32,2],[32,3],[32,3],[32,4],[33,1],[34,1],[35,1],[35,3],[38,1],[36,1],[18,3],[42,1],[42,1],[42,1],[42,1],[42,1],[43,1],[43,1],[19,1],[19,1],[19,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(_t,X,Rt,ft,de,J,ae){var Wt=J.length-1;switch(de){case 1:break;case 3:this.$=[];break;case 4:J[Wt-1].push(J[Wt]),this.$=J[Wt-1];break;case 5:case 6:this.$=J[Wt];break;case 7:case 8:this.$=[];break;case 12:ft.addEntity(J[Wt-4]),ft.addEntity(J[Wt-2]),ft.addRelationship(J[Wt-4],J[Wt],J[Wt-2],J[Wt-3]);break;case 13:ft.addEntity(J[Wt-3]),ft.addAttributes(J[Wt-3],J[Wt-1]);break;case 14:ft.addEntity(J[Wt-2]);break;case 15:ft.addEntity(J[Wt]);break;case 16:case 17:this.$=J[Wt].trim(),ft.setAccTitle(this.$);break;case 18:case 19:this.$=J[Wt].trim(),ft.setAccDescription(this.$);break;case 20:case 44:this.$=J[Wt];break;case 21:case 42:case 43:this.$=J[Wt].replace(/"/g,"");break;case 22:case 30:this.$=[J[Wt]];break;case 23:J[Wt].push(J[Wt-1]),this.$=J[Wt];break;case 24:this.$={attributeType:J[Wt-1],attributeName:J[Wt]};break;case 25:this.$={attributeType:J[Wt-2],attributeName:J[Wt-1],attributeKeyTypeList:J[Wt]};break;case 26:this.$={attributeType:J[Wt-2],attributeName:J[Wt-1],attributeComment:J[Wt]};break;case 27:this.$={attributeType:J[Wt-3],attributeName:J[Wt-2],attributeKeyTypeList:J[Wt-1],attributeComment:J[Wt]};break;case 28:case 29:case 32:this.$=J[Wt];break;case 31:J[Wt-2].push(J[Wt]),this.$=J[Wt-2];break;case 33:this.$=J[Wt].replace(/"/g,"");break;case 34:this.$={cardA:J[Wt],relType:J[Wt-1],cardB:J[Wt-2]};break;case 35:this.$=ft.Cardinality.ZERO_OR_ONE;break;case 36:this.$=ft.Cardinality.ZERO_OR_MORE;break;case 37:this.$=ft.Cardinality.ONE_OR_MORE;break;case 38:this.$=ft.Cardinality.ONLY_ONE;break;case 39:this.$=ft.Cardinality.MD_PARENT;break;case 40:this.$=ft.Identification.NON_IDENTIFYING;break;case 41:this.$=ft.Identification.IDENTIFYING;break;case 45:ft.parseDirective("%%{","open_directive");break;case 46:ft.parseDirective(J[Wt],"type_directive");break;case 47:J[Wt]=J[Wt].trim().replace(/'/g,'"'),ft.parseDirective(J[Wt],"arg_directive");break;case 48:ft.parseDirective("}%%","close_directive","er");break}},table:[{3:1,4:a,7:3,12:4,52:f},{1:[3]},i(p,[2,3],{5:6}),{3:7,4:a,7:3,12:4,52:f},{13:8,53:[1,9]},{53:[2,45]},{6:[1,10],7:15,8:11,9:[1,12],10:13,11:[1,14],12:4,17:16,23:v,25:m,27:b,29:E,30:C,31:D,52:f},{1:[2,2]},{14:23,15:[1,24],55:P},i([15,55],[2,46]),i(p,[2,8],{1:[2,1]}),i(p,[2,4]),{7:15,10:26,12:4,17:16,23:v,25:m,27:b,29:E,30:C,31:D,52:f},i(p,[2,6]),i(p,[2,7]),i(p,[2,11]),i(p,[2,15],{18:27,42:29,20:[1,28],44:B,45:j,46:R,47:H,48:Y}),{24:[1,35]},{26:[1,36]},{28:[1,37]},i(p,[2,19]),i(it,[2,20]),i(it,[2,21]),{11:[1,38]},{16:39,54:[1,40]},{11:[2,48]},i(p,[2,5]),{17:41,30:C,31:D},{21:42,22:[1,43],32:44,33:45,37:nt},{43:47,49:[1,48],50:[1,49]},i(st,[2,35]),i(st,[2,36]),i(st,[2,37]),i(st,[2,38]),i(st,[2,39]),i(p,[2,16]),i(p,[2,17]),i(p,[2,18]),i(pt,[2,9]),{14:50,55:P},{55:[2,47]},{15:[1,51]},{22:[1,52]},i(p,[2,14]),{21:53,22:[2,22],32:44,33:45,37:nt},{34:54,37:[1,55]},{37:[2,28]},{42:56,44:B,45:j,46:R,47:H,48:Y},i(Tt,[2,40]),i(Tt,[2,41]),{11:[1,57]},{19:58,30:[1,61],31:[1,60],51:[1,59]},i(p,[2,13]),{22:[2,23]},i(kt,[2,24],{35:62,36:63,38:64,40:yt,41:ht}),i([22,37,40,41],[2,29]),i([30,31],[2,34]),i(pt,[2,10]),i(p,[2,12]),i(p,[2,42]),i(p,[2,43]),i(p,[2,44]),i(kt,[2,25],{36:67,39:[1,68],41:ht}),i(kt,[2,26]),i(mt,[2,30]),i(kt,[2,33]),i(mt,[2,32]),i(kt,[2,27]),{38:69,40:yt},i(mt,[2,31])],defaultActions:{5:[2,45],7:[2,2],25:[2,48],40:[2,47],46:[2,28],53:[2,23]},parseError:function(_t,X){if(X.recoverable)this.trace(_t);else{var Rt=new Error(_t);throw Rt.hash=X,Rt}},parse:function(_t){var X=this,Rt=[0],ft=[],de=[null],J=[],ae=this.table,Wt="",It=0,Nt=0,me=2,Ue=1,_n=J.slice.call(arguments,1),_e=Object.create(this.lexer),rr={yy:{}};for(var Te in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Te)&&(rr.yy[Te]=this.yy[Te]);_e.setInput(_t,rr.yy),rr.yy.lexer=_e,rr.yy.parser=this,typeof _e.yylloc>"u"&&(_e.yylloc={});var ne=_e.yylloc;J.push(ne);var Ee=_e.options&&_e.options.ranges;typeof rr.yy.parseError=="function"?this.parseError=rr.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ye(){var fe;return fe=ft.pop()||_e.lex()||Ue,typeof fe!="number"&&(fe instanceof Array&&(ft=fe,fe=ft.pop()),fe=X.symbols_[fe]||fe),fe}for(var Vt,Ae,Gt,un,jt={},Ke,oe,Or,Le;;){if(Ae=Rt[Rt.length-1],this.defaultActions[Ae]?Gt=this.defaultActions[Ae]:((Vt===null||typeof Vt>"u")&&(Vt=ye()),Gt=ae[Ae]&&ae[Ae][Vt]),typeof Gt>"u"||!Gt.length||!Gt[0]){var Nr="";Le=[];for(Ke in ae[Ae])this.terminals_[Ke]&&Ke>me&&Le.push("'"+this.terminals_[Ke]+"'");_e.showPosition?Nr="Parse error on line "+(It+1)+`: -`+_e.showPosition()+` -Expecting `+Le.join(", ")+", got '"+(this.terminals_[Vt]||Vt)+"'":Nr="Parse error on line "+(It+1)+": Unexpected "+(Vt==Ue?"end of input":"'"+(this.terminals_[Vt]||Vt)+"'"),this.parseError(Nr,{text:_e.match,token:this.terminals_[Vt]||Vt,line:_e.yylineno,loc:ne,expected:Le})}if(Gt[0]instanceof Array&&Gt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ae+", token: "+Vt);switch(Gt[0]){case 1:Rt.push(Vt),de.push(_e.yytext),J.push(_e.yylloc),Rt.push(Gt[1]),Vt=null,Nt=_e.yyleng,Wt=_e.yytext,It=_e.yylineno,ne=_e.yylloc;break;case 2:if(oe=this.productions_[Gt[1]][1],jt.$=de[de.length-oe],jt._$={first_line:J[J.length-(oe||1)].first_line,last_line:J[J.length-1].last_line,first_column:J[J.length-(oe||1)].first_column,last_column:J[J.length-1].last_column},Ee&&(jt._$.range=[J[J.length-(oe||1)].range[0],J[J.length-1].range[1]]),un=this.performAction.apply(jt,[Wt,Nt,It,rr.yy,Gt[1],de,J].concat(_n)),typeof un<"u")return un;oe&&(Rt=Rt.slice(0,-1*oe*2),de=de.slice(0,-1*oe),J=J.slice(0,-1*oe)),Rt.push(this.productions_[Gt[1]][0]),de.push(jt.$),J.push(jt._$),Or=ae[Rt[Rt.length-2]][Rt[Rt.length-1]],Rt.push(Or);break;case 3:return!0}}return!0}},wt=function(){var lt={EOF:1,parseError:function(X,Rt){if(this.yy.parser)this.yy.parser.parseError(X,Rt);else throw new Error(X)},setInput:function(_t,X){return this.yy=X||this.yy||{},this._input=_t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var _t=this._input[0];this.yytext+=_t,this.yyleng++,this.offset++,this.match+=_t,this.matched+=_t;var X=_t.match(/(?:\r\n?|\n).*/g);return X?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),_t},unput:function(_t){var X=_t.length,Rt=_t.split(/(?:\r\n?|\n)/g);this._input=_t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-X),this.offset-=X;var ft=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Rt.length-1&&(this.yylineno-=Rt.length-1);var de=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Rt?(Rt.length===ft.length?this.yylloc.first_column:0)+ft[ft.length-Rt.length].length-Rt[0].length:this.yylloc.first_column-X},this.options.ranges&&(this.yylloc.range=[de[0],de[0]+this.yyleng-X]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). -`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(_t){this.unput(this.match.slice(_t))},pastInput:function(){var _t=this.matched.substr(0,this.matched.length-this.match.length);return(_t.length>20?"...":"")+_t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var _t=this.match;return _t.length<20&&(_t+=this._input.substr(0,20-_t.length)),(_t.substr(0,20)+(_t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var _t=this.pastInput(),X=new Array(_t.length+1).join("-");return _t+this.upcomingInput()+` -`+X+"^"},test_match:function(_t,X){var Rt,ft,de;if(this.options.backtrack_lexer&&(de={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(de.yylloc.range=this.yylloc.range.slice(0))),ft=_t[0].match(/(?:\r\n?|\n).*/g),ft&&(this.yylineno+=ft.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:ft?ft[ft.length-1].length-ft[ft.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+_t[0].length},this.yytext+=_t[0],this.match+=_t[0],this.matches=_t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(_t[0].length),this.matched+=_t[0],Rt=this.performAction.call(this,this.yy,this,X,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Rt)return Rt;if(this._backtrack){for(var J in de)this[J]=de[J];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var _t,X,Rt,ft;this._more||(this.yytext="",this.match="");for(var de=this._currentRules(),J=0;JX[0].length)){if(X=Rt,ft=J,this.options.backtrack_lexer){if(_t=this.test_match(Rt,de[J]),_t!==!1)return _t;if(this._backtrack){X=!1;continue}else return!1}else if(!this.options.flex)break}return X?(_t=this.test_match(X,de[ft]),_t!==!1?_t:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var X=this.next();return X||this.lex()},begin:function(X){this.conditionStack.push(X)},popState:function(){var X=this.conditionStack.length-1;return X>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(X){return X=this.conditionStack.length-1-Math.abs(X||0),X>=0?this.conditionStack[X]:"INITIAL"},pushState:function(X){this.begin(X)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(X,Rt,ft,de){switch(ft){case 0:return this.begin("acc_title"),25;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),27;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return this.begin("open_directive"),52;case 8:return this.begin("type_directive"),53;case 9:return this.popState(),this.begin("arg_directive"),15;case 10:return this.popState(),this.popState(),55;case 11:return 54;case 12:return 11;case 13:break;case 14:return 9;case 15:return 31;case 16:return 51;case 17:return 4;case 18:return this.begin("block"),20;case 19:return 39;case 20:break;case 21:return 40;case 22:return 37;case 23:return 37;case 24:return 41;case 25:break;case 26:return this.popState(),22;case 27:return Rt.yytext[0];case 28:return 44;case 29:return 46;case 30:return 46;case 31:return 46;case 32:return 44;case 33:return 44;case 34:return 45;case 35:return 45;case 36:return 45;case 37:return 45;case 38:return 45;case 39:return 46;case 40:return 45;case 41:return 46;case 42:return 47;case 43:return 47;case 44:return 47;case 45:return 47;case 46:return 44;case 47:return 45;case 48:return 46;case 49:return 48;case 50:return 49;case 51:return 50;case 52:return 50;case 53:return 49;case 54:return 49;case 55:return 49;case 56:return 30;case 57:return Rt.yytext[0];case 58:return 6}},rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:,)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:(.*?)[~](.*?)*[~])/i,/^(?:[A-Za-z_][A-Za-z0-9\-_\[\]\(\)]*)/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:one or zero\b)/i,/^(?:one or more\b)/i,/^(?:one or many\b)/i,/^(?:1\+)/i,/^(?:\|o\b)/i,/^(?:zero or one\b)/i,/^(?:zero or more\b)/i,/^(?:zero or many\b)/i,/^(?:0\+)/i,/^(?:\}o\b)/i,/^(?:many\(0\))/i,/^(?:many\(1\))/i,/^(?:many\b)/i,/^(?:\}\|)/i,/^(?:one\b)/i,/^(?:only one\b)/i,/^(?:1\b)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:\s*u\b)/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:[A-Za-z][A-Za-z0-9\-_]*)/i,/^(?:.)/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},open_directive:{rules:[8],inclusive:!1},type_directive:{rules:[9,10],inclusive:!1},arg_directive:{rules:[10,11],inclusive:!1},block:{rules:[19,20,21,22,23,24,25,26,27],inclusive:!1},INITIAL:{rules:[0,2,4,7,12,13,14,15,16,17,18,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58],inclusive:!0}}};return lt}();rt.lexer=wt;function gt(){this.yy={}}return gt.prototype=rt,rt.Parser=gt,new gt}();m0t.parser=m0t;const Rje=m0t;let gP={},y0t=[];const jje={ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE",MD_PARENT:"MD_PARENT"},$je={NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},zje=function(i,a,f){d1.parseDirective(this,i,a,f)},lBt=function(i){return gP[i]===void 0&&(gP[i]={attributes:[]},zt.info("Added new entity :",i)),gP[i]},qje={Cardinality:jje,Identification:$je,parseDirective:zje,getConfig:()=>Oe().er,addEntity:lBt,addAttributes:function(i,a){let f=lBt(i),p;for(p=a.length-1;p>=0;p--)f.attributes.push(a[p]),zt.debug("Added attribute ",a[p].attributeName)},getEntities:()=>gP,addRelationship:function(i,a,f,p){let v={entityA:i,roleA:a,entityB:f,relSpec:p};y0t.push(v),zt.debug("Added new relationship :",v)},getRelationships:()=>y0t,clear:function(){gP={},y0t=[],cg()},setAccTitle:ug,getAccTitle:op,setAccDescription:cp,getAccDescription:up,setDiagramTitle:Kb,getDiagramTitle:O2},am={ONLY_ONE_START:"ONLY_ONE_START",ONLY_ONE_END:"ONLY_ONE_END",ZERO_OR_ONE_START:"ZERO_OR_ONE_START",ZERO_OR_ONE_END:"ZERO_OR_ONE_END",ONE_OR_MORE_START:"ONE_OR_MORE_START",ONE_OR_MORE_END:"ONE_OR_MORE_END",ZERO_OR_MORE_START:"ZERO_OR_MORE_START",ZERO_OR_MORE_END:"ZERO_OR_MORE_END",MD_PARENT_END:"MD_PARENT_END",MD_PARENT_START:"MD_PARENT_START"},om={ERMarkers:am,insertMarkers:function(i,a){let f;i.append("defs").append("marker").attr("id",am.MD_PARENT_START).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id",am.MD_PARENT_END).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id",am.ONLY_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",a.stroke).attr("fill","none").attr("d","M9,0 L9,18 M15,0 L15,18"),i.append("defs").append("marker").attr("id",am.ONLY_ONE_END).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",a.stroke).attr("fill","none").attr("d","M3,0 L3,18 M9,0 L9,18"),f=i.append("defs").append("marker").attr("id",am.ZERO_OR_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto"),f.append("circle").attr("stroke",a.stroke).attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),f.append("path").attr("stroke",a.stroke).attr("fill","none").attr("d","M9,0 L9,18"),f=i.append("defs").append("marker").attr("id",am.ZERO_OR_ONE_END).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto"),f.append("circle").attr("stroke",a.stroke).attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),f.append("path").attr("stroke",a.stroke).attr("fill","none").attr("d","M21,0 L21,18"),i.append("defs").append("marker").attr("id",am.ONE_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",a.stroke).attr("fill","none").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),i.append("defs").append("marker").attr("id",am.ONE_OR_MORE_END).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",a.stroke).attr("fill","none").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18"),f=i.append("defs").append("marker").attr("id",am.ZERO_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto"),f.append("circle").attr("stroke",a.stroke).attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),f.append("path").attr("stroke",a.stroke).attr("fill","none").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18"),f=i.append("defs").append("marker").attr("id",am.ZERO_OR_MORE_END).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto"),f.append("circle").attr("stroke",a.stroke).attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),f.append("path").attr("stroke",a.stroke).attr("fill","none").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")}},Hje=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Vje(i){return typeof i=="string"&&Hje.test(i)}const $d=[];for(let i=0;i<256;++i)$d.push((i+256).toString(16).slice(1));function Gje(i,a=0){return($d[i[a+0]]+$d[i[a+1]]+$d[i[a+2]]+$d[i[a+3]]+"-"+$d[i[a+4]]+$d[i[a+5]]+"-"+$d[i[a+6]]+$d[i[a+7]]+"-"+$d[i[a+8]]+$d[i[a+9]]+"-"+$d[i[a+10]]+$d[i[a+11]]+$d[i[a+12]]+$d[i[a+13]]+$d[i[a+14]]+$d[i[a+15]]).toLowerCase()}function Uje(i){if(!Vje(i))throw TypeError("Invalid UUID");let a;const f=new Uint8Array(16);return f[0]=(a=parseInt(i.slice(0,8),16))>>>24,f[1]=a>>>16&255,f[2]=a>>>8&255,f[3]=a&255,f[4]=(a=parseInt(i.slice(9,13),16))>>>8,f[5]=a&255,f[6]=(a=parseInt(i.slice(14,18),16))>>>8,f[7]=a&255,f[8]=(a=parseInt(i.slice(19,23),16))>>>8,f[9]=a&255,f[10]=(a=parseInt(i.slice(24,36),16))/1099511627776&255,f[11]=a/4294967296&255,f[12]=a>>>24&255,f[13]=a>>>16&255,f[14]=a>>>8&255,f[15]=a&255,f}function Wje(i){i=unescape(encodeURIComponent(i));const a=[];for(let f=0;f>>32-a}function Zje(i){const a=[1518500249,1859775393,2400959708,3395469782],f=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof i=="string"){const b=unescape(encodeURIComponent(i));i=[];for(let E=0;E>>0;j=B,B=P,P=x0t(D,30)>>>0,D=C,C=Y}f[0]=f[0]+C>>>0,f[1]=f[1]+D>>>0,f[2]=f[2]+P>>>0,f[3]=f[3]+B>>>0,f[4]=f[4]+j>>>0}return[f[0]>>24&255,f[0]>>16&255,f[0]>>8&255,f[0]&255,f[1]>>24&255,f[1]>>16&255,f[1]>>8&255,f[1]&255,f[2]>>24&255,f[2]>>16&255,f[2]>>8&255,f[2]&255,f[3]>>24&255,f[3]>>16&255,f[3]>>8&255,f[3]&255,f[4]>>24&255,f[4]>>16&255,f[4]>>8&255,f[4]&255]}const Jje=Xje("v5",80,Zje),t$e=/[^\dA-Za-z](\W)*/g;let g1={},pP=new Map;const e$e=function(i){const a=Object.keys(i);for(const f of a)g1[f]=i[f]},n$e=(i,a,f)=>{const p=g1.entityPadding/3,v=g1.entityPadding/3,m=g1.fontSize*.85,b=a.node().getBBox(),E=[];let C=!1,D=!1,P=0,B=0,j=0,R=0,H=b.height+p*2,Y=1;f.forEach(pt=>{pt.attributeKeyTypeList!==void 0&&pt.attributeKeyTypeList.length>0&&(C=!0),pt.attributeComment!==void 0&&(D=!0)}),f.forEach(pt=>{const Tt=`${a.node().id}-attr-${Y}`;let kt=0;const yt=BN(pt.attributeType),ht=i.append("text").classed("er entityLabel",!0).attr("id",`${Tt}-type`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",Oe().fontFamily).style("font-size",m+"px").text(yt),mt=i.append("text").classed("er entityLabel",!0).attr("id",`${Tt}-name`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",Oe().fontFamily).style("font-size",m+"px").text(pt.attributeName),rt={};rt.tn=ht,rt.nn=mt;const wt=ht.node().getBBox(),gt=mt.node().getBBox();if(P=Math.max(P,wt.width),B=Math.max(B,gt.width),kt=Math.max(wt.height,gt.height),C){const lt=pt.attributeKeyTypeList!==void 0?pt.attributeKeyTypeList.join(","):"",_t=i.append("text").classed("er entityLabel",!0).attr("id",`${Tt}-key`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",Oe().fontFamily).style("font-size",m+"px").text(lt);rt.kn=_t;const X=_t.node().getBBox();j=Math.max(j,X.width),kt=Math.max(kt,X.height)}if(D){const lt=i.append("text").classed("er entityLabel",!0).attr("id",`${Tt}-comment`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",Oe().fontFamily).style("font-size",m+"px").text(pt.attributeComment||"");rt.cn=lt;const _t=lt.node().getBBox();R=Math.max(R,_t.width),kt=Math.max(kt,_t.height)}rt.height=kt,E.push(rt),H+=kt+p*2,Y+=1});let it=4;C&&(it+=2),D&&(it+=2);const nt=P+B+j+R,st={width:Math.max(g1.minEntityWidth,Math.max(b.width+g1.entityPadding*2,nt+v*it)),height:f.length>0?H:Math.max(g1.minEntityHeight,b.height+g1.entityPadding*2)};if(f.length>0){const pt=Math.max(0,(st.width-nt-v*it)/(it/2));a.attr("transform","translate("+st.width/2+","+(p+b.height/2)+")");let Tt=b.height+p*2,kt="attributeBoxOdd";E.forEach(yt=>{const ht=Tt+p+yt.height/2;yt.tn.attr("transform","translate("+v+","+ht+")");const mt=i.insert("rect","#"+yt.tn.node().id).classed(`er ${kt}`,!0).attr("x",0).attr("y",Tt).attr("width",P+v*2+pt).attr("height",yt.height+p*2),rt=parseFloat(mt.attr("x"))+parseFloat(mt.attr("width"));yt.nn.attr("transform","translate("+(rt+v)+","+ht+")");const wt=i.insert("rect","#"+yt.nn.node().id).classed(`er ${kt}`,!0).attr("x",rt).attr("y",Tt).attr("width",B+v*2+pt).attr("height",yt.height+p*2);let gt=parseFloat(wt.attr("x"))+parseFloat(wt.attr("width"));if(C){yt.kn.attr("transform","translate("+(gt+v)+","+ht+")");const lt=i.insert("rect","#"+yt.kn.node().id).classed(`er ${kt}`,!0).attr("x",gt).attr("y",Tt).attr("width",j+v*2+pt).attr("height",yt.height+p*2);gt=parseFloat(lt.attr("x"))+parseFloat(lt.attr("width"))}D&&(yt.cn.attr("transform","translate("+(gt+v)+","+ht+")"),i.insert("rect","#"+yt.cn.node().id).classed(`er ${kt}`,"true").attr("x",gt).attr("y",Tt).attr("width",R+v*2+pt).attr("height",yt.height+p*2)),Tt+=yt.height+p*2,kt=kt==="attributeBoxOdd"?"attributeBoxEven":"attributeBoxOdd"})}else st.height=Math.max(g1.minEntityHeight,H),a.attr("transform","translate("+st.width/2+","+st.height/2+")");return st},r$e=function(i,a,f){const p=Object.keys(a);let v;return p.forEach(function(m){const b=u$e(m,"entity");pP.set(m,b);const E=i.append("g").attr("id",b);v=v===void 0?b:v;const C="text-"+b,D=E.append("text").classed("er entityLabel",!0).attr("id",C).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","middle").style("font-family",Oe().fontFamily).style("font-size",g1.fontSize+"px").text(m),{width:P,height:B}=n$e(E,D,a[m].attributes),R=E.insert("rect","#"+C).classed("er entityBox",!0).attr("x",0).attr("y",0).attr("width",P).attr("height",B).node().getBBox();f.setNode(b,{width:R.width,height:R.height,shape:"rect",id:b})}),v},i$e=function(i,a){a.nodes().forEach(function(f){f!==void 0&&a.node(f)!==void 0&&i.select("#"+f).attr("transform","translate("+(a.node(f).x-a.node(f).width/2)+","+(a.node(f).y-a.node(f).height/2)+" )")})},hBt=function(i){return(i.entityA+i.roleA+i.entityB).replace(/\s/g,"")},s$e=function(i,a){return i.forEach(function(f){a.setEdge(pP.get(f.entityA),pP.get(f.entityB),{relationship:f},hBt(f))}),i};let fBt=0;const a$e=function(i,a,f,p,v){fBt++;const m=f.edge(pP.get(a.entityA),pP.get(a.entityB),hBt(a)),b=Y9().x(function(H){return H.x}).y(function(H){return H.y}).curve(CA),E=i.insert("path","#"+p).classed("er relationshipLine",!0).attr("d",b(m.points)).style("stroke",g1.stroke).style("fill","none");a.relSpec.relType===v.db.Identification.NON_IDENTIFYING&&E.attr("stroke-dasharray","8,8");let C="";switch(g1.arrowMarkerAbsolute&&(C=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,C=C.replace(/\(/g,"\\("),C=C.replace(/\)/g,"\\)")),a.relSpec.cardA){case v.db.Cardinality.ZERO_OR_ONE:E.attr("marker-end","url("+C+"#"+om.ERMarkers.ZERO_OR_ONE_END+")");break;case v.db.Cardinality.ZERO_OR_MORE:E.attr("marker-end","url("+C+"#"+om.ERMarkers.ZERO_OR_MORE_END+")");break;case v.db.Cardinality.ONE_OR_MORE:E.attr("marker-end","url("+C+"#"+om.ERMarkers.ONE_OR_MORE_END+")");break;case v.db.Cardinality.ONLY_ONE:E.attr("marker-end","url("+C+"#"+om.ERMarkers.ONLY_ONE_END+")");break;case v.db.Cardinality.MD_PARENT:E.attr("marker-end","url("+C+"#"+om.ERMarkers.MD_PARENT_END+")");break}switch(a.relSpec.cardB){case v.db.Cardinality.ZERO_OR_ONE:E.attr("marker-start","url("+C+"#"+om.ERMarkers.ZERO_OR_ONE_START+")");break;case v.db.Cardinality.ZERO_OR_MORE:E.attr("marker-start","url("+C+"#"+om.ERMarkers.ZERO_OR_MORE_START+")");break;case v.db.Cardinality.ONE_OR_MORE:E.attr("marker-start","url("+C+"#"+om.ERMarkers.ONE_OR_MORE_START+")");break;case v.db.Cardinality.ONLY_ONE:E.attr("marker-start","url("+C+"#"+om.ERMarkers.ONLY_ONE_START+")");break;case v.db.Cardinality.MD_PARENT:E.attr("marker-start","url("+C+"#"+om.ERMarkers.MD_PARENT_START+")");break}const D=E.node().getTotalLength(),P=E.node().getPointAtLength(D*.5),B="rel"+fBt,R=i.append("text").classed("er relationshipLabel",!0).attr("id",B).attr("x",P.x).attr("y",P.y).style("text-anchor","middle").style("dominant-baseline","middle").style("font-family",Oe().fontFamily).style("font-size",g1.fontSize+"px").text(a.roleA).node().getBBox();i.insert("rect","#"+B).classed("er relationshipLabelBox",!0).attr("x",P.x-R.width/2).attr("y",P.y-R.height/2).attr("width",R.width).attr("height",R.height)},o$e=function(i,a,f,p){g1=Oe().er,zt.info("Drawing ER diagram");const v=Oe().securityLevel;let m;v==="sandbox"&&(m=Mr("#i"+a));const E=Mr(v==="sandbox"?m.nodes()[0].contentDocument.body:"body").select(`[id='${a}']`);om.insertMarkers(E,g1);let C;C=new jf({multigraph:!0,directed:!0,compound:!1}).setGraph({rankdir:g1.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}});const D=r$e(E,p.db.getEntities(),C),P=s$e(p.db.getRelationships(),C);eL(C),i$e(E,C),P.forEach(function(Y){a$e(E,Y,C,D,p)});const B=g1.diagramPadding;lo.insertTitle(E,"entityTitleText",g1.titleTopMargin,p.db.getDiagramTitle());const j=E.node().getBBox(),R=j.width+B*2,H=j.height+B*2;Wb(E,H,R,g1.useMaxWidth),E.attr("viewBox",`${j.x-B} ${j.y-B} ${R} ${H}`)},c$e="28e9f9db-3c8d-5aa5-9faf-44286ae5937c";function u$e(i="",a=""){const f=i.replace(t$e,"");return`${dBt(a)}${dBt(f)}${Jje(i,c$e)}`}function dBt(i=""){return i.length>0?`${i}-`:""}const l$e=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:Rje,db:qje,renderer:{setConf:e$e,draw:o$e},styles:i=>` + fill: ${e.textColor}; + } + + rect.text { + fill: none; + stroke-width: 0; + } + + .icon-shape, .image-shape { + background-color: ${e.edgeLabelBackground}; + p { + background-color: ${e.edgeLabelBackground}; + padding: 2px; + } + rect { + opacity: 0.5; + background-color: ${e.edgeLabelBackground}; + fill: ${e.edgeLabelBackground}; + } + text-align: center; + } +`,"getStyles"),Wit=GOt});var tk={};xr(tk,{diagram:()=>VOt});var VOt,ek=R(()=>{"use strict";Ue();dL();Vit();Hit();Yit();VOt={parser:Uit,db:ew,renderer:Git,styles:Wit,init:o(e=>{e.flowchart||(e.flowchart={}),e.layout&&W7({layout:e.layout}),e.flowchart.arrowMarkerAbsolute=e.arrowMarkerAbsolute,W7({flowchart:{arrowMarkerAbsolute:e.arrowMarkerAbsolute}}),ew.clear(),ew.setGen("gen-2")},"init")}});var ER,Qit,Zit=R(()=>{"use strict";ER=function(){var e=o(function(A,L,M,N){for(M=M||{},N=A.length;N--;M[A[N]]=L);return M},"o"),t=[6,8,10,20,22,24,26,27,28],r=[1,10],n=[1,11],i=[1,12],a=[1,13],s=[1,14],l=[1,15],u=[1,21],h=[1,22],f=[1,23],d=[1,24],p=[1,25],m=[6,8,10,13,15,18,19,20,22,24,26,27,28,41,42,43,44,45],g=[1,34],y=[27,28,46,47],v=[41,42,43,44,45],x=[17,34],b=[1,54],w=[1,53],S=[17,34,36,38],T={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,":":13,role:14,BLOCK_START:15,attributes:16,BLOCK_STOP:17,SQS:18,SQE:19,title:20,title_value:21,acc_title:22,acc_title_value:23,acc_descr:24,acc_descr_value:25,acc_descr_multiline_value:26,ALPHANUM:27,ENTITY_NAME:28,attribute:29,attributeType:30,attributeName:31,attributeKeyTypeList:32,attributeComment:33,ATTRIBUTE_WORD:34,attributeKeyType:35,COMMA:36,ATTRIBUTE_KEY:37,COMMENT:38,cardinality:39,relType:40,ZERO_OR_ONE:41,ZERO_OR_MORE:42,ONE_OR_MORE:43,ONLY_ONE:44,MD_PARENT:45,NON_IDENTIFYING:46,IDENTIFYING:47,WORD:48,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:":",15:"BLOCK_START",17:"BLOCK_STOP",18:"SQS",19:"SQE",20:"title",21:"title_value",22:"acc_title",23:"acc_title_value",24:"acc_descr",25:"acc_descr_value",26:"acc_descr_multiline_value",27:"ALPHANUM",28:"ENTITY_NAME",34:"ATTRIBUTE_WORD",36:"COMMA",37:"ATTRIBUTE_KEY",38:"COMMENT",41:"ZERO_OR_ONE",42:"ZERO_OR_MORE",43:"ONE_OR_MORE",44:"ONLY_ONE",45:"MD_PARENT",46:"NON_IDENTIFYING",47:"IDENTIFYING",48:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,4],[9,3],[9,1],[9,7],[9,6],[9,4],[9,2],[9,2],[9,2],[9,1],[11,1],[11,1],[16,1],[16,2],[29,2],[29,3],[29,3],[29,4],[30,1],[31,1],[32,1],[32,3],[35,1],[33,1],[12,3],[39,1],[39,1],[39,1],[39,1],[39,1],[40,1],[40,1],[14,1],[14,1],[14,1]],performAction:o(function(L,M,N,k,I,C,O){var D=C.length-1;switch(I){case 1:break;case 2:this.$=[];break;case 3:C[D-1].push(C[D]),this.$=C[D-1];break;case 4:case 5:this.$=C[D];break;case 6:case 7:this.$=[];break;case 8:k.addEntity(C[D-4]),k.addEntity(C[D-2]),k.addRelationship(C[D-4],C[D],C[D-2],C[D-3]);break;case 9:k.addEntity(C[D-3]),k.addAttributes(C[D-3],C[D-1]);break;case 10:k.addEntity(C[D-2]);break;case 11:k.addEntity(C[D]);break;case 12:k.addEntity(C[D-6],C[D-4]),k.addAttributes(C[D-6],C[D-1]);break;case 13:k.addEntity(C[D-5],C[D-3]);break;case 14:k.addEntity(C[D-3],C[D-1]);break;case 15:case 16:this.$=C[D].trim(),k.setAccTitle(this.$);break;case 17:case 18:this.$=C[D].trim(),k.setAccDescription(this.$);break;case 19:case 43:this.$=C[D];break;case 20:case 41:case 42:this.$=C[D].replace(/"/g,"");break;case 21:case 29:this.$=[C[D]];break;case 22:C[D].push(C[D-1]),this.$=C[D];break;case 23:this.$={attributeType:C[D-1],attributeName:C[D]};break;case 24:this.$={attributeType:C[D-2],attributeName:C[D-1],attributeKeyTypeList:C[D]};break;case 25:this.$={attributeType:C[D-2],attributeName:C[D-1],attributeComment:C[D]};break;case 26:this.$={attributeType:C[D-3],attributeName:C[D-2],attributeKeyTypeList:C[D-1],attributeComment:C[D]};break;case 27:case 28:case 31:this.$=C[D];break;case 30:C[D-2].push(C[D]),this.$=C[D-2];break;case 32:this.$=C[D].replace(/"/g,"");break;case 33:this.$={cardA:C[D],relType:C[D-1],cardB:C[D-2]};break;case 34:this.$=k.Cardinality.ZERO_OR_ONE;break;case 35:this.$=k.Cardinality.ZERO_OR_MORE;break;case 36:this.$=k.Cardinality.ONE_OR_MORE;break;case 37:this.$=k.Cardinality.ONLY_ONE;break;case 38:this.$=k.Cardinality.MD_PARENT;break;case 39:this.$=k.Identification.NON_IDENTIFYING;break;case 40:this.$=k.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,20:r,22:n,24:i,26:a,27:s,28:l},e(t,[2,7],{1:[2,1]}),e(t,[2,3]),{9:16,11:9,20:r,22:n,24:i,26:a,27:s,28:l},e(t,[2,5]),e(t,[2,6]),e(t,[2,11],{12:17,39:20,15:[1,18],18:[1,19],41:u,42:h,43:f,44:d,45:p}),{21:[1,26]},{23:[1,27]},{25:[1,28]},e(t,[2,18]),e(m,[2,19]),e(m,[2,20]),e(t,[2,4]),{11:29,27:s,28:l},{16:30,17:[1,31],29:32,30:33,34:g},{11:35,27:s,28:l},{40:36,46:[1,37],47:[1,38]},e(y,[2,34]),e(y,[2,35]),e(y,[2,36]),e(y,[2,37]),e(y,[2,38]),e(t,[2,15]),e(t,[2,16]),e(t,[2,17]),{13:[1,39]},{17:[1,40]},e(t,[2,10]),{16:41,17:[2,21],29:32,30:33,34:g},{31:42,34:[1,43]},{34:[2,27]},{19:[1,44]},{39:45,41:u,42:h,43:f,44:d,45:p},e(v,[2,39]),e(v,[2,40]),{14:46,27:[1,49],28:[1,48],48:[1,47]},e(t,[2,9]),{17:[2,22]},e(x,[2,23],{32:50,33:51,35:52,37:b,38:w}),e([17,34,37,38],[2,28]),e(t,[2,14],{15:[1,55]}),e([27,28],[2,33]),e(t,[2,8]),e(t,[2,41]),e(t,[2,42]),e(t,[2,43]),e(x,[2,24],{33:56,36:[1,57],38:w}),e(x,[2,25]),e(S,[2,29]),e(x,[2,32]),e(S,[2,31]),{16:58,17:[1,59],29:32,30:33,34:g},e(x,[2,26]),{35:60,37:b},{17:[1,61]},e(t,[2,13]),e(S,[2,30]),e(t,[2,12])],defaultActions:{34:[2,27],41:[2,22]},parseError:o(function(L,M){if(M.recoverable)this.trace(L);else{var N=new Error(L);throw N.hash=M,N}},"parseError"),parse:o(function(L){var M=this,N=[0],k=[],I=[null],C=[],O=this.table,D="",P=0,F=0,B=0,G=2,z=1,W=C.slice.call(arguments,1),Q=Object.create(this.lexer),j={yy:{}};for(var at in this.yy)Object.prototype.hasOwnProperty.call(this.yy,at)&&(j.yy[at]=this.yy[at]);Q.setInput(L,j.yy),j.yy.lexer=Q,j.yy.parser=this,typeof Q.yylloc>"u"&&(Q.yylloc={});var X=Q.yylloc;C.push(X);var J=Q.options&&Q.options.ranges;typeof j.yy.parseError=="function"?this.parseError=j.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Z(Pt){N.length=N.length-2*Pt,I.length=I.length-Pt,C.length=C.length-Pt}o(Z,"popStack");function H(){var Pt;return Pt=k.pop()||Q.lex()||z,typeof Pt!="number"&&(Pt instanceof Array&&(k=Pt,Pt=k.pop()),Pt=M.symbols_[Pt]||Pt),Pt}o(H,"lex");for(var q,K,ot,ct,ut,et,Mt={},it,wt,Ot,St;;){if(ot=N[N.length-1],this.defaultActions[ot]?ct=this.defaultActions[ot]:((q===null||typeof q>"u")&&(q=H()),ct=O[ot]&&O[ot][q]),typeof ct>"u"||!ct.length||!ct[0]){var Vt="";St=[];for(it in O[ot])this.terminals_[it]&&it>G&&St.push("'"+this.terminals_[it]+"'");Q.showPosition?Vt="Parse error on line "+(P+1)+`: +`+Q.showPosition()+` +Expecting `+St.join(", ")+", got '"+(this.terminals_[q]||q)+"'":Vt="Parse error on line "+(P+1)+": Unexpected "+(q==z?"end of input":"'"+(this.terminals_[q]||q)+"'"),this.parseError(Vt,{text:Q.match,token:this.terminals_[q]||q,line:Q.yylineno,loc:X,expected:St})}if(ct[0]instanceof Array&&ct.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ot+", token: "+q);switch(ct[0]){case 1:N.push(q),I.push(Q.yytext),C.push(Q.yylloc),N.push(ct[1]),q=null,K?(q=K,K=null):(F=Q.yyleng,D=Q.yytext,P=Q.yylineno,X=Q.yylloc,B>0&&B--);break;case 2:if(wt=this.productions_[ct[1]][1],Mt.$=I[I.length-wt],Mt._$={first_line:C[C.length-(wt||1)].first_line,last_line:C[C.length-1].last_line,first_column:C[C.length-(wt||1)].first_column,last_column:C[C.length-1].last_column},J&&(Mt._$.range=[C[C.length-(wt||1)].range[0],C[C.length-1].range[1]]),et=this.performAction.apply(Mt,[D,F,P,j.yy,ct[1],I,C].concat(W)),typeof et<"u")return et;wt&&(N=N.slice(0,-1*wt*2),I=I.slice(0,-1*wt),C=C.slice(0,-1*wt)),N.push(this.productions_[ct[1]][0]),I.push(Mt.$),C.push(Mt._$),Ot=O[N[N.length-2]][N[N.length-1]],N.push(Ot);break;case 3:return!0}}return!0},"parse")},E=function(){var A={EOF:1,parseError:o(function(M,N){if(this.yy.parser)this.yy.parser.parseError(M,N);else throw new Error(M)},"parseError"),setInput:o(function(L,M){return this.yy=M||this.yy||{},this._input=L,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var L=this._input[0];this.yytext+=L,this.yyleng++,this.offset++,this.match+=L,this.matched+=L;var M=L.match(/(?:\r\n?|\n).*/g);return M?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),L},"input"),unput:o(function(L){var M=L.length,N=L.split(/(?:\r\n?|\n)/g);this._input=L+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-M),this.offset-=M;var k=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),N.length-1&&(this.yylineno-=N.length-1);var I=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:N?(N.length===k.length?this.yylloc.first_column:0)+k[k.length-N.length].length-N[0].length:this.yylloc.first_column-M},this.options.ranges&&(this.yylloc.range=[I[0],I[0]+this.yyleng-M]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(L){this.unput(this.match.slice(L))},"less"),pastInput:o(function(){var L=this.matched.substr(0,this.matched.length-this.match.length);return(L.length>20?"...":"")+L.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var L=this.match;return L.length<20&&(L+=this._input.substr(0,20-L.length)),(L.substr(0,20)+(L.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var L=this.pastInput(),M=new Array(L.length+1).join("-");return L+this.upcomingInput()+` +`+M+"^"},"showPosition"),test_match:o(function(L,M){var N,k,I;if(this.options.backtrack_lexer&&(I={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(I.yylloc.range=this.yylloc.range.slice(0))),k=L[0].match(/(?:\r\n?|\n).*/g),k&&(this.yylineno+=k.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:k?k[k.length-1].length-k[k.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+L[0].length},this.yytext+=L[0],this.match+=L[0],this.matches=L,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(L[0].length),this.matched+=L[0],N=this.performAction.call(this,this.yy,this,M,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),N)return N;if(this._backtrack){for(var C in I)this[C]=I[C];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var L,M,N,k;this._more||(this.yytext="",this.match="");for(var I=this._currentRules(),C=0;CM[0].length)){if(M=N,k=C,this.options.backtrack_lexer){if(L=this.test_match(N,I[C]),L!==!1)return L;if(this._backtrack){M=!1;continue}else return!1}else if(!this.options.flex)break}return M?(L=this.test_match(M,I[k]),L!==!1?L:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var M=this.next();return M||this.lex()},"lex"),begin:o(function(M){this.conditionStack.push(M)},"begin"),popState:o(function(){var M=this.conditionStack.length-1;return M>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(M){return M=this.conditionStack.length-1-Math.abs(M||0),M>=0?this.conditionStack[M]:"INITIAL"},"topState"),pushState:o(function(M){this.begin(M)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:o(function(M,N,k,I){var C=I;switch(k){case 0:return this.begin("acc_title"),22;break;case 1:return this.popState(),"acc_title_value";break;case 2:return this.begin("acc_descr"),24;break;case 3:return this.popState(),"acc_descr_value";break;case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return 10;case 8:break;case 9:return 8;case 10:return 28;case 11:return 48;case 12:return 4;case 13:return this.begin("block"),15;break;case 14:return 36;case 15:break;case 16:return 37;case 17:return 34;case 18:return 34;case 19:return 38;case 20:break;case 21:return this.popState(),17;break;case 22:return N.yytext[0];case 23:return 18;case 24:return 19;case 25:return 41;case 26:return 43;case 27:return 43;case 28:return 43;case 29:return 41;case 30:return 41;case 31:return 42;case 32:return 42;case 33:return 42;case 34:return 42;case 35:return 42;case 36:return 43;case 37:return 42;case 38:return 43;case 39:return 44;case 40:return 44;case 41:return 44;case 42:return 44;case 43:return 41;case 44:return 42;case 45:return 43;case 46:return 45;case 47:return 46;case 48:return 47;case 49:return 47;case 50:return 46;case 51:return 46;case 52:return 46;case 53:return 27;case 54:return N.yytext[0];case 55:return 6}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:,)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:(.*?)[~](.*?)*[~])/i,/^(?:[\*A-Za-z_][A-Za-z0-9\-_\[\]\(\)]*)/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:one or zero\b)/i,/^(?:one or more\b)/i,/^(?:one or many\b)/i,/^(?:1\+)/i,/^(?:\|o\b)/i,/^(?:zero or one\b)/i,/^(?:zero or more\b)/i,/^(?:zero or many\b)/i,/^(?:0\+)/i,/^(?:\}o\b)/i,/^(?:many\(0\))/i,/^(?:many\(1\))/i,/^(?:many\b)/i,/^(?:\}\|)/i,/^(?:one\b)/i,/^(?:only one\b)/i,/^(?:1\b)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:\s*u\b)/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:[A-Za-z_][A-Za-z0-9\-_]*)/i,/^(?:.)/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},block:{rules:[14,15,16,17,18,19,20,21,22],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55],inclusive:!0}}};return A}();T.lexer=E;function _(){this.yy={}}return o(_,"Parser"),_.prototype=T,T.Parser=_,new _}();ER.parser=ER;Qit=ER});var Kd,CR,jOt,KOt,Jit,QOt,ZOt,JOt,tPt,ePt,tat,eat=R(()=>{"use strict";ce();Ue();Ci();Kd=new Map,CR=[],jOt={ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE",MD_PARENT:"MD_PARENT"},KOt={NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},Jit=o(function(e,t=void 0){return Kd.has(e)?!Kd.get(e).alias&&t&&(Kd.get(e).alias=t,V.info(`Add alias '${t}' to entity '${e}'`)):(Kd.set(e,{attributes:[],alias:t}),V.info("Added new entity :",e)),Kd.get(e)},"addEntity"),QOt=o(()=>Kd,"getEntities"),ZOt=o(function(e,t){let r=Jit(e),n;for(n=t.length-1;n>=0;n--)r.attributes.push(t[n]),V.debug("Added attribute ",t[n].attributeName)},"addAttributes"),JOt=o(function(e,t,r,n){let i={entityA:e,roleA:t,entityB:r,relSpec:n};CR.push(i),V.debug("Added new relationship :",i)},"addRelationship"),tPt=o(()=>CR,"getRelationships"),ePt=o(function(){Kd=new Map,CR=[],Ar()},"clear"),tat={Cardinality:jOt,Identification:KOt,getConfig:o(()=>pt().er,"getConfig"),addEntity:Jit,addAttributes:ZOt,getEntities:QOt,addRelationship:JOt,getRelationships:tPt,clear:ePt,setAccTitle:Mr,getAccTitle:Br,setAccDescription:Fr,getAccDescription:zr,setDiagramTitle:cn,getDiagramTitle:Jr}});var Ol,rPt,Wo,rat=R(()=>{"use strict";Ol={ONLY_ONE_START:"ONLY_ONE_START",ONLY_ONE_END:"ONLY_ONE_END",ZERO_OR_ONE_START:"ZERO_OR_ONE_START",ZERO_OR_ONE_END:"ZERO_OR_ONE_END",ONE_OR_MORE_START:"ONE_OR_MORE_START",ONE_OR_MORE_END:"ONE_OR_MORE_END",ZERO_OR_MORE_START:"ZERO_OR_MORE_START",ZERO_OR_MORE_END:"ZERO_OR_MORE_END",MD_PARENT_END:"MD_PARENT_END",MD_PARENT_START:"MD_PARENT_START"},rPt=o(function(e,t){let r;e.append("defs").append("marker").attr("id",Ol.MD_PARENT_START).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",Ol.MD_PARENT_END).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",Ol.ONLY_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",t.stroke).attr("fill","none").attr("d","M9,0 L9,18 M15,0 L15,18"),e.append("defs").append("marker").attr("id",Ol.ONLY_ONE_END).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",t.stroke).attr("fill","none").attr("d","M3,0 L3,18 M9,0 L9,18"),r=e.append("defs").append("marker").attr("id",Ol.ZERO_OR_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto"),r.append("circle").attr("stroke",t.stroke).attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),r.append("path").attr("stroke",t.stroke).attr("fill","none").attr("d","M9,0 L9,18"),r=e.append("defs").append("marker").attr("id",Ol.ZERO_OR_ONE_END).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto"),r.append("circle").attr("stroke",t.stroke).attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),r.append("path").attr("stroke",t.stroke).attr("fill","none").attr("d","M21,0 L21,18"),e.append("defs").append("marker").attr("id",Ol.ONE_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",t.stroke).attr("fill","none").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),e.append("defs").append("marker").attr("id",Ol.ONE_OR_MORE_END).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",t.stroke).attr("fill","none").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18"),r=e.append("defs").append("marker").attr("id",Ol.ZERO_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto"),r.append("circle").attr("stroke",t.stroke).attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),r.append("path").attr("stroke",t.stroke).attr("fill","none").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18"),r=e.append("defs").append("marker").attr("id",Ol.ZERO_OR_MORE_END).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto"),r.append("circle").attr("stroke",t.stroke).attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),r.append("path").attr("stroke",t.stroke).attr("fill","none").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"insertMarkers"),Wo={ERMarkers:Ol,insertMarkers:rPt}});var nat,iat=R(()=>{"use strict";nat=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i});function nPt(e){return typeof e=="string"&&nat.test(e)}var aat,sat=R(()=>{"use strict";iat();o(nPt,"validate");aat=nPt});function oat(e,t=0){return Ta[e[t+0]]+Ta[e[t+1]]+Ta[e[t+2]]+Ta[e[t+3]]+"-"+Ta[e[t+4]]+Ta[e[t+5]]+"-"+Ta[e[t+6]]+Ta[e[t+7]]+"-"+Ta[e[t+8]]+Ta[e[t+9]]+"-"+Ta[e[t+10]]+Ta[e[t+11]]+Ta[e[t+12]]+Ta[e[t+13]]+Ta[e[t+14]]+Ta[e[t+15]]}var Ta,lat=R(()=>{"use strict";Ta=[];for(let e=0;e<256;++e)Ta.push((e+256).toString(16).slice(1));o(oat,"unsafeStringify")});function iPt(e){if(!aat(e))throw TypeError("Invalid UUID");let t,r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=t&255,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=t&255,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=t&255,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=t&255,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=t&255,r}var cat,uat=R(()=>{"use strict";sat();o(iPt,"parse");cat=iPt});function aPt(e){e=unescape(encodeURIComponent(e));let t=[];for(let r=0;r{"use strict";lat();uat();o(aPt,"stringToBytes");sPt="6ba7b810-9dad-11d1-80b4-00c04fd430c8",oPt="6ba7b811-9dad-11d1-80b4-00c04fd430c8";o(SR,"v35")});function lPt(e,t,r,n){switch(e){case 0:return t&r^~t&n;case 1:return t^r^n;case 2:return t&r^t&n^r&n;case 3:return t^r^n}}function AR(e,t){return e<>>32-t}function cPt(e){let t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof e=="string"){let s=unescape(encodeURIComponent(e));e=[];for(let l=0;l>>0;p=d,d=f,f=AR(h,30)>>>0,h=u,u=y}r[0]=r[0]+u>>>0,r[1]=r[1]+h>>>0,r[2]=r[2]+f>>>0,r[3]=r[3]+d>>>0,r[4]=r[4]+p>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,r[0]&255,r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,r[1]&255,r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,r[2]&255,r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,r[3]&255,r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,r[4]&255]}var fat,dat=R(()=>{"use strict";o(lPt,"f");o(AR,"ROTL");o(cPt,"sha1");fat=cPt});var uPt,_R,pat=R(()=>{"use strict";hat();dat();uPt=SR("v5",80,fat),_R=uPt});var mat=R(()=>{"use strict";pat()});function bPt(e="",t=""){let r=e.replace(hPt,"");return`${yat(t)}${yat(r)}${_R(e,xPt)}`}function yat(e=""){return e.length>0?`${e}-`:""}var hPt,zi,l2,fPt,dPt,pPt,mPt,vat,gPt,gat,yPt,vPt,xPt,xat,bat=R(()=>{"use strict";wa();ur();Xd();Ue();ce();_r();rat();Jn();hr();mat();hPt=/[^\dA-Za-z](\W)*/g,zi={},l2=new Map,fPt=o(function(e){let t=Object.keys(e);for(let r of t)zi[r]=e[r]},"setConf"),dPt=o((e,t,r)=>{let n=zi.entityPadding/3,i=zi.entityPadding/3,a=zi.fontSize*.85,s=t.node().getBBox(),l=[],u=!1,h=!1,f=0,d=0,p=0,m=0,g=s.height+n*2,y=1;r.forEach(w=>{w.attributeKeyTypeList!==void 0&&w.attributeKeyTypeList.length>0&&(u=!0),w.attributeComment!==void 0&&(h=!0)}),r.forEach(w=>{let S=`${t.node().id}-attr-${y}`,T=0,E=yh(w.attributeType),_=e.append("text").classed("er entityLabel",!0).attr("id",`${S}-type`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",pt().fontFamily).style("font-size",a+"px").text(E),A=e.append("text").classed("er entityLabel",!0).attr("id",`${S}-name`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",pt().fontFamily).style("font-size",a+"px").text(w.attributeName),L={};L.tn=_,L.nn=A;let M=_.node().getBBox(),N=A.node().getBBox();if(f=Math.max(f,M.width),d=Math.max(d,N.width),T=Math.max(M.height,N.height),u){let k=w.attributeKeyTypeList!==void 0?w.attributeKeyTypeList.join(","):"",I=e.append("text").classed("er entityLabel",!0).attr("id",`${S}-key`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",pt().fontFamily).style("font-size",a+"px").text(k);L.kn=I;let C=I.node().getBBox();p=Math.max(p,C.width),T=Math.max(T,C.height)}if(h){let k=e.append("text").classed("er entityLabel",!0).attr("id",`${S}-comment`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",pt().fontFamily).style("font-size",a+"px").text(w.attributeComment||"");L.cn=k;let I=k.node().getBBox();m=Math.max(m,I.width),T=Math.max(T,I.height)}L.height=T,l.push(L),g+=T+n*2,y+=1});let v=4;u&&(v+=2),h&&(v+=2);let x=f+d+p+m,b={width:Math.max(zi.minEntityWidth,Math.max(s.width+zi.entityPadding*2,x+i*v)),height:r.length>0?g:Math.max(zi.minEntityHeight,s.height+zi.entityPadding*2)};if(r.length>0){let w=Math.max(0,(b.width-x-i*v)/(v/2));t.attr("transform","translate("+b.width/2+","+(n+s.height/2)+")");let S=s.height+n*2,T="attributeBoxOdd";l.forEach(E=>{let _=S+n+E.height/2;E.tn.attr("transform","translate("+i+","+_+")");let A=e.insert("rect","#"+E.tn.node().id).classed(`er ${T}`,!0).attr("x",0).attr("y",S).attr("width",f+i*2+w).attr("height",E.height+n*2),L=parseFloat(A.attr("x"))+parseFloat(A.attr("width"));E.nn.attr("transform","translate("+(L+i)+","+_+")");let M=e.insert("rect","#"+E.nn.node().id).classed(`er ${T}`,!0).attr("x",L).attr("y",S).attr("width",d+i*2+w).attr("height",E.height+n*2),N=parseFloat(M.attr("x"))+parseFloat(M.attr("width"));if(u){E.kn.attr("transform","translate("+(N+i)+","+_+")");let k=e.insert("rect","#"+E.kn.node().id).classed(`er ${T}`,!0).attr("x",N).attr("y",S).attr("width",p+i*2+w).attr("height",E.height+n*2);N=parseFloat(k.attr("x"))+parseFloat(k.attr("width"))}h&&(E.cn.attr("transform","translate("+(N+i)+","+_+")"),e.insert("rect","#"+E.cn.node().id).classed(`er ${T}`,"true").attr("x",N).attr("y",S).attr("width",m+i*2+w).attr("height",E.height+n*2)),S+=E.height+n*2,T=T==="attributeBoxOdd"?"attributeBoxEven":"attributeBoxOdd"})}else b.height=Math.max(zi.minEntityHeight,g),t.attr("transform","translate("+b.width/2+","+b.height/2+")");return b},"drawAttributes"),pPt=o(function(e,t,r){let n=[...t.keys()],i;return n.forEach(function(a){let s=bPt(a,"entity");l2.set(a,s);let l=e.append("g").attr("id",s);i=i===void 0?s:i;let u="text-"+s,h=l.append("text").classed("er entityLabel",!0).attr("id",u).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","middle").style("font-family",pt().fontFamily).style("font-size",zi.fontSize+"px").text(t.get(a).alias??a),{width:f,height:d}=dPt(l,h,t.get(a).attributes),m=l.insert("rect","#"+u).classed("er entityBox",!0).attr("x",0).attr("y",0).attr("width",f).attr("height",d).node().getBBox();r.setNode(s,{width:m.width,height:m.height,shape:"rect",id:s})}),i},"drawEntities"),mPt=o(function(e,t){t.nodes().forEach(function(r){r!==void 0&&t.node(r)!==void 0&&e.select("#"+r).attr("transform","translate("+(t.node(r).x-t.node(r).width/2)+","+(t.node(r).y-t.node(r).height/2)+" )")})},"adjustEntities"),vat=o(function(e){return(e.entityA+e.roleA+e.entityB).replace(/\s/g,"")},"getEdgeName"),gPt=o(function(e,t){return e.forEach(function(r){t.setEdge(l2.get(r.entityA),l2.get(r.entityB),{relationship:r},vat(r))}),e},"addRelationships"),gat=0,yPt=o(function(e,t,r,n,i){gat++;let a=r.edge(l2.get(t.entityA),l2.get(t.entityB),vat(t)),s=ma().x(function(y){return y.x}).y(function(y){return y.y}).curve(Ts),l=e.insert("path","#"+n).classed("er relationshipLine",!0).attr("d",s(a.points)).style("stroke",zi.stroke).style("fill","none");t.relSpec.relType===i.db.Identification.NON_IDENTIFYING&&l.attr("stroke-dasharray","8,8");let u="";switch(zi.arrowMarkerAbsolute&&(u=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,u=u.replace(/\(/g,"\\("),u=u.replace(/\)/g,"\\)")),t.relSpec.cardA){case i.db.Cardinality.ZERO_OR_ONE:l.attr("marker-end","url("+u+"#"+Wo.ERMarkers.ZERO_OR_ONE_END+")");break;case i.db.Cardinality.ZERO_OR_MORE:l.attr("marker-end","url("+u+"#"+Wo.ERMarkers.ZERO_OR_MORE_END+")");break;case i.db.Cardinality.ONE_OR_MORE:l.attr("marker-end","url("+u+"#"+Wo.ERMarkers.ONE_OR_MORE_END+")");break;case i.db.Cardinality.ONLY_ONE:l.attr("marker-end","url("+u+"#"+Wo.ERMarkers.ONLY_ONE_END+")");break;case i.db.Cardinality.MD_PARENT:l.attr("marker-end","url("+u+"#"+Wo.ERMarkers.MD_PARENT_END+")");break}switch(t.relSpec.cardB){case i.db.Cardinality.ZERO_OR_ONE:l.attr("marker-start","url("+u+"#"+Wo.ERMarkers.ZERO_OR_ONE_START+")");break;case i.db.Cardinality.ZERO_OR_MORE:l.attr("marker-start","url("+u+"#"+Wo.ERMarkers.ZERO_OR_MORE_START+")");break;case i.db.Cardinality.ONE_OR_MORE:l.attr("marker-start","url("+u+"#"+Wo.ERMarkers.ONE_OR_MORE_START+")");break;case i.db.Cardinality.ONLY_ONE:l.attr("marker-start","url("+u+"#"+Wo.ERMarkers.ONLY_ONE_START+")");break;case i.db.Cardinality.MD_PARENT:l.attr("marker-start","url("+u+"#"+Wo.ERMarkers.MD_PARENT_START+")");break}let h=l.node().getTotalLength(),f=l.node().getPointAtLength(h*.5),d="rel"+gat,p=t.roleA.split(/
    /g),m=e.append("text").classed("er relationshipLabel",!0).attr("id",d).attr("x",f.x).attr("y",f.y).style("text-anchor","middle").style("dominant-baseline","middle").style("font-family",pt().fontFamily).style("font-size",zi.fontSize+"px");if(p.length==1)m.text(t.roleA);else{let y=-(p.length-1)*.5;p.forEach((v,x)=>{m.append("tspan").attr("x",f.x).attr("dy",`${x===0?y:1}em`).text(v)})}let g=m.node().getBBox();e.insert("rect","#"+d).classed("er relationshipLabelBox",!0).attr("x",f.x-g.width/2).attr("y",f.y-g.height/2).attr("width",g.width).attr("height",g.height)},"drawRelationshipFromLayout"),vPt=o(function(e,t,r,n){zi=pt().er,V.info("Drawing ER diagram");let i=pt().securityLevel,a;i==="sandbox"&&(a=Gt("#i"+t));let l=(i==="sandbox"?Gt(a.nodes()[0].contentDocument.body):Gt("body")).select(`[id='${t}']`);Wo.insertMarkers(l,zi);let u;u=new yr({multigraph:!0,directed:!0,compound:!1}).setGraph({rankdir:zi.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}});let h=pPt(l,n.db.getEntities(),u),f=gPt(n.db.getRelationships(),u);co(u),mPt(l,u),f.forEach(function(y){yPt(l,y,u,h,n)});let d=zi.diagramPadding;Oe.insertTitle(l,"entityTitleText",zi.titleTopMargin,n.db.getDiagramTitle());let p=l.node().getBBox(),m=p.width+d*2,g=p.height+d*2;Pr(l,g,m,zi.useMaxWidth),l.attr("viewBox",`${p.x-d} ${p.y-d} ${m} ${g}`)},"draw"),xPt="28e9f9db-3c8d-5aa5-9faf-44286ae5937c";o(bPt,"generateId");o(yat,"strWithHyphen");xat={setConf:fPt,draw:vPt}});var wPt,wat,Tat=R(()=>{"use strict";wPt=o(e=>` .entityBox { - fill: ${i.mainBkg}; - stroke: ${i.nodeBorder}; + fill: ${e.mainBkg}; + stroke: ${e.nodeBorder}; } .attributeBoxOdd { - fill: ${i.attributeBackgroundColorOdd}; - stroke: ${i.nodeBorder}; + fill: ${e.attributeBackgroundColorOdd}; + stroke: ${e.nodeBorder}; } .attributeBoxEven { - fill: ${i.attributeBackgroundColorEven}; - stroke: ${i.nodeBorder}; + fill: ${e.attributeBackgroundColorEven}; + stroke: ${e.nodeBorder}; } .relationshipLabelBox { - fill: ${i.tertiaryColor}; + fill: ${e.tertiaryColor}; opacity: 0.7; - background-color: ${i.tertiaryColor}; + background-color: ${e.tertiaryColor}; rect { opacity: 0.5; } } .relationshipLine { - stroke: ${i.lineColor}; + stroke: ${e.lineColor}; } .entityTitleText { text-anchor: middle; font-size: 18px; - fill: ${i.textColor}; + fill: ${e.textColor}; } #MD_PARENT_START { fill: #f5f5f5 !important; - stroke: ${i.lineColor} !important; + stroke: ${e.lineColor} !important; stroke-width: 1; } #MD_PARENT_END { fill: #f5f5f5 !important; - stroke: ${i.lineColor} !important; + stroke: ${e.lineColor} !important; stroke-width: 1; } -`}},Symbol.toStringTag,{value:"Module"}));var k0t=function(){var i=function(mt,rt,wt,gt){for(wt=wt||{},gt=mt.length;gt--;wt[mt[gt]]=rt);return wt},a=[1,4],f=[1,7],p=[1,5],v=[1,9],m=[1,6],b=[2,6],E=[1,16],C=[6,8,14,20,22,24,25,27,29,32,37,40,50,55],D=[8,14,20,22,24,25,27,29,32,37,40],P=[8,13,14,20,22,24,25,27,29,32,37,40],B=[1,26],j=[6,8,14,50,55],R=[8,14,55],H=[1,53],Y=[1,52],it=[8,14,30,33,35,38,55],nt=[1,67],st=[1,68],pt=[1,69],Tt=[8,14,33,35,42,55],kt={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,directive:5,GG:6,document:7,EOF:8,":":9,DIR:10,options:11,body:12,OPT:13,NL:14,line:15,statement:16,commitStatement:17,mergeStatement:18,cherryPickStatement:19,acc_title:20,acc_title_value:21,acc_descr:22,acc_descr_value:23,acc_descr_multiline_value:24,section:25,branchStatement:26,CHECKOUT:27,ref:28,BRANCH:29,ORDER:30,NUM:31,CHERRY_PICK:32,COMMIT_ID:33,STR:34,COMMIT_TAG:35,EMPTYSTR:36,MERGE:37,COMMIT_TYPE:38,commitType:39,COMMIT:40,commit_arg:41,COMMIT_MSG:42,NORMAL:43,REVERSE:44,HIGHLIGHT:45,openDirective:46,typeDirective:47,closeDirective:48,argDirective:49,open_directive:50,type_directive:51,arg_directive:52,close_directive:53,ID:54,";":55,$accept:0,$end:1},terminals_:{2:"error",6:"GG",8:"EOF",9:":",10:"DIR",13:"OPT",14:"NL",20:"acc_title",21:"acc_title_value",22:"acc_descr",23:"acc_descr_value",24:"acc_descr_multiline_value",25:"section",27:"CHECKOUT",29:"BRANCH",30:"ORDER",31:"NUM",32:"CHERRY_PICK",33:"COMMIT_ID",34:"STR",35:"COMMIT_TAG",36:"EMPTYSTR",37:"MERGE",38:"COMMIT_TYPE",40:"COMMIT",42:"COMMIT_MSG",43:"NORMAL",44:"REVERSE",45:"HIGHLIGHT",50:"open_directive",51:"type_directive",52:"arg_directive",53:"close_directive",54:"ID",55:";"},productions_:[0,[3,2],[3,2],[3,3],[3,4],[3,5],[7,0],[7,2],[11,2],[11,1],[12,0],[12,2],[15,2],[15,1],[16,1],[16,1],[16,1],[16,2],[16,2],[16,1],[16,1],[16,1],[16,2],[26,2],[26,4],[19,3],[19,5],[19,5],[19,5],[19,5],[18,2],[18,4],[18,4],[18,4],[18,6],[18,6],[18,6],[18,6],[18,6],[18,6],[18,8],[18,8],[18,8],[18,8],[18,8],[18,8],[17,2],[17,3],[17,3],[17,5],[17,5],[17,3],[17,5],[17,5],[17,5],[17,5],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,3],[17,5],[17,5],[17,5],[17,5],[17,5],[17,5],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[41,0],[41,1],[39,1],[39,1],[39,1],[5,3],[5,5],[46,1],[47,1],[49,1],[48,1],[28,1],[28,1],[4,1],[4,1],[4,1]],performAction:function(rt,wt,gt,lt,_t,X,Rt){var ft=X.length-1;switch(_t){case 3:return X[ft];case 4:return X[ft-1];case 5:return lt.setDirection(X[ft-3]),X[ft-1];case 7:lt.setOptions(X[ft-1]),this.$=X[ft];break;case 8:X[ft-1]+=X[ft],this.$=X[ft-1];break;case 10:this.$=[];break;case 11:X[ft-1].push(X[ft]),this.$=X[ft-1];break;case 12:this.$=X[ft-1];break;case 17:this.$=X[ft].trim(),lt.setAccTitle(this.$);break;case 18:case 19:this.$=X[ft].trim(),lt.setAccDescription(this.$);break;case 20:lt.addSection(X[ft].substr(8)),this.$=X[ft].substr(8);break;case 22:lt.checkout(X[ft]);break;case 23:lt.branch(X[ft]);break;case 24:lt.branch(X[ft-2],X[ft]);break;case 25:lt.cherryPick(X[ft],"",void 0);break;case 26:lt.cherryPick(X[ft-2],"",X[ft]);break;case 27:case 29:lt.cherryPick(X[ft-2],"","");break;case 28:lt.cherryPick(X[ft],"",X[ft-2]);break;case 30:lt.merge(X[ft],"","","");break;case 31:lt.merge(X[ft-2],X[ft],"","");break;case 32:lt.merge(X[ft-2],"",X[ft],"");break;case 33:lt.merge(X[ft-2],"","",X[ft]);break;case 34:lt.merge(X[ft-4],X[ft],"",X[ft-2]);break;case 35:lt.merge(X[ft-4],"",X[ft],X[ft-2]);break;case 36:lt.merge(X[ft-4],"",X[ft-2],X[ft]);break;case 37:lt.merge(X[ft-4],X[ft-2],X[ft],"");break;case 38:lt.merge(X[ft-4],X[ft-2],"",X[ft]);break;case 39:lt.merge(X[ft-4],X[ft],X[ft-2],"");break;case 40:lt.merge(X[ft-6],X[ft-4],X[ft-2],X[ft]);break;case 41:lt.merge(X[ft-6],X[ft],X[ft-4],X[ft-2]);break;case 42:lt.merge(X[ft-6],X[ft-4],X[ft],X[ft-2]);break;case 43:lt.merge(X[ft-6],X[ft-2],X[ft-4],X[ft]);break;case 44:lt.merge(X[ft-6],X[ft],X[ft-2],X[ft-4]);break;case 45:lt.merge(X[ft-6],X[ft-2],X[ft],X[ft-4]);break;case 46:lt.commit(X[ft]);break;case 47:lt.commit("","",lt.commitType.NORMAL,X[ft]);break;case 48:lt.commit("","",X[ft],"");break;case 49:lt.commit("","",X[ft],X[ft-2]);break;case 50:lt.commit("","",X[ft-2],X[ft]);break;case 51:lt.commit("",X[ft],lt.commitType.NORMAL,"");break;case 52:lt.commit("",X[ft-2],lt.commitType.NORMAL,X[ft]);break;case 53:lt.commit("",X[ft],lt.commitType.NORMAL,X[ft-2]);break;case 54:lt.commit("",X[ft-2],X[ft],"");break;case 55:lt.commit("",X[ft],X[ft-2],"");break;case 56:lt.commit("",X[ft-4],X[ft-2],X[ft]);break;case 57:lt.commit("",X[ft-4],X[ft],X[ft-2]);break;case 58:lt.commit("",X[ft-2],X[ft-4],X[ft]);break;case 59:lt.commit("",X[ft],X[ft-4],X[ft-2]);break;case 60:lt.commit("",X[ft],X[ft-2],X[ft-4]);break;case 61:lt.commit("",X[ft-2],X[ft],X[ft-4]);break;case 62:lt.commit(X[ft],"",lt.commitType.NORMAL,"");break;case 63:lt.commit(X[ft],"",lt.commitType.NORMAL,X[ft-2]);break;case 64:lt.commit(X[ft-2],"",lt.commitType.NORMAL,X[ft]);break;case 65:lt.commit(X[ft-2],"",X[ft],"");break;case 66:lt.commit(X[ft],"",X[ft-2],"");break;case 67:lt.commit(X[ft],X[ft-2],lt.commitType.NORMAL,"");break;case 68:lt.commit(X[ft-2],X[ft],lt.commitType.NORMAL,"");break;case 69:lt.commit(X[ft-4],"",X[ft-2],X[ft]);break;case 70:lt.commit(X[ft-4],"",X[ft],X[ft-2]);break;case 71:lt.commit(X[ft-2],"",X[ft-4],X[ft]);break;case 72:lt.commit(X[ft],"",X[ft-4],X[ft-2]);break;case 73:lt.commit(X[ft],"",X[ft-2],X[ft-4]);break;case 74:lt.commit(X[ft-2],"",X[ft],X[ft-4]);break;case 75:lt.commit(X[ft-4],X[ft],X[ft-2],"");break;case 76:lt.commit(X[ft-4],X[ft-2],X[ft],"");break;case 77:lt.commit(X[ft-2],X[ft],X[ft-4],"");break;case 78:lt.commit(X[ft],X[ft-2],X[ft-4],"");break;case 79:lt.commit(X[ft],X[ft-4],X[ft-2],"");break;case 80:lt.commit(X[ft-2],X[ft-4],X[ft],"");break;case 81:lt.commit(X[ft-4],X[ft],lt.commitType.NORMAL,X[ft-2]);break;case 82:lt.commit(X[ft-4],X[ft-2],lt.commitType.NORMAL,X[ft]);break;case 83:lt.commit(X[ft-2],X[ft],lt.commitType.NORMAL,X[ft-4]);break;case 84:lt.commit(X[ft],X[ft-2],lt.commitType.NORMAL,X[ft-4]);break;case 85:lt.commit(X[ft],X[ft-4],lt.commitType.NORMAL,X[ft-2]);break;case 86:lt.commit(X[ft-2],X[ft-4],lt.commitType.NORMAL,X[ft]);break;case 87:lt.commit(X[ft-6],X[ft-4],X[ft-2],X[ft]);break;case 88:lt.commit(X[ft-6],X[ft-4],X[ft],X[ft-2]);break;case 89:lt.commit(X[ft-6],X[ft-2],X[ft-4],X[ft]);break;case 90:lt.commit(X[ft-6],X[ft],X[ft-4],X[ft-2]);break;case 91:lt.commit(X[ft-6],X[ft-2],X[ft],X[ft-4]);break;case 92:lt.commit(X[ft-6],X[ft],X[ft-2],X[ft-4]);break;case 93:lt.commit(X[ft-4],X[ft-6],X[ft-2],X[ft]);break;case 94:lt.commit(X[ft-4],X[ft-6],X[ft],X[ft-2]);break;case 95:lt.commit(X[ft-2],X[ft-6],X[ft-4],X[ft]);break;case 96:lt.commit(X[ft],X[ft-6],X[ft-4],X[ft-2]);break;case 97:lt.commit(X[ft-2],X[ft-6],X[ft],X[ft-4]);break;case 98:lt.commit(X[ft],X[ft-6],X[ft-2],X[ft-4]);break;case 99:lt.commit(X[ft],X[ft-4],X[ft-2],X[ft-6]);break;case 100:lt.commit(X[ft-2],X[ft-4],X[ft],X[ft-6]);break;case 101:lt.commit(X[ft],X[ft-2],X[ft-4],X[ft-6]);break;case 102:lt.commit(X[ft-2],X[ft],X[ft-4],X[ft-6]);break;case 103:lt.commit(X[ft-4],X[ft-2],X[ft],X[ft-6]);break;case 104:lt.commit(X[ft-4],X[ft],X[ft-2],X[ft-6]);break;case 105:lt.commit(X[ft-2],X[ft-4],X[ft-6],X[ft]);break;case 106:lt.commit(X[ft],X[ft-4],X[ft-6],X[ft-2]);break;case 107:lt.commit(X[ft-2],X[ft],X[ft-6],X[ft-4]);break;case 108:lt.commit(X[ft],X[ft-2],X[ft-6],X[ft-4]);break;case 109:lt.commit(X[ft-4],X[ft-2],X[ft-6],X[ft]);break;case 110:lt.commit(X[ft-4],X[ft],X[ft-6],X[ft-2]);break;case 111:this.$="";break;case 112:this.$=X[ft];break;case 113:this.$=lt.commitType.NORMAL;break;case 114:this.$=lt.commitType.REVERSE;break;case 115:this.$=lt.commitType.HIGHLIGHT;break;case 118:lt.parseDirective("%%{","open_directive");break;case 119:lt.parseDirective(X[ft],"type_directive");break;case 120:X[ft]=X[ft].trim().replace(/'/g,'"'),lt.parseDirective(X[ft],"arg_directive");break;case 121:lt.parseDirective("}%%","close_directive","gitGraph");break}},table:[{3:1,4:2,5:3,6:a,8:f,14:p,46:8,50:v,55:m},{1:[3]},{3:10,4:2,5:3,6:a,8:f,14:p,46:8,50:v,55:m},{3:11,4:2,5:3,6:a,8:f,14:p,46:8,50:v,55:m},{7:12,8:b,9:[1,13],10:[1,14],11:15,14:E},i(C,[2,124]),i(C,[2,125]),i(C,[2,126]),{47:17,51:[1,18]},{51:[2,118]},{1:[2,1]},{1:[2,2]},{8:[1,19]},{7:20,8:b,11:15,14:E},{9:[1,21]},i(D,[2,10],{12:22,13:[1,23]}),i(P,[2,9]),{9:[1,25],48:24,53:B},i([9,53],[2,119]),{1:[2,3]},{8:[1,27]},{7:28,8:b,11:15,14:E},{8:[2,7],14:[1,31],15:29,16:30,17:32,18:33,19:34,20:[1,35],22:[1,36],24:[1,37],25:[1,38],26:39,27:[1,40],29:[1,44],32:[1,43],37:[1,42],40:[1,41]},i(P,[2,8]),i(j,[2,116]),{49:45,52:[1,46]},i(j,[2,121]),{1:[2,4]},{8:[1,47]},i(D,[2,11]),{4:48,8:f,14:p,55:m},i(D,[2,13]),i(R,[2,14]),i(R,[2,15]),i(R,[2,16]),{21:[1,49]},{23:[1,50]},i(R,[2,19]),i(R,[2,20]),i(R,[2,21]),{28:51,34:H,54:Y},i(R,[2,111],{41:54,33:[1,57],34:[1,59],35:[1,55],38:[1,56],42:[1,58]}),{28:60,34:H,54:Y},{33:[1,61],35:[1,62]},{28:63,34:H,54:Y},{48:64,53:B},{53:[2,120]},{1:[2,5]},i(D,[2,12]),i(R,[2,17]),i(R,[2,18]),i(R,[2,22]),i(it,[2,122]),i(it,[2,123]),i(R,[2,46]),{34:[1,65]},{39:66,43:nt,44:st,45:pt},{34:[1,70]},{34:[1,71]},i(R,[2,112]),i(R,[2,30],{33:[1,72],35:[1,74],38:[1,73]}),{34:[1,75]},{34:[1,76],36:[1,77]},i(R,[2,23],{30:[1,78]}),i(j,[2,117]),i(R,[2,47],{33:[1,80],38:[1,79],42:[1,81]}),i(R,[2,48],{33:[1,83],35:[1,82],42:[1,84]}),i(Tt,[2,113]),i(Tt,[2,114]),i(Tt,[2,115]),i(R,[2,51],{35:[1,85],38:[1,86],42:[1,87]}),i(R,[2,62],{33:[1,90],35:[1,88],38:[1,89]}),{34:[1,91]},{39:92,43:nt,44:st,45:pt},{34:[1,93]},i(R,[2,25],{35:[1,94]}),{33:[1,95]},{33:[1,96]},{31:[1,97]},{39:98,43:nt,44:st,45:pt},{34:[1,99]},{34:[1,100]},{34:[1,101]},{34:[1,102]},{34:[1,103]},{34:[1,104]},{39:105,43:nt,44:st,45:pt},{34:[1,106]},{34:[1,107]},{39:108,43:nt,44:st,45:pt},{34:[1,109]},i(R,[2,31],{35:[1,111],38:[1,110]}),i(R,[2,32],{33:[1,113],35:[1,112]}),i(R,[2,33],{33:[1,114],38:[1,115]}),{34:[1,116],36:[1,117]},{34:[1,118]},{34:[1,119]},i(R,[2,24]),i(R,[2,49],{33:[1,120],42:[1,121]}),i(R,[2,53],{38:[1,122],42:[1,123]}),i(R,[2,63],{33:[1,125],38:[1,124]}),i(R,[2,50],{33:[1,126],42:[1,127]}),i(R,[2,55],{35:[1,128],42:[1,129]}),i(R,[2,66],{33:[1,131],35:[1,130]}),i(R,[2,52],{38:[1,132],42:[1,133]}),i(R,[2,54],{35:[1,134],42:[1,135]}),i(R,[2,67],{35:[1,137],38:[1,136]}),i(R,[2,64],{33:[1,139],38:[1,138]}),i(R,[2,65],{33:[1,141],35:[1,140]}),i(R,[2,68],{35:[1,143],38:[1,142]}),{39:144,43:nt,44:st,45:pt},{34:[1,145]},{34:[1,146]},{34:[1,147]},{34:[1,148]},{39:149,43:nt,44:st,45:pt},i(R,[2,26]),i(R,[2,27]),i(R,[2,28]),i(R,[2,29]),{34:[1,150]},{34:[1,151]},{39:152,43:nt,44:st,45:pt},{34:[1,153]},{39:154,43:nt,44:st,45:pt},{34:[1,155]},{34:[1,156]},{34:[1,157]},{34:[1,158]},{34:[1,159]},{34:[1,160]},{34:[1,161]},{39:162,43:nt,44:st,45:pt},{34:[1,163]},{34:[1,164]},{34:[1,165]},{39:166,43:nt,44:st,45:pt},{34:[1,167]},{39:168,43:nt,44:st,45:pt},{34:[1,169]},{34:[1,170]},{34:[1,171]},{39:172,43:nt,44:st,45:pt},{34:[1,173]},i(R,[2,37],{35:[1,174]}),i(R,[2,38],{38:[1,175]}),i(R,[2,36],{33:[1,176]}),i(R,[2,39],{35:[1,177]}),i(R,[2,34],{38:[1,178]}),i(R,[2,35],{33:[1,179]}),i(R,[2,60],{42:[1,180]}),i(R,[2,73],{33:[1,181]}),i(R,[2,61],{42:[1,182]}),i(R,[2,84],{38:[1,183]}),i(R,[2,74],{33:[1,184]}),i(R,[2,83],{38:[1,185]}),i(R,[2,59],{42:[1,186]}),i(R,[2,72],{33:[1,187]}),i(R,[2,58],{42:[1,188]}),i(R,[2,78],{35:[1,189]}),i(R,[2,71],{33:[1,190]}),i(R,[2,77],{35:[1,191]}),i(R,[2,57],{42:[1,192]}),i(R,[2,85],{38:[1,193]}),i(R,[2,56],{42:[1,194]}),i(R,[2,79],{35:[1,195]}),i(R,[2,80],{35:[1,196]}),i(R,[2,86],{38:[1,197]}),i(R,[2,70],{33:[1,198]}),i(R,[2,81],{38:[1,199]}),i(R,[2,69],{33:[1,200]}),i(R,[2,75],{35:[1,201]}),i(R,[2,76],{35:[1,202]}),i(R,[2,82],{38:[1,203]}),{34:[1,204]},{39:205,43:nt,44:st,45:pt},{34:[1,206]},{34:[1,207]},{39:208,43:nt,44:st,45:pt},{34:[1,209]},{34:[1,210]},{34:[1,211]},{34:[1,212]},{39:213,43:nt,44:st,45:pt},{34:[1,214]},{39:215,43:nt,44:st,45:pt},{34:[1,216]},{34:[1,217]},{34:[1,218]},{34:[1,219]},{34:[1,220]},{34:[1,221]},{34:[1,222]},{39:223,43:nt,44:st,45:pt},{34:[1,224]},{34:[1,225]},{34:[1,226]},{39:227,43:nt,44:st,45:pt},{34:[1,228]},{39:229,43:nt,44:st,45:pt},{34:[1,230]},{34:[1,231]},{34:[1,232]},{39:233,43:nt,44:st,45:pt},i(R,[2,40]),i(R,[2,42]),i(R,[2,41]),i(R,[2,43]),i(R,[2,45]),i(R,[2,44]),i(R,[2,101]),i(R,[2,102]),i(R,[2,99]),i(R,[2,100]),i(R,[2,104]),i(R,[2,103]),i(R,[2,108]),i(R,[2,107]),i(R,[2,106]),i(R,[2,105]),i(R,[2,110]),i(R,[2,109]),i(R,[2,98]),i(R,[2,97]),i(R,[2,96]),i(R,[2,95]),i(R,[2,93]),i(R,[2,94]),i(R,[2,92]),i(R,[2,91]),i(R,[2,90]),i(R,[2,89]),i(R,[2,87]),i(R,[2,88])],defaultActions:{9:[2,118],10:[2,1],11:[2,2],19:[2,3],27:[2,4],46:[2,120],47:[2,5]},parseError:function(rt,wt){if(wt.recoverable)this.trace(rt);else{var gt=new Error(rt);throw gt.hash=wt,gt}},parse:function(rt){var wt=this,gt=[0],lt=[],_t=[null],X=[],Rt=this.table,ft="",de=0,J=0,ae=2,Wt=1,It=X.slice.call(arguments,1),Nt=Object.create(this.lexer),me={yy:{}};for(var Ue in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ue)&&(me.yy[Ue]=this.yy[Ue]);Nt.setInput(rt,me.yy),me.yy.lexer=Nt,me.yy.parser=this,typeof Nt.yylloc>"u"&&(Nt.yylloc={});var _n=Nt.yylloc;X.push(_n);var _e=Nt.options&&Nt.options.ranges;typeof me.yy.parseError=="function"?this.parseError=me.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function rr(){var oe;return oe=lt.pop()||Nt.lex()||Wt,typeof oe!="number"&&(oe instanceof Array&&(lt=oe,oe=lt.pop()),oe=wt.symbols_[oe]||oe),oe}for(var Te,ne,Ee,ye,Vt={},Ae,Gt,un,jt;;){if(ne=gt[gt.length-1],this.defaultActions[ne]?Ee=this.defaultActions[ne]:((Te===null||typeof Te>"u")&&(Te=rr()),Ee=Rt[ne]&&Rt[ne][Te]),typeof Ee>"u"||!Ee.length||!Ee[0]){var Ke="";jt=[];for(Ae in Rt[ne])this.terminals_[Ae]&&Ae>ae&&jt.push("'"+this.terminals_[Ae]+"'");Nt.showPosition?Ke="Parse error on line "+(de+1)+`: -`+Nt.showPosition()+` -Expecting `+jt.join(", ")+", got '"+(this.terminals_[Te]||Te)+"'":Ke="Parse error on line "+(de+1)+": Unexpected "+(Te==Wt?"end of input":"'"+(this.terminals_[Te]||Te)+"'"),this.parseError(Ke,{text:Nt.match,token:this.terminals_[Te]||Te,line:Nt.yylineno,loc:_n,expected:jt})}if(Ee[0]instanceof Array&&Ee.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ne+", token: "+Te);switch(Ee[0]){case 1:gt.push(Te),_t.push(Nt.yytext),X.push(Nt.yylloc),gt.push(Ee[1]),Te=null,J=Nt.yyleng,ft=Nt.yytext,de=Nt.yylineno,_n=Nt.yylloc;break;case 2:if(Gt=this.productions_[Ee[1]][1],Vt.$=_t[_t.length-Gt],Vt._$={first_line:X[X.length-(Gt||1)].first_line,last_line:X[X.length-1].last_line,first_column:X[X.length-(Gt||1)].first_column,last_column:X[X.length-1].last_column},_e&&(Vt._$.range=[X[X.length-(Gt||1)].range[0],X[X.length-1].range[1]]),ye=this.performAction.apply(Vt,[ft,J,de,me.yy,Ee[1],_t,X].concat(It)),typeof ye<"u")return ye;Gt&&(gt=gt.slice(0,-1*Gt*2),_t=_t.slice(0,-1*Gt),X=X.slice(0,-1*Gt)),gt.push(this.productions_[Ee[1]][0]),_t.push(Vt.$),X.push(Vt._$),un=Rt[gt[gt.length-2]][gt[gt.length-1]],gt.push(un);break;case 3:return!0}}return!0}},yt=function(){var mt={EOF:1,parseError:function(wt,gt){if(this.yy.parser)this.yy.parser.parseError(wt,gt);else throw new Error(wt)},setInput:function(rt,wt){return this.yy=wt||this.yy||{},this._input=rt,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var rt=this._input[0];this.yytext+=rt,this.yyleng++,this.offset++,this.match+=rt,this.matched+=rt;var wt=rt.match(/(?:\r\n?|\n).*/g);return wt?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),rt},unput:function(rt){var wt=rt.length,gt=rt.split(/(?:\r\n?|\n)/g);this._input=rt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-wt),this.offset-=wt;var lt=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),gt.length-1&&(this.yylineno-=gt.length-1);var _t=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:gt?(gt.length===lt.length?this.yylloc.first_column:0)+lt[lt.length-gt.length].length-gt[0].length:this.yylloc.first_column-wt},this.options.ranges&&(this.yylloc.range=[_t[0],_t[0]+this.yyleng-wt]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). -`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(rt){this.unput(this.match.slice(rt))},pastInput:function(){var rt=this.matched.substr(0,this.matched.length-this.match.length);return(rt.length>20?"...":"")+rt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var rt=this.match;return rt.length<20&&(rt+=this._input.substr(0,20-rt.length)),(rt.substr(0,20)+(rt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var rt=this.pastInput(),wt=new Array(rt.length+1).join("-");return rt+this.upcomingInput()+` -`+wt+"^"},test_match:function(rt,wt){var gt,lt,_t;if(this.options.backtrack_lexer&&(_t={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(_t.yylloc.range=this.yylloc.range.slice(0))),lt=rt[0].match(/(?:\r\n?|\n).*/g),lt&&(this.yylineno+=lt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:lt?lt[lt.length-1].length-lt[lt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+rt[0].length},this.yytext+=rt[0],this.match+=rt[0],this.matches=rt,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(rt[0].length),this.matched+=rt[0],gt=this.performAction.call(this,this.yy,this,wt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),gt)return gt;if(this._backtrack){for(var X in _t)this[X]=_t[X];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var rt,wt,gt,lt;this._more||(this.yytext="",this.match="");for(var _t=this._currentRules(),X=0;X<_t.length;X++)if(gt=this._input.match(this.rules[_t[X]]),gt&&(!wt||gt[0].length>wt[0].length)){if(wt=gt,lt=X,this.options.backtrack_lexer){if(rt=this.test_match(gt,_t[X]),rt!==!1)return rt;if(this._backtrack){wt=!1;continue}else return!1}else if(!this.options.flex)break}return wt?(rt=this.test_match(wt,_t[lt]),rt!==!1?rt:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var wt=this.next();return wt||this.lex()},begin:function(wt){this.conditionStack.push(wt)},popState:function(){var wt=this.conditionStack.length-1;return wt>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(wt){return wt=this.conditionStack.length-1-Math.abs(wt||0),wt>=0?this.conditionStack[wt]:"INITIAL"},pushState:function(wt){this.begin(wt)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(wt,gt,lt,_t){switch(lt){case 0:return this.begin("open_directive"),50;case 1:return this.begin("type_directive"),51;case 2:return this.popState(),this.begin("arg_directive"),9;case 3:return this.popState(),this.popState(),53;case 4:return 52;case 5:return this.begin("acc_title"),20;case 6:return this.popState(),"acc_title_value";case 7:return this.begin("acc_descr"),22;case 8:return this.popState(),"acc_descr_value";case 9:this.begin("acc_descr_multiline");break;case 10:this.popState();break;case 11:return"acc_descr_multiline_value";case 12:return 14;case 13:break;case 14:break;case 15:return 6;case 16:return 40;case 17:return 33;case 18:return 38;case 19:return 42;case 20:return 43;case 21:return 44;case 22:return 45;case 23:return 35;case 24:return 29;case 25:return 30;case 26:return 37;case 27:return 32;case 28:return 27;case 29:return 10;case 30:return 10;case 31:return 9;case 32:return"CARET";case 33:this.begin("options");break;case 34:this.popState();break;case 35:return 13;case 36:return 36;case 37:this.begin("string");break;case 38:this.popState();break;case 39:return 34;case 40:return 31;case 41:return 54;case 42:return 8}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:(\r?\n)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:gitGraph\b)/i,/^(?:commit(?=\s|$))/i,/^(?:id:)/i,/^(?:type:)/i,/^(?:msg:)/i,/^(?:NORMAL\b)/i,/^(?:REVERSE\b)/i,/^(?:HIGHLIGHT\b)/i,/^(?:tag:)/i,/^(?:branch(?=\s|$))/i,/^(?:order:)/i,/^(?:merge(?=\s|$))/i,/^(?:cherry-pick(?=\s|$))/i,/^(?:checkout(?=\s|$))/i,/^(?:LR\b)/i,/^(?:BT\b)/i,/^(?::)/i,/^(?:\^)/i,/^(?:options\r?\n)/i,/^(?:[ \r\n\t]+end\b)/i,/^(?:[\s\S]+(?=[ \r\n\t]+end))/i,/^(?:["]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[0-9]+(?=\s|$))/i,/^(?:\w([-\./\w]*[-\w])?)/i,/^(?:$)/i,/^(?:\s+)/i],conditions:{acc_descr_multiline:{rules:[10,11],inclusive:!1},acc_descr:{rules:[8],inclusive:!1},acc_title:{rules:[6],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},options:{rules:[34,35],inclusive:!1},string:{rules:[38,39],inclusive:!1},INITIAL:{rules:[0,5,7,9,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,36,37,40,41,42,43],inclusive:!0}}};return mt}();kt.lexer=yt;function ht(){this.yy={}}return ht.prototype=kt,kt.Parser=ht,new ht}();k0t.parser=k0t;const h$e=k0t;let fK=Oe().gitGraph.mainBranchName,f$e=Oe().gitGraph.mainBranchOrder,p1={},hg=null,bP={};bP[fK]={name:fK,order:f$e};let zf={};zf[fK]=hg;let id=fK,gBt="LR",pE=0;function E0t(){return kIt({length:7})}const d$e=function(i,a,f){d1.parseDirective(this,i,a,f)};function g$e(i,a){const f=Object.create(null);return i.reduce((p,v)=>{const m=a(v);return f[m]||(f[m]=!0,p.push(v)),p},[])}const p$e=function(i){gBt=i};let pBt={};const b$e=function(i){zt.debug("options str",i),i=i&&i.trim(),i=i||"{}";try{pBt=JSON.parse(i)}catch(a){zt.error("error while parsing gitGraph options",a.message)}},v$e=function(){return pBt},w$e=function(i,a,f,p){zt.debug("Entering commit:",i,a,f,p),a=yi.sanitizeText(a,Oe()),i=yi.sanitizeText(i,Oe()),p=yi.sanitizeText(p,Oe());const v={id:a||pE+"-"+E0t(),message:i,seq:pE++,type:f||vP.NORMAL,tag:p||"",parents:hg==null?[]:[hg.id],branch:id};hg=v,p1[v.id]=v,zf[id]=v.id,zt.debug("in pushCommit "+v.id)},m$e=function(i,a){if(i=yi.sanitizeText(i,Oe()),zf[i]===void 0)zf[i]=hg!=null?hg.id:null,bP[i]={name:i,order:a?parseInt(a,10):null},bBt(i),zt.debug("in createBranch");else{let f=new Error('Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout '+i+'")');throw f.hash={text:"branch "+i,token:"branch "+i,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"checkout '+i+'"']},f}},y$e=function(i,a,f,p){i=yi.sanitizeText(i,Oe()),a=yi.sanitizeText(a,Oe());const v=p1[zf[id]],m=p1[zf[i]];if(id===i){let E=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw E.hash={text:"merge "+i,token:"merge "+i,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch abc"]},E}else if(v===void 0||!v){let E=new Error('Incorrect usage of "merge". Current branch ('+id+")has no commits");throw E.hash={text:"merge "+i,token:"merge "+i,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["commit"]},E}else if(zf[i]===void 0){let E=new Error('Incorrect usage of "merge". Branch to be merged ('+i+") does not exist");throw E.hash={text:"merge "+i,token:"merge "+i,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch "+i]},E}else if(m===void 0||!m){let E=new Error('Incorrect usage of "merge". Branch to be merged ('+i+") has no commits");throw E.hash={text:"merge "+i,token:"merge "+i,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"commit"']},E}else if(v===m){let E=new Error('Incorrect usage of "merge". Both branches have same head');throw E.hash={text:"merge "+i,token:"merge "+i,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch abc"]},E}else if(a&&p1[a]!==void 0){let E=new Error('Incorrect usage of "merge". Commit with id:'+a+" already exists, use different custom Id");throw E.hash={text:"merge "+i+a+f+p,token:"merge "+i+a+f+p,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["merge "+i+" "+a+"_UNIQUE "+f+" "+p]},E}const b={id:a||pE+"-"+E0t(),message:"merged branch "+i+" into "+id,seq:pE++,parents:[hg==null?null:hg.id,zf[i]],branch:id,type:vP.MERGE,customType:f,customId:!!a,tag:p||""};hg=b,p1[b.id]=b,zf[id]=b.id,zt.debug(zf),zt.debug("in mergeBranch")},x$e=function(i,a,f){if(zt.debug("Entering cherryPick:",i,a,f),i=yi.sanitizeText(i,Oe()),a=yi.sanitizeText(a,Oe()),f=yi.sanitizeText(f,Oe()),!i||p1[i]===void 0){let m=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw m.hash={text:"cherryPick "+i+" "+a,token:"cherryPick "+i+" "+a,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},m}let p=p1[i],v=p.branch;if(p.type===vP.MERGE){let m=new Error('Incorrect usage of "cherryPick". Source commit should not be a merge commit');throw m.hash={text:"cherryPick "+i+" "+a,token:"cherryPick "+i+" "+a,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},m}if(!a||p1[a]===void 0){if(v===id){let E=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw E.hash={text:"cherryPick "+i+" "+a,token:"cherryPick "+i+" "+a,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},E}const m=p1[zf[id]];if(m===void 0||!m){let E=new Error('Incorrect usage of "cherry-pick". Current branch ('+id+")has no commits");throw E.hash={text:"cherryPick "+i+" "+a,token:"cherryPick "+i+" "+a,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},E}const b={id:pE+"-"+E0t(),message:"cherry-picked "+p+" into "+id,seq:pE++,parents:[hg==null?null:hg.id,p.id],branch:id,type:vP.CHERRY_PICK,tag:f??"cherry-pick:"+p.id};hg=b,p1[b.id]=b,zf[id]=b.id,zt.debug(zf),zt.debug("in cherryPick")}},bBt=function(i){if(i=yi.sanitizeText(i,Oe()),zf[i]===void 0){let a=new Error('Trying to checkout branch which is not yet created. (Help try using "branch '+i+'")');throw a.hash={text:"checkout "+i,token:"checkout "+i,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"branch '+i+'"']},a}else{id=i;const a=zf[id];hg=p1[a]}};function vBt(i,a,f){const p=i.indexOf(a);p===-1?i.push(f):i.splice(p,1,f)}function wBt(i){const a=i.reduce((v,m)=>v.seq>m.seq?v:m,i[0]);let f="";i.forEach(function(v){v===a?f+=" *":f+=" |"});const p=[f,a.id,a.seq];for(let v in zf)zf[v]===a.id&&p.push(v);if(zt.debug(p.join(" ")),a.parents&&a.parents.length==2){const v=p1[a.parents[0]];vBt(i,a,v),i.push(p1[a.parents[1]])}else{if(a.parents.length==0)return;{const v=p1[a.parents];vBt(i,a,v)}}i=g$e(i,v=>v.id),wBt(i)}const k$e=function(){zt.debug(p1);const i=mBt()[0];wBt([i])},E$e=function(){p1={},hg=null;let i=Oe().gitGraph.mainBranchName,a=Oe().gitGraph.mainBranchOrder;zf={},zf[i]=null,bP={},bP[i]={name:i,order:a},id=i,pE=0,cg()},T$e=function(){return Object.values(bP).map((a,f)=>a.order!==null?a:{...a,order:parseFloat(`0.${f}`,10)}).sort((a,f)=>a.order-f.order).map(({name:a})=>({name:a}))},_$e=function(){return zf},C$e=function(){return p1},mBt=function(){const i=Object.keys(p1).map(function(a){return p1[a]});return i.forEach(function(a){zt.debug(a.id)}),i.sort((a,f)=>a.seq-f.seq),i},S$e=function(){return id},A$e=function(){return gBt},L$e=function(){return hg},vP={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},M$e={parseDirective:d$e,getConfig:()=>Oe().gitGraph,setDirection:p$e,setOptions:b$e,getOptions:v$e,commit:w$e,branch:m$e,merge:y$e,cherryPick:x$e,checkout:bBt,prettyPrint:k$e,clear:E$e,getBranchesAsObjArray:T$e,getBranches:_$e,getCommits:C$e,getCommitsArray:mBt,getCurrentBranch:S$e,getDirection:A$e,getHead:L$e,setAccTitle:ug,getAccTitle:op,getAccDescription:up,setAccDescription:cp,setDiagramTitle:Kb,getDiagramTitle:O2,commitType:vP};let wP={};const B2={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},bE=8;let fp={},dK={},gK=[],pK=0;const D$e=()=>{fp={},dK={},wP={},pK=0,gK=[]},I$e=i=>{const a=document.createElementNS("http://www.w3.org/2000/svg","text");let f=[];typeof i=="string"?f=i.split(/\\n|\n|/gi):Array.isArray(i)?f=i:f=[];for(const p of f){const v=document.createElementNS("http://www.w3.org/2000/svg","tspan");v.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),v.setAttribute("dy","1em"),v.setAttribute("x","0"),v.setAttribute("class","row"),v.textContent=p.trim(),a.appendChild(v)}return a},yBt=(i,a,f)=>{const p=zN().gitGraph,v=i.append("g").attr("class","commit-bullets"),m=i.append("g").attr("class","commit-labels");let b=0;Object.keys(a).sort((D,P)=>a[D].seq-a[P].seq).forEach(D=>{const P=a[D],B=fp[P.branch].pos,j=b+10;if(f){let R,H=P.customType!==void 0&&P.customType!==""?P.customType:P.type;switch(H){case B2.NORMAL:R="commit-normal";break;case B2.REVERSE:R="commit-reverse";break;case B2.HIGHLIGHT:R="commit-highlight";break;case B2.MERGE:R="commit-merge";break;case B2.CHERRY_PICK:R="commit-cherry-pick";break;default:R="commit-normal"}if(H===B2.HIGHLIGHT){const Y=v.append("rect");Y.attr("x",j-10),Y.attr("y",B-10),Y.attr("height",20),Y.attr("width",20),Y.attr("class",`commit ${P.id} commit-highlight${fp[P.branch].index%bE} ${R}-outer`),v.append("rect").attr("x",j-6).attr("y",B-6).attr("height",12).attr("width",12).attr("class",`commit ${P.id} commit${fp[P.branch].index%bE} ${R}-inner`)}else if(H===B2.CHERRY_PICK)v.append("circle").attr("cx",j).attr("cy",B).attr("r",10).attr("class",`commit ${P.id} ${R}`),v.append("circle").attr("cx",j-3).attr("cy",B+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${P.id} ${R}`),v.append("circle").attr("cx",j+3).attr("cy",B+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${P.id} ${R}`),v.append("line").attr("x1",j+3).attr("y1",B+1).attr("x2",j).attr("y2",B-5).attr("stroke","#fff").attr("class",`commit ${P.id} ${R}`),v.append("line").attr("x1",j-3).attr("y1",B+1).attr("x2",j).attr("y2",B-5).attr("stroke","#fff").attr("class",`commit ${P.id} ${R}`);else{const Y=v.append("circle");if(Y.attr("cx",j),Y.attr("cy",B),Y.attr("r",P.type===B2.MERGE?9:10),Y.attr("class",`commit ${P.id} commit${fp[P.branch].index%bE}`),H===B2.MERGE){const it=v.append("circle");it.attr("cx",j),it.attr("cy",B),it.attr("r",6),it.attr("class",`commit ${R} ${P.id} commit${fp[P.branch].index%bE}`)}H===B2.REVERSE&&v.append("path").attr("d",`M ${j-5},${B-5}L${j+5},${B+5}M${j-5},${B+5}L${j+5},${B-5}`).attr("class",`commit ${R} ${P.id} commit${fp[P.branch].index%bE}`)}}if(dK[P.id]={x:b+10,y:B},f){if(P.type!==B2.CHERRY_PICK&&(P.customId&&P.type===B2.MERGE||P.type!==B2.MERGE)&&p.showCommitLabel){const Y=m.append("g"),it=Y.insert("rect").attr("class","commit-label-bkg"),nt=Y.append("text").attr("x",b).attr("y",B+25).attr("class","commit-label").text(P.id);let st=nt.node().getBBox();if(it.attr("x",b+10-st.width/2-2).attr("y",B+13.5).attr("width",st.width+2*2).attr("height",st.height+2*2),nt.attr("x",b+10-st.width/2),p.rotateCommitLabel){let pt=-7.5-(st.width+10)/25*9.5,Tt=10+st.width/25*8.5;Y.attr("transform","translate("+pt+", "+Tt+") rotate(-45, "+b+", "+B+")")}}if(P.tag){const Y=m.insert("polygon"),it=m.append("circle"),nt=m.append("text").attr("y",B-16).attr("class","tag-label").text(P.tag);let st=nt.node().getBBox();nt.attr("x",b+10-st.width/2);const pt=st.height/2,Tt=B-19.2;Y.attr("class","tag-label-bkg").attr("points",` - ${b-st.width/2-4/2},${Tt+2} - ${b-st.width/2-4/2},${Tt-2} - ${b+10-st.width/2-4},${Tt-pt-2} - ${b+10+st.width/2+4},${Tt-pt-2} - ${b+10+st.width/2+4},${Tt+pt+2} - ${b+10-st.width/2-4},${Tt+pt+2}`),it.attr("cx",b-st.width/2+4/2).attr("cy",Tt).attr("r",1.5).attr("class","tag-hole")}}b+=50,b>pK&&(pK=b)})},O$e=(i,a,f)=>Object.keys(f).filter(m=>f[m].branch===a.branch&&f[m].seq>i.seq&&f[m].seq0,T0t=(i,a,f=0)=>{const p=i+Math.abs(i-a)/2;if(f>5)return p;if(gK.every(b=>Math.abs(b-p)>=10))return gK.push(p),p;const m=Math.abs(i-a);return T0t(i,a-m/5,f+1)},N$e=(i,a,f,p)=>{const v=dK[a.id],m=dK[f.id],b=O$e(a,f,p);let E="",C="",D=0,P=0,B=fp[f.branch].index,j;if(b){E="A 10 10, 0, 0, 0,",C="A 10 10, 0, 0, 1,",D=10,P=10,B=fp[f.branch].index;const R=v.ym.y&&(E="A 20 20, 0, 0, 0,",D=20,P=20,B=fp[a.branch].index,j=`M ${v.x} ${v.y} L ${m.x-D} ${v.y} ${E} ${m.x} ${v.y-P} L ${m.x} ${m.y}`),v.y===m.y&&(B=fp[a.branch].index,j=`M ${v.x} ${v.y} L ${v.x} ${m.y-D} ${E} ${v.x+P} ${m.y} L ${m.x} ${m.y}`);i.append("path").attr("d",j).attr("class","arrow arrow"+B%bE)},P$e=(i,a)=>{const f=i.append("g").attr("class","commit-arrows");Object.keys(a).forEach(p=>{const v=a[p];v.parents&&v.parents.length>0&&v.parents.forEach(m=>{N$e(f,a[m],v,a)})})},F$e=(i,a)=>{const f=zN().gitGraph,p=i.append("g");a.forEach((v,m)=>{const b=m%bE,E=fp[v.name].pos,C=p.append("line");C.attr("x1",0),C.attr("y1",E),C.attr("x2",pK),C.attr("y2",E),C.attr("class","branch branch"+b),gK.push(E);let D=v.name;const P=I$e(D),B=p.insert("rect"),R=p.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+b);R.node().appendChild(P);let H=P.getBBox();B.attr("class","branchLabelBkg label"+b).attr("rx",4).attr("ry",4).attr("x",-H.width-4-(f.rotateCommitLabel===!0?30:0)).attr("y",-H.height/2+8).attr("width",H.width+18).attr("height",H.height+4),R.attr("transform","translate("+(-H.width-14-(f.rotateCommitLabel===!0?30:0))+", "+(E-H.height/2-1)+")"),B.attr("transform","translate(-19, "+(E-H.height/2)+")")})},B$e=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:h$e,db:M$e,renderer:{draw:function(i,a,f,p){D$e();const v=zN(),m=v.gitGraph;zt.debug("in gitgraph renderer",i+` -`,"id:",a,f),wP=p.db.getCommits();const b=p.db.getBranchesAsObjArray();let E=0;b.forEach((D,P)=>{fp[D.name]={pos:E,index:P},E+=50+(m.rotateCommitLabel?40:0)});const C=Mr(`[id="${a}"]`);yBt(C,wP,!1),m.showBranches&&F$e(C,b),P$e(C,wP),yBt(C,wP,!0),lo.insertTitle(C,"gitTitleText",m.titleTopMargin,p.db.getDiagramTitle()),lIt(void 0,C,m.diagramPadding,m.useMaxWidth??v.useMaxWidth)}},styles:i=>` +`,"getStyles"),wat=wPt});var kat={};xr(kat,{diagram:()=>TPt});var TPt,Eat=R(()=>{"use strict";Zit();eat();bat();Tat();TPt={parser:Qit,db:tat,renderer:xat,styles:wat}});function ri(e){return typeof e=="object"&&e!==null&&typeof e.$type=="string"}function ka(e){return typeof e=="object"&&e!==null&&typeof e.$refText=="string"}function LR(e){return typeof e=="object"&&e!==null&&typeof e.name=="string"&&typeof e.type=="string"&&typeof e.path=="string"}function Zd(e){return typeof e=="object"&&e!==null&&ri(e.container)&&ka(e.reference)&&typeof e.message=="string"}function uo(e){return typeof e=="object"&&e!==null&&Array.isArray(e.content)}function sf(e){return typeof e=="object"&&e!==null&&typeof e.tokenType=="object"}function c2(e){return uo(e)&&typeof e.fullText=="string"}var Qd,Yo=R(()=>{"use strict";o(ri,"isAstNode");o(ka,"isReference");o(LR,"isAstNodeDescription");o(Zd,"isLinkingError");Qd=class{static{o(this,"AbstractAstReflection")}constructor(){this.subtypes={},this.allSubtypes={}}isInstance(t,r){return ri(t)&&this.isSubtype(t.$type,r)}isSubtype(t,r){if(t===r)return!0;let n=this.subtypes[t];n||(n=this.subtypes[t]={});let i=n[r];if(i!==void 0)return i;{let a=this.computeIsSubtype(t,r);return n[r]=a,a}}getAllSubTypes(t){let r=this.allSubtypes[t];if(r)return r;{let n=this.getAllTypes(),i=[];for(let a of n)this.isSubtype(a,t)&&i.push(a);return this.allSubtypes[t]=i,i}}};o(uo,"isCompositeCstNode");o(sf,"isLeafCstNode");o(c2,"isRootCstNode")});function SPt(e){return typeof e=="string"?e:typeof e>"u"?"undefined":typeof e.toString=="function"?e.toString():Object.prototype.toString.call(e)}function rk(e){return!!e&&typeof e[Symbol.iterator]=="function"}function en(...e){if(e.length===1){let t=e[0];if(t instanceof ho)return t;if(rk(t))return new ho(()=>t[Symbol.iterator](),r=>r.next());if(typeof t.length=="number")return new ho(()=>({index:0}),r=>r.index1?new ho(()=>({collIndex:0,arrIndex:0}),t=>{do{if(t.iterator){let r=t.iterator.next();if(!r.done)return r;t.iterator=void 0}if(t.array){if(t.arrIndex{"use strict";ho=class e{static{o(this,"StreamImpl")}constructor(t,r){this.startFn=t,this.nextFn=r}iterator(){let t={state:this.startFn(),next:o(()=>this.nextFn(t.state),"next"),[Symbol.iterator]:()=>t};return t}[Symbol.iterator](){return this.iterator()}isEmpty(){return!!this.iterator().next().done}count(){let t=this.iterator(),r=0,n=t.next();for(;!n.done;)r++,n=t.next();return r}toArray(){let t=[],r=this.iterator(),n;do n=r.next(),n.value!==void 0&&t.push(n.value);while(!n.done);return t}toSet(){return new Set(this)}toMap(t,r){let n=this.map(i=>[t?t(i):i,r?r(i):i]);return new Map(n)}toString(){return this.join()}concat(t){let r=t[Symbol.iterator]();return new e(()=>({first:this.startFn(),firstDone:!1}),n=>{let i;if(!n.firstDone){do if(i=this.nextFn(n.first),!i.done)return i;while(!i.done);n.firstDone=!0}do if(i=r.next(),!i.done)return i;while(!i.done);return ns})}join(t=","){let r=this.iterator(),n="",i,a=!1;do i=r.next(),i.done||(a&&(n+=t),n+=SPt(i.value)),a=!0;while(!i.done);return n}indexOf(t,r=0){let n=this.iterator(),i=0,a=n.next();for(;!a.done;){if(i>=r&&a.value===t)return i;a=n.next(),i++}return-1}every(t){let r=this.iterator(),n=r.next();for(;!n.done;){if(!t(n.value))return!1;n=r.next()}return!0}some(t){let r=this.iterator(),n=r.next();for(;!n.done;){if(t(n.value))return!0;n=r.next()}return!1}forEach(t){let r=this.iterator(),n=0,i=r.next();for(;!i.done;)t(i.value,n),i=r.next(),n++}map(t){return new e(this.startFn,r=>{let{done:n,value:i}=this.nextFn(r);return n?ns:{done:!1,value:t(i)}})}filter(t){return new e(this.startFn,r=>{let n;do if(n=this.nextFn(r),!n.done&&t(n.value))return n;while(!n.done);return ns})}nonNullable(){return this.filter(t=>t!=null)}reduce(t,r){let n=this.iterator(),i=r,a=n.next();for(;!a.done;)i===void 0?i=a.value:i=t(i,a.value),a=n.next();return i}reduceRight(t,r){return this.recursiveReduce(this.iterator(),t,r)}recursiveReduce(t,r,n){let i=t.next();if(i.done)return n;let a=this.recursiveReduce(t,r,n);return a===void 0?i.value:r(a,i.value)}find(t){let r=this.iterator(),n=r.next();for(;!n.done;){if(t(n.value))return n.value;n=r.next()}}findIndex(t){let r=this.iterator(),n=0,i=r.next();for(;!i.done;){if(t(i.value))return n;i=r.next(),n++}return-1}includes(t){let r=this.iterator(),n=r.next();for(;!n.done;){if(n.value===t)return!0;n=r.next()}return!1}flatMap(t){return new e(()=>({this:this.startFn()}),r=>{do{if(r.iterator){let a=r.iterator.next();if(a.done)r.iterator=void 0;else return a}let{done:n,value:i}=this.nextFn(r.this);if(!n){let a=t(i);if(rk(a))r.iterator=a[Symbol.iterator]();else return{done:!1,value:a}}}while(r.iterator);return ns})}flat(t){if(t===void 0&&(t=1),t<=0)return this;let r=t>1?this.flat(t-1):this;return new e(()=>({this:r.startFn()}),n=>{do{if(n.iterator){let s=n.iterator.next();if(s.done)n.iterator=void 0;else return s}let{done:i,value:a}=r.nextFn(n.this);if(!i)if(rk(a))n.iterator=a[Symbol.iterator]();else return{done:!1,value:a}}while(n.iterator);return ns})}head(){let r=this.iterator().next();if(!r.done)return r.value}tail(t=1){return new e(()=>{let r=this.startFn();for(let n=0;n({size:0,state:this.startFn()}),r=>(r.size++,r.size>t?ns:this.nextFn(r.state)))}distinct(t){let r=new Set;return this.filter(n=>{let i=t?t(n):n;return r.has(i)?!1:(r.add(i),!0)})}exclude(t,r){let n=new Set;for(let i of t){let a=r?r(i):i;n.add(a)}return this.filter(i=>{let a=r?r(i):i;return!n.has(a)})}};o(SPt,"toString");o(rk,"isIterable");u2=new ho(()=>{},()=>ns),ns=Object.freeze({done:!0,value:void 0});o(en,"stream");Ic=class extends ho{static{o(this,"TreeStreamImpl")}constructor(t,r,n){super(()=>({iterators:n?.includeRoot?[[t][Symbol.iterator]()]:[r(t)[Symbol.iterator]()],pruned:!1}),i=>{for(i.pruned&&(i.iterators.pop(),i.pruned=!1);i.iterators.length>0;){let s=i.iterators[i.iterators.length-1].next();if(s.done)i.iterators.pop();else return i.iterators.push(r(s.value)[Symbol.iterator]()),s}return ns})}iterator(){let t={state:this.startFn(),next:o(()=>this.nextFn(t.state),"next"),prune:o(()=>{t.state.pruned=!0},"prune"),[Symbol.iterator]:()=>t};return t}};(function(e){function t(a){return a.reduce((s,l)=>s+l,0)}o(t,"sum"),e.sum=t;function r(a){return a.reduce((s,l)=>s*l,0)}o(r,"product"),e.product=r;function n(a){return a.reduce((s,l)=>Math.min(s,l))}o(n,"min"),e.min=n;function i(a){return a.reduce((s,l)=>Math.max(s,l))}o(i,"max"),e.max=i})(Jm||(Jm={}))});var ik={};xr(ik,{DefaultNameRegexp:()=>nk,RangeComparison:()=>Fu,compareRange:()=>_at,findCommentNode:()=>MR,findDeclarationNodeAtOffset:()=>_Pt,findLeafNodeAtOffset:()=>IR,findLeafNodeBeforeOffset:()=>Lat,flattenCst:()=>APt,getInteriorNodes:()=>RPt,getNextNode:()=>LPt,getPreviousNode:()=>Rat,getStartlineNode:()=>DPt,inRange:()=>NR,isChildNode:()=>RR,isCommentNode:()=>DR,streamCst:()=>Jd,toDocumentSegment:()=>t0,tokenToRange:()=>tg});function Jd(e){return new Ic(e,t=>uo(t)?t.content:[],{includeRoot:!0})}function APt(e){return Jd(e).filter(sf)}function RR(e,t){for(;e.container;)if(e=e.container,e===t)return!0;return!1}function tg(e){return{start:{character:e.startColumn-1,line:e.startLine-1},end:{character:e.endColumn,line:e.endLine-1}}}function t0(e){if(!e)return;let{offset:t,end:r,range:n}=e;return{range:n,offset:t,end:r,length:r-t}}function _at(e,t){if(e.end.linet.end.line||e.start.line===t.end.line&&e.start.character>t.end.character)return Fu.After;let r=e.start.line>t.start.line||e.start.line===t.start.line&&e.start.character>=t.start.character,n=e.end.lineFu.After}function _Pt(e,t,r=nk){if(e){if(t>0){let n=t-e.offset,i=e.text.charAt(n);r.test(i)||t--}return IR(e,t)}}function MR(e,t){if(e){let r=Rat(e,!0);if(r&&DR(r,t))return r;if(c2(e)){let n=e.content.findIndex(i=>!i.hidden);for(let i=n-1;i>=0;i--){let a=e.content[i];if(DR(a,t))return a}}}}function DR(e,t){return sf(e)&&t.includes(e.tokenType.name)}function IR(e,t){if(sf(e))return e;if(uo(e)){let r=Dat(e,t,!1);if(r)return IR(r,t)}}function Lat(e,t){if(sf(e))return e;if(uo(e)){let r=Dat(e,t,!0);if(r)return Lat(r,t)}}function Dat(e,t,r){let n=0,i=e.content.length-1,a;for(;n<=i;){let s=Math.floor((n+i)/2),l=e.content[s];if(l.offset<=t&&l.end>t)return l;l.end<=t?(a=r?l:void 0,n=s+1):i=s-1}return a}function Rat(e,t=!0){for(;e.container;){let r=e.container,n=r.content.indexOf(e);for(;n>0;){n--;let i=r.content[n];if(t||!i.hidden)return i}e=r}}function LPt(e,t=!0){for(;e.container;){let r=e.container,n=r.content.indexOf(e),i=r.content.length-1;for(;n{"use strict";Yo();Ps();o(Jd,"streamCst");o(APt,"flattenCst");o(RR,"isChildNode");o(tg,"tokenToRange");o(t0,"toDocumentSegment");(function(e){e[e.Before=0]="Before",e[e.After=1]="After",e[e.OverlapFront=2]="OverlapFront",e[e.OverlapBack=3]="OverlapBack",e[e.Inside=4]="Inside"})(Fu||(Fu={}));o(_at,"compareRange");o(NR,"inRange");nk=/^[\w\p{L}]$/u;o(_Pt,"findDeclarationNodeAtOffset");o(MR,"findCommentNode");o(DR,"isCommentNode");o(IR,"findLeafNodeAtOffset");o(Lat,"findLeafNodeBeforeOffset");o(Dat,"binarySearch");o(Rat,"getPreviousNode");o(LPt,"getNextNode");o(DPt,"getStartlineNode");o(RPt,"getInteriorNodes");o(NPt,"getCommonParent");o(Aat,"getParentChain")});function of(e){throw new Error("Error! The input value was not handled.")}var e0,ak=R(()=>{"use strict";e0=class extends Error{static{o(this,"ErrorWithLocation")}constructor(t,r){super(t?`${r} at ${t.range.start.line}:${t.range.start.character}`:r)}};o(of,"assertUnreachable")});var m2={};xr(m2,{AbstractElement:()=>PR,AbstractRule:()=>h2,AbstractType:()=>f2,Action:()=>uN,Alternatives:()=>hN,ArrayLiteral:()=>BR,ArrayType:()=>FR,Assignment:()=>fN,BooleanLiteral:()=>$R,CharacterRange:()=>dN,Condition:()=>sk,Conjunction:()=>VR,CrossReference:()=>mN,Disjunction:()=>HR,EndOfFile:()=>gN,Grammar:()=>YR,GrammarImport:()=>Mat,Group:()=>vN,InferredType:()=>qR,Interface:()=>XR,Keyword:()=>xN,LangiumGrammarAstReflection:()=>eg,LangiumGrammarTerminals:()=>MPt,NamedArgument:()=>Iat,NegatedToken:()=>bN,Negation:()=>jR,NumberLiteral:()=>QR,Parameter:()=>ZR,ParameterReference:()=>JR,ParserRule:()=>eN,ReferenceType:()=>rN,RegexToken:()=>TN,ReturnType:()=>Oat,RuleCall:()=>EN,SimpleType:()=>aN,StringLiteral:()=>sN,TerminalAlternatives:()=>CN,TerminalGroup:()=>AN,TerminalRule:()=>lk,TerminalRuleCall:()=>LN,Type:()=>oN,TypeAttribute:()=>Pat,TypeDefinition:()=>OR,UnionType:()=>lN,UnorderedGroup:()=>DN,UntilToken:()=>RN,ValueLiteral:()=>ok,Wildcard:()=>MN,isAbstractElement:()=>d2,isAbstractRule:()=>IPt,isAbstractType:()=>OPt,isAction:()=>zu,isAlternatives:()=>fk,isArrayLiteral:()=>$Pt,isArrayType:()=>zR,isAssignment:()=>Bl,isBooleanLiteral:()=>GR,isCharacterRange:()=>pN,isCondition:()=>PPt,isConjunction:()=>UR,isCrossReference:()=>r0,isDisjunction:()=>WR,isEndOfFile:()=>yN,isFeatureName:()=>BPt,isGrammar:()=>GPt,isGrammarImport:()=>VPt,isGroup:()=>lf,isInferredType:()=>ck,isInterface:()=>uk,isKeyword:()=>Xo,isNamedArgument:()=>UPt,isNegatedToken:()=>wN,isNegation:()=>KR,isNumberLiteral:()=>HPt,isParameter:()=>WPt,isParameterReference:()=>tN,isParserRule:()=>$a,isPrimitiveType:()=>Nat,isReferenceType:()=>nN,isRegexToken:()=>kN,isReturnType:()=>iN,isRuleCall:()=>Fl,isSimpleType:()=>hk,isStringLiteral:()=>YPt,isTerminalAlternatives:()=>SN,isTerminalGroup:()=>_N,isTerminalRule:()=>qo,isTerminalRuleCall:()=>dk,isType:()=>p2,isTypeAttribute:()=>qPt,isTypeDefinition:()=>FPt,isUnionType:()=>cN,isUnorderedGroup:()=>pk,isUntilToken:()=>NN,isValueLiteral:()=>zPt,isWildcard:()=>IN,reflection:()=>lr});function IPt(e){return lr.isInstance(e,h2)}function OPt(e){return lr.isInstance(e,f2)}function PPt(e){return lr.isInstance(e,sk)}function BPt(e){return Nat(e)||e==="current"||e==="entry"||e==="extends"||e==="false"||e==="fragment"||e==="grammar"||e==="hidden"||e==="import"||e==="interface"||e==="returns"||e==="terminal"||e==="true"||e==="type"||e==="infer"||e==="infers"||e==="with"||typeof e=="string"&&/\^?[_a-zA-Z][\w_]*/.test(e)}function Nat(e){return e==="string"||e==="number"||e==="boolean"||e==="Date"||e==="bigint"}function FPt(e){return lr.isInstance(e,OR)}function zPt(e){return lr.isInstance(e,ok)}function d2(e){return lr.isInstance(e,PR)}function $Pt(e){return lr.isInstance(e,BR)}function zR(e){return lr.isInstance(e,FR)}function GR(e){return lr.isInstance(e,$R)}function UR(e){return lr.isInstance(e,VR)}function WR(e){return lr.isInstance(e,HR)}function GPt(e){return lr.isInstance(e,YR)}function VPt(e){return lr.isInstance(e,Mat)}function ck(e){return lr.isInstance(e,qR)}function uk(e){return lr.isInstance(e,XR)}function UPt(e){return lr.isInstance(e,Iat)}function KR(e){return lr.isInstance(e,jR)}function HPt(e){return lr.isInstance(e,QR)}function WPt(e){return lr.isInstance(e,ZR)}function tN(e){return lr.isInstance(e,JR)}function $a(e){return lr.isInstance(e,eN)}function nN(e){return lr.isInstance(e,rN)}function iN(e){return lr.isInstance(e,Oat)}function hk(e){return lr.isInstance(e,aN)}function YPt(e){return lr.isInstance(e,sN)}function qo(e){return lr.isInstance(e,lk)}function p2(e){return lr.isInstance(e,oN)}function qPt(e){return lr.isInstance(e,Pat)}function cN(e){return lr.isInstance(e,lN)}function zu(e){return lr.isInstance(e,uN)}function fk(e){return lr.isInstance(e,hN)}function Bl(e){return lr.isInstance(e,fN)}function pN(e){return lr.isInstance(e,dN)}function r0(e){return lr.isInstance(e,mN)}function yN(e){return lr.isInstance(e,gN)}function lf(e){return lr.isInstance(e,vN)}function Xo(e){return lr.isInstance(e,xN)}function wN(e){return lr.isInstance(e,bN)}function kN(e){return lr.isInstance(e,TN)}function Fl(e){return lr.isInstance(e,EN)}function SN(e){return lr.isInstance(e,CN)}function _N(e){return lr.isInstance(e,AN)}function dk(e){return lr.isInstance(e,LN)}function pk(e){return lr.isInstance(e,DN)}function NN(e){return lr.isInstance(e,RN)}function IN(e){return lr.isInstance(e,MN)}var MPt,h2,f2,sk,OR,ok,PR,BR,FR,$R,VR,HR,YR,Mat,qR,XR,Iat,jR,QR,ZR,JR,eN,rN,Oat,aN,sN,lk,oN,Pat,lN,uN,hN,fN,dN,mN,gN,vN,xN,bN,TN,EN,CN,AN,LN,DN,RN,MN,eg,lr,Oc=R(()=>{"use strict";Yo();MPt={ID:/\^?[_a-zA-Z][\w_]*/,STRING:/"(\\.|[^"\\])*"|'(\\.|[^'\\])*'/,NUMBER:/NaN|-?((\d*\.\d+|\d+)([Ee][+-]?\d+)?|Infinity)/,RegexLiteral:/\/(?![*+?])(?:[^\r\n\[/\\]|\\.|\[(?:[^\r\n\]\\]|\\.)*\])+\/[a-z]*/,WS:/\s+/,ML_COMMENT:/\/\*[\s\S]*?\*\//,SL_COMMENT:/\/\/[^\n\r]*/},h2="AbstractRule";o(IPt,"isAbstractRule");f2="AbstractType";o(OPt,"isAbstractType");sk="Condition";o(PPt,"isCondition");o(BPt,"isFeatureName");o(Nat,"isPrimitiveType");OR="TypeDefinition";o(FPt,"isTypeDefinition");ok="ValueLiteral";o(zPt,"isValueLiteral");PR="AbstractElement";o(d2,"isAbstractElement");BR="ArrayLiteral";o($Pt,"isArrayLiteral");FR="ArrayType";o(zR,"isArrayType");$R="BooleanLiteral";o(GR,"isBooleanLiteral");VR="Conjunction";o(UR,"isConjunction");HR="Disjunction";o(WR,"isDisjunction");YR="Grammar";o(GPt,"isGrammar");Mat="GrammarImport";o(VPt,"isGrammarImport");qR="InferredType";o(ck,"isInferredType");XR="Interface";o(uk,"isInterface");Iat="NamedArgument";o(UPt,"isNamedArgument");jR="Negation";o(KR,"isNegation");QR="NumberLiteral";o(HPt,"isNumberLiteral");ZR="Parameter";o(WPt,"isParameter");JR="ParameterReference";o(tN,"isParameterReference");eN="ParserRule";o($a,"isParserRule");rN="ReferenceType";o(nN,"isReferenceType");Oat="ReturnType";o(iN,"isReturnType");aN="SimpleType";o(hk,"isSimpleType");sN="StringLiteral";o(YPt,"isStringLiteral");lk="TerminalRule";o(qo,"isTerminalRule");oN="Type";o(p2,"isType");Pat="TypeAttribute";o(qPt,"isTypeAttribute");lN="UnionType";o(cN,"isUnionType");uN="Action";o(zu,"isAction");hN="Alternatives";o(fk,"isAlternatives");fN="Assignment";o(Bl,"isAssignment");dN="CharacterRange";o(pN,"isCharacterRange");mN="CrossReference";o(r0,"isCrossReference");gN="EndOfFile";o(yN,"isEndOfFile");vN="Group";o(lf,"isGroup");xN="Keyword";o(Xo,"isKeyword");bN="NegatedToken";o(wN,"isNegatedToken");TN="RegexToken";o(kN,"isRegexToken");EN="RuleCall";o(Fl,"isRuleCall");CN="TerminalAlternatives";o(SN,"isTerminalAlternatives");AN="TerminalGroup";o(_N,"isTerminalGroup");LN="TerminalRuleCall";o(dk,"isTerminalRuleCall");DN="UnorderedGroup";o(pk,"isUnorderedGroup");RN="UntilToken";o(NN,"isUntilToken");MN="Wildcard";o(IN,"isWildcard");eg=class extends Qd{static{o(this,"LangiumGrammarAstReflection")}getAllTypes(){return["AbstractElement","AbstractRule","AbstractType","Action","Alternatives","ArrayLiteral","ArrayType","Assignment","BooleanLiteral","CharacterRange","Condition","Conjunction","CrossReference","Disjunction","EndOfFile","Grammar","GrammarImport","Group","InferredType","Interface","Keyword","NamedArgument","NegatedToken","Negation","NumberLiteral","Parameter","ParameterReference","ParserRule","ReferenceType","RegexToken","ReturnType","RuleCall","SimpleType","StringLiteral","TerminalAlternatives","TerminalGroup","TerminalRule","TerminalRuleCall","Type","TypeAttribute","TypeDefinition","UnionType","UnorderedGroup","UntilToken","ValueLiteral","Wildcard"]}computeIsSubtype(t,r){switch(t){case uN:case hN:case fN:case dN:case mN:case gN:case vN:case xN:case bN:case TN:case EN:case CN:case AN:case LN:case DN:case RN:case MN:return this.isSubtype(PR,r);case BR:case QR:case sN:return this.isSubtype(ok,r);case FR:case rN:case aN:case lN:return this.isSubtype(OR,r);case $R:return this.isSubtype(sk,r)||this.isSubtype(ok,r);case VR:case HR:case jR:case JR:return this.isSubtype(sk,r);case qR:case XR:case oN:return this.isSubtype(f2,r);case eN:return this.isSubtype(h2,r)||this.isSubtype(f2,r);case lk:return this.isSubtype(h2,r);default:return!1}}getReferenceType(t){let r=`${t.container.$type}:${t.property}`;switch(r){case"Action:type":case"CrossReference:type":case"Interface:superTypes":case"ParserRule:returnType":case"SimpleType:typeRef":return f2;case"Grammar:hiddenTokens":case"ParserRule:hiddenTokens":case"RuleCall:rule":return h2;case"Grammar:usedGrammars":return YR;case"NamedArgument:parameter":case"ParameterReference:parameter":return ZR;case"TerminalRuleCall:rule":return lk;default:throw new Error(`${r} is not a valid reference id.`)}}getTypeMetaData(t){switch(t){case"AbstractElement":return{name:"AbstractElement",properties:[{name:"cardinality"},{name:"lookahead"}]};case"ArrayLiteral":return{name:"ArrayLiteral",properties:[{name:"elements",defaultValue:[]}]};case"ArrayType":return{name:"ArrayType",properties:[{name:"elementType"}]};case"BooleanLiteral":return{name:"BooleanLiteral",properties:[{name:"true",defaultValue:!1}]};case"Conjunction":return{name:"Conjunction",properties:[{name:"left"},{name:"right"}]};case"Disjunction":return{name:"Disjunction",properties:[{name:"left"},{name:"right"}]};case"Grammar":return{name:"Grammar",properties:[{name:"definesHiddenTokens",defaultValue:!1},{name:"hiddenTokens",defaultValue:[]},{name:"imports",defaultValue:[]},{name:"interfaces",defaultValue:[]},{name:"isDeclared",defaultValue:!1},{name:"name"},{name:"rules",defaultValue:[]},{name:"types",defaultValue:[]},{name:"usedGrammars",defaultValue:[]}]};case"GrammarImport":return{name:"GrammarImport",properties:[{name:"path"}]};case"InferredType":return{name:"InferredType",properties:[{name:"name"}]};case"Interface":return{name:"Interface",properties:[{name:"attributes",defaultValue:[]},{name:"name"},{name:"superTypes",defaultValue:[]}]};case"NamedArgument":return{name:"NamedArgument",properties:[{name:"calledByName",defaultValue:!1},{name:"parameter"},{name:"value"}]};case"Negation":return{name:"Negation",properties:[{name:"value"}]};case"NumberLiteral":return{name:"NumberLiteral",properties:[{name:"value"}]};case"Parameter":return{name:"Parameter",properties:[{name:"name"}]};case"ParameterReference":return{name:"ParameterReference",properties:[{name:"parameter"}]};case"ParserRule":return{name:"ParserRule",properties:[{name:"dataType"},{name:"definesHiddenTokens",defaultValue:!1},{name:"definition"},{name:"entry",defaultValue:!1},{name:"fragment",defaultValue:!1},{name:"hiddenTokens",defaultValue:[]},{name:"inferredType"},{name:"name"},{name:"parameters",defaultValue:[]},{name:"returnType"},{name:"wildcard",defaultValue:!1}]};case"ReferenceType":return{name:"ReferenceType",properties:[{name:"referenceType"}]};case"ReturnType":return{name:"ReturnType",properties:[{name:"name"}]};case"SimpleType":return{name:"SimpleType",properties:[{name:"primitiveType"},{name:"stringType"},{name:"typeRef"}]};case"StringLiteral":return{name:"StringLiteral",properties:[{name:"value"}]};case"TerminalRule":return{name:"TerminalRule",properties:[{name:"definition"},{name:"fragment",defaultValue:!1},{name:"hidden",defaultValue:!1},{name:"name"},{name:"type"}]};case"Type":return{name:"Type",properties:[{name:"name"},{name:"type"}]};case"TypeAttribute":return{name:"TypeAttribute",properties:[{name:"defaultValue"},{name:"isOptional",defaultValue:!1},{name:"name"},{name:"type"}]};case"UnionType":return{name:"UnionType",properties:[{name:"types",defaultValue:[]}]};case"Action":return{name:"Action",properties:[{name:"cardinality"},{name:"feature"},{name:"inferredType"},{name:"lookahead"},{name:"operator"},{name:"type"}]};case"Alternatives":return{name:"Alternatives",properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"lookahead"}]};case"Assignment":return{name:"Assignment",properties:[{name:"cardinality"},{name:"feature"},{name:"lookahead"},{name:"operator"},{name:"terminal"}]};case"CharacterRange":return{name:"CharacterRange",properties:[{name:"cardinality"},{name:"left"},{name:"lookahead"},{name:"right"}]};case"CrossReference":return{name:"CrossReference",properties:[{name:"cardinality"},{name:"deprecatedSyntax",defaultValue:!1},{name:"lookahead"},{name:"terminal"},{name:"type"}]};case"EndOfFile":return{name:"EndOfFile",properties:[{name:"cardinality"},{name:"lookahead"}]};case"Group":return{name:"Group",properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"guardCondition"},{name:"lookahead"}]};case"Keyword":return{name:"Keyword",properties:[{name:"cardinality"},{name:"lookahead"},{name:"value"}]};case"NegatedToken":return{name:"NegatedToken",properties:[{name:"cardinality"},{name:"lookahead"},{name:"terminal"}]};case"RegexToken":return{name:"RegexToken",properties:[{name:"cardinality"},{name:"lookahead"},{name:"regex"}]};case"RuleCall":return{name:"RuleCall",properties:[{name:"arguments",defaultValue:[]},{name:"cardinality"},{name:"lookahead"},{name:"rule"}]};case"TerminalAlternatives":return{name:"TerminalAlternatives",properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"lookahead"}]};case"TerminalGroup":return{name:"TerminalGroup",properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"lookahead"}]};case"TerminalRuleCall":return{name:"TerminalRuleCall",properties:[{name:"cardinality"},{name:"lookahead"},{name:"rule"}]};case"UnorderedGroup":return{name:"UnorderedGroup",properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"lookahead"}]};case"UntilToken":return{name:"UntilToken",properties:[{name:"cardinality"},{name:"lookahead"},{name:"terminal"}]};case"Wildcard":return{name:"Wildcard",properties:[{name:"cardinality"},{name:"lookahead"}]};default:return{name:t,properties:[]}}}},lr=new eg});var gk={};xr(gk,{assignMandatoryProperties:()=>BN,copyAstNode:()=>PN,findLocalReferences:()=>jPt,findRootNode:()=>Bat,getContainerOfType:()=>n0,getDocument:()=>$i,hasContainerOfType:()=>XPt,linkContentToContainer:()=>mk,streamAllContents:()=>Pc,streamAst:()=>jo,streamContents:()=>g2,streamReferences:()=>rg});function mk(e){for(let[t,r]of Object.entries(e))t.startsWith("$")||(Array.isArray(r)?r.forEach((n,i)=>{ri(n)&&(n.$container=e,n.$containerProperty=t,n.$containerIndex=i)}):ri(r)&&(r.$container=e,r.$containerProperty=t))}function n0(e,t){let r=e;for(;r;){if(t(r))return r;r=r.$container}}function XPt(e,t){let r=e;for(;r;){if(t(r))return!0;r=r.$container}return!1}function $i(e){let r=Bat(e).$document;if(!r)throw new Error("AST node has no document.");return r}function Bat(e){for(;e.$container;)e=e.$container;return e}function g2(e,t){if(!e)throw new Error("Node must be an AstNode.");let r=t?.range;return new ho(()=>({keys:Object.keys(e),keyIndex:0,arrayIndex:0}),n=>{for(;n.keyIndexg2(r,t))}function jo(e,t){if(e){if(t?.range&&!ON(e,t.range))return new Ic(e,()=>[])}else throw new Error("Root node must be an AstNode.");return new Ic(e,r=>g2(r,t),{includeRoot:!0})}function ON(e,t){var r;if(!t)return!0;let n=(r=e.$cstNode)===null||r===void 0?void 0:r.range;return n?NR(n,t):!1}function rg(e){return new ho(()=>({keys:Object.keys(e),keyIndex:0,arrayIndex:0}),t=>{for(;t.keyIndex{rg(n).forEach(i=>{i.reference.ref===e&&r.push(i.reference)})}),en(r)}function BN(e,t){let r=e.getTypeMetaData(t.$type),n=t;for(let i of r.properties)i.defaultValue!==void 0&&n[i.name]===void 0&&(n[i.name]=Fat(i.defaultValue))}function Fat(e){return Array.isArray(e)?[...e.map(Fat)]:e}function PN(e,t){let r={$type:e.$type};for(let[n,i]of Object.entries(e))if(!n.startsWith("$"))if(ri(i))r[n]=PN(i,t);else if(ka(i))r[n]=t(r,n,i.$refNode,i.$refText);else if(Array.isArray(i)){let a=[];for(let s of i)ri(s)?a.push(PN(s,t)):ka(s)?a.push(t(r,n,s.$refNode,s.$refText)):a.push(s);r[n]=a}else r[n]=i;return mk(r),r}var is=R(()=>{"use strict";Yo();Ps();Pl();o(mk,"linkContentToContainer");o(n0,"getContainerOfType");o(XPt,"hasContainerOfType");o($i,"getDocument");o(Bat,"findRootNode");o(g2,"streamContents");o(Pc,"streamAllContents");o(jo,"streamAst");o(ON,"isAstNodeInRange");o(rg,"streamReferences");o(jPt,"findLocalReferences");o(BN,"assignMandatoryProperties");o(Fat,"copyDefaultValue");o(PN,"copyAstNode")});function ar(e){return e.charCodeAt(0)}function yk(e,t){Array.isArray(e)?e.forEach(function(r){t.push(r)}):t.push(e)}function ng(e,t){if(e[t]===!0)throw"duplicate flag "+t;let r=e[t];e[t]=!0}function i0(e){if(e===void 0)throw Error("Internal Error - Should never get here!");return!0}function y2(){throw Error("Internal Error - Should never get here!")}function FN(e){return e.type==="Character"}var zN=R(()=>{"use strict";o(ar,"cc");o(yk,"insertToSet");o(ng,"addFlag");o(i0,"ASSERT_EXISTS");o(y2,"ASSERT_NEVER_REACH_HERE");o(FN,"isCharacter")});var v2,x2,$N,zat=R(()=>{"use strict";zN();v2=[];for(let e=ar("0");e<=ar("9");e++)v2.push(e);x2=[ar("_")].concat(v2);for(let e=ar("a");e<=ar("z");e++)x2.push(e);for(let e=ar("A");e<=ar("Z");e++)x2.push(e);$N=[ar(" "),ar("\f"),ar(` +`),ar("\r"),ar(" "),ar("\v"),ar(" "),ar("\xA0"),ar("\u1680"),ar("\u2000"),ar("\u2001"),ar("\u2002"),ar("\u2003"),ar("\u2004"),ar("\u2005"),ar("\u2006"),ar("\u2007"),ar("\u2008"),ar("\u2009"),ar("\u200A"),ar("\u2028"),ar("\u2029"),ar("\u202F"),ar("\u205F"),ar("\u3000"),ar("\uFEFF")]});var KPt,vk,QPt,a0,$at=R(()=>{"use strict";zN();zat();KPt=/[0-9a-fA-F]/,vk=/[0-9]/,QPt=/[1-9]/,a0=class{static{o(this,"RegExpParser")}constructor(){this.idx=0,this.input="",this.groupIdx=0}saveState(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}}restoreState(t){this.idx=t.idx,this.input=t.input,this.groupIdx=t.groupIdx}pattern(t){this.idx=0,this.input=t,this.groupIdx=0,this.consumeChar("/");let r=this.disjunction();this.consumeChar("/");let n={type:"Flags",loc:{begin:this.idx,end:t.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};for(;this.isRegExpFlag();)switch(this.popChar()){case"g":ng(n,"global");break;case"i":ng(n,"ignoreCase");break;case"m":ng(n,"multiLine");break;case"u":ng(n,"unicode");break;case"y":ng(n,"sticky");break}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:n,value:r,loc:this.loc(0)}}disjunction(){let t=[],r=this.idx;for(t.push(this.alternative());this.peekChar()==="|";)this.consumeChar("|"),t.push(this.alternative());return{type:"Disjunction",value:t,loc:this.loc(r)}}alternative(){let t=[],r=this.idx;for(;this.isTerm();)t.push(this.term());return{type:"Alternative",value:t,loc:this.loc(r)}}term(){return this.isAssertion()?this.assertion():this.atom()}assertion(){let t=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(t)};case"$":return{type:"EndAnchor",loc:this.loc(t)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(t)};case"B":return{type:"NonWordBoundary",loc:this.loc(t)}}throw Error("Invalid Assertion Escape");case"(":this.consumeChar("?");let r;switch(this.popChar()){case"=":r="Lookahead";break;case"!":r="NegativeLookahead";break}i0(r);let n=this.disjunction();return this.consumeChar(")"),{type:r,value:n,loc:this.loc(t)}}return y2()}quantifier(t=!1){let r,n=this.idx;switch(this.popChar()){case"*":r={atLeast:0,atMost:1/0};break;case"+":r={atLeast:1,atMost:1/0};break;case"?":r={atLeast:0,atMost:1};break;case"{":let i=this.integerIncludingZero();switch(this.popChar()){case"}":r={atLeast:i,atMost:i};break;case",":let a;this.isDigit()?(a=this.integerIncludingZero(),r={atLeast:i,atMost:a}):r={atLeast:i,atMost:1/0},this.consumeChar("}");break}if(t===!0&&r===void 0)return;i0(r);break}if(!(t===!0&&r===void 0)&&i0(r))return this.peekChar(0)==="?"?(this.consumeChar("?"),r.greedy=!1):r.greedy=!0,r.type="Quantifier",r.loc=this.loc(n),r}atom(){let t,r=this.idx;switch(this.peekChar()){case".":t=this.dotAll();break;case"\\":t=this.atomEscape();break;case"[":t=this.characterClass();break;case"(":t=this.group();break}return t===void 0&&this.isPatternCharacter()&&(t=this.patternCharacter()),i0(t)?(t.loc=this.loc(r),this.isQuantifier()&&(t.quantifier=this.quantifier()),t):y2()}dotAll(){return this.consumeChar("."),{type:"Set",complement:!0,value:[ar(` +`),ar("\r"),ar("\u2028"),ar("\u2029")]}}atomEscape(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}decimalEscapeAtom(){return{type:"GroupBackReference",value:this.positiveInteger()}}characterClassEscape(){let t,r=!1;switch(this.popChar()){case"d":t=v2;break;case"D":t=v2,r=!0;break;case"s":t=$N;break;case"S":t=$N,r=!0;break;case"w":t=x2;break;case"W":t=x2,r=!0;break}return i0(t)?{type:"Set",value:t,complement:r}:y2()}controlEscapeAtom(){let t;switch(this.popChar()){case"f":t=ar("\f");break;case"n":t=ar(` +`);break;case"r":t=ar("\r");break;case"t":t=ar(" ");break;case"v":t=ar("\v");break}return i0(t)?{type:"Character",value:t}:y2()}controlLetterEscapeAtom(){this.consumeChar("c");let t=this.popChar();if(/[a-zA-Z]/.test(t)===!1)throw Error("Invalid ");return{type:"Character",value:t.toUpperCase().charCodeAt(0)-64}}nulCharacterAtom(){return this.consumeChar("0"),{type:"Character",value:ar("\0")}}hexEscapeSequenceAtom(){return this.consumeChar("x"),this.parseHexDigits(2)}regExpUnicodeEscapeSequenceAtom(){return this.consumeChar("u"),this.parseHexDigits(4)}identityEscapeAtom(){let t=this.popChar();return{type:"Character",value:ar(t)}}classPatternCharacterAtom(){switch(this.peekChar()){case` +`:case"\r":case"\u2028":case"\u2029":case"\\":case"]":throw Error("TBD");default:let t=this.popChar();return{type:"Character",value:ar(t)}}}characterClass(){let t=[],r=!1;for(this.consumeChar("["),this.peekChar(0)==="^"&&(this.consumeChar("^"),r=!0);this.isClassAtom();){let n=this.classAtom(),i=n.type==="Character";if(FN(n)&&this.isRangeDash()){this.consumeChar("-");let a=this.classAtom(),s=a.type==="Character";if(FN(a)){if(a.value=this.input.length)throw Error("Unexpected end of input");this.idx++}loc(t){return{begin:t,end:this.idx}}}});var Bc,Gat=R(()=>{"use strict";Bc=class{static{o(this,"BaseRegExpVisitor")}visitChildren(t){for(let r in t){let n=t[r];t.hasOwnProperty(r)&&(n.type!==void 0?this.visit(n):Array.isArray(n)&&n.forEach(i=>{this.visit(i)},this))}}visit(t){switch(t.type){case"Pattern":this.visitPattern(t);break;case"Flags":this.visitFlags(t);break;case"Disjunction":this.visitDisjunction(t);break;case"Alternative":this.visitAlternative(t);break;case"StartAnchor":this.visitStartAnchor(t);break;case"EndAnchor":this.visitEndAnchor(t);break;case"WordBoundary":this.visitWordBoundary(t);break;case"NonWordBoundary":this.visitNonWordBoundary(t);break;case"Lookahead":this.visitLookahead(t);break;case"NegativeLookahead":this.visitNegativeLookahead(t);break;case"Character":this.visitCharacter(t);break;case"Set":this.visitSet(t);break;case"Group":this.visitGroup(t);break;case"GroupBackReference":this.visitGroupBackReference(t);break;case"Quantifier":this.visitQuantifier(t);break}this.visitChildren(t)}visitPattern(t){}visitFlags(t){}visitDisjunction(t){}visitAlternative(t){}visitStartAnchor(t){}visitEndAnchor(t){}visitWordBoundary(t){}visitNonWordBoundary(t){}visitLookahead(t){}visitNegativeLookahead(t){}visitCharacter(t){}visitSet(t){}visitGroup(t){}visitGroupBackReference(t){}visitQuantifier(t){}}});var b2=R(()=>{"use strict";$at();Gat()});var bk={};xr(bk,{NEWLINE_REGEXP:()=>VN,escapeRegExp:()=>o0,getCaseInsensitivePattern:()=>HN,getTerminalParts:()=>ZPt,isMultilineComment:()=>UN,isWhitespace:()=>xk,partialMatches:()=>WN,partialRegExp:()=>Uat});function ZPt(e){try{typeof e!="string"&&(e=e.source),e=`/${e}/`;let t=Vat.pattern(e),r=[];for(let n of t.value.value)s0.reset(e),s0.visit(n),r.push({start:s0.startRegexp,end:s0.endRegex});return r}catch{return[]}}function UN(e){try{return typeof e=="string"&&(e=new RegExp(e)),e=e.toString(),s0.reset(e),s0.visit(Vat.pattern(e)),s0.multiline}catch{return!1}}function xk(e){return(typeof e=="string"?new RegExp(e):e).test(" ")}function o0(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function HN(e){return Array.prototype.map.call(e,t=>/\w/.test(t)?`[${t.toLowerCase()}${t.toUpperCase()}]`:o0(t)).join("")}function WN(e,t){let r=Uat(e),n=t.match(r);return!!n&&n[0].length>0}function Uat(e){typeof e=="string"&&(e=new RegExp(e));let t=e,r=e.source,n=0;function i(){let a="",s;function l(h){a+=r.substr(n,h),n+=h}o(l,"appendRaw");function u(h){a+="(?:"+r.substr(n,h)+"|$)",n+=h}for(o(u,"appendOptional");n",n)-n+1);break;default:u(2);break}break;case"[":s=/\[(?:\\.|.)*?\]/g,s.lastIndex=n,s=s.exec(r)||[],u(s[0].length);break;case"|":case"^":case"$":case"*":case"+":case"?":l(1);break;case"{":s=/\{\d+,?\d*\}/g,s.lastIndex=n,s=s.exec(r),s?l(s[0].length):u(1);break;case"(":if(r[n+1]==="?")switch(r[n+2]){case":":a+="(?:",n+=3,a+=i()+"|$)";break;case"=":a+="(?=",n+=3,a+=i()+")";break;case"!":s=n,n+=3,i(),a+=r.substr(s,n-s);break;case"<":switch(r[n+3]){case"=":case"!":s=n,n+=4,i(),a+=r.substr(s,n-s);break;default:l(r.indexOf(">",n)-n+1),a+=i()+"|$)";break}break}else l(1),a+=i()+"|$)";break;case")":return++n,a;default:u(1);break}return a}return o(i,"process"),new RegExp(i(),e.flags)}var VN,Vat,GN,s0,ig=R(()=>{"use strict";b2();VN=/\r?\n/gm,Vat=new a0,GN=class extends Bc{static{o(this,"TerminalRegExpVisitor")}constructor(){super(...arguments),this.isStarting=!0,this.endRegexpStack=[],this.multiline=!1}get endRegex(){return this.endRegexpStack.join("")}reset(t){this.multiline=!1,this.regex=t,this.startRegexp="",this.isStarting=!0,this.endRegexpStack=[]}visitGroup(t){t.quantifier&&(this.isStarting=!1,this.endRegexpStack=[])}visitCharacter(t){let r=String.fromCharCode(t.value);if(!this.multiline&&r===` +`&&(this.multiline=!0),t.quantifier)this.isStarting=!1,this.endRegexpStack=[];else{let n=o0(r);this.endRegexpStack.push(n),this.isStarting&&(this.startRegexp+=n)}}visitSet(t){if(!this.multiline){let r=this.regex.substring(t.loc.begin,t.loc.end),n=new RegExp(r);this.multiline=!!` +`.match(n)}if(t.quantifier)this.isStarting=!1,this.endRegexpStack=[];else{let r=this.regex.substring(t.loc.begin,t.loc.end);this.endRegexpStack.push(r),this.isStarting&&(this.startRegexp+=r)}}visitChildren(t){t.type==="Group"&&t.quantifier||super.visitChildren(t)}},s0=new GN;o(ZPt,"getTerminalParts");o(UN,"isMultilineComment");o(xk,"isWhitespace");o(o0,"escapeRegExp");o(HN,"getCaseInsensitivePattern");o(WN,"partialMatches");o(Uat,"partialRegExp")});var Tk={};xr(Tk,{findAssignment:()=>tM,findNameAssignment:()=>wk,findNodeForKeyword:()=>ZN,findNodeForProperty:()=>T2,findNodesForKeyword:()=>JPt,findNodesForKeywordInternal:()=>JN,findNodesForProperty:()=>KN,getActionAtElement:()=>Xat,getActionType:()=>Kat,getAllReachableRules:()=>w2,getCrossReferenceTerminal:()=>XN,getEntryRule:()=>Hat,getExplicitRuleType:()=>eM,getHiddenRules:()=>Wat,getRuleType:()=>rM,getTypeName:()=>l0,isArrayCardinality:()=>eBt,isArrayOperator:()=>rBt,isCommentTerminal:()=>jN,isDataType:()=>nBt,isDataTypeRule:()=>k2,isOptionalCardinality:()=>tBt,terminalRegex:()=>ag});function Hat(e){return e.rules.find(t=>$a(t)&&t.entry)}function Wat(e){return e.rules.filter(t=>qo(t)&&t.hidden)}function w2(e,t){let r=new Set,n=Hat(e);if(!n)return new Set(e.rules);let i=[n].concat(Wat(e));for(let s of i)Yat(s,r,t);let a=new Set;for(let s of e.rules)(r.has(s.name)||qo(s)&&s.hidden)&&a.add(s);return a}function Yat(e,t,r){t.add(e.name),Pc(e).forEach(n=>{if(Fl(n)||r&&dk(n)){let i=n.rule.ref;i&&!t.has(i.name)&&Yat(i,t,r)}})}function XN(e){if(e.terminal)return e.terminal;if(e.type.ref){let t=wk(e.type.ref);return t?.terminal}}function jN(e){return e.hidden&&!ag(e).test(" ")}function KN(e,t){return!e||!t?[]:QN(e,t,e.astNode,!0)}function T2(e,t,r){if(!e||!t)return;let n=QN(e,t,e.astNode,!0);if(n.length!==0)return r!==void 0?r=Math.max(0,Math.min(r,n.length-1)):r=0,n[r]}function QN(e,t,r,n){if(!n){let i=n0(e.grammarSource,Bl);if(i&&i.feature===t)return[e]}return uo(e)&&e.astNode===r?e.content.flatMap(i=>QN(i,t,r,!1)):[]}function JPt(e,t){return e?JN(e,t,e?.astNode):[]}function ZN(e,t,r){if(!e)return;let n=JN(e,t,e?.astNode);if(n.length!==0)return r!==void 0?r=Math.max(0,Math.min(r,n.length-1)):r=0,n[r]}function JN(e,t,r){if(e.astNode!==r)return[];if(Xo(e.grammarSource)&&e.grammarSource.value===t)return[e];let n=Jd(e).iterator(),i,a=[];do if(i=n.next(),!i.done){let s=i.value;s.astNode===r?Xo(s.grammarSource)&&s.grammarSource.value===t&&a.push(s):n.prune()}while(!i.done);return a}function tM(e){var t;let r=e.astNode;for(;r===((t=e.container)===null||t===void 0?void 0:t.astNode);){let n=n0(e.grammarSource,Bl);if(n)return n;e=e.container}}function wk(e){let t=e;return ck(t)&&(zu(t.$container)?t=t.$container.$container:$a(t.$container)?t=t.$container:of(t.$container)),qat(e,t,new Map)}function qat(e,t,r){var n;function i(a,s){let l;return n0(a,Bl)||(l=qat(s,s,r)),r.set(e,l),l}if(o(i,"go"),r.has(e))return r.get(e);r.set(e,void 0);for(let a of Pc(t)){if(Bl(a)&&a.feature.toLowerCase()==="name")return r.set(e,a),a;if(Fl(a)&&$a(a.rule.ref))return i(a,a.rule.ref);if(hk(a)&&(!((n=a.typeRef)===null||n===void 0)&&n.ref))return i(a,a.typeRef.ref)}}function Xat(e){let t=e.$container;if(lf(t)){let r=t.elements,n=r.indexOf(e);for(let i=n-1;i>=0;i--){let a=r[i];if(zu(a))return a;{let s=Pc(r[i]).find(zu);if(s)return s}}}if(d2(t))return Xat(t)}function tBt(e,t){return e==="?"||e==="*"||lf(t)&&!!t.guardCondition}function eBt(e){return e==="*"||e==="+"}function rBt(e){return e==="+="}function k2(e){return jat(e,new Set)}function jat(e,t){if(t.has(e))return!0;t.add(e);for(let r of Pc(e))if(Fl(r)){if(!r.rule.ref||$a(r.rule.ref)&&!jat(r.rule.ref,t))return!1}else{if(Bl(r))return!1;if(zu(r))return!1}return!!e.definition}function nBt(e){return qN(e.type,new Set)}function qN(e,t){if(t.has(e))return!0;if(t.add(e),zR(e))return!1;if(nN(e))return!1;if(cN(e))return e.types.every(r=>qN(r,t));if(hk(e)){if(e.primitiveType!==void 0)return!0;if(e.stringType!==void 0)return!0;if(e.typeRef!==void 0){let r=e.typeRef.ref;return p2(r)?qN(r.type,t):!1}else return!1}else return!1}function eM(e){if(e.inferredType)return e.inferredType.name;if(e.dataType)return e.dataType;if(e.returnType){let t=e.returnType.ref;if(t){if($a(t))return t.name;if(uk(t)||p2(t))return t.name}}}function l0(e){var t;if($a(e))return k2(e)?e.name:(t=eM(e))!==null&&t!==void 0?t:e.name;if(uk(e)||p2(e)||iN(e))return e.name;if(zu(e)){let r=Kat(e);if(r)return r}else if(ck(e))return e.name;throw new Error("Cannot get name of Unknown Type")}function Kat(e){var t;if(e.inferredType)return e.inferredType.name;if(!((t=e.type)===null||t===void 0)&&t.ref)return l0(e.type.ref)}function rM(e){var t,r,n;return qo(e)?(r=(t=e.type)===null||t===void 0?void 0:t.name)!==null&&r!==void 0?r:"string":k2(e)?e.name:(n=eM(e))!==null&&n!==void 0?n:e.name}function ag(e){let t={s:!1,i:!1,u:!1},r=sg(e.definition,t),n=Object.entries(t).filter(([,i])=>i).map(([i])=>i).join("");return new RegExp(r,n)}function sg(e,t){if(SN(e))return iBt(e);if(_N(e))return aBt(e);if(pN(e))return lBt(e);if(dk(e)){let r=e.rule.ref;if(!r)throw new Error("Missing rule reference.");return $u(sg(r.definition),{cardinality:e.cardinality,lookahead:e.lookahead})}else{if(wN(e))return oBt(e);if(NN(e))return sBt(e);if(kN(e)){let r=e.regex.lastIndexOf("/"),n=e.regex.substring(1,r),i=e.regex.substring(r+1);return t&&(t.i=i.includes("i"),t.s=i.includes("s"),t.u=i.includes("u")),$u(n,{cardinality:e.cardinality,lookahead:e.lookahead,wrap:!1})}else{if(IN(e))return $u(nM,{cardinality:e.cardinality,lookahead:e.lookahead});throw new Error(`Invalid terminal element: ${e?.$type}`)}}}function iBt(e){return $u(e.elements.map(t=>sg(t)).join("|"),{cardinality:e.cardinality,lookahead:e.lookahead})}function aBt(e){return $u(e.elements.map(t=>sg(t)).join(""),{cardinality:e.cardinality,lookahead:e.lookahead})}function sBt(e){return $u(`${nM}*?${sg(e.terminal)}`,{cardinality:e.cardinality,lookahead:e.lookahead})}function oBt(e){return $u(`(?!${sg(e.terminal)})${nM}*?`,{cardinality:e.cardinality,lookahead:e.lookahead})}function lBt(e){return e.right?$u(`[${YN(e.left)}-${YN(e.right)}]`,{cardinality:e.cardinality,lookahead:e.lookahead,wrap:!1}):$u(YN(e.left),{cardinality:e.cardinality,lookahead:e.lookahead,wrap:!1})}function YN(e){return o0(e.value)}function $u(e,t){var r;return(t.wrap!==!1||t.lookahead)&&(e=`(${(r=t.lookahead)!==null&&r!==void 0?r:""}${e})`),t.cardinality?`${e}${t.cardinality}`:e}var nM,zl=R(()=>{"use strict";ak();Oc();Yo();is();Pl();ig();o(Hat,"getEntryRule");o(Wat,"getHiddenRules");o(w2,"getAllReachableRules");o(Yat,"ruleDfs");o(XN,"getCrossReferenceTerminal");o(jN,"isCommentTerminal");o(KN,"findNodesForProperty");o(T2,"findNodeForProperty");o(QN,"findNodesForPropertyInternal");o(JPt,"findNodesForKeyword");o(ZN,"findNodeForKeyword");o(JN,"findNodesForKeywordInternal");o(tM,"findAssignment");o(wk,"findNameAssignment");o(qat,"findNameAssignmentInternal");o(Xat,"getActionAtElement");o(tBt,"isOptionalCardinality");o(eBt,"isArrayCardinality");o(rBt,"isArrayOperator");o(k2,"isDataTypeRule");o(jat,"isDataTypeRuleInternal");o(nBt,"isDataType");o(qN,"isDataTypeInternal");o(eM,"getExplicitRuleType");o(l0,"getTypeName");o(Kat,"getActionType");o(rM,"getRuleType");o(ag,"terminalRegex");nM=/[\s\S]/.source;o(sg,"abstractElementToRegex");o(iBt,"terminalAlternativesToRegex");o(aBt,"terminalGroupToRegex");o(sBt,"untilTokenToRegex");o(oBt,"negateTokenToRegex");o(lBt,"characterRangeToRegex");o(YN,"keywordToRegex");o($u,"withCardinality")});function iM(e){let t=[],r=e.Grammar;for(let n of r.rules)qo(n)&&jN(n)&&UN(ag(n))&&t.push(n.name);return{multilineCommentRules:t,nameRegexp:nk}}var aM=R(()=>{"use strict";Pl();zl();ig();Oc();o(iM,"createGrammarConfig")});var sM=R(()=>{"use strict"});function og(e){console&&console.error&&console.error(`Error: ${e}`)}function E2(e){console&&console.warn&&console.warn(`Warning: ${e}`)}var Qat=R(()=>{"use strict";o(og,"PRINT_ERROR");o(E2,"PRINT_WARNING")});function C2(e){let t=new Date().getTime(),r=e();return{time:new Date().getTime()-t,value:r}}var Zat=R(()=>{"use strict";o(C2,"timer")});function S2(e){function t(){}o(t,"FakeConstructor"),t.prototype=e;let r=new t;function n(){return typeof r.bar}return o(n,"fakeAccess"),n(),n(),e;(0,eval)(e)}var Jat=R(()=>{"use strict";o(S2,"toFastProperties")});var lg=R(()=>{"use strict";Qat();Zat();Jat()});function cBt(e){return uBt(e)?e.LABEL:e.name}function uBt(e){return yi(e.LABEL)&&e.LABEL!==""}function kk(e){return Xt(e,cg)}function cg(e){function t(r){return Xt(r,cg)}if(o(t,"convertDefinition"),e instanceof nn){let r={type:"NonTerminal",name:e.nonTerminalName,idx:e.idx};return yi(e.label)&&(r.label=e.label),r}else{if(e instanceof Ln)return{type:"Alternative",definition:t(e.definition)};if(e instanceof an)return{type:"Option",idx:e.idx,definition:t(e.definition)};if(e instanceof Dn)return{type:"RepetitionMandatory",idx:e.idx,definition:t(e.definition)};if(e instanceof Rn)return{type:"RepetitionMandatoryWithSeparator",idx:e.idx,separator:cg(new br({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof bn)return{type:"RepetitionWithSeparator",idx:e.idx,separator:cg(new br({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof Lr)return{type:"Repetition",idx:e.idx,definition:t(e.definition)};if(e instanceof wn)return{type:"Alternation",idx:e.idx,definition:t(e.definition)};if(e instanceof br){let r={type:"Terminal",name:e.terminalType.name,label:cBt(e.terminalType),idx:e.idx};yi(e.label)&&(r.terminalLabel=e.label);let n=e.terminalType.PATTERN;return e.terminalType.PATTERN&&(r.pattern=Uo(n)?n.source:n),r}else{if(e instanceof as)return{type:"Rule",name:e.name,orgText:e.orgText,definition:t(e.definition)};throw Error("non exhaustive match")}}}var fo,nn,as,Ln,an,Dn,Rn,Lr,bn,wn,br,Ek=R(()=>{"use strict";Ve();o(cBt,"tokenLabel");o(uBt,"hasTokenLabel");fo=class{static{o(this,"AbstractProduction")}get definition(){return this._definition}set definition(t){this._definition=t}constructor(t){this._definition=t}accept(t){t.visit(this),Et(this.definition,r=>{r.accept(t)})}},nn=class extends fo{static{o(this,"NonTerminal")}constructor(t){super([]),this.idx=1,va(this,Os(t,r=>r!==void 0))}set definition(t){}get definition(){return this.referencedRule!==void 0?this.referencedRule.definition:[]}accept(t){t.visit(this)}},as=class extends fo{static{o(this,"Rule")}constructor(t){super(t.definition),this.orgText="",va(this,Os(t,r=>r!==void 0))}},Ln=class extends fo{static{o(this,"Alternative")}constructor(t){super(t.definition),this.ignoreAmbiguities=!1,va(this,Os(t,r=>r!==void 0))}},an=class extends fo{static{o(this,"Option")}constructor(t){super(t.definition),this.idx=1,va(this,Os(t,r=>r!==void 0))}},Dn=class extends fo{static{o(this,"RepetitionMandatory")}constructor(t){super(t.definition),this.idx=1,va(this,Os(t,r=>r!==void 0))}},Rn=class extends fo{static{o(this,"RepetitionMandatoryWithSeparator")}constructor(t){super(t.definition),this.idx=1,va(this,Os(t,r=>r!==void 0))}},Lr=class extends fo{static{o(this,"Repetition")}constructor(t){super(t.definition),this.idx=1,va(this,Os(t,r=>r!==void 0))}},bn=class extends fo{static{o(this,"RepetitionWithSeparator")}constructor(t){super(t.definition),this.idx=1,va(this,Os(t,r=>r!==void 0))}},wn=class extends fo{static{o(this,"Alternation")}get definition(){return this._definition}set definition(t){this._definition=t}constructor(t){super(t.definition),this.idx=1,this.ignoreAmbiguities=!1,this.hasPredicates=!1,va(this,Os(t,r=>r!==void 0))}},br=class{static{o(this,"Terminal")}constructor(t){this.idx=1,va(this,Os(t,r=>r!==void 0))}accept(t){t.visit(this)}};o(kk,"serializeGrammar");o(cg,"serializeProduction")});var ss,tst=R(()=>{"use strict";Ek();ss=class{static{o(this,"GAstVisitor")}visit(t){let r=t;switch(r.constructor){case nn:return this.visitNonTerminal(r);case Ln:return this.visitAlternative(r);case an:return this.visitOption(r);case Dn:return this.visitRepetitionMandatory(r);case Rn:return this.visitRepetitionMandatoryWithSeparator(r);case bn:return this.visitRepetitionWithSeparator(r);case Lr:return this.visitRepetition(r);case wn:return this.visitAlternation(r);case br:return this.visitTerminal(r);case as:return this.visitRule(r);default:throw Error("non exhaustive match")}}visitNonTerminal(t){}visitAlternative(t){}visitOption(t){}visitRepetition(t){}visitRepetitionMandatory(t){}visitRepetitionMandatoryWithSeparator(t){}visitRepetitionWithSeparator(t){}visitAlternation(t){}visitTerminal(t){}visitRule(t){}}});function oM(e){return e instanceof Ln||e instanceof an||e instanceof Lr||e instanceof Dn||e instanceof Rn||e instanceof bn||e instanceof br||e instanceof as}function c0(e,t=[]){return e instanceof an||e instanceof Lr||e instanceof bn?!0:e instanceof wn?r2(e.definition,n=>c0(n,t)):e instanceof nn&&Wn(t,e)?!1:e instanceof fo?(e instanceof nn&&t.push(e),za(e.definition,n=>c0(n,t))):!1}function lM(e){return e instanceof wn}function Bs(e){if(e instanceof nn)return"SUBRULE";if(e instanceof an)return"OPTION";if(e instanceof wn)return"OR";if(e instanceof Dn)return"AT_LEAST_ONE";if(e instanceof Rn)return"AT_LEAST_ONE_SEP";if(e instanceof bn)return"MANY_SEP";if(e instanceof Lr)return"MANY";if(e instanceof br)return"CONSUME";throw Error("non exhaustive match")}var est=R(()=>{"use strict";Ve();Ek();o(oM,"isSequenceProd");o(c0,"isOptionalProd");o(lM,"isBranchingProd");o(Bs,"getProductionDslName")});var os=R(()=>{"use strict";Ek();tst();est()});function rst(e,t,r){return[new an({definition:[new br({terminalType:e.separator})].concat(e.definition)})].concat(t,r)}var Gu,Ck=R(()=>{"use strict";Ve();os();Gu=class{static{o(this,"RestWalker")}walk(t,r=[]){Et(t.definition,(n,i)=>{let a=gi(t.definition,i+1);if(n instanceof nn)this.walkProdRef(n,a,r);else if(n instanceof br)this.walkTerminal(n,a,r);else if(n instanceof Ln)this.walkFlat(n,a,r);else if(n instanceof an)this.walkOption(n,a,r);else if(n instanceof Dn)this.walkAtLeastOne(n,a,r);else if(n instanceof Rn)this.walkAtLeastOneSep(n,a,r);else if(n instanceof bn)this.walkManySep(n,a,r);else if(n instanceof Lr)this.walkMany(n,a,r);else if(n instanceof wn)this.walkOr(n,a,r);else throw Error("non exhaustive match")})}walkTerminal(t,r,n){}walkProdRef(t,r,n){}walkFlat(t,r,n){let i=r.concat(n);this.walk(t,i)}walkOption(t,r,n){let i=r.concat(n);this.walk(t,i)}walkAtLeastOne(t,r,n){let i=[new an({definition:t.definition})].concat(r,n);this.walk(t,i)}walkAtLeastOneSep(t,r,n){let i=rst(t,r,n);this.walk(t,i)}walkMany(t,r,n){let i=[new an({definition:t.definition})].concat(r,n);this.walk(t,i)}walkManySep(t,r,n){let i=rst(t,r,n);this.walk(t,i)}walkOr(t,r,n){let i=r.concat(n);Et(t.definition,a=>{let s=new Ln({definition:[a]});this.walk(s,i)})}};o(rst,"restForRepetitionWithSeparator")});function u0(e){if(e instanceof nn)return u0(e.referencedRule);if(e instanceof br)return dBt(e);if(oM(e))return hBt(e);if(lM(e))return fBt(e);throw Error("non exhaustive match")}function hBt(e){let t=[],r=e.definition,n=0,i=r.length>n,a,s=!0;for(;i&&s;)a=r[n],s=c0(a),t=t.concat(u0(a)),n=n+1,i=r.length>n;return Qm(t)}function fBt(e){let t=Xt(e.definition,r=>u0(r));return Qm(Wr(t))}function dBt(e){return[e.terminalType]}var cM=R(()=>{"use strict";Ve();os();o(u0,"first");o(hBt,"firstForSequence");o(fBt,"firstForBranching");o(dBt,"firstForTerminal")});var Sk,uM=R(()=>{"use strict";Sk="_~IN~_"});function nst(e){let t={};return Et(e,r=>{let n=new hM(r).startWalking();va(t,n)}),t}function pBt(e,t){return e.name+t+Sk}var hM,ist=R(()=>{"use strict";Ck();cM();Ve();uM();os();hM=class extends Gu{static{o(this,"ResyncFollowsWalker")}constructor(t){super(),this.topProd=t,this.follows={}}startWalking(){return this.walk(this.topProd),this.follows}walkTerminal(t,r,n){}walkProdRef(t,r,n){let i=pBt(t.referencedRule,t.idx)+this.topProd.name,a=r.concat(n),s=new Ln({definition:a}),l=u0(s);this.follows[i]=l}};o(nst,"computeAllProdsFollows");o(pBt,"buildBetweenProdsFollowPrefix")});function ug(e){let t=e.toString();if(Ak.hasOwnProperty(t))return Ak[t];{let r=mBt.pattern(t);return Ak[t]=r,r}}function ast(){Ak={}}var Ak,mBt,_k=R(()=>{"use strict";b2();Ak={},mBt=new a0;o(ug,"getRegExpAst");o(ast,"clearRegExpParserCache")});function lst(e,t=!1){try{let r=ug(e);return fM(r.value,{},r.flags.ignoreCase)}catch(r){if(r.message===ost)t&&E2(`${A2} Unable to optimize: < ${e.toString()} > + Complement Sets cannot be automatically optimized. + This will disable the lexer's first char optimizations. + See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details.`);else{let n="";t&&(n=` + This will disable the lexer's first char optimizations. + See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details.`),og(`${A2} + Failed parsing: < ${e.toString()} > + Using the @chevrotain/regexp-to-ast library + Please open an issue at: https://github.com/chevrotain/chevrotain/issues`+n)}}return[]}function fM(e,t,r){switch(e.type){case"Disjunction":for(let i=0;i{if(typeof u=="number")Lk(u,t,r);else{let h=u;if(r===!0)for(let f=h.from;f<=h.to;f++)Lk(f,t,r);else{for(let f=h.from;f<=h.to&&f=hg){let f=h.from>=hg?h.from:hg,d=h.to,p=Fc(f),m=Fc(d);for(let g=p;g<=m;g++)t[g]=g}}}});break;case"Group":fM(s.value,t,r);break;default:throw Error("Non Exhaustive Match")}let l=s.quantifier!==void 0&&s.quantifier.atLeast===0;if(s.type==="Group"&&dM(s)===!1||s.type!=="Group"&&l===!1)break}break;default:throw Error("non exhaustive match!")}return gr(t)}function Lk(e,t,r){let n=Fc(e);t[n]=n,r===!0&&gBt(e,t)}function gBt(e,t){let r=String.fromCharCode(e),n=r.toUpperCase();if(n!==r){let i=Fc(n.charCodeAt(0));t[i]=i}else{let i=r.toLowerCase();if(i!==r){let a=Fc(i.charCodeAt(0));t[a]=a}}}function sst(e,t){return rs(e.value,r=>{if(typeof r=="number")return Wn(t,r);{let n=r;return rs(t,i=>n.from<=i&&i<=n.to)!==void 0}})}function dM(e){let t=e.quantifier;return t&&t.atLeast===0?!0:e.value?Le(e.value)?za(e.value,dM):dM(e.value):!1}function Dk(e,t){if(t instanceof RegExp){let r=ug(t),n=new pM(e);return n.visit(r),n.found}else return rs(t,r=>Wn(e,r.charCodeAt(0)))!==void 0}var ost,A2,pM,cst=R(()=>{"use strict";b2();Ve();lg();_k();mM();ost="Complement Sets are not supported for first char optimization",A2=`Unable to use "first char" lexer optimizations: +`;o(lst,"getOptimizedStartCodesIndices");o(fM,"firstCharOptimizedIndices");o(Lk,"addOptimizedIdxToResult");o(gBt,"handleIgnoreCase");o(sst,"findCode");o(dM,"isWholeOptional");pM=class extends Bc{static{o(this,"CharCodeFinder")}constructor(t){super(),this.targetCharCodes=t,this.found=!1}visitChildren(t){if(this.found!==!0){switch(t.type){case"Lookahead":this.visitLookahead(t);return;case"NegativeLookahead":this.visitNegativeLookahead(t);return}super.visitChildren(t)}}visitCharacter(t){Wn(this.targetCharCodes,t.value)&&(this.found=!0)}visitSet(t){t.complement?sst(t,this.targetCharCodes)===void 0&&(this.found=!0):sst(t,this.targetCharCodes)!==void 0&&(this.found=!0)}};o(Dk,"canMatchCharCode")});function fst(e,t){t=Jh(t,{useSticky:yM,debug:!1,safeMode:!1,positionTracking:"full",lineTerminatorCharacters:["\r",` +`],tracer:o((b,w)=>w(),"tracer")});let r=t.tracer;r("initCharCodeToOptimizedIndexMap",()=>{IBt()});let n;r("Reject Lexer.NA",()=>{n=ef(e,b=>b[h0]===li.NA)});let i=!1,a;r("Transform Patterns",()=>{i=!1,a=Xt(n,b=>{let w=b[h0];if(Uo(w)){let S=w.source;return S.length===1&&S!=="^"&&S!=="$"&&S!=="."&&!w.ignoreCase?S:S.length===2&&S[0]==="\\"&&!Wn(["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"],S[1])?S[1]:t.useSticky?hst(w):ust(w)}else{if(Si(w))return i=!0,{exec:w};if(typeof w=="object")return i=!0,w;if(typeof w=="string"){if(w.length===1)return w;{let S=w.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&"),T=new RegExp(S);return t.useSticky?hst(T):ust(T)}}else throw Error("non exhaustive match")}})});let s,l,u,h,f;r("misc mapping",()=>{s=Xt(n,b=>b.tokenTypeIdx),l=Xt(n,b=>{let w=b.GROUP;if(w!==li.SKIPPED){if(yi(w))return w;if(fr(w))return!1;throw Error("non exhaustive match")}}),u=Xt(n,b=>{let w=b.LONGER_ALT;if(w)return Le(w)?Xt(w,T=>PT(n,T)):[PT(n,w)]}),h=Xt(n,b=>b.PUSH_MODE),f=Xt(n,b=>jt(b,"POP_MODE"))});let d;r("Line Terminator Handling",()=>{let b=bst(t.lineTerminatorCharacters);d=Xt(n,w=>!1),t.positionTracking!=="onlyOffset"&&(d=Xt(n,w=>jt(w,"LINE_BREAKS")?!!w.LINE_BREAKS:xst(w,b)===!1&&Dk(b,w.PATTERN)))});let p,m,g,y;r("Misc Mapping #2",()=>{p=Xt(n,yst),m=Xt(a,NBt),g=qr(n,(b,w)=>{let S=w.GROUP;return yi(S)&&S!==li.SKIPPED&&(b[S]=[]),b},{}),y=Xt(a,(b,w)=>({pattern:a[w],longerAlt:u[w],canLineTerminator:d[w],isCustom:p[w],short:m[w],group:l[w],push:h[w],pop:f[w],tokenTypeIdx:s[w],tokenType:n[w]}))});let v=!0,x=[];return t.safeMode||r("First Char Optimization",()=>{x=qr(n,(b,w,S)=>{if(typeof w.PATTERN=="string"){let T=w.PATTERN.charCodeAt(0),E=Fc(T);gM(b,E,y[S])}else if(Le(w.START_CHARS_HINT)){let T;Et(w.START_CHARS_HINT,E=>{let _=typeof E=="string"?E.charCodeAt(0):E,A=Fc(_);T!==A&&(T=A,gM(b,A,y[S]))})}else if(Uo(w.PATTERN))if(w.PATTERN.unicode)v=!1,t.ensureOptimizations&&og(`${A2} Unable to analyze < ${w.PATTERN.toString()} > pattern. + The regexp unicode flag is not currently supported by the regexp-to-ast library. + This will disable the lexer's first char optimizations. + For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE`);else{let T=lst(w.PATTERN,t.ensureOptimizations);cr(T)&&(v=!1),Et(T,E=>{gM(b,E,y[S])})}else t.ensureOptimizations&&og(`${A2} TokenType: <${w.name}> is using a custom token pattern without providing parameter. + This will disable the lexer's first char optimizations. + For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`),v=!1;return b},[])}),{emptyGroups:g,patternIdxToConfig:y,charCodeToPatternIdxToConfig:x,hasCustom:i,canBeOptimized:v}}function dst(e,t){let r=[],n=vBt(e);r=r.concat(n.errors);let i=xBt(n.valid),a=i.valid;return r=r.concat(i.errors),r=r.concat(yBt(a)),r=r.concat(ABt(a)),r=r.concat(_Bt(a,t)),r=r.concat(LBt(a)),r}function yBt(e){let t=[],r=Yr(e,n=>Uo(n[h0]));return t=t.concat(wBt(r)),t=t.concat(EBt(r)),t=t.concat(CBt(r)),t=t.concat(SBt(r)),t=t.concat(TBt(r)),t}function vBt(e){let t=Yr(e,i=>!jt(i,h0)),r=Xt(t,i=>({message:"Token Type: ->"+i.name+"<- missing static 'PATTERN' property",type:qn.MISSING_PATTERN,tokenTypes:[i]})),n=tf(e,t);return{errors:r,valid:n}}function xBt(e){let t=Yr(e,i=>{let a=i[h0];return!Uo(a)&&!Si(a)&&!jt(a,"exec")&&!yi(a)}),r=Xt(t,i=>({message:"Token Type: ->"+i.name+"<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",type:qn.INVALID_PATTERN,tokenTypes:[i]})),n=tf(e,t);return{errors:r,valid:n}}function wBt(e){class t extends Bc{static{o(this,"EndAnchorFinder")}constructor(){super(...arguments),this.found=!1}visitEndAnchor(a){this.found=!0}}let r=Yr(e,i=>{let a=i.PATTERN;try{let s=ug(a),l=new t;return l.visit(s),l.found}catch{return bBt.test(a.source)}});return Xt(r,i=>({message:`Unexpected RegExp Anchor Error: + Token Type: ->`+i.name+`<- static 'PATTERN' cannot contain end of input anchor '$' + See chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:qn.EOI_ANCHOR_FOUND,tokenTypes:[i]}))}function TBt(e){let t=Yr(e,n=>n.PATTERN.test(""));return Xt(t,n=>({message:"Token Type: ->"+n.name+"<- static 'PATTERN' must not match an empty string",type:qn.EMPTY_MATCH_PATTERN,tokenTypes:[n]}))}function EBt(e){class t extends Bc{static{o(this,"StartAnchorFinder")}constructor(){super(...arguments),this.found=!1}visitStartAnchor(a){this.found=!0}}let r=Yr(e,i=>{let a=i.PATTERN;try{let s=ug(a),l=new t;return l.visit(s),l.found}catch{return kBt.test(a.source)}});return Xt(r,i=>({message:`Unexpected RegExp Anchor Error: + Token Type: ->`+i.name+`<- static 'PATTERN' cannot contain start of input anchor '^' + See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:qn.SOI_ANCHOR_FOUND,tokenTypes:[i]}))}function CBt(e){let t=Yr(e,n=>{let i=n[h0];return i instanceof RegExp&&(i.multiline||i.global)});return Xt(t,n=>({message:"Token Type: ->"+n.name+"<- static 'PATTERN' may NOT contain global('g') or multiline('m')",type:qn.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[n]}))}function SBt(e){let t=[],r=Xt(e,a=>qr(e,(s,l)=>(a.PATTERN.source===l.PATTERN.source&&!Wn(t,l)&&l.PATTERN!==li.NA&&(t.push(l),s.push(l)),s),[]));r=Dc(r);let n=Yr(r,a=>a.length>1);return Xt(n,a=>{let s=Xt(a,u=>u.name);return{message:`The same RegExp pattern ->${aa(a).PATTERN}<-has been used in all of the following Token Types: ${s.join(", ")} <-`,type:qn.DUPLICATE_PATTERNS_FOUND,tokenTypes:a}})}function ABt(e){let t=Yr(e,n=>{if(!jt(n,"GROUP"))return!1;let i=n.GROUP;return i!==li.SKIPPED&&i!==li.NA&&!yi(i)});return Xt(t,n=>({message:"Token Type: ->"+n.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:qn.INVALID_GROUP_TYPE_FOUND,tokenTypes:[n]}))}function _Bt(e,t){let r=Yr(e,i=>i.PUSH_MODE!==void 0&&!Wn(t,i.PUSH_MODE));return Xt(r,i=>({message:`Token Type: ->${i.name}<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->${i.PUSH_MODE}<-which does not exist`,type:qn.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[i]}))}function LBt(e){let t=[],r=qr(e,(n,i,a)=>{let s=i.PATTERN;return s===li.NA||(yi(s)?n.push({str:s,idx:a,tokenType:i}):Uo(s)&&RBt(s)&&n.push({str:s.source,idx:a,tokenType:i})),n},[]);return Et(e,(n,i)=>{Et(r,({str:a,idx:s,tokenType:l})=>{if(i${l.name}<- can never be matched. +Because it appears AFTER the Token Type ->${n.name}<-in the lexer's definition. +See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;t.push({message:u,type:qn.UNREACHABLE_PATTERN,tokenTypes:[n,l]})}})}),t}function DBt(e,t){if(Uo(t)){let r=t.exec(e);return r!==null&&r.index===0}else{if(Si(t))return t(e,0,[],{});if(jt(t,"exec"))return t.exec(e,0,[],{});if(typeof t=="string")return t===e;throw Error("non exhaustive match")}}function RBt(e){return rs([".","\\","[","]","|","^","$","(",")","?","*","+","{"],r=>e.source.indexOf(r)!==-1)===void 0}function ust(e){let t=e.ignoreCase?"i":"";return new RegExp(`^(?:${e.source})`,t)}function hst(e){let t=e.ignoreCase?"iy":"y";return new RegExp(`${e.source}`,t)}function pst(e,t,r){let n=[];return jt(e,fg)||n.push({message:"A MultiMode Lexer cannot be initialized without a <"+fg+`> property in its definition +`,type:qn.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),jt(e,Rk)||n.push({message:"A MultiMode Lexer cannot be initialized without a <"+Rk+`> property in its definition +`,type:qn.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),jt(e,Rk)&&jt(e,fg)&&!jt(e.modes,e.defaultMode)&&n.push({message:`A MultiMode Lexer cannot be initialized with a ${fg}: <${e.defaultMode}>which does not exist +`,type:qn.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),jt(e,Rk)&&Et(e.modes,(i,a)=>{Et(i,(s,l)=>{if(fr(s))n.push({message:`A Lexer cannot be initialized using an undefined Token Type. Mode:<${a}> at index: <${l}> +`,type:qn.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED});else if(jt(s,"LONGER_ALT")){let u=Le(s.LONGER_ALT)?s.LONGER_ALT:[s.LONGER_ALT];Et(u,h=>{!fr(h)&&!Wn(i,h)&&n.push({message:`A MultiMode Lexer cannot be initialized with a longer_alt <${h.name}> on token <${s.name}> outside of mode <${a}> +`,type:qn.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE})})}})}),n}function mst(e,t,r){let n=[],i=!1,a=Dc(Wr(gr(e.modes))),s=ef(a,u=>u[h0]===li.NA),l=bst(r);return t&&Et(s,u=>{let h=xst(u,l);if(h!==!1){let d={message:MBt(u,h),type:h.issue,tokenType:u};n.push(d)}else jt(u,"LINE_BREAKS")?u.LINE_BREAKS===!0&&(i=!0):Dk(l,u.PATTERN)&&(i=!0)}),t&&!i&&n.push({message:`Warning: No LINE_BREAKS Found. + This Lexer has been defined to track line and column information, + But none of the Token Types can be identified as matching a line terminator. + See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#LINE_BREAKS + for details.`,type:qn.NO_LINE_BREAKS_FLAGS}),n}function gst(e){let t={},r=$r(e);return Et(r,n=>{let i=e[n];if(Le(i))t[n]=[];else throw Error("non exhaustive match")}),t}function yst(e){let t=e.PATTERN;if(Uo(t))return!1;if(Si(t))return!0;if(jt(t,"exec"))return!0;if(yi(t))return!1;throw Error("non exhaustive match")}function NBt(e){return yi(e)&&e.length===1?e.charCodeAt(0):!1}function xst(e,t){if(jt(e,"LINE_BREAKS"))return!1;if(Uo(e.PATTERN)){try{Dk(t,e.PATTERN)}catch(r){return{issue:qn.IDENTIFY_TERMINATOR,errMsg:r.message}}return!1}else{if(yi(e.PATTERN))return!1;if(yst(e))return{issue:qn.CUSTOM_LINE_BREAK};throw Error("non exhaustive match")}}function MBt(e,t){if(t.issue===qn.IDENTIFY_TERMINATOR)return`Warning: unable to identify line terminator usage in pattern. + The problem is in the <${e.name}> Token Type + Root cause: ${t.errMsg}. + For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR`;if(t.issue===qn.CUSTOM_LINE_BREAK)return`Warning: A Custom Token Pattern should specify the option. + The problem is in the <${e.name}> Token Type + For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK`;throw Error("non exhaustive match")}function bst(e){return Xt(e,r=>yi(r)?r.charCodeAt(0):r)}function gM(e,t,r){e[t]===void 0?e[t]=[r]:e[t].push(r)}function Fc(e){return e255?255+~~(e/255):e}}var h0,fg,Rk,yM,bBt,kBt,vst,hg,Nk,mM=R(()=>{"use strict";b2();_2();Ve();lg();cst();_k();h0="PATTERN",fg="defaultMode",Rk="modes",yM=typeof new RegExp("(?:)").sticky=="boolean";o(fst,"analyzeTokenTypes");o(dst,"validatePatterns");o(yBt,"validateRegExpPattern");o(vBt,"findMissingPatterns");o(xBt,"findInvalidPatterns");bBt=/[^\\][$]/;o(wBt,"findEndOfInputAnchor");o(TBt,"findEmptyMatchRegExps");kBt=/[^\\[][\^]|^\^/;o(EBt,"findStartOfInputAnchor");o(CBt,"findUnsupportedFlags");o(SBt,"findDuplicatePatterns");o(ABt,"findInvalidGroupType");o(_Bt,"findModesThatDoNotExist");o(LBt,"findUnreachablePatterns");o(DBt,"testTokenType");o(RBt,"noMetaChar");o(ust,"addStartOfInput");o(hst,"addStickyFlag");o(pst,"performRuntimeChecks");o(mst,"performWarningRuntimeChecks");o(gst,"cloneEmptyGroups");o(yst,"isCustomPattern");o(NBt,"isShortPattern");vst={test:o(function(e){let t=e.length;for(let r=this.lastIndex;r{r.isParent=r.categoryMatches.length>0})}function OBt(e){let t=rn(e),r=e,n=!0;for(;n;){r=Dc(Wr(Xt(r,a=>a.CATEGORIES)));let i=tf(r,t);t=t.concat(i),cr(i)?n=!1:r=i}return t}function PBt(e){Et(e,t=>{vM(t)||(kst[wst]=t,t.tokenTypeIdx=wst++),Tst(t)&&!Le(t.CATEGORIES)&&(t.CATEGORIES=[t.CATEGORIES]),Tst(t)||(t.CATEGORIES=[]),zBt(t)||(t.categoryMatches=[]),$Bt(t)||(t.categoryMatchesMap={})})}function BBt(e){Et(e,t=>{t.categoryMatches=[],Et(t.categoryMatchesMap,(r,n)=>{t.categoryMatches.push(kst[n].tokenTypeIdx)})})}function FBt(e){Et(e,t=>{Est([],t)})}function Est(e,t){Et(e,r=>{t.categoryMatchesMap[r.tokenTypeIdx]=!0}),Et(t.CATEGORIES,r=>{let n=e.concat(t);Wn(n,r)||Est(n,r)})}function vM(e){return jt(e,"tokenTypeIdx")}function Tst(e){return jt(e,"CATEGORIES")}function zBt(e){return jt(e,"categoryMatches")}function $Bt(e){return jt(e,"categoryMatchesMap")}function Cst(e){return jt(e,"tokenTypeIdx")}var wst,kst,f0=R(()=>{"use strict";Ve();o(Vu,"tokenStructuredMatcher");o(dg,"tokenStructuredMatcherNoCategories");wst=1,kst={};o(Uu,"augmentTokenTypes");o(OBt,"expandCategories");o(PBt,"assignTokenDefaultProps");o(BBt,"assignCategoriesTokensProp");o(FBt,"assignCategoriesMapProp");o(Est,"singleAssignCategoriesToksMap");o(vM,"hasShortKeyProperty");o(Tst,"hasCategoriesProperty");o(zBt,"hasExtendingTokensTypesProperty");o($Bt,"hasExtendingTokensTypesMapProperty");o(Cst,"isTokenType")});var xM,bM=R(()=>{"use strict";xM={buildUnableToPopLexerModeMessage(e){return`Unable to pop Lexer Mode after encountering Token ->${e.image}<- The Mode Stack is empty`},buildUnexpectedCharactersMessage(e,t,r,n,i){return`unexpected character: ->${e.charAt(t)}<- at offset: ${t}, skipped ${r} characters.`}}});var qn,L2,li,_2=R(()=>{"use strict";mM();Ve();lg();f0();bM();_k();(function(e){e[e.MISSING_PATTERN=0]="MISSING_PATTERN",e[e.INVALID_PATTERN=1]="INVALID_PATTERN",e[e.EOI_ANCHOR_FOUND=2]="EOI_ANCHOR_FOUND",e[e.UNSUPPORTED_FLAGS_FOUND=3]="UNSUPPORTED_FLAGS_FOUND",e[e.DUPLICATE_PATTERNS_FOUND=4]="DUPLICATE_PATTERNS_FOUND",e[e.INVALID_GROUP_TYPE_FOUND=5]="INVALID_GROUP_TYPE_FOUND",e[e.PUSH_MODE_DOES_NOT_EXIST=6]="PUSH_MODE_DOES_NOT_EXIST",e[e.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE=7]="MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE",e[e.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY=8]="MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY",e[e.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST=9]="MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST",e[e.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED=10]="LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED",e[e.SOI_ANCHOR_FOUND=11]="SOI_ANCHOR_FOUND",e[e.EMPTY_MATCH_PATTERN=12]="EMPTY_MATCH_PATTERN",e[e.NO_LINE_BREAKS_FLAGS=13]="NO_LINE_BREAKS_FLAGS",e[e.UNREACHABLE_PATTERN=14]="UNREACHABLE_PATTERN",e[e.IDENTIFY_TERMINATOR=15]="IDENTIFY_TERMINATOR",e[e.CUSTOM_LINE_BREAK=16]="CUSTOM_LINE_BREAK",e[e.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE=17]="MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE"})(qn||(qn={}));L2={deferDefinitionErrorsHandling:!1,positionTracking:"full",lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:[` +`,"\r"],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:xM,traceInitPerf:!1,skipValidations:!1,recoveryEnabled:!0};Object.freeze(L2);li=class{static{o(this,"Lexer")}constructor(t,r=L2){if(this.lexerDefinition=t,this.lexerDefinitionErrors=[],this.lexerDefinitionWarning=[],this.patternIdxToConfig={},this.charCodeToPatternIdxToConfig={},this.modes=[],this.emptyGroups={},this.trackStartLines=!0,this.trackEndLines=!0,this.hasCustom=!1,this.canModeBeOptimized={},this.TRACE_INIT=(i,a)=>{if(this.traceInitPerf===!0){this.traceInitIndent++;let s=new Array(this.traceInitIndent+1).join(" ");this.traceInitIndent <${i}>`);let{time:l,value:u}=C2(a),h=l>10?console.warn:console.log;return this.traceInitIndent time: ${l}ms`),this.traceInitIndent--,u}else return a()},typeof r=="boolean")throw Error(`The second argument to the Lexer constructor is now an ILexerConfig Object. +a boolean 2nd argument is no longer supported`);this.config=va({},L2,r);let n=this.config.traceInitPerf;n===!0?(this.traceInitMaxIdent=1/0,this.traceInitPerf=!0):typeof n=="number"&&(this.traceInitMaxIdent=n,this.traceInitPerf=!0),this.traceInitIndent=-1,this.TRACE_INIT("Lexer Constructor",()=>{let i,a=!0;this.TRACE_INIT("Lexer Config handling",()=>{if(this.config.lineTerminatorsPattern===L2.lineTerminatorsPattern)this.config.lineTerminatorsPattern=vst;else if(this.config.lineTerminatorCharacters===L2.lineTerminatorCharacters)throw Error(`Error: Missing property on the Lexer config. + For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS`);if(r.safeMode&&r.ensureOptimizations)throw Error('"safeMode" and "ensureOptimizations" flags are mutually exclusive.');this.trackStartLines=/full|onlyStart/i.test(this.config.positionTracking),this.trackEndLines=/full/i.test(this.config.positionTracking),Le(t)?i={modes:{defaultMode:rn(t)},defaultMode:fg}:(a=!1,i=rn(t))}),this.config.skipValidations===!1&&(this.TRACE_INIT("performRuntimeChecks",()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(pst(i,this.trackStartLines,this.config.lineTerminatorCharacters))}),this.TRACE_INIT("performWarningRuntimeChecks",()=>{this.lexerDefinitionWarning=this.lexerDefinitionWarning.concat(mst(i,this.trackStartLines,this.config.lineTerminatorCharacters))})),i.modes=i.modes?i.modes:{},Et(i.modes,(l,u)=>{i.modes[u]=ef(l,h=>fr(h))});let s=$r(i.modes);if(Et(i.modes,(l,u)=>{this.TRACE_INIT(`Mode: <${u}> processing`,()=>{if(this.modes.push(u),this.config.skipValidations===!1&&this.TRACE_INIT("validatePatterns",()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(dst(l,s))}),cr(this.lexerDefinitionErrors)){Uu(l);let h;this.TRACE_INIT("analyzeTokenTypes",()=>{h=fst(l,{lineTerminatorCharacters:this.config.lineTerminatorCharacters,positionTracking:r.positionTracking,ensureOptimizations:r.ensureOptimizations,safeMode:r.safeMode,tracer:this.TRACE_INIT})}),this.patternIdxToConfig[u]=h.patternIdxToConfig,this.charCodeToPatternIdxToConfig[u]=h.charCodeToPatternIdxToConfig,this.emptyGroups=va({},this.emptyGroups,h.emptyGroups),this.hasCustom=h.hasCustom||this.hasCustom,this.canModeBeOptimized[u]=h.canBeOptimized}})}),this.defaultMode=i.defaultMode,!cr(this.lexerDefinitionErrors)&&!this.config.deferDefinitionErrorsHandling){let u=Xt(this.lexerDefinitionErrors,h=>h.message).join(`----------------------- +`);throw new Error(`Errors detected in definition of Lexer: +`+u)}Et(this.lexerDefinitionWarning,l=>{E2(l.message)}),this.TRACE_INIT("Choosing sub-methods implementations",()=>{if(yM?(this.chopInput=na,this.match=this.matchWithTest):(this.updateLastIndex=ei,this.match=this.matchWithExec),a&&(this.handleModes=ei),this.trackStartLines===!1&&(this.computeNewColumn=na),this.trackEndLines===!1&&(this.updateTokenEndLineColumnLocation=ei),/full/i.test(this.config.positionTracking))this.createTokenInstance=this.createFullToken;else if(/onlyStart/i.test(this.config.positionTracking))this.createTokenInstance=this.createStartOnlyToken;else if(/onlyOffset/i.test(this.config.positionTracking))this.createTokenInstance=this.createOffsetOnlyToken;else throw Error(`Invalid config option: "${this.config.positionTracking}"`);this.hasCustom?(this.addToken=this.addTokenUsingPush,this.handlePayload=this.handlePayloadWithCustom):(this.addToken=this.addTokenUsingMemberAccess,this.handlePayload=this.handlePayloadNoCustom)}),this.TRACE_INIT("Failed Optimization Warnings",()=>{let l=qr(this.canModeBeOptimized,(u,h,f)=>(h===!1&&u.push(f),u),[]);if(r.ensureOptimizations&&!cr(l))throw Error(`Lexer Modes: < ${l.join(", ")} > cannot be optimized. + Disable the "ensureOptimizations" lexer config flag to silently ignore this and run the lexer in an un-optimized mode. + Or inspect the console log for details on how to resolve these issues.`)}),this.TRACE_INIT("clearRegExpParserCache",()=>{ast()}),this.TRACE_INIT("toFastProperties",()=>{S2(this)})})}tokenize(t,r=this.defaultMode){if(!cr(this.lexerDefinitionErrors)){let i=Xt(this.lexerDefinitionErrors,a=>a.message).join(`----------------------- +`);throw new Error(`Unable to Tokenize because Errors detected in definition of Lexer: +`+i)}return this.tokenizeInternal(t,r)}tokenizeInternal(t,r){let n,i,a,s,l,u,h,f,d,p,m,g,y,v,x,b,w=t,S=w.length,T=0,E=0,_=this.hasCustom?0:Math.floor(t.length/10),A=new Array(_),L=[],M=this.trackStartLines?1:void 0,N=this.trackStartLines?1:void 0,k=gst(this.emptyGroups),I=this.trackStartLines,C=this.config.lineTerminatorsPattern,O=0,D=[],P=[],F=[],B=[];Object.freeze(B);let G;function z(){return D}o(z,"getPossiblePatternsSlow");function W(J){let Z=Fc(J),H=P[Z];return H===void 0?B:H}o(W,"getPossiblePatternsOptimized");let Q=o(J=>{if(F.length===1&&J.tokenType.PUSH_MODE===void 0){let Z=this.config.errorMessageProvider.buildUnableToPopLexerModeMessage(J);L.push({offset:J.startOffset,line:J.startLine,column:J.startColumn,length:J.image.length,message:Z})}else{F.pop();let Z=xa(F);D=this.patternIdxToConfig[Z],P=this.charCodeToPatternIdxToConfig[Z],O=D.length;let H=this.canModeBeOptimized[Z]&&this.config.safeMode===!1;P&&H?G=W:G=z}},"pop_mode");function j(J){F.push(J),P=this.charCodeToPatternIdxToConfig[J],D=this.patternIdxToConfig[J],O=D.length,O=D.length;let Z=this.canModeBeOptimized[J]&&this.config.safeMode===!1;P&&Z?G=W:G=z}o(j,"push_mode"),j.call(this,r);let at,X=this.config.recoveryEnabled;for(;Tu.length){u=s,h=f,at=ct;break}}}break}}if(u!==null){if(d=u.length,p=at.group,p!==void 0&&(m=at.tokenTypeIdx,g=this.createTokenInstance(u,T,m,at.tokenType,M,N,d),this.handlePayload(g,h),p===!1?E=this.addToken(A,E,g):k[p].push(g)),t=this.chopInput(t,d),T=T+d,N=this.computeNewColumn(N,d),I===!0&&at.canLineTerminator===!0){let q=0,K,ot;C.lastIndex=0;do K=C.test(u),K===!0&&(ot=C.lastIndex-1,q++);while(K===!0);q!==0&&(M=M+q,N=d-ot,this.updateTokenEndLineColumnLocation(g,p,ot,q,M,N,d))}this.handleModes(at,Q,j,g)}else{let q=T,K=M,ot=N,ct=X===!1;for(;ct===!1&&T{"use strict";Ve();_2();f0();o(Hu,"tokenLabel");o(wM,"hasTokenLabel");GBt="parent",Sst="categories",Ast="label",_st="group",Lst="push_mode",Dst="pop_mode",Rst="longer_alt",Nst="line_breaks",Mst="start_chars_hint";o(Mk,"createToken");o(VBt,"createTokenInternal");po=Mk({name:"EOF",pattern:li.NA});Uu([po]);o(d0,"createTokenInstance");o(D2,"tokenMatcher")});var Wu,Ist,$l,pg=R(()=>{"use strict";p0();Ve();os();Wu={buildMismatchTokenMessage({expected:e,actual:t,previous:r,ruleName:n}){return`Expecting ${wM(e)?`--> ${Hu(e)} <--`:`token of type --> ${e.name} <--`} but found --> '${t.image}' <--`},buildNotAllInputParsedMessage({firstRedundant:e,ruleName:t}){return"Redundant input, expecting EOF but found: "+e.image},buildNoViableAltMessage({expectedPathsPerAlt:e,actual:t,previous:r,customUserDescription:n,ruleName:i}){let a="Expecting: ",l=` +but found: '`+aa(t).image+"'";if(n)return a+n+l;{let u=qr(e,(p,m)=>p.concat(m),[]),h=Xt(u,p=>`[${Xt(p,m=>Hu(m)).join(", ")}]`),d=`one of these possible Token sequences: +${Xt(h,(p,m)=>` ${m+1}. ${p}`).join(` +`)}`;return a+d+l}},buildEarlyExitMessage({expectedIterationPaths:e,actual:t,customUserDescription:r,ruleName:n}){let i="Expecting: ",s=` +but found: '`+aa(t).image+"'";if(r)return i+r+s;{let u=`expecting at least one iteration which starts with one of these possible Token sequences:: + <${Xt(e,h=>`[${Xt(h,f=>Hu(f)).join(",")}]`).join(" ,")}>`;return i+u+s}}};Object.freeze(Wu);Ist={buildRuleNotFoundError(e,t){return"Invalid grammar, reference to a rule which is not defined: ->"+t.nonTerminalName+`<- +inside top level rule: ->`+e.name+"<-"}},$l={buildDuplicateFoundError(e,t){function r(f){return f instanceof br?f.terminalType.name:f instanceof nn?f.nonTerminalName:""}o(r,"getExtraProductionArgument");let n=e.name,i=aa(t),a=i.idx,s=Bs(i),l=r(i),u=a>0,h=`->${s}${u?a:""}<- ${l?`with argument: ->${l}<-`:""} + appears more than once (${t.length} times) in the top level rule: ->${n}<-. + For further details see: https://chevrotain.io/docs/FAQ.html#NUMERICAL_SUFFIXES + `;return h=h.replace(/[ \t]+/g," "),h=h.replace(/\s\s+/g,` +`),h},buildNamespaceConflictError(e){return`Namespace conflict found in grammar. +The grammar has both a Terminal(Token) and a Non-Terminal(Rule) named: <${e.name}>. +To resolve this make sure each Terminal and Non-Terminal names are unique +This is easy to accomplish by using the convention that Terminal names start with an uppercase letter +and Non-Terminal names start with a lower case letter.`},buildAlternationPrefixAmbiguityError(e){let t=Xt(e.prefixPath,i=>Hu(i)).join(", "),r=e.alternation.idx===0?"":e.alternation.idx;return`Ambiguous alternatives: <${e.ambiguityIndices.join(" ,")}> due to common lookahead prefix +in inside <${e.topLevelRule.name}> Rule, +<${t}> may appears as a prefix path in all these alternatives. +See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX +For Further details.`},buildAlternationAmbiguityError(e){let t=Xt(e.prefixPath,i=>Hu(i)).join(", "),r=e.alternation.idx===0?"":e.alternation.idx,n=`Ambiguous Alternatives Detected: <${e.ambiguityIndices.join(" ,")}> in inside <${e.topLevelRule.name}> Rule, +<${t}> may appears as a prefix path in all these alternatives. +`;return n=n+`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES +For Further details.`,n},buildEmptyRepetitionError(e){let t=Bs(e.repetition);return e.repetition.idx!==0&&(t+=e.repetition.idx),`The repetition <${t}> within Rule <${e.topLevelRule.name}> can never consume any tokens. +This could lead to an infinite loop.`},buildTokenNameError(e){return"deprecated"},buildEmptyAlternationError(e){return`Ambiguous empty alternative: <${e.emptyChoiceIdx+1}> in inside <${e.topLevelRule.name}> Rule. +Only the last alternative may be an empty alternative.`},buildTooManyAlternativesError(e){return`An Alternation cannot have more than 256 alternatives: + inside <${e.topLevelRule.name}> Rule. + has ${e.alternation.definition.length+1} alternatives.`},buildLeftRecursionError(e){let t=e.topLevelRule.name,r=Xt(e.leftRecursionPath,a=>a.name),n=`${t} --> ${r.concat([t]).join(" --> ")}`;return`Left Recursion found in grammar. +rule: <${t}> can be invoked from itself (directly or indirectly) +without consuming any Tokens. The grammar path that causes this is: + ${n} + To fix this refactor your grammar to remove the left recursion. +see: https://en.wikipedia.org/wiki/LL_parser#Left_factoring.`},buildInvalidRuleNameError(e){return"deprecated"},buildDuplicateRuleNameError(e){let t;return e.topLevelRule instanceof as?t=e.topLevelRule.name:t=e.topLevelRule,`Duplicate definition, rule: ->${t}<- is already defined in the grammar: ->${e.grammarName}<-`}}});function Ost(e,t){let r=new TM(e,t);return r.resolveRefs(),r.errors}var TM,Pst=R(()=>{"use strict";Fs();Ve();os();o(Ost,"resolveGrammar");TM=class extends ss{static{o(this,"GastRefResolverVisitor")}constructor(t,r){super(),this.nameToTopRule=t,this.errMsgProvider=r,this.errors=[]}resolveRefs(){Et(gr(this.nameToTopRule),t=>{this.currTopLevel=t,t.accept(this)})}visitNonTerminal(t){let r=this.nameToTopRule[t.nonTerminalName];if(r)t.referencedRule=r;else{let n=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,t);this.errors.push({message:n,type:Gi.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:t.nonTerminalName})}}}});function Bk(e,t,r=[]){r=rn(r);let n=[],i=0;function a(l){return l.concat(gi(e,i+1))}o(a,"remainingPathWith");function s(l){let u=Bk(a(l),t,r);return n.concat(u)}for(o(s,"getAlternativesForProd");r.length{cr(u.definition)===!1&&(n=s(u.definition))}),n;if(l instanceof br)r.push(l.terminalType);else throw Error("non exhaustive match")}i++}return n.push({partialPath:r,suffixDef:gi(e,i)}),n}function Fk(e,t,r,n){let i="EXIT_NONE_TERMINAL",a=[i],s="EXIT_ALTERNATIVE",l=!1,u=t.length,h=u-n-1,f=[],d=[];for(d.push({idx:-1,def:e,ruleStack:[],occurrenceStack:[]});!cr(d);){let p=d.pop();if(p===s){l&&xa(d).idx<=h&&d.pop();continue}let m=p.def,g=p.idx,y=p.ruleStack,v=p.occurrenceStack;if(cr(m))continue;let x=m[0];if(x===i){let b={idx:g,def:gi(m),ruleStack:Pu(y),occurrenceStack:Pu(v)};d.push(b)}else if(x instanceof br)if(g=0;b--){let w=x.definition[b],S={idx:g,def:w.definition.concat(gi(m)),ruleStack:y,occurrenceStack:v};d.push(S),d.push(s)}else if(x instanceof Ln)d.push({idx:g,def:x.definition.concat(gi(m)),ruleStack:y,occurrenceStack:v});else if(x instanceof as)d.push(UBt(x,g,y,v));else throw Error("non exhaustive match")}return f}function UBt(e,t,r,n){let i=rn(r);i.push(e.name);let a=rn(n);return a.push(1),{idx:t,def:e.definition,ruleStack:i,occurrenceStack:a}}var kM,Ik,mg,Ok,R2,Pk,N2,M2=R(()=>{"use strict";Ve();cM();Ck();os();kM=class extends Gu{static{o(this,"AbstractNextPossibleTokensWalker")}constructor(t,r){super(),this.topProd=t,this.path=r,this.possibleTokTypes=[],this.nextProductionName="",this.nextProductionOccurrence=0,this.found=!1,this.isAtEndOfPath=!1}startWalking(){if(this.found=!1,this.path.ruleStack[0]!==this.topProd.name)throw Error("The path does not start with the walker's top Rule!");return this.ruleStack=rn(this.path.ruleStack).reverse(),this.occurrenceStack=rn(this.path.occurrenceStack).reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes}walk(t,r=[]){this.found||super.walk(t,r)}walkProdRef(t,r,n){if(t.referencedRule.name===this.nextProductionName&&t.idx===this.nextProductionOccurrence){let i=r.concat(n);this.updateExpectedNext(),this.walk(t.referencedRule,i)}}updateExpectedNext(){cr(this.ruleStack)?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())}},Ik=class extends kM{static{o(this,"NextAfterTokenWalker")}constructor(t,r){super(t,r),this.path=r,this.nextTerminalName="",this.nextTerminalOccurrence=0,this.nextTerminalName=this.path.lastTok.name,this.nextTerminalOccurrence=this.path.lastTokOccurrence}walkTerminal(t,r,n){if(this.isAtEndOfPath&&t.terminalType.name===this.nextTerminalName&&t.idx===this.nextTerminalOccurrence&&!this.found){let i=r.concat(n),a=new Ln({definition:i});this.possibleTokTypes=u0(a),this.found=!0}}},mg=class extends Gu{static{o(this,"AbstractNextTerminalAfterProductionWalker")}constructor(t,r){super(),this.topRule=t,this.occurrence=r,this.result={token:void 0,occurrence:void 0,isEndOfRule:void 0}}startWalking(){return this.walk(this.topRule),this.result}},Ok=class extends mg{static{o(this,"NextTerminalAfterManyWalker")}walkMany(t,r,n){if(t.idx===this.occurrence){let i=aa(r.concat(n));this.result.isEndOfRule=i===void 0,i instanceof br&&(this.result.token=i.terminalType,this.result.occurrence=i.idx)}else super.walkMany(t,r,n)}},R2=class extends mg{static{o(this,"NextTerminalAfterManySepWalker")}walkManySep(t,r,n){if(t.idx===this.occurrence){let i=aa(r.concat(n));this.result.isEndOfRule=i===void 0,i instanceof br&&(this.result.token=i.terminalType,this.result.occurrence=i.idx)}else super.walkManySep(t,r,n)}},Pk=class extends mg{static{o(this,"NextTerminalAfterAtLeastOneWalker")}walkAtLeastOne(t,r,n){if(t.idx===this.occurrence){let i=aa(r.concat(n));this.result.isEndOfRule=i===void 0,i instanceof br&&(this.result.token=i.terminalType,this.result.occurrence=i.idx)}else super.walkAtLeastOne(t,r,n)}},N2=class extends mg{static{o(this,"NextTerminalAfterAtLeastOneSepWalker")}walkAtLeastOneSep(t,r,n){if(t.idx===this.occurrence){let i=aa(r.concat(n));this.result.isEndOfRule=i===void 0,i instanceof br&&(this.result.token=i.terminalType,this.result.occurrence=i.idx)}else super.walkAtLeastOneSep(t,r,n)}};o(Bk,"possiblePathsFrom");o(Fk,"nextPossibleTokensAfter");o(UBt,"expandTopLevelRule")});function I2(e){if(e instanceof an||e==="Option")return Xn.OPTION;if(e instanceof Lr||e==="Repetition")return Xn.REPETITION;if(e instanceof Dn||e==="RepetitionMandatory")return Xn.REPETITION_MANDATORY;if(e instanceof Rn||e==="RepetitionMandatoryWithSeparator")return Xn.REPETITION_MANDATORY_WITH_SEPARATOR;if(e instanceof bn||e==="RepetitionWithSeparator")return Xn.REPETITION_WITH_SEPARATOR;if(e instanceof wn||e==="Alternation")return Xn.ALTERNATION;throw Error("non exhaustive match")}function $k(e){let{occurrence:t,rule:r,prodType:n,maxLookahead:i}=e,a=I2(n);return a===Xn.ALTERNATION?gg(t,r,i):yg(t,r,a,i)}function Fst(e,t,r,n,i,a){let s=gg(e,t,r),l=Hst(s)?dg:Vu;return a(s,n,l,i)}function zst(e,t,r,n,i,a){let s=yg(e,t,i,r),l=Hst(s)?dg:Vu;return a(s[0],l,n)}function $st(e,t,r,n){let i=e.length,a=za(e,s=>za(s,l=>l.length===1));if(t)return function(s){let l=Xt(s,u=>u.GATE);for(let u=0;uWr(u)),l=qr(s,(u,h,f)=>(Et(h,d=>{jt(u,d.tokenTypeIdx)||(u[d.tokenTypeIdx]=f),Et(d.categoryMatches,p=>{jt(u,p)||(u[p]=f)})}),u),{});return function(){let u=this.LA(1);return l[u.tokenTypeIdx]}}else return function(){for(let s=0;sa.length===1),i=e.length;if(n&&!r){let a=Wr(e);if(a.length===1&&cr(a[0].categoryMatches)){let l=a[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===l}}else{let s=qr(a,(l,u,h)=>(l[u.tokenTypeIdx]=!0,Et(u.categoryMatches,f=>{l[f]=!0}),l),[]);return function(){let l=this.LA(1);return s[l.tokenTypeIdx]===!0}}}else return function(){t:for(let a=0;aBk([s],1)),n=Bst(r.length),i=Xt(r,s=>{let l={};return Et(s,u=>{let h=EM(u.partialPath);Et(h,f=>{l[f]=!0})}),l}),a=r;for(let s=1;s<=t;s++){let l=a;a=Bst(l.length);for(let u=0;u{let x=EM(v.partialPath);Et(x,b=>{i[u][b]=!0})})}}}}return n}function gg(e,t,r,n){let i=new zk(e,Xn.ALTERNATION,n);return t.accept(i),Vst(i.result,r)}function yg(e,t,r,n){let i=new zk(e,r);t.accept(i);let a=i.result,l=new CM(t,e,r).startWalking(),u=new Ln({definition:a}),h=new Ln({definition:l});return Vst([u,h],n)}function Gk(e,t){t:for(let r=0;r{let i=t[n];return r===i||i.categoryMatchesMap[r.tokenTypeIdx]})}function Hst(e){return za(e,t=>za(t,r=>za(r,n=>cr(n.categoryMatches))))}var Xn,CM,zk,vg=R(()=>{"use strict";Ve();M2();Ck();f0();os();(function(e){e[e.OPTION=0]="OPTION",e[e.REPETITION=1]="REPETITION",e[e.REPETITION_MANDATORY=2]="REPETITION_MANDATORY",e[e.REPETITION_MANDATORY_WITH_SEPARATOR=3]="REPETITION_MANDATORY_WITH_SEPARATOR",e[e.REPETITION_WITH_SEPARATOR=4]="REPETITION_WITH_SEPARATOR",e[e.ALTERNATION=5]="ALTERNATION"})(Xn||(Xn={}));o(I2,"getProdType");o($k,"getLookaheadPaths");o(Fst,"buildLookaheadFuncForOr");o(zst,"buildLookaheadFuncForOptionalProd");o($st,"buildAlternativesLookAheadFunc");o(Gst,"buildSingleAlternativeLookaheadFunction");CM=class extends Gu{static{o(this,"RestDefinitionFinderWalker")}constructor(t,r,n){super(),this.topProd=t,this.targetOccurrence=r,this.targetProdType=n}startWalking(){return this.walk(this.topProd),this.restDef}checkIsTarget(t,r,n,i){return t.idx===this.targetOccurrence&&this.targetProdType===r?(this.restDef=n.concat(i),!0):!1}walkOption(t,r,n){this.checkIsTarget(t,Xn.OPTION,r,n)||super.walkOption(t,r,n)}walkAtLeastOne(t,r,n){this.checkIsTarget(t,Xn.REPETITION_MANDATORY,r,n)||super.walkOption(t,r,n)}walkAtLeastOneSep(t,r,n){this.checkIsTarget(t,Xn.REPETITION_MANDATORY_WITH_SEPARATOR,r,n)||super.walkOption(t,r,n)}walkMany(t,r,n){this.checkIsTarget(t,Xn.REPETITION,r,n)||super.walkOption(t,r,n)}walkManySep(t,r,n){this.checkIsTarget(t,Xn.REPETITION_WITH_SEPARATOR,r,n)||super.walkOption(t,r,n)}},zk=class extends ss{static{o(this,"InsideDefinitionFinderVisitor")}constructor(t,r,n){super(),this.targetOccurrence=t,this.targetProdType=r,this.targetRef=n,this.result=[]}checkIsTarget(t,r){t.idx===this.targetOccurrence&&this.targetProdType===r&&(this.targetRef===void 0||t===this.targetRef)&&(this.result=t.definition)}visitOption(t){this.checkIsTarget(t,Xn.OPTION)}visitRepetition(t){this.checkIsTarget(t,Xn.REPETITION)}visitRepetitionMandatory(t){this.checkIsTarget(t,Xn.REPETITION_MANDATORY)}visitRepetitionMandatoryWithSeparator(t){this.checkIsTarget(t,Xn.REPETITION_MANDATORY_WITH_SEPARATOR)}visitRepetitionWithSeparator(t){this.checkIsTarget(t,Xn.REPETITION_WITH_SEPARATOR)}visitAlternation(t){this.checkIsTarget(t,Xn.ALTERNATION)}};o(Bst,"initializeArrayOfArrays");o(EM,"pathToHashKeys");o(HBt,"isUniquePrefixHash");o(Vst,"lookAheadSequenceFromAlternatives");o(gg,"getLookaheadPathsForOr");o(yg,"getLookaheadPathsForOptionalProd");o(Gk,"containsPath");o(Ust,"isStrictPrefixOfPath");o(Hst,"areTokenCategoriesNotUsed")});function Wst(e){let t=e.lookaheadStrategy.validate({rules:e.rules,tokenTypes:e.tokenTypes,grammarName:e.grammarName});return Xt(t,r=>Object.assign({type:Gi.CUSTOM_LOOKAHEAD_VALIDATION},r))}function Yst(e,t,r,n){let i=ba(e,u=>WBt(u,r)),a=QBt(e,t,r),s=ba(e,u=>XBt(u,r)),l=ba(e,u=>qBt(u,e,n,r));return i.concat(a,s,l)}function WBt(e,t){let r=new SM;e.accept(r);let n=r.allProductions,i=zD(n,YBt),a=Os(i,l=>l.length>1);return Xt(gr(a),l=>{let u=aa(l),h=t.buildDuplicateFoundError(e,l),f=Bs(u),d={message:h,type:Gi.DUPLICATE_PRODUCTIONS,ruleName:e.name,dslName:f,occurrence:u.idx},p=qst(u);return p&&(d.parameter=p),d})}function YBt(e){return`${Bs(e)}_#_${e.idx}_#_${qst(e)}`}function qst(e){return e instanceof br?e.terminalType.name:e instanceof nn?e.nonTerminalName:""}function qBt(e,t,r,n){let i=[];if(qr(t,(s,l)=>l.name===e.name?s+1:s,0)>1){let s=n.buildDuplicateRuleNameError({topLevelRule:e,grammarName:r});i.push({message:s,type:Gi.DUPLICATE_RULE_NAME,ruleName:e.name})}return i}function Xst(e,t,r){let n=[],i;return Wn(t,e)||(i=`Invalid rule override, rule: ->${e}<- cannot be overridden in the grammar: ->${r}<-as it is not defined in any of the super grammars `,n.push({message:i,type:Gi.INVALID_RULE_OVERRIDE,ruleName:e})),n}function _M(e,t,r,n=[]){let i=[],a=Vk(t.definition);if(cr(a))return[];{let s=e.name;Wn(a,e)&&i.push({message:r.buildLeftRecursionError({topLevelRule:e,leftRecursionPath:n}),type:Gi.LEFT_RECURSION,ruleName:s});let u=tf(a,n.concat([e])),h=ba(u,f=>{let d=rn(n);return d.push(f),_M(e,f,r,d)});return i.concat(h)}}function Vk(e){let t=[];if(cr(e))return t;let r=aa(e);if(r instanceof nn)t.push(r.referencedRule);else if(r instanceof Ln||r instanceof an||r instanceof Dn||r instanceof Rn||r instanceof bn||r instanceof Lr)t=t.concat(Vk(r.definition));else if(r instanceof wn)t=Wr(Xt(r.definition,a=>Vk(a.definition)));else if(!(r instanceof br))throw Error("non exhaustive match");let n=c0(r),i=e.length>1;if(n&&i){let a=gi(e);return t.concat(Vk(a))}else return t}function jst(e,t){let r=new O2;e.accept(r);let n=r.alternations;return ba(n,a=>{let s=Pu(a.definition);return ba(s,(l,u)=>{let h=Fk([l],[],Vu,1);return cr(h)?[{message:t.buildEmptyAlternationError({topLevelRule:e,alternation:a,emptyChoiceIdx:u}),type:Gi.NONE_LAST_EMPTY_ALT,ruleName:e.name,occurrence:a.idx,alternative:u+1}]:[]})})}function Kst(e,t,r){let n=new O2;e.accept(n);let i=n.alternations;return i=ef(i,s=>s.ignoreAmbiguities===!0),ba(i,s=>{let l=s.idx,u=s.maxLookahead||t,h=gg(l,e,u,s),f=jBt(h,s,e,r),d=KBt(h,s,e,r);return f.concat(d)})}function XBt(e,t){let r=new O2;e.accept(r);let n=r.alternations;return ba(n,a=>a.definition.length>255?[{message:t.buildTooManyAlternativesError({topLevelRule:e,alternation:a}),type:Gi.TOO_MANY_ALTS,ruleName:e.name,occurrence:a.idx}]:[])}function Qst(e,t,r){let n=[];return Et(e,i=>{let a=new AM;i.accept(a);let s=a.allProductions;Et(s,l=>{let u=I2(l),h=l.maxLookahead||t,f=l.idx,p=yg(f,i,u,h)[0];if(cr(Wr(p))){let m=r.buildEmptyRepetitionError({topLevelRule:i,repetition:l});n.push({message:m,type:Gi.NO_NON_EMPTY_LOOKAHEAD,ruleName:i.name})}})}),n}function jBt(e,t,r,n){let i=[],a=qr(e,(l,u,h)=>(t.definition[h].ignoreAmbiguities===!0||Et(u,f=>{let d=[h];Et(e,(p,m)=>{h!==m&&Gk(p,f)&&t.definition[m].ignoreAmbiguities!==!0&&d.push(m)}),d.length>1&&!Gk(i,f)&&(i.push(f),l.push({alts:d,path:f}))}),l),[]);return Xt(a,l=>{let u=Xt(l.alts,f=>f+1);return{message:n.buildAlternationAmbiguityError({topLevelRule:r,alternation:t,ambiguityIndices:u,prefixPath:l.path}),type:Gi.AMBIGUOUS_ALTS,ruleName:r.name,occurrence:t.idx,alternatives:l.alts}})}function KBt(e,t,r,n){let i=qr(e,(s,l,u)=>{let h=Xt(l,f=>({idx:u,path:f}));return s.concat(h)},[]);return Dc(ba(i,s=>{if(t.definition[s.idx].ignoreAmbiguities===!0)return[];let u=s.idx,h=s.path,f=Yr(i,p=>t.definition[p.idx].ignoreAmbiguities!==!0&&p.idx{let m=[p.idx+1,u+1],g=t.idx===0?"":t.idx;return{message:n.buildAlternationPrefixAmbiguityError({topLevelRule:r,alternation:t,ambiguityIndices:m,prefixPath:p.path}),type:Gi.AMBIGUOUS_PREFIX_ALTS,ruleName:r.name,occurrence:g,alternatives:m}})}))}function QBt(e,t,r){let n=[],i=Xt(t,a=>a.name);return Et(e,a=>{let s=a.name;if(Wn(i,s)){let l=r.buildNamespaceConflictError(a);n.push({message:l,type:Gi.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:s})}}),n}var SM,O2,AM,P2=R(()=>{"use strict";Ve();Fs();os();vg();M2();f0();o(Wst,"validateLookahead");o(Yst,"validateGrammar");o(WBt,"validateDuplicateProductions");o(YBt,"identifyProductionForDuplicates");o(qst,"getExtraProductionArgument");SM=class extends ss{static{o(this,"OccurrenceValidationCollector")}constructor(){super(...arguments),this.allProductions=[]}visitNonTerminal(t){this.allProductions.push(t)}visitOption(t){this.allProductions.push(t)}visitRepetitionWithSeparator(t){this.allProductions.push(t)}visitRepetitionMandatory(t){this.allProductions.push(t)}visitRepetitionMandatoryWithSeparator(t){this.allProductions.push(t)}visitRepetition(t){this.allProductions.push(t)}visitAlternation(t){this.allProductions.push(t)}visitTerminal(t){this.allProductions.push(t)}};o(qBt,"validateRuleDoesNotAlreadyExist");o(Xst,"validateRuleIsOverridden");o(_M,"validateNoLeftRecursion");o(Vk,"getFirstNoneTerminal");O2=class extends ss{static{o(this,"OrCollector")}constructor(){super(...arguments),this.alternations=[]}visitAlternation(t){this.alternations.push(t)}};o(jst,"validateEmptyOrAlternative");o(Kst,"validateAmbiguousAlternationAlternatives");AM=class extends ss{static{o(this,"RepetitionCollector")}constructor(){super(...arguments),this.allProductions=[]}visitRepetitionWithSeparator(t){this.allProductions.push(t)}visitRepetitionMandatory(t){this.allProductions.push(t)}visitRepetitionMandatoryWithSeparator(t){this.allProductions.push(t)}visitRepetition(t){this.allProductions.push(t)}};o(XBt,"validateTooManyAlts");o(Qst,"validateSomeNonEmptyLookaheadPath");o(jBt,"checkAlternativesAmbiguities");o(KBt,"checkPrefixAlternativesAmbiguities");o(QBt,"checkTerminalAndNoneTerminalsNameSpace")});function Zst(e){let t=Jh(e,{errMsgProvider:Ist}),r={};return Et(e.rules,n=>{r[n.name]=n}),Ost(r,t.errMsgProvider)}function Jst(e){return e=Jh(e,{errMsgProvider:$l}),Yst(e.rules,e.tokenTypes,e.errMsgProvider,e.grammarName)}var tot=R(()=>{"use strict";Ve();Pst();P2();pg();o(Zst,"resolveGrammar");o(Jst,"validateGrammar")});function cf(e){return Wn(aot,e.name)}var eot,rot,not,iot,aot,xg,m0,B2,F2,z2,bg=R(()=>{"use strict";Ve();eot="MismatchedTokenException",rot="NoViableAltException",not="EarlyExitException",iot="NotAllInputParsedException",aot=[eot,rot,not,iot];Object.freeze(aot);o(cf,"isRecognitionException");xg=class extends Error{static{o(this,"RecognitionException")}constructor(t,r){super(t),this.token=r,this.resyncedTokens=[],Object.setPrototypeOf(this,new.target.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}},m0=class extends xg{static{o(this,"MismatchedTokenException")}constructor(t,r,n){super(t,r),this.previousToken=n,this.name=eot}},B2=class extends xg{static{o(this,"NoViableAltException")}constructor(t,r,n){super(t,r),this.previousToken=n,this.name=rot}},F2=class extends xg{static{o(this,"NotAllInputParsedException")}constructor(t,r){super(t,r),this.name=iot}},z2=class extends xg{static{o(this,"EarlyExitException")}constructor(t,r,n){super(t,r),this.previousToken=n,this.name=not}}});function ZBt(e,t,r,n,i,a,s){let l=this.getKeyForAutomaticLookahead(n,i),u=this.firstAfterRepMap[l];if(u===void 0){let p=this.getCurrRuleFullName(),m=this.getGAstProductions()[p];u=new a(m,i).startWalking(),this.firstAfterRepMap[l]=u}let h=u.token,f=u.occurrence,d=u.isEndOfRule;this.RULE_STACK.length===1&&d&&h===void 0&&(h=po,f=1),!(h===void 0||f===void 0)&&this.shouldInRepetitionRecoveryBeTried(h,f,s)&&this.tryInRepetitionRecovery(e,t,r,h)}var LM,RM,DM,Uk,NM=R(()=>{"use strict";p0();Ve();bg();uM();Fs();LM={},RM="InRuleRecoveryException",DM=class extends Error{static{o(this,"InRuleRecoveryException")}constructor(t){super(t),this.name=RM}},Uk=class{static{o(this,"Recoverable")}initRecoverable(t){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=jt(t,"recoveryEnabled")?t.recoveryEnabled:ls.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=ZBt)}getTokenToInsert(t){let r=d0(t,"",NaN,NaN,NaN,NaN,NaN,NaN);return r.isInsertedInRecovery=!0,r}canTokenTypeBeInsertedInRecovery(t){return!0}canTokenTypeBeDeletedInRecovery(t){return!0}tryInRepetitionRecovery(t,r,n,i){let a=this.findReSyncTokenType(),s=this.exportLexerState(),l=[],u=!1,h=this.LA(1),f=this.LA(1),d=o(()=>{let p=this.LA(0),m=this.errorMessageProvider.buildMismatchTokenMessage({expected:i,actual:h,previous:p,ruleName:this.getCurrRuleFullName()}),g=new m0(m,h,this.LA(0));g.resyncedTokens=Pu(l),this.SAVE_ERROR(g)},"generateErrorMessage");for(;!u;)if(this.tokenMatcher(f,i)){d();return}else if(n.call(this)){d(),t.apply(this,r);return}else this.tokenMatcher(f,a)?u=!0:(f=this.SKIP_TOKEN(),this.addToResyncTokens(f,l));this.importLexerState(s)}shouldInRepetitionRecoveryBeTried(t,r,n){return!(n===!1||this.tokenMatcher(this.LA(1),t)||this.isBackTracking()||this.canPerformInRuleRecovery(t,this.getFollowsForInRuleRecovery(t,r)))}getFollowsForInRuleRecovery(t,r){let n=this.getCurrentGrammarPath(t,r);return this.getNextPossibleTokenTypes(n)}tryInRuleRecovery(t,r){if(this.canRecoverWithSingleTokenInsertion(t,r))return this.getTokenToInsert(t);if(this.canRecoverWithSingleTokenDeletion(t)){let n=this.SKIP_TOKEN();return this.consumeToken(),n}throw new DM("sad sad panda")}canPerformInRuleRecovery(t,r){return this.canRecoverWithSingleTokenInsertion(t,r)||this.canRecoverWithSingleTokenDeletion(t)}canRecoverWithSingleTokenInsertion(t,r){if(!this.canTokenTypeBeInsertedInRecovery(t)||cr(r))return!1;let n=this.LA(1);return rs(r,a=>this.tokenMatcher(n,a))!==void 0}canRecoverWithSingleTokenDeletion(t){return this.canTokenTypeBeDeletedInRecovery(t)?this.tokenMatcher(this.LA(2),t):!1}isInCurrentRuleReSyncSet(t){let r=this.getCurrFollowKey(),n=this.getFollowSetFromFollowKey(r);return Wn(n,t)}findReSyncTokenType(){let t=this.flattenFollowSet(),r=this.LA(1),n=2;for(;;){let i=rs(t,a=>D2(r,a));if(i!==void 0)return i;r=this.LA(n),n++}}getCurrFollowKey(){if(this.RULE_STACK.length===1)return LM;let t=this.getLastExplicitRuleShortName(),r=this.getLastExplicitRuleOccurrenceIndex(),n=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(t),idxInCallingRule:r,inRule:this.shortRuleNameToFullName(n)}}buildFullFollowKeyStack(){let t=this.RULE_STACK,r=this.RULE_OCCURRENCE_STACK;return Xt(t,(n,i)=>i===0?LM:{ruleName:this.shortRuleNameToFullName(n),idxInCallingRule:r[i],inRule:this.shortRuleNameToFullName(t[i-1])})}flattenFollowSet(){let t=Xt(this.buildFullFollowKeyStack(),r=>this.getFollowSetFromFollowKey(r));return Wr(t)}getFollowSetFromFollowKey(t){if(t===LM)return[po];let r=t.ruleName+t.idxInCallingRule+Sk+t.inRule;return this.resyncFollows[r]}addToResyncTokens(t,r){return this.tokenMatcher(t,po)||r.push(t),r}reSyncTo(t){let r=[],n=this.LA(1);for(;this.tokenMatcher(n,t)===!1;)n=this.SKIP_TOKEN(),this.addToResyncTokens(n,r);return Pu(r)}attemptInRepetitionRecovery(t,r,n,i,a,s,l){}getCurrentGrammarPath(t,r){let n=this.getHumanReadableRuleStack(),i=rn(this.RULE_OCCURRENCE_STACK);return{ruleStack:n,occurrenceStack:i,lastTok:t,lastTokOccurrence:r}}getHumanReadableRuleStack(){return Xt(this.RULE_STACK,t=>this.shortRuleNameToFullName(t))}};o(ZBt,"attemptInRepetitionRecovery")});function Hk(e,t,r){return r|t|e}var Wk=R(()=>{"use strict";o(Hk,"getKeyForAutomaticLookahead")});var Yu,MM=R(()=>{"use strict";Ve();pg();Fs();P2();vg();Yu=class{static{o(this,"LLkLookaheadStrategy")}constructor(t){var r;this.maxLookahead=(r=t?.maxLookahead)!==null&&r!==void 0?r:ls.maxLookahead}validate(t){let r=this.validateNoLeftRecursion(t.rules);if(cr(r)){let n=this.validateEmptyOrAlternatives(t.rules),i=this.validateAmbiguousAlternationAlternatives(t.rules,this.maxLookahead),a=this.validateSomeNonEmptyLookaheadPath(t.rules,this.maxLookahead);return[...r,...n,...i,...a]}return r}validateNoLeftRecursion(t){return ba(t,r=>_M(r,r,$l))}validateEmptyOrAlternatives(t){return ba(t,r=>jst(r,$l))}validateAmbiguousAlternationAlternatives(t,r){return ba(t,n=>Kst(n,r,$l))}validateSomeNonEmptyLookaheadPath(t,r){return Qst(t,r,$l)}buildLookaheadForAlternation(t){return Fst(t.prodOccurrence,t.rule,t.maxLookahead,t.hasPredicates,t.dynamicTokensEnabled,$st)}buildLookaheadForOptional(t){return zst(t.prodOccurrence,t.rule,t.maxLookahead,t.dynamicTokensEnabled,I2(t.prodType),Gst)}}});function JBt(e){Yk.reset(),e.accept(Yk);let t=Yk.dslMethods;return Yk.reset(),t}var qk,IM,Yk,sot=R(()=>{"use strict";Ve();Fs();Wk();os();MM();qk=class{static{o(this,"LooksAhead")}initLooksAhead(t){this.dynamicTokensEnabled=jt(t,"dynamicTokensEnabled")?t.dynamicTokensEnabled:ls.dynamicTokensEnabled,this.maxLookahead=jt(t,"maxLookahead")?t.maxLookahead:ls.maxLookahead,this.lookaheadStrategy=jt(t,"lookaheadStrategy")?t.lookaheadStrategy:new Yu({maxLookahead:this.maxLookahead}),this.lookAheadFuncsCache=new Map}preComputeLookaheadFunctions(t){Et(t,r=>{this.TRACE_INIT(`${r.name} Rule Lookahead`,()=>{let{alternation:n,repetition:i,option:a,repetitionMandatory:s,repetitionMandatoryWithSeparator:l,repetitionWithSeparator:u}=JBt(r);Et(n,h=>{let f=h.idx===0?"":h.idx;this.TRACE_INIT(`${Bs(h)}${f}`,()=>{let d=this.lookaheadStrategy.buildLookaheadForAlternation({prodOccurrence:h.idx,rule:r,maxLookahead:h.maxLookahead||this.maxLookahead,hasPredicates:h.hasPredicates,dynamicTokensEnabled:this.dynamicTokensEnabled}),p=Hk(this.fullRuleNameToShort[r.name],256,h.idx);this.setLaFuncCache(p,d)})}),Et(i,h=>{this.computeLookaheadFunc(r,h.idx,768,"Repetition",h.maxLookahead,Bs(h))}),Et(a,h=>{this.computeLookaheadFunc(r,h.idx,512,"Option",h.maxLookahead,Bs(h))}),Et(s,h=>{this.computeLookaheadFunc(r,h.idx,1024,"RepetitionMandatory",h.maxLookahead,Bs(h))}),Et(l,h=>{this.computeLookaheadFunc(r,h.idx,1536,"RepetitionMandatoryWithSeparator",h.maxLookahead,Bs(h))}),Et(u,h=>{this.computeLookaheadFunc(r,h.idx,1280,"RepetitionWithSeparator",h.maxLookahead,Bs(h))})})})}computeLookaheadFunc(t,r,n,i,a,s){this.TRACE_INIT(`${s}${r===0?"":r}`,()=>{let l=this.lookaheadStrategy.buildLookaheadForOptional({prodOccurrence:r,rule:t,maxLookahead:a||this.maxLookahead,dynamicTokensEnabled:this.dynamicTokensEnabled,prodType:i}),u=Hk(this.fullRuleNameToShort[t.name],n,r);this.setLaFuncCache(u,l)})}getKeyForAutomaticLookahead(t,r){let n=this.getLastExplicitRuleShortName();return Hk(n,t,r)}getLaFuncFromCache(t){return this.lookAheadFuncsCache.get(t)}setLaFuncCache(t,r){this.lookAheadFuncsCache.set(t,r)}},IM=class extends ss{static{o(this,"DslMethodsCollectorVisitor")}constructor(){super(...arguments),this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}reset(){this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}visitOption(t){this.dslMethods.option.push(t)}visitRepetitionWithSeparator(t){this.dslMethods.repetitionWithSeparator.push(t)}visitRepetitionMandatory(t){this.dslMethods.repetitionMandatory.push(t)}visitRepetitionMandatoryWithSeparator(t){this.dslMethods.repetitionMandatoryWithSeparator.push(t)}visitRepetition(t){this.dslMethods.repetition.push(t)}visitAlternation(t){this.dslMethods.alternation.push(t)}},Yk=new IM;o(JBt,"collectMethods")});function BM(e,t){isNaN(e.startOffset)===!0?(e.startOffset=t.startOffset,e.endOffset=t.endOffset):e.endOffset{"use strict";o(BM,"setNodeLocationOnlyOffset");o(FM,"setNodeLocationFull");o(oot,"addTerminalToCst");o(lot,"addNoneTerminalToCst")});function zM(e,t){Object.defineProperty(e,tFt,{enumerable:!1,configurable:!0,writable:!1,value:t})}var tFt,uot=R(()=>{"use strict";tFt="name";o(zM,"defineNameProp")});function eFt(e,t){let r=$r(e),n=r.length;for(let i=0;is.msg);throw Error(`Errors Detected in CST Visitor <${this.constructor.name}>: + ${a.join(` + +`).replace(/\n/g,` + `)}`)}},"validateVisitor")};return r.prototype=n,r.prototype.constructor=r,r._RULE_NAMES=t,r}function fot(e,t,r){let n=o(function(){},"derivedConstructor");zM(n,e+"BaseSemanticsWithDefaults");let i=Object.create(r.prototype);return Et(t,a=>{i[a]=eFt}),n.prototype=i,n.prototype.constructor=n,n}function rFt(e,t){return nFt(e,t)}function nFt(e,t){let r=Yr(t,i=>Si(e[i])===!1),n=Xt(r,i=>({msg:`Missing visitor method: <${i}> on ${e.constructor.name} CST Visitor.`,type:$M.MISSING_METHOD,methodName:i}));return Dc(n)}var $M,dot=R(()=>{"use strict";Ve();uot();o(eFt,"defaultVisit");o(hot,"createBaseSemanticVisitorConstructor");o(fot,"createBaseVisitorConstructorWithDefaults");(function(e){e[e.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",e[e.MISSING_METHOD=1]="MISSING_METHOD"})($M||($M={}));o(rFt,"validateVisitor");o(nFt,"validateMissingCstMethods")});var Qk,pot=R(()=>{"use strict";cot();Ve();dot();Fs();Qk=class{static{o(this,"TreeBuilder")}initTreeBuilder(t){if(this.CST_STACK=[],this.outputCst=t.outputCst,this.nodeLocationTracking=jt(t,"nodeLocationTracking")?t.nodeLocationTracking:ls.nodeLocationTracking,!this.outputCst)this.cstInvocationStateUpdate=ei,this.cstFinallyStateUpdate=ei,this.cstPostTerminal=ei,this.cstPostNonTerminal=ei,this.cstPostRule=ei;else if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=FM,this.setNodeLocationFromNode=FM,this.cstPostRule=ei,this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=ei,this.setNodeLocationFromNode=ei,this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=BM,this.setNodeLocationFromNode=BM,this.cstPostRule=ei,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=ei,this.setNodeLocationFromNode=ei,this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else if(/none/i.test(this.nodeLocationTracking))this.setNodeLocationFromToken=ei,this.setNodeLocationFromNode=ei,this.cstPostRule=ei,this.setInitialNodeLocation=ei;else throw Error(`Invalid config option: "${t.nodeLocationTracking}"`)}setInitialNodeLocationOnlyOffsetRecovery(t){t.location={startOffset:NaN,endOffset:NaN}}setInitialNodeLocationOnlyOffsetRegular(t){t.location={startOffset:this.LA(1).startOffset,endOffset:NaN}}setInitialNodeLocationFullRecovery(t){t.location={startOffset:NaN,startLine:NaN,startColumn:NaN,endOffset:NaN,endLine:NaN,endColumn:NaN}}setInitialNodeLocationFullRegular(t){let r=this.LA(1);t.location={startOffset:r.startOffset,startLine:r.startLine,startColumn:r.startColumn,endOffset:NaN,endLine:NaN,endColumn:NaN}}cstInvocationStateUpdate(t){let r={name:t,children:Object.create(null)};this.setInitialNodeLocation(r),this.CST_STACK.push(r)}cstFinallyStateUpdate(){this.CST_STACK.pop()}cstPostRuleFull(t){let r=this.LA(0),n=t.location;n.startOffset<=r.startOffset?(n.endOffset=r.endOffset,n.endLine=r.endLine,n.endColumn=r.endColumn):(n.startOffset=NaN,n.startLine=NaN,n.startColumn=NaN)}cstPostRuleOnlyOffset(t){let r=this.LA(0),n=t.location;n.startOffset<=r.startOffset?n.endOffset=r.endOffset:n.startOffset=NaN}cstPostTerminal(t,r){let n=this.CST_STACK[this.CST_STACK.length-1];oot(n,r,t),this.setNodeLocationFromToken(n.location,r)}cstPostNonTerminal(t,r){let n=this.CST_STACK[this.CST_STACK.length-1];lot(n,r,t),this.setNodeLocationFromNode(n.location,t.location)}getBaseCstVisitorConstructor(){if(fr(this.baseCstVisitorConstructor)){let t=hot(this.className,$r(this.gastProductionsCache));return this.baseCstVisitorConstructor=t,t}return this.baseCstVisitorConstructor}getBaseCstVisitorConstructorWithDefaults(){if(fr(this.baseCstVisitorWithDefaultsConstructor)){let t=fot(this.className,$r(this.gastProductionsCache),this.getBaseCstVisitorConstructor());return this.baseCstVisitorWithDefaultsConstructor=t,t}return this.baseCstVisitorWithDefaultsConstructor}getLastExplicitRuleShortName(){let t=this.RULE_STACK;return t[t.length-1]}getPreviousExplicitRuleShortName(){let t=this.RULE_STACK;return t[t.length-2]}getLastExplicitRuleOccurrenceIndex(){let t=this.RULE_OCCURRENCE_STACK;return t[t.length-1]}}});var Zk,mot=R(()=>{"use strict";Fs();Zk=class{static{o(this,"LexerAdapter")}initLexerAdapter(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1}set input(t){if(this.selfAnalysisDone!==!0)throw Error("Missing invocation at the end of the Parser's constructor.");this.reset(),this.tokVector=t,this.tokVectorLength=t.length}get input(){return this.tokVector}SKIP_TOKEN(){return this.currIdx<=this.tokVector.length-2?(this.consumeToken(),this.LA(1)):wg}LA(t){let r=this.currIdx+t;return r<0||this.tokVectorLength<=r?wg:this.tokVector[r]}consumeToken(){this.currIdx++}exportLexerState(){return this.currIdx}importLexerState(t){this.currIdx=t}resetLexerState(){this.currIdx=-1}moveToTerminatedState(){this.currIdx=this.tokVector.length-1}getLexerPosition(){return this.exportLexerState()}}});var Jk,got=R(()=>{"use strict";Ve();bg();Fs();pg();P2();os();Jk=class{static{o(this,"RecognizerApi")}ACTION(t){return t.call(this)}consume(t,r,n){return this.consumeInternal(r,t,n)}subrule(t,r,n){return this.subruleInternal(r,t,n)}option(t,r){return this.optionInternal(r,t)}or(t,r){return this.orInternal(r,t)}many(t,r){return this.manyInternal(t,r)}atLeastOne(t,r){return this.atLeastOneInternal(t,r)}CONSUME(t,r){return this.consumeInternal(t,0,r)}CONSUME1(t,r){return this.consumeInternal(t,1,r)}CONSUME2(t,r){return this.consumeInternal(t,2,r)}CONSUME3(t,r){return this.consumeInternal(t,3,r)}CONSUME4(t,r){return this.consumeInternal(t,4,r)}CONSUME5(t,r){return this.consumeInternal(t,5,r)}CONSUME6(t,r){return this.consumeInternal(t,6,r)}CONSUME7(t,r){return this.consumeInternal(t,7,r)}CONSUME8(t,r){return this.consumeInternal(t,8,r)}CONSUME9(t,r){return this.consumeInternal(t,9,r)}SUBRULE(t,r){return this.subruleInternal(t,0,r)}SUBRULE1(t,r){return this.subruleInternal(t,1,r)}SUBRULE2(t,r){return this.subruleInternal(t,2,r)}SUBRULE3(t,r){return this.subruleInternal(t,3,r)}SUBRULE4(t,r){return this.subruleInternal(t,4,r)}SUBRULE5(t,r){return this.subruleInternal(t,5,r)}SUBRULE6(t,r){return this.subruleInternal(t,6,r)}SUBRULE7(t,r){return this.subruleInternal(t,7,r)}SUBRULE8(t,r){return this.subruleInternal(t,8,r)}SUBRULE9(t,r){return this.subruleInternal(t,9,r)}OPTION(t){return this.optionInternal(t,0)}OPTION1(t){return this.optionInternal(t,1)}OPTION2(t){return this.optionInternal(t,2)}OPTION3(t){return this.optionInternal(t,3)}OPTION4(t){return this.optionInternal(t,4)}OPTION5(t){return this.optionInternal(t,5)}OPTION6(t){return this.optionInternal(t,6)}OPTION7(t){return this.optionInternal(t,7)}OPTION8(t){return this.optionInternal(t,8)}OPTION9(t){return this.optionInternal(t,9)}OR(t){return this.orInternal(t,0)}OR1(t){return this.orInternal(t,1)}OR2(t){return this.orInternal(t,2)}OR3(t){return this.orInternal(t,3)}OR4(t){return this.orInternal(t,4)}OR5(t){return this.orInternal(t,5)}OR6(t){return this.orInternal(t,6)}OR7(t){return this.orInternal(t,7)}OR8(t){return this.orInternal(t,8)}OR9(t){return this.orInternal(t,9)}MANY(t){this.manyInternal(0,t)}MANY1(t){this.manyInternal(1,t)}MANY2(t){this.manyInternal(2,t)}MANY3(t){this.manyInternal(3,t)}MANY4(t){this.manyInternal(4,t)}MANY5(t){this.manyInternal(5,t)}MANY6(t){this.manyInternal(6,t)}MANY7(t){this.manyInternal(7,t)}MANY8(t){this.manyInternal(8,t)}MANY9(t){this.manyInternal(9,t)}MANY_SEP(t){this.manySepFirstInternal(0,t)}MANY_SEP1(t){this.manySepFirstInternal(1,t)}MANY_SEP2(t){this.manySepFirstInternal(2,t)}MANY_SEP3(t){this.manySepFirstInternal(3,t)}MANY_SEP4(t){this.manySepFirstInternal(4,t)}MANY_SEP5(t){this.manySepFirstInternal(5,t)}MANY_SEP6(t){this.manySepFirstInternal(6,t)}MANY_SEP7(t){this.manySepFirstInternal(7,t)}MANY_SEP8(t){this.manySepFirstInternal(8,t)}MANY_SEP9(t){this.manySepFirstInternal(9,t)}AT_LEAST_ONE(t){this.atLeastOneInternal(0,t)}AT_LEAST_ONE1(t){return this.atLeastOneInternal(1,t)}AT_LEAST_ONE2(t){this.atLeastOneInternal(2,t)}AT_LEAST_ONE3(t){this.atLeastOneInternal(3,t)}AT_LEAST_ONE4(t){this.atLeastOneInternal(4,t)}AT_LEAST_ONE5(t){this.atLeastOneInternal(5,t)}AT_LEAST_ONE6(t){this.atLeastOneInternal(6,t)}AT_LEAST_ONE7(t){this.atLeastOneInternal(7,t)}AT_LEAST_ONE8(t){this.atLeastOneInternal(8,t)}AT_LEAST_ONE9(t){this.atLeastOneInternal(9,t)}AT_LEAST_ONE_SEP(t){this.atLeastOneSepFirstInternal(0,t)}AT_LEAST_ONE_SEP1(t){this.atLeastOneSepFirstInternal(1,t)}AT_LEAST_ONE_SEP2(t){this.atLeastOneSepFirstInternal(2,t)}AT_LEAST_ONE_SEP3(t){this.atLeastOneSepFirstInternal(3,t)}AT_LEAST_ONE_SEP4(t){this.atLeastOneSepFirstInternal(4,t)}AT_LEAST_ONE_SEP5(t){this.atLeastOneSepFirstInternal(5,t)}AT_LEAST_ONE_SEP6(t){this.atLeastOneSepFirstInternal(6,t)}AT_LEAST_ONE_SEP7(t){this.atLeastOneSepFirstInternal(7,t)}AT_LEAST_ONE_SEP8(t){this.atLeastOneSepFirstInternal(8,t)}AT_LEAST_ONE_SEP9(t){this.atLeastOneSepFirstInternal(9,t)}RULE(t,r,n=Tg){if(Wn(this.definedRulesNames,t)){let s={message:$l.buildDuplicateRuleNameError({topLevelRule:t,grammarName:this.className}),type:Gi.DUPLICATE_RULE_NAME,ruleName:t};this.definitionErrors.push(s)}this.definedRulesNames.push(t);let i=this.defineRule(t,r,n);return this[t]=i,i}OVERRIDE_RULE(t,r,n=Tg){let i=Xst(t,this.definedRulesNames,this.className);this.definitionErrors=this.definitionErrors.concat(i);let a=this.defineRule(t,r,n);return this[t]=a,a}BACKTRACK(t,r){return function(){this.isBackTrackingStack.push(1);let n=this.saveRecogState();try{return t.apply(this,r),!0}catch(i){if(cf(i))return!1;throw i}finally{this.reloadRecogState(n),this.isBackTrackingStack.pop()}}}getGAstProductions(){return this.gastProductionsCache}getSerializedGastProductions(){return kk(gr(this.gastProductionsCache))}}});var tE,yot=R(()=>{"use strict";Ve();Wk();bg();vg();M2();Fs();NM();p0();f0();tE=class{static{o(this,"RecognizerEngine")}initRecognizerEngine(t,r){if(this.className=this.constructor.name,this.shortRuleNameToFull={},this.fullRuleNameToShort={},this.ruleShortNameIdx=256,this.tokenMatcher=dg,this.subruleIdx=0,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_OCCURRENCE_STACK=[],this.gastProductionsCache={},jt(r,"serializedGrammar"))throw Error(`The Parser's configuration can no longer contain a property. + See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_6-0-0 + For Further details.`);if(Le(t)){if(cr(t))throw Error(`A Token Vocabulary cannot be empty. + Note that the first argument for the parser constructor + is no longer a Token vector (since v4.0).`);if(typeof t[0].startOffset=="number")throw Error(`The Parser constructor no longer accepts a token vector as the first argument. + See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_4-0-0 + For Further details.`)}if(Le(t))this.tokensMap=qr(t,(a,s)=>(a[s.name]=s,a),{});else if(jt(t,"modes")&&za(Wr(gr(t.modes)),Cst)){let a=Wr(gr(t.modes)),s=Qm(a);this.tokensMap=qr(s,(l,u)=>(l[u.name]=u,l),{})}else if(xn(t))this.tokensMap=rn(t);else throw new Error(" argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");this.tokensMap.EOF=po;let n=jt(t,"modes")?Wr(gr(t.modes)):gr(t),i=za(n,a=>cr(a.categoryMatches));this.tokenMatcher=i?dg:Vu,Uu(gr(this.tokensMap))}defineRule(t,r,n){if(this.selfAnalysisDone)throw Error(`Grammar rule <${t}> may not be defined after the 'performSelfAnalysis' method has been called' +Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`);let i=jt(n,"resyncEnabled")?n.resyncEnabled:Tg.resyncEnabled,a=jt(n,"recoveryValueFunc")?n.recoveryValueFunc:Tg.recoveryValueFunc,s=this.ruleShortNameIdx<<12;this.ruleShortNameIdx++,this.shortRuleNameToFull[s]=t,this.fullRuleNameToShort[t]=s;let l;return this.outputCst===!0?l=o(function(...f){try{this.ruleInvocationStateUpdate(s,t,this.subruleIdx),r.apply(this,f);let d=this.CST_STACK[this.CST_STACK.length-1];return this.cstPostRule(d),d}catch(d){return this.invokeRuleCatch(d,i,a)}finally{this.ruleFinallyStateUpdate()}},"invokeRuleWithTry"):l=o(function(...f){try{return this.ruleInvocationStateUpdate(s,t,this.subruleIdx),r.apply(this,f)}catch(d){return this.invokeRuleCatch(d,i,a)}finally{this.ruleFinallyStateUpdate()}},"invokeRuleWithTryCst"),Object.assign(l,{ruleName:t,originalGrammarAction:r})}invokeRuleCatch(t,r,n){let i=this.RULE_STACK.length===1,a=r&&!this.isBackTracking()&&this.recoveryEnabled;if(cf(t)){let s=t;if(a){let l=this.findReSyncTokenType();if(this.isInCurrentRuleReSyncSet(l))if(s.resyncedTokens=this.reSyncTo(l),this.outputCst){let u=this.CST_STACK[this.CST_STACK.length-1];return u.recoveredNode=!0,u}else return n(t);else{if(this.outputCst){let u=this.CST_STACK[this.CST_STACK.length-1];u.recoveredNode=!0,s.partialCstResult=u}throw s}}else{if(i)return this.moveToTerminatedState(),n(t);throw s}}else throw t}optionInternal(t,r){let n=this.getKeyForAutomaticLookahead(512,r);return this.optionInternalLogic(t,r,n)}optionInternalLogic(t,r,n){let i=this.getLaFuncFromCache(n),a;if(typeof t!="function"){a=t.DEF;let s=t.GATE;if(s!==void 0){let l=i;i=o(()=>s.call(this)&&l.call(this),"lookAheadFunc")}}else a=t;if(i.call(this)===!0)return a.call(this)}atLeastOneInternal(t,r){let n=this.getKeyForAutomaticLookahead(1024,t);return this.atLeastOneInternalLogic(t,r,n)}atLeastOneInternalLogic(t,r,n){let i=this.getLaFuncFromCache(n),a;if(typeof r!="function"){a=r.DEF;let s=r.GATE;if(s!==void 0){let l=i;i=o(()=>s.call(this)&&l.call(this),"lookAheadFunc")}}else a=r;if(i.call(this)===!0){let s=this.doSingleRepetition(a);for(;i.call(this)===!0&&s===!0;)s=this.doSingleRepetition(a)}else throw this.raiseEarlyExitException(t,Xn.REPETITION_MANDATORY,r.ERR_MSG);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[t,r],i,1024,t,Pk)}atLeastOneSepFirstInternal(t,r){let n=this.getKeyForAutomaticLookahead(1536,t);this.atLeastOneSepFirstInternalLogic(t,r,n)}atLeastOneSepFirstInternalLogic(t,r,n){let i=r.DEF,a=r.SEP;if(this.getLaFuncFromCache(n).call(this)===!0){i.call(this);let l=o(()=>this.tokenMatcher(this.LA(1),a),"separatorLookAheadFunc");for(;this.tokenMatcher(this.LA(1),a)===!0;)this.CONSUME(a),i.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,a,l,i,N2],l,1536,t,N2)}else throw this.raiseEarlyExitException(t,Xn.REPETITION_MANDATORY_WITH_SEPARATOR,r.ERR_MSG)}manyInternal(t,r){let n=this.getKeyForAutomaticLookahead(768,t);return this.manyInternalLogic(t,r,n)}manyInternalLogic(t,r,n){let i=this.getLaFuncFromCache(n),a;if(typeof r!="function"){a=r.DEF;let l=r.GATE;if(l!==void 0){let u=i;i=o(()=>l.call(this)&&u.call(this),"lookaheadFunction")}}else a=r;let s=!0;for(;i.call(this)===!0&&s===!0;)s=this.doSingleRepetition(a);this.attemptInRepetitionRecovery(this.manyInternal,[t,r],i,768,t,Ok,s)}manySepFirstInternal(t,r){let n=this.getKeyForAutomaticLookahead(1280,t);this.manySepFirstInternalLogic(t,r,n)}manySepFirstInternalLogic(t,r,n){let i=r.DEF,a=r.SEP;if(this.getLaFuncFromCache(n).call(this)===!0){i.call(this);let l=o(()=>this.tokenMatcher(this.LA(1),a),"separatorLookAheadFunc");for(;this.tokenMatcher(this.LA(1),a)===!0;)this.CONSUME(a),i.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,a,l,i,R2],l,1280,t,R2)}}repetitionSepSecondInternal(t,r,n,i,a){for(;n();)this.CONSUME(r),i.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,r,n,i,a],n,1536,t,a)}doSingleRepetition(t){let r=this.getLexerPosition();return t.call(this),this.getLexerPosition()>r}orInternal(t,r){let n=this.getKeyForAutomaticLookahead(256,r),i=Le(t)?t:t.DEF,s=this.getLaFuncFromCache(n).call(this,i);if(s!==void 0)return i[s].ALT.call(this);this.raiseNoAltException(r,t.ERR_MSG)}ruleFinallyStateUpdate(){if(this.RULE_STACK.pop(),this.RULE_OCCURRENCE_STACK.pop(),this.cstFinallyStateUpdate(),this.RULE_STACK.length===0&&this.isAtEndOfInput()===!1){let t=this.LA(1),r=this.errorMessageProvider.buildNotAllInputParsedMessage({firstRedundant:t,ruleName:this.getCurrRuleFullName()});this.SAVE_ERROR(new F2(r,t))}}subruleInternal(t,r,n){let i;try{let a=n!==void 0?n.ARGS:void 0;return this.subruleIdx=r,i=t.apply(this,a),this.cstPostNonTerminal(i,n!==void 0&&n.LABEL!==void 0?n.LABEL:t.ruleName),i}catch(a){throw this.subruleInternalError(a,n,t.ruleName)}}subruleInternalError(t,r,n){throw cf(t)&&t.partialCstResult!==void 0&&(this.cstPostNonTerminal(t.partialCstResult,r!==void 0&&r.LABEL!==void 0?r.LABEL:n),delete t.partialCstResult),t}consumeInternal(t,r,n){let i;try{let a=this.LA(1);this.tokenMatcher(a,t)===!0?(this.consumeToken(),i=a):this.consumeInternalError(t,a,n)}catch(a){i=this.consumeInternalRecovery(t,r,a)}return this.cstPostTerminal(n!==void 0&&n.LABEL!==void 0?n.LABEL:t.name,i),i}consumeInternalError(t,r,n){let i,a=this.LA(0);throw n!==void 0&&n.ERR_MSG?i=n.ERR_MSG:i=this.errorMessageProvider.buildMismatchTokenMessage({expected:t,actual:r,previous:a,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new m0(i,r,a))}consumeInternalRecovery(t,r,n){if(this.recoveryEnabled&&n.name==="MismatchedTokenException"&&!this.isBackTracking()){let i=this.getFollowsForInRuleRecovery(t,r);try{return this.tryInRuleRecovery(t,i)}catch(a){throw a.name===RM?n:a}}else throw n}saveRecogState(){let t=this.errors,r=rn(this.RULE_STACK);return{errors:t,lexerState:this.exportLexerState(),RULE_STACK:r,CST_STACK:this.CST_STACK}}reloadRecogState(t){this.errors=t.errors,this.importLexerState(t.lexerState),this.RULE_STACK=t.RULE_STACK}ruleInvocationStateUpdate(t,r,n){this.RULE_OCCURRENCE_STACK.push(n),this.RULE_STACK.push(t),this.cstInvocationStateUpdate(r)}isBackTracking(){return this.isBackTrackingStack.length!==0}getCurrRuleFullName(){let t=this.getLastExplicitRuleShortName();return this.shortRuleNameToFull[t]}shortRuleNameToFullName(t){return this.shortRuleNameToFull[t]}isAtEndOfInput(){return this.tokenMatcher(this.LA(1),po)}reset(){this.resetLexerState(),this.subruleIdx=0,this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]}}});var eE,vot=R(()=>{"use strict";bg();Ve();vg();Fs();eE=class{static{o(this,"ErrorHandler")}initErrorHandler(t){this._errors=[],this.errorMessageProvider=jt(t,"errorMessageProvider")?t.errorMessageProvider:ls.errorMessageProvider}SAVE_ERROR(t){if(cf(t))return t.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:rn(this.RULE_OCCURRENCE_STACK)},this._errors.push(t),t;throw Error("Trying to save an Error which is not a RecognitionException")}get errors(){return rn(this._errors)}set errors(t){this._errors=t}raiseEarlyExitException(t,r,n){let i=this.getCurrRuleFullName(),a=this.getGAstProductions()[i],l=yg(t,a,r,this.maxLookahead)[0],u=[];for(let f=1;f<=this.maxLookahead;f++)u.push(this.LA(f));let h=this.errorMessageProvider.buildEarlyExitMessage({expectedIterationPaths:l,actual:u,previous:this.LA(0),customUserDescription:n,ruleName:i});throw this.SAVE_ERROR(new z2(h,this.LA(1),this.LA(0)))}raiseNoAltException(t,r){let n=this.getCurrRuleFullName(),i=this.getGAstProductions()[n],a=gg(t,i,this.maxLookahead),s=[];for(let h=1;h<=this.maxLookahead;h++)s.push(this.LA(h));let l=this.LA(0),u=this.errorMessageProvider.buildNoViableAltMessage({expectedPathsPerAlt:a,actual:s,previous:l,customUserDescription:r,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new B2(u,this.LA(1),l))}}});var rE,xot=R(()=>{"use strict";M2();Ve();rE=class{static{o(this,"ContentAssist")}initContentAssist(){}computeContentAssist(t,r){let n=this.gastProductionsCache[t];if(fr(n))throw Error(`Rule ->${t}<- does not exist in this grammar.`);return Fk([n],r,this.tokenMatcher,this.maxLookahead)}getNextPossibleTokenTypes(t){let r=aa(t.ruleStack),i=this.getGAstProductions()[r];return new Ik(i,t).startWalking()}}});function G2(e,t,r,n=!1){iE(r);let i=xa(this.recordingProdStack),a=Si(t)?t:t.DEF,s=new e({definition:[],idx:r});return n&&(s.separator=t.SEP),jt(t,"MAX_LOOKAHEAD")&&(s.maxLookahead=t.MAX_LOOKAHEAD),this.recordingProdStack.push(s),a.call(this),i.definition.push(s),this.recordingProdStack.pop(),aE}function sFt(e,t){iE(t);let r=xa(this.recordingProdStack),n=Le(e)===!1,i=n===!1?e:e.DEF,a=new wn({definition:[],idx:t,ignoreAmbiguities:n&&e.IGNORE_AMBIGUITIES===!0});jt(e,"MAX_LOOKAHEAD")&&(a.maxLookahead=e.MAX_LOOKAHEAD);let s=r2(i,l=>Si(l.GATE));return a.hasPredicates=s,r.definition.push(a),Et(i,l=>{let u=new Ln({definition:[]});a.definition.push(u),jt(l,"IGNORE_AMBIGUITIES")?u.ignoreAmbiguities=l.IGNORE_AMBIGUITIES:jt(l,"GATE")&&(u.ignoreAmbiguities=!0),this.recordingProdStack.push(u),l.ALT.call(this),this.recordingProdStack.pop()}),aE}function Tot(e){return e===0?"":`${e}`}function iE(e){if(e<0||e>wot){let t=new Error(`Invalid DSL Method idx value: <${e}> + Idx value must be a none negative value smaller than ${wot+1}`);throw t.KNOWN_RECORDER_ERROR=!0,t}}var aE,bot,wot,kot,Eot,aFt,nE,Cot=R(()=>{"use strict";Ve();os();_2();f0();p0();Fs();Wk();aE={description:"This Object indicates the Parser is during Recording Phase"};Object.freeze(aE);bot=!0,wot=Math.pow(2,8)-1,kot=Mk({name:"RECORDING_PHASE_TOKEN",pattern:li.NA});Uu([kot]);Eot=d0(kot,`This IToken indicates the Parser is in Recording Phase + See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,-1,-1,-1,-1,-1,-1);Object.freeze(Eot);aFt={name:`This CSTNode indicates the Parser is in Recording Phase + See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,children:{}},nE=class{static{o(this,"GastRecorder")}initGastRecorder(t){this.recordingProdStack=[],this.RECORDING_PHASE=!1}enableRecording(){this.RECORDING_PHASE=!0,this.TRACE_INIT("Enable Recording",()=>{for(let t=0;t<10;t++){let r=t>0?t:"";this[`CONSUME${r}`]=function(n,i){return this.consumeInternalRecord(n,t,i)},this[`SUBRULE${r}`]=function(n,i){return this.subruleInternalRecord(n,t,i)},this[`OPTION${r}`]=function(n){return this.optionInternalRecord(n,t)},this[`OR${r}`]=function(n){return this.orInternalRecord(n,t)},this[`MANY${r}`]=function(n){this.manyInternalRecord(t,n)},this[`MANY_SEP${r}`]=function(n){this.manySepFirstInternalRecord(t,n)},this[`AT_LEAST_ONE${r}`]=function(n){this.atLeastOneInternalRecord(t,n)},this[`AT_LEAST_ONE_SEP${r}`]=function(n){this.atLeastOneSepFirstInternalRecord(t,n)}}this.consume=function(t,r,n){return this.consumeInternalRecord(r,t,n)},this.subrule=function(t,r,n){return this.subruleInternalRecord(r,t,n)},this.option=function(t,r){return this.optionInternalRecord(r,t)},this.or=function(t,r){return this.orInternalRecord(r,t)},this.many=function(t,r){this.manyInternalRecord(t,r)},this.atLeastOne=function(t,r){this.atLeastOneInternalRecord(t,r)},this.ACTION=this.ACTION_RECORD,this.BACKTRACK=this.BACKTRACK_RECORD,this.LA=this.LA_RECORD})}disableRecording(){this.RECORDING_PHASE=!1,this.TRACE_INIT("Deleting Recording methods",()=>{let t=this;for(let r=0;r<10;r++){let n=r>0?r:"";delete t[`CONSUME${n}`],delete t[`SUBRULE${n}`],delete t[`OPTION${n}`],delete t[`OR${n}`],delete t[`MANY${n}`],delete t[`MANY_SEP${n}`],delete t[`AT_LEAST_ONE${n}`],delete t[`AT_LEAST_ONE_SEP${n}`]}delete t.consume,delete t.subrule,delete t.option,delete t.or,delete t.many,delete t.atLeastOne,delete t.ACTION,delete t.BACKTRACK,delete t.LA})}ACTION_RECORD(t){}BACKTRACK_RECORD(t,r){return()=>!0}LA_RECORD(t){return wg}topLevelRuleRecord(t,r){try{let n=new as({definition:[],name:t});return n.name=t,this.recordingProdStack.push(n),r.call(this),this.recordingProdStack.pop(),n}catch(n){if(n.KNOWN_RECORDER_ERROR!==!0)try{n.message=n.message+` + This error was thrown during the "grammar recording phase" For more info see: + https://chevrotain.io/docs/guide/internals.html#grammar-recording`}catch{throw n}throw n}}optionInternalRecord(t,r){return G2.call(this,an,t,r)}atLeastOneInternalRecord(t,r){G2.call(this,Dn,r,t)}atLeastOneSepFirstInternalRecord(t,r){G2.call(this,Rn,r,t,bot)}manyInternalRecord(t,r){G2.call(this,Lr,r,t)}manySepFirstInternalRecord(t,r){G2.call(this,bn,r,t,bot)}orInternalRecord(t,r){return sFt.call(this,t,r)}subruleInternalRecord(t,r,n){if(iE(r),!t||jt(t,"ruleName")===!1){let l=new Error(` argument is invalid expecting a Parser method reference but got: <${JSON.stringify(t)}> + inside top level rule: <${this.recordingProdStack[0].name}>`);throw l.KNOWN_RECORDER_ERROR=!0,l}let i=xa(this.recordingProdStack),a=t.ruleName,s=new nn({idx:r,nonTerminalName:a,label:n?.LABEL,referencedRule:void 0});return i.definition.push(s),this.outputCst?aFt:aE}consumeInternalRecord(t,r,n){if(iE(r),!vM(t)){let s=new Error(` argument is invalid expecting a TokenType reference but got: <${JSON.stringify(t)}> + inside top level rule: <${this.recordingProdStack[0].name}>`);throw s.KNOWN_RECORDER_ERROR=!0,s}let i=xa(this.recordingProdStack),a=new br({idx:r,terminalType:t,label:n?.LABEL});return i.definition.push(a),Eot}};o(G2,"recordProd");o(sFt,"recordOrProd");o(Tot,"getIdxSuffix");o(iE,"assertMethodIdxIsValid")});var sE,Sot=R(()=>{"use strict";Ve();lg();Fs();sE=class{static{o(this,"PerformanceTracer")}initPerformanceTracer(t){if(jt(t,"traceInitPerf")){let r=t.traceInitPerf,n=typeof r=="number";this.traceInitMaxIdent=n?r:1/0,this.traceInitPerf=n?r>0:r}else this.traceInitMaxIdent=0,this.traceInitPerf=ls.traceInitPerf;this.traceInitIndent=-1}TRACE_INIT(t,r){if(this.traceInitPerf===!0){this.traceInitIndent++;let n=new Array(this.traceInitIndent+1).join(" ");this.traceInitIndent <${t}>`);let{time:i,value:a}=C2(r),s=i>10?console.warn:console.log;return this.traceInitIndent time: ${i}ms`),this.traceInitIndent--,a}else return r()}}});function Aot(e,t){t.forEach(r=>{let n=r.prototype;Object.getOwnPropertyNames(n).forEach(i=>{if(i==="constructor")return;let a=Object.getOwnPropertyDescriptor(n,i);a&&(a.get||a.set)?Object.defineProperty(e.prototype,i,a):e.prototype[i]=r.prototype[i]})})}var _ot=R(()=>{"use strict";o(Aot,"applyMixins")});function oE(e=void 0){return function(){return e}}var wg,ls,Tg,Gi,V2,U2,Fs=R(()=>{"use strict";Ve();lg();ist();p0();pg();tot();NM();sot();pot();mot();got();yot();vot();xot();Cot();Sot();_ot();P2();wg=d0(po,"",NaN,NaN,NaN,NaN,NaN,NaN);Object.freeze(wg);ls=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:Wu,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1}),Tg=Object.freeze({recoveryValueFunc:o(()=>{},"recoveryValueFunc"),resyncEnabled:!0});(function(e){e[e.INVALID_RULE_NAME=0]="INVALID_RULE_NAME",e[e.DUPLICATE_RULE_NAME=1]="DUPLICATE_RULE_NAME",e[e.INVALID_RULE_OVERRIDE=2]="INVALID_RULE_OVERRIDE",e[e.DUPLICATE_PRODUCTIONS=3]="DUPLICATE_PRODUCTIONS",e[e.UNRESOLVED_SUBRULE_REF=4]="UNRESOLVED_SUBRULE_REF",e[e.LEFT_RECURSION=5]="LEFT_RECURSION",e[e.NONE_LAST_EMPTY_ALT=6]="NONE_LAST_EMPTY_ALT",e[e.AMBIGUOUS_ALTS=7]="AMBIGUOUS_ALTS",e[e.CONFLICT_TOKENS_RULES_NAMESPACE=8]="CONFLICT_TOKENS_RULES_NAMESPACE",e[e.INVALID_TOKEN_NAME=9]="INVALID_TOKEN_NAME",e[e.NO_NON_EMPTY_LOOKAHEAD=10]="NO_NON_EMPTY_LOOKAHEAD",e[e.AMBIGUOUS_PREFIX_ALTS=11]="AMBIGUOUS_PREFIX_ALTS",e[e.TOO_MANY_ALTS=12]="TOO_MANY_ALTS",e[e.CUSTOM_LOOKAHEAD_VALIDATION=13]="CUSTOM_LOOKAHEAD_VALIDATION"})(Gi||(Gi={}));o(oE,"EMPTY_ALT");V2=class e{static{o(this,"Parser")}static performSelfAnalysis(t){throw Error("The **static** `performSelfAnalysis` method has been deprecated. \nUse the **instance** method with the same name instead.")}performSelfAnalysis(){this.TRACE_INIT("performSelfAnalysis",()=>{let t;this.selfAnalysisDone=!0;let r=this.className;this.TRACE_INIT("toFastProps",()=>{S2(this)}),this.TRACE_INIT("Grammar Recording",()=>{try{this.enableRecording(),Et(this.definedRulesNames,i=>{let s=this[i].originalGrammarAction,l;this.TRACE_INIT(`${i} Rule`,()=>{l=this.topLevelRuleRecord(i,s)}),this.gastProductionsCache[i]=l})}finally{this.disableRecording()}});let n=[];if(this.TRACE_INIT("Grammar Resolving",()=>{n=Zst({rules:gr(this.gastProductionsCache)}),this.definitionErrors=this.definitionErrors.concat(n)}),this.TRACE_INIT("Grammar Validations",()=>{if(cr(n)&&this.skipValidations===!1){let i=Jst({rules:gr(this.gastProductionsCache),tokenTypes:gr(this.tokensMap),errMsgProvider:$l,grammarName:r}),a=Wst({lookaheadStrategy:this.lookaheadStrategy,rules:gr(this.gastProductionsCache),tokenTypes:gr(this.tokensMap),grammarName:r});this.definitionErrors=this.definitionErrors.concat(i,a)}}),cr(this.definitionErrors)&&(this.recoveryEnabled&&this.TRACE_INIT("computeAllProdsFollows",()=>{let i=nst(gr(this.gastProductionsCache));this.resyncFollows=i}),this.TRACE_INIT("ComputeLookaheadFunctions",()=>{var i,a;(a=(i=this.lookaheadStrategy).initialize)===null||a===void 0||a.call(i,{rules:gr(this.gastProductionsCache)}),this.preComputeLookaheadFunctions(gr(this.gastProductionsCache))})),!e.DEFER_DEFINITION_ERRORS_HANDLING&&!cr(this.definitionErrors))throw t=Xt(this.definitionErrors,i=>i.message),new Error(`Parser Definition Errors detected: + ${t.join(` +------------------------------- +`)}`)})}constructor(t,r){this.definitionErrors=[],this.selfAnalysisDone=!1;let n=this;if(n.initErrorHandler(r),n.initLexerAdapter(),n.initLooksAhead(r),n.initRecognizerEngine(t,r),n.initRecoverable(r),n.initTreeBuilder(r),n.initContentAssist(),n.initGastRecorder(r),n.initPerformanceTracer(r),jt(r,"ignoredIssues"))throw new Error(`The IParserConfig property has been deprecated. + Please use the flag on the relevant DSL method instead. + See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES + For further details.`);this.skipValidations=jt(r,"skipValidations")?r.skipValidations:ls.skipValidations}};V2.DEFER_DEFINITION_ERRORS_HANDLING=!1;Aot(V2,[Uk,qk,Qk,Zk,tE,Jk,eE,rE,nE,sE]);U2=class extends V2{static{o(this,"EmbeddedActionsParser")}constructor(t,r=ls){let n=rn(r);n.outputCst=!1,super(t,n)}}});var Lot=R(()=>{"use strict";os()});var Dot=R(()=>{"use strict"});var Rot=R(()=>{"use strict";Lot();Dot()});var Not=R(()=>{"use strict";sM()});var g0=R(()=>{"use strict";sM();Fs();_2();p0();vg();MM();pg();bg();bM();os();os();Rot();Not()});function y0(e,t,r){return`${e.name}_${t}_${r}`}function Pot(e){let t={decisionMap:{},decisionStates:[],ruleToStartState:new Map,ruleToStopState:new Map,states:[]};dFt(t,e);let r=e.length;for(let n=0;nBot(e,t,s));return Sg(e,t,n,r,...i)}function xFt(e,t,r){let n=sa(e,t,r,{type:uf});hf(e,n);let i=Sg(e,t,n,r,v0(e,t,r));return bFt(e,t,r,i)}function v0(e,t,r){let n=Yr(Xt(r.definition,i=>Bot(e,t,i)),i=>i!==void 0);return n.length===1?n[0]:n.length===0?void 0:TFt(e,n)}function Fot(e,t,r,n,i){let a=n.left,s=n.right,l=sa(e,t,r,{type:fFt});hf(e,l);let u=sa(e,t,r,{type:Oot});return a.loopback=l,u.loopback=l,e.decisionMap[y0(t,i?"RepetitionMandatoryWithSeparator":"RepetitionMandatory",r.idx)]=l,_i(s,l),i===void 0?(_i(l,a),_i(l,u)):(_i(l,u),_i(l,i.left),_i(i.right,a)),{left:a,right:u}}function zot(e,t,r,n,i){let a=n.left,s=n.right,l=sa(e,t,r,{type:hFt});hf(e,l);let u=sa(e,t,r,{type:Oot}),h=sa(e,t,r,{type:uFt});return l.loopback=h,u.loopback=h,_i(l,a),_i(l,u),_i(s,h),i!==void 0?(_i(h,u),_i(h,i.left),_i(i.right,a)):_i(h,l),e.decisionMap[y0(t,i?"RepetitionWithSeparator":"Repetition",r.idx)]=l,{left:l,right:u}}function bFt(e,t,r,n){let i=n.left,a=n.right;return _i(i,a),e.decisionMap[y0(t,"Option",r.idx)]=i,n}function hf(e,t){return e.decisionStates.push(t),t.decision=e.decisionStates.length-1,t.decision}function Sg(e,t,r,n,...i){let a=sa(e,t,n,{type:cFt,start:r});r.end=a;for(let l of i)l!==void 0?(_i(r,l.left),_i(l.right,a)):_i(r,a);let s={left:r,right:a};return e.decisionMap[y0(t,wFt(n),n.idx)]=r,s}function wFt(e){if(e instanceof wn)return"Alternation";if(e instanceof an)return"Option";if(e instanceof Lr)return"Repetition";if(e instanceof bn)return"RepetitionWithSeparator";if(e instanceof Dn)return"RepetitionMandatory";if(e instanceof Rn)return"RepetitionMandatoryWithSeparator";throw new Error("Invalid production type encountered")}function TFt(e,t){let r=t.length;for(let a=0;a{"use strict";Xm();ID();g0();o(y0,"buildATNKey");uf=1,lFt=2,Mot=4,Iot=5,Cg=7,cFt=8,uFt=9,hFt=10,fFt=11,Oot=12,H2=class{static{o(this,"AbstractTransition")}constructor(t){this.target=t}isEpsilon(){return!1}},kg=class extends H2{static{o(this,"AtomTransition")}constructor(t,r){super(t),this.tokenType=r}},W2=class extends H2{static{o(this,"EpsilonTransition")}constructor(t){super(t)}isEpsilon(){return!0}},Eg=class extends H2{static{o(this,"RuleTransition")}constructor(t,r,n){super(t),this.rule=r,this.followState=n}isEpsilon(){return!0}};o(Pot,"createATN");o(dFt,"createRuleStartAndStopATNStates");o(Bot,"atom");o(pFt,"repetition");o(mFt,"repetitionSep");o(gFt,"repetitionMandatory");o(yFt,"repetitionMandatorySep");o(vFt,"alternation");o(xFt,"option");o(v0,"block");o(Fot,"plus");o(zot,"star");o(bFt,"optional");o(hf,"defineDecisionState");o(Sg,"makeAlts");o(wFt,"getProdType");o(TFt,"makeBlock");o(VM,"tokenRef");o(kFt,"ruleRef");o(EFt,"buildRuleHandle");o(_i,"epsilon");o(sa,"newState");o(UM,"addTransition");o(CFt,"removeState")});function HM(e,t=!0){return`${t?`a${e.alt}`:""}s${e.state.stateNumber}:${e.stack.map(r=>r.stateNumber.toString()).join("_")}`}var Y2,Ag,Got=R(()=>{"use strict";Xm();Y2={},Ag=class{static{o(this,"ATNConfigSet")}constructor(){this.map={},this.configs=[]}get size(){return this.configs.length}finalize(){this.map={}}add(t){let r=HM(t);r in this.map||(this.map[r]=this.configs.length,this.configs.push(t))}get elements(){return this.configs}get alts(){return Xt(this.configs,t=>t.alt)}get key(){let t="";for(let r in this.map)t+=r+":";return t}};o(HM,"getATNConfigKey")});function SFt(e,t){let r={};return n=>{let i=n.toString(),a=r[i];return a!==void 0||(a={atnStartState:e,decision:t,states:{}},r[i]=a),a}}function Uot(e,t=!0){let r=new Set;for(let n of e){let i=new Set;for(let a of n){if(a===void 0){if(t)break;return!1}let s=[a.tokenTypeIdx].concat(a.categoryMatches);for(let l of s)if(r.has(l)){if(!i.has(l))return!1}else r.add(l),i.add(l)}}return!0}function AFt(e){let t=e.decisionStates.length,r=Array(t);for(let n=0;nHu(i)).join(", "),r=e.production.idx===0?"":e.production.idx,n=`Ambiguous Alternatives Detected: <${e.ambiguityIndices.join(", ")}> in <${NFt(e.production)}${r}> inside <${e.topLevelRule.name}> Rule, +<${t}> may appears as a prefix path in all these alternatives. +`;return n=n+`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES +For Further details.`,n}function NFt(e){if(e instanceof nn)return"SUBRULE";if(e instanceof an)return"OPTION";if(e instanceof wn)return"OR";if(e instanceof Dn)return"AT_LEAST_ONE";if(e instanceof Rn)return"AT_LEAST_ONE_SEP";if(e instanceof bn)return"MANY_SEP";if(e instanceof Lr)return"MANY";if(e instanceof br)return"CONSUME";throw Error("non exhaustive match")}function MFt(e,t,r){let n=ba(t.configs.elements,a=>a.state.transitions),i=Zrt(n.filter(a=>a instanceof kg).map(a=>a.tokenType),a=>a.tokenTypeIdx);return{actualToken:r,possibleTokenTypes:i,tokenPath:e}}function IFt(e,t){return e.edges[t.tokenTypeIdx]}function OFt(e,t,r){let n=new Ag,i=[];for(let s of e.elements){if(r.is(s.alt)===!1)continue;if(s.state.type===Cg){i.push(s);continue}let l=s.state.transitions.length;for(let u=0;u0&&!$Ft(a))for(let s of i)a.add(s);return a}function PFt(e,t){if(e instanceof kg&&D2(t,e.tokenType))return e.target}function BFt(e,t){let r;for(let n of e.elements)if(t.is(n.alt)===!0){if(r===void 0)r=n.alt;else if(r!==n.alt)return}return r}function Wot(e){return{configs:e,edges:{},isAcceptState:!1,prediction:-1}}function Hot(e,t,r,n){return n=Yot(e,n),t.edges[r.tokenTypeIdx]=n,n}function Yot(e,t){if(t===Y2)return t;let r=t.configs.key,n=e.states[r];return n!==void 0?n:(t.configs.finalize(),e.states[r]=t,t)}function FFt(e){let t=new Ag,r=e.transitions.length;for(let n=0;n0){let i=[...e.stack],s={state:i.pop(),alt:e.alt,stack:i};cE(s,t)}else t.add(e);return}r.epsilonOnlyTransitions||t.add(e);let n=r.transitions.length;for(let i=0;i1)return!0;return!1}function WFt(e){for(let t of Array.from(e.values()))if(Object.keys(t).length===1)return!0;return!1}var lE,Vot,q2,qot=R(()=>{"use strict";g0();$ot();Got();VD();PD();Jrt();Xm();nT();NT();BT();YD();o(SFt,"createDFACache");lE=class{static{o(this,"PredicateSet")}constructor(){this.predicates=[]}is(t){return t>=this.predicates.length||this.predicates[t]}set(t,r){this.predicates[t]=r}toString(){let t="",r=this.predicates.length;for(let n=0;nconsole.log(n)}initialize(t){this.atn=Pot(t.rules),this.dfas=AFt(this.atn)}validateAmbiguousAlternationAlternatives(){return[]}validateEmptyOrAlternatives(){return[]}buildLookaheadForAlternation(t){let{prodOccurrence:r,rule:n,hasPredicates:i,dynamicTokensEnabled:a}=t,s=this.dfas,l=this.logging,u=y0(n,"Alternation",r),f=this.atn.decisionMap[u].decision,d=Xt($k({maxLookahead:1,occurrence:r,prodType:"Alternation",rule:n}),p=>Xt(p,m=>m[0]));if(Uot(d,!1)&&!a){let p=qr(d,(m,g,y)=>(Et(g,v=>{v&&(m[v.tokenTypeIdx]=y,Et(v.categoryMatches,x=>{m[x]=y}))}),m),{});return i?function(m){var g;let y=this.LA(1),v=p[y.tokenTypeIdx];if(m!==void 0&&v!==void 0){let x=(g=m[v])===null||g===void 0?void 0:g.GATE;if(x!==void 0&&x.call(this)===!1)return}return v}:function(){let m=this.LA(1);return p[m.tokenTypeIdx]}}else return i?function(p){let m=new lE,g=p===void 0?0:p.length;for(let v=0;vXt(p,m=>m[0]));if(Uot(d)&&d[0][0]&&!a){let p=d[0],m=Wr(p);if(m.length===1&&cr(m[0].categoryMatches)){let y=m[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===y}}else{let g=qr(m,(y,v)=>(v!==void 0&&(y[v.tokenTypeIdx]=!0,Et(v.categoryMatches,x=>{y[x]=!0})),y),{});return function(){let y=this.LA(1);return g[y.tokenTypeIdx]===!0}}}return function(){let p=WM.call(this,s,f,Vot,l);return typeof p=="object"?!1:p===0}}};o(Uot,"isLL1Sequence");o(AFt,"initATNSimulator");o(WM,"adaptivePredict");o(_Ft,"performLookahead");o(LFt,"computeLookaheadTarget");o(DFt,"reportLookaheadAmbiguity");o(RFt,"buildAmbiguityError");o(NFt,"getProductionDslName");o(MFt,"buildAdaptivePredictError");o(IFt,"getExistingTargetState");o(OFt,"computeReachSet");o(PFt,"getReachableTarget");o(BFt,"getUniqueAlt");o(Wot,"newDFAState");o(Hot,"addDFAEdge");o(Yot,"addDFAState");o(FFt,"computeStartState");o(cE,"closure");o(zFt,"getEpsilonTarget");o($Ft,"hasConfigInRuleStopState");o(GFt,"allConfigsInRuleStopStates");o(VFt,"hasConflictTerminatingPrediction");o(UFt,"getConflictingAltSets");o(HFt,"hasConflictingAltSet");o(WFt,"hasStateAssociatedWithOneAlt")});var Xot=R(()=>{"use strict";qot()});var jot,YM,Kot,uE,Xr,Dr,hE,Qot,qM,Zot,Jot,tlt,elt,XM,rlt,nlt,ilt,fE,_g,Lg,jM,Dg,alt,KM,QM,ZM,JM,tI,slt,olt,eI,llt,rI,X2,clt,ult,hlt,flt,dlt,plt,mlt,glt,dE,ylt,vlt,xlt,blt,wlt,Tlt,klt,Elt,Clt,Slt,Alt,pE,_lt,Llt,Dlt,Rlt,Nlt,Mlt,Ilt,Olt,Plt,Blt,Flt,zlt,$lt,nI,iI,Glt,Vlt,Ult,Hlt,Wlt,Ylt,qlt,Xlt,jlt,aI,Ft,sI=R(()=>{"use strict";(function(e){function t(r){return typeof r=="string"}o(t,"is"),e.is=t})(jot||(jot={}));(function(e){function t(r){return typeof r=="string"}o(t,"is"),e.is=t})(YM||(YM={}));(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function t(r){return typeof r=="number"&&e.MIN_VALUE<=r&&r<=e.MAX_VALUE}o(t,"is"),e.is=t})(Kot||(Kot={}));(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function t(r){return typeof r=="number"&&e.MIN_VALUE<=r&&r<=e.MAX_VALUE}o(t,"is"),e.is=t})(uE||(uE={}));(function(e){function t(n,i){return n===Number.MAX_VALUE&&(n=uE.MAX_VALUE),i===Number.MAX_VALUE&&(i=uE.MAX_VALUE),{line:n,character:i}}o(t,"create"),e.create=t;function r(n){let i=n;return Ft.objectLiteral(i)&&Ft.uinteger(i.line)&&Ft.uinteger(i.character)}o(r,"is"),e.is=r})(Xr||(Xr={}));(function(e){function t(n,i,a,s){if(Ft.uinteger(n)&&Ft.uinteger(i)&&Ft.uinteger(a)&&Ft.uinteger(s))return{start:Xr.create(n,i),end:Xr.create(a,s)};if(Xr.is(n)&&Xr.is(i))return{start:n,end:i};throw new Error(`Range#create called with invalid arguments[${n}, ${i}, ${a}, ${s}]`)}o(t,"create"),e.create=t;function r(n){let i=n;return Ft.objectLiteral(i)&&Xr.is(i.start)&&Xr.is(i.end)}o(r,"is"),e.is=r})(Dr||(Dr={}));(function(e){function t(n,i){return{uri:n,range:i}}o(t,"create"),e.create=t;function r(n){let i=n;return Ft.objectLiteral(i)&&Dr.is(i.range)&&(Ft.string(i.uri)||Ft.undefined(i.uri))}o(r,"is"),e.is=r})(hE||(hE={}));(function(e){function t(n,i,a,s){return{targetUri:n,targetRange:i,targetSelectionRange:a,originSelectionRange:s}}o(t,"create"),e.create=t;function r(n){let i=n;return Ft.objectLiteral(i)&&Dr.is(i.targetRange)&&Ft.string(i.targetUri)&&Dr.is(i.targetSelectionRange)&&(Dr.is(i.originSelectionRange)||Ft.undefined(i.originSelectionRange))}o(r,"is"),e.is=r})(Qot||(Qot={}));(function(e){function t(n,i,a,s){return{red:n,green:i,blue:a,alpha:s}}o(t,"create"),e.create=t;function r(n){let i=n;return Ft.objectLiteral(i)&&Ft.numberRange(i.red,0,1)&&Ft.numberRange(i.green,0,1)&&Ft.numberRange(i.blue,0,1)&&Ft.numberRange(i.alpha,0,1)}o(r,"is"),e.is=r})(qM||(qM={}));(function(e){function t(n,i){return{range:n,color:i}}o(t,"create"),e.create=t;function r(n){let i=n;return Ft.objectLiteral(i)&&Dr.is(i.range)&&qM.is(i.color)}o(r,"is"),e.is=r})(Zot||(Zot={}));(function(e){function t(n,i,a){return{label:n,textEdit:i,additionalTextEdits:a}}o(t,"create"),e.create=t;function r(n){let i=n;return Ft.objectLiteral(i)&&Ft.string(i.label)&&(Ft.undefined(i.textEdit)||Lg.is(i))&&(Ft.undefined(i.additionalTextEdits)||Ft.typedArray(i.additionalTextEdits,Lg.is))}o(r,"is"),e.is=r})(Jot||(Jot={}));(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(tlt||(tlt={}));(function(e){function t(n,i,a,s,l,u){let h={startLine:n,endLine:i};return Ft.defined(a)&&(h.startCharacter=a),Ft.defined(s)&&(h.endCharacter=s),Ft.defined(l)&&(h.kind=l),Ft.defined(u)&&(h.collapsedText=u),h}o(t,"create"),e.create=t;function r(n){let i=n;return Ft.objectLiteral(i)&&Ft.uinteger(i.startLine)&&Ft.uinteger(i.startLine)&&(Ft.undefined(i.startCharacter)||Ft.uinteger(i.startCharacter))&&(Ft.undefined(i.endCharacter)||Ft.uinteger(i.endCharacter))&&(Ft.undefined(i.kind)||Ft.string(i.kind))}o(r,"is"),e.is=r})(elt||(elt={}));(function(e){function t(n,i){return{location:n,message:i}}o(t,"create"),e.create=t;function r(n){let i=n;return Ft.defined(i)&&hE.is(i.location)&&Ft.string(i.message)}o(r,"is"),e.is=r})(XM||(XM={}));(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(rlt||(rlt={}));(function(e){e.Unnecessary=1,e.Deprecated=2})(nlt||(nlt={}));(function(e){function t(r){let n=r;return Ft.objectLiteral(n)&&Ft.string(n.href)}o(t,"is"),e.is=t})(ilt||(ilt={}));(function(e){function t(n,i,a,s,l,u){let h={range:n,message:i};return Ft.defined(a)&&(h.severity=a),Ft.defined(s)&&(h.code=s),Ft.defined(l)&&(h.source=l),Ft.defined(u)&&(h.relatedInformation=u),h}o(t,"create"),e.create=t;function r(n){var i;let a=n;return Ft.defined(a)&&Dr.is(a.range)&&Ft.string(a.message)&&(Ft.number(a.severity)||Ft.undefined(a.severity))&&(Ft.integer(a.code)||Ft.string(a.code)||Ft.undefined(a.code))&&(Ft.undefined(a.codeDescription)||Ft.string((i=a.codeDescription)===null||i===void 0?void 0:i.href))&&(Ft.string(a.source)||Ft.undefined(a.source))&&(Ft.undefined(a.relatedInformation)||Ft.typedArray(a.relatedInformation,XM.is))}o(r,"is"),e.is=r})(fE||(fE={}));(function(e){function t(n,i,...a){let s={title:n,command:i};return Ft.defined(a)&&a.length>0&&(s.arguments=a),s}o(t,"create"),e.create=t;function r(n){let i=n;return Ft.defined(i)&&Ft.string(i.title)&&Ft.string(i.command)}o(r,"is"),e.is=r})(_g||(_g={}));(function(e){function t(a,s){return{range:a,newText:s}}o(t,"replace"),e.replace=t;function r(a,s){return{range:{start:a,end:a},newText:s}}o(r,"insert"),e.insert=r;function n(a){return{range:a,newText:""}}o(n,"del"),e.del=n;function i(a){let s=a;return Ft.objectLiteral(s)&&Ft.string(s.newText)&&Dr.is(s.range)}o(i,"is"),e.is=i})(Lg||(Lg={}));(function(e){function t(n,i,a){let s={label:n};return i!==void 0&&(s.needsConfirmation=i),a!==void 0&&(s.description=a),s}o(t,"create"),e.create=t;function r(n){let i=n;return Ft.objectLiteral(i)&&Ft.string(i.label)&&(Ft.boolean(i.needsConfirmation)||i.needsConfirmation===void 0)&&(Ft.string(i.description)||i.description===void 0)}o(r,"is"),e.is=r})(jM||(jM={}));(function(e){function t(r){let n=r;return Ft.string(n)}o(t,"is"),e.is=t})(Dg||(Dg={}));(function(e){function t(a,s,l){return{range:a,newText:s,annotationId:l}}o(t,"replace"),e.replace=t;function r(a,s,l){return{range:{start:a,end:a},newText:s,annotationId:l}}o(r,"insert"),e.insert=r;function n(a,s){return{range:a,newText:"",annotationId:s}}o(n,"del"),e.del=n;function i(a){let s=a;return Lg.is(s)&&(jM.is(s.annotationId)||Dg.is(s.annotationId))}o(i,"is"),e.is=i})(alt||(alt={}));(function(e){function t(n,i){return{textDocument:n,edits:i}}o(t,"create"),e.create=t;function r(n){let i=n;return Ft.defined(i)&&eI.is(i.textDocument)&&Array.isArray(i.edits)}o(r,"is"),e.is=r})(KM||(KM={}));(function(e){function t(n,i,a){let s={kind:"create",uri:n};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(s.options=i),a!==void 0&&(s.annotationId=a),s}o(t,"create"),e.create=t;function r(n){let i=n;return i&&i.kind==="create"&&Ft.string(i.uri)&&(i.options===void 0||(i.options.overwrite===void 0||Ft.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||Ft.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Dg.is(i.annotationId))}o(r,"is"),e.is=r})(QM||(QM={}));(function(e){function t(n,i,a,s){let l={kind:"rename",oldUri:n,newUri:i};return a!==void 0&&(a.overwrite!==void 0||a.ignoreIfExists!==void 0)&&(l.options=a),s!==void 0&&(l.annotationId=s),l}o(t,"create"),e.create=t;function r(n){let i=n;return i&&i.kind==="rename"&&Ft.string(i.oldUri)&&Ft.string(i.newUri)&&(i.options===void 0||(i.options.overwrite===void 0||Ft.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||Ft.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Dg.is(i.annotationId))}o(r,"is"),e.is=r})(ZM||(ZM={}));(function(e){function t(n,i,a){let s={kind:"delete",uri:n};return i!==void 0&&(i.recursive!==void 0||i.ignoreIfNotExists!==void 0)&&(s.options=i),a!==void 0&&(s.annotationId=a),s}o(t,"create"),e.create=t;function r(n){let i=n;return i&&i.kind==="delete"&&Ft.string(i.uri)&&(i.options===void 0||(i.options.recursive===void 0||Ft.boolean(i.options.recursive))&&(i.options.ignoreIfNotExists===void 0||Ft.boolean(i.options.ignoreIfNotExists)))&&(i.annotationId===void 0||Dg.is(i.annotationId))}o(r,"is"),e.is=r})(JM||(JM={}));(function(e){function t(r){let n=r;return n&&(n.changes!==void 0||n.documentChanges!==void 0)&&(n.documentChanges===void 0||n.documentChanges.every(i=>Ft.string(i.kind)?QM.is(i)||ZM.is(i)||JM.is(i):KM.is(i)))}o(t,"is"),e.is=t})(tI||(tI={}));(function(e){function t(n){return{uri:n}}o(t,"create"),e.create=t;function r(n){let i=n;return Ft.defined(i)&&Ft.string(i.uri)}o(r,"is"),e.is=r})(slt||(slt={}));(function(e){function t(n,i){return{uri:n,version:i}}o(t,"create"),e.create=t;function r(n){let i=n;return Ft.defined(i)&&Ft.string(i.uri)&&Ft.integer(i.version)}o(r,"is"),e.is=r})(olt||(olt={}));(function(e){function t(n,i){return{uri:n,version:i}}o(t,"create"),e.create=t;function r(n){let i=n;return Ft.defined(i)&&Ft.string(i.uri)&&(i.version===null||Ft.integer(i.version))}o(r,"is"),e.is=r})(eI||(eI={}));(function(e){function t(n,i,a,s){return{uri:n,languageId:i,version:a,text:s}}o(t,"create"),e.create=t;function r(n){let i=n;return Ft.defined(i)&&Ft.string(i.uri)&&Ft.string(i.languageId)&&Ft.integer(i.version)&&Ft.string(i.text)}o(r,"is"),e.is=r})(llt||(llt={}));(function(e){e.PlainText="plaintext",e.Markdown="markdown";function t(r){let n=r;return n===e.PlainText||n===e.Markdown}o(t,"is"),e.is=t})(rI||(rI={}));(function(e){function t(r){let n=r;return Ft.objectLiteral(r)&&rI.is(n.kind)&&Ft.string(n.value)}o(t,"is"),e.is=t})(X2||(X2={}));(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(clt||(clt={}));(function(e){e.PlainText=1,e.Snippet=2})(ult||(ult={}));(function(e){e.Deprecated=1})(hlt||(hlt={}));(function(e){function t(n,i,a){return{newText:n,insert:i,replace:a}}o(t,"create"),e.create=t;function r(n){let i=n;return i&&Ft.string(i.newText)&&Dr.is(i.insert)&&Dr.is(i.replace)}o(r,"is"),e.is=r})(flt||(flt={}));(function(e){e.asIs=1,e.adjustIndentation=2})(dlt||(dlt={}));(function(e){function t(r){let n=r;return n&&(Ft.string(n.detail)||n.detail===void 0)&&(Ft.string(n.description)||n.description===void 0)}o(t,"is"),e.is=t})(plt||(plt={}));(function(e){function t(r){return{label:r}}o(t,"create"),e.create=t})(mlt||(mlt={}));(function(e){function t(r,n){return{items:r||[],isIncomplete:!!n}}o(t,"create"),e.create=t})(glt||(glt={}));(function(e){function t(n){return n.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}o(t,"fromPlainText"),e.fromPlainText=t;function r(n){let i=n;return Ft.string(i)||Ft.objectLiteral(i)&&Ft.string(i.language)&&Ft.string(i.value)}o(r,"is"),e.is=r})(dE||(dE={}));(function(e){function t(r){let n=r;return!!n&&Ft.objectLiteral(n)&&(X2.is(n.contents)||dE.is(n.contents)||Ft.typedArray(n.contents,dE.is))&&(r.range===void 0||Dr.is(r.range))}o(t,"is"),e.is=t})(ylt||(ylt={}));(function(e){function t(r,n){return n?{label:r,documentation:n}:{label:r}}o(t,"create"),e.create=t})(vlt||(vlt={}));(function(e){function t(r,n,...i){let a={label:r};return Ft.defined(n)&&(a.documentation=n),Ft.defined(i)?a.parameters=i:a.parameters=[],a}o(t,"create"),e.create=t})(xlt||(xlt={}));(function(e){e.Text=1,e.Read=2,e.Write=3})(blt||(blt={}));(function(e){function t(r,n){let i={range:r};return Ft.number(n)&&(i.kind=n),i}o(t,"create"),e.create=t})(wlt||(wlt={}));(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(Tlt||(Tlt={}));(function(e){e.Deprecated=1})(klt||(klt={}));(function(e){function t(r,n,i,a,s){let l={name:r,kind:n,location:{uri:a,range:i}};return s&&(l.containerName=s),l}o(t,"create"),e.create=t})(Elt||(Elt={}));(function(e){function t(r,n,i,a){return a!==void 0?{name:r,kind:n,location:{uri:i,range:a}}:{name:r,kind:n,location:{uri:i}}}o(t,"create"),e.create=t})(Clt||(Clt={}));(function(e){function t(n,i,a,s,l,u){let h={name:n,detail:i,kind:a,range:s,selectionRange:l};return u!==void 0&&(h.children=u),h}o(t,"create"),e.create=t;function r(n){let i=n;return i&&Ft.string(i.name)&&Ft.number(i.kind)&&Dr.is(i.range)&&Dr.is(i.selectionRange)&&(i.detail===void 0||Ft.string(i.detail))&&(i.deprecated===void 0||Ft.boolean(i.deprecated))&&(i.children===void 0||Array.isArray(i.children))&&(i.tags===void 0||Array.isArray(i.tags))}o(r,"is"),e.is=r})(Slt||(Slt={}));(function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"})(Alt||(Alt={}));(function(e){e.Invoked=1,e.Automatic=2})(pE||(pE={}));(function(e){function t(n,i,a){let s={diagnostics:n};return i!=null&&(s.only=i),a!=null&&(s.triggerKind=a),s}o(t,"create"),e.create=t;function r(n){let i=n;return Ft.defined(i)&&Ft.typedArray(i.diagnostics,fE.is)&&(i.only===void 0||Ft.typedArray(i.only,Ft.string))&&(i.triggerKind===void 0||i.triggerKind===pE.Invoked||i.triggerKind===pE.Automatic)}o(r,"is"),e.is=r})(_lt||(_lt={}));(function(e){function t(n,i,a){let s={title:n},l=!0;return typeof i=="string"?(l=!1,s.kind=i):_g.is(i)?s.command=i:s.edit=i,l&&a!==void 0&&(s.kind=a),s}o(t,"create"),e.create=t;function r(n){let i=n;return i&&Ft.string(i.title)&&(i.diagnostics===void 0||Ft.typedArray(i.diagnostics,fE.is))&&(i.kind===void 0||Ft.string(i.kind))&&(i.edit!==void 0||i.command!==void 0)&&(i.command===void 0||_g.is(i.command))&&(i.isPreferred===void 0||Ft.boolean(i.isPreferred))&&(i.edit===void 0||tI.is(i.edit))}o(r,"is"),e.is=r})(Llt||(Llt={}));(function(e){function t(n,i){let a={range:n};return Ft.defined(i)&&(a.data=i),a}o(t,"create"),e.create=t;function r(n){let i=n;return Ft.defined(i)&&Dr.is(i.range)&&(Ft.undefined(i.command)||_g.is(i.command))}o(r,"is"),e.is=r})(Dlt||(Dlt={}));(function(e){function t(n,i){return{tabSize:n,insertSpaces:i}}o(t,"create"),e.create=t;function r(n){let i=n;return Ft.defined(i)&&Ft.uinteger(i.tabSize)&&Ft.boolean(i.insertSpaces)}o(r,"is"),e.is=r})(Rlt||(Rlt={}));(function(e){function t(n,i,a){return{range:n,target:i,data:a}}o(t,"create"),e.create=t;function r(n){let i=n;return Ft.defined(i)&&Dr.is(i.range)&&(Ft.undefined(i.target)||Ft.string(i.target))}o(r,"is"),e.is=r})(Nlt||(Nlt={}));(function(e){function t(n,i){return{range:n,parent:i}}o(t,"create"),e.create=t;function r(n){let i=n;return Ft.objectLiteral(i)&&Dr.is(i.range)&&(i.parent===void 0||e.is(i.parent))}o(r,"is"),e.is=r})(Mlt||(Mlt={}));(function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator"})(Ilt||(Ilt={}));(function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"})(Olt||(Olt={}));(function(e){function t(r){let n=r;return Ft.objectLiteral(n)&&(n.resultId===void 0||typeof n.resultId=="string")&&Array.isArray(n.data)&&(n.data.length===0||typeof n.data[0]=="number")}o(t,"is"),e.is=t})(Plt||(Plt={}));(function(e){function t(n,i){return{range:n,text:i}}o(t,"create"),e.create=t;function r(n){let i=n;return i!=null&&Dr.is(i.range)&&Ft.string(i.text)}o(r,"is"),e.is=r})(Blt||(Blt={}));(function(e){function t(n,i,a){return{range:n,variableName:i,caseSensitiveLookup:a}}o(t,"create"),e.create=t;function r(n){let i=n;return i!=null&&Dr.is(i.range)&&Ft.boolean(i.caseSensitiveLookup)&&(Ft.string(i.variableName)||i.variableName===void 0)}o(r,"is"),e.is=r})(Flt||(Flt={}));(function(e){function t(n,i){return{range:n,expression:i}}o(t,"create"),e.create=t;function r(n){let i=n;return i!=null&&Dr.is(i.range)&&(Ft.string(i.expression)||i.expression===void 0)}o(r,"is"),e.is=r})(zlt||(zlt={}));(function(e){function t(n,i){return{frameId:n,stoppedLocation:i}}o(t,"create"),e.create=t;function r(n){let i=n;return Ft.defined(i)&&Dr.is(n.stoppedLocation)}o(r,"is"),e.is=r})($lt||($lt={}));(function(e){e.Type=1,e.Parameter=2;function t(r){return r===1||r===2}o(t,"is"),e.is=t})(nI||(nI={}));(function(e){function t(n){return{value:n}}o(t,"create"),e.create=t;function r(n){let i=n;return Ft.objectLiteral(i)&&(i.tooltip===void 0||Ft.string(i.tooltip)||X2.is(i.tooltip))&&(i.location===void 0||hE.is(i.location))&&(i.command===void 0||_g.is(i.command))}o(r,"is"),e.is=r})(iI||(iI={}));(function(e){function t(n,i,a){let s={position:n,label:i};return a!==void 0&&(s.kind=a),s}o(t,"create"),e.create=t;function r(n){let i=n;return Ft.objectLiteral(i)&&Xr.is(i.position)&&(Ft.string(i.label)||Ft.typedArray(i.label,iI.is))&&(i.kind===void 0||nI.is(i.kind))&&i.textEdits===void 0||Ft.typedArray(i.textEdits,Lg.is)&&(i.tooltip===void 0||Ft.string(i.tooltip)||X2.is(i.tooltip))&&(i.paddingLeft===void 0||Ft.boolean(i.paddingLeft))&&(i.paddingRight===void 0||Ft.boolean(i.paddingRight))}o(r,"is"),e.is=r})(Glt||(Glt={}));(function(e){function t(r){return{kind:"snippet",value:r}}o(t,"createSnippet"),e.createSnippet=t})(Vlt||(Vlt={}));(function(e){function t(r,n,i,a){return{insertText:r,filterText:n,range:i,command:a}}o(t,"create"),e.create=t})(Ult||(Ult={}));(function(e){function t(r){return{items:r}}o(t,"create"),e.create=t})(Hlt||(Hlt={}));(function(e){e.Invoked=0,e.Automatic=1})(Wlt||(Wlt={}));(function(e){function t(r,n){return{range:r,text:n}}o(t,"create"),e.create=t})(Ylt||(Ylt={}));(function(e){function t(r,n){return{triggerKind:r,selectedCompletionInfo:n}}o(t,"create"),e.create=t})(qlt||(qlt={}));(function(e){function t(r){let n=r;return Ft.objectLiteral(n)&&YM.is(n.uri)&&Ft.string(n.name)}o(t,"is"),e.is=t})(Xlt||(Xlt={}));(function(e){function t(a,s,l,u){return new aI(a,s,l,u)}o(t,"create"),e.create=t;function r(a){let s=a;return!!(Ft.defined(s)&&Ft.string(s.uri)&&(Ft.undefined(s.languageId)||Ft.string(s.languageId))&&Ft.uinteger(s.lineCount)&&Ft.func(s.getText)&&Ft.func(s.positionAt)&&Ft.func(s.offsetAt))}o(r,"is"),e.is=r;function n(a,s){let l=a.getText(),u=i(s,(f,d)=>{let p=f.range.start.line-d.range.start.line;return p===0?f.range.start.character-d.range.start.character:p}),h=l.length;for(let f=u.length-1;f>=0;f--){let d=u[f],p=a.offsetAt(d.range.start),m=a.offsetAt(d.range.end);if(m<=h)l=l.substring(0,p)+d.newText+l.substring(m,l.length);else throw new Error("Overlapping edit");h=p}return l}o(n,"applyEdits"),e.applyEdits=n;function i(a,s){if(a.length<=1)return a;let l=a.length/2|0,u=a.slice(0,l),h=a.slice(l);i(u,s),i(h,s);let f=0,d=0,p=0;for(;f0&&t.push(r.length),this._lineOffsets=t}return this._lineOffsets}positionAt(t){t=Math.max(Math.min(t,this._content.length),0);let r=this.getLineOffsets(),n=0,i=r.length;if(i===0)return Xr.create(0,t);for(;nt?i=s:n=s+1}let a=n-1;return Xr.create(a,t-r[a])}offsetAt(t){let r=this.getLineOffsets();if(t.line>=r.length)return this._content.length;if(t.line<0)return 0;let n=r[t.line],i=t.line+1"u"}o(n,"undefined"),e.undefined=n;function i(m){return m===!0||m===!1}o(i,"boolean"),e.boolean=i;function a(m){return t.call(m)==="[object String]"}o(a,"string"),e.string=a;function s(m){return t.call(m)==="[object Number]"}o(s,"number"),e.number=s;function l(m,g,y){return t.call(m)==="[object Number]"&&g<=m&&m<=y}o(l,"numberRange"),e.numberRange=l;function u(m){return t.call(m)==="[object Number]"&&-2147483648<=m&&m<=2147483647}o(u,"integer"),e.integer=u;function h(m){return t.call(m)==="[object Number]"&&0<=m&&m<=2147483647}o(h,"uinteger"),e.uinteger=h;function f(m){return t.call(m)==="[object Function]"}o(f,"func"),e.func=f;function d(m){return m!==null&&typeof m=="object"}o(d,"objectLiteral"),e.objectLiteral=d;function p(m,g){return Array.isArray(m)&&m.every(g)}o(p,"typedArray"),e.typedArray=p})(Ft||(Ft={}))});var j2,K2,x0,b0,oI,Rg,mE=R(()=>{"use strict";sI();Yo();Pl();j2=class{static{o(this,"CstNodeBuilder")}constructor(){this.nodeStack=[]}get current(){return this.nodeStack[this.nodeStack.length-1]}buildRootNode(t){return this.rootNode=new Rg(t),this.rootNode.root=this.rootNode,this.nodeStack=[this.rootNode],this.rootNode}buildCompositeNode(t){let r=new b0;return r.grammarSource=t,r.root=this.rootNode,this.current.content.push(r),this.nodeStack.push(r),r}buildLeafNode(t,r){let n=new x0(t.startOffset,t.image.length,tg(t),t.tokenType,!1);return n.grammarSource=r,n.root=this.rootNode,this.current.content.push(n),n}removeNode(t){let r=t.container;if(r){let n=r.content.indexOf(t);n>=0&&r.content.splice(n,1)}}construct(t){let r=this.current;typeof t.$type=="string"&&(this.current.astNode=t),t.$cstNode=r;let n=this.nodeStack.pop();n?.content.length===0&&this.removeNode(n)}addHiddenTokens(t){for(let r of t){let n=new x0(r.startOffset,r.image.length,tg(r),r.tokenType,!0);n.root=this.rootNode,this.addHiddenToken(this.rootNode,n)}}addHiddenToken(t,r){let{offset:n,end:i}=r;for(let a=0;al&&i=0;t--){let r=this.content[t];if(!r.hidden)return r}return this.content[this.content.length-1]}},oI=class e extends Array{static{o(this,"CstNodeContainer")}constructor(t){super(),this.parent=t,Object.setPrototypeOf(this,e.prototype)}push(...t){return this.addParents(t),super.push(...t)}unshift(...t){return this.addParents(t),super.unshift(...t)}splice(t,r,...n){return this.addParents(n),super.splice(t,r,...n)}addParents(t){for(let r of t)r.container=this.parent}},Rg=class extends b0{static{o(this,"RootCstNodeImpl")}get text(){return this._text.substring(this.offset,this.end)}get fullText(){return this._text}constructor(t){super(),this._text="",this._text=t??""}}});function lI(e){return e.$type===gE}var gE,Klt,Qlt,Q2,Z2,yE,Ng,J2,YFt,cI,tx=R(()=>{"use strict";g0();Xot();Oc();zl();is();mE();gE=Symbol("Datatype");o(lI,"isDataTypeNode");Klt="\u200B",Qlt=o(e=>e.endsWith(Klt)?e:e+Klt,"withRuleSuffix"),Q2=class{static{o(this,"AbstractLangiumParser")}constructor(t){this._unorderedGroups=new Map,this.lexer=t.parser.Lexer;let r=this.lexer.definition;this.wrapper=new cI(r,Object.assign(Object.assign({},t.parser.ParserConfig),{errorMessageProvider:t.parser.ParserErrorMessageProvider}))}alternatives(t,r){this.wrapper.wrapOr(t,r)}optional(t,r){this.wrapper.wrapOption(t,r)}many(t,r){this.wrapper.wrapMany(t,r)}atLeastOne(t,r){this.wrapper.wrapAtLeastOne(t,r)}isRecording(){return this.wrapper.IS_RECORDING}get unorderedGroups(){return this._unorderedGroups}getRuleStack(){return this.wrapper.RULE_STACK}finalize(){this.wrapper.wrapSelfAnalysis()}},Z2=class extends Q2{static{o(this,"LangiumParser")}get current(){return this.stack[this.stack.length-1]}constructor(t){super(t),this.nodeBuilder=new j2,this.stack=[],this.assignmentMap=new Map,this.linker=t.references.Linker,this.converter=t.parser.ValueConverter,this.astReflection=t.shared.AstReflection}rule(t,r){let n=t.fragment?void 0:k2(t)?gE:l0(t),i=this.wrapper.DEFINE_RULE(Qlt(t.name),this.startImplementation(n,r).bind(this));return t.entry&&(this.mainRule=i),i}parse(t){this.nodeBuilder.buildRootNode(t);let r=this.lexer.tokenize(t);this.wrapper.input=r.tokens;let n=this.mainRule.call(this.wrapper,{});return this.nodeBuilder.addHiddenTokens(r.hidden),this.unorderedGroups.clear(),{value:n,lexerErrors:r.errors,parserErrors:this.wrapper.errors}}startImplementation(t,r){return n=>{if(!this.isRecording()){let a={$type:t};this.stack.push(a),t===gE&&(a.value="")}let i;try{i=r(n)}catch{i=void 0}return!this.isRecording()&&i===void 0&&(i=this.construct()),i}}consume(t,r,n){let i=this.wrapper.wrapConsume(t,r);if(!this.isRecording()&&this.isValidToken(i)){let a=this.nodeBuilder.buildLeafNode(i,n),{assignment:s,isCrossRef:l}=this.getAssignment(n),u=this.current;if(s){let h=Xo(n)?i.image:this.converter.convert(i.image,a);this.assign(s.operator,s.feature,h,a,l)}else if(lI(u)){let h=i.image;Xo(n)||(h=this.converter.convert(h,a).toString()),u.value+=h}}}isValidToken(t){return!t.isInsertedInRecovery&&!isNaN(t.startOffset)&&typeof t.endOffset=="number"&&!isNaN(t.endOffset)}subrule(t,r,n,i){let a;this.isRecording()||(a=this.nodeBuilder.buildCompositeNode(n));let s=this.wrapper.wrapSubrule(t,r,i);!this.isRecording()&&a&&a.length>0&&this.performSubruleAssignment(s,n,a)}performSubruleAssignment(t,r,n){let{assignment:i,isCrossRef:a}=this.getAssignment(r);if(i)this.assign(i.operator,i.feature,t,n,a);else if(!i){let s=this.current;if(lI(s))s.value+=t.toString();else if(typeof t=="object"&&t){let l=t.$type,u=this.assignWithoutOverride(t,s);l&&(u.$type=l);let h=u;this.stack.pop(),this.stack.push(h)}}}action(t,r){if(!this.isRecording()){let n=this.current;if(!n.$cstNode&&r.feature&&r.operator){n=this.construct(!1);let a=n.$cstNode.feature;this.nodeBuilder.buildCompositeNode(a)}let i={$type:t};this.stack.pop(),this.stack.push(i),r.feature&&r.operator&&this.assign(r.operator,r.feature,n,n.$cstNode,!1)}}construct(t=!0){if(this.isRecording())return;let r=this.current;return mk(r),this.nodeBuilder.construct(r),t&&this.stack.pop(),lI(r)?this.converter.convert(r.value,r.$cstNode):(BN(this.astReflection,r),r)}getAssignment(t){if(!this.assignmentMap.has(t)){let r=n0(t,Bl);this.assignmentMap.set(t,{assignment:r,isCrossRef:r?r0(r.terminal):!1})}return this.assignmentMap.get(t)}assign(t,r,n,i,a){let s=this.current,l;switch(a&&typeof n=="string"?l=this.linker.buildReference(s,r,i,n):l=n,t){case"=":{s[r]=l;break}case"?=":{s[r]=!0;break}case"+=":Array.isArray(s[r])||(s[r]=[]),s[r].push(l)}}assignWithoutOverride(t,r){for(let[n,i]of Object.entries(r)){let a=t[n];a===void 0?t[n]=i:Array.isArray(a)&&Array.isArray(i)&&(i.push(...a),t[n]=i)}return t}get definitionErrors(){return this.wrapper.definitionErrors}},yE=class{static{o(this,"AbstractParserErrorMessageProvider")}buildMismatchTokenMessage(t){return Wu.buildMismatchTokenMessage(t)}buildNotAllInputParsedMessage(t){return Wu.buildNotAllInputParsedMessage(t)}buildNoViableAltMessage(t){return Wu.buildNoViableAltMessage(t)}buildEarlyExitMessage(t){return Wu.buildEarlyExitMessage(t)}},Ng=class extends yE{static{o(this,"LangiumParserErrorMessageProvider")}buildMismatchTokenMessage({expected:t,actual:r}){return`Expecting ${t.LABEL?"`"+t.LABEL+"`":t.name.endsWith(":KW")?`keyword '${t.name.substring(0,t.name.length-3)}'`:`token of type '${t.name}'`} but found \`${r.image}\`.`}buildNotAllInputParsedMessage({firstRedundant:t}){return`Expecting end of file but found \`${t.image}\`.`}},J2=class extends Q2{static{o(this,"LangiumCompletionParser")}constructor(){super(...arguments),this.tokens=[],this.elementStack=[],this.lastElementStack=[],this.nextTokenIndex=0,this.stackSize=0}action(){}construct(){}parse(t){this.resetState();let r=this.lexer.tokenize(t);return this.tokens=r.tokens,this.wrapper.input=[...this.tokens],this.mainRule.call(this.wrapper,{}),this.unorderedGroups.clear(),{tokens:this.tokens,elementStack:[...this.lastElementStack],tokenIndex:this.nextTokenIndex}}rule(t,r){let n=this.wrapper.DEFINE_RULE(Qlt(t.name),this.startImplementation(r).bind(this));return t.entry&&(this.mainRule=n),n}resetState(){this.elementStack=[],this.lastElementStack=[],this.nextTokenIndex=0,this.stackSize=0}startImplementation(t){return r=>{let n=this.keepStackSize();try{t(r)}finally{this.resetStackSize(n)}}}removeUnexpectedElements(){this.elementStack.splice(this.stackSize)}keepStackSize(){let t=this.elementStack.length;return this.stackSize=t,t}resetStackSize(t){this.removeUnexpectedElements(),this.stackSize=t}consume(t,r,n){this.wrapper.wrapConsume(t,r),this.isRecording()||(this.lastElementStack=[...this.elementStack,n],this.nextTokenIndex=this.currIdx+1)}subrule(t,r,n,i){this.before(n),this.wrapper.wrapSubrule(t,r,i),this.after(n)}before(t){this.isRecording()||this.elementStack.push(t)}after(t){if(!this.isRecording()){let r=this.elementStack.lastIndexOf(t);r>=0&&this.elementStack.splice(r)}}get currIdx(){return this.wrapper.currIdx}},YFt={recoveryEnabled:!0,nodeLocationTracking:"full",skipValidations:!0,errorMessageProvider:new Ng},cI=class extends U2{static{o(this,"ChevrotainWrapper")}constructor(t,r){let n=r&&"maxLookahead"in r;super(t,Object.assign(Object.assign(Object.assign({},YFt),{lookaheadStrategy:n?new Yu({maxLookahead:r.maxLookahead}):new q2}),r))}get IS_RECORDING(){return this.RECORDING_PHASE}DEFINE_RULE(t,r){return this.RULE(t,r)}wrapSelfAnalysis(){this.performSelfAnalysis()}wrapConsume(t,r){return this.consume(t,r)}wrapSubrule(t,r,n){return this.subrule(t,r,{ARGS:[n]})}wrapOr(t,r){this.or(t,r)}wrapOption(t,r){this.option(t,r)}wrapMany(t,r){this.many(t,r)}wrapAtLeastOne(t,r){this.atLeastOne(t,r)}}});function xE(e,t,r){return qFt({parser:t,tokens:r,rules:new Map,ruleNames:new Map},e),t}function qFt(e,t){let r=w2(t,!1),n=en(t.rules).filter($a).filter(i=>r.has(i));for(let i of n){let a=Object.assign(Object.assign({},e),{consume:1,optional:1,subrule:1,many:1,or:1});a.rules.set(i.name,e.parser.rule(i,w0(a,i.definition)))}}function w0(e,t,r=!1){let n;if(Xo(t))n=tzt(e,t);else if(zu(t))n=XFt(e,t);else if(Bl(t))n=w0(e,t.terminal);else if(r0(t))n=Zlt(e,t);else if(Fl(t))n=jFt(e,t);else if(fk(t))n=QFt(e,t);else if(pk(t))n=ZFt(e,t);else if(lf(t))n=JFt(e,t);else if(yN(t)){let i=e.consume++;n=o(()=>e.parser.consume(i,po,t),"method")}else throw new e0(t.$cstNode,`Unexpected element type: ${t.$type}`);return Jlt(e,r?void 0:vE(t),n,t.cardinality)}function XFt(e,t){let r=l0(t);return()=>e.parser.action(r,t)}function jFt(e,t){let r=t.rule.ref;if($a(r)){let n=e.subrule++,i=t.arguments.length>0?KFt(r,t.arguments):()=>({});return a=>e.parser.subrule(n,tct(e,r),t,i(a))}else if(qo(r)){let n=e.consume++,i=uI(e,r.name);return()=>e.parser.consume(n,i,t)}else if(r)of(r);else throw new e0(t.$cstNode,`Undefined rule type: ${t.$type}`)}function KFt(e,t){let r=t.map(n=>qu(n.value));return n=>{let i={};for(let a=0;at(n)||r(n)}else if(UR(e)){let t=qu(e.left),r=qu(e.right);return n=>t(n)&&r(n)}else if(KR(e)){let t=qu(e.value);return r=>!t(r)}else if(tN(e)){let t=e.parameter.ref.name;return r=>r!==void 0&&r[t]===!0}else if(GR(e)){let t=!!e.true;return()=>t}of(e)}function QFt(e,t){if(t.elements.length===1)return w0(e,t.elements[0]);{let r=[];for(let i of t.elements){let a={ALT:w0(e,i,!0)},s=vE(i);s&&(a.GATE=qu(s)),r.push(a)}let n=e.or++;return i=>e.parser.alternatives(n,r.map(a=>{let s={ALT:o(()=>a.ALT(i),"ALT")},l=a.GATE;return l&&(s.GATE=()=>l(i)),s}))}}function ZFt(e,t){if(t.elements.length===1)return w0(e,t.elements[0]);let r=[];for(let l of t.elements){let u={ALT:w0(e,l,!0)},h=vE(l);h&&(u.GATE=qu(h)),r.push(u)}let n=e.or++,i=o((l,u)=>{let h=u.getRuleStack().join("-");return`uGroup_${l}_${h}`},"idFunc"),a=o(l=>e.parser.alternatives(n,r.map((u,h)=>{let f={ALT:o(()=>!0,"ALT")},d=e.parser;f.ALT=()=>{if(u.ALT(l),!d.isRecording()){let m=i(n,d);d.unorderedGroups.get(m)||d.unorderedGroups.set(m,[]);let g=d.unorderedGroups.get(m);typeof g?.[h]>"u"&&(g[h]=!0)}};let p=u.GATE;return p?f.GATE=()=>p(l):f.GATE=()=>{let m=d.unorderedGroups.get(i(n,d));return!m?.[h]},f})),"alternatives"),s=Jlt(e,vE(t),a,"*");return l=>{s(l),e.parser.isRecording()||e.parser.unorderedGroups.delete(i(n,e.parser))}}function JFt(e,t){let r=t.elements.map(n=>w0(e,n));return n=>r.forEach(i=>i(n))}function vE(e){if(lf(e))return e.guardCondition}function Zlt(e,t,r=t.terminal){if(r)if(Fl(r)&&$a(r.rule.ref)){let n=e.subrule++;return i=>e.parser.subrule(n,tct(e,r.rule.ref),t,i)}else if(Fl(r)&&qo(r.rule.ref)){let n=e.consume++,i=uI(e,r.rule.ref.name);return()=>e.parser.consume(n,i,t)}else if(Xo(r)){let n=e.consume++,i=uI(e,r.value);return()=>e.parser.consume(n,i,t)}else throw new Error("Could not build cross reference parser");else{if(!t.type.ref)throw new Error("Could not resolve reference to type: "+t.type.$refText);let n=wk(t.type.ref),i=n?.terminal;if(!i)throw new Error("Could not find name assignment for type: "+l0(t.type.ref));return Zlt(e,t,i)}}function tzt(e,t){let r=e.consume++,n=e.tokens[t.value];if(!n)throw new Error("Could not find token for keyword: "+t.value);return()=>e.parser.consume(r,n,t)}function Jlt(e,t,r,n){let i=t&&qu(t);if(!n)if(i){let a=e.or++;return s=>e.parser.alternatives(a,[{ALT:o(()=>r(s),"ALT"),GATE:o(()=>i(s),"GATE")},{ALT:oE(),GATE:o(()=>!i(s),"GATE")}])}else return r;if(n==="*"){let a=e.many++;return s=>e.parser.many(a,{DEF:o(()=>r(s),"DEF"),GATE:i?()=>i(s):void 0})}else if(n==="+"){let a=e.many++;if(i){let s=e.or++;return l=>e.parser.alternatives(s,[{ALT:o(()=>e.parser.atLeastOne(a,{DEF:o(()=>r(l),"DEF")}),"ALT"),GATE:o(()=>i(l),"GATE")},{ALT:oE(),GATE:o(()=>!i(l),"GATE")}])}else return s=>e.parser.atLeastOne(a,{DEF:o(()=>r(s),"DEF")})}else if(n==="?"){let a=e.optional++;return s=>e.parser.optional(a,{DEF:o(()=>r(s),"DEF"),GATE:i?()=>i(s):void 0})}else of(n)}function tct(e,t){let r=ezt(e,t),n=e.rules.get(r);if(!n)throw new Error(`Rule "${r}" not found."`);return n}function ezt(e,t){if($a(t))return t.name;if(e.ruleNames.has(t))return e.ruleNames.get(t);{let r=t,n=r.$container,i=t.$type;for(;!$a(n);)(lf(n)||fk(n)||pk(n))&&(i=n.elements.indexOf(r).toString()+":"+i),r=n,n=n.$container;return i=n.name+":"+i,e.ruleNames.set(t,i),i}}function uI(e,t){let r=e.tokens[t];if(!r)throw new Error(`Token "${t}" not found."`);return r}var hI=R(()=>{"use strict";g0();Oc();ak();Ps();zl();o(xE,"createParser");o(qFt,"buildRules");o(w0,"buildElement");o(XFt,"buildAction");o(jFt,"buildRuleCall");o(KFt,"buildRuleCallPredicate");o(qu,"buildPredicate");o(QFt,"buildAlternatives");o(ZFt,"buildUnorderedGroup");o(JFt,"buildGroup");o(vE,"getGuardCondition");o(Zlt,"buildCrossReference");o(tzt,"buildKeyword");o(Jlt,"wrap");o(tct,"getRule");o(ezt,"getRuleName");o(uI,"getToken")});function fI(e){let t=e.Grammar,r=e.parser.Lexer,n=new J2(e);return xE(t,n,r.definition),n.finalize(),n}var dI=R(()=>{"use strict";tx();hI();o(fI,"createCompletionParser")});function pI(e){let t=ect(e);return t.finalize(),t}function ect(e){let t=e.Grammar,r=e.parser.Lexer,n=new Z2(e);return xE(t,n,r.definition)}var mI=R(()=>{"use strict";tx();hI();o(pI,"createLangiumParser");o(ect,"prepareLangiumParser")});var T0,gI=R(()=>{"use strict";g0();Oc();is();zl();ig();Ps();T0=class{static{o(this,"DefaultTokenBuilder")}buildTokens(t,r){let n=en(w2(t,!1)),i=this.buildTerminalTokens(n),a=this.buildKeywordTokens(n,i,r);return i.forEach(s=>{let l=s.PATTERN;typeof l=="object"&&l&&"test"in l&&xk(l)?a.unshift(s):a.push(s)}),a}buildTerminalTokens(t){return t.filter(qo).filter(r=>!r.fragment).map(r=>this.buildTerminalToken(r)).toArray()}buildTerminalToken(t){let r=ag(t),n=this.requiresCustomPattern(r)?this.regexPatternFunction(r):r,i={name:t.name,PATTERN:n,LINE_BREAKS:!0};return t.hidden&&(i.GROUP=xk(r)?li.SKIPPED:"hidden"),i}requiresCustomPattern(t){return t.flags.includes("u")?!0:!!(t.source.includes("?<=")||t.source.includes("?(r.lastIndex=i,r.exec(n))}buildKeywordTokens(t,r,n){return t.filter($a).flatMap(i=>Pc(i).filter(Xo)).distinct(i=>i.value).toArray().sort((i,a)=>a.value.length-i.value.length).map(i=>this.buildKeywordToken(i,r,!!n?.caseInsensitive))}buildKeywordToken(t,r,n){return{name:t.value,PATTERN:this.buildKeywordPattern(t,n),LONGER_ALT:this.findLongerAlt(t,r)}}buildKeywordPattern(t,r){return r?new RegExp(HN(t.value)):t.value}findLongerAlt(t,r){return r.reduce((n,i)=>{let a=i?.PATTERN;return a?.source&&WN("^"+a.source+"$",t.value)&&n.push(i),n},[])}}});var k0,zc,yI=R(()=>{"use strict";Oc();zl();k0=class{static{o(this,"DefaultValueConverter")}convert(t,r){let n=r.grammarSource;if(r0(n)&&(n=XN(n)),Fl(n)){let i=n.rule.ref;if(!i)throw new Error("This cst node was not parsed by a rule.");return this.runConverter(i,t,r)}return t}runConverter(t,r,n){var i;switch(t.name.toUpperCase()){case"INT":return zc.convertInt(r);case"STRING":return zc.convertString(r);case"ID":return zc.convertID(r)}switch((i=rM(t))===null||i===void 0?void 0:i.toLowerCase()){case"number":return zc.convertNumber(r);case"boolean":return zc.convertBoolean(r);case"bigint":return zc.convertBigint(r);case"date":return zc.convertDate(r);default:return r}}};(function(e){function t(h){let f="";for(let d=1;d{"use strict";Object.defineProperty(bI,"__esModule",{value:!0});var vI;function xI(){if(vI===void 0)throw new Error("No runtime abstraction layer installed");return vI}o(xI,"RAL");(function(e){function t(r){if(r===void 0)throw new Error("No runtime abstraction layer provided");vI=r}o(t,"install"),e.install=t})(xI||(xI={}));bI.default=xI});var ict=Ti(Ga=>{"use strict";Object.defineProperty(Ga,"__esModule",{value:!0});Ga.stringArray=Ga.array=Ga.func=Ga.error=Ga.number=Ga.string=Ga.boolean=void 0;function rzt(e){return e===!0||e===!1}o(rzt,"boolean");Ga.boolean=rzt;function rct(e){return typeof e=="string"||e instanceof String}o(rct,"string");Ga.string=rct;function nzt(e){return typeof e=="number"||e instanceof Number}o(nzt,"number");Ga.number=nzt;function izt(e){return e instanceof Error}o(izt,"error");Ga.error=izt;function azt(e){return typeof e=="function"}o(azt,"func");Ga.func=azt;function nct(e){return Array.isArray(e)}o(nct,"array");Ga.array=nct;function szt(e){return nct(e)&&e.every(t=>rct(t))}o(szt,"stringArray");Ga.stringArray=szt});var kI=Ti(Mg=>{"use strict";Object.defineProperty(Mg,"__esModule",{value:!0});Mg.Emitter=Mg.Event=void 0;var ozt=wI(),act;(function(e){let t={dispose(){}};e.None=function(){return t}})(act||(Mg.Event=act={}));var TI=class{static{o(this,"CallbackList")}add(t,r=null,n){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(t),this._contexts.push(r),Array.isArray(n)&&n.push({dispose:o(()=>this.remove(t,r),"dispose")})}remove(t,r=null){if(!this._callbacks)return;let n=!1;for(let i=0,a=this._callbacks.length;i{this._callbacks||(this._callbacks=new TI),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(t,r);let i={dispose:o(()=>{this._callbacks&&(this._callbacks.remove(t,r),i.dispose=e._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))},"dispose")};return Array.isArray(n)&&n.push(i),i}),this._event}fire(t){this._callbacks&&this._callbacks.invoke.call(this._callbacks,t)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}};Mg.Emitter=bE;bE._noop=function(){}});var sct=Ti(Ig=>{"use strict";Object.defineProperty(Ig,"__esModule",{value:!0});Ig.CancellationTokenSource=Ig.CancellationToken=void 0;var lzt=wI(),czt=ict(),EI=kI(),wE;(function(e){e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:EI.Event.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:EI.Event.None});function t(r){let n=r;return n&&(n===e.None||n===e.Cancelled||czt.boolean(n.isCancellationRequested)&&!!n.onCancellationRequested)}o(t,"is"),e.is=t})(wE||(Ig.CancellationToken=wE={}));var uzt=Object.freeze(function(e,t){let r=(0,lzt.default)().timer.setTimeout(e.bind(t),0);return{dispose(){r.dispose()}}}),TE=class{static{o(this,"MutableToken")}constructor(){this._isCancelled=!1}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?uzt:(this._emitter||(this._emitter=new EI.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}},CI=class{static{o(this,"CancellationTokenSource")}get token(){return this._token||(this._token=new TE),this._token}cancel(){this._token?this._token.cancel():this._token=wE.Cancelled}dispose(){this._token?this._token instanceof TE&&this._token.dispose():this._token=wE.None}};Ig.CancellationTokenSource=CI});var kr={};var Ko=R(()=>{"use strict";wr(kr,Qi(sct(),1))});function AI(){return new Promise(e=>{typeof setImmediate>"u"?setTimeout(e,0):setImmediate(e)})}function lct(){return SI=Date.now(),new kr.CancellationTokenSource}function cct(e){oct=e}function ff(e){return e===$c}async function Vi(e){if(e===kr.CancellationToken.None)return;let t=Date.now();if(t-SI>=oct&&(SI=t,await AI()),e.isCancellationRequested)throw $c}var SI,oct,$c,cs,Qo=R(()=>{"use strict";Ko();o(AI,"delayNextTick");SI=0,oct=10;o(lct,"startCancelableOperation");o(cct,"setInterruptionPeriod");$c=Symbol("OperationCancelled");o(ff,"isOperationCancelled");o(Vi,"interruptAndCheck");cs=class{static{o(this,"Deferred")}constructor(){this.promise=new Promise((t,r)=>{this.resolve=n=>(t(n),this),this.reject=n=>(r(n),this)})}}});function _I(e,t){if(e.length<=1)return e;let r=e.length/2|0,n=e.slice(0,r),i=e.slice(r);_I(n,t),_I(i,t);let a=0,s=0,l=0;for(;ar.line||t.line===r.line&&t.character>r.character?{start:r,end:t}:e}function hzt(e){let t=fct(e.range);return t!==e.range?{newText:e.newText,range:t}:e}var kE,Og,dct=R(()=>{"use strict";kE=class e{static{o(this,"FullTextDocument")}constructor(t,r,n,i){this._uri=t,this._languageId=r,this._version=n,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(t){if(t){let r=this.offsetAt(t.start),n=this.offsetAt(t.end);return this._content.substring(r,n)}return this._content}update(t,r){for(let n of t)if(e.isIncremental(n)){let i=fct(n.range),a=this.offsetAt(i.start),s=this.offsetAt(i.end);this._content=this._content.substring(0,a)+n.text+this._content.substring(s,this._content.length);let l=Math.max(i.start.line,0),u=Math.max(i.end.line,0),h=this._lineOffsets,f=uct(n.text,!1,a);if(u-l===f.length)for(let p=0,m=f.length;pt?i=s:n=s+1}let a=n-1;return t=this.ensureBeforeEOL(t,r[a]),{line:a,character:t-r[a]}}offsetAt(t){let r=this.getLineOffsets();if(t.line>=r.length)return this._content.length;if(t.line<0)return 0;let n=r[t.line];if(t.character<=0)return n;let i=t.line+1r&&hct(this._content.charCodeAt(t-1));)t--;return t}get lineCount(){return this.getLineOffsets().length}static isIncremental(t){let r=t;return r!=null&&typeof r.text=="string"&&r.range!==void 0&&(r.rangeLength===void 0||typeof r.rangeLength=="number")}static isFull(t){let r=t;return r!=null&&typeof r.text=="string"&&r.range===void 0&&r.rangeLength===void 0}};(function(e){function t(i,a,s,l){return new kE(i,a,s,l)}o(t,"create"),e.create=t;function r(i,a,s){if(i instanceof kE)return i.update(a,s),i;throw new Error("TextDocument.update: document must be created by TextDocument.create")}o(r,"update"),e.update=r;function n(i,a){let s=i.getText(),l=_I(a.map(hzt),(f,d)=>{let p=f.range.start.line-d.range.start.line;return p===0?f.range.start.character-d.range.start.character:p}),u=0,h=[];for(let f of l){let d=i.offsetAt(f.range.start);if(du&&h.push(s.substring(u,d)),f.newText.length&&h.push(f.newText),u=i.offsetAt(f.range.end)}return h.push(s.substr(u)),h.join("")}o(n,"applyEdits"),e.applyEdits=n})(Og||(Og={}));o(_I,"mergeSort");o(uct,"computeLineOffsets");o(hct,"isEOL");o(fct,"getWellformedRange");o(hzt,"getWellformedEdit")});var pct,zs,Pg,LI=R(()=>{"use strict";(()=>{"use strict";var e={470:i=>{function a(u){if(typeof u!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(u))}o(a,"e");function s(u,h){for(var f,d="",p=0,m=-1,g=0,y=0;y<=u.length;++y){if(y2){var v=d.lastIndexOf("/");if(v!==d.length-1){v===-1?(d="",p=0):p=(d=d.slice(0,v)).length-1-d.lastIndexOf("/"),m=y,g=0;continue}}else if(d.length===2||d.length===1){d="",p=0,m=y,g=0;continue}}h&&(d.length>0?d+="/..":d="..",p=2)}else d.length>0?d+="/"+u.slice(m+1,y):d=u.slice(m+1,y),p=y-m-1;m=y,g=0}else f===46&&g!==-1?++g:g=-1}return d}o(s,"r");var l={resolve:o(function(){for(var u,h="",f=!1,d=arguments.length-1;d>=-1&&!f;d--){var p;d>=0?p=arguments[d]:(u===void 0&&(u=process.cwd()),p=u),a(p),p.length!==0&&(h=p+"/"+h,f=p.charCodeAt(0)===47)}return h=s(h,!f),f?h.length>0?"/"+h:"/":h.length>0?h:"."},"resolve"),normalize:o(function(u){if(a(u),u.length===0)return".";var h=u.charCodeAt(0)===47,f=u.charCodeAt(u.length-1)===47;return(u=s(u,!h)).length!==0||h||(u="."),u.length>0&&f&&(u+="/"),h?"/"+u:u},"normalize"),isAbsolute:o(function(u){return a(u),u.length>0&&u.charCodeAt(0)===47},"isAbsolute"),join:o(function(){if(arguments.length===0)return".";for(var u,h=0;h0&&(u===void 0?u=f:u+="/"+f)}return u===void 0?".":l.normalize(u)},"join"),relative:o(function(u,h){if(a(u),a(h),u===h||(u=l.resolve(u))===(h=l.resolve(h)))return"";for(var f=1;fy){if(h.charCodeAt(m+x)===47)return h.slice(m+x+1);if(x===0)return h.slice(m+x)}else p>y&&(u.charCodeAt(f+x)===47?v=x:x===0&&(v=0));break}var b=u.charCodeAt(f+x);if(b!==h.charCodeAt(m+x))break;b===47&&(v=x)}var w="";for(x=f+v+1;x<=d;++x)x!==d&&u.charCodeAt(x)!==47||(w.length===0?w+="..":w+="/..");return w.length>0?w+h.slice(m+v):(m+=v,h.charCodeAt(m)===47&&++m,h.slice(m))},"relative"),_makeLong:o(function(u){return u},"_makeLong"),dirname:o(function(u){if(a(u),u.length===0)return".";for(var h=u.charCodeAt(0),f=h===47,d=-1,p=!0,m=u.length-1;m>=1;--m)if((h=u.charCodeAt(m))===47){if(!p){d=m;break}}else p=!1;return d===-1?f?"/":".":f&&d===1?"//":u.slice(0,d)},"dirname"),basename:o(function(u,h){if(h!==void 0&&typeof h!="string")throw new TypeError('"ext" argument must be a string');a(u);var f,d=0,p=-1,m=!0;if(h!==void 0&&h.length>0&&h.length<=u.length){if(h.length===u.length&&h===u)return"";var g=h.length-1,y=-1;for(f=u.length-1;f>=0;--f){var v=u.charCodeAt(f);if(v===47){if(!m){d=f+1;break}}else y===-1&&(m=!1,y=f+1),g>=0&&(v===h.charCodeAt(g)?--g==-1&&(p=f):(g=-1,p=y))}return d===p?p=y:p===-1&&(p=u.length),u.slice(d,p)}for(f=u.length-1;f>=0;--f)if(u.charCodeAt(f)===47){if(!m){d=f+1;break}}else p===-1&&(m=!1,p=f+1);return p===-1?"":u.slice(d,p)},"basename"),extname:o(function(u){a(u);for(var h=-1,f=0,d=-1,p=!0,m=0,g=u.length-1;g>=0;--g){var y=u.charCodeAt(g);if(y!==47)d===-1&&(p=!1,d=g+1),y===46?h===-1?h=g:m!==1&&(m=1):h!==-1&&(m=-1);else if(!p){f=g+1;break}}return h===-1||d===-1||m===0||m===1&&h===d-1&&h===f+1?"":u.slice(h,d)},"extname"),format:o(function(u){if(u===null||typeof u!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof u);return function(h,f){var d=f.dir||f.root,p=f.base||(f.name||"")+(f.ext||"");return d?d===f.root?d+p:d+"/"+p:p}(0,u)},"format"),parse:o(function(u){a(u);var h={root:"",dir:"",base:"",ext:"",name:""};if(u.length===0)return h;var f,d=u.charCodeAt(0),p=d===47;p?(h.root="/",f=1):f=0;for(var m=-1,g=0,y=-1,v=!0,x=u.length-1,b=0;x>=f;--x)if((d=u.charCodeAt(x))!==47)y===-1&&(v=!1,y=x+1),d===46?m===-1?m=x:b!==1&&(b=1):m!==-1&&(b=-1);else if(!v){g=x+1;break}return m===-1||y===-1||b===0||b===1&&m===y-1&&m===g+1?y!==-1&&(h.base=h.name=g===0&&p?u.slice(1,y):u.slice(g,y)):(g===0&&p?(h.name=u.slice(1,m),h.base=u.slice(1,y)):(h.name=u.slice(g,m),h.base=u.slice(g,y)),h.ext=u.slice(m,y)),g>0?h.dir=u.slice(0,g-1):p&&(h.dir="/"),h},"parse"),sep:"/",delimiter:":",win32:null,posix:null};l.posix=l,i.exports=l}},t={};function r(i){var a=t[i];if(a!==void 0)return a.exports;var s=t[i]={exports:{}};return e[i](s,s.exports,r),s.exports}o(r,"r"),r.d=(i,a)=>{for(var s in a)r.o(a,s)&&!r.o(i,s)&&Object.defineProperty(i,s,{enumerable:!0,get:a[s]})},r.o=(i,a)=>Object.prototype.hasOwnProperty.call(i,a),r.r=i=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})};var n={};(()=>{let i;r.r(n),r.d(n,{URI:o(()=>p,"URI"),Utils:o(()=>M,"Utils")}),typeof process=="object"?i=process.platform==="win32":typeof navigator=="object"&&(i=navigator.userAgent.indexOf("Windows")>=0);let a=/^\w[\w\d+.-]*$/,s=/^\//,l=/^\/\//;function u(N,k){if(!N.scheme&&k)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${N.authority}", path: "${N.path}", query: "${N.query}", fragment: "${N.fragment}"}`);if(N.scheme&&!a.test(N.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(N.path){if(N.authority){if(!s.test(N.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(l.test(N.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}o(u,"s");let h="",f="/",d=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class p{static{o(this,"f")}static isUri(k){return k instanceof p||!!k&&typeof k.authority=="string"&&typeof k.fragment=="string"&&typeof k.path=="string"&&typeof k.query=="string"&&typeof k.scheme=="string"&&typeof k.fsPath=="string"&&typeof k.with=="function"&&typeof k.toString=="function"}scheme;authority;path;query;fragment;constructor(k,I,C,O,D,P=!1){typeof k=="object"?(this.scheme=k.scheme||h,this.authority=k.authority||h,this.path=k.path||h,this.query=k.query||h,this.fragment=k.fragment||h):(this.scheme=function(F,B){return F||B?F:"file"}(k,P),this.authority=I||h,this.path=function(F,B){switch(F){case"https":case"http":case"file":B?B[0]!==f&&(B=f+B):B=f}return B}(this.scheme,C||h),this.query=O||h,this.fragment=D||h,u(this,P))}get fsPath(){return b(this,!1)}with(k){if(!k)return this;let{scheme:I,authority:C,path:O,query:D,fragment:P}=k;return I===void 0?I=this.scheme:I===null&&(I=h),C===void 0?C=this.authority:C===null&&(C=h),O===void 0?O=this.path:O===null&&(O=h),D===void 0?D=this.query:D===null&&(D=h),P===void 0?P=this.fragment:P===null&&(P=h),I===this.scheme&&C===this.authority&&O===this.path&&D===this.query&&P===this.fragment?this:new g(I,C,O,D,P)}static parse(k,I=!1){let C=d.exec(k);return C?new g(C[2]||h,E(C[4]||h),E(C[5]||h),E(C[7]||h),E(C[9]||h),I):new g(h,h,h,h,h)}static file(k){let I=h;if(i&&(k=k.replace(/\\/g,f)),k[0]===f&&k[1]===f){let C=k.indexOf(f,2);C===-1?(I=k.substring(2),k=f):(I=k.substring(2,C),k=k.substring(C)||f)}return new g("file",I,k,h,h)}static from(k){let I=new g(k.scheme,k.authority,k.path,k.query,k.fragment);return u(I,!0),I}toString(k=!1){return w(this,k)}toJSON(){return this}static revive(k){if(k){if(k instanceof p)return k;{let I=new g(k);return I._formatted=k.external,I._fsPath=k._sep===m?k.fsPath:null,I}}return k}}let m=i?1:void 0;class g extends p{static{o(this,"l")}_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=b(this,!1)),this._fsPath}toString(k=!1){return k?w(this,!0):(this._formatted||(this._formatted=w(this,!1)),this._formatted)}toJSON(){let k={$mid:1};return this._fsPath&&(k.fsPath=this._fsPath,k._sep=m),this._formatted&&(k.external=this._formatted),this.path&&(k.path=this.path),this.scheme&&(k.scheme=this.scheme),this.authority&&(k.authority=this.authority),this.query&&(k.query=this.query),this.fragment&&(k.fragment=this.fragment),k}}let y={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function v(N,k,I){let C,O=-1;for(let D=0;D=97&&P<=122||P>=65&&P<=90||P>=48&&P<=57||P===45||P===46||P===95||P===126||k&&P===47||I&&P===91||I&&P===93||I&&P===58)O!==-1&&(C+=encodeURIComponent(N.substring(O,D)),O=-1),C!==void 0&&(C+=N.charAt(D));else{C===void 0&&(C=N.substr(0,D));let F=y[P];F!==void 0?(O!==-1&&(C+=encodeURIComponent(N.substring(O,D)),O=-1),C+=F):O===-1&&(O=D)}}return O!==-1&&(C+=encodeURIComponent(N.substring(O))),C!==void 0?C:N}o(v,"d");function x(N){let k;for(let I=0;I1&&N.scheme==="file"?`//${N.authority}${N.path}`:N.path.charCodeAt(0)===47&&(N.path.charCodeAt(1)>=65&&N.path.charCodeAt(1)<=90||N.path.charCodeAt(1)>=97&&N.path.charCodeAt(1)<=122)&&N.path.charCodeAt(2)===58?k?N.path.substr(1):N.path[1].toLowerCase()+N.path.substr(2):N.path,i&&(I=I.replace(/\//g,"\\")),I}o(b,"m");function w(N,k){let I=k?x:v,C="",{scheme:O,authority:D,path:P,query:F,fragment:B}=N;if(O&&(C+=O,C+=":"),(D||O==="file")&&(C+=f,C+=f),D){let G=D.indexOf("@");if(G!==-1){let z=D.substr(0,G);D=D.substr(G+1),G=z.lastIndexOf(":"),G===-1?C+=I(z,!1,!1):(C+=I(z.substr(0,G),!1,!1),C+=":",C+=I(z.substr(G+1),!1,!0)),C+="@"}D=D.toLowerCase(),G=D.lastIndexOf(":"),G===-1?C+=I(D,!1,!0):(C+=I(D.substr(0,G),!1,!0),C+=D.substr(G))}if(P){if(P.length>=3&&P.charCodeAt(0)===47&&P.charCodeAt(2)===58){let G=P.charCodeAt(1);G>=65&&G<=90&&(P=`/${String.fromCharCode(G+32)}:${P.substr(3)}`)}else if(P.length>=2&&P.charCodeAt(1)===58){let G=P.charCodeAt(0);G>=65&&G<=90&&(P=`${String.fromCharCode(G+32)}:${P.substr(2)}`)}C+=I(P,!0,!1)}return F&&(C+="?",C+=I(F,!1,!1)),B&&(C+="#",C+=k?B:v(B,!1,!1)),C}o(w,"y");function S(N){try{return decodeURIComponent(N)}catch{return N.length>3?N.substr(0,3)+S(N.substr(3)):N}}o(S,"v");let T=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function E(N){return N.match(T)?N.replace(T,k=>S(k)):N}o(E,"C");var _=r(470);let A=_.posix||_,L="/";var M;(function(N){N.joinPath=function(k,...I){return k.with({path:A.join(k.path,...I)})},N.resolvePath=function(k,...I){let C=k.path,O=!1;C[0]!==L&&(C=L+C,O=!0);let D=A.resolve(C,...I);return O&&D[0]===L&&!k.authority&&(D=D.substring(1)),k.with({path:D})},N.dirname=function(k){if(k.path.length===0||k.path===L)return k;let I=A.dirname(k.path);return I.length===1&&I.charCodeAt(0)===46&&(I=""),k.with({path:I})},N.basename=function(k){return A.basename(k.path)},N.extname=function(k){return A.extname(k.path)}})(M||(M={}))})(),pct=n})();({URI:zs,Utils:Pg}=pct)});var us,Gc=R(()=>{"use strict";LI();(function(e){e.basename=Pg.basename,e.dirname=Pg.dirname,e.extname=Pg.extname,e.joinPath=Pg.joinPath,e.resolvePath=Pg.resolvePath;function t(n,i){return n?.toString()===i?.toString()}o(t,"equals"),e.equals=t;function r(n,i){let a=typeof n=="string"?n:n.path,s=typeof i=="string"?i:i.path,l=a.split("/").filter(p=>p.length>0),u=s.split("/").filter(p=>p.length>0),h=0;for(;h{"use strict";dct();Bg();Ko();Ps();Gc();(function(e){e[e.Changed=0]="Changed",e[e.Parsed=1]="Parsed",e[e.IndexedContent=2]="IndexedContent",e[e.ComputedScopes=3]="ComputedScopes",e[e.Linked=4]="Linked",e[e.IndexedReferences=5]="IndexedReferences",e[e.Validated=6]="Validated"})(Tn||(Tn={}));ex=class{static{o(this,"DefaultLangiumDocumentFactory")}constructor(t){this.serviceRegistry=t.ServiceRegistry,this.textDocuments=t.workspace.TextDocuments,this.fileSystemProvider=t.workspace.FileSystemProvider}async fromUri(t,r=kr.CancellationToken.None){let n=await this.fileSystemProvider.readFile(t);return this.createAsync(t,n,r)}fromTextDocument(t,r,n){return r=r??zs.parse(t.uri),n?this.createAsync(r,t,n):this.create(r,t)}fromString(t,r,n){return n?this.createAsync(r,t,n):this.create(r,t)}fromModel(t,r){return this.create(r,{$model:t})}create(t,r){if(typeof r=="string"){let n=this.parse(t,r);return this.createLangiumDocument(n,t,void 0,r)}else if("$model"in r){let n={value:r.$model,parserErrors:[],lexerErrors:[]};return this.createLangiumDocument(n,t)}else{let n=this.parse(t,r.getText());return this.createLangiumDocument(n,t,r)}}async createAsync(t,r,n){if(typeof r=="string"){let i=await this.parseAsync(t,r,n);return this.createLangiumDocument(i,t,void 0,r)}else{let i=await this.parseAsync(t,r.getText(),n);return this.createLangiumDocument(i,t,r)}}createLangiumDocument(t,r,n,i){let a;if(n)a={parseResult:t,uri:r,state:Tn.Parsed,references:[],textDocument:n};else{let s=this.createTextDocumentGetter(r,i);a={parseResult:t,uri:r,state:Tn.Parsed,references:[],get textDocument(){return s()}}}return t.value.$document=a,a}async update(t,r){var n,i;let a=(n=t.parseResult.value.$cstNode)===null||n===void 0?void 0:n.root.fullText,s=(i=this.textDocuments)===null||i===void 0?void 0:i.get(t.uri.toString()),l=s?s.getText():await this.fileSystemProvider.readFile(t.uri);if(s)Object.defineProperty(t,"textDocument",{value:s});else{let u=this.createTextDocumentGetter(t.uri,l);Object.defineProperty(t,"textDocument",{get:u})}return a!==l&&(t.parseResult=await this.parseAsync(t.uri,l,r),t.parseResult.value.$document=t),t.state=Tn.Parsed,t}parse(t,r){return this.serviceRegistry.getServices(t).parser.LangiumParser.parse(r)}parseAsync(t,r,n){return this.serviceRegistry.getServices(t).parser.AsyncParser.parse(r,n)}createTextDocumentGetter(t,r){let n=this.serviceRegistry,i;return()=>i??(i=Og.create(t.toString(),n.getServices(t).LanguageMetaData.languageId,0,r??""))}},rx=class{static{o(this,"DefaultLangiumDocuments")}constructor(t){this.documentMap=new Map,this.langiumDocumentFactory=t.workspace.LangiumDocumentFactory}get all(){return en(this.documentMap.values())}addDocument(t){let r=t.uri.toString();if(this.documentMap.has(r))throw new Error(`A document with the URI '${r}' is already present.`);this.documentMap.set(r,t)}getDocument(t){let r=t.toString();return this.documentMap.get(r)}async getOrCreateDocument(t,r){let n=this.getDocument(t);return n||(n=await this.langiumDocumentFactory.fromUri(t,r),this.addDocument(n),n)}createDocument(t,r,n){if(n)return this.langiumDocumentFactory.fromString(r,t,n).then(i=>(this.addDocument(i),i));{let i=this.langiumDocumentFactory.fromString(r,t);return this.addDocument(i),i}}hasDocument(t){return this.documentMap.has(t.toString())}invalidateDocument(t){let r=t.toString(),n=this.documentMap.get(r);return n&&(n.state=Tn.Changed,n.precomputedScopes=void 0,n.references=[],n.diagnostics=void 0),n}deleteDocument(t){let r=t.toString(),n=this.documentMap.get(r);return n&&(n.state=Tn.Changed,this.documentMap.delete(r)),n}}});var nx,DI=R(()=>{"use strict";Ko();Yo();is();Qo();Bg();nx=class{static{o(this,"DefaultLinker")}constructor(t){this.reflection=t.shared.AstReflection,this.langiumDocuments=()=>t.shared.workspace.LangiumDocuments,this.scopeProvider=t.references.ScopeProvider,this.astNodeLocator=t.workspace.AstNodeLocator}async link(t,r=kr.CancellationToken.None){for(let n of jo(t.parseResult.value))await Vi(r),rg(n).forEach(i=>this.doLink(i,t))}doLink(t,r){let n=t.reference;if(n._ref===void 0)try{let i=this.getCandidate(t);if(Zd(i))n._ref=i;else if(n._nodeDescription=i,this.langiumDocuments().hasDocument(i.documentUri)){let a=this.loadAstNode(i);n._ref=a??this.createLinkingError(t,i)}}catch(i){n._ref=Object.assign(Object.assign({},t),{message:`An error occurred while resolving reference to '${n.$refText}': ${i}`})}r.references.push(n)}unlink(t){for(let r of t.references)delete r._ref,delete r._nodeDescription;t.references=[]}getCandidate(t){let n=this.scopeProvider.getScope(t).getElement(t.reference.$refText);return n??this.createLinkingError(t)}buildReference(t,r,n,i){let a=this,s={$refNode:n,$refText:i,get ref(){var l;if(ri(this._ref))return this._ref;if(LR(this._nodeDescription)){let u=a.loadAstNode(this._nodeDescription);this._ref=u??a.createLinkingError({reference:s,container:t,property:r},this._nodeDescription)}else if(this._ref===void 0){let u=a.getLinkedNode({reference:s,container:t,property:r});if(u.error&&$i(t).state{"use strict";zl();o(mct,"isNamed");ix=class{static{o(this,"DefaultNameProvider")}getName(t){if(mct(t))return t.name}getNameNode(t){return T2(t.$cstNode,"name")}}});var ax,NI=R(()=>{"use strict";zl();Yo();is();Pl();Ps();Gc();ax=class{static{o(this,"DefaultReferences")}constructor(t){this.nameProvider=t.references.NameProvider,this.index=t.shared.workspace.IndexManager,this.nodeLocator=t.workspace.AstNodeLocator}findDeclaration(t){if(t){let r=tM(t),n=t.astNode;if(r&&n){let i=n[r.feature];if(ka(i))return i.ref;if(Array.isArray(i)){for(let a of i)if(ka(a)&&a.$refNode&&a.$refNode.offset<=t.offset&&a.$refNode.end>=t.end)return a.ref}}if(n){let i=this.nameProvider.getNameNode(n);if(i&&(i===t||RR(t,i)))return n}}}findDeclarationNode(t){let r=this.findDeclaration(t);if(r?.$cstNode){let n=this.nameProvider.getNameNode(r);return n??r.$cstNode}}findReferences(t,r){let n=[];if(r.includeDeclaration){let a=this.getReferenceToSelf(t);a&&n.push(a)}let i=this.index.findAllReferences(t,this.nodeLocator.getAstNodePath(t));return r.documentUri&&(i=i.filter(a=>us.equals(a.sourceUri,r.documentUri))),n.push(...i),en(n)}getReferenceToSelf(t){let r=this.nameProvider.getNameNode(t);if(r){let n=$i(t),i=this.nodeLocator.getAstNodePath(t);return{sourceUri:n.uri,sourcePath:i,targetUri:n.uri,targetPath:i,segment:t0(r),local:!0}}}}});var Vc,E0,Fg=R(()=>{"use strict";Ps();Vc=class{static{o(this,"MultiMap")}constructor(t){if(this.map=new Map,t)for(let[r,n]of t)this.add(r,n)}get size(){return Jm.sum(en(this.map.values()).map(t=>t.length))}clear(){this.map.clear()}delete(t,r){if(r===void 0)return this.map.delete(t);{let n=this.map.get(t);if(n){let i=n.indexOf(r);if(i>=0)return n.length===1?this.map.delete(t):n.splice(i,1),!0}return!1}}get(t){var r;return(r=this.map.get(t))!==null&&r!==void 0?r:[]}has(t,r){if(r===void 0)return this.map.has(t);{let n=this.map.get(t);return n?n.indexOf(r)>=0:!1}}add(t,r){return this.map.has(t)?this.map.get(t).push(r):this.map.set(t,[r]),this}addAll(t,r){return this.map.has(t)?this.map.get(t).push(...r):this.map.set(t,Array.from(r)),this}forEach(t){this.map.forEach((r,n)=>r.forEach(i=>t(i,n,this)))}[Symbol.iterator](){return this.entries().iterator()}entries(){return en(this.map.entries()).flatMap(([t,r])=>r.map(n=>[t,n]))}keys(){return en(this.map.keys())}values(){return en(this.map.values()).flat()}entriesGroupedByKey(){return en(this.map.entries())}},E0=class{static{o(this,"BiMap")}get size(){return this.map.size}constructor(t){if(this.map=new Map,this.inverse=new Map,t)for(let[r,n]of t)this.set(r,n)}clear(){this.map.clear(),this.inverse.clear()}set(t,r){return this.map.set(t,r),this.inverse.set(r,t),this}get(t){return this.map.get(t)}getKey(t){return this.inverse.get(t)}delete(t){let r=this.map.get(t);return r!==void 0?(this.map.delete(t),this.inverse.delete(r),!0):!1}}});var sx,MI=R(()=>{"use strict";Ko();is();Fg();Qo();sx=class{static{o(this,"DefaultScopeComputation")}constructor(t){this.nameProvider=t.references.NameProvider,this.descriptions=t.workspace.AstNodeDescriptionProvider}async computeExports(t,r=kr.CancellationToken.None){return this.computeExportsForNode(t.parseResult.value,t,void 0,r)}async computeExportsForNode(t,r,n=g2,i=kr.CancellationToken.None){let a=[];this.exportNode(t,a,r);for(let s of n(t))await Vi(i),this.exportNode(s,a,r);return a}exportNode(t,r,n){let i=this.nameProvider.getName(t);i&&r.push(this.descriptions.createDescription(t,i,n))}async computeLocalScopes(t,r=kr.CancellationToken.None){let n=t.parseResult.value,i=new Vc;for(let a of Pc(n))await Vi(r),this.processNode(a,t,i);return i}processNode(t,r,n){let i=t.$container;if(i){let a=this.nameProvider.getName(t);a&&n.add(i,this.descriptions.createDescription(t,a,r))}}}});var zg,ox,fzt,II=R(()=>{"use strict";Ps();zg=class{static{o(this,"StreamScope")}constructor(t,r,n){var i;this.elements=t,this.outerScope=r,this.caseInsensitive=(i=n?.caseInsensitive)!==null&&i!==void 0?i:!1}getAllElements(){return this.outerScope?this.elements.concat(this.outerScope.getAllElements()):this.elements}getElement(t){let r=this.caseInsensitive?this.elements.find(n=>n.name.toLowerCase()===t.toLowerCase()):this.elements.find(n=>n.name===t);if(r)return r;if(this.outerScope)return this.outerScope.getElement(t)}},ox=class{static{o(this,"MapScope")}constructor(t,r,n){var i;this.elements=new Map,this.caseInsensitive=(i=n?.caseInsensitive)!==null&&i!==void 0?i:!1;for(let a of t){let s=this.caseInsensitive?a.name.toLowerCase():a.name;this.elements.set(s,a)}this.outerScope=r}getElement(t){let r=this.caseInsensitive?t.toLowerCase():t,n=this.elements.get(r);if(n)return n;if(this.outerScope)return this.outerScope.getElement(t)}getAllElements(){let t=en(this.elements.values());return this.outerScope&&(t=t.concat(this.outerScope.getAllElements())),t}},fzt={getElement(){},getAllElements(){return u2}}});var $g,lx,C0,EE,Gg,CE=R(()=>{"use strict";$g=class{static{o(this,"DisposableCache")}constructor(){this.toDispose=[],this.isDisposed=!1}onDispose(t){this.toDispose.push(t)}dispose(){this.throwIfDisposed(),this.clear(),this.isDisposed=!0,this.toDispose.forEach(t=>t.dispose())}throwIfDisposed(){if(this.isDisposed)throw new Error("This cache has already been disposed")}},lx=class extends $g{static{o(this,"SimpleCache")}constructor(){super(...arguments),this.cache=new Map}has(t){return this.throwIfDisposed(),this.cache.has(t)}set(t,r){this.throwIfDisposed(),this.cache.set(t,r)}get(t,r){if(this.throwIfDisposed(),this.cache.has(t))return this.cache.get(t);if(r){let n=r();return this.cache.set(t,n),n}else return}delete(t){return this.throwIfDisposed(),this.cache.delete(t)}clear(){this.throwIfDisposed(),this.cache.clear()}},C0=class extends $g{static{o(this,"ContextCache")}constructor(t){super(),this.cache=new Map,this.converter=t??(r=>r)}has(t,r){return this.throwIfDisposed(),this.cacheForContext(t).has(r)}set(t,r,n){this.throwIfDisposed(),this.cacheForContext(t).set(r,n)}get(t,r,n){this.throwIfDisposed();let i=this.cacheForContext(t);if(i.has(r))return i.get(r);if(n){let a=n();return i.set(r,a),a}else return}delete(t,r){return this.throwIfDisposed(),this.cacheForContext(t).delete(r)}clear(t){if(this.throwIfDisposed(),t){let r=this.converter(t);this.cache.delete(r)}else this.cache.clear()}cacheForContext(t){let r=this.converter(t),n=this.cache.get(r);return n||(n=new Map,this.cache.set(r,n)),n}},EE=class extends C0{static{o(this,"DocumentCache")}constructor(t){super(r=>r.toString()),this.onDispose(t.workspace.DocumentBuilder.onUpdate((r,n)=>{let i=r.concat(n);for(let a of i)this.clear(a)}))}},Gg=class extends lx{static{o(this,"WorkspaceCache")}constructor(t){super(),this.onDispose(t.workspace.DocumentBuilder.onUpdate(()=>{this.clear()}))}}});var cx,OI=R(()=>{"use strict";II();is();Ps();CE();cx=class{static{o(this,"DefaultScopeProvider")}constructor(t){this.reflection=t.shared.AstReflection,this.nameProvider=t.references.NameProvider,this.descriptions=t.workspace.AstNodeDescriptionProvider,this.indexManager=t.shared.workspace.IndexManager,this.globalScopeCache=new Gg(t.shared)}getScope(t){let r=[],n=this.reflection.getReferenceType(t),i=$i(t.container).precomputedScopes;if(i){let s=t.container;do{let l=i.get(s);l.length>0&&r.push(en(l).filter(u=>this.reflection.isSubtype(u.type,n))),s=s.$container}while(s)}let a=this.getGlobalScope(n,t);for(let s=r.length-1;s>=0;s--)a=this.createScope(r[s],a);return a}createScope(t,r,n){return new zg(en(t),r,n)}createScopeForNodes(t,r,n){let i=en(t).map(a=>{let s=this.nameProvider.getName(a);if(s)return this.descriptions.createDescription(a,s)}).nonNullable();return new zg(i,r,n)}getGlobalScope(t,r){return this.globalScopeCache.get(t,()=>new ox(this.indexManager.allElements(t)))}}});function PI(e){return typeof e.$comment=="string"}function gct(e){return typeof e=="object"&&!!e&&("$ref"in e||"$error"in e)}var ux,SE=R(()=>{"use strict";LI();Yo();is();zl();o(PI,"isAstNodeWithComment");o(gct,"isIntermediateReference");ux=class{static{o(this,"DefaultJsonSerializer")}constructor(t){this.ignoreProperties=new Set(["$container","$containerProperty","$containerIndex","$document","$cstNode"]),this.langiumDocuments=t.shared.workspace.LangiumDocuments,this.astNodeLocator=t.workspace.AstNodeLocator,this.nameProvider=t.references.NameProvider,this.commentProvider=t.documentation.CommentProvider}serialize(t,r={}){let n=r?.replacer,i=o((s,l)=>this.replacer(s,l,r),"defaultReplacer"),a=n?(s,l)=>n(s,l,i):i;try{return this.currentDocument=$i(t),JSON.stringify(t,a,r?.space)}finally{this.currentDocument=void 0}}deserialize(t,r={}){let n=JSON.parse(t);return this.linkNode(n,n,r),n}replacer(t,r,{refText:n,sourceText:i,textRegions:a,comments:s,uriConverter:l}){var u,h,f,d;if(!this.ignoreProperties.has(t))if(ka(r)){let p=r.ref,m=n?r.$refText:void 0;if(p){let g=$i(p),y="";this.currentDocument&&this.currentDocument!==g&&(l?y=l(g.uri,r):y=g.uri.toString());let v=this.astNodeLocator.getAstNodePath(p);return{$ref:`${y}#${v}`,$refText:m}}else return{$error:(h=(u=r.error)===null||u===void 0?void 0:u.message)!==null&&h!==void 0?h:"Could not resolve reference",$refText:m}}else if(ri(r)){let p;if(a&&(p=this.addAstNodeRegionWithAssignmentsTo(Object.assign({},r)),(!t||r.$document)&&p?.$textRegion&&(p.$textRegion.documentURI=(f=this.currentDocument)===null||f===void 0?void 0:f.uri.toString())),i&&!t&&(p??(p=Object.assign({},r)),p.$sourceText=(d=r.$cstNode)===null||d===void 0?void 0:d.text),s){p??(p=Object.assign({},r));let m=this.commentProvider.getComment(r);m&&(p.$comment=m.replace(/\r/g,""))}return p??r}else return r}addAstNodeRegionWithAssignmentsTo(t){let r=o(n=>({offset:n.offset,end:n.end,length:n.length,range:n.range}),"createDocumentSegment");if(t.$cstNode){let n=t.$textRegion=r(t.$cstNode),i=n.assignments={};return Object.keys(t).filter(a=>!a.startsWith("$")).forEach(a=>{let s=KN(t.$cstNode,a).map(r);s.length!==0&&(i[a]=s)}),t}}linkNode(t,r,n,i,a,s){for(let[u,h]of Object.entries(t))if(Array.isArray(h))for(let f=0;f{"use strict";Gc();hx=class{static{o(this,"DefaultServiceRegistry")}register(t){if(!this.singleton&&!this.map){this.singleton=t;return}if(!this.map&&(this.map={},this.singleton)){for(let r of this.singleton.LanguageMetaData.fileExtensions)this.map[r]=this.singleton;this.singleton=void 0}for(let r of t.LanguageMetaData.fileExtensions)this.map[r]!==void 0&&this.map[r]!==t&&console.warn(`The file extension ${r} is used by multiple languages. It is now assigned to '${t.LanguageMetaData.languageId}'.`),this.map[r]=t}getServices(t){if(this.singleton!==void 0)return this.singleton;if(this.map===void 0)throw new Error("The service registry is empty. Use `register` to register the services of a language.");let r=us.extname(t),n=this.map[r];if(!n)throw new Error(`The service registry contains no services for the extension '${r}'.`);return n}get all(){return this.singleton!==void 0?[this.singleton]:this.map!==void 0?Object.values(this.map):[]}}});function AE(e){return{code:e}}var Vg,fx,dx=R(()=>{"use strict";Fg();Qo();Ps();o(AE,"diagnosticData");(function(e){e.all=["fast","slow","built-in"]})(Vg||(Vg={}));fx=class{static{o(this,"ValidationRegistry")}constructor(t){this.entries=new Vc,this.reflection=t.shared.AstReflection}register(t,r=this,n="fast"){if(n==="built-in")throw new Error("The 'built-in' category is reserved for lexer, parser, and linker errors.");for(let[i,a]of Object.entries(t)){let s=a;if(Array.isArray(s))for(let l of s){let u={check:this.wrapValidationException(l,r),category:n};this.addEntry(i,u)}else if(typeof s=="function"){let l={check:this.wrapValidationException(s,r),category:n};this.addEntry(i,l)}}}wrapValidationException(t,r){return async(n,i,a)=>{try{await t.call(r,n,i,a)}catch(s){if(ff(s))throw s;console.error("An error occurred during validation:",s);let l=s instanceof Error?s.message:String(s);s instanceof Error&&s.stack&&console.error(s.stack),i("error","An error occurred during validation: "+l,{node:n})}}}addEntry(t,r){if(t==="AstNode"){this.entries.add("AstNode",r);return}for(let n of this.reflection.getAllSubTypes(t))this.entries.add(n,r)}getChecks(t,r){let n=en(this.entries.get(t)).concat(this.entries.get("AstNode"));return r&&(n=n.filter(i=>r.includes(i.category))),n.map(i=>i.check)}}});function yct(e){if(e.range)return e.range;let t;return typeof e.property=="string"?t=T2(e.node.$cstNode,e.property,e.index):typeof e.keyword=="string"&&(t=ZN(e.node.$cstNode,e.keyword,e.index)),t??(t=e.node.$cstNode),t?t.range:{start:{line:0,character:0},end:{line:0,character:0}}}function _E(e){switch(e){case"error":return 1;case"warning":return 2;case"info":return 3;case"hint":return 4;default:throw new Error("Invalid diagnostic severity: "+e)}}var px,Xu,FI=R(()=>{"use strict";Ko();zl();is();Pl();Qo();dx();px=class{static{o(this,"DefaultDocumentValidator")}constructor(t){this.validationRegistry=t.validation.ValidationRegistry,this.metadata=t.LanguageMetaData}async validateDocument(t,r={},n=kr.CancellationToken.None){let i=t.parseResult,a=[];if(await Vi(n),(!r.categories||r.categories.includes("built-in"))&&(this.processLexingErrors(i,a,r),r.stopAfterLexingErrors&&a.some(s=>{var l;return((l=s.data)===null||l===void 0?void 0:l.code)===Xu.LexingError})||(this.processParsingErrors(i,a,r),r.stopAfterParsingErrors&&a.some(s=>{var l;return((l=s.data)===null||l===void 0?void 0:l.code)===Xu.ParsingError}))||(this.processLinkingErrors(t,a,r),r.stopAfterLinkingErrors&&a.some(s=>{var l;return((l=s.data)===null||l===void 0?void 0:l.code)===Xu.LinkingError}))))return a;try{a.push(...await this.validateAst(i.value,r,n))}catch(s){if(ff(s))throw s;console.error("An error occurred during validation:",s)}return await Vi(n),a}processLexingErrors(t,r,n){for(let i of t.lexerErrors){let a={severity:_E("error"),range:{start:{line:i.line-1,character:i.column-1},end:{line:i.line-1,character:i.column+i.length-1}},message:i.message,data:AE(Xu.LexingError),source:this.getSource()};r.push(a)}}processParsingErrors(t,r,n){for(let i of t.parserErrors){let a;if(isNaN(i.token.startOffset)){if("previousToken"in i){let s=i.previousToken;if(isNaN(s.startOffset)){let l={line:0,character:0};a={start:l,end:l}}else{let l={line:s.endLine-1,character:s.endColumn};a={start:l,end:l}}}}else a=tg(i.token);if(a){let s={severity:_E("error"),range:a,message:i.message,data:AE(Xu.ParsingError),source:this.getSource()};r.push(s)}}}processLinkingErrors(t,r,n){for(let i of t.references){let a=i.error;if(a){let s={node:a.container,property:a.property,index:a.index,data:{code:Xu.LinkingError,containerType:a.container.$type,property:a.property,refText:a.reference.$refText}};r.push(this.toDiagnostic("error",a.message,s))}}}async validateAst(t,r,n=kr.CancellationToken.None){let i=[],a=o((s,l,u)=>{i.push(this.toDiagnostic(s,l,u))},"acceptor");return await Promise.all(jo(t).map(async s=>{await Vi(n);let l=this.validationRegistry.getChecks(s.$type,r.categories);for(let u of l)await u(s,a,n)})),i}toDiagnostic(t,r,n){return{message:r,range:yct(n),severity:_E(t),code:n.code,codeDescription:n.codeDescription,tags:n.tags,relatedInformation:n.relatedInformation,data:n.data,source:this.getSource()}}getSource(){return this.metadata.languageId}};o(yct,"getDiagnosticRange");o(_E,"toDiagnosticSeverity");(function(e){e.LexingError="lexing-error",e.ParsingError="parsing-error",e.LinkingError="linking-error"})(Xu||(Xu={}))});var mx,gx,zI=R(()=>{"use strict";Ko();Yo();is();Pl();Qo();Gc();mx=class{static{o(this,"DefaultAstNodeDescriptionProvider")}constructor(t){this.astNodeLocator=t.workspace.AstNodeLocator,this.nameProvider=t.references.NameProvider}createDescription(t,r,n=$i(t)){r??(r=this.nameProvider.getName(t));let i=this.astNodeLocator.getAstNodePath(t);if(!r)throw new Error(`Node at path ${i} has no name.`);let a,s=o(()=>{var l;return a??(a=t0((l=this.nameProvider.getNameNode(t))!==null&&l!==void 0?l:t.$cstNode))},"nameSegmentGetter");return{node:t,name:r,get nameSegment(){return s()},selectionSegment:t0(t.$cstNode),type:t.$type,documentUri:n.uri,path:i}}},gx=class{static{o(this,"DefaultReferenceDescriptionProvider")}constructor(t){this.nodeLocator=t.workspace.AstNodeLocator}async createDescriptions(t,r=kr.CancellationToken.None){let n=[],i=t.parseResult.value;for(let a of jo(i))await Vi(r),rg(a).filter(s=>!Zd(s)).forEach(s=>{let l=this.createDescription(s);l&&n.push(l)});return n}createDescription(t){let r=t.reference.$nodeDescription,n=t.reference.$refNode;if(!r||!n)return;let i=$i(t.container).uri;return{sourceUri:i,sourcePath:this.nodeLocator.getAstNodePath(t.container),targetUri:r.documentUri,targetPath:r.path,segment:t0(n),local:us.equals(r.documentUri,i)}}}});var yx,$I=R(()=>{"use strict";yx=class{static{o(this,"DefaultAstNodeLocator")}constructor(){this.segmentSeparator="/",this.indexSeparator="@"}getAstNodePath(t){if(t.$container){let r=this.getAstNodePath(t.$container),n=this.getPathSegment(t);return r+this.segmentSeparator+n}return""}getPathSegment({$containerProperty:t,$containerIndex:r}){if(!t)throw new Error("Missing '$containerProperty' in AST node.");return r!==void 0?t+this.indexSeparator+r:t}getAstNode(t,r){return r.split(this.segmentSeparator).reduce((i,a)=>{if(!i||a.length===0)return i;let s=a.indexOf(this.indexSeparator);if(s>0){let l=a.substring(0,s),u=parseInt(a.substring(s+1)),h=i[l];return h?.[u]}return i[a]},t)}}});var vx,GI=R(()=>{"use strict";Qo();vx=class{static{o(this,"DefaultConfigurationProvider")}constructor(t){this._ready=new cs,this.settings={},this.workspaceConfig=!1,this.serviceRegistry=t.ServiceRegistry}get ready(){return this._ready.promise}initialize(t){var r,n;this.workspaceConfig=(n=(r=t.capabilities.workspace)===null||r===void 0?void 0:r.configuration)!==null&&n!==void 0?n:!1}async initialized(t){if(this.workspaceConfig){if(t.register){let r=this.serviceRegistry.all;t.register({section:r.map(n=>this.toSectionName(n.LanguageMetaData.languageId))})}if(t.fetchConfiguration){let r=this.serviceRegistry.all.map(i=>({section:this.toSectionName(i.LanguageMetaData.languageId)})),n=await t.fetchConfiguration(r);r.forEach((i,a)=>{this.updateSectionConfiguration(i.section,n[a])})}}this._ready.resolve()}updateConfiguration(t){t.settings&&Object.keys(t.settings).forEach(r=>{this.updateSectionConfiguration(r,t.settings[r])})}updateSectionConfiguration(t,r){this.settings[t]=r}async getConfiguration(t,r){await this.ready;let n=this.toSectionName(t);if(this.settings[n])return this.settings[n][r]}toSectionName(t){return`${t}`}}});var S0,VI=R(()=>{"use strict";(function(e){function t(r){return{dispose:o(async()=>await r(),"dispose")}}o(t,"create"),e.create=t})(S0||(S0={}))});var xx,UI=R(()=>{"use strict";Ko();VI();Fg();Qo();Ps();dx();Bg();xx=class{static{o(this,"DefaultDocumentBuilder")}constructor(t){this.updateBuildOptions={validation:{categories:["built-in","fast"]}},this.updateListeners=[],this.buildPhaseListeners=new Vc,this.buildState=new Map,this.documentBuildWaiters=new Map,this.currentState=Tn.Changed,this.langiumDocuments=t.workspace.LangiumDocuments,this.langiumDocumentFactory=t.workspace.LangiumDocumentFactory,this.indexManager=t.workspace.IndexManager,this.serviceRegistry=t.ServiceRegistry}async build(t,r={},n=kr.CancellationToken.None){var i,a;for(let s of t){let l=s.uri.toString();if(s.state===Tn.Validated){if(typeof r.validation=="boolean"&&r.validation)s.state=Tn.IndexedReferences,s.diagnostics=void 0,this.buildState.delete(l);else if(typeof r.validation=="object"){let u=this.buildState.get(l),h=(i=u?.result)===null||i===void 0?void 0:i.validationChecks;if(h){let d=((a=r.validation.categories)!==null&&a!==void 0?a:Vg.all).filter(p=>!h.includes(p));d.length>0&&(this.buildState.set(l,{completed:!1,options:{validation:Object.assign(Object.assign({},r.validation),{categories:d})},result:u.result}),s.state=Tn.IndexedReferences)}}}else this.buildState.delete(l)}this.currentState=Tn.Changed,await this.emitUpdate(t.map(s=>s.uri),[]),await this.buildDocuments(t,r,n)}async update(t,r,n=kr.CancellationToken.None){this.currentState=Tn.Changed;for(let s of r)this.langiumDocuments.deleteDocument(s),this.buildState.delete(s.toString()),this.indexManager.remove(s);for(let s of t){if(!this.langiumDocuments.invalidateDocument(s)){let u=this.langiumDocumentFactory.fromModel({$type:"INVALID"},s);u.state=Tn.Changed,this.langiumDocuments.addDocument(u)}this.buildState.delete(s.toString())}let i=en(t).concat(r).map(s=>s.toString()).toSet();this.langiumDocuments.all.filter(s=>!i.has(s.uri.toString())&&this.shouldRelink(s,i)).forEach(s=>{this.serviceRegistry.getServices(s.uri).references.Linker.unlink(s),s.state=Math.min(s.state,Tn.ComputedScopes),s.diagnostics=void 0}),await this.emitUpdate(t,r),await Vi(n);let a=this.langiumDocuments.all.filter(s=>{var l;return s.staten(t,r)))}shouldRelink(t,r){return t.references.some(n=>n.error!==void 0)?!0:this.indexManager.isAffected(t,r)}onUpdate(t){return this.updateListeners.push(t),S0.create(()=>{let r=this.updateListeners.indexOf(t);r>=0&&this.updateListeners.splice(r,1)})}async buildDocuments(t,r,n){this.prepareBuild(t,r),await this.runCancelable(t,Tn.Parsed,n,a=>this.langiumDocumentFactory.update(a,n)),await this.runCancelable(t,Tn.IndexedContent,n,a=>this.indexManager.updateContent(a,n)),await this.runCancelable(t,Tn.ComputedScopes,n,async a=>{let s=this.serviceRegistry.getServices(a.uri).references.ScopeComputation;a.precomputedScopes=await s.computeLocalScopes(a,n)}),await this.runCancelable(t,Tn.Linked,n,a=>this.serviceRegistry.getServices(a.uri).references.Linker.link(a,n)),await this.runCancelable(t,Tn.IndexedReferences,n,a=>this.indexManager.updateReferences(a,n));let i=t.filter(a=>this.shouldValidate(a));await this.runCancelable(i,Tn.Validated,n,a=>this.validate(a,n));for(let a of t){let s=this.buildState.get(a.uri.toString());s&&(s.completed=!0)}}prepareBuild(t,r){for(let n of t){let i=n.uri.toString(),a=this.buildState.get(i);(!a||a.completed)&&this.buildState.set(i,{completed:!1,options:r,result:a?.result})}}async runCancelable(t,r,n,i){let a=t.filter(s=>s.state{this.buildPhaseListeners.delete(t,r)})}waitUntil(t,r,n){let i;if(r&&"path"in r?i=r:n=r,n??(n=kr.CancellationToken.None),i){let a=this.langiumDocuments.getDocument(i);if(a&&a.state>t)return Promise.resolve(i)}return this.currentState>=t?Promise.resolve(void 0):n.isCancellationRequested?Promise.reject($c):new Promise((a,s)=>{let l=this.onBuildPhase(t,()=>{if(l.dispose(),u.dispose(),i){let h=this.langiumDocuments.getDocument(i);a(h?.uri)}else a(void 0)}),u=n.onCancellationRequested(()=>{l.dispose(),u.dispose(),s($c)})})}async notifyBuildPhase(t,r,n){if(t.length===0)return;let i=this.buildPhaseListeners.get(r);for(let a of i)await Vi(n),await a(t,n)}shouldValidate(t){return!!this.getBuildOptions(t).validation}async validate(t,r){var n,i;let a=this.serviceRegistry.getServices(t.uri).validation.DocumentValidator,s=this.getBuildOptions(t).validation,l=typeof s=="object"?s:void 0,u=await a.validateDocument(t,l,r);t.diagnostics?t.diagnostics.push(...u):t.diagnostics=u;let h=this.buildState.get(t.uri.toString());if(h){(n=h.result)!==null&&n!==void 0||(h.result={});let f=(i=l?.categories)!==null&&i!==void 0?i:Vg.all;h.result.validationChecks?h.result.validationChecks.push(...f):h.result.validationChecks=[...f]}}getBuildOptions(t){var r,n;return(n=(r=this.buildState.get(t.uri.toString()))===null||r===void 0?void 0:r.options)!==null&&n!==void 0?n:{}}}});var bx,HI=R(()=>{"use strict";is();CE();Ko();Ps();Gc();bx=class{static{o(this,"DefaultIndexManager")}constructor(t){this.symbolIndex=new Map,this.symbolByTypeIndex=new C0,this.referenceIndex=new Map,this.documents=t.workspace.LangiumDocuments,this.serviceRegistry=t.ServiceRegistry,this.astReflection=t.AstReflection}findAllReferences(t,r){let n=$i(t).uri,i=[];return this.referenceIndex.forEach(a=>{a.forEach(s=>{us.equals(s.targetUri,n)&&s.targetPath===r&&i.push(s)})}),en(i)}allElements(t,r){let n=en(this.symbolIndex.keys());return r&&(n=n.filter(i=>!r||r.has(i))),n.map(i=>this.getFileDescriptions(i,t)).flat()}getFileDescriptions(t,r){var n;return r?this.symbolByTypeIndex.get(t,r,()=>{var a;return((a=this.symbolIndex.get(t))!==null&&a!==void 0?a:[]).filter(l=>this.astReflection.isSubtype(l.type,r))}):(n=this.symbolIndex.get(t))!==null&&n!==void 0?n:[]}remove(t){let r=t.toString();this.symbolIndex.delete(r),this.symbolByTypeIndex.clear(r),this.referenceIndex.delete(r)}async updateContent(t,r=kr.CancellationToken.None){let i=await this.serviceRegistry.getServices(t.uri).references.ScopeComputation.computeExports(t,r),a=t.uri.toString();this.symbolIndex.set(a,i),this.symbolByTypeIndex.clear(a)}async updateReferences(t,r=kr.CancellationToken.None){let i=await this.serviceRegistry.getServices(t.uri).workspace.ReferenceDescriptionProvider.createDescriptions(t,r);this.referenceIndex.set(t.uri.toString(),i)}isAffected(t,r){let n=this.referenceIndex.get(t.uri.toString());return n?n.some(i=>!i.local&&r.has(i.targetUri.toString())):!1}}});var wx,WI=R(()=>{"use strict";Ko();Qo();Gc();wx=class{static{o(this,"DefaultWorkspaceManager")}constructor(t){this.initialBuildOptions={},this._ready=new cs,this.serviceRegistry=t.ServiceRegistry,this.langiumDocuments=t.workspace.LangiumDocuments,this.documentBuilder=t.workspace.DocumentBuilder,this.fileSystemProvider=t.workspace.FileSystemProvider,this.mutex=t.workspace.WorkspaceLock}get ready(){return this._ready.promise}initialize(t){var r;this.folders=(r=t.workspaceFolders)!==null&&r!==void 0?r:void 0}initialized(t){return this.mutex.write(r=>{var n;return this.initializeWorkspace((n=this.folders)!==null&&n!==void 0?n:[],r)})}async initializeWorkspace(t,r=kr.CancellationToken.None){let n=await this.performStartup(t);await Vi(r),await this.documentBuilder.build(n,this.initialBuildOptions,r)}async performStartup(t){let r=this.serviceRegistry.all.flatMap(a=>a.LanguageMetaData.fileExtensions),n=[],i=o(a=>{n.push(a),this.langiumDocuments.hasDocument(a.uri)||this.langiumDocuments.addDocument(a)},"collector");return await this.loadAdditionalDocuments(t,i),await Promise.all(t.map(a=>[a,this.getRootFolder(a)]).map(async a=>this.traverseFolder(...a,r,i))),this._ready.resolve(),n}loadAdditionalDocuments(t,r){return Promise.resolve()}getRootFolder(t){return zs.parse(t.uri)}async traverseFolder(t,r,n,i){let a=await this.fileSystemProvider.readDirectory(r);await Promise.all(a.map(async s=>{if(this.includeEntry(t,s,n)){if(s.isDirectory)await this.traverseFolder(t,s.uri,n,i);else if(s.isFile){let l=await this.langiumDocuments.getOrCreateDocument(s.uri);i(l)}}}))}includeEntry(t,r,n){let i=us.basename(r.uri);if(i.startsWith("."))return!1;if(r.isDirectory)return i!=="node_modules"&&i!=="out";if(r.isFile){let a=us.extname(r.uri);return n.includes(a)}return!1}}});function vct(e){return Array.isArray(e)&&(e.length===0||"name"in e[0])}function qI(e){return e&&"modes"in e&&"defaultMode"in e}function YI(e){return!vct(e)&&!qI(e)}var Tx,XI=R(()=>{"use strict";g0();Tx=class{static{o(this,"DefaultLexer")}constructor(t){let r=t.parser.TokenBuilder.buildTokens(t.Grammar,{caseInsensitive:t.LanguageMetaData.caseInsensitive});this.tokenTypes=this.toTokenTypeDictionary(r);let n=YI(r)?Object.values(r):r;this.chevrotainLexer=new li(n,{positionTracking:"full"})}get definition(){return this.tokenTypes}tokenize(t){var r;let n=this.chevrotainLexer.tokenize(t);return{tokens:n.tokens,errors:n.errors,hidden:(r=n.groups.hidden)!==null&&r!==void 0?r:[]}}toTokenTypeDictionary(t){if(YI(t))return t;let r=qI(t)?Object.values(t.modes).flat():t,n={};return r.forEach(i=>n[i.name]=i),n}};o(vct,"isTokenTypeArray");o(qI,"isIMultiModeLexerDefinition");o(YI,"isTokenTypeDictionary")});function QI(e,t,r){let n,i;typeof e=="string"?(i=t,n=r):(i=e.range.start,n=t),i||(i=Xr.create(0,0));let a=wct(e),s=JI(n),l=pzt({lines:a,position:i,options:s});return xzt({index:0,tokens:l,position:i})}function ZI(e,t){let r=JI(t),n=wct(e);if(n.length===0)return!1;let i=n[0],a=n[n.length-1],s=r.start,l=r.end;return!!s?.exec(i)&&!!l?.exec(a)}function wct(e){let t="";return typeof e=="string"?t=e:t=e.text,t.split(VN)}function pzt(e){var t,r,n;let i=[],a=e.position.line,s=e.position.character;for(let l=0;l=f.length){if(i.length>0){let m=Xr.create(a,s);i.push({type:"break",content:"",range:Dr.create(m,m)})}}else{xct.lastIndex=d;let m=xct.exec(f);if(m){let g=m[0],y=m[1],v=Xr.create(a,s+d),x=Xr.create(a,s+d+g.length);i.push({type:"tag",content:y,range:Dr.create(v,x)}),d+=g.length,d=KI(f,d)}if(d0&&i[i.length-1].type==="break"?i.slice(0,-1):i}function mzt(e,t,r,n){let i=[];if(e.length===0){let a=Xr.create(r,n),s=Xr.create(r,n+t.length);i.push({type:"text",content:t,range:Dr.create(a,s)})}else{let a=0;for(let l of e){let u=l.index,h=t.substring(a,u);h.length>0&&i.push({type:"text",content:t.substring(a,u),range:Dr.create(Xr.create(r,a+n),Xr.create(r,u+n))});let f=h.length+1,d=l[1];if(i.push({type:"inline-tag",content:d,range:Dr.create(Xr.create(r,a+f+n),Xr.create(r,a+f+d.length+n))}),f+=d.length,l.length===4){f+=l[2].length;let p=l[3];i.push({type:"text",content:p,range:Dr.create(Xr.create(r,a+f+n),Xr.create(r,a+f+p.length+n))})}else i.push({type:"text",content:"",range:Dr.create(Xr.create(r,a+f+n),Xr.create(r,a+f+n))});a=u+l[0].length}let s=t.substring(a);s.length>0&&i.push({type:"text",content:s,range:Dr.create(Xr.create(r,a+n),Xr.create(r,a+n+s.length))})}return i}function KI(e,t){let r=e.substring(t).match(gzt);return r?t+r.index:e.length}function vzt(e){let t=e.match(yzt);if(t&&typeof t.index=="number")return t.index}function xzt(e){var t,r,n,i;let a=Xr.create(e.position.line,e.position.character);if(e.tokens.length===0)return new LE([],Dr.create(a,a));let s=[];for(;e.index0){let u=KI(t,a);s=t.substring(u),t=t.substring(0,a)}return(e==="linkcode"||e==="link"&&r.link==="code")&&(s=`\`${s}\``),(i=(n=r.renderLink)===null||n===void 0?void 0:n.call(r,t,s))!==null&&i!==void 0?i:Ezt(t,s)}}function Ezt(e,t){try{return zs.parse(e,!0),`[${t}](${e})`}catch{return e}}function bct(e){return e.endsWith(` +`)?` +`:` + +`}var xct,dzt,gzt,yzt,LE,kx,Ex,DE,tO=R(()=>{"use strict";sI();ig();Gc();o(QI,"parseJSDoc");o(ZI,"isJSDoc");o(wct,"getLines");xct=/\s*(@([\p{L}][\p{L}\p{N}]*)?)/uy,dzt=/\{(@[\p{L}][\p{L}\p{N}]*)(\s*)([^\r\n}]+)?\}/gu;o(pzt,"tokenize");o(mzt,"buildInlineTokens");gzt=/\S/,yzt=/\s*$/;o(KI,"skipWhitespace");o(vzt,"lastCharacter");o(xzt,"parseJSDocComment");o(bzt,"parseJSDocElement");o(wzt,"appendEmptyLine");o(Tct,"parseJSDocText");o(Tzt,"parseJSDocInline");o(kct,"parseJSDocTag");o(Ect,"parseJSDocLine");o(JI,"normalizeOptions");o(jI,"normalizeOption");LE=class{static{o(this,"JSDocCommentImpl")}constructor(t,r){this.elements=t,this.range=r}getTag(t){return this.getAllTags().find(r=>r.name===t)}getTags(t){return this.getAllTags().filter(r=>r.name===t)}getAllTags(){return this.elements.filter(t=>"name"in t)}toString(){let t="";for(let r of this.elements)if(t.length===0)t=r.toString();else{let n=r.toString();t+=bct(t)+n}return t.trim()}toMarkdown(t){let r="";for(let n of this.elements)if(r.length===0)r=n.toMarkdown(t);else{let i=n.toMarkdown(t);r+=bct(r)+i}return r.trim()}},kx=class{static{o(this,"JSDocTagImpl")}constructor(t,r,n,i){this.name=t,this.content=r,this.inline=n,this.range=i}toString(){let t=`@${this.name}`,r=this.content.toString();return this.content.inlines.length===1?t=`${t} ${r}`:this.content.inlines.length>1&&(t=`${t} +${r}`),this.inline?`{${t}}`:t}toMarkdown(t){var r,n;return(n=(r=t?.renderTag)===null||r===void 0?void 0:r.call(t,this))!==null&&n!==void 0?n:this.toMarkdownDefault(t)}toMarkdownDefault(t){let r=this.content.toMarkdown(t);if(this.inline){let a=kzt(this.name,r,t??{});if(typeof a=="string")return a}let n="";t?.tag==="italic"||t?.tag===void 0?n="*":t?.tag==="bold"?n="**":t?.tag==="bold-italic"&&(n="***");let i=`${n}@${this.name}${n}`;return this.content.inlines.length===1?i=`${i} \u2014 ${r}`:this.content.inlines.length>1&&(i=`${i} +${r}`),this.inline?`{${i}}`:i}};o(kzt,"renderInlineTag");o(Ezt,"renderLinkDefault");Ex=class{static{o(this,"JSDocTextImpl")}constructor(t,r){this.inlines=t,this.range=r}toString(){let t="";for(let r=0;rn.range.start.line&&(t+=` +`)}return t}toMarkdown(t){let r="";for(let n=0;ni.range.start.line&&(r+=` +`)}return r}},DE=class{static{o(this,"JSDocLineImpl")}constructor(t,r){this.text=t,this.range=r}toString(){return this.text}toMarkdown(){return this.text}};o(bct,"fillNewlines")});var Cx,eO=R(()=>{"use strict";is();tO();Cx=class{static{o(this,"JSDocDocumentationProvider")}constructor(t){this.indexManager=t.shared.workspace.IndexManager,this.commentProvider=t.documentation.CommentProvider}getDocumentation(t){let r=this.commentProvider.getComment(t);if(r&&ZI(r))return QI(r).toMarkdown({renderLink:o((i,a)=>this.documentationLinkRenderer(t,i,a),"renderLink"),renderTag:o(i=>this.documentationTagRenderer(t,i),"renderTag")})}documentationLinkRenderer(t,r,n){var i;let a=(i=this.findNameInPrecomputedScopes(t,r))!==null&&i!==void 0?i:this.findNameInGlobalScope(t,r);if(a&&a.nameSegment){let s=a.nameSegment.range.start.line+1,l=a.nameSegment.range.start.character+1,u=a.documentUri.with({fragment:`L${s},${l}`});return`[${n}](${u.toString()})`}else return}documentationTagRenderer(t,r){}findNameInPrecomputedScopes(t,r){let i=$i(t).precomputedScopes;if(!i)return;let a=t;do{let l=i.get(a).find(u=>u.name===r);if(l)return l;a=a.$container}while(a)}findNameInGlobalScope(t,r){return this.indexManager.allElements().find(i=>i.name===r)}}});var Sx,rO=R(()=>{"use strict";SE();Pl();Sx=class{static{o(this,"DefaultCommentProvider")}constructor(t){this.grammarConfig=()=>t.parser.GrammarConfig}getComment(t){var r;return PI(t)?t.$comment:(r=MR(t.$cstNode,this.grammarConfig().multilineCommentRules))===null||r===void 0?void 0:r.text}}});var ci={};var nO=R(()=>{"use strict";wr(ci,Qi(kI(),1))});var Ax,iO,aO,sO=R(()=>{"use strict";Qo();nO();Ax=class{static{o(this,"DefaultAsyncParser")}constructor(t){this.syncParser=t.parser.LangiumParser}parse(t){return Promise.resolve(this.syncParser.parse(t))}},iO=class{static{o(this,"AbstractThreadedAsyncParser")}constructor(t){this.threadCount=8,this.terminationDelay=200,this.workerPool=[],this.queue=[],this.hydrator=t.serializer.Hydrator}initializeWorkers(){for(;this.workerPool.length{if(this.queue.length>0){let r=this.queue.shift();r&&(t.lock(),r.resolve(t))}}),this.workerPool.push(t)}}async parse(t,r){let n=await this.acquireParserWorker(r),i=new cs,a,s=r.onCancellationRequested(()=>{a=setTimeout(()=>{this.terminateWorker(n)},this.terminationDelay)});return n.parse(t).then(l=>{let u=this.hydrator.hydrate(l);i.resolve(u)}).catch(l=>{i.reject(l)}).finally(()=>{s.dispose(),clearTimeout(a)}),i.promise}terminateWorker(t){t.terminate();let r=this.workerPool.indexOf(t);r>=0&&this.workerPool.splice(r,1)}async acquireParserWorker(t){this.initializeWorkers();for(let n of this.workerPool)if(n.ready)return n.lock(),n;let r=new cs;return t.onCancellationRequested(()=>{let n=this.queue.indexOf(r);n>=0&&this.queue.splice(n,1),r.reject($c)}),this.queue.push(r),r.promise}},aO=class{static{o(this,"ParserWorker")}get ready(){return this._ready}get onReady(){return this.onReadyEmitter.event}constructor(t,r,n,i){this.onReadyEmitter=new ci.Emitter,this.deferred=new cs,this._ready=!0,this._parsing=!1,this.sendMessage=t,this._terminate=i,r(a=>{let s=a;this.deferred.resolve(s),this.unlock()}),n(a=>{this.deferred.reject(a),this.unlock()})}terminate(){this.deferred.reject($c),this._terminate()}lock(){this._ready=!1}unlock(){this._parsing=!1,this._ready=!0,this.onReadyEmitter.fire()}parse(t){if(this._parsing)throw new Error("Parser worker is busy");return this._parsing=!0,this.deferred=new cs,this.sendMessage(t),this.deferred.promise}}});var _x,oO=R(()=>{"use strict";Ko();Qo();_x=class{static{o(this,"DefaultWorkspaceLock")}constructor(){this.previousTokenSource=new kr.CancellationTokenSource,this.writeQueue=[],this.readQueue=[],this.done=!0}write(t){this.cancelWrite();let r=new kr.CancellationTokenSource;return this.previousTokenSource=r,this.enqueue(this.writeQueue,t,r.token)}read(t){return this.enqueue(this.readQueue,t)}enqueue(t,r,n){let i=new cs,a={action:r,deferred:i,cancellationToken:n??kr.CancellationToken.None};return t.push(a),this.performNextOperation(),i.promise}async performNextOperation(){if(!this.done)return;let t=[];if(this.writeQueue.length>0)t.push(this.writeQueue.shift());else if(this.readQueue.length>0)t.push(...this.readQueue.splice(0,this.readQueue.length));else return;this.done=!1,await Promise.all(t.map(async({action:r,deferred:n,cancellationToken:i})=>{try{let a=await Promise.resolve().then(()=>r(i));n.resolve(a)}catch(a){ff(a)?n.resolve(void 0):n.reject(a)}})),this.done=!0,this.performNextOperation()}cancelWrite(){this.previousTokenSource.cancel()}}});var Lx,lO=R(()=>{"use strict";mE();Oc();Yo();is();Fg();Pl();Lx=class{static{o(this,"DefaultHydrator")}constructor(t){this.grammarElementIdMap=new E0,this.tokenTypeIdMap=new E0,this.grammar=t.Grammar,this.lexer=t.parser.Lexer,this.linker=t.references.Linker}dehydrate(t){return{lexerErrors:t.lexerErrors.map(r=>Object.assign({},r)),parserErrors:t.parserErrors.map(r=>Object.assign({},r)),value:this.dehydrateAstNode(t.value,this.createDehyrationContext(t.value))}}createDehyrationContext(t){let r=new Map,n=new Map;for(let i of jo(t))r.set(i,{});if(t.$cstNode)for(let i of Jd(t.$cstNode))n.set(i,{});return{astNodes:r,cstNodes:n}}dehydrateAstNode(t,r){let n=r.astNodes.get(t);n.$type=t.$type,n.$containerIndex=t.$containerIndex,n.$containerProperty=t.$containerProperty,t.$cstNode!==void 0&&(n.$cstNode=this.dehydrateCstNode(t.$cstNode,r));for(let[i,a]of Object.entries(t))if(!i.startsWith("$"))if(Array.isArray(a)){let s=[];n[i]=s;for(let l of a)ri(l)?s.push(this.dehydrateAstNode(l,r)):ka(l)?s.push(this.dehydrateReference(l,r)):s.push(l)}else ri(a)?n[i]=this.dehydrateAstNode(a,r):ka(a)?n[i]=this.dehydrateReference(a,r):a!==void 0&&(n[i]=a);return n}dehydrateReference(t,r){let n={};return n.$refText=t.$refText,t.$refNode&&(n.$refNode=r.cstNodes.get(t.$refNode)),n}dehydrateCstNode(t,r){let n=r.cstNodes.get(t);return c2(t)?n.fullText=t.fullText:n.grammarSource=this.getGrammarElementId(t.grammarSource),n.hidden=t.hidden,n.astNode=r.astNodes.get(t.astNode),uo(t)?n.content=t.content.map(i=>this.dehydrateCstNode(i,r)):sf(t)&&(n.tokenType=t.tokenType.name,n.offset=t.offset,n.length=t.length,n.startLine=t.range.start.line,n.startColumn=t.range.start.character,n.endLine=t.range.end.line,n.endColumn=t.range.end.character),n}hydrate(t){let r=t.value,n=this.createHydrationContext(r);return"$cstNode"in r&&this.hydrateCstNode(r.$cstNode,n),{lexerErrors:t.lexerErrors,parserErrors:t.parserErrors,value:this.hydrateAstNode(r,n)}}createHydrationContext(t){let r=new Map,n=new Map;for(let a of jo(t))r.set(a,{});let i;if(t.$cstNode)for(let a of Jd(t.$cstNode)){let s;"fullText"in a?(s=new Rg(a.fullText),i=s):"content"in a?s=new b0:"tokenType"in a&&(s=this.hydrateCstLeafNode(a)),s&&(n.set(a,s),s.root=i)}return{astNodes:r,cstNodes:n}}hydrateAstNode(t,r){let n=r.astNodes.get(t);n.$type=t.$type,n.$containerIndex=t.$containerIndex,n.$containerProperty=t.$containerProperty,t.$cstNode&&(n.$cstNode=r.cstNodes.get(t.$cstNode));for(let[i,a]of Object.entries(t))if(!i.startsWith("$"))if(Array.isArray(a)){let s=[];n[i]=s;for(let l of a)ri(l)?s.push(this.setParent(this.hydrateAstNode(l,r),n)):ka(l)?s.push(this.hydrateReference(l,n,i,r)):s.push(l)}else ri(a)?n[i]=this.setParent(this.hydrateAstNode(a,r),n):ka(a)?n[i]=this.hydrateReference(a,n,i,r):a!==void 0&&(n[i]=a);return n}setParent(t,r){return t.$container=r,t}hydrateReference(t,r,n,i){return this.linker.buildReference(r,n,i.cstNodes.get(t.$refNode),t.$refText)}hydrateCstNode(t,r,n=0){let i=r.cstNodes.get(t);if(typeof t.grammarSource=="number"&&(i.grammarSource=this.getGrammarElement(t.grammarSource)),i.astNode=r.astNodes.get(t.astNode),uo(i))for(let a of t.content){let s=this.hydrateCstNode(a,r,n++);i.content.push(s)}return i}hydrateCstLeafNode(t){let r=this.getTokenType(t.tokenType),n=t.offset,i=t.length,a=t.startLine,s=t.startColumn,l=t.endLine,u=t.endColumn,h=t.hidden;return new x0(n,i,{start:{line:a,character:s},end:{line:l,character:u}},r,h)}getTokenType(t){return this.lexer.definition[t]}getGrammarElementId(t){return this.grammarElementIdMap.size===0&&this.createGrammarElementIdMap(),this.grammarElementIdMap.get(t)}getGrammarElement(t){this.grammarElementIdMap.size===0&&this.createGrammarElementIdMap();let r=this.grammarElementIdMap.getKey(t);if(r)return r;throw new Error("Invalid grammar element id: "+t)}createGrammarElementIdMap(){let t=0;for(let r of jo(this.grammar))d2(r)&&this.grammarElementIdMap.set(r,t++)}}});function mo(e){return{documentation:{CommentProvider:o(t=>new Sx(t),"CommentProvider"),DocumentationProvider:o(t=>new Cx(t),"DocumentationProvider")},parser:{AsyncParser:o(t=>new Ax(t),"AsyncParser"),GrammarConfig:o(t=>iM(t),"GrammarConfig"),LangiumParser:o(t=>pI(t),"LangiumParser"),CompletionParser:o(t=>fI(t),"CompletionParser"),ValueConverter:o(()=>new k0,"ValueConverter"),TokenBuilder:o(()=>new T0,"TokenBuilder"),Lexer:o(t=>new Tx(t),"Lexer"),ParserErrorMessageProvider:o(()=>new Ng,"ParserErrorMessageProvider")},workspace:{AstNodeLocator:o(()=>new yx,"AstNodeLocator"),AstNodeDescriptionProvider:o(t=>new mx(t),"AstNodeDescriptionProvider"),ReferenceDescriptionProvider:o(t=>new gx(t),"ReferenceDescriptionProvider")},references:{Linker:o(t=>new nx(t),"Linker"),NameProvider:o(()=>new ix,"NameProvider"),ScopeProvider:o(t=>new cx(t),"ScopeProvider"),ScopeComputation:o(t=>new sx(t),"ScopeComputation"),References:o(t=>new ax(t),"References")},serializer:{Hydrator:o(t=>new Lx(t),"Hydrator"),JsonSerializer:o(t=>new ux(t),"JsonSerializer")},validation:{DocumentValidator:o(t=>new px(t),"DocumentValidator"),ValidationRegistry:o(t=>new fx(t),"ValidationRegistry")},shared:o(()=>e.shared,"shared")}}function go(e){return{ServiceRegistry:o(()=>new hx,"ServiceRegistry"),workspace:{LangiumDocuments:o(t=>new rx(t),"LangiumDocuments"),LangiumDocumentFactory:o(t=>new ex(t),"LangiumDocumentFactory"),DocumentBuilder:o(t=>new xx(t),"DocumentBuilder"),IndexManager:o(t=>new bx(t),"IndexManager"),WorkspaceManager:o(t=>new wx(t),"WorkspaceManager"),FileSystemProvider:o(t=>e.fileSystemProvider(t),"FileSystemProvider"),WorkspaceLock:o(()=>new _x,"WorkspaceLock"),ConfigurationProvider:o(t=>new vx(t),"ConfigurationProvider")}}}var cO=R(()=>{"use strict";aM();dI();mI();gI();yI();DI();RI();NI();MI();OI();SE();BI();FI();dx();zI();$I();GI();UI();Bg();HI();WI();XI();eO();rO();tx();sO();oO();lO();o(mo,"createDefaultCoreModule");o(go,"createDefaultSharedCoreModule")});function Ui(e,t,r,n,i,a,s,l,u){let h=[e,t,r,n,i,a,s,l,u].reduce(RE,{});return _ct(h)}function Act(e){if(e&&e[hO])for(let t of Object.values(e))Act(t);return e}function _ct(e,t){let r=new Proxy({},{deleteProperty:o(()=>!1,"deleteProperty"),get:o((n,i)=>Sct(n,i,e,t||r),"get"),getOwnPropertyDescriptor:o((n,i)=>(Sct(n,i,e,t||r),Object.getOwnPropertyDescriptor(n,i)),"getOwnPropertyDescriptor"),has:o((n,i)=>i in e,"has"),ownKeys:o(()=>[...Reflect.ownKeys(e),hO],"ownKeys")});return r[hO]=!0,r}function Sct(e,t,r,n){if(t in e){if(e[t]instanceof Error)throw new Error("Construction failure. Please make sure that your dependencies are constructable.",{cause:e[t]});if(e[t]===Cct)throw new Error('Cycle detected. Please make "'+String(t)+'" lazy. See https://langium.org/docs/configuration-services/#resolving-cyclic-dependencies');return e[t]}else if(t in r){let i=r[t];e[t]=Cct;try{e[t]=typeof i=="function"?i(n):_ct(i,n)}catch(a){throw e[t]=a instanceof Error?a:void 0,a}return e[t]}else return}function RE(e,t){if(t){for(let[r,n]of Object.entries(t))if(n!==void 0){let i=e[r];i!==null&&n!==null&&typeof i=="object"&&typeof n=="object"?e[r]=RE(i,n):e[r]=n}}return e}var uO,hO,Cct,fO=R(()=>{"use strict";(function(e){e.merge=(t,r)=>RE(RE({},t),r)})(uO||(uO={}));o(Ui,"inject");hO=Symbol("isProxy");o(Act,"eagerLoad");o(_ct,"_inject");Cct=Symbol();o(Sct,"_resolve");o(RE,"_merge")});var Lct=R(()=>{"use strict"});var Dct=R(()=>{"use strict";rO();eO();tO()});var Rct=R(()=>{"use strict"});var Nct=R(()=>{"use strict";aM();Rct()});var Mct=R(()=>{"use strict"});var Ict=R(()=>{"use strict";sO();dI();mE();mI();tx();XI();Mct();gI();yI()});var Oct=R(()=>{"use strict";DI();RI();NI();II();MI();OI()});var Pct=R(()=>{"use strict";lO();SE()});var NE,yo,dO=R(()=>{"use strict";NE=class{static{o(this,"EmptyFileSystemProvider")}readFile(){throw new Error("No file system is available.")}async readDirectory(){return[]}},yo={fileSystemProvider:o(()=>new NE,"fileSystemProvider")}});function Azt(){let e=Ui(go(yo),Szt),t=Ui(mo({shared:e}),Czt);return e.ServiceRegistry.register(t),t}function df(e){var t;let r=Azt(),n=r.serializer.JsonSerializer.deserialize(e);return r.shared.workspace.LangiumDocumentFactory.fromModel(n,zs.parse(`memory://${(t=n.name)!==null&&t!==void 0?t:"grammar"}.langium`)),n}var Czt,Szt,Bct=R(()=>{"use strict";cO();fO();Oc();dO();Gc();Czt={Grammar:o(()=>{},"Grammar"),LanguageMetaData:o(()=>({caseInsensitive:!1,fileExtensions:[".langium"],languageId:"langium"}),"LanguageMetaData")},Szt={AstReflection:o(()=>new eg,"AstReflection")};o(Azt,"createMinimalGrammarServices");o(df,"loadGrammarFromJson")});var Gr={};xr(Gr,{AstUtils:()=>gk,BiMap:()=>E0,Cancellation:()=>kr,ContextCache:()=>C0,CstUtils:()=>ik,DONE_RESULT:()=>ns,Deferred:()=>cs,Disposable:()=>S0,DisposableCache:()=>$g,DocumentCache:()=>EE,EMPTY_STREAM:()=>u2,ErrorWithLocation:()=>e0,GrammarUtils:()=>Tk,MultiMap:()=>Vc,OperationCancelled:()=>$c,Reduction:()=>Jm,RegExpUtils:()=>bk,SimpleCache:()=>lx,StreamImpl:()=>ho,TreeStreamImpl:()=>Ic,URI:()=>zs,UriUtils:()=>us,WorkspaceCache:()=>Gg,assertUnreachable:()=>of,delayNextTick:()=>AI,interruptAndCheck:()=>Vi,isOperationCancelled:()=>ff,loadGrammarFromJson:()=>df,setInterruptionPeriod:()=>cct,startCancelableOperation:()=>lct,stream:()=>en});var Fct=R(()=>{"use strict";CE();nO();wr(Gr,ci);Fg();VI();ak();Bct();Qo();Ps();Gc();is();Ko();Pl();zl();ig()});var zct=R(()=>{"use strict";FI();dx()});var $ct=R(()=>{"use strict";zI();$I();GI();UI();Bg();dO();HI();oO();WI()});var Ea={};xr(Ea,{AbstractAstReflection:()=>Qd,AbstractCstNode:()=>K2,AbstractLangiumParser:()=>Q2,AbstractParserErrorMessageProvider:()=>yE,AbstractThreadedAsyncParser:()=>iO,AstUtils:()=>gk,BiMap:()=>E0,Cancellation:()=>kr,CompositeCstNodeImpl:()=>b0,ContextCache:()=>C0,CstNodeBuilder:()=>j2,CstUtils:()=>ik,DONE_RESULT:()=>ns,DatatypeSymbol:()=>gE,DefaultAstNodeDescriptionProvider:()=>mx,DefaultAstNodeLocator:()=>yx,DefaultAsyncParser:()=>Ax,DefaultCommentProvider:()=>Sx,DefaultConfigurationProvider:()=>vx,DefaultDocumentBuilder:()=>xx,DefaultDocumentValidator:()=>px,DefaultHydrator:()=>Lx,DefaultIndexManager:()=>bx,DefaultJsonSerializer:()=>ux,DefaultLangiumDocumentFactory:()=>ex,DefaultLangiumDocuments:()=>rx,DefaultLexer:()=>Tx,DefaultLinker:()=>nx,DefaultNameProvider:()=>ix,DefaultReferenceDescriptionProvider:()=>gx,DefaultReferences:()=>ax,DefaultScopeComputation:()=>sx,DefaultScopeProvider:()=>cx,DefaultServiceRegistry:()=>hx,DefaultTokenBuilder:()=>T0,DefaultValueConverter:()=>k0,DefaultWorkspaceLock:()=>_x,DefaultWorkspaceManager:()=>wx,Deferred:()=>cs,Disposable:()=>S0,DisposableCache:()=>$g,DocumentCache:()=>EE,DocumentState:()=>Tn,DocumentValidator:()=>Xu,EMPTY_SCOPE:()=>fzt,EMPTY_STREAM:()=>u2,EmptyFileSystem:()=>yo,EmptyFileSystemProvider:()=>NE,ErrorWithLocation:()=>e0,GrammarAST:()=>m2,GrammarUtils:()=>Tk,JSDocDocumentationProvider:()=>Cx,LangiumCompletionParser:()=>J2,LangiumParser:()=>Z2,LangiumParserErrorMessageProvider:()=>Ng,LeafCstNodeImpl:()=>x0,MapScope:()=>ox,Module:()=>uO,MultiMap:()=>Vc,OperationCancelled:()=>$c,ParserWorker:()=>aO,Reduction:()=>Jm,RegExpUtils:()=>bk,RootCstNodeImpl:()=>Rg,SimpleCache:()=>lx,StreamImpl:()=>ho,StreamScope:()=>zg,TextDocument:()=>Og,TreeStreamImpl:()=>Ic,URI:()=>zs,UriUtils:()=>us,ValidationCategory:()=>Vg,ValidationRegistry:()=>fx,ValueConverter:()=>zc,WorkspaceCache:()=>Gg,assertUnreachable:()=>of,createCompletionParser:()=>fI,createDefaultCoreModule:()=>mo,createDefaultSharedCoreModule:()=>go,createGrammarConfig:()=>iM,createLangiumParser:()=>pI,delayNextTick:()=>AI,diagnosticData:()=>AE,eagerLoad:()=>Act,getDiagnosticRange:()=>yct,inject:()=>Ui,interruptAndCheck:()=>Vi,isAstNode:()=>ri,isAstNodeDescription:()=>LR,isAstNodeWithComment:()=>PI,isCompositeCstNode:()=>uo,isIMultiModeLexerDefinition:()=>qI,isJSDoc:()=>ZI,isLeafCstNode:()=>sf,isLinkingError:()=>Zd,isNamed:()=>mct,isOperationCancelled:()=>ff,isReference:()=>ka,isRootCstNode:()=>c2,isTokenTypeArray:()=>vct,isTokenTypeDictionary:()=>YI,loadGrammarFromJson:()=>df,parseJSDoc:()=>QI,prepareLangiumParser:()=>ect,setInterruptionPeriod:()=>cct,startCancelableOperation:()=>lct,stream:()=>en,toDiagnosticSeverity:()=>_E});var Uc=R(()=>{"use strict";cO();fO();BI();Lct();Yo();Dct();Nct();Ict();Oct();Pct();Fct();wr(Ea,Gr);zct();$ct();Oc()});function Xct(e){return Gl.isInstance(e,qct)}function jct(e){return Gl.isInstance(e,pO)}function Kct(e){return Gl.isInstance(e,mO)}function Qct(e){return Gl.isInstance(e,Rzt)}function Zct(e){return Gl.isInstance(e,gO)}function tut(e){return Gl.isInstance(e,Jct)}function eut(e){return Gl.isInstance(e,yO)}function nut(e){return Gl.isInstance(e,rut)}function aut(e){return Gl.isInstance(e,iut)}function out(e){return Gl.isInstance(e,sut)}function cut(e){return Gl.isInstance(e,lut)}var _zt,De,Yct,qct,pO,Lzt,Dzt,mO,Rzt,gO,Jct,yO,rut,iut,sut,lut,Nzt,uut,Gl,Gct,Mzt,Vct,Izt,Uct,Ozt,Hct,Pzt,Wct,Bzt,Fzt,zzt,$zt,Gzt,Vzt,Vl,vO,xO,bO,wO,TO,Uzt,Hzt,Wzt,Yzt,Ug,A0,Zo,qzt,Jo=R(()=>{"use strict";Uc();Uc();Uc();Uc();_zt=Object.defineProperty,De=o((e,t)=>_zt(e,"name",{value:t,configurable:!0}),"__name"),Yct="Statement",qct="Architecture";o(Xct,"isArchitecture");De(Xct,"isArchitecture");pO="Branch";o(jct,"isBranch");De(jct,"isBranch");Lzt="Checkout",Dzt="CherryPicking",mO="Commit";o(Kct,"isCommit");De(Kct,"isCommit");Rzt="Common";o(Qct,"isCommon");De(Qct,"isCommon");gO="GitGraph";o(Zct,"isGitGraph");De(Zct,"isGitGraph");Jct="Info";o(tut,"isInfo");De(tut,"isInfo");yO="Merge";o(eut,"isMerge");De(eut,"isMerge");rut="Packet";o(nut,"isPacket");De(nut,"isPacket");iut="PacketBlock";o(aut,"isPacketBlock");De(aut,"isPacketBlock");sut="Pie";o(out,"isPie");De(out,"isPie");lut="PieSection";o(cut,"isPieSection");De(cut,"isPieSection");Nzt="Direction",uut=class extends Qd{static{o(this,"MermaidAstReflection")}static{De(this,"MermaidAstReflection")}getAllTypes(){return["Architecture","Branch","Checkout","CherryPicking","Commit","Common","Direction","Edge","GitGraph","Group","Info","Junction","Merge","Packet","PacketBlock","Pie","PieSection","Service","Statement"]}computeIsSubtype(e,t){switch(e){case pO:case Lzt:case Dzt:case mO:case yO:return this.isSubtype(Yct,t);case Nzt:return this.isSubtype(gO,t);default:return!1}}getReferenceType(e){let t=`${e.container.$type}:${e.property}`;switch(t){default:throw new Error(`${t} is not a valid reference id.`)}}getTypeMetaData(e){switch(e){case"Architecture":return{name:"Architecture",properties:[{name:"accDescr"},{name:"accTitle"},{name:"edges",defaultValue:[]},{name:"groups",defaultValue:[]},{name:"junctions",defaultValue:[]},{name:"services",defaultValue:[]},{name:"title"}]};case"Branch":return{name:"Branch",properties:[{name:"name"},{name:"order"}]};case"Checkout":return{name:"Checkout",properties:[{name:"branch"}]};case"CherryPicking":return{name:"CherryPicking",properties:[{name:"id"},{name:"parent"},{name:"tags",defaultValue:[]}]};case"Commit":return{name:"Commit",properties:[{name:"id"},{name:"message"},{name:"tags",defaultValue:[]},{name:"type"}]};case"Common":return{name:"Common",properties:[{name:"accDescr"},{name:"accTitle"},{name:"title"}]};case"Edge":return{name:"Edge",properties:[{name:"lhsDir"},{name:"lhsGroup",defaultValue:!1},{name:"lhsId"},{name:"lhsInto",defaultValue:!1},{name:"rhsDir"},{name:"rhsGroup",defaultValue:!1},{name:"rhsId"},{name:"rhsInto",defaultValue:!1},{name:"title"}]};case"GitGraph":return{name:"GitGraph",properties:[{name:"accDescr"},{name:"accTitle"},{name:"statements",defaultValue:[]},{name:"title"}]};case"Group":return{name:"Group",properties:[{name:"icon"},{name:"id"},{name:"in"},{name:"title"}]};case"Info":return{name:"Info",properties:[{name:"accDescr"},{name:"accTitle"},{name:"title"}]};case"Junction":return{name:"Junction",properties:[{name:"id"},{name:"in"}]};case"Merge":return{name:"Merge",properties:[{name:"branch"},{name:"id"},{name:"tags",defaultValue:[]},{name:"type"}]};case"Packet":return{name:"Packet",properties:[{name:"accDescr"},{name:"accTitle"},{name:"blocks",defaultValue:[]},{name:"title"}]};case"PacketBlock":return{name:"PacketBlock",properties:[{name:"end"},{name:"label"},{name:"start"}]};case"Pie":return{name:"Pie",properties:[{name:"accDescr"},{name:"accTitle"},{name:"sections",defaultValue:[]},{name:"showData",defaultValue:!1},{name:"title"}]};case"PieSection":return{name:"PieSection",properties:[{name:"label"},{name:"value"}]};case"Service":return{name:"Service",properties:[{name:"icon"},{name:"iconText"},{name:"id"},{name:"in"},{name:"title"}]};case"Direction":return{name:"Direction",properties:[{name:"accDescr"},{name:"accTitle"},{name:"dir"},{name:"statements",defaultValue:[]},{name:"title"}]};default:return{name:e,properties:[]}}}},Gl=new uut,Mzt=De(()=>Gct??(Gct=df('{"$type":"Grammar","isDeclared":true,"name":"Info","imports":[],"rules":[{"$type":"ParserRule","name":"Info","entry":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"info"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Keyword","value":"showInfo"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"*"}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[],"cardinality":"?"}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"TitleAndAccessibilities","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"EOL","fragment":true,"dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"types":[],"usedGrammars":[]}')),"InfoGrammar"),Izt=De(()=>Vct??(Vct=df(`{"$type":"Grammar","isDeclared":true,"name":"Packet","imports":[],"rules":[{"$type":"ParserRule","name":"Packet","entry":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"packet-beta"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Assignment","feature":"blocks","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]},"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"+"},{"$type":"Assignment","feature":"blocks","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]},"cardinality":"+"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"}]}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"PacketBlock","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"start","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"end","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"?"},{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"|'[^']*'/"},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"TitleAndAccessibilities","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"EOL","fragment":true,"dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"types":[],"usedGrammars":[]}`)),"PacketGrammar"),Ozt=De(()=>Uct??(Uct=df('{"$type":"Grammar","isDeclared":true,"name":"Pie","imports":[],"rules":[{"$type":"ParserRule","name":"Pie","entry":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"pie"},{"$type":"Assignment","feature":"showData","operator":"?=","terminal":{"$type":"Keyword","value":"showData"},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Assignment","feature":"sections","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]},"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"+"},{"$type":"Assignment","feature":"sections","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]},"cardinality":"+"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"}]}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"PieSection","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"PIE_SECTION_LABEL","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]+\\"/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"PIE_SECTION_VALUE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/(0|[1-9][0-9]*)(\\\\.[0-9]+)?/"},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"TitleAndAccessibilities","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"EOL","fragment":true,"dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"types":[],"usedGrammars":[]}')),"PieGrammar"),Pzt=De(()=>Hct??(Hct=df('{"$type":"Grammar","isDeclared":true,"name":"Architecture","imports":[],"rules":[{"$type":"ParserRule","name":"Architecture","entry":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"architecture-beta"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}]},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[],"cardinality":"*"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[],"cardinality":"*"}]}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Statement","fragment":true,"definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"groups","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"services","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"junctions","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Assignment","feature":"edges","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"LeftPort","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"lhsDir","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"RightPort","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"rhsDir","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Keyword","value":":"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Arrow","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]},{"$type":"Assignment","feature":"lhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"--"},{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}},{"$type":"Keyword","value":"-"}]}]},{"$type":"Assignment","feature":"rhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Group","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"group"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Service","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"service"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"iconText","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}}],"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Junction","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"junction"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Edge","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"lhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Assignment","feature":"lhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Assignment","feature":"rhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Assignment","feature":"rhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"ARROW_DIRECTION","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"L"}},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"R"}}]},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"T"}}]},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"B"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_ID","definition":{"$type":"RegexToken","regex":"/[\\\\w]+/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_TEXT_ICON","definition":{"$type":"RegexToken","regex":"/\\\\(\\"[^\\"]+\\"\\\\)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_ICON","definition":{"$type":"RegexToken","regex":"/\\\\([\\\\w-:]+\\\\)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_TITLE","definition":{"$type":"RegexToken","regex":"/\\\\[[\\\\w ]+\\\\]/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW_GROUP","definition":{"$type":"RegexToken","regex":"/\\\\{group\\\\}/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW_INTO","definition":{"$type":"RegexToken","regex":"/<|>/"},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"TitleAndAccessibilities","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"EOL","fragment":true,"dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"types":[],"usedGrammars":[]}')),"ArchitectureGrammar"),Bzt=De(()=>Wct??(Wct=df(`{"$type":"Grammar","isDeclared":true,"name":"GitGraph","interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"rules":[{"$type":"ParserRule","name":"TitleAndAccessibilities","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"EOL","fragment":true,"dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false},{"$type":"ParserRule","name":"GitGraph","entry":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"Group","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"Keyword","value":":"}]},{"$type":"Keyword","value":"gitGraph:"},{"$type":"Group","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]},{"$type":"Keyword","value":":"}]}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]},{"$type":"Assignment","feature":"statements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}],"cardinality":"*"}]}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Direction","definition":{"$type":"Assignment","feature":"dir","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"LR"},{"$type":"Keyword","value":"TB"},{"$type":"Keyword","value":"BT"}]}},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Commit","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"commit"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"msg:","cardinality":"?"},{"$type":"Assignment","feature":"message","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"type:"},{"$type":"Assignment","feature":"type","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"NORMAL"},{"$type":"Keyword","value":"REVERSE"},{"$type":"Keyword","value":"HIGHLIGHT"}]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Branch","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"branch"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"order:"},{"$type":"Assignment","feature":"order","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Merge","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"merge"},{"$type":"Assignment","feature":"branch","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]}},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"type:"},{"$type":"Assignment","feature":"type","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"NORMAL"},{"$type":"Keyword","value":"REVERSE"},{"$type":"Keyword","value":"HIGHLIGHT"}]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Checkout","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"checkout"},{"$type":"Keyword","value":"switch"}]},{"$type":"Assignment","feature":"branch","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"CherryPicking","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"cherry-pick"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"parent:"},{"$type":"Assignment","feature":"parent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+(?=\\\\s)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\\\w([-\\\\./\\\\w]*[-\\\\w])?/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"|'[^']*'/"},"fragment":false,"hidden":false}],"definesHiddenTokens":false,"hiddenTokens":[],"imports":[],"types":[],"usedGrammars":[]}`)),"GitGraphGrammar"),Fzt={languageId:"info",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1},zzt={languageId:"packet",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1},$zt={languageId:"pie",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1},Gzt={languageId:"architecture",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1},Vzt={languageId:"gitGraph",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1},Vl={AstReflection:De(()=>new uut,"AstReflection")},vO={Grammar:De(()=>Mzt(),"Grammar"),LanguageMetaData:De(()=>Fzt,"LanguageMetaData"),parser:{}},xO={Grammar:De(()=>Izt(),"Grammar"),LanguageMetaData:De(()=>zzt,"LanguageMetaData"),parser:{}},bO={Grammar:De(()=>Ozt(),"Grammar"),LanguageMetaData:De(()=>$zt,"LanguageMetaData"),parser:{}},wO={Grammar:De(()=>Pzt(),"Grammar"),LanguageMetaData:De(()=>Gzt,"LanguageMetaData"),parser:{}},TO={Grammar:De(()=>Bzt(),"Grammar"),LanguageMetaData:De(()=>Vzt,"LanguageMetaData"),parser:{}},Uzt=/accDescr(?:[\t ]*:([^\n\r]*)|\s*{([^}]*)})/,Hzt=/accTitle[\t ]*:([^\n\r]*)/,Wzt=/title([\t ][^\n\r]*|)/,Yzt={ACC_DESCR:Uzt,ACC_TITLE:Hzt,TITLE:Wzt},Ug=class extends k0{static{o(this,"AbstractMermaidValueConverter")}static{De(this,"AbstractMermaidValueConverter")}runConverter(e,t,r){let n=this.runCommonConverter(e,t,r);return n===void 0&&(n=this.runCustomConverter(e,t,r)),n===void 0?super.runConverter(e,t,r):n}runCommonConverter(e,t,r){let n=Yzt[e.name];if(n===void 0)return;let i=n.exec(t);if(i!==null){if(i[1]!==void 0)return i[1].trim().replace(/[\t ]{2,}/gm," ");if(i[2]!==void 0)return i[2].replace(/^\s*/gm,"").replace(/\s+$/gm,"").replace(/[\t ]{2,}/gm," ").replace(/[\n\r]{2,}/gm,` +`)}}},A0=class extends Ug{static{o(this,"CommonValueConverter")}static{De(this,"CommonValueConverter")}runCustomConverter(e,t,r){}},Zo=class extends T0{static{o(this,"AbstractMermaidTokenBuilder")}static{De(this,"AbstractMermaidTokenBuilder")}constructor(e){super(),this.keywords=new Set(e)}buildKeywordTokens(e,t,r){let n=super.buildKeywordTokens(e,t,r);return n.forEach(i=>{this.keywords.has(i.name)&&i.PATTERN!==void 0&&(i.PATTERN=new RegExp(i.PATTERN.toString()+"(?:(?=%%)|(?!\\S))"))}),n}},qzt=class extends Zo{static{o(this,"CommonTokenBuilder")}static{De(this,"CommonTokenBuilder")}}});function IE(e=yo){let t=Ui(go(e),Vl),r=Ui(mo({shared:t}),TO,ME);return t.ServiceRegistry.register(r),{shared:t,GitGraph:r}}var Xzt,ME,kO=R(()=>{"use strict";Jo();Uc();Xzt=class extends Zo{static{o(this,"GitGraphTokenBuilder")}static{De(this,"GitGraphTokenBuilder")}constructor(){super(["gitGraph"])}},ME={parser:{TokenBuilder:De(()=>new Xzt,"TokenBuilder"),ValueConverter:De(()=>new A0,"ValueConverter")}};o(IE,"createGitGraphServices");De(IE,"createGitGraphServices")});function PE(e=yo){let t=Ui(go(e),Vl),r=Ui(mo({shared:t}),vO,OE);return t.ServiceRegistry.register(r),{shared:t,Info:r}}var jzt,OE,EO=R(()=>{"use strict";Jo();Uc();jzt=class extends Zo{static{o(this,"InfoTokenBuilder")}static{De(this,"InfoTokenBuilder")}constructor(){super(["info","showInfo"])}},OE={parser:{TokenBuilder:De(()=>new jzt,"TokenBuilder"),ValueConverter:De(()=>new A0,"ValueConverter")}};o(PE,"createInfoServices");De(PE,"createInfoServices")});function FE(e=yo){let t=Ui(go(e),Vl),r=Ui(mo({shared:t}),xO,BE);return t.ServiceRegistry.register(r),{shared:t,Packet:r}}var Kzt,BE,CO=R(()=>{"use strict";Jo();Uc();Kzt=class extends Zo{static{o(this,"PacketTokenBuilder")}static{De(this,"PacketTokenBuilder")}constructor(){super(["packet-beta"])}},BE={parser:{TokenBuilder:De(()=>new Kzt,"TokenBuilder"),ValueConverter:De(()=>new A0,"ValueConverter")}};o(FE,"createPacketServices");De(FE,"createPacketServices")});function $E(e=yo){let t=Ui(go(e),Vl),r=Ui(mo({shared:t}),bO,zE);return t.ServiceRegistry.register(r),{shared:t,Pie:r}}var Qzt,Zzt,zE,SO=R(()=>{"use strict";Jo();Uc();Qzt=class extends Zo{static{o(this,"PieTokenBuilder")}static{De(this,"PieTokenBuilder")}constructor(){super(["pie","showData"])}},Zzt=class extends Ug{static{o(this,"PieValueConverter")}static{De(this,"PieValueConverter")}runCustomConverter(e,t,r){if(e.name==="PIE_SECTION_LABEL")return t.replace(/"/g,"").trim()}},zE={parser:{TokenBuilder:De(()=>new Qzt,"TokenBuilder"),ValueConverter:De(()=>new Zzt,"ValueConverter")}};o($E,"createPieServices");De($E,"createPieServices")});function VE(e=yo){let t=Ui(go(e),Vl),r=Ui(mo({shared:t}),wO,GE);return t.ServiceRegistry.register(r),{shared:t,Architecture:r}}var Jzt,t$t,GE,AO=R(()=>{"use strict";Jo();Uc();Jzt=class extends Zo{static{o(this,"ArchitectureTokenBuilder")}static{De(this,"ArchitectureTokenBuilder")}constructor(){super(["architecture"])}},t$t=class extends Ug{static{o(this,"ArchitectureValueConverter")}static{De(this,"ArchitectureValueConverter")}runCustomConverter(e,t,r){if(e.name==="ARCH_ICON")return t.replace(/[()]/g,"").trim();if(e.name==="ARCH_TEXT_ICON")return t.replace(/["()]/g,"");if(e.name==="ARCH_TITLE")return t.replace(/[[\]]/g,"").trim()}},GE={parser:{TokenBuilder:De(()=>new Jzt,"TokenBuilder"),ValueConverter:De(()=>new t$t,"ValueConverter")}};o(VE,"createArchitectureServices");De(VE,"createArchitectureServices")});var hut={};xr(hut,{InfoModule:()=>OE,createInfoServices:()=>PE});var fut=R(()=>{"use strict";EO();Jo()});var dut={};xr(dut,{PacketModule:()=>BE,createPacketServices:()=>FE});var put=R(()=>{"use strict";CO();Jo()});var mut={};xr(mut,{PieModule:()=>zE,createPieServices:()=>$E});var gut=R(()=>{"use strict";SO();Jo()});var yut={};xr(yut,{ArchitectureModule:()=>GE,createArchitectureServices:()=>VE});var vut=R(()=>{"use strict";AO();Jo()});var xut={};xr(xut,{GitGraphModule:()=>ME,createGitGraphServices:()=>IE});var but=R(()=>{"use strict";kO();Jo()});async function Ul(e,t){let r=e$t[e];if(!r)throw new Error(`Unknown diagram type: ${e}`);_0[e]||await r();let i=_0[e].parse(t);if(i.lexerErrors.length>0||i.parserErrors.length>0)throw new r$t(i);return i.value}var _0,e$t,r$t,Hg=R(()=>{"use strict";kO();EO();CO();SO();AO();Jo();_0={},e$t={info:De(async()=>{let{createInfoServices:e}=await Promise.resolve().then(()=>(fut(),hut)),t=e().Info.parser.LangiumParser;_0.info=t},"info"),packet:De(async()=>{let{createPacketServices:e}=await Promise.resolve().then(()=>(put(),dut)),t=e().Packet.parser.LangiumParser;_0.packet=t},"packet"),pie:De(async()=>{let{createPieServices:e}=await Promise.resolve().then(()=>(gut(),mut)),t=e().Pie.parser.LangiumParser;_0.pie=t},"pie"),architecture:De(async()=>{let{createArchitectureServices:e}=await Promise.resolve().then(()=>(vut(),yut)),t=e().Architecture.parser.LangiumParser;_0.architecture=t},"architecture"),gitGraph:De(async()=>{let{createGitGraphServices:e}=await Promise.resolve().then(()=>(but(),xut)),t=e().GitGraph.parser.LangiumParser;_0.gitGraph=t},"gitGraph")};o(Ul,"parse");De(Ul,"parse");r$t=class extends Error{static{o(this,"MermaidParseError")}constructor(e){let t=e.lexerErrors.map(n=>n.message).join(` +`),r=e.parserErrors.map(n=>n.message).join(` +`);super(`Parsing failed: ${t} ${r}`),this.result=e}static{De(this,"MermaidParseError")}}});function pf(e,t){e.accDescr&&t.setAccDescription?.(e.accDescr),e.accTitle&&t.setAccTitle?.(e.accTitle),e.title&&t.setDiagramTitle?.(e.title)}var Dx=R(()=>{"use strict";o(pf,"populateCommonDb")});var jr,UE=R(()=>{"use strict";jr={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4}});var mf,HE=R(()=>{"use strict";mf=class{constructor(t){this.init=t;this.records=this.init()}static{o(this,"ImperativeState")}reset(){this.records=this.init()}}});function _O(){return $9({length:7})}function i$t(e,t){let r=Object.create(null);return e.reduce((n,i)=>{let a=t(i);return r[a]||(r[a]=!0,n.push(i)),n},[])}function wut(e,t,r){let n=e.indexOf(t);n===-1?e.push(r):e.splice(n,1,r)}function kut(e){let t=e.reduce((i,a)=>i.seq>a.seq?i:a,e[0]),r="";e.forEach(function(i){i===t?r+=" *":r+=" |"});let n=[r,t.id,t.seq];for(let i in Te.records.branches)Te.records.branches.get(i)===t.id&&n.push(i);if(V.debug(n.join(" ")),t.parents&&t.parents.length==2&&t.parents[0]&&t.parents[1]){let i=Te.records.commits.get(t.parents[0]);wut(e,t,i),t.parents[1]&&e.push(Te.records.commits.get(t.parents[1]))}else{if(t.parents.length==0)return;if(t.parents[0]){let i=Te.records.commits.get(t.parents[0]);wut(e,t,i)}}e=i$t(e,i=>i.id),kut(e)}var n$t,L0,Te,a$t,s$t,o$t,l$t,c$t,u$t,h$t,Tut,f$t,d$t,p$t,m$t,g$t,Eut,y$t,v$t,x$t,WE,LO=R(()=>{"use strict";ce();_r();js();hr();Ci();UE();HE();hl();n$t=Er.gitGraph,L0=o(()=>Ss({...n$t,...Nr().gitGraph}),"getConfig"),Te=new mf(()=>{let e=L0(),t=e.mainBranchName,r=e.mainBranchOrder;return{mainBranchName:t,commits:new Map,head:null,branchConfig:new Map([[t,{name:t,order:r}]]),branches:new Map([[t,null]]),currBranch:t,direction:"LR",seq:0,options:{}}});o(_O,"getID");o(i$t,"uniqBy");a$t=o(function(e){Te.records.direction=e},"setDirection"),s$t=o(function(e){V.debug("options str",e),e=e?.trim(),e=e||"{}";try{Te.records.options=JSON.parse(e)}catch(t){V.error("error while parsing gitGraph options",t.message)}},"setOptions"),o$t=o(function(){return Te.records.options},"getOptions"),l$t=o(function(e){let t=e.msg,r=e.id,n=e.type,i=e.tags;V.info("commit",t,r,n,i),V.debug("Entering commit:",t,r,n,i);let a=L0();r=Yt.sanitizeText(r,a),t=Yt.sanitizeText(t,a),i=i?.map(l=>Yt.sanitizeText(l,a));let s={id:r||Te.records.seq+"-"+_O(),message:t,seq:Te.records.seq++,type:n??jr.NORMAL,tags:i??[],parents:Te.records.head==null?[]:[Te.records.head.id],branch:Te.records.currBranch};Te.records.head=s,V.info("main branch",a.mainBranchName),Te.records.commits.set(s.id,s),Te.records.branches.set(Te.records.currBranch,s.id),V.debug("in pushCommit "+s.id)},"commit"),c$t=o(function(e){let t=e.name,r=e.order;if(t=Yt.sanitizeText(t,L0()),Te.records.branches.has(t))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${t}")`);Te.records.branches.set(t,Te.records.head!=null?Te.records.head.id:null),Te.records.branchConfig.set(t,{name:t,order:r}),Tut(t),V.debug("in createBranch")},"branch"),u$t=o(e=>{let t=e.branch,r=e.id,n=e.type,i=e.tags,a=L0();t=Yt.sanitizeText(t,a),r&&(r=Yt.sanitizeText(r,a));let s=Te.records.branches.get(Te.records.currBranch),l=Te.records.branches.get(t),u=s?Te.records.commits.get(s):void 0,h=l?Te.records.commits.get(l):void 0;if(u&&h&&u.branch===t)throw new Error(`Cannot merge branch '${t}' into itself.`);if(Te.records.currBranch===t){let p=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw p.hash={text:`merge ${t}`,token:`merge ${t}`,expected:["branch abc"]},p}if(u===void 0||!u){let p=new Error(`Incorrect usage of "merge". Current branch (${Te.records.currBranch})has no commits`);throw p.hash={text:`merge ${t}`,token:`merge ${t}`,expected:["commit"]},p}if(!Te.records.branches.has(t)){let p=new Error('Incorrect usage of "merge". Branch to be merged ('+t+") does not exist");throw p.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`branch ${t}`]},p}if(h===void 0||!h){let p=new Error('Incorrect usage of "merge". Branch to be merged ('+t+") has no commits");throw p.hash={text:`merge ${t}`,token:`merge ${t}`,expected:['"commit"']},p}if(u===h){let p=new Error('Incorrect usage of "merge". Both branches have same head');throw p.hash={text:`merge ${t}`,token:`merge ${t}`,expected:["branch abc"]},p}if(r&&Te.records.commits.has(r)){let p=new Error('Incorrect usage of "merge". Commit with id:'+r+" already exists, use different custom Id");throw p.hash={text:`merge ${t} ${r} ${n} ${i?.join(" ")}`,token:`merge ${t} ${r} ${n} ${i?.join(" ")}`,expected:[`merge ${t} ${r}_UNIQUE ${n} ${i?.join(" ")}`]},p}let f=l||"",d={id:r||`${Te.records.seq}-${_O()}`,message:`merged branch ${t} into ${Te.records.currBranch}`,seq:Te.records.seq++,parents:Te.records.head==null?[]:[Te.records.head.id,f],branch:Te.records.currBranch,type:jr.MERGE,customType:n,customId:!!r,tags:i??[]};Te.records.head=d,Te.records.commits.set(d.id,d),Te.records.branches.set(Te.records.currBranch,d.id),V.debug(Te.records.branches),V.debug("in mergeBranch")},"merge"),h$t=o(function(e){let t=e.id,r=e.targetId,n=e.tags,i=e.parent;V.debug("Entering cherryPick:",t,r,n);let a=L0();if(t=Yt.sanitizeText(t,a),r=Yt.sanitizeText(r,a),n=n?.map(u=>Yt.sanitizeText(u,a)),i=Yt.sanitizeText(i,a),!t||!Te.records.commits.has(t)){let u=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw u.hash={text:`cherryPick ${t} ${r}`,token:`cherryPick ${t} ${r}`,expected:["cherry-pick abc"]},u}let s=Te.records.commits.get(t);if(s===void 0||!s)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(i&&!(Array.isArray(s.parents)&&s.parents.includes(i)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");let l=s.branch;if(s.type===jr.MERGE&&!i)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!r||!Te.records.commits.has(r)){if(l===Te.records.currBranch){let d=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw d.hash={text:`cherryPick ${t} ${r}`,token:`cherryPick ${t} ${r}`,expected:["cherry-pick abc"]},d}let u=Te.records.branches.get(Te.records.currBranch);if(u===void 0||!u){let d=new Error(`Incorrect usage of "cherry-pick". Current branch (${Te.records.currBranch})has no commits`);throw d.hash={text:`cherryPick ${t} ${r}`,token:`cherryPick ${t} ${r}`,expected:["cherry-pick abc"]},d}let h=Te.records.commits.get(u);if(h===void 0||!h){let d=new Error(`Incorrect usage of "cherry-pick". Current branch (${Te.records.currBranch})has no commits`);throw d.hash={text:`cherryPick ${t} ${r}`,token:`cherryPick ${t} ${r}`,expected:["cherry-pick abc"]},d}let f={id:Te.records.seq+"-"+_O(),message:`cherry-picked ${s?.message} into ${Te.records.currBranch}`,seq:Te.records.seq++,parents:Te.records.head==null?[]:[Te.records.head.id,s.id],branch:Te.records.currBranch,type:jr.CHERRY_PICK,tags:n?n.filter(Boolean):[`cherry-pick:${s.id}${s.type===jr.MERGE?`|parent:${i}`:""}`]};Te.records.head=f,Te.records.commits.set(f.id,f),Te.records.branches.set(Te.records.currBranch,f.id),V.debug(Te.records.branches),V.debug("in cherryPick")}},"cherryPick"),Tut=o(function(e){if(e=Yt.sanitizeText(e,L0()),Te.records.branches.has(e)){Te.records.currBranch=e;let t=Te.records.branches.get(Te.records.currBranch);t===void 0||!t?Te.records.head=null:Te.records.head=Te.records.commits.get(t)??null}else{let t=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);throw t.hash={text:`checkout ${e}`,token:`checkout ${e}`,expected:[`branch ${e}`]},t}},"checkout");o(wut,"upsert");o(kut,"prettyPrintCommitHistory");f$t=o(function(){V.debug(Te.records.commits);let e=Eut()[0];kut([e])},"prettyPrint"),d$t=o(function(){Te.reset(),Ar()},"clear"),p$t=o(function(){return[...Te.records.branchConfig.values()].map((t,r)=>t.order!==null&&t.order!==void 0?t:{...t,order:parseFloat(`0.${r}`)}).sort((t,r)=>(t.order??0)-(r.order??0)).map(({name:t})=>({name:t}))},"getBranchesAsObjArray"),m$t=o(function(){return Te.records.branches},"getBranches"),g$t=o(function(){return Te.records.commits},"getCommits"),Eut=o(function(){let e=[...Te.records.commits.values()];return e.forEach(function(t){V.debug(t.id)}),e.sort((t,r)=>t.seq-r.seq),e},"getCommitsArray"),y$t=o(function(){return Te.records.currBranch},"getCurrentBranch"),v$t=o(function(){return Te.records.direction},"getDirection"),x$t=o(function(){return Te.records.head},"getHead"),WE={commitType:jr,getConfig:L0,setDirection:a$t,setOptions:s$t,getOptions:o$t,commit:l$t,branch:c$t,merge:u$t,cherryPick:h$t,checkout:Tut,prettyPrint:f$t,clear:d$t,getBranchesAsObjArray:p$t,getBranches:m$t,getCommits:g$t,getCommitsArray:Eut,getCurrentBranch:y$t,getDirection:v$t,getHead:x$t,setAccTitle:Mr,getAccTitle:Br,getAccDescription:zr,setAccDescription:Fr,setDiagramTitle:cn,getDiagramTitle:Jr}});var b$t,w$t,T$t,k$t,E$t,C$t,S$t,Cut,Sut=R(()=>{"use strict";Hg();ce();Dx();LO();UE();b$t=o((e,t)=>{pf(e,t),e.dir&&t.setDirection(e.dir);for(let r of e.statements)w$t(r,t)},"populate"),w$t=o((e,t)=>{let n={Commit:o(i=>t.commit(T$t(i)),"Commit"),Branch:o(i=>t.branch(k$t(i)),"Branch"),Merge:o(i=>t.merge(E$t(i)),"Merge"),Checkout:o(i=>t.checkout(C$t(i)),"Checkout"),CherryPicking:o(i=>t.cherryPick(S$t(i)),"CherryPicking")}[e.$type];n?n(e):V.error(`Unknown statement type: ${e.$type}`)},"parseStatement"),T$t=o(e=>({id:e.id,msg:e.message??"",type:e.type!==void 0?jr[e.type]:jr.NORMAL,tags:e.tags??void 0}),"parseCommit"),k$t=o(e=>({name:e.name,order:e.order??0}),"parseBranch"),E$t=o(e=>({branch:e.branch,id:e.id??"",type:e.type!==void 0?jr[e.type]:void 0,tags:e.tags??void 0}),"parseMerge"),C$t=o(e=>e.branch,"parseCheckout"),S$t=o(e=>({id:e.id,targetId:"",tags:e.tags?.length===0?void 0:e.tags,parent:e.parent}),"parseCherryPicking"),Cut={parse:o(async e=>{let t=await Ul("gitGraph",e);V.debug(t),b$t(t,WE)},"parse")}});var A$t,tl,yf,vf,Hc,ju,D0,$s,Gs,YE,Rx,qE,gf,Rr,_$t,_ut,Lut,L$t,D$t,R$t,N$t,M$t,I$t,O$t,P$t,B$t,F$t,z$t,$$t,Aut,G$t,Nx,V$t,U$t,H$t,W$t,Y$t,Dut,Rut=R(()=>{"use strict";ur();Ue();ce();_r();UE();A$t=pt(),tl=A$t?.gitGraph,yf=10,vf=40,Hc=4,ju=2,D0=8,$s=new Map,Gs=new Map,YE=30,Rx=new Map,qE=[],gf=0,Rr="LR",_$t=o(()=>{$s.clear(),Gs.clear(),Rx.clear(),gf=0,qE=[],Rr="LR"},"clear"),_ut=o(e=>{let t=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof e=="string"?e.split(/\\n|\n|/gi):e).forEach(n=>{let i=document.createElementNS("http://www.w3.org/2000/svg","tspan");i.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),i.setAttribute("dy","1em"),i.setAttribute("x","0"),i.setAttribute("class","row"),i.textContent=n.trim(),t.appendChild(i)}),t},"drawText"),Lut=o(e=>{let t,r,n;return Rr==="BT"?(r=o((i,a)=>i<=a,"comparisonFunc"),n=1/0):(r=o((i,a)=>i>=a,"comparisonFunc"),n=0),e.forEach(i=>{let a=Rr==="TB"||Rr=="BT"?Gs.get(i)?.y:Gs.get(i)?.x;a!==void 0&&r(a,n)&&(t=i,n=a)}),t},"findClosestParent"),L$t=o(e=>{let t="",r=1/0;return e.forEach(n=>{let i=Gs.get(n).y;i<=r&&(t=n,r=i)}),t||void 0},"findClosestParentBT"),D$t=o((e,t,r)=>{let n=r,i=r,a=[];e.forEach(s=>{let l=t.get(s);if(!l)throw new Error(`Commit not found for key ${s}`);l.parents.length?(n=N$t(l),i=Math.max(n,i)):a.push(l),M$t(l,n)}),n=i,a.forEach(s=>{I$t(s,n,r)}),e.forEach(s=>{let l=t.get(s);if(l?.parents.length){let u=L$t(l.parents);n=Gs.get(u).y-vf,n<=i&&(i=n);let h=$s.get(l.branch).pos,f=n-yf;Gs.set(l.id,{x:h,y:f})}})},"setParallelBTPos"),R$t=o(e=>{let t=Lut(e.parents.filter(n=>n!==null));if(!t)throw new Error(`Closest parent not found for commit ${e.id}`);let r=Gs.get(t)?.y;if(r===void 0)throw new Error(`Closest parent position not found for commit ${e.id}`);return r},"findClosestParentPos"),N$t=o(e=>R$t(e)+vf,"calculateCommitPosition"),M$t=o((e,t)=>{let r=$s.get(e.branch);if(!r)throw new Error(`Branch not found for commit ${e.id}`);let n=r.pos,i=t+yf;return Gs.set(e.id,{x:n,y:i}),{x:n,y:i}},"setCommitPosition"),I$t=o((e,t,r)=>{let n=$s.get(e.branch);if(!n)throw new Error(`Branch not found for commit ${e.id}`);let i=t+r,a=n.pos;Gs.set(e.id,{x:a,y:i})},"setRootPosition"),O$t=o((e,t,r,n,i,a)=>{if(a===jr.HIGHLIGHT)e.append("rect").attr("x",r.x-10).attr("y",r.y-10).attr("width",20).attr("height",20).attr("class",`commit ${t.id} commit-highlight${i%D0} ${n}-outer`),e.append("rect").attr("x",r.x-6).attr("y",r.y-6).attr("width",12).attr("height",12).attr("class",`commit ${t.id} commit${i%D0} ${n}-inner`);else if(a===jr.CHERRY_PICK)e.append("circle").attr("cx",r.x).attr("cy",r.y).attr("r",10).attr("class",`commit ${t.id} ${n}`),e.append("circle").attr("cx",r.x-3).attr("cy",r.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${t.id} ${n}`),e.append("circle").attr("cx",r.x+3).attr("cy",r.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${t.id} ${n}`),e.append("line").attr("x1",r.x+3).attr("y1",r.y+1).attr("x2",r.x).attr("y2",r.y-5).attr("stroke","#fff").attr("class",`commit ${t.id} ${n}`),e.append("line").attr("x1",r.x-3).attr("y1",r.y+1).attr("x2",r.x).attr("y2",r.y-5).attr("stroke","#fff").attr("class",`commit ${t.id} ${n}`);else{let s=e.append("circle");if(s.attr("cx",r.x),s.attr("cy",r.y),s.attr("r",t.type===jr.MERGE?9:10),s.attr("class",`commit ${t.id} commit${i%D0}`),a===jr.MERGE){let l=e.append("circle");l.attr("cx",r.x),l.attr("cy",r.y),l.attr("r",6),l.attr("class",`commit ${n} ${t.id} commit${i%D0}`)}a===jr.REVERSE&&e.append("path").attr("d",`M ${r.x-5},${r.y-5}L${r.x+5},${r.y+5}M${r.x-5},${r.y+5}L${r.x+5},${r.y-5}`).attr("class",`commit ${n} ${t.id} commit${i%D0}`)}},"drawCommitBullet"),P$t=o((e,t,r,n)=>{if(t.type!==jr.CHERRY_PICK&&(t.customId&&t.type===jr.MERGE||t.type!==jr.MERGE)&&tl?.showCommitLabel){let i=e.append("g"),a=i.insert("rect").attr("class","commit-label-bkg"),s=i.append("text").attr("x",n).attr("y",r.y+25).attr("class","commit-label").text(t.id),l=s.node()?.getBBox();if(l&&(a.attr("x",r.posWithOffset-l.width/2-ju).attr("y",r.y+13.5).attr("width",l.width+2*ju).attr("height",l.height+2*ju),Rr==="TB"||Rr==="BT"?(a.attr("x",r.x-(l.width+4*Hc+5)).attr("y",r.y-12),s.attr("x",r.x-(l.width+4*Hc)).attr("y",r.y+l.height-12)):s.attr("x",r.posWithOffset-l.width/2),tl.rotateCommitLabel))if(Rr==="TB"||Rr==="BT")s.attr("transform","rotate(-45, "+r.x+", "+r.y+")"),a.attr("transform","rotate(-45, "+r.x+", "+r.y+")");else{let u=-7.5-(l.width+10)/25*9.5,h=10+l.width/25*8.5;i.attr("transform","translate("+u+", "+h+") rotate(-45, "+n+", "+r.y+")")}}},"drawCommitLabel"),B$t=o((e,t,r,n)=>{if(t.tags.length>0){let i=0,a=0,s=0,l=[];for(let u of t.tags.reverse()){let h=e.insert("polygon"),f=e.append("circle"),d=e.append("text").attr("y",r.y-16-i).attr("class","tag-label").text(u),p=d.node()?.getBBox();if(!p)throw new Error("Tag bbox not found");a=Math.max(a,p.width),s=Math.max(s,p.height),d.attr("x",r.posWithOffset-p.width/2),l.push({tag:d,hole:f,rect:h,yOffset:i}),i+=20}for(let{tag:u,hole:h,rect:f,yOffset:d}of l){let p=s/2,m=r.y-19.2-d;if(f.attr("class","tag-label-bkg").attr("points",` + ${n-a/2-Hc/2},${m+ju} + ${n-a/2-Hc/2},${m-ju} + ${r.posWithOffset-a/2-Hc},${m-p-ju} + ${r.posWithOffset+a/2+Hc},${m-p-ju} + ${r.posWithOffset+a/2+Hc},${m+p+ju} + ${r.posWithOffset-a/2-Hc},${m+p+ju}`),h.attr("cy",m).attr("cx",n-a/2+Hc/2).attr("r",1.5).attr("class","tag-hole"),Rr==="TB"||Rr==="BT"){let g=n+d;f.attr("class","tag-label-bkg").attr("points",` + ${r.x},${g+2} + ${r.x},${g-2} + ${r.x+yf},${g-p-2} + ${r.x+yf+a+4},${g-p-2} + ${r.x+yf+a+4},${g+p+2} + ${r.x+yf},${g+p+2}`).attr("transform","translate(12,12) rotate(45, "+r.x+","+n+")"),h.attr("cx",r.x+Hc/2).attr("cy",g).attr("transform","translate(12,12) rotate(45, "+r.x+","+n+")"),u.attr("x",r.x+5).attr("y",g+3).attr("transform","translate(14,14) rotate(45, "+r.x+","+n+")")}}}},"drawCommitTags"),F$t=o(e=>{switch(e.customType??e.type){case jr.NORMAL:return"commit-normal";case jr.REVERSE:return"commit-reverse";case jr.HIGHLIGHT:return"commit-highlight";case jr.MERGE:return"commit-merge";case jr.CHERRY_PICK:return"commit-cherry-pick";default:return"commit-normal"}},"getCommitClassType"),z$t=o((e,t,r,n)=>{let i={x:0,y:0};if(e.parents.length>0){let a=Lut(e.parents);if(a){let s=n.get(a)??i;return t==="TB"?s.y+vf:t==="BT"?(n.get(e.id)??i).y-vf:s.x+vf}}else return t==="TB"?YE:t==="BT"?(n.get(e.id)??i).y-vf:0;return 0},"calculatePosition"),$$t=o((e,t,r)=>{let n=Rr==="BT"&&r?t:t+yf,i=Rr==="TB"||Rr==="BT"?n:$s.get(e.branch)?.pos,a=Rr==="TB"||Rr==="BT"?$s.get(e.branch)?.pos:n;if(a===void 0||i===void 0)throw new Error(`Position were undefined for commit ${e.id}`);return{x:a,y:i,posWithOffset:n}},"getCommitPosition"),Aut=o((e,t,r)=>{if(!tl)throw new Error("GitGraph config not found");let n=e.append("g").attr("class","commit-bullets"),i=e.append("g").attr("class","commit-labels"),a=Rr==="TB"||Rr==="BT"?YE:0,s=[...t.keys()],l=tl?.parallelCommits??!1,u=o((f,d)=>{let p=t.get(f)?.seq,m=t.get(d)?.seq;return p!==void 0&&m!==void 0?p-m:0},"sortKeys"),h=s.sort(u);Rr==="BT"&&(l&&D$t(h,t,a),h=h.reverse()),h.forEach(f=>{let d=t.get(f);if(!d)throw new Error(`Commit not found for key ${f}`);l&&(a=z$t(d,Rr,a,Gs));let p=$$t(d,a,l);if(r){let m=F$t(d),g=d.customType??d.type,y=$s.get(d.branch)?.index??0;O$t(n,d,p,m,y,g),P$t(i,d,p,a),B$t(i,d,p,a)}Rr==="TB"||Rr==="BT"?Gs.set(d.id,{x:p.x,y:p.posWithOffset}):Gs.set(d.id,{x:p.posWithOffset,y:p.y}),a=Rr==="BT"&&l?a+vf:a+vf+yf,a>gf&&(gf=a)})},"drawCommits"),G$t=o((e,t,r,n,i)=>{let s=(Rr==="TB"||Rr==="BT"?r.xh.branch===s,"isOnBranchToGetCurve"),u=o(h=>h.seq>e.seq&&h.sequ(h)&&l(h))},"shouldRerouteArrow"),Nx=o((e,t,r=0)=>{let n=e+Math.abs(e-t)/2;if(r>5)return n;if(qE.every(s=>Math.abs(s-n)>=10))return qE.push(n),n;let a=Math.abs(e-t);return Nx(e,t-a/5,r+1)},"findLane"),V$t=o((e,t,r,n)=>{let i=Gs.get(t.id),a=Gs.get(r.id);if(i===void 0||a===void 0)throw new Error(`Commit positions not found for commits ${t.id} and ${r.id}`);let s=G$t(t,r,i,a,n),l="",u="",h=0,f=0,d=$s.get(r.branch)?.index;r.type===jr.MERGE&&t.id!==r.parents[0]&&(d=$s.get(t.branch)?.index);let p;if(s){l="A 10 10, 0, 0, 0,",u="A 10 10, 0, 0, 1,",h=10,f=10;let m=i.ya.x&&(l="A 20 20, 0, 0, 0,",u="A 20 20, 0, 0, 1,",h=20,f=20,r.type===jr.MERGE&&t.id!==r.parents[0]?p=`M ${i.x} ${i.y} L ${i.x} ${a.y-h} ${u} ${i.x-f} ${a.y} L ${a.x} ${a.y}`:p=`M ${i.x} ${i.y} L ${a.x+h} ${i.y} ${l} ${a.x} ${i.y+f} L ${a.x} ${a.y}`),i.x===a.x&&(p=`M ${i.x} ${i.y} L ${a.x} ${a.y}`)):Rr==="BT"?(i.xa.x&&(l="A 20 20, 0, 0, 0,",u="A 20 20, 0, 0, 1,",h=20,f=20,r.type===jr.MERGE&&t.id!==r.parents[0]?p=`M ${i.x} ${i.y} L ${i.x} ${a.y+h} ${l} ${i.x-f} ${a.y} L ${a.x} ${a.y}`:p=`M ${i.x} ${i.y} L ${a.x-h} ${i.y} ${l} ${a.x} ${i.y-f} L ${a.x} ${a.y}`),i.x===a.x&&(p=`M ${i.x} ${i.y} L ${a.x} ${a.y}`)):(i.ya.y&&(r.type===jr.MERGE&&t.id!==r.parents[0]?p=`M ${i.x} ${i.y} L ${a.x-h} ${i.y} ${l} ${a.x} ${i.y-f} L ${a.x} ${a.y}`:p=`M ${i.x} ${i.y} L ${i.x} ${a.y+h} ${u} ${i.x+f} ${a.y} L ${a.x} ${a.y}`),i.y===a.y&&(p=`M ${i.x} ${i.y} L ${a.x} ${a.y}`));if(p===void 0)throw new Error("Line definition not found");e.append("path").attr("d",p).attr("class","arrow arrow"+d%D0)},"drawArrow"),U$t=o((e,t)=>{let r=e.append("g").attr("class","commit-arrows");[...t.keys()].forEach(n=>{let i=t.get(n);i.parents&&i.parents.length>0&&i.parents.forEach(a=>{V$t(r,t.get(a),i,t)})})},"drawArrows"),H$t=o((e,t)=>{let r=e.append("g");t.forEach((n,i)=>{let a=i%D0,s=$s.get(n.name)?.pos;if(s===void 0)throw new Error(`Position not found for branch ${n.name}`);let l=r.append("line");l.attr("x1",0),l.attr("y1",s),l.attr("x2",gf),l.attr("y2",s),l.attr("class","branch branch"+a),Rr==="TB"?(l.attr("y1",YE),l.attr("x1",s),l.attr("y2",gf),l.attr("x2",s)):Rr==="BT"&&(l.attr("y1",gf),l.attr("x1",s),l.attr("y2",YE),l.attr("x2",s)),qE.push(s);let u=n.name,h=_ut(u),f=r.insert("rect"),p=r.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+a);p.node().appendChild(h);let m=h.getBBox();f.attr("class","branchLabelBkg label"+a).attr("rx",4).attr("ry",4).attr("x",-m.width-4-(tl?.rotateCommitLabel===!0?30:0)).attr("y",-m.height/2+8).attr("width",m.width+18).attr("height",m.height+4),p.attr("transform","translate("+(-m.width-14-(tl?.rotateCommitLabel===!0?30:0))+", "+(s-m.height/2-1)+")"),Rr==="TB"?(f.attr("x",s-m.width/2-10).attr("y",0),p.attr("transform","translate("+(s-m.width/2-5)+", 0)")):Rr==="BT"?(f.attr("x",s-m.width/2-10).attr("y",gf),p.attr("transform","translate("+(s-m.width/2-5)+", "+gf+")")):f.attr("transform","translate(-19, "+(s-m.height/2)+")")})},"drawBranches"),W$t=o(function(e,t,r,n,i){return $s.set(e,{pos:t,index:r}),t+=50+(i?40:0)+(Rr==="TB"||Rr==="BT"?n.width/2:0),t},"setBranchPosition"),Y$t=o(function(e,t,r,n){if(_$t(),V.debug("in gitgraph renderer",e+` +`,"id:",t,r),!tl)throw new Error("GitGraph config not found");let i=tl.rotateCommitLabel??!1,a=n.db;Rx=a.getCommits();let s=a.getBranchesAsObjArray();Rr=a.getDirection();let l=Gt(`[id="${t}"]`),u=0;s.forEach((h,f)=>{let d=_ut(h.name),p=l.append("g"),m=p.insert("g").attr("class","branchLabel"),g=m.insert("g").attr("class","label branch-label");g.node()?.appendChild(d);let y=d.getBBox();u=W$t(h.name,u,f,y,i),g.remove(),m.remove(),p.remove()}),Aut(l,Rx,!1),tl.showBranches&&H$t(l,s),U$t(l,Rx),Aut(l,Rx,!0),Oe.insertTitle(l,"gitTitleText",tl.titleTopMargin??0,a.getDiagramTitle()),Y7(void 0,l,tl.diagramPadding,tl.useMaxWidth)},"draw"),Dut={draw:Y$t}});var q$t,Nut,Mut=R(()=>{"use strict";q$t=o(e=>` .commit-id, .commit-msg, .branch-label { @@ -290,60 +799,60 @@ Expecting `+jt.join(", ")+", got '"+(this.terminals_[Te]||Te)+"'":Ke="Parse erro font-family: 'trebuchet ms', verdana, arial, sans-serif; font-family: var(--mermaid-font-family); } - ${[0,1,2,3,4,5,6,7].map(a=>` - .branch-label${a} { fill: ${i["gitBranchLabel"+a]}; } - .commit${a} { stroke: ${i["git"+a]}; fill: ${i["git"+a]}; } - .commit-highlight${a} { stroke: ${i["gitInv"+a]}; fill: ${i["gitInv"+a]}; } - .label${a} { fill: ${i["git"+a]}; } - .arrow${a} { stroke: ${i["git"+a]}; } + ${[0,1,2,3,4,5,6,7].map(t=>` + .branch-label${t} { fill: ${e["gitBranchLabel"+t]}; } + .commit${t} { stroke: ${e["git"+t]}; fill: ${e["git"+t]}; } + .commit-highlight${t} { stroke: ${e["gitInv"+t]}; fill: ${e["gitInv"+t]}; } + .label${t} { fill: ${e["git"+t]}; } + .arrow${t} { stroke: ${e["git"+t]}; } `).join(` `)} .branch { stroke-width: 1; - stroke: ${i.lineColor}; + stroke: ${e.lineColor}; stroke-dasharray: 2; } - .commit-label { font-size: ${i.commitLabelFontSize}; fill: ${i.commitLabelColor};} - .commit-label-bkg { font-size: ${i.commitLabelFontSize}; fill: ${i.commitLabelBackground}; opacity: 0.5; } - .tag-label { font-size: ${i.tagLabelFontSize}; fill: ${i.tagLabelColor};} - .tag-label-bkg { fill: ${i.tagLabelBackground}; stroke: ${i.tagLabelBorder}; } - .tag-hole { fill: ${i.textColor}; } + .commit-label { font-size: ${e.commitLabelFontSize}; fill: ${e.commitLabelColor};} + .commit-label-bkg { font-size: ${e.commitLabelFontSize}; fill: ${e.commitLabelBackground}; opacity: 0.5; } + .tag-label { font-size: ${e.tagLabelFontSize}; fill: ${e.tagLabelColor};} + .tag-label-bkg { fill: ${e.tagLabelBackground}; stroke: ${e.tagLabelBorder}; } + .tag-hole { fill: ${e.textColor}; } .commit-merge { - stroke: ${i.primaryColor}; - fill: ${i.primaryColor}; + stroke: ${e.primaryColor}; + fill: ${e.primaryColor}; } .commit-reverse { - stroke: ${i.primaryColor}; - fill: ${i.primaryColor}; + stroke: ${e.primaryColor}; + fill: ${e.primaryColor}; stroke-width: 3; } .commit-highlight-outer { } .commit-highlight-inner { - stroke: ${i.primaryColor}; - fill: ${i.primaryColor}; + stroke: ${e.primaryColor}; + fill: ${e.primaryColor}; } .arrow { stroke-width: 8; stroke-linecap: round; fill: none} .gitTitleText { text-anchor: middle; font-size: 18px; - fill: ${i.textColor}; - } -`}},Symbol.toStringTag,{value:"Module"}));var _0t=function(){var i=function(mt,rt,wt,gt){for(wt=wt||{},gt=mt.length;gt--;wt[mt[gt]]=rt);return wt},a=[1,3],f=[1,5],p=[7,9,11,12,13,14,15,16,17,18,19,20,21,23,25,26,28,35,40],v=[1,15],m=[1,16],b=[1,17],E=[1,18],C=[1,19],D=[1,20],P=[1,21],B=[1,22],j=[1,23],R=[1,24],H=[1,25],Y=[1,26],it=[1,27],nt=[1,29],st=[1,31],pt=[1,34],Tt=[5,7,9,11,12,13,14,15,16,17,18,19,20,21,23,25,26,28,35,40],kt={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,gantt:5,document:6,EOF:7,line:8,SPACE:9,statement:10,NL:11,dateFormat:12,inclusiveEndDates:13,topAxis:14,axisFormat:15,tickInterval:16,excludes:17,includes:18,todayMarker:19,title:20,acc_title:21,acc_title_value:22,acc_descr:23,acc_descr_value:24,acc_descr_multiline_value:25,section:26,clickStatement:27,taskTxt:28,taskData:29,openDirective:30,typeDirective:31,closeDirective:32,":":33,argDirective:34,click:35,callbackname:36,callbackargs:37,href:38,clickStatementDebug:39,open_directive:40,type_directive:41,arg_directive:42,close_directive:43,$accept:0,$end:1},terminals_:{2:"error",5:"gantt",7:"EOF",9:"SPACE",11:"NL",12:"dateFormat",13:"inclusiveEndDates",14:"topAxis",15:"axisFormat",16:"tickInterval",17:"excludes",18:"includes",19:"todayMarker",20:"title",21:"acc_title",22:"acc_title_value",23:"acc_descr",24:"acc_descr_value",25:"acc_descr_multiline_value",26:"section",28:"taskTxt",29:"taskData",33:":",35:"click",36:"callbackname",37:"callbackargs",38:"href",40:"open_directive",41:"type_directive",42:"arg_directive",43:"close_directive"},productions_:[0,[3,2],[3,3],[6,0],[6,2],[8,2],[8,1],[8,1],[8,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[10,1],[10,1],[10,2],[10,1],[4,4],[4,6],[27,2],[27,3],[27,3],[27,4],[27,3],[27,4],[27,2],[39,2],[39,3],[39,3],[39,4],[39,3],[39,4],[39,2],[30,1],[31,1],[34,1],[32,1]],performAction:function(rt,wt,gt,lt,_t,X,Rt){var ft=X.length-1;switch(_t){case 2:return X[ft-1];case 3:this.$=[];break;case 4:X[ft-1].push(X[ft]),this.$=X[ft-1];break;case 5:case 6:this.$=X[ft];break;case 7:case 8:this.$=[];break;case 9:lt.setDateFormat(X[ft].substr(11)),this.$=X[ft].substr(11);break;case 10:lt.enableInclusiveEndDates(),this.$=X[ft].substr(18);break;case 11:lt.TopAxis(),this.$=X[ft].substr(8);break;case 12:lt.setAxisFormat(X[ft].substr(11)),this.$=X[ft].substr(11);break;case 13:lt.setTickInterval(X[ft].substr(13)),this.$=X[ft].substr(13);break;case 14:lt.setExcludes(X[ft].substr(9)),this.$=X[ft].substr(9);break;case 15:lt.setIncludes(X[ft].substr(9)),this.$=X[ft].substr(9);break;case 16:lt.setTodayMarker(X[ft].substr(12)),this.$=X[ft].substr(12);break;case 17:lt.setDiagramTitle(X[ft].substr(6)),this.$=X[ft].substr(6);break;case 18:this.$=X[ft].trim(),lt.setAccTitle(this.$);break;case 19:case 20:this.$=X[ft].trim(),lt.setAccDescription(this.$);break;case 21:lt.addSection(X[ft].substr(8)),this.$=X[ft].substr(8);break;case 23:lt.addTask(X[ft-1],X[ft]),this.$="task";break;case 27:this.$=X[ft-1],lt.setClickEvent(X[ft-1],X[ft],null);break;case 28:this.$=X[ft-2],lt.setClickEvent(X[ft-2],X[ft-1],X[ft]);break;case 29:this.$=X[ft-2],lt.setClickEvent(X[ft-2],X[ft-1],null),lt.setLink(X[ft-2],X[ft]);break;case 30:this.$=X[ft-3],lt.setClickEvent(X[ft-3],X[ft-2],X[ft-1]),lt.setLink(X[ft-3],X[ft]);break;case 31:this.$=X[ft-2],lt.setClickEvent(X[ft-2],X[ft],null),lt.setLink(X[ft-2],X[ft-1]);break;case 32:this.$=X[ft-3],lt.setClickEvent(X[ft-3],X[ft-1],X[ft]),lt.setLink(X[ft-3],X[ft-2]);break;case 33:this.$=X[ft-1],lt.setLink(X[ft-1],X[ft]);break;case 34:case 40:this.$=X[ft-1]+" "+X[ft];break;case 35:case 36:case 38:this.$=X[ft-2]+" "+X[ft-1]+" "+X[ft];break;case 37:case 39:this.$=X[ft-3]+" "+X[ft-2]+" "+X[ft-1]+" "+X[ft];break;case 41:lt.parseDirective("%%{","open_directive");break;case 42:lt.parseDirective(X[ft],"type_directive");break;case 43:X[ft]=X[ft].trim().replace(/'/g,'"'),lt.parseDirective(X[ft],"arg_directive");break;case 44:lt.parseDirective("}%%","close_directive","gantt");break}},table:[{3:1,4:2,5:a,30:4,40:f},{1:[3]},{3:6,4:2,5:a,30:4,40:f},i(p,[2,3],{6:7}),{31:8,41:[1,9]},{41:[2,41]},{1:[2,1]},{4:30,7:[1,10],8:11,9:[1,12],10:13,11:[1,14],12:v,13:m,14:b,15:E,16:C,17:D,18:P,19:B,20:j,21:R,23:H,25:Y,26:it,27:28,28:nt,30:4,35:st,40:f},{32:32,33:[1,33],43:pt},i([33,43],[2,42]),i(p,[2,8],{1:[2,2]}),i(p,[2,4]),{4:30,10:35,12:v,13:m,14:b,15:E,16:C,17:D,18:P,19:B,20:j,21:R,23:H,25:Y,26:it,27:28,28:nt,30:4,35:st,40:f},i(p,[2,6]),i(p,[2,7]),i(p,[2,9]),i(p,[2,10]),i(p,[2,11]),i(p,[2,12]),i(p,[2,13]),i(p,[2,14]),i(p,[2,15]),i(p,[2,16]),i(p,[2,17]),{22:[1,36]},{24:[1,37]},i(p,[2,20]),i(p,[2,21]),i(p,[2,22]),{29:[1,38]},i(p,[2,24]),{36:[1,39],38:[1,40]},{11:[1,41]},{34:42,42:[1,43]},{11:[2,44]},i(p,[2,5]),i(p,[2,18]),i(p,[2,19]),i(p,[2,23]),i(p,[2,27],{37:[1,44],38:[1,45]}),i(p,[2,33],{36:[1,46]}),i(Tt,[2,25]),{32:47,43:pt},{43:[2,43]},i(p,[2,28],{38:[1,48]}),i(p,[2,29]),i(p,[2,31],{37:[1,49]}),{11:[1,50]},i(p,[2,30]),i(p,[2,32]),i(Tt,[2,26])],defaultActions:{5:[2,41],6:[2,1],34:[2,44],43:[2,43]},parseError:function(rt,wt){if(wt.recoverable)this.trace(rt);else{var gt=new Error(rt);throw gt.hash=wt,gt}},parse:function(rt){var wt=this,gt=[0],lt=[],_t=[null],X=[],Rt=this.table,ft="",de=0,J=0,ae=2,Wt=1,It=X.slice.call(arguments,1),Nt=Object.create(this.lexer),me={yy:{}};for(var Ue in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ue)&&(me.yy[Ue]=this.yy[Ue]);Nt.setInput(rt,me.yy),me.yy.lexer=Nt,me.yy.parser=this,typeof Nt.yylloc>"u"&&(Nt.yylloc={});var _n=Nt.yylloc;X.push(_n);var _e=Nt.options&&Nt.options.ranges;typeof me.yy.parseError=="function"?this.parseError=me.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function rr(){var oe;return oe=lt.pop()||Nt.lex()||Wt,typeof oe!="number"&&(oe instanceof Array&&(lt=oe,oe=lt.pop()),oe=wt.symbols_[oe]||oe),oe}for(var Te,ne,Ee,ye,Vt={},Ae,Gt,un,jt;;){if(ne=gt[gt.length-1],this.defaultActions[ne]?Ee=this.defaultActions[ne]:((Te===null||typeof Te>"u")&&(Te=rr()),Ee=Rt[ne]&&Rt[ne][Te]),typeof Ee>"u"||!Ee.length||!Ee[0]){var Ke="";jt=[];for(Ae in Rt[ne])this.terminals_[Ae]&&Ae>ae&&jt.push("'"+this.terminals_[Ae]+"'");Nt.showPosition?Ke="Parse error on line "+(de+1)+`: -`+Nt.showPosition()+` -Expecting `+jt.join(", ")+", got '"+(this.terminals_[Te]||Te)+"'":Ke="Parse error on line "+(de+1)+": Unexpected "+(Te==Wt?"end of input":"'"+(this.terminals_[Te]||Te)+"'"),this.parseError(Ke,{text:Nt.match,token:this.terminals_[Te]||Te,line:Nt.yylineno,loc:_n,expected:jt})}if(Ee[0]instanceof Array&&Ee.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ne+", token: "+Te);switch(Ee[0]){case 1:gt.push(Te),_t.push(Nt.yytext),X.push(Nt.yylloc),gt.push(Ee[1]),Te=null,J=Nt.yyleng,ft=Nt.yytext,de=Nt.yylineno,_n=Nt.yylloc;break;case 2:if(Gt=this.productions_[Ee[1]][1],Vt.$=_t[_t.length-Gt],Vt._$={first_line:X[X.length-(Gt||1)].first_line,last_line:X[X.length-1].last_line,first_column:X[X.length-(Gt||1)].first_column,last_column:X[X.length-1].last_column},_e&&(Vt._$.range=[X[X.length-(Gt||1)].range[0],X[X.length-1].range[1]]),ye=this.performAction.apply(Vt,[ft,J,de,me.yy,Ee[1],_t,X].concat(It)),typeof ye<"u")return ye;Gt&&(gt=gt.slice(0,-1*Gt*2),_t=_t.slice(0,-1*Gt),X=X.slice(0,-1*Gt)),gt.push(this.productions_[Ee[1]][0]),_t.push(Vt.$),X.push(Vt._$),un=Rt[gt[gt.length-2]][gt[gt.length-1]],gt.push(un);break;case 3:return!0}}return!0}},yt=function(){var mt={EOF:1,parseError:function(wt,gt){if(this.yy.parser)this.yy.parser.parseError(wt,gt);else throw new Error(wt)},setInput:function(rt,wt){return this.yy=wt||this.yy||{},this._input=rt,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var rt=this._input[0];this.yytext+=rt,this.yyleng++,this.offset++,this.match+=rt,this.matched+=rt;var wt=rt.match(/(?:\r\n?|\n).*/g);return wt?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),rt},unput:function(rt){var wt=rt.length,gt=rt.split(/(?:\r\n?|\n)/g);this._input=rt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-wt),this.offset-=wt;var lt=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),gt.length-1&&(this.yylineno-=gt.length-1);var _t=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:gt?(gt.length===lt.length?this.yylloc.first_column:0)+lt[lt.length-gt.length].length-gt[0].length:this.yylloc.first_column-wt},this.options.ranges&&(this.yylloc.range=[_t[0],_t[0]+this.yyleng-wt]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). -`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(rt){this.unput(this.match.slice(rt))},pastInput:function(){var rt=this.matched.substr(0,this.matched.length-this.match.length);return(rt.length>20?"...":"")+rt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var rt=this.match;return rt.length<20&&(rt+=this._input.substr(0,20-rt.length)),(rt.substr(0,20)+(rt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var rt=this.pastInput(),wt=new Array(rt.length+1).join("-");return rt+this.upcomingInput()+` -`+wt+"^"},test_match:function(rt,wt){var gt,lt,_t;if(this.options.backtrack_lexer&&(_t={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(_t.yylloc.range=this.yylloc.range.slice(0))),lt=rt[0].match(/(?:\r\n?|\n).*/g),lt&&(this.yylineno+=lt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:lt?lt[lt.length-1].length-lt[lt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+rt[0].length},this.yytext+=rt[0],this.match+=rt[0],this.matches=rt,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(rt[0].length),this.matched+=rt[0],gt=this.performAction.call(this,this.yy,this,wt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),gt)return gt;if(this._backtrack){for(var X in _t)this[X]=_t[X];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var rt,wt,gt,lt;this._more||(this.yytext="",this.match="");for(var _t=this._currentRules(),X=0;X<_t.length;X++)if(gt=this._input.match(this.rules[_t[X]]),gt&&(!wt||gt[0].length>wt[0].length)){if(wt=gt,lt=X,this.options.backtrack_lexer){if(rt=this.test_match(gt,_t[X]),rt!==!1)return rt;if(this._backtrack){wt=!1;continue}else return!1}else if(!this.options.flex)break}return wt?(rt=this.test_match(wt,_t[lt]),rt!==!1?rt:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var wt=this.next();return wt||this.lex()},begin:function(wt){this.conditionStack.push(wt)},popState:function(){var wt=this.conditionStack.length-1;return wt>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(wt){return wt=this.conditionStack.length-1-Math.abs(wt||0),wt>=0?this.conditionStack[wt]:"INITIAL"},pushState:function(wt){this.begin(wt)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(wt,gt,lt,_t){switch(lt){case 0:return this.begin("open_directive"),40;case 1:return this.begin("type_directive"),41;case 2:return this.popState(),this.begin("arg_directive"),33;case 3:return this.popState(),this.popState(),43;case 4:return 42;case 5:return this.begin("acc_title"),21;case 6:return this.popState(),"acc_title_value";case 7:return this.begin("acc_descr"),23;case 8:return this.popState(),"acc_descr_value";case 9:this.begin("acc_descr_multiline");break;case 10:this.popState();break;case 11:return"acc_descr_multiline_value";case 12:break;case 13:break;case 14:break;case 15:return 11;case 16:break;case 17:break;case 18:break;case 19:this.begin("href");break;case 20:this.popState();break;case 21:return 38;case 22:this.begin("callbackname");break;case 23:this.popState();break;case 24:this.popState(),this.begin("callbackargs");break;case 25:return 36;case 26:this.popState();break;case 27:return 37;case 28:this.begin("click");break;case 29:this.popState();break;case 30:return 35;case 31:return 5;case 32:return 12;case 33:return 13;case 34:return 14;case 35:return 15;case 36:return 16;case 37:return 18;case 38:return 17;case 39:return 19;case 40:return"date";case 41:return 20;case 42:return"accDescription";case 43:return 26;case 44:return 28;case 45:return 29;case 46:return 33;case 47:return 7;case 48:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[10,11],inclusive:!1},acc_descr:{rules:[8],inclusive:!1},acc_title:{rules:[6],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},callbackargs:{rules:[26,27],inclusive:!1},callbackname:{rules:[23,24,25],inclusive:!1},href:{rules:[20,21],inclusive:!1},click:{rules:[29,30],inclusive:!1},INITIAL:{rules:[0,5,7,9,12,13,14,15,16,17,18,19,22,28,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48],inclusive:!0}}};return mt}();kt.lexer=yt;function ht(){this.yy={}}return ht.prototype=kt,kt.Parser=ht,new ht}();_0t.parser=_0t;const R$e=_0t;var C0t={},j$e={get exports(){return C0t},set exports(i){C0t=i}};(function(i,a){(function(f,p){i.exports=p()})(b0,function(){var f="day";return function(p,v,m){var b=function(D){return D.add(4-D.isoWeekday(),f)},E=v.prototype;E.isoWeekYear=function(){return b(this).year()},E.isoWeek=function(D){if(!this.$utils().u(D))return this.add(7*(D-this.isoWeek()),f);var P,B,j,R,H=b(this),Y=(P=this.isoWeekYear(),B=this.$u,j=(B?m.utc:m)().year(P).startOf("year"),R=4-j.isoWeekday(),j.isoWeekday()>4&&(R+=7),j.add(R,f));return H.diff(Y,"week")+1},E.isoWeekday=function(D){return this.$utils().u(D)?this.day()||7:this.day(this.day()%7?D:D-7)};var C=E.startOf;E.startOf=function(D,P){var B=this.$utils(),j=!!B.u(P)||P;return B.p(D)==="isoweek"?j?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):C.bind(this)(D,P)}}})})(j$e);const $$e=C0t;var S0t={},z$e={get exports(){return S0t},set exports(i){S0t=i}};(function(i,a){(function(f,p){i.exports=p()})(b0,function(){var f={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},p=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,v=/\d\d/,m=/\d\d?/,b=/\d*[^-_:/,()\s\d]+/,E={},C=function(Y){return(Y=+Y)+(Y>68?1900:2e3)},D=function(Y){return function(it){this[Y]=+it}},P=[/[+-]\d\d:?(\d\d)?|Z/,function(Y){(this.zone||(this.zone={})).offset=function(it){if(!it||it==="Z")return 0;var nt=it.match(/([+-]|\d\d)/g),st=60*nt[1]+(+nt[2]||0);return st===0?0:nt[0]==="+"?-st:st}(Y)}],B=function(Y){var it=E[Y];return it&&(it.indexOf?it:it.s.concat(it.f))},j=function(Y,it){var nt,st=E.meridiem;if(st){for(var pt=1;pt<=24;pt+=1)if(Y.indexOf(st(pt,0,it))>-1){nt=pt>12;break}}else nt=Y===(it?"pm":"PM");return nt},R={A:[b,function(Y){this.afternoon=j(Y,!1)}],a:[b,function(Y){this.afternoon=j(Y,!0)}],S:[/\d/,function(Y){this.milliseconds=100*+Y}],SS:[v,function(Y){this.milliseconds=10*+Y}],SSS:[/\d{3}/,function(Y){this.milliseconds=+Y}],s:[m,D("seconds")],ss:[m,D("seconds")],m:[m,D("minutes")],mm:[m,D("minutes")],H:[m,D("hours")],h:[m,D("hours")],HH:[m,D("hours")],hh:[m,D("hours")],D:[m,D("day")],DD:[v,D("day")],Do:[b,function(Y){var it=E.ordinal,nt=Y.match(/\d+/);if(this.day=nt[0],it)for(var st=1;st<=31;st+=1)it(st).replace(/\[|\]/g,"")===Y&&(this.day=st)}],M:[m,D("month")],MM:[v,D("month")],MMM:[b,function(Y){var it=B("months"),nt=(B("monthsShort")||it.map(function(st){return st.slice(0,3)})).indexOf(Y)+1;if(nt<1)throw new Error;this.month=nt%12||nt}],MMMM:[b,function(Y){var it=B("months").indexOf(Y)+1;if(it<1)throw new Error;this.month=it%12||it}],Y:[/[+-]?\d+/,D("year")],YY:[v,function(Y){this.year=C(Y)}],YYYY:[/\d{4}/,D("year")],Z:P,ZZ:P};function H(Y){var it,nt;it=Y,nt=E&&E.formats;for(var st=(Y=it.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(rt,wt,gt){var lt=gt&>.toUpperCase();return wt||nt[gt]||f[gt]||nt[lt].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(_t,X,Rt){return X||Rt.slice(1)})})).match(p),pt=st.length,Tt=0;Tt-1)return new Date((de==="X"?1e3:1)*ft);var ae=H(de)(ft),Wt=ae.year,It=ae.month,Nt=ae.day,me=ae.hours,Ue=ae.minutes,_n=ae.seconds,_e=ae.milliseconds,rr=ae.zone,Te=new Date,ne=Nt||(Wt||It?1:Te.getDate()),Ee=Wt||Te.getFullYear(),ye=0;Wt&&!It||(ye=It>0?It-1:Te.getMonth());var Vt=me||0,Ae=Ue||0,Gt=_n||0,un=_e||0;return rr?new Date(Date.UTC(Ee,ye,ne,Vt,Ae,Gt,un+60*rr.offset*1e3)):J?new Date(Date.UTC(Ee,ye,ne,Vt,Ae,Gt,un)):new Date(Ee,ye,ne,Vt,Ae,Gt,un)}catch{return new Date("")}}(kt,mt,yt),this.init(),lt&<!==!0&&(this.$L=this.locale(lt).$L),gt&&kt!=this.format(mt)&&(this.$d=new Date("")),E={}}else if(mt instanceof Array)for(var _t=mt.length,X=1;X<=_t;X+=1){ht[1]=mt[X-1];var Rt=nt.apply(this,ht);if(Rt.isValid()){this.$d=Rt.$d,this.$L=Rt.$L,this.init();break}X===_t&&(this.$d=new Date(""))}else pt.call(this,Tt)}}})})(z$e);const q$e=S0t;var A0t={},H$e={get exports(){return A0t},set exports(i){A0t=i}};(function(i,a){(function(f,p){i.exports=p()})(b0,function(){return function(f,p){var v=p.prototype,m=v.format;v.format=function(b){var E=this,C=this.$locale();if(!this.isValid())return m.bind(this)(b);var D=this.$utils(),P=(b||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(B){switch(B){case"Q":return Math.ceil((E.$M+1)/3);case"Do":return C.ordinal(E.$D);case"gggg":return E.weekYear();case"GGGG":return E.isoWeekYear();case"wo":return C.ordinal(E.week(),"W");case"w":case"ww":return D.s(E.week(),B==="w"?1:2,"0");case"W":case"WW":return D.s(E.isoWeek(),B==="W"?1:2,"0");case"k":case"kk":return D.s(String(E.$H===0?24:E.$H),B==="k"?1:2,"0");case"X":return Math.floor(E.$d.getTime()/1e3);case"x":return E.$d.getTime();case"z":return"["+E.offsetName()+"]";case"zzz":return"["+E.offsetName("long")+"]";default:return B}});return m.bind(this)(P)}}})})(H$e);const V$e=A0t;ip.extend($$e),ip.extend(q$e),ip.extend(V$e);let v3="",L0t="",M0t,D0t="",mP=[],yP=[],I0t={},O0t=[],bK=[],iL="",N0t="";const xBt=["active","done","crit","milestone"];let P0t=[],xP=!1,F0t=!1,B0t=0;const G$e=function(i,a,f){d1.parseDirective(this,i,a,f)},U$e=function(){O0t=[],bK=[],iL="",P0t=[],vK=0,j0t=void 0,wK=void 0,b1=[],v3="",L0t="",N0t="",M0t=void 0,D0t="",mP=[],yP=[],xP=!1,F0t=!1,B0t=0,I0t={},cg()},W$e=function(i){L0t=i},K$e=function(){return L0t},Y$e=function(i){M0t=i},X$e=function(){return M0t},Q$e=function(i){D0t=i},Z$e=function(){return D0t},J$e=function(i){v3=i},tze=function(){xP=!0},eze=function(){return xP},nze=function(){F0t=!0},rze=function(){return F0t},ize=function(i){N0t=i},sze=function(){return N0t},aze=function(){return v3},oze=function(i){mP=i.toLowerCase().split(/[\s,]+/)},cze=function(){return mP},uze=function(i){yP=i.toLowerCase().split(/[\s,]+/)},lze=function(){return yP},hze=function(){return I0t},fze=function(i){iL=i,O0t.push(i)},dze=function(){return O0t},gze=function(){let i=SBt();const a=10;let f=0;for(;!i&&f=6&&f.includes("weekends")||f.includes(i.format("dddd").toLowerCase())?!0:f.includes(i.format(a.trim()))},EBt=function(i,a,f,p){if(!f.length||i.manualEndTime)return;let v;i.startTime instanceof Date?v=ip(i.startTime):v=ip(i.startTime,a,!0),v=v.add(1,"d");let m;i.endTime instanceof Date?m=ip(i.endTime):m=ip(i.endTime,a,!0);const[b,E]=pze(v,m,a,f,p);i.endTime=b.toDate(),i.renderEndTime=E},pze=function(i,a,f,p,v){let m=!1,b=null;for(;i<=a;)m||(b=a.toDate()),m=kBt(i,f,p,v),m&&(a=a.add(1,"d")),i=i.add(1,"d");return[a,b]},R0t=function(i,a,f){f=f.trim();const v=/^after\s+([\d\w- ]+)/.exec(f.trim());if(v!==null){let b=null;if(v[1].split(" ").forEach(function(E){let C=aL(E);C!==void 0&&(b?C.endTime>b.endTime&&(b=C):b=C)}),b)return b.endTime;{const E=new Date;return E.setHours(0,0,0,0),E}}let m=ip(f,a.trim(),!0);if(m.isValid())return m.toDate();{zt.debug("Invalid date:"+f),zt.debug("With date format:"+a.trim());const b=new Date(f);if(b===void 0||isNaN(b.getTime())||b.getFullYear()<-1e4||b.getFullYear()>1e4)throw new Error("Invalid date:"+f);return b}},TBt=function(i){const a=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(i.trim());return a!==null?[Number.parseFloat(a[1]),a[2]]:[NaN,"ms"]},_Bt=function(i,a,f,p=!1){f=f.trim();let v=ip(f,a.trim(),!0);if(v.isValid())return p&&(v=v.add(1,"d")),v.toDate();let m=ip(i);const[b,E]=TBt(f);if(!Number.isNaN(b)){const C=m.add(b,E);C.isValid()&&(m=C)}return m.toDate()};let vK=0;const sL=function(i){return i===void 0?(vK=vK+1,"task"+vK):i},bze=function(i,a){let f;a.substr(0,1)===":"?f=a.substr(1,a.length):f=a;const p=f.split(","),v={};MBt(p,v,xBt);for(let b=0;b{window.open(f,"_self")}),I0t[p]=f)}),ABt(i,"clickable")},ABt=function(i,a){i.split(",").forEach(function(f){let p=aL(f);p!==void 0&&p.classes.push(a)})},xze=function(i,a,f){if(Oe().securityLevel!=="loose"||a===void 0)return;let p=[];if(typeof f=="string"){p=f.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let m=0;m{lo.runFunc(a,...p)})},LBt=function(i,a){P0t.push(function(){const f=document.querySelector(`[id="${i}"]`);f!==null&&f.addEventListener("click",function(){a()})},function(){const f=document.querySelector(`[id="${i}-text"]`);f!==null&&f.addEventListener("click",function(){a()})})},kze={parseDirective:G$e,getConfig:()=>Oe().gantt,clear:U$e,setDateFormat:J$e,getDateFormat:aze,enableInclusiveEndDates:tze,endDatesAreInclusive:eze,enableTopAxis:nze,topAxisEnabled:rze,setAxisFormat:W$e,getAxisFormat:K$e,setTickInterval:Y$e,getTickInterval:X$e,setTodayMarker:Q$e,getTodayMarker:Z$e,setAccTitle:ug,getAccTitle:op,setDiagramTitle:Kb,getDiagramTitle:O2,setDisplayMode:ize,getDisplayMode:sze,setAccDescription:cp,getAccDescription:up,addSection:fze,getSections:dze,getTasks:gze,addTask:wze,findTaskById:aL,addTaskOrg:mze,setIncludes:oze,getIncludes:cze,setExcludes:uze,getExcludes:lze,setClickEvent:function(i,a,f){i.split(",").forEach(function(p){xze(p,a,f)}),ABt(i,"clickable")},setLink:yze,getLinks:hze,bindFunctions:function(i){P0t.forEach(function(a){a(i)})},parseDuration:TBt,isInvalidDate:kBt};function MBt(i,a,f){let p=!0;for(;p;)p=!1,f.forEach(function(v){const m="^\\s*"+v+"\\s*$",b=new RegExp(m);i[0].match(b)&&(a[v]=!0,i.shift(1),p=!0)})}const Eze=function(){zt.debug("Something is calling, setConf, remove the call")},Tze=(i,a)=>{let f=[...i].map(()=>-1/0),p=[...i].sort((m,b)=>m.startTime-b.startTime||m.order-b.order),v=0;for(const m of p)for(let b=0;b=f[b]){f[b]=m.endTime,m.order=b+a,b>v&&(v=b);break}return v};let L5;const _ze=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:R$e,db:kze,renderer:{setConf:Eze,draw:function(i,a,f,p){const v=Oe().gantt,m=Oe().securityLevel;let b;m==="sandbox"&&(b=Mr("#i"+a));const E=Mr(m==="sandbox"?b.nodes()[0].contentDocument.body:"body"),C=m==="sandbox"?b.nodes()[0].contentDocument:document,D=C.getElementById(a);L5=D.parentElement.offsetWidth,L5===void 0&&(L5=1200),v.useWidth!==void 0&&(L5=v.useWidth);const P=p.db.getTasks();let B=[];for(const mt of P)B.push(mt.type);B=ht(B);const j={};let R=2*v.topPadding;if(p.db.getDisplayMode()==="compact"||v.displayMode==="compact"){const mt={};for(const wt of P)mt[wt.section]===void 0?mt[wt.section]=[wt]:mt[wt.section].push(wt);let rt=0;for(const wt of Object.keys(mt)){const gt=Tze(mt[wt],rt)+1;rt+=gt,R+=gt*(v.barHeight+v.barGap),j[wt]=gt}}else{R+=P.length*(v.barHeight+v.barGap);for(const mt of B)j[mt]=P.filter(rt=>rt.type===mt).length}D.setAttribute("viewBox","0 0 "+L5+" "+R);const H=E.select(`[id="${a}"]`),Y=j7e().domain([m5e(P,function(mt){return mt.startTime}),w5e(P,function(mt){return mt.endTime})]).rangeRound([0,L5-v.leftPadding-v.rightPadding]);function it(mt,rt){const wt=mt.startTime,gt=rt.startTime;let lt=0;return wt>gt?lt=1:wtWt.order))].map(Wt=>mt.find(It=>It.order===Wt));H.append("g").selectAll("rect").data(ft).enter().append("rect").attr("x",0).attr("y",function(Wt,It){return It=Wt.order,It*rt+wt-2}).attr("width",function(){return X-v.rightPadding/2}).attr("height",rt).attr("class",function(Wt){for(const[It,Nt]of B.entries())if(Wt.type===Nt)return"section section"+It%v.numberSectionStyles;return"section section0"});const de=H.append("g").selectAll("rect").data(mt).enter(),J=p.db.getLinks();if(de.append("rect").attr("id",function(Wt){return Wt.id}).attr("rx",3).attr("ry",3).attr("x",function(Wt){return Wt.milestone?Y(Wt.startTime)+gt+.5*(Y(Wt.endTime)-Y(Wt.startTime))-.5*lt:Y(Wt.startTime)+gt}).attr("y",function(Wt,It){return It=Wt.order,It*rt+wt}).attr("width",function(Wt){return Wt.milestone?lt:Y(Wt.renderEndTime||Wt.endTime)-Y(Wt.startTime)}).attr("height",lt).attr("transform-origin",function(Wt,It){return It=Wt.order,(Y(Wt.startTime)+gt+.5*(Y(Wt.endTime)-Y(Wt.startTime))).toString()+"px "+(It*rt+wt+.5*lt).toString()+"px"}).attr("class",function(Wt){const It="task";let Nt="";Wt.classes.length>0&&(Nt=Wt.classes.join(" "));let me=0;for(const[_n,_e]of B.entries())Wt.type===_e&&(me=_n%v.numberSectionStyles);let Ue="";return Wt.active?Wt.crit?Ue+=" activeCrit":Ue=" active":Wt.done?Wt.crit?Ue=" doneCrit":Ue=" done":Wt.crit&&(Ue+=" crit"),Ue.length===0&&(Ue=" task"),Wt.milestone&&(Ue=" milestone "+Ue),Ue+=me,Ue+=" "+Nt,It+Ue}),de.append("text").attr("id",function(Wt){return Wt.id+"-text"}).text(function(Wt){return Wt.task}).attr("font-size",v.fontSize).attr("x",function(Wt){let It=Y(Wt.startTime),Nt=Y(Wt.renderEndTime||Wt.endTime);Wt.milestone&&(It+=.5*(Y(Wt.endTime)-Y(Wt.startTime))-.5*lt),Wt.milestone&&(Nt=It+lt);const me=this.getBBox().width;return me>Nt-It?Nt+me+1.5*v.leftPadding>X?It+gt-5:Nt+gt+5:(Nt-It)/2+It+gt}).attr("y",function(Wt,It){return It=Wt.order,It*rt+v.barHeight/2+(v.fontSize/2-2)+wt}).attr("text-height",lt).attr("class",function(Wt){const It=Y(Wt.startTime);let Nt=Y(Wt.endTime);Wt.milestone&&(Nt=It+lt);const me=this.getBBox().width;let Ue="";Wt.classes.length>0&&(Ue=Wt.classes.join(" "));let _n=0;for(const[rr,Te]of B.entries())Wt.type===Te&&(_n=rr%v.numberSectionStyles);let _e="";return Wt.active&&(Wt.crit?_e="activeCritText"+_n:_e="activeText"+_n),Wt.done?Wt.crit?_e=_e+" doneCritText"+_n:_e=_e+" doneText"+_n:Wt.crit&&(_e=_e+" critText"+_n),Wt.milestone&&(_e+=" milestoneText"),me>Nt-It?Nt+me+1.5*v.leftPadding>X?Ue+" taskTextOutsideLeft taskTextOutside"+_n+" "+_e:Ue+" taskTextOutsideRight taskTextOutside"+_n+" "+_e+" width-"+me:Ue+" taskText taskText"+_n+" "+_e+" width-"+me}),Oe().securityLevel==="sandbox"){let Wt;Wt=Mr("#i"+a);const It=Wt.nodes()[0].contentDocument;de.filter(function(Nt){return J[Nt.id]!==void 0}).each(function(Nt){var me=It.querySelector("#"+Nt.id),Ue=It.querySelector("#"+Nt.id+"-text");const _n=me.parentNode;var _e=It.createElement("a");_e.setAttribute("xlink:href",J[Nt.id]),_e.setAttribute("target","_top"),_n.appendChild(_e),_e.appendChild(me),_e.appendChild(Ue)})}}function pt(mt,rt,wt,gt,lt,_t,X,Rt){const ft=_t.reduce((me,{startTime:Ue})=>me?Math.min(me,Ue):Ue,0),de=_t.reduce((me,{endTime:Ue})=>me?Math.max(me,Ue):Ue,0),J=p.db.getDateFormat();if(!ft||!de)return;const ae=[];let Wt=null,It=ip(ft);for(;It.valueOf()<=de;)p.db.isInvalidDate(It,J,X,Rt)?Wt?Wt.end=It:Wt={start:It,end:It}:Wt&&(ae.push(Wt),Wt=null),It=It.add(1,"d");H.append("g").selectAll("rect").data(ae).enter().append("rect").attr("id",function(me){return"exclude-"+me.start.format("YYYY-MM-DD")}).attr("x",function(me){return Y(me.start)+wt}).attr("y",v.gridLineStartPadding).attr("width",function(me){const Ue=me.end.add(1,"day");return Y(Ue)-Y(me.start)}).attr("height",lt-rt-v.gridLineStartPadding).attr("transform-origin",function(me,Ue){return(Y(me.start)+wt+.5*(Y(me.end)-Y(me.start))).toString()+"px "+(Ue*mt+.5*lt).toString()+"px"}).attr("class","exclude-range")}function Tt(mt,rt,wt,gt){let lt=S5e(Y).tickSize(-gt+rt+v.gridLineStartPadding).tickFormat(PU(p.db.getAxisFormat()||v.axisFormat||"%Y-%m-%d"));const X=/^([1-9]\d*)(minute|hour|day|week|month)$/.exec(p.db.getTickInterval()||v.tickInterval);if(X!==null){const Rt=X[1];switch(X[2]){case"minute":lt.ticks(MU.every(Rt));break;case"hour":lt.ticks(DU.every(Rt));break;case"day":lt.ticks(mA.every(Rt));break;case"week":lt.ticks(yA.every(Rt));break;case"month":lt.ticks(OU.every(Rt));break}}if(H.append("g").attr("class","grid").attr("transform","translate("+mt+", "+(gt-50)+")").call(lt).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),p.db.topAxisEnabled()||v.topAxis){let Rt=C5e(Y).tickSize(-gt+rt+v.gridLineStartPadding).tickFormat(PU(p.db.getAxisFormat()||v.axisFormat||"%Y-%m-%d"));if(X!==null){const ft=X[1];switch(X[2]){case"minute":Rt.ticks(MU.every(ft));break;case"hour":Rt.ticks(DU.every(ft));break;case"day":Rt.ticks(mA.every(ft));break;case"week":Rt.ticks(yA.every(ft));break;case"month":Rt.ticks(OU.every(ft));break}}H.append("g").attr("class","grid").attr("transform","translate("+mt+", "+rt+")").call(Rt).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}function kt(mt,rt){let wt=0;const gt=Object.keys(j).map(lt=>[lt,j[lt]]);H.append("g").selectAll("text").data(gt).enter().append(function(lt){const _t=lt[0].split(yi.lineBreakRegex),X=-(_t.length-1)/2,Rt=C.createElementNS("http://www.w3.org/2000/svg","text");Rt.setAttribute("dy",X+"em");for(const[ft,de]of _t.entries()){const J=C.createElementNS("http://www.w3.org/2000/svg","tspan");J.setAttribute("alignment-baseline","central"),J.setAttribute("x","10"),ft>0&&J.setAttribute("dy","1em"),J.textContent=de,Rt.appendChild(J)}return Rt}).attr("x",10).attr("y",function(lt,_t){if(_t>0)for(let X=0;X<_t;X++)return wt+=gt[_t-1][1],lt[1]*mt/2+wt*mt+rt;else return lt[1]*mt/2+rt}).attr("font-size",v.sectionFontSize).attr("class",function(lt){for(const[_t,X]of B.entries())if(lt[0]===X)return"sectionTitle sectionTitle"+_t%v.numberSectionStyles;return"sectionTitle"})}function yt(mt,rt,wt,gt){const lt=p.db.getTodayMarker();if(lt==="off")return;const _t=H.append("g").attr("class","today"),X=new Date,Rt=_t.append("line");Rt.attr("x1",Y(X)+mt).attr("x2",Y(X)+mt).attr("y1",v.titleTopMargin).attr("y2",gt-v.titleTopMargin).attr("class","today"),lt!==""&&Rt.attr("style",lt.replace(/,/g,";"))}function ht(mt){const rt={},wt=[];for(let gt=0,lt=mt.length;gt` + fill: ${e.textColor}; + } +`,"getStyles"),Nut=q$t});var Iut={};xr(Iut,{diagram:()=>X$t});var X$t,Out=R(()=>{"use strict";Sut();LO();Rut();Mut();X$t={parser:Cut,db:WE,renderer:Dut,styles:Nut}});var DO,Fut,zut=R(()=>{"use strict";DO=function(){var e=o(function(I,C,O,D){for(O=O||{},D=I.length;D--;O[I[D]]=C);return O},"o"),t=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],r=[1,26],n=[1,27],i=[1,28],a=[1,29],s=[1,30],l=[1,31],u=[1,32],h=[1,33],f=[1,34],d=[1,9],p=[1,10],m=[1,11],g=[1,12],y=[1,13],v=[1,14],x=[1,15],b=[1,16],w=[1,19],S=[1,20],T=[1,21],E=[1,22],_=[1,23],A=[1,25],L=[1,35],M={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:o(function(C,O,D,P,F,B,G){var z=B.length-1;switch(F){case 1:return B[z-1];case 2:this.$=[];break;case 3:B[z-1].push(B[z]),this.$=B[z-1];break;case 4:case 5:this.$=B[z];break;case 6:case 7:this.$=[];break;case 8:P.setWeekday("monday");break;case 9:P.setWeekday("tuesday");break;case 10:P.setWeekday("wednesday");break;case 11:P.setWeekday("thursday");break;case 12:P.setWeekday("friday");break;case 13:P.setWeekday("saturday");break;case 14:P.setWeekday("sunday");break;case 15:P.setWeekend("friday");break;case 16:P.setWeekend("saturday");break;case 17:P.setDateFormat(B[z].substr(11)),this.$=B[z].substr(11);break;case 18:P.enableInclusiveEndDates(),this.$=B[z].substr(18);break;case 19:P.TopAxis(),this.$=B[z].substr(8);break;case 20:P.setAxisFormat(B[z].substr(11)),this.$=B[z].substr(11);break;case 21:P.setTickInterval(B[z].substr(13)),this.$=B[z].substr(13);break;case 22:P.setExcludes(B[z].substr(9)),this.$=B[z].substr(9);break;case 23:P.setIncludes(B[z].substr(9)),this.$=B[z].substr(9);break;case 24:P.setTodayMarker(B[z].substr(12)),this.$=B[z].substr(12);break;case 27:P.setDiagramTitle(B[z].substr(6)),this.$=B[z].substr(6);break;case 28:this.$=B[z].trim(),P.setAccTitle(this.$);break;case 29:case 30:this.$=B[z].trim(),P.setAccDescription(this.$);break;case 31:P.addSection(B[z].substr(8)),this.$=B[z].substr(8);break;case 33:P.addTask(B[z-1],B[z]),this.$="task";break;case 34:this.$=B[z-1],P.setClickEvent(B[z-1],B[z],null);break;case 35:this.$=B[z-2],P.setClickEvent(B[z-2],B[z-1],B[z]);break;case 36:this.$=B[z-2],P.setClickEvent(B[z-2],B[z-1],null),P.setLink(B[z-2],B[z]);break;case 37:this.$=B[z-3],P.setClickEvent(B[z-3],B[z-2],B[z-1]),P.setLink(B[z-3],B[z]);break;case 38:this.$=B[z-2],P.setClickEvent(B[z-2],B[z],null),P.setLink(B[z-2],B[z-1]);break;case 39:this.$=B[z-3],P.setClickEvent(B[z-3],B[z-1],B[z]),P.setLink(B[z-3],B[z-2]);break;case 40:this.$=B[z-1],P.setLink(B[z-1],B[z]);break;case 41:case 47:this.$=B[z-1]+" "+B[z];break;case 42:case 43:case 45:this.$=B[z-2]+" "+B[z-1]+" "+B[z];break;case 44:case 46:this.$=B[z-3]+" "+B[z-2]+" "+B[z-1]+" "+B[z];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:r,13:n,14:i,15:a,16:s,17:l,18:u,19:18,20:h,21:f,22:d,23:p,24:m,25:g,26:y,27:v,28:x,29:b,30:w,31:S,33:T,35:E,36:_,37:24,38:A,40:L},e(t,[2,7],{1:[2,1]}),e(t,[2,3]),{9:36,11:17,12:r,13:n,14:i,15:a,16:s,17:l,18:u,19:18,20:h,21:f,22:d,23:p,24:m,25:g,26:y,27:v,28:x,29:b,30:w,31:S,33:T,35:E,36:_,37:24,38:A,40:L},e(t,[2,5]),e(t,[2,6]),e(t,[2,17]),e(t,[2,18]),e(t,[2,19]),e(t,[2,20]),e(t,[2,21]),e(t,[2,22]),e(t,[2,23]),e(t,[2,24]),e(t,[2,25]),e(t,[2,26]),e(t,[2,27]),{32:[1,37]},{34:[1,38]},e(t,[2,30]),e(t,[2,31]),e(t,[2,32]),{39:[1,39]},e(t,[2,8]),e(t,[2,9]),e(t,[2,10]),e(t,[2,11]),e(t,[2,12]),e(t,[2,13]),e(t,[2,14]),e(t,[2,15]),e(t,[2,16]),{41:[1,40],43:[1,41]},e(t,[2,4]),e(t,[2,28]),e(t,[2,29]),e(t,[2,33]),e(t,[2,34],{42:[1,42],43:[1,43]}),e(t,[2,40],{41:[1,44]}),e(t,[2,35],{43:[1,45]}),e(t,[2,36]),e(t,[2,38],{42:[1,46]}),e(t,[2,37]),e(t,[2,39])],defaultActions:{},parseError:o(function(C,O){if(O.recoverable)this.trace(C);else{var D=new Error(C);throw D.hash=O,D}},"parseError"),parse:o(function(C){var O=this,D=[0],P=[],F=[null],B=[],G=this.table,z="",W=0,Q=0,j=0,at=2,X=1,J=B.slice.call(arguments,1),Z=Object.create(this.lexer),H={yy:{}};for(var q in this.yy)Object.prototype.hasOwnProperty.call(this.yy,q)&&(H.yy[q]=this.yy[q]);Z.setInput(C,H.yy),H.yy.lexer=Z,H.yy.parser=this,typeof Z.yylloc>"u"&&(Z.yylloc={});var K=Z.yylloc;B.push(K);var ot=Z.options&&Z.options.ranges;typeof H.yy.parseError=="function"?this.parseError=H.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ct(mt){D.length=D.length-2*mt,F.length=F.length-mt,B.length=B.length-mt}o(ct,"popStack");function ut(){var mt;return mt=P.pop()||Z.lex()||X,typeof mt!="number"&&(mt instanceof Array&&(P=mt,mt=P.pop()),mt=O.symbols_[mt]||mt),mt}o(ut,"lex");for(var et,Mt,it,wt,Ot,St,Vt={},Pt,_t,dt,Y;;){if(it=D[D.length-1],this.defaultActions[it]?wt=this.defaultActions[it]:((et===null||typeof et>"u")&&(et=ut()),wt=G[it]&&G[it][et]),typeof wt>"u"||!wt.length||!wt[0]){var ft="";Y=[];for(Pt in G[it])this.terminals_[Pt]&&Pt>at&&Y.push("'"+this.terminals_[Pt]+"'");Z.showPosition?ft="Parse error on line "+(W+1)+`: +`+Z.showPosition()+` +Expecting `+Y.join(", ")+", got '"+(this.terminals_[et]||et)+"'":ft="Parse error on line "+(W+1)+": Unexpected "+(et==X?"end of input":"'"+(this.terminals_[et]||et)+"'"),this.parseError(ft,{text:Z.match,token:this.terminals_[et]||et,line:Z.yylineno,loc:K,expected:Y})}if(wt[0]instanceof Array&&wt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+it+", token: "+et);switch(wt[0]){case 1:D.push(et),F.push(Z.yytext),B.push(Z.yylloc),D.push(wt[1]),et=null,Mt?(et=Mt,Mt=null):(Q=Z.yyleng,z=Z.yytext,W=Z.yylineno,K=Z.yylloc,j>0&&j--);break;case 2:if(_t=this.productions_[wt[1]][1],Vt.$=F[F.length-_t],Vt._$={first_line:B[B.length-(_t||1)].first_line,last_line:B[B.length-1].last_line,first_column:B[B.length-(_t||1)].first_column,last_column:B[B.length-1].last_column},ot&&(Vt._$.range=[B[B.length-(_t||1)].range[0],B[B.length-1].range[1]]),St=this.performAction.apply(Vt,[z,Q,W,H.yy,wt[1],F,B].concat(J)),typeof St<"u")return St;_t&&(D=D.slice(0,-1*_t*2),F=F.slice(0,-1*_t),B=B.slice(0,-1*_t)),D.push(this.productions_[wt[1]][0]),F.push(Vt.$),B.push(Vt._$),dt=G[D[D.length-2]][D[D.length-1]],D.push(dt);break;case 3:return!0}}return!0},"parse")},N=function(){var I={EOF:1,parseError:o(function(O,D){if(this.yy.parser)this.yy.parser.parseError(O,D);else throw new Error(O)},"parseError"),setInput:o(function(C,O){return this.yy=O||this.yy||{},this._input=C,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var C=this._input[0];this.yytext+=C,this.yyleng++,this.offset++,this.match+=C,this.matched+=C;var O=C.match(/(?:\r\n?|\n).*/g);return O?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),C},"input"),unput:o(function(C){var O=C.length,D=C.split(/(?:\r\n?|\n)/g);this._input=C+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-O),this.offset-=O;var P=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),D.length-1&&(this.yylineno-=D.length-1);var F=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:D?(D.length===P.length?this.yylloc.first_column:0)+P[P.length-D.length].length-D[0].length:this.yylloc.first_column-O},this.options.ranges&&(this.yylloc.range=[F[0],F[0]+this.yyleng-O]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(C){this.unput(this.match.slice(C))},"less"),pastInput:o(function(){var C=this.matched.substr(0,this.matched.length-this.match.length);return(C.length>20?"...":"")+C.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var C=this.match;return C.length<20&&(C+=this._input.substr(0,20-C.length)),(C.substr(0,20)+(C.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var C=this.pastInput(),O=new Array(C.length+1).join("-");return C+this.upcomingInput()+` +`+O+"^"},"showPosition"),test_match:o(function(C,O){var D,P,F;if(this.options.backtrack_lexer&&(F={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(F.yylloc.range=this.yylloc.range.slice(0))),P=C[0].match(/(?:\r\n?|\n).*/g),P&&(this.yylineno+=P.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:P?P[P.length-1].length-P[P.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+C[0].length},this.yytext+=C[0],this.match+=C[0],this.matches=C,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(C[0].length),this.matched+=C[0],D=this.performAction.call(this,this.yy,this,O,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),D)return D;if(this._backtrack){for(var B in F)this[B]=F[B];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var C,O,D,P;this._more||(this.yytext="",this.match="");for(var F=this._currentRules(),B=0;BO[0].length)){if(O=D,P=B,this.options.backtrack_lexer){if(C=this.test_match(D,F[B]),C!==!1)return C;if(this._backtrack){O=!1;continue}else return!1}else if(!this.options.flex)break}return O?(C=this.test_match(O,F[P]),C!==!1?C:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var O=this.next();return O||this.lex()},"lex"),begin:o(function(O){this.conditionStack.push(O)},"begin"),popState:o(function(){var O=this.conditionStack.length-1;return O>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(O){return O=this.conditionStack.length-1-Math.abs(O||0),O>=0?this.conditionStack[O]:"INITIAL"},"topState"),pushState:o(function(O){this.begin(O)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:o(function(O,D,P,F){var B=F;switch(P){case 0:return this.begin("open_directive"),"open_directive";break;case 1:return this.begin("acc_title"),31;break;case 2:return this.popState(),"acc_title_value";break;case 3:return this.begin("acc_descr"),33;break;case 4:return this.popState(),"acc_descr_value";break;case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:break;case 9:break;case 10:break;case 11:return 10;case 12:break;case 13:break;case 14:this.begin("href");break;case 15:this.popState();break;case 16:return 43;case 17:this.begin("callbackname");break;case 18:this.popState();break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 41;case 21:this.popState();break;case 22:return 42;case 23:this.begin("click");break;case 24:this.popState();break;case 25:return 40;case 26:return 4;case 27:return 22;case 28:return 23;case 29:return 24;case 30:return 25;case 31:return 26;case 32:return 28;case 33:return 27;case 34:return 29;case 35:return 12;case 36:return 13;case 37:return 14;case 38:return 15;case 39:return 16;case 40:return 17;case 41:return 18;case 42:return 20;case 43:return 21;case 44:return"date";case 45:return 30;case 46:return"accDescription";case 47:return 36;case 48:return 38;case 49:return 39;case 50:return":";case 51:return 6;case 52:return"INVALID"}},"anonymous"),rules:[/^(?:%%\{)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:weekday\s+monday\b)/i,/^(?:weekday\s+tuesday\b)/i,/^(?:weekday\s+wednesday\b)/i,/^(?:weekday\s+thursday\b)/i,/^(?:weekday\s+friday\b)/i,/^(?:weekday\s+saturday\b)/i,/^(?:weekday\s+sunday\b)/i,/^(?:weekend\s+friday\b)/i,/^(?:weekend\s+saturday\b)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^\n]+)/i,/^(?:[^:\n]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},callbackargs:{rules:[21,22],inclusive:!1},callbackname:{rules:[18,19,20],inclusive:!1},href:{rules:[15,16],inclusive:!1},click:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,17,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}};return I}();M.lexer=N;function k(){this.yy={}}return o(k,"Parser"),k.prototype=M,M.Parser=k,new k}();DO.parser=DO;Fut=DO});var $ut=Ti((RO,NO)=>{"use strict";(function(e,t){typeof RO=="object"&&typeof NO<"u"?NO.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_isoWeek=t()})(RO,function(){"use strict";var e="day";return function(t,r,n){var i=o(function(l){return l.add(4-l.isoWeekday(),e)},"a"),a=r.prototype;a.isoWeekYear=function(){return i(this).year()},a.isoWeek=function(l){if(!this.$utils().u(l))return this.add(7*(l-this.isoWeek()),e);var u,h,f,d,p=i(this),m=(u=this.isoWeekYear(),h=this.$u,f=(h?n.utc:n)().year(u).startOf("year"),d=4-f.isoWeekday(),f.isoWeekday()>4&&(d+=7),f.add(d,e));return p.diff(m,"week")+1},a.isoWeekday=function(l){return this.$utils().u(l)?this.day()||7:this.day(this.day()%7?l:l-7)};var s=a.startOf;a.startOf=function(l,u){var h=this.$utils(),f=!!h.u(u)||u;return h.p(l)==="isoweek"?f?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):s.bind(this)(l,u)}}})});var Gut=Ti((MO,IO)=>{"use strict";(function(e,t){typeof MO=="object"&&typeof IO<"u"?IO.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_customParseFormat=t()})(MO,function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d/,n=/\d\d/,i=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,s={},l=o(function(g){return(g=+g)+(g>68?1900:2e3)},"a"),u=o(function(g){return function(y){this[g]=+y}},"f"),h=[/[+-]\d\d:?(\d\d)?|Z/,function(g){(this.zone||(this.zone={})).offset=function(y){if(!y||y==="Z")return 0;var v=y.match(/([+-]|\d\d)/g),x=60*v[1]+(+v[2]||0);return x===0?0:v[0]==="+"?-x:x}(g)}],f=o(function(g){var y=s[g];return y&&(y.indexOf?y:y.s.concat(y.f))},"u"),d=o(function(g,y){var v,x=s.meridiem;if(x){for(var b=1;b<=24;b+=1)if(g.indexOf(x(b,0,y))>-1){v=b>12;break}}else v=g===(y?"pm":"PM");return v},"d"),p={A:[a,function(g){this.afternoon=d(g,!1)}],a:[a,function(g){this.afternoon=d(g,!0)}],Q:[r,function(g){this.month=3*(g-1)+1}],S:[r,function(g){this.milliseconds=100*+g}],SS:[n,function(g){this.milliseconds=10*+g}],SSS:[/\d{3}/,function(g){this.milliseconds=+g}],s:[i,u("seconds")],ss:[i,u("seconds")],m:[i,u("minutes")],mm:[i,u("minutes")],H:[i,u("hours")],h:[i,u("hours")],HH:[i,u("hours")],hh:[i,u("hours")],D:[i,u("day")],DD:[n,u("day")],Do:[a,function(g){var y=s.ordinal,v=g.match(/\d+/);if(this.day=v[0],y)for(var x=1;x<=31;x+=1)y(x).replace(/\[|\]/g,"")===g&&(this.day=x)}],w:[i,u("week")],ww:[n,u("week")],M:[i,u("month")],MM:[n,u("month")],MMM:[a,function(g){var y=f("months"),v=(f("monthsShort")||y.map(function(x){return x.slice(0,3)})).indexOf(g)+1;if(v<1)throw new Error;this.month=v%12||v}],MMMM:[a,function(g){var y=f("months").indexOf(g)+1;if(y<1)throw new Error;this.month=y%12||y}],Y:[/[+-]?\d+/,u("year")],YY:[n,function(g){this.year=l(g)}],YYYY:[/\d{4}/,u("year")],Z:h,ZZ:h};function m(g){var y,v;y=g,v=s&&s.formats;for(var x=(g=y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(A,L,M){var N=M&&M.toUpperCase();return L||v[M]||e[M]||v[N].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(k,I,C){return I||C.slice(1)})})).match(t),b=x.length,w=0;w-1)return new Date((D==="X"?1e3:1)*O);var B=m(D)(O),G=B.year,z=B.month,W=B.day,Q=B.hours,j=B.minutes,at=B.seconds,X=B.milliseconds,J=B.zone,Z=B.week,H=new Date,q=W||(G||z?1:H.getDate()),K=G||H.getFullYear(),ot=0;G&&!z||(ot=z>0?z-1:H.getMonth());var ct,ut=Q||0,et=j||0,Mt=at||0,it=X||0;return J?new Date(Date.UTC(K,ot,q,ut,et,Mt,it+60*J.offset*1e3)):P?new Date(Date.UTC(K,ot,q,ut,et,Mt,it)):(ct=new Date(K,ot,q,ut,et,Mt,it),Z&&(ct=F(ct).week(Z).toDate()),ct)}catch{return new Date("")}}(S,_,T,v),this.init(),N&&N!==!0&&(this.$L=this.locale(N).$L),M&&S!=this.format(_)&&(this.$d=new Date("")),s={}}else if(_ instanceof Array)for(var k=_.length,I=1;I<=k;I+=1){E[1]=_[I-1];var C=v.apply(this,E);if(C.isValid()){this.$d=C.$d,this.$L=C.$L,this.init();break}I===k&&(this.$d=new Date(""))}else b.call(this,w)}}})});var Vut=Ti((OO,PO)=>{"use strict";(function(e,t){typeof OO=="object"&&typeof PO<"u"?PO.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_advancedFormat=t()})(OO,function(){"use strict";return function(e,t){var r=t.prototype,n=r.format;r.format=function(i){var a=this,s=this.$locale();if(!this.isValid())return n.bind(this)(i);var l=this.$utils(),u=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(h){switch(h){case"Q":return Math.ceil((a.$M+1)/3);case"Do":return s.ordinal(a.$D);case"gggg":return a.weekYear();case"GGGG":return a.isoWeekYear();case"wo":return s.ordinal(a.week(),"W");case"w":case"ww":return l.s(a.week(),h==="w"?1:2,"0");case"W":case"WW":return l.s(a.isoWeek(),h==="W"?1:2,"0");case"k":case"kk":return l.s(String(a.$H===0?24:a.$H),h==="k"?1:2,"0");case"X":return Math.floor(a.$d.getTime()/1e3);case"x":return a.$d.getTime();case"z":return"["+a.offsetName()+"]";case"zzz":return"["+a.offsetName("long")+"]";default:return h}});return n.bind(this)(u)}}})});function iht(e,t,r){let n=!0;for(;n;)n=!1,r.forEach(function(i){let a="^\\s*"+i+"\\s*$",s=new RegExp(a);e[0].match(s)&&(t[i]=!0,e.shift(1),n=!0)})}var Wut,vo,Yut,qut,Xut,Uut,Wc,$O,GO,VO,Mx,Ix,UO,HO,KE,Yg,WO,jut,YO,Ox,qO,XO,QE,BO,Z$t,J$t,tGt,eGt,rGt,nGt,iGt,aGt,sGt,oGt,lGt,cGt,uGt,hGt,fGt,dGt,pGt,mGt,gGt,yGt,vGt,xGt,bGt,Kut,wGt,TGt,kGt,Qut,EGt,FO,Zut,Jut,XE,Wg,CGt,SGt,zO,jE,Hi,tht,AGt,R0,_Gt,Hut,LGt,eht,DGt,rht,RGt,NGt,nht,aht=R(()=>{"use strict";Wut=Qi(Qp(),1),vo=Qi(Jb(),1),Yut=Qi($ut(),1),qut=Qi(Gut(),1),Xut=Qi(Vut(),1);ce();Ue();_r();Ci();vo.default.extend(Yut.default);vo.default.extend(qut.default);vo.default.extend(Xut.default);Uut={friday:5,saturday:6},Wc="",$O="",VO="",Mx=[],Ix=[],UO=new Map,HO=[],KE=[],Yg="",WO="",jut=["active","done","crit","milestone"],YO=[],Ox=!1,qO=!1,XO="sunday",QE="saturday",BO=0,Z$t=o(function(){HO=[],KE=[],Yg="",YO=[],XE=0,zO=void 0,jE=void 0,Hi=[],Wc="",$O="",WO="",GO=void 0,VO="",Mx=[],Ix=[],Ox=!1,qO=!1,BO=0,UO=new Map,Ar(),XO="sunday",QE="saturday"},"clear"),J$t=o(function(e){$O=e},"setAxisFormat"),tGt=o(function(){return $O},"getAxisFormat"),eGt=o(function(e){GO=e},"setTickInterval"),rGt=o(function(){return GO},"getTickInterval"),nGt=o(function(e){VO=e},"setTodayMarker"),iGt=o(function(){return VO},"getTodayMarker"),aGt=o(function(e){Wc=e},"setDateFormat"),sGt=o(function(){Ox=!0},"enableInclusiveEndDates"),oGt=o(function(){return Ox},"endDatesAreInclusive"),lGt=o(function(){qO=!0},"enableTopAxis"),cGt=o(function(){return qO},"topAxisEnabled"),uGt=o(function(e){WO=e},"setDisplayMode"),hGt=o(function(){return WO},"getDisplayMode"),fGt=o(function(){return Wc},"getDateFormat"),dGt=o(function(e){Mx=e.toLowerCase().split(/[\s,]+/)},"setIncludes"),pGt=o(function(){return Mx},"getIncludes"),mGt=o(function(e){Ix=e.toLowerCase().split(/[\s,]+/)},"setExcludes"),gGt=o(function(){return Ix},"getExcludes"),yGt=o(function(){return UO},"getLinks"),vGt=o(function(e){Yg=e,HO.push(e)},"addSection"),xGt=o(function(){return HO},"getSections"),bGt=o(function(){let e=Hut(),t=10,r=0;for(;!e&&r[\d\w- ]+)/.exec(r);if(i!==null){let s=null;for(let u of i.groups.ids.split(" ")){let h=R0(u);h!==void 0&&(!s||h.endTime>s.endTime)&&(s=h)}if(s)return s.endTime;let l=new Date;return l.setHours(0,0,0,0),l}let a=(0,vo.default)(r,t.trim(),!0);if(a.isValid())return a.toDate();{V.debug("Invalid date:"+r),V.debug("With date format:"+t.trim());let s=new Date(r);if(s===void 0||isNaN(s.getTime())||s.getFullYear()<-1e4||s.getFullYear()>1e4)throw new Error("Invalid date:"+r);return s}},"getStartDate"),Zut=o(function(e){let t=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(e.trim());return t!==null?[Number.parseFloat(t[1]),t[2]]:[NaN,"ms"]},"parseDuration"),Jut=o(function(e,t,r,n=!1){r=r.trim();let a=/^until\s+(?[\d\w- ]+)/.exec(r);if(a!==null){let f=null;for(let p of a.groups.ids.split(" ")){let m=R0(p);m!==void 0&&(!f||m.startTime{window.open(r,"_self")}),UO.set(n,r))}),eht(e,"clickable")},"setLink"),eht=o(function(e,t){e.split(",").forEach(function(r){let n=R0(r);n!==void 0&&n.classes.push(t)})},"setClass"),DGt=o(function(e,t,r){if(pt().securityLevel!=="loose"||t===void 0)return;let n=[];if(typeof r=="string"){n=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let a=0;a{Oe.runFunc(t,...n)})},"setClickFun"),rht=o(function(e,t){YO.push(function(){let r=document.querySelector(`[id="${e}"]`);r!==null&&r.addEventListener("click",function(){t()})},function(){let r=document.querySelector(`[id="${e}-text"]`);r!==null&&r.addEventListener("click",function(){t()})})},"pushFun"),RGt=o(function(e,t,r){e.split(",").forEach(function(n){DGt(n,t,r)}),eht(e,"clickable")},"setClickEvent"),NGt=o(function(e){YO.forEach(function(t){t(e)})},"bindFunctions"),nht={getConfig:o(()=>pt().gantt,"getConfig"),clear:Z$t,setDateFormat:aGt,getDateFormat:fGt,enableInclusiveEndDates:sGt,endDatesAreInclusive:oGt,enableTopAxis:lGt,topAxisEnabled:cGt,setAxisFormat:J$t,getAxisFormat:tGt,setTickInterval:eGt,getTickInterval:rGt,setTodayMarker:nGt,getTodayMarker:iGt,setAccTitle:Mr,getAccTitle:Br,setDiagramTitle:cn,getDiagramTitle:Jr,setDisplayMode:uGt,getDisplayMode:hGt,setAccDescription:Fr,getAccDescription:zr,addSection:vGt,getSections:xGt,getTasks:bGt,addTask:AGt,findTaskById:R0,addTaskOrg:_Gt,setIncludes:dGt,getIncludes:pGt,setExcludes:mGt,getExcludes:gGt,setClickEvent:RGt,setLink:LGt,getLinks:yGt,bindFunctions:NGt,parseDuration:Zut,isInvalidDate:Kut,setWeekday:wGt,getWeekday:TGt,setWeekend:kGt};o(iht,"getTaskTags")});var ZE,MGt,sht,IGt,Ku,OGt,oht,lht=R(()=>{"use strict";ZE=Qi(Jb(),1);ce();ur();hr();Ue();Jn();MGt=o(function(){V.debug("Something is calling, setConf, remove the call")},"setConf"),sht={monday:Lh,tuesday:U3,wednesday:H3,thursday:gc,friday:W3,saturday:Y3,sunday:Tl},IGt=o((e,t)=>{let r=[...e].map(()=>-1/0),n=[...e].sort((a,s)=>a.startTime-s.startTime||a.order-s.order),i=0;for(let a of n)for(let s=0;s=r[s]){r[s]=a.endTime,a.order=s+t,s>i&&(i=s);break}return i},"getMaxIntersections"),OGt=o(function(e,t,r,n){let i=pt().gantt,a=pt().securityLevel,s;a==="sandbox"&&(s=Gt("#i"+t));let l=a==="sandbox"?Gt(s.nodes()[0].contentDocument.body):Gt("body"),u=a==="sandbox"?s.nodes()[0].contentDocument:document,h=u.getElementById(t);Ku=h.parentElement.offsetWidth,Ku===void 0&&(Ku=1200),i.useWidth!==void 0&&(Ku=i.useWidth);let f=n.db.getTasks(),d=[];for(let A of f)d.push(A.type);d=_(d);let p={},m=2*i.topPadding;if(n.db.getDisplayMode()==="compact"||i.displayMode==="compact"){let A={};for(let M of f)A[M.section]===void 0?A[M.section]=[M]:A[M.section].push(M);let L=0;for(let M of Object.keys(A)){let N=IGt(A[M],L)+1;L+=N,m+=N*(i.barHeight+i.barGap),p[M]=N}}else{m+=f.length*(i.barHeight+i.barGap);for(let A of d)p[A]=f.filter(L=>L.type===A).length}h.setAttribute("viewBox","0 0 "+Ku+" "+m);let g=l.select(`[id="${t}"]`),y=j3().domain([t3(f,function(A){return A.startTime}),J4(f,function(A){return A.endTime})]).rangeRound([0,Ku-i.leftPadding-i.rightPadding]);function v(A,L){let M=A.startTime,N=L.startTime,k=0;return M>N?k=1:MG.order))].map(G=>A.find(z=>z.order===G));g.append("g").selectAll("rect").data(D).enter().append("rect").attr("x",0).attr("y",function(G,z){return z=G.order,z*L+M-2}).attr("width",function(){return C-i.rightPadding/2}).attr("height",L).attr("class",function(G){for(let[z,W]of d.entries())if(G.type===W)return"section section"+z%i.numberSectionStyles;return"section section0"});let P=g.append("g").selectAll("rect").data(A).enter(),F=n.db.getLinks();if(P.append("rect").attr("id",function(G){return G.id}).attr("rx",3).attr("ry",3).attr("x",function(G){return G.milestone?y(G.startTime)+N+.5*(y(G.endTime)-y(G.startTime))-.5*k:y(G.startTime)+N}).attr("y",function(G,z){return z=G.order,z*L+M}).attr("width",function(G){return G.milestone?k:y(G.renderEndTime||G.endTime)-y(G.startTime)}).attr("height",k).attr("transform-origin",function(G,z){return z=G.order,(y(G.startTime)+N+.5*(y(G.endTime)-y(G.startTime))).toString()+"px "+(z*L+M+.5*k).toString()+"px"}).attr("class",function(G){let z="task",W="";G.classes.length>0&&(W=G.classes.join(" "));let Q=0;for(let[at,X]of d.entries())G.type===X&&(Q=at%i.numberSectionStyles);let j="";return G.active?G.crit?j+=" activeCrit":j=" active":G.done?G.crit?j=" doneCrit":j=" done":G.crit&&(j+=" crit"),j.length===0&&(j=" task"),G.milestone&&(j=" milestone "+j),j+=Q,j+=" "+W,z+j}),P.append("text").attr("id",function(G){return G.id+"-text"}).text(function(G){return G.task}).attr("font-size",i.fontSize).attr("x",function(G){let z=y(G.startTime),W=y(G.renderEndTime||G.endTime);G.milestone&&(z+=.5*(y(G.endTime)-y(G.startTime))-.5*k),G.milestone&&(W=z+k);let Q=this.getBBox().width;return Q>W-z?W+Q+1.5*i.leftPadding>C?z+N-5:W+N+5:(W-z)/2+z+N}).attr("y",function(G,z){return z=G.order,z*L+i.barHeight/2+(i.fontSize/2-2)+M}).attr("text-height",k).attr("class",function(G){let z=y(G.startTime),W=y(G.endTime);G.milestone&&(W=z+k);let Q=this.getBBox().width,j="";G.classes.length>0&&(j=G.classes.join(" "));let at=0;for(let[J,Z]of d.entries())G.type===Z&&(at=J%i.numberSectionStyles);let X="";return G.active&&(G.crit?X="activeCritText"+at:X="activeText"+at),G.done?G.crit?X=X+" doneCritText"+at:X=X+" doneText"+at:G.crit&&(X=X+" critText"+at),G.milestone&&(X+=" milestoneText"),Q>W-z?W+Q+1.5*i.leftPadding>C?j+" taskTextOutsideLeft taskTextOutside"+at+" "+X:j+" taskTextOutsideRight taskTextOutside"+at+" "+X+" width-"+Q:j+" taskText taskText"+at+" "+X+" width-"+Q}),pt().securityLevel==="sandbox"){let G;G=Gt("#i"+t);let z=G.nodes()[0].contentDocument;P.filter(function(W){return F.has(W.id)}).each(function(W){var Q=z.querySelector("#"+W.id),j=z.querySelector("#"+W.id+"-text");let at=Q.parentNode;var X=z.createElement("a");X.setAttribute("xlink:href",F.get(W.id)),X.setAttribute("target","_top"),at.appendChild(X),X.appendChild(Q),X.appendChild(j)})}}o(b,"drawRects");function w(A,L,M,N,k,I,C,O){if(C.length===0&&O.length===0)return;let D,P;for(let{startTime:Q,endTime:j}of I)(D===void 0||QP)&&(P=j);if(!D||!P)return;if((0,ZE.default)(P).diff((0,ZE.default)(D),"year")>5){V.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");return}let F=n.db.getDateFormat(),B=[],G=null,z=(0,ZE.default)(D);for(;z.valueOf()<=P;)n.db.isInvalidDate(z,F,C,O)?G?G.end=z:G={start:z,end:z}:G&&(B.push(G),G=null),z=z.add(1,"d");g.append("g").selectAll("rect").data(B).enter().append("rect").attr("id",function(Q){return"exclude-"+Q.start.format("YYYY-MM-DD")}).attr("x",function(Q){return y(Q.start)+M}).attr("y",i.gridLineStartPadding).attr("width",function(Q){let j=Q.end.add(1,"day");return y(j)-y(Q.start)}).attr("height",k-L-i.gridLineStartPadding).attr("transform-origin",function(Q,j){return(y(Q.start)+M+.5*(y(Q.end)-y(Q.start))).toString()+"px "+(j*A+.5*k).toString()+"px"}).attr("class","exclude-range")}o(w,"drawExcludeDays");function S(A,L,M,N){let k=aA(y).tickSize(-N+L+i.gridLineStartPadding).tickFormat(bd(n.db.getAxisFormat()||i.axisFormat||"%Y-%m-%d")),C=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(n.db.getTickInterval()||i.tickInterval);if(C!==null){let O=C[1],D=C[2],P=n.db.getWeekday()||i.weekday;switch(D){case"millisecond":k.ticks(pc.every(O));break;case"second":k.ticks(Zs.every(O));break;case"minute":k.ticks(Tu.every(O));break;case"hour":k.ticks(ku.every(O));break;case"day":k.ticks(Mo.every(O));break;case"week":k.ticks(sht[P].every(O));break;case"month":k.ticks(Eu.every(O));break}}if(g.append("g").attr("class","grid").attr("transform","translate("+A+", "+(N-50)+")").call(k).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),n.db.topAxisEnabled()||i.topAxis){let O=iA(y).tickSize(-N+L+i.gridLineStartPadding).tickFormat(bd(n.db.getAxisFormat()||i.axisFormat||"%Y-%m-%d"));if(C!==null){let D=C[1],P=C[2],F=n.db.getWeekday()||i.weekday;switch(P){case"millisecond":O.ticks(pc.every(D));break;case"second":O.ticks(Zs.every(D));break;case"minute":O.ticks(Tu.every(D));break;case"hour":O.ticks(ku.every(D));break;case"day":O.ticks(Mo.every(D));break;case"week":O.ticks(sht[F].every(D));break;case"month":O.ticks(Eu.every(D));break}}g.append("g").attr("class","grid").attr("transform","translate("+A+", "+L+")").call(O).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}o(S,"makeGrid");function T(A,L){let M=0,N=Object.keys(p).map(k=>[k,p[k]]);g.append("g").selectAll("text").data(N).enter().append(function(k){let I=k[0].split(Yt.lineBreakRegex),C=-(I.length-1)/2,O=u.createElementNS("http://www.w3.org/2000/svg","text");O.setAttribute("dy",C+"em");for(let[D,P]of I.entries()){let F=u.createElementNS("http://www.w3.org/2000/svg","tspan");F.setAttribute("alignment-baseline","central"),F.setAttribute("x","10"),D>0&&F.setAttribute("dy","1em"),F.textContent=P,O.appendChild(F)}return O}).attr("x",10).attr("y",function(k,I){if(I>0)for(let C=0;C{"use strict";PGt=o(e=>` .mermaid-main-font { - font-family: "trebuchet ms", verdana, arial, sans-serif; - font-family: var(--mermaid-font-family); + font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif); } + .exclude-range { - fill: ${i.excludeBkgColor}; + fill: ${e.excludeBkgColor}; } .section { @@ -352,55 +861,52 @@ Expecting `+jt.join(", ")+", got '"+(this.terminals_[Te]||Te)+"'":Ke="Parse erro } .section0 { - fill: ${i.sectionBkgColor}; + fill: ${e.sectionBkgColor}; } .section2 { - fill: ${i.sectionBkgColor2}; + fill: ${e.sectionBkgColor2}; } .section1, .section3 { - fill: ${i.altSectionBkgColor}; + fill: ${e.altSectionBkgColor}; opacity: 0.2; } .sectionTitle0 { - fill: ${i.titleColor}; + fill: ${e.titleColor}; } .sectionTitle1 { - fill: ${i.titleColor}; + fill: ${e.titleColor}; } .sectionTitle2 { - fill: ${i.titleColor}; + fill: ${e.titleColor}; } .sectionTitle3 { - fill: ${i.titleColor}; + fill: ${e.titleColor}; } .sectionTitle { text-anchor: start; - // font-size: ${i.ganttFontSize}; - // text-height: 14px; - font-family: 'trebuchet ms', verdana, arial, sans-serif; - font-family: var(--mermaid-font-family); - + font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif); } /* Grid and axis */ .grid .tick { - stroke: ${i.gridColor}; + stroke: ${e.gridColor}; opacity: 0.8; shape-rendering: crispEdges; - text { - font-family: ${i.fontFamily}; - fill: ${i.textColor}; - } + } + + .grid .tick text { + font-family: ${e.fontFamily}; + fill: ${e.textColor}; } .grid path { @@ -412,7 +918,7 @@ Expecting `+jt.join(", ")+", got '"+(this.terminals_[Te]||Te)+"'":Ke="Parse erro .today { fill: none; - stroke: ${i.todayLineColor}; + stroke: ${e.todayLineColor}; stroke-width: 2px; } @@ -427,77 +933,72 @@ Expecting `+jt.join(", ")+", got '"+(this.terminals_[Te]||Te)+"'":Ke="Parse erro .taskText { text-anchor: middle; - font-family: 'trebuchet ms', verdana, arial, sans-serif; - font-family: var(--mermaid-font-family); + font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif); } - // .taskText:not([font-size]) { - // font-size: ${i.ganttFontSize}; - // } - .taskTextOutsideRight { - fill: ${i.taskTextDarkColor}; + fill: ${e.taskTextDarkColor}; text-anchor: start; - // font-size: ${i.ganttFontSize}; - font-family: 'trebuchet ms', verdana, arial, sans-serif; - font-family: var(--mermaid-font-family); - + font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif); } .taskTextOutsideLeft { - fill: ${i.taskTextDarkColor}; + fill: ${e.taskTextDarkColor}; text-anchor: end; - // font-size: ${i.ganttFontSize}; } + /* Special case clickable */ + .task.clickable { cursor: pointer; } + .taskText.clickable { cursor: pointer; - fill: ${i.taskTextClickableColor} !important; + fill: ${e.taskTextClickableColor} !important; font-weight: bold; } .taskTextOutsideLeft.clickable { cursor: pointer; - fill: ${i.taskTextClickableColor} !important; + fill: ${e.taskTextClickableColor} !important; font-weight: bold; } .taskTextOutsideRight.clickable { cursor: pointer; - fill: ${i.taskTextClickableColor} !important; + fill: ${e.taskTextClickableColor} !important; font-weight: bold; } + /* Specific task settings for the sections*/ .taskText0, .taskText1, .taskText2, .taskText3 { - fill: ${i.taskTextColor}; + fill: ${e.taskTextColor}; } .task0, .task1, .task2, .task3 { - fill: ${i.taskBkgColor}; - stroke: ${i.taskBorderColor}; + fill: ${e.taskBkgColor}; + stroke: ${e.taskBorderColor}; } .taskTextOutside0, .taskTextOutside2 { - fill: ${i.taskTextOutsideColor}; + fill: ${e.taskTextOutsideColor}; } .taskTextOutside1, .taskTextOutside3 { - fill: ${i.taskTextOutsideColor}; + fill: ${e.taskTextOutsideColor}; } @@ -507,15 +1008,15 @@ Expecting `+jt.join(", ")+", got '"+(this.terminals_[Te]||Te)+"'":Ke="Parse erro .active1, .active2, .active3 { - fill: ${i.activeTaskBkgColor}; - stroke: ${i.activeTaskBorderColor}; + fill: ${e.activeTaskBkgColor}; + stroke: ${e.activeTaskBorderColor}; } .activeText0, .activeText1, .activeText2, .activeText3 { - fill: ${i.taskTextDarkColor} !important; + fill: ${e.taskTextDarkColor} !important; } @@ -525,8 +1026,8 @@ Expecting `+jt.join(", ")+", got '"+(this.terminals_[Te]||Te)+"'":Ke="Parse erro .done1, .done2, .done3 { - stroke: ${i.doneTaskBorderColor}; - fill: ${i.doneTaskBkgColor}; + stroke: ${e.doneTaskBorderColor}; + fill: ${e.doneTaskBkgColor}; stroke-width: 2; } @@ -534,7 +1035,7 @@ Expecting `+jt.join(", ")+", got '"+(this.terminals_[Te]||Te)+"'":Ke="Parse erro .doneText1, .doneText2, .doneText3 { - fill: ${i.taskTextDarkColor} !important; + fill: ${e.taskTextDarkColor} !important; } @@ -544,8 +1045,8 @@ Expecting `+jt.join(", ")+", got '"+(this.terminals_[Te]||Te)+"'":Ke="Parse erro .crit1, .crit2, .crit3 { - stroke: ${i.critBorderColor}; - fill: ${i.critBkgColor}; + stroke: ${e.critBorderColor}; + fill: ${e.critBkgColor}; stroke-width: 2; } @@ -553,8 +1054,8 @@ Expecting `+jt.join(", ")+", got '"+(this.terminals_[Te]||Te)+"'":Ke="Parse erro .activeCrit1, .activeCrit2, .activeCrit3 { - stroke: ${i.critBorderColor}; - fill: ${i.activeTaskBkgColor}; + stroke: ${e.critBorderColor}; + fill: ${e.activeTaskBkgColor}; stroke-width: 2; } @@ -562,8 +1063,8 @@ Expecting `+jt.join(", ")+", got '"+(this.terminals_[Te]||Te)+"'":Ke="Parse erro .doneCrit1, .doneCrit2, .doneCrit3 { - stroke: ${i.critBorderColor}; - fill: ${i.doneTaskBkgColor}; + stroke: ${e.critBorderColor}; + fill: ${e.doneTaskBkgColor}; stroke-width: 2; cursor: pointer; shape-rendering: crispEdges; @@ -580,220 +1081,215 @@ Expecting `+jt.join(", ")+", got '"+(this.terminals_[Te]||Te)+"'":Ke="Parse erro .doneCritText1, .doneCritText2, .doneCritText3 { - fill: ${i.taskTextDarkColor} !important; + fill: ${e.taskTextDarkColor} !important; } .activeCritText0, .activeCritText1, .activeCritText2, .activeCritText3 { - fill: ${i.taskTextDarkColor} !important; + fill: ${e.taskTextDarkColor} !important; } .titleText { text-anchor: middle; font-size: 18px; - fill: ${i.textColor} ; - font-family: 'trebuchet ms', verdana, arial, sans-serif; - font-family: var(--mermaid-font-family); + fill: ${e.titleColor||e.textColor}; + font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif); } -`}},Symbol.toStringTag,{value:"Module"}));var $0t=function(){var i=function(m,b,E,C){for(E=E||{},C=m.length;C--;E[m[C]]=b);return E},a=[6,9,10],f={trace:function(){},yy:{},symbols_:{error:2,start:3,info:4,document:5,EOF:6,line:7,statement:8,NL:9,showInfo:10,$accept:0,$end:1},terminals_:{2:"error",4:"info",6:"EOF",9:"NL",10:"showInfo"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],performAction:function(b,E,C,D,P,B,j){switch(B.length-1,P){case 1:return D;case 4:break;case 6:D.setInfo(!0);break}},table:[{3:1,4:[1,2]},{1:[3]},i(a,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},i(a,[2,3]),i(a,[2,4]),i(a,[2,5]),i(a,[2,6])],defaultActions:{4:[2,1]},parseError:function(b,E){if(E.recoverable)this.trace(b);else{var C=new Error(b);throw C.hash=E,C}},parse:function(b){var E=this,C=[0],D=[],P=[null],B=[],j=this.table,R="",H=0,Y=0,it=2,nt=1,st=B.slice.call(arguments,1),pt=Object.create(this.lexer),Tt={yy:{}};for(var kt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,kt)&&(Tt.yy[kt]=this.yy[kt]);pt.setInput(b,Tt.yy),Tt.yy.lexer=pt,Tt.yy.parser=this,typeof pt.yylloc>"u"&&(pt.yylloc={});var yt=pt.yylloc;B.push(yt);var ht=pt.options&&pt.options.ranges;typeof Tt.yy.parseError=="function"?this.parseError=Tt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function mt(){var ae;return ae=D.pop()||pt.lex()||nt,typeof ae!="number"&&(ae instanceof Array&&(D=ae,ae=D.pop()),ae=E.symbols_[ae]||ae),ae}for(var rt,wt,gt,lt,_t={},X,Rt,ft,de;;){if(wt=C[C.length-1],this.defaultActions[wt]?gt=this.defaultActions[wt]:((rt===null||typeof rt>"u")&&(rt=mt()),gt=j[wt]&&j[wt][rt]),typeof gt>"u"||!gt.length||!gt[0]){var J="";de=[];for(X in j[wt])this.terminals_[X]&&X>it&&de.push("'"+this.terminals_[X]+"'");pt.showPosition?J="Parse error on line "+(H+1)+`: -`+pt.showPosition()+` -Expecting `+de.join(", ")+", got '"+(this.terminals_[rt]||rt)+"'":J="Parse error on line "+(H+1)+": Unexpected "+(rt==nt?"end of input":"'"+(this.terminals_[rt]||rt)+"'"),this.parseError(J,{text:pt.match,token:this.terminals_[rt]||rt,line:pt.yylineno,loc:yt,expected:de})}if(gt[0]instanceof Array&>.length>1)throw new Error("Parse Error: multiple actions possible at state: "+wt+", token: "+rt);switch(gt[0]){case 1:C.push(rt),P.push(pt.yytext),B.push(pt.yylloc),C.push(gt[1]),rt=null,Y=pt.yyleng,R=pt.yytext,H=pt.yylineno,yt=pt.yylloc;break;case 2:if(Rt=this.productions_[gt[1]][1],_t.$=P[P.length-Rt],_t._$={first_line:B[B.length-(Rt||1)].first_line,last_line:B[B.length-1].last_line,first_column:B[B.length-(Rt||1)].first_column,last_column:B[B.length-1].last_column},ht&&(_t._$.range=[B[B.length-(Rt||1)].range[0],B[B.length-1].range[1]]),lt=this.performAction.apply(_t,[R,Y,H,Tt.yy,gt[1],P,B].concat(st)),typeof lt<"u")return lt;Rt&&(C=C.slice(0,-1*Rt*2),P=P.slice(0,-1*Rt),B=B.slice(0,-1*Rt)),C.push(this.productions_[gt[1]][0]),P.push(_t.$),B.push(_t._$),ft=j[C[C.length-2]][C[C.length-1]],C.push(ft);break;case 3:return!0}}return!0}},p=function(){var m={EOF:1,parseError:function(E,C){if(this.yy.parser)this.yy.parser.parseError(E,C);else throw new Error(E)},setInput:function(b,E){return this.yy=E||this.yy||{},this._input=b,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var b=this._input[0];this.yytext+=b,this.yyleng++,this.offset++,this.match+=b,this.matched+=b;var E=b.match(/(?:\r\n?|\n).*/g);return E?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),b},unput:function(b){var E=b.length,C=b.split(/(?:\r\n?|\n)/g);this._input=b+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-E),this.offset-=E;var D=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),C.length-1&&(this.yylineno-=C.length-1);var P=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:C?(C.length===D.length?this.yylloc.first_column:0)+D[D.length-C.length].length-C[0].length:this.yylloc.first_column-E},this.options.ranges&&(this.yylloc.range=[P[0],P[0]+this.yyleng-E]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). -`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(b){this.unput(this.match.slice(b))},pastInput:function(){var b=this.matched.substr(0,this.matched.length-this.match.length);return(b.length>20?"...":"")+b.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var b=this.match;return b.length<20&&(b+=this._input.substr(0,20-b.length)),(b.substr(0,20)+(b.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var b=this.pastInput(),E=new Array(b.length+1).join("-");return b+this.upcomingInput()+` -`+E+"^"},test_match:function(b,E){var C,D,P;if(this.options.backtrack_lexer&&(P={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(P.yylloc.range=this.yylloc.range.slice(0))),D=b[0].match(/(?:\r\n?|\n).*/g),D&&(this.yylineno+=D.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:D?D[D.length-1].length-D[D.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+b[0].length},this.yytext+=b[0],this.match+=b[0],this.matches=b,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(b[0].length),this.matched+=b[0],C=this.performAction.call(this,this.yy,this,E,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),C)return C;if(this._backtrack){for(var B in P)this[B]=P[B];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var b,E,C,D;this._more||(this.yytext="",this.match="");for(var P=this._currentRules(),B=0;BE[0].length)){if(E=C,D=B,this.options.backtrack_lexer){if(b=this.test_match(C,P[B]),b!==!1)return b;if(this._backtrack){E=!1;continue}else return!1}else if(!this.options.flex)break}return E?(b=this.test_match(E,P[D]),b!==!1?b:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var E=this.next();return E||this.lex()},begin:function(E){this.conditionStack.push(E)},popState:function(){var E=this.conditionStack.length-1;return E>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(E){return E=this.conditionStack.length-1-Math.abs(E||0),E>=0?this.conditionStack[E]:"INITIAL"},pushState:function(E){this.begin(E)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(E,C,D,P){switch(D){case 0:return 4;case 1:return 9;case 2:return"space";case 3:return 10;case 4:return 6;case 5:return"TXT"}},rules:[/^(?:info\b)/i,/^(?:[\s\n\r]+)/i,/^(?:[\s]+)/i,/^(?:showInfo\b)/i,/^(?:$)/i,/^(?:.)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5],inclusive:!0}}};return m}();f.lexer=p;function v(){this.yy={}}return v.prototype=f,f.Parser=v,new v}();$0t.parser=$0t;const Cze=$0t;var DBt="",IBt=!1;const Sze=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:Cze,db:{setMessage:i=>{zt.debug("Setting message to: "+i),DBt=i},getMessage:()=>DBt,setInfo:i=>{IBt=i},getInfo:()=>IBt,clear:cg},renderer:{draw:(i,a,f)=>{try{zt.debug(`Rendering info diagram -`+i);const p=Oe().securityLevel;let v;p==="sandbox"&&(v=Mr("#i"+a));const b=Mr(p==="sandbox"?v.nodes()[0].contentDocument.body:"body").select("#"+a);b.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size","32px").style("text-anchor","middle").text("v "+f),b.attr("height",100),b.attr("width",400)}catch(p){zt.error("Error while rendering info diagram"),zt.error(p.message)}}},styles:()=>""}},Symbol.toStringTag,{value:"Module"}));var z0t=function(){var i=function(yt,ht,mt,rt){for(mt=mt||{},rt=yt.length;rt--;mt[yt[rt]]=ht);return mt},a=[1,4],f=[1,5],p=[1,6],v=[1,7],m=[1,9],b=[1,11,13,15,17,19,20,26,27,28,29],E=[2,5],C=[1,6,11,13,15,17,19,20,26,27,28,29],D=[26,27,28],P=[2,8],B=[1,18],j=[1,19],R=[1,20],H=[1,21],Y=[1,22],it=[1,23],nt=[1,28],st=[6,26,27,28,29],pt={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,directive:5,PIE:6,document:7,showData:8,line:9,statement:10,txt:11,value:12,title:13,title_value:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,openDirective:21,typeDirective:22,closeDirective:23,":":24,argDirective:25,NEWLINE:26,";":27,EOF:28,open_directive:29,type_directive:30,arg_directive:31,close_directive:32,$accept:0,$end:1},terminals_:{2:"error",6:"PIE",8:"showData",11:"txt",12:"value",13:"title",14:"title_value",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",24:":",26:"NEWLINE",27:";",28:"EOF",29:"open_directive",30:"type_directive",31:"arg_directive",32:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,3],[7,0],[7,2],[9,2],[10,0],[10,2],[10,2],[10,2],[10,2],[10,1],[10,1],[10,1],[5,3],[5,5],[4,1],[4,1],[4,1],[21,1],[22,1],[25,1],[23,1]],performAction:function(ht,mt,rt,wt,gt,lt,_t){var X=lt.length-1;switch(gt){case 4:wt.setShowData(!0);break;case 7:this.$=lt[X-1];break;case 9:wt.addSection(lt[X-1],wt.cleanupValue(lt[X]));break;case 10:this.$=lt[X].trim(),wt.setDiagramTitle(this.$);break;case 11:this.$=lt[X].trim(),wt.setAccTitle(this.$);break;case 12:case 13:this.$=lt[X].trim(),wt.setAccDescription(this.$);break;case 14:wt.addSection(lt[X].substr(8)),this.$=lt[X].substr(8);break;case 21:wt.parseDirective("%%{","open_directive");break;case 22:wt.parseDirective(lt[X],"type_directive");break;case 23:lt[X]=lt[X].trim().replace(/'/g,'"'),wt.parseDirective(lt[X],"arg_directive");break;case 24:wt.parseDirective("}%%","close_directive","pie");break}},table:[{3:1,4:2,5:3,6:a,21:8,26:f,27:p,28:v,29:m},{1:[3]},{3:10,4:2,5:3,6:a,21:8,26:f,27:p,28:v,29:m},{3:11,4:2,5:3,6:a,21:8,26:f,27:p,28:v,29:m},i(b,E,{7:12,8:[1,13]}),i(C,[2,18]),i(C,[2,19]),i(C,[2,20]),{22:14,30:[1,15]},{30:[2,21]},{1:[2,1]},{1:[2,2]},i(D,P,{21:8,9:16,10:17,5:24,1:[2,3],11:B,13:j,15:R,17:H,19:Y,20:it,29:m}),i(b,E,{7:25}),{23:26,24:[1,27],32:nt},i([24,32],[2,22]),i(b,[2,6]),{4:29,26:f,27:p,28:v},{12:[1,30]},{14:[1,31]},{16:[1,32]},{18:[1,33]},i(D,[2,13]),i(D,[2,14]),i(D,[2,15]),i(D,P,{21:8,9:16,10:17,5:24,1:[2,4],11:B,13:j,15:R,17:H,19:Y,20:it,29:m}),i(st,[2,16]),{25:34,31:[1,35]},i(st,[2,24]),i(b,[2,7]),i(D,[2,9]),i(D,[2,10]),i(D,[2,11]),i(D,[2,12]),{23:36,32:nt},{32:[2,23]},i(st,[2,17])],defaultActions:{9:[2,21],10:[2,1],11:[2,2],35:[2,23]},parseError:function(ht,mt){if(mt.recoverable)this.trace(ht);else{var rt=new Error(ht);throw rt.hash=mt,rt}},parse:function(ht){var mt=this,rt=[0],wt=[],gt=[null],lt=[],_t=this.table,X="",Rt=0,ft=0,de=2,J=1,ae=lt.slice.call(arguments,1),Wt=Object.create(this.lexer),It={yy:{}};for(var Nt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Nt)&&(It.yy[Nt]=this.yy[Nt]);Wt.setInput(ht,It.yy),It.yy.lexer=Wt,It.yy.parser=this,typeof Wt.yylloc>"u"&&(Wt.yylloc={});var me=Wt.yylloc;lt.push(me);var Ue=Wt.options&&Wt.options.ranges;typeof It.yy.parseError=="function"?this.parseError=It.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function _n(){var jt;return jt=wt.pop()||Wt.lex()||J,typeof jt!="number"&&(jt instanceof Array&&(wt=jt,jt=wt.pop()),jt=mt.symbols_[jt]||jt),jt}for(var _e,rr,Te,ne,Ee={},ye,Vt,Ae,Gt;;){if(rr=rt[rt.length-1],this.defaultActions[rr]?Te=this.defaultActions[rr]:((_e===null||typeof _e>"u")&&(_e=_n()),Te=_t[rr]&&_t[rr][_e]),typeof Te>"u"||!Te.length||!Te[0]){var un="";Gt=[];for(ye in _t[rr])this.terminals_[ye]&&ye>de&&Gt.push("'"+this.terminals_[ye]+"'");Wt.showPosition?un="Parse error on line "+(Rt+1)+`: -`+Wt.showPosition()+` -Expecting `+Gt.join(", ")+", got '"+(this.terminals_[_e]||_e)+"'":un="Parse error on line "+(Rt+1)+": Unexpected "+(_e==J?"end of input":"'"+(this.terminals_[_e]||_e)+"'"),this.parseError(un,{text:Wt.match,token:this.terminals_[_e]||_e,line:Wt.yylineno,loc:me,expected:Gt})}if(Te[0]instanceof Array&&Te.length>1)throw new Error("Parse Error: multiple actions possible at state: "+rr+", token: "+_e);switch(Te[0]){case 1:rt.push(_e),gt.push(Wt.yytext),lt.push(Wt.yylloc),rt.push(Te[1]),_e=null,ft=Wt.yyleng,X=Wt.yytext,Rt=Wt.yylineno,me=Wt.yylloc;break;case 2:if(Vt=this.productions_[Te[1]][1],Ee.$=gt[gt.length-Vt],Ee._$={first_line:lt[lt.length-(Vt||1)].first_line,last_line:lt[lt.length-1].last_line,first_column:lt[lt.length-(Vt||1)].first_column,last_column:lt[lt.length-1].last_column},Ue&&(Ee._$.range=[lt[lt.length-(Vt||1)].range[0],lt[lt.length-1].range[1]]),ne=this.performAction.apply(Ee,[X,ft,Rt,It.yy,Te[1],gt,lt].concat(ae)),typeof ne<"u")return ne;Vt&&(rt=rt.slice(0,-1*Vt*2),gt=gt.slice(0,-1*Vt),lt=lt.slice(0,-1*Vt)),rt.push(this.productions_[Te[1]][0]),gt.push(Ee.$),lt.push(Ee._$),Ae=_t[rt[rt.length-2]][rt[rt.length-1]],rt.push(Ae);break;case 3:return!0}}return!0}},Tt=function(){var yt={EOF:1,parseError:function(mt,rt){if(this.yy.parser)this.yy.parser.parseError(mt,rt);else throw new Error(mt)},setInput:function(ht,mt){return this.yy=mt||this.yy||{},this._input=ht,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var ht=this._input[0];this.yytext+=ht,this.yyleng++,this.offset++,this.match+=ht,this.matched+=ht;var mt=ht.match(/(?:\r\n?|\n).*/g);return mt?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),ht},unput:function(ht){var mt=ht.length,rt=ht.split(/(?:\r\n?|\n)/g);this._input=ht+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-mt),this.offset-=mt;var wt=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),rt.length-1&&(this.yylineno-=rt.length-1);var gt=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:rt?(rt.length===wt.length?this.yylloc.first_column:0)+wt[wt.length-rt.length].length-rt[0].length:this.yylloc.first_column-mt},this.options.ranges&&(this.yylloc.range=[gt[0],gt[0]+this.yyleng-mt]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). -`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(ht){this.unput(this.match.slice(ht))},pastInput:function(){var ht=this.matched.substr(0,this.matched.length-this.match.length);return(ht.length>20?"...":"")+ht.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var ht=this.match;return ht.length<20&&(ht+=this._input.substr(0,20-ht.length)),(ht.substr(0,20)+(ht.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var ht=this.pastInput(),mt=new Array(ht.length+1).join("-");return ht+this.upcomingInput()+` -`+mt+"^"},test_match:function(ht,mt){var rt,wt,gt;if(this.options.backtrack_lexer&&(gt={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(gt.yylloc.range=this.yylloc.range.slice(0))),wt=ht[0].match(/(?:\r\n?|\n).*/g),wt&&(this.yylineno+=wt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:wt?wt[wt.length-1].length-wt[wt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+ht[0].length},this.yytext+=ht[0],this.match+=ht[0],this.matches=ht,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(ht[0].length),this.matched+=ht[0],rt=this.performAction.call(this,this.yy,this,mt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),rt)return rt;if(this._backtrack){for(var lt in gt)this[lt]=gt[lt];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var ht,mt,rt,wt;this._more||(this.yytext="",this.match="");for(var gt=this._currentRules(),lt=0;ltmt[0].length)){if(mt=rt,wt=lt,this.options.backtrack_lexer){if(ht=this.test_match(rt,gt[lt]),ht!==!1)return ht;if(this._backtrack){mt=!1;continue}else return!1}else if(!this.options.flex)break}return mt?(ht=this.test_match(mt,gt[wt]),ht!==!1?ht:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var mt=this.next();return mt||this.lex()},begin:function(mt){this.conditionStack.push(mt)},popState:function(){var mt=this.conditionStack.length-1;return mt>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(mt){return mt=this.conditionStack.length-1-Math.abs(mt||0),mt>=0?this.conditionStack[mt]:"INITIAL"},pushState:function(mt){this.begin(mt)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(mt,rt,wt,gt){switch(wt){case 0:return this.begin("open_directive"),29;case 1:return this.begin("type_directive"),30;case 2:return this.popState(),this.begin("arg_directive"),24;case 3:return this.popState(),this.popState(),32;case 4:return 31;case 5:break;case 6:break;case 7:return 26;case 8:break;case 9:break;case 10:return this.begin("title"),13;case 11:return this.popState(),"title_value";case 12:return this.begin("acc_title"),15;case 13:return this.popState(),"acc_title_value";case 14:return this.begin("acc_descr"),17;case 15:return this.popState(),"acc_descr_value";case 16:this.begin("acc_descr_multiline");break;case 17:this.popState();break;case 18:return"acc_descr_multiline_value";case 19:this.begin("string");break;case 20:this.popState();break;case 21:return"txt";case 22:return 6;case 23:return 8;case 24:return"value";case 25:return 28}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:[\s]+)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:pie\b)/i,/^(?:showData\b)/i,/^(?::[\s]*[\d]+(?:\.[\d]+)?)/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[17,18],inclusive:!1},acc_descr:{rules:[15],inclusive:!1},acc_title:{rules:[13],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},title:{rules:[11],inclusive:!1},string:{rules:[20,21],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,12,14,16,19,22,23,24,25],inclusive:!0}}};return yt}();pt.lexer=Tt;function kt(){this.yy={}}return kt.prototype=pt,pt.Parser=kt,new kt}();z0t.parser=z0t;const Aze=z0t;let mK={},q0t=!1;const Lze={parseDirective:function(i,a,f){d1.parseDirective(this,i,a,f)},getConfig:()=>Oe().pie,addSection:function(i,a){i=yi.sanitizeText(i,Oe()),mK[i]===void 0&&(mK[i]=a,zt.debug("Added new section :",i))},getSections:()=>mK,cleanupValue:function(i){return i.substring(0,1)===":"&&(i=i.substring(1).trim()),Number(i.trim())},clear:function(){mK={},q0t=!1,cg()},setAccTitle:ug,getAccTitle:op,setDiagramTitle:Kb,getDiagramTitle:O2,setShowData:function(i){q0t=i},getShowData:function(){return q0t},getAccDescription:up,setAccDescription:cp},Mze=i=>` +`,"getStyles"),cht=PGt});var hht={};xr(hht,{diagram:()=>BGt});var BGt,fht=R(()=>{"use strict";zut();aht();lht();uht();BGt={parser:Fut,db:nht,renderer:oht,styles:cht}});var mht,ght=R(()=>{"use strict";Hg();ce();mht={parse:o(async e=>{let t=await Ul("info",e);V.debug(t)},"parse")}});var Px,jO=R(()=>{Px="11.3.0"});var VGt,UGt,yht,vht=R(()=>{"use strict";jO();VGt={version:Px},UGt=o(()=>VGt.version,"getVersion"),yht={getVersion:UGt}});var Vs,xf=R(()=>{"use strict";ur();Ue();Vs=o(e=>{let{securityLevel:t}=pt(),r=Gt("body");if(t==="sandbox"){let a=Gt(`#i${e}`).node()?.contentDocument??document;r=Gt(a.body)}return r.select(`#${e}`)},"selectSvgElement")});var HGt,xht,bht=R(()=>{"use strict";ce();xf();Jn();HGt=o((e,t,r)=>{V.debug(`rendering info diagram +`+e);let n=Vs(t);Pr(n,100,400,!0),n.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${r}`)},"draw"),xht={draw:HGt}});var wht={};xr(wht,{diagram:()=>WGt});var WGt,Tht=R(()=>{"use strict";ght();vht();bht();WGt={parser:mht,db:yht,renderer:xht}});var Cht,KO,JE,QO,XGt,jGt,KGt,QGt,ZGt,JGt,tVt,t6,ZO=R(()=>{"use strict";ce();Ci();hl();Cht=Er.pie,KO={sections:new Map,showData:!1,config:Cht},JE=KO.sections,QO=KO.showData,XGt=structuredClone(Cht),jGt=o(()=>structuredClone(XGt),"getConfig"),KGt=o(()=>{JE=new Map,QO=KO.showData,Ar()},"clear"),QGt=o(({label:e,value:t})=>{JE.has(e)||(JE.set(e,t),V.debug(`added new section: ${e}, with value: ${t}`))},"addSection"),ZGt=o(()=>JE,"getSections"),JGt=o(e=>{QO=e},"setShowData"),tVt=o(()=>QO,"getShowData"),t6={getConfig:jGt,clear:KGt,setDiagramTitle:cn,getDiagramTitle:Jr,setAccTitle:Mr,getAccTitle:Br,setAccDescription:Fr,getAccDescription:zr,addSection:QGt,getSections:ZGt,setShowData:JGt,getShowData:tVt}});var eVt,Sht,Aht=R(()=>{"use strict";Hg();ce();Dx();ZO();eVt=o((e,t)=>{pf(e,t),t.setShowData(e.showData),e.sections.map(t.addSection)},"populateDb"),Sht={parse:o(async e=>{let t=await Ul("pie",e);V.debug(t),eVt(t,t6)},"parse")}});var rVt,_ht,Lht=R(()=>{"use strict";rVt=o(e=>` .pieCircle{ - stroke: ${i.pieStrokeColor}; - stroke-width : ${i.pieStrokeWidth}; - opacity : ${i.pieOpacity}; + stroke: ${e.pieStrokeColor}; + stroke-width : ${e.pieStrokeWidth}; + opacity : ${e.pieOpacity}; } .pieOuterCircle{ - stroke: ${i.pieOuterStrokeColor}; - stroke-width: ${i.pieOuterStrokeWidth}; + stroke: ${e.pieOuterStrokeColor}; + stroke-width: ${e.pieOuterStrokeWidth}; fill: none; } .pieTitleText { text-anchor: middle; - font-size: ${i.pieTitleTextSize}; - fill: ${i.pieTitleTextColor}; - font-family: ${i.fontFamily}; + font-size: ${e.pieTitleTextSize}; + fill: ${e.pieTitleTextColor}; + font-family: ${e.fontFamily}; } .slice { - font-family: ${i.fontFamily}; - fill: ${i.pieSectionTextColor}; - font-size:${i.pieSectionTextSize}; + font-family: ${e.fontFamily}; + fill: ${e.pieSectionTextColor}; + font-size:${e.pieSectionTextSize}; // fill: white; } .legend text { - fill: ${i.pieLegendTextColor}; - font-family: ${i.fontFamily}; - font-size: ${i.pieLegendTextSize}; - } -`;let w3=Oe(),M5;const kP=450,Dze=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:Aze,db:Lze,renderer:{draw:(i,a,f,p)=>{var pt;try{w3=Oe(),zt.debug(`Rendering info diagram -`+i);const Tt=Oe().securityLevel;let kt;Tt==="sandbox"&&(kt=Mr("#i"+a));const yt=Mr(Tt==="sandbox"?kt.nodes()[0].contentDocument.body:"body"),ht=Tt==="sandbox"?kt.nodes()[0].contentDocument:document;p.db.clear(),p.parser.parse(i),zt.debug("Parsed info diagram");const mt=ht.getElementById(a);M5=mt.parentElement.offsetWidth,M5===void 0&&(M5=1200),w3.useWidth!==void 0&&(M5=w3.useWidth),w3.pie.useWidth!==void 0&&(M5=w3.pie.useWidth);const rt=yt.select("#"+a);Wb(rt,kP,M5,w3.pie.useMaxWidth),mt.setAttribute("viewBox","0 0 "+M5+" "+kP);var v=40,m=18,b=4,E=Math.min(M5,kP)/2-v,C=rt.append("g").attr("transform","translate("+M5/2+","+kP/2+")"),D=p.db.getSections(),P=0;Object.keys(D).forEach(function(_t){P+=D[_t]});const wt=w3.themeVariables;var B=[wt.pie1,wt.pie2,wt.pie3,wt.pie4,wt.pie5,wt.pie6,wt.pie7,wt.pie8,wt.pie9,wt.pie10,wt.pie11,wt.pie12];const gt=((pt=w3.pie)==null?void 0:pt.textPosition)??.75;let[lt]=$A(wt.pieOuterStrokeWidth);lt??(lt=2);var j=yMt().range(B),R=Object.entries(D).map(function(_t,X){return{order:X,name:_t[0],value:_t[1]}}),H=Z7e().value(function(_t){return _t.value}).sort(function(_t,X){return _t.order-X.order}),Y=H(R),it=_A().innerRadius(0).outerRadius(E),nt=_A().innerRadius(E*gt).outerRadius(E*gt);C.append("circle").attr("cx",0).attr("cy",0).attr("r",E+lt/2).attr("class","pieOuterCircle"),C.selectAll("mySlices").data(Y).enter().append("path").attr("d",it).attr("fill",function(_t){return j(_t.data.name)}).attr("class","pieCircle"),C.selectAll("mySlices").data(Y).enter().append("text").text(function(_t){return(_t.data.value/P*100).toFixed(0)+"%"}).attr("transform",function(_t){return"translate("+nt.centroid(_t)+")"}).style("text-anchor","middle").attr("class","slice"),C.append("text").text(p.db.getDiagramTitle()).attr("x",0).attr("y",-(kP-50)/2).attr("class","pieTitleText");var st=C.selectAll(".legend").data(j.domain()).enter().append("g").attr("class","legend").attr("transform",function(_t,X){const Rt=m+b,ft=Rt*j.domain().length/2,de=12*m,J=X*Rt-ft;return"translate("+de+","+J+")"});st.append("rect").attr("width",m).attr("height",m).style("fill",j).style("stroke",j),st.data(Y).append("text").attr("x",m+b).attr("y",m-b).text(function(_t){return p.db.getShowData()||w3.showData||w3.pie.showData?_t.data.name+" ["+_t.data.value+"]":_t.data.name})}catch(Tt){zt.error("Error while rendering info diagram"),zt.error(Tt)}}},styles:Mze}},Symbol.toStringTag,{value:"Module"}));var H0t=function(){var i=function(Te,ne,Ee,ye){for(Ee=Ee||{},ye=Te.length;ye--;Ee[Te[ye]]=ne);return Ee},a=[1,3],f=[1,5],p=[1,6],v=[1,7],m=[1,8],b=[1,10],E=[1,5,14,16,18,20,21,26,28,29,30,31,32,38,39,40,41,47,48,50,51,52,53,54,55,56,57,58,59,60],C=[1,5,7,14,16,18,20,21,26,28,29,30,31,32,38,39,40,41,47,48,50,51,52,53,54,55,56,57,58,59,60],D=[38,39,40],P=[2,8],B=[1,19],j=[1,23],R=[1,24],H=[1,25],Y=[1,26],it=[1,27],nt=[1,29],st=[1,30],pt=[1,31],Tt=[1,32],kt=[1,33],yt=[1,34],ht=[1,37],mt=[1,38],rt=[1,39],wt=[1,40],gt=[1,41],lt=[1,42],_t=[1,43],X=[1,44],Rt=[1,45],ft=[1,46],de=[1,47],J=[1,48],ae=[1,49],Wt=[1,52],It=[1,67],Nt=[1,68],me=[5,23,27,38,39,40,50,51,52,53,54,55,56,57,58,59,60,61],Ue=[5,7,38,39,40,41],_n={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,SPACE:5,directive:6,QUADRANT:7,document:8,line:9,statement:10,axisDetails:11,quadrantDetails:12,points:13,title:14,title_value:15,acc_title:16,acc_title_value:17,acc_descr:18,acc_descr_value:19,acc_descr_multiline_value:20,section:21,text:22,point_start:23,point_x:24,point_y:25,"X-AXIS":26,"AXIS-TEXT-DELIMITER":27,"Y-AXIS":28,QUADRANT_1:29,QUADRANT_2:30,QUADRANT_3:31,QUADRANT_4:32,openDirective:33,typeDirective:34,closeDirective:35,":":36,argDirective:37,NEWLINE:38,SEMI:39,EOF:40,open_directive:41,type_directive:42,arg_directive:43,close_directive:44,alphaNumToken:45,textNoTagsToken:46,STR:47,MD_STR:48,alphaNum:49,PUNCTUATION:50,AMP:51,NUM:52,ALPHA:53,COMMA:54,PLUS:55,EQUALS:56,MULT:57,DOT:58,BRKT:59,UNDERSCORE:60,MINUS:61,$accept:0,$end:1},terminals_:{2:"error",5:"SPACE",7:"QUADRANT",14:"title",15:"title_value",16:"acc_title",17:"acc_title_value",18:"acc_descr",19:"acc_descr_value",20:"acc_descr_multiline_value",21:"section",23:"point_start",24:"point_x",25:"point_y",26:"X-AXIS",27:"AXIS-TEXT-DELIMITER",28:"Y-AXIS",29:"QUADRANT_1",30:"QUADRANT_2",31:"QUADRANT_3",32:"QUADRANT_4",36:":",38:"NEWLINE",39:"SEMI",40:"EOF",41:"open_directive",42:"type_directive",43:"arg_directive",44:"close_directive",47:"STR",48:"MD_STR",50:"PUNCTUATION",51:"AMP",52:"NUM",53:"ALPHA",54:"COMMA",55:"PLUS",56:"EQUALS",57:"MULT",58:"DOT",59:"BRKT",60:"UNDERSCORE",61:"MINUS"},productions_:[0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[10,0],[10,2],[10,1],[10,1],[10,1],[10,2],[10,2],[10,2],[10,1],[10,1],[10,1],[13,4],[11,4],[11,3],[11,2],[11,4],[11,3],[11,2],[12,2],[12,2],[12,2],[12,2],[6,3],[6,5],[4,1],[4,1],[4,1],[33,1],[34,1],[37,1],[35,1],[22,1],[22,2],[22,1],[22,1],[49,1],[49,2],[45,1],[45,1],[45,1],[45,1],[45,1],[45,1],[45,1],[45,1],[45,1],[45,1],[45,1],[46,1],[46,1],[46,1]],performAction:function(ne,Ee,ye,Vt,Ae,Gt,un){var jt=Gt.length-1;switch(Ae){case 13:this.$=Gt[jt].trim(),Vt.setDiagramTitle(this.$);break;case 14:this.$=Gt[jt].trim(),Vt.setAccTitle(this.$);break;case 15:case 16:this.$=Gt[jt].trim(),Vt.setAccDescription(this.$);break;case 17:Vt.addSection(Gt[jt].substr(8)),this.$=Gt[jt].substr(8);break;case 19:Vt.addPoint(Gt[jt-3],Gt[jt-1],Gt[jt]);break;case 20:Vt.setXAxisLeftText(Gt[jt-2]),Vt.setXAxisRightText(Gt[jt]);break;case 21:Gt[jt-1].text+=" ⟶ ",Vt.setXAxisLeftText(Gt[jt-1]);break;case 22:Vt.setXAxisLeftText(Gt[jt]);break;case 23:Vt.setYAxisBottomText(Gt[jt-2]),Vt.setYAxisTopText(Gt[jt]);break;case 24:Gt[jt-1].text+=" ⟶ ",Vt.setYAxisBottomText(Gt[jt-1]);break;case 25:Vt.setYAxisBottomText(Gt[jt]);break;case 26:Vt.setQuadrant1Text(Gt[jt]);break;case 27:Vt.setQuadrant2Text(Gt[jt]);break;case 28:Vt.setQuadrant3Text(Gt[jt]);break;case 29:Vt.setQuadrant4Text(Gt[jt]);break;case 35:Vt.parseDirective("%%{","open_directive");break;case 36:Vt.parseDirective(Gt[jt],"type_directive");break;case 37:Gt[jt]=Gt[jt].trim().replace(/'/g,'"'),Vt.parseDirective(Gt[jt],"arg_directive");break;case 38:Vt.parseDirective("}%%","close_directive","quadrantChart");break;case 39:this.$={text:Gt[jt],type:"text"};break;case 40:this.$={text:Gt[jt-1].text+""+Gt[jt],type:Gt[jt-1].type};break;case 41:this.$={text:Gt[jt],type:"text"};break;case 42:this.$={text:Gt[jt],type:"markdown"};break;case 43:this.$=Gt[jt];break;case 44:this.$=Gt[jt-1]+""+Gt[jt];break}},table:[{3:1,4:2,5:a,6:4,7:f,33:9,38:p,39:v,40:m,41:b},{1:[3]},{3:11,4:2,5:a,6:4,7:f,33:9,38:p,39:v,40:m,41:b},{3:12,4:2,5:a,6:4,7:f,33:9,38:p,39:v,40:m,41:b},{3:13,4:2,5:a,6:4,7:f,33:9,38:p,39:v,40:m,41:b},i(E,[2,5],{8:14}),i(C,[2,32]),i(C,[2,33]),i(C,[2,34]),{34:15,42:[1,16]},{42:[2,35]},{1:[2,1]},{1:[2,2]},{1:[2,3]},i(D,P,{33:9,9:17,10:18,11:20,12:21,13:22,6:28,22:35,45:36,1:[2,4],5:B,14:j,16:R,18:H,20:Y,21:it,26:nt,28:st,29:pt,30:Tt,31:kt,32:yt,41:b,47:ht,48:mt,50:rt,51:wt,52:gt,53:lt,54:_t,55:X,56:Rt,57:ft,58:de,59:J,60:ae}),{35:50,36:[1,51],44:Wt},i([36,44],[2,36]),i(E,[2,6]),{4:53,38:p,39:v,40:m},i(D,P,{33:9,11:20,12:21,13:22,6:28,22:35,45:36,10:54,5:B,14:j,16:R,18:H,20:Y,21:it,26:nt,28:st,29:pt,30:Tt,31:kt,32:yt,41:b,47:ht,48:mt,50:rt,51:wt,52:gt,53:lt,54:_t,55:X,56:Rt,57:ft,58:de,59:J,60:ae}),i(D,[2,10]),i(D,[2,11]),i(D,[2,12]),{15:[1,55]},{17:[1,56]},{19:[1,57]},i(D,[2,16]),i(D,[2,17]),i(D,[2,18]),{22:58,45:36,47:ht,48:mt,50:rt,51:wt,52:gt,53:lt,54:_t,55:X,56:Rt,57:ft,58:de,59:J,60:ae},{22:59,45:36,47:ht,48:mt,50:rt,51:wt,52:gt,53:lt,54:_t,55:X,56:Rt,57:ft,58:de,59:J,60:ae},{22:60,45:36,47:ht,48:mt,50:rt,51:wt,52:gt,53:lt,54:_t,55:X,56:Rt,57:ft,58:de,59:J,60:ae},{22:61,45:36,47:ht,48:mt,50:rt,51:wt,52:gt,53:lt,54:_t,55:X,56:Rt,57:ft,58:de,59:J,60:ae},{22:62,45:36,47:ht,48:mt,50:rt,51:wt,52:gt,53:lt,54:_t,55:X,56:Rt,57:ft,58:de,59:J,60:ae},{22:63,45:36,47:ht,48:mt,50:rt,51:wt,52:gt,53:lt,54:_t,55:X,56:Rt,57:ft,58:de,59:J,60:ae},{5:It,23:[1,64],45:66,46:65,50:rt,51:wt,52:gt,53:lt,54:_t,55:X,56:Rt,57:ft,58:de,59:J,60:ae,61:Nt},i(me,[2,39]),i(me,[2,41]),i(me,[2,42]),i(me,[2,45]),i(me,[2,46]),i(me,[2,47]),i(me,[2,48]),i(me,[2,49]),i(me,[2,50]),i(me,[2,51]),i(me,[2,52]),i(me,[2,53]),i(me,[2,54]),i(me,[2,55]),i(Ue,[2,30]),{37:69,43:[1,70]},i(Ue,[2,38]),i(E,[2,7]),i(D,[2,9]),i(D,[2,13]),i(D,[2,14]),i(D,[2,15]),i(D,[2,22],{46:65,45:66,5:It,27:[1,71],50:rt,51:wt,52:gt,53:lt,54:_t,55:X,56:Rt,57:ft,58:de,59:J,60:ae,61:Nt}),i(D,[2,25],{46:65,45:66,5:It,27:[1,72],50:rt,51:wt,52:gt,53:lt,54:_t,55:X,56:Rt,57:ft,58:de,59:J,60:ae,61:Nt}),i(D,[2,26],{46:65,45:66,5:It,50:rt,51:wt,52:gt,53:lt,54:_t,55:X,56:Rt,57:ft,58:de,59:J,60:ae,61:Nt}),i(D,[2,27],{46:65,45:66,5:It,50:rt,51:wt,52:gt,53:lt,54:_t,55:X,56:Rt,57:ft,58:de,59:J,60:ae,61:Nt}),i(D,[2,28],{46:65,45:66,5:It,50:rt,51:wt,52:gt,53:lt,54:_t,55:X,56:Rt,57:ft,58:de,59:J,60:ae,61:Nt}),i(D,[2,29],{46:65,45:66,5:It,50:rt,51:wt,52:gt,53:lt,54:_t,55:X,56:Rt,57:ft,58:de,59:J,60:ae,61:Nt}),{24:[1,73]},i(me,[2,40]),i(me,[2,56]),i(me,[2,57]),i(me,[2,58]),{35:74,44:Wt},{44:[2,37]},i(D,[2,21],{45:36,22:75,47:ht,48:mt,50:rt,51:wt,52:gt,53:lt,54:_t,55:X,56:Rt,57:ft,58:de,59:J,60:ae}),i(D,[2,24],{45:36,22:76,47:ht,48:mt,50:rt,51:wt,52:gt,53:lt,54:_t,55:X,56:Rt,57:ft,58:de,59:J,60:ae}),{25:[1,77]},i(Ue,[2,31]),i(D,[2,20],{46:65,45:66,5:It,50:rt,51:wt,52:gt,53:lt,54:_t,55:X,56:Rt,57:ft,58:de,59:J,60:ae,61:Nt}),i(D,[2,23],{46:65,45:66,5:It,50:rt,51:wt,52:gt,53:lt,54:_t,55:X,56:Rt,57:ft,58:de,59:J,60:ae,61:Nt}),i(D,[2,19])],defaultActions:{10:[2,35],11:[2,1],12:[2,2],13:[2,3],70:[2,37]},parseError:function(ne,Ee){if(Ee.recoverable)this.trace(ne);else{var ye=new Error(ne);throw ye.hash=Ee,ye}},parse:function(ne){var Ee=this,ye=[0],Vt=[],Ae=[null],Gt=[],un=this.table,jt="",Ke=0,oe=0,Or=2,Le=1,Nr=Gt.slice.call(arguments,1),fe=Object.create(this.lexer),sr={yy:{}};for(var Yn in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Yn)&&(sr.yy[Yn]=this.yy[Yn]);fe.setInput(ne,sr.yy),sr.yy.lexer=fe,sr.yy.parser=this,typeof fe.yylloc>"u"&&(fe.yylloc={});var tr=fe.yylloc;Gt.push(tr);var ur=fe.options&&fe.options.ranges;typeof sr.yy.parseError=="function"?this.parseError=sr.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function gn(){var Pr;return Pr=Vt.pop()||fe.lex()||Le,typeof Pr!="number"&&(Pr instanceof Array&&(Vt=Pr,Pr=Vt.pop()),Pr=Ee.symbols_[Pr]||Pr),Pr}for(var En,Dr,hr,Ki,Is={},Ha,hi,qi,zn;;){if(Dr=ye[ye.length-1],this.defaultActions[Dr]?hr=this.defaultActions[Dr]:((En===null||typeof En>"u")&&(En=gn()),hr=un[Dr]&&un[Dr][En]),typeof hr>"u"||!hr.length||!hr[0]){var Zn="";zn=[];for(Ha in un[Dr])this.terminals_[Ha]&&Ha>Or&&zn.push("'"+this.terminals_[Ha]+"'");fe.showPosition?Zn="Parse error on line "+(Ke+1)+`: -`+fe.showPosition()+` -Expecting `+zn.join(", ")+", got '"+(this.terminals_[En]||En)+"'":Zn="Parse error on line "+(Ke+1)+": Unexpected "+(En==Le?"end of input":"'"+(this.terminals_[En]||En)+"'"),this.parseError(Zn,{text:fe.match,token:this.terminals_[En]||En,line:fe.yylineno,loc:tr,expected:zn})}if(hr[0]instanceof Array&&hr.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Dr+", token: "+En);switch(hr[0]){case 1:ye.push(En),Ae.push(fe.yytext),Gt.push(fe.yylloc),ye.push(hr[1]),En=null,oe=fe.yyleng,jt=fe.yytext,Ke=fe.yylineno,tr=fe.yylloc;break;case 2:if(hi=this.productions_[hr[1]][1],Is.$=Ae[Ae.length-hi],Is._$={first_line:Gt[Gt.length-(hi||1)].first_line,last_line:Gt[Gt.length-1].last_line,first_column:Gt[Gt.length-(hi||1)].first_column,last_column:Gt[Gt.length-1].last_column},ur&&(Is._$.range=[Gt[Gt.length-(hi||1)].range[0],Gt[Gt.length-1].range[1]]),Ki=this.performAction.apply(Is,[jt,oe,Ke,sr.yy,hr[1],Ae,Gt].concat(Nr)),typeof Ki<"u")return Ki;hi&&(ye=ye.slice(0,-1*hi*2),Ae=Ae.slice(0,-1*hi),Gt=Gt.slice(0,-1*hi)),ye.push(this.productions_[hr[1]][0]),Ae.push(Is.$),Gt.push(Is._$),qi=un[ye[ye.length-2]][ye[ye.length-1]],ye.push(qi);break;case 3:return!0}}return!0}},_e=function(){var Te={EOF:1,parseError:function(Ee,ye){if(this.yy.parser)this.yy.parser.parseError(Ee,ye);else throw new Error(Ee)},setInput:function(ne,Ee){return this.yy=Ee||this.yy||{},this._input=ne,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var ne=this._input[0];this.yytext+=ne,this.yyleng++,this.offset++,this.match+=ne,this.matched+=ne;var Ee=ne.match(/(?:\r\n?|\n).*/g);return Ee?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),ne},unput:function(ne){var Ee=ne.length,ye=ne.split(/(?:\r\n?|\n)/g);this._input=ne+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Ee),this.offset-=Ee;var Vt=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),ye.length-1&&(this.yylineno-=ye.length-1);var Ae=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:ye?(ye.length===Vt.length?this.yylloc.first_column:0)+Vt[Vt.length-ye.length].length-ye[0].length:this.yylloc.first_column-Ee},this.options.ranges&&(this.yylloc.range=[Ae[0],Ae[0]+this.yyleng-Ee]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). -`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(ne){this.unput(this.match.slice(ne))},pastInput:function(){var ne=this.matched.substr(0,this.matched.length-this.match.length);return(ne.length>20?"...":"")+ne.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var ne=this.match;return ne.length<20&&(ne+=this._input.substr(0,20-ne.length)),(ne.substr(0,20)+(ne.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var ne=this.pastInput(),Ee=new Array(ne.length+1).join("-");return ne+this.upcomingInput()+` -`+Ee+"^"},test_match:function(ne,Ee){var ye,Vt,Ae;if(this.options.backtrack_lexer&&(Ae={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(Ae.yylloc.range=this.yylloc.range.slice(0))),Vt=ne[0].match(/(?:\r\n?|\n).*/g),Vt&&(this.yylineno+=Vt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Vt?Vt[Vt.length-1].length-Vt[Vt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+ne[0].length},this.yytext+=ne[0],this.match+=ne[0],this.matches=ne,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(ne[0].length),this.matched+=ne[0],ye=this.performAction.call(this,this.yy,this,Ee,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),ye)return ye;if(this._backtrack){for(var Gt in Ae)this[Gt]=Ae[Gt];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var ne,Ee,ye,Vt;this._more||(this.yytext="",this.match="");for(var Ae=this._currentRules(),Gt=0;GtEe[0].length)){if(Ee=ye,Vt=Gt,this.options.backtrack_lexer){if(ne=this.test_match(ye,Ae[Gt]),ne!==!1)return ne;if(this._backtrack){Ee=!1;continue}else return!1}else if(!this.options.flex)break}return Ee?(ne=this.test_match(Ee,Ae[Vt]),ne!==!1?ne:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var Ee=this.next();return Ee||this.lex()},begin:function(Ee){this.conditionStack.push(Ee)},popState:function(){var Ee=this.conditionStack.length-1;return Ee>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(Ee){return Ee=this.conditionStack.length-1-Math.abs(Ee||0),Ee>=0?this.conditionStack[Ee]:"INITIAL"},pushState:function(Ee){this.begin(Ee)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(Ee,ye,Vt,Ae){switch(Vt){case 0:return this.begin("open_directive"),41;case 1:return this.begin("type_directive"),42;case 2:return this.popState(),this.begin("arg_directive"),36;case 3:return this.popState(),this.popState(),44;case 4:return 43;case 5:break;case 6:break;case 7:return 38;case 8:break;case 9:return this.begin("title"),14;case 10:return this.popState(),"title_value";case 11:return this.begin("acc_title"),16;case 12:return this.popState(),"acc_title_value";case 13:return this.begin("acc_descr"),18;case 14:return this.popState(),"acc_descr_value";case 15:this.begin("acc_descr_multiline");break;case 16:this.popState();break;case 17:return"acc_descr_multiline_value";case 18:return 26;case 19:return 28;case 20:return 27;case 21:return 29;case 22:return 30;case 23:return 31;case 24:return 32;case 25:this.begin("md_string");break;case 26:return"MD_STR";case 27:this.popState();break;case 28:this.begin("string");break;case 29:this.popState();break;case 30:return"STR";case 31:return this.begin("point_start"),23;case 32:return this.begin("point_x"),24;case 33:this.popState();break;case 34:this.popState(),this.begin("point_y");break;case 35:return this.popState(),25;case 36:return 7;case 37:return 53;case 38:return"COLON";case 39:return 55;case 40:return 54;case 41:return 56;case 42:return 56;case 43:return 57;case 44:return 59;case 45:return 60;case 46:return 58;case 47:return 51;case 48:return 61;case 49:return 52;case 50:return 5;case 51:return 39;case 52:return 50;case 53:return 40}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?: *x-axis *)/i,/^(?: *y-axis *)/i,/^(?: *--+> *)/i,/^(?: *quadrant-1 *)/i,/^(?: *quadrant-2 *)/i,/^(?: *quadrant-3 *)/i,/^(?: *quadrant-4 *)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\s*:\s*\[\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?:\s*\] *)/i,/^(?:\s*,\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?: *quadrantChart *)/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s)/i,/^(?:;)/i,/^(?:[!"#$%&'*+,-.`?\\_/])/i,/^(?:$)/i],conditions:{point_y:{rules:[35],inclusive:!1},point_x:{rules:[34],inclusive:!1},point_start:{rules:[32,33],inclusive:!1},acc_descr_multiline:{rules:[16,17],inclusive:!1},acc_descr:{rules:[14],inclusive:!1},acc_title:{rules:[12],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},title:{rules:[10],inclusive:!1},md_string:{rules:[26,27],inclusive:!1},string:{rules:[29,30],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,11,13,15,18,19,20,21,22,23,24,25,28,31,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53],inclusive:!0}}};return Te}();_n.lexer=_e;function rr(){this.yy={}}return rr.prototype=_n,_n.Parser=rr,new rr}();H0t.parser=H0t;const Ize=H0t,fg=IDt();class Oze{constructor(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData()}getDefaultData(){return{titleText:"",quadrant1Text:"",quadrant2Text:"",quadrant3Text:"",quadrant4Text:"",xAxisLeftText:"",xAxisRightText:"",yAxisBottomText:"",yAxisTopText:"",points:[]}}getDefaultConfig(){var a,f,p,v,m,b,E,C,D,P,B,j,R,H,Y,it,nt,st;return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:((a=f1.quadrantChart)==null?void 0:a.chartWidth)||500,chartWidth:((f=f1.quadrantChart)==null?void 0:f.chartHeight)||500,titlePadding:((p=f1.quadrantChart)==null?void 0:p.titlePadding)||10,titleFontSize:((v=f1.quadrantChart)==null?void 0:v.titleFontSize)||20,quadrantPadding:((m=f1.quadrantChart)==null?void 0:m.quadrantPadding)||5,xAxisLabelPadding:((b=f1.quadrantChart)==null?void 0:b.xAxisLabelPadding)||5,yAxisLabelPadding:((E=f1.quadrantChart)==null?void 0:E.yAxisLabelPadding)||5,xAxisLabelFontSize:((C=f1.quadrantChart)==null?void 0:C.xAxisLabelFontSize)||16,yAxisLabelFontSize:((D=f1.quadrantChart)==null?void 0:D.yAxisLabelFontSize)||16,quadrantLabelFontSize:((P=f1.quadrantChart)==null?void 0:P.quadrantLabelFontSize)||16,quadrantTextTopPadding:((B=f1.quadrantChart)==null?void 0:B.quadrantTextTopPadding)||5,pointTextPadding:((j=f1.quadrantChart)==null?void 0:j.pointTextPadding)||5,pointLabelFontSize:((R=f1.quadrantChart)==null?void 0:R.pointLabelFontSize)||12,pointRadius:((H=f1.quadrantChart)==null?void 0:H.pointRadius)||5,xAxisPosition:((Y=f1.quadrantChart)==null?void 0:Y.xAxisPosition)||"top",yAxisPosition:((it=f1.quadrantChart)==null?void 0:it.yAxisPosition)||"left",quadrantInternalBorderStrokeWidth:((nt=f1.quadrantChart)==null?void 0:nt.quadrantInternalBorderStrokeWidth)||1,quadrantExternalBorderStrokeWidth:((st=f1.quadrantChart)==null?void 0:st.quadrantExternalBorderStrokeWidth)||2}}getDefaultThemeConfig(){return{quadrant1Fill:fg.quadrant1Fill,quadrant2Fill:fg.quadrant2Fill,quadrant3Fill:fg.quadrant3Fill,quadrant4Fill:fg.quadrant4Fill,quadrant1TextFill:fg.quadrant1TextFill,quadrant2TextFill:fg.quadrant2TextFill,quadrant3TextFill:fg.quadrant3TextFill,quadrant4TextFill:fg.quadrant4TextFill,quadrantPointFill:fg.quadrantPointFill,quadrantPointTextFill:fg.quadrantPointTextFill,quadrantXAxisTextFill:fg.quadrantXAxisTextFill,quadrantYAxisTextFill:fg.quadrantYAxisTextFill,quadrantTitleFill:fg.quadrantTitleFill,quadrantInternalBorderStrokeFill:fg.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:fg.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),zt.info("clear called")}setData(a){this.data={...this.data,...a}}addPoints(a){this.data.points=[...a,...this.data.points]}setConfig(a){zt.trace("setConfig called with: ",a),this.config={...this.config,...a}}setThemeConfig(a){zt.trace("setThemeConfig called with: ",a),this.themeConfig={...this.themeConfig,...a}}calculateSpace(a,f,p,v){const m=this.config.xAxisLabelPadding*2+this.config.xAxisLabelFontSize,b={top:a==="top"&&f?m:0,bottom:a==="bottom"&&f?m:0},E=this.config.yAxisLabelPadding*2+this.config.yAxisLabelFontSize,C={left:this.config.yAxisPosition==="left"&&p?E:0,right:this.config.yAxisPosition==="right"&&p?E:0},D=this.config.titleFontSize+this.config.titlePadding*2,P={top:v?D:0},B=this.config.quadrantPadding+C.left,j=this.config.quadrantPadding+b.top+P.top,R=this.config.chartWidth-this.config.quadrantPadding*2-C.left-C.right,H=this.config.chartHeight-this.config.quadrantPadding*2-b.top-b.bottom-P.top,Y=R/2,it=H/2;return{xAxisSpace:b,yAxisSpace:C,titleSpace:P,quadrantSpace:{quadrantLeft:B,quadrantTop:j,quadrantWidth:R,quadrantHalfWidth:Y,quadrantHeight:H,quadrantHalfHeight:it}}}getAxisLabels(a,f,p,v){const{quadrantSpace:m,titleSpace:b}=v,{quadrantHalfHeight:E,quadrantHeight:C,quadrantLeft:D,quadrantHalfWidth:P,quadrantTop:B,quadrantWidth:j}=m,R=this.data.points.length===0,H=[];return this.data.xAxisLeftText&&f&&H.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:D+(R?P/2:0),y:a==="top"?this.config.xAxisLabelPadding+b.top:this.config.xAxisLabelPadding+B+C+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:R?"center":"left",horizontalPos:"top",rotation:0}),this.data.xAxisRightText&&f&&H.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:D+P+(R?P/2:0),y:a==="top"?this.config.xAxisLabelPadding+b.top:this.config.xAxisLabelPadding+B+C+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:R?"center":"left",horizontalPos:"top",rotation:0}),this.data.yAxisBottomText&&p&&H.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+D+j+this.config.quadrantPadding,y:B+C-(R?E/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:R?"center":"left",horizontalPos:"top",rotation:-90}),this.data.yAxisTopText&&p&&H.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+D+j+this.config.quadrantPadding,y:B+E-(R?E/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:R?"center":"left",horizontalPos:"top",rotation:-90}),H}getQuadrants(a){const{quadrantSpace:f}=a,{quadrantHalfHeight:p,quadrantLeft:v,quadrantHalfWidth:m,quadrantTop:b}=f,E=[{text:{text:this.data.quadrant1Text,fill:this.themeConfig.quadrant1TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:v+m,y:b,width:m,height:p,fill:this.themeConfig.quadrant1Fill},{text:{text:this.data.quadrant2Text,fill:this.themeConfig.quadrant2TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:v,y:b,width:m,height:p,fill:this.themeConfig.quadrant2Fill},{text:{text:this.data.quadrant3Text,fill:this.themeConfig.quadrant3TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:v,y:b+p,width:m,height:p,fill:this.themeConfig.quadrant3Fill},{text:{text:this.data.quadrant4Text,fill:this.themeConfig.quadrant4TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:v+m,y:b+p,width:m,height:p,fill:this.themeConfig.quadrant4Fill}];for(const C of E)C.text.x=C.x+C.width/2,this.data.points.length===0?(C.text.y=C.y+C.height/2,C.text.horizontalPos="middle"):(C.text.y=C.y+this.config.quadrantTextTopPadding,C.text.horizontalPos="top");return E}getQuadrantPoints(a){const{quadrantSpace:f}=a,{quadrantHeight:p,quadrantLeft:v,quadrantTop:m,quadrantWidth:b}=f,E=AU().domain([0,1]).range([v,b+v]),C=AU().domain([0,1]).range([p+m,m]);return this.data.points.map(P=>({x:E(P.x),y:C(P.y),fill:this.themeConfig.quadrantPointFill,radius:this.config.pointRadius,text:{text:P.text,fill:this.themeConfig.quadrantPointTextFill,x:E(P.x),y:C(P.y)+this.config.pointTextPadding,verticalPos:"center",horizontalPos:"top",fontSize:this.config.pointLabelFontSize,rotation:0}}))}getBorders(a){const f=this.config.quadrantExternalBorderStrokeWidth/2,{quadrantSpace:p}=a,{quadrantHalfHeight:v,quadrantHeight:m,quadrantLeft:b,quadrantHalfWidth:E,quadrantTop:C,quadrantWidth:D}=p;return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:b-f,y1:C,x2:b+D+f,y2:C},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:b+D,y1:C+f,x2:b+D,y2:C+m-f},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:b-f,y1:C+m,x2:b+D+f,y2:C+m},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:b,y1:C+f,x2:b,y2:C+m-f},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:b+E,y1:C+f,x2:b+E,y2:C+m-f},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:b+f,y1:C+v,x2:b+D-f,y2:C+v}]}getTitle(a){if(a)return{text:this.data.titleText,fill:this.themeConfig.quadrantTitleFill,fontSize:this.config.titleFontSize,horizontalPos:"top",verticalPos:"center",rotation:0,y:this.config.titlePadding,x:this.config.chartWidth/2}}build(){const a=this.config.showXAxis&&!!(this.data.xAxisLeftText||this.data.xAxisRightText),f=this.config.showYAxis&&!!(this.data.yAxisTopText||this.data.yAxisBottomText),p=this.config.showTitle&&!!this.data.titleText,v=this.data.points.length>0?"bottom":this.config.xAxisPosition,m=this.calculateSpace(v,a,f,p);return{points:this.getQuadrantPoints(m),quadrants:this.getQuadrants(m),axisLabels:this.getAxisLabels(v,a,f,m),borderLines:this.getBorders(m),title:this.getTitle(p)}}}const Nze=Oe();function D5(i){return sg(i.trim(),Nze)}const k0=new Oze;function Pze(i){k0.setData({quadrant1Text:D5(i.text)})}function Fze(i){k0.setData({quadrant2Text:D5(i.text)})}function Bze(i){k0.setData({quadrant3Text:D5(i.text)})}function Rze(i){k0.setData({quadrant4Text:D5(i.text)})}function jze(i){k0.setData({xAxisLeftText:D5(i.text)})}function $ze(i){k0.setData({xAxisRightText:D5(i.text)})}function zze(i){k0.setData({yAxisTopText:D5(i.text)})}function qze(i){k0.setData({yAxisBottomText:D5(i.text)})}function Hze(i,a,f){k0.addPoints([{x:a,y:f,text:D5(i.text)}])}function Vze(i){k0.setConfig({chartWidth:i})}function Gze(i){k0.setConfig({chartHeight:i})}function Uze(){const i=Oe(),{themeVariables:a,quadrantChart:f}=i;return f&&k0.setConfig(f),k0.setThemeConfig({quadrant1Fill:a.quadrant1Fill,quadrant2Fill:a.quadrant2Fill,quadrant3Fill:a.quadrant3Fill,quadrant4Fill:a.quadrant4Fill,quadrant1TextFill:a.quadrant1TextFill,quadrant2TextFill:a.quadrant2TextFill,quadrant3TextFill:a.quadrant3TextFill,quadrant4TextFill:a.quadrant4TextFill,quadrantPointFill:a.quadrantPointFill,quadrantPointTextFill:a.quadrantPointTextFill,quadrantXAxisTextFill:a.quadrantXAxisTextFill,quadrantYAxisTextFill:a.quadrantYAxisTextFill,quadrantExternalBorderStrokeFill:a.quadrantExternalBorderStrokeFill,quadrantInternalBorderStrokeFill:a.quadrantInternalBorderStrokeFill,quadrantTitleFill:a.quadrantTitleFill}),k0.setData({titleText:O2()}),k0.build()}const Wze=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:Ize,db:{setWidth:Vze,setHeight:Gze,setQuadrant1Text:Pze,setQuadrant2Text:Fze,setQuadrant3Text:Bze,setQuadrant4Text:Rze,setXAxisLeftText:jze,setXAxisRightText:$ze,setYAxisTopText:zze,setYAxisBottomText:qze,addPoint:Hze,getQuadrantData:Uze,parseDirective:function(i,a,f){d1.parseDirective(this,i,a,f)},clear:function(){k0.clear(),cg()},setAccTitle:ug,getAccTitle:op,setDiagramTitle:Kb,getDiagramTitle:O2,getAccDescription:up,setAccDescription:cp},renderer:{draw:(i,a,f,p)=>{var mt,rt,wt;function v(gt){return gt==="top"?"hanging":"middle"}function m(gt){return gt==="left"?"start":"middle"}function b(gt){return`translate(${gt.x}, ${gt.y}) rotate(${gt.rotation||0})`}const E=Oe();zt.debug(`Rendering quadrant chart -`+i);const C=E.securityLevel;let D;C==="sandbox"&&(D=Mr("#i"+a));const B=Mr(C==="sandbox"?D.nodes()[0].contentDocument.body:"body").select(`[id="${a}"]`),j=B.append("g").attr("class","main"),R=((mt=E.quadrantChart)==null?void 0:mt.chartWidth)||500,H=((rt=E.quadrantChart)==null?void 0:rt.chartHeight)||500;Wb(B,H,R,((wt=E.quadrantChart)==null?void 0:wt.useMaxWidth)||!0),B.attr("viewBox","0 0 "+R+" "+H),p.db.setHeight(H),p.db.setWidth(R);const Y=p.db.getQuadrantData(),it=j.append("g").attr("class","quadrants"),nt=j.append("g").attr("class","border"),st=j.append("g").attr("class","data-points"),pt=j.append("g").attr("class","labels"),Tt=j.append("g").attr("class","title");Y.title&&Tt.append("text").attr("x",0).attr("y",0).attr("fill",Y.title.fill).attr("font-size",Y.title.fontSize).attr("dominant-baseline",v(Y.title.horizontalPos)).attr("text-anchor",m(Y.title.verticalPos)).attr("transform",b(Y.title)).text(Y.title.text),Y.borderLines&&nt.selectAll("line").data(Y.borderLines).enter().append("line").attr("x1",gt=>gt.x1).attr("y1",gt=>gt.y1).attr("x2",gt=>gt.x2).attr("y2",gt=>gt.y2).style("stroke",gt=>gt.strokeFill).style("stroke-width",gt=>gt.strokeWidth);const kt=it.selectAll("g.quadrant").data(Y.quadrants).enter().append("g").attr("class","quadrant");kt.append("rect").attr("x",gt=>gt.x).attr("y",gt=>gt.y).attr("width",gt=>gt.width).attr("height",gt=>gt.height).attr("fill",gt=>gt.fill),kt.append("text").attr("x",0).attr("y",0).attr("fill",gt=>gt.text.fill).attr("font-size",gt=>gt.text.fontSize).attr("dominant-baseline",gt=>v(gt.text.horizontalPos)).attr("text-anchor",gt=>m(gt.text.verticalPos)).attr("transform",gt=>b(gt.text)).text(gt=>gt.text.text),pt.selectAll("g.label").data(Y.axisLabels).enter().append("g").attr("class","label").append("text").attr("x",0).attr("y",0).text(gt=>gt.text).attr("fill",gt=>gt.fill).attr("font-size",gt=>gt.fontSize).attr("dominant-baseline",gt=>v(gt.horizontalPos)).attr("text-anchor",gt=>m(gt.verticalPos)).attr("transform",gt=>b(gt));const ht=st.selectAll("g.data-point").data(Y.points).enter().append("g").attr("class","data-point");ht.append("circle").attr("cx",gt=>gt.x).attr("cy",gt=>gt.y).attr("r",gt=>gt.radius).attr("fill",gt=>gt.fill),ht.append("text").attr("x",0).attr("y",0).text(gt=>gt.text.text).attr("fill",gt=>gt.text.fill).attr("font-size",gt=>gt.text.fontSize).attr("dominant-baseline",gt=>v(gt.text.horizontalPos)).attr("text-anchor",gt=>m(gt.text.verticalPos)).attr("transform",gt=>b(gt.text))}},styles:()=>""}},Symbol.toStringTag,{value:"Module"}));var V0t=function(){var i=function(rr,Te,ne,Ee){for(ne=ne||{},Ee=rr.length;Ee--;ne[rr[Ee]]=Te);return ne},a=[1,3],f=[1,5],p=[1,6],v=[1,7],m=[1,8],b=[5,6,8,14,16,18,19,40,41,42,43,44,45,53,71,72],E=[1,22],C=[2,13],D=[1,26],P=[1,27],B=[1,28],j=[1,29],R=[1,30],H=[1,31],Y=[1,24],it=[1,32],nt=[1,33],st=[1,36],pt=[71,72],Tt=[5,8,14,16,18,19,40,41,42,43,44,45,53,60,62,71,72],kt=[1,56],yt=[1,57],ht=[1,58],mt=[1,59],rt=[1,60],wt=[1,61],gt=[1,62],lt=[62,63],_t=[1,74],X=[1,70],Rt=[1,71],ft=[1,72],de=[1,73],J=[1,75],ae=[1,79],Wt=[1,80],It=[1,77],Nt=[1,78],me=[5,8,14,16,18,19,40,41,42,43,44,45,53,71,72],Ue={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,openDirective:9,typeDirective:10,closeDirective:11,":":12,argDirective:13,acc_title:14,acc_title_value:15,acc_descr:16,acc_descr_value:17,acc_descr_multiline_value:18,open_directive:19,type_directive:20,arg_directive:21,close_directive:22,requirementDef:23,elementDef:24,relationshipDef:25,requirementType:26,requirementName:27,STRUCT_START:28,requirementBody:29,ID:30,COLONSEP:31,id:32,TEXT:33,text:34,RISK:35,riskLevel:36,VERIFYMTHD:37,verifyType:38,STRUCT_STOP:39,REQUIREMENT:40,FUNCTIONAL_REQUIREMENT:41,INTERFACE_REQUIREMENT:42,PERFORMANCE_REQUIREMENT:43,PHYSICAL_REQUIREMENT:44,DESIGN_CONSTRAINT:45,LOW_RISK:46,MED_RISK:47,HIGH_RISK:48,VERIFY_ANALYSIS:49,VERIFY_DEMONSTRATION:50,VERIFY_INSPECTION:51,VERIFY_TEST:52,ELEMENT:53,elementName:54,elementBody:55,TYPE:56,type:57,DOCREF:58,ref:59,END_ARROW_L:60,relationship:61,LINE:62,END_ARROW_R:63,CONTAINS:64,COPIES:65,DERIVES:66,SATISFIES:67,VERIFIES:68,REFINES:69,TRACES:70,unqString:71,qString:72,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",12:":",14:"acc_title",15:"acc_title_value",16:"acc_descr",17:"acc_descr_value",18:"acc_descr_multiline_value",19:"open_directive",20:"type_directive",21:"arg_directive",22:"close_directive",28:"STRUCT_START",30:"ID",31:"COLONSEP",33:"TEXT",35:"RISK",37:"VERIFYMTHD",39:"STRUCT_STOP",40:"REQUIREMENT",41:"FUNCTIONAL_REQUIREMENT",42:"INTERFACE_REQUIREMENT",43:"PERFORMANCE_REQUIREMENT",44:"PHYSICAL_REQUIREMENT",45:"DESIGN_CONSTRAINT",46:"LOW_RISK",47:"MED_RISK",48:"HIGH_RISK",49:"VERIFY_ANALYSIS",50:"VERIFY_DEMONSTRATION",51:"VERIFY_INSPECTION",52:"VERIFY_TEST",53:"ELEMENT",56:"TYPE",58:"DOCREF",60:"END_ARROW_L",62:"LINE",63:"END_ARROW_R",64:"CONTAINS",65:"COPIES",66:"DERIVES",67:"SATISFIES",68:"VERIFIES",69:"REFINES",70:"TRACES",71:"unqString",72:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,3],[4,5],[4,2],[4,2],[4,1],[9,1],[10,1],[13,1],[11,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[23,5],[29,5],[29,5],[29,5],[29,5],[29,2],[29,1],[26,1],[26,1],[26,1],[26,1],[26,1],[26,1],[36,1],[36,1],[36,1],[38,1],[38,1],[38,1],[38,1],[24,5],[55,5],[55,5],[55,2],[55,1],[25,5],[25,5],[61,1],[61,1],[61,1],[61,1],[61,1],[61,1],[61,1],[27,1],[27,1],[32,1],[32,1],[34,1],[34,1],[54,1],[54,1],[57,1],[57,1],[59,1],[59,1]],performAction:function(Te,ne,Ee,ye,Vt,Ae,Gt){var un=Ae.length-1;switch(Vt){case 6:this.$=Ae[un].trim(),ye.setAccTitle(this.$);break;case 7:case 8:this.$=Ae[un].trim(),ye.setAccDescription(this.$);break;case 9:ye.parseDirective("%%{","open_directive");break;case 10:ye.parseDirective(Ae[un],"type_directive");break;case 11:Ae[un]=Ae[un].trim().replace(/'/g,'"'),ye.parseDirective(Ae[un],"arg_directive");break;case 12:ye.parseDirective("}%%","close_directive","pie");break;case 13:this.$=[];break;case 19:ye.addRequirement(Ae[un-3],Ae[un-4]);break;case 20:ye.setNewReqId(Ae[un-2]);break;case 21:ye.setNewReqText(Ae[un-2]);break;case 22:ye.setNewReqRisk(Ae[un-2]);break;case 23:ye.setNewReqVerifyMethod(Ae[un-2]);break;case 26:this.$=ye.RequirementType.REQUIREMENT;break;case 27:this.$=ye.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 28:this.$=ye.RequirementType.INTERFACE_REQUIREMENT;break;case 29:this.$=ye.RequirementType.PERFORMANCE_REQUIREMENT;break;case 30:this.$=ye.RequirementType.PHYSICAL_REQUIREMENT;break;case 31:this.$=ye.RequirementType.DESIGN_CONSTRAINT;break;case 32:this.$=ye.RiskLevel.LOW_RISK;break;case 33:this.$=ye.RiskLevel.MED_RISK;break;case 34:this.$=ye.RiskLevel.HIGH_RISK;break;case 35:this.$=ye.VerifyType.VERIFY_ANALYSIS;break;case 36:this.$=ye.VerifyType.VERIFY_DEMONSTRATION;break;case 37:this.$=ye.VerifyType.VERIFY_INSPECTION;break;case 38:this.$=ye.VerifyType.VERIFY_TEST;break;case 39:ye.addElement(Ae[un-3]);break;case 40:ye.setNewElementType(Ae[un-2]);break;case 41:ye.setNewElementDocRef(Ae[un-2]);break;case 44:ye.addRelationship(Ae[un-2],Ae[un],Ae[un-4]);break;case 45:ye.addRelationship(Ae[un-2],Ae[un-4],Ae[un]);break;case 46:this.$=ye.Relationships.CONTAINS;break;case 47:this.$=ye.Relationships.COPIES;break;case 48:this.$=ye.Relationships.DERIVES;break;case 49:this.$=ye.Relationships.SATISFIES;break;case 50:this.$=ye.Relationships.VERIFIES;break;case 51:this.$=ye.Relationships.REFINES;break;case 52:this.$=ye.Relationships.TRACES;break}},table:[{3:1,4:2,6:a,9:4,14:f,16:p,18:v,19:m},{1:[3]},{3:10,4:2,5:[1,9],6:a,9:4,14:f,16:p,18:v,19:m},{5:[1,11]},{10:12,20:[1,13]},{15:[1,14]},{17:[1,15]},i(b,[2,8]),{20:[2,9]},{3:16,4:2,6:a,9:4,14:f,16:p,18:v,19:m},{1:[2,2]},{4:21,5:E,7:17,8:C,9:4,14:f,16:p,18:v,19:m,23:18,24:19,25:20,26:23,32:25,40:D,41:P,42:B,43:j,44:R,45:H,53:Y,71:it,72:nt},{11:34,12:[1,35],22:st},i([12,22],[2,10]),i(b,[2,6]),i(b,[2,7]),{1:[2,1]},{8:[1,37]},{4:21,5:E,7:38,8:C,9:4,14:f,16:p,18:v,19:m,23:18,24:19,25:20,26:23,32:25,40:D,41:P,42:B,43:j,44:R,45:H,53:Y,71:it,72:nt},{4:21,5:E,7:39,8:C,9:4,14:f,16:p,18:v,19:m,23:18,24:19,25:20,26:23,32:25,40:D,41:P,42:B,43:j,44:R,45:H,53:Y,71:it,72:nt},{4:21,5:E,7:40,8:C,9:4,14:f,16:p,18:v,19:m,23:18,24:19,25:20,26:23,32:25,40:D,41:P,42:B,43:j,44:R,45:H,53:Y,71:it,72:nt},{4:21,5:E,7:41,8:C,9:4,14:f,16:p,18:v,19:m,23:18,24:19,25:20,26:23,32:25,40:D,41:P,42:B,43:j,44:R,45:H,53:Y,71:it,72:nt},{4:21,5:E,7:42,8:C,9:4,14:f,16:p,18:v,19:m,23:18,24:19,25:20,26:23,32:25,40:D,41:P,42:B,43:j,44:R,45:H,53:Y,71:it,72:nt},{27:43,71:[1,44],72:[1,45]},{54:46,71:[1,47],72:[1,48]},{60:[1,49],62:[1,50]},i(pt,[2,26]),i(pt,[2,27]),i(pt,[2,28]),i(pt,[2,29]),i(pt,[2,30]),i(pt,[2,31]),i(Tt,[2,55]),i(Tt,[2,56]),i(b,[2,4]),{13:51,21:[1,52]},i(b,[2,12]),{1:[2,3]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{8:[2,17]},{8:[2,18]},{28:[1,53]},{28:[2,53]},{28:[2,54]},{28:[1,54]},{28:[2,59]},{28:[2,60]},{61:55,64:kt,65:yt,66:ht,67:mt,68:rt,69:wt,70:gt},{61:63,64:kt,65:yt,66:ht,67:mt,68:rt,69:wt,70:gt},{11:64,22:st},{22:[2,11]},{5:[1,65]},{5:[1,66]},{62:[1,67]},i(lt,[2,46]),i(lt,[2,47]),i(lt,[2,48]),i(lt,[2,49]),i(lt,[2,50]),i(lt,[2,51]),i(lt,[2,52]),{63:[1,68]},i(b,[2,5]),{5:_t,29:69,30:X,33:Rt,35:ft,37:de,39:J},{5:ae,39:Wt,55:76,56:It,58:Nt},{32:81,71:it,72:nt},{32:82,71:it,72:nt},i(me,[2,19]),{31:[1,83]},{31:[1,84]},{31:[1,85]},{31:[1,86]},{5:_t,29:87,30:X,33:Rt,35:ft,37:de,39:J},i(me,[2,25]),i(me,[2,39]),{31:[1,88]},{31:[1,89]},{5:ae,39:Wt,55:90,56:It,58:Nt},i(me,[2,43]),i(me,[2,44]),i(me,[2,45]),{32:91,71:it,72:nt},{34:92,71:[1,93],72:[1,94]},{36:95,46:[1,96],47:[1,97],48:[1,98]},{38:99,49:[1,100],50:[1,101],51:[1,102],52:[1,103]},i(me,[2,24]),{57:104,71:[1,105],72:[1,106]},{59:107,71:[1,108],72:[1,109]},i(me,[2,42]),{5:[1,110]},{5:[1,111]},{5:[2,57]},{5:[2,58]},{5:[1,112]},{5:[2,32]},{5:[2,33]},{5:[2,34]},{5:[1,113]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[2,38]},{5:[1,114]},{5:[2,61]},{5:[2,62]},{5:[1,115]},{5:[2,63]},{5:[2,64]},{5:_t,29:116,30:X,33:Rt,35:ft,37:de,39:J},{5:_t,29:117,30:X,33:Rt,35:ft,37:de,39:J},{5:_t,29:118,30:X,33:Rt,35:ft,37:de,39:J},{5:_t,29:119,30:X,33:Rt,35:ft,37:de,39:J},{5:ae,39:Wt,55:120,56:It,58:Nt},{5:ae,39:Wt,55:121,56:It,58:Nt},i(me,[2,20]),i(me,[2,21]),i(me,[2,22]),i(me,[2,23]),i(me,[2,40]),i(me,[2,41])],defaultActions:{8:[2,9],10:[2,2],16:[2,1],37:[2,3],38:[2,14],39:[2,15],40:[2,16],41:[2,17],42:[2,18],44:[2,53],45:[2,54],47:[2,59],48:[2,60],52:[2,11],93:[2,57],94:[2,58],96:[2,32],97:[2,33],98:[2,34],100:[2,35],101:[2,36],102:[2,37],103:[2,38],105:[2,61],106:[2,62],108:[2,63],109:[2,64]},parseError:function(Te,ne){if(ne.recoverable)this.trace(Te);else{var Ee=new Error(Te);throw Ee.hash=ne,Ee}},parse:function(Te){var ne=this,Ee=[0],ye=[],Vt=[null],Ae=[],Gt=this.table,un="",jt=0,Ke=0,oe=2,Or=1,Le=Ae.slice.call(arguments,1),Nr=Object.create(this.lexer),fe={yy:{}};for(var sr in this.yy)Object.prototype.hasOwnProperty.call(this.yy,sr)&&(fe.yy[sr]=this.yy[sr]);Nr.setInput(Te,fe.yy),fe.yy.lexer=Nr,fe.yy.parser=this,typeof Nr.yylloc>"u"&&(Nr.yylloc={});var Yn=Nr.yylloc;Ae.push(Yn);var tr=Nr.options&&Nr.options.ranges;typeof fe.yy.parseError=="function"?this.parseError=fe.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ur(){var Zn;return Zn=ye.pop()||Nr.lex()||Or,typeof Zn!="number"&&(Zn instanceof Array&&(ye=Zn,Zn=ye.pop()),Zn=ne.symbols_[Zn]||Zn),Zn}for(var gn,En,Dr,hr,Ki={},Is,Ha,hi,qi;;){if(En=Ee[Ee.length-1],this.defaultActions[En]?Dr=this.defaultActions[En]:((gn===null||typeof gn>"u")&&(gn=ur()),Dr=Gt[En]&&Gt[En][gn]),typeof Dr>"u"||!Dr.length||!Dr[0]){var zn="";qi=[];for(Is in Gt[En])this.terminals_[Is]&&Is>oe&&qi.push("'"+this.terminals_[Is]+"'");Nr.showPosition?zn="Parse error on line "+(jt+1)+`: -`+Nr.showPosition()+` -Expecting `+qi.join(", ")+", got '"+(this.terminals_[gn]||gn)+"'":zn="Parse error on line "+(jt+1)+": Unexpected "+(gn==Or?"end of input":"'"+(this.terminals_[gn]||gn)+"'"),this.parseError(zn,{text:Nr.match,token:this.terminals_[gn]||gn,line:Nr.yylineno,loc:Yn,expected:qi})}if(Dr[0]instanceof Array&&Dr.length>1)throw new Error("Parse Error: multiple actions possible at state: "+En+", token: "+gn);switch(Dr[0]){case 1:Ee.push(gn),Vt.push(Nr.yytext),Ae.push(Nr.yylloc),Ee.push(Dr[1]),gn=null,Ke=Nr.yyleng,un=Nr.yytext,jt=Nr.yylineno,Yn=Nr.yylloc;break;case 2:if(Ha=this.productions_[Dr[1]][1],Ki.$=Vt[Vt.length-Ha],Ki._$={first_line:Ae[Ae.length-(Ha||1)].first_line,last_line:Ae[Ae.length-1].last_line,first_column:Ae[Ae.length-(Ha||1)].first_column,last_column:Ae[Ae.length-1].last_column},tr&&(Ki._$.range=[Ae[Ae.length-(Ha||1)].range[0],Ae[Ae.length-1].range[1]]),hr=this.performAction.apply(Ki,[un,Ke,jt,fe.yy,Dr[1],Vt,Ae].concat(Le)),typeof hr<"u")return hr;Ha&&(Ee=Ee.slice(0,-1*Ha*2),Vt=Vt.slice(0,-1*Ha),Ae=Ae.slice(0,-1*Ha)),Ee.push(this.productions_[Dr[1]][0]),Vt.push(Ki.$),Ae.push(Ki._$),hi=Gt[Ee[Ee.length-2]][Ee[Ee.length-1]],Ee.push(hi);break;case 3:return!0}}return!0}},_n=function(){var rr={EOF:1,parseError:function(ne,Ee){if(this.yy.parser)this.yy.parser.parseError(ne,Ee);else throw new Error(ne)},setInput:function(Te,ne){return this.yy=ne||this.yy||{},this._input=Te,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var Te=this._input[0];this.yytext+=Te,this.yyleng++,this.offset++,this.match+=Te,this.matched+=Te;var ne=Te.match(/(?:\r\n?|\n).*/g);return ne?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Te},unput:function(Te){var ne=Te.length,Ee=Te.split(/(?:\r\n?|\n)/g);this._input=Te+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ne),this.offset-=ne;var ye=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Ee.length-1&&(this.yylineno-=Ee.length-1);var Vt=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Ee?(Ee.length===ye.length?this.yylloc.first_column:0)+ye[ye.length-Ee.length].length-Ee[0].length:this.yylloc.first_column-ne},this.options.ranges&&(this.yylloc.range=[Vt[0],Vt[0]+this.yyleng-ne]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). -`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(Te){this.unput(this.match.slice(Te))},pastInput:function(){var Te=this.matched.substr(0,this.matched.length-this.match.length);return(Te.length>20?"...":"")+Te.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Te=this.match;return Te.length<20&&(Te+=this._input.substr(0,20-Te.length)),(Te.substr(0,20)+(Te.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Te=this.pastInput(),ne=new Array(Te.length+1).join("-");return Te+this.upcomingInput()+` -`+ne+"^"},test_match:function(Te,ne){var Ee,ye,Vt;if(this.options.backtrack_lexer&&(Vt={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(Vt.yylloc.range=this.yylloc.range.slice(0))),ye=Te[0].match(/(?:\r\n?|\n).*/g),ye&&(this.yylineno+=ye.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:ye?ye[ye.length-1].length-ye[ye.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Te[0].length},this.yytext+=Te[0],this.match+=Te[0],this.matches=Te,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(Te[0].length),this.matched+=Te[0],Ee=this.performAction.call(this,this.yy,this,ne,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Ee)return Ee;if(this._backtrack){for(var Ae in Vt)this[Ae]=Vt[Ae];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Te,ne,Ee,ye;this._more||(this.yytext="",this.match="");for(var Vt=this._currentRules(),Ae=0;Aene[0].length)){if(ne=Ee,ye=Ae,this.options.backtrack_lexer){if(Te=this.test_match(Ee,Vt[Ae]),Te!==!1)return Te;if(this._backtrack){ne=!1;continue}else return!1}else if(!this.options.flex)break}return ne?(Te=this.test_match(ne,Vt[ye]),Te!==!1?Te:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var ne=this.next();return ne||this.lex()},begin:function(ne){this.conditionStack.push(ne)},popState:function(){var ne=this.conditionStack.length-1;return ne>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(ne){return ne=this.conditionStack.length-1-Math.abs(ne||0),ne>=0?this.conditionStack[ne]:"INITIAL"},pushState:function(ne){this.begin(ne)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(ne,Ee,ye,Vt){switch(ye){case 0:return this.begin("open_directive"),19;case 1:return this.begin("type_directive"),20;case 2:return this.popState(),this.begin("arg_directive"),12;case 3:return this.popState(),this.popState(),22;case 4:return 21;case 5:return"title";case 6:return this.begin("acc_title"),14;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),16;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 5;case 14:break;case 15:break;case 16:break;case 17:return 8;case 18:return 6;case 19:return 28;case 20:return 39;case 21:return 31;case 22:return 30;case 23:return 33;case 24:return 35;case 25:return 37;case 26:return 40;case 27:return 41;case 28:return 42;case 29:return 43;case 30:return 44;case 31:return 45;case 32:return 46;case 33:return 47;case 34:return 48;case 35:return 49;case 36:return 50;case 37:return 51;case 38:return 52;case 39:return 53;case 40:return 64;case 41:return 65;case 42:return 66;case 43:return 67;case 44:return 68;case 45:return 69;case 46:return 70;case 47:return 56;case 48:return 58;case 49:return 60;case 50:return 63;case 51:return 62;case 52:this.begin("string");break;case 53:this.popState();break;case 54:return"qString";case 55:return Ee.yytext=Ee.yytext.trim(),71}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::)/i,/^(?:id\b)/i,/^(?:text\b)/i,/^(?:risk\b)/i,/^(?:verifyMethod\b)/i,/^(?:requirement\b)/i,/^(?:functionalRequirement\b)/i,/^(?:interfaceRequirement\b)/i,/^(?:performanceRequirement\b)/i,/^(?:physicalRequirement\b)/i,/^(?:designConstraint\b)/i,/^(?:low\b)/i,/^(?:medium\b)/i,/^(?:high\b)/i,/^(?:analysis\b)/i,/^(?:demonstration\b)/i,/^(?:inspection\b)/i,/^(?:test\b)/i,/^(?:element\b)/i,/^(?:contains\b)/i,/^(?:copies\b)/i,/^(?:derives\b)/i,/^(?:satisfies\b)/i,/^(?:verifies\b)/i,/^(?:refines\b)/i,/^(?:traces\b)/i,/^(?:type\b)/i,/^(?:docref\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^\r\n\{\<\>\-\=]*)/i],conditions:{acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},unqString:{rules:[],inclusive:!1},token:{rules:[],inclusive:!1},string:{rules:[53,54],inclusive:!1},INITIAL:{rules:[0,5,6,8,10,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,55],inclusive:!0}}};return rr}();Ue.lexer=_n;function _e(){this.yy={}}return _e.prototype=Ue,Ue.Parser=_e,new _e}();V0t.parser=V0t;const Kze=V0t;let G0t=[],dp={},EP={},lk={},TP={};const Yze={RequirementType:{REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"},RiskLevel:{LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"},VerifyType:{VERIFY_ANALYSIS:"Analysis",VERIFY_DEMONSTRATION:"Demonstration",VERIFY_INSPECTION:"Inspection",VERIFY_TEST:"Test"},Relationships:{CONTAINS:"contains",COPIES:"copies",DERIVES:"derives",SATISFIES:"satisfies",VERIFIES:"verifies",REFINES:"refines",TRACES:"traces"},parseDirective:function(i,a,f){d1.parseDirective(this,i,a,f)},getConfig:()=>Oe().req,addRequirement:(i,a)=>(EP[i]===void 0&&(EP[i]={name:i,type:a,id:dp.id,text:dp.text,risk:dp.risk,verifyMethod:dp.verifyMethod}),dp={},EP[i]),getRequirements:()=>EP,setNewReqId:i=>{dp!==void 0&&(dp.id=i)},setNewReqText:i=>{dp!==void 0&&(dp.text=i)},setNewReqRisk:i=>{dp!==void 0&&(dp.risk=i)},setNewReqVerifyMethod:i=>{dp!==void 0&&(dp.verifyMethod=i)},setAccTitle:ug,getAccTitle:op,setAccDescription:cp,getAccDescription:up,addElement:i=>(TP[i]===void 0&&(TP[i]={name:i,type:lk.type,docRef:lk.docRef},zt.info("Added new requirement: ",i)),lk={},TP[i]),getElements:()=>TP,setNewElementType:i=>{lk!==void 0&&(lk.type=i)},setNewElementDocRef:i=>{lk!==void 0&&(lk.docRef=i)},addRelationship:(i,a,f)=>{G0t.push({type:i,src:a,dst:f})},getRelationships:()=>G0t,clear:()=>{G0t=[],dp={},EP={},lk={},TP={},cg()}},Xze=i=>` + fill: ${e.pieLegendTextColor}; + font-family: ${e.fontFamily}; + font-size: ${e.pieLegendTextSize}; + } +`,"getStyles"),_ht=rVt});var nVt,iVt,Dht,Rht=R(()=>{"use strict";ur();Ue();ce();xf();Jn();_r();nVt=o(e=>{let t=[...e.entries()].map(n=>({label:n[0],value:n[1]})).sort((n,i)=>i.value-n.value);return e5().value(n=>n.value)(t)},"createPieArcs"),iVt=o((e,t,r,n)=>{V.debug(`rendering pie chart +`+e);let i=n.db,a=pt(),s=Ss(i.getConfig(),a.pie),l=40,u=18,h=4,f=450,d=f,p=Vs(t),m=p.append("g");m.attr("transform","translate("+d/2+","+f/2+")");let{themeVariables:g}=a,[y]=Tc(g.pieOuterStrokeWidth);y??=2;let v=s.textPosition,x=Math.min(d,f)/2-l,b=Cl().innerRadius(0).outerRadius(x),w=Cl().innerRadius(x*v).outerRadius(x*v);m.append("circle").attr("cx",0).attr("cy",0).attr("r",x+y/2).attr("class","pieOuterCircle");let S=i.getSections(),T=nVt(S),E=[g.pie1,g.pie2,g.pie3,g.pie4,g.pie5,g.pie6,g.pie7,g.pie8,g.pie9,g.pie10,g.pie11,g.pie12],_=bu(E);m.selectAll("mySlices").data(T).enter().append("path").attr("d",b).attr("fill",k=>_(k.data.label)).attr("class","pieCircle");let A=0;S.forEach(k=>{A+=k}),m.selectAll("mySlices").data(T).enter().append("text").text(k=>(k.data.value/A*100).toFixed(0)+"%").attr("transform",k=>"translate("+w.centroid(k)+")").style("text-anchor","middle").attr("class","slice"),m.append("text").text(i.getDiagramTitle()).attr("x",0).attr("y",-(f-50)/2).attr("class","pieTitleText");let L=m.selectAll(".legend").data(_.domain()).enter().append("g").attr("class","legend").attr("transform",(k,I)=>{let C=u+h,O=C*_.domain().length/2,D=12*u,P=I*C-O;return"translate("+D+","+P+")"});L.append("rect").attr("width",u).attr("height",u).style("fill",_).style("stroke",_),L.data(T).append("text").attr("x",u+h).attr("y",u-h).text(k=>{let{label:I,value:C}=k.data;return i.getShowData()?`${I} [${C}]`:I});let M=Math.max(...L.selectAll("text").nodes().map(k=>k?.getBoundingClientRect().width??0)),N=d+l+u+h+M;p.attr("viewBox",`0 0 ${N} ${f}`),Pr(p,f,N,s.useMaxWidth)},"draw"),Dht={draw:iVt}});var Nht={};xr(Nht,{diagram:()=>aVt});var aVt,Mht=R(()=>{"use strict";Aht();ZO();Lht();Rht();aVt={parser:Sht,db:t6,renderer:Dht,styles:_ht}});var JO,Pht,Bht=R(()=>{"use strict";JO=function(){var e=o(function(Tt,kt,Ct,At){for(Ct=Ct||{},At=Tt.length;At--;Ct[Tt[At]]=kt);return Ct},"o"),t=[1,3],r=[1,4],n=[1,5],i=[1,6],a=[1,7],s=[1,4,5,10,12,13,14,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],l=[1,4,5,10,12,13,14,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],u=[55,56,57],h=[2,36],f=[1,37],d=[1,36],p=[1,38],m=[1,35],g=[1,43],y=[1,41],v=[1,14],x=[1,23],b=[1,18],w=[1,19],S=[1,20],T=[1,21],E=[1,22],_=[1,24],A=[1,25],L=[1,26],M=[1,27],N=[1,28],k=[1,29],I=[1,32],C=[1,33],O=[1,34],D=[1,39],P=[1,40],F=[1,42],B=[1,44],G=[1,62],z=[1,61],W=[4,5,8,10,12,13,14,18,44,47,49,55,56,57,63,64,65,66,67],Q=[1,65],j=[1,66],at=[1,67],X=[1,68],J=[1,69],Z=[1,70],H=[1,71],q=[1,72],K=[1,73],ot=[1,74],ct=[1,75],ut=[1,76],et=[4,5,6,7,8,9,10,11,12,13,14,15,18],Mt=[1,90],it=[1,91],wt=[1,92],Ot=[1,99],St=[1,93],Vt=[1,96],Pt=[1,94],_t=[1,95],dt=[1,97],Y=[1,98],ft=[1,102],mt=[10,55,56,57],rt=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],ht={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:"error",4:"ALPHA",5:"NUM",6:"NODE_STRING",7:"DOWN",8:"MINUS",9:"DEFAULT",10:"COMMA",11:"COLON",12:"AMP",13:"BRKT",14:"MULT",15:"UNICODE_TEXT",17:"UNIT",18:"SPACE",19:"STYLE",20:"PCT",25:"CLASSDEF",28:"QUADRANT",35:"title",36:"title_value",37:"acc_title",38:"acc_title_value",39:"acc_descr",40:"acc_descr_value",41:"acc_descr_multiline_value",42:"section",44:"point_start",45:"point_x",46:"point_y",47:"class_name",48:"X-AXIS",49:"AXIS-TEXT-DELIMITER",50:"Y-AXIS",51:"QUADRANT_1",52:"QUADRANT_2",53:"QUADRANT_3",54:"QUADRANT_4",55:"NEWLINE",56:"SEMI",57:"EOF",60:"STR",61:"MD_STR",63:"PUNCTUATION",64:"PLUS",65:"EQUALS",66:"DOT",67:"UNDERSCORE"},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:o(function(kt,Ct,At,$t,Nt,yt,Ut){var zt=yt.length-1;switch(Nt){case 23:this.$=yt[zt];break;case 24:this.$=yt[zt-1]+""+yt[zt];break;case 26:this.$=yt[zt-1]+yt[zt];break;case 27:this.$=[yt[zt].trim()];break;case 28:yt[zt-2].push(yt[zt].trim()),this.$=yt[zt-2];break;case 29:this.$=yt[zt-4],$t.addClass(yt[zt-2],yt[zt]);break;case 37:this.$=[];break;case 42:this.$=yt[zt].trim(),$t.setDiagramTitle(this.$);break;case 43:this.$=yt[zt].trim(),$t.setAccTitle(this.$);break;case 44:case 45:this.$=yt[zt].trim(),$t.setAccDescription(this.$);break;case 46:$t.addSection(yt[zt].substr(8)),this.$=yt[zt].substr(8);break;case 47:$t.addPoint(yt[zt-3],"",yt[zt-1],yt[zt],[]);break;case 48:$t.addPoint(yt[zt-4],yt[zt-3],yt[zt-1],yt[zt],[]);break;case 49:$t.addPoint(yt[zt-4],"",yt[zt-2],yt[zt-1],yt[zt]);break;case 50:$t.addPoint(yt[zt-5],yt[zt-4],yt[zt-2],yt[zt-1],yt[zt]);break;case 51:$t.setXAxisLeftText(yt[zt-2]),$t.setXAxisRightText(yt[zt]);break;case 52:yt[zt-1].text+=" \u27F6 ",$t.setXAxisLeftText(yt[zt-1]);break;case 53:$t.setXAxisLeftText(yt[zt]);break;case 54:$t.setYAxisBottomText(yt[zt-2]),$t.setYAxisTopText(yt[zt]);break;case 55:yt[zt-1].text+=" \u27F6 ",$t.setYAxisBottomText(yt[zt-1]);break;case 56:$t.setYAxisBottomText(yt[zt]);break;case 57:$t.setQuadrant1Text(yt[zt]);break;case 58:$t.setQuadrant2Text(yt[zt]);break;case 59:$t.setQuadrant3Text(yt[zt]);break;case 60:$t.setQuadrant4Text(yt[zt]);break;case 64:this.$={text:yt[zt],type:"text"};break;case 65:this.$={text:yt[zt-1].text+""+yt[zt],type:yt[zt-1].type};break;case 66:this.$={text:yt[zt],type:"text"};break;case 67:this.$={text:yt[zt],type:"markdown"};break;case 68:this.$=yt[zt];break;case 69:this.$=yt[zt-1]+""+yt[zt];break}},"anonymous"),table:[{18:t,26:1,27:2,28:r,55:n,56:i,57:a},{1:[3]},{18:t,26:8,27:2,28:r,55:n,56:i,57:a},{18:t,26:9,27:2,28:r,55:n,56:i,57:a},e(s,[2,33],{29:10}),e(l,[2,61]),e(l,[2,62]),e(l,[2,63]),{1:[2,30]},{1:[2,31]},e(u,h,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:f,5:d,10:p,12:m,13:g,14:y,18:v,25:x,35:b,37:w,39:S,41:T,42:E,48:_,50:A,51:L,52:M,53:N,54:k,60:I,61:C,63:O,64:D,65:P,66:F,67:B}),e(s,[2,34]),{27:45,55:n,56:i,57:a},e(u,[2,37]),e(u,h,{24:13,32:15,33:16,34:17,43:30,58:31,31:46,4:f,5:d,10:p,12:m,13:g,14:y,18:v,25:x,35:b,37:w,39:S,41:T,42:E,48:_,50:A,51:L,52:M,53:N,54:k,60:I,61:C,63:O,64:D,65:P,66:F,67:B}),e(u,[2,39]),e(u,[2,40]),e(u,[2,41]),{36:[1,47]},{38:[1,48]},{40:[1,49]},e(u,[2,45]),e(u,[2,46]),{18:[1,50]},{4:f,5:d,10:p,12:m,13:g,14:y,43:51,58:31,60:I,61:C,63:O,64:D,65:P,66:F,67:B},{4:f,5:d,10:p,12:m,13:g,14:y,43:52,58:31,60:I,61:C,63:O,64:D,65:P,66:F,67:B},{4:f,5:d,10:p,12:m,13:g,14:y,43:53,58:31,60:I,61:C,63:O,64:D,65:P,66:F,67:B},{4:f,5:d,10:p,12:m,13:g,14:y,43:54,58:31,60:I,61:C,63:O,64:D,65:P,66:F,67:B},{4:f,5:d,10:p,12:m,13:g,14:y,43:55,58:31,60:I,61:C,63:O,64:D,65:P,66:F,67:B},{4:f,5:d,10:p,12:m,13:g,14:y,43:56,58:31,60:I,61:C,63:O,64:D,65:P,66:F,67:B},{4:f,5:d,8:G,10:p,12:m,13:g,14:y,18:z,44:[1,57],47:[1,58],58:60,59:59,63:O,64:D,65:P,66:F,67:B},e(W,[2,64]),e(W,[2,66]),e(W,[2,67]),e(W,[2,70]),e(W,[2,71]),e(W,[2,72]),e(W,[2,73]),e(W,[2,74]),e(W,[2,75]),e(W,[2,76]),e(W,[2,77]),e(W,[2,78]),e(W,[2,79]),e(W,[2,80]),e(s,[2,35]),e(u,[2,38]),e(u,[2,42]),e(u,[2,43]),e(u,[2,44]),{3:64,4:Q,5:j,6:at,7:X,8:J,9:Z,10:H,11:q,12:K,13:ot,14:ct,15:ut,21:63},e(u,[2,53],{59:59,58:60,4:f,5:d,8:G,10:p,12:m,13:g,14:y,18:z,49:[1,77],63:O,64:D,65:P,66:F,67:B}),e(u,[2,56],{59:59,58:60,4:f,5:d,8:G,10:p,12:m,13:g,14:y,18:z,49:[1,78],63:O,64:D,65:P,66:F,67:B}),e(u,[2,57],{59:59,58:60,4:f,5:d,8:G,10:p,12:m,13:g,14:y,18:z,63:O,64:D,65:P,66:F,67:B}),e(u,[2,58],{59:59,58:60,4:f,5:d,8:G,10:p,12:m,13:g,14:y,18:z,63:O,64:D,65:P,66:F,67:B}),e(u,[2,59],{59:59,58:60,4:f,5:d,8:G,10:p,12:m,13:g,14:y,18:z,63:O,64:D,65:P,66:F,67:B}),e(u,[2,60],{59:59,58:60,4:f,5:d,8:G,10:p,12:m,13:g,14:y,18:z,63:O,64:D,65:P,66:F,67:B}),{45:[1,79]},{44:[1,80]},e(W,[2,65]),e(W,[2,81]),e(W,[2,82]),e(W,[2,83]),{3:82,4:Q,5:j,6:at,7:X,8:J,9:Z,10:H,11:q,12:K,13:ot,14:ct,15:ut,18:[1,81]},e(et,[2,23]),e(et,[2,1]),e(et,[2,2]),e(et,[2,3]),e(et,[2,4]),e(et,[2,5]),e(et,[2,6]),e(et,[2,7]),e(et,[2,8]),e(et,[2,9]),e(et,[2,10]),e(et,[2,11]),e(et,[2,12]),e(u,[2,52],{58:31,43:83,4:f,5:d,10:p,12:m,13:g,14:y,60:I,61:C,63:O,64:D,65:P,66:F,67:B}),e(u,[2,55],{58:31,43:84,4:f,5:d,10:p,12:m,13:g,14:y,60:I,61:C,63:O,64:D,65:P,66:F,67:B}),{46:[1,85]},{45:[1,86]},{4:Mt,5:it,6:wt,8:Ot,11:St,13:Vt,16:89,17:Pt,18:_t,19:dt,20:Y,22:88,23:87},e(et,[2,24]),e(u,[2,51],{59:59,58:60,4:f,5:d,8:G,10:p,12:m,13:g,14:y,18:z,63:O,64:D,65:P,66:F,67:B}),e(u,[2,54],{59:59,58:60,4:f,5:d,8:G,10:p,12:m,13:g,14:y,18:z,63:O,64:D,65:P,66:F,67:B}),e(u,[2,47],{22:88,16:89,23:100,4:Mt,5:it,6:wt,8:Ot,11:St,13:Vt,17:Pt,18:_t,19:dt,20:Y}),{46:[1,101]},e(u,[2,29],{10:ft}),e(mt,[2,27],{16:103,4:Mt,5:it,6:wt,8:Ot,11:St,13:Vt,17:Pt,18:_t,19:dt,20:Y}),e(rt,[2,25]),e(rt,[2,13]),e(rt,[2,14]),e(rt,[2,15]),e(rt,[2,16]),e(rt,[2,17]),e(rt,[2,18]),e(rt,[2,19]),e(rt,[2,20]),e(rt,[2,21]),e(rt,[2,22]),e(u,[2,49],{10:ft}),e(u,[2,48],{22:88,16:89,23:104,4:Mt,5:it,6:wt,8:Ot,11:St,13:Vt,17:Pt,18:_t,19:dt,20:Y}),{4:Mt,5:it,6:wt,8:Ot,11:St,13:Vt,16:89,17:Pt,18:_t,19:dt,20:Y,22:105},e(rt,[2,26]),e(u,[2,50],{10:ft}),e(mt,[2,28],{16:103,4:Mt,5:it,6:wt,8:Ot,11:St,13:Vt,17:Pt,18:_t,19:dt,20:Y})],defaultActions:{8:[2,30],9:[2,31]},parseError:o(function(kt,Ct){if(Ct.recoverable)this.trace(kt);else{var At=new Error(kt);throw At.hash=Ct,At}},"parseError"),parse:o(function(kt){var Ct=this,At=[0],$t=[],Nt=[null],yt=[],Ut=this.table,zt="",ae=0,ke=0,Ee=0,le=2,Zt=1,me=yt.slice.call(arguments,1),Ht=Object.create(this.lexer),ne={yy:{}};for(var xe in this.yy)Object.prototype.hasOwnProperty.call(this.yy,xe)&&(ne.yy[xe]=this.yy[xe]);Ht.setInput(kt,ne.yy),ne.yy.lexer=Ht,ne.yy.parser=this,typeof Ht.yylloc>"u"&&(Ht.yylloc={});var Se=Ht.yylloc;yt.push(Se);var Ye=Ht.options&&Ht.options.ranges;typeof ne.yy.parseError=="function"?this.parseError=ne.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function fe(Sr){At.length=At.length-2*Sr,Nt.length=Nt.length-Sr,yt.length=yt.length-Sr}o(fe,"popStack");function ee(){var Sr;return Sr=$t.pop()||Ht.lex()||Zt,typeof Sr!="number"&&(Sr instanceof Array&&($t=Sr,Sr=$t.pop()),Sr=Ct.symbols_[Sr]||Sr),Sr}o(ee,"lex");for(var pe,Me,oe,qe,Cr,En,or={},ln,Ir,ii,mn;;){if(oe=At[At.length-1],this.defaultActions[oe]?qe=this.defaultActions[oe]:((pe===null||typeof pe>"u")&&(pe=ee()),qe=Ut[oe]&&Ut[oe][pe]),typeof qe>"u"||!qe.length||!qe[0]){var Pn="";mn=[];for(ln in Ut[oe])this.terminals_[ln]&&ln>le&&mn.push("'"+this.terminals_[ln]+"'");Ht.showPosition?Pn="Parse error on line "+(ae+1)+`: +`+Ht.showPosition()+` +Expecting `+mn.join(", ")+", got '"+(this.terminals_[pe]||pe)+"'":Pn="Parse error on line "+(ae+1)+": Unexpected "+(pe==Zt?"end of input":"'"+(this.terminals_[pe]||pe)+"'"),this.parseError(Pn,{text:Ht.match,token:this.terminals_[pe]||pe,line:Ht.yylineno,loc:Se,expected:mn})}if(qe[0]instanceof Array&&qe.length>1)throw new Error("Parse Error: multiple actions possible at state: "+oe+", token: "+pe);switch(qe[0]){case 1:At.push(pe),Nt.push(Ht.yytext),yt.push(Ht.yylloc),At.push(qe[1]),pe=null,Me?(pe=Me,Me=null):(ke=Ht.yyleng,zt=Ht.yytext,ae=Ht.yylineno,Se=Ht.yylloc,Ee>0&&Ee--);break;case 2:if(Ir=this.productions_[qe[1]][1],or.$=Nt[Nt.length-Ir],or._$={first_line:yt[yt.length-(Ir||1)].first_line,last_line:yt[yt.length-1].last_line,first_column:yt[yt.length-(Ir||1)].first_column,last_column:yt[yt.length-1].last_column},Ye&&(or._$.range=[yt[yt.length-(Ir||1)].range[0],yt[yt.length-1].range[1]]),En=this.performAction.apply(or,[zt,ke,ae,ne.yy,qe[1],Nt,yt].concat(me)),typeof En<"u")return En;Ir&&(At=At.slice(0,-1*Ir*2),Nt=Nt.slice(0,-1*Ir),yt=yt.slice(0,-1*Ir)),At.push(this.productions_[qe[1]][0]),Nt.push(or.$),yt.push(or._$),ii=Ut[At[At.length-2]][At[At.length-1]],At.push(ii);break;case 3:return!0}}return!0},"parse")},nt=function(){var Tt={EOF:1,parseError:o(function(Ct,At){if(this.yy.parser)this.yy.parser.parseError(Ct,At);else throw new Error(Ct)},"parseError"),setInput:o(function(kt,Ct){return this.yy=Ct||this.yy||{},this._input=kt,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var kt=this._input[0];this.yytext+=kt,this.yyleng++,this.offset++,this.match+=kt,this.matched+=kt;var Ct=kt.match(/(?:\r\n?|\n).*/g);return Ct?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),kt},"input"),unput:o(function(kt){var Ct=kt.length,At=kt.split(/(?:\r\n?|\n)/g);this._input=kt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Ct),this.offset-=Ct;var $t=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),At.length-1&&(this.yylineno-=At.length-1);var Nt=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:At?(At.length===$t.length?this.yylloc.first_column:0)+$t[$t.length-At.length].length-At[0].length:this.yylloc.first_column-Ct},this.options.ranges&&(this.yylloc.range=[Nt[0],Nt[0]+this.yyleng-Ct]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(kt){this.unput(this.match.slice(kt))},"less"),pastInput:o(function(){var kt=this.matched.substr(0,this.matched.length-this.match.length);return(kt.length>20?"...":"")+kt.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var kt=this.match;return kt.length<20&&(kt+=this._input.substr(0,20-kt.length)),(kt.substr(0,20)+(kt.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var kt=this.pastInput(),Ct=new Array(kt.length+1).join("-");return kt+this.upcomingInput()+` +`+Ct+"^"},"showPosition"),test_match:o(function(kt,Ct){var At,$t,Nt;if(this.options.backtrack_lexer&&(Nt={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(Nt.yylloc.range=this.yylloc.range.slice(0))),$t=kt[0].match(/(?:\r\n?|\n).*/g),$t&&(this.yylineno+=$t.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:$t?$t[$t.length-1].length-$t[$t.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+kt[0].length},this.yytext+=kt[0],this.match+=kt[0],this.matches=kt,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(kt[0].length),this.matched+=kt[0],At=this.performAction.call(this,this.yy,this,Ct,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),At)return At;if(this._backtrack){for(var yt in Nt)this[yt]=Nt[yt];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var kt,Ct,At,$t;this._more||(this.yytext="",this.match="");for(var Nt=this._currentRules(),yt=0;ytCt[0].length)){if(Ct=At,$t=yt,this.options.backtrack_lexer){if(kt=this.test_match(At,Nt[yt]),kt!==!1)return kt;if(this._backtrack){Ct=!1;continue}else return!1}else if(!this.options.flex)break}return Ct?(kt=this.test_match(Ct,Nt[$t]),kt!==!1?kt:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var Ct=this.next();return Ct||this.lex()},"lex"),begin:o(function(Ct){this.conditionStack.push(Ct)},"begin"),popState:o(function(){var Ct=this.conditionStack.length-1;return Ct>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(Ct){return Ct=this.conditionStack.length-1-Math.abs(Ct||0),Ct>=0?this.conditionStack[Ct]:"INITIAL"},"topState"),pushState:o(function(Ct){this.begin(Ct)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:o(function(Ct,At,$t,Nt){var yt=Nt;switch($t){case 0:break;case 1:break;case 2:return 55;case 3:break;case 4:return this.begin("title"),35;break;case 5:return this.popState(),"title_value";break;case 6:return this.begin("acc_title"),37;break;case 7:return this.popState(),"acc_title_value";break;case 8:return this.begin("acc_descr"),39;break;case 9:return this.popState(),"acc_descr_value";break;case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 48;case 14:return 50;case 15:return 49;case 16:return 51;case 17:return 52;case 18:return 53;case 19:return 54;case 20:return 25;case 21:this.begin("md_string");break;case 22:return"MD_STR";case 23:this.popState();break;case 24:this.begin("string");break;case 25:this.popState();break;case 26:return"STR";case 27:this.begin("class_name");break;case 28:return this.popState(),47;break;case 29:return this.begin("point_start"),44;break;case 30:return this.begin("point_x"),45;break;case 31:this.popState();break;case 32:this.popState(),this.begin("point_y");break;case 33:return this.popState(),46;break;case 34:return 28;case 35:return 4;case 36:return 11;case 37:return 64;case 38:return 10;case 39:return 65;case 40:return 65;case 41:return 14;case 42:return 13;case 43:return 67;case 44:return 66;case 45:return 12;case 46:return 8;case 47:return 5;case 48:return 18;case 49:return 56;case 50:return 63;case 51:return 57}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?: *x-axis *)/i,/^(?: *y-axis *)/i,/^(?: *--+> *)/i,/^(?: *quadrant-1 *)/i,/^(?: *quadrant-2 *)/i,/^(?: *quadrant-3 *)/i,/^(?: *quadrant-4 *)/i,/^(?:classDef\b)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?::::)/i,/^(?:^\w+)/i,/^(?:\s*:\s*\[\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?:\s*\] *)/i,/^(?:\s*,\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?: *quadrantChart *)/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s)/i,/^(?:;)/i,/^(?:[!"#$%&'*+,-.`?\\_/])/i,/^(?:$)/i],conditions:{class_name:{rules:[28],inclusive:!1},point_y:{rules:[33],inclusive:!1},point_x:{rules:[32],inclusive:!1},point_start:{rules:[30,31],inclusive:!1},acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},title:{rules:[5],inclusive:!1},md_string:{rules:[22,23],inclusive:!1},string:{rules:[25,26],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,6,8,10,13,14,15,16,17,18,19,20,21,24,27,29,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],inclusive:!0}}};return Tt}();ht.lexer=nt;function st(){this.yy={}}return o(st,"Parser"),st.prototype=ht,ht.Parser=st,new st}();JO.parser=JO;Pht=JO});var hs,e6,Fht=R(()=>{"use strict";ur();hl();ce();m4();hs=xp(),e6=class{constructor(){this.classes=new Map;this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData()}static{o(this,"QuadrantBuilder")}getDefaultData(){return{titleText:"",quadrant1Text:"",quadrant2Text:"",quadrant3Text:"",quadrant4Text:"",xAxisLeftText:"",xAxisRightText:"",yAxisBottomText:"",yAxisTopText:"",points:[]}}getDefaultConfig(){return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:Er.quadrantChart?.chartWidth||500,chartWidth:Er.quadrantChart?.chartHeight||500,titlePadding:Er.quadrantChart?.titlePadding||10,titleFontSize:Er.quadrantChart?.titleFontSize||20,quadrantPadding:Er.quadrantChart?.quadrantPadding||5,xAxisLabelPadding:Er.quadrantChart?.xAxisLabelPadding||5,yAxisLabelPadding:Er.quadrantChart?.yAxisLabelPadding||5,xAxisLabelFontSize:Er.quadrantChart?.xAxisLabelFontSize||16,yAxisLabelFontSize:Er.quadrantChart?.yAxisLabelFontSize||16,quadrantLabelFontSize:Er.quadrantChart?.quadrantLabelFontSize||16,quadrantTextTopPadding:Er.quadrantChart?.quadrantTextTopPadding||5,pointTextPadding:Er.quadrantChart?.pointTextPadding||5,pointLabelFontSize:Er.quadrantChart?.pointLabelFontSize||12,pointRadius:Er.quadrantChart?.pointRadius||5,xAxisPosition:Er.quadrantChart?.xAxisPosition||"top",yAxisPosition:Er.quadrantChart?.yAxisPosition||"left",quadrantInternalBorderStrokeWidth:Er.quadrantChart?.quadrantInternalBorderStrokeWidth||1,quadrantExternalBorderStrokeWidth:Er.quadrantChart?.quadrantExternalBorderStrokeWidth||2}}getDefaultThemeConfig(){return{quadrant1Fill:hs.quadrant1Fill,quadrant2Fill:hs.quadrant2Fill,quadrant3Fill:hs.quadrant3Fill,quadrant4Fill:hs.quadrant4Fill,quadrant1TextFill:hs.quadrant1TextFill,quadrant2TextFill:hs.quadrant2TextFill,quadrant3TextFill:hs.quadrant3TextFill,quadrant4TextFill:hs.quadrant4TextFill,quadrantPointFill:hs.quadrantPointFill,quadrantPointTextFill:hs.quadrantPointTextFill,quadrantXAxisTextFill:hs.quadrantXAxisTextFill,quadrantYAxisTextFill:hs.quadrantYAxisTextFill,quadrantTitleFill:hs.quadrantTitleFill,quadrantInternalBorderStrokeFill:hs.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:hs.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),this.classes=new Map,V.info("clear called")}setData(t){this.data={...this.data,...t}}addPoints(t){this.data.points=[...t,...this.data.points]}addClass(t,r){this.classes.set(t,r)}setConfig(t){V.trace("setConfig called with: ",t),this.config={...this.config,...t}}setThemeConfig(t){V.trace("setThemeConfig called with: ",t),this.themeConfig={...this.themeConfig,...t}}calculateSpace(t,r,n,i){let a=this.config.xAxisLabelPadding*2+this.config.xAxisLabelFontSize,s={top:t==="top"&&r?a:0,bottom:t==="bottom"&&r?a:0},l=this.config.yAxisLabelPadding*2+this.config.yAxisLabelFontSize,u={left:this.config.yAxisPosition==="left"&&n?l:0,right:this.config.yAxisPosition==="right"&&n?l:0},h=this.config.titleFontSize+this.config.titlePadding*2,f={top:i?h:0},d=this.config.quadrantPadding+u.left,p=this.config.quadrantPadding+s.top+f.top,m=this.config.chartWidth-this.config.quadrantPadding*2-u.left-u.right,g=this.config.chartHeight-this.config.quadrantPadding*2-s.top-s.bottom-f.top,y=m/2,v=g/2;return{xAxisSpace:s,yAxisSpace:u,titleSpace:f,quadrantSpace:{quadrantLeft:d,quadrantTop:p,quadrantWidth:m,quadrantHalfWidth:y,quadrantHeight:g,quadrantHalfHeight:v}}}getAxisLabels(t,r,n,i){let{quadrantSpace:a,titleSpace:s}=i,{quadrantHalfHeight:l,quadrantHeight:u,quadrantLeft:h,quadrantHalfWidth:f,quadrantTop:d,quadrantWidth:p}=a,m=!!this.data.xAxisRightText,g=!!this.data.yAxisTopText,y=[];return this.data.xAxisLeftText&&r&&y.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:h+(m?f/2:0),y:t==="top"?this.config.xAxisLabelPadding+s.top:this.config.xAxisLabelPadding+d+u+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:m?"center":"left",horizontalPos:"top",rotation:0}),this.data.xAxisRightText&&r&&y.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:h+f+(m?f/2:0),y:t==="top"?this.config.xAxisLabelPadding+s.top:this.config.xAxisLabelPadding+d+u+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:m?"center":"left",horizontalPos:"top",rotation:0}),this.data.yAxisBottomText&&n&&y.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+h+p+this.config.quadrantPadding,y:d+u-(g?l/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:g?"center":"left",horizontalPos:"top",rotation:-90}),this.data.yAxisTopText&&n&&y.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+h+p+this.config.quadrantPadding,y:d+l-(g?l/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:g?"center":"left",horizontalPos:"top",rotation:-90}),y}getQuadrants(t){let{quadrantSpace:r}=t,{quadrantHalfHeight:n,quadrantLeft:i,quadrantHalfWidth:a,quadrantTop:s}=r,l=[{text:{text:this.data.quadrant1Text,fill:this.themeConfig.quadrant1TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:i+a,y:s,width:a,height:n,fill:this.themeConfig.quadrant1Fill},{text:{text:this.data.quadrant2Text,fill:this.themeConfig.quadrant2TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:i,y:s,width:a,height:n,fill:this.themeConfig.quadrant2Fill},{text:{text:this.data.quadrant3Text,fill:this.themeConfig.quadrant3TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:i,y:s+n,width:a,height:n,fill:this.themeConfig.quadrant3Fill},{text:{text:this.data.quadrant4Text,fill:this.themeConfig.quadrant4TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:i+a,y:s+n,width:a,height:n,fill:this.themeConfig.quadrant4Fill}];for(let u of l)u.text.x=u.x+u.width/2,this.data.points.length===0?(u.text.y=u.y+u.height/2,u.text.horizontalPos="middle"):(u.text.y=u.y+this.config.quadrantTextTopPadding,u.text.horizontalPos="top");return l}getQuadrantPoints(t){let{quadrantSpace:r}=t,{quadrantHeight:n,quadrantLeft:i,quadrantTop:a,quadrantWidth:s}=r,l=wl().domain([0,1]).range([i,s+i]),u=wl().domain([0,1]).range([n+a,a]);return this.data.points.map(f=>{let d=this.classes.get(f.className);return d&&(f={...d,...f}),{x:l(f.x),y:u(f.y),fill:f.color??this.themeConfig.quadrantPointFill,radius:f.radius??this.config.pointRadius,text:{text:f.text,fill:this.themeConfig.quadrantPointTextFill,x:l(f.x),y:u(f.y)+this.config.pointTextPadding,verticalPos:"center",horizontalPos:"top",fontSize:this.config.pointLabelFontSize,rotation:0},strokeColor:f.strokeColor??this.themeConfig.quadrantPointFill,strokeWidth:f.strokeWidth??"0px"}})}getBorders(t){let r=this.config.quadrantExternalBorderStrokeWidth/2,{quadrantSpace:n}=t,{quadrantHalfHeight:i,quadrantHeight:a,quadrantLeft:s,quadrantHalfWidth:l,quadrantTop:u,quadrantWidth:h}=n;return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:s-r,y1:u,x2:s+h+r,y2:u},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:s+h,y1:u+r,x2:s+h,y2:u+a-r},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:s-r,y1:u+a,x2:s+h+r,y2:u+a},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:s,y1:u+r,x2:s,y2:u+a-r},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:s+l,y1:u+r,x2:s+l,y2:u+a-r},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:s+r,y1:u+i,x2:s+h-r,y2:u+i}]}getTitle(t){if(t)return{text:this.data.titleText,fill:this.themeConfig.quadrantTitleFill,fontSize:this.config.titleFontSize,horizontalPos:"top",verticalPos:"center",rotation:0,y:this.config.titlePadding,x:this.config.chartWidth/2}}build(){let t=this.config.showXAxis&&!!(this.data.xAxisLeftText||this.data.xAxisRightText),r=this.config.showYAxis&&!!(this.data.yAxisTopText||this.data.yAxisBottomText),n=this.config.showTitle&&!!this.data.titleText,i=this.data.points.length>0?"bottom":this.config.xAxisPosition,a=this.calculateSpace(i,t,r,n);return{points:this.getQuadrantPoints(a),quadrants:this.getQuadrants(a),axisLabels:this.getAxisLabels(i,t,r,a),borderLines:this.getBorders(a),title:this.getTitle(n)}}}});function tP(e){return!/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(e)}function zht(e){return!/^\d+$/.test(e)}function $ht(e){return!/^\d+px$/.test(e)}var N0,Ght=R(()=>{"use strict";N0=class extends Error{static{o(this,"InvalidStyleError")}constructor(t,r,n){super(`value for ${t} ${r} is invalid, please use a valid ${n}`),this.name="InvalidStyleError"}};o(tP,"validateHexCode");o(zht,"validateNumber");o($ht,"validateSizeInPixels")});function Qu(e){return Zr(e.trim(),lVt)}function cVt(e){Ca.setData({quadrant1Text:Qu(e.text)})}function uVt(e){Ca.setData({quadrant2Text:Qu(e.text)})}function hVt(e){Ca.setData({quadrant3Text:Qu(e.text)})}function fVt(e){Ca.setData({quadrant4Text:Qu(e.text)})}function dVt(e){Ca.setData({xAxisLeftText:Qu(e.text)})}function pVt(e){Ca.setData({xAxisRightText:Qu(e.text)})}function mVt(e){Ca.setData({yAxisTopText:Qu(e.text)})}function gVt(e){Ca.setData({yAxisBottomText:Qu(e.text)})}function eP(e){let t={};for(let r of e){let[n,i]=r.trim().split(/\s*:\s*/);if(n==="radius"){if(zht(i))throw new N0(n,i,"number");t.radius=parseInt(i)}else if(n==="color"){if(tP(i))throw new N0(n,i,"hex code");t.color=i}else if(n==="stroke-color"){if(tP(i))throw new N0(n,i,"hex code");t.strokeColor=i}else if(n==="stroke-width"){if($ht(i))throw new N0(n,i,"number of pixels (eg. 10px)");t.strokeWidth=i}else throw new Error(`style named ${n} is not supported.`)}return t}function yVt(e,t,r,n,i){let a=eP(i);Ca.addPoints([{x:r,y:n,text:Qu(e.text),className:t,...a}])}function vVt(e,t){Ca.addClass(e,eP(t))}function xVt(e){Ca.setConfig({chartWidth:e})}function bVt(e){Ca.setConfig({chartHeight:e})}function wVt(){let e=pt(),{themeVariables:t,quadrantChart:r}=e;return r&&Ca.setConfig(r),Ca.setThemeConfig({quadrant1Fill:t.quadrant1Fill,quadrant2Fill:t.quadrant2Fill,quadrant3Fill:t.quadrant3Fill,quadrant4Fill:t.quadrant4Fill,quadrant1TextFill:t.quadrant1TextFill,quadrant2TextFill:t.quadrant2TextFill,quadrant3TextFill:t.quadrant3TextFill,quadrant4TextFill:t.quadrant4TextFill,quadrantPointFill:t.quadrantPointFill,quadrantPointTextFill:t.quadrantPointTextFill,quadrantXAxisTextFill:t.quadrantXAxisTextFill,quadrantYAxisTextFill:t.quadrantYAxisTextFill,quadrantExternalBorderStrokeFill:t.quadrantExternalBorderStrokeFill,quadrantInternalBorderStrokeFill:t.quadrantInternalBorderStrokeFill,quadrantTitleFill:t.quadrantTitleFill}),Ca.setData({titleText:Jr()}),Ca.build()}var lVt,Ca,TVt,Vht,Uht=R(()=>{"use strict";Ue();hr();Ci();Fht();Ght();lVt=pt();o(Qu,"textSanitizer");Ca=new e6;o(cVt,"setQuadrant1Text");o(uVt,"setQuadrant2Text");o(hVt,"setQuadrant3Text");o(fVt,"setQuadrant4Text");o(dVt,"setXAxisLeftText");o(pVt,"setXAxisRightText");o(mVt,"setYAxisTopText");o(gVt,"setYAxisBottomText");o(eP,"parseStyles");o(yVt,"addPoint");o(vVt,"addClass");o(xVt,"setWidth");o(bVt,"setHeight");o(wVt,"getQuadrantData");TVt=o(function(){Ca.clear(),Ar()},"clear"),Vht={setWidth:xVt,setHeight:bVt,setQuadrant1Text:cVt,setQuadrant2Text:uVt,setQuadrant3Text:hVt,setQuadrant4Text:fVt,setXAxisLeftText:dVt,setXAxisRightText:pVt,setYAxisTopText:mVt,setYAxisBottomText:gVt,parseStyles:eP,addPoint:yVt,addClass:vVt,getQuadrantData:wVt,clear:TVt,setAccTitle:Mr,getAccTitle:Br,setDiagramTitle:cn,getDiagramTitle:Jr,getAccDescription:zr,setAccDescription:Fr}});var kVt,Hht,Wht=R(()=>{"use strict";ur();Ue();ce();Jn();kVt=o((e,t,r,n)=>{function i(A){return A==="top"?"hanging":"middle"}o(i,"getDominantBaseLine");function a(A){return A==="left"?"start":"middle"}o(a,"getTextAnchor");function s(A){return`translate(${A.x}, ${A.y}) rotate(${A.rotation||0})`}o(s,"getTransformation");let l=pt();V.debug(`Rendering quadrant chart +`+e);let u=l.securityLevel,h;u==="sandbox"&&(h=Gt("#i"+t));let d=(u==="sandbox"?Gt(h.nodes()[0].contentDocument.body):Gt("body")).select(`[id="${t}"]`),p=d.append("g").attr("class","main"),m=l.quadrantChart?.chartWidth??500,g=l.quadrantChart?.chartHeight??500;Pr(d,g,m,l.quadrantChart?.useMaxWidth??!0),d.attr("viewBox","0 0 "+m+" "+g),n.db.setHeight(g),n.db.setWidth(m);let y=n.db.getQuadrantData(),v=p.append("g").attr("class","quadrants"),x=p.append("g").attr("class","border"),b=p.append("g").attr("class","data-points"),w=p.append("g").attr("class","labels"),S=p.append("g").attr("class","title");y.title&&S.append("text").attr("x",0).attr("y",0).attr("fill",y.title.fill).attr("font-size",y.title.fontSize).attr("dominant-baseline",i(y.title.horizontalPos)).attr("text-anchor",a(y.title.verticalPos)).attr("transform",s(y.title)).text(y.title.text),y.borderLines&&x.selectAll("line").data(y.borderLines).enter().append("line").attr("x1",A=>A.x1).attr("y1",A=>A.y1).attr("x2",A=>A.x2).attr("y2",A=>A.y2).style("stroke",A=>A.strokeFill).style("stroke-width",A=>A.strokeWidth);let T=v.selectAll("g.quadrant").data(y.quadrants).enter().append("g").attr("class","quadrant");T.append("rect").attr("x",A=>A.x).attr("y",A=>A.y).attr("width",A=>A.width).attr("height",A=>A.height).attr("fill",A=>A.fill),T.append("text").attr("x",0).attr("y",0).attr("fill",A=>A.text.fill).attr("font-size",A=>A.text.fontSize).attr("dominant-baseline",A=>i(A.text.horizontalPos)).attr("text-anchor",A=>a(A.text.verticalPos)).attr("transform",A=>s(A.text)).text(A=>A.text.text),w.selectAll("g.label").data(y.axisLabels).enter().append("g").attr("class","label").append("text").attr("x",0).attr("y",0).text(A=>A.text).attr("fill",A=>A.fill).attr("font-size",A=>A.fontSize).attr("dominant-baseline",A=>i(A.horizontalPos)).attr("text-anchor",A=>a(A.verticalPos)).attr("transform",A=>s(A));let _=b.selectAll("g.data-point").data(y.points).enter().append("g").attr("class","data-point");_.append("circle").attr("cx",A=>A.x).attr("cy",A=>A.y).attr("r",A=>A.radius).attr("fill",A=>A.fill).attr("stroke",A=>A.strokeColor).attr("stroke-width",A=>A.strokeWidth),_.append("text").attr("x",0).attr("y",0).text(A=>A.text.text).attr("fill",A=>A.text.fill).attr("font-size",A=>A.text.fontSize).attr("dominant-baseline",A=>i(A.text.horizontalPos)).attr("text-anchor",A=>a(A.text.verticalPos)).attr("transform",A=>s(A.text))},"draw"),Hht={draw:kVt}});var Yht={};xr(Yht,{diagram:()=>EVt});var EVt,qht=R(()=>{"use strict";Bht();Uht();Wht();EVt={parser:Pht,db:Vht,renderer:Hht,styles:o(()=>"","styles")}});var rP,Kht,Qht=R(()=>{"use strict";rP=function(){var e=o(function(O,D,P,F){for(P=P||{},F=O.length;F--;P[O[F]]=D);return P},"o"),t=[1,10,12,14,16,18,19,21,23],r=[2,6],n=[1,3],i=[1,5],a=[1,6],s=[1,7],l=[1,5,10,12,14,16,18,19,21,23,34,35,36],u=[1,25],h=[1,26],f=[1,28],d=[1,29],p=[1,30],m=[1,31],g=[1,32],y=[1,33],v=[1,34],x=[1,35],b=[1,36],w=[1,37],S=[1,43],T=[1,42],E=[1,47],_=[1,50],A=[1,10,12,14,16,18,19,21,23,34,35,36],L=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],M=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36,41,42,43,44,45,46,47,48,49,50],N=[1,64],k={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,commaSeparatedNumbers:25,SQUARE_BRACES_END:26,NUMBER_WITH_DECIMAL:27,COMMA:28,xAxisData:29,bandData:30,ARROW_DELIMITER:31,commaSeparatedTexts:32,yAxisData:33,NEWLINE:34,SEMI:35,EOF:36,alphaNum:37,STR:38,MD_STR:39,alphaNumToken:40,AMP:41,NUM:42,ALPHA:43,PLUS:44,EQUALS:45,MULT:46,DOT:47,BRKT:48,MINUS:49,UNDERSCORE:50,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",27:"NUMBER_WITH_DECIMAL",28:"COMMA",31:"ARROW_DELIMITER",34:"NEWLINE",35:"SEMI",36:"EOF",38:"STR",39:"MD_STR",41:"AMP",42:"NUM",43:"ALPHA",44:"PLUS",45:"EQUALS",46:"MULT",47:"DOT",48:"BRKT",49:"MINUS",50:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[13,1],[13,2],[13,1],[29,1],[29,3],[30,3],[32,3],[32,1],[15,1],[15,2],[15,1],[33,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[37,1],[37,2],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1]],performAction:o(function(D,P,F,B,G,z,W){var Q=z.length-1;switch(G){case 5:B.setOrientation(z[Q]);break;case 9:B.setDiagramTitle(z[Q].text.trim());break;case 12:B.setLineData({text:"",type:"text"},z[Q]);break;case 13:B.setLineData(z[Q-1],z[Q]);break;case 14:B.setBarData({text:"",type:"text"},z[Q]);break;case 15:B.setBarData(z[Q-1],z[Q]);break;case 16:this.$=z[Q].trim(),B.setAccTitle(this.$);break;case 17:case 18:this.$=z[Q].trim(),B.setAccDescription(this.$);break;case 19:this.$=z[Q-1];break;case 20:this.$=[Number(z[Q-2]),...z[Q]];break;case 21:this.$=[Number(z[Q])];break;case 22:B.setXAxisTitle(z[Q]);break;case 23:B.setXAxisTitle(z[Q-1]);break;case 24:B.setXAxisTitle({type:"text",text:""});break;case 25:B.setXAxisBand(z[Q]);break;case 26:B.setXAxisRangeData(Number(z[Q-2]),Number(z[Q]));break;case 27:this.$=z[Q-1];break;case 28:this.$=[z[Q-2],...z[Q]];break;case 29:this.$=[z[Q]];break;case 30:B.setYAxisTitle(z[Q]);break;case 31:B.setYAxisTitle(z[Q-1]);break;case 32:B.setYAxisTitle({type:"text",text:""});break;case 33:B.setYAxisRangeData(Number(z[Q-2]),Number(z[Q]));break;case 37:this.$={text:z[Q],type:"text"};break;case 38:this.$={text:z[Q],type:"text"};break;case 39:this.$={text:z[Q],type:"markdown"};break;case 40:this.$=z[Q];break;case 41:this.$=z[Q-1]+""+z[Q];break}},"anonymous"),table:[e(t,r,{3:1,4:2,7:4,5:n,34:i,35:a,36:s}),{1:[3]},e(t,r,{4:2,7:4,3:8,5:n,34:i,35:a,36:s}),e(t,r,{4:2,7:4,6:9,3:10,5:n,8:[1,11],34:i,35:a,36:s}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},e(l,[2,34]),e(l,[2,35]),e(l,[2,36]),{1:[2,1]},e(t,r,{4:2,7:4,3:21,5:n,34:i,35:a,36:s}),{1:[2,3]},e(l,[2,5]),e(t,[2,7],{4:22,34:i,35:a,36:s}),{11:23,37:24,38:u,39:h,40:27,41:f,42:d,43:p,44:m,45:g,46:y,47:v,48:x,49:b,50:w},{11:39,13:38,24:S,27:T,29:40,30:41,37:24,38:u,39:h,40:27,41:f,42:d,43:p,44:m,45:g,46:y,47:v,48:x,49:b,50:w},{11:45,15:44,27:E,33:46,37:24,38:u,39:h,40:27,41:f,42:d,43:p,44:m,45:g,46:y,47:v,48:x,49:b,50:w},{11:49,17:48,24:_,37:24,38:u,39:h,40:27,41:f,42:d,43:p,44:m,45:g,46:y,47:v,48:x,49:b,50:w},{11:52,17:51,24:_,37:24,38:u,39:h,40:27,41:f,42:d,43:p,44:m,45:g,46:y,47:v,48:x,49:b,50:w},{20:[1,53]},{22:[1,54]},e(A,[2,18]),{1:[2,2]},e(A,[2,8]),e(A,[2,9]),e(L,[2,37],{40:55,41:f,42:d,43:p,44:m,45:g,46:y,47:v,48:x,49:b,50:w}),e(L,[2,38]),e(L,[2,39]),e(M,[2,40]),e(M,[2,42]),e(M,[2,43]),e(M,[2,44]),e(M,[2,45]),e(M,[2,46]),e(M,[2,47]),e(M,[2,48]),e(M,[2,49]),e(M,[2,50]),e(M,[2,51]),e(A,[2,10]),e(A,[2,22],{30:41,29:56,24:S,27:T}),e(A,[2,24]),e(A,[2,25]),{31:[1,57]},{11:59,32:58,37:24,38:u,39:h,40:27,41:f,42:d,43:p,44:m,45:g,46:y,47:v,48:x,49:b,50:w},e(A,[2,11]),e(A,[2,30],{33:60,27:E}),e(A,[2,32]),{31:[1,61]},e(A,[2,12]),{17:62,24:_},{25:63,27:N},e(A,[2,14]),{17:65,24:_},e(A,[2,16]),e(A,[2,17]),e(M,[2,41]),e(A,[2,23]),{27:[1,66]},{26:[1,67]},{26:[2,29],28:[1,68]},e(A,[2,31]),{27:[1,69]},e(A,[2,13]),{26:[1,70]},{26:[2,21],28:[1,71]},e(A,[2,15]),e(A,[2,26]),e(A,[2,27]),{11:59,32:72,37:24,38:u,39:h,40:27,41:f,42:d,43:p,44:m,45:g,46:y,47:v,48:x,49:b,50:w},e(A,[2,33]),e(A,[2,19]),{25:73,27:N},{26:[2,28]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],72:[2,28],73:[2,20]},parseError:o(function(D,P){if(P.recoverable)this.trace(D);else{var F=new Error(D);throw F.hash=P,F}},"parseError"),parse:o(function(D){var P=this,F=[0],B=[],G=[null],z=[],W=this.table,Q="",j=0,at=0,X=0,J=2,Z=1,H=z.slice.call(arguments,1),q=Object.create(this.lexer),K={yy:{}};for(var ot in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ot)&&(K.yy[ot]=this.yy[ot]);q.setInput(D,K.yy),K.yy.lexer=q,K.yy.parser=this,typeof q.yylloc>"u"&&(q.yylloc={});var ct=q.yylloc;z.push(ct);var ut=q.options&&q.options.ranges;typeof K.yy.parseError=="function"?this.parseError=K.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function et(ht){F.length=F.length-2*ht,G.length=G.length-ht,z.length=z.length-ht}o(et,"popStack");function Mt(){var ht;return ht=B.pop()||q.lex()||Z,typeof ht!="number"&&(ht instanceof Array&&(B=ht,ht=B.pop()),ht=P.symbols_[ht]||ht),ht}o(Mt,"lex");for(var it,wt,Ot,St,Vt,Pt,_t={},dt,Y,ft,mt;;){if(Ot=F[F.length-1],this.defaultActions[Ot]?St=this.defaultActions[Ot]:((it===null||typeof it>"u")&&(it=Mt()),St=W[Ot]&&W[Ot][it]),typeof St>"u"||!St.length||!St[0]){var rt="";mt=[];for(dt in W[Ot])this.terminals_[dt]&&dt>J&&mt.push("'"+this.terminals_[dt]+"'");q.showPosition?rt="Parse error on line "+(j+1)+`: +`+q.showPosition()+` +Expecting `+mt.join(", ")+", got '"+(this.terminals_[it]||it)+"'":rt="Parse error on line "+(j+1)+": Unexpected "+(it==Z?"end of input":"'"+(this.terminals_[it]||it)+"'"),this.parseError(rt,{text:q.match,token:this.terminals_[it]||it,line:q.yylineno,loc:ct,expected:mt})}if(St[0]instanceof Array&&St.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ot+", token: "+it);switch(St[0]){case 1:F.push(it),G.push(q.yytext),z.push(q.yylloc),F.push(St[1]),it=null,wt?(it=wt,wt=null):(at=q.yyleng,Q=q.yytext,j=q.yylineno,ct=q.yylloc,X>0&&X--);break;case 2:if(Y=this.productions_[St[1]][1],_t.$=G[G.length-Y],_t._$={first_line:z[z.length-(Y||1)].first_line,last_line:z[z.length-1].last_line,first_column:z[z.length-(Y||1)].first_column,last_column:z[z.length-1].last_column},ut&&(_t._$.range=[z[z.length-(Y||1)].range[0],z[z.length-1].range[1]]),Pt=this.performAction.apply(_t,[Q,at,j,K.yy,St[1],G,z].concat(H)),typeof Pt<"u")return Pt;Y&&(F=F.slice(0,-1*Y*2),G=G.slice(0,-1*Y),z=z.slice(0,-1*Y)),F.push(this.productions_[St[1]][0]),G.push(_t.$),z.push(_t._$),ft=W[F[F.length-2]][F[F.length-1]],F.push(ft);break;case 3:return!0}}return!0},"parse")},I=function(){var O={EOF:1,parseError:o(function(P,F){if(this.yy.parser)this.yy.parser.parseError(P,F);else throw new Error(P)},"parseError"),setInput:o(function(D,P){return this.yy=P||this.yy||{},this._input=D,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var D=this._input[0];this.yytext+=D,this.yyleng++,this.offset++,this.match+=D,this.matched+=D;var P=D.match(/(?:\r\n?|\n).*/g);return P?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),D},"input"),unput:o(function(D){var P=D.length,F=D.split(/(?:\r\n?|\n)/g);this._input=D+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-P),this.offset-=P;var B=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),F.length-1&&(this.yylineno-=F.length-1);var G=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:F?(F.length===B.length?this.yylloc.first_column:0)+B[B.length-F.length].length-F[0].length:this.yylloc.first_column-P},this.options.ranges&&(this.yylloc.range=[G[0],G[0]+this.yyleng-P]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(D){this.unput(this.match.slice(D))},"less"),pastInput:o(function(){var D=this.matched.substr(0,this.matched.length-this.match.length);return(D.length>20?"...":"")+D.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var D=this.match;return D.length<20&&(D+=this._input.substr(0,20-D.length)),(D.substr(0,20)+(D.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var D=this.pastInput(),P=new Array(D.length+1).join("-");return D+this.upcomingInput()+` +`+P+"^"},"showPosition"),test_match:o(function(D,P){var F,B,G;if(this.options.backtrack_lexer&&(G={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(G.yylloc.range=this.yylloc.range.slice(0))),B=D[0].match(/(?:\r\n?|\n).*/g),B&&(this.yylineno+=B.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:B?B[B.length-1].length-B[B.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+D[0].length},this.yytext+=D[0],this.match+=D[0],this.matches=D,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(D[0].length),this.matched+=D[0],F=this.performAction.call(this,this.yy,this,P,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),F)return F;if(this._backtrack){for(var z in G)this[z]=G[z];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var D,P,F,B;this._more||(this.yytext="",this.match="");for(var G=this._currentRules(),z=0;zP[0].length)){if(P=F,B=z,this.options.backtrack_lexer){if(D=this.test_match(F,G[z]),D!==!1)return D;if(this._backtrack){P=!1;continue}else return!1}else if(!this.options.flex)break}return P?(D=this.test_match(P,G[B]),D!==!1?D:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var P=this.next();return P||this.lex()},"lex"),begin:o(function(P){this.conditionStack.push(P)},"begin"),popState:o(function(){var P=this.conditionStack.length-1;return P>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(P){return P=this.conditionStack.length-1-Math.abs(P||0),P>=0?this.conditionStack[P]:"INITIAL"},"topState"),pushState:o(function(P){this.begin(P)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:o(function(P,F,B,G){var z=G;switch(B){case 0:break;case 1:break;case 2:return this.popState(),34;break;case 3:return this.popState(),34;break;case 4:return 34;case 5:break;case 6:return 10;case 7:return this.pushState("acc_title"),19;break;case 8:return this.popState(),"acc_title_value";break;case 9:return this.pushState("acc_descr"),21;break;case 10:return this.popState(),"acc_descr_value";break;case 11:this.pushState("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 5;case 15:return 8;case 16:return this.pushState("axis_data"),"X_AXIS";break;case 17:return this.pushState("axis_data"),"Y_AXIS";break;case 18:return this.pushState("axis_band_data"),24;break;case 19:return 31;case 20:return this.pushState("data"),16;break;case 21:return this.pushState("data"),18;break;case 22:return this.pushState("data_inner"),24;break;case 23:return 27;case 24:return this.popState(),26;break;case 25:this.popState();break;case 26:this.pushState("string");break;case 27:this.popState();break;case 28:return"STR";case 29:return 24;case 30:return 26;case 31:return 43;case 32:return"COLON";case 33:return 44;case 34:return 28;case 35:return 45;case 36:return 46;case 37:return 48;case 38:return 50;case 39:return 47;case 40:return 41;case 41:return 49;case 42:return 42;case 43:break;case 44:return 35;case 45:return 36}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:(\r?\n))/i,/^(?:(\r?\n))/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:\{)/i,/^(?:[^\}]*)/i,/^(?:xychart-beta\b)/i,/^(?:(?:vertical|horizontal))/i,/^(?:x-axis\b)/i,/^(?:y-axis\b)/i,/^(?:\[)/i,/^(?:-->)/i,/^(?:line\b)/i,/^(?:bar\b)/i,/^(?:\[)/i,/^(?:[+-]?(?:\d+(?:\.\d+)?|\.\d+))/i,/^(?:\])/i,/^(?:(?:`\) \{ this\.pushState\(md_string\); \}\n\(\?:\(\?!`"\)\.\)\+ \{ return MD_STR; \}\n\(\?:`))/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s+)/i,/^(?:;)/i,/^(?:$)/i],conditions:{data_inner:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,20,21,23,24,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0},data:{rules:[0,1,3,4,5,6,7,9,11,14,15,16,17,20,21,22,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0},axis_band_data:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,20,21,24,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0},axis_data:{rules:[0,1,2,4,5,6,7,9,11,14,15,16,17,18,19,20,21,23,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0},acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},title:{rules:[],inclusive:!1},md_string:{rules:[],inclusive:!1},string:{rules:[27,28],inclusive:!1},INITIAL:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,20,21,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0}}};return O}();k.lexer=I;function C(){this.yy={}}return o(C,"Parser"),C.prototype=k,k.Parser=C,new C}();rP.parser=rP;Kht=rP});function nP(e){return e.type==="bar"}function r6(e){return e.type==="band"}function qg(e){return e.type==="linear"}var n6=R(()=>{"use strict";o(nP,"isBarPlot");o(r6,"isBandAxisData");o(qg,"isLinearAxisData")});var Xg,iP=R(()=>{"use strict";Nl();Xg=class{constructor(t){this.parentGroup=t}static{o(this,"TextDimensionCalculatorWithFont")}getMaxDimension(t,r){if(!this.parentGroup)return{width:t.reduce((a,s)=>Math.max(s.length,a),0)*r,height:r};let n={width:0,height:0},i=this.parentGroup.append("g").attr("visibility","hidden").attr("font-size",r);for(let a of t){let s=vQ(i,1,a),l=s?s.width:a.length*r,u=s?s.height:r;n.width=Math.max(n.width,l),n.height=Math.max(n.height,u)}return i.remove(),n}}});var jg,aP=R(()=>{"use strict";jg=class{constructor(t,r,n,i){this.axisConfig=t;this.title=r;this.textDimensionCalculator=n;this.axisThemeConfig=i;this.boundingRect={x:0,y:0,width:0,height:0};this.axisPosition="left";this.showTitle=!1;this.showLabel=!1;this.showTick=!1;this.showAxisLine=!1;this.outerPadding=0;this.titleTextHeight=0;this.labelTextHeight=0;this.range=[0,10],this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left"}static{o(this,"BaseAxis")}setRange(t){this.range=t,this.axisPosition==="left"||this.axisPosition==="right"?this.boundingRect.height=t[1]-t[0]:this.boundingRect.width=t[1]-t[0],this.recalculateScale()}getRange(){return[this.range[0]+this.outerPadding,this.range[1]-this.outerPadding]}setAxisPosition(t){this.axisPosition=t,this.setRange(this.range)}getTickDistance(){let t=this.getRange();return Math.abs(t[0]-t[1])/this.getTickValues().length}getAxisOuterPadding(){return this.outerPadding}getLabelDimension(){return this.textDimensionCalculator.getMaxDimension(this.getTickValues().map(t=>t.toString()),this.axisConfig.labelFontSize)}recalculateOuterPaddingToDrawBar(){.7*this.getTickDistance()>this.outerPadding*2&&(this.outerPadding=Math.floor(.7*this.getTickDistance()/2)),this.recalculateScale()}calculateSpaceIfDrawnHorizontally(t){let r=t.height;if(this.axisConfig.showAxisLine&&r>this.axisConfig.axisLineWidth&&(r-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){let n=this.getLabelDimension(),i=.2*t.width;this.outerPadding=Math.min(n.width/2,i);let a=n.height+this.axisConfig.labelPadding*2;this.labelTextHeight=n.height,a<=r&&(r-=a,this.showLabel=!0)}if(this.axisConfig.showTick&&r>=this.axisConfig.tickLength&&(this.showTick=!0,r-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){let n=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),i=n.height+this.axisConfig.titlePadding*2;this.titleTextHeight=n.height,i<=r&&(r-=i,this.showTitle=!0)}this.boundingRect.width=t.width,this.boundingRect.height=t.height-r}calculateSpaceIfDrawnVertical(t){let r=t.width;if(this.axisConfig.showAxisLine&&r>this.axisConfig.axisLineWidth&&(r-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){let n=this.getLabelDimension(),i=.2*t.height;this.outerPadding=Math.min(n.height/2,i);let a=n.width+this.axisConfig.labelPadding*2;a<=r&&(r-=a,this.showLabel=!0)}if(this.axisConfig.showTick&&r>=this.axisConfig.tickLength&&(this.showTick=!0,r-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){let n=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),i=n.height+this.axisConfig.titlePadding*2;this.titleTextHeight=n.height,i<=r&&(r-=i,this.showTitle=!0)}this.boundingRect.width=t.width-r,this.boundingRect.height=t.height}calculateSpace(t){return this.axisPosition==="left"||this.axisPosition==="right"?this.calculateSpaceIfDrawnVertical(t):this.calculateSpaceIfDrawnHorizontally(t),this.recalculateScale(),{width:this.boundingRect.width,height:this.boundingRect.height}}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}getDrawableElementsForLeftAxis(){let t=[];if(this.showAxisLine){let r=this.boundingRect.x+this.boundingRect.width-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["left-axis","axisl-line"],data:[{path:`M ${r},${this.boundingRect.y} L ${r},${this.boundingRect.y+this.boundingRect.height} `,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["left-axis","label"],data:this.getTickValues().map(r=>({text:r.toString(),x:this.boundingRect.x+this.boundingRect.width-(this.showLabel?this.axisConfig.labelPadding:0)-(this.showTick?this.axisConfig.tickLength:0)-(this.showAxisLine?this.axisConfig.axisLineWidth:0),y:this.getScaleValue(r),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"middle",horizontalPos:"right"}))}),this.showTick){let r=this.boundingRect.x+this.boundingRect.width-(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["left-axis","ticks"],data:this.getTickValues().map(n=>({path:`M ${r},${this.getScaleValue(n)} L ${r-this.axisConfig.tickLength},${this.getScaleValue(n)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["left-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.axisConfig.titlePadding,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:270,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElementsForBottomAxis(){let t=[];if(this.showAxisLine){let r=this.boundingRect.y+this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["bottom-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${r} L ${this.boundingRect.x+this.boundingRect.width},${r}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["bottom-axis","label"],data:this.getTickValues().map(r=>({text:r.toString(),x:this.getScaleValue(r),y:this.boundingRect.y+this.axisConfig.labelPadding+(this.showTick?this.axisConfig.tickLength:0)+(this.showAxisLine?this.axisConfig.axisLineWidth:0),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){let r=this.boundingRect.y+(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["bottom-axis","ticks"],data:this.getTickValues().map(n=>({path:`M ${this.getScaleValue(n)},${r} L ${this.getScaleValue(n)},${r+this.axisConfig.tickLength}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["bottom-axis","title"],data:[{text:this.title,x:this.range[0]+(this.range[1]-this.range[0])/2,y:this.boundingRect.y+this.boundingRect.height-this.axisConfig.titlePadding-this.titleTextHeight,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElementsForTopAxis(){let t=[];if(this.showAxisLine){let r=this.boundingRect.y+this.boundingRect.height-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["top-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${r} L ${this.boundingRect.x+this.boundingRect.width},${r}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["top-axis","label"],data:this.getTickValues().map(r=>({text:r.toString(),x:this.getScaleValue(r),y:this.boundingRect.y+(this.showTitle?this.titleTextHeight+this.axisConfig.titlePadding*2:0)+this.axisConfig.labelPadding,fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){let r=this.boundingRect.y;t.push({type:"path",groupTexts:["top-axis","ticks"],data:this.getTickValues().map(n=>({path:`M ${this.getScaleValue(n)},${r+this.boundingRect.height-(this.showAxisLine?this.axisConfig.axisLineWidth:0)} L ${this.getScaleValue(n)},${r+this.boundingRect.height-this.axisConfig.tickLength-(this.showAxisLine?this.axisConfig.axisLineWidth:0)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["top-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.axisConfig.titlePadding,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElements(){if(this.axisPosition==="left")return this.getDrawableElementsForLeftAxis();if(this.axisPosition==="right")throw Error("Drawing of right axis is not implemented");return this.axisPosition==="bottom"?this.getDrawableElementsForBottomAxis():this.axisPosition==="top"?this.getDrawableElementsForTopAxis():[]}}});var i6,Zht=R(()=>{"use strict";ur();ce();aP();i6=class extends jg{static{o(this,"BandAxis")}constructor(t,r,n,i,a){super(t,i,a,r),this.categories=n,this.scale=Up().domain(this.categories).range(this.getRange())}setRange(t){super.setRange(t)}recalculateScale(){this.scale=Up().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(.5),V.trace("BandAxis axis final categories, range: ",this.categories,this.getRange())}getTickValues(){return this.categories}getScaleValue(t){return this.scale(t)??this.getRange()[0]}}});var a6,Jht=R(()=>{"use strict";ur();aP();a6=class extends jg{static{o(this,"LinearAxis")}constructor(t,r,n,i,a){super(t,i,a,r),this.domain=n,this.scale=wl().domain(this.domain).range(this.getRange())}getTickValues(){return this.scale.ticks()}recalculateScale(){let t=[...this.domain];this.axisPosition==="left"&&t.reverse(),this.scale=wl().domain(t).range(this.getRange())}getScaleValue(t){return this.scale(t)}}});function sP(e,t,r,n){let i=new Xg(n);return r6(e)?new i6(t,r,e.categories,e.title,i):new a6(t,r,[e.min,e.max],e.title,i)}var tft=R(()=>{"use strict";n6();iP();Zht();Jht();o(sP,"getAxis")});function eft(e,t,r,n){let i=new Xg(n);return new oP(i,e,t,r)}var oP,rft=R(()=>{"use strict";iP();oP=class{constructor(t,r,n,i){this.textDimensionCalculator=t;this.chartConfig=r;this.chartData=n;this.chartThemeConfig=i;this.boundingRect={x:0,y:0,width:0,height:0},this.showChartTitle=!1}static{o(this,"ChartTitle")}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){let r=this.textDimensionCalculator.getMaxDimension([this.chartData.title],this.chartConfig.titleFontSize),n=Math.max(r.width,t.width),i=r.height+2*this.chartConfig.titlePadding;return r.width<=n&&r.height<=i&&this.chartConfig.showTitle&&this.chartData.title&&(this.boundingRect.width=n,this.boundingRect.height=i,this.showChartTitle=!0),{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){let t=[];return this.showChartTitle&&t.push({groupTexts:["chart-title"],type:"text",data:[{fontSize:this.chartConfig.titleFontSize,text:this.chartData.title,verticalPos:"middle",horizontalPos:"center",x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.chartThemeConfig.titleColor,rotation:0}]}),t}};o(eft,"getChartTitleComponent")});var s6,nft=R(()=>{"use strict";ur();s6=class{constructor(t,r,n,i,a){this.plotData=t;this.xAxis=r;this.yAxis=n;this.orientation=i;this.plotIndex=a}static{o(this,"LinePlot")}getDrawableElement(){let t=this.plotData.data.map(n=>[this.xAxis.getScaleValue(n[0]),this.yAxis.getScaleValue(n[1])]),r;return this.orientation==="horizontal"?r=ma().y(n=>n[0]).x(n=>n[1])(t):r=ma().x(n=>n[0]).y(n=>n[1])(t),r?[{groupTexts:["plot",`line-plot-${this.plotIndex}`],type:"path",data:[{path:r,strokeFill:this.plotData.strokeFill,strokeWidth:this.plotData.strokeWidth}]}]:[]}}});var o6,ift=R(()=>{"use strict";o6=class{constructor(t,r,n,i,a,s){this.barData=t;this.boundingRect=r;this.xAxis=n;this.yAxis=i;this.orientation=a;this.plotIndex=s}static{o(this,"BarPlot")}getDrawableElement(){let t=this.barData.data.map(a=>[this.xAxis.getScaleValue(a[0]),this.yAxis.getScaleValue(a[1])]),n=Math.min(this.xAxis.getAxisOuterPadding()*2,this.xAxis.getTickDistance())*(1-.05),i=n/2;return this.orientation==="horizontal"?[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map(a=>({x:this.boundingRect.x,y:a[0]-i,height:n,width:a[1]-this.boundingRect.x,fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]:[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map(a=>({x:a[0]-i,y:a[1],width:n,height:this.boundingRect.y+this.boundingRect.height-a[1],fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]}}});function aft(e,t,r){return new lP(e,t,r)}var lP,sft=R(()=>{"use strict";nft();ift();lP=class{constructor(t,r,n){this.chartConfig=t;this.chartData=r;this.chartThemeConfig=n;this.boundingRect={x:0,y:0,width:0,height:0}}static{o(this,"BasePlot")}setAxes(t,r){this.xAxis=t,this.yAxis=r}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){return this.boundingRect.width=t.width,this.boundingRect.height=t.height,{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){if(!(this.xAxis&&this.yAxis))throw Error("Axes must be passed to render Plots");let t=[];for(let[r,n]of this.chartData.plots.entries())switch(n.type){case"line":{let i=new s6(n,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,r);t.push(...i.getDrawableElement())}break;case"bar":{let i=new o6(n,this.boundingRect,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,r);t.push(...i.getDrawableElement())}break}return t}};o(aft,"getPlotComponent")});var l6,oft=R(()=>{"use strict";tft();rft();sft();n6();l6=class{constructor(t,r,n,i){this.chartConfig=t;this.chartData=r;this.componentStore={title:eft(t,r,n,i),plot:aft(t,r,n),xAxis:sP(r.xAxis,t.xAxis,{titleColor:n.xAxisTitleColor,labelColor:n.xAxisLabelColor,tickColor:n.xAxisTickColor,axisLineColor:n.xAxisLineColor},i),yAxis:sP(r.yAxis,t.yAxis,{titleColor:n.yAxisTitleColor,labelColor:n.yAxisLabelColor,tickColor:n.yAxisTickColor,axisLineColor:n.yAxisLineColor},i)}}static{o(this,"Orchestrator")}calculateVerticalSpace(){let t=this.chartConfig.width,r=this.chartConfig.height,n=0,i=0,a=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),s=Math.floor(r*this.chartConfig.plotReservedSpacePercent/100),l=this.componentStore.plot.calculateSpace({width:a,height:s});t-=l.width,r-=l.height,l=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:r}),i=l.height,r-=l.height,this.componentStore.xAxis.setAxisPosition("bottom"),l=this.componentStore.xAxis.calculateSpace({width:t,height:r}),r-=l.height,this.componentStore.yAxis.setAxisPosition("left"),l=this.componentStore.yAxis.calculateSpace({width:t,height:r}),n=l.width,t-=l.width,t>0&&(a+=t,t=0),r>0&&(s+=r,r=0),this.componentStore.plot.calculateSpace({width:a,height:s}),this.componentStore.plot.setBoundingBoxXY({x:n,y:i}),this.componentStore.xAxis.setRange([n,n+a]),this.componentStore.xAxis.setBoundingBoxXY({x:n,y:i+s}),this.componentStore.yAxis.setRange([i,i+s]),this.componentStore.yAxis.setBoundingBoxXY({x:0,y:i}),this.chartData.plots.some(u=>nP(u))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateHorizontalSpace(){let t=this.chartConfig.width,r=this.chartConfig.height,n=0,i=0,a=0,s=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),l=Math.floor(r*this.chartConfig.plotReservedSpacePercent/100),u=this.componentStore.plot.calculateSpace({width:s,height:l});t-=u.width,r-=u.height,u=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:r}),n=u.height,r-=u.height,this.componentStore.xAxis.setAxisPosition("left"),u=this.componentStore.xAxis.calculateSpace({width:t,height:r}),t-=u.width,i=u.width,this.componentStore.yAxis.setAxisPosition("top"),u=this.componentStore.yAxis.calculateSpace({width:t,height:r}),r-=u.height,a=n+u.height,t>0&&(s+=t,t=0),r>0&&(l+=r,r=0),this.componentStore.plot.calculateSpace({width:s,height:l}),this.componentStore.plot.setBoundingBoxXY({x:i,y:a}),this.componentStore.yAxis.setRange([i,i+s]),this.componentStore.yAxis.setBoundingBoxXY({x:i,y:n}),this.componentStore.xAxis.setRange([a,a+l]),this.componentStore.xAxis.setBoundingBoxXY({x:0,y:a}),this.chartData.plots.some(h=>nP(h))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateSpace(){this.chartConfig.chartOrientation==="horizontal"?this.calculateHorizontalSpace():this.calculateVerticalSpace()}getDrawableElement(){this.calculateSpace();let t=[];this.componentStore.plot.setAxes(this.componentStore.xAxis,this.componentStore.yAxis);for(let r of Object.values(this.componentStore))t.push(...r.getDrawableElements());return t}}});var c6,lft=R(()=>{"use strict";oft();c6=class{static{o(this,"XYChartBuilder")}static build(t,r,n,i){return new l6(t,r,n,i).getDrawableElement()}}});function uft(){let e=xp(),t=Nr();return Ss(e.xyChart,t.themeVariables.xyChart)}function hft(){let e=Nr();return Ss(Er.xyChart,e.xyChart)}function fft(){return{yAxis:{type:"linear",title:"",min:1/0,max:-1/0},xAxis:{type:"band",title:"",categories:[]},title:"",plots:[]}}function hP(e){let t=Nr();return Zr(e.trim(),t)}function _Vt(e){cft=e}function LVt(e){e==="horizontal"?Fx.chartOrientation="horizontal":Fx.chartOrientation="vertical"}function DVt(e){hn.xAxis.title=hP(e.text)}function dft(e,t){hn.xAxis={type:"linear",title:hn.xAxis.title,min:e,max:t},u6=!0}function RVt(e){hn.xAxis={type:"band",title:hn.xAxis.title,categories:e.map(t=>hP(t.text))},u6=!0}function NVt(e){hn.yAxis.title=hP(e.text)}function MVt(e,t){hn.yAxis={type:"linear",title:hn.yAxis.title,min:e,max:t},uP=!0}function IVt(e){let t=Math.min(...e),r=Math.max(...e),n=qg(hn.yAxis)?hn.yAxis.min:1/0,i=qg(hn.yAxis)?hn.yAxis.max:-1/0;hn.yAxis={type:"linear",title:hn.yAxis.title,min:Math.min(n,t),max:Math.max(i,r)}}function pft(e){let t=[];if(e.length===0)return t;if(!u6){let r=qg(hn.xAxis)?hn.xAxis.min:1/0,n=qg(hn.xAxis)?hn.xAxis.max:-1/0;dft(Math.min(r,1),Math.max(n,e.length))}if(uP||IVt(e),r6(hn.xAxis)&&(t=hn.xAxis.categories.map((r,n)=>[r,e[n]])),qg(hn.xAxis)){let r=hn.xAxis.min,n=hn.xAxis.max,i=(n-r)/(e.length-1),a=[];for(let s=r;s<=n;s+=i)a.push(`${s}`);t=a.map((s,l)=>[s,e[l]])}return t}function mft(e){return cP[e===0?0:e%cP.length]}function OVt(e,t){let r=pft(t);hn.plots.push({type:"line",strokeFill:mft(Bx),strokeWidth:2,data:r}),Bx++}function PVt(e,t){let r=pft(t);hn.plots.push({type:"bar",fill:mft(Bx),data:r}),Bx++}function BVt(){if(hn.plots.length===0)throw Error("No Plot to render, please provide a plot with some data");return hn.title=Jr(),c6.build(Fx,hn,zx,cft)}function FVt(){return zx}function zVt(){return Fx}var Bx,cft,Fx,zx,hn,cP,u6,uP,$Vt,gft,yft=R(()=>{"use strict";js();hl();m4();_r();hr();Ci();lft();n6();Bx=0,Fx=hft(),zx=uft(),hn=fft(),cP=zx.plotColorPalette.split(",").map(e=>e.trim()),u6=!1,uP=!1;o(uft,"getChartDefaultThemeConfig");o(hft,"getChartDefaultConfig");o(fft,"getChartDefaultData");o(hP,"textSanitizer");o(_Vt,"setTmpSVGG");o(LVt,"setOrientation");o(DVt,"setXAxisTitle");o(dft,"setXAxisRangeData");o(RVt,"setXAxisBand");o(NVt,"setYAxisTitle");o(MVt,"setYAxisRangeData");o(IVt,"setYAxisRangeFromPlotData");o(pft,"transformDataWithoutCategory");o(mft,"getPlotColorFromPalette");o(OVt,"setLineData");o(PVt,"setBarData");o(BVt,"getDrawableElem");o(FVt,"getChartThemeConfig");o(zVt,"getChartConfig");$Vt=o(function(){Ar(),Bx=0,Fx=hft(),hn=fft(),zx=uft(),cP=zx.plotColorPalette.split(",").map(e=>e.trim()),u6=!1,uP=!1},"clear"),gft={getDrawableElem:BVt,clear:$Vt,setAccTitle:Mr,getAccTitle:Br,setDiagramTitle:cn,getDiagramTitle:Jr,getAccDescription:zr,setAccDescription:Fr,setOrientation:LVt,setXAxisTitle:DVt,setXAxisRangeData:dft,setXAxisBand:RVt,setYAxisTitle:NVt,setYAxisRangeData:MVt,setLineData:OVt,setBarData:PVt,setTmpSVGG:_Vt,getChartThemeConfig:FVt,getChartConfig:zVt}});var GVt,vft,xft=R(()=>{"use strict";ce();xf();Jn();GVt=o((e,t,r,n)=>{let i=n.db,a=i.getChartThemeConfig(),s=i.getChartConfig();function l(v){return v==="top"?"text-before-edge":"middle"}o(l,"getDominantBaseLine");function u(v){return v==="left"?"start":v==="right"?"end":"middle"}o(u,"getTextAnchor");function h(v){return`translate(${v.x}, ${v.y}) rotate(${v.rotation||0})`}o(h,"getTextTransformation"),V.debug(`Rendering xychart chart +`+e);let f=Vs(t),d=f.append("g").attr("class","main"),p=d.append("rect").attr("width",s.width).attr("height",s.height).attr("class","background");Pr(f,s.height,s.width,!0),f.attr("viewBox",`0 0 ${s.width} ${s.height}`),p.attr("fill",a.backgroundColor),i.setTmpSVGG(f.append("g").attr("class","mermaid-tmp-group"));let m=i.getDrawableElem(),g={};function y(v){let x=d,b="";for(let[w]of v.entries()){let S=d;w>0&&g[b]&&(S=g[b]),b+=v[w],x=g[b],x||(x=g[b]=S.append("g").attr("class",v[w]))}return x}o(y,"getGroup");for(let v of m){if(v.data.length===0)continue;let x=y(v.groupTexts);switch(v.type){case"rect":x.selectAll("rect").data(v.data).enter().append("rect").attr("x",b=>b.x).attr("y",b=>b.y).attr("width",b=>b.width).attr("height",b=>b.height).attr("fill",b=>b.fill).attr("stroke",b=>b.strokeFill).attr("stroke-width",b=>b.strokeWidth);break;case"text":x.selectAll("text").data(v.data).enter().append("text").attr("x",0).attr("y",0).attr("fill",b=>b.fill).attr("font-size",b=>b.fontSize).attr("dominant-baseline",b=>l(b.verticalPos)).attr("text-anchor",b=>u(b.horizontalPos)).attr("transform",b=>h(b)).text(b=>b.text);break;case"path":x.selectAll("path").data(v.data).enter().append("path").attr("d",b=>b.path).attr("fill",b=>b.fill?b.fill:"none").attr("stroke",b=>b.strokeFill).attr("stroke-width",b=>b.strokeWidth);break}}},"draw"),vft={draw:GVt}});var bft={};xr(bft,{diagram:()=>VVt});var VVt,wft=R(()=>{"use strict";Qht();yft();xft();VVt={parser:Kht,db:gft,renderer:vft}});var fP,Eft,Cft=R(()=>{"use strict";fP=function(){var e=o(function(at,X,J,Z){for(J=J||{},Z=at.length;Z--;J[at[Z]]=X);return J},"o"),t=[1,3],r=[1,4],n=[1,5],i=[1,6],a=[5,6,8,9,11,13,31,32,33,34,35,36,44,62,63],s=[1,18],l=[2,7],u=[1,22],h=[1,23],f=[1,24],d=[1,25],p=[1,26],m=[1,27],g=[1,20],y=[1,28],v=[1,29],x=[62,63],b=[5,8,9,11,13,31,32,33,34,35,36,44,51,53,62,63],w=[1,47],S=[1,48],T=[1,49],E=[1,50],_=[1,51],A=[1,52],L=[1,53],M=[53,54],N=[1,64],k=[1,60],I=[1,61],C=[1,62],O=[1,63],D=[1,65],P=[1,69],F=[1,70],B=[1,67],G=[1,68],z=[5,8,9,11,13,31,32,33,34,35,36,44,62,63],W={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,requirementType:17,requirementName:18,STRUCT_START:19,requirementBody:20,ID:21,COLONSEP:22,id:23,TEXT:24,text:25,RISK:26,riskLevel:27,VERIFYMTHD:28,verifyType:29,STRUCT_STOP:30,REQUIREMENT:31,FUNCTIONAL_REQUIREMENT:32,INTERFACE_REQUIREMENT:33,PERFORMANCE_REQUIREMENT:34,PHYSICAL_REQUIREMENT:35,DESIGN_CONSTRAINT:36,LOW_RISK:37,MED_RISK:38,HIGH_RISK:39,VERIFY_ANALYSIS:40,VERIFY_DEMONSTRATION:41,VERIFY_INSPECTION:42,VERIFY_TEST:43,ELEMENT:44,elementName:45,elementBody:46,TYPE:47,type:48,DOCREF:49,ref:50,END_ARROW_L:51,relationship:52,LINE:53,END_ARROW_R:54,CONTAINS:55,COPIES:56,DERIVES:57,SATISFIES:58,VERIFIES:59,REFINES:60,TRACES:61,unqString:62,qString:63,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",19:"STRUCT_START",21:"ID",22:"COLONSEP",24:"TEXT",26:"RISK",28:"VERIFYMTHD",30:"STRUCT_STOP",31:"REQUIREMENT",32:"FUNCTIONAL_REQUIREMENT",33:"INTERFACE_REQUIREMENT",34:"PERFORMANCE_REQUIREMENT",35:"PHYSICAL_REQUIREMENT",36:"DESIGN_CONSTRAINT",37:"LOW_RISK",38:"MED_RISK",39:"HIGH_RISK",40:"VERIFY_ANALYSIS",41:"VERIFY_DEMONSTRATION",42:"VERIFY_INSPECTION",43:"VERIFY_TEST",44:"ELEMENT",47:"TYPE",49:"DOCREF",51:"END_ARROW_L",53:"LINE",54:"END_ARROW_R",55:"CONTAINS",56:"COPIES",57:"DERIVES",58:"SATISFIES",59:"VERIFIES",60:"REFINES",61:"TRACES",62:"unqString",63:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[14,5],[20,5],[20,5],[20,5],[20,5],[20,2],[20,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[27,1],[27,1],[27,1],[29,1],[29,1],[29,1],[29,1],[15,5],[46,5],[46,5],[46,2],[46,1],[16,5],[16,5],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[18,1],[18,1],[23,1],[23,1],[25,1],[25,1],[45,1],[45,1],[48,1],[48,1],[50,1],[50,1]],performAction:o(function(X,J,Z,H,q,K,ot){var ct=K.length-1;switch(q){case 4:this.$=K[ct].trim(),H.setAccTitle(this.$);break;case 5:case 6:this.$=K[ct].trim(),H.setAccDescription(this.$);break;case 7:this.$=[];break;case 13:H.addRequirement(K[ct-3],K[ct-4]);break;case 14:H.setNewReqId(K[ct-2]);break;case 15:H.setNewReqText(K[ct-2]);break;case 16:H.setNewReqRisk(K[ct-2]);break;case 17:H.setNewReqVerifyMethod(K[ct-2]);break;case 20:this.$=H.RequirementType.REQUIREMENT;break;case 21:this.$=H.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 22:this.$=H.RequirementType.INTERFACE_REQUIREMENT;break;case 23:this.$=H.RequirementType.PERFORMANCE_REQUIREMENT;break;case 24:this.$=H.RequirementType.PHYSICAL_REQUIREMENT;break;case 25:this.$=H.RequirementType.DESIGN_CONSTRAINT;break;case 26:this.$=H.RiskLevel.LOW_RISK;break;case 27:this.$=H.RiskLevel.MED_RISK;break;case 28:this.$=H.RiskLevel.HIGH_RISK;break;case 29:this.$=H.VerifyType.VERIFY_ANALYSIS;break;case 30:this.$=H.VerifyType.VERIFY_DEMONSTRATION;break;case 31:this.$=H.VerifyType.VERIFY_INSPECTION;break;case 32:this.$=H.VerifyType.VERIFY_TEST;break;case 33:H.addElement(K[ct-3]);break;case 34:H.setNewElementType(K[ct-2]);break;case 35:H.setNewElementDocRef(K[ct-2]);break;case 38:H.addRelationship(K[ct-2],K[ct],K[ct-4]);break;case 39:H.addRelationship(K[ct-2],K[ct-4],K[ct]);break;case 40:this.$=H.Relationships.CONTAINS;break;case 41:this.$=H.Relationships.COPIES;break;case 42:this.$=H.Relationships.DERIVES;break;case 43:this.$=H.Relationships.SATISFIES;break;case 44:this.$=H.Relationships.VERIFIES;break;case 45:this.$=H.Relationships.REFINES;break;case 46:this.$=H.Relationships.TRACES;break}},"anonymous"),table:[{3:1,4:2,6:t,9:r,11:n,13:i},{1:[3]},{3:8,4:2,5:[1,7],6:t,9:r,11:n,13:i},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(a,[2,6]),{3:12,4:2,6:t,9:r,11:n,13:i},{1:[2,2]},{4:17,5:s,7:13,8:l,9:r,11:n,13:i,14:14,15:15,16:16,17:19,23:21,31:u,32:h,33:f,34:d,35:p,36:m,44:g,62:y,63:v},e(a,[2,4]),e(a,[2,5]),{1:[2,1]},{8:[1,30]},{4:17,5:s,7:31,8:l,9:r,11:n,13:i,14:14,15:15,16:16,17:19,23:21,31:u,32:h,33:f,34:d,35:p,36:m,44:g,62:y,63:v},{4:17,5:s,7:32,8:l,9:r,11:n,13:i,14:14,15:15,16:16,17:19,23:21,31:u,32:h,33:f,34:d,35:p,36:m,44:g,62:y,63:v},{4:17,5:s,7:33,8:l,9:r,11:n,13:i,14:14,15:15,16:16,17:19,23:21,31:u,32:h,33:f,34:d,35:p,36:m,44:g,62:y,63:v},{4:17,5:s,7:34,8:l,9:r,11:n,13:i,14:14,15:15,16:16,17:19,23:21,31:u,32:h,33:f,34:d,35:p,36:m,44:g,62:y,63:v},{4:17,5:s,7:35,8:l,9:r,11:n,13:i,14:14,15:15,16:16,17:19,23:21,31:u,32:h,33:f,34:d,35:p,36:m,44:g,62:y,63:v},{18:36,62:[1,37],63:[1,38]},{45:39,62:[1,40],63:[1,41]},{51:[1,42],53:[1,43]},e(x,[2,20]),e(x,[2,21]),e(x,[2,22]),e(x,[2,23]),e(x,[2,24]),e(x,[2,25]),e(b,[2,49]),e(b,[2,50]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{19:[1,44]},{19:[2,47]},{19:[2,48]},{19:[1,45]},{19:[2,53]},{19:[2,54]},{52:46,55:w,56:S,57:T,58:E,59:_,60:A,61:L},{52:54,55:w,56:S,57:T,58:E,59:_,60:A,61:L},{5:[1,55]},{5:[1,56]},{53:[1,57]},e(M,[2,40]),e(M,[2,41]),e(M,[2,42]),e(M,[2,43]),e(M,[2,44]),e(M,[2,45]),e(M,[2,46]),{54:[1,58]},{5:N,20:59,21:k,24:I,26:C,28:O,30:D},{5:P,30:F,46:66,47:B,49:G},{23:71,62:y,63:v},{23:72,62:y,63:v},e(z,[2,13]),{22:[1,73]},{22:[1,74]},{22:[1,75]},{22:[1,76]},{5:N,20:77,21:k,24:I,26:C,28:O,30:D},e(z,[2,19]),e(z,[2,33]),{22:[1,78]},{22:[1,79]},{5:P,30:F,46:80,47:B,49:G},e(z,[2,37]),e(z,[2,38]),e(z,[2,39]),{23:81,62:y,63:v},{25:82,62:[1,83],63:[1,84]},{27:85,37:[1,86],38:[1,87],39:[1,88]},{29:89,40:[1,90],41:[1,91],42:[1,92],43:[1,93]},e(z,[2,18]),{48:94,62:[1,95],63:[1,96]},{50:97,62:[1,98],63:[1,99]},e(z,[2,36]),{5:[1,100]},{5:[1,101]},{5:[2,51]},{5:[2,52]},{5:[1,102]},{5:[2,26]},{5:[2,27]},{5:[2,28]},{5:[1,103]},{5:[2,29]},{5:[2,30]},{5:[2,31]},{5:[2,32]},{5:[1,104]},{5:[2,55]},{5:[2,56]},{5:[1,105]},{5:[2,57]},{5:[2,58]},{5:N,20:106,21:k,24:I,26:C,28:O,30:D},{5:N,20:107,21:k,24:I,26:C,28:O,30:D},{5:N,20:108,21:k,24:I,26:C,28:O,30:D},{5:N,20:109,21:k,24:I,26:C,28:O,30:D},{5:P,30:F,46:110,47:B,49:G},{5:P,30:F,46:111,47:B,49:G},e(z,[2,14]),e(z,[2,15]),e(z,[2,16]),e(z,[2,17]),e(z,[2,34]),e(z,[2,35])],defaultActions:{8:[2,2],12:[2,1],30:[2,3],31:[2,8],32:[2,9],33:[2,10],34:[2,11],35:[2,12],37:[2,47],38:[2,48],40:[2,53],41:[2,54],83:[2,51],84:[2,52],86:[2,26],87:[2,27],88:[2,28],90:[2,29],91:[2,30],92:[2,31],93:[2,32],95:[2,55],96:[2,56],98:[2,57],99:[2,58]},parseError:o(function(X,J){if(J.recoverable)this.trace(X);else{var Z=new Error(X);throw Z.hash=J,Z}},"parseError"),parse:o(function(X){var J=this,Z=[0],H=[],q=[null],K=[],ot=this.table,ct="",ut=0,et=0,Mt=0,it=2,wt=1,Ot=K.slice.call(arguments,1),St=Object.create(this.lexer),Vt={yy:{}};for(var Pt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Pt)&&(Vt.yy[Pt]=this.yy[Pt]);St.setInput(X,Vt.yy),Vt.yy.lexer=St,Vt.yy.parser=this,typeof St.yylloc>"u"&&(St.yylloc={});var _t=St.yylloc;K.push(_t);var dt=St.options&&St.options.ranges;typeof Vt.yy.parseError=="function"?this.parseError=Vt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Y(Ut){Z.length=Z.length-2*Ut,q.length=q.length-Ut,K.length=K.length-Ut}o(Y,"popStack");function ft(){var Ut;return Ut=H.pop()||St.lex()||wt,typeof Ut!="number"&&(Ut instanceof Array&&(H=Ut,Ut=H.pop()),Ut=J.symbols_[Ut]||Ut),Ut}o(ft,"lex");for(var mt,rt,ht,nt,st,Tt,kt={},Ct,At,$t,Nt;;){if(ht=Z[Z.length-1],this.defaultActions[ht]?nt=this.defaultActions[ht]:((mt===null||typeof mt>"u")&&(mt=ft()),nt=ot[ht]&&ot[ht][mt]),typeof nt>"u"||!nt.length||!nt[0]){var yt="";Nt=[];for(Ct in ot[ht])this.terminals_[Ct]&&Ct>it&&Nt.push("'"+this.terminals_[Ct]+"'");St.showPosition?yt="Parse error on line "+(ut+1)+`: +`+St.showPosition()+` +Expecting `+Nt.join(", ")+", got '"+(this.terminals_[mt]||mt)+"'":yt="Parse error on line "+(ut+1)+": Unexpected "+(mt==wt?"end of input":"'"+(this.terminals_[mt]||mt)+"'"),this.parseError(yt,{text:St.match,token:this.terminals_[mt]||mt,line:St.yylineno,loc:_t,expected:Nt})}if(nt[0]instanceof Array&&nt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ht+", token: "+mt);switch(nt[0]){case 1:Z.push(mt),q.push(St.yytext),K.push(St.yylloc),Z.push(nt[1]),mt=null,rt?(mt=rt,rt=null):(et=St.yyleng,ct=St.yytext,ut=St.yylineno,_t=St.yylloc,Mt>0&&Mt--);break;case 2:if(At=this.productions_[nt[1]][1],kt.$=q[q.length-At],kt._$={first_line:K[K.length-(At||1)].first_line,last_line:K[K.length-1].last_line,first_column:K[K.length-(At||1)].first_column,last_column:K[K.length-1].last_column},dt&&(kt._$.range=[K[K.length-(At||1)].range[0],K[K.length-1].range[1]]),Tt=this.performAction.apply(kt,[ct,et,ut,Vt.yy,nt[1],q,K].concat(Ot)),typeof Tt<"u")return Tt;At&&(Z=Z.slice(0,-1*At*2),q=q.slice(0,-1*At),K=K.slice(0,-1*At)),Z.push(this.productions_[nt[1]][0]),q.push(kt.$),K.push(kt._$),$t=ot[Z[Z.length-2]][Z[Z.length-1]],Z.push($t);break;case 3:return!0}}return!0},"parse")},Q=function(){var at={EOF:1,parseError:o(function(J,Z){if(this.yy.parser)this.yy.parser.parseError(J,Z);else throw new Error(J)},"parseError"),setInput:o(function(X,J){return this.yy=J||this.yy||{},this._input=X,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var X=this._input[0];this.yytext+=X,this.yyleng++,this.offset++,this.match+=X,this.matched+=X;var J=X.match(/(?:\r\n?|\n).*/g);return J?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),X},"input"),unput:o(function(X){var J=X.length,Z=X.split(/(?:\r\n?|\n)/g);this._input=X+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-J),this.offset-=J;var H=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Z.length-1&&(this.yylineno-=Z.length-1);var q=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Z?(Z.length===H.length?this.yylloc.first_column:0)+H[H.length-Z.length].length-Z[0].length:this.yylloc.first_column-J},this.options.ranges&&(this.yylloc.range=[q[0],q[0]+this.yyleng-J]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(X){this.unput(this.match.slice(X))},"less"),pastInput:o(function(){var X=this.matched.substr(0,this.matched.length-this.match.length);return(X.length>20?"...":"")+X.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var X=this.match;return X.length<20&&(X+=this._input.substr(0,20-X.length)),(X.substr(0,20)+(X.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var X=this.pastInput(),J=new Array(X.length+1).join("-");return X+this.upcomingInput()+` +`+J+"^"},"showPosition"),test_match:o(function(X,J){var Z,H,q;if(this.options.backtrack_lexer&&(q={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(q.yylloc.range=this.yylloc.range.slice(0))),H=X[0].match(/(?:\r\n?|\n).*/g),H&&(this.yylineno+=H.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:H?H[H.length-1].length-H[H.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+X[0].length},this.yytext+=X[0],this.match+=X[0],this.matches=X,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(X[0].length),this.matched+=X[0],Z=this.performAction.call(this,this.yy,this,J,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Z)return Z;if(this._backtrack){for(var K in q)this[K]=q[K];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var X,J,Z,H;this._more||(this.yytext="",this.match="");for(var q=this._currentRules(),K=0;KJ[0].length)){if(J=Z,H=K,this.options.backtrack_lexer){if(X=this.test_match(Z,q[K]),X!==!1)return X;if(this._backtrack){J=!1;continue}else return!1}else if(!this.options.flex)break}return J?(X=this.test_match(J,q[H]),X!==!1?X:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var J=this.next();return J||this.lex()},"lex"),begin:o(function(J){this.conditionStack.push(J)},"begin"),popState:o(function(){var J=this.conditionStack.length-1;return J>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(J){return J=this.conditionStack.length-1-Math.abs(J||0),J>=0?this.conditionStack[J]:"INITIAL"},"topState"),pushState:o(function(J){this.begin(J)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:o(function(J,Z,H,q){var K=q;switch(H){case 0:return"title";case 1:return this.begin("acc_title"),9;break;case 2:return this.popState(),"acc_title_value";break;case 3:return this.begin("acc_descr"),11;break;case 4:return this.popState(),"acc_descr_value";break;case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:return 5;case 9:break;case 10:break;case 11:break;case 12:return 8;case 13:return 6;case 14:return 19;case 15:return 30;case 16:return 22;case 17:return 21;case 18:return 24;case 19:return 26;case 20:return 28;case 21:return 31;case 22:return 32;case 23:return 33;case 24:return 34;case 25:return 35;case 26:return 36;case 27:return 37;case 28:return 38;case 29:return 39;case 30:return 40;case 31:return 41;case 32:return 42;case 33:return 43;case 34:return 44;case 35:return 55;case 36:return 56;case 37:return 57;case 38:return 58;case 39:return 59;case 40:return 60;case 41:return 61;case 42:return 47;case 43:return 49;case 44:return 51;case 45:return 54;case 46:return 53;case 47:this.begin("string");break;case 48:this.popState();break;case 49:return"qString";case 50:return Z.yytext=Z.yytext.trim(),62;break}},"anonymous"),rules:[/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::)/i,/^(?:id\b)/i,/^(?:text\b)/i,/^(?:risk\b)/i,/^(?:verifyMethod\b)/i,/^(?:requirement\b)/i,/^(?:functionalRequirement\b)/i,/^(?:interfaceRequirement\b)/i,/^(?:performanceRequirement\b)/i,/^(?:physicalRequirement\b)/i,/^(?:designConstraint\b)/i,/^(?:low\b)/i,/^(?:medium\b)/i,/^(?:high\b)/i,/^(?:analysis\b)/i,/^(?:demonstration\b)/i,/^(?:inspection\b)/i,/^(?:test\b)/i,/^(?:element\b)/i,/^(?:contains\b)/i,/^(?:copies\b)/i,/^(?:derives\b)/i,/^(?:satisfies\b)/i,/^(?:verifies\b)/i,/^(?:refines\b)/i,/^(?:traces\b)/i,/^(?:type\b)/i,/^(?:docref\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^\r\n\{\<\>\-\=]*)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},unqString:{rules:[],inclusive:!1},token:{rules:[],inclusive:!1},string:{rules:[48,49],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,50],inclusive:!0}}};return at}();W.lexer=Q;function j(){this.yy={}}return o(j,"Parser"),j.prototype=W,W.Parser=j,new j}();fP.parser=fP;Eft=fP});var dP,Us,$x,bf,Gx,YVt,qVt,XVt,jVt,KVt,QVt,ZVt,JVt,tUt,eUt,rUt,nUt,iUt,aUt,sUt,oUt,lUt,Sft,Aft=R(()=>{"use strict";Ue();ce();Ci();dP=[],Us={},$x=new Map,bf={},Gx=new Map,YVt={REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"},qVt={LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"},XVt={VERIFY_ANALYSIS:"Analysis",VERIFY_DEMONSTRATION:"Demonstration",VERIFY_INSPECTION:"Inspection",VERIFY_TEST:"Test"},jVt={CONTAINS:"contains",COPIES:"copies",DERIVES:"derives",SATISFIES:"satisfies",VERIFIES:"verifies",REFINES:"refines",TRACES:"traces"},KVt=o((e,t)=>($x.has(e)||$x.set(e,{name:e,type:t,id:Us.id,text:Us.text,risk:Us.risk,verifyMethod:Us.verifyMethod}),Us={},$x.get(e)),"addRequirement"),QVt=o(()=>$x,"getRequirements"),ZVt=o(e=>{Us!==void 0&&(Us.id=e)},"setNewReqId"),JVt=o(e=>{Us!==void 0&&(Us.text=e)},"setNewReqText"),tUt=o(e=>{Us!==void 0&&(Us.risk=e)},"setNewReqRisk"),eUt=o(e=>{Us!==void 0&&(Us.verifyMethod=e)},"setNewReqVerifyMethod"),rUt=o(e=>(Gx.has(e)||(Gx.set(e,{name:e,type:bf.type,docRef:bf.docRef}),V.info("Added new requirement: ",e)),bf={},Gx.get(e)),"addElement"),nUt=o(()=>Gx,"getElements"),iUt=o(e=>{bf!==void 0&&(bf.type=e)},"setNewElementType"),aUt=o(e=>{bf!==void 0&&(bf.docRef=e)},"setNewElementDocRef"),sUt=o((e,t,r)=>{dP.push({type:e,src:t,dst:r})},"addRelationship"),oUt=o(()=>dP,"getRelationships"),lUt=o(()=>{dP=[],Us={},$x=new Map,bf={},Gx=new Map,Ar()},"clear"),Sft={RequirementType:YVt,RiskLevel:qVt,VerifyType:XVt,Relationships:jVt,getConfig:o(()=>pt().req,"getConfig"),addRequirement:KVt,getRequirements:QVt,setNewReqId:ZVt,setNewReqText:JVt,setNewReqRisk:tUt,setNewReqVerifyMethod:eUt,setAccTitle:Mr,getAccTitle:Br,setAccDescription:Fr,getAccDescription:zr,addElement:rUt,getElements:nUt,setNewElementType:iUt,setNewElementDocRef:aUt,addRelationship:sUt,getRelationships:oUt,clear:lUt}});var cUt,_ft,Lft=R(()=>{"use strict";cUt=o(e=>` marker { - fill: ${i.relationColor}; - stroke: ${i.relationColor}; + fill: ${e.relationColor}; + stroke: ${e.relationColor}; } marker.cross { - stroke: ${i.lineColor}; + stroke: ${e.lineColor}; } svg { - font-family: ${i.fontFamily}; - font-size: ${i.fontSize}; + font-family: ${e.fontFamily}; + font-size: ${e.fontSize}; } .reqBox { - fill: ${i.requirementBackground}; + fill: ${e.requirementBackground}; fill-opacity: 1.0; - stroke: ${i.requirementBorderColor}; - stroke-width: ${i.requirementBorderSize}; + stroke: ${e.requirementBorderColor}; + stroke-width: ${e.requirementBorderSize}; } .reqTitle, .reqLabel{ - fill: ${i.requirementTextColor}; + fill: ${e.requirementTextColor}; } .reqLabelBox { - fill: ${i.relationLabelBackground}; + fill: ${e.relationLabelBackground}; fill-opacity: 1.0; } .req-title-line { - stroke: ${i.requirementBorderColor}; - stroke-width: ${i.requirementBorderSize}; + stroke: ${e.requirementBorderColor}; + stroke-width: ${e.requirementBorderSize}; } .relationshipLine { - stroke: ${i.relationColor}; + stroke: ${e.relationColor}; stroke-width: 1; } .relationshipLabel { - fill: ${i.relationLabelColor}; + fill: ${e.relationLabelColor}; } -`,U0t={CONTAINS:"contains",ARROW:"arrow"},OBt={ReqMarkers:U0t,insertLineEndings:(i,a)=>{let f=i.append("defs").append("marker").attr("id",U0t.CONTAINS+"_line_ending").attr("refX",0).attr("refY",a.line_height/2).attr("markerWidth",a.line_height).attr("markerHeight",a.line_height).attr("orient","auto").append("g");f.append("circle").attr("cx",a.line_height/2).attr("cy",a.line_height/2).attr("r",a.line_height/2).attr("fill","none"),f.append("line").attr("x1",0).attr("x2",a.line_height).attr("y1",a.line_height/2).attr("y2",a.line_height/2).attr("stroke-width",1),f.append("line").attr("y1",0).attr("y2",a.line_height).attr("x1",a.line_height/2).attr("x2",a.line_height/2).attr("stroke-width",1),i.append("defs").append("marker").attr("id",U0t.ARROW+"_line_ending").attr("refX",a.line_height).attr("refY",.5*a.line_height).attr("markerWidth",a.line_height).attr("markerHeight",a.line_height).attr("orient","auto").append("path").attr("d",`M0,0 - L${a.line_height},${a.line_height/2} - M${a.line_height},${a.line_height/2} - L0,${a.line_height}`).attr("stroke-width",1)}};let Lh={},NBt=0;const PBt=(i,a)=>i.insert("rect","#"+a).attr("class","req reqBox").attr("x",0).attr("y",0).attr("width",Lh.rect_min_width+"px").attr("height",Lh.rect_min_height+"px"),FBt=(i,a,f)=>{let p=Lh.rect_min_width/2,v=i.append("text").attr("class","req reqLabel reqTitle").attr("id",a).attr("x",p).attr("y",Lh.rect_padding).attr("dominant-baseline","hanging"),m=0;f.forEach(D=>{m==0?v.append("tspan").attr("text-anchor","middle").attr("x",Lh.rect_min_width/2).attr("dy",0).text(D):v.append("tspan").attr("text-anchor","middle").attr("x",Lh.rect_min_width/2).attr("dy",Lh.line_height*.75).text(D),m++});let b=1.5*Lh.rect_padding,E=m*Lh.line_height*.75,C=b+E;return i.append("line").attr("class","req-title-line").attr("x1","0").attr("x2",Lh.rect_min_width).attr("y1",C).attr("y2",C),{titleNode:v,y:C}},BBt=(i,a,f,p)=>{let v=i.append("text").attr("class","req reqLabel").attr("id",a).attr("x",Lh.rect_padding).attr("y",p).attr("dominant-baseline","hanging"),m=0;const b=30;let E=[];return f.forEach(C=>{let D=C.length;for(;D>b&&m<3;){let P=C.substring(0,b);C=C.substring(b,C.length),D=C.length,E[E.length]=P,m++}if(m==3){let P=E[E.length-1];E[E.length-1]=P.substring(0,P.length-4)+"..."}else E[E.length]=C;m=0}),E.forEach(C=>{v.append("tspan").attr("x",Lh.rect_padding).attr("dy",Lh.line_height).text(C)}),v},Qze=(i,a,f,p)=>{const v=a.node().getTotalLength(),m=a.node().getPointAtLength(v*.5),b="rel"+NBt;NBt++;const C=i.append("text").attr("class","req relationshipLabel").attr("id",b).attr("x",m.x).attr("y",m.y).attr("text-anchor","middle").attr("dominant-baseline","middle").text(p).node().getBBox();i.insert("rect","#"+b).attr("class","req reqLabelBox").attr("x",m.x-C.width/2).attr("y",m.y-C.height/2).attr("width",C.width).attr("height",C.height).attr("fill","white").attr("fill-opacity","85%")},Zze=function(i,a,f,p,v){const m=f.edge(oL(a.src),oL(a.dst)),b=Y9().x(function(C){return C.x}).y(function(C){return C.y}),E=i.insert("path","#"+p).attr("class","er relationshipLine").attr("d",b(m.points)).attr("fill","none");a.type==v.db.Relationships.CONTAINS?E.attr("marker-start","url("+yi.getUrl(Lh.arrowMarkerAbsolute)+"#"+a.type+"_line_ending)"):(E.attr("stroke-dasharray","10,7"),E.attr("marker-end","url("+yi.getUrl(Lh.arrowMarkerAbsolute)+"#"+OBt.ReqMarkers.ARROW+"_line_ending)")),Qze(i,E,Lh,`<<${a.type}>>`)},Jze=(i,a,f)=>{Object.keys(i).forEach(p=>{let v=i[p];p=oL(p),zt.info("Added new requirement: ",p);const m=f.append("g").attr("id",p),b="req-"+p,E=PBt(m,b);let C=FBt(m,p+"_title",[`<<${v.type}>>`,`${v.name}`]);BBt(m,p+"_body",[`Id: ${v.id}`,`Text: ${v.text}`,`Risk: ${v.risk}`,`Verification: ${v.verifyMethod}`],C.y);const D=E.node().getBBox();a.setNode(p,{width:D.width,height:D.height,shape:"rect",id:p})})},tqe=(i,a,f)=>{Object.keys(i).forEach(p=>{let v=i[p];const m=oL(p),b=f.append("g").attr("id",m),E="element-"+m,C=PBt(b,E);let D=FBt(b,E+"_title",["<>",`${p}`]);BBt(b,E+"_body",[`Type: ${v.type||"Not Specified"}`,`Doc Ref: ${v.docRef||"None"}`],D.y);const P=C.node().getBBox();a.setNode(m,{width:P.width,height:P.height,shape:"rect",id:m})})},eqe=(i,a)=>(i.forEach(function(f){let p=oL(f.src),v=oL(f.dst);a.setEdge(p,v,{relationship:f})}),i),nqe=function(i,a){a.nodes().forEach(function(f){f!==void 0&&a.node(f)!==void 0&&(i.select("#"+f),i.select("#"+f).attr("transform","translate("+(a.node(f).x-a.node(f).width/2)+","+(a.node(f).y-a.node(f).height/2)+" )"))})},oL=i=>i.replace(/\s/g,"").replace(/\./g,"_"),rqe=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:Kze,db:Yze,renderer:{draw:(i,a,f,p)=>{Lh=Oe().requirement,p.db.clear(),p.parser.parse(i);const v=Lh.securityLevel;let m;v==="sandbox"&&(m=Mr("#i"+a));const E=Mr(v==="sandbox"?m.nodes()[0].contentDocument.body:"body").select(`[id='${a}']`);OBt.insertLineEndings(E,Lh);const C=new jf({multigraph:!1,compound:!1,directed:!0}).setGraph({rankdir:Lh.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}});let D=p.db.getRequirements(),P=p.db.getElements(),B=p.db.getRelationships();Jze(D,C,E),tqe(P,C,E),eqe(B,C),eL(C),nqe(E,C),B.forEach(function(it){Zze(E,it,C,a,p)});const j=Lh.rect_padding,R=E.node().getBBox(),H=R.width+j*2,Y=R.height+j*2;Wb(E,Y,H,Lh.useMaxWidth),E.attr("viewBox",`${R.x-j} ${R.y-j} ${H} ${Y}`)}},styles:Xze}},Symbol.toStringTag,{value:"Module"}));var W0t=function(){var i=function(Ee,ye,Vt,Ae){for(Vt=Vt||{},Ae=Ee.length;Ae--;Vt[Ee[Ae]]=ye);return Vt},a=[1,2],f=[1,3],p=[1,5],v=[1,7],m=[2,5],b=[1,15],E=[1,17],C=[1,19],D=[1,21],P=[1,22],B=[1,23],j=[1,29],R=[1,30],H=[1,31],Y=[1,32],it=[1,33],nt=[1,34],st=[1,35],pt=[1,36],Tt=[1,37],kt=[1,38],yt=[1,39],ht=[1,40],mt=[1,41],rt=[1,43],wt=[1,44],gt=[1,46],lt=[1,47],_t=[1,48],X=[1,49],Rt=[1,50],ft=[1,51],de=[1,54],J=[1,4,5,19,21,23,26,28,34,35,36,38,40,41,42,43,44,46,48,49,51,52,53,54,55,57,58,63,64,65,66,74,84],ae=[4,5,21,55,57],Wt=[4,5,19,21,23,26,28,34,35,36,38,40,41,42,43,44,46,48,49,51,55,57,58,63,64,65,66,74,84],It=[4,5,19,21,23,26,28,34,35,36,38,40,41,42,43,44,46,48,49,51,54,55,57,58,63,64,65,66,74,84],Nt=[4,5,19,21,23,26,28,34,35,36,38,40,41,42,43,44,46,48,49,51,53,55,57,58,63,64,65,66,74,84],me=[4,5,19,21,23,26,28,34,35,36,38,40,41,42,43,44,46,48,49,51,52,55,57,58,63,64,65,66,74,84],Ue=[72,73,74],_n=[1,128],_e=[1,4,5,7,19,21,23,26,28,34,35,36,38,40,41,42,43,44,46,48,49,51,52,53,54,55,57,58,63,64,65,66,74,84],rr={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,directive:6,SD:7,document:8,line:9,statement:10,box_section:11,box_line:12,participant_statement:13,openDirective:14,typeDirective:15,closeDirective:16,":":17,argDirective:18,box:19,restOfLine:20,end:21,signal:22,autonumber:23,NUM:24,off:25,activate:26,actor:27,deactivate:28,note_statement:29,links_statement:30,link_statement:31,properties_statement:32,details_statement:33,title:34,legacy_title:35,acc_title:36,acc_title_value:37,acc_descr:38,acc_descr_value:39,acc_descr_multiline_value:40,loop:41,rect:42,opt:43,alt:44,else_sections:45,par:46,par_sections:47,par_over:48,critical:49,option_sections:50,break:51,option:52,and:53,else:54,participant:55,AS:56,participant_actor:57,note:58,placement:59,text2:60,over:61,actor_pair:62,links:63,link:64,properties:65,details:66,spaceList:67,",":68,left_of:69,right_of:70,signaltype:71,"+":72,"-":73,ACTOR:74,SOLID_OPEN_ARROW:75,DOTTED_OPEN_ARROW:76,SOLID_ARROW:77,DOTTED_ARROW:78,SOLID_CROSS:79,DOTTED_CROSS:80,SOLID_POINT:81,DOTTED_POINT:82,TXT:83,open_directive:84,type_directive:85,arg_directive:86,close_directive:87,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",7:"SD",17:":",19:"box",20:"restOfLine",21:"end",23:"autonumber",24:"NUM",25:"off",26:"activate",28:"deactivate",34:"title",35:"legacy_title",36:"acc_title",37:"acc_title_value",38:"acc_descr",39:"acc_descr_value",40:"acc_descr_multiline_value",41:"loop",42:"rect",43:"opt",44:"alt",46:"par",48:"par_over",49:"critical",51:"break",52:"option",53:"and",54:"else",55:"participant",56:"AS",57:"participant_actor",58:"note",61:"over",63:"links",64:"link",65:"properties",66:"details",68:",",69:"left_of",70:"right_of",72:"+",73:"-",74:"ACTOR",75:"SOLID_OPEN_ARROW",76:"DOTTED_OPEN_ARROW",77:"SOLID_ARROW",78:"DOTTED_ARROW",79:"SOLID_CROSS",80:"DOTTED_CROSS",81:"SOLID_POINT",82:"DOTTED_POINT",83:"TXT",84:"open_directive",85:"type_directive",86:"arg_directive",87:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[9,1],[9,1],[11,0],[11,2],[12,2],[12,1],[12,1],[6,4],[6,6],[10,1],[10,4],[10,2],[10,4],[10,3],[10,3],[10,2],[10,3],[10,3],[10,2],[10,2],[10,2],[10,2],[10,2],[10,1],[10,1],[10,2],[10,2],[10,1],[10,4],[10,4],[10,4],[10,4],[10,4],[10,4],[10,4],[10,4],[10,1],[50,1],[50,4],[47,1],[47,4],[45,1],[45,4],[13,5],[13,3],[13,5],[13,3],[29,4],[29,4],[30,3],[31,3],[32,3],[33,3],[67,2],[67,1],[62,3],[62,1],[59,1],[59,1],[22,5],[22,5],[22,4],[27,1],[71,1],[71,1],[71,1],[71,1],[71,1],[71,1],[71,1],[71,1],[60,1],[14,1],[15,1],[18,1],[16,1]],performAction:function(ye,Vt,Ae,Gt,un,jt,Ke){var oe=jt.length-1;switch(un){case 4:return Gt.apply(jt[oe]),jt[oe];case 5:case 10:this.$=[];break;case 6:case 11:jt[oe-1].push(jt[oe]),this.$=jt[oe-1];break;case 7:case 8:case 12:case 13:this.$=jt[oe];break;case 9:case 14:this.$=[];break;case 18:jt[oe-1].unshift({type:"boxStart",boxData:Gt.parseBoxData(jt[oe-2])}),jt[oe-1].push({type:"boxEnd",boxText:jt[oe-2]}),this.$=jt[oe-1];break;case 20:this.$={type:"sequenceIndex",sequenceIndex:Number(jt[oe-2]),sequenceIndexStep:Number(jt[oe-1]),sequenceVisible:!0,signalType:Gt.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceIndex:Number(jt[oe-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:Gt.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:Gt.LINETYPE.AUTONUMBER};break;case 23:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:Gt.LINETYPE.AUTONUMBER};break;case 24:this.$={type:"activeStart",signalType:Gt.LINETYPE.ACTIVE_START,actor:jt[oe-1]};break;case 25:this.$={type:"activeEnd",signalType:Gt.LINETYPE.ACTIVE_END,actor:jt[oe-1]};break;case 31:Gt.setDiagramTitle(jt[oe].substring(6)),this.$=jt[oe].substring(6);break;case 32:Gt.setDiagramTitle(jt[oe].substring(7)),this.$=jt[oe].substring(7);break;case 33:this.$=jt[oe].trim(),Gt.setAccTitle(this.$);break;case 34:case 35:this.$=jt[oe].trim(),Gt.setAccDescription(this.$);break;case 36:jt[oe-1].unshift({type:"loopStart",loopText:Gt.parseMessage(jt[oe-2]),signalType:Gt.LINETYPE.LOOP_START}),jt[oe-1].push({type:"loopEnd",loopText:jt[oe-2],signalType:Gt.LINETYPE.LOOP_END}),this.$=jt[oe-1];break;case 37:jt[oe-1].unshift({type:"rectStart",color:Gt.parseMessage(jt[oe-2]),signalType:Gt.LINETYPE.RECT_START}),jt[oe-1].push({type:"rectEnd",color:Gt.parseMessage(jt[oe-2]),signalType:Gt.LINETYPE.RECT_END}),this.$=jt[oe-1];break;case 38:jt[oe-1].unshift({type:"optStart",optText:Gt.parseMessage(jt[oe-2]),signalType:Gt.LINETYPE.OPT_START}),jt[oe-1].push({type:"optEnd",optText:Gt.parseMessage(jt[oe-2]),signalType:Gt.LINETYPE.OPT_END}),this.$=jt[oe-1];break;case 39:jt[oe-1].unshift({type:"altStart",altText:Gt.parseMessage(jt[oe-2]),signalType:Gt.LINETYPE.ALT_START}),jt[oe-1].push({type:"altEnd",signalType:Gt.LINETYPE.ALT_END}),this.$=jt[oe-1];break;case 40:jt[oe-1].unshift({type:"parStart",parText:Gt.parseMessage(jt[oe-2]),signalType:Gt.LINETYPE.PAR_START}),jt[oe-1].push({type:"parEnd",signalType:Gt.LINETYPE.PAR_END}),this.$=jt[oe-1];break;case 41:jt[oe-1].unshift({type:"parStart",parText:Gt.parseMessage(jt[oe-2]),signalType:Gt.LINETYPE.PAR_OVER_START}),jt[oe-1].push({type:"parEnd",signalType:Gt.LINETYPE.PAR_END}),this.$=jt[oe-1];break;case 42:jt[oe-1].unshift({type:"criticalStart",criticalText:Gt.parseMessage(jt[oe-2]),signalType:Gt.LINETYPE.CRITICAL_START}),jt[oe-1].push({type:"criticalEnd",signalType:Gt.LINETYPE.CRITICAL_END}),this.$=jt[oe-1];break;case 43:jt[oe-1].unshift({type:"breakStart",breakText:Gt.parseMessage(jt[oe-2]),signalType:Gt.LINETYPE.BREAK_START}),jt[oe-1].push({type:"breakEnd",optText:Gt.parseMessage(jt[oe-2]),signalType:Gt.LINETYPE.BREAK_END}),this.$=jt[oe-1];break;case 46:this.$=jt[oe-3].concat([{type:"option",optionText:Gt.parseMessage(jt[oe-1]),signalType:Gt.LINETYPE.CRITICAL_OPTION},jt[oe]]);break;case 48:this.$=jt[oe-3].concat([{type:"and",parText:Gt.parseMessage(jt[oe-1]),signalType:Gt.LINETYPE.PAR_AND},jt[oe]]);break;case 50:this.$=jt[oe-3].concat([{type:"else",altText:Gt.parseMessage(jt[oe-1]),signalType:Gt.LINETYPE.ALT_ELSE},jt[oe]]);break;case 51:jt[oe-3].type="addParticipant",jt[oe-3].description=Gt.parseMessage(jt[oe-1]),this.$=jt[oe-3];break;case 52:jt[oe-1].type="addParticipant",this.$=jt[oe-1];break;case 53:jt[oe-3].type="addActor",jt[oe-3].description=Gt.parseMessage(jt[oe-1]),this.$=jt[oe-3];break;case 54:jt[oe-1].type="addActor",this.$=jt[oe-1];break;case 55:this.$=[jt[oe-1],{type:"addNote",placement:jt[oe-2],actor:jt[oe-1].actor,text:jt[oe]}];break;case 56:jt[oe-2]=[].concat(jt[oe-1],jt[oe-1]).slice(0,2),jt[oe-2][0]=jt[oe-2][0].actor,jt[oe-2][1]=jt[oe-2][1].actor,this.$=[jt[oe-1],{type:"addNote",placement:Gt.PLACEMENT.OVER,actor:jt[oe-2].slice(0,2),text:jt[oe]}];break;case 57:this.$=[jt[oe-1],{type:"addLinks",actor:jt[oe-1].actor,text:jt[oe]}];break;case 58:this.$=[jt[oe-1],{type:"addALink",actor:jt[oe-1].actor,text:jt[oe]}];break;case 59:this.$=[jt[oe-1],{type:"addProperties",actor:jt[oe-1].actor,text:jt[oe]}];break;case 60:this.$=[jt[oe-1],{type:"addDetails",actor:jt[oe-1].actor,text:jt[oe]}];break;case 63:this.$=[jt[oe-2],jt[oe]];break;case 64:this.$=jt[oe];break;case 65:this.$=Gt.PLACEMENT.LEFTOF;break;case 66:this.$=Gt.PLACEMENT.RIGHTOF;break;case 67:this.$=[jt[oe-4],jt[oe-1],{type:"addMessage",from:jt[oe-4].actor,to:jt[oe-1].actor,signalType:jt[oe-3],msg:jt[oe]},{type:"activeStart",signalType:Gt.LINETYPE.ACTIVE_START,actor:jt[oe-1]}];break;case 68:this.$=[jt[oe-4],jt[oe-1],{type:"addMessage",from:jt[oe-4].actor,to:jt[oe-1].actor,signalType:jt[oe-3],msg:jt[oe]},{type:"activeEnd",signalType:Gt.LINETYPE.ACTIVE_END,actor:jt[oe-4]}];break;case 69:this.$=[jt[oe-3],jt[oe-1],{type:"addMessage",from:jt[oe-3].actor,to:jt[oe-1].actor,signalType:jt[oe-2],msg:jt[oe]}];break;case 70:this.$={type:"addParticipant",actor:jt[oe]};break;case 71:this.$=Gt.LINETYPE.SOLID_OPEN;break;case 72:this.$=Gt.LINETYPE.DOTTED_OPEN;break;case 73:this.$=Gt.LINETYPE.SOLID;break;case 74:this.$=Gt.LINETYPE.DOTTED;break;case 75:this.$=Gt.LINETYPE.SOLID_CROSS;break;case 76:this.$=Gt.LINETYPE.DOTTED_CROSS;break;case 77:this.$=Gt.LINETYPE.SOLID_POINT;break;case 78:this.$=Gt.LINETYPE.DOTTED_POINT;break;case 79:this.$=Gt.parseMessage(jt[oe].trim().substring(1));break;case 80:Gt.parseDirective("%%{","open_directive");break;case 81:Gt.parseDirective(jt[oe],"type_directive");break;case 82:jt[oe]=jt[oe].trim().replace(/'/g,'"'),Gt.parseDirective(jt[oe],"arg_directive");break;case 83:Gt.parseDirective("}%%","close_directive","sequence");break}},table:[{3:1,4:a,5:f,6:4,7:p,14:6,84:v},{1:[3]},{3:8,4:a,5:f,6:4,7:p,14:6,84:v},{3:9,4:a,5:f,6:4,7:p,14:6,84:v},{3:10,4:a,5:f,6:4,7:p,14:6,84:v},i([1,4,5,19,23,26,28,34,35,36,38,40,41,42,43,44,46,48,49,51,55,57,58,63,64,65,66,74,84],m,{8:11}),{15:12,85:[1,13]},{85:[2,80]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:b,5:E,6:42,9:14,10:16,13:18,14:6,19:C,22:20,23:D,26:P,27:45,28:B,29:24,30:25,31:26,32:27,33:28,34:j,35:R,36:H,38:Y,40:it,41:nt,42:st,43:pt,44:Tt,46:kt,48:yt,49:ht,51:mt,55:rt,57:wt,58:gt,63:lt,64:_t,65:X,66:Rt,74:ft,84:v},{16:52,17:[1,53],87:de},i([17,87],[2,81]),i(J,[2,6]),{6:42,10:55,13:18,14:6,19:C,22:20,23:D,26:P,27:45,28:B,29:24,30:25,31:26,32:27,33:28,34:j,35:R,36:H,38:Y,40:it,41:nt,42:st,43:pt,44:Tt,46:kt,48:yt,49:ht,51:mt,55:rt,57:wt,58:gt,63:lt,64:_t,65:X,66:Rt,74:ft,84:v},i(J,[2,8]),i(J,[2,9]),i(J,[2,17]),{20:[1,56]},{5:[1,57]},{5:[1,60],24:[1,58],25:[1,59]},{27:61,74:ft},{27:62,74:ft},{5:[1,63]},{5:[1,64]},{5:[1,65]},{5:[1,66]},{5:[1,67]},i(J,[2,31]),i(J,[2,32]),{37:[1,68]},{39:[1,69]},i(J,[2,35]),{20:[1,70]},{20:[1,71]},{20:[1,72]},{20:[1,73]},{20:[1,74]},{20:[1,75]},{20:[1,76]},{20:[1,77]},i(J,[2,44]),{27:78,74:ft},{27:79,74:ft},{71:80,75:[1,81],76:[1,82],77:[1,83],78:[1,84],79:[1,85],80:[1,86],81:[1,87],82:[1,88]},{59:89,61:[1,90],69:[1,91],70:[1,92]},{27:93,74:ft},{27:94,74:ft},{27:95,74:ft},{27:96,74:ft},i([5,56,68,75,76,77,78,79,80,81,82,83],[2,70]),{5:[1,97]},{18:98,86:[1,99]},{5:[2,83]},i(J,[2,7]),i(ae,[2,10],{11:100}),i(J,[2,19]),{5:[1,102],24:[1,101]},{5:[1,103]},i(J,[2,23]),{5:[1,104]},{5:[1,105]},i(J,[2,26]),i(J,[2,27]),i(J,[2,28]),i(J,[2,29]),i(J,[2,30]),i(J,[2,33]),i(J,[2,34]),i(Wt,m,{8:106}),i(Wt,m,{8:107}),i(Wt,m,{8:108}),i(It,m,{45:109,8:110}),i(Nt,m,{47:111,8:112}),i(Nt,m,{8:112,47:113}),i(me,m,{50:114,8:115}),i(Wt,m,{8:116}),{5:[1,118],56:[1,117]},{5:[1,120],56:[1,119]},{27:123,72:[1,121],73:[1,122],74:ft},i(Ue,[2,71]),i(Ue,[2,72]),i(Ue,[2,73]),i(Ue,[2,74]),i(Ue,[2,75]),i(Ue,[2,76]),i(Ue,[2,77]),i(Ue,[2,78]),{27:124,74:ft},{27:126,62:125,74:ft},{74:[2,65]},{74:[2,66]},{60:127,83:_n},{60:129,83:_n},{60:130,83:_n},{60:131,83:_n},i(_e,[2,15]),{16:132,87:de},{87:[2,82]},{4:[1,135],5:[1,137],12:134,13:136,21:[1,133],55:rt,57:wt},{5:[1,138]},i(J,[2,21]),i(J,[2,22]),i(J,[2,24]),i(J,[2,25]),{4:b,5:E,6:42,9:14,10:16,13:18,14:6,19:C,21:[1,139],22:20,23:D,26:P,27:45,28:B,29:24,30:25,31:26,32:27,33:28,34:j,35:R,36:H,38:Y,40:it,41:nt,42:st,43:pt,44:Tt,46:kt,48:yt,49:ht,51:mt,55:rt,57:wt,58:gt,63:lt,64:_t,65:X,66:Rt,74:ft,84:v},{4:b,5:E,6:42,9:14,10:16,13:18,14:6,19:C,21:[1,140],22:20,23:D,26:P,27:45,28:B,29:24,30:25,31:26,32:27,33:28,34:j,35:R,36:H,38:Y,40:it,41:nt,42:st,43:pt,44:Tt,46:kt,48:yt,49:ht,51:mt,55:rt,57:wt,58:gt,63:lt,64:_t,65:X,66:Rt,74:ft,84:v},{4:b,5:E,6:42,9:14,10:16,13:18,14:6,19:C,21:[1,141],22:20,23:D,26:P,27:45,28:B,29:24,30:25,31:26,32:27,33:28,34:j,35:R,36:H,38:Y,40:it,41:nt,42:st,43:pt,44:Tt,46:kt,48:yt,49:ht,51:mt,55:rt,57:wt,58:gt,63:lt,64:_t,65:X,66:Rt,74:ft,84:v},{21:[1,142]},{4:b,5:E,6:42,9:14,10:16,13:18,14:6,19:C,21:[2,49],22:20,23:D,26:P,27:45,28:B,29:24,30:25,31:26,32:27,33:28,34:j,35:R,36:H,38:Y,40:it,41:nt,42:st,43:pt,44:Tt,46:kt,48:yt,49:ht,51:mt,54:[1,143],55:rt,57:wt,58:gt,63:lt,64:_t,65:X,66:Rt,74:ft,84:v},{21:[1,144]},{4:b,5:E,6:42,9:14,10:16,13:18,14:6,19:C,21:[2,47],22:20,23:D,26:P,27:45,28:B,29:24,30:25,31:26,32:27,33:28,34:j,35:R,36:H,38:Y,40:it,41:nt,42:st,43:pt,44:Tt,46:kt,48:yt,49:ht,51:mt,53:[1,145],55:rt,57:wt,58:gt,63:lt,64:_t,65:X,66:Rt,74:ft,84:v},{21:[1,146]},{21:[1,147]},{4:b,5:E,6:42,9:14,10:16,13:18,14:6,19:C,21:[2,45],22:20,23:D,26:P,27:45,28:B,29:24,30:25,31:26,32:27,33:28,34:j,35:R,36:H,38:Y,40:it,41:nt,42:st,43:pt,44:Tt,46:kt,48:yt,49:ht,51:mt,52:[1,148],55:rt,57:wt,58:gt,63:lt,64:_t,65:X,66:Rt,74:ft,84:v},{4:b,5:E,6:42,9:14,10:16,13:18,14:6,19:C,21:[1,149],22:20,23:D,26:P,27:45,28:B,29:24,30:25,31:26,32:27,33:28,34:j,35:R,36:H,38:Y,40:it,41:nt,42:st,43:pt,44:Tt,46:kt,48:yt,49:ht,51:mt,55:rt,57:wt,58:gt,63:lt,64:_t,65:X,66:Rt,74:ft,84:v},{20:[1,150]},i(J,[2,52]),{20:[1,151]},i(J,[2,54]),{27:152,74:ft},{27:153,74:ft},{60:154,83:_n},{60:155,83:_n},{60:156,83:_n},{68:[1,157],83:[2,64]},{5:[2,57]},{5:[2,79]},{5:[2,58]},{5:[2,59]},{5:[2,60]},{5:[1,158]},i(J,[2,18]),i(ae,[2,11]),{13:159,55:rt,57:wt},i(ae,[2,13]),i(ae,[2,14]),i(J,[2,20]),i(J,[2,36]),i(J,[2,37]),i(J,[2,38]),i(J,[2,39]),{20:[1,160]},i(J,[2,40]),{20:[1,161]},i(J,[2,41]),i(J,[2,42]),{20:[1,162]},i(J,[2,43]),{5:[1,163]},{5:[1,164]},{60:165,83:_n},{60:166,83:_n},{5:[2,69]},{5:[2,55]},{5:[2,56]},{27:167,74:ft},i(_e,[2,16]),i(ae,[2,12]),i(It,m,{8:110,45:168}),i(Nt,m,{8:112,47:169}),i(me,m,{8:115,50:170}),i(J,[2,51]),i(J,[2,53]),{5:[2,67]},{5:[2,68]},{83:[2,63]},{21:[2,50]},{21:[2,48]},{21:[2,46]}],defaultActions:{7:[2,80],8:[2,1],9:[2,2],10:[2,3],54:[2,83],91:[2,65],92:[2,66],99:[2,82],127:[2,57],128:[2,79],129:[2,58],130:[2,59],131:[2,60],154:[2,69],155:[2,55],156:[2,56],165:[2,67],166:[2,68],167:[2,63],168:[2,50],169:[2,48],170:[2,46]},parseError:function(ye,Vt){if(Vt.recoverable)this.trace(ye);else{var Ae=new Error(ye);throw Ae.hash=Vt,Ae}},parse:function(ye){var Vt=this,Ae=[0],Gt=[],un=[null],jt=[],Ke=this.table,oe="",Or=0,Le=0,Nr=2,fe=1,sr=jt.slice.call(arguments,1),Yn=Object.create(this.lexer),tr={yy:{}};for(var ur in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ur)&&(tr.yy[ur]=this.yy[ur]);Yn.setInput(ye,tr.yy),tr.yy.lexer=Yn,tr.yy.parser=this,typeof Yn.yylloc>"u"&&(Yn.yylloc={});var gn=Yn.yylloc;jt.push(gn);var En=Yn.options&&Yn.options.ranges;typeof tr.yy.parseError=="function"?this.parseError=tr.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Dr(){var xi;return xi=Gt.pop()||Yn.lex()||fe,typeof xi!="number"&&(xi instanceof Array&&(Gt=xi,xi=Gt.pop()),xi=Vt.symbols_[xi]||xi),xi}for(var hr,Ki,Is,Ha,hi={},qi,zn,Zn,Pr;;){if(Ki=Ae[Ae.length-1],this.defaultActions[Ki]?Is=this.defaultActions[Ki]:((hr===null||typeof hr>"u")&&(hr=Dr()),Is=Ke[Ki]&&Ke[Ki][hr]),typeof Is>"u"||!Is.length||!Is[0]){var On="";Pr=[];for(qi in Ke[Ki])this.terminals_[qi]&&qi>Nr&&Pr.push("'"+this.terminals_[qi]+"'");Yn.showPosition?On="Parse error on line "+(Or+1)+`: -`+Yn.showPosition()+` -Expecting `+Pr.join(", ")+", got '"+(this.terminals_[hr]||hr)+"'":On="Parse error on line "+(Or+1)+": Unexpected "+(hr==fe?"end of input":"'"+(this.terminals_[hr]||hr)+"'"),this.parseError(On,{text:Yn.match,token:this.terminals_[hr]||hr,line:Yn.yylineno,loc:gn,expected:Pr})}if(Is[0]instanceof Array&&Is.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ki+", token: "+hr);switch(Is[0]){case 1:Ae.push(hr),un.push(Yn.yytext),jt.push(Yn.yylloc),Ae.push(Is[1]),hr=null,Le=Yn.yyleng,oe=Yn.yytext,Or=Yn.yylineno,gn=Yn.yylloc;break;case 2:if(zn=this.productions_[Is[1]][1],hi.$=un[un.length-zn],hi._$={first_line:jt[jt.length-(zn||1)].first_line,last_line:jt[jt.length-1].last_line,first_column:jt[jt.length-(zn||1)].first_column,last_column:jt[jt.length-1].last_column},En&&(hi._$.range=[jt[jt.length-(zn||1)].range[0],jt[jt.length-1].range[1]]),Ha=this.performAction.apply(hi,[oe,Le,Or,tr.yy,Is[1],un,jt].concat(sr)),typeof Ha<"u")return Ha;zn&&(Ae=Ae.slice(0,-1*zn*2),un=un.slice(0,-1*zn),jt=jt.slice(0,-1*zn)),Ae.push(this.productions_[Is[1]][0]),un.push(hi.$),jt.push(hi._$),Zn=Ke[Ae[Ae.length-2]][Ae[Ae.length-1]],Ae.push(Zn);break;case 3:return!0}}return!0}},Te=function(){var Ee={EOF:1,parseError:function(Vt,Ae){if(this.yy.parser)this.yy.parser.parseError(Vt,Ae);else throw new Error(Vt)},setInput:function(ye,Vt){return this.yy=Vt||this.yy||{},this._input=ye,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var ye=this._input[0];this.yytext+=ye,this.yyleng++,this.offset++,this.match+=ye,this.matched+=ye;var Vt=ye.match(/(?:\r\n?|\n).*/g);return Vt?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),ye},unput:function(ye){var Vt=ye.length,Ae=ye.split(/(?:\r\n?|\n)/g);this._input=ye+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Vt),this.offset-=Vt;var Gt=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Ae.length-1&&(this.yylineno-=Ae.length-1);var un=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Ae?(Ae.length===Gt.length?this.yylloc.first_column:0)+Gt[Gt.length-Ae.length].length-Ae[0].length:this.yylloc.first_column-Vt},this.options.ranges&&(this.yylloc.range=[un[0],un[0]+this.yyleng-Vt]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). -`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(ye){this.unput(this.match.slice(ye))},pastInput:function(){var ye=this.matched.substr(0,this.matched.length-this.match.length);return(ye.length>20?"...":"")+ye.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var ye=this.match;return ye.length<20&&(ye+=this._input.substr(0,20-ye.length)),(ye.substr(0,20)+(ye.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var ye=this.pastInput(),Vt=new Array(ye.length+1).join("-");return ye+this.upcomingInput()+` -`+Vt+"^"},test_match:function(ye,Vt){var Ae,Gt,un;if(this.options.backtrack_lexer&&(un={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(un.yylloc.range=this.yylloc.range.slice(0))),Gt=ye[0].match(/(?:\r\n?|\n).*/g),Gt&&(this.yylineno+=Gt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Gt?Gt[Gt.length-1].length-Gt[Gt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+ye[0].length},this.yytext+=ye[0],this.match+=ye[0],this.matches=ye,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(ye[0].length),this.matched+=ye[0],Ae=this.performAction.call(this,this.yy,this,Vt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Ae)return Ae;if(this._backtrack){for(var jt in un)this[jt]=un[jt];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var ye,Vt,Ae,Gt;this._more||(this.yytext="",this.match="");for(var un=this._currentRules(),jt=0;jtVt[0].length)){if(Vt=Ae,Gt=jt,this.options.backtrack_lexer){if(ye=this.test_match(Ae,un[jt]),ye!==!1)return ye;if(this._backtrack){Vt=!1;continue}else return!1}else if(!this.options.flex)break}return Vt?(ye=this.test_match(Vt,un[Gt]),ye!==!1?ye:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var Vt=this.next();return Vt||this.lex()},begin:function(Vt){this.conditionStack.push(Vt)},popState:function(){var Vt=this.conditionStack.length-1;return Vt>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(Vt){return Vt=this.conditionStack.length-1-Math.abs(Vt||0),Vt>=0?this.conditionStack[Vt]:"INITIAL"},pushState:function(Vt){this.begin(Vt)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(Vt,Ae,Gt,un){switch(Gt){case 0:return this.begin("open_directive"),84;case 1:return this.begin("type_directive"),85;case 2:return this.popState(),this.begin("arg_directive"),17;case 3:return this.popState(),this.popState(),87;case 4:return 86;case 5:return 5;case 6:break;case 7:break;case 8:break;case 9:break;case 10:break;case 11:return 24;case 12:return this.begin("LINE"),19;case 13:return this.begin("ID"),55;case 14:return this.begin("ID"),57;case 15:return Ae.yytext=Ae.yytext.trim(),this.begin("ALIAS"),74;case 16:return this.popState(),this.popState(),this.begin("LINE"),56;case 17:return this.popState(),this.popState(),5;case 18:return this.begin("LINE"),41;case 19:return this.begin("LINE"),42;case 20:return this.begin("LINE"),43;case 21:return this.begin("LINE"),44;case 22:return this.begin("LINE"),54;case 23:return this.begin("LINE"),46;case 24:return this.begin("LINE"),48;case 25:return this.begin("LINE"),53;case 26:return this.begin("LINE"),49;case 27:return this.begin("LINE"),52;case 28:return this.begin("LINE"),51;case 29:return this.popState(),20;case 30:return 21;case 31:return 69;case 32:return 70;case 33:return 63;case 34:return 64;case 35:return 65;case 36:return 66;case 37:return 61;case 38:return 58;case 39:return this.begin("ID"),26;case 40:return this.begin("ID"),28;case 41:return 34;case 42:return 35;case 43:return this.begin("acc_title"),36;case 44:return this.popState(),"acc_title_value";case 45:return this.begin("acc_descr"),38;case 46:return this.popState(),"acc_descr_value";case 47:this.begin("acc_descr_multiline");break;case 48:this.popState();break;case 49:return"acc_descr_multiline_value";case 50:return 7;case 51:return 23;case 52:return 25;case 53:return 68;case 54:return 5;case 55:return Ae.yytext=Ae.yytext.trim(),74;case 56:return 77;case 57:return 78;case 58:return 75;case 59:return 76;case 60:return 79;case 61:return 80;case 62:return 81;case 63:return 82;case 64:return 83;case 65:return 72;case 66:return 73;case 67:return 5;case 68:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[0-9]+(?=[ \n]+))/i,/^(?:box\b)/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:[^\->:\n,;]+?([\-]*[^\->:\n,;]+?)*?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:par_over\b)/i,/^(?:and\b)/i,/^(?:critical\b)/i,/^(?:option\b)/i,/^(?:break\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:links\b)/i,/^(?:link\b)/i,/^(?:properties\b)/i,/^(?:details\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:title:\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:off\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\+\->:\n,;]+((?!(-x|--x|-\)|--\)))[\-]*[^\+\->:\n,;]+)*)/i,/^(?:->>)/i,/^(?:-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?:-[\)])/i,/^(?:--[\)])/i,/^(?::(?:(?:no)?wrap)?[^#\n;]+)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[48,49],inclusive:!1},acc_descr:{rules:[46],inclusive:!1},acc_title:{rules:[44],inclusive:!1},open_directive:{rules:[1,8],inclusive:!1},type_directive:{rules:[2,3,8],inclusive:!1},arg_directive:{rules:[3,4,8],inclusive:!1},ID:{rules:[7,8,15],inclusive:!1},ALIAS:{rules:[7,8,16,17],inclusive:!1},LINE:{rules:[7,8,29],inclusive:!1},INITIAL:{rules:[0,5,6,8,9,10,11,12,13,14,18,19,20,21,22,23,24,25,26,27,28,30,31,32,33,34,35,36,37,38,39,40,41,42,43,45,47,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68],inclusive:!0}}};return Ee}();rr.lexer=Te;function ne(){this.yy={}}return ne.prototype=rr,rr.Parser=ne,new ne}();W0t.parser=W0t;const iqe=W0t;let _P,hk={},cL=[],cm=[],yK=!1,K0t,I5;const sqe=function(i,a,f){d1.parseDirective(this,i,a,f)},aqe=function(i){cL.push({name:i.text,wrap:i.wrap===void 0&&vE()||!!i.wrap,fill:i.color,actorKeys:[]}),I5=cL.slice(-1)[0]},Y0t=function(i,a,f,p){let v=I5;const m=hk[i];if(m){if(I5&&m.box&&I5!==m.box)throw new Error("A same participant should only be defined in one Box: "+m.name+" can't be in '"+m.box.name+"' and in '"+I5.name+"' at the same time.");if(v=m.box?m.box:I5,m.box=v,m&&a===m.name&&f==null)return}(f==null||f.text==null)&&(f={text:a,wrap:null,type:p}),(p==null||f.text==null)&&(f={text:a,wrap:null,type:p}),hk[i]={box:v,name:a,description:f.text,wrap:f.wrap===void 0&&vE()||!!f.wrap,prevActor:_P,links:{},properties:{},actorCnt:null,rectData:null,type:p||"participant"},_P&&hk[_P]&&(hk[_P].nextActor=i),I5&&I5.actorKeys.push(i),_P=i},oqe=i=>{let a,f=0;for(a=0;a>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},m}return cm.push({from:i,to:a,message:f.text,wrap:f.wrap===void 0&&vE()||!!f.wrap,type:p}),!0},uqe=function(){return cL.length>0},lqe=function(){return cL.some(i=>i.name)},hqe=function(){return cm},fqe=function(){return cL},dqe=function(){return hk},CP=function(i){return hk[i]},gqe=function(){return Object.keys(hk)},pqe=function(){yK=!0},bqe=function(){yK=!1},vqe=()=>yK,wqe=function(i){K0t=i},vE=()=>K0t!==void 0?K0t:Oe().sequence.wrap,mqe=function(){hk={},cL=[],cm=[],yK=!1,cg()},yqe=function(i){const a=i.trim(),f={text:a.replace(/^:?(?:no)?wrap:/,"").trim(),wrap:a.match(/^:?wrap:/)!==null?!0:a.match(/^:?nowrap:/)!==null?!1:void 0};return zt.debug("parseMessage:",f),f},xqe=function(i){const a=i.match(/^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/);let f=a!=null&&a[1]?a[1].trim():"transparent",p=a!=null&&a[2]?a[2].trim():void 0;if(window&&window.CSS)window.CSS.supports("color",f)||(f="transparent",p=i.trim());else{const m=new Option().style;m.color=f,m.color!==f&&(f="transparent",p=i.trim())}return{color:f,text:p!==void 0?sg(p.replace(/^:?(?:no)?wrap:/,""),Oe()):void 0,wrap:p!==void 0?p.match(/^:?wrap:/)!==null?!0:p.match(/^:?nowrap:/)!==null?!1:void 0:void 0}},SP={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25,AUTONUMBER:26,CRITICAL_START:27,CRITICAL_OPTION:28,CRITICAL_END:29,BREAK_START:30,BREAK_END:31,PAR_OVER_START:32},kqe={FILLED:0,OPEN:1},Eqe={LEFTOF:0,RIGHTOF:1,OVER:2},RBt=function(i,a,f){f.text,f.wrap===void 0&&vE()||f.wrap;const p=[].concat(i,i);cm.push({from:p[0],to:p[1],message:f.text,wrap:f.wrap===void 0&&vE()||!!f.wrap,type:SP.NOTE,placement:a})},jBt=function(i,a){const f=CP(i);try{let p=sg(a.text,Oe());p=p.replace(/&/g,"&"),p=p.replace(/=/g,"=");const v=JSON.parse(p);X0t(f,v)}catch(p){zt.error("error while parsing actor link text",p)}},Tqe=function(i,a){const f=CP(i);try{const b={};let E=sg(a.text,Oe());var p=E.indexOf("@");E=E.replace(/&/g,"&"),E=E.replace(/=/g,"=");var v=E.slice(0,p-1).trim(),m=E.slice(p+1).trim();b[v]=m,X0t(f,b)}catch(b){zt.error("error while parsing actor link text",b)}};function X0t(i,a){if(i.links==null)i.links=a;else for(let f in a)i.links[f]=a[f]}const $Bt=function(i,a){const f=CP(i);try{let p=sg(a.text,Oe());const v=JSON.parse(p);zBt(f,v)}catch(p){zt.error("error while parsing actor properties text",p)}};function zBt(i,a){if(i.properties==null)i.properties=a;else for(let f in a)i.properties[f]=a[f]}function _qe(){I5=void 0}const qBt=function(i,a){const f=CP(i),p=document.getElementById(a.text);try{const v=p.innerHTML,m=JSON.parse(v);m.properties&&zBt(f,m.properties),m.links&&X0t(f,m.links)}catch(v){zt.error("error while parsing actor details text",v)}},Cqe=function(i,a){if(i!==void 0&&i.properties!==void 0)return i.properties[a]},HBt=function(i){if(Array.isArray(i))i.forEach(function(a){HBt(a)});else switch(i.type){case"sequenceIndex":cm.push({from:void 0,to:void 0,message:{start:i.sequenceIndex,step:i.sequenceIndexStep,visible:i.sequenceVisible},wrap:!1,type:i.signalType});break;case"addParticipant":Y0t(i.actor,i.actor,i.description,"participant");break;case"addActor":Y0t(i.actor,i.actor,i.description,"actor");break;case"activeStart":of(i.actor,void 0,void 0,i.signalType);break;case"activeEnd":of(i.actor,void 0,void 0,i.signalType);break;case"addNote":RBt(i.actor,i.placement,i.text);break;case"addLinks":jBt(i.actor,i.text);break;case"addALink":Tqe(i.actor,i.text);break;case"addProperties":$Bt(i.actor,i.text);break;case"addDetails":qBt(i.actor,i.text);break;case"addMessage":of(i.from,i.to,i.msg,i.signalType);break;case"boxStart":aqe(i.boxData);break;case"boxEnd":_qe();break;case"loopStart":of(void 0,void 0,i.loopText,i.signalType);break;case"loopEnd":of(void 0,void 0,void 0,i.signalType);break;case"rectStart":of(void 0,void 0,i.color,i.signalType);break;case"rectEnd":of(void 0,void 0,void 0,i.signalType);break;case"optStart":of(void 0,void 0,i.optText,i.signalType);break;case"optEnd":of(void 0,void 0,void 0,i.signalType);break;case"altStart":of(void 0,void 0,i.altText,i.signalType);break;case"else":of(void 0,void 0,i.altText,i.signalType);break;case"altEnd":of(void 0,void 0,void 0,i.signalType);break;case"setAccTitle":ug(i.text);break;case"parStart":of(void 0,void 0,i.parText,i.signalType);break;case"and":of(void 0,void 0,i.parText,i.signalType);break;case"parEnd":of(void 0,void 0,void 0,i.signalType);break;case"criticalStart":of(void 0,void 0,i.criticalText,i.signalType);break;case"option":of(void 0,void 0,i.optionText,i.signalType);break;case"criticalEnd":of(void 0,void 0,void 0,i.signalType);break;case"breakStart":of(void 0,void 0,i.breakText,i.signalType);break;case"breakEnd":of(void 0,void 0,void 0,i.signalType);break}},Sqe={addActor:Y0t,addMessage:cqe,addSignal:of,addLinks:jBt,addDetails:qBt,addProperties:$Bt,autoWrap:vE,setWrap:wqe,enableSequenceNumbers:pqe,disableSequenceNumbers:bqe,showSequenceNumbers:vqe,getMessages:hqe,getActors:dqe,getActor:CP,getActorKeys:gqe,getActorProperty:Cqe,getAccTitle:op,getBoxes:fqe,getDiagramTitle:O2,setDiagramTitle:Kb,parseDirective:sqe,getConfig:()=>Oe().sequence,clear:mqe,parseMessage:yqe,parseBoxData:xqe,LINETYPE:SP,ARROWTYPE:kqe,PLACEMENT:Eqe,addNote:RBt,setAccTitle:ug,apply:HBt,setAccDescription:cp,getAccDescription:up,hasAtLeastOneBox:uqe,hasAtLeastOneBoxWithTitle:lqe},Aqe=i=>`.actor { - stroke: ${i.actorBorder}; - fill: ${i.actorBkg}; +`,"getStyles"),_ft=cUt});var pP,uUt,mP,Dft=R(()=>{"use strict";pP={CONTAINS:"contains",ARROW:"arrow"},uUt=o((e,t)=>{let r=e.append("defs").append("marker").attr("id",pP.CONTAINS+"_line_ending").attr("refX",0).attr("refY",t.line_height/2).attr("markerWidth",t.line_height).attr("markerHeight",t.line_height).attr("orient","auto").append("g");r.append("circle").attr("cx",t.line_height/2).attr("cy",t.line_height/2).attr("r",t.line_height/2).attr("fill","none"),r.append("line").attr("x1",0).attr("x2",t.line_height).attr("y1",t.line_height/2).attr("y2",t.line_height/2).attr("stroke-width",1),r.append("line").attr("y1",0).attr("y2",t.line_height).attr("x1",t.line_height/2).attr("x2",t.line_height/2).attr("stroke-width",1),e.append("defs").append("marker").attr("id",pP.ARROW+"_line_ending").attr("refX",t.line_height).attr("refY",.5*t.line_height).attr("markerWidth",t.line_height).attr("markerHeight",t.line_height).attr("orient","auto").append("path").attr("d",`M0,0 + L${t.line_height},${t.line_height/2} + M${t.line_height},${t.line_height/2} + L0,${t.line_height}`).attr("stroke-width",1)},"insertLineEndings"),mP={ReqMarkers:pP,insertLineEndings:uUt}});var ui,Rft,Nft,Mft,Ift,hUt,fUt,dUt,pUt,mUt,gUt,Kg,yUt,Oft,Pft=R(()=>{"use strict";ur();Xd();wa();Ue();ce();Jn();hr();Dft();ui={},Rft=0,Nft=o((e,t)=>e.insert("rect","#"+t).attr("class","req reqBox").attr("x",0).attr("y",0).attr("width",ui.rect_min_width+"px").attr("height",ui.rect_min_height+"px"),"newRectNode"),Mft=o((e,t,r)=>{let n=ui.rect_min_width/2,i=e.append("text").attr("class","req reqLabel reqTitle").attr("id",t).attr("x",n).attr("y",ui.rect_padding).attr("dominant-baseline","hanging"),a=0;r.forEach(h=>{a==0?i.append("tspan").attr("text-anchor","middle").attr("x",ui.rect_min_width/2).attr("dy",0).text(h):i.append("tspan").attr("text-anchor","middle").attr("x",ui.rect_min_width/2).attr("dy",ui.line_height*.75).text(h),a++});let s=1.5*ui.rect_padding,l=a*ui.line_height*.75,u=s+l;return e.append("line").attr("class","req-title-line").attr("x1","0").attr("x2",ui.rect_min_width).attr("y1",u).attr("y2",u),{titleNode:i,y:u}},"newTitleNode"),Ift=o((e,t,r,n)=>{let i=e.append("text").attr("class","req reqLabel").attr("id",t).attr("x",ui.rect_padding).attr("y",n).attr("dominant-baseline","hanging"),a=0,s=30,l=[];return r.forEach(u=>{let h=u.length;for(;h>s&&a<3;){let f=u.substring(0,s);u=u.substring(s,u.length),h=u.length,l[l.length]=f,a++}if(a==3){let f=l[l.length-1];l[l.length-1]=f.substring(0,f.length-4)+"..."}else l[l.length]=u;a=0}),l.forEach(u=>{i.append("tspan").attr("x",ui.rect_padding).attr("dy",ui.line_height).text(u)}),i},"newBodyNode"),hUt=o((e,t,r,n)=>{let i=t.node().getTotalLength(),a=t.node().getPointAtLength(i*.5),s="rel"+Rft;Rft++;let u=e.append("text").attr("class","req relationshipLabel").attr("id",s).attr("x",a.x).attr("y",a.y).attr("text-anchor","middle").attr("dominant-baseline","middle").text(n).node().getBBox();e.insert("rect","#"+s).attr("class","req reqLabelBox").attr("x",a.x-u.width/2).attr("y",a.y-u.height/2).attr("width",u.width).attr("height",u.height).attr("fill","white").attr("fill-opacity","85%")},"addEdgeLabel"),fUt=o(function(e,t,r,n,i){let a=r.edge(Kg(t.src),Kg(t.dst)),s=ma().x(function(u){return u.x}).y(function(u){return u.y}),l=e.insert("path","#"+n).attr("class","er relationshipLine").attr("d",s(a.points)).attr("fill","none");t.type==i.db.Relationships.CONTAINS?l.attr("marker-start","url("+Yt.getUrl(ui.arrowMarkerAbsolute)+"#"+t.type+"_line_ending)"):(l.attr("stroke-dasharray","10,7"),l.attr("marker-end","url("+Yt.getUrl(ui.arrowMarkerAbsolute)+"#"+mP.ReqMarkers.ARROW+"_line_ending)")),hUt(e,l,ui,`<<${t.type}>>`)},"drawRelationshipFromLayout"),dUt=o((e,t,r)=>{e.forEach((n,i)=>{i=Kg(i),V.info("Added new requirement: ",i);let a=r.append("g").attr("id",i),s="req-"+i,l=Nft(a,s),u=[],h=Mft(a,i+"_title",[`<<${n.type}>>`,`${n.name}`]);u.push(h.titleNode);let f=Ift(a,i+"_body",[`Id: ${n.id}`,`Text: ${n.text}`,`Risk: ${n.risk}`,`Verification: ${n.verifyMethod}`],h.y);u.push(f);let d=l.node().getBBox();t.setNode(i,{width:d.width,height:d.height,shape:"rect",id:i})})},"drawReqs"),pUt=o((e,t,r)=>{e.forEach((n,i)=>{let a=Kg(i),s=r.append("g").attr("id",a),l="element-"+a,u=Nft(s,l),h=[],f=Mft(s,l+"_title",["<>",`${i}`]);h.push(f.titleNode);let d=Ift(s,l+"_body",[`Type: ${n.type||"Not Specified"}`,`Doc Ref: ${n.docRef||"None"}`],f.y);h.push(d);let p=u.node().getBBox();t.setNode(a,{width:p.width,height:p.height,shape:"rect",id:a})})},"drawElements"),mUt=o((e,t)=>(e.forEach(function(r){let n=Kg(r.src),i=Kg(r.dst);t.setEdge(n,i,{relationship:r})}),e),"addRelationships"),gUt=o(function(e,t){t.nodes().forEach(function(r){r!==void 0&&t.node(r)!==void 0&&(e.select("#"+r),e.select("#"+r).attr("transform","translate("+(t.node(r).x-t.node(r).width/2)+","+(t.node(r).y-t.node(r).height/2)+" )"))})},"adjustEntities"),Kg=o(e=>e.replace(/\s/g,"").replace(/\./g,"_"),"elementString"),yUt=o((e,t,r,n)=>{ui=pt().requirement;let i=ui.securityLevel,a;i==="sandbox"&&(a=Gt("#i"+t));let l=(i==="sandbox"?Gt(a.nodes()[0].contentDocument.body):Gt("body")).select(`[id='${t}']`);mP.insertLineEndings(l,ui);let u=new yr({multigraph:!1,compound:!1,directed:!0}).setGraph({rankdir:ui.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}}),h=n.db.getRequirements(),f=n.db.getElements(),d=n.db.getRelationships();dUt(h,u,l),pUt(f,u,l),mUt(d,u),co(u),gUt(l,u),d.forEach(function(v){fUt(l,v,u,t,n)});let p=ui.rect_padding,m=l.node().getBBox(),g=m.width+p*2,y=m.height+p*2;Pr(l,y,g,ui.useMaxWidth),l.attr("viewBox",`${m.x-p} ${m.y-p} ${g} ${y}`)},"draw"),Oft={draw:yUt}});var Bft={};xr(Bft,{diagram:()=>vUt});var vUt,Fft=R(()=>{"use strict";Cft();Aft();Lft();Pft();vUt={parser:Eft,db:Sft,renderer:Oft,styles:_ft}});var gP,Gft,Vft=R(()=>{"use strict";gP=function(){var e=o(function(H,q,K,ot){for(K=K||{},ot=H.length;ot--;K[H[ot]]=q);return K},"o"),t=[1,2],r=[1,3],n=[1,4],i=[2,4],a=[1,9],s=[1,11],l=[1,13],u=[1,14],h=[1,16],f=[1,17],d=[1,18],p=[1,24],m=[1,25],g=[1,26],y=[1,27],v=[1,28],x=[1,29],b=[1,30],w=[1,31],S=[1,32],T=[1,33],E=[1,34],_=[1,35],A=[1,36],L=[1,37],M=[1,38],N=[1,39],k=[1,41],I=[1,42],C=[1,43],O=[1,44],D=[1,45],P=[1,46],F=[1,4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,48,49,50,52,53,54,59,60,61,62,70],B=[4,5,16,50,52,53],G=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],z=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,49,50,52,53,54,59,60,61,62,70],W=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,48,50,52,53,54,59,60,61,62,70],Q=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,50,52,53,54,59,60,61,62,70],j=[68,69,70],at=[1,122],X={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,box_section:10,box_line:11,participant_statement:12,create:13,box:14,restOfLine:15,end:16,signal:17,autonumber:18,NUM:19,off:20,activate:21,actor:22,deactivate:23,note_statement:24,links_statement:25,link_statement:26,properties_statement:27,details_statement:28,title:29,legacy_title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,loop:36,rect:37,opt:38,alt:39,else_sections:40,par:41,par_sections:42,par_over:43,critical:44,option_sections:45,break:46,option:47,and:48,else:49,participant:50,AS:51,participant_actor:52,destroy:53,note:54,placement:55,text2:56,over:57,actor_pair:58,links:59,link:60,properties:61,details:62,spaceList:63,",":64,left_of:65,right_of:66,signaltype:67,"+":68,"-":69,ACTOR:70,SOLID_OPEN_ARROW:71,DOTTED_OPEN_ARROW:72,SOLID_ARROW:73,BIDIRECTIONAL_SOLID_ARROW:74,DOTTED_ARROW:75,BIDIRECTIONAL_DOTTED_ARROW:76,SOLID_CROSS:77,DOTTED_CROSS:78,SOLID_POINT:79,DOTTED_POINT:80,TXT:81,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",13:"create",14:"box",15:"restOfLine",16:"end",18:"autonumber",19:"NUM",20:"off",21:"activate",23:"deactivate",29:"title",30:"legacy_title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"loop",37:"rect",38:"opt",39:"alt",41:"par",43:"par_over",44:"critical",46:"break",47:"option",48:"and",49:"else",50:"participant",51:"AS",52:"participant_actor",53:"destroy",54:"note",57:"over",59:"links",60:"link",61:"properties",62:"details",64:",",65:"left_of",66:"right_of",68:"+",69:"-",70:"ACTOR",71:"SOLID_OPEN_ARROW",72:"DOTTED_OPEN_ARROW",73:"SOLID_ARROW",74:"BIDIRECTIONAL_SOLID_ARROW",75:"DOTTED_ARROW",76:"BIDIRECTIONAL_DOTTED_ARROW",77:"SOLID_CROSS",78:"DOTTED_CROSS",79:"SOLID_POINT",80:"DOTTED_POINT",81:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[10,0],[10,2],[11,2],[11,1],[11,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[45,1],[45,4],[42,1],[42,4],[40,1],[40,4],[12,5],[12,3],[12,5],[12,3],[12,3],[24,4],[24,4],[25,3],[26,3],[27,3],[28,3],[63,2],[63,1],[58,3],[58,1],[55,1],[55,1],[17,5],[17,5],[17,4],[22,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[56,1]],performAction:o(function(q,K,ot,ct,ut,et,Mt){var it=et.length-1;switch(ut){case 3:return ct.apply(et[it]),et[it];break;case 4:case 9:this.$=[];break;case 5:case 10:et[it-1].push(et[it]),this.$=et[it-1];break;case 6:case 7:case 11:case 12:this.$=et[it];break;case 8:case 13:this.$=[];break;case 15:et[it].type="createParticipant",this.$=et[it];break;case 16:et[it-1].unshift({type:"boxStart",boxData:ct.parseBoxData(et[it-2])}),et[it-1].push({type:"boxEnd",boxText:et[it-2]}),this.$=et[it-1];break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(et[it-2]),sequenceIndexStep:Number(et[it-1]),sequenceVisible:!0,signalType:ct.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(et[it-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:ct.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:ct.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:ct.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"activeStart",signalType:ct.LINETYPE.ACTIVE_START,actor:et[it-1].actor};break;case 23:this.$={type:"activeEnd",signalType:ct.LINETYPE.ACTIVE_END,actor:et[it-1].actor};break;case 29:ct.setDiagramTitle(et[it].substring(6)),this.$=et[it].substring(6);break;case 30:ct.setDiagramTitle(et[it].substring(7)),this.$=et[it].substring(7);break;case 31:this.$=et[it].trim(),ct.setAccTitle(this.$);break;case 32:case 33:this.$=et[it].trim(),ct.setAccDescription(this.$);break;case 34:et[it-1].unshift({type:"loopStart",loopText:ct.parseMessage(et[it-2]),signalType:ct.LINETYPE.LOOP_START}),et[it-1].push({type:"loopEnd",loopText:et[it-2],signalType:ct.LINETYPE.LOOP_END}),this.$=et[it-1];break;case 35:et[it-1].unshift({type:"rectStart",color:ct.parseMessage(et[it-2]),signalType:ct.LINETYPE.RECT_START}),et[it-1].push({type:"rectEnd",color:ct.parseMessage(et[it-2]),signalType:ct.LINETYPE.RECT_END}),this.$=et[it-1];break;case 36:et[it-1].unshift({type:"optStart",optText:ct.parseMessage(et[it-2]),signalType:ct.LINETYPE.OPT_START}),et[it-1].push({type:"optEnd",optText:ct.parseMessage(et[it-2]),signalType:ct.LINETYPE.OPT_END}),this.$=et[it-1];break;case 37:et[it-1].unshift({type:"altStart",altText:ct.parseMessage(et[it-2]),signalType:ct.LINETYPE.ALT_START}),et[it-1].push({type:"altEnd",signalType:ct.LINETYPE.ALT_END}),this.$=et[it-1];break;case 38:et[it-1].unshift({type:"parStart",parText:ct.parseMessage(et[it-2]),signalType:ct.LINETYPE.PAR_START}),et[it-1].push({type:"parEnd",signalType:ct.LINETYPE.PAR_END}),this.$=et[it-1];break;case 39:et[it-1].unshift({type:"parStart",parText:ct.parseMessage(et[it-2]),signalType:ct.LINETYPE.PAR_OVER_START}),et[it-1].push({type:"parEnd",signalType:ct.LINETYPE.PAR_END}),this.$=et[it-1];break;case 40:et[it-1].unshift({type:"criticalStart",criticalText:ct.parseMessage(et[it-2]),signalType:ct.LINETYPE.CRITICAL_START}),et[it-1].push({type:"criticalEnd",signalType:ct.LINETYPE.CRITICAL_END}),this.$=et[it-1];break;case 41:et[it-1].unshift({type:"breakStart",breakText:ct.parseMessage(et[it-2]),signalType:ct.LINETYPE.BREAK_START}),et[it-1].push({type:"breakEnd",optText:ct.parseMessage(et[it-2]),signalType:ct.LINETYPE.BREAK_END}),this.$=et[it-1];break;case 43:this.$=et[it-3].concat([{type:"option",optionText:ct.parseMessage(et[it-1]),signalType:ct.LINETYPE.CRITICAL_OPTION},et[it]]);break;case 45:this.$=et[it-3].concat([{type:"and",parText:ct.parseMessage(et[it-1]),signalType:ct.LINETYPE.PAR_AND},et[it]]);break;case 47:this.$=et[it-3].concat([{type:"else",altText:ct.parseMessage(et[it-1]),signalType:ct.LINETYPE.ALT_ELSE},et[it]]);break;case 48:et[it-3].draw="participant",et[it-3].type="addParticipant",et[it-3].description=ct.parseMessage(et[it-1]),this.$=et[it-3];break;case 49:et[it-1].draw="participant",et[it-1].type="addParticipant",this.$=et[it-1];break;case 50:et[it-3].draw="actor",et[it-3].type="addParticipant",et[it-3].description=ct.parseMessage(et[it-1]),this.$=et[it-3];break;case 51:et[it-1].draw="actor",et[it-1].type="addParticipant",this.$=et[it-1];break;case 52:et[it-1].type="destroyParticipant",this.$=et[it-1];break;case 53:this.$=[et[it-1],{type:"addNote",placement:et[it-2],actor:et[it-1].actor,text:et[it]}];break;case 54:et[it-2]=[].concat(et[it-1],et[it-1]).slice(0,2),et[it-2][0]=et[it-2][0].actor,et[it-2][1]=et[it-2][1].actor,this.$=[et[it-1],{type:"addNote",placement:ct.PLACEMENT.OVER,actor:et[it-2].slice(0,2),text:et[it]}];break;case 55:this.$=[et[it-1],{type:"addLinks",actor:et[it-1].actor,text:et[it]}];break;case 56:this.$=[et[it-1],{type:"addALink",actor:et[it-1].actor,text:et[it]}];break;case 57:this.$=[et[it-1],{type:"addProperties",actor:et[it-1].actor,text:et[it]}];break;case 58:this.$=[et[it-1],{type:"addDetails",actor:et[it-1].actor,text:et[it]}];break;case 61:this.$=[et[it-2],et[it]];break;case 62:this.$=et[it];break;case 63:this.$=ct.PLACEMENT.LEFTOF;break;case 64:this.$=ct.PLACEMENT.RIGHTOF;break;case 65:this.$=[et[it-4],et[it-1],{type:"addMessage",from:et[it-4].actor,to:et[it-1].actor,signalType:et[it-3],msg:et[it],activate:!0},{type:"activeStart",signalType:ct.LINETYPE.ACTIVE_START,actor:et[it-1].actor}];break;case 66:this.$=[et[it-4],et[it-1],{type:"addMessage",from:et[it-4].actor,to:et[it-1].actor,signalType:et[it-3],msg:et[it]},{type:"activeEnd",signalType:ct.LINETYPE.ACTIVE_END,actor:et[it-4].actor}];break;case 67:this.$=[et[it-3],et[it-1],{type:"addMessage",from:et[it-3].actor,to:et[it-1].actor,signalType:et[it-2],msg:et[it]}];break;case 68:this.$={type:"addParticipant",actor:et[it]};break;case 69:this.$=ct.LINETYPE.SOLID_OPEN;break;case 70:this.$=ct.LINETYPE.DOTTED_OPEN;break;case 71:this.$=ct.LINETYPE.SOLID;break;case 72:this.$=ct.LINETYPE.BIDIRECTIONAL_SOLID;break;case 73:this.$=ct.LINETYPE.DOTTED;break;case 74:this.$=ct.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 75:this.$=ct.LINETYPE.SOLID_CROSS;break;case 76:this.$=ct.LINETYPE.DOTTED_CROSS;break;case 77:this.$=ct.LINETYPE.SOLID_POINT;break;case 78:this.$=ct.LINETYPE.DOTTED_POINT;break;case 79:this.$=ct.parseMessage(et[it].trim().substring(1));break}},"anonymous"),table:[{3:1,4:t,5:r,6:n},{1:[3]},{3:5,4:t,5:r,6:n},{3:6,4:t,5:r,6:n},e([1,4,5,13,14,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:a,5:s,8:8,9:10,12:12,13:l,14:u,17:15,18:h,21:f,22:40,23:d,24:19,25:20,26:21,27:22,28:23,29:p,30:m,31:g,33:y,35:v,36:x,37:b,38:w,39:S,41:T,43:E,44:_,46:A,50:L,52:M,53:N,54:k,59:I,60:C,61:O,62:D,70:P},e(F,[2,5]),{9:47,12:12,13:l,14:u,17:15,18:h,21:f,22:40,23:d,24:19,25:20,26:21,27:22,28:23,29:p,30:m,31:g,33:y,35:v,36:x,37:b,38:w,39:S,41:T,43:E,44:_,46:A,50:L,52:M,53:N,54:k,59:I,60:C,61:O,62:D,70:P},e(F,[2,7]),e(F,[2,8]),e(F,[2,14]),{12:48,50:L,52:M,53:N},{15:[1,49]},{5:[1,50]},{5:[1,53],19:[1,51],20:[1,52]},{22:54,70:P},{22:55,70:P},{5:[1,56]},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},e(F,[2,29]),e(F,[2,30]),{32:[1,61]},{34:[1,62]},e(F,[2,33]),{15:[1,63]},{15:[1,64]},{15:[1,65]},{15:[1,66]},{15:[1,67]},{15:[1,68]},{15:[1,69]},{15:[1,70]},{22:71,70:P},{22:72,70:P},{22:73,70:P},{67:74,71:[1,75],72:[1,76],73:[1,77],74:[1,78],75:[1,79],76:[1,80],77:[1,81],78:[1,82],79:[1,83],80:[1,84]},{55:85,57:[1,86],65:[1,87],66:[1,88]},{22:89,70:P},{22:90,70:P},{22:91,70:P},{22:92,70:P},e([5,51,64,71,72,73,74,75,76,77,78,79,80,81],[2,68]),e(F,[2,6]),e(F,[2,15]),e(B,[2,9],{10:93}),e(F,[2,17]),{5:[1,95],19:[1,94]},{5:[1,96]},e(F,[2,21]),{5:[1,97]},{5:[1,98]},e(F,[2,24]),e(F,[2,25]),e(F,[2,26]),e(F,[2,27]),e(F,[2,28]),e(F,[2,31]),e(F,[2,32]),e(G,i,{7:99}),e(G,i,{7:100}),e(G,i,{7:101}),e(z,i,{40:102,7:103}),e(W,i,{42:104,7:105}),e(W,i,{7:105,42:106}),e(Q,i,{45:107,7:108}),e(G,i,{7:109}),{5:[1,111],51:[1,110]},{5:[1,113],51:[1,112]},{5:[1,114]},{22:117,68:[1,115],69:[1,116],70:P},e(j,[2,69]),e(j,[2,70]),e(j,[2,71]),e(j,[2,72]),e(j,[2,73]),e(j,[2,74]),e(j,[2,75]),e(j,[2,76]),e(j,[2,77]),e(j,[2,78]),{22:118,70:P},{22:120,58:119,70:P},{70:[2,63]},{70:[2,64]},{56:121,81:at},{56:123,81:at},{56:124,81:at},{56:125,81:at},{4:[1,128],5:[1,130],11:127,12:129,16:[1,126],50:L,52:M,53:N},{5:[1,131]},e(F,[2,19]),e(F,[2,20]),e(F,[2,22]),e(F,[2,23]),{4:a,5:s,8:8,9:10,12:12,13:l,14:u,16:[1,132],17:15,18:h,21:f,22:40,23:d,24:19,25:20,26:21,27:22,28:23,29:p,30:m,31:g,33:y,35:v,36:x,37:b,38:w,39:S,41:T,43:E,44:_,46:A,50:L,52:M,53:N,54:k,59:I,60:C,61:O,62:D,70:P},{4:a,5:s,8:8,9:10,12:12,13:l,14:u,16:[1,133],17:15,18:h,21:f,22:40,23:d,24:19,25:20,26:21,27:22,28:23,29:p,30:m,31:g,33:y,35:v,36:x,37:b,38:w,39:S,41:T,43:E,44:_,46:A,50:L,52:M,53:N,54:k,59:I,60:C,61:O,62:D,70:P},{4:a,5:s,8:8,9:10,12:12,13:l,14:u,16:[1,134],17:15,18:h,21:f,22:40,23:d,24:19,25:20,26:21,27:22,28:23,29:p,30:m,31:g,33:y,35:v,36:x,37:b,38:w,39:S,41:T,43:E,44:_,46:A,50:L,52:M,53:N,54:k,59:I,60:C,61:O,62:D,70:P},{16:[1,135]},{4:a,5:s,8:8,9:10,12:12,13:l,14:u,16:[2,46],17:15,18:h,21:f,22:40,23:d,24:19,25:20,26:21,27:22,28:23,29:p,30:m,31:g,33:y,35:v,36:x,37:b,38:w,39:S,41:T,43:E,44:_,46:A,49:[1,136],50:L,52:M,53:N,54:k,59:I,60:C,61:O,62:D,70:P},{16:[1,137]},{4:a,5:s,8:8,9:10,12:12,13:l,14:u,16:[2,44],17:15,18:h,21:f,22:40,23:d,24:19,25:20,26:21,27:22,28:23,29:p,30:m,31:g,33:y,35:v,36:x,37:b,38:w,39:S,41:T,43:E,44:_,46:A,48:[1,138],50:L,52:M,53:N,54:k,59:I,60:C,61:O,62:D,70:P},{16:[1,139]},{16:[1,140]},{4:a,5:s,8:8,9:10,12:12,13:l,14:u,16:[2,42],17:15,18:h,21:f,22:40,23:d,24:19,25:20,26:21,27:22,28:23,29:p,30:m,31:g,33:y,35:v,36:x,37:b,38:w,39:S,41:T,43:E,44:_,46:A,47:[1,141],50:L,52:M,53:N,54:k,59:I,60:C,61:O,62:D,70:P},{4:a,5:s,8:8,9:10,12:12,13:l,14:u,16:[1,142],17:15,18:h,21:f,22:40,23:d,24:19,25:20,26:21,27:22,28:23,29:p,30:m,31:g,33:y,35:v,36:x,37:b,38:w,39:S,41:T,43:E,44:_,46:A,50:L,52:M,53:N,54:k,59:I,60:C,61:O,62:D,70:P},{15:[1,143]},e(F,[2,49]),{15:[1,144]},e(F,[2,51]),e(F,[2,52]),{22:145,70:P},{22:146,70:P},{56:147,81:at},{56:148,81:at},{56:149,81:at},{64:[1,150],81:[2,62]},{5:[2,55]},{5:[2,79]},{5:[2,56]},{5:[2,57]},{5:[2,58]},e(F,[2,16]),e(B,[2,10]),{12:151,50:L,52:M,53:N},e(B,[2,12]),e(B,[2,13]),e(F,[2,18]),e(F,[2,34]),e(F,[2,35]),e(F,[2,36]),e(F,[2,37]),{15:[1,152]},e(F,[2,38]),{15:[1,153]},e(F,[2,39]),e(F,[2,40]),{15:[1,154]},e(F,[2,41]),{5:[1,155]},{5:[1,156]},{56:157,81:at},{56:158,81:at},{5:[2,67]},{5:[2,53]},{5:[2,54]},{22:159,70:P},e(B,[2,11]),e(z,i,{7:103,40:160}),e(W,i,{7:105,42:161}),e(Q,i,{7:108,45:162}),e(F,[2,48]),e(F,[2,50]),{5:[2,65]},{5:[2,66]},{81:[2,61]},{16:[2,47]},{16:[2,45]},{16:[2,43]}],defaultActions:{5:[2,1],6:[2,2],87:[2,63],88:[2,64],121:[2,55],122:[2,79],123:[2,56],124:[2,57],125:[2,58],147:[2,67],148:[2,53],149:[2,54],157:[2,65],158:[2,66],159:[2,61],160:[2,47],161:[2,45],162:[2,43]},parseError:o(function(q,K){if(K.recoverable)this.trace(q);else{var ot=new Error(q);throw ot.hash=K,ot}},"parseError"),parse:o(function(q){var K=this,ot=[0],ct=[],ut=[null],et=[],Mt=this.table,it="",wt=0,Ot=0,St=0,Vt=2,Pt=1,_t=et.slice.call(arguments,1),dt=Object.create(this.lexer),Y={yy:{}};for(var ft in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ft)&&(Y.yy[ft]=this.yy[ft]);dt.setInput(q,Y.yy),Y.yy.lexer=dt,Y.yy.parser=this,typeof dt.yylloc>"u"&&(dt.yylloc={});var mt=dt.yylloc;et.push(mt);var rt=dt.options&&dt.options.ranges;typeof Y.yy.parseError=="function"?this.parseError=Y.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ht(Ee){ot.length=ot.length-2*Ee,ut.length=ut.length-Ee,et.length=et.length-Ee}o(ht,"popStack");function nt(){var Ee;return Ee=ct.pop()||dt.lex()||Pt,typeof Ee!="number"&&(Ee instanceof Array&&(ct=Ee,Ee=ct.pop()),Ee=K.symbols_[Ee]||Ee),Ee}o(nt,"lex");for(var st,Tt,kt,Ct,At,$t,Nt={},yt,Ut,zt,ae;;){if(kt=ot[ot.length-1],this.defaultActions[kt]?Ct=this.defaultActions[kt]:((st===null||typeof st>"u")&&(st=nt()),Ct=Mt[kt]&&Mt[kt][st]),typeof Ct>"u"||!Ct.length||!Ct[0]){var ke="";ae=[];for(yt in Mt[kt])this.terminals_[yt]&&yt>Vt&&ae.push("'"+this.terminals_[yt]+"'");dt.showPosition?ke="Parse error on line "+(wt+1)+`: +`+dt.showPosition()+` +Expecting `+ae.join(", ")+", got '"+(this.terminals_[st]||st)+"'":ke="Parse error on line "+(wt+1)+": Unexpected "+(st==Pt?"end of input":"'"+(this.terminals_[st]||st)+"'"),this.parseError(ke,{text:dt.match,token:this.terminals_[st]||st,line:dt.yylineno,loc:mt,expected:ae})}if(Ct[0]instanceof Array&&Ct.length>1)throw new Error("Parse Error: multiple actions possible at state: "+kt+", token: "+st);switch(Ct[0]){case 1:ot.push(st),ut.push(dt.yytext),et.push(dt.yylloc),ot.push(Ct[1]),st=null,Tt?(st=Tt,Tt=null):(Ot=dt.yyleng,it=dt.yytext,wt=dt.yylineno,mt=dt.yylloc,St>0&&St--);break;case 2:if(Ut=this.productions_[Ct[1]][1],Nt.$=ut[ut.length-Ut],Nt._$={first_line:et[et.length-(Ut||1)].first_line,last_line:et[et.length-1].last_line,first_column:et[et.length-(Ut||1)].first_column,last_column:et[et.length-1].last_column},rt&&(Nt._$.range=[et[et.length-(Ut||1)].range[0],et[et.length-1].range[1]]),$t=this.performAction.apply(Nt,[it,Ot,wt,Y.yy,Ct[1],ut,et].concat(_t)),typeof $t<"u")return $t;Ut&&(ot=ot.slice(0,-1*Ut*2),ut=ut.slice(0,-1*Ut),et=et.slice(0,-1*Ut)),ot.push(this.productions_[Ct[1]][0]),ut.push(Nt.$),et.push(Nt._$),zt=Mt[ot[ot.length-2]][ot[ot.length-1]],ot.push(zt);break;case 3:return!0}}return!0},"parse")},J=function(){var H={EOF:1,parseError:o(function(K,ot){if(this.yy.parser)this.yy.parser.parseError(K,ot);else throw new Error(K)},"parseError"),setInput:o(function(q,K){return this.yy=K||this.yy||{},this._input=q,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var q=this._input[0];this.yytext+=q,this.yyleng++,this.offset++,this.match+=q,this.matched+=q;var K=q.match(/(?:\r\n?|\n).*/g);return K?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),q},"input"),unput:o(function(q){var K=q.length,ot=q.split(/(?:\r\n?|\n)/g);this._input=q+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-K),this.offset-=K;var ct=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),ot.length-1&&(this.yylineno-=ot.length-1);var ut=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:ot?(ot.length===ct.length?this.yylloc.first_column:0)+ct[ct.length-ot.length].length-ot[0].length:this.yylloc.first_column-K},this.options.ranges&&(this.yylloc.range=[ut[0],ut[0]+this.yyleng-K]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(q){this.unput(this.match.slice(q))},"less"),pastInput:o(function(){var q=this.matched.substr(0,this.matched.length-this.match.length);return(q.length>20?"...":"")+q.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var q=this.match;return q.length<20&&(q+=this._input.substr(0,20-q.length)),(q.substr(0,20)+(q.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var q=this.pastInput(),K=new Array(q.length+1).join("-");return q+this.upcomingInput()+` +`+K+"^"},"showPosition"),test_match:o(function(q,K){var ot,ct,ut;if(this.options.backtrack_lexer&&(ut={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(ut.yylloc.range=this.yylloc.range.slice(0))),ct=q[0].match(/(?:\r\n?|\n).*/g),ct&&(this.yylineno+=ct.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:ct?ct[ct.length-1].length-ct[ct.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+q[0].length},this.yytext+=q[0],this.match+=q[0],this.matches=q,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(q[0].length),this.matched+=q[0],ot=this.performAction.call(this,this.yy,this,K,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),ot)return ot;if(this._backtrack){for(var et in ut)this[et]=ut[et];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var q,K,ot,ct;this._more||(this.yytext="",this.match="");for(var ut=this._currentRules(),et=0;etK[0].length)){if(K=ot,ct=et,this.options.backtrack_lexer){if(q=this.test_match(ot,ut[et]),q!==!1)return q;if(this._backtrack){K=!1;continue}else return!1}else if(!this.options.flex)break}return K?(q=this.test_match(K,ut[ct]),q!==!1?q:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var K=this.next();return K||this.lex()},"lex"),begin:o(function(K){this.conditionStack.push(K)},"begin"),popState:o(function(){var K=this.conditionStack.length-1;return K>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(K){return K=this.conditionStack.length-1-Math.abs(K||0),K>=0?this.conditionStack[K]:"INITIAL"},"topState"),pushState:o(function(K){this.begin(K)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:o(function(K,ot,ct,ut){var et=ut;switch(ct){case 0:return 5;case 1:break;case 2:break;case 3:break;case 4:break;case 5:break;case 6:return 19;case 7:return this.begin("LINE"),14;break;case 8:return this.begin("ID"),50;break;case 9:return this.begin("ID"),52;break;case 10:return 13;case 11:return this.begin("ID"),53;break;case 12:return ot.yytext=ot.yytext.trim(),this.begin("ALIAS"),70;break;case 13:return this.popState(),this.popState(),this.begin("LINE"),51;break;case 14:return this.popState(),this.popState(),5;break;case 15:return this.begin("LINE"),36;break;case 16:return this.begin("LINE"),37;break;case 17:return this.begin("LINE"),38;break;case 18:return this.begin("LINE"),39;break;case 19:return this.begin("LINE"),49;break;case 20:return this.begin("LINE"),41;break;case 21:return this.begin("LINE"),43;break;case 22:return this.begin("LINE"),48;break;case 23:return this.begin("LINE"),44;break;case 24:return this.begin("LINE"),47;break;case 25:return this.begin("LINE"),46;break;case 26:return this.popState(),15;break;case 27:return 16;case 28:return 65;case 29:return 66;case 30:return 59;case 31:return 60;case 32:return 61;case 33:return 62;case 34:return 57;case 35:return 54;case 36:return this.begin("ID"),21;break;case 37:return this.begin("ID"),23;break;case 38:return 29;case 39:return 30;case 40:return this.begin("acc_title"),31;break;case 41:return this.popState(),"acc_title_value";break;case 42:return this.begin("acc_descr"),33;break;case 43:return this.popState(),"acc_descr_value";break;case 44:this.begin("acc_descr_multiline");break;case 45:this.popState();break;case 46:return"acc_descr_multiline_value";case 47:return 6;case 48:return 18;case 49:return 20;case 50:return 64;case 51:return 5;case 52:return ot.yytext=ot.yytext.trim(),70;break;case 53:return 73;case 54:return 74;case 55:return 75;case 56:return 76;case 57:return 71;case 58:return 72;case 59:return 77;case 60:return 78;case 61:return 79;case 62:return 80;case 63:return 81;case 64:return 68;case 65:return 69;case 66:return 5;case 67:return"INVALID"}},"anonymous"),rules:[/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[0-9]+(?=[ \n]+))/i,/^(?:box\b)/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:create\b)/i,/^(?:destroy\b)/i,/^(?:[^\<->\->:\n,;]+?([\-]*[^\<->\->:\n,;]+?)*?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:par_over\b)/i,/^(?:and\b)/i,/^(?:critical\b)/i,/^(?:option\b)/i,/^(?:break\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:links\b)/i,/^(?:link\b)/i,/^(?:properties\b)/i,/^(?:details\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:title:\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:off\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\+\<->\->:\n,;]+((?!(-x|--x|-\)|--\)))[\-]*[^\+\<->\->:\n,;]+)*)/i,/^(?:->>)/i,/^(?:<<->>)/i,/^(?:-->>)/i,/^(?:<<-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?:-[\)])/i,/^(?:--[\)])/i,/^(?::(?:(?:no)?wrap)?[^#\n;]+)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[45,46],inclusive:!1},acc_descr:{rules:[43],inclusive:!1},acc_title:{rules:[41],inclusive:!1},ID:{rules:[2,3,12],inclusive:!1},ALIAS:{rules:[2,3,13,14],inclusive:!1},LINE:{rules:[2,3,26],inclusive:!1},INITIAL:{rules:[0,1,3,4,5,6,7,8,9,10,11,15,16,17,18,19,20,21,22,23,24,25,27,28,29,30,31,32,33,34,35,36,37,38,39,40,42,44,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67],inclusive:!0}}};return H}();X.lexer=J;function Z(){this.yy={}}return o(Z,"Parser"),Z.prototype=X,X.Parser=Z,new Z}();gP.parser=gP;Gft=gP});function vP(e,t){if(e.links==null)e.links=t;else for(let r in t)e.links[r]=t[r]}function qft(e,t){if(e.properties==null)e.properties=t;else for(let r in t)e.properties[r]=t[r]}function UUt(){Ge.records.currentBox=void 0}var Ge,TUt,yP,kUt,EUt,xi,CUt,SUt,AUt,_Ut,LUt,DUt,RUt,Ux,NUt,MUt,IUt,OUt,PUt,Uft,M0,BUt,FUt,zUt,Vx,$Ut,GUt,Hft,Wft,VUt,Yft,Xft,HUt,jft,xP,Kft=R(()=>{"use strict";Ue();ce();HE();hr();Ci();Ge=new mf(()=>({prevActor:void 0,actors:new Map,createdActors:new Map,destroyedActors:new Map,boxes:[],messages:[],notes:[],sequenceNumbersEnabled:!1,wrapEnabled:void 0,currentBox:void 0,lastCreated:void 0,lastDestroyed:void 0})),TUt=o(function(e){Ge.records.boxes.push({name:e.text,wrap:e.wrap??M0(),fill:e.color,actorKeys:[]}),Ge.records.currentBox=Ge.records.boxes.slice(-1)[0]},"addBox"),yP=o(function(e,t,r,n){let i=Ge.records.currentBox,a=Ge.records.actors.get(e);if(a){if(Ge.records.currentBox&&a.box&&Ge.records.currentBox!==a.box)throw new Error(`A same participant should only be defined in one Box: ${a.name} can't be in '${a.box.name}' and in '${Ge.records.currentBox.name}' at the same time.`);if(i=a.box?a.box:Ge.records.currentBox,a.box=i,a&&t===a.name&&r==null)return}if(r?.text==null&&(r={text:t,type:n}),(n==null||r.text==null)&&(r={text:t,type:n}),Ge.records.actors.set(e,{box:i,name:t,description:r.text,wrap:r.wrap??M0(),prevActor:Ge.records.prevActor,links:{},properties:{},actorCnt:null,rectData:null,type:n??"participant"}),Ge.records.prevActor){let s=Ge.records.actors.get(Ge.records.prevActor);s&&(s.nextActor=e)}Ge.records.currentBox&&Ge.records.currentBox.actorKeys.push(e),Ge.records.prevActor=e},"addActor"),kUt=o(e=>{let t,r=0;if(!e)return 0;for(t=0;t>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},s}return Ge.records.messages.push({from:e,to:t,message:r?.text??"",wrap:r?.wrap??M0(),type:n,activate:i}),!0},"addSignal"),CUt=o(function(){return Ge.records.boxes.length>0},"hasAtLeastOneBox"),SUt=o(function(){return Ge.records.boxes.some(e=>e.name)},"hasAtLeastOneBoxWithTitle"),AUt=o(function(){return Ge.records.messages},"getMessages"),_Ut=o(function(){return Ge.records.boxes},"getBoxes"),LUt=o(function(){return Ge.records.actors},"getActors"),DUt=o(function(){return Ge.records.createdActors},"getCreatedActors"),RUt=o(function(){return Ge.records.destroyedActors},"getDestroyedActors"),Ux=o(function(e){return Ge.records.actors.get(e)},"getActor"),NUt=o(function(){return[...Ge.records.actors.keys()]},"getActorKeys"),MUt=o(function(){Ge.records.sequenceNumbersEnabled=!0},"enableSequenceNumbers"),IUt=o(function(){Ge.records.sequenceNumbersEnabled=!1},"disableSequenceNumbers"),OUt=o(()=>Ge.records.sequenceNumbersEnabled,"showSequenceNumbers"),PUt=o(function(e){Ge.records.wrapEnabled=e},"setWrap"),Uft=o(e=>{if(e===void 0)return{};e=e.trim();let t=/^:?wrap:/.exec(e)!==null?!0:/^:?nowrap:/.exec(e)!==null?!1:void 0;return{cleanedText:(t===void 0?e:e.replace(/^:?(?:no)?wrap:/,"")).trim(),wrap:t}},"extractWrap"),M0=o(()=>Ge.records.wrapEnabled!==void 0?Ge.records.wrapEnabled:pt().sequence?.wrap??!1,"autoWrap"),BUt=o(function(){Ge.reset(),Ar()},"clear"),FUt=o(function(e){let t=e.trim(),{wrap:r,cleanedText:n}=Uft(t),i={text:n,wrap:r};return V.debug(`parseMessage: ${JSON.stringify(i)}`),i},"parseMessage"),zUt=o(function(e){let t=/^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(e),r=t?.[1]?t[1].trim():"transparent",n=t?.[2]?t[2].trim():void 0;if(window?.CSS)window.CSS.supports("color",r)||(r="transparent",n=e.trim());else{let s=new Option().style;s.color=r,s.color!==r&&(r="transparent",n=e.trim())}let{wrap:i,cleanedText:a}=Uft(n);return{text:a?Zr(a,pt()):void 0,color:r,wrap:i}},"parseBoxData"),Vx={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25,AUTONUMBER:26,CRITICAL_START:27,CRITICAL_OPTION:28,CRITICAL_END:29,BREAK_START:30,BREAK_END:31,PAR_OVER_START:32,BIDIRECTIONAL_SOLID:33,BIDIRECTIONAL_DOTTED:34},$Ut={FILLED:0,OPEN:1},GUt={LEFTOF:0,RIGHTOF:1,OVER:2},Hft=o(function(e,t,r){let n={actor:e,placement:t,message:r.text,wrap:r.wrap??M0()},i=[].concat(e,e);Ge.records.notes.push(n),Ge.records.messages.push({from:i[0],to:i[1],message:r.text,wrap:r.wrap??M0(),type:Vx.NOTE,placement:t})},"addNote"),Wft=o(function(e,t){let r=Ux(e);try{let n=Zr(t.text,pt());n=n.replace(/&/g,"&"),n=n.replace(/=/g,"=");let i=JSON.parse(n);vP(r,i)}catch(n){V.error("error while parsing actor link text",n)}},"addLinks"),VUt=o(function(e,t){let r=Ux(e);try{let n={},i=Zr(t.text,pt()),a=i.indexOf("@");i=i.replace(/&/g,"&"),i=i.replace(/=/g,"=");let s=i.slice(0,a-1).trim(),l=i.slice(a+1).trim();n[s]=l,vP(r,n)}catch(n){V.error("error while parsing actor link text",n)}},"addALink");o(vP,"insertLinks");Yft=o(function(e,t){let r=Ux(e);try{let n=Zr(t.text,pt()),i=JSON.parse(n);qft(r,i)}catch(n){V.error("error while parsing actor properties text",n)}},"addProperties");o(qft,"insertProperties");o(UUt,"boxEnd");Xft=o(function(e,t){let r=Ux(e),n=document.getElementById(t.text);try{let i=n.innerHTML,a=JSON.parse(i);a.properties&&qft(r,a.properties),a.links&&vP(r,a.links)}catch(i){V.error("error while parsing actor details text",i)}},"addDetails"),HUt=o(function(e,t){if(e?.properties!==void 0)return e.properties[t]},"getActorProperty"),jft=o(function(e){if(Array.isArray(e))e.forEach(function(t){jft(t)});else switch(e.type){case"sequenceIndex":Ge.records.messages.push({from:void 0,to:void 0,message:{start:e.sequenceIndex,step:e.sequenceIndexStep,visible:e.sequenceVisible},wrap:!1,type:e.signalType});break;case"addParticipant":yP(e.actor,e.actor,e.description,e.draw);break;case"createParticipant":if(Ge.records.actors.has(e.actor))throw new Error("It is not possible to have actors with the same id, even if one is destroyed before the next is created. Use 'AS' aliases to simulate the behavior");Ge.records.lastCreated=e.actor,yP(e.actor,e.actor,e.description,e.draw),Ge.records.createdActors.set(e.actor,Ge.records.messages.length);break;case"destroyParticipant":Ge.records.lastDestroyed=e.actor,Ge.records.destroyedActors.set(e.actor,Ge.records.messages.length);break;case"activeStart":xi(e.actor,void 0,void 0,e.signalType);break;case"activeEnd":xi(e.actor,void 0,void 0,e.signalType);break;case"addNote":Hft(e.actor,e.placement,e.text);break;case"addLinks":Wft(e.actor,e.text);break;case"addALink":VUt(e.actor,e.text);break;case"addProperties":Yft(e.actor,e.text);break;case"addDetails":Xft(e.actor,e.text);break;case"addMessage":if(Ge.records.lastCreated){if(e.to!==Ge.records.lastCreated)throw new Error("The created participant "+Ge.records.lastCreated.name+" does not have an associated creating message after its declaration. Please check the sequence diagram.");Ge.records.lastCreated=void 0}else if(Ge.records.lastDestroyed){if(e.to!==Ge.records.lastDestroyed&&e.from!==Ge.records.lastDestroyed)throw new Error("The destroyed participant "+Ge.records.lastDestroyed.name+" does not have an associated destroying message after its declaration. Please check the sequence diagram.");Ge.records.lastDestroyed=void 0}xi(e.from,e.to,e.msg,e.signalType,e.activate);break;case"boxStart":TUt(e.boxData);break;case"boxEnd":UUt();break;case"loopStart":xi(void 0,void 0,e.loopText,e.signalType);break;case"loopEnd":xi(void 0,void 0,void 0,e.signalType);break;case"rectStart":xi(void 0,void 0,e.color,e.signalType);break;case"rectEnd":xi(void 0,void 0,void 0,e.signalType);break;case"optStart":xi(void 0,void 0,e.optText,e.signalType);break;case"optEnd":xi(void 0,void 0,void 0,e.signalType);break;case"altStart":xi(void 0,void 0,e.altText,e.signalType);break;case"else":xi(void 0,void 0,e.altText,e.signalType);break;case"altEnd":xi(void 0,void 0,void 0,e.signalType);break;case"setAccTitle":Mr(e.text);break;case"parStart":xi(void 0,void 0,e.parText,e.signalType);break;case"and":xi(void 0,void 0,e.parText,e.signalType);break;case"parEnd":xi(void 0,void 0,void 0,e.signalType);break;case"criticalStart":xi(void 0,void 0,e.criticalText,e.signalType);break;case"option":xi(void 0,void 0,e.optionText,e.signalType);break;case"criticalEnd":xi(void 0,void 0,void 0,e.signalType);break;case"breakStart":xi(void 0,void 0,e.breakText,e.signalType);break;case"breakEnd":xi(void 0,void 0,void 0,e.signalType);break}},"apply"),xP={addActor:yP,addMessage:EUt,addSignal:xi,addLinks:Wft,addDetails:Xft,addProperties:Yft,autoWrap:M0,setWrap:PUt,enableSequenceNumbers:MUt,disableSequenceNumbers:IUt,showSequenceNumbers:OUt,getMessages:AUt,getActors:LUt,getCreatedActors:DUt,getDestroyedActors:RUt,getActor:Ux,getActorKeys:NUt,getActorProperty:HUt,getAccTitle:Br,getBoxes:_Ut,getDiagramTitle:Jr,setDiagramTitle:cn,getConfig:o(()=>pt().sequence,"getConfig"),clear:BUt,parseMessage:FUt,parseBoxData:zUt,LINETYPE:Vx,ARROWTYPE:$Ut,PLACEMENT:GUt,addNote:Hft,setAccTitle:Mr,apply:jft,setAccDescription:Fr,getAccDescription:zr,hasAtLeastOneBox:CUt,hasAtLeastOneBoxWithTitle:SUt}});var WUt,Qft,Zft=R(()=>{"use strict";WUt=o(e=>`.actor { + stroke: ${e.actorBorder}; + fill: ${e.actorBkg}; } text.actor > tspan { - fill: ${i.actorTextColor}; + fill: ${e.actorTextColor}; stroke: none; } .actor-line { - stroke: ${i.actorLineColor}; + stroke: ${e.actorLineColor}; } .messageLine0 { stroke-width: 1.5; stroke-dasharray: none; - stroke: ${i.signalColor}; + stroke: ${e.signalColor}; } .messageLine1 { stroke-width: 1.5; stroke-dasharray: 2, 2; - stroke: ${i.signalColor}; + stroke: ${e.signalColor}; } #arrowhead path { - fill: ${i.signalColor}; - stroke: ${i.signalColor}; + fill: ${e.signalColor}; + stroke: ${e.signalColor}; } .sequenceNumber { - fill: ${i.sequenceNumberColor}; + fill: ${e.sequenceNumberColor}; } #sequencenumber { - fill: ${i.signalColor}; + fill: ${e.signalColor}; } #crosshead path { - fill: ${i.signalColor}; - stroke: ${i.signalColor}; + fill: ${e.signalColor}; + stroke: ${e.signalColor}; } .messageText { - fill: ${i.signalTextColor}; + fill: ${e.signalTextColor}; stroke: none; } .labelBox { - stroke: ${i.labelBoxBorderColor}; - fill: ${i.labelBoxBkgColor}; + stroke: ${e.labelBoxBorderColor}; + fill: ${e.labelBoxBkgColor}; } .labelText, .labelText > tspan { - fill: ${i.labelTextColor}; + fill: ${e.labelTextColor}; stroke: none; } .loopText, .loopText > tspan { - fill: ${i.loopTextColor}; + fill: ${e.loopTextColor}; stroke: none; } .loopLine { stroke-width: 2px; stroke-dasharray: 2, 2; - stroke: ${i.labelBoxBorderColor}; - fill: ${i.labelBoxBorderColor}; + stroke: ${e.labelBoxBorderColor}; + fill: ${e.labelBoxBorderColor}; } .note { //stroke: #decc93; - stroke: ${i.noteBorderColor}; - fill: ${i.noteBkgColor}; + stroke: ${e.noteBorderColor}; + fill: ${e.noteBkgColor}; } .noteText, .noteText > tspan { - fill: ${i.noteTextColor}; + fill: ${e.noteTextColor}; stroke: none; } .activation0 { - fill: ${i.activationBkgColor}; - stroke: ${i.activationBorderColor}; + fill: ${e.activationBkgColor}; + stroke: ${e.activationBorderColor}; } .activation1 { - fill: ${i.activationBkgColor}; - stroke: ${i.activationBorderColor}; + fill: ${e.activationBkgColor}; + stroke: ${e.activationBorderColor}; } .activation2 { - fill: ${i.activationBkgColor}; - stroke: ${i.activationBorderColor}; + fill: ${e.activationBkgColor}; + stroke: ${e.activationBorderColor}; } .actorPopupMenu { @@ -802,29 +1298,28 @@ Expecting `+Pr.join(", ")+", got '"+(this.terminals_[hr]||hr)+"'":On="Parse erro .actorPopupMenuPanel { position: absolute; - fill: ${i.actorBkg}; + fill: ${e.actorBkg}; box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4)); } .actor-man line { - stroke: ${i.actorBorder}; - fill: ${i.actorBkg}; + stroke: ${e.actorBorder}; + fill: ${e.actorBkg}; } .actor-man circle, line { - stroke: ${i.actorBorder}; - fill: ${i.actorBkg}; + stroke: ${e.actorBorder}; + fill: ${e.actorBkg}; stroke-width: 2px; } -`,Q0t=function(i,a){return DW(i,a)},VBt=(i,a)=>{ySe(()=>{const f=document.querySelectorAll(i);f.length!==0&&(f[0].addEventListener("mouseover",function(){Iqe("actor"+a+"_popup")}),f[0].addEventListener("mouseout",function(){Oqe("actor"+a+"_popup")}))})},Lqe=function(i,a,f,p,v){if(a.links===void 0||a.links===null||Object.keys(a.links).length===0)return{height:0,width:0};const m=a.links,b=a.actorCnt,E=a.rectData;var C="none";v&&(C="block !important");const D=i.append("g");D.attr("id","actor"+b+"_popup"),D.attr("class","actorPopupMenu"),D.attr("display",C),VBt("#actor"+b+"_popup",b);var P="";E.class!==void 0&&(P=" "+E.class);let B=E.width>f?E.width:f;const j=D.append("rect");if(j.attr("class","actorPopupMenuPanel"+P),j.attr("x",E.x),j.attr("y",E.height),j.attr("fill",E.fill),j.attr("stroke",E.stroke),j.attr("width",B),j.attr("height",E.height),j.attr("rx",E.rx),j.attr("ry",E.ry),m!=null){var R=20;for(let it in m){var H=D.append("a"),Y=Xx(m[it]);H.attr("xlink:href",Y),H.attr("target","_blank"),Yqe(p)(it,H,E.x+10,E.height+R,B,20,{class:"actor"},p),R+=30}}return j.attr("height",R),{height:E.height+R,width:B}},Mqe=function(i){return"var pu = document.getElementById('"+i+"'); if (pu != null) { pu.style.display = 'block'; }"},Dqe=function(i){return"var pu = document.getElementById('"+i+"'); if (pu != null) { pu.style.display = 'none'; }"},Iqe=function(i){var a=document.getElementById(i);a!=null&&(a.style.display="block")},Oqe=function(i){var a=document.getElementById(i);a!=null&&(a.style.display="none")},uL=function(i,a){let f=0,p=0;const v=a.text.split(yi.lineBreakRegex),[m,b]=$A(a.fontSize);let E=[],C=0,D=()=>a.y;if(a.valign!==void 0&&a.textMargin!==void 0&&a.textMargin>0)switch(a.valign){case"top":case"start":D=()=>Math.round(a.y+a.textMargin);break;case"middle":case"center":D=()=>Math.round(a.y+(f+p+a.textMargin)/2);break;case"bottom":case"end":D=()=>Math.round(a.y+(f+p+2*a.textMargin)-a.textMargin);break}if(a.anchor!==void 0&&a.textMargin!==void 0&&a.width!==void 0)switch(a.anchor){case"left":case"start":a.x=Math.round(a.x+a.textMargin),a.anchor="start",a.dominantBaseline="middle",a.alignmentBaseline="middle";break;case"middle":case"center":a.x=Math.round(a.x+a.width/2),a.anchor="middle",a.dominantBaseline="middle",a.alignmentBaseline="middle";break;case"right":case"end":a.x=Math.round(a.x+a.width-a.textMargin),a.anchor="end",a.dominantBaseline="middle",a.alignmentBaseline="middle";break}for(let[P,B]of v.entries()){a.textMargin!==void 0&&a.textMargin===0&&m!==void 0&&(C=P*m);const j=i.append("text");j.attr("x",a.x),j.attr("y",D()),a.anchor!==void 0&&j.attr("text-anchor",a.anchor).attr("dominant-baseline",a.dominantBaseline).attr("alignment-baseline",a.alignmentBaseline),a.fontFamily!==void 0&&j.style("font-family",a.fontFamily),b!==void 0&&j.style("font-size",b),a.fontWeight!==void 0&&j.style("font-weight",a.fontWeight),a.fill!==void 0&&j.attr("fill",a.fill),a.class!==void 0&&j.attr("class",a.class),a.dy!==void 0?j.attr("dy",a.dy):C!==0&&j.attr("dy",C);const R=B||wIt;if(a.tspan){const H=j.append("tspan");H.attr("x",a.x),a.fill!==void 0&&H.attr("fill",a.fill),H.text(R)}else j.text(R);a.valign!==void 0&&a.textMargin!==void 0&&a.textMargin>0&&(p+=(j._groups||j)[0][0].getBBox().height,f=p),E.push(j)}return E},GBt=function(i,a){function f(v,m,b,E,C){return v+","+m+" "+(v+b)+","+m+" "+(v+b)+","+(m+E-C)+" "+(v+b-C*1.2)+","+(m+E)+" "+v+","+(m+E)}const p=i.append("polygon");return p.attr("points",f(a.x,a.y,a.width,a.height,7)),p.attr("class","labelBox"),a.y=a.y+a.height/2,uL(i,a),p};let m3=-1;const UBt=(i,a)=>{i.selectAll&&i.selectAll(".actor-line").attr("class","200").attr("y2",a-55)},Nqe=function(i,a,f,p){const v=a.x+a.width/2,m=a.y+5,b=i.append("g");var E=b;p||(m3++,E.append("line").attr("id","actor"+m3).attr("x1",v).attr("y1",m).attr("x2",v).attr("y2",2e3).attr("class","actor-line").attr("stroke-width","0.5px").attr("stroke","#999"),E=b.append("g"),a.actorCnt=m3,a.links!=null&&(E.attr("id","root-"+m3),VBt("#root-"+m3,m3)));const C=aE();var D="actor";a.properties!=null&&a.properties.class?D=a.properties.class:C.fill="#eaeaea",C.x=a.x,C.y=a.y,C.width=a.width,C.height=a.height,C.class=D,C.rx=3,C.ry=3;const P=Q0t(E,C);if(a.rectData=C,a.properties!=null&&a.properties.icon){const j=a.properties.icon.trim();j.charAt(0)==="@"?ILe(E,C.x+C.width-20,C.y+10,j.substr(1)):DLe(E,C.x+C.width-20,C.y+10,j)}Z0t(f)(a.description,E,C.x,C.y,C.width,C.height,{class:"actor"},f);let B=a.height;if(P.node){const j=P.node().getBBox();a.height=j.height,B=j.height}return B},Pqe=function(i,a,f,p){const v=a.x+a.width/2,m=a.y+80;p||(m3++,i.append("line").attr("id","actor"+m3).attr("x1",v).attr("y1",m).attr("x2",v).attr("y2",2e3).attr("class","actor-line").attr("stroke-width","0.5px").attr("stroke","#999"));const b=i.append("g");b.attr("class","actor-man");const E=aE();E.x=a.x,E.y=a.y,E.fill="#eaeaea",E.width=a.width,E.height=a.height,E.class="actor",E.rx=3,E.ry=3,b.append("line").attr("id","actor-man-torso"+m3).attr("x1",v).attr("y1",a.y+25).attr("x2",v).attr("y2",a.y+45),b.append("line").attr("id","actor-man-arms"+m3).attr("x1",v-18).attr("y1",a.y+33).attr("x2",v+18).attr("y2",a.y+33),b.append("line").attr("x1",v-18).attr("y1",a.y+60).attr("x2",v).attr("y2",a.y+45),b.append("line").attr("x1",v).attr("y1",a.y+45).attr("x2",v+16).attr("y2",a.y+60);const C=b.append("circle");C.attr("cx",a.x+a.width/2),C.attr("cy",a.y+10),C.attr("r",15),C.attr("width",a.width),C.attr("height",a.height);const D=b.node().getBBox();return a.height=D.height,Z0t(f)(a.description,b,E.x,E.y+35,E.width,E.height,{class:"actor"},f),a.height},Fqe=function(i,a,f,p){switch(a.type){case"actor":return Pqe(i,a,f,p);case"participant":return Nqe(i,a,f,p)}},Bqe=function(i,a,f){const v=i.append("g");WBt(v,a),a.name&&Z0t(f)(a.name,v,a.x,a.y+(a.textMaxHeight||0)/2,a.width,0,{class:"text"},f),v.lower()},Rqe=function(i){return i.append("g")},jqe=function(i,a,f,p,v){const m=aE(),b=a.anchored;m.x=a.startx,m.y=a.starty,m.class="activation"+v%3,m.width=a.stopx-a.startx,m.height=f-a.starty,Q0t(b,m)},$qe=function(i,a,f,p){const{boxMargin:v,boxTextMargin:m,labelBoxHeight:b,labelBoxWidth:E,messageFontFamily:C,messageFontSize:D,messageFontWeight:P}=p,B=i.append("g"),j=function(Y,it,nt,st){return B.append("line").attr("x1",Y).attr("y1",it).attr("x2",nt).attr("y2",st).attr("class","loopLine")};j(a.startx,a.starty,a.stopx,a.starty),j(a.stopx,a.starty,a.stopx,a.stopy),j(a.startx,a.stopy,a.stopx,a.stopy),j(a.startx,a.starty,a.startx,a.stopy),a.sections!==void 0&&a.sections.forEach(function(Y){j(a.startx,Y.y,a.stopx,Y.y).style("stroke-dasharray","3, 3")});let R=gdt();R.text=f,R.x=a.startx,R.y=a.starty,R.fontFamily=C,R.fontSize=D,R.fontWeight=P,R.anchor="middle",R.valign="middle",R.tspan=!1,R.width=E||50,R.height=b||20,R.textMargin=m,R.class="labelText",GBt(B,R),R=KBt(),R.text=a.title,R.x=a.startx+E/2+(a.stopx-a.startx)/2,R.y=a.starty+v+m,R.anchor="middle",R.valign="middle",R.textMargin=m,R.class="loopText",R.fontFamily=C,R.fontSize=D,R.fontWeight=P,R.wrap=!0;let H=uL(B,R);return a.sectionTitles!==void 0&&a.sectionTitles.forEach(function(Y,it){if(Y.message){R.text=Y.message,R.x=a.startx+(a.stopx-a.startx)/2,R.y=a.sections[it].y+v+m,R.class="loopText",R.anchor="middle",R.valign="middle",R.tspan=!1,R.fontFamily=C,R.fontSize=D,R.fontWeight=P,R.wrap=a.wrap,H=uL(B,R);let nt=Math.round(H.map(st=>(st._groups||st)[0][0].getBBox().height).reduce((st,pt)=>st+pt));a.sections[it].height+=nt-(v+m)}}),a.height=Math.round(a.stopy-a.starty),B},WBt=function(i,a){AOt(i,a)},zqe=function(i){i.append("defs").append("symbol").attr("id","database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},qqe=function(i){i.append("defs").append("symbol").attr("id","computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},Hqe=function(i){i.append("defs").append("symbol").attr("id","clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},Vqe=function(i){i.append("defs").append("marker").attr("id","arrowhead").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")},Gqe=function(i){i.append("defs").append("marker").attr("id","filled-head").attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},Uqe=function(i){i.append("defs").append("marker").attr("id","sequencenumber").attr("refX",15).attr("refY",15).attr("markerWidth",60).attr("markerHeight",40).attr("orient","auto").append("circle").attr("cx",15).attr("cy",15).attr("r",6)},Wqe=function(i){i.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",4).attr("refY",5).append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1pt").attr("d","M 1,2 L 6,7 M 6,2 L 1,7")},KBt=function(){return{x:0,y:0,fill:void 0,anchor:void 0,style:"#666",width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}},Kqe=function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},Z0t=function(){function i(v,m,b,E,C,D,P){const B=m.append("text").attr("x",b+C/2).attr("y",E+D/2+5).style("text-anchor","middle").text(v);p(B,P)}function a(v,m,b,E,C,D,P,B){const{actorFontSize:j,actorFontFamily:R,actorFontWeight:H}=B,[Y,it]=$A(j),nt=v.split(yi.lineBreakRegex);for(let st=0;sti.height||0))+(this.loops.length===0?0:this.loops.map(i=>i.height||0).reduce((i,a)=>i+a))+(this.messages.length===0?0:this.messages.map(i=>i.height||0).reduce((i,a)=>i+a))+(this.notes.length===0?0:this.notes.map(i=>i.height||0).reduce((i,a)=>i+a))},clear:function(){this.actors=[],this.boxes=[],this.loops=[],this.messages=[],this.notes=[]},addBox:function(i){this.boxes.push(i)},addActor:function(i){this.actors.push(i)},addLoop:function(i){this.loops.push(i)},addMessage:function(i){this.messages.push(i)},addNote:function(i){this.notes.push(i)},lastActor:function(){return this.actors[this.actors.length-1]},lastLoop:function(){return this.loops[this.loops.length-1]},lastMessage:function(){return this.messages[this.messages.length-1]},lastNote:function(){return this.notes[this.notes.length-1]},actors:[],boxes:[],loops:[],messages:[],notes:[]},init:function(){this.sequenceItems=[],this.activations=[],this.models.clear(),this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0,XBt(Oe())},updateVal:function(i,a,f,p){i[a]===void 0?i[a]=f:i[a]=p(f,i[a])},updateBounds:function(i,a,f,p){const v=this;let m=0;function b(E){return function(D){m++;const P=v.sequenceItems.length-m+1;v.updateVal(D,"starty",a-P*dn.boxMargin,Math.min),v.updateVal(D,"stopy",p+P*dn.boxMargin,Math.max),v.updateVal(ai.data,"startx",i-P*dn.boxMargin,Math.min),v.updateVal(ai.data,"stopx",f+P*dn.boxMargin,Math.max),E!=="activation"&&(v.updateVal(D,"startx",i-P*dn.boxMargin,Math.min),v.updateVal(D,"stopx",f+P*dn.boxMargin,Math.max),v.updateVal(ai.data,"starty",a-P*dn.boxMargin,Math.min),v.updateVal(ai.data,"stopy",p+P*dn.boxMargin,Math.max))}}this.sequenceItems.forEach(b()),this.activations.forEach(b("activation"))},insert:function(i,a,f,p){const v=yi.getMin(i,f),m=yi.getMax(i,f),b=yi.getMin(a,p),E=yi.getMax(a,p);this.updateVal(ai.data,"startx",v,Math.min),this.updateVal(ai.data,"starty",b,Math.min),this.updateVal(ai.data,"stopx",m,Math.max),this.updateVal(ai.data,"stopy",E,Math.max),this.updateBounds(v,b,m,E)},newActivation:function(i,a,f){const p=f[i.from.actor],v=xK(i.from.actor).length||0,m=p.x+p.width/2+(v-1)*dn.activationWidth/2;this.activations.push({startx:m,starty:this.verticalPos+2,stopx:m+dn.activationWidth,stopy:void 0,actor:i.from.actor,anchored:qf.anchorElement(a)})},endActivation:function(i){const a=this.activations.map(function(f){return f.actor}).lastIndexOf(i.from.actor);return this.activations.splice(a,1)[0]},createLoop:function(i={message:void 0,wrap:!1,width:void 0},a){return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:i.message,wrap:i.wrap,width:i.width,height:0,fill:a}},newLoop:function(i={message:void 0,wrap:!1,width:void 0},a){this.sequenceItems.push(this.createLoop(i,a))},endLoop:function(){return this.sequenceItems.pop()},isLoopOverlap:function(){return this.sequenceItems.length?this.sequenceItems[this.sequenceItems.length-1].overlap:!1},addSectionToLoop:function(i){const a=this.sequenceItems.pop();a.sections=a.sections||[],a.sectionTitles=a.sectionTitles||[],a.sections.push({y:ai.getVerticalPos(),height:0}),a.sectionTitles.push(i),this.sequenceItems.push(a)},saveVerticalPos:function(){this.isLoopOverlap()&&(this.savedVerticalPos=this.verticalPos)},resetVerticalPos:function(){this.isLoopOverlap()&&(this.verticalPos=this.savedVerticalPos)},bumpVerticalPos:function(i){this.verticalPos=this.verticalPos+i,this.data.stopy=yi.getMax(this.data.stopy,this.verticalPos)},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return{bounds:this.data,models:this.models}}},Xqe=function(i,a){ai.bumpVerticalPos(dn.boxMargin),a.height=dn.boxMargin,a.starty=ai.getVerticalPos();const f=aE();f.x=a.startx,f.y=a.starty,f.width=a.width||dn.width,f.class="note";const p=i.append("g"),v=qf.drawRect(p,f),m=gdt();m.x=a.startx,m.y=a.starty,m.width=f.width,m.dy="1em",m.text=a.message,m.class="noteText",m.fontFamily=dn.noteFontFamily,m.fontSize=dn.noteFontSize,m.fontWeight=dn.noteFontWeight,m.anchor=dn.noteAlign,m.textMargin=dn.noteMargin,m.valign="center";const b=uL(p,m),E=Math.round(b.map(C=>(C._groups||C)[0][0].getBBox().height).reduce((C,D)=>C+D));v.attr("height",E+2*dn.noteMargin),a.height+=E+2*dn.noteMargin,ai.bumpVerticalPos(E+2*dn.noteMargin),a.stopy=a.starty+E+2*dn.noteMargin,a.stopx=a.startx+f.width,ai.insert(a.startx,a.starty,a.stopx,a.stopy),ai.models.addNote(a)},wE=i=>({fontFamily:i.messageFontFamily,fontSize:i.messageFontSize,fontWeight:i.messageFontWeight}),lL=i=>({fontFamily:i.noteFontFamily,fontSize:i.noteFontSize,fontWeight:i.noteFontWeight}),J0t=i=>({fontFamily:i.actorFontFamily,fontSize:i.actorFontSize,fontWeight:i.actorFontWeight});function Qqe(i,a){ai.bumpVerticalPos(10);const{startx:f,stopx:p,message:v}=a,m=yi.splitBreaks(v).length,b=lo.calculateTextDimensions(v,wE(dn)),E=b.height/m;a.height+=E,ai.bumpVerticalPos(E);let C,D=b.height-10;const P=b.width;if(f===p){C=ai.getVerticalPos()+D,dn.rightAngles||(D+=dn.boxMargin,C=ai.getVerticalPos()+D),D+=30;const B=yi.getMax(P/2,dn.width/2);ai.insert(f-B,ai.getVerticalPos()-10+D,p+B,ai.getVerticalPos()+30+D)}else D+=dn.boxMargin,C=ai.getVerticalPos()+D,ai.insert(f,C-10,p,C);return ai.bumpVerticalPos(D),a.height+=D,a.stopy=a.starty+a.height,ai.insert(a.fromBounds,a.starty,a.toBounds,a.stopy),C}const Zqe=function(i,a,f,p){const{startx:v,stopx:m,starty:b,message:E,type:C,sequenceIndex:D,sequenceVisible:P}=a,B=lo.calculateTextDimensions(E,wE(dn)),j=gdt();j.x=v,j.y=b+10,j.width=m-v,j.class="messageText",j.dy="1em",j.text=E,j.fontFamily=dn.messageFontFamily,j.fontSize=dn.messageFontSize,j.fontWeight=dn.messageFontWeight,j.anchor=dn.messageAlign,j.valign="center",j.textMargin=dn.wrapPadding,j.tspan=!1,uL(i,j);const R=B.width;let H;v===m?dn.rightAngles?H=i.append("path").attr("d",`M ${v},${f} H ${v+yi.getMax(dn.width/2,R/2)} V ${f+25} H ${v}`):H=i.append("path").attr("d","M "+v+","+f+" C "+(v+60)+","+(f-10)+" "+(v+60)+","+(f+30)+" "+v+","+(f+20)):(H=i.append("line"),H.attr("x1",v),H.attr("y1",f),H.attr("x2",m),H.attr("y2",f)),C===p.db.LINETYPE.DOTTED||C===p.db.LINETYPE.DOTTED_CROSS||C===p.db.LINETYPE.DOTTED_POINT||C===p.db.LINETYPE.DOTTED_OPEN?(H.style("stroke-dasharray","3, 3"),H.attr("class","messageLine1")):H.attr("class","messageLine0");let Y="";dn.arrowMarkerAbsolute&&(Y=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,Y=Y.replace(/\(/g,"\\("),Y=Y.replace(/\)/g,"\\)")),H.attr("stroke-width",2),H.attr("stroke","none"),H.style("fill","none"),(C===p.db.LINETYPE.SOLID||C===p.db.LINETYPE.DOTTED)&&H.attr("marker-end","url("+Y+"#arrowhead)"),(C===p.db.LINETYPE.SOLID_POINT||C===p.db.LINETYPE.DOTTED_POINT)&&H.attr("marker-end","url("+Y+"#filled-head)"),(C===p.db.LINETYPE.SOLID_CROSS||C===p.db.LINETYPE.DOTTED_CROSS)&&H.attr("marker-end","url("+Y+"#crosshead)"),(P||dn.showSequenceNumbers)&&(H.attr("marker-start","url("+Y+"#sequencenumber)"),i.append("text").attr("x",v).attr("y",f+4).attr("font-family","sans-serif").attr("font-size","12px").attr("text-anchor","middle").attr("class","sequenceNumber").text(D))},tgt=function(i,a,f,p,v,m,b){if(v.hideUnusedParticipants===!0){const B=new Set;m.forEach(j=>{B.add(j.from),B.add(j.to)}),f=f.filter(j=>B.has(j))}let E=0,C=0,D=0,P;for(const B of f){const j=a[B],R=j.box;P&&P!=R&&(b||ai.models.addBox(P),C+=dn.boxMargin+P.margin),R&&R!=P&&(b||(R.x=E+C,R.y=p),C+=R.margin),j.width=j.width||dn.width,j.height=yi.getMax(j.height||dn.height,dn.height),j.margin=j.margin||dn.actorMargin,j.x=E+C,j.y=ai.getVerticalPos();const H=qf.drawActor(i,j,dn,b);D=yi.getMax(D,H),ai.insert(j.x,p,j.x+j.width,j.height),E+=j.width+C,j.box&&(j.box.width=E+R.margin-j.box.x),C=j.margin,P=j.box,ai.models.addActor(j)}P&&!b&&ai.models.addBox(P),ai.bumpVerticalPos(D)},YBt=function(i,a,f,p){let v=0,m=0;for(const b of f){const E=a[b],C=eHe(E),D=qf.drawPopup(i,E,C,dn,dn.forceMenus,p);D.height>v&&(v=D.height),D.width+E.x>m&&(m=D.width+E.x)}return{maxHeight:v,maxWidth:m}},XBt=function(i){rd(dn,i),i.fontFamily&&(dn.actorFontFamily=dn.noteFontFamily=dn.messageFontFamily=i.fontFamily),i.fontSize&&(dn.actorFontSize=dn.noteFontSize=dn.messageFontSize=i.fontSize),i.fontWeight&&(dn.actorFontWeight=dn.noteFontWeight=dn.messageFontWeight=i.fontWeight)},xK=function(i){return ai.activations.filter(function(a){return a.actor===i})},QBt=function(i,a){const f=a[i],p=xK(i),v=p.reduce(function(b,E){return yi.getMin(b,E.startx)},f.x+f.width/2),m=p.reduce(function(b,E){return yi.getMax(b,E.stopx)},f.x+f.width/2);return[v,m]};function y3(i,a,f,p,v){ai.bumpVerticalPos(f);let m=p;if(a.id&&a.message&&i[a.id]){const b=i[a.id].width,E=wE(dn);a.message=lo.wrapLabel(`[${a.message}]`,b-2*dn.wrapPadding,E),a.width=b,a.wrap=!0;const C=lo.calculateTextDimensions(a.message,E),D=yi.getMax(C.height,dn.labelBoxHeight);m=p+D,zt.debug(`${D} - ${a.message}`)}v(a),ai.bumpVerticalPos(m)}const Jqe=function(i,a,f,p){const{securityLevel:v,sequence:m}=Oe();dn=m,p.db.clear(),p.parser.parse(i);let b;v==="sandbox"&&(b=Mr("#i"+a));const E=Mr(v==="sandbox"?b.nodes()[0].contentDocument.body:"body"),C=v==="sandbox"?b.nodes()[0].contentDocument:document;ai.init(),zt.debug(p.db);const D=v==="sandbox"?E.select(`[id="${a}"]`):Mr(`[id="${a}"]`),P=p.db.getActors(),B=p.db.getBoxes(),j=p.db.getActorKeys(),R=p.db.getMessages(),H=p.db.getDiagramTitle(),Y=p.db.hasAtLeastOneBox(),it=p.db.hasAtLeastOneBoxWithTitle(),nt=tHe(P,R,p);dn.height=nHe(P,nt,B),qf.insertComputerIcon(D),qf.insertDatabaseIcon(D),qf.insertClockIcon(D),Y&&(ai.bumpVerticalPos(dn.boxMargin),it&&ai.bumpVerticalPos(B[0].textMaxHeight)),tgt(D,P,j,0,dn,R,!1);const st=sHe(R,P,nt,p);qf.insertArrowHead(D),qf.insertArrowCrossHead(D),qf.insertArrowFilledHead(D),qf.insertSequenceNumber(D);function pt(Rt,ft){const de=ai.endActivation(Rt);de.starty+18>ft&&(de.starty=ft-6,ft+=12),qf.drawActivation(D,de,ft,dn,xK(Rt.from.actor).length),ai.insert(de.startx,ft-10,de.stopx,ft)}let Tt=1,kt=1;const yt=[];R.forEach(function(Rt){let ft,de,J;switch(Rt.type){case p.db.LINETYPE.NOTE:ai.resetVerticalPos(),de=Rt.noteModel,Xqe(D,de);break;case p.db.LINETYPE.ACTIVE_START:ai.newActivation(Rt,D,P);break;case p.db.LINETYPE.ACTIVE_END:pt(Rt,ai.getVerticalPos());break;case p.db.LINETYPE.LOOP_START:y3(st,Rt,dn.boxMargin,dn.boxMargin+dn.boxTextMargin,ae=>ai.newLoop(ae));break;case p.db.LINETYPE.LOOP_END:ft=ai.endLoop(),qf.drawLoop(D,ft,"loop",dn),ai.bumpVerticalPos(ft.stopy-ai.getVerticalPos()),ai.models.addLoop(ft);break;case p.db.LINETYPE.RECT_START:y3(st,Rt,dn.boxMargin,dn.boxMargin,ae=>ai.newLoop(void 0,ae.message));break;case p.db.LINETYPE.RECT_END:ft=ai.endLoop(),qf.drawBackgroundRect(D,ft),ai.models.addLoop(ft),ai.bumpVerticalPos(ft.stopy-ai.getVerticalPos());break;case p.db.LINETYPE.OPT_START:y3(st,Rt,dn.boxMargin,dn.boxMargin+dn.boxTextMargin,ae=>ai.newLoop(ae));break;case p.db.LINETYPE.OPT_END:ft=ai.endLoop(),qf.drawLoop(D,ft,"opt",dn),ai.bumpVerticalPos(ft.stopy-ai.getVerticalPos()),ai.models.addLoop(ft);break;case p.db.LINETYPE.ALT_START:y3(st,Rt,dn.boxMargin,dn.boxMargin+dn.boxTextMargin,ae=>ai.newLoop(ae));break;case p.db.LINETYPE.ALT_ELSE:y3(st,Rt,dn.boxMargin+dn.boxTextMargin,dn.boxMargin,ae=>ai.addSectionToLoop(ae));break;case p.db.LINETYPE.ALT_END:ft=ai.endLoop(),qf.drawLoop(D,ft,"alt",dn),ai.bumpVerticalPos(ft.stopy-ai.getVerticalPos()),ai.models.addLoop(ft);break;case p.db.LINETYPE.PAR_START:case p.db.LINETYPE.PAR_OVER_START:y3(st,Rt,dn.boxMargin,dn.boxMargin+dn.boxTextMargin,ae=>ai.newLoop(ae)),ai.saveVerticalPos();break;case p.db.LINETYPE.PAR_AND:y3(st,Rt,dn.boxMargin+dn.boxTextMargin,dn.boxMargin,ae=>ai.addSectionToLoop(ae));break;case p.db.LINETYPE.PAR_END:ft=ai.endLoop(),qf.drawLoop(D,ft,"par",dn),ai.bumpVerticalPos(ft.stopy-ai.getVerticalPos()),ai.models.addLoop(ft);break;case p.db.LINETYPE.AUTONUMBER:Tt=Rt.message.start||Tt,kt=Rt.message.step||kt,Rt.message.visible?p.db.enableSequenceNumbers():p.db.disableSequenceNumbers();break;case p.db.LINETYPE.CRITICAL_START:y3(st,Rt,dn.boxMargin,dn.boxMargin+dn.boxTextMargin,ae=>ai.newLoop(ae));break;case p.db.LINETYPE.CRITICAL_OPTION:y3(st,Rt,dn.boxMargin+dn.boxTextMargin,dn.boxMargin,ae=>ai.addSectionToLoop(ae));break;case p.db.LINETYPE.CRITICAL_END:ft=ai.endLoop(),qf.drawLoop(D,ft,"critical",dn),ai.bumpVerticalPos(ft.stopy-ai.getVerticalPos()),ai.models.addLoop(ft);break;case p.db.LINETYPE.BREAK_START:y3(st,Rt,dn.boxMargin,dn.boxMargin+dn.boxTextMargin,ae=>ai.newLoop(ae));break;case p.db.LINETYPE.BREAK_END:ft=ai.endLoop(),qf.drawLoop(D,ft,"break",dn),ai.bumpVerticalPos(ft.stopy-ai.getVerticalPos()),ai.models.addLoop(ft);break;default:try{ai.resetVerticalPos(),J=Rt.msgModel,J.starty=ai.getVerticalPos(),J.sequenceIndex=Tt,J.sequenceVisible=p.db.showSequenceNumbers();const ae=Qqe(D,J);yt.push({messageModel:J,lineStartY:ae}),ai.models.addMessage(J)}catch(ae){zt.error("error while drawing message",ae)}}[p.db.LINETYPE.SOLID_OPEN,p.db.LINETYPE.DOTTED_OPEN,p.db.LINETYPE.SOLID,p.db.LINETYPE.DOTTED,p.db.LINETYPE.SOLID_CROSS,p.db.LINETYPE.DOTTED_CROSS,p.db.LINETYPE.SOLID_POINT,p.db.LINETYPE.DOTTED_POINT].includes(Rt.type)&&(Tt=Tt+kt)}),yt.forEach(Rt=>Zqe(D,Rt.messageModel,Rt.lineStartY,p)),dn.mirrorActors&&(ai.bumpVerticalPos(dn.boxMargin*2),tgt(D,P,j,ai.getVerticalPos(),dn,R,!0),ai.bumpVerticalPos(dn.boxMargin),UBt(D,ai.getVerticalPos())),ai.models.boxes.forEach(function(Rt){Rt.height=ai.getVerticalPos()-Rt.y,ai.insert(Rt.x,Rt.y,Rt.x+Rt.width,Rt.height),Rt.startx=Rt.x,Rt.starty=Rt.y,Rt.stopx=Rt.startx+Rt.width,Rt.stopy=Rt.starty+Rt.height,Rt.stroke="rgb(0,0,0, 0.5)",qf.drawBox(D,Rt,dn)}),Y&&ai.bumpVerticalPos(dn.boxMargin);const ht=YBt(D,P,j,C),{bounds:mt}=ai.getBounds();zt.debug("For line height fix Querying: #"+a+" .actor-line"),zft("#"+a+" .actor-line").attr("y2",mt.stopy);let wt=mt.stopy-mt.starty;wt{const b=i[m];b.wrap&&(b.description=lo.wrapLabel(b.description,dn.width-2*dn.wrapPadding,J0t(dn)));const E=lo.calculateTextDimensions(b.description,J0t(dn));b.width=b.wrap?dn.width:yi.getMax(dn.width,E.width+2*dn.wrapPadding),b.height=b.wrap?yi.getMax(E.height,dn.height):dn.height,p=yi.getMax(p,b.height)});for(const m in a){const b=i[m];if(!b)continue;const E=i[b.nextActor];if(!E){const B=a[m]+dn.actorMargin-b.width/2;b.margin=yi.getMax(B,dn.actorMargin);continue}const D=a[m]+dn.actorMargin-b.width/2-E.width/2;b.margin=yi.getMax(D,dn.actorMargin)}let v=0;return f.forEach(m=>{const b=wE(dn);let E=m.actorKeys.reduce((P,B)=>P+=i[B].width+(i[B].margin||0),0);E-=2*dn.boxTextMargin,m.wrap&&(m.name=lo.wrapLabel(m.name,E-2*dn.wrapPadding,b));const C=lo.calculateTextDimensions(m.name,b);v=yi.getMax(C.height,v);const D=yi.getMax(E,C.width+2*dn.wrapPadding);if(m.margin=dn.boxTextMargin,Em.textMaxHeight=v),yi.getMax(p,dn.height)}const rHe=function(i,a,f){const p=a[i.from].x,v=a[i.to].x,m=i.wrap&&i.message;let b=lo.calculateTextDimensions(m?lo.wrapLabel(i.message,dn.width,lL(dn)):i.message,lL(dn));const E={width:m?dn.width:yi.getMax(dn.width,b.width+2*dn.noteMargin),height:0,startx:a[i.from].x,stopx:0,starty:0,stopy:0,message:i.message};return i.placement===f.db.PLACEMENT.RIGHTOF?(E.width=m?yi.getMax(dn.width,b.width):yi.getMax(a[i.from].width/2+a[i.to].width/2,b.width+2*dn.noteMargin),E.startx=p+(a[i.from].width+dn.actorMargin)/2):i.placement===f.db.PLACEMENT.LEFTOF?(E.width=m?yi.getMax(dn.width,b.width+2*dn.noteMargin):yi.getMax(a[i.from].width/2+a[i.to].width/2,b.width+2*dn.noteMargin),E.startx=p-E.width+(a[i.from].width-dn.actorMargin)/2):i.to===i.from?(b=lo.calculateTextDimensions(m?lo.wrapLabel(i.message,yi.getMax(dn.width,a[i.from].width),lL(dn)):i.message,lL(dn)),E.width=m?yi.getMax(dn.width,a[i.from].width):yi.getMax(a[i.from].width,dn.width,b.width+2*dn.noteMargin),E.startx=p+(a[i.from].width-E.width)/2):(E.width=Math.abs(p+a[i.from].width/2-(v+a[i.to].width/2))+dn.actorMargin,E.startx=pj.actor).lastIndexOf(D.from.actor);delete ai.activations.splice(B,1)[0]}break}D.placement!==void 0?(E=rHe(D,a,p),D.noteModel=E,m.forEach(B=>{b=B,b.from=yi.getMin(b.from,E.startx),b.to=yi.getMax(b.to,E.startx+E.width),b.width=yi.getMax(b.width,Math.abs(b.from-b.to))-dn.labelBoxWidth})):(C=iHe(D,a,p),D.msgModel=C,C.startx&&C.stopx&&m.length>0&&m.forEach(B=>{if(b=B,C.startx===C.stopx){const j=a[D.from],R=a[D.to];b.from=yi.getMin(j.x-C.width/2,j.x-j.width/2,b.from),b.to=yi.getMax(R.x+C.width/2,R.x+j.width/2,b.to),b.width=yi.getMax(b.width,Math.abs(b.to-b.from))-dn.labelBoxWidth}else b.from=yi.getMin(C.startx,b.from),b.to=yi.getMax(C.stopx,b.to),b.width=yi.getMax(b.width,C.width)-dn.labelBoxWidth}))}),ai.activations=[],zt.debug("Loop type widths:",v),v},aHe=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:iqe,db:Sqe,renderer:{bounds:ai,drawActors:tgt,drawActorsPopup:YBt,setConf:XBt,draw:Jqe},styles:Aqe}},Symbol.toStringTag,{value:"Module"}));var egt=function(){var i=function(Gt,un,jt,Ke){for(jt=jt||{},Ke=Gt.length;Ke--;jt[Gt[Ke]]=un);return jt},a=[1,34],f=[1,35],p=[1,36],v=[1,37],m=[1,9],b=[1,8],E=[1,19],C=[1,20],D=[1,21],P=[1,40],B=[1,41],j=[1,27],R=[1,25],H=[1,26],Y=[1,32],it=[1,33],nt=[1,28],st=[1,29],pt=[1,30],Tt=[1,31],kt=[1,45],yt=[1,42],ht=[1,43],mt=[1,44],rt=[1,46],wt=[1,24],gt=[1,16,24],lt=[1,60],_t=[1,61],X=[1,62],Rt=[1,63],ft=[1,64],de=[1,65],J=[1,66],ae=[1,16,24,52],Wt=[1,77],It=[1,16,24,27,28,36,50,52,55,68,69,70,71,72,73,74,79,81],Nt=[1,16,24,27,28,34,36,50,52,55,59,68,69,70,71,72,73,74,79,81,94,96,97,98,99],me=[1,86],Ue=[28,94,96,97,98,99],_n=[28,73,74,94,96,97,98,99],_e=[28,68,69,70,71,72,94,96,97,98,99],rr=[1,99],Te=[1,16,24,50,52,55],ne=[1,16,24,36],Ee=[8,9,10,11,19,23,44,46,48,53,57,58,60,61,63,65,75,76,78,82,94,96,97,98,99],ye={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,directive:5,statements:6,direction:7,direction_tb:8,direction_bt:9,direction_rl:10,direction_lr:11,graphConfig:12,openDirective:13,typeDirective:14,closeDirective:15,NEWLINE:16,":":17,argDirective:18,open_directive:19,type_directive:20,arg_directive:21,close_directive:22,CLASS_DIAGRAM:23,EOF:24,statement:25,classLabel:26,SQS:27,STR:28,SQE:29,namespaceName:30,alphaNumToken:31,className:32,classLiteralName:33,GENERICTYPE:34,relationStatement:35,LABEL:36,namespaceStatement:37,classStatement:38,methodStatement:39,annotationStatement:40,clickStatement:41,cssClassStatement:42,noteStatement:43,acc_title:44,acc_title_value:45,acc_descr:46,acc_descr_value:47,acc_descr_multiline_value:48,namespaceIdentifier:49,STRUCT_START:50,classStatements:51,STRUCT_STOP:52,NAMESPACE:53,classIdentifier:54,STYLE_SEPARATOR:55,members:56,CLASS:57,ANNOTATION_START:58,ANNOTATION_END:59,MEMBER:60,SEPARATOR:61,relation:62,NOTE_FOR:63,noteText:64,NOTE:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,CSSCLASS:82,commentToken:83,textToken:84,graphCodeTokens:85,textNoTagsToken:86,TAGSTART:87,TAGEND:88,"==":89,"--":90,PCT:91,DEFAULT:92,SPACE:93,MINUS:94,keywords:95,UNICODE_TEXT:96,NUM:97,ALPHA:98,BQUOTE_STR:99,$accept:0,$end:1},terminals_:{2:"error",8:"direction_tb",9:"direction_bt",10:"direction_rl",11:"direction_lr",16:"NEWLINE",17:":",19:"open_directive",20:"type_directive",21:"arg_directive",22:"close_directive",23:"CLASS_DIAGRAM",24:"EOF",27:"SQS",28:"STR",29:"SQE",34:"GENERICTYPE",36:"LABEL",44:"acc_title",45:"acc_title_value",46:"acc_descr",47:"acc_descr_value",48:"acc_descr_multiline_value",50:"STRUCT_START",52:"STRUCT_STOP",53:"NAMESPACE",55:"STYLE_SEPARATOR",57:"CLASS",58:"ANNOTATION_START",59:"ANNOTATION_END",60:"MEMBER",61:"SEPARATOR",63:"NOTE_FOR",65:"NOTE",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"CSSCLASS",85:"graphCodeTokens",87:"TAGSTART",88:"TAGEND",89:"==",90:"--",91:"PCT",92:"DEFAULT",93:"SPACE",94:"MINUS",95:"keywords",96:"UNICODE_TEXT",97:"NUM",98:"ALPHA",99:"BQUOTE_STR"},productions_:[0,[3,1],[3,2],[3,1],[7,1],[7,1],[7,1],[7,1],[4,1],[5,4],[5,6],[13,1],[14,1],[18,1],[15,1],[12,4],[6,1],[6,2],[6,3],[26,3],[30,1],[30,2],[32,1],[32,1],[32,2],[32,2],[32,2],[25,1],[25,2],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,2],[25,2],[25,1],[37,4],[37,5],[49,2],[51,1],[51,2],[51,3],[38,1],[38,3],[38,4],[38,6],[54,2],[54,3],[40,4],[56,1],[56,2],[39,1],[39,2],[39,1],[39,1],[35,3],[35,4],[35,4],[35,5],[43,3],[43,2],[62,3],[62,2],[62,2],[62,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[41,3],[41,4],[41,3],[41,4],[41,4],[41,5],[41,3],[41,4],[41,4],[41,5],[41,3],[41,4],[41,4],[41,5],[42,3],[83,1],[83,1],[84,1],[84,1],[84,1],[84,1],[84,1],[84,1],[84,1],[86,1],[86,1],[86,1],[86,1],[31,1],[31,1],[31,1],[31,1],[33,1],[64,1]],performAction:function(un,jt,Ke,oe,Or,Le,Nr){var fe=Le.length-1;switch(Or){case 4:oe.setDirection("TB");break;case 5:oe.setDirection("BT");break;case 6:oe.setDirection("RL");break;case 7:oe.setDirection("LR");break;case 11:oe.parseDirective("%%{","open_directive");break;case 12:oe.parseDirective(Le[fe],"type_directive");break;case 13:Le[fe]=Le[fe].trim().replace(/'/g,'"'),oe.parseDirective(Le[fe],"arg_directive");break;case 14:oe.parseDirective("}%%","close_directive","class");break;case 19:this.$=Le[fe-1];break;case 20:case 22:case 23:this.$=Le[fe];break;case 21:case 24:this.$=Le[fe-1]+Le[fe];break;case 25:case 26:this.$=Le[fe-1]+"~"+Le[fe]+"~";break;case 27:oe.addRelation(Le[fe]);break;case 28:Le[fe-1].title=oe.cleanupLabel(Le[fe]),oe.addRelation(Le[fe-1]);break;case 37:this.$=Le[fe].trim(),oe.setAccTitle(this.$);break;case 38:case 39:this.$=Le[fe].trim(),oe.setAccDescription(this.$);break;case 40:oe.addClassesToNamespace(Le[fe-3],Le[fe-1]);break;case 41:oe.addClassesToNamespace(Le[fe-4],Le[fe-1]);break;case 42:this.$=Le[fe],oe.addNamespace(Le[fe]);break;case 43:this.$=[Le[fe]];break;case 44:this.$=[Le[fe-1]];break;case 45:Le[fe].unshift(Le[fe-2]),this.$=Le[fe];break;case 47:oe.setCssClass(Le[fe-2],Le[fe]);break;case 48:oe.addMembers(Le[fe-3],Le[fe-1]);break;case 49:oe.setCssClass(Le[fe-5],Le[fe-3]),oe.addMembers(Le[fe-5],Le[fe-1]);break;case 50:this.$=Le[fe],oe.addClass(Le[fe]);break;case 51:this.$=Le[fe-1],oe.addClass(Le[fe-1]),oe.setClassLabel(Le[fe-1],Le[fe]);break;case 52:oe.addAnnotation(Le[fe],Le[fe-2]);break;case 53:this.$=[Le[fe]];break;case 54:Le[fe].push(Le[fe-1]),this.$=Le[fe];break;case 55:break;case 56:oe.addMember(Le[fe-1],oe.cleanupLabel(Le[fe]));break;case 57:break;case 58:break;case 59:this.$={id1:Le[fe-2],id2:Le[fe],relation:Le[fe-1],relationTitle1:"none",relationTitle2:"none"};break;case 60:this.$={id1:Le[fe-3],id2:Le[fe],relation:Le[fe-1],relationTitle1:Le[fe-2],relationTitle2:"none"};break;case 61:this.$={id1:Le[fe-3],id2:Le[fe],relation:Le[fe-2],relationTitle1:"none",relationTitle2:Le[fe-1]};break;case 62:this.$={id1:Le[fe-4],id2:Le[fe],relation:Le[fe-2],relationTitle1:Le[fe-3],relationTitle2:Le[fe-1]};break;case 63:oe.addNote(Le[fe],Le[fe-1]);break;case 64:oe.addNote(Le[fe]);break;case 65:this.$={type1:Le[fe-2],type2:Le[fe],lineType:Le[fe-1]};break;case 66:this.$={type1:"none",type2:Le[fe],lineType:Le[fe-1]};break;case 67:this.$={type1:Le[fe-1],type2:"none",lineType:Le[fe]};break;case 68:this.$={type1:"none",type2:"none",lineType:Le[fe]};break;case 69:this.$=oe.relationType.AGGREGATION;break;case 70:this.$=oe.relationType.EXTENSION;break;case 71:this.$=oe.relationType.COMPOSITION;break;case 72:this.$=oe.relationType.DEPENDENCY;break;case 73:this.$=oe.relationType.LOLLIPOP;break;case 74:this.$=oe.lineType.LINE;break;case 75:this.$=oe.lineType.DOTTED_LINE;break;case 76:case 82:this.$=Le[fe-2],oe.setClickEvent(Le[fe-1],Le[fe]);break;case 77:case 83:this.$=Le[fe-3],oe.setClickEvent(Le[fe-2],Le[fe-1]),oe.setTooltip(Le[fe-2],Le[fe]);break;case 78:case 86:this.$=Le[fe-2],oe.setLink(Le[fe-1],Le[fe]);break;case 79:this.$=Le[fe-3],oe.setLink(Le[fe-2],Le[fe-1],Le[fe]);break;case 80:case 88:this.$=Le[fe-3],oe.setLink(Le[fe-2],Le[fe-1]),oe.setTooltip(Le[fe-2],Le[fe]);break;case 81:case 89:this.$=Le[fe-4],oe.setLink(Le[fe-3],Le[fe-2],Le[fe]),oe.setTooltip(Le[fe-3],Le[fe-1]);break;case 84:this.$=Le[fe-3],oe.setClickEvent(Le[fe-2],Le[fe-1],Le[fe]);break;case 85:this.$=Le[fe-4],oe.setClickEvent(Le[fe-3],Le[fe-2],Le[fe-1]),oe.setTooltip(Le[fe-3],Le[fe]);break;case 87:this.$=Le[fe-3],oe.setLink(Le[fe-2],Le[fe-1],Le[fe]);break;case 90:oe.setCssClass(Le[fe-1],Le[fe]);break}},table:[{3:1,4:2,5:3,6:4,7:18,8:a,9:f,10:p,11:v,12:5,13:6,19:m,23:b,25:7,31:38,32:22,33:39,35:10,37:11,38:12,39:13,40:14,41:15,42:16,43:17,44:E,46:C,48:D,49:23,53:P,54:24,57:B,58:j,60:R,61:H,63:Y,65:it,75:nt,76:st,78:pt,82:Tt,94:kt,96:yt,97:ht,98:mt,99:rt},{1:[3]},{1:[2,1]},{3:47,4:2,5:3,6:4,7:18,8:a,9:f,10:p,11:v,12:5,13:6,19:m,23:b,25:7,31:38,32:22,33:39,35:10,37:11,38:12,39:13,40:14,41:15,42:16,43:17,44:E,46:C,48:D,49:23,53:P,54:24,57:B,58:j,60:R,61:H,63:Y,65:it,75:nt,76:st,78:pt,82:Tt,94:kt,96:yt,97:ht,98:mt,99:rt},{1:[2,3]},{1:[2,8]},{14:48,20:[1,49]},i(wt,[2,16],{16:[1,50]}),{16:[1,51]},{20:[2,11]},i(gt,[2,27],{36:[1,52]}),i(gt,[2,29]),i(gt,[2,30]),i(gt,[2,31]),i(gt,[2,32]),i(gt,[2,33]),i(gt,[2,34]),i(gt,[2,35]),i(gt,[2,36]),{45:[1,53]},{47:[1,54]},i(gt,[2,39]),i(gt,[2,55],{62:55,66:58,67:59,28:[1,56],36:[1,57],68:lt,69:_t,70:X,71:Rt,72:ft,73:de,74:J}),{50:[1,67]},i(ae,[2,46],{50:[1,69],55:[1,68]}),i(gt,[2,57]),i(gt,[2,58]),{31:70,94:kt,96:yt,97:ht,98:mt},{31:38,32:71,33:39,94:kt,96:yt,97:ht,98:mt,99:rt},{31:38,32:72,33:39,94:kt,96:yt,97:ht,98:mt,99:rt},{31:38,32:73,33:39,94:kt,96:yt,97:ht,98:mt,99:rt},{28:[1,74]},{31:38,32:75,33:39,94:kt,96:yt,97:ht,98:mt,99:rt},{28:Wt,64:76},i(gt,[2,4]),i(gt,[2,5]),i(gt,[2,6]),i(gt,[2,7]),i(It,[2,22],{31:38,33:39,32:78,34:[1,79],94:kt,96:yt,97:ht,98:mt,99:rt}),i(It,[2,23],{34:[1,80]}),{30:81,31:82,94:kt,96:yt,97:ht,98:mt},{31:38,32:83,33:39,94:kt,96:yt,97:ht,98:mt,99:rt},i(Nt,[2,104]),i(Nt,[2,105]),i(Nt,[2,106]),i(Nt,[2,107]),i([1,16,24,27,28,34,36,50,52,55,68,69,70,71,72,73,74,79,81],[2,108]),{1:[2,2]},{15:84,17:[1,85],22:me},i([17,22],[2,12]),i(wt,[2,17],{25:7,35:10,37:11,38:12,39:13,40:14,41:15,42:16,43:17,7:18,32:22,49:23,54:24,31:38,33:39,6:87,8:a,9:f,10:p,11:v,44:E,46:C,48:D,53:P,57:B,58:j,60:R,61:H,63:Y,65:it,75:nt,76:st,78:pt,82:Tt,94:kt,96:yt,97:ht,98:mt,99:rt}),{6:88,7:18,8:a,9:f,10:p,11:v,25:7,31:38,32:22,33:39,35:10,37:11,38:12,39:13,40:14,41:15,42:16,43:17,44:E,46:C,48:D,49:23,53:P,54:24,57:B,58:j,60:R,61:H,63:Y,65:it,75:nt,76:st,78:pt,82:Tt,94:kt,96:yt,97:ht,98:mt,99:rt},i(gt,[2,28]),i(gt,[2,37]),i(gt,[2,38]),{28:[1,90],31:38,32:89,33:39,94:kt,96:yt,97:ht,98:mt,99:rt},{62:91,66:58,67:59,68:lt,69:_t,70:X,71:Rt,72:ft,73:de,74:J},i(gt,[2,56]),{67:92,73:de,74:J},i(Ue,[2,68],{66:93,68:lt,69:_t,70:X,71:Rt,72:ft}),i(_n,[2,69]),i(_n,[2,70]),i(_n,[2,71]),i(_n,[2,72]),i(_n,[2,73]),i(_e,[2,74]),i(_e,[2,75]),{16:[1,95],38:96,51:94,54:24,57:B},{31:97,94:kt,96:yt,97:ht,98:mt},{56:98,60:rr},{59:[1,100]},{28:[1,101]},{28:[1,102]},{79:[1,103],81:[1,104]},{31:105,94:kt,96:yt,97:ht,98:mt},{28:Wt,64:106},i(gt,[2,64]),i(gt,[2,109]),i(It,[2,24]),i(It,[2,25]),i(It,[2,26]),{50:[2,42]},{30:107,31:82,50:[2,20],94:kt,96:yt,97:ht,98:mt},i(Te,[2,50],{26:108,27:[1,109]}),{16:[1,110]},{18:111,21:[1,112]},{16:[2,14]},i(wt,[2,18]),{24:[1,113]},i(ne,[2,59]),{31:38,32:114,33:39,94:kt,96:yt,97:ht,98:mt,99:rt},{28:[1,116],31:38,32:115,33:39,94:kt,96:yt,97:ht,98:mt,99:rt},i(Ue,[2,67],{66:117,68:lt,69:_t,70:X,71:Rt,72:ft}),i(Ue,[2,66]),{52:[1,118]},{38:96,51:119,54:24,57:B},{16:[1,120],52:[2,43]},i(ae,[2,47],{50:[1,121]}),{52:[1,122]},{52:[2,53],56:123,60:rr},{31:38,32:124,33:39,94:kt,96:yt,97:ht,98:mt,99:rt},i(gt,[2,76],{28:[1,125]}),i(gt,[2,78],{28:[1,127],77:[1,126]}),i(gt,[2,82],{28:[1,128],80:[1,129]}),i(gt,[2,86],{28:[1,131],77:[1,130]}),i(gt,[2,90]),i(gt,[2,63]),{50:[2,21]},i(Te,[2,51]),{28:[1,132]},i(Ee,[2,9]),{15:133,22:me},{22:[2,13]},{1:[2,15]},i(ne,[2,61]),i(ne,[2,60]),{31:38,32:134,33:39,94:kt,96:yt,97:ht,98:mt,99:rt},i(Ue,[2,65]),i(gt,[2,40]),{52:[1,135]},{38:96,51:136,52:[2,44],54:24,57:B},{56:137,60:rr},i(ae,[2,48]),{52:[2,54]},i(gt,[2,52]),i(gt,[2,77]),i(gt,[2,79]),i(gt,[2,80],{77:[1,138]}),i(gt,[2,83]),i(gt,[2,84],{28:[1,139]}),i(gt,[2,87]),i(gt,[2,88],{77:[1,140]}),{29:[1,141]},{16:[1,142]},i(ne,[2,62]),i(gt,[2,41]),{52:[2,45]},{52:[1,143]},i(gt,[2,81]),i(gt,[2,85]),i(gt,[2,89]),i(Te,[2,19]),i(Ee,[2,10]),i(ae,[2,49])],defaultActions:{2:[2,1],4:[2,3],5:[2,8],9:[2,11],47:[2,2],81:[2,42],86:[2,14],107:[2,21],112:[2,13],113:[2,15],123:[2,54],136:[2,45]},parseError:function(un,jt){if(jt.recoverable)this.trace(un);else{var Ke=new Error(un);throw Ke.hash=jt,Ke}},parse:function(un){var jt=this,Ke=[0],oe=[],Or=[null],Le=[],Nr=this.table,fe="",sr=0,Yn=0,tr=2,ur=1,gn=Le.slice.call(arguments,1),En=Object.create(this.lexer),Dr={yy:{}};for(var hr in this.yy)Object.prototype.hasOwnProperty.call(this.yy,hr)&&(Dr.yy[hr]=this.yy[hr]);En.setInput(un,Dr.yy),Dr.yy.lexer=En,Dr.yy.parser=this,typeof En.yylloc>"u"&&(En.yylloc={});var Ki=En.yylloc;Le.push(Ki);var Is=En.options&&En.options.ranges;typeof Dr.yy.parseError=="function"?this.parseError=Dr.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ha(){var ss;return ss=oe.pop()||En.lex()||ur,typeof ss!="number"&&(ss instanceof Array&&(oe=ss,ss=oe.pop()),ss=jt.symbols_[ss]||ss),ss}for(var hi,qi,zn,Zn,Pr={},On,xi,In,rc;;){if(qi=Ke[Ke.length-1],this.defaultActions[qi]?zn=this.defaultActions[qi]:((hi===null||typeof hi>"u")&&(hi=Ha()),zn=Nr[qi]&&Nr[qi][hi]),typeof zn>"u"||!zn.length||!zn[0]){var qn="";rc=[];for(On in Nr[qi])this.terminals_[On]&&On>tr&&rc.push("'"+this.terminals_[On]+"'");En.showPosition?qn="Parse error on line "+(sr+1)+`: -`+En.showPosition()+` -Expecting `+rc.join(", ")+", got '"+(this.terminals_[hi]||hi)+"'":qn="Parse error on line "+(sr+1)+": Unexpected "+(hi==ur?"end of input":"'"+(this.terminals_[hi]||hi)+"'"),this.parseError(qn,{text:En.match,token:this.terminals_[hi]||hi,line:En.yylineno,loc:Ki,expected:rc})}if(zn[0]instanceof Array&&zn.length>1)throw new Error("Parse Error: multiple actions possible at state: "+qi+", token: "+hi);switch(zn[0]){case 1:Ke.push(hi),Or.push(En.yytext),Le.push(En.yylloc),Ke.push(zn[1]),hi=null,Yn=En.yyleng,fe=En.yytext,sr=En.yylineno,Ki=En.yylloc;break;case 2:if(xi=this.productions_[zn[1]][1],Pr.$=Or[Or.length-xi],Pr._$={first_line:Le[Le.length-(xi||1)].first_line,last_line:Le[Le.length-1].last_line,first_column:Le[Le.length-(xi||1)].first_column,last_column:Le[Le.length-1].last_column},Is&&(Pr._$.range=[Le[Le.length-(xi||1)].range[0],Le[Le.length-1].range[1]]),Zn=this.performAction.apply(Pr,[fe,Yn,sr,Dr.yy,zn[1],Or,Le].concat(gn)),typeof Zn<"u")return Zn;xi&&(Ke=Ke.slice(0,-1*xi*2),Or=Or.slice(0,-1*xi),Le=Le.slice(0,-1*xi)),Ke.push(this.productions_[zn[1]][0]),Or.push(Pr.$),Le.push(Pr._$),In=Nr[Ke[Ke.length-2]][Ke[Ke.length-1]],Ke.push(In);break;case 3:return!0}}return!0}},Vt=function(){var Gt={EOF:1,parseError:function(jt,Ke){if(this.yy.parser)this.yy.parser.parseError(jt,Ke);else throw new Error(jt)},setInput:function(un,jt){return this.yy=jt||this.yy||{},this._input=un,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var un=this._input[0];this.yytext+=un,this.yyleng++,this.offset++,this.match+=un,this.matched+=un;var jt=un.match(/(?:\r\n?|\n).*/g);return jt?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),un},unput:function(un){var jt=un.length,Ke=un.split(/(?:\r\n?|\n)/g);this._input=un+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-jt),this.offset-=jt;var oe=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Ke.length-1&&(this.yylineno-=Ke.length-1);var Or=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Ke?(Ke.length===oe.length?this.yylloc.first_column:0)+oe[oe.length-Ke.length].length-Ke[0].length:this.yylloc.first_column-jt},this.options.ranges&&(this.yylloc.range=[Or[0],Or[0]+this.yyleng-jt]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). -`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(un){this.unput(this.match.slice(un))},pastInput:function(){var un=this.matched.substr(0,this.matched.length-this.match.length);return(un.length>20?"...":"")+un.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var un=this.match;return un.length<20&&(un+=this._input.substr(0,20-un.length)),(un.substr(0,20)+(un.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var un=this.pastInput(),jt=new Array(un.length+1).join("-");return un+this.upcomingInput()+` -`+jt+"^"},test_match:function(un,jt){var Ke,oe,Or;if(this.options.backtrack_lexer&&(Or={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(Or.yylloc.range=this.yylloc.range.slice(0))),oe=un[0].match(/(?:\r\n?|\n).*/g),oe&&(this.yylineno+=oe.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:oe?oe[oe.length-1].length-oe[oe.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+un[0].length},this.yytext+=un[0],this.match+=un[0],this.matches=un,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(un[0].length),this.matched+=un[0],Ke=this.performAction.call(this,this.yy,this,jt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Ke)return Ke;if(this._backtrack){for(var Le in Or)this[Le]=Or[Le];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var un,jt,Ke,oe;this._more||(this.yytext="",this.match="");for(var Or=this._currentRules(),Le=0;Lejt[0].length)){if(jt=Ke,oe=Le,this.options.backtrack_lexer){if(un=this.test_match(Ke,Or[Le]),un!==!1)return un;if(this._backtrack){jt=!1;continue}else return!1}else if(!this.options.flex)break}return jt?(un=this.test_match(jt,Or[oe]),un!==!1?un:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var jt=this.next();return jt||this.lex()},begin:function(jt){this.conditionStack.push(jt)},popState:function(){var jt=this.conditionStack.length-1;return jt>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(jt){return jt=this.conditionStack.length-1-Math.abs(jt||0),jt>=0?this.conditionStack[jt]:"INITIAL"},pushState:function(jt){this.begin(jt)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(jt,Ke,oe,Or){switch(oe){case 0:return this.begin("open_directive"),19;case 1:return 8;case 2:return 9;case 3:return 10;case 4:return 11;case 5:return this.begin("type_directive"),20;case 6:return this.popState(),this.begin("arg_directive"),17;case 7:return this.popState(),this.popState(),22;case 8:return 21;case 9:break;case 10:break;case 11:return this.begin("acc_title"),44;case 12:return this.popState(),"acc_title_value";case 13:return this.begin("acc_descr"),46;case 14:return this.popState(),"acc_descr_value";case 15:this.begin("acc_descr_multiline");break;case 16:this.popState();break;case 17:return"acc_descr_multiline_value";case 18:return 16;case 19:break;case 20:return 23;case 21:return 23;case 22:return"EDGE_STATE";case 23:return this.begin("namespace"),53;case 24:return this.popState(),16;case 25:break;case 26:return this.begin("namespace-body"),50;case 27:return this.popState(),52;case 28:return"EOF_IN_STRUCT";case 29:return 16;case 30:break;case 31:return"EDGE_STATE";case 32:return this.begin("class"),57;case 33:return this.popState(),16;case 34:break;case 35:return this.popState(),this.popState(),52;case 36:return this.begin("class-body"),50;case 37:return this.popState(),52;case 38:return"EOF_IN_STRUCT";case 39:return"EDGE_STATE";case 40:return"OPEN_IN_STRUCT";case 41:break;case 42:return"MEMBER";case 43:return 82;case 44:return 75;case 45:return 76;case 46:return 78;case 47:return 63;case 48:return 65;case 49:return 58;case 50:return 59;case 51:this.begin("href");break;case 52:this.popState();break;case 53:return 81;case 54:this.begin("callback_name");break;case 55:this.popState();break;case 56:this.popState(),this.begin("callback_args");break;case 57:return 79;case 58:this.popState();break;case 59:return 80;case 60:this.popState();break;case 61:return"GENERICTYPE";case 62:this.begin("generic");break;case 63:this.popState();break;case 64:return"STR";case 65:this.begin("string");break;case 66:this.popState();break;case 67:return"BQUOTE_STR";case 68:this.begin("bqstring");break;case 69:return 77;case 70:return 77;case 71:return 77;case 72:return 77;case 73:return 69;case 74:return 69;case 75:return 71;case 76:return 71;case 77:return 70;case 78:return 68;case 79:return 72;case 80:return 73;case 81:return 74;case 82:return 36;case 83:return 55;case 84:return 94;case 85:return"DOT";case 86:return"PLUS";case 87:return 91;case 88:return"EQUALS";case 89:return"EQUALS";case 90:return 98;case 91:return 27;case 92:return 29;case 93:return"PUNCTUATION";case 94:return 97;case 95:return 96;case 96:return 93;case 97:return 24}},rules:[/^(?:%%\{)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:\[\*\])/,/^(?:namespace\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:\[\*\])/,/^(?:class\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[}])/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\[\*\])/,/^(?:[{])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:note for\b)/,/^(?:note\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:href[\s]+["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:[~])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:["])/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:[`])/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:\s*\(\))/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:\[)/,/^(?:\])/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:$)/],conditions:{"namespace-body":{rules:[27,28,29,30,31,32,43,44,45,46,47,48,49,50,51,54,62,65,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97],inclusive:!1},namespace:{rules:[23,24,25,26,43,44,45,46,47,48,49,50,51,54,62,65,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97],inclusive:!1},"class-body":{rules:[37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,54,62,65,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97],inclusive:!1},class:{rules:[33,34,35,36,43,44,45,46,47,48,49,50,51,54,62,65,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97],inclusive:!1},acc_descr_multiline:{rules:[16,17,43,44,45,46,47,48,49,50,51,54,62,65,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97],inclusive:!1},acc_descr:{rules:[14,43,44,45,46,47,48,49,50,51,54,62,65,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97],inclusive:!1},acc_title:{rules:[12,43,44,45,46,47,48,49,50,51,54,62,65,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97],inclusive:!1},arg_directive:{rules:[7,8,43,44,45,46,47,48,49,50,51,54,62,65,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97],inclusive:!1},type_directive:{rules:[6,7,43,44,45,46,47,48,49,50,51,54,62,65,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97],inclusive:!1},open_directive:{rules:[5,43,44,45,46,47,48,49,50,51,54,62,65,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97],inclusive:!1},callback_args:{rules:[43,44,45,46,47,48,49,50,51,54,58,59,62,65,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97],inclusive:!1},callback_name:{rules:[43,44,45,46,47,48,49,50,51,54,55,56,57,62,65,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97],inclusive:!1},href:{rules:[43,44,45,46,47,48,49,50,51,52,53,54,62,65,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97],inclusive:!1},struct:{rules:[43,44,45,46,47,48,49,50,51,54,62,65,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97],inclusive:!1},generic:{rules:[43,44,45,46,47,48,49,50,51,54,60,61,62,65,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97],inclusive:!1},bqstring:{rules:[43,44,45,46,47,48,49,50,51,54,62,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97],inclusive:!1},string:{rules:[43,44,45,46,47,48,49,50,51,54,62,63,64,65,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,9,10,11,13,15,18,19,20,21,22,23,32,43,44,45,46,47,48,49,50,51,54,62,65,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97],inclusive:!0}}};return Gt}();ye.lexer=Vt;function Ae(){this.yy={}}return Ae.prototype=ye,ye.Parser=Ae,new Ae}();egt.parser=egt;const ZBt=egt,kK="classId-";let ngt=[],sh={},EK=[],rgt=0,fk={},igt=0,AP=[];const O5=i=>yi.sanitizeText(i,Oe()),oHe=function(i,a,f){d1.parseDirective(this,i,a,f)},hL=function(i){let a="",f=i;if(i.indexOf("~")>0){const p=i.split("~");f=O5(p[0]),a=O5(p[1])}return{className:f,type:a}},cHe=function(i,a){a&&(a=O5(a));const{className:f}=hL(i);sh[f].label=a},sgt=function(i){const a=hL(i);sh[a.className]===void 0&&(sh[a.className]={id:a.className,type:a.type,label:a.className,cssClasses:[],methods:[],members:[],annotations:[],domId:kK+a.className+"-"+rgt},rgt++)},JBt=function(i){if(i in sh)return sh[i].domId;throw new Error("Class not found: "+i)},uHe=function(){ngt=[],sh={},EK=[],AP=[],AP.push(eRt),fk={},igt=0,cg()},lHe=function(i){return sh[i]},hHe=function(){return sh},fHe=function(){return ngt},dHe=function(){return EK},gHe=function(i){zt.debug("Adding relation: "+JSON.stringify(i)),sgt(i.id1),sgt(i.id2),i.id1=hL(i.id1).className,i.id2=hL(i.id2).className,i.relationTitle1=yi.sanitizeText(i.relationTitle1.trim(),Oe()),i.relationTitle2=yi.sanitizeText(i.relationTitle2.trim(),Oe()),ngt.push(i)},pHe=function(i,a){const f=hL(i).className;sh[f].annotations.push(a)},tRt=function(i,a){const f=hL(i).className,p=sh[f];if(typeof a=="string"){const v=a.trim();v.startsWith("<<")&&v.endsWith(">>")?p.annotations.push(O5(v.substring(2,v.length-2))):v.indexOf(")")>0?p.methods.push(O5(v)):v&&p.members.push(O5(v))}},bHe=function(i,a){Array.isArray(a)&&(a.reverse(),a.forEach(f=>tRt(i,f)))},vHe=function(i,a){const f={id:`note${EK.length}`,class:a,text:i};EK.push(f)},wHe=function(i){return i.startsWith(":")&&(i=i.substring(1)),O5(i.trim())},agt=function(i,a){i.split(",").forEach(function(f){let p=f;f[0].match(/\d/)&&(p=kK+p),sh[p]!==void 0&&sh[p].cssClasses.push(a)})},mHe=function(i,a){i.split(",").forEach(function(f){a!==void 0&&(sh[f].tooltip=O5(a))})},yHe=function(i,a){return a?fk[a].classes[i].tooltip:sh[i].tooltip},xHe=function(i,a,f){const p=Oe();i.split(",").forEach(function(v){let m=v;v[0].match(/\d/)&&(m=kK+m),sh[m]!==void 0&&(sh[m].link=lo.formatUrl(a,p),p.securityLevel==="sandbox"?sh[m].linkTarget="_top":typeof f=="string"?sh[m].linkTarget=O5(f):sh[m].linkTarget="_blank")}),agt(i,"clickable")},kHe=function(i,a,f){i.split(",").forEach(function(p){EHe(p,a,f),sh[p].haveCallback=!0}),agt(i,"clickable")},EHe=function(i,a,f){if(Oe().securityLevel!=="loose"||a===void 0)return;const v=i;if(sh[v]!==void 0){const m=JBt(v);let b=[];if(typeof f=="string"){b=f.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let E=0;E")),v.classed("hover",!0)}).on("mouseout",function(){a.transition().duration(500).style("opacity",0),Mr(this).classed("hover",!1)})};AP.push(eRt);let nRt="TB";const TK={parseDirective:oHe,setAccTitle:ug,getAccTitle:op,getAccDescription:up,setAccDescription:cp,getConfig:()=>Oe().class,addClass:sgt,bindFunctions:THe,clear:uHe,getClass:lHe,getClasses:hHe,getNotes:dHe,addAnnotation:pHe,addNote:vHe,getRelations:fHe,addRelation:gHe,getDirection:()=>nRt,setDirection:i=>{nRt=i},addMember:tRt,addMembers:bHe,cleanupLabel:wHe,lineType:_He,relationType:CHe,setClickEvent:kHe,setCssClass:agt,setLink:xHe,getTooltip:yHe,setTooltip:mHe,lookUpDomId:JBt,setDiagramTitle:Kb,getDiagramTitle:O2,setClassLabel:cHe,addNamespace:function(i){fk[i]===void 0&&(fk[i]={id:i,classes:{},children:{},domId:kK+i+"-"+igt},igt++)},addClassesToNamespace:function(i,a){fk[i]!==void 0&&a.map(f=>{fk[i].classes[f]=sh[f],delete sh[f],rgt--})},getNamespace:function(i){return fk[i]},getNamespaces:function(){return fk}},rRt=i=>`g.classGroup text { - fill: ${i.nodeBorder}; - fill: ${i.classText}; +`,"getStyles"),Qft=WUt});var bP,wf,tdt,edt,YUt,Jft,wP,qUt,XUt,Hx,I0,rdt,Yc,TP,jUt,KUt,QUt,ZUt,JUt,tHt,eHt,ndt,rHt,nHt,iHt,aHt,sHt,oHt,lHt,idt,cHt,kP,uHt,hi,adt=R(()=>{"use strict";hr();lv();_r();bP=Qi(Qp(),1);js();wf=18*2,tdt="actor-top",edt="actor-bottom",YUt="actor-box",Jft="actor-man",wP=o(function(e,t){return Td(e,t)},"drawRect"),qUt=o(function(e,t,r,n,i){if(t.links===void 0||t.links===null||Object.keys(t.links).length===0)return{height:0,width:0};let a=t.links,s=t.actorCnt,l=t.rectData;var u="none";i&&(u="block !important");let h=e.append("g");h.attr("id","actor"+s+"_popup"),h.attr("class","actorPopupMenu"),h.attr("display",u);var f="";l.class!==void 0&&(f=" "+l.class);let d=l.width>r?l.width:r,p=h.append("rect");if(p.attr("class","actorPopupMenuPanel"+f),p.attr("x",l.x),p.attr("y",l.height),p.attr("fill",l.fill),p.attr("stroke",l.stroke),p.attr("width",d),p.attr("height",l.height),p.attr("rx",l.rx),p.attr("ry",l.ry),a!=null){var m=20;for(let v in a){var g=h.append("a"),y=(0,bP.sanitizeUrl)(a[v]);g.attr("xlink:href",y),g.attr("target","_blank"),uHt(n)(v,g,l.x+10,l.height+m,d,20,{class:"actor"},n),m+=30}}return p.attr("height",m),{height:l.height+m,width:d}},"drawPopup"),XUt=o(function(e){return"var pu = document.getElementById('"+e+"'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }"},"popupMenuToggle"),Hx=o(async function(e,t,r=null){let n=e.append("foreignObject"),i=await vh(t.text,Nr()),s=n.append("xhtml:div").attr("style","width: fit-content;").attr("xmlns","http://www.w3.org/1999/xhtml").html(i).node().getBoundingClientRect();if(n.attr("height",Math.round(s.height)).attr("width",Math.round(s.width)),t.class==="noteText"){let l=e.node().firstChild;l.setAttribute("height",s.height+2*t.textMargin);let u=l.getBBox();n.attr("x",Math.round(u.x+u.width/2-s.width/2)).attr("y",Math.round(u.y+u.height/2-s.height/2))}else if(r){let{startx:l,stopx:u,starty:h}=r;if(l>u){let f=l;l=u,u=f}n.attr("x",Math.round(l+Math.abs(l-u)/2-s.width/2)),t.class==="loopText"?n.attr("y",Math.round(h)):n.attr("y",Math.round(h-s.height))}return[n]},"drawKatex"),I0=o(function(e,t){let r=0,n=0,i=t.text.split(Yt.lineBreakRegex),[a,s]=Tc(t.fontSize),l=[],u=0,h=o(()=>t.y,"yfunc");if(t.valign!==void 0&&t.textMargin!==void 0&&t.textMargin>0)switch(t.valign){case"top":case"start":h=o(()=>Math.round(t.y+t.textMargin),"yfunc");break;case"middle":case"center":h=o(()=>Math.round(t.y+(r+n+t.textMargin)/2),"yfunc");break;case"bottom":case"end":h=o(()=>Math.round(t.y+(r+n+2*t.textMargin)-t.textMargin),"yfunc");break}if(t.anchor!==void 0&&t.textMargin!==void 0&&t.width!==void 0)switch(t.anchor){case"left":case"start":t.x=Math.round(t.x+t.textMargin),t.anchor="start",t.dominantBaseline="middle",t.alignmentBaseline="middle";break;case"middle":case"center":t.x=Math.round(t.x+t.width/2),t.anchor="middle",t.dominantBaseline="middle",t.alignmentBaseline="middle";break;case"right":case"end":t.x=Math.round(t.x+t.width-t.textMargin),t.anchor="end",t.dominantBaseline="middle",t.alignmentBaseline="middle";break}for(let[f,d]of i.entries()){t.textMargin!==void 0&&t.textMargin===0&&a!==void 0&&(u=f*a);let p=e.append("text");p.attr("x",t.x),p.attr("y",h()),t.anchor!==void 0&&p.attr("text-anchor",t.anchor).attr("dominant-baseline",t.dominantBaseline).attr("alignment-baseline",t.alignmentBaseline),t.fontFamily!==void 0&&p.style("font-family",t.fontFamily),s!==void 0&&p.style("font-size",s),t.fontWeight!==void 0&&p.style("font-weight",t.fontWeight),t.fill!==void 0&&p.attr("fill",t.fill),t.class!==void 0&&p.attr("class",t.class),t.dy!==void 0?p.attr("dy",t.dy):u!==0&&p.attr("dy",u);let m=d||B9;if(t.tspan){let g=p.append("tspan");g.attr("x",t.x),t.fill!==void 0&&g.attr("fill",t.fill),g.text(m)}else p.text(m);t.valign!==void 0&&t.textMargin!==void 0&&t.textMargin>0&&(n+=(p._groups||p)[0][0].getBBox().height,r=n),l.push(p)}return l},"drawText"),rdt=o(function(e,t){function r(i,a,s,l,u){return i+","+a+" "+(i+s)+","+a+" "+(i+s)+","+(a+l-u)+" "+(i+s-u*1.2)+","+(a+l)+" "+i+","+(a+l)}o(r,"genPoints");let n=e.append("polygon");return n.attr("points",r(t.x,t.y,t.width,t.height,7)),n.attr("class","labelBox"),t.y=t.y+t.height/2,I0(e,t),n},"drawLabel"),Yc=-1,TP=o((e,t,r,n)=>{e.select&&r.forEach(i=>{let a=t.get(i),s=e.select("#actor"+a.actorCnt);!n.mirrorActors&&a.stopy?s.attr("y2",a.stopy+a.height/2):n.mirrorActors&&s.attr("y2",a.stopy)})},"fixLifeLineHeights"),jUt=o(function(e,t,r,n){let i=n?t.stopy:t.starty,a=t.x+t.width/2,s=i+t.height,l=e.append("g").lower();var u=l;n||(Yc++,Object.keys(t.links||{}).length&&!r.forceMenus&&u.attr("onclick",XUt(`actor${Yc}_popup`)).attr("cursor","pointer"),u.append("line").attr("id","actor"+Yc).attr("x1",a).attr("y1",s).attr("x2",a).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name),u=l.append("g"),t.actorCnt=Yc,t.links!=null&&u.attr("id","root-"+Yc));let h=Sl();var f="actor";t.properties?.class?f=t.properties.class:h.fill="#eaeaea",n?f+=` ${edt}`:f+=` ${tdt}`,h.x=t.x,h.y=i,h.width=t.width,h.height=t.height,h.class=f,h.rx=3,h.ry=3,h.name=t.name;let d=wP(u,h);if(t.rectData=h,t.properties?.icon){let m=t.properties.icon.trim();m.charAt(0)==="@"?Tq(u,h.x+h.width-20,h.y+10,m.substr(1)):wq(u,h.x+h.width-20,h.y+10,m)}kP(r,Pi(t.description))(t.description,u,h.x,h.y,h.width,h.height,{class:`actor ${YUt}`},r);let p=t.height;if(d.node){let m=d.node().getBBox();t.height=m.height,p=m.height}return p},"drawActorTypeParticipant"),KUt=o(function(e,t,r,n){let i=n?t.stopy:t.starty,a=t.x+t.width/2,s=i+80,l=e.append("g").lower();n||(Yc++,l.append("line").attr("id","actor"+Yc).attr("x1",a).attr("y1",s).attr("x2",a).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name),t.actorCnt=Yc);let u=e.append("g"),h=Jft;n?h+=` ${edt}`:h+=` ${tdt}`,u.attr("class",h),u.attr("name",t.name);let f=Sl();f.x=t.x,f.y=i,f.fill="#eaeaea",f.width=t.width,f.height=t.height,f.class="actor",f.rx=3,f.ry=3,u.append("line").attr("id","actor-man-torso"+Yc).attr("x1",a).attr("y1",i+25).attr("x2",a).attr("y2",i+45),u.append("line").attr("id","actor-man-arms"+Yc).attr("x1",a-wf/2).attr("y1",i+33).attr("x2",a+wf/2).attr("y2",i+33),u.append("line").attr("x1",a-wf/2).attr("y1",i+60).attr("x2",a).attr("y2",i+45),u.append("line").attr("x1",a).attr("y1",i+45).attr("x2",a+wf/2-2).attr("y2",i+60);let d=u.append("circle");d.attr("cx",t.x+t.width/2),d.attr("cy",i+10),d.attr("r",15),d.attr("width",t.width),d.attr("height",t.height);let p=u.node().getBBox();return t.height=p.height,kP(r,Pi(t.description))(t.description,u,f.x,f.y+35,f.width,f.height,{class:`actor ${Jft}`},r),t.height},"drawActorTypeActor"),QUt=o(async function(e,t,r,n){switch(t.type){case"actor":return await KUt(e,t,r,n);case"participant":return await jUt(e,t,r,n)}},"drawActor"),ZUt=o(function(e,t,r){let i=e.append("g");ndt(i,t),t.name&&kP(r)(t.name,i,t.x,t.y+(t.textMaxHeight||0)/2,t.width,0,{class:"text"},r),i.lower()},"drawBox"),JUt=o(function(e){return e.append("g")},"anchorElement"),tHt=o(function(e,t,r,n,i){let a=Sl(),s=t.anchored;a.x=t.startx,a.y=t.starty,a.class="activation"+i%3,a.width=t.stopx-t.startx,a.height=r-t.starty,wP(s,a)},"drawActivation"),eHt=o(async function(e,t,r,n){let{boxMargin:i,boxTextMargin:a,labelBoxHeight:s,labelBoxWidth:l,messageFontFamily:u,messageFontSize:h,messageFontWeight:f}=n,d=e.append("g"),p=o(function(y,v,x,b){return d.append("line").attr("x1",y).attr("y1",v).attr("x2",x).attr("y2",b).attr("class","loopLine")},"drawLoopLine");p(t.startx,t.starty,t.stopx,t.starty),p(t.stopx,t.starty,t.stopx,t.stopy),p(t.startx,t.stopy,t.stopx,t.stopy),p(t.startx,t.starty,t.startx,t.stopy),t.sections!==void 0&&t.sections.forEach(function(y){p(t.startx,y.y,t.stopx,y.y).style("stroke-dasharray","3, 3")});let m=ov();m.text=r,m.x=t.startx,m.y=t.starty,m.fontFamily=u,m.fontSize=h,m.fontWeight=f,m.anchor="middle",m.valign="middle",m.tspan=!1,m.width=l||50,m.height=s||20,m.textMargin=a,m.class="labelText",rdt(d,m),m=idt(),m.text=t.title,m.x=t.startx+l/2+(t.stopx-t.startx)/2,m.y=t.starty+i+a,m.anchor="middle",m.valign="middle",m.textMargin=a,m.class="loopText",m.fontFamily=u,m.fontSize=h,m.fontWeight=f,m.wrap=!0;let g=Pi(m.text)?await Hx(d,m,t):I0(d,m);if(t.sectionTitles!==void 0){for(let[y,v]of Object.entries(t.sectionTitles))if(v.message){m.text=v.message,m.x=t.startx+(t.stopx-t.startx)/2,m.y=t.sections[y].y+i+a,m.class="loopText",m.anchor="middle",m.valign="middle",m.tspan=!1,m.fontFamily=u,m.fontSize=h,m.fontWeight=f,m.wrap=t.wrap,Pi(m.text)?(t.starty=t.sections[y].y,await Hx(d,m,t)):I0(d,m);let x=Math.round(g.map(b=>(b._groups||b)[0][0].getBBox().height).reduce((b,w)=>b+w));t.sections[y].height+=x-(i+a)}}return t.height=Math.round(t.stopy-t.starty),d},"drawLoop"),ndt=o(function(e,t){m5(e,t)},"drawBackgroundRect"),rHt=o(function(e){e.append("defs").append("symbol").attr("id","database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},"insertDatabaseIcon"),nHt=o(function(e){e.append("defs").append("symbol").attr("id","computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},"insertComputerIcon"),iHt=o(function(e){e.append("defs").append("symbol").attr("id","clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},"insertClockIcon"),aHt=o(function(e){e.append("defs").append("marker").attr("id","arrowhead").attr("refX",7.9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto-start-reverse").append("path").attr("d","M -1 0 L 10 5 L 0 10 z")},"insertArrowHead"),sHt=o(function(e){e.append("defs").append("marker").attr("id","filled-head").attr("refX",15.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"insertArrowFilledHead"),oHt=o(function(e){e.append("defs").append("marker").attr("id","sequencenumber").attr("refX",15).attr("refY",15).attr("markerWidth",60).attr("markerHeight",40).attr("orient","auto").append("circle").attr("cx",15).attr("cy",15).attr("r",6)},"insertSequenceNumber"),lHt=o(function(e){e.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",4).attr("refY",4.5).append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1pt").attr("d","M 1,2 L 6,7 M 6,2 L 1,7")},"insertArrowCrossHead"),idt=o(function(){return{x:0,y:0,fill:void 0,anchor:void 0,style:"#666",width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}},"getTextObj"),cHt=o(function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),kP=function(){function e(a,s,l,u,h,f,d){let p=s.append("text").attr("x",l+h/2).attr("y",u+f/2+5).style("text-anchor","middle").text(a);i(p,d)}o(e,"byText");function t(a,s,l,u,h,f,d,p){let{actorFontSize:m,actorFontFamily:g,actorFontWeight:y}=p,[v,x]=Tc(m),b=a.split(Yt.lineBreakRegex);for(let w=0;w{let s=O0(Rt),l=a.actorKeys.reduce((f,d)=>f+=e.get(d).width+(e.get(d).margin||0),0);l-=2*Rt.boxTextMargin,a.wrap&&(a.name=Oe.wrapLabel(a.name,l-2*Rt.wrapPadding,s));let u=Oe.calculateTextDimensions(a.name,s);i=Yt.getMax(u.height,i);let h=Yt.getMax(l,u.width+2*Rt.wrapPadding);if(a.margin=Rt.boxTextMargin,la.textMaxHeight=i),Yt.getMax(n,Rt.height)}var Rt,re,hHt,O0,Qg,EP,dHt,pHt,CP,odt,ldt,h6,sdt,gHt,vHt,bHt,wHt,THt,cdt,udt=R(()=>{"use strict";ur();adt();ce();hr();lv();Ue();yp();_r();Jn();Rt={},re={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],activations:[],models:{getHeight:o(function(){return Math.max.apply(null,this.actors.length===0?[0]:this.actors.map(e=>e.height||0))+(this.loops.length===0?0:this.loops.map(e=>e.height||0).reduce((e,t)=>e+t))+(this.messages.length===0?0:this.messages.map(e=>e.height||0).reduce((e,t)=>e+t))+(this.notes.length===0?0:this.notes.map(e=>e.height||0).reduce((e,t)=>e+t))},"getHeight"),clear:o(function(){this.actors=[],this.boxes=[],this.loops=[],this.messages=[],this.notes=[]},"clear"),addBox:o(function(e){this.boxes.push(e)},"addBox"),addActor:o(function(e){this.actors.push(e)},"addActor"),addLoop:o(function(e){this.loops.push(e)},"addLoop"),addMessage:o(function(e){this.messages.push(e)},"addMessage"),addNote:o(function(e){this.notes.push(e)},"addNote"),lastActor:o(function(){return this.actors[this.actors.length-1]},"lastActor"),lastLoop:o(function(){return this.loops[this.loops.length-1]},"lastLoop"),lastMessage:o(function(){return this.messages[this.messages.length-1]},"lastMessage"),lastNote:o(function(){return this.notes[this.notes.length-1]},"lastNote"),actors:[],boxes:[],loops:[],messages:[],notes:[]},init:o(function(){this.sequenceItems=[],this.activations=[],this.models.clear(),this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0,ldt(pt())},"init"),updateVal:o(function(e,t,r,n){e[t]===void 0?e[t]=r:e[t]=n(r,e[t])},"updateVal"),updateBounds:o(function(e,t,r,n){let i=this,a=0;function s(l){return o(function(h){a++;let f=i.sequenceItems.length-a+1;i.updateVal(h,"starty",t-f*Rt.boxMargin,Math.min),i.updateVal(h,"stopy",n+f*Rt.boxMargin,Math.max),i.updateVal(re.data,"startx",e-f*Rt.boxMargin,Math.min),i.updateVal(re.data,"stopx",r+f*Rt.boxMargin,Math.max),l!=="activation"&&(i.updateVal(h,"startx",e-f*Rt.boxMargin,Math.min),i.updateVal(h,"stopx",r+f*Rt.boxMargin,Math.max),i.updateVal(re.data,"starty",t-f*Rt.boxMargin,Math.min),i.updateVal(re.data,"stopy",n+f*Rt.boxMargin,Math.max))},"updateItemBounds")}o(s,"updateFn"),this.sequenceItems.forEach(s()),this.activations.forEach(s("activation"))},"updateBounds"),insert:o(function(e,t,r,n){let i=Yt.getMin(e,r),a=Yt.getMax(e,r),s=Yt.getMin(t,n),l=Yt.getMax(t,n);this.updateVal(re.data,"startx",i,Math.min),this.updateVal(re.data,"starty",s,Math.min),this.updateVal(re.data,"stopx",a,Math.max),this.updateVal(re.data,"stopy",l,Math.max),this.updateBounds(i,s,a,l)},"insert"),newActivation:o(function(e,t,r){let n=r.get(e.from),i=h6(e.from).length||0,a=n.x+n.width/2+(i-1)*Rt.activationWidth/2;this.activations.push({startx:a,starty:this.verticalPos+2,stopx:a+Rt.activationWidth,stopy:void 0,actor:e.from,anchored:hi.anchorElement(t)})},"newActivation"),endActivation:o(function(e){let t=this.activations.map(function(r){return r.actor}).lastIndexOf(e.from);return this.activations.splice(t,1)[0]},"endActivation"),createLoop:o(function(e={message:void 0,wrap:!1,width:void 0},t){return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:e.message,wrap:e.wrap,width:e.width,height:0,fill:t}},"createLoop"),newLoop:o(function(e={message:void 0,wrap:!1,width:void 0},t){this.sequenceItems.push(this.createLoop(e,t))},"newLoop"),endLoop:o(function(){return this.sequenceItems.pop()},"endLoop"),isLoopOverlap:o(function(){return this.sequenceItems.length?this.sequenceItems[this.sequenceItems.length-1].overlap:!1},"isLoopOverlap"),addSectionToLoop:o(function(e){let t=this.sequenceItems.pop();t.sections=t.sections||[],t.sectionTitles=t.sectionTitles||[],t.sections.push({y:re.getVerticalPos(),height:0}),t.sectionTitles.push(e),this.sequenceItems.push(t)},"addSectionToLoop"),saveVerticalPos:o(function(){this.isLoopOverlap()&&(this.savedVerticalPos=this.verticalPos)},"saveVerticalPos"),resetVerticalPos:o(function(){this.isLoopOverlap()&&(this.verticalPos=this.savedVerticalPos)},"resetVerticalPos"),bumpVerticalPos:o(function(e){this.verticalPos=this.verticalPos+e,this.data.stopy=Yt.getMax(this.data.stopy,this.verticalPos)},"bumpVerticalPos"),getVerticalPos:o(function(){return this.verticalPos},"getVerticalPos"),getBounds:o(function(){return{bounds:this.data,models:this.models}},"getBounds")},hHt=o(async function(e,t){re.bumpVerticalPos(Rt.boxMargin),t.height=Rt.boxMargin,t.starty=re.getVerticalPos();let r=Sl();r.x=t.startx,r.y=t.starty,r.width=t.width||Rt.width,r.class="note";let n=e.append("g"),i=hi.drawRect(n,r),a=ov();a.x=t.startx,a.y=t.starty,a.width=r.width,a.dy="1em",a.text=t.message,a.class="noteText",a.fontFamily=Rt.noteFontFamily,a.fontSize=Rt.noteFontSize,a.fontWeight=Rt.noteFontWeight,a.anchor=Rt.noteAlign,a.textMargin=Rt.noteMargin,a.valign="center";let s=Pi(a.text)?await Hx(n,a):I0(n,a),l=Math.round(s.map(u=>(u._groups||u)[0][0].getBBox().height).reduce((u,h)=>u+h));i.attr("height",l+2*Rt.noteMargin),t.height+=l+2*Rt.noteMargin,re.bumpVerticalPos(l+2*Rt.noteMargin),t.stopy=t.starty+l+2*Rt.noteMargin,t.stopx=t.startx+r.width,re.insert(t.startx,t.starty,t.stopx,t.stopy),re.models.addNote(t)},"drawNote"),O0=o(e=>({fontFamily:e.messageFontFamily,fontSize:e.messageFontSize,fontWeight:e.messageFontWeight}),"messageFont"),Qg=o(e=>({fontFamily:e.noteFontFamily,fontSize:e.noteFontSize,fontWeight:e.noteFontWeight}),"noteFont"),EP=o(e=>({fontFamily:e.actorFontFamily,fontSize:e.actorFontSize,fontWeight:e.actorFontWeight}),"actorFont");o(fHt,"boundMessage");dHt=o(async function(e,t,r,n){let{startx:i,stopx:a,starty:s,message:l,type:u,sequenceIndex:h,sequenceVisible:f}=t,d=Oe.calculateTextDimensions(l,O0(Rt)),p=ov();p.x=i,p.y=s+10,p.width=a-i,p.class="messageText",p.dy="1em",p.text=l,p.fontFamily=Rt.messageFontFamily,p.fontSize=Rt.messageFontSize,p.fontWeight=Rt.messageFontWeight,p.anchor=Rt.messageAlign,p.valign="center",p.textMargin=Rt.wrapPadding,p.tspan=!1,Pi(p.text)?await Hx(e,p,{startx:i,stopx:a,starty:r}):I0(e,p);let m=d.width,g;i===a?Rt.rightAngles?g=e.append("path").attr("d",`M ${i},${r} H ${i+Yt.getMax(Rt.width/2,m/2)} V ${r+25} H ${i}`):g=e.append("path").attr("d","M "+i+","+r+" C "+(i+60)+","+(r-10)+" "+(i+60)+","+(r+30)+" "+i+","+(r+20)):(g=e.append("line"),g.attr("x1",i),g.attr("y1",r),g.attr("x2",a),g.attr("y2",r)),u===n.db.LINETYPE.DOTTED||u===n.db.LINETYPE.DOTTED_CROSS||u===n.db.LINETYPE.DOTTED_POINT||u===n.db.LINETYPE.DOTTED_OPEN||u===n.db.LINETYPE.BIDIRECTIONAL_DOTTED?(g.style("stroke-dasharray","3, 3"),g.attr("class","messageLine1")):g.attr("class","messageLine0");let y="";Rt.arrowMarkerAbsolute&&(y=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,y=y.replace(/\(/g,"\\("),y=y.replace(/\)/g,"\\)")),g.attr("stroke-width",2),g.attr("stroke","none"),g.style("fill","none"),(u===n.db.LINETYPE.SOLID||u===n.db.LINETYPE.DOTTED)&&g.attr("marker-end","url("+y+"#arrowhead)"),(u===n.db.LINETYPE.BIDIRECTIONAL_SOLID||u===n.db.LINETYPE.BIDIRECTIONAL_DOTTED)&&(g.attr("marker-start","url("+y+"#arrowhead)"),g.attr("marker-end","url("+y+"#arrowhead)")),(u===n.db.LINETYPE.SOLID_POINT||u===n.db.LINETYPE.DOTTED_POINT)&&g.attr("marker-end","url("+y+"#filled-head)"),(u===n.db.LINETYPE.SOLID_CROSS||u===n.db.LINETYPE.DOTTED_CROSS)&&g.attr("marker-end","url("+y+"#crosshead)"),(f||Rt.showSequenceNumbers)&&(g.attr("marker-start","url("+y+"#sequencenumber)"),e.append("text").attr("x",i).attr("y",r+4).attr("font-family","sans-serif").attr("font-size","12px").attr("text-anchor","middle").attr("class","sequenceNumber").text(h))},"drawMessage"),pHt=o(function(e,t,r,n,i,a,s){let l=0,u=0,h,f=0;for(let d of n){let p=t.get(d),m=p.box;h&&h!=m&&(s||re.models.addBox(h),u+=Rt.boxMargin+h.margin),m&&m!=h&&(s||(m.x=l+u,m.y=i),u+=m.margin),p.width=p.width||Rt.width,p.height=Yt.getMax(p.height||Rt.height,Rt.height),p.margin=p.margin||Rt.actorMargin,f=Yt.getMax(f,p.height),r.get(p.name)&&(u+=p.width/2),p.x=l+u,p.starty=re.getVerticalPos(),re.insert(p.x,i,p.x+p.width,p.height),l+=p.width+u,p.box&&(p.box.width=l+m.margin-p.box.x),u=p.margin,h=p.box,re.models.addActor(p)}h&&!s&&re.models.addBox(h),re.bumpVerticalPos(f)},"addActorRenderingData"),CP=o(async function(e,t,r,n){if(n){let i=0;re.bumpVerticalPos(Rt.boxMargin*2);for(let a of r){let s=t.get(a);s.stopy||(s.stopy=re.getVerticalPos());let l=await hi.drawActor(e,s,Rt,!0);i=Yt.getMax(i,l)}re.bumpVerticalPos(i+Rt.boxMargin)}else for(let i of r){let a=t.get(i);await hi.drawActor(e,a,Rt,!1)}},"drawActors"),odt=o(function(e,t,r,n){let i=0,a=0;for(let s of r){let l=t.get(s),u=vHt(l),h=hi.drawPopup(e,l,u,Rt,Rt.forceMenus,n);h.height>i&&(i=h.height),h.width+l.x>a&&(a=h.width+l.x)}return{maxHeight:i,maxWidth:a}},"drawActorsPopup"),ldt=o(function(e){Vn(Rt,e),e.fontFamily&&(Rt.actorFontFamily=Rt.noteFontFamily=Rt.messageFontFamily=e.fontFamily),e.fontSize&&(Rt.actorFontSize=Rt.noteFontSize=Rt.messageFontSize=e.fontSize),e.fontWeight&&(Rt.actorFontWeight=Rt.noteFontWeight=Rt.messageFontWeight=e.fontWeight)},"setConf"),h6=o(function(e){return re.activations.filter(function(t){return t.actor===e})},"actorActivations"),sdt=o(function(e,t){let r=t.get(e),n=h6(e),i=n.reduce(function(s,l){return Yt.getMin(s,l.startx)},r.x+r.width/2-1),a=n.reduce(function(s,l){return Yt.getMax(s,l.stopx)},r.x+r.width/2+1);return[i,a]},"activationBounds");o(qc,"adjustLoopHeightForWrap");o(mHt,"adjustCreatedDestroyedData");gHt=o(async function(e,t,r,n){let{securityLevel:i,sequence:a}=pt();Rt=a;let s;i==="sandbox"&&(s=Gt("#i"+t));let l=i==="sandbox"?Gt(s.nodes()[0].contentDocument.body):Gt("body"),u=i==="sandbox"?s.nodes()[0].contentDocument:document;re.init(),V.debug(n.db);let h=i==="sandbox"?l.select(`[id="${t}"]`):Gt(`[id="${t}"]`),f=n.db.getActors(),d=n.db.getCreatedActors(),p=n.db.getDestroyedActors(),m=n.db.getBoxes(),g=n.db.getActorKeys(),y=n.db.getMessages(),v=n.db.getDiagramTitle(),x=n.db.hasAtLeastOneBox(),b=n.db.hasAtLeastOneBoxWithTitle(),w=await yHt(f,y,n);if(Rt.height=await xHt(f,w,m),hi.insertComputerIcon(h),hi.insertDatabaseIcon(h),hi.insertClockIcon(h),x&&(re.bumpVerticalPos(Rt.boxMargin),b&&re.bumpVerticalPos(m[0].textMaxHeight)),Rt.hideUnusedParticipants===!0){let F=new Set;y.forEach(B=>{F.add(B.from),F.add(B.to)}),g=g.filter(B=>F.has(B))}pHt(h,f,d,g,0,y,!1);let S=await THt(y,f,w,n);hi.insertArrowHead(h),hi.insertArrowCrossHead(h),hi.insertArrowFilledHead(h),hi.insertSequenceNumber(h);function T(F,B){let G=re.endActivation(F);G.starty+18>B&&(G.starty=B-6,B+=12),hi.drawActivation(h,G,B,Rt,h6(F.from).length),re.insert(G.startx,B-10,G.stopx,B)}o(T,"activeEnd");let E=1,_=1,A=[],L=[],M=0;for(let F of y){let B,G,z;switch(F.type){case n.db.LINETYPE.NOTE:re.resetVerticalPos(),G=F.noteModel,await hHt(h,G);break;case n.db.LINETYPE.ACTIVE_START:re.newActivation(F,h,f);break;case n.db.LINETYPE.ACTIVE_END:T(F,re.getVerticalPos());break;case n.db.LINETYPE.LOOP_START:qc(S,F,Rt.boxMargin,Rt.boxMargin+Rt.boxTextMargin,W=>re.newLoop(W));break;case n.db.LINETYPE.LOOP_END:B=re.endLoop(),await hi.drawLoop(h,B,"loop",Rt),re.bumpVerticalPos(B.stopy-re.getVerticalPos()),re.models.addLoop(B);break;case n.db.LINETYPE.RECT_START:qc(S,F,Rt.boxMargin,Rt.boxMargin,W=>re.newLoop(void 0,W.message));break;case n.db.LINETYPE.RECT_END:B=re.endLoop(),L.push(B),re.models.addLoop(B),re.bumpVerticalPos(B.stopy-re.getVerticalPos());break;case n.db.LINETYPE.OPT_START:qc(S,F,Rt.boxMargin,Rt.boxMargin+Rt.boxTextMargin,W=>re.newLoop(W));break;case n.db.LINETYPE.OPT_END:B=re.endLoop(),await hi.drawLoop(h,B,"opt",Rt),re.bumpVerticalPos(B.stopy-re.getVerticalPos()),re.models.addLoop(B);break;case n.db.LINETYPE.ALT_START:qc(S,F,Rt.boxMargin,Rt.boxMargin+Rt.boxTextMargin,W=>re.newLoop(W));break;case n.db.LINETYPE.ALT_ELSE:qc(S,F,Rt.boxMargin+Rt.boxTextMargin,Rt.boxMargin,W=>re.addSectionToLoop(W));break;case n.db.LINETYPE.ALT_END:B=re.endLoop(),await hi.drawLoop(h,B,"alt",Rt),re.bumpVerticalPos(B.stopy-re.getVerticalPos()),re.models.addLoop(B);break;case n.db.LINETYPE.PAR_START:case n.db.LINETYPE.PAR_OVER_START:qc(S,F,Rt.boxMargin,Rt.boxMargin+Rt.boxTextMargin,W=>re.newLoop(W)),re.saveVerticalPos();break;case n.db.LINETYPE.PAR_AND:qc(S,F,Rt.boxMargin+Rt.boxTextMargin,Rt.boxMargin,W=>re.addSectionToLoop(W));break;case n.db.LINETYPE.PAR_END:B=re.endLoop(),await hi.drawLoop(h,B,"par",Rt),re.bumpVerticalPos(B.stopy-re.getVerticalPos()),re.models.addLoop(B);break;case n.db.LINETYPE.AUTONUMBER:E=F.message.start||E,_=F.message.step||_,F.message.visible?n.db.enableSequenceNumbers():n.db.disableSequenceNumbers();break;case n.db.LINETYPE.CRITICAL_START:qc(S,F,Rt.boxMargin,Rt.boxMargin+Rt.boxTextMargin,W=>re.newLoop(W));break;case n.db.LINETYPE.CRITICAL_OPTION:qc(S,F,Rt.boxMargin+Rt.boxTextMargin,Rt.boxMargin,W=>re.addSectionToLoop(W));break;case n.db.LINETYPE.CRITICAL_END:B=re.endLoop(),await hi.drawLoop(h,B,"critical",Rt),re.bumpVerticalPos(B.stopy-re.getVerticalPos()),re.models.addLoop(B);break;case n.db.LINETYPE.BREAK_START:qc(S,F,Rt.boxMargin,Rt.boxMargin+Rt.boxTextMargin,W=>re.newLoop(W));break;case n.db.LINETYPE.BREAK_END:B=re.endLoop(),await hi.drawLoop(h,B,"break",Rt),re.bumpVerticalPos(B.stopy-re.getVerticalPos()),re.models.addLoop(B);break;default:try{z=F.msgModel,z.starty=re.getVerticalPos(),z.sequenceIndex=E,z.sequenceVisible=n.db.showSequenceNumbers();let W=await fHt(h,z);mHt(F,z,W,M,f,d,p),A.push({messageModel:z,lineStartY:W}),re.models.addMessage(z)}catch(W){V.error("error while drawing message",W)}}[n.db.LINETYPE.SOLID_OPEN,n.db.LINETYPE.DOTTED_OPEN,n.db.LINETYPE.SOLID,n.db.LINETYPE.DOTTED,n.db.LINETYPE.SOLID_CROSS,n.db.LINETYPE.DOTTED_CROSS,n.db.LINETYPE.SOLID_POINT,n.db.LINETYPE.DOTTED_POINT,n.db.LINETYPE.BIDIRECTIONAL_SOLID,n.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(F.type)&&(E=E+_),M++}V.debug("createdActors",d),V.debug("destroyedActors",p),await CP(h,f,g,!1);for(let F of A)await dHt(h,F.messageModel,F.lineStartY,n);Rt.mirrorActors&&await CP(h,f,g,!0),L.forEach(F=>hi.drawBackgroundRect(h,F)),TP(h,f,g,Rt);for(let F of re.models.boxes)F.height=re.getVerticalPos()-F.y,re.insert(F.x,F.y,F.x+F.width,F.height),F.startx=F.x,F.starty=F.y,F.stopx=F.startx+F.width,F.stopy=F.starty+F.height,F.stroke="rgb(0,0,0, 0.5)",hi.drawBox(h,F,Rt);x&&re.bumpVerticalPos(Rt.boxMargin);let N=odt(h,f,g,u),{bounds:k}=re.getBounds();k.startx===void 0&&(k.startx=0),k.starty===void 0&&(k.starty=0),k.stopx===void 0&&(k.stopx=0),k.stopy===void 0&&(k.stopy=0);let I=k.stopy-k.starty;I2,d=o(y=>l?-y:y,"adjustValue");e.from===e.to?h=u:(e.activate&&!f&&(h+=d(Rt.activationWidth/2-1)),[r.db.LINETYPE.SOLID_OPEN,r.db.LINETYPE.DOTTED_OPEN].includes(e.type)||(h+=d(3)),[r.db.LINETYPE.BIDIRECTIONAL_SOLID,r.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(e.type)&&(u-=d(3)));let p=[n,i,a,s],m=Math.abs(u-h);e.wrap&&e.message&&(e.message=Oe.wrapLabel(e.message,Yt.getMax(m+2*Rt.wrapPadding,Rt.width),O0(Rt)));let g=Oe.calculateTextDimensions(e.message,O0(Rt));return{width:Yt.getMax(e.wrap?0:g.width+2*Rt.wrapPadding,m+2*Rt.wrapPadding,Rt.width),height:0,startx:u,stopx:h,starty:0,stopy:0,message:e.message,type:e.type,wrap:e.wrap,fromBounds:Math.min.apply(null,p),toBounds:Math.max.apply(null,p)}},"buildMessageModel"),THt=o(async function(e,t,r,n){let i={},a=[],s,l,u;for(let h of e){switch(h.id=Oe.random({length:10}),h.type){case n.db.LINETYPE.LOOP_START:case n.db.LINETYPE.ALT_START:case n.db.LINETYPE.OPT_START:case n.db.LINETYPE.PAR_START:case n.db.LINETYPE.PAR_OVER_START:case n.db.LINETYPE.CRITICAL_START:case n.db.LINETYPE.BREAK_START:a.push({id:h.id,msg:h.message,from:Number.MAX_SAFE_INTEGER,to:Number.MIN_SAFE_INTEGER,width:0});break;case n.db.LINETYPE.ALT_ELSE:case n.db.LINETYPE.PAR_AND:case n.db.LINETYPE.CRITICAL_OPTION:h.message&&(s=a.pop(),i[s.id]=s,i[h.id]=s,a.push(s));break;case n.db.LINETYPE.LOOP_END:case n.db.LINETYPE.ALT_END:case n.db.LINETYPE.OPT_END:case n.db.LINETYPE.PAR_END:case n.db.LINETYPE.CRITICAL_END:case n.db.LINETYPE.BREAK_END:s=a.pop(),i[s.id]=s;break;case n.db.LINETYPE.ACTIVE_START:{let d=t.get(h.from?h.from:h.to.actor),p=h6(h.from?h.from:h.to.actor).length,m=d.x+d.width/2+(p-1)*Rt.activationWidth/2,g={startx:m,stopx:m+Rt.activationWidth,actor:h.from,enabled:!0};re.activations.push(g)}break;case n.db.LINETYPE.ACTIVE_END:{let d=re.activations.map(p=>p.actor).lastIndexOf(h.from);re.activations.splice(d,1).splice(0,1)}break}h.placement!==void 0?(l=await bHt(h,t,n),h.noteModel=l,a.forEach(d=>{s=d,s.from=Yt.getMin(s.from,l.startx),s.to=Yt.getMax(s.to,l.startx+l.width),s.width=Yt.getMax(s.width,Math.abs(s.from-s.to))-Rt.labelBoxWidth})):(u=wHt(h,t,n),h.msgModel=u,u.startx&&u.stopx&&a.length>0&&a.forEach(d=>{if(s=d,u.startx===u.stopx){let p=t.get(h.from),m=t.get(h.to);s.from=Yt.getMin(p.x-u.width/2,p.x-p.width/2,s.from),s.to=Yt.getMax(m.x+u.width/2,m.x+p.width/2,s.to),s.width=Yt.getMax(s.width,Math.abs(s.to-s.from))-Rt.labelBoxWidth}else s.from=Yt.getMin(u.startx,s.from),s.to=Yt.getMax(u.stopx,s.to),s.width=Yt.getMax(s.width,u.width)-Rt.labelBoxWidth}))}return re.activations=[],V.debug("Loop type widths:",i),i},"calculateLoopBounds"),cdt={bounds:re,drawActors:CP,drawActorsPopup:odt,setConf:ldt,draw:gHt}});var hdt={};xr(hdt,{diagram:()=>kHt});var kHt,fdt=R(()=>{"use strict";Vft();Kft();Zft();udt();kHt={parser:Gft,db:xP,renderer:cdt,styles:Qft,init:o(({wrap:e})=>{xP.setWrap(e)},"init")}});var SP,f6,AP=R(()=>{"use strict";SP=function(){var e=o(function(Pt,_t,dt,Y){for(dt=dt||{},Y=Pt.length;Y--;dt[Pt[Y]]=_t);return dt},"o"),t=[1,17],r=[1,18],n=[1,19],i=[1,39],a=[1,40],s=[1,25],l=[1,23],u=[1,24],h=[1,31],f=[1,32],d=[1,33],p=[1,34],m=[1,35],g=[1,36],y=[1,26],v=[1,27],x=[1,28],b=[1,29],w=[1,43],S=[1,30],T=[1,42],E=[1,44],_=[1,41],A=[1,45],L=[1,9],M=[1,8,9],N=[1,56],k=[1,57],I=[1,58],C=[1,59],O=[1,60],D=[1,61],P=[1,62],F=[1,8,9,40],B=[1,74],G=[1,8,9,12,13,22,38,40,43,60,61,62,63,64,65,66,71,73],z=[1,8,9,12,13,17,20,22,38,40,43,47,60,61,62,63,64,65,66,71,73,75,81,96,98,99],W=[13,75,81,96,98,99],Q=[13,65,66,75,81,96,98,99],j=[13,60,61,62,63,64,75,81,96,98,99],at=[1,94],X=[1,111],J=[1,109],Z=[1,103],H=[1,104],q=[1,105],K=[1,106],ot=[1,107],ct=[1,108],ut=[1,110],et=[1,8,9,38,40,43],Mt=[1,8,9,22],it=[1,8,9,79],wt=[1,8,9,22,74,75,79,81,82,83,84,85,86],Ot={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,DOT:17,className:18,classLiteralName:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,direction:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,namespaceIdentifier:37,STRUCT_START:38,classStatements:39,STRUCT_STOP:40,NAMESPACE:41,classIdentifier:42,STYLE_SEPARATOR:43,members:44,CLASS:45,ANNOTATION_START:46,ANNOTATION_END:47,MEMBER:48,SEPARATOR:49,relation:50,NOTE_FOR:51,noteText:52,NOTE:53,direction_tb:54,direction_bt:55,direction_rl:56,direction_lr:57,relationType:58,lineType:59,AGGREGATION:60,EXTENSION:61,COMPOSITION:62,DEPENDENCY:63,LOLLIPOP:64,LINE:65,DOTTED_LINE:66,CALLBACK:67,LINK:68,LINK_TARGET:69,CLICK:70,CALLBACK_NAME:71,CALLBACK_ARGS:72,HREF:73,STYLE:74,ALPHA:75,stylesOpt:76,CSSCLASS:77,style:78,COMMA:79,styleComponent:80,NUM:81,COLON:82,UNIT:83,SPACE:84,BRKT:85,PCT:86,commentToken:87,textToken:88,graphCodeTokens:89,textNoTagsToken:90,TAGSTART:91,TAGEND:92,"==":93,"--":94,DEFAULT:95,MINUS:96,keywords:97,UNICODE_TEXT:98,BQUOTE_STR:99,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",17:"DOT",20:"GENERICTYPE",22:"LABEL",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",38:"STRUCT_START",40:"STRUCT_STOP",41:"NAMESPACE",43:"STYLE_SEPARATOR",45:"CLASS",46:"ANNOTATION_START",47:"ANNOTATION_END",48:"MEMBER",49:"SEPARATOR",51:"NOTE_FOR",53:"NOTE",54:"direction_tb",55:"direction_bt",56:"direction_rl",57:"direction_lr",60:"AGGREGATION",61:"EXTENSION",62:"COMPOSITION",63:"DEPENDENCY",64:"LOLLIPOP",65:"LINE",66:"DOTTED_LINE",67:"CALLBACK",68:"LINK",69:"LINK_TARGET",70:"CLICK",71:"CALLBACK_NAME",72:"CALLBACK_ARGS",73:"HREF",74:"STYLE",75:"ALPHA",77:"CSSCLASS",79:"COMMA",81:"NUM",82:"COLON",83:"UNIT",84:"SPACE",85:"BRKT",86:"PCT",89:"graphCodeTokens",91:"TAGSTART",92:"TAGEND",93:"==",94:"--",95:"DEFAULT",96:"MINUS",97:"keywords",98:"UNICODE_TEXT",99:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,3],[15,2],[18,1],[18,3],[18,1],[18,2],[18,2],[18,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[37,2],[39,1],[39,2],[39,3],[24,1],[24,3],[24,4],[24,6],[42,2],[42,3],[26,4],[44,1],[44,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,1],[31,1],[31,1],[31,1],[50,3],[50,2],[50,2],[50,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[76,1],[76,3],[78,1],[78,2],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[87,1],[87,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[90,1],[90,1],[90,1],[90,1],[16,1],[16,1],[16,1],[16,1],[19,1],[52,1]],performAction:o(function(_t,dt,Y,ft,mt,rt,ht){var nt=rt.length-1;switch(mt){case 8:this.$=rt[nt-1];break;case 9:case 12:case 14:this.$=rt[nt];break;case 10:case 13:this.$=rt[nt-2]+"."+rt[nt];break;case 11:case 15:this.$=rt[nt-1]+rt[nt];break;case 16:case 17:this.$=rt[nt-1]+"~"+rt[nt]+"~";break;case 18:ft.addRelation(rt[nt]);break;case 19:rt[nt-1].title=ft.cleanupLabel(rt[nt]),ft.addRelation(rt[nt-1]);break;case 29:this.$=rt[nt].trim(),ft.setAccTitle(this.$);break;case 30:case 31:this.$=rt[nt].trim(),ft.setAccDescription(this.$);break;case 32:ft.addClassesToNamespace(rt[nt-3],rt[nt-1]);break;case 33:ft.addClassesToNamespace(rt[nt-4],rt[nt-1]);break;case 34:this.$=rt[nt],ft.addNamespace(rt[nt]);break;case 35:this.$=[rt[nt]];break;case 36:this.$=[rt[nt-1]];break;case 37:rt[nt].unshift(rt[nt-2]),this.$=rt[nt];break;case 39:ft.setCssClass(rt[nt-2],rt[nt]);break;case 40:ft.addMembers(rt[nt-3],rt[nt-1]);break;case 41:ft.setCssClass(rt[nt-5],rt[nt-3]),ft.addMembers(rt[nt-5],rt[nt-1]);break;case 42:this.$=rt[nt],ft.addClass(rt[nt]);break;case 43:this.$=rt[nt-1],ft.addClass(rt[nt-1]),ft.setClassLabel(rt[nt-1],rt[nt]);break;case 44:ft.addAnnotation(rt[nt],rt[nt-2]);break;case 45:this.$=[rt[nt]];break;case 46:rt[nt].push(rt[nt-1]),this.$=rt[nt];break;case 47:break;case 48:ft.addMember(rt[nt-1],ft.cleanupLabel(rt[nt]));break;case 49:break;case 50:break;case 51:this.$={id1:rt[nt-2],id2:rt[nt],relation:rt[nt-1],relationTitle1:"none",relationTitle2:"none"};break;case 52:this.$={id1:rt[nt-3],id2:rt[nt],relation:rt[nt-1],relationTitle1:rt[nt-2],relationTitle2:"none"};break;case 53:this.$={id1:rt[nt-3],id2:rt[nt],relation:rt[nt-2],relationTitle1:"none",relationTitle2:rt[nt-1]};break;case 54:this.$={id1:rt[nt-4],id2:rt[nt],relation:rt[nt-2],relationTitle1:rt[nt-3],relationTitle2:rt[nt-1]};break;case 55:ft.addNote(rt[nt],rt[nt-1]);break;case 56:ft.addNote(rt[nt]);break;case 57:ft.setDirection("TB");break;case 58:ft.setDirection("BT");break;case 59:ft.setDirection("RL");break;case 60:ft.setDirection("LR");break;case 61:this.$={type1:rt[nt-2],type2:rt[nt],lineType:rt[nt-1]};break;case 62:this.$={type1:"none",type2:rt[nt],lineType:rt[nt-1]};break;case 63:this.$={type1:rt[nt-1],type2:"none",lineType:rt[nt]};break;case 64:this.$={type1:"none",type2:"none",lineType:rt[nt]};break;case 65:this.$=ft.relationType.AGGREGATION;break;case 66:this.$=ft.relationType.EXTENSION;break;case 67:this.$=ft.relationType.COMPOSITION;break;case 68:this.$=ft.relationType.DEPENDENCY;break;case 69:this.$=ft.relationType.LOLLIPOP;break;case 70:this.$=ft.lineType.LINE;break;case 71:this.$=ft.lineType.DOTTED_LINE;break;case 72:case 78:this.$=rt[nt-2],ft.setClickEvent(rt[nt-1],rt[nt]);break;case 73:case 79:this.$=rt[nt-3],ft.setClickEvent(rt[nt-2],rt[nt-1]),ft.setTooltip(rt[nt-2],rt[nt]);break;case 74:this.$=rt[nt-2],ft.setLink(rt[nt-1],rt[nt]);break;case 75:this.$=rt[nt-3],ft.setLink(rt[nt-2],rt[nt-1],rt[nt]);break;case 76:this.$=rt[nt-3],ft.setLink(rt[nt-2],rt[nt-1]),ft.setTooltip(rt[nt-2],rt[nt]);break;case 77:this.$=rt[nt-4],ft.setLink(rt[nt-3],rt[nt-2],rt[nt]),ft.setTooltip(rt[nt-3],rt[nt-1]);break;case 80:this.$=rt[nt-3],ft.setClickEvent(rt[nt-2],rt[nt-1],rt[nt]);break;case 81:this.$=rt[nt-4],ft.setClickEvent(rt[nt-3],rt[nt-2],rt[nt-1]),ft.setTooltip(rt[nt-3],rt[nt]);break;case 82:this.$=rt[nt-3],ft.setLink(rt[nt-2],rt[nt]);break;case 83:this.$=rt[nt-4],ft.setLink(rt[nt-3],rt[nt-1],rt[nt]);break;case 84:this.$=rt[nt-4],ft.setLink(rt[nt-3],rt[nt-1]),ft.setTooltip(rt[nt-3],rt[nt]);break;case 85:this.$=rt[nt-5],ft.setLink(rt[nt-4],rt[nt-2],rt[nt]),ft.setTooltip(rt[nt-4],rt[nt-1]);break;case 86:this.$=rt[nt-2],ft.setCssStyle(rt[nt-1],rt[nt]);break;case 87:ft.setCssClass(rt[nt-1],rt[nt]);break;case 88:this.$=[rt[nt]];break;case 89:rt[nt-2].push(rt[nt]),this.$=rt[nt-2];break;case 91:this.$=rt[nt-1]+rt[nt];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:37,18:20,19:38,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:t,34:r,36:n,37:21,41:i,42:22,45:a,46:s,48:l,49:u,51:h,53:f,54:d,55:p,56:m,57:g,67:y,68:v,70:x,74:b,75:w,77:S,81:T,96:E,98:_,99:A},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},e(L,[2,5],{8:[1,46]}),{8:[1,47]},e(M,[2,18],{22:[1,48]}),e(M,[2,20]),e(M,[2,21]),e(M,[2,22]),e(M,[2,23]),e(M,[2,24]),e(M,[2,25]),e(M,[2,26]),e(M,[2,27]),e(M,[2,28]),{33:[1,49]},{35:[1,50]},e(M,[2,31]),e(M,[2,47],{50:51,58:54,59:55,13:[1,52],22:[1,53],60:N,61:k,62:I,63:C,64:O,65:D,66:P}),{38:[1,63]},e(F,[2,38],{38:[1,65],43:[1,64]}),e(M,[2,49]),e(M,[2,50]),{16:66,75:w,81:T,96:E,98:_},{16:37,18:67,19:38,75:w,81:T,96:E,98:_,99:A},{16:37,18:68,19:38,75:w,81:T,96:E,98:_,99:A},{16:37,18:69,19:38,75:w,81:T,96:E,98:_,99:A},{75:[1,70]},{13:[1,71]},{16:37,18:72,19:38,75:w,81:T,96:E,98:_,99:A},{13:B,52:73},e(M,[2,57]),e(M,[2,58]),e(M,[2,59]),e(M,[2,60]),e(G,[2,12],{16:37,19:38,18:76,17:[1,75],20:[1,77],75:w,81:T,96:E,98:_,99:A}),e(G,[2,14],{20:[1,78]}),{15:79,16:80,75:w,81:T,96:E,98:_},{16:37,18:81,19:38,75:w,81:T,96:E,98:_,99:A},e(z,[2,114]),e(z,[2,115]),e(z,[2,116]),e(z,[2,117]),e([1,8,9,12,13,20,22,38,40,43,60,61,62,63,64,65,66,71,73],[2,118]),e(L,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,18:20,37:21,42:22,16:37,19:38,5:82,32:t,34:r,36:n,41:i,45:a,46:s,48:l,49:u,51:h,53:f,54:d,55:p,56:m,57:g,67:y,68:v,70:x,74:b,75:w,77:S,81:T,96:E,98:_,99:A}),{5:83,10:5,16:37,18:20,19:38,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:t,34:r,36:n,37:21,41:i,42:22,45:a,46:s,48:l,49:u,51:h,53:f,54:d,55:p,56:m,57:g,67:y,68:v,70:x,74:b,75:w,77:S,81:T,96:E,98:_,99:A},e(M,[2,19]),e(M,[2,29]),e(M,[2,30]),{13:[1,85],16:37,18:84,19:38,75:w,81:T,96:E,98:_,99:A},{50:86,58:54,59:55,60:N,61:k,62:I,63:C,64:O,65:D,66:P},e(M,[2,48]),{59:87,65:D,66:P},e(W,[2,64],{58:88,60:N,61:k,62:I,63:C,64:O}),e(Q,[2,65]),e(Q,[2,66]),e(Q,[2,67]),e(Q,[2,68]),e(Q,[2,69]),e(j,[2,70]),e(j,[2,71]),{8:[1,90],24:91,39:89,42:22,45:a},{16:92,75:w,81:T,96:E,98:_},{44:93,48:at},{47:[1,95]},{13:[1,96]},{13:[1,97]},{71:[1,98],73:[1,99]},{22:X,74:J,75:Z,76:100,78:101,80:102,81:H,82:q,83:K,84:ot,85:ct,86:ut},{75:[1,112]},{13:B,52:113},e(M,[2,56]),e(M,[2,119]),{16:37,18:114,19:38,75:w,81:T,96:E,98:_,99:A},e(G,[2,15]),e(G,[2,16]),e(G,[2,17]),{38:[2,34]},{15:116,16:80,17:[1,115],38:[2,9],75:w,81:T,96:E,98:_},e(et,[2,42],{11:117,12:[1,118]}),e(L,[2,7]),{9:[1,119]},e(Mt,[2,51]),{16:37,18:120,19:38,75:w,81:T,96:E,98:_,99:A},{13:[1,122],16:37,18:121,19:38,75:w,81:T,96:E,98:_,99:A},e(W,[2,63],{58:123,60:N,61:k,62:I,63:C,64:O}),e(W,[2,62]),{40:[1,124]},{24:91,39:125,42:22,45:a},{8:[1,126],40:[2,35]},e(F,[2,39],{38:[1,127]}),{40:[1,128]},{40:[2,45],44:129,48:at},{16:37,18:130,19:38,75:w,81:T,96:E,98:_,99:A},e(M,[2,72],{13:[1,131]}),e(M,[2,74],{13:[1,133],69:[1,132]}),e(M,[2,78],{13:[1,134],72:[1,135]}),{13:[1,136]},e(M,[2,86],{79:[1,137]}),e(it,[2,88],{80:138,22:X,74:J,75:Z,81:H,82:q,83:K,84:ot,85:ct,86:ut}),e(wt,[2,90]),e(wt,[2,92]),e(wt,[2,93]),e(wt,[2,94]),e(wt,[2,95]),e(wt,[2,96]),e(wt,[2,97]),e(wt,[2,98]),e(wt,[2,99]),e(wt,[2,100]),e(M,[2,87]),e(M,[2,55]),e(G,[2,13]),{15:139,16:80,75:w,81:T,96:E,98:_},{38:[2,11]},e(et,[2,43]),{13:[1,140]},{1:[2,4]},e(Mt,[2,53]),e(Mt,[2,52]),{16:37,18:141,19:38,75:w,81:T,96:E,98:_,99:A},e(W,[2,61]),e(M,[2,32]),{40:[1,142]},{24:91,39:143,40:[2,36],42:22,45:a},{44:144,48:at},e(F,[2,40]),{40:[2,46]},e(M,[2,44]),e(M,[2,73]),e(M,[2,75]),e(M,[2,76],{69:[1,145]}),e(M,[2,79]),e(M,[2,80],{13:[1,146]}),e(M,[2,82],{13:[1,148],69:[1,147]}),{22:X,74:J,75:Z,78:149,80:102,81:H,82:q,83:K,84:ot,85:ct,86:ut},e(wt,[2,91]),{38:[2,10]},{14:[1,150]},e(Mt,[2,54]),e(M,[2,33]),{40:[2,37]},{40:[1,151]},e(M,[2,77]),e(M,[2,81]),e(M,[2,83]),e(M,[2,84],{69:[1,152]}),e(it,[2,89],{80:138,22:X,74:J,75:Z,81:H,82:q,83:K,84:ot,85:ct,86:ut}),e(et,[2,8]),e(F,[2,41]),e(M,[2,85])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],79:[2,34],116:[2,11],119:[2,4],129:[2,46],139:[2,10],143:[2,37]},parseError:o(function(_t,dt){if(dt.recoverable)this.trace(_t);else{var Y=new Error(_t);throw Y.hash=dt,Y}},"parseError"),parse:o(function(_t){var dt=this,Y=[0],ft=[],mt=[null],rt=[],ht=this.table,nt="",st=0,Tt=0,kt=0,Ct=2,At=1,$t=rt.slice.call(arguments,1),Nt=Object.create(this.lexer),yt={yy:{}};for(var Ut in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ut)&&(yt.yy[Ut]=this.yy[Ut]);Nt.setInput(_t,yt.yy),yt.yy.lexer=Nt,yt.yy.parser=this,typeof Nt.yylloc>"u"&&(Nt.yylloc={});var zt=Nt.yylloc;rt.push(zt);var ae=Nt.options&&Nt.options.ranges;typeof yt.yy.parseError=="function"?this.parseError=yt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ke(oe){Y.length=Y.length-2*oe,mt.length=mt.length-oe,rt.length=rt.length-oe}o(ke,"popStack");function Ee(){var oe;return oe=ft.pop()||Nt.lex()||At,typeof oe!="number"&&(oe instanceof Array&&(ft=oe,oe=ft.pop()),oe=dt.symbols_[oe]||oe),oe}o(Ee,"lex");for(var le,Zt,me,Ht,ne,xe,Se={},Ye,fe,ee,pe;;){if(me=Y[Y.length-1],this.defaultActions[me]?Ht=this.defaultActions[me]:((le===null||typeof le>"u")&&(le=Ee()),Ht=ht[me]&&ht[me][le]),typeof Ht>"u"||!Ht.length||!Ht[0]){var Me="";pe=[];for(Ye in ht[me])this.terminals_[Ye]&&Ye>Ct&&pe.push("'"+this.terminals_[Ye]+"'");Nt.showPosition?Me="Parse error on line "+(st+1)+`: +`+Nt.showPosition()+` +Expecting `+pe.join(", ")+", got '"+(this.terminals_[le]||le)+"'":Me="Parse error on line "+(st+1)+": Unexpected "+(le==At?"end of input":"'"+(this.terminals_[le]||le)+"'"),this.parseError(Me,{text:Nt.match,token:this.terminals_[le]||le,line:Nt.yylineno,loc:zt,expected:pe})}if(Ht[0]instanceof Array&&Ht.length>1)throw new Error("Parse Error: multiple actions possible at state: "+me+", token: "+le);switch(Ht[0]){case 1:Y.push(le),mt.push(Nt.yytext),rt.push(Nt.yylloc),Y.push(Ht[1]),le=null,Zt?(le=Zt,Zt=null):(Tt=Nt.yyleng,nt=Nt.yytext,st=Nt.yylineno,zt=Nt.yylloc,kt>0&&kt--);break;case 2:if(fe=this.productions_[Ht[1]][1],Se.$=mt[mt.length-fe],Se._$={first_line:rt[rt.length-(fe||1)].first_line,last_line:rt[rt.length-1].last_line,first_column:rt[rt.length-(fe||1)].first_column,last_column:rt[rt.length-1].last_column},ae&&(Se._$.range=[rt[rt.length-(fe||1)].range[0],rt[rt.length-1].range[1]]),xe=this.performAction.apply(Se,[nt,Tt,st,yt.yy,Ht[1],mt,rt].concat($t)),typeof xe<"u")return xe;fe&&(Y=Y.slice(0,-1*fe*2),mt=mt.slice(0,-1*fe),rt=rt.slice(0,-1*fe)),Y.push(this.productions_[Ht[1]][0]),mt.push(Se.$),rt.push(Se._$),ee=ht[Y[Y.length-2]][Y[Y.length-1]],Y.push(ee);break;case 3:return!0}}return!0},"parse")},St=function(){var Pt={EOF:1,parseError:o(function(dt,Y){if(this.yy.parser)this.yy.parser.parseError(dt,Y);else throw new Error(dt)},"parseError"),setInput:o(function(_t,dt){return this.yy=dt||this.yy||{},this._input=_t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var _t=this._input[0];this.yytext+=_t,this.yyleng++,this.offset++,this.match+=_t,this.matched+=_t;var dt=_t.match(/(?:\r\n?|\n).*/g);return dt?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),_t},"input"),unput:o(function(_t){var dt=_t.length,Y=_t.split(/(?:\r\n?|\n)/g);this._input=_t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-dt),this.offset-=dt;var ft=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Y.length-1&&(this.yylineno-=Y.length-1);var mt=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Y?(Y.length===ft.length?this.yylloc.first_column:0)+ft[ft.length-Y.length].length-Y[0].length:this.yylloc.first_column-dt},this.options.ranges&&(this.yylloc.range=[mt[0],mt[0]+this.yyleng-dt]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(_t){this.unput(this.match.slice(_t))},"less"),pastInput:o(function(){var _t=this.matched.substr(0,this.matched.length-this.match.length);return(_t.length>20?"...":"")+_t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var _t=this.match;return _t.length<20&&(_t+=this._input.substr(0,20-_t.length)),(_t.substr(0,20)+(_t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var _t=this.pastInput(),dt=new Array(_t.length+1).join("-");return _t+this.upcomingInput()+` +`+dt+"^"},"showPosition"),test_match:o(function(_t,dt){var Y,ft,mt;if(this.options.backtrack_lexer&&(mt={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(mt.yylloc.range=this.yylloc.range.slice(0))),ft=_t[0].match(/(?:\r\n?|\n).*/g),ft&&(this.yylineno+=ft.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:ft?ft[ft.length-1].length-ft[ft.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+_t[0].length},this.yytext+=_t[0],this.match+=_t[0],this.matches=_t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(_t[0].length),this.matched+=_t[0],Y=this.performAction.call(this,this.yy,this,dt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Y)return Y;if(this._backtrack){for(var rt in mt)this[rt]=mt[rt];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var _t,dt,Y,ft;this._more||(this.yytext="",this.match="");for(var mt=this._currentRules(),rt=0;rtdt[0].length)){if(dt=Y,ft=rt,this.options.backtrack_lexer){if(_t=this.test_match(Y,mt[rt]),_t!==!1)return _t;if(this._backtrack){dt=!1;continue}else return!1}else if(!this.options.flex)break}return dt?(_t=this.test_match(dt,mt[ft]),_t!==!1?_t:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var dt=this.next();return dt||this.lex()},"lex"),begin:o(function(dt){this.conditionStack.push(dt)},"begin"),popState:o(function(){var dt=this.conditionStack.length-1;return dt>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(dt){return dt=this.conditionStack.length-1-Math.abs(dt||0),dt>=0?this.conditionStack[dt]:"INITIAL"},"topState"),pushState:o(function(dt){this.begin(dt)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:o(function(dt,Y,ft,mt){var rt=mt;switch(ft){case 0:return 54;case 1:return 55;case 2:return 56;case 3:return 57;case 4:break;case 5:break;case 6:return this.begin("acc_title"),32;break;case 7:return this.popState(),"acc_title_value";break;case 8:return this.begin("acc_descr"),34;break;case 9:return this.popState(),"acc_descr_value";break;case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 8;case 14:break;case 15:return 7;case 16:return 7;case 17:return"EDGE_STATE";case 18:this.begin("callback_name");break;case 19:this.popState();break;case 20:this.popState(),this.begin("callback_args");break;case 21:return 71;case 22:this.popState();break;case 23:return 72;case 24:this.popState();break;case 25:return"STR";case 26:this.begin("string");break;case 27:return 74;case 28:return this.begin("namespace"),41;break;case 29:return this.popState(),8;break;case 30:break;case 31:return this.begin("namespace-body"),38;break;case 32:return this.popState(),40;break;case 33:return"EOF_IN_STRUCT";case 34:return 8;case 35:break;case 36:return"EDGE_STATE";case 37:return this.begin("class"),45;break;case 38:return this.popState(),8;break;case 39:break;case 40:return this.popState(),this.popState(),40;break;case 41:return this.begin("class-body"),38;break;case 42:return this.popState(),40;break;case 43:return"EOF_IN_STRUCT";case 44:return"EDGE_STATE";case 45:return"OPEN_IN_STRUCT";case 46:break;case 47:return"MEMBER";case 48:return 77;case 49:return 67;case 50:return 68;case 51:return 70;case 52:return 51;case 53:return 53;case 54:return 46;case 55:return 47;case 56:return 73;case 57:this.popState();break;case 58:return"GENERICTYPE";case 59:this.begin("generic");break;case 60:this.popState();break;case 61:return"BQUOTE_STR";case 62:this.begin("bqstring");break;case 63:return 69;case 64:return 69;case 65:return 69;case 66:return 69;case 67:return 61;case 68:return 61;case 69:return 63;case 70:return 63;case 71:return 62;case 72:return 60;case 73:return 64;case 74:return 65;case 75:return 66;case 76:return 22;case 77:return 43;case 78:return 96;case 79:return 17;case 80:return"PLUS";case 81:return 82;case 82:return 79;case 83:return 85;case 84:return 85;case 85:return 86;case 86:return"EQUALS";case 87:return"EQUALS";case 88:return 75;case 89:return 12;case 90:return 14;case 91:return"PUNCTUATION";case 92:return 81;case 93:return 98;case 94:return 84;case 95:return 84;case 96:return 9}},"anonymous"),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:\[\*\])/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:["])/,/^(?:[^"]*)/,/^(?:["])/,/^(?:style\b)/,/^(?:namespace\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:\[\*\])/,/^(?:class\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[}])/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\[\*\])/,/^(?:[{])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:note for\b)/,/^(?:note\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:href\b)/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:~)/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:[`])/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:\s*\(\))/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?::)/,/^(?:,)/,/^(?:#)/,/^(?:#)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:\[)/,/^(?:\])/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:\s)/,/^(?:$)/],conditions:{"namespace-body":{rules:[26,32,33,34,35,36,37,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},namespace:{rules:[26,28,29,30,31,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},"class-body":{rules:[26,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},class:{rules:[26,38,39,40,41,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},acc_descr_multiline:{rules:[11,12,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},acc_descr:{rules:[9,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},acc_title:{rules:[7,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},callback_args:{rules:[22,23,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},callback_name:{rules:[19,20,21,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},href:{rules:[26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},struct:{rules:[26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},generic:{rules:[26,48,49,50,51,52,53,54,55,56,57,58,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},bqstring:{rules:[26,48,49,50,51,52,53,54,55,56,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},string:{rules:[24,25,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,26,27,28,37,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96],inclusive:!0}}};return Pt}();Ot.lexer=St;function Vt(){this.yy={}}return o(Vt,"Parser"),Vt.prototype=Ot,Ot.Parser=Vt,new Vt}();SP.parser=SP;f6=SP});var mdt,Wx,gdt=R(()=>{"use strict";Ue();hr();mdt=["#","+","~","-",""],Wx=class{static{o(this,"ClassMember")}constructor(t,r){this.memberType=r,this.visibility="",this.classifier="";let n=Zr(t,pt());this.parseMember(n)}getDisplayDetails(){let t=this.visibility+yh(this.id);this.memberType==="method"&&(t+=`(${yh(this.parameters.trim())})`,this.returnType&&(t+=" : "+yh(this.returnType))),t=t.trim();let r=this.parseClassifier();return{displayText:t,cssStyle:r}}parseMember(t){let r="";if(this.memberType==="method"){let i=/([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/.exec(t);if(i){let a=i[1]?i[1].trim():"";if(mdt.includes(a)&&(this.visibility=a),this.id=i[2].trim(),this.parameters=i[3]?i[3].trim():"",r=i[4]?i[4].trim():"",this.returnType=i[5]?i[5].trim():"",r===""){let s=this.returnType.substring(this.returnType.length-1);/[$*]/.exec(s)&&(r=s,this.returnType=this.returnType.substring(0,this.returnType.length-1))}}}else{let n=t.length,i=t.substring(0,1),a=t.substring(n-1);mdt.includes(i)&&(this.visibility=i),/[$*]/.exec(a)&&(r=a),this.id=t.substring(this.visibility===""?0:1,r===""?n:n-1)}this.classifier=r}parseClassifier(){switch(this.classifier){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}}}});var m6,LP,Wi,d6,ydt,Zu,_P,Yx,P0,B0,AHt,p6,vdt,_Ht,LHt,DHt,RHt,NHt,MHt,IHt,xdt,OHt,PHt,BHt,DP,FHt,zHt,$Ht,GHt,VHt,UHt,HHt,WHt,bdt,RP,YHt,qHt,XHt,jHt,KHt,QHt,ZHt,Zg,NP=R(()=>{"use strict";ur();ce();Ue();hr();_r();Ci();gdt();m6="classId-",LP=[],Wi=new Map,d6=[],ydt=0,Zu=new Map,_P=0,Yx=[],P0=o(e=>Yt.sanitizeText(e,pt()),"sanitizeText"),B0=o(function(e){let t=Yt.sanitizeText(e,pt()),r="",n=t;if(t.indexOf("~")>0){let i=t.split("~");n=P0(i[0]),r=P0(i[1])}return{className:n,type:r}},"splitClassNameAndType"),AHt=o(function(e,t){let r=Yt.sanitizeText(e,pt());t&&(t=P0(t));let{className:n}=B0(r);Wi.get(n).label=t},"setClassLabel"),p6=o(function(e){let t=Yt.sanitizeText(e,pt()),{className:r,type:n}=B0(t);if(Wi.has(r))return;let i=Yt.sanitizeText(r,pt());Wi.set(i,{id:i,type:n,label:i,cssClasses:[],methods:[],members:[],annotations:[],styles:[],domId:m6+i+"-"+ydt}),ydt++},"addClass"),vdt=o(function(e){let t=Yt.sanitizeText(e,pt());if(Wi.has(t))return Wi.get(t).domId;throw new Error("Class not found: "+t)},"lookUpDomId"),_Ht=o(function(){LP=[],Wi=new Map,d6=[],Yx=[],Yx.push(bdt),Zu=new Map,_P=0,RP="TB",Ar()},"clear"),LHt=o(function(e){return Wi.get(e)},"getClass"),DHt=o(function(){return Wi},"getClasses"),RHt=o(function(){return LP},"getRelations"),NHt=o(function(){return d6},"getNotes"),MHt=o(function(e){V.debug("Adding relation: "+JSON.stringify(e)),p6(e.id1),p6(e.id2),e.id1=B0(e.id1).className,e.id2=B0(e.id2).className,e.relationTitle1=Yt.sanitizeText(e.relationTitle1.trim(),pt()),e.relationTitle2=Yt.sanitizeText(e.relationTitle2.trim(),pt()),LP.push(e)},"addRelation"),IHt=o(function(e,t){let r=B0(e).className;Wi.get(r).annotations.push(t)},"addAnnotation"),xdt=o(function(e,t){p6(e);let r=B0(e).className,n=Wi.get(r);if(typeof t=="string"){let i=t.trim();i.startsWith("<<")&&i.endsWith(">>")?n.annotations.push(P0(i.substring(2,i.length-2))):i.indexOf(")")>0?n.methods.push(new Wx(i,"method")):i&&n.members.push(new Wx(i,"attribute"))}},"addMember"),OHt=o(function(e,t){Array.isArray(t)&&(t.reverse(),t.forEach(r=>xdt(e,r)))},"addMembers"),PHt=o(function(e,t){let r={id:`note${d6.length}`,class:t,text:e};d6.push(r)},"addNote"),BHt=o(function(e){return e.startsWith(":")&&(e=e.substring(1)),P0(e.trim())},"cleanupLabel"),DP=o(function(e,t){e.split(",").forEach(function(r){let n=r;/\d/.exec(r[0])&&(n=m6+n);let i=Wi.get(n);i&&i.cssClasses.push(t)})},"setCssClass"),FHt=o(function(e,t){e.split(",").forEach(function(r){t!==void 0&&(Wi.get(r).tooltip=P0(t))})},"setTooltip"),zHt=o(function(e,t){return t&&Zu.has(t)?Zu.get(t).classes.get(e).tooltip:Wi.get(e).tooltip},"getTooltip"),$Ht=o(function(e,t,r){let n=pt();e.split(",").forEach(function(i){let a=i;/\d/.exec(i[0])&&(a=m6+a);let s=Wi.get(a);s&&(s.link=Oe.formatUrl(t,n),n.securityLevel==="sandbox"?s.linkTarget="_top":typeof r=="string"?s.linkTarget=P0(r):s.linkTarget="_blank")}),DP(e,"clickable")},"setLink"),GHt=o(function(e,t,r){e.split(",").forEach(function(n){VHt(n,t,r),Wi.get(n).haveCallback=!0}),DP(e,"clickable")},"setClickEvent"),VHt=o(function(e,t,r){let n=Yt.sanitizeText(e,pt());if(pt().securityLevel!=="loose"||t===void 0)return;let a=n;if(Wi.has(a)){let s=vdt(a),l=[];if(typeof r=="string"){l=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let u=0;u")),i.classed("hover",!0)}).on("mouseout",function(){t.transition().duration(500).style("opacity",0),Gt(this).classed("hover",!1)})},"setupToolTips");Yx.push(bdt);RP="TB",YHt=o(()=>RP,"getDirection"),qHt=o(e=>{RP=e},"setDirection"),XHt=o(function(e){Zu.has(e)||(Zu.set(e,{id:e,classes:new Map,children:{},domId:m6+e+"-"+_P}),_P++)},"addNamespace"),jHt=o(function(e){return Zu.get(e)},"getNamespace"),KHt=o(function(){return Zu},"getNamespaces"),QHt=o(function(e,t){if(Zu.has(e))for(let r of t){let{className:n}=B0(r);Wi.get(n).parent=e,Zu.get(e).classes.set(n,Wi.get(n))}},"addClassesToNamespace"),ZHt=o(function(e,t){let r=Wi.get(e);if(!(!t||!r))for(let n of t)n.includes(",")?r.styles.push(...n.split(",")):r.styles.push(n)},"setCssStyle"),Zg={setAccTitle:Mr,getAccTitle:Br,getAccDescription:zr,setAccDescription:Fr,getConfig:o(()=>pt().class,"getConfig"),addClass:p6,bindFunctions:UHt,clear:_Ht,getClass:LHt,getClasses:DHt,getNotes:NHt,addAnnotation:IHt,addNote:PHt,getRelations:RHt,addRelation:MHt,getDirection:YHt,setDirection:qHt,addMember:xdt,addMembers:OHt,cleanupLabel:BHt,lineType:HHt,relationType:WHt,setClickEvent:GHt,setCssClass:DP,setLink:$Ht,getTooltip:zHt,setTooltip:FHt,lookUpDomId:vdt,setDiagramTitle:cn,getDiagramTitle:Jr,setClassLabel:AHt,addNamespace:XHt,addClassesToNamespace:QHt,getNamespace:jHt,getNamespaces:KHt,setCssStyle:ZHt}});var JHt,g6,MP=R(()=>{"use strict";JHt=o(e=>`g.classGroup text { + fill: ${e.nodeBorder||e.classText}; stroke: none; - font-family: ${i.fontFamily}; + font-family: ${e.fontFamily}; font-size: 10px; .title { @@ -834,16 +1329,16 @@ Expecting `+rc.join(", ")+", got '"+(this.terminals_[hi]||hi)+"'":qn="Parse erro } .nodeLabel, .edgeLabel { - color: ${i.classText}; + color: ${e.classText}; } .edgeLabel .label rect { - fill: ${i.mainBkg}; + fill: ${e.mainBkg}; } .label text { - fill: ${i.classText}; + fill: ${e.classText}; } .edgeLabel .label span { - background: ${i.mainBkg}; + background: ${e.mainBkg}; } .classTitle { @@ -854,14 +1349,14 @@ Expecting `+rc.join(", ")+", got '"+(this.terminals_[hi]||hi)+"'":qn="Parse erro .node ellipse, .node polygon, .node path { - fill: ${i.mainBkg}; - stroke: ${i.nodeBorder}; + fill: ${e.mainBkg}; + stroke: ${e.nodeBorder}; stroke-width: 1px; } .divider { - stroke: ${i.nodeBorder}; + stroke: ${e.nodeBorder}; stroke-width: 1; } @@ -870,29 +1365,29 @@ g.clickable { } g.classGroup rect { - fill: ${i.mainBkg}; - stroke: ${i.nodeBorder}; + fill: ${e.mainBkg}; + stroke: ${e.nodeBorder}; } g.classGroup line { - stroke: ${i.nodeBorder}; + stroke: ${e.nodeBorder}; stroke-width: 1; } .classLabel .box { stroke: none; stroke-width: 0; - fill: ${i.mainBkg}; + fill: ${e.mainBkg}; opacity: 0.5; } .classLabel .label { - fill: ${i.nodeBorder}; + fill: ${e.nodeBorder}; font-size: 10px; } .relation { - stroke: ${i.lineColor}; + stroke: ${e.lineColor}; stroke-width: 1; fill: none; } @@ -906,119 +1401,124 @@ g.classGroup line { } #compositionStart, .composition { - fill: ${i.lineColor} !important; - stroke: ${i.lineColor} !important; + fill: ${e.lineColor} !important; + stroke: ${e.lineColor} !important; stroke-width: 1; } #compositionEnd, .composition { - fill: ${i.lineColor} !important; - stroke: ${i.lineColor} !important; + fill: ${e.lineColor} !important; + stroke: ${e.lineColor} !important; stroke-width: 1; } #dependencyStart, .dependency { - fill: ${i.lineColor} !important; - stroke: ${i.lineColor} !important; + fill: ${e.lineColor} !important; + stroke: ${e.lineColor} !important; stroke-width: 1; } #dependencyStart, .dependency { - fill: ${i.lineColor} !important; - stroke: ${i.lineColor} !important; + fill: ${e.lineColor} !important; + stroke: ${e.lineColor} !important; stroke-width: 1; } #extensionStart, .extension { - fill: ${i.mainBkg} !important; - stroke: ${i.lineColor} !important; + fill: transparent !important; + stroke: ${e.lineColor} !important; stroke-width: 1; } #extensionEnd, .extension { - fill: ${i.mainBkg} !important; - stroke: ${i.lineColor} !important; + fill: transparent !important; + stroke: ${e.lineColor} !important; stroke-width: 1; } #aggregationStart, .aggregation { - fill: ${i.mainBkg} !important; - stroke: ${i.lineColor} !important; + fill: transparent !important; + stroke: ${e.lineColor} !important; stroke-width: 1; } #aggregationEnd, .aggregation { - fill: ${i.mainBkg} !important; - stroke: ${i.lineColor} !important; + fill: transparent !important; + stroke: ${e.lineColor} !important; stroke-width: 1; } #lollipopStart, .lollipop { - fill: ${i.mainBkg} !important; - stroke: ${i.lineColor} !important; + fill: ${e.mainBkg} !important; + stroke: ${e.lineColor} !important; stroke-width: 1; } #lollipopEnd, .lollipop { - fill: ${i.mainBkg} !important; - stroke: ${i.lineColor} !important; + fill: ${e.mainBkg} !important; + stroke: ${e.lineColor} !important; stroke-width: 1; } .edgeTerminals { font-size: 11px; + line-height: initial; } .classTitleText { text-anchor: middle; font-size: 18px; - fill: ${i.textColor}; -} -`;let _K={};const CK=20,LP=function(i){const a=Object.entries(_K).find(f=>f[1].label===i);if(a)return a[0]},SHe=function(i){i.append("defs").append("marker").attr("id","extensionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),i.append("defs").append("marker").attr("id","extensionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z"),i.append("defs").append("marker").attr("id","compositionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","compositionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","aggregationStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","aggregationEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","dependencyStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},AHe=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:ZBt,db:TK,renderer:{draw:function(i,a,f,p){const v=Oe().class;_K={},zt.info("Rendering diagram "+i);const m=Oe().securityLevel;let b;m==="sandbox"&&(b=Mr("#i"+a));const E=Mr(m==="sandbox"?b.nodes()[0].contentDocument.body:"body"),C=E.select(`[id='${a}']`);SHe(C);const D=new jf({multigraph:!0});D.setGraph({isMultiGraph:!0}),D.setDefaultEdgeLabel(function(){return{}});const P=p.db.getClasses(),B=Object.keys(P);for(const st of B){const pt=P[st],Tt=b0t.drawClass(C,pt,v,p);_K[Tt.id]=Tt,D.setNode(Tt.id,Tt),zt.info("Org height: "+Tt.height)}p.db.getRelations().forEach(function(st){zt.info("tjoho"+LP(st.id1)+LP(st.id2)+JSON.stringify(st)),D.setEdge(LP(st.id1),LP(st.id2),{relation:st},st.title||"DEFAULT")}),p.db.getNotes().forEach(function(st){zt.debug(`Adding note: ${JSON.stringify(st)}`);const pt=b0t.drawNote(C,st,v,p);_K[pt.id]=pt,D.setNode(pt.id,pt),st.class&&st.class in P&&D.setEdge(st.id,LP(st.class),{relation:{id1:st.id,id2:st.class,relation:{type1:"none",type2:"none",lineType:10}}},"DEFAULT")}),eL(D),D.nodes().forEach(function(st){st!==void 0&&D.node(st)!==void 0&&(zt.debug("Node "+st+": "+JSON.stringify(D.node(st))),E.select("#"+(p.db.lookUpDomId(st)||st)).attr("transform","translate("+(D.node(st).x-D.node(st).width/2)+","+(D.node(st).y-D.node(st).height/2)+" )"))}),D.edges().forEach(function(st){st!==void 0&&D.edge(st)!==void 0&&(zt.debug("Edge "+st.v+" -> "+st.w+": "+JSON.stringify(D.edge(st))),b0t.drawEdge(C,D.edge(st),D.edge(st).relation,v,p))});const H=C.node().getBBox(),Y=H.width+CK*2,it=H.height+CK*2;Wb(C,it,Y,v.useMaxWidth);const nt=`${H.x-CK} ${H.y-CK} ${Y} ${it}`;zt.debug(`viewBox ${nt}`),C.attr("viewBox",nt)}},styles:rRt,init:i=>{i.class||(i.class={}),i.class.arrowMarkerAbsolute=i.arrowMarkerAbsolute,TK.clear()}}},Symbol.toStringTag,{value:"Module"})),ogt=i=>yi.sanitizeText(i,Oe());let cgt={dividerMargin:10,padding:5,textHeight:10,curve:void 0};const LHe=function(i,a,f,p){const v=Object.keys(i);zt.info("keys:",v),zt.info(i),v.forEach(function(m){var D,P;const b=i[m],C={shape:"rect",id:b.id,domId:b.domId,labelText:ogt(b.id),labelStyle:"",style:"fill: none; stroke: black",padding:((D=Oe().flowchart)==null?void 0:D.padding)??((P=Oe().class)==null?void 0:P.padding)};a.setNode(b.id,C),iRt(b.classes,a,f,p,b.id),zt.info("setNode",C)})},iRt=function(i,a,f,p,v){const m=Object.keys(i);zt.info("keys:",m),zt.info(i),m.forEach(function(b){var H,Y;const E=i[b];let C="";E.cssClasses.length>0&&(C=C+" "+E.cssClasses.join(" "));const D={labelStyle:"",style:""},P=E.label??E.id,B=0,j="class_box",R={labelStyle:D.labelStyle,shape:j,labelText:ogt(P),classData:E,rx:B,ry:B,class:C,style:D.style,id:E.id,domId:E.domId,tooltip:p.db.getTooltip(E.id,v)||"",haveCallback:E.haveCallback,link:E.link,width:E.type==="group"?500:void 0,type:E.type,padding:((H=Oe().flowchart)==null?void 0:H.padding)??((Y=Oe().class)==null?void 0:Y.padding)};a.setNode(E.id,R),v&&a.setParent(E.id,v),zt.info("setNode",R)})},MHe=function(i,a,f,p){zt.info(i),i.forEach(function(v,m){var Y,it;const b=v,E="",C={labelStyle:"",style:""},D=b.text,P=0,B="note",j={labelStyle:C.labelStyle,shape:B,labelText:ogt(D),noteData:b,rx:P,ry:P,class:E,style:C.style,id:b.id,domId:b.id,tooltip:"",type:"note",padding:((Y=Oe().flowchart)==null?void 0:Y.padding)??((it=Oe().class)==null?void 0:it.padding)};if(a.setNode(b.id,j),zt.info("setNode",j),!b.class||!(b.class in p))return;const R=f+m,H={id:`edgeNote${R}`,classes:"relation",pattern:"dotted",arrowhead:"none",startLabelRight:"",endLabelLeft:"",arrowTypeStart:"none",arrowTypeEnd:"none",style:"fill:none",labelStyle:"",curve:Xb(cgt.curve,rg)};a.setEdge(b.id,b.class,H,R)})},DHe=function(i,a){const f=Oe().flowchart;let p=0;i.forEach(function(v){var b;p++;const m={classes:"relation",pattern:v.relation.lineType==1?"dashed":"solid",id:"id"+p,arrowhead:v.type==="arrow_open"?"none":"normal",startLabelRight:v.relationTitle1==="none"?"":v.relationTitle1,endLabelLeft:v.relationTitle2==="none"?"":v.relationTitle2,arrowTypeStart:sRt(v.relation.type1),arrowTypeEnd:sRt(v.relation.type2),style:"fill:none",labelStyle:"",curve:Xb(f==null?void 0:f.curve,rg)};if(zt.info(m,v),v.style!==void 0){const E=Qw(v.style);m.style=E.style,m.labelStyle=E.labelStyle}v.text=v.title,v.text===void 0?v.style!==void 0&&(m.arrowheadStyle="fill: #333"):(m.arrowheadStyle="fill: #333",m.labelpos="c",((b=Oe().flowchart)==null?void 0:b.htmlLabels)??Oe().htmlLabels?(m.labelType="html",m.label=''+v.text+""):(m.labelType="text",m.label=v.text.replace(yi.lineBreakRegex,` -`),v.style===void 0&&(m.style=m.style||"stroke: #333; stroke-width: 1.5px;fill:none"),m.labelStyle=m.labelStyle.replace("color:","fill:"))),a.setEdge(v.id1,v.id2,m,p)})},IHe=function(i){cgt={...cgt,...i}},OHe=async function(i,a,f,p){zt.info("Drawing class - ",a);const v=Oe().flowchart??Oe().class,m=Oe().securityLevel;zt.info("config:",v);const b=(v==null?void 0:v.nodeSpacing)??50,E=(v==null?void 0:v.rankSpacing)??50,C=new jf({multigraph:!0,compound:!0}).setGraph({rankdir:p.db.getDirection(),nodesep:b,ranksep:E,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),D=p.db.getNamespaces(),P=p.db.getClasses(),B=p.db.getRelations(),j=p.db.getNotes();zt.info(B),LHe(D,C,a,p),iRt(P,C,a,p),DHe(B,C),MHe(j,C,B.length+1,P);let R;m==="sandbox"&&(R=Mr("#i"+a));const H=Mr(m==="sandbox"?R.nodes()[0].contentDocument.body:"body"),Y=H.select(`[id="${a}"]`),it=H.select("#"+a+" g");if(await v0t(it,C,["aggregation","extension","composition","dependency","lollipop"],"classDiagram",a),lo.insertTitle(Y,"classTitleText",(v==null?void 0:v.titleTopMargin)??5,p.db.getDiagramTitle()),Z9(C,Y,v==null?void 0:v.diagramPadding,v==null?void 0:v.useMaxWidth),!(v!=null&&v.htmlLabels)){const nt=m==="sandbox"?R.nodes()[0].contentDocument:document,st=nt.querySelectorAll('[id="'+a+'"] .edgeLabel .label');for(const pt of st){const Tt=pt.getBBox(),kt=nt.createElementNS("http://www.w3.org/2000/svg","rect");kt.setAttribute("rx",0),kt.setAttribute("ry",0),kt.setAttribute("width",Tt.width),kt.setAttribute("height",Tt.height),pt.insertBefore(kt,pt.firstChild)}}};function sRt(i){let a;switch(i){case 0:a="aggregation";break;case 1:a="extension";break;case 2:a="composition";break;case 3:a="dependency";break;case 4:a="lollipop";break;default:a="none"}return a}const NHe=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:ZBt,db:TK,renderer:{setConf:IHe,draw:OHe},styles:rRt,init:i=>{i.class||(i.class={}),i.class.arrowMarkerAbsolute=i.arrowMarkerAbsolute,TK.clear()}}},Symbol.toStringTag,{value:"Module"}));var ugt=function(){var i=function(Wt,It,Nt,me){for(Nt=Nt||{},me=Wt.length;me--;Nt[Wt[me]]=It);return Nt},a=[1,2],f=[1,3],p=[1,5],v=[1,7],m=[2,5],b=[1,15],E=[1,17],C=[1,21],D=[1,22],P=[1,23],B=[1,24],j=[1,37],R=[1,25],H=[1,26],Y=[1,27],it=[1,28],nt=[1,29],st=[1,32],pt=[1,33],Tt=[1,34],kt=[1,35],yt=[1,36],ht=[1,39],mt=[1,40],rt=[1,41],wt=[1,42],gt=[1,38],lt=[1,45],_t=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,50,51,52,53,56,60],X=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,50,51,52,53,56,60],Rt=[1,4,5,7,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,50,51,52,53,56,60],ft=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,50,51,52,53,56,60],de={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,directive:6,SD:7,document:8,line:9,statement:10,classDefStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,classDef:38,CLASSDEF_ID:39,CLASSDEF_STYLEOPTS:40,DEFAULT:41,class:42,CLASSENTITY_IDS:43,STYLECLASS:44,openDirective:45,typeDirective:46,closeDirective:47,":":48,argDirective:49,direction_tb:50,direction_bt:51,direction_rl:52,direction_lr:53,eol:54,";":55,EDGE_STATE:56,STYLE_SEPARATOR:57,left_of:58,right_of:59,open_directive:60,type_directive:61,arg_directive:62,close_directive:63,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",7:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"classDef",39:"CLASSDEF_ID",40:"CLASSDEF_STYLEOPTS",41:"DEFAULT",42:"class",43:"CLASSENTITY_IDS",44:"STYLECLASS",48:":",50:"direction_tb",51:"direction_bt",52:"direction_rl",53:"direction_lr",55:";",56:"EDGE_STATE",57:"STYLE_SEPARATOR",58:"left_of",59:"right_of",60:"open_directive",61:"type_directive",62:"arg_directive",63:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[9,1],[9,1],[10,1],[10,1],[10,1],[10,2],[10,3],[10,4],[10,1],[10,2],[10,1],[10,4],[10,3],[10,6],[10,1],[10,1],[10,1],[10,1],[10,4],[10,4],[10,1],[10,1],[10,2],[10,2],[10,1],[11,3],[11,3],[12,3],[6,3],[6,5],[32,1],[32,1],[32,1],[32,1],[54,1],[54,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1],[45,1],[46,1],[49,1],[47,1]],performAction:function(It,Nt,me,Ue,_n,_e,rr){var Te=_e.length-1;switch(_n){case 4:return Ue.setRootDoc(_e[Te]),_e[Te];case 5:this.$=[];break;case 6:_e[Te]!="nl"&&(_e[Te-1].push(_e[Te]),this.$=_e[Te-1]);break;case 7:case 8:this.$=_e[Te];break;case 9:this.$="nl";break;case 12:this.$=_e[Te];break;case 13:const Vt=_e[Te-1];Vt.description=Ue.trimColon(_e[Te]),this.$=Vt;break;case 14:this.$={stmt:"relation",state1:_e[Te-2],state2:_e[Te]};break;case 15:const Ae=Ue.trimColon(_e[Te]);this.$={stmt:"relation",state1:_e[Te-3],state2:_e[Te-1],description:Ae};break;case 19:this.$={stmt:"state",id:_e[Te-3],type:"default",description:"",doc:_e[Te-1]};break;case 20:var ne=_e[Te],Ee=_e[Te-2].trim();if(_e[Te].match(":")){var ye=_e[Te].split(":");ne=ye[0],Ee=[Ee,ye[1]]}this.$={stmt:"state",id:ne,type:"default",description:Ee};break;case 21:this.$={stmt:"state",id:_e[Te-3],type:"default",description:_e[Te-5],doc:_e[Te-1]};break;case 22:this.$={stmt:"state",id:_e[Te],type:"fork"};break;case 23:this.$={stmt:"state",id:_e[Te],type:"join"};break;case 24:this.$={stmt:"state",id:_e[Te],type:"choice"};break;case 25:this.$={stmt:"state",id:Ue.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:_e[Te-1].trim(),note:{position:_e[Te-2].trim(),text:_e[Te].trim()}};break;case 30:this.$=_e[Te].trim(),Ue.setAccTitle(this.$);break;case 31:case 32:this.$=_e[Te].trim(),Ue.setAccDescription(this.$);break;case 33:case 34:this.$={stmt:"classDef",id:_e[Te-1].trim(),classes:_e[Te].trim()};break;case 35:this.$={stmt:"applyClass",id:_e[Te-1].trim(),styleClass:_e[Te].trim()};break;case 38:Ue.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:Ue.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:Ue.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:Ue.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:_e[Te].trim(),type:"default",description:""};break;case 46:this.$={stmt:"state",id:_e[Te-2].trim(),classes:[_e[Te].trim()],type:"default",description:""};break;case 47:this.$={stmt:"state",id:_e[Te-2].trim(),classes:[_e[Te].trim()],type:"default",description:""};break;case 50:Ue.parseDirective("%%{","open_directive");break;case 51:Ue.parseDirective(_e[Te],"type_directive");break;case 52:_e[Te]=_e[Te].trim().replace(/'/g,'"'),Ue.parseDirective(_e[Te],"arg_directive");break;case 53:Ue.parseDirective("}%%","close_directive","state");break}},table:[{3:1,4:a,5:f,6:4,7:p,45:6,60:v},{1:[3]},{3:8,4:a,5:f,6:4,7:p,45:6,60:v},{3:9,4:a,5:f,6:4,7:p,45:6,60:v},{3:10,4:a,5:f,6:4,7:p,45:6,60:v},i([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,42,50,51,52,53,56,60],m,{8:11}),{46:12,61:[1,13]},{61:[2,50]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:b,5:E,6:30,9:14,10:16,11:18,12:19,13:20,16:C,17:D,19:P,22:B,24:j,25:R,26:H,27:Y,28:it,29:nt,32:31,33:st,35:pt,37:Tt,38:kt,42:yt,45:6,50:ht,51:mt,52:rt,53:wt,56:gt,60:v},{47:43,48:[1,44],63:lt},i([48,63],[2,51]),i(_t,[2,6]),{6:30,10:46,11:18,12:19,13:20,16:C,17:D,19:P,22:B,24:j,25:R,26:H,27:Y,28:it,29:nt,32:31,33:st,35:pt,37:Tt,38:kt,42:yt,45:6,50:ht,51:mt,52:rt,53:wt,56:gt,60:v},i(_t,[2,8]),i(_t,[2,9]),i(_t,[2,10]),i(_t,[2,11]),i(_t,[2,12],{14:[1,47],15:[1,48]}),i(_t,[2,16]),{18:[1,49]},i(_t,[2,18],{20:[1,50]}),{23:[1,51]},i(_t,[2,22]),i(_t,[2,23]),i(_t,[2,24]),i(_t,[2,25]),{30:52,31:[1,53],58:[1,54],59:[1,55]},i(_t,[2,28]),i(_t,[2,29]),{34:[1,56]},{36:[1,57]},i(_t,[2,32]),{39:[1,58],41:[1,59]},{43:[1,60]},i(X,[2,44],{57:[1,61]}),i(X,[2,45],{57:[1,62]}),i(_t,[2,38]),i(_t,[2,39]),i(_t,[2,40]),i(_t,[2,41]),i(Rt,[2,36]),{49:63,62:[1,64]},i(Rt,[2,53]),i(_t,[2,7]),i(_t,[2,13]),{13:65,24:j,56:gt},i(_t,[2,17]),i(ft,m,{8:66}),{24:[1,67]},{24:[1,68]},{23:[1,69]},{24:[2,48]},{24:[2,49]},i(_t,[2,30]),i(_t,[2,31]),{40:[1,70]},{40:[1,71]},{44:[1,72]},{24:[1,73]},{24:[1,74]},{47:75,63:lt},{63:[2,52]},i(_t,[2,14],{14:[1,76]}),{4:b,5:E,6:30,9:14,10:16,11:18,12:19,13:20,16:C,17:D,19:P,21:[1,77],22:B,24:j,25:R,26:H,27:Y,28:it,29:nt,32:31,33:st,35:pt,37:Tt,38:kt,42:yt,45:6,50:ht,51:mt,52:rt,53:wt,56:gt,60:v},i(_t,[2,20],{20:[1,78]}),{31:[1,79]},{24:[1,80]},i(_t,[2,33]),i(_t,[2,34]),i(_t,[2,35]),i(X,[2,46]),i(X,[2,47]),i(Rt,[2,37]),i(_t,[2,15]),i(_t,[2,19]),i(ft,m,{8:81}),i(_t,[2,26]),i(_t,[2,27]),{4:b,5:E,6:30,9:14,10:16,11:18,12:19,13:20,16:C,17:D,19:P,21:[1,82],22:B,24:j,25:R,26:H,27:Y,28:it,29:nt,32:31,33:st,35:pt,37:Tt,38:kt,42:yt,45:6,50:ht,51:mt,52:rt,53:wt,56:gt,60:v},i(_t,[2,21])],defaultActions:{7:[2,50],8:[2,1],9:[2,2],10:[2,3],54:[2,48],55:[2,49],64:[2,52]},parseError:function(It,Nt){if(Nt.recoverable)this.trace(It);else{var me=new Error(It);throw me.hash=Nt,me}},parse:function(It){var Nt=this,me=[0],Ue=[],_n=[null],_e=[],rr=this.table,Te="",ne=0,Ee=0,ye=2,Vt=1,Ae=_e.slice.call(arguments,1),Gt=Object.create(this.lexer),un={yy:{}};for(var jt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,jt)&&(un.yy[jt]=this.yy[jt]);Gt.setInput(It,un.yy),un.yy.lexer=Gt,un.yy.parser=this,typeof Gt.yylloc>"u"&&(Gt.yylloc={});var Ke=Gt.yylloc;_e.push(Ke);var oe=Gt.options&&Gt.options.ranges;typeof un.yy.parseError=="function"?this.parseError=un.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Or(){var hr;return hr=Ue.pop()||Gt.lex()||Vt,typeof hr!="number"&&(hr instanceof Array&&(Ue=hr,hr=Ue.pop()),hr=Nt.symbols_[hr]||hr),hr}for(var Le,Nr,fe,sr,Yn={},tr,ur,gn,En;;){if(Nr=me[me.length-1],this.defaultActions[Nr]?fe=this.defaultActions[Nr]:((Le===null||typeof Le>"u")&&(Le=Or()),fe=rr[Nr]&&rr[Nr][Le]),typeof fe>"u"||!fe.length||!fe[0]){var Dr="";En=[];for(tr in rr[Nr])this.terminals_[tr]&&tr>ye&&En.push("'"+this.terminals_[tr]+"'");Gt.showPosition?Dr="Parse error on line "+(ne+1)+`: -`+Gt.showPosition()+` -Expecting `+En.join(", ")+", got '"+(this.terminals_[Le]||Le)+"'":Dr="Parse error on line "+(ne+1)+": Unexpected "+(Le==Vt?"end of input":"'"+(this.terminals_[Le]||Le)+"'"),this.parseError(Dr,{text:Gt.match,token:this.terminals_[Le]||Le,line:Gt.yylineno,loc:Ke,expected:En})}if(fe[0]instanceof Array&&fe.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Nr+", token: "+Le);switch(fe[0]){case 1:me.push(Le),_n.push(Gt.yytext),_e.push(Gt.yylloc),me.push(fe[1]),Le=null,Ee=Gt.yyleng,Te=Gt.yytext,ne=Gt.yylineno,Ke=Gt.yylloc;break;case 2:if(ur=this.productions_[fe[1]][1],Yn.$=_n[_n.length-ur],Yn._$={first_line:_e[_e.length-(ur||1)].first_line,last_line:_e[_e.length-1].last_line,first_column:_e[_e.length-(ur||1)].first_column,last_column:_e[_e.length-1].last_column},oe&&(Yn._$.range=[_e[_e.length-(ur||1)].range[0],_e[_e.length-1].range[1]]),sr=this.performAction.apply(Yn,[Te,Ee,ne,un.yy,fe[1],_n,_e].concat(Ae)),typeof sr<"u")return sr;ur&&(me=me.slice(0,-1*ur*2),_n=_n.slice(0,-1*ur),_e=_e.slice(0,-1*ur)),me.push(this.productions_[fe[1]][0]),_n.push(Yn.$),_e.push(Yn._$),gn=rr[me[me.length-2]][me[me.length-1]],me.push(gn);break;case 3:return!0}}return!0}},J=function(){var Wt={EOF:1,parseError:function(Nt,me){if(this.yy.parser)this.yy.parser.parseError(Nt,me);else throw new Error(Nt)},setInput:function(It,Nt){return this.yy=Nt||this.yy||{},this._input=It,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var It=this._input[0];this.yytext+=It,this.yyleng++,this.offset++,this.match+=It,this.matched+=It;var Nt=It.match(/(?:\r\n?|\n).*/g);return Nt?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),It},unput:function(It){var Nt=It.length,me=It.split(/(?:\r\n?|\n)/g);this._input=It+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Nt),this.offset-=Nt;var Ue=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),me.length-1&&(this.yylineno-=me.length-1);var _n=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:me?(me.length===Ue.length?this.yylloc.first_column:0)+Ue[Ue.length-me.length].length-me[0].length:this.yylloc.first_column-Nt},this.options.ranges&&(this.yylloc.range=[_n[0],_n[0]+this.yyleng-Nt]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). -`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(It){this.unput(this.match.slice(It))},pastInput:function(){var It=this.matched.substr(0,this.matched.length-this.match.length);return(It.length>20?"...":"")+It.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var It=this.match;return It.length<20&&(It+=this._input.substr(0,20-It.length)),(It.substr(0,20)+(It.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var It=this.pastInput(),Nt=new Array(It.length+1).join("-");return It+this.upcomingInput()+` -`+Nt+"^"},test_match:function(It,Nt){var me,Ue,_n;if(this.options.backtrack_lexer&&(_n={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(_n.yylloc.range=this.yylloc.range.slice(0))),Ue=It[0].match(/(?:\r\n?|\n).*/g),Ue&&(this.yylineno+=Ue.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Ue?Ue[Ue.length-1].length-Ue[Ue.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+It[0].length},this.yytext+=It[0],this.match+=It[0],this.matches=It,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(It[0].length),this.matched+=It[0],me=this.performAction.call(this,this.yy,this,Nt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),me)return me;if(this._backtrack){for(var _e in _n)this[_e]=_n[_e];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var It,Nt,me,Ue;this._more||(this.yytext="",this.match="");for(var _n=this._currentRules(),_e=0;_e<_n.length;_e++)if(me=this._input.match(this.rules[_n[_e]]),me&&(!Nt||me[0].length>Nt[0].length)){if(Nt=me,Ue=_e,this.options.backtrack_lexer){if(It=this.test_match(me,_n[_e]),It!==!1)return It;if(this._backtrack){Nt=!1;continue}else return!1}else if(!this.options.flex)break}return Nt?(It=this.test_match(Nt,_n[Ue]),It!==!1?It:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var Nt=this.next();return Nt||this.lex()},begin:function(Nt){this.conditionStack.push(Nt)},popState:function(){var Nt=this.conditionStack.length-1;return Nt>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(Nt){return Nt=this.conditionStack.length-1-Math.abs(Nt||0),Nt>=0?this.conditionStack[Nt]:"INITIAL"},pushState:function(Nt){this.begin(Nt)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(Nt,me,Ue,_n){switch(Ue){case 0:return 41;case 1:return 50;case 2:return 51;case 3:return 52;case 4:return 53;case 5:return this.begin("open_directive"),60;case 6:return this.begin("type_directive"),61;case 7:return this.popState(),this.begin("arg_directive"),48;case 8:return this.popState(),this.popState(),63;case 9:return 62;case 10:break;case 11:break;case 12:return 5;case 13:break;case 14:break;case 15:break;case 16:break;case 17:return this.pushState("SCALE"),17;case 18:return 18;case 19:this.popState();break;case 20:return this.begin("acc_title"),33;case 21:return this.popState(),"acc_title_value";case 22:return this.begin("acc_descr"),35;case 23:return this.popState(),"acc_descr_value";case 24:this.begin("acc_descr_multiline");break;case 25:this.popState();break;case 26:return"acc_descr_multiline_value";case 27:return this.pushState("CLASSDEF"),38;case 28:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 29:return this.popState(),this.pushState("CLASSDEFID"),39;case 30:return this.popState(),40;case 31:return this.pushState("CLASS"),42;case 32:return this.popState(),this.pushState("CLASS_STYLE"),43;case 33:return this.popState(),44;case 34:return this.pushState("SCALE"),17;case 35:return 18;case 36:this.popState();break;case 37:this.pushState("STATE");break;case 38:return this.popState(),me.yytext=me.yytext.slice(0,-8).trim(),25;case 39:return this.popState(),me.yytext=me.yytext.slice(0,-8).trim(),26;case 40:return this.popState(),me.yytext=me.yytext.slice(0,-10).trim(),27;case 41:return this.popState(),me.yytext=me.yytext.slice(0,-8).trim(),25;case 42:return this.popState(),me.yytext=me.yytext.slice(0,-8).trim(),26;case 43:return this.popState(),me.yytext=me.yytext.slice(0,-10).trim(),27;case 44:return 50;case 45:return 51;case 46:return 52;case 47:return 53;case 48:this.pushState("STATE_STRING");break;case 49:return this.pushState("STATE_ID"),"AS";case 50:return this.popState(),"ID";case 51:this.popState();break;case 52:return"STATE_DESCR";case 53:return 19;case 54:this.popState();break;case 55:return this.popState(),this.pushState("struct"),20;case 56:break;case 57:return this.popState(),21;case 58:break;case 59:return this.begin("NOTE"),29;case 60:return this.popState(),this.pushState("NOTE_ID"),58;case 61:return this.popState(),this.pushState("NOTE_ID"),59;case 62:this.popState(),this.pushState("FLOATING_NOTE");break;case 63:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 64:break;case 65:return"NOTE_TEXT";case 66:return this.popState(),"ID";case 67:return this.popState(),this.pushState("NOTE_TEXT"),24;case 68:return this.popState(),me.yytext=me.yytext.substr(2).trim(),31;case 69:return this.popState(),me.yytext=me.yytext.slice(0,-8).trim(),31;case 70:return 7;case 71:return 7;case 72:return 16;case 73:return 56;case 74:return 24;case 75:return me.yytext=me.yytext.trim(),14;case 76:return 15;case 77:return 28;case 78:return 57;case 79:return 5;case 80:return"INVALID"}},rules:[/^(?:default\b)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:classDef\s+)/i,/^(?:DEFAULT\s+)/i,/^(?:\w+\s+)/i,/^(?:[^\n]*)/i,/^(?:class\s+)/i,/^(?:(\w+)+((,\s*\w+)*))/i,/^(?:[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<>)/i,/^(?:.*<>)/i,/^(?:.*<>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?::::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[14,15],inclusive:!1},close_directive:{rules:[14,15],inclusive:!1},arg_directive:{rules:[8,9,14,15],inclusive:!1},type_directive:{rules:[7,8,14,15],inclusive:!1},open_directive:{rules:[6,14,15],inclusive:!1},struct:{rules:[14,15,27,31,37,44,45,46,47,56,57,58,59,73,74,75,76,77],inclusive:!1},FLOATING_NOTE_ID:{rules:[66],inclusive:!1},FLOATING_NOTE:{rules:[63,64,65],inclusive:!1},NOTE_TEXT:{rules:[68,69],inclusive:!1},NOTE_ID:{rules:[67],inclusive:!1},NOTE:{rules:[60,61,62],inclusive:!1},CLASS_STYLE:{rules:[33],inclusive:!1},CLASS:{rules:[32],inclusive:!1},CLASSDEFID:{rules:[30],inclusive:!1},CLASSDEF:{rules:[28,29],inclusive:!1},acc_descr_multiline:{rules:[25,26],inclusive:!1},acc_descr:{rules:[23],inclusive:!1},acc_title:{rules:[21],inclusive:!1},SCALE:{rules:[18,19,35,36],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[50],inclusive:!1},STATE_STRING:{rules:[51,52],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[14,15,38,39,40,41,42,43,48,49,53,54,55],inclusive:!1},ID:{rules:[14,15],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,10,11,12,13,15,16,17,20,22,24,27,31,34,37,55,59,70,71,72,73,74,75,76,78,79,80],inclusive:!0}}};return Wt}();de.lexer=J;function ae(){this.yy={}}return ae.prototype=de,de.Parser=ae,new ae}();ugt.parser=ugt;const aRt=ugt,PHe="LR",FHe="TB",SK="state",lgt="relation",BHe="classDef",RHe="applyClass",MP="default",oRt="divider",hgt="[*]",cRt="start",uRt=hgt,lRt="end",hRt="color",fRt="fill",jHe="bgFill",$He=",";function dRt(){return{}}let gRt=PHe,AK=[],DP=dRt();const pRt=()=>({relations:[],states:{},documents:{}});let LK={root:pRt()},E0=LK.root,IP=0,bRt=0;const zHe={LINE:0,DOTTED_LINE:1},qHe={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},MK=i=>JSON.parse(JSON.stringify(i)),HHe=function(i,a,f){d1.parseDirective(this,i,a,f)},VHe=i=>{zt.info("Setting root doc",i),AK=i},GHe=()=>AK,DK=(i,a,f)=>{if(a.stmt===lgt)DK(i,a.state1,!0),DK(i,a.state2,!1);else if(a.stmt===SK&&(a.id==="[*]"?(a.id=f?i.id+"_start":i.id+"_end",a.start=f):a.id=a.id.trim()),a.doc){const p=[];let v=[],m;for(m=0;m0&&v.length>0){const b={stmt:SK,id:xIt(),type:"divider",doc:MK(v)};p.push(MK(b)),a.doc=p}a.doc.forEach(b=>DK(a,b,!0))}},UHe=()=>(DK({id:"root"},{id:"root",doc:AK},!0),{id:"root",doc:AK}),WHe=i=>{let a;i.doc?a=i.doc:a=i,zt.info(a),vRt(!0),zt.info("Extract",a),a.forEach(f=>{switch(f.stmt){case SK:mE(f.id.trim(),f.type,f.doc,f.description,f.note,f.classes,f.styles,f.textStyles);break;case lgt:wRt(f.state1,f.state2,f.description);break;case BHe:mRt(f.id.trim(),f.classes);break;case RHe:pgt(f.id.trim(),f.styleClass);break}})},mE=function(i,a=MP,f=null,p=null,v=null,m=null,b=null,E=null){const C=i==null?void 0:i.trim();E0.states[C]===void 0?(zt.info("Adding state ",C,p),E0.states[C]={id:C,descriptions:[],type:a,doc:f,note:v,classes:[],styles:[],textStyles:[]}):(E0.states[C].doc||(E0.states[C].doc=f),E0.states[C].type||(E0.states[C].type=a)),p&&(zt.info("Setting state description",C,p),typeof p=="string"&&ggt(C,p.trim()),typeof p=="object"&&p.forEach(D=>ggt(C,D.trim()))),v&&(E0.states[C].note=v,E0.states[C].note.text=yi.sanitizeText(E0.states[C].note.text,Oe())),m&&(zt.info("Setting state classes",C,m),(typeof m=="string"?[m]:m).forEach(P=>pgt(C,P.trim()))),b&&(zt.info("Setting state styles",C,b),(typeof b=="string"?[b]:b).forEach(P=>rVe(C,P.trim()))),E&&(zt.info("Setting state styles",C,b),(typeof E=="string"?[E]:E).forEach(P=>iVe(C,P.trim())))},vRt=function(i){LK={root:pRt()},E0=LK.root,IP=0,DP=dRt(),i||cg()},OP=function(i){return E0.states[i]},KHe=function(){return E0.states},YHe=function(){zt.info("Documents = ",LK)},XHe=function(){return E0.relations};function fgt(i=""){let a=i;return i===hgt&&(IP++,a=`${cRt}${IP}`),a}function dgt(i="",a=MP){return i===hgt?cRt:a}function QHe(i=""){let a=i;return i===uRt&&(IP++,a=`${lRt}${IP}`),a}function ZHe(i="",a=MP){return i===uRt?lRt:a}function JHe(i,a,f){let p=fgt(i.id.trim()),v=dgt(i.id.trim(),i.type),m=fgt(a.id.trim()),b=dgt(a.id.trim(),a.type);mE(p,v,i.doc,i.description,i.note,i.classes,i.styles,i.textStyles),mE(m,b,a.doc,a.description,a.note,a.classes,a.styles,a.textStyles),E0.relations.push({id1:p,id2:m,relationTitle:yi.sanitizeText(f,Oe())})}const wRt=function(i,a,f){if(typeof i=="object")JHe(i,a,f);else{const p=fgt(i.trim()),v=dgt(i),m=QHe(a.trim()),b=ZHe(a);mE(p,v),mE(m,b),E0.relations.push({id1:p,id2:m,title:yi.sanitizeText(f,Oe())})}},ggt=function(i,a){const f=E0.states[i],p=a.startsWith(":")?a.replace(":","").trim():a;f.descriptions.push(yi.sanitizeText(p,Oe()))},tVe=function(i){return i.substring(0,1)===":"?i.substr(2).trim():i.trim()},eVe=()=>(bRt++,"divider-id-"+bRt),mRt=function(i,a=""){DP[i]===void 0&&(DP[i]={id:i,styles:[],textStyles:[]});const f=DP[i];a!=null&&a.split($He).forEach(p=>{const v=p.replace(/([^;]*);/,"$1").trim();if(p.match(hRt)){const b=v.replace(fRt,jHe).replace(hRt,fRt);f.textStyles.push(b)}f.styles.push(v)})},nVe=function(){return DP},pgt=function(i,a){i.split(",").forEach(function(f){let p=OP(f);if(p===void 0){const v=f.trim();mE(v),p=OP(v)}p.classes.push(a)})},rVe=function(i,a){const f=OP(i);f!==void 0&&f.textStyles.push(a)},iVe=function(i,a){const f=OP(i);f!==void 0&&f.textStyles.push(a)},N5={parseDirective:HHe,getConfig:()=>Oe().state,addState:mE,clear:vRt,getState:OP,getStates:KHe,getRelations:XHe,getClasses:nVe,getDirection:()=>gRt,addRelation:wRt,getDividerId:eVe,setDirection:i=>{gRt=i},cleanupLabel:tVe,lineType:zHe,relationType:qHe,logDocuments:YHe,getRootDoc:GHe,setRootDoc:VHe,getRootDocV2:UHe,extract:WHe,trimColon:i=>i&&i[0]===":"?i.substr(1).trim():i.trim(),getAccTitle:op,setAccTitle:ug,getAccDescription:up,setAccDescription:cp,addStyleClass:mRt,setCssClass:pgt,addDescription:ggt,setDiagramTitle:Kb,getDiagramTitle:O2},yRt=i=>` + fill: ${e.textColor}; +} +`,"getStyles"),g6=JHt});var wdt,tWt,eWt,kdt,rWt,Tdt,y6,Edt=R(()=>{"use strict";ur();_r();ce();hr();wdt=0,tWt=o(function(e,t,r,n,i){let a=o(function(b){switch(b){case i.db.relationType.AGGREGATION:return"aggregation";case i.db.relationType.EXTENSION:return"extension";case i.db.relationType.COMPOSITION:return"composition";case i.db.relationType.DEPENDENCY:return"dependency";case i.db.relationType.LOLLIPOP:return"lollipop"}},"getRelationType");t.points=t.points.filter(b=>!Number.isNaN(b.y));let s=t.points,l=ma().x(function(b){return b.x}).y(function(b){return b.y}).curve(Ts),u=e.append("path").attr("d",l(s)).attr("id","edge"+wdt).attr("class","relation"),h="";n.arrowMarkerAbsolute&&(h=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,h=h.replace(/\(/g,"\\("),h=h.replace(/\)/g,"\\)")),r.relation.lineType==1&&u.attr("class","relation dashed-line"),r.relation.lineType==10&&u.attr("class","relation dotted-line"),r.relation.type1!=="none"&&u.attr("marker-start","url("+h+"#"+a(r.relation.type1)+"Start)"),r.relation.type2!=="none"&&u.attr("marker-end","url("+h+"#"+a(r.relation.type2)+"End)");let f,d,p=t.points.length,m=Oe.calcLabelPosition(t.points);f=m.x,d=m.y;let g,y,v,x;if(p%2!==0&&p>1){let b=Oe.calcCardinalityPosition(r.relation.type1!=="none",t.points,t.points[0]),w=Oe.calcCardinalityPosition(r.relation.type2!=="none",t.points,t.points[p-1]);V.debug("cardinality_1_point "+JSON.stringify(b)),V.debug("cardinality_2_point "+JSON.stringify(w)),g=b.x,y=b.y,v=w.x,x=w.y}if(r.title!==void 0){let b=e.append("g").attr("class","classLabel"),w=b.append("text").attr("class","label").attr("x",f).attr("y",d).attr("fill","red").attr("text-anchor","middle").text(r.title);window.label=w;let S=w.node().getBBox();b.insert("rect",":first-child").attr("class","box").attr("x",S.x-n.padding/2).attr("y",S.y-n.padding/2).attr("width",S.width+n.padding).attr("height",S.height+n.padding)}V.info("Rendering relation "+JSON.stringify(r)),r.relationTitle1!==void 0&&r.relationTitle1!=="none"&&e.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",g).attr("y",y).attr("fill","black").attr("font-size","6").text(r.relationTitle1),r.relationTitle2!==void 0&&r.relationTitle2!=="none"&&e.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",v).attr("y",x).attr("fill","black").attr("font-size","6").text(r.relationTitle2),wdt++},"drawEdge"),eWt=o(function(e,t,r,n){V.debug("Rendering class ",t,r);let i=t.id,a={id:i,label:t.id,width:0,height:0},s=e.append("g").attr("id",n.db.lookUpDomId(i)).attr("class","classGroup"),l;t.link?l=s.append("svg:a").attr("xlink:href",t.link).attr("target",t.linkTarget).append("text").attr("y",r.textHeight+r.padding).attr("x",0):l=s.append("text").attr("y",r.textHeight+r.padding).attr("x",0);let u=!0;t.annotations.forEach(function(w){let S=l.append("tspan").text("\xAB"+w+"\xBB");u||S.attr("dy",r.textHeight),u=!1});let h=kdt(t),f=l.append("tspan").text(h).attr("class","title");u||f.attr("dy",r.textHeight);let d=l.node().getBBox().height,p,m,g;if(t.members.length>0){p=s.append("line").attr("x1",0).attr("y1",r.padding+d+r.dividerMargin/2).attr("y2",r.padding+d+r.dividerMargin/2);let w=s.append("text").attr("x",r.padding).attr("y",d+r.dividerMargin+r.textHeight).attr("fill","white").attr("class","classText");u=!0,t.members.forEach(function(S){Tdt(w,S,u,r),u=!1}),m=w.node().getBBox()}if(t.methods.length>0){g=s.append("line").attr("x1",0).attr("y1",r.padding+d+r.dividerMargin+m.height).attr("y2",r.padding+d+r.dividerMargin+m.height);let w=s.append("text").attr("x",r.padding).attr("y",d+2*r.dividerMargin+m.height+r.textHeight).attr("fill","white").attr("class","classText");u=!0,t.methods.forEach(function(S){Tdt(w,S,u,r),u=!1})}let y=s.node().getBBox();var v=" ";t.cssClasses.length>0&&(v=v+t.cssClasses.join(" "));let b=s.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",y.width+2*r.padding).attr("height",y.height+r.padding+.5*r.dividerMargin).attr("class",v).node().getBBox().width;return l.node().childNodes.forEach(function(w){w.setAttribute("x",(b-w.getBBox().width)/2)}),t.tooltip&&l.insert("title").text(t.tooltip),p&&p.attr("x2",b),g&&g.attr("x2",b),a.width=b,a.height=y.height+r.padding+.5*r.dividerMargin,a},"drawClass"),kdt=o(function(e){let t=e.id;return e.type&&(t+="<"+yh(e.type)+">"),t},"getClassTitleString"),rWt=o(function(e,t,r,n){V.debug("Rendering note ",t,r);let i=t.id,a={id:i,text:t.text,width:0,height:0},s=e.append("g").attr("id",i).attr("class","classGroup"),l=s.append("text").attr("y",r.textHeight+r.padding).attr("x",0),u=JSON.parse(`"${t.text}"`).split(` +`);u.forEach(function(p){V.debug(`Adding line: ${p}`),l.append("tspan").text(p).attr("class","title").attr("dy",r.textHeight)});let h=s.node().getBBox(),d=s.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",h.width+2*r.padding).attr("height",h.height+u.length*r.textHeight+r.padding+.5*r.dividerMargin).node().getBBox().width;return l.node().childNodes.forEach(function(p){p.setAttribute("x",(d-p.getBBox().width)/2)}),a.width=d,a.height=h.height+u.length*r.textHeight+r.padding+.5*r.dividerMargin,a},"drawNote"),Tdt=o(function(e,t,r,n){let{displayText:i,cssStyle:a}=t.getDisplayDetails(),s=e.append("tspan").attr("x",n.padding).text(i);a!==""&&s.attr("style",t.cssStyle),r||s.attr("dy",n.textHeight)},"addTspan"),y6={getClassTitleString:kdt,drawClass:eWt,drawEdge:tWt,drawNote:rWt}});var x6,v6,qx,nWt,iWt,Cdt,Sdt=R(()=>{"use strict";ur();Xd();wa();ce();Edt();Jn();Ue();x6={},v6=20,qx=o(function(e){let t=Object.entries(x6).find(r=>r[1].label===e);if(t)return t[0]},"getGraphId"),nWt=o(function(e){e.append("defs").append("marker").attr("id","extensionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id","extensionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z"),e.append("defs").append("marker").attr("id","compositionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id","compositionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id","aggregationStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id","aggregationEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id","dependencyStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"insertMarkers"),iWt=o(function(e,t,r,n){let i=pt().class;x6={},V.info("Rendering diagram "+e);let a=pt().securityLevel,s;a==="sandbox"&&(s=Gt("#i"+t));let l=a==="sandbox"?Gt(s.nodes()[0].contentDocument.body):Gt("body"),u=l.select(`[id='${t}']`);nWt(u);let h=new yr({multigraph:!0});h.setGraph({isMultiGraph:!0}),h.setDefaultEdgeLabel(function(){return{}});let f=n.db.getClasses(),d=[...f.keys()];for(let b of d){let w=f.get(b),S=y6.drawClass(u,w,i,n);x6[S.id]=S,h.setNode(S.id,S),V.info("Org height: "+S.height)}n.db.getRelations().forEach(function(b){V.info("tjoho"+qx(b.id1)+qx(b.id2)+JSON.stringify(b)),h.setEdge(qx(b.id1),qx(b.id2),{relation:b},b.title||"DEFAULT")}),n.db.getNotes().forEach(function(b){V.debug(`Adding note: ${JSON.stringify(b)}`);let w=y6.drawNote(u,b,i,n);x6[w.id]=w,h.setNode(w.id,w),b.class&&f.has(b.class)&&h.setEdge(b.id,qx(b.class),{relation:{id1:b.id,id2:b.class,relation:{type1:"none",type2:"none",lineType:10}}},"DEFAULT")}),co(h),h.nodes().forEach(function(b){b!==void 0&&h.node(b)!==void 0&&(V.debug("Node "+b+": "+JSON.stringify(h.node(b))),l.select("#"+(n.db.lookUpDomId(b)||b)).attr("transform","translate("+(h.node(b).x-h.node(b).width/2)+","+(h.node(b).y-h.node(b).height/2)+" )"))}),h.edges().forEach(function(b){b!==void 0&&h.edge(b)!==void 0&&(V.debug("Edge "+b.v+" -> "+b.w+": "+JSON.stringify(h.edge(b))),y6.drawEdge(u,h.edge(b),h.edge(b).relation,i,n))});let g=u.node().getBBox(),y=g.width+v6*2,v=g.height+v6*2;Pr(u,v,y,i.useMaxWidth);let x=`${g.x-v6} ${g.y-v6} ${y} ${v}`;V.debug(`viewBox ${x}`),u.attr("viewBox",x)},"draw"),Cdt={draw:iWt}});var Adt={};xr(Adt,{diagram:()=>aWt});var aWt,_dt=R(()=>{"use strict";AP();NP();MP();Sdt();aWt={parser:f6,db:Zg,renderer:Cdt,styles:g6,init:o(e=>{e.class||(e.class={}),e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute,Zg.clear()},"init")}});var cWt,uWt,hWt,fWt,dWt,pWt,mWt,gWt,yWt,vWt,xWt,b6,IP=R(()=>{"use strict";ce();cWt=o((e,t,r,n)=>{t.forEach(i=>{xWt[i](e,r,n)})},"insertMarkers"),uWt=o((e,t,r)=>{V.trace("Making markers for ",r),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},"extension"),hWt=o((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),fWt=o((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),dWt=o((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),pWt=o((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},"lollipop"),mWt=o((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",6).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"point"),gWt=o((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"circle"),yWt=o((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},"cross"),vWt=o((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),xWt={extension:uWt,composition:hWt,aggregation:fWt,dependency:dWt,lollipop:pWt,point:mWt,circle:gWt,cross:yWt,barb:vWt},b6=cWt});function Rdt(e,t){t&&e.attr("style",t)}function bWt(e){let t=Gt(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),r=t.append("xhtml:div"),n=e.label,i=e.isNode?"nodeLabel":"edgeLabel",a=r.append("span");return a.html(n),Rdt(a,e.labelStyle),a.attr("class",i),Rdt(r,e.labelStyle),r.style("display","inline-block"),r.style("white-space","nowrap"),r.attr("xmlns","http://www.w3.org/1999/xhtml"),t.node()}var wWt,oa,Xx=R(()=>{"use strict";ur();ce();Ue();hr();_r();Nl();o(Rdt,"applyStyle");o(bWt,"addHtmlLabel");wWt=o((e,t,r,n)=>{let i=e||"";if(typeof i=="object"&&(i=i[0]),Tr(pt().flowchart.htmlLabels)){i=i.replace(/\\n|\n/g,"
    "),V.debug("vertexText"+i);let a={isNode:n,label:UL(no(i)),labelStyle:t.replace("fill:","color:")};return bWt(a)}else{let a=document.createElementNS("http://www.w3.org/2000/svg","text");a.setAttribute("style",t.replace("color:","fill:"));let s=[];typeof i=="string"?s=i.split(/\\n|\n|/gi):Array.isArray(i)?s=i:s=[];for(let l of s){let u=document.createElementNS("http://www.w3.org/2000/svg","tspan");u.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),u.setAttribute("dy","1em"),u.setAttribute("x","0"),r?u.setAttribute("class","title-row"):u.setAttribute("class","row"),u.textContent=l.trim(),a.appendChild(u)}return a}},"createLabel"),oa=wWt});function Hl(e,t,r,n){return e.insert("polygon",":first-child").attr("points",n.map(function(i){return i.x+","+i.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+r/2+")")}var Li,Nn,w6=R(()=>{"use strict";Xx();Nl();Ue();ur();hr();_r();Li=o(async(e,t,r,n)=>{let i=pt(),a,s=t.useHtmlLabels||Tr(i.flowchart.htmlLabels);r?a=r:a="node default";let l=e.insert("g").attr("class",a).attr("id",t.domId||t.id),u=l.insert("g").attr("class","label").attr("style",t.labelStyle),h;t.labelText===void 0?h="":h=typeof t.labelText=="string"?t.labelText:t.labelText[0];let f=u.node(),d;t.labelType==="markdown"?d=ia(u,Zr(no(h),i),{useHtmlLabels:s,width:t.width||i.flowchart.wrappingWidth,classes:"markdown-node-label"},i):d=f.appendChild(oa(Zr(no(h),i),t.labelStyle,!1,n));let p=d.getBBox(),m=t.padding/2;if(Tr(i.flowchart.htmlLabels)){let g=d.children[0],y=Gt(d),v=g.getElementsByTagName("img");if(v){let x=h.replace(/]*>/g,"").trim()==="";await Promise.all([...v].map(b=>new Promise(w=>{function S(){if(b.style.display="flex",b.style.flexDirection="column",x){let T=i.fontSize?i.fontSize:window.getComputedStyle(document.body).fontSize,_=parseInt(T,10)*5+"px";b.style.minWidth=_,b.style.maxWidth=_}else b.style.width="100%";w(b)}o(S,"setupImage"),setTimeout(()=>{b.complete&&S()}),b.addEventListener("error",S),b.addEventListener("load",S)})))}p=g.getBoundingClientRect(),y.attr("width",p.width),y.attr("height",p.height)}return s?u.attr("transform","translate("+-p.width/2+", "+-p.height/2+")"):u.attr("transform","translate(0, "+-p.height/2+")"),t.centerLabel&&u.attr("transform","translate("+-p.width/2+", "+-p.height/2+")"),u.insert("rect",":first-child"),{shapeSvg:l,bbox:p,halfPadding:m,label:u}},"labelHelper"),Nn=o((e,t)=>{let r=t.node().getBBox();e.width=r.width,e.height=r.height},"updateNodeBounds");o(Hl,"insertPolygonShape")});var dr,Wl,Ndt,Mdt,k6,TWt,Idt,Odt,Jg,T6,Pdt,Bdt,Fdt,zdt,$dt=R(()=>{"use strict";ce();s2();wa();dr={},Wl={},Ndt={},Mdt=o(()=>{Wl={},Ndt={},dr={}},"clear"),k6=o((e,t)=>(V.trace("In isDescendant",t," ",e," = ",Wl[t].includes(e)),!!Wl[t].includes(e)),"isDescendant"),TWt=o((e,t)=>(V.info("Descendants of ",t," is ",Wl[t]),V.info("Edge is ",e),e.v===t||e.w===t?!1:Wl[t]?Wl[t].includes(e.v)||k6(e.v,t)||k6(e.w,t)||Wl[t].includes(e.w):(V.debug("Tilt, ",t,",not in descendants"),!1)),"edgeInCluster"),Idt=o((e,t,r,n)=>{V.warn("Copying children of ",e,"root",n,"data",t.node(e),n);let i=t.children(e)||[];e!==n&&i.push(e),V.warn("Copying (nodes) clusterId",e,"nodes",i),i.forEach(a=>{if(t.children(a).length>0)Idt(a,t,r,n);else{let s=t.node(a);V.info("cp ",a," to ",n," with parent ",e),r.setNode(a,s),n!==t.parent(a)&&(V.warn("Setting parent",a,t.parent(a)),r.setParent(a,t.parent(a))),e!==n&&a!==e?(V.debug("Setting parent",a,e),r.setParent(a,e)):(V.info("In copy ",e,"root",n,"data",t.node(e),n),V.debug("Not Setting parent for node=",a,"cluster!==rootId",e!==n,"node!==clusterId",a!==e));let l=t.edges(a);V.debug("Copying Edges",l),l.forEach(u=>{V.info("Edge",u);let h=t.edge(u.v,u.w,u.name);V.info("Edge data",h,n);try{TWt(u,n)?(V.info("Copying as ",u.v,u.w,h,u.name),r.setEdge(u.v,u.w,h,u.name),V.info("newGraph edges ",r.edges(),r.edge(r.edges()[0]))):V.info("Skipping copy of edge ",u.v,"-->",u.w," rootId: ",n," clusterId:",e)}catch(f){V.error(f)}})}V.debug("Removing node",a),t.removeNode(a)})},"copy"),Odt=o((e,t)=>{let r=t.children(e),n=[...r];for(let i of r)Ndt[i]=e,n=[...n,...Odt(i,t)];return n},"extractDescendants"),Jg=o((e,t)=>{V.trace("Searching",e);let r=t.children(e);if(V.trace("Searching children of id ",e,r),r.length<1)return V.trace("This is a valid node",e),e;for(let n of r){let i=Jg(n,t);if(i)return V.trace("Found replacement for",e," => ",i),i}},"findNonClusterChild"),T6=o(e=>!dr[e]||!dr[e].externalConnections?e:dr[e]?dr[e].id:e,"getAnchorId"),Pdt=o((e,t)=>{if(!e||t>10){V.debug("Opting out, no graph ");return}else V.debug("Opting in, graph ");e.nodes().forEach(function(r){e.children(r).length>0&&(V.warn("Cluster identified",r," Replacement id in edges: ",Jg(r,e)),Wl[r]=Odt(r,e),dr[r]={id:Jg(r,e),clusterData:e.node(r)})}),e.nodes().forEach(function(r){let n=e.children(r),i=e.edges();n.length>0?(V.debug("Cluster identified",r,Wl),i.forEach(a=>{if(a.v!==r&&a.w!==r){let s=k6(a.v,r),l=k6(a.w,r);s^l&&(V.warn("Edge: ",a," leaves cluster ",r),V.warn("Descendants of XXX ",r,": ",Wl[r]),dr[r].externalConnections=!0)}})):V.debug("Not a cluster ",r,Wl)});for(let r of Object.keys(dr)){let n=dr[r].id,i=e.parent(n);i!==r&&dr[i]&&!dr[i].externalConnections&&(dr[r].id=i)}e.edges().forEach(function(r){let n=e.edge(r);V.warn("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(r)),V.warn("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(e.edge(r)));let i=r.v,a=r.w;if(V.warn("Fix XXX",dr,"ids:",r.v,r.w,"Translating: ",dr[r.v]," --- ",dr[r.w]),dr[r.v]&&dr[r.w]&&dr[r.v]===dr[r.w]){V.warn("Fixing and trixing link to self - removing XXX",r.v,r.w,r.name),V.warn("Fixing and trixing - removing XXX",r.v,r.w,r.name),i=T6(r.v),a=T6(r.w),e.removeEdge(r.v,r.w,r.name);let s=r.w+"---"+r.v;e.setNode(s,{domId:s,id:s,labelStyle:"",labelText:n.label,padding:0,shape:"labelRect",style:""});let l=structuredClone(n),u=structuredClone(n);l.label="",l.arrowTypeEnd="none",u.label="",l.fromCluster=r.v,u.toCluster=r.v,e.setEdge(i,s,l,r.name+"-cyclic-special"),e.setEdge(s,a,u,r.name+"-cyclic-special")}else if(dr[r.v]||dr[r.w]){if(V.warn("Fixing and trixing - removing XXX",r.v,r.w,r.name),i=T6(r.v),a=T6(r.w),e.removeEdge(r.v,r.w,r.name),i!==r.v){let s=e.parent(i);dr[s].externalConnections=!0,n.fromCluster=r.v}if(a!==r.w){let s=e.parent(a);dr[s].externalConnections=!0,n.toCluster=r.w}V.warn("Fix Replacing with XXX",i,a,r.name),e.setEdge(i,a,n,r.name)}}),V.warn("Adjusted Graph",Yn(e)),Bdt(e,0),V.trace(dr)},"adjustClustersAndEdges"),Bdt=o((e,t)=>{if(V.warn("extractor - ",t,Yn(e),e.children("D")),t>10){V.error("Bailing out");return}let r=e.nodes(),n=!1;for(let i of r){let a=e.children(i);n=n||a.length>0}if(!n){V.debug("Done, no node has children",e.nodes());return}V.debug("Nodes = ",r,t);for(let i of r)if(V.debug("Extracting node",i,dr,dr[i]&&!dr[i].externalConnections,!e.parent(i),e.node(i),e.children("D")," Depth ",t),!dr[i])V.debug("Not a cluster",i,t);else if(!dr[i].externalConnections&&e.children(i)&&e.children(i).length>0){V.warn("Cluster without external connections, without a parent and with children",i,t);let s=e.graph().rankdir==="TB"?"LR":"TB";dr[i]?.clusterData?.dir&&(s=dr[i].clusterData.dir,V.warn("Fixing dir",dr[i].clusterData.dir,s));let l=new yr({multigraph:!0,compound:!0}).setGraph({rankdir:s,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});V.warn("Old graph before copy",Yn(e)),Idt(i,e,l,i),e.setNode(i,{clusterNode:!0,id:i,clusterData:dr[i].clusterData,labelText:dr[i].labelText,graph:l}),V.warn("New graph after copy node: (",i,")",Yn(l)),V.debug("Old graph after copy",Yn(e))}else V.warn("Cluster ** ",i," **not meeting the criteria !externalConnections:",!dr[i].externalConnections," no parent: ",!e.parent(i)," children ",e.children(i)&&e.children(i).length>0,e.children("D"),t),V.debug(dr);r=e.nodes(),V.warn("New list of nodes",r);for(let i of r){let a=e.node(i);V.warn(" Now next level",i,a),a.clusterNode&&Bdt(a.graph,t+1)}},"extractor"),Fdt=o((e,t)=>{if(t.length===0)return[];let r=Object.assign(t);return t.forEach(n=>{let i=e.children(n),a=Fdt(e,i);r=[...r,...a]}),r},"sorter"),zdt=o(e=>Fdt(e,e.children()),"sortNodesByHierarchy")});var kWt,Gdt,Vdt=R(()=>{"use strict";kWt=o(e=>{let t=new Set;for(let r of e)switch(r){case"x":t.add("right"),t.add("left");break;case"y":t.add("up"),t.add("down");break;default:t.add(r);break}return t},"expandAndDeduplicateDirections"),Gdt=o((e,t,r)=>{let n=kWt(e),i=2,a=t.height+2*r.padding,s=a/i,l=t.width+2*s+r.padding,u=r.padding/2;return n.has("right")&&n.has("left")&&n.has("up")&&n.has("down")?[{x:0,y:0},{x:s,y:0},{x:l/2,y:2*u},{x:l-s,y:0},{x:l,y:0},{x:l,y:-a/3},{x:l+2*u,y:-a/2},{x:l,y:-2*a/3},{x:l,y:-a},{x:l-s,y:-a},{x:l/2,y:-a-2*u},{x:s,y:-a},{x:0,y:-a},{x:0,y:-2*a/3},{x:-2*u,y:-a/2},{x:0,y:-a/3}]:n.has("right")&&n.has("left")&&n.has("up")?[{x:s,y:0},{x:l-s,y:0},{x:l,y:-a/2},{x:l-s,y:-a},{x:s,y:-a},{x:0,y:-a/2}]:n.has("right")&&n.has("left")&&n.has("down")?[{x:0,y:0},{x:s,y:-a},{x:l-s,y:-a},{x:l,y:0}]:n.has("right")&&n.has("up")&&n.has("down")?[{x:0,y:0},{x:l,y:-s},{x:l,y:-a+s},{x:0,y:-a}]:n.has("left")&&n.has("up")&&n.has("down")?[{x:l,y:0},{x:0,y:-s},{x:0,y:-a+s},{x:l,y:-a}]:n.has("right")&&n.has("left")?[{x:s,y:0},{x:s,y:-u},{x:l-s,y:-u},{x:l-s,y:0},{x:l,y:-a/2},{x:l-s,y:-a},{x:l-s,y:-a+u},{x:s,y:-a+u},{x:s,y:-a},{x:0,y:-a/2}]:n.has("up")&&n.has("down")?[{x:l/2,y:0},{x:0,y:-u},{x:s,y:-u},{x:s,y:-a+u},{x:0,y:-a+u},{x:l/2,y:-a},{x:l,y:-a+u},{x:l-s,y:-a+u},{x:l-s,y:-u},{x:l,y:-u}]:n.has("right")&&n.has("up")?[{x:0,y:0},{x:l,y:-s},{x:0,y:-a}]:n.has("right")&&n.has("down")?[{x:0,y:0},{x:l,y:0},{x:0,y:-a}]:n.has("left")&&n.has("up")?[{x:l,y:0},{x:0,y:-s},{x:l,y:-a}]:n.has("left")&&n.has("down")?[{x:l,y:0},{x:0,y:0},{x:l,y:-a}]:n.has("right")?[{x:s,y:-u},{x:s,y:-u},{x:l-s,y:-u},{x:l-s,y:0},{x:l,y:-a/2},{x:l-s,y:-a},{x:l-s,y:-a+u},{x:s,y:-a+u},{x:s,y:-a+u}]:n.has("left")?[{x:s,y:0},{x:s,y:-u},{x:l-s,y:-u},{x:l-s,y:-a+u},{x:s,y:-a+u},{x:s,y:-a},{x:0,y:-a/2}]:n.has("up")?[{x:s,y:-u},{x:s,y:-a+u},{x:0,y:-a+u},{x:l/2,y:-a},{x:l,y:-a+u},{x:l-s,y:-a+u},{x:l-s,y:-u}]:n.has("down")?[{x:l/2,y:0},{x:0,y:-u},{x:s,y:-u},{x:s,y:-a+u},{x:l-s,y:-a+u},{x:l-s,y:-u},{x:l,y:-u}]:[{x:0,y:0}]},"getArrowPoints")});function EWt(e,t){return e.intersect(t)}var Udt,Hdt=R(()=>{"use strict";o(EWt,"intersectNode");Udt=EWt});function CWt(e,t,r,n){var i=e.x,a=e.y,s=i-n.x,l=a-n.y,u=Math.sqrt(t*t*l*l+r*r*s*s),h=Math.abs(t*r*s/u);n.x{"use strict";o(CWt,"intersectEllipse");E6=CWt});function SWt(e,t,r){return E6(e,t,t,r)}var Wdt,Ydt=R(()=>{"use strict";OP();o(SWt,"intersectCircle");Wdt=SWt});function AWt(e,t,r,n){var i,a,s,l,u,h,f,d,p,m,g,y,v,x,b;if(i=t.y-e.y,s=e.x-t.x,u=t.x*e.y-e.x*t.y,p=i*r.x+s*r.y+u,m=i*n.x+s*n.y+u,!(p!==0&&m!==0&&qdt(p,m))&&(a=n.y-r.y,l=r.x-n.x,h=n.x*r.y-r.x*n.y,f=a*e.x+l*e.y+h,d=a*t.x+l*t.y+h,!(f!==0&&d!==0&&qdt(f,d))&&(g=i*l-a*s,g!==0)))return y=Math.abs(g/2),v=s*h-l*u,x=v<0?(v-y)/g:(v+y)/g,v=a*u-i*h,b=v<0?(v-y)/g:(v+y)/g,{x,y:b}}function qdt(e,t){return e*t>0}var Xdt,jdt=R(()=>{"use strict";o(AWt,"intersectLine");o(qdt,"sameSign");Xdt=AWt});function _Wt(e,t,r){var n=e.x,i=e.y,a=[],s=Number.POSITIVE_INFINITY,l=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(g){s=Math.min(s,g.x),l=Math.min(l,g.y)}):(s=Math.min(s,t.x),l=Math.min(l,t.y));for(var u=n-e.width/2-s,h=i-e.height/2-l,f=0;f1&&a.sort(function(g,y){var v=g.x-r.x,x=g.y-r.y,b=Math.sqrt(v*v+x*x),w=y.x-r.x,S=y.y-r.y,T=Math.sqrt(w*w+S*S);return b{"use strict";jdt();Kdt=_Wt;o(_Wt,"intersectPolygon")});var LWt,F0,PP=R(()=>{"use strict";LWt=o((e,t)=>{var r=e.x,n=e.y,i=t.x-r,a=t.y-n,s=e.width/2,l=e.height/2,u,h;return Math.abs(a)*s>Math.abs(i)*l?(a<0&&(l=-l),u=a===0?0:l*i/a,h=l):(i<0&&(s=-s),u=s,h=i===0?0:s*a/i),{x:r+u,y:n+h}},"intersectRect"),F0=LWt});var Mn,BP=R(()=>{"use strict";Hdt();Ydt();OP();Qdt();PP();Mn={node:Udt,circle:Wdt,ellipse:E6,polygon:Kdt,rect:F0}});var DWt,Zdt,Jdt=R(()=>{"use strict";w6();ce();Ue();BP();DWt=o(async(e,t)=>{t.useHtmlLabels||pt().flowchart.htmlLabels||(t.centerLabel=!0);let{shapeSvg:n,bbox:i,halfPadding:a}=await Li(e,t,"node "+t.classes,!0);V.info("Classes = ",t.classes);let s=n.insert("rect",":first-child");return s.attr("rx",t.rx).attr("ry",t.ry).attr("x",-i.width/2-a).attr("y",-i.height/2-a).attr("width",i.width+t.padding).attr("height",i.height+t.padding),Nn(t,s),t.intersect=function(l){return Mn.rect(t,l)},n},"note"),Zdt=DWt});function FP(e,t,r,n){let i=[],a=o(l=>{i.push(l,0)},"addBorder"),s=o(l=>{i.push(0,l)},"skipBorder");t.includes("t")?(V.debug("add top border"),a(r)):s(r),t.includes("r")?(V.debug("add right border"),a(n)):s(n),t.includes("b")?(V.debug("add bottom border"),a(r)):s(r),t.includes("l")?(V.debug("add left border"),a(n)):s(n),e.attr("stroke-dasharray",i.join(" "))}var t0t,xo,e0t,RWt,NWt,MWt,IWt,OWt,PWt,BWt,FWt,zWt,$Wt,GWt,VWt,UWt,HWt,WWt,YWt,qWt,XWt,jWt,r0t,KWt,QWt,n0t,t1,jx,i0t,a0t,Kx,zP=R(()=>{"use strict";ur();Ue();hr();ce();Vdt();Xx();BP();Jdt();w6();t0t=o(e=>e?" "+e:"","formatClass"),xo=o((e,t)=>`${t||"node default"}${t0t(e.classes)} ${t0t(e.class)}`,"getClassesFromNode"),e0t=o(async(e,t)=>{let{shapeSvg:r,bbox:n}=await Li(e,t,xo(t,void 0),!0),i=n.width+t.padding,a=n.height+t.padding,s=i+a,l=[{x:s/2,y:0},{x:s,y:-s/2},{x:s/2,y:-s},{x:0,y:-s/2}];V.info("Question main (Circle)");let u=Hl(r,s,s,l);return u.attr("style",t.style),Nn(t,u),t.intersect=function(h){return V.warn("Intersect called"),Mn.polygon(t,l,h)},r},"question"),RWt=o((e,t)=>{let r=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),n=28,i=[{x:0,y:n/2},{x:n/2,y:0},{x:0,y:-n/2},{x:-n/2,y:0}];return r.insert("polygon",":first-child").attr("points",i.map(function(s){return s.x+","+s.y}).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),t.width=28,t.height=28,t.intersect=function(s){return Mn.circle(t,14,s)},r},"choice"),NWt=o(async(e,t)=>{let{shapeSvg:r,bbox:n}=await Li(e,t,xo(t,void 0),!0),i=4,a=n.height+t.padding,s=a/i,l=n.width+2*s+t.padding,u=[{x:s,y:0},{x:l-s,y:0},{x:l,y:-a/2},{x:l-s,y:-a},{x:s,y:-a},{x:0,y:-a/2}],h=Hl(r,l,a,u);return h.attr("style",t.style),Nn(t,h),t.intersect=function(f){return Mn.polygon(t,u,f)},r},"hexagon"),MWt=o(async(e,t)=>{let{shapeSvg:r,bbox:n}=await Li(e,t,void 0,!0),i=2,a=n.height+2*t.padding,s=a/i,l=n.width+2*s+t.padding,u=Gdt(t.directions,n,t),h=Hl(r,l,a,u);return h.attr("style",t.style),Nn(t,h),t.intersect=function(f){return Mn.polygon(t,u,f)},r},"block_arrow"),IWt=o(async(e,t)=>{let{shapeSvg:r,bbox:n}=await Li(e,t,xo(t,void 0),!0),i=n.width+t.padding,a=n.height+t.padding,s=[{x:-a/2,y:0},{x:i,y:0},{x:i,y:-a},{x:-a/2,y:-a},{x:0,y:-a/2}];return Hl(r,i,a,s).attr("style",t.style),t.width=i+a,t.height=a,t.intersect=function(u){return Mn.polygon(t,s,u)},r},"rect_left_inv_arrow"),OWt=o(async(e,t)=>{let{shapeSvg:r,bbox:n}=await Li(e,t,xo(t),!0),i=n.width+t.padding,a=n.height+t.padding,s=[{x:-2*a/6,y:0},{x:i-a/6,y:0},{x:i+2*a/6,y:-a},{x:a/6,y:-a}],l=Hl(r,i,a,s);return l.attr("style",t.style),Nn(t,l),t.intersect=function(u){return Mn.polygon(t,s,u)},r},"lean_right"),PWt=o(async(e,t)=>{let{shapeSvg:r,bbox:n}=await Li(e,t,xo(t,void 0),!0),i=n.width+t.padding,a=n.height+t.padding,s=[{x:2*a/6,y:0},{x:i+a/6,y:0},{x:i-2*a/6,y:-a},{x:-a/6,y:-a}],l=Hl(r,i,a,s);return l.attr("style",t.style),Nn(t,l),t.intersect=function(u){return Mn.polygon(t,s,u)},r},"lean_left"),BWt=o(async(e,t)=>{let{shapeSvg:r,bbox:n}=await Li(e,t,xo(t,void 0),!0),i=n.width+t.padding,a=n.height+t.padding,s=[{x:-2*a/6,y:0},{x:i+2*a/6,y:0},{x:i-a/6,y:-a},{x:a/6,y:-a}],l=Hl(r,i,a,s);return l.attr("style",t.style),Nn(t,l),t.intersect=function(u){return Mn.polygon(t,s,u)},r},"trapezoid"),FWt=o(async(e,t)=>{let{shapeSvg:r,bbox:n}=await Li(e,t,xo(t,void 0),!0),i=n.width+t.padding,a=n.height+t.padding,s=[{x:a/6,y:0},{x:i-a/6,y:0},{x:i+2*a/6,y:-a},{x:-2*a/6,y:-a}],l=Hl(r,i,a,s);return l.attr("style",t.style),Nn(t,l),t.intersect=function(u){return Mn.polygon(t,s,u)},r},"inv_trapezoid"),zWt=o(async(e,t)=>{let{shapeSvg:r,bbox:n}=await Li(e,t,xo(t,void 0),!0),i=n.width+t.padding,a=n.height+t.padding,s=[{x:0,y:0},{x:i+a/2,y:0},{x:i,y:-a/2},{x:i+a/2,y:-a},{x:0,y:-a}],l=Hl(r,i,a,s);return l.attr("style",t.style),Nn(t,l),t.intersect=function(u){return Mn.polygon(t,s,u)},r},"rect_right_inv_arrow"),$Wt=o(async(e,t)=>{let{shapeSvg:r,bbox:n}=await Li(e,t,xo(t,void 0),!0),i=n.width+t.padding,a=i/2,s=a/(2.5+i/50),l=n.height+s+t.padding,u="M 0,"+s+" a "+a+","+s+" 0,0,0 "+i+" 0 a "+a+","+s+" 0,0,0 "+-i+" 0 l 0,"+l+" a "+a+","+s+" 0,0,0 "+i+" 0 l 0,"+-l,h=r.attr("label-offset-y",s).insert("path",":first-child").attr("style",t.style).attr("d",u).attr("transform","translate("+-i/2+","+-(l/2+s)+")");return Nn(t,h),t.intersect=function(f){let d=Mn.rect(t,f),p=d.x-t.x;if(a!=0&&(Math.abs(p)t.height/2-s)){let m=s*s*(1-p*p/(a*a));m!=0&&(m=Math.sqrt(m)),m=s-m,f.y-t.y>0&&(m=-m),d.y+=m}return d},r},"cylinder"),GWt=o(async(e,t)=>{let{shapeSvg:r,bbox:n,halfPadding:i}=await Li(e,t,"node "+t.classes+" "+t.class,!0),a=r.insert("rect",":first-child"),s=t.positioned?t.width:n.width+t.padding,l=t.positioned?t.height:n.height+t.padding,u=t.positioned?-s/2:-n.width/2-i,h=t.positioned?-l/2:-n.height/2-i;if(a.attr("class","basic label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",u).attr("y",h).attr("width",s).attr("height",l),t.props){let f=new Set(Object.keys(t.props));t.props.borders&&(FP(a,t.props.borders,s,l),f.delete("borders")),f.forEach(d=>{V.warn(`Unknown node property ${d}`)})}return Nn(t,a),t.intersect=function(f){return Mn.rect(t,f)},r},"rect"),VWt=o(async(e,t)=>{let{shapeSvg:r,bbox:n,halfPadding:i}=await Li(e,t,"node "+t.classes,!0),a=r.insert("rect",":first-child"),s=t.positioned?t.width:n.width+t.padding,l=t.positioned?t.height:n.height+t.padding,u=t.positioned?-s/2:-n.width/2-i,h=t.positioned?-l/2:-n.height/2-i;if(a.attr("class","basic cluster composite label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",u).attr("y",h).attr("width",s).attr("height",l),t.props){let f=new Set(Object.keys(t.props));t.props.borders&&(FP(a,t.props.borders,s,l),f.delete("borders")),f.forEach(d=>{V.warn(`Unknown node property ${d}`)})}return Nn(t,a),t.intersect=function(f){return Mn.rect(t,f)},r},"composite"),UWt=o(async(e,t)=>{let{shapeSvg:r}=await Li(e,t,"label",!0);V.trace("Classes = ",t.class);let n=r.insert("rect",":first-child"),i=0,a=0;if(n.attr("width",i).attr("height",a),r.attr("class","label edgeLabel"),t.props){let s=new Set(Object.keys(t.props));t.props.borders&&(FP(n,t.props.borders,i,a),s.delete("borders")),s.forEach(l=>{V.warn(`Unknown node property ${l}`)})}return Nn(t,n),t.intersect=function(s){return Mn.rect(t,s)},r},"labelRect");o(FP,"applyNodePropertyBorders");HWt=o((e,t)=>{let r;t.classes?r="node "+t.classes:r="node default";let n=e.insert("g").attr("class",r).attr("id",t.domId||t.id),i=n.insert("rect",":first-child"),a=n.insert("line"),s=n.insert("g").attr("class","label"),l=t.labelText.flat?t.labelText.flat():t.labelText,u="";typeof l=="object"?u=l[0]:u=l,V.info("Label text abc79",u,l,typeof l=="object");let h=s.node().appendChild(oa(u,t.labelStyle,!0,!0)),f={width:0,height:0};if(Tr(pt().flowchart.htmlLabels)){let y=h.children[0],v=Gt(h);f=y.getBoundingClientRect(),v.attr("width",f.width),v.attr("height",f.height)}V.info("Text 2",l);let d=l.slice(1,l.length),p=h.getBBox(),m=s.node().appendChild(oa(d.join?d.join("
    "):d,t.labelStyle,!0,!0));if(Tr(pt().flowchart.htmlLabels)){let y=m.children[0],v=Gt(m);f=y.getBoundingClientRect(),v.attr("width",f.width),v.attr("height",f.height)}let g=t.padding/2;return Gt(m).attr("transform","translate( "+(f.width>p.width?0:(p.width-f.width)/2)+", "+(p.height+g+5)+")"),Gt(h).attr("transform","translate( "+(f.width{let{shapeSvg:r,bbox:n}=await Li(e,t,xo(t,void 0),!0),i=n.height+t.padding,a=n.width+i/4+t.padding,s=r.insert("rect",":first-child").attr("style",t.style).attr("rx",i/2).attr("ry",i/2).attr("x",-a/2).attr("y",-i/2).attr("width",a).attr("height",i);return Nn(t,s),t.intersect=function(l){return Mn.rect(t,l)},r},"stadium"),YWt=o(async(e,t)=>{let{shapeSvg:r,bbox:n,halfPadding:i}=await Li(e,t,xo(t,void 0),!0),a=r.insert("circle",":first-child");return a.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",n.width/2+i).attr("width",n.width+t.padding).attr("height",n.height+t.padding),V.info("Circle main"),Nn(t,a),t.intersect=function(s){return V.info("Circle intersect",t,n.width/2+i,s),Mn.circle(t,n.width/2+i,s)},r},"circle"),qWt=o(async(e,t)=>{let{shapeSvg:r,bbox:n,halfPadding:i}=await Li(e,t,xo(t,void 0),!0),a=5,s=r.insert("g",":first-child"),l=s.insert("circle"),u=s.insert("circle");return s.attr("class",t.class),l.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",n.width/2+i+a).attr("width",n.width+t.padding+a*2).attr("height",n.height+t.padding+a*2),u.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",n.width/2+i).attr("width",n.width+t.padding).attr("height",n.height+t.padding),V.info("DoubleCircle main"),Nn(t,l),t.intersect=function(h){return V.info("DoubleCircle intersect",t,n.width/2+i+a,h),Mn.circle(t,n.width/2+i+a,h)},r},"doublecircle"),XWt=o(async(e,t)=>{let{shapeSvg:r,bbox:n}=await Li(e,t,xo(t,void 0),!0),i=n.width+t.padding,a=n.height+t.padding,s=[{x:0,y:0},{x:i,y:0},{x:i,y:-a},{x:0,y:-a},{x:0,y:0},{x:-8,y:0},{x:i+8,y:0},{x:i+8,y:-a},{x:-8,y:-a},{x:-8,y:0}],l=Hl(r,i,a,s);return l.attr("style",t.style),Nn(t,l),t.intersect=function(u){return Mn.polygon(t,s,u)},r},"subroutine"),jWt=o((e,t)=>{let r=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),n=r.insert("circle",":first-child");return n.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),Nn(t,n),t.intersect=function(i){return Mn.circle(t,7,i)},r},"start"),r0t=o((e,t,r)=>{let n=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),i=70,a=10;r==="LR"&&(i=10,a=70);let s=n.append("rect").attr("x",-1*i/2).attr("y",-1*a/2).attr("width",i).attr("height",a).attr("class","fork-join");return Nn(t,s),t.height=t.height+t.padding/2,t.width=t.width+t.padding/2,t.intersect=function(l){return Mn.rect(t,l)},n},"forkJoin"),KWt=o((e,t)=>{let r=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),n=r.insert("circle",":first-child"),i=r.insert("circle",":first-child");return i.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),n.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),Nn(t,i),t.intersect=function(a){return Mn.circle(t,7,a)},r},"end"),QWt=o((e,t)=>{let r=t.padding/2,n=4,i=8,a;t.classes?a="node "+t.classes:a="node default";let s=e.insert("g").attr("class",a).attr("id",t.domId||t.id),l=s.insert("rect",":first-child"),u=s.insert("line"),h=s.insert("line"),f=0,d=n,p=s.insert("g").attr("class","label"),m=0,g=t.classData.annotations?.[0],y=t.classData.annotations[0]?"\xAB"+t.classData.annotations[0]+"\xBB":"",v=p.node().appendChild(oa(y,t.labelStyle,!0,!0)),x=v.getBBox();if(Tr(pt().flowchart.htmlLabels)){let A=v.children[0],L=Gt(v);x=A.getBoundingClientRect(),L.attr("width",x.width),L.attr("height",x.height)}t.classData.annotations[0]&&(d+=x.height+n,f+=x.width);let b=t.classData.label;t.classData.type!==void 0&&t.classData.type!==""&&(pt().flowchart.htmlLabels?b+="<"+t.classData.type+">":b+="<"+t.classData.type+">");let w=p.node().appendChild(oa(b,t.labelStyle,!0,!0));Gt(w).attr("class","classTitle");let S=w.getBBox();if(Tr(pt().flowchart.htmlLabels)){let A=w.children[0],L=Gt(w);S=A.getBoundingClientRect(),L.attr("width",S.width),L.attr("height",S.height)}d+=S.height+n,S.width>f&&(f=S.width);let T=[];t.classData.members.forEach(A=>{let L=A.getDisplayDetails(),M=L.displayText;pt().flowchart.htmlLabels&&(M=M.replace(//g,">"));let N=p.node().appendChild(oa(M,L.cssStyle?L.cssStyle:t.labelStyle,!0,!0)),k=N.getBBox();if(Tr(pt().flowchart.htmlLabels)){let I=N.children[0],C=Gt(N);k=I.getBoundingClientRect(),C.attr("width",k.width),C.attr("height",k.height)}k.width>f&&(f=k.width),d+=k.height+n,T.push(N)}),d+=i;let E=[];if(t.classData.methods.forEach(A=>{let L=A.getDisplayDetails(),M=L.displayText;pt().flowchart.htmlLabels&&(M=M.replace(//g,">"));let N=p.node().appendChild(oa(M,L.cssStyle?L.cssStyle:t.labelStyle,!0,!0)),k=N.getBBox();if(Tr(pt().flowchart.htmlLabels)){let I=N.children[0],C=Gt(N);k=I.getBoundingClientRect(),C.attr("width",k.width),C.attr("height",k.height)}k.width>f&&(f=k.width),d+=k.height+n,E.push(N)}),d+=i,g){let A=(f-x.width)/2;Gt(v).attr("transform","translate( "+(-1*f/2+A)+", "+-1*d/2+")"),m=x.height+n}let _=(f-S.width)/2;return Gt(w).attr("transform","translate( "+(-1*f/2+_)+", "+(-1*d/2+m)+")"),m+=S.height+n,u.attr("class","divider").attr("x1",-f/2-r).attr("x2",f/2+r).attr("y1",-d/2-r+i+m).attr("y2",-d/2-r+i+m),m+=i,T.forEach(A=>{Gt(A).attr("transform","translate( "+-f/2+", "+(-1*d/2+m+i/2)+")");let L=A?.getBBox();m+=(L?.height??0)+n}),m+=i,h.attr("class","divider").attr("x1",-f/2-r).attr("x2",f/2+r).attr("y1",-d/2-r+i+m).attr("y2",-d/2-r+i+m),m+=i,E.forEach(A=>{Gt(A).attr("transform","translate( "+-f/2+", "+(-1*d/2+m)+")");let L=A?.getBBox();m+=(L?.height??0)+n}),l.attr("style",t.style).attr("class","outer title-state").attr("x",-f/2-r).attr("y",-(d/2)-r).attr("width",f+t.padding).attr("height",d+t.padding),Nn(t,l),t.intersect=function(A){return Mn.rect(t,A)},s},"class_box"),n0t={rhombus:e0t,composite:VWt,question:e0t,rect:GWt,labelRect:UWt,rectWithTitle:HWt,choice:RWt,circle:YWt,doublecircle:qWt,stadium:WWt,hexagon:NWt,block_arrow:MWt,rect_left_inv_arrow:IWt,lean_right:OWt,lean_left:PWt,trapezoid:BWt,inv_trapezoid:FWt,rect_right_inv_arrow:zWt,cylinder:$Wt,start:jWt,end:KWt,note:Zdt,subroutine:XWt,fork:r0t,join:r0t,class_box:QWt},t1={},jx=o(async(e,t,r)=>{let n,i;if(t.link){let a;pt().securityLevel==="sandbox"?a="_top":t.linkTarget&&(a=t.linkTarget||"_blank"),n=e.insert("svg:a").attr("xlink:href",t.link).attr("target",a),i=await n0t[t.shape](n,t,r)}else i=await n0t[t.shape](e,t,r),n=i;return t.tooltip&&i.attr("title",t.tooltip),t.class&&i.attr("class","node default "+t.class),t1[t.id]=n,t.haveCallback&&t1[t.id].attr("class",t1[t.id].attr("class")+" clickable"),n},"insertNode"),i0t=o((e,t)=>{t1[t.id]=e},"setNodeElem"),a0t=o(()=>{t1={}},"clear"),Kx=o(e=>{let t=t1[e.id];V.trace("Transforming node",e.diff,e,"translate("+(e.x-e.width/2-5)+", "+e.width/2+")");let r=8,n=e.diff||0;return e.clusterNode?t.attr("transform","translate("+(e.x+n-e.width/2)+", "+(e.y-e.height/2-r)+")"):t.attr("transform","translate("+e.x+", "+e.y+")"),n},"positionNode")});var ZWt,JWt,tYt,eYt,rYt,s0t,o0t,l0t,c0t=R(()=>{"use strict";PP();ce();Xx();Nl();ur();Ue();hr();Nd();ZWt=o((e,t)=>{V.info("Creating subgraph rect for ",t.id,t);let r=pt(),n=e.insert("g").attr("class","cluster"+(t.class?" "+t.class:"")).attr("id",t.id),i=n.insert("rect",":first-child"),a=Tr(r.flowchart.htmlLabels),s=n.insert("g").attr("class","cluster-label"),l=t.labelType==="markdown"?ia(s,t.labelText,{style:t.labelStyle,useHtmlLabels:a},r):s.node().appendChild(oa(t.labelText,t.labelStyle,void 0,!0)),u=l.getBBox();if(Tr(r.flowchart.htmlLabels)){let g=l.children[0],y=Gt(l);u=g.getBoundingClientRect(),y.attr("width",u.width),y.attr("height",u.height)}let h=0*t.padding,f=h/2,d=t.width<=u.width+h?u.width+h:t.width;t.width<=u.width+h?t.diff=(u.width-t.width)/2-t.padding/2:t.diff=-t.padding/2,V.trace("Data ",t,JSON.stringify(t)),i.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-d/2).attr("y",t.y-t.height/2-f).attr("width",d).attr("height",t.height+h);let{subGraphTitleTopMargin:p}=io(r);a?s.attr("transform",`translate(${t.x-u.width/2}, ${t.y-t.height/2+p})`):s.attr("transform",`translate(${t.x}, ${t.y-t.height/2+p})`);let m=i.node().getBBox();return t.width=m.width,t.height=m.height,t.intersect=function(g){return F0(t,g)},n},"rect"),JWt=o((e,t)=>{let r=e.insert("g").attr("class","note-cluster").attr("id",t.id),n=r.insert("rect",":first-child"),i=0*t.padding,a=i/2;n.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-a).attr("y",t.y-t.height/2-a).attr("width",t.width+i).attr("height",t.height+i).attr("fill","none");let s=n.node().getBBox();return t.width=s.width,t.height=s.height,t.intersect=function(l){return F0(t,l)},r},"noteGroup"),tYt=o((e,t)=>{let r=pt(),n=e.insert("g").attr("class",t.classes).attr("id",t.id),i=n.insert("rect",":first-child"),a=n.insert("g").attr("class","cluster-label"),s=n.append("rect"),l=a.node().appendChild(oa(t.labelText,t.labelStyle,void 0,!0)),u=l.getBBox();if(Tr(r.flowchart.htmlLabels)){let g=l.children[0],y=Gt(l);u=g.getBoundingClientRect(),y.attr("width",u.width),y.attr("height",u.height)}u=l.getBBox();let h=0*t.padding,f=h/2,d=t.width<=u.width+t.padding?u.width+t.padding:t.width;t.width<=u.width+t.padding?t.diff=(u.width+t.padding*0-t.width)/2:t.diff=-t.padding/2,i.attr("class","outer").attr("x",t.x-d/2-f).attr("y",t.y-t.height/2-f).attr("width",d+h).attr("height",t.height+h),s.attr("class","inner").attr("x",t.x-d/2-f).attr("y",t.y-t.height/2-f+u.height-1).attr("width",d+h).attr("height",t.height+h-u.height-3);let{subGraphTitleTopMargin:p}=io(r);a.attr("transform",`translate(${t.x-u.width/2}, ${t.y-t.height/2-t.padding/3+(Tr(r.flowchart.htmlLabels)?5:3)+p})`);let m=i.node().getBBox();return t.height=m.height,t.intersect=function(g){return F0(t,g)},n},"roundedWithTitle"),eYt=o((e,t)=>{let r=e.insert("g").attr("class",t.classes).attr("id",t.id),n=r.insert("rect",":first-child"),i=0*t.padding,a=i/2;n.attr("class","divider").attr("x",t.x-t.width/2-a).attr("y",t.y-t.height/2).attr("width",t.width+i).attr("height",t.height+i);let s=n.node().getBBox();return t.width=s.width,t.height=s.height,t.diff=-t.padding/2,t.intersect=function(l){return F0(t,l)},r},"divider"),rYt={rect:ZWt,roundedWithTitle:tYt,noteGroup:JWt,divider:eYt},s0t={},o0t=o((e,t)=>{V.trace("Inserting cluster");let r=t.shape||"rect";s0t[t.id]=rYt[r](e,t)},"insertCluster"),l0t=o(()=>{s0t={}},"clear")});var h0t,nYt,u0t,f0t=R(()=>{"use strict";ce();h0t=o((e,t,r,n,i)=>{t.arrowTypeStart&&u0t(e,"start",t.arrowTypeStart,r,n,i),t.arrowTypeEnd&&u0t(e,"end",t.arrowTypeEnd,r,n,i)},"addEdgeMarkers"),nYt={arrow_cross:"cross",arrow_point:"point",arrow_barb:"barb",arrow_circle:"circle",aggregation:"aggregation",extension:"extension",composition:"composition",dependency:"dependency",lollipop:"lollipop"},u0t=o((e,t,r,n,i,a)=>{let s=nYt[r];if(!s){V.warn(`Unknown arrow type: ${r}`);return}let l=t==="start"?"Start":"End";e.attr(`marker-${t}`,`url(${n}#${i}_${a}-${s}${l})`)},"addEdgeMarker")});function C6(e,t){pt().flowchart.htmlLabels&&e&&(e.style.width=t.length*9+"px",e.style.height="12px")}var S6,Sa,p0t,A6,_6,iYt,aYt,d0t,L6,$P=R(()=>{"use strict";ce();Xx();Nl();ur();Ue();_r();hr();YL();Nd();f0t();S6={},Sa={},p0t=o(()=>{S6={},Sa={}},"clear"),A6=o((e,t)=>{let r=pt(),n=Tr(r.flowchart.htmlLabels),i=t.labelType==="markdown"?ia(e,t.label,{style:t.labelStyle,useHtmlLabels:n,addSvgBackground:!0},r):oa(t.label,t.labelStyle),a=e.insert("g").attr("class","edgeLabel"),s=a.insert("g").attr("class","label");s.node().appendChild(i);let l=i.getBBox();if(n){let h=i.children[0],f=Gt(i);l=h.getBoundingClientRect(),f.attr("width",l.width),f.attr("height",l.height)}s.attr("transform","translate("+-l.width/2+", "+-l.height/2+")"),S6[t.id]=a,t.width=l.width,t.height=l.height;let u;if(t.startLabelLeft){let h=oa(t.startLabelLeft,t.labelStyle),f=e.insert("g").attr("class","edgeTerminals"),d=f.insert("g").attr("class","inner");u=d.node().appendChild(h);let p=h.getBBox();d.attr("transform","translate("+-p.width/2+", "+-p.height/2+")"),Sa[t.id]||(Sa[t.id]={}),Sa[t.id].startLeft=f,C6(u,t.startLabelLeft)}if(t.startLabelRight){let h=oa(t.startLabelRight,t.labelStyle),f=e.insert("g").attr("class","edgeTerminals"),d=f.insert("g").attr("class","inner");u=f.node().appendChild(h),d.node().appendChild(h);let p=h.getBBox();d.attr("transform","translate("+-p.width/2+", "+-p.height/2+")"),Sa[t.id]||(Sa[t.id]={}),Sa[t.id].startRight=f,C6(u,t.startLabelRight)}if(t.endLabelLeft){let h=oa(t.endLabelLeft,t.labelStyle),f=e.insert("g").attr("class","edgeTerminals"),d=f.insert("g").attr("class","inner");u=d.node().appendChild(h);let p=h.getBBox();d.attr("transform","translate("+-p.width/2+", "+-p.height/2+")"),f.node().appendChild(h),Sa[t.id]||(Sa[t.id]={}),Sa[t.id].endLeft=f,C6(u,t.endLabelLeft)}if(t.endLabelRight){let h=oa(t.endLabelRight,t.labelStyle),f=e.insert("g").attr("class","edgeTerminals"),d=f.insert("g").attr("class","inner");u=d.node().appendChild(h);let p=h.getBBox();d.attr("transform","translate("+-p.width/2+", "+-p.height/2+")"),f.node().appendChild(h),Sa[t.id]||(Sa[t.id]={}),Sa[t.id].endRight=f,C6(u,t.endLabelRight)}return i},"insertEdgeLabel");o(C6,"setTerminalWidth");_6=o((e,t)=>{V.debug("Moving label abc88 ",e.id,e.label,S6[e.id],t);let r=t.updatedPath?t.updatedPath:t.originalPath,n=pt(),{subGraphTitleTotalMargin:i}=io(n);if(e.label){let a=S6[e.id],s=e.x,l=e.y;if(r){let u=Oe.calcLabelPosition(r);V.debug("Moving label "+e.label+" from (",s,",",l,") to (",u.x,",",u.y,") abc88"),t.updatedPath&&(s=u.x,l=u.y)}a.attr("transform",`translate(${s}, ${l+i/2})`)}if(e.startLabelLeft){let a=Sa[e.id].startLeft,s=e.x,l=e.y;if(r){let u=Oe.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_left",r);s=u.x,l=u.y}a.attr("transform",`translate(${s}, ${l})`)}if(e.startLabelRight){let a=Sa[e.id].startRight,s=e.x,l=e.y;if(r){let u=Oe.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_right",r);s=u.x,l=u.y}a.attr("transform",`translate(${s}, ${l})`)}if(e.endLabelLeft){let a=Sa[e.id].endLeft,s=e.x,l=e.y;if(r){let u=Oe.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_left",r);s=u.x,l=u.y}a.attr("transform",`translate(${s}, ${l})`)}if(e.endLabelRight){let a=Sa[e.id].endRight,s=e.x,l=e.y;if(r){let u=Oe.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",r);s=u.x,l=u.y}a.attr("transform",`translate(${s}, ${l})`)}},"positionEdgeLabel"),iYt=o((e,t)=>{let r=e.x,n=e.y,i=Math.abs(t.x-r),a=Math.abs(t.y-n),s=e.width/2,l=e.height/2;return i>=s||a>=l},"outsideNode"),aYt=o((e,t,r)=>{V.debug(`intersection calc abc89: + outsidePoint: ${JSON.stringify(t)} + insidePoint : ${JSON.stringify(r)} + node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);let n=e.x,i=e.y,a=Math.abs(n-r.x),s=e.width/2,l=r.xMath.abs(n-t.x)*u){let d=r.y{V.debug("abc88 cutPathAtIntersect",e,t);let r=[],n=e[0],i=!1;return e.forEach(a=>{if(!iYt(t,a)&&!i){let s=aYt(t,n,a),l=!1;r.forEach(u=>{l=l||u.x===s.x&&u.y===s.y}),r.some(u=>u.x===s.x&&u.y===s.y)||r.push(s),i=!0}else n=a,i||r.push(a)}),r},"cutPathAtIntersect"),L6=o(function(e,t,r,n,i,a,s){let l=r.points;V.debug("abc88 InsertEdge: edge=",r,"e=",t);let u=!1,h=a.node(t.v);var f=a.node(t.w);f?.intersect&&h?.intersect&&(l=l.slice(1,r.points.length-1),l.unshift(h.intersect(l[0])),l.push(f.intersect(l[l.length-1]))),r.toCluster&&(V.debug("to cluster abc88",n[r.toCluster]),l=d0t(r.points,n[r.toCluster].node),u=!0),r.fromCluster&&(V.debug("from cluster abc88",n[r.fromCluster]),l=d0t(l.reverse(),n[r.fromCluster].node).reverse(),u=!0);let d=l.filter(S=>!Number.isNaN(S.y)),p=Ts;r.curve&&(i==="graph"||i==="flowchart")&&(p=r.curve);let{x:m,y:g}=xw(r),y=ma().x(m).y(g).curve(p),v;switch(r.thickness){case"normal":v="edge-thickness-normal";break;case"thick":v="edge-thickness-thick";break;case"invisible":v="edge-thickness-thick";break;default:v=""}switch(r.pattern){case"solid":v+=" edge-pattern-solid";break;case"dotted":v+=" edge-pattern-dotted";break;case"dashed":v+=" edge-pattern-dashed";break}let x=e.append("path").attr("d",y(d)).attr("id",r.id).attr("class"," "+v+(r.classes?" "+r.classes:"")).attr("style",r.style),b="";(pt().flowchart.arrowMarkerAbsolute||pt().state.arrowMarkerAbsolute)&&(b=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,b=b.replace(/\(/g,"\\("),b=b.replace(/\)/g,"\\)")),h0t(x,r,b,s,i);let w={};return u&&(w.updatedPath=l),w.originalPath=r.points,w},"insertEdge")});var m0t,g0t,y0t=R(()=>{"use strict";Xd();s2();IP();w6();$dt();zP();c0t();$P();ce();Nd();Ue();m0t=o(async(e,t,r,n,i,a)=>{V.info("Graph in recursive render: XXX",Yn(t),i);let s=t.graph().rankdir;V.trace("Dir in recursive render - dir:",s);let l=e.insert("g").attr("class","root");t.nodes()?V.info("Recursive render XXX",t.nodes()):V.info("No nodes found for",t),t.edges().length>0&&V.trace("Recursive edges",t.edge(t.edges()[0]));let u=l.insert("g").attr("class","clusters"),h=l.insert("g").attr("class","edgePaths"),f=l.insert("g").attr("class","edgeLabels"),d=l.insert("g").attr("class","nodes");await Promise.all(t.nodes().map(async function(g){let y=t.node(g);if(i!==void 0){let v=JSON.parse(JSON.stringify(i.clusterData));V.info("Setting data for cluster XXX (",g,") ",v,i),t.setNode(i.id,v),t.parent(g)||(V.trace("Setting parent",g,i.id),t.setParent(g,i.id,v))}if(V.info("(Insert) Node XXX"+g+": "+JSON.stringify(t.node(g))),y?.clusterNode){V.info("Cluster identified",g,y.width,t.node(g));let{ranksep:v,nodesep:x}=t.graph();y.graph.setGraph({...y.graph.graph(),ranksep:v,nodesep:x});let b=await m0t(d,y.graph,r,n,t.node(g),a),w=b.elem;Nn(y,w),y.diff=b.diff||0,V.info("Node bounds (abc123)",g,y,y.width,y.x,y.y),i0t(w,y),V.warn("Recursive render complete ",w,y)}else t.children(g).length>0?(V.info("Cluster - the non recursive path XXX",g,y.id,y,t),V.info(Jg(y.id,t)),dr[y.id]={id:Jg(y.id,t),node:y}):(V.info("Node - the non recursive path",g,y.id,y),await jx(d,t.node(g),{config:a,dir:s}))})),t.edges().forEach(async function(g){let y=t.edge(g.v,g.w,g.name);V.info("Edge "+g.v+" -> "+g.w+": "+JSON.stringify(g)),V.info("Edge "+g.v+" -> "+g.w+": ",g," ",JSON.stringify(t.edge(g))),V.info("Fix",dr,"ids:",g.v,g.w,"Translating: ",dr[g.v],dr[g.w]),await A6(f,y)}),t.edges().forEach(function(g){V.info("Edge "+g.v+" -> "+g.w+": "+JSON.stringify(g))}),V.info("Graph before layout:",JSON.stringify(Yn(t))),V.info("#############################################"),V.info("### Layout ###"),V.info("#############################################"),V.info(t),co(t),V.info("Graph after layout:",JSON.stringify(Yn(t)));let p=0,{subGraphTitleTotalMargin:m}=io(a);return zdt(t).forEach(function(g){let y=t.node(g);V.info("Position "+g+": "+JSON.stringify(t.node(g))),V.info("Position "+g+": ("+y.x,","+y.y,") width: ",y.width," height: ",y.height),y?.clusterNode?(y.y+=m,Kx(y)):t.children(g).length>0?(y.height+=m,o0t(u,y),dr[y.id].node=y):(y.y+=m/2,Kx(y))}),t.edges().forEach(function(g){let y=t.edge(g);V.info("Edge "+g.v+" -> "+g.w+": "+JSON.stringify(y),y),y.points.forEach(x=>x.y+=m/2);let v=L6(h,g,y,dr,r,t,n);_6(y,v)}),t.nodes().forEach(function(g){let y=t.node(g);V.info(g,y.type,y.diff),y.type==="group"&&(p=y.diff)}),{elem:l,diff:p}},"recursiveRender"),g0t=o(async(e,t,r,n,i)=>{b6(e,r,n,i),a0t(),p0t(),l0t(),Mdt(),V.warn("Graph at first:",JSON.stringify(Yn(t))),Pdt(t),V.warn("Graph after:",JSON.stringify(Yn(t)));let a=pt();await m0t(e,t,n,i,void 0,a)},"render")});function v0t(e){let t;switch(e){case 0:t="aggregation";break;case 1:t="extension";break;case 2:t="composition";break;case 3:t="dependency";break;case 4:t="lollipop";break;default:t="none"}return t}var VP,GP,sYt,x0t,oYt,lYt,cYt,uYt,b0t,w0t=R(()=>{"use strict";ur();wa();ce();Ue();y0t();_r();_r();Jn();hr();VP=o(e=>Yt.sanitizeText(e,pt()),"sanitizeText"),GP={dividerMargin:10,padding:5,textHeight:10,curve:void 0},sYt=o(function(e,t,r,n){V.info("keys:",[...e.keys()]),V.info(e),e.forEach(function(i){let s={shape:"rect",id:i.id,domId:i.domId,labelText:VP(i.id),labelStyle:"",style:"fill: none; stroke: black",padding:pt().flowchart?.padding??pt().class?.padding};t.setNode(i.id,s),x0t(i.classes,t,r,n,i.id),V.info("setNode",s)})},"addNamespaces"),x0t=o(function(e,t,r,n,i){V.info("keys:",[...e.keys()]),V.info(e),[...e.values()].filter(a=>a.parent===i).forEach(function(a){let s=a.cssClasses.join(" "),l=gm(a.styles),u=a.label??a.id,h=0,d={labelStyle:l.labelStyle,shape:"class_box",labelText:VP(u),classData:a,rx:h,ry:h,class:s,style:l.style,id:a.id,domId:a.domId,tooltip:n.db.getTooltip(a.id,i)||"",haveCallback:a.haveCallback,link:a.link,width:a.type==="group"?500:void 0,type:a.type,padding:pt().flowchart?.padding??pt().class?.padding};t.setNode(a.id,d),i&&t.setParent(a.id,i),V.info("setNode",d)})},"addClasses"),oYt=o(function(e,t,r,n){V.info(e),e.forEach(function(i,a){let s=i,l="",u={labelStyle:"",style:""},h=s.text,f=0,p={labelStyle:u.labelStyle,shape:"note",labelText:VP(h),noteData:s,rx:f,ry:f,class:l,style:u.style,id:s.id,domId:s.id,tooltip:"",type:"note",padding:pt().flowchart?.padding??pt().class?.padding};if(t.setNode(s.id,p),V.info("setNode",p),!s.class||!n.has(s.class))return;let m=r+a,g={id:`edgeNote${m}`,classes:"relation",pattern:"dotted",arrowhead:"none",startLabelRight:"",endLabelLeft:"",arrowTypeStart:"none",arrowTypeEnd:"none",style:"fill:none",labelStyle:"",curve:mm(GP.curve,Cu)};t.setEdge(s.id,s.class,g,m)})},"addNotes"),lYt=o(function(e,t){let r=pt().flowchart,n=0;e.forEach(function(i){n++;let a={classes:"relation",pattern:i.relation.lineType==1?"dashed":"solid",id:B5(i.id1,i.id2,{prefix:"id",counter:n}),arrowhead:i.type==="arrow_open"?"none":"normal",startLabelRight:i.relationTitle1==="none"?"":i.relationTitle1,endLabelLeft:i.relationTitle2==="none"?"":i.relationTitle2,arrowTypeStart:v0t(i.relation.type1),arrowTypeEnd:v0t(i.relation.type2),style:"fill:none",labelStyle:"",curve:mm(r?.curve,Cu)};if(V.info(a,i),i.style!==void 0){let s=gm(i.style);a.style=s.style,a.labelStyle=s.labelStyle}i.text=i.title,i.text===void 0?i.style!==void 0&&(a.arrowheadStyle="fill: #333"):(a.arrowheadStyle="fill: #333",a.labelpos="c",pt().flowchart?.htmlLabels??pt().htmlLabels?(a.labelType="html",a.label=''+i.text+""):(a.labelType="text",a.label=i.text.replace(Yt.lineBreakRegex,` +`),i.style===void 0&&(a.style=a.style||"stroke: #333; stroke-width: 1.5px;fill:none"),a.labelStyle=a.labelStyle.replace("color:","fill:"))),t.setEdge(i.id1,i.id2,a,n)})},"addRelations"),cYt=o(function(e){GP={...GP,...e}},"setConf"),uYt=o(async function(e,t,r,n){V.info("Drawing class - ",t);let i=pt().flowchart??pt().class,a=pt().securityLevel;V.info("config:",i);let s=i?.nodeSpacing??50,l=i?.rankSpacing??50,u=new yr({multigraph:!0,compound:!0}).setGraph({rankdir:n.db.getDirection(),nodesep:s,ranksep:l,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),h=n.db.getNamespaces(),f=n.db.getClasses(),d=n.db.getRelations(),p=n.db.getNotes();V.info(d),sYt(h,u,t,n),x0t(f,u,t,n),lYt(d,u),oYt(p,u,d.length+1,f);let m;a==="sandbox"&&(m=Gt("#i"+t));let g=a==="sandbox"?Gt(m.nodes()[0].contentDocument.body):Gt("body"),y=g.select(`[id="${t}"]`),v=g.select("#"+t+" g");if(await g0t(v,u,["aggregation","extension","composition","dependency","lollipop"],"classDiagram",t),Oe.insertTitle(y,"classTitleText",i?.titleTopMargin??5,n.db.getDiagramTitle()),No(u,y,i?.diagramPadding,i?.useMaxWidth),!i?.htmlLabels){let x=a==="sandbox"?m.nodes()[0].contentDocument:document,b=x.querySelectorAll('[id="'+t+'"] .edgeLabel .label');for(let w of b){let S=w.getBBox(),T=x.createElementNS("http://www.w3.org/2000/svg","rect");T.setAttribute("rx",0),T.setAttribute("ry",0),T.setAttribute("width",S.width),T.setAttribute("height",S.height),w.insertBefore(T,w.firstChild)}}},"draw");o(v0t,"getArrowMarker");b0t={setConf:cYt,draw:uYt}});var T0t={};xr(T0t,{diagram:()=>hYt});var hYt,k0t=R(()=>{"use strict";AP();NP();MP();w0t();hYt={parser:f6,db:Zg,renderer:b0t,styles:g6,init:o(e=>{e.class||(e.class={}),e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute,Zg.clear()},"init")}});var UP,D6,HP=R(()=>{"use strict";UP=function(){var e=o(function(F,B,G,z){for(G=G||{},z=F.length;z--;G[F[z]]=B);return G},"o"),t=[1,2],r=[1,3],n=[1,4],i=[2,4],a=[1,9],s=[1,11],l=[1,16],u=[1,17],h=[1,18],f=[1,19],d=[1,32],p=[1,20],m=[1,21],g=[1,22],y=[1,23],v=[1,24],x=[1,26],b=[1,27],w=[1,28],S=[1,29],T=[1,30],E=[1,31],_=[1,34],A=[1,35],L=[1,36],M=[1,37],N=[1,33],k=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,45,48,49,50,51,54],I=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,45,48,49,50,51,54],C=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,45,48,49,50,51,54],O={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,classDef:38,CLASSDEF_ID:39,CLASSDEF_STYLEOPTS:40,DEFAULT:41,style:42,STYLE_IDS:43,STYLEDEF_STYLEOPTS:44,class:45,CLASSENTITY_IDS:46,STYLECLASS:47,direction_tb:48,direction_bt:49,direction_rl:50,direction_lr:51,eol:52,";":53,EDGE_STATE:54,STYLE_SEPARATOR:55,left_of:56,right_of:57,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"classDef",39:"CLASSDEF_ID",40:"CLASSDEF_STYLEOPTS",41:"DEFAULT",42:"style",43:"STYLE_IDS",44:"STYLEDEF_STYLEOPTS",45:"class",46:"CLASSENTITY_IDS",47:"STYLECLASS",48:"direction_tb",49:"direction_bt",50:"direction_rl",51:"direction_lr",53:";",54:"EDGE_STATE",55:"STYLE_SEPARATOR",56:"left_of",57:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[52,1],[52,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:o(function(B,G,z,W,Q,j,at){var X=j.length-1;switch(Q){case 3:return W.setRootDoc(j[X]),j[X];break;case 4:this.$=[];break;case 5:j[X]!="nl"&&(j[X-1].push(j[X]),this.$=j[X-1]);break;case 6:case 7:this.$=j[X];break;case 8:this.$="nl";break;case 12:this.$=j[X];break;case 13:let q=j[X-1];q.description=W.trimColon(j[X]),this.$=q;break;case 14:this.$={stmt:"relation",state1:j[X-2],state2:j[X]};break;case 15:let K=W.trimColon(j[X]);this.$={stmt:"relation",state1:j[X-3],state2:j[X-1],description:K};break;case 19:this.$={stmt:"state",id:j[X-3],type:"default",description:"",doc:j[X-1]};break;case 20:var J=j[X],Z=j[X-2].trim();if(j[X].match(":")){var H=j[X].split(":");J=H[0],Z=[Z,H[1]]}this.$={stmt:"state",id:J,type:"default",description:Z};break;case 21:this.$={stmt:"state",id:j[X-3],type:"default",description:j[X-5],doc:j[X-1]};break;case 22:this.$={stmt:"state",id:j[X],type:"fork"};break;case 23:this.$={stmt:"state",id:j[X],type:"join"};break;case 24:this.$={stmt:"state",id:j[X],type:"choice"};break;case 25:this.$={stmt:"state",id:W.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:j[X-1].trim(),note:{position:j[X-2].trim(),text:j[X].trim()}};break;case 29:this.$=j[X].trim(),W.setAccTitle(this.$);break;case 30:case 31:this.$=j[X].trim(),W.setAccDescription(this.$);break;case 32:case 33:this.$={stmt:"classDef",id:j[X-1].trim(),classes:j[X].trim()};break;case 34:this.$={stmt:"style",id:j[X-1].trim(),styleClass:j[X].trim()};break;case 35:this.$={stmt:"applyClass",id:j[X-1].trim(),styleClass:j[X].trim()};break;case 36:W.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 37:W.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 38:W.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 39:W.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 42:case 43:this.$={stmt:"state",id:j[X].trim(),type:"default",description:""};break;case 44:this.$={stmt:"state",id:j[X-2].trim(),classes:[j[X].trim()],type:"default",description:""};break;case 45:this.$={stmt:"state",id:j[X-2].trim(),classes:[j[X].trim()],type:"default",description:""};break}},"anonymous"),table:[{3:1,4:t,5:r,6:n},{1:[3]},{3:5,4:t,5:r,6:n},{3:6,4:t,5:r,6:n},e([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,42,45,48,49,50,51,54],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:a,5:s,8:8,9:10,10:12,11:13,12:14,13:15,16:l,17:u,19:h,22:f,24:d,25:p,26:m,27:g,28:y,29:v,32:25,33:x,35:b,37:w,38:S,42:T,45:E,48:_,49:A,50:L,51:M,54:N},e(k,[2,5]),{9:38,10:12,11:13,12:14,13:15,16:l,17:u,19:h,22:f,24:d,25:p,26:m,27:g,28:y,29:v,32:25,33:x,35:b,37:w,38:S,42:T,45:E,48:_,49:A,50:L,51:M,54:N},e(k,[2,7]),e(k,[2,8]),e(k,[2,9]),e(k,[2,10]),e(k,[2,11]),e(k,[2,12],{14:[1,39],15:[1,40]}),e(k,[2,16]),{18:[1,41]},e(k,[2,18],{20:[1,42]}),{23:[1,43]},e(k,[2,22]),e(k,[2,23]),e(k,[2,24]),e(k,[2,25]),{30:44,31:[1,45],56:[1,46],57:[1,47]},e(k,[2,28]),{34:[1,48]},{36:[1,49]},e(k,[2,31]),{39:[1,50],41:[1,51]},{43:[1,52]},{46:[1,53]},e(I,[2,42],{55:[1,54]}),e(I,[2,43],{55:[1,55]}),e(k,[2,36]),e(k,[2,37]),e(k,[2,38]),e(k,[2,39]),e(k,[2,6]),e(k,[2,13]),{13:56,24:d,54:N},e(k,[2,17]),e(C,i,{7:57}),{24:[1,58]},{24:[1,59]},{23:[1,60]},{24:[2,46]},{24:[2,47]},e(k,[2,29]),e(k,[2,30]),{40:[1,61]},{40:[1,62]},{44:[1,63]},{47:[1,64]},{24:[1,65]},{24:[1,66]},e(k,[2,14],{14:[1,67]}),{4:a,5:s,8:8,9:10,10:12,11:13,12:14,13:15,16:l,17:u,19:h,21:[1,68],22:f,24:d,25:p,26:m,27:g,28:y,29:v,32:25,33:x,35:b,37:w,38:S,42:T,45:E,48:_,49:A,50:L,51:M,54:N},e(k,[2,20],{20:[1,69]}),{31:[1,70]},{24:[1,71]},e(k,[2,32]),e(k,[2,33]),e(k,[2,34]),e(k,[2,35]),e(I,[2,44]),e(I,[2,45]),e(k,[2,15]),e(k,[2,19]),e(C,i,{7:72}),e(k,[2,26]),e(k,[2,27]),{4:a,5:s,8:8,9:10,10:12,11:13,12:14,13:15,16:l,17:u,19:h,21:[1,73],22:f,24:d,25:p,26:m,27:g,28:y,29:v,32:25,33:x,35:b,37:w,38:S,42:T,45:E,48:_,49:A,50:L,51:M,54:N},e(k,[2,21])],defaultActions:{5:[2,1],6:[2,2],46:[2,46],47:[2,47]},parseError:o(function(B,G){if(G.recoverable)this.trace(B);else{var z=new Error(B);throw z.hash=G,z}},"parseError"),parse:o(function(B){var G=this,z=[0],W=[],Q=[null],j=[],at=this.table,X="",J=0,Z=0,H=0,q=2,K=1,ot=j.slice.call(arguments,1),ct=Object.create(this.lexer),ut={yy:{}};for(var et in this.yy)Object.prototype.hasOwnProperty.call(this.yy,et)&&(ut.yy[et]=this.yy[et]);ct.setInput(B,ut.yy),ut.yy.lexer=ct,ut.yy.parser=this,typeof ct.yylloc>"u"&&(ct.yylloc={});var Mt=ct.yylloc;j.push(Mt);var it=ct.options&&ct.options.ranges;typeof ut.yy.parseError=="function"?this.parseError=ut.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function wt(Tt){z.length=z.length-2*Tt,Q.length=Q.length-Tt,j.length=j.length-Tt}o(wt,"popStack");function Ot(){var Tt;return Tt=W.pop()||ct.lex()||K,typeof Tt!="number"&&(Tt instanceof Array&&(W=Tt,Tt=W.pop()),Tt=G.symbols_[Tt]||Tt),Tt}o(Ot,"lex");for(var St,Vt,Pt,_t,dt,Y,ft={},mt,rt,ht,nt;;){if(Pt=z[z.length-1],this.defaultActions[Pt]?_t=this.defaultActions[Pt]:((St===null||typeof St>"u")&&(St=Ot()),_t=at[Pt]&&at[Pt][St]),typeof _t>"u"||!_t.length||!_t[0]){var st="";nt=[];for(mt in at[Pt])this.terminals_[mt]&&mt>q&&nt.push("'"+this.terminals_[mt]+"'");ct.showPosition?st="Parse error on line "+(J+1)+`: +`+ct.showPosition()+` +Expecting `+nt.join(", ")+", got '"+(this.terminals_[St]||St)+"'":st="Parse error on line "+(J+1)+": Unexpected "+(St==K?"end of input":"'"+(this.terminals_[St]||St)+"'"),this.parseError(st,{text:ct.match,token:this.terminals_[St]||St,line:ct.yylineno,loc:Mt,expected:nt})}if(_t[0]instanceof Array&&_t.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Pt+", token: "+St);switch(_t[0]){case 1:z.push(St),Q.push(ct.yytext),j.push(ct.yylloc),z.push(_t[1]),St=null,Vt?(St=Vt,Vt=null):(Z=ct.yyleng,X=ct.yytext,J=ct.yylineno,Mt=ct.yylloc,H>0&&H--);break;case 2:if(rt=this.productions_[_t[1]][1],ft.$=Q[Q.length-rt],ft._$={first_line:j[j.length-(rt||1)].first_line,last_line:j[j.length-1].last_line,first_column:j[j.length-(rt||1)].first_column,last_column:j[j.length-1].last_column},it&&(ft._$.range=[j[j.length-(rt||1)].range[0],j[j.length-1].range[1]]),Y=this.performAction.apply(ft,[X,Z,J,ut.yy,_t[1],Q,j].concat(ot)),typeof Y<"u")return Y;rt&&(z=z.slice(0,-1*rt*2),Q=Q.slice(0,-1*rt),j=j.slice(0,-1*rt)),z.push(this.productions_[_t[1]][0]),Q.push(ft.$),j.push(ft._$),ht=at[z[z.length-2]][z[z.length-1]],z.push(ht);break;case 3:return!0}}return!0},"parse")},D=function(){var F={EOF:1,parseError:o(function(G,z){if(this.yy.parser)this.yy.parser.parseError(G,z);else throw new Error(G)},"parseError"),setInput:o(function(B,G){return this.yy=G||this.yy||{},this._input=B,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var B=this._input[0];this.yytext+=B,this.yyleng++,this.offset++,this.match+=B,this.matched+=B;var G=B.match(/(?:\r\n?|\n).*/g);return G?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),B},"input"),unput:o(function(B){var G=B.length,z=B.split(/(?:\r\n?|\n)/g);this._input=B+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-G),this.offset-=G;var W=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),z.length-1&&(this.yylineno-=z.length-1);var Q=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:z?(z.length===W.length?this.yylloc.first_column:0)+W[W.length-z.length].length-z[0].length:this.yylloc.first_column-G},this.options.ranges&&(this.yylloc.range=[Q[0],Q[0]+this.yyleng-G]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(B){this.unput(this.match.slice(B))},"less"),pastInput:o(function(){var B=this.matched.substr(0,this.matched.length-this.match.length);return(B.length>20?"...":"")+B.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var B=this.match;return B.length<20&&(B+=this._input.substr(0,20-B.length)),(B.substr(0,20)+(B.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var B=this.pastInput(),G=new Array(B.length+1).join("-");return B+this.upcomingInput()+` +`+G+"^"},"showPosition"),test_match:o(function(B,G){var z,W,Q;if(this.options.backtrack_lexer&&(Q={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(Q.yylloc.range=this.yylloc.range.slice(0))),W=B[0].match(/(?:\r\n?|\n).*/g),W&&(this.yylineno+=W.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:W?W[W.length-1].length-W[W.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+B[0].length},this.yytext+=B[0],this.match+=B[0],this.matches=B,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(B[0].length),this.matched+=B[0],z=this.performAction.call(this,this.yy,this,G,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),z)return z;if(this._backtrack){for(var j in Q)this[j]=Q[j];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var B,G,z,W;this._more||(this.yytext="",this.match="");for(var Q=this._currentRules(),j=0;jG[0].length)){if(G=z,W=j,this.options.backtrack_lexer){if(B=this.test_match(z,Q[j]),B!==!1)return B;if(this._backtrack){G=!1;continue}else return!1}else if(!this.options.flex)break}return G?(B=this.test_match(G,Q[W]),B!==!1?B:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var G=this.next();return G||this.lex()},"lex"),begin:o(function(G){this.conditionStack.push(G)},"begin"),popState:o(function(){var G=this.conditionStack.length-1;return G>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(G){return G=this.conditionStack.length-1-Math.abs(G||0),G>=0?this.conditionStack[G]:"INITIAL"},"topState"),pushState:o(function(G){this.begin(G)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:o(function(G,z,W,Q){var j=Q;switch(W){case 0:return 41;case 1:return 48;case 2:return 49;case 3:return 50;case 4:return 51;case 5:break;case 6:break;case 7:return 5;case 8:break;case 9:break;case 10:break;case 11:break;case 12:return this.pushState("SCALE"),17;break;case 13:return 18;case 14:this.popState();break;case 15:return this.begin("acc_title"),33;break;case 16:return this.popState(),"acc_title_value";break;case 17:return this.begin("acc_descr"),35;break;case 18:return this.popState(),"acc_descr_value";break;case 19:this.begin("acc_descr_multiline");break;case 20:this.popState();break;case 21:return"acc_descr_multiline_value";case 22:return this.pushState("CLASSDEF"),38;break;case 23:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";break;case 24:return this.popState(),this.pushState("CLASSDEFID"),39;break;case 25:return this.popState(),40;break;case 26:return this.pushState("CLASS"),45;break;case 27:return this.popState(),this.pushState("CLASS_STYLE"),46;break;case 28:return this.popState(),47;break;case 29:return this.pushState("STYLE"),42;break;case 30:return this.popState(),this.pushState("STYLEDEF_STYLES"),43;break;case 31:return this.popState(),44;break;case 32:return this.pushState("SCALE"),17;break;case 33:return 18;case 34:this.popState();break;case 35:this.pushState("STATE");break;case 36:return this.popState(),z.yytext=z.yytext.slice(0,-8).trim(),25;break;case 37:return this.popState(),z.yytext=z.yytext.slice(0,-8).trim(),26;break;case 38:return this.popState(),z.yytext=z.yytext.slice(0,-10).trim(),27;break;case 39:return this.popState(),z.yytext=z.yytext.slice(0,-8).trim(),25;break;case 40:return this.popState(),z.yytext=z.yytext.slice(0,-8).trim(),26;break;case 41:return this.popState(),z.yytext=z.yytext.slice(0,-10).trim(),27;break;case 42:return 48;case 43:return 49;case 44:return 50;case 45:return 51;case 46:this.pushState("STATE_STRING");break;case 47:return this.pushState("STATE_ID"),"AS";break;case 48:return this.popState(),"ID";break;case 49:this.popState();break;case 50:return"STATE_DESCR";case 51:return 19;case 52:this.popState();break;case 53:return this.popState(),this.pushState("struct"),20;break;case 54:break;case 55:return this.popState(),21;break;case 56:break;case 57:return this.begin("NOTE"),29;break;case 58:return this.popState(),this.pushState("NOTE_ID"),56;break;case 59:return this.popState(),this.pushState("NOTE_ID"),57;break;case 60:this.popState(),this.pushState("FLOATING_NOTE");break;case 61:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";break;case 62:break;case 63:return"NOTE_TEXT";case 64:return this.popState(),"ID";break;case 65:return this.popState(),this.pushState("NOTE_TEXT"),24;break;case 66:return this.popState(),z.yytext=z.yytext.substr(2).trim(),31;break;case 67:return this.popState(),z.yytext=z.yytext.slice(0,-8).trim(),31;break;case 68:return 6;case 69:return 6;case 70:return 16;case 71:return 54;case 72:return 24;case 73:return z.yytext=z.yytext.trim(),14;break;case 74:return 15;case 75:return 28;case 76:return 55;case 77:return 5;case 78:return"INVALID"}},"anonymous"),rules:[/^(?:default\b)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:classDef\s+)/i,/^(?:DEFAULT\s+)/i,/^(?:\w+\s+)/i,/^(?:[^\n]*)/i,/^(?:class\s+)/i,/^(?:(\w+)+((,\s*\w+)*))/i,/^(?:[^\n]*)/i,/^(?:style\s+)/i,/^(?:[\w,]+\s+)/i,/^(?:[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<>)/i,/^(?:.*<>)/i,/^(?:.*<>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?::::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[9,10],inclusive:!1},struct:{rules:[9,10,22,26,29,35,42,43,44,45,54,55,56,57,71,72,73,74,75],inclusive:!1},FLOATING_NOTE_ID:{rules:[64],inclusive:!1},FLOATING_NOTE:{rules:[61,62,63],inclusive:!1},NOTE_TEXT:{rules:[66,67],inclusive:!1},NOTE_ID:{rules:[65],inclusive:!1},NOTE:{rules:[58,59,60],inclusive:!1},STYLEDEF_STYLEOPTS:{rules:[],inclusive:!1},STYLEDEF_STYLES:{rules:[31],inclusive:!1},STYLE_IDS:{rules:[],inclusive:!1},STYLE:{rules:[30],inclusive:!1},CLASS_STYLE:{rules:[28],inclusive:!1},CLASS:{rules:[27],inclusive:!1},CLASSDEFID:{rules:[25],inclusive:!1},CLASSDEF:{rules:[23,24],inclusive:!1},acc_descr_multiline:{rules:[20,21],inclusive:!1},acc_descr:{rules:[18],inclusive:!1},acc_title:{rules:[16],inclusive:!1},SCALE:{rules:[13,14,33,34],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[48],inclusive:!1},STATE_STRING:{rules:[49,50],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[9,10,36,37,38,39,40,41,46,47,51,52,53],inclusive:!1},ID:{rules:[9,10],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,10,11,12,15,17,19,22,26,29,32,35,53,57,68,69,70,71,72,73,74,76,77,78],inclusive:!0}}};return F}();O.lexer=D;function P(){this.yy={}}return o(P,"Parser"),P.prototype=O,O.Parser=P,new P}();UP.parser=UP;D6=UP});var S0t,R6,e1,Qx,A0t,_0t,L0t,z0,N6,WP,YP,qP,XP,jP,M6,I6,D0t,R0t,KP,QP,N0t,M0t,r1,mYt,I0t,ZP,gYt,yYt,O0t,P0t,vYt,B0t,xYt,F0t,JP,tB,z0t,O6,$0t,eB,P6=R(()=>{"use strict";S0t="LR",R6="TB",e1="state",Qx="relation",A0t="classDef",_0t="style",L0t="applyClass",z0="default",N6="divider",WP="fill:none",YP="fill: #333",qP="c",XP="text",jP="normal",M6="rect",I6="rectWithTitle",D0t="stateStart",R0t="stateEnd",KP="divider",QP="roundedWithTitle",N0t="note",M0t="noteGroup",r1="statediagram",mYt="state",I0t=`${r1}-${mYt}`,ZP="transition",gYt="note",yYt="note-edge",O0t=`${ZP} ${yYt}`,P0t=`${r1}-${gYt}`,vYt="cluster",B0t=`${r1}-${vYt}`,xYt="cluster-alt",F0t=`${r1}-${xYt}`,JP="parent",tB="note",z0t="state",O6="----",$0t=`${O6}${tB}`,eB=`${O6}${JP}`});function rB(e="",t=0,r="",n=O6){let i=r!==null&&r.length>0?`${n}${r}`:"";return`${z0t}-${e}${i}-${t}`}function B6(e,t,r){if(!t.id||t.id===""||t.id==="
    ")return;t.cssClasses&&(Array.isArray(t.cssCompiledStyles)||(t.cssCompiledStyles=[]),t.cssClasses.split(" ").forEach(i=>{if(r.get(i)){let a=r.get(i);t.cssCompiledStyles=[...t.cssCompiledStyles,...a.styles]}}));let n=e.find(i=>i.id===t.id);n?Object.assign(n,t):e.push(t)}function wYt(e){return e?.classes?.join(" ")??""}function TYt(e){return e?.styles??[]}var F6,Tf,bYt,G0t,n1,V0t,U0t=R(()=>{"use strict";Ue();ce();hr();P6();F6=new Map,Tf=0;o(rB,"stateDomId");bYt=o((e,t,r,n,i,a,s,l)=>{V.trace("items",t),t.forEach(u=>{switch(u.stmt){case e1:n1(e,u,r,n,i,a,s,l);break;case z0:n1(e,u,r,n,i,a,s,l);break;case Qx:{n1(e,u.state1,r,n,i,a,s,l),n1(e,u.state2,r,n,i,a,s,l);let h={id:"edge"+Tf,start:u.state1.id,end:u.state2.id,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:WP,labelStyle:"",label:Yt.sanitizeText(u.description,pt()),arrowheadStyle:YP,labelpos:qP,labelType:XP,thickness:jP,classes:ZP,look:s};i.push(h),Tf++}break}})},"setupDoc"),G0t=o((e,t=R6)=>{let r=t;if(e.doc)for(let n of e.doc)n.stmt==="dir"&&(r=n.value);return r},"getDir");o(B6,"insertOrUpdateNode");o(wYt,"getClassesFromDbInfo");o(TYt,"getStylesFromDbInfo");n1=o((e,t,r,n,i,a,s,l)=>{let u=t.id,h=r.get(u),f=wYt(h),d=TYt(h);if(V.info("dataFetcher parsedItem",t,h,d),u!=="root"){let p=M6;t.start===!0?p=D0t:t.start===!1&&(p=R0t),t.type!==z0&&(p=t.type),F6.get(u)||F6.set(u,{id:u,shape:p,description:Yt.sanitizeText(u,pt()),cssClasses:`${f} ${I0t}`,cssStyles:d});let m=F6.get(u);t.description&&(Array.isArray(m.description)?(m.shape=I6,m.description.push(t.description)):m.description?.length>0?(m.shape=I6,m.description===u?m.description=[t.description]:m.description=[m.description,t.description]):(m.shape=M6,m.description=t.description),m.description=Yt.sanitizeTextOrArray(m.description,pt())),m.description?.length===1&&m.shape===I6&&(m.type==="group"?m.shape=QP:m.shape=M6),!m.type&&t.doc&&(V.info("Setting cluster for XCX",u,G0t(t)),m.type="group",m.isGroup=!0,m.dir=G0t(t),m.shape=t.type===N6?KP:QP,m.cssClasses=`${m.cssClasses} ${B0t} ${a?F0t:""}`);let g={labelStyle:"",shape:m.shape,label:m.description,cssClasses:m.cssClasses,cssCompiledStyles:[],cssStyles:m.cssStyles,id:u,dir:m.dir,domId:rB(u,Tf),type:m.type,isGroup:m.type==="group",padding:8,rx:10,ry:10,look:s};if(g.shape===KP&&(g.label=""),e&&e.id!=="root"&&(V.trace("Setting node ",u," to be child of its parent ",e.id),g.parentId=e.id),g.centerLabel=!0,t.note){let y={labelStyle:"",shape:N0t,label:t.note.text,cssClasses:P0t,cssStyles:[],cssCompilesStyles:[],id:u+$0t+"-"+Tf,domId:rB(u,Tf,tB),type:m.type,isGroup:m.type==="group",padding:pt().flowchart.padding,look:s,position:t.note.position},v=u+eB,x={labelStyle:"",shape:M0t,label:t.note.text,cssClasses:m.cssClasses,cssStyles:[],id:u+eB,domId:rB(u,Tf,JP),type:"group",isGroup:!0,padding:16,look:s,position:t.note.position};Tf++,x.id=v,y.parentId=v,B6(n,x,l),B6(n,y,l),B6(n,g,l);let b=u,w=y.id;t.note.position==="left of"&&(b=y.id,w=u),i.push({id:b+"-"+w,start:b,end:w,arrowhead:"none",arrowTypeEnd:"",style:WP,labelStyle:"",classes:O0t,arrowheadStyle:YP,labelpos:qP,labelType:XP,thickness:jP,look:s})}else B6(n,g,l)}t.doc&&(V.trace("Adding nodes children "),bYt(t,t.doc,r,n,i,!a,s,l))},"dataFetcher"),V0t=o(()=>{F6.clear(),Tf=0},"reset")});var nB,kYt,EYt,H0t,iB=R(()=>{"use strict";Ue();ce();pL();ZT();TR();_r();P6();nB=o((e,t=R6)=>{if(!e.doc)return t;let r=t;for(let n of e.doc)n.stmt==="dir"&&(r=n.value);return r},"getDir"),kYt=o(function(e,t){return t.db.extract(t.db.getRootDocV2()),t.db.getClasses()},"getClasses"),EYt=o(async function(e,t,r,n){V.info("REF0:"),V.info("Drawing state diagram (v2)",t);let{securityLevel:i,state:a,layout:s}=pt();n.db.extract(n.db.getRootDocV2());let l=n.db.getData(),u=rw(t,i);l.type=n.type,l.layoutAlgorithm=s,l.nodeSpacing=a?.nodeSpacing||50,l.rankSpacing=a?.rankSpacing||50,l.markers=["barb"],l.diagramId=t,await QT(l,u);let h=8;Oe.insertTitle(u,"statediagramTitleText",a?.titleTopMargin??25,n.db.getDiagramTitle()),JT(u,h,r1,a?.useMaxWidth??!0)},"draw"),H0t={getClasses:kYt,draw:EYt,getDir:nB}});function Q0t(){return new Map}function aB(e=""){let t=e;return e===lB&&(Zx++,t=`${X0t}${Zx}`),t}function sB(e="",t=z0){return e===lB?X0t:t}function IYt(e=""){let t=e;return e===j0t&&(Zx++,t=`${K0t}${Zx}`),t}function OYt(e="",t=z0){return e===j0t?K0t:t}function PYt(e,t,r){let n=aB(e.id.trim()),i=sB(e.id.trim(),e.type),a=aB(t.id.trim()),s=sB(t.id.trim(),t.type);kf(n,i,e.doc,e.description,e.note,e.classes,e.styles,e.textStyles),kf(a,s,t.doc,t.description,t.note,t.classes,t.styles,t.textStyles),Hs.relations.push({id1:n,id2:a,relationTitle:Yt.sanitizeText(r,pt())})}var lB,X0t,j0t,K0t,W0t,Y0t,CYt,SYt,G6,cB,Z0t,V6,i1,J0t,U6,Hs,Zx,q0t,AYt,_Yt,z6,LYt,DYt,$6,uB,RYt,kf,tpt,$0,ept,NYt,MYt,rpt,oB,BYt,FYt,npt,zYt,hB,$Yt,GYt,VYt,UYt,HYt,WYt,el,H6=R(()=>{"use strict";ce();_r();hr();Ue();Ci();U0t();iB();P6();lB="[*]",X0t="start",j0t=lB,K0t="end",W0t="color",Y0t="fill",CYt="bgFill",SYt=",";o(Q0t,"newClassesList");G6=[],cB=[],Z0t=S0t,V6=[],i1=Q0t(),J0t=o(()=>({relations:[],states:new Map,documents:{}}),"newDoc"),U6={root:J0t()},Hs=U6.root,Zx=0,q0t=0,AYt={LINE:0,DOTTED_LINE:1},_Yt={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},z6=o(e=>JSON.parse(JSON.stringify(e)),"clone"),LYt=o(e=>{V.info("Setting root doc",e),V6=e},"setRootDoc"),DYt=o(()=>V6,"getRootDoc"),$6=o((e,t,r)=>{if(t.stmt===Qx)$6(e,t.state1,!0),$6(e,t.state2,!1);else if(t.stmt===e1&&(t.id==="[*]"?(t.id=r?e.id+"_start":e.id+"_end",t.start=r):t.id=t.id.trim()),t.doc){let n=[],i=[],a;for(a=0;a0&&i.length>0){let s={stmt:e1,id:z9(),type:"divider",doc:z6(i)};n.push(z6(s)),t.doc=n}t.doc.forEach(s=>$6(t,s,!0))}},"docTranslator"),uB=o(()=>($6({id:"root"},{id:"root",doc:V6},!0),{id:"root",doc:V6}),"getRootDocV2"),RYt=o(e=>{let t;e.doc?t=e.doc:t=e,V.info(t),tpt(!0),V.info("Extract initial document:",t),t.forEach(a=>{switch(V.warn("Statement",a.stmt),a.stmt){case e1:kf(a.id.trim(),a.type,a.doc,a.description,a.note,a.classes,a.styles,a.textStyles);break;case Qx:rpt(a.state1,a.state2,a.description);break;case A0t:npt(a.id.trim(),a.classes);break;case _0t:{let s=a.id.trim().split(","),l=a.styleClass.split(",");s.forEach(u=>{let h=$0(u);if(h===void 0){let f=u.trim();kf(f),h=$0(f)}h.styles=l.map(f=>f.replace(/;/g,"")?.trim())})}break;case L0t:hB(a.id.trim(),a.styleClass);break}});let r=ept(),i=pt().look;V0t(),n1(void 0,uB(),r,G6,cB,!0,i,i1),G6.forEach(a=>{if(Array.isArray(a.label)){if(a.description=a.label.slice(1),a.isGroup&&a.description.length>0)throw new Error("Group nodes can only have label. Remove the additional description for node ["+a.id+"]");a.label=a.label[0]}})},"extract"),kf=o(function(e,t=z0,r=null,n=null,i=null,a=null,s=null,l=null){let u=e?.trim();if(Hs.states.has(u)?(Hs.states.get(u).doc||(Hs.states.get(u).doc=r),Hs.states.get(u).type||(Hs.states.get(u).type=t)):(V.info("Adding state ",u,n),Hs.states.set(u,{id:u,descriptions:[],type:t,doc:r,note:i,classes:[],styles:[],textStyles:[]})),n&&(V.info("Setting state description",u,n),typeof n=="string"&&oB(u,n.trim()),typeof n=="object"&&n.forEach(h=>oB(u,h.trim()))),i){let h=Hs.states.get(u);h.note=i,h.note.text=Yt.sanitizeText(h.note.text,pt())}a&&(V.info("Setting state classes",u,a),(typeof a=="string"?[a]:a).forEach(f=>hB(u,f.trim()))),s&&(V.info("Setting state styles",u,s),(typeof s=="string"?[s]:s).forEach(f=>$Yt(u,f.trim()))),l&&(V.info("Setting state styles",u,s),(typeof l=="string"?[l]:l).forEach(f=>GYt(u,f.trim())))},"addState"),tpt=o(function(e){G6=[],cB=[],U6={root:J0t()},Hs=U6.root,Zx=0,i1=Q0t(),e||Ar()},"clear"),$0=o(function(e){return Hs.states.get(e)},"getState"),ept=o(function(){return Hs.states},"getStates"),NYt=o(function(){V.info("Documents = ",U6)},"logDocuments"),MYt=o(function(){return Hs.relations},"getRelations");o(aB,"startIdIfNeeded");o(sB,"startTypeIfNeeded");o(IYt,"endIdIfNeeded");o(OYt,"endTypeIfNeeded");o(PYt,"addRelationObjs");rpt=o(function(e,t,r){if(typeof e=="object")PYt(e,t,r);else{let n=aB(e.trim()),i=sB(e),a=IYt(t.trim()),s=OYt(t);kf(n,i),kf(a,s),Hs.relations.push({id1:n,id2:a,title:Yt.sanitizeText(r,pt())})}},"addRelation"),oB=o(function(e,t){let r=Hs.states.get(e),n=t.startsWith(":")?t.replace(":","").trim():t;r.descriptions.push(Yt.sanitizeText(n,pt()))},"addDescription"),BYt=o(function(e){return e.substring(0,1)===":"?e.substr(2).trim():e.trim()},"cleanupLabel"),FYt=o(()=>(q0t++,"divider-id-"+q0t),"getDividerId"),npt=o(function(e,t=""){i1.has(e)||i1.set(e,{id:e,styles:[],textStyles:[]});let r=i1.get(e);t?.split(SYt).forEach(n=>{let i=n.replace(/([^;]*);/,"$1").trim();if(RegExp(W0t).exec(n)){let s=i.replace(Y0t,CYt).replace(W0t,Y0t);r.textStyles.push(s)}r.styles.push(i)})},"addStyleClass"),zYt=o(function(){return i1},"getClasses"),hB=o(function(e,t){e.split(",").forEach(function(r){let n=$0(r);if(n===void 0){let i=r.trim();kf(i),n=$0(i)}n.classes.push(t)})},"setCssClass"),$Yt=o(function(e,t){let r=$0(e);r!==void 0&&r.styles.push(t)},"setStyle"),GYt=o(function(e,t){let r=$0(e);r!==void 0&&r.textStyles.push(t)},"setTextStyle"),VYt=o(()=>Z0t,"getDirection"),UYt=o(e=>{Z0t=e},"setDirection"),HYt=o(e=>e&&e[0]===":"?e.substr(1).trim():e.trim(),"trimColon"),WYt=o(()=>{let e=pt();return{nodes:G6,edges:cB,other:{},config:e,direction:nB(uB())}},"getData"),el={getConfig:o(()=>pt().state,"getConfig"),getData:WYt,addState:kf,clear:tpt,getState:$0,getStates:ept,getRelations:MYt,getClasses:zYt,getDirection:VYt,addRelation:rpt,getDividerId:FYt,setDirection:UYt,cleanupLabel:BYt,lineType:AYt,relationType:_Yt,logDocuments:NYt,getRootDoc:DYt,setRootDoc:LYt,getRootDocV2:uB,extract:RYt,trimColon:HYt,getAccTitle:Br,setAccTitle:Mr,getAccDescription:zr,setAccDescription:Fr,addStyleClass:npt,setCssClass:hB,addDescription:oB,setDiagramTitle:cn,getDiagramTitle:Jr}});var YYt,W6,fB=R(()=>{"use strict";YYt=o(e=>` defs #statediagram-barbEnd { - fill: ${i.transitionColor}; - stroke: ${i.transitionColor}; + fill: ${e.transitionColor}; + stroke: ${e.transitionColor}; } g.stateGroup text { - fill: ${i.nodeBorder}; + fill: ${e.nodeBorder}; stroke: none; font-size: 10px; } g.stateGroup text { - fill: ${i.textColor}; + fill: ${e.textColor}; stroke: none; font-size: 10px; } g.stateGroup .state-title { font-weight: bolder; - fill: ${i.stateLabelColor}; + fill: ${e.stateLabelColor}; } g.stateGroup rect { - fill: ${i.mainBkg}; - stroke: ${i.nodeBorder}; + fill: ${e.mainBkg}; + stroke: ${e.nodeBorder}; } g.stateGroup line { - stroke: ${i.lineColor}; + stroke: ${e.lineColor}; stroke-width: 1; } .transition { - stroke: ${i.transitionColor}; + stroke: ${e.transitionColor}; stroke-width: 1; fill: none; } .stateGroup .composit { - fill: ${i.background}; + fill: ${e.background}; border-bottom: 1px } @@ -1028,11 +1528,11 @@ g.stateGroup line { } .state-note { - stroke: ${i.noteBorderColor}; - fill: ${i.noteBkgColor}; + stroke: ${e.noteBorderColor}; + fill: ${e.noteBkgColor}; text { - fill: ${i.noteTextColor}; + fill: ${e.noteTextColor}; stroke: none; font-size: 10px; } @@ -1041,70 +1541,83 @@ g.stateGroup line { .stateLabel .box { stroke: none; stroke-width: 0; - fill: ${i.mainBkg}; + fill: ${e.mainBkg}; opacity: 0.5; } .edgeLabel .label rect { - fill: ${i.labelBackgroundColor}; + fill: ${e.labelBackgroundColor}; opacity: 0.5; } +.edgeLabel { + background-color: ${e.edgeLabelBackground}; + p { + background-color: ${e.edgeLabelBackground}; + } + rect { + opacity: 0.5; + background-color: ${e.edgeLabelBackground}; + fill: ${e.edgeLabelBackground}; + } + text-align: center; +} .edgeLabel .label text { - fill: ${i.transitionLabelColor||i.tertiaryTextColor}; + fill: ${e.transitionLabelColor||e.tertiaryTextColor}; } .label div .edgeLabel { - color: ${i.transitionLabelColor||i.tertiaryTextColor}; + color: ${e.transitionLabelColor||e.tertiaryTextColor}; } .stateLabel text { - fill: ${i.stateLabelColor}; + fill: ${e.stateLabelColor}; font-size: 10px; font-weight: bold; } .node circle.state-start { - fill: ${i.specialStateColor}; - stroke: ${i.specialStateColor}; + fill: ${e.specialStateColor}; + stroke: ${e.specialStateColor}; } .node .fork-join { - fill: ${i.specialStateColor}; - stroke: ${i.specialStateColor}; + fill: ${e.specialStateColor}; + stroke: ${e.specialStateColor}; } .node circle.state-end { - fill: ${i.innerEndBackground}; - stroke: ${i.background}; + fill: ${e.innerEndBackground}; + stroke: ${e.background}; stroke-width: 1.5 } .end-state-inner { - fill: ${i.compositeBackground||i.background}; - // stroke: ${i.background}; + fill: ${e.compositeBackground||e.background}; + // stroke: ${e.background}; stroke-width: 1.5 } .node rect { - fill: ${i.stateBkg||i.mainBkg}; - stroke: ${i.stateBorder||i.nodeBorder}; + fill: ${e.stateBkg||e.mainBkg}; + stroke: ${e.stateBorder||e.nodeBorder}; stroke-width: 1px; } .node polygon { - fill: ${i.mainBkg}; - stroke: ${i.stateBorder||i.nodeBorder};; + fill: ${e.mainBkg}; + stroke: ${e.stateBorder||e.nodeBorder};; stroke-width: 1px; } #statediagram-barbEnd { - fill: ${i.lineColor}; + fill: ${e.lineColor}; } .statediagram-cluster rect { - fill: ${i.compositeTitleBackground}; - stroke: ${i.stateBorder||i.nodeBorder}; + fill: ${e.compositeTitleBackground}; + stroke: ${e.stateBorder||e.nodeBorder}; stroke-width: 1px; } .cluster-label, .nodeLabel { - color: ${i.stateLabelColor}; + color: ${e.stateLabelColor}; + // line-height: 1; } .statediagram-cluster rect.outer { @@ -1112,7 +1625,7 @@ g.stateGroup line { ry: 5px; } .statediagram-state .divider { - stroke: ${i.stateBorder||i.nodeBorder}; + stroke: ${e.stateBorder||e.nodeBorder}; } .statediagram-state .title-state { @@ -1120,10 +1633,10 @@ g.stateGroup line { ry: 5px; } .statediagram-cluster.statediagram-cluster .inner { - fill: ${i.compositeBackground||i.background}; + fill: ${e.compositeBackground||e.background}; } .statediagram-cluster.statediagram-cluster-alt .inner { - fill: ${i.altBackground?i.altBackground:"#efefef"}; + fill: ${e.altBackground?e.altBackground:"#efefef"}; } .statediagram-cluster .inner { @@ -1137,7 +1650,7 @@ g.stateGroup line { } .statediagram-state rect.divider { stroke-dasharray: 10,10; - fill: ${i.altBackground?i.altBackground:"#efefef"}; + fill: ${e.altBackground?e.altBackground:"#efefef"}; } .note-edge { @@ -1145,73 +1658,73 @@ g.stateGroup line { } .statediagram-note rect { - fill: ${i.noteBkgColor}; - stroke: ${i.noteBorderColor}; + fill: ${e.noteBkgColor}; + stroke: ${e.noteBorderColor}; stroke-width: 1px; rx: 0; ry: 0; } .statediagram-note rect { - fill: ${i.noteBkgColor}; - stroke: ${i.noteBorderColor}; + fill: ${e.noteBkgColor}; + stroke: ${e.noteBorderColor}; stroke-width: 1px; rx: 0; ry: 0; } .statediagram-note text { - fill: ${i.noteTextColor}; + fill: ${e.noteTextColor}; } .statediagram-note .nodeLabel { - color: ${i.noteTextColor}; + color: ${e.noteTextColor}; } .statediagram .edgeLabel { - color: red; // ${i.noteTextColor}; + color: red; // ${e.noteTextColor}; } #dependencyStart, #dependencyEnd { - fill: ${i.lineColor}; - stroke: ${i.lineColor}; + fill: ${e.lineColor}; + stroke: ${e.lineColor}; stroke-width: 1; } .statediagramTitleText { text-anchor: middle; font-size: 18px; - fill: ${i.textColor}; -} -`,bgt={},sVe=(i,a)=>{bgt[i]=a},aVe=i=>bgt[i],xRt=()=>Object.keys(bgt),oVe={get:aVe,set:sVe,keys:xRt,size:()=>xRt().length},cVe=i=>i.append("circle").attr("class","start-state").attr("r",Oe().state.sizeUnit).attr("cx",Oe().state.padding+Oe().state.sizeUnit).attr("cy",Oe().state.padding+Oe().state.sizeUnit),uVe=i=>i.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",Oe().state.textHeight).attr("class","divider").attr("x2",Oe().state.textHeight*2).attr("y1",0).attr("y2",0),lVe=(i,a)=>{const f=i.append("text").attr("x",2*Oe().state.padding).attr("y",Oe().state.textHeight+2*Oe().state.padding).attr("font-size",Oe().state.fontSize).attr("class","state-title").text(a.id),p=f.node().getBBox();return i.insert("rect",":first-child").attr("x",Oe().state.padding).attr("y",Oe().state.padding).attr("width",p.width+2*Oe().state.padding).attr("height",p.height+2*Oe().state.padding).attr("rx",Oe().state.radius),f},hVe=(i,a)=>{const f=function(j,R,H){const Y=j.append("tspan").attr("x",2*Oe().state.padding).text(R);H||Y.attr("dy",Oe().state.textHeight)},v=i.append("text").attr("x",2*Oe().state.padding).attr("y",Oe().state.textHeight+1.3*Oe().state.padding).attr("font-size",Oe().state.fontSize).attr("class","state-title").text(a.descriptions[0]).node().getBBox(),m=v.height,b=i.append("text").attr("x",Oe().state.padding).attr("y",m+Oe().state.padding*.4+Oe().state.dividerMargin+Oe().state.textHeight).attr("class","state-description");let E=!0,C=!0;a.descriptions.forEach(function(j){E||(f(b,j,C),C=!1),E=!1});const D=i.append("line").attr("x1",Oe().state.padding).attr("y1",Oe().state.padding+m+Oe().state.dividerMargin/2).attr("y2",Oe().state.padding+m+Oe().state.dividerMargin/2).attr("class","descr-divider"),P=b.node().getBBox(),B=Math.max(P.width,v.width);return D.attr("x2",B+3*Oe().state.padding),i.insert("rect",":first-child").attr("x",Oe().state.padding).attr("y",Oe().state.padding).attr("width",B+2*Oe().state.padding).attr("height",P.height+m+2*Oe().state.padding).attr("rx",Oe().state.radius),i},fVe=(i,a,f)=>{const p=Oe().state.padding,v=2*Oe().state.padding,m=i.node().getBBox(),b=m.width,E=m.x,C=i.append("text").attr("x",0).attr("y",Oe().state.titleShift).attr("font-size",Oe().state.fontSize).attr("class","state-title").text(a.id),P=C.node().getBBox().width+v;let B=Math.max(P,b);B===b&&(B=B+v);let j;const R=i.node().getBBox();a.doc,j=E-p,P>b&&(j=(b-B)/2+p),Math.abs(E-R.x)b&&(j=E-(P-b)/2);const H=1-Oe().state.textHeight;return i.insert("rect",":first-child").attr("x",j).attr("y",H).attr("class",f?"alt-composit":"composit").attr("width",B).attr("height",R.height+Oe().state.textHeight+Oe().state.titleShift+1).attr("rx","0"),C.attr("x",j+p),P<=b&&C.attr("x",E+(B-v)/2-P/2+p),i.insert("rect",":first-child").attr("x",j).attr("y",Oe().state.titleShift-Oe().state.textHeight-Oe().state.padding).attr("width",B).attr("height",Oe().state.textHeight*3).attr("rx",Oe().state.radius),i.insert("rect",":first-child").attr("x",j).attr("y",Oe().state.titleShift-Oe().state.textHeight-Oe().state.padding).attr("width",B).attr("height",R.height+3+2*Oe().state.textHeight).attr("rx",Oe().state.radius),i},dVe=i=>(i.append("circle").attr("class","end-state-outer").attr("r",Oe().state.sizeUnit+Oe().state.miniPadding).attr("cx",Oe().state.padding+Oe().state.sizeUnit+Oe().state.miniPadding).attr("cy",Oe().state.padding+Oe().state.sizeUnit+Oe().state.miniPadding),i.append("circle").attr("class","end-state-inner").attr("r",Oe().state.sizeUnit).attr("cx",Oe().state.padding+Oe().state.sizeUnit+2).attr("cy",Oe().state.padding+Oe().state.sizeUnit+2)),gVe=(i,a)=>{let f=Oe().state.forkWidth,p=Oe().state.forkHeight;if(a.parentId){let v=f;f=p,p=v}return i.append("rect").style("stroke","black").style("fill","black").attr("width",f).attr("height",p).attr("x",Oe().state.padding).attr("y",Oe().state.padding)},pVe=(i,a,f,p)=>{let v=0;const m=p.append("text");m.style("text-anchor","start"),m.attr("class","noteText");let b=i.replace(/\r\n/g,"
    ");b=b.replace(/\n/g,"
    ");const E=b.split(yi.lineBreakRegex);let C=1.25*Oe().state.noteMargin;for(const D of E){const P=D.trim();if(P.length>0){const B=m.append("tspan");if(B.text(P),C===0){const j=B.node().getBBox();C+=j.height}v+=C,B.attr("x",a+Oe().state.noteMargin),B.attr("y",f+v+1.25*Oe().state.noteMargin)}}return{textWidth:m.node().getBBox().width,textHeight:v}},bVe=(i,a)=>{a.attr("class","state-note");const f=a.append("rect").attr("x",0).attr("y",Oe().state.padding),p=a.append("g"),{textWidth:v,textHeight:m}=pVe(i,0,0,p);return f.attr("height",m+2*Oe().state.noteMargin),f.attr("width",v+Oe().state.noteMargin*2),f},kRt=function(i,a){const f=a.id,p={id:f,label:a.id,width:0,height:0},v=i.append("g").attr("id",f).attr("class","stateGroup");a.type==="start"&&cVe(v),a.type==="end"&&dVe(v),(a.type==="fork"||a.type==="join")&&gVe(v,a),a.type==="note"&&bVe(a.note.text,v),a.type==="divider"&&uVe(v),a.type==="default"&&a.descriptions.length===0&&lVe(v,a),a.type==="default"&&a.descriptions.length>0&&hVe(v,a);const m=v.node().getBBox();return p.width=m.width+2*Oe().state.padding,p.height=m.height+2*Oe().state.padding,oVe.set(f,p),p};let ERt=0;const vVe=function(i,a,f){const p=function(C){switch(C){case N5.relationType.AGGREGATION:return"aggregation";case N5.relationType.EXTENSION:return"extension";case N5.relationType.COMPOSITION:return"composition";case N5.relationType.DEPENDENCY:return"dependency"}};a.points=a.points.filter(C=>!Number.isNaN(C.y));const v=a.points,m=Y9().x(function(C){return C.x}).y(function(C){return C.y}).curve(CA),b=i.append("path").attr("d",m(v)).attr("id","edge"+ERt).attr("class","transition");let E="";if(Oe().state.arrowMarkerAbsolute&&(E=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,E=E.replace(/\(/g,"\\("),E=E.replace(/\)/g,"\\)")),b.attr("marker-end","url("+E+"#"+p(N5.relationType.DEPENDENCY)+"End)"),f.title!==void 0){const C=i.append("g").attr("class","stateLabel"),{x:D,y:P}=lo.calcLabelPosition(a.points),B=yi.getRows(f.title);let j=0;const R=[];let H=0,Y=0;for(let st=0;st<=B.length;st++){const pt=C.append("text").attr("text-anchor","middle").text(B[st]).attr("x",D).attr("y",P+j),Tt=pt.node().getBBox();H=Math.max(H,Tt.width),Y=Math.min(Y,Tt.x),zt.info(Tt.x,D,P+j),j===0&&(j=pt.node().getBBox().height,zt.info("Title height",j,P)),R.push(pt)}let it=j*B.length;if(B.length>1){const st=(B.length-1)*j*.5;R.forEach((pt,Tt)=>pt.attr("y",P+Tt*j-st)),it=j*B.length}const nt=C.node().getBBox();C.insert("rect",":first-child").attr("class","box").attr("x",D-H/2-Oe().state.padding/2).attr("y",P-it/2-Oe().state.padding/2-3.5).attr("width",H+Oe().state.padding).attr("height",it+Oe().state.padding),zt.info(nt)}ERt++};let R2;const vgt={},wVe=function(){},mVe=function(i){i.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},yVe=function(i,a,f,p){R2=Oe().state;const v=Oe().securityLevel;let m;v==="sandbox"&&(m=Mr("#i"+a));const b=Mr(v==="sandbox"?m.nodes()[0].contentDocument.body:"body"),E=v==="sandbox"?m.nodes()[0].contentDocument:document;zt.debug("Rendering diagram "+i);const C=b.select(`[id='${a}']`);mVe(C),new jf({multigraph:!0,compound:!0,rankdir:"RL"}).setDefaultEdgeLabel(function(){return{}});const P=p.db.getRootDoc();TRt(P,C,void 0,!1,b,E,p);const B=R2.padding,j=C.node().getBBox(),R=j.width+B*2,H=j.height+B*2,Y=R*1.75;Wb(C,H,Y,R2.useMaxWidth),C.attr("viewBox",`${j.x-R2.padding} ${j.y-R2.padding} `+R+" "+H)},xVe=i=>i?i.length*R2.fontSizeFactor:1,TRt=(i,a,f,p,v,m,b)=>{const E=new jf({compound:!0,multigraph:!0});let C,D=!0;for(C=0;C{const Tt=pt.parentElement;let kt=0,yt=0;Tt&&(Tt.parentElement&&(kt=Tt.parentElement.getBBox().width),yt=parseInt(Tt.getAttribute("data-x-shift"),10),Number.isNaN(yt)&&(yt=0)),pt.setAttribute("x1",0-yt+8),pt.setAttribute("x2",kt-yt-8)})):zt.debug("No Node "+nt+": "+JSON.stringify(E.node(nt)))});let Y=H.getBBox();E.edges().forEach(function(nt){nt!==void 0&&E.edge(nt)!==void 0&&(zt.debug("Edge "+nt.v+" -> "+nt.w+": "+JSON.stringify(E.edge(nt))),vVe(a,E.edge(nt),E.edge(nt).relation))}),Y=H.getBBox();const it={id:f||"root",label:f||"root",width:0,height:0};return it.width=Y.width+2*R2.padding,it.height=Y.height+2*R2.padding,zt.debug("Doc rendered",it,E),it},kVe=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:aRt,db:N5,renderer:{setConf:wVe,draw:yVe},styles:yRt,init:i=>{i.state||(i.state={}),i.state.arrowMarkerAbsolute=i.arrowMarkerAbsolute,N5.clear()}}},Symbol.toStringTag,{value:"Module"})),IK="rect",wgt="rectWithTitle",EVe="start",TVe="end",_Ve="divider",CVe="roundedWithTitle",SVe="note",AVe="noteGroup",fL="statediagram",LVe=`${fL}-state`,_Rt="transition",MVe="note",DVe=`${_Rt} note-edge`,IVe=`${fL}-${MVe}`,OVe=`${fL}-cluster`,NVe=`${fL}-cluster-alt`,CRt="parent",SRt="note",PVe="state",mgt="----",FVe=`${mgt}${SRt}`,ARt=`${mgt}${CRt}`,LRt="fill:none",MRt="fill: #333",DRt="c",IRt="text",ORt="normal";let OK={},dk=0;const BVe=function(i){const a=Object.keys(i);for(const f of a)i[f]},RVe=function(i,a){zt.trace("Extracting classes"),a.db.clear();try{return a.parser.parse(i),a.db.extract(a.db.getRootDocV2()),a.db.getClasses()}catch(f){return f}};function jVe(i){return i==null?"":i.classes?i.classes.join(" "):""}function ygt(i="",a=0,f="",p=mgt){const v=f!==null&&f.length>0?`${p}${f}`:"";return`${PVe}-${i}${v}-${a}`}const NP=(i,a,f,p,v,m)=>{const b=f.id,E=jVe(p[b]);if(b!=="root"){let C=IK;f.start===!0&&(C=EVe),f.start===!1&&(C=TVe),f.type!==MP&&(C=f.type),OK[b]||(OK[b]={id:b,shape:C,description:yi.sanitizeText(b,Oe()),classes:`${E} ${LVe}`});const D=OK[b];f.description&&(Array.isArray(D.description)?(D.shape=wgt,D.description.push(f.description)):D.description.length>0?(D.shape=wgt,D.description===b?D.description=[f.description]:D.description=[D.description,f.description]):(D.shape=IK,D.description=f.description),D.description=yi.sanitizeTextOrArray(D.description,Oe())),D.description.length===1&&D.shape===wgt&&(D.shape=IK),!D.type&&f.doc&&(zt.info("Setting cluster for ",b,xgt(f)),D.type="group",D.dir=xgt(f),D.shape=f.type===oRt?_Ve:CVe,D.classes=D.classes+" "+OVe+" "+(m?NVe:""));const P={labelStyle:"",shape:D.shape,labelText:D.description,classes:D.classes,style:"",id:b,dir:D.dir,domId:ygt(b,dk),type:D.type,padding:15};if(P.centerLabel=!0,f.note){const B={labelStyle:"",shape:SVe,labelText:f.note.text,classes:IVe,style:"",id:b+FVe+"-"+dk,domId:ygt(b,dk,SRt),type:D.type,padding:15},j={labelStyle:"",shape:AVe,labelText:f.note.text,classes:D.classes,style:"",id:b+ARt,domId:ygt(b,dk,CRt),type:"group",padding:0};dk++;const R=b+ARt;i.setNode(R,j),i.setNode(B.id,B),i.setNode(b,P),i.setParent(b,R),i.setParent(B.id,R);let H=b,Y=B.id;f.note.position==="left of"&&(H=B.id,Y=b),i.setEdge(H,Y,{arrowhead:"none",arrowType:"",style:LRt,labelStyle:"",classes:DVe,arrowheadStyle:MRt,labelpos:DRt,labelType:IRt,thickness:ORt})}else i.setNode(b,P)}a&&a.id!=="root"&&(zt.trace("Setting node ",b," to be child of its parent ",a.id),i.setParent(b,a.id)),f.doc&&(zt.trace("Adding nodes children "),$Ve(i,f,f.doc,p,v,!m))},$Ve=(i,a,f,p,v,m)=>{zt.trace("items",f),f.forEach(b=>{switch(b.stmt){case SK:NP(i,a,b,p,v,m);break;case MP:NP(i,a,b,p,v,m);break;case lgt:{NP(i,a,b.state1,p,v,m),NP(i,a,b.state2,p,v,m);const E={id:"edge"+dk,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:LRt,labelStyle:"",label:yi.sanitizeText(b.description,Oe()),arrowheadStyle:MRt,labelpos:DRt,labelType:IRt,thickness:ORt,classes:_Rt};i.setEdge(b.state1.id,b.state2.id,E,dk),dk++}break}})},xgt=(i,a=FHe)=>{let f=a;if(i.doc)for(let p=0;p{i.state||(i.state={}),i.state.arrowMarkerAbsolute=i.arrowMarkerAbsolute,N5.clear()}}},Symbol.toStringTag,{value:"Module"}));var kgt=function(){var i=function(Y,it,nt,st){for(nt=nt||{},st=Y.length;st--;nt[Y[st]]=it);return nt},a=[1,2],f=[1,5],p=[6,9,11,17,18,20,22,23,24,26],v=[1,15],m=[1,16],b=[1,17],E=[1,18],C=[1,19],D=[1,20],P=[1,24],B=[4,6,9,11,17,18,20,22,23,24,26],j={trace:function(){},yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,title:17,acc_title:18,acc_title_value:19,acc_descr:20,acc_descr_value:21,acc_descr_multiline_value:22,section:23,taskName:24,taskData:25,open_directive:26,type_directive:27,arg_directive:28,close_directive:29,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",17:"title",18:"acc_title",19:"acc_title_value",20:"acc_descr",21:"acc_descr_value",22:"acc_descr_multiline_value",23:"section",24:"taskName",25:"taskData",26:"open_directive",27:"type_directive",28:"arg_directive",29:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,2],[10,2],[10,1],[10,1],[10,2],[10,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(it,nt,st,pt,Tt,kt,yt){var ht=kt.length-1;switch(Tt){case 1:return kt[ht-1];case 3:this.$=[];break;case 4:kt[ht-1].push(kt[ht]),this.$=kt[ht-1];break;case 5:case 6:this.$=kt[ht];break;case 7:case 8:this.$=[];break;case 11:pt.setDiagramTitle(kt[ht].substr(6)),this.$=kt[ht].substr(6);break;case 12:this.$=kt[ht].trim(),pt.setAccTitle(this.$);break;case 13:case 14:this.$=kt[ht].trim(),pt.setAccDescription(this.$);break;case 15:pt.addSection(kt[ht].substr(8)),this.$=kt[ht].substr(8);break;case 16:pt.addTask(kt[ht-1],kt[ht]),this.$="task";break;case 18:pt.parseDirective("%%{","open_directive");break;case 19:pt.parseDirective(kt[ht],"type_directive");break;case 20:kt[ht]=kt[ht].trim().replace(/'/g,'"'),pt.parseDirective(kt[ht],"arg_directive");break;case 21:pt.parseDirective("}%%","close_directive","journey");break}},table:[{3:1,4:a,7:3,12:4,26:f},{1:[3]},i(p,[2,3],{5:6}),{3:7,4:a,7:3,12:4,26:f},{13:8,27:[1,9]},{27:[2,18]},{6:[1,10],7:21,8:11,9:[1,12],10:13,11:[1,14],12:4,17:v,18:m,20:b,22:E,23:C,24:D,26:f},{1:[2,2]},{14:22,15:[1,23],29:P},i([15,29],[2,19]),i(p,[2,8],{1:[2,1]}),i(p,[2,4]),{7:21,10:25,12:4,17:v,18:m,20:b,22:E,23:C,24:D,26:f},i(p,[2,6]),i(p,[2,7]),i(p,[2,11]),{19:[1,26]},{21:[1,27]},i(p,[2,14]),i(p,[2,15]),{25:[1,28]},i(p,[2,17]),{11:[1,29]},{16:30,28:[1,31]},{11:[2,21]},i(p,[2,5]),i(p,[2,12]),i(p,[2,13]),i(p,[2,16]),i(B,[2,9]),{14:32,29:P},{29:[2,20]},{11:[1,33]},i(B,[2,10])],defaultActions:{5:[2,18],7:[2,2],24:[2,21],31:[2,20]},parseError:function(it,nt){if(nt.recoverable)this.trace(it);else{var st=new Error(it);throw st.hash=nt,st}},parse:function(it){var nt=this,st=[0],pt=[],Tt=[null],kt=[],yt=this.table,ht="",mt=0,rt=0,wt=2,gt=1,lt=kt.slice.call(arguments,1),_t=Object.create(this.lexer),X={yy:{}};for(var Rt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Rt)&&(X.yy[Rt]=this.yy[Rt]);_t.setInput(it,X.yy),X.yy.lexer=_t,X.yy.parser=this,typeof _t.yylloc>"u"&&(_t.yylloc={});var ft=_t.yylloc;kt.push(ft);var de=_t.options&&_t.options.ranges;typeof X.yy.parseError=="function"?this.parseError=X.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function J(){var ne;return ne=pt.pop()||_t.lex()||gt,typeof ne!="number"&&(ne instanceof Array&&(pt=ne,ne=pt.pop()),ne=nt.symbols_[ne]||ne),ne}for(var ae,Wt,It,Nt,me={},Ue,_n,_e,rr;;){if(Wt=st[st.length-1],this.defaultActions[Wt]?It=this.defaultActions[Wt]:((ae===null||typeof ae>"u")&&(ae=J()),It=yt[Wt]&&yt[Wt][ae]),typeof It>"u"||!It.length||!It[0]){var Te="";rr=[];for(Ue in yt[Wt])this.terminals_[Ue]&&Ue>wt&&rr.push("'"+this.terminals_[Ue]+"'");_t.showPosition?Te="Parse error on line "+(mt+1)+`: -`+_t.showPosition()+` -Expecting `+rr.join(", ")+", got '"+(this.terminals_[ae]||ae)+"'":Te="Parse error on line "+(mt+1)+": Unexpected "+(ae==gt?"end of input":"'"+(this.terminals_[ae]||ae)+"'"),this.parseError(Te,{text:_t.match,token:this.terminals_[ae]||ae,line:_t.yylineno,loc:ft,expected:rr})}if(It[0]instanceof Array&&It.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Wt+", token: "+ae);switch(It[0]){case 1:st.push(ae),Tt.push(_t.yytext),kt.push(_t.yylloc),st.push(It[1]),ae=null,rt=_t.yyleng,ht=_t.yytext,mt=_t.yylineno,ft=_t.yylloc;break;case 2:if(_n=this.productions_[It[1]][1],me.$=Tt[Tt.length-_n],me._$={first_line:kt[kt.length-(_n||1)].first_line,last_line:kt[kt.length-1].last_line,first_column:kt[kt.length-(_n||1)].first_column,last_column:kt[kt.length-1].last_column},de&&(me._$.range=[kt[kt.length-(_n||1)].range[0],kt[kt.length-1].range[1]]),Nt=this.performAction.apply(me,[ht,rt,mt,X.yy,It[1],Tt,kt].concat(lt)),typeof Nt<"u")return Nt;_n&&(st=st.slice(0,-1*_n*2),Tt=Tt.slice(0,-1*_n),kt=kt.slice(0,-1*_n)),st.push(this.productions_[It[1]][0]),Tt.push(me.$),kt.push(me._$),_e=yt[st[st.length-2]][st[st.length-1]],st.push(_e);break;case 3:return!0}}return!0}},R=function(){var Y={EOF:1,parseError:function(nt,st){if(this.yy.parser)this.yy.parser.parseError(nt,st);else throw new Error(nt)},setInput:function(it,nt){return this.yy=nt||this.yy||{},this._input=it,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var it=this._input[0];this.yytext+=it,this.yyleng++,this.offset++,this.match+=it,this.matched+=it;var nt=it.match(/(?:\r\n?|\n).*/g);return nt?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),it},unput:function(it){var nt=it.length,st=it.split(/(?:\r\n?|\n)/g);this._input=it+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-nt),this.offset-=nt;var pt=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),st.length-1&&(this.yylineno-=st.length-1);var Tt=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:st?(st.length===pt.length?this.yylloc.first_column:0)+pt[pt.length-st.length].length-st[0].length:this.yylloc.first_column-nt},this.options.ranges&&(this.yylloc.range=[Tt[0],Tt[0]+this.yyleng-nt]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). -`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(it){this.unput(this.match.slice(it))},pastInput:function(){var it=this.matched.substr(0,this.matched.length-this.match.length);return(it.length>20?"...":"")+it.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var it=this.match;return it.length<20&&(it+=this._input.substr(0,20-it.length)),(it.substr(0,20)+(it.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var it=this.pastInput(),nt=new Array(it.length+1).join("-");return it+this.upcomingInput()+` -`+nt+"^"},test_match:function(it,nt){var st,pt,Tt;if(this.options.backtrack_lexer&&(Tt={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(Tt.yylloc.range=this.yylloc.range.slice(0))),pt=it[0].match(/(?:\r\n?|\n).*/g),pt&&(this.yylineno+=pt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:pt?pt[pt.length-1].length-pt[pt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+it[0].length},this.yytext+=it[0],this.match+=it[0],this.matches=it,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(it[0].length),this.matched+=it[0],st=this.performAction.call(this,this.yy,this,nt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),st)return st;if(this._backtrack){for(var kt in Tt)this[kt]=Tt[kt];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var it,nt,st,pt;this._more||(this.yytext="",this.match="");for(var Tt=this._currentRules(),kt=0;ktnt[0].length)){if(nt=st,pt=kt,this.options.backtrack_lexer){if(it=this.test_match(st,Tt[kt]),it!==!1)return it;if(this._backtrack){nt=!1;continue}else return!1}else if(!this.options.flex)break}return nt?(it=this.test_match(nt,Tt[pt]),it!==!1?it:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var nt=this.next();return nt||this.lex()},begin:function(nt){this.conditionStack.push(nt)},popState:function(){var nt=this.conditionStack.length-1;return nt>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(nt){return nt=this.conditionStack.length-1-Math.abs(nt||0),nt>=0?this.conditionStack[nt]:"INITIAL"},pushState:function(nt){this.begin(nt)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(nt,st,pt,Tt){switch(pt){case 0:return this.begin("open_directive"),26;case 1:return this.begin("type_directive"),27;case 2:return this.popState(),this.begin("arg_directive"),15;case 3:return this.popState(),this.popState(),29;case 4:return 28;case 5:break;case 6:break;case 7:return 11;case 8:break;case 9:break;case 10:return 4;case 11:return 17;case 12:return this.begin("acc_title"),18;case 13:return this.popState(),"acc_title_value";case 14:return this.begin("acc_descr"),20;case 15:return this.popState(),"acc_descr_value";case 16:this.begin("acc_descr_multiline");break;case 17:this.popState();break;case 18:return"acc_descr_multiline_value";case 19:return 23;case 20:return 24;case 21:return 25;case 22:return 15;case 23:return 6;case 24:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{open_directive:{rules:[1],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},acc_descr_multiline:{rules:[17,18],inclusive:!1},acc_descr:{rules:[15],inclusive:!1},acc_title:{rules:[13],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,14,16,19,20,21,22,23,24],inclusive:!0}}};return Y}();j.lexer=R;function H(){this.yy={}}return H.prototype=j,j.Parser=H,new H}();kgt.parser=kgt;const qVe=kgt;let dL="";const Egt=[],PP=[],FP=[],HVe=function(i,a,f){d1.parseDirective(this,i,a,f)},VVe=function(){Egt.length=0,PP.length=0,dL="",FP.length=0,cg()},GVe=function(i){dL=i,Egt.push(i)},UVe=function(){return Egt},WVe=function(){let i=NRt();const a=100;let f=0;for(;!i&&f{f.people&&i.push(...f.people)}),[...new Set(i)].sort()},YVe=function(i,a){const f=a.substr(1).split(":");let p=0,v=[];f.length===1?(p=Number(f[0]),v=[]):(p=Number(f[0]),v=f[1].split(","));const m=v.map(E=>E.trim()),b={section:dL,type:dL,people:m,task:i,score:p};FP.push(b)},XVe=function(i){const a={section:dL,type:dL,description:i,task:i,classes:[]};PP.push(a)},NRt=function(){const i=function(f){return FP[f].processed};let a=!0;for(const[f,p]of FP.entries())i(f),a=a&&p.processed;return a},PRt={parseDirective:HVe,getConfig:()=>Oe().journey,clear:VVe,setDiagramTitle:Kb,getDiagramTitle:O2,setAccTitle:ug,getAccTitle:op,setAccDescription:cp,getAccDescription:up,addSection:GVe,getSections:UVe,getTasks:WVe,addTask:YVe,addTaskOrg:XVe,getActors:function(){return KVe()}},QVe=i=>`.label { + fill: ${e.textColor}; +} +`,"getStyles"),W6=YYt});var dB,qYt,XYt,ipt,jYt,apt,spt=R(()=>{"use strict";dB={},qYt=o((e,t)=>{dB[e]=t},"set"),XYt=o(e=>dB[e],"get"),ipt=o(()=>Object.keys(dB),"keys"),jYt=o(()=>ipt().length,"size"),apt={get:XYt,set:qYt,keys:ipt,size:jYt}});var KYt,QYt,ZYt,JYt,lpt,tqt,eqt,rqt,nqt,pB,opt,cpt,upt=R(()=>{"use strict";ur();spt();H6();_r();hr();Ue();ce();KYt=o(e=>e.append("circle").attr("class","start-state").attr("r",pt().state.sizeUnit).attr("cx",pt().state.padding+pt().state.sizeUnit).attr("cy",pt().state.padding+pt().state.sizeUnit),"drawStartState"),QYt=o(e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",pt().state.textHeight).attr("class","divider").attr("x2",pt().state.textHeight*2).attr("y1",0).attr("y2",0),"drawDivider"),ZYt=o((e,t)=>{let r=e.append("text").attr("x",2*pt().state.padding).attr("y",pt().state.textHeight+2*pt().state.padding).attr("font-size",pt().state.fontSize).attr("class","state-title").text(t.id),n=r.node().getBBox();return e.insert("rect",":first-child").attr("x",pt().state.padding).attr("y",pt().state.padding).attr("width",n.width+2*pt().state.padding).attr("height",n.height+2*pt().state.padding).attr("rx",pt().state.radius),r},"drawSimpleState"),JYt=o((e,t)=>{let r=o(function(p,m,g){let y=p.append("tspan").attr("x",2*pt().state.padding).text(m);g||y.attr("dy",pt().state.textHeight)},"addTspan"),i=e.append("text").attr("x",2*pt().state.padding).attr("y",pt().state.textHeight+1.3*pt().state.padding).attr("font-size",pt().state.fontSize).attr("class","state-title").text(t.descriptions[0]).node().getBBox(),a=i.height,s=e.append("text").attr("x",pt().state.padding).attr("y",a+pt().state.padding*.4+pt().state.dividerMargin+pt().state.textHeight).attr("class","state-description"),l=!0,u=!0;t.descriptions.forEach(function(p){l||(r(s,p,u),u=!1),l=!1});let h=e.append("line").attr("x1",pt().state.padding).attr("y1",pt().state.padding+a+pt().state.dividerMargin/2).attr("y2",pt().state.padding+a+pt().state.dividerMargin/2).attr("class","descr-divider"),f=s.node().getBBox(),d=Math.max(f.width,i.width);return h.attr("x2",d+3*pt().state.padding),e.insert("rect",":first-child").attr("x",pt().state.padding).attr("y",pt().state.padding).attr("width",d+2*pt().state.padding).attr("height",f.height+a+2*pt().state.padding).attr("rx",pt().state.radius),e},"drawDescrState"),lpt=o((e,t,r)=>{let n=pt().state.padding,i=2*pt().state.padding,a=e.node().getBBox(),s=a.width,l=a.x,u=e.append("text").attr("x",0).attr("y",pt().state.titleShift).attr("font-size",pt().state.fontSize).attr("class","state-title").text(t.id),f=u.node().getBBox().width+i,d=Math.max(f,s);d===s&&(d=d+i);let p,m=e.node().getBBox();t.doc,p=l-n,f>s&&(p=(s-d)/2+n),Math.abs(l-m.x)s&&(p=l-(f-s)/2);let g=1-pt().state.textHeight;return e.insert("rect",":first-child").attr("x",p).attr("y",g).attr("class",r?"alt-composit":"composit").attr("width",d).attr("height",m.height+pt().state.textHeight+pt().state.titleShift+1).attr("rx","0"),u.attr("x",p+n),f<=s&&u.attr("x",l+(d-i)/2-f/2+n),e.insert("rect",":first-child").attr("x",p).attr("y",pt().state.titleShift-pt().state.textHeight-pt().state.padding).attr("width",d).attr("height",pt().state.textHeight*3).attr("rx",pt().state.radius),e.insert("rect",":first-child").attr("x",p).attr("y",pt().state.titleShift-pt().state.textHeight-pt().state.padding).attr("width",d).attr("height",m.height+3+2*pt().state.textHeight).attr("rx",pt().state.radius),e},"addTitleAndBox"),tqt=o(e=>(e.append("circle").attr("class","end-state-outer").attr("r",pt().state.sizeUnit+pt().state.miniPadding).attr("cx",pt().state.padding+pt().state.sizeUnit+pt().state.miniPadding).attr("cy",pt().state.padding+pt().state.sizeUnit+pt().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",pt().state.sizeUnit).attr("cx",pt().state.padding+pt().state.sizeUnit+2).attr("cy",pt().state.padding+pt().state.sizeUnit+2)),"drawEndState"),eqt=o((e,t)=>{let r=pt().state.forkWidth,n=pt().state.forkHeight;if(t.parentId){let i=r;r=n,n=i}return e.append("rect").style("stroke","black").style("fill","black").attr("width",r).attr("height",n).attr("x",pt().state.padding).attr("y",pt().state.padding)},"drawForkJoinState"),rqt=o((e,t,r,n)=>{let i=0,a=n.append("text");a.style("text-anchor","start"),a.attr("class","noteText");let s=e.replace(/\r\n/g,"
    ");s=s.replace(/\n/g,"
    ");let l=s.split(Yt.lineBreakRegex),u=1.25*pt().state.noteMargin;for(let h of l){let f=h.trim();if(f.length>0){let d=a.append("tspan");if(d.text(f),u===0){let p=d.node().getBBox();u+=p.height}i+=u,d.attr("x",t+pt().state.noteMargin),d.attr("y",r+i+1.25*pt().state.noteMargin)}}return{textWidth:a.node().getBBox().width,textHeight:i}},"_drawLongText"),nqt=o((e,t)=>{t.attr("class","state-note");let r=t.append("rect").attr("x",0).attr("y",pt().state.padding),n=t.append("g"),{textWidth:i,textHeight:a}=rqt(e,0,0,n);return r.attr("height",a+2*pt().state.noteMargin),r.attr("width",i+pt().state.noteMargin*2),r},"drawNote"),pB=o(function(e,t){let r=t.id,n={id:r,label:t.id,width:0,height:0},i=e.append("g").attr("id",r).attr("class","stateGroup");t.type==="start"&&KYt(i),t.type==="end"&&tqt(i),(t.type==="fork"||t.type==="join")&&eqt(i,t),t.type==="note"&&nqt(t.note.text,i),t.type==="divider"&&QYt(i),t.type==="default"&&t.descriptions.length===0&&ZYt(i,t),t.type==="default"&&t.descriptions.length>0&&JYt(i,t);let a=i.node().getBBox();return n.width=a.width+2*pt().state.padding,n.height=a.height+2*pt().state.padding,apt.set(r,n),n},"drawState"),opt=0,cpt=o(function(e,t,r){let n=o(function(u){switch(u){case el.relationType.AGGREGATION:return"aggregation";case el.relationType.EXTENSION:return"extension";case el.relationType.COMPOSITION:return"composition";case el.relationType.DEPENDENCY:return"dependency"}},"getRelationType");t.points=t.points.filter(u=>!Number.isNaN(u.y));let i=t.points,a=ma().x(function(u){return u.x}).y(function(u){return u.y}).curve(Ts),s=e.append("path").attr("d",a(i)).attr("id","edge"+opt).attr("class","transition"),l="";if(pt().state.arrowMarkerAbsolute&&(l=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,l=l.replace(/\(/g,"\\("),l=l.replace(/\)/g,"\\)")),s.attr("marker-end","url("+l+"#"+n(el.relationType.DEPENDENCY)+"End)"),r.title!==void 0){let u=e.append("g").attr("class","stateLabel"),{x:h,y:f}=Oe.calcLabelPosition(t.points),d=Yt.getRows(r.title),p=0,m=[],g=0,y=0;for(let b=0;b<=d.length;b++){let w=u.append("text").attr("text-anchor","middle").text(d[b]).attr("x",h).attr("y",f+p),S=w.node().getBBox();g=Math.max(g,S.width),y=Math.min(y,S.x),V.info(S.x,h,f+p),p===0&&(p=w.node().getBBox().height,V.info("Title height",p,f)),m.push(w)}let v=p*d.length;if(d.length>1){let b=(d.length-1)*p*.5;m.forEach((w,S)=>w.attr("y",f+S*p-b)),v=p*d.length}let x=u.node().getBBox();u.insert("rect",":first-child").attr("class","box").attr("x",h-g/2-pt().state.padding/2).attr("y",f-v/2-pt().state.padding/2-3.5).attr("width",g+pt().state.padding).attr("height",v+pt().state.padding),V.info(x)}opt++},"drawEdge")});var bo,mB,iqt,aqt,sqt,oqt,hpt,fpt,dpt=R(()=>{"use strict";ur();Xd();wa();ce();hr();upt();Ue();Jn();mB={},iqt=o(function(){},"setConf"),aqt=o(function(e){e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"insertMarkers"),sqt=o(function(e,t,r,n){bo=pt().state;let i=pt().securityLevel,a;i==="sandbox"&&(a=Gt("#i"+t));let s=i==="sandbox"?Gt(a.nodes()[0].contentDocument.body):Gt("body"),l=i==="sandbox"?a.nodes()[0].contentDocument:document;V.debug("Rendering diagram "+e);let u=s.select(`[id='${t}']`);aqt(u);let h=n.db.getRootDoc();hpt(h,u,void 0,!1,s,l,n);let f=bo.padding,d=u.node().getBBox(),p=d.width+f*2,m=d.height+f*2,g=p*1.75;Pr(u,m,g,bo.useMaxWidth),u.attr("viewBox",`${d.x-bo.padding} ${d.y-bo.padding} `+p+" "+m)},"draw"),oqt=o(e=>e?e.length*bo.fontSizeFactor:1,"getLabelWidth"),hpt=o((e,t,r,n,i,a,s)=>{let l=new yr({compound:!0,multigraph:!0}),u,h=!0;for(u=0;u{let T=S.parentElement,E=0,_=0;T&&(T.parentElement&&(E=T.parentElement.getBBox().width),_=parseInt(T.getAttribute("data-x-shift"),10),Number.isNaN(_)&&(_=0)),S.setAttribute("x1",0-_+8),S.setAttribute("x2",E-_-8)})):V.debug("No Node "+b+": "+JSON.stringify(l.node(b)))});let v=y.getBBox();l.edges().forEach(function(b){b!==void 0&&l.edge(b)!==void 0&&(V.debug("Edge "+b.v+" -> "+b.w+": "+JSON.stringify(l.edge(b))),cpt(t,l.edge(b),l.edge(b).relation))}),v=y.getBBox();let x={id:r||"root",label:r||"root",width:0,height:0};return x.width=v.width+2*bo.padding,x.height=v.height+2*bo.padding,V.debug("Doc rendered",x,l),x},"renderDoc"),fpt={setConf:iqt,draw:sqt}});var ppt={};xr(ppt,{diagram:()=>lqt});var lqt,mpt=R(()=>{"use strict";HP();H6();fB();dpt();lqt={parser:D6,db:el,renderer:fpt,styles:W6,init:o(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute,el.clear()},"init")}});var vpt={};xr(vpt,{diagram:()=>fqt});var fqt,xpt=R(()=>{"use strict";HP();H6();fB();iB();fqt={parser:D6,db:el,renderer:H0t,styles:W6,init:o(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute,el.clear()},"init")}});var gB,Tpt,kpt=R(()=>{"use strict";gB=function(){var e=o(function(d,p,m,g){for(m=m||{},g=d.length;g--;m[d[g]]=p);return m},"o"),t=[6,8,10,11,12,14,16,17,18],r=[1,9],n=[1,10],i=[1,11],a=[1,12],s=[1,13],l=[1,14],u={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:o(function(p,m,g,y,v,x,b){var w=x.length-1;switch(v){case 1:return x[w-1];case 2:this.$=[];break;case 3:x[w-1].push(x[w]),this.$=x[w-1];break;case 4:case 5:this.$=x[w];break;case 6:case 7:this.$=[];break;case 8:y.setDiagramTitle(x[w].substr(6)),this.$=x[w].substr(6);break;case 9:this.$=x[w].trim(),y.setAccTitle(this.$);break;case 10:case 11:this.$=x[w].trim(),y.setAccDescription(this.$);break;case 12:y.addSection(x[w].substr(8)),this.$=x[w].substr(8);break;case 13:y.addTask(x[w-1],x[w]),this.$="task";break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:r,12:n,14:i,16:a,17:s,18:l},e(t,[2,7],{1:[2,1]}),e(t,[2,3]),{9:15,11:r,12:n,14:i,16:a,17:s,18:l},e(t,[2,5]),e(t,[2,6]),e(t,[2,8]),{13:[1,16]},{15:[1,17]},e(t,[2,11]),e(t,[2,12]),{19:[1,18]},e(t,[2,4]),e(t,[2,9]),e(t,[2,10]),e(t,[2,13])],defaultActions:{},parseError:o(function(p,m){if(m.recoverable)this.trace(p);else{var g=new Error(p);throw g.hash=m,g}},"parseError"),parse:o(function(p){var m=this,g=[0],y=[],v=[null],x=[],b=this.table,w="",S=0,T=0,E=0,_=2,A=1,L=x.slice.call(arguments,1),M=Object.create(this.lexer),N={yy:{}};for(var k in this.yy)Object.prototype.hasOwnProperty.call(this.yy,k)&&(N.yy[k]=this.yy[k]);M.setInput(p,N.yy),N.yy.lexer=M,N.yy.parser=this,typeof M.yylloc>"u"&&(M.yylloc={});var I=M.yylloc;x.push(I);var C=M.options&&M.options.ranges;typeof N.yy.parseError=="function"?this.parseError=N.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function O(H){g.length=g.length-2*H,v.length=v.length-H,x.length=x.length-H}o(O,"popStack");function D(){var H;return H=y.pop()||M.lex()||A,typeof H!="number"&&(H instanceof Array&&(y=H,H=y.pop()),H=m.symbols_[H]||H),H}o(D,"lex");for(var P,F,B,G,z,W,Q={},j,at,X,J;;){if(B=g[g.length-1],this.defaultActions[B]?G=this.defaultActions[B]:((P===null||typeof P>"u")&&(P=D()),G=b[B]&&b[B][P]),typeof G>"u"||!G.length||!G[0]){var Z="";J=[];for(j in b[B])this.terminals_[j]&&j>_&&J.push("'"+this.terminals_[j]+"'");M.showPosition?Z="Parse error on line "+(S+1)+`: +`+M.showPosition()+` +Expecting `+J.join(", ")+", got '"+(this.terminals_[P]||P)+"'":Z="Parse error on line "+(S+1)+": Unexpected "+(P==A?"end of input":"'"+(this.terminals_[P]||P)+"'"),this.parseError(Z,{text:M.match,token:this.terminals_[P]||P,line:M.yylineno,loc:I,expected:J})}if(G[0]instanceof Array&&G.length>1)throw new Error("Parse Error: multiple actions possible at state: "+B+", token: "+P);switch(G[0]){case 1:g.push(P),v.push(M.yytext),x.push(M.yylloc),g.push(G[1]),P=null,F?(P=F,F=null):(T=M.yyleng,w=M.yytext,S=M.yylineno,I=M.yylloc,E>0&&E--);break;case 2:if(at=this.productions_[G[1]][1],Q.$=v[v.length-at],Q._$={first_line:x[x.length-(at||1)].first_line,last_line:x[x.length-1].last_line,first_column:x[x.length-(at||1)].first_column,last_column:x[x.length-1].last_column},C&&(Q._$.range=[x[x.length-(at||1)].range[0],x[x.length-1].range[1]]),W=this.performAction.apply(Q,[w,T,S,N.yy,G[1],v,x].concat(L)),typeof W<"u")return W;at&&(g=g.slice(0,-1*at*2),v=v.slice(0,-1*at),x=x.slice(0,-1*at)),g.push(this.productions_[G[1]][0]),v.push(Q.$),x.push(Q._$),X=b[g[g.length-2]][g[g.length-1]],g.push(X);break;case 3:return!0}}return!0},"parse")},h=function(){var d={EOF:1,parseError:o(function(m,g){if(this.yy.parser)this.yy.parser.parseError(m,g);else throw new Error(m)},"parseError"),setInput:o(function(p,m){return this.yy=m||this.yy||{},this._input=p,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var p=this._input[0];this.yytext+=p,this.yyleng++,this.offset++,this.match+=p,this.matched+=p;var m=p.match(/(?:\r\n?|\n).*/g);return m?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),p},"input"),unput:o(function(p){var m=p.length,g=p.split(/(?:\r\n?|\n)/g);this._input=p+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-m),this.offset-=m;var y=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),g.length-1&&(this.yylineno-=g.length-1);var v=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:g?(g.length===y.length?this.yylloc.first_column:0)+y[y.length-g.length].length-g[0].length:this.yylloc.first_column-m},this.options.ranges&&(this.yylloc.range=[v[0],v[0]+this.yyleng-m]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(p){this.unput(this.match.slice(p))},"less"),pastInput:o(function(){var p=this.matched.substr(0,this.matched.length-this.match.length);return(p.length>20?"...":"")+p.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var p=this.match;return p.length<20&&(p+=this._input.substr(0,20-p.length)),(p.substr(0,20)+(p.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var p=this.pastInput(),m=new Array(p.length+1).join("-");return p+this.upcomingInput()+` +`+m+"^"},"showPosition"),test_match:o(function(p,m){var g,y,v;if(this.options.backtrack_lexer&&(v={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(v.yylloc.range=this.yylloc.range.slice(0))),y=p[0].match(/(?:\r\n?|\n).*/g),y&&(this.yylineno+=y.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:y?y[y.length-1].length-y[y.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+p[0].length},this.yytext+=p[0],this.match+=p[0],this.matches=p,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(p[0].length),this.matched+=p[0],g=this.performAction.call(this,this.yy,this,m,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),g)return g;if(this._backtrack){for(var x in v)this[x]=v[x];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var p,m,g,y;this._more||(this.yytext="",this.match="");for(var v=this._currentRules(),x=0;xm[0].length)){if(m=g,y=x,this.options.backtrack_lexer){if(p=this.test_match(g,v[x]),p!==!1)return p;if(this._backtrack){m=!1;continue}else return!1}else if(!this.options.flex)break}return m?(p=this.test_match(m,v[y]),p!==!1?p:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var m=this.next();return m||this.lex()},"lex"),begin:o(function(m){this.conditionStack.push(m)},"begin"),popState:o(function(){var m=this.conditionStack.length-1;return m>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(m){return m=this.conditionStack.length-1-Math.abs(m||0),m>=0?this.conditionStack[m]:"INITIAL"},"topState"),pushState:o(function(m){this.begin(m)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:o(function(m,g,y,v){var x=v;switch(y){case 0:break;case 1:break;case 2:return 10;case 3:break;case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;break;case 8:return this.popState(),"acc_title_value";break;case 9:return this.begin("acc_descr"),14;break;case 10:return this.popState(),"acc_descr_value";break;case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 18;case 16:return 19;case 17:return":";case 18:return 6;case 19:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18,19],inclusive:!0}}};return d}();u.lexer=h;function f(){this.yy={}}return o(f,"Parser"),f.prototype=u,u.Parser=f,new f}();gB.parser=gB;Tpt=gB});var a1,yB,Jx,tb,gqt,yqt,vqt,xqt,bqt,wqt,Tqt,Ept,kqt,vB,Cpt=R(()=>{"use strict";Ue();Ci();a1="",yB=[],Jx=[],tb=[],gqt=o(function(){yB.length=0,Jx.length=0,a1="",tb.length=0,Ar()},"clear"),yqt=o(function(e){a1=e,yB.push(e)},"addSection"),vqt=o(function(){return yB},"getSections"),xqt=o(function(){let e=Ept(),t=100,r=0;for(;!e&&r{r.people&&e.push(...r.people)}),[...new Set(e)].sort()},"updateActors"),wqt=o(function(e,t){let r=t.substr(1).split(":"),n=0,i=[];r.length===1?(n=Number(r[0]),i=[]):(n=Number(r[0]),i=r[1].split(","));let a=i.map(l=>l.trim()),s={section:a1,type:a1,people:a,task:e,score:n};tb.push(s)},"addTask"),Tqt=o(function(e){let t={section:a1,type:a1,description:e,task:e,classes:[]};Jx.push(t)},"addTaskOrg"),Ept=o(function(){let e=o(function(r){return tb[r].processed},"compileTask"),t=!0;for(let[r,n]of tb.entries())e(r),t=t&&n.processed;return t},"compileTasks"),kqt=o(function(){return bqt()},"getActors"),vB={getConfig:o(()=>pt().journey,"getConfig"),clear:gqt,setDiagramTitle:cn,getDiagramTitle:Jr,setAccTitle:Mr,getAccTitle:Br,setAccDescription:Fr,getAccDescription:zr,addSection:yqt,getSections:vqt,getTasks:xqt,addTask:wqt,addTaskOrg:Tqt,getActors:kqt}});var Eqt,Spt,Apt=R(()=>{"use strict";Eqt=o(e=>`.label { font-family: 'trebuchet ms', verdana, arial, sans-serif; font-family: var(--mermaid-font-family); - color: ${i.textColor}; + color: ${e.textColor}; } .mouth { stroke: #666; } line { - stroke: ${i.textColor} + stroke: ${e.textColor} } .legend { - fill: ${i.textColor}; + fill: ${e.textColor}; } .label text { fill: #333; } .label { - color: ${i.textColor} + color: ${e.textColor} } .face { - ${i.faceColor?`fill: ${i.faceColor}`:"fill: #FFF8DC"}; + ${e.faceColor?`fill: ${e.faceColor}`:"fill: #FFF8DC"}; stroke: #999; } @@ -1220,8 +1733,8 @@ Expecting `+rr.join(", ")+", got '"+(this.terminals_[ae]||ae)+"'":Te="Parse erro .node ellipse, .node polygon, .node path { - fill: ${i.mainBkg}; - stroke: ${i.nodeBorder}; + fill: ${e.mainBkg}; + stroke: ${e.nodeBorder}; stroke-width: 1px; } @@ -1233,21 +1746,21 @@ Expecting `+rr.join(", ")+", got '"+(this.terminals_[ae]||ae)+"'":Te="Parse erro } .arrowheadPath { - fill: ${i.arrowheadColor}; + fill: ${e.arrowheadColor}; } .edgePath .path { - stroke: ${i.lineColor}; + stroke: ${e.lineColor}; stroke-width: 1.5px; } .flowchart-link { - stroke: ${i.lineColor}; + stroke: ${e.lineColor}; fill: none; } .edgeLabel { - background-color: ${i.edgeLabelBackground}; + background-color: ${e.edgeLabelBackground}; rect { opacity: 0.5; } @@ -1258,7 +1771,7 @@ Expecting `+rr.join(", ")+", got '"+(this.terminals_[ae]||ae)+"'":Te="Parse erro } .cluster text { - fill: ${i.titleColor}; + fill: ${e.titleColor}; } div.mermaidTooltip { @@ -1269,225 +1782,85 @@ Expecting `+rr.join(", ")+", got '"+(this.terminals_[ae]||ae)+"'":Te="Parse erro font-family: 'trebuchet ms', verdana, arial, sans-serif; font-family: var(--mermaid-font-family); font-size: 12px; - background: ${i.tertiaryColor}; - border: 1px solid ${i.border2}; + background: ${e.tertiaryColor}; + border: 1px solid ${e.border2}; border-radius: 2px; pointer-events: none; z-index: 100; } .task-type-0, .section-type-0 { - ${i.fillType0?`fill: ${i.fillType0}`:""}; + ${e.fillType0?`fill: ${e.fillType0}`:""}; } .task-type-1, .section-type-1 { - ${i.fillType0?`fill: ${i.fillType1}`:""}; + ${e.fillType0?`fill: ${e.fillType1}`:""}; } .task-type-2, .section-type-2 { - ${i.fillType0?`fill: ${i.fillType2}`:""}; + ${e.fillType0?`fill: ${e.fillType2}`:""}; } .task-type-3, .section-type-3 { - ${i.fillType0?`fill: ${i.fillType3}`:""}; + ${e.fillType0?`fill: ${e.fillType3}`:""}; } .task-type-4, .section-type-4 { - ${i.fillType0?`fill: ${i.fillType4}`:""}; + ${e.fillType0?`fill: ${e.fillType4}`:""}; } .task-type-5, .section-type-5 { - ${i.fillType0?`fill: ${i.fillType5}`:""}; + ${e.fillType0?`fill: ${e.fillType5}`:""}; } .task-type-6, .section-type-6 { - ${i.fillType0?`fill: ${i.fillType6}`:""}; + ${e.fillType0?`fill: ${e.fillType6}`:""}; } .task-type-7, .section-type-7 { - ${i.fillType0?`fill: ${i.fillType7}`:""}; + ${e.fillType0?`fill: ${e.fillType7}`:""}; } .actor-0 { - ${i.actor0?`fill: ${i.actor0}`:""}; + ${e.actor0?`fill: ${e.actor0}`:""}; } .actor-1 { - ${i.actor1?`fill: ${i.actor1}`:""}; + ${e.actor1?`fill: ${e.actor1}`:""}; } .actor-2 { - ${i.actor2?`fill: ${i.actor2}`:""}; + ${e.actor2?`fill: ${e.actor2}`:""}; } .actor-3 { - ${i.actor3?`fill: ${i.actor3}`:""}; + ${e.actor3?`fill: ${e.actor3}`:""}; } .actor-4 { - ${i.actor4?`fill: ${i.actor4}`:""}; + ${e.actor4?`fill: ${e.actor4}`:""}; } .actor-5 { - ${i.actor5?`fill: ${i.actor5}`:""}; - } -`,Tgt=function(i,a){return DW(i,a)},ZVe=function(i,a){const p=i.append("circle").attr("cx",a.cx).attr("cy",a.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),v=i.append("g");v.append("circle").attr("cx",a.cx-15/3).attr("cy",a.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),v.append("circle").attr("cx",a.cx+15/3).attr("cy",a.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function m(C){const D=_A().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);C.append("path").attr("class","mouth").attr("d",D).attr("transform","translate("+a.cx+","+(a.cy+2)+")")}function b(C){const D=_A().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);C.append("path").attr("class","mouth").attr("d",D).attr("transform","translate("+a.cx+","+(a.cy+7)+")")}function E(C){C.append("line").attr("class","mouth").attr("stroke",2).attr("x1",a.cx-5).attr("y1",a.cy+7).attr("x2",a.cx+5).attr("y2",a.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return a.score>3?m(v):a.score<3?b(v):E(v),p},FRt=function(i,a){const f=i.append("circle");return f.attr("cx",a.cx),f.attr("cy",a.cy),f.attr("class","actor-"+a.pos),f.attr("fill",a.fill),f.attr("stroke",a.stroke),f.attr("r",a.r),f.class!==void 0&&f.attr("class",f.class),a.title!==void 0&&f.append("title").text(a.title),f},BRt=function(i,a){return MLe(i,a)},JVe=function(i,a){function f(v,m,b,E,C){return v+","+m+" "+(v+b)+","+m+" "+(v+b)+","+(m+E-C)+" "+(v+b-C*1.2)+","+(m+E)+" "+v+","+(m+E)}const p=i.append("polygon");p.attr("points",f(a.x,a.y,50,20,7)),p.attr("class","labelBox"),a.y=a.y+a.labelMargin,a.x=a.x+.5*a.labelMargin,BRt(i,a)},tGe=function(i,a,f){const p=i.append("g"),v=aE();v.x=a.x,v.y=a.y,v.fill=a.fill,v.width=f.width*a.taskCount+f.diagramMarginX*(a.taskCount-1),v.height=f.height,v.class="journey-section section-type-"+a.num,v.rx=3,v.ry=3,Tgt(p,v),jRt(f)(a.text,p,v.x,v.y,v.width,v.height,{class:"journey-section section-type-"+a.num},f,a.colour)};let RRt=-1;const eGe=function(i,a,f){const p=a.x+f.width/2,v=i.append("g");RRt++;const m=300+5*30;v.append("line").attr("id","task"+RRt).attr("x1",p).attr("y1",a.y).attr("x2",p).attr("y2",m).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),ZVe(v,{cx:p,cy:300+(5-a.score)*30,score:a.score});const b=aE();b.x=a.x,b.y=a.y,b.fill=a.fill,b.width=f.width,b.height=f.height,b.class="task task-type-"+a.num,b.rx=3,b.ry=3,Tgt(v,b);let E=a.x+14;a.people.forEach(C=>{const D=a.actors[C].color,P={cx:E,cy:a.y,r:7,fill:D,stroke:"#000",title:C,pos:a.actors[C].position};FRt(v,P),E+=10}),jRt(f)(a.task,v,b.x,b.y,b.width,b.height,{class:"task"},f,a.colour)},nGe=function(i,a){AOt(i,a)},jRt=function(){function i(v,m,b,E,C,D,P,B){const j=m.append("text").attr("x",b+C/2).attr("y",E+D/2+5).style("font-color",B).style("text-anchor","middle").text(v);p(j,P)}function a(v,m,b,E,C,D,P,B,j){const{taskFontSize:R,taskFontFamily:H}=B,Y=v.split(//gi);for(let it=0;it{const v=P5[p].color,m={cx:20,cy:f,r:7,fill:v,stroke:"#000",pos:P5[p].position};BP.drawCircle(i,m);const b={x:40,y:f+7,fill:"#666",text:p,textMargin:a.boxTextMargin|5};BP.drawText(i,b),f+=20})}const NK=Oe().journey,yE=NK.leftMargin,sGe=function(i,a,f,p){const v=Oe().journey;p.db.clear(),p.parser.parse(i+` -`);const m=Oe().securityLevel;let b;m==="sandbox"&&(b=Mr("#i"+a));const E=Mr(m==="sandbox"?b.nodes()[0].contentDocument.body:"body");nv.init();const C=E.select("#"+a);BP.initGraphics(C);const D=p.db.getTasks(),P=p.db.getDiagramTitle(),B=p.db.getActors();for(const nt in P5)delete P5[nt];let j=0;B.forEach(nt=>{P5[nt]={color:v.actorColours[j%v.actorColours.length],position:j},j++}),iGe(C),nv.insert(0,0,yE,Object.keys(P5).length*50),aGe(C,D,0);const R=nv.getBounds();P&&C.append("text").text(P).attr("x",yE).attr("font-size","4ex").attr("font-weight","bold").attr("y",25);const H=R.stopy-R.starty+2*v.diagramMarginY,Y=yE+R.stopx+2*v.diagramMarginX;Wb(C,H,Y,v.useMaxWidth),C.append("line").attr("x1",yE).attr("y1",v.height*4).attr("x2",Y-yE-4).attr("y2",v.height*4).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)");const it=P?70:0;C.attr("viewBox",`${R.startx} -25 ${Y} ${H+it}`),C.attr("preserveAspectRatio","xMinYMin meet"),C.attr("height",H+it+25)},nv={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},updateVal:function(i,a,f,p){i[a]===void 0?i[a]=f:i[a]=p(f,i[a])},updateBounds:function(i,a,f,p){const v=Oe().journey,m=this;let b=0;function E(C){return function(P){b++;const B=m.sequenceItems.length-b+1;m.updateVal(P,"starty",a-B*v.boxMargin,Math.min),m.updateVal(P,"stopy",p+B*v.boxMargin,Math.max),m.updateVal(nv.data,"startx",i-B*v.boxMargin,Math.min),m.updateVal(nv.data,"stopx",f+B*v.boxMargin,Math.max),C!=="activation"&&(m.updateVal(P,"startx",i-B*v.boxMargin,Math.min),m.updateVal(P,"stopx",f+B*v.boxMargin,Math.max),m.updateVal(nv.data,"starty",a-B*v.boxMargin,Math.min),m.updateVal(nv.data,"stopy",p+B*v.boxMargin,Math.max))}}this.sequenceItems.forEach(E())},insert:function(i,a,f,p){const v=Math.min(i,f),m=Math.max(i,f),b=Math.min(a,p),E=Math.max(a,p);this.updateVal(nv.data,"startx",v,Math.min),this.updateVal(nv.data,"starty",b,Math.min),this.updateVal(nv.data,"stopx",m,Math.max),this.updateVal(nv.data,"stopy",E,Math.max),this.updateBounds(v,b,m,E)},bumpVerticalPos:function(i){this.verticalPos=this.verticalPos+i,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return this.data}},_gt=NK.sectionFills,$Rt=NK.sectionColours,aGe=function(i,a,f){const p=Oe().journey;let v="";const m=p.height*2+p.diagramMarginY,b=f+m;let E=0,C="#CCC",D="black",P=0;for(const[B,j]of a.entries()){if(v!==j.section){C=_gt[E%_gt.length],P=E%_gt.length,D=$Rt[E%$Rt.length];let H=0;const Y=j.section;for(let nt=B;nt(P5[Y]&&(H[Y]=P5[Y]),H),{});j.x=B*p.taskMargin+B*p.width+yE,j.y=b,j.width=p.diagramMarginX,j.height=p.diagramMarginY,j.colour=D,j.fill=C,j.num=P,j.actors=R,BP.drawTask(i,j,p),nv.insert(j.x,j.y,j.x+j.width+p.taskMargin,300+5*30)}},zRt={setConf:rGe,draw:sGe},oGe=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:qVe,db:PRt,renderer:zRt,styles:QVe,init:i=>{zRt.setConf(i.journey),PRt.clear()}}},Symbol.toStringTag,{value:"Module"})),cGe=(i,a,f)=>{const{parentById:p}=f,v=new Set;let m=i;for(;m;){if(v.add(m),m===a)return m;m=p[m]}for(m=a;m;){if(v.has(m))return m;m=p[m]}return"root"};function PK(i){throw new Error('Could not dynamically require "'+i+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Cgt={},uGe={get exports(){return Cgt},set exports(i){Cgt=i}};(function(i,a){(function(f){i.exports=f()})(function(){return function(){function f(p,v,m){function b(D,P){if(!v[D]){if(!p[D]){var B=typeof PK=="function"&&PK;if(!P&&B)return B(D,!0);if(E)return E(D,!0);var j=new Error("Cannot find module '"+D+"'");throw j.code="MODULE_NOT_FOUND",j}var R=v[D]={exports:{}};p[D][0].call(R.exports,function(H){var Y=p[D][1][H];return b(Y||H)},R,R.exports,f,p,v,m)}return v[D].exports}for(var E=typeof PK=="function"&&PK,C=0;C0&&arguments[0]!==void 0?arguments[0]:{},j=B.defaultLayoutOptions,R=j===void 0?{}:j,H=B.algorithms,Y=H===void 0?["layered","stress","mrtree","radial","force","disco","sporeOverlap","sporeCompaction","rectpacking"]:H,it=B.workerFactory,nt=B.workerUrl;if(b(this,D),this.defaultLayoutOptions=R,this.initialized=!1,typeof nt>"u"&&typeof it>"u")throw new Error("Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.");var st=it;typeof nt<"u"&&typeof it>"u"&&(st=function(kt){return new Worker(kt)});var pt=st(nt);if(typeof pt.postMessage!="function")throw new TypeError("Created worker does not provide the required 'postMessage' function.");this.worker=new C(pt),this.worker.postMessage({cmd:"register",algorithms:Y}).then(function(Tt){return P.initialized=!0}).catch(console.err)}return m(D,[{key:"layout",value:function(B){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},R=j.layoutOptions,H=R===void 0?this.defaultLayoutOptions:R,Y=j.logging,it=Y===void 0?!1:Y,nt=j.measureExecutionTime,st=nt===void 0?!1:nt;return B?this.worker.postMessage({cmd:"layout",graph:B,layoutOptions:H,options:{logging:it,measureExecutionTime:st}}):Promise.reject(new Error("Missing mandatory parameter 'graph'."))}},{key:"knownLayoutAlgorithms",value:function(){return this.worker.postMessage({cmd:"algorithms"})}},{key:"knownLayoutOptions",value:function(){return this.worker.postMessage({cmd:"options"})}},{key:"knownLayoutCategories",value:function(){return this.worker.postMessage({cmd:"categories"})}},{key:"terminateWorker",value:function(){this.worker.terminate()}}]),D}();v.default=E;var C=function(){function D(P){var B=this;if(b(this,D),P===void 0)throw new Error("Missing mandatory parameter 'worker'.");this.resolvers={},this.worker=P,this.worker.onmessage=function(j){setTimeout(function(){B.receive(B,j)},0)}}return m(D,[{key:"postMessage",value:function(B){var j=this.id||0;this.id=j+1,B.id=j;var R=this;return new Promise(function(H,Y){R.resolvers[j]=function(it,nt){it?(R.convertGwtStyleError(it),Y(it)):H(nt)},R.worker.postMessage(B)})}},{key:"receive",value:function(B,j){var R=j.data,H=B.resolvers[R.id];H&&(delete B.resolvers[R.id],R.error?H(R.error):H(null,R.data))}},{key:"terminate",value:function(){this.worker.terminate&&this.worker.terminate()}},{key:"convertGwtStyleError",value:function(B){if(B){var j=B.__java$exception;j&&(j.cause&&j.cause.backingJsObject&&(B.cause=j.cause.backingJsObject,this.convertGwtStyleError(B.cause)),delete B.__java$exception)}}}]),D}()},{}],2:[function(f,p,v){(function(m){(function(){var b;typeof window<"u"?b=window:typeof m<"u"?b=m:typeof self<"u"&&(b=self);var E;function C(){}function D(){}function P(){}function B(){}function j(){}function R(){}function H(){}function Y(){}function it(){}function nt(){}function st(){}function pt(){}function Tt(){}function kt(){}function yt(){}function ht(){}function mt(){}function rt(){}function wt(){}function gt(){}function lt(){}function _t(){}function X(){}function Rt(){}function ft(){}function de(){}function J(){}function ae(){}function Wt(){}function It(){}function Nt(){}function me(){}function Ue(){}function _n(){}function _e(){}function rr(){}function Te(){}function ne(){}function Ee(){}function ye(){}function Vt(){}function Ae(){}function Gt(){}function un(){}function jt(){}function Ke(){}function oe(){}function Or(){}function Le(){}function Nr(){}function fe(){}function sr(){}function Yn(){}function tr(){}function ur(){}function gn(){}function En(){}function Dr(){}function hr(){}function Ki(){}function Is(){}function Ha(){}function hi(){}function qi(){}function zn(){}function Zn(){}function Pr(){}function On(){}function xi(){}function In(){}function rc(){}function qn(){}function ss(){}function Aa(){}function Ya(){}function Ea(){}function ga(){}function Es(){}function Bs(){}function Ta(){}function La(){}function Va(){}function sv(){}function rl(){}function mu(){}function As(){}function gp(){}function sd(){}function Rl(){}function $u(){}function Gi(){}function He(){}function Er(){}function ci(){}function Xa(){}function kc(){}function yu(){}function mo(){}function xu(){}function cf(){}function x3(){}function v1(){}function k3(){}function bL(){}function um(){}function dg(){}function cs(){}function zs(){}function Ma(){}function Ei(){}function Rc(){}function Ne(){}function pp(){}function We(){}function uf(){}function lm(){}function EE(){}function bp(){}function B5(){}function ah(){}function ad(){}function R5(){}function j5(){}function TE(){}function vL(){}function w1(){}function vp(){}function od(){}function hm(){}function av(){}function fm(){}function Ec(){}function gk(){}function Wo(){}function pk(){}function oh(){}function $K(){}function _E(){}function zK(){}function jP(){}function Hf(){}function dm(){}function wL(){}function $P(){}function wp(){}function gm(){}function qK(){}function j2(){}function HK(){}function VK(){}function $5(){}function CE(){}function zP(){}function bk(){}function GK(){}function vk(){}function UK(){}function WK(){}function KK(){}function YK(){}function XK(){}function QK(){}function ZK(){}function JK(){}function tY(){}function eY(){}function nY(){}function mL(){}function rY(){}function iY(){}function SE(){}function qP(){}function z5(){}function sY(){}function aY(){}function oY(){}function cY(){}function uY(){}function AE(){}function yL(){}function HP(){}function E3(){}function T3(){}function lY(){}function lf(){}function q5(){}function hY(){}function wk(){}function zd(){}function fY(){}function dY(){}function gY(){}function pY(){}function LE(){}function xL(){}function VP(){}function kL(){}function H5(){}function bY(){}function GP(){}function UP(){}function vY(){}function wY(){}function mY(){}function yY(){}function xY(){}function kY(){}function qd(){}function ov(){}function EY(){}function WP(){}function KP(){}function TY(){}function _3(){}function mk(){}function EL(){}function pm(){}function yk(){}function _Y(){}function ME(){}function cd(){}function YP(){}function TL(){}function xk(){}function _L(){}function XP(){}function CY(){}function CL(){}function SY(){}function AY(){}function QP(){}function V5(){}function ZP(){}function G5(){}function LY(){}function SL(){}function MY(){}function DY(){}function IY(){}function OY(){}function JP(){}function NY(){}function PY(){}function FY(){}function tF(){}function BY(){}function RY(){}function jY(){}function eF(){}function $Y(){}function zY(){}function nF(){}function rF(){}function iF(){}function qY(){}function HY(){}function kk(){}function U5(){}function DE(){}function VY(){}function AL(){}function IE(){}function LL(){}function sF(){}function aF(){}function GY(){}function UY(){}function WY(){}function oF(){}function cF(){}function KY(){}function YY(){}function XY(){}function QY(){}function ZY(){}function uF(){}function JY(){}function tX(){}function eX(){}function nX(){}function lF(){}function OE(){}function rX(){}function iX(){}function hF(){}function sX(){}function aX(){}function oX(){}function cX(){}function uX(){}function lX(){}function fF(){}function hX(){}function dF(){}function fX(){}function dX(){}function gX(){}function NE(){}function pX(){}function PE(){}function bX(){}function gF(){}function pF(){}function bF(){}function vF(){}function cv(){}function wF(){}function mF(){}function yF(){}function xF(){}function vX(){}function W5(){}function FE(){}function C3(){}function wX(){}function mX(){}function BE(){}function yX(){}function xX(){}function kX(){}function EX(){}function TX(){}function _X(){}function CX(){}function SX(){}function AX(){}function LX(){}function MX(){}function ML(){}function kF(){}function DX(){}function IX(){}function OX(){}function EF(){}function NX(){}function PX(){}function FX(){}function BX(){}function RX(){}function jX(){}function TF(){}function _F(){}function $X(){}function CF(){}function SF(){}function zX(){}function qX(){}function HX(){}function DL(){}function VX(){}function Ek(){}function GX(){}function UX(){}function WX(){}function AF(){}function KX(){}function YX(){}function XX(){}function QX(){}function ZX(){}function JX(){}function tQ(){}function eQ(){}function nQ(){}function rQ(){}function iQ(){}function sQ(){}function K5(){}function LF(){}function aQ(){}function oQ(){}function cQ(){}function MF(){}function uQ(){}function RE(){}function lQ(){}function hQ(){}function fQ(){}function dQ(){}function gQ(){}function pQ(){}function bQ(){}function vQ(){}function wQ(){}function mQ(){}function Y5(){}function yQ(){}function xQ(){}function kQ(){}function EQ(){}function TQ(){}function _Q(){}function CQ(){}function SQ(){}function jE(){}function AQ(){}function LQ(){}function MQ(){}function DQ(){}function IQ(){}function OQ(){}function NQ(){}function PQ(){}function X5(){}function DF(){}function FQ(){}function IL(){}function BQ(){}function RQ(){}function jQ(){}function $Q(){}function zQ(){}function qQ(){}function HQ(){}function IF(){}function VQ(){}function OF(){}function GQ(){}function NF(){}function PF(){}function FF(){}function UQ(){}function WQ(){}function $E(){}function OL(){}function zE(){}function KQ(){}function YQ(){}function NL(){}function XQ(){}function QQ(){}function BF(){}function ZQ(){}function JQ(){}function tZ(){}function eZ(){}function nZ(){}function rZ(){}function iZ(){}function sZ(){}function aZ(){}function oZ(){}function gg(){}function cZ(){}function bm(){}function RF(){}function uZ(){}function lZ(){}function hZ(){}function fZ(){}function dZ(){}function gZ(){}function pZ(){}function bZ(){}function vZ(){}function jc(){}function wZ(){}function qE(){}function dc(){}function ru(){}function ts(){}function PL(){}function mZ(){}function yZ(){}function xZ(){}function Q5(){}function vm(){}function Ve(){}function kZ(){}function EZ(){}function TZ(){}function _Z(){}function CZ(){}function jF(){}function SZ(){}function AZ(){}function FL(){}function LZ(){}function il(){}function zu(){}function MZ(){}function DZ(){}function IZ(){}function wm(){}function uv(){}function mp(){}function ud(){}function Z5(){}function HE(){}function Tk(){}function $F(){}function OZ(){}function _k(){}function zF(){}function NZ(){}function VE(){}function J5(){}function t6(){}function yp(){}function qF(){}function Ck(){}function HF(){}function VF(){}function e6(){}function $2(){}function T0(){}function xp(){}function S3(){}function Sk(){}function GE(){}function GF(){}function PZ(){}function UF(){}function WF(){}function KF(){}function Ak(){}function YF(){}function XF(){}function FZ(){}function Lk(){}function Mk(){}function mm(){}function BL(){}function BZ(){}function RZ(){}function jZ(){}function $Z(){}function zZ(){}function qZ(){}function HZ(){}function VZ(){}function QF(){}function GZ(){}function UZ(){}function WZ(){}function ZF(){}function Dk(){}function UE(){}function JF(){}function KZ(){}function tB(){}function eB(){}function YZ(){}function WE(){}function ym(){}function nB(){}function rB(){}function XZ(){}function QZ(){}function KE(){}function iB(){}function sB(){}function Tc(){}function ZZ(){}function aB(){}function YE(){}function JZ(){}function tJ(){}function XE(){}function oB(){}function QE(){}function ZE(){}function Vf(){}function RL(){}function jL(){}function n6(){}function eJ(){}function nJ(){}function rJ(){}function iJ(){}function xm(){}function cB(){}function r6(){}function m1(){}function uB(){}function lB(){}function hB(){}function fB(){}function dB(){}function gB(){}function Gf(){}function ku(){}function sJ(){}function aJ(){}function oJ(){}function Eu(){}function JE(){}function pB(){}function bB(){}function i6(){}function cJ(){}function Ik(){}function uJ(){}function vB(){}function lJ(){}function hJ(){}function tT(){}function wB(){}function $L(){}function eT(){}function fJ(){}function dJ(){}function zL(){}function nT(){}function y1(){}function Ok(){}function gJ(){}function Nk(){}function qL(){}function z2(){}function rT(){}function HL(){}function Uf(){}function iT(){}function x1(){}function k1(){}function pJ(){}function bJ(){}function A3(){}function Pk(){}function Fk(){}function sT(){}function vJ(){}function s6(){}function VL(){}function mB(){}function wJ(){}function aT(){_T()}function mJ(){pit()}function yB(){Z_()}function GL(){jz()}function yJ(){p4t()}function oT(){i1()}function xJ(){C3t()}function kJ(){ZD()}function EJ(){vM()}function TJ(){bM()}function _J(){HM()}function xB(){LHt()}function CJ(){Y6()}function SJ(){yR()}function AJ(){$Zt()}function kB(){Jte()}function LJ(){wJt()}function MJ(){PXt()}function cT(){J8()}function DJ(){t2()}function IJ(){tee()}function OJ(){AQt()}function NJ(){c6t()}function PJ(){zie()}function FJ(){FXt()}function EB(){Ce()}function BJ(){NXt()}function TB(){eee()}function RJ(){ine()}function UL(){RXt()}function jJ(){EJt()}function _B(){MHt()}function $J(){X4t()}function CB(){iy()}function zJ(){Aee()}function SB(){nI()}function AB(){Vst()}function LB(){Qit()}function WL(){cw()}function L3(){Umt()}function uT(){BXt()}function ld(){Yce()}function MB(){W4t()}function Bk(){Fst()}function KL(){T$()}function qJ(){Uz()}function kp(){Ti()}function DB(){oz()}function IB(){t3t()}function OB(){hq()}function ch(){TWt()}function YL(){Jrt()}function NB(){N5t()}function Rk(t){Pn(t)}function lT(t){this.a=t}function jk(t){this.a=t}function PB(t){this.a=t}function a6(t){this.a=t}function lv(t){this.a=t}function $k(t){this.a=t}function FB(t){this.a=t}function HJ(t){this.a=t}function XL(t){this.a=t}function M3(t){this.a=t}function QL(t){this.a=t}function hT(t){this.a=t}function VJ(t){this.a=t}function fT(t){this.a=t}function dT(t){this.a=t}function o6(t){this.a=t}function ZL(t){this.a=t}function JL(t){this.a=t}function GJ(t){this.a=t}function UJ(t){this.a=t}function WJ(t){this.a=t}function BB(t){this.b=t}function KJ(t){this.c=t}function YJ(t){this.a=t}function XJ(t){this.a=t}function QJ(t){this.a=t}function ZJ(t){this.a=t}function JJ(t){this.a=t}function ttt(t){this.a=t}function ett(t){this.a=t}function ntt(t){this.a=t}function c6(t){this.a=t}function rtt(t){this.a=t}function zk(t){this.a=t}function Mh(t){this.a=t}function itt(t){this.a=t}function u6(t){this.a=t}function qk(t){this.a=t}function gT(t){this.a=t}function Hk(t){this.a=t}function pg(){this.a=[]}function stt(t,e){t.a=e}function Pgt(t,e){t.a=e}function Fgt(t,e){t.b=e}function Bgt(t,e){t.b=e}function Rgt(t,e){t.b=e}function tM(t,e){t.j=e}function jgt(t,e){t.g=e}function $gt(t,e){t.i=e}function att(t,e){t.c=e}function E1(t,e){t.d=e}function ott(t,e){t.d=e}function zgt(t,e){t.c=e}function _0(t,e){t.k=e}function ctt(t,e){t.c=e}function RB(t,e){t.c=e}function jB(t,e){t.a=e}function utt(t,e){t.a=e}function qgt(t,e){t.f=e}function Hgt(t,e){t.a=e}function hv(t,e){t.b=e}function eM(t,e){t.d=e}function pT(t,e){t.i=e}function $B(t,e){t.o=e}function Vgt(t,e){t.r=e}function Ggt(t,e){t.a=e}function zB(t,e){t.b=e}function fv(t,e){t.e=e}function ltt(t,e){t.f=e}function bT(t,e){t.g=e}function l6(t,e){t.e=e}function Ugt(t,e){t.f=e}function Vk(t,e){t.f=e}function htt(t,e){t.n=e}function bg(t,e){t.a=e}function Wgt(t,e){t.a=e}function D3(t,e){t.c=e}function ftt(t,e){t.c=e}function dtt(t,e){t.d=e}function qB(t,e){t.e=e}function HB(t,e){t.g=e}function gtt(t,e){t.a=e}function Gk(t,e){t.c=e}function vT(t,e){t.d=e}function Kgt(t,e){t.e=e}function ptt(t,e){t.f=e}function btt(t,e){t.j=e}function vtt(t,e){t.a=e}function Ygt(t,e){t.b=e}function Dc(t,e){t.a=e}function VB(t){t.b=t.a}function wtt(t){t.c=t.d.d}function h6(t){this.d=t}function vg(t){this.a=t}function km(t){this.a=t}function nM(t){this.a=t}function T1(t){this.a=t}function f6(t){this.a=t}function mtt(t){this.a=t}function GB(t){this.a=t}function I3(t){this.a=t}function rM(t){this.a=t}function Em(t){this.a=t}function UB(t){this.a=t}function _1(t){this.a=t}function y(t){this.a=t}function g(t){this.a=t}function x(t){this.b=t}function T(t){this.b=t}function A(t){this.b=t}function I(t){this.a=t}function O(t){this.a=t}function $(t){this.a=t}function z(t){this.c=t}function S(t){this.c=t}function V(t){this.c=t}function U(t){this.a=t}function tt(t){this.a=t}function at(t){this.a=t}function ut(t){this.a=t}function dt(t){this.a=t}function At(t){this.a=t}function xt(t){this.a=t}function Mt(t){this.a=t}function Dt(t){this.a=t}function Bt(t){this.a=t}function Zt(t){this.a=t}function Kt(t){this.a=t}function $t(t){this.a=t}function ee(t){this.a=t}function Ht(t){this.a=t}function ge(t){this.a=t}function be(t){this.a=t}function re(t){this.a=t}function Pe(t){this.a=t}function ve(t){this.a=t}function fn(t){this.a=t}function $e(t){this.a=t}function qe(t){this.a=t}function xn(t){this.a=t}function Nn(t){this.a=t}function er(t){this.a=t}function Sn(t){this.a=t}function Jn(t){this.a=t}function fr(t){this.a=t}function Sr(t){this.a=t}function wr(t){this.a=t}function cr(t){this.a=t}function bn(t){this.a=t}function Tr(t){this.a=t}function xr(t){this.a=t}function fi(t){this.a=t}function Ii(t){this.a=t}function oa(t){this.a=t}function Fa(t){this.a=t}function Fi(t){this.a=t}function Ci(t){this.a=t}function Ls(t){this.a=t}function es(t){this.a=t}function Ri(t){this.a=t}function as(t){this.a=t}function no(t){this.e=t}function ca(t){this.a=t}function ea(t){this.a=t}function Fr(t){this.a=t}function Qt(t){this.a=t}function Hn(t){this.a=t}function jr(t){this.a=t}function dr(t){this.a=t}function gr(t){this.a=t}function Ga(t){this.a=t}function Qr(t){this.a=t}function us(t){this.a=t}function Ko(t){this.a=t}function Vc(t){this.a=t}function ho(t){this.a=t}function Ic(t){this.a=t}function Ba(t){this.a=t}function fo(t){this.a=t}function Sl(t){this.a=t}function Wf(t){this.a=t}function Ep(t){this.a=t}function Tp(t){this.a=t}function Kf(t){this.a=t}function wg(t){this.a=t}function hd(t){this.a=t}function dv(t){this.a=t}function Tm(t){this.a=t}function d6(t){this.a=t}function O3(t){this.a=t}function g6(t){this.a=t}function wT(t){this.a=t}function N3(t){this.a=t}function Hd(t){this.a=t}function C1(t){this.a=t}function Vd(t){this.a=t}function mT(t){this.a=t}function q2(t){this.a=t}function WB(t){this.a=t}function ytt(t){this.a=t}function xtt(t){this.a=t}function ktt(t){this.a=t}function Ett(t){this.a=t}function Ttt(t){this.a=t}function _tt(t){this.a=t}function Ctt(t){this.a=t}function Uk(t){this.a=t}function iM(t){this.a=t}function yT(t){this.a=t}function KB(t){this.a=t}function YB(t){this.a=t}function Stt(t){this.a=t}function _p(t){this.a=t}function sM(t){this.a=t}function XB(t){this.a=t}function Wk(t){this.c=t}function Cp(t){this.b=t}function Att(t){this.a=t}function mjt(t){this.a=t}function yjt(t){this.a=t}function xjt(t){this.a=t}function kjt(t){this.a=t}function Ejt(t){this.a=t}function Tjt(t){this.a=t}function _jt(t){this.a=t}function Cjt(t){this.a=t}function Sjt(t){this.a=t}function Ajt(t){this.a=t}function Ljt(t){this.a=t}function Mjt(t){this.a=t}function Djt(t){this.a=t}function Ijt(t){this.a=t}function Ojt(t){this.a=t}function Njt(t){this.a=t}function Pjt(t){this.a=t}function Fjt(t){this.a=t}function Bjt(t){this.a=t}function Rjt(t){this.a=t}function jjt(t){this.a=t}function $jt(t){this.a=t}function zjt(t){this.a=t}function Sp(t){this.a=t}function p6(t){this.a=t}function qjt(t){this.a=t}function Hjt(t){this.a=t}function Vjt(t){this.a=t}function Gjt(t){this.a=t}function Ujt(t){this.a=t}function Wjt(t){this.a=t}function Kjt(t){this.a=t}function Yjt(t){this.a=t}function Xjt(t){this.a=t}function Qjt(t){this.a=t}function Zjt(t){this.a=t}function Jjt(t){this.a=t}function t$t(t){this.a=t}function e$t(t){this.a=t}function n$t(t){this.a=t}function r$t(t){this.a=t}function QB(t){this.a=t}function i$t(t){this.a=t}function s$t(t){this.a=t}function a$t(t){this.a=t}function o$t(t){this.a=t}function c$t(t){this.a=t}function u$t(t){this.a=t}function l$t(t){this.a=t}function h$t(t){this.a=t}function f$t(t){this.a=t}function d$t(t){this.a=t}function g$t(t){this.a=t}function p$t(t){this.a=t}function b$t(t){this.a=t}function v$t(t){this.a=t}function w$t(t){this.a=t}function m$t(t){this.a=t}function y$t(t){this.a=t}function x$t(t){this.a=t}function k$t(t){this.a=t}function E$t(t){this.a=t}function T$t(t){this.a=t}function _$t(t){this.a=t}function C$t(t){this.a=t}function S$t(t){this.a=t}function A$t(t){this.a=t}function L$t(t){this.a=t}function M$t(t){this.a=t}function D$t(t){this.a=t}function Xgt(t){this.a=t}function rs(t){this.b=t}function I$t(t){this.f=t}function Qgt(t){this.a=t}function O$t(t){this.a=t}function N$t(t){this.a=t}function P$t(t){this.a=t}function F$t(t){this.a=t}function B$t(t){this.a=t}function R$t(t){this.a=t}function j$t(t){this.a=t}function $$t(t){this.a=t}function aM(t){this.a=t}function z$t(t){this.a=t}function q$t(t){this.b=t}function Zgt(t){this.c=t}function ZB(t){this.e=t}function H$t(t){this.a=t}function JB(t){this.a=t}function tR(t){this.a=t}function Ltt(t){this.a=t}function V$t(t){this.a=t}function G$t(t){this.d=t}function Jgt(t){this.a=t}function tpt(t){this.a=t}function gv(t){this.e=t}function xUe(){this.a=0}function P3(){TGt(this)}function le(){Bet(this)}function Rr(){al(this)}function Mtt(){AYt(this)}function U$t(){}function pv(){this.c=NAt}function kUe(t,e){e.Wb(t)}function W$t(t,e){t.b+=e}function K$t(t){t.b=new Wtt}function et(t){return t.e}function EUe(t){return t.a}function TUe(t){return t.a}function _Ue(t){return t.a}function CUe(t){return t.a}function SUe(t){return t.a}function AUe(){return null}function LUe(){return null}function MUe(){$pt(),z3n()}function DUe(t){t.b.tf(t.e)}function xT(t,e){t.b=e-t.b}function kT(t,e){t.a=e-t.a}function Y$t(t,e){e.ad(t.a)}function IUe(t,e){Qs(e,t)}function OUe(t,e,n){t.Od(n,e)}function oM(t,e){t.e=e,e.b=t}function ept(t){vd(),this.a=t}function X$t(t){vd(),this.a=t}function Q$t(t){vd(),this.a=t}function npt(t){qm(),this.a=t}function Z$t(t){T8(),lut.be(t)}function H2(){oUt.call(this)}function rpt(){oUt.call(this)}function ipt(){H2.call(this)}function Dtt(){H2.call(this)}function J$t(){H2.call(this)}function cM(){H2.call(this)}function qu(){H2.call(this)}function ET(){H2.call(this)}function Gr(){H2.call(this)}function uh(){H2.call(this)}function tzt(){H2.call(this)}function _c(){H2.call(this)}function ezt(){H2.call(this)}function nzt(){this.a=this}function eR(){this.Bb|=256}function rzt(){this.b=new sGt}function spt(){spt=J,new Rr}function apt(){ipt.call(this)}function izt(t,e){t.length=e}function nR(t,e){ue(t.a,e)}function NUe(t,e){v4t(t.c,e)}function PUe(t,e){Ys(t.b,e)}function FUe(t,e){Oz(t.a,e)}function BUe(t,e){Tit(t.a,e)}function Kk(t,e){Oi(t.e,e)}function b6(t){Yz(t.c,t.b)}function RUe(t,e){t.kc().Nb(e)}function opt(t){this.a=Fcn(t)}function na(){this.a=new Rr}function szt(){this.a=new Rr}function rR(){this.a=new le}function Itt(){this.a=new le}function cpt(){this.a=new le}function Dh(){this.a=new rc}function V2(){this.a=new FZt}function upt(){this.a=new EE}function lpt(){this.a=new xHt}function azt(){this.a=new uQt}function hpt(){this.a=new _Xt}function fpt(){this.a=new YUt}function ozt(){this.a=new le}function dpt(){this.a=new le}function czt(){this.a=new le}function uzt(){this.a=new le}function lzt(){this.d=new le}function hzt(){this.a=new na}function fzt(){this.a=new Rr}function dzt(){this.b=new Rr}function gzt(){this.b=new le}function gpt(){this.e=new le}function pzt(){this.d=new le}function bzt(){this.a=new DJ}function vzt(){le.call(this)}function ppt(){rR.call(this)}function wzt(){fj.call(this)}function mzt(){dpt.call(this)}function Ott(){TT.call(this)}function TT(){U$t.call(this)}function v6(){U$t.call(this)}function bpt(){v6.call(this)}function yzt(){nXt.call(this)}function xzt(){nXt.call(this)}function kzt(){Ept.call(this)}function Ezt(){Ept.call(this)}function Tzt(){Ept.call(this)}function _zt(){Tpt.call(this)}function Hu(){hs.call(this)}function vpt(){wm.call(this)}function wpt(){wm.call(this)}function Czt(){qzt.call(this)}function Szt(){qzt.call(this)}function Azt(){Rr.call(this)}function Lzt(){Rr.call(this)}function Mzt(){Rr.call(this)}function Dzt(){na.call(this)}function Ntt(){Xte.call(this)}function Izt(){eR.call(this)}function Ptt(){K2t.call(this)}function Ftt(){K2t.call(this)}function mpt(){Rr.call(this)}function Btt(){Rr.call(this)}function Ozt(){Rr.call(this)}function ypt(){Ck.call(this)}function Nzt(){Ck.call(this)}function Pzt(){ypt.call(this)}function Fzt(){VL.call(this)}function Bzt(t){xte.call(this,t)}function Rzt(t){xte.call(this,t)}function xpt(t){XL.call(this,t)}function kpt(t){hHt.call(this,t)}function jUe(t){kpt.call(this,t)}function $Ue(t){hHt.call(this,t)}function Yk(){this.a=new hs}function Ept(){this.a=new na}function Tpt(){this.a=new Rr}function jzt(){this.a=new le}function $zt(){this.j=new le}function _pt(){this.a=new FF}function zzt(){this.a=new Fqt}function qzt(){this.a=new qF}function Rtt(){Rtt=J,iut=new aqt}function jtt(){jtt=J,rut=new sqt}function _T(){_T=J,nut=new D}function iR(){iR=J,out=new sUt}function zUe(t){kpt.call(this,t)}function qUe(t){kpt.call(this,t)}function Hzt(t){vrt.call(this,t)}function Vzt(t){vrt.call(this,t)}function Gzt(t){vWt.call(this,t)}function $tt(t){cdn.call(this,t)}function bv(t){Am.call(this,t)}function CT(t){bR.call(this,t)}function Cpt(t){bR.call(this,t)}function Uzt(t){bR.call(this,t)}function ic(t){DKt.call(this,t)}function Wzt(t){ic.call(this,t)}function w6(){Hk.call(this,{})}function sR(t){u8(),this.a=t}function ST(t){t.b=null,t.c=0}function HUe(t,e){t.e=e,Koe(t,e)}function VUe(t,e){t.a=e,Kdn(t)}function ztt(t,e,n){t.a[e.g]=n}function GUe(t,e,n){lfn(n,t,e)}function UUe(t,e){vXe(e.i,t.n)}function Kzt(t,e){won(t).td(e)}function WUe(t,e){return t*t/e}function Yzt(t,e){return t.g-e.g}function KUe(t){return new gT(t)}function YUe(t){return new zm(t)}function aR(t){ic.call(this,t)}function Oo(t){ic.call(this,t)}function Xzt(t){ic.call(this,t)}function qtt(t){DKt.call(this,t)}function Htt(t){Vmt(),this.a=t}function Qzt(t){EWt(),this.a=t}function _m(t){xnt(),this.f=t}function Vtt(t){xnt(),this.f=t}function Xk(t){ic.call(this,t)}function Bn(t){ic.call(this,t)}function Yo(t){ic.call(this,t)}function Zzt(t){ic.call(this,t)}function m6(t){ic.call(this,t)}function Re(t){return Pn(t),t}function Xt(t){return Pn(t),t}function uM(t){return Pn(t),t}function Spt(t){return Pn(t),t}function XUe(t){return Pn(t),t}function AT(t){return t.b==t.c}function Cm(t){return!!t&&t.b}function QUe(t){return!!t&&t.k}function ZUe(t){return!!t&&t.j}function Al(t){Pn(t),this.a=t}function Apt(t){return cb(t),t}function LT(t){$vt(t,t.length)}function mg(t){ic.call(this,t)}function fd(t){ic.call(this,t)}function Gtt(t){ic.call(this,t)}function F3(t){ic.call(this,t)}function MT(t){ic.call(this,t)}function Wr(t){ic.call(this,t)}function Utt(t){fbt.call(this,t,0)}function Wtt(){ywt.call(this,12,3)}function Lpt(){Lpt=J,M8t=new wt}function Jzt(){Jzt=J,L8t=new C}function oR(){oR=J,JC=new Tt}function tqt(){tqt=J,L0e=new yt}function eqt(){throw et(new Gr)}function Mpt(){throw et(new Gr)}function nqt(){throw et(new Gr)}function JUe(){throw et(new Gr)}function tWe(){throw et(new Gr)}function eWe(){throw et(new Gr)}function Ktt(){this.a=Kr(zr(ao))}function y6(t){vd(),this.a=zr(t)}function rqt(t,e){t.Td(e),e.Sd(t)}function nWe(t,e){t.a.ec().Mc(e)}function rWe(t,e,n){t.c.lf(e,n)}function Dpt(t){Oo.call(this,t)}function dd(t){Bn.call(this,t)}function yg(){f6.call(this,"")}function DT(){f6.call(this,"")}function Ap(){f6.call(this,"")}function Sm(){f6.call(this,"")}function Ipt(t){Oo.call(this,t)}function Qk(t){T.call(this,t)}function Ytt(t){rj.call(this,t)}function iqt(t){Qk.call(this,t)}function sqt(){fT.call(this,null)}function aqt(){fT.call(this,null)}function cR(){cR=J,T8()}function oqt(){oqt=J,j0e=Bfn()}function cqt(t){return t.a?t.b:0}function iWe(t){return t.a?t.b:0}function sWe(t,e){return t.a-e.a}function aWe(t,e){return t.a-e.a}function oWe(t,e){return t.a-e.a}function uR(t,e){return lmt(t,e)}function ot(t,e){return AXt(t,e)}function cWe(t,e){return e in t.a}function uqt(t,e){return t.f=e,t}function uWe(t,e){return t.b=e,t}function lqt(t,e){return t.c=e,t}function lWe(t,e){return t.g=e,t}function Opt(t,e){return t.a=e,t}function Npt(t,e){return t.f=e,t}function hWe(t,e){return t.k=e,t}function Ppt(t,e){return t.a=e,t}function fWe(t,e){return t.e=e,t}function Fpt(t,e){return t.e=e,t}function dWe(t,e){return t.f=e,t}function gWe(t,e){t.b=!0,t.d=e}function pWe(t,e){t.b=new No(e)}function bWe(t,e,n){e.td(t.a[n])}function vWe(t,e,n){e.we(t.a[n])}function wWe(t,e){return t.b-e.b}function mWe(t,e){return t.g-e.g}function yWe(t,e){return t.s-e.s}function xWe(t,e){return t?0:e-1}function hqt(t,e){return t?0:e-1}function kWe(t,e){return t?e-1:0}function EWe(t,e){return e.Yf(t)}function vv(t,e){return t.b=e,t}function lR(t,e){return t.a=e,t}function wv(t,e){return t.c=e,t}function mv(t,e){return t.d=e,t}function yv(t,e){return t.e=e,t}function Bpt(t,e){return t.f=e,t}function IT(t,e){return t.a=e,t}function Zk(t,e){return t.b=e,t}function Jk(t,e){return t.c=e,t}function Ze(t,e){return t.c=e,t}function yn(t,e){return t.b=e,t}function Je(t,e){return t.d=e,t}function tn(t,e){return t.e=e,t}function TWe(t,e){return t.f=e,t}function en(t,e){return t.g=e,t}function nn(t,e){return t.a=e,t}function rn(t,e){return t.i=e,t}function sn(t,e){return t.j=e,t}function fqt(t,e){return t.k=e,t}function _We(t,e){return t.j=e,t}function CWe(t,e){t2(),ac(e,t)}function SWe(t,e,n){xJe(t.a,e,n)}function dqt(t){MYt.call(this,t)}function Rpt(t){MYt.call(this,t)}function hR(t){int.call(this,t)}function gqt(t){Vcn.call(this,t)}function Lp(t){Gv.call(this,t)}function pqt(t){Unt.call(this,t)}function bqt(t){Unt.call(this,t)}function vqt(){H2t.call(this,"")}function Ra(){this.a=0,this.b=0}function wqt(){this.b=0,this.a=0}function mqt(t,e){t.b=0,Zm(t,e)}function AWe(t,e){t.c=e,t.b=!0}function yqt(t,e){return t.c._b(e)}function Yf(t){return t.e&&t.e()}function Xtt(t){return t?t.d:null}function xqt(t,e){return Wne(t.b,e)}function LWe(t){return t?t.g:null}function MWe(t){return t?t.i:null}function Mp(t){return A0(t),t.o}function xv(){xv=J,B3e=Khn()}function kqt(){kqt=J,da=a1n()}function t8(){t8=J,OAt=Xhn()}function Eqt(){Eqt=J,x4e=Yhn()}function jpt(){jpt=J,Mc=Gdn()}function $pt(){$pt=J,C2=z8()}function Tqt(){throw et(new Gr)}function _qt(){throw et(new Gr)}function Cqt(){throw et(new Gr)}function Sqt(){throw et(new Gr)}function Aqt(){throw et(new Gr)}function Lqt(){throw et(new Gr)}function fR(t){this.a=new x6(t)}function zpt(t){Tle(),t4n(this,t)}function Dp(t){this.a=new _nt(t)}function B3(t,e){for(;t.ye(e););}function qpt(t,e){for(;t.sd(e););}function R3(t,e){return t.a+=e,t}function Qtt(t,e){return t.a+=e,t}function xg(t,e){return t.a+=e,t}function kv(t,e){return t.a+=e,t}function OT(t){return qp(t),t.a}function dR(t){return t.b!=t.d.c}function Mqt(t){return t.l|t.m<<22}function Hpt(t,e){return t.d[e.p]}function Dqt(t,e){return N2n(t,e)}function Vpt(t,e,n){t.splice(e,n)}function Iqt(t){t.c?pce(t):bce(t)}function gR(t){this.a=0,this.b=t}function Oqt(){this.a=new fI(U_t)}function Nqt(){this.b=new fI(I_t)}function Pqt(){this.b=new fI(Lht)}function Fqt(){this.b=new fI(Lht)}function Bqt(){throw et(new Gr)}function Rqt(){throw et(new Gr)}function jqt(){throw et(new Gr)}function $qt(){throw et(new Gr)}function zqt(){throw et(new Gr)}function qqt(){throw et(new Gr)}function Hqt(){throw et(new Gr)}function Vqt(){throw et(new Gr)}function Gqt(){throw et(new Gr)}function Uqt(){throw et(new Gr)}function DWe(){throw et(new _c)}function IWe(){throw et(new _c)}function lM(t){this.a=new Wqt(t)}function Wqt(t){Hsn(this,t,Hfn())}function hM(t){return!t||gYt(t)}function fM(t){return td[t]!=-1}function OWe(){IH!=0&&(IH=0),OH=-1}function Kqt(){eut==null&&(eut=[])}function NWe(t,e){Dst(Ut(t.a),e)}function PWe(t,e){Dst(Ut(t.a),e)}function dM(t,e){W3.call(this,t,e)}function e8(t,e){dM.call(this,t,e)}function Gpt(t,e){this.b=t,this.c=e}function Yqt(t,e){this.b=t,this.a=e}function Xqt(t,e){this.a=t,this.b=e}function Qqt(t,e){this.a=t,this.b=e}function Zqt(t,e){this.a=t,this.b=e}function Jqt(t,e){this.a=t,this.b=e}function tHt(t,e){this.a=t,this.b=e}function eHt(t,e){this.a=t,this.b=e}function nHt(t,e){this.a=t,this.b=e}function rHt(t,e){this.a=t,this.b=e}function iHt(t,e){this.b=t,this.a=e}function sHt(t,e){this.b=t,this.a=e}function aHt(t,e){this.b=t,this.a=e}function oHt(t,e){this.b=t,this.a=e}function ei(t,e){this.f=t,this.g=e}function n8(t,e){this.e=t,this.d=e}function Ev(t,e){this.g=t,this.i=e}function Ztt(t,e){this.a=t,this.b=e}function cHt(t,e){this.a=t,this.f=e}function uHt(t,e){this.b=t,this.c=e}function FWe(t,e){this.a=t,this.b=e}function lHt(t,e){this.a=t,this.b=e}function Jtt(t,e){this.a=t,this.b=e}function hHt(t){ebt(t.dc()),this.c=t}function pR(t){this.b=u(zr(t),83)}function fHt(t){this.a=u(zr(t),83)}function Am(t){this.a=u(zr(t),15)}function dHt(t){this.a=u(zr(t),15)}function bR(t){this.b=u(zr(t),47)}function vR(){this.q=new b.Date}function Gd(){Gd=J,G8t=new ae}function r8(){r8=J,Z7=new Rt}function NT(t){return t.f.c+t.g.c}function gM(t,e){return t.b.Hc(e)}function gHt(t,e){return t.b.Ic(e)}function pHt(t,e){return t.b.Qc(e)}function bHt(t,e){return t.b.Hc(e)}function vHt(t,e){return t.c.uc(e)}function C0(t,e){return t.a._b(e)}function wHt(t,e){return Ni(t.c,e)}function mHt(t,e){return Il(t.b,e)}function yHt(t,e){return t>e&&e0}function eet(t,e){return Oc(t,e)<0}function $T(t,e){return t.a.get(e)}function YWe(t,e){return e.split(t)}function jHt(t,e){return Il(t.e,e)}function Jpt(t){return Pn(t),!1}function SR(t){Cn.call(this,t,21)}function XWe(t,e){bXt.call(this,t,e)}function AR(t,e){ei.call(this,t,e)}function net(t,e){ei.call(this,t,e)}function t2t(t){Rnt(),vWt.call(this,t)}function e2t(t,e){yKt(t,t.length,e)}function mM(t,e){YKt(t,t.length,e)}function QWe(t,e,n){e.ud(t.a.Ge(n))}function ZWe(t,e,n){e.we(t.a.Fe(n))}function JWe(t,e,n){e.td(t.a.Kb(n))}function tKe(t,e,n){t.Mb(n)&&e.td(n)}function zT(t,e,n){t.splice(e,0,n)}function eKe(t,e){return Gu(t.e,e)}function LR(t,e){this.d=t,this.e=e}function $Ht(t,e){this.b=t,this.a=e}function zHt(t,e){this.b=t,this.a=e}function n2t(t,e){this.b=t,this.a=e}function qHt(t,e){this.a=t,this.b=e}function HHt(t,e){this.a=t,this.b=e}function VHt(t,e){this.a=t,this.b=e}function GHt(t,e){this.a=t,this.b=e}function E6(t,e){this.a=t,this.b=e}function r2t(t,e){this.b=t,this.a=e}function i2t(t,e){this.b=t,this.a=e}function MR(t,e){ei.call(this,t,e)}function DR(t,e){ei.call(this,t,e)}function s2t(t,e){ei.call(this,t,e)}function a2t(t,e){ei.call(this,t,e)}function j3(t,e){ei.call(this,t,e)}function ret(t,e){ei.call(this,t,e)}function iet(t,e){ei.call(this,t,e)}function set(t,e){ei.call(this,t,e)}function IR(t,e){ei.call(this,t,e)}function o2t(t,e){ei.call(this,t,e)}function aet(t,e){ei.call(this,t,e)}function yM(t,e){ei.call(this,t,e)}function OR(t,e){ei.call(this,t,e)}function oet(t,e){ei.call(this,t,e)}function qT(t,e){ei.call(this,t,e)}function c2t(t,e){ei.call(this,t,e)}function Os(t,e){ei.call(this,t,e)}function NR(t,e){ei.call(this,t,e)}function UHt(t,e){this.a=t,this.b=e}function WHt(t,e){this.a=t,this.b=e}function KHt(t,e){this.a=t,this.b=e}function YHt(t,e){this.a=t,this.b=e}function XHt(t,e){this.a=t,this.b=e}function QHt(t,e){this.a=t,this.b=e}function ZHt(t,e){this.a=t,this.b=e}function JHt(t,e){this.a=t,this.b=e}function tVt(t,e){this.a=t,this.b=e}function u2t(t,e){this.b=t,this.a=e}function eVt(t,e){this.b=t,this.a=e}function nVt(t,e){this.b=t,this.a=e}function rVt(t,e){this.b=t,this.a=e}function a8(t,e){this.c=t,this.d=e}function iVt(t,e){this.e=t,this.d=e}function sVt(t,e){this.a=t,this.b=e}function aVt(t,e){this.b=e,this.c=t}function PR(t,e){ei.call(this,t,e)}function xM(t,e){ei.call(this,t,e)}function cet(t,e){ei.call(this,t,e)}function HT(t,e){ei.call(this,t,e)}function l2t(t,e){ei.call(this,t,e)}function uet(t,e){ei.call(this,t,e)}function het(t,e){ei.call(this,t,e)}function kM(t,e){ei.call(this,t,e)}function h2t(t,e){ei.call(this,t,e)}function fet(t,e){ei.call(this,t,e)}function VT(t,e){ei.call(this,t,e)}function f2t(t,e){ei.call(this,t,e)}function GT(t,e){ei.call(this,t,e)}function UT(t,e){ei.call(this,t,e)}function Mm(t,e){ei.call(this,t,e)}function det(t,e){ei.call(this,t,e)}function get(t,e){ei.call(this,t,e)}function d2t(t,e){ei.call(this,t,e)}function WT(t,e){ei.call(this,t,e)}function pet(t,e){ei.call(this,t,e)}function FR(t,e){ei.call(this,t,e)}function EM(t,e){ei.call(this,t,e)}function TM(t,e){ei.call(this,t,e)}function T6(t,e){ei.call(this,t,e)}function bet(t,e){ei.call(this,t,e)}function g2t(t,e){ei.call(this,t,e)}function vet(t,e){ei.call(this,t,e)}function wet(t,e){ei.call(this,t,e)}function p2t(t,e){ei.call(this,t,e)}function met(t,e){ei.call(this,t,e)}function yet(t,e){ei.call(this,t,e)}function xet(t,e){ei.call(this,t,e)}function ket(t,e){ei.call(this,t,e)}function b2t(t,e){ei.call(this,t,e)}function oVt(t,e){this.b=t,this.a=e}function cVt(t,e){this.a=t,this.b=e}function uVt(t,e){this.a=t,this.b=e}function lVt(t,e){this.a=t,this.b=e}function hVt(t,e){this.a=t,this.b=e}function v2t(t,e){ei.call(this,t,e)}function w2t(t,e){ei.call(this,t,e)}function fVt(t,e){this.b=t,this.d=e}function m2t(t,e){ei.call(this,t,e)}function y2t(t,e){ei.call(this,t,e)}function dVt(t,e){this.a=t,this.b=e}function gVt(t,e){this.a=t,this.b=e}function BR(t,e){ei.call(this,t,e)}function KT(t,e){ei.call(this,t,e)}function x2t(t,e){ei.call(this,t,e)}function k2t(t,e){ei.call(this,t,e)}function E2t(t,e){ei.call(this,t,e)}function Eet(t,e){ei.call(this,t,e)}function T2t(t,e){ei.call(this,t,e)}function Tet(t,e){ei.call(this,t,e)}function RR(t,e){ei.call(this,t,e)}function _et(t,e){ei.call(this,t,e)}function Cet(t,e){ei.call(this,t,e)}function _M(t,e){ei.call(this,t,e)}function Aet(t,e){ei.call(this,t,e)}function _2t(t,e){ei.call(this,t,e)}function CM(t,e){ei.call(this,t,e)}function C2t(t,e){ei.call(this,t,e)}function nKe(t,e){return Gu(t.c,e)}function rKe(t,e){return Gu(e.b,t)}function iKe(t,e){return-t.b.Je(e)}function S2t(t,e){return Gu(t.g,e)}function SM(t,e){ei.call(this,t,e)}function _6(t,e){ei.call(this,t,e)}function pVt(t,e){this.a=t,this.b=e}function bVt(t,e){this.a=t,this.b=e}function je(t,e){this.a=t,this.b=e}function YT(t,e){ei.call(this,t,e)}function XT(t,e){ei.call(this,t,e)}function AM(t,e){ei.call(this,t,e)}function Let(t,e){ei.call(this,t,e)}function jR(t,e){ei.call(this,t,e)}function QT(t,e){ei.call(this,t,e)}function Met(t,e){ei.call(this,t,e)}function $R(t,e){ei.call(this,t,e)}function $3(t,e){ei.call(this,t,e)}function LM(t,e){ei.call(this,t,e)}function ZT(t,e){ei.call(this,t,e)}function JT(t,e){ei.call(this,t,e)}function MM(t,e){ei.call(this,t,e)}function zR(t,e){ei.call(this,t,e)}function z3(t,e){ei.call(this,t,e)}function qR(t,e){ei.call(this,t,e)}function vVt(t,e){this.a=t,this.b=e}function wVt(t,e){this.a=t,this.b=e}function mVt(t,e){this.a=t,this.b=e}function yVt(t,e){this.a=t,this.b=e}function xVt(t,e){this.a=t,this.b=e}function kVt(t,e){this.a=t,this.b=e}function _a(t,e){this.a=t,this.b=e}function HR(t,e){ei.call(this,t,e)}function EVt(t,e){this.a=t,this.b=e}function TVt(t,e){this.a=t,this.b=e}function _Vt(t,e){this.a=t,this.b=e}function CVt(t,e){this.a=t,this.b=e}function SVt(t,e){this.a=t,this.b=e}function AVt(t,e){this.a=t,this.b=e}function LVt(t,e){this.b=t,this.a=e}function MVt(t,e){this.b=t,this.a=e}function DVt(t,e){this.b=t,this.a=e}function IVt(t,e){this.b=t,this.a=e}function OVt(t,e){this.a=t,this.b=e}function NVt(t,e){this.a=t,this.b=e}function sKe(t,e){Ppn(t.a,u(e,56))}function PVt(t,e){Win(t.a,u(e,11))}function aKe(t,e){return g8(),e!=t}function FVt(){return oqt(),new j0e}function BVt(){rrt(),this.b=new na}function RVt(){nq(),this.a=new na}function jVt(){mwt(),Avt.call(this)}function C6(t,e){ei.call(this,t,e)}function $Vt(t,e){this.a=t,this.b=e}function zVt(t,e){this.a=t,this.b=e}function VR(t,e){this.a=t,this.b=e}function qVt(t,e){this.a=t,this.b=e}function HVt(t,e){this.a=t,this.b=e}function VVt(t,e){this.a=t,this.b=e}function GVt(t,e){this.d=t,this.b=e}function A2t(t,e){this.d=t,this.e=e}function UVt(t,e){this.f=t,this.c=e}function DM(t,e){this.b=t,this.c=e}function L2t(t,e){this.i=t,this.g=e}function WVt(t,e){this.e=t,this.a=e}function KVt(t,e){this.a=t,this.b=e}function M2t(t,e){t.i=null,U$(t,e)}function oKe(t,e){t&&Pi(oN,t,e)}function YVt(t,e){return Pit(t.a,e)}function GR(t){return VD(t.c,t.b)}function gc(t){return t?t.dd():null}function qt(t){return t??null}function Dm(t){return typeof t===cx}function Im(t){return typeof t===u6t}function pa(t){return typeof t===xat}function Np(t,e){return t.Hd().Xb(e)}function UR(t,e){return Ean(t.Kc(),e)}function _v(t,e){return Oc(t,e)==0}function cKe(t,e){return Oc(t,e)>=0}function t_(t,e){return Oc(t,e)!=0}function uKe(t){return""+(Pn(t),t)}function IM(t,e){return t.substr(e)}function XVt(t){return vl(t),t.d.gc()}function Det(t){return sgn(t,t.c),t}function WR(t){return d_(t==null),t}function e_(t,e){return t.a+=""+e,t}function So(t,e){return t.a+=""+e,t}function n_(t,e){return t.a+=""+e,t}function Cc(t,e){return t.a+=""+e,t}function ni(t,e){return t.a+=""+e,t}function D2t(t,e){return t.a+=""+e,t}function QVt(t,e){Cs(t,e,t.a,t.a.a)}function U2(t,e){Cs(t,e,t.c.b,t.c)}function lKe(t,e,n){ase(e,Tst(t,n))}function hKe(t,e,n){ase(e,Tst(t,n))}function fKe(t,e){isn(new lr(t),e)}function ZVt(t,e){t.q.setTime(qv(e))}function JVt(t,e){Bvt.call(this,t,e)}function tGt(t,e){Bvt.call(this,t,e)}function Iet(t,e){Bvt.call(this,t,e)}function eGt(t){al(this),j_(this,t)}function I2t(t){return An(t,0),null}function Xf(t){return t.a=0,t.b=0,t}function nGt(t,e){return t.a=e.g+1,t}function dKe(t,e){return t.j[e.p]==2}function O2t(t){return YJe(u(t,79))}function rGt(){rGt=J,Oge=ii(zit())}function iGt(){iGt=J,Xpe=ii($oe())}function sGt(){this.b=new x6(Ym(12))}function aGt(){this.b=0,this.a=!1}function oGt(){this.b=0,this.a=!1}function r_(t){this.a=t,aT.call(this)}function cGt(t){this.a=t,aT.call(this)}function vn(t,e){Ks.call(this,t,e)}function Oet(t,e){Bm.call(this,t,e)}function q3(t,e){L2t.call(this,t,e)}function Net(t,e){U8.call(this,t,e)}function uGt(t,e){OM.call(this,t,e)}function bi(t,e){_R(),Pi(WG,t,e)}function Pet(t,e){return $l(t.a,0,e)}function lGt(t,e){return t.a.a.a.cc(e)}function hGt(t,e){return qt(t)===qt(e)}function gKe(t,e){return Vs(t.a,e.a)}function pKe(t,e){return Tu(t.a,e.a)}function bKe(t,e){return UKt(t.a,e.a)}function gd(t,e){return t.indexOf(e)}function Cv(t,e){return t==e?0:t?1:-1}function KR(t){return t<10?"0"+t:""+t}function vKe(t){return zr(t),new r_(t)}function fGt(t){return hu(t.l,t.m,t.h)}function o8(t){return Ms((Pn(t),t))}function wKe(t){return Ms((Pn(t),t))}function dGt(t,e){return Tu(t.g,e.g)}function Xo(t){return typeof t===u6t}function mKe(t){return t==Ew||t==My}function yKe(t){return t==Ew||t==Ly}function N2t(t){return Qo(t.b.b,t,0)}function gGt(t){this.a=FVt(),this.b=t}function pGt(t){this.a=FVt(),this.b=t}function xKe(t,e){return ue(t.a,e),e}function kKe(t,e){return ue(t.c,e),t}function bGt(t,e){return Ul(t.a,e),t}function EKe(t,e){return bf(),e.a+=t}function TKe(t,e){return bf(),e.a+=t}function _Ke(t,e){return bf(),e.c+=t}function P2t(t,e){I8(t,0,t.length,e)}function S0(){xt.call(this,new tb)}function vGt(){Sj.call(this,0,0,0,0)}function S6(){fh.call(this,0,0,0,0)}function No(t){this.a=t.a,this.b=t.b}function Pp(t){return t==Wh||t==Af}function c8(t){return t==Q0||t==X0}function wGt(t){return t==t5||t==J4}function H3(t){return t!=Q1&&t!=k2}function Ll(t){return t.Lg()&&t.Mg()}function mGt(t){return Hj(u(t,118))}function YR(t){return Ul(new ra,t)}function yGt(t,e){return new U8(e,t)}function CKe(t,e){return new U8(e,t)}function F2t(t,e,n){R$(t,e),j$(t,n)}function XR(t,e,n){Kv(t,e),Wv(t,n)}function S1(t,e,n){Du(t,e),Iu(t,n)}function QR(t,e,n){F8(t,e),R8(t,n)}function ZR(t,e,n){B8(t,e),j8(t,n)}function Fet(t,e){Z8(t,e),$8(t,t.D)}function B2t(t){UVt.call(this,t,!0)}function xGt(t,e,n){Cbt.call(this,t,e,n)}function Fp(t){e2(),San.call(this,t)}function kGt(){AR.call(this,"Head",1)}function EGt(){AR.call(this,"Tail",3)}function Bet(t){t.c=Ot(nr,De,1,0,5,1)}function TGt(t){t.a=Ot(nr,De,1,8,5,1)}function _Gt(t){Mu(t.xf(),new wr(t))}function V3(t){return t!=null?ns(t):0}function SKe(t,e){return Xm(e,M1(t))}function AKe(t,e){return Xm(e,M1(t))}function LKe(t,e){return t[t.length]=e}function MKe(t,e){return t[t.length]=e}function R2t(t){return LZe(t.b.Kc(),t.a)}function DKe(t,e){return G$(Fnt(t.d),e)}function IKe(t,e){return G$(Fnt(t.g),e)}function OKe(t,e){return G$(Fnt(t.j),e)}function po(t,e){Ks.call(this,t.b,e)}function Sv(t){Sj.call(this,t,t,t,t)}function j2t(t){return t.b&&iat(t),t.a}function $2t(t){return t.b&&iat(t),t.c}function NKe(t,e){U1||(t.b=e)}function Ret(t,e,n){return ds(t,e,n),n}function CGt(t,e,n){ds(t.c[e.g],e.g,n)}function PKe(t,e,n){u(t.c,69).Xh(e,n)}function FKe(t,e,n){S1(n,n.i+t,n.j+e)}function BKe(t,e){Hr($c(t.a),$Xt(e))}function RKe(t,e){Hr(pl(t.a),zXt(e))}function i_(t){Ai(),gv.call(this,t)}function jKe(t){return t==null?0:ns(t)}function SGt(){SGt=J,cht=new Y_(rft)}function Ur(){Ur=J,new AGt,new le}function AGt(){new Rr,new Rr,new Rr}function z2t(){z2t=J,spt(),D8t=new Rr}function A1(){A1=J,b.Math.log(2)}function lh(){lh=J,p0=(NHt(),H3e)}function $Ke(){throw et(new mg(g0e))}function zKe(){throw et(new mg(g0e))}function qKe(){throw et(new mg(p0e))}function HKe(){throw et(new mg(p0e))}function LGt(t){this.a=t,svt.call(this,t)}function jet(t){this.a=t,pR.call(this,t)}function $et(t){this.a=t,pR.call(this,t)}function ua(t,e){vnt(t.c,t.c.length,e)}function sc(t){return t.ae?1:0}function DGt(t,e){return Oc(t,e)>0?t:e}function hu(t,e,n){return{l:t,m:e,h:n}}function VKe(t,e){t.a!=null&&PVt(e,t.a)}function IGt(t){t.a=new Wt,t.c=new Wt}function JR(t){this.b=t,this.a=new le}function OGt(t){this.b=new dg,this.a=t}function H2t(t){Pbt.call(this),this.a=t}function NGt(){AR.call(this,"Range",2)}function PGt(){B3t(),this.a=new fI(s9t)}function GKe(t,e){zr(e),Y3(t).Jc(new nt)}function UKe(t,e){return zl(),e.n.b+=t}function WKe(t,e,n){return Pi(t.g,n,e)}function KKe(t,e,n){return Pi(t.k,n,e)}function YKe(t,e){return Pi(t.a,e.a,e)}function G3(t,e,n){return r3t(e,n,t.c)}function V2t(t){return new je(t.c,t.d)}function XKe(t){return new je(t.c,t.d)}function pc(t){return new je(t.a,t.b)}function FGt(t,e){return myn(t.a,e,null)}function QKe(t){Ua(t,null),ma(t,null)}function BGt(t){srt(t,null),art(t,null)}function RGt(){OM.call(this,null,null)}function jGt(){oj.call(this,null,null)}function G2t(t){this.a=t,Rr.call(this)}function ZKe(t){this.b=(pn(),new z(t))}function tj(t){t.j=Ot(V8t,te,310,0,0,1)}function JKe(t,e,n){t.c.Vc(e,u(n,133))}function tYe(t,e,n){t.c.ji(e,u(n,133))}function $Gt(t,e){Ir(t),t.Gc(u(e,15))}function s_(t,e){return Pmn(t.c,t.b,e)}function eYe(t,e){return new cUt(t.Kc(),e)}function zet(t,e){return ton(t.Kc(),e)!=-1}function U2t(t,e){return t.a.Bc(e)!=null}function ej(t){return t.Ob()?t.Pb():null}function zGt(t){return Fh(t,0,t.length)}function Et(t,e){return t!=null&&Git(t,e)}function nYe(t,e){t.q.setHours(e),gC(t,e)}function qGt(t,e){t.c&&(bvt(e),gXt(e))}function rYe(t,e,n){u(t.Kb(n),164).Nb(e)}function iYe(t,e,n){return fyn(t,e,n),n}function HGt(t,e,n){t.a=e^1502,t.b=n^tot}function qet(t,e,n){return t.a[e.g][n.g]}function L1(t,e){return t.a[e.c.p][e.p]}function sYe(t,e){return t.e[e.c.p][e.p]}function aYe(t,e){return t.c[e.c.p][e.p]}function oYe(t,e){return t.j[e.p]=bpn(e)}function cYe(t,e){return Ywt(t.f,e.tg())}function uYe(t,e){return Ywt(t.b,e.tg())}function lYe(t,e){return t.a0?e*e/t:e*e*100}function PYe(t,e){return t>0?e/(t*t):e*100}function FYe(t,e,n){return ue(e,fre(t,n))}function BYe(t,e,n){T$(),t.Xe(e)&&n.td(t)}function h8(t,e,n){var r;r=t.Zc(e),r.Rb(n)}function Nm(t,e,n){return t.a+=e,t.b+=n,t}function RYe(t,e,n){return t.a*=e,t.b*=n,t}function FM(t,e,n){return t.a-=e,t.b-=n,t}function bbt(t,e){return t.a=e.a,t.b=e.b,t}function lj(t){return t.a=-t.a,t.b=-t.b,t}function yUt(t){this.c=t,this.a=1,this.b=1}function xUt(t){this.c=t,Du(t,0),Iu(t,0)}function kUt(t){hs.call(this),P_(this,t)}function EUt(t){mat(),K$t(this),this.mf(t)}function TUt(t,e){jT(),OM.call(this,t,e)}function vbt(t,e){kg(),oj.call(this,t,e)}function _Ut(t,e){kg(),oj.call(this,t,e)}function CUt(t,e){kg(),vbt.call(this,t,e)}function Ml(t,e,n){Nl.call(this,t,e,n,2)}function Yet(t,e){lh(),Cj.call(this,t,e)}function SUt(t,e){lh(),Yet.call(this,t,e)}function wbt(t,e){lh(),Yet.call(this,t,e)}function AUt(t,e){lh(),wbt.call(this,t,e)}function mbt(t,e){lh(),Cj.call(this,t,e)}function LUt(t,e){lh(),mbt.call(this,t,e)}function MUt(t,e){lh(),Cj.call(this,t,e)}function jYe(t,e){return t.c.Fc(u(e,133))}function ybt(t,e,n){return gq(wD(t,e),n)}function $Ye(t,e,n){return e.Qk(t.e,t.c,n)}function zYe(t,e,n){return e.Rk(t.e,t.c,n)}function Xet(t,e){return Xp(t.e,u(e,49))}function qYe(t,e,n){W_(pl(t.a),e,zXt(n))}function HYe(t,e,n){W_($c(t.a),e,$Xt(n))}function xbt(t,e){e.$modCount=t.$modCount}function l_(){l_=J,NS=new rs("root")}function f8(){f8=J,uN=new Czt,new Szt}function DUt(){this.a=new $v,this.b=new $v}function kbt(){Xte.call(this),this.Bb|=oo}function IUt(){ei.call(this,"GROW_TREE",0)}function VYe(t){return t==null?null:c3n(t)}function GYe(t){return t==null?null:bdn(t)}function UYe(t){return t==null?null:Jo(t)}function WYe(t){return t==null?null:Jo(t)}function A0(t){t.o==null&&Vgn(t)}function Be(t){return d_(t==null||Dm(t)),t}function xe(t){return d_(t==null||Im(t)),t}function Kr(t){return d_(t==null||pa(t)),t}function Ebt(t){this.q=new b.Date(qv(t))}function BM(t,e){this.c=t,n8.call(this,t,e)}function hj(t,e){this.a=t,BM.call(this,t,e)}function KYe(t,e){this.d=t,wtt(this),this.b=e}function Tbt(t,e){Srt.call(this,t),this.a=e}function _bt(t,e){Srt.call(this,t),this.a=e}function YYe(t){Zyt.call(this,0,0),this.f=t}function Cbt(t,e,n){k$.call(this,t,e,n,null)}function OUt(t,e,n){k$.call(this,t,e,n,null)}function XYe(t,e,n){return t.ue(e,n)<=0?n:e}function QYe(t,e,n){return t.ue(e,n)<=0?e:n}function ZYe(t,e){return u(Vv(t.b,e),149)}function JYe(t,e){return u(Vv(t.c,e),229)}function Qet(t){return u(Fe(t.a,t.b),287)}function NUt(t){return new je(t.c,t.d+t.a)}function PUt(t){return zl(),wGt(u(t,197))}function Pm(){Pm=J,N7t=on((Fl(),Hb))}function tXe(t,e){e.a?j2n(t,e):Het(t.a,e.b)}function FUt(t,e){U1||ue(t.a,e)}function eXe(t,e){return bM(),G8(e.d.i,t)}function nXe(t,e){return Y6(),new Rce(e,t)}function bd(t,e){return JM(e,L6t),t.f=e,t}function Sbt(t,e,n){return n=Yl(t,e,3,n),n}function Abt(t,e,n){return n=Yl(t,e,6,n),n}function Lbt(t,e,n){return n=Yl(t,e,9,n),n}function RM(t,e,n){++t.j,t.Ki(),_rt(t,e,n)}function BUt(t,e,n){++t.j,t.Hi(e,t.oi(e,n))}function RUt(t,e,n){var r;r=t.Zc(e),r.Rb(n)}function jUt(t,e,n){return H5t(t.c,t.b,e,n)}function Mbt(t,e){return(e&Di)%t.d.length}function Ks(t,e){rs.call(this,t),this.a=e}function Dbt(t,e){Zgt.call(this,t),this.a=e}function Zet(t,e){Zgt.call(this,t),this.a=e}function $Ut(t,e){this.c=t,Gv.call(this,e)}function zUt(t,e){this.a=t,q$t.call(this,e)}function jM(t,e){this.a=t,q$t.call(this,e)}function qUt(t){this.a=(Gl(t,vy),new iu(t))}function HUt(t){this.a=(Gl(t,vy),new iu(t))}function $M(t){return!t.a&&(t.a=new st),t.a}function VUt(t){return t>8?0:t+1}function rXe(t,e){return Rn(),t==e?0:t?1:-1}function Ibt(t,e,n){return O6(t,u(e,22),n)}function iXe(t,e,n){return t.apply(e,n)}function GUt(t,e,n){return t.a+=Fh(e,0,n),t}function Obt(t,e){var n;return n=t.e,t.e=e,n}function sXe(t,e){var n;n=t[Jat],n.call(t,e)}function aXe(t,e){var n;n=t[Jat],n.call(t,e)}function Fm(t,e){t.a.Vc(t.b,e),++t.b,t.c=-1}function UUt(t){al(t.e),t.d.b=t.d,t.d.a=t.d}function zM(t){t.b?zM(t.b):t.f.c.zc(t.e,t.d)}function oXe(t,e,n){G2(),stt(t,e.Ce(t.a,n))}function cXe(t,e){return Xtt(Are(t.a,e,!0))}function uXe(t,e){return Xtt(Lre(t.a,e,!0))}function pf(t,e){return uR(new Array(e),t)}function Jet(t){return String.fromCharCode(t)}function lXe(t){return t==null?null:t.message}function WUt(){this.a=new le,this.b=new le}function KUt(){this.a=new EE,this.b=new rzt}function YUt(){this.b=new Ra,this.c=new le}function Nbt(){this.d=new Ra,this.e=new Ra}function Pbt(){this.n=new Ra,this.o=new Ra}function fj(){this.n=new v6,this.i=new S6}function XUt(){this.a=new SJ,this.b=new LX}function QUt(){this.a=new le,this.d=new le}function ZUt(){this.b=new na,this.a=new na}function JUt(){this.b=new Rr,this.a=new Rr}function tWt(){this.b=new Nqt,this.a=new kQ}function eWt(){fj.call(this),this.a=new Ra}function h_(t){Pan.call(this,t,(C$(),but))}function Fbt(t,e,n,r){Sj.call(this,t,e,n,r)}function hXe(t,e,n){n!=null&&H$(e,nst(t,n))}function fXe(t,e,n){n!=null&&V$(e,nst(t,n))}function Bbt(t,e,n){return n=Yl(t,e,11,n),n}function $i(t,e){return t.a+=e.a,t.b+=e.b,t}function ba(t,e){return t.a-=e.a,t.b-=e.b,t}function dXe(t,e){return t.n.a=(Pn(e),e+10)}function gXe(t,e){return t.n.a=(Pn(e),e+10)}function pXe(t,e){return e==t||f7(Jz(e),t)}function nWt(t,e){return Pi(t.a,e,"")==null}function bXe(t,e){return bM(),!G8(e.d.i,t)}function vXe(t,e){Pp(t.f)?Ngn(t,e):w1n(t,e)}function wXe(t,e){var n;return n=e.Hh(t.a),n}function Bm(t,e){Oo.call(this,VC+t+_b+e)}function M6(t,e,n,r){he.call(this,t,e,n,r)}function Rbt(t,e,n,r){he.call(this,t,e,n,r)}function rWt(t,e,n,r){Rbt.call(this,t,e,n,r)}function iWt(t,e,n,r){Bj.call(this,t,e,n,r)}function tnt(t,e,n,r){Bj.call(this,t,e,n,r)}function jbt(t,e,n,r){Bj.call(this,t,e,n,r)}function sWt(t,e,n,r){tnt.call(this,t,e,n,r)}function $bt(t,e,n,r){tnt.call(this,t,e,n,r)}function Tn(t,e,n,r){jbt.call(this,t,e,n,r)}function aWt(t,e,n,r){$bt.call(this,t,e,n,r)}function oWt(t,e,n,r){Rvt.call(this,t,e,n,r)}function cWt(t,e,n){this.a=t,fbt.call(this,e,n)}function uWt(t,e,n){this.c=e,this.b=n,this.a=t}function mXe(t,e,n){return t.d=u(e.Kb(n),164)}function zbt(t,e){return t.Aj().Nh().Kh(t,e)}function qbt(t,e){return t.Aj().Nh().Ih(t,e)}function lWt(t,e){return Pn(t),qt(t)===qt(e)}function ln(t,e){return Pn(t),qt(t)===qt(e)}function ent(t,e){return Xtt(Are(t.a,e,!1))}function nnt(t,e){return Xtt(Lre(t.a,e,!1))}function yXe(t,e){return t.b.sd(new HHt(t,e))}function xXe(t,e){return t.b.sd(new VHt(t,e))}function hWt(t,e){return t.b.sd(new GHt(t,e))}function Hbt(t,e,n){return t.lastIndexOf(e,n)}function kXe(t,e,n){return Vs(t[e.b],t[n.b])}function EXe(t,e){return Jt(e,(Ce(),_O),t)}function TXe(t,e){return Tu(e.a.d.p,t.a.d.p)}function _Xe(t,e){return Tu(t.a.d.p,e.a.d.p)}function CXe(t,e){return Vs(t.c-t.s,e.c-e.s)}function fWt(t){return t.c?Qo(t.c.a,t,0):-1}function SXe(t){return t<100?null:new Lp(t)}function D6(t){return t==qb||t==g0||t==eu}function dWt(t,e){return Et(e,15)&&mce(t.c,e)}function AXe(t,e){U1||e&&(t.d=e)}function rnt(t,e){var n;return n=e,!!fyt(t,n)}function Vbt(t,e){this.c=t,Mnt.call(this,t,e)}function gWt(t){this.c=t,Iet.call(this,kq,0)}function pWt(t,e){OZe.call(this,t,t.length,e)}function LXe(t,e,n){return u(t.c,69).lk(e,n)}function dj(t,e,n){return u(t.c,69).mk(e,n)}function MXe(t,e,n){return $Ye(t,u(e,332),n)}function Gbt(t,e,n){return zYe(t,u(e,332),n)}function DXe(t,e,n){return dse(t,u(e,332),n)}function bWt(t,e,n){return L1n(t,u(e,332),n)}function f_(t,e){return e==null?null:ty(t.b,e)}function Ubt(t){return Im(t)?(Pn(t),t):t.ke()}function gj(t){return!isNaN(t)&&!isFinite(t)}function vWt(t){vd(),this.a=(pn(),new Qk(t))}function qM(t){g8(),this.d=t,this.a=new P3}function hh(t,e,n){this.a=t,this.b=e,this.c=n}function wWt(t,e,n){this.a=t,this.b=e,this.c=n}function mWt(t,e,n){this.d=t,this.b=n,this.a=e}function int(t){IGt(this),Nh(this),io(this,t)}function Uu(t){Bet(this),ovt(this.c,0,t.Pc())}function yWt(t){Ol(t.a),vJt(t.c,t.b),t.b=null}function xWt(t){this.a=t,Gd(),Ou(Date.now())}function kWt(){kWt=J,h7t=new C,$H=new C}function snt(){snt=J,n7t=new It,$0e=new Nt}function EWt(){EWt=J,K3e=Ot(nr,De,1,0,5,1)}function TWt(){TWt=J,f4e=Ot(nr,De,1,0,5,1)}function Wbt(){Wbt=J,d4e=Ot(nr,De,1,0,5,1)}function vd(){vd=J,new ept((pn(),pn(),wo))}function IXe(t){return C$(),ri((AJt(),H0e),t)}function OXe(t){return j1(),ri((WZt(),Y0e),t)}function NXe(t){return _z(),ri((tZt(),ege),t)}function PXe(t){return D$(),ri((eZt(),nge),t)}function FXe(t){return sq(),ri((zee(),rge),t)}function BXe(t){return t1(),ri((VZt(),age),t)}function RXe(t){return ol(),ri((GZt(),cge),t)}function jXe(t){return Lu(),ri((UZt(),lge),t)}function $Xe(t){return yq(),ri((rGt(),Oge),t)}function zXe(t){return Qv(),ri((MJt(),Pge),t)}function qXe(t){return ex(),ri((DJt(),Bge),t)}function HXe(t){return J_(),ri((IJt(),$ge),t)}function VXe(t){return mR(),ri((IQt(),zge),t)}function GXe(t){return I$(),ri((nZt(),ipe),t)}function UXe(t){return O_(),ri((KZt(),_pe),t)}function WXe(t){return so(),ri((cte(),Lpe),t)}function KXe(t){return K8(),ri((LJt(),Npe),t)}function YXe(t){return Zv(),ri((YZt(),$pe),t)}function Kbt(t,e){if(!t)throw et(new Bn(e))}function XXe(t){return Kn(),ri((Lte(),Vpe),t)}function Ybt(t){Sj.call(this,t.d,t.c,t.a,t.b)}function ant(t){Sj.call(this,t.d,t.c,t.a,t.b)}function Xbt(t,e,n){this.b=t,this.c=e,this.a=n}function pj(t,e,n){this.b=t,this.a=e,this.c=n}function _Wt(t,e,n){this.a=t,this.b=e,this.c=n}function Qbt(t,e,n){this.a=t,this.b=e,this.c=n}function CWt(t,e,n){this.a=t,this.b=e,this.c=n}function Zbt(t,e,n){this.a=t,this.b=e,this.c=n}function SWt(t,e,n){this.b=t,this.a=e,this.c=n}function bj(t,e,n){this.e=e,this.b=t,this.d=n}function QXe(t,e,n){return G2(),t.a.Od(e,n),e}function ont(t){var e;return e=new qn,e.e=t,e}function Jbt(t){var e;return e=new lzt,e.b=t,e}function HM(){HM=J,JH=new gY,tV=new pY}function bf(){bf=J,i2e=new iX,s2e=new hF}function ZXe(t){return iz(),ri((NJt(),Jpe),t)}function JXe(t){return R1(),ri((FJt(),c2e),t)}function tQe(t){return rq(),ri((Mee(),b2e),t)}function eQe(t){return rx(),ri((Ite(),v2e),t)}function nQe(t){return E$(),ri((cZt(),w2e),t)}function rQe(t){return K6(),ri((XZt(),m2e),t)}function iQe(t){return g4(),ri((rte(),l2e),t)}function sQe(t){return Xv(),ri((JZt(),p2e),t)}function aQe(t){return z$(),ri((QZt(),y2e),t)}function oQe(t){return pb(),ri((ete(),x2e),t)}function cQe(t){return ED(),ri((iZt(),k2e),t)}function uQe(t){return ob(),ri((ZZt(),T2e),t)}function lQe(t){return Wz(),ri((Fte(),_2e),t)}function hQe(t){return pD(),ri((sZt(),C2e),t)}function fQe(t){return eI(),ri((Nte(),S2e),t)}function dQe(t){return g7(),ri((Ote(),A2e),t)}function gQe(t){return ko(),ri((nne(),L2e),t)}function pQe(t){return W8(),ri((eJt(),M2e),t)}function bQe(t){return F0(),ri((tJt(),I2e),t)}function vQe(t){return f$(),ri((uZt(),O2e),t)}function wQe(t){return mh(),ri((ite(),N2e),t)}function mQe(t){return Hz(),ri((Pte(),Yve),t)}function yQe(t){return H_(),ri((nJt(),Xve),t)}function xQe(t){return ry(),ri((BJt(),Qve),t)}function kQe(t){return yo(),ri((sJt(),rwe),t)}function EQe(t){return w4(),ri((Lee(),Jve),t)}function TQe(t){return R0(),ri((iJt(),twe),t)}function _Qe(t){return mD(),ri((oZt(),ewe),t)}function CQe(t){return tz(),ri((rJt(),iwe),t)}function SQe(t){return tC(),ri((nte(),Zve),t)}function AQe(t){return uD(),ri((aZt(),swe),t)}function LQe(t){return t7(),ri((oJt(),awe),t)}function MQe(t){return Z$(),ri((cJt(),owe),t)}function DQe(t){return sz(),ri((aJt(),cwe),t)}function IQe(t){return Yv(),ri((uJt(),xwe),t)}function OQe(t){return D_(),ri((hZt(),Cwe),t)}function NQe(t){return md(),ri((fZt(),Owe),t)}function PQe(t){return D1(),ri((dZt(),Pwe),t)}function FQe(t){return Qf(),ri((lZt(),Xwe),t)}function BQe(t){return jv(),ri((gZt(),rme),t)}function RQe(t){return u7(),ri((OJt(),ime),t)}function jQe(t){return aC(),ri((Bte(),ame),t)}function $Qe(t){return i$(),ri((vZt(),yme),t)}function zQe(t){return Y$(),ri((bZt(),Cme),t)}function qQe(t){return c$(),ri((pZt(),xme),t)}function HQe(t){return bz(),ri((lJt(),Ame),t)}function VQe(t){return _$(),ri((wZt(),Lme),t)}function GQe(t){return BD(),ri((hJt(),Mme),t)}function UQe(t){return Pz(),ri((PJt(),Gme),t)}function WQe(t){return J$(),ri((dJt(),Ume),t)}function KQe(t){return pz(),ri((fJt(),Wme),t)}function YQe(t){return y7(),ri((ote(),dye),t)}function XQe(t){return HD(),ri((gJt(),gye),t)}function QQe(t){return xR(),ri((MQt(),pye),t)}function ZQe(t){return kR(),ri((LQt(),vye),t)}function JQe(t){return lD(),ri((yZt(),wye),t)}function tZe(t){return rI(),ri((ste(),mye),t)}function eZe(t){return BT(),ri((DQt(),Pye),t)}function nZe(t){return OD(),ri((mZt(),Fye),t)}function rZe(t){return n1(),ri((ate(),qye),t)}function iZe(t){return Rg(),ri((Dee(),Vye),t)}function sZe(t){return t0(),ri((Dte(),Gye),t)}function aZe(t){return ay(),ri((Mte(),Qye),t)}function oZe(t){return vo(),ri((iGt(),Xpe),t)}function cZe(t){return q8(),ri((rZt(),Ype),t)}function uZe(t){return xo(),ri((ute(),f3e),t)}function lZe(t){return F1(),ri((bJt(),d3e),t)}function hZe(t){return z0(),ri(($Jt(),g3e),t)}function fZe(t){return Gz(),ri((jte(),p3e),t)}function dZe(t){return j0(),ri((pJt(),v3e),t)}function gZe(t){return Wl(),ri((jJt(),m3e),t)}function pZe(t){return ly(),ri(($ee(),y3e),t)}function bZe(t){return c4(),ri((lte(),x3e),t)}function vZe(t){return xa(),ri((_te(),k3e),t)}function wZe(t){return cl(),ri((Rte(),E3e),t)}function mZe(t){return Fl(),ri((qJt(),L3e),t)}function yZe(t){return ml(),ri((rne(),M3e),t)}function xZe(t){return we(),ri((hte(),T3e),t)}function kZe(t){return mz(),ri((zJt(),D3e),t)}function EZe(t){return Pl(),ri((RJt(),N3e),t)}function TZe(t){return v7(),ri((Iee(),W3e),t)}function _Ze(t,e){return Pn(t),t+(Pn(e),e)}function CZe(t,e){return Gd(),Hr(Ut(t.a),e)}function SZe(t,e){return Gd(),Hr(Ut(t.a),e)}function cnt(t,e){this.c=t,this.a=e,this.b=e-t}function AWt(t,e,n){this.a=t,this.b=e,this.c=n}function tvt(t,e,n){this.a=t,this.b=e,this.c=n}function evt(t,e,n){this.a=t,this.b=e,this.c=n}function LWt(t,e,n){this.a=t,this.b=e,this.c=n}function MWt(t,e,n){this.a=t,this.b=e,this.c=n}function Tg(t,e,n){this.e=t,this.a=e,this.c=n}function DWt(t,e,n){lh(),dwt.call(this,t,e,n)}function unt(t,e,n){lh(),Qvt.call(this,t,e,n)}function nvt(t,e,n){lh(),Qvt.call(this,t,e,n)}function rvt(t,e,n){lh(),Qvt.call(this,t,e,n)}function IWt(t,e,n){lh(),unt.call(this,t,e,n)}function ivt(t,e,n){lh(),unt.call(this,t,e,n)}function OWt(t,e,n){lh(),ivt.call(this,t,e,n)}function NWt(t,e,n){lh(),nvt.call(this,t,e,n)}function PWt(t,e,n){lh(),rvt.call(this,t,e,n)}function VM(t,e){return zr(t),zr(e),new nHt(t,e)}function I6(t,e){return zr(t),zr(e),new KWt(t,e)}function AZe(t,e){return zr(t),zr(e),new YWt(t,e)}function LZe(t,e){return zr(t),zr(e),new iHt(t,e)}function u(t,e){return d_(t==null||Git(t,e)),t}function d8(t){var e;return e=new le,Rrt(e,t),e}function MZe(t){var e;return e=new na,Rrt(e,t),e}function FWt(t){var e;return e=new lpt,Zrt(e,t),e}function GM(t){var e;return e=new hs,Zrt(e,t),e}function DZe(t){return!t.e&&(t.e=new le),t.e}function IZe(t){return!t.c&&(t.c=new mm),t.c}function ue(t,e){return t.c[t.c.length]=e,!0}function BWt(t,e){this.c=t,this.b=e,this.a=!1}function svt(t){this.d=t,wtt(this),this.b=TJe(t.d)}function RWt(){this.a=";,;",this.b="",this.c=""}function OZe(t,e,n){jKt.call(this,e,n),this.a=t}function jWt(t,e,n){this.b=t,JVt.call(this,e,n)}function avt(t,e,n){this.c=t,LR.call(this,e,n)}function ovt(t,e,n){L4t(n,0,t,e,n.length,!1)}function Wd(t,e,n,r,s){t.b=e,t.c=n,t.d=r,t.a=s}function NZe(t,e){e&&(t.b=e,t.a=(qp(e),e.a))}function cvt(t,e,n,r,s){t.d=e,t.c=n,t.a=r,t.b=s}function uvt(t){var e,n;e=t.b,n=t.c,t.b=n,t.c=e}function lvt(t){var e,n;n=t.d,e=t.a,t.d=e,t.a=n}function hvt(t){return Wp($Je(Xo(t)?Ph(t):t))}function PZe(t,e){return Tu(eKt(t.d),eKt(e.d))}function FZe(t,e){return e==(we(),jn)?t.c:t.d}function g8(){g8=J,M_t=(we(),jn),sG=Wn}function $Wt(){this.b=Xt(xe(Ie((i1(),Out))))}function zWt(t){return G2(),Ot(nr,De,1,t,5,1)}function BZe(t){return new je(t.c+t.b,t.d+t.a)}function RZe(t,e){return yR(),Tu(t.d.p,e.d.p)}function lnt(t){return ir(t.b!=0),bh(t,t.a.a)}function jZe(t){return ir(t.b!=0),bh(t,t.c.b)}function fvt(t,e){if(!t)throw et(new Xzt(e))}function vj(t,e){if(!t)throw et(new Bn(e))}function dvt(t,e,n){a8.call(this,t,e),this.b=n}function UM(t,e,n){A2t.call(this,t,e),this.c=n}function qWt(t,e,n){mte.call(this,e,n),this.d=t}function gvt(t){Wbt(),Ck.call(this),this.th(t)}function HWt(t,e,n){this.a=t,q3.call(this,e,n)}function VWt(t,e,n){this.a=t,q3.call(this,e,n)}function wj(t,e,n){A2t.call(this,t,e),this.c=n}function GWt(){L8(),itn.call(this,(Ip(),tf))}function UWt(t){return t!=null&&!Dit(t,ZS,JS)}function $Ze(t,e){return(ere(t)<<4|ere(e))&Ns}function zZe(t,e){return qj(),Jit(t,e),new mYt(t,e)}function W2(t,e){var n;t.n&&(n=e,ue(t.f,n))}function p8(t,e,n){var r;r=new zm(n),Jf(t,e,r)}function qZe(t,e){var n;return n=t.c,Imt(t,e),n}function pvt(t,e){return e<0?t.g=-1:t.g=e,t}function mj(t,e){return Csn(t),t.a*=e,t.b*=e,t}function WWt(t,e,n,r,s){t.c=e,t.d=n,t.b=r,t.a=s}function pi(t,e){return Cs(t,e,t.c.b,t.c),!0}function bvt(t){t.a.b=t.b,t.b.a=t.a,t.a=t.b=null}function hnt(t){this.b=t,this.a=Iv(this.b.a).Ed()}function KWt(t,e){this.b=t,this.a=e,aT.call(this)}function YWt(t,e){this.a=t,this.b=e,aT.call(this)}function XWt(t,e){jKt.call(this,e,1040),this.a=t}function WM(t){return t==0||isNaN(t)?t:t<0?-1:1}function HZe(t){return R6(),e0(t)==gs(Zp(t))}function VZe(t){return R6(),Zp(t)==gs(e0(t))}function Dv(t,e){return iC(t,new a8(e.a,e.b))}function GZe(t){return!ro(t)&&t.c.i.c==t.d.i.c}function yj(t){var e;return e=t.n,t.a.b+e.d+e.a}function QWt(t){var e;return e=t.n,t.e.b+e.d+e.a}function vvt(t){var e;return e=t.n,t.e.a+e.b+e.c}function ZWt(t){return Ai(),new Kd(0,t)}function UZe(t){return t.a?t.a:Gnt(t)}function d_(t){if(!t)throw et(new Xk(null))}function JWt(){JWt=J,vft=(pn(),new I(Uct))}function xj(){xj=J,new g3t((Rtt(),iut),(jtt(),rut))}function tKt(){tKt=J,j8t=Ot(to,te,19,256,0,1)}function fnt(t,e,n,r){Hyt.call(this,t,e,n,r,0,0)}function WZe(t,e,n){return Pi(t.b,u(n.b,17),e)}function KZe(t,e,n){return Pi(t.b,u(n.b,17),e)}function YZe(t,e){return ue(t,new je(e.a,e.b))}function XZe(t,e){return t.c=e)throw et(new apt)}function IJe(t,e,n){return ds(e,0,xvt(e[0],n[0])),e}function OJe(t,e,n){e.Ye(n,Xt(xe(or(t.b,n)))*t.a)}function RKt(t,e,n){return y4(),H8(t,e)&&H8(t,n)}function w_(t){return cl(),!t.Hc(J0)&&!t.Hc(E2)}function Pj(t){return new je(t.c+t.b/2,t.d+t.a/2)}function Tnt(t,e){return e.kh()?Xp(t.b,u(e,49)):e}function Bvt(t,e){this.e=t,this.d=e&64?e|kd:e}function jKt(t,e){this.c=0,this.d=t,this.b=e|64|kd}function Fj(t){this.b=new iu(11),this.a=(X3(),t)}function _nt(t){this.b=null,this.a=(X3(),t||J8t)}function $Kt(t){this.a=uie(t.a),this.b=new Uu(t.b)}function zKt(t){this.b=t,A6.call(this,t),VGt(this)}function qKt(t){this.b=t,NM.call(this,t),GGt(this)}function $m(t,e,n){this.a=t,M6.call(this,e,n,5,6)}function Rvt(t,e,n,r){this.b=t,qs.call(this,e,n,r)}function la(t,e,n,r,s){Mrt.call(this,t,e,n,r,s,-1)}function m_(t,e,n,r,s){dD.call(this,t,e,n,r,s,-1)}function he(t,e,n,r){qs.call(this,t,e,n),this.b=r}function Bj(t,e,n,r){UM.call(this,t,e,n),this.b=r}function HKt(t){UVt.call(this,t,!1),this.a=!1}function VKt(t,e){this.b=t,KJ.call(this,t.b),this.a=e}function GKt(t,e){qm(),FWe.call(this,t,hz(new Al(e)))}function Rj(t,e){return Ai(),new Zvt(t,e,0)}function Cnt(t,e){return Ai(),new Zvt(6,t,e)}function NJe(t,e){return ln(t.substr(0,e.length),e)}function Il(t,e){return pa(e)?Knt(t,e):!!qo(t.f,e)}function Da(t,e){for(Pn(e);t.Ob();)e.td(t.Pb())}function K3(t,e,n){e2(),this.e=t,this.d=e,this.a=n}function _g(t,e,n,r){var s;s=t.i,s.i=e,s.a=n,s.b=r}function jvt(t){var e;for(e=t;e.f;)e=e.f;return e}function P6(t){var e;return e=q_(t),ir(e!=null),e}function PJe(t){var e;return e=ycn(t),ir(e!=null),e}function v8(t,e){var n;return n=t.a.gc(),Xwt(e,n),n-e}function $vt(t,e){var n;for(n=0;n0?b.Math.log(t/e):-100}function UKt(t,e){return Oc(t,e)<0?-1:Oc(t,e)>0?1:0}function Gvt(t,e,n){return Bue(t,u(e,46),u(n,167))}function WKt(t,e){return u(Pvt(Iv(t.a)).Xb(e),42).cd()}function VJe(t,e){return dsn(e,t.length),new XWt(t,e)}function Mnt(t,e){this.d=t,lr.call(this,t),this.e=e}function Ov(t){this.d=(Pn(t),t),this.a=0,this.c=kq}function Uvt(t,e){gv.call(this,1),this.a=t,this.b=e}function KKt(t,e){return t.c?KKt(t.c,e):ue(t.b,e),t}function GJe(t,e,n){var r;return r=Km(t,e),grt(t,e,n),r}function Wvt(t,e){var n;return n=t.slice(0,e),lmt(n,t)}function YKt(t,e,n){var r;for(r=0;r=t.g}function jnt(t,e,n){var r;return r=Xrt(t,e,n),x5t(t,r)}function F6(t,e){var n;n=t.a.length,Km(t,n),grt(t,n,e)}function lYt(t,e){var n;n=console[t],n.call(console,e)}function hYt(t,e){var n;++t.j,n=t.Vi(),t.Ii(t.oi(n,e))}function rtn(t,e,n){u(e.b,65),Mu(e.a,new tvt(t,n,e))}function Qvt(t,e,n){ZB.call(this,e),this.a=t,this.b=n}function Zvt(t,e,n){gv.call(this,t),this.a=e,this.b=n}function Jvt(t,e,n){this.a=t,Zgt.call(this,e),this.b=n}function fYt(t,e,n){this.a=t,Lwt.call(this,8,e,null,n)}function itn(t){this.a=(Pn(si),si),this.b=t,new mpt}function dYt(t){this.c=t,this.b=this.c.a,this.a=this.c.e}function twt(t){this.c=t,this.b=t.a.d.a,xbt(t.a.e,this)}function Ol(t){Om(t.c!=-1),t.d.$c(t.c),t.b=t.c,t.c=-1}function k_(t){return b.Math.sqrt(t.a*t.a+t.b*t.b)}function Pv(t,e){return b8(e,t.a.c.length),Fe(t.a,e)}function wd(t,e){return qt(t)===qt(e)||t!=null&&Ni(t,e)}function stn(t){return 0>=t?new Upt:Gsn(t-1)}function atn(t){return t3?Knt(t3,t):!1}function gYt(t){return t?t.dc():!t.Kc().Ob()}function Qa(t){return!t.a&&t.c?t.c.b:t.a}function otn(t){return!t.a&&(t.a=new qs(T2,t,4)),t.a}function Fv(t){return!t.d&&(t.d=new qs(Co,t,1)),t.d}function Pn(t){if(t==null)throw et(new ET);return t}function E_(t){t.c?t.c.He():(t.d=!0,f2n(t))}function qp(t){t.c?qp(t.c):(hb(t),t.d=!0)}function pYt(t){iwt(t.a),t.b=Ot(nr,De,1,t.b.length,5,1)}function ctn(t,e){return Tu(e.j.c.length,t.j.c.length)}function utn(t,e){t.c<0||t.b.b=0?t.Bh(n):D4t(t,e)}function bYt(t){var e,n;return e=t.c.i.c,n=t.d.i.c,e==n}function htn(t){if(t.p!=4)throw et(new qu);return t.e}function ftn(t){if(t.p!=3)throw et(new qu);return t.e}function dtn(t){if(t.p!=6)throw et(new qu);return t.f}function gtn(t){if(t.p!=6)throw et(new qu);return t.k}function ptn(t){if(t.p!=3)throw et(new qu);return t.j}function btn(t){if(t.p!=4)throw et(new qu);return t.j}function ewt(t){return!t.b&&(t.b=new JB(new Btt)),t.b}function Bv(t){return t.c==-2&&Gk(t,N1n(t.g,t.b)),t.c}function y8(t,e){var n;return n=Nnt("",t),n.n=e,n.i=1,n}function vtn(t,e){mnt(u(e.b,65),t),Mu(e.a,new fi(t))}function wtn(t,e){Hr((!t.a&&(t.a=new jM(t,t)),t.a),e)}function vYt(t,e){this.b=t,Mnt.call(this,t,e),VGt(this)}function wYt(t,e){this.b=t,Vbt.call(this,t,e),GGt(this)}function nwt(t,e,n,r){Ev.call(this,t,e),this.d=n,this.a=r}function zj(t,e,n,r){Ev.call(this,t,n),this.a=e,this.f=r}function mYt(t,e){ZKe.call(this,Usn(zr(t),zr(e))),this.a=e}function yYt(){u4t.call(this,Sb,(Eqt(),x4e)),$mn(this)}function xYt(){u4t.call(this,Hh,(t8(),OAt)),Ywn(this)}function kYt(){ei.call(this,"DELAUNAY_TRIANGULATION",0)}function mtn(t){return String.fromCharCode.apply(null,t)}function Pi(t,e,n){return pa(e)?Po(t,e,n):du(t.f,e,n)}function rwt(t){return pn(),t?t.ve():(X3(),X3(),e7t)}function ytn(t,e,n){return X6(),n.pg(t,u(e.cd(),146))}function EYt(t,e){return xj(),new g3t(new iUt(t),new rUt(e))}function xtn(t){return Gl(t,_at),O$(Wa(Wa(5,t),t/10|0))}function qj(){qj=J,y0e=new $tt(ct(ot(Ab,1),Eq,42,0,[]))}function TYt(t){return!t.d&&(t.d=new T(t.c.Cc())),t.d}function x8(t){return!t.a&&(t.a=new iqt(t.c.vc())),t.a}function _Yt(t){return!t.b&&(t.b=new Qk(t.c.ec())),t.b}function Xd(t,e){for(;e-- >0;)t=t<<1|(t<0?1:0);return t}function Gc(t,e){return qt(t)===qt(e)||t!=null&&Ni(t,e)}function ktn(t,e){return Rn(),u(e.b,19).ar&&++r,r}function M0(t){var e,n;return n=(e=new pv,e),P8(n,t),n}function Vnt(t){var e,n;return n=(e=new pv,e),f4t(n,t),n}function Btn(t,e){var n;return n=or(t.f,e),Hmt(e,n),null}function Gnt(t){var e;return e=Ksn(t),e||null}function PYt(t){return!t.b&&(t.b=new he(aa,t,12,3)),t.b}function Rtn(t){return t!=null&&gM(KG,t.toLowerCase())}function jtn(t,e){return Vs(Wu(t)*Dl(t),Wu(e)*Dl(e))}function $tn(t,e){return Vs(Wu(t)*Dl(t),Wu(e)*Dl(e))}function ztn(t,e){return Vs(t.d.c+t.d.b/2,e.d.c+e.d.b/2)}function qtn(t,e){return Vs(t.g.c+t.g.b/2,e.g.c+e.g.b/2)}function FYt(t,e,n){n.a?Iu(t,e.b-t.f/2):Du(t,e.a-t.g/2)}function BYt(t,e,n,r){this.a=t,this.b=e,this.c=n,this.d=r}function RYt(t,e,n,r){this.a=t,this.b=e,this.c=n,this.d=r}function X2(t,e,n,r){this.e=t,this.a=e,this.c=n,this.d=r}function jYt(t,e,n,r){this.a=t,this.c=e,this.d=n,this.b=r}function $Yt(t,e,n,r){lh(),IZt.call(this,e,n,r),this.a=t}function zYt(t,e,n,r){lh(),IZt.call(this,e,n,r),this.a=t}function qYt(t,e){this.a=t,KYe.call(this,t,u(t.d,15).Zc(e))}function Unt(t){this.f=t,this.c=this.f.e,t.f>0&&tse(this)}function HYt(t,e,n,r){this.b=t,this.c=r,Iet.call(this,e,n)}function VYt(t){return ir(t.b=0&&ln(t.substr(n,e.length),e)}function Hp(t,e,n,r,s,o,h){return new brt(t.e,e,n,r,s,o,h)}function oXt(t,e,n,r,s,o){this.a=t,Hrt.call(this,e,n,r,s,o)}function cXt(t,e,n,r,s,o){this.a=t,Hrt.call(this,e,n,r,s,o)}function uXt(t,e){this.g=t,this.d=ct(ot(l0,1),$g,10,0,[e])}function Cg(t,e){this.e=t,this.a=nr,this.b=Ice(e),this.c=e}function lXt(t,e){fj.call(this),wmt(this),this.a=t,this.c=e}function tD(t,e,n,r){ds(t.c[e.g],n.g,r),ds(t.c[n.g],e.g,r)}function Qnt(t,e,n,r){ds(t.c[e.g],e.g,n),ds(t.b[e.g],e.g,r)}function len(){return uD(),ct(ot(x_t,1),se,376,0,[iht,DO])}function hen(){return pD(),ct(ot(dEt,1),se,479,0,[fEt,SV])}function fen(){return ED(),ct(ot(lEt,1),se,419,0,[_V,uEt])}function den(){return E$(),ct(ot(nEt,1),se,422,0,[eEt,slt])}function gen(){return f$(),ct(ot(CEt,1),se,420,0,[ylt,_Et])}function pen(){return mD(),ct(ot(v_t,1),se,421,0,[eht,nht])}function ben(){return D_(),ct(ot(_we,1),se,523,0,[AS,SS])}function ven(){return Qf(),ct(ot(Ywe,1),se,520,0,[Vy,v2])}function wen(){return md(),ct(ot(Iwe,1),se,516,0,[Pw,Wg])}function men(){return D1(),ct(ot(Nwe,1),se,515,0,[Bb,Y1])}function yen(){return jv(),ct(ot(nme,1),se,455,0,[w2,e5])}function xen(){return c$(),ct(ot(G_t,1),se,425,0,[mht,V_t])}function ken(){return i$(),ct(ot(H_t,1),se,480,0,[wht,q_t])}function Een(){return Y$(),ct(ot(U_t,1),se,495,0,[pG,E9])}function Ten(){return _$(),ct(ot(K_t,1),se,426,0,[W_t,Eht])}function _en(){return OD(),ct(ot(QCt,1),se,429,0,[TG,XCt])}function Cen(){return lD(),ct(ot(LCt,1),se,430,0,[Iht,kG])}function Sen(){return _z(),ct(ot(g7t,1),se,428,0,[mut,d7t])}function Aen(){return D$(),ct(ot(b7t,1),se,427,0,[p7t,yut])}function Len(){return I$(),ct(ot(V7t,1),se,424,0,[Dut,KH])}function Men(){return q8(),ct(ot(Kpe,1),se,511,0,[gO,Vut])}function Jj(t,e,n,r){return n>=0?t.jh(e,n,r):t.Sg(null,n,r)}function Znt(t){return t.b.b==0?t.a.$e():lnt(t.b)}function Den(t){if(t.p!=5)throw et(new qu);return $r(t.f)}function Ien(t){if(t.p!=5)throw et(new qu);return $r(t.k)}function fwt(t){return qt(t.a)===qt((Jrt(),gft))&&Omn(t),t.a}function hXt(t){this.a=u(zr(t),271),this.b=(pn(),new sbt(t))}function fXt(t,e){Ggt(this,new je(t.a,t.b)),zB(this,GM(e))}function jv(){jv=J,w2=new y2t(fx,0),e5=new y2t(dx,1)}function md(){md=J,Pw=new w2t(dx,0),Wg=new w2t(fx,1)}function $v(){qUe.call(this,new x6(Ym(12))),ebt(!0),this.a=2}function Jnt(t,e,n){Ai(),gv.call(this,t),this.b=e,this.a=n}function dwt(t,e,n){lh(),ZB.call(this,e),this.a=t,this.b=n}function dXt(t){fj.call(this),wmt(this),this.a=t,this.c=!0}function gXt(t){var e;e=t.c.d.b,t.b=e,t.a=t.c.d,e.a=t.c.d.b=t}function t$(t){var e;jsn(t.a),_Gt(t.a),e=new cr(t.a),qyt(e)}function Oen(t,e){Ece(t,!0),Mu(t.e.wf(),new Xbt(t,!0,e))}function e$(t,e){return WQt(e),Fsn(t,Ot(Br,oi,25,e,15,1),e)}function Nen(t,e){return R6(),t==gs(e0(e))||t==gs(Zp(e))}function Uc(t,e){return e==null?gc(qo(t.f,null)):$T(t.g,e)}function Pen(t){return t.b==0?null:(ir(t.b!=0),bh(t,t.a.a))}function Ms(t){return Math.max(Math.min(t,Di),-2147483648)|0}function Fen(t,e){var n=uut[t.charCodeAt(0)];return n??t}function n$(t,e){return Kj(t,"set1"),Kj(e,"set2"),new lHt(t,e)}function Ben(t,e){var n;return n=Dsn(t.f,e),$i(lj(n),t.f.d)}function __(t,e){var n,r;return n=e,r=new ye,hle(t,n,r),r.d}function trt(t,e,n,r){var s;s=new eWt,e.a[n.g]=s,O6(t.b,r,s)}function gwt(t,e,n){var r;r=t.Yg(e),r>=0?t.sh(r,n):r5t(t,e,n)}function Q3(t,e,n){s$(),t&&Pi(hft,t,e),t&&Pi(oN,t,n)}function pXt(t,e,n){this.i=new le,this.b=t,this.g=e,this.a=n}function r$(t,e,n){this.c=new le,this.e=t,this.f=e,this.b=n}function pwt(t,e,n){this.a=new le,this.e=t,this.f=e,this.c=n}function bXt(t,e){tj(this),this.f=e,this.g=t,Wj(this),this._d()}function eD(t,e){var n;n=t.q.getHours(),t.q.setDate(e),gC(t,n)}function vXt(t,e){var n;for(zr(e),n=t.a;n;n=n.c)e.Od(n.g,n.i)}function wXt(t){var e;return e=new fR(Ym(t.length)),ayt(e,t),e}function Ren(t){function e(){}return e.prototype=t||{},new e}function jen(t,e){return Wee(t,e)?(Gte(t),!0):!1}function D0(t,e){if(e==null)throw et(new ET);return Fun(t,e)}function $en(t){if(t.qe())return null;var e=t.n;return DH[e]}function nD(t){return t.Db>>16!=3?null:u(t.Cb,33)}function M1(t){return t.Db>>16!=9?null:u(t.Cb,33)}function mXt(t){return t.Db>>16!=6?null:u(t.Cb,79)}function yXt(t){return t.Db>>16!=7?null:u(t.Cb,235)}function xXt(t){return t.Db>>16!=7?null:u(t.Cb,160)}function gs(t){return t.Db>>16!=11?null:u(t.Cb,33)}function kXt(t,e){var n;return n=t.Yg(e),n>=0?t.lh(n):Lst(t,e)}function EXt(t,e){var n;return n=new yvt(e),Tse(n,t),new Uu(n)}function bwt(t){var e;return e=t.d,e=t.si(t.f),Hr(t,e),e.Ob()}function TXt(t,e){return t.b+=e.b,t.c+=e.c,t.d+=e.d,t.a+=e.a,t}function ert(t,e){return b.Math.abs(t)0}function _Xt(){this.a=new S0,this.e=new na,this.g=0,this.i=0}function CXt(t){this.a=t,this.b=Ot(kwe,te,1944,t.e.length,0,2)}function nrt(t,e,n){var r;r=dne(t,e,n),t.b=new K$(r.c.length)}function D1(){D1=J,Bb=new v2t(cot,0),Y1=new v2t("UP",1)}function i$(){i$=J,wht=new x2t($fe,0),q_t=new x2t("FAN",1)}function s$(){s$=J,hft=new Rr,oN=new Rr,oKe(R0e,new VE)}function qen(t){if(t.p!=0)throw et(new qu);return t_(t.f,0)}function Hen(t){if(t.p!=0)throw et(new qu);return t_(t.k,0)}function SXt(t){return t.Db>>16!=3?null:u(t.Cb,147)}function _8(t){return t.Db>>16!=6?null:u(t.Cb,235)}function Hm(t){return t.Db>>16!=17?null:u(t.Cb,26)}function AXt(t,e){var n=t.a=t.a||[];return n[e]||(n[e]=t.le(e))}function Ven(t,e){var n;return n=t.a.get(e),n??new Array}function Gen(t,e){var n;n=t.q.getHours(),t.q.setMonth(e),gC(t,n)}function Po(t,e,n){return e==null?du(t.f,null,n):Jv(t.g,e,n)}function C_(t,e,n,r,s,o){return new P0(t.e,e,t.aj(),n,r,s,o)}function rD(t,e,n){return t.a=$l(t.a,0,e)+(""+n)+IM(t.a,e),t}function Uen(t,e,n){return ue(t.a,(qj(),Jit(e,n),new Ev(e,n))),t}function vwt(t){return rbt(t.c),t.e=t.a=t.c,t.c=t.c.c,++t.d,t.a.f}function LXt(t){return rbt(t.e),t.c=t.a=t.e,t.e=t.e.e,--t.d,t.a.f}function ma(t,e){t.d&&Au(t.d.e,t),t.d=e,t.d&&ue(t.d.e,t)}function Ua(t,e){t.c&&Au(t.c.g,t),t.c=e,t.c&&ue(t.c.g,t)}function Fo(t,e){t.c&&Au(t.c.a,t),t.c=e,t.c&&ue(t.c.a,t)}function ac(t,e){t.i&&Au(t.i.j,t),t.i=e,t.i&&ue(t.i.j,t)}function MXt(t,e,n){this.a=e,this.c=t,this.b=(zr(n),new Uu(n))}function DXt(t,e,n){this.a=e,this.c=t,this.b=(zr(n),new Uu(n))}function IXt(t,e){this.a=t,this.c=pc(this.a),this.b=new Zj(e)}function Wen(t){var e;return hb(t),e=new na,Qi(t,new qe(e))}function Vm(t,e){if(t<0||t>e)throw et(new Oo(k6t+t+E6t+e))}function wwt(t,e){return kKt(t.a,e)?qvt(t,u(e,22).g,null):null}function Ken(t){return mit(),Rn(),u(t.a,81).d.e!=0}function OXt(){OXt=J,E0e=ii((iR(),ct(ot(k0e,1),se,538,0,[out])))}function NXt(){NXt=J,uwe=sl(new ra,(so(),Go),(vo(),pO))}function mwt(){mwt=J,lwe=sl(new ra,(so(),Go),(vo(),pO))}function PXt(){PXt=J,fwe=sl(new ra,(so(),Go),(vo(),pO))}function FXt(){FXt=J,Swe=Mi(new ra,(so(),Go),(vo(),aS))}function zl(){zl=J,Mwe=Mi(new ra,(so(),Go),(vo(),aS))}function BXt(){BXt=J,Dwe=Mi(new ra,(so(),Go),(vo(),aS))}function rrt(){rrt=J,Fwe=Mi(new ra,(so(),Go),(vo(),aS))}function RXt(){RXt=J,kme=sl(new ra,(u7(),MS),(aC(),uht))}function Z2(t,e,n,r){this.c=t,this.d=r,srt(this,e),art(this,n)}function $6(t){this.c=new hs,this.b=t.b,this.d=t.c,this.a=t.a}function irt(t){this.a=b.Math.cos(t),this.b=b.Math.sin(t)}function srt(t,e){t.a&&Au(t.a.k,t),t.a=e,t.a&&ue(t.a.k,t)}function art(t,e){t.b&&Au(t.b.f,t),t.b=e,t.b&&ue(t.b.f,t)}function jXt(t,e){rtn(t,t.b,t.c),u(t.b.b,65),e&&u(e.b,65).b}function Yen(t,e){Pyt(t,e),Et(t.Cb,88)&&uy(gl(u(t.Cb,88)),2)}function ort(t,e){Et(t.Cb,88)&&uy(gl(u(t.Cb,88)),4),su(t,e)}function a$(t,e){Et(t.Cb,179)&&(u(t.Cb,179).tb=null),su(t,e)}function Wc(t,e){return go(),Brt(e)?new kj(e,t):new DM(e,t)}function Xen(t,e){var n,r;n=e.c,r=n!=null,r&&F6(t,new zm(e.c))}function $Xt(t){var e,n;return n=(t8(),e=new pv,e),P8(n,t),n}function zXt(t){var e,n;return n=(t8(),e=new pv,e),P8(n,t),n}function qXt(t,e){var n;return n=new Oh(t),e.c[e.c.length]=n,n}function HXt(t,e){var n;return n=u(ty(j6(t.a),e),14),n?n.gc():0}function VXt(t){var e;return hb(t),e=(X3(),X3(),t7t),P$(t,e)}function GXt(t){for(var e;;)if(e=t.Pb(),!t.Ob())return e}function ywt(t,e){$Ue.call(this,new x6(Ym(t))),Gl(e,ihe),this.a=e}function Qd(t,e,n){Zne(e,n,t.gc()),this.c=t,this.a=e,this.b=n-e}function UXt(t,e,n){var r;Zne(e,n,t.c.length),r=n-e,Vpt(t.c,e,r)}function Qen(t,e){HGt(t,$r(Xs(Rp(e,24),Cq)),$r(Xs(e,Cq)))}function An(t,e){if(t<0||t>=e)throw et(new Oo(k6t+t+E6t+e))}function Yr(t,e){if(t<0||t>=e)throw et(new Ipt(k6t+t+E6t+e))}function Cn(t,e){this.b=(Pn(t),t),this.a=e&wy?e:e|64|kd}function WXt(t){TGt(this),izt(this.a,iyt(b.Math.max(8,t))<<1)}function I1(t){return cc(ct(ot(sa,1),te,8,0,[t.i.n,t.n,t.a]))}function Zen(){return j1(),ct(ot(xl,1),se,132,0,[l7t,Zl,Sy])}function Jen(){return t1(),ct(ot(Ay,1),se,232,0,[wc,uu,mc])}function tnn(){return ol(),ct(ot(oge,1),se,461,0,[Od,l2,_f])}function enn(){return Lu(),ct(ot(uge,1),se,462,0,[o1,h2,Cf])}function nnn(){return Zv(),ct(ot(c9t,1),se,423,0,[$4,o9t,zut])}function rnn(){return O_(),ct(ot(i9t,1),se,379,0,[Put,Nut,Fut])}function inn(){return H_(),ct(ot(o_t,1),se,378,0,[Ylt,a_t,tG])}function snn(){return K6(),ct(ot(iEt,1),se,314,0,[Cx,vO,rEt])}function ann(){return z$(),ct(ot(aEt,1),se,337,0,[sEt,TV,alt])}function onn(){return ob(),ct(ot(E2e,1),se,450,0,[ult,u9,V4])}function cnn(){return Xv(),ct(ot(Xut,1),se,361,0,[_w,d2,Tw])}function unn(){return F0(),ct(ot(D2e,1),se,303,0,[mO,U4,Sx])}function lnn(){return W8(),ct(ot(mlt,1),se,292,0,[vlt,wlt,wO])}function hnn(){return yo(),ct(ot(nwe,1),se,452,0,[TS,ll,lu])}function fnn(){return R0(),ct(ot(b_t,1),se,339,0,[b2,p_t,tht])}function dnn(){return tz(),ct(ot(y_t,1),se,375,0,[w_t,rht,m_t])}function gnn(){return sz(),ct(ot(S_t,1),se,377,0,[oht,x9,Hy])}function pnn(){return t7(),ct(ot(E_t,1),se,336,0,[sht,k_t,_S])}function bnn(){return Z$(),ct(ot(C_t,1),se,338,0,[__t,aht,T_t])}function vnn(){return Yv(),ct(ot(ywe,1),se,454,0,[IO,CS,iG])}function wnn(){return bz(),ct(ot(Sme,1),se,442,0,[kht,yht,xht])}function mnn(){return BD(),ct(ot(Q_t,1),se,380,0,[bG,Y_t,X_t])}function ynn(){return pz(),ct(ot(pCt,1),se,381,0,[gCt,Aht,dCt])}function xnn(){return J$(),ct(ot(hCt,1),se,293,0,[Sht,lCt,uCt])}function knn(){return HD(),ct(ot(Lht,1),se,437,0,[mG,yG,xG])}function Enn(){return j0(),ct(ot(iAt,1),se,334,0,[NG,Qg,HS])}function Tnn(){return F1(),ct(ot(USt,1),se,272,0,[C9,Wy,S9])}function _nn(t,e){return Ugn(t,e,Et(e,99)&&(u(e,18).Bb&oo)!=0)}function Cnn(t,e,n){var r;return r=vC(t,e,!1),r.b<=e&&r.a<=n}function KXt(t,e,n){var r;r=new dQ,r.b=e,r.a=n,++e.b,ue(t.d,r)}function Snn(t,e){var n;return n=(Pn(t),t).g,pbt(!!n),Pn(e),n(e)}function xwt(t,e){var n,r;return r=v8(t,e),n=t.a.Zc(r),new uHt(t,n)}function Ann(t){return t.Db>>16!=6?null:u(Ist(t),235)}function Lnn(t){if(t.p!=2)throw et(new qu);return $r(t.f)&Ns}function Mnn(t){if(t.p!=2)throw et(new qu);return $r(t.k)&Ns}function Dnn(t){return t.a==(L8(),ZG)&>t(t,cpn(t.g,t.b)),t.a}function z6(t){return t.d==(L8(),ZG)&&vT(t,evn(t.g,t.b)),t.d}function Q(t){return ir(t.ar?1:0}function YXt(t,e){var n,r;return n=Irt(e),r=n,u(or(t.c,r),19).a}function XXt(t,e){var n;for(n=t+"";n.length0&&t.a[--t.d]==0;);t.a[t.d++]==0&&(t.e=0)}function pQt(t){return t.a?t.e.length==0?t.a.a:t.a.a+(""+t.e):t.c}function qnn(t){return!!t.a&&pl(t.a.a).i!=0&&!(t.b&&Xit(t.b))}function Hnn(t){return!!t.u&&$c(t.u.a).i!=0&&!(t.n&&Yit(t.n))}function bQt(t){return gnt(t.e.Hd().gc()*t.c.Hd().gc(),16,new a6(t))}function Vnn(t,e){return UKt(Ou(t.q.getTime()),Ou(e.q.getTime()))}function yd(t){return u($1(t,Ot(qut,Tot,17,t.c.length,0,1)),474)}function iD(t){return u($1(t,Ot(l0,$g,10,t.c.length,0,1)),193)}function Gnn(t){return zl(),!ro(t)&&!(!ro(t)&&t.c.i.c==t.d.i.c)}function vQt(t,e,n){var r;r=(zr(t),new Uu(t)),xhn(new MXt(r,e,n))}function sD(t,e,n){var r;r=(zr(t),new Uu(t)),khn(new DXt(r,e,n))}function wQt(t,e){var n;return n=1-e,t.a[n]=W$(t.a[n],n),W$(t,e)}function mQt(t,e){var n;t.e=new _pt,n=fy(e),ua(n,t.c),fce(t,n,0)}function ya(t,e,n,r){var s;s=new RF,s.a=e,s.b=n,s.c=r,pi(t.a,s)}function ke(t,e,n,r){var s;s=new RF,s.a=e,s.b=n,s.c=r,pi(t.b,s)}function wf(t){var e,n,r;return e=new JKt,n=Qst(e,t),Myn(e),r=n,r}function Swt(){var t,e,n;return e=(n=(t=new pv,t),n),ue(HAt,e),e}function u$(t){return t.j.c=Ot(nr,De,1,0,5,1),iwt(t.c),_tn(t.a),t}function Z3(t){return FT(),Et(t.g,10)?u(t.g,10):null}function Unn(t){return Y3(t).dc()?!1:(GKe(t,new ht),!0)}function Wnn(t){if(!("stack"in t))try{throw t}catch{}return t}function aD(t,e){if(t<0||t>=e)throw et(new Oo(a0n(t,e)));return t}function yQt(t,e,n){if(t<0||en)throw et(new Oo(Ddn(t,e,n)))}function hrt(t,e){if(Ys(t.a,e),e.d)throw et(new ic(Che));e.d=t}function frt(t,e){if(e.$modCount!=t.$modCount)throw et(new uh)}function xQt(t,e){return Et(e,42)?est(t.a,u(e,42)):!1}function kQt(t,e){return Et(e,42)?est(t.a,u(e,42)):!1}function EQt(t,e){return Et(e,42)?est(t.a,u(e,42)):!1}function Knn(t,e){return t.a<=t.b?(e.ud(t.a++),!0):!1}function qv(t){var e;return Xo(t)?(e=t,e==-0?0:e):rsn(t)}function l$(t){var e;return qp(t),e=new Te,B3(t.a,new fn(e)),e}function TQt(t){var e;return qp(t),e=new rr,B3(t.a,new ve(e)),e}function Ca(t,e){this.a=t,h6.call(this,t),Vm(e,t.gc()),this.b=e}function Awt(t){this.e=t,this.b=this.e.a.entries(),this.a=new Array}function Ynn(t){return gnt(t.e.Hd().gc()*t.c.Hd().gc(),273,new PB(t))}function h$(t){return new iu((Gl(t,_at),O$(Wa(Wa(5,t),t/10|0))))}function _Qt(t){return u($1(t,Ot(Gpe,rfe,11,t.c.length,0,1)),1943)}function Xnn(t,e,n){return n.f.c.length>0?Gvt(t.a,e,n):Gvt(t.b,e,n)}function Qnn(t,e,n){t.d&&Au(t.d.e,t),t.d=e,t.d&&Rm(t.d.e,n,t)}function drt(t,e){V3n(e,t),lvt(t.d),lvt(u(K(t,(Ce(),WV)),207))}function A_(t,e){H3n(e,t),uvt(t.d),uvt(u(K(t,(Ce(),WV)),207))}function Hv(t,e){var n,r;return n=D0(t,e),r=null,n&&(r=n.fe()),r}function C8(t,e){var n,r;return n=Km(t,e),r=null,n&&(r=n.ie()),r}function L_(t,e){var n,r;return n=D0(t,e),r=null,n&&(r=n.ie()),r}function I0(t,e){var n,r;return n=D0(t,e),r=null,n&&(r=m4t(n)),r}function Znn(t,e,n){var r;return r=o7(n),cq(t.g,r,e),cq(t.i,e,n),e}function Jnn(t,e,n){var r;r=Sun();try{return iXe(t,e,n)}finally{lrn(r)}}function CQt(t){var e;e=t.Wg(),this.a=Et(e,69)?u(e,69).Zh():e.Kc()}function ra(){$zt.call(this),this.j.c=Ot(nr,De,1,0,5,1),this.a=-1}function Lwt(t,e,n,r){this.d=t,this.n=e,this.g=n,this.o=r,this.p=-1}function SQt(t,e,n,r){this.e=r,this.d=null,this.c=t,this.a=e,this.b=n}function Mwt(t,e,n){this.d=new XB(this),this.e=t,this.i=e,this.f=n}function f$(){f$=J,ylt=new d2t(N7,0),_Et=new d2t("TOP_LEFT",1)}function AQt(){AQt=J,L_t=EYt(pe(1),pe(4)),A_t=EYt(pe(1),pe(2))}function LQt(){LQt=J,vye=ii((kR(),ct(ot(bye,1),se,551,0,[Dht])))}function MQt(){MQt=J,pye=ii((xR(),ct(ot(ACt,1),se,482,0,[Mht])))}function DQt(){DQt=J,Pye=ii((BT(),ct(ot(YCt,1),se,530,0,[RO])))}function IQt(){IQt=J,zge=ii((mR(),ct(ot(B7t,1),se,481,0,[Cut])))}function trn(){return Qv(),ct(ot(Nge,1),se,406,0,[sO,iO,Tut,_ut])}function ern(){return C$(),ct(ot(jH,1),se,297,0,[but,a7t,o7t,c7t])}function nrn(){return J_(),ct(ot(jge,1),se,394,0,[lO,VH,GH,hO])}function rrn(){return ex(),ct(ot(Fge,1),se,323,0,[oO,aO,cO,uO])}function irn(){return K8(),ct(ot(Ope,1),se,405,0,[Ew,My,Ly,j4])}function srn(){return iz(),ct(ot(Zpe,1),se,360,0,[Kut,vV,wV,bO])}function OQt(t,e,n,r){return Et(n,54)?new mUt(t,e,n,r):new Nvt(t,e,n,r)}function arn(){return R1(),ct(ot(o2e,1),se,411,0,[_x,i9,s9,Yut])}function orn(t){var e;return t.j==(we(),Lr)&&(e=eoe(t),Gu(e,Wn))}function crn(t,e){var n;n=e.a,Ua(n,e.c.d),ma(n,e.d.d),Qm(n.a,t.n)}function NQt(t,e){return u(Mv(Oj(u(ji(t.k,e),15).Oc(),z4)),113)}function PQt(t,e){return u(Mv(Nj(u(ji(t.k,e),15).Oc(),z4)),113)}function urn(t){return new Cn(aan(u(t.a.dd(),14).gc(),t.a.cd()),16)}function S8(t){return Et(t,14)?u(t,14).dc():!t.Kc().Ob()}function q6(t){return FT(),Et(t.g,145)?u(t.g,145):null}function FQt(t){if(t.e.g!=t.b)throw et(new uh);return!!t.c&&t.d>0}function di(t){return ir(t.b!=t.d.c),t.c=t.b,t.b=t.b.a,++t.a,t.c.c}function Dwt(t,e){Pn(e),ds(t.a,t.c,e),t.c=t.c+1&t.a.length-1,Bie(t)}function Vp(t,e){Pn(e),t.b=t.b-1&t.a.length-1,ds(t.a,t.b,e),Bie(t)}function BQt(t,e){var n;for(n=t.j.c.length;n0&&qc(t.g,0,e,0,t.i),e}function zQt(t,e){_R();var n;return n=u(or(WG,t),55),!n||n.wj(e)}function krn(t){if(t.p!=1)throw et(new qu);return $r(t.f)<<24>>24}function Ern(t){if(t.p!=1)throw et(new qu);return $r(t.k)<<24>>24}function Trn(t){if(t.p!=7)throw et(new qu);return $r(t.k)<<16>>16}function _rn(t){if(t.p!=7)throw et(new qu);return $r(t.f)<<16>>16}function O0(t){var e;for(e=0;t.Ob();)t.Pb(),e=Wa(e,1);return O$(e)}function qQt(t,e){var n;return n=new Sm,t.xd(n),n.a+="..",e.yd(n),n.a}function Crn(t,e,n){var r;r=u(or(t.g,n),57),ue(t.a.c,new _a(e,r))}function Srn(t,e,n){return Ent(xe(gc(qo(t.f,e))),xe(gc(qo(t.f,n))))}function d$(t,e,n){return lq(t,e,n,Et(e,99)&&(u(e,18).Bb&oo)!=0)}function Arn(t,e,n){return E7(t,e,n,Et(e,99)&&(u(e,18).Bb&oo)!=0)}function Lrn(t,e,n){return Zgn(t,e,n,Et(e,99)&&(u(e,18).Bb&oo)!=0)}function Nwt(t,e){return t==(Kn(),Ws)&&e==Ws?4:t==Ws||e==Ws?8:32}function HQt(t,e){return qt(e)===qt(t)?"(this Map)":e==null?Pu:Jo(e)}function Mrn(t,e){return u(e==null?gc(qo(t.f,null)):$T(t.g,e),281)}function VQt(t,e,n){var r;return r=o7(n),Pi(t.b,r,e),Pi(t.c,e,n),e}function GQt(t,e){var n;for(n=e;n;)Nm(t,n.i,n.j),n=gs(n);return t}function Pwt(t,e){var n;return n=ZM(d8(new Ort(t,e))),Tj(new Ort(t,e)),n}function Zd(t,e){go();var n;return n=u(t,66).Mj(),ldn(n,e),n.Ok(e)}function Drn(t,e,n,r,s){var o;o=rpn(s,n,r),ue(e,e0n(s,o)),U1n(t,s,e)}function UQt(t,e,n){t.i=0,t.e=0,e!=n&&(vne(t,e,n),bne(t,e,n))}function Fwt(t,e){var n;n=t.q.getHours(),t.q.setFullYear(e+i2),gC(t,n)}function Irn(t,e,n){if(n){var r=n.ee();t.a[e]=r(n)}else delete t.a[e]}function grt(t,e,n){if(n){var r=n.ee();n=r(n)}else n=void 0;t.a[e]=n}function WQt(t){if(t<0)throw et(new Zzt("Negative array size: "+t))}function $c(t){return t.n||(gl(t),t.n=new CKt(t,Co,t),zo(t)),t.n}function M_(t){return ir(t.a=0&&t.a[n]===e[n];n--);return n<0}function ZQt(t,e){J8();var n;return n=t.j.g-e.j.g,n!=0?n:0}function JQt(t,e){return Pn(e),t.a!=null?vJe(e.Kb(t.a)):RH}function g$(t){var e;return t?new yvt(t):(e=new S0,Zrt(e,t),e)}function Hl(t,e){var n;return e.b.Kb(GJt(t,e.c.Ee(),(n=new Nn(e),n)))}function p$(t){r4t(),HGt(this,$r(Xs(Rp(t,24),Cq)),$r(Xs(t,Cq)))}function tZt(){tZt=J,ege=ii((_z(),ct(ot(g7t,1),se,428,0,[mut,d7t])))}function eZt(){eZt=J,nge=ii((D$(),ct(ot(b7t,1),se,427,0,[p7t,yut])))}function nZt(){nZt=J,ipe=ii((I$(),ct(ot(V7t,1),se,424,0,[Dut,KH])))}function rZt(){rZt=J,Ype=ii((q8(),ct(ot(Kpe,1),se,511,0,[gO,Vut])))}function iZt(){iZt=J,k2e=ii((ED(),ct(ot(lEt,1),se,419,0,[_V,uEt])))}function sZt(){sZt=J,C2e=ii((pD(),ct(ot(dEt,1),se,479,0,[fEt,SV])))}function aZt(){aZt=J,swe=ii((uD(),ct(ot(x_t,1),se,376,0,[iht,DO])))}function oZt(){oZt=J,ewe=ii((mD(),ct(ot(v_t,1),se,421,0,[eht,nht])))}function cZt(){cZt=J,w2e=ii((E$(),ct(ot(nEt,1),se,422,0,[eEt,slt])))}function uZt(){uZt=J,O2e=ii((f$(),ct(ot(CEt,1),se,420,0,[ylt,_Et])))}function lZt(){lZt=J,Xwe=ii((Qf(),ct(ot(Ywe,1),se,520,0,[Vy,v2])))}function hZt(){hZt=J,Cwe=ii((D_(),ct(ot(_we,1),se,523,0,[AS,SS])))}function fZt(){fZt=J,Owe=ii((md(),ct(ot(Iwe,1),se,516,0,[Pw,Wg])))}function dZt(){dZt=J,Pwe=ii((D1(),ct(ot(Nwe,1),se,515,0,[Bb,Y1])))}function gZt(){gZt=J,rme=ii((jv(),ct(ot(nme,1),se,455,0,[w2,e5])))}function pZt(){pZt=J,xme=ii((c$(),ct(ot(G_t,1),se,425,0,[mht,V_t])))}function bZt(){bZt=J,Cme=ii((Y$(),ct(ot(U_t,1),se,495,0,[pG,E9])))}function vZt(){vZt=J,yme=ii((i$(),ct(ot(H_t,1),se,480,0,[wht,q_t])))}function wZt(){wZt=J,Lme=ii((_$(),ct(ot(K_t,1),se,426,0,[W_t,Eht])))}function mZt(){mZt=J,Fye=ii((OD(),ct(ot(QCt,1),se,429,0,[TG,XCt])))}function yZt(){yZt=J,wye=ii((lD(),ct(ot(LCt,1),se,430,0,[Iht,kG])))}function D_(){D_=J,AS=new b2t("UPPER",0),SS=new b2t("LOWER",1)}function Frn(t,e){var n;n=new w6,Q2(n,"x",e.a),Q2(n,"y",e.b),F6(t,n)}function Brn(t,e){var n;n=new w6,Q2(n,"x",e.a),Q2(n,"y",e.b),F6(t,n)}function Rrn(t,e){var n,r;r=!1;do n=cne(t,e),r=r|n;while(n);return r}function jwt(t,e){var n,r;for(n=e,r=0;n>0;)r+=t.a[n],n-=n&-n;return r}function xZt(t,e){var n;for(n=e;n;)Nm(t,-n.i,-n.j),n=gs(n);return t}function Oa(t,e){var n,r;for(Pn(e),r=t.Kc();r.Ob();)n=r.Pb(),e.td(n)}function kZt(t,e){var n;return n=e.cd(),new Ev(n,t.e.pc(n,u(e.dd(),14)))}function Cs(t,e,n,r){var s;s=new Wt,s.c=e,s.b=n,s.a=r,r.b=n.a=s,++t.b}function gh(t,e,n){var r;return r=(An(e,t.c.length),t.c[e]),t.c[e]=n,r}function jrn(t,e,n){return u(e==null?du(t.f,null,n):Jv(t.g,e,n),281)}function wrt(t){return t.c&&t.d?kwt(t.c)+"->"+kwt(t.d):"e_"+Av(t)}function A8(t,e){return(hb(t),OT(new kn(t,new umt(e,t.a)))).sd(J7)}function $rn(){return so(),ct(ot(s9t,1),se,356,0,[Nd,f2,pu,Zc,Go])}function zrn(){return we(),ct(ot(co,1),Nc,61,0,[fc,Fn,Wn,Lr,jn])}function qrn(t){return cR(),function(){return Jnn(t,this,arguments)}}function Hrn(){return Date.now?Date.now():new Date().getTime()}function ro(t){return!t.c||!t.d?!1:!!t.c.i&&t.c.i==t.d.i}function EZt(t){if(!t.c.Sb())throw et(new _c);return t.a=!0,t.c.Ub()}function oD(t){t.i=0,mM(t.b,null),mM(t.c,null),t.a=null,t.e=null,++t.g}function $wt(t){XWe.call(this,t==null?Pu:Jo(t),Et(t,78)?u(t,78):null)}function TZt(t){Yle(),K$t(this),this.a=new hs,dyt(this,t),pi(this.a,t)}function _Zt(){Bet(this),this.b=new je(ms,ms),this.a=new je(Rs,Rs)}function CZt(t,e){this.c=0,this.b=e,tGt.call(this,t,17493),this.a=this.c}function mrt(t){b$(),!U1&&(this.c=t,this.e=!0,this.a=new le)}function b$(){b$=J,U1=!0,G0e=!1,U0e=!1,K0e=!1,W0e=!1}function zwt(t,e){return Et(e,149)?ln(t.c,u(e,149).c):!1}function qwt(t,e){var n;return n=0,t&&(n+=t.f.a/2),e&&(n+=e.f.a/2),n}function yrt(t,e){var n;return n=u(Vv(t.d,e),23),n||u(Vv(t.e,e),23)}function SZt(t){this.b=t,lr.call(this,t),this.a=u(Dn(this.b.a,4),126)}function AZt(t){this.b=t,L6.call(this,t),this.a=u(Dn(this.b.a,4),126)}function gl(t){return t.t||(t.t=new R$t(t),W_(new Qzt(t),0,t.t)),t.t}function Vrn(){return xo(),ct(ot(zS,1),se,103,0,[h0,Af,Wh,X0,Q0])}function Grn(){return c4(),ct(ot(GS,1),se,249,0,[x2,ZO,sAt,VS,aAt])}function Urn(){return n1(),ct(ot(Xg,1),se,175,0,[Un,fa,Bd,Rb,Yg])}function Wrn(){return rI(),ct(ot(OCt,1),se,316,0,[MCt,Oht,ICt,Nht,DCt])}function Krn(){return tC(),ct(ot(u_t,1),se,315,0,[c_t,Zlt,Jlt,kS,ES])}function Yrn(){return pb(),ct(ot(cEt,1),se,335,0,[olt,oEt,clt,uS,cS])}function Xrn(){return y7(),ct(ot(fye,1),se,355,0,[n5,Bx,FS,PS,BS])}function Qrn(){return g4(),ct(ot(u2e,1),se,363,0,[yV,kV,EV,xV,mV])}function Zrn(){return mh(),ct(ot(jEt,1),se,163,0,[TO,gS,g2,pS,Ny])}function L8(){L8=J;var t,e;QG=(t8(),e=new eR,e),ZG=(t=new Ntt,t)}function LZt(t){var e;return t.c||(e=t.r,Et(e,88)&&(t.c=u(e,26))),t.c}function Jrn(t){return t.e=3,t.d=t.Yb(),t.e!=2?(t.e=0,!0):!1}function xrt(t){var e,n,r;return e=t&yl,n=t>>22&yl,r=t<0?U0:0,hu(e,n,r)}function tin(t){var e,n,r,s;for(n=t,r=0,s=n.length;r0?Sre(t,e):Yoe(t,-e)}function Hwt(t,e){return e==0||t.e==0?t:e>0?Yoe(t,e):Sre(t,-e)}function qr(t){if(Zr(t))return t.c=t.a,t.a.Pb();throw et(new _c)}function DZt(t){var e,n;return e=t.c.i,n=t.d.i,e.k==(Kn(),Fs)&&n.k==Fs}function krt(t){var e;return e=new Rv,Ho(e,t),Jt(e,(Ce(),$o),null),e}function Ert(t,e,n){var r;return r=t.Yg(e),r>=0?t._g(r,n,!0):ow(t,e,n)}function Vwt(t,e,n,r){var s;for(s=0;se)throw et(new Oo(C4t(t,e,"index")));return t}function Trt(t,e,n,r){var s;return s=Ot(Br,oi,25,e,15,1),d1n(s,t,e,n,r),s}function nin(t,e){var n;n=t.q.getHours()+(e/60|0),t.q.setMinutes(e),gC(t,n)}function rin(t,e){return b.Math.min(Gp(e.a,t.d.d.c),Gp(e.b,t.d.d.c))}function G6(t,e){return pa(e)?e==null?H4t(t.f,null):Vee(t.g,e):H4t(t.f,e)}function P1(t){this.c=t,this.a=new S(this.c.a),this.b=new S(this.c.b)}function v$(){this.e=new le,this.c=new le,this.d=new le,this.b=new le}function FZt(){this.g=new cpt,this.b=new cpt,this.a=new le,this.k=new le}function BZt(t,e,n){this.a=t,this.c=e,this.d=n,ue(e.e,this),ue(n.b,this)}function RZt(t,e){JVt.call(this,e.rd(),e.qd()&-6),Pn(t),this.a=t,this.b=e}function jZt(t,e){tGt.call(this,e.rd(),e.qd()&-6),Pn(t),this.a=t,this.b=e}function Qwt(t,e){Iet.call(this,e.rd(),e.qd()&-6),Pn(t),this.a=t,this.b=e}function w$(t,e,n){this.a=t,this.b=e,this.c=n,ue(t.t,this),ue(e.i,this)}function m$(){this.b=new hs,this.a=new hs,this.b=new hs,this.a=new hs}function y$(){y$=J,RS=new rs("org.eclipse.elk.labels.labelManager")}function $Zt(){$Zt=J,X9t=new Ks("separateLayerConnections",(iz(),Kut))}function Qf(){Qf=J,Vy=new m2t("REGULAR",0),v2=new m2t("CRITICAL",1)}function uD(){uD=J,iht=new p2t("STACKED",0),DO=new p2t("SEQUENCED",1)}function lD(){lD=J,Iht=new _2t("FIXED",0),kG=new _2t("CENTER_NODE",1)}function iin(t,e){var n;return n=cyn(t,e),t.b=new K$(n.c.length),ymn(t,n)}function sin(t,e,n){var r;return++t.e,--t.f,r=u(t.d[e].$c(n),133),r.dd()}function zZt(t){var e;return t.a||(e=t.r,Et(e,148)&&(t.a=u(e,148))),t.a}function Zwt(t){if(t.a){if(t.e)return Zwt(t.e)}else return t;return null}function ain(t,e){return t.pe.p?-1:0}function x$(t,e){return Pn(e),t.c=0,"Initial capacity must not be negative")}function VZt(){VZt=J,age=ii((t1(),ct(ot(Ay,1),se,232,0,[wc,uu,mc])))}function GZt(){GZt=J,cge=ii((ol(),ct(ot(oge,1),se,461,0,[Od,l2,_f])))}function UZt(){UZt=J,lge=ii((Lu(),ct(ot(uge,1),se,462,0,[o1,h2,Cf])))}function WZt(){WZt=J,Y0e=ii((j1(),ct(ot(xl,1),se,132,0,[l7t,Zl,Sy])))}function KZt(){KZt=J,_pe=ii((O_(),ct(ot(i9t,1),se,379,0,[Put,Nut,Fut])))}function YZt(){YZt=J,$pe=ii((Zv(),ct(ot(c9t,1),se,423,0,[$4,o9t,zut])))}function XZt(){XZt=J,m2e=ii((K6(),ct(ot(iEt,1),se,314,0,[Cx,vO,rEt])))}function QZt(){QZt=J,y2e=ii((z$(),ct(ot(aEt,1),se,337,0,[sEt,TV,alt])))}function ZZt(){ZZt=J,T2e=ii((ob(),ct(ot(E2e,1),se,450,0,[ult,u9,V4])))}function JZt(){JZt=J,p2e=ii((Xv(),ct(ot(Xut,1),se,361,0,[_w,d2,Tw])))}function tJt(){tJt=J,I2e=ii((F0(),ct(ot(D2e,1),se,303,0,[mO,U4,Sx])))}function eJt(){eJt=J,M2e=ii((W8(),ct(ot(mlt,1),se,292,0,[vlt,wlt,wO])))}function nJt(){nJt=J,Xve=ii((H_(),ct(ot(o_t,1),se,378,0,[Ylt,a_t,tG])))}function rJt(){rJt=J,iwe=ii((tz(),ct(ot(y_t,1),se,375,0,[w_t,rht,m_t])))}function iJt(){iJt=J,twe=ii((R0(),ct(ot(b_t,1),se,339,0,[b2,p_t,tht])))}function sJt(){sJt=J,rwe=ii((yo(),ct(ot(nwe,1),se,452,0,[TS,ll,lu])))}function aJt(){aJt=J,cwe=ii((sz(),ct(ot(S_t,1),se,377,0,[oht,x9,Hy])))}function oJt(){oJt=J,awe=ii((t7(),ct(ot(E_t,1),se,336,0,[sht,k_t,_S])))}function cJt(){cJt=J,owe=ii((Z$(),ct(ot(C_t,1),se,338,0,[__t,aht,T_t])))}function uJt(){uJt=J,xwe=ii((Yv(),ct(ot(ywe,1),se,454,0,[IO,CS,iG])))}function lJt(){lJt=J,Ame=ii((bz(),ct(ot(Sme,1),se,442,0,[kht,yht,xht])))}function hJt(){hJt=J,Mme=ii((BD(),ct(ot(Q_t,1),se,380,0,[bG,Y_t,X_t])))}function fJt(){fJt=J,Wme=ii((pz(),ct(ot(pCt,1),se,381,0,[gCt,Aht,dCt])))}function dJt(){dJt=J,Ume=ii((J$(),ct(ot(hCt,1),se,293,0,[Sht,lCt,uCt])))}function gJt(){gJt=J,gye=ii((HD(),ct(ot(Lht,1),se,437,0,[mG,yG,xG])))}function pJt(){pJt=J,v3e=ii((j0(),ct(ot(iAt,1),se,334,0,[NG,Qg,HS])))}function bJt(){bJt=J,d3e=ii((F1(),ct(ot(USt,1),se,272,0,[C9,Wy,S9])))}function din(){return xa(),ct(ot(oAt,1),se,98,0,[k2,Q1,L9,qb,g0,eu])}function eb(t,e){return!t.o&&(t.o=new Nl((ou(),_2),Bw,t,0)),Pit(t.o,e)}function gin(t){return!t.g&&(t.g=new Tk),!t.g.d&&(t.g.d=new P$t(t)),t.g.d}function pin(t){return!t.g&&(t.g=new Tk),!t.g.a&&(t.g.a=new F$t(t)),t.g.a}function bin(t){return!t.g&&(t.g=new Tk),!t.g.b&&(t.g.b=new N$t(t)),t.g.b}function hD(t){return!t.g&&(t.g=new Tk),!t.g.c&&(t.g.c=new B$t(t)),t.g.c}function vin(t,e,n){var r,s;for(s=new U8(e,t),r=0;rn||e=0?t._g(n,!0,!0):ow(t,e,!0)}function Nin(t,e){return Vs(Xt(xe(K(t,(ie(),Lw)))),Xt(xe(K(e,Lw))))}function EJt(){EJt=J,Eme=rw(rw(TR(new ra,(u7(),LS)),(aC(),uG)),lht)}function Pin(t,e,n){var r;return r=dne(t,e,n),t.b=new K$(r.c.length),g5t(t,r)}function Fin(t){if(t.b<=0)throw et(new _c);return--t.b,t.a-=t.c.c,pe(t.a)}function Bin(t){var e;if(!t.a)throw et(new SYt);return e=t.a,t.a=gs(t.a),e}function Rin(t){for(;!t.a;)if(!hWt(t.c,new $e(t)))return!1;return!0}function W6(t){var e;return zr(t),Et(t,198)?(e=u(t,198),e):new WJ(t)}function jin(t){T$(),u(t.We((Ti(),Uy)),174).Fc((cl(),JO)),t.Ye(Jht,null)}function T$(){T$=J,jye=new aZ,zye=new oZ,$ye=Eon((Ti(),Jht),jye,m2,zye)}function _$(){_$=J,W_t=new T2t("LEAF_NUMBER",0),Eht=new T2t("NODE_SIZE",1)}function $in(t,e,n){t.a=e,t.c=n,t.b.a.$b(),Nh(t.d),t.e.a.c=Ot(nr,De,1,0,5,1)}function Drt(t){t.a=Ot(Br,oi,25,t.b+1,15,1),t.c=Ot(Br,oi,25,t.b,15,1),t.d=0}function zin(t,e){t.a.ue(e.d,t.b)>0&&(ue(t.c,new dvt(e.c,e.d,t.d)),t.b=e.d)}function cmt(t,e){if(t.g==null||e>=t.i)throw et(new Oet(e,t.i));return t.g[e]}function TJt(t,e,n){if(Q8(t,n),n!=null&&!t.wj(n))throw et(new Dtt);return n}function _Jt(t){var e;if(t.Ek())for(e=t.i-1;e>=0;--e)St(t,e);return Owt(t)}function qin(t){var e,n;if(!t.b)return null;for(n=t.b;e=n.a[0];)n=e;return n}function Hin(t,e){var n,r;return WQt(e),n=(r=t.slice(0,e),lmt(r,t)),n.length=e,n}function I8(t,e,n,r){var s;r=(X3(),r||J8t),s=t.slice(e,n),S4t(s,t,e,n,-e,r)}function ph(t,e,n,r,s){return e<0?ow(t,n,r):u(n,66).Nj().Pj(t,t.yh(),e,r,s)}function Vin(t){return Et(t,172)?""+u(t,172).a:t==null?null:Jo(t)}function Gin(t){return Et(t,172)?""+u(t,172).a:t==null?null:Jo(t)}function CJt(t,e){if(e.a)throw et(new ic(Che));Ys(t.a,e),e.a=t,!t.j&&(t.j=e)}function umt(t,e){Iet.call(this,e.rd(),e.qd()&-16449),Pn(t),this.a=t,this.c=e}function SJt(t,e){var n,r;return r=e/t.c.Hd().gc()|0,n=e%t.c.Hd().gc(),U6(t,r,n)}function ol(){ol=J,Od=new iet(fx,0),l2=new iet(N7,1),_f=new iet(dx,2)}function C$(){C$=J,but=new AR("All",0),a7t=new kGt,o7t=new NGt,c7t=new EGt}function AJt(){AJt=J,H0e=ii((C$(),ct(ot(jH,1),se,297,0,[but,a7t,o7t,c7t])))}function LJt(){LJt=J,Npe=ii((K8(),ct(ot(Ope,1),se,405,0,[Ew,My,Ly,j4])))}function MJt(){MJt=J,Pge=ii((Qv(),ct(ot(Nge,1),se,406,0,[sO,iO,Tut,_ut])))}function DJt(){DJt=J,Bge=ii((ex(),ct(ot(Fge,1),se,323,0,[oO,aO,cO,uO])))}function IJt(){IJt=J,$ge=ii((J_(),ct(ot(jge,1),se,394,0,[lO,VH,GH,hO])))}function OJt(){OJt=J,ime=ii((u7(),ct(ot(I_t,1),se,393,0,[cG,LS,NO,MS])))}function NJt(){NJt=J,Jpe=ii((iz(),ct(ot(Zpe,1),se,360,0,[Kut,vV,wV,bO])))}function PJt(){PJt=J,Gme=ii((Pz(),ct(ot(cCt,1),se,340,0,[Cht,aCt,oCt,sCt])))}function FJt(){FJt=J,c2e=ii((R1(),ct(ot(o2e,1),se,411,0,[_x,i9,s9,Yut])))}function BJt(){BJt=J,Qve=ii((ry(),ct(ot(Qlt,1),se,197,0,[eG,Xlt,t5,J4])))}function RJt(){RJt=J,N3e=ii((Pl(),ct(ot(O3e,1),se,396,0,[rh,pAt,gAt,bAt])))}function jJt(){jJt=J,m3e=ii((Wl(),ct(ot(w3e,1),se,285,0,[QO,f0,y2,XO])))}function $Jt(){$Jt=J,g3e=ii((z0(),ct(ot(rft,1),se,218,0,[nft,YO,A9,qx])))}function zJt(){zJt=J,D3e=ii((mz(),ct(ot(dAt,1),se,311,0,[aft,lAt,fAt,hAt])))}function qJt(){qJt=J,L3e=ii((Fl(),ct(ot(KS,1),se,374,0,[eN,Hb,tN,Ky])))}function HJt(){HJt=J,hq(),QAt=ms,F4e=Rs,ZAt=new I3(ms),B4e=new I3(Rs)}function pD(){pD=J,fEt=new f2t(W0,0),SV=new f2t("IMPROVE_STRAIGHTNESS",1)}function Uin(t,e){return g8(),ue(t,new _a(e,pe(e.e.c.length+e.g.c.length)))}function Win(t,e){return g8(),ue(t,new _a(e,pe(e.e.c.length+e.g.c.length)))}function lmt(t,e){return yD(e)!=10&&ct(bl(e),e.hm,e.__elementTypeId$,yD(e),t),t}function Au(t,e){var n;return n=Qo(t,e,0),n==-1?!1:(Sg(t,n),!0)}function VJt(t,e){var n;return n=u(G6(t.e,e),387),n?(bvt(n),n.e):null}function O8(t){var e;return Xo(t)&&(e=0-t,!isNaN(e))?e:Wp(Y8(t))}function Qo(t,e,n){for(;n=0?Mz(t,n,!0,!0):ow(t,e,!0)}function pmt(t,e){FT();var n,r;return n=q6(t),r=q6(e),!!n&&!!r&&!aie(n.k,r.k)}function Xin(t,e){Du(t,e==null||gj((Pn(e),e))||isNaN((Pn(e),e))?0:(Pn(e),e))}function Qin(t,e){Iu(t,e==null||gj((Pn(e),e))||isNaN((Pn(e),e))?0:(Pn(e),e))}function Zin(t,e){Kv(t,e==null||gj((Pn(e),e))||isNaN((Pn(e),e))?0:(Pn(e),e))}function Jin(t,e){Wv(t,e==null||gj((Pn(e),e))||isNaN((Pn(e),e))?0:(Pn(e),e))}function YJt(t){(this.q?this.q:(pn(),pn(),u0)).Ac(t.q?t.q:(pn(),pn(),u0))}function tsn(t,e){return Et(e,99)&&u(e,18).Bb&oo?new Net(e,t):new U8(e,t)}function esn(t,e){return Et(e,99)&&u(e,18).Bb&oo?new Net(e,t):new U8(e,t)}function XJt(t,e){P7t=new cs,Rge=e,nS=t,u(nS.b,65),emt(nS,P7t,null),Hue(nS)}function Frt(t,e,n){var r;return r=t.g[e],a_(t,e,t.oi(e,n)),t.gi(e,n,r),t.ci(),r}function M$(t,e){var n;return n=t.Xc(e),n>=0?(t.$c(n),!0):!1}function Brt(t){var e;return t.d!=t.r&&(e=Bh(t),t.e=!!e&&e.Cj()==Dde,t.d=e),t.e}function Rrt(t,e){var n;for(zr(t),zr(e),n=!1;e.Ob();)n=n|t.Fc(e.Pb());return n}function Vv(t,e){var n;return n=u(or(t.e,e),387),n?(qGt(t,n),n.e):null}function QJt(t){var e,n;return e=t/60|0,n=t%60,n==0?""+e:""+e+":"+(""+n)}function oc(t,e){var n,r;return hb(t),r=new Qwt(e,t.a),n=new gWt(r),new kn(t,n)}function Km(t,e){var n=t.a[e],r=(rit(),hut)[typeof n];return r?r(n):myt(typeof n)}function nsn(t){switch(t.g){case 0:return Di;case 1:return-1;default:return 0}}function rsn(t){return F3t(t,(N8(),N8t))<0?-mYe(Y8(t)):t.l+t.m*hx+t.h*mb}function yD(t){return t.__elementTypeCategory$==null?10:t.__elementTypeCategory$}function jrt(t){var e;return e=t.b.c.length==0?null:Fe(t.b,0),e!=null&&Yrt(t,0),e}function ZJt(t,e){for(;e[0]=0;)++e[0]}function xD(t,e){this.e=e,this.a=Gee(t),this.a<54?this.f=qv(t):this.c=WD(t)}function JJt(t,e,n,r){Ai(),gv.call(this,26),this.c=t,this.a=e,this.d=n,this.b=r}function Jd(t,e,n){var r,s;for(r=10,s=0;st.a[r]&&(r=n);return r}function usn(t,e){var n;return n=tw(t.e.c,e.e.c),n==0?Vs(t.e.d,e.e.d):n}function J3(t,e){return e.e==0||t.e==0?Q7:(b7(),$st(t,e))}function lsn(t,e){if(!t)throw et(new Bn(d2n("Enum constant undefined: %s",e)))}function N_(){N_=J,Bpe=new av,Rpe=new od,Ppe=new pk,Fpe=new oh,jpe=new $K}function D$(){D$=J,p7t=new a2t("BY_SIZE",0),yut=new a2t("BY_SIZE_AND_SHAPE",1)}function I$(){I$=J,Dut=new o2t("EADES",0),KH=new o2t("FRUCHTERMAN_REINGOLD",1)}function ED(){ED=J,_V=new h2t("READING_DIRECTION",0),uEt=new h2t("ROTATION",1)}function ete(){ete=J,x2e=ii((pb(),ct(ot(cEt,1),se,335,0,[olt,oEt,clt,uS,cS])))}function nte(){nte=J,Zve=ii((tC(),ct(ot(u_t,1),se,315,0,[c_t,Zlt,Jlt,kS,ES])))}function rte(){rte=J,l2e=ii((g4(),ct(ot(u2e,1),se,363,0,[yV,kV,EV,xV,mV])))}function ite(){ite=J,N2e=ii((mh(),ct(ot(jEt,1),se,163,0,[TO,gS,g2,pS,Ny])))}function ste(){ste=J,mye=ii((rI(),ct(ot(OCt,1),se,316,0,[MCt,Oht,ICt,Nht,DCt])))}function ate(){ate=J,qye=ii((n1(),ct(ot(Xg,1),se,175,0,[Un,fa,Bd,Rb,Yg])))}function ote(){ote=J,dye=ii((y7(),ct(ot(fye,1),se,355,0,[n5,Bx,FS,PS,BS])))}function cte(){cte=J,Lpe=ii((so(),ct(ot(s9t,1),se,356,0,[Nd,f2,pu,Zc,Go])))}function ute(){ute=J,f3e=ii((xo(),ct(ot(zS,1),se,103,0,[h0,Af,Wh,X0,Q0])))}function lte(){lte=J,x3e=ii((c4(),ct(ot(GS,1),se,249,0,[x2,ZO,sAt,VS,aAt])))}function hte(){hte=J,T3e=ii((we(),ct(ot(co,1),Nc,61,0,[fc,Fn,Wn,Lr,jn])))}function $rt(t,e){var n;return n=u(or(t.a,e),134),n||(n=new k3,Pi(t.a,e,n)),n}function fte(t){var e;return e=u(K(t,(ie(),Cw)),305),e?e.a==t:!1}function dte(t){var e;return e=u(K(t,(ie(),Cw)),305),e?e.i==t:!1}function gte(t,e){return Pn(e),Fvt(t),t.d.Ob()?(e.td(t.d.Pb()),!0):!1}function O$(t){return Oc(t,Di)>0?Di:Oc(t,$a)<0?$a:$r(t)}function Ym(t){return t<3?(Gl(t,che),t+1):t=0&&e=-.01&&t.a<=H1&&(t.a=0),t.b>=-.01&&t.b<=H1&&(t.b=0),t}function bte(t,e){return e==(snt(),snt(),$0e)?t.toLocaleLowerCase():t.toLowerCase()}function vmt(t){return(t.i&2?"interface ":t.i&1?"":"class ")+(A0(t),t.o)}function Ro(t){var e,n;n=(e=new Ptt,e),Hr((!t.q&&(t.q=new he(Jh,t,11,10)),t.q),n)}function hsn(t,e){var n;return n=e>0?e-1:e,fqt(_We(zte(pvt(new Yk,n),t.n),t.j),t.k)}function fsn(t,e,n,r){var s;t.j=-1,$4t(t,y4t(t,e,n),(go(),s=u(e,66).Mj(),s.Ok(r)))}function vte(t){this.g=t,this.f=new le,this.a=b.Math.min(this.g.c.c,this.g.d.c)}function wte(t){this.b=new le,this.a=new le,this.c=new le,this.d=new le,this.e=t}function mte(t,e){this.a=new Rr,this.e=new Rr,this.b=(H_(),tG),this.c=t,this.b=e}function yte(t,e,n){fj.call(this),wmt(this),this.a=t,this.c=n,this.b=e.d,this.f=e.e}function xte(t){this.d=t,this.c=t.c.vc().Kc(),this.b=null,this.a=null,this.e=(iR(),out)}function Gv(t){if(t<0)throw et(new Bn("Illegal Capacity: "+t));this.g=this.ri(t)}function dsn(t,e){if(0>t||t>e)throw et(new Dpt("fromIndex: 0, toIndex: "+t+m6t+e))}function gsn(t){var e;if(t.a==t.b.a)throw et(new _c);return e=t.a,t.c=e,t.a=t.a.e,e}function N$(t){var e;Om(!!t.c),e=t.c.a,bh(t.d,t.c),t.b==t.c?t.b=e:--t.a,t.c=null}function P$(t,e){var n;return hb(t),n=new HYt(t,t.a.rd(),t.a.qd()|4,e),new kn(t,n)}function psn(t,e){var n,r;return n=u(ty(t.d,e),14),n?(r=e,t.e.pc(r,n)):null}function F$(t,e){var n,r;for(r=t.Kc();r.Ob();)n=u(r.Pb(),70),Jt(n,(ie(),Dx),e)}function bsn(t){var e;return e=Xt(xe(K(t,(Ce(),Gg)))),e<0&&(e=0,Jt(t,Gg,e)),e}function vsn(t,e,n){var r;r=b.Math.max(0,t.b/2-.5),nC(n,r,1),ue(e,new WHt(n,r))}function wsn(t,e,n){var r;return r=t.a.e[u(e.a,10).p]-t.a.e[u(n.a,10).p],Ms(WM(r))}function kte(t,e,n,r,s,o){var h;h=krt(r),Ua(h,s),ma(h,o),cn(t.a,r,new pj(h,e,n.f))}function Ete(t,e){var n;if(n=dI(t.Tg(),e),!n)throw et(new Bn(c2+e+Tct));return n}function Xm(t,e){var n;for(n=t;gs(n);)if(n=gs(n),n==e)return!0;return!1}function msn(t,e){var n,r,s;for(r=e.a.cd(),n=u(e.a.dd(),14).gc(),s=0;s0&&(t.a/=e,t.b/=e),t}function Vl(t){var e;return t.w?t.w:(e=Ann(t),e&&!e.kh()&&(t.w=e),e)}function Ssn(t){var e;return t==null?null:(e=u(t,190),A1n(e,e.length))}function St(t,e){if(t.g==null||e>=t.i)throw et(new Oet(e,t.i));return t.li(e,t.g[e])}function Asn(t){var e,n;for(e=t.a.d.j,n=t.c.d.j;e!=n;)xf(t.b,e),e=dz(e);xf(t.b,e)}function Lsn(t){var e;for(e=0;e=14&&e<=16))),t}function Ste(t,e,n){var r=function(){return t.apply(r,arguments)};return e.apply(r,n),r}function Ate(t,e,n){var r,s;r=e;do s=Xt(t.p[r.p])+n,t.p[r.p]=s,r=t.a[r.p];while(r!=e)}function P8(t,e){var n,r;r=t.a,n=ucn(t,e,null),r!=e&&!t.e&&(n=C7(t,e,n)),n&&n.Fi()}function mmt(t,e){return A1(),yf(r2),b.Math.abs(t-e)<=r2||t==e||isNaN(t)&&isNaN(e)}function ymt(t,e){return A1(),yf(r2),b.Math.abs(t-e)<=r2||t==e||isNaN(t)&&isNaN(e)}function Isn(t,e){return t2(),Tu(t.b.c.length-t.e.c.length,e.b.c.length-e.e.c.length)}function t4(t,e){return MWe(B_(t,e,$r(ja(i0,Xd($r(ja(e==null?0:ns(e),s0)),15)))))}function Lte(){Lte=J,Vpe=ii((Kn(),ct(ot(Hut,1),se,267,0,[Ws,ha,Fs,Jc,Bl,W1])))}function Mte(){Mte=J,Qye=ii((ay(),ct(ot(Vht,1),se,291,0,[Hht,VO,HO,qht,zO,qO])))}function Dte(){Dte=J,Gye=ii((t0(),ct(ot(nSt,1),se,248,0,[$ht,jO,$O,SG,_G,CG])))}function Ite(){Ite=J,v2e=ii((rx(),ct(ot(c9,1),se,227,0,[o9,oS,a9,Dy,H4,q4])))}function Ote(){Ote=J,A2e=ii((g7(),ct(ot(TEt,1),se,275,0,[lS,yEt,EEt,kEt,xEt,mEt])))}function Nte(){Nte=J,S2e=ii((eI(),ct(ot(wEt,1),se,274,0,[AV,pEt,vEt,gEt,bEt,plt])))}function Pte(){Pte=J,Yve=ii((Hz(),ct(ot(s_t,1),se,313,0,[Klt,r_t,Wlt,n_t,i_t,JV])))}function Fte(){Fte=J,_2e=ii((Wz(),ct(ot(hEt,1),se,276,0,[hlt,llt,dlt,flt,glt,CV])))}function Bte(){Bte=J,ame=ii((aC(),ct(ot(sme,1),se,327,0,[uG,lht,fht,hht,dht,uht])))}function Rte(){Rte=J,E3e=ii((cl(),ct(ot(PG,1),se,273,0,[E2,J0,JO,WS,US,Hx])))}function jte(){jte=J,p3e=ii((Gz(),ct(ot(ZSt,1),se,312,0,[ift,YSt,QSt,WSt,XSt,KSt])))}function Osn(){return ly(),ct(ot(_o,1),se,93,0,[Lf,Z0,Mf,If,d0,Yh,th,Df,Kh])}function R$(t,e){var n;n=t.a,t.a=e,t.Db&4&&!(t.Db&1)&&Oi(t,new Um(t,0,n,t.a))}function j$(t,e){var n;n=t.b,t.b=e,t.Db&4&&!(t.Db&1)&&Oi(t,new Um(t,1,n,t.b))}function F8(t,e){var n;n=t.b,t.b=e,t.Db&4&&!(t.Db&1)&&Oi(t,new Um(t,3,n,t.b))}function Wv(t,e){var n;n=t.f,t.f=e,t.Db&4&&!(t.Db&1)&&Oi(t,new Um(t,3,n,t.f))}function Kv(t,e){var n;n=t.g,t.g=e,t.Db&4&&!(t.Db&1)&&Oi(t,new Um(t,4,n,t.g))}function Du(t,e){var n;n=t.i,t.i=e,t.Db&4&&!(t.Db&1)&&Oi(t,new Um(t,5,n,t.i))}function Iu(t,e){var n;n=t.j,t.j=e,t.Db&4&&!(t.Db&1)&&Oi(t,new Um(t,6,n,t.j))}function B8(t,e){var n;n=t.j,t.j=e,t.Db&4&&!(t.Db&1)&&Oi(t,new Um(t,1,n,t.j))}function R8(t,e){var n;n=t.c,t.c=e,t.Db&4&&!(t.Db&1)&&Oi(t,new Um(t,4,n,t.c))}function j8(t,e){var n;n=t.k,t.k=e,t.Db&4&&!(t.Db&1)&&Oi(t,new Um(t,2,n,t.k))}function qrt(t,e){var n;n=t.d,t.d=e,t.Db&4&&!(t.Db&1)&&Oi(t,new prt(t,2,n,t.d))}function Mg(t,e){var n;n=t.s,t.s=e,t.Db&4&&!(t.Db&1)&&Oi(t,new prt(t,4,n,t.s))}function Zm(t,e){var n;n=t.t,t.t=e,t.Db&4&&!(t.Db&1)&&Oi(t,new prt(t,5,n,t.t))}function $8(t,e){var n;n=t.F,t.F=e,t.Db&4&&!(t.Db&1)&&Oi(t,new la(t,1,5,n,e))}function TD(t,e){var n;return n=u(or((_R(),WG),t),55),n?n.xj(e):Ot(nr,De,1,e,5,1)}function B0(t,e){var n,r;return n=e in t.a,n&&(r=D0(t,e).he(),r)?r.a:null}function Nsn(t,e){var n,r,s;return n=(r=(xv(),s=new HE,s),e&&c5t(r,e),r),Lmt(n,t),n}function $te(t,e,n){if(Q8(t,n),!t.Bk()&&n!=null&&!t.wj(n))throw et(new Dtt);return n}function zte(t,e){return t.n=e,t.n?(t.f=new le,t.e=new le):(t.f=null,t.e=null),t}function Xr(t,e,n,r,s,o){var h;return h=Nnt(t,e),Hte(n,h),h.i=s?8:0,h.f=r,h.e=s,h.g=o,h}function xmt(t,e,n,r,s){this.d=e,this.k=r,this.f=s,this.o=-1,this.p=1,this.c=t,this.a=n}function kmt(t,e,n,r,s){this.d=e,this.k=r,this.f=s,this.o=-1,this.p=2,this.c=t,this.a=n}function Emt(t,e,n,r,s){this.d=e,this.k=r,this.f=s,this.o=-1,this.p=6,this.c=t,this.a=n}function Tmt(t,e,n,r,s){this.d=e,this.k=r,this.f=s,this.o=-1,this.p=7,this.c=t,this.a=n}function _mt(t,e,n,r,s){this.d=e,this.j=r,this.e=s,this.o=-1,this.p=4,this.c=t,this.a=n}function qte(t,e){var n,r,s,o;for(r=e,s=0,o=r.length;s=0),Nun(t.d,t.c)<0&&(t.a=t.a-1&t.d.a.length-1,t.b=t.d.c),t.c=-1}function Cmt(t){return t.a<54?t.f<0?-1:t.f>0?1:0:(!t.c&&(t.c=RD(t.f)),t.c).e}function yf(t){if(!(t>=0))throw et(new Bn("tolerance ("+t+") must be >= 0"));return t}function z8(){return Rht||(Rht=new Dce,s4(Rht,ct(ot(R4,1),De,130,0,[new kp]))),Rht}function yo(){yo=J,TS=new vet(SC,0),ll=new vet("INPUT",1),lu=new vet("OUTPUT",2)}function z$(){z$=J,sEt=new het("ARD",0),TV=new het("MSD",1),alt=new het("MANUAL",2)}function Yv(){Yv=J,IO=new ket("BARYCENTER",0),CS=new ket(pfe,1),iG=new ket(bfe,2)}function _D(t,e){var n;if(n=t.gc(),e<0||e>n)throw et(new Bm(e,n));return new Vbt(t,e)}function Ute(t,e){var n;return Et(e,42)?t.c.Mc(e):(n=Pit(t,e),kz(t,e),n)}function Lo(t,e,n){return lb(t,e),su(t,n),Mg(t,0),Zm(t,1),Ng(t,!0),Og(t,!0),t}function Gl(t,e){if(t<0)throw et(new Bn(e+" cannot be negative but was: "+t));return t}function Wte(t,e){var n,r;for(n=0,r=t.gc();n0?u(Fe(n.a,r-1),10):null}function F_(t,e){var n;n=t.k,t.k=e,t.Db&4&&!(t.Db&1)&&Oi(t,new la(t,1,2,n,t.k))}function H$(t,e){var n;n=t.f,t.f=e,t.Db&4&&!(t.Db&1)&&Oi(t,new la(t,1,8,n,t.f))}function V$(t,e){var n;n=t.i,t.i=e,t.Db&4&&!(t.Db&1)&&Oi(t,new la(t,1,7,n,t.i))}function Lmt(t,e){var n;n=t.a,t.a=e,t.Db&4&&!(t.Db&1)&&Oi(t,new la(t,1,8,n,t.a))}function Mmt(t,e){var n;n=t.b,t.b=e,t.Db&4&&!(t.Db&1)&&Oi(t,new la(t,1,0,n,t.b))}function Dmt(t,e){var n;n=t.b,t.b=e,t.Db&4&&!(t.Db&1)&&Oi(t,new la(t,1,0,n,t.b))}function Imt(t,e){var n;n=t.c,t.c=e,t.Db&4&&!(t.Db&1)&&Oi(t,new la(t,1,1,n,t.c))}function Omt(t,e){var n;n=t.c,t.c=e,t.Db&4&&!(t.Db&1)&&Oi(t,new la(t,1,1,n,t.c))}function Vrt(t,e){var n;n=t.c,t.c=e,t.Db&4&&!(t.Db&1)&&Oi(t,new la(t,1,4,n,t.c))}function Nmt(t,e){var n;n=t.d,t.d=e,t.Db&4&&!(t.Db&1)&&Oi(t,new la(t,1,1,n,t.d))}function Grt(t,e){var n;n=t.D,t.D=e,t.Db&4&&!(t.Db&1)&&Oi(t,new la(t,1,2,n,t.D))}function Urt(t,e){t.r>0&&t.c0&&t.g!=0&&Urt(t.i,e/t.r*t.i.d))}function Hsn(t,e,n){var r;t.b=e,t.a=n,r=(t.a&512)==512?new Fzt:new VL,t.c=sbn(r,t.b,t.a)}function nee(t,e){return V0(t.e,e)?(go(),Brt(e)?new kj(e,t):new DM(e,t)):new KVt(e,t)}function G$(t,e){return LWe(R_(t.a,e,$r(ja(i0,Xd($r(ja(e==null?0:ns(e),s0)),15)))))}function Vsn(t,e,n){return Wm(t,new ge(e),new En,new be(n),ct(ot(xl,1),se,132,0,[]))}function Gsn(t){var e,n;return 0>t?new Upt:(e=t+1,n=new CZt(e,t),new _bt(null,n))}function Usn(t,e){pn();var n;return n=new x6(1),pa(t)?Po(n,t,e):du(n.f,t,e),new z(n)}function Wsn(t,e){var n,r;return n=t.o+t.p,r=e.o+e.p,ne?(e<<=1,e>0?e:kC):e}function Wrt(t){switch(nbt(t.e!=3),t.e){case 2:return!1;case 0:return!0}return Jrn(t)}function iee(t,e){var n;return Et(e,8)?(n=u(e,8),t.a==n.a&&t.b==n.b):!1}function Krt(t,e,n){var r,s,o;return o=e>>5,s=e&31,r=Xs(jm(t.n[n][o],$r(L0(s,1))),3),r}function Ysn(t,e){var n,r;for(r=e.vc().Kc();r.Ob();)n=u(r.Pb(),42),$z(t,n.cd(),n.dd())}function Xsn(t,e){var n;n=new cs,u(e.b,65),u(e.b,65),u(e.b,65),Mu(e.a,new evt(t,n,e))}function Pmt(t,e){var n;n=t.b,t.b=e,t.Db&4&&!(t.Db&1)&&Oi(t,new la(t,1,21,n,t.b))}function Fmt(t,e){var n;n=t.d,t.d=e,t.Db&4&&!(t.Db&1)&&Oi(t,new la(t,1,11,n,t.d))}function U$(t,e){var n;n=t.j,t.j=e,t.Db&4&&!(t.Db&1)&&Oi(t,new la(t,1,13,n,t.j))}function see(t,e,n){var r,s,o;for(o=t.a.length-1,s=t.b,r=0;r>>31;r!=0&&(t[n]=r)}function aan(t,e){pn();var n,r;for(r=new le,n=0;n0&&(this.g=this.ri(this.i+(this.i/8|0)+1),t.Qc(this.g))}function ws(t,e){wj.call(this,p4e,t,e),this.b=this,this.a=gu(t.Tg(),wn(this.e.Tg(),this.c))}function j_(t,e){var n,r;for(Pn(e),r=e.vc().Kc();r.Ob();)n=u(r.Pb(),42),t.zc(n.cd(),n.dd())}function ban(t,e,n){var r;for(r=n.Kc();r.Ob();)if(!d$(t,e,r.Pb()))return!1;return!0}function van(t,e,n,r,s){var o;return n&&(o=is(e.Tg(),t.c),s=n.gh(e,-1-(o==-1?r:o),null,s)),s}function wan(t,e,n,r,s){var o;return n&&(o=is(e.Tg(),t.c),s=n.ih(e,-1-(o==-1?r:o),null,s)),s}function Tee(t){var e;if(t.b==-2){if(t.e==0)e=-1;else for(e=0;t.a[e]==0;e++);t.b=e}return t.b}function _ee(t){switch(t.g){case 2:return we(),jn;case 4:return we(),Wn;default:return t}}function Cee(t){switch(t.g){case 1:return we(),Lr;case 3:return we(),Fn;default:return t}}function man(t){var e,n,r;return t.j==(we(),Fn)&&(e=eoe(t),n=Gu(e,Wn),r=Gu(e,jn),r||r&&n)}function yan(t){var e,n;return e=u(t.e&&t.e(),9),n=u(Wvt(e,e.length),9),new hh(e,n,e.length)}function xan(t,e){Ar(e,gfe,1),qyt(zWe(new cr((PT(),new qnt(t,!1,!1,new $P))))),br(e)}function CD(t,e){return Rn(),pa(t)?Ywt(t,Kr(e)):Im(t)?Ent(t,xe(e)):Dm(t)?_Je(t,Be(e)):t.wd(e)}function qmt(t,e){e.q=t,t.d=b.Math.max(t.d,e.r),t.b+=e.d+(t.a.c.length==0?0:t.c),ue(t.a,e)}function H8(t,e){var n,r,s,o;return s=t.c,n=t.c+t.b,o=t.d,r=t.d+t.a,e.a>s&&e.ao&&e.b1||t.Ob())return++t.a,t.g=0,e=t.i,t.Ob(),e;throw et(new _c)}function Oan(t){SGt();var e;return BHt(cht,t)||(e=new pQ,e.a=t,Ibt(cht,t,e)),u(Ao(cht,t),635)}function Ph(t){var e,n,r,s;return s=t,r=0,s<0&&(s+=mb,r=U0),n=Ms(s/hx),e=Ms(s-n*hx),hu(e,n,r)}function SD(t){var e,n,r;for(r=0,n=new k6(t.a);n.a>22),s=t.h+e.h+(r>>22),hu(n&yl,r&yl,s&U0)}function Uee(t,e){var n,r,s;return n=t.l-e.l,r=t.m-e.m+(n>>22),s=t.h-e.h+(r>>22),hu(n&yl,r&yl,s&U0)}function DD(t){var e;return t<128?(e=(oKt(),R8t)[t],!e&&(e=R8t[t]=new GB(t)),e):new GB(t)}function os(t){var e;return Et(t,78)?t:(e=t&&t.__java$exception,e||(e=new Pne(t),Z$t(e)),e)}function ID(t){if(Et(t,186))return u(t,118);if(t)return null;throw et(new m6(z1e))}function Wee(t,e){if(e==null)return!1;for(;t.a!=t.b;)if(Ni(e,lz(t)))return!0;return!1}function Kmt(t){return t.a.Ob()?!0:t.a!=t.d?!1:(t.a=new Awt(t.e.f),t.a.Ob())}function Hs(t,e){var n,r;return n=e.Pc(),r=n.length,r==0?!1:(ovt(t.c,t.c.length,n),!0)}function Kan(t,e,n){var r,s;for(s=e.vc().Kc();s.Ob();)r=u(s.Pb(),42),t.yc(r.cd(),r.dd(),n);return t}function Kee(t,e){var n,r;for(r=new S(t.b);r.a=0,"Negative initial capacity"),vj(e>=0,"Non-positive load factor"),al(this)}function iit(t,e,n){return t>=128?!1:t<64?t_(Xs(L0(1,t),n),0):t_(Xs(L0(1,t-64),e),0)}function ron(t,e){return!t||!e||t==e?!1:tw(t.b.c,e.b.c+e.b.b)<0&&tw(e.b.c,t.b.c+t.b.b)<0}function ane(t){var e,n,r;return n=t.n,r=t.o,e=t.d,new fh(n.a-e.b,n.b-e.d,r.a+(e.b+e.c),r.b+(e.d+e.a))}function ion(t){var e,n,r,s;for(n=t.a,r=0,s=n.length;rr)throw et(new Bm(e,r));return t.hi()&&(n=EXt(t,n)),t.Vh(e,n)}function PD(t,e,n){return n==null?(!t.q&&(t.q=new Rr),G6(t.q,e)):(!t.q&&(t.q=new Rr),Pi(t.q,e,n)),t}function Jt(t,e,n){return n==null?(!t.q&&(t.q=new Rr),G6(t.q,e)):(!t.q&&(t.q=new Rr),Pi(t.q,e,n)),t}function one(t){var e,n;return n=new v$,Ho(n,t),Jt(n,(Up(),Tx),t),e=new Rr,cwn(t,n,e),Nyn(t,n,e),n}function oon(t){y4();var e,n,r;for(n=Ot(sa,te,8,2,0,1),r=0,e=0;e<2;e++)r+=.5,n[e]=qln(r,t);return n}function cne(t,e){var n,r,s,o;for(n=!1,r=t.a[e].length,o=0;o>=1);return e}function lne(t){var e,n;return n=uI(t.h),n==32?(e=uI(t.m),e==32?uI(t.l)+32:e+20-10):n-12}function q_(t){var e;return e=t.a[t.b],e==null?null:(ds(t.a,t.b,null),t.b=t.b+1&t.a.length-1,e)}function hne(t){var e,n;return e=t.t-t.k[t.o.p]*t.d+t.j[t.o.p]>t.f,n=t.u+t.e[t.o.p]*t.d>t.f*t.s*t.d,e||n}function az(t,e,n){var r,s;return r=new Art(e,n),s=new ye,t.b=nce(t,t.b,r,s),s.b||++t.c,t.b.b=!1,s.d}function fne(t,e,n){var r,s,o,h;for(h=G_(e,n),o=0,s=h.Kc();s.Ob();)r=u(s.Pb(),11),Pi(t.c,r,pe(o++))}function Kp(t){var e,n;for(n=new S(t.a.b);n.an&&(n=t[e]);return n}function dne(t,e,n){var r;return r=new le,h5t(t,e,r,(we(),Wn),!0,!1),h5t(t,n,r,jn,!1,!1),r}function ait(t,e,n){var r,s,o,h;return o=null,h=e,s=Hv(h,"labels"),r=new OVt(t,n),o=(Cgn(r.a,r.b,s),s),o}function uon(t,e,n,r){var s;return s=Z4t(t,e,n,r),!s&&(s=lcn(t,n,r),s&&!E4(t,e,s))?null:s}function lon(t,e,n,r){var s;return s=J4t(t,e,n,r),!s&&(s=Eit(t,n,r),s&&!E4(t,e,s))?null:s}function gne(t,e){var n;for(n=0;n1||e>=0&&t.b<3)}function FD(t){var e,n,r;for(e=new Hu,r=gi(t,0);r.b!=r.d.c;)n=u(di(r),8),h8(e,0,new No(n));return e}function cb(t){var e,n;for(n=new S(t.a.b);n.ar?1:0}function dyt(t,e){return Roe(t,e)?(cn(t.b,u(K(e,(ie(),Iy)),21),e),pi(t.a,e),!0):!1}function kon(t){var e,n;e=u(K(t,(ie(),ul)),10),e&&(n=e.c,Au(n.a,e),n.a.c.length==0&&Au(Qa(e).b,n))}function yne(t){return U1?Ot(V0e,khe,572,0,0,1):u($1(t.a,Ot(V0e,khe,572,t.a.c.length,0,1)),842)}function Eon(t,e,n,r){return qj(),new $tt(ct(ot(Ab,1),Eq,42,0,[(Jit(t,e),new Ev(t,e)),(Jit(n,r),new Ev(n,r))]))}function i4(t,e,n){var r,s;return s=(r=new Ptt,r),Lo(s,e,n),Hr((!t.q&&(t.q=new he(Jh,t,11,10)),t.q),s),s}function lit(t){var e,n,r,s;for(s=YWe(V3e,t),n=s.length,r=Ot(Me,te,2,n,6,1),e=0;e=t.b.c.length||(gyt(t,2*e+1),n=2*e+2,n=0&&t[r]===e[r];r--);return r<0?0:eet(Xs(t[r],Eo),Xs(e[r],Eo))?-1:1}function Ton(t,e){var n,r;for(r=gi(t,0);r.b!=r.d.c;)n=u(di(r),214),n.e.length>0&&(e.td(n),n.i&&wcn(n))}function fit(t,e){var n,r;return r=u(Dn(t.a,4),126),n=Ot(fft,zct,415,e,0,1),r!=null&&qc(r,0,n,0,r.length),n}function kne(t,e){var n;return n=new Hst((t.f&256)!=0,t.i,t.a,t.d,(t.f&16)!=0,t.j,t.g,e),t.e!=null||(n.c=t),n}function _on(t,e){var n,r;for(r=t.Zb().Cc().Kc();r.Ob();)if(n=u(r.Pb(),14),n.Hc(e))return!0;return!1}function dit(t,e,n,r,s){var o,h;for(h=n;h<=s;h++)for(o=e;o<=r;o++)if(l4(t,o,h))return!0;return!1}function Ene(t,e,n){var r,s,o,h;for(Pn(n),h=!1,o=t.Zc(e),s=n.Kc();s.Ob();)r=s.Pb(),o.Rb(r),h=!0;return h}function Con(t,e){var n;return t===e?!0:Et(e,83)?(n=u(e,83),b4t(Iv(t),n.vc())):!1}function Tne(t,e,n){var r,s;for(s=n.Kc();s.Ob();)if(r=u(s.Pb(),42),t.re(e,r.dd()))return!0;return!1}function _ne(t,e,n){return t.d[e.p][n.p]||(kln(t,e,n),t.d[e.p][n.p]=!0,t.d[n.p][e.p]=!0),t.a[e.p][n.p]}function Q8(t,e){if(!t.ai()&&e==null)throw et(new Bn("The 'no null' constraint is violated"));return e}function Z8(t,e){t.D==null&&t.B!=null&&(t.D=t.B,t.B=null),Grt(t,e==null?null:(Pn(e),e)),t.C&&t.yk(null)}function Son(t,e){var n;return!t||t==e||!ia(e,(ie(),Aw))?!1:(n=u(K(e,(ie(),Aw)),10),n!=t)}function git(t){switch(t.i){case 2:return!0;case 1:return!1;case-1:++t.c;default:return t.pl()}}function Cne(t){switch(t.i){case-2:return!0;case-1:return!1;case 1:--t.c;default:return t.ql()}}function Sne(t){bXt.call(this,"The given string does not match the expected format for individual spacings.",t)}function Pl(){Pl=J,rh=new HR("ELK",0),pAt=new HR("JSON",1),gAt=new HR("DOT",2),bAt=new HR("SVG",3)}function BD(){BD=J,bG=new Tet(W0,0),Y_t=new Tet("RADIAL_COMPACTION",1),X_t=new Tet("WEDGE_COMPACTION",2)}function j1(){j1=J,l7t=new net("CONCURRENT",0),Zl=new net("IDENTITY_FINISH",1),Sy=new net("UNORDERED",2)}function pit(){pit=J,j7t=(mR(),Cut),R7t=new vn(N6t,j7t),qge=new rs(P6t),Hge=new rs(F6t),Vge=new rs(B6t)}function J8(){J8=J,Z9t=new G5,J9t=new LY,n2e=new SL,e2e=new MY,t2e=new DY,Q9t=(Pn(t2e),new Ue)}function t7(){t7=J,sht=new met("CONSERVATIVE",0),k_t=new met("CONSERVATIVE_SOFT",1),_S=new met("SLOPPY",2)}function oz(){oz=J,rAt=new Sv(15),b3e=new po((Ti(),$b),rAt),qS=$x,JSt=Jye,tAt=jb,nAt=a5,eAt=MG}function bit(t,e,n){var r,s,o;for(r=new hs,o=gi(n,0);o.b!=o.d.c;)s=u(di(o),8),pi(r,new No(s));Ene(t,e,r)}function Aon(t){var e,n,r;for(e=0,r=Ot(sa,te,8,t.b,0,1),n=gi(t,0);n.b!=n.d.c;)r[e++]=u(di(n),8);return r}function byt(t){var e;return e=(!t.a&&(t.a=new he(tg,t,9,5)),t.a),e.i!=0?UWe(u(St(e,0),678)):null}function Lon(t,e){var n;return n=Wa(t,e),eet(crt(t,e),0)|cKe(crt(t,n),0)?n:Wa(kq,crt(jm(n,63),1))}function Mon(t,e){var n;n=Ie((Oit(),ZV))!=null&&e.wg()!=null?Xt(xe(e.wg()))/Xt(xe(Ie(ZV))):1,Pi(t.b,e,n)}function Don(t,e){var n,r;return n=u(t.d.Bc(e),14),n?(r=t.e.hc(),r.Gc(n),t.e.d-=n.gc(),n.$b(),r):null}function vyt(t,e){var n,r;if(r=t.c[e],r!=0)for(t.c[e]=0,t.d-=r,n=e+1;n0)return b8(e-1,t.a.c.length),Sg(t.a,e-1);throw et(new tzt)}function Ion(t,e,n){if(e<0)throw et(new Oo(Qfe+e));ee)throw et(new Bn(Sq+t+Ehe+e));if(t<0||e>n)throw et(new Dpt(Sq+t+x6t+e+m6t+n))}function Mne(t){if(!t.a||!(t.a.i&8))throw et(new Yo("Enumeration class expected for layout option "+t.f))}function Jm(t){var e;++t.j,t.i==0?t.g=null:t.inH?t-n>nH:n-t>nH}function wit(t,e){return!t||e&&!t.j||Et(t,124)&&u(t,124).a.b==0?0:t.Re()}function uz(t,e){return!t||e&&!t.k||Et(t,124)&&u(t,124).a.a==0?0:t.Se()}function RD(t){return e2(),t<0?t!=-1?new f3t(-1,-t):gut:t<=10?Z8t[Ms(t)]:new f3t(1,t)}function myt(t){throw rit(),et(new Wzt("Unexpected typeof result '"+t+"'; please report this bug to the GWT team"))}function Pne(t){Jzt(),tj(this),Wj(this),this.e=t,Koe(this,t),this.g=t==null?Pu:Jo(t),this.a="",this.b=t,this.a=""}function yyt(){this.a=new YQ,this.f=new qjt(this),this.b=new Hjt(this),this.i=new Vjt(this),this.e=new Gjt(this)}function Fne(){zUe.call(this,new rmt(Ym(16))),Gl(2,ihe),this.b=2,this.a=new nwt(null,null,0,null),oM(this.a,this.a)}function H_(){H_=J,Ylt=new pet("DUMMY_NODE_OVER",0),a_t=new pet("DUMMY_NODE_UNDER",1),tG=new pet("EQUAL",2)}function mit(){mit=J,Rut=wXt(ct(ot(zS,1),se,103,0,[(xo(),Wh),Af])),jut=wXt(ct(ot(zS,1),se,103,0,[Q0,X0]))}function yit(t){return(we(),Bu).Hc(t.j)?Xt(xe(K(t,(ie(),g9)))):cc(ct(ot(sa,1),te,8,0,[t.i.n,t.n,t.a])).b}function Bon(t){var e,n,r,s;for(r=t.b.a,n=r.a.ec().Kc();n.Ob();)e=u(n.Pb(),561),s=new Aoe(e,t.e,t.f),ue(t.g,s)}function lb(t,e){var n,r,s;r=t.nk(e,null),s=null,e&&(s=(t8(),n=new pv,n),P8(s,t.r)),r=z1(t,s,r),r&&r.Fi()}function Ron(t,e){var n,r;for(r=wl(t.d,1)!=0,n=!0;n;)n=!1,n=e.c.Tf(e.e,r),n=n|gI(t,e,r,!1),r=!r;Rmt(t)}function xyt(t,e){var n,r,s;return r=!1,n=e.q.d,e.ds&&(cse(e.q,s),r=n!=e.q.d)),r}function Bne(t,e){var n,r,s,o,h,d,w,k;return w=e.i,k=e.j,r=t.f,s=r.i,o=r.j,h=w-s,d=k-o,n=b.Math.sqrt(h*h+d*d),n}function kyt(t,e){var n,r;return r=Ez(t),r||(n=(fat(),uae(e)),r=new G$t(n),Hr(r.Vk(),t)),r}function jD(t,e){var n,r;return n=u(t.c.Bc(e),14),n?(r=t.hc(),r.Gc(n),t.d-=n.gc(),n.$b(),t.mc(r)):t.jc()}function Rne(t,e){var n;for(n=0;n=t.c.b:t.a<=t.c.b))throw et(new _c);return e=t.a,t.a+=t.c.c,++t.b,pe(e)}function zon(t){var e;return e=new vte(t),sD(t.a,jpe,new Al(ct(ot(dO,1),De,369,0,[e]))),e.d&&ue(e.f,e.d),e.f}function xit(t){var e;return e=new H2t(t.a),Ho(e,t),Jt(e,(ie(),Bi),t),e.o.a=t.g,e.o.b=t.f,e.n.a=t.i,e.n.b=t.j,e}function qon(t,e,n,r){var s,o;for(o=t.Kc();o.Ob();)s=u(o.Pb(),70),s.n.a=e.a+(r.a-s.o.a)/2,s.n.b=e.b,e.b+=s.o.b+n}function Hon(t,e,n){var r,s;for(s=e.a.a.ec().Kc();s.Ob();)if(r=u(s.Pb(),57),QYt(t,r,n))return!0;return!1}function Von(t){var e,n;for(n=new S(t.r);n.a=0?e:-e;r>0;)r%2==0?(n*=n,r=r/2|0):(s*=n,r-=1);return e<0?1/s:s}function Kon(t,e){var n,r,s;for(s=1,n=t,r=e>=0?e:-e;r>0;)r%2==0?(n*=n,r=r/2|0):(s*=n,r-=1);return e<0?1/s:s}function Gne(t){var e,n;if(t!=null)for(n=0;n0&&(n=u(Fe(t.a,t.a.c.length-1),570),dyt(n,e))||ue(t.a,new TZt(e))}function Jon(t){bf();var e,n;e=t.d.c-t.e.c,n=u(t.g,145),Mu(n.b,new mT(e)),Mu(n.c,new q2(e)),Oa(n.i,new WB(e))}function Yne(t){var e;return e=new Ap,e.a+="VerticalSegment ",Cc(e,t.e),e.a+=" ",ni(e,J2t(new Ktt,new S(t.k))),e.a}function tcn(t){var e;return e=u(Vv(t.c.c,""),229),e||(e=new $6(Jk(Zk(new bm,""),"Other")),db(t.c.c,"",e)),e}function V_(t){var e;return t.Db&64?kf(t):(e=new Ih(kf(t)),e.a+=" (name: ",So(e,t.zb),e.a+=")",e.a)}function Syt(t,e,n){var r,s;return s=t.sb,t.sb=e,t.Db&4&&!(t.Db&1)&&(r=new la(t,1,4,s,e),n?n.Ei(r):n=r),n}function kit(t,e){var n,r,s;for(n=0,s=uc(t,e).Kc();s.Ob();)r=u(s.Pb(),11),n+=K(r,(ie(),ul))!=null?1:0;return n}function a4(t,e,n){var r,s,o;for(r=0,o=gi(t,0);o.b!=o.d.c&&(s=Xt(xe(di(o))),!(s>n));)s>=e&&++r;return r}function ecn(t,e,n){var r,s;return r=new P0(t.e,3,13,null,(s=e.c,s||(hn(),J1)),Pg(t,e),!1),n?n.Ei(r):n=r,n}function ncn(t,e,n){var r,s;return r=new P0(t.e,4,13,(s=e.c,s||(hn(),J1)),null,Pg(t,e),!1),n?n.Ei(r):n=r,n}function Ayt(t,e,n){var r,s;return s=t.r,t.r=e,t.Db&4&&!(t.Db&1)&&(r=new la(t,1,8,s,t.r),n?n.Ei(r):n=r),n}function Ig(t,e){var n,r;return n=u(e,676),r=n.vk(),!r&&n.wk(r=Et(e,88)?new GVt(t,u(e,26)):new fQt(t,u(e,148))),r}function $D(t,e,n){var r;t.qi(t.i+1),r=t.oi(e,n),e!=t.i&&qc(t.g,e,t.g,e+1,t.i-e),ds(t.g,e,r),++t.i,t.bi(e,n),t.ci()}function rcn(t,e){var n;return e.a&&(n=e.a.a.length,t.a?ni(t.a,t.b):t.a=new jl(t.d),gQt(t.a,e.a,e.d.length,n)),t}function icn(t,e){var n,r,s,o;if(e.vi(t.a),o=u(Dn(t.a,8),1936),o!=null)for(n=o,r=0,s=n.length;rn)throw et(new Oo(Sq+t+x6t+e+", size: "+n));if(t>e)throw et(new Bn(Sq+t+Ehe+e))}function wh(t,e,n){if(e<0)D4t(t,n);else{if(!n.Ij())throw et(new Bn(c2+n.ne()+zC));u(n,66).Nj().Vj(t,t.yh(),e)}}function ocn(t,e,n,r,s,o,h,d){var w;for(w=n;o=r||e=65&&t<=70?t-65+10:t>=97&&t<=102?t-97+10:t>=48&&t<=57?t-48:0}function nre(t){var e;return t.Db&64?kf(t):(e=new Ih(kf(t)),e.a+=" (source: ",So(e,t.d),e.a+=")",e.a)}function ucn(t,e,n){var r,s;return s=t.a,t.a=e,t.Db&4&&!(t.Db&1)&&(r=new la(t,1,5,s,t.a),n?Q3t(n,r):n=r),n}function Og(t,e){var n;n=(t.Bb&256)!=0,e?t.Bb|=256:t.Bb&=-257,t.Db&4&&!(t.Db&1)&&Oi(t,new mf(t,1,2,n,e))}function Myt(t,e){var n;n=(t.Bb&256)!=0,e?t.Bb|=256:t.Bb&=-257,t.Db&4&&!(t.Db&1)&&Oi(t,new mf(t,1,8,n,e))}function fz(t,e){var n;n=(t.Bb&256)!=0,e?t.Bb|=256:t.Bb&=-257,t.Db&4&&!(t.Db&1)&&Oi(t,new mf(t,1,8,n,e))}function Ng(t,e){var n;n=(t.Bb&512)!=0,e?t.Bb|=512:t.Bb&=-513,t.Db&4&&!(t.Db&1)&&Oi(t,new mf(t,1,3,n,e))}function Dyt(t,e){var n;n=(t.Bb&512)!=0,e?t.Bb|=512:t.Bb&=-513,t.Db&4&&!(t.Db&1)&&Oi(t,new mf(t,1,9,n,e))}function U_(t,e){var n;return t.b==-1&&t.a&&(n=t.a.Gj(),t.b=n?t.c.Xg(t.a.aj(),n):is(t.c.Tg(),t.a)),t.c.Og(t.b,e)}function pe(t){var e,n;return t>-129&&t<128?(e=t+128,n=(tKt(),j8t)[e],!n&&(n=j8t[e]=new rM(t)),n):new rM(t)}function e7(t){var e,n;return t>-129&&t<128?(e=t+128,n=(aKt(),H8t)[e],!n&&(n=H8t[e]=new UB(t)),n):new UB(t)}function Iyt(t){var e,n;return e=t.k,e==(Kn(),Fs)?(n=u(K(t,(ie(),yc)),61),n==(we(),Fn)||n==Lr):!1}function lcn(t,e,n){var r,s,o;return o=(s=w7(t.b,e),s),o&&(r=u(gq(wD(t,o),""),26),r)?Z4t(t,r,e,n):null}function Eit(t,e,n){var r,s,o;return o=(s=w7(t.b,e),s),o&&(r=u(gq(wD(t,o),""),26),r)?J4t(t,r,e,n):null}function rre(t,e){var n,r;for(r=new lr(t);r.e!=r.i.gc();)if(n=u(kr(r),138),qt(e)===qt(n))return!0;return!1}function W_(t,e,n){var r;if(r=t.gc(),e>r)throw et(new Bm(e,r));if(t.hi()&&t.Hc(n))throw et(new Bn(YI));t.Xh(e,n)}function hcn(t,e){var n;if(n=t4(t.i,e),n==null)throw et(new fd("Node did not exist in input."));return Hmt(e,n),null}function fcn(t,e){var n;if(n=dI(t,e),Et(n,322))return u(n,34);throw et(new Bn(c2+e+"' is not a valid attribute"))}function dcn(t,e,n){var r,s;for(s=Et(e,99)&&u(e,18).Bb&oo?new Net(e,t):new U8(e,t),r=0;re?1:t==e?t==0?Vs(1/t,1/e):0:isNaN(t)?isNaN(e)?0:1:-1}function kcn(t,e){Ar(e,"Sort end labels",1),Ts(Qi(oc(new kn(null,new Cn(t.b,16)),new qP),new z5),new sY),br(e)}function K_(t,e,n){var r,s;return t.ej()?(s=t.fj(),r=Mst(t,e,n),t.$i(t.Zi(7,pe(n),r,e,s)),r):Mst(t,e,n)}function Tit(t,e){var n,r,s;t.d==null?(++t.e,--t.f):(s=e.cd(),n=e.Sh(),r=(n&Di)%t.d.length,sin(t,r,xoe(t,r,n,s)))}function n7(t,e){var n;n=(t.Bb&Tf)!=0,e?t.Bb|=Tf:t.Bb&=-1025,t.Db&4&&!(t.Db&1)&&Oi(t,new mf(t,1,10,n,e))}function r7(t,e){var n;n=(t.Bb&wy)!=0,e?t.Bb|=wy:t.Bb&=-4097,t.Db&4&&!(t.Db&1)&&Oi(t,new mf(t,1,12,n,e))}function i7(t,e){var n;n=(t.Bb&Zu)!=0,e?t.Bb|=Zu:t.Bb&=-8193,t.Db&4&&!(t.Db&1)&&Oi(t,new mf(t,1,15,n,e))}function s7(t,e){var n;n=(t.Bb&Cy)!=0,e?t.Bb|=Cy:t.Bb&=-2049,t.Db&4&&!(t.Db&1)&&Oi(t,new mf(t,1,11,n,e))}function Ecn(t,e){var n;return n=Vs(t.b.c,e.b.c),n!=0||(n=Vs(t.a.a,e.a.a),n!=0)?n:Vs(t.a.b,e.a.b)}function Tcn(t,e){var n;if(n=or(t.k,e),n==null)throw et(new fd("Port did not exist in input."));return Hmt(e,n),null}function _cn(t){var e,n;for(n=Coe(Vl(t)).Kc();n.Ob();)if(e=Kr(n.Pb()),dC(t,e))return Orn((PHt(),n4e),e);return null}function Ccn(t,e){var n,r,s,o,h;for(h=gu(t.e.Tg(),e),o=0,n=u(t.g,119),s=0;s>10)+II&Ns,e[1]=(t&1023)+56320&Ns,Fh(e,0,e.length)}function gz(t){var e,n;return n=u(K(t,(Ce(),Jl)),103),n==(xo(),h0)?(e=Xt(xe(K(t,BV))),e>=1?Af:X0):n}function Lcn(t){switch(u(K(t,(Ce(),Y0)),218).g){case 1:return new _X;case 3:return new MX;default:return new TX}}function hb(t){if(t.c)hb(t.c);else if(t.d)throw et(new Yo("Stream already terminated, can't be modified or used"))}function Sit(t){var e;return t.Db&64?kf(t):(e=new Ih(kf(t)),e.a+=" (identifier: ",So(e,t.k),e.a+=")",e.a)}function ore(t,e,n){var r,s;return r=(xv(),s=new mp,s),R$(r,e),j$(r,n),t&&Hr((!t.a&&(t.a=new qs(Qh,t,5)),t.a),r),r}function Ait(t,e,n,r){var s,o;return Pn(r),Pn(n),s=t.xc(e),o=s==null?n:kHt(u(s,15),u(n,14)),o==null?t.Bc(e):t.zc(e,o),o}function on(t){var e,n,r,s;return n=(e=u(Yf((r=t.gm,s=r.f,s==ti?r:s)),9),new hh(e,u(pf(e,e.length),9),0)),xf(n,t),n}function Mcn(t,e,n){var r,s;for(s=t.a.ec().Kc();s.Ob();)if(r=u(s.Pb(),10),MD(n,u(Fe(e,r.p),14)))return r;return null}function Dcn(t,e,n){var r;try{hon(t,e,n)}catch(s){throw s=os(s),Et(s,597)?(r=s,et(new $wt(r))):et(s)}return e}function Qp(t,e){var n;return Xo(t)&&Xo(e)&&(n=t-e,DI>1,t.k=n-1>>1}function Lit(){r4t();var t,e,n;n=S4n+++Date.now(),t=Ms(b.Math.floor(n*NI))&Cq,e=Ms(n-t*w6t),this.a=t^1502,this.b=e^tot}function $0(t){var e,n,r;for(e=new le,r=new S(t.j);r.a34028234663852886e22?ms:e<-34028234663852886e22?Rs:e}function cre(t){return t-=t>>1&1431655765,t=(t>>2&858993459)+(t&858993459),t=(t>>4)+t&252645135,t+=t>>8,t+=t>>16,t&63}function ure(t){var e,n,r,s;for(e=new HUt(t.Hd().gc()),s=0,r=W6(t.Hd().Kc());r.Ob();)n=r.Pb(),Uen(e,n,pe(s++));return vdn(e.a)}function Bcn(t,e){var n,r,s;for(s=new Rr,r=e.vc().Kc();r.Ob();)n=u(r.Pb(),42),Pi(s,n.cd(),Aan(t,u(n.dd(),15)));return s}function Ryt(t,e){t.n.c.length==0&&ue(t.n,new r$(t.s,t.t,t.i)),ue(t.b,e),y3t(u(Fe(t.n,t.n.c.length-1),211),e),mue(t,e)}function o4(t){return(t.c!=t.b.b||t.i!=t.g.b)&&(t.a.c=Ot(nr,De,1,0,5,1),Hs(t.a,t.b),Hs(t.a,t.g),t.c=t.b.b,t.i=t.g.b),t.a}function Mit(t,e){var n,r,s;for(s=0,r=u(e.Kb(t),20).Kc();r.Ob();)n=u(r.Pb(),17),Re(Be(K(n,(ie(),K1))))||++s;return s}function Rcn(t,e){var n,r,s;r=Z3(e),s=Xt(xe(ny(r,(Ce(),Sf)))),n=b.Math.max(0,s/2-.5),nC(e,n,1),ue(t,new eVt(e,n))}function mh(){mh=J,TO=new TM(W0,0),gS=new TM("FIRST",1),g2=new TM(vfe,2),pS=new TM("LAST",3),Ny=new TM(wfe,4)}function z0(){z0=J,nft=new jR(SC,0),YO=new jR("POLYLINE",1),A9=new jR("ORTHOGONAL",2),qx=new jR("SPLINES",3)}function pz(){pz=J,gCt=new Cet("ASPECT_RATIO_DRIVEN",0),Aht=new Cet("MAX_SCALE_DRIVEN",1),dCt=new Cet("AREA_DRIVEN",2)}function HD(){HD=J,mG=new Aet("P1_STRUCTURE",0),yG=new Aet("P2_PROCESSING_ORDER",1),xG=new Aet("P3_EXECUTION",2)}function bz(){bz=J,kht=new Eet("OVERLAP_REMOVAL",0),yht=new Eet("COMPACTION",1),xht=new Eet("GRAPH_SIZE_CALCULATION",2)}function tw(t,e){return A1(),yf(r2),b.Math.abs(t-e)<=r2||t==e||isNaN(t)&&isNaN(e)?0:te?1:Cv(isNaN(t),isNaN(e))}function lre(t,e){var n,r;for(n=gi(t,0);n.b!=n.d.c;){if(r=uM(xe(di(n))),r==e)return;if(r>e){lrt(n);break}}YM(n,e)}function an(t,e){var n,r,s,o,h;if(n=e.f,db(t.c.d,n,e),e.g!=null)for(s=e.g,o=0,h=s.length;oe&&r.ue(t[o-1],t[o])>0;--o)h=t[o],ds(t,o,t[o-1]),ds(t,o-1,h)}function yh(t,e,n,r){if(e<0)r5t(t,n,r);else{if(!n.Ij())throw et(new Bn(c2+n.ne()+zC));u(n,66).Nj().Tj(t,t.yh(),e,r)}}function vz(t,e){if(e==t.d)return t.e;if(e==t.e)return t.d;throw et(new Bn("Node "+e+" not part of edge "+t))}function $cn(t,e){switch(e.g){case 2:return t.b;case 1:return t.c;case 4:return t.d;case 3:return t.a;default:return!1}}function hre(t,e){switch(e.g){case 2:return t.b;case 1:return t.c;case 4:return t.d;case 3:return t.a;default:return!1}}function jyt(t,e,n,r){switch(e){case 3:return t.f;case 4:return t.g;case 5:return t.i;case 6:return t.j}return Lyt(t,e,n,r)}function zcn(t){return t.k!=(Kn(),Ws)?!1:A8(new kn(null,new Ov(new pr(mr(Gs(t).a.Kc(),new H)))),new yF)}function qcn(t){return t.e==null?t:(!t.c&&(t.c=new Hst((t.f&256)!=0,t.i,t.a,t.d,(t.f&16)!=0,t.j,t.g,null)),t.c)}function Hcn(t,e){return t.h==MI&&t.m==0&&t.l==0?(e&&(u2=hu(0,0,0)),fGt((N8(),O8t))):(e&&(u2=hu(t.l,t.m,t.h)),hu(0,0,0))}function Jo(t){var e;return Array.isArray(t)&&t.im===de?Mp(bl(t))+"@"+(e=ns(t)>>>0,e.toString(16)):t.toString()}function Y_(t){var e;this.a=(e=u(t.e&&t.e(),9),new hh(e,u(pf(e,e.length),9),0)),this.b=Ot(nr,De,1,this.a.a.length,5,1)}function Vcn(t){var e,n,r;for(this.a=new S0,r=new S(t);r.a0&&(Yr(e-1,t.length),t.charCodeAt(e-1)==58)&&!Dit(t,ZS,JS))}function Dit(t,e,n){var r,s;for(r=0,s=t.length;r=s)return e.c+n;return e.c+e.b.gc()}function Ycn(t,e){f8();var n,r,s,o;for(r=_Jt(t),s=e,I8(r,0,r.length,s),n=0;n0&&(r+=s,++n);return n>1&&(r+=t.d*(n-1)),r}function zyt(t){var e,n,r;for(r=new yg,r.a+="[",e=0,n=t.gc();e0&&this.b>0&&kvt(this.c,this.b,this.a)}function Vyt(t){Oit(),this.c=N1(ct(ot(G4n,1),De,831,0,[Wve])),this.b=new Rr,this.a=t,Pi(this.b,ZV,1),Mu(Kve,new t$t(this))}function fre(t,e){var n;return t.d?Il(t.b,e)?u(or(t.b,e),51):(n=e.Kf(),Pi(t.b,e,n),n):e.Kf()}function Gyt(t,e){var n;return qt(t)===qt(e)?!0:Et(e,91)?(n=u(e,91),t.e==n.e&&t.d==n.d&&Prn(t,n.a)):!1}function Z6(t){switch(we(),t.g){case 4:return Fn;case 1:return Wn;case 3:return Lr;case 2:return jn;default:return fc}}function Uyt(t,e){switch(e){case 3:return t.f!=0;case 4:return t.g!=0;case 5:return t.i!=0;case 6:return t.j!=0}return Gmt(t,e)}function eun(t){switch(t.g){case 0:return new GQ;case 1:return new NF;default:throw et(new Bn(uct+(t.f!=null?t.f:""+t.g)))}}function dre(t){switch(t.g){case 0:return new OF;case 1:return new PF;default:throw et(new Bn(_ot+(t.f!=null?t.f:""+t.g)))}}function gre(t){switch(t.g){case 0:return new Tpt;case 1:return new _zt;default:throw et(new Bn(aH+(t.f!=null?t.f:""+t.g)))}}function nun(t){switch(t.g){case 1:return new $Q;case 2:return new DUt;default:throw et(new Bn(uct+(t.f!=null?t.f:""+t.g)))}}function run(t){var e,n;if(t.b)return t.b;for(n=U1?null:t.d;n;){if(e=U1?null:n.b,e)return e;n=U1?null:n.d}return s8(),u7t}function iun(t){var e,n,r;return t.e==0?0:(e=t.d<<5,n=t.a[t.d-1],t.e<0&&(r=Tee(t),r==t.d-1&&(--n,n=n|0)),e-=uI(n),e)}function sun(t){var e,n,r;return t>5,e=t&31,r=Ot(Br,oi,25,n+1,15,1),r[n]=1<3;)s*=10,--o;t=(t+(s>>1))/s|0}return r.i=t,!0}function oun(t){return mit(),Rn(),!!(hre(u(t.a,81).j,u(t.b,103))||u(t.a,81).d.e!=0&&hre(u(t.a,81).j,u(t.b,103)))}function cun(t){T$(),u(t.We((Ti(),m2)),174).Hc((ml(),RG))&&(u(t.We(Uy),174).Fc((cl(),Hx)),u(t.We(m2),174).Mc(RG))}function bre(t,e){var n,r;if(e){for(n=0;n=0;--r)for(e=n[r],s=0;s>1,this.k=e-1>>1}function gun(t,e){Ar(e,"End label post-processing",1),Ts(Qi(oc(new kn(null,new Cn(t.b,16)),new JK),new tY),new eY),br(e)}function pun(t,e,n){var r,s;return r=Xt(t.p[e.i.p])+Xt(t.d[e.i.p])+e.n.b+e.a.b,s=Xt(t.p[n.i.p])+Xt(t.d[n.i.p])+n.n.b+n.a.b,s-r}function bun(t,e,n){var r,s;for(r=Xs(n,Eo),s=0;Oc(r,0)!=0&&s0&&(Yr(0,e.length),e.charCodeAt(0)==43)?e.substr(1):e))}function wun(t){var e;return t==null?null:new Fp((e=Xc(t,!0),e.length>0&&(Yr(0,e.length),e.charCodeAt(0)==43)?e.substr(1):e))}function Jyt(t,e){var n;return t.i>0&&(e.lengtht.i&&ds(e,t.i,null),e}function au(t,e,n){var r,s,o;return t.ej()?(r=t.i,o=t.fj(),$D(t,r,e),s=t.Zi(3,null,e,r,o),n?n.Ei(s):n=s):$D(t,t.i,e),n}function mun(t,e,n){var r,s;return r=new P0(t.e,4,10,(s=e.c,Et(s,88)?u(s,26):(hn(),ef)),null,Pg(t,e),!1),n?n.Ei(r):n=r,n}function yun(t,e,n){var r,s;return r=new P0(t.e,3,10,null,(s=e.c,Et(s,88)?u(s,26):(hn(),ef)),Pg(t,e),!1),n?n.Ei(r):n=r,n}function mre(t){Pm();var e;return e=new No(u(t.e.We((Ti(),a5)),8)),t.B.Hc((ml(),M9))&&(e.a<=0&&(e.a=20),e.b<=0&&(e.b=20)),e}function yre(t){ry();var e;return(t.q?t.q:(pn(),pn(),u0))._b((Ce(),Dw))?e=u(K(t,Dw),197):e=u(K(Qa(t),mS),197),e}function ny(t,e){var n,r;return r=null,ia(t,(Ce(),XV))&&(n=u(K(t,XV),94),n.Xe(e)&&(r=n.We(e))),r==null&&(r=K(Qa(t),e)),r}function xre(t,e){var n,r,s;return Et(e,42)?(n=u(e,42),r=n.cd(),s=ty(t.Rc(),r),wd(s,n.dd())&&(s!=null||t.Rc()._b(r))):!1}function Pit(t,e){var n,r,s;return t.f>0?(t.qj(),r=e==null?0:ns(e),s=(r&Di)%t.d.length,n=xoe(t,s,r,e),n!=-1):!1}function e1(t,e){var n,r,s;return t.f>0&&(t.qj(),r=e==null?0:ns(e),s=(r&Di)%t.d.length,n=B4t(t,s,r,e),n)?n.dd():null}function VD(t,e){var n,r,s,o;for(o=gu(t.e.Tg(),e),n=u(t.g,119),s=0;s1?O1(L0(e.a[1],32),Xs(e.a[0],Eo)):Xs(e.a[0],Eo),qv(ja(e.e,n))))}function GD(t,e){var n;return Xo(t)&&Xo(e)&&(n=t%e,DI>5,e&=31,s=t.d+n+(e==0?0:1),r=Ot(Br,oi,25,s,15,1),x1n(r,t.a,n,e),o=new K3(t.e,s,r),S_(o),o}function e3t(t,e,n){var r,s;r=u(Uc(O9,e),117),s=u(Uc(sA,e),117),n?(Po(O9,t,r),Po(sA,t,s)):(Po(sA,t,r),Po(O9,t,s))}function Are(t,e,n){var r,s,o;for(s=null,o=t.b;o;){if(r=t.a.ue(e,o.d),n&&r==0)return o;r>=0?o=o.a[1]:(s=o,o=o.a[0])}return s}function Lre(t,e,n){var r,s,o;for(s=null,o=t.b;o;){if(r=t.a.ue(e,o.d),n&&r==0)return o;r<=0?o=o.a[0]:(s=o,o=o.a[1])}return s}function _un(t,e,n,r){var s,o,h;return s=!1,ayn(t.f,n,r)&&(Xun(t.f,t.a[e][n],t.a[e][r]),o=t.a[e],h=o[r],o[r]=o[n],o[n]=h,s=!0),s}function n3t(t,e,n,r,s){var o,h,d;for(h=s;e.b!=e.c;)o=u(P6(e),10),d=u(uc(o,r).Xb(0),11),t.d[d.p]=h++,n.c[n.c.length]=d;return h}function r3t(t,e,n){var r,s,o,h,d;return h=t.k,d=e.k,r=n[h.g][d.g],s=xe(ny(t,r)),o=xe(ny(e,r)),b.Math.max((Pn(s),s),(Pn(o),o))}function Cun(t,e,n){var r,s,o,h;for(r=n/t.c.length,s=0,h=new S(t);h.a2e3&&(C0e=t,OH=b.setTimeout(OWe,10))),IH++==0?(osn((Lpt(),M8t)),!0):!1}function Aun(t,e){var n,r,s;for(r=new pr(mr(Gs(t).a.Kc(),new H));Zr(r);)if(n=u(qr(r),17),s=n.d.i,s.c==e)return!1;return!0}function i3t(t,e){var n,r;if(Et(e,245)){r=u(e,245);try{return n=t.vd(r),n==0}catch(s){if(s=os(s),!Et(s,205))throw et(s)}}return!1}function Lun(){return Error.stackTraceLimit>0?(b.Error.stackTraceLimit=Error.stackTraceLimit=64,!0):"stack"in new Error}function Mun(t,e){return A1(),A1(),yf(r2),(b.Math.abs(t-e)<=r2||t==e||isNaN(t)&&isNaN(e)?0:te?1:Cv(isNaN(t),isNaN(e)))>0}function s3t(t,e){return A1(),A1(),yf(r2),(b.Math.abs(t-e)<=r2||t==e||isNaN(t)&&isNaN(e)?0:te?1:Cv(isNaN(t),isNaN(e)))<0}function Ire(t,e){return A1(),A1(),yf(r2),(b.Math.abs(t-e)<=r2||t==e||isNaN(t)&&isNaN(e)?0:te?1:Cv(isNaN(t),isNaN(e)))<=0}function Bit(t,e){for(var n=0;!e[n]||e[n]=="";)n++;for(var r=e[n++];nYat)return n.fh();if(r=n.Zg(),r||n==t)break}return r}function a3t(t){return s$(),Et(t,156)?u(or(oN,R0e),288).vg(t):Il(oN,bl(t))?u(or(oN,bl(t)),288).vg(t):null}function Iun(t){if(Tz(q7,t))return Rn(),Y7;if(Tz(xct,t))return Rn(),Lb;throw et(new Bn("Expecting true or false"))}function Oun(t,e){if(e.c==t)return e.d;if(e.d==t)return e.c;throw et(new Bn("Input edge is not connected to the input port."))}function Rre(t,e){return t.e>e.e?1:t.ee.d?t.e:t.d=48&&t<48+b.Math.min(10,10)?t-48:t>=97&&t<97?t-97+10:t>=65&&t<65?t-65+10:-1}function $re(t,e){var n;return qt(e)===qt(t)?!0:!Et(e,21)||(n=u(e,21),n.gc()!=t.gc())?!1:t.Ic(n)}function Nun(t,e){var n,r,s,o;return r=t.a.length-1,n=e-t.b&r,o=t.c-e&r,s=t.c-t.b&r,bUt(n=o?(Oon(t,e),-1):(Non(t,e),1)}function Pun(t,e){var n,r;for(n=(Yr(e,t.length),t.charCodeAt(e)),r=e+1;re.e?1:t.fe.f?1:ns(t)-ns(e)}function Tz(t,e){return Pn(t),e==null?!1:ln(t,e)?!0:t.length==e.length&&ln(t.toLowerCase(),e.toLowerCase())}function Vun(t,e){var n,r,s,o;for(r=0,s=e.gc();r0&&Oc(t,128)<0?(e=$r(t)+128,n=(sKt(),$8t)[e],!n&&(n=$8t[e]=new Em(t)),n):new Em(t)}function qre(t,e){var n,r;return n=e.Hh(t.a),n&&(r=Kr(e1((!n.b&&(n.b=new Ml((hn(),uo),xc,n)),n.b),ki)),r!=null)?r:e.ne()}function Gun(t,e){var n,r;return n=e.Hh(t.a),n&&(r=Kr(e1((!n.b&&(n.b=new Ml((hn(),uo),xc,n)),n.b),ki)),r!=null)?r:e.ne()}function Uun(t,e){rrt();var n,r;for(r=new pr(mr($0(t).a.Kc(),new H));Zr(r);)if(n=u(qr(r),17),n.d.i==e||n.c.i==e)return n;return null}function u3t(t,e,n){this.c=t,this.f=new le,this.e=new Ra,this.j=new wvt,this.n=new wvt,this.b=e,this.g=new fh(e.c,e.d,e.b,e.a),this.a=n}function Rit(t){var e,n,r,s;for(this.a=new S0,this.d=new na,this.e=0,n=t,r=0,s=n.length;r0):!1}function Gre(t){var e;qt(ze(t,(Ti(),r5)))===qt((j0(),NG))&&(gs(t)?(e=u(ze(gs(t),r5),334),Mo(t,r5,e)):Mo(t,r5,HS))}function Xun(t,e,n){var r,s;mst(t.e,e,n,(we(),jn)),mst(t.i,e,n,Wn),t.a&&(s=u(K(e,(ie(),Bi)),11),r=u(K(n,Bi),11),urt(t.g,s,r))}function Ure(t,e,n){var r,s,o;r=e.c.p,o=e.p,t.b[r][o]=new uXt(t,e),n&&(t.a[r][o]=new Wk(e),s=u(K(e,(ie(),Aw)),10),s&&cn(t.d,s,e))}function Wre(t,e){var n,r,s;if(ue(WH,t),e.Fc(t),n=u(or(Mut,t),21),n)for(s=n.Kc();s.Ob();)r=u(s.Pb(),33),Qo(WH,r,0)!=-1||Wre(r,e)}function Qun(t,e,n){var r;(G0e?(run(t),!0):U0e||K0e?(s8(),!0):W0e&&(s8(),!1))&&(r=new xWt(e),r.b=n,tdn(t,r))}function jit(t,e){var n;n=!t.A.Hc((Fl(),Hb))||t.q==(xa(),eu),t.u.Hc((cl(),J0))?n?m3n(t,e):Ele(t,e):t.u.Hc(E2)&&(n?Ryn(t,e):Ble(t,e))}function c7(t,e){var n,r;if(++t.j,e!=null&&(n=(r=t.a.Cb,Et(r,97)?u(r,97).Jg():null),U0n(e,n))){J6(t.a,4,n);return}J6(t.a,4,u(e,126))}function Kre(t,e,n){return new fh(b.Math.min(t.a,e.a)-n/2,b.Math.min(t.b,e.b)-n/2,b.Math.abs(t.a-e.a)+n,b.Math.abs(t.b-e.b)+n)}function Zun(t,e){var n,r;return n=Tu(t.a.c.p,e.a.c.p),n!=0?n:(r=Tu(t.a.d.i.p,e.a.d.i.p),r!=0?r:Tu(e.a.d.p,t.a.d.p))}function Jun(t,e,n){var r,s,o,h;return o=e.j,h=n.j,o!=h?o.g-h.g:(r=t.f[e.p],s=t.f[n.p],r==0&&s==0?0:r==0?-1:s==0?1:Vs(r,s))}function Yre(t,e,n){var r,s,o;if(!n[e.d])for(n[e.d]=!0,s=new S(o4(e));s.a=s)return s;for(e=e>0?e:0;er&&ds(e,r,null),e}function Qre(t,e){var n,r;for(r=t.a.length,e.lengthr&&ds(e,r,null),e}function db(t,e,n){var r,s,o;return s=u(or(t.e,e),387),s?(o=Obt(s,n),qGt(t,s),o):(r=new avt(t,e,n),Pi(t.e,e,r),gXt(r),null)}function nln(t){var e;if(t==null)return null;if(e=Xgn(Xc(t,!0)),e==null)throw et(new Gtt("Invalid hexBinary value: '"+t+"'"));return e}function WD(t){return e2(),Oc(t,0)<0?Oc(t,-1)!=0?new K3t(-1,O8(t)):gut:Oc(t,10)<=0?Z8t[$r(t)]:new K3t(1,t)}function zit(){return yq(),ct(ot(Ige,1),se,159,0,[Mge,Lge,Dge,xge,yge,kge,_ge,Tge,Ege,Age,Sge,Cge,wge,vge,mge,pge,gge,bge,fge,hge,dge,Eut])}function Zre(t){var e;this.d=new le,this.j=new Ra,this.g=new Ra,e=t.g.b,this.f=u(K(Qa(e),(Ce(),Jl)),103),this.e=Xt(xe(Sz(e,qy)))}function Jre(t){this.b=new le,this.e=new le,this.d=t,this.a=!OT(Qi(new kn(null,new Ov(new P1(t.b))),new Zt(new xF))).sd((G2(),J7))}function n1(){n1=J,Un=new SM("PARENTS",0),fa=new SM("NODES",1),Bd=new SM("EDGES",2),Rb=new SM("PORTS",3),Yg=new SM("LABELS",4)}function c4(){c4=J,x2=new LM("DISTRIBUTED",0),ZO=new LM("JUSTIFIED",1),sAt=new LM("BEGIN",2),VS=new LM(N7,3),aAt=new LM("END",4)}function rln(t){var e;switch(e=t.yi(null),e){case 10:return 0;case 15:return 1;case 14:return 2;case 11:return 3;case 21:return 4}return-1}function qit(t){switch(t.g){case 1:return xo(),Q0;case 4:return xo(),Wh;case 2:return xo(),Af;case 3:return xo(),X0}return xo(),h0}function iln(t,e,n){var r;switch(r=n.q.getFullYear()-i2+i2,r<0&&(r=-r),e){case 1:t.a+=r;break;case 2:Jd(t,r%100,2);break;default:Jd(t,r,e)}}function gi(t,e){var n,r;if(Vm(e,t.b),e>=t.b>>1)for(r=t.c,n=t.b;n>e;--n)r=r.b;else for(r=t.a.a,n=0;n=64&&e<128&&(s=O1(s,L0(1,e-64)));return s}function Sz(t,e){var n,r;return r=null,ia(t,(Ti(),zx))&&(n=u(K(t,zx),94),n.Xe(e)&&(r=n.We(e))),r==null&&Qa(t)&&(r=K(Qa(t),e)),r}function nie(t,e){var n,r,s;s=e.d.i,r=s.k,!(r==(Kn(),Ws)||r==W1)&&(n=new pr(mr(Gs(s).a.Kc(),new H)),Zr(n)&&Pi(t.k,e,u(qr(n),17)))}function Hit(t,e){var n,r,s;return r=wn(t.Tg(),e),n=e-t.Ah(),n<0?(s=t.Yg(r),s>=0?t.lh(s):Lst(t,r)):n<0?Lst(t,r):u(r,66).Nj().Sj(t,t.yh(),n)}function Ie(t){var e;if(Et(t.a,4)){if(e=a3t(t.a),e==null)throw et(new Yo(Jfe+t.b+"'. "+Zfe+(A0(cN),cN.k)+$kt));return e}else return t.a}function oln(t){var e;if(t==null)return null;if(e=S3n(Xc(t,!0)),e==null)throw et(new Gtt("Invalid base64Binary value: '"+t+"'"));return e}function kr(t){var e;try{return e=t.i.Xb(t.e),t.mj(),t.g=t.e++,e}catch(n){throw n=os(n),Et(n,73)?(t.mj(),et(new _c)):et(n)}}function Vit(t){var e;try{return e=t.c.ki(t.e),t.mj(),t.g=t.e++,e}catch(n){throw n=os(n),Et(n,73)?(t.mj(),et(new _c)):et(n)}}function Z_(){Z_=J,q7t=(Ti(),RSt),Aut=bSt,Gge=jx,z7t=$b,Yge=(jz(),y7t),Kge=w7t,Xge=k7t,Wge=v7t,Uge=(pit(),R7t),Sut=qge,$7t=Hge,UH=Vge}function Az(t){switch(Ypt(),this.c=new le,this.d=t,t.g){case 0:case 2:this.a=rwt(a9t),this.b=ms;break;case 3:case 1:this.a=a9t,this.b=Rs}}function rie(t,e,n){var r,s;if(t.c)Du(t.c,t.c.i+e),Iu(t.c,t.c.j+n);else for(s=new S(t.b);s.a0&&(ue(t.b,new BWt(e.a,n)),r=e.a.length,0r&&(e.a+=zGt(Ot(Sh,Ed,25,-r,15,1))))}function iie(t,e){var n,r,s;for(n=t.o,s=u(u(ji(t.r,e),21),84).Kc();s.Ob();)r=u(s.Pb(),111),r.e.a=lhn(r,n.a),r.e.b=n.b*Xt(xe(r.b.We(HH)))}function uln(t,e){var n,r,s,o;return s=t.k,n=Xt(xe(K(t,(ie(),Lw)))),o=e.k,r=Xt(xe(K(e,Lw))),o!=(Kn(),Fs)?-1:s!=Fs?1:n==r?0:n=0?t.hh(e,n,r):(t.eh()&&(r=(s=t.Vg(),s>=0?t.Qg(r):t.eh().ih(t,-1-s,null,r))),t.Sg(e,n,r))}function h3t(t,e){switch(e){case 7:!t.e&&(t.e=new Tn(aa,t,7,4)),Ir(t.e);return;case 8:!t.d&&(t.d=new Tn(aa,t,8,5)),Ir(t.d);return}Qyt(t,e)}function r1(t,e){var n;n=t.Zc(e);try{return n.Pb()}catch(r){throw r=os(r),Et(r,109)?et(new Oo("Can't get element "+e)):et(r)}}function f3t(t,e){this.e=t,e=0&&(n.d=t.t);break;case 3:t.t>=0&&(n.a=t.t)}t.C&&(n.b=t.C.b,n.c=t.C.c)}function ex(){ex=J,oO=new DR(Lq,0),aO=new DR(uot,1),cO=new DR(lot,2),uO=new DR(hot,3),oO.a=!1,aO.a=!0,cO.a=!1,uO.a=!0}function J_(){J_=J,lO=new MR(Lq,0),VH=new MR(uot,1),GH=new MR(lot,2),hO=new MR(hot,3),lO.a=!1,VH.a=!0,GH.a=!1,hO.a=!0}function gln(t){var e;e=t.a;do e=u(qr(new pr(mr(Zo(e).a.Kc(),new H))),17).c.i,e.k==(Kn(),ha)&&t.b.Fc(e);while(e.k==(Kn(),ha));t.b=ib(t.b)}function pln(t){var e,n,r;for(r=t.c.a,t.p=(zr(r),new Uu(r)),n=new S(r);n.an.b)return!0}return!1}function Git(t,e){return pa(t)?!!m0e[e]:t.hm?!!t.hm[e]:Im(t)?!!w0e[e]:Dm(t)?!!v0e[e]:!1}function Mo(t,e,n){return n==null?(!t.o&&(t.o=new Nl((ou(),_2),Bw,t,0)),kz(t.o,e)):(!t.o&&(t.o=new Nl((ou(),_2),Bw,t,0)),$z(t.o,e,n)),t}function mln(t,e,n,r){var s,o;o=e.Xe((Ti(),s5))?u(e.We(s5),21):t.j,s=ccn(o),s!=(yq(),Eut)&&(n&&!o3t(s)||v4t(Qgn(t,s,r),e))}function Mz(t,e,n,r){var s,o,h;return o=wn(t.Tg(),e),s=e-t.Ah(),s<0?(h=t.Yg(o),h>=0?t._g(h,n,!0):ow(t,o,n)):u(o,66).Nj().Pj(t,t.yh(),s,n,r)}function yln(t,e,n,r){var s,o,h;n.mh(e)&&(go(),Brt(e)?(s=u(n.ah(e),153),Vun(t,s)):(o=(h=e,h?u(r,49).xh(h):null),o&&kUe(n.ah(e),o)))}function xln(t){switch(t.g){case 1:return Qv(),sO;case 3:return Qv(),iO;case 2:return Qv(),_ut;case 4:return Qv(),Tut;default:return null}}function d3t(t){switch(typeof t){case xat:return Fg(t);case u6t:return Ms(t);case cx:return Rn(),t?1231:1237;default:return t==null?0:Av(t)}}function kln(t,e,n){if(t.e)switch(t.b){case 1:Qtn(t.c,e,n);break;case 0:Ztn(t.c,e,n)}else UQt(t.c,e,n);t.a[e.p][n.p]=t.c.i,t.a[n.p][e.p]=t.c.e}function uie(t){var e,n;if(t==null)return null;for(n=Ot(l0,te,193,t.length,0,2),e=0;e=0)return s;if(t.Fk()){for(r=0;r=s)throw et(new Bm(e,s));if(t.hi()&&(r=t.Xc(n),r>=0&&r!=e))throw et(new Bn(YI));return t.mi(e,n)}function g3t(t,e){if(this.a=u(zr(t),245),this.b=u(zr(e),245),t.vd(e)>0||t==(jtt(),rut)||e==(Rtt(),iut))throw et(new Bn("Invalid range: "+qQt(t,e)))}function lie(t){var e,n;for(this.b=new le,this.c=t,this.a=!1,n=new S(t.a);n.a0),(e&-e)==e)return Ms(e*wl(t,31)*4656612873077393e-25);do n=wl(t,31),r=n%e;while(n-r+(e-1)<0);return Ms(r)}function Fg(t){kWt();var e,n,r;return n=":"+t,r=$H[n],r!=null?Ms((Pn(r),r)):(r=h7t[n],e=r==null?g2n(t):Ms((Pn(r),r)),Htn(),$H[n]=e,e)}function fie(t,e,n){Ar(n,"Compound graph preprocessor",1),t.a=new $v,wle(t,e,null),emn(t,e),Bpn(t),Jt(e,(ie(),MEt),t.a),t.a=null,al(t.b),br(n)}function _ln(t,e,n){switch(n.g){case 1:t.a=e.a/2,t.b=0;break;case 2:t.a=e.a,t.b=e.b/2;break;case 3:t.a=e.a/2,t.b=e.b;break;case 4:t.a=0,t.b=e.b/2}}function Cln(t){var e,n,r;for(r=u(ji(t.a,(g4(),kV)),15).Kc();r.Ob();)n=u(r.Pb(),101),e=S3t(n),w8(t,n,e[0],(Xv(),Tw),0),w8(t,n,e[1],_w,1)}function Sln(t){var e,n,r;for(r=u(ji(t.a,(g4(),EV)),15).Kc();r.Ob();)n=u(r.Pb(),101),e=S3t(n),w8(t,n,e[0],(Xv(),Tw),0),w8(t,n,e[1],_w,1)}function Uit(t){switch(t.g){case 0:return null;case 1:return new fee;case 2:return new _pt;default:throw et(new Bn(uct+(t.f!=null?t.f:""+t.g)))}}function KD(t,e,n){var r,s;for(Yan(t,e-t.s,n-t.t),s=new S(t.n);s.a1&&(o=Tln(t,e)),o}function Wit(t){var e;return t.f&&t.f.kh()&&(e=u(t.f,49),t.f=u(Xp(t,e),82),t.f!=e&&t.Db&4&&!(t.Db&1)&&Oi(t,new la(t,9,8,e,t.f))),t.f}function Kit(t){var e;return t.i&&t.i.kh()&&(e=u(t.i,49),t.i=u(Xp(t,e),82),t.i!=e&&t.Db&4&&!(t.Db&1)&&Oi(t,new la(t,9,7,e,t.i))),t.i}function bo(t){var e;return t.b&&t.b.Db&64&&(e=t.b,t.b=u(Xp(t,e),18),t.b!=e&&t.Db&4&&!(t.Db&1)&&Oi(t,new la(t,9,21,e,t.b))),t.b}function Oz(t,e){var n,r,s;t.d==null?(++t.e,++t.f):(r=e.Sh(),Vpn(t,t.f+1),s=(r&Di)%t.d.length,n=t.d[s],!n&&(n=t.d[s]=t.uj()),n.Fc(e),++t.f)}function v3t(t,e,n){var r;return e.Kj()?!1:e.Zj()!=-2?(r=e.zj(),r==null?n==null:Ni(r,n)):e.Hj()==t.e.Tg()&&n==null}function Nz(){var t;Gl(16,che),t=ree(16),this.b=Ot(aut,AI,317,t,0,1),this.c=Ot(aut,AI,317,t,0,1),this.a=null,this.e=null,this.i=0,this.f=t-1,this.g=0}function q0(t){Pbt.call(this),this.k=(Kn(),Ws),this.j=(Gl(6,vy),new iu(6)),this.b=(Gl(2,vy),new iu(2)),this.d=new Ott,this.f=new bpt,this.a=t}function Lln(t){var e,n;t.c.length<=1||(e=lce(t,(we(),Lr)),Zse(t,u(e.a,19).a,u(e.b,19).a),n=lce(t,jn),Zse(t,u(n.a,19).a,u(n.b,19).a))}function tC(){tC=J,c_t=new EM("SIMPLE",0),Zlt=new EM(Sot,1),Jlt=new EM("LINEAR_SEGMENTS",2),kS=new EM("BRANDES_KOEPF",3),ES=new EM(Nfe,4)}function w3t(t,e,n){D6(u(K(e,(Ce(),xs)),98))||(fmt(t,e,Bg(e,n)),fmt(t,e,Bg(e,(we(),Lr))),fmt(t,e,Bg(e,Fn)),pn(),ua(e.j,new sM(t)))}function die(t,e,n,r){var s,o,h;for(s=u(ji(r?t.a:t.b,e),21),h=s.Kc();h.Ob();)if(o=u(h.Pb(),33),iq(t,n,o))return!0;return!1}function Yit(t){var e,n;for(n=new lr(t);n.e!=n.i.gc();)if(e=u(kr(n),87),e.e||(!e.d&&(e.d=new qs(Co,e,1)),e.d).i!=0)return!0;return!1}function Xit(t){var e,n;for(n=new lr(t);n.e!=n.i.gc();)if(e=u(kr(n),87),e.e||(!e.d&&(e.d=new qs(Co,e,1)),e.d).i!=0)return!0;return!1}function Mln(t){var e,n,r;for(e=0,r=new S(t.c.a);r.a102?-1:t<=57?t-48:t<65?-1:t<=70?t-65+10:t<97?-1:t-97+10}function Jit(t,e){if(t==null)throw et(new m6("null key in entry: null="+e));if(e==null)throw et(new m6("null value in entry: "+t+"=null"))}function Dln(t,e){for(var n,r;t.Ob();)if(!e.Ob()||(n=t.Pb(),r=e.Pb(),!(qt(n)===qt(r)||n!=null&&Ni(n,r))))return!1;return!e.Ob()}function pie(t,e){var n;return n=ct(ot(wa,1),Do,25,15,[wit(t.a[0],e),wit(t.a[1],e),wit(t.a[2],e)]),t.d&&(n[0]=b.Math.max(n[0],n[2]),n[2]=n[0]),n}function bie(t,e){var n;return n=ct(ot(wa,1),Do,25,15,[uz(t.a[0],e),uz(t.a[1],e),uz(t.a[2],e)]),t.d&&(n[0]=b.Math.max(n[0],n[2]),n[2]=n[0]),n}function pb(){pb=J,olt=new kM("GREEDY",0),oEt=new kM(yfe,1),clt=new kM(Sot,2),uS=new kM("MODEL_ORDER",3),cS=new kM("GREEDY_MODEL_ORDER",4)}function vie(t,e){var n,r,s;for(t.b[e.g]=1,r=gi(e.d,0);r.b!=r.d.c;)n=u(di(r),188),s=n.c,t.b[s.g]==1?pi(t.a,n):t.b[s.g]==2?t.b[s.g]=1:vie(t,s)}function Iln(t,e){var n,r,s;for(s=new iu(e.gc()),r=e.Kc();r.Ob();)n=u(r.Pb(),286),n.c==n.f?p7(t,n,n.c):Mdn(t,n)||(s.c[s.c.length]=n);return s}function Oln(t,e,n){var r,s,o,h,d;for(d=t.r+e,t.r+=e,t.d+=n,r=n/t.n.c.length,s=0,h=new S(t.n);h.ao&&ds(e,o,null),e}function Wln(t,e){var n,r;if(r=t.gc(),e==null){for(n=0;n0&&(w+=s),k[_]=h,h+=d*(w+r)}function _ie(t){var e,n,r;for(r=t.f,t.n=Ot(wa,Do,25,r,15,1),t.d=Ot(wa,Do,25,r,15,1),e=0;e0?t.c:0),++s;t.b=r,t.d=o}function thn(t,e){var n,r,s,o,h;for(r=0,s=0,n=0,h=new S(e);h.a0?t.g:0),++n;t.c=s,t.d=r}function Mie(t,e){var n;return n=ct(ot(wa,1),Do,25,15,[b3t(t,(t1(),wc),e),b3t(t,uu,e),b3t(t,mc,e)]),t.f&&(n[0]=b.Math.max(n[0],n[2]),n[2]=n[0]),n}function ehn(t,e,n){var r;try{oq(t,e+t.j,n+t.k,!1,!0)}catch(s){throw s=os(s),Et(s,73)?(r=s,et(new Oo(r.g+Dq+e+ao+n+")."))):et(s)}}function nhn(t,e,n){var r;try{oq(t,e+t.j,n+t.k,!0,!1)}catch(s){throw s=os(s),Et(s,73)?(r=s,et(new Oo(r.g+Dq+e+ao+n+")."))):et(s)}}function Die(t){var e;ia(t,(Ce(),Mw))&&(e=u(K(t,Mw),21),e.Hc((ly(),Lf))?(e.Mc(Lf),e.Fc(Mf)):e.Hc(Mf)&&(e.Mc(Mf),e.Fc(Lf)))}function Iie(t){var e;ia(t,(Ce(),Mw))&&(e=u(K(t,Mw),21),e.Hc((ly(),If))?(e.Mc(If),e.Fc(Yh)):e.Hc(Yh)&&(e.Mc(Yh),e.Fc(If)))}function rhn(t,e,n){Ar(n,"Self-Loop ordering",1),Ts(Cu(Qi(Qi(oc(new kn(null,new Cn(e.b,16)),new JP),new NY),new PY),new FY),new Tm(t)),br(n)}function XD(t,e,n,r){var s,o;for(s=e;s0&&(s.b+=e),s}function Bz(t,e){var n,r,s;for(s=new Ra,r=t.Kc();r.Ob();)n=u(r.Pb(),37),fC(n,0,s.b),s.b+=n.f.b+e,s.a=b.Math.max(s.a,n.f.a);return s.a>0&&(s.a+=e),s}function Nie(t){var e,n,r;for(r=Di,n=new S(t.a);n.a>16==6?t.Cb.ih(t,5,u1,e):(r=bo(u(wn((n=u(Dn(t,16),26),n||t.zh()),t.Db>>16),18)),t.Cb.ih(t,r.n,r.f,e))}function chn(t){T8();var e=t.e;if(e&&e.stack){var n=e.stack,r=e+` -`;return n.substring(0,r.length)==r&&(n=n.substring(r.length)),n.split(` -`)}return[]}function uhn(t){var e;return e=(Qte(),D0e),e[t>>>28]|e[t>>24&15]<<4|e[t>>20&15]<<8|e[t>>16&15]<<12|e[t>>12&15]<<16|e[t>>8&15]<<20|e[t>>4&15]<<24|e[t&15]<<28}function Bie(t){var e,n,r;t.b==t.c&&(r=t.a.length,n=iyt(b.Math.max(8,r))<<1,t.b!=0?(e=pf(t.a,n),see(t,e,r),t.a=e,t.b=0):izt(t.a,n),t.c=r)}function lhn(t,e){var n;return n=t.b,n.Xe((Ti(),kl))?n.Hf()==(we(),jn)?-n.rf().a-Xt(xe(n.We(kl))):e+Xt(xe(n.We(kl))):n.Hf()==(we(),jn)?-n.rf().a:e}function QD(t){var e;return t.b.c.length!=0&&u(Fe(t.b,0),70).a?u(Fe(t.b,0),70).a:(e=Gnt(t),e??""+(t.c?Qo(t.c.a,t,0):-1))}function Rz(t){var e;return t.f.c.length!=0&&u(Fe(t.f,0),70).a?u(Fe(t.f,0),70).a:(e=Gnt(t),e??""+(t.i?Qo(t.i.j,t,0):-1))}function hhn(t,e){var n,r;if(e<0||e>=t.gc())return null;for(n=e;n0?t.c:0),s=b.Math.max(s,e.d),++r;t.e=o,t.b=s}function dhn(t){var e,n;if(!t.b)for(t.b=h$(u(t.f,118).Ag().i),n=new lr(u(t.f,118).Ag());n.e!=n.i.gc();)e=u(kr(n),137),ue(t.b,new Vtt(e));return t.b}function ghn(t,e){var n,r,s;if(e.dc())return f8(),f8(),uN;for(n=new $Ut(t,e.gc()),s=new lr(t);s.e!=s.i.gc();)r=kr(s),e.Hc(r)&&Hr(n,r);return n}function _3t(t,e,n,r){return e==0?r?(!t.o&&(t.o=new Nl((ou(),_2),Bw,t,0)),t.o):(!t.o&&(t.o=new Nl((ou(),_2),Bw,t,0)),hD(t.o)):Mz(t,e,n,r)}function ost(t){var e,n;if(t.rb)for(e=0,n=t.rb.i;e>22),s+=r>>22,s<0)?!1:(t.l=n&yl,t.m=r&yl,t.h=s&U0,!0)}function whn(t,e,n,r,s,o,h){var d,w;return!(e.Ae()&&(w=t.a.ue(n,r),w<0||!s&&w==0)||e.Be()&&(d=t.a.ue(n,o),d>0||!h&&d==0))}function mhn(t,e){J8();var n;if(n=t.j.g-e.j.g,n!=0)return 0;switch(t.j.g){case 2:return Mit(e,J9t)-Mit(t,J9t);case 4:return Mit(t,Z9t)-Mit(e,Z9t)}return 0}function yhn(t){switch(t.g){case 0:return llt;case 1:return hlt;case 2:return flt;case 3:return dlt;case 4:return CV;case 5:return glt;default:return null}}function jo(t,e,n){var r,s;return r=(s=new Ftt,lb(s,e),su(s,n),Hr((!t.c&&(t.c=new he(Rw,t,12,10)),t.c),s),s),Mg(r,0),Zm(r,1),Ng(r,!0),Og(r,!0),r}function nx(t,e){var n,r;if(e>=t.i)throw et(new Oet(e,t.i));return++t.j,n=t.g[e],r=t.i-e-1,r>0&&qc(t.g,e+1,t.g,e,r),ds(t.g,--t.i,null),t.fi(e,n),t.ci(),n}function Rie(t,e){var n,r;return t.Db>>16==17?t.Cb.ih(t,21,Zh,e):(r=bo(u(wn((n=u(Dn(t,16),26),n||t.zh()),t.Db>>16),18)),t.Cb.ih(t,r.n,r.f,e))}function xhn(t){var e,n,r,s;for(pn(),ua(t.c,t.a),s=new S(t.c);s.an.a.c.length))throw et(new Bn("index must be >= 0 and <= layer node count"));t.c&&Au(t.c.a,t),t.c=n,n&&Rm(n.a,e,t)}function Hie(t,e){var n,r,s;for(r=new pr(mr($0(t).a.Kc(),new H));Zr(r);)return n=u(qr(r),17),s=u(e.Kb(n),10),new jk(zr(s.n.b+s.o.b/2));return _T(),_T(),nut}function Vie(t,e){this.c=new Rr,this.a=t,this.b=e,this.d=u(K(t,(ie(),Y4)),304),qt(K(t,(Ce(),RTt)))===qt((pD(),SV))?this.e=new xzt:this.e=new yzt}function Shn(t,e){var n,r,s,o;for(o=0,r=new S(t);r.a>16==6?t.Cb.ih(t,6,aa,e):(r=bo(u(wn((n=u(Dn(t,16),26),n||(ou(),$G)),t.Db>>16),18)),t.Cb.ih(t,r.n,r.f,e))}function D3t(t,e){var n,r;return t.Db>>16==7?t.Cb.ih(t,1,iN,e):(r=bo(u(wn((n=u(Dn(t,16),26),n||(ou(),wAt)),t.Db>>16),18)),t.Cb.ih(t,r.n,r.f,e))}function I3t(t,e){var n,r;return t.Db>>16==9?t.Cb.ih(t,9,bs,e):(r=bo(u(wn((n=u(Dn(t,16),26),n||(ou(),yAt)),t.Db>>16),18)),t.Cb.ih(t,r.n,r.f,e))}function Uie(t,e){var n,r;return t.Db>>16==5?t.Cb.ih(t,9,YG,e):(r=bo(u(wn((n=u(Dn(t,16),26),n||(hn(),Jg)),t.Db>>16),18)),t.Cb.ih(t,r.n,r.f,e))}function O3t(t,e){var n,r;return t.Db>>16==3?t.Cb.ih(t,0,aN,e):(r=bo(u(wn((n=u(Dn(t,16),26),n||(hn(),Zg)),t.Db>>16),18)),t.Cb.ih(t,r.n,r.f,e))}function Wie(t,e){var n,r;return t.Db>>16==7?t.Cb.ih(t,6,u1,e):(r=bo(u(wn((n=u(Dn(t,16),26),n||(hn(),ep)),t.Db>>16),18)),t.Cb.ih(t,r.n,r.f,e))}function Kie(){this.a=new zF,this.g=new Nz,this.j=new Nz,this.b=new Rr,this.d=new Nz,this.i=new Nz,this.k=new Rr,this.c=new Rr,this.e=new Rr,this.f=new Rr}function Dhn(t,e,n){var r,s,o;for(n<0&&(n=0),o=t.i,s=n;sYat)return l7(t,r);if(r==t)return!0}}return!1}function Ohn(t){switch(sj(),t.q.g){case 5:Iae(t,(we(),Fn)),Iae(t,Lr);break;case 4:Soe(t,(we(),Fn)),Soe(t,Lr);break;default:Sle(t,(we(),Fn)),Sle(t,Lr)}}function Nhn(t){switch(sj(),t.q.g){case 5:Wae(t,(we(),Wn)),Wae(t,jn);break;case 4:iie(t,(we(),Wn)),iie(t,jn);break;default:Ale(t,(we(),Wn)),Ale(t,jn)}}function Phn(t){var e,n;e=u(K(t,(i1(),fpe)),19),e?(n=e.a,n==0?Jt(t,(Up(),QH),new Lit):Jt(t,(Up(),QH),new p$(n))):Jt(t,(Up(),QH),new p$(1))}function Fhn(t,e){var n;switch(n=t.i,e.g){case 1:return-(t.n.b+t.o.b);case 2:return t.n.a-n.o.a;case 3:return t.n.b-n.o.b;case 4:return-(t.n.a+t.o.a)}return 0}function Bhn(t,e){switch(t.g){case 0:return e==(mh(),g2)?vV:wV;case 1:return e==(mh(),g2)?vV:bO;case 2:return e==(mh(),g2)?bO:wV;default:return bO}}function JD(t,e){var n,r,s;for(Au(t.a,e),t.e-=e.r+(t.a.c.length==0?0:t.c),s=mkt,r=new S(t.a);r.a>16==3?t.Cb.ih(t,12,bs,e):(r=bo(u(wn((n=u(Dn(t,16),26),n||(ou(),vAt)),t.Db>>16),18)),t.Cb.ih(t,r.n,r.f,e))}function P3t(t,e){var n,r;return t.Db>>16==11?t.Cb.ih(t,10,bs,e):(r=bo(u(wn((n=u(Dn(t,16),26),n||(ou(),mAt)),t.Db>>16),18)),t.Cb.ih(t,r.n,r.f,e))}function Yie(t,e){var n,r;return t.Db>>16==10?t.Cb.ih(t,11,Zh,e):(r=bo(u(wn((n=u(Dn(t,16),26),n||(hn(),tp)),t.Db>>16),18)),t.Cb.ih(t,r.n,r.f,e))}function Xie(t,e){var n,r;return t.Db>>16==10?t.Cb.ih(t,12,Jh,e):(r=bo(u(wn((n=u(Dn(t,16),26),n||(hn(),Jy)),t.Db>>16),18)),t.Cb.ih(t,r.n,r.f,e))}function Bh(t){var e;return!(t.Bb&1)&&t.r&&t.r.kh()&&(e=u(t.r,49),t.r=u(Xp(t,e),138),t.r!=e&&t.Db&4&&!(t.Db&1)&&Oi(t,new la(t,9,8,e,t.r))),t.r}function ust(t,e,n){var r;return r=ct(ot(wa,1),Do,25,15,[a4t(t,(t1(),wc),e,n),a4t(t,uu,e,n),a4t(t,mc,e,n)]),t.f&&(r[0]=b.Math.max(r[0],r[2]),r[2]=r[0]),r}function Rhn(t,e){var n,r,s;if(s=Iln(t,e),s.c.length!=0)for(ua(s,new TY),n=s.c.length,r=0;r>19,k=e.h>>19,w!=k?k-w:(s=t.h,d=e.h,s!=d?s-d:(r=t.m,h=e.m,r!=h?r-h:(n=t.l,o=e.l,n-o)))}function jz(){jz=J,E7t=(sq(),xut),k7t=new vn(T6t,E7t),x7t=(D$(),yut),y7t=new vn(_6t,x7t),m7t=(_z(),mut),w7t=new vn(C6t,m7t),v7t=new vn(S6t,(Rn(),!0))}function nC(t,e,n){var r,s;r=e*n,Et(t.g,145)?(s=q6(t),s.f.d?s.f.a||(t.d.a+=r+H1):(t.d.d-=r+H1,t.d.a+=r+H1)):Et(t.g,10)&&(t.d.d-=r,t.d.a+=2*r)}function Qie(t,e,n){var r,s,o,h,d;for(s=t[n.g],d=new S(e.d);d.a0?t.g:0),++n;e.b=r,e.e=s}function Zie(t){var e,n,r;if(r=t.b,yHt(t.i,r.length)){for(n=r.length*2,t.b=Ot(aut,AI,317,n,0,1),t.c=Ot(aut,AI,317,n,0,1),t.f=n-1,t.i=0,e=t.a;e;e=e.c)aI(t,e,e);++t.g}}function Uhn(t,e,n,r){var s,o,h,d;for(s=0;sh&&(d=h/r),s>o&&(w=o/s),pd(t,b.Math.min(d,w)),t}function Khn(){hq();var t,e;try{if(e=u(U3t((Ip(),tf),V7),2014),e)return e}catch(n){if(n=os(n),Et(n,102))t=n,Ovt((Ur(),t));else throw et(n)}return new Z5}function Yhn(){HJt();var t,e;try{if(e=u(U3t((Ip(),tf),Sb),2024),e)return e}catch(n){if(n=os(n),Et(n,102))t=n,Ovt((Ur(),t));else throw et(n)}return new xm}function Xhn(){hq();var t,e;try{if(e=u(U3t((Ip(),tf),Hh),1941),e)return e}catch(n){if(n=os(n),Et(n,102))t=n,Ovt((Ur(),t));else throw et(n)}return new BZ}function Qhn(t,e,n){var r,s;return s=t.e,t.e=e,t.Db&4&&!(t.Db&1)&&(r=new la(t,1,4,s,e),n?n.Ei(r):n=r),s!=e&&(e?n=C7(t,Zz(t,e),n):n=C7(t,t.a,n)),n}function Jie(){vR.call(this),this.e=-1,this.a=!1,this.p=$a,this.k=-1,this.c=-1,this.b=-1,this.g=!1,this.f=-1,this.j=-1,this.n=-1,this.i=-1,this.d=-1,this.o=$a}function Zhn(t,e){var n,r,s;if(r=t.b.d.d,t.a||(r+=t.b.d.a),s=e.b.d.d,e.a||(s+=e.b.d.a),n=Vs(r,s),n==0){if(!t.a&&e.a)return-1;if(!e.a&&t.a)return 1}return n}function Jhn(t,e){var n,r,s;if(r=t.b.b.d,t.a||(r+=t.b.b.a),s=e.b.b.d,e.a||(s+=e.b.b.a),n=Vs(r,s),n==0){if(!t.a&&e.a)return-1;if(!e.a&&t.a)return 1}return n}function tfn(t,e){var n,r,s;if(r=t.b.g.d,t.a||(r+=t.b.g.a),s=e.b.g.d,e.a||(s+=e.b.g.a),n=Vs(r,s),n==0){if(!t.a&&e.a)return-1;if(!e.a&&t.a)return 1}return n}function B3t(){B3t=J,Cpe=sl(Mi(Mi(Mi(new ra,(so(),Zc),(vo(),R9t)),Zc,j9t),Go,$9t),Go,S9t),Ape=Mi(Mi(new ra,Zc,y9t),Zc,A9t),Spe=sl(new ra,Go,M9t)}function efn(t){var e,n,r,s,o;for(e=u(K(t,(ie(),dS)),83),o=t.n,r=e.Cc().Kc();r.Ob();)n=u(r.Pb(),306),s=n.i,s.c+=o.a,s.d+=o.b,n.c?pce(n):bce(n);Jt(t,dS,null)}function nfn(t,e,n){var r,s;switch(s=t.b,r=s.d,e.g){case 1:return-r.d-n;case 2:return s.o.a+r.c+n;case 3:return s.o.b+r.a+n;case 4:return-r.b-n;default:return-1}}function rfn(t){var e,n,r,s,o;if(r=0,s=F7,t.b)for(e=0;e<360;e++)n=e*.017453292519943295,S5t(t,t.d,0,0,D4,n),o=t.b.ig(t.d),o0&&(h=(o&Di)%t.d.length,s=B4t(t,h,o,e),s)?(d=s.ed(n),d):(r=t.tj(o,e,n),t.c.Fc(r),null)}function $3t(t,e){var n,r,s,o;switch(Ig(t,e)._k()){case 3:case 2:{for(n=k4(e),s=0,o=n.i;s=0;r--)if(ln(t[r].d,e)||ln(t[r].d,n)){t.length>=r+1&&t.splice(0,r+1);break}return t}function tI(t,e){var n;return Xo(t)&&Xo(e)&&(n=t/e,DI0&&(t.b+=2,t.a+=r):(t.b+=1,t.a+=b.Math.min(r,s))}function ase(t,e){var n,r;if(r=!1,pa(e)&&(r=!0,F6(t,new zm(Kr(e)))),r||Et(e,236)&&(r=!0,F6(t,(n=Ubt(u(e,236)),new gT(n)))),!r)throw et(new qtt(e8t))}function xfn(t,e,n,r){var s,o,h;return s=new P0(t.e,1,10,(h=e.c,Et(h,88)?u(h,26):(hn(),ef)),(o=n.c,Et(o,88)?u(o,26):(hn(),ef)),Pg(t,e),!1),r?r.Ei(s):r=s,r}function H3t(t){var e,n;switch(u(K(Qa(t),(Ce(),MTt)),420).g){case 0:return e=t.n,n=t.o,new je(e.a+n.a/2,e.b+n.b/2);case 1:return new No(t.n);default:return null}}function eI(){eI=J,AV=new GT(W0,0),pEt=new GT("LEFTUP",1),vEt=new GT("RIGHTUP",2),gEt=new GT("LEFTDOWN",3),bEt=new GT("RIGHTDOWN",4),plt=new GT("BALANCED",5)}function kfn(t,e,n){var r,s,o;if(r=Vs(t.a[e.p],t.a[n.p]),r==0){if(s=u(K(e,(ie(),Mx)),15),o=u(K(n,Mx),15),s.Hc(n))return-1;if(o.Hc(e))return 1}return r}function Efn(t){switch(t.g){case 1:return new qQ;case 2:return new HQ;case 3:return new zQ;case 0:return null;default:throw et(new Bn(uct+(t.f!=null?t.f:""+t.g)))}}function V3t(t,e,n){switch(e){case 1:!t.n&&(t.n=new he(ec,t,1,7)),Ir(t.n),!t.n&&(t.n=new he(ec,t,1,7)),vs(t.n,u(n,14));return;case 2:F_(t,Kr(n));return}lyt(t,e,n)}function G3t(t,e,n){switch(e){case 3:Wv(t,Xt(xe(n)));return;case 4:Kv(t,Xt(xe(n)));return;case 5:Du(t,Xt(xe(n)));return;case 6:Iu(t,Xt(xe(n)));return}V3t(t,e,n)}function zz(t,e,n){var r,s,o;o=(r=new Ftt,r),s=z1(o,e,null),s&&s.Fi(),su(o,n),Hr((!t.c&&(t.c=new he(Rw,t,12,10)),t.c),o),Mg(o,0),Zm(o,1),Ng(o,!0),Og(o,!0)}function U3t(t,e){var n,r,s;return n=$T(t.g,e),Et(n,235)?(s=u(n,235),s.Qh()==null,s.Nh()):Et(n,498)?(r=u(n,1938),s=r.b,s):null}function Tfn(t,e,n,r){var s,o;return zr(e),zr(n),o=u(f_(t.d,e),19),KJt(!!o,"Row %s not in %s",e,t.e),s=u(f_(t.b,n),19),KJt(!!s,"Column %s not in %s",n,t.c),Jee(t,o.a,s.a,r)}function ose(t,e,n,r,s,o,h){var d,w,k,_,L;if(_=s[o],k=o==h-1,d=k?r:0,L=Aie(d,_),r!=10&&ct(ot(t,h-o),e[o],n[o],d,L),!k)for(++o,w=0;w<_;++w)L[w]=ose(t,e,n,r,s,o,h);return L}function rC(t){if(t.g==-1)throw et(new qu);t.mj();try{t.i.$c(t.g),t.f=t.i.j,t.g1||d==-1?(o=u(w,15),s.Wb(Dun(t,o))):s.Wb(Qst(t,u(w,56)))))}function Dfn(t,e,n,r){Kqt();var s=eut;function o(){for(var h=0;hact)return n;s>-1e-6&&++n}return n}function Y3t(t,e){var n;e!=t.b?(n=null,t.b&&(n=Jj(t.b,t,-4,n)),e&&(n=tx(e,t,-4,n)),n=Hne(t,e,n),n&&n.Fi()):t.Db&4&&!(t.Db&1)&&Oi(t,new la(t,1,3,e,e))}function lse(t,e){var n;e!=t.f?(n=null,t.f&&(n=Jj(t.f,t,-1,n)),e&&(n=tx(e,t,-1,n)),n=Vne(t,e,n),n&&n.Fi()):t.Db&4&&!(t.Db&1)&&Oi(t,new la(t,1,0,e,e))}function hse(t){var e,n,r;if(t==null)return null;if(n=u(t,15),n.dc())return"";for(r=new yg,e=n.Kc();e.Ob();)So(r,(Vi(),Kr(e.Pb()))),r.a+=" ";return Pet(r,r.a.length-1)}function fse(t){var e,n,r;if(t==null)return null;if(n=u(t,15),n.dc())return"";for(r=new yg,e=n.Kc();e.Ob();)So(r,(Vi(),Kr(e.Pb()))),r.a+=" ";return Pet(r,r.a.length-1)}function jfn(t,e,n){var r,s;return r=t.c[e.c.p][e.p],s=t.c[n.c.p][n.p],r.a!=null&&s.a!=null?Ent(r.a,s.a):r.a!=null?-1:s.a!=null?1:0}function $fn(t,e){var n,r,s,o,h,d;if(e)for(o=e.a.length,n=new Y2(o),d=(n.b-n.a)*n.c<0?(Op(),M2):new Bp(n);d.Ob();)h=u(d.Pb(),19),s=C8(e,h.a),r=new d$t(t),Ltn(r.a,s)}function zfn(t,e){var n,r,s,o,h,d;if(e)for(o=e.a.length,n=new Y2(o),d=(n.b-n.a)*n.c<0?(Op(),M2):new Bp(n);d.Ob();)h=u(d.Pb(),19),s=C8(e,h.a),r=new i$t(t),Atn(r.a,s)}function qfn(t){var e;if(t!=null&&t.length>0&&Ia(t,t.length-1)==33)try{return e=uae($l(t,0,t.length-1)),e.e==null}catch(n){if(n=os(n),!Et(n,32))throw et(n)}return!1}function dse(t,e,n){var r,s,o;return r=e.ak(),o=e.dd(),s=r.$j()?Hp(t,3,r,null,o,E7(t,r,o,Et(r,99)&&(u(r,18).Bb&oo)!=0),!0):Hp(t,1,r,r.zj(),o,-1,!0),n?n.Ei(s):n=s,n}function Hfn(){var t,e,n;for(e=0,t=0;t<1;t++){if(n=z4t((Yr(t,1),"X".charCodeAt(t))),n==0)throw et(new Wr("Unknown Option: "+"X".substr(t)));e|=n}return e}function Vfn(t,e,n){var r,s,o;switch(r=Qa(e),s=gz(r),o=new zc,ac(o,e),n.g){case 1:Qs(o,qD(Z6(s)));break;case 2:Qs(o,Z6(s))}return Jt(o,(Ce(),jy),xe(K(t,jy))),o}function X3t(t){var e,n;return e=u(qr(new pr(mr(Zo(t.a).a.Kc(),new H))),17),n=u(qr(new pr(mr(Gs(t.a).a.Kc(),new H))),17),Re(Be(K(e,(ie(),K1))))||Re(Be(K(n,K1)))}function g4(){g4=J,yV=new xM("ONE_SIDE",0),kV=new xM("TWO_SIDES_CORNER",1),EV=new xM("TWO_SIDES_OPPOSING",2),xV=new xM("THREE_SIDES",3),mV=new xM("FOUR_SIDES",4)}function dst(t,e,n,r,s){var o,h;o=u(Hl(Qi(e.Oc(),new xX),nb(new Ee,new ne,new tr,ct(ot(xl,1),se,132,0,[(j1(),Zl)]))),15),h=u(sb(t.b,n,r),15),s==0?h.Wc(0,o):h.Gc(o)}function Gfn(t,e){var n,r,s,o,h;for(o=new S(e.a);o.a0&&jie(this,this.c-1,(we(),Wn)),this.c0&&t[0].length>0&&(this.c=Re(Be(K(Qa(t[0][0]),(ie(),IEt))))),this.a=Ot(bwe,te,2018,t.length,0,2),this.b=Ot(vwe,te,2019,t.length,0,2),this.d=new Fne}function Xfn(t){return t.c.length==0?!1:(An(0,t.c.length),u(t.c[0],17)).c.i.k==(Kn(),ha)?!0:A8(Cu(new kn(null,new Cn(t,16)),new XX),new QX)}function Qfn(t,e,n){return Ar(n,"Tree layout",1),u$(t.b),Yd(t.b,(u7(),cG),cG),Yd(t.b,LS,LS),Yd(t.b,NO,NO),Yd(t.b,MS,MS),t.a=pq(t.b,e),C2n(t,e,Kc(n,1)),br(n),e}function pse(t,e){var n,r,s,o,h,d,w;for(d=fy(e),o=e.f,w=e.g,h=b.Math.sqrt(o*o+w*w),s=0,r=new S(d);r.a=0?(n=tI(t,_q),r=GD(t,_q)):(e=jm(t,1),n=tI(e,5e8),r=GD(e,5e8),r=Wa(L0(r,1),Xs(t,1))),O1(L0(r,32),Xs(n,Eo))}function wse(t,e,n){var r,s;switch(r=(ir(e.b!=0),u(bh(e,e.a.a),8)),n.g){case 0:r.b=0;break;case 2:r.b=t.f;break;case 3:r.a=0;break;default:r.a=t.g}return s=gi(e,0),YM(s,r),e}function mse(t,e,n,r){var s,o,h,d,w;switch(w=t.b,o=e.d,h=o.j,d=l3t(h,w.d[h.g],n),s=$i(pc(o.n),o.a),o.j.g){case 1:case 3:d.a+=s.a;break;case 2:case 4:d.b+=s.b}Cs(r,d,r.c.b,r.c)}function u1n(t,e,n){var r,s,o,h;for(h=Qo(t.e,e,0),o=new gpt,o.b=n,r=new Ca(t.e,h);r.b1;e>>=1)e&1&&(r=J3(r,n)),n.d==1?n=J3(n,n):n=new Hre(Zce(n.a,n.d,Ot(Br,oi,25,n.d<<1,15,1)));return r=J3(r,n),r}function r4t(){r4t=J;var t,e,n,r;for(i7t=Ot(wa,Do,25,25,15,1),s7t=Ot(wa,Do,25,33,15,1),r=152587890625e-16,e=32;e>=0;e--)s7t[e]=r,r*=.5;for(n=1,t=24;t>=0;t--)i7t[t]=n,n*=.5}function p1n(t){var e,n;if(Re(Be(ze(t,(Ce(),Ry))))){for(n=new pr(mr(H0(t).a.Kc(),new H));Zr(n);)if(e=u(qr(n),79),aw(e)&&Re(Be(ze(e,Ob))))return!0}return!1}function yse(t,e){var n,r,s;Ys(t.f,e)&&(e.b=t,r=e.c,Qo(t.j,r,0)!=-1||ue(t.j,r),s=e.d,Qo(t.j,s,0)!=-1||ue(t.j,s),n=e.a.b,n.c.length!=0&&(!t.i&&(t.i=new Zre(t)),Dan(t.i,n)))}function b1n(t){var e,n,r,s,o;return n=t.c.d,r=n.j,s=t.d.d,o=s.j,r==o?n.p=0&&ln(t.substr(e,3),"GMT")||e>=0&&ln(t.substr(e,3),"UTC"))&&(n[0]=e+3),M5t(t,n,r)}function w1n(t,e){var n,r,s,o,h;for(o=t.g.a,h=t.g.b,r=new S(t.d);r.an;o--)t[o]|=e[o-n-1]>>>h,t[o-1]=e[o-n-1]<=t.f)break;o.c[o.c.length]=n}return o}function s4t(t){var e,n,r,s;for(e=null,s=new S(t.wf());s.a0&&qc(t.g,e,t.g,e+r,d),h=n.Kc(),t.i+=r,s=0;so&&NJe(k,bte(n[d],n7t))&&(s=d,o=w);return s>=0&&(r[0]=e+o),s}function _1n(t,e){var n;if(n=dGt(t.b.Hf(),e.b.Hf()),n!=0)return n;switch(t.b.Hf().g){case 1:case 2:return Tu(t.b.sf(),e.b.sf());case 3:case 4:return Tu(e.b.sf(),t.b.sf())}return 0}function C1n(t){var e,n,r;for(r=t.e.c.length,t.a=K2(Br,[te,oi],[48,25],15,[r,r],2),n=new S(t.c);n.a>4&15,o=t[r]&15,h[s++]=xAt[n],h[s++]=xAt[o];return Fh(h,0,h.length)}function L1n(t,e,n){var r,s,o;return r=e.ak(),o=e.dd(),s=r.$j()?Hp(t,4,r,o,null,E7(t,r,o,Et(r,99)&&(u(r,18).Bb&oo)!=0),!0):Hp(t,r.Kj()?2:1,r,o,r.zj(),-1,!0),n?n.Ei(s):n=s,n}function Nu(t){var e,n;return t>=oo?(e=II+(t-oo>>10&1023)&Ns,n=56320+(t-oo&1023)&Ns,String.fromCharCode(e)+(""+String.fromCharCode(n))):String.fromCharCode(t&Ns)}function M1n(t,e){Pm();var n,r,s,o;return s=u(u(ji(t.r,e),21),84),s.gc()>=2?(r=u(s.Kc().Pb(),111),n=t.u.Hc((cl(),WS)),o=t.u.Hc(Hx),!r.a&&!n&&(s.gc()==2||o)):!1}function Ese(t,e,n,r,s){var o,h,d;for(o=ace(t,e,n,r,s),d=!1;!o;)Xz(t,s,!0),d=!0,o=ace(t,e,n,r,s);d&&Xz(t,s,!1),h=nit(s),h.c.length!=0&&(t.d&&t.d.lg(h),Ese(t,s,n,r,h))}function Gz(){Gz=J,ift=new QT(W0,0),YSt=new QT("DIRECTED",1),QSt=new QT("UNDIRECTED",2),WSt=new QT("ASSOCIATION",3),XSt=new QT("GENERALIZATION",4),KSt=new QT("DEPENDENCY",5)}function D1n(t,e){var n;if(!M1(t))throw et(new Yo(w1e));switch(n=M1(t),e.g){case 1:return-(t.j+t.f);case 2:return t.i-n.g;case 3:return t.j-n.f;case 4:return-(t.i+t.g)}return 0}function d7(t,e){var n,r;for(Pn(e),r=t.b.c.length,ue(t.b,e);r>0;){if(n=r,r=(r-1)/2|0,t.a.ue(Fe(t.b,r),e)<=0)return gh(t.b,n,e),!0;gh(t.b,n,Fe(t.b,r))}return gh(t.b,r,e),!0}function a4t(t,e,n,r){var s,o;if(s=0,n)s=uz(t.a[n.g][e.g],r);else for(o=0;o=d)}function o4t(t,e,n,r){var s;if(s=!1,pa(r)&&(s=!0,p8(e,n,Kr(r))),s||Dm(r)&&(s=!0,o4t(t,e,n,r)),s||Et(r,236)&&(s=!0,Q2(e,n,u(r,236))),!s)throw et(new qtt(e8t))}function O1n(t,e){var n,r,s;if(n=e.Hh(t.a),n&&(s=e1((!n.b&&(n.b=new Ml((hn(),uo),xc,n)),n.b),qh),s!=null)){for(r=1;r<(Yu(),GAt).length;++r)if(ln(GAt[r],s))return r}return 0}function N1n(t,e){var n,r,s;if(n=e.Hh(t.a),n&&(s=e1((!n.b&&(n.b=new Ml((hn(),uo),xc,n)),n.b),qh),s!=null)){for(r=1;r<(Yu(),UAt).length;++r)if(ln(UAt[r],s))return r}return 0}function Tse(t,e){var n,r,s,o;if(Pn(e),o=t.a.gc(),o0?1:0;o.a[s]!=n;)o=o.a[s],s=t.a.ue(n.d,o.d)>0?1:0;o.a[s]=r,r.b=n.b,r.a[0]=n.a[0],r.a[1]=n.a[1],n.a[0]=null,n.a[1]=null}function B1n(t){cl();var e,n;return e=Zi(J0,ct(ot(PG,1),se,273,0,[E2])),!(SD(n$(e,t))>1||(n=Zi(WS,ct(ot(PG,1),se,273,0,[US,Hx])),SD(n$(n,t))>1))}function u4t(t,e){var n;n=Uc((Ip(),tf),t),Et(n,498)?Po(tf,t,new HVt(this,e)):Po(tf,t,this),yst(this,e),e==(t8(),OAt)?(this.wb=u(this,1939),u(e,1941)):this.wb=(zp(),Ln)}function R1n(t){var e,n,r;if(t==null)return null;for(e=null,n=0;n=jg?"error":r>=900?"warn":r>=800?"info":"log"),lYt(n,t.a),t.b&&u5t(e,n,t.b,"Exception: ",!0))}function K(t,e){var n,r;return r=(!t.q&&(t.q=new Rr),or(t.q,e)),r??(n=e.wg(),Et(n,4)&&(n==null?(!t.q&&(t.q=new Rr),G6(t.q,e)):(!t.q&&(t.q=new Rr),Pi(t.q,e,n))),n)}function so(){so=J,Nd=new yM("P1_CYCLE_BREAKING",0),f2=new yM("P2_LAYERING",1),pu=new yM("P3_NODE_ORDERING",2),Zc=new yM("P4_NODE_PLACEMENT",3),Go=new yM("P5_EDGE_ROUTING",4)}function Ase(t,e){var n,r,s,o,h;for(s=e==1?jut:Rut,r=s.a.ec().Kc();r.Ob();)for(n=u(r.Pb(),103),h=u(ji(t.f.c,n),21).Kc();h.Ob();)o=u(h.Pb(),46),Au(t.b.b,o.b),Au(t.b.a,u(o.b,81).d)}function j1n(t,e){N_();var n;if(t.c==e.c){if(t.b==e.b||lan(t.b,e.b)){if(n=mKe(t.b)?1:-1,t.a&&!e.a)return n;if(!t.a&&e.a)return-n}return Tu(t.b.g,e.b.g)}else return Vs(t.c,e.c)}function $1n(t,e){var n;Ar(e,"Hierarchical port position processing",1),n=t.b,n.c.length>0&&Wce((An(0,n.c.length),u(n.c[0],29)),t),n.c.length>1&&Wce(u(Fe(n,n.c.length-1),29),t),br(e)}function Lse(t,e){var n,r,s;if(h4t(t,e))return!0;for(r=new S(e);r.a=s||e<0)throw et(new Oo(Pct+e+_b+s));if(n>=s||n<0)throw et(new Oo(Fct+n+_b+s));return e!=n?r=(o=t.Ti(n),t.Hi(e,o),o):r=t.Oi(n),r}function Ise(t){var e,n,r;if(r=t,t)for(e=0,n=t.Ug();n;n=n.Ug()){if(++e>Yat)return Ise(n);if(r=n,n==t)throw et(new Yo("There is a cycle in the containment hierarchy of "+t))}return r}function Jp(t){var e,n,r;for(r=new ab(ao,"[","]"),n=t.Kc();n.Ob();)e=n.Pb(),N0(r,qt(e)===qt(t)?"(this Collection)":e==null?Pu:Jo(e));return r.a?r.e.length==0?r.a.a:r.a.a+(""+r.e):r.c}function h4t(t,e){var n,r;if(r=!1,e.gc()<2)return!1;for(n=0;nr&&(Yr(e-1,t.length),t.charCodeAt(e-1)<=32);)--e;return r>0||e1&&(t.j.b+=t.e)):(t.j.a+=n.a,t.j.b=b.Math.max(t.j.b,n.b),t.d.c.length>1&&(t.j.a+=t.e))}function t2(){t2=J,f2e=ct(ot(co,1),Nc,61,0,[(we(),Fn),Wn,Lr]),h2e=ct(ot(co,1),Nc,61,0,[Wn,Lr,jn]),d2e=ct(ot(co,1),Nc,61,0,[Lr,jn,Fn]),g2e=ct(ot(co,1),Nc,61,0,[jn,Fn,Wn])}function q1n(t,e,n,r){var s,o,h,d,w,k,_;if(h=t.c.d,d=t.d.d,h.j!=d.j)for(_=t.b,s=h.j,w=null;s!=d.j;)w=e==0?dz(s):Nyt(s),o=l3t(s,_.d[s.g],n),k=l3t(w,_.d[w.g],n),pi(r,$i(o,k)),s=w}function H1n(t,e,n,r){var s,o,h,d,w;return h=$ie(t.a,e,n),d=u(h.a,19).a,o=u(h.b,19).a,r&&(w=u(K(e,(ie(),ul)),10),s=u(K(n,ul),10),w&&s&&(UQt(t.b,w,s),d+=t.b.i,o+=t.b.e)),d>o}function Nse(t){var e,n,r,s,o,h,d,w,k;for(this.a=uie(t),this.b=new le,n=t,r=0,s=n.length;rQet(t.d).c?(t.i+=t.g.c,Fit(t.d)):Qet(t.d).c>Qet(t.g).c?(t.e+=t.d.c,Fit(t.g)):(t.i+=hKt(t.g),t.e+=hKt(t.d),Fit(t.g),Fit(t.d))}function U1n(t,e,n){var r,s,o,h;for(o=e.q,h=e.r,new Z2((Qf(),v2),e,o,1),new Z2(v2,o,h,1),s=new S(n);s.ad&&(w=d/r),s>o&&(k=o/s),h=b.Math.min(w,k),t.a+=h*(e.a-t.a),t.b+=h*(e.b-t.b)}function X1n(t,e,n,r,s){var o,h;for(h=!1,o=u(Fe(n.b,0),33);hwn(t,e,o,r,s)&&(h=!0,Lfn(n,o),n.b.c.length!=0);)o=u(Fe(n.b,0),33);return n.b.c.length==0&&JD(n.j,n),h&&Fz(e.q),h}function Q1n(t,e){y4();var n,r,s,o;if(e.b<2)return!1;for(o=gi(e,0),n=u(di(o),8),r=n;o.b!=o.d.c;){if(s=u(di(o),8),jst(t,r,s))return!0;r=s}return!!jst(t,r,n)}function d4t(t,e,n,r){var s,o;return n==0?(!t.o&&(t.o=new Nl((ou(),_2),Bw,t,0)),dj(t.o,e,r)):(o=u(wn((s=u(Dn(t,16),26),s||t.zh()),n),66),o.Nj().Rj(t,fu(t),n-ar(t.zh()),e,r))}function yst(t,e){var n;e!=t.sb?(n=null,t.sb&&(n=u(t.sb,49).ih(t,1,XS,n)),e&&(n=u(e,49).gh(t,1,XS,n)),n=Syt(t,e,n),n&&n.Fi()):t.Db&4&&!(t.Db&1)&&Oi(t,new la(t,1,4,e,e))}function Z1n(t,e){var n,r,s,o;if(e)s=B0(e,"x"),n=new l$t(t),F8(n.a,(Pn(s),s)),o=B0(e,"y"),r=new h$t(t),R8(r.a,(Pn(o),o));else throw et(new fd("All edge sections need an end point."))}function J1n(t,e){var n,r,s,o;if(e)s=B0(e,"x"),n=new o$t(t),B8(n.a,(Pn(s),s)),o=B0(e,"y"),r=new c$t(t),j8(r.a,(Pn(o),o));else throw et(new fd("All edge sections need a start point."))}function tdn(t,e){var n,r,s,o,h,d,w;for(r=yne(t),o=0,d=r.length;o>22-e,s=t.h<>22-e):e<44?(n=0,r=t.l<>44-e):(n=0,r=0,s=t.l<t)throw et(new Bn("k must be smaller than n"));return e==0||e==t?1:t==0?0:z3t(t)/(z3t(e)*z3t(t-e))}function g4t(t,e){var n,r,s,o;for(n=new B2t(t);n.g==null&&!n.c?bwt(n):n.g==null||n.i!=0&&u(n.g[n.i-1],47).Ob();)if(o=u(Qz(n),56),Et(o,160))for(r=u(o,160),s=0;s>4],e[n*2+1]=tU[o&15];return Fh(e,0,e.length)}function vdn(t){qj();var e,n,r;switch(r=t.c.length,r){case 0:return y0e;case 1:return e=u(Tae(new S(t)),42),zZe(e.cd(),e.dd());default:return n=u($1(t,Ot(Ab,Eq,42,t.c.length,0,1)),165),new $tt(n)}}function wdn(t){var e,n,r,s,o,h;for(e=new P3,n=new P3,Vp(e,t),Vp(n,t);n.b!=n.c;)for(s=u(P6(n),37),h=new S(s.a);h.a0&&bI(t,n,e),s):tgn(t,e,n)}function qse(t,e,n){var r,s,o,h;if(e.b!=0){for(r=new hs,h=gi(e,0);h.b!=h.d.c;)o=u(di(h),86),io(r,Xmt(o)),s=o.e,s.a=u(K(o,(Sc(),vht)),19).a,s.b=u(K(o,N_t),19).a;qse(t,r,Kc(n,r.b/t.a|0))}}function Hse(t,e){var n,r,s,o,h;if(t.e<=e||Cnn(t,t.g,e))return t.g;for(o=t.r,r=t.g,h=t.r,s=(o-r)/2+r;r+11&&(t.e.b+=t.a)):(t.e.a+=n.a,t.e.b=b.Math.max(t.e.b,n.b),t.d.c.length>1&&(t.e.a+=t.a))}function Edn(t){var e,n,r,s;switch(s=t.i,e=s.b,r=s.j,n=s.g,s.a.g){case 0:n.a=(t.g.b.o.a-r.a)/2;break;case 1:n.a=e.d.n.a+e.d.a.a;break;case 2:n.a=e.d.n.a+e.d.a.a-r.a;break;case 3:n.b=e.d.n.b+e.d.a.b}}function Vse(t,e,n,r,s){if(rr&&(t.a=r),t.bs&&(t.b=s),t}function Tdn(t){if(Et(t,149))return Jpn(u(t,149));if(Et(t,229))return Xcn(u(t,229));if(Et(t,23))return rdn(u(t,23));throw et(new Bn(n8t+Jp(new Al(ct(ot(nr,1),De,1,5,[t])))))}function _dn(t,e,n,r,s){var o,h,d;for(o=!0,h=0;h>>s|n[h+r+1]<>>s,++h}return o}function w4t(t,e,n,r){var s,o,h;if(e.k==(Kn(),ha)){for(o=new pr(mr(Zo(e).a.Kc(),new H));Zr(o);)if(s=u(qr(o),17),h=s.c.i.k,h==ha&&t.c.a[s.c.i.c.p]==r&&t.c.a[e.c.p]==n)return!0}return!1}function Cdn(t,e){var n,r,s,o;return e&=63,n=t.h&U0,e<22?(o=n>>>e,s=t.m>>e|n<<22-e,r=t.l>>e|t.m<<22-e):e<44?(o=0,s=n>>>e-22,r=t.m>>e-22|t.h<<44-e):(o=0,s=0,r=n>>>e-44),hu(r&yl,s&yl,o&U0)}function Gse(t,e,n,r){var s;this.b=r,this.e=t==(Yv(),CS),s=e[n],this.d=K2(Tl,[te,o0],[177,25],16,[s.length,s.length],2),this.a=K2(Br,[te,oi],[48,25],15,[s.length,s.length],2),this.c=new t4t(e,n)}function Sdn(t){var e,n,r;for(t.k=new ywt((we(),ct(ot(co,1),Nc,61,0,[fc,Fn,Wn,Lr,jn])).length,t.j.c.length),r=new S(t.j);r.a=n)return p7(t,e,r.p),!0;return!1}function Wse(t){var e;return t.Db&64?xst(t):(e=new jl(Gkt),!t.a||ni(ni((e.a+=' "',e),t.a),'"'),ni(kv(ni(kv(ni(kv(ni(kv((e.a+=" (",e),t.i),","),t.j)," | "),t.g),","),t.f),")"),e.a)}function Kse(t,e,n){var r,s,o,h,d;for(d=gu(t.e.Tg(),e),s=u(t.g,119),r=0,h=0;hn?C4t(t,n,"start index"):e<0||e>n?C4t(e,n,"end index"):hC("end index (%s) must not be less than start index (%s)",ct(ot(nr,1),De,1,5,[pe(e),pe(t)]))}function Xse(t,e){var n,r,s,o;for(r=0,s=t.length;r0&&Qse(t,o,n));e.p=0}function Xe(t){var e;this.c=new hs,this.f=t.e,this.e=t.d,this.i=t.g,this.d=t.c,this.b=t.b,this.k=t.j,this.a=t.a,t.i?this.j=t.i:this.j=(e=u(Yf(Xg),9),new hh(e,u(pf(e,e.length),9),0)),this.g=t.f}function Odn(t){var e,n,r,s;for(e=$p(ni(new jl("Predicates."),"and"),40),n=!0,s=new h6(t);s.b0?d[h-1]:Ot(l0,$g,10,0,0,1),s=d[h],k=h=0?t.Bh(s):D4t(t,r);else throw et(new Bn(c2+r.ne()+zC));else throw et(new Bn(L1e+e+M1e));else wh(t,n,r)}function m4t(t){var e,n;if(n=null,e=!1,Et(t,204)&&(e=!0,n=u(t,204).a),e||Et(t,258)&&(e=!0,n=""+u(t,258).a),e||Et(t,483)&&(e=!0,n=""+u(t,483).a),!e)throw et(new qtt(e8t));return n}function eae(t,e){var n,r;if(t.f){for(;e.Ob();)if(n=u(e.Pb(),72),r=n.ak(),Et(r,99)&&u(r,18).Bb&Ac&&(!t.e||r.Gj()!=D9||r.aj()!=0)&&n.dd()!=null)return e.Ub(),!0;return!1}else return e.Ob()}function nae(t,e){var n,r;if(t.f){for(;e.Sb();)if(n=u(e.Ub(),72),r=n.ak(),Et(r,99)&&u(r,18).Bb&Ac&&(!t.e||r.Gj()!=D9||r.aj()!=0)&&n.dd()!=null)return e.Pb(),!0;return!1}else return e.Sb()}function y4t(t,e,n){var r,s,o,h,d,w;for(w=gu(t.e.Tg(),e),r=0,d=t.i,s=u(t.g,119),h=0;h1&&(e.c[e.c.length]=o))}function Bdn(t){var e,n,r,s;for(n=new hs,io(n,t.o),r=new ppt;n.b!=0;)e=u(n.b==0?null:(ir(n.b!=0),bh(n,n.a.a)),508),s=Ple(t,e,!0),s&&ue(r.a,e);for(;r.a.c.length!=0;)e=u(Ane(r),508),Ple(t,e,!1)}function Rg(){Rg=J,JCt=new _6(SC,0),qa=new _6("BOOLEAN",1),Lc=new _6("INT",2),T9=new _6("STRING",3),Uo=new _6("DOUBLE",4),ks=new _6("ENUM",5),Rx=new _6("ENUMSET",6),X1=new _6("OBJECT",7)}function sC(t,e){var n,r,s,o,h;r=b.Math.min(t.c,e.c),o=b.Math.min(t.d,e.d),s=b.Math.max(t.c+t.b,e.c+e.b),h=b.Math.max(t.d+t.a,e.d+e.a),s=(s/2|0))for(this.e=r?r.c:null,this.d=s;n++0;)vwt(this);this.b=e,this.a=null}function $dn(t,e){var n,r;e.a?u2n(t,e):(n=u(nnt(t.b,e.b),57),n&&n==t.a[e.b.f]&&n.a&&n.a!=e.b.a&&n.c.Fc(e.b),r=u(ent(t.b,e.b),57),r&&t.a[r.f]==e.b&&r.a&&r.a!=e.b.a&&e.b.c.Fc(r),Het(t.b,e.b))}function iae(t,e){var n,r;if(n=u(Ao(t.b,e),124),u(u(ji(t.r,e),21),84).dc()){n.n.b=0,n.n.c=0;return}n.n.b=t.C.b,n.n.c=t.C.c,t.A.Hc((Fl(),Hb))&&Ace(t,e),r=bln(t,e),zst(t,e)==(c4(),x2)&&(r+=2*t.w),n.a.a=r}function sae(t,e){var n,r;if(n=u(Ao(t.b,e),124),u(u(ji(t.r,e),21),84).dc()){n.n.d=0,n.n.a=0;return}n.n.d=t.C.d,n.n.a=t.C.a,t.A.Hc((Fl(),Hb))&&Lce(t,e),r=vln(t,e),zst(t,e)==(c4(),x2)&&(r+=2*t.w),n.a.b=r}function zdn(t,e){var n,r,s,o;for(o=new le,r=new S(e);r.an.a&&(r.Hc((ay(),zO))?s=(e.a-n.a)/2:r.Hc(qO)&&(s=e.a-n.a)),e.b>n.b&&(r.Hc((ay(),VO))?o=(e.b-n.b)/2:r.Hc(HO)&&(o=e.b-n.b)),c4t(t,s,o)}function dae(t,e,n,r,s,o,h,d,w,k,_,L,F){Et(t.Cb,88)&&uy(gl(u(t.Cb,88)),4),su(t,n),t.f=h,r7(t,d),s7(t,w),n7(t,k),i7(t,_),Ng(t,L),a7(t,F),Og(t,!0),Mg(t,s),t.ok(o),lb(t,e),r!=null&&(t.i=null,U$(t,r))}function gae(t){var e,n;if(t.f){for(;t.n>0;){if(e=u(t.k.Xb(t.n-1),72),n=e.ak(),Et(n,99)&&u(n,18).Bb&Ac&&(!t.e||n.Gj()!=D9||n.aj()!=0)&&e.dd()!=null)return!0;--t.n}return!1}else return t.n>0}function C4t(t,e,n){if(t<0)return hC(Zle,ct(ot(nr,1),De,1,5,[n,pe(t)]));if(e<0)throw et(new Bn(Jle+e));return hC("%s (%s) must not be greater than size (%s)",ct(ot(nr,1),De,1,5,[n,pe(t),pe(e)]))}function S4t(t,e,n,r,s,o){var h,d,w,k;if(h=r-n,h<7){jcn(e,n,r,o);return}if(w=n+s,d=r+s,k=w+(d-w>>1),S4t(e,t,w,k,-s,o),S4t(e,t,k,d,-s,o),o.ue(t[k-1],t[k])<=0){for(;n=0?t.sh(o,n):r5t(t,s,n);else throw et(new Bn(c2+s.ne()+zC));else throw et(new Bn(L1e+e+M1e));else yh(t,r,s,n)}function pae(t){var e,n,r,s;if(n=u(t,49).qh(),n)try{if(r=null,e=w7((Ip(),tf),Qce(qcn(n))),e&&(s=e.rh(),s&&(r=s.Wk(XUe(n.e)))),r&&r!=t)return pae(r)}catch(o){if(o=os(o),!Et(o,60))throw et(o)}return t}function du(t,e,n){var r,s,o,h;if(h=e==null?0:t.b.se(e),s=(r=t.a.get(h),r??new Array),s.length==0)t.a.set(h,s);else if(o=Dne(t,e,s),o)return o.ed(n);return ds(s,s.length,new LR(e,n)),++t.c,Qj(t.b),null}function bae(t,e){var n,r;return u$(t.a),Yd(t.a,(Y$(),pG),pG),Yd(t.a,E9,E9),r=new ra,Mi(r,E9,(bz(),kht)),qt(ze(e,(iy(),_ht)))!==qt((BD(),bG))&&Mi(r,E9,yht),Mi(r,E9,xht),bGt(t.a,r),n=pq(t.a,e),n}function vae(t){if(!t)return tqt(),L0e;var e=t.valueOf?t.valueOf():t;if(e!==t){var n=hut[typeof e];return n?n(e):myt(typeof e)}else return t instanceof Array||t instanceof b.Array?new u6(t):new Hk(t)}function wae(t,e,n){var r,s,o;switch(o=t.o,r=u(Ao(t.p,n),244),s=r.i,s.b=cI(r),s.a=oI(r),s.b=b.Math.max(s.b,o.a),s.b>o.a&&!e&&(s.b=o.a),s.c=-(s.b-o.a)/2,n.g){case 1:s.d=-s.a;break;case 3:s.d=o.b}tat(r),eat(r)}function mae(t,e,n){var r,s,o;switch(o=t.o,r=u(Ao(t.p,n),244),s=r.i,s.b=cI(r),s.a=oI(r),s.a=b.Math.max(s.a,o.b),s.a>o.b&&!e&&(s.a=o.b),s.d=-(s.a-o.b)/2,n.g){case 4:s.c=-s.b;break;case 2:s.c=o.a}tat(r),eat(r)}function n0n(t,e){var n,r,s,o,h;if(!e.dc()){if(s=u(e.Xb(0),128),e.gc()==1){Uoe(t,s,s,1,0,e);return}for(n=1;n0)try{s=Kl(e,$a,Di)}catch(o){throw o=os(o),Et(o,127)?(r=o,et(new S$(r))):et(o)}return n=(!t.a&&(t.a=new Ltt(t)),t.a),s=0?u(St(n,s),56):null}function a0n(t,e){if(t<0)return hC(Zle,ct(ot(nr,1),De,1,5,["index",pe(t)]));if(e<0)throw et(new Bn(Jle+e));return hC("%s (%s) must be less than size (%s)",ct(ot(nr,1),De,1,5,["index",pe(t),pe(e)]))}function o0n(t){var e,n,r,s,o;if(t==null)return Pu;for(o=new ab(ao,"[","]"),n=t,r=0,s=n.length;r0)for(h=t.c.d,d=t.d.d,s=pd(ba(new je(d.a,d.b),h),1/(r+1)),o=new je(h.a,h.b),n=new S(t.a);n.a=0?t._g(n,!0,!0):ow(t,s,!0),153)),u(r,215).ol(e);else throw et(new Bn(c2+e.ne()+zC))}function I4t(t){var e,n;return t>-0x800000000000&&t<0x800000000000?t==0?0:(e=t<0,e&&(t=-t),n=Ms(b.Math.floor(b.Math.log(t)/.6931471805599453)),(!e||t!=b.Math.pow(2,n))&&++n,n):Gee(Ou(t))}function y0n(t){var e,n,r,s,o,h,d;for(o=new S0,n=new S(t);n.a2&&d.e.b+d.j.b<=2&&(s=d,r=h),o.a.zc(s,o),s.q=r);return o}function Sae(t,e){var n,r,s;return r=new q0(t),Ho(r,e),Jt(r,(ie(),PV),e),Jt(r,(Ce(),xs),(xa(),eu)),Jt(r,Pd,(t0(),CG)),_0(r,(Kn(),Fs)),n=new zc,ac(n,r),Qs(n,(we(),jn)),s=new zc,ac(s,r),Qs(s,Wn),r}function Aae(t){switch(t.g){case 0:return new Htt((Yv(),IO));case 1:return new TB;case 2:return new zJ;default:throw et(new Bn("No implementation is available for the crossing minimizer "+(t.f!=null?t.f:""+t.g)))}}function Lae(t,e){var n,r,s,o,h;for(t.c[e.p]=!0,ue(t.a,e),h=new S(e.j);h.a=o)h.$b();else for(s=h.Kc(),r=0;r0?Mpt():h<0&&Oae(t,e,-h),!0):!1}function oI(t){var e,n,r,s,o,h,d;if(d=0,t.b==0){for(h=pie(t,!0),e=0,r=h,s=0,o=r.length;s0&&(d+=n,++e);e>1&&(d+=t.c*(e-1))}else d=cqt(mee(Vj(Qi(Ant(t.a),new Ya),new Ea)));return d>0?d+t.n.d+t.n.a:0}function cI(t){var e,n,r,s,o,h,d;if(d=0,t.b==0)d=cqt(mee(Vj(Qi(Ant(t.a),new ss),new Aa)));else{for(h=bie(t,!0),e=0,r=h,s=0,o=r.length;s0&&(d+=n,++e);e>1&&(d+=t.c*(e-1))}return d>0?d+t.n.b+t.n.c:0}function A0n(t,e){var n,r,s,o;for(o=u(Ao(t.b,e),124),n=o.a,s=u(u(ji(t.r,e),21),84).Kc();s.Ob();)r=u(s.Pb(),111),r.c&&(n.a=b.Math.max(n.a,vvt(r.c)));if(n.a>0)switch(e.g){case 2:o.n.c=t.s;break;case 4:o.n.b=t.s}}function L0n(t,e){var n,r,s;return n=u(K(e,(i1(),t9)),19).a-u(K(t,t9),19).a,n==0?(r=ba(pc(u(K(t,(Up(),fO)),8)),u(K(t,iS),8)),s=ba(pc(u(K(e,fO),8)),u(K(e,iS),8)),Vs(r.a*r.b,s.a*s.b)):n}function M0n(t,e){var n,r,s;return n=u(K(e,(cw(),gG)),19).a-u(K(t,gG),19).a,n==0?(r=ba(pc(u(K(t,(Sc(),PO)),8)),u(K(t,DS),8)),s=ba(pc(u(K(e,PO),8)),u(K(e,DS),8)),Vs(r.a*r.b,s.a*s.b)):n}function Nae(t){var e,n;return n=new Ap,n.a+="e_",e=jan(t),e!=null&&(n.a+=""+e),t.c&&t.d&&(ni((n.a+=" ",n),Rz(t.c)),ni(Cc((n.a+="[",n),t.c.i),"]"),ni((n.a+=Eot,n),Rz(t.d)),ni(Cc((n.a+="[",n),t.d.i),"]")),n.a}function Pae(t){switch(t.g){case 0:return new UL;case 1:return new jJ;case 2:return new RJ;case 3:return new _B;default:throw et(new Bn("No implementation is available for the layout phase "+(t.f!=null?t.f:""+t.g)))}}function N4t(t,e,n,r,s){var o;switch(o=0,s.g){case 1:o=b.Math.max(0,e.b+t.b-(n.b+r));break;case 3:o=b.Math.max(0,-t.b-r);break;case 2:o=b.Math.max(0,-t.a-r);break;case 4:o=b.Math.max(0,e.a+t.a-(n.a+r))}return o}function D0n(t,e,n){var r,s,o,h,d;if(n)for(s=n.a.length,r=new Y2(s),d=(r.b-r.a)*r.c<0?(Op(),M2):new Bp(r);d.Ob();)h=u(d.Pb(),19),o=C8(n,h.a),Ykt in o.a||Oct in o.a?qbn(t,o,e):K3n(t,o,e),pYe(u(or(t.b,o7(o)),79))}function P4t(t){var e,n;switch(t.b){case-1:return!0;case 0:return n=t.t,n>1||n==-1?(t.b=-1,!0):(e=Bh(t),e&&(go(),e.Cj()==Dde)?(t.b=-1,!0):(t.b=1,!1));default:case 1:return!1}}function I0n(t,e){var n,r,s,o,h;for(r=(!e.s&&(e.s=new he(ju,e,21,17)),e.s),o=null,s=0,h=r.i;s=0&&r=0?t._g(n,!0,!0):ow(t,s,!0),153)),u(r,215).ll(e);throw et(new Bn(c2+e.ne()+Tct))}function B0n(){Qpt();var t;return b4e?u(w7((Ip(),tf),Hh),1939):(bi(Ab,new Vf),wyn(),t=u(Et(Uc((Ip(),tf),Hh),547)?Uc(tf,Hh):new xYt,547),b4e=!0,g4n(t),m4n(t),Pi((Xpt(),IAt),t,new RZ),Po(tf,Hh,t),t)}function R0n(t,e){var n,r,s,o;t.j=-1,Ll(t.e)?(n=t.i,o=t.i!=0,cD(t,e),r=new P0(t.e,3,t.c,null,e,n,o),s=e.Qk(t.e,t.c,null),s=dse(t,e,s),s?(s.Ei(r),s.Fi()):Oi(t.e,r)):(cD(t,e),s=e.Qk(t.e,t.c,null),s&&s.Fi())}function Kz(t,e){var n,r,s;if(s=0,r=e[0],r>=t.length)return-1;for(n=(Yr(r,t.length),t.charCodeAt(r));n>=48&&n<=57&&(s=s*10+(n-48),++r,!(r>=t.length));)n=(Yr(r,t.length),t.charCodeAt(r));return r>e[0]?e[0]=r:s=-1,s}function j0n(t){var e,n,r,s,o;return s=u(t.a,19).a,o=u(t.b,19).a,n=s,r=o,e=b.Math.max(b.Math.abs(s),b.Math.abs(o)),s<=0&&s==o?(n=0,r=o-1):s==-e&&o!=e?(n=o,r=s,o>=0&&++n):(n=-o,r=s),new _a(pe(n),pe(r))}function $0n(t,e,n,r){var s,o,h,d,w,k;for(s=0;s=0&&k>=0&&w=t.i)throw et(new Oo(Pct+e+_b+t.i));if(n>=t.i)throw et(new Oo(Fct+n+_b+t.i));return r=t.g[n],e!=n&&(e>16),e=r>>16&16,n=16-e,t=t>>e,r=t-256,e=r>>16&8,n+=e,t<<=e,r=t-wy,e=r>>16&4,n+=e,t<<=e,r=t-kd,e=r>>16&2,n+=e,t<<=e,r=t>>14,e=r&~(r>>1),n+2-e)}function q0n(t){R6();var e,n,r,s;for(WH=new le,Mut=new Rr,Lut=new le,e=(!t.a&&(t.a=new he(bs,t,10,11)),t.a),y3n(e),s=new lr(e);s.e!=s.i.gc();)r=u(kr(s),33),Qo(WH,r,0)==-1&&(n=new le,ue(Lut,n),Wre(r,n));return Lut}function H0n(t,e,n){var r,s,o,h;t.a=n.b.d,Et(e,352)?(s=m4(u(e,79),!1,!1),o=iI(s),r=new Fa(t),Oa(o,r),mI(o,s),e.We((Ti(),i5))!=null&&Oa(u(e.We(i5),74),r)):(h=u(e,470),h.Hg(h.Dg()+t.a.a),h.Ig(h.Eg()+t.a.b))}function Bae(t,e){var n,r,s,o,h,d,w,k;for(k=Xt(xe(K(e,(Ce(),yS)))),w=t[0].n.a+t[0].o.a+t[0].d.c+k,d=1;d=0?n:(d=k_(ba(new je(h.c+h.b/2,h.d+h.a/2),new je(o.c+o.b/2,o.d+o.a/2))),-(sue(o,h)-1)*d)}function G0n(t,e,n){var r;Ts(new kn(null,(!n.a&&(n.a=new he(fs,n,6,6)),new Cn(n.a,16))),new xVt(t,e)),Ts(new kn(null,(!n.n&&(n.n=new he(ec,n,1,7)),new Cn(n.n,16))),new kVt(t,e)),r=u(ze(n,(Ti(),i5)),74),r&&$mt(r,t,e)}function ow(t,e,n){var r,s,o;if(o=E4((Yu(),Pa),t.Tg(),e),o)return go(),u(o,66).Oj()||(o=z6(Bo(Pa,o))),s=(r=t.Yg(o),u(r>=0?t._g(r,!0,!0):ow(t,o,!0),153)),u(s,215).hl(e,n);throw et(new Bn(c2+e.ne()+Tct))}function B4t(t,e,n,r){var s,o,h,d,w;if(s=t.d[e],s){if(o=s.g,w=s.i,r!=null){for(d=0;d=n&&(r=e,k=(w.c+w.a)/2,h=k-n,w.c<=k-n&&(s=new cnt(w.c,h),Rm(t,r++,s)),d=k+n,d<=w.a&&(o=new cnt(d,w.a),Vm(r,t.c.length),zT(t.c,r,o)))}function R4t(t){var e;if(!t.c&&t.g==null)t.d=t.si(t.f),Hr(t,t.d),e=t.d;else{if(t.g==null)return!0;if(t.i==0)return!1;e=u(t.g[t.i-1],47)}return e==t.b&&null.km>=null.jm()?(Qz(t),R4t(t)):e.Ob()}function Y0n(t,e,n){var r,s,o,h,d;if(d=n,!d&&(d=pvt(new Yk,0)),Ar(d,tfe,1),sle(t.c,e),h=uyn(t.a,e),h.gc()==1)zue(u(h.Xb(0),37),d);else for(o=1/h.gc(),s=h.Kc();s.Ob();)r=u(s.Pb(),37),zue(r,Kc(d,o));rWe(t.a,h,e),ubn(e),br(d)}function $ae(t){if(this.a=t,t.c.i.k==(Kn(),Fs))this.c=t.c,this.d=u(K(t.c.i,(ie(),yc)),61);else if(t.d.i.k==Fs)this.c=t.d,this.d=u(K(t.d.i,(ie(),yc)),61);else throw et(new Bn("Edge "+t+" is not an external edge."))}function zae(t,e){var n,r,s;s=t.b,t.b=e,t.Db&4&&!(t.Db&1)&&Oi(t,new la(t,1,3,s,t.b)),e?e!=t&&(su(t,e.zb),qrt(t,e.d),n=(r=e.c,r??e.zb),Vrt(t,n==null||ln(n,e.zb)?null:n)):(su(t,null),qrt(t,0),Vrt(t,null))}function qae(t){var e,n;if(t.f){for(;t.n=h)throw et(new Bm(e,h));return s=n[e],h==1?r=null:(r=Ot(fft,zct,415,h-1,0,1),qc(n,0,r,0,e),o=h-e-1,o>0&&qc(n,e+1,r,e,o)),c7(t,r),hae(t,e,s),s}function sx(){sx=J,Ux=u(St(Ut((jpt(),Mc).qb),6),34),Gx=u(St(Ut(Mc.qb),3),34),wft=u(St(Ut(Mc.qb),4),34),mft=u(St(Ut(Mc.qb),5),18),qz(Ux),qz(Gx),qz(wft),qz(mft),y4e=new Al(ct(ot(ju,1),P4,170,0,[Ux,Gx]))}function Uae(t,e){var n;this.d=new TT,this.b=e,this.e=new No(e.qf()),n=t.u.Hc((cl(),JO)),t.u.Hc(J0)?t.D?this.a=n&&!e.If():this.a=!0:t.u.Hc(E2)?n?this.a=!(e.zf().Kc().Ob()||e.Bf().Kc().Ob()):this.a=!1:this.a=!1}function Wae(t,e){var n,r,s,o;for(n=t.o.a,o=u(u(ji(t.r,e),21),84).Kc();o.Ob();)s=u(o.Pb(),111),s.e.a=(r=s.b,r.Xe((Ti(),kl))?r.Hf()==(we(),jn)?-r.rf().a-Xt(xe(r.We(kl))):n+Xt(xe(r.We(kl))):r.Hf()==(we(),jn)?-r.rf().a:n)}function Kae(t,e){var n,r,s,o;n=u(K(t,(Ce(),Jl)),103),o=u(ze(e,v9),61),s=u(K(t,xs),98),s!=(xa(),Q1)&&s!=k2?o==(we(),fc)&&(o=F5t(e,n),o==fc&&(o=Z6(n))):(r=$ue(e),r>0?o=Z6(n):o=qD(Z6(n))),Mo(e,v9,o)}function J0n(t,e){var n,r,s,o,h;for(h=t.j,e.a!=e.b&&ua(h,new W5),s=h.c.length/2|0,r=0;r0&&bI(t,n,e),o):r.a!=null?(bI(t,e,n),-1):s.a!=null?(bI(t,n,e),1):0}function Yae(t,e){var n,r,s,o;t.ej()?(n=t.Vi(),o=t.fj(),++t.j,t.Hi(n,t.oi(n,e)),r=t.Zi(3,null,e,n,o),t.bj()?(s=t.cj(e,null),s?(s.Ei(r),s.Fi()):t.$i(r)):t.$i(r)):(hYt(t,e),t.bj()&&(s=t.cj(e,null),s&&s.Fi()))}function Yz(t,e){var n,r,s,o,h;for(h=gu(t.e.Tg(),e),s=new J5,n=u(t.g,119),o=t.i;--o>=0;)r=n[o],h.rl(r.ak())&&Hr(s,r);!Rle(t,s)&&Ll(t.e)&&Kk(t,e.$j()?Hp(t,6,e,(pn(),wo),null,-1,!1):Hp(t,e.Kj()?2:1,e,null,null,-1,!1))}function b7(){b7=J;var t,e;for(Ex=Ot(B4,te,91,32,0,1),eS=Ot(B4,te,91,32,0,1),t=1,e=0;e<=18;e++)Ex[e]=WD(t),eS[e]=WD(L0(t,e)),t=ja(t,5);for(;eh)||e.q&&(r=e.C,h=r.c.c.a-r.o.a/2,s=r.n.a-n,s>h)))}function ngn(t,e){var n;Ar(e,"Partition preprocessing",1),n=u(Hl(Qi(oc(Qi(new kn(null,new Cn(t.a,16)),new AY),new QP),new V5),nb(new Ee,new ne,new tr,ct(ot(xl,1),se,132,0,[(j1(),Zl)]))),15),Ts(n.Oc(),new ZP),br(e)}function Xae(t){rrt();var e,n,r,s,o,h,d;for(n=new tb,s=new S(t.e.b);s.a1?t.e*=Xt(t.a):t.f/=Xt(t.a),Bon(t),qun(t),Tbn(t),Jt(t.b,(Z_(),UH),t.g)}function toe(t,e,n){var r,s,o,h,d,w;for(r=0,w=n,e||(r=n*(t.c.length-1),w*=-1),o=new S(t);o.a=0?(e||(e=new DT,r>0&&So(e,t.substr(0,r))),e.a+="\\",m8(e,n&Ns)):e&&m8(e,n&Ns);return e?e.a:t}function hgn(t){var e;if(!t.a)throw et(new Yo("IDataType class expected for layout option "+t.f));if(e=mrn(t.a),e==null)throw et(new Yo("Couldn't create new instance of property '"+t.f+"'. "+Zfe+(A0(cN),cN.k)+$kt));return u(e,414)}function Ist(t){var e,n,r,s,o;return o=t.eh(),o&&o.kh()&&(s=Xp(t,o),s!=o)?(n=t.Vg(),r=(e=t.Vg(),e>=0?t.Qg(null):t.eh().ih(t,-1-e,null,null)),t.Rg(u(s,49),n),r&&r.Fi(),t.Lg()&&t.Mg()&&n>-1&&Oi(t,new la(t,9,n,o,s)),s):o}function soe(t){var e,n,r,s,o,h,d,w;for(h=0,o=t.f.e,r=0;r>5,s>=t.d)return t.e<0;if(n=t.a[s],e=1<<(e&31),t.e<0){if(r=Tee(t),s>16)),15).Xc(o),d0&&(!(Pp(t.a.c)&&e.n.d)&&!(c8(t.a.c)&&e.n.b)&&(e.g.d+=b.Math.max(0,r/2-.5)),!(Pp(t.a.c)&&e.n.a)&&!(c8(t.a.c)&&e.n.c)&&(e.g.a-=r-1))}function coe(t){var e,n,r,s,o;if(s=new le,o=eue(t,s),e=u(K(t,(ie(),ul)),10),e)for(r=new S(e.j);r.a>e,o=t.m>>e|n<<22-e,s=t.l>>e|t.m<<22-e):e<44?(h=r?U0:0,o=n>>e-22,s=t.m>>e-22|n<<44-e):(h=r?U0:0,o=r?yl:0,s=n>>e-44),hu(s&yl,o&yl,h&U0)}function Ost(t){var e,n,r,s,o,h;for(this.c=new le,this.d=t,r=ms,s=ms,e=Rs,n=Rs,h=gi(t,0);h.b!=h.d.c;)o=u(di(h),8),r=b.Math.min(r,o.a),s=b.Math.min(s,o.b),e=b.Math.max(e,o.a),n=b.Math.max(n,o.b);this.a=new fh(r,s,e-r,n-s)}function hoe(t,e){var n,r,s,o,h,d;for(o=new S(t.b);o.a0&&Et(e,42)&&(t.a.qj(),k=u(e,42),w=k.cd(),o=w==null?0:ns(w),h=Mbt(t.a,o),n=t.a.d[h],n)){for(r=u(n.g,367),_=n.i,d=0;d<_;++d)if(s=r[d],s.Sh()==o&&s.Fb(k))return foe(t,k),!0}return!1}function wgn(t){var e,n,r,s;for(s=u(ji(t.a,(g4(),xV)),15).Kc();s.Ob();)r=u(s.Pb(),101),n=(e=N6(r.k),e.Hc((we(),Fn))?e.Hc(Wn)?e.Hc(Lr)?e.Hc(jn)?null:f2e:g2e:d2e:h2e),w8(t,r,n[0],(Xv(),Tw),0),w8(t,r,n[1],d2,1),w8(t,r,n[2],_w,1)}function mgn(t,e){var n,r;n=Wbn(e),G2n(t,e,n),vse(t.a,u(K(Qa(e.b),(ie(),Ix)),230)),wvn(t),Ufn(t,e),r=Ot(Br,oi,25,e.b.j.c.length,15,1),pat(t,e,(we(),Fn),r,n),pat(t,e,Wn,r,n),pat(t,e,Lr,r,n),pat(t,e,jn,r,n),t.a=null,t.c=null,t.b=null}function W4t(){W4t=J,bCt=(pz(),Aht),Jme=new vn(Skt,bCt),Qme=new vn(Akt,(Rn(),!0)),pe(-1),Kme=new vn(Lkt,pe(-1)),pe(-1),Yme=new vn(Mkt,pe(-1)),Zme=new vn(Dkt,!1),tye=new vn(Ikt,!0),Xme=new vn(dct,!1),eye=new vn(Okt,-1)}function K4t(t,e,n){switch(e){case 7:!t.e&&(t.e=new Tn(aa,t,7,4)),Ir(t.e),!t.e&&(t.e=new Tn(aa,t,7,4)),vs(t.e,u(n,14));return;case 8:!t.d&&(t.d=new Tn(aa,t,8,5)),Ir(t.d),!t.d&&(t.d=new Tn(aa,t,8,5)),vs(t.d,u(n,14));return}G3t(t,e,n)}function Y4t(t,e){var n,r,s,o,h;if(qt(e)===qt(t))return!0;if(!Et(e,15)||(h=u(e,15),t.gc()!=h.gc()))return!1;for(o=h.Kc(),r=t.Kc();r.Ob();)if(n=r.Pb(),s=o.Pb(),!(qt(n)===qt(s)||n!=null&&Ni(n,s)))return!1;return!0}function ygn(t,e){var n,r,s,o;for(o=u(Hl(oc(oc(new kn(null,new Cn(e.b,16)),new xL),new VP),nb(new Ee,new ne,new tr,ct(ot(xl,1),se,132,0,[(j1(),Zl)]))),15),o.Jc(new kL),n=0,s=o.Kc();s.Ob();)r=u(s.Pb(),11),r.p==-1&&Q4t(t,r,n++)}function doe(t){switch(t.g){case 0:return new uT;case 1:return new FJ;case 2:return new PJ;case 3:return new BVt;case 4:return new TKt;default:throw et(new Bn("No implementation is available for the node placer "+(t.f!=null?t.f:""+t.g)))}}function goe(t){switch(t.g){case 0:return new Avt;case 1:return new BJ;case 2:return new LJ;case 3:return new MJ;case 4:return new jVt;default:throw et(new Bn("No implementation is available for the cycle breaker "+(t.f!=null?t.f:""+t.g)))}}function X4t(){X4t=J,Nme=new vn(xkt,pe(0)),Pme=new vn(kkt,0),Z_t=(BD(),bG),Ime=new vn(lct,Z_t),pe(0),Dme=new vn(hct,pe(1)),tCt=(J$(),Sht),Fme=new vn(Ekt,tCt),eCt=(_$(),Eht),Bme=new vn(Tkt,eCt),J_t=(Pz(),Cht),Ome=new vn(_kt,J_t)}function xgn(t,e,n){var r;r=null,e&&(r=e.d),iC(t,new a8(e.n.a-r.b+n.a,e.n.b-r.d+n.b)),iC(t,new a8(e.n.a-r.b+n.a,e.n.b+e.o.b+r.a+n.b)),iC(t,new a8(e.n.a+e.o.a+r.c+n.a,e.n.b-r.d+n.b)),iC(t,new a8(e.n.a+e.o.a+r.c+n.a,e.n.b+e.o.b+r.a+n.b))}function Q4t(t,e,n){var r,s,o;for(e.p=n,o=jp(B1(ct(ot(G1,1),De,20,0,[new ca(e),new Fr(e)])));Zr(o);)r=u(qr(o),11),r.p==-1&&Q4t(t,r,n);if(e.i.k==(Kn(),ha))for(s=new S(e.i.j);s.a=2)for(n=s.Kc(),e=xe(n.Pb());n.Ob();)o=e,e=xe(n.Pb()),r=b.Math.min(r,(Pn(e),e-(Pn(o),o)));return r}function kgn(t,e){var n,r,s,o,h;r=new hs,Cs(r,e,r.c.b,r.c);do for(n=(ir(r.b!=0),u(bh(r,r.a.a),86)),t.b[n.g]=1,o=gi(n.d,0);o.b!=o.d.c;)s=u(di(o),188),h=s.c,t.b[h.g]==1?pi(t.a,s):t.b[h.g]==2?t.b[h.g]=1:Cs(r,h,r.c.b,r.c);while(r.b!=0)}function Egn(t,e){var n,r,s;if(qt(e)===qt(zr(t)))return!0;if(!Et(e,15)||(r=u(e,15),s=t.gc(),s!=r.gc()))return!1;if(Et(r,54)){for(n=0;n0&&(s=n),h=new S(t.f.e);h.a0?(e-=1,n-=1):r>=0&&s<0?(e+=1,n+=1):r>0&&s>=0?(e-=1,n+=1):(e+=1,n-=1),new _a(pe(e),pe(n))}function zgn(t,e){return t.ce.c?1:t.be.b?1:t.a!=e.a?ns(t.a)-ns(e.a):t.d==(D_(),AS)&&e.d==SS?-1:t.d==SS&&e.d==AS?1:0}function woe(t,e){var n,r,s,o,h;return o=e.a,o.c.i==e.b?h=o.d:h=o.c,o.c.i==e.b?r=o.c:r=o.d,s=pun(t.a,h,r),s>0&&s0):s<0&&-s0):!1}function qgn(t,e,n,r){var s,o,h,d,w,k,_,L;for(s=(e-t.d)/t.c.c.length,o=0,t.a+=n,t.d=e,L=new S(t.c);L.a>24;return h}function Vgn(t){if(t.pe()){var e=t.c;e.qe()?t.o="["+e.n:e.pe()?t.o="["+e.ne():t.o="[L"+e.ne()+";",t.b=e.me()+"[]",t.k=e.oe()+"[]";return}var n=t.j,r=t.d;r=r.split("/"),t.o=Bit(".",[n,Bit("$",r)]),t.b=Bit(".",[n,Bit(".",r)]),t.k=r[r.length-1]}function Ggn(t,e){var n,r,s,o,h;for(h=null,o=new S(t.e.a);o.a=0;e-=2)for(n=0;n<=e;n+=2)(t.b[n]>t.b[n+2]||t.b[n]===t.b[n+2]&&t.b[n+1]>t.b[n+3])&&(r=t.b[n+2],t.b[n+2]=t.b[n],t.b[n]=r,r=t.b[n+3],t.b[n+3]=t.b[n+1],t.b[n+1]=r);t.c=!0}}function moe(t,e){var n,r,s,o,h,d,w,k;for(h=e==1?jut:Rut,o=h.a.ec().Kc();o.Ob();)for(s=u(o.Pb(),103),w=u(ji(t.f.c,s),21).Kc();w.Ob();)switch(d=u(w.Pb(),46),r=u(d.b,81),k=u(d.a,189),n=k.c,s.g){case 2:case 1:r.g.d+=n;break;case 4:case 3:r.g.c+=n}}function Kgn(t,e){var n,r,s,o,h,d,w,k,_;for(k=-1,_=0,h=t,d=0,w=h.length;d0&&++_;++k}return _}function kf(t){var e,n;return n=new jl(Mp(t.gm)),n.a+="@",ni(n,(e=ns(t)>>>0,e.toString(16))),t.kh()?(n.a+=" (eProxyURI: ",Cc(n,t.qh()),t.$g()&&(n.a+=" eClass: ",Cc(n,t.$g())),n.a+=")"):t.$g()&&(n.a+=" (eClass: ",Cc(n,t.$g()),n.a+=")"),n.a}function uC(t){var e,n,r,s;if(t.e)throw et(new Yo((A0(wut),iot+wut.k+sot)));for(t.d==(xo(),h0)&&vq(t,Wh),n=new S(t.a.a);n.a>24}return n}function Qgn(t,e,n){var r,s,o;if(s=u(Ao(t.i,e),306),!s)if(s=new yte(t.d,e,n),O6(t.i,e,s),o3t(e))dYe(t.a,e.c,e.b,s);else switch(o=Rdn(e),r=u(Ao(t.p,o),244),o.g){case 1:case 3:s.j=!0,ztt(r,e.b,s);break;case 4:case 2:s.k=!0,ztt(r,e.c,s)}return s}function Zgn(t,e,n,r){var s,o,h,d,w,k;if(d=new J5,w=gu(t.e.Tg(),e),s=u(t.g,119),go(),u(e,66).Oj())for(h=0;h=0)return s;for(o=1,d=new S(e.j);d.a0&&e.ue((An(s-1,t.c.length),u(t.c[s-1],10)),o)>0;)gh(t,s,(An(s-1,t.c.length),u(t.c[s-1],10))),--s;An(s,t.c.length),t.c[s]=o}n.a=new Rr,n.b=new Rr}function Jgn(t,e,n){var r,s,o,h,d,w,k,_;for(_=(r=u(e.e&&e.e(),9),new hh(r,u(pf(r,r.length),9),0)),w=dy(n,"[\\[\\]\\s,]+"),o=w,h=0,d=o.length;h0&&(!(Pp(t.a.c)&&e.n.d)&&!(c8(t.a.c)&&e.n.b)&&(e.g.d-=b.Math.max(0,r/2-.5)),!(Pp(t.a.c)&&e.n.a)&&!(c8(t.a.c)&&e.n.c)&&(e.g.a+=b.Math.max(0,r-1)))}function Toe(t,e,n){var r,s;if((t.c-t.b&t.a.length-1)==2)e==(we(),Fn)||e==Wn?(F$(u(q_(t),15),(Wl(),f0)),F$(u(q_(t),15),y2)):(F$(u(q_(t),15),(Wl(),y2)),F$(u(q_(t),15),f0));else for(s=new T_(t);s.a!=s.b;)r=u(lz(s),15),F$(r,n)}function epn(t,e){var n,r,s,o,h,d,w;for(s=d8(new Qgt(t)),d=new Ca(s,s.c.length),o=d8(new Qgt(e)),w=new Ca(o,o.c.length),h=null;d.b>0&&w.b>0&&(n=(ir(d.b>0),u(d.a.Xb(d.c=--d.b),33)),r=(ir(w.b>0),u(w.a.Xb(w.c=--w.b),33)),n==r);)h=n;return h}function wl(t,e){var n,r,s,o,h,d;return o=t.a*tot+t.b*1502,d=t.b*tot+11,n=b.Math.floor(d*NI),o+=n,d-=n*w6t,o%=w6t,t.a=o,t.b=d,e<=24?b.Math.floor(t.a*i7t[e]):(s=t.a*(1<=2147483648&&(r-=Xat),r)}function _oe(t,e,n){var r,s,o,h;YXt(t,e)>YXt(t,n)?(r=uc(n,(we(),Wn)),t.d=r.dc()?0:dnt(u(r.Xb(0),11)),h=uc(e,jn),t.b=h.dc()?0:dnt(u(h.Xb(0),11))):(s=uc(n,(we(),jn)),t.d=s.dc()?0:dnt(u(s.Xb(0),11)),o=uc(e,Wn),t.b=o.dc()?0:dnt(u(o.Xb(0),11)))}function Coe(t){var e,n,r,s,o,h,d;if(t&&(e=t.Hh(Hh),e&&(h=Kr(e1((!e.b&&(e.b=new Ml((hn(),uo),xc,e)),e.b),"conversionDelegates")),h!=null))){for(d=new le,r=dy(h,"\\w+"),s=0,o=r.length;st.c));h++)s.a>=t.s&&(o<0&&(o=h),d=h);return w=(t.s+t.c)/2,o>=0&&(r=Rbn(t,e,o,d),w=WWe((An(r,e.c.length),u(e.c[r],329))),K0n(e,r,n)),w}function Fst(){Fst=J,nye=new po((Ti(),jx),1.3),wCt=wSt,_Ct=new Sv(15),uye=new po($b,_Ct),hye=new po(zb,15),rye=AG,aye=jb,oye=a5,cye=m2,sye=s5,kCt=KO,lye=Uy,TCt=(W4t(),Jme),xCt=Qme,ECt=Zme,CCt=tye,mCt=Xme,yCt=LG,iye=ySt,BO=Yme,vCt=Kme,SCt=eye}function Vr(t,e,n){var r,s,o,h,d,w,k;for(h=(o=new VF,o),Nmt(h,(Pn(e),e)),k=(!h.b&&(h.b=new Ml((hn(),uo),xc,h)),h.b),w=1;w0&&Dmn(this,s)}function t5t(t,e,n,r,s,o){var h,d,w;if(!s[e.b]){for(s[e.b]=!0,h=r,!h&&(h=new v$),ue(h.e,e),w=o[e.b].Kc();w.Ob();)d=u(w.Pb(),282),!(d.d==n||d.c==n)&&(d.c!=e&&t5t(t,d.c,e,h,s,o),d.d!=e&&t5t(t,d.d,e,h,s,o),ue(h.c,d),Hs(h.d,d.b));return h}return null}function ipn(t){var e,n,r,s,o,h,d;for(e=0,s=new S(t.e);s.a=2}function spn(t,e){var n,r,s,o;for(Ar(e,"Self-Loop pre-processing",1),r=new S(t.a);r.a1||(e=Zi(Lf,ct(ot(_o,1),se,93,0,[Z0,Mf])),SD(n$(e,t))>1)||(r=Zi(If,ct(ot(_o,1),se,93,0,[d0,Yh])),SD(n$(r,t))>1))}function cpn(t,e){var n,r,s;return n=e.Hh(t.a),n&&(s=Kr(e1((!n.b&&(n.b=new Ml((hn(),uo),xc,n)),n.b),"affiliation")),s!=null)?(r=ij(s,Nu(35)),r==-1?Eit(t,b_(t,Vl(e.Hj())),s):r==0?Eit(t,null,s.substr(1)):Eit(t,s.substr(0,r),s.substr(r+1))):null}function upn(t){var e,n,r;try{return t==null?Pu:Jo(t)}catch(s){if(s=os(s),Et(s,102))return e=s,r=Mp(bl(t))+"@"+(n=(Gd(),d3t(t)>>>0),n.toString(16)),Qun(Xan(),(s8(),"Exception during lenientFormat for "+r),e),"<"+r+" threw "+Mp(e.gm)+">";throw et(s)}}function Loe(t){switch(t.g){case 0:return new IJ;case 1:return new kB;case 2:return new DHt;case 3:return new DL;case 4:return new ZUt;case 5:return new OJ;default:throw et(new Bn("No implementation is available for the layerer "+(t.f!=null?t.f:""+t.g)))}}function e5t(t,e,n){var r,s,o;for(o=new S(t.t);o.a0&&(r.b.n-=r.c,r.b.n<=0&&r.b.u>0&&pi(e,r.b));for(s=new S(t.i);s.a0&&(r.a.u-=r.c,r.a.u<=0&&r.a.n>0&&pi(n,r.a))}function Qz(t){var e,n,r,s,o;if(t.g==null&&(t.d=t.si(t.f),Hr(t,t.d),t.c))return o=t.f,o;if(e=u(t.g[t.i-1],47),s=e.Pb(),t.e=e,n=t.si(s),n.Ob())t.d=n,Hr(t,n);else for(t.d=null;!e.Ob()&&(ds(t.g,--t.i,null),t.i!=0);)r=u(t.g[t.i-1],47),e=r;return s}function lpn(t,e){var n,r,s,o,h,d;if(r=e,s=r.ak(),V0(t.e,s)){if(s.hi()&&d$(t,s,r.dd()))return!1}else for(d=gu(t.e.Tg(),s),n=u(t.g,119),o=0;o1||n>1)return 2;return e+n==1?2:0}function Doe(t,e,n){var r,s,o,h,d;for(Ar(n,"ELK Force",1),Re(Be(ze(e,(i1(),W7t))))||t$((r=new fr((Lm(),new _m(e))),r)),d=one(e),Phn(d),gon(t,u(K(d,U7t),424)),h=yue(t.a,d),o=h.Kc();o.Ob();)s=u(o.Pb(),231),Xbn(t.b,s,Kc(n,1/h.gc()));d=Ole(h),Mle(d),br(n)}function vpn(t,e){var n,r,s,o,h;if(Ar(e,"Breaking Point Processor",1),Byn(t),Re(Be(K(t,(Ce(),t_t))))){for(s=new S(t.b);s.a=0?t._g(r,!0,!0):ow(t,o,!0),153)),u(s,215).ml(e,n)}else throw et(new Bn(c2+e.ne()+zC))}function xpn(t,e){var n,r,s,o,h;for(n=new le,s=oc(new kn(null,new Cn(t,16)),new LQ),o=oc(new kn(null,new Cn(t,16)),new MQ),h=Kin(uin(Vj(t2n(ct(ot(M4n,1),De,833,0,[s,o])),new DQ))),r=1;r=2*e&&ue(n,new cnt(h[r-1]+e,h[r]-e));return n}function kpn(t,e,n){Ar(n,"Eades radial",1),n.n&&e&&vf(n,wf(e),(Pl(),rh)),t.d=u(ze(e,(l_(),NS)),33),t.c=Xt(xe(ze(e,(iy(),wG)))),t.e=Uit(u(ze(e,FO),293)),t.a=eun(u(ze(e,iCt),426)),t.b=Efn(u(ze(e,rCt),340)),rfn(t),n.n&&e&&vf(n,wf(e),(Pl(),rh))}function Epn(t,e,n){var r,s,o,h,d,w,k,_;if(n)for(o=n.a.length,r=new Y2(o),d=(r.b-r.a)*r.c<0?(Op(),M2):new Bp(r);d.Ob();)h=u(d.Pb(),19),s=C8(n,h.a),s&&(w=xrn(t,(k=(xv(),_=new wpt,_),e&&i5t(k,e),k),s),F_(w,I0(s,Dd)),Vz(s,w),A4t(s,w),ait(t,s,w))}function Jz(t){var e,n,r,s,o,h;if(!t.j){if(h=new GE,e=tA,o=e.a.zc(t,e),o==null){for(r=new lr(zo(t));r.e!=r.i.gc();)n=u(kr(r),26),s=Jz(n),vs(h,s),Hr(h,n);e.a.Bc(t)!=null}Jm(h),t.j=new q3((u(St(Ut((zp(),Ln).o),11),18),h.i),h.g),gl(t).b&=-33}return t.j}function Tpn(t){var e,n,r,s;if(t==null)return null;if(r=Xc(t,!0),s=eO.length,ln(r.substr(r.length-s,s),eO)){if(n=r.length,n==4){if(e=(Yr(0,r.length),r.charCodeAt(0)),e==43)return ZAt;if(e==45)return B4e}else if(n==3)return ZAt}return new opt(r)}function _pn(t){var e,n,r;return n=t.l,n&n-1||(r=t.m,r&r-1)||(e=t.h,e&e-1)||e==0&&r==0&&n==0?-1:e==0&&r==0&&n!=0?Smt(n):e==0&&r!=0&&n==0?Smt(r)+22:e!=0&&r==0&&n==0?Smt(e)+44:-1}function Cpn(t,e){var n,r,s,o,h;for(Ar(e,"Edge joining",1),n=Re(Be(K(t,(Ce(),Vlt)))),s=new S(t.b);s.a1)for(s=new S(t.a);s.a0),o.a.Xb(o.c=--o.b),Fm(o,s),ir(o.b3&&Jd(t,0,e-3))}function Mpn(t){var e,n,r,s;return qt(K(t,(Ce(),By)))===qt((j0(),Qg))?!t.e&&qt(K(t,_O))!==qt((W8(),wO)):(r=u(K(t,Ilt),292),s=Re(Be(K(t,Olt)))||qt(K(t,vS))===qt((K6(),vO)),e=u(K(t,vTt),19).a,n=t.a.c.length,!s&&r!=(W8(),wO)&&(e==0||e>n))}function Dpn(t){var e,n;for(n=0;n0);n++);if(n>0&&n0);e++);return e>0&&n>16!=6&&e){if(l7(t,e))throw et(new Bn(qC+Qae(t)));r=null,t.Cb&&(r=(n=t.Db>>16,n>=0?M3t(t,r):t.Cb.ih(t,-1-n,null,r))),e&&(r=tx(e,t,6,r)),r=Abt(t,e,r),r&&r.Fi()}else t.Db&4&&!(t.Db&1)&&Oi(t,new la(t,1,6,e,e))}function i5t(t,e){var n,r;if(e!=t.Cb||t.Db>>16!=9&&e){if(l7(t,e))throw et(new Bn(qC+Oce(t)));r=null,t.Cb&&(r=(n=t.Db>>16,n>=0?I3t(t,r):t.Cb.ih(t,-1-n,null,r))),e&&(r=tx(e,t,9,r)),r=Lbt(t,e,r),r&&r.Fi()}else t.Db&4&&!(t.Db&1)&&Oi(t,new la(t,1,9,e,e))}function Rst(t,e){var n,r;if(e!=t.Cb||t.Db>>16!=3&&e){if(l7(t,e))throw et(new Bn(qC+Iue(t)));r=null,t.Cb&&(r=(n=t.Db>>16,n>=0?N3t(t,r):t.Cb.ih(t,-1-n,null,r))),e&&(r=tx(e,t,12,r)),r=Sbt(t,e,r),r&&r.Fi()}else t.Db&4&&!(t.Db&1)&&Oi(t,new la(t,1,3,e,e))}function m7(t){var e,n,r,s,o;if(r=Bh(t),o=t.j,o==null&&r)return t.$j()?null:r.zj();if(Et(r,148)){if(n=r.Aj(),n&&(s=n.Nh(),s!=t.i)){if(e=u(r,148),e.Ej())try{t.g=s.Kh(e,o)}catch(h){if(h=os(h),Et(h,78))t.g=null;else throw et(h)}t.i=s}return t.g}return null}function Noe(t){var e;return e=new le,ue(e,new E6(new je(t.c,t.d),new je(t.c+t.b,t.d))),ue(e,new E6(new je(t.c,t.d),new je(t.c,t.d+t.a))),ue(e,new E6(new je(t.c+t.b,t.d+t.a),new je(t.c+t.b,t.d))),ue(e,new E6(new je(t.c+t.b,t.d+t.a),new je(t.c,t.d+t.a))),e}function Poe(t,e,n,r){var s,o,h;if(h=q3t(e,n),r.c[r.c.length]=e,t.j[h.p]==-1||t.j[h.p]==2||t.a[e.p])return r;for(t.j[h.p]=-1,o=new pr(mr($0(h).a.Kc(),new H));Zr(o);)if(s=u(qr(o),17),!(!(!ro(s)&&!(!ro(s)&&s.c.i.c==s.d.i.c))||s==e))return Poe(t,s,h,r);return r}function Ipn(t,e,n){var r,s,o;for(o=e.a.ec().Kc();o.Ob();)s=u(o.Pb(),79),r=u(or(t.b,s),266),!r&&(gs(e0(s))==gs(Zp(s))?W2n(t,s,n):e0(s)==gs(Zp(s))?or(t.c,s)==null&&or(t.b,Zp(s))!=null&&gle(t,s,n,!1):or(t.d,s)==null&&or(t.b,e0(s))!=null&&gle(t,s,n,!0))}function Opn(t,e){var n,r,s,o,h,d,w;for(s=t.Kc();s.Ob();)for(r=u(s.Pb(),10),d=new zc,ac(d,r),Qs(d,(we(),Wn)),Jt(d,(ie(),FV),(Rn(),!0)),h=e.Kc();h.Ob();)o=u(h.Pb(),10),w=new zc,ac(w,o),Qs(w,jn),Jt(w,FV,!0),n=new Rv,Jt(n,FV,!0),Ua(n,d),ma(n,w)}function Npn(t,e,n,r){var s,o,h,d;s=Mre(t,e,n),o=Mre(t,n,e),h=u(or(t.c,e),112),d=u(or(t.c,n),112),sr.b.g&&(o.c[o.c.length]=r);return o}function y7(){y7=J,n5=new _M("CANDIDATE_POSITION_LAST_PLACED_RIGHT",0),Bx=new _M("CANDIDATE_POSITION_LAST_PLACED_BELOW",1),FS=new _M("CANDIDATE_POSITION_WHOLE_DRAWING_RIGHT",2),PS=new _M("CANDIDATE_POSITION_WHOLE_DRAWING_BELOW",3),BS=new _M("WHOLE_DRAWING",4)}function Ppn(t,e){if(Et(e,239))return hcn(t,u(e,33));if(Et(e,186))return Tcn(t,u(e,118));if(Et(e,354))return Btn(t,u(e,137));if(Et(e,352))return own(t,u(e,79));if(e)return null;throw et(new Bn(n8t+Jp(new Al(ct(ot(nr,1),De,1,5,[e])))))}function Fpn(t){var e,n,r,s,o,h,d;for(o=new hs,s=new S(t.d.a);s.a1)for(e=Lv((n=new V2,++t.b,n),t.d),d=gi(o,0);d.b!=d.d.c;)h=u(di(d),121),Ef(df(ff(gf(hf(new Dh,1),0),e),h))}function s5t(t,e){var n,r;if(e!=t.Cb||t.Db>>16!=11&&e){if(l7(t,e))throw et(new Bn(qC+E5t(t)));r=null,t.Cb&&(r=(n=t.Db>>16,n>=0?P3t(t,r):t.Cb.ih(t,-1-n,null,r))),e&&(r=tx(e,t,10,r)),r=Bbt(t,e,r),r&&r.Fi()}else t.Db&4&&!(t.Db&1)&&Oi(t,new la(t,1,11,e,e))}function Bpn(t){var e,n,r,s;for(r=new ub(new vg(t.b).a);r.b;)n=Uv(r),s=u(n.cd(),11),e=u(n.dd(),10),Jt(e,(ie(),Bi),s),Jt(s,ul,e),Jt(s,xO,(Rn(),!0)),Qs(s,u(K(e,yc),61)),K(e,yc),Jt(s.i,(Ce(),xs),(xa(),L9)),u(K(Qa(s.i),tu),21).Fc((ko(),f9))}function Rpn(t,e,n){var r,s,o,h,d,w;if(o=0,h=0,t.c)for(w=new S(t.d.i.j);w.ao.a?-1:s.aw){for(_=t.d,t.d=Ot(EAt,h8t,63,2*w+4,0,1),o=0;o=9223372036854776e3?(N8(),I8t):(s=!1,t<0&&(s=!0,t=-t),r=0,t>=mb&&(r=Ms(t/mb),t-=r*mb),n=0,t>=hx&&(n=Ms(t/hx),t-=n*hx),e=Ms(t),o=hu(e,n,r),s&&sit(o),o)}function Kpn(t,e){var n,r,s,o;for(n=!e||!t.u.Hc((cl(),J0)),o=0,s=new S(t.e.Cf());s.a=-e&&r==e?new _a(pe(n-1),pe(r)):new _a(pe(n),pe(r-1))}function $oe(){return vo(),ct(ot(R4n,1),se,77,0,[C9t,E9t,sS,Gut,G9t,sV,pV,r9,H9t,N9t,z9t,n9,V9t,D9t,U9t,v9t,uV,Uut,rV,fV,K9t,hV,w9t,q9t,Y9t,dV,W9t,iV,A9t,j9t,R9t,bV,x9t,nV,oV,y9t,e9,F9t,I9t,$9t,aS,T9t,k9t,B9t,O9t,cV,gV,m9t,lV,P9t,aV,L9t,S9t,pO,eV,M9t,_9t])}function Zpn(t,e,n){t.d=0,t.b=0,e.k==(Kn(),Jc)&&n.k==Jc&&u(K(e,(ie(),Bi)),10)==u(K(n,Bi),10)&&(Irt(e).j==(we(),Fn)?_oe(t,e,n):_oe(t,n,e)),e.k==Jc&&n.k==ha?Irt(e).j==(we(),Fn)?t.d=1:t.b=1:n.k==Jc&&e.k==ha&&(Irt(n).j==(we(),Fn)?t.b=1:t.d=1),jln(t,e,n)}function Jpn(t){var e,n,r,s,o,h,d,w,k,_,L;return L=i4t(t),e=t.a,w=e!=null,w&&p8(L,"category",t.a),s=hM(new km(t.d)),h=!s,h&&(k=new pg,Jf(L,"knownOptions",k),n=new A$t(k),Oa(new km(t.d),n)),o=hM(t.g),d=!o,d&&(_=new pg,Jf(L,"supportedFeatures",_),r=new L$t(_),Oa(t.g,r)),L}function t2n(t){var e,n,r,s,o,h,d,w,k;for(r=!1,e=336,n=0,o=new qUt(t.length),d=t,w=0,k=d.length;w>16!=7&&e){if(l7(t,e))throw et(new Bn(qC+Wse(t)));r=null,t.Cb&&(r=(n=t.Db>>16,n>=0?D3t(t,r):t.Cb.ih(t,-1-n,null,r))),e&&(r=u(e,49).gh(t,1,iN,r)),r=Lvt(t,e,r),r&&r.Fi()}else t.Db&4&&!(t.Db&1)&&Oi(t,new la(t,1,7,e,e))}function zoe(t,e){var n,r;if(e!=t.Cb||t.Db>>16!=3&&e){if(l7(t,e))throw et(new Bn(qC+nre(t)));r=null,t.Cb&&(r=(n=t.Db>>16,n>=0?O3t(t,r):t.Cb.ih(t,-1-n,null,r))),e&&(r=u(e,49).gh(t,0,aN,r)),r=Mvt(t,e,r),r&&r.Fi()}else t.Db&4&&!(t.Db&1)&&Oi(t,new la(t,1,3,e,e))}function $st(t,e){b7();var n,r,s,o,h,d,w,k,_;return e.d>t.d&&(d=t,t=e,e=d),e.d<63?V2n(t,e):(h=(t.d&-2)<<4,k=Hwt(t,h),_=Hwt(e,h),r=nat(t,H6(k,h)),s=nat(e,H6(_,h)),w=$st(k,_),n=$st(r,s),o=$st(nat(k,r),nat(s,_)),o=lat(lat(o,w),n),o=H6(o,h),w=H6(w,h<<1),lat(lat(w,o),n))}function n2n(t,e,n){var r,s,o,h,d;for(h=G_(t,n),d=Ot(l0,$g,10,e.length,0,1),r=0,o=h.Kc();o.Ob();)s=u(o.Pb(),11),Re(Be(K(s,(ie(),xO))))&&(d[r++]=u(K(s,ul),10));if(r=0;o+=n?1:-1)h=h|e.c.Sf(w,o,n,r&&!Re(Be(K(e.j,(ie(),Sw))))&&!Re(Be(K(e.j,(ie(),K4))))),h=h|e.q._f(w,o,n),h=h|Cce(t,w[o],n,r);return Ys(t.c,e),h}function eq(t,e,n){var r,s,o,h,d,w,k,_,L,F;for(_=_Qt(t.j),L=0,F=_.length;L1&&(t.a=!0),wJe(u(n.b,65),$i(pc(u(e.b,65).c),pd(ba(pc(u(n.b,65).a),u(e.b,65).a),s))),jXt(t,e),qoe(t,n)}function Hoe(t){var e,n,r,s,o,h,d;for(o=new S(t.a.a);o.a0&&o>0?h.p=e++:r>0?h.p=n++:o>0?h.p=s++:h.p=n++}pn(),ua(t.j,new _L)}function o2n(t){var e,n;n=null,e=u(Fe(t.g,0),17);do{if(n=e.d.i,ia(n,(ie(),Uh)))return u(K(n,Uh),11).i;if(n.k!=(Kn(),Ws)&&Zr(new pr(mr(Gs(n).a.Kc(),new H))))e=u(qr(new pr(mr(Gs(n).a.Kc(),new H))),17);else if(n.k!=Ws)return null}while(n&&n.k!=(Kn(),Ws));return n}function c2n(t,e){var n,r,s,o,h,d,w,k,_;for(d=e.j,h=e.g,w=u(Fe(d,d.c.length-1),113),_=(An(0,d.c.length),u(d.c[0],113)),k=sst(t,h,w,_),o=1;ok&&(w=n,_=s,k=r);e.a=_,e.c=w}function u2n(t,e){var n,r;if(r=KM(t.b,e.b),!r)throw et(new Yo("Invalid hitboxes for scanline constraint calculation."));(Xee(e.b,u(uXe(t.b,e.b),57))||Xee(e.b,u(cXe(t.b,e.b),57)))&&(Gd(),e.b+""),t.a[e.b.f]=u(nnt(t.b,e.b),57),n=u(ent(t.b,e.b),57),n&&(t.a[n.f]=e.b)}function Ef(t){if(!t.a.d||!t.a.e)throw et(new Yo((A0(ige),ige.k+" must have a source and target "+(A0(O7t),O7t.k)+" specified.")));if(t.a.d==t.a.e)throw et(new Yo("Network simplex does not support self-loops: "+t.a+" "+t.a.d+" "+t.a.e));return aj(t.a.d.g,t.a),aj(t.a.e.b,t.a),t.a}function l2n(t,e,n){var r,s,o,h,d,w,k;for(k=new Dp(new Sjt(t)),h=ct(ot(Gpe,1),rfe,11,0,[e,n]),d=0,w=h.length;dw-t.b&&dw-t.a&&d0&&++q;++F}return q}function y2n(t,e){var n,r,s,o,h;for(h=u(K(e,(cw(),$_t)),425),o=gi(e.b,0);o.b!=o.d.c;)if(s=u(di(o),86),t.b[s.g]==0){switch(h.g){case 0:vie(t,s);break;case 1:kgn(t,s)}t.b[s.g]=2}for(r=gi(t.a,0);r.b!=r.d.c;)n=u(di(r),188),ey(n.b.d,n,!0),ey(n.c.b,n,!0);Jt(e,(Sc(),O_t),t.a)}function gu(t,e){go();var n,r,s,o;return e?e==(Vi(),P4e)||(e==E4e||e==Vb||e==k4e)&&t!=XAt?new e6t(t,e):(r=u(e,677),n=r.pk(),n||(k8(Bo((Yu(),Pa),e)),n=r.pk()),o=(!n.i&&(n.i=new Rr),n.i),s=u(gc(qo(o.f,t)),1942),!s&&Pi(o,t,s=new e6t(t,e)),s):m4e}function x2n(t,e){var n,r,s,o,h,d,w,k,_;for(w=u(K(t,(ie(),Bi)),11),k=cc(ct(ot(sa,1),te,8,0,[w.i.n,w.n,w.a])).a,_=t.i.n.b,n=yd(t.e),s=n,o=0,h=s.length;o0?o.a?(d=o.b.rf().a,n>d&&(s=(n-d)/2,o.d.b=s,o.d.c=s)):o.d.c=t.s+n:w_(t.u)&&(r=s4t(o.b),r.c<0&&(o.d.b=-r.c),r.c+r.b>o.b.rf().a&&(o.d.c=r.c+r.b-o.b.rf().a))}function _2n(t,e){var n,r,s,o;for(Ar(e,"Semi-Interactive Crossing Minimization Processor",1),n=!1,s=new S(t.b);s.a=0){if(e==n)return new _a(pe(-e-1),pe(-e-1));if(e==-n)return new _a(pe(-e),pe(n+1))}return b.Math.abs(e)>b.Math.abs(n)?e<0?new _a(pe(-e),pe(n)):new _a(pe(-e),pe(n+1)):new _a(pe(e+1),pe(n))}function A2n(t){var e,n;n=u(K(t,(Ce(),bu)),163),e=u(K(t,(ie(),Db)),303),n==(mh(),g2)?(Jt(t,bu,TO),Jt(t,Db,(F0(),U4))):n==Ny?(Jt(t,bu,TO),Jt(t,Db,(F0(),Sx))):e==(F0(),U4)?(Jt(t,bu,g2),Jt(t,Db,mO)):e==Sx&&(Jt(t,bu,Ny),Jt(t,Db,mO))}function nq(){nq=J,OO=new bQ,Vwe=Mi(new ra,(so(),pu),(vo(),rV)),Wwe=sl(Mi(new ra,pu,hV),Go,lV),Kwe=rw(rw(TR(sl(Mi(new ra,Nd,pV),Go,gV),Zc),dV),bV),Gwe=sl(Mi(Mi(Mi(new ra,f2,sV),Zc,oV),Zc,e9),Go,aV),Uwe=sl(Mi(Mi(new ra,Zc,e9),Zc,nV),Go,eV)}function lC(){lC=J,Qwe=Mi(sl(new ra,(so(),Go),(vo(),L9t)),pu,rV),eme=rw(rw(TR(sl(Mi(new ra,Nd,pV),Go,gV),Zc),dV),bV),Zwe=sl(Mi(Mi(Mi(new ra,f2,sV),Zc,oV),Zc,e9),Go,aV),tme=Mi(Mi(new ra,pu,hV),Go,lV),Jwe=sl(Mi(Mi(new ra,Zc,e9),Zc,nV),Go,eV)}function L2n(t,e,n,r,s){var o,h;(!ro(e)&&e.c.i.c==e.d.i.c||!iee(cc(ct(ot(sa,1),te,8,0,[s.i.n,s.n,s.a])),n))&&!ro(e)&&(e.c==s?h8(e.a,0,new No(n)):pi(e.a,new No(n)),r&&!C0(t.a,n)&&(h=u(K(e,(Ce(),$o)),74),h||(h=new Hu,Jt(e,$o,h)),o=new No(n),Cs(h,o,h.c.b,h.c),Ys(t.a,o)))}function M2n(t){var e,n;for(n=new pr(mr(Zo(t).a.Kc(),new H));Zr(n);)if(e=u(qr(n),17),e.c.i.k!=(Kn(),Bl))throw et(new F3(Cot+QD(t)+"' has its layer constraint set to FIRST, but has at least one incoming edge that does not come from a FIRST_SEPARATE node. That must not happen."))}function D2n(t,e,n){var r,s,o,h,d,w,k;if(s=cre(t.Db&254),s==0)t.Eb=n;else{if(s==1)d=Ot(nr,De,1,2,5,1),o=ist(t,e),o==0?(d[0]=n,d[1]=t.Eb):(d[0]=t.Eb,d[1]=n);else for(d=Ot(nr,De,1,s+1,5,1),h=rb(t.Eb),r=2,w=0,k=0;r<=128;r<<=1)r==e?d[k++]=n:t.Db&r&&(d[k++]=h[w++]);t.Eb=d}t.Db|=e}function Goe(t,e,n){var r,s,o,h;for(this.b=new le,s=0,r=0,h=new S(t);h.a0&&(o=u(Fe(this.b,0),167),s+=o.o,r+=o.p),s*=2,r*=2,e>1?s=Ms(b.Math.ceil(s*e)):r=Ms(b.Math.ceil(r/e)),this.a=new Zyt(s,r)}function Uoe(t,e,n,r,s,o){var h,d,w,k,_,L,F,q,G,W,Z,bt;for(_=r,e.j&&e.o?(q=u(or(t.f,e.A),57),W=q.d.c+q.d.b,--_):W=e.a.c+e.a.b,L=s,n.q&&n.o?(q=u(or(t.f,n.C),57),k=q.d.c,++L):k=n.a.c,Z=k-W,w=b.Math.max(2,L-_),d=Z/w,G=W+d,F=_;F=0;h+=s?1:-1){for(d=e[h],w=r==(we(),Wn)?s?uc(d,r):ib(uc(d,r)):s?ib(uc(d,r)):uc(d,r),o&&(t.c[d.p]=w.gc()),L=w.Kc();L.Ob();)_=u(L.Pb(),11),t.d[_.p]=k++;Hs(n,w)}}function Woe(t,e,n){var r,s,o,h,d,w,k,_;for(o=Xt(xe(t.b.Kc().Pb())),k=Xt(xe($an(e.b))),r=pd(pc(t.a),k-n),s=pd(pc(e.a),n-o),_=$i(r,s),pd(_,1/(k-o)),this.a=_,this.b=new le,d=!0,h=t.b.Kc(),h.Pb();h.Ob();)w=Xt(xe(h.Pb())),d&&w-n>act&&(this.b.Fc(n),d=!1),this.b.Fc(w);d&&this.b.Fc(n)}function I2n(t){var e,n,r,s;if(Hbn(t,t.n),t.d.c.length>0){for(LT(t.c);V4t(t,u(Q(new S(t.e.a)),121))>5,e&=31,r>=t.d)return t.e<0?(e2(),gut):(e2(),Q7);if(o=t.d-r,s=Ot(Br,oi,25,o+1,15,1),_dn(s,o,t.a,r,e),t.e<0){for(n=0;n0&&t.a[n]<<32-e){for(n=0;n=0?!1:(n=E4((Yu(),Pa),s,e),n?(r=n.Zj(),(r>1||r==-1)&&Bv(Bo(Pa,n))!=3):!0)):!1}function F2n(t,e,n,r){var s,o,h,d,w;return d=Vo(u(St((!e.b&&(e.b=new Tn(Cr,e,4,7)),e.b),0),82)),w=Vo(u(St((!e.c&&(e.c=new Tn(Cr,e,5,8)),e.c),0),82)),gs(d)==gs(w)||Xm(w,d)?null:(h=nD(e),h==n?r:(o=u(or(t.a,h),10),o&&(s=o.e,s)?s:null))}function B2n(t,e){var n;switch(n=u(K(t,(Ce(),HV)),276),Ar(e,"Label side selection ("+n+")",1),n.g){case 0:hoe(t,(Wl(),f0));break;case 1:hoe(t,(Wl(),y2));break;case 2:Cue(t,(Wl(),f0));break;case 3:Cue(t,(Wl(),y2));break;case 4:oce(t,(Wl(),f0));break;case 5:oce(t,(Wl(),y2))}br(e)}function f5t(t,e,n){var r,s,o,h,d,w;if(r=kWe(n,t.length),h=t[r],h[0].k==(Kn(),Fs))for(o=hqt(n,h.length),w=e.j,s=0;s0&&(n[0]+=t.d,h-=n[0]),n[2]>0&&(n[2]+=t.d,h-=n[2]),o=b.Math.max(0,h),n[1]=b.Math.max(n[1],h),Gwt(t,uu,s.c+r.b+n[0]-(n[1]-h)/2,n),e==uu&&(t.c.b=o,t.c.c=s.c+r.b+(o-h)/2)}function ice(){this.c=Ot(wa,Do,25,(we(),ct(ot(co,1),Nc,61,0,[fc,Fn,Wn,Lr,jn])).length,15,1),this.b=Ot(wa,Do,25,ct(ot(co,1),Nc,61,0,[fc,Fn,Wn,Lr,jn]).length,15,1),this.a=Ot(wa,Do,25,ct(ot(co,1),Nc,61,0,[fc,Fn,Wn,Lr,jn]).length,15,1),e2t(this.c,ms),e2t(this.b,Rs),e2t(this.a,Rs)}function Yc(t,e,n){var r,s,o,h;if(e<=n?(s=e,o=n):(s=n,o=e),r=0,t.b==null)t.b=Ot(Br,oi,25,2,15,1),t.b[0]=s,t.b[1]=o,t.c=!0;else{if(r=t.b.length,t.b[r-1]+1==s){t.b[r-1]=o;return}h=Ot(Br,oi,25,r+2,15,1),qc(t.b,0,h,0,r),t.b=h,t.b[r-1]>=s&&(t.c=!1,t.a=!1),t.b[r++]=s,t.b[r]=o,t.c||b4(t)}}function G2n(t,e,n){var r,s,o,h,d,w,k;for(k=e.d,t.a=new iu(k.c.length),t.c=new Rr,d=new S(k);d.a=0?t._g(k,!1,!0):ow(t,n,!1),58));t:for(o=L.Kc();o.Ob();){for(s=u(o.Pb(),56),_=0;_1;)hy(s,s.i-1);return r}function X2n(t,e){var n,r,s,o,h,d,w;for(Ar(e,"Comment post-processing",1),o=new S(t.b);o.at.d[h.p]&&(n+=jwt(t.b,o),Vp(t.a,pe(o)));for(;!AT(t.a);)bmt(t.b,u(P6(t.a),19).a)}return n}function cce(t,e,n){var r,s,o,h;for(o=(!e.a&&(e.a=new he(bs,e,10,11)),e.a).i,s=new lr((!e.a&&(e.a=new he(bs,e,10,11)),e.a));s.e!=s.i.gc();)r=u(kr(s),33),(!r.a&&(r.a=new he(bs,r,10,11)),r.a).i==0||(o+=cce(t,r,!1));if(n)for(h=gs(e);h;)o+=(!h.a&&(h.a=new he(bs,h,10,11)),h.a).i,h=gs(h);return o}function hy(t,e){var n,r,s,o;return t.ej()?(r=null,s=t.fj(),t.ij()&&(r=t.kj(t.pi(e),null)),n=t.Zi(4,o=nx(t,e),null,e,s),t.bj()&&o!=null&&(r=t.dj(o,r)),r?(r.Ei(n),r.Fi()):t.$i(n),o):(o=nx(t,e),t.bj()&&o!=null&&(r=t.dj(o,null),r&&r.Fi()),o)}function Z2n(t){var e,n,r,s,o,h,d,w,k,_;for(k=t.a,e=new na,w=0,r=new S(t.d);r.ad.d&&(_=d.d+d.a+k));n.c.d=_,e.a.zc(n,e),w=b.Math.max(w,n.c.d+n.c.a)}return w}function ko(){ko=J,LV=new Mm("COMMENTS",0),Th=new Mm("EXTERNAL_PORTS",1),hS=new Mm("HYPEREDGES",2),MV=new Mm("HYPERNODES",3),f9=new Mm("NON_FREE_PORTS",4),G4=new Mm("NORTH_SOUTH_PORTS",5),fS=new Mm(kfe,6),l9=new Mm("CENTER_LABELS",7),h9=new Mm("END_LABELS",8),DV=new Mm("PARTITIONS",9)}function fy(t){var e,n,r,s,o;for(s=new le,e=new g_((!t.a&&(t.a=new he(bs,t,10,11)),t.a)),r=new pr(mr(H0(t).a.Kc(),new H));Zr(r);)n=u(qr(r),79),Et(St((!n.b&&(n.b=new Tn(Cr,n,4,7)),n.b),0),186)||(o=Vo(u(St((!n.c&&(n.c=new Tn(Cr,n,5,8)),n.c),0),82)),e.a._b(o)||(s.c[s.c.length]=o));return s}function J2n(t){var e,n,r,s,o,h;for(o=new na,e=new g_((!t.a&&(t.a=new he(bs,t,10,11)),t.a)),s=new pr(mr(H0(t).a.Kc(),new H));Zr(s);)r=u(qr(s),79),Et(St((!r.b&&(r.b=new Tn(Cr,r,4,7)),r.b),0),186)||(h=Vo(u(St((!r.c&&(r.c=new Tn(Cr,r,5,8)),r.c),0),82)),e.a._b(h)||(n=o.a.zc(h,o),n==null));return o}function tbn(t,e,n,r,s){return r<0?(r=p4(t,s,ct(ot(Me,1),te,2,6,[Aat,Lat,Mat,Dat,ux,Iat,Oat,Nat,Pat,Fat,Bat,Rat]),e),r<0&&(r=p4(t,s,ct(ot(Me,1),te,2,6,["Jan","Feb","Mar","Apr",ux,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),e)),r<0?!1:(n.k=r,!0)):r>0?(n.k=r-1,!0):!1}function ebn(t,e,n,r,s){return r<0?(r=p4(t,s,ct(ot(Me,1),te,2,6,[Aat,Lat,Mat,Dat,ux,Iat,Oat,Nat,Pat,Fat,Bat,Rat]),e),r<0&&(r=p4(t,s,ct(ot(Me,1),te,2,6,["Jan","Feb","Mar","Apr",ux,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),e)),r<0?!1:(n.k=r,!0)):r>0?(n.k=r-1,!0):!1}function nbn(t,e,n,r,s,o){var h,d,w,k;if(d=32,r<0){if(e[0]>=t.length||(d=Ia(t,e[0]),d!=43&&d!=45)||(++e[0],r=Kz(t,e),r<0))return!1;d==45&&(r=-r)}return d==32&&e[0]-n==2&&s.b==2&&(w=new vR,k=w.q.getFullYear()-i2+i2-80,h=k%100,o.a=r==h,r+=(k/100|0)*100+(r=k&&(w=r);w&&(_=b.Math.max(_,w.a.o.a)),_>F&&(L=k,F=_)}return L}function sbn(t,e,n){var r,s,o;if(t.e=n,t.d=0,t.b=0,t.f=1,t.i=e,(t.e&16)==16&&(t.i=Gbn(t.i)),t.j=t.i.length,Si(t),o=nw(t),t.d!=t.j)throw et(new Wr(Jr((Ur(),V1e))));if(t.g){for(r=0;rGfe?ua(w,t.b):r<=Gfe&&r>Ufe?ua(w,t.d):r<=Ufe&&r>Wfe?ua(w,t.c):r<=Wfe&&ua(w,t.a),o=fce(t,w,o);return s}function e2(){e2=J;var t;for(PH=new Ag(1,1),put=new Ag(1,10),Q7=new Ag(0,0),gut=new Ag(-1,1),Z8t=ct(ot(B4,1),te,91,0,[Q7,PH,new Ag(1,2),new Ag(1,3),new Ag(1,4),new Ag(1,5),new Ag(1,6),new Ag(1,7),new Ag(1,8),new Ag(1,9),put]),FH=Ot(B4,te,91,32,0,1),t=0;t1,d&&(r=new je(s,n.b),pi(e.a,r)),P_(e.a,ct(ot(sa,1),te,8,0,[F,L]))}function vce(t){Tv(t,new bb(yv(vv(mv(wv(new gg,cH),"ELK Randomizer"),'Distributes the nodes randomly on the plane, leading to very obfuscating layouts. Can be useful to demonstrate the power of "real" layout algorithms.'),new LZ))),ke(t,cH,pw,cAt),ke(t,cH,yy,15),ke(t,cH,Nq,pe(0)),ke(t,cH,px,B7)}function p5t(){p5t=J;var t,e,n,r,s,o;for(iA=Ot(tl,N4,25,255,15,1),tU=Ot(Sh,Ed,25,16,15,1),e=0;e<255;e++)iA[e]=-1;for(n=57;n>=48;n--)iA[n]=n-48<<24>>24;for(r=70;r>=65;r--)iA[r]=r-65+10<<24>>24;for(s=102;s>=97;s--)iA[s]=s-97+10<<24>>24;for(o=0;o<10;o++)tU[o]=48+o&Ns;for(t=10;t<=15;t++)tU[t]=65+t-10&Ns}function iq(t,e,n){var r,s,o,h,d,w,k,_;return d=e.i-t.g/2,w=n.i-t.g/2,k=e.j-t.g/2,_=n.j-t.g/2,o=e.g+t.g/2,h=n.g+t.g/2,r=e.f+t.g/2,s=n.f+t.g/2,d>19)return"-"+wce(Y8(t));for(n=t,r="";!(n.l==0&&n.m==0&&n.h==0);){if(s=xrt(_q),n=W5t(n,s,!0),e=""+Mqt(u2),!(n.l==0&&n.m==0&&n.h==0))for(o=9-e.length;o>0;o--)e="0"+e;r=e+r}return r}function hbn(){if(!Object.create||!Object.getOwnPropertyNames)return!1;var t="__proto__",e=Object.create(null);if(e[t]!==void 0)return!1;var n=Object.getOwnPropertyNames(e);return!(n.length!=0||(e[t]=42,e[t]!==42)||Object.getOwnPropertyNames(e).length==0)}function fbn(t){var e,n,r,s,o,h,d;for(e=!1,n=0,s=new S(t.d.b);s.a=t.a||!n4t(e,n))return-1;if(S8(u(r.Kb(e),20)))return 1;for(s=0,h=u(r.Kb(e),20).Kc();h.Ob();)if(o=u(h.Pb(),17),w=o.c.i==e?o.d.i:o.c.i,d=v5t(t,w,n,r),d==-1||(s=b.Math.max(s,d),s>t.c-1))return-1;return s+1}function mce(t,e){var n,r,s,o,h,d;if(qt(e)===qt(t))return!0;if(!Et(e,15)||(r=u(e,15),d=t.gc(),r.gc()!=d))return!1;if(h=r.Kc(),t.ni()){for(n=0;n0){if(t.qj(),e!=null){for(o=0;o>24;case 97:case 98:case 99:case 100:case 101:case 102:return t-97+10<<24>>24;case 65:case 66:case 67:case 68:case 69:case 70:return t-65+10<<24>>24;default:throw et(new dd("Invalid hexadecimal"))}}function bbn(t,e,n){var r,s,o,h;for(Ar(n,"Processor order nodes",2),t.a=Xt(xe(K(e,(cw(),z_t)))),s=new hs,h=gi(e.b,0);h.b!=h.d.c;)o=u(di(h),86),Re(Be(K(o,(Sc(),Gy))))&&Cs(s,o,s.c.b,s.c);r=(ir(s.b!=0),u(s.a.a.c,86)),jue(t,r),!n.b&&Urt(n,1),k5t(t,r,0-Xt(xe(K(r,(Sc(),fG))))/2,0),!n.b&&Urt(n,1),br(n)}function sq(){sq=J,D7t=new j3("SPIRAL",0),S7t=new j3("LINE_BY_LINE",1),A7t=new j3("MANHATTAN",2),C7t=new j3("JITTER",3),xut=new j3("QUADRANTS_LINE_BY_LINE",4),M7t=new j3("QUADRANTS_MANHATTAN",5),L7t=new j3("QUADRANTS_JITTER",6),_7t=new j3("COMBINE_LINE_BY_LINE_MANHATTAN",7),T7t=new j3("COMBINE_JITTER_MANHATTAN",8)}function xce(t,e,n,r){var s,o,h,d,w,k;for(w=lst(t,n),k=lst(e,n),s=!1;w&&k&&(r||fhn(w,k,n));)h=lst(w,n),d=lst(k,n),bD(e),bD(t),o=w.c,gat(w,!1),gat(k,!1),n?(sy(e,k.p,o),e.p=k.p,sy(t,w.p+1,o),t.p=w.p):(sy(t,w.p,o),t.p=w.p,sy(e,k.p+1,o),e.p=k.p),Fo(w,null),Fo(k,null),w=h,k=d,s=!0;return s}function vbn(t,e,n,r){var s,o,h,d,w;for(s=!1,o=!1,d=new S(r.j);d.a=e.length)throw et(new Oo("Greedy SwitchDecider: Free layer not in graph."));this.c=e[t],this.e=new qM(r),Xrt(this.e,this.c,(we(),jn)),this.i=new qM(r),Xrt(this.i,this.c,Wn),this.f=new mKt(this.c),this.a=!o&&s.i&&!s.s&&this.c[0].k==(Kn(),Fs),this.a&&Ndn(this,t,e.length)}function Ece(t,e){var n,r,s,o,h,d;o=!t.B.Hc((ml(),nN)),h=t.B.Hc(sft),t.a=new wre(h,o,t.c),t.n&&owt(t.a.n,t.n),ztt(t.g,(t1(),uu),t.a),e||(r=new Q_(1,o,t.c),r.n.a=t.k,O6(t.p,(we(),Fn),r),s=new Q_(1,o,t.c),s.n.d=t.k,O6(t.p,Lr,s),d=new Q_(0,o,t.c),d.n.c=t.k,O6(t.p,jn,d),n=new Q_(0,o,t.c),n.n.b=t.k,O6(t.p,Wn,n))}function mbn(t){var e,n,r;switch(e=u(K(t.d,(Ce(),Y0)),218),e.g){case 2:n=Y3n(t);break;case 3:n=(r=new le,Ts(Qi(Cu(oc(oc(new kn(null,new Cn(t.d.b,16)),new dX),new gX),new NE),new rX),new Ett(r)),r);break;default:throw et(new Yo("Compaction not supported for "+e+" edges."))}vmn(t,n),Oa(new km(t.g),new xtt(t))}function ybn(t,e){var n;return n=new k3,e&&Ho(n,u(or(t.a,iN),94)),Et(e,470)&&Ho(n,u(or(t.a,sN),94)),Et(e,354)?(Ho(n,u(or(t.a,ec),94)),n):(Et(e,82)&&Ho(n,u(or(t.a,Cr),94)),Et(e,239)?(Ho(n,u(or(t.a,bs),94)),n):Et(e,186)?(Ho(n,u(or(t.a,El),94)),n):(Et(e,352)&&Ho(n,u(or(t.a,aa),94)),n))}function i1(){i1=J,t9=new po((Ti(),IG),pe(1)),XH=new po(zb,80),gpe=new po(jSt,5),spe=new po(jx,B7),fpe=new po(tft,pe(1)),dpe=new po(eft,(Rn(),!0)),K7t=new Sv(50),lpe=new po($b,K7t),G7t=LG,Y7t=$S,ape=new po(Ght,!1),W7t=KO,upe=m2,cpe=jb,ope=s5,hpe=Uy,U7t=(p4t(),Zge),Out=npe,YH=Qge,Iut=Jge,X7t=epe}function xbn(t){var e,n,r,s,o,h,d,w;for(w=new _Zt,d=new S(t.a);d.a0&&e=0)return!1;if(e.p=n.b,ue(n.e,e),s==(Kn(),ha)||s==Jc){for(h=new S(e.j);h.a1||h==-1)&&(o|=16),s.Bb&Ac&&(o|=64)),n.Bb&oo&&(o|=Cy),o|=Tf):Et(e,457)?o|=512:(r=e.Bj(),r&&r.i&1&&(o|=256)),t.Bb&512&&(o|=128),o}function hC(t,e){var n,r,s,o,h;for(t=t==null?Pu:(Pn(t),t),s=0;st.d[d.p]&&(n+=jwt(t.b,o),Vp(t.a,pe(o)))):++h;for(n+=t.b.d*h;!AT(t.a);)bmt(t.b,u(P6(t.a),19).a)}return n}function Mbn(t,e){var n;return t.f==vft?(n=Bv(Bo((Yu(),Pa),e)),t.e?n==4&&e!=(sx(),Ux)&&e!=(sx(),Gx)&&e!=(sx(),wft)&&e!=(sx(),mft):n==2):t.d&&(t.d.Hc(e)||t.d.Hc(z6(Bo((Yu(),Pa),e)))||t.d.Hc(E4((Yu(),Pa),t.b,e)))?!0:t.f&&a5t((Yu(),t.f),QM(Bo(Pa,e)))?(n=Bv(Bo(Pa,e)),t.e?n==4:n==2):!1}function Dbn(t,e,n,r){var s,o,h,d,w,k,_,L;return h=u(ze(n,(Ti(),$x)),8),w=h.a,_=h.b+t,s=b.Math.atan2(_,w),s<0&&(s+=D4),s+=e,s>D4&&(s-=D4),d=u(ze(r,$x),8),k=d.a,L=d.b+t,o=b.Math.atan2(L,k),o<0&&(o+=D4),o+=e,o>D4&&(o-=D4),A1(),yf(1e-10),b.Math.abs(s-o)<=1e-10||s==o||isNaN(s)&&isNaN(o)?0:so?1:Cv(isNaN(s),isNaN(o))}function Gst(t){var e,n,r,s,o,h,d;for(d=new Rr,r=new S(t.a.b);r.a=t.o)throw et(new apt);d=e>>5,h=e&31,o=L0(1,$r(L0(h,1))),s?t.n[n][d]=O1(t.n[n][d],o):t.n[n][d]=Xs(t.n[n][d],hvt(o)),o=L0(o,1),r?t.n[n][d]=O1(t.n[n][d],o):t.n[n][d]=Xs(t.n[n][d],hvt(o))}catch(w){throw w=os(w),Et(w,320)?et(new Oo(fot+t.o+"*"+t.p+dot+e+ao+n+got)):et(w)}}function k5t(t,e,n,r){var s,o,h;e&&(o=Xt(xe(K(e,(Sc(),Kg))))+r,h=n+Xt(xe(K(e,fG)))/2,Jt(e,vht,pe($r(Ou(b.Math.round(o))))),Jt(e,N_t,pe($r(Ou(b.Math.round(h))))),e.d.b==0||k5t(t,u(ej((s=gi(new Sp(e).a.d,0),new p6(s))),86),n+Xt(xe(K(e,fG)))+t.a,r+Xt(xe(K(e,k9)))),K(e,bht)!=null&&k5t(t,u(K(e,bht),86),n,r))}function Obn(t,e){var n,r,s,o,h,d,w,k,_,L,F;for(w=Qa(e.a),s=Xt(xe(K(w,(Ce(),Fb))))*2,_=Xt(xe(K(w,Z4))),k=b.Math.max(s,_),o=Ot(wa,Do,25,e.f-e.c+1,15,1),r=-k,n=0,d=e.b.Kc();d.Ob();)h=u(d.Pb(),10),r+=t.a[h.c.p]+k,o[n++]=r;for(r+=t.a[e.a.c.p]+k,o[n++]=r,F=new S(e.e);F.a0&&(r=(!t.n&&(t.n=new he(ec,t,1,7)),u(St(t.n,0),137)).a,!r||ni(ni((e.a+=' "',e),r),'"'))),ni(kv(ni(kv(ni(kv(ni(kv((e.a+=" (",e),t.i),","),t.j)," | "),t.g),","),t.f),")"),e.a)}function Oce(t){var e,n,r;return t.Db&64?xst(t):(e=new jl(Wkt),n=t.k,n?ni(ni((e.a+=' "',e),n),'"'):(!t.n&&(t.n=new he(ec,t,1,7)),t.n.i>0&&(r=(!t.n&&(t.n=new he(ec,t,1,7)),u(St(t.n,0),137)).a,!r||ni(ni((e.a+=' "',e),r),'"'))),ni(kv(ni(kv(ni(kv(ni(kv((e.a+=" (",e),t.i),","),t.j)," | "),t.g),","),t.f),")"),e.a)}function Wst(t,e){var n,r,s,o,h,d,w;if(e==null||e.length==0)return null;if(s=u(Uc(t.a,e),149),!s){for(r=(d=new T1(t.b).a.vc().Kc(),new _1(d));r.a.Ob();)if(n=(o=u(r.a.Pb(),42),u(o.dd(),149)),h=n.c,w=e.length,ln(h.substr(h.length-w,w),e)&&(e.length==h.length||Ia(h,h.length-e.length-1)==46)){if(s)return null;s=n}s&&Po(t.a,e,s)}return s}function Fbn(t,e){var n,r,s,o;return n=new mu,r=u(Hl(Cu(new kn(null,new Cn(t.f,16)),n),Wm(new oe,new Or,new ur,new gn,ct(ot(xl,1),se,132,0,[(j1(),Sy),Zl]))),21),s=r.gc(),r=u(Hl(Cu(new kn(null,new Cn(e.f,16)),n),Wm(new oe,new Or,new ur,new gn,ct(ot(xl,1),se,132,0,[Sy,Zl]))),21),o=r.gc(),ss.p?(Qs(o,Lr),o.d&&(d=o.o.b,e=o.a.b,o.a.b=d-e)):o.j==Lr&&s.p>t.p&&(Qs(o,Fn),o.d&&(d=o.o.b,e=o.a.b,o.a.b=-(d-e)));break}return s}function Rbn(t,e,n,r){var s,o,h,d,w,k,_,L,F,q,G;if(o=n,n1,d&&(r=new je(s,n.b),pi(e.a,r)),P_(e.a,ct(ot(sa,1),te,8,0,[F,L]))}function Kst(t,e,n){var r,s,o,h,d,w;if(e)if(n<=-1){if(r=wn(e.Tg(),-1-n),Et(r,99))return u(r,18);for(h=u(e.ah(r),153),d=0,w=h.gc();d0){for(s=w.length;s>0&&w[s-1]=="";)--s;s=40,h&&Yvn(t),Jwn(t),I2n(t),n=ire(t),r=0;n&&r0&&pi(t.f,o)):(t.c[h]-=k+1,t.c[h]<=0&&t.a[h]>0&&pi(t.e,o))))}function lvn(t){var e,n,r,s,o,h,d,w,k;for(d=new Dp(u(zr(new gp),62)),k=Rs,n=new S(t.d);n.a=0&&wn?e:n;k<=L;++k)k==n?d=r++:(o=s[k],_=G.rl(o.ak()),k==e&&(w=k==L&&!_?r-1:r),_&&++r);return F=u(K_(t,e,n),72),d!=w&&Kk(t,new dD(t.e,7,h,pe(d),q.dd(),w)),F}}else return u(Mst(t,e,n),72);return u(K_(t,e,n),72)}function gvn(t,e){var n,r,s,o,h,d,w;for(Ar(e,"Port order processing",1),w=u(K(t,(Ce(),GTt)),421),r=new S(t.b);r.a=0&&(d=vhn(t,h),!(d&&(k<22?w.l|=1<>>1,h.m=_>>>1|(L&1)<<21,h.l=F>>>1|(_&1)<<21,--k;return n&&sit(w),o&&(r?(u2=Y8(t),s&&(u2=Uee(u2,(N8(),O8t)))):u2=hu(t.l,t.m,t.h)),w}function vvn(t,e){var n,r,s,o,h,d,w,k,_,L;for(k=t.e[e.c.p][e.p]+1,w=e.c.a.c.length+1,d=new S(t.a);d.a0&&(Yr(0,t.length),t.charCodeAt(0)==45||(Yr(0,t.length),t.charCodeAt(0)==43))?1:0,r=h;rn)throw et(new dd(gw+t+'"'));return d}function wvn(t){var e,n,r,s,o,h,d;for(h=new hs,o=new S(t.a);o.a1)&&e==1&&u(t.a[t.b],10).k==(Kn(),Bl)?ox(u(t.a[t.b],10),(Wl(),f0)):r&&(!n||(t.c-t.b&t.a.length-1)>1)&&e==1&&u(t.a[t.c-1&t.a.length-1],10).k==(Kn(),Bl)?ox(u(t.a[t.c-1&t.a.length-1],10),(Wl(),y2)):(t.c-t.b&t.a.length-1)==2?(ox(u(q_(t),10),(Wl(),f0)),ox(u(q_(t),10),y2)):fpn(t,s),Bwt(t)}function xvn(t,e,n){var r,s,o,h,d;for(o=0,s=new lr((!t.a&&(t.a=new he(bs,t,10,11)),t.a));s.e!=s.i.gc();)r=u(kr(s),33),h="",(!r.n&&(r.n=new he(ec,r,1,7)),r.n).i==0||(h=u(St((!r.n&&(r.n=new he(ec,r,1,7)),r.n),0),137).a),d=new cit(o++,e,h),Ho(d,r),Jt(d,(Sc(),OS),r),d.e.b=r.j+r.f/2,d.f.a=b.Math.max(r.g,1),d.e.a=r.i+r.g/2,d.f.b=b.Math.max(r.f,1),pi(e.b,d),du(n.f,r,d)}function kvn(t){var e,n,r,s,o;r=u(K(t,(ie(),Bi)),33),o=u(ze(r,(Ce(),Nb)),174).Hc((Fl(),Hb)),t.e||(s=u(K(t,tu),21),e=new je(t.f.a+t.d.b+t.d.c,t.f.b+t.d.d+t.d.a),s.Hc((ko(),Th))?(Mo(r,xs,(xa(),eu)),hw(r,e.a,e.b,!1,!0)):Re(Be(ze(r,$lt)))||hw(r,e.a,e.b,!0,!0)),o?Mo(r,Nb,on(Hb)):Mo(r,Nb,(n=u(Yf(KS),9),new hh(n,u(pf(n,n.length),9),0)))}function M5t(t,e,n){var r,s,o,h;if(e[0]>=t.length)return n.o=0,!0;switch(Ia(t,e[0])){case 43:s=1;break;case 45:s=-1;break;default:return n.o=0,!0}if(++e[0],o=e[0],h=Kz(t,e),h==0&&e[0]==o)return!1;if(e[0]=0&&d!=n&&(o=new la(t,1,d,h,null),r?r.Ei(o):r=o),n>=0&&(o=new la(t,1,n,d==n?h:null,e),r?r.Ei(o):r=o)),r}function Qce(t){var e,n,r;if(t.b==null){if(r=new yg,t.i!=null&&(So(r,t.i),r.a+=":"),t.f&256){for(t.f&256&&t.a!=null&&(Rtn(t.i)||(r.a+="//"),So(r,t.a)),t.d!=null&&(r.a+="/",So(r,t.d)),t.f&16&&(r.a+="/"),e=0,n=t.j.length;eF?!1:(L=(w=vC(r,F,!1),w.a),_+d+L<=e.b&&(fD(n,o-n.s),n.c=!0,fD(r,o-n.s),KD(r,n.s,n.t+n.d+d),r.k=!0,qmt(n.q,r),q=!0,s&&($$(e,r),r.j=e,t.c.length>h&&(JD((An(h,t.c.length),u(t.c[h],200)),r),(An(h,t.c.length),u(t.c[h],200)).a.c.length==0&&Sg(t,h)))),q)}function Mvn(t,e){var n,r,s,o,h,d;if(Ar(e,"Partition midprocessing",1),s=new $v,Ts(Qi(new kn(null,new Cn(t.a,16)),new CY),new dv(s)),s.d!=0){for(d=u(Hl(VXt((o=s.i,new kn(null,(o||(s.i=new W3(s,s.c))).Nc()))),nb(new Ee,new ne,new tr,ct(ot(xl,1),se,132,0,[(j1(),Zl)]))),15),r=d.Kc(),n=u(r.Pb(),19);r.Ob();)h=u(r.Pb(),19),Opn(u(ji(s,n),21),u(ji(s,h),21)),n=h;br(e)}}function tue(t,e,n){var r,s,o,h,d,w,k,_;if(e.p==0){for(e.p=1,h=n,h||(s=new le,o=(r=u(Yf(co),9),new hh(r,u(pf(r,r.length),9),0)),h=new _a(s,o)),u(h.a,15).Fc(e),e.k==(Kn(),Fs)&&u(h.b,21).Fc(u(K(e,(ie(),yc)),61)),w=new S(e.j);w.a0){if(s=u(t.Ab.g,1934),e==null){for(o=0;o1)for(r=new S(s);r.an.s&&dd&&(d=s,_.c=Ot(nr,De,1,0,5,1)),s==d&&ue(_,new _a(n.c.i,n)));pn(),ua(_,t.c),Rm(t.b,w.p,_)}}function Fvn(t,e){var n,r,s,o,h,d,w,k,_;for(h=new S(e.b);h.ad&&(d=s,_.c=Ot(nr,De,1,0,5,1)),s==d&&ue(_,new _a(n.d.i,n)));pn(),ua(_,t.c),Rm(t.f,w.p,_)}}function nue(t){Tv(t,new bb(yv(vv(mv(wv(new gg,ww),"ELK Box"),"Algorithm for packing of unconnected boxes, i.e. graphs without edges."),new mZ))),ke(t,ww,pw,oSt),ke(t,ww,yy,15),ke(t,ww,RI,pe(0)),ke(t,ww,sH,Ie(iSt)),ke(t,ww,L4,Ie(Wye)),ke(t,ww,bx,Ie(Kye)),ke(t,ww,px,t1e),ke(t,ww,jI,Ie(sSt)),ke(t,ww,vx,Ie(aSt)),ke(t,ww,zkt,Ie(zht)),ke(t,ww,Jq,Ie(Uye))}function rue(t,e){var n,r,s,o,h,d,w,k,_;if(s=t.i,h=s.o.a,o=s.o.b,h<=0&&o<=0)return we(),fc;switch(k=t.n.a,_=t.n.b,d=t.o.a,n=t.o.b,e.g){case 2:case 1:if(k<0)return we(),jn;if(k+d>h)return we(),Wn;break;case 4:case 3:if(_<0)return we(),Fn;if(_+n>o)return we(),Lr}return w=(k+d/2)/h,r=(_+n/2)/o,w+r<=1&&w-r<=0?(we(),jn):w+r>=1&&w-r>=0?(we(),Wn):r<.5?(we(),Fn):(we(),Lr)}function Bvn(t,e){var n,r,s,o,h,d,w,k,_,L,F,q,G,W;for(n=!1,_=Xt(xe(K(e,(Ce(),Nw)))),G=r2*_,s=new S(e.b);s.aw+G&&(W=L.g+F.g,F.a=(F.g*F.a+L.g*L.a)/W,F.g=W,L.f=F,n=!0)),o=d,L=F;return n}function iue(t,e,n,r,s,o,h){var d,w,k,_,L,F;for(F=new S6,k=e.Kc();k.Ob();)for(d=u(k.Pb(),839),L=new S(d.wf());L.a0?d.a?(k=d.b.rf().b,s>k&&(t.v||d.c.d.c.length==1?(h=(s-k)/2,d.d.d=h,d.d.a=h):(n=u(Fe(d.c.d,0),181).rf().b,r=(n-k)/2,d.d.d=b.Math.max(0,r),d.d.a=s-r-k))):d.d.a=t.t+s:w_(t.u)&&(o=s4t(d.b),o.d<0&&(d.d.d=-o.d),o.d+o.a>d.b.rf().b&&(d.d.a=o.d+o.a-d.b.rf().b))}function $vn(t,e){var n;switch(yD(t)){case 6:return pa(e);case 7:return Im(e);case 8:return Dm(e);case 3:return Array.isArray(e)&&(n=yD(e),!(n>=14&&n<=16));case 11:return e!=null&&typeof e===kat;case 12:return e!=null&&(typeof e===TI||typeof e==kat);case 0:return Git(e,t.__elementTypeId$);case 2:return Lnt(e)&&e.im!==de;case 1:return Lnt(e)&&e.im!==de||Git(e,t.__elementTypeId$);default:return!0}}function sue(t,e){var n,r,s,o;return r=b.Math.min(b.Math.abs(t.c-(e.c+e.b)),b.Math.abs(t.c+t.b-e.c)),o=b.Math.min(b.Math.abs(t.d-(e.d+e.a)),b.Math.abs(t.d+t.a-e.d)),n=b.Math.abs(t.c+t.b/2-(e.c+e.b/2)),n>t.b/2+e.b/2||(s=b.Math.abs(t.d+t.a/2-(e.d+e.a/2)),s>t.a/2+e.a/2)?1:n==0&&s==0?0:n==0?o/s+1:s==0?r/n+1:b.Math.min(r/n,o/s)+1}function aue(t,e){var n,r,s,o,h,d;return s=Cmt(t),d=Cmt(e),s==d?t.e==e.e&&t.a<54&&e.a<54?t.fe.f?1:0:(r=t.e-e.e,n=(t.d>0?t.d:b.Math.floor((t.a-1)*vhe)+1)-(e.d>0?e.d:b.Math.floor((e.a-1)*vhe)+1),n>r+1?s:n0&&(h=J3(h,Aue(r))),Rre(o,h))):s0&&t.d!=(O_(),Fut)&&(d+=h*(r.d.a+t.a[e.b][r.b]*(e.d.a-r.d.a)/n)),n>0&&t.d!=(O_(),Nut)&&(w+=h*(r.d.b+t.a[e.b][r.b]*(e.d.b-r.d.b)/n)));switch(t.d.g){case 1:return new je(d/o,e.d.b);case 2:return new je(e.d.a,w/o);default:return new je(d/o,w/o)}}function oue(t,e){J8();var n,r,s,o,h;if(h=u(K(t.i,(Ce(),xs)),98),o=t.j.g-e.j.g,o!=0||!(h==(xa(),qb)||h==g0||h==eu))return 0;if(h==(xa(),qb)&&(n=u(K(t,Ug),19),r=u(K(e,Ug),19),n&&r&&(s=n.a-r.a,s!=0)))return s;switch(t.j.g){case 1:return Vs(t.n.a,e.n.a);case 2:return Vs(t.n.b,e.n.b);case 3:return Vs(e.n.a,t.n.a);case 4:return Vs(e.n.b,t.n.b);default:throw et(new Yo(X6t))}}function cue(t){var e,n,r,s,o,h;for(n=(!t.a&&(t.a=new qs(Qh,t,5)),t.a).i+2,h=new iu(n),ue(h,new je(t.j,t.k)),Ts(new kn(null,(!t.a&&(t.a=new qs(Qh,t,5)),new Cn(t.a,16))),new n$t(h)),ue(h,new je(t.b,t.c)),e=1;e0&&(ND(w,!1,(xo(),Wh)),ND(w,!0,Af)),Mu(e.g,new JHt(t,n)),Pi(t.g,e,n)}function lue(){lue=J;var t;for(z8t=ct(ot(Br,1),oi,25,15,[-1,-1,30,19,15,13,11,11,10,9,9,8,8,8,8,7,7,7,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5]),fut=Ot(Br,oi,25,37,15,1),I0e=ct(ot(Br,1),oi,25,15,[-1,-1,63,40,32,28,25,23,21,20,19,19,18,18,17,17,16,16,16,15,15,15,15,14,14,14,14,14,14,13,13,13,13,13,13,13,13]),q8t=Ot(D2,Kat,25,37,14,1),t=2;t<=36;t++)fut[t]=Ms(b.Math.pow(t,z8t[t])),q8t[t]=tI(kq,fut[t])}function qvn(t){var e;if((!t.a&&(t.a=new he(fs,t,6,6)),t.a).i!=1)throw et(new Bn(m1e+(!t.a&&(t.a=new he(fs,t,6,6)),t.a).i));return e=new Hu,ID(u(St((!t.b&&(t.b=new Tn(Cr,t,4,7)),t.b),0),82))&&io(e,Ule(t,ID(u(St((!t.b&&(t.b=new Tn(Cr,t,4,7)),t.b),0),82)),!1)),ID(u(St((!t.c&&(t.c=new Tn(Cr,t,5,8)),t.c),0),82))&&io(e,Ule(t,ID(u(St((!t.c&&(t.c=new Tn(Cr,t,5,8)),t.c),0),82)),!0)),e}function hue(t,e){var n,r,s,o,h;for(e.d?s=t.a.c==(md(),Pw)?Zo(e.b):Gs(e.b):s=t.a.c==(md(),Wg)?Zo(e.b):Gs(e.b),o=!1,r=new pr(mr(s.a.Kc(),new H));Zr(r);)if(n=u(qr(r),17),h=Re(t.a.f[t.a.g[e.b.p].p]),!(!h&&!ro(n)&&n.c.i.c==n.d.i.c)&&!(Re(t.a.n[t.a.g[e.b.p].p])||Re(t.a.n[t.a.g[e.b.p].p]))&&(o=!0,C0(t.b,t.a.g[Zln(n,e.b).p])))return e.c=!0,e.a=n,e;return e.c=o,e.a=null,e}function Hvn(t,e,n,r,s){var o,h,d,w,k,_,L;for(pn(),ua(t,new SZ),d=new Ca(t,0),L=new le,o=0;d.bo*2?(_=new B$(L),k=Wu(h)/Dl(h),w=wat(_,e,new v6,n,r,s,k),$i(Xf(_.e),w),L.c=Ot(nr,De,1,0,5,1),o=0,L.c[L.c.length]=_,L.c[L.c.length]=h,o=Wu(_)*Dl(_)+Wu(h)*Dl(h)):(L.c[L.c.length]=h,o+=Wu(h)*Dl(h));return L}function I5t(t,e,n){var r,s,o,h,d,w,k;if(r=n.gc(),r==0)return!1;if(t.ej())if(w=t.fj(),Wyt(t,e,n),h=r==1?t.Zi(3,null,n.Kc().Pb(),e,w):t.Zi(5,null,n,e,w),t.bj()){for(d=r<100?null:new Lp(r),o=e+r,s=e;s0){for(h=0;h>16==-15&&t.Cb.nh()&&Nrt(new Mrt(t.Cb,9,13,n,t.c,Pg(pl(u(t.Cb,59)),t))):Et(t.Cb,88)&&t.Db>>16==-23&&t.Cb.nh()&&(e=t.c,Et(e,88)||(e=(hn(),ef)),Et(n,88)||(n=(hn(),ef)),Nrt(new Mrt(t.Cb,9,10,n,e,Pg($c(u(t.Cb,26)),t)))))),t.c}function Vvn(t,e){var n,r,s,o,h,d,w,k,_,L;for(Ar(e,"Hypernodes processing",1),s=new S(t.b);s.an);return s}function due(t,e){var n,r,s;r=wl(t.d,1)!=0,!Re(Be(K(e.j,(ie(),Sw))))&&!Re(Be(K(e.j,K4)))||qt(K(e.j,(Ce(),p2)))===qt((R0(),b2))?e.c.Tf(e.e,r):r=Re(Be(K(e.j,Sw))),gI(t,e,r,!0),Re(Be(K(e.j,K4)))&&Jt(e.j,K4,(Rn(),!1)),Re(Be(K(e.j,Sw)))&&(Jt(e.j,Sw,(Rn(),!1)),Jt(e.j,K4,!0)),n=Cst(t,e);do{if(Rmt(t),n==0)return 0;r=!r,s=n,gI(t,e,r,!1),n=Cst(t,e)}while(s>n);return s}function gue(t,e,n){var r,s,o,h,d,w,k,_,L,F,q,G;if(e==n)return!0;if(e=q4t(t,e),n=q4t(t,n),r=Zit(e),r){if(_=Zit(n),_!=r)return _?(w=r.Dj(),G=_.Dj(),w==G&&w!=null):!1;if(h=(!e.d&&(e.d=new qs(Co,e,1)),e.d),o=h.i,F=(!n.d&&(n.d=new qs(Co,n,1)),n.d),o==F.i){for(k=0;k0,d=vz(e,o),ubt(n?d.b:d.g,e),o4(d).c.length==1&&Cs(r,d,r.c.b,r.c),s=new _a(o,e),Vp(t.o,s),Au(t.e.a,o))}function wue(t,e){var n,r,s,o,h,d,w;return r=b.Math.abs(Pj(t.b).a-Pj(e.b).a),d=b.Math.abs(Pj(t.b).b-Pj(e.b).b),s=0,w=0,n=1,h=1,r>t.b.b/2+e.b.b/2&&(s=b.Math.min(b.Math.abs(t.b.c-(e.b.c+e.b.b)),b.Math.abs(t.b.c+t.b.b-e.b.c)),n=1-s/r),d>t.b.a/2+e.b.a/2&&(w=b.Math.min(b.Math.abs(t.b.d-(e.b.d+e.b.a)),b.Math.abs(t.b.d+t.b.a-e.b.d)),h=1-w/d),o=b.Math.min(n,h),(1-o)*b.Math.sqrt(r*r+d*d)}function Xvn(t){var e,n,r,s;for(vat(t,t.e,t.f,(jv(),w2),!0,t.c,t.i),vat(t,t.e,t.f,w2,!1,t.c,t.i),vat(t,t.e,t.f,e5,!0,t.c,t.i),vat(t,t.e,t.f,e5,!1,t.c,t.i),Zvn(t,t.c,t.e,t.f,t.i),r=new Ca(t.i,0);r.b=65;n--)td[n]=n-65<<24>>24;for(r=122;r>=97;r--)td[r]=r-97+26<<24>>24;for(s=57;s>=48;s--)td[s]=s-48+52<<24>>24;for(td[43]=62,td[47]=63,o=0;o<=25;o++)np[o]=65+o&Ns;for(h=26,w=0;h<=51;++h,w++)np[h]=97+w&Ns;for(t=52,d=0;t<=61;++t,d++)np[t]=48+d&Ns;np[62]=43,np[63]=47}function Qvn(t,e){var n,r,s,o,h,d,w,k,_,L,F,q;if(t.dc())return new Ra;for(k=0,L=0,s=t.Kc();s.Ob();)r=u(s.Pb(),37),o=r.f,k=b.Math.max(k,o.a),L+=o.a*o.b;for(k=b.Math.max(k,b.Math.sqrt(L)*Xt(xe(K(u(t.Kc().Pb(),37),(Ce(),BV))))),F=0,q=0,w=0,n=e,d=t.Kc();d.Ob();)h=u(d.Pb(),37),_=h.f,F+_.a>k&&(F=0,q+=w+e,w=0),fC(h,F,q),n=b.Math.max(n,F+_.a),w=b.Math.max(w,_.b),F+=_.a+e;return new je(n+e,q+w+e)}function Zvn(t,e,n,r,s){var o,h,d,w,k,_,L;for(h=new S(e);h.ao)return we(),Wn;break;case 4:case 3:if(w<0)return we(),Fn;if(w+t.f>s)return we(),Lr}return h=(d+t.g/2)/o,n=(w+t.f/2)/s,h+n<=1&&h-n<=0?(we(),jn):h+n>=1&&h-n>=0?(we(),Wn):n<.5?(we(),Fn):(we(),Lr)}function Jvn(t,e,n,r,s){var o,h;if(o=Wa(Xs(e[0],Eo),Xs(r[0],Eo)),t[0]=$r(o),o=Rp(o,32),n>=s){for(h=1;h0&&(s.b[h++]=0,s.b[h++]=o.b[0]-1),e=1;e0&&(eM(w,w.d-s.d),s.c==(Qf(),v2)&&Hgt(w,w.a-s.d),w.d<=0&&w.i>0&&Cs(e,w,e.c.b,e.c)));for(o=new S(t.f);o.a0&&(pT(d,d.i-s.d),s.c==(Qf(),v2)&&hv(d,d.b-s.d),d.i<=0&&d.d>0&&Cs(n,d,n.c.b,n.c)))}function twn(t,e,n){var r,s,o,h,d,w,k,_;for(Ar(n,"Processor compute fanout",1),al(t.b),al(t.a),d=null,o=gi(e.b,0);!d&&o.b!=o.d.c;)k=u(di(o),86),Re(Be(K(k,(Sc(),Gy))))&&(d=k);for(w=new hs,Cs(w,d,w.c.b,w.c),Lle(t,w),_=gi(e.b,0);_.b!=_.d.c;)k=u(di(_),86),h=Kr(K(k,(Sc(),IS))),s=Uc(t.b,h)!=null?u(Uc(t.b,h),19).a:0,Jt(k,lG,pe(s)),r=1+(Uc(t.a,h)!=null?u(Uc(t.a,h),19).a:0),Jt(k,ome,pe(r));br(n)}function ewn(t,e,n,r,s){var o,h,d,w,k,_,L,F,q,G;for(F=Rfn(t,n),w=0;w0),r.a.Xb(r.c=--r.b),L>F+w&&Ol(r);for(h=new S(q);h.a0),r.a.Xb(r.c=--r.b)}}function nwn(){Ai();var t,e,n,r,s,o;if(xft)return xft;for(t=new ql(4),py(t,n2(Jct,!0)),yC(t,n2("M",!0)),yC(t,n2("C",!0)),o=new ql(4),r=0;r<11;r++)Yc(o,r,r);return e=new ql(4),py(e,n2("M",!0)),Yc(e,4448,4607),Yc(e,65438,65439),s=new i_(2),vb(s,t),vb(s,aA),n=new i_(2),n.$l(Aj(o,n2("L",!0))),n.$l(e),n=new Gm(3,n),n=new Uvt(s,n),xft=n,xft}function rwn(t){var e,n;if(e=Kr(ze(t,(Ti(),jS))),!Nee(e,t)&&!eb(t,_9)&&((!t.a&&(t.a=new he(bs,t,10,11)),t.a).i!=0||Re(Be(ze(t,UO)))))if(e==null||oy(e).length==0){if(!Nee(Xn,t))throw n=ni(ni(new jl("Unable to load default layout algorithm "),Xn)," for unconfigured node "),bq(t,n),et(new F3(n.a))}else throw n=ni(ni(new jl("Layout algorithm '"),e),"' not found for "),bq(t,n),et(new F3(n.a))}function tat(t){var e,n,r,s,o,h,d,w,k,_,L,F,q;if(n=t.i,e=t.n,t.b==0)for(q=n.c+e.b,F=n.b-e.b-e.c,h=t.a,w=0,_=h.length;w<_;++w)s=h[w],Mj(s,q,F);else r=bie(t,!1),Mj(t.a[0],n.c+e.b,r[0]),Mj(t.a[2],n.c+n.b-e.c-r[2],r[2]),L=n.b-e.b-e.c,r[0]>0&&(L-=r[0]+t.c,r[0]+=t.c),r[2]>0&&(L-=r[2]+t.c),r[1]=b.Math.max(r[1],L),Mj(t.a[1],n.c+e.b+r[0]-(r[1]-L)/2,r[1]);for(o=t.a,d=0,k=o.length;d0?(t.n.c.length-1)*t.i:0,r=new S(t.n);r.a1)for(r=gi(s,0);r.b!=r.d.c;)for(n=u(di(r),231),o=0,w=new S(n.e);w.a0&&(e[0]+=t.c,L-=e[0]),e[2]>0&&(L-=e[2]+t.c),e[1]=b.Math.max(e[1],L),Dj(t.a[1],r.d+n.d+e[0]-(e[1]-L)/2,e[1]);else for(G=r.d+n.d,q=r.a-n.d-n.a,h=t.a,w=0,_=h.length;w<_;++w)s=h[w],Dj(s,G,q);for(o=t.a,d=0,k=o.length;d=0&&o!=n))throw et(new Bn(YI));for(s=0,w=0;w0||tw(s.b.d,t.b.d+t.b.a)==0&&r.b<0||tw(s.b.d+s.b.a,t.b.d)==0&&r.b>0){d=0;break}}else d=b.Math.min(d,kae(t,s,r));d=b.Math.min(d,kue(t,o,d,r))}return d}function mI(t,e){var n,r,s,o,h,d,w;if(t.b<2)throw et(new Bn("The vector chain must contain at least a source and a target point."));for(s=(ir(t.b!=0),u(t.a.a.c,8)),ZR(e,s.a,s.b),w=new A6((!e.a&&(e.a=new qs(Qh,e,5)),e.a)),h=gi(t,1);h.aXt(L1(h.g,h.d[0]).a)?(ir(w.b>0),w.a.Xb(w.c=--w.b),Fm(w,h),s=!0):d.e&&d.e.gc()>0&&(o=(!d.e&&(d.e=new le),d.e).Mc(e),k=(!d.e&&(d.e=new le),d.e).Mc(n),(o||k)&&((!d.e&&(d.e=new le),d.e).Fc(h),++h.c));s||(r.c[r.c.length]=h)}function _ue(t){var e,n,r;if(H3(u(K(t,(Ce(),xs)),98)))for(n=new S(t.j);n.a>>0,"0"+e.toString(16)),r="\\x"+$l(n,n.length-2,n.length)):t>=oo?(n=(e=t>>>0,"0"+e.toString(16)),r="\\v"+$l(n,n.length-6,n.length)):r=""+String.fromCharCode(t&Ns)}return r}function nat(t,e){var n,r,s,o,h,d,w,k,_,L;if(h=t.e,w=e.e,w==0)return t;if(h==0)return e.e==0?e:new K3(-e.e,e.d,e.a);if(o=t.d,d=e.d,o+d==2)return n=Xs(t.a[0],Eo),r=Xs(e.a[0],Eo),h<0&&(n=O8(n)),w<0&&(r=O8(r)),WD(Qp(n,r));if(s=o!=d?o>d?1:-1:pyt(t.a,e.a,o),s==-1)L=-w,_=h==w?Trt(e.a,d,t.a,o):Crt(e.a,d,t.a,o);else if(L=h,h==w){if(s==0)return e2(),Q7;_=Trt(t.a,o,e.a,d)}else _=Crt(t.a,o,e.a,d);return k=new K3(L,_.length,_),S_(k),k}function j5t(t){var e,n,r,s,o,h;for(this.e=new le,this.a=new le,n=t.b-1;n<3;n++)h8(t,0,u(r1(t,0),8));if(t.b<4)throw et(new Bn("At (least dimension + 1) control points are necessary!"));for(this.b=3,this.d=!0,this.c=!1,Ygn(this,t.b+this.b-1),h=new le,o=new S(this.e),e=0;e=e.o&&n.f<=e.f||e.a*.5<=n.f&&e.a*1.5>=n.f){if(h=u(Fe(e.n,e.n.c.length-1),211),h.e+h.d+n.g+s<=r&&(o=u(Fe(e.n,e.n.c.length-1),211),o.f-t.f+n.f<=t.b||t.a.c.length==1))return Ryt(e,n),!0;if(e.s+n.g<=r&&(e.t+e.d+n.f+s<=t.b||t.a.c.length==1))return ue(e.b,n),d=u(Fe(e.n,e.n.c.length-1),211),ue(e.n,new r$(e.s,d.f+d.a+e.i,e.i)),y3t(u(Fe(e.n,e.n.c.length-1),211),n),mue(e,n),!0}return!1}function Sue(t,e,n){var r,s,o,h;return t.ej()?(s=null,o=t.fj(),r=t.Zi(1,h=Frt(t,e,n),n,e,o),t.bj()&&!(t.ni()&&h!=null?Ni(h,n):qt(h)===qt(n))?(h!=null&&(s=t.dj(h,s)),s=t.cj(n,s),t.ij()&&(s=t.lj(h,n,s)),s?(s.Ei(r),s.Fi()):t.$i(r)):(t.ij()&&(s=t.lj(h,n,s)),s?(s.Ei(r),s.Fi()):t.$i(r)),h):(h=Frt(t,e,n),t.bj()&&!(t.ni()&&h!=null?Ni(h,n):qt(h)===qt(n))&&(s=null,h!=null&&(s=t.dj(h,null)),s=t.cj(n,s),s&&s.Fi()),h)}function gC(t,e){var n,r,s,o,h,d,w,k;e%=24,t.q.getHours()!=e&&(r=new b.Date(t.q.getTime()),r.setDate(r.getDate()+1),d=t.q.getTimezoneOffset()-r.getTimezoneOffset(),d>0&&(w=d/60|0,k=d%60,s=t.q.getDate(),n=t.q.getHours(),n+w>=24&&++s,o=new b.Date(t.q.getFullYear(),t.q.getMonth(),s,e+w,t.q.getMinutes()+k,t.q.getSeconds(),t.q.getMilliseconds()),t.q.setTime(o.getTime()))),h=t.q.getTime(),t.q.setTime(h+36e5),t.q.getHours()!=e&&t.q.setTime(h)}function fwn(t,e){var n,r,s,o,h;if(Ar(e,"Path-Like Graph Wrapping",1),t.b.c.length==0){br(e);return}if(s=new U4t(t),h=(s.i==null&&(s.i=jmt(s,new TF)),Xt(s.i)*s.f),n=h/(s.i==null&&(s.i=jmt(s,new TF)),Xt(s.i)),s.b>n){br(e);return}switch(u(K(t,(Ce(),Glt)),337).g){case 2:o=new CF;break;case 0:o=new EF;break;default:o=new SF}if(r=o.Vf(t,s),!o.Wf())switch(u(K(t,QV),338).g){case 2:r=Eae(s,r);break;case 1:r=kse(s,r)}umn(t,s,r),br(e)}function dwn(t,e){var n,r,s,o;if(Qen(t.d,t.e),t.c.a.$b(),Xt(xe(K(e.j,(Ce(),$V))))!=0||Xt(xe(K(e.j,$V)))!=0)for(n=F7,qt(K(e.j,p2))!==qt((R0(),b2))&&Jt(e.j,(ie(),Sw),(Rn(),!0)),o=u(K(e.j,xS),19).a,s=0;ss&&++k,ue(h,(An(d+k,e.c.length),u(e.c[d+k],19))),w+=(An(d+k,e.c.length),u(e.c[d+k],19)).a-r,++n;n1&&(w>Wu(d)*Dl(d)/2||h.b==0)&&(L=new B$(F),_=Wu(d)/Dl(d),k=wat(L,e,new v6,n,r,s,_),$i(Xf(L.e),k),d=L,q.c[q.c.length]=L,w=0,F.c=Ot(nr,De,1,0,5,1)));return Hs(q,F),q}function bwn(t,e,n,r){var s,o,h,d,w,k,_,L,F,q,G,W;if(n.mh(e)&&(_=(q=e,q?u(r,49).xh(q):null),_))if(W=n.bh(e,t.a),G=e.t,G>1||G==-1)if(L=u(W,69),F=u(_,69),L.dc())F.$b();else for(h=!!bo(e),o=0,d=t.a?L.Kc():L.Zh();d.Ob();)k=u(d.Pb(),56),s=u(Vv(t,k),56),s?(h?(w=F.Xc(s),w==-1?F.Xh(o,s):o!=w&&F.ji(o,s)):F.Xh(o,s),++o):t.b&&!h&&(F.Xh(o,k),++o);else W==null?_.Wb(null):(s=Vv(t,W),s==null?t.b&&!bo(e)&&_.Wb(W):_.Wb(s))}function vwn(t,e){var n,r,s,o,h,d,w,k;for(n=new dY,s=new pr(mr(Zo(e).a.Kc(),new H));Zr(s);)if(r=u(qr(s),17),!ro(r)&&(d=r.c.i,n4t(d,tV))){if(k=v5t(t,d,tV,JH),k==-1)continue;n.b=b.Math.max(n.b,k),!n.a&&(n.a=new le),ue(n.a,d)}for(h=new pr(mr(Gs(e).a.Kc(),new H));Zr(h);)if(o=u(qr(h),17),!ro(o)&&(w=o.d.i,n4t(w,JH))){if(k=v5t(t,w,JH,tV),k==-1)continue;n.d=b.Math.max(n.d,k),!n.c&&(n.c=new le),ue(n.c,w)}return n}function Aue(t){b7();var e,n,r,s;if(e=Ms(t),t1e6)throw et(new aR("power of ten too big"));if(t<=Di)return H6(lI(Ex[1],e),e);for(r=lI(Ex[1],Di),s=r,n=Ou(t-Di),e=Ms(t%Di);Oc(n,Di)>0;)s=J3(s,r),n=Qp(n,Di);for(s=J3(s,lI(Ex[1],e)),s=H6(s,Di),n=Ou(t-Di);Oc(n,Di)>0;)s=H6(s,Di),n=Qp(n,Di);return s=H6(s,e),s}function wwn(t,e){var n,r,s,o,h,d,w,k,_;for(Ar(e,"Hierarchical port dummy size processing",1),w=new le,_=new le,r=Xt(xe(K(t,(Ce(),Q4)))),n=r*2,o=new S(t.b);o.ak&&r>k)_=d,k=Xt(e.p[d.p])+Xt(e.d[d.p])+d.o.b+d.d.a;else{s=!1,n.n&&W2(n,"bk node placement breaks on "+d+" which should have been after "+_);break}if(!s)break}return n.n&&W2(n,e+" is feasible: "+s),s}function Ewn(t,e,n,r){var s,o,h,d,w,k,_;for(d=-1,_=new S(t);_.a<_.c.c.length;)k=u(Q(_),112),k.g=d--,s=$r(l$(Gj(Qi(new kn(null,new Cn(k.f,16)),new vQ),new wQ)).d),o=$r(l$(Gj(Qi(new kn(null,new Cn(k.k,16)),new mQ),new Y5)).d),h=s,w=o,r||(h=$r(l$(Gj(new kn(null,new Cn(k.f,16)),new yQ)).d),w=$r(l$(Gj(new kn(null,new Cn(k.k,16)),new xQ)).d)),k.d=h,k.a=s,k.i=w,k.b=o,w==0?Cs(n,k,n.c.b,n.c):h==0&&Cs(e,k,e.c.b,e.c)}function Twn(t,e,n,r){var s,o,h,d,w,k,_;if(n.d.i!=e.i){for(s=new q0(t),_0(s,(Kn(),ha)),Jt(s,(ie(),Bi),n),Jt(s,(Ce(),xs),(xa(),eu)),r.c[r.c.length]=s,h=new zc,ac(h,s),Qs(h,(we(),jn)),d=new zc,ac(d,s),Qs(d,Wn),_=n.d,ma(n,h),o=new Rv,Ho(o,n),Jt(o,$o,null),Ua(o,d),ma(o,_),k=new Ca(n.b,0);k.b=Z&&t.e[w.p]>G*t.b||Ct>=n*Z)&&(F.c[F.c.length]=d,d=new le,io(h,o),o.a.$b(),k-=_,q=b.Math.max(q,k*t.b+W),k+=Ct,Lt=Ct,Ct=0,_=0,W=0);return new _a(q,F)}function Swn(t){var e,n,r,s,o,h,d,w,k,_,L,F,q;for(n=(k=new T1(t.c.b).a.vc().Kc(),new _1(k));n.a.Ob();)e=(d=u(n.a.Pb(),42),u(d.dd(),149)),s=e.a,s==null&&(s=""),r=JYe(t.c,s),!r&&s.length==0&&(r=tcn(t)),r&&!ey(r.c,e,!1)&&pi(r.c,e);for(h=gi(t.a,0);h.b!=h.d.c;)o=u(di(h),478),_=yrt(t.c,o.a),q=yrt(t.c,o.b),_&&q&&pi(_.c,new _a(q,o.c));for(Nh(t.a),F=gi(t.b,0);F.b!=F.d.c;)L=u(di(F),478),e=ZYe(t.c,L.a),w=yrt(t.c,L.b),e&&w&&qWe(e,w,L.c);Nh(t.b)}function Awn(t,e,n){var r,s,o,h,d,w,k,_,L,F,q;o=new Hk(t),h=new Kie,s=(oD(h.g),oD(h.j),al(h.b),oD(h.d),oD(h.i),al(h.k),al(h.c),al(h.e),q=Dae(h,o,null),yoe(h,o),q),e&&(k=new Hk(e),d=Rwn(k),g4t(s,ct(ot(ZCt,1),De,527,0,[d]))),F=!1,L=!1,n&&(k=new Hk(n),fH in k.a&&(F=D0(k,fH).ge().a),H1e in k.a&&(L=D0(k,H1e).ge().a)),_=fqt(zte(new Yk,F),L),xdn(new nZ,s,_),fH in o.a&&Jf(o,fH,null),(F||L)&&(w=new w6,Tue(_,w,F,L),Jf(o,fH,w)),r=new m$t(h),pon(new B2t(s),r)}function Lwn(t,e,n){var r,s,o,h,d,w,k,_,L;for(h=new Jie,k=ct(ot(Br,1),oi,25,15,[0]),s=-1,o=0,r=0,w=0;w0){if(s<0&&_.a&&(s=w,o=k[0],r=0),s>=0){if(d=_.b,w==s&&(d-=r++,d==0))return 0;if(!Dle(e,k,_,d,h)){w=s-1,k[0]=o;continue}}else if(s=-1,!Dle(e,k,_,0,h))return 0}else{if(s=-1,Ia(_.c,0)==32){if(L=k[0],ZJt(e,k),k[0]>L)continue}else if(uen(e,_.c,k[0])){k[0]+=_.c.length;continue}return 0}return u3n(h,n)?k[0]:0}function bC(t){var e,n,r,s,o,h,d,w;if(!t.f){if(w=new T0,d=new T0,e=tA,h=e.a.zc(t,e),h==null){for(o=new lr(zo(t));o.e!=o.i.gc();)s=u(kr(o),26),vs(w,bC(s));e.a.Bc(t)!=null,e.a.gc()==0}for(r=(!t.s&&(t.s=new he(ju,t,21,17)),new lr(t.s));r.e!=r.i.gc();)n=u(kr(r),170),Et(n,99)&&Hr(d,u(n,18));Jm(d),t.r=new VWt(t,(u(St(Ut((zp(),Ln).o),6),18),d.i),d.g),vs(w,t.r),Jm(w),t.f=new q3((u(St(Ut(Ln.o),5),18),w.i),w.g),gl(t).b&=-3}return t.f}function Mwn(t){var e,n,r,s,o,h,d,w,k,_,L,F,q,G;for(h=t.o,r=Ot(Br,oi,25,h,15,1),s=Ot(Br,oi,25,h,15,1),n=t.p,e=Ot(Br,oi,25,n,15,1),o=Ot(Br,oi,25,n,15,1),k=0;k=0&&!l4(t,_,L);)--L;s[_]=L}for(q=0;q=0&&!l4(t,d,G);)--d;o[G]=d}for(w=0;we[F]&&Fr[w]&&oq(t,w,F,!1,!0)}function $5t(t){var e,n,r,s,o,h,d,w;n=Re(Be(K(t,(i1(),ape)))),o=t.a.c.d,d=t.a.d.d,n?(h=pd(ba(new je(d.a,d.b),o),.5),w=pd(pc(t.e),.5),e=ba($i(new je(o.a,o.b),h),w),bbt(t.d,e)):(s=Xt(xe(K(t.a,gpe))),r=t.d,o.a>=d.a?o.b>=d.b?(r.a=d.a+(o.a-d.a)/2+s,r.b=d.b+(o.b-d.b)/2-s-t.e.b):(r.a=d.a+(o.a-d.a)/2+s,r.b=o.b+(d.b-o.b)/2+s):o.b>=d.b?(r.a=o.a+(d.a-o.a)/2+s,r.b=d.b+(o.b-d.b)/2+s):(r.a=o.a+(d.a-o.a)/2+s,r.b=o.b+(d.b-o.b)/2-s-t.e.b))}function Xc(t,e){var n,r,s,o,h,d,w;if(t==null)return null;if(o=t.length,o==0)return"";for(w=Ot(Sh,Ed,25,o,15,1),nmt(0,o,t.length),nmt(0,o,w.length),XKt(t,0,o,w,0),n=null,d=e,s=0,h=0;s0?$l(n.a,0,o-1):""):t.substr(0,o-1):n?n.a:t}function Due(t){Tv(t,new bb(yv(vv(mv(wv(new gg,kb),"ELK DisCo"),"Layouter for arranging unconnected subgraphs. The subgraphs themselves are, by default, not laid out."),new Ei))),ke(t,kb,bot,Ie(q7t)),ke(t,kb,vot,Ie(Aut)),ke(t,kb,px,Ie(Gge)),ke(t,kb,pw,Ie(z7t)),ke(t,kb,_6t,Ie(Yge)),ke(t,kb,C6t,Ie(Kge)),ke(t,kb,T6t,Ie(Xge)),ke(t,kb,S6t,Ie(Wge)),ke(t,kb,N6t,Ie(Uge)),ke(t,kb,P6t,Ie(Sut)),ke(t,kb,F6t,Ie($7t)),ke(t,kb,B6t,Ie(UH))}function z5t(t,e,n,r){var s,o,h,d,w,k,_,L,F;if(o=new q0(t),_0(o,(Kn(),Jc)),Jt(o,(Ce(),xs),(xa(),eu)),s=0,e){for(h=new zc,Jt(h,(ie(),Bi),e),Jt(o,Bi,e.i),Qs(h,(we(),jn)),ac(h,o),F=yd(e.e),k=F,_=0,L=k.length;_0)if(n-=r.length-e,n>=0){for(s.a+="0.";n>Mb.length;n-=Mb.length)uKt(s,Mb);GUt(s,Mb,Ms(n)),ni(s,r.substr(e))}else n=e-n,ni(s,$l(r,e,Ms(n))),s.a+=".",ni(s,IM(r,Ms(n)));else{for(ni(s,r.substr(e));n<-Mb.length;n+=Mb.length)uKt(s,Mb);GUt(s,Mb,Ms(-n))}return s.a}function q5t(t,e,n,r){var s,o,h,d,w,k,_,L,F;return w=ba(new je(n.a,n.b),t),k=w.a*e.b-w.b*e.a,_=e.a*r.b-e.b*r.a,L=(w.a*r.b-w.b*r.a)/_,F=k/_,_==0?k==0?(s=$i(new je(n.a,n.b),pd(new je(r.a,r.b),.5)),o=Gp(t,s),h=Gp($i(new je(t.a,t.b),e),s),d=b.Math.sqrt(r.a*r.a+r.b*r.b)*.5,o=0&&L<=1&&F>=0&&F<=1?$i(new je(t.a,t.b),pd(new je(e.a,e.b),L)):null}function Iwn(t,e,n){var r,s,o,h,d;if(r=u(K(t,(Ce(),Dlt)),21),n.a>e.a&&(r.Hc((ay(),zO))?t.c.a+=(n.a-e.a)/2:r.Hc(qO)&&(t.c.a+=n.a-e.a)),n.b>e.b&&(r.Hc((ay(),VO))?t.c.b+=(n.b-e.b)/2:r.Hc(HO)&&(t.c.b+=n.b-e.b)),u(K(t,(ie(),tu)),21).Hc((ko(),Th))&&(n.a>e.a||n.b>e.b))for(d=new S(t.a);d.ae.a&&(r.Hc((ay(),zO))?t.c.a+=(n.a-e.a)/2:r.Hc(qO)&&(t.c.a+=n.a-e.a)),n.b>e.b&&(r.Hc((ay(),VO))?t.c.b+=(n.b-e.b)/2:r.Hc(HO)&&(t.c.b+=n.b-e.b)),u(K(t,(ie(),tu)),21).Hc((ko(),Th))&&(n.a>e.a||n.b>e.b))for(h=new S(t.a);h.ae&&(s=0,o+=_.b+n,L.c[L.c.length]=_,_=new _wt(o,n),r=new uit(0,_.f,_,n),$$(_,r),s=0),r.b.c.length==0||w.f>=r.o&&w.f<=r.f||r.a*.5<=w.f&&r.a*1.5>=w.f?Ryt(r,w):(h=new uit(r.s+r.r+n,_.f,_,n),$$(_,h),Ryt(h,w)),s=w.i+w.g;return L.c[L.c.length]=_,L}function k4(t){var e,n,r,s,o,h,d,w;if(!t.a){if(t.o=null,w=new j$t(t),e=new xp,n=tA,d=n.a.zc(t,n),d==null){for(h=new lr(zo(t));h.e!=h.i.gc();)o=u(kr(h),26),vs(w,k4(o));n.a.Bc(t)!=null,n.a.gc()==0}for(s=(!t.s&&(t.s=new he(ju,t,21,17)),new lr(t.s));s.e!=s.i.gc();)r=u(kr(s),170),Et(r,322)&&Hr(e,u(r,34));Jm(e),t.k=new HWt(t,(u(St(Ut((zp(),Ln).o),7),18),e.i),e.g),vs(w,t.k),Jm(w),t.a=new q3((u(St(Ut(Ln.o),4),18),w.i),w.g),gl(t).b&=-2}return t.a}function Fwn(t,e,n,r,s,o,h){var d,w,k,_,L,F;return L=!1,w=joe(n.q,e.f+e.b-n.q.f),F=s-(n.q.e+w-h),F=(An(o,t.c.length),u(t.c[o],200)).e,_=(d=vC(r,F,!1),d.a),_>e.b&&!k)?!1:((k||_<=e.b)&&(k&&_>e.b?(n.d=_,fD(n,Hse(n,_))):(cse(n.q,w),n.c=!0),fD(r,s-(n.s+n.r)),KD(r,n.q.e+n.q.d,e.f),$$(e,r),t.c.length>o&&(JD((An(o,t.c.length),u(t.c[o],200)),r),(An(o,t.c.length),u(t.c[o],200)).a.c.length==0&&Sg(t,o)),L=!0),L)}function H5t(t,e,n,r){var s,o,h,d,w,k,_;if(_=gu(t.e.Tg(),e),s=0,o=u(t.g,119),w=null,go(),u(e,66).Oj()){for(d=0;dt.o.a&&(_=(w-t.o.a)/2,d.b=b.Math.max(d.b,_),d.c=b.Math.max(d.c,_))}}function Rwn(t){var e,n,r,s,o,h,d,w;for(o=new lQt,kKe(o,(X6(),Bye)),r=(s=Qrt(t,Ot(Me,te,2,0,6,1)),new h6(new Al(new Jtt(t,s).b)));r.b0?t.i:0)>e&&w>0&&(o=0,h+=w+t.i,s=b.Math.max(s,F),r+=w+t.i,w=0,F=0,n&&(++L,ue(t.n,new r$(t.s,h,t.i))),d=0),F+=k.g+(d>0?t.i:0),w=b.Math.max(w,k.f),n&&y3t(u(Fe(t.n,L),211),k),o+=k.g+(d>0?t.i:0),++d;return s=b.Math.max(s,F),r+=w,n&&(t.r=s,t.d=r,T3t(t.j)),new fh(t.s,t.t,s,r)}function qc(t,e,n,r,s){Gd();var o,h,d,w,k,_,L,F,q;if(Hvt(t,"src"),Hvt(n,"dest"),F=bl(t),w=bl(n),fvt((F.i&4)!=0,"srcType is not an array"),fvt((w.i&4)!=0,"destType is not an array"),L=F.c,h=w.c,fvt(L.i&1?L==h:(h.i&1)==0,"Array types don't match"),q=t.length,k=n.length,e<0||r<0||s<0||e+s>q||r+s>k)throw et(new ipt);if(!(L.i&1)&&F!=w)if(_=rb(t),o=rb(n),qt(t)===qt(n)&&er;)ds(o,d,_[--e]);else for(d=r+s;r0&&L4t(t,e,n,r,s,!0)}function aat(){aat=J,N0e=ct(ot(Br,1),oi,25,15,[$a,1162261467,kC,1220703125,362797056,1977326743,kC,387420489,_q,214358881,429981696,815730721,1475789056,170859375,268435456,410338673,612220032,893871739,128e7,1801088541,113379904,148035889,191102976,244140625,308915776,387420489,481890304,594823321,729e6,887503681,kC,1291467969,1544804416,1838265625,60466176]),P0e=ct(ot(Br,1),oi,25,15,[-1,-1,31,19,15,13,11,11,10,9,9,8,8,8,8,7,7,7,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5])}function jwn(t){var e,n,r,s,o,h,d,w;for(s=new S(t.b);s.a=t.b.length?(o[s++]=h.b[r++],o[s++]=h.b[r++]):r>=h.b.length?(o[s++]=t.b[n++],o[s++]=t.b[n++]):h.b[r]0?t.i:0)),++e;for(Qcn(t.n,w),t.d=n,t.r=r,t.g=0,t.f=0,t.e=0,t.o=ms,t.p=ms,o=new S(t.b);o.a0&&(s=(!t.n&&(t.n=new he(ec,t,1,7)),u(St(t.n,0),137)).a,!s||ni(ni((e.a+=' "',e),s),'"'))),n=(!t.b&&(t.b=new Tn(Cr,t,4,7)),!(t.b.i<=1&&(!t.c&&(t.c=new Tn(Cr,t,5,8)),t.c.i<=1))),n?e.a+=" [":e.a+=" ",ni(e,J2t(new Ktt,new lr(t.b))),n&&(e.a+="]"),e.a+=Eot,n&&(e.a+="["),ni(e,J2t(new Ktt,new lr(t.c))),n&&(e.a+="]"),e.a)}function oat(t,e){var n,r,s,o,h,d,w;if(t.a){if(d=t.a.ne(),w=null,d!=null?e.a+=""+d:(h=t.a.Dj(),h!=null&&(o=gd(h,Nu(91)),o!=-1?(w=h.substr(o),e.a+=""+$l(h==null?Pu:(Pn(h),h),0,o)):e.a+=""+h)),t.d&&t.d.i!=0){for(s=!0,e.a+="<",r=new lr(t.d);r.e!=r.i.gc();)n=u(kr(r),87),s?s=!1:e.a+=ao,oat(n,e);e.a+=">"}w!=null&&(e.a+=""+w)}else t.e?(d=t.e.zb,d!=null&&(e.a+=""+d)):(e.a+="?",t.b?(e.a+=" super ",oat(t.b,e)):t.f&&(e.a+=" extends ",oat(t.f,e)))}function qwn(t,e){var n,r,s,o,h,d,w,k,_,L,F,q,G,W,Z,bt,Lt,Ct,Pt,Yt,ce,Se,Ge,Qe,$n;for(Yt=t.c,ce=e.c,n=Qo(Yt.a,t,0),r=Qo(ce.a,e,0),Ct=u(ew(t,(yo(),ll)).Kc().Pb(),11),Qe=u(ew(t,lu).Kc().Pb(),11),Pt=u(ew(e,ll).Kc().Pb(),11),$n=u(ew(e,lu).Kc().Pb(),11),bt=yd(Ct.e),Se=yd(Qe.g),Lt=yd(Pt.e),Ge=yd($n.g),sy(t,r,ce),h=Lt,_=0,G=h.length;__?new Z2((Qf(),Vy),n,e,k-_):k>0&&_>0&&(new Z2((Qf(),Vy),e,n,0),new Z2(Vy,n,e,0))),h)}function Nue(t,e){var n,r,s,o,h,d;for(h=new ub(new vg(t.f.b).a);h.b;){if(o=Uv(h),s=u(o.cd(),594),e==1){if(s.gf()!=(xo(),Q0)&&s.gf()!=X0)continue}else if(s.gf()!=(xo(),Wh)&&s.gf()!=Af)continue;switch(r=u(u(o.dd(),46).b,81),d=u(u(o.dd(),46).a,189),n=d.c,s.gf().g){case 2:r.g.c=t.e.a,r.g.b=b.Math.max(1,r.g.b+n);break;case 1:r.g.c=r.g.c+n,r.g.b=b.Math.max(1,r.g.b-n);break;case 4:r.g.d=t.e.b,r.g.a=b.Math.max(1,r.g.a+n);break;case 3:r.g.d=r.g.d+n,r.g.a=b.Math.max(1,r.g.a-n)}}}function Hwn(t,e){var n,r,s,o,h,d,w,k,_,L,F,q,G,W;for(d=Ot(Br,oi,25,e.b.c.length,15,1),k=Ot(Hut,se,267,e.b.c.length,0,1),w=Ot(l0,$g,10,e.b.c.length,0,1),L=t.a,F=0,q=L.length;F0&&w[r]&&(G=G3(t.b,w[r],s)),W=b.Math.max(W,s.c.c.b+G);for(o=new S(_.e);o.a1)throw et(new Bn(tO));w||(o=Zd(e,r.Kc().Pb()),h.Fc(o))}return tyt(t,y4t(t,e,n),h)}function Uwn(t,e){var n,r,s,o;for(Lsn(e.b.j),Ts(Cu(new kn(null,new Cn(e.d,16)),new SX),new AX),o=new S(e.d);o.at.o.b||(n=uc(t,Wn),d=e.d+e.a+(n.gc()-1)*h,d>t.o.b)))}function lat(t,e){var n,r,s,o,h,d,w,k,_,L,F,q,G;if(h=t.e,w=e.e,h==0)return e;if(w==0)return t;if(o=t.d,d=e.d,o+d==2)return n=Xs(t.a[0],Eo),r=Xs(e.a[0],Eo),h==w?(_=Wa(n,r),G=$r(_),q=$r(jm(_,32)),q==0?new Ag(h,G):new K3(h,2,ct(ot(Br,1),oi,25,15,[G,q]))):WD(h<0?Qp(r,n):Qp(n,r));if(h==w)F=h,L=o>=d?Crt(t.a,o,e.a,d):Crt(e.a,d,t.a,o);else{if(s=o!=d?o>d?1:-1:pyt(t.a,e.a,o),s==0)return e2(),Q7;s==1?(F=h,L=Trt(t.a,o,e.a,d)):(F=w,L=Trt(e.a,d,t.a,o))}return k=new K3(F,L.length,L),S_(k),k}function hat(t,e,n,r,s,o,h){var d,w,k,_,L,F,q;return L=Re(Be(K(e,(Ce(),BTt)))),F=null,o==(yo(),ll)&&r.c.i==n?F=r.c:o==lu&&r.d.i==n&&(F=r.d),k=h,!k||!L||F?(_=(we(),fc),F?_=F.j:H3(u(K(n,xs),98))&&(_=o==ll?jn:Wn),w=Xwn(t,e,n,o,_,r),d=krt((Qa(n),r)),o==ll?(Ua(d,u(Fe(w.j,0),11)),ma(d,s)):(Ua(d,s),ma(d,u(Fe(w.j,0),11))),k=new Jne(r,d,w,u(K(w,(ie(),Bi)),11),o,!F)):(ue(k.e,r),q=b.Math.max(Xt(xe(K(k.d,Gg))),Xt(xe(K(r,Gg)))),Jt(k.d,Gg,q)),cn(t.a,r,new pj(k.d,e,o)),k}function gq(t,e){var n,r,s,o,h,d,w,k,_,L;if(_=null,t.d&&(_=u(Uc(t.d,e),138)),!_){if(o=t.a.Mh(),L=o.i,!t.d||NT(t.d)!=L){for(w=new Rr,t.d&&j_(w,t.d),k=w.f.c+w.g.c,d=k;d0?(q=(G-1)*n,d&&(q+=r),_&&(q+=r),q=t.b[s+1])s+=2;else if(n0)for(r=new Uu(u(ji(t.a,o),21)),pn(),ua(r,new Ri(e)),s=new Ca(o.b,0);s.bYt)?(w=2,h=Di):w==0?(w=1,h=Se):(w=0,h=Se)):(q=Se>=h||h-Se0?1:Cv(isNaN(r),isNaN(0)))>=0^(yf(Ld),(b.Math.abs(d)<=Ld||d==0||isNaN(d)&&isNaN(0)?0:d<0?-1:d>0?1:Cv(isNaN(d),isNaN(0)))>=0)?b.Math.max(d,r):(yf(Ld),(b.Math.abs(r)<=Ld||r==0||isNaN(r)&&isNaN(0)?0:r<0?-1:r>0?1:Cv(isNaN(r),isNaN(0)))>0?b.Math.sqrt(d*d+r*r):-b.Math.sqrt(d*d+r*r))}function vb(t,e){var n,r,s,o,h,d;if(e){if(!t.a&&(t.a=new rR),t.e==2){nR(t.a,e);return}if(e.e==1){for(s=0;s=oo?So(n,Byt(r)):m8(n,r&Ns),h=new Jnt(10,null,0),BJe(t.a,h,d-1)):(n=(h.bm().length+o,new DT),So(n,h.bm())),e.e==0?(r=e._l(),r>=oo?So(n,Byt(r)):m8(n,r&Ns)):So(n,e.bm()),u(h,521).b=n.a}}function que(t){var e,n,r,s,o;return t.g!=null?t.g:t.a<32?(t.g=x3n(Ou(t.f),Ms(t.e)),t.g):(s=yat((!t.c&&(t.c=RD(t.f)),t.c),0),t.e==0?s:(e=(!t.c&&(t.c=RD(t.f)),t.c).e<0?2:1,n=s.length,r=-t.e+n-e,o=new Ap,o.a+=""+s,t.e>0&&r>=-6?r>=0?rD(o,n-Ms(t.e),String.fromCharCode(46)):(o.a=$l(o.a,0,e-1)+"0."+IM(o.a,e-1),rD(o,e+1,Fh(Mb,0,-Ms(r)-1))):(n-e>=1&&(rD(o,e,String.fromCharCode(46)),++n),rD(o,n,String.fromCharCode(69)),r>0&&rD(o,++n,String.fromCharCode(43)),rD(o,++n,""+v_(Ou(r)))),t.g=o.a,t.g))}function umn(t,e,n){var r,s,o,h,d,w,k,_,L,F,q,G,W,Z;if(!n.dc()){for(d=0,F=0,r=n.Kc(),G=u(r.Pb(),19).a;d1&&(w=k.mg(w,t.a,d));return w.c.length==1?u(Fe(w,w.c.length-1),220):w.c.length==2?Zwn((An(0,w.c.length),u(w.c[0],220)),(An(1,w.c.length),u(w.c[1],220)),h,o):null}function Hue(t){var e,n,r,s,o,h;for(Mu(t.a,new bL),n=new S(t.a);n.a=b.Math.abs(r.b)?(r.b=0,o.d+o.a>h.d&&o.dh.c&&o.c0){if(e=new L2t(t.i,t.g),n=t.i,o=n<100?null:new Lp(n),t.ij())for(r=0;r0){for(d=t.g,k=t.i,I_(t),o=k<100?null:new Lp(k),r=0;r>13|(t.m&15)<<9,s=t.m>>4&8191,o=t.m>>17|(t.h&255)<<5,h=(t.h&1048320)>>8,d=e.l&8191,w=e.l>>13|(e.m&15)<<9,k=e.m>>4&8191,_=e.m>>17|(e.h&255)<<5,L=(e.h&1048320)>>8,Ge=n*d,Qe=r*d,$n=s*d,Gn=o*d,yr=h*d,w!=0&&(Qe+=n*w,$n+=r*w,Gn+=s*w,yr+=o*w),k!=0&&($n+=n*k,Gn+=r*k,yr+=s*k),_!=0&&(Gn+=n*_,yr+=r*_),L!=0&&(yr+=n*L),q=Ge&yl,G=(Qe&511)<<13,F=q+G,Z=Ge>>22,bt=Qe>>9,Lt=($n&262143)<<4,Ct=(Gn&31)<<17,W=Z+bt+Lt+Ct,Yt=$n>>18,ce=Gn>>5,Se=(yr&4095)<<8,Pt=Yt+ce+Se,W+=F>>22,F&=yl,Pt+=W>>22,W&=yl,Pt&=U0,hu(F,W,Pt)}function Vue(t){var e,n,r,s,o,h,d;if(d=u(Fe(t.j,0),11),d.g.c.length!=0&&d.e.c.length!=0)throw et(new Yo("Interactive layout does not support NORTH/SOUTH ports with incoming _and_ outgoing edges."));if(d.g.c.length!=0){for(o=ms,n=new S(d.g);n.a4)if(t.wj(e)){if(t.rk()){if(s=u(e,49),r=s.Ug(),w=r==t.e&&(t.Dk()?s.Og(s.Vg(),t.zk())==t.Ak():-1-s.Vg()==t.aj()),t.Ek()&&!w&&!r&&s.Zg()){for(o=0;o0&&(k=t.n.a/o);break;case 2:case 4:s=t.i.o.b,s>0&&(k=t.n.b/s)}Jt(t,(ie(),Lw),k)}if(w=t.o,h=t.a,r)h.a=r.a,h.b=r.b,t.d=!0;else if(e!=Q1&&e!=k2&&d!=fc)switch(d.g){case 1:h.a=w.a/2;break;case 2:h.a=w.a,h.b=w.b/2;break;case 3:h.a=w.a/2,h.b=w.b;break;case 4:h.b=w.b/2}else h.a=w.a/2,h.b=w.b/2}function mC(t){var e,n,r,s,o,h,d,w,k,_;if(t.ej())if(_=t.Vi(),w=t.fj(),_>0)if(e=new zmt(t.Gi()),n=_,o=n<100?null:new Lp(n),RM(t,n,e.g),s=n==1?t.Zi(4,St(e,0),null,0,w):t.Zi(6,e,null,-1,w),t.bj()){for(r=new lr(e);r.e!=r.i.gc();)o=t.dj(kr(r),o);o?(o.Ei(s),o.Fi()):t.$i(s)}else o?(o.Ei(s),o.Fi()):t.$i(s);else RM(t,t.Vi(),t.Wi()),t.$i(t.Zi(6,(pn(),wo),null,-1,w));else if(t.bj())if(_=t.Vi(),_>0){for(d=t.Wi(),k=_,RM(t,_,d),o=k<100?null:new Lp(k),r=0;rt.d[h.p]&&(n+=jwt(t.b,o)*u(w.b,19).a,Vp(t.a,pe(o)));for(;!AT(t.a);)bmt(t.b,u(P6(t.a),19).a)}return n}function xmn(t,e,n,r){var s,o,h,d,w,k,_,L,F,q,G,W,Z;for(L=new No(u(ze(t,(Uz(),aSt)),8)),L.a=b.Math.max(L.a-n.b-n.c,0),L.b=b.Math.max(L.b-n.d-n.a,0),s=xe(ze(t,rSt)),(s==null||(Pn(s),s<=0))&&(s=1.3),d=new le,G=new lr((!t.a&&(t.a=new he(bs,t,10,11)),t.a));G.e!=G.i.gc();)q=u(kr(G),33),h=new xUt(q),d.c[d.c.length]=h;switch(F=u(ze(t,zht),311),F.g){case 3:Z=Hvn(d,e,L.a,L.b,(k=r,Pn(s),k));break;case 1:Z=pwn(d,e,L.a,L.b,(_=r,Pn(s),_));break;default:Z=Tmn(d,e,L.a,L.b,(w=r,Pn(s),w))}o=new B$(Z),W=wat(o,e,n,L.a,L.b,r,(Pn(s),s)),hw(t,W.a,W.b,!1,!0)}function kmn(t,e){var n,r,s,o;n=e.b,o=new Uu(n.j),s=0,r=n.j,r.c=Ot(nr,De,1,0,5,1),Nv(u(sb(t.b,(we(),Fn),(Xv(),_w)),15),n),s=XD(o,s,new bX,r),Nv(u(sb(t.b,Fn,d2),15),n),s=XD(o,s,new PE,r),Nv(u(sb(t.b,Fn,Tw),15),n),Nv(u(sb(t.b,Wn,_w),15),n),Nv(u(sb(t.b,Wn,d2),15),n),s=XD(o,s,new gF,r),Nv(u(sb(t.b,Wn,Tw),15),n),Nv(u(sb(t.b,Lr,_w),15),n),s=XD(o,s,new pF,r),Nv(u(sb(t.b,Lr,d2),15),n),s=XD(o,s,new bF,r),Nv(u(sb(t.b,Lr,Tw),15),n),Nv(u(sb(t.b,jn,_w),15),n),s=XD(o,s,new mX,r),Nv(u(sb(t.b,jn,d2),15),n),Nv(u(sb(t.b,jn,Tw),15),n)}function Emn(t,e){var n,r,s,o,h,d,w,k,_,L,F,q,G,W;for(Ar(e,"Layer size calculation",1),_=ms,k=Rs,s=!1,d=new S(t.b);d.a.5?bt-=h*2*(G-.5):G<.5&&(bt+=o*2*(.5-G)),s=d.d.b,btZ.a-W-_&&(bt=Z.a-W-_),d.n.a=e+bt}}function Tmn(t,e,n,r,s){var o,h,d,w,k,_,L,F,q,G,W,Z;for(d=Ot(wa,Do,25,t.c.length,15,1),F=new Fj(new jF),A3t(F,t),k=0,W=new le;F.b.c.length!=0;)if(h=u(F.b.c.length==0?null:Fe(F.b,0),157),k>1&&Wu(h)*Dl(h)/2>d[0]){for(o=0;od[o];)++o;G=new Qd(W,0,o+1),L=new B$(G),_=Wu(h)/Dl(h),w=wat(L,e,new v6,n,r,s,_),$i(Xf(L.e),w),M8(d7(F,L)),q=new Qd(W,o+1,W.c.length),A3t(F,q),W.c=Ot(nr,De,1,0,5,1),k=0,yKt(d,d.length,0)}else Z=F.b.c.length==0?null:Fe(F.b,0),Z!=null&&Yrt(F,0),k>0&&(d[k]=d[k-1]),d[k]+=Wu(h)*Dl(h),++k,W.c[W.c.length]=h;return W}function _mn(t){var e,n,r,s,o;if(r=u(K(t,(Ce(),bu)),163),r==(mh(),g2)){for(n=new pr(mr(Zo(t).a.Kc(),new H));Zr(n);)if(e=u(qr(n),17),!DZt(e))throw et(new F3(Cot+QD(t)+"' has its layer constraint set to FIRST_SEPARATE, but has at least one incoming edge. FIRST_SEPARATE nodes must not have incoming edges."))}else if(r==Ny){for(o=new pr(mr(Gs(t).a.Kc(),new H));Zr(o);)if(s=u(qr(o),17),!DZt(s))throw et(new F3(Cot+QD(t)+"' has its layer constraint set to LAST_SEPARATE, but has at least one outgoing edge. LAST_SEPARATE nodes must not have outgoing edges."))}}function Cmn(t,e){var n,r,s,o,h,d,w,k,_,L,F,q,G;for(Ar(e,"Label dummy removal",1),r=Xt(xe(K(t,(Ce(),Fx)))),s=Xt(xe(K(t,qy))),k=u(K(t,Jl),103),w=new S(t.b);w.a0&&Qse(t,d,L);for(s=new S(L);s.a>19&&(e=Y8(e),w=!w),h=_pn(e),o=!1,s=!1,r=!1,t.h==MI&&t.m==0&&t.l==0)if(s=!0,o=!0,h==-1)t=fGt((N8(),I8t)),r=!0,w=!w;else return d=G4t(t,h),w&&sit(d),n&&(u2=hu(0,0,0)),d;else t.h>>19&&(o=!0,t=Y8(t),r=!0,w=!w);return h!=-1?fon(t,h,w,o,n):F3t(t,e)<0?(n&&(o?u2=Y8(t):u2=hu(t.l,t.m,t.h)),hu(0,0,0)):bvn(r?t:hu(t.l,t.m,t.h),e,w,o,s,n)}function pq(t,e){var n,r,s,o,h,d,w,k,_,L,F,q,G;if(t.e&&t.c.ce.f||e.g>t.f)){for(n=0,r=0,h=t.w.a.ec().Kc();h.Ob();)s=u(h.Pb(),11),vit(cc(ct(ot(sa,1),te,8,0,[s.i.n,s.n,s.a])).b,e.g,e.f)&&++n;for(d=t.r.a.ec().Kc();d.Ob();)s=u(d.Pb(),11),vit(cc(ct(ot(sa,1),te,8,0,[s.i.n,s.n,s.a])).b,e.g,e.f)&&--n;for(w=e.w.a.ec().Kc();w.Ob();)s=u(w.Pb(),11),vit(cc(ct(ot(sa,1),te,8,0,[s.i.n,s.n,s.a])).b,t.g,t.f)&&++r;for(o=e.r.a.ec().Kc();o.Ob();)s=u(o.Pb(),11),vit(cc(ct(ot(sa,1),te,8,0,[s.i.n,s.n,s.a])).b,t.g,t.f)&&--r;n=0)return s=Pcn(t,e.substr(1,h-1)),_=e.substr(h+1,w-(h+1)),M3n(t,_,s)}else{if(n=-1,B8t==null&&(B8t=new RegExp("\\d")),B8t.test(String.fromCharCode(d))&&(n=Hbt(e,Nu(46),w-1),n>=0)){r=u(Ert(t,Ete(t,e.substr(1,n-1)),!1),58),k=0;try{k=Kl(e.substr(n+1),$a,Di)}catch(F){throw F=os(F),Et(F,127)?(o=F,et(new S$(o))):et(F)}if(k=0)return n;switch(Bv(Bo(t,n))){case 2:{if(ln("",Ig(t,n.Hj()).ne())){if(w=QM(Bo(t,n)),d=k8(Bo(t,n)),_=Z4t(t,e,w,d),_)return _;for(s=_5t(t,e),h=0,L=s.gc();h1)throw et(new Bn(tO));for(_=gu(t.e.Tg(),e),r=u(t.g,119),h=0;h1,k=new P1(F.b);sc(k.a)||sc(k.b);)w=u(sc(k.a)?Q(k.a):Q(k.b),17),L=w.c==F?w.d:w.c,b.Math.abs(cc(ct(ot(sa,1),te,8,0,[L.i.n,L.n,L.a])).b-h.b)>1&&L2n(t,w,h,o,F)}}function Rmn(t){var e,n,r,s,o,h;if(s=new Ca(t.e,0),r=new Ca(t.a,0),t.d)for(n=0;nact;){for(o=e,h=0;b.Math.abs(e-o)0),s.a.Xb(s.c=--s.b),ewn(t,t.b-h,o,r,s),ir(s.b0),r.a.Xb(r.c=--r.b)}if(!t.d)for(n=0;n0?(t.f[_.p]=q/(_.e.c.length+_.g.c.length),t.c=b.Math.min(t.c,t.f[_.p]),t.b=b.Math.max(t.b,t.f[_.p])):d&&(t.f[_.p]=q)}}function $mn(t){t.b=null,t.bb=null,t.fb=null,t.qb=null,t.a=null,t.c=null,t.d=null,t.e=null,t.f=null,t.n=null,t.M=null,t.L=null,t.Q=null,t.R=null,t.K=null,t.db=null,t.eb=null,t.g=null,t.i=null,t.j=null,t.k=null,t.gb=null,t.o=null,t.p=null,t.q=null,t.r=null,t.$=null,t.ib=null,t.S=null,t.T=null,t.t=null,t.s=null,t.u=null,t.v=null,t.w=null,t.B=null,t.A=null,t.C=null,t.D=null,t.F=null,t.G=null,t.H=null,t.I=null,t.J=null,t.P=null,t.Z=null,t.U=null,t.V=null,t.W=null,t.X=null,t.Y=null,t._=null,t.ab=null,t.cb=null,t.hb=null,t.nb=null,t.lb=null,t.mb=null,t.ob=null,t.pb=null,t.jb=null,t.kb=null,t.N=!1,t.O=!1}function zmn(t,e,n){var r,s,o,h;for(Ar(n,"Graph transformation ("+t.a+")",1),h=zv(e.a),o=new S(e.b);o.a0&&(t.a=w+(q-1)*o,e.c.b+=t.a,e.f.b+=t.a)),G.a.gc()!=0&&(F=new Int(1,o),q=Q5t(F,e,G,W,e.f.b+w-e.c.b),q>0&&(e.f.b+=w+(q-1)*o))}function _7(t,e){var n,r,s,o;o=t.F,e==null?(t.F=null,Z8(t,null)):(t.F=(Pn(e),e),r=gd(e,Nu(60)),r!=-1?(s=e.substr(0,r),gd(e,Nu(46))==-1&&!ln(s,cx)&&!ln(s,GC)&&!ln(s,pH)&&!ln(s,UC)&&!ln(s,WC)&&!ln(s,KC)&&!ln(s,YC)&&!ln(s,XC)&&(s=Ide),n=ij(e,Nu(62)),n!=-1&&(s+=""+e.substr(n+1)),Z8(t,s)):(s=e,gd(e,Nu(46))==-1&&(r=gd(e,Nu(91)),r!=-1&&(s=e.substr(0,r)),!ln(s,cx)&&!ln(s,GC)&&!ln(s,pH)&&!ln(s,UC)&&!ln(s,WC)&&!ln(s,KC)&&!ln(s,YC)&&!ln(s,XC)?(s=Ide,r!=-1&&(s+=""+e.substr(r))):s=e),Z8(t,s),s==e&&(t.F=t.D))),t.Db&4&&!(t.Db&1)&&Oi(t,new la(t,1,5,o,e))}function Hmn(t,e){var n,r,s,o,h,d,w,k,_,L,F,q,G,W,Z,bt,Lt,Ct;if(W=e.b.c.length,!(W<3)){for(q=Ot(Br,oi,25,W,15,1),L=0,_=new S(e.b);_.a<_.c.c.length;)k=u(Q(_),29),q[L++]=k.a.c.length;for(F=new Ca(e.b,2),r=1;rh)&&Ys(t.b,u(Z.b,17));++d}o=h}}}function K5t(t,e){var n;if(e==null||ln(e,Pu)||e.length==0&&t.k!=(Rg(),Rx))return null;switch(t.k.g){case 1:return Tz(e,q7)?(Rn(),Y7):Tz(e,xct)?(Rn(),Lb):null;case 2:try{return pe(Kl(e,$a,Di))}catch(r){if(r=os(r),Et(r,127))return null;throw et(r)}case 4:try{return cy(e)}catch(r){if(r=os(r),Et(r,127))return null;throw et(r)}case 3:return e;case 5:return Mne(t),Fae(t,e);case 6:return Mne(t),Jgn(t,t.a,e);case 7:try{return n=hgn(t),n.Jf(e),n}catch(r){if(r=os(r),Et(r,32))return null;throw et(r)}default:throw et(new Yo("Invalid type set for this layout option."))}}function Vmn(t){N_();var e,n,r,s,o,h,d;for(d=new ozt,n=new S(t);n.a=d.b.c)&&(d.b=e),(!d.c||e.c<=d.c.c)&&(d.d=d.c,d.c=e),(!d.e||e.d>=d.e.d)&&(d.e=e),(!d.f||e.d<=d.f.d)&&(d.f=e);return r=new Az((K8(),Ew)),sD(t,Rpe,new Al(ct(ot(dO,1),De,369,0,[r]))),h=new Az(My),sD(t,Bpe,new Al(ct(ot(dO,1),De,369,0,[h]))),s=new Az(Ly),sD(t,Fpe,new Al(ct(ot(dO,1),De,369,0,[s]))),o=new Az(j4),sD(t,Ppe,new Al(ct(ot(dO,1),De,369,0,[o]))),Bst(r.c,Ew),Bst(s.c,Ly),Bst(o.c,j4),Bst(h.c,My),d.a.c=Ot(nr,De,1,0,5,1),Hs(d.a,r.c),Hs(d.a,ib(s.c)),Hs(d.a,o.c),Hs(d.a,ib(h.c)),d}function Y5t(t){var e;switch(t.d){case 1:{if(t.hj())return t.o!=-2;break}case 2:{if(t.hj())return t.o==-2;break}case 3:case 5:case 4:case 6:case 7:return t.o>-2;default:return!1}switch(e=t.gj(),t.p){case 0:return e!=null&&Re(Be(e))!=t_(t.k,0);case 1:return e!=null&&u(e,217).a!=$r(t.k)<<24>>24;case 2:return e!=null&&u(e,172).a!=($r(t.k)&Ns);case 6:return e!=null&&t_(u(e,162).a,t.k);case 5:return e!=null&&u(e,19).a!=$r(t.k);case 7:return e!=null&&u(e,184).a!=$r(t.k)<<16>>16;case 3:return e!=null&&Xt(xe(e))!=t.j;case 4:return e!=null&&u(e,155).a!=t.j;default:return e==null?t.n!=null:!Ni(e,t.n)}}function kI(t,e,n){var r,s,o,h;return t.Fk()&&t.Ek()&&(h=Tnt(t,u(n,56)),qt(h)!==qt(n))?(t.Oi(e),t.Ui(e,TJt(t,e,h)),t.rk()&&(o=(s=u(n,49),t.Dk()?t.Bk()?s.ih(t.b,bo(u(wn(Su(t.b),t.aj()),18)).n,u(wn(Su(t.b),t.aj()).Yj(),26).Bj(),null):s.ih(t.b,is(s.Tg(),bo(u(wn(Su(t.b),t.aj()),18))),null,null):s.ih(t.b,-1-t.aj(),null,null)),!u(h,49).eh()&&(o=(r=u(h,49),t.Dk()?t.Bk()?r.gh(t.b,bo(u(wn(Su(t.b),t.aj()),18)).n,u(wn(Su(t.b),t.aj()).Yj(),26).Bj(),o):r.gh(t.b,is(r.Tg(),bo(u(wn(Su(t.b),t.aj()),18))),null,o):r.gh(t.b,-1-t.aj(),null,o))),o&&o.Fi()),Ll(t.b)&&t.$i(t.Zi(9,n,h,e,!1)),h):n}function Kue(t,e,n){var r,s,o,h,d,w,k,_,L,F,q,G,W,Z,bt,Lt,Ct,Pt;for(_=Xt(xe(K(t,(Ce(),Ow)))),r=Xt(xe(K(t,KTt))),F=new il,Jt(F,Ow,_+r),k=e,bt=k.d,W=k.c.i,Lt=k.d.i,Z=N2t(W.c),Ct=N2t(Lt.c),s=new le,L=Z;L<=Ct;L++)d=new q0(t),_0(d,(Kn(),ha)),Jt(d,(ie(),Bi),k),Jt(d,xs,(xa(),eu)),Jt(d,XV,F),q=u(Fe(t.b,L),29),L==Z?sy(d,q.a.c.length-n,q):Fo(d,q),Pt=Xt(xe(K(k,Gg))),Pt<0&&(Pt=0,Jt(k,Gg,Pt)),d.o.b=Pt,G=b.Math.floor(Pt/2),h=new zc,Qs(h,(we(),jn)),ac(h,d),h.n.b=G,w=new zc,Qs(w,Wn),ac(w,d),w.n.b=G,ma(k,h),o=new Rv,Ho(o,k),Jt(o,$o,null),Ua(o,w),ma(o,bt),Whn(d,k,o),s.c[s.c.length]=o,k=o;return s}function gat(t,e){var n,r,s,o,h,d,w,k,_,L,F,q,G,W,Z,bt,Lt,Ct;for(w=u(Bg(t,(we(),jn)).Kc().Pb(),11).e,q=u(Bg(t,Wn).Kc().Pb(),11).g,d=w.c.length,Ct=I1(u(Fe(t.j,0),11));d-- >0;){for(W=(An(0,w.c.length),u(w.c[0],17)),s=(An(0,q.c.length),u(q.c[0],17)),Lt=s.d.e,o=Qo(Lt,s,0),Qnn(W,s.d,o),Ua(s,null),ma(s,null),G=W.a,e&&pi(G,new No(Ct)),r=gi(s.a,0);r.b!=r.d.c;)n=u(di(r),8),pi(G,new No(n));for(bt=W.b,F=new S(s.b);F.a0&&(h=b.Math.max(h,kee(t.C.b+r.d.b,s))),_=r,L=s,F=o;t.C&&t.C.c>0&&(q=F+t.C.c,k&&(q+=_.d.c),h=b.Math.max(h,(A1(),yf(H1),b.Math.abs(L-1)<=H1||L==1||isNaN(L)&&isNaN(1)?0:q/(1-L)))),n.n.b=0,n.a.a=h}function Xue(t,e){var n,r,s,o,h,d,w,k,_,L,F,q;if(n=u(Ao(t.b,e),124),w=u(u(ji(t.r,e),21),84),w.dc()){n.n.d=0,n.n.a=0;return}for(k=t.u.Hc((cl(),J0)),h=0,t.A.Hc((Fl(),Hb))&&Lce(t,e),d=w.Kc(),_=null,F=0,L=0;d.Ob();)r=u(d.Pb(),111),o=Xt(xe(r.b.We((sj(),HH)))),s=r.b.rf().b,_?(q=L+_.d.a+t.w+r.d.d,h=b.Math.max(h,(A1(),yf(H1),b.Math.abs(F-o)<=H1||F==o||isNaN(F)&&isNaN(o)?0:q/(o-F)))):t.C&&t.C.d>0&&(h=b.Math.max(h,kee(t.C.d+r.d.d,o))),_=r,F=o,L=s;t.C&&t.C.a>0&&(q=L+t.C.a,k&&(q+=_.d.a),h=b.Math.max(h,(A1(),yf(H1),b.Math.abs(F-1)<=H1||F==1||isNaN(F)&&isNaN(1)?0:q/(1-F)))),n.n.d=0,n.a.b=h}function Que(t,e,n){var r,s,o,h,d,w;for(this.g=t,d=e.d.length,w=n.d.length,this.d=Ot(l0,$g,10,d+w,0,1),h=0;h0?zrt(this,this.f/this.a):L1(e.g,e.d[0]).a!=null&&L1(n.g,n.d[0]).a!=null?zrt(this,(Xt(L1(e.g,e.d[0]).a)+Xt(L1(n.g,n.d[0]).a))/2):L1(e.g,e.d[0]).a!=null?zrt(this,L1(e.g,e.d[0]).a):L1(n.g,n.d[0]).a!=null&&zrt(this,L1(n.g,n.d[0]).a)}function Gmn(t,e){var n,r,s,o,h,d,w,k,_,L;for(t.a=new sYt(yan(zS)),r=new S(e.a);r.a=1&&(Z-h>0&&L>=0?(w.n.a+=W,w.n.b+=o*h):Z-h<0&&_>=0&&(w.n.a+=W*Z,w.n.b+=o));t.o.a=e.a,t.o.b=e.b,Jt(t,(Ce(),Nb),(Fl(),r=u(Yf(KS),9),new hh(r,u(pf(r,r.length),9),0)))}function Ymn(t,e,n,r,s,o){var h;if(!(e==null||!Dit(e,LAt,MAt)))throw et(new Bn("invalid scheme: "+e));if(!t&&!(n!=null&&gd(n,Nu(35))==-1&&n.length>0&&(Yr(0,n.length),n.charCodeAt(0)!=47)))throw et(new Bn("invalid opaquePart: "+n));if(t&&!(e!=null&&gM(KG,e.toLowerCase()))&&!(n==null||!Dit(n,ZS,JS)))throw et(new Bn(mde+n));if(t&&e!=null&&gM(KG,e.toLowerCase())&&!qfn(n))throw et(new Bn(mde+n));if(!Ucn(r))throw et(new Bn("invalid device: "+r));if(!jon(s))throw h=s==null?"invalid segments: null":"invalid segment: "+Pon(s),et(new Bn(h));if(!(o==null||gd(o,Nu(35))==-1))throw et(new Bn("invalid query: "+o))}function Xmn(t,e){var n,r,s,o,h,d,w,k,_,L,F,q,G,W,Z,bt;for(Ar(e,"Calculate Graph Size",1),e.n&&t&&vf(e,wf(t),(Pl(),rh)),d=F7,w=F7,o=mkt,h=mkt,L=new lr((!t.a&&(t.a=new he(bs,t,10,11)),t.a));L.e!=L.i.gc();)k=u(kr(L),33),G=k.i,W=k.j,bt=k.g,r=k.f,s=u(ze(k,(Ti(),WO)),142),d=b.Math.min(d,G-s.b),w=b.Math.min(w,W-s.d),o=b.Math.max(o,G+bt+s.c),h=b.Math.max(h,W+r+s.a);for(q=u(ze(t,(Ti(),$b)),116),F=new je(d-q.b,w-q.d),_=new lr((!t.a&&(t.a=new he(bs,t,10,11)),t.a));_.e!=_.i.gc();)k=u(kr(_),33),Du(k,k.i-F.a),Iu(k,k.j-F.b);Z=o-d+(q.b+q.c),n=h-w+(q.d+q.a),Kv(t,Z),Wv(t,n),e.n&&t&&vf(e,wf(t),(Pl(),rh))}function tle(t){var e,n,r,s,o,h,d,w,k,_;for(r=new le,h=new S(t.e.a);h.a0){Lz(t,n,0),n.a+=String.fromCharCode(r),s=Pun(e,o),Lz(t,n,s),o+=s-1;continue}r==39?o+11)for(W=Ot(Br,oi,25,t.b.b.c.length,15,1),L=0,k=new S(t.b.b);k.a=d&&s<=w)d<=s&&o<=w?(n[_++]=s,n[_++]=o,r+=2):d<=s?(n[_++]=s,n[_++]=w,t.b[r]=w+1,h+=2):o<=w?(n[_++]=d,n[_++]=o,r+=2):(n[_++]=d,n[_++]=w,t.b[r]=w+1);else if(wr2)&&d<10);Fpt(t.c,new vp),ele(t),jJe(t.c),Wmn(t.f)}function tyn(t,e,n){var r,s,o,h,d,w,k,_,L,F,q,G,W,Z;if(Re(Be(K(n,(Ce(),Ry)))))for(d=new S(n.j);d.a=2){for(w=gi(n,0),h=u(di(w),8),d=u(di(w),8);d.a0&&ND(k,!0,(xo(),Af)),d.k==(Kn(),Fs)&&AYt(k),Pi(t.f,d,e)}}function iyn(t,e,n){var r,s,o,h,d,w,k,_,L,F;switch(Ar(n,"Node promotion heuristic",1),t.g=e,l3n(t),t.q=u(K(e,(Ce(),Rlt)),260),_=u(K(t.g,NTt),19).a,o=new YP,t.q.g){case 2:case 1:T7(t,o);break;case 3:for(t.q=(w4(),rG),T7(t,o),w=0,d=new S(t.a);d.at.j&&(t.q=LO,T7(t,o));break;case 4:for(t.q=(w4(),rG),T7(t,o),k=0,s=new S(t.b);s.at.k&&(t.q=MO,T7(t,o));break;case 6:F=Ms(b.Math.ceil(t.f.length*_/100)),T7(t,new Tp(F));break;case 5:L=Ms(b.Math.ceil(t.d*_/100)),T7(t,new Kf(L));break;default:T7(t,o)}Q2n(t,e),br(n)}function rle(t,e,n){var r,s,o,h;this.j=t,this.e=J3t(t),this.o=this.j.e,this.i=!!this.o,this.p=this.i?u(Fe(n,Qa(this.o).p),214):null,s=u(K(t,(ie(),tu)),21),this.g=s.Hc((ko(),Th)),this.b=new le,this.d=new _re(this.e),h=u(K(this.j,Ix),230),this.q=Fan(e,h,this.e),this.k=new CXt(this),o=N1(ct(ot(a2e,1),De,225,0,[this,this.d,this.k,this.q])),e==(Yv(),IO)&&!Re(Be(K(t,(Ce(),Py))))?(r=new e4t(this.e),o.c[o.c.length]=r,this.c=new Mwt(r,h,u(this.q,402))):e==IO&&Re(Be(K(t,(Ce(),Py))))?(r=new e4t(this.e),o.c[o.c.length]=r,this.c=new cee(r,h,u(this.q,402))):this.c=new aVt(e,this),ue(o,this.c),Rue(o,this.e),this.s=$3n(this.k)}function syn(t,e){var n,r,s,o,h,d,w,k,_,L,F,q,G,W,Z,bt,Lt,Ct,Pt;for(L=u(ej((h=gi(new Sp(e).a.d,0),new p6(h))),86),G=L?u(K(L,(Sc(),pht)),86):null,s=1;L&&G;){for(w=0,Pt=0,n=L,r=G,d=0;d=t.i?(++t.i,ue(t.a,pe(1)),ue(t.b,_)):(r=t.c[e.p][1],gh(t.a,k,pe(u(Fe(t.a,k),19).a+1-r)),gh(t.b,k,Xt(xe(Fe(t.b,k)))+_-r*t.e)),(t.q==(w4(),LO)&&(u(Fe(t.a,k),19).a>t.j||u(Fe(t.a,k-1),19).a>t.j)||t.q==MO&&(Xt(xe(Fe(t.b,k)))>t.k||Xt(xe(Fe(t.b,k-1)))>t.k))&&(w=!1),h=new pr(mr(Zo(e).a.Kc(),new H));Zr(h);)o=u(qr(h),17),d=o.c.i,t.f[d.p]==k&&(L=ile(t,d),s=s+u(L.a,19).a,w=w&&Re(Be(L.b)));return t.f[e.p]=k,s=s+t.c[e.p][0],new _a(pe(s),(Rn(),!!w))}function Q5t(t,e,n,r,s){var o,h,d,w,k,_,L,F,q,G,W,Z,bt;for(L=new Rr,h=new le,Cae(t,n,t.d.fg(),h,L),Cae(t,r,t.d.gg(),h,L),t.b=.2*(W=poe(oc(new kn(null,new Cn(h,16)),new IQ)),Z=poe(oc(new kn(null,new Cn(h,16)),new OQ)),b.Math.min(W,Z)),o=0,d=0;d=2&&(bt=Boe(h,!0,F),!t.e&&(t.e=new zjt(t)),Bun(t.e,bt,h,t.b)),vse(h,F),xyn(h),q=-1,_=new S(h);_.a<_.c.c.length;)k=u(Q(_),112),!(b.Math.abs(k.s-k.c)d)}function oyn(t,e){var n,r,s,o,h,d,w,k,_,L,F,q,G,W;for(n=u(K(t,(Ce(),xs)),98),h=t.f,o=t.d,d=h.a+o.b+o.c,w=0-o.d-t.c.b,_=h.b+o.d+o.a-t.c.b,k=new le,L=new le,s=new S(e);s.a0),u(_.a.Xb(_.c=--_.b),17));o!=r&&_.b>0;)t.a[o.p]=!0,t.a[r.p]=!0,o=(ir(_.b>0),u(_.a.Xb(_.c=--_.b),17));_.b>0&&Ol(_)}}function cle(t,e,n){var r,s,o,h,d,w,k,_,L;if(t.a!=e.Aj())throw et(new Bn(H7+e.ne()+mw));if(r=Ig((Yu(),Pa),e).$k(),r)return r.Aj().Nh().Ih(r,n);if(h=Ig(Pa,e).al(),h){if(n==null)return null;if(d=u(n,15),d.dc())return"";for(L=new yg,o=d.Kc();o.Ob();)s=o.Pb(),So(L,h.Aj().Nh().Ih(h,s)),L.a+=" ";return Pet(L,L.a.length-1)}if(_=Ig(Pa,e).bl(),!_.dc()){for(k=_.Kc();k.Ob();)if(w=u(k.Pb(),148),w.wj(n))try{if(L=w.Aj().Nh().Ih(w,n),L!=null)return L}catch(F){if(F=os(F),!Et(F,102))throw et(F)}throw et(new Bn("Invalid value: '"+n+"' for datatype :"+e.ne()))}return u(e,834).Fj(),n==null?null:Et(n,172)?""+u(n,172).a:bl(n)==NH?FGt(QS[0],u(n,199)):Jo(n)}function dyn(t){var e,n,r,s,o,h,d,w,k,_;for(k=new hs,d=new hs,o=new S(t);o.a-1){for(s=gi(d,0);s.b!=s.d.c;)r=u(di(s),128),r.v=h;for(;d.b!=0;)for(r=u(cst(d,0),128),n=new S(r.i);n.a0&&(n+=w.n.a+w.o.a/2,++L),G=new S(w.j);G.a0&&(n/=L),bt=Ot(wa,Do,25,r.a.c.length,15,1),d=0,k=new S(r.a);k.a=d&&s<=w)d<=s&&o<=w?r+=2:d<=s?(t.b[r]=w+1,h+=2):o<=w?(n[_++]=s,n[_++]=d-1,r+=2):(n[_++]=s,n[_++]=d-1,t.b[r]=w+1,h+=2);else if(w0?s-=864e5:s+=864e5,w=new Ebt(Wa(Ou(e.q.getTime()),s))),_=new Sm,k=t.a.length,o=0;o=97&&r<=122||r>=65&&r<=90){for(h=o+1;h=k)throw et(new Bn("Missing trailing '"));h+10&&n.c==0&&(!e&&(e=new le),e.c[e.c.length]=n);if(e)for(;e.c.length!=0;){if(n=u(Sg(e,0),233),n.b&&n.b.c.length>0){for(o=(!n.b&&(n.b=new le),new S(n.b));o.aQo(t,n,0))return new _a(s,n)}else if(Xt(L1(s.g,s.d[0]).a)>Xt(L1(n.g,n.d[0]).a))return new _a(s,n)}for(d=(!n.e&&(n.e=new le),n.e).Kc();d.Ob();)h=u(d.Pb(),233),w=(!h.b&&(h.b=new le),h.b),Vm(0,w.c.length),zT(w.c,0,n),h.c==w.c.length&&(e.c[e.c.length]=h)}return null}function dle(t,e){var n,r,s,o,h,d,w,k,_;if(t==null)return Pu;if(w=e.a.zc(t,e),w!=null)return"[...]";for(n=new ab(ao,"[","]"),s=t,o=0,h=s.length;o=14&&_<=16))?e.a._b(r)?(n.a?ni(n.a,n.b):n.a=new jl(n.d),n_(n.a,"[...]")):(d=rb(r),k=new g_(e),N0(n,dle(d,k))):Et(r,177)?N0(n,l0n(u(r,177))):Et(r,190)?N0(n,Jfn(u(r,190))):Et(r,195)?N0(n,udn(u(r,195))):Et(r,2012)?N0(n,t1n(u(r,2012))):Et(r,48)?N0(n,u0n(u(r,48))):Et(r,364)?N0(n,E0n(u(r,364))):Et(r,832)?N0(n,c0n(u(r,832))):Et(r,104)&&N0(n,o0n(u(r,104))):N0(n,r==null?Pu:Jo(r));return n.a?n.e.length==0?n.a.a:n.a.a+(""+n.e):n.c}function gle(t,e,n,r){var s,o,h,d,w,k,_,L,F,q,G,W,Z,bt,Lt,Ct;for(d=m4(e,!1,!1),bt=iI(d),r&&(bt=FD(bt)),Ct=Xt(xe(ze(e,(Z_(),Aut)))),Z=(ir(bt.b!=0),u(bt.a.a.c,8)),L=u(r1(bt,1),8),bt.b>2?(_=new le,Hs(_,new Qd(bt,1,bt.b)),o=Wle(_,Ct+t.a),Lt=new Ost(o),Ho(Lt,e),n.c[n.c.length]=Lt):r?Lt=u(or(t.b,e0(e)),266):Lt=u(or(t.b,Zp(e)),266),w=e0(e),r&&(w=Zp(e)),h=Ldn(Z,w),k=Ct+t.a,h.a?(k+=b.Math.abs(Z.b-L.b),W=new je(L.a,(L.b+Z.b)/2)):(k+=b.Math.abs(Z.a-L.a),W=new je((L.a+Z.a)/2,L.b)),r?Pi(t.d,e,new k3t(Lt,h,W,k)):Pi(t.c,e,new k3t(Lt,h,W,k)),Pi(t.b,e,Lt),G=(!e.n&&(e.n=new he(ec,e,1,7)),e.n),q=new lr(G);q.e!=q.i.gc();)F=u(kr(q),137),s=pI(t,F,!0,0,0),n.c[n.c.length]=s}function xyn(t){var e,n,r,s,o,h,d,w,k,_;for(k=new le,d=new le,h=new S(t);h.a-1){for(o=new S(d);o.a0)&&($B(w,b.Math.min(w.o,s.o-1)),pT(w,w.i-1),w.i==0&&(d.c[d.c.length]=w))}}function C7(t,e,n){var r,s,o,h,d,w,k;if(k=t.c,!e&&(e=NAt),t.c=e,t.Db&4&&!(t.Db&1)&&(w=new la(t,1,2,k,t.c),n?n.Ei(w):n=w),k!=e){if(Et(t.Cb,284))t.Db>>16==-10?n=u(t.Cb,284).nk(e,n):t.Db>>16==-15&&(!e&&(e=(hn(),J1)),!k&&(k=(hn(),J1)),t.Cb.nh()&&(w=new P0(t.Cb,1,13,k,e,Pg(pl(u(t.Cb,59)),t),!1),n?n.Ei(w):n=w));else if(Et(t.Cb,88))t.Db>>16==-23&&(Et(e,88)||(e=(hn(),ef)),Et(k,88)||(k=(hn(),ef)),t.Cb.nh()&&(w=new P0(t.Cb,1,10,k,e,Pg($c(u(t.Cb,26)),t),!1),n?n.Ei(w):n=w));else if(Et(t.Cb,444))for(d=u(t.Cb,836),h=(!d.b&&(d.b=new JB(new Btt)),d.b),o=(r=new ub(new vg(h.a).a),new tR(r));o.a.b;)s=u(Uv(o.a).cd(),87),n=C7(s,Zz(s,d),n)}return n}function kyn(t,e){var n,r,s,o,h,d,w,k,_,L,F;for(h=Re(Be(ze(t,(Ce(),Ry)))),F=u(ze(t,$y),21),w=!1,k=!1,L=new lr((!t.c&&(t.c=new he(El,t,9,9)),t.c));L.e!=L.i.gc()&&(!w||!k);){for(o=u(kr(L),118),d=0,s=jp(B1(ct(ot(G1,1),De,20,0,[(!o.d&&(o.d=new Tn(aa,o,8,5)),o.d),(!o.e&&(o.e=new Tn(aa,o,7,4)),o.e)])));Zr(s)&&(r=u(qr(s),79),_=h&&aw(r)&&Re(Be(ze(r,Ob))),n=Gue((!r.b&&(r.b=new Tn(Cr,r,4,7)),r.b),o)?t==gs(Vo(u(St((!r.c&&(r.c=new Tn(Cr,r,5,8)),r.c),0),82))):t==gs(Vo(u(St((!r.b&&(r.b=new Tn(Cr,r,4,7)),r.b),0),82))),!((_||n)&&(++d,d>1))););(d>0||F.Hc((cl(),J0))&&(!o.n&&(o.n=new he(ec,o,1,7)),o.n).i>0)&&(w=!0),d>1&&(k=!0)}w&&e.Fc((ko(),Th)),k&&e.Fc((ko(),hS))}function ple(t){var e,n,r,s,o,h,d,w,k,_,L,F;if(F=u(ze(t,(Ti(),jb)),21),F.dc())return null;if(d=0,h=0,F.Hc((Fl(),eN))){for(_=u(ze(t,$S),98),r=2,n=2,s=2,o=2,e=gs(t)?u(ze(gs(t),Fw),103):u(ze(t,Fw),103),k=new lr((!t.c&&(t.c=new he(El,t,9,9)),t.c));k.e!=k.i.gc();)if(w=u(kr(k),118),L=u(ze(w,o5),61),L==(we(),fc)&&(L=F5t(w,e),Mo(w,o5,L)),_==(xa(),eu))switch(L.g){case 1:r=b.Math.max(r,w.i+w.g);break;case 2:n=b.Math.max(n,w.j+w.f);break;case 3:s=b.Math.max(s,w.i+w.g);break;case 4:o=b.Math.max(o,w.j+w.f)}else switch(L.g){case 1:r+=w.g+2;break;case 2:n+=w.f+2;break;case 3:s+=w.g+2;break;case 4:o+=w.f+2}d=b.Math.max(r,s),h=b.Math.max(n,o)}return hw(t,d,h,!0,!0)}function pat(t,e,n,r,s){var o,h,d,w,k,_,L,F,q,G,W,Z,bt,Lt,Ct,Pt;for(Lt=u(Hl(P$(Qi(new kn(null,new Cn(e.d,16)),new Uk(n)),new iM(n)),nb(new Ee,new ne,new tr,ct(ot(xl,1),se,132,0,[(j1(),Zl)]))),15),L=Di,_=$a,w=new S(e.b.j);w.a0,k?k&&(F=bt.p,h?++F:--F,L=u(Fe(bt.c.a,F),10),r=ane(L),q=!(jst(r,ce,n[0])||RKt(r,ce,n[0]))):q=!0),G=!1,Yt=e.D.i,Yt&&Yt.c&&d.e&&(_=h&&Yt.p>0||!h&&Yt.p0&&(e.a+=ao),bq(u(kr(d),160),e);for(e.a+=Eot,w=new A6((!r.c&&(r.c=new Tn(Cr,r,5,8)),r.c));w.e!=w.i.gc();)w.e>0&&(e.a+=ao),bq(u(kr(w),160),e);e.a+=")"}}function Ayn(t,e,n){var r,s,o,h,d,w,k,_,L,F,q;if(o=u(K(t,(ie(),Bi)),79),!!o){for(r=t.a,s=new No(n),$i(s,wfn(t)),G8(t.d.i,t.c.i)?(F=t.c,L=cc(ct(ot(sa,1),te,8,0,[F.n,F.a])),ba(L,n)):L=I1(t.c),Cs(r,L,r.a,r.a.a),q=I1(t.d),K(t,Alt)!=null&&$i(q,u(K(t,Alt),8)),Cs(r,q,r.c.b,r.c),Qm(r,s),h=m4(o,!0,!0),H$(h,u(St((!o.b&&(o.b=new Tn(Cr,o,4,7)),o.b),0),82)),V$(h,u(St((!o.c&&(o.c=new Tn(Cr,o,5,8)),o.c),0),82)),mI(r,h),_=new S(t.b);_.a<_.c.c.length;)k=u(Q(_),70),d=u(K(k,Bi),137),Kv(d,k.o.a),Wv(d,k.o.b),S1(d,k.n.a+s.a,k.n.b+s.b),Mo(d,(Y6(),Wut),Be(K(k,Wut)));w=u(K(t,(Ce(),$o)),74),w?(Qm(w,s),Mo(o,$o,w)):Mo(o,$o,null),e==(z0(),qx)?Mo(o,Y0,qx):Mo(o,Y0,null)}}function Lyn(t,e,n,r){var s,o,h,d,w,k,_,L,F,q,G,W,Z,bt,Lt;for(q=e.c.length,F=0,L=new S(t.b);L.a=0){for(w=null,d=new Ca(_.a,k+1);d.bh?1:Cv(isNaN(0),isNaN(h)))<0&&(yf(Ld),(b.Math.abs(h-1)<=Ld||h==1||isNaN(h)&&isNaN(1)?0:h<1?-1:h>1?1:Cv(isNaN(h),isNaN(1)))<0)&&(yf(Ld),(b.Math.abs(0-d)<=Ld||d==0||isNaN(0)&&isNaN(d)?0:0d?1:Cv(isNaN(0),isNaN(d)))<0)&&(yf(Ld),(b.Math.abs(d-1)<=Ld||d==1||isNaN(d)&&isNaN(1)?0:d<1?-1:d>1?1:Cv(isNaN(d),isNaN(1)))<0)),o)}function Myn(t){var e,n,r,s,o,h,d,w,k,_,L,F,q,G,W,Z,bt,Lt,Ct,Pt,Yt,ce;for(L=new twt(new Mt(t));L.b!=L.c.a.d;)for(_=yJt(L),d=u(_.d,56),e=u(_.e,56),h=d.Tg(),W=0,Pt=(h.i==null&&xd(h),h.i).length;W=0&&W=k.c.c.length?_=Nwt((Kn(),Ws),ha):_=Nwt((Kn(),ha),ha),_*=2,o=n.a.g,n.a.g=b.Math.max(o,o+(_-o)),h=n.b.g,n.b.g=b.Math.max(h,h+(_-h)),s=e}}function Oyn(t,e,n,r,s){var o,h,d,w,k,_,L,F,q,G,W,Z,bt,Lt,Ct,Pt,Yt;for(Yt=FWt(t),_=new le,d=t.c.length,L=d-1,F=d+1;Yt.a.c!=0;){for(;n.b!=0;)Ct=(ir(n.b!=0),u(bh(n,n.a.a),112)),__(Yt.a,Ct)!=null,Ct.g=L--,B5t(Ct,e,n,r);for(;e.b!=0;)Pt=(ir(e.b!=0),u(bh(e,e.a.a),112)),__(Yt.a,Pt)!=null,Pt.g=F++,B5t(Pt,e,n,r);for(k=$a,bt=(h=new h_(new c_(new y(Yt.a).a).b),new g(h));wM(bt.a.a);){if(Z=(o=uj(bt.a),u(o.cd(),112)),!r&&Z.b>0&&Z.a<=0){_.c=Ot(nr,De,1,0,5,1),_.c[_.c.length]=Z;break}W=Z.i-Z.d,W>=k&&(W>k&&(_.c=Ot(nr,De,1,0,5,1),k=W),_.c[_.c.length]=Z)}_.c.length!=0&&(w=u(Fe(_,Iz(s,_.c.length)),112),__(Yt.a,w)!=null,w.g=F++,B5t(w,e,n,r),_.c=Ot(nr,De,1,0,5,1))}for(Lt=t.c.length+1,G=new S(t);G.a0&&(F.d+=_.n.d,F.d+=_.d),F.a>0&&(F.a+=_.n.a,F.a+=_.d),F.b>0&&(F.b+=_.n.b,F.b+=_.d),F.c>0&&(F.c+=_.n.c,F.c+=_.d),F}function vle(t,e,n){var r,s,o,h,d,w,k,_,L,F,q,G;for(F=n.d,L=n.c,o=new je(n.f.a+n.d.b+n.d.c,n.f.b+n.d.d+n.d.a),h=o.b,k=new S(t.a);k.a0&&(t.c[e.c.p][e.p].d+=wl(t.i,24)*NI*.07000000029802322-.03500000014901161,t.c[e.c.p][e.p].a=t.c[e.c.p][e.p].d/t.c[e.c.p][e.p].b)}}function zyn(t){var e,n,r,s,o,h,d,w,k,_,L,F,q,G,W,Z;for(G=new S(t);G.ar.d,r.d=b.Math.max(r.d,e),d&&n&&(r.d=b.Math.max(r.d,r.a),r.a=r.d+s);break;case 3:n=e>r.a,r.a=b.Math.max(r.a,e),d&&n&&(r.a=b.Math.max(r.a,r.d),r.d=r.a+s);break;case 2:n=e>r.c,r.c=b.Math.max(r.c,e),d&&n&&(r.c=b.Math.max(r.b,r.c),r.b=r.c+s);break;case 4:n=e>r.b,r.b=b.Math.max(r.b,e),d&&n&&(r.b=b.Math.max(r.b,r.c),r.c=r.b+s)}}}function Gyn(t){var e,n,r,s,o,h,d,w,k,_,L;for(k=new S(t);k.a0||_.j==jn&&_.e.c.length-_.g.c.length<0)){e=!1;break}for(s=new S(_.g);s.a=k&&Yt>=Z&&(F+=G.n.b+W.n.b+W.a.b-Pt,++d));if(n)for(h=new S(Lt.e);h.a=k&&Yt>=Z&&(F+=G.n.b+W.n.b+W.a.b-Pt,++d))}d>0&&(ce+=F/d,++q)}q>0?(e.a=s*ce/q,e.g=q):(e.a=0,e.g=0)}function Wyn(t,e){var n,r,s,o,h,d,w,k,_,L,F;for(s=new S(t.a.b);s.aRs||e.o==Bb&&_0&&Du(bt,Pt*ce),Yt>0&&Iu(bt,Yt*Se);for($_(t.b,new lm),e=new le,d=new ub(new vg(t.c).a);d.b;)h=Uv(d),r=u(h.cd(),79),n=u(h.dd(),395).a,s=m4(r,!1,!1),L=wse(e0(r),iI(s),n),mI(L,s),Ct=Mse(r),Ct&&Qo(e,Ct,0)==-1&&(e.c[e.c.length]=Ct,FYt(Ct,(ir(L.b!=0),u(L.a.a.c,8)),n));for(Z=new ub(new vg(t.d).a);Z.b;)W=Uv(Z),r=u(W.cd(),79),n=u(W.dd(),395).a,s=m4(r,!1,!1),L=wse(Zp(r),FD(iI(s)),n),L=FD(L),mI(L,s),Ct=Dse(r),Ct&&Qo(e,Ct,0)==-1&&(e.c[e.c.length]=Ct,FYt(Ct,(ir(L.b!=0),u(L.c.b.c,8)),n))}function yle(t,e,n,r){var s,o,h,d,w,k,_,L,F,q,G,W,Z,bt,Lt,Ct,Pt,Yt,ce,Se;if(n.c.length!=0){for(q=new le,F=new S(n);F.a1)for(q=new G5t(G,Ct,r),Oa(Ct,new dVt(t,q)),h.c[h.c.length]=q,L=Ct.a.ec().Kc();L.Ob();)_=u(L.Pb(),46),Au(o,_.b);if(d.a.gc()>1)for(q=new G5t(G,d,r),Oa(d,new gVt(t,q)),h.c[h.c.length]=q,L=d.a.ec().Kc();L.Ob();)_=u(L.Pb(),46),Au(o,_.b)}}function kle(t){Tv(t,new bb(lR(yv(vv(mv(wv(new gg,Md),"ELK Radial"),'A radial layout provider which is based on the algorithm of Peter Eades published in "Drawing free trees.", published by International Institute for Advanced Study of Social Information Science, Fujitsu Limited in 1991. The radial layouter takes a tree and places the nodes in radial order around the root. The nodes of the same tree level are placed on the same radius.'),new VQ),Md))),ke(t,Md,tH,Ie(Hme)),ke(t,Md,yy,Ie(Vme)),ke(t,Md,L4,Ie(jme)),ke(t,Md,vx,Ie($me)),ke(t,Md,bx,Ie(zme)),ke(t,Md,R7,Ie(Rme)),ke(t,Md,MC,Ie(nCt)),ke(t,Md,j7,Ie(qme)),ke(t,Md,hct,Ie(Tht)),ke(t,Md,lct,Ie(_ht)),ke(t,Md,_kt,Ie(rCt)),ke(t,Md,xkt,Ie(vG)),ke(t,Md,kkt,Ie(wG)),ke(t,Md,Ekt,Ie(FO)),ke(t,Md,Tkt,Ie(iCt))}function t6t(t){var e;if(this.r=Mtn(new ga,new Es),this.b=new Y_(u(zr(co),290)),this.p=new Y_(u(zr(co),290)),this.i=new Y_(u(zr(Ige),290)),this.e=t,this.o=new No(t.rf()),this.D=t.Df()||Re(Be(t.We((Ti(),UO)))),this.A=u(t.We((Ti(),jb)),21),this.B=u(t.We(m2),21),this.q=u(t.We($S),98),this.u=u(t.We(Uy),21),!B1n(this.u))throw et(new F3("Invalid port label placement: "+this.u));if(this.v=Re(Be(t.We(FSt))),this.j=u(t.We(s5),21),!opn(this.j))throw et(new F3("Invalid node label placement: "+this.j));this.n=u(eC(t,ESt),116),this.k=Xt(xe(eC(t,OG))),this.d=Xt(xe(eC(t,$St))),this.w=Xt(xe(eC(t,GSt))),this.s=Xt(xe(eC(t,zSt))),this.t=Xt(xe(eC(t,qSt))),this.C=u(eC(t,HSt),142),this.c=2*this.d,e=!this.B.Hc((ml(),nN)),this.f=new Q_(0,e,0),this.g=new Q_(1,e,0),ztt(this.f,(t1(),uu),this.g)}function n3n(t,e,n,r,s){var o,h,d,w,k,_,L,F,q,G,W,Z,bt,Lt,Ct,Pt,Yt,ce,Se,Ge,Qe,$n;for(Ct=0,G=0,q=0,F=1,Lt=new lr((!t.a&&(t.a=new he(bs,t,10,11)),t.a));Lt.e!=Lt.i.gc();)Z=u(kr(Lt),33),F+=O0(new pr(mr(H0(Z).a.Kc(),new H))),Ge=Z.g,G=b.Math.max(G,Ge),L=Z.f,q=b.Math.max(q,L),Ct+=Ge*L;for(W=(!t.a&&(t.a=new he(bs,t,10,11)),t.a).i,h=Ct+2*r*r*F*W,o=b.Math.sqrt(h),w=b.Math.max(o*n,G),d=b.Math.max(o/n,q),bt=new lr((!t.a&&(t.a=new he(bs,t,10,11)),t.a));bt.e!=bt.i.gc();)Z=u(kr(bt),33),Qe=s.b+(wl(e,26)*EC+wl(e,27)*TC)*(w-Z.g),$n=s.b+(wl(e,26)*EC+wl(e,27)*TC)*(d-Z.f),Du(Z,Qe),Iu(Z,$n);for(Se=w+(s.b+s.c),ce=d+(s.d+s.a),Yt=new lr((!t.a&&(t.a=new he(bs,t,10,11)),t.a));Yt.e!=Yt.i.gc();)for(Pt=u(kr(Yt),33),_=new pr(mr(H0(Pt).a.Kc(),new H));Zr(_);)k=u(qr(_),79),cC(k)||r4n(k,e,Se,ce);Se+=s.b+s.c,ce+=s.d+s.a,hw(t,Se,ce,!1,!0)}function wq(t){var e,n,r,s,o,h,d,w,k,_,L;if(t==null)throw et(new dd(Pu));if(k=t,o=t.length,w=!1,o>0&&(e=(Yr(0,t.length),t.charCodeAt(0)),(e==45||e==43)&&(t=t.substr(1),--o,w=e==45)),o==0)throw et(new dd(gw+k+'"'));for(;t.length>0&&(Yr(0,t.length),t.charCodeAt(0)==48);)t=t.substr(1),--o;if(o>(lue(),I0e)[10])throw et(new dd(gw+k+'"'));for(s=0;s0&&(L=-parseInt(t.substr(0,r),10),t=t.substr(r),o-=r,n=!1);o>=h;){if(r=parseInt(t.substr(0,h),10),t=t.substr(h),o-=h,n)n=!1;else{if(Oc(L,d)<0)throw et(new dd(gw+k+'"'));L=ja(L,_)}L=Qp(L,r)}if(Oc(L,0)>0)throw et(new dd(gw+k+'"'));if(!w&&(L=O8(L),Oc(L,0)<0))throw et(new dd(gw+k+'"'));return L}function e6t(t,e){JWt();var n,r,s,o,h,d,w;if(this.a=new G2t(this),this.b=t,this.c=e,this.f=Snt(Bo((Yu(),Pa),e)),this.f.dc())if((d=$3t(Pa,t))==e)for(this.e=!0,this.d=new le,this.f=new _k,this.f.Fc(Sb),u(gq(wD(Pa,Vl(t)),""),26)==t&&this.f.Fc(b_(Pa,Vl(t))),s=Yst(Pa,t).Kc();s.Ob();)switch(r=u(s.Pb(),170),Bv(Bo(Pa,r))){case 4:{this.d.Fc(r);break}case 5:{this.f.Gc(Snt(Bo(Pa,r)));break}}else if(go(),u(e,66).Oj())for(this.e=!0,this.f=null,this.d=new le,h=0,w=(t.i==null&&xd(t),t.i).length;h=0&&h0&&(u(Ao(t.b,e),124).a.b=n)}function r3n(t,e){var n,r,s,o,h,d,w,k,_,L,F,q,G,W,Z,bt;for(Ar(e,"Comment pre-processing",1),n=0,w=new S(t.a);w.a0&&(w=(Yr(0,e.length),e.charCodeAt(0)),w!=64)){if(w==37&&(L=e.lastIndexOf("%"),k=!1,L!=0&&(L==F-1||(k=(Yr(L+1,e.length),e.charCodeAt(L+1)==46))))){if(h=e.substr(1,L-1),Ct=ln("%",h)?null:r6t(h),r=0,k)try{r=Kl(e.substr(L+2),$a,Di)}catch(Pt){throw Pt=os(Pt),Et(Pt,127)?(d=Pt,et(new S$(d))):et(Pt)}for(Z=Bmt(t.Wg());Z.Ob();)if(G=nz(Z),Et(G,510)&&(s=u(G,590),Lt=s.d,(Ct==null?Lt==null:ln(Ct,Lt))&&r--==0))return s;return null}if(_=e.lastIndexOf("."),q=_==-1?e:e.substr(0,_),n=0,_!=-1)try{n=Kl(e.substr(_+1),$a,Di)}catch(Pt){if(Pt=os(Pt),Et(Pt,127))q=e;else throw et(Pt)}for(q=ln("%",q)?null:r6t(q),W=Bmt(t.Wg());W.Ob();)if(G=nz(W),Et(G,191)&&(o=u(G,191),bt=o.ne(),(q==null?bt==null:ln(q,bt))&&n--==0))return o;return null}return Wue(t,e)}function a3n(t){var e,n,r,s,o,h,d,w,k,_,L,F,q,G,W,Z,bt,Lt,Ct,Pt,Yt,ce,Se,Ge,Qe,$n,Gn;for(ce=new le,G=new S(t.b);G.a=e.length)return{done:!0};var s=e[r++];return{value:[s,n.get(s)],done:!1}}}},hbn()||(t.prototype.createObject=function(){return{}},t.prototype.get=function(e){return this.obj[":"+e]},t.prototype.set=function(e,n){this.obj[":"+e]=n},t.prototype[Jat]=function(e){delete this.obj[":"+e]},t.prototype.keys=function(){var e=[];for(var n in this.obj)n.charCodeAt(0)==58&&e.push(n.substring(1));return e}),t}function c3n(t){P5t();var e,n,r,s,o,h,d,w,k,_,L,F,q,G,W,Z;if(t==null)return null;if(L=t.length*8,L==0)return"";for(d=L%24,q=L/24|0,F=d!=0?q+1:q,o=null,o=Ot(Sh,Ed,25,F*4,15,1),k=0,_=0,e=0,n=0,r=0,h=0,s=0,w=0;w>24,k=(e&3)<<24>>24,G=e&-128?(e>>2^192)<<24>>24:e>>2<<24>>24,W=n&-128?(n>>4^240)<<24>>24:n>>4<<24>>24,Z=r&-128?(r>>6^252)<<24>>24:r>>6<<24>>24,o[h++]=np[G],o[h++]=np[W|k<<4],o[h++]=np[_<<2|Z],o[h++]=np[r&63];return d==8?(e=t[s],k=(e&3)<<24>>24,G=e&-128?(e>>2^192)<<24>>24:e>>2<<24>>24,o[h++]=np[G],o[h++]=np[k<<4],o[h++]=61,o[h++]=61):d==16&&(e=t[s],n=t[s+1],_=(n&15)<<24>>24,k=(e&3)<<24>>24,G=e&-128?(e>>2^192)<<24>>24:e>>2<<24>>24,W=n&-128?(n>>4^240)<<24>>24:n>>4<<24>>24,o[h++]=np[G],o[h++]=np[W|k<<4],o[h++]=np[_<<2],o[h++]=61),Fh(o,0,o.length)}function u3n(t,e){var n,r,s,o,h,d,w;if(t.e==0&&t.p>0&&(t.p=-(t.p-1)),t.p>$a&&Fwt(e,t.p-i2),h=e.q.getDate(),eD(e,1),t.k>=0&&Gen(e,t.k),t.c>=0?eD(e,t.c):t.k>=0?(w=new ryt(e.q.getFullYear()-i2,e.q.getMonth(),35),r=35-w.q.getDate(),eD(e,b.Math.min(r,h))):eD(e,h),t.f<0&&(t.f=e.q.getHours()),t.b>0&&t.f<12&&(t.f+=12),nYe(e,t.f==24&&t.g?0:t.f),t.j>=0&&nin(e,t.j),t.n>=0&&yin(e,t.n),t.i>=0&&ZVt(e,Wa(ja(tI(Ou(e.q.getTime()),jg),jg),t.i)),t.a&&(s=new vR,Fwt(s,s.q.getFullYear()-i2-80),eet(Ou(e.q.getTime()),Ou(s.q.getTime()))&&Fwt(e,s.q.getFullYear()-i2+100)),t.d>=0){if(t.c==-1)n=(7+t.d-e.q.getDay())%7,n>3&&(n-=7),d=e.q.getMonth(),eD(e,e.q.getDate()+n),e.q.getMonth()!=d&&eD(e,e.q.getDate()+(n>0?-7:7));else if(e.q.getDay()!=t.d)return!1}return t.o>$a&&(o=e.q.getTimezoneOffset(),ZVt(e,Wa(Ou(e.q.getTime()),(t.o-o)*60*jg))),!0}function _le(t,e){var n,r,s,o,h,d,w,k,_,L,F,q,G,W,Z,bt,Lt,Ct,Pt;if(s=K(e,(ie(),Bi)),!!Et(s,239)){for(G=u(s,33),W=e.e,F=new No(e.c),o=e.d,F.a+=o.b,F.b+=o.d,Pt=u(ze(G,(Ce(),YV)),174),Gu(Pt,(ml(),FG))&&(q=u(ze(G,$Tt),116),Pgt(q,o.a),ott(q,o.d),Fgt(q,o.b),zgt(q,o.c)),n=new le,_=new S(e.a);_.a<_.c.c.length;)for(w=u(Q(_),10),Et(K(w,Bi),239)?p3n(w,F):Et(K(w,Bi),186)&&!W&&(r=u(K(w,Bi),118),Lt=bue(e,w,r.g,r.f),S1(r,Lt.a,Lt.b)),bt=new S(w.j);bt.a0&&ue(t.p,_),ue(t.o,_);e-=r,q=w+e,k+=e*t.e,gh(t.a,d,pe(q)),gh(t.b,d,k),t.j=b.Math.max(t.j,q),t.k=b.Math.max(t.k,k),t.d+=e,e+=W}}function we(){we=J;var t;fc=new MM(SC,0),Fn=new MM(Lq,1),Wn=new MM(uot,2),Lr=new MM(lot,3),jn=new MM(hot,4),Z1=(pn(),new Qk((t=u(Yf(co),9),new hh(t,u(pf(t,t.length),9),0)))),Of=Dg(Zi(Fn,ct(ot(co,1),Nc,61,0,[]))),_h=Dg(Zi(Wn,ct(ot(co,1),Nc,61,0,[]))),eh=Dg(Zi(Lr,ct(ot(co,1),Nc,61,0,[]))),Xh=Dg(Zi(jn,ct(ot(co,1),Nc,61,0,[]))),Bu=Dg(Zi(Fn,ct(ot(co,1),Nc,61,0,[Lr]))),vu=Dg(Zi(Wn,ct(ot(co,1),Nc,61,0,[jn]))),Nf=Dg(Zi(Fn,ct(ot(co,1),Nc,61,0,[jn]))),hl=Dg(Zi(Fn,ct(ot(co,1),Nc,61,0,[Wn]))),nh=Dg(Zi(Lr,ct(ot(co,1),Nc,61,0,[jn]))),Ch=Dg(Zi(Wn,ct(ot(co,1),Nc,61,0,[Lr]))),fl=Dg(Zi(Fn,ct(ot(co,1),Nc,61,0,[Wn,jn]))),Fu=Dg(Zi(Wn,ct(ot(co,1),Nc,61,0,[Lr,jn]))),Ru=Dg(Zi(Fn,ct(ot(co,1),Nc,61,0,[Lr,jn]))),Ju=Dg(Zi(Fn,ct(ot(co,1),Nc,61,0,[Wn,Lr]))),nu=Dg(Zi(Fn,ct(ot(co,1),Nc,61,0,[Wn,Lr,jn])))}function Lle(t,e){var n,r,s,o,h,d,w,k,_,L,F,q,G,W,Z,bt,Lt,Ct;if(e.b!=0){for(q=new hs,d=null,G=null,r=Ms(b.Math.floor(b.Math.log(e.b)*b.Math.LOG10E)+1),w=0,Ct=gi(e,0);Ct.b!=Ct.d.c;)for(bt=u(di(Ct),86),qt(G)!==qt(K(bt,(Sc(),IS)))&&(G=Kr(K(bt,IS)),w=0),G!=null?d=G+XXt(w++,r):d=XXt(w++,r),Jt(bt,IS,d),Z=(s=gi(new Sp(bt).a.d,0),new p6(s));dR(Z.a);)W=u(di(Z.a),188).c,Cs(q,W,q.c.b,q.c),Jt(W,IS,d);for(F=new Rr,h=0;h=w){ir(bt.b>0),bt.a.Xb(bt.c=--bt.b);break}else W.a>k&&(s?(Hs(s.b,W.b),s.a=b.Math.max(s.a,W.a),Ol(bt)):(ue(W.b,L),W.c=b.Math.min(W.c,k),W.a=b.Math.max(W.a,w),s=W));s||(s=new gzt,s.c=k,s.a=w,Fm(bt,s),ue(s.b,L))}for(d=e.b,_=0,Z=new S(r);Z.ad?1:0:(t.b&&(t.b._b(o)&&(s=u(t.b.xc(o),19).a),t.b._b(w)&&(d=u(t.b.xc(w),19).a)),sd?1:0)):e.e.c.length!=0&&n.g.c.length!=0?1:-1}function d3n(t,e){var n,r,s,o,h,d,w,k,_,L,F,q,G,W,Z,bt,Lt,Ct,Pt,Yt,ce,Se;for(Ar(e,mfe,1),W=new le,ce=new le,k=new S(t.b);k.a0&&(Ct-=q),U5t(h,Ct),_=0,F=new S(h.a);F.a0),d.a.Xb(d.c=--d.b)),w=.4*r*_,!o&&d.be.d.c){if(q=t.c[e.a.d],Z=t.c[L.a.d],q==Z)continue;Ef(df(ff(gf(hf(new Dh,1),100),q),Z))}}}}}function r6t(t){fat();var e,n,r,s,o,h,d,w;if(t==null)return null;if(s=gd(t,Nu(37)),s<0)return t;for(w=new jl(t.substr(0,s)),e=Ot(tl,N4,25,4,15,1),d=0,r=0,h=t.length;ss+2&&iit((Yr(s+1,t.length),t.charCodeAt(s+1)),SAt,AAt)&&iit((Yr(s+2,t.length),t.charCodeAt(s+2)),SAt,AAt))if(n=$Ze((Yr(s+1,t.length),t.charCodeAt(s+1)),(Yr(s+2,t.length),t.charCodeAt(s+2))),s+=2,r>0?(n&192)==128?e[d++]=n<<24>>24:r=0:n>=128&&((n&224)==192?(e[d++]=n<<24>>24,r=2):(n&240)==224?(e[d++]=n<<24>>24,r=3):(n&248)==240&&(e[d++]=n<<24>>24,r=4)),r>0){if(d==r){switch(d){case 2:{$p(w,((e[0]&31)<<6|e[1]&63)&Ns);break}case 3:{$p(w,((e[0]&15)<<12|(e[1]&63)<<6|e[2]&63)&Ns);break}}d=0,r=0}}else{for(o=0;o0){if(h+r>t.length)return!1;d=Kz(t.substr(0,h+r),e)}else d=Kz(t,e);switch(o){case 71:return d=p4(t,h,ct(ot(Me,1),te,2,6,[hhe,fhe]),e),s.e=d,!0;case 77:return tbn(t,e,s,d,h);case 76:return ebn(t,e,s,d,h);case 69:return Udn(t,e,h,s);case 99:return Wdn(t,e,h,s);case 97:return d=p4(t,h,ct(ot(Me,1),te,2,6,["AM","PM"]),e),s.b=d,!0;case 121:return nbn(t,e,h,d,n,s);case 100:return d<=0?!1:(s.c=d,!0);case 83:return d<0?!1:aun(d,h,e[0],s);case 104:d==12&&(d=0);case 75:case 72:return d<0?!1:(s.f=d,s.g=!1,!0);case 107:return d<0?!1:(s.f=d,s.g=!0,!0);case 109:return d<0?!1:(s.j=d,!0);case 115:return d<0?!1:(s.n=d,!0);case 90:if(hce&&(G.c=ce-G.b),ue(h.d,new ynt(G,Oyt(h,G))),Lt=e==Fn?b.Math.max(Lt,W.b+k.b.rf().b):b.Math.min(Lt,W.b));for(Lt+=e==Fn?t.t:-t.t,Ct=Yyt((h.e=Lt,h)),Ct>0&&(u(Ao(t.b,e),124).a.b=Ct),_=F.Kc();_.Ob();)k=u(_.Pb(),111),!(!k.c||k.c.d.c.length<=0)&&(G=k.c.i,G.c-=k.e.a,G.d-=k.e.b)}function y3n(t){var e,n,r,s,o,h,d,w,k,_,L,F,q;for(e=new Rr,w=new lr(t);w.e!=w.i.gc();){for(d=u(kr(w),33),n=new na,Pi(Mut,d,n),q=new Rc,s=u(Hl(new kn(null,new Ov(new pr(mr(hI(d).a.Kc(),new H)))),xKt(q,nb(new Ee,new ne,new tr,ct(ot(xl,1),se,132,0,[(j1(),Zl)])))),83),Vte(n,u(s.xc((Rn(),!0)),14),new Ne),r=u(Hl(Qi(u(s.xc(!1),15).Lc(),new pp),nb(new Ee,new ne,new tr,ct(ot(xl,1),se,132,0,[Zl]))),15),h=r.Kc();h.Ob();)o=u(h.Pb(),79),F=Mse(o),F&&(k=u(gc(qo(e.f,F)),21),k||(k=Xoe(F),du(e.f,F,k)),io(n,k));for(s=u(Hl(new kn(null,new Ov(new pr(mr(H0(d).a.Kc(),new H)))),xKt(q,nb(new Ee,new ne,new tr,ct(ot(xl,1),se,132,0,[Zl])))),83),Vte(n,u(s.xc(!0),14),new We),r=u(Hl(Qi(u(s.xc(!1),15).Lc(),new uf),nb(new Ee,new ne,new tr,ct(ot(xl,1),se,132,0,[Zl]))),15),L=r.Kc();L.Ob();)_=u(L.Pb(),79),F=Dse(_),F&&(k=u(gc(qo(e.f,F)),21),k||(k=Xoe(F),du(e.f,F,k)),io(n,k))}}function x3n(t,e){aat();var n,r,s,o,h,d,w,k,_,L,F,q,G,W;if(w=Oc(t,0)<0,w&&(t=O8(t)),Oc(t,0)==0)switch(e){case 0:return"0";case 1:return I7;case 2:return"0.00";case 3:return"0.000";case 4:return"0.0000";case 5:return"0.00000";case 6:return"0.000000";default:return q=new Ap,e<0?q.a+="0E+":q.a+="0E",q.a+=e==$a?"2147483648":""+-e,q.a}_=18,L=Ot(Sh,Ed,25,_+1,15,1),n=_,W=t;do k=W,W=tI(W,10),L[--n]=$r(Wa(48,Qp(k,ja(W,10))))&Ns;while(Oc(W,0)!=0);if(s=Qp(Qp(Qp(_,n),e),1),e==0)return w&&(L[--n]=45),Fh(L,n,_-n);if(e>0&&Oc(s,-6)>=0){if(Oc(s,0)>=0){for(o=n+$r(s),d=_-1;d>=o;d--)L[d+1]=L[d];return L[++o]=46,w&&(L[--n]=45),Fh(L,n,_-n+1)}for(h=2;eet(h,Wa(O8(s),1));h++)L[--n]=48;return L[--n]=46,L[--n]=48,w&&(L[--n]=45),Fh(L,n,_-n)}return G=n+1,r=_,F=new Sm,w&&(F.a+="-"),r-G>=1?($p(F,L[n]),F.a+=".",F.a+=Fh(L,n+1,_-n-1)):F.a+=Fh(L,n,_-n),F.a+="E",Oc(s,0)>0&&(F.a+="+"),F.a+=""+v_(s),F.a}function k3n(t,e,n){var r,s,o,h,d,w,k,_,L,F,q;if(t.e.a.$b(),t.f.a.$b(),t.c.c=Ot(nr,De,1,0,5,1),t.i.c=Ot(nr,De,1,0,5,1),t.g.a.$b(),e)for(h=new S(e.a);h.a=1&&(Yt-k>0&&G>=0?(Du(L,L.i+Pt),Iu(L,L.j+w*k)):Yt-k<0&&q>=0&&(Du(L,L.i+Pt*Yt),Iu(L,L.j+w)));return Mo(t,(Ti(),jb),(Fl(),o=u(Yf(KS),9),new hh(o,u(pf(o,o.length),9),0))),new je(ce,_)}function Ile(t){var e,n,r,s,o,h,d,w,k,_,L,F,q,G;if(q=gs(Vo(u(St((!t.b&&(t.b=new Tn(Cr,t,4,7)),t.b),0),82))),G=gs(Vo(u(St((!t.c&&(t.c=new Tn(Cr,t,5,8)),t.c),0),82))),L=q==G,d=new Ra,e=u(ze(t,(oz(),JSt)),74),e&&e.b>=2){if((!t.a&&(t.a=new he(fs,t,6,6)),t.a).i==0)n=(xv(),s=new ud,s),Hr((!t.a&&(t.a=new he(fs,t,6,6)),t.a),n);else if((!t.a&&(t.a=new he(fs,t,6,6)),t.a).i>1)for(F=new A6((!t.a&&(t.a=new he(fs,t,6,6)),t.a));F.e!=F.i.gc();)rC(F);mI(e,u(St((!t.a&&(t.a=new he(fs,t,6,6)),t.a),0),202))}if(L)for(r=new lr((!t.a&&(t.a=new he(fs,t,6,6)),t.a));r.e!=r.i.gc();)for(n=u(kr(r),202),k=new lr((!n.a&&(n.a=new qs(Qh,n,5)),n.a));k.e!=k.i.gc();)w=u(kr(k),469),d.a=b.Math.max(d.a,w.a),d.b=b.Math.max(d.b,w.b);for(h=new lr((!t.n&&(t.n=new he(ec,t,1,7)),t.n));h.e!=h.i.gc();)o=u(kr(h),137),_=u(ze(o,qS),8),_&&S1(o,_.a,_.b),L&&(d.a=b.Math.max(d.a,o.i+o.g),d.b=b.Math.max(d.b,o.j+o.f));return d}function E3n(t,e,n){var r,s,o,h,d,w,k,_,L,F,q,G,W,Z,bt,Lt,Ct,Pt,Yt,ce,Se,Ge;for(Ct=e.c.length,s=new x4(t.a,n,null,null),Ge=Ot(wa,Do,25,Ct,15,1),W=Ot(wa,Do,25,Ct,15,1),G=Ot(wa,Do,25,Ct,15,1),Z=0,d=0;dGe[w]&&(Z=w),L=new S(t.a.b);L.aq&&(o&&(U2(ce,F),U2(Ge,pe(k.b-1))),Li=n.b,Js+=F+e,F=0,_=b.Math.max(_,n.b+n.c+yr)),Du(d,Li),Iu(d,Js),_=b.Math.max(_,Li+yr+n.c),F=b.Math.max(F,L),Li+=yr+e;if(_=b.Math.max(_,r),Gn=Js+F+n.a,GnCd,Qe=b.Math.abs(F.b-G.b)>Cd,(!n&&Ge&&Qe||n&&(Ge||Qe))&&pi(Z.a,Pt)),io(Z.a,r),r.b==0?F=Pt:F=(ir(r.b!=0),u(r.c.b.c,8)),zan(q,L,W),xee(s)==Se&&(Qa(Se.i)!=s.a&&(W=new Ra,x4t(W,Qa(Se.i),Lt)),Jt(Z,Alt,W)),hdn(q,Z,Lt),_.a.zc(q,_);Ua(Z,Yt),ma(Z,Se)}for(k=_.a.ec().Kc();k.Ob();)w=u(k.Pb(),17),Ua(w,null),ma(w,null);br(e)}function Ole(t){var e,n,r,s,o,h,d,w,k,_,L,F,q,G,W,Z,bt,Lt,Ct,Pt;if(t.gc()==1)return u(t.Xb(0),231);if(t.gc()<=0)return new v$;for(s=t.Kc();s.Ob();){for(n=u(s.Pb(),231),G=0,_=Di,L=Di,w=$a,k=$a,q=new S(n.e);q.ad&&(Ct=0,Pt+=h+bt,h=0),uvn(W,n,Ct,Pt),e=b.Math.max(e,Ct+Z.a),h=b.Math.max(h,Z.b),Ct+=Z.a+bt;return W}function Nle(t,e){var n,r,s,o,h,d,w,k,_,L,F,q,G;switch(_=new Hu,t.a.g){case 3:F=u(K(e.e,(ie(),Ib)),15),q=u(K(e.j,Ib),15),G=u(K(e.f,Ib),15),n=u(K(e.e,X4),15),r=u(K(e.j,X4),15),s=u(K(e.f,X4),15),h=new le,Hs(h,F),q.Jc(new jX),Hs(h,Et(q,152)?V6(u(q,152)):Et(q,131)?u(q,131).a:Et(q,54)?new bv(q):new Am(q)),Hs(h,G),o=new le,Hs(o,n),Hs(o,Et(r,152)?V6(u(r,152)):Et(r,131)?u(r,131).a:Et(r,54)?new bv(r):new Am(r)),Hs(o,s),Jt(e.f,Ib,h),Jt(e.f,X4,o),Jt(e.f,REt,e.f),Jt(e.e,Ib,null),Jt(e.e,X4,null),Jt(e.j,Ib,null),Jt(e.j,X4,null);break;case 1:io(_,e.e.a),pi(_,e.i.n),io(_,ib(e.j.a)),pi(_,e.a.n),io(_,e.f.a);break;default:io(_,e.e.a),io(_,ib(e.j.a)),io(_,e.f.a)}Nh(e.f.a),io(e.f.a,_),Ua(e.f,e.e.c),d=u(K(e.e,(Ce(),$o)),74),k=u(K(e.j,$o),74),w=u(K(e.f,$o),74),(d||k||w)&&(L=new Hu,Vvt(L,w),Vvt(L,k),Vvt(L,d),Jt(e.f,$o,L)),Ua(e.j,null),ma(e.j,null),Ua(e.e,null),ma(e.e,null),Fo(e.a,null),Fo(e.i,null),e.g&&Nle(t,e.g)}function S3n(t){P5t();var e,n,r,s,o,h,d,w,k,_,L,F,q,G,W,Z;if(t==null||(o=L$(t),G=gcn(o),G%4!=0))return null;if(W=G/4|0,W==0)return Ot(tl,N4,25,0,15,1);for(L=null,e=0,n=0,r=0,s=0,h=0,d=0,w=0,k=0,q=0,F=0,_=0,L=Ot(tl,N4,25,W*3,15,1);q>4)<<24>>24,L[F++]=((n&15)<<4|r>>2&15)<<24>>24,L[F++]=(r<<6|s)<<24>>24}return!fM(h=o[_++])||!fM(d=o[_++])?null:(e=td[h],n=td[d],w=o[_++],k=o[_++],td[w]==-1||td[k]==-1?w==61&&k==61?n&15?null:(Z=Ot(tl,N4,25,q*3+1,15,1),qc(L,0,Z,0,q*3),Z[F]=(e<<2|n>>4)<<24>>24,Z):w!=61&&k==61?(r=td[w],r&3?null:(Z=Ot(tl,N4,25,q*3+2,15,1),qc(L,0,Z,0,q*3),Z[F++]=(e<<2|n>>4)<<24>>24,Z[F]=((n&15)<<4|r>>2&15)<<24>>24,Z)):null:(r=td[w],s=td[k],L[F++]=(e<<2|n>>4)<<24>>24,L[F++]=((n&15)<<4|r>>2&15)<<24>>24,L[F++]=(r<<6|s)<<24>>24,L))}function A3n(t,e){var n,r,s,o,h,d,w,k,_,L,F,q,G,W,Z,bt,Lt,Ct,Pt,Yt;for(Ar(e,mfe,1),G=u(K(t,(Ce(),Y0)),218),s=new S(t.b);s.a=2){for(W=!0,F=new S(o.j),n=u(Q(F),11),q=null;F.a0&&(s=u(Fe(Z.c.a,ce-1),10),h=t.i[s.p],Ge=b.Math.ceil(G3(t.n,s,Z)),o=Yt.a.e-Z.d.d-(h.a.e+s.o.b+s.d.a)-Ge),k=ms,ce0&&Se.a.e.e-Se.a.a-(Se.b.e.e-Se.b.a)<0,G=Ct.a.e.e-Ct.a.a-(Ct.b.e.e-Ct.b.a)<0&&Se.a.e.e-Se.a.a-(Se.b.e.e-Se.b.a)>0,q=Ct.a.e.e+Ct.b.aSe.b.e.e+Se.a.a,Pt=0,!W&&!G&&(F?o+L>0?Pt=L:k-r>0&&(Pt=r):q&&(o+d>0?Pt=d:k-Lt>0&&(Pt=Lt))),Yt.a.e+=Pt,Yt.b&&(Yt.d.e+=Pt),!1))}function Fle(t,e,n){var r,s,o,h,d,w,k,_,L,F;if(r=new fh(e.qf().a,e.qf().b,e.rf().a,e.rf().b),s=new S6,t.c)for(h=new S(e.wf());h.ak&&(r.a+=zGt(Ot(Sh,Ed,25,-k,15,1))),r.a+="Is",gd(w,Nu(32))>=0)for(s=0;s=r.o.b/2}else Lt=!L;Lt?(bt=u(K(r,(ie(),Ox)),15),bt?F?o=bt:(s=u(K(r,Ax),15),s?bt.gc()<=s.gc()?o=bt:o=s:(o=new le,Jt(r,Ax,o))):(o=new le,Jt(r,Ox,o))):(s=u(K(r,(ie(),Ax)),15),s?L?o=s:(bt=u(K(r,Ox),15),bt?s.gc()<=bt.gc()?o=s:o=bt:(o=new le,Jt(r,Ox,o))):(o=new le,Jt(r,Ax,o))),o.Fc(t),Jt(t,(ie(),IV),n),e.d==n?(ma(e,null),n.e.c.length+n.g.c.length==0&&ac(n,null),kon(n)):(Ua(e,null),n.e.c.length+n.g.c.length==0&&ac(n,null)),Nh(e.a)}function I3n(t,e){var n,r,s,o,h,d,w,k,_,L,F,q,G,W,Z,bt,Lt,Ct,Pt,Yt,ce,Se,Ge,Qe,$n,Gn,yr,Li;for(Lt=new Ca(t.b,0),_=e.Kc(),G=0,k=u(_.Pb(),19).a,Yt=0,n=new na,Se=new S0;Lt.b=t.a&&(r=vwn(t,Lt),_=b.Math.max(_,r.b),Pt=b.Math.max(Pt,r.d),ue(d,new _a(Lt,r)));for(Ge=new le,k=0;k<_;++k)Rm(Ge,0,(ir(Z.b>0),Z.a.Xb(Z.c=--Z.b),Qe=new Oh(t.b),Fm(Z,Qe),ir(Z.b0?(k=0,Z&&(k+=d),k+=(Qe-1)*h,Ct&&(k+=d),Ge&&Ct&&(k=b.Math.max(k,b2n(Ct,h,Lt,Se))),k0){for(F=_<100?null:new Lp(_),k=new zmt(e),G=k.g,bt=Ot(Br,oi,25,_,15,1),r=0,Pt=new Gv(_),s=0;s=0;)if(q!=null?Ni(q,G[w]):qt(q)===qt(G[w])){bt.length<=r&&(Z=bt,bt=Ot(Br,oi,25,2*bt.length,15,1),qc(Z,0,bt,0,r)),bt[r++]=s,Hr(Pt,G[w]);break t}if(q=q,qt(q)===qt(d))break}}if(k=Pt,G=Pt.g,_=r,r>bt.length&&(Z=bt,bt=Ot(Br,oi,25,r,15,1),qc(Z,0,bt,0,r)),r>0){for(Ct=!0,o=0;o=0;)nx(t,bt[h]);if(r!=_){for(s=_;--s>=r;)nx(k,s);Z=bt,bt=Ot(Br,oi,25,r,15,1),qc(Z,0,bt,0,r)}e=k}}}else for(e=ghn(t,e),s=t.i;--s>=0;)e.Hc(t.g[s])&&(nx(t,s),Ct=!0);if(Ct){if(bt!=null){for(n=e.gc(),L=n==1?C_(t,4,e.Kc().Pb(),null,bt[0],W):C_(t,6,e,bt,bt[0],W),F=n<100?null:new Lp(n),s=e.Kc();s.Ob();)q=s.Pb(),F=Gbt(t,u(q,72),F);F?(F.Ei(L),F.Fi()):Oi(t.e,L)}else{for(F=SXe(e.gc()),s=e.Kc();s.Ob();)q=s.Pb(),F=Gbt(t,u(q,72),F);F&&F.Fi()}return!0}else return!1}function B3n(t,e){var n,r,s,o,h,d,w,k,_,L,F,q,G,W,Z,bt,Lt,Ct;for(n=new lie(e),n.a||yvn(e),k=xbn(e),w=new $v,Z=new ice,W=new S(e.a);W.a0||n.o==Y1&&s0?(L=u(Fe(F.c.a,h-1),10),Ge=G3(t.b,F,L),Z=F.n.b-F.d.d-(L.n.b+L.o.b+L.d.a+Ge)):Z=F.n.b-F.d.d,k=b.Math.min(Z,k),hh?x7(t,e,n):x7(t,n,e),sh?1:0}return r=u(K(e,(ie(),Bc)),19).a,o=u(K(n,Bc),19).a,r>o?x7(t,e,n):x7(t,n,e),ro?1:0}function i6t(t,e,n,r){var s,o,h,d,w,k,_,L,F,q,G,W,Z,bt,Lt;if(Re(Be(ze(e,(Ti(),DG)))))return pn(),pn(),wo;if(k=(!e.a&&(e.a=new he(bs,e,10,11)),e.a).i!=0,L=_0n(e),_=!L.dc(),k||_){if(s=u(ze(e,_9),149),!s)throw et(new F3("Resolved algorithm is not set; apply a LayoutAlgorithmResolver before computing layout."));if(Lt=S2t(s,(v7(),VG)),Gre(e),!k&&_&&!Lt)return pn(),pn(),wo;if(w=new le,qt(ze(e,r5))===qt((j0(),Qg))&&(S2t(s,qG)||S2t(s,zG)))for(q=Sce(t,e),G=new hs,io(G,(!e.a&&(e.a=new he(bs,e,10,11)),e.a));G.b!=0;)F=u(G.b==0?null:(ir(G.b!=0),bh(G,G.a.a)),33),Gre(F),bt=qt(ze(F,r5))===qt(HS),bt||eb(F,jS)&&!zwt(s,ze(F,_9))?(d=i6t(t,F,n,r),Hs(w,d),Mo(F,r5,HS),Vce(F)):io(G,(!F.a&&(F.a=new he(bs,F,10,11)),F.a));else for(q=(!e.a&&(e.a=new he(bs,e,10,11)),e.a).i,h=new lr((!e.a&&(e.a=new he(bs,e,10,11)),e.a));h.e!=h.i.gc();)o=u(kr(h),33),d=i6t(t,o,n,r),Hs(w,d),Vce(o);for(Z=new S(w);Z.a=0?q=Z6(d):q=qD(Z6(d)),t.Ye(v9,q)),k=new Ra,F=!1,t.Xe(Iw)?(bbt(k,u(t.We(Iw),8)),F=!0):fYe(k,h.a/2,h.b/2),q.g){case 4:Jt(_,bu,(mh(),g2)),Jt(_,NV,(ob(),V4)),_.o.b=h.b,W<0&&(_.o.a=-W),Qs(L,(we(),Wn)),F||(k.a=h.a),k.a-=h.a;break;case 2:Jt(_,bu,(mh(),Ny)),Jt(_,NV,(ob(),u9)),_.o.b=h.b,W<0&&(_.o.a=-W),Qs(L,(we(),jn)),F||(k.a=0);break;case 1:Jt(_,Db,(F0(),U4)),_.o.a=h.a,W<0&&(_.o.b=-W),Qs(L,(we(),Lr)),F||(k.b=h.b),k.b-=h.b;break;case 3:Jt(_,Db,(F0(),Sx)),_.o.a=h.a,W<0&&(_.o.b=-W),Qs(L,(we(),Fn)),F||(k.b=0)}if(bbt(L.n,k),Jt(_,Iw,k),e==qb||e==g0||e==eu){if(G=0,e==qb&&t.Xe(Ug))switch(q.g){case 1:case 2:G=u(t.We(Ug),19).a;break;case 3:case 4:G=-u(t.We(Ug),19).a}else switch(q.g){case 4:case 2:G=o.b,e==g0&&(G/=s.b);break;case 1:case 3:G=o.a,e==g0&&(G/=s.a)}Jt(_,Lw,G)}return Jt(_,yc,q),_}function $3n(t){var e,n,r,s,o,h,d,w,k,_,L,F,q,G,W,Z,bt,Lt,Ct,Pt,Yt,ce,Se,Ge,Qe;if(n=Xt(xe(K(t.a.j,(Ce(),wTt)))),n<-1||!t.a.i||D6(u(K(t.a.o,xs),98))||uc(t.a.o,(we(),Wn)).gc()<2&&uc(t.a.o,jn).gc()<2)return!0;if(t.a.c.Rf())return!1;for(Yt=0,Pt=0,Ct=new le,w=t.a.e,k=0,_=w.length;k<_;++k){for(d=w[k],F=d,q=0,W=F.length;q=n}function z3n(){$pt();function t(r){var s=this;this.dispatch=function(o){var h=o.data;switch(h.cmd){case"algorithms":var d=Kyt((pn(),new T(new T1(C2.b))));r.postMessage({id:h.id,data:d});break;case"categories":var w=Kyt((pn(),new T(new T1(C2.c))));r.postMessage({id:h.id,data:w});break;case"options":var k=Kyt((pn(),new T(new T1(C2.d))));r.postMessage({id:h.id,data:k});break;case"register":Kmn(h.algorithms),r.postMessage({id:h.id});break;case"layout":Awn(h.graph,h.layoutOptions||{},h.options||{}),r.postMessage({id:h.id,data:h.graph});break}},this.saveDispatch=function(o){try{s.dispatch(o)}catch(h){r.postMessage({id:o.data.id,error:h})}}}function e(r){var s=this;this.dispatcher=new t({postMessage:function(o){s.onmessage({data:o})}}),this.postMessage=function(o){setTimeout(function(){s.dispatcher.saveDispatch({data:o})},0)}}if(typeof document===rot&&typeof self!==rot){var n=new t(self);self.onmessage=n.saveDispatch}else typeof p!==rot&&p.exports&&(Object.defineProperty(v,"__esModule",{value:!0}),p.exports={default:e,Worker:e})}function q3n(t){t.N||(t.N=!0,t.b=vc(t,0),ps(t.b,0),ps(t.b,1),ps(t.b,2),t.bb=vc(t,1),ps(t.bb,0),ps(t.bb,1),t.fb=vc(t,2),ps(t.fb,3),ps(t.fb,4),Yi(t.fb,5),t.qb=vc(t,3),ps(t.qb,0),Yi(t.qb,1),Yi(t.qb,2),ps(t.qb,3),ps(t.qb,4),Yi(t.qb,5),ps(t.qb,6),t.a=mi(t,4),t.c=mi(t,5),t.d=mi(t,6),t.e=mi(t,7),t.f=mi(t,8),t.g=mi(t,9),t.i=mi(t,10),t.j=mi(t,11),t.k=mi(t,12),t.n=mi(t,13),t.o=mi(t,14),t.p=mi(t,15),t.q=mi(t,16),t.s=mi(t,17),t.r=mi(t,18),t.t=mi(t,19),t.u=mi(t,20),t.v=mi(t,21),t.w=mi(t,22),t.B=mi(t,23),t.A=mi(t,24),t.C=mi(t,25),t.D=mi(t,26),t.F=mi(t,27),t.G=mi(t,28),t.H=mi(t,29),t.J=mi(t,30),t.I=mi(t,31),t.K=mi(t,32),t.M=mi(t,33),t.L=mi(t,34),t.P=mi(t,35),t.Q=mi(t,36),t.R=mi(t,37),t.S=mi(t,38),t.T=mi(t,39),t.U=mi(t,40),t.V=mi(t,41),t.X=mi(t,42),t.W=mi(t,43),t.Y=mi(t,44),t.Z=mi(t,45),t.$=mi(t,46),t._=mi(t,47),t.ab=mi(t,48),t.cb=mi(t,49),t.db=mi(t,50),t.eb=mi(t,51),t.gb=mi(t,52),t.hb=mi(t,53),t.ib=mi(t,54),t.jb=mi(t,55),t.kb=mi(t,56),t.lb=mi(t,57),t.mb=mi(t,58),t.nb=mi(t,59),t.ob=mi(t,60),t.pb=mi(t,61))}function H3n(t,e){var n,r,s,o,h,d,w,k,_,L,F,q,G,W,Z,bt,Lt,Ct,Pt;if(Lt=0,e.f.a==0)for(Z=new S(t);Z.ak&&(An(k,e.c.length),u(e.c[k],200)).a.c.length==0;)Au(e,(An(k,e.c.length),e.c[k]));if(!w){--o;continue}if(Lvn(e,_,s,w,F,n,k,r)){L=!0;continue}if(F){if(Fwn(e,_,s,w,n,k,r)){L=!0;continue}else if(xyt(_,s)){s.c=!0,L=!0;continue}}else if(xyt(_,s)){s.c=!0,L=!0;continue}if(L)continue}if(xyt(_,s)){s.c=!0,L=!0,w&&(w.k=!1);continue}else Fz(s.q)}return L}function wat(t,e,n,r,s,o,h){var d,w,k,_,L,F,q,G,W,Z,bt,Lt,Ct,Pt,Yt,ce,Se,Ge,Qe,$n,Gn,yr,Li,Js;for(W=0,$n=0,k=new S(t.b);k.aW&&(o&&(U2(ce,q),U2(Ge,pe(_.b-1)),ue(t.d,G),d.c=Ot(nr,De,1,0,5,1)),Li=n.b,Js+=q+e,q=0,L=b.Math.max(L,n.b+n.c+yr)),d.c[d.c.length]=w,rie(w,Li,Js),L=b.Math.max(L,Li+yr+n.c),q=b.Math.max(q,F),Li+=yr+e,G=w;if(Hs(t.a,d),ue(t.d,u(Fe(d,d.c.length-1),157)),L=b.Math.max(L,r),Gn=Js+q+n.a,Gn1&&(h=b.Math.min(h,b.Math.abs(u(r1(d.a,1),8).b-_.b)))));else for(W=new S(e.j);W.as&&(o=F.a-s,h=Di,r.c=Ot(nr,De,1,0,5,1),s=F.a),F.a>=s&&(r.c[r.c.length]=d,d.a.b>1&&(h=b.Math.min(h,b.Math.abs(u(r1(d.a,d.a.b-2),8).b-F.b)))));if(r.c.length!=0&&o>e.o.a/2&&h>e.o.b/2){for(q=new zc,ac(q,e),Qs(q,(we(),Fn)),q.n.a=e.o.a/2,bt=new zc,ac(bt,e),Qs(bt,Lr),bt.n.a=e.o.a/2,bt.n.b=e.o.b,w=new S(r);w.a=k.b?Ua(d,bt):Ua(d,q)):(k=u(jZe(d.a),8),Z=d.a.b==0?I1(d.c):u(cj(d.a),8),Z.b>=k.b?ma(d,bt):ma(d,q)),L=u(K(d,(Ce(),$o)),74),L&&ey(L,k,!0);e.n.a=s-e.o.a/2}}function K3n(t,e,n){var r,s,o,h,d,w,k,_,L,F,q,G,W,Z,bt,Lt,Ct,Pt,Yt,ce,Se,Ge,Qe,$n,Gn,yr,Li,Js,ih,nf;if($n=null,yr=e,Gn=VQt(t,$Qt(n),yr),F_(Gn,I0(yr,Dd)),Li=u(t4(t.g,ix(D0(yr,Sct))),33),F=D0(yr,"sourcePort"),r=null,F&&(r=ix(F)),Js=u(t4(t.j,r),118),!Li)throw d=o7(yr),G="An edge must have a source node (edge id: '"+d,W=G+G7,et(new fd(W));if(Js&&!wd(M1(Js),Li))throw w=I0(yr,Dd),Z="The source port of an edge must be a port of the edge's source node (edge id: '"+w,bt=Z+G7,et(new fd(bt));if(Ge=(!Gn.b&&(Gn.b=new Tn(Cr,Gn,4,7)),Gn.b),o=null,Js?o=Js:o=Li,Hr(Ge,o),ih=u(t4(t.g,ix(D0(yr,r8t))),33),q=D0(yr,"targetPort"),s=null,q&&(s=ix(q)),nf=u(t4(t.j,s),118),!ih)throw L=o7(yr),Lt="An edge must have a target node (edge id: '"+L,Ct=Lt+G7,et(new fd(Ct));if(nf&&!wd(M1(nf),ih))throw k=I0(yr,Dd),Pt="The target port of an edge must be a port of the edge's target node (edge id: '"+k,Yt=Pt+G7,et(new fd(Yt));if(Qe=(!Gn.c&&(Gn.c=new Tn(Cr,Gn,5,8)),Gn.c),h=null,nf?h=nf:h=ih,Hr(Qe,h),(!Gn.b&&(Gn.b=new Tn(Cr,Gn,4,7)),Gn.b).i==0||(!Gn.c&&(Gn.c=new Tn(Cr,Gn,5,8)),Gn.c).i==0)throw _=I0(yr,Dd),ce=F1e+_,Se=ce+G7,et(new fd(Se));return Vz(yr,Gn),Rgn(yr,Gn),$n=ait(t,yr,Gn),$n}function zle(t,e){var n,r,s,o,h,d,w,k,_,L,F,q,G,W,Z,bt,Lt,Ct,Pt,Yt,ce,Se,Ge,Qe,$n;return L=Qvn(_u(t,(we(),Z1)),e),G=h4(_u(t,Of),e),Pt=h4(_u(t,eh),e),Ge=Bz(_u(t,Xh),e),F=Bz(_u(t,_h),e),Lt=h4(_u(t,Nf),e),W=h4(_u(t,hl),e),ce=h4(_u(t,nh),e),Yt=h4(_u(t,Ch),e),Qe=Bz(_u(t,vu),e),bt=h4(_u(t,Bu),e),Ct=h4(_u(t,fl),e),Se=h4(_u(t,Fu),e),$n=Bz(_u(t,Ru),e),q=Bz(_u(t,Ju),e),Z=h4(_u(t,nu),e),n=r4(ct(ot(wa,1),Do,25,15,[Lt.a,Ge.a,ce.a,$n.a])),r=r4(ct(ot(wa,1),Do,25,15,[G.a,L.a,Pt.a,Z.a])),s=bt.a,o=r4(ct(ot(wa,1),Do,25,15,[W.a,F.a,Yt.a,q.a])),k=r4(ct(ot(wa,1),Do,25,15,[Lt.b,G.b,W.b,Ct.b])),w=r4(ct(ot(wa,1),Do,25,15,[Ge.b,L.b,F.b,Z.b])),_=Qe.b,d=r4(ct(ot(wa,1),Do,25,15,[ce.b,Pt.b,Yt.b,Se.b])),Lg(_u(t,Z1),n+s,k+_),Lg(_u(t,nu),n+s,k+_),Lg(_u(t,Of),n+s,0),Lg(_u(t,eh),n+s,k+_+w),Lg(_u(t,Xh),0,k+_),Lg(_u(t,_h),n+s+r,k+_),Lg(_u(t,hl),n+s+r,0),Lg(_u(t,nh),0,k+_+w),Lg(_u(t,Ch),n+s+r,k+_+w),Lg(_u(t,vu),0,k),Lg(_u(t,Bu),n,0),Lg(_u(t,Fu),0,k+_+w),Lg(_u(t,Ju),n+s+r,0),h=new Ra,h.a=r4(ct(ot(wa,1),Do,25,15,[n+r+s+o,Qe.a,Ct.a,Se.a])),h.b=r4(ct(ot(wa,1),Do,25,15,[k+w+_+d,bt.b,$n.b,q.b])),h}function Y3n(t){var e,n,r,s,o,h,d,w,k,_,L,F,q,G,W,Z;for(W=new le,F=new S(t.d.b);F.as.d.d+s.d.a?_.f.d=!0:(_.f.d=!0,_.f.a=!0))),r.b!=r.d.c&&(e=n);_&&(o=u(or(t.f,h.d.i),57),e.bo.d.d+o.d.a?_.f.d=!0:(_.f.d=!0,_.f.a=!0))}for(d=new pr(mr(Zo(q).a.Kc(),new H));Zr(d);)h=u(qr(d),17),h.a.b!=0&&(e=u(cj(h.a),8),h.d.j==(we(),Fn)&&(Z=new pC(e,new je(e.a,s.d.d),s,h),Z.f.a=!0,Z.a=h.d,W.c[W.c.length]=Z),h.d.j==Lr&&(Z=new pC(e,new je(e.a,s.d.d+s.d.a),s,h),Z.f.d=!0,Z.a=h.d,W.c[W.c.length]=Z))}return W}function X3n(t,e,n){var r,s,o,h,d,w,k,_,L;if(Ar(n,"Network simplex node placement",1),t.e=e,t.n=u(K(e,(ie(),Y4)),304),dmn(t),Wfn(t),Ts(oc(new kn(null,new Cn(t.e.b,16)),new tQ),new Njt(t)),Ts(Qi(oc(Qi(oc(new kn(null,new Cn(t.e.b,16)),new RE),new lQ),new hQ),new fQ),new Ojt(t)),Re(Be(K(t.e,(Ce(),wS))))&&(h=Kc(n,1),Ar(h,"Straight Edges Pre-Processing",1),Iyn(t),br(h)),Aln(t.f),o=u(K(e,xS),19).a*t.f.a.c.length,Xst(Opt(Npt(ont(t.f),o),!1),Kc(n,1)),t.d.a.gc()!=0){for(h=Kc(n,1),Ar(h,"Flexible Where Space Processing",1),d=u(Mv(Nj(Cu(new kn(null,new Cn(t.f.a,16)),new eQ),new KX)),19).a,w=u(Mv(Oj(Cu(new kn(null,new Cn(t.f.a,16)),new nQ),new YX)),19).a,k=w-d,_=Lv(new V2,t.f),L=Lv(new V2,t.f),Ef(df(ff(hf(gf(new Dh,2e4),k),_),L)),Ts(Qi(Qi(Ant(t.i),new rQ),new iQ),new DYt(d,_,k,L)),s=t.d.a.ec().Kc();s.Ob();)r=u(s.Pb(),213),r.g=1;Xst(Opt(Npt(ont(t.f),o),!1),Kc(h,1)),br(h)}Re(Be(K(e,wS)))&&(h=Kc(n,1),Ar(h,"Straight Edges Post-Processing",1),Bdn(t),br(h)),byn(t),t.e=null,t.f=null,t.i=null,t.c=null,al(t.k),t.j=null,t.a=null,t.o=null,t.d.a.$b(),br(n)}function Q3n(t,e,n){var r,s,o,h,d,w,k,_,L,F,q,G,W,Z,bt,Lt,Ct,Pt,Yt;for(d=new S(t.a.b);d.a0)if(r=L.gc(),k=Ms(b.Math.floor((r+1)/2))-1,s=Ms(b.Math.ceil((r+1)/2))-1,e.o==Y1)for(_=s;_>=k;_--)e.a[Pt.p]==Pt&&(W=u(L.Xb(_),46),G=u(W.a,10),!C0(n,W.b)&&q>t.b.e[G.p]&&(e.a[G.p]=Pt,e.g[Pt.p]=e.g[G.p],e.a[Pt.p]=e.g[Pt.p],e.f[e.g[Pt.p].p]=(Rn(),!!(Re(e.f[e.g[Pt.p].p])&Pt.k==(Kn(),ha))),q=t.b.e[G.p]));else for(_=k;_<=s;_++)e.a[Pt.p]==Pt&&(bt=u(L.Xb(_),46),Z=u(bt.a,10),!C0(n,bt.b)&&q=G&&(Lt>G&&(q.c=Ot(nr,De,1,0,5,1),G=Lt),q.c[q.c.length]=h);q.c.length!=0&&(F=u(Fe(q,Iz(e,q.c.length)),128),Gn.a.Bc(F)!=null,F.s=W++,e5t(F,Qe,ce),q.c=Ot(nr,De,1,0,5,1))}for(Pt=t.c.length+1,d=new S(t);d.a$n.s&&(Ol(n),Au($n.i,r),r.c>0&&(r.a=$n,ue($n.t,r),r.b=Se,ue(Se.i,r)))}function s6t(t){var e,n,r,s,o;switch(e=t.c,e){case 11:return t.Ml();case 12:return t.Ol();case 14:return t.Ql();case 15:return t.Tl();case 16:return t.Rl();case 17:return t.Ul();case 21:return Si(t),Ai(),Ai(),aA;case 10:switch(t.a){case 65:return t.yl();case 90:return t.Dl();case 122:return t.Kl();case 98:return t.El();case 66:return t.zl();case 60:return t.Jl();case 62:return t.Hl()}}switch(o=U3n(t),e=t.c,e){case 3:return t.Zl(o);case 4:return t.Xl(o);case 5:return t.Yl(o);case 0:if(t.a==123&&t.d=48&&e<=57){for(r=e-48;s=48&&e<=57;)if(r=r*10+e-48,r<0)throw et(new Wr(Jr((Ur(),u8t))))}else throw et(new Wr(Jr((Ur(),lde))));if(n=r,e==44){if(s>=t.j)throw et(new Wr(Jr((Ur(),fde))));if((e=Ia(t.i,s++))>=48&&e<=57){for(n=e-48;s=48&&e<=57;)if(n=n*10+e-48,n<0)throw et(new Wr(Jr((Ur(),u8t))));if(r>n)throw et(new Wr(Jr((Ur(),dde))))}else n=-1}if(e!=125)throw et(new Wr(Jr((Ur(),hde))));t.sl(s)?(o=(Ai(),Ai(),new Gm(9,o)),t.d=s+1):(o=(Ai(),Ai(),new Gm(3,o)),t.d=s),o.dm(r),o.cm(n),Si(t)}}return o}function qle(t,e,n,r,s){var o,h,d,w,k,_,L,F,q,G,W,Z,bt,Lt,Ct,Pt,Yt,ce,Se,Ge,Qe,$n,Gn;for(W=new iu(e.b),Pt=new iu(e.b),F=new iu(e.b),Ge=new iu(e.b),Z=new iu(e.b),Se=gi(e,0);Se.b!=Se.d.c;)for(Yt=u(di(Se),11),d=new S(Yt.g);d.a0,bt=Yt.g.c.length>0,k&&bt?F.c[F.c.length]=Yt:k?W.c[W.c.length]=Yt:bt&&(Pt.c[Pt.c.length]=Yt);for(G=new S(W);G.a1)for(G=new A6((!t.a&&(t.a=new he(fs,t,6,6)),t.a));G.e!=G.i.gc();)rC(G);for(h=u(St((!t.a&&(t.a=new he(fs,t,6,6)),t.a),0),202),Z=Li,Li>Yt+Pt?Z=Yt+Pt:Lice+W?bt=ce+W:JsYt-Pt&&Zce-W&&btLi+yr?Ge=Li+yr:YtJs+Se?Qe=Js+Se:ceLi-yr&&GeJs-Se&&Qen&&(F=n-1),q=pN+wl(e,24)*NI*L-L/2,q<0?q=1:q>r&&(q=r-1),s=(xv(),w=new mp,w),R$(s,F),j$(s,q),Hr((!h.a&&(h.a=new qs(Qh,h,5)),h.a),s)}function Ce(){Ce=J,zlt=(Ti(),o3e),WTt=c3e,SO=RSt,Sf=u3e,Fx=jSt,Ow=l3e,qy=$St,m9=zSt,y9=qSt,qlt=OG,Nw=zb,Hlt=h3e,yS=GSt,XV=zx,CO=(c6t(),ive),Q4=sve,Fb=ave,Z4=ove,Vve=new po(IG,pe(0)),w9=eve,UTt=nve,Px=rve,e_t=Lve,KTt=lve,YTt=dve,Glt=yve,XTt=bve,QTt=wve,QV=Ove,Ult=Mve,JTt=_ve,ZTt=Eve,t_t=Sve,Dw=Ybe,mS=Xbe,Flt=dbe,TTt=pbe,zTt=new Sv(12),$Tt=new po($b,zTt),xTt=(z0(),A9),Y0=new po(gSt,xTt),jy=new po(kl,0),Gve=new po(tft,pe(1)),BV=new po(jx,B7),Pb=DG,xs=$S,v9=o5,Bve=GO,Pd=Zye,By=r5,Uve=new po(eft,(Rn(),!0)),Ry=UO,Ob=Wht,Nb=jb,YV=m2,$lt=MG,yTt=(xo(),h0),Jl=new po(Fw,yTt),Mw=s5,WV=ESt,$y=Uy,Hve=Jht,VTt=FSt,HTt=(c4(),ZO),new po(DSt,HTt),$ve=Yht,zve=Xht,qve=Qht,jve=Kht,Vlt=uve,PTt=Bbe,Rlt=Fbe,xS=cve,bu=Lbe,Fy=sbe,vS=ibe,Py=G2e,vTt=U2e,Ilt=X2e,_O=W2e,Olt=nbe,FTt=Rbe,BTt=jbe,MTt=Ebe,KV=Jbe,jlt=qbe,Blt=wbe,jTt=Wbe,ETt=hbe,Plt=fbe,Dlt=AG,RTt=$be,jV=R2e,gTt=B2e,RV=F2e,STt=xbe,CTt=ybe,ATt=kbe,p9=a5,$o=i5,Gg=bSt,Fd=Uht,Nlt=Ght,wTt=Z2e,Ug=Zht,bS=e3e,VV=n3e,Iw=OSt,qTt=r3e,b9=i3e,ITt=Dbe,OTt=Obe,zy=$x,Llt=P2e,NTt=Pbe,HV=cbe,qV=obe,UV=WO,DTt=Cbe,wS=Vbe,AO=HSt,mTt=abe,GTt=tve,kTt=ube,Rve=Abe,Fve=tbe,LTt=ySt,GV=Mbe,zV=ebe,p2=V2e,bTt=q2e,$V=$2e,pTt=z2e,Mlt=H2e,Nx=j2e,_Tt=mbe}function yat(t,e){aat();var n,r,s,o,h,d,w,k,_,L,F,q,G,W,Z,bt,Lt,Ct,Pt,Yt,ce,Se,Ge,Qe,$n,Gn,yr,Li;if(Ge=t.e,G=t.d,s=t.a,Ge==0)switch(e){case 0:return"0";case 1:return I7;case 2:return"0.00";case 3:return"0.000";case 4:return"0.0000";case 5:return"0.00000";case 6:return"0.000000";default:return ce=new Ap,e<0?ce.a+="0E+":ce.a+="0E",ce.a+=-e,ce.a}if(Ct=G*10+1+7,Pt=Ot(Sh,Ed,25,Ct+1,15,1),n=Ct,G==1)if(d=s[0],d<0){Li=Xs(d,Eo);do W=Li,Li=tI(Li,10),Pt[--n]=48+$r(Qp(W,ja(Li,10)))&Ns;while(Oc(Li,0)!=0)}else{Li=d;do W=Li,Li=Li/10|0,Pt[--n]=48+(W-Li*10)&Ns;while(Li!=0)}else{$n=Ot(Br,oi,25,G,15,1),yr=G,qc(s,0,$n,0,yr);t:for(;;){for(Se=0,k=yr-1;k>=0;k--)Gn=Wa(L0(Se,32),Xs($n[k],Eo)),bt=c1n(Gn),$n[k]=$r(bt),Se=$r(Rp(bt,32));Lt=$r(Se),Z=n;do Pt[--n]=48+Lt%10&Ns;while((Lt=Lt/10|0)!=0&&n!=0);for(r=9-Z+n,w=0;w0;w++)Pt[--n]=48;for(L=yr-1;$n[L]==0;L--)if(L==0)break t;yr=L+1}for(;Pt[n]==48;)++n}if(q=Ge<0,h=Ct-n-e-1,e==0)return q&&(Pt[--n]=45),Fh(Pt,n,Ct-n);if(e>0&&h>=-6){if(h>=0){for(_=n+h,F=Ct-1;F>=_;F--)Pt[F+1]=Pt[F];return Pt[++_]=46,q&&(Pt[--n]=45),Fh(Pt,n,Ct-n+1)}for(L=2;L<-h+1;L++)Pt[--n]=48;return Pt[--n]=46,Pt[--n]=48,q&&(Pt[--n]=45),Fh(Pt,n,Ct-n)}return Qe=n+1,o=Ct,Yt=new Sm,q&&(Yt.a+="-"),o-Qe>=1?($p(Yt,Pt[n]),Yt.a+=".",Yt.a+=Fh(Pt,n+1,Ct-n-1)):Yt.a+=Fh(Pt,n,Ct-n),Yt.a+="E",h>0&&(Yt.a+="+"),Yt.a+=""+h,Yt.a}function Gle(t,e){var n,r,s,o,h,d,w,k,_,L,F,q,G,W,Z,bt,Lt,Ct,Pt,Yt,ce;switch(t.c=e,t.g=new Rr,n=(Lm(),new _m(t.c)),r=new cr(n),qyt(r),Ct=Kr(ze(t.c,(nI(),BCt))),w=u(ze(t.c,Fht),316),Yt=u(ze(t.c,Bht),429),h=u(ze(t.c,NCt),482),Pt=u(ze(t.c,Pht),430),t.j=Xt(xe(ze(t.c,kye))),d=t.a,w.g){case 0:d=t.a;break;case 1:d=t.b;break;case 2:d=t.i;break;case 3:d=t.e;break;case 4:d=t.f;break;default:throw et(new Bn(aH+(w.f!=null?w.f:""+w.g)))}if(t.d=new pXt(d,Yt,h),Jt(t.d,(V8(),rS),Be(ze(t.c,yye))),t.d.c=Re(Be(ze(t.c,PCt))),Yj(t.c).i==0)return t.d;for(L=new lr(Yj(t.c));L.e!=L.i.gc();){for(_=u(kr(L),33),q=_.g/2,F=_.f/2,ce=new je(_.i+q,_.j+F);Il(t.g,ce);)Nm(ce,(b.Math.random()-.5)*Cd,(b.Math.random()-.5)*Cd);W=u(ze(_,(Ti(),WO)),142),Z=new IXt(ce,new fh(ce.a-q-t.j/2-W.b,ce.b-F-t.j/2-W.d,_.g+t.j+(W.b+W.c),_.f+t.j+(W.d+W.a))),ue(t.d.i,Z),Pi(t.g,ce,new _a(Z,_))}switch(Pt.g){case 0:if(Ct==null)t.d.d=u(Fe(t.d.i,0),65);else for(Lt=new S(t.d.i);Lt.a1&&Cs(_,bt,_.c.b,_.c),N$(s)));bt=Lt}return _}function i4n(t,e,n){var r,s,o,h,d,w,k,_,L,F,q,G,W,Z,bt,Lt,Ct,Pt,Yt,ce,Se,Ge,Qe,$n,Gn,yr,Li,Js,ih,nf,ed;for(Ar(n,"Greedy cycle removal",1),Ct=e.a,ed=Ct.c.length,t.a=Ot(Br,oi,25,ed,15,1),t.c=Ot(Br,oi,25,ed,15,1),t.b=Ot(Br,oi,25,ed,15,1),k=0,bt=new S(Ct);bt.a0?yr+1:1);for(h=new S(ce.g);h.a0?yr+1:1)}t.c[k]==0?pi(t.e,W):t.a[k]==0&&pi(t.f,W),++k}for(G=-1,q=1,L=new le,t.d=u(K(e,(ie(),Ix)),230);ed>0;){for(;t.e.b!=0;)Js=u(lnt(t.e),10),t.b[Js.p]=G--,A5t(t,Js),--ed;for(;t.f.b!=0;)ih=u(lnt(t.f),10),t.b[ih.p]=q++,A5t(t,ih),--ed;if(ed>0){for(F=$a,Lt=new S(Ct);Lt.a=F&&(Pt>F&&(L.c=Ot(nr,De,1,0,5,1),F=Pt),L.c[L.c.length]=W));_=t.Zf(L),t.b[_.p]=q++,A5t(t,_),--ed}}for(Li=Ct.c.length+1,k=0;kt.b[nf]&&(lw(r,!0),Jt(e,yO,(Rn(),!0)));t.a=null,t.c=null,t.b=null,Nh(t.f),Nh(t.e),br(n)}function Wle(t,e){var n,r,s,o,h,d,w,k,_,L,F,q,G,W,Z,bt;for(r=new le,d=new le,Z=e/2,q=t.gc(),s=u(t.Xb(0),8),bt=u(t.Xb(1),8),G=Nst(s.a,s.b,bt.a,bt.b,Z),ue(r,(An(0,G.c.length),u(G.c[0],8))),ue(d,(An(1,G.c.length),u(G.c[1],8))),k=2;k=0;w--)pi(n,(An(w,h.c.length),u(h.c[w],8)));return n}function s4n(t){var e,n,r,s,o,h,d,w,k,_,L,F,q;if(h=!0,L=null,r=null,s=null,e=!1,q=J3e,k=null,o=null,d=0,w=$it(t,d,LAt,MAt),w=0&&ln(t.substr(d,2),"//")?(d+=2,w=$it(t,d,ZS,JS),r=t.substr(d,w-d),d=w):L!=null&&(d==t.length||(Yr(d,t.length),t.charCodeAt(d)!=47))&&(h=!1,w=abt(t,Nu(35),d),w==-1&&(w=t.length),r=t.substr(d,w-d),d=w);if(!n&&d0&&Ia(_,_.length-1)==58&&(s=_,d=w)),d=t.j){t.a=-1,t.c=1;return}if(e=Ia(t.i,t.d++),t.a=e,t.b==1){switch(e){case 92:if(r=10,t.d>=t.j)throw et(new Wr(Jr((Ur(),dH))));t.a=Ia(t.i,t.d++);break;case 45:(t.e&512)==512&&t.d=t.j||Ia(t.i,t.d)!=63)break;if(++t.d>=t.j)throw et(new Wr(Jr((Ur(),Rct))));switch(e=Ia(t.i,t.d++),e){case 58:r=13;break;case 61:r=14;break;case 33:r=15;break;case 91:r=19;break;case 62:r=18;break;case 60:if(t.d>=t.j)throw et(new Wr(Jr((Ur(),Rct))));if(e=Ia(t.i,t.d++),e==61)r=16;else if(e==33)r=17;else throw et(new Wr(Jr((Ur(),U1e))));break;case 35:for(;t.d=t.j)throw et(new Wr(Jr((Ur(),dH))));t.a=Ia(t.i,t.d++);break;default:r=0}t.c=r}function o4n(t){var e,n,r,s,o,h,d,w,k,_,L,F,q,G,W,Z,bt,Lt,Ct,Pt,Yt,ce,Se,Ge,Qe,$n,Gn,yr;if(Se=u(K(t,(Ce(),xs)),98),Se!=(xa(),Q1)&&Se!=k2){for(G=t.b,q=G.c.length,_=new iu((Gl(q+2,_at),O$(Wa(Wa(5,q+2),(q+2)/10|0)))),W=new iu((Gl(q+2,_at),O$(Wa(Wa(5,q+2),(q+2)/10|0)))),ue(_,new Rr),ue(_,new Rr),ue(W,new le),ue(W,new le),ce=new le,e=0;e=Yt||!Aun(bt,r))&&(r=qXt(e,_)),Fo(bt,r),o=new pr(mr(Zo(bt).a.Kc(),new H));Zr(o);)s=u(qr(o),17),!t.a[s.p]&&(W=s.c.i,--t.e[W.p],t.e[W.p]==0&&M8(d7(q,W)));for(k=_.c.length-1;k>=0;--k)ue(e.b,(An(k,_.c.length),u(_.c[k],29)));e.a.c=Ot(nr,De,1,0,5,1),br(n)}function Kle(t){var e,n,r,s,o,h,d,w,k;for(t.b=1,Si(t),e=null,t.c==0&&t.a==94?(Si(t),e=(Ai(),Ai(),new ql(4)),Yc(e,0,W7),d=new ql(4)):d=(Ai(),Ai(),new ql(4)),s=!0;(k=t.c)!=1;){if(k==0&&t.a==93&&!s){e&&(yC(e,d),d=e);break}if(n=t.a,r=!1,k==10)switch(n){case 100:case 68:case 119:case 87:case 115:case 83:py(d,k7(n)),r=!0;break;case 105:case 73:case 99:case 67:n=(py(d,k7(n)),-1),n<0&&(r=!0);break;case 112:case 80:if(w=F4t(t,n),!w)throw et(new Wr(Jr((Ur(),jct))));py(d,w),r=!0;break;default:n=b5t(t)}else if(k==24&&!s){if(e&&(yC(e,d),d=e),o=Kle(t),yC(d,o),t.c!=0||t.a!=93)throw et(new Wr(Jr((Ur(),nde))));break}if(Si(t),!r){if(k==0){if(n==91)throw et(new Wr(Jr((Ur(),o8t))));if(n==93)throw et(new Wr(Jr((Ur(),c8t))));if(n==45&&!s&&t.a!=93)throw et(new Wr(Jr((Ur(),$ct))))}if(t.c!=0||t.a!=45||n==45&&s)Yc(d,n,n);else{if(Si(t),(k=t.c)==1)throw et(new Wr(Jr((Ur(),gH))));if(k==0&&t.a==93)Yc(d,n,n),Yc(d,45,45);else{if(k==0&&t.a==93||k==24)throw et(new Wr(Jr((Ur(),$ct))));if(h=t.a,k==0){if(h==91)throw et(new Wr(Jr((Ur(),o8t))));if(h==93)throw et(new Wr(Jr((Ur(),c8t))));if(h==45)throw et(new Wr(Jr((Ur(),$ct))))}else k==10&&(h=b5t(t));if(Si(t),n>h)throw et(new Wr(Jr((Ur(),sde))));Yc(d,n,h)}}}s=!1}if(t.c==1)throw et(new Wr(Jr((Ur(),gH))));return b4(d),wC(d),t.b=0,Si(t),d}function u4n(t){Vr(t.c,si,ct(ot(Me,1),te,2,6,[za,"http://www.w3.org/2001/XMLSchema#decimal"])),Vr(t.d,si,ct(ot(Me,1),te,2,6,[za,"http://www.w3.org/2001/XMLSchema#integer"])),Vr(t.e,si,ct(ot(Me,1),te,2,6,[za,"http://www.w3.org/2001/XMLSchema#boolean"])),Vr(t.f,si,ct(ot(Me,1),te,2,6,[za,"EBoolean",ki,"EBoolean:Object"])),Vr(t.i,si,ct(ot(Me,1),te,2,6,[za,"http://www.w3.org/2001/XMLSchema#byte"])),Vr(t.g,si,ct(ot(Me,1),te,2,6,[za,"http://www.w3.org/2001/XMLSchema#hexBinary"])),Vr(t.j,si,ct(ot(Me,1),te,2,6,[za,"EByte",ki,"EByte:Object"])),Vr(t.n,si,ct(ot(Me,1),te,2,6,[za,"EChar",ki,"EChar:Object"])),Vr(t.t,si,ct(ot(Me,1),te,2,6,[za,"http://www.w3.org/2001/XMLSchema#double"])),Vr(t.u,si,ct(ot(Me,1),te,2,6,[za,"EDouble",ki,"EDouble:Object"])),Vr(t.F,si,ct(ot(Me,1),te,2,6,[za,"http://www.w3.org/2001/XMLSchema#float"])),Vr(t.G,si,ct(ot(Me,1),te,2,6,[za,"EFloat",ki,"EFloat:Object"])),Vr(t.I,si,ct(ot(Me,1),te,2,6,[za,"http://www.w3.org/2001/XMLSchema#int"])),Vr(t.J,si,ct(ot(Me,1),te,2,6,[za,"EInt",ki,"EInt:Object"])),Vr(t.N,si,ct(ot(Me,1),te,2,6,[za,"http://www.w3.org/2001/XMLSchema#long"])),Vr(t.O,si,ct(ot(Me,1),te,2,6,[za,"ELong",ki,"ELong:Object"])),Vr(t.Z,si,ct(ot(Me,1),te,2,6,[za,"http://www.w3.org/2001/XMLSchema#short"])),Vr(t.$,si,ct(ot(Me,1),te,2,6,[za,"EShort",ki,"EShort:Object"])),Vr(t._,si,ct(ot(Me,1),te,2,6,[za,"http://www.w3.org/2001/XMLSchema#string"]))}function l4n(t){var e,n,r,s,o,h,d,w,k,_,L,F,q,G,W,Z,bt,Lt,Ct,Pt,Yt,ce,Se,Ge,Qe,$n,Gn,yr;if(t.c.length==1)return An(0,t.c.length),u(t.c[0],135);if(t.c.length<=0)return new m$;for(w=new S(t);w.aL&&(Gn=0,yr+=_+Se,_=0),ypn(Yt,h,Gn,yr),e=b.Math.max(e,Gn+ce.a),_=b.Math.max(_,ce.b),Gn+=ce.a+Se;for(Pt=new Rr,n=new Rr,Qe=new S(t);Qe.aPst(o))&&(L=o);for(!L&&(L=(An(0,Z.c.length),u(Z.c[0],180))),W=new S(e.b);W.a=-1900?1:0,n>=4?ni(t,ct(ot(Me,1),te,2,6,[hhe,fhe])[d]):ni(t,ct(ot(Me,1),te,2,6,["BC","AD"])[d]);break;case 121:iln(t,n,r);break;case 77:cvn(t,n,r);break;case 107:w=s.q.getHours(),w==0?Jd(t,24,n):Jd(t,w,n);break;case 83:Lpn(t,n,s);break;case 69:_=r.q.getDay(),n==5?ni(t,ct(ot(Me,1),te,2,6,["S","M","T","W","T","F","S"])[_]):n==4?ni(t,ct(ot(Me,1),te,2,6,[jat,$at,zat,qat,Hat,Vat,Gat])[_]):ni(t,ct(ot(Me,1),te,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])[_]);break;case 97:s.q.getHours()>=12&&s.q.getHours()<24?ni(t,ct(ot(Me,1),te,2,6,["AM","PM"])[1]):ni(t,ct(ot(Me,1),te,2,6,["AM","PM"])[0]);break;case 104:L=s.q.getHours()%12,L==0?Jd(t,12,n):Jd(t,L,n);break;case 75:F=s.q.getHours()%12,Jd(t,F,n);break;case 72:q=s.q.getHours(),Jd(t,q,n);break;case 99:G=r.q.getDay(),n==5?ni(t,ct(ot(Me,1),te,2,6,["S","M","T","W","T","F","S"])[G]):n==4?ni(t,ct(ot(Me,1),te,2,6,[jat,$at,zat,qat,Hat,Vat,Gat])[G]):n==3?ni(t,ct(ot(Me,1),te,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])[G]):Jd(t,G,1);break;case 76:W=r.q.getMonth(),n==5?ni(t,ct(ot(Me,1),te,2,6,["J","F","M","A","M","J","J","A","S","O","N","D"])[W]):n==4?ni(t,ct(ot(Me,1),te,2,6,[Aat,Lat,Mat,Dat,ux,Iat,Oat,Nat,Pat,Fat,Bat,Rat])[W]):n==3?ni(t,ct(ot(Me,1),te,2,6,["Jan","Feb","Mar","Apr",ux,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"])[W]):Jd(t,W+1,n);break;case 81:Z=r.q.getMonth()/3|0,n<4?ni(t,ct(ot(Me,1),te,2,6,["Q1","Q2","Q3","Q4"])[Z]):ni(t,ct(ot(Me,1),te,2,6,["1st quarter","2nd quarter","3rd quarter","4th quarter"])[Z]);break;case 100:bt=r.q.getDate(),Jd(t,bt,n);break;case 109:k=s.q.getMinutes(),Jd(t,k,n);break;case 115:h=s.q.getSeconds(),Jd(t,h,n);break;case 122:n<4?ni(t,o.c[0]):ni(t,o.c[1]);break;case 118:ni(t,o.b);break;case 90:n<3?ni(t,w0n(o)):n==3?ni(t,x0n(o)):ni(t,k0n(o.a));break;default:return!1}return!0}function o6t(t,e,n,r){var s,o,h,d,w,k,_,L,F,q,G,W,Z,bt,Lt,Ct,Pt,Yt,ce,Se,Ge,Qe,$n,Gn,yr,Li;if(Pce(e),w=u(St((!e.b&&(e.b=new Tn(Cr,e,4,7)),e.b),0),82),_=u(St((!e.c&&(e.c=new Tn(Cr,e,5,8)),e.c),0),82),d=Vo(w),k=Vo(_),h=(!e.a&&(e.a=new he(fs,e,6,6)),e.a).i==0?null:u(St((!e.a&&(e.a=new he(fs,e,6,6)),e.a),0),202),Se=u(or(t.a,d),10),Gn=u(or(t.a,k),10),Ge=null,yr=null,Et(w,186)&&(ce=u(or(t.a,w),299),Et(ce,11)?Ge=u(ce,11):Et(ce,10)&&(Se=u(ce,10),Ge=u(Fe(Se.j,0),11))),Et(_,186)&&($n=u(or(t.a,_),299),Et($n,11)?yr=u($n,11):Et($n,10)&&(Gn=u($n,10),yr=u(Fe(Gn.j,0),11))),!Se||!Gn)throw et(new MT("The source or the target of edge "+e+" could not be found. This usually happens when an edge connects a node laid out by ELK Layered to a node in another level of hierarchy laid out by either another instance of ELK Layered or another layout algorithm alltogether. The former can be solved by setting the hierarchyHandling option to INCLUDE_CHILDREN."));for(W=new Rv,Ho(W,e),Jt(W,(ie(),Bi),e),Jt(W,(Ce(),$o),null),q=u(K(r,tu),21),Se==Gn&&q.Fc((ko(),fS)),Ge||(Yt=(yo(),lu),Qe=null,h&&H3(u(K(Se,xs),98))&&(Qe=new je(h.j,h.k),GQt(Qe,nD(e)),xZt(Qe,n),Xm(k,d)&&(Yt=ll,$i(Qe,Se.n))),Ge=Oue(Se,Qe,Yt,r)),yr||(Yt=(yo(),ll),Li=null,h&&H3(u(K(Gn,xs),98))&&(Li=new je(h.b,h.c),GQt(Li,nD(e)),xZt(Li,n)),yr=Oue(Gn,Li,Yt,Qa(Gn))),Ua(W,Ge),ma(W,yr),(Ge.e.c.length>1||Ge.g.c.length>1||yr.e.c.length>1||yr.g.c.length>1)&&q.Fc((ko(),hS)),F=new lr((!e.n&&(e.n=new he(ec,e,1,7)),e.n));F.e!=F.i.gc();)if(L=u(kr(F),137),!Re(Be(ze(L,Pb)))&&L.a)switch(Z=xit(L),ue(W.b,Z),u(K(Z,Fd),272).g){case 1:case 2:q.Fc((ko(),h9));break;case 0:q.Fc((ko(),l9)),Jt(Z,Fd,(F1(),C9))}if(o=u(K(r,vS),314),bt=u(K(r,KV),315),s=o==(K6(),vO)||bt==(tC(),Zlt),h&&(!h.a&&(h.a=new qs(Qh,h,5)),h.a).i!=0&&s){for(Lt=iI(h),G=new Hu,Pt=gi(Lt,0);Pt.b!=Pt.d.c;)Ct=u(di(Pt),8),pi(G,new No(Ct));Jt(W,OEt,G)}return W}function g4n(t){t.gb||(t.gb=!0,t.b=vc(t,0),ps(t.b,18),Yi(t.b,19),t.a=vc(t,1),ps(t.a,1),Yi(t.a,2),Yi(t.a,3),Yi(t.a,4),Yi(t.a,5),t.o=vc(t,2),ps(t.o,8),ps(t.o,9),Yi(t.o,10),Yi(t.o,11),Yi(t.o,12),Yi(t.o,13),Yi(t.o,14),Yi(t.o,15),Yi(t.o,16),Yi(t.o,17),Yi(t.o,18),Yi(t.o,19),Yi(t.o,20),Yi(t.o,21),Yi(t.o,22),Yi(t.o,23),Ro(t.o),Ro(t.o),Ro(t.o),Ro(t.o),Ro(t.o),Ro(t.o),Ro(t.o),Ro(t.o),Ro(t.o),Ro(t.o),t.p=vc(t,3),ps(t.p,2),ps(t.p,3),ps(t.p,4),ps(t.p,5),Yi(t.p,6),Yi(t.p,7),Ro(t.p),Ro(t.p),t.q=vc(t,4),ps(t.q,8),t.v=vc(t,5),Yi(t.v,9),Ro(t.v),Ro(t.v),Ro(t.v),t.w=vc(t,6),ps(t.w,2),ps(t.w,3),ps(t.w,4),Yi(t.w,5),t.B=vc(t,7),Yi(t.B,1),Ro(t.B),Ro(t.B),Ro(t.B),t.Q=vc(t,8),Yi(t.Q,0),Ro(t.Q),t.R=vc(t,9),ps(t.R,1),t.S=vc(t,10),Ro(t.S),Ro(t.S),Ro(t.S),Ro(t.S),Ro(t.S),Ro(t.S),Ro(t.S),Ro(t.S),Ro(t.S),Ro(t.S),Ro(t.S),Ro(t.S),Ro(t.S),Ro(t.S),Ro(t.S),t.T=vc(t,11),Yi(t.T,10),Yi(t.T,11),Yi(t.T,12),Yi(t.T,13),Yi(t.T,14),Ro(t.T),Ro(t.T),t.U=vc(t,12),ps(t.U,2),ps(t.U,3),Yi(t.U,4),Yi(t.U,5),Yi(t.U,6),Yi(t.U,7),Ro(t.U),t.V=vc(t,13),Yi(t.V,10),t.W=vc(t,14),ps(t.W,18),ps(t.W,19),ps(t.W,20),Yi(t.W,21),Yi(t.W,22),Yi(t.W,23),t.bb=vc(t,15),ps(t.bb,10),ps(t.bb,11),ps(t.bb,12),ps(t.bb,13),ps(t.bb,14),ps(t.bb,15),ps(t.bb,16),Yi(t.bb,17),Ro(t.bb),Ro(t.bb),t.eb=vc(t,16),ps(t.eb,2),ps(t.eb,3),ps(t.eb,4),ps(t.eb,5),ps(t.eb,6),ps(t.eb,7),Yi(t.eb,8),Yi(t.eb,9),t.ab=vc(t,17),ps(t.ab,0),ps(t.ab,1),t.H=vc(t,18),Yi(t.H,0),Yi(t.H,1),Yi(t.H,2),Yi(t.H,3),Yi(t.H,4),Yi(t.H,5),Ro(t.H),t.db=vc(t,19),Yi(t.db,2),t.c=mi(t,20),t.d=mi(t,21),t.e=mi(t,22),t.f=mi(t,23),t.i=mi(t,24),t.g=mi(t,25),t.j=mi(t,26),t.k=mi(t,27),t.n=mi(t,28),t.r=mi(t,29),t.s=mi(t,30),t.t=mi(t,31),t.u=mi(t,32),t.fb=mi(t,33),t.A=mi(t,34),t.C=mi(t,35),t.D=mi(t,36),t.F=mi(t,37),t.G=mi(t,38),t.I=mi(t,39),t.J=mi(t,40),t.L=mi(t,41),t.M=mi(t,42),t.N=mi(t,43),t.O=mi(t,44),t.P=mi(t,45),t.X=mi(t,46),t.Y=mi(t,47),t.Z=mi(t,48),t.$=mi(t,49),t._=mi(t,50),t.cb=mi(t,51),t.K=mi(t,52))}function Ti(){Ti=J;var t,e;jS=new rs(e1e),_9=new rs(n1e),uSt=(t0(),$ht),Zye=new vn(Kxt,uSt),jx=new vn(px,null),Jye=new rs(qkt),hSt=(ay(),Zi(Hht,ct(ot(Vht,1),se,291,0,[qht]))),AG=new vn(Jq,hSt),GO=new vn(WI,(Rn(),!1)),fSt=(xo(),h0),Fw=new vn(Qxt,fSt),pSt=(z0(),nft),gSt=new vn(GI,pSt),wSt=new vn(sH,!1),mSt=(j0(),NG),r5=new vn(Zq,mSt),LSt=new Sv(12),$b=new vn(pw,LSt),LG=new vn(jI,!1),ySt=new vn(rct,!1),KO=new vn(MC,!1),NSt=(xa(),k2),$S=new vn(kot,NSt),$x=new rs(tH),IG=new rs(RI),tft=new rs(Nq),eft=new rs(LC),xSt=new Hu,i5=new vn(akt,xSt),e3e=new vn(ukt,!1),n3e=new vn(lkt,!1),kSt=new TT,WO=new vn(fkt,kSt),DG=new vn(Uxt,!1),a3e=new vn(r1e,1),new vn(i1e,!0),pe(0),new vn(s1e,pe(100)),new vn(a1e,!1),pe(0),new vn(o1e,pe(4e3)),pe(0),new vn(c1e,pe(400)),new vn(u1e,!1),new vn(l1e,!1),new vn(h1e,!0),new vn(f1e,!1),lSt=(mz(),aft),t3e=new vn(zkt,lSt),o3e=new vn(Nxt,10),c3e=new vn(Pxt,10),RSt=new vn(bot,20),u3e=new vn(Fxt,10),jSt=new vn(xot,2),l3e=new vn(Bxt,10),$St=new vn(Rxt,0),OG=new vn(zxt,5),zSt=new vn(jxt,1),qSt=new vn($xt,1),zb=new vn(yy,20),h3e=new vn(qxt,10),GSt=new vn(Hxt,10),zx=new rs(Vxt),VSt=new vGt,HSt=new vn(dkt,VSt),i3e=new rs(nct),MSt=!1,r3e=new vn(ect,MSt),TSt=new Sv(5),ESt=new vn(Zxt,TSt),_St=(ly(),e=u(Yf(_o),9),new hh(e,u(pf(e,e.length),9),0)),s5=new vn(R7,_St),ISt=(c4(),x2),DSt=new vn(ekt,ISt),Yht=new rs(nkt),Xht=new rs(rkt),Qht=new rs(ikt),Kht=new rs(skt),CSt=(t=u(Yf(KS),9),new hh(t,u(pf(t,t.length),9),0)),jb=new vn(L4,CSt),ASt=on((ml(),M9)),m2=new vn(bx,ASt),SSt=new je(0,0),a5=new vn(vx,SSt),MG=new vn(tct,!1),dSt=(F1(),C9),Uht=new vn(okt,dSt),Ght=new vn(Pq,!1),pe(1),new vn(d1e,null),OSt=new rs(hkt),Zht=new rs(ckt),BSt=(we(),fc),o5=new vn(Wxt,BSt),kl=new rs(Gxt),PSt=(cl(),on(E2)),Uy=new vn(j7,PSt),Jht=new vn(Jxt,!1),FSt=new vn(tkt,!0),UO=new vn(Yxt,!1),Wht=new vn(Xxt,!1),bSt=new vn(vot,1),vSt=(Gz(),ift),new vn(g1e,vSt),s3e=!0}function ie(){ie=J;var t,e;Bi=new rs(V6t),LEt=new rs("coordinateOrigin"),Clt=new rs("processors"),AEt=new Ks("compoundNode",(Rn(),!1)),xO=new Ks("insideConnections",!1),OEt=new rs("originalBendpoints"),NEt=new rs("originalDummyNodePosition"),PEt=new rs("originalLabelEdge"),EO=new rs("representedLabels"),dS=new rs("endLabels"),Lx=new rs("endLabel.origin"),Dx=new Ks("labelSide",(Wl(),QO)),W4=new Ks("maxEdgeThickness",0),K1=new Ks("reversed",!1),Ix=new rs(Xhe),c1=new Ks("longEdgeSource",null),Uh=new Ks("longEdgeTarget",null),Oy=new Ks("longEdgeHasLabelDummies",!1),kO=new Ks("longEdgeBeforeLabelDummy",!1),NV=new Ks("edgeConstraint",(ob(),ult)),Aw=new rs("inLayerLayoutUnit"),Db=new Ks("inLayerConstraint",(F0(),mO)),Mx=new Ks("inLayerSuccessorConstraint",new le),IEt=new Ks("inLayerSuccessorConstraintBetweenNonDummies",!1),ul=new rs("portDummy"),OV=new Ks("crossingHint",pe(0)),tu=new Ks("graphProperties",(e=u(Yf(blt),9),new hh(e,u(pf(e,e.length),9),0))),yc=new Ks("externalPortSide",(we(),fc)),DEt=new Ks("externalPortSize",new Ra),xlt=new rs("externalPortReplacedDummies"),PV=new rs("externalPortReplacedDummy"),Iy=new Ks("externalPortConnections",(t=u(Yf(co),9),new hh(t,u(pf(t,t.length),9),0))),Lw=new Ks(qhe,0),SEt=new rs("barycenterAssociates"),Ox=new rs("TopSideComments"),Ax=new rs("BottomSideComments"),IV=new rs("CommentConnectionPort"),Elt=new Ks("inputCollect",!1),_lt=new Ks("outputCollect",!1),yO=new Ks("cyclic",!1),MEt=new rs("crossHierarchyMap"),Alt=new rs("targetOffset"),new Ks("splineLabelSize",new Ra),Y4=new rs("spacings"),FV=new Ks("partitionConstraint",!1),Cw=new rs("breakingPoint.info"),REt=new rs("splines.survivingEdge"),Ib=new rs("splines.route.start"),X4=new rs("splines.edgeChain"),BEt=new rs("originalPortConstraints"),d9=new rs("selfLoopHolder"),g9=new rs("splines.nsPortY"),Bc=new rs("modelOrder"),Tlt=new rs("longEdgeTargetNode"),Sw=new Ks(Efe,!1),K4=new Ks(Efe,!1),klt=new rs("layerConstraints.hiddenNodes"),FEt=new rs("layerConstraints.opposidePort"),Slt=new rs("targetNode.modelOrder")}function c6t(){c6t=J,YEt=(ED(),_V),abe=new vn(Z6t,YEt),wbe=new vn(J6t,(Rn(),!1)),eTt=(f$(),ylt),Ebe=new vn(jq,eTt),Rbe=new vn(txt,!1),jbe=new vn(ext,!0),P2e=new vn(nxt,!1),uTt=(mD(),eht),tve=new vn(rxt,uTt),pe(1),cve=new vn(ixt,pe(7)),uve=new vn(sxt,!1),mbe=new vn(axt,!1),KEt=(pb(),olt),sbe=new vn(Aot,KEt),iTt=(Hz(),Klt),Bbe=new vn(HI,iTt),nTt=(mh(),TO),Lbe=new vn(oxt,nTt),pe(-1),Abe=new vn(cxt,pe(-1)),pe(-1),Mbe=new vn(uxt,pe(-1)),pe(-1),Dbe=new vn(Lot,pe(4)),pe(-1),Obe=new vn(Mot,pe(2)),rTt=(w4(),nG),Fbe=new vn(Dot,rTt),pe(0),Pbe=new vn(Iot,pe(0)),Cbe=new vn(Oot,pe(Di)),WEt=(K6(),Cx),ibe=new vn(NC,WEt),G2e=new vn(lxt,!1),Z2e=new vn(Not,.1),nbe=new vn(Pot,!1),pe(-1),tbe=new vn(hxt,pe(-1)),pe(-1),ebe=new vn(fxt,pe(-1)),pe(0),U2e=new vn(dxt,pe(40)),UEt=(W8(),wlt),X2e=new vn(Fot,UEt),GEt=wO,W2e=new vn($q,GEt),cTt=(tC(),kS),Jbe=new vn(M4,cTt),Vbe=new rs(zq),sTt=(pD(),SV),$be=new vn(Bot,sTt),aTt=(eI(),AV),qbe=new vn(Rot,aTt),Wbe=new vn(jot,.3),Ybe=new rs($ot),oTt=(ry(),eG),Xbe=new vn(zot,oTt),ZEt=(tz(),rht),hbe=new vn(gxt,ZEt),JEt=(uD(),iht),fbe=new vn(pxt,JEt),tTt=(t7(),_S),dbe=new vn(qq,tTt),pbe=new vn(Hq,.2),ube=new vn(qot,2),ive=new vn(bxt,null),ave=new vn(vxt,10),sve=new vn(wxt,10),ove=new vn(mxt,20),pe(0),eve=new vn(yxt,pe(0)),pe(0),nve=new vn(xxt,pe(0)),pe(0),rve=new vn(kxt,pe(0)),F2e=new vn(Hot,!1),zEt=(g7(),lS),R2e=new vn(Ext,zEt),$Et=(E$(),slt),B2e=new vn(Txt,$Et),xbe=new vn(Vq,!1),pe(0),ybe=new vn(Vot,pe(16)),pe(0),kbe=new vn(Got,pe(5)),fTt=(sz(),oht),Lve=new vn(K0,fTt),lve=new vn(Gq,10),dve=new vn(Uq,1),hTt=(z$(),TV),yve=new vn(PC,hTt),bve=new rs(Uot),lTt=pe(1),pe(0),wve=new vn(Wot,lTt),dTt=(Z$(),aht),Ove=new vn(Wq,dTt),Mve=new rs(Kq),_ve=new vn(Yq,!0),Eve=new vn(Xq,2),Sve=new vn(Kot,!0),QEt=(Wz(),CV),cbe=new vn(_xt,QEt),XEt=(rx(),o9),obe=new vn(Cxt,XEt),VEt=(R0(),b2),V2e=new vn(Qq,VEt),H2e=new vn(Sxt,!1),qEt=(Zv(),$4),j2e=new vn(Yot,qEt),HEt=(H_(),Ylt),q2e=new vn(Axt,HEt),$2e=new vn(Xot,0),z2e=new vn(Qot,0),_be=clt,Tbe=vO,Ibe=JV,Nbe=JV,Sbe=Wlt,J2e=(j0(),Qg),rbe=Cx,Q2e=Cx,K2e=Cx,Y2e=Qg,Gbe=ES,Ube=kS,zbe=kS,Hbe=kS,Kbe=Jlt,Zbe=ES,Qbe=ES,gbe=(z0(),qx),bbe=qx,vbe=_S,lbe=YO,hve=x9,fve=Hy,gve=x9,pve=Hy,xve=x9,kve=Hy,vve=alt,mve=TV,Nve=x9,Pve=Hy,Dve=x9,Ive=Hy,Cve=Hy,Tve=Hy,Ave=Hy}function vo(){vo=J,C9t=new Os("DIRECTION_PREPROCESSOR",0),E9t=new Os("COMMENT_PREPROCESSOR",1),sS=new Os("EDGE_AND_LAYER_CONSTRAINT_EDGE_REVERSER",2),Gut=new Os("INTERACTIVE_EXTERNAL_PORT_POSITIONER",3),G9t=new Os("PARTITION_PREPROCESSOR",4),sV=new Os("LABEL_DUMMY_INSERTER",5),pV=new Os("SELF_LOOP_PREPROCESSOR",6),r9=new Os("LAYER_CONSTRAINT_PREPROCESSOR",7),H9t=new Os("PARTITION_MIDPROCESSOR",8),N9t=new Os("HIGH_DEGREE_NODE_LAYER_PROCESSOR",9),z9t=new Os("NODE_PROMOTION",10),n9=new Os("LAYER_CONSTRAINT_POSTPROCESSOR",11),V9t=new Os("PARTITION_POSTPROCESSOR",12),D9t=new Os("HIERARCHICAL_PORT_CONSTRAINT_PROCESSOR",13),U9t=new Os("SEMI_INTERACTIVE_CROSSMIN_PROCESSOR",14),v9t=new Os("BREAKING_POINT_INSERTER",15),uV=new Os("LONG_EDGE_SPLITTER",16),Uut=new Os("PORT_SIDE_PROCESSOR",17),rV=new Os("INVERTED_PORT_PROCESSOR",18),fV=new Os("PORT_LIST_SORTER",19),K9t=new Os("SORT_BY_INPUT_ORDER_OF_MODEL",20),hV=new Os("NORTH_SOUTH_PORT_PREPROCESSOR",21),w9t=new Os("BREAKING_POINT_PROCESSOR",22),q9t=new Os(pfe,23),Y9t=new Os(bfe,24),dV=new Os("SELF_LOOP_PORT_RESTORER",25),W9t=new Os("SINGLE_EDGE_GRAPH_WRAPPER",26),iV=new Os("IN_LAYER_CONSTRAINT_PROCESSOR",27),A9t=new Os("END_NODE_PORT_LABEL_MANAGEMENT_PROCESSOR",28),j9t=new Os("LABEL_AND_NODE_SIZE_PROCESSOR",29),R9t=new Os("INNERMOST_NODE_MARGIN_CALCULATOR",30),bV=new Os("SELF_LOOP_ROUTER",31),x9t=new Os("COMMENT_NODE_MARGIN_CALCULATOR",32),nV=new Os("END_LABEL_PREPROCESSOR",33),oV=new Os("LABEL_DUMMY_SWITCHER",34),y9t=new Os("CENTER_LABEL_MANAGEMENT_PROCESSOR",35),e9=new Os("LABEL_SIDE_SELECTOR",36),F9t=new Os("HYPEREDGE_DUMMY_MERGER",37),I9t=new Os("HIERARCHICAL_PORT_DUMMY_SIZE_PROCESSOR",38),$9t=new Os("LAYER_SIZE_AND_GRAPH_HEIGHT_CALCULATOR",39),aS=new Os("HIERARCHICAL_PORT_POSITION_PROCESSOR",40),T9t=new Os("CONSTRAINTS_POSTPROCESSOR",41),k9t=new Os("COMMENT_POSTPROCESSOR",42),B9t=new Os("HYPERNODE_PROCESSOR",43),O9t=new Os("HIERARCHICAL_PORT_ORTHOGONAL_EDGE_ROUTER",44),cV=new Os("LONG_EDGE_JOINER",45),gV=new Os("SELF_LOOP_POSTPROCESSOR",46),m9t=new Os("BREAKING_POINT_REMOVER",47),lV=new Os("NORTH_SOUTH_PORT_POSTPROCESSOR",48),P9t=new Os("HORIZONTAL_COMPACTOR",49),aV=new Os("LABEL_DUMMY_REMOVER",50),L9t=new Os("FINAL_SPLINE_BENDPOINTS_CALCULATOR",51),S9t=new Os("END_LABEL_SORTER",52),pO=new Os("REVERSED_EDGE_RESTORER",53),eV=new Os("END_LABEL_POSTPROCESSOR",54),M9t=new Os("HIERARCHICAL_NODE_RESIZER",55),_9t=new Os("DIRECTION_POSTPROCESSOR",56)}function p4n(t,e,n){var r,s,o,h,d,w,k,_,L,F,q,G,W,Z,bt,Lt,Ct,Pt,Yt,ce,Se,Ge,Qe,$n,Gn,yr,Li,Js,ih,nf,ed,nU,pN,oA,bN,P9,kft,X4e,Eft,rp,qw,F9,vN,wN,Kx,Tft,cA,Q4e,lLt,Hw,uA,_ft,Yx,lA,n3,hA,Cft,Z4e;for(lLt=0,Li=e,nf=0,pN=Li.length;nf0&&(t.a[rp.p]=lLt++)}for(lA=0,Js=n,ed=0,oA=Js.length;ed0;){for(rp=(ir(wN.b>0),u(wN.a.Xb(wN.c=--wN.b),11)),vN=0,d=new S(rp.e);d.a0&&(rp.j==(we(),Fn)?(t.a[rp.p]=lA,++lA):(t.a[rp.p]=lA+bN+kft,++kft))}lA+=kft}for(F9=new Rr,G=new S0,yr=e,ih=0,nU=yr.length;ihk.b&&(k.b=Kx)):rp.i.c==Q4e&&(Kxk.c&&(k.c=Kx));for(I8(W,0,W.length,null),Yx=Ot(Br,oi,25,W.length,15,1),r=Ot(Br,oi,25,lA+1,15,1),bt=0;bt0;)Se%2>0&&(s+=Cft[Se+1]),Se=(Se-1)/2|0,++Cft[Se];for(Qe=Ot(Twe,De,362,W.length*2,0,1),Pt=0;Pt'?":ln(U1e,t)?"'(?<' or '(? toIndex: ",x6t=", toIndex: ",k6t="Index: ",E6t=", Size: ",O7="org.eclipse.elk.alg.common",Ui={62:1},The="org.eclipse.elk.alg.common.compaction",_he="Scanline/EventHandler",a0="org.eclipse.elk.alg.common.compaction.oned",Che="CNode belongs to another CGroup.",She="ISpacingsHandler/1",iot="The ",sot=" instance has been finished already.",Ahe="The direction ",Lhe=" is not supported by the CGraph instance.",Mhe="OneDimensionalCompactor",Dhe="OneDimensionalCompactor/lambda$0$Type",Ihe="Quadruplet",Ohe="ScanlineConstraintCalculator",Nhe="ScanlineConstraintCalculator/ConstraintsScanlineHandler",Phe="ScanlineConstraintCalculator/ConstraintsScanlineHandler/lambda$0$Type",Fhe="ScanlineConstraintCalculator/Timestamp",Bhe="ScanlineConstraintCalculator/lambda$0$Type",Td={169:1,45:1},aot="org.eclipse.elk.alg.common.compaction.options",hc="org.eclipse.elk.core.data",T6t="org.eclipse.elk.polyomino.traversalStrategy",_6t="org.eclipse.elk.polyomino.lowLevelSort",C6t="org.eclipse.elk.polyomino.highLevelSort",S6t="org.eclipse.elk.polyomino.fill",jh={130:1},oot="polyomino",CC="org.eclipse.elk.alg.common.networksimplex",o0={177:1,3:1,4:1},Rhe="org.eclipse.elk.alg.common.nodespacing",yb="org.eclipse.elk.alg.common.nodespacing.cellsystem",N7="CENTER",jhe={212:1,326:1},A6t={3:1,4:1,5:1,595:1},fx="LEFT",dx="RIGHT",L6t="Vertical alignment cannot be null",M6t="BOTTOM",Aq="org.eclipse.elk.alg.common.nodespacing.internal",SC="UNDEFINED",H1=.01,PI="org.eclipse.elk.alg.common.nodespacing.internal.algorithm",$he="LabelPlacer/lambda$0$Type",zhe="LabelPlacer/lambda$1$Type",qhe="portRatioOrPosition",P7="org.eclipse.elk.alg.common.overlaps",cot="DOWN",_d="org.eclipse.elk.alg.common.polyomino",Lq="NORTH",uot="EAST",lot="SOUTH",hot="WEST",Mq="org.eclipse.elk.alg.common.polyomino.structures",D6t="Direction",fot="Grid is only of size ",dot=". Requested point (",got=") is out of bounds.",Dq=" Given center based coordinates were (",FI="org.eclipse.elk.graph.properties",Hhe="IPropertyHolder",I6t={3:1,94:1,134:1},gx="org.eclipse.elk.alg.common.spore",Vhe="org.eclipse.elk.alg.common.utils",xb={209:1},S4="org.eclipse.elk.core",Ghe="Connected Components Compaction",Uhe="org.eclipse.elk.alg.disco",Iq="org.eclipse.elk.alg.disco.graph",pot="org.eclipse.elk.alg.disco.options",O6t="CompactionStrategy",N6t="org.eclipse.elk.disco.componentCompaction.strategy",P6t="org.eclipse.elk.disco.componentCompaction.componentLayoutAlgorithm",F6t="org.eclipse.elk.disco.debug.discoGraph",B6t="org.eclipse.elk.disco.debug.discoPolys",Whe="componentCompaction",kb="org.eclipse.elk.disco",bot="org.eclipse.elk.spacing.componentComponent",vot="org.eclipse.elk.edge.thickness",px="org.eclipse.elk.aspectRatio",pw="org.eclipse.elk.padding",A4="org.eclipse.elk.alg.disco.transform",wot=1.5707963267948966,F7=17976931348623157e292,my={3:1,4:1,5:1,192:1},R6t={3:1,6:1,4:1,5:1,106:1,120:1},j6t="org.eclipse.elk.alg.force",$6t="ComponentsProcessor",Khe="ComponentsProcessor/1",BI="org.eclipse.elk.alg.force.graph",Yhe="Component Layout",z6t="org.eclipse.elk.alg.force.model",Oq="org.eclipse.elk.force.model",q6t="org.eclipse.elk.force.iterations",H6t="org.eclipse.elk.force.repulsivePower",mot="org.eclipse.elk.force.temperature",Cd=.001,yot="org.eclipse.elk.force.repulsion",AC="org.eclipse.elk.alg.force.options",B7=1.600000023841858,Xl="org.eclipse.elk.force",RI="org.eclipse.elk.priority",yy="org.eclipse.elk.spacing.nodeNode",xot="org.eclipse.elk.spacing.edgeLabel",Nq="org.eclipse.elk.randomSeed",LC="org.eclipse.elk.separateConnectedComponents",jI="org.eclipse.elk.interactive",kot="org.eclipse.elk.portConstraints",Pq="org.eclipse.elk.edgeLabels.inline",MC="org.eclipse.elk.omitNodeMicroLayout",bx="org.eclipse.elk.nodeSize.options",L4="org.eclipse.elk.nodeSize.constraints",R7="org.eclipse.elk.nodeLabels.placement",j7="org.eclipse.elk.portLabels.placement",V6t="origin",Xhe="random",Qhe="boundingBox.upLeft",Zhe="boundingBox.lowRight",G6t="org.eclipse.elk.stress.fixed",U6t="org.eclipse.elk.stress.desiredEdgeLength",W6t="org.eclipse.elk.stress.dimension",K6t="org.eclipse.elk.stress.epsilon",Y6t="org.eclipse.elk.stress.iterationLimit",s2="org.eclipse.elk.stress",Jhe="ELK Stress",vx="org.eclipse.elk.nodeSize.minimum",Fq="org.eclipse.elk.alg.force.stress",tfe="Layered layout",wx="org.eclipse.elk.alg.layered",$I="org.eclipse.elk.alg.layered.compaction.components",DC="org.eclipse.elk.alg.layered.compaction.oned",Bq="org.eclipse.elk.alg.layered.compaction.oned.algs",Eb="org.eclipse.elk.alg.layered.compaction.recthull",Sd="org.eclipse.elk.alg.layered.components",W0="NONE",Nc={3:1,6:1,4:1,9:1,5:1,122:1},efe={3:1,6:1,4:1,5:1,141:1,106:1,120:1},Rq="org.eclipse.elk.alg.layered.compound",ys={51:1},cu="org.eclipse.elk.alg.layered.graph",Eot=" -> ",nfe="Not supported by LGraph",X6t="Port side is undefined",Tot={3:1,6:1,4:1,5:1,474:1,141:1,106:1,120:1},$g={3:1,6:1,4:1,5:1,141:1,193:1,203:1,106:1,120:1},rfe={3:1,6:1,4:1,5:1,141:1,1943:1,203:1,106:1,120:1},ife=`([{"' \r -`,sfe=`)]}"' \r -`,afe="The given string contains parts that cannot be parsed as numbers.",zI="org.eclipse.elk.core.math",ofe={3:1,4:1,142:1,207:1,414:1},cfe={3:1,4:1,116:1,207:1,414:1},Xn="org.eclipse.elk.layered",zg="org.eclipse.elk.alg.layered.graph.transform",ufe="ElkGraphImporter",lfe="ElkGraphImporter/lambda$0$Type",hfe="ElkGraphImporter/lambda$1$Type",ffe="ElkGraphImporter/lambda$2$Type",dfe="ElkGraphImporter/lambda$4$Type",gfe="Node margin calculation",Vn="org.eclipse.elk.alg.layered.intermediate",pfe="ONE_SIDED_GREEDY_SWITCH",bfe="TWO_SIDED_GREEDY_SWITCH",_ot="No implementation is available for the layout processor ",Q6t="IntermediateProcessorStrategy",Cot="Node '",vfe="FIRST_SEPARATE",wfe="LAST_SEPARATE",mfe="Odd port side processing",js="org.eclipse.elk.alg.layered.intermediate.compaction",IC="org.eclipse.elk.alg.layered.intermediate.greedyswitch",c0="org.eclipse.elk.alg.layered.p3order.counting",qI={225:1},mx="org.eclipse.elk.alg.layered.intermediate.loops",Ql="org.eclipse.elk.alg.layered.intermediate.loops.ordering",a2="org.eclipse.elk.alg.layered.intermediate.loops.routing",OC="org.eclipse.elk.alg.layered.intermediate.preserveorder",Ad="org.eclipse.elk.alg.layered.intermediate.wrapping",Pc="org.eclipse.elk.alg.layered.options",Sot="INTERACTIVE",yfe="DEPTH_FIRST",xfe="EDGE_LENGTH",kfe="SELF_LOOPS",Efe="firstTryWithInitialOrder",Z6t="org.eclipse.elk.layered.directionCongruency",J6t="org.eclipse.elk.layered.feedbackEdges",jq="org.eclipse.elk.layered.interactiveReferencePoint",txt="org.eclipse.elk.layered.mergeEdges",ext="org.eclipse.elk.layered.mergeHierarchyEdges",nxt="org.eclipse.elk.layered.allowNonFlowPortsToSwitchSides",rxt="org.eclipse.elk.layered.portSortingStrategy",ixt="org.eclipse.elk.layered.thoroughness",sxt="org.eclipse.elk.layered.unnecessaryBendpoints",axt="org.eclipse.elk.layered.generatePositionAndLayerIds",Aot="org.eclipse.elk.layered.cycleBreaking.strategy",HI="org.eclipse.elk.layered.layering.strategy",oxt="org.eclipse.elk.layered.layering.layerConstraint",cxt="org.eclipse.elk.layered.layering.layerChoiceConstraint",uxt="org.eclipse.elk.layered.layering.layerId",Lot="org.eclipse.elk.layered.layering.minWidth.upperBoundOnWidth",Mot="org.eclipse.elk.layered.layering.minWidth.upperLayerEstimationScalingFactor",Dot="org.eclipse.elk.layered.layering.nodePromotion.strategy",Iot="org.eclipse.elk.layered.layering.nodePromotion.maxIterations",Oot="org.eclipse.elk.layered.layering.coffmanGraham.layerBound",NC="org.eclipse.elk.layered.crossingMinimization.strategy",lxt="org.eclipse.elk.layered.crossingMinimization.forceNodeModelOrder",Not="org.eclipse.elk.layered.crossingMinimization.hierarchicalSweepiness",Pot="org.eclipse.elk.layered.crossingMinimization.semiInteractive",hxt="org.eclipse.elk.layered.crossingMinimization.positionChoiceConstraint",fxt="org.eclipse.elk.layered.crossingMinimization.positionId",dxt="org.eclipse.elk.layered.crossingMinimization.greedySwitch.activationThreshold",Fot="org.eclipse.elk.layered.crossingMinimization.greedySwitch.type",$q="org.eclipse.elk.layered.crossingMinimization.greedySwitchHierarchical.type",M4="org.eclipse.elk.layered.nodePlacement.strategy",zq="org.eclipse.elk.layered.nodePlacement.favorStraightEdges",Bot="org.eclipse.elk.layered.nodePlacement.bk.edgeStraightening",Rot="org.eclipse.elk.layered.nodePlacement.bk.fixedAlignment",jot="org.eclipse.elk.layered.nodePlacement.linearSegments.deflectionDampening",$ot="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility",zot="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility.default",gxt="org.eclipse.elk.layered.edgeRouting.selfLoopDistribution",pxt="org.eclipse.elk.layered.edgeRouting.selfLoopOrdering",qq="org.eclipse.elk.layered.edgeRouting.splines.mode",Hq="org.eclipse.elk.layered.edgeRouting.splines.sloppy.layerSpacingFactor",qot="org.eclipse.elk.layered.edgeRouting.polyline.slopedEdgeZoneWidth",bxt="org.eclipse.elk.layered.spacing.baseValue",vxt="org.eclipse.elk.layered.spacing.edgeNodeBetweenLayers",wxt="org.eclipse.elk.layered.spacing.edgeEdgeBetweenLayers",mxt="org.eclipse.elk.layered.spacing.nodeNodeBetweenLayers",yxt="org.eclipse.elk.layered.priority.direction",xxt="org.eclipse.elk.layered.priority.shortness",kxt="org.eclipse.elk.layered.priority.straightness",Hot="org.eclipse.elk.layered.compaction.connectedComponents",Ext="org.eclipse.elk.layered.compaction.postCompaction.strategy",Txt="org.eclipse.elk.layered.compaction.postCompaction.constraints",Vq="org.eclipse.elk.layered.highDegreeNodes.treatment",Vot="org.eclipse.elk.layered.highDegreeNodes.threshold",Got="org.eclipse.elk.layered.highDegreeNodes.treeHeight",K0="org.eclipse.elk.layered.wrapping.strategy",Gq="org.eclipse.elk.layered.wrapping.additionalEdgeSpacing",Uq="org.eclipse.elk.layered.wrapping.correctionFactor",PC="org.eclipse.elk.layered.wrapping.cutting.strategy",Uot="org.eclipse.elk.layered.wrapping.cutting.cuts",Wot="org.eclipse.elk.layered.wrapping.cutting.msd.freedom",Wq="org.eclipse.elk.layered.wrapping.validify.strategy",Kq="org.eclipse.elk.layered.wrapping.validify.forbiddenIndices",Yq="org.eclipse.elk.layered.wrapping.multiEdge.improveCuts",Xq="org.eclipse.elk.layered.wrapping.multiEdge.distancePenalty",Kot="org.eclipse.elk.layered.wrapping.multiEdge.improveWrappedEdges",_xt="org.eclipse.elk.layered.edgeLabels.sideSelection",Cxt="org.eclipse.elk.layered.edgeLabels.centerLabelPlacementStrategy",Qq="org.eclipse.elk.layered.considerModelOrder.strategy",Sxt="org.eclipse.elk.layered.considerModelOrder.noModelOrder",Yot="org.eclipse.elk.layered.considerModelOrder.components",Axt="org.eclipse.elk.layered.considerModelOrder.longEdgeStrategy",Xot="org.eclipse.elk.layered.considerModelOrder.crossingCounterNodeInfluence",Qot="org.eclipse.elk.layered.considerModelOrder.crossingCounterPortInfluence",Zot="layering",Tfe="layering.minWidth",_fe="layering.nodePromotion",VI="crossingMinimization",Zq="org.eclipse.elk.hierarchyHandling",Cfe="crossingMinimization.greedySwitch",Sfe="nodePlacement",Afe="nodePlacement.bk",Lfe="edgeRouting",GI="org.eclipse.elk.edgeRouting",V1="spacing",Lxt="priority",Mxt="compaction",Mfe="compaction.postCompaction",Dfe="Specifies whether and how post-process compaction is applied.",Dxt="highDegreeNodes",Ixt="wrapping",Ife="wrapping.cutting",Ofe="wrapping.validify",Oxt="wrapping.multiEdge",Jot="edgeLabels",UI="considerModelOrder",Nxt="org.eclipse.elk.spacing.commentComment",Pxt="org.eclipse.elk.spacing.commentNode",Fxt="org.eclipse.elk.spacing.edgeEdge",Bxt="org.eclipse.elk.spacing.edgeNode",Rxt="org.eclipse.elk.spacing.labelLabel",jxt="org.eclipse.elk.spacing.labelPortHorizontal",$xt="org.eclipse.elk.spacing.labelPortVertical",zxt="org.eclipse.elk.spacing.labelNode",qxt="org.eclipse.elk.spacing.nodeSelfLoop",Hxt="org.eclipse.elk.spacing.portPort",Vxt="org.eclipse.elk.spacing.individual",Gxt="org.eclipse.elk.port.borderOffset",Uxt="org.eclipse.elk.noLayout",Wxt="org.eclipse.elk.port.side",WI="org.eclipse.elk.debugMode",Kxt="org.eclipse.elk.alignment",Yxt="org.eclipse.elk.insideSelfLoops.activate",Xxt="org.eclipse.elk.insideSelfLoops.yo",tct="org.eclipse.elk.nodeSize.fixedGraphSize",Qxt="org.eclipse.elk.direction",Zxt="org.eclipse.elk.nodeLabels.padding",Jxt="org.eclipse.elk.portLabels.nextToPortIfPossible",tkt="org.eclipse.elk.portLabels.treatAsGroup",ekt="org.eclipse.elk.portAlignment.default",nkt="org.eclipse.elk.portAlignment.north",rkt="org.eclipse.elk.portAlignment.south",ikt="org.eclipse.elk.portAlignment.west",skt="org.eclipse.elk.portAlignment.east",Jq="org.eclipse.elk.contentAlignment",akt="org.eclipse.elk.junctionPoints",okt="org.eclipse.elk.edgeLabels.placement",ckt="org.eclipse.elk.port.index",ukt="org.eclipse.elk.commentBox",lkt="org.eclipse.elk.hypernode",hkt="org.eclipse.elk.port.anchor",ect="org.eclipse.elk.partitioning.activate",nct="org.eclipse.elk.partitioning.partition",tH="org.eclipse.elk.position",fkt="org.eclipse.elk.margins",dkt="org.eclipse.elk.spacing.portsSurrounding",rct="org.eclipse.elk.interactiveLayout",Fc="org.eclipse.elk.core.util",gkt={3:1,4:1,5:1,593:1},Nfe="NETWORK_SIMPLEX",Qc={123:1,51:1},eH="org.eclipse.elk.alg.layered.p1cycles",xy="org.eclipse.elk.alg.layered.p2layers",pkt={402:1,225:1},Pfe={832:1,3:1,4:1},Qu="org.eclipse.elk.alg.layered.p3order",To="org.eclipse.elk.alg.layered.p4nodes",Ffe={3:1,4:1,5:1,840:1},Ld=1e-5,o2="org.eclipse.elk.alg.layered.p4nodes.bk",ict="org.eclipse.elk.alg.layered.p5edges",s1="org.eclipse.elk.alg.layered.p5edges.orthogonal",sct="org.eclipse.elk.alg.layered.p5edges.orthogonal.direction",act=1e-6,ky="org.eclipse.elk.alg.layered.p5edges.splines",oct=.09999999999999998,nH=1e-8,Bfe=4.71238898038469,Rfe=3.141592653589793,FC="org.eclipse.elk.alg.mrtree",BC="org.eclipse.elk.alg.mrtree.graph",yx="org.eclipse.elk.alg.mrtree.intermediate",jfe="Set neighbors in level",$fe="DESCENDANTS",bkt="org.eclipse.elk.mrtree.weighting",vkt="org.eclipse.elk.mrtree.searchOrder",rH="org.eclipse.elk.alg.mrtree.options",qg="org.eclipse.elk.mrtree",zfe="org.eclipse.elk.tree",wkt="org.eclipse.elk.alg.radial",D4=6.283185307179586,mkt=5e-324,qfe="org.eclipse.elk.alg.radial.intermediate",cct="org.eclipse.elk.alg.radial.intermediate.compaction",Hfe={3:1,4:1,5:1,106:1},ykt="org.eclipse.elk.alg.radial.intermediate.optimization",uct="No implementation is available for the layout option ",RC="org.eclipse.elk.alg.radial.options",xkt="org.eclipse.elk.radial.orderId",kkt="org.eclipse.elk.radial.radius",lct="org.eclipse.elk.radial.compactor",hct="org.eclipse.elk.radial.compactionStepSize",Ekt="org.eclipse.elk.radial.sorter",Tkt="org.eclipse.elk.radial.wedgeCriteria",_kt="org.eclipse.elk.radial.optimizationCriteria",Md="org.eclipse.elk.radial",Vfe="org.eclipse.elk.alg.radial.p1position.wedge",Ckt="org.eclipse.elk.alg.radial.sorting",Gfe=5.497787143782138,Ufe=3.9269908169872414,Wfe=2.356194490192345,Kfe="org.eclipse.elk.alg.rectpacking",iH="org.eclipse.elk.alg.rectpacking.firstiteration",fct="org.eclipse.elk.alg.rectpacking.options",Skt="org.eclipse.elk.rectpacking.optimizationGoal",Akt="org.eclipse.elk.rectpacking.lastPlaceShift",Lkt="org.eclipse.elk.rectpacking.currentPosition",Mkt="org.eclipse.elk.rectpacking.desiredPosition",Dkt="org.eclipse.elk.rectpacking.onlyFirstIteration",Ikt="org.eclipse.elk.rectpacking.rowCompaction",dct="org.eclipse.elk.rectpacking.expandToAspectRatio",Okt="org.eclipse.elk.rectpacking.targetWidth",sH="org.eclipse.elk.expandNodes",$h="org.eclipse.elk.rectpacking",KI="org.eclipse.elk.alg.rectpacking.util",aH="No implementation available for ",Ey="org.eclipse.elk.alg.spore",Ty="org.eclipse.elk.alg.spore.options",bw="org.eclipse.elk.sporeCompaction",gct="org.eclipse.elk.underlyingLayoutAlgorithm",Nkt="org.eclipse.elk.processingOrder.treeConstruction",Pkt="org.eclipse.elk.processingOrder.spanningTreeCostFunction",pct="org.eclipse.elk.processingOrder.preferredRoot",bct="org.eclipse.elk.processingOrder.rootSelection",vct="org.eclipse.elk.structure.structureExtractionStrategy",Fkt="org.eclipse.elk.compaction.compactionStrategy",Bkt="org.eclipse.elk.compaction.orthogonal",Rkt="org.eclipse.elk.overlapRemoval.maxIterations",jkt="org.eclipse.elk.overlapRemoval.runScanline",wct="processingOrder",Yfe="overlapRemoval",$7="org.eclipse.elk.sporeOverlap",Xfe="org.eclipse.elk.alg.spore.p1structure",mct="org.eclipse.elk.alg.spore.p2processingorder",yct="org.eclipse.elk.alg.spore.p3execution",Qfe="Invalid index: ",z7="org.eclipse.elk.core.alg",I4={331:1},_y={288:1},Zfe="Make sure its type is registered with the ",$kt=" utility class.",q7="true",xct="false",Jfe="Couldn't clone property '",vw=.05,zh="org.eclipse.elk.core.options",t1e=1.2999999523162842,ww="org.eclipse.elk.box",zkt="org.eclipse.elk.box.packingMode",e1e="org.eclipse.elk.algorithm",n1e="org.eclipse.elk.resolvedAlgorithm",qkt="org.eclipse.elk.bendPoints",y4n="org.eclipse.elk.labelManager",r1e="org.eclipse.elk.scaleFactor",i1e="org.eclipse.elk.animate",s1e="org.eclipse.elk.animTimeFactor",a1e="org.eclipse.elk.layoutAncestors",o1e="org.eclipse.elk.maxAnimTime",c1e="org.eclipse.elk.minAnimTime",u1e="org.eclipse.elk.progressBar",l1e="org.eclipse.elk.validateGraph",h1e="org.eclipse.elk.validateOptions",f1e="org.eclipse.elk.zoomToFit",x4n="org.eclipse.elk.font.name",d1e="org.eclipse.elk.font.size",g1e="org.eclipse.elk.edge.type",p1e="partitioning",b1e="nodeLabels",oH="portAlignment",kct="nodeSize",Ect="port",Hkt="portLabels",v1e="insideSelfLoops",jC="org.eclipse.elk.fixed",cH="org.eclipse.elk.random",w1e="port must have a parent node to calculate the port side",m1e="The edge needs to have exactly one edge section. Found: ",$C="org.eclipse.elk.core.util.adapters",xh="org.eclipse.emf.ecore",O4="org.eclipse.elk.graph",y1e="EMapPropertyHolder",x1e="ElkBendPoint",k1e="ElkGraphElement",E1e="ElkConnectableShape",Vkt="ElkEdge",T1e="ElkEdgeSection",_1e="EModelElement",C1e="ENamedElement",Gkt="ElkLabel",Ukt="ElkNode",Wkt="ElkPort",S1e={92:1,90:1},xx="org.eclipse.emf.common.notify.impl",c2="The feature '",zC="' is not a valid changeable feature",A1e="Expecting null",Tct="' is not a valid feature",L1e="The feature ID",M1e=" is not a valid feature ID",Ac=32768,D1e={105:1,92:1,90:1,56:1,49:1,97:1},Mn="org.eclipse.emf.ecore.impl",Tb="org.eclipse.elk.graph.impl",qC="Recursive containment not allowed for ",H7="The datatype '",mw="' is not a valid classifier",_ct="The value '",N4={190:1,3:1,4:1},Cct="The class '",V7="http://www.eclipse.org/elk/ElkGraph",Tf=1024,Kkt="property",HC="value",Sct="source",I1e="properties",O1e="identifier",Act="height",Lct="width",Mct="parent",Dct="text",Ict="children",N1e="hierarchical",Ykt="sources",Oct="targets",Xkt="sections",uH="bendPoints",Qkt="outgoingShape",Zkt="incomingShape",Jkt="outgoingSections",t8t="incomingSections",Ja="org.eclipse.emf.common.util",e8t="Severe implementation error in the Json to ElkGraph importer.",Dd="id",Na="org.eclipse.elk.graph.json",n8t="Unhandled parameter types: ",P1e="startPoint",F1e="An edge must have at least one source and one target (edge id: '",G7="').",B1e="Referenced edge section does not exist: ",R1e=" (edge id: '",r8t="target",j1e="sourcePoint",$1e="targetPoint",lH="group",ki="name",z1e="connectableShape cannot be null",q1e="edge cannot be null",Nct="Passed edge is not 'simple'.",hH="org.eclipse.elk.graph.util",YI="The 'no duplicates' constraint is violated",Pct="targetIndex=",_b=", size=",Fct="sourceIndex=",Id={3:1,4:1,20:1,28:1,52:1,14:1,15:1,54:1,67:1,63:1,58:1},Bct={3:1,4:1,20:1,28:1,52:1,14:1,47:1,15:1,54:1,67:1,63:1,58:1,588:1},fH="logging",H1e="measureExecutionTime",V1e="parser.parse.1",G1e="parser.parse.2",dH="parser.next.1",Rct="parser.next.2",U1e="parser.next.3",W1e="parser.next.4",Cb="parser.factor.1",i8t="parser.factor.2",K1e="parser.factor.3",Y1e="parser.factor.4",X1e="parser.factor.5",Q1e="parser.factor.6",Z1e="parser.atom.1",J1e="parser.atom.2",tde="parser.atom.3",s8t="parser.atom.4",jct="parser.atom.5",a8t="parser.cc.1",gH="parser.cc.2",ede="parser.cc.3",nde="parser.cc.5",o8t="parser.cc.6",c8t="parser.cc.7",$ct="parser.cc.8",rde="parser.ope.1",ide="parser.ope.2",sde="parser.ope.3",Hg="parser.descape.1",ade="parser.descape.2",ode="parser.descape.3",cde="parser.descape.4",ude="parser.descape.5",kh="parser.process.1",lde="parser.quantifier.1",hde="parser.quantifier.2",fde="parser.quantifier.3",dde="parser.quantifier.4",u8t="parser.quantifier.5",gde="org.eclipse.emf.common.notify",l8t={415:1,672:1},pde={3:1,4:1,20:1,28:1,52:1,14:1,15:1,67:1,58:1},XI={366:1,143:1},VC="index=",zct={3:1,4:1,5:1,126:1},bde={3:1,4:1,20:1,28:1,52:1,14:1,15:1,54:1,67:1,58:1},h8t={3:1,6:1,4:1,5:1,192:1},vde={3:1,4:1,5:1,165:1,367:1},wde=";/?:@&=+$,",mde="invalid authority: ",yde="EAnnotation",xde="ETypedElement",kde="EStructuralFeature",Ede="EAttribute",Tde="EClassifier",_de="EEnumLiteral",Cde="EGenericType",Sde="EOperation",Ade="EParameter",Lde="EReference",Mde="ETypeParameter",Ji="org.eclipse.emf.ecore.util",qct={76:1},f8t={3:1,20:1,14:1,15:1,58:1,589:1,76:1,69:1,95:1},Dde="org.eclipse.emf.ecore.util.FeatureMap$Entry",Zu=8192,Cy=2048,GC="byte",pH="char",UC="double",WC="float",KC="int",YC="long",XC="short",Ide="java.lang.Object",P4={3:1,4:1,5:1,247:1},d8t={3:1,4:1,5:1,673:1},Ode={3:1,4:1,20:1,28:1,52:1,14:1,15:1,54:1,67:1,63:1,58:1,69:1},tc={3:1,4:1,20:1,28:1,52:1,14:1,15:1,54:1,67:1,63:1,58:1,76:1,69:1,95:1},QI="mixed",si="http:///org/eclipse/emf/ecore/util/ExtendedMetaData",qh="kind",Nde={3:1,4:1,5:1,674:1},g8t={3:1,4:1,20:1,28:1,52:1,14:1,15:1,67:1,58:1,76:1,69:1,95:1},bH={20:1,28:1,52:1,14:1,15:1,58:1,69:1},vH={47:1,125:1,279:1},wH={72:1,332:1},mH="The value of type '",yH="' must be of type '",F4=1316,Hh="http://www.eclipse.org/emf/2002/Ecore",xH=-32768,yw="constraints",za="baseType",Pde="getEStructuralFeature",Fde="getFeatureID",QC="feature",Bde="getOperationID",p8t="operation",Rde="defaultValue",jde="eTypeParameters",$de="isInstance",zde="getEEnumLiteral",qde="eContainingClass",vi={55:1},Hde={3:1,4:1,5:1,119:1},Vde="org.eclipse.emf.ecore.resource",Gde={92:1,90:1,591:1,1935:1},Hct="org.eclipse.emf.ecore.resource.impl",b8t="unspecified",ZI="simple",kH="attribute",Ude="attributeWildcard",EH="element",Vct="elementWildcard",a1="collapse",Gct="itemType",TH="namespace",JI="##targetNamespace",Vh="whiteSpace",v8t="wildcards",Sb="http://www.eclipse.org/emf/2003/XMLType",Uct="##any",U7="uninitialized",tO="The multiplicity constraint is violated",_H="org.eclipse.emf.ecore.xml.type",Wde="ProcessingInstruction",Kde="SimpleAnyType",Yde="XMLTypeDocumentRoot",Ps="org.eclipse.emf.ecore.xml.type.impl",eO="INF",Xde="processing",Qde="ENTITIES_._base",w8t="minLength",m8t="ENTITY",CH="NCName",Zde="IDREFS_._base",y8t="integer",Wct="token",Kct="pattern",Jde="[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*",x8t="\\i\\c*",t0e="[\\i-[:]][\\c-[:]]*",e0e="nonPositiveInteger",nO="maxInclusive",k8t="NMTOKEN",n0e="NMTOKENS_._base",E8t="nonNegativeInteger",rO="minInclusive",r0e="normalizedString",i0e="unsignedByte",s0e="unsignedInt",a0e="18446744073709551615",o0e="unsignedShort",c0e="processingInstruction",Vg="org.eclipse.emf.ecore.xml.type.internal",W7=1114111,u0e="Internal Error: shorthands: \\u",ZC="xml:isDigit",Yct="xml:isWord",Xct="xml:isSpace",Qct="xml:isNameChar",Zct="xml:isInitialNameChar",l0e="09٠٩۰۹०९০৯੦੯૦૯୦୯௧௯౦౯೦೯൦൯๐๙໐໙༠༩",h0e="AZazÀÖØöøıĴľŁňŊžƀǃǍǰǴǵǺȗɐʨʻˁΆΆΈΊΌΌΎΡΣώϐϖϚϚϜϜϞϞϠϠϢϳЁЌЎяёќўҁҐӄӇӈӋӌӐӫӮӵӸӹԱՖՙՙաֆאתװײءغفيٱڷںھۀێېۓەەۥۦअहऽऽक़ॡঅঌএঐওনপরললশহড়ঢ়য়ৡৰৱਅਊਏਐਓਨਪਰਲਲ਼ਵਸ਼ਸਹਖ਼ੜਫ਼ਫ਼ੲੴઅઋઍઍએઑઓનપરલળવહઽઽૠૠଅଌଏଐଓନପରଲଳଶହଽଽଡ଼ଢ଼ୟୡஅஊஎஐஒகஙசஜஜஞடணதநபமவஷஹఅఌఎఐఒనపళవహౠౡಅಌಎಐಒನಪಳವಹೞೞೠೡഅഌഎഐഒനപഹൠൡกฮะะาำเๅກຂຄຄງຈຊຊຍຍດທນຟມຣລລວວສຫອຮະະາຳຽຽເໄཀཇཉཀྵႠჅაჶᄀᄀᄂᄃᄅᄇᄉᄉᄋᄌᄎᄒᄼᄼᄾᄾᅀᅀᅌᅌᅎᅎᅐᅐᅔᅕᅙᅙᅟᅡᅣᅣᅥᅥᅧᅧᅩᅩᅭᅮᅲᅳᅵᅵᆞᆞᆨᆨᆫᆫᆮᆯᆷᆸᆺᆺᆼᇂᇫᇫᇰᇰᇹᇹḀẛẠỹἀἕἘἝἠὅὈὍὐὗὙὙὛὛὝὝὟώᾀᾴᾶᾼιιῂῄῆῌῐΐῖΊῠῬῲῴῶῼΩΩKÅ℮℮ↀↂ〇〇〡〩ぁゔァヺㄅㄬ一龥가힣",f0e="Private Use",Jct="ASSIGNED",tut="\0€ÿĀſƀɏɐʯʰ˿̀ͯͰϿЀӿ԰֏֐׿؀ۿ܀ݏހ޿ऀॿঀ৿਀੿઀૿଀୿஀௿ఀ౿ಀ೿ഀൿ඀෿฀๿຀໿ༀ࿿က႟Ⴀჿᄀᇿሀ፿Ꭰ᏿᐀ᙿ ᚟ᚠ᛿ក៿᠀᢯Ḁỿἀ῿ ⁰₟₠⃏⃐⃿℀⅏⅐↏←⇿∀⋿⌀⏿␀␿⑀⑟①⓿─╿▀▟■◿☀⛿✀➿⠀⣿⺀⻿⼀⿟⿰⿿ 〿぀ゟ゠ヿ㄀ㄯ㄰㆏㆐㆟ㆠㆿ㈀㋿㌀㏿㐀䶵一鿿ꀀ꒏꒐꓏가힣豈﫿ffﭏﭐ﷿︠︯︰﹏﹐﹯ﹰ﻾\uFEFF\uFEFF＀￯",T8t="UNASSIGNED",K7={3:1,117:1},d0e="org.eclipse.emf.ecore.xml.type.util",SH={3:1,4:1,5:1,368:1},_8t="org.eclipse.xtext.xbase.lib",g0e="Cannot add elements to a Range",p0e="Cannot set elements in a Range",b0e="Cannot remove elements from a Range",AH="locale",LH="default",MH="user.agent",l,DH,eut;b.goog=b.goog||{},b.goog.global=b.goog.global||b,W1n(),M(1,null,{},C),l.Fb=function(e){return hGt(this,e)},l.Gb=function(){return this.gm},l.Hb=function(){return Av(this)},l.Ib=function(){var e;return Mp(bl(this))+"@"+(e=ns(this)>>>0,e.toString(16))},l.equals=function(t){return this.Fb(t)},l.hashCode=function(){return this.Hb()},l.toString=function(){return this.Ib()};var v0e,w0e,m0e;M(290,1,{290:1,2026:1},nyt),l.le=function(e){var n;return n=new nyt,n.i=4,e>1?n.c=AXt(this,e-1):n.c=this,n},l.me=function(){return A0(this),this.b},l.ne=function(){return Mp(this)},l.oe=function(){return A0(this),this.k},l.pe=function(){return(this.i&4)!=0},l.qe=function(){return(this.i&1)!=0},l.Ib=function(){return vmt(this)},l.i=0;var nr=N(lc,"Object",1),C8t=N(lc,"Class",290);M(1998,1,_I),N(CI,"Optional",1998),M(1170,1998,_I,D),l.Fb=function(e){return e===this},l.Hb=function(){return 2040732332},l.Ib=function(){return"Optional.absent()"},l.Jb=function(e){return zr(e),_T(),nut};var nut;N(CI,"Absent",1170),M(628,1,{},Ktt),N(CI,"Joiner",628);var k4n=ls(CI,"Predicate");M(582,1,{169:1,582:1,3:1,45:1},lT),l.Mb=function(e){return gne(this,e)},l.Lb=function(e){return gne(this,e)},l.Fb=function(e){var n;return Et(e,582)?(n=u(e,582),Y4t(this.a,n.a)):!1},l.Hb=function(){return oyt(this.a)+306654252},l.Ib=function(){return Odn(this.a)},N(CI,"Predicates/AndPredicate",582),M(408,1998,{408:1,3:1},jk),l.Fb=function(e){var n;return Et(e,408)?(n=u(e,408),Ni(this.a,n.a)):!1},l.Hb=function(){return 1502476572+ns(this.a)},l.Ib=function(){return the+this.a+")"},l.Jb=function(e){return new jk(Kj(e.Kb(this.a),"the Function passed to Optional.transform() must not return null."))},N(CI,"Present",408),M(198,1,S7),l.Nb=function(e){Da(this,e)},l.Qb=function(){eqt()},N(Ye,"UnmodifiableIterator",198),M(1978,198,A7),l.Qb=function(){eqt()},l.Rb=function(e){throw et(new Gr)},l.Wb=function(e){throw et(new Gr)},N(Ye,"UnmodifiableListIterator",1978),M(386,1978,A7),l.Ob=function(){return this.c0},l.Pb=function(){if(this.c>=this.d)throw et(new _c);return this.Xb(this.c++)},l.Tb=function(){return this.c},l.Ub=function(){if(this.c<=0)throw et(new _c);return this.Xb(--this.c)},l.Vb=function(){return this.c-1},l.c=0,l.d=0,N(Ye,"AbstractIndexedListIterator",386),M(699,198,S7),l.Ob=function(){return Wrt(this)},l.Pb=function(){return hmt(this)},l.e=1,N(Ye,"AbstractIterator",699),M(1986,1,{224:1}),l.Zb=function(){var e;return e=this.f,e||(this.f=this.ac())},l.Fb=function(e){return hit(this,e)},l.Hb=function(){return ns(this.Zb())},l.dc=function(){return this.gc()==0},l.ec=function(){return N6(this)},l.Ib=function(){return Jo(this.Zb())},N(Ye,"AbstractMultimap",1986),M(726,1986,wb),l.$b=function(){q$(this)},l._b=function(e){return yqt(this,e)},l.ac=function(){return new n8(this,this.c)},l.ic=function(e){return this.hc()},l.bc=function(){return new W3(this,this.c)},l.jc=function(){return this.mc(this.hc())},l.kc=function(){return new Rzt(this)},l.lc=function(){return wst(this.c.vc().Nc(),new B,64,this.d)},l.cc=function(e){return ji(this,e)},l.fc=function(e){return jD(this,e)},l.gc=function(){return this.d},l.mc=function(e){return pn(),new T(e)},l.nc=function(){return new Bzt(this)},l.oc=function(){return wst(this.c.Cc().Nc(),new P,64,this.d)},l.pc=function(e,n){return new k$(this,e,n,null)},l.d=0,N(Ye,"AbstractMapBasedMultimap",726),M(1631,726,wb),l.hc=function(){return new iu(this.a)},l.jc=function(){return pn(),pn(),wo},l.cc=function(e){return u(ji(this,e),15)},l.fc=function(e){return u(jD(this,e),15)},l.Zb=function(){return j6(this)},l.Fb=function(e){return hit(this,e)},l.qc=function(e){return u(ji(this,e),15)},l.rc=function(e){return u(jD(this,e),15)},l.mc=function(e){return ZM(u(e,15))},l.pc=function(e,n){return OQt(this,e,u(n,15),null)},N(Ye,"AbstractListMultimap",1631),M(732,1,va),l.Nb=function(e){Da(this,e)},l.Ob=function(){return this.c.Ob()||this.e.Ob()},l.Pb=function(){var e;return this.e.Ob()||(e=u(this.c.Pb(),42),this.b=e.cd(),this.a=u(e.dd(),14),this.e=this.a.Kc()),this.sc(this.b,this.e.Pb())},l.Qb=function(){this.e.Qb(),this.a.dc()&&this.c.Qb(),--this.d.d},N(Ye,"AbstractMapBasedMultimap/Itr",732),M(1099,732,va,Bzt),l.sc=function(e,n){return n},N(Ye,"AbstractMapBasedMultimap/1",1099),M(1100,1,{},P),l.Kb=function(e){return u(e,14).Nc()},N(Ye,"AbstractMapBasedMultimap/1methodref$spliterator$Type",1100),M(1101,732,va,Rzt),l.sc=function(e,n){return new Ev(e,n)},N(Ye,"AbstractMapBasedMultimap/2",1101);var S8t=ls(_r,"Map");M(1967,1,dw),l.wc=function(e){$_(this,e)},l.yc=function(e,n,r){return Ait(this,e,n,r)},l.$b=function(){this.vc().$b()},l.tc=function(e){return est(this,e)},l._b=function(e){return!!Z3t(this,e,!1)},l.uc=function(e){var n,r,s;for(r=this.vc().Kc();r.Ob();)if(n=u(r.Pb(),42),s=n.dd(),qt(e)===qt(s)||e!=null&&Ni(e,s))return!0;return!1},l.Fb=function(e){var n,r,s;if(e===this)return!0;if(!Et(e,83)||(s=u(e,83),this.gc()!=s.gc()))return!1;for(r=s.vc().Kc();r.Ob();)if(n=u(r.Pb(),42),!this.tc(n))return!1;return!0},l.xc=function(e){return gc(Z3t(this,e,!1))},l.Hb=function(){return Qmt(this.vc())},l.dc=function(){return this.gc()==0},l.ec=function(){return new km(this)},l.zc=function(e,n){throw et(new mg("Put not supported on this map"))},l.Ac=function(e){j_(this,e)},l.Bc=function(e){return gc(Z3t(this,e,!0))},l.gc=function(){return this.vc().gc()},l.Ib=function(){return bse(this)},l.Cc=function(){return new T1(this)},N(_r,"AbstractMap",1967),M(1987,1967,dw),l.bc=function(){return new pR(this)},l.vc=function(){return IKt(this)},l.ec=function(){var e;return e=this.g,e||(this.g=this.bc())},l.Cc=function(){var e;return e=this.i,e||(this.i=new fHt(this))},N(Ye,"Maps/ViewCachingAbstractMap",1987),M(389,1987,dw,n8),l.xc=function(e){return psn(this,e)},l.Bc=function(e){return Don(this,e)},l.$b=function(){this.d==this.e.c?this.e.$b():Tj(new mvt(this))},l._b=function(e){return Wne(this.d,e)},l.Ec=function(){return new $k(this)},l.Dc=function(){return this.Ec()},l.Fb=function(e){return this===e||Ni(this.d,e)},l.Hb=function(){return ns(this.d)},l.ec=function(){return this.e.ec()},l.gc=function(){return this.d.gc()},l.Ib=function(){return Jo(this.d)},N(Ye,"AbstractMapBasedMultimap/AsMap",389);var G1=ls(lc,"Iterable");M(28,1,by),l.Jc=function(e){Oa(this,e)},l.Lc=function(){return this.Oc()},l.Nc=function(){return new Cn(this,0)},l.Oc=function(){return new kn(null,this.Nc())},l.Fc=function(e){throw et(new mg("Add not supported on this collection"))},l.Gc=function(e){return io(this,e)},l.$b=function(){iwt(this)},l.Hc=function(e){return ey(this,e,!1)},l.Ic=function(e){return MD(this,e)},l.dc=function(){return this.gc()==0},l.Mc=function(e){return ey(this,e,!0)},l.Pc=function(){return Ivt(this)},l.Qc=function(e){return YD(this,e)},l.Ib=function(){return Jp(this)},N(_r,"AbstractCollection",28);var Gh=ls(_r,"Set");M(q1,28,Xu),l.Nc=function(){return new Cn(this,1)},l.Fb=function(e){return $re(this,e)},l.Hb=function(){return Qmt(this)},N(_r,"AbstractSet",q1),M(1970,q1,Xu),N(Ye,"Sets/ImprovedAbstractSet",1970),M(1971,1970,Xu),l.$b=function(){this.Rc().$b()},l.Hc=function(e){return xre(this,e)},l.dc=function(){return this.Rc().dc()},l.Mc=function(e){var n;return this.Hc(e)?(n=u(e,42),this.Rc().ec().Mc(n.cd())):!1},l.gc=function(){return this.Rc().gc()},N(Ye,"Maps/EntrySet",1971),M(1097,1971,Xu,$k),l.Hc=function(e){return Cyt(this.a.d.vc(),e)},l.Kc=function(){return new mvt(this.a)},l.Rc=function(){return this.a},l.Mc=function(e){var n;return Cyt(this.a.d.vc(),e)?(n=u(e,42),ein(this.a.e,n.cd()),!0):!1},l.Nc=function(){return VM(this.a.d.vc().Nc(),new FB(this.a))},N(Ye,"AbstractMapBasedMultimap/AsMap/AsMapEntries",1097),M(1098,1,{},FB),l.Kb=function(e){return kZt(this.a,u(e,42))},N(Ye,"AbstractMapBasedMultimap/AsMap/AsMapEntries/0methodref$wrapEntry$Type",1098),M(730,1,va,mvt),l.Nb=function(e){Da(this,e)},l.Pb=function(){var e;return e=u(this.b.Pb(),42),this.a=u(e.dd(),14),kZt(this.c,e)},l.Ob=function(){return this.b.Ob()},l.Qb=function(){n4(!!this.a),this.b.Qb(),this.c.e.d-=this.a.gc(),this.a.$b(),this.a=null},N(Ye,"AbstractMapBasedMultimap/AsMap/AsMapIterator",730),M(532,1970,Xu,pR),l.$b=function(){this.b.$b()},l.Hc=function(e){return this.b._b(e)},l.Jc=function(e){zr(e),this.b.wc(new ntt(e))},l.dc=function(){return this.b.dc()},l.Kc=function(){return new CT(this.b.vc().Kc())},l.Mc=function(e){return this.b._b(e)?(this.b.Bc(e),!0):!1},l.gc=function(){return this.b.gc()},N(Ye,"Maps/KeySet",532),M(318,532,Xu,W3),l.$b=function(){var e;Tj((e=this.b.vc().Kc(),new Gpt(this,e)))},l.Ic=function(e){return this.b.ec().Ic(e)},l.Fb=function(e){return this===e||Ni(this.b.ec(),e)},l.Hb=function(){return ns(this.b.ec())},l.Kc=function(){var e;return e=this.b.vc().Kc(),new Gpt(this,e)},l.Mc=function(e){var n,r;return r=0,n=u(this.b.Bc(e),14),n&&(r=n.gc(),n.$b(),this.a.d-=r),r>0},l.Nc=function(){return this.b.ec().Nc()},N(Ye,"AbstractMapBasedMultimap/KeySet",318),M(731,1,va,Gpt),l.Nb=function(e){Da(this,e)},l.Ob=function(){return this.c.Ob()},l.Pb=function(){return this.a=u(this.c.Pb(),42),this.a.cd()},l.Qb=function(){var e;n4(!!this.a),e=u(this.a.dd(),14),this.c.Qb(),this.b.a.d-=e.gc(),e.$b(),this.a=null},N(Ye,"AbstractMapBasedMultimap/KeySet/1",731),M(491,389,{83:1,161:1},BM),l.bc=function(){return this.Sc()},l.ec=function(){return this.Tc()},l.Sc=function(){return new dM(this.c,this.Uc())},l.Tc=function(){var e;return e=this.b,e||(this.b=this.Sc())},l.Uc=function(){return u(this.d,161)},N(Ye,"AbstractMapBasedMultimap/SortedAsMap",491),M(542,491,ehe,hj),l.bc=function(){return new e8(this.a,u(u(this.d,161),171))},l.Sc=function(){return new e8(this.a,u(u(this.d,161),171))},l.ec=function(){var e;return e=this.b,u(e||(this.b=new e8(this.a,u(u(this.d,161),171))),271)},l.Tc=function(){var e;return e=this.b,u(e||(this.b=new e8(this.a,u(u(this.d,161),171))),271)},l.Uc=function(){return u(u(this.d,161),171)},N(Ye,"AbstractMapBasedMultimap/NavigableAsMap",542),M(490,318,nhe,dM),l.Nc=function(){return this.b.ec().Nc()},N(Ye,"AbstractMapBasedMultimap/SortedKeySet",490),M(388,490,l6t,e8),N(Ye,"AbstractMapBasedMultimap/NavigableKeySet",388),M(541,28,by,k$),l.Fc=function(e){var n,r;return vl(this),r=this.d.dc(),n=this.d.Fc(e),n&&(++this.f.d,r&&zM(this)),n},l.Gc=function(e){var n,r,s;return e.dc()?!1:(s=(vl(this),this.d.gc()),n=this.d.Gc(e),n&&(r=this.d.gc(),this.f.d+=r-s,s==0&&zM(this)),n)},l.$b=function(){var e;e=(vl(this),this.d.gc()),e!=0&&(this.d.$b(),this.f.d-=e,Lj(this))},l.Hc=function(e){return vl(this),this.d.Hc(e)},l.Ic=function(e){return vl(this),this.d.Ic(e)},l.Fb=function(e){return e===this?!0:(vl(this),Ni(this.d,e))},l.Hb=function(){return vl(this),ns(this.d)},l.Kc=function(){return vl(this),new svt(this)},l.Mc=function(e){var n;return vl(this),n=this.d.Mc(e),n&&(--this.f.d,Lj(this)),n},l.gc=function(){return XVt(this)},l.Nc=function(){return vl(this),this.d.Nc()},l.Ib=function(){return vl(this),Jo(this.d)},N(Ye,"AbstractMapBasedMultimap/WrappedCollection",541);var Eh=ls(_r,"List");M(728,541,{20:1,28:1,14:1,15:1},Nvt),l.ad=function(e){e4(this,e)},l.Nc=function(){return vl(this),this.d.Nc()},l.Vc=function(e,n){var r;vl(this),r=this.d.dc(),u(this.d,15).Vc(e,n),++this.a.d,r&&zM(this)},l.Wc=function(e,n){var r,s,o;return n.dc()?!1:(o=(vl(this),this.d.gc()),r=u(this.d,15).Wc(e,n),r&&(s=this.d.gc(),this.a.d+=s-o,o==0&&zM(this)),r)},l.Xb=function(e){return vl(this),u(this.d,15).Xb(e)},l.Xc=function(e){return vl(this),u(this.d,15).Xc(e)},l.Yc=function(){return vl(this),new LGt(this)},l.Zc=function(e){return vl(this),new qYt(this,e)},l.$c=function(e){var n;return vl(this),n=u(this.d,15).$c(e),--this.a.d,Lj(this),n},l._c=function(e,n){return vl(this),u(this.d,15)._c(e,n)},l.bd=function(e,n){return vl(this),OQt(this.a,this.e,u(this.d,15).bd(e,n),this.b?this.b:this)},N(Ye,"AbstractMapBasedMultimap/WrappedList",728),M(1096,728,{20:1,28:1,14:1,15:1,54:1},mUt),N(Ye,"AbstractMapBasedMultimap/RandomAccessWrappedList",1096),M(620,1,va,svt),l.Nb=function(e){Da(this,e)},l.Ob=function(){return E8(this),this.b.Ob()},l.Pb=function(){return E8(this),this.b.Pb()},l.Qb=function(){nUt(this)},N(Ye,"AbstractMapBasedMultimap/WrappedCollection/WrappedIterator",620),M(729,620,n0,LGt,qYt),l.Qb=function(){nUt(this)},l.Rb=function(e){var n;n=XVt(this.a)==0,(E8(this),u(this.b,125)).Rb(e),++this.a.a.d,n&&zM(this.a)},l.Sb=function(){return(E8(this),u(this.b,125)).Sb()},l.Tb=function(){return(E8(this),u(this.b,125)).Tb()},l.Ub=function(){return(E8(this),u(this.b,125)).Ub()},l.Vb=function(){return(E8(this),u(this.b,125)).Vb()},l.Wb=function(e){(E8(this),u(this.b,125)).Wb(e)},N(Ye,"AbstractMapBasedMultimap/WrappedList/WrappedListIterator",729),M(727,541,nhe,Cbt),l.Nc=function(){return vl(this),this.d.Nc()},N(Ye,"AbstractMapBasedMultimap/WrappedSortedSet",727),M(1095,727,l6t,xGt),N(Ye,"AbstractMapBasedMultimap/WrappedNavigableSet",1095),M(1094,541,Xu,OUt),l.Nc=function(){return vl(this),this.d.Nc()},N(Ye,"AbstractMapBasedMultimap/WrappedSet",1094),M(1103,1,{},B),l.Kb=function(e){return oin(u(e,42))},N(Ye,"AbstractMapBasedMultimap/lambda$1$Type",1103),M(1102,1,{},HJ),l.Kb=function(e){return new Ev(this.a,e)},N(Ye,"AbstractMapBasedMultimap/lambda$2$Type",1102);var Ab=ls(_r,"Map/Entry");M(345,1,xq),l.Fb=function(e){var n;return Et(e,42)?(n=u(e,42),wd(this.cd(),n.cd())&&wd(this.dd(),n.dd())):!1},l.Hb=function(){var e,n;return e=this.cd(),n=this.dd(),(e==null?0:ns(e))^(n==null?0:ns(n))},l.ed=function(e){throw et(new Gr)},l.Ib=function(){return this.cd()+"="+this.dd()},N(Ye,rhe,345),M(1988,28,by),l.$b=function(){this.fd().$b()},l.Hc=function(e){var n;return Et(e,42)?(n=u(e,42),znn(this.fd(),n.cd(),n.dd())):!1},l.Mc=function(e){var n;return Et(e,42)?(n=u(e,42),dQt(this.fd(),n.cd(),n.dd())):!1},l.gc=function(){return this.fd().d},N(Ye,"Multimaps/Entries",1988),M(733,1988,by,XL),l.Kc=function(){return this.a.kc()},l.fd=function(){return this.a},l.Nc=function(){return this.a.lc()},N(Ye,"AbstractMultimap/Entries",733),M(734,733,Xu,xpt),l.Nc=function(){return this.a.lc()},l.Fb=function(e){return b4t(this,e)},l.Hb=function(){return gee(this)},N(Ye,"AbstractMultimap/EntrySet",734),M(735,28,by,M3),l.$b=function(){this.a.$b()},l.Hc=function(e){return _on(this.a,e)},l.Kc=function(){return this.a.nc()},l.gc=function(){return this.a.d},l.Nc=function(){return this.a.oc()},N(Ye,"AbstractMultimap/Values",735),M(1989,28,{835:1,20:1,28:1,14:1}),l.Jc=function(e){zr(e),Y3(this).Jc(new ett(e))},l.Nc=function(){var e;return e=Y3(this).Nc(),wst(e,new mt,64|e.qd()&1296,this.a.d)},l.Fc=function(e){return Mpt(),!0},l.Gc=function(e){return zr(this),zr(e),Et(e,543)?Unn(u(e,835)):!e.dc()&&Rrt(this,e.Kc())},l.Hc=function(e){var n;return n=u(ty(j6(this.a),e),14),(n?n.gc():0)>0},l.Fb=function(e){return jgn(this,e)},l.Hb=function(){return ns(Y3(this))},l.dc=function(){return Y3(this).dc()},l.Mc=function(e){return Oae(this,e,1)>0},l.Ib=function(){return Jo(Y3(this))},N(Ye,"AbstractMultiset",1989),M(1991,1970,Xu),l.$b=function(){q$(this.a.a)},l.Hc=function(e){var n,r;return Et(e,492)?(r=u(e,416),u(r.a.dd(),14).gc()<=0?!1:(n=HXt(this.a,r.a.cd()),n==u(r.a.dd(),14).gc())):!1},l.Mc=function(e){var n,r,s,o;return Et(e,492)&&(r=u(e,416),n=r.a.cd(),s=u(r.a.dd(),14).gc(),s!=0)?(o=this.a,S0n(o,n,s)):!1},N(Ye,"Multisets/EntrySet",1991),M(1109,1991,Xu,QL),l.Kc=function(){return new Uzt(IKt(j6(this.a.a)).Kc())},l.gc=function(){return j6(this.a.a).gc()},N(Ye,"AbstractMultiset/EntrySet",1109),M(619,726,wb),l.hc=function(){return this.gd()},l.jc=function(){return this.hd()},l.cc=function(e){return this.jd(e)},l.fc=function(e){return this.kd(e)},l.Zb=function(){var e;return e=this.f,e||(this.f=this.ac())},l.hd=function(){return pn(),pn(),BH},l.Fb=function(e){return hit(this,e)},l.jd=function(e){return u(ji(this,e),21)},l.kd=function(e){return u(jD(this,e),21)},l.mc=function(e){return pn(),new Qk(u(e,21))},l.pc=function(e,n){return new OUt(this,e,u(n,21))},N(Ye,"AbstractSetMultimap",619),M(1657,619,wb),l.hc=function(){return new Dp(this.b)},l.gd=function(){return new Dp(this.b)},l.jc=function(){return Yvt(new Dp(this.b))},l.hd=function(){return Yvt(new Dp(this.b))},l.cc=function(e){return u(u(ji(this,e),21),84)},l.jd=function(e){return u(u(ji(this,e),21),84)},l.fc=function(e){return u(u(jD(this,e),21),84)},l.kd=function(e){return u(u(jD(this,e),21),84)},l.mc=function(e){return Et(e,271)?Yvt(u(e,271)):(pn(),new sbt(u(e,84)))},l.Zb=function(){var e;return e=this.f,e||(this.f=Et(this.c,171)?new hj(this,u(this.c,171)):Et(this.c,161)?new BM(this,u(this.c,161)):new n8(this,this.c))},l.pc=function(e,n){return Et(n,271)?new xGt(this,e,u(n,271)):new Cbt(this,e,u(n,84))},N(Ye,"AbstractSortedSetMultimap",1657),M(1658,1657,wb),l.Zb=function(){var e;return e=this.f,u(u(e||(this.f=Et(this.c,171)?new hj(this,u(this.c,171)):Et(this.c,161)?new BM(this,u(this.c,161)):new n8(this,this.c)),161),171)},l.ec=function(){var e;return e=this.i,u(u(e||(this.i=Et(this.c,171)?new e8(this,u(this.c,171)):Et(this.c,161)?new dM(this,u(this.c,161)):new W3(this,this.c)),84),271)},l.bc=function(){return Et(this.c,171)?new e8(this,u(this.c,171)):Et(this.c,161)?new dM(this,u(this.c,161)):new W3(this,this.c)},N(Ye,"AbstractSortedKeySortedSetMultimap",1658),M(2010,1,{1947:1}),l.Fb=function(e){return bfn(this,e)},l.Hb=function(){var e;return Qmt((e=this.g,e||(this.g=new hT(this))))},l.Ib=function(){var e;return bse((e=this.f,e||(this.f=new Q2t(this))))},N(Ye,"AbstractTable",2010),M(665,q1,Xu,hT),l.$b=function(){nqt()},l.Hc=function(e){var n,r;return Et(e,468)?(n=u(e,682),r=u(ty(eYt(this.a),Np(n.c.e,n.b)),83),!!r&&Cyt(r.vc(),new Ev(Np(n.c.c,n.a),U6(n.c,n.b,n.a)))):!1},l.Kc=function(){return ten(this.a)},l.Mc=function(e){var n,r;return Et(e,468)?(n=u(e,682),r=u(ty(eYt(this.a),Np(n.c.e,n.b)),83),!!r&&Zon(r.vc(),new Ev(Np(n.c.c,n.a),U6(n.c,n.b,n.a)))):!1},l.gc=function(){return dKt(this.a)},l.Nc=function(){return Ynn(this.a)},N(Ye,"AbstractTable/CellSet",665),M(1928,28,by,VJ),l.$b=function(){nqt()},l.Hc=function(e){return o1n(this.a,e)},l.Kc=function(){return een(this.a)},l.gc=function(){return dKt(this.a)},l.Nc=function(){return bQt(this.a)},N(Ye,"AbstractTable/Values",1928),M(1632,1631,wb),N(Ye,"ArrayListMultimapGwtSerializationDependencies",1632),M(513,1632,wb,Wtt,ywt),l.hc=function(){return new iu(this.a)},l.a=0,N(Ye,"ArrayListMultimap",513),M(664,2010,{664:1,1947:1,3:1},Hae),N(Ye,"ArrayTable",664),M(1924,386,A7,XGt),l.Xb=function(e){return new eyt(this.a,e)},N(Ye,"ArrayTable/1",1924),M(1925,1,{},PB),l.ld=function(e){return new eyt(this.a,e)},N(Ye,"ArrayTable/1methodref$getCell$Type",1925),M(2011,1,{682:1}),l.Fb=function(e){var n;return e===this?!0:Et(e,468)?(n=u(e,682),wd(Np(this.c.e,this.b),Np(n.c.e,n.b))&&wd(Np(this.c.c,this.a),Np(n.c.c,n.a))&&wd(U6(this.c,this.b,this.a),U6(n.c,n.b,n.a))):!1},l.Hb=function(){return cz(ct(ot(nr,1),De,1,5,[Np(this.c.e,this.b),Np(this.c.c,this.a),U6(this.c,this.b,this.a)]))},l.Ib=function(){return"("+Np(this.c.e,this.b)+","+Np(this.c.c,this.a)+")="+U6(this.c,this.b,this.a)},N(Ye,"Tables/AbstractCell",2011),M(468,2011,{468:1,682:1},eyt),l.a=0,l.b=0,l.d=0,N(Ye,"ArrayTable/2",468),M(1927,1,{},a6),l.ld=function(e){return SJt(this.a,e)},N(Ye,"ArrayTable/2methodref$getValue$Type",1927),M(1926,386,A7,QGt),l.Xb=function(e){return SJt(this.a,e)},N(Ye,"ArrayTable/3",1926),M(1979,1967,dw),l.$b=function(){Tj(this.kc())},l.vc=function(){return new c6(this)},l.lc=function(){return new LYt(this.kc(),this.gc())},N(Ye,"Maps/IteratorBasedAbstractMap",1979),M(828,1979,dw),l.$b=function(){throw et(new Gr)},l._b=function(e){return xqt(this.c,e)},l.kc=function(){return new ZGt(this,this.c.b.c.gc())},l.lc=function(){return gnt(this.c.b.c.gc(),16,new lv(this))},l.xc=function(e){var n;return n=u(f_(this.c,e),19),n?this.nd(n.a):null},l.dc=function(){return this.c.b.c.dc()},l.ec=function(){return knt(this.c)},l.zc=function(e,n){var r;if(r=u(f_(this.c,e),19),!r)throw et(new Bn(this.md()+" "+e+" not in "+knt(this.c)));return this.od(r.a,n)},l.Bc=function(e){throw et(new Gr)},l.gc=function(){return this.c.b.c.gc()},N(Ye,"ArrayTable/ArrayMap",828),M(1923,1,{},lv),l.ld=function(e){return rYt(this.a,e)},N(Ye,"ArrayTable/ArrayMap/0methodref$getEntry$Type",1923),M(1921,345,xq,eHt),l.cd=function(){return bYe(this.a,this.b)},l.dd=function(){return this.a.nd(this.b)},l.ed=function(e){return this.a.od(this.b,e)},l.b=0,N(Ye,"ArrayTable/ArrayMap/1",1921),M(1922,386,A7,ZGt),l.Xb=function(e){return rYt(this.a,e)},N(Ye,"ArrayTable/ArrayMap/2",1922),M(1920,828,dw,VKt),l.md=function(){return"Column"},l.nd=function(e){return U6(this.b,this.a,e)},l.od=function(e,n){return Jee(this.b,this.a,e,n)},l.a=0,N(Ye,"ArrayTable/Row",1920),M(829,828,dw,Q2t),l.nd=function(e){return new VKt(this.a,e)},l.zc=function(e,n){return u(n,83),JUe()},l.od=function(e,n){return u(n,83),tWe()},l.md=function(){return"Row"},N(Ye,"ArrayTable/RowMap",829),M(1120,1,Rh,nHt),l.qd=function(){return this.a.qd()&-262},l.rd=function(){return this.a.rd()},l.Nb=function(e){this.a.Nb(new Qqt(e,this.b))},l.sd=function(e){return this.a.sd(new Xqt(e,this.b))},N(Ye,"CollectSpliterators/1",1120),M(1121,1,Qn,Xqt),l.td=function(e){this.a.td(this.b.Kb(e))},N(Ye,"CollectSpliterators/1/lambda$0$Type",1121),M(1122,1,Qn,Qqt),l.td=function(e){this.a.td(this.b.Kb(e))},N(Ye,"CollectSpliterators/1/lambda$1$Type",1122),M(1123,1,Rh,SQt),l.qd=function(){return this.a},l.rd=function(){return this.d&&(this.b=DGt(this.b,this.d.rd())),DGt(this.b,0)},l.Nb=function(e){this.d&&(this.d.Nb(e),this.d=null),this.c.Nb(new Yqt(this.e,e)),this.b=0},l.sd=function(e){for(;;){if(this.d&&this.d.sd(e))return t_(this.b,kq)&&(this.b=Qp(this.b,1)),!0;if(this.d=null,!this.c.sd(new Zqt(this,this.e)))return!1}},l.a=0,l.b=0,N(Ye,"CollectSpliterators/1FlatMapSpliterator",1123),M(1124,1,Qn,Zqt),l.td=function(e){mXe(this.a,this.b,e)},N(Ye,"CollectSpliterators/1FlatMapSpliterator/lambda$0$Type",1124),M(1125,1,Qn,Yqt),l.td=function(e){rYe(this.b,this.a,e)},N(Ye,"CollectSpliterators/1FlatMapSpliterator/lambda$1$Type",1125),M(1117,1,Rh,uWt),l.qd=function(){return 16464|this.b},l.rd=function(){return this.a.rd()},l.Nb=function(e){this.a.xe(new tHt(e,this.c))},l.sd=function(e){return this.a.ye(new Jqt(e,this.c))},l.b=0,N(Ye,"CollectSpliterators/1WithCharacteristics",1117),M(1118,1,SI,Jqt),l.ud=function(e){this.a.td(this.b.ld(e))},N(Ye,"CollectSpliterators/1WithCharacteristics/lambda$0$Type",1118),M(1119,1,SI,tHt),l.ud=function(e){this.a.td(this.b.ld(e))},N(Ye,"CollectSpliterators/1WithCharacteristics/lambda$1$Type",1119),M(245,1,Eat),l.wd=function(e){return this.vd(u(e,245))},l.vd=function(e){var n;return e==(Rtt(),iut)?1:e==(jtt(),rut)?-1:(n=(xj(),CD(this.a,e.a)),n!=0?n:Et(this,519)==Et(e,519)?0:Et(this,519)?1:-1)},l.zd=function(){return this.a},l.Fb=function(e){return i3t(this,e)},N(Ye,"Cut",245),M(1761,245,Eat,sqt),l.vd=function(e){return e==this?0:1},l.xd=function(e){throw et(new rpt)},l.yd=function(e){e.a+="+∞)"},l.zd=function(){throw et(new Yo(she))},l.Hb=function(){return Gd(),d3t(this)},l.Ad=function(e){return!1},l.Ib=function(){return"+∞"};var rut;N(Ye,"Cut/AboveAll",1761),M(519,245,{245:1,519:1,3:1,35:1},rUt),l.xd=function(e){Cc((e.a+="(",e),this.a)},l.yd=function(e){$p(Cc(e,this.a),93)},l.Hb=function(){return~ns(this.a)},l.Ad=function(e){return xj(),CD(this.a,e)<0},l.Ib=function(){return"/"+this.a+"\\"},N(Ye,"Cut/AboveValue",519),M(1760,245,Eat,aqt),l.vd=function(e){return e==this?0:-1},l.xd=function(e){e.a+="(-∞"},l.yd=function(e){throw et(new rpt)},l.zd=function(){throw et(new Yo(she))},l.Hb=function(){return Gd(),d3t(this)},l.Ad=function(e){return!0},l.Ib=function(){return"-∞"};var iut;N(Ye,"Cut/BelowAll",1760),M(1762,245,Eat,iUt),l.xd=function(e){Cc((e.a+="[",e),this.a)},l.yd=function(e){$p(Cc(e,this.a),41)},l.Hb=function(){return ns(this.a)},l.Ad=function(e){return xj(),CD(this.a,e)<=0},l.Ib=function(){return"\\"+this.a+"/"},N(Ye,"Cut/BelowValue",1762),M(537,1,r0),l.Jc=function(e){Oa(this,e)},l.Ib=function(){return Acn(u(Kj(this,"use Optional.orNull() instead of Optional.or(null)"),20).Kc())},N(Ye,"FluentIterable",537),M(433,537,r0,r_),l.Kc=function(){return new pr(mr(this.a.Kc(),new H))},N(Ye,"FluentIterable/2",433),M(1046,537,r0,cGt),l.Kc=function(){return jp(this)},N(Ye,"FluentIterable/3",1046),M(708,386,A7,Z2t),l.Xb=function(e){return this.a[e].Kc()},N(Ye,"FluentIterable/3/1",708),M(1972,1,{}),l.Ib=function(){return Jo(this.Bd().b)},N(Ye,"ForwardingObject",1972),M(1973,1972,ahe),l.Bd=function(){return this.Cd()},l.Jc=function(e){Oa(this,e)},l.Lc=function(){return this.Oc()},l.Nc=function(){return new Cn(this,0)},l.Oc=function(){return new kn(null,this.Nc())},l.Fc=function(e){return this.Cd(),_qt()},l.Gc=function(e){return this.Cd(),Cqt()},l.$b=function(){this.Cd(),Sqt()},l.Hc=function(e){return this.Cd().Hc(e)},l.Ic=function(e){return this.Cd().Ic(e)},l.dc=function(){return this.Cd().b.dc()},l.Kc=function(){return this.Cd().Kc()},l.Mc=function(e){return this.Cd(),Aqt()},l.gc=function(){return this.Cd().b.gc()},l.Pc=function(){return this.Cd().Pc()},l.Qc=function(e){return this.Cd().Qc(e)},N(Ye,"ForwardingCollection",1973),M(1980,28,h6t),l.Kc=function(){return this.Ed()},l.Fc=function(e){throw et(new Gr)},l.Gc=function(e){throw et(new Gr)},l.$b=function(){throw et(new Gr)},l.Hc=function(e){return e!=null&&ey(this,e,!1)},l.Dd=function(){switch(this.gc()){case 0:return qm(),qm(),sut;case 1:return qm(),new pnt(zr(this.Ed().Pb()));default:return new GKt(this,this.Pc())}},l.Mc=function(e){throw et(new Gr)},N(Ye,"ImmutableCollection",1980),M(712,1980,h6t,ept),l.Kc=function(){return W6(this.a.Kc())},l.Hc=function(e){return e!=null&&this.a.Hc(e)},l.Ic=function(e){return this.a.Ic(e)},l.dc=function(){return this.a.dc()},l.Ed=function(){return W6(this.a.Kc())},l.gc=function(){return this.a.gc()},l.Pc=function(){return this.a.Pc()},l.Qc=function(e){return this.a.Qc(e)},l.Ib=function(){return Jo(this.a)},N(Ye,"ForwardingImmutableCollection",712),M(152,1980,xC),l.Kc=function(){return this.Ed()},l.Yc=function(){return this.Fd(0)},l.Zc=function(e){return this.Fd(e)},l.ad=function(e){e4(this,e)},l.Nc=function(){return new Cn(this,16)},l.bd=function(e,n){return this.Gd(e,n)},l.Vc=function(e,n){throw et(new Gr)},l.Wc=function(e,n){throw et(new Gr)},l.Fb=function(e){return Egn(this,e)},l.Hb=function(){return Nan(this)},l.Xc=function(e){return e==null?-1:Wln(this,e)},l.Ed=function(){return this.Fd(0)},l.Fd=function(e){return dbt(this,e)},l.$c=function(e){throw et(new Gr)},l._c=function(e,n){throw et(new Gr)},l.Gd=function(e,n){var r;return hz((r=new dHt(this),new Qd(r,e,n)))};var sut;N(Ye,"ImmutableList",152),M(2006,152,xC),l.Kc=function(){return W6(this.Hd().Kc())},l.bd=function(e,n){return hz(this.Hd().bd(e,n))},l.Hc=function(e){return e!=null&&this.Hd().Hc(e)},l.Ic=function(e){return this.Hd().Ic(e)},l.Fb=function(e){return Ni(this.Hd(),e)},l.Xb=function(e){return Np(this,e)},l.Hb=function(){return ns(this.Hd())},l.Xc=function(e){return this.Hd().Xc(e)},l.dc=function(){return this.Hd().dc()},l.Ed=function(){return W6(this.Hd().Kc())},l.gc=function(){return this.Hd().gc()},l.Gd=function(e,n){return hz(this.Hd().bd(e,n))},l.Pc=function(){return this.Hd().Qc(Ot(nr,De,1,this.Hd().gc(),5,1))},l.Qc=function(e){return this.Hd().Qc(e)},l.Ib=function(){return Jo(this.Hd())},N(Ye,"ForwardingImmutableList",2006),M(714,1,L7),l.vc=function(){return Iv(this)},l.wc=function(e){$_(this,e)},l.ec=function(){return knt(this)},l.yc=function(e,n,r){return Ait(this,e,n,r)},l.Cc=function(){return this.Ld()},l.$b=function(){throw et(new Gr)},l._b=function(e){return this.xc(e)!=null},l.uc=function(e){return this.Ld().Hc(e)},l.Jd=function(){return new X$t(this)},l.Kd=function(){return new Q$t(this)},l.Fb=function(e){return Con(this,e)},l.Hb=function(){return Iv(this).Hb()},l.dc=function(){return this.gc()==0},l.zc=function(e,n){return eWe()},l.Bc=function(e){throw et(new Gr)},l.Ib=function(){return idn(this)},l.Ld=function(){return this.e?this.e:this.e=this.Kd()},l.c=null,l.d=null,l.e=null;var y0e;N(Ye,"ImmutableMap",714),M(715,714,L7),l._b=function(e){return xqt(this,e)},l.uc=function(e){return vHt(this.b,e)},l.Id=function(){return Une(new dT(this))},l.Jd=function(){return Une(_Yt(this.b))},l.Kd=function(){return vd(),new ept(TYt(this.b))},l.Fb=function(e){return wHt(this.b,e)},l.xc=function(e){return f_(this,e)},l.Hb=function(){return ns(this.b.c)},l.dc=function(){return this.b.c.dc()},l.gc=function(){return this.b.c.gc()},l.Ib=function(){return Jo(this.b.c)},N(Ye,"ForwardingImmutableMap",715),M(1974,1973,Tat),l.Bd=function(){return this.Md()},l.Cd=function(){return this.Md()},l.Nc=function(){return new Cn(this,1)},l.Fb=function(e){return e===this||this.Md().Fb(e)},l.Hb=function(){return this.Md().Hb()},N(Ye,"ForwardingSet",1974),M(1069,1974,Tat,dT),l.Bd=function(){return x8(this.a.b)},l.Cd=function(){return x8(this.a.b)},l.Hc=function(e){if(Et(e,42)&&u(e,42).cd()==null)return!1;try{return bHt(x8(this.a.b),e)}catch(n){if(n=os(n),Et(n,205))return!1;throw et(n)}},l.Md=function(){return x8(this.a.b)},l.Qc=function(e){var n;return n=aXt(x8(this.a.b),e),x8(this.a.b).b.gc()=0?"+":"")+(r/60|0),n=KR(b.Math.abs(r)%60),(Cse(),F0e)[this.q.getDay()]+" "+B0e[this.q.getMonth()]+" "+KR(this.q.getDate())+" "+KR(this.q.getHours())+":"+KR(this.q.getMinutes())+":"+KR(this.q.getSeconds())+" GMT"+e+n+" "+this.q.getFullYear()};var NH=N(_r,"Date",199);M(1915,199,phe,Jie),l.a=!1,l.b=0,l.c=0,l.d=0,l.e=0,l.f=0,l.g=!1,l.i=0,l.j=0,l.k=0,l.n=0,l.o=0,l.p=0,N("com.google.gwt.i18n.shared.impl","DateRecord",1915),M(1966,1,{}),l.fe=function(){return null},l.ge=function(){return null},l.he=function(){return null},l.ie=function(){return null},l.je=function(){return null},N(lx,"JSONValue",1966),M(216,1966,{216:1},pg,u6),l.Fb=function(e){return Et(e,216)?Ewt(this.a,u(e,216).a):!1},l.ee=function(){return EUe},l.Hb=function(){return lwt(this.a)},l.fe=function(){return this},l.Ib=function(){var e,n,r;for(r=new jl("["),n=0,e=this.a.length;n0&&(r.a+=","),Cc(r,Km(this,n));return r.a+="]",r.a},N(lx,"JSONArray",216),M(483,1966,{483:1},qk),l.ee=function(){return TUe},l.ge=function(){return this},l.Ib=function(){return Rn(),""+this.a},l.a=!1;var S0e,A0e;N(lx,"JSONBoolean",483),M(985,60,G0,Wzt),N(lx,"JSONException",985),M(1023,1966,{},yt),l.ee=function(){return LUe},l.Ib=function(){return Pu};var L0e;N(lx,"JSONNull",1023),M(258,1966,{258:1},gT),l.Fb=function(e){return Et(e,258)?this.a==u(e,258).a:!1},l.ee=function(){return _Ue},l.Hb=function(){return o8(this.a)},l.he=function(){return this},l.Ib=function(){return this.a+""},l.a=0,N(lx,"JSONNumber",258),M(183,1966,{183:1},w6,Hk),l.Fb=function(e){return Et(e,183)?Ewt(this.a,u(e,183).a):!1},l.ee=function(){return CUe},l.Hb=function(){return lwt(this.a)},l.ie=function(){return this},l.Ib=function(){var e,n,r,s,o,h,d;for(d=new jl("{"),e=!0,h=Qrt(this,Ot(Me,te,2,0,6,1)),r=h,s=0,o=r.length;s=0?":"+this.c:"")+")"},l.c=0;var V8t=N(lc,"StackTraceElement",310);m0e={3:1,475:1,35:1,2:1};var Me=N(lc,f6t,2);M(107,418,{475:1},yg,DT,Ih),N(lc,"StringBuffer",107),M(100,418,{475:1},Ap,Sm,jl),N(lc,"StringBuilder",100),M(687,73,Wat,Ipt),N(lc,"StringIndexOutOfBoundsException",687),M(2043,1,{});var G8t;M(844,1,{},me),l.Kb=function(e){return u(e,78).e},N(lc,"Throwable/lambda$0$Type",844),M(41,60,{3:1,102:1,60:1,78:1,41:1},Gr,mg),N(lc,"UnsupportedOperationException",41),M(240,236,{3:1,35:1,236:1,240:1},xD,zpt),l.wd=function(e){return aue(this,u(e,240))},l.ke=function(){return cy(que(this))},l.Fb=function(e){var n;return this===e?!0:Et(e,240)?(n=u(e,240),this.e==n.e&&aue(this,n)==0):!1},l.Hb=function(){var e;return this.b!=0?this.b:this.a<54?(e=Ou(this.f),this.b=$r(Xs(e,-1)),this.b=33*this.b+$r(Xs(Rp(e,32),-1)),this.b=17*this.b+Ms(this.e),this.b):(this.b=17*$ne(this.c)+Ms(this.e),this.b)},l.Ib=function(){return que(this)},l.a=0,l.b=0,l.d=0,l.e=0,l.f=0;var O0e,Mb,U8t,W8t,K8t,Y8t,X8t,Q8t,dut=N("java.math","BigDecimal",240);M(91,236,{3:1,35:1,236:1,91:1},f3t,Ag,K3,K3t,Hre,Fp),l.wd=function(e){return Rre(this,u(e,91))},l.ke=function(){return cy(yat(this,0))},l.Fb=function(e){return Gyt(this,e)},l.Hb=function(){return $ne(this)},l.Ib=function(){return yat(this,0)},l.b=-2,l.c=0,l.d=0,l.e=0;var gut,PH,Z8t,put,FH,Q7,B4=N("java.math","BigInteger",91),N0e,P0e,Ex,eS;M(488,1967,dw),l.$b=function(){al(this)},l._b=function(e){return Il(this,e)},l.uc=function(e){return Tne(this,e,this.g)||Tne(this,e,this.f)},l.vc=function(){return new vg(this)},l.xc=function(e){return or(this,e)},l.zc=function(e,n){return Pi(this,e,n)},l.Bc=function(e){return G6(this,e)},l.gc=function(){return NT(this)},N(_r,"AbstractHashMap",488),M(261,q1,Xu,vg),l.$b=function(){this.a.$b()},l.Hc=function(e){return kQt(this,e)},l.Kc=function(){return new ub(this.a)},l.Mc=function(e){var n;return kQt(this,e)?(n=u(e,42).cd(),this.a.Bc(n),!0):!1},l.gc=function(){return this.a.gc()},N(_r,"AbstractHashMap/EntrySet",261),M(262,1,va,ub),l.Nb=function(e){Da(this,e)},l.Pb=function(){return Uv(this)},l.Ob=function(){return this.b},l.Qb=function(){mJt(this)},l.b=!1,N(_r,"AbstractHashMap/EntrySetIterator",262),M(417,1,va,h6),l.Nb=function(e){Da(this,e)},l.Ob=function(){return wM(this)},l.Pb=function(){return VYt(this)},l.Qb=function(){Ol(this)},l.b=0,l.c=-1,N(_r,"AbstractList/IteratorImpl",417),M(96,417,n0,Ca),l.Qb=function(){Ol(this)},l.Rb=function(e){Fm(this,e)},l.Sb=function(){return this.b>0},l.Tb=function(){return this.b},l.Ub=function(){return ir(this.b>0),this.a.Xb(this.c=--this.b)},l.Vb=function(){return this.b-1},l.Wb=function(e){Om(this.c!=-1),this.a._c(this.c,e)},N(_r,"AbstractList/ListIteratorImpl",96),M(219,52,D7,Qd),l.Vc=function(e,n){Vm(e,this.b),this.c.Vc(this.a+e,n),++this.b},l.Xb=function(e){return An(e,this.b),this.c.Xb(this.a+e)},l.$c=function(e){var n;return An(e,this.b),n=this.c.$c(this.a+e),--this.b,n},l._c=function(e,n){return An(e,this.b),this.c._c(this.a+e,n)},l.gc=function(){return this.b},l.a=0,l.b=0,N(_r,"AbstractList/SubList",219),M(384,q1,Xu,km),l.$b=function(){this.a.$b()},l.Hc=function(e){return this.a._b(e)},l.Kc=function(){var e;return e=this.a.vc().Kc(),new nM(e)},l.Mc=function(e){return this.a._b(e)?(this.a.Bc(e),!0):!1},l.gc=function(){return this.a.gc()},N(_r,"AbstractMap/1",384),M(691,1,va,nM),l.Nb=function(e){Da(this,e)},l.Ob=function(){return this.a.Ob()},l.Pb=function(){var e;return e=u(this.a.Pb(),42),e.cd()},l.Qb=function(){this.a.Qb()},N(_r,"AbstractMap/1/1",691),M(226,28,by,T1),l.$b=function(){this.a.$b()},l.Hc=function(e){return this.a.uc(e)},l.Kc=function(){var e;return e=this.a.vc().Kc(),new _1(e)},l.gc=function(){return this.a.gc()},N(_r,"AbstractMap/2",226),M(294,1,va,_1),l.Nb=function(e){Da(this,e)},l.Ob=function(){return this.a.Ob()},l.Pb=function(){var e;return e=u(this.a.Pb(),42),e.dd()},l.Qb=function(){this.a.Qb()},N(_r,"AbstractMap/2/1",294),M(484,1,{484:1,42:1}),l.Fb=function(e){var n;return Et(e,42)?(n=u(e,42),Gc(this.d,n.cd())&&Gc(this.e,n.dd())):!1},l.cd=function(){return this.d},l.dd=function(){return this.e},l.Hb=function(){return V3(this.d)^V3(this.e)},l.ed=function(e){return Obt(this,e)},l.Ib=function(){return this.d+"="+this.e},N(_r,"AbstractMap/AbstractEntry",484),M(383,484,{484:1,383:1,42:1},LR),N(_r,"AbstractMap/SimpleEntry",383),M(1984,1,Qat),l.Fb=function(e){var n;return Et(e,42)?(n=u(e,42),Gc(this.cd(),n.cd())&&Gc(this.dd(),n.dd())):!1},l.Hb=function(){return V3(this.cd())^V3(this.dd())},l.Ib=function(){return this.cd()+"="+this.dd()},N(_r,rhe,1984),M(1992,1967,ehe),l.tc=function(e){return MZt(this,e)},l._b=function(e){return rnt(this,e)},l.vc=function(){return new x(this)},l.xc=function(e){var n;return n=e,gc(fyt(this,n))},l.ec=function(){return new y(this)},N(_r,"AbstractNavigableMap",1992),M(739,q1,Xu,x),l.Hc=function(e){return Et(e,42)&&MZt(this.b,u(e,42))},l.Kc=function(){return new h_(this.b)},l.Mc=function(e){var n;return Et(e,42)?(n=u(e,42),vJt(this.b,n)):!1},l.gc=function(){return this.b.c},N(_r,"AbstractNavigableMap/EntrySet",739),M(493,q1,l6t,y),l.Nc=function(){return new SR(this)},l.$b=function(){ST(this.a)},l.Hc=function(e){return rnt(this.a,e)},l.Kc=function(){var e;return e=new h_(new c_(this.a).b),new g(e)},l.Mc=function(e){return rnt(this.a,e)?(__(this.a,e),!0):!1},l.gc=function(){return this.a.c},N(_r,"AbstractNavigableMap/NavigableKeySet",493),M(494,1,va,g),l.Nb=function(e){Da(this,e)},l.Ob=function(){return wM(this.a.a)},l.Pb=function(){var e;return e=uj(this.a),e.cd()},l.Qb=function(){yWt(this.a)},N(_r,"AbstractNavigableMap/NavigableKeySet/1",494),M(2004,28,by),l.Fc=function(e){return M8(d7(this,e)),!0},l.Gc=function(e){return Pn(e),vj(e!=this,"Can't add a queue to itself"),io(this,e)},l.$b=function(){for(;jrt(this)!=null;);},N(_r,"AbstractQueue",2004),M(302,28,{4:1,20:1,28:1,14:1},P3,WXt),l.Fc=function(e){return Dwt(this,e),!0},l.$b=function(){Bwt(this)},l.Hc=function(e){return Wee(new T_(this),e)},l.dc=function(){return AT(this)},l.Kc=function(){return new T_(this)},l.Mc=function(e){return jen(new T_(this),e)},l.gc=function(){return this.c-this.b&this.a.length-1},l.Nc=function(){return new Cn(this,272)},l.Qc=function(e){var n;return n=this.c-this.b&this.a.length-1,e.lengthn&&ds(e,n,null),e},l.b=0,l.c=0,N(_r,"ArrayDeque",302),M(446,1,va,T_),l.Nb=function(e){Da(this,e)},l.Ob=function(){return this.a!=this.b},l.Pb=function(){return lz(this)},l.Qb=function(){Gte(this)},l.a=0,l.b=0,l.c=-1,N(_r,"ArrayDeque/IteratorImpl",446),M(12,52,whe,le,iu,Uu),l.Vc=function(e,n){Rm(this,e,n)},l.Fc=function(e){return ue(this,e)},l.Wc=function(e,n){return wyt(this,e,n)},l.Gc=function(e){return Hs(this,e)},l.$b=function(){this.c=Ot(nr,De,1,0,5,1)},l.Hc=function(e){return Qo(this,e,0)!=-1},l.Jc=function(e){Mu(this,e)},l.Xb=function(e){return Fe(this,e)},l.Xc=function(e){return Qo(this,e,0)},l.dc=function(){return this.c.length==0},l.Kc=function(){return new S(this)},l.$c=function(e){return Sg(this,e)},l.Mc=function(e){return Au(this,e)},l.Ud=function(e,n){UXt(this,e,n)},l._c=function(e,n){return gh(this,e,n)},l.gc=function(){return this.c.length},l.ad=function(e){ua(this,e)},l.Pc=function(){return Uet(this)},l.Qc=function(e){return $1(this,e)};var E4n=N(_r,"ArrayList",12);M(7,1,va,S),l.Nb=function(e){Da(this,e)},l.Ob=function(){return sc(this)},l.Pb=function(){return Q(this)},l.Qb=function(){y_(this)},l.a=0,l.b=-1,N(_r,"ArrayList/1",7),M(2013,b.Function,{},lt),l.te=function(e,n){return Vs(e,n)},M(154,52,mhe,Al),l.Hc=function(e){return Wte(this,e)!=-1},l.Jc=function(e){var n,r,s,o;for(Pn(e),r=this.a,s=0,o=r.length;s>>0,e.toString(16)))},l.f=0,l.i=Rs;var zH=N(a0,"CNode",57);M(814,1,{},fpt),N(a0,"CNode/CNodeBuilder",814);var Q0e;M(1525,1,{},zn),l.Oe=function(e,n){return 0},l.Pe=function(e,n){return 0},N(a0,She,1525),M(1790,1,{},Zn),l.Le=function(e){var n,r,s,o,h,d,w,k,_,L,F,q,G,W,Z;for(_=ms,s=new S(e.a.b);s.as.d.c||s.d.c==h.d.c&&s.d.b0?e+this.n.d+this.n.a:0},l.Se=function(){var e,n,r,s,o;if(o=0,this.e)this.b?o=this.b.a:this.a[1][1]&&(o=this.a[1][1].Se());else if(this.g)o=$yt(this,ust(this,null,!0));else for(n=(t1(),ct(ot(Ay,1),se,232,0,[wc,uu,mc])),r=0,s=n.length;r0?o+this.n.b+this.n.c:0},l.Te=function(){var e,n,r,s,o;if(this.g)for(e=ust(this,null,!1),r=(t1(),ct(ot(Ay,1),se,232,0,[wc,uu,mc])),s=0,o=r.length;s0&&(s[0]+=this.d,r-=s[0]),s[2]>0&&(s[2]+=this.d,r-=s[2]),this.c.a=b.Math.max(0,r),this.c.d=n.d+e.d+(this.c.a-r)/2,s[1]=b.Math.max(s[1],r),Vwt(this,uu,n.d+e.d+s[0]-(s[1]-r)/2,s)},l.b=null,l.d=0,l.e=!1,l.f=!1,l.g=!1;var kut=0,qH=0;N(yb,"GridContainerCell",1473),M(461,22,{3:1,35:1,22:1,461:1},iet);var l2,Od,_f,oge=Xr(yb,"HorizontalLabelAlignment",461,ti,tnn,RXe),cge;M(306,212,{212:1,306:1},dXt,yte,lXt),l.Re=function(){return QWt(this)},l.Se=function(){return vvt(this)},l.a=0,l.c=!1;var O4n=N(yb,"LabelCell",306);M(244,326,{212:1,326:1,244:1},Q_),l.Re=function(){return oI(this)},l.Se=function(){return cI(this)},l.Te=function(){tat(this)},l.Ue=function(){eat(this)},l.b=0,l.c=0,l.d=!1,N(yb,"StripContainerCell",244),M(1626,1,_i,ss),l.Mb=function(e){return QUe(u(e,212))},N(yb,"StripContainerCell/lambda$0$Type",1626),M(1627,1,{},Aa),l.Fe=function(e){return u(e,212).Se()},N(yb,"StripContainerCell/lambda$1$Type",1627),M(1628,1,_i,Ya),l.Mb=function(e){return ZUe(u(e,212))},N(yb,"StripContainerCell/lambda$2$Type",1628),M(1629,1,{},Ea),l.Fe=function(e){return u(e,212).Re()},N(yb,"StripContainerCell/lambda$3$Type",1629),M(462,22,{3:1,35:1,22:1,462:1},set);var Cf,h2,o1,uge=Xr(yb,"VerticalLabelAlignment",462,ti,enn,jXe),lge;M(789,1,{},t6t),l.c=0,l.d=0,l.k=0,l.s=0,l.t=0,l.v=!1,l.w=0,l.D=!1,N(Aq,"NodeContext",789),M(1471,1,Ui,ga),l.ue=function(e,n){return dGt(u(e,61),u(n,61))},l.Fb=function(e){return this===e},l.ve=function(){return new dt(this)},N(Aq,"NodeContext/0methodref$comparePortSides$Type",1471),M(1472,1,Ui,Es),l.ue=function(e,n){return _1n(u(e,111),u(n,111))},l.Fb=function(e){return this===e},l.ve=function(){return new dt(this)},N(Aq,"NodeContext/1methodref$comparePortContexts$Type",1472),M(159,22,{3:1,35:1,22:1,159:1},vh);var hge,fge,dge,gge,pge,bge,vge,wge,mge,yge,xge,kge,Ege,Tge,_ge,Cge,Sge,Age,Lge,Mge,Dge,Eut,Ige=Xr(Aq,"NodeLabelLocation",159,ti,zit,$Xe),Oge;M(111,1,{111:1},Uae),l.a=!1,N(Aq,"PortContext",111),M(1476,1,Qn,Bs),l.td=function(e){Iqt(u(e,306))},N(PI,$he,1476),M(1477,1,_i,Ta),l.Mb=function(e){return!!u(e,111).c},N(PI,zhe,1477),M(1478,1,Qn,La),l.td=function(e){Iqt(u(e,111).c)},N(PI,"LabelPlacer/lambda$2$Type",1478);var N7t;M(1475,1,Qn,sv),l.td=function(e){Pm(),DUe(u(e,111))},N(PI,"NodeLabelAndSizeUtilities/lambda$0$Type",1475),M(790,1,Qn,Xbt),l.td=function(e){HWe(this.b,this.c,this.a,u(e,181))},l.a=!1,l.c=!1,N(PI,"NodeLabelCellCreator/lambda$0$Type",790),M(1474,1,Qn,bn),l.td=function(e){NUe(this.a,u(e,181))},N(PI,"PortContextCreator/lambda$0$Type",1474);var HH;M(1829,1,{},rl),N(P7,"GreedyRectangleStripOverlapRemover",1829),M(1830,1,Ui,Va),l.ue=function(e,n){return xYe(u(e,222),u(n,222))},l.Fb=function(e){return this===e},l.ve=function(){return new dt(this)},N(P7,"GreedyRectangleStripOverlapRemover/0methodref$compareByYCoordinate$Type",1830),M(1786,1,{},lzt),l.a=5,l.e=0,N(P7,"RectangleStripOverlapRemover",1786),M(1787,1,Ui,As),l.ue=function(e,n){return kYe(u(e,222),u(n,222))},l.Fb=function(e){return this===e},l.ve=function(){return new dt(this)},N(P7,"RectangleStripOverlapRemover/0methodref$compareLeftRectangleBorders$Type",1787),M(1789,1,Ui,gp),l.ue=function(e,n){return UJe(u(e,222),u(n,222))},l.Fb=function(e){return this===e},l.ve=function(){return new dt(this)},N(P7,"RectangleStripOverlapRemover/1methodref$compareRightRectangleBorders$Type",1789),M(406,22,{3:1,35:1,22:1,406:1},IR);var iO,Tut,_ut,sO,Nge=Xr(P7,"RectangleStripOverlapRemover/OverlapRemovalDirection",406,ti,trn,zXe),Pge;M(222,1,{222:1},ynt),N(P7,"RectangleStripOverlapRemover/RectangleNode",222),M(1788,1,Qn,Tr),l.td=function(e){Xln(this.a,u(e,222))},N(P7,"RectangleStripOverlapRemover/lambda$1$Type",1788),M(1304,1,Ui,sd),l.ue=function(e,n){return nmn(u(e,167),u(n,167))},l.Fb=function(e){return this===e},l.ve=function(){return new dt(this)},N(_d,"PolyominoCompactor/CornerCasesGreaterThanRestComparator",1304),M(1307,1,{},Rl),l.Kb=function(e){return u(e,324).a},N(_d,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$0$Type",1307),M(1308,1,_i,$u),l.Mb=function(e){return u(e,323).a},N(_d,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$1$Type",1308),M(1309,1,_i,Gi),l.Mb=function(e){return u(e,323).a},N(_d,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$2$Type",1309),M(1302,1,Ui,He),l.ue=function(e,n){return Fbn(u(e,167),u(n,167))},l.Fb=function(e){return this===e},l.ve=function(){return new dt(this)},N(_d,"PolyominoCompactor/MinNumOfExtensionDirectionsComparator",1302),M(1305,1,{},mu),l.Kb=function(e){return u(e,324).a},N(_d,"PolyominoCompactor/MinNumOfExtensionDirectionsComparator/lambda$0$Type",1305),M(767,1,Ui,Er),l.ue=function(e,n){return Ran(u(e,167),u(n,167))},l.Fb=function(e){return this===e},l.ve=function(){return new dt(this)},N(_d,"PolyominoCompactor/MinNumOfExtensionsComparator",767),M(1300,1,Ui,ci),l.ue=function(e,n){return Wsn(u(e,321),u(n,321))},l.Fb=function(e){return this===e},l.ve=function(){return new dt(this)},N(_d,"PolyominoCompactor/MinPerimeterComparator",1300),M(1301,1,Ui,Xa),l.ue=function(e,n){return Eln(u(e,321),u(n,321))},l.Fb=function(e){return this===e},l.ve=function(){return new dt(this)},N(_d,"PolyominoCompactor/MinPerimeterComparatorWithShape",1301),M(1303,1,Ui,kc),l.ue=function(e,n){return svn(u(e,167),u(n,167))},l.Fb=function(e){return this===e},l.ve=function(){return new dt(this)},N(_d,"PolyominoCompactor/SingleExtensionSideGreaterThanRestComparator",1303),M(1306,1,{},yu),l.Kb=function(e){return u(e,324).a},N(_d,"PolyominoCompactor/SingleExtensionSideGreaterThanRestComparator/lambda$0$Type",1306),M(777,1,{},r2t),l.Ce=function(e,n){return Xnn(this,u(e,46),u(n,167))},N(_d,"SuccessorCombination",777),M(644,1,{},mo),l.Ce=function(e,n){var r;return j0n((r=u(e,46),u(n,167),r))},N(_d,"SuccessorJitter",644),M(643,1,{},xu),l.Ce=function(e,n){var r;return S2n((r=u(e,46),u(n,167),r))},N(_d,"SuccessorLineByLine",643),M(568,1,{},cf),l.Ce=function(e,n){var r;return $gn((r=u(e,46),u(n,167),r))},N(_d,"SuccessorManhattan",568),M(1356,1,{},x3),l.Ce=function(e,n){var r;return Qpn((r=u(e,46),u(n,167),r))},N(_d,"SuccessorMaxNormWindingInMathPosSense",1356),M(400,1,{},xr),l.Ce=function(e,n){return Gvt(this,e,n)},l.c=!1,l.d=!1,l.e=!1,l.f=!1,N(_d,"SuccessorQuadrantsGeneric",400),M(1357,1,{},v1),l.Kb=function(e){return u(e,324).a},N(_d,"SuccessorQuadrantsGeneric/lambda$0$Type",1357),M(323,22,{3:1,35:1,22:1,323:1},DR),l.a=!1;var aO,oO,cO,uO,Fge=Xr(Mq,D6t,323,ti,rrn,qXe),Bge;M(1298,1,{}),l.Ib=function(){var e,n,r,s,o,h;for(r=" ",e=pe(0),o=0;o=0?"b"+e+"["+wrt(this.a)+"]":"b["+wrt(this.a)+"]"):"b_"+Av(this)},N(BI,"FBendpoint",559),M(282,134,{3:1,282:1,94:1,134:1},WUt),l.Ib=function(){return wrt(this)},N(BI,"FEdge",282),M(231,134,{3:1,231:1,94:1,134:1},v$);var P4n=N(BI,"FGraph",231);M(447,357,{3:1,447:1,357:1,94:1,134:1},XQt),l.Ib=function(){return this.b==null||this.b.length==0?"l["+wrt(this.a)+"]":"l_"+this.b},N(BI,"FLabel",447),M(144,357,{3:1,144:1,357:1,94:1,134:1},aYt),l.Ib=function(){return kwt(this)},l.b=0,N(BI,"FNode",144),M(2003,1,{}),l.bf=function(e){O5t(this,e)},l.cf=function(){Lie(this)},l.d=0,N(z6t,"AbstractForceModel",2003),M(631,2003,{631:1},jee),l.af=function(e,n){var r,s,o,h,d;return _ae(this.f,e,n),o=ba(pc(n.d),e.d),d=b.Math.sqrt(o.a*o.a+o.b*o.b),s=b.Math.max(0,d-k_(e.e)/2-k_(n.e)/2),r=pne(this.e,e,n),r>0?h=-HJe(s,this.c)*r:h=PYe(s,this.b)*u(K(e,(i1(),t9)),19).a,pd(o,h/d),o},l.bf=function(e){O5t(this,e),this.a=u(K(e,(i1(),YH)),19).a,this.c=Xt(xe(K(e,XH))),this.b=Xt(xe(K(e,Iut)))},l.df=function(e){return e0&&(h-=WUe(s,this.a)*r),pd(o,h*this.b/d),o},l.bf=function(e){var n,r,s,o,h,d,w;for(O5t(this,e),this.b=Xt(xe(K(e,(i1(),Out)))),this.c=this.b/u(K(e,YH),19).a,s=e.e.c.length,h=0,o=0,w=new S(e.e);w.a0},l.a=0,l.b=0,l.c=0,N(z6t,"FruchtermanReingoldModel",632),M(849,1,jh,yJ),l.Qe=function(e){an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,Oq),""),"Force Model"),"Determines the model for force calculation."),H7t),(Rg(),ks)),V7t),on((n1(),Un))))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,q6t),""),"Iterations"),"The number of iterations on the force model."),pe(300)),Lc),to),on(Un)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,H6t),""),"Repulsive Power"),"Determines how many bend points are added to the edge; such bend points are regarded as repelling particles in the force model"),pe(0)),Lc),to),on(Bd)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,mot),""),"FR Temperature"),"The temperature is used as a scaling factor for particle displacements."),Cd),Uo),ka),on(Un)))),ya(e,mot,Oq,rpe),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,yot),""),"Eades Repulsion"),"Factor for repulsive forces in Eades' model."),5),Uo),ka),on(Un)))),ya(e,yot,Oq,tpe),Cle((new oT,e))};var Qge,Zge,H7t,Jge,tpe,epe,npe,rpe;N(AC,"ForceMetaDataProvider",849),M(424,22,{3:1,35:1,22:1,424:1},o2t);var Dut,KH,V7t=Xr(AC,"ForceModelStrategy",424,ti,Len,GXe),ipe;M(988,1,jh,oT),l.Qe=function(e){Cle(e)};var spe,ape,G7t,YH,U7t,ope,cpe,upe,W7t,lpe,K7t,Y7t,hpe,t9,fpe,Iut,X7t,dpe,gpe,XH,Out;N(AC,"ForceOptions",988),M(989,1,{},B5),l.$e=function(){var e;return e=new upt,e},l._e=function(e){},N(AC,"ForceOptions/ForceFactory",989);var fO,iS,Tx,QH;M(850,1,jh,xJ),l.Qe=function(e){an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,G6t),""),"Fixed Position"),"Prevent that the node is moved by the layout algorithm."),(Rn(),!1)),(Rg(),qa)),Zs),on((n1(),fa))))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,U6t),""),"Desired Edge Length"),"Either specified for parent nodes or for individual edges, where the latter takes higher precedence."),100),Uo),ka),Zi(Un,ct(ot(Xg,1),se,175,0,[Bd]))))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,W6t),""),"Layout Dimension"),"Dimensions that are permitted to be altered during layout."),Q7t),ks),i9t),on(Un)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,K6t),""),"Stress Epsilon"),"Termination criterion for the iterative process."),Cd),Uo),ka),on(Un)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,Y6t),""),"Iteration Limit"),"Maximum number of performed iterations. Takes higher precedence than 'epsilon'."),pe(Di)),Lc),to),on(Un)))),lle((new kJ,e))};var ppe,bpe,Q7t,vpe,wpe,mpe;N(AC,"StressMetaDataProvider",850),M(992,1,jh,kJ),l.Qe=function(e){lle(e)};var ZH,Z7t,J7t,t9t,e9t,n9t,ype,xpe,kpe,Epe,r9t,Tpe;N(AC,"StressOptions",992),M(993,1,{},ah),l.$e=function(){var e;return e=new KUt,e},l._e=function(e){},N(AC,"StressOptions/StressFactory",993),M(1128,209,xb,KUt),l.Ze=function(e,n){var r,s,o,h,d;for(Ar(n,Jhe,1),Re(Be(ze(e,(ZD(),e9t))))?Re(Be(ze(e,r9t)))||t$((r=new fr((Lm(),new _m(e))),r)):Doe(new upt,e,Kc(n,1)),o=one(e),s=yue(this.a,o),d=s.Kc();d.Ob();)h=u(d.Pb(),231),!(h.e.c.length<=1)&&(tmn(this.b,h),Ign(this.b),Mu(h.d,new ad));o=Ole(s),Mle(o),br(n)},N(Fq,"StressLayoutProvider",1128),M(1129,1,Qn,ad),l.td=function(e){$5t(u(e,447))},N(Fq,"StressLayoutProvider/lambda$0$Type",1129),M(990,1,{},rzt),l.c=0,l.e=0,l.g=0,N(Fq,"StressMajorization",990),M(379,22,{3:1,35:1,22:1,379:1},aet);var Nut,Put,Fut,i9t=Xr(Fq,"StressMajorization/Dimension",379,ti,rnn,UXe),_pe;M(991,1,Ui,Fi),l.ue=function(e,n){return kXe(this.a,u(e,144),u(n,144))},l.Fb=function(e){return this===e},l.ve=function(){return new dt(this)},N(Fq,"StressMajorization/lambda$0$Type",991),M(1229,1,{},uQt),N(wx,"ElkLayered",1229),M(1230,1,Qn,R5),l.td=function(e){O0n(u(e,37))},N(wx,"ElkLayered/lambda$0$Type",1230),M(1231,1,Qn,Ci),l.td=function(e){EXe(this.a,u(e,37))},N(wx,"ElkLayered/lambda$1$Type",1231),M(1263,1,{},PGt);var Cpe,Spe,Ape;N(wx,"GraphConfigurator",1263),M(759,1,Qn,Ls),l.td=function(e){Bse(this.a,u(e,10))},N(wx,"GraphConfigurator/lambda$0$Type",759),M(760,1,{},j5),l.Kb=function(e){return B3t(),new kn(null,new Cn(u(e,29).a,16))},N(wx,"GraphConfigurator/lambda$1$Type",760),M(761,1,Qn,es),l.td=function(e){Bse(this.a,u(e,10))},N(wx,"GraphConfigurator/lambda$2$Type",761),M(1127,209,xb,azt),l.Ze=function(e,n){var r;r=xwn(new fzt,e),qt(ze(e,(Ce(),By)))===qt((j0(),Qg))?Jcn(this.a,r,n):Y0n(this.a,r,n),_le(new TJ,r)},N(wx,"LayeredLayoutProvider",1127),M(356,22,{3:1,35:1,22:1,356:1},yM);var Nd,f2,pu,Zc,Go,s9t=Xr(wx,"LayeredPhases",356,ti,$rn,WXe),Lpe;M(1651,1,{},Kte),l.i=0;var Mpe;N($I,"ComponentsToCGraphTransformer",1651);var Dpe;M(1652,1,{},TE),l.ef=function(e,n){return b.Math.min(e.a!=null?Xt(e.a):e.c.i,n.a!=null?Xt(n.a):n.c.i)},l.ff=function(e,n){return b.Math.min(e.a!=null?Xt(e.a):e.c.i,n.a!=null?Xt(n.a):n.c.i)},N($I,"ComponentsToCGraphTransformer/1",1652),M(81,1,{81:1}),l.i=0,l.k=!0,l.o=Rs;var But=N(DC,"CNode",81);M(460,81,{460:1,81:1},cbt,u3t),l.Ib=function(){return""},N($I,"ComponentsToCGraphTransformer/CRectNode",460),M(1623,1,{},vL);var Rut,jut;N($I,"OneDimensionalComponentsCompaction",1623),M(1624,1,{},w1),l.Kb=function(e){return Ken(u(e,46))},l.Fb=function(e){return this===e},N($I,"OneDimensionalComponentsCompaction/lambda$0$Type",1624),M(1625,1,{},vp),l.Kb=function(e){return oun(u(e,46))},l.Fb=function(e){return this===e},N($I,"OneDimensionalComponentsCompaction/lambda$1$Type",1625),M(1654,1,{},sYt),N(DC,"CGraph",1654),M(189,1,{189:1},Rit),l.b=0,l.c=0,l.e=0,l.g=!0,l.i=Rs,N(DC,"CGroup",189),M(1653,1,{},fm),l.ef=function(e,n){return b.Math.max(e.a!=null?Xt(e.a):e.c.i,n.a!=null?Xt(n.a):n.c.i)},l.ff=function(e,n){return b.Math.max(e.a!=null?Xt(e.a):e.c.i,n.a!=null?Xt(n.a):n.c.i)},N(DC,She,1653),M(1655,1,{},Rae),l.d=!1;var Ipe,$ut=N(DC,Mhe,1655);M(1656,1,{},Ec),l.Kb=function(e){return Kpt(),Rn(),u(u(e,46).a,81).d.e!=0},l.Fb=function(e){return this===e},N(DC,Dhe,1656),M(823,1,{},wvt),l.a=!1,l.b=!1,l.c=!1,l.d=!1,N(DC,Ihe,823),M(1825,1,{},EKt),N(Bq,Ohe,1825);var dO=ls(Eb,_he);M(1826,1,{369:1},tXt),l.Ke=function(e){q2n(this,u(e,466))},N(Bq,Nhe,1826),M(1827,1,Ui,gk),l.ue=function(e,n){return qtn(u(e,81),u(n,81))},l.Fb=function(e){return this===e},l.ve=function(){return new dt(this)},N(Bq,Phe,1827),M(466,1,{466:1},u2t),l.a=!1,N(Bq,Fhe,466),M(1828,1,Ui,Wo),l.ue=function(e,n){return tfn(u(e,466),u(n,466))},l.Fb=function(e){return this===e},l.ve=function(){return new dt(this)},N(Bq,Bhe,1828),M(140,1,{140:1},a8,dvt),l.Fb=function(e){var n;return e==null||F4n!=bl(e)?!1:(n=u(e,140),Gc(this.c,n.c)&&Gc(this.d,n.d))},l.Hb=function(){return cz(ct(ot(nr,1),De,1,5,[this.c,this.d]))},l.Ib=function(){return"("+this.c+ao+this.d+(this.a?"cx":"")+this.b+")"},l.a=!0,l.c=0,l.d=0;var F4n=N(Eb,"Point",140);M(405,22,{3:1,35:1,22:1,405:1},OR);var Ew,Ly,j4,My,Ope=Xr(Eb,"Point/Quadrant",405,ti,irn,KXe),Npe;M(1642,1,{},ozt),l.b=null,l.c=null,l.d=null,l.e=null,l.f=null;var Ppe,Fpe,Bpe,Rpe,jpe;N(Eb,"RectilinearConvexHull",1642),M(574,1,{369:1},Az),l.Ke=function(e){zin(this,u(e,140))},l.b=0;var a9t;N(Eb,"RectilinearConvexHull/MaximalElementsEventHandler",574),M(1644,1,Ui,hm),l.ue=function(e,n){return Dtn(xe(e),xe(n))},l.Fb=function(e){return this===e},l.ve=function(){return new dt(this)},N(Eb,"RectilinearConvexHull/MaximalElementsEventHandler/lambda$0$Type",1644),M(1643,1,{369:1},vte),l.Ke=function(e){e2n(this,u(e,140))},l.a=0,l.b=null,l.c=null,l.d=null,l.e=null,N(Eb,"RectilinearConvexHull/RectangleEventHandler",1643),M(1645,1,Ui,av),l.ue=function(e,n){return Nnn(u(e,140),u(n,140))},l.Fb=function(e){return this===e},l.ve=function(){return new dt(this)},N(Eb,"RectilinearConvexHull/lambda$0$Type",1645),M(1646,1,Ui,od),l.ue=function(e,n){return Pnn(u(e,140),u(n,140))},l.Fb=function(e){return this===e},l.ve=function(){return new dt(this)},N(Eb,"RectilinearConvexHull/lambda$1$Type",1646),M(1647,1,Ui,pk),l.ue=function(e,n){return Bnn(u(e,140),u(n,140))},l.Fb=function(e){return this===e},l.ve=function(){return new dt(this)},N(Eb,"RectilinearConvexHull/lambda$2$Type",1647),M(1648,1,Ui,oh),l.ue=function(e,n){return Fnn(u(e,140),u(n,140))},l.Fb=function(e){return this===e},l.ve=function(){return new dt(this)},N(Eb,"RectilinearConvexHull/lambda$3$Type",1648),M(1649,1,Ui,$K),l.ue=function(e,n){return j1n(u(e,140),u(n,140))},l.Fb=function(e){return this===e},l.ve=function(){return new dt(this)},N(Eb,"RectilinearConvexHull/lambda$4$Type",1649),M(1650,1,{},DXt),N(Eb,"Scanline",1650),M(2005,1,{}),N(Sd,"AbstractGraphPlacer",2005),M(325,1,{325:1},EUt),l.mf=function(e){return this.nf(e)?(cn(this.b,u(K(e,(ie(),Iy)),21),e),!0):!1},l.nf=function(e){var n,r,s,o;for(n=u(K(e,(ie(),Iy)),21),o=u(ji(Wi,n),21),s=o.Kc();s.Ob();)if(r=u(s.Pb(),21),!u(ji(this.b,r),15).dc())return!1;return!0};var Wi;N(Sd,"ComponentGroup",325),M(765,2005,{},dpt),l.of=function(e){var n,r;for(r=new S(this.a);r.aG&&(ce=0,Se+=q+o,q=0),bt=d.c,fC(d,ce+bt.a,Se+bt.b),Xf(bt),r=b.Math.max(r,ce+Ct.a),q=b.Math.max(q,Ct.b),ce+=Ct.a+o;if(n.f.a=r,n.f.b=Se+q,Re(Be(K(h,RV)))){for(s=new _E,a6t(s,e,o),F=e.Kc();F.Ob();)L=u(F.Pb(),37),$i(Xf(L.c),s.e);$i(Xf(n.f),s.a)}amt(n,e)},N(Sd,"SimpleRowGraphPlacer",1291),M(1292,1,Ui,Hf),l.ue=function(e,n){return Ban(u(e,37),u(n,37))},l.Fb=function(e){return this===e},l.ve=function(){return new dt(this)},N(Sd,"SimpleRowGraphPlacer/1",1292);var zpe;M(1262,1,Td,dm),l.Lb=function(e){var n;return n=u(K(u(e,243).b,(Ce(),$o)),74),!!n&&n.b!=0},l.Fb=function(e){return this===e},l.Mb=function(e){var n;return n=u(K(u(e,243).b,(Ce(),$o)),74),!!n&&n.b!=0},N(Rq,"CompoundGraphPostprocessor/1",1262),M(1261,1,ys,dzt),l.pf=function(e,n){fie(this,u(e,37),n)},N(Rq,"CompoundGraphPreprocessor",1261),M(441,1,{441:1},Jne),l.c=!1,N(Rq,"CompoundGraphPreprocessor/ExternalPort",441),M(243,1,{243:1},pj),l.Ib=function(){return Wet(this.c)+":"+Nae(this.b)},N(Rq,"CrossHierarchyEdge",243),M(763,1,Ui,Ri),l.ue=function(e,n){return Chn(this,u(e,243),u(n,243))},l.Fb=function(e){return this===e},l.ve=function(){return new dt(this)},N(Rq,"CrossHierarchyEdgeComparator",763),M(299,134,{3:1,299:1,94:1,134:1}),l.p=0,N(cu,"LGraphElement",299),M(17,299,{3:1,17:1,299:1,94:1,134:1},Rv),l.Ib=function(){return Nae(this)};var qut=N(cu,"LEdge",17);M(37,299,{3:1,20:1,37:1,299:1,94:1,134:1},Amt),l.Jc=function(e){Oa(this,e)},l.Kc=function(){return new S(this.b)},l.Ib=function(){return this.b.c.length==0?"G-unlayered"+Jp(this.a):this.a.c.length==0?"G-layered"+Jp(this.b):"G[layerless"+Jp(this.a)+", layers"+Jp(this.b)+"]"};var qpe=N(cu,"LGraph",37),Hpe;M(657,1,{}),l.qf=function(){return this.e.n},l.We=function(e){return K(this.e,e)},l.rf=function(){return this.e.o},l.sf=function(){return this.e.p},l.Xe=function(e){return ia(this.e,e)},l.tf=function(e){this.e.n.a=e.a,this.e.n.b=e.b},l.uf=function(e){this.e.o.a=e.a,this.e.o.b=e.b},l.vf=function(e){this.e.p=e},N(cu,"LGraphAdapters/AbstractLShapeAdapter",657),M(577,1,{839:1},as),l.wf=function(){var e,n;if(!this.b)for(this.b=Ud(this.a.b.c.length),n=new S(this.a.b);n.a0&&jne((Yr(n-1,e.length),e.charCodeAt(n-1)),sfe);)--n;if(h> ",e),Rz(r)),ni(Cc((e.a+="[",e),r.i),"]")),e.a},l.c=!0,l.d=!1;var h9t,f9t,d9t,g9t,p9t,b9t,Gpe=N(cu,"LPort",11);M(397,1,r0,ca),l.Jc=function(e){Oa(this,e)},l.Kc=function(){var e;return e=new S(this.a.e),new ea(e)},N(cu,"LPort/1",397),M(1290,1,va,ea),l.Nb=function(e){Da(this,e)},l.Pb=function(){return u(Q(this.a),17).c},l.Ob=function(){return sc(this.a)},l.Qb=function(){y_(this.a)},N(cu,"LPort/1/1",1290),M(359,1,r0,Fr),l.Jc=function(e){Oa(this,e)},l.Kc=function(){var e;return e=new S(this.a.g),new Qt(e)},N(cu,"LPort/2",359),M(762,1,va,Qt),l.Nb=function(e){Da(this,e)},l.Pb=function(){return u(Q(this.a),17).d},l.Ob=function(){return sc(this.a)},l.Qb=function(){y_(this.a)},N(cu,"LPort/2/1",762),M(1283,1,r0,tVt),l.Jc=function(e){Oa(this,e)},l.Kc=function(){return new P1(this)},N(cu,"LPort/CombineIter",1283),M(201,1,va,P1),l.Nb=function(e){Da(this,e)},l.Qb=function(){Tqt()},l.Ob=function(){return u_(this)},l.Pb=function(){return sc(this.a)?Q(this.a):Q(this.b)},N(cu,"LPort/CombineIter/1",201),M(1285,1,Td,wp),l.Lb=function(e){return PKt(e)},l.Fb=function(e){return this===e},l.Mb=function(e){return Ku(),u(e,11).e.c.length!=0},N(cu,"LPort/lambda$0$Type",1285),M(1284,1,Td,gm),l.Lb=function(e){return FKt(e)},l.Fb=function(e){return this===e},l.Mb=function(e){return Ku(),u(e,11).g.c.length!=0},N(cu,"LPort/lambda$1$Type",1284),M(1286,1,Td,qK),l.Lb=function(e){return Ku(),u(e,11).j==(we(),Fn)},l.Fb=function(e){return this===e},l.Mb=function(e){return Ku(),u(e,11).j==(we(),Fn)},N(cu,"LPort/lambda$2$Type",1286),M(1287,1,Td,j2),l.Lb=function(e){return Ku(),u(e,11).j==(we(),Wn)},l.Fb=function(e){return this===e},l.Mb=function(e){return Ku(),u(e,11).j==(we(),Wn)},N(cu,"LPort/lambda$3$Type",1287),M(1288,1,Td,HK),l.Lb=function(e){return Ku(),u(e,11).j==(we(),Lr)},l.Fb=function(e){return this===e},l.Mb=function(e){return Ku(),u(e,11).j==(we(),Lr)},N(cu,"LPort/lambda$4$Type",1288),M(1289,1,Td,VK),l.Lb=function(e){return Ku(),u(e,11).j==(we(),jn)},l.Fb=function(e){return this===e},l.Mb=function(e){return Ku(),u(e,11).j==(we(),jn)},N(cu,"LPort/lambda$5$Type",1289),M(29,299,{3:1,20:1,299:1,29:1,94:1,134:1},Oh),l.Jc=function(e){Oa(this,e)},l.Kc=function(){return new S(this.a)},l.Ib=function(){return"L_"+Qo(this.b.b,this,0)+Jp(this.a)},N(cu,"Layer",29),M(1342,1,{},fzt),N(zg,ufe,1342),M(1346,1,{},$5),l.Kb=function(e){return Vo(u(e,82))},N(zg,"ElkGraphImporter/0methodref$connectableShapeToNode$Type",1346),M(1349,1,{},CE),l.Kb=function(e){return Vo(u(e,82))},N(zg,"ElkGraphImporter/1methodref$connectableShapeToNode$Type",1349),M(1343,1,Qn,Hn),l.td=function(e){Kae(this.a,u(e,118))},N(zg,lfe,1343),M(1344,1,Qn,jr),l.td=function(e){Kae(this.a,u(e,118))},N(zg,hfe,1344),M(1345,1,{},zP),l.Kb=function(e){return new kn(null,new Cn(Ctn(u(e,79)),16))},N(zg,ffe,1345),M(1347,1,_i,dr),l.Mb=function(e){return SKe(this.a,u(e,33))},N(zg,dfe,1347),M(1348,1,{},bk),l.Kb=function(e){return new kn(null,new Cn(Stn(u(e,79)),16))},N(zg,"ElkGraphImporter/lambda$5$Type",1348),M(1350,1,_i,gr),l.Mb=function(e){return AKe(this.a,u(e,33))},N(zg,"ElkGraphImporter/lambda$7$Type",1350),M(1351,1,_i,GK),l.Mb=function(e){return Vtn(u(e,79))},N(zg,"ElkGraphImporter/lambda$8$Type",1351),M(1278,1,{},TJ);var Upe;N(zg,"ElkGraphLayoutTransferrer",1278),M(1279,1,_i,Ga),l.Mb=function(e){return bXe(this.a,u(e,17))},N(zg,"ElkGraphLayoutTransferrer/lambda$0$Type",1279),M(1280,1,Qn,Qr),l.td=function(e){bM(),ue(this.a,u(e,17))},N(zg,"ElkGraphLayoutTransferrer/lambda$1$Type",1280),M(1281,1,_i,us),l.Mb=function(e){return eXe(this.a,u(e,17))},N(zg,"ElkGraphLayoutTransferrer/lambda$2$Type",1281),M(1282,1,Qn,Ko),l.td=function(e){bM(),ue(this.a,u(e,17))},N(zg,"ElkGraphLayoutTransferrer/lambda$3$Type",1282),M(1485,1,ys,vk),l.pf=function(e,n){ran(u(e,37),n)},N(Vn,"CommentNodeMarginCalculator",1485),M(1486,1,{},UK),l.Kb=function(e){return new kn(null,new Cn(u(e,29).a,16))},N(Vn,"CommentNodeMarginCalculator/lambda$0$Type",1486),M(1487,1,Qn,WK),l.td=function(e){Bwn(u(e,10))},N(Vn,"CommentNodeMarginCalculator/lambda$1$Type",1487),M(1488,1,ys,KK),l.pf=function(e,n){X2n(u(e,37),n)},N(Vn,"CommentPostprocessor",1488),M(1489,1,ys,YK),l.pf=function(e,n){r3n(u(e,37),n)},N(Vn,"CommentPreprocessor",1489),M(1490,1,ys,XK),l.pf=function(e,n){mpn(u(e,37),n)},N(Vn,"ConstraintsPostprocessor",1490),M(1491,1,ys,QK),l.pf=function(e,n){Can(u(e,37),n)},N(Vn,"EdgeAndLayerConstraintEdgeReverser",1491),M(1492,1,ys,ZK),l.pf=function(e,n){gun(u(e,37),n)},N(Vn,"EndLabelPostprocessor",1492),M(1493,1,{},JK),l.Kb=function(e){return new kn(null,new Cn(u(e,29).a,16))},N(Vn,"EndLabelPostprocessor/lambda$0$Type",1493),M(1494,1,_i,tY),l.Mb=function(e){return cen(u(e,10))},N(Vn,"EndLabelPostprocessor/lambda$1$Type",1494),M(1495,1,Qn,eY),l.td=function(e){efn(u(e,10))},N(Vn,"EndLabelPostprocessor/lambda$2$Type",1495),M(1496,1,ys,nY),l.pf=function(e,n){Vdn(u(e,37),n)},N(Vn,"EndLabelPreprocessor",1496),M(1497,1,{},mL),l.Kb=function(e){return new kn(null,new Cn(u(e,29).a,16))},N(Vn,"EndLabelPreprocessor/lambda$0$Type",1497),M(1498,1,Qn,CWt),l.td=function(e){VWe(this.a,this.b,this.c,u(e,10))},l.a=0,l.b=0,l.c=!1,N(Vn,"EndLabelPreprocessor/lambda$1$Type",1498),M(1499,1,_i,rY),l.Mb=function(e){return qt(K(u(e,70),(Ce(),Fd)))===qt((F1(),S9))},N(Vn,"EndLabelPreprocessor/lambda$2$Type",1499),M(1500,1,Qn,Vc),l.td=function(e){pi(this.a,u(e,70))},N(Vn,"EndLabelPreprocessor/lambda$3$Type",1500),M(1501,1,_i,iY),l.Mb=function(e){return qt(K(u(e,70),(Ce(),Fd)))===qt((F1(),Wy))},N(Vn,"EndLabelPreprocessor/lambda$4$Type",1501),M(1502,1,Qn,ho),l.td=function(e){pi(this.a,u(e,70))},N(Vn,"EndLabelPreprocessor/lambda$5$Type",1502),M(1551,1,ys,EJ),l.pf=function(e,n){kcn(u(e,37),n)};var Wpe;N(Vn,"EndLabelSorter",1551),M(1552,1,Ui,SE),l.ue=function(e,n){return Zun(u(e,456),u(n,456))},l.Fb=function(e){return this===e},l.ve=function(){return new dt(this)},N(Vn,"EndLabelSorter/1",1552),M(456,1,{456:1},UYt),N(Vn,"EndLabelSorter/LabelGroup",456),M(1553,1,{},qP),l.Kb=function(e){return vM(),new kn(null,new Cn(u(e,29).a,16))},N(Vn,"EndLabelSorter/lambda$0$Type",1553),M(1554,1,_i,z5),l.Mb=function(e){return vM(),u(e,10).k==(Kn(),Ws)},N(Vn,"EndLabelSorter/lambda$1$Type",1554),M(1555,1,Qn,sY),l.td=function(e){edn(u(e,10))},N(Vn,"EndLabelSorter/lambda$2$Type",1555),M(1556,1,_i,aY),l.Mb=function(e){return vM(),qt(K(u(e,70),(Ce(),Fd)))===qt((F1(),Wy))},N(Vn,"EndLabelSorter/lambda$3$Type",1556),M(1557,1,_i,oY),l.Mb=function(e){return vM(),qt(K(u(e,70),(Ce(),Fd)))===qt((F1(),S9))},N(Vn,"EndLabelSorter/lambda$4$Type",1557),M(1503,1,ys,cY),l.pf=function(e,n){Kwn(this,u(e,37))},l.b=0,l.c=0,N(Vn,"FinalSplineBendpointsCalculator",1503),M(1504,1,{},uY),l.Kb=function(e){return new kn(null,new Cn(u(e,29).a,16))},N(Vn,"FinalSplineBendpointsCalculator/lambda$0$Type",1504),M(1505,1,{},AE),l.Kb=function(e){return new kn(null,new Ov(new pr(mr(Gs(u(e,10)).a.Kc(),new H))))},N(Vn,"FinalSplineBendpointsCalculator/lambda$1$Type",1505),M(1506,1,_i,yL),l.Mb=function(e){return!ro(u(e,17))},N(Vn,"FinalSplineBendpointsCalculator/lambda$2$Type",1506),M(1507,1,_i,HP),l.Mb=function(e){return ia(u(e,17),(ie(),Ib))},N(Vn,"FinalSplineBendpointsCalculator/lambda$3$Type",1507),M(1508,1,Qn,Ic),l.td=function(e){ovn(this.a,u(e,128))},N(Vn,"FinalSplineBendpointsCalculator/lambda$4$Type",1508),M(1509,1,Qn,E3),l.td=function(e){_st(u(e,17).a)},N(Vn,"FinalSplineBendpointsCalculator/lambda$5$Type",1509),M(792,1,ys,Ba),l.pf=function(e,n){zmn(this,u(e,37),n)},N(Vn,"GraphTransformer",792),M(511,22,{3:1,35:1,22:1,511:1},c2t);var Vut,gO,Kpe=Xr(Vn,"GraphTransformer/Mode",511,ti,Men,cZe),Ype;M(1510,1,ys,T3),l.pf=function(e,n){v2n(u(e,37),n)},N(Vn,"HierarchicalNodeResizingProcessor",1510),M(1511,1,ys,lY),l.pf=function(e,n){Zsn(u(e,37),n)},N(Vn,"HierarchicalPortConstraintProcessor",1511),M(1512,1,Ui,lf),l.ue=function(e,n){return uln(u(e,10),u(n,10))},l.Fb=function(e){return this===e},l.ve=function(){return new dt(this)},N(Vn,"HierarchicalPortConstraintProcessor/NodeComparator",1512),M(1513,1,ys,q5),l.pf=function(e,n){wwn(u(e,37),n)},N(Vn,"HierarchicalPortDummySizeProcessor",1513),M(1514,1,ys,hY),l.pf=function(e,n){pbn(this,u(e,37),n)},l.a=0,N(Vn,"HierarchicalPortOrthogonalEdgeRouter",1514),M(1515,1,Ui,wk),l.ue=function(e,n){return yYe(u(e,10),u(n,10))},l.Fb=function(e){return this===e},l.ve=function(){return new dt(this)},N(Vn,"HierarchicalPortOrthogonalEdgeRouter/1",1515),M(1516,1,Ui,zd),l.ue=function(e,n){return Nin(u(e,10),u(n,10))},l.Fb=function(e){return this===e},l.ve=function(){return new dt(this)},N(Vn,"HierarchicalPortOrthogonalEdgeRouter/2",1516),M(1517,1,ys,fY),l.pf=function(e,n){$1n(u(e,37),n)},N(Vn,"HierarchicalPortPositionProcessor",1517),M(1518,1,ys,_J),l.pf=function(e,n){P3n(this,u(e,37))},l.a=0,l.c=0;var JH,tV;N(Vn,"HighDegreeNodeLayeringProcessor",1518),M(571,1,{571:1},dY),l.b=-1,l.d=-1,N(Vn,"HighDegreeNodeLayeringProcessor/HighDegreeNodeInformation",571),M(1519,1,{},gY),l.Kb=function(e){return HM(),Zo(u(e,10))},l.Fb=function(e){return this===e},N(Vn,"HighDegreeNodeLayeringProcessor/lambda$0$Type",1519),M(1520,1,{},pY),l.Kb=function(e){return HM(),Gs(u(e,10))},l.Fb=function(e){return this===e},N(Vn,"HighDegreeNodeLayeringProcessor/lambda$1$Type",1520),M(1526,1,ys,LE),l.pf=function(e,n){Uvn(this,u(e,37),n)},N(Vn,"HyperedgeDummyMerger",1526),M(793,1,{},Zbt),l.a=!1,l.b=!1,l.c=!1,N(Vn,"HyperedgeDummyMerger/MergeState",793),M(1527,1,{},xL),l.Kb=function(e){return new kn(null,new Cn(u(e,29).a,16))},N(Vn,"HyperedgeDummyMerger/lambda$0$Type",1527),M(1528,1,{},VP),l.Kb=function(e){return new kn(null,new Cn(u(e,10).j,16))},N(Vn,"HyperedgeDummyMerger/lambda$1$Type",1528),M(1529,1,Qn,kL),l.td=function(e){u(e,11).p=-1},N(Vn,"HyperedgeDummyMerger/lambda$2$Type",1529),M(1530,1,ys,H5),l.pf=function(e,n){Vvn(u(e,37),n)},N(Vn,"HypernodesProcessor",1530),M(1531,1,ys,bY),l.pf=function(e,n){Gvn(u(e,37),n)},N(Vn,"InLayerConstraintProcessor",1531),M(1532,1,ys,GP),l.pf=function(e,n){xan(u(e,37),n)},N(Vn,"InnermostNodeMarginCalculator",1532),M(1533,1,ys,UP),l.pf=function(e,n){Zyn(this,u(e,37))},l.a=Rs,l.b=Rs,l.c=ms,l.d=ms;var B4n=N(Vn,"InteractiveExternalPortPositioner",1533);M(1534,1,{},vY),l.Kb=function(e){return u(e,17).d.i},l.Fb=function(e){return this===e},N(Vn,"InteractiveExternalPortPositioner/lambda$0$Type",1534),M(1535,1,{},fo),l.Kb=function(e){return EYe(this.a,xe(e))},l.Fb=function(e){return this===e},N(Vn,"InteractiveExternalPortPositioner/lambda$1$Type",1535),M(1536,1,{},wY),l.Kb=function(e){return u(e,17).c.i},l.Fb=function(e){return this===e},N(Vn,"InteractiveExternalPortPositioner/lambda$2$Type",1536),M(1537,1,{},Sl),l.Kb=function(e){return TYe(this.a,xe(e))},l.Fb=function(e){return this===e},N(Vn,"InteractiveExternalPortPositioner/lambda$3$Type",1537),M(1538,1,{},Wf),l.Kb=function(e){return dXe(this.a,xe(e))},l.Fb=function(e){return this===e},N(Vn,"InteractiveExternalPortPositioner/lambda$4$Type",1538),M(1539,1,{},Ep),l.Kb=function(e){return gXe(this.a,xe(e))},l.Fb=function(e){return this===e},N(Vn,"InteractiveExternalPortPositioner/lambda$5$Type",1539),M(77,22,{3:1,35:1,22:1,77:1,234:1},Os),l.Kf=function(){switch(this.g){case 15:return new NX;case 22:return new PX;case 47:return new RX;case 28:case 35:return new _3;case 32:return new vk;case 42:return new KK;case 1:return new YK;case 41:return new XK;case 56:return new Ba((q8(),gO));case 0:return new Ba((q8(),Vut));case 2:return new QK;case 54:return new ZK;case 33:return new nY;case 51:return new cY;case 55:return new T3;case 13:return new lY;case 38:return new q5;case 44:return new hY;case 40:return new fY;case 9:return new _J;case 49:return new fUt;case 37:return new LE;case 43:return new H5;case 27:return new bY;case 30:return new GP;case 3:return new UP;case 18:return new yY;case 29:return new xY;case 5:return new xB;case 50:return new mY;case 34:return new CJ;case 36:return new mk;case 52:return new EJ;case 11:return new pm;case 7:return new AJ;case 39:return new yk;case 45:return new _Y;case 16:return new ME;case 10:return new cd;case 48:return new TL;case 21:return new xk;case 23:return new Htt((Yv(),CS));case 8:return new XP;case 12:return new CL;case 4:return new SY;case 19:return new cT;case 17:return new IY;case 53:return new OY;case 6:return new rF;case 25:return new bzt;case 46:return new BY;case 31:return new XUt;case 14:return new AL;case 26:return new zX;case 20:return new GY;case 24:return new Htt((Yv(),iG));default:throw et(new Bn(_ot+(this.f!=null?this.f:""+this.g)))}};var v9t,w9t,m9t,y9t,x9t,k9t,E9t,T9t,_9t,C9t,sS,eV,nV,S9t,A9t,L9t,M9t,D9t,I9t,O9t,aS,N9t,P9t,F9t,B9t,R9t,Gut,rV,iV,j9t,sV,aV,oV,e9,n9,r9,$9t,cV,uV,z9t,lV,hV,q9t,H9t,V9t,G9t,fV,Uut,pO,dV,gV,pV,bV,U9t,W9t,K9t,Y9t,R4n=Xr(Vn,Q6t,77,ti,$oe,oZe),Xpe;M(1540,1,ys,yY),l.pf=function(e,n){t3n(u(e,37),n)},N(Vn,"InvertedPortProcessor",1540),M(1541,1,ys,xY),l.pf=function(e,n){tvn(u(e,37),n)},N(Vn,"LabelAndNodeSizeProcessor",1541),M(1542,1,_i,kY),l.Mb=function(e){return u(e,10).k==(Kn(),Ws)},N(Vn,"LabelAndNodeSizeProcessor/lambda$0$Type",1542),M(1543,1,_i,qd),l.Mb=function(e){return u(e,10).k==(Kn(),Fs)},N(Vn,"LabelAndNodeSizeProcessor/lambda$1$Type",1543),M(1544,1,Qn,SWt),l.td=function(e){GWe(this.b,this.a,this.c,u(e,10))},l.a=!1,l.c=!1,N(Vn,"LabelAndNodeSizeProcessor/lambda$2$Type",1544),M(1545,1,ys,xB),l.pf=function(e,n){Tyn(u(e,37),n)};var Qpe;N(Vn,"LabelDummyInserter",1545),M(1546,1,Td,ov),l.Lb=function(e){return qt(K(u(e,70),(Ce(),Fd)))===qt((F1(),C9))},l.Fb=function(e){return this===e},l.Mb=function(e){return qt(K(u(e,70),(Ce(),Fd)))===qt((F1(),C9))},N(Vn,"LabelDummyInserter/1",1546),M(1547,1,ys,mY),l.pf=function(e,n){Cmn(u(e,37),n)},N(Vn,"LabelDummyRemover",1547),M(1548,1,_i,EY),l.Mb=function(e){return Re(Be(K(u(e,70),(Ce(),Nlt))))},N(Vn,"LabelDummyRemover/lambda$0$Type",1548),M(1359,1,ys,CJ),l.pf=function(e,n){eyn(this,u(e,37),n)},l.a=null;var Wut;N(Vn,"LabelDummySwitcher",1359),M(286,1,{286:1},Rce),l.c=0,l.d=null,l.f=0,N(Vn,"LabelDummySwitcher/LabelDummyInfo",286),M(1360,1,{},WP),l.Kb=function(e){return Y6(),new kn(null,new Cn(u(e,29).a,16))},N(Vn,"LabelDummySwitcher/lambda$0$Type",1360),M(1361,1,_i,KP),l.Mb=function(e){return Y6(),u(e,10).k==(Kn(),Bl)},N(Vn,"LabelDummySwitcher/lambda$1$Type",1361),M(1362,1,{},wg),l.Kb=function(e){return nXe(this.a,u(e,10))},N(Vn,"LabelDummySwitcher/lambda$2$Type",1362),M(1363,1,Qn,hd),l.td=function(e){etn(this.a,u(e,286))},N(Vn,"LabelDummySwitcher/lambda$3$Type",1363),M(1364,1,Ui,TY),l.ue=function(e,n){return LJe(u(e,286),u(n,286))},l.Fb=function(e){return this===e},l.ve=function(){return new dt(this)},N(Vn,"LabelDummySwitcher/lambda$4$Type",1364),M(791,1,ys,_3),l.pf=function(e,n){fin(u(e,37),n)},N(Vn,"LabelManagementProcessor",791),M(1549,1,ys,mk),l.pf=function(e,n){B2n(u(e,37),n)},N(Vn,"LabelSideSelector",1549),M(1550,1,_i,EL),l.Mb=function(e){return Re(Be(K(u(e,70),(Ce(),Nlt))))},N(Vn,"LabelSideSelector/lambda$0$Type",1550),M(1558,1,ys,pm),l.pf=function(e,n){mwn(u(e,37),n)},N(Vn,"LayerConstraintPostprocessor",1558),M(1559,1,ys,AJ),l.pf=function(e,n){Ogn(u(e,37),n)};var X9t;N(Vn,"LayerConstraintPreprocessor",1559),M(360,22,{3:1,35:1,22:1,360:1},NR);var bO,vV,wV,Kut,Zpe=Xr(Vn,"LayerConstraintPreprocessor/HiddenNodeConnections",360,ti,srn,ZXe),Jpe;M(1560,1,ys,yk),l.pf=function(e,n){Emn(u(e,37),n)},N(Vn,"LayerSizeAndGraphHeightCalculator",1560),M(1561,1,ys,_Y),l.pf=function(e,n){Cpn(u(e,37),n)},N(Vn,"LongEdgeJoiner",1561),M(1562,1,ys,ME),l.pf=function(e,n){imn(u(e,37),n)},N(Vn,"LongEdgeSplitter",1562),M(1563,1,ys,cd),l.pf=function(e,n){iyn(this,u(e,37),n)},l.d=0,l.e=0,l.i=0,l.j=0,l.k=0,l.n=0,N(Vn,"NodePromotion",1563),M(1564,1,{},YP),l.Kb=function(e){return u(e,46),Rn(),!0},l.Fb=function(e){return this===e},N(Vn,"NodePromotion/lambda$0$Type",1564),M(1565,1,{},Tp),l.Kb=function(e){return ktn(this.a,u(e,46))},l.Fb=function(e){return this===e},l.a=0,N(Vn,"NodePromotion/lambda$1$Type",1565),M(1566,1,{},Kf),l.Kb=function(e){return Etn(this.a,u(e,46))},l.Fb=function(e){return this===e},l.a=0,N(Vn,"NodePromotion/lambda$2$Type",1566),M(1567,1,ys,TL),l.pf=function(e,n){A3n(u(e,37),n)},N(Vn,"NorthSouthPortPostprocessor",1567),M(1568,1,ys,xk),l.pf=function(e,n){d3n(u(e,37),n)},N(Vn,"NorthSouthPortPreprocessor",1568),M(1569,1,Ui,_L),l.ue=function(e,n){return qan(u(e,11),u(n,11))},l.Fb=function(e){return this===e},l.ve=function(){return new dt(this)},N(Vn,"NorthSouthPortPreprocessor/lambda$0$Type",1569),M(1570,1,ys,XP),l.pf=function(e,n){Mvn(u(e,37),n)},N(Vn,"PartitionMidprocessor",1570),M(1571,1,_i,CY),l.Mb=function(e){return ia(u(e,10),(Ce(),b9))},N(Vn,"PartitionMidprocessor/lambda$0$Type",1571),M(1572,1,Qn,dv),l.td=function(e){Gtn(this.a,u(e,10))},N(Vn,"PartitionMidprocessor/lambda$1$Type",1572),M(1573,1,ys,CL),l.pf=function(e,n){Upn(u(e,37),n)},N(Vn,"PartitionPostprocessor",1573),M(1574,1,ys,SY),l.pf=function(e,n){ngn(u(e,37),n)},N(Vn,"PartitionPreprocessor",1574),M(1575,1,_i,AY),l.Mb=function(e){return ia(u(e,10),(Ce(),b9))},N(Vn,"PartitionPreprocessor/lambda$0$Type",1575),M(1576,1,{},QP),l.Kb=function(e){return new kn(null,new Ov(new pr(mr(Gs(u(e,10)).a.Kc(),new H))))},N(Vn,"PartitionPreprocessor/lambda$1$Type",1576),M(1577,1,_i,V5),l.Mb=function(e){return Yun(u(e,17))},N(Vn,"PartitionPreprocessor/lambda$2$Type",1577),M(1578,1,Qn,ZP),l.td=function(e){Zan(u(e,17))},N(Vn,"PartitionPreprocessor/lambda$3$Type",1578),M(1579,1,ys,cT),l.pf=function(e,n){gvn(u(e,37),n)};var Q9t,t2e,e2e,n2e,Z9t,J9t;N(Vn,"PortListSorter",1579),M(1580,1,{},G5),l.Kb=function(e){return J8(),u(e,11).e},N(Vn,"PortListSorter/lambda$0$Type",1580),M(1581,1,{},LY),l.Kb=function(e){return J8(),u(e,11).g},N(Vn,"PortListSorter/lambda$1$Type",1581),M(1582,1,Ui,SL),l.ue=function(e,n){return ZQt(u(e,11),u(n,11))},l.Fb=function(e){return this===e},l.ve=function(){return new dt(this)},N(Vn,"PortListSorter/lambda$2$Type",1582),M(1583,1,Ui,MY),l.ue=function(e,n){return mhn(u(e,11),u(n,11))},l.Fb=function(e){return this===e},l.ve=function(){return new dt(this)},N(Vn,"PortListSorter/lambda$3$Type",1583),M(1584,1,Ui,DY),l.ue=function(e,n){return oue(u(e,11),u(n,11))},l.Fb=function(e){return this===e},l.ve=function(){return new dt(this)},N(Vn,"PortListSorter/lambda$4$Type",1584),M(1585,1,ys,IY),l.pf=function(e,n){Sgn(u(e,37),n)},N(Vn,"PortSideProcessor",1585),M(1586,1,ys,OY),l.pf=function(e,n){Abn(u(e,37),n)},N(Vn,"ReversedEdgeRestorer",1586),M(1591,1,ys,bzt),l.pf=function(e,n){rhn(this,u(e,37),n)},N(Vn,"SelfLoopPortRestorer",1591),M(1592,1,{},JP),l.Kb=function(e){return new kn(null,new Cn(u(e,29).a,16))},N(Vn,"SelfLoopPortRestorer/lambda$0$Type",1592),M(1593,1,_i,NY),l.Mb=function(e){return u(e,10).k==(Kn(),Ws)},N(Vn,"SelfLoopPortRestorer/lambda$1$Type",1593),M(1594,1,_i,PY),l.Mb=function(e){return ia(u(e,10),(ie(),d9))},N(Vn,"SelfLoopPortRestorer/lambda$2$Type",1594),M(1595,1,{},FY),l.Kb=function(e){return u(K(u(e,10),(ie(),d9)),403)},N(Vn,"SelfLoopPortRestorer/lambda$3$Type",1595),M(1596,1,Qn,Tm),l.td=function(e){fdn(this.a,u(e,403))},N(Vn,"SelfLoopPortRestorer/lambda$4$Type",1596),M(794,1,Qn,tF),l.td=function(e){Sdn(u(e,101))},N(Vn,"SelfLoopPortRestorer/lambda$5$Type",794),M(1597,1,ys,BY),l.pf=function(e,n){fln(u(e,37),n)},N(Vn,"SelfLoopPostProcessor",1597),M(1598,1,{},RY),l.Kb=function(e){return new kn(null,new Cn(u(e,29).a,16))},N(Vn,"SelfLoopPostProcessor/lambda$0$Type",1598),M(1599,1,_i,jY),l.Mb=function(e){return u(e,10).k==(Kn(),Ws)},N(Vn,"SelfLoopPostProcessor/lambda$1$Type",1599),M(1600,1,_i,eF),l.Mb=function(e){return ia(u(e,10),(ie(),d9))},N(Vn,"SelfLoopPostProcessor/lambda$2$Type",1600),M(1601,1,Qn,$Y),l.td=function(e){mfn(u(e,10))},N(Vn,"SelfLoopPostProcessor/lambda$3$Type",1601),M(1602,1,{},zY),l.Kb=function(e){return new kn(null,new Cn(u(e,101).f,1))},N(Vn,"SelfLoopPostProcessor/lambda$4$Type",1602),M(1603,1,Qn,d6),l.td=function(e){crn(this.a,u(e,409))},N(Vn,"SelfLoopPostProcessor/lambda$5$Type",1603),M(1604,1,_i,nF),l.Mb=function(e){return!!u(e,101).i},N(Vn,"SelfLoopPostProcessor/lambda$6$Type",1604),M(1605,1,Qn,O3),l.td=function(e){UUe(this.a,u(e,101))},N(Vn,"SelfLoopPostProcessor/lambda$7$Type",1605),M(1587,1,ys,rF),l.pf=function(e,n){spn(u(e,37),n)},N(Vn,"SelfLoopPreProcessor",1587),M(1588,1,{},iF),l.Kb=function(e){return new kn(null,new Cn(u(e,101).f,1))},N(Vn,"SelfLoopPreProcessor/lambda$0$Type",1588),M(1589,1,{},qY),l.Kb=function(e){return u(e,409).a},N(Vn,"SelfLoopPreProcessor/lambda$1$Type",1589),M(1590,1,Qn,HY),l.td=function(e){QKe(u(e,17))},N(Vn,"SelfLoopPreProcessor/lambda$2$Type",1590),M(1606,1,ys,XUt),l.pf=function(e,n){ndn(this,u(e,37),n)},N(Vn,"SelfLoopRouter",1606),M(1607,1,{},kk),l.Kb=function(e){return new kn(null,new Cn(u(e,29).a,16))},N(Vn,"SelfLoopRouter/lambda$0$Type",1607),M(1608,1,_i,U5),l.Mb=function(e){return u(e,10).k==(Kn(),Ws)},N(Vn,"SelfLoopRouter/lambda$1$Type",1608),M(1609,1,_i,DE),l.Mb=function(e){return ia(u(e,10),(ie(),d9))},N(Vn,"SelfLoopRouter/lambda$2$Type",1609),M(1610,1,{},VY),l.Kb=function(e){return u(K(u(e,10),(ie(),d9)),403)},N(Vn,"SelfLoopRouter/lambda$3$Type",1610),M(1611,1,Qn,UHt),l.td=function(e){Ftn(this.a,this.b,u(e,403))},N(Vn,"SelfLoopRouter/lambda$4$Type",1611),M(1612,1,ys,AL),l.pf=function(e,n){_2n(u(e,37),n)},N(Vn,"SemiInteractiveCrossMinProcessor",1612),M(1613,1,_i,IE),l.Mb=function(e){return u(e,10).k==(Kn(),Ws)},N(Vn,"SemiInteractiveCrossMinProcessor/lambda$0$Type",1613),M(1614,1,_i,LL),l.Mb=function(e){return fKt(u(e,10))._b((Ce(),zy))},N(Vn,"SemiInteractiveCrossMinProcessor/lambda$1$Type",1614),M(1615,1,Ui,sF),l.ue=function(e,n){return tan(u(e,10),u(n,10))},l.Fb=function(e){return this===e},l.ve=function(){return new dt(this)},N(Vn,"SemiInteractiveCrossMinProcessor/lambda$2$Type",1615),M(1616,1,{},aF),l.Ce=function(e,n){return Jtn(u(e,10),u(n,10))},N(Vn,"SemiInteractiveCrossMinProcessor/lambda$3$Type",1616),M(1618,1,ys,GY),l.pf=function(e,n){ywn(u(e,37),n)},N(Vn,"SortByInputModelProcessor",1618),M(1619,1,_i,UY),l.Mb=function(e){return u(e,11).g.c.length!=0},N(Vn,"SortByInputModelProcessor/lambda$0$Type",1619),M(1620,1,Qn,g6),l.td=function(e){Idn(this.a,u(e,11))},N(Vn,"SortByInputModelProcessor/lambda$1$Type",1620),M(1693,803,{},oee),l.Me=function(e){var n,r,s,o;switch(this.c=e,this.a.g){case 2:n=new le,Ts(Qi(new kn(null,new Cn(this.c.a.b,16)),new lF),new QHt(this,n)),sI(this,new cF),Mu(n,new KY),n.c=Ot(nr,De,1,0,5,1),Ts(Qi(new kn(null,new Cn(this.c.a.b,16)),new YY),new N3(n)),sI(this,new XY),Mu(n,new QY),n.c=Ot(nr,De,1,0,5,1),r=MGt(yee(Vj(new kn(null,new Cn(this.c.a.b,16)),new Hd(this))),new ZY),Ts(new kn(null,new Cn(this.c.a.a,16)),new KHt(r,n)),sI(this,new JY),Mu(n,new WY),n.c=Ot(nr,De,1,0,5,1);break;case 3:s=new le,sI(this,new oF),o=MGt(yee(Vj(new kn(null,new Cn(this.c.a.b,16)),new wT(this))),new uF),Ts(Qi(new kn(null,new Cn(this.c.a.b,16)),new tX),new XHt(o,s)),sI(this,new eX),Mu(s,new nX),s.c=Ot(nr,De,1,0,5,1);break;default:throw et(new ezt)}},l.b=0,N(js,"EdgeAwareScanlineConstraintCalculation",1693),M(1694,1,Td,oF),l.Lb=function(e){return Et(u(e,57).g,145)},l.Fb=function(e){return this===e},l.Mb=function(e){return Et(u(e,57).g,145)},N(js,"EdgeAwareScanlineConstraintCalculation/lambda$0$Type",1694),M(1695,1,{},wT),l.Fe=function(e){return h0n(this.a,u(e,57))},N(js,"EdgeAwareScanlineConstraintCalculation/lambda$1$Type",1695),M(1703,1,Tq,WHt),l.Vd=function(){nC(this.a,this.b,-1)},l.b=0,N(js,"EdgeAwareScanlineConstraintCalculation/lambda$10$Type",1703),M(1705,1,Td,cF),l.Lb=function(e){return Et(u(e,57).g,145)},l.Fb=function(e){return this===e},l.Mb=function(e){return Et(u(e,57).g,145)},N(js,"EdgeAwareScanlineConstraintCalculation/lambda$11$Type",1705),M(1706,1,Qn,KY),l.td=function(e){u(e,365).Vd()},N(js,"EdgeAwareScanlineConstraintCalculation/lambda$12$Type",1706),M(1707,1,_i,YY),l.Mb=function(e){return Et(u(e,57).g,10)},N(js,"EdgeAwareScanlineConstraintCalculation/lambda$13$Type",1707),M(1709,1,Qn,N3),l.td=function(e){Rcn(this.a,u(e,57))},N(js,"EdgeAwareScanlineConstraintCalculation/lambda$14$Type",1709),M(1708,1,Tq,eVt),l.Vd=function(){nC(this.b,this.a,-1)},l.a=0,N(js,"EdgeAwareScanlineConstraintCalculation/lambda$15$Type",1708),M(1710,1,Td,XY),l.Lb=function(e){return Et(u(e,57).g,10)},l.Fb=function(e){return this===e},l.Mb=function(e){return Et(u(e,57).g,10)},N(js,"EdgeAwareScanlineConstraintCalculation/lambda$16$Type",1710),M(1711,1,Qn,QY),l.td=function(e){u(e,365).Vd()},N(js,"EdgeAwareScanlineConstraintCalculation/lambda$17$Type",1711),M(1712,1,{},Hd),l.Fe=function(e){return f0n(this.a,u(e,57))},N(js,"EdgeAwareScanlineConstraintCalculation/lambda$18$Type",1712),M(1713,1,{},ZY),l.De=function(){return 0},N(js,"EdgeAwareScanlineConstraintCalculation/lambda$19$Type",1713),M(1696,1,{},uF),l.De=function(){return 0},N(js,"EdgeAwareScanlineConstraintCalculation/lambda$2$Type",1696),M(1715,1,Qn,KHt),l.td=function(e){mJe(this.a,this.b,u(e,307))},l.a=0,N(js,"EdgeAwareScanlineConstraintCalculation/lambda$20$Type",1715),M(1714,1,Tq,YHt),l.Vd=function(){voe(this.a,this.b,-1)},l.b=0,N(js,"EdgeAwareScanlineConstraintCalculation/lambda$21$Type",1714),M(1716,1,Td,JY),l.Lb=function(e){return u(e,57),!0},l.Fb=function(e){return this===e},l.Mb=function(e){return u(e,57),!0},N(js,"EdgeAwareScanlineConstraintCalculation/lambda$22$Type",1716),M(1717,1,Qn,WY),l.td=function(e){u(e,365).Vd()},N(js,"EdgeAwareScanlineConstraintCalculation/lambda$23$Type",1717),M(1697,1,_i,tX),l.Mb=function(e){return Et(u(e,57).g,10)},N(js,"EdgeAwareScanlineConstraintCalculation/lambda$3$Type",1697),M(1699,1,Qn,XHt),l.td=function(e){yJe(this.a,this.b,u(e,57))},l.a=0,N(js,"EdgeAwareScanlineConstraintCalculation/lambda$4$Type",1699),M(1698,1,Tq,nVt),l.Vd=function(){nC(this.b,this.a,-1)},l.a=0,N(js,"EdgeAwareScanlineConstraintCalculation/lambda$5$Type",1698),M(1700,1,Td,eX),l.Lb=function(e){return u(e,57),!0},l.Fb=function(e){return this===e},l.Mb=function(e){return u(e,57),!0},N(js,"EdgeAwareScanlineConstraintCalculation/lambda$6$Type",1700),M(1701,1,Qn,nX),l.td=function(e){u(e,365).Vd()},N(js,"EdgeAwareScanlineConstraintCalculation/lambda$7$Type",1701),M(1702,1,_i,lF),l.Mb=function(e){return Et(u(e,57).g,145)},N(js,"EdgeAwareScanlineConstraintCalculation/lambda$8$Type",1702),M(1704,1,Qn,QHt),l.td=function(e){vsn(this.a,this.b,u(e,57))},N(js,"EdgeAwareScanlineConstraintCalculation/lambda$9$Type",1704),M(1521,1,ys,fUt),l.pf=function(e,n){hmn(this,u(e,37),n)};var r2e;N(js,"HorizontalGraphCompactor",1521),M(1522,1,{},C1),l.Oe=function(e,n){var r,s,o;return pmt(e,n)||(r=Z3(e),s=Z3(n),r&&r.k==(Kn(),Fs)||s&&s.k==(Kn(),Fs))?0:(o=u(K(this.a.a,(ie(),Y4)),304),_Ye(o,r?r.k:(Kn(),ha),s?s.k:(Kn(),ha)))},l.Pe=function(e,n){var r,s,o;return pmt(e,n)?1:(r=Z3(e),s=Z3(n),o=u(K(this.a.a,(ie(),Y4)),304),lbt(o,r?r.k:(Kn(),ha),s?s.k:(Kn(),ha)))},N(js,"HorizontalGraphCompactor/1",1522),M(1523,1,{},OE),l.Ne=function(e,n){return FT(),e.a.i==0},N(js,"HorizontalGraphCompactor/lambda$0$Type",1523),M(1524,1,{},Vd),l.Ne=function(e,n){return Ytn(this.a,e,n)},N(js,"HorizontalGraphCompactor/lambda$1$Type",1524),M(1664,1,{},UJt);var i2e,s2e;N(js,"LGraphToCGraphTransformer",1664),M(1672,1,_i,rX),l.Mb=function(e){return e!=null},N(js,"LGraphToCGraphTransformer/0methodref$nonNull$Type",1672),M(1665,1,{},iX),l.Kb=function(e){return bf(),Jo(K(u(u(e,57).g,10),(ie(),Bi)))},N(js,"LGraphToCGraphTransformer/lambda$0$Type",1665),M(1666,1,{},hF),l.Kb=function(e){return bf(),Yne(u(u(e,57).g,145))},N(js,"LGraphToCGraphTransformer/lambda$1$Type",1666),M(1675,1,_i,sX),l.Mb=function(e){return bf(),Et(u(e,57).g,10)},N(js,"LGraphToCGraphTransformer/lambda$10$Type",1675),M(1676,1,Qn,aX),l.td=function(e){Ktn(u(e,57))},N(js,"LGraphToCGraphTransformer/lambda$11$Type",1676),M(1677,1,_i,oX),l.Mb=function(e){return bf(),Et(u(e,57).g,145)},N(js,"LGraphToCGraphTransformer/lambda$12$Type",1677),M(1681,1,Qn,cX),l.td=function(e){Jon(u(e,57))},N(js,"LGraphToCGraphTransformer/lambda$13$Type",1681),M(1678,1,Qn,mT),l.td=function(e){EKe(this.a,u(e,8))},l.a=0,N(js,"LGraphToCGraphTransformer/lambda$14$Type",1678),M(1679,1,Qn,q2),l.td=function(e){_Ke(this.a,u(e,110))},l.a=0,N(js,"LGraphToCGraphTransformer/lambda$15$Type",1679),M(1680,1,Qn,WB),l.td=function(e){TKe(this.a,u(e,8))},l.a=0,N(js,"LGraphToCGraphTransformer/lambda$16$Type",1680),M(1682,1,{},uX),l.Kb=function(e){return bf(),new kn(null,new Ov(new pr(mr(Gs(u(e,10)).a.Kc(),new H))))},N(js,"LGraphToCGraphTransformer/lambda$17$Type",1682),M(1683,1,_i,lX),l.Mb=function(e){return bf(),ro(u(e,17))},N(js,"LGraphToCGraphTransformer/lambda$18$Type",1683),M(1684,1,Qn,ytt),l.td=function(e){ssn(this.a,u(e,17))},N(js,"LGraphToCGraphTransformer/lambda$19$Type",1684),M(1668,1,Qn,xtt),l.td=function(e){jnn(this.a,u(e,145))},N(js,"LGraphToCGraphTransformer/lambda$2$Type",1668),M(1685,1,{},fF),l.Kb=function(e){return bf(),new kn(null,new Cn(u(e,29).a,16))},N(js,"LGraphToCGraphTransformer/lambda$20$Type",1685),M(1686,1,{},hX),l.Kb=function(e){return bf(),new kn(null,new Ov(new pr(mr(Gs(u(e,10)).a.Kc(),new H))))},N(js,"LGraphToCGraphTransformer/lambda$21$Type",1686),M(1687,1,{},dF),l.Kb=function(e){return bf(),u(K(u(e,17),(ie(),Ib)),15)},N(js,"LGraphToCGraphTransformer/lambda$22$Type",1687),M(1688,1,_i,fX),l.Mb=function(e){return SYe(u(e,15))},N(js,"LGraphToCGraphTransformer/lambda$23$Type",1688),M(1689,1,Qn,ktt),l.td=function(e){n0n(this.a,u(e,15))},N(js,"LGraphToCGraphTransformer/lambda$24$Type",1689),M(1667,1,Qn,ZHt),l.td=function(e){Crn(this.a,this.b,u(e,145))},N(js,"LGraphToCGraphTransformer/lambda$3$Type",1667),M(1669,1,{},dX),l.Kb=function(e){return bf(),new kn(null,new Cn(u(e,29).a,16))},N(js,"LGraphToCGraphTransformer/lambda$4$Type",1669),M(1670,1,{},gX),l.Kb=function(e){return bf(),new kn(null,new Ov(new pr(mr(Gs(u(e,10)).a.Kc(),new H))))},N(js,"LGraphToCGraphTransformer/lambda$5$Type",1670),M(1671,1,{},NE),l.Kb=function(e){return bf(),u(K(u(e,17),(ie(),Ib)),15)},N(js,"LGraphToCGraphTransformer/lambda$6$Type",1671),M(1673,1,Qn,Ett),l.td=function(e){N0n(this.a,u(e,15))},N(js,"LGraphToCGraphTransformer/lambda$8$Type",1673),M(1674,1,Qn,JHt),l.td=function(e){WKe(this.a,this.b,u(e,145))},N(js,"LGraphToCGraphTransformer/lambda$9$Type",1674),M(1663,1,{},pX),l.Le=function(e){var n,r,s,o,h;for(this.a=e,this.d=new Itt,this.c=Ot(O7t,De,121,this.a.a.a.c.length,0,1),this.b=0,r=new S(this.a.a.a);r.a=Z&&(ue(h,pe(L)),Ct=b.Math.max(Ct,Pt[L-1]-F),w+=W,bt+=Pt[L-1]-bt,F=Pt[L-1],W=k[L]),W=b.Math.max(W,k[L]),++L;w+=W}G=b.Math.min(1/Ct,1/n.b/w),G>s&&(s=G,r=h)}return r},l.Wf=function(){return!1},N(Ad,"MSDCutIndexHeuristic",802),M(1617,1,ys,zX),l.pf=function(e,n){fwn(u(e,37),n)},N(Ad,"SingleEdgeGraphWrapper",1617),M(227,22,{3:1,35:1,22:1,227:1},HT);var q4,a9,o9,Dy,oS,H4,c9=Xr(Pc,"CenterEdgeLabelPlacementStrategy",227,ti,Ein,eQe),v2e;M(422,22,{3:1,35:1,22:1,422:1},l2t);var eEt,slt,nEt=Xr(Pc,"ConstraintCalculationStrategy",422,ti,den,nQe),w2e;M(314,22,{3:1,35:1,22:1,314:1,246:1,234:1},uet),l.Kf=function(){return Aae(this)},l.Xf=function(){return Aae(this)};var vO,Cx,rEt,iEt=Xr(Pc,"CrossingMinimizationStrategy",314,ti,snn,rQe),m2e;M(337,22,{3:1,35:1,22:1,337:1},het);var sEt,alt,TV,aEt=Xr(Pc,"CuttingStrategy",337,ti,ann,aQe),y2e;M(335,22,{3:1,35:1,22:1,335:1,246:1,234:1},kM),l.Kf=function(){return goe(this)},l.Xf=function(){return goe(this)};var oEt,olt,cS,clt,uS,cEt=Xr(Pc,"CycleBreakingStrategy",335,ti,Yrn,oQe),x2e;M(419,22,{3:1,35:1,22:1,419:1},h2t);var _V,uEt,lEt=Xr(Pc,"DirectionCongruency",419,ti,fen,cQe),k2e;M(450,22,{3:1,35:1,22:1,450:1},fet);var u9,ult,V4,E2e=Xr(Pc,"EdgeConstraint",450,ti,onn,uQe),T2e;M(276,22,{3:1,35:1,22:1,276:1},VT);var llt,hlt,flt,dlt,CV,glt,hEt=Xr(Pc,"EdgeLabelSideSelection",276,ti,Sin,lQe),_2e;M(479,22,{3:1,35:1,22:1,479:1},f2t);var SV,fEt,dEt=Xr(Pc,"EdgeStraighteningStrategy",479,ti,hen,hQe),C2e;M(274,22,{3:1,35:1,22:1,274:1},GT);var plt,gEt,pEt,AV,bEt,vEt,wEt=Xr(Pc,"FixedAlignment",274,ti,_in,fQe),S2e;M(275,22,{3:1,35:1,22:1,275:1},UT);var mEt,yEt,xEt,kEt,lS,EEt,TEt=Xr(Pc,"GraphCompactionStrategy",275,ti,Tin,dQe),A2e;M(256,22,{3:1,35:1,22:1,256:1},Mm);var l9,LV,h9,Th,hS,MV,f9,G4,DV,fS,blt=Xr(Pc,"GraphProperties",256,ti,fan,gQe),L2e;M(292,22,{3:1,35:1,22:1,292:1},det);var wO,vlt,wlt,mlt=Xr(Pc,"GreedySwitchType",292,ti,lnn,pQe),M2e;M(303,22,{3:1,35:1,22:1,303:1},get);var Sx,mO,U4,D2e=Xr(Pc,"InLayerConstraint",303,ti,unn,bQe),I2e;M(420,22,{3:1,35:1,22:1,420:1},d2t);var ylt,_Et,CEt=Xr(Pc,"InteractiveReferencePoint",420,ti,gen,vQe),O2e,SEt,Ax,Cw,IV,AEt,LEt,OV,MEt,yO,NV,dS,Lx,Iy,xlt,PV,yc,DEt,Sw,tu,klt,Elt,xO,Db,Aw,Mx,IEt,Dx,kO,Oy,c1,Uh,Tlt,W4,Bc,Bi,OEt,NEt,PEt,FEt,BEt,_lt,FV,ul,Lw,Clt,Ix,EO,K1,K4,d9,Y4,X4,g9,Ib,REt,Slt,Alt,Ox;M(163,22,{3:1,35:1,22:1,163:1},TM);var gS,g2,pS,Ny,TO,jEt=Xr(Pc,"LayerConstraint",163,ti,Zrn,wQe),N2e;M(848,1,jh,NJ),l.Qe=function(e){an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,Z6t),""),"Direction Congruency"),"Specifies how drawings of the same graph with different layout directions compare to each other: either a natural reading direction is preserved or the drawings are rotated versions of each other."),YEt),(Rg(),ks)),lEt),on((n1(),Un))))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,J6t),""),"Feedback Edges"),"Whether feedback edges should be highlighted by routing around the nodes."),(Rn(),!1)),qa),Zs),on(Un)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,jq),""),"Interactive Reference Point"),"Determines which point of a node is considered by interactive layout phases."),eTt),ks),CEt),on(Un)))),ya(e,jq,Aot,_be),ya(e,jq,NC,Tbe),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,txt),""),"Merge Edges"),"Edges that have no ports are merged so they touch the connected nodes at the same points. When this option is disabled, one port is created for each edge directly connected to a node. When it is enabled, all such incoming edges share an input port, and all outgoing edges share an output port."),!1),qa),Zs),on(Un)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,ext),""),"Merge Hierarchy-Crossing Edges"),"If hierarchical layout is active, hierarchy-crossing edges use as few hierarchical ports as possible. They are broken by the algorithm, with hierarchical ports inserted as required. Usually, one such port is created for each edge at each hierarchy crossing point. With this option set to true, we try to create as few hierarchical ports as possible in the process. In particular, all edges that form a hyperedge can share a port."),!0),qa),Zs),on(Un)))),an(e,new Xe(TWe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,nxt),""),"Allow Non-Flow Ports To Switch Sides"),"Specifies whether non-flow ports may switch sides if their node's port constraints are either FIXED_SIDE or FIXED_ORDER. A non-flow port is a port on a side that is not part of the currently configured layout flow. For instance, given a left-to-right layout direction, north and south ports would be considered non-flow ports. Further note that the underlying criterium whether to switch sides or not solely relies on the minimization of edge crossings. Hence, edge length and other aesthetics criteria are not addressed."),!1),qa),Zs),on(Rb)),ct(ot(Me,1),te,2,6,["org.eclipse.elk.layered.northOrSouthPort"])))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,rxt),""),"Port Sorting Strategy"),"Only relevant for nodes with FIXED_SIDE port constraints. Determines the way a node's ports are distributed on the sides of a node if their order is not prescribed. The option is set on parent nodes."),uTt),ks),v_t),on(Un)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,ixt),""),"Thoroughness"),"How much effort should be spent to produce a nice layout."),pe(7)),Lc),to),on(Un)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,sxt),""),"Add Unnecessary Bendpoints"),"Adds bend points even if an edge does not change direction. If true, each long edge dummy will contribute a bend point to its edges and hierarchy-crossing edges will always get a bend point where they cross hierarchy boundaries. By default, bend points are only added where an edge changes direction."),!1),qa),Zs),on(Un)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,axt),""),"Generate Position and Layer IDs"),"If enabled position id and layer id are generated, which are usually only used internally when setting the interactiveLayout option. This option should be specified on the root node."),!1),qa),Zs),on(Un)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,Aot),"cycleBreaking"),"Cycle Breaking Strategy"),"Strategy for cycle breaking. Cycle breaking looks for cycles in the graph and determines which edges to reverse to break the cycles. Reversed edges will end up pointing to the opposite direction of regular edges (that is, reversed edges will point left if edges usually point right)."),KEt),ks),cEt),on(Un)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,HI),Zot),"Node Layering Strategy"),"Strategy for node layering."),iTt),ks),s_t),on(Un)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,oxt),Zot),"Layer Constraint"),"Determines a constraint on the placement of the node regarding the layering."),nTt),ks),jEt),on(fa)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,cxt),Zot),"Layer Choice Constraint"),"Allows to set a constraint regarding the layer placement of a node. Let i be the value of teh constraint. Assumed the drawing has n layers and i < n. If set to i, it expresses that the node should be placed in i-th layer. Should i>=n be true then the node is placed in the last layer of the drawing. Note that this option is not part of any of ELK Layered's default configurations but is only evaluated as part of the `InteractiveLayeredGraphVisitor`, which must be applied manually or used via the `DiagramLayoutEngine."),pe(-1)),Lc),to),on(fa)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,uxt),Zot),"Layer ID"),"Layer identifier that was calculated by ELK Layered for a node. This is only generated if interactiveLayot or generatePositionAndLayerIds is set."),pe(-1)),Lc),to),on(fa)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,Lot),Tfe),"Upper Bound On Width [MinWidth Layerer]"),"Defines a loose upper bound on the width of the MinWidth layerer. If set to '-1' multiple values are tested and the best result is selected."),pe(4)),Lc),to),on(Un)))),ya(e,Lot,HI,Ibe),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,Mot),Tfe),"Upper Layer Estimation Scaling Factor [MinWidth Layerer]"),"Multiplied with Upper Bound On Width for defining an upper bound on the width of layers which haven't been determined yet, but whose maximum width had been (roughly) estimated by the MinWidth algorithm. Compensates for too high estimations. If set to '-1' multiple values are tested and the best result is selected."),pe(2)),Lc),to),on(Un)))),ya(e,Mot,HI,Nbe),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,Dot),_fe),"Node Promotion Strategy"),"Reduces number of dummy nodes after layering phase (if possible)."),rTt),ks),g_t),on(Un)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,Iot),_fe),"Max Node Promotion Iterations"),"Limits the number of iterations for node promotion."),pe(0)),Lc),to),on(Un)))),ya(e,Iot,Dot,null),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,Oot),"layering.coffmanGraham"),"Layer Bound"),"The maximum number of nodes allowed per layer."),pe(Di)),Lc),to),on(Un)))),ya(e,Oot,HI,Sbe),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,NC),VI),"Crossing Minimization Strategy"),"Strategy for crossing minimization."),WEt),ks),iEt),on(Un)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,lxt),VI),"Force Node Model Order"),"The node order given by the model does not change to produce a better layout. E.g. if node A is before node B in the model this is not changed during crossing minimization. This assumes that the node model order is already respected before crossing minimization. This can be achieved by setting considerModelOrder.strategy to NODES_AND_EDGES."),!1),qa),Zs),on(Un)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,Not),VI),"Hierarchical Sweepiness"),"How likely it is to use cross-hierarchy (1) vs bottom-up (-1)."),.1),Uo),ka),on(Un)))),ya(e,Not,Zq,J2e),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,Pot),VI),"Semi-Interactive Crossing Minimization"),"Preserves the order of nodes within a layer but still minimizes crossings between edges connecting long edge dummies. Derives the desired order from positions specified by the 'org.eclipse.elk.position' layout option. Requires a crossing minimization strategy that is able to process 'in-layer' constraints."),!1),qa),Zs),on(Un)))),ya(e,Pot,NC,rbe),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,hxt),VI),"Position Choice Constraint"),"Allows to set a constraint regarding the position placement of a node in a layer. Assumed the layer in which the node placed includes n other nodes and i < n. If set to i, it expresses that the node should be placed at the i-th position. Should i>=n be true then the node is placed at the last position in the layer. Note that this option is not part of any of ELK Layered's default configurations but is only evaluated as part of the `InteractiveLayeredGraphVisitor`, which must be applied manually or used via the `DiagramLayoutEngine."),pe(-1)),Lc),to),on(fa)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,fxt),VI),"Position ID"),"Position within a layer that was determined by ELK Layered for a node. This is only generated if interactiveLayot or generatePositionAndLayerIds is set."),pe(-1)),Lc),to),on(fa)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,dxt),Cfe),"Greedy Switch Activation Threshold"),"By default it is decided automatically if the greedy switch is activated or not. The decision is based on whether the size of the input graph (without dummy nodes) is smaller than the value of this option. A '0' enforces the activation."),pe(40)),Lc),to),on(Un)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,Fot),Cfe),"Greedy Switch Crossing Minimization"),"Greedy Switch strategy for crossing minimization. The greedy switch heuristic is executed after the regular crossing minimization as a post-processor. Note that if 'hierarchyHandling' is set to 'INCLUDE_CHILDREN', the 'greedySwitchHierarchical.type' option must be used."),UEt),ks),mlt),on(Un)))),ya(e,Fot,NC,Q2e),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,$q),"crossingMinimization.greedySwitchHierarchical"),"Greedy Switch Crossing Minimization (hierarchical)"),"Activates the greedy switch heuristic in case hierarchical layout is used. The differences to the non-hierarchical case (see 'greedySwitch.type') are: 1) greedy switch is inactive by default, 3) only the option value set on the node at which hierarchical layout starts is relevant, and 2) if it's activated by the user, it properly addresses hierarchy-crossing edges."),GEt),ks),mlt),on(Un)))),ya(e,$q,NC,K2e),ya(e,$q,Zq,Y2e),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,M4),Sfe),"Node Placement Strategy"),"Strategy for node placement."),cTt),ks),u_t),on(Un)))),an(e,new Xe(rn(nn(sn(Ze(en(Je(tn(new Ve,zq),Sfe),"Favor Straight Edges Over Balancing"),"Favor straight edges over a balanced node placement. The default behavior is determined automatically based on the used 'edgeRouting'. For an orthogonal style it is set to true, for all other styles to false."),qa),Zs),on(Un)))),ya(e,zq,M4,Gbe),ya(e,zq,M4,Ube),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,Bot),Afe),"BK Edge Straightening"),"Specifies whether the Brandes Koepf node placer tries to increase the number of straight edges at the expense of diagram size. There is a subtle difference to the 'favorStraightEdges' option, which decides whether a balanced placement of the nodes is desired, or not. In bk terms this means combining the four alignments into a single balanced one, or not. This option on the other hand tries to straighten additional edges during the creation of each of the four alignments."),sTt),ks),dEt),on(Un)))),ya(e,Bot,M4,zbe),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,Rot),Afe),"BK Fixed Alignment"),"Tells the BK node placer to use a certain alignment (out of its four) instead of the one producing the smallest height, or the combination of all four."),aTt),ks),wEt),on(Un)))),ya(e,Rot,M4,Hbe),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,jot),"nodePlacement.linearSegments"),"Linear Segments Deflection Dampening"),"Dampens the movement of nodes to keep the diagram from getting too large."),.3),Uo),ka),on(Un)))),ya(e,jot,M4,Kbe),an(e,new Xe(rn(nn(sn(Ze(en(Je(tn(new Ve,$ot),"nodePlacement.networkSimplex"),"Node Flexibility"),"Aims at shorter and straighter edges. Two configurations are possible: (a) allow ports to move freely on the side they are assigned to (the order is always defined beforehand), (b) additionally allow to enlarge a node wherever it helps. If this option is not configured for a node, the 'nodeFlexibility.default' value is used, which is specified for the node's parent."),ks),Qlt),on(fa)))),ya(e,$ot,M4,Zbe),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,zot),"nodePlacement.networkSimplex.nodeFlexibility"),"Node Flexibility Default"),"Default value of the 'nodeFlexibility' option for the children of a hierarchical node."),oTt),ks),Qlt),on(Un)))),ya(e,zot,M4,Qbe),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,gxt),Lfe),"Self-Loop Distribution"),"Alter the distribution of the loops around the node. It only takes effect for PortConstraints.FREE."),ZEt),ks),y_t),on(fa)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,pxt),Lfe),"Self-Loop Ordering"),"Alter the ordering of the loops they can either be stacked or sequenced. It only takes effect for PortConstraints.FREE."),JEt),ks),x_t),on(fa)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,qq),"edgeRouting.splines"),"Spline Routing Mode"),"Specifies the way control points are assembled for each individual edge. CONSERVATIVE ensures that edges are properly routed around the nodes but feels rather orthogonal at times. SLOPPY uses fewer control points to obtain curvier edge routes but may result in edges overlapping nodes."),tTt),ks),E_t),on(Un)))),ya(e,qq,GI,gbe),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,Hq),"edgeRouting.splines.sloppy"),"Sloppy Spline Layer Spacing Factor"),"Spacing factor for routing area between layers when using sloppy spline routing."),.2),Uo),ka),on(Un)))),ya(e,Hq,GI,bbe),ya(e,Hq,qq,vbe),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,qot),"edgeRouting.polyline"),"Sloped Edge Zone Width"),"Width of the strip to the left and to the right of each layer where the polyline edge router is allowed to refrain from ensuring that edges are routed horizontally. This prevents awkward bend points for nodes that extent almost to the edge of their layer."),2),Uo),ka),on(Un)))),ya(e,qot,GI,lbe),an(e,new Xe(rn(nn(sn(Ze(en(Je(tn(new Ve,bxt),V1),"Spacing Base Value"),"An optional base value for all other layout options of the 'spacing' group. It can be used to conveniently alter the overall 'spaciousness' of the drawing. Whenever an explicit value is set for the other layout options, this base value will have no effect. The base value is not inherited, i.e. it must be set for each hierarchical node."),Uo),ka),on(Un)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,vxt),V1),"Edge Node Between Layers Spacing"),"The spacing to be preserved between nodes and edges that are routed next to the node's layer. For the spacing between nodes and edges that cross the node's layer 'spacing.edgeNode' is used."),10),Uo),ka),on(Un)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,wxt),V1),"Edge Edge Between Layer Spacing"),"Spacing to be preserved between pairs of edges that are routed between the same pair of layers. Note that 'spacing.edgeEdge' is used for the spacing between pairs of edges crossing the same layer."),10),Uo),ka),on(Un)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,mxt),V1),"Node Node Between Layers Spacing"),"The spacing to be preserved between any pair of nodes of two adjacent layers. Note that 'spacing.nodeNode' is used for the spacing between nodes within the layer itself."),20),Uo),ka),on(Un)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,yxt),Lxt),"Direction Priority"),"Defines how important it is to have a certain edge point into the direction of the overall layout. This option is evaluated during the cycle breaking phase."),pe(0)),Lc),to),on(Bd)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,xxt),Lxt),"Shortness Priority"),"Defines how important it is to keep an edge as short as possible. This option is evaluated during the layering phase."),pe(0)),Lc),to),on(Bd)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,kxt),Lxt),"Straightness Priority"),"Defines how important it is to keep an edge straight, i.e. aligned with one of the two axes. This option is evaluated during node placement."),pe(0)),Lc),to),on(Bd)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,Hot),Mxt),Ghe),"Tries to further compact components (disconnected sub-graphs)."),!1),qa),Zs),on(Un)))),ya(e,Hot,LC,!0),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,Ext),Mfe),"Post Compaction Strategy"),Dfe),zEt),ks),TEt),on(Un)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,Txt),Mfe),"Post Compaction Constraint Calculation"),Dfe),$Et),ks),nEt),on(Un)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,Vq),Dxt),"High Degree Node Treatment"),"Makes room around high degree nodes to place leafs and trees."),!1),qa),Zs),on(Un)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,Vot),Dxt),"High Degree Node Threshold"),"Whether a node is considered to have a high degree."),pe(16)),Lc),to),on(Un)))),ya(e,Vot,Vq,!0),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,Got),Dxt),"High Degree Node Maximum Tree Height"),"Maximum height of a subtree connected to a high degree node to be moved to separate layers."),pe(5)),Lc),to),on(Un)))),ya(e,Got,Vq,!0),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,K0),Ixt),"Graph Wrapping Strategy"),"For certain graphs and certain prescribed drawing areas it may be desirable to split the laid out graph into chunks that are placed side by side. The edges that connect different chunks are 'wrapped' around from the end of one chunk to the start of the other chunk. The points between the chunks are referred to as 'cuts'."),fTt),ks),S_t),on(Un)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,Gq),Ixt),"Additional Wrapped Edges Spacing"),"To visually separate edges that are wrapped from regularly routed edges an additional spacing value can be specified in form of this layout option. The spacing is added to the regular edgeNode spacing."),10),Uo),ka),on(Un)))),ya(e,Gq,K0,hve),ya(e,Gq,K0,fve),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,Uq),Ixt),"Correction Factor for Wrapping"),"At times and for certain types of graphs the executed wrapping may produce results that are consistently biased in the same fashion: either wrapping to often or to rarely. This factor can be used to correct the bias. Internally, it is simply multiplied with the 'aspect ratio' layout option."),1),Uo),ka),on(Un)))),ya(e,Uq,K0,gve),ya(e,Uq,K0,pve),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,PC),Ife),"Cutting Strategy"),"The strategy by which the layer indexes are determined at which the layering crumbles into chunks."),hTt),ks),aEt),on(Un)))),ya(e,PC,K0,xve),ya(e,PC,K0,kve),an(e,new Xe(rn(nn(sn(Ze(en(Je(tn(new Ve,Uot),Ife),"Manually Specified Cuts"),"Allows the user to specify her own cuts for a certain graph."),X1),Eh),on(Un)))),ya(e,Uot,PC,vve),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,Wot),"wrapping.cutting.msd"),"MSD Freedom"),"The MSD cutting strategy starts with an initial guess on the number of chunks the graph should be split into. The freedom specifies how much the strategy may deviate from this guess. E.g. if an initial number of 3 is computed, a freedom of 1 allows 2, 3, and 4 cuts."),lTt),Lc),to),on(Un)))),ya(e,Wot,PC,mve),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,Wq),Ofe),"Validification Strategy"),"When wrapping graphs, one can specify indices that are not allowed as split points. The validification strategy makes sure every computed split point is allowed."),dTt),ks),C_t),on(Un)))),ya(e,Wq,K0,Nve),ya(e,Wq,K0,Pve),an(e,new Xe(rn(nn(sn(Ze(en(Je(tn(new Ve,Kq),Ofe),"Valid Indices for Wrapping"),null),X1),Eh),on(Un)))),ya(e,Kq,K0,Dve),ya(e,Kq,K0,Ive),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,Yq),Oxt),"Improve Cuts"),"For general graphs it is important that not too many edges wrap backwards. Thus a compromise between evenly-distributed cuts and the total number of cut edges is sought."),!0),qa),Zs),on(Un)))),ya(e,Yq,K0,Cve),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,Xq),Oxt),"Distance Penalty When Improving Cuts"),null),2),Uo),ka),on(Un)))),ya(e,Xq,K0,Tve),ya(e,Xq,Yq,!0),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,Kot),Oxt),"Improve Wrapped Edges"),"The initial wrapping is performed in a very simple way. As a consequence, edges that wrap from one chunk to another may be unnecessarily long. Activating this option tries to shorten such edges."),!0),qa),Zs),on(Un)))),ya(e,Kot,K0,Ave),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,_xt),Jot),"Edge Label Side Selection"),"Method to decide on edge label sides."),QEt),ks),hEt),on(Un)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,Cxt),Jot),"Edge Center Label Placement Strategy"),"Determines in which layer center labels of long edges should be placed."),XEt),ks),c9),Zi(Un,ct(ot(Xg,1),se,175,0,[Yg]))))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,Qq),UI),"Consider Model Order"),"Preserves the order of nodes and edges in the model file if this does not lead to additional edge crossings. Depending on the strategy this is not always possible since the node and edge order might be conflicting."),VEt),ks),b_t),on(Un)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,Sxt),UI),"No Model Order"),"Set on a node to not set a model order for this node even though it is a real node."),!1),qa),Zs),on(fa)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,Yot),UI),"Consider Model Order for Components"),"If set to NONE the usual ordering strategy (by cumulative node priority and size of nodes) is used. INSIDE_PORT_SIDES orders the components with external ports only inside the groups with the same port side. FORCE_MODEL_ORDER enforces the mode order on components. This option might produce bad alignments and sub optimal drawings in terms of used area since the ordering should be respected."),qEt),ks),c9t),on(Un)))),ya(e,Yot,LC,null),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,Axt),UI),"Long Edge Ordering Strategy"),"Indicates whether long edges are sorted under, over, or equal to nodes that have no connection to a previous layer in a left-to-right or right-to-left layout. Under and over changes to right and left in a vertical layout."),HEt),ks),o_t),on(Un)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,Xot),UI),"Crossing Counter Node Order Influence"),"Indicates with what percentage (1 for 100%) violations of the node model order are weighted against the crossings e.g. a value of 0.5 means two model order violations are as important as on edge crossing. This allows some edge crossings in favor of preserving the model order. It is advised to set this value to a very small positive value (e.g. 0.001) to have minimal crossing and a optimal node order. Defaults to no influence (0)."),0),Uo),ka),on(Un)))),ya(e,Xot,Qq,null),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,Qot),UI),"Crossing Counter Port Order Influence"),"Indicates with what percentage (1 for 100%) violations of the port model order are weighted against the crossings e.g. a value of 0.5 means two model order violations are as important as on edge crossing. This allows some edge crossings in favor of preserving the model order. It is advised to set this value to a very small positive value (e.g. 0.001) to have minimal crossing and a optimal port order. Defaults to no influence (0)."),0),Uo),ka),on(Un)))),ya(e,Qot,Qq,null),Xle((new EB,e))};var P2e,F2e,B2e,$Et,R2e,zEt,j2e,qEt,$2e,z2e,q2e,HEt,H2e,V2e,VEt,G2e,U2e,W2e,GEt,K2e,Y2e,X2e,UEt,Q2e,Z2e,J2e,tbe,ebe,nbe,rbe,ibe,WEt,sbe,KEt,abe,YEt,obe,XEt,cbe,QEt,ube,lbe,hbe,ZEt,fbe,JEt,dbe,tTt,gbe,pbe,bbe,vbe,wbe,mbe,ybe,xbe,kbe,Ebe,eTt,Tbe,_be,Cbe,Sbe,Abe,Lbe,nTt,Mbe,Dbe,Ibe,Obe,Nbe,Pbe,Fbe,rTt,Bbe,iTt,Rbe,jbe,$be,sTt,zbe,qbe,aTt,Hbe,Vbe,Gbe,Ube,Wbe,Kbe,Ybe,Xbe,oTt,Qbe,Zbe,Jbe,cTt,tve,uTt,eve,nve,rve,ive,sve,ave,ove,cve,uve,lve,hve,fve,dve,gve,pve,bve,vve,wve,lTt,mve,yve,hTt,xve,kve,Eve,Tve,_ve,Cve,Sve,Ave,Lve,fTt,Mve,Dve,Ive,Ove,dTt,Nve,Pve;N(Pc,"LayeredMetaDataProvider",848),M(986,1,jh,EB),l.Qe=function(e){Xle(e)};var Pd,Llt,BV,bS,RV,gTt,jV,Nx,$V,pTt,bTt,Mlt,p2,Dlt,Py,vTt,_O,Ilt,wTt,Fve,zV,Olt,vS,Fy,Bve,Jl,mTt,yTt,qV,Nlt,Fd,HV,Y0,xTt,kTt,ETt,Plt,Flt,TTt,Gg,Blt,_Tt,By,CTt,STt,ATt,VV,Ry,Ob,LTt,MTt,$o,DTt,Rve,bu,GV,ITt,OTt,NTt,Rlt,PTt,UV,FTt,BTt,WV,Mw,RTt,jlt,wS,jTt,Dw,mS,KV,Nb,$lt,p9,YV,Pb,$Tt,zTt,qTt,b9,HTt,jve,$ve,zve,qve,Iw,jy,xs,Ug,Hve,$y,VTt,v9,GTt,zy,Vve,w9,UTt,Px,Gve,Uve,CO,zlt,WTt,SO,Sf,Q4,Fx,Ow,Fb,XV,qy,qlt,m9,y9,Nw,Z4,Hlt,AO,yS,xS,Vlt,KTt,YTt,XTt,QTt,Glt,ZTt,JTt,t_t,e_t,Ult,QV;N(Pc,"LayeredOptions",986),M(987,1,{},HX),l.$e=function(){var e;return e=new azt,e},l._e=function(e){},N(Pc,"LayeredOptions/LayeredFactory",987),M(1372,1,{}),l.a=0;var Wve;N(Fc,"ElkSpacings/AbstractSpacingsBuilder",1372),M(779,1372,{},Vyt);var ZV,Kve;N(Pc,"LayeredSpacings/LayeredSpacingsBuilder",779),M(313,22,{3:1,35:1,22:1,313:1,246:1,234:1},WT),l.Kf=function(){return Loe(this)},l.Xf=function(){return Loe(this)};var Wlt,n_t,r_t,JV,Klt,i_t,s_t=Xr(Pc,"LayeringStrategy",313,ti,Cin,mQe),Yve;M(378,22,{3:1,35:1,22:1,378:1},pet);var Ylt,a_t,tG,o_t=Xr(Pc,"LongEdgeOrderingStrategy",378,ti,inn,yQe),Xve;M(197,22,{3:1,35:1,22:1,197:1},FR);var J4,t5,eG,Xlt,Qlt=Xr(Pc,"NodeFlexibility",197,ti,hrn,xQe),Qve;M(315,22,{3:1,35:1,22:1,315:1,246:1,234:1},EM),l.Kf=function(){return doe(this)},l.Xf=function(){return doe(this)};var kS,Zlt,Jlt,ES,c_t,u_t=Xr(Pc,"NodePlacementStrategy",315,ti,Krn,SQe),Zve;M(260,22,{3:1,35:1,22:1,260:1},T6);var l_t,LO,h_t,f_t,MO,d_t,nG,rG,g_t=Xr(Pc,"NodePromotionStrategy",260,ti,_sn,EQe),Jve;M(339,22,{3:1,35:1,22:1,339:1},bet);var p_t,b2,tht,b_t=Xr(Pc,"OrderingStrategy",339,ti,fnn,TQe),twe;M(421,22,{3:1,35:1,22:1,421:1},g2t);var eht,nht,v_t=Xr(Pc,"PortSortingStrategy",421,ti,pen,_Qe),ewe;M(452,22,{3:1,35:1,22:1,452:1},vet);var ll,lu,TS,nwe=Xr(Pc,"PortType",452,ti,hnn,kQe),rwe;M(375,22,{3:1,35:1,22:1,375:1},wet);var w_t,rht,m_t,y_t=Xr(Pc,"SelfLoopDistributionStrategy",375,ti,dnn,CQe),iwe;M(376,22,{3:1,35:1,22:1,376:1},p2t);var DO,iht,x_t=Xr(Pc,"SelfLoopOrderingStrategy",376,ti,len,AQe),swe;M(304,1,{304:1},Zue),N(Pc,"Spacings",304),M(336,22,{3:1,35:1,22:1,336:1},met);var sht,k_t,_S,E_t=Xr(Pc,"SplineRoutingMode",336,ti,pnn,LQe),awe;M(338,22,{3:1,35:1,22:1,338:1},yet);var aht,T_t,__t,C_t=Xr(Pc,"ValidifyStrategy",338,ti,bnn,MQe),owe;M(377,22,{3:1,35:1,22:1,377:1},xet);var Hy,oht,x9,S_t=Xr(Pc,"WrappingStrategy",377,ti,gnn,DQe),cwe;M(1383,1,Qc,BJ),l.Yf=function(e){return u(e,37),uwe},l.pf=function(e,n){amn(this,u(e,37),n)};var uwe;N(eH,"DepthFirstCycleBreaker",1383),M(782,1,Qc,Avt),l.Yf=function(e){return u(e,37),lwe},l.pf=function(e,n){i4n(this,u(e,37),n)},l.Zf=function(e){return u(Fe(e,Iz(this.d,e.c.length)),10)};var lwe;N(eH,"GreedyCycleBreaker",782),M(1386,782,Qc,jVt),l.Zf=function(e){var n,r,s,o;for(o=null,n=Di,s=new S(e);s.a1&&(Re(Be(K(Qa((An(0,e.c.length),u(e.c[0],10))),(Ce(),Py))))?Eoe(e,this.d,u(this,660)):(pn(),ua(e,this.d)),Hee(this.e,e))},l.Sf=function(e,n,r,s){var o,h,d,w,k,_,L;for(n!=gKt(r,e.length)&&(h=e[n-(r?1:-1)],Jwt(this.f,h,r?(yo(),lu):(yo(),ll))),o=e[n][0],L=!s||o.k==(Kn(),Fs),_=N1(e[n]),this.ag(_,L,!1,r),d=0,k=new S(_);k.a"),e0?nrt(this.a,e[n-1],e[n]):!r&&n1&&(Re(Be(K(Qa((An(0,e.c.length),u(e.c[0],10))),(Ce(),Py))))?Eoe(e,this.d,this):(pn(),ua(e,this.d)),Re(Be(K(Qa((An(0,e.c.length),u(e.c[0],10))),Py)))||Hee(this.e,e))},N(Qu,"ModelOrderBarycenterHeuristic",660),M(1803,1,Ui,Ejt),l.ue=function(e,n){return ydn(this.a,u(e,10),u(n,10))},l.Fb=function(e){return this===e},l.ve=function(){return new dt(this)},N(Qu,"ModelOrderBarycenterHeuristic/lambda$0$Type",1803),M(1403,1,Qc,zJ),l.Yf=function(e){var n;return u(e,37),n=YR(Ewe),Mi(n,(so(),pu),(vo(),fV)),n},l.pf=function(e,n){sen((u(e,37),n))};var Ewe;N(Qu,"NoCrossingMinimizer",1403),M(796,402,pkt,Rpt),l.$f=function(e,n,r){var s,o,h,d,w,k,_,L,F,q,G;switch(F=this.g,r.g){case 1:{for(o=0,h=0,L=new S(e.j);L.a1&&(o.j==(we(),Wn)?this.b[e]=!0:o.j==jn&&e>0&&(this.b[e-1]=!0))},l.f=0,N(c0,"AllCrossingsCounter",1798),M(587,1,{},K$),l.b=0,l.d=0,N(c0,"BinaryIndexedTree",587),M(524,1,{},qM);var M_t,sG;N(c0,"CrossingsCounter",524),M(1906,1,Ui,Tjt),l.ue=function(e,n){return cJe(this.a,u(e,11),u(n,11))},l.Fb=function(e){return this===e},l.ve=function(){return new dt(this)},N(c0,"CrossingsCounter/lambda$0$Type",1906),M(1907,1,Ui,_jt),l.ue=function(e,n){return uJe(this.a,u(e,11),u(n,11))},l.Fb=function(e){return this===e},l.ve=function(){return new dt(this)},N(c0,"CrossingsCounter/lambda$1$Type",1907),M(1908,1,Ui,Cjt),l.ue=function(e,n){return lJe(this.a,u(e,11),u(n,11))},l.Fb=function(e){return this===e},l.ve=function(){return new dt(this)},N(c0,"CrossingsCounter/lambda$2$Type",1908),M(1909,1,Ui,Sjt),l.ue=function(e,n){return hJe(this.a,u(e,11),u(n,11))},l.Fb=function(e){return this===e},l.ve=function(){return new dt(this)},N(c0,"CrossingsCounter/lambda$3$Type",1909),M(1910,1,Qn,Ajt),l.td=function(e){Uin(this.a,u(e,11))},N(c0,"CrossingsCounter/lambda$4$Type",1910),M(1911,1,_i,Ljt),l.Mb=function(e){return aKe(this.a,u(e,11))},N(c0,"CrossingsCounter/lambda$5$Type",1911),M(1912,1,Qn,Mjt),l.td=function(e){PVt(this,e)},N(c0,"CrossingsCounter/lambda$6$Type",1912),M(1913,1,Qn,oVt),l.td=function(e){var n;g8(),Vp(this.b,(n=this.a,u(e,11),n))},N(c0,"CrossingsCounter/lambda$7$Type",1913),M(826,1,Td,AF),l.Lb=function(e){return g8(),ia(u(e,11),(ie(),ul))},l.Fb=function(e){return this===e},l.Mb=function(e){return g8(),ia(u(e,11),(ie(),ul))},N(c0,"CrossingsCounter/lambda$8$Type",826),M(1905,1,{},Djt),N(c0,"HyperedgeCrossingsCounter",1905),M(467,1,{35:1,467:1},QUt),l.wd=function(e){return Hun(this,u(e,467))},l.b=0,l.c=0,l.e=0,l.f=0;var j4n=N(c0,"HyperedgeCrossingsCounter/Hyperedge",467);M(362,1,{35:1,362:1},Uj),l.wd=function(e){return zgn(this,u(e,362))},l.b=0,l.c=0;var Twe=N(c0,"HyperedgeCrossingsCounter/HyperedgeCorner",362);M(523,22,{3:1,35:1,22:1,523:1},b2t);var SS,AS,_we=Xr(c0,"HyperedgeCrossingsCounter/HyperedgeCorner/Type",523,ti,ben,OQe),Cwe;M(1405,1,Qc,FJ),l.Yf=function(e){return u(K(u(e,37),(ie(),tu)),21).Hc((ko(),Th))?Swe:null},l.pf=function(e,n){cfn(this,u(e,37),n)};var Swe;N(To,"InteractiveNodePlacer",1405),M(1406,1,Qc,PJ),l.Yf=function(e){return u(K(u(e,37),(ie(),tu)),21).Hc((ko(),Th))?Awe:null},l.pf=function(e,n){Uln(this,u(e,37),n)};var Awe,aG,oG;N(To,"LinearSegmentsNodePlacer",1406),M(257,1,{35:1,257:1},gpt),l.wd=function(e){return wWe(this,u(e,257))},l.Fb=function(e){var n;return Et(e,257)?(n=u(e,257),this.b==n.b):!1},l.Hb=function(){return this.b},l.Ib=function(){return"ls"+Jp(this.e)},l.a=0,l.b=0,l.c=-1,l.d=-1,l.g=0;var Lwe=N(To,"LinearSegmentsNodePlacer/LinearSegment",257);M(1408,1,Qc,TKt),l.Yf=function(e){return u(K(u(e,37),(ie(),tu)),21).Hc((ko(),Th))?Mwe:null},l.pf=function(e,n){X3n(this,u(e,37),n)},l.b=0,l.g=0;var Mwe;N(To,"NetworkSimplexPlacer",1408),M(1427,1,Ui,KX),l.ue=function(e,n){return Tu(u(e,19).a,u(n,19).a)},l.Fb=function(e){return this===e},l.ve=function(){return new dt(this)},N(To,"NetworkSimplexPlacer/0methodref$compare$Type",1427),M(1429,1,Ui,YX),l.ue=function(e,n){return Tu(u(e,19).a,u(n,19).a)},l.Fb=function(e){return this===e},l.ve=function(){return new dt(this)},N(To,"NetworkSimplexPlacer/1methodref$compare$Type",1429),M(649,1,{649:1},cVt);var $4n=N(To,"NetworkSimplexPlacer/EdgeRep",649);M(401,1,{401:1},awt),l.b=!1;var z4n=N(To,"NetworkSimplexPlacer/NodeRep",401);M(508,12,{3:1,4:1,20:1,28:1,52:1,12:1,14:1,15:1,54:1,508:1},vzt),N(To,"NetworkSimplexPlacer/Path",508),M(1409,1,{},XX),l.Kb=function(e){return u(e,17).d.i.k},N(To,"NetworkSimplexPlacer/Path/lambda$0$Type",1409),M(1410,1,_i,QX),l.Mb=function(e){return u(e,267)==(Kn(),ha)},N(To,"NetworkSimplexPlacer/Path/lambda$1$Type",1410),M(1411,1,{},ZX),l.Kb=function(e){return u(e,17).d.i},N(To,"NetworkSimplexPlacer/Path/lambda$2$Type",1411),M(1412,1,_i,Ijt),l.Mb=function(e){return PUt(yre(u(e,10)))},N(To,"NetworkSimplexPlacer/Path/lambda$3$Type",1412),M(1413,1,_i,JX),l.Mb=function(e){return QZe(u(e,11))},N(To,"NetworkSimplexPlacer/lambda$0$Type",1413),M(1414,1,Qn,uVt),l.td=function(e){KKe(this.a,this.b,u(e,11))},N(To,"NetworkSimplexPlacer/lambda$1$Type",1414),M(1423,1,Qn,Ojt),l.td=function(e){g0n(this.a,u(e,17))},N(To,"NetworkSimplexPlacer/lambda$10$Type",1423),M(1424,1,{},tQ),l.Kb=function(e){return zl(),new kn(null,new Cn(u(e,29).a,16))},N(To,"NetworkSimplexPlacer/lambda$11$Type",1424),M(1425,1,Qn,Njt),l.td=function(e){lbn(this.a,u(e,10))},N(To,"NetworkSimplexPlacer/lambda$12$Type",1425),M(1426,1,{},eQ),l.Kb=function(e){return zl(),pe(u(e,121).e)},N(To,"NetworkSimplexPlacer/lambda$13$Type",1426),M(1428,1,{},nQ),l.Kb=function(e){return zl(),pe(u(e,121).e)},N(To,"NetworkSimplexPlacer/lambda$15$Type",1428),M(1430,1,_i,rQ),l.Mb=function(e){return zl(),u(e,401).c.k==(Kn(),Ws)},N(To,"NetworkSimplexPlacer/lambda$17$Type",1430),M(1431,1,_i,iQ),l.Mb=function(e){return zl(),u(e,401).c.j.c.length>1},N(To,"NetworkSimplexPlacer/lambda$18$Type",1431),M(1432,1,Qn,DYt),l.td=function(e){tun(this.c,this.b,this.d,this.a,u(e,401))},l.c=0,l.d=0,N(To,"NetworkSimplexPlacer/lambda$19$Type",1432),M(1415,1,{},sQ),l.Kb=function(e){return zl(),new kn(null,new Cn(u(e,29).a,16))},N(To,"NetworkSimplexPlacer/lambda$2$Type",1415),M(1433,1,Qn,Pjt),l.td=function(e){UKe(this.a,u(e,11))},l.a=0,N(To,"NetworkSimplexPlacer/lambda$20$Type",1433),M(1434,1,{},K5),l.Kb=function(e){return zl(),new kn(null,new Cn(u(e,29).a,16))},N(To,"NetworkSimplexPlacer/lambda$21$Type",1434),M(1435,1,Qn,Fjt),l.td=function(e){oYe(this.a,u(e,10))},N(To,"NetworkSimplexPlacer/lambda$22$Type",1435),M(1436,1,_i,LF),l.Mb=function(e){return PUt(e)},N(To,"NetworkSimplexPlacer/lambda$23$Type",1436),M(1437,1,{},aQ),l.Kb=function(e){return zl(),new kn(null,new Cn(u(e,29).a,16))},N(To,"NetworkSimplexPlacer/lambda$24$Type",1437),M(1438,1,_i,Bjt),l.Mb=function(e){return dKe(this.a,u(e,10))},N(To,"NetworkSimplexPlacer/lambda$25$Type",1438),M(1439,1,Qn,lVt),l.td=function(e){Fdn(this.a,this.b,u(e,10))},N(To,"NetworkSimplexPlacer/lambda$26$Type",1439),M(1440,1,_i,oQ),l.Mb=function(e){return zl(),!ro(u(e,17))},N(To,"NetworkSimplexPlacer/lambda$27$Type",1440),M(1441,1,_i,cQ),l.Mb=function(e){return zl(),!ro(u(e,17))},N(To,"NetworkSimplexPlacer/lambda$28$Type",1441),M(1442,1,{},Rjt),l.Ce=function(e,n){return iYe(this.a,u(e,29),u(n,29))},N(To,"NetworkSimplexPlacer/lambda$29$Type",1442),M(1416,1,{},MF),l.Kb=function(e){return zl(),new kn(null,new Ov(new pr(mr(Gs(u(e,10)).a.Kc(),new H))))},N(To,"NetworkSimplexPlacer/lambda$3$Type",1416),M(1417,1,_i,uQ),l.Mb=function(e){return zl(),Gnn(u(e,17))},N(To,"NetworkSimplexPlacer/lambda$4$Type",1417),M(1418,1,Qn,jjt),l.td=function(e){uwn(this.a,u(e,17))},N(To,"NetworkSimplexPlacer/lambda$5$Type",1418),M(1419,1,{},RE),l.Kb=function(e){return zl(),new kn(null,new Cn(u(e,29).a,16))},N(To,"NetworkSimplexPlacer/lambda$6$Type",1419),M(1420,1,_i,lQ),l.Mb=function(e){return zl(),u(e,10).k==(Kn(),Ws)},N(To,"NetworkSimplexPlacer/lambda$7$Type",1420),M(1421,1,{},hQ),l.Kb=function(e){return zl(),new kn(null,new Ov(new pr(mr($0(u(e,10)).a.Kc(),new H))))},N(To,"NetworkSimplexPlacer/lambda$8$Type",1421),M(1422,1,_i,fQ),l.Mb=function(e){return zl(),GZe(u(e,17))},N(To,"NetworkSimplexPlacer/lambda$9$Type",1422),M(1404,1,Qc,uT),l.Yf=function(e){return u(K(u(e,37),(ie(),tu)),21).Hc((ko(),Th))?Dwe:null},l.pf=function(e,n){Vwn(u(e,37),n)};var Dwe;N(To,"SimpleNodePlacer",1404),M(180,1,{180:1},x4),l.Ib=function(){var e;return e="",this.c==(md(),Pw)?e+=dx:this.c==Wg&&(e+=fx),this.o==(D1(),Bb)?e+=cot:this.o==Y1?e+="UP":e+="BALANCED",e},N(o2,"BKAlignedLayout",180),M(516,22,{3:1,35:1,22:1,516:1},w2t);var Wg,Pw,Iwe=Xr(o2,"BKAlignedLayout/HDirection",516,ti,wen,NQe),Owe;M(515,22,{3:1,35:1,22:1,515:1},v2t);var Bb,Y1,Nwe=Xr(o2,"BKAlignedLayout/VDirection",515,ti,men,PQe),Pwe;M(1634,1,{},hVt),N(o2,"BKAligner",1634),M(1637,1,{},Vie),N(o2,"BKCompactor",1637),M(654,1,{654:1},dQ),l.a=0,N(o2,"BKCompactor/ClassEdge",654),M(458,1,{458:1},pzt),l.a=null,l.b=0,N(o2,"BKCompactor/ClassNode",458),M(1407,1,Qc,BVt),l.Yf=function(e){return u(K(u(e,37),(ie(),tu)),21).Hc((ko(),Th))?Fwe:null},l.pf=function(e,n){h4n(this,u(e,37),n)},l.d=!1;var Fwe;N(o2,"BKNodePlacer",1407),M(1635,1,{},gQ),l.d=0,N(o2,"NeighborhoodInformation",1635),M(1636,1,Ui,$jt),l.ue=function(e,n){return wsn(this,u(e,46),u(n,46))},l.Fb=function(e){return this===e},l.ve=function(){return new dt(this)},N(o2,"NeighborhoodInformation/NeighborComparator",1636),M(808,1,{}),N(o2,"ThresholdStrategy",808),M(1763,808,{},yzt),l.bg=function(e,n,r){return this.a.o==(D1(),Y1)?ms:Rs},l.cg=function(){},N(o2,"ThresholdStrategy/NullThresholdStrategy",1763),M(579,1,{579:1},fVt),l.c=!1,l.d=!1,N(o2,"ThresholdStrategy/Postprocessable",579),M(1764,808,{},xzt),l.bg=function(e,n,r){var s,o,h;return o=n==r,s=this.a.a[r.p]==n,o||s?(h=e,this.a.c==(md(),Pw)?(o&&(h=cat(this,n,!0)),!isNaN(h)&&!isFinite(h)&&s&&(h=cat(this,r,!1))):(o&&(h=cat(this,n,!0)),!isNaN(h)&&!isFinite(h)&&s&&(h=cat(this,r,!1))),h):e},l.cg=function(){for(var e,n,r,s,o;this.d.b!=0;)o=u(Pen(this.d),579),s=hue(this,o),s.a&&(e=s.a,r=Re(this.a.f[this.a.g[o.b.p].p]),!(!r&&!ro(e)&&e.c.i.c==e.d.i.c)&&(n=woe(this,o),n||xKe(this.e,o)));for(;this.e.a.c.length!=0;)woe(this,u(Ane(this.e),579))},N(o2,"ThresholdStrategy/SimpleThresholdStrategy",1764),M(635,1,{635:1,246:1,234:1},pQ),l.Kf=function(){return Ree(this)},l.Xf=function(){return Ree(this)};var cht;N(ict,"EdgeRouterFactory",635),M(1458,1,Qc,ld),l.Yf=function(e){return H2n(u(e,37))},l.pf=function(e,n){Qwn(u(e,37),n)};var Bwe,Rwe,jwe,$we,zwe,D_t,qwe,Hwe;N(ict,"OrthogonalEdgeRouter",1458),M(1451,1,Qc,RVt),l.Yf=function(e){return dfn(u(e,37))},l.pf=function(e,n){v3n(this,u(e,37),n)};var Vwe,Gwe,Uwe,Wwe,OO,Kwe;N(ict,"PolylineEdgeRouter",1451),M(1452,1,Td,bQ),l.Lb=function(e){return Wmt(u(e,10))},l.Fb=function(e){return this===e},l.Mb=function(e){return Wmt(u(e,10))},N(ict,"PolylineEdgeRouter/1",1452),M(1809,1,_i,vQ),l.Mb=function(e){return u(e,129).c==(Qf(),v2)},N(s1,"HyperEdgeCycleDetector/lambda$0$Type",1809),M(1810,1,{},wQ),l.Ge=function(e){return u(e,129).d},N(s1,"HyperEdgeCycleDetector/lambda$1$Type",1810),M(1811,1,_i,mQ),l.Mb=function(e){return u(e,129).c==(Qf(),v2)},N(s1,"HyperEdgeCycleDetector/lambda$2$Type",1811),M(1812,1,{},Y5),l.Ge=function(e){return u(e,129).d},N(s1,"HyperEdgeCycleDetector/lambda$3$Type",1812),M(1813,1,{},yQ),l.Ge=function(e){return u(e,129).d},N(s1,"HyperEdgeCycleDetector/lambda$4$Type",1813),M(1814,1,{},xQ),l.Ge=function(e){return u(e,129).d},N(s1,"HyperEdgeCycleDetector/lambda$5$Type",1814),M(112,1,{35:1,112:1},AD),l.wd=function(e){return mWe(this,u(e,112))},l.Fb=function(e){var n;return Et(e,112)?(n=u(e,112),this.g==n.g):!1},l.Hb=function(){return this.g},l.Ib=function(){var e,n,r,s;for(e=new jl("{"),s=new S(this.n);s.a"+this.b+" ("+MYe(this.c)+")"},l.d=0,N(s1,"HyperEdgeSegmentDependency",129),M(520,22,{3:1,35:1,22:1,520:1},m2t);var v2,Vy,Ywe=Xr(s1,"HyperEdgeSegmentDependency/DependencyType",520,ti,ven,FQe),Xwe;M(1815,1,{},zjt),N(s1,"HyperEdgeSegmentSplitter",1815),M(1816,1,{},wqt),l.a=0,l.b=0,N(s1,"HyperEdgeSegmentSplitter/AreaRating",1816),M(329,1,{329:1},cnt),l.a=0,l.b=0,l.c=0,N(s1,"HyperEdgeSegmentSplitter/FreeArea",329),M(1817,1,Ui,AQ),l.ue=function(e,n){return CXe(u(e,112),u(n,112))},l.Fb=function(e){return this===e},l.ve=function(){return new dt(this)},N(s1,"HyperEdgeSegmentSplitter/lambda$0$Type",1817),M(1818,1,Qn,IYt),l.td=function(e){Drn(this.a,this.d,this.c,this.b,u(e,112))},l.b=0,N(s1,"HyperEdgeSegmentSplitter/lambda$1$Type",1818),M(1819,1,{},LQ),l.Kb=function(e){return new kn(null,new Cn(u(e,112).e,16))},N(s1,"HyperEdgeSegmentSplitter/lambda$2$Type",1819),M(1820,1,{},MQ),l.Kb=function(e){return new kn(null,new Cn(u(e,112).j,16))},N(s1,"HyperEdgeSegmentSplitter/lambda$3$Type",1820),M(1821,1,{},DQ),l.Fe=function(e){return Xt(xe(e))},N(s1,"HyperEdgeSegmentSplitter/lambda$4$Type",1821),M(655,1,{},Int),l.a=0,l.b=0,l.c=0,N(s1,"OrthogonalRoutingGenerator",655),M(1638,1,{},IQ),l.Kb=function(e){return new kn(null,new Cn(u(e,112).e,16))},N(s1,"OrthogonalRoutingGenerator/lambda$0$Type",1638),M(1639,1,{},OQ),l.Kb=function(e){return new kn(null,new Cn(u(e,112).j,16))},N(s1,"OrthogonalRoutingGenerator/lambda$1$Type",1639),M(661,1,{}),N(sct,"BaseRoutingDirectionStrategy",661),M(1807,661,{},kzt),l.dg=function(e,n,r){var s,o,h,d,w,k,_,L,F,q,G,W,Z;if(!(e.r&&!e.q))for(L=n+e.o*r,_=new S(e.n);_.a<_.c.c.length;)for(k=u(Q(_),11),F=cc(ct(ot(sa,1),te,8,0,[k.i.n,k.n,k.a])).a,w=new S(k.g);w.aCd&&(h=L,o=e,s=new je(F,h),pi(d.a,s),uw(this,d,o,s,!1),q=e.r,q&&(G=Xt(xe(r1(q.e,0))),s=new je(G,h),pi(d.a,s),uw(this,d,o,s,!1),h=n+q.o*r,o=q,s=new je(G,h),pi(d.a,s),uw(this,d,o,s,!1)),s=new je(Z,h),pi(d.a,s),uw(this,d,o,s,!1)))},l.eg=function(e){return e.i.n.a+e.n.a+e.a.a},l.fg=function(){return we(),Lr},l.gg=function(){return we(),Fn},N(sct,"NorthToSouthRoutingStrategy",1807),M(1808,661,{},Ezt),l.dg=function(e,n,r){var s,o,h,d,w,k,_,L,F,q,G,W,Z;if(!(e.r&&!e.q))for(L=n-e.o*r,_=new S(e.n);_.a<_.c.c.length;)for(k=u(Q(_),11),F=cc(ct(ot(sa,1),te,8,0,[k.i.n,k.n,k.a])).a,w=new S(k.g);w.aCd&&(h=L,o=e,s=new je(F,h),pi(d.a,s),uw(this,d,o,s,!1),q=e.r,q&&(G=Xt(xe(r1(q.e,0))),s=new je(G,h),pi(d.a,s),uw(this,d,o,s,!1),h=n-q.o*r,o=q,s=new je(G,h),pi(d.a,s),uw(this,d,o,s,!1)),s=new je(Z,h),pi(d.a,s),uw(this,d,o,s,!1)))},l.eg=function(e){return e.i.n.a+e.n.a+e.a.a},l.fg=function(){return we(),Fn},l.gg=function(){return we(),Lr},N(sct,"SouthToNorthRoutingStrategy",1808),M(1806,661,{},Tzt),l.dg=function(e,n,r){var s,o,h,d,w,k,_,L,F,q,G,W,Z;if(!(e.r&&!e.q))for(L=n+e.o*r,_=new S(e.n);_.a<_.c.c.length;)for(k=u(Q(_),11),F=cc(ct(ot(sa,1),te,8,0,[k.i.n,k.n,k.a])).b,w=new S(k.g);w.aCd&&(h=L,o=e,s=new je(h,F),pi(d.a,s),uw(this,d,o,s,!0),q=e.r,q&&(G=Xt(xe(r1(q.e,0))),s=new je(h,G),pi(d.a,s),uw(this,d,o,s,!0),h=n+q.o*r,o=q,s=new je(h,G),pi(d.a,s),uw(this,d,o,s,!0)),s=new je(h,Z),pi(d.a,s),uw(this,d,o,s,!0)))},l.eg=function(e){return e.i.n.b+e.n.b+e.a.b},l.fg=function(){return we(),Wn},l.gg=function(){return we(),jn},N(sct,"WestToEastRoutingStrategy",1806),M(813,1,{},j5t),l.Ib=function(){return Jp(this.a)},l.b=0,l.c=!1,l.d=!1,l.f=0,N(ky,"NubSpline",813),M(407,1,{407:1},Woe,fXt),N(ky,"NubSpline/PolarCP",407),M(1453,1,Qc,Fie),l.Yf=function(e){return n1n(u(e,37))},l.pf=function(e,n){F3n(this,u(e,37),n)};var Qwe,Zwe,Jwe,tme,eme;N(ky,"SplineEdgeRouter",1453),M(268,1,{268:1},w$),l.Ib=function(){return this.a+" ->("+this.c+") "+this.b},l.c=0,N(ky,"SplineEdgeRouter/Dependency",268),M(455,22,{3:1,35:1,22:1,455:1},y2t);var w2,e5,nme=Xr(ky,"SplineEdgeRouter/SideToProcess",455,ti,yen,BQe),rme;M(1454,1,_i,SQ),l.Mb=function(e){return lC(),!u(e,128).o},N(ky,"SplineEdgeRouter/lambda$0$Type",1454),M(1455,1,{},CQ),l.Ge=function(e){return lC(),u(e,128).v+1},N(ky,"SplineEdgeRouter/lambda$1$Type",1455),M(1456,1,Qn,dVt),l.td=function(e){WZe(this.a,this.b,u(e,46))},N(ky,"SplineEdgeRouter/lambda$2$Type",1456),M(1457,1,Qn,gVt),l.td=function(e){KZe(this.a,this.b,u(e,46))},N(ky,"SplineEdgeRouter/lambda$3$Type",1457),M(128,1,{35:1,128:1},lae,G5t),l.wd=function(e){return yWe(this,u(e,128))},l.b=0,l.e=!1,l.f=0,l.g=0,l.j=!1,l.k=!1,l.n=0,l.o=!1,l.p=!1,l.q=!1,l.s=0,l.u=0,l.v=0,l.F=0,N(ky,"SplineSegment",128),M(459,1,{459:1},jE),l.a=0,l.b=!1,l.c=!1,l.d=!1,l.e=!1,l.f=0,N(ky,"SplineSegment/EdgeInformation",459),M(1234,1,{},kQ),N(FC,$6t,1234),M(1235,1,Ui,EQ),l.ue=function(e,n){return M0n(u(e,135),u(n,135))},l.Fb=function(e){return this===e},l.ve=function(){return new dt(this)},N(FC,Khe,1235),M(1233,1,{},Nqt),N(FC,"MrTree",1233),M(393,22,{3:1,35:1,22:1,393:1,246:1,234:1},BR),l.Kf=function(){return Pae(this)},l.Xf=function(){return Pae(this)};var cG,LS,NO,MS,I_t=Xr(FC,"TreeLayoutPhases",393,ti,frn,RQe),ime;M(1130,209,xb,tWt),l.Ze=function(e,n){var r,s,o,h,d,w,k;for(Re(Be(ze(e,(cw(),R_t))))||t$((r=new fr((Lm(),new _m(e))),r)),d=(w=new m$,Ho(w,e),Jt(w,(Sc(),OS),e),k=new Rr,xvn(e,w,k),Rvn(e,w,k),w),h=Dvn(this.a,d),o=new S(h);o.a"+o$(this.c):"e_"+ns(this)},N(BC,"TEdge",188),M(135,134,{3:1,135:1,94:1,134:1},m$),l.Ib=function(){var e,n,r,s,o;for(o=null,s=gi(this.b,0);s.b!=s.d.c;)r=u(di(s),86),o+=(r.c==null||r.c.length==0?"n_"+r.g:"n_"+r.c)+` -`;for(n=gi(this.a,0);n.b!=n.d.c;)e=u(di(n),188),o+=(e.b&&e.c?o$(e.b)+"->"+o$(e.c):"e_"+ns(e))+` -`;return o};var q4n=N(BC,"TGraph",135);M(633,502,{3:1,502:1,633:1,94:1,134:1}),N(BC,"TShape",633),M(86,633,{3:1,502:1,86:1,633:1,94:1,134:1},cit),l.Ib=function(){return o$(this)};var H4n=N(BC,"TNode",86);M(255,1,r0,Sp),l.Jc=function(e){Oa(this,e)},l.Kc=function(){var e;return e=gi(this.a.d,0),new p6(e)},N(BC,"TNode/2",255),M(358,1,va,p6),l.Nb=function(e){Da(this,e)},l.Pb=function(){return u(di(this.a),188).c},l.Ob=function(){return dR(this.a)},l.Qb=function(){N$(this.a)},N(BC,"TNode/2/1",358),M(1840,1,ys,JUt),l.pf=function(e,n){twn(this,u(e,135),n)},N(yx,"FanProcessor",1840),M(327,22,{3:1,35:1,22:1,327:1,234:1},KT),l.Kf=function(){switch(this.g){case 0:return new jzt;case 1:return new JUt;case 2:return new X5;case 3:return new NQ;case 4:return new FQ;case 5:return new IL;default:throw et(new Bn(_ot+(this.f!=null?this.f:""+this.g)))}};var uht,lht,hht,fht,dht,uG,sme=Xr(yx,Q6t,327,ti,Ain,jQe),ame;M(1843,1,ys,NQ),l.pf=function(e,n){Fgn(this,u(e,135),n)},l.a=0,N(yx,"LevelHeightProcessor",1843),M(1844,1,r0,PQ),l.Jc=function(e){Oa(this,e)},l.Kc=function(){return pn(),r8(),Z7},N(yx,"LevelHeightProcessor/1",1844),M(1841,1,ys,X5),l.pf=function(e,n){Hdn(this,u(e,135),n)},l.a=0,N(yx,"NeighborsProcessor",1841),M(1842,1,r0,DF),l.Jc=function(e){Oa(this,e)},l.Kc=function(){return pn(),r8(),Z7},N(yx,"NeighborsProcessor/1",1842),M(1845,1,ys,FQ),l.pf=function(e,n){Pgn(this,u(e,135),n)},l.a=0,N(yx,"NodePositionProcessor",1845),M(1839,1,ys,jzt),l.pf=function(e,n){omn(this,u(e,135))},N(yx,"RootProcessor",1839),M(1846,1,ys,IL),l.pf=function(e,n){bcn(u(e,135))},N(yx,"Untreeifyer",1846);var PO,DS,ome,ght,lG,IS,pht,hG,fG,k9,OS,dG,Kg,O_t,cme,bht,Gy,vht,N_t;M(851,1,jh,L3),l.Qe=function(e){an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,bkt),""),"Weighting of Nodes"),"Which weighting to use when computing a node order."),F_t),(Rg(),ks)),H_t),on((n1(),Un))))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,vkt),""),"Search Order"),"Which search order to use when computing a spanning tree."),P_t),ks),G_t),on(Un)))),ole((new WL,e))};var ume,P_t,lme,F_t;N(rH,"MrTreeMetaDataProvider",851),M(994,1,jh,WL),l.Qe=function(e){ole(e)};var hme,B_t,fme,dme,gme,pme,R_t,bme,j_t,vme,gG,$_t,wme,z_t,mme;N(rH,"MrTreeOptions",994),M(995,1,{},BQ),l.$e=function(){var e;return e=new tWt,e},l._e=function(e){},N(rH,"MrTreeOptions/MrtreeFactory",995),M(480,22,{3:1,35:1,22:1,480:1},x2t);var wht,q_t,H_t=Xr(rH,"OrderWeighting",480,ti,ken,$Qe),yme;M(425,22,{3:1,35:1,22:1,425:1},k2t);var V_t,mht,G_t=Xr(rH,"TreeifyingOrder",425,ti,xen,qQe),xme;M(1459,1,Qc,UL),l.Yf=function(e){return u(e,135),kme},l.pf=function(e,n){pan(this,u(e,135),n)};var kme;N("org.eclipse.elk.alg.mrtree.p1treeify","DFSTreeifyer",1459),M(1460,1,Qc,jJ),l.Yf=function(e){return u(e,135),Eme},l.pf=function(e,n){Jdn(this,u(e,135),n)};var Eme;N("org.eclipse.elk.alg.mrtree.p2order","NodeOrderer",1460),M(1461,1,Qc,RJ),l.Yf=function(e){return u(e,135),Tme},l.pf=function(e,n){bbn(this,u(e,135),n)},l.a=0;var Tme;N("org.eclipse.elk.alg.mrtree.p3place","NodePlacer",1461),M(1462,1,Qc,_B),l.Yf=function(e){return u(e,135),_me},l.pf=function(e,n){qhn(u(e,135),n)};var _me;N("org.eclipse.elk.alg.mrtree.p4route","EdgeRouter",1462);var NS;M(495,22,{3:1,35:1,22:1,495:1,246:1,234:1},E2t),l.Kf=function(){return dre(this)},l.Xf=function(){return dre(this)};var pG,E9,U_t=Xr(wkt,"RadialLayoutPhases",495,ti,Een,zQe),Cme;M(1131,209,xb,Oqt),l.Ze=function(e,n){var r,s,o,h,d,w;if(r=bae(this,e),Ar(n,"Radial layout",r.c.length),Re(Be(ze(e,(iy(),nCt))))||t$((s=new fr((Lm(),new _m(e))),s)),w=s1n(e),Mo(e,(l_(),NS),w),!w)throw et(new Bn("The given graph is not a tree!"));for(o=Xt(xe(ze(e,wG))),o==0&&(o=Mae(e)),Mo(e,wG,o),d=new S(bae(this,e));d.a0&&Rne((Yr(n-1,e.length),e.charCodeAt(n-1)),sfe);)--n;if(s>=n)throw et(new Bn("The given string does not contain any numbers."));if(o=dy(e.substr(s,n-s),`,|;|\r| -`),o.length!=2)throw et(new Bn("Exactly two numbers are expected, "+o.length+" were found."));try{this.a=cy(oy(o[0])),this.b=cy(oy(o[1]))}catch(h){throw h=os(h),Et(h,127)?(r=h,et(new Bn(afe+r))):et(h)}},l.Ib=function(){return"("+this.a+","+this.b+")"},l.a=0,l.b=0;var sa=N(zI,"KVector",8);M(74,68,{3:1,4:1,20:1,28:1,52:1,14:1,68:1,15:1,74:1,414:1},Hu,hR,kUt),l.Pc=function(){return Aon(this)},l.Jf=function(e){var n,r,s,o,h,d;s=dy(e,`,|;|\\(|\\)|\\[|\\]|\\{|\\}| | | -`),Nh(this);try{for(r=0,h=0,o=0,d=0;r0&&(h%2==0?o=cy(s[r]):d=cy(s[r]),h>0&&h%2!=0&&pi(this,new je(o,d)),++h),++r}catch(w){throw w=os(w),Et(w,127)?(n=w,et(new Bn("The given string does not match the expected format for vectors."+n))):et(w)}},l.Ib=function(){var e,n,r;for(e=new jl("("),n=gi(this,0);n.b!=n.d.c;)r=u(di(n),8),ni(e,r.a+","+r.b),n.b!=n.d.c&&(e.a+="; ");return(e.a+=")",e).a};var eSt=N(zI,"KVectorChain",74);M(248,22,{3:1,35:1,22:1,248:1},YT);var $ht,_G,CG,jO,$O,SG,nSt=Xr(zh,"Alignment",248,ti,kin,sZe),Gye;M(979,1,jh,qJ),l.Qe=function(e){nue(e)};var rSt,zht,Uye,iSt,sSt,Wye,aSt,Kye,Yye,oSt,cSt,Xye;N(zh,"BoxLayouterOptions",979),M(980,1,{},mZ),l.$e=function(){var e;return e=new _Z,e},l._e=function(e){},N(zh,"BoxLayouterOptions/BoxFactory",980),M(291,22,{3:1,35:1,22:1,291:1},XT);var zO,qht,qO,HO,VO,Hht,Vht=Xr(zh,"ContentAlignment",291,ti,xin,aZe),Qye;M(684,1,jh,kp),l.Qe=function(e){an(e,new Xe(rn(nn(sn(Ze(en(Je(tn(new Ve,e1e),""),"Layout Algorithm"),"Select a specific layout algorithm."),(Rg(),T9)),Me),on((n1(),Un))))),an(e,new Xe(rn(nn(sn(Ze(en(Je(tn(new Ve,n1e),""),"Resolved Layout Algorithm"),"Meta data associated with the selected algorithm."),X1),U4n),on(Un)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,Kxt),""),"Alignment"),"Alignment of the selected node relative to other nodes; the exact meaning depends on the used algorithm."),uSt),ks),nSt),on(fa)))),an(e,new Xe(rn(nn(sn(Ze(en(Je(tn(new Ve,px),""),"Aspect Ratio"),"The desired aspect ratio of the drawing, that is the quotient of width by height."),Uo),ka),on(Un)))),an(e,new Xe(rn(nn(sn(Ze(en(Je(tn(new Ve,qkt),""),"Bend Points"),"A fixed list of bend points for the edge. This is used by the 'Fixed Layout' algorithm to specify a pre-defined routing for an edge. The vector chain must include the source point, any bend points, and the target point, so it must have at least two points."),X1),eSt),on(Bd)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,Jq),""),"Content Alignment"),"Specifies how the content of a node are aligned. Each node can individually control the alignment of its contents. I.e. if a node should be aligned top left in its parent node, the parent node should specify that option."),hSt),Rx),Vht),on(Un)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,WI),""),"Debug Mode"),"Whether additional debug information shall be generated."),(Rn(),!1)),qa),Zs),on(Un)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,Qxt),""),D6t),"Overall direction of edges: horizontal (right / left) or vertical (down / up)."),fSt),ks),zS),on(Un)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,GI),""),"Edge Routing"),"What kind of edge routing style should be applied for the content of a parent node. Algorithms may also set this option to single edges in order to mark them as splines. The bend point list of edges with this option set to SPLINES must be interpreted as control points for a piecewise cubic spline."),pSt),ks),rft),on(Un)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,sH),""),"Expand Nodes"),"If active, nodes are expanded to fill the area of their parent."),!1),qa),Zs),on(Un)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,Zq),""),"Hierarchy Handling"),"Determines whether separate layout runs are triggered for different compound nodes in a hierarchical graph. Setting a node's hierarchy handling to `INCLUDE_CHILDREN` will lay out that node and all of its descendants in a single layout run, until a descendant is encountered which has its hierarchy handling set to `SEPARATE_CHILDREN`. In general, `SEPARATE_CHILDREN` will ensure that a new layout run is triggered for a node with that setting. Including multiple levels of hierarchy in a single layout run may allow cross-hierarchical edges to be laid out properly. If the root node is set to `INHERIT` (or not set at all), the default behavior is `SEPARATE_CHILDREN`."),mSt),ks),iAt),Zi(Un,ct(ot(Xg,1),se,175,0,[fa]))))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,pw),""),"Padding"),"The padding to be left to a parent element's border when placing child elements. This can also serve as an output option of a layout algorithm if node size calculation is setup appropriately."),LSt),X1),l9t),Zi(Un,ct(ot(Xg,1),se,175,0,[fa]))))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,jI),""),"Interactive"),"Whether the algorithm should be run in interactive mode for the content of a parent node. What this means exactly depends on how the specific algorithm interprets this option. Usually in the interactive mode algorithms try to modify the current layout as little as possible."),!1),qa),Zs),on(Un)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,rct),""),"interactive Layout"),"Whether the graph should be changeable interactively and by setting constraints"),!1),qa),Zs),on(Un)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,MC),""),"Omit Node Micro Layout"),"Node micro layout comprises the computation of node dimensions (if requested), the placement of ports and their labels, and the placement of node labels. The functionality is implemented independent of any specific layout algorithm and shouldn't have any negative impact on the layout algorithm's performance itself. Yet, if any unforeseen behavior occurs, this option allows to deactivate the micro layout."),!1),qa),Zs),on(Un)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,kot),""),"Port Constraints"),"Defines constraints of the position of the ports of a node."),NSt),ks),oAt),on(fa)))),an(e,new Xe(rn(nn(sn(Ze(en(Je(tn(new Ve,tH),""),"Position"),"The position of a node, port, or label. This is used by the 'Fixed Layout' algorithm to specify a pre-defined position."),X1),sa),Zi(fa,ct(ot(Xg,1),se,175,0,[Rb,Yg]))))),an(e,new Xe(rn(nn(sn(Ze(en(Je(tn(new Ve,RI),""),"Priority"),"Defines the priority of an object; its meaning depends on the specific layout algorithm and the context where it is used."),Lc),to),Zi(fa,ct(ot(Xg,1),se,175,0,[Bd]))))),an(e,new Xe(rn(nn(sn(Ze(en(Je(tn(new Ve,Nq),""),"Randomization Seed"),"Seed used for pseudo-random number generators to control the layout algorithm. If the value is 0, the seed shall be determined pseudo-randomly (e.g. from the system time)."),Lc),to),on(Un)))),an(e,new Xe(rn(nn(sn(Ze(en(Je(tn(new Ve,LC),""),"Separate Connected Components"),"Whether each connected component should be processed separately."),qa),Zs),on(Un)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,akt),""),"Junction Points"),"This option is not used as option, but as output of the layout algorithms. It is attached to edges and determines the points where junction symbols should be drawn in order to represent hyperedges with orthogonal routing. Whether such points are computed depends on the chosen layout algorithm and edge routing style. The points are put into the vector chain with no specific order."),xSt),X1),eSt),on(Bd)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,ukt),""),"Comment Box"),"Whether the node should be regarded as a comment box instead of a regular node. In that case its placement should be similar to how labels are handled. Any edges incident to a comment box specify to which graph elements the comment is related."),!1),qa),Zs),on(fa)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,lkt),""),"Hypernode"),"Whether the node should be handled as a hypernode."),!1),qa),Zs),on(fa)))),an(e,new Xe(rn(nn(sn(Ze(en(Je(tn(new Ve,y4n),""),"Label Manager"),"Label managers can shorten labels upon a layout algorithm's request."),X1),Q4n),Zi(Un,ct(ot(Xg,1),se,175,0,[Yg]))))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,fkt),""),"Margins"),"Margins define additional space around the actual bounds of a graph element. For instance, ports or labels being placed on the outside of a node's border might introduce such a margin. The margin is used to guarantee non-overlap of other graph elements with those ports or labels."),kSt),X1),u9t),on(fa)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,Uxt),""),"No Layout"),"No layout is done for the associated element. This is used to mark parts of a diagram to avoid their inclusion in the layout graph, or to mark parts of the layout graph to prevent layout engines from processing them. If you wish to exclude the contents of a compound node from automatic layout, while the node itself is still considered on its own layer, use the 'Fixed Layout' algorithm for that node."),!1),qa),Zs),Zi(fa,ct(ot(Xg,1),se,175,0,[Bd,Rb,Yg]))))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,r1e),""),"Scale Factor"),"The scaling factor to be applied to the corresponding node in recursive layout. It causes the corresponding node's size to be adjusted, and its ports and labels to be sized and placed accordingly after the layout of that node has been determined (and before the node itself and its siblings are arranged). The scaling is not reverted afterwards, so the resulting layout graph contains the adjusted size and position data. This option is currently not supported if 'Layout Hierarchy' is set."),1),Uo),ka),on(fa)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,i1e),""),"Animate"),"Whether the shift from the old layout to the new computed layout shall be animated."),!0),qa),Zs),on(Un)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,s1e),""),"Animation Time Factor"),"Factor for computation of animation time. The higher the value, the longer the animation time. If the value is 0, the resulting time is always equal to the minimum defined by 'Minimal Animation Time'."),pe(100)),Lc),to),on(Un)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,a1e),""),"Layout Ancestors"),"Whether the hierarchy levels on the path from the selected element to the root of the diagram shall be included in the layout process."),!1),qa),Zs),on(Un)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,o1e),""),"Maximal Animation Time"),"The maximal time for animations, in milliseconds."),pe(4e3)),Lc),to),on(Un)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,c1e),""),"Minimal Animation Time"),"The minimal time for animations, in milliseconds."),pe(400)),Lc),to),on(Un)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,u1e),""),"Progress Bar"),"Whether a progress bar shall be displayed during layout computations."),!1),qa),Zs),on(Un)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,l1e),""),"Validate Graph"),"Whether the graph shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user."),!1),qa),Zs),on(Un)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,h1e),""),"Validate Options"),"Whether layout options shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user."),!0),qa),Zs),on(Un)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,f1e),""),"Zoom to Fit"),"Whether the zoom level shall be set to view the whole diagram after layout."),!1),qa),Zs),on(Un)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,zkt),"box"),"Box Layout Mode"),"Configures the packing mode used by the {@link BoxLayoutProvider}. If SIMPLE is not required (neither priorities are used nor the interactive mode), GROUP_DEC can improve the packing and decrease the area. GROUP_MIXED and GROUP_INC may, in very specific scenarios, work better."),lSt),ks),dAt),on(Un)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,Nxt),V1),"Comment Comment Spacing"),"Spacing to be preserved between a comment box and other comment boxes connected to the same node. The space left between comment boxes of different nodes is controlled by the node-node spacing."),10),Uo),ka),on(Un)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,Pxt),V1),"Comment Node Spacing"),"Spacing to be preserved between a node and its connected comment boxes. The space left between a node and the comments of another node is controlled by the node-node spacing."),10),Uo),ka),on(Un)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,bot),V1),"Components Spacing"),"Spacing to be preserved between pairs of connected components. This option is only relevant if 'separateConnectedComponents' is activated."),20),Uo),ka),on(Un)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,Fxt),V1),"Edge Spacing"),"Spacing to be preserved between any two edges. Note that while this can somewhat easily be satisfied for the segments of orthogonally drawn edges, it is harder for general polylines or splines."),10),Uo),ka),on(Un)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,xot),V1),"Edge Label Spacing"),"The minimal distance to be preserved between a label and the edge it is associated with. Note that the placement of a label is influenced by the 'edgelabels.placement' option."),2),Uo),ka),on(Un)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,Bxt),V1),"Edge Node Spacing"),"Spacing to be preserved between nodes and edges."),10),Uo),ka),on(Un)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,Rxt),V1),"Label Spacing"),"Determines the amount of space to be left between two labels of the same graph element."),0),Uo),ka),on(Un)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,zxt),V1),"Label Node Spacing"),"Spacing to be preserved between labels and the border of node they are associated with. Note that the placement of a label is influenced by the 'nodelabels.placement' option."),5),Uo),ka),on(Un)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,jxt),V1),"Horizontal spacing between Label and Port"),"Horizontal spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option."),1),Uo),ka),on(Un)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,$xt),V1),"Vertical spacing between Label and Port"),"Vertical spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option."),1),Uo),ka),on(Un)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,yy),V1),"Node Spacing"),"The minimal distance to be preserved between each two nodes."),20),Uo),ka),on(Un)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,qxt),V1),"Node Self Loop Spacing"),"Spacing to be preserved between a node and its self loops."),10),Uo),ka),on(Un)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,Hxt),V1),"Port Spacing"),"Spacing between pairs of ports of the same node."),10),Uo),ka),Zi(Un,ct(ot(Xg,1),se,175,0,[fa]))))),an(e,new Xe(rn(nn(sn(Ze(en(Je(tn(new Ve,Vxt),V1),"Individual Spacing"),"Allows to specify individual spacing values for graph elements that shall be different from the value specified for the element's parent."),X1),I3e),Zi(fa,ct(ot(Xg,1),se,175,0,[Bd,Rb,Yg]))))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,dkt),V1),"Additional Port Space"),"Additional space around the sets of ports on each node side. For each side of a node, this option can reserve additional space before and after the ports on each side. For example, a top spacing of 20 makes sure that the first port on the western and eastern side is 20 units away from the northern border."),VSt),X1),u9t),on(Un)))),an(e,new Xe(rn(nn(sn(Ze(en(Je(tn(new Ve,nct),p1e),"Layout Partition"),"Partition to which the node belongs. This requires Layout Partitioning to be active. Nodes with lower partition IDs will appear to the left of nodes with higher partition IDs (assuming a left-to-right layout direction)."),Lc),to),Zi(Un,ct(ot(Xg,1),se,175,0,[fa]))))),ya(e,nct,ect,s3e),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,ect),p1e),"Layout Partitioning"),"Whether to activate partitioned layout. This will allow to group nodes through the Layout Partition option. a pair of nodes with different partition indices is then placed such that the node with lower index is placed to the left of the other node (with left-to-right layout direction). Depending on the layout algorithm, this may only be guaranteed to work if all nodes have a layout partition configured, or at least if edges that cross partitions are not part of a partition-crossing cycle."),MSt),qa),Zs),on(Un)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,Zxt),b1e),"Node Label Padding"),"Define padding for node labels that are placed inside of a node."),TSt),X1),l9t),on(Un)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,R7),b1e),"Node Label Placement"),"Hints for where node labels are to be placed; if empty, the node label's position is not modified."),_St),Rx),_o),Zi(fa,ct(ot(Xg,1),se,175,0,[Yg]))))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,ekt),oH),"Port Alignment"),"Defines the default port distribution for a node. May be overridden for each side individually."),ISt),ks),GS),on(fa)))),an(e,new Xe(rn(nn(sn(Ze(en(Je(tn(new Ve,nkt),oH),"Port Alignment (North)"),"Defines how ports on the northern side are placed, overriding the node's general port alignment."),ks),GS),on(fa)))),an(e,new Xe(rn(nn(sn(Ze(en(Je(tn(new Ve,rkt),oH),"Port Alignment (South)"),"Defines how ports on the southern side are placed, overriding the node's general port alignment."),ks),GS),on(fa)))),an(e,new Xe(rn(nn(sn(Ze(en(Je(tn(new Ve,ikt),oH),"Port Alignment (West)"),"Defines how ports on the western side are placed, overriding the node's general port alignment."),ks),GS),on(fa)))),an(e,new Xe(rn(nn(sn(Ze(en(Je(tn(new Ve,skt),oH),"Port Alignment (East)"),"Defines how ports on the eastern side are placed, overriding the node's general port alignment."),ks),GS),on(fa)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,L4),kct),"Node Size Constraints"),"What should be taken into account when calculating a node's size. Empty size constraints specify that a node's size is already fixed and should not be changed."),CSt),Rx),KS),on(fa)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,bx),kct),"Node Size Options"),"Options modifying the behavior of the size constraints set on a node. Each member of the set specifies something that should be taken into account when calculating node sizes. The empty set corresponds to no further modifications."),ASt),Rx),uAt),on(fa)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,vx),kct),"Node Size Minimum"),"The minimal size to which a node can be reduced."),SSt),X1),sa),on(fa)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,tct),kct),"Fixed Graph Size"),"By default, the fixed layout provider will enlarge a graph until it is large enough to contain its children. If this option is set, it won't do so."),!1),qa),Zs),on(Un)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,okt),Jot),"Edge Label Placement"),"Gives a hint on where to put edge labels."),dSt),ks),USt),on(Yg)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,Pq),Jot),"Inline Edge Labels"),"If true, an edge label is placed directly on its edge. May only apply to center edge labels. This kind of label placement is only advisable if the label's rendering is such that it is not crossed by its edge and thus stays legible."),!1),qa),Zs),on(Yg)))),an(e,new Xe(rn(nn(sn(Ze(en(Je(tn(new Ve,x4n),"font"),"Font Name"),"Font name used for a label."),T9),Me),on(Yg)))),an(e,new Xe(rn(nn(sn(Ze(en(Je(tn(new Ve,d1e),"font"),"Font Size"),"Font size used for a label."),Lc),to),on(Yg)))),an(e,new Xe(rn(nn(sn(Ze(en(Je(tn(new Ve,hkt),Ect),"Port Anchor Offset"),"The offset to the port position where connections shall be attached."),X1),sa),on(Rb)))),an(e,new Xe(rn(nn(sn(Ze(en(Je(tn(new Ve,ckt),Ect),"Port Index"),"The index of a port in the fixed order around a node. The order is assumed as clockwise, starting with the leftmost port on the top side. This option must be set if 'Port Constraints' is set to FIXED_ORDER and no specific positions are given for the ports. Additionally, the option 'Port Side' must be defined in this case."),Lc),to),on(Rb)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,Wxt),Ect),"Port Side"),"The side of a node on which a port is situated. This option must be set if 'Port Constraints' is set to FIXED_SIDE or FIXED_ORDER and no specific positions are given for the ports."),BSt),ks),co),on(Rb)))),an(e,new Xe(rn(nn(sn(Ze(en(Je(tn(new Ve,Gxt),Ect),"Port Border Offset"),"The offset of ports on the node border. With a positive offset the port is moved outside of the node, while with a negative offset the port is moved towards the inside. An offset of 0 means that the port is placed directly on the node border, i.e. if the port side is north, the port's south border touches the nodes's north border; if the port side is east, the port's west border touches the nodes's east border; if the port side is south, the port's north border touches the node's south border; if the port side is west, the port's east border touches the node's west border."),Uo),ka),on(Rb)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,j7),Hkt),"Port Label Placement"),"Decides on a placement method for port labels; if empty, the node label's position is not modified."),PSt),Rx),PG),on(fa)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,Jxt),Hkt),"Port Labels Next to Port"),"Use 'portLabels.placement': NEXT_TO_PORT_OF_POSSIBLE."),!1),qa),Zs),on(fa)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,tkt),Hkt),"Treat Port Labels as Group"),"If this option is true (default), the labels of a port will be treated as a group when it comes to centering them next to their port. If this option is false, only the first label will be centered next to the port, with the others being placed below. This only applies to labels of eastern and western ports and will have no effect if labels are not placed next to their port."),!0),qa),Zs),on(fa)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,Yxt),v1e),"Activate Inside Self Loops"),"Whether this node allows to route self loops inside of it instead of around it. If set to true, this will make the node a compound node if it isn't already, and will require the layout algorithm to support compound nodes with hierarchical ports."),!1),qa),Zs),on(fa)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,Xxt),v1e),"Inside Self Loop"),"Whether a self loop should be routed inside a node instead of around that node."),!1),qa),Zs),on(Bd)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,vot),"edge"),"Edge Thickness"),"The thickness of an edge. This is a hint on the line width used to draw an edge, possibly requiring more space to be reserved for it."),1),Uo),ka),on(Bd)))),an(e,new Xe(rn(nn(sn(yn(Ze(en(Je(tn(new Ve,g1e),"edge"),"Edge Type"),"The type of an edge. This is usually used for UML class diagrams, where associations must be handled differently from generalizations."),vSt),ks),ZSt),on(Bd)))),RT(e,new $6(IT(Jk(Zk(new bm,Xn),"Layered"),'The layer-based method was introduced by Sugiyama, Tagawa and Toda in 1981. It emphasizes the direction of edges by pointing as many edges as possible into the same direction. The nodes are arranged in layers, which are sometimes called "hierarchies", and then reordered such that the number of edge crossings is minimized. Afterwards, concrete coordinates are computed for the nodes and edge bend points.'))),RT(e,new $6(IT(Jk(Zk(new bm,"org.eclipse.elk.orthogonal"),"Orthogonal"),`Orthogonal methods that follow the "topology-shape-metrics" approach by Batini, Nardelli and Tamassia '86. The first phase determines the topology of the drawing by applying a planarization technique, which results in a planar representation of the graph. The orthogonal shape is computed in the second phase, which aims at minimizing the number of edge bends, and is called orthogonalization. The third phase leads to concrete coordinates for nodes and edge bend points by applying a compaction method, thus defining the metrics.`))),RT(e,new $6(IT(Jk(Zk(new bm,Xl),"Force"),"Layout algorithms that follow physical analogies by simulating a system of attractive and repulsive forces. The first successful method of this kind was proposed by Eades in 1984."))),RT(e,new $6(IT(Jk(Zk(new bm,"org.eclipse.elk.circle"),"Circle"),"Circular layout algorithms emphasize cycles or biconnected components of a graph by arranging them in circles. This is useful if a drawing is desired where such components are clearly grouped, or where cycles are shown as prominent OPTIONS of the graph."))),RT(e,new $6(IT(Jk(Zk(new bm,zfe),"Tree"),"Specialized layout methods for trees, i.e. acyclic graphs. The regular structure of graphs that have no undirected cycles can be emphasized using an algorithm of this type."))),RT(e,new $6(IT(Jk(Zk(new bm,"org.eclipse.elk.planar"),"Planar"),"Algorithms that require a planar or upward planar graph. Most of these algorithms are theoretically interesting, but not practically usable."))),RT(e,new $6(IT(Jk(Zk(new bm,Md),"Radial"),"Radial layout algorithms usually position the nodes of the graph on concentric circles."))),zce((new DB,e)),nue((new qJ,e)),vce((new IB,e))};var jS,Zye,uSt,jx,Jye,t3e,lSt,e3e,AG,hSt,GO,Fw,fSt,Ght,Uht,dSt,gSt,pSt,bSt,vSt,wSt,r5,mSt,n3e,UO,Wht,LG,ySt,i5,xSt,WO,kSt,ESt,TSt,s5,_St,jb,CSt,MG,a5,SSt,m2,ASt,DG,KO,$b,LSt,r3e,MSt,i3e,s3e,DSt,ISt,Kht,Yht,Xht,Qht,OSt,kl,$S,NSt,Zht,Jht,Uy,PSt,FSt,o5,BSt,$x,IG,tft,_9,a3e,eft,o3e,c3e,RSt,u3e,jSt,l3e,zx,$St,OG,zSt,qSt,zb,h3e,HSt,VSt,GSt;N(zh,"CoreOptions",684),M(103,22,{3:1,35:1,22:1,103:1},AM);var X0,Wh,Af,h0,Q0,zS=Xr(zh,D6t,103,ti,Vrn,uZe),f3e;M(272,22,{3:1,35:1,22:1,272:1},Let);var C9,Wy,S9,USt=Xr(zh,"EdgeLabelPlacement",272,ti,Tnn,lZe),d3e;M(218,22,{3:1,35:1,22:1,218:1},jR);var A9,YO,qx,nft,rft=Xr(zh,"EdgeRouting",218,ti,brn,hZe),g3e;M(312,22,{3:1,35:1,22:1,312:1},QT);var WSt,KSt,YSt,XSt,ift,QSt,ZSt=Xr(zh,"EdgeType",312,ti,Min,fZe),p3e;M(977,1,jh,DB),l.Qe=function(e){zce(e)};var JSt,tAt,eAt,nAt,b3e,rAt,qS;N(zh,"FixedLayouterOptions",977),M(978,1,{},FL),l.$e=function(){var e;return e=new EZ,e},l._e=function(e){},N(zh,"FixedLayouterOptions/FixedFactory",978),M(334,22,{3:1,35:1,22:1,334:1},Met);var Qg,NG,HS,iAt=Xr(zh,"HierarchyHandling",334,ti,Enn,dZe),v3e;M(285,22,{3:1,35:1,22:1,285:1},$R);var f0,y2,XO,QO,w3e=Xr(zh,"LabelSide",285,ti,prn,gZe),m3e;M(93,22,{3:1,35:1,22:1,93:1},$3);var Z0,Lf,Kh,Mf,th,Df,Yh,d0,If,_o=Xr(zh,"NodeLabelPlacement",93,ti,Osn,pZe),y3e;M(249,22,{3:1,35:1,22:1,249:1},LM);var sAt,VS,x2,aAt,ZO,GS=Xr(zh,"PortAlignment",249,ti,Grn,bZe),x3e;M(98,22,{3:1,35:1,22:1,98:1},ZT);var qb,eu,g0,L9,Q1,k2,oAt=Xr(zh,"PortConstraints",98,ti,din,vZe),k3e;M(273,22,{3:1,35:1,22:1,273:1},JT);var US,WS,J0,JO,E2,Hx,PG=Xr(zh,"PortLabelPlacement",273,ti,Lin,wZe),E3e;M(61,22,{3:1,35:1,22:1,61:1},MM);var Wn,Fn,_h,Ch,Fu,vu,Z1,Of,hl,Ju,nu,fl,Bu,Ru,Nf,eh,nh,Xh,Lr,fc,jn,co=Xr(zh,"PortSide",61,ti,zrn,xZe),T3e;M(981,1,jh,IB),l.Qe=function(e){vce(e)};var _3e,C3e,cAt,S3e,A3e;N(zh,"RandomLayouterOptions",981),M(982,1,{},LZ),l.$e=function(){var e;return e=new DZ,e},l._e=function(e){},N(zh,"RandomLayouterOptions/RandomFactory",982),M(374,22,{3:1,35:1,22:1,374:1},zR);var Ky,tN,eN,Hb,KS=Xr(zh,"SizeConstraint",374,ti,grn,mZe),L3e;M(259,22,{3:1,35:1,22:1,259:1},z3);var nN,FG,M9,sft,rN,YS,BG,RG,jG,uAt=Xr(zh,"SizeOptions",259,ti,$sn,yZe),M3e;M(370,1,{1949:1},Yk),l.b=!1,l.c=0,l.d=-1,l.e=null,l.f=null,l.g=-1,l.j=!1,l.k=!1,l.n=!1,l.o=0,l.q=0,l.r=0,N(Fc,"BasicProgressMonitor",370),M(972,209,xb,_Z),l.Ze=function(e,n){var r,s,o,h,d,w,k,_,L;switch(Ar(n,"Box layout",2),o=uM(xe(ze(e,(Uz(),Xye)))),h=u(ze(e,Yye),116),r=Re(Be(ze(e,iSt))),s=Re(Be(ze(e,sSt))),u(ze(e,zht),311).g){case 0:d=(w=new Uu((!e.a&&(e.a=new he(bs,e,10,11)),e.a)),pn(),ua(w,new Jjt(s)),w),k=T4t(e),_=xe(ze(e,rSt)),(_==null||(Pn(_),_<=0))&&(_=1.3),L=_3n(d,o,h,k.a,k.b,r,(Pn(_),_)),hw(e,L.a,L.b,!1,!0);break;default:xmn(e,o,h,r)}br(n)},N(Fc,"BoxLayoutProvider",972),M(973,1,Ui,Jjt),l.ue=function(e,n){return Hpn(this,u(e,33),u(n,33))},l.Fb=function(e){return this===e},l.ve=function(){return new dt(this)},l.a=!1,N(Fc,"BoxLayoutProvider/1",973),M(157,1,{157:1},B$,xUt),l.Ib=function(){return this.c?E5t(this.c):Jp(this.b)},N(Fc,"BoxLayoutProvider/Group",157),M(311,22,{3:1,35:1,22:1,311:1},qR);var lAt,hAt,fAt,aft,dAt=Xr(Fc,"BoxLayoutProvider/PackingMode",311,ti,vrn,kZe),D3e;M(974,1,Ui,CZ),l.ue=function(e,n){return Utn(u(e,157),u(n,157))},l.Fb=function(e){return this===e},l.ve=function(){return new dt(this)},N(Fc,"BoxLayoutProvider/lambda$0$Type",974),M(975,1,Ui,jF),l.ue=function(e,n){return jtn(u(e,157),u(n,157))},l.Fb=function(e){return this===e},l.ve=function(){return new dt(this)},N(Fc,"BoxLayoutProvider/lambda$1$Type",975),M(976,1,Ui,SZ),l.ue=function(e,n){return $tn(u(e,157),u(n,157))},l.Fb=function(e){return this===e},l.ve=function(){return new dt(this)},N(Fc,"BoxLayoutProvider/lambda$2$Type",976),M(1365,1,{831:1},AZ),l.qg=function(e,n){return ER(),!Et(n,160)||Dqt((X6(),u(e,160)),n)},N(Fc,"ElkSpacings/AbstractSpacingsBuilder/lambda$0$Type",1365),M(1366,1,Qn,t$t),l.td=function(e){Mon(this.a,u(e,146))},N(Fc,"ElkSpacings/AbstractSpacingsBuilder/lambda$1$Type",1366),M(1367,1,Qn,TZ),l.td=function(e){u(e,94),ER()},N(Fc,"ElkSpacings/AbstractSpacingsBuilder/lambda$2$Type",1367),M(1371,1,Qn,e$t),l.td=function(e){ean(this.a,u(e,94))},N(Fc,"ElkSpacings/AbstractSpacingsBuilder/lambda$3$Type",1371),M(1369,1,_i,vVt),l.Mb=function(e){return bon(this.a,this.b,u(e,146))},N(Fc,"ElkSpacings/AbstractSpacingsBuilder/lambda$4$Type",1369),M(1368,1,_i,wVt),l.Mb=function(e){return OYe(this.a,this.b,u(e,831))},N(Fc,"ElkSpacings/AbstractSpacingsBuilder/lambda$5$Type",1368),M(1370,1,Qn,mVt),l.td=function(e){OJe(this.a,this.b,u(e,146))},N(Fc,"ElkSpacings/AbstractSpacingsBuilder/lambda$6$Type",1370),M(935,1,{},kZ),l.Kb=function(e){return mGt(e)},l.Fb=function(e){return this===e},N(Fc,"ElkUtil/lambda$0$Type",935),M(936,1,Qn,yVt),l.td=function(e){G0n(this.a,this.b,u(e,79))},l.a=0,l.b=0,N(Fc,"ElkUtil/lambda$1$Type",936),M(937,1,Qn,xVt),l.td=function(e){GUe(this.a,this.b,u(e,202))},l.a=0,l.b=0,N(Fc,"ElkUtil/lambda$2$Type",937),M(938,1,Qn,kVt),l.td=function(e){FKe(this.a,this.b,u(e,137))},l.a=0,l.b=0,N(Fc,"ElkUtil/lambda$3$Type",938),M(939,1,Qn,n$t),l.td=function(e){YZe(this.a,u(e,469))},N(Fc,"ElkUtil/lambda$4$Type",939),M(342,1,{35:1,342:1},xUe),l.wd=function(e){return lYe(this,u(e,236))},l.Fb=function(e){var n;return Et(e,342)?(n=u(e,342),this.a==n.a):!1},l.Hb=function(){return Ms(this.a)},l.Ib=function(){return this.a+" (exclusive)"},l.a=0,N(Fc,"ExclusiveBounds/ExclusiveLowerBound",342),M(1138,209,xb,EZ),l.Ze=function(e,n){var r,s,o,h,d,w,k,_,L,F,q,G,W,Z,bt,Lt,Ct,Pt,Yt,ce,Se,Ge,Qe;for(Ar(n,"Fixed Layout",1),h=u(ze(e,(Ti(),gSt)),218),F=0,q=0,Ct=new lr((!e.a&&(e.a=new he(bs,e,10,11)),e.a));Ct.e!=Ct.i.gc();){for(bt=u(kr(Ct),33),Qe=u(ze(bt,(oz(),qS)),8),Qe&&(S1(bt,Qe.a,Qe.b),u(ze(bt,tAt),174).Hc((Fl(),Ky))&&(G=u(ze(bt,nAt),8),G.a>0&&G.b>0&&hw(bt,G.a,G.b,!0,!0))),F=b.Math.max(F,bt.i+bt.g),q=b.Math.max(q,bt.j+bt.f),_=new lr((!bt.n&&(bt.n=new he(ec,bt,1,7)),bt.n));_.e!=_.i.gc();)w=u(kr(_),137),Qe=u(ze(w,qS),8),Qe&&S1(w,Qe.a,Qe.b),F=b.Math.max(F,bt.i+w.i+w.g),q=b.Math.max(q,bt.j+w.j+w.f);for(ce=new lr((!bt.c&&(bt.c=new he(El,bt,9,9)),bt.c));ce.e!=ce.i.gc();)for(Yt=u(kr(ce),118),Qe=u(ze(Yt,qS),8),Qe&&S1(Yt,Qe.a,Qe.b),Se=bt.i+Yt.i,Ge=bt.j+Yt.j,F=b.Math.max(F,Se+Yt.g),q=b.Math.max(q,Ge+Yt.f),k=new lr((!Yt.n&&(Yt.n=new he(ec,Yt,1,7)),Yt.n));k.e!=k.i.gc();)w=u(kr(k),137),Qe=u(ze(w,qS),8),Qe&&S1(w,Qe.a,Qe.b),F=b.Math.max(F,Se+w.i+w.g),q=b.Math.max(q,Ge+w.j+w.f);for(o=new pr(mr(H0(bt).a.Kc(),new H));Zr(o);)r=u(qr(o),79),L=Ile(r),F=b.Math.max(F,L.a),q=b.Math.max(q,L.b);for(s=new pr(mr(hI(bt).a.Kc(),new H));Zr(s);)r=u(qr(s),79),gs(e0(r))!=e&&(L=Ile(r),F=b.Math.max(F,L.a),q=b.Math.max(q,L.b))}if(h==(z0(),A9))for(Lt=new lr((!e.a&&(e.a=new he(bs,e,10,11)),e.a));Lt.e!=Lt.i.gc();)for(bt=u(kr(Lt),33),s=new pr(mr(H0(bt).a.Kc(),new H));Zr(s);)r=u(qr(s),79),d=qvn(r),d.b==0?Mo(r,i5,null):Mo(r,i5,d);Re(Be(ze(e,(oz(),eAt))))||(Pt=u(ze(e,b3e),116),Z=F+Pt.b+Pt.c,W=q+Pt.d+Pt.a,hw(e,Z,W,!0,!0)),br(n)},N(Fc,"FixedLayoutProvider",1138),M(373,134,{3:1,414:1,373:1,94:1,134:1},il,YJt),l.Jf=function(e){var n,r,s,o,h,d,w,k,_;if(e)try{for(k=dy(e,";,;"),h=k,d=0,w=h.length;d>16&Ns|n^s<<16},l.Kc=function(){return new r$t(this)},l.Ib=function(){return this.a==null&&this.b==null?"pair(null,null)":this.a==null?"pair(null,"+Jo(this.b)+")":this.b==null?"pair("+Jo(this.a)+",null)":"pair("+Jo(this.a)+","+Jo(this.b)+")"},N(Fc,"Pair",46),M(983,1,va,r$t),l.Nb=function(e){Da(this,e)},l.Ob=function(){return!this.c&&(!this.b&&this.a.a!=null||this.a.b!=null)},l.Pb=function(){if(!this.c&&!this.b&&this.a.a!=null)return this.b=!0,this.a.a;if(!this.c&&this.a.b!=null)return this.c=!0,this.a.b;throw et(new _c)},l.Qb=function(){throw this.c&&this.a.b!=null?this.a.b=null:this.b&&this.a.a!=null&&(this.a.a=null),et(new qu)},l.b=!1,l.c=!1,N(Fc,"Pair/1",983),M(448,1,{448:1},OYt),l.Fb=function(e){return Gc(this.a,u(e,448).a)&&Gc(this.c,u(e,448).c)&&Gc(this.d,u(e,448).d)&&Gc(this.b,u(e,448).b)},l.Hb=function(){return cz(ct(ot(nr,1),De,1,5,[this.a,this.c,this.d,this.b]))},l.Ib=function(){return"("+this.a+ao+this.c+ao+this.d+ao+this.b+")"},N(Fc,"Quadruple",448),M(1126,209,xb,DZ),l.Ze=function(e,n){var r,s,o,h,d;if(Ar(n,"Random Layout",1),(!e.a&&(e.a=new he(bs,e,10,11)),e.a).i==0){br(n);return}h=u(ze(e,(t3t(),S3e)),19),h&&h.a!=0?o=new p$(h.a):o=new Lit,r=uM(xe(ze(e,_3e))),d=uM(xe(ze(e,A3e))),s=u(ze(e,C3e),116),n3n(e,o,r,d,s),br(n)},N(Fc,"RandomLayoutProvider",1126);var P3e;M(553,1,{}),l.qf=function(){return new je(this.f.i,this.f.j)},l.We=function(e){return sXt(e,(Ti(),kl))?ze(this.f,F3e):ze(this.f,e)},l.rf=function(){return new je(this.f.g,this.f.f)},l.sf=function(){return this.g},l.Xe=function(e){return eb(this.f,e)},l.tf=function(e){Du(this.f,e.a),Iu(this.f,e.b)},l.uf=function(e){Kv(this.f,e.a),Wv(this.f,e.b)},l.vf=function(e){this.g=e},l.g=0;var F3e;N($C,"ElkGraphAdapters/AbstractElkGraphElementAdapter",553),M(554,1,{839:1},QB),l.wf=function(){var e,n;if(!this.b)for(this.b=h$(Hj(this.a).i),n=new lr(Hj(this.a));n.e!=n.i.gc();)e=u(kr(n),137),ue(this.b,new Vtt(e));return this.b},l.b=null,N($C,"ElkGraphAdapters/ElkEdgeAdapter",554),M(301,553,{},_m),l.xf=function(){return Oie(this)},l.a=null,N($C,"ElkGraphAdapters/ElkGraphAdapter",301),M(630,553,{181:1},Vtt),N($C,"ElkGraphAdapters/ElkLabelAdapter",630),M(629,553,{680:1},Get),l.wf=function(){return ihn(this)},l.Af=function(){var e;return e=u(ze(this.f,(Ti(),WO)),142),!e&&(e=new TT),e},l.Cf=function(){return shn(this)},l.Ef=function(e){var n;n=new ant(e),Mo(this.f,(Ti(),WO),n)},l.Ff=function(e){Mo(this.f,(Ti(),$b),new Ybt(e))},l.yf=function(){return this.d},l.zf=function(){var e,n;if(!this.a)for(this.a=new le,n=new pr(mr(hI(u(this.f,33)).a.Kc(),new H));Zr(n);)e=u(qr(n),79),ue(this.a,new QB(e));return this.a},l.Bf=function(){var e,n;if(!this.c)for(this.c=new le,n=new pr(mr(H0(u(this.f,33)).a.Kc(),new H));Zr(n);)e=u(qr(n),79),ue(this.c,new QB(e));return this.c},l.Df=function(){return Yj(u(this.f,33)).i!=0||Re(Be(u(this.f,33).We((Ti(),UO))))},l.Gf=function(){Yin(this,(Lm(),P3e))},l.a=null,l.b=null,l.c=null,l.d=null,l.e=null,N($C,"ElkGraphAdapters/ElkNodeAdapter",629),M(1266,553,{838:1},I$t),l.wf=function(){return dhn(this)},l.zf=function(){var e,n;if(!this.a)for(this.a=Ud(u(this.f,118).xg().i),n=new lr(u(this.f,118).xg());n.e!=n.i.gc();)e=u(kr(n),79),ue(this.a,new QB(e));return this.a},l.Bf=function(){var e,n;if(!this.c)for(this.c=Ud(u(this.f,118).yg().i),n=new lr(u(this.f,118).yg());n.e!=n.i.gc();)e=u(kr(n),79),ue(this.c,new QB(e));return this.c},l.Hf=function(){return u(u(this.f,118).We((Ti(),o5)),61)},l.If=function(){var e,n,r,s,o,h,d,w;for(s=M1(u(this.f,118)),r=new lr(u(this.f,118).yg());r.e!=r.i.gc();)for(e=u(kr(r),79),w=new lr((!e.c&&(e.c=new Tn(Cr,e,5,8)),e.c));w.e!=w.i.gc();){if(d=u(kr(w),82),Xm(Vo(d),s))return!0;if(Vo(d)==s&&Re(Be(ze(e,(Ti(),Wht)))))return!0}for(n=new lr(u(this.f,118).xg());n.e!=n.i.gc();)for(e=u(kr(n),79),h=new lr((!e.b&&(e.b=new Tn(Cr,e,4,7)),e.b));h.e!=h.i.gc();)if(o=u(kr(h),82),Xm(Vo(o),s))return!0;return!1},l.a=null,l.b=null,l.c=null,N($C,"ElkGraphAdapters/ElkPortAdapter",1266),M(1267,1,Ui,IZ),l.ue=function(e,n){return Pbn(u(e,118),u(n,118))},l.Fb=function(e){return this===e},l.ve=function(){return new dt(this)},N($C,"ElkGraphAdapters/PortComparator",1267);var T2=ls(xh,"EObject"),D9=ls(O4,y1e),Qh=ls(O4,x1e),iN=ls(O4,k1e),sN=ls(O4,"ElkShape"),Cr=ls(O4,E1e),aa=ls(O4,Vkt),fs=ls(O4,T1e),aN=ls(xh,_1e),XS=ls(xh,"EFactory"),B3e,oft=ls(xh,C1e),u1=ls(xh,"EPackage"),da,R3e,j3e,vAt,$G,$3e,wAt,mAt,yAt,_2,z3e,q3e,ec=ls(O4,Gkt),bs=ls(O4,Ukt),El=ls(O4,Wkt);M(90,1,S1e),l.Jg=function(){return this.Kg(),null},l.Kg=function(){return null},l.Lg=function(){return this.Kg(),!1},l.Mg=function(){return!1},l.Ng=function(e){Oi(this,e)},N(xx,"BasicNotifierImpl",90),M(97,90,D1e),l.nh=function(){return Ll(this)},l.Og=function(e,n){return e},l.Pg=function(){throw et(new Gr)},l.Qg=function(e){var n;return n=bo(u(wn(this.Tg(),this.Vg()),18)),this.eh().ih(this,n.n,n.f,e)},l.Rg=function(e,n){throw et(new Gr)},l.Sg=function(e,n,r){return Yl(this,e,n,r)},l.Tg=function(){var e;return this.Pg()&&(e=this.Pg().ck(),e)?e:this.zh()},l.Ug=function(){return Ist(this)},l.Vg=function(){throw et(new Gr)},l.Wg=function(){var e,n;return n=this.ph().dk(),!n&&this.Pg().ik(n=(jT(),e=fwt(xd(this.Tg())),e==null?pft:new OM(this,e))),n},l.Xg=function(e,n){return e},l.Yg=function(e){var n;return n=e.Gj(),n?e.aj():is(this.Tg(),e)},l.Zg=function(){var e;return e=this.Pg(),e?e.fk():null},l.$g=function(){return this.Pg()?this.Pg().ck():null},l._g=function(e,n,r){return Mz(this,e,n,r)},l.ah=function(e){return D8(this,e)},l.bh=function(e,n){return Ert(this,e,n)},l.dh=function(){var e;return e=this.Pg(),!!e&&e.gk()},l.eh=function(){throw et(new Gr)},l.fh=function(){return Ez(this)},l.gh=function(e,n,r,s){return tx(this,e,n,s)},l.hh=function(e,n,r){var s;return s=u(wn(this.Tg(),n),66),s.Nj().Qj(this,this.yh(),n-this.Ah(),e,r)},l.ih=function(e,n,r,s){return Jj(this,e,n,s)},l.jh=function(e,n,r){var s;return s=u(wn(this.Tg(),n),66),s.Nj().Rj(this,this.yh(),n-this.Ah(),e,r)},l.kh=function(){return!!this.Pg()&&!!this.Pg().ek()},l.lh=function(e){return Hit(this,e)},l.mh=function(e){return kXt(this,e)},l.oh=function(e){return Wue(this,e)},l.ph=function(){throw et(new Gr)},l.qh=function(){return this.Pg()?this.Pg().ek():null},l.rh=function(){return Ez(this)},l.sh=function(e,n){Sst(this,e,n)},l.th=function(e){this.ph().hk(e)},l.uh=function(e){this.ph().kk(e)},l.vh=function(e){this.ph().jk(e)},l.wh=function(e,n){var r,s,o,h;return h=this.Zg(),h&&e&&(n=Za(h.Vk(),this,n),h.Zk(this)),s=this.eh(),s&&(Kst(this,this.eh(),this.Vg()).Bb&oo?(o=s.fh(),o&&(e?!h&&o.Zk(this):o.Yk(this))):(n=(r=this.Vg(),r>=0?this.Qg(n):this.eh().ih(this,-1-r,null,n)),n=this.Sg(null,-1,n))),this.uh(e),n},l.xh=function(e){var n,r,s,o,h,d,w,k;if(r=this.Tg(),h=is(r,e),n=this.Ah(),h>=n)return u(e,66).Nj().Uj(this,this.yh(),h-n);if(h<=-1)if(d=E4((Yu(),Pa),r,e),d){if(go(),u(d,66).Oj()||(d=z6(Bo(Pa,d))),o=(s=this.Yg(d),u(s>=0?this._g(s,!0,!0):ow(this,d,!0),153)),k=d.Zj(),k>1||k==-1)return u(u(o,215).hl(e,!1),76)}else throw et(new Bn(c2+e.ne()+Tct));else if(e.$j())return s=this.Yg(e),u(s>=0?this._g(s,!1,!0):ow(this,e,!1),76);return w=new qVt(this,e),w},l.yh=function(){return dmt(this)},l.zh=function(){return(zp(),Ln).S},l.Ah=function(){return ar(this.zh())},l.Bh=function(e){kst(this,e)},l.Ib=function(){return kf(this)},N(Mn,"BasicEObjectImpl",97);var H3e;M(114,97,{105:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1}),l.Ch=function(e){var n;return n=gmt(this),n[e]},l.Dh=function(e,n){var r;r=gmt(this),ds(r,e,n)},l.Eh=function(e){var n;n=gmt(this),ds(n,e,null)},l.Jg=function(){return u(Dn(this,4),126)},l.Kg=function(){throw et(new Gr)},l.Lg=function(){return(this.Db&4)!=0},l.Pg=function(){throw et(new Gr)},l.Fh=function(e){J6(this,2,e)},l.Rg=function(e,n){this.Db=n<<16|this.Db&255,this.Fh(e)},l.Tg=function(){return Su(this)},l.Vg=function(){return this.Db>>16},l.Wg=function(){var e,n;return jT(),n=fwt(xd((e=u(Dn(this,16),26),e||this.zh()))),n==null?pft:new OM(this,n)},l.Mg=function(){return(this.Db&1)==0},l.Zg=function(){return u(Dn(this,128),1935)},l.$g=function(){return u(Dn(this,16),26)},l.dh=function(){return(this.Db&32)!=0},l.eh=function(){return u(Dn(this,2),49)},l.kh=function(){return(this.Db&64)!=0},l.ph=function(){throw et(new Gr)},l.qh=function(){return u(Dn(this,64),281)},l.th=function(e){J6(this,16,e)},l.uh=function(e){J6(this,128,e)},l.vh=function(e){J6(this,64,e)},l.yh=function(){return fu(this)},l.Db=0,N(Mn,"MinimalEObjectImpl",114),M(115,114,{105:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1}),l.Fh=function(e){this.Cb=e},l.eh=function(){return this.Cb},N(Mn,"MinimalEObjectImpl/Container",115),M(1985,115,{105:1,413:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1}),l._g=function(e,n,r){return _3t(this,e,n,r)},l.jh=function(e,n,r){return d4t(this,e,n,r)},l.lh=function(e){return Twt(this,e)},l.sh=function(e,n){lyt(this,e,n)},l.zh=function(){return ou(),q3e},l.Bh=function(e){Jmt(this,e)},l.Ve=function(){return tie(this)},l.We=function(e){return ze(this,e)},l.Xe=function(e){return eb(this,e)},l.Ye=function(e,n){return Mo(this,e,n)},N(Tb,"EMapPropertyHolderImpl",1985),M(567,115,{105:1,469:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1},mp),l._g=function(e,n,r){switch(e){case 0:return this.a;case 1:return this.b}return Mz(this,e,n,r)},l.lh=function(e){switch(e){case 0:return this.a!=0;case 1:return this.b!=0}return Hit(this,e)},l.sh=function(e,n){switch(e){case 0:R$(this,Xt(xe(n)));return;case 1:j$(this,Xt(xe(n)));return}Sst(this,e,n)},l.zh=function(){return ou(),R3e},l.Bh=function(e){switch(e){case 0:R$(this,0);return;case 1:j$(this,0);return}kst(this,e)},l.Ib=function(){var e;return this.Db&64?kf(this):(e=new Ih(kf(this)),e.a+=" (x: ",R3(e,this.a),e.a+=", y: ",R3(e,this.b),e.a+=")",e.a)},l.a=0,l.b=0,N(Tb,"ElkBendPointImpl",567),M(723,1985,{105:1,413:1,160:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1}),l._g=function(e,n,r){return Lyt(this,e,n,r)},l.hh=function(e,n,r){return bst(this,e,n,r)},l.jh=function(e,n,r){return tit(this,e,n,r)},l.lh=function(e){return Gmt(this,e)},l.sh=function(e,n){V3t(this,e,n)},l.zh=function(){return ou(),$3e},l.Bh=function(e){_yt(this,e)},l.zg=function(){return this.k},l.Ag=function(){return Hj(this)},l.Ib=function(){return Sit(this)},l.k=null,N(Tb,"ElkGraphElementImpl",723),M(724,723,{105:1,413:1,160:1,470:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1}),l._g=function(e,n,r){return jyt(this,e,n,r)},l.lh=function(e){return Uyt(this,e)},l.sh=function(e,n){G3t(this,e,n)},l.zh=function(){return ou(),z3e},l.Bh=function(e){Qyt(this,e)},l.Bg=function(){return this.f},l.Cg=function(){return this.g},l.Dg=function(){return this.i},l.Eg=function(){return this.j},l.Fg=function(e,n){XR(this,e,n)},l.Gg=function(e,n){S1(this,e,n)},l.Hg=function(e){Du(this,e)},l.Ig=function(e){Iu(this,e)},l.Ib=function(){return xst(this)},l.f=0,l.g=0,l.i=0,l.j=0,N(Tb,"ElkShapeImpl",724),M(725,724,{105:1,413:1,82:1,160:1,470:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1}),l._g=function(e,n,r){return m3t(this,e,n,r)},l.hh=function(e,n,r){return R3t(this,e,n,r)},l.jh=function(e,n,r){return j3t(this,e,n,r)},l.lh=function(e){return cyt(this,e)},l.sh=function(e,n){K4t(this,e,n)},l.zh=function(){return ou(),j3e},l.Bh=function(e){h3t(this,e)},l.xg=function(){return!this.d&&(this.d=new Tn(aa,this,8,5)),this.d},l.yg=function(){return!this.e&&(this.e=new Tn(aa,this,7,4)),this.e},N(Tb,"ElkConnectableShapeImpl",725),M(352,723,{105:1,413:1,79:1,160:1,352:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1},uv),l.Qg=function(e){return N3t(this,e)},l._g=function(e,n,r){switch(e){case 3:return nD(this);case 4:return!this.b&&(this.b=new Tn(Cr,this,4,7)),this.b;case 5:return!this.c&&(this.c=new Tn(Cr,this,5,8)),this.c;case 6:return!this.a&&(this.a=new he(fs,this,6,6)),this.a;case 7:return Rn(),!this.b&&(this.b=new Tn(Cr,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new Tn(Cr,this,5,8)),this.c.i<=1));case 8:return Rn(),!!cC(this);case 9:return Rn(),!!aw(this);case 10:return Rn(),!this.b&&(this.b=new Tn(Cr,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new Tn(Cr,this,5,8)),this.c.i!=0)}return Lyt(this,e,n,r)},l.hh=function(e,n,r){var s;switch(n){case 3:return this.Cb&&(r=(s=this.Db>>16,s>=0?N3t(this,r):this.Cb.ih(this,-1-s,null,r))),Sbt(this,u(e,33),r);case 4:return!this.b&&(this.b=new Tn(Cr,this,4,7)),au(this.b,e,r);case 5:return!this.c&&(this.c=new Tn(Cr,this,5,8)),au(this.c,e,r);case 6:return!this.a&&(this.a=new he(fs,this,6,6)),au(this.a,e,r)}return bst(this,e,n,r)},l.jh=function(e,n,r){switch(n){case 3:return Sbt(this,null,r);case 4:return!this.b&&(this.b=new Tn(Cr,this,4,7)),Za(this.b,e,r);case 5:return!this.c&&(this.c=new Tn(Cr,this,5,8)),Za(this.c,e,r);case 6:return!this.a&&(this.a=new he(fs,this,6,6)),Za(this.a,e,r)}return tit(this,e,n,r)},l.lh=function(e){switch(e){case 3:return!!nD(this);case 4:return!!this.b&&this.b.i!=0;case 5:return!!this.c&&this.c.i!=0;case 6:return!!this.a&&this.a.i!=0;case 7:return!this.b&&(this.b=new Tn(Cr,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new Tn(Cr,this,5,8)),this.c.i<=1));case 8:return cC(this);case 9:return aw(this);case 10:return!this.b&&(this.b=new Tn(Cr,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new Tn(Cr,this,5,8)),this.c.i!=0)}return Gmt(this,e)},l.sh=function(e,n){switch(e){case 3:Rst(this,u(n,33));return;case 4:!this.b&&(this.b=new Tn(Cr,this,4,7)),Ir(this.b),!this.b&&(this.b=new Tn(Cr,this,4,7)),vs(this.b,u(n,14));return;case 5:!this.c&&(this.c=new Tn(Cr,this,5,8)),Ir(this.c),!this.c&&(this.c=new Tn(Cr,this,5,8)),vs(this.c,u(n,14));return;case 6:!this.a&&(this.a=new he(fs,this,6,6)),Ir(this.a),!this.a&&(this.a=new he(fs,this,6,6)),vs(this.a,u(n,14));return}V3t(this,e,n)},l.zh=function(){return ou(),vAt},l.Bh=function(e){switch(e){case 3:Rst(this,null);return;case 4:!this.b&&(this.b=new Tn(Cr,this,4,7)),Ir(this.b);return;case 5:!this.c&&(this.c=new Tn(Cr,this,5,8)),Ir(this.c);return;case 6:!this.a&&(this.a=new he(fs,this,6,6)),Ir(this.a);return}_yt(this,e)},l.Ib=function(){return Iue(this)},N(Tb,"ElkEdgeImpl",352),M(439,1985,{105:1,413:1,202:1,439:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1},ud),l.Qg=function(e){return M3t(this,e)},l._g=function(e,n,r){switch(e){case 1:return this.j;case 2:return this.k;case 3:return this.b;case 4:return this.c;case 5:return!this.a&&(this.a=new qs(Qh,this,5)),this.a;case 6:return mXt(this);case 7:return n?Kit(this):this.i;case 8:return n?Wit(this):this.f;case 9:return!this.g&&(this.g=new Tn(fs,this,9,10)),this.g;case 10:return!this.e&&(this.e=new Tn(fs,this,10,9)),this.e;case 11:return this.d}return _3t(this,e,n,r)},l.hh=function(e,n,r){var s,o,h;switch(n){case 6:return this.Cb&&(r=(o=this.Db>>16,o>=0?M3t(this,r):this.Cb.ih(this,-1-o,null,r))),Abt(this,u(e,79),r);case 9:return!this.g&&(this.g=new Tn(fs,this,9,10)),au(this.g,e,r);case 10:return!this.e&&(this.e=new Tn(fs,this,10,9)),au(this.e,e,r)}return h=u(wn((s=u(Dn(this,16),26),s||(ou(),$G)),n),66),h.Nj().Qj(this,fu(this),n-ar((ou(),$G)),e,r)},l.jh=function(e,n,r){switch(n){case 5:return!this.a&&(this.a=new qs(Qh,this,5)),Za(this.a,e,r);case 6:return Abt(this,null,r);case 9:return!this.g&&(this.g=new Tn(fs,this,9,10)),Za(this.g,e,r);case 10:return!this.e&&(this.e=new Tn(fs,this,10,9)),Za(this.e,e,r)}return d4t(this,e,n,r)},l.lh=function(e){switch(e){case 1:return this.j!=0;case 2:return this.k!=0;case 3:return this.b!=0;case 4:return this.c!=0;case 5:return!!this.a&&this.a.i!=0;case 6:return!!mXt(this);case 7:return!!this.i;case 8:return!!this.f;case 9:return!!this.g&&this.g.i!=0;case 10:return!!this.e&&this.e.i!=0;case 11:return this.d!=null}return Twt(this,e)},l.sh=function(e,n){switch(e){case 1:B8(this,Xt(xe(n)));return;case 2:j8(this,Xt(xe(n)));return;case 3:F8(this,Xt(xe(n)));return;case 4:R8(this,Xt(xe(n)));return;case 5:!this.a&&(this.a=new qs(Qh,this,5)),Ir(this.a),!this.a&&(this.a=new qs(Qh,this,5)),vs(this.a,u(n,14));return;case 6:Ooe(this,u(n,79));return;case 7:V$(this,u(n,82));return;case 8:H$(this,u(n,82));return;case 9:!this.g&&(this.g=new Tn(fs,this,9,10)),Ir(this.g),!this.g&&(this.g=new Tn(fs,this,9,10)),vs(this.g,u(n,14));return;case 10:!this.e&&(this.e=new Tn(fs,this,10,9)),Ir(this.e),!this.e&&(this.e=new Tn(fs,this,10,9)),vs(this.e,u(n,14));return;case 11:Fmt(this,Kr(n));return}lyt(this,e,n)},l.zh=function(){return ou(),$G},l.Bh=function(e){switch(e){case 1:B8(this,0);return;case 2:j8(this,0);return;case 3:F8(this,0);return;case 4:R8(this,0);return;case 5:!this.a&&(this.a=new qs(Qh,this,5)),Ir(this.a);return;case 6:Ooe(this,null);return;case 7:V$(this,null);return;case 8:H$(this,null);return;case 9:!this.g&&(this.g=new Tn(fs,this,9,10)),Ir(this.g);return;case 10:!this.e&&(this.e=new Tn(fs,this,10,9)),Ir(this.e);return;case 11:Fmt(this,null);return}Jmt(this,e)},l.Ib=function(){return Qae(this)},l.b=0,l.c=0,l.d=null,l.j=0,l.k=0,N(Tb,"ElkEdgeSectionImpl",439),M(150,115,{105:1,92:1,90:1,147:1,56:1,108:1,49:1,97:1,150:1,114:1,115:1}),l._g=function(e,n,r){var s;return e==0?(!this.Ab&&(this.Ab=new he(li,this,0,3)),this.Ab):ph(this,e-ar(this.zh()),wn((s=u(Dn(this,16),26),s||this.zh()),e),n,r)},l.hh=function(e,n,r){var s,o;return n==0?(!this.Ab&&(this.Ab=new he(li,this,0,3)),au(this.Ab,e,r)):(o=u(wn((s=u(Dn(this,16),26),s||this.zh()),n),66),o.Nj().Qj(this,fu(this),n-ar(this.zh()),e,r))},l.jh=function(e,n,r){var s,o;return n==0?(!this.Ab&&(this.Ab=new he(li,this,0,3)),Za(this.Ab,e,r)):(o=u(wn((s=u(Dn(this,16),26),s||this.zh()),n),66),o.Nj().Rj(this,fu(this),n-ar(this.zh()),e,r))},l.lh=function(e){var n;return e==0?!!this.Ab&&this.Ab.i!=0:dh(this,e-ar(this.zh()),wn((n=u(Dn(this,16),26),n||this.zh()),e))},l.oh=function(e){return n6t(this,e)},l.sh=function(e,n){var r;switch(e){case 0:!this.Ab&&(this.Ab=new he(li,this,0,3)),Ir(this.Ab),!this.Ab&&(this.Ab=new he(li,this,0,3)),vs(this.Ab,u(n,14));return}yh(this,e-ar(this.zh()),wn((r=u(Dn(this,16),26),r||this.zh()),e),n)},l.uh=function(e){J6(this,128,e)},l.zh=function(){return hn(),o4e},l.Bh=function(e){var n;switch(e){case 0:!this.Ab&&(this.Ab=new he(li,this,0,3)),Ir(this.Ab);return}wh(this,e-ar(this.zh()),wn((n=u(Dn(this,16),26),n||this.zh()),e))},l.Gh=function(){this.Bb|=1},l.Hh=function(e){return dC(this,e)},l.Bb=0,N(Mn,"EModelElementImpl",150),M(704,150,{105:1,92:1,90:1,471:1,147:1,56:1,108:1,49:1,97:1,150:1,114:1,115:1},OB),l.Ih=function(e,n){return cle(this,e,n)},l.Jh=function(e){var n,r,s,o,h;if(this.a!=Vl(e)||e.Bb&256)throw et(new Bn(Cct+e.zb+mw));for(s=zo(e);$c(s.a).i!=0;){if(r=u(kI(s,0,(n=u(St($c(s.a),0),87),h=n.c,Et(h,88)?u(h,26):(hn(),ef))),26),sw(r))return o=Vl(r).Nh().Jh(r),u(o,49).th(e),o;s=zo(r)}return(e.D!=null?e.D:e.B)=="java.util.Map$Entry"?new rKt(e):new gvt(e)},l.Kh=function(e,n){return fw(this,e,n)},l._g=function(e,n,r){var s;switch(e){case 0:return!this.Ab&&(this.Ab=new he(li,this,0,3)),this.Ab;case 1:return this.a}return ph(this,e-ar((hn(),L2)),wn((s=u(Dn(this,16),26),s||L2),e),n,r)},l.hh=function(e,n,r){var s,o;switch(n){case 0:return!this.Ab&&(this.Ab=new he(li,this,0,3)),au(this.Ab,e,r);case 1:return this.a&&(r=u(this.a,49).ih(this,4,u1,r)),Eyt(this,u(e,235),r)}return o=u(wn((s=u(Dn(this,16),26),s||(hn(),L2)),n),66),o.Nj().Qj(this,fu(this),n-ar((hn(),L2)),e,r)},l.jh=function(e,n,r){var s,o;switch(n){case 0:return!this.Ab&&(this.Ab=new he(li,this,0,3)),Za(this.Ab,e,r);case 1:return Eyt(this,null,r)}return o=u(wn((s=u(Dn(this,16),26),s||(hn(),L2)),n),66),o.Nj().Rj(this,fu(this),n-ar((hn(),L2)),e,r)},l.lh=function(e){var n;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return!!this.a}return dh(this,e-ar((hn(),L2)),wn((n=u(Dn(this,16),26),n||L2),e))},l.sh=function(e,n){var r;switch(e){case 0:!this.Ab&&(this.Ab=new he(li,this,0,3)),Ir(this.Ab),!this.Ab&&(this.Ab=new he(li,this,0,3)),vs(this.Ab,u(n,14));return;case 1:Ose(this,u(n,235));return}yh(this,e-ar((hn(),L2)),wn((r=u(Dn(this,16),26),r||L2),e),n)},l.zh=function(){return hn(),L2},l.Bh=function(e){var n;switch(e){case 0:!this.Ab&&(this.Ab=new he(li,this,0,3)),Ir(this.Ab);return;case 1:Ose(this,null);return}wh(this,e-ar((hn(),L2)),wn((n=u(Dn(this,16),26),n||L2),e))};var QS,xAt,V3e;N(Mn,"EFactoryImpl",704),M(Tf,704,{105:1,2014:1,92:1,90:1,471:1,147:1,56:1,108:1,49:1,97:1,150:1,114:1,115:1},Z5),l.Ih=function(e,n){switch(e.yj()){case 12:return u(n,146).tg();case 13:return Jo(n);default:throw et(new Bn(H7+e.ne()+mw))}},l.Jh=function(e){var n,r,s,o,h,d,w,k;switch(e.G==-1&&(e.G=(n=Vl(e),n?Pg(n.Mh(),e):-1)),e.G){case 4:return h=new HE,h;case 6:return d=new vpt,d;case 7:return w=new wpt,w;case 8:return s=new uv,s;case 9:return r=new mp,r;case 10:return o=new ud,o;case 11:return k=new $F,k;default:throw et(new Bn(Cct+e.zb+mw))}},l.Kh=function(e,n){switch(e.yj()){case 13:case 12:return null;default:throw et(new Bn(H7+e.ne()+mw))}},N(Tb,"ElkGraphFactoryImpl",Tf),M(438,150,{105:1,92:1,90:1,147:1,191:1,56:1,108:1,49:1,97:1,150:1,114:1,115:1}),l.Wg=function(){var e,n;return n=(e=u(Dn(this,16),26),fwt(xd(e||this.zh()))),n==null?(jT(),jT(),pft):new TUt(this,n)},l._g=function(e,n,r){var s;switch(e){case 0:return!this.Ab&&(this.Ab=new he(li,this,0,3)),this.Ab;case 1:return this.ne()}return ph(this,e-ar(this.zh()),wn((s=u(Dn(this,16),26),s||this.zh()),e),n,r)},l.lh=function(e){var n;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null}return dh(this,e-ar(this.zh()),wn((n=u(Dn(this,16),26),n||this.zh()),e))},l.sh=function(e,n){var r;switch(e){case 0:!this.Ab&&(this.Ab=new he(li,this,0,3)),Ir(this.Ab),!this.Ab&&(this.Ab=new he(li,this,0,3)),vs(this.Ab,u(n,14));return;case 1:this.Lh(Kr(n));return}yh(this,e-ar(this.zh()),wn((r=u(Dn(this,16),26),r||this.zh()),e),n)},l.zh=function(){return hn(),c4e},l.Bh=function(e){var n;switch(e){case 0:!this.Ab&&(this.Ab=new he(li,this,0,3)),Ir(this.Ab);return;case 1:this.Lh(null);return}wh(this,e-ar(this.zh()),wn((n=u(Dn(this,16),26),n||this.zh()),e))},l.ne=function(){return this.zb},l.Lh=function(e){su(this,e)},l.Ib=function(){return V_(this)},l.zb=null,N(Mn,"ENamedElementImpl",438),M(179,438,{105:1,92:1,90:1,147:1,191:1,56:1,235:1,108:1,49:1,97:1,150:1,179:1,114:1,115:1,675:1},iXt),l.Qg=function(e){return Wie(this,e)},l._g=function(e,n,r){var s;switch(e){case 0:return!this.Ab&&(this.Ab=new he(li,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.yb;case 3:return this.xb;case 4:return this.sb;case 5:return!this.rb&&(this.rb=new $m(this,l1,this)),this.rb;case 6:return!this.vb&&(this.vb=new M6(u1,this,6,7)),this.vb;case 7:return n?this.Db>>16==7?u(this.Cb,235):null:yXt(this)}return ph(this,e-ar((hn(),ep)),wn((s=u(Dn(this,16),26),s||ep),e),n,r)},l.hh=function(e,n,r){var s,o,h;switch(n){case 0:return!this.Ab&&(this.Ab=new he(li,this,0,3)),au(this.Ab,e,r);case 4:return this.sb&&(r=u(this.sb,49).ih(this,1,XS,r)),Syt(this,u(e,471),r);case 5:return!this.rb&&(this.rb=new $m(this,l1,this)),au(this.rb,e,r);case 6:return!this.vb&&(this.vb=new M6(u1,this,6,7)),au(this.vb,e,r);case 7:return this.Cb&&(r=(o=this.Db>>16,o>=0?Wie(this,r):this.Cb.ih(this,-1-o,null,r))),Yl(this,e,7,r)}return h=u(wn((s=u(Dn(this,16),26),s||(hn(),ep)),n),66),h.Nj().Qj(this,fu(this),n-ar((hn(),ep)),e,r)},l.jh=function(e,n,r){var s,o;switch(n){case 0:return!this.Ab&&(this.Ab=new he(li,this,0,3)),Za(this.Ab,e,r);case 4:return Syt(this,null,r);case 5:return!this.rb&&(this.rb=new $m(this,l1,this)),Za(this.rb,e,r);case 6:return!this.vb&&(this.vb=new M6(u1,this,6,7)),Za(this.vb,e,r);case 7:return Yl(this,null,7,r)}return o=u(wn((s=u(Dn(this,16),26),s||(hn(),ep)),n),66),o.Nj().Rj(this,fu(this),n-ar((hn(),ep)),e,r)},l.lh=function(e){var n;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.yb!=null;case 3:return this.xb!=null;case 4:return!!this.sb;case 5:return!!this.rb&&this.rb.i!=0;case 6:return!!this.vb&&this.vb.i!=0;case 7:return!!yXt(this)}return dh(this,e-ar((hn(),ep)),wn((n=u(Dn(this,16),26),n||ep),e))},l.oh=function(e){var n;return n=r2n(this,e),n||n6t(this,e)},l.sh=function(e,n){var r;switch(e){case 0:!this.Ab&&(this.Ab=new he(li,this,0,3)),Ir(this.Ab),!this.Ab&&(this.Ab=new he(li,this,0,3)),vs(this.Ab,u(n,14));return;case 1:su(this,Kr(n));return;case 2:Q$(this,Kr(n));return;case 3:X$(this,Kr(n));return;case 4:yst(this,u(n,471));return;case 5:!this.rb&&(this.rb=new $m(this,l1,this)),Ir(this.rb),!this.rb&&(this.rb=new $m(this,l1,this)),vs(this.rb,u(n,14));return;case 6:!this.vb&&(this.vb=new M6(u1,this,6,7)),Ir(this.vb),!this.vb&&(this.vb=new M6(u1,this,6,7)),vs(this.vb,u(n,14));return}yh(this,e-ar((hn(),ep)),wn((r=u(Dn(this,16),26),r||ep),e),n)},l.vh=function(e){var n,r;if(e&&this.rb)for(r=new lr(this.rb);r.e!=r.i.gc();)n=kr(r),Et(n,351)&&(u(n,351).w=null);J6(this,64,e)},l.zh=function(){return hn(),ep},l.Bh=function(e){var n;switch(e){case 0:!this.Ab&&(this.Ab=new he(li,this,0,3)),Ir(this.Ab);return;case 1:su(this,null);return;case 2:Q$(this,null);return;case 3:X$(this,null);return;case 4:yst(this,null);return;case 5:!this.rb&&(this.rb=new $m(this,l1,this)),Ir(this.rb);return;case 6:!this.vb&&(this.vb=new M6(u1,this,6,7)),Ir(this.vb);return}wh(this,e-ar((hn(),ep)),wn((n=u(Dn(this,16),26),n||ep),e))},l.Gh=function(){ost(this)},l.Mh=function(){return!this.rb&&(this.rb=new $m(this,l1,this)),this.rb},l.Nh=function(){return this.sb},l.Oh=function(){return this.ub},l.Ph=function(){return this.xb},l.Qh=function(){return this.yb},l.Rh=function(e){this.ub=e},l.Ib=function(){var e;return this.Db&64?V_(this):(e=new Ih(V_(this)),e.a+=" (nsURI: ",So(e,this.yb),e.a+=", nsPrefix: ",So(e,this.xb),e.a+=")",e.a)},l.xb=null,l.yb=null,N(Mn,"EPackageImpl",179),M(555,179,{105:1,2016:1,555:1,92:1,90:1,147:1,191:1,56:1,235:1,108:1,49:1,97:1,150:1,179:1,114:1,115:1,675:1},aoe),l.q=!1,l.r=!1;var G3e=!1;N(Tb,"ElkGraphPackageImpl",555),M(354,724,{105:1,413:1,160:1,137:1,470:1,354:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1},HE),l.Qg=function(e){return D3t(this,e)},l._g=function(e,n,r){switch(e){case 7:return xXt(this);case 8:return this.a}return jyt(this,e,n,r)},l.hh=function(e,n,r){var s;switch(n){case 7:return this.Cb&&(r=(s=this.Db>>16,s>=0?D3t(this,r):this.Cb.ih(this,-1-s,null,r))),Lvt(this,u(e,160),r)}return bst(this,e,n,r)},l.jh=function(e,n,r){return n==7?Lvt(this,null,r):tit(this,e,n,r)},l.lh=function(e){switch(e){case 7:return!!xXt(this);case 8:return!ln("",this.a)}return Uyt(this,e)},l.sh=function(e,n){switch(e){case 7:c5t(this,u(n,160));return;case 8:Lmt(this,Kr(n));return}G3t(this,e,n)},l.zh=function(){return ou(),wAt},l.Bh=function(e){switch(e){case 7:c5t(this,null);return;case 8:Lmt(this,"");return}Qyt(this,e)},l.Ib=function(){return Wse(this)},l.a="",N(Tb,"ElkLabelImpl",354),M(239,725,{105:1,413:1,82:1,160:1,33:1,470:1,239:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1},vpt),l.Qg=function(e){return P3t(this,e)},l._g=function(e,n,r){switch(e){case 9:return!this.c&&(this.c=new he(El,this,9,9)),this.c;case 10:return!this.a&&(this.a=new he(bs,this,10,11)),this.a;case 11:return gs(this);case 12:return!this.b&&(this.b=new he(aa,this,12,3)),this.b;case 13:return Rn(),!this.a&&(this.a=new he(bs,this,10,11)),this.a.i>0}return m3t(this,e,n,r)},l.hh=function(e,n,r){var s;switch(n){case 9:return!this.c&&(this.c=new he(El,this,9,9)),au(this.c,e,r);case 10:return!this.a&&(this.a=new he(bs,this,10,11)),au(this.a,e,r);case 11:return this.Cb&&(r=(s=this.Db>>16,s>=0?P3t(this,r):this.Cb.ih(this,-1-s,null,r))),Bbt(this,u(e,33),r);case 12:return!this.b&&(this.b=new he(aa,this,12,3)),au(this.b,e,r)}return R3t(this,e,n,r)},l.jh=function(e,n,r){switch(n){case 9:return!this.c&&(this.c=new he(El,this,9,9)),Za(this.c,e,r);case 10:return!this.a&&(this.a=new he(bs,this,10,11)),Za(this.a,e,r);case 11:return Bbt(this,null,r);case 12:return!this.b&&(this.b=new he(aa,this,12,3)),Za(this.b,e,r)}return j3t(this,e,n,r)},l.lh=function(e){switch(e){case 9:return!!this.c&&this.c.i!=0;case 10:return!!this.a&&this.a.i!=0;case 11:return!!gs(this);case 12:return!!this.b&&this.b.i!=0;case 13:return!this.a&&(this.a=new he(bs,this,10,11)),this.a.i>0}return cyt(this,e)},l.sh=function(e,n){switch(e){case 9:!this.c&&(this.c=new he(El,this,9,9)),Ir(this.c),!this.c&&(this.c=new he(El,this,9,9)),vs(this.c,u(n,14));return;case 10:!this.a&&(this.a=new he(bs,this,10,11)),Ir(this.a),!this.a&&(this.a=new he(bs,this,10,11)),vs(this.a,u(n,14));return;case 11:s5t(this,u(n,33));return;case 12:!this.b&&(this.b=new he(aa,this,12,3)),Ir(this.b),!this.b&&(this.b=new he(aa,this,12,3)),vs(this.b,u(n,14));return}K4t(this,e,n)},l.zh=function(){return ou(),mAt},l.Bh=function(e){switch(e){case 9:!this.c&&(this.c=new he(El,this,9,9)),Ir(this.c);return;case 10:!this.a&&(this.a=new he(bs,this,10,11)),Ir(this.a);return;case 11:s5t(this,null);return;case 12:!this.b&&(this.b=new he(aa,this,12,3)),Ir(this.b);return}h3t(this,e)},l.Ib=function(){return E5t(this)},N(Tb,"ElkNodeImpl",239),M(186,725,{105:1,413:1,82:1,160:1,118:1,470:1,186:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1},wpt),l.Qg=function(e){return I3t(this,e)},l._g=function(e,n,r){return e==9?M1(this):m3t(this,e,n,r)},l.hh=function(e,n,r){var s;switch(n){case 9:return this.Cb&&(r=(s=this.Db>>16,s>=0?I3t(this,r):this.Cb.ih(this,-1-s,null,r))),Lbt(this,u(e,33),r)}return R3t(this,e,n,r)},l.jh=function(e,n,r){return n==9?Lbt(this,null,r):j3t(this,e,n,r)},l.lh=function(e){return e==9?!!M1(this):cyt(this,e)},l.sh=function(e,n){switch(e){case 9:i5t(this,u(n,33));return}K4t(this,e,n)},l.zh=function(){return ou(),yAt},l.Bh=function(e){switch(e){case 9:i5t(this,null);return}h3t(this,e)},l.Ib=function(){return Oce(this)},N(Tb,"ElkPortImpl",186);var U3e=ls(Ja,"BasicEMap/Entry");M(1092,115,{105:1,42:1,92:1,90:1,133:1,56:1,108:1,49:1,97:1,114:1,115:1},$F),l.Fb=function(e){return this===e},l.cd=function(){return this.b},l.Hb=function(){return Av(this)},l.Uh=function(e){Mmt(this,u(e,146))},l._g=function(e,n,r){switch(e){case 0:return this.b;case 1:return this.c}return Mz(this,e,n,r)},l.lh=function(e){switch(e){case 0:return!!this.b;case 1:return this.c!=null}return Hit(this,e)},l.sh=function(e,n){switch(e){case 0:Mmt(this,u(n,146));return;case 1:Omt(this,n);return}Sst(this,e,n)},l.zh=function(){return ou(),_2},l.Bh=function(e){switch(e){case 0:Mmt(this,null);return;case 1:Omt(this,null);return}kst(this,e)},l.Sh=function(){var e;return this.a==-1&&(e=this.b,this.a=e?ns(e):0),this.a},l.dd=function(){return this.c},l.Th=function(e){this.a=e},l.ed=function(e){var n;return n=this.c,Omt(this,e),n},l.Ib=function(){var e;return this.Db&64?kf(this):(e=new Ap,ni(ni(ni(e,this.b?this.b.tg():Pu),Eot),o_(this.c)),e.a)},l.a=-1,l.c=null;var Bw=N(Tb,"ElkPropertyToValueMapEntryImpl",1092);M(984,1,{},zF),N(Na,"JsonAdapter",984),M(210,60,G0,fd),N(Na,"JsonImportException",210),M(857,1,{},Kie),N(Na,"JsonImporter",857),M(891,1,{},EVt),N(Na,"JsonImporter/lambda$0$Type",891),M(892,1,{},TVt),N(Na,"JsonImporter/lambda$1$Type",892),M(900,1,{},i$t),N(Na,"JsonImporter/lambda$10$Type",900),M(902,1,{},_Vt),N(Na,"JsonImporter/lambda$11$Type",902),M(903,1,{},CVt),N(Na,"JsonImporter/lambda$12$Type",903),M(909,1,{},RYt),N(Na,"JsonImporter/lambda$13$Type",909),M(908,1,{},BYt),N(Na,"JsonImporter/lambda$14$Type",908),M(904,1,{},SVt),N(Na,"JsonImporter/lambda$15$Type",904),M(905,1,{},AVt),N(Na,"JsonImporter/lambda$16$Type",905),M(906,1,{},LVt),N(Na,"JsonImporter/lambda$17$Type",906),M(907,1,{},MVt),N(Na,"JsonImporter/lambda$18$Type",907),M(912,1,{},s$t),N(Na,"JsonImporter/lambda$19$Type",912),M(893,1,{},a$t),N(Na,"JsonImporter/lambda$2$Type",893),M(910,1,{},o$t),N(Na,"JsonImporter/lambda$20$Type",910),M(911,1,{},c$t),N(Na,"JsonImporter/lambda$21$Type",911),M(915,1,{},u$t),N(Na,"JsonImporter/lambda$22$Type",915),M(913,1,{},l$t),N(Na,"JsonImporter/lambda$23$Type",913),M(914,1,{},h$t),N(Na,"JsonImporter/lambda$24$Type",914),M(917,1,{},f$t),N(Na,"JsonImporter/lambda$25$Type",917),M(916,1,{},d$t),N(Na,"JsonImporter/lambda$26$Type",916),M(918,1,Qn,DVt),l.td=function(e){Iin(this.b,this.a,Kr(e))},N(Na,"JsonImporter/lambda$27$Type",918),M(919,1,Qn,IVt),l.td=function(e){Oin(this.b,this.a,Kr(e))},N(Na,"JsonImporter/lambda$28$Type",919),M(920,1,{},OVt),N(Na,"JsonImporter/lambda$29$Type",920),M(896,1,{},g$t),N(Na,"JsonImporter/lambda$3$Type",896),M(921,1,{},NVt),N(Na,"JsonImporter/lambda$30$Type",921),M(922,1,{},p$t),N(Na,"JsonImporter/lambda$31$Type",922),M(923,1,{},b$t),N(Na,"JsonImporter/lambda$32$Type",923),M(924,1,{},v$t),N(Na,"JsonImporter/lambda$33$Type",924),M(925,1,{},w$t),N(Na,"JsonImporter/lambda$34$Type",925),M(859,1,{},m$t),N(Na,"JsonImporter/lambda$35$Type",859),M(929,1,{},LWt),N(Na,"JsonImporter/lambda$36$Type",929),M(926,1,Qn,y$t),l.td=function(e){Frn(this.a,u(e,469))},N(Na,"JsonImporter/lambda$37$Type",926),M(927,1,Qn,$Vt),l.td=function(e){lKe(this.a,this.b,u(e,202))},N(Na,"JsonImporter/lambda$38$Type",927),M(928,1,Qn,zVt),l.td=function(e){hKe(this.a,this.b,u(e,202))},N(Na,"JsonImporter/lambda$39$Type",928),M(894,1,{},x$t),N(Na,"JsonImporter/lambda$4$Type",894),M(930,1,Qn,k$t),l.td=function(e){Brn(this.a,u(e,8))},N(Na,"JsonImporter/lambda$40$Type",930),M(895,1,{},E$t),N(Na,"JsonImporter/lambda$5$Type",895),M(899,1,{},T$t),N(Na,"JsonImporter/lambda$6$Type",899),M(897,1,{},_$t),N(Na,"JsonImporter/lambda$7$Type",897),M(898,1,{},C$t),N(Na,"JsonImporter/lambda$8$Type",898),M(901,1,{},S$t),N(Na,"JsonImporter/lambda$9$Type",901),M(948,1,Qn,A$t),l.td=function(e){F6(this.a,new zm(Kr(e)))},N(Na,"JsonMetaDataConverter/lambda$0$Type",948),M(949,1,Qn,L$t),l.td=function(e){JJe(this.a,u(e,237))},N(Na,"JsonMetaDataConverter/lambda$1$Type",949),M(950,1,Qn,M$t),l.td=function(e){Xen(this.a,u(e,149))},N(Na,"JsonMetaDataConverter/lambda$2$Type",950),M(951,1,Qn,D$t),l.td=function(e){ttn(this.a,u(e,175))},N(Na,"JsonMetaDataConverter/lambda$3$Type",951),M(237,22,{3:1,35:1,22:1,237:1},C6);var zG,qG,cft,HG,VG,GG,uft,lft,UG=Xr(FI,"GraphFeature",237,ti,ksn,TZe),W3e;M(13,1,{35:1,146:1},rs,Ks,vn,po),l.wd=function(e){return uYe(this,u(e,146))},l.Fb=function(e){return sXt(this,e)},l.wg=function(){return Ie(this)},l.tg=function(){return this.b},l.Hb=function(){return Fg(this.b)},l.Ib=function(){return this.b},N(FI,"Property",13),M(818,1,Ui,Xgt),l.ue=function(e,n){return Scn(this,u(e,94),u(n,94))},l.Fb=function(e){return this===e},l.ve=function(){return new dt(this)},N(FI,"PropertyHolderComparator",818),M(695,1,va,Qgt),l.Nb=function(e){Da(this,e)},l.Pb=function(){return Bin(this)},l.Qb=function(){Tqt()},l.Ob=function(){return!!this.a},N(hH,"ElkGraphUtil/AncestorIterator",695);var kAt=ls(Ja,"EList");M(67,52,{20:1,28:1,52:1,14:1,15:1,67:1,58:1}),l.Vc=function(e,n){W_(this,e,n)},l.Fc=function(e){return Hr(this,e)},l.Wc=function(e,n){return tyt(this,e,n)},l.Gc=function(e){return vs(this,e)},l.Zh=function(){return new L6(this)},l.$h=function(){return new NM(this)},l._h=function(e){return _D(this,e)},l.ai=function(){return!0},l.bi=function(e,n){},l.ci=function(){},l.di=function(e,n){_rt(this,e,n)},l.ei=function(e,n,r){},l.fi=function(e,n){},l.gi=function(e,n,r){},l.Fb=function(e){return mce(this,e)},l.Hb=function(){return Ymt(this)},l.hi=function(){return!1},l.Kc=function(){return new lr(this)},l.Yc=function(){return new A6(this)},l.Zc=function(e){var n;if(n=this.gc(),e<0||e>n)throw et(new Bm(e,n));return new Mnt(this,e)},l.ji=function(e,n){this.ii(e,this.Xc(n))},l.Mc=function(e){return M$(this,e)},l.li=function(e,n){return n},l._c=function(e,n){return u4(this,e,n)},l.Ib=function(){return zyt(this)},l.ni=function(){return!0},l.oi=function(e,n){return Q8(this,n)},N(Ja,"AbstractEList",67),M(63,67,Id,J5,Gv,zmt),l.Vh=function(e,n){return vst(this,e,n)},l.Wh=function(e){return xie(this,e)},l.Xh=function(e,n){$D(this,e,n)},l.Yh=function(e){cD(this,e)},l.pi=function(e){return cmt(this,e)},l.$b=function(){I_(this)},l.Hc=function(e){return f7(this,e)},l.Xb=function(e){return St(this,e)},l.qi=function(e){var n,r,s;++this.j,r=this.g==null?0:this.g.length,e>r&&(s=this.g,n=r+(r/2|0)+4,n=0?(this.$c(n),!0):!1},l.mi=function(e,n){return this.Ui(e,this.oi(e,n))},l.gc=function(){return this.Vi()},l.Pc=function(){return this.Wi()},l.Qc=function(e){return this.Xi(e)},l.Ib=function(){return this.Yi()},N(Ja,"DelegatingEList",1995),M(1996,1995,pde),l.Vh=function(e,n){return I5t(this,e,n)},l.Wh=function(e){return this.Vh(this.Vi(),e)},l.Xh=function(e,n){ioe(this,e,n)},l.Yh=function(e){Yae(this,e)},l.ai=function(){return!this.bj()},l.$b=function(){mC(this)},l.Zi=function(e,n,r,s,o){return new oXt(this,e,n,r,s,o)},l.$i=function(e){Oi(this.Ai(),e)},l._i=function(){return null},l.aj=function(){return-1},l.Ai=function(){return null},l.bj=function(){return!1},l.cj=function(e,n){return n},l.dj=function(e,n){return n},l.ej=function(){return!1},l.fj=function(){return!this.Ri()},l.ii=function(e,n){var r,s;return this.ej()?(s=this.fj(),r=l4t(this,e,n),this.$i(this.Zi(7,pe(n),r,e,s)),r):l4t(this,e,n)},l.$c=function(e){var n,r,s,o;return this.ej()?(r=null,s=this.fj(),n=this.Zi(4,o=Ej(this,e),null,e,s),this.bj()&&o?(r=this.dj(o,r),r?(r.Ei(n),r.Fi()):this.$i(n)):r?(r.Ei(n),r.Fi()):this.$i(n),o):(o=Ej(this,e),this.bj()&&o&&(r=this.dj(o,null),r&&r.Fi()),o)},l.mi=function(e,n){return fue(this,e,n)},N(xx,"DelegatingNotifyingListImpl",1996),M(143,1,XI),l.Ei=function(e){return Q3t(this,e)},l.Fi=function(){Nrt(this)},l.xi=function(){return this.d},l._i=function(){return null},l.gj=function(){return null},l.yi=function(e){return-1},l.zi=function(){return Zoe(this)},l.Ai=function(){return null},l.Bi=function(){return d5t(this)},l.Ci=function(){return this.o<0?this.o<-2?-2-this.o-1:-1:this.o},l.hj=function(){return!1},l.Di=function(e){var n,r,s,o,h,d,w,k,_,L,F;switch(this.d){case 1:case 2:switch(o=e.xi(),o){case 1:case 2:if(h=e.Ai(),qt(h)===qt(this.Ai())&&this.yi(null)==e.yi(null))return this.g=e.zi(),e.xi()==1&&(this.d=1),!0}case 4:{switch(o=e.xi(),o){case 4:{if(h=e.Ai(),qt(h)===qt(this.Ai())&&this.yi(null)==e.yi(null))return _=Y5t(this),k=this.o<0?this.o<-2?-2-this.o-1:-1:this.o,d=e.Ci(),this.d=6,F=new Gv(2),k<=d?(Hr(F,this.n),Hr(F,e.Bi()),this.g=ct(ot(Br,1),oi,25,15,[this.o=k,d+1])):(Hr(F,e.Bi()),Hr(F,this.n),this.g=ct(ot(Br,1),oi,25,15,[this.o=d,k])),this.n=F,_||(this.o=-2-this.o-1),!0;break}}break}case 6:{switch(o=e.xi(),o){case 4:{if(h=e.Ai(),qt(h)===qt(this.Ai())&&this.yi(null)==e.yi(null)){for(_=Y5t(this),d=e.Ci(),L=u(this.g,48),s=Ot(Br,oi,25,L.length+1,15,1),n=0;n>>0,n.toString(16))),s.a+=" (eventType: ",this.d){case 1:{s.a+="SET";break}case 2:{s.a+="UNSET";break}case 3:{s.a+="ADD";break}case 5:{s.a+="ADD_MANY";break}case 4:{s.a+="REMOVE";break}case 6:{s.a+="REMOVE_MANY";break}case 7:{s.a+="MOVE";break}case 8:{s.a+="REMOVING_ADAPTER";break}case 9:{s.a+="RESOLVE";break}default:{Qtt(s,this.d);break}}if($ce(this)&&(s.a+=", touch: true"),s.a+=", position: ",Qtt(s,this.o<0?this.o<-2?-2-this.o-1:-1:this.o),s.a+=", notifier: ",e_(s,this.Ai()),s.a+=", feature: ",e_(s,this._i()),s.a+=", oldValue: ",e_(s,d5t(this)),s.a+=", newValue: ",this.d==6&&Et(this.g,48)){for(r=u(this.g,48),s.a+="[",e=0;e10?((!this.b||this.c.j!=this.a)&&(this.b=new g_(this),this.a=this.j),C0(this.b,e)):f7(this,e)},l.ni=function(){return!0},l.a=0,N(Ja,"AbstractEList/1",953),M(295,73,Wat,Bm),N(Ja,"AbstractEList/BasicIndexOutOfBoundsException",295),M(40,1,va,lr),l.Nb=function(e){Da(this,e)},l.mj=function(){if(this.i.j!=this.f)throw et(new uh)},l.nj=function(){return kr(this)},l.Ob=function(){return this.e!=this.i.gc()},l.Pb=function(){return this.nj()},l.Qb=function(){rC(this)},l.e=0,l.f=0,l.g=-1,N(Ja,"AbstractEList/EIterator",40),M(278,40,n0,A6,Mnt),l.Qb=function(){rC(this)},l.Rb=function(e){Ere(this,e)},l.oj=function(){var e;try{return e=this.d.Xb(--this.e),this.mj(),this.g=this.e,e}catch(n){throw n=os(n),Et(n,73)?(this.mj(),et(new _c)):et(n)}},l.pj=function(e){Tie(this,e)},l.Sb=function(){return this.e!=0},l.Tb=function(){return this.e},l.Ub=function(){return this.oj()},l.Vb=function(){return this.e-1},l.Wb=function(e){this.pj(e)},N(Ja,"AbstractEList/EListIterator",278),M(341,40,va,L6),l.nj=function(){return Vit(this)},l.Qb=function(){throw et(new Gr)},N(Ja,"AbstractEList/NonResolvingEIterator",341),M(385,278,n0,NM,Vbt),l.Rb=function(e){throw et(new Gr)},l.nj=function(){var e;try{return e=this.c.ki(this.e),this.mj(),this.g=this.e++,e}catch(n){throw n=os(n),Et(n,73)?(this.mj(),et(new _c)):et(n)}},l.oj=function(){var e;try{return e=this.c.ki(--this.e),this.mj(),this.g=this.e,e}catch(n){throw n=os(n),Et(n,73)?(this.mj(),et(new _c)):et(n)}},l.Qb=function(){throw et(new Gr)},l.Wb=function(e){throw et(new Gr)},N(Ja,"AbstractEList/NonResolvingEListIterator",385),M(1982,67,bde),l.Vh=function(e,n){var r,s,o,h,d,w,k,_,L,F,q;if(o=n.gc(),o!=0){for(_=u(Dn(this.a,4),126),L=_==null?0:_.length,q=L+o,s=fit(this,q),F=L-e,F>0&&qc(_,e,s,e+o,F),k=n.Kc(),d=0;dr)throw et(new Bm(e,r));return new wYt(this,e)},l.$b=function(){var e,n;++this.j,e=u(Dn(this.a,4),126),n=e==null?0:e.length,c7(this,null),_rt(this,n,e)},l.Hc=function(e){var n,r,s,o,h;if(n=u(Dn(this.a,4),126),n!=null){if(e!=null){for(s=n,o=0,h=s.length;o=r)throw et(new Bm(e,r));return n[e]},l.Xc=function(e){var n,r,s;if(n=u(Dn(this.a,4),126),n!=null){if(e!=null){for(r=0,s=n.length;rr)throw et(new Bm(e,r));return new vYt(this,e)},l.ii=function(e,n){var r,s,o;if(r=Dre(this),o=r==null?0:r.length,e>=o)throw et(new Oo(Pct+e+_b+o));if(n>=o)throw et(new Oo(Fct+n+_b+o));return s=r[n],e!=n&&(e0&&qc(e,0,n,0,r),n},l.Qc=function(e){var n,r,s;return n=u(Dn(this.a,4),126),s=n==null?0:n.length,s>0&&(e.lengths&&ds(e,s,null),e};var K3e;N(Ja,"ArrayDelegatingEList",1982),M(1038,40,va,SZt),l.mj=function(){if(this.b.j!=this.f||qt(u(Dn(this.b.a,4),126))!==qt(this.a))throw et(new uh)},l.Qb=function(){rC(this),this.a=u(Dn(this.b.a,4),126)},N(Ja,"ArrayDelegatingEList/EIterator",1038),M(706,278,n0,zKt,vYt),l.mj=function(){if(this.b.j!=this.f||qt(u(Dn(this.b.a,4),126))!==qt(this.a))throw et(new uh)},l.pj=function(e){Tie(this,e),this.a=u(Dn(this.b.a,4),126)},l.Qb=function(){rC(this),this.a=u(Dn(this.b.a,4),126)},N(Ja,"ArrayDelegatingEList/EListIterator",706),M(1039,341,va,AZt),l.mj=function(){if(this.b.j!=this.f||qt(u(Dn(this.b.a,4),126))!==qt(this.a))throw et(new uh)},N(Ja,"ArrayDelegatingEList/NonResolvingEIterator",1039),M(707,385,n0,qKt,wYt),l.mj=function(){if(this.b.j!=this.f||qt(u(Dn(this.b.a,4),126))!==qt(this.a))throw et(new uh)},N(Ja,"ArrayDelegatingEList/NonResolvingEListIterator",707),M(606,295,Wat,Oet),N(Ja,"BasicEList/BasicIndexOutOfBoundsException",606),M(696,63,Id,L2t),l.Vc=function(e,n){throw et(new Gr)},l.Fc=function(e){throw et(new Gr)},l.Wc=function(e,n){throw et(new Gr)},l.Gc=function(e){throw et(new Gr)},l.$b=function(){throw et(new Gr)},l.qi=function(e){throw et(new Gr)},l.Kc=function(){return this.Zh()},l.Yc=function(){return this.$h()},l.Zc=function(e){return this._h(e)},l.ii=function(e,n){throw et(new Gr)},l.ji=function(e,n){throw et(new Gr)},l.$c=function(e){throw et(new Gr)},l.Mc=function(e){throw et(new Gr)},l._c=function(e,n){throw et(new Gr)},N(Ja,"BasicEList/UnmodifiableEList",696),M(705,1,{3:1,20:1,14:1,15:1,58:1,589:1}),l.Vc=function(e,n){JKe(this,e,u(n,42))},l.Fc=function(e){return jYe(this,u(e,42))},l.Jc=function(e){Oa(this,e)},l.Xb=function(e){return u(St(this.c,e),133)},l.ii=function(e,n){return u(this.c.ii(e,n),42)},l.ji=function(e,n){tYe(this,e,u(n,42))},l.Lc=function(){return new kn(null,new Cn(this,16))},l.$c=function(e){return u(this.c.$c(e),42)},l._c=function(e,n){return WJe(this,e,u(n,42))},l.ad=function(e){e4(this,e)},l.Nc=function(){return new Cn(this,16)},l.Oc=function(){return new kn(null,new Cn(this,16))},l.Wc=function(e,n){return this.c.Wc(e,n)},l.Gc=function(e){return this.c.Gc(e)},l.$b=function(){this.c.$b()},l.Hc=function(e){return this.c.Hc(e)},l.Ic=function(e){return MD(this.c,e)},l.qj=function(){var e,n,r;if(this.d==null){for(this.d=Ot(EAt,h8t,63,2*this.f+1,0,1),r=this.e,this.f=0,n=this.c.Kc();n.e!=n.i.gc();)e=u(n.nj(),133),Oz(this,e);this.e=r}},l.Fb=function(e){return dWt(this,e)},l.Hb=function(){return Ymt(this.c)},l.Xc=function(e){return this.c.Xc(e)},l.rj=function(){this.c=new O$t(this)},l.dc=function(){return this.f==0},l.Kc=function(){return this.c.Kc()},l.Yc=function(){return this.c.Yc()},l.Zc=function(e){return this.c.Zc(e)},l.sj=function(){return hD(this)},l.tj=function(e,n,r){return new MWt(e,n,r)},l.uj=function(){return new yp},l.Mc=function(e){return Ute(this,e)},l.gc=function(){return this.f},l.bd=function(e,n){return new Qd(this.c,e,n)},l.Pc=function(){return this.c.Pc()},l.Qc=function(e){return this.c.Qc(e)},l.Ib=function(){return zyt(this.c)},l.e=0,l.f=0,N(Ja,"BasicEMap",705),M(1033,63,Id,O$t),l.bi=function(e,n){FUe(this,u(n,133))},l.ei=function(e,n,r){var s;++(s=this,u(n,133),s).a.e},l.fi=function(e,n){BUe(this,u(n,133))},l.gi=function(e,n,r){CYe(this,u(n,133),u(r,133))},l.di=function(e,n){Fee(this.a)},N(Ja,"BasicEMap/1",1033),M(1034,63,Id,yp),l.ri=function(e){return Ot(K4n,vde,612,e,0,1)},N(Ja,"BasicEMap/2",1034),M(1035,q1,Xu,N$t),l.$b=function(){this.a.c.$b()},l.Hc=function(e){return Pit(this.a,e)},l.Kc=function(){return this.a.f==0?(f8(),uN.a):new pqt(this.a)},l.Mc=function(e){var n;return n=this.a.f,kz(this.a,e),this.a.f!=n},l.gc=function(){return this.a.f},N(Ja,"BasicEMap/3",1035),M(1036,28,by,P$t),l.$b=function(){this.a.c.$b()},l.Hc=function(e){return yce(this.a,e)},l.Kc=function(){return this.a.f==0?(f8(),uN.a):new bqt(this.a)},l.gc=function(){return this.a.f},N(Ja,"BasicEMap/4",1036),M(1037,q1,Xu,F$t),l.$b=function(){this.a.c.$b()},l.Hc=function(e){var n,r,s,o,h,d,w,k,_;if(this.a.f>0&&Et(e,42)&&(this.a.qj(),k=u(e,42),w=k.cd(),o=w==null?0:ns(w),h=Mbt(this.a,o),n=this.a.d[h],n)){for(r=u(n.g,367),_=n.i,d=0;d<_;++d)if(s=r[d],s.Sh()==o&&s.Fb(k))return!0}return!1},l.Kc=function(){return this.a.f==0?(f8(),uN.a):new Unt(this.a)},l.Mc=function(e){return foe(this,e)},l.gc=function(){return this.a.f},N(Ja,"BasicEMap/5",1037),M(613,1,va,Unt),l.Nb=function(e){Da(this,e)},l.Ob=function(){return this.b!=-1},l.Pb=function(){var e;if(this.f.e!=this.c)throw et(new uh);if(this.b==-1)throw et(new _c);return this.d=this.a,this.e=this.b,tse(this),e=u(this.f.d[this.d].g[this.e],133),this.vj(e)},l.Qb=function(){if(this.f.e!=this.c)throw et(new uh);if(this.e==-1)throw et(new qu);this.f.c.Mc(St(this.f.d[this.d],this.e)),this.c=this.f.e,this.e=-1,this.a==this.d&&this.b!=-1&&--this.b},l.vj=function(e){return e},l.a=0,l.b=-1,l.c=0,l.d=0,l.e=0,N(Ja,"BasicEMap/BasicEMapIterator",613),M(1031,613,va,pqt),l.vj=function(e){return e.cd()},N(Ja,"BasicEMap/BasicEMapKeyIterator",1031),M(1032,613,va,bqt),l.vj=function(e){return e.dd()},N(Ja,"BasicEMap/BasicEMapValueIterator",1032),M(1030,1,dw,B$t),l.wc=function(e){$_(this,e)},l.yc=function(e,n,r){return Ait(this,e,n,r)},l.$b=function(){this.a.c.$b()},l._b=function(e){return YVt(this,e)},l.uc=function(e){return yce(this.a,e)},l.vc=function(){return pin(this.a)},l.Fb=function(e){return dWt(this.a,e)},l.xc=function(e){return e1(this.a,e)},l.Hb=function(){return Ymt(this.a.c)},l.dc=function(){return this.a.f==0},l.ec=function(){return bin(this.a)},l.zc=function(e,n){return $z(this.a,e,n)},l.Bc=function(e){return kz(this.a,e)},l.gc=function(){return this.a.f},l.Ib=function(){return zyt(this.a.c)},l.Cc=function(){return gin(this.a)},N(Ja,"BasicEMap/DelegatingMap",1030),M(612,1,{42:1,133:1,612:1},MWt),l.Fb=function(e){var n;return Et(e,42)?(n=u(e,42),(this.b!=null?Ni(this.b,n.cd()):qt(this.b)===qt(n.cd()))&&(this.c!=null?Ni(this.c,n.dd()):qt(this.c)===qt(n.dd()))):!1},l.Sh=function(){return this.a},l.cd=function(){return this.b},l.dd=function(){return this.c},l.Hb=function(){return this.a^(this.c==null?0:ns(this.c))},l.Th=function(e){this.a=e},l.Uh=function(e){throw et(new H2)},l.ed=function(e){var n;return n=this.c,this.c=e,n},l.Ib=function(){return this.b+"->"+this.c},l.a=0;var K4n=N(Ja,"BasicEMap/EntryImpl",612);M(536,1,{},Tk),N(Ja,"BasicEMap/View",536);var uN;M(768,1,{}),l.Fb=function(e){return Y4t((pn(),wo),e)},l.Hb=function(){return oyt((pn(),wo))},l.Ib=function(){return Jp((pn(),wo))},N(Ja,"ECollections/BasicEmptyUnmodifiableEList",768),M(1312,1,n0,qF),l.Nb=function(e){Da(this,e)},l.Rb=function(e){throw et(new Gr)},l.Ob=function(){return!1},l.Sb=function(){return!1},l.Pb=function(){throw et(new _c)},l.Tb=function(){return 0},l.Ub=function(){throw et(new _c)},l.Vb=function(){return-1},l.Qb=function(){throw et(new Gr)},l.Wb=function(e){throw et(new Gr)},N(Ja,"ECollections/BasicEmptyUnmodifiableEList/1",1312),M(1310,768,{20:1,14:1,15:1,58:1},Czt),l.Vc=function(e,n){Bqt()},l.Fc=function(e){return Rqt()},l.Wc=function(e,n){return jqt()},l.Gc=function(e){return $qt()},l.$b=function(){zqt()},l.Hc=function(e){return!1},l.Ic=function(e){return!1},l.Jc=function(e){Oa(this,e)},l.Xb=function(e){return I2t((pn(),e)),null},l.Xc=function(e){return-1},l.dc=function(){return!0},l.Kc=function(){return this.a},l.Yc=function(){return this.a},l.Zc=function(e){return this.a},l.ii=function(e,n){return qqt()},l.ji=function(e,n){Hqt()},l.Lc=function(){return new kn(null,new Cn(this,16))},l.$c=function(e){return Vqt()},l.Mc=function(e){return Gqt()},l._c=function(e,n){return Uqt()},l.gc=function(){return 0},l.ad=function(e){e4(this,e)},l.Nc=function(){return new Cn(this,16)},l.Oc=function(){return new kn(null,new Cn(this,16))},l.bd=function(e,n){return pn(),new Qd(wo,e,n)},l.Pc=function(){return Ivt((pn(),wo))},l.Qc=function(e){return pn(),YD(wo,e)},N(Ja,"ECollections/EmptyUnmodifiableEList",1310),M(1311,768,{20:1,14:1,15:1,58:1,589:1},Szt),l.Vc=function(e,n){Bqt()},l.Fc=function(e){return Rqt()},l.Wc=function(e,n){return jqt()},l.Gc=function(e){return $qt()},l.$b=function(){zqt()},l.Hc=function(e){return!1},l.Ic=function(e){return!1},l.Jc=function(e){Oa(this,e)},l.Xb=function(e){return I2t((pn(),e)),null},l.Xc=function(e){return-1},l.dc=function(){return!0},l.Kc=function(){return this.a},l.Yc=function(){return this.a},l.Zc=function(e){return this.a},l.ii=function(e,n){return qqt()},l.ji=function(e,n){Hqt()},l.Lc=function(){return new kn(null,new Cn(this,16))},l.$c=function(e){return Vqt()},l.Mc=function(e){return Gqt()},l._c=function(e,n){return Uqt()},l.gc=function(){return 0},l.ad=function(e){e4(this,e)},l.Nc=function(){return new Cn(this,16)},l.Oc=function(){return new kn(null,new Cn(this,16))},l.bd=function(e,n){return pn(),new Qd(wo,e,n)},l.Pc=function(){return Ivt((pn(),wo))},l.Qc=function(e){return pn(),YD(wo,e)},l.sj=function(){return pn(),pn(),u0},N(Ja,"ECollections/EmptyUnmodifiableEMap",1311);var _At=ls(Ja,"Enumerator"),WG;M(281,1,{281:1},Hst),l.Fb=function(e){var n;return this===e?!0:Et(e,281)?(n=u(e,281),this.f==n.f&&gJe(this.i,n.i)&&bnt(this.a,this.f&256?n.f&256?n.a:null:n.f&256?null:n.a)&&bnt(this.d,n.d)&&bnt(this.g,n.g)&&bnt(this.e,n.e)&&cln(this,n)):!1},l.Hb=function(){return this.f},l.Ib=function(){return Qce(this)},l.f=0;var Y3e=0,X3e=0,Q3e=0,Z3e=0,CAt=0,SAt=0,AAt=0,LAt=0,MAt=0,J3e,ZS=0,JS=0,t4e=0,e4e=0,KG,DAt;N(Ja,"URI",281),M(1091,43,C4,Azt),l.zc=function(e,n){return u(Po(this,Kr(e),u(n,281)),281)},N(Ja,"URI/URICache",1091),M(497,63,Id,_k,_j),l.hi=function(){return!0},N(Ja,"UniqueEList",497),M(581,60,G0,S$),N(Ja,"WrappedException",581);var li=ls(xh,yde),Yy=ls(xh,xde),ju=ls(xh,kde),Xy=ls(xh,Ede),l1=ls(xh,Tde),Zh=ls(xh,"EClass"),dft=ls(xh,"EDataType"),n4e;M(1183,43,C4,Lzt),l.xc=function(e){return pa(e)?Uc(this,e):gc(qo(this.f,e))},N(xh,"EDataType/Internal/ConversionDelegate/Factory/Registry/Impl",1183);var YG=ls(xh,"EEnum"),tg=ls(xh,_de),Co=ls(xh,Cde),Jh=ls(xh,Sde),tf,Rw=ls(xh,Ade),Qy=ls(xh,Lde);M(1029,1,{},OZ),l.Ib=function(){return"NIL"},N(xh,"EStructuralFeature/Internal/DynamicValueHolder/1",1029);var r4e;M(1028,43,C4,Mzt),l.xc=function(e){return pa(e)?Uc(this,e):gc(qo(this.f,e))},N(xh,"EStructuralFeature/Internal/SettingDelegate/Factory/Registry/Impl",1028);var wu=ls(xh,Mde),Vx=ls(xh,"EValidator/PatternMatcher"),IAt,OAt,Ln,Zg,Zy,S2,i4e,s4e,a4e,A2,Jg,L2,jw,J1,o4e,c4e,ef,tp,u4e,ep,Jy,c5,uo,l4e,h4e,$w,XG=ls(Ji,"FeatureMap/Entry");M(535,1,{72:1},VR),l.ak=function(){return this.a},l.dd=function(){return this.b},N(Mn,"BasicEObjectImpl/1",535),M(1027,1,qct,qVt),l.Wj=function(e){return Ert(this.a,this.b,e)},l.fj=function(){return kXt(this.a,this.b)},l.Wb=function(e){gwt(this.a,this.b,e)},l.Xj=function(){ltn(this.a,this.b)},N(Mn,"BasicEObjectImpl/4",1027),M(1983,1,{108:1}),l.bk=function(e){this.e=e==0?f4e:Ot(nr,De,1,e,5,1)},l.Ch=function(e){return this.e[e]},l.Dh=function(e,n){this.e[e]=n},l.Eh=function(e){this.e[e]=null},l.ck=function(){return this.c},l.dk=function(){throw et(new Gr)},l.ek=function(){throw et(new Gr)},l.fk=function(){return this.d},l.gk=function(){return this.e!=null},l.hk=function(e){this.c=e},l.ik=function(e){throw et(new Gr)},l.jk=function(e){throw et(new Gr)},l.kk=function(e){this.d=e};var f4e;N(Mn,"BasicEObjectImpl/EPropertiesHolderBaseImpl",1983),M(185,1983,{108:1},ch),l.dk=function(){return this.a},l.ek=function(){return this.b},l.ik=function(e){this.a=e},l.jk=function(e){this.b=e},N(Mn,"BasicEObjectImpl/EPropertiesHolderImpl",185),M(506,97,D1e,Ck),l.Kg=function(){return this.f},l.Pg=function(){return this.k},l.Rg=function(e,n){this.g=e,this.i=n},l.Tg=function(){return this.j&2?this.ph().ck():this.zh()},l.Vg=function(){return this.i},l.Mg=function(){return(this.j&1)!=0},l.eh=function(){return this.g},l.kh=function(){return(this.j&4)!=0},l.ph=function(){return!this.k&&(this.k=new ch),this.k},l.th=function(e){this.ph().hk(e),e?this.j|=2:this.j&=-3},l.vh=function(e){this.ph().jk(e),e?this.j|=4:this.j&=-5},l.zh=function(){return(zp(),Ln).S},l.i=0,l.j=1,N(Mn,"EObjectImpl",506),M(780,506,{105:1,92:1,90:1,56:1,108:1,49:1,97:1},gvt),l.Ch=function(e){return this.e[e]},l.Dh=function(e,n){this.e[e]=n},l.Eh=function(e){this.e[e]=null},l.Tg=function(){return this.d},l.Yg=function(e){return is(this.d,e)},l.$g=function(){return this.d},l.dh=function(){return this.e!=null},l.ph=function(){return!this.k&&(this.k=new HF),this.k},l.th=function(e){this.d=e},l.yh=function(){var e;return this.e==null&&(e=ar(this.d),this.e=e==0?d4e:Ot(nr,De,1,e,5,1)),this},l.Ah=function(){return 0};var d4e;N(Mn,"DynamicEObjectImpl",780),M(1376,780,{105:1,42:1,92:1,90:1,133:1,56:1,108:1,49:1,97:1},rKt),l.Fb=function(e){return this===e},l.Hb=function(){return Av(this)},l.th=function(e){this.d=e,this.b=dI(e,"key"),this.c=dI(e,HC)},l.Sh=function(){var e;return this.a==-1&&(e=Prt(this,this.b),this.a=e==null?0:ns(e)),this.a},l.cd=function(){return Prt(this,this.b)},l.dd=function(){return Prt(this,this.c)},l.Th=function(e){this.a=e},l.Uh=function(e){gwt(this,this.b,e)},l.ed=function(e){var n;return n=Prt(this,this.c),gwt(this,this.c,e),n},l.a=0,N(Mn,"DynamicEObjectImpl/BasicEMapEntry",1376),M(1377,1,{108:1},HF),l.bk=function(e){throw et(new Gr)},l.Ch=function(e){throw et(new Gr)},l.Dh=function(e,n){throw et(new Gr)},l.Eh=function(e){throw et(new Gr)},l.ck=function(){throw et(new Gr)},l.dk=function(){return this.a},l.ek=function(){return this.b},l.fk=function(){return this.c},l.gk=function(){throw et(new Gr)},l.hk=function(e){throw et(new Gr)},l.ik=function(e){this.a=e},l.jk=function(e){this.b=e},l.kk=function(e){this.c=e},N(Mn,"DynamicEObjectImpl/DynamicEPropertiesHolderImpl",1377),M(510,150,{105:1,92:1,90:1,590:1,147:1,56:1,108:1,49:1,97:1,510:1,150:1,114:1,115:1},VF),l.Qg=function(e){return O3t(this,e)},l._g=function(e,n,r){var s;switch(e){case 0:return!this.Ab&&(this.Ab=new he(li,this,0,3)),this.Ab;case 1:return this.d;case 2:return r?(!this.b&&(this.b=new Ml((hn(),uo),xc,this)),this.b):(!this.b&&(this.b=new Ml((hn(),uo),xc,this)),hD(this.b));case 3:return SXt(this);case 4:return!this.a&&(this.a=new qs(T2,this,4)),this.a;case 5:return!this.c&&(this.c=new U3(T2,this,5)),this.c}return ph(this,e-ar((hn(),Zg)),wn((s=u(Dn(this,16),26),s||Zg),e),n,r)},l.hh=function(e,n,r){var s,o,h;switch(n){case 0:return!this.Ab&&(this.Ab=new he(li,this,0,3)),au(this.Ab,e,r);case 3:return this.Cb&&(r=(o=this.Db>>16,o>=0?O3t(this,r):this.Cb.ih(this,-1-o,null,r))),Mvt(this,u(e,147),r)}return h=u(wn((s=u(Dn(this,16),26),s||(hn(),Zg)),n),66),h.Nj().Qj(this,fu(this),n-ar((hn(),Zg)),e,r)},l.jh=function(e,n,r){var s,o;switch(n){case 0:return!this.Ab&&(this.Ab=new he(li,this,0,3)),Za(this.Ab,e,r);case 2:return!this.b&&(this.b=new Ml((hn(),uo),xc,this)),dj(this.b,e,r);case 3:return Mvt(this,null,r);case 4:return!this.a&&(this.a=new qs(T2,this,4)),Za(this.a,e,r)}return o=u(wn((s=u(Dn(this,16),26),s||(hn(),Zg)),n),66),o.Nj().Rj(this,fu(this),n-ar((hn(),Zg)),e,r)},l.lh=function(e){var n;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.d!=null;case 2:return!!this.b&&this.b.f!=0;case 3:return!!SXt(this);case 4:return!!this.a&&this.a.i!=0;case 5:return!!this.c&&this.c.i!=0}return dh(this,e-ar((hn(),Zg)),wn((n=u(Dn(this,16),26),n||Zg),e))},l.sh=function(e,n){var r;switch(e){case 0:!this.Ab&&(this.Ab=new he(li,this,0,3)),Ir(this.Ab),!this.Ab&&(this.Ab=new he(li,this,0,3)),vs(this.Ab,u(n,14));return;case 1:JZe(this,Kr(n));return;case 2:!this.b&&(this.b=new Ml((hn(),uo),xc,this)),ez(this.b,n);return;case 3:zoe(this,u(n,147));return;case 4:!this.a&&(this.a=new qs(T2,this,4)),Ir(this.a),!this.a&&(this.a=new qs(T2,this,4)),vs(this.a,u(n,14));return;case 5:!this.c&&(this.c=new U3(T2,this,5)),Ir(this.c),!this.c&&(this.c=new U3(T2,this,5)),vs(this.c,u(n,14));return}yh(this,e-ar((hn(),Zg)),wn((r=u(Dn(this,16),26),r||Zg),e),n)},l.zh=function(){return hn(),Zg},l.Bh=function(e){var n;switch(e){case 0:!this.Ab&&(this.Ab=new he(li,this,0,3)),Ir(this.Ab);return;case 1:Nmt(this,null);return;case 2:!this.b&&(this.b=new Ml((hn(),uo),xc,this)),this.b.c.$b();return;case 3:zoe(this,null);return;case 4:!this.a&&(this.a=new qs(T2,this,4)),Ir(this.a);return;case 5:!this.c&&(this.c=new U3(T2,this,5)),Ir(this.c);return}wh(this,e-ar((hn(),Zg)),wn((n=u(Dn(this,16),26),n||Zg),e))},l.Ib=function(){return nre(this)},l.d=null,N(Mn,"EAnnotationImpl",510),M(151,705,f8t,Nl),l.Xh=function(e,n){PKe(this,e,u(n,42))},l.lk=function(e,n){return LXe(this,u(e,42),n)},l.pi=function(e){return u(u(this.c,69).pi(e),133)},l.Zh=function(){return u(this.c,69).Zh()},l.$h=function(){return u(this.c,69).$h()},l._h=function(e){return u(this.c,69)._h(e)},l.mk=function(e,n){return dj(this,e,n)},l.Wj=function(e){return u(this.c,76).Wj(e)},l.rj=function(){},l.fj=function(){return u(this.c,76).fj()},l.tj=function(e,n,r){var s;return s=u(Vl(this.b).Nh().Jh(this.b),133),s.Th(e),s.Uh(n),s.ed(r),s},l.uj=function(){return new Jgt(this)},l.Wb=function(e){ez(this,e)},l.Xj=function(){u(this.c,76).Xj()},N(Ji,"EcoreEMap",151),M(158,151,f8t,Ml),l.qj=function(){var e,n,r,s,o,h;if(this.d==null){for(h=Ot(EAt,h8t,63,2*this.f+1,0,1),r=this.c.Kc();r.e!=r.i.gc();)n=u(r.nj(),133),s=n.Sh(),o=(s&Di)%h.length,e=h[o],!e&&(e=h[o]=new Jgt(this)),e.Fc(n);this.d=h}},N(Mn,"EAnnotationImpl/1",158),M(284,438,{105:1,92:1,90:1,147:1,191:1,56:1,108:1,472:1,49:1,97:1,150:1,284:1,114:1,115:1}),l._g=function(e,n,r){var s,o;switch(e){case 0:return!this.Ab&&(this.Ab=new he(li,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Rn(),!!(this.Bb&256);case 3:return Rn(),!!(this.Bb&512);case 4:return pe(this.s);case 5:return pe(this.t);case 6:return Rn(),!!this.$j();case 7:return Rn(),o=this.s,o>=1;case 8:return n?Bh(this):this.r;case 9:return this.q}return ph(this,e-ar(this.zh()),wn((s=u(Dn(this,16),26),s||this.zh()),e),n,r)},l.jh=function(e,n,r){var s,o;switch(n){case 0:return!this.Ab&&(this.Ab=new he(li,this,0,3)),Za(this.Ab,e,r);case 9:return Ont(this,r)}return o=u(wn((s=u(Dn(this,16),26),s||this.zh()),n),66),o.Nj().Rj(this,fu(this),n-ar(this.zh()),e,r)},l.lh=function(e){var n,r;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return this.$j();case 7:return r=this.s,r>=1;case 8:return!!this.r&&!this.q.e&&Fv(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Fv(this.q).i==0)}return dh(this,e-ar(this.zh()),wn((n=u(Dn(this,16),26),n||this.zh()),e))},l.sh=function(e,n){var r,s;switch(e){case 0:!this.Ab&&(this.Ab=new he(li,this,0,3)),Ir(this.Ab),!this.Ab&&(this.Ab=new he(li,this,0,3)),vs(this.Ab,u(n,14));return;case 1:this.Lh(Kr(n));return;case 2:Og(this,Re(Be(n)));return;case 3:Ng(this,Re(Be(n)));return;case 4:Mg(this,u(n,19).a);return;case 5:this.ok(u(n,19).a);return;case 8:lb(this,u(n,138));return;case 9:s=z1(this,u(n,87),null),s&&s.Fi();return}yh(this,e-ar(this.zh()),wn((r=u(Dn(this,16),26),r||this.zh()),e),n)},l.zh=function(){return hn(),h4e},l.Bh=function(e){var n,r;switch(e){case 0:!this.Ab&&(this.Ab=new he(li,this,0,3)),Ir(this.Ab);return;case 1:this.Lh(null);return;case 2:Og(this,!0);return;case 3:Ng(this,!0);return;case 4:Mg(this,0);return;case 5:this.ok(1);return;case 8:lb(this,null);return;case 9:r=z1(this,null,null),r&&r.Fi();return}wh(this,e-ar(this.zh()),wn((n=u(Dn(this,16),26),n||this.zh()),e))},l.Gh=function(){Bh(this),this.Bb|=1},l.Yj=function(){return Bh(this)},l.Zj=function(){return this.t},l.$j=function(){var e;return e=this.t,e>1||e==-1},l.hi=function(){return(this.Bb&512)!=0},l.nk=function(e,n){return Ayt(this,e,n)},l.ok=function(e){Zm(this,e)},l.Ib=function(){return j4t(this)},l.s=0,l.t=1,N(Mn,"ETypedElementImpl",284),M(449,284,{105:1,92:1,90:1,147:1,191:1,56:1,170:1,66:1,108:1,472:1,49:1,97:1,150:1,449:1,284:1,114:1,115:1,677:1}),l.Qg=function(e){return Rie(this,e)},l._g=function(e,n,r){var s,o;switch(e){case 0:return!this.Ab&&(this.Ab=new he(li,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Rn(),!!(this.Bb&256);case 3:return Rn(),!!(this.Bb&512);case 4:return pe(this.s);case 5:return pe(this.t);case 6:return Rn(),!!this.$j();case 7:return Rn(),o=this.s,o>=1;case 8:return n?Bh(this):this.r;case 9:return this.q;case 10:return Rn(),!!(this.Bb&Tf);case 11:return Rn(),!!(this.Bb&Cy);case 12:return Rn(),!!(this.Bb&wy);case 13:return this.j;case 14:return m7(this);case 15:return Rn(),!!(this.Bb&Zu);case 16:return Rn(),!!(this.Bb&kd);case 17:return Hm(this)}return ph(this,e-ar(this.zh()),wn((s=u(Dn(this,16),26),s||this.zh()),e),n,r)},l.hh=function(e,n,r){var s,o,h;switch(n){case 0:return!this.Ab&&(this.Ab=new he(li,this,0,3)),au(this.Ab,e,r);case 17:return this.Cb&&(r=(o=this.Db>>16,o>=0?Rie(this,r):this.Cb.ih(this,-1-o,null,r))),Yl(this,e,17,r)}return h=u(wn((s=u(Dn(this,16),26),s||this.zh()),n),66),h.Nj().Qj(this,fu(this),n-ar(this.zh()),e,r)},l.jh=function(e,n,r){var s,o;switch(n){case 0:return!this.Ab&&(this.Ab=new he(li,this,0,3)),Za(this.Ab,e,r);case 9:return Ont(this,r);case 17:return Yl(this,null,17,r)}return o=u(wn((s=u(Dn(this,16),26),s||this.zh()),n),66),o.Nj().Rj(this,fu(this),n-ar(this.zh()),e,r)},l.lh=function(e){var n,r;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return this.$j();case 7:return r=this.s,r>=1;case 8:return!!this.r&&!this.q.e&&Fv(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Fv(this.q).i==0);case 10:return(this.Bb&Tf)==0;case 11:return(this.Bb&Cy)!=0;case 12:return(this.Bb&wy)!=0;case 13:return this.j!=null;case 14:return m7(this)!=null;case 15:return(this.Bb&Zu)!=0;case 16:return(this.Bb&kd)!=0;case 17:return!!Hm(this)}return dh(this,e-ar(this.zh()),wn((n=u(Dn(this,16),26),n||this.zh()),e))},l.sh=function(e,n){var r,s;switch(e){case 0:!this.Ab&&(this.Ab=new he(li,this,0,3)),Ir(this.Ab),!this.Ab&&(this.Ab=new he(li,this,0,3)),vs(this.Ab,u(n,14));return;case 1:ort(this,Kr(n));return;case 2:Og(this,Re(Be(n)));return;case 3:Ng(this,Re(Be(n)));return;case 4:Mg(this,u(n,19).a);return;case 5:this.ok(u(n,19).a);return;case 8:lb(this,u(n,138));return;case 9:s=z1(this,u(n,87),null),s&&s.Fi();return;case 10:n7(this,Re(Be(n)));return;case 11:s7(this,Re(Be(n)));return;case 12:r7(this,Re(Be(n)));return;case 13:M2t(this,Kr(n));return;case 15:i7(this,Re(Be(n)));return;case 16:a7(this,Re(Be(n)));return}yh(this,e-ar(this.zh()),wn((r=u(Dn(this,16),26),r||this.zh()),e),n)},l.zh=function(){return hn(),l4e},l.Bh=function(e){var n,r;switch(e){case 0:!this.Ab&&(this.Ab=new he(li,this,0,3)),Ir(this.Ab);return;case 1:Et(this.Cb,88)&&uy(gl(u(this.Cb,88)),4),su(this,null);return;case 2:Og(this,!0);return;case 3:Ng(this,!0);return;case 4:Mg(this,0);return;case 5:this.ok(1);return;case 8:lb(this,null);return;case 9:r=z1(this,null,null),r&&r.Fi();return;case 10:n7(this,!0);return;case 11:s7(this,!1);return;case 12:r7(this,!1);return;case 13:this.i=null,U$(this,null);return;case 15:i7(this,!1);return;case 16:a7(this,!1);return}wh(this,e-ar(this.zh()),wn((n=u(Dn(this,16),26),n||this.zh()),e))},l.Gh=function(){k8(Bo((Yu(),Pa),this)),Bh(this),this.Bb|=1},l.Gj=function(){return this.f},l.zj=function(){return m7(this)},l.Hj=function(){return Hm(this)},l.Lj=function(){return null},l.pk=function(){return this.k},l.aj=function(){return this.n},l.Mj=function(){return qz(this)},l.Nj=function(){var e,n,r,s,o,h,d,w,k;return this.p||(r=Hm(this),(r.i==null&&xd(r),r.i).length,s=this.Lj(),s&&ar(Hm(s)),o=Bh(this),d=o.Bj(),e=d?d.i&1?d==Tl?Zs:d==Br?to:d==e3?X7:d==wa?ka:d==D2?xw:d==f5?kw:d==tl?kx:tS:d:null,n=m7(this),w=o.zj(),Ocn(this),this.Bb&kd&&((h=$3t((Yu(),Pa),r))&&h!=this||(h=z6(Bo(Pa,this))))?this.p=new VVt(this,h):this.$j()?this.rk()?s?this.Bb&Zu?e?this.sk()?this.p=new X2(47,e,this,s):this.p=new X2(5,e,this,s):this.sk()?this.p=new J2(46,this,s):this.p=new J2(4,this,s):e?this.sk()?this.p=new X2(49,e,this,s):this.p=new X2(7,e,this,s):this.sk()?this.p=new J2(48,this,s):this.p=new J2(6,this,s):this.Bb&Zu?e?e==Ab?this.p=new Tg(50,U3e,this):this.sk()?this.p=new Tg(43,e,this):this.p=new Tg(1,e,this):this.sk()?this.p=new Cg(42,this):this.p=new Cg(0,this):e?e==Ab?this.p=new Tg(41,U3e,this):this.sk()?this.p=new Tg(45,e,this):this.p=new Tg(3,e,this):this.sk()?this.p=new Cg(44,this):this.p=new Cg(2,this):Et(o,148)?e==XG?this.p=new Cg(40,this):this.Bb&512?this.Bb&Zu?e?this.p=new Tg(9,e,this):this.p=new Cg(8,this):e?this.p=new Tg(11,e,this):this.p=new Cg(10,this):this.Bb&Zu?e?this.p=new Tg(13,e,this):this.p=new Cg(12,this):e?this.p=new Tg(15,e,this):this.p=new Cg(14,this):s?(k=s.t,k>1||k==-1?this.sk()?this.Bb&Zu?e?this.p=new X2(25,e,this,s):this.p=new J2(24,this,s):e?this.p=new X2(27,e,this,s):this.p=new J2(26,this,s):this.Bb&Zu?e?this.p=new X2(29,e,this,s):this.p=new J2(28,this,s):e?this.p=new X2(31,e,this,s):this.p=new J2(30,this,s):this.sk()?this.Bb&Zu?e?this.p=new X2(33,e,this,s):this.p=new J2(32,this,s):e?this.p=new X2(35,e,this,s):this.p=new J2(34,this,s):this.Bb&Zu?e?this.p=new X2(37,e,this,s):this.p=new J2(36,this,s):e?this.p=new X2(39,e,this,s):this.p=new J2(38,this,s)):this.sk()?this.Bb&Zu?e?this.p=new Tg(17,e,this):this.p=new Cg(16,this):e?this.p=new Tg(19,e,this):this.p=new Cg(18,this):this.Bb&Zu?e?this.p=new Tg(21,e,this):this.p=new Cg(20,this):e?this.p=new Tg(23,e,this):this.p=new Cg(22,this):this.qk()?this.sk()?this.p=new DWt(u(o,26),this,s):this.p=new dwt(u(o,26),this,s):Et(o,148)?e==XG?this.p=new Cg(40,this):this.Bb&Zu?e?this.p=new LKt(n,w,this,(Nit(),d==Br?$At:d==Tl?PAt:d==D2?zAt:d==e3?jAt:d==wa?RAt:d==f5?qAt:d==tl?FAt:d==Sh?BAt:bft)):this.p=new zYt(u(o,148),n,w,this):e?this.p=new AKt(n,w,this,(Nit(),d==Br?$At:d==Tl?PAt:d==D2?zAt:d==e3?jAt:d==wa?RAt:d==f5?qAt:d==tl?FAt:d==Sh?BAt:bft)):this.p=new $Yt(u(o,148),n,w,this):this.rk()?s?this.Bb&Zu?this.sk()?this.p=new OWt(u(o,26),this,s):this.p=new ivt(u(o,26),this,s):this.sk()?this.p=new IWt(u(o,26),this,s):this.p=new unt(u(o,26),this,s):this.Bb&Zu?this.sk()?this.p=new AUt(u(o,26),this):this.p=new wbt(u(o,26),this):this.sk()?this.p=new SUt(u(o,26),this):this.p=new Yet(u(o,26),this):this.sk()?s?this.Bb&Zu?this.p=new NWt(u(o,26),this,s):this.p=new nvt(u(o,26),this,s):this.Bb&Zu?this.p=new LUt(u(o,26),this):this.p=new mbt(u(o,26),this):s?this.Bb&Zu?this.p=new PWt(u(o,26),this,s):this.p=new rvt(u(o,26),this,s):this.Bb&Zu?this.p=new MUt(u(o,26),this):this.p=new Cj(u(o,26),this)),this.p},l.Ij=function(){return(this.Bb&Tf)!=0},l.qk=function(){return!1},l.rk=function(){return!1},l.Jj=function(){return(this.Bb&kd)!=0},l.Oj=function(){return Brt(this)},l.sk=function(){return!1},l.Kj=function(){return(this.Bb&Zu)!=0},l.tk=function(e){this.k=e},l.Lh=function(e){ort(this,e)},l.Ib=function(){return aq(this)},l.e=!1,l.n=0,N(Mn,"EStructuralFeatureImpl",449),M(322,449,{105:1,92:1,90:1,34:1,147:1,191:1,56:1,170:1,66:1,108:1,472:1,49:1,97:1,322:1,150:1,449:1,284:1,114:1,115:1,677:1},Ntt),l._g=function(e,n,r){var s,o;switch(e){case 0:return!this.Ab&&(this.Ab=new he(li,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Rn(),!!(this.Bb&256);case 3:return Rn(),!!(this.Bb&512);case 4:return pe(this.s);case 5:return pe(this.t);case 6:return Rn(),!!P4t(this);case 7:return Rn(),o=this.s,o>=1;case 8:return n?Bh(this):this.r;case 9:return this.q;case 10:return Rn(),!!(this.Bb&Tf);case 11:return Rn(),!!(this.Bb&Cy);case 12:return Rn(),!!(this.Bb&wy);case 13:return this.j;case 14:return m7(this);case 15:return Rn(),!!(this.Bb&Zu);case 16:return Rn(),!!(this.Bb&kd);case 17:return Hm(this);case 18:return Rn(),!!(this.Bb&Ac);case 19:return n?eit(this):zZt(this)}return ph(this,e-ar((hn(),Zy)),wn((s=u(Dn(this,16),26),s||Zy),e),n,r)},l.lh=function(e){var n,r;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return P4t(this);case 7:return r=this.s,r>=1;case 8:return!!this.r&&!this.q.e&&Fv(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Fv(this.q).i==0);case 10:return(this.Bb&Tf)==0;case 11:return(this.Bb&Cy)!=0;case 12:return(this.Bb&wy)!=0;case 13:return this.j!=null;case 14:return m7(this)!=null;case 15:return(this.Bb&Zu)!=0;case 16:return(this.Bb&kd)!=0;case 17:return!!Hm(this);case 18:return(this.Bb&Ac)!=0;case 19:return!!zZt(this)}return dh(this,e-ar((hn(),Zy)),wn((n=u(Dn(this,16),26),n||Zy),e))},l.sh=function(e,n){var r,s;switch(e){case 0:!this.Ab&&(this.Ab=new he(li,this,0,3)),Ir(this.Ab),!this.Ab&&(this.Ab=new he(li,this,0,3)),vs(this.Ab,u(n,14));return;case 1:ort(this,Kr(n));return;case 2:Og(this,Re(Be(n)));return;case 3:Ng(this,Re(Be(n)));return;case 4:Mg(this,u(n,19).a);return;case 5:mqt(this,u(n,19).a);return;case 8:lb(this,u(n,138));return;case 9:s=z1(this,u(n,87),null),s&&s.Fi();return;case 10:n7(this,Re(Be(n)));return;case 11:s7(this,Re(Be(n)));return;case 12:r7(this,Re(Be(n)));return;case 13:M2t(this,Kr(n));return;case 15:i7(this,Re(Be(n)));return;case 16:a7(this,Re(Be(n)));return;case 18:Cit(this,Re(Be(n)));return}yh(this,e-ar((hn(),Zy)),wn((r=u(Dn(this,16),26),r||Zy),e),n)},l.zh=function(){return hn(),Zy},l.Bh=function(e){var n,r;switch(e){case 0:!this.Ab&&(this.Ab=new he(li,this,0,3)),Ir(this.Ab);return;case 1:Et(this.Cb,88)&&uy(gl(u(this.Cb,88)),4),su(this,null);return;case 2:Og(this,!0);return;case 3:Ng(this,!0);return;case 4:Mg(this,0);return;case 5:this.b=0,Zm(this,1);return;case 8:lb(this,null);return;case 9:r=z1(this,null,null),r&&r.Fi();return;case 10:n7(this,!0);return;case 11:s7(this,!1);return;case 12:r7(this,!1);return;case 13:this.i=null,U$(this,null);return;case 15:i7(this,!1);return;case 16:a7(this,!1);return;case 18:Cit(this,!1);return}wh(this,e-ar((hn(),Zy)),wn((n=u(Dn(this,16),26),n||Zy),e))},l.Gh=function(){eit(this),k8(Bo((Yu(),Pa),this)),Bh(this),this.Bb|=1},l.$j=function(){return P4t(this)},l.nk=function(e,n){return this.b=0,this.a=null,Ayt(this,e,n)},l.ok=function(e){mqt(this,e)},l.Ib=function(){var e;return this.Db&64?aq(this):(e=new Ih(aq(this)),e.a+=" (iD: ",xg(e,(this.Bb&Ac)!=0),e.a+=")",e.a)},l.b=0,N(Mn,"EAttributeImpl",322),M(351,438,{105:1,92:1,90:1,138:1,147:1,191:1,56:1,108:1,49:1,97:1,351:1,150:1,114:1,115:1,676:1}),l.uk=function(e){return e.Tg()==this},l.Qg=function(e){return ast(this,e)},l.Rg=function(e,n){this.w=null,this.Db=n<<16|this.Db&255,this.Cb=e},l._g=function(e,n,r){var s;switch(e){case 0:return!this.Ab&&(this.Ab=new he(li,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return sw(this);case 4:return this.zj();case 5:return this.F;case 6:return n?Vl(this):_8(this);case 7:return!this.A&&(this.A=new Vu(wu,this,7)),this.A}return ph(this,e-ar(this.zh()),wn((s=u(Dn(this,16),26),s||this.zh()),e),n,r)},l.hh=function(e,n,r){var s,o,h;switch(n){case 0:return!this.Ab&&(this.Ab=new he(li,this,0,3)),au(this.Ab,e,r);case 6:return this.Cb&&(r=(o=this.Db>>16,o>=0?ast(this,r):this.Cb.ih(this,-1-o,null,r))),Yl(this,e,6,r)}return h=u(wn((s=u(Dn(this,16),26),s||this.zh()),n),66),h.Nj().Qj(this,fu(this),n-ar(this.zh()),e,r)},l.jh=function(e,n,r){var s,o;switch(n){case 0:return!this.Ab&&(this.Ab=new he(li,this,0,3)),Za(this.Ab,e,r);case 6:return Yl(this,null,6,r);case 7:return!this.A&&(this.A=new Vu(wu,this,7)),Za(this.A,e,r)}return o=u(wn((s=u(Dn(this,16),26),s||this.zh()),n),66),o.Nj().Rj(this,fu(this),n-ar(this.zh()),e,r)},l.lh=function(e){var n;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!sw(this);case 4:return this.zj()!=null;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!_8(this);case 7:return!!this.A&&this.A.i!=0}return dh(this,e-ar(this.zh()),wn((n=u(Dn(this,16),26),n||this.zh()),e))},l.sh=function(e,n){var r;switch(e){case 0:!this.Ab&&(this.Ab=new he(li,this,0,3)),Ir(this.Ab),!this.Ab&&(this.Ab=new he(li,this,0,3)),vs(this.Ab,u(n,14));return;case 1:a$(this,Kr(n));return;case 2:Fet(this,Kr(n));return;case 5:_7(this,Kr(n));return;case 7:!this.A&&(this.A=new Vu(wu,this,7)),Ir(this.A),!this.A&&(this.A=new Vu(wu,this,7)),vs(this.A,u(n,14));return}yh(this,e-ar(this.zh()),wn((r=u(Dn(this,16),26),r||this.zh()),e),n)},l.zh=function(){return hn(),i4e},l.Bh=function(e){var n;switch(e){case 0:!this.Ab&&(this.Ab=new he(li,this,0,3)),Ir(this.Ab);return;case 1:Et(this.Cb,179)&&(u(this.Cb,179).tb=null),su(this,null);return;case 2:Z8(this,null),$8(this,this.D);return;case 5:_7(this,null);return;case 7:!this.A&&(this.A=new Vu(wu,this,7)),Ir(this.A);return}wh(this,e-ar(this.zh()),wn((n=u(Dn(this,16),26),n||this.zh()),e))},l.yj=function(){var e;return this.G==-1&&(this.G=(e=Vl(this),e?Pg(e.Mh(),this):-1)),this.G},l.zj=function(){return null},l.Aj=function(){return Vl(this)},l.vk=function(){return this.v},l.Bj=function(){return sw(this)},l.Cj=function(){return this.D!=null?this.D:this.B},l.Dj=function(){return this.F},l.wj=function(e){return Zst(this,e)},l.wk=function(e){this.v=e},l.xk=function(e){vee(this,e)},l.yk=function(e){this.C=e},l.Lh=function(e){a$(this,e)},l.Ib=function(){return wz(this)},l.C=null,l.D=null,l.G=-1,N(Mn,"EClassifierImpl",351),M(88,351,{105:1,92:1,90:1,26:1,138:1,147:1,191:1,56:1,108:1,49:1,97:1,88:1,351:1,150:1,473:1,114:1,115:1,676:1},YL),l.uk=function(e){return pXe(this,e.Tg())},l._g=function(e,n,r){var s;switch(e){case 0:return!this.Ab&&(this.Ab=new he(li,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return sw(this);case 4:return null;case 5:return this.F;case 6:return n?Vl(this):_8(this);case 7:return!this.A&&(this.A=new Vu(wu,this,7)),this.A;case 8:return Rn(),!!(this.Bb&256);case 9:return Rn(),!!(this.Bb&512);case 10:return zo(this);case 11:return!this.q&&(this.q=new he(Jh,this,11,10)),this.q;case 12:return k4(this);case 13:return bC(this);case 14:return bC(this),this.r;case 15:return k4(this),this.k;case 16:return _4t(this);case 17:return rat(this);case 18:return xd(this);case 19:return Jz(this);case 20:return k4(this),this.o;case 21:return!this.s&&(this.s=new he(ju,this,21,17)),this.s;case 22:return $c(this);case 23:return qst(this)}return ph(this,e-ar((hn(),S2)),wn((s=u(Dn(this,16),26),s||S2),e),n,r)},l.hh=function(e,n,r){var s,o,h;switch(n){case 0:return!this.Ab&&(this.Ab=new he(li,this,0,3)),au(this.Ab,e,r);case 6:return this.Cb&&(r=(o=this.Db>>16,o>=0?ast(this,r):this.Cb.ih(this,-1-o,null,r))),Yl(this,e,6,r);case 11:return!this.q&&(this.q=new he(Jh,this,11,10)),au(this.q,e,r);case 21:return!this.s&&(this.s=new he(ju,this,21,17)),au(this.s,e,r)}return h=u(wn((s=u(Dn(this,16),26),s||(hn(),S2)),n),66),h.Nj().Qj(this,fu(this),n-ar((hn(),S2)),e,r)},l.jh=function(e,n,r){var s,o;switch(n){case 0:return!this.Ab&&(this.Ab=new he(li,this,0,3)),Za(this.Ab,e,r);case 6:return Yl(this,null,6,r);case 7:return!this.A&&(this.A=new Vu(wu,this,7)),Za(this.A,e,r);case 11:return!this.q&&(this.q=new he(Jh,this,11,10)),Za(this.q,e,r);case 21:return!this.s&&(this.s=new he(ju,this,21,17)),Za(this.s,e,r);case 22:return Za($c(this),e,r)}return o=u(wn((s=u(Dn(this,16),26),s||(hn(),S2)),n),66),o.Nj().Rj(this,fu(this),n-ar((hn(),S2)),e,r)},l.lh=function(e){var n;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!sw(this);case 4:return!1;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!_8(this);case 7:return!!this.A&&this.A.i!=0;case 8:return(this.Bb&256)!=0;case 9:return(this.Bb&512)!=0;case 10:return!!this.u&&$c(this.u.a).i!=0&&!(this.n&&Yit(this.n));case 11:return!!this.q&&this.q.i!=0;case 12:return k4(this).i!=0;case 13:return bC(this).i!=0;case 14:return bC(this),this.r.i!=0;case 15:return k4(this),this.k.i!=0;case 16:return _4t(this).i!=0;case 17:return rat(this).i!=0;case 18:return xd(this).i!=0;case 19:return Jz(this).i!=0;case 20:return k4(this),!!this.o;case 21:return!!this.s&&this.s.i!=0;case 22:return!!this.n&&Yit(this.n);case 23:return qst(this).i!=0}return dh(this,e-ar((hn(),S2)),wn((n=u(Dn(this,16),26),n||S2),e))},l.oh=function(e){var n;return n=this.i==null||this.q&&this.q.i!=0?null:dI(this,e),n||n6t(this,e)},l.sh=function(e,n){var r;switch(e){case 0:!this.Ab&&(this.Ab=new he(li,this,0,3)),Ir(this.Ab),!this.Ab&&(this.Ab=new he(li,this,0,3)),vs(this.Ab,u(n,14));return;case 1:a$(this,Kr(n));return;case 2:Fet(this,Kr(n));return;case 5:_7(this,Kr(n));return;case 7:!this.A&&(this.A=new Vu(wu,this,7)),Ir(this.A),!this.A&&(this.A=new Vu(wu,this,7)),vs(this.A,u(n,14));return;case 8:Myt(this,Re(Be(n)));return;case 9:Dyt(this,Re(Be(n)));return;case 10:mC(zo(this)),vs(zo(this),u(n,14));return;case 11:!this.q&&(this.q=new he(Jh,this,11,10)),Ir(this.q),!this.q&&(this.q=new he(Jh,this,11,10)),vs(this.q,u(n,14));return;case 21:!this.s&&(this.s=new he(ju,this,21,17)),Ir(this.s),!this.s&&(this.s=new he(ju,this,21,17)),vs(this.s,u(n,14));return;case 22:Ir($c(this)),vs($c(this),u(n,14));return}yh(this,e-ar((hn(),S2)),wn((r=u(Dn(this,16),26),r||S2),e),n)},l.zh=function(){return hn(),S2},l.Bh=function(e){var n;switch(e){case 0:!this.Ab&&(this.Ab=new he(li,this,0,3)),Ir(this.Ab);return;case 1:Et(this.Cb,179)&&(u(this.Cb,179).tb=null),su(this,null);return;case 2:Z8(this,null),$8(this,this.D);return;case 5:_7(this,null);return;case 7:!this.A&&(this.A=new Vu(wu,this,7)),Ir(this.A);return;case 8:Myt(this,!1);return;case 9:Dyt(this,!1);return;case 10:this.u&&mC(this.u);return;case 11:!this.q&&(this.q=new he(Jh,this,11,10)),Ir(this.q);return;case 21:!this.s&&(this.s=new he(ju,this,21,17)),Ir(this.s);return;case 22:this.n&&Ir(this.n);return}wh(this,e-ar((hn(),S2)),wn((n=u(Dn(this,16),26),n||S2),e))},l.Gh=function(){var e,n;if(k4(this),bC(this),_4t(this),rat(this),xd(this),Jz(this),qst(this),I_(IZe(gl(this))),this.s)for(e=0,n=this.s.i;e=0;--n)St(this,n);return Jyt(this,e)},l.Xj=function(){Ir(this)},l.oi=function(e,n){return $te(this,e,n)},N(Ji,"EcoreEList",622),M(496,622,tc,UM),l.ai=function(){return!1},l.aj=function(){return this.c},l.bj=function(){return!1},l.Fk=function(){return!0},l.hi=function(){return!0},l.li=function(e,n){return n},l.ni=function(){return!1},l.c=0,N(Ji,"EObjectEList",496),M(85,496,tc,qs),l.bj=function(){return!0},l.Dk=function(){return!1},l.rk=function(){return!0},N(Ji,"EObjectContainmentEList",85),M(545,85,tc,nj),l.ci=function(){this.b=!0},l.fj=function(){return this.b},l.Xj=function(){var e;Ir(this),Ll(this.e)?(e=this.b,this.b=!1,Oi(this.e,new mf(this.e,2,this.c,e,!1))):this.b=!1},l.b=!1,N(Ji,"EObjectContainmentEList/Unsettable",545),M(1140,545,tc,CKt),l.ii=function(e,n){var r,s;return r=u(K_(this,e,n),87),Ll(this.e)&&Kk(this,new dD(this.a,7,(hn(),s4e),pe(n),(s=r.c,Et(s,88)?u(s,26):ef),e)),r},l.jj=function(e,n){return yun(this,u(e,87),n)},l.kj=function(e,n){return mun(this,u(e,87),n)},l.lj=function(e,n,r){return xfn(this,u(e,87),u(n,87),r)},l.Zi=function(e,n,r,s,o){switch(e){case 3:return C_(this,e,n,r,s,this.i>1);case 5:return C_(this,e,n,r,s,this.i-u(r,15).gc()>0);default:return new P0(this.e,e,this.c,n,r,s,!0)}},l.ij=function(){return!0},l.fj=function(){return Yit(this)},l.Xj=function(){Ir(this)},N(Mn,"EClassImpl/1",1140),M(1154,1153,l8t),l.ui=function(e){var n,r,s,o,h,d,w;if(r=e.xi(),r!=8){if(s=rln(e),s==0)switch(r){case 1:case 9:{w=e.Bi(),w!=null&&(n=gl(u(w,473)),!n.c&&(n.c=new mm),M$(n.c,e.Ai())),d=e.zi(),d!=null&&(o=u(d,473),o.Bb&1||(n=gl(o),!n.c&&(n.c=new mm),Hr(n.c,u(e.Ai(),26))));break}case 3:{d=e.zi(),d!=null&&(o=u(d,473),o.Bb&1||(n=gl(o),!n.c&&(n.c=new mm),Hr(n.c,u(e.Ai(),26))));break}case 5:{if(d=e.zi(),d!=null)for(h=u(d,14).Kc();h.Ob();)o=u(h.Pb(),473),o.Bb&1||(n=gl(o),!n.c&&(n.c=new mm),Hr(n.c,u(e.Ai(),26)));break}case 4:{w=e.Bi(),w!=null&&(o=u(w,473),o.Bb&1||(n=gl(o),!n.c&&(n.c=new mm),M$(n.c,e.Ai())));break}case 6:{if(w=e.Bi(),w!=null)for(h=u(w,14).Kc();h.Ob();)o=u(h.Pb(),473),o.Bb&1||(n=gl(o),!n.c&&(n.c=new mm),M$(n.c,e.Ai()));break}}this.Hk(s)}},l.Hk=function(e){_ce(this,e)},l.b=63,N(Mn,"ESuperAdapter",1154),M(1155,1154,l8t,R$t),l.Hk=function(e){uy(this,e)},N(Mn,"EClassImpl/10",1155),M(1144,696,tc),l.Vh=function(e,n){return vst(this,e,n)},l.Wh=function(e){return xie(this,e)},l.Xh=function(e,n){$D(this,e,n)},l.Yh=function(e){cD(this,e)},l.pi=function(e){return cmt(this,e)},l.mi=function(e,n){return Frt(this,e,n)},l.lk=function(e,n){throw et(new Gr)},l.Zh=function(){return new L6(this)},l.$h=function(){return new NM(this)},l._h=function(e){return _D(this,e)},l.mk=function(e,n){throw et(new Gr)},l.Wj=function(e){return this},l.fj=function(){return this.i!=0},l.Wb=function(e){throw et(new Gr)},l.Xj=function(){throw et(new Gr)},N(Ji,"EcoreEList/UnmodifiableEList",1144),M(319,1144,tc,q3),l.ni=function(){return!1},N(Ji,"EcoreEList/UnmodifiableEList/FastCompare",319),M(1147,319,tc,une),l.Xc=function(e){var n,r,s;if(Et(e,170)&&(n=u(e,170),r=n.aj(),r!=-1)){for(s=this.i;r4)if(this.wj(e)){if(this.rk()){if(s=u(e,49),r=s.Ug(),w=r==this.b&&(this.Dk()?s.Og(s.Vg(),u(wn(Su(this.b),this.aj()).Yj(),26).Bj())==bo(u(wn(Su(this.b),this.aj()),18)).n:-1-s.Vg()==this.aj()),this.Ek()&&!w&&!r&&s.Zg()){for(o=0;o1||s==-1)):!1},l.Dk=function(){var e,n,r;return n=wn(Su(this.b),this.aj()),Et(n,99)?(e=u(n,18),r=bo(e),!!r):!1},l.Ek=function(){var e,n;return n=wn(Su(this.b),this.aj()),Et(n,99)?(e=u(n,18),(e.Bb&oo)!=0):!1},l.Xc=function(e){var n,r,s,o;if(s=this.Qi(e),s>=0)return s;if(this.Fk()){for(r=0,o=this.Vi();r=0;--e)kI(this,e,this.Oi(e));return this.Wi()},l.Qc=function(e){var n;if(this.Ek())for(n=this.Vi()-1;n>=0;--n)kI(this,n,this.Oi(n));return this.Xi(e)},l.Xj=function(){mC(this)},l.oi=function(e,n){return TJt(this,e,n)},N(Ji,"DelegatingEcoreEList",742),M(1150,742,g8t,zUt),l.Hi=function(e,n){HYe(this,e,u(n,26))},l.Ii=function(e){BKe(this,u(e,26))},l.Oi=function(e){var n,r;return n=u(St($c(this.a),e),87),r=n.c,Et(r,88)?u(r,26):(hn(),ef)},l.Ti=function(e){var n,r;return n=u(hy($c(this.a),e),87),r=n.c,Et(r,88)?u(r,26):(hn(),ef)},l.Ui=function(e,n){return Vln(this,e,u(n,26))},l.ai=function(){return!1},l.Zi=function(e,n,r,s,o){return null},l.Ji=function(){return new $$t(this)},l.Ki=function(){Ir($c(this.a))},l.Li=function(e){return tre(this,e)},l.Mi=function(e){var n,r;for(r=e.Kc();r.Ob();)if(n=r.Pb(),!tre(this,n))return!1;return!0},l.Ni=function(e){var n,r,s;if(Et(e,15)&&(s=u(e,15),s.gc()==$c(this.a).i)){for(n=s.Kc(),r=new lr(this);n.Ob();)if(qt(n.Pb())!==qt(kr(r)))return!1;return!0}return!1},l.Pi=function(){var e,n,r,s,o;for(r=1,n=new lr($c(this.a));n.e!=n.i.gc();)e=u(kr(n),87),s=(o=e.c,Et(o,88)?u(o,26):(hn(),ef)),r=31*r+(s?Av(s):0);return r},l.Qi=function(e){var n,r,s,o;for(s=0,r=new lr($c(this.a));r.e!=r.i.gc();){if(n=u(kr(r),87),qt(e)===qt((o=n.c,Et(o,88)?u(o,26):(hn(),ef))))return s;++s}return-1},l.Ri=function(){return $c(this.a).i==0},l.Si=function(){return null},l.Vi=function(){return $c(this.a).i},l.Wi=function(){var e,n,r,s,o,h;for(h=$c(this.a).i,o=Ot(nr,De,1,h,5,1),r=0,n=new lr($c(this.a));n.e!=n.i.gc();)e=u(kr(n),87),o[r++]=(s=e.c,Et(s,88)?u(s,26):(hn(),ef));return o},l.Xi=function(e){var n,r,s,o,h,d,w;for(w=$c(this.a).i,e.lengthw&&ds(e,w,null),s=0,r=new lr($c(this.a));r.e!=r.i.gc();)n=u(kr(r),87),h=(d=n.c,Et(d,88)?u(d,26):(hn(),ef)),ds(e,s++,h);return e},l.Yi=function(){var e,n,r,s,o;for(o=new yg,o.a+="[",e=$c(this.a),n=0,s=$c(this.a).i;n>16,o>=0?ast(this,r):this.Cb.ih(this,-1-o,null,r))),Yl(this,e,6,r);case 9:return!this.a&&(this.a=new he(tg,this,9,5)),au(this.a,e,r)}return h=u(wn((s=u(Dn(this,16),26),s||(hn(),A2)),n),66),h.Nj().Qj(this,fu(this),n-ar((hn(),A2)),e,r)},l.jh=function(e,n,r){var s,o;switch(n){case 0:return!this.Ab&&(this.Ab=new he(li,this,0,3)),Za(this.Ab,e,r);case 6:return Yl(this,null,6,r);case 7:return!this.A&&(this.A=new Vu(wu,this,7)),Za(this.A,e,r);case 9:return!this.a&&(this.a=new he(tg,this,9,5)),Za(this.a,e,r)}return o=u(wn((s=u(Dn(this,16),26),s||(hn(),A2)),n),66),o.Nj().Rj(this,fu(this),n-ar((hn(),A2)),e,r)},l.lh=function(e){var n;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!sw(this);case 4:return!!byt(this);case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!_8(this);case 7:return!!this.A&&this.A.i!=0;case 8:return(this.Bb&256)==0;case 9:return!!this.a&&this.a.i!=0}return dh(this,e-ar((hn(),A2)),wn((n=u(Dn(this,16),26),n||A2),e))},l.sh=function(e,n){var r;switch(e){case 0:!this.Ab&&(this.Ab=new he(li,this,0,3)),Ir(this.Ab),!this.Ab&&(this.Ab=new he(li,this,0,3)),vs(this.Ab,u(n,14));return;case 1:a$(this,Kr(n));return;case 2:Fet(this,Kr(n));return;case 5:_7(this,Kr(n));return;case 7:!this.A&&(this.A=new Vu(wu,this,7)),Ir(this.A),!this.A&&(this.A=new Vu(wu,this,7)),vs(this.A,u(n,14));return;case 8:fz(this,Re(Be(n)));return;case 9:!this.a&&(this.a=new he(tg,this,9,5)),Ir(this.a),!this.a&&(this.a=new he(tg,this,9,5)),vs(this.a,u(n,14));return}yh(this,e-ar((hn(),A2)),wn((r=u(Dn(this,16),26),r||A2),e),n)},l.zh=function(){return hn(),A2},l.Bh=function(e){var n;switch(e){case 0:!this.Ab&&(this.Ab=new he(li,this,0,3)),Ir(this.Ab);return;case 1:Et(this.Cb,179)&&(u(this.Cb,179).tb=null),su(this,null);return;case 2:Z8(this,null),$8(this,this.D);return;case 5:_7(this,null);return;case 7:!this.A&&(this.A=new Vu(wu,this,7)),Ir(this.A);return;case 8:fz(this,!0);return;case 9:!this.a&&(this.a=new he(tg,this,9,5)),Ir(this.a);return}wh(this,e-ar((hn(),A2)),wn((n=u(Dn(this,16),26),n||A2),e))},l.Gh=function(){var e,n;if(this.a)for(e=0,n=this.a.i;e>16==5?u(this.Cb,671):null}return ph(this,e-ar((hn(),Jg)),wn((s=u(Dn(this,16),26),s||Jg),e),n,r)},l.hh=function(e,n,r){var s,o,h;switch(n){case 0:return!this.Ab&&(this.Ab=new he(li,this,0,3)),au(this.Ab,e,r);case 5:return this.Cb&&(r=(o=this.Db>>16,o>=0?Uie(this,r):this.Cb.ih(this,-1-o,null,r))),Yl(this,e,5,r)}return h=u(wn((s=u(Dn(this,16),26),s||(hn(),Jg)),n),66),h.Nj().Qj(this,fu(this),n-ar((hn(),Jg)),e,r)},l.jh=function(e,n,r){var s,o;switch(n){case 0:return!this.Ab&&(this.Ab=new he(li,this,0,3)),Za(this.Ab,e,r);case 5:return Yl(this,null,5,r)}return o=u(wn((s=u(Dn(this,16),26),s||(hn(),Jg)),n),66),o.Nj().Rj(this,fu(this),n-ar((hn(),Jg)),e,r)},l.lh=function(e){var n;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.d!=0;case 3:return!!this.b;case 4:return this.c!=null;case 5:return!!(this.Db>>16==5&&u(this.Cb,671))}return dh(this,e-ar((hn(),Jg)),wn((n=u(Dn(this,16),26),n||Jg),e))},l.sh=function(e,n){var r;switch(e){case 0:!this.Ab&&(this.Ab=new he(li,this,0,3)),Ir(this.Ab),!this.Ab&&(this.Ab=new he(li,this,0,3)),vs(this.Ab,u(n,14));return;case 1:su(this,Kr(n));return;case 2:qrt(this,u(n,19).a);return;case 3:zae(this,u(n,1940));return;case 4:Vrt(this,Kr(n));return}yh(this,e-ar((hn(),Jg)),wn((r=u(Dn(this,16),26),r||Jg),e),n)},l.zh=function(){return hn(),Jg},l.Bh=function(e){var n;switch(e){case 0:!this.Ab&&(this.Ab=new he(li,this,0,3)),Ir(this.Ab);return;case 1:su(this,null);return;case 2:qrt(this,0);return;case 3:zae(this,null);return;case 4:Vrt(this,null);return}wh(this,e-ar((hn(),Jg)),wn((n=u(Dn(this,16),26),n||Jg),e))},l.Ib=function(){var e;return e=this.c,e??this.zb},l.b=null,l.c=null,l.d=0,N(Mn,"EEnumLiteralImpl",573);var Y4n=ls(Mn,"EFactoryImpl/InternalEDateTimeFormat");M(489,1,{2015:1},aM),N(Mn,"EFactoryImpl/1ClientInternalEDateTimeFormat",489),M(241,115,{105:1,92:1,90:1,87:1,56:1,108:1,49:1,97:1,241:1,114:1,115:1},pv),l.Sg=function(e,n,r){var s;return r=Yl(this,e,n,r),this.e&&Et(e,170)&&(s=Zz(this,this.e),s!=this.c&&(r=C7(this,s,r))),r},l._g=function(e,n,r){var s;switch(e){case 0:return this.f;case 1:return!this.d&&(this.d=new qs(Co,this,1)),this.d;case 2:return n?uq(this):this.c;case 3:return this.b;case 4:return this.e;case 5:return n?Zit(this):this.a}return ph(this,e-ar((hn(),jw)),wn((s=u(Dn(this,16),26),s||jw),e),n,r)},l.jh=function(e,n,r){var s,o;switch(n){case 0:return Vne(this,null,r);case 1:return!this.d&&(this.d=new qs(Co,this,1)),Za(this.d,e,r);case 3:return Hne(this,null,r)}return o=u(wn((s=u(Dn(this,16),26),s||(hn(),jw)),n),66),o.Nj().Rj(this,fu(this),n-ar((hn(),jw)),e,r)},l.lh=function(e){var n;switch(e){case 0:return!!this.f;case 1:return!!this.d&&this.d.i!=0;case 2:return!!this.c;case 3:return!!this.b;case 4:return!!this.e;case 5:return!!this.a}return dh(this,e-ar((hn(),jw)),wn((n=u(Dn(this,16),26),n||jw),e))},l.sh=function(e,n){var r;switch(e){case 0:lse(this,u(n,87));return;case 1:!this.d&&(this.d=new qs(Co,this,1)),Ir(this.d),!this.d&&(this.d=new qs(Co,this,1)),vs(this.d,u(n,14));return;case 3:Y3t(this,u(n,87));return;case 4:f4t(this,u(n,836));return;case 5:P8(this,u(n,138));return}yh(this,e-ar((hn(),jw)),wn((r=u(Dn(this,16),26),r||jw),e),n)},l.zh=function(){return hn(),jw},l.Bh=function(e){var n;switch(e){case 0:lse(this,null);return;case 1:!this.d&&(this.d=new qs(Co,this,1)),Ir(this.d);return;case 3:Y3t(this,null);return;case 4:f4t(this,null);return;case 5:P8(this,null);return}wh(this,e-ar((hn(),jw)),wn((n=u(Dn(this,16),26),n||jw),e))},l.Ib=function(){var e;return e=new jl(kf(this)),e.a+=" (expression: ",oat(this,e),e.a+=")",e.a};var NAt;N(Mn,"EGenericTypeImpl",241),M(1969,1964,bH),l.Xh=function(e,n){RUt(this,e,n)},l.lk=function(e,n){return RUt(this,this.gc(),e),n},l.pi=function(e){return r1(this.Gi(),e)},l.Zh=function(){return this.$h()},l.Gi=function(){return new V$t(this)},l.$h=function(){return this._h(0)},l._h=function(e){return this.Gi().Zc(e)},l.mk=function(e,n){return ey(this,e,!0),n},l.ii=function(e,n){var r,s;return s=cst(this,n),r=this.Zc(e),r.Rb(s),s},l.ji=function(e,n){var r;ey(this,n,!0),r=this.Zc(e),r.Rb(n)},N(Ji,"AbstractSequentialInternalEList",1969),M(486,1969,bH,OM),l.pi=function(e){return r1(this.Gi(),e)},l.Zh=function(){return this.b==null?(kg(),kg(),lN):this.Jk()},l.Gi=function(){return new uGt(this.a,this.b)},l.$h=function(){return this.b==null?(kg(),kg(),lN):this.Jk()},l._h=function(e){var n,r;if(this.b==null){if(e<0||e>1)throw et(new Oo(VC+e+", size=0"));return kg(),kg(),lN}for(r=this.Jk(),n=0;n0;)if(n=this.c[--this.d],(!this.e||n.Gj()!=D9||n.aj()!=0)&&(!this.Mk()||this.b.mh(n))){if(h=this.b.bh(n,this.Lk()),this.f=(go(),u(n,66).Oj()),this.f||n.$j()){if(this.Lk()?(s=u(h,15),this.k=s):(s=u(h,69),this.k=this.j=s),Et(this.k,54)?(this.o=this.k.gc(),this.n=this.o):this.p=this.j?this.j._h(this.k.gc()):this.k.Zc(this.k.gc()),this.p?nae(this,this.p):gae(this))return o=this.p?this.p.Ub():this.j?this.j.pi(--this.n):this.k.Xb(--this.n),this.f?(e=u(o,72),e.ak(),r=e.dd(),this.i=r):(r=o,this.i=r),this.g=-3,!0}else if(h!=null)return this.k=null,this.p=null,r=h,this.i=r,this.g=-2,!0}return this.k=null,this.p=null,this.g=-1,!1}else return o=this.p?this.p.Ub():this.j?this.j.pi(--this.n):this.k.Xb(--this.n),this.f?(e=u(o,72),e.ak(),r=e.dd(),this.i=r):(r=o,this.i=r),this.g=-3,!0}},l.Pb=function(){return nz(this)},l.Tb=function(){return this.a},l.Ub=function(){var e;if(this.g<-1||this.Sb())return--this.a,this.g=0,e=this.i,this.Sb(),e;throw et(new _c)},l.Vb=function(){return this.a-1},l.Qb=function(){throw et(new Gr)},l.Lk=function(){return!1},l.Wb=function(e){throw et(new Gr)},l.Mk=function(){return!0},l.a=0,l.d=0,l.f=!1,l.g=0,l.n=0,l.o=0;var lN;N(Ji,"EContentsEList/FeatureIteratorImpl",279),M(697,279,vH,vbt),l.Lk=function(){return!0},N(Ji,"EContentsEList/ResolvingFeatureIteratorImpl",697),M(1157,697,vH,CUt),l.Mk=function(){return!1},N(Mn,"ENamedElementImpl/1/1",1157),M(1158,279,vH,_Ut),l.Mk=function(){return!1},N(Mn,"ENamedElementImpl/1/2",1158),M(36,143,XI,Um,prt,la,Mrt,P0,mf,xmt,tQt,kmt,eQt,Uwt,nQt,_mt,rQt,Wwt,iQt,Emt,sQt,m_,dD,Wnt,Tmt,aQt,Kwt,oQt),l._i=function(){return smt(this)},l.gj=function(){var e;return e=smt(this),e?e.zj():null},l.yi=function(e){return this.b==-1&&this.a&&(this.b=this.c.Xg(this.a.aj(),this.a.Gj())),this.c.Og(this.b,e)},l.Ai=function(){return this.c},l.hj=function(){var e;return e=smt(this),e?e.Kj():!1},l.b=-1,N(Mn,"ENotificationImpl",36),M(399,284,{105:1,92:1,90:1,147:1,191:1,56:1,59:1,108:1,472:1,49:1,97:1,150:1,399:1,284:1,114:1,115:1},Ptt),l.Qg=function(e){return Yie(this,e)},l._g=function(e,n,r){var s,o,h;switch(e){case 0:return!this.Ab&&(this.Ab=new he(li,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Rn(),!!(this.Bb&256);case 3:return Rn(),!!(this.Bb&512);case 4:return pe(this.s);case 5:return pe(this.t);case 6:return Rn(),h=this.t,h>1||h==-1;case 7:return Rn(),o=this.s,o>=1;case 8:return n?Bh(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?u(this.Cb,26):null;case 11:return!this.d&&(this.d=new Vu(wu,this,11)),this.d;case 12:return!this.c&&(this.c=new he(Rw,this,12,10)),this.c;case 13:return!this.a&&(this.a=new jM(this,this)),this.a;case 14:return pl(this)}return ph(this,e-ar((hn(),tp)),wn((s=u(Dn(this,16),26),s||tp),e),n,r)},l.hh=function(e,n,r){var s,o,h;switch(n){case 0:return!this.Ab&&(this.Ab=new he(li,this,0,3)),au(this.Ab,e,r);case 10:return this.Cb&&(r=(o=this.Db>>16,o>=0?Yie(this,r):this.Cb.ih(this,-1-o,null,r))),Yl(this,e,10,r);case 12:return!this.c&&(this.c=new he(Rw,this,12,10)),au(this.c,e,r)}return h=u(wn((s=u(Dn(this,16),26),s||(hn(),tp)),n),66),h.Nj().Qj(this,fu(this),n-ar((hn(),tp)),e,r)},l.jh=function(e,n,r){var s,o;switch(n){case 0:return!this.Ab&&(this.Ab=new he(li,this,0,3)),Za(this.Ab,e,r);case 9:return Ont(this,r);case 10:return Yl(this,null,10,r);case 11:return!this.d&&(this.d=new Vu(wu,this,11)),Za(this.d,e,r);case 12:return!this.c&&(this.c=new he(Rw,this,12,10)),Za(this.c,e,r);case 14:return Za(pl(this),e,r)}return o=u(wn((s=u(Dn(this,16),26),s||(hn(),tp)),n),66),o.Nj().Rj(this,fu(this),n-ar((hn(),tp)),e,r)},l.lh=function(e){var n,r,s;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return s=this.t,s>1||s==-1;case 7:return r=this.s,r>=1;case 8:return!!this.r&&!this.q.e&&Fv(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Fv(this.q).i==0);case 10:return!!(this.Db>>16==10&&u(this.Cb,26));case 11:return!!this.d&&this.d.i!=0;case 12:return!!this.c&&this.c.i!=0;case 13:return!!this.a&&pl(this.a.a).i!=0&&!(this.b&&Xit(this.b));case 14:return!!this.b&&Xit(this.b)}return dh(this,e-ar((hn(),tp)),wn((n=u(Dn(this,16),26),n||tp),e))},l.sh=function(e,n){var r,s;switch(e){case 0:!this.Ab&&(this.Ab=new he(li,this,0,3)),Ir(this.Ab),!this.Ab&&(this.Ab=new he(li,this,0,3)),vs(this.Ab,u(n,14));return;case 1:su(this,Kr(n));return;case 2:Og(this,Re(Be(n)));return;case 3:Ng(this,Re(Be(n)));return;case 4:Mg(this,u(n,19).a);return;case 5:Zm(this,u(n,19).a);return;case 8:lb(this,u(n,138));return;case 9:s=z1(this,u(n,87),null),s&&s.Fi();return;case 11:!this.d&&(this.d=new Vu(wu,this,11)),Ir(this.d),!this.d&&(this.d=new Vu(wu,this,11)),vs(this.d,u(n,14));return;case 12:!this.c&&(this.c=new he(Rw,this,12,10)),Ir(this.c),!this.c&&(this.c=new he(Rw,this,12,10)),vs(this.c,u(n,14));return;case 13:!this.a&&(this.a=new jM(this,this)),mC(this.a),!this.a&&(this.a=new jM(this,this)),vs(this.a,u(n,14));return;case 14:Ir(pl(this)),vs(pl(this),u(n,14));return}yh(this,e-ar((hn(),tp)),wn((r=u(Dn(this,16),26),r||tp),e),n)},l.zh=function(){return hn(),tp},l.Bh=function(e){var n,r;switch(e){case 0:!this.Ab&&(this.Ab=new he(li,this,0,3)),Ir(this.Ab);return;case 1:su(this,null);return;case 2:Og(this,!0);return;case 3:Ng(this,!0);return;case 4:Mg(this,0);return;case 5:Zm(this,1);return;case 8:lb(this,null);return;case 9:r=z1(this,null,null),r&&r.Fi();return;case 11:!this.d&&(this.d=new Vu(wu,this,11)),Ir(this.d);return;case 12:!this.c&&(this.c=new he(Rw,this,12,10)),Ir(this.c);return;case 13:this.a&&mC(this.a);return;case 14:this.b&&Ir(this.b);return}wh(this,e-ar((hn(),tp)),wn((n=u(Dn(this,16),26),n||tp),e))},l.Gh=function(){var e,n;if(this.c)for(e=0,n=this.c.i;ew&&ds(e,w,null),s=0,r=new lr(pl(this.a));r.e!=r.i.gc();)n=u(kr(r),87),h=(d=n.c,d||(hn(),J1)),ds(e,s++,h);return e},l.Yi=function(){var e,n,r,s,o;for(o=new yg,o.a+="[",e=pl(this.a),n=0,s=pl(this.a).i;n1);case 5:return C_(this,e,n,r,s,this.i-u(r,15).gc()>0);default:return new P0(this.e,e,this.c,n,r,s,!0)}},l.ij=function(){return!0},l.fj=function(){return Xit(this)},l.Xj=function(){Ir(this)},N(Mn,"EOperationImpl/2",1341),M(498,1,{1938:1,498:1},HVt),N(Mn,"EPackageImpl/1",498),M(16,85,tc,he),l.zk=function(){return this.d},l.Ak=function(){return this.b},l.Dk=function(){return!0},l.b=0,N(Ji,"EObjectContainmentWithInverseEList",16),M(353,16,tc,M6),l.Ek=function(){return!0},l.li=function(e,n){return ax(this,e,u(n,56))},N(Ji,"EObjectContainmentWithInverseEList/Resolving",353),M(298,353,tc,$m),l.ci=function(){this.a.tb=null},N(Mn,"EPackageImpl/2",298),M(1228,1,{},GF),N(Mn,"EPackageImpl/3",1228),M(718,43,C4,mpt),l._b=function(e){return pa(e)?Knt(this,e):!!qo(this.f,e)},N(Mn,"EPackageRegistryImpl",718),M(509,284,{105:1,92:1,90:1,147:1,191:1,56:1,2017:1,108:1,472:1,49:1,97:1,150:1,509:1,284:1,114:1,115:1},Ftt),l.Qg=function(e){return Xie(this,e)},l._g=function(e,n,r){var s,o,h;switch(e){case 0:return!this.Ab&&(this.Ab=new he(li,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Rn(),!!(this.Bb&256);case 3:return Rn(),!!(this.Bb&512);case 4:return pe(this.s);case 5:return pe(this.t);case 6:return Rn(),h=this.t,h>1||h==-1;case 7:return Rn(),o=this.s,o>=1;case 8:return n?Bh(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?u(this.Cb,59):null}return ph(this,e-ar((hn(),Jy)),wn((s=u(Dn(this,16),26),s||Jy),e),n,r)},l.hh=function(e,n,r){var s,o,h;switch(n){case 0:return!this.Ab&&(this.Ab=new he(li,this,0,3)),au(this.Ab,e,r);case 10:return this.Cb&&(r=(o=this.Db>>16,o>=0?Xie(this,r):this.Cb.ih(this,-1-o,null,r))),Yl(this,e,10,r)}return h=u(wn((s=u(Dn(this,16),26),s||(hn(),Jy)),n),66),h.Nj().Qj(this,fu(this),n-ar((hn(),Jy)),e,r)},l.jh=function(e,n,r){var s,o;switch(n){case 0:return!this.Ab&&(this.Ab=new he(li,this,0,3)),Za(this.Ab,e,r);case 9:return Ont(this,r);case 10:return Yl(this,null,10,r)}return o=u(wn((s=u(Dn(this,16),26),s||(hn(),Jy)),n),66),o.Nj().Rj(this,fu(this),n-ar((hn(),Jy)),e,r)},l.lh=function(e){var n,r,s;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return s=this.t,s>1||s==-1;case 7:return r=this.s,r>=1;case 8:return!!this.r&&!this.q.e&&Fv(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Fv(this.q).i==0);case 10:return!!(this.Db>>16==10&&u(this.Cb,59))}return dh(this,e-ar((hn(),Jy)),wn((n=u(Dn(this,16),26),n||Jy),e))},l.zh=function(){return hn(),Jy},N(Mn,"EParameterImpl",509),M(99,449,{105:1,92:1,90:1,147:1,191:1,56:1,18:1,170:1,66:1,108:1,472:1,49:1,97:1,150:1,99:1,449:1,284:1,114:1,115:1,677:1},kbt),l._g=function(e,n,r){var s,o,h,d;switch(e){case 0:return!this.Ab&&(this.Ab=new he(li,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Rn(),!!(this.Bb&256);case 3:return Rn(),!!(this.Bb&512);case 4:return pe(this.s);case 5:return pe(this.t);case 6:return Rn(),d=this.t,d>1||d==-1;case 7:return Rn(),o=this.s,o>=1;case 8:return n?Bh(this):this.r;case 9:return this.q;case 10:return Rn(),!!(this.Bb&Tf);case 11:return Rn(),!!(this.Bb&Cy);case 12:return Rn(),!!(this.Bb&wy);case 13:return this.j;case 14:return m7(this);case 15:return Rn(),!!(this.Bb&Zu);case 16:return Rn(),!!(this.Bb&kd);case 17:return Hm(this);case 18:return Rn(),!!(this.Bb&Ac);case 19:return Rn(),h=bo(this),!!(h&&h.Bb&Ac);case 20:return Rn(),!!(this.Bb&oo);case 21:return n?bo(this):this.b;case 22:return n?syt(this):LZt(this);case 23:return!this.a&&(this.a=new U3(Xy,this,23)),this.a}return ph(this,e-ar((hn(),c5)),wn((s=u(Dn(this,16),26),s||c5),e),n,r)},l.lh=function(e){var n,r,s,o;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return o=this.t,o>1||o==-1;case 7:return r=this.s,r>=1;case 8:return!!this.r&&!this.q.e&&Fv(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Fv(this.q).i==0);case 10:return(this.Bb&Tf)==0;case 11:return(this.Bb&Cy)!=0;case 12:return(this.Bb&wy)!=0;case 13:return this.j!=null;case 14:return m7(this)!=null;case 15:return(this.Bb&Zu)!=0;case 16:return(this.Bb&kd)!=0;case 17:return!!Hm(this);case 18:return(this.Bb&Ac)!=0;case 19:return s=bo(this),!!s&&(s.Bb&Ac)!=0;case 20:return(this.Bb&oo)==0;case 21:return!!this.b;case 22:return!!LZt(this);case 23:return!!this.a&&this.a.i!=0}return dh(this,e-ar((hn(),c5)),wn((n=u(Dn(this,16),26),n||c5),e))},l.sh=function(e,n){var r,s;switch(e){case 0:!this.Ab&&(this.Ab=new he(li,this,0,3)),Ir(this.Ab),!this.Ab&&(this.Ab=new he(li,this,0,3)),vs(this.Ab,u(n,14));return;case 1:ort(this,Kr(n));return;case 2:Og(this,Re(Be(n)));return;case 3:Ng(this,Re(Be(n)));return;case 4:Mg(this,u(n,19).a);return;case 5:Zm(this,u(n,19).a);return;case 8:lb(this,u(n,138));return;case 9:s=z1(this,u(n,87),null),s&&s.Fi();return;case 10:n7(this,Re(Be(n)));return;case 11:s7(this,Re(Be(n)));return;case 12:r7(this,Re(Be(n)));return;case 13:M2t(this,Kr(n));return;case 15:i7(this,Re(Be(n)));return;case 16:a7(this,Re(Be(n)));return;case 18:Yen(this,Re(Be(n)));return;case 20:Fyt(this,Re(Be(n)));return;case 21:Pmt(this,u(n,18));return;case 23:!this.a&&(this.a=new U3(Xy,this,23)),Ir(this.a),!this.a&&(this.a=new U3(Xy,this,23)),vs(this.a,u(n,14));return}yh(this,e-ar((hn(),c5)),wn((r=u(Dn(this,16),26),r||c5),e),n)},l.zh=function(){return hn(),c5},l.Bh=function(e){var n,r;switch(e){case 0:!this.Ab&&(this.Ab=new he(li,this,0,3)),Ir(this.Ab);return;case 1:Et(this.Cb,88)&&uy(gl(u(this.Cb,88)),4),su(this,null);return;case 2:Og(this,!0);return;case 3:Ng(this,!0);return;case 4:Mg(this,0);return;case 5:Zm(this,1);return;case 8:lb(this,null);return;case 9:r=z1(this,null,null),r&&r.Fi();return;case 10:n7(this,!0);return;case 11:s7(this,!1);return;case 12:r7(this,!1);return;case 13:this.i=null,U$(this,null);return;case 15:i7(this,!1);return;case 16:a7(this,!1);return;case 18:Pyt(this,!1),Et(this.Cb,88)&&uy(gl(u(this.Cb,88)),2);return;case 20:Fyt(this,!0);return;case 21:Pmt(this,null);return;case 23:!this.a&&(this.a=new U3(Xy,this,23)),Ir(this.a);return}wh(this,e-ar((hn(),c5)),wn((n=u(Dn(this,16),26),n||c5),e))},l.Gh=function(){syt(this),k8(Bo((Yu(),Pa),this)),Bh(this),this.Bb|=1},l.Lj=function(){return bo(this)},l.qk=function(){var e;return e=bo(this),!!e&&(e.Bb&Ac)!=0},l.rk=function(){return(this.Bb&Ac)!=0},l.sk=function(){return(this.Bb&oo)!=0},l.nk=function(e,n){return this.c=null,Ayt(this,e,n)},l.Ib=function(){var e;return this.Db&64?aq(this):(e=new Ih(aq(this)),e.a+=" (containment: ",xg(e,(this.Bb&Ac)!=0),e.a+=", resolveProxies: ",xg(e,(this.Bb&oo)!=0),e.a+=")",e.a)},N(Mn,"EReferenceImpl",99),M(548,115,{105:1,42:1,92:1,90:1,133:1,56:1,108:1,49:1,97:1,548:1,114:1,115:1},PZ),l.Fb=function(e){return this===e},l.cd=function(){return this.b},l.dd=function(){return this.c},l.Hb=function(){return Av(this)},l.Uh=function(e){tJe(this,Kr(e))},l.ed=function(e){return qZe(this,Kr(e))},l._g=function(e,n,r){var s;switch(e){case 0:return this.b;case 1:return this.c}return ph(this,e-ar((hn(),uo)),wn((s=u(Dn(this,16),26),s||uo),e),n,r)},l.lh=function(e){var n;switch(e){case 0:return this.b!=null;case 1:return this.c!=null}return dh(this,e-ar((hn(),uo)),wn((n=u(Dn(this,16),26),n||uo),e))},l.sh=function(e,n){var r;switch(e){case 0:eJe(this,Kr(n));return;case 1:Imt(this,Kr(n));return}yh(this,e-ar((hn(),uo)),wn((r=u(Dn(this,16),26),r||uo),e),n)},l.zh=function(){return hn(),uo},l.Bh=function(e){var n;switch(e){case 0:Dmt(this,null);return;case 1:Imt(this,null);return}wh(this,e-ar((hn(),uo)),wn((n=u(Dn(this,16),26),n||uo),e))},l.Sh=function(){var e;return this.a==-1&&(e=this.b,this.a=e==null?0:Fg(e)),this.a},l.Th=function(e){this.a=e},l.Ib=function(){var e;return this.Db&64?kf(this):(e=new Ih(kf(this)),e.a+=" (key: ",So(e,this.b),e.a+=", value: ",So(e,this.c),e.a+=")",e.a)},l.a=-1,l.b=null,l.c=null;var xc=N(Mn,"EStringToStringMapEntryImpl",548),p4e=ls(Ji,"FeatureMap/Entry/Internal");M(565,1,wH),l.Ok=function(e){return this.Pk(u(e,49))},l.Pk=function(e){return this.Ok(e)},l.Fb=function(e){var n,r;return this===e?!0:Et(e,72)?(n=u(e,72),n.ak()==this.c?(r=this.dd(),r==null?n.dd()==null:Ni(r,n.dd())):!1):!1},l.ak=function(){return this.c},l.Hb=function(){var e;return e=this.dd(),ns(this.c)^(e==null?0:ns(e))},l.Ib=function(){var e,n;return e=this.c,n=Vl(e.Hj()).Ph(),e.ne(),(n!=null&&n.length!=0?n+":"+e.ne():e.ne())+"="+this.dd()},N(Mn,"EStructuralFeatureImpl/BasicFeatureMapEntry",565),M(776,565,wH,Dbt),l.Pk=function(e){return new Dbt(this.c,e)},l.dd=function(){return this.a},l.Qk=function(e,n,r){return van(this,e,this.a,n,r)},l.Rk=function(e,n,r){return wan(this,e,this.a,n,r)},N(Mn,"EStructuralFeatureImpl/ContainmentUpdatingFeatureMapEntry",776),M(1314,1,{},VVt),l.Pj=function(e,n,r,s,o){var h;return h=u(D8(e,this.b),215),h.nl(this.a).Wj(s)},l.Qj=function(e,n,r,s,o){var h;return h=u(D8(e,this.b),215),h.el(this.a,s,o)},l.Rj=function(e,n,r,s,o){var h;return h=u(D8(e,this.b),215),h.fl(this.a,s,o)},l.Sj=function(e,n,r){var s;return s=u(D8(e,this.b),215),s.nl(this.a).fj()},l.Tj=function(e,n,r,s){var o;o=u(D8(e,this.b),215),o.nl(this.a).Wb(s)},l.Uj=function(e,n,r){return u(D8(e,this.b),215).nl(this.a)},l.Vj=function(e,n,r){var s;s=u(D8(e,this.b),215),s.nl(this.a).Xj()},N(Mn,"EStructuralFeatureImpl/InternalSettingDelegateFeatureMapDelegator",1314),M(89,1,{},Tg,X2,Cg,J2),l.Pj=function(e,n,r,s,o){var h;if(h=n.Ch(r),h==null&&n.Dh(r,h=mq(this,e)),!o)switch(this.e){case 50:case 41:return u(h,589).sj();case 40:return u(h,215).kl()}return h},l.Qj=function(e,n,r,s,o){var h,d;return d=n.Ch(r),d==null&&n.Dh(r,d=mq(this,e)),h=u(d,69).lk(s,o),h},l.Rj=function(e,n,r,s,o){var h;return h=n.Ch(r),h!=null&&(o=u(h,69).mk(s,o)),o},l.Sj=function(e,n,r){var s;return s=n.Ch(r),s!=null&&u(s,76).fj()},l.Tj=function(e,n,r,s){var o;o=u(n.Ch(r),76),!o&&n.Dh(r,o=mq(this,e)),o.Wb(s)},l.Uj=function(e,n,r){var s,o;return o=n.Ch(r),o==null&&n.Dh(r,o=mq(this,e)),Et(o,76)?u(o,76):(s=u(n.Ch(r),15),new H$t(s))},l.Vj=function(e,n,r){var s;s=u(n.Ch(r),76),!s&&n.Dh(r,s=mq(this,e)),s.Xj()},l.b=0,l.e=0,N(Mn,"EStructuralFeatureImpl/InternalSettingDelegateMany",89),M(504,1,{}),l.Qj=function(e,n,r,s,o){throw et(new Gr)},l.Rj=function(e,n,r,s,o){throw et(new Gr)},l.Uj=function(e,n,r){return new jYt(this,e,n,r)};var p0;N(Mn,"EStructuralFeatureImpl/InternalSettingDelegateSingle",504),M(1331,1,qct,jYt),l.Wj=function(e){return this.a.Pj(this.c,this.d,this.b,e,!0)},l.fj=function(){return this.a.Sj(this.c,this.d,this.b)},l.Wb=function(e){this.a.Tj(this.c,this.d,this.b,e)},l.Xj=function(){this.a.Vj(this.c,this.d,this.b)},l.b=0,N(Mn,"EStructuralFeatureImpl/InternalSettingDelegateSingle/1",1331),M(769,504,{},dwt),l.Pj=function(e,n,r,s,o){return Kst(e,e.eh(),e.Vg())==this.b?this.sk()&&s?Ist(e):e.eh():null},l.Qj=function(e,n,r,s,o){var h,d;return e.eh()&&(o=(h=e.Vg(),h>=0?e.Qg(o):e.eh().ih(e,-1-h,null,o))),d=is(e.Tg(),this.e),e.Sg(s,d,o)},l.Rj=function(e,n,r,s,o){var h;return h=is(e.Tg(),this.e),e.Sg(null,h,o)},l.Sj=function(e,n,r){var s;return s=is(e.Tg(),this.e),!!e.eh()&&e.Vg()==s},l.Tj=function(e,n,r,s){var o,h,d,w,k;if(s!=null&&!Zst(this.a,s))throw et(new Xk(mH+(Et(s,56)?W3t(u(s,56).Tg()):vmt(bl(s)))+yH+this.a+"'"));if(o=e.eh(),d=is(e.Tg(),this.e),qt(s)!==qt(o)||e.Vg()!=d&&s!=null){if(l7(e,u(s,56)))throw et(new Bn(qC+e.Ib()));k=null,o&&(k=(h=e.Vg(),h>=0?e.Qg(k):e.eh().ih(e,-1-h,null,k))),w=u(s,49),w&&(k=w.gh(e,is(w.Tg(),this.b),null,k)),k=e.Sg(w,d,k),k&&k.Fi()}else e.Lg()&&e.Mg()&&Oi(e,new la(e,1,d,s,s))},l.Vj=function(e,n,r){var s,o,h,d;s=e.eh(),s?(d=(o=e.Vg(),o>=0?e.Qg(null):e.eh().ih(e,-1-o,null,null)),h=is(e.Tg(),this.e),d=e.Sg(null,h,d),d&&d.Fi()):e.Lg()&&e.Mg()&&Oi(e,new m_(e,1,this.e,null,null))},l.sk=function(){return!1},N(Mn,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainer",769),M(1315,769,{},DWt),l.sk=function(){return!0},N(Mn,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainerResolving",1315),M(563,504,{}),l.Pj=function(e,n,r,s,o){var h;return h=n.Ch(r),h==null?this.b:qt(h)===qt(p0)?null:h},l.Sj=function(e,n,r){var s;return s=n.Ch(r),s!=null&&(qt(s)===qt(p0)||!Ni(s,this.b))},l.Tj=function(e,n,r,s){var o,h;e.Lg()&&e.Mg()?(o=(h=n.Ch(r),h==null?this.b:qt(h)===qt(p0)?null:h),s==null?this.c!=null?(n.Dh(r,null),s=this.b):this.b!=null?n.Dh(r,p0):n.Dh(r,null):(this.Sk(s),n.Dh(r,s)),Oi(e,this.d.Tk(e,1,this.e,o,s))):s==null?this.c!=null?n.Dh(r,null):this.b!=null?n.Dh(r,p0):n.Dh(r,null):(this.Sk(s),n.Dh(r,s))},l.Vj=function(e,n,r){var s,o;e.Lg()&&e.Mg()?(s=(o=n.Ch(r),o==null?this.b:qt(o)===qt(p0)?null:o),n.Eh(r),Oi(e,this.d.Tk(e,1,this.e,s,this.b))):n.Eh(r)},l.Sk=function(e){throw et(new J$t)},N(Mn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData",563),M(F4,1,{},UF),l.Tk=function(e,n,r,s,o){return new m_(e,n,r,s,o)},l.Uk=function(e,n,r,s,o,h){return new Wnt(e,n,r,s,o,h)};var PAt,FAt,BAt,RAt,jAt,$At,zAt,bft,qAt;N(Mn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator",F4),M(1332,F4,{},WF),l.Tk=function(e,n,r,s,o){return new Kwt(e,n,r,Re(Be(s)),Re(Be(o)))},l.Uk=function(e,n,r,s,o,h){return new oQt(e,n,r,Re(Be(s)),Re(Be(o)),h)},N(Mn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/1",1332),M(1333,F4,{},KF),l.Tk=function(e,n,r,s,o){return new xmt(e,n,r,u(s,217).a,u(o,217).a)},l.Uk=function(e,n,r,s,o,h){return new tQt(e,n,r,u(s,217).a,u(o,217).a,h)},N(Mn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/2",1333),M(1334,F4,{},Ak),l.Tk=function(e,n,r,s,o){return new kmt(e,n,r,u(s,172).a,u(o,172).a)},l.Uk=function(e,n,r,s,o,h){return new eQt(e,n,r,u(s,172).a,u(o,172).a,h)},N(Mn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/3",1334),M(1335,F4,{},YF),l.Tk=function(e,n,r,s,o){return new Uwt(e,n,r,Xt(xe(s)),Xt(xe(o)))},l.Uk=function(e,n,r,s,o,h){return new nQt(e,n,r,Xt(xe(s)),Xt(xe(o)),h)},N(Mn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/4",1335),M(1336,F4,{},XF),l.Tk=function(e,n,r,s,o){return new _mt(e,n,r,u(s,155).a,u(o,155).a)},l.Uk=function(e,n,r,s,o,h){return new rQt(e,n,r,u(s,155).a,u(o,155).a,h)},N(Mn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/5",1336),M(1337,F4,{},FZ),l.Tk=function(e,n,r,s,o){return new Wwt(e,n,r,u(s,19).a,u(o,19).a)},l.Uk=function(e,n,r,s,o,h){return new iQt(e,n,r,u(s,19).a,u(o,19).a,h)},N(Mn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/6",1337),M(1338,F4,{},Lk),l.Tk=function(e,n,r,s,o){return new Emt(e,n,r,u(s,162).a,u(o,162).a)},l.Uk=function(e,n,r,s,o,h){return new sQt(e,n,r,u(s,162).a,u(o,162).a,h)},N(Mn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/7",1338),M(1339,F4,{},Mk),l.Tk=function(e,n,r,s,o){return new Tmt(e,n,r,u(s,184).a,u(o,184).a)},l.Uk=function(e,n,r,s,o,h){return new aQt(e,n,r,u(s,184).a,u(o,184).a,h)},N(Mn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/8",1339),M(1317,563,{},$Yt),l.Sk=function(e){if(!this.a.wj(e))throw et(new Xk(mH+bl(e)+yH+this.a+"'"))},N(Mn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataDynamic",1317),M(1318,563,{},AKt),l.Sk=function(e){},N(Mn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataStatic",1318),M(770,563,{}),l.Sj=function(e,n,r){var s;return s=n.Ch(r),s!=null},l.Tj=function(e,n,r,s){var o,h;e.Lg()&&e.Mg()?(o=!0,h=n.Ch(r),h==null?(o=!1,h=this.b):qt(h)===qt(p0)&&(h=null),s==null?this.c!=null?(n.Dh(r,null),s=this.b):n.Dh(r,p0):(this.Sk(s),n.Dh(r,s)),Oi(e,this.d.Uk(e,1,this.e,h,s,!o))):s==null?this.c!=null?n.Dh(r,null):n.Dh(r,p0):(this.Sk(s),n.Dh(r,s))},l.Vj=function(e,n,r){var s,o;e.Lg()&&e.Mg()?(s=!0,o=n.Ch(r),o==null?(s=!1,o=this.b):qt(o)===qt(p0)&&(o=null),n.Eh(r),Oi(e,this.d.Uk(e,2,this.e,o,this.b,s))):n.Eh(r)},N(Mn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettable",770),M(1319,770,{},zYt),l.Sk=function(e){if(!this.a.wj(e))throw et(new Xk(mH+bl(e)+yH+this.a+"'"))},N(Mn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableDynamic",1319),M(1320,770,{},LKt),l.Sk=function(e){},N(Mn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableStatic",1320),M(398,504,{},Cj),l.Pj=function(e,n,r,s,o){var h,d,w,k,_;if(_=n.Ch(r),this.Kj()&&qt(_)===qt(p0))return null;if(this.sk()&&s&&_!=null){if(w=u(_,49),w.kh()&&(k=Xp(e,w),w!=k)){if(!Zst(this.a,k))throw et(new Xk(mH+bl(k)+yH+this.a+"'"));n.Dh(r,_=k),this.rk()&&(h=u(k,49),d=w.ih(e,this.b?is(w.Tg(),this.b):-1-is(e.Tg(),this.e),null,null),!h.eh()&&(d=h.gh(e,this.b?is(h.Tg(),this.b):-1-is(e.Tg(),this.e),null,d)),d&&d.Fi()),e.Lg()&&e.Mg()&&Oi(e,new m_(e,9,this.e,w,k))}return _}else return _},l.Qj=function(e,n,r,s,o){var h,d;return d=n.Ch(r),qt(d)===qt(p0)&&(d=null),n.Dh(r,s),this.bj()?qt(d)!==qt(s)&&d!=null&&(h=u(d,49),o=h.ih(e,is(h.Tg(),this.b),null,o)):this.rk()&&d!=null&&(o=u(d,49).ih(e,-1-is(e.Tg(),this.e),null,o)),e.Lg()&&e.Mg()&&(!o&&(o=new Lp(4)),o.Ei(new m_(e,1,this.e,d,s))),o},l.Rj=function(e,n,r,s,o){var h;return h=n.Ch(r),qt(h)===qt(p0)&&(h=null),n.Eh(r),e.Lg()&&e.Mg()&&(!o&&(o=new Lp(4)),this.Kj()?o.Ei(new m_(e,2,this.e,h,null)):o.Ei(new m_(e,1,this.e,h,null))),o},l.Sj=function(e,n,r){var s;return s=n.Ch(r),s!=null},l.Tj=function(e,n,r,s){var o,h,d,w,k;if(s!=null&&!Zst(this.a,s))throw et(new Xk(mH+(Et(s,56)?W3t(u(s,56).Tg()):vmt(bl(s)))+yH+this.a+"'"));k=n.Ch(r),w=k!=null,this.Kj()&&qt(k)===qt(p0)&&(k=null),d=null,this.bj()?qt(k)!==qt(s)&&(k!=null&&(o=u(k,49),d=o.ih(e,is(o.Tg(),this.b),null,d)),s!=null&&(o=u(s,49),d=o.gh(e,is(o.Tg(),this.b),null,d))):this.rk()&&qt(k)!==qt(s)&&(k!=null&&(d=u(k,49).ih(e,-1-is(e.Tg(),this.e),null,d)),s!=null&&(d=u(s,49).gh(e,-1-is(e.Tg(),this.e),null,d))),s==null&&this.Kj()?n.Dh(r,p0):n.Dh(r,s),e.Lg()&&e.Mg()?(h=new Wnt(e,1,this.e,k,s,this.Kj()&&!w),d?(d.Ei(h),d.Fi()):Oi(e,h)):d&&d.Fi()},l.Vj=function(e,n,r){var s,o,h,d,w;w=n.Ch(r),d=w!=null,this.Kj()&&qt(w)===qt(p0)&&(w=null),h=null,w!=null&&(this.bj()?(s=u(w,49),h=s.ih(e,is(s.Tg(),this.b),null,h)):this.rk()&&(h=u(w,49).ih(e,-1-is(e.Tg(),this.e),null,h))),n.Eh(r),e.Lg()&&e.Mg()?(o=new Wnt(e,this.Kj()?2:1,this.e,w,null,d),h?(h.Ei(o),h.Fi()):Oi(e,o)):h&&h.Fi()},l.bj=function(){return!1},l.rk=function(){return!1},l.sk=function(){return!1},l.Kj=function(){return!1},N(Mn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObject",398),M(564,398,{},Yet),l.rk=function(){return!0},N(Mn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainment",564),M(1323,564,{},SUt),l.sk=function(){return!0},N(Mn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentResolving",1323),M(772,564,{},wbt),l.Kj=function(){return!0},N(Mn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettable",772),M(1325,772,{},AUt),l.sk=function(){return!0},N(Mn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettableResolving",1325),M(640,564,{},unt),l.bj=function(){return!0},N(Mn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverse",640),M(1324,640,{},IWt),l.sk=function(){return!0},N(Mn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseResolving",1324),M(773,640,{},ivt),l.Kj=function(){return!0},N(Mn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettable",773),M(1326,773,{},OWt),l.sk=function(){return!0},N(Mn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettableResolving",1326),M(641,398,{},mbt),l.sk=function(){return!0},N(Mn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolving",641),M(1327,641,{},LUt),l.Kj=function(){return!0},N(Mn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingUnsettable",1327),M(774,641,{},nvt),l.bj=function(){return!0},N(Mn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverse",774),M(1328,774,{},NWt),l.Kj=function(){return!0},N(Mn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverseUnsettable",1328),M(1321,398,{},MUt),l.Kj=function(){return!0},N(Mn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectUnsettable",1321),M(771,398,{},rvt),l.bj=function(){return!0},N(Mn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverse",771),M(1322,771,{},PWt),l.Kj=function(){return!0},N(Mn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverseUnsettable",1322),M(775,565,wH,Jvt),l.Pk=function(e){return new Jvt(this.a,this.c,e)},l.dd=function(){return this.b},l.Qk=function(e,n,r){return win(this,e,this.b,r)},l.Rk=function(e,n,r){return min(this,e,this.b,r)},N(Mn,"EStructuralFeatureImpl/InverseUpdatingFeatureMapEntry",775),M(1329,1,qct,H$t),l.Wj=function(e){return this.a},l.fj=function(){return Et(this.a,95)?u(this.a,95).fj():!this.a.dc()},l.Wb=function(e){this.a.$b(),this.a.Gc(u(e,15))},l.Xj=function(){Et(this.a,95)?u(this.a,95).Xj():this.a.$b()},N(Mn,"EStructuralFeatureImpl/SettingMany",1329),M(1330,565,wH,YQt),l.Ok=function(e){return new Zet((Vi(),rA),this.b.Ih(this.a,e))},l.dd=function(){return null},l.Qk=function(e,n,r){return r},l.Rk=function(e,n,r){return r},N(Mn,"EStructuralFeatureImpl/SimpleContentFeatureMapEntry",1330),M(642,565,wH,Zet),l.Ok=function(e){return new Zet(this.c,e)},l.dd=function(){return this.a},l.Qk=function(e,n,r){return r},l.Rk=function(e,n,r){return r},N(Mn,"EStructuralFeatureImpl/SimpleFeatureMapEntry",642),M(391,497,Id,mm),l.ri=function(e){return Ot(Zh,De,26,e,0,1)},l.ni=function(){return!1},N(Mn,"ESuperAdapter/1",391),M(444,438,{105:1,92:1,90:1,147:1,191:1,56:1,108:1,836:1,49:1,97:1,150:1,444:1,114:1,115:1},BL),l._g=function(e,n,r){var s;switch(e){case 0:return!this.Ab&&(this.Ab=new he(li,this,0,3)),this.Ab;case 1:return this.zb;case 2:return!this.a&&(this.a=new p_(this,Co,this)),this.a}return ph(this,e-ar((hn(),$w)),wn((s=u(Dn(this,16),26),s||$w),e),n,r)},l.jh=function(e,n,r){var s,o;switch(n){case 0:return!this.Ab&&(this.Ab=new he(li,this,0,3)),Za(this.Ab,e,r);case 2:return!this.a&&(this.a=new p_(this,Co,this)),Za(this.a,e,r)}return o=u(wn((s=u(Dn(this,16),26),s||(hn(),$w)),n),66),o.Nj().Rj(this,fu(this),n-ar((hn(),$w)),e,r)},l.lh=function(e){var n;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return!!this.a&&this.a.i!=0}return dh(this,e-ar((hn(),$w)),wn((n=u(Dn(this,16),26),n||$w),e))},l.sh=function(e,n){var r;switch(e){case 0:!this.Ab&&(this.Ab=new he(li,this,0,3)),Ir(this.Ab),!this.Ab&&(this.Ab=new he(li,this,0,3)),vs(this.Ab,u(n,14));return;case 1:su(this,Kr(n));return;case 2:!this.a&&(this.a=new p_(this,Co,this)),Ir(this.a),!this.a&&(this.a=new p_(this,Co,this)),vs(this.a,u(n,14));return}yh(this,e-ar((hn(),$w)),wn((r=u(Dn(this,16),26),r||$w),e),n)},l.zh=function(){return hn(),$w},l.Bh=function(e){var n;switch(e){case 0:!this.Ab&&(this.Ab=new he(li,this,0,3)),Ir(this.Ab);return;case 1:su(this,null);return;case 2:!this.a&&(this.a=new p_(this,Co,this)),Ir(this.a);return}wh(this,e-ar((hn(),$w)),wn((n=u(Dn(this,16),26),n||$w),e))},N(Mn,"ETypeParameterImpl",444),M(445,85,tc,p_),l.cj=function(e,n){return m1n(this,u(e,87),n)},l.dj=function(e,n){return y1n(this,u(e,87),n)},N(Mn,"ETypeParameterImpl/1",445),M(634,43,C4,Btt),l.ec=function(){return new JB(this)},N(Mn,"ETypeParameterImpl/2",634),M(556,q1,Xu,JB),l.Fc=function(e){return nWt(this,u(e,87))},l.Gc=function(e){var n,r,s;for(s=!1,r=e.Kc();r.Ob();)n=u(r.Pb(),87),Pi(this.a,n,"")==null&&(s=!0);return s},l.$b=function(){al(this.a)},l.Hc=function(e){return Il(this.a,e)},l.Kc=function(){var e;return e=new ub(new vg(this.a).a),new tR(e)},l.Mc=function(e){return qZt(this,e)},l.gc=function(){return NT(this.a)},N(Mn,"ETypeParameterImpl/2/1",556),M(557,1,va,tR),l.Nb=function(e){Da(this,e)},l.Pb=function(){return u(Uv(this.a).cd(),87)},l.Ob=function(){return this.a.b},l.Qb=function(){mJt(this.a)},N(Mn,"ETypeParameterImpl/2/1/1",557),M(1276,43,C4,Ozt),l._b=function(e){return pa(e)?Knt(this,e):!!qo(this.f,e)},l.xc=function(e){var n,r;return n=pa(e)?Uc(this,e):gc(qo(this.f,e)),Et(n,837)?(r=u(n,837),n=r._j(),Pi(this,u(e,235),n),n):n??(e==null?(tet(),v4e):null)},N(Mn,"EValidatorRegistryImpl",1276),M(1313,704,{105:1,92:1,90:1,471:1,147:1,56:1,108:1,1941:1,49:1,97:1,150:1,114:1,115:1},BZ),l.Ih=function(e,n){switch(e.yj()){case 21:case 22:case 23:case 24:case 26:case 31:case 32:case 37:case 38:case 39:case 40:case 43:case 44:case 48:case 49:case 20:return n==null?null:Jo(n);case 25:return Ssn(n);case 27:return Vin(n);case 28:return Gin(n);case 29:return n==null?null:FGt(QS[0],u(n,199));case 41:return n==null?"":Mp(u(n,290));case 42:return Jo(n);case 50:return Kr(n);default:throw et(new Bn(H7+e.ne()+mw))}},l.Jh=function(e){var n,r,s,o,h,d,w,k,_,L,F,q,G,W,Z,bt;switch(e.G==-1&&(e.G=(q=Vl(e),q?Pg(q.Mh(),e):-1)),e.G){case 0:return r=new Ntt,r;case 1:return n=new VF,n;case 2:return s=new YL,s;case 4:return o=new eR,o;case 5:return h=new Izt,h;case 6:return d=new nzt,d;case 7:return w=new OB,w;case 10:return _=new Ck,_;case 11:return L=new Ptt,L;case 12:return F=new iXt,F;case 13:return G=new Ftt,G;case 14:return W=new kbt,W;case 17:return Z=new PZ,Z;case 18:return k=new pv,k;case 19:return bt=new BL,bt;default:throw et(new Bn(Cct+e.zb+mw))}},l.Kh=function(e,n){switch(e.yj()){case 20:return n==null?null:new zpt(n);case 21:return n==null?null:new Fp(n);case 23:case 22:return n==null?null:Iun(n);case 26:case 24:return n==null?null:kD(Kl(n,-128,127)<<24>>24);case 25:return Hgn(n);case 27:return phn(n);case 28:return bhn(n);case 29:return R1n(n);case 32:case 31:return n==null?null:cy(n);case 38:case 37:return n==null?null:new opt(n);case 40:case 39:return n==null?null:pe(Kl(n,$a,Di));case 41:return null;case 42:return n==null,null;case 44:case 43:return n==null?null:fb(wq(n));case 49:case 48:return n==null?null:e7(Kl(n,xH,32767)<<16>>16);case 50:return n;default:throw et(new Bn(H7+e.ne()+mw))}},N(Mn,"EcoreFactoryImpl",1313),M(547,179,{105:1,92:1,90:1,147:1,191:1,56:1,235:1,108:1,1939:1,49:1,97:1,150:1,179:1,547:1,114:1,115:1,675:1},xYt),l.gb=!1,l.hb=!1;var HAt,b4e=!1;N(Mn,"EcorePackageImpl",547),M(1184,1,{837:1},RZ),l._j=function(){return aUt(),w4e},N(Mn,"EcorePackageImpl/1",1184),M(1193,1,vi,jZ),l.wj=function(e){return Et(e,147)},l.xj=function(e){return Ot(aN,De,147,e,0,1)},N(Mn,"EcorePackageImpl/10",1193),M(1194,1,vi,$Z),l.wj=function(e){return Et(e,191)},l.xj=function(e){return Ot(oft,De,191,e,0,1)},N(Mn,"EcorePackageImpl/11",1194),M(1195,1,vi,zZ),l.wj=function(e){return Et(e,56)},l.xj=function(e){return Ot(T2,De,56,e,0,1)},N(Mn,"EcorePackageImpl/12",1195),M(1196,1,vi,qZ),l.wj=function(e){return Et(e,399)},l.xj=function(e){return Ot(Jh,d8t,59,e,0,1)},N(Mn,"EcorePackageImpl/13",1196),M(1197,1,vi,HZ),l.wj=function(e){return Et(e,235)},l.xj=function(e){return Ot(u1,De,235,e,0,1)},N(Mn,"EcorePackageImpl/14",1197),M(1198,1,vi,VZ),l.wj=function(e){return Et(e,509)},l.xj=function(e){return Ot(Rw,De,2017,e,0,1)},N(Mn,"EcorePackageImpl/15",1198),M(1199,1,vi,QF),l.wj=function(e){return Et(e,99)},l.xj=function(e){return Ot(Qy,P4,18,e,0,1)},N(Mn,"EcorePackageImpl/16",1199),M(1200,1,vi,GZ),l.wj=function(e){return Et(e,170)},l.xj=function(e){return Ot(ju,P4,170,e,0,1)},N(Mn,"EcorePackageImpl/17",1200),M(1201,1,vi,UZ),l.wj=function(e){return Et(e,472)},l.xj=function(e){return Ot(Yy,De,472,e,0,1)},N(Mn,"EcorePackageImpl/18",1201),M(1202,1,vi,WZ),l.wj=function(e){return Et(e,548)},l.xj=function(e){return Ot(xc,vde,548,e,0,1)},N(Mn,"EcorePackageImpl/19",1202),M(1185,1,vi,ZF),l.wj=function(e){return Et(e,322)},l.xj=function(e){return Ot(Xy,P4,34,e,0,1)},N(Mn,"EcorePackageImpl/2",1185),M(1203,1,vi,Dk),l.wj=function(e){return Et(e,241)},l.xj=function(e){return Ot(Co,Nde,87,e,0,1)},N(Mn,"EcorePackageImpl/20",1203),M(1204,1,vi,UE),l.wj=function(e){return Et(e,444)},l.xj=function(e){return Ot(wu,De,836,e,0,1)},N(Mn,"EcorePackageImpl/21",1204),M(1205,1,vi,JF),l.wj=function(e){return Dm(e)},l.xj=function(e){return Ot(Zs,te,476,e,8,1)},N(Mn,"EcorePackageImpl/22",1205),M(1206,1,vi,KZ),l.wj=function(e){return Et(e,190)},l.xj=function(e){return Ot(tl,te,190,e,0,2)},N(Mn,"EcorePackageImpl/23",1206),M(1207,1,vi,tB),l.wj=function(e){return Et(e,217)},l.xj=function(e){return Ot(kx,te,217,e,0,1)},N(Mn,"EcorePackageImpl/24",1207),M(1208,1,vi,eB),l.wj=function(e){return Et(e,172)},l.xj=function(e){return Ot(tS,te,172,e,0,1)},N(Mn,"EcorePackageImpl/25",1208),M(1209,1,vi,YZ),l.wj=function(e){return Et(e,199)},l.xj=function(e){return Ot(NH,te,199,e,0,1)},N(Mn,"EcorePackageImpl/26",1209),M(1210,1,vi,WE),l.wj=function(e){return!1},l.xj=function(e){return Ot(oLt,De,2110,e,0,1)},N(Mn,"EcorePackageImpl/27",1210),M(1211,1,vi,ym),l.wj=function(e){return Im(e)},l.xj=function(e){return Ot(ka,te,333,e,7,1)},N(Mn,"EcorePackageImpl/28",1211),M(1212,1,vi,nB),l.wj=function(e){return Et(e,58)},l.xj=function(e){return Ot(kAt,my,58,e,0,1)},N(Mn,"EcorePackageImpl/29",1212),M(1186,1,vi,rB),l.wj=function(e){return Et(e,510)},l.xj=function(e){return Ot(li,{3:1,4:1,5:1,1934:1},590,e,0,1)},N(Mn,"EcorePackageImpl/3",1186),M(1213,1,vi,XZ),l.wj=function(e){return Et(e,573)},l.xj=function(e){return Ot(_At,De,1940,e,0,1)},N(Mn,"EcorePackageImpl/30",1213),M(1214,1,vi,QZ),l.wj=function(e){return Et(e,153)},l.xj=function(e){return Ot(KAt,my,153,e,0,1)},N(Mn,"EcorePackageImpl/31",1214),M(1215,1,vi,KE),l.wj=function(e){return Et(e,72)},l.xj=function(e){return Ot(XG,Hde,72,e,0,1)},N(Mn,"EcorePackageImpl/32",1215),M(1216,1,vi,iB),l.wj=function(e){return Et(e,155)},l.xj=function(e){return Ot(X7,te,155,e,0,1)},N(Mn,"EcorePackageImpl/33",1216),M(1217,1,vi,sB),l.wj=function(e){return Et(e,19)},l.xj=function(e){return Ot(to,te,19,e,0,1)},N(Mn,"EcorePackageImpl/34",1217),M(1218,1,vi,Tc),l.wj=function(e){return Et(e,290)},l.xj=function(e){return Ot(C8t,De,290,e,0,1)},N(Mn,"EcorePackageImpl/35",1218),M(1219,1,vi,ZZ),l.wj=function(e){return Et(e,162)},l.xj=function(e){return Ot(xw,te,162,e,0,1)},N(Mn,"EcorePackageImpl/36",1219),M(1220,1,vi,aB),l.wj=function(e){return Et(e,83)},l.xj=function(e){return Ot(S8t,De,83,e,0,1)},N(Mn,"EcorePackageImpl/37",1220),M(1221,1,vi,YE),l.wj=function(e){return Et(e,591)},l.xj=function(e){return Ot(VAt,De,591,e,0,1)},N(Mn,"EcorePackageImpl/38",1221),M(1222,1,vi,JZ),l.wj=function(e){return!1},l.xj=function(e){return Ot(cLt,De,2111,e,0,1)},N(Mn,"EcorePackageImpl/39",1222),M(1187,1,vi,tJ),l.wj=function(e){return Et(e,88)},l.xj=function(e){return Ot(Zh,De,26,e,0,1)},N(Mn,"EcorePackageImpl/4",1187),M(1223,1,vi,XE),l.wj=function(e){return Et(e,184)},l.xj=function(e){return Ot(kw,te,184,e,0,1)},N(Mn,"EcorePackageImpl/40",1223),M(1224,1,vi,oB),l.wj=function(e){return pa(e)},l.xj=function(e){return Ot(Me,te,2,e,6,1)},N(Mn,"EcorePackageImpl/41",1224),M(1225,1,vi,QE),l.wj=function(e){return Et(e,588)},l.xj=function(e){return Ot(TAt,De,588,e,0,1)},N(Mn,"EcorePackageImpl/42",1225),M(1226,1,vi,ZE),l.wj=function(e){return!1},l.xj=function(e){return Ot(uLt,te,2112,e,0,1)},N(Mn,"EcorePackageImpl/43",1226),M(1227,1,vi,Vf),l.wj=function(e){return Et(e,42)},l.xj=function(e){return Ot(Ab,Eq,42,e,0,1)},N(Mn,"EcorePackageImpl/44",1227),M(1188,1,vi,RL),l.wj=function(e){return Et(e,138)},l.xj=function(e){return Ot(l1,De,138,e,0,1)},N(Mn,"EcorePackageImpl/5",1188),M(1189,1,vi,jL),l.wj=function(e){return Et(e,148)},l.xj=function(e){return Ot(dft,De,148,e,0,1)},N(Mn,"EcorePackageImpl/6",1189),M(1190,1,vi,n6),l.wj=function(e){return Et(e,457)},l.xj=function(e){return Ot(YG,De,671,e,0,1)},N(Mn,"EcorePackageImpl/7",1190),M(1191,1,vi,eJ),l.wj=function(e){return Et(e,573)},l.xj=function(e){return Ot(tg,De,678,e,0,1)},N(Mn,"EcorePackageImpl/8",1191),M(1192,1,vi,nJ),l.wj=function(e){return Et(e,471)},l.xj=function(e){return Ot(XS,De,471,e,0,1)},N(Mn,"EcorePackageImpl/9",1192),M(1025,1982,bde,Qzt),l.bi=function(e,n){icn(this,u(n,415))},l.fi=function(e,n){hae(this,e,u(n,415))},N(Mn,"MinimalEObjectImpl/1ArrayDelegatingAdapterList",1025),M(1026,143,XI,fYt),l.Ai=function(){return this.a.a},N(Mn,"MinimalEObjectImpl/1ArrayDelegatingAdapterList/1",1026),M(1053,1052,{},AGt),N("org.eclipse.emf.ecore.plugin","EcorePlugin",1053);var VAt=ls(Vde,"Resource");M(781,1378,Gde),l.Yk=function(e){},l.Zk=function(e){},l.Vk=function(){return!this.a&&(this.a=new Ltt(this)),this.a},l.Wk=function(e){var n,r,s,o,h;if(s=e.length,s>0)if(Yr(0,e.length),e.charCodeAt(0)==47){for(h=new iu(4),o=1,n=1;n0&&(e=e.substr(0,r)));return C0n(this,e)},l.Xk=function(){return this.c},l.Ib=function(){var e;return Mp(this.gm)+"@"+(e=ns(this)>>>0,e.toString(16))+" uri='"+this.d+"'"},l.b=!1,N(Hct,"ResourceImpl",781),M(1379,781,Gde,G$t),N(Hct,"BinaryResourceImpl",1379),M(1169,694,Bct),l.si=function(e){return Et(e,56)?oen(this,u(e,56)):Et(e,591)?new lr(u(e,591).Vk()):qt(e)===qt(this.f)?u(e,14).Kc():(f8(),uN.a)},l.Ob=function(){return R4t(this)},l.a=!1,N(Ji,"EcoreUtil/ContentTreeIterator",1169),M(1380,1169,Bct,HKt),l.si=function(e){return qt(e)===qt(this.f)?u(e,15).Kc():new CQt(u(e,56))},N(Hct,"ResourceImpl/5",1380),M(648,1994,Ode,Ltt),l.Hc=function(e){return this.i<=4?f7(this,e):Et(e,49)&&u(e,49).Zg()==this.a},l.bi=function(e,n){e==this.i-1&&(this.a.b||(this.a.b=!0))},l.di=function(e,n){e==0?this.a.b||(this.a.b=!0):_rt(this,e,n)},l.fi=function(e,n){},l.gi=function(e,n,r){},l.aj=function(){return 2},l.Ai=function(){return this.a},l.bj=function(){return!0},l.cj=function(e,n){var r;return r=u(e,49),n=r.wh(this.a,n),n},l.dj=function(e,n){var r;return r=u(e,49),r.wh(null,n)},l.ej=function(){return!1},l.hi=function(){return!0},l.ri=function(e){return Ot(T2,De,56,e,0,1)},l.ni=function(){return!1},N(Hct,"ResourceImpl/ContentsEList",648),M(957,1964,D7,V$t),l.Zc=function(e){return this.a._h(e)},l.gc=function(){return this.a.gc()},N(Ji,"AbstractSequentialInternalEList/1",957);var GAt,UAt,Pa,WAt;M(624,1,{},GWt);var QG,ZG;N(Ji,"BasicExtendedMetaData",624),M(1160,1,{},GVt),l.$k=function(){return null},l._k=function(){return this.a==-2&&bg(this,O1n(this.d,this.b)),this.a},l.al=function(){return null},l.bl=function(){return pn(),pn(),wo},l.ne=function(){return this.c==U7&&D3(this,qre(this.d,this.b)),this.c},l.cl=function(){return 0},l.a=-2,l.c=U7,N(Ji,"BasicExtendedMetaData/EClassExtendedMetaDataImpl",1160),M(1161,1,{},fQt),l.$k=function(){return this.a==(L8(),QG)&&Wgt(this,Ypn(this.f,this.b)),this.a},l._k=function(){return 0},l.al=function(){return this.c==(L8(),QG)&&ftt(this,Xpn(this.f,this.b)),this.c},l.bl=function(){return!this.d&&dtt(this,Ybn(this.f,this.b)),this.d},l.ne=function(){return this.e==U7&&qB(this,qre(this.f,this.b)),this.e},l.cl=function(){return this.g==-2&&HB(this,Zfn(this.f,this.b)),this.g},l.e=U7,l.g=-2,N(Ji,"BasicExtendedMetaData/EDataTypeExtendedMetaDataImpl",1161),M(1159,1,{},WVt),l.b=!1,l.c=!1,N(Ji,"BasicExtendedMetaData/EPackageExtendedMetaDataImpl",1159),M(1162,1,{},hQt),l.c=-2,l.e=U7,l.f=U7,N(Ji,"BasicExtendedMetaData/EStructuralFeatureExtendedMetaDataImpl",1162),M(585,622,tc,wj),l.aj=function(){return this.c},l.Fk=function(){return!1},l.li=function(e,n){return n},l.c=0,N(Ji,"EDataTypeEList",585);var KAt=ls(Ji,"FeatureMap");M(75,585,{3:1,4:1,20:1,28:1,52:1,14:1,15:1,54:1,67:1,63:1,58:1,76:1,153:1,215:1,1937:1,69:1,95:1},ws),l.Vc=function(e,n){Gpn(this,e,u(n,72))},l.Fc=function(e){return lpn(this,u(e,72))},l.Yh=function(e){XJe(this,u(e,72))},l.cj=function(e,n){return MXe(this,u(e,72),n)},l.dj=function(e,n){return Gbt(this,u(e,72),n)},l.ii=function(e,n){return dvn(this,e,n)},l.li=function(e,n){return Umn(this,e,u(n,72))},l._c=function(e,n){return P2n(this,e,u(n,72))},l.jj=function(e,n){return DXe(this,u(e,72),n)},l.kj=function(e,n){return bWt(this,u(e,72),n)},l.lj=function(e,n,r){return Pfn(this,u(e,72),u(n,72),r)},l.oi=function(e,n){return pst(this,e,u(n,72))},l.dl=function(e,n){return C5t(this,e,n)},l.Wc=function(e,n){var r,s,o,h,d,w,k,_,L;for(_=new Gv(n.gc()),o=n.Kc();o.Ob();)if(s=u(o.Pb(),72),h=s.ak(),V0(this.e,h))(!h.hi()||!d$(this,h,s.dd())&&!f7(_,s))&&Hr(_,s);else{for(L=gu(this.e.Tg(),h),r=u(this.g,119),d=!0,w=0;w=0;)if(n=e[this.c],this.k.rl(n.ak()))return this.j=this.f?n:n.dd(),this.i=-2,!0;return this.i=-1,this.g=-1,!1},N(Ji,"BasicFeatureMap/FeatureEIterator",410),M(662,410,n0,Net),l.Lk=function(){return!0},N(Ji,"BasicFeatureMap/ResolvingFeatureEIterator",662),M(955,486,bH,RGt),l.Gi=function(){return this},N(Ji,"EContentsEList/1",955),M(956,486,bH,uGt),l.Lk=function(){return!1},N(Ji,"EContentsEList/2",956),M(954,279,vH,jGt),l.Nk=function(e){},l.Ob=function(){return!1},l.Sb=function(){return!1},N(Ji,"EContentsEList/FeatureIteratorImpl/1",954),M(825,585,tc,X2t),l.ci=function(){this.a=!0},l.fj=function(){return this.a},l.Xj=function(){var e;Ir(this),Ll(this.e)?(e=this.a,this.a=!1,Oi(this.e,new mf(this.e,2,this.c,e,!1))):this.a=!1},l.a=!1,N(Ji,"EDataTypeEList/Unsettable",825),M(1849,585,tc,WGt),l.hi=function(){return!0},N(Ji,"EDataTypeUniqueEList",1849),M(1850,825,tc,KGt),l.hi=function(){return!0},N(Ji,"EDataTypeUniqueEList/Unsettable",1850),M(139,85,tc,Vu),l.Ek=function(){return!0},l.li=function(e,n){return ax(this,e,u(n,56))},N(Ji,"EObjectContainmentEList/Resolving",139),M(1163,545,tc,UGt),l.Ek=function(){return!0},l.li=function(e,n){return ax(this,e,u(n,56))},N(Ji,"EObjectContainmentEList/Unsettable/Resolving",1163),M(748,16,tc,Rbt),l.ci=function(){this.a=!0},l.fj=function(){return this.a},l.Xj=function(){var e;Ir(this),Ll(this.e)?(e=this.a,this.a=!1,Oi(this.e,new mf(this.e,2,this.c,e,!1))):this.a=!1},l.a=!1,N(Ji,"EObjectContainmentWithInverseEList/Unsettable",748),M(1173,748,tc,rWt),l.Ek=function(){return!0},l.li=function(e,n){return ax(this,e,u(n,56))},N(Ji,"EObjectContainmentWithInverseEList/Unsettable/Resolving",1173),M(743,496,tc,Y2t),l.ci=function(){this.a=!0},l.fj=function(){return this.a},l.Xj=function(){var e;Ir(this),Ll(this.e)?(e=this.a,this.a=!1,Oi(this.e,new mf(this.e,2,this.c,e,!1))):this.a=!1},l.a=!1,N(Ji,"EObjectEList/Unsettable",743),M(328,496,tc,U3),l.Ek=function(){return!0},l.li=function(e,n){return ax(this,e,u(n,56))},N(Ji,"EObjectResolvingEList",328),M(1641,743,tc,YGt),l.Ek=function(){return!0},l.li=function(e,n){return ax(this,e,u(n,56))},N(Ji,"EObjectResolvingEList/Unsettable",1641),M(1381,1,{},rJ);var v4e;N(Ji,"EObjectValidator",1381),M(546,496,tc,Bj),l.zk=function(){return this.d},l.Ak=function(){return this.b},l.bj=function(){return!0},l.Dk=function(){return!0},l.b=0,N(Ji,"EObjectWithInverseEList",546),M(1176,546,tc,iWt),l.Ck=function(){return!0},N(Ji,"EObjectWithInverseEList/ManyInverse",1176),M(625,546,tc,tnt),l.ci=function(){this.a=!0},l.fj=function(){return this.a},l.Xj=function(){var e;Ir(this),Ll(this.e)?(e=this.a,this.a=!1,Oi(this.e,new mf(this.e,2,this.c,e,!1))):this.a=!1},l.a=!1,N(Ji,"EObjectWithInverseEList/Unsettable",625),M(1175,625,tc,sWt),l.Ck=function(){return!0},N(Ji,"EObjectWithInverseEList/Unsettable/ManyInverse",1175),M(749,546,tc,jbt),l.Ek=function(){return!0},l.li=function(e,n){return ax(this,e,u(n,56))},N(Ji,"EObjectWithInverseResolvingEList",749),M(31,749,tc,Tn),l.Ck=function(){return!0},N(Ji,"EObjectWithInverseResolvingEList/ManyInverse",31),M(750,625,tc,$bt),l.Ek=function(){return!0},l.li=function(e,n){return ax(this,e,u(n,56))},N(Ji,"EObjectWithInverseResolvingEList/Unsettable",750),M(1174,750,tc,aWt),l.Ck=function(){return!0},N(Ji,"EObjectWithInverseResolvingEList/Unsettable/ManyInverse",1174),M(1164,622,tc),l.ai=function(){return(this.b&1792)==0},l.ci=function(){this.b|=1},l.Bk=function(){return(this.b&4)!=0},l.bj=function(){return(this.b&40)!=0},l.Ck=function(){return(this.b&16)!=0},l.Dk=function(){return(this.b&8)!=0},l.Ek=function(){return(this.b&Cy)!=0},l.rk=function(){return(this.b&32)!=0},l.Fk=function(){return(this.b&Tf)!=0},l.wj=function(e){return this.d?zQt(this.d,e):this.ak().Yj().wj(e)},l.fj=function(){return this.b&2?(this.b&1)!=0:this.i!=0},l.hi=function(){return(this.b&128)!=0},l.Xj=function(){var e;Ir(this),this.b&2&&(Ll(this.e)?(e=(this.b&1)!=0,this.b&=-2,Kk(this,new mf(this.e,2,is(this.e.Tg(),this.ak()),e,!1))):this.b&=-2)},l.ni=function(){return(this.b&1536)==0},l.b=0,N(Ji,"EcoreEList/Generic",1164),M(1165,1164,tc,XYt),l.ak=function(){return this.a},N(Ji,"EcoreEList/Dynamic",1165),M(747,63,Id,Jgt),l.ri=function(e){return TD(this.a.a,e)},N(Ji,"EcoreEMap/1",747),M(746,85,tc,Rvt),l.bi=function(e,n){Oz(this.b,u(n,133))},l.di=function(e,n){Fee(this.b)},l.ei=function(e,n,r){var s;++(s=this.b,u(n,133),s).e},l.fi=function(e,n){Tit(this.b,u(n,133))},l.gi=function(e,n,r){Tit(this.b,u(r,133)),qt(r)===qt(n)&&u(r,133).Th(jKe(u(n,133).cd())),Oz(this.b,u(n,133))},N(Ji,"EcoreEMap/DelegateEObjectContainmentEList",746),M(1171,151,f8t,Yte),N(Ji,"EcoreEMap/Unsettable",1171),M(1172,746,tc,oWt),l.ci=function(){this.a=!0},l.fj=function(){return this.a},l.Xj=function(){var e;Ir(this),Ll(this.e)?(e=this.a,this.a=!1,Oi(this.e,new mf(this.e,2,this.c,e,!1))):this.a=!1},l.a=!1,N(Ji,"EcoreEMap/Unsettable/UnsettableDelegateEObjectContainmentEList",1172),M(1168,228,C4,JKt),l.a=!1,l.b=!1,N(Ji,"EcoreUtil/Copier",1168),M(745,1,va,CQt),l.Nb=function(e){Da(this,e)},l.Ob=function(){return kre(this)},l.Pb=function(){var e;return kre(this),e=this.b,this.b=null,e},l.Qb=function(){this.a.Qb()},N(Ji,"EcoreUtil/ProperContentIterator",745),M(1382,1381,{},NB);var w4e;N(Ji,"EcoreValidator",1382);var m4e;ls(Ji,"FeatureMapUtil/Validator"),M(1260,1,{1942:1},iJ),l.rl=function(e){return!0},N(Ji,"FeatureMapUtil/1",1260),M(757,1,{1942:1},e6t),l.rl=function(e){var n;return this.c==e?!0:(n=Be(or(this.a,e)),n==null?Mbn(this,e)?(NZt(this.a,e,(Rn(),Y7)),!0):(NZt(this.a,e,(Rn(),Lb)),!1):n==(Rn(),Y7))},l.e=!1;var vft;N(Ji,"FeatureMapUtil/BasicValidator",757),M(758,43,C4,G2t),N(Ji,"FeatureMapUtil/BasicValidator/Cache",758),M(501,52,{20:1,28:1,52:1,14:1,15:1,58:1,76:1,69:1,95:1},DM),l.Vc=function(e,n){Qoe(this.c,this.b,e,n)},l.Fc=function(e){return C5t(this.c,this.b,e)},l.Wc=function(e,n){return Gwn(this.c,this.b,e,n)},l.Gc=function(e){return s_(this,e)},l.Xh=function(e,n){fsn(this.c,this.b,e,n)},l.lk=function(e,n){return y5t(this.c,this.b,e,n)},l.pi=function(e){return fq(this.c,this.b,e,!1)},l.Zh=function(){return yGt(this.c,this.b)},l.$h=function(){return CKe(this.c,this.b)},l._h=function(e){return vin(this.c,this.b,e)},l.mk=function(e,n){return jUt(this,e,n)},l.$b=function(){b6(this)},l.Hc=function(e){return d$(this.c,this.b,e)},l.Ic=function(e){return ban(this.c,this.b,e)},l.Xb=function(e){return fq(this.c,this.b,e,!0)},l.Wj=function(e){return this},l.Xc=function(e){return Arn(this.c,this.b,e)},l.dc=function(){return GR(this)},l.fj=function(){return!VD(this.c,this.b)},l.Kc=function(){return tsn(this.c,this.b)},l.Yc=function(){return esn(this.c,this.b)},l.Zc=function(e){return dcn(this.c,this.b,e)},l.ii=function(e,n){return pue(this.c,this.b,e,n)},l.ji=function(e,n){hin(this.c,this.b,e,n)},l.$c=function(e){return Kse(this.c,this.b,e)},l.Mc=function(e){return Qbn(this.c,this.b,e)},l._c=function(e,n){return xue(this.c,this.b,e,n)},l.Wb=function(e){Yz(this.c,this.b),s_(this,u(e,15))},l.gc=function(){return Ccn(this.c,this.b)},l.Pc=function(){return _nn(this.c,this.b)},l.Qc=function(e){return Lrn(this.c,this.b,e)},l.Ib=function(){var e,n;for(n=new yg,n.a+="[",e=yGt(this.c,this.b);git(e);)So(n,o_(Dz(e))),git(e)&&(n.a+=ao);return n.a+="]",n.a},l.Xj=function(){Yz(this.c,this.b)},N(Ji,"FeatureMapUtil/FeatureEList",501),M(627,36,XI,brt),l.yi=function(e){return U_(this,e)},l.Di=function(e){var n,r,s,o,h,d,w;switch(this.d){case 1:case 2:{if(h=e.Ai(),qt(h)===qt(this.c)&&U_(this,null)==e.yi(null))return this.g=e.zi(),e.xi()==1&&(this.d=1),!0;break}case 3:{switch(o=e.xi(),o){case 3:{if(h=e.Ai(),qt(h)===qt(this.c)&&U_(this,null)==e.yi(null))return this.d=5,n=new Gv(2),Hr(n,this.g),Hr(n,e.zi()),this.g=n,!0;break}}break}case 5:{switch(o=e.xi(),o){case 3:{if(h=e.Ai(),qt(h)===qt(this.c)&&U_(this,null)==e.yi(null))return r=u(this.g,14),r.Fc(e.zi()),!0;break}}break}case 4:{switch(o=e.xi(),o){case 3:{if(h=e.Ai(),qt(h)===qt(this.c)&&U_(this,null)==e.yi(null))return this.d=1,this.g=e.zi(),!0;break}case 4:{if(h=e.Ai(),qt(h)===qt(this.c)&&U_(this,null)==e.yi(null))return this.d=6,w=new Gv(2),Hr(w,this.n),Hr(w,e.Bi()),this.n=w,d=ct(ot(Br,1),oi,25,15,[this.o,e.Ci()]),this.g=d,!0;break}}break}case 6:{switch(o=e.xi(),o){case 4:{if(h=e.Ai(),qt(h)===qt(this.c)&&U_(this,null)==e.yi(null))return r=u(this.n,14),r.Fc(e.Bi()),d=u(this.g,48),s=Ot(Br,oi,25,d.length+1,15,1),qc(d,0,s,0,d.length),s[d.length]=e.Ci(),this.g=s,!0;break}}break}}return!1},N(Ji,"FeatureMapUtil/FeatureENotificationImpl",627),M(552,501,{20:1,28:1,52:1,14:1,15:1,58:1,76:1,153:1,215:1,1937:1,69:1,95:1},kj),l.dl=function(e,n){return C5t(this.c,e,n)},l.el=function(e,n,r){return y5t(this.c,e,n,r)},l.fl=function(e,n,r){return H5t(this.c,e,n,r)},l.gl=function(){return this},l.hl=function(e,n){return xI(this.c,e,n)},l.il=function(e){return u(fq(this.c,this.b,e,!1),72).ak()},l.jl=function(e){return u(fq(this.c,this.b,e,!1),72).dd()},l.kl=function(){return this.a},l.ll=function(e){return!VD(this.c,e)},l.ml=function(e,n){dq(this.c,e,n)},l.nl=function(e){return nee(this.c,e)},l.ol=function(e){Cie(this.c,e)},N(Ji,"FeatureMapUtil/FeatureFeatureMap",552),M(1259,1,qct,KVt),l.Wj=function(e){return fq(this.b,this.a,-1,e)},l.fj=function(){return!VD(this.b,this.a)},l.Wb=function(e){dq(this.b,this.a,e)},l.Xj=function(){Yz(this.b,this.a)},N(Ji,"FeatureMapUtil/FeatureValue",1259);var Gx,wft,mft,Ux,y4e,hN=ls(_H,"AnyType");M(666,60,G0,Gtt),N(_H,"InvalidDatatypeValueException",666);var JG=ls(_H,Wde),fN=ls(_H,Kde),YAt=ls(_H,Yde),x4e,Mc,XAt,Vb,k4e,E4e,T4e,_4e,C4e,S4e,A4e,L4e,M4e,D4e,I4e,u5,O4e,l5,eA,N4e,zw,dN,gN,P4e,nA,rA;M(830,506,{105:1,92:1,90:1,56:1,49:1,97:1,843:1},ypt),l._g=function(e,n,r){switch(e){case 0:return r?(!this.c&&(this.c=new ws(this,0)),this.c):(!this.c&&(this.c=new ws(this,0)),this.c.b);case 1:return r?(!this.c&&(this.c=new ws(this,0)),u(Wc(this.c,(Vi(),Vb)),153)):(!this.c&&(this.c=new ws(this,0)),u(u(Wc(this.c,(Vi(),Vb)),153),215)).kl();case 2:return r?(!this.b&&(this.b=new ws(this,2)),this.b):(!this.b&&(this.b=new ws(this,2)),this.b.b)}return ph(this,e-ar(this.zh()),wn(this.j&2?(!this.k&&(this.k=new ch),this.k).ck():this.zh(),e),n,r)},l.jh=function(e,n,r){var s;switch(n){case 0:return!this.c&&(this.c=new ws(this,0)),vI(this.c,e,r);case 1:return(!this.c&&(this.c=new ws(this,0)),u(u(Wc(this.c,(Vi(),Vb)),153),69)).mk(e,r);case 2:return!this.b&&(this.b=new ws(this,2)),vI(this.b,e,r)}return s=u(wn(this.j&2?(!this.k&&(this.k=new ch),this.k).ck():this.zh(),n),66),s.Nj().Rj(this,dmt(this),n-ar(this.zh()),e,r)},l.lh=function(e){switch(e){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new ws(this,0)),u(Wc(this.c,(Vi(),Vb)),153)).dc();case 2:return!!this.b&&this.b.i!=0}return dh(this,e-ar(this.zh()),wn(this.j&2?(!this.k&&(this.k=new ch),this.k).ck():this.zh(),e))},l.sh=function(e,n){switch(e){case 0:!this.c&&(this.c=new ws(this,0)),XM(this.c,n);return;case 1:(!this.c&&(this.c=new ws(this,0)),u(u(Wc(this.c,(Vi(),Vb)),153),215)).Wb(n);return;case 2:!this.b&&(this.b=new ws(this,2)),XM(this.b,n);return}yh(this,e-ar(this.zh()),wn(this.j&2?(!this.k&&(this.k=new ch),this.k).ck():this.zh(),e),n)},l.zh=function(){return Vi(),XAt},l.Bh=function(e){switch(e){case 0:!this.c&&(this.c=new ws(this,0)),Ir(this.c);return;case 1:(!this.c&&(this.c=new ws(this,0)),u(Wc(this.c,(Vi(),Vb)),153)).$b();return;case 2:!this.b&&(this.b=new ws(this,2)),Ir(this.b);return}wh(this,e-ar(this.zh()),wn(this.j&2?(!this.k&&(this.k=new ch),this.k).ck():this.zh(),e))},l.Ib=function(){var e;return this.j&4?kf(this):(e=new Ih(kf(this)),e.a+=" (mixed: ",e_(e,this.c),e.a+=", anyAttribute: ",e_(e,this.b),e.a+=")",e.a)},N(Ps,"AnyTypeImpl",830),M(667,506,{105:1,92:1,90:1,56:1,49:1,97:1,2021:1,667:1},cB),l._g=function(e,n,r){switch(e){case 0:return this.a;case 1:return this.b}return ph(this,e-ar((Vi(),u5)),wn(this.j&2?(!this.k&&(this.k=new ch),this.k).ck():u5,e),n,r)},l.lh=function(e){switch(e){case 0:return this.a!=null;case 1:return this.b!=null}return dh(this,e-ar((Vi(),u5)),wn(this.j&2?(!this.k&&(this.k=new ch),this.k).ck():u5,e))},l.sh=function(e,n){switch(e){case 0:vtt(this,Kr(n));return;case 1:Ygt(this,Kr(n));return}yh(this,e-ar((Vi(),u5)),wn(this.j&2?(!this.k&&(this.k=new ch),this.k).ck():u5,e),n)},l.zh=function(){return Vi(),u5},l.Bh=function(e){switch(e){case 0:this.a=null;return;case 1:this.b=null;return}wh(this,e-ar((Vi(),u5)),wn(this.j&2?(!this.k&&(this.k=new ch),this.k).ck():u5,e))},l.Ib=function(){var e;return this.j&4?kf(this):(e=new Ih(kf(this)),e.a+=" (data: ",So(e,this.a),e.a+=", target: ",So(e,this.b),e.a+=")",e.a)},l.a=null,l.b=null,N(Ps,"ProcessingInstructionImpl",667),M(668,830,{105:1,92:1,90:1,56:1,49:1,97:1,843:1,2022:1,668:1},Pzt),l._g=function(e,n,r){switch(e){case 0:return r?(!this.c&&(this.c=new ws(this,0)),this.c):(!this.c&&(this.c=new ws(this,0)),this.c.b);case 1:return r?(!this.c&&(this.c=new ws(this,0)),u(Wc(this.c,(Vi(),Vb)),153)):(!this.c&&(this.c=new ws(this,0)),u(u(Wc(this.c,(Vi(),Vb)),153),215)).kl();case 2:return r?(!this.b&&(this.b=new ws(this,2)),this.b):(!this.b&&(this.b=new ws(this,2)),this.b.b);case 3:return!this.c&&(this.c=new ws(this,0)),Kr(xI(this.c,(Vi(),eA),!0));case 4:return zbt(this.a,(!this.c&&(this.c=new ws(this,0)),Kr(xI(this.c,(Vi(),eA),!0))));case 5:return this.a}return ph(this,e-ar((Vi(),l5)),wn(this.j&2?(!this.k&&(this.k=new ch),this.k).ck():l5,e),n,r)},l.lh=function(e){switch(e){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new ws(this,0)),u(Wc(this.c,(Vi(),Vb)),153)).dc();case 2:return!!this.b&&this.b.i!=0;case 3:return!this.c&&(this.c=new ws(this,0)),Kr(xI(this.c,(Vi(),eA),!0))!=null;case 4:return zbt(this.a,(!this.c&&(this.c=new ws(this,0)),Kr(xI(this.c,(Vi(),eA),!0))))!=null;case 5:return!!this.a}return dh(this,e-ar((Vi(),l5)),wn(this.j&2?(!this.k&&(this.k=new ch),this.k).ck():l5,e))},l.sh=function(e,n){switch(e){case 0:!this.c&&(this.c=new ws(this,0)),XM(this.c,n);return;case 1:(!this.c&&(this.c=new ws(this,0)),u(u(Wc(this.c,(Vi(),Vb)),153),215)).Wb(n);return;case 2:!this.b&&(this.b=new ws(this,2)),XM(this.b,n);return;case 3:Cwt(this,Kr(n));return;case 4:Cwt(this,qbt(this.a,n));return;case 5:Dc(this,u(n,148));return}yh(this,e-ar((Vi(),l5)),wn(this.j&2?(!this.k&&(this.k=new ch),this.k).ck():l5,e),n)},l.zh=function(){return Vi(),l5},l.Bh=function(e){switch(e){case 0:!this.c&&(this.c=new ws(this,0)),Ir(this.c);return;case 1:(!this.c&&(this.c=new ws(this,0)),u(Wc(this.c,(Vi(),Vb)),153)).$b();return;case 2:!this.b&&(this.b=new ws(this,2)),Ir(this.b);return;case 3:!this.c&&(this.c=new ws(this,0)),dq(this.c,(Vi(),eA),null);return;case 4:Cwt(this,qbt(this.a,null));return;case 5:this.a=null;return}wh(this,e-ar((Vi(),l5)),wn(this.j&2?(!this.k&&(this.k=new ch),this.k).ck():l5,e))},N(Ps,"SimpleAnyTypeImpl",668),M(669,506,{105:1,92:1,90:1,56:1,49:1,97:1,2023:1,669:1},Nzt),l._g=function(e,n,r){switch(e){case 0:return r?(!this.a&&(this.a=new ws(this,0)),this.a):(!this.a&&(this.a=new ws(this,0)),this.a.b);case 1:return r?(!this.b&&(this.b=new Nl((hn(),uo),xc,this,1)),this.b):(!this.b&&(this.b=new Nl((hn(),uo),xc,this,1)),hD(this.b));case 2:return r?(!this.c&&(this.c=new Nl((hn(),uo),xc,this,2)),this.c):(!this.c&&(this.c=new Nl((hn(),uo),xc,this,2)),hD(this.c));case 3:return!this.a&&(this.a=new ws(this,0)),Wc(this.a,(Vi(),dN));case 4:return!this.a&&(this.a=new ws(this,0)),Wc(this.a,(Vi(),gN));case 5:return!this.a&&(this.a=new ws(this,0)),Wc(this.a,(Vi(),nA));case 6:return!this.a&&(this.a=new ws(this,0)),Wc(this.a,(Vi(),rA))}return ph(this,e-ar((Vi(),zw)),wn(this.j&2?(!this.k&&(this.k=new ch),this.k).ck():zw,e),n,r)},l.jh=function(e,n,r){var s;switch(n){case 0:return!this.a&&(this.a=new ws(this,0)),vI(this.a,e,r);case 1:return!this.b&&(this.b=new Nl((hn(),uo),xc,this,1)),dj(this.b,e,r);case 2:return!this.c&&(this.c=new Nl((hn(),uo),xc,this,2)),dj(this.c,e,r);case 5:return!this.a&&(this.a=new ws(this,0)),jUt(Wc(this.a,(Vi(),nA)),e,r)}return s=u(wn(this.j&2?(!this.k&&(this.k=new ch),this.k).ck():(Vi(),zw),n),66),s.Nj().Rj(this,dmt(this),n-ar((Vi(),zw)),e,r)},l.lh=function(e){switch(e){case 0:return!!this.a&&this.a.i!=0;case 1:return!!this.b&&this.b.f!=0;case 2:return!!this.c&&this.c.f!=0;case 3:return!this.a&&(this.a=new ws(this,0)),!GR(Wc(this.a,(Vi(),dN)));case 4:return!this.a&&(this.a=new ws(this,0)),!GR(Wc(this.a,(Vi(),gN)));case 5:return!this.a&&(this.a=new ws(this,0)),!GR(Wc(this.a,(Vi(),nA)));case 6:return!this.a&&(this.a=new ws(this,0)),!GR(Wc(this.a,(Vi(),rA)))}return dh(this,e-ar((Vi(),zw)),wn(this.j&2?(!this.k&&(this.k=new ch),this.k).ck():zw,e))},l.sh=function(e,n){switch(e){case 0:!this.a&&(this.a=new ws(this,0)),XM(this.a,n);return;case 1:!this.b&&(this.b=new Nl((hn(),uo),xc,this,1)),ez(this.b,n);return;case 2:!this.c&&(this.c=new Nl((hn(),uo),xc,this,2)),ez(this.c,n);return;case 3:!this.a&&(this.a=new ws(this,0)),b6(Wc(this.a,(Vi(),dN))),!this.a&&(this.a=new ws(this,0)),s_(Wc(this.a,dN),u(n,14));return;case 4:!this.a&&(this.a=new ws(this,0)),b6(Wc(this.a,(Vi(),gN))),!this.a&&(this.a=new ws(this,0)),s_(Wc(this.a,gN),u(n,14));return;case 5:!this.a&&(this.a=new ws(this,0)),b6(Wc(this.a,(Vi(),nA))),!this.a&&(this.a=new ws(this,0)),s_(Wc(this.a,nA),u(n,14));return;case 6:!this.a&&(this.a=new ws(this,0)),b6(Wc(this.a,(Vi(),rA))),!this.a&&(this.a=new ws(this,0)),s_(Wc(this.a,rA),u(n,14));return}yh(this,e-ar((Vi(),zw)),wn(this.j&2?(!this.k&&(this.k=new ch),this.k).ck():zw,e),n)},l.zh=function(){return Vi(),zw},l.Bh=function(e){switch(e){case 0:!this.a&&(this.a=new ws(this,0)),Ir(this.a);return;case 1:!this.b&&(this.b=new Nl((hn(),uo),xc,this,1)),this.b.c.$b();return;case 2:!this.c&&(this.c=new Nl((hn(),uo),xc,this,2)),this.c.c.$b();return;case 3:!this.a&&(this.a=new ws(this,0)),b6(Wc(this.a,(Vi(),dN)));return;case 4:!this.a&&(this.a=new ws(this,0)),b6(Wc(this.a,(Vi(),gN)));return;case 5:!this.a&&(this.a=new ws(this,0)),b6(Wc(this.a,(Vi(),nA)));return;case 6:!this.a&&(this.a=new ws(this,0)),b6(Wc(this.a,(Vi(),rA)));return}wh(this,e-ar((Vi(),zw)),wn(this.j&2?(!this.k&&(this.k=new ch),this.k).ck():zw,e))},l.Ib=function(){var e;return this.j&4?kf(this):(e=new Ih(kf(this)),e.a+=" (mixed: ",e_(e,this.a),e.a+=")",e.a)},N(Ps,"XMLTypeDocumentRootImpl",669),M(1919,704,{105:1,92:1,90:1,471:1,147:1,56:1,108:1,49:1,97:1,150:1,114:1,115:1,2024:1},xm),l.Ih=function(e,n){switch(e.yj()){case 7:case 8:case 9:case 10:case 16:case 22:case 23:case 24:case 25:case 26:case 32:case 33:case 34:case 36:case 37:case 44:case 45:case 50:case 51:case 53:case 55:case 56:case 57:case 58:case 60:case 61:case 4:return n==null?null:Jo(n);case 19:case 28:case 29:case 35:case 38:case 39:case 41:case 46:case 52:case 54:case 5:return Kr(n);case 6:return VYe(u(n,190));case 12:case 47:case 49:case 11:return cle(this,e,n);case 13:return n==null?null:Dwn(u(n,240));case 15:case 14:return n==null?null:zJe(Xt(xe(n)));case 17:return hse((Vi(),n));case 18:return hse(n);case 21:case 20:return n==null?null:qJe(u(n,155).a);case 27:return GYe(u(n,190));case 30:return Sie((Vi(),u(n,15)));case 31:return Sie(u(n,15));case 40:return WYe((Vi(),n));case 42:return fse((Vi(),n));case 43:return fse(n);case 59:case 48:return UYe((Vi(),n));default:throw et(new Bn(H7+e.ne()+mw))}},l.Jh=function(e){var n,r,s,o,h;switch(e.G==-1&&(e.G=(r=Vl(e),r?Pg(r.Mh(),e):-1)),e.G){case 0:return n=new ypt,n;case 1:return s=new cB,s;case 2:return o=new Pzt,o;case 3:return h=new Nzt,h;default:throw et(new Bn(Cct+e.zb+mw))}},l.Kh=function(e,n){var r,s,o,h,d,w,k,_,L,F,q,G,W,Z,bt,Lt;switch(e.yj()){case 5:case 52:case 4:return n;case 6:return oln(n);case 8:case 7:return n==null?null:Kfn(n);case 9:return n==null?null:kD(Kl((s=Xc(n,!0),s.length>0&&(Yr(0,s.length),s.charCodeAt(0)==43)?s.substr(1):s),-128,127)<<24>>24);case 10:return n==null?null:kD(Kl((o=Xc(n,!0),o.length>0&&(Yr(0,o.length),o.charCodeAt(0)==43)?o.substr(1):o),-128,127)<<24>>24);case 11:return Kr(fw(this,(Vi(),T4e),n));case 12:return Kr(fw(this,(Vi(),_4e),n));case 13:return n==null?null:new zpt(Xc(n,!0));case 15:case 14:return ppn(n);case 16:return Kr(fw(this,(Vi(),C4e),n));case 17:return Ore((Vi(),n));case 18:return Ore(n);case 28:case 29:case 35:case 38:case 39:case 41:case 54:case 19:return Xc(n,!0);case 21:case 20:return Tpn(n);case 22:return Kr(fw(this,(Vi(),S4e),n));case 23:return Kr(fw(this,(Vi(),A4e),n));case 24:return Kr(fw(this,(Vi(),L4e),n));case 25:return Kr(fw(this,(Vi(),M4e),n));case 26:return Kr(fw(this,(Vi(),D4e),n));case 27:return nln(n);case 30:return Nre((Vi(),n));case 31:return Nre(n);case 32:return n==null?null:pe(Kl((L=Xc(n,!0),L.length>0&&(Yr(0,L.length),L.charCodeAt(0)==43)?L.substr(1):L),$a,Di));case 33:return n==null?null:new Fp((F=Xc(n,!0),F.length>0&&(Yr(0,F.length),F.charCodeAt(0)==43)?F.substr(1):F));case 34:return n==null?null:pe(Kl((q=Xc(n,!0),q.length>0&&(Yr(0,q.length),q.charCodeAt(0)==43)?q.substr(1):q),$a,Di));case 36:return n==null?null:fb(wq((G=Xc(n,!0),G.length>0&&(Yr(0,G.length),G.charCodeAt(0)==43)?G.substr(1):G)));case 37:return n==null?null:fb(wq((W=Xc(n,!0),W.length>0&&(Yr(0,W.length),W.charCodeAt(0)==43)?W.substr(1):W)));case 40:return wun((Vi(),n));case 42:return Pre((Vi(),n));case 43:return Pre(n);case 44:return n==null?null:new Fp((Z=Xc(n,!0),Z.length>0&&(Yr(0,Z.length),Z.charCodeAt(0)==43)?Z.substr(1):Z));case 45:return n==null?null:new Fp((bt=Xc(n,!0),bt.length>0&&(Yr(0,bt.length),bt.charCodeAt(0)==43)?bt.substr(1):bt));case 46:return Xc(n,!1);case 47:return Kr(fw(this,(Vi(),I4e),n));case 59:case 48:return vun((Vi(),n));case 49:return Kr(fw(this,(Vi(),O4e),n));case 50:return n==null?null:e7(Kl((Lt=Xc(n,!0),Lt.length>0&&(Yr(0,Lt.length),Lt.charCodeAt(0)==43)?Lt.substr(1):Lt),xH,32767)<<16>>16);case 51:return n==null?null:e7(Kl((h=Xc(n,!0),h.length>0&&(Yr(0,h.length),h.charCodeAt(0)==43)?h.substr(1):h),xH,32767)<<16>>16);case 53:return Kr(fw(this,(Vi(),N4e),n));case 55:return n==null?null:e7(Kl((d=Xc(n,!0),d.length>0&&(Yr(0,d.length),d.charCodeAt(0)==43)?d.substr(1):d),xH,32767)<<16>>16);case 56:return n==null?null:e7(Kl((w=Xc(n,!0),w.length>0&&(Yr(0,w.length),w.charCodeAt(0)==43)?w.substr(1):w),xH,32767)<<16>>16);case 57:return n==null?null:fb(wq((k=Xc(n,!0),k.length>0&&(Yr(0,k.length),k.charCodeAt(0)==43)?k.substr(1):k)));case 58:return n==null?null:fb(wq((_=Xc(n,!0),_.length>0&&(Yr(0,_.length),_.charCodeAt(0)==43)?_.substr(1):_)));case 60:return n==null?null:pe(Kl((r=Xc(n,!0),r.length>0&&(Yr(0,r.length),r.charCodeAt(0)==43)?r.substr(1):r),$a,Di));case 61:return n==null?null:pe(Kl(Xc(n,!0),$a,Di));default:throw et(new Bn(H7+e.ne()+mw))}};var F4e,QAt,B4e,ZAt;N(Ps,"XMLTypeFactoryImpl",1919),M(586,179,{105:1,92:1,90:1,147:1,191:1,56:1,235:1,108:1,49:1,97:1,150:1,179:1,114:1,115:1,675:1,1945:1,586:1},yYt),l.N=!1,l.O=!1;var R4e=!1;N(Ps,"XMLTypePackageImpl",586),M(1852,1,{837:1},r6),l._j=function(){return N5t(),W4e},N(Ps,"XMLTypePackageImpl/1",1852),M(1861,1,vi,m1),l.wj=function(e){return pa(e)},l.xj=function(e){return Ot(Me,te,2,e,6,1)},N(Ps,"XMLTypePackageImpl/10",1861),M(1862,1,vi,uB),l.wj=function(e){return pa(e)},l.xj=function(e){return Ot(Me,te,2,e,6,1)},N(Ps,"XMLTypePackageImpl/11",1862),M(1863,1,vi,lB),l.wj=function(e){return pa(e)},l.xj=function(e){return Ot(Me,te,2,e,6,1)},N(Ps,"XMLTypePackageImpl/12",1863),M(1864,1,vi,hB),l.wj=function(e){return Im(e)},l.xj=function(e){return Ot(ka,te,333,e,7,1)},N(Ps,"XMLTypePackageImpl/13",1864),M(1865,1,vi,fB),l.wj=function(e){return pa(e)},l.xj=function(e){return Ot(Me,te,2,e,6,1)},N(Ps,"XMLTypePackageImpl/14",1865),M(1866,1,vi,dB),l.wj=function(e){return Et(e,15)},l.xj=function(e){return Ot(Eh,my,15,e,0,1)},N(Ps,"XMLTypePackageImpl/15",1866),M(1867,1,vi,gB),l.wj=function(e){return Et(e,15)},l.xj=function(e){return Ot(Eh,my,15,e,0,1)},N(Ps,"XMLTypePackageImpl/16",1867),M(1868,1,vi,Gf),l.wj=function(e){return pa(e)},l.xj=function(e){return Ot(Me,te,2,e,6,1)},N(Ps,"XMLTypePackageImpl/17",1868),M(1869,1,vi,ku),l.wj=function(e){return Et(e,155)},l.xj=function(e){return Ot(X7,te,155,e,0,1)},N(Ps,"XMLTypePackageImpl/18",1869),M(1870,1,vi,sJ),l.wj=function(e){return pa(e)},l.xj=function(e){return Ot(Me,te,2,e,6,1)},N(Ps,"XMLTypePackageImpl/19",1870),M(1853,1,vi,aJ),l.wj=function(e){return Et(e,843)},l.xj=function(e){return Ot(hN,De,843,e,0,1)},N(Ps,"XMLTypePackageImpl/2",1853),M(1871,1,vi,oJ),l.wj=function(e){return pa(e)},l.xj=function(e){return Ot(Me,te,2,e,6,1)},N(Ps,"XMLTypePackageImpl/20",1871),M(1872,1,vi,Eu),l.wj=function(e){return pa(e)},l.xj=function(e){return Ot(Me,te,2,e,6,1)},N(Ps,"XMLTypePackageImpl/21",1872),M(1873,1,vi,JE),l.wj=function(e){return pa(e)},l.xj=function(e){return Ot(Me,te,2,e,6,1)},N(Ps,"XMLTypePackageImpl/22",1873),M(1874,1,vi,pB),l.wj=function(e){return pa(e)},l.xj=function(e){return Ot(Me,te,2,e,6,1)},N(Ps,"XMLTypePackageImpl/23",1874),M(1875,1,vi,bB),l.wj=function(e){return Et(e,190)},l.xj=function(e){return Ot(tl,te,190,e,0,2)},N(Ps,"XMLTypePackageImpl/24",1875),M(1876,1,vi,i6),l.wj=function(e){return pa(e)},l.xj=function(e){return Ot(Me,te,2,e,6,1)},N(Ps,"XMLTypePackageImpl/25",1876),M(1877,1,vi,cJ),l.wj=function(e){return pa(e)},l.xj=function(e){return Ot(Me,te,2,e,6,1)},N(Ps,"XMLTypePackageImpl/26",1877),M(1878,1,vi,Ik),l.wj=function(e){return Et(e,15)},l.xj=function(e){return Ot(Eh,my,15,e,0,1)},N(Ps,"XMLTypePackageImpl/27",1878),M(1879,1,vi,uJ),l.wj=function(e){return Et(e,15)},l.xj=function(e){return Ot(Eh,my,15,e,0,1)},N(Ps,"XMLTypePackageImpl/28",1879),M(1880,1,vi,vB),l.wj=function(e){return pa(e)},l.xj=function(e){return Ot(Me,te,2,e,6,1)},N(Ps,"XMLTypePackageImpl/29",1880),M(1854,1,vi,lJ),l.wj=function(e){return Et(e,667)},l.xj=function(e){return Ot(JG,De,2021,e,0,1)},N(Ps,"XMLTypePackageImpl/3",1854),M(1881,1,vi,hJ),l.wj=function(e){return Et(e,19)},l.xj=function(e){return Ot(to,te,19,e,0,1)},N(Ps,"XMLTypePackageImpl/30",1881),M(1882,1,vi,tT),l.wj=function(e){return pa(e)},l.xj=function(e){return Ot(Me,te,2,e,6,1)},N(Ps,"XMLTypePackageImpl/31",1882),M(1883,1,vi,wB),l.wj=function(e){return Et(e,162)},l.xj=function(e){return Ot(xw,te,162,e,0,1)},N(Ps,"XMLTypePackageImpl/32",1883),M(1884,1,vi,$L),l.wj=function(e){return pa(e)},l.xj=function(e){return Ot(Me,te,2,e,6,1)},N(Ps,"XMLTypePackageImpl/33",1884),M(1885,1,vi,eT),l.wj=function(e){return pa(e)},l.xj=function(e){return Ot(Me,te,2,e,6,1)},N(Ps,"XMLTypePackageImpl/34",1885),M(1886,1,vi,fJ),l.wj=function(e){return pa(e)},l.xj=function(e){return Ot(Me,te,2,e,6,1)},N(Ps,"XMLTypePackageImpl/35",1886),M(1887,1,vi,dJ),l.wj=function(e){return pa(e)},l.xj=function(e){return Ot(Me,te,2,e,6,1)},N(Ps,"XMLTypePackageImpl/36",1887),M(1888,1,vi,zL),l.wj=function(e){return Et(e,15)},l.xj=function(e){return Ot(Eh,my,15,e,0,1)},N(Ps,"XMLTypePackageImpl/37",1888),M(1889,1,vi,nT),l.wj=function(e){return Et(e,15)},l.xj=function(e){return Ot(Eh,my,15,e,0,1)},N(Ps,"XMLTypePackageImpl/38",1889),M(1890,1,vi,y1),l.wj=function(e){return pa(e)},l.xj=function(e){return Ot(Me,te,2,e,6,1)},N(Ps,"XMLTypePackageImpl/39",1890),M(1855,1,vi,Ok),l.wj=function(e){return Et(e,668)},l.xj=function(e){return Ot(fN,De,2022,e,0,1)},N(Ps,"XMLTypePackageImpl/4",1855),M(1891,1,vi,gJ),l.wj=function(e){return pa(e)},l.xj=function(e){return Ot(Me,te,2,e,6,1)},N(Ps,"XMLTypePackageImpl/40",1891),M(1892,1,vi,Nk),l.wj=function(e){return pa(e)},l.xj=function(e){return Ot(Me,te,2,e,6,1)},N(Ps,"XMLTypePackageImpl/41",1892),M(1893,1,vi,qL),l.wj=function(e){return pa(e)},l.xj=function(e){return Ot(Me,te,2,e,6,1)},N(Ps,"XMLTypePackageImpl/42",1893),M(1894,1,vi,z2),l.wj=function(e){return pa(e)},l.xj=function(e){return Ot(Me,te,2,e,6,1)},N(Ps,"XMLTypePackageImpl/43",1894),M(1895,1,vi,rT),l.wj=function(e){return pa(e)},l.xj=function(e){return Ot(Me,te,2,e,6,1)},N(Ps,"XMLTypePackageImpl/44",1895),M(1896,1,vi,HL),l.wj=function(e){return Et(e,184)},l.xj=function(e){return Ot(kw,te,184,e,0,1)},N(Ps,"XMLTypePackageImpl/45",1896),M(1897,1,vi,Uf),l.wj=function(e){return pa(e)},l.xj=function(e){return Ot(Me,te,2,e,6,1)},N(Ps,"XMLTypePackageImpl/46",1897),M(1898,1,vi,iT),l.wj=function(e){return pa(e)},l.xj=function(e){return Ot(Me,te,2,e,6,1)},N(Ps,"XMLTypePackageImpl/47",1898),M(1899,1,vi,x1),l.wj=function(e){return pa(e)},l.xj=function(e){return Ot(Me,te,2,e,6,1)},N(Ps,"XMLTypePackageImpl/48",1899),M(i2,1,vi,k1),l.wj=function(e){return Et(e,184)},l.xj=function(e){return Ot(kw,te,184,e,0,1)},N(Ps,"XMLTypePackageImpl/49",i2),M(1856,1,vi,pJ),l.wj=function(e){return Et(e,669)},l.xj=function(e){return Ot(YAt,De,2023,e,0,1)},N(Ps,"XMLTypePackageImpl/5",1856),M(1901,1,vi,bJ),l.wj=function(e){return Et(e,162)},l.xj=function(e){return Ot(xw,te,162,e,0,1)},N(Ps,"XMLTypePackageImpl/50",1901),M(1902,1,vi,A3),l.wj=function(e){return pa(e)},l.xj=function(e){return Ot(Me,te,2,e,6,1)},N(Ps,"XMLTypePackageImpl/51",1902),M(1903,1,vi,Pk),l.wj=function(e){return Et(e,19)},l.xj=function(e){return Ot(to,te,19,e,0,1)},N(Ps,"XMLTypePackageImpl/52",1903),M(1857,1,vi,Fk),l.wj=function(e){return pa(e)},l.xj=function(e){return Ot(Me,te,2,e,6,1)},N(Ps,"XMLTypePackageImpl/6",1857),M(1858,1,vi,sT),l.wj=function(e){return Et(e,190)},l.xj=function(e){return Ot(tl,te,190,e,0,2)},N(Ps,"XMLTypePackageImpl/7",1858),M(1859,1,vi,vJ),l.wj=function(e){return Dm(e)},l.xj=function(e){return Ot(Zs,te,476,e,8,1)},N(Ps,"XMLTypePackageImpl/8",1859),M(1860,1,vi,s6),l.wj=function(e){return Et(e,217)},l.xj=function(e){return Ot(kx,te,217,e,0,1)},N(Ps,"XMLTypePackageImpl/9",1860);var td,np,iA,tU,vt;M(50,60,G0,Wr),N(Vg,"RegEx/ParseException",50),M(820,1,{},VL),l.sl=function(e){return er*16)throw et(new Wr(Jr((Ur(),ade))));r=r*16+o}while(!0);if(this.a!=125)throw et(new Wr(Jr((Ur(),ode))));if(r>W7)throw et(new Wr(Jr((Ur(),cde))));e=r}else{if(o=0,this.c!=0||(o=gb(this.a))<0)throw et(new Wr(Jr((Ur(),Hg))));if(r=o,Si(this),this.c!=0||(o=gb(this.a))<0)throw et(new Wr(Jr((Ur(),Hg))));r=r*16+o,e=r}break;case 117:if(s=0,Si(this),this.c!=0||(s=gb(this.a))<0)throw et(new Wr(Jr((Ur(),Hg))));if(n=s,Si(this),this.c!=0||(s=gb(this.a))<0)throw et(new Wr(Jr((Ur(),Hg))));if(n=n*16+s,Si(this),this.c!=0||(s=gb(this.a))<0)throw et(new Wr(Jr((Ur(),Hg))));if(n=n*16+s,Si(this),this.c!=0||(s=gb(this.a))<0)throw et(new Wr(Jr((Ur(),Hg))));n=n*16+s,e=n;break;case 118:if(Si(this),this.c!=0||(s=gb(this.a))<0)throw et(new Wr(Jr((Ur(),Hg))));if(n=s,Si(this),this.c!=0||(s=gb(this.a))<0)throw et(new Wr(Jr((Ur(),Hg))));if(n=n*16+s,Si(this),this.c!=0||(s=gb(this.a))<0)throw et(new Wr(Jr((Ur(),Hg))));if(n=n*16+s,Si(this),this.c!=0||(s=gb(this.a))<0)throw et(new Wr(Jr((Ur(),Hg))));if(n=n*16+s,Si(this),this.c!=0||(s=gb(this.a))<0)throw et(new Wr(Jr((Ur(),Hg))));if(n=n*16+s,Si(this),this.c!=0||(s=gb(this.a))<0)throw et(new Wr(Jr((Ur(),Hg))));if(n=n*16+s,n>W7)throw et(new Wr(Jr((Ur(),"parser.descappe.4"))));e=n;break;case 65:case 90:case 122:throw et(new Wr(Jr((Ur(),ude))))}return e},l.ul=function(e){var n,r;switch(e){case 100:r=(this.e&32)==32?n2("Nd",!0):(Ai(),eU);break;case 68:r=(this.e&32)==32?n2("Nd",!1):(Ai(),iLt);break;case 119:r=(this.e&32)==32?n2("IsWord",!0):(Ai(),N9);break;case 87:r=(this.e&32)==32?n2("IsWord",!1):(Ai(),aLt);break;case 115:r=(this.e&32)==32?n2("IsSpace",!0):(Ai(),Wx);break;case 83:r=(this.e&32)==32?n2("IsSpace",!1):(Ai(),sLt);break;default:throw et(new ic((n=e,u0e+n.toString(16))))}return r},l.vl=function(e){var n,r,s,o,h,d,w,k,_,L,F,q;for(this.b=1,Si(this),n=null,this.c==0&&this.a==94?(Si(this),e?L=(Ai(),Ai(),new ql(5)):(n=(Ai(),Ai(),new ql(4)),Yc(n,0,W7),L=new ql(4))):L=(Ai(),Ai(),new ql(4)),o=!0;(q=this.c)!=1&&!(q==0&&this.a==93&&!o);){if(o=!1,r=this.a,s=!1,q==10)switch(r){case 100:case 68:case 119:case 87:case 115:case 83:py(L,this.ul(r)),s=!0;break;case 105:case 73:case 99:case 67:r=this.Ll(L,r),r<0&&(s=!0);break;case 112:case 80:if(F=F4t(this,r),!F)throw et(new Wr(Jr((Ur(),jct))));py(L,F),s=!0;break;default:r=this.tl()}else if(q==20){if(d=l8(this.i,58,this.d),d<0)throw et(new Wr(Jr((Ur(),a8t))));if(w=!0,Ia(this.i,this.d)==94&&(++this.d,w=!1),h=$l(this.i,this.d,d),k=xJt(h,w,(this.e&512)==512),!k)throw et(new Wr(Jr((Ur(),ede))));if(py(L,k),s=!0,d+1>=this.j||Ia(this.i,d+1)!=93)throw et(new Wr(Jr((Ur(),a8t))));this.d=d+2}if(Si(this),!s)if(this.c!=0||this.a!=45)Yc(L,r,r);else{if(Si(this),(q=this.c)==1)throw et(new Wr(Jr((Ur(),gH))));q==0&&this.a==93?(Yc(L,r,r),Yc(L,45,45)):(_=this.a,q==10&&(_=this.tl()),Si(this),Yc(L,r,_))}(this.e&Tf)==Tf&&this.c==0&&this.a==44&&Si(this)}if(this.c==1)throw et(new Wr(Jr((Ur(),gH))));return n&&(yC(n,L),L=n),b4(L),wC(L),this.b=0,Si(this),L},l.wl=function(){var e,n,r,s;for(r=this.vl(!1);(s=this.c)!=7;)if(e=this.a,s==0&&(e==45||e==38)||s==4){if(Si(this),this.c!=9)throw et(new Wr(Jr((Ur(),rde))));if(n=this.vl(!1),s==4)py(r,n);else if(e==45)yC(r,n);else if(e==38)nle(r,n);else throw et(new ic("ASSERT"))}else throw et(new Wr(Jr((Ur(),ide))));return Si(this),r},l.xl=function(){var e,n;return e=this.a-48,n=(Ai(),Ai(),new Jnt(12,null,e)),!this.g&&(this.g=new rR),nR(this.g,new tpt(e)),Si(this),n},l.yl=function(){return Si(this),Ai(),z4e},l.zl=function(){return Si(this),Ai(),$4e},l.Al=function(){throw et(new Wr(Jr((Ur(),kh))))},l.Bl=function(){throw et(new Wr(Jr((Ur(),kh))))},l.Cl=function(){return Si(this),mon()},l.Dl=function(){return Si(this),Ai(),H4e},l.El=function(){return Si(this),Ai(),G4e},l.Fl=function(){var e;if(this.d>=this.j||((e=Ia(this.i,this.d++))&65504)!=64)throw et(new Wr(Jr((Ur(),Z1e))));return Si(this),Ai(),Ai(),new Kd(0,e-64)},l.Gl=function(){return Si(this),nwn()},l.Hl=function(){return Si(this),Ai(),U4e},l.Il=function(){var e;return e=(Ai(),Ai(),new Kd(0,105)),Si(this),e},l.Jl=function(){return Si(this),Ai(),V4e},l.Kl=function(){return Si(this),Ai(),q4e},l.Ll=function(e,n){return this.tl()},l.Ml=function(){return Si(this),Ai(),nLt},l.Nl=function(){var e,n,r,s,o;if(this.d+1>=this.j)throw et(new Wr(Jr((Ur(),Y1e))));if(s=-1,n=null,e=Ia(this.i,this.d),49<=e&&e<=57){if(s=e-48,!this.g&&(this.g=new rR),nR(this.g,new tpt(s)),++this.d,Ia(this.i,this.d)!=41)throw et(new Wr(Jr((Ur(),Cb))));++this.d}else switch(e==63&&--this.d,Si(this),n=s6t(this),n.e){case 20:case 21:case 22:case 23:break;case 8:if(this.c!=7)throw et(new Wr(Jr((Ur(),Cb))));break;default:throw et(new Wr(Jr((Ur(),X1e))))}if(Si(this),o=nw(this),r=null,o.e==2){if(o.em()!=2)throw et(new Wr(Jr((Ur(),Q1e))));r=o.am(1),o=o.am(0)}if(this.c!=7)throw et(new Wr(Jr((Ur(),Cb))));return Si(this),Ai(),Ai(),new JJt(s,n,o,r)},l.Ol=function(){return Si(this),Ai(),rLt},l.Pl=function(){var e;if(Si(this),e=Rj(24,nw(this)),this.c!=7)throw et(new Wr(Jr((Ur(),Cb))));return Si(this),e},l.Ql=function(){var e;if(Si(this),e=Rj(20,nw(this)),this.c!=7)throw et(new Wr(Jr((Ur(),Cb))));return Si(this),e},l.Rl=function(){var e;if(Si(this),e=Rj(22,nw(this)),this.c!=7)throw et(new Wr(Jr((Ur(),Cb))));return Si(this),e},l.Sl=function(){var e,n,r,s,o;for(e=0,r=0,n=-1;this.d=this.j)throw et(new Wr(Jr((Ur(),i8t))));if(n==45){for(++this.d;this.d=this.j)throw et(new Wr(Jr((Ur(),i8t))))}if(n==58){if(++this.d,Si(this),s=iYt(nw(this),e,r),this.c!=7)throw et(new Wr(Jr((Ur(),Cb))));Si(this)}else if(n==41)++this.d,Si(this),s=iYt(nw(this),e,r);else throw et(new Wr(Jr((Ur(),K1e))));return s},l.Tl=function(){var e;if(Si(this),e=Rj(21,nw(this)),this.c!=7)throw et(new Wr(Jr((Ur(),Cb))));return Si(this),e},l.Ul=function(){var e;if(Si(this),e=Rj(23,nw(this)),this.c!=7)throw et(new Wr(Jr((Ur(),Cb))));return Si(this),e},l.Vl=function(){var e,n;if(Si(this),e=this.f++,n=Cnt(nw(this),e),this.c!=7)throw et(new Wr(Jr((Ur(),Cb))));return Si(this),n},l.Wl=function(){var e;if(Si(this),e=Cnt(nw(this),0),this.c!=7)throw et(new Wr(Jr((Ur(),Cb))));return Si(this),e},l.Xl=function(e){return Si(this),this.c==5?(Si(this),Aj(e,(Ai(),Ai(),new Gm(9,e)))):Aj(e,(Ai(),Ai(),new Gm(3,e)))},l.Yl=function(e){var n;return Si(this),n=(Ai(),Ai(),new i_(2)),this.c==5?(Si(this),vb(n,aA),vb(n,e)):(vb(n,e),vb(n,aA)),n},l.Zl=function(e){return Si(this),this.c==5?(Si(this),Ai(),Ai(),new Gm(9,e)):(Ai(),Ai(),new Gm(3,e))},l.a=0,l.b=0,l.c=0,l.d=0,l.e=0,l.f=1,l.g=null,l.j=0,N(Vg,"RegEx/RegexParser",820),M(1824,820,{},Fzt),l.sl=function(e){return!1},l.tl=function(){return b5t(this)},l.ul=function(e){return k7(e)},l.vl=function(e){return Kle(this)},l.wl=function(){throw et(new Wr(Jr((Ur(),kh))))},l.xl=function(){throw et(new Wr(Jr((Ur(),kh))))},l.yl=function(){throw et(new Wr(Jr((Ur(),kh))))},l.zl=function(){throw et(new Wr(Jr((Ur(),kh))))},l.Al=function(){return Si(this),k7(67)},l.Bl=function(){return Si(this),k7(73)},l.Cl=function(){throw et(new Wr(Jr((Ur(),kh))))},l.Dl=function(){throw et(new Wr(Jr((Ur(),kh))))},l.El=function(){throw et(new Wr(Jr((Ur(),kh))))},l.Fl=function(){return Si(this),k7(99)},l.Gl=function(){throw et(new Wr(Jr((Ur(),kh))))},l.Hl=function(){throw et(new Wr(Jr((Ur(),kh))))},l.Il=function(){return Si(this),k7(105)},l.Jl=function(){throw et(new Wr(Jr((Ur(),kh))))},l.Kl=function(){throw et(new Wr(Jr((Ur(),kh))))},l.Ll=function(e,n){return py(e,k7(n)),-1},l.Ml=function(){return Si(this),Ai(),Ai(),new Kd(0,94)},l.Nl=function(){throw et(new Wr(Jr((Ur(),kh))))},l.Ol=function(){return Si(this),Ai(),Ai(),new Kd(0,36)},l.Pl=function(){throw et(new Wr(Jr((Ur(),kh))))},l.Ql=function(){throw et(new Wr(Jr((Ur(),kh))))},l.Rl=function(){throw et(new Wr(Jr((Ur(),kh))))},l.Sl=function(){throw et(new Wr(Jr((Ur(),kh))))},l.Tl=function(){throw et(new Wr(Jr((Ur(),kh))))},l.Ul=function(){throw et(new Wr(Jr((Ur(),kh))))},l.Vl=function(){var e;if(Si(this),e=Cnt(nw(this),0),this.c!=7)throw et(new Wr(Jr((Ur(),Cb))));return Si(this),e},l.Wl=function(){throw et(new Wr(Jr((Ur(),kh))))},l.Xl=function(e){return Si(this),Aj(e,(Ai(),Ai(),new Gm(3,e)))},l.Yl=function(e){var n;return Si(this),n=(Ai(),Ai(),new i_(2)),vb(n,e),vb(n,aA),n},l.Zl=function(e){return Si(this),Ai(),Ai(),new Gm(3,e)};var h5=null,I9=null;N(Vg,"RegEx/ParserForXMLSchema",1824),M(117,1,K7,gv),l.$l=function(e){throw et(new ic("Not supported."))},l._l=function(){return-1},l.am=function(e){return null},l.bm=function(){return null},l.cm=function(e){},l.dm=function(e){},l.em=function(){return 0},l.Ib=function(){return this.fm(0)},l.fm=function(e){return this.e==11?".":""},l.e=0;var JAt,O9,sA,j4e,tLt,t3=null,eU,yft=null,eLt,aA,xft=null,nLt,rLt,iLt,sLt,aLt,$4e,Wx,z4e,q4e,H4e,V4e,N9,G4e,U4e,X4n=N(Vg,"RegEx/Token",117);M(136,117,{3:1,136:1,117:1},ql),l.fm=function(e){var n,r,s;if(this.e==4)if(this==eLt)r=".";else if(this==eU)r="\\d";else if(this==N9)r="\\w";else if(this==Wx)r="\\s";else{for(s=new yg,s.a+="[",n=0;n0&&(s.a+=","),this.b[n]===this.b[n+1]?So(s,yI(this.b[n])):(So(s,yI(this.b[n])),s.a+="-",So(s,yI(this.b[n+1])));s.a+="]",r=s.a}else if(this==iLt)r="\\D";else if(this==aLt)r="\\W";else if(this==sLt)r="\\S";else{for(s=new yg,s.a+="[^",n=0;n0&&(s.a+=","),this.b[n]===this.b[n+1]?So(s,yI(this.b[n])):(So(s,yI(this.b[n])),s.a+="-",So(s,yI(this.b[n+1])));s.a+="]",r=s.a}return r},l.a=!1,l.c=!1,N(Vg,"RegEx/RangeToken",136),M(584,1,{584:1},tpt),l.a=0,N(Vg,"RegEx/RegexParser/ReferencePosition",584),M(583,1,{3:1,583:1},Wqt),l.Fb=function(e){var n;return e==null||!Et(e,583)?!1:(n=u(e,583),ln(this.b,n.b)&&this.a==n.a)},l.Hb=function(){return Fg(this.b+"/"+l5t(this.a))},l.Ib=function(){return this.c.fm(this.a)},l.a=0,N(Vg,"RegEx/RegularExpression",583),M(223,117,K7,Kd),l._l=function(){return this.a},l.fm=function(e){var n,r,s;switch(this.e){case 0:switch(this.a){case 124:case 42:case 43:case 63:case 40:case 41:case 46:case 91:case 123:case 92:s="\\"+Jet(this.a&Ns);break;case 12:s="\\f";break;case 10:s="\\n";break;case 13:s="\\r";break;case 9:s="\\t";break;case 27:s="\\e";break;default:this.a>=oo?(r=(n=this.a>>>0,"0"+n.toString(16)),s="\\v"+$l(r,r.length-6,r.length)):s=""+Jet(this.a&Ns)}break;case 8:this==nLt||this==rLt?s=""+Jet(this.a&Ns):s="\\"+Jet(this.a&Ns);break;default:s=null}return s},l.a=0,N(Vg,"RegEx/Token/CharToken",223),M(309,117,K7,Gm),l.am=function(e){return this.a},l.cm=function(e){this.b=e},l.dm=function(e){this.c=e},l.em=function(){return 1},l.fm=function(e){var n;if(this.e==3)if(this.c<0&&this.b<0)n=this.a.fm(e)+"*";else if(this.c==this.b)n=this.a.fm(e)+"{"+this.c+"}";else if(this.c>=0&&this.b>=0)n=this.a.fm(e)+"{"+this.c+","+this.b+"}";else if(this.c>=0&&this.b<0)n=this.a.fm(e)+"{"+this.c+",}";else throw et(new ic("Token#toString(): CLOSURE "+this.c+ao+this.b));else if(this.c<0&&this.b<0)n=this.a.fm(e)+"*?";else if(this.c==this.b)n=this.a.fm(e)+"{"+this.c+"}?";else if(this.c>=0&&this.b>=0)n=this.a.fm(e)+"{"+this.c+","+this.b+"}?";else if(this.c>=0&&this.b<0)n=this.a.fm(e)+"{"+this.c+",}?";else throw et(new ic("Token#toString(): NONGREEDYCLOSURE "+this.c+ao+this.b));return n},l.b=0,l.c=0,N(Vg,"RegEx/Token/ClosureToken",309),M(821,117,K7,Uvt),l.am=function(e){return e==0?this.a:this.b},l.em=function(){return 2},l.fm=function(e){var n;return this.b.e==3&&this.b.am(0)==this.a?n=this.a.fm(e)+"+":this.b.e==9&&this.b.am(0)==this.a?n=this.a.fm(e)+"+?":n=this.a.fm(e)+(""+this.b.fm(e)),n},N(Vg,"RegEx/Token/ConcatToken",821),M(1822,117,K7,JJt),l.am=function(e){if(e==0)return this.d;if(e==1)return this.b;throw et(new ic("Internal Error: "+e))},l.em=function(){return this.b?2:1},l.fm=function(e){var n;return this.c>0?n="(?("+this.c+")":this.a.e==8?n="(?("+this.a+")":n="(?"+this.a,this.b?n+=this.d+"|"+this.b+")":n+=this.d+")",n},l.c=0,N(Vg,"RegEx/Token/ConditionToken",1822),M(1823,117,K7,JXt),l.am=function(e){return this.b},l.em=function(){return 1},l.fm=function(e){return"(?"+(this.a==0?"":l5t(this.a))+(this.c==0?"":l5t(this.c))+":"+this.b.fm(e)+")"},l.a=0,l.c=0,N(Vg,"RegEx/Token/ModifierToken",1823),M(822,117,K7,Zvt),l.am=function(e){return this.a},l.em=function(){return 1},l.fm=function(e){var n;switch(n=null,this.e){case 6:this.b==0?n="(?:"+this.a.fm(e)+")":n="("+this.a.fm(e)+")";break;case 20:n="(?="+this.a.fm(e)+")";break;case 21:n="(?!"+this.a.fm(e)+")";break;case 22:n="(?<="+this.a.fm(e)+")";break;case 23:n="(?"+this.a.fm(e)+")"}return n},l.b=0,N(Vg,"RegEx/Token/ParenToken",822),M(521,117,{3:1,117:1,521:1},Jnt),l.bm=function(){return this.b},l.fm=function(e){return this.e==12?"\\"+this.a:lgn(this.b)},l.a=0,N(Vg,"RegEx/Token/StringToken",521),M(465,117,K7,i_),l.$l=function(e){vb(this,e)},l.am=function(e){return u(Pv(this.a,e),117)},l.em=function(){return this.a?this.a.a.c.length:0},l.fm=function(e){var n,r,s,o,h;if(this.e==1){if(this.a.a.c.length==2)n=u(Pv(this.a,0),117),r=u(Pv(this.a,1),117),r.e==3&&r.am(0)==n?o=n.fm(e)+"+":r.e==9&&r.am(0)==n?o=n.fm(e)+"+?":o=n.fm(e)+(""+r.fm(e));else{for(h=new yg,s=0;s=this.c.b:this.a<=this.c.b},l.Sb=function(){return this.b>0},l.Tb=function(){return this.b},l.Vb=function(){return this.b-1},l.Qb=function(){throw et(new mg(b0e))},l.a=0,l.b=0,N(_8t,"ExclusiveRange/RangeIterator",254);var Sh=y8(pH,"C"),Br=y8(KC,"I"),Tl=y8(cx,"Z"),D2=y8(YC,"J"),tl=y8(GC,"B"),wa=y8(UC,"D"),e3=y8(WC,"F"),f5=y8(XC,"S"),Q4n=ls("org.eclipse.elk.core.labels","ILabelManager"),oLt=ls(Ja,"DiagnosticChain"),cLt=ls(Vde,"ResourceSet"),uLt=N(Ja,"InvocationTargetException",null),K4e=(cR(),qrn),Y4e=Y4e=Dfn;Bsn(MUe),uan("permProps",[[[AH,LH],[MH,"gecko1_8"]],[[AH,LH],[MH,"ie10"]],[[AH,LH],[MH,"ie8"]],[[AH,LH],[MH,"ie9"]],[[AH,LH],[MH,"safari"]]]),Y4e(null,"elk",null)}).call(this)}).call(this,typeof b0<"u"?b0:typeof self<"u"?self:typeof window<"u"?window:{})},{}],3:[function(f,p,v){function m(P,B){if(!(P instanceof B))throw new TypeError("Cannot call a class as a function")}function b(P,B){if(!P)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return B&&(typeof B=="object"||typeof B=="function")?B:P}function E(P,B){if(typeof B!="function"&&B!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof B);P.prototype=Object.create(B&&B.prototype,{constructor:{value:P,enumerable:!1,writable:!0,configurable:!0}}),B&&(Object.setPrototypeOf?Object.setPrototypeOf(P,B):P.__proto__=B)}var C=f("./elk-api.js").default,D=function(P){E(B,P);function B(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};m(this,B);var R=Object.assign({},j),H=!1;try{f.resolve("web-worker"),H=!0}catch{}if(j.workerUrl)if(H){var Y=f("web-worker");R.workerFactory=function(st){return new Y(st)}}else console.warn(`Web worker requested but 'web-worker' package not installed. -Consider installing the package or pass your own 'workerFactory' to ELK's constructor. -... Falling back to non-web worker version.`);if(!R.workerFactory){var it=f("./elk-worker.min.js"),nt=it.Worker;R.workerFactory=function(st){return new nt(st)}}return b(this,(B.__proto__||Object.getPrototypeOf(B)).call(this,R))}return B}(C);Object.defineProperty(p.exports,"__esModule",{value:!0}),p.exports=D,D.default=D},{"./elk-api.js":1,"./elk-worker.min.js":2,"web-worker":4}],4:[function(f,p,v){p.exports=Worker},{}]},{},[3])(3)})})(uGe);const lGe=hLt(Cgt),qRt=new lGe;let rv={};const hGe={};let F5={};const fGe=async function(i,a,f,p,v,m,b){const C=f.select(`[id="${a}"]`).insert("g").attr("class","nodes"),D=Object.keys(i);return await Promise.all(D.map(async function(P){const B=i[P];let j="default";B.classes.length>0&&(j=B.classes.join(" ")),j=j+" flowchart-label";const R=Qw(B.styles);let H=B.text!==void 0?B.text:B.id;const Y={width:0,height:0},it=[{id:B.id+"-west",layoutOptions:{"port.side":"WEST"}},{id:B.id+"-east",layoutOptions:{"port.side":"EAST"}},{id:B.id+"-south",layoutOptions:{"port.side":"SOUTH"}},{id:B.id+"-north",layoutOptions:{"port.side":"NORTH"}}];let nt=0,st="",pt={};switch(B.type){case"round":nt=5,st="rect";break;case"square":st="rect";break;case"diamond":st="question",pt={portConstraints:"FIXED_SIDE"};break;case"hexagon":st="hexagon";break;case"odd":st="rect_left_inv_arrow";break;case"lean_right":st="lean_right";break;case"lean_left":st="lean_left";break;case"trapezoid":st="trapezoid";break;case"inv_trapezoid":st="inv_trapezoid";break;case"odd_right":st="rect_left_inv_arrow";break;case"circle":st="circle";break;case"ellipse":st="ellipse";break;case"stadium":st="stadium";break;case"subroutine":st="subroutine";break;case"cylinder":st="cylinder";break;case"group":st="rect";break;case"doublecircle":st="doublecircle";break;default:st="rect"}const Tt={labelStyle:R.labelStyle,shape:st,labelText:H,labelType:B.labelType,rx:nt,ry:nt,class:j,style:R.style,id:B.id,link:B.link,linkTarget:B.linkTarget,tooltip:v.db.getTooltip(B.id)||"",domId:v.db.lookUpDomId(B.id),haveCallback:B.haveCallback,width:B.type==="group"?500:void 0,dir:B.dir,type:B.type,props:B.props,padding:Oe().flowchart.padding};let kt,yt;if(Tt.type!=="group")yt=await tBt(C,Tt,B.dir),kt=yt.node().getBBox();else{p.createElementNS("http://www.w3.org/2000/svg","text");const{shapeSvg:mt,bbox:rt}=await Rd(C,Tt,void 0,!0);Y.width=rt.width,Y.wrappingWidth=Oe().flowchart.wrappingWidth,Y.height=rt.height,Y.labelNode=mt.node(),Tt.labelData=Y}const ht={id:B.id,ports:B.type==="diamond"?it:[],layoutOptions:pt,labelText:H,labelData:Y,domId:v.db.lookUpDomId(B.id),width:kt==null?void 0:kt.width,height:kt==null?void 0:kt.height,type:B.type,el:yt,parent:m.parentById[B.id]};F5[Tt.id]=ht})),b},HRt=(i,a,f)=>{const p={TB:{in:{north:"north"},out:{south:"west",west:"east",east:"south"}},LR:{in:{west:"west"},out:{east:"south",south:"north",north:"east"}},RL:{in:{east:"east"},out:{west:"north",north:"south",south:"west"}},BT:{in:{south:"south"},out:{north:"east",east:"west",west:"north"}}};return p.TD=p.TB,zt.info("abc88",f,a,i),p[f][a][i]},VRt=(i,a,f)=>{if(zt.info("getNextPort abc88",{node:i,edgeDirection:a,graphDirection:f}),!rv[i])switch(f){case"TB":case"TD":rv[i]={inPosition:"north",outPosition:"south"};break;case"BT":rv[i]={inPosition:"south",outPosition:"north"};break;case"RL":rv[i]={inPosition:"east",outPosition:"west"};break;case"LR":rv[i]={inPosition:"west",outPosition:"east"};break}const p=a==="in"?rv[i].inPosition:rv[i].outPosition;return a==="in"?rv[i].inPosition=HRt(rv[i].inPosition,a,f):rv[i].outPosition=HRt(rv[i].outPosition,a,f),p},dGe=(i,a)=>{let f=i.start,p=i.end;const v=f,m=p,b=F5[f],E=F5[p];return!b||!E?{source:f,target:p}:(b.type==="diamond"&&(f=`${f}-${VRt(f,"out",a)}`),E.type==="diamond"&&(p=`${p}-${VRt(p,"in",a)}`),{source:f,target:p,sourceId:v,targetId:m})},gGe=function(i,a,f,p){zt.info("abc78 edges = ",i);const v=p.insert("g").attr("class","edgeLabels");let m={},b=a.db.getDirection(),E,C;if(i.defaultStyle!==void 0){const D=Qw(i.defaultStyle);E=D.style,C=D.labelStyle}return i.forEach(function(D){const P="L-"+D.start+"-"+D.end;m[P]===void 0?(m[P]=0,zt.info("abc78 new entry",P,m[P])):(m[P]++,zt.info("abc78 new entry",P,m[P]));let B=P+"-"+m[P];zt.info("abc78 new link id to be used is",P,B,m[P]);const j="LS-"+D.start,R="LE-"+D.end,H={style:"",labelStyle:""};switch(H.minlen=D.length||1,D.type==="arrow_open"?H.arrowhead="none":H.arrowhead="normal",H.arrowTypeStart="arrow_open",H.arrowTypeEnd="arrow_open",D.type){case"double_arrow_cross":H.arrowTypeStart="arrow_cross";case"arrow_cross":H.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":H.arrowTypeStart="arrow_point";case"arrow_point":H.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":H.arrowTypeStart="arrow_circle";case"arrow_circle":H.arrowTypeEnd="arrow_circle";break}let Y="",it="";switch(D.stroke){case"normal":Y="fill:none;",E!==void 0&&(Y=E),C!==void 0&&(it=C),H.thickness="normal",H.pattern="solid";break;case"dotted":H.thickness="normal",H.pattern="dotted",H.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":H.thickness="thick",H.pattern="solid",H.style="stroke-width: 3.5px;fill:none;";break}if(D.style!==void 0){const yt=Qw(D.style);Y=yt.style,it=yt.labelStyle}H.style=H.style+=Y,H.labelStyle=H.labelStyle+=it,D.interpolate!==void 0?H.curve=Xb(D.interpolate,rg):i.defaultInterpolate!==void 0?H.curve=Xb(i.defaultInterpolate,rg):H.curve=Xb(hGe.curve,rg),D.text===void 0?D.style!==void 0&&(H.arrowheadStyle="fill: #333"):(H.arrowheadStyle="fill: #333",H.labelpos="c"),H.labelType=D.labelType,H.label=D.text.replace(yi.lineBreakRegex,` -`),D.style===void 0&&(H.style=H.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),H.labelStyle=H.labelStyle.replace("color:","fill:"),H.id=B,H.classes="flowchart-link "+j+" "+R;const nt=rBt(v,H),{source:st,target:pt,sourceId:Tt,targetId:kt}=dGe(D,b);zt.debug("abc78 source and target",st,pt),f.edges.push({id:"e"+D.start+D.end,sources:[st],targets:[pt],sourceId:Tt,targetId:kt,labelEl:nt,labels:[{width:H.width,height:H.height,orgWidth:H.width,orgHeight:H.height,text:H.label,layoutOptions:{"edgeLabels.inline":"true","edgeLabels.placement":"CENTER"}}],edgeData:H})}),f},pGe=function(i,a,f,p){let v="";switch(p&&(v=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,v=v.replace(/\(/g,"\\("),v=v.replace(/\)/g,"\\)")),a.arrowTypeStart){case"arrow_cross":i.attr("marker-start","url("+v+"#"+f+"-crossStart)");break;case"arrow_point":i.attr("marker-start","url("+v+"#"+f+"-pointStart)");break;case"arrow_barb":i.attr("marker-start","url("+v+"#"+f+"-barbStart)");break;case"arrow_circle":i.attr("marker-start","url("+v+"#"+f+"-circleStart)");break;case"aggregation":i.attr("marker-start","url("+v+"#"+f+"-aggregationStart)");break;case"extension":i.attr("marker-start","url("+v+"#"+f+"-extensionStart)");break;case"composition":i.attr("marker-start","url("+v+"#"+f+"-compositionStart)");break;case"dependency":i.attr("marker-start","url("+v+"#"+f+"-dependencyStart)");break;case"lollipop":i.attr("marker-start","url("+v+"#"+f+"-lollipopStart)");break}switch(a.arrowTypeEnd){case"arrow_cross":i.attr("marker-end","url("+v+"#"+f+"-crossEnd)");break;case"arrow_point":i.attr("marker-end","url("+v+"#"+f+"-pointEnd)");break;case"arrow_barb":i.attr("marker-end","url("+v+"#"+f+"-barbEnd)");break;case"arrow_circle":i.attr("marker-end","url("+v+"#"+f+"-circleEnd)");break;case"aggregation":i.attr("marker-end","url("+v+"#"+f+"-aggregationEnd)");break;case"extension":i.attr("marker-end","url("+v+"#"+f+"-extensionEnd)");break;case"composition":i.attr("marker-end","url("+v+"#"+f+"-compositionEnd)");break;case"dependency":i.attr("marker-end","url("+v+"#"+f+"-dependencyEnd)");break;case"lollipop":i.attr("marker-end","url("+v+"#"+f+"-lollipopEnd)");break}},bGe=function(i,a){zt.info("Extracting classes"),a.db.clear("ver-2");try{return a.parse(i),a.db.getClasses()}catch{return{}}},vGe=function(i){const a={parentById:{},childrenById:{}},f=i.getSubGraphs();return zt.info("Subgraphs - ",f),f.forEach(function(p){p.nodes.forEach(function(v){a.parentById[v]=p.id,a.childrenById[p.id]===void 0&&(a.childrenById[p.id]=[]),a.childrenById[p.id].push(v)})}),f.forEach(function(p){p.id,a.parentById[p.id]!==void 0&&a.parentById[p.id]}),a},wGe=function(i,a,f){const p=cGe(i,a,f);if(p===void 0||p==="root")return{x:0,y:0};const v=F5[p].offset;return{x:v.posX,y:v.posY}},mGe=function(i,a,f,p,v){const m=wGe(a.sourceId,a.targetId,v),b=a.sections[0].startPoint,E=a.sections[0].endPoint,D=(a.sections[0].bendPoints?a.sections[0].bendPoints:[]).map(it=>[it.x+m.x,it.y+m.y]),P=[[b.x+m.x,b.y+m.y],...D,[E.x+m.x,E.y+m.y]],B=Y9().curve(rg),j=i.insert("path").attr("d",B(P)).attr("class","path "+f.classes).attr("fill","none"),R=i.insert("g").attr("class","edgeLabel"),H=Mr(R.node().appendChild(a.labelEl)),Y=H.node().firstChild.getBoundingClientRect();H.attr("width",Y.width),H.attr("height",Y.height),R.attr("transform",`translate(${a.labels[0].x+m.x}, ${a.labels[0].y+m.y})`),pGe(j,f,p.type,p.arrowMarkerAbsolute)},GRt=(i,a)=>{i.forEach(f=>{f.children||(f.children=[]);const p=a.childrenById[f.id];p&&p.forEach(v=>{f.children.push(F5[v])}),GRt(f.children,a)})},yGe=async function(i,a,f,p){var ht;p.db.clear(),F5={},rv={},p.db.setGen("gen-2"),p.parser.parse(i);const v=Mr("body").append("div").attr("style","height:400px").attr("id","cy");let m={id:"root",layoutOptions:{"elk.hierarchyHandling":"INCLUDE_CHILDREN","org.eclipse.elk.padding":"[top=100, left=100, bottom=110, right=110]","elk.layered.spacing.edgeNodeBetweenLayers":"30","elk.direction":"DOWN"},children:[],edges:[]};switch(zt.info("Drawing flowchart using v3 renderer",qRt),p.db.getDirection()){case"BT":m.layoutOptions["elk.direction"]="UP";break;case"TB":m.layoutOptions["elk.direction"]="DOWN";break;case"LR":m.layoutOptions["elk.direction"]="RIGHT";break;case"RL":m.layoutOptions["elk.direction"]="LEFT";break}const{securityLevel:E,flowchart:C}=Oe();let D;E==="sandbox"&&(D=Mr("#i"+a));const P=Mr(E==="sandbox"?D.nodes()[0].contentDocument.body:"body"),B=E==="sandbox"?D.nodes()[0].contentDocument:document,j=P.select(`[id="${a}"]`);oFt(j,["point","circle","cross"],p.type,p.arrowMarkerAbsolute);const H=p.db.getVertices();let Y;const it=p.db.getSubGraphs();zt.info("Subgraphs - ",it);for(let mt=it.length-1;mt>=0;mt--)Y=it[mt],p.db.addVertex(Y.id,{text:Y.title,type:Y.labelType},"group",void 0,Y.classes,Y.dir);const nt=j.insert("g").attr("class","subgraphs"),st=vGe(p.db);m=await fGe(H,a,P,B,p,st,m);const pt=j.insert("g").attr("class","edges edgePath"),Tt=p.db.getEdges();m=gGe(Tt,p,m,j),Object.keys(F5).forEach(mt=>{const rt=F5[mt];rt.parent||m.children.push(rt),st.childrenById[mt]!==void 0&&(rt.labels=[{text:rt.labelText,layoutOptions:{"nodeLabels.placement":"[H_CENTER, V_TOP, INSIDE]"},width:rt.labelData.width,height:rt.labelData.height}],delete rt.x,delete rt.y,delete rt.width,delete rt.height)}),GRt(m.children,st),zt.info("after layout",JSON.stringify(m,null,2));const yt=await qRt.layout(m);URt(0,0,yt.children,j,nt,p,0),zt.info("after layout",yt),(ht=yt.edges)==null||ht.map(mt=>{mGe(pt,mt,mt.edgeData,p,st)}),Z9({},j,C.diagramPadding,C.useMaxWidth),v.remove()},URt=(i,a,f,p,v,m,b)=>{f.forEach(function(E){if(E)if(F5[E.id].offset={posX:E.x+i,posY:E.y+a,x:i,y:a,depth:b,width:E.width,height:E.height},E.type==="group"){const C=v.insert("g").attr("class","subgraph");C.insert("rect").attr("class","subgraph subgraph-lvl-"+b%5+" node").attr("x",E.x+i).attr("y",E.y+a).attr("width",E.width).attr("height",E.height);const D=C.insert("g").attr("class","label"),P=Oe().flowchart.htmlLabels?E.labelData.width/2:0;D.attr("transform",`translate(${E.labels[0].x+i+E.x+P}, ${E.labels[0].y+a+E.y+3})`),D.node().appendChild(E.labelData.labelNode),zt.info("Id (UGH)= ",E.type,E.labels)}else zt.info("Id (UGH)= ",E.id),E.el.attr("transform",`translate(${E.x+i+E.width/2}, ${E.y+a+E.height/2})`)}),f.forEach(function(E){E&&E.type==="group"&&URt(i+E.x,a+E.y,E.children,p,v,m,b+1)})},xGe={getClasses:bGe,draw:yGe},kGe=i=>{let a="";for(let f=0;f<5;f++)a+=` - .subgraph-lvl-${f} { - fill: ${i[`surface${f}`]}; - stroke: ${i[`surfacePeer${f}`]}; - } - `;return a},EGe=Object.freeze(Object.defineProperty({__proto__:null,diagram:{db:nMe,renderer:xGe,parser:mdt,styles:i=>`.label { - font-family: ${i.fontFamily}; - color: ${i.nodeTextColor||i.textColor}; - } - .cluster-label text { - fill: ${i.titleColor}; - } - .cluster-label span { - color: ${i.titleColor}; - } - - .label text,span { - fill: ${i.nodeTextColor||i.textColor}; - color: ${i.nodeTextColor||i.textColor}; - } - - .node rect, - .node circle, - .node ellipse, - .node polygon, - .node path { - fill: ${i.mainBkg}; - stroke: ${i.nodeBorder}; - stroke-width: 1px; - } - - .node .label { - text-align: center; - } - .node.clickable { - cursor: pointer; - } - - .arrowheadPath { - fill: ${i.arrowheadColor}; - } - - .edgePath .path { - stroke: ${i.lineColor}; - stroke-width: 2.0px; - } - - .flowchart-link { - stroke: ${i.lineColor}; - fill: none; - } - - .edgeLabel { - background-color: ${i.edgeLabelBackground}; - rect { - opacity: 0.85; - background-color: ${i.edgeLabelBackground}; - fill: ${i.edgeLabelBackground}; + ${e.actor5?`fill: ${e.actor5}`:""}; + } +`,"getStyles"),Spt=Eqt});var xB,Cqt,Lpt,Dpt,Sqt,Aqt,_pt,_qt,Lqt,Rpt,Dqt,s1,Npt=R(()=>{"use strict";ur();lv();xB=o(function(e,t){return Td(e,t)},"drawRect"),Cqt=o(function(e,t){let n=e.append("circle").attr("cx",t.cx).attr("cy",t.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),i=e.append("g");i.append("circle").attr("cx",t.cx-15/3).attr("cy",t.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),i.append("circle").attr("cx",t.cx+15/3).attr("cy",t.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function a(u){let h=Cl().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);u.append("path").attr("class","mouth").attr("d",h).attr("transform","translate("+t.cx+","+(t.cy+2)+")")}o(a,"smile");function s(u){let h=Cl().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);u.append("path").attr("class","mouth").attr("d",h).attr("transform","translate("+t.cx+","+(t.cy+7)+")")}o(s,"sad");function l(u){u.append("line").attr("class","mouth").attr("stroke",2).attr("x1",t.cx-5).attr("y1",t.cy+7).attr("x2",t.cx+5).attr("y2",t.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return o(l,"ambivalent"),t.score>3?a(i):t.score<3?s(i):l(i),n},"drawFace"),Lpt=o(function(e,t){let r=e.append("circle");return r.attr("cx",t.cx),r.attr("cy",t.cy),r.attr("class","actor-"+t.pos),r.attr("fill",t.fill),r.attr("stroke",t.stroke),r.attr("r",t.r),r.class!==void 0&&r.attr("class",r.class),t.title!==void 0&&r.append("title").text(t.title),r},"drawCircle"),Dpt=o(function(e,t){return bq(e,t)},"drawText"),Sqt=o(function(e,t){function r(i,a,s,l,u){return i+","+a+" "+(i+s)+","+a+" "+(i+s)+","+(a+l-u)+" "+(i+s-u*1.2)+","+(a+l)+" "+i+","+(a+l)}o(r,"genPoints");let n=e.append("polygon");n.attr("points",r(t.x,t.y,50,20,7)),n.attr("class","labelBox"),t.y=t.y+t.labelMargin,t.x=t.x+.5*t.labelMargin,Dpt(e,t)},"drawLabel"),Aqt=o(function(e,t,r){let n=e.append("g"),i=Sl();i.x=t.x,i.y=t.y,i.fill=t.fill,i.width=r.width*t.taskCount+r.diagramMarginX*(t.taskCount-1),i.height=r.height,i.class="journey-section section-type-"+t.num,i.rx=3,i.ry=3,xB(n,i),Rpt(r)(t.text,n,i.x,i.y,i.width,i.height,{class:"journey-section section-type-"+t.num},r,t.colour)},"drawSection"),_pt=-1,_qt=o(function(e,t,r){let n=t.x+r.width/2,i=e.append("g");_pt++;let a=300+5*30;i.append("line").attr("id","task"+_pt).attr("x1",n).attr("y1",t.y).attr("x2",n).attr("y2",a).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),Cqt(i,{cx:n,cy:300+(5-t.score)*30,score:t.score});let s=Sl();s.x=t.x,s.y=t.y,s.fill=t.fill,s.width=r.width,s.height=r.height,s.class="task task-type-"+t.num,s.rx=3,s.ry=3,xB(i,s);let l=t.x+14;t.people.forEach(u=>{let h=t.actors[u].color,f={cx:l,cy:t.y,r:7,fill:h,stroke:"#000",title:u,pos:t.actors[u].position};Lpt(i,f),l+=10}),Rpt(r)(t.task,i,s.x,s.y,s.width,s.height,{class:"task"},r,t.colour)},"drawTask"),Lqt=o(function(e,t){m5(e,t)},"drawBackgroundRect"),Rpt=function(){function e(i,a,s,l,u,h,f,d){let p=a.append("text").attr("x",s+u/2).attr("y",l+h/2+5).style("font-color",d).style("text-anchor","middle").text(i);n(p,f)}o(e,"byText");function t(i,a,s,l,u,h,f,d,p){let{taskFontSize:m,taskFontFamily:g}=d,y=i.split(//gi);for(let v=0;v{let i=Ju[n].color,a={cx:20,cy:r,r:7,fill:i,stroke:"#000",pos:Ju[n].position};s1.drawCircle(e,a);let s={x:40,y:r+7,fill:"#666",text:n,textMargin:t.boxTextMargin|5};s1.drawText(e,s),r+=20})}var Rqt,Ju,Y6,G0,Mqt,rl,bB,Mpt,Iqt,wB,Ipt=R(()=>{"use strict";ur();Npt();Ue();Jn();Rqt=o(function(e){Object.keys(e).forEach(function(r){Y6[r]=e[r]})},"setConf"),Ju={};o(Nqt,"drawActorLegend");Y6=pt().journey,G0=Y6.leftMargin,Mqt=o(function(e,t,r,n){let i=pt().journey,a=pt().securityLevel,s;a==="sandbox"&&(s=Gt("#i"+t));let l=a==="sandbox"?Gt(s.nodes()[0].contentDocument.body):Gt("body");rl.init();let u=l.select("#"+t);s1.initGraphics(u);let h=n.db.getTasks(),f=n.db.getDiagramTitle(),d=n.db.getActors();for(let x in Ju)delete Ju[x];let p=0;d.forEach(x=>{Ju[x]={color:i.actorColours[p%i.actorColours.length],position:p},p++}),Nqt(u),rl.insert(0,0,G0,Object.keys(Ju).length*50),Iqt(u,h,0);let m=rl.getBounds();f&&u.append("text").text(f).attr("x",G0).attr("font-size","4ex").attr("font-weight","bold").attr("y",25);let g=m.stopy-m.starty+2*i.diagramMarginY,y=G0+m.stopx+2*i.diagramMarginX;Pr(u,g,y,i.useMaxWidth),u.append("line").attr("x1",G0).attr("y1",i.height*4).attr("x2",y-G0-4).attr("y2",i.height*4).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)");let v=f?70:0;u.attr("viewBox",`${m.startx} -25 ${y} ${g+v}`),u.attr("preserveAspectRatio","xMinYMin meet"),u.attr("height",g+v+25)},"draw"),rl={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:o(function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},"init"),updateVal:o(function(e,t,r,n){e[t]===void 0?e[t]=r:e[t]=n(r,e[t])},"updateVal"),updateBounds:o(function(e,t,r,n){let i=pt().journey,a=this,s=0;function l(u){return o(function(f){s++;let d=a.sequenceItems.length-s+1;a.updateVal(f,"starty",t-d*i.boxMargin,Math.min),a.updateVal(f,"stopy",n+d*i.boxMargin,Math.max),a.updateVal(rl.data,"startx",e-d*i.boxMargin,Math.min),a.updateVal(rl.data,"stopx",r+d*i.boxMargin,Math.max),u!=="activation"&&(a.updateVal(f,"startx",e-d*i.boxMargin,Math.min),a.updateVal(f,"stopx",r+d*i.boxMargin,Math.max),a.updateVal(rl.data,"starty",t-d*i.boxMargin,Math.min),a.updateVal(rl.data,"stopy",n+d*i.boxMargin,Math.max))},"updateItemBounds")}o(l,"updateFn"),this.sequenceItems.forEach(l())},"updateBounds"),insert:o(function(e,t,r,n){let i=Math.min(e,r),a=Math.max(e,r),s=Math.min(t,n),l=Math.max(t,n);this.updateVal(rl.data,"startx",i,Math.min),this.updateVal(rl.data,"starty",s,Math.min),this.updateVal(rl.data,"stopx",a,Math.max),this.updateVal(rl.data,"stopy",l,Math.max),this.updateBounds(i,s,a,l)},"insert"),bumpVerticalPos:o(function(e){this.verticalPos=this.verticalPos+e,this.data.stopy=this.verticalPos},"bumpVerticalPos"),getVerticalPos:o(function(){return this.verticalPos},"getVerticalPos"),getBounds:o(function(){return this.data},"getBounds")},bB=Y6.sectionFills,Mpt=Y6.sectionColours,Iqt=o(function(e,t,r){let n=pt().journey,i="",a=n.height*2+n.diagramMarginY,s=r+a,l=0,u="#CCC",h="black",f=0;for(let[d,p]of t.entries()){if(i!==p.section){u=bB[l%bB.length],f=l%bB.length,h=Mpt[l%Mpt.length];let g=0,y=p.section;for(let x=d;x(Ju[y]&&(g[y]=Ju[y]),g),{});p.x=d*n.taskMargin+d*n.width+G0,p.y=s,p.width=n.diagramMarginX,p.height=n.diagramMarginY,p.colour=h,p.fill=u,p.num=f,p.actors=m,s1.drawTask(e,p,n),rl.insert(p.x,p.y,p.x+p.width+n.taskMargin,300+5*30)}},"drawTasks"),wB={setConf:Rqt,draw:Mqt}});var Opt={};xr(Opt,{diagram:()=>Oqt});var Oqt,Ppt=R(()=>{"use strict";kpt();Cpt();Apt();Ipt();Oqt={parser:Tpt,db:vB,renderer:wB,styles:Spt,init:o(e=>{wB.setConf(e.journey),vB.clear()},"init")}});var kB,Upt,Hpt=R(()=>{"use strict";kB=function(){var e=o(function(p,m,g,y){for(g=g||{},y=p.length;y--;g[p[y]]=m);return g},"o"),t=[6,8,10,11,12,14,16,17,20,21],r=[1,9],n=[1,10],i=[1,11],a=[1,12],s=[1,13],l=[1,16],u=[1,17],h={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,period_statement:18,event_statement:19,period:20,event:21,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",20:"period",21:"event"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[18,1],[19,1]],performAction:o(function(m,g,y,v,x,b,w){var S=b.length-1;switch(x){case 1:return b[S-1];case 2:this.$=[];break;case 3:b[S-1].push(b[S]),this.$=b[S-1];break;case 4:case 5:this.$=b[S];break;case 6:case 7:this.$=[];break;case 8:v.getCommonDb().setDiagramTitle(b[S].substr(6)),this.$=b[S].substr(6);break;case 9:this.$=b[S].trim(),v.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=b[S].trim(),v.getCommonDb().setAccDescription(this.$);break;case 12:v.addSection(b[S].substr(8)),this.$=b[S].substr(8);break;case 15:v.addTask(b[S],0,""),this.$=b[S];break;case 16:v.addEvent(b[S].substr(2)),this.$=b[S];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:r,12:n,14:i,16:a,17:s,18:14,19:15,20:l,21:u},e(t,[2,7],{1:[2,1]}),e(t,[2,3]),{9:18,11:r,12:n,14:i,16:a,17:s,18:14,19:15,20:l,21:u},e(t,[2,5]),e(t,[2,6]),e(t,[2,8]),{13:[1,19]},{15:[1,20]},e(t,[2,11]),e(t,[2,12]),e(t,[2,13]),e(t,[2,14]),e(t,[2,15]),e(t,[2,16]),e(t,[2,4]),e(t,[2,9]),e(t,[2,10])],defaultActions:{},parseError:o(function(m,g){if(g.recoverable)this.trace(m);else{var y=new Error(m);throw y.hash=g,y}},"parseError"),parse:o(function(m){var g=this,y=[0],v=[],x=[null],b=[],w=this.table,S="",T=0,E=0,_=0,A=2,L=1,M=b.slice.call(arguments,1),N=Object.create(this.lexer),k={yy:{}};for(var I in this.yy)Object.prototype.hasOwnProperty.call(this.yy,I)&&(k.yy[I]=this.yy[I]);N.setInput(m,k.yy),k.yy.lexer=N,k.yy.parser=this,typeof N.yylloc>"u"&&(N.yylloc={});var C=N.yylloc;b.push(C);var O=N.options&&N.options.ranges;typeof k.yy.parseError=="function"?this.parseError=k.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function D(q){y.length=y.length-2*q,x.length=x.length-q,b.length=b.length-q}o(D,"popStack");function P(){var q;return q=v.pop()||N.lex()||L,typeof q!="number"&&(q instanceof Array&&(v=q,q=v.pop()),q=g.symbols_[q]||q),q}o(P,"lex");for(var F,B,G,z,W,Q,j={},at,X,J,Z;;){if(G=y[y.length-1],this.defaultActions[G]?z=this.defaultActions[G]:((F===null||typeof F>"u")&&(F=P()),z=w[G]&&w[G][F]),typeof z>"u"||!z.length||!z[0]){var H="";Z=[];for(at in w[G])this.terminals_[at]&&at>A&&Z.push("'"+this.terminals_[at]+"'");N.showPosition?H="Parse error on line "+(T+1)+`: +`+N.showPosition()+` +Expecting `+Z.join(", ")+", got '"+(this.terminals_[F]||F)+"'":H="Parse error on line "+(T+1)+": Unexpected "+(F==L?"end of input":"'"+(this.terminals_[F]||F)+"'"),this.parseError(H,{text:N.match,token:this.terminals_[F]||F,line:N.yylineno,loc:C,expected:Z})}if(z[0]instanceof Array&&z.length>1)throw new Error("Parse Error: multiple actions possible at state: "+G+", token: "+F);switch(z[0]){case 1:y.push(F),x.push(N.yytext),b.push(N.yylloc),y.push(z[1]),F=null,B?(F=B,B=null):(E=N.yyleng,S=N.yytext,T=N.yylineno,C=N.yylloc,_>0&&_--);break;case 2:if(X=this.productions_[z[1]][1],j.$=x[x.length-X],j._$={first_line:b[b.length-(X||1)].first_line,last_line:b[b.length-1].last_line,first_column:b[b.length-(X||1)].first_column,last_column:b[b.length-1].last_column},O&&(j._$.range=[b[b.length-(X||1)].range[0],b[b.length-1].range[1]]),Q=this.performAction.apply(j,[S,E,T,k.yy,z[1],x,b].concat(M)),typeof Q<"u")return Q;X&&(y=y.slice(0,-1*X*2),x=x.slice(0,-1*X),b=b.slice(0,-1*X)),y.push(this.productions_[z[1]][0]),x.push(j.$),b.push(j._$),J=w[y[y.length-2]][y[y.length-1]],y.push(J);break;case 3:return!0}}return!0},"parse")},f=function(){var p={EOF:1,parseError:o(function(g,y){if(this.yy.parser)this.yy.parser.parseError(g,y);else throw new Error(g)},"parseError"),setInput:o(function(m,g){return this.yy=g||this.yy||{},this._input=m,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var m=this._input[0];this.yytext+=m,this.yyleng++,this.offset++,this.match+=m,this.matched+=m;var g=m.match(/(?:\r\n?|\n).*/g);return g?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),m},"input"),unput:o(function(m){var g=m.length,y=m.split(/(?:\r\n?|\n)/g);this._input=m+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-g),this.offset-=g;var v=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),y.length-1&&(this.yylineno-=y.length-1);var x=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:y?(y.length===v.length?this.yylloc.first_column:0)+v[v.length-y.length].length-y[0].length:this.yylloc.first_column-g},this.options.ranges&&(this.yylloc.range=[x[0],x[0]+this.yyleng-g]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(m){this.unput(this.match.slice(m))},"less"),pastInput:o(function(){var m=this.matched.substr(0,this.matched.length-this.match.length);return(m.length>20?"...":"")+m.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var m=this.match;return m.length<20&&(m+=this._input.substr(0,20-m.length)),(m.substr(0,20)+(m.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var m=this.pastInput(),g=new Array(m.length+1).join("-");return m+this.upcomingInput()+` +`+g+"^"},"showPosition"),test_match:o(function(m,g){var y,v,x;if(this.options.backtrack_lexer&&(x={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(x.yylloc.range=this.yylloc.range.slice(0))),v=m[0].match(/(?:\r\n?|\n).*/g),v&&(this.yylineno+=v.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:v?v[v.length-1].length-v[v.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+m[0].length},this.yytext+=m[0],this.match+=m[0],this.matches=m,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(m[0].length),this.matched+=m[0],y=this.performAction.call(this,this.yy,this,g,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),y)return y;if(this._backtrack){for(var b in x)this[b]=x[b];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var m,g,y,v;this._more||(this.yytext="",this.match="");for(var x=this._currentRules(),b=0;bg[0].length)){if(g=y,v=b,this.options.backtrack_lexer){if(m=this.test_match(y,x[b]),m!==!1)return m;if(this._backtrack){g=!1;continue}else return!1}else if(!this.options.flex)break}return g?(m=this.test_match(g,x[v]),m!==!1?m:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var g=this.next();return g||this.lex()},"lex"),begin:o(function(g){this.conditionStack.push(g)},"begin"),popState:o(function(){var g=this.conditionStack.length-1;return g>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(g){return g=this.conditionStack.length-1-Math.abs(g||0),g>=0?this.conditionStack[g]:"INITIAL"},"topState"),pushState:o(function(g){this.begin(g)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:o(function(g,y,v,x){var b=x;switch(v){case 0:break;case 1:break;case 2:return 10;case 3:break;case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;break;case 8:return this.popState(),"acc_title_value";break;case 9:return this.begin("acc_descr"),14;break;case 10:return this.popState(),"acc_descr_value";break;case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 21;case 16:return 20;case 17:return 6;case 18:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^:\n]+)/i,/^(?::\s[^:\n]+)/i,/^(?:[^#:\n]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18],inclusive:!0}}};return p}();h.lexer=f;function d(){this.yy={}}return o(d,"Parser"),d.prototype=h,h.Parser=d,new d}();kB.parser=kB;Upt=kB});var CB={};xr(CB,{addEvent:()=>Jpt,addSection:()=>jpt,addTask:()=>Zpt,addTaskOrg:()=>tmt,clear:()=>Xpt,default:()=>Hqt,getCommonDb:()=>qpt,getSections:()=>Kpt,getTasks:()=>Qpt});var o1,Ypt,EB,q6,l1,qpt,Xpt,jpt,Kpt,Qpt,Zpt,Jpt,tmt,Wpt,Hqt,emt=R(()=>{"use strict";Ci();o1="",Ypt=0,EB=[],q6=[],l1=[],qpt=o(()=>xy,"getCommonDb"),Xpt=o(function(){EB.length=0,q6.length=0,o1="",l1.length=0,Ar()},"clear"),jpt=o(function(e){o1=e,EB.push(e)},"addSection"),Kpt=o(function(){return EB},"getSections"),Qpt=o(function(){let e=Wpt(),t=100,r=0;for(;!e&&rr.id===Ypt-1).events.push(e)},"addEvent"),tmt=o(function(e){let t={section:o1,type:o1,description:e,task:e,classes:[]};q6.push(t)},"addTaskOrg"),Wpt=o(function(){let e=o(function(r){return l1[r].processed},"compileTask"),t=!0;for(let[r,n]of l1.entries())e(r),t=t&&n.processed;return t},"compileTasks"),Hqt={clear:Xpt,getCommonDb:qpt,addSection:jpt,getSections:Kpt,getTasks:Qpt,addTask:Zpt,addTaskOrg:tmt,addEvent:Jpt}});function amt(e,t){e.each(function(){var r=Gt(this),n=r.text().split(/(\s+|
    )/).reverse(),i,a=[],s=1.1,l=r.attr("y"),u=parseFloat(r.attr("dy")),h=r.text(null).append("tspan").attr("x",0).attr("y",l).attr("dy",u+"em");for(let f=0;ft||i==="
    ")&&(a.pop(),h.text(a.join(" ").trim()),i==="
    "?a=[""]:a=[i],h=r.append("tspan").attr("x",0).attr("y",l).attr("dy",s+"em").text(i))})}var Wqt,X6,Yqt,qqt,nmt,Xqt,jqt,rmt,Kqt,Qqt,Zqt,SB,imt,Jqt,tXt,eXt,rXt,Ef,smt=R(()=>{"use strict";ur();Wqt=12,X6=o(function(e,t){let r=e.append("rect");return r.attr("x",t.x),r.attr("y",t.y),r.attr("fill",t.fill),r.attr("stroke",t.stroke),r.attr("width",t.width),r.attr("height",t.height),r.attr("rx",t.rx),r.attr("ry",t.ry),t.class!==void 0&&r.attr("class",t.class),r},"drawRect"),Yqt=o(function(e,t){let n=e.append("circle").attr("cx",t.cx).attr("cy",t.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),i=e.append("g");i.append("circle").attr("cx",t.cx-15/3).attr("cy",t.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),i.append("circle").attr("cx",t.cx+15/3).attr("cy",t.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function a(u){let h=Cl().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);u.append("path").attr("class","mouth").attr("d",h).attr("transform","translate("+t.cx+","+(t.cy+2)+")")}o(a,"smile");function s(u){let h=Cl().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);u.append("path").attr("class","mouth").attr("d",h).attr("transform","translate("+t.cx+","+(t.cy+7)+")")}o(s,"sad");function l(u){u.append("line").attr("class","mouth").attr("stroke",2).attr("x1",t.cx-5).attr("y1",t.cy+7).attr("x2",t.cx+5).attr("y2",t.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return o(l,"ambivalent"),t.score>3?a(i):t.score<3?s(i):l(i),n},"drawFace"),qqt=o(function(e,t){let r=e.append("circle");return r.attr("cx",t.cx),r.attr("cy",t.cy),r.attr("class","actor-"+t.pos),r.attr("fill",t.fill),r.attr("stroke",t.stroke),r.attr("r",t.r),r.class!==void 0&&r.attr("class",r.class),t.title!==void 0&&r.append("title").text(t.title),r},"drawCircle"),nmt=o(function(e,t){let r=t.text.replace(//gi," "),n=e.append("text");n.attr("x",t.x),n.attr("y",t.y),n.attr("class","legend"),n.style("text-anchor",t.anchor),t.class!==void 0&&n.attr("class",t.class);let i=n.append("tspan");return i.attr("x",t.x+t.textMargin*2),i.text(r),n},"drawText"),Xqt=o(function(e,t){function r(i,a,s,l,u){return i+","+a+" "+(i+s)+","+a+" "+(i+s)+","+(a+l-u)+" "+(i+s-u*1.2)+","+(a+l)+" "+i+","+(a+l)}o(r,"genPoints");let n=e.append("polygon");n.attr("points",r(t.x,t.y,50,20,7)),n.attr("class","labelBox"),t.y=t.y+t.labelMargin,t.x=t.x+.5*t.labelMargin,nmt(e,t)},"drawLabel"),jqt=o(function(e,t,r){let n=e.append("g"),i=SB();i.x=t.x,i.y=t.y,i.fill=t.fill,i.width=r.width,i.height=r.height,i.class="journey-section section-type-"+t.num,i.rx=3,i.ry=3,X6(n,i),imt(r)(t.text,n,i.x,i.y,i.width,i.height,{class:"journey-section section-type-"+t.num},r,t.colour)},"drawSection"),rmt=-1,Kqt=o(function(e,t,r){let n=t.x+r.width/2,i=e.append("g");rmt++;let a=300+5*30;i.append("line").attr("id","task"+rmt).attr("x1",n).attr("y1",t.y).attr("x2",n).attr("y2",a).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),Yqt(i,{cx:n,cy:300+(5-t.score)*30,score:t.score});let s=SB();s.x=t.x,s.y=t.y,s.fill=t.fill,s.width=r.width,s.height=r.height,s.class="task task-type-"+t.num,s.rx=3,s.ry=3,X6(i,s),imt(r)(t.task,i,s.x,s.y,s.width,s.height,{class:"task"},r,t.colour)},"drawTask"),Qqt=o(function(e,t){X6(e,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,class:"rect"}).lower()},"drawBackgroundRect"),Zqt=o(function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}},"getTextObj"),SB=o(function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),imt=function(){function e(i,a,s,l,u,h,f,d){let p=a.append("text").attr("x",s+u/2).attr("y",l+h/2+5).style("font-color",d).style("text-anchor","middle").text(i);n(p,f)}o(e,"byText");function t(i,a,s,l,u,h,f,d,p){let{taskFontSize:m,taskFontFamily:g}=d,y=i.split(//gi);for(let v=0;v{"use strict";ur();smt();ce();Ue();Jn();nXt=o(function(e,t,r,n){let i=pt(),a=i.leftMargin??50;V.debug("timeline",n.db);let s=i.securityLevel,l;s==="sandbox"&&(l=Gt("#i"+t));let h=(s==="sandbox"?Gt(l.nodes()[0].contentDocument.body):Gt("body")).select("#"+t);h.append("g");let f=n.db.getTasks(),d=n.db.getCommonDb().getDiagramTitle();V.debug("task",f),Ef.initGraphics(h);let p=n.db.getSections();V.debug("sections",p);let m=0,g=0,y=0,v=0,x=50+a,b=50;v=50;let w=0,S=!0;p.forEach(function(L){let M={number:w,descr:L,section:w,width:150,padding:20,maxHeight:m},N=Ef.getVirtualNodeHeight(h,M,i);V.debug("sectionHeight before draw",N),m=Math.max(m,N+20)});let T=0,E=0;V.debug("tasks.length",f.length);for(let[L,M]of f.entries()){let N={number:L,descr:M,section:M.section,width:150,padding:20,maxHeight:g},k=Ef.getVirtualNodeHeight(h,N,i);V.debug("taskHeight before draw",k),g=Math.max(g,k+20),T=Math.max(T,M.events.length);let I=0;for(let C of M.events){let O={descr:C,section:M.section,number:M.section,width:150,padding:20,maxHeight:50};I+=Ef.getVirtualNodeHeight(h,O,i)}E=Math.max(E,I)}V.debug("maxSectionHeight before draw",m),V.debug("maxTaskHeight before draw",g),p&&p.length>0?p.forEach(L=>{let M=f.filter(C=>C.section===L),N={number:w,descr:L,section:w,width:200*Math.max(M.length,1)-50,padding:20,maxHeight:m};V.debug("sectionNode",N);let k=h.append("g"),I=Ef.drawNode(k,N,w,i);V.debug("sectionNode output",I),k.attr("transform",`translate(${x}, ${v})`),b+=m+50,M.length>0&&omt(h,M,w,x,b,g,i,T,E,m,!1),x+=200*Math.max(M.length,1),b=v,w++}):(S=!1,omt(h,f,w,x,b,g,i,T,E,m,!0));let _=h.node().getBBox();V.debug("bounds",_),d&&h.append("text").text(d).attr("x",_.width/2-a).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),y=S?m+g+150:g+100,h.append("g").attr("class","lineWrapper").append("line").attr("x1",a).attr("y1",y).attr("x2",_.width+3*a).attr("y2",y).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),No(void 0,h,i.timeline?.padding??50,i.timeline?.useMaxWidth??!1)},"draw"),omt=o(function(e,t,r,n,i,a,s,l,u,h,f){for(let d of t){let p={descr:d.task,section:r,number:r,width:150,padding:20,maxHeight:a};V.debug("taskNode",p);let m=e.append("g").attr("class","taskWrapper"),y=Ef.drawNode(m,p,r,s).height;if(V.debug("taskHeight after draw",y),m.attr("transform",`translate(${n}, ${i})`),a=Math.max(a,y),d.events){let v=e.append("g").attr("class","lineWrapper"),x=a;i+=100,x=x+iXt(e,d.events,r,n,i,s),i-=100,v.append("line").attr("x1",n+190/2).attr("y1",i+a).attr("x2",n+190/2).attr("y2",i+a+(f?a:h)+u+120).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5")}n=n+200,f&&!s.timeline?.disableMulticolor&&r++}i=i-10},"drawTasks"),iXt=o(function(e,t,r,n,i,a){let s=0,l=i;i=i+100;for(let u of t){let h={descr:u,section:r,number:r,width:150,padding:20,maxHeight:50};V.debug("eventNode",h);let f=e.append("g").attr("class","eventWrapper"),p=Ef.drawNode(f,h,r,a).height;s=s+p,f.attr("transform",`translate(${n}, ${i})`),i=i+10+p}return i=l,s},"drawEvents"),lmt={setConf:o(()=>{},"setConf"),draw:nXt}});var aXt,sXt,umt,hmt=R(()=>{"use strict";ul();aXt=o(e=>{let t="";for(let r=0;r"u"&&(X.yylloc={});var de=X.yylloc;yt.push(de);var J=X.options&&X.options.ranges;typeof Rt.yy.parseError=="function"?this.parseError=Rt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ae(){var Ee;return Ee=Tt.pop()||X.lex()||lt,typeof Ee!="number"&&(Ee instanceof Array&&(Tt=Ee,Ee=Tt.pop()),Ee=st.symbols_[Ee]||Ee),Ee}for(var Wt,It,Nt,me,Ue={},_n,_e,rr,Te;;){if(It=pt[pt.length-1],this.defaultActions[It]?Nt=this.defaultActions[It]:((Wt===null||typeof Wt>"u")&&(Wt=ae()),Nt=ht[It]&&ht[It][Wt]),typeof Nt>"u"||!Nt.length||!Nt[0]){var ne="";Te=[];for(_n in ht[It])this.terminals_[_n]&&_n>gt&&Te.push("'"+this.terminals_[_n]+"'");X.showPosition?ne="Parse error on line "+(rt+1)+`: -`+X.showPosition()+` -Expecting `+Te.join(", ")+", got '"+(this.terminals_[Wt]||Wt)+"'":ne="Parse error on line "+(rt+1)+": Unexpected "+(Wt==lt?"end of input":"'"+(this.terminals_[Wt]||Wt)+"'"),this.parseError(ne,{text:X.match,token:this.terminals_[Wt]||Wt,line:X.yylineno,loc:de,expected:Te})}if(Nt[0]instanceof Array&&Nt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+It+", token: "+Wt);switch(Nt[0]){case 1:pt.push(Wt),kt.push(X.yytext),yt.push(X.yylloc),pt.push(Nt[1]),Wt=null,wt=X.yyleng,mt=X.yytext,rt=X.yylineno,de=X.yylloc;break;case 2:if(_e=this.productions_[Nt[1]][1],Ue.$=kt[kt.length-_e],Ue._$={first_line:yt[yt.length-(_e||1)].first_line,last_line:yt[yt.length-1].last_line,first_column:yt[yt.length-(_e||1)].first_column,last_column:yt[yt.length-1].last_column},J&&(Ue._$.range=[yt[yt.length-(_e||1)].range[0],yt[yt.length-1].range[1]]),me=this.performAction.apply(Ue,[mt,wt,rt,Rt.yy,Nt[1],kt,yt].concat(_t)),typeof me<"u")return me;_e&&(pt=pt.slice(0,-1*_e*2),kt=kt.slice(0,-1*_e),yt=yt.slice(0,-1*_e)),pt.push(this.productions_[Nt[1]][0]),kt.push(Ue.$),yt.push(Ue._$),rr=ht[pt[pt.length-2]][pt[pt.length-1]],pt.push(rr);break;case 3:return!0}}return!0}},H=function(){var it={EOF:1,parseError:function(st,pt){if(this.yy.parser)this.yy.parser.parseError(st,pt);else throw new Error(st)},setInput:function(nt,st){return this.yy=st||this.yy||{},this._input=nt,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var nt=this._input[0];this.yytext+=nt,this.yyleng++,this.offset++,this.match+=nt,this.matched+=nt;var st=nt.match(/(?:\r\n?|\n).*/g);return st?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),nt},unput:function(nt){var st=nt.length,pt=nt.split(/(?:\r\n?|\n)/g);this._input=nt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-st),this.offset-=st;var Tt=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),pt.length-1&&(this.yylineno-=pt.length-1);var kt=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:pt?(pt.length===Tt.length?this.yylloc.first_column:0)+Tt[Tt.length-pt.length].length-pt[0].length:this.yylloc.first_column-st},this.options.ranges&&(this.yylloc.range=[kt[0],kt[0]+this.yyleng-st]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). -`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(nt){this.unput(this.match.slice(nt))},pastInput:function(){var nt=this.matched.substr(0,this.matched.length-this.match.length);return(nt.length>20?"...":"")+nt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var nt=this.match;return nt.length<20&&(nt+=this._input.substr(0,20-nt.length)),(nt.substr(0,20)+(nt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var nt=this.pastInput(),st=new Array(nt.length+1).join("-");return nt+this.upcomingInput()+` -`+st+"^"},test_match:function(nt,st){var pt,Tt,kt;if(this.options.backtrack_lexer&&(kt={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(kt.yylloc.range=this.yylloc.range.slice(0))),Tt=nt[0].match(/(?:\r\n?|\n).*/g),Tt&&(this.yylineno+=Tt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Tt?Tt[Tt.length-1].length-Tt[Tt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+nt[0].length},this.yytext+=nt[0],this.match+=nt[0],this.matches=nt,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(nt[0].length),this.matched+=nt[0],pt=this.performAction.call(this,this.yy,this,st,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),pt)return pt;if(this._backtrack){for(var yt in kt)this[yt]=kt[yt];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var nt,st,pt,Tt;this._more||(this.yytext="",this.match="");for(var kt=this._currentRules(),yt=0;ytst[0].length)){if(st=pt,Tt=yt,this.options.backtrack_lexer){if(nt=this.test_match(pt,kt[yt]),nt!==!1)return nt;if(this._backtrack){st=!1;continue}else return!1}else if(!this.options.flex)break}return st?(nt=this.test_match(st,kt[Tt]),nt!==!1?nt:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var st=this.next();return st||this.lex()},begin:function(st){this.conditionStack.push(st)},popState:function(){var st=this.conditionStack.length-1;return st>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(st){return st=this.conditionStack.length-1-Math.abs(st||0),st>=0?this.conditionStack[st]:"INITIAL"},pushState:function(st){this.begin(st)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(st,pt,Tt,kt){switch(Tt){case 0:return this.begin("open_directive"),28;case 1:return this.begin("type_directive"),29;case 2:return this.popState(),this.begin("arg_directive"),15;case 3:return this.popState(),this.popState(),31;case 4:return 30;case 5:break;case 6:break;case 7:return 11;case 8:break;case 9:break;case 10:return 4;case 11:return 17;case 12:return this.begin("acc_title"),18;case 13:return this.popState(),"acc_title_value";case 14:return this.begin("acc_descr"),20;case 15:return this.popState(),"acc_descr_value";case 16:this.begin("acc_descr_multiline");break;case 17:this.popState();break;case 18:return"acc_descr_multiline_value";case 19:return 23;case 20:return 27;case 21:return 26;case 22:return 6;case 23:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?::\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{open_directive:{rules:[1],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},acc_descr_multiline:{rules:[17,18],inclusive:!1},acc_descr:{rules:[15],inclusive:!1},acc_title:{rules:[13],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,14,16,19,20,21,22,23],inclusive:!0}}};return it}();R.lexer=H;function Y(){this.yy={}}return Y.prototype=R,R.Parser=Y,new Y}();Sgt.parser=Sgt;const TGe=Sgt;let gL="",WRt=0;const Agt=[],FK=[],pL=[],KRt=()=>uIt,YRt=(i,a,f)=>{V1t(globalThis,i,a,f)},XRt=function(){Agt.length=0,FK.length=0,gL="",pL.length=0,cg()},QRt=function(i){gL=i,Agt.push(i)},ZRt=function(){return Agt},JRt=function(){let i=rjt();const a=100;let f=0;for(;!i&&ff.id===WRt-1).events.push(i)},njt=function(i){const a={section:gL,type:gL,description:i,task:i,classes:[]};FK.push(a)},rjt=function(){const i=function(f){return pL[f].processed};let a=!0;for(const[f,p]of pL.entries())i(f),a=a&&p.processed;return a},_Ge=Object.freeze(Object.defineProperty({__proto__:null,addEvent:ejt,addSection:QRt,addTask:tjt,addTaskOrg:njt,clear:XRt,default:{clear:XRt,getCommonDb:KRt,addSection:QRt,getSections:ZRt,getTasks:JRt,addTask:tjt,addTaskOrg:njt,addEvent:ejt,parseDirective:YRt},getCommonDb:KRt,getSections:ZRt,getTasks:JRt,parseDirective:YRt},Symbol.toStringTag,{value:"Module"})),CGe=12,BK=function(i,a){const f=i.append("rect");return f.attr("x",a.x),f.attr("y",a.y),f.attr("fill",a.fill),f.attr("stroke",a.stroke),f.attr("width",a.width),f.attr("height",a.height),f.attr("rx",a.rx),f.attr("ry",a.ry),a.class!==void 0&&f.attr("class",a.class),f},SGe=function(i,a){const p=i.append("circle").attr("cx",a.cx).attr("cy",a.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),v=i.append("g");v.append("circle").attr("cx",a.cx-15/3).attr("cy",a.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),v.append("circle").attr("cx",a.cx+15/3).attr("cy",a.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function m(C){const D=_A().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);C.append("path").attr("class","mouth").attr("d",D).attr("transform","translate("+a.cx+","+(a.cy+2)+")")}function b(C){const D=_A().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);C.append("path").attr("class","mouth").attr("d",D).attr("transform","translate("+a.cx+","+(a.cy+7)+")")}function E(C){C.append("line").attr("class","mouth").attr("stroke",2).attr("x1",a.cx-5).attr("y1",a.cy+7).attr("x2",a.cx+5).attr("y2",a.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return a.score>3?m(v):a.score<3?b(v):E(v),p},AGe=function(i,a){const f=i.append("circle");return f.attr("cx",a.cx),f.attr("cy",a.cy),f.attr("class","actor-"+a.pos),f.attr("fill",a.fill),f.attr("stroke",a.stroke),f.attr("r",a.r),f.class!==void 0&&f.attr("class",f.class),a.title!==void 0&&f.append("title").text(a.title),f},ijt=function(i,a){const f=a.text.replace(//gi," "),p=i.append("text");p.attr("x",a.x),p.attr("y",a.y),p.attr("class","legend"),p.style("text-anchor",a.anchor),a.class!==void 0&&p.attr("class",a.class);const v=p.append("tspan");return v.attr("x",a.x+a.textMargin*2),v.text(f),p},LGe=function(i,a){function f(v,m,b,E,C){return v+","+m+" "+(v+b)+","+m+" "+(v+b)+","+(m+E-C)+" "+(v+b-C*1.2)+","+(m+E)+" "+v+","+(m+E)}const p=i.append("polygon");p.attr("points",f(a.x,a.y,50,20,7)),p.attr("class","labelBox"),a.y=a.y+a.labelMargin,a.x=a.x+.5*a.labelMargin,ijt(i,a)},MGe=function(i,a,f){const p=i.append("g"),v=Lgt();v.x=a.x,v.y=a.y,v.fill=a.fill,v.width=f.width,v.height=f.height,v.class="journey-section section-type-"+a.num,v.rx=3,v.ry=3,BK(p,v),ajt(f)(a.text,p,v.x,v.y,v.width,v.height,{class:"journey-section section-type-"+a.num},f,a.colour)};let sjt=-1;const DGe=function(i,a,f){const p=a.x+f.width/2,v=i.append("g");sjt++;const m=300+5*30;v.append("line").attr("id","task"+sjt).attr("x1",p).attr("y1",a.y).attr("x2",p).attr("y2",m).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),SGe(v,{cx:p,cy:300+(5-a.score)*30,score:a.score});const b=Lgt();b.x=a.x,b.y=a.y,b.fill=a.fill,b.width=f.width,b.height=f.height,b.class="task task-type-"+a.num,b.rx=3,b.ry=3,BK(v,b),a.x+14,ajt(f)(a.task,v,b.x,b.y,b.width,b.height,{class:"task"},f,a.colour)},IGe=function(i,a){BK(i,{x:a.startx,y:a.starty,width:a.stopx-a.startx,height:a.stopy-a.starty,fill:a.fill,class:"rect"}).lower()},OGe=function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}},Lgt=function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},ajt=function(){function i(v,m,b,E,C,D,P,B){const j=m.append("text").attr("x",b+C/2).attr("y",E+D/2+5).style("font-color",B).style("text-anchor","middle").text(v);p(j,P)}function a(v,m,b,E,C,D,P,B,j){const{taskFontSize:R,taskFontFamily:H}=B,Y=v.split(//gi);for(let it=0;it)/).reverse(),v,m=[],b=1.1,E=f.attr("y"),C=parseFloat(f.attr("dy")),D=f.text(null).append("tspan").attr("x",0).attr("y",E).attr("dy",C+"em");for(let P=0;Pa||v==="
    ")&&(m.pop(),D.text(m.join(" ").trim()),v==="
    "?m=[""]:m=[v],D=f.append("tspan").attr("x",0).attr("y",E).attr("dy",b+"em").text(v))})}const PGe=function(i,a,f,p){const v=f%CGe-1,m=i.append("g");a.section=v,m.attr("class",(a.class?a.class+" ":"")+"timeline-node "+("section-"+v));const b=m.append("g"),E=m.append("g"),D=E.append("text").text(a.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(ojt,a.width).node().getBBox(),P=p.fontSize&&p.fontSize.replace?p.fontSize.replace("px",""):p.fontSize;return a.height=D.height+P*1.1*.5+a.padding,a.height=Math.max(a.height,a.maxHeight),a.width=a.width+2*a.padding,E.attr("transform","translate("+a.width/2+", "+a.padding/2+")"),BGe(b,a,v),a},FGe=function(i,a,f){const p=i.append("g"),m=p.append("text").text(a.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(ojt,a.width).node().getBBox(),b=f.fontSize&&f.fontSize.replace?f.fontSize.replace("px",""):f.fontSize;return p.remove(),m.height+b*1.1*.5+a.padding},BGe=function(i,a,f){i.append("path").attr("id","node-"+a.id).attr("class","node-bkg node-"+a.type).attr("d",`M0 ${a.height-5} v${-a.height+2*5} q0,-5 5,-5 h${a.width-2*5} q5,0 5,5 v${a.height-5} H0 Z`),i.append("line").attr("class","node-line-"+f).attr("x1",0).attr("y1",a.height).attr("x2",a.width).attr("y2",a.height)},xE={drawRect:BK,drawCircle:AGe,drawSection:MGe,drawText:ijt,drawLabel:LGe,drawTask:DGe,drawBackgroundRect:IGe,getTextObj:OGe,getNoteRect:Lgt,initGraphics:NGe,drawNode:PGe,getVirtualNodeHeight:FGe},RGe=function(i,a,f,p){var rt,wt,gt,lt;const v=Oe(),m=v.leftMargin??50;(wt=(rt=p.db).clear)==null||wt.call(rt),p.parser.parse(i+` -`),zt.debug("timeline",p.db);const b=v.securityLevel;let E;b==="sandbox"&&(E=Mr("#i"+a));const D=Mr(b==="sandbox"?E.nodes()[0].contentDocument.body:"body").select("#"+a);D.append("g");const P=p.db.getTasks(),B=p.db.getCommonDb().getDiagramTitle();zt.debug("task",P),xE.initGraphics(D);const j=p.db.getSections();zt.debug("sections",j);let R=0,H=0,Y=0,it=0,nt=50+m,st=50;it=50;let pt=0,Tt=!0;j.forEach(function(_t){const X={number:pt,descr:_t,section:pt,width:150,padding:20,maxHeight:R},Rt=xE.getVirtualNodeHeight(D,X,v);zt.debug("sectionHeight before draw",Rt),R=Math.max(R,Rt+20)});let kt=0,yt=0;zt.debug("tasks.length",P.length);for(const[_t,X]of P.entries()){const Rt={number:_t,descr:X,section:X.section,width:150,padding:20,maxHeight:H},ft=xE.getVirtualNodeHeight(D,Rt,v);zt.debug("taskHeight before draw",ft),H=Math.max(H,ft+20),kt=Math.max(kt,X.events.length);let de=0;for(let J=0;J0?j.forEach(_t=>{const X=P.filter(J=>J.section===_t),Rt={number:pt,descr:_t,section:pt,width:200*Math.max(X.length,1)-50,padding:20,maxHeight:R};zt.debug("sectionNode",Rt);const ft=D.append("g"),de=xE.drawNode(ft,Rt,pt,v);zt.debug("sectionNode output",de),ft.attr("transform",`translate(${nt}, ${it})`),st+=R+50,X.length>0&&cjt(D,X,pt,nt,st,H,v,kt,yt,R,!1),nt+=200*Math.max(X.length,1),st=it,pt++}):(Tt=!1,cjt(D,P,pt,nt,st,H,v,kt,yt,R,!0));const ht=D.node().getBBox();zt.debug("bounds",ht),B&&D.append("text").text(B).attr("x",ht.width/2-m).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),Y=Tt?R+H+150:H+100,D.append("g").attr("class","lineWrapper").append("line").attr("x1",m).attr("y1",Y).attr("x2",ht.width+3*m).attr("y2",Y).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),Z9(void 0,D,((gt=v.timeline)==null?void 0:gt.padding)??50,((lt=v.timeline)==null?void 0:lt.useMaxWidth)??!1)},cjt=function(i,a,f,p,v,m,b,E,C,D,P){var B;for(const j of a){const R={descr:j.task,section:f,number:f,width:150,padding:20,maxHeight:m};zt.debug("taskNode",R);const H=i.append("g").attr("class","taskWrapper"),it=xE.drawNode(H,R,f,b).height;if(zt.debug("taskHeight after draw",it),H.attr("transform",`translate(${p}, ${v})`),m=Math.max(m,it),j.events){const nt=i.append("g").attr("class","lineWrapper");let st=m;v+=100,st=st+jGe(i,j.events,f,p,v,b),v-=100,nt.append("line").attr("x1",p+190/2).attr("y1",v+m).attr("x2",p+190/2).attr("y2",v+m+(P?m:D)+C+120).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5")}p=p+200,P&&!((B=b.timeline)!=null&&B.disableMulticolor)&&f++}v=v-10},jGe=function(i,a,f,p,v,m){let b=0;const E=v;v=v+100;for(const C of a){const D={descr:C,section:f,number:f,width:150,padding:20,maxHeight:50};zt.debug("eventNode",D);const P=i.append("g").attr("class","eventWrapper"),j=xE.drawNode(P,D,f,m).height;b=b+j,P.attr("transform",`translate(${p}, ${v})`),v=v+10+j}return v=E,b},$Ge={setConf:()=>{},draw:RGe},zGe=i=>{let a="";for(let f=0;f` .edge { stroke-width: 3; } - ${zGe(i)} + ${aXt(e)} .section-root rect, .section-root path, .section-root circle { - fill: ${i.git0}; + fill: ${e.git0}; } .section-root text { - fill: ${i.gitBranchLabel0}; + fill: ${e.gitBranchLabel0}; } .icon-container { height:100%; @@ -1519,78 +1892,69 @@ Expecting `+Te.join(", ")+", got '"+(this.terminals_[Wt]||Wt)+"'":ne="Parse erro .eventWrapper { filter: brightness(120%); } -`}},Symbol.toStringTag,{value:"Module"}));var Mgt=function(){var i=function(Tt,kt,yt,ht){for(yt=yt||{},ht=Tt.length;ht--;yt[Tt[ht]]=kt);return yt},a=[1,4],f=[1,13],p=[1,12],v=[1,15],m=[1,16],b=[1,20],E=[1,19],C=[6,7,8],D=[1,26],P=[1,24],B=[1,25],j=[6,7,11],R=[1,6,13,15,16,19,22],H=[1,33],Y=[1,34],it=[1,6,7,11,13,15,16,19,22],nt={trace:function(){},yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:function(kt,yt,ht,mt,rt,wt,gt){var lt=wt.length-1;switch(rt){case 6:case 7:return mt;case 8:mt.getLogger().trace("Stop NL ");break;case 9:mt.getLogger().trace("Stop EOF ");break;case 11:mt.getLogger().trace("Stop NL2 ");break;case 12:mt.getLogger().trace("Stop EOF2 ");break;case 15:mt.getLogger().info("Node: ",wt[lt].id),mt.addNode(wt[lt-1].length,wt[lt].id,wt[lt].descr,wt[lt].type);break;case 16:mt.getLogger().trace("Icon: ",wt[lt]),mt.decorateNode({icon:wt[lt]});break;case 17:case 21:mt.decorateNode({class:wt[lt]});break;case 18:mt.getLogger().trace("SPACELIST");break;case 19:mt.getLogger().trace("Node: ",wt[lt].id),mt.addNode(0,wt[lt].id,wt[lt].descr,wt[lt].type);break;case 20:mt.decorateNode({icon:wt[lt]});break;case 25:mt.getLogger().trace("node found ..",wt[lt-2]),this.$={id:wt[lt-1],descr:wt[lt-1],type:mt.getType(wt[lt-2],wt[lt])};break;case 26:this.$={id:wt[lt],descr:wt[lt],type:mt.nodeType.DEFAULT};break;case 27:mt.getLogger().trace("node found ..",wt[lt-3]),this.$={id:wt[lt-3],descr:wt[lt-1],type:mt.getType(wt[lt-2],wt[lt])};break}},table:[{3:1,4:2,5:3,6:[1,5],8:a},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:a},{6:f,7:[1,10],9:9,12:11,13:p,14:14,15:v,16:m,17:17,18:18,19:b,22:E},i(C,[2,3]),{1:[2,2]},i(C,[2,4]),i(C,[2,5]),{1:[2,6],6:f,12:21,13:p,14:14,15:v,16:m,17:17,18:18,19:b,22:E},{6:f,9:22,12:11,13:p,14:14,15:v,16:m,17:17,18:18,19:b,22:E},{6:D,7:P,10:23,11:B},i(j,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:b,22:E}),i(j,[2,18]),i(j,[2,19]),i(j,[2,20]),i(j,[2,21]),i(j,[2,23]),i(j,[2,24]),i(j,[2,26],{19:[1,30]}),{20:[1,31]},{6:D,7:P,10:32,11:B},{1:[2,7],6:f,12:21,13:p,14:14,15:v,16:m,17:17,18:18,19:b,22:E},i(R,[2,14],{7:H,11:Y}),i(it,[2,8]),i(it,[2,9]),i(it,[2,10]),i(j,[2,15]),i(j,[2,16]),i(j,[2,17]),{20:[1,35]},{21:[1,36]},i(R,[2,13],{7:H,11:Y}),i(it,[2,11]),i(it,[2,12]),{21:[1,37]},i(j,[2,25]),i(j,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:function(kt,yt){if(yt.recoverable)this.trace(kt);else{var ht=new Error(kt);throw ht.hash=yt,ht}},parse:function(kt){var yt=this,ht=[0],mt=[],rt=[null],wt=[],gt=this.table,lt="",_t=0,X=0,Rt=2,ft=1,de=wt.slice.call(arguments,1),J=Object.create(this.lexer),ae={yy:{}};for(var Wt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Wt)&&(ae.yy[Wt]=this.yy[Wt]);J.setInput(kt,ae.yy),ae.yy.lexer=J,ae.yy.parser=this,typeof J.yylloc>"u"&&(J.yylloc={});var It=J.yylloc;wt.push(It);var Nt=J.options&&J.options.ranges;typeof ae.yy.parseError=="function"?this.parseError=ae.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function me(){var Gt;return Gt=mt.pop()||J.lex()||ft,typeof Gt!="number"&&(Gt instanceof Array&&(mt=Gt,Gt=mt.pop()),Gt=yt.symbols_[Gt]||Gt),Gt}for(var Ue,_n,_e,rr,Te={},ne,Ee,ye,Vt;;){if(_n=ht[ht.length-1],this.defaultActions[_n]?_e=this.defaultActions[_n]:((Ue===null||typeof Ue>"u")&&(Ue=me()),_e=gt[_n]&>[_n][Ue]),typeof _e>"u"||!_e.length||!_e[0]){var Ae="";Vt=[];for(ne in gt[_n])this.terminals_[ne]&&ne>Rt&&Vt.push("'"+this.terminals_[ne]+"'");J.showPosition?Ae="Parse error on line "+(_t+1)+`: -`+J.showPosition()+` -Expecting `+Vt.join(", ")+", got '"+(this.terminals_[Ue]||Ue)+"'":Ae="Parse error on line "+(_t+1)+": Unexpected "+(Ue==ft?"end of input":"'"+(this.terminals_[Ue]||Ue)+"'"),this.parseError(Ae,{text:J.match,token:this.terminals_[Ue]||Ue,line:J.yylineno,loc:It,expected:Vt})}if(_e[0]instanceof Array&&_e.length>1)throw new Error("Parse Error: multiple actions possible at state: "+_n+", token: "+Ue);switch(_e[0]){case 1:ht.push(Ue),rt.push(J.yytext),wt.push(J.yylloc),ht.push(_e[1]),Ue=null,X=J.yyleng,lt=J.yytext,_t=J.yylineno,It=J.yylloc;break;case 2:if(Ee=this.productions_[_e[1]][1],Te.$=rt[rt.length-Ee],Te._$={first_line:wt[wt.length-(Ee||1)].first_line,last_line:wt[wt.length-1].last_line,first_column:wt[wt.length-(Ee||1)].first_column,last_column:wt[wt.length-1].last_column},Nt&&(Te._$.range=[wt[wt.length-(Ee||1)].range[0],wt[wt.length-1].range[1]]),rr=this.performAction.apply(Te,[lt,X,_t,ae.yy,_e[1],rt,wt].concat(de)),typeof rr<"u")return rr;Ee&&(ht=ht.slice(0,-1*Ee*2),rt=rt.slice(0,-1*Ee),wt=wt.slice(0,-1*Ee)),ht.push(this.productions_[_e[1]][0]),rt.push(Te.$),wt.push(Te._$),ye=gt[ht[ht.length-2]][ht[ht.length-1]],ht.push(ye);break;case 3:return!0}}return!0}},st=function(){var Tt={EOF:1,parseError:function(yt,ht){if(this.yy.parser)this.yy.parser.parseError(yt,ht);else throw new Error(yt)},setInput:function(kt,yt){return this.yy=yt||this.yy||{},this._input=kt,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var kt=this._input[0];this.yytext+=kt,this.yyleng++,this.offset++,this.match+=kt,this.matched+=kt;var yt=kt.match(/(?:\r\n?|\n).*/g);return yt?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),kt},unput:function(kt){var yt=kt.length,ht=kt.split(/(?:\r\n?|\n)/g);this._input=kt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-yt),this.offset-=yt;var mt=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),ht.length-1&&(this.yylineno-=ht.length-1);var rt=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:ht?(ht.length===mt.length?this.yylloc.first_column:0)+mt[mt.length-ht.length].length-ht[0].length:this.yylloc.first_column-yt},this.options.ranges&&(this.yylloc.range=[rt[0],rt[0]+this.yyleng-yt]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). -`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(kt){this.unput(this.match.slice(kt))},pastInput:function(){var kt=this.matched.substr(0,this.matched.length-this.match.length);return(kt.length>20?"...":"")+kt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var kt=this.match;return kt.length<20&&(kt+=this._input.substr(0,20-kt.length)),(kt.substr(0,20)+(kt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var kt=this.pastInput(),yt=new Array(kt.length+1).join("-");return kt+this.upcomingInput()+` -`+yt+"^"},test_match:function(kt,yt){var ht,mt,rt;if(this.options.backtrack_lexer&&(rt={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(rt.yylloc.range=this.yylloc.range.slice(0))),mt=kt[0].match(/(?:\r\n?|\n).*/g),mt&&(this.yylineno+=mt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:mt?mt[mt.length-1].length-mt[mt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+kt[0].length},this.yytext+=kt[0],this.match+=kt[0],this.matches=kt,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(kt[0].length),this.matched+=kt[0],ht=this.performAction.call(this,this.yy,this,yt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),ht)return ht;if(this._backtrack){for(var wt in rt)this[wt]=rt[wt];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var kt,yt,ht,mt;this._more||(this.yytext="",this.match="");for(var rt=this._currentRules(),wt=0;wtyt[0].length)){if(yt=ht,mt=wt,this.options.backtrack_lexer){if(kt=this.test_match(ht,rt[wt]),kt!==!1)return kt;if(this._backtrack){yt=!1;continue}else return!1}else if(!this.options.flex)break}return yt?(kt=this.test_match(yt,rt[mt]),kt!==!1?kt:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var yt=this.next();return yt||this.lex()},begin:function(yt){this.conditionStack.push(yt)},popState:function(){var yt=this.conditionStack.length-1;return yt>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(yt){return yt=this.conditionStack.length-1-Math.abs(yt||0),yt>=0?this.conditionStack[yt]:"INITIAL"},pushState:function(yt){this.begin(yt)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(yt,ht,mt,rt){switch(mt){case 0:return yt.getLogger().trace("Found comment",ht.yytext),6;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;case 4:this.popState();break;case 5:yt.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return yt.getLogger().trace("SPACELINE"),6;case 7:return 7;case 8:return 15;case 9:yt.getLogger().trace("end icon"),this.popState();break;case 10:return yt.getLogger().trace("Exploding node"),this.begin("NODE"),19;case 11:return yt.getLogger().trace("Cloud"),this.begin("NODE"),19;case 12:return yt.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;case 13:return yt.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;case 14:return this.begin("NODE"),19;case 15:return this.begin("NODE"),19;case 16:return this.begin("NODE"),19;case 17:return this.begin("NODE"),19;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin("NSTR2");break;case 22:return"NODE_DESCR";case 23:this.popState();break;case 24:yt.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return yt.getLogger().trace("description:",ht.yytext),"NODE_DESCR";case 26:this.popState();break;case 27:return this.popState(),yt.getLogger().trace("node end ))"),"NODE_DEND";case 28:return this.popState(),yt.getLogger().trace("node end )"),"NODE_DEND";case 29:return this.popState(),yt.getLogger().trace("node end ...",ht.yytext),"NODE_DEND";case 30:return this.popState(),yt.getLogger().trace("node end (("),"NODE_DEND";case 31:return this.popState(),yt.getLogger().trace("node end (-"),"NODE_DEND";case 32:return this.popState(),yt.getLogger().trace("node end (-"),"NODE_DEND";case 33:return this.popState(),yt.getLogger().trace("node end (("),"NODE_DEND";case 34:return this.popState(),yt.getLogger().trace("node end (("),"NODE_DEND";case 35:return yt.getLogger().trace("Long description:",ht.yytext),20;case 36:return yt.getLogger().trace("Long description:",ht.yytext),20}},rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\-\)\{\}]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}};return Tt}();nt.lexer=st;function pt(){this.yy={}}return pt.prototype=nt,nt.Parser=pt,new pt}();Mgt.parser=Mgt;const HGe=Mgt,RP=i=>sg(i,Oe());let iv=[],ujt=0,Dgt={};const VGe=()=>{iv=[],ujt=0,Dgt={}},GGe=function(i){for(let a=iv.length-1;a>=0;a--)if(iv[a].leveliv.length>0?iv[0]:null,WGe=(i,a,f,p)=>{zt.info("addNode",i,a,f,p);const v=Oe(),m={id:ujt++,nodeId:RP(a),level:i,descr:RP(f),type:p,children:[],width:Oe().mindmap.maxNodeWidth};switch(m.type){case nl.ROUNDED_RECT:m.padding=2*v.mindmap.padding;break;case nl.RECT:m.padding=2*v.mindmap.padding;break;case nl.HEXAGON:m.padding=2*v.mindmap.padding;break;default:m.padding=v.mindmap.padding}const b=GGe(i);if(b)b.children.push(m),iv.push(m);else if(iv.length===0)iv.push(m);else{let E=new Error('There can be only one root. No parent could be found for ("'+m.descr+'")');throw E.hash={text:"branch "+name,token:"branch "+name,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"checkout '+name+'"']},E}},nl={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},KGe=(i,a)=>{switch(zt.debug("In get type",i,a),i){case"[":return nl.RECT;case"(":return a===")"?nl.ROUNDED_RECT:nl.CLOUD;case"((":return nl.CIRCLE;case")":return nl.CLOUD;case"))":return nl.BANG;case"{{":return nl.HEXAGON;default:return nl.DEFAULT}},ljt=(i,a)=>{Dgt[i]=a},YGe=i=>{const a=iv[iv.length-1];i&&i.icon&&(a.icon=RP(i.icon)),i&&i.class&&(a.class=RP(i.class))},kE=i=>{switch(i){case nl.DEFAULT:return"no-border";case nl.RECT:return"rect";case nl.ROUNDED_RECT:return"rounded-rect";case nl.CIRCLE:return"circle";case nl.CLOUD:return"cloud";case nl.BANG:return"bang";case nl.HEXAGON:return"hexgon";default:return"no-border"}};let hjt;const XGe=i=>{hjt=i},QGe=()=>zt,ZGe=i=>iv[i],Igt=i=>Dgt[i],JGe=Object.freeze(Object.defineProperty({__proto__:null,addNode:WGe,clear:VGe,decorateNode:YGe,getElementById:Igt,getLogger:QGe,getMindmap:UGe,getNodeById:ZGe,getType:KGe,nodeType:nl,get parseError(){return hjt},sanitizeText:RP,setElementForId:ljt,setErrorHandler:XGe,type2Str:kE},Symbol.toStringTag,{value:"Module"})),fjt=12,tUe=function(i,a,f){i.append("path").attr("id","node-"+a.id).attr("class","node-bkg node-"+kE(a.type)).attr("d",`M0 ${a.height-5} v${-a.height+2*5} q0,-5 5,-5 h${a.width-2*5} q5,0 5,5 v${a.height-5} H0 Z`),i.append("line").attr("class","node-line-"+f).attr("x1",0).attr("y1",a.height).attr("x2",a.width).attr("y2",a.height)},eUe=function(i,a){i.append("rect").attr("id","node-"+a.id).attr("class","node-bkg node-"+kE(a.type)).attr("height",a.height).attr("width",a.width)},nUe=function(i,a){const f=a.width,p=a.height,v=.15*f,m=.25*f,b=.35*f,E=.2*f;i.append("path").attr("id","node-"+a.id).attr("class","node-bkg node-"+kE(a.type)).attr("d",`M0 0 a${v},${v} 0 0,1 ${f*.25},${-1*f*.1} - a${b},${b} 1 0,1 ${f*.4},${-1*f*.1} - a${m},${m} 1 0,1 ${f*.35},${1*f*.2} - - a${v},${v} 1 0,1 ${f*.15},${1*p*.35} - a${E},${E} 1 0,1 ${-1*f*.15},${1*p*.65} - - a${m},${v} 1 0,1 ${-1*f*.25},${f*.15} - a${b},${b} 1 0,1 ${-1*f*.5},0 - a${v},${v} 1 0,1 ${-1*f*.25},${-1*f*.15} - - a${v},${v} 1 0,1 ${-1*f*.1},${-1*p*.35} - a${E},${E} 1 0,1 ${f*.1},${-1*p*.65} - - H0 V0 Z`)},rUe=function(i,a){const f=a.width,p=a.height,v=.15*f;i.append("path").attr("id","node-"+a.id).attr("class","node-bkg node-"+kE(a.type)).attr("d",`M0 0 a${v},${v} 1 0,0 ${f*.25},${-1*p*.1} - a${v},${v} 1 0,0 ${f*.25},0 - a${v},${v} 1 0,0 ${f*.25},0 - a${v},${v} 1 0,0 ${f*.25},${1*p*.1} - - a${v},${v} 1 0,0 ${f*.15},${1*p*.33} - a${v*.8},${v*.8} 1 0,0 0,${1*p*.34} - a${v},${v} 1 0,0 ${-1*f*.15},${1*p*.33} - - a${v},${v} 1 0,0 ${-1*f*.25},${p*.15} - a${v},${v} 1 0,0 ${-1*f*.25},0 - a${v},${v} 1 0,0 ${-1*f*.25},0 - a${v},${v} 1 0,0 ${-1*f*.25},${-1*p*.15} - - a${v},${v} 1 0,0 ${-1*f*.1},${-1*p*.33} - a${v*.8},${v*.8} 1 0,0 0,${-1*p*.34} - a${v},${v} 1 0,0 ${f*.1},${-1*p*.33} - - H0 V0 Z`)},iUe=function(i,a){i.append("circle").attr("id","node-"+a.id).attr("class","node-bkg node-"+kE(a.type)).attr("r",a.width/2)};function sUe(i,a,f,p,v){return i.insert("polygon",":first-child").attr("points",p.map(function(m){return m.x+","+m.y}).join(" ")).attr("transform","translate("+(v.width-a)/2+", "+f+")")}const aUe=function(i,a){const f=a.height,v=f/4,m=a.width-a.padding+2*v,b=[{x:v,y:0},{x:m-v,y:0},{x:m,y:-f/2},{x:m-v,y:-f},{x:v,y:-f},{x:0,y:-f/2}];sUe(i,m,f,b,a)},oUe=function(i,a){i.append("rect").attr("id","node-"+a.id).attr("class","node-bkg node-"+kE(a.type)).attr("height",a.height).attr("rx",a.padding).attr("ry",a.padding).attr("width",a.width)},djt={drawNode:function(i,a,f,p){const v=p.htmlLabels,m=f%(fjt-1),b=i.append("g");a.section=m;let E="section-"+m;m<0&&(E+=" section-root"),b.attr("class",(a.class?a.class+" ":"")+"mindmap-node "+E);const C=b.append("g"),D=b.append("g"),P=a.descr.replace(/()/g,` -`);aK(D,P,{useHtmlLabels:v,width:a.width,classes:"mindmap-node-label"}),v||D.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle");const B=D.node().getBBox(),j=p.fontSize.replace?p.fontSize.replace("px",""):p.fontSize;if(a.height=B.height+j*1.1*.5+a.padding,a.width=B.width+2*a.padding,a.icon)if(a.type===nl.CIRCLE)a.height+=50,a.width+=50,b.append("foreignObject").attr("height","50px").attr("width",a.width).attr("style","text-align: center;").append("div").attr("class","icon-container").append("i").attr("class","node-icon-"+m+" "+a.icon),D.attr("transform","translate("+a.width/2+", "+(a.height/2-1.5*a.padding)+")");else{a.width+=50;const R=a.height;a.height=Math.max(R,60);const H=Math.abs(a.height-R);b.append("foreignObject").attr("width","60px").attr("height",a.height).attr("style","text-align: center;margin-top:"+H/2+"px;").append("div").attr("class","icon-container").append("i").attr("class","node-icon-"+m+" "+a.icon),D.attr("transform","translate("+(25+a.width/2)+", "+(H/2+a.padding/2)+")")}else if(v){const R=(a.width-B.width)/2,H=(a.height-B.height)/2;D.attr("transform","translate("+R+", "+H+")")}else{const R=a.width/2,H=a.padding/2;D.attr("transform","translate("+R+", "+H+")")}switch(a.type){case nl.DEFAULT:tUe(C,a,m);break;case nl.ROUNDED_RECT:oUe(C,a);break;case nl.RECT:eUe(C,a);break;case nl.CIRCLE:C.attr("transform","translate("+a.width/2+", "+ +a.height/2+")"),iUe(C,a);break;case nl.CLOUD:nUe(C,a);break;case nl.BANG:rUe(C,a);break;case nl.HEXAGON:aUe(C,a);break}return ljt(a.id,b),a.height},positionNode:function(i){const a=Igt(i.id),f=i.x||0,p=i.y||0;a.attr("transform","translate("+f+","+p+")")},drawEdge:function(a,f,p,v,m){const b=m%(fjt-1),E=p.x+p.width/2,C=p.y+p.height/2,D=f.x+f.width/2,P=f.y+f.height/2,B=D>E?E+Math.abs(E-D)/2:E-Math.abs(E-D)/2,j=P>C?C+Math.abs(C-P)/2:C-Math.abs(C-P)/2,R=D>E?Math.abs(E-B)/2+E:-Math.abs(E-B)/2+E,H=P>C?Math.abs(C-j)/2+C:-Math.abs(C-j)/2+C;a.append("path").attr("d",p.direction==="TB"||p.direction==="BT"?`M${E},${C} Q${E},${H} ${B},${j} T${D},${P}`:`M${E},${C} Q${R},${C} ${B},${j} T${D},${P}`).attr("class","edge section-edge-"+b+" edge-depth-"+v)}};var Ogt={},cUe={get exports(){return Ogt},set exports(i){Ogt=i}};(function(i,a){(function(f,p){i.exports=p()})(b0,function(){function f(y){return f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(g){return typeof g}:function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g},f(y)}function p(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")}function v(y,g){for(var x=0;xy.length)&&(g=y.length);for(var x=0,T=new Array(g);x"u"?null:window,H=R?R.navigator:null;R&&R.document;var Y=f(""),it=f({}),nt=f(function(){}),st=typeof HTMLElement>"u"?"undefined":f(HTMLElement),pt=function(g){return g&&g.instanceString&&kt(g.instanceString)?g.instanceString():null},Tt=function(g){return g!=null&&f(g)==Y},kt=function(g){return g!=null&&f(g)===nt},yt=function(g){return!lt(g)&&(Array.isArray?Array.isArray(g):g!=null&&g instanceof Array)},ht=function(g){return g!=null&&f(g)===it&&!yt(g)&&g.constructor===Object},mt=function(g){return g!=null&&f(g)===it},rt=function(g){return g!=null&&f(g)===f(1)&&!isNaN(g)},wt=function(g){return rt(g)&&Math.floor(g)===g},gt=function(g){if(st!=="undefined")return g!=null&&g instanceof HTMLElement},lt=function(g){return _t(g)||X(g)},_t=function(g){return pt(g)==="collection"&&g._private.single},X=function(g){return pt(g)==="collection"&&!g._private.single},Rt=function(g){return pt(g)==="core"},ft=function(g){return pt(g)==="stylesheet"},de=function(g){return pt(g)==="event"},J=function(g){return g==null?!0:!!(g===""||g.match(/^\s+$/))},ae=function(g){return typeof HTMLElement>"u"?!1:g instanceof HTMLElement},Wt=function(g){return ht(g)&&rt(g.x1)&&rt(g.x2)&&rt(g.y1)&&rt(g.y2)},It=function(g){return mt(g)&&kt(g.then)},Nt=function(){return H&&H.userAgent.match(/msie|trident|edge/i)},me=function(g,x){x||(x=function(){if(arguments.length===1)return arguments[0];if(arguments.length===0)return"undefined";for(var I=[],O=0;Ox?1:0},jt=function(g,x){return-1*un(g,x)},Ke=Object.assign!=null?Object.assign.bind(Object):function(y){for(var g=arguments,x=1;x1&&(At-=1),At<1/6?ut+(dt-ut)*6*At:At<1/2?dt:At<2/3?ut+(dt-ut)*(2/3-At)*6:ut}var U=new RegExp("^"+ye+"$").exec(g);if(U){if(T=parseInt(U[1]),T<0?T=(360- -1*T%360)%360:T>360&&(T=T%360),T/=360,A=parseFloat(U[2]),A<0||A>100||(A=A/100,I=parseFloat(U[3]),I<0||I>100)||(I=I/100,O=U[4],O!==void 0&&(O=parseFloat(O),O<0||O>1)))return;if(A===0)$=z=S=Math.round(I*255);else{var tt=I<.5?I*(1+A):I+A-I*A,at=2*I-tt;$=Math.round(255*V(at,tt,T+1/3)),z=Math.round(255*V(at,tt,T)),S=Math.round(255*V(at,tt,T-1/3))}x=[$,z,S,O]}return x},Le=function(g){var x,T=new RegExp("^"+ne+"$").exec(g);if(T){x=[];for(var A=[],I=1;I<=3;I++){var O=T[I];if(O[O.length-1]==="%"&&(A[I]=!0),O=parseFloat(O),A[I]&&(O=O/100*255),O<0||O>255)return;x.push(Math.floor(O))}var $=A[1]||A[2]||A[3],z=A[1]&&A[2]&&A[3];if($&&!z)return;var S=T[4];if(S!==void 0){if(S=parseFloat(S),S<0||S>1)return;x.push(S)}}return x},Nr=function(g){return sr[g.toLowerCase()]},fe=function(g){return(yt(g)?g:null)||Nr(g)||oe(g)||Le(g)||Or(g)},sr={transparent:[0,0,0,0],aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],grey:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Yn=function(g){for(var x=g.map,T=g.keys,A=T.length,I=0;I=g||$t<0||U&&ee>=I}function xt(){var Kt=zn();if(At(Kt))return Mt(Kt);$=setTimeout(xt,dt(Kt))}function Mt(Kt){return $=void 0,tt&&T?at(Kt):(T=A=void 0,O)}function Dt(){$!==void 0&&clearTimeout($),S=0,T=z=A=$=void 0}function Bt(){return $===void 0?O:Mt(zn())}function Zt(){var Kt=zn(),$t=At(Kt);if(T=arguments,A=this,z=Kt,$t){if($===void 0)return ut(z);if(U)return clearTimeout($),$=setTimeout(xt,g),at(z)}return $===void 0&&($=setTimeout(xt,g)),O}return Zt.cancel=Dt,Zt.flush=Bt,Zt}var um=bL,dg=R?R.performance:null,cs=dg&&dg.now?function(){return dg.now()}:function(){return Date.now()},zs=function(){if(R){if(R.requestAnimationFrame)return function(y){R.requestAnimationFrame(y)};if(R.mozRequestAnimationFrame)return function(y){R.mozRequestAnimationFrame(y)};if(R.webkitRequestAnimationFrame)return function(y){R.webkitRequestAnimationFrame(y)};if(R.msRequestAnimationFrame)return function(y){R.msRequestAnimationFrame(y)}}return function(y){y&&setTimeout(function(){y(cs())},1e3/60)}}(),Ma=function(g){return zs(g)},Ei=cs,Rc=9261,Ne=65599,pp=5381,We=function(g){for(var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Rc,T=x,A;A=g.next(),!A.done;)T=T*Ne+A.value|0;return T},uf=function(g){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Rc;return x*Ne+g|0},lm=function(g){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:pp;return(x<<5)+x+g|0},EE=function(g,x){return g*2097152+x},bp=function(g){return g[0]*2097152+g[1]},B5=function(g,x){return[uf(g[0],x[0]),lm(g[1],x[1])]},ah=function(g,x){var T={value:0,done:!1},A=0,I=g.length,O={next:function(){return A=0&&!(g[A]===x&&(g.splice(A,1),T));A--);},wL=function(g){g.splice(0,g.length)},$P=function(g,x){for(var T=0;T"u"?"undefined":f(Set))!==HK?Set:VK,CE=function(g,x){var T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(g===void 0||x===void 0||!Rt(g)){Ec("An element must have a core reference and parameters set");return}var A=x.group;if(A==null&&(x.data&&x.data.source!=null&&x.data.target!=null?A="edges":A="nodes"),A!=="nodes"&&A!=="edges"){Ec("An element must be of type `nodes` or `edges`; you specified `"+A+"`");return}this.length=1,this[0]=this;var I=this._private={cy:g,single:!0,data:x.data||{},position:x.position||{x:0,y:0},autoWidth:void 0,autoHeight:void 0,autoPadding:void 0,compoundBoundsClean:!1,listeners:[],group:A,style:{},rstyle:{},styleCxts:[],styleKeys:{},removed:!0,selected:!!x.selected,selectable:x.selectable===void 0?!0:!!x.selectable,locked:!!x.locked,grabbed:!1,grabbable:x.grabbable===void 0?!0:!!x.grabbable,pannable:x.pannable===void 0?A==="edges":!!x.pannable,active:!1,classes:new $5,animation:{current:[],queue:[]},rscratch:{},scratch:x.scratch||{},edges:[],children:[],parent:x.parent&&x.parent.isNode()?x.parent:null,traversalCache:{},backgrounding:!1,bbCache:null,bbCacheShift:{x:0,y:0},bodyBounds:null,overlayBounds:null,labelBounds:{all:null,source:null,target:null,main:null},arrowBounds:{source:null,target:null,"mid-source":null,"mid-target":null}};if(I.position.x==null&&(I.position.x=0),I.position.y==null&&(I.position.y=0),x.renderedPosition){var O=x.renderedPosition,$=g.pan(),z=g.zoom();I.position={x:(O.x-$.x)/z,y:(O.y-$.y)/z}}var S=[];yt(x.classes)?S=x.classes:Tt(x.classes)&&(S=x.classes.split(/\s+/));for(var V=0,U=S.length;VMt?1:0},V=function(xt,Mt,Dt,Bt,Zt){var Kt;if(Dt==null&&(Dt=0),Zt==null&&(Zt=T),Dt<0)throw new Error("lo must be non-negative");for(Bt==null&&(Bt=xt.length);Dtge;0<=ge?Ht++:Ht--)ee.push(Ht);return ee}.apply(this).reverse(),$t=[],Bt=0,Zt=Kt.length;Btbe;0<=be?++ee:--ee)re.push(O(xt,Dt));return re},dt=function(xt,Mt,Dt,Bt){var Zt,Kt,$t;for(Bt==null&&(Bt=T),Zt=xt[Dt];Dt>Mt;){if($t=Dt-1>>1,Kt=xt[$t],Bt(Zt,Kt)<0){xt[Dt]=Kt,Dt=$t;continue}break}return xt[Dt]=Zt},At=function(xt,Mt,Dt){var Bt,Zt,Kt,$t,ee;for(Dt==null&&(Dt=T),Zt=xt.length,ee=Mt,Kt=xt[Mt],Bt=2*Mt+1;Bt0;){var Kt=Mt.pop(),$t=At(Kt),ee=Kt.id();if(tt[ee]=$t,$t!==1/0)for(var Ht=Kt.neighborhood().intersect(ut),ge=0;ge0)for(xn.unshift(qe);U[er];){var Sn=U[er];xn.unshift(Sn.edge),xn.unshift(Sn.node),Nn=Sn.node,er=Nn.id()}return $.spawn(xn)}}}},KK={kruskal:function(g){g=g||function(Dt){return 1};for(var x=this.byGroup(),T=x.nodes,A=x.edges,I=T.length,O=new Array(I),$=T,z=function(Bt){for(var Zt=0;Zt0;){if(Zt(),$t++,Bt===V){for(var ee=[],Ht=I,ge=V,be=xt[ge];ee.unshift(Ht),be!=null&&ee.unshift(be),Ht=At[ge],Ht!=null;)ge=Ht.id(),be=xt[ge];return{found:!0,distance:U[Bt],path:this.spawn(ee),steps:$t}}at[Bt]=!0;for(var re=Dt._private.edges,Pe=0;Pebe&&(ut[ge]=be,Mt[ge]=Ht,Dt[ge]=Zt),!I){var re=Ht*V+ee;!I&&ut[re]>be&&(ut[re]=be,Mt[re]=ee,Dt[re]=Zt)}}}for(var Pe=0;Pe1&&arguments[1]!==void 0?arguments[1]:O,no=Dt(Ri),ca=[],ea=no;;){if(ea==null)return x.spawn();var Fr=Mt(ea),Qt=Fr.edge,Hn=Fr.pred;if(ca.unshift(ea[0]),ea.same(as)&&ca.length>0)break;Qt!=null&&ca.unshift(Qt),ea=Hn}return z.spawn(ca)},Kt=0;Kt=0;V--){var U=S[V],tt=U[1],at=U[2];(x[tt]===$&&x[at]===z||x[tt]===z&&x[at]===$)&&S.splice(V,1)}for(var ut=0;utA;){var I=Math.floor(Math.random()*x.length);x=nY(I,g,x),T--}return x},rY={kargerStein:function(){var g=this,x=this.byGroup(),T=x.nodes,A=x.edges;A.unmergeBy(function(xn){return xn.isLoop()});var I=T.length,O=A.length,$=Math.ceil(Math.pow(Math.log(I)/Math.LN2,2)),z=Math.floor(I/eY);if(I<2){Ec("At least 2 nodes are required for Karger-Stein algorithm");return}for(var S=[],V=0;V1&&arguments[1]!==void 0?arguments[1]:0,T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:g.length,A=1/0,I=x;I1&&arguments[1]!==void 0?arguments[1]:0,T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:g.length,A=-1/0,I=x;I1&&arguments[1]!==void 0?arguments[1]:0,T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:g.length,A=0,I=0,O=x;O1&&arguments[1]!==void 0?arguments[1]:0,T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:g.length,A=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,I=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,O=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;A?g=g.slice(x,T):(T0&&g.splice(0,x));for(var $=0,z=g.length-1;z>=0;z--){var S=g[z];O?isFinite(S)||(g[z]=-1/0,$++):g.splice(z,1)}I&&g.sort(function(tt,at){return tt-at});var V=g.length,U=Math.floor(V/2);return V%2!==0?g[U+1+$]:(g[U-1+$]+g[U+$])/2},uY=function(g){return Math.PI*g/180},AE=function(g,x){return Math.atan2(x,g)-Math.PI/2},yL=Math.log2||function(y){return Math.log(y)/Math.log(2)},HP=function(g){return g>0?1:g<0?-1:0},E3=function(g,x){return Math.sqrt(T3(g,x))},T3=function(g,x){var T=x.x-g.x,A=x.y-g.y;return T*T+A*A},lY=function(g){for(var x=g.length,T=0,A=0;A=g.x1&&g.y2>=g.y1)return{x1:g.x1,y1:g.y1,x2:g.x2,y2:g.y2,w:g.x2-g.x1,h:g.y2-g.y1};if(g.w!=null&&g.h!=null&&g.w>=0&&g.h>=0)return{x1:g.x1,y1:g.y1,x2:g.x1+g.w,y2:g.y1+g.h,w:g.w,h:g.h}}},fY=function(g){return{x1:g.x1,x2:g.x2,w:g.w,y1:g.y1,y2:g.y2,h:g.h}},dY=function(g){g.x1=1/0,g.y1=1/0,g.x2=-1/0,g.y2=-1/0,g.w=0,g.h=0},gY=function(g,x){g.x1=Math.min(g.x1,x.x1),g.x2=Math.max(g.x2,x.x2),g.w=g.x2-g.x1,g.y1=Math.min(g.y1,x.y1),g.y2=Math.max(g.y2,x.y2),g.h=g.y2-g.y1},pY=function(g,x,T){g.x1=Math.min(g.x1,x),g.x2=Math.max(g.x2,x),g.w=g.x2-g.x1,g.y1=Math.min(g.y1,T),g.y2=Math.max(g.y2,T),g.h=g.y2-g.y1},LE=function(g){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return g.x1-=x,g.x2+=x,g.y1-=x,g.y2+=x,g.w=g.x2-g.x1,g.h=g.y2-g.y1,g},xL=function(g){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0],T,A,I,O;if(x.length===1)T=A=I=O=x[0];else if(x.length===2)T=I=x[0],O=A=x[1];else if(x.length===4){var $=E(x,4);T=$[0],A=$[1],I=$[2],O=$[3]}return g.x1-=O,g.x2+=A,g.y1-=T,g.y2+=I,g.w=g.x2-g.x1,g.h=g.y2-g.y1,g},VP=function(g,x){g.x1=x.x1,g.y1=x.y1,g.x2=x.x2,g.y2=x.y2,g.w=g.x2-g.x1,g.h=g.y2-g.y1},kL=function(g,x){return!(g.x1>x.x2||x.x1>g.x2||g.x2x.y2||x.y1>g.y2)},H5=function(g,x,T){return g.x1<=x&&x<=g.x2&&g.y1<=T&&T<=g.y2},bY=function(g,x){return H5(g,x.x,x.y)},GP=function(g,x){return H5(g,x.x1,x.y1)&&H5(g,x.x2,x.y2)},UP=function(g,x,T,A,I,O,$){var z=xk(I,O),S=I/2,V=O/2,U;{var tt=T-S+z-$,at=A-V-$,ut=T+S-z+$,dt=at;if(U=pm(g,x,T,A,tt,at,ut,dt,!1),U.length>0)return U}{var At=T+S+$,xt=A-V+z-$,Mt=At,Dt=A+V-z+$;if(U=pm(g,x,T,A,At,xt,Mt,Dt,!1),U.length>0)return U}{var Bt=T-S+z-$,Zt=A+V+$,Kt=T+S-z+$,$t=Zt;if(U=pm(g,x,T,A,Bt,Zt,Kt,$t,!1),U.length>0)return U}{var ee=T-S-$,Ht=A-V+z-$,ge=ee,be=A+V-z+$;if(U=pm(g,x,T,A,ee,Ht,ge,be,!1),U.length>0)return U}var re;{var Pe=T-S+z,ve=A-V+z;if(re=mk(g,x,T,A,Pe,ve,z+$),re.length>0&&re[0]<=Pe&&re[1]<=ve)return[re[0],re[1]]}{var fn=T+S-z,$e=A-V+z;if(re=mk(g,x,T,A,fn,$e,z+$),re.length>0&&re[0]>=fn&&re[1]<=$e)return[re[0],re[1]]}{var qe=T+S-z,xn=A+V-z;if(re=mk(g,x,T,A,qe,xn,z+$),re.length>0&&re[0]>=qe&&re[1]>=xn)return[re[0],re[1]]}{var Nn=T-S+z,er=A+V-z;if(re=mk(g,x,T,A,Nn,er,z+$),re.length>0&&re[0]<=Nn&&re[1]>=er)return[re[0],re[1]]}return[]},vY=function(g,x,T,A,I,O,$){var z=$,S=Math.min(T,I),V=Math.max(T,I),U=Math.min(A,O),tt=Math.max(A,O);return S-z<=g&&g<=V+z&&U-z<=x&&x<=tt+z},wY=function(g,x,T,A,I,O,$,z,S){var V={x1:Math.min(T,$,I)-S,x2:Math.max(T,$,I)+S,y1:Math.min(A,z,O)-S,y2:Math.max(A,z,O)+S};return!(gV.x2||xV.y2)},mY=function(g,x,T,A){T-=A;var I=x*x-4*g*T;if(I<0)return[];var O=Math.sqrt(I),$=2*g,z=(-x+O)/$,S=(-x-O)/$;return[z,S]},yY=function(g,x,T,A,I){var O=1e-5;g===0&&(g=O),x/=g,T/=g,A/=g;var $,z,S,V,U,tt,at,ut;if(z=(3*T-x*x)/9,S=-(27*A)+x*(9*T-2*(x*x)),S/=54,$=z*z*z+S*S,I[1]=0,at=x/3,$>0){U=S+Math.sqrt($),U=U<0?-Math.pow(-U,1/3):Math.pow(U,1/3),tt=S-Math.sqrt($),tt=tt<0?-Math.pow(-tt,1/3):Math.pow(tt,1/3),I[0]=-at+U+tt,at+=(U+tt)/2,I[4]=I[2]=-at,at=Math.sqrt(3)*(-tt+U)/2,I[3]=at,I[5]=-at;return}if(I[5]=I[3]=0,$===0){ut=S<0?-Math.pow(-S,1/3):Math.pow(S,1/3),I[0]=-at+2*ut,I[4]=I[2]=-(ut+at);return}z=-z,V=z*z*z,V=Math.acos(S/Math.sqrt(V)),ut=2*Math.sqrt(z),I[0]=-at+ut*Math.cos(V/3),I[2]=-at+ut*Math.cos((V+2*Math.PI)/3),I[4]=-at+ut*Math.cos((V+4*Math.PI)/3)},xY=function(g,x,T,A,I,O,$,z){var S=1*T*T-4*T*I+2*T*$+4*I*I-4*I*$+$*$+A*A-4*A*O+2*A*z+4*O*O-4*O*z+z*z,V=1*9*T*I-3*T*T-3*T*$-6*I*I+3*I*$+9*A*O-3*A*A-3*A*z-6*O*O+3*O*z,U=1*3*T*T-6*T*I+T*$-T*g+2*I*I+2*I*g-$*g+3*A*A-6*A*O+A*z-A*x+2*O*O+2*O*x-z*x,tt=1*T*I-T*T+T*g-I*g+A*O-A*A+A*x-O*x,at=[];yY(S,V,U,tt,at);for(var ut=1e-7,dt=[],At=0;At<6;At+=2)Math.abs(at[At+1])=0&&at[At]<=1&&dt.push(at[At]);dt.push(1),dt.push(0);for(var xt=-1,Mt,Dt,Bt,Zt=0;Zt=0?BtS?(g-I)*(g-I)+(x-O)*(x-O):V-tt},qd=function(g,x,T){for(var A,I,O,$,z,S=0,V=0;V=g&&g>=O||A<=g&&g<=O)z=(g-A)/(O-A)*($-I)+I,z>x&&S++;else continue;return S%2!==0},ov=function(g,x,T,A,I,O,$,z,S){var V=new Array(T.length),U;z[0]!=null?(U=Math.atan(z[1]/z[0]),z[0]<0?U=U+Math.PI/2:U=-U-Math.PI/2):U=z;for(var tt=Math.cos(-U),at=Math.sin(-U),ut=0;ut0){var At=KP(V,-S);dt=WP(At)}else dt=V;return qd(g,x,dt)},EY=function(g,x,T,A,I,O,$){for(var z=new Array(T.length),S=O/2,V=$/2,U=_L(O,$),tt=U*U,at=0;at=0&&At<=1&&Mt.push(At),xt>=0&&xt<=1&&Mt.push(xt),Mt.length===0)return[];var Dt=Mt[0]*z[0]+g,Bt=Mt[0]*z[1]+x;if(Mt.length>1){if(Mt[0]==Mt[1])return[Dt,Bt];var Zt=Mt[1]*z[0]+g,Kt=Mt[1]*z[1]+x;return[Dt,Bt,Zt,Kt]}else return[Dt,Bt]},EL=function(g,x,T){return x<=g&&g<=T||T<=g&&g<=x?g:g<=x&&x<=T||T<=x&&x<=g?x:T},pm=function(g,x,T,A,I,O,$,z,S){var V=g-I,U=T-g,tt=$-I,at=x-O,ut=A-x,dt=z-O,At=tt*at-dt*V,xt=U*at-ut*V,Mt=dt*U-tt*ut;if(Mt!==0){var Dt=At/Mt,Bt=xt/Mt,Zt=.001,Kt=0-Zt,$t=1+Zt;return Kt<=Dt&&Dt<=$t&&Kt<=Bt&&Bt<=$t?[g+Dt*U,x+Dt*ut]:S?[g+Dt*U,x+Dt*ut]:[]}else return At===0||xt===0?EL(g,T,$)===$?[$,z]:EL(g,T,I)===I?[I,O]:EL(I,$,T)===T?[T,A]:[]:[]},yk=function(g,x,T,A,I,O,$,z){var S=[],V,U=new Array(T.length),tt=!0;O==null&&(tt=!1);var at;if(tt){for(var ut=0;ut0){var dt=KP(U,-z);at=WP(dt)}else at=U}else at=T;for(var At,xt,Mt,Dt,Bt=0;Bt2){for(var $e=[S[0],S[1]],qe=Math.pow($e[0]-g,2)+Math.pow($e[1]-x,2),xn=1;xnV&&(V=Bt)},get:function(Dt){return S[Dt]}},tt=0;tt<$.length;tt++){var at=$[tt],ut=at.id();T?z[ut]=at.outgoers().nodes():z[ut]=at.openNeighborhood().nodes(),U.set(ut,0)}for(var dt=function(Dt){for(var Bt=$[Dt].id(),Zt=[],Kt={},$t={},ee={},Ht=new vk(function(wr,cr){return ee[wr]-ee[cr]}),ge=0;ge<$.length;ge++){var be=$[ge].id();Kt[be]=[],$t[be]=0,ee[be]=1/0}for($t[Bt]=1,ee[Bt]=0,Ht.push(Bt);!Ht.empty();){var re=Ht.pop();if(Zt.push(re),I)for(var Pe=0;Pe0?$e=fn.edgesTo(ve)[0]:$e=ve.edgesTo(fn)[0];var qe=A($e);ve=ve.id(),ee[ve]>ee[re]+qe&&(ee[ve]=ee[re]+qe,Ht.nodes.indexOf(ve)<0?Ht.push(ve):Ht.updateItem(ve),$t[ve]=0,Kt[ve]=[]),ee[ve]==ee[re]+qe&&($t[ve]=$t[ve]+$t[re],Kt[ve].push(re))}else for(var xn=0;xn0;){for(var Jn=Zt.pop(),fr=0;fr0&&$.push(T[z]);$.length!==0&&I.push(A.collection($))}return I},RY=function(g,x){for(var T=0;T5&&arguments[5]!==void 0?arguments[5]:zY,$=A,z,S,V=0;V=2?kk(g,x,T,0,iF,qY):kk(g,x,T,0,rF)},squaredEuclidean:function(g,x,T){return kk(g,x,T,0,iF)},manhattan:function(g,x,T){return kk(g,x,T,0,rF)},max:function(g,x,T){return kk(g,x,T,-1/0,HY)}};U5["squared-euclidean"]=U5.squaredEuclidean,U5.squaredeuclidean=U5.squaredEuclidean;function DE(y,g,x,T,A,I){var O;return kt(y)?O=y:O=U5[y]||U5.euclidean,g===0&&kt(y)?O(A,I):O(g,x,T,A,I)}var VY=Hf({k:2,m:2,sensitivityThreshold:1e-4,distance:"euclidean",maxIterations:10,attributes:[],testMode:!1,testCentroids:null}),AL=function(g){return VY(g)},IE=function(g,x,T,A,I){var O=I!=="kMedoids",$=O?function(U){return T[U]}:function(U){return A[U](T)},z=function(tt){return A[tt](x)},S=T,V=x;return DE(g,A.length,$,z,S,V)},LL=function(g,x,T){for(var A=T.length,I=new Array(A),O=new Array(A),$=new Array(x),z=null,S=0;ST)return!1}return!0},WY=function(g,x,T){for(var A=0;A$&&($=x[S][V],z=V);I[z].push(g[S])}for(var U=0;U=I.threshold||I.mode==="dendrogram"&&g.length===1)return!1;var ut=x[O],dt=x[A[O]],At;I.mode==="dendrogram"?At={left:ut,right:dt,key:ut.key}:At={value:ut.value.concat(dt.value),key:ut.key},g[ut.index]=At,g.splice(dt.index,1),x[ut.key]=At;for(var xt=0;xtT[dt.key][Mt.key]&&(z=T[dt.key][Mt.key])):I.linkage==="max"?(z=T[ut.key][Mt.key],T[ut.key][Mt.key]0&&A.push(I);return A},fF=function(g,x,T){for(var A=[],I=0;I$&&(O=S,$=x[I*g+S])}O>0&&A.push(O)}for(var V=0;VS&&(z=V,S=U)}T[I]=O[z]}return A=fF(g,x,T),A},dF=function(g){for(var x=this.cy(),T=this.nodes(),A=oX(g),I={},O=0;O=be?(re=be,be=ve,Pe=fn):ve>re&&(re=ve);for(var $e=0;$e<$;$e++)U[ge*$+$e]=(1-A.damping)*(S[ge*$+$e]-be)+A.damping*Dt[$e];U[ge*$+Pe]=(1-A.damping)*(S[ge*$+Pe]-re)+A.damping*Dt[Pe]}for(var qe=0;qe<$;qe++){for(var xn=0,Nn=0;Nn<$;Nn++)Dt[Nn]=tt[Nn*$+qe],Bt[Nn]=Math.max(0,U[Nn*$+qe]),xn+=Bt[Nn];xn-=Bt[qe],Bt[qe]=U[qe*$+qe],xn+=Bt[qe];for(var er=0;er<$;er++)tt[er*$+qe]=(1-A.damping)*Math.min(0,xn-Bt[er])+A.damping*Dt[er];tt[qe*$+qe]=(1-A.damping)*(xn-Bt[qe])+A.damping*Dt[qe]}for(var Sn=0,Jn=0;Jn<$;Jn++){var fr=tt[Jn*$+Jn]+U[Jn*$+Jn]>0?1:0;$t[Ht%A.minIterations*$+Jn]=fr,Sn+=fr}if(Sn>0&&(Ht>=A.minIterations-1||Ht==A.maxIterations-1)){for(var Sr=0,wr=0;wr<$;wr++){Zt[wr]=0;for(var cr=0;cr1||Kt>1)&&($=!0),U[Dt]=[],Mt.outgoers().forEach(function(ee){ee.isEdge()&&U[Dt].push(ee.id())})}else tt[Dt]=[void 0,Mt.target().id()]}):O.forEach(function(Mt){var Dt=Mt.id();if(Mt.isNode()){var Bt=Mt.degree(!0);Bt%2&&(z?S?$=!0:S=Dt:z=Dt),U[Dt]=[],Mt.connectedEdges().forEach(function(Zt){return U[Dt].push(Zt.id())})}else tt[Dt]=[Mt.source().id(),Mt.target().id()]});var at={found:!1,trail:void 0};if($)return at;if(S&&z)if(I){if(V&&S!=V)return at;V=S}else{if(V&&S!=V&&z!=V)return at;V||(V=S)}else V||(V=O[0].id());var ut=function(Dt){for(var Bt=Dt,Zt=[Dt],Kt,$t,ee;U[Bt].length;)Kt=U[Bt].shift(),$t=tt[Kt][0],ee=tt[Kt][1],Bt!=ee?(U[ee]=U[ee].filter(function(Ht){return Ht!=Kt}),Bt=ee):!I&&Bt!=$t&&(U[$t]=U[$t].filter(function(Ht){return Ht!=Kt}),Bt=$t),Zt.unshift(Kt),Zt.unshift(Bt);return Zt},dt=[],At=[];for(At=ut(V);At.length!=1;)U[At[0]].length==0?(dt.unshift(O.getElementById(At.shift())),dt.unshift(O.getElementById(At.shift()))):At=ut(At.shift()).concat(At);dt.unshift(O.getElementById(At.shift()));for(var xt in U)if(U[xt].length)return at;return at.found=!0,at.trail=this.spawn(dt,!0),at}},NE=function(){var g=this,x={},T=0,A=0,I=[],O=[],$={},z=function(tt,at){for(var ut=O.length-1,dt=[],At=g.spawn();O[ut].x!=tt||O[ut].y!=at;)dt.push(O.pop().edge),ut--;dt.push(O.pop().edge),dt.forEach(function(xt){var Mt=xt.connectedNodes().intersection(g);At.merge(xt),Mt.forEach(function(Dt){var Bt=Dt.id(),Zt=Dt.connectedEdges().intersection(g);At.merge(Dt),x[Bt].cutVertex?At.merge(Zt.filter(function(Kt){return Kt.isLoop()})):At.merge(Zt)})}),I.push(At)},S=function U(tt,at,ut){tt===ut&&(A+=1),x[at]={id:T,low:T++,cutVertex:!1};var dt=g.getElementById(at).connectedEdges().intersection(g);if(dt.size()===0)I.push(g.spawn(g.getElementById(at)));else{var At,xt,Mt,Dt;dt.forEach(function(Bt){At=Bt.source().id(),xt=Bt.target().id(),Mt=At===at?xt:At,Mt!==ut&&(Dt=Bt.id(),$[Dt]||($[Dt]=!0,O.push({x:at,y:Mt,edge:Bt})),Mt in x?x[at].low=Math.min(x[at].low,x[Mt].id):(U(tt,Mt,at),x[at].low=Math.min(x[at].low,x[Mt].low),x[at].id<=x[Mt].low&&(x[at].cutVertex=!0,z(at,Mt))))})}};g.forEach(function(U){if(U.isNode()){var tt=U.id();tt in x||(A=0,S(tt,tt),x[tt].cutVertex=A>1)}});var V=Object.keys(x).filter(function(U){return x[U].cutVertex}).map(function(U){return g.getElementById(U)});return{cut:g.spawn(V),components:I}},pX={hopcroftTarjanBiconnected:NE,htbc:NE,htb:NE,hopcroftTarjanBiconnectedComponents:NE},PE=function(){var g=this,x={},T=0,A=[],I=[],O=g.spawn(g),$=function z(S){I.push(S),x[S]={index:T,low:T++,explored:!1};var V=g.getElementById(S).connectedEdges().intersection(g);if(V.forEach(function(dt){var At=dt.target().id();At!==S&&(At in x||z(At),x[At].explored||(x[S].low=Math.min(x[S].low,x[At].low)))}),x[S].index===x[S].low){for(var U=g.spawn();;){var tt=I.pop();if(U.merge(g.getElementById(tt)),x[tt].low=x[S].index,x[tt].explored=!0,tt===S)break}var at=U.edgesWith(U),ut=U.merge(at);A.push(ut),O=O.difference(ut)}};return g.forEach(function(z){if(z.isNode()){var S=z.id();S in x||$(S)}}),{cut:O,components:A}},bX={tarjanStronglyConnected:PE,tsc:PE,tscc:PE,tarjanStronglyConnectedComponents:PE},gF={};[bk,WK,KK,XK,ZK,tY,rY,AY,V5,G5,SL,$Y,JY,sX,fX,gX,pX,bX].forEach(function(y){Ke(gF,y)});/*! -Embeddable Minimum Strictly-Compliant Promises/A+ 1.1.1 Thenable -Copyright (c) 2013-2014 Ralf S. Engelschall (http://engelschall.com) -Licensed under The MIT License (http://opensource.org/licenses/MIT) -*/var pF=0,bF=1,vF=2,cv=function y(g){if(!(this instanceof y))return new y(g);this.id="Thenable/1.0.7",this.state=pF,this.fulfillValue=void 0,this.rejectReason=void 0,this.onFulfilled=[],this.onRejected=[],this.proxy={then:this.then.bind(this)},typeof g=="function"&&g.call(this,this.fulfill.bind(this),this.reject.bind(this))};cv.prototype={fulfill:function(g){return wF(this,bF,"fulfillValue",g)},reject:function(g){return wF(this,vF,"rejectReason",g)},then:function(g,x){var T=this,A=new cv;return T.onFulfilled.push(xF(g,A,"fulfill")),T.onRejected.push(xF(x,A,"reject")),mF(T),A.proxy}};var wF=function(g,x,T,A){return g.state===pF&&(g.state=x,g[T]=A,mF(g)),g},mF=function(g){g.state===bF?yF(g,"onFulfilled",g.fulfillValue):g.state===vF&&yF(g,"onRejected",g.rejectReason)},yF=function(g,x,T){if(g[x].length!==0){var A=g[x];g[x]=[];var I=function(){for(var $=0;$0}},clearQueue:function(){return function(){var x=this,T=x.length!==void 0,A=T?x:[x],I=this._private.cy||this;if(!I.styleEnabled())return this;for(var O=0;O-1}var vQ=bQ;function wQ(y,g){var x=this.__data__,T=RE(x,y);return T<0?(++this.size,x.push([y,g])):x[T][1]=g,this}var mQ=wQ;function Y5(y){var g=-1,x=y==null?0:y.length;for(this.clear();++g-1&&y%1==0&&y0&&this.spawn(A).updateStyle().emit("class"),x},addClass:function(g){return this.toggleClass(g,!0)},hasClass:function(g){var x=this[0];return x!=null&&x._private.classes.has(g)},toggleClass:function(g,x){yt(g)||(g=g.match(/\S+/g)||[]);for(var T=this,A=x===void 0,I=[],O=0,$=T.length;O<$;O++)for(var z=T[O],S=z._private.classes,V=!1,U=0;U0&&this.spawn(I).updateStyle().emit("class"),T},removeClass:function(g){return this.toggleClass(g,!1)},flashClass:function(g,x){var T=this;if(x==null)x=250;else if(x===0)return T;return T.addClass(g),setTimeout(function(){T.removeClass(g)},x),T}};qE.className=qE.classNames=qE.classes;var dc={metaChar:"[\\!\\\"\\#\\$\\%\\&\\'\\(\\)\\*\\+\\,\\.\\/\\:\\;\\<\\=\\>\\?\\@\\[\\]\\^\\`\\{\\|\\}\\~]",comparatorOp:"=|\\!=|>|>=|<|<=|\\$=|\\^=|\\*=",boolOp:"\\?|\\!|\\^",string:`"(?:\\\\"|[^"])*"|'(?:\\\\'|[^'])*'`,number:Te,meta:"degree|indegree|outdegree",separator:"\\s*,\\s*",descendant:"\\s+",child:"\\s+>\\s+",subject:"\\$",group:"node|edge|\\*",directedEdge:"\\s+->\\s+",undirectedEdge:"\\s+<->\\s+"};dc.variable="(?:[\\w-.]|(?:\\\\"+dc.metaChar+"))+",dc.className="(?:[\\w-]|(?:\\\\"+dc.metaChar+"))+",dc.value=dc.string+"|"+dc.number,dc.id=dc.variable,function(){var y,g,x;for(y=dc.comparatorOp.split("|"),x=0;x=0)&&g!=="="&&(dc.comparatorOp+="|\\!"+g)}();var ru=function(){return{checks:[]}},ts={GROUP:0,COLLECTION:1,FILTER:2,DATA_COMPARE:3,DATA_EXIST:4,DATA_BOOL:5,META_COMPARE:6,STATE:7,ID:8,CLASS:9,UNDIRECTED_EDGE:10,DIRECTED_EDGE:11,NODE_SOURCE:12,NODE_TARGET:13,NODE_NEIGHBOR:14,CHILD:15,DESCENDANT:16,PARENT:17,ANCESTOR:18,COMPOUND_SPLIT:19,TRUE:20},PL=[{selector:":selected",matches:function(g){return g.selected()}},{selector:":unselected",matches:function(g){return!g.selected()}},{selector:":selectable",matches:function(g){return g.selectable()}},{selector:":unselectable",matches:function(g){return!g.selectable()}},{selector:":locked",matches:function(g){return g.locked()}},{selector:":unlocked",matches:function(g){return!g.locked()}},{selector:":visible",matches:function(g){return g.visible()}},{selector:":hidden",matches:function(g){return!g.visible()}},{selector:":transparent",matches:function(g){return g.transparent()}},{selector:":grabbed",matches:function(g){return g.grabbed()}},{selector:":free",matches:function(g){return!g.grabbed()}},{selector:":removed",matches:function(g){return g.removed()}},{selector:":inside",matches:function(g){return!g.removed()}},{selector:":grabbable",matches:function(g){return g.grabbable()}},{selector:":ungrabbable",matches:function(g){return!g.grabbable()}},{selector:":animated",matches:function(g){return g.animated()}},{selector:":unanimated",matches:function(g){return!g.animated()}},{selector:":parent",matches:function(g){return g.isParent()}},{selector:":childless",matches:function(g){return g.isChildless()}},{selector:":child",matches:function(g){return g.isChild()}},{selector:":orphan",matches:function(g){return g.isOrphan()}},{selector:":nonorphan",matches:function(g){return g.isChild()}},{selector:":compound",matches:function(g){return g.isNode()?g.isParent():g.source().isParent()||g.target().isParent()}},{selector:":loop",matches:function(g){return g.isLoop()}},{selector:":simple",matches:function(g){return g.isSimple()}},{selector:":active",matches:function(g){return g.active()}},{selector:":inactive",matches:function(g){return!g.active()}},{selector:":backgrounding",matches:function(g){return g.backgrounding()}},{selector:":nonbackgrounding",matches:function(g){return!g.backgrounding()}}].sort(function(y,g){return jt(y.selector,g.selector)}),mZ=function(){for(var y={},g,x=0;x0&&V.edgeCount>0)return Wo("The selector `"+g+"` is invalid because it uses both a compound selector and an edge selector"),!1;if(V.edgeCount>1)return Wo("The selector `"+g+"` is invalid because it uses multiple edge selectors"),!1;V.edgeCount===1&&Wo("The selector `"+g+"` is deprecated. Edge selectors do not take effect on changes to source and target nodes after an edge is added, for performance reasons. Use a class or data selector on edges instead, updating the class or data of an edge when your app detects a change in source or target nodes.")}return!0},_Z=function(){if(this.toStringCache!=null)return this.toStringCache;for(var g=function(V){return V??""},x=function(V){return Tt(V)?'"'+V+'"':g(V)},T=function(V){return" "+V+" "},A=function(V,U){var tt=V.type,at=V.value;switch(tt){case ts.GROUP:{var ut=g(at);return ut.substring(0,ut.length-1)}case ts.DATA_COMPARE:{var dt=V.field,At=V.operator;return"["+dt+T(g(At))+x(at)+"]"}case ts.DATA_BOOL:{var xt=V.operator,Mt=V.field;return"["+g(xt)+Mt+"]"}case ts.DATA_EXIST:{var Dt=V.field;return"["+Dt+"]"}case ts.META_COMPARE:{var Bt=V.operator,Zt=V.field;return"[["+Zt+T(g(Bt))+x(at)+"]]"}case ts.STATE:return at;case ts.ID:return"#"+at;case ts.CLASS:return"."+at;case ts.PARENT:case ts.CHILD:return I(V.parent,U)+T(">")+I(V.child,U);case ts.ANCESTOR:case ts.DESCENDANT:return I(V.ancestor,U)+" "+I(V.descendant,U);case ts.COMPOUND_SPLIT:{var Kt=I(V.left,U),$t=I(V.subject,U),ee=I(V.right,U);return Kt+(Kt.length>0?" ":"")+$t+ee}case ts.TRUE:return""}},I=function(V,U){return V.checks.reduce(function(tt,at,ut){return tt+(U===V&&ut===0?"$":"")+A(at,U)},"")},O="",$=0;$1&&$=0&&(x=x.replace("!",""),U=!0),x.indexOf("@")>=0&&(x=x.replace("@",""),V=!0),(I||$||V)&&(z=!I&&!O?"":""+g,S=""+T),V&&(g=z=z.toLowerCase(),T=S=S.toLowerCase()),x){case"*=":A=z.indexOf(S)>=0;break;case"$=":A=z.indexOf(S,z.length-S.length)>=0;break;case"^=":A=z.indexOf(S)===0;break;case"=":A=g===T;break;case">":tt=!0,A=g>T;break;case">=":tt=!0,A=g>=T;break;case"<":tt=!0,A=g0;){var V=A.shift();g(V),I.add(V.id()),$&&T(A,I,V)}return y}function Tk(y,g,x){if(x.isParent())for(var T=x._private.children,A=0;A1&&arguments[1]!==void 0?arguments[1]:!0;return HE(this,y,g,Tk)};function $F(y,g,x){if(x.isChild()){var T=x._private.parent;g.has(T.id())||y.push(T)}}Z5.forEachUp=function(y){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return HE(this,y,g,$F)};function OZ(y,g,x){$F(y,g,x),Tk(y,g,x)}Z5.forEachUpAndDown=function(y){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return HE(this,y,g,OZ)},Z5.ancestors=Z5.parents;var _k,zF;_k=zF={data:jc.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),removeData:jc.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),scratch:jc.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:jc.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),rscratch:jc.data({field:"rscratch",allowBinding:!1,allowSetting:!0,settingTriggersEvent:!1,allowGetting:!0}),removeRscratch:jc.removeData({field:"rscratch",triggerEvent:!1}),id:function(){var g=this[0];if(g)return g._private.data.id}},_k.attr=_k.data,_k.removeAttr=_k.removeData;var NZ=zF,VE={};function J5(y){return function(g){var x=this;if(g===void 0&&(g=!0),x.length!==0)if(x.isNode()&&!x.removed()){for(var T=0,A=x[0],I=A._private.edges,O=0;Og}),minIndegree:t6("indegree",function(y,g){return yg}),minOutdegree:t6("outdegree",function(y,g){return yg})}),Ke(VE,{totalDegree:function(g){for(var x=0,T=this.nodes(),A=0;A0,tt=U;U&&(V=V[0]);var at=tt?V.position():{x:0,y:0};x!==void 0?S.position(g,x+at[g]):I!==void 0&&S.position({x:I.x+at.x,y:I.y+at.y})}else{var ut=T.position(),dt=$?T.parent():null,At=dt&&dt.length>0,xt=At;At&&(dt=dt[0]);var Mt=xt?dt.position():{x:0,y:0};return I={x:ut.x-Mt.x,y:ut.y-Mt.y},g===void 0?I:I[g]}else if(!O)return;return this}},yp.modelPosition=yp.point=yp.position,yp.modelPositions=yp.points=yp.positions,yp.renderedPoint=yp.renderedPosition,yp.relativePoint=yp.relativePosition;var VF=qF,e6,$2;e6=$2={},$2.renderedBoundingBox=function(y){var g=this.boundingBox(y),x=this.cy(),T=x.zoom(),A=x.pan(),I=g.x1*T+A.x,O=g.x2*T+A.x,$=g.y1*T+A.y,z=g.y2*T+A.y;return{x1:I,x2:O,y1:$,y2:z,w:O-I,h:z-$}},$2.dirtyCompoundBoundsCache=function(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,g=this.cy();return!g.styleEnabled()||!g.hasCompoundNodes()?this:(this.forEachUp(function(x){if(x.isParent()){var T=x._private;T.compoundBoundsClean=!1,T.bbCache=null,y||x.emitAndNotify("bounds")}}),this)},$2.updateCompoundBounds=function(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,g=this.cy();if(!g.styleEnabled()||!g.hasCompoundNodes())return this;if(!y&&g.batching())return this;function x(O){if(!O.isParent())return;var $=O._private,z=O.children(),S=O.pstyle("compound-sizing-wrt-labels").value==="include",V={width:{val:O.pstyle("min-width").pfValue,left:O.pstyle("min-width-bias-left"),right:O.pstyle("min-width-bias-right")},height:{val:O.pstyle("min-height").pfValue,top:O.pstyle("min-height-bias-top"),bottom:O.pstyle("min-height-bias-bottom")}},U=z.boundingBox({includeLabels:S,includeOverlays:!1,useCache:!1}),tt=$.position;(U.w===0||U.h===0)&&(U={w:O.pstyle("width").pfValue,h:O.pstyle("height").pfValue},U.x1=tt.x-U.w/2,U.x2=tt.x+U.w/2,U.y1=tt.y-U.h/2,U.y2=tt.y+U.h/2);function at(Ht,ge,be){var re=0,Pe=0,ve=ge+be;return Ht>0&&ve>0&&(re=ge/ve*Ht,Pe=be/ve*Ht),{biasDiff:re,biasComplementDiff:Pe}}function ut(Ht,ge,be,re){if(be.units==="%")switch(re){case"width":return Ht>0?be.pfValue*Ht:0;case"height":return ge>0?be.pfValue*ge:0;case"average":return Ht>0&&ge>0?be.pfValue*(Ht+ge)/2:0;case"min":return Ht>0&&ge>0?Ht>ge?be.pfValue*ge:be.pfValue*Ht:0;case"max":return Ht>0&&ge>0?Ht>ge?be.pfValue*Ht:be.pfValue*ge:0;default:return 0}else return be.units==="px"?be.pfValue:0}var dt=V.width.left.value;V.width.left.units==="px"&&V.width.val>0&&(dt=dt*100/V.width.val);var At=V.width.right.value;V.width.right.units==="px"&&V.width.val>0&&(At=At*100/V.width.val);var xt=V.height.top.value;V.height.top.units==="px"&&V.height.val>0&&(xt=xt*100/V.height.val);var Mt=V.height.bottom.value;V.height.bottom.units==="px"&&V.height.val>0&&(Mt=Mt*100/V.height.val);var Dt=at(V.width.val-U.w,dt,At),Bt=Dt.biasDiff,Zt=Dt.biasComplementDiff,Kt=at(V.height.val-U.h,xt,Mt),$t=Kt.biasDiff,ee=Kt.biasComplementDiff;$.autoPadding=ut(U.w,U.h,O.pstyle("padding"),O.pstyle("padding-relative-to").value),$.autoWidth=Math.max(U.w,V.width.val),tt.x=(-Bt+U.x1+U.x2+Zt)/2,$.autoHeight=Math.max(U.h,V.height.val),tt.y=(-$t+U.y1+U.y2+ee)/2}for(var T=0;Tg.x2?A:g.x2,g.y1=Tg.y2?I:g.y2,g.w=g.x2-g.x1,g.h=g.y2-g.y1)},S3=function(g,x){return x==null?g:xp(g,x.x1,x.y1,x.x2,x.y2)},Sk=function(g,x,T){return wp(g,x,T)},GE=function(g,x,T){if(!x.cy().headless()){var A=x._private,I=A.rstyle,O=I.arrowWidth/2,$=x.pstyle(T+"-arrow-shape").value,z,S;if($!=="none"){T==="source"?(z=I.srcX,S=I.srcY):T==="target"?(z=I.tgtX,S=I.tgtY):(z=I.midX,S=I.midY);var V=A.arrowBounds=A.arrowBounds||{},U=V[T]=V[T]||{};U.x1=z-O,U.y1=S-O,U.x2=z+O,U.y2=S+O,U.w=U.x2-U.x1,U.h=U.y2-U.y1,LE(U,1),xp(g,U.x1,U.y1,U.x2,U.y2)}}},GF=function(g,x,T){if(!x.cy().headless()){var A;T?A=T+"-":A="";var I=x._private,O=I.rstyle,$=x.pstyle(A+"label").strValue;if($){var z=x.pstyle("text-halign"),S=x.pstyle("text-valign"),V=Sk(O,"labelWidth",T),U=Sk(O,"labelHeight",T),tt=Sk(O,"labelX",T),at=Sk(O,"labelY",T),ut=x.pstyle(A+"text-margin-x").pfValue,dt=x.pstyle(A+"text-margin-y").pfValue,At=x.isEdge(),xt=x.pstyle(A+"text-rotation"),Mt=x.pstyle("text-outline-width").pfValue,Dt=x.pstyle("text-border-width").pfValue,Bt=Dt/2,Zt=x.pstyle("text-background-padding").pfValue,Kt=2,$t=U,ee=V,Ht=ee/2,ge=$t/2,be,re,Pe,ve;if(At)be=tt-Ht,re=tt+Ht,Pe=at-ge,ve=at+ge;else{switch(z.value){case"left":be=tt-ee,re=tt;break;case"center":be=tt-Ht,re=tt+Ht;break;case"right":be=tt,re=tt+ee;break}switch(S.value){case"top":Pe=at-$t,ve=at;break;case"center":Pe=at-ge,ve=at+ge;break;case"bottom":Pe=at,ve=at+$t;break}}be+=ut-Math.max(Mt,Bt)-Zt-Kt,re+=ut+Math.max(Mt,Bt)+Zt+Kt,Pe+=dt-Math.max(Mt,Bt)-Zt-Kt,ve+=dt+Math.max(Mt,Bt)+Zt+Kt;var fn=T||"main",$e=I.labelBounds,qe=$e[fn]=$e[fn]||{};qe.x1=be,qe.y1=Pe,qe.x2=re,qe.y2=ve,qe.w=re-be,qe.h=ve-Pe;var xn=At&&xt.strValue==="autorotate",Nn=xt.pfValue!=null&&xt.pfValue!==0;if(xn||Nn){var er=xn?Sk(I.rstyle,"labelAngle",T):xt.pfValue,Sn=Math.cos(er),Jn=Math.sin(er),fr=(be+re)/2,Sr=(Pe+ve)/2;if(!At){switch(z.value){case"left":fr=re;break;case"right":fr=be;break}switch(S.value){case"top":Sr=ve;break;case"bottom":Sr=Pe;break}}var wr=function(Fa,Fi){return Fa=Fa-fr,Fi=Fi-Sr,{x:Fa*Sn-Fi*Jn+fr,y:Fa*Jn+Fi*Sn+Sr}},cr=wr(be,Pe),bn=wr(be,ve),Tr=wr(re,Pe),xr=wr(re,ve);be=Math.min(cr.x,bn.x,Tr.x,xr.x),re=Math.max(cr.x,bn.x,Tr.x,xr.x),Pe=Math.min(cr.y,bn.y,Tr.y,xr.y),ve=Math.max(cr.y,bn.y,Tr.y,xr.y)}var fi=fn+"Rot",Ii=$e[fi]=$e[fi]||{};Ii.x1=be,Ii.y1=Pe,Ii.x2=re,Ii.y2=ve,Ii.w=re-be,Ii.h=ve-Pe,xp(g,be,Pe,re,ve),xp(I.labelBounds.all,be,Pe,re,ve)}return g}},PZ=function(g,x){var T=g._private.cy,A=T.styleEnabled(),I=T.headless(),O=zd(),$=g._private,z=g.isNode(),S=g.isEdge(),V,U,tt,at,ut,dt,At=$.rstyle,xt=z&&A?g.pstyle("bounds-expansion").pfValue:[0],Mt=function(Ls){return Ls.pstyle("display").value!=="none"},Dt=!A||Mt(g)&&(!S||Mt(g.source())&&Mt(g.target()));if(Dt){var Bt=0,Zt=0;A&&x.includeOverlays&&(Bt=g.pstyle("overlay-opacity").value,Bt!==0&&(Zt=g.pstyle("overlay-padding").value));var Kt=0,$t=0;A&&x.includeUnderlays&&(Kt=g.pstyle("underlay-opacity").value,Kt!==0&&($t=g.pstyle("underlay-padding").value));var ee=Math.max(Zt,$t),Ht=0,ge=0;if(A&&(Ht=g.pstyle("width").pfValue,ge=Ht/2),z&&x.includeNodes){var be=g.position();ut=be.x,dt=be.y;var re=g.outerWidth(),Pe=re/2,ve=g.outerHeight(),fn=ve/2;V=ut-Pe,U=ut+Pe,tt=dt-fn,at=dt+fn,xp(O,V,tt,U,at)}else if(S&&x.includeEdges)if(A&&!I){var $e=g.pstyle("curve-style").strValue;if(V=Math.min(At.srcX,At.midX,At.tgtX),U=Math.max(At.srcX,At.midX,At.tgtX),tt=Math.min(At.srcY,At.midY,At.tgtY),at=Math.max(At.srcY,At.midY,At.tgtY),V-=ge,U+=ge,tt-=ge,at+=ge,xp(O,V,tt,U,at),$e==="haystack"){var qe=At.haystackPts;if(qe&&qe.length===2){if(V=qe[0].x,tt=qe[0].y,U=qe[1].x,at=qe[1].y,V>U){var xn=V;V=U,U=xn}if(tt>at){var Nn=tt;tt=at,at=Nn}xp(O,V-ge,tt-ge,U+ge,at+ge)}}else if($e==="bezier"||$e==="unbundled-bezier"||$e==="segments"||$e==="taxi"){var er;switch($e){case"bezier":case"unbundled-bezier":er=At.bezierPts;break;case"segments":case"taxi":er=At.linePts;break}if(er!=null)for(var Sn=0;SnU){var bn=V;V=U,U=bn}if(tt>at){var Tr=tt;tt=at,at=Tr}V-=ge,U+=ge,tt-=ge,at+=ge,xp(O,V,tt,U,at)}if(A&&x.includeEdges&&S&&(GE(O,g,"mid-source"),GE(O,g,"mid-target"),GE(O,g,"source"),GE(O,g,"target")),A){var xr=g.pstyle("ghost").value==="yes";if(xr){var fi=g.pstyle("ghost-offset-x").pfValue,Ii=g.pstyle("ghost-offset-y").pfValue;xp(O,O.x1+fi,O.y1+Ii,O.x2+fi,O.y2+Ii)}}var oa=$.bodyBounds=$.bodyBounds||{};VP(oa,O),xL(oa,xt),LE(oa,1),A&&(V=O.x1,U=O.x2,tt=O.y1,at=O.y2,xp(O,V-ee,tt-ee,U+ee,at+ee));var Fa=$.overlayBounds=$.overlayBounds||{};VP(Fa,O),xL(Fa,xt),LE(Fa,1);var Fi=$.labelBounds=$.labelBounds||{};Fi.all!=null?dY(Fi.all):Fi.all=zd(),A&&x.includeLabels&&(x.includeMainLabels&&GF(O,g,null),S&&(x.includeSourceLabels&&GF(O,g,"source"),x.includeTargetLabels&&GF(O,g,"target")))}return O.x1=T0(O.x1),O.y1=T0(O.y1),O.x2=T0(O.x2),O.y2=T0(O.y2),O.w=T0(O.x2-O.x1),O.h=T0(O.y2-O.y1),O.w>0&&O.h>0&&Dt&&(xL(O,xt),LE(O,1)),O},UF=function(g){var x=0,T=function(O){return(O?1:0)<0&&arguments[0]!==void 0?arguments[0]:YZ,g=arguments.length>1?arguments[1]:void 0,x=0;x=0;$--)O($);return this},ym.removeAllListeners=function(){return this.removeListener("*")},ym.emit=ym.trigger=function(y,g,x){var T=this.listeners,A=T.length;return this.emitting++,yt(g)||(g=[g]),XZ(this,function(I,O){x!=null&&(T=[{event:O.event,type:O.type,namespace:O.namespace,callback:x}],A=T.length);for(var $=function(V){var U=T[V];if(U.type===O.type&&(!U.namespace||U.namespace===O.namespace||U.namespace===KZ)&&I.eventMatches(I.context,U,O)){var tt=[O];g!=null&&$P(tt,g),I.beforeEmit(I.context,U,O),U.conf&&U.conf.one&&(I.listeners=I.listeners.filter(function(dt){return dt!==U}));var at=I.callbackContext(I.context,U,O),ut=U.callback.apply(at,tt);I.afterEmit(I.context,U,O),ut===!1&&(O.stopPropagation(),O.preventDefault())}},z=0;z1&&!O){var $=this.length-1,z=this[$],S=z._private.data.id;this[$]=void 0,this[g]=z,I.set(S,{ele:z,index:g})}return this.length--,this},unmergeOne:function(g){g=g[0];var x=this._private,T=g._private.data.id,A=x.map,I=A.get(T);if(!I)return this;var O=I.index;return this.unmergeAt(O),this},unmerge:function(g){var x=this._private.cy;if(!g)return this;if(g&&Tt(g)){var T=g;g=x.mutableElements().filter(T)}for(var A=0;A=0;x--){var T=this[x];g(T)&&this.unmergeAt(x)}return this},map:function(g,x){for(var T=[],A=this,I=0;IT&&(T=z,A=$)}return{value:T,ele:A}},min:function(g,x){for(var T=1/0,A,I=this,O=0;O=0&&I"u"?"undefined":f(Symbol))!=g&&f(Symbol.iterator)!=g;x&&(YE[Symbol.iterator]=function(){var T=this,A={value:void 0,done:!1},I=0,O=this.length;return b({next:function(){return I1&&arguments[1]!==void 0?arguments[1]:!0,T=this[0],A=T.cy();if(A.styleEnabled()&&T){this.cleanStyle();var I=T._private.style[g];return I??(x?A.style().getDefaultProperty(g):null)}},numericStyle:function(g){var x=this[0];if(x.cy().styleEnabled()&&x){var T=x.pstyle(g);return T.pfValue!==void 0?T.pfValue:T.value}},numericStyleUnits:function(g){var x=this[0];if(x.cy().styleEnabled()&&x)return x.pstyle(g).units},renderedStyle:function(g){var x=this.cy();if(!x.styleEnabled())return this;var T=this[0];if(T)return x.style().getRenderedStyle(T,g)},style:function(g,x){var T=this.cy();if(!T.styleEnabled())return this;var A=!1,I=T.style();if(ht(g)){var O=g;I.applyBypass(this,O,A),this.emitAndNotify("style")}else if(Tt(g))if(x===void 0){var $=this[0];return $?I.getStylePropertyValue($,g):void 0}else I.applyBypass(this,g,x,A),this.emitAndNotify("style");else if(g===void 0){var z=this[0];return z?I.getRawStyle(z):void 0}return this},removeStyle:function(g){var x=this.cy();if(!x.styleEnabled())return this;var T=!1,A=x.style(),I=this;if(g===void 0)for(var O=0;O0&&g.push(V[0]),g.push($[0])}return this.spawn(g,!0).filter(y)},"neighborhood"),closedNeighborhood:function(g){return this.neighborhood().add(this).filter(g)},openNeighborhood:function(g){return this.neighborhood(g)}}),m1.neighbourhood=m1.neighborhood,m1.closedNeighbourhood=m1.closedNeighborhood,m1.openNeighbourhood=m1.openNeighborhood,Ke(m1,{source:ud(function(g){var x=this[0],T;return x&&(T=x._private.source||x.cy().collection()),T&&g?T.filter(g):T},"source"),target:ud(function(g){var x=this[0],T;return x&&(T=x._private.target||x.cy().collection()),T&&g?T.filter(g):T},"target"),sources:fB({attr:"source"}),targets:fB({attr:"target"})});function fB(y){return function(x){for(var T=[],A=0;A0);return O},component:function(){var g=this[0];return g.cy().mutableElements().components(g)[0]}}),m1.componentsOf=m1.components;var Gf=function(g,x){var T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,A=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(g===void 0){Ec("A collection must have a reference to the core");return}var I=new j2,O=!1;if(!x)x=[];else if(x.length>0&&ht(x[0])&&!_t(x[0])){O=!0;for(var $=[],z=new $5,S=0,V=x.length;S0&&arguments[0]!==void 0?arguments[0]:!0,g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,x=this,T=x.cy(),A=T._private,I=[],O=[],$,z=0,S=x.length;z0){for(var Nn=$.length===x.length?x:new Gf(T,$),er=0;er0&&arguments[0]!==void 0?arguments[0]:!0,g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,x=this,T=[],A={},I=x._private.cy;function O(ve){for(var fn=ve._private.edges,$e=0;$e0&&(y?be.emitAndNotify("remove"):g&&be.emit("remove"));for(var re=0;re0?re=ve:be=ve;while(Math.abs(Pe)>O&&++fn<$);return ve}function Zt(ge){for(var be=0,re=1,Pe=z-1;re!==Pe&&tt[re]<=ge;++re)be+=S;--re;var ve=(ge-tt[re])/(tt[re+1]-tt[re]),fn=be+ve*S,$e=xt(fn,y,x);return $e>=I?Mt(ge,fn):$e===0?fn:Bt(ge,be,be+S)}var Kt=!1;function $t(){Kt=!0,(y!==g||x!==T)&&Dt()}var ee=function(be){return Kt||$t(),y===g&&x===T?be:be===0?0:be===1?1:At(Zt(be),g,T)};ee.getControlPoints=function(){return[{x:y,y:g},{x,y:T}]};var Ht="generateBezier("+[y,g,x,T]+")";return ee.toString=function(){return Ht},ee}/*! Runge-Kutta spring physics function generator. Adapted from Framer.js, copyright Koen Bok. MIT License: http://en.wikipedia.org/wiki/MIT_License */var oJ=function(){function y(T){return-T.tension*T.x-T.friction*T.v}function g(T,A,I){var O={x:T.x+I.dx*A,v:T.v+I.dv*A,tension:T.tension,friction:T.friction};return{dx:O.v,dv:y(O)}}function x(T,A){var I={dx:T.v,dv:y(T)},O=g(T,A*.5,I),$=g(T,A*.5,O),z=g(T,A,$),S=1/6*(I.dx+2*(O.dx+$.dx)+z.dx),V=1/6*(I.dv+2*(O.dv+$.dv)+z.dv);return T.x=T.x+S*A,T.v=T.v+V*A,T}return function T(A,I,O){var $={x:-1,v:0,tension:null,friction:null},z=[0],S=0,V=1/1e4,U=16/1e3,tt,at,ut;for(A=parseFloat(A)||500,I=parseFloat(I)||20,O=O||null,$.tension=A,$.friction=I,tt=O!==null,tt?(S=T(A,I),at=S/O*U):at=U;ut=x(ut||$,at),z.push(1+ut.x),S+=16,Math.abs(ut.x)>V&&Math.abs(ut.v)>V;);return tt?function(dt){return z[dt*(z.length-1)|0]}:S}}(),Eu=function(g,x,T,A){var I=aJ(g,x,T,A);return function(O,$,z){return O+($-O)*I(z)}},JE={linear:function(g,x,T){return g+(x-g)*T},ease:Eu(.25,.1,.25,1),"ease-in":Eu(.42,0,1,1),"ease-out":Eu(0,0,.58,1),"ease-in-out":Eu(.42,0,.58,1),"ease-in-sine":Eu(.47,0,.745,.715),"ease-out-sine":Eu(.39,.575,.565,1),"ease-in-out-sine":Eu(.445,.05,.55,.95),"ease-in-quad":Eu(.55,.085,.68,.53),"ease-out-quad":Eu(.25,.46,.45,.94),"ease-in-out-quad":Eu(.455,.03,.515,.955),"ease-in-cubic":Eu(.55,.055,.675,.19),"ease-out-cubic":Eu(.215,.61,.355,1),"ease-in-out-cubic":Eu(.645,.045,.355,1),"ease-in-quart":Eu(.895,.03,.685,.22),"ease-out-quart":Eu(.165,.84,.44,1),"ease-in-out-quart":Eu(.77,0,.175,1),"ease-in-quint":Eu(.755,.05,.855,.06),"ease-out-quint":Eu(.23,1,.32,1),"ease-in-out-quint":Eu(.86,0,.07,1),"ease-in-expo":Eu(.95,.05,.795,.035),"ease-out-expo":Eu(.19,1,.22,1),"ease-in-out-expo":Eu(1,0,0,1),"ease-in-circ":Eu(.6,.04,.98,.335),"ease-out-circ":Eu(.075,.82,.165,1),"ease-in-out-circ":Eu(.785,.135,.15,.86),spring:function(g,x,T){if(T===0)return JE.linear;var A=oJ(g,x,T);return function(I,O,$){return I+(O-I)*A($)}},"cubic-bezier":Eu};function pB(y,g,x,T,A){if(T===1||g===x)return x;var I=A(g,x,T);return y==null||((y.roundValue||y.color)&&(I=Math.round(I)),y.min!==void 0&&(I=Math.max(I,y.min)),y.max!==void 0&&(I=Math.min(I,y.max))),I}function bB(y,g){return y.pfValue!=null||y.value!=null?y.pfValue!=null&&(g==null||g.type.units!=="%")?y.pfValue:y.value:y}function i6(y,g,x,T,A){var I=A!=null?A.type:null;x<0?x=0:x>1&&(x=1);var O=bB(y,A),$=bB(g,A);if(rt(O)&&rt($))return pB(I,O,$,x,T);if(yt(O)&&yt($)){for(var z=[],S=0;S<$.length;S++){var V=O[S],U=$[S];if(V!=null&&U!=null){var tt=pB(I,V,U,x,T);z.push(tt)}else z.push(U)}return z}}function cJ(y,g,x,T){var A=!T,I=y._private,O=g._private,$=O.easing,z=O.startTime,S=T?y:y.cy(),V=S.style();if(!O.easingImpl)if($==null)O.easingImpl=JE.linear;else{var U;if(Tt($)){var tt=V.parse("transition-timing-function",$);U=tt.value}else U=$;var at,ut;Tt(U)?(at=U,ut=[]):(at=U[1],ut=U.slice(2).map(function(Nn){return+Nn})),ut.length>0?(at==="spring"&&ut.push(O.duration),O.easingImpl=JE[at].apply(null,ut)):O.easingImpl=JE[at]}var dt=O.easingImpl,At;if(O.duration===0?At=1:At=(x-z)/O.duration,O.applying&&(At=O.progress),At<0?At=0:At>1&&(At=1),O.delay==null){var xt=O.startPosition,Mt=O.position;if(Mt&&A&&!y.locked()){var Dt={};Ik(xt.x,Mt.x)&&(Dt.x=i6(xt.x,Mt.x,At,dt)),Ik(xt.y,Mt.y)&&(Dt.y=i6(xt.y,Mt.y,At,dt)),y.position(Dt)}var Bt=O.startPan,Zt=O.pan,Kt=I.pan,$t=Zt!=null&&T;$t&&(Ik(Bt.x,Zt.x)&&(Kt.x=i6(Bt.x,Zt.x,At,dt)),Ik(Bt.y,Zt.y)&&(Kt.y=i6(Bt.y,Zt.y,At,dt)),y.emit("pan"));var ee=O.startZoom,Ht=O.zoom,ge=Ht!=null&&T;ge&&(Ik(ee,Ht)&&(I.zoom=wk(I.minZoom,i6(ee,Ht,At,dt),I.maxZoom)),y.emit("zoom")),($t||ge)&&y.emit("viewport");var be=O.style;if(be&&be.length>0&&A){for(var re=0;re=0;$t--){var ee=Kt[$t];ee()}Kt.splice(0,Kt.length)},Mt=at.length-1;Mt>=0;Mt--){var Dt=at[Mt],Bt=Dt._private;if(Bt.stopped){at.splice(Mt,1),Bt.hooked=!1,Bt.playing=!1,Bt.started=!1,xt(Bt.frames);continue}!Bt.playing&&!Bt.applying||(Bt.playing&&Bt.applying&&(Bt.applying=!1),Bt.started||uJ(V,Dt,y),cJ(V,Dt,y,U),Bt.applying&&(Bt.applying=!1),xt(Bt.frames),Bt.step!=null&&Bt.step(y),Dt.completed()&&(at.splice(Mt,1),Bt.hooked=!1,Bt.playing=!1,Bt.started=!1,xt(Bt.completes)),dt=!0)}return!U&&at.length===0&&ut.length===0&&T.push(V),dt}for(var I=!1,O=0;O0?g.notify("draw",x):g.notify("draw")),x.unmerge(T),g.emit("step")}var lJ={animate:jc.animate(),animation:jc.animation(),animated:jc.animated(),clearQueue:jc.clearQueue(),delay:jc.delay(),delayAnimation:jc.delayAnimation(),stop:jc.stop(),addToAnimationPool:function(g){var x=this;x.styleEnabled()&&x._private.aniEles.merge(g)},stopAnimationLoop:function(){this._private.animationsRunning=!1},startAnimationLoop:function(){var g=this;if(g._private.animationsRunning=!0,!g.styleEnabled())return;function x(){g._private.animationsRunning&&Ma(function(I){vB(I,g),x()})}var T=g.renderer();T&&T.beforeRender?T.beforeRender(function(I,O){vB(O,g)},T.beforeRenderPriorities.animations):x()}},hJ={qualifierCompare:function(g,x){return g==null||x==null?g==null&&x==null:g.sameText(x)},eventMatches:function(g,x,T){var A=x.qualifier;return A!=null?g!==T.target&&_t(T.target)&&A.matches(T.target):!0},addEventFields:function(g,x){x.cy=g,x.target=g},callbackContext:function(g,x,T){return x.qualifier!=null?T.target:g}},tT=function(g){return Tt(g)?new wm(g):g},wB={createEmitter:function(){var g=this._private;return g.emitter||(g.emitter=new WE(hJ,this)),this},emitter:function(){return this._private.emitter},on:function(g,x,T){return this.emitter().on(g,tT(x),T),this},removeListener:function(g,x,T){return this.emitter().removeListener(g,tT(x),T),this},removeAllListeners:function(){return this.emitter().removeAllListeners(),this},one:function(g,x,T){return this.emitter().one(g,tT(x),T),this},once:function(g,x,T){return this.emitter().one(g,tT(x),T),this},emit:function(g,x){return this.emitter().emit(g,x),this},emitAndNotify:function(g,x){return this.emit(g),this.notify(g,x),this}};jc.eventAliasesOn(wB);var $L={png:function(g){var x=this._private.renderer;return g=g||{},x.png(g)},jpg:function(g){var x=this._private.renderer;return g=g||{},g.bg=g.bg||"#fff",x.jpg(g)}};$L.jpeg=$L.jpg;var eT={layout:function(g){var x=this;if(g==null){Ec("Layout options must be specified to make a layout");return}if(g.name==null){Ec("A `name` must be specified to make a layout");return}var T=g.name,A=x.extension("layout",T);if(A==null){Ec("No such layout `"+T+"` found. Did you forget to import it and `cytoscape.use()` it?");return}var I;Tt(g.eles)?I=x.$(g.eles):I=g.eles!=null?g.eles:x.$();var O=new A(Ke({},g,{cy:x,eles:I}));return O}};eT.createLayout=eT.makeLayout=eT.layout;var fJ={notify:function(g,x){var T=this._private;if(this.batching()){T.batchNotifications=T.batchNotifications||{};var A=T.batchNotifications[g]=T.batchNotifications[g]||this.collection();x!=null&&A.merge(x);return}if(T.notificationsEnabled){var I=this.renderer();this.destroyed()||!I||I.notify(g,x)}},notifications:function(g){var x=this._private;return g===void 0?x.notificationsEnabled:(x.notificationsEnabled=!!g,this)},noNotifications:function(g){this.notifications(!1),g(),this.notifications(!0)},batching:function(){return this._private.batchCount>0},startBatch:function(){var g=this._private;return g.batchCount==null&&(g.batchCount=0),g.batchCount===0&&(g.batchStyleEles=this.collection(),g.batchNotifications={}),g.batchCount++,this},endBatch:function(){var g=this._private;if(g.batchCount===0)return this;if(g.batchCount--,g.batchCount===0){g.batchStyleEles.updateStyle();var x=this.renderer();Object.keys(g.batchNotifications).forEach(function(T){var A=g.batchNotifications[T];A.empty()?x.notify(T):x.notify(T,A)})}return this},batch:function(g){return this.startBatch(),g(),this.endBatch(),this},batchData:function(g){var x=this;return this.batch(function(){for(var T=Object.keys(g),A=0;A0;)x.removeChild(x.childNodes[0]);g._private.renderer=null,g.mutableElements().forEach(function(T){var A=T._private;A.rscratch={},A.rstyle={},A.animation.current=[],A.animation.queue=[]})},onRender:function(g){return this.on("render",g)},offRender:function(g){return this.off("render",g)}};zL.invalidateDimensions=zL.resize;var nT={collection:function(g,x){return Tt(g)?this.$(g):lt(g)?g.collection():yt(g)?(x||(x={}),new Gf(this,g,x.unique,x.removed)):new Gf(this)},nodes:function(g){var x=this.$(function(T){return T.isNode()});return g?x.filter(g):x},edges:function(g){var x=this.$(function(T){return T.isEdge()});return g?x.filter(g):x},$:function(g){var x=this._private.elements;return g?x.filter(g):x.spawnSelf()},mutableElements:function(){return this._private.elements}};nT.elements=nT.filter=nT.$;var y1={},Ok="t",gJ="f";y1.apply=function(y){for(var g=this,x=g._private,T=x.cy,A=T.collection(),I=0;I0;if(tt||U&&at){var ut=void 0;tt&&at||tt?ut=S.properties:at&&(ut=S.mappedProperties);for(var dt=0;dt1&&(Bt=1),$.color){var Kt=T.valueMin[0],$t=T.valueMax[0],ee=T.valueMin[1],Ht=T.valueMax[1],ge=T.valueMin[2],be=T.valueMax[2],re=T.valueMin[3]==null?1:T.valueMin[3],Pe=T.valueMax[3]==null?1:T.valueMax[3],ve=[Math.round(Kt+($t-Kt)*Bt),Math.round(ee+(Ht-ee)*Bt),Math.round(ge+(be-ge)*Bt),Math.round(re+(Pe-re)*Bt)];I={bypass:T.bypass,name:T.name,value:ve,strValue:"rgb("+ve[0]+", "+ve[1]+", "+ve[2]+")"}}else if($.number){var fn=T.valueMin+(T.valueMax-T.valueMin)*Bt;I=this.parse(T.name,fn,T.bypass,tt)}else return!1;if(!I)return dt(),!1;I.mapping=T,T=I;break}case O.data:{for(var $e=T.field.split("."),qe=U.data,xn=0;xn<$e.length&&qe;xn++){var Nn=$e[xn];qe=qe[Nn]}if(qe!=null&&(I=this.parse(T.name,qe,T.bypass,tt)),!I)return dt(),!1;I.mapping=T,T=I;break}case O.fn:{var er=T.value,Sn=T.fnValue!=null?T.fnValue:er(y);if(T.prevFnValue=Sn,Sn==null)return Wo("Custom function mappers may not return null (i.e. `"+T.name+"` for ele `"+y.id()+"` is null)"),!1;if(I=this.parse(T.name,Sn,T.bypass,tt),!I)return Wo("Custom function mappers may not return invalid values for the property type (i.e. `"+T.name+"` for ele `"+y.id()+"` is invalid)"),!1;I.mapping=oh(T),T=I;break}case void 0:break;default:return!1}return z?(V?T.bypassed=S.bypassed:T.bypassed=S,A[T.name]=T):V?S.bypassed=T:A[T.name]=T,ut(),!0},y1.cleanElements=function(y,g){for(var x=0;x0&&I>0){for(var $={},z=!1,S=0;S0?y.delayAnimation(O).play().promise().then(Dt):Dt()}).then(function(){return y.animation({style:$,duration:I,easing:y.pstyle("transition-timing-function").value,queue:!1}).play().promise()}).then(function(){x.removeBypasses(y,A),y.emitAndNotify("style"),T.transitioning=!1})}else T.transitioning&&(this.removeBypasses(y,A),y.emitAndNotify("style"),T.transitioning=!1)},y1.checkTrigger=function(y,g,x,T,A,I){var O=this.properties[g],$=A(O);$!=null&&$(x,T)&&I(O)},y1.checkZOrderTrigger=function(y,g,x,T){var A=this;this.checkTrigger(y,g,x,T,function(I){return I.triggersZOrder},function(){A._private.cy.notify("zorder",y)})},y1.checkBoundsTrigger=function(y,g,x,T){this.checkTrigger(y,g,x,T,function(A){return A.triggersBounds},function(A){y.dirtyCompoundBoundsCache(),y.dirtyBoundingBoxCache(),A.triggersBoundsOfParallelBeziers&&(g==="curve-style"&&(x==="bezier"||T==="bezier")||g==="display"&&(x==="none"||T==="none"))&&y.parallelEdges().forEach(function(I){I.isBundledBezier()&&I.dirtyBoundingBoxCache()})})},y1.checkTriggers=function(y,g,x,T){y.dirtyStyleCache(),this.checkZOrderTrigger(y,g,x,T),this.checkBoundsTrigger(y,g,x,T)};var Nk={};Nk.applyBypass=function(y,g,x,T){var A=this,I=[],O=!0;if(g==="*"||g==="**"){if(x!==void 0)for(var $=0;$A.length?T=T.substr(A.length):T=""}function z(){I.length>O.length?I=I.substr(O.length):I=""}for(;;){var S=T.match(/^\s*$/);if(S)break;var V=T.match(/^\s*((?:.|\s)+?)\s*\{((?:.|\s)+?)\}/);if(!V){Wo("Halting stylesheet parsing: String stylesheet contains more to parse but no selector and block found in: "+T);break}A=V[0];var U=V[1];if(U!=="core"){var tt=new wm(U);if(tt.invalid){Wo("Skipping parsing of block: Invalid selector found in string stylesheet: "+U),$();continue}}var at=V[2],ut=!1;I=at;for(var dt=[];;){var At=I.match(/^\s*$/);if(At)break;var xt=I.match(/^\s*(.+?)\s*:\s*(.+?)(?:\s*;|\s*$)/);if(!xt){Wo("Skipping parsing of block: Invalid formatting of style property and value definitions found in:"+at),ut=!0;break}O=xt[0];var Mt=xt[1],Dt=xt[2],Bt=g.properties[Mt];if(!Bt){Wo("Skipping property: Invalid property name in: "+O),z();continue}var Zt=x.parse(Mt,Dt);if(!Zt){Wo("Skipping property: Invalid property definition in: "+O),z();continue}dt.push({name:Mt,val:Dt}),z()}if(ut){$();break}x.selector(U);for(var Kt=0;Kt=7&&g[0]==="d"&&(V=new RegExp($.data.regex).exec(g))){if(x)return!1;var tt=$.data;return{name:y,value:V,strValue:""+g,mapped:tt,field:V[1],bypass:x}}else if(g.length>=10&&g[0]==="m"&&(U=new RegExp($.mapData.regex).exec(g))){if(x||S.multiple)return!1;var at=$.mapData;if(!(S.color||S.number))return!1;var ut=this.parse(y,U[4]);if(!ut||ut.mapped)return!1;var dt=this.parse(y,U[5]);if(!dt||dt.mapped)return!1;if(ut.pfValue===dt.pfValue||ut.strValue===dt.strValue)return Wo("`"+y+": "+g+"` is not a valid mapper because the output range is zero; converting to `"+y+": "+ut.strValue+"`"),this.parse(y,ut.strValue);if(S.color){var At=ut.value,xt=dt.value,Mt=At[0]===xt[0]&&At[1]===xt[1]&&At[2]===xt[2]&&(At[3]===xt[3]||(At[3]==null||At[3]===1)&&(xt[3]==null||xt[3]===1));if(Mt)return!1}return{name:y,value:U,strValue:""+g,mapped:at,field:U[1],fieldMin:parseFloat(U[2]),fieldMax:parseFloat(U[3]),valueMin:ut.value,valueMax:dt.value,bypass:x}}}if(S.multiple&&T!=="multiple"){var Dt;if(z?Dt=g.split(/\s+/):yt(g)?Dt=g:Dt=[g],S.evenMultiple&&Dt.length%2!==0)return null;for(var Bt=[],Zt=[],Kt=[],$t="",ee=!1,Ht=0;Ht0?" ":"")+ge.strValue}return S.validate&&!S.validate(Bt,Zt)?null:S.singleEnum&&ee?Bt.length===1&&Tt(Bt[0])?{name:y,value:Bt[0],strValue:Bt[0],bypass:x}:null:{name:y,value:Bt,pfValue:Kt,strValue:$t,bypass:x,units:Zt}}var be=function(){for(var xr=0;xrS.max||S.strictMax&&g===S.max))return null;var $e={name:y,value:g,strValue:""+g+(re||""),units:re,bypass:x};return S.unitless||re!=="px"&&re!=="em"?$e.pfValue=g:$e.pfValue=re==="px"||!re?g:this.getEmSizeInPixels()*g,(re==="ms"||re==="s")&&($e.pfValue=re==="ms"?g:1e3*g),(re==="deg"||re==="rad")&&($e.pfValue=re==="rad"?g:uY(g)),re==="%"&&($e.pfValue=g/100),$e}else if(S.propList){var qe=[],xn=""+g;if(xn!=="none"){for(var Nn=xn.split(/\s*,\s*|\s+/),er=0;er0&&$>0&&!isNaN(T.w)&&!isNaN(T.h)&&T.w>0&&T.h>0){z=Math.min((O-2*x)/T.w,($-2*x)/T.h),z=z>this._private.maxZoom?this._private.maxZoom:z,z=z=T.minZoom&&(T.maxZoom=x),this},minZoom:function(g){return g===void 0?this._private.minZoom:this.zoomRange({min:g})},maxZoom:function(g){return g===void 0?this._private.maxZoom:this.zoomRange({max:g})},getZoomedViewport:function(g){var x=this._private,T=x.pan,A=x.zoom,I,O,$=!1;if(x.zoomingEnabled||($=!0),rt(g)?O=g:ht(g)&&(O=g.level,g.position!=null?I=SE(g.position,A,T):g.renderedPosition!=null&&(I=g.renderedPosition),I!=null&&!x.panningEnabled&&($=!0)),O=O>x.maxZoom?x.maxZoom:O,O=Ox.maxZoom||!x.zoomingEnabled?O=!0:(x.zoom=z,I.push("zoom"))}if(A&&(!O||!g.cancelOnFailedZoom)&&x.panningEnabled){var S=g.pan;rt(S.x)&&(x.pan.x=S.x,$=!1),rt(S.y)&&(x.pan.y=S.y,$=!1),$||I.push("pan")}return I.length>0&&(I.push("viewport"),this.emit(I.join(" ")),this.notify("viewport")),this},center:function(g){var x=this.getCenterPan(g);return x&&(this._private.pan=x,this.emit("pan viewport"),this.notify("viewport")),this},getCenterPan:function(g,x){if(this._private.panningEnabled){if(Tt(g)){var T=g;g=this.mutableElements().filter(T)}else lt(g)||(g=this.mutableElements());if(g.length!==0){var A=g.boundingBox(),I=this.width(),O=this.height();x=x===void 0?this._private.zoom:x;var $={x:(I-x*(A.x1+A.x2))/2,y:(O-x*(A.y1+A.y2))/2};return $}}},reset:function(){return!this._private.panningEnabled||!this._private.zoomingEnabled?this:(this.viewport({pan:{x:0,y:0},zoom:1}),this)},invalidateSize:function(){this._private.sizeCache=null},size:function(){var g=this._private,x=g.container;return g.sizeCache=g.sizeCache||(x?function(){var T=R.getComputedStyle(x),A=function(O){return parseFloat(T.getPropertyValue(O))};return{width:x.clientWidth-A("padding-left")-A("padding-right"),height:x.clientHeight-A("padding-top")-A("padding-bottom")}}():{width:1,height:1})},width:function(){return this.size().width},height:function(){return this.size().height},extent:function(){var g=this._private.pan,x=this._private.zoom,T=this.renderedExtent(),A={x1:(T.x1-g.x)/x,x2:(T.x2-g.x)/x,y1:(T.y1-g.y)/x,y2:(T.y2-g.y)/x};return A.w=A.x2-A.x1,A.h=A.y2-A.y1,A},renderedExtent:function(){var g=this.width(),x=this.height();return{x1:0,y1:0,x2:g,y2:x,w:g,h:x}},multiClickDebounceTime:function(g){if(g)this._private.multiClickDebounceTime=g;else return this._private.multiClickDebounceTime;return this}};A3.centre=A3.center,A3.autolockNodes=A3.autolock,A3.autoungrabifyNodes=A3.autoungrabify;var Pk={data:jc.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeData:jc.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),scratch:jc.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:jc.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0})};Pk.attr=Pk.data,Pk.removeAttr=Pk.removeData;var Fk=function(g){var x=this;g=Ke({},g);var T=g.container;T&&!gt(T)&>(T[0])&&(T=T[0]);var A=T?T._cyreg:null;A=A||{},A&&A.cy&&(A.cy.destroy(),A={});var I=A.readies=A.readies||[];T&&(T._cyreg=A),A.cy=x;var O=R!==void 0&&T!==void 0&&!g.headless,$=g;$.layout=Ke({name:O?"grid":"null"},$.layout),$.renderer=Ke({name:O?"canvas":"null"},$.renderer);var z=function(ut,dt,At){return dt!==void 0?dt:At!==void 0?At:ut},S=this._private={container:T,ready:!1,options:$,elements:new Gf(this),listeners:[],aniEles:new Gf(this),data:$.data||{},scratch:{},layout:null,renderer:null,destroyed:!1,notificationsEnabled:!0,minZoom:1e-50,maxZoom:1e50,zoomingEnabled:z(!0,$.zoomingEnabled),userZoomingEnabled:z(!0,$.userZoomingEnabled),panningEnabled:z(!0,$.panningEnabled),userPanningEnabled:z(!0,$.userPanningEnabled),boxSelectionEnabled:z(!0,$.boxSelectionEnabled),autolock:z(!1,$.autolock,$.autolockNodes),autoungrabify:z(!1,$.autoungrabify,$.autoungrabifyNodes),autounselectify:z(!1,$.autounselectify),styleEnabled:$.styleEnabled===void 0?O:$.styleEnabled,zoom:rt($.zoom)?$.zoom:1,pan:{x:ht($.pan)&&rt($.pan.x)?$.pan.x:0,y:ht($.pan)&&rt($.pan.y)?$.pan.y:0},animation:{current:[],queue:[]},hasCompoundNodes:!1,multiClickDebounceTime:z(250,$.multiClickDebounceTime)};this.createEmitter(),this.selectionType($.selectionType),this.zoomRange({min:$.minZoom,max:$.maxZoom});var V=function(ut,dt){var At=ut.some(It);if(At)return W5.all(ut).then(dt);dt(ut)};S.styleEnabled&&x.setStyle([]);var U=Ke({},$,$.renderer);x.initRenderer(U);var tt=function(ut,dt,At){x.notifications(!1);var xt=x.mutableElements();xt.length>0&&xt.remove(),ut!=null&&(ht(ut)||yt(ut))&&x.add(ut),x.one("layoutready",function(Dt){x.notifications(!0),x.emit(Dt),x.one("load",dt),x.emitAndNotify("load")}).one("layoutstop",function(){x.one("done",At),x.emit("done")});var Mt=Ke({},x._private.options.layout);Mt.eles=x.elements(),x.layout(Mt).run()};V([$.style,$.elements],function(at){var ut=at[0],dt=at[1];S.styleEnabled&&x.style().append(ut),tt(dt,function(){x.startAnimationLoop(),S.ready=!0,kt($.ready)&&x.on("ready",$.ready);for(var At=0;At0,z=zd(g.boundingBox?g.boundingBox:{x1:0,y1:0,w:x.width(),h:x.height()}),S;if(lt(g.roots))S=g.roots;else if(yt(g.roots)){for(var V=[],U=0;U0;){var fn=ve(),$e=ge(fn,re);if($e)fn.outgoers().filter(function(Fi){return Fi.isNode()&&T.has(Fi)}).forEach(Pe);else if($e===null){Wo("Detected double maximal shift for node `"+fn.id()+"`. Bailing maximal adjustment due to cycle. Use `options.maximal: true` only on DAGs.");break}}}Ht();var qe=0;if(g.avoidOverlap)for(var xn=0;xn0&&xt[0].length<=3?ea/2:0),Hn=2*Math.PI/xt[es].length*Ri;return es===0&&xt[0].length===1&&(Qt=1),{x:Ii.x+Qt*Math.cos(Hn),y:Ii.y+Qt*Math.sin(Hn)}}else{var Fr={x:Ii.x+(Ri+1-(as+1)/2)*no,y:(es+1)*ca};return Fr}};return T.nodes().layoutPositions(this,g,Fa),this};var wJ={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,radius:void 0,startAngle:3/2*Math.PI,sweep:void 0,clockwise:!0,sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(g,x){return!0},ready:void 0,stop:void 0,transform:function(g,x){return x}};function aT(y){this.options=Ke({},wJ,y)}aT.prototype.run=function(){var y=this.options,g=y,x=y.cy,T=g.eles,A=g.counterclockwise!==void 0?!g.counterclockwise:g.clockwise,I=T.nodes().not(":parent");g.sort&&(I=I.sort(g.sort));for(var O=zd(g.boundingBox?g.boundingBox:{x1:0,y1:0,w:x.width(),h:x.height()}),$={x:O.x1+O.w/2,y:O.y1+O.h/2},z=g.sweep===void 0?2*Math.PI-2*Math.PI/I.length:g.sweep,S=z/Math.max(1,I.length-1),V,U=0,tt=0;tt1&&g.avoidOverlap){U*=1.75;var xt=Math.cos(S)-Math.cos(0),Mt=Math.sin(S)-Math.sin(0),Dt=Math.sqrt(U*U/(xt*xt+Mt*Mt));V=Math.max(Dt,V)}var Bt=function(Kt,$t){var ee=g.startAngle+$t*S*(A?1:-1),Ht=V*Math.cos(ee),ge=V*Math.sin(ee),be={x:$.x+Ht,y:$.y+ge};return be};return T.nodes().layoutPositions(this,g,Bt),this};var mJ={fit:!0,padding:30,startAngle:3/2*Math.PI,sweep:void 0,clockwise:!0,equidistant:!1,minNodeSpacing:10,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,height:void 0,width:void 0,spacingFactor:void 0,concentric:function(g){return g.degree()},levelWidth:function(g){return g.maxDegree()/4},animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(g,x){return!0},ready:void 0,stop:void 0,transform:function(g,x){return x}};function yB(y){this.options=Ke({},mJ,y)}yB.prototype.run=function(){for(var y=this.options,g=y,x=g.counterclockwise!==void 0?!g.counterclockwise:g.clockwise,T=y.cy,A=g.eles,I=A.nodes().not(":parent"),O=zd(g.boundingBox?g.boundingBox:{x1:0,y1:0,w:T.width(),h:T.height()}),$={x:O.x1+O.w/2,y:O.y1+O.h/2},z=[],S=0,V=0;V0){var Zt=Math.abs(Mt[0].value-Bt.value);Zt>=At&&(Mt=[],xt.push(Mt))}Mt.push(Bt)}var Kt=S+g.minNodeSpacing;if(!g.avoidOverlap){var $t=xt.length>0&&xt[0].length>1,ee=Math.min(O.w,O.h)/2-Kt,Ht=ee/(xt.length+$t?1:0);Kt=Math.min(Kt,Ht)}for(var ge=0,be=0;be1&&g.avoidOverlap){var fn=Math.cos(ve)-Math.cos(0),$e=Math.sin(ve)-Math.sin(0),qe=Math.sqrt(Kt*Kt/(fn*fn+$e*$e));ge=Math.max(qe,ge)}re.r=ge,ge+=Kt}if(g.equidistant){for(var xn=0,Nn=0,er=0;er=y.numIter||(SJ(T,y),T.temperature=T.temperature*y.coolingFactor,T.temperature=y.animationThreshold&&I(),Ma(U)}};V()}else{for(;S;)S=O(z),z++;EB(T,y),$()}return this},oT.prototype.stop=function(){return this.stopped=!0,this.thread&&this.thread.stop(),this.emit("layoutstop"),this},oT.prototype.destroy=function(){return this.thread&&this.thread.stop(),this};var xJ=function(g,x,T){for(var A=T.eles.edges(),I=T.eles.nodes(),O={isCompound:g.hasCompoundNodes(),layoutNodes:[],idToIndex:{},nodeSize:I.size(),graphSet:[],indexToGraph:[],layoutEdges:[],edgeSize:A.size(),temperature:T.initialTemp,clientWidth:g.width(),clientHeight:g.width(),boundingBox:zd(T.boundingBox?T.boundingBox:{x1:0,y1:0,w:g.width(),h:g.height()})},$=T.eles.components(),z={},S=0;S<$.length;S++)for(var V=$[S],U=0;U0){O.graphSet.push($t);for(var S=0;S<$t.length;S++)At[++Mt]=$t[S]}}for(var S=0;SA.count?0:A.graph},EJ=function y(g,x,T,A){var I=A.graphSet[T];if(-10)var U=A.nodeOverlap*V,tt=Math.sqrt($*$+z*z),at=U*$/tt,ut=U*z/tt;else var dt=cT(g,$,z),At=cT(x,-1*$,-1*z),xt=At.x-dt.x,Mt=At.y-dt.y,Dt=xt*xt+Mt*Mt,tt=Math.sqrt(Dt),U=(g.nodeRepulsion+x.nodeRepulsion)/Dt,at=U*xt/tt,ut=U*Mt/tt;g.isLocked||(g.offsetX-=at,g.offsetY-=ut),x.isLocked||(x.offsetX+=at,x.offsetY+=ut)}},MJ=function(g,x,T,A){if(T>0)var I=g.maxX-x.minX;else var I=x.maxX-g.minX;if(A>0)var O=g.maxY-x.minY;else var O=x.maxY-g.minY;return I>=0&&O>=0?Math.sqrt(I*I+O*O):0},cT=function(g,x,T){var A=g.positionX,I=g.positionY,O=g.height||1,$=g.width||1,z=T/x,S=O/$,V={};return x===0&&0T?(V.x=A,V.y=I+O/2,V):0x&&-1*S<=z&&z<=S?(V.x=A-$/2,V.y=I-$*T/2/x,V):0=S)?(V.x=A+O*x/2/T,V.y=I+O/2,V):(0>T&&(z<=-1*S||z>=S)&&(V.x=A-O*x/2/T,V.y=I-O/2),V)},DJ=function(g,x){for(var T=0;TT){var At=x.gravity*at/dt,xt=x.gravity*ut/dt;tt.offsetX+=At,tt.offsetY+=xt}}}}},OJ=function(g,x){var T=[],A=0,I=-1;for(T.push.apply(T,g.graphSet[0]),I+=g.graphSet[0].length;A<=I;){var O=T[A++],$=g.idToIndex[O],z=g.layoutNodes[$],S=z.children;if(0T)var I={x:T*g/A,y:T*x/A};else var I={x:g,y:x};return I},FJ=function y(g,x){var T=g.parentId;if(T!=null){var A=x.layoutNodes[x.idToIndex[T]],I=!1;if((A.maxX==null||g.maxX+A.padRight>A.maxX)&&(A.maxX=g.maxX+A.padRight,I=!0),(A.minX==null||g.minX-A.padLeftA.maxY)&&(A.maxY=g.maxY+A.padBottom,I=!0),(A.minY==null||g.minY-A.padTopxt&&(ut+=At+x.componentSpacing,at=0,dt=0,At=0)}}},BJ={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,avoidOverlapPadding:10,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,condense:!1,rows:void 0,cols:void 0,position:function(g){},sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(g,x){return!0},ready:void 0,stop:void 0,transform:function(g,x){return x}};function TB(y){this.options=Ke({},BJ,y)}TB.prototype.run=function(){var y=this.options,g=y,x=y.cy,T=g.eles,A=T.nodes().not(":parent");g.sort&&(A=A.sort(g.sort));var I=zd(g.boundingBox?g.boundingBox:{x1:0,y1:0,w:x.width(),h:x.height()});if(I.h===0||I.w===0)T.nodes().layoutPositions(this,g,function(fr){return{x:I.x1,y:I.y1}});else{var O=A.size(),$=Math.sqrt(O*I.h/I.w),z=Math.round($),S=Math.round(I.w/I.h*$),V=function(Sr){if(Sr==null)return Math.min(z,S);var wr=Math.min(z,S);wr==z?z=Sr:S=Sr},U=function(Sr){if(Sr==null)return Math.max(z,S);var wr=Math.max(z,S);wr==z?z=Sr:S=Sr},tt=g.rows,at=g.cols!=null?g.cols:g.columns;if(tt!=null&&at!=null)z=tt,S=at;else if(tt!=null&&at==null)z=tt,S=Math.ceil(O/z);else if(tt==null&&at!=null)S=at,z=Math.ceil(O/S);else if(S*z>O){var ut=V(),dt=U();(ut-1)*dt>=O?V(ut-1):(dt-1)*ut>=O&&U(dt-1)}else for(;S*z=O?U(xt+1):V(At+1)}var Mt=I.w/S,Dt=I.h/z;if(g.condense&&(Mt=0,Dt=0),g.avoidOverlap)for(var Bt=0;Bt=S&&(fn=0,ve++)},qe={},xn=0;xn(fn=kY(y,g,$e[qe],$e[qe+1],$e[qe+2],$e[qe+3])))return At($t,fn),!0}else if(Ht.edgeType==="bezier"||Ht.edgeType==="multibezier"||Ht.edgeType==="self"||Ht.edgeType==="compound"){for(var $e=Ht.allpts,qe=0;qe+5(fn=xY(y,g,$e[qe],$e[qe+1],$e[qe+2],$e[qe+3],$e[qe+4],$e[qe+5])))return At($t,fn),!0}for(var xn=xn||ee.source,Nn=Nn||ee.target,er=A.getArrowWidth(ge,be),Sn=[{name:"source",x:Ht.arrowStartX,y:Ht.arrowStartY,angle:Ht.srcArrowAngle},{name:"target",x:Ht.arrowEndX,y:Ht.arrowEndY,angle:Ht.tgtArrowAngle},{name:"mid-source",x:Ht.midX,y:Ht.midY,angle:Ht.midsrcArrowAngle},{name:"mid-target",x:Ht.midX,y:Ht.midY,angle:Ht.midtgtArrowAngle}],qe=0;qe0&&(xt(xn),xt(Nn))}function Dt($t,ee,Ht){return wp($t,ee,Ht)}function Bt($t,ee){var Ht=$t._private,ge=tt,be;ee?be=ee+"-":be="",$t.boundingBox();var re=Ht.labelBounds[ee||"main"],Pe=$t.pstyle(be+"label").value,ve=$t.pstyle("text-events").strValue==="yes";if(!(!ve||!Pe)){var fn=Dt(Ht.rscratch,"labelX",ee),$e=Dt(Ht.rscratch,"labelY",ee),qe=Dt(Ht.rscratch,"labelAngle",ee),xn=$t.pstyle(be+"text-margin-x").pfValue,Nn=$t.pstyle(be+"text-margin-y").pfValue,er=re.x1-ge-xn,Sn=re.x2+ge-xn,Jn=re.y1-ge-Nn,fr=re.y2+ge-Nn;if(qe){var Sr=Math.cos(qe),wr=Math.sin(qe),cr=function(Fa,Fi){return Fa=Fa-fn,Fi=Fi-$e,{x:Fa*Sr-Fi*wr+fn,y:Fa*wr+Fi*Sr+$e}},bn=cr(er,Jn),Tr=cr(er,fr),xr=cr(Sn,Jn),fi=cr(Sn,fr),Ii=[bn.x+xn,bn.y+Nn,xr.x+xn,xr.y+Nn,fi.x+xn,fi.y+Nn,Tr.x+xn,Tr.y+Nn];if(qd(y,g,Ii))return At($t),!0}else if(H5(re,y,g))return At($t),!0}}for(var Zt=O.length-1;Zt>=0;Zt--){var Kt=O[Zt];Kt.isNode()?xt(Kt)||Bt(Kt):Mt(Kt)||Bt(Kt)||Bt(Kt,"source")||Bt(Kt,"target")}return $},L3.getAllInBox=function(y,g,x,T){var A=this.getCachedZSortedEles().interactive,I=[],O=Math.min(y,x),$=Math.max(y,x),z=Math.min(g,T),S=Math.max(g,T);y=O,x=$,g=z,T=S;for(var V=zd({x1:y,y1:g,x2:x,y2:T}),U=0;U0?Math.max(us-Ko,0):Math.min(us+Ko,0)},Pe=re(ge,ee),ve=re(be,Ht),fn=!1;Mt===S?xt=Math.abs(Pe)>Math.abs(ve)?A:T:Mt===z||Mt===$?(xt=T,fn=!0):(Mt===I||Mt===O)&&(xt=A,fn=!0);var $e=xt===T,qe=$e?ve:Pe,xn=$e?be:ge,Nn=HP(xn),er=!1;!(fn&&(Bt||Kt))&&(Mt===$&&xn<0||Mt===z&&xn>0||Mt===I&&xn>0||Mt===O&&xn<0)&&(Nn*=-1,qe=Nn*Math.abs(qe),er=!0);var Sn;if(Bt){var Jn=Zt<0?1+Zt:Zt;Sn=Jn*qe}else{var fr=Zt<0?qe:0;Sn=fr+Zt*Nn}var Sr=function(us){return Math.abs(us)<$t||Math.abs(us)>=Math.abs(qe)},wr=Sr(Sn),cr=Sr(Math.abs(qe)-Math.abs(Sn)),bn=wr||cr;if(bn&&!er)if($e){var Tr=Math.abs(xn)<=tt/2,xr=Math.abs(ge)<=at/2;if(Tr){var fi=(V.x1+V.x2)/2,Ii=V.y1,oa=V.y2;x.segpts=[fi,Ii,fi,oa]}else if(xr){var Fa=(V.y1+V.y2)/2,Fi=V.x1,Ci=V.x2;x.segpts=[Fi,Fa,Ci,Fa]}else x.segpts=[V.x1,V.y2]}else{var Ls=Math.abs(xn)<=U/2,es=Math.abs(be)<=ut/2;if(Ls){var Ri=(V.y1+V.y2)/2,as=V.x1,no=V.x2;x.segpts=[as,Ri,no,Ri]}else if(es){var ca=(V.x1+V.x2)/2,ea=V.y1,Fr=V.y2;x.segpts=[ca,ea,ca,Fr]}else x.segpts=[V.x2,V.y1]}else if($e){var Qt=V.y1+Sn+(At?tt/2*Nn:0),Hn=V.x1,jr=V.x2;x.segpts=[Hn,Qt,jr,Qt]}else{var dr=V.x1+Sn+(At?U/2*Nn:0),gr=V.y1,Ga=V.y2;x.segpts=[dr,gr,dr,Ga]}},ld.tryToCorrectInvalidPoints=function(y,g){var x=y._private.rscratch;if(x.edgeType==="bezier"){var T=g.srcPos,A=g.tgtPos,I=g.srcW,O=g.srcH,$=g.tgtW,z=g.tgtH,S=g.srcShape,V=g.tgtShape,U=!rt(x.startX)||!rt(x.startY),tt=!rt(x.arrowStartX)||!rt(x.arrowStartY),at=!rt(x.endX)||!rt(x.endY),ut=!rt(x.arrowEndX)||!rt(x.arrowEndY),dt=3,At=this.getArrowWidth(y.pstyle("width").pfValue,y.pstyle("arrow-scale").value)*this.arrowShapeWidth,xt=dt*At,Mt=E3({x:x.ctrlpts[0],y:x.ctrlpts[1]},{x:x.startX,y:x.startY}),Dt=Mtve.poolIndex()){var fn=Pe;Pe=ve,ve=fn}var $e=Ht.srcPos=Pe.position(),qe=Ht.tgtPos=ve.position(),xn=Ht.srcW=Pe.outerWidth(),Nn=Ht.srcH=Pe.outerHeight(),er=Ht.tgtW=ve.outerWidth(),Sn=Ht.tgtH=ve.outerHeight(),Jn=Ht.srcShape=x.nodeShapes[g.getNodeShape(Pe)],fr=Ht.tgtShape=x.nodeShapes[g.getNodeShape(ve)];Ht.dirCounts={north:0,west:0,south:0,east:0,northwest:0,southwest:0,northeast:0,southeast:0};for(var Sr=0;Sr0){var Tr=I,xr=T3(Tr,z5(x)),fi=T3(Tr,z5(bn)),Ii=xr;if(fi2){var oa=T3(Tr,{x:bn[2],y:bn[3]});oa0){var Hn=O,jr=T3(Hn,z5(x)),dr=T3(Hn,z5(Qt)),gr=jr;if(dr2){var Ga=T3(Hn,{x:Qt[2],y:Qt[3]});Ga=ut||$t){At={cp:Bt,segment:Kt};break}}if(At)break}var ee=At.cp,Ht=At.segment,ge=(ut-xt)/Ht.length,be=Ht.t1-Ht.t0,re=at?Ht.t0+be*ge:Ht.t1-be*ge;re=wk(0,re,1),g=q5(ee.p0,ee.p1,ee.p2,re),tt=OB(ee.p0,ee.p1,ee.p2,re);break}case"straight":case"segments":case"haystack":{for(var Pe=0,ve,fn,$e,qe,xn=T.allpts.length,Nn=0;Nn+3=ut));Nn+=2);var er=ut-fn,Sn=er/ve;Sn=wk(0,Sn,1),g=hY($e,qe,Sn),tt=IB($e,qe);break}}O("labelX",U,g.x),O("labelY",U,g.y),O("labelAutoAngle",U,tt)}};S("source"),S("target"),this.applyLabelDimensions(y)}},kp.applyLabelDimensions=function(y){this.applyPrefixedLabelDimensions(y),y.isEdge()&&(this.applyPrefixedLabelDimensions(y,"source"),this.applyPrefixedLabelDimensions(y,"target"))},kp.applyPrefixedLabelDimensions=function(y,g){var x=y._private,T=this.getLabelText(y,g),A=this.calculateLabelDimensions(y,T),I=y.pstyle("line-height").pfValue,O=y.pstyle("text-wrap").strValue,$=wp(x.rscratch,"labelWrapCachedLines",g)||[],z=O!=="wrap"?1:Math.max($.length,1),S=A.height/z,V=S*I,U=A.width,tt=A.height+(z-1)*(I-1)*S;gm(x.rstyle,"labelWidth",g,U),gm(x.rscratch,"labelWidth",g,U),gm(x.rstyle,"labelHeight",g,tt),gm(x.rscratch,"labelHeight",g,tt),gm(x.rscratch,"labelLineHeight",g,V)},kp.getLabelText=function(y,g){var x=y._private,T=g?g+"-":"",A=y.pstyle(T+"label").strValue,I=y.pstyle("text-transform").value,O=function(er,Sn){return Sn?(gm(x.rscratch,er,g,Sn),Sn):wp(x.rscratch,er,g)};if(!A)return"";I=="none"||(I=="uppercase"?A=A.toUpperCase():I=="lowercase"&&(A=A.toLowerCase()));var $=y.pstyle("text-wrap").value;if($==="wrap"){var z=O("labelKey");if(z!=null&&O("labelWrapKey")===z)return O("labelWrapCachedText");for(var S="​",V=A.split(` -`),U=y.pstyle("text-max-width").pfValue,tt=y.pstyle("text-overflow-wrap").value,at=tt==="anywhere",ut=[],dt=/[\s\u200b]+/,At=at?"":" ",xt=0;xtU){for(var Kt=Mt.split(dt),$t="",ee=0;eePe)break;ve+=A[qe],qe===A.length-1&&($e=!0)}return $e||(ve+=fn),ve}return A},kp.getLabelJustification=function(y){var g=y.pstyle("text-justification").strValue,x=y.pstyle("text-halign").strValue;if(g==="auto")if(y.isNode())switch(x){case"left":return"right";case"right":return"left";default:return"center"}else return"center";else return g},kp.calculateLabelDimensions=function(y,g){var x=this,T=ad(g,y._private.labelDimsKey),A=x.labelDimCache||(x.labelDimCache=[]),I=A[T];if(I!=null)return I;var O=0,$=y.pstyle("font-style").strValue,z=y.pstyle("font-size").pfValue,S=y.pstyle("font-family").strValue,V=y.pstyle("font-weight").strValue,U=this.labelCalcCanvas,tt=this.labelCalcCanvasContext;if(!U){U=this.labelCalcCanvas=document.createElement("canvas"),tt=this.labelCalcCanvasContext=U.getContext("2d");var at=U.style;at.position="absolute",at.left="-9999px",at.top="-9999px",at.zIndex="-1",at.visibility="hidden",at.pointerEvents="none"}tt.font="".concat($," ").concat(V," ").concat(z,"px ").concat(S);for(var ut=0,dt=0,At=g.split(` -`),xt=0;xt1&&arguments[1]!==void 0?arguments[1]:!0;if(g.merge(O),$)for(var z=0;z=y.desktopTapThreshold2}var dv=T(Qt);Wf&&(y.hoverData.tapholdCancelled=!0);var Tm=function(){var q2=y.hoverData.dragDelta=y.hoverData.dragDelta||[];q2.length===0?(q2.push(fo[0]),q2.push(fo[1])):(q2[0]+=fo[0],q2[1]+=fo[1])};jr=!0,x(ho,["mousemove","vmousemove","tapdrag"],Qt,{x:Qr[0],y:Qr[1]});var d6=function(){y.data.bgActivePosistion=void 0,y.hoverData.selecting||dr.emit({originalEvent:Qt,type:"boxstart",position:{x:Qr[0],y:Qr[1]}}),Vc[4]=1,y.hoverData.selecting=!0,y.redrawHint("select",!0),y.redraw()};if(y.hoverData.which===3){if(Wf){var O3={originalEvent:Qt,type:"cxtdrag",position:{x:Qr[0],y:Qr[1]}};Ba?Ba.emit(O3):dr.emit(O3),y.hoverData.cxtDragged=!0,(!y.hoverData.cxtOver||ho!==y.hoverData.cxtOver)&&(y.hoverData.cxtOver&&y.hoverData.cxtOver.emit({originalEvent:Qt,type:"cxtdragout",position:{x:Qr[0],y:Qr[1]}}),y.hoverData.cxtOver=ho,ho&&ho.emit({originalEvent:Qt,type:"cxtdragover",position:{x:Qr[0],y:Qr[1]}}))}}else if(y.hoverData.dragging){if(jr=!0,dr.panningEnabled()&&dr.userPanningEnabled()){var g6;if(y.hoverData.justStartedPan){var wT=y.hoverData.mdownPos;g6={x:(Qr[0]-wT[0])*gr,y:(Qr[1]-wT[1])*gr},y.hoverData.justStartedPan=!1}else g6={x:fo[0]*gr,y:fo[1]*gr};dr.panBy(g6),dr.emit("dragpan"),y.hoverData.dragged=!0}Qr=y.projectIntoViewport(Qt.clientX,Qt.clientY)}else if(Vc[4]==1&&(Ba==null||Ba.pannable())){if(Wf){if(!y.hoverData.dragging&&dr.boxSelectionEnabled()&&(dv||!dr.panningEnabled()||!dr.userPanningEnabled()))d6();else if(!y.hoverData.selecting&&dr.panningEnabled()&&dr.userPanningEnabled()){var N3=A(Ba,y.hoverData.downs);N3&&(y.hoverData.dragging=!0,y.hoverData.justStartedPan=!0,Vc[4]=0,y.data.bgActivePosistion=z5(us),y.redrawHint("select",!0),y.redraw())}Ba&&Ba.pannable()&&Ba.active()&&Ba.unactivate()}}else{if(Ba&&Ba.pannable()&&Ba.active()&&Ba.unactivate(),(!Ba||!Ba.grabbed())&&ho!=Ic&&(Ic&&x(Ic,["mouseout","tapdragout"],Qt,{x:Qr[0],y:Qr[1]}),ho&&x(ho,["mouseover","tapdragover"],Qt,{x:Qr[0],y:Qr[1]}),y.hoverData.last=ho),Ba)if(Wf){if(dr.boxSelectionEnabled()&&dv)Ba&&Ba.grabbed()&&(dt(Sl),Ba.emit("freeon"),Sl.emit("free"),y.dragData.didDrag&&(Ba.emit("dragfreeon"),Sl.emit("dragfree"))),d6();else if(Ba&&Ba.grabbed()&&y.nodeIsDraggable(Ba)){var Hd=!y.dragData.didDrag;Hd&&y.redrawHint("eles",!0),y.dragData.didDrag=!0,y.hoverData.draggingEles||at(Sl,{inDragLayer:!0});var C1={x:0,y:0};if(rt(fo[0])&&rt(fo[1])&&(C1.x+=fo[0],C1.y+=fo[1],Hd)){var Vd=y.hoverData.dragDelta;Vd&&rt(Vd[0])&&rt(Vd[1])&&(C1.x+=Vd[0],C1.y+=Vd[1])}y.hoverData.draggingEles=!0,Sl.silentShift(C1).emit("position drag"),y.redrawHint("drag",!0),y.redraw()}}else Tm();jr=!0}if(Vc[2]=Qr[0],Vc[3]=Qr[1],jr)return Qt.stopPropagation&&Qt.stopPropagation(),Qt.preventDefault&&Qt.preventDefault(),!1}},!1);var Ht,ge,be;y.registerBinding(window,"mouseup",function(Qt){var Hn=y.hoverData.capture;if(Hn){y.hoverData.capture=!1;var jr=y.cy,dr=y.projectIntoViewport(Qt.clientX,Qt.clientY),gr=y.selection,Ga=y.findNearestElement(dr[0],dr[1],!0,!1),Qr=y.dragData.possibleDragElements,us=y.hoverData.down,Ko=T(Qt);if(y.data.bgActivePosistion&&(y.redrawHint("select",!0),y.redraw()),y.hoverData.tapholdCancelled=!0,y.data.bgActivePosistion=void 0,us&&us.unactivate(),y.hoverData.which===3){var Vc={originalEvent:Qt,type:"cxttapend",position:{x:dr[0],y:dr[1]}};if(us?us.emit(Vc):jr.emit(Vc),!y.hoverData.cxtDragged){var ho={originalEvent:Qt,type:"cxttap",position:{x:dr[0],y:dr[1]}};us?us.emit(ho):jr.emit(ho)}y.hoverData.cxtDragged=!1,y.hoverData.which=null}else if(y.hoverData.which===1){if(x(Ga,["mouseup","tapend","vmouseup"],Qt,{x:dr[0],y:dr[1]}),!y.dragData.didDrag&&!y.hoverData.dragged&&!y.hoverData.selecting&&!y.hoverData.isOverThresholdDrag&&(x(us,["click","tap","vclick"],Qt,{x:dr[0],y:dr[1]}),ge=!1,Qt.timeStamp-be<=jr.multiClickDebounceTime()?(Ht&&clearTimeout(Ht),ge=!0,be=null,x(us,["dblclick","dbltap","vdblclick"],Qt,{x:dr[0],y:dr[1]})):(Ht=setTimeout(function(){ge||x(us,["oneclick","onetap","voneclick"],Qt,{x:dr[0],y:dr[1]})},jr.multiClickDebounceTime()),be=Qt.timeStamp)),us==null&&!y.dragData.didDrag&&!y.hoverData.selecting&&!y.hoverData.dragged&&!T(Qt)&&(jr.$(g).unselect(["tapunselect"]),Qr.length>0&&y.redrawHint("eles",!0),y.dragData.possibleDragElements=Qr=jr.collection()),Ga==us&&!y.dragData.didDrag&&!y.hoverData.selecting&&Ga!=null&&Ga._private.selectable&&(y.hoverData.dragging||(jr.selectionType()==="additive"||Ko?Ga.selected()?Ga.unselect(["tapunselect"]):Ga.select(["tapselect"]):Ko||(jr.$(g).unmerge(Ga).unselect(["tapunselect"]),Ga.select(["tapselect"]))),y.redrawHint("eles",!0)),y.hoverData.selecting){var Ic=jr.collection(y.getAllInBox(gr[0],gr[1],gr[2],gr[3]));y.redrawHint("select",!0),Ic.length>0&&y.redrawHint("eles",!0),jr.emit({type:"boxend",originalEvent:Qt,position:{x:dr[0],y:dr[1]}});var Ba=function(Wf){return Wf.selectable()&&!Wf.selected()};jr.selectionType()==="additive"||Ko||jr.$(g).unmerge(Ic).unselect(),Ic.emit("box").stdFilter(Ba).select().emit("boxselect"),y.redraw()}if(y.hoverData.dragging&&(y.hoverData.dragging=!1,y.redrawHint("select",!0),y.redrawHint("eles",!0),y.redraw()),!gr[4]){y.redrawHint("drag",!0),y.redrawHint("eles",!0);var fo=us&&us.grabbed();dt(Qr),fo&&(us.emit("freeon"),Qr.emit("free"),y.dragData.didDrag&&(us.emit("dragfreeon"),Qr.emit("dragfree")))}}gr[4]=0,y.hoverData.down=null,y.hoverData.cxtStarted=!1,y.hoverData.draggingEles=!1,y.hoverData.selecting=!1,y.hoverData.isOverThresholdDrag=!1,y.dragData.didDrag=!1,y.hoverData.dragged=!1,y.hoverData.dragDelta=[],y.hoverData.mdownPos=null,y.hoverData.mdownGPos=null}},!1);var re=function(Qt){if(!y.scrollingPage){var Hn=y.cy,jr=Hn.zoom(),dr=Hn.pan(),gr=y.projectIntoViewport(Qt.clientX,Qt.clientY),Ga=[gr[0]*jr+dr.x,gr[1]*jr+dr.y];if(y.hoverData.draggingEles||y.hoverData.dragging||y.hoverData.cxtStarted||$t()){Qt.preventDefault();return}if(Hn.panningEnabled()&&Hn.userPanningEnabled()&&Hn.zoomingEnabled()&&Hn.userZoomingEnabled()){Qt.preventDefault(),y.data.wheelZooming=!0,clearTimeout(y.data.wheelTimeout),y.data.wheelTimeout=setTimeout(function(){y.data.wheelZooming=!1,y.redrawHint("eles",!0),y.redraw()},150);var Qr;Qt.deltaY!=null?Qr=Qt.deltaY/-250:Qt.wheelDeltaY!=null?Qr=Qt.wheelDeltaY/1e3:Qr=Qt.wheelDelta/1e3,Qr=Qr*y.wheelSensitivity;var us=Qt.deltaMode===1;us&&(Qr*=33);var Ko=Hn.zoom()*Math.pow(10,Qr);Qt.type==="gesturechange"&&(Ko=y.gestureStartZoom*Qt.scale),Hn.zoom({level:Ko,renderedPosition:{x:Ga[0],y:Ga[1]}}),Hn.emit(Qt.type==="gesturechange"?"pinchzoom":"scrollzoom")}}};y.registerBinding(y.container,"wheel",re,!0),y.registerBinding(window,"scroll",function(Qt){y.scrollingPage=!0,clearTimeout(y.scrollingPageTimeout),y.scrollingPageTimeout=setTimeout(function(){y.scrollingPage=!1},250)},!0),y.registerBinding(y.container,"gesturestart",function(Qt){y.gestureStartZoom=y.cy.zoom(),y.hasTouchStarted||Qt.preventDefault()},!0),y.registerBinding(y.container,"gesturechange",function(Fr){y.hasTouchStarted||re(Fr)},!0),y.registerBinding(y.container,"mouseout",function(Qt){var Hn=y.projectIntoViewport(Qt.clientX,Qt.clientY);y.cy.emit({originalEvent:Qt,type:"mouseout",position:{x:Hn[0],y:Hn[1]}})},!1),y.registerBinding(y.container,"mouseover",function(Qt){var Hn=y.projectIntoViewport(Qt.clientX,Qt.clientY);y.cy.emit({originalEvent:Qt,type:"mouseover",position:{x:Hn[0],y:Hn[1]}})},!1);var Pe,ve,fn,$e,qe,xn,Nn,er,Sn,Jn,fr,Sr,wr,cr=function(Qt,Hn,jr,dr){return Math.sqrt((jr-Qt)*(jr-Qt)+(dr-Hn)*(dr-Hn))},bn=function(Qt,Hn,jr,dr){return(jr-Qt)*(jr-Qt)+(dr-Hn)*(dr-Hn)},Tr;y.registerBinding(y.container,"touchstart",Tr=function(Qt){if(y.hasTouchStarted=!0,!!ee(Qt)){xt(),y.touchData.capture=!0,y.data.bgActivePosistion=void 0;var Hn=y.cy,jr=y.touchData.now,dr=y.touchData.earlier;if(Qt.touches[0]){var gr=y.projectIntoViewport(Qt.touches[0].clientX,Qt.touches[0].clientY);jr[0]=gr[0],jr[1]=gr[1]}if(Qt.touches[1]){var gr=y.projectIntoViewport(Qt.touches[1].clientX,Qt.touches[1].clientY);jr[2]=gr[0],jr[3]=gr[1]}if(Qt.touches[2]){var gr=y.projectIntoViewport(Qt.touches[2].clientX,Qt.touches[2].clientY);jr[4]=gr[0],jr[5]=gr[1]}if(Qt.touches[1]){y.touchData.singleTouchMoved=!0,dt(y.dragData.touchDragEles);var Ga=y.findContainerClientCoords();Sn=Ga[0],Jn=Ga[1],fr=Ga[2],Sr=Ga[3],Pe=Qt.touches[0].clientX-Sn,ve=Qt.touches[0].clientY-Jn,fn=Qt.touches[1].clientX-Sn,$e=Qt.touches[1].clientY-Jn,wr=0<=Pe&&Pe<=fr&&0<=fn&&fn<=fr&&0<=ve&&ve<=Sr&&0<=$e&&$e<=Sr;var Qr=Hn.pan(),us=Hn.zoom();qe=cr(Pe,ve,fn,$e),xn=bn(Pe,ve,fn,$e),Nn=[(Pe+fn)/2,(ve+$e)/2],er=[(Nn[0]-Qr.x)/us,(Nn[1]-Qr.y)/us];var Ko=200,Vc=Ko*Ko;if(xn=1){for(var Tp=y.touchData.startPosition=[],Kf=0;Kf=y.touchTapThreshold2}if(Hn&&y.touchData.cxt){Qt.preventDefault();var Tp=Qt.touches[0].clientX-Sn,Kf=Qt.touches[0].clientY-Jn,wg=Qt.touches[1].clientX-Sn,hd=Qt.touches[1].clientY-Jn,dv=bn(Tp,Kf,wg,hd),Tm=dv/xn,d6=150,O3=d6*d6,g6=1.5,wT=g6*g6;if(Tm>=wT||dv>=O3){y.touchData.cxt=!1,y.data.bgActivePosistion=void 0,y.redrawHint("select",!0);var N3={originalEvent:Qt,type:"cxttapend",position:{x:gr[0],y:gr[1]}};y.touchData.start?(y.touchData.start.unactivate().emit(N3),y.touchData.start=null):dr.emit(N3)}}if(Hn&&y.touchData.cxt){var N3={originalEvent:Qt,type:"cxtdrag",position:{x:gr[0],y:gr[1]}};y.data.bgActivePosistion=void 0,y.redrawHint("select",!0),y.touchData.start?y.touchData.start.emit(N3):dr.emit(N3),y.touchData.start&&(y.touchData.start._private.grabbed=!1),y.touchData.cxtDragged=!0;var Hd=y.findNearestElement(gr[0],gr[1],!0,!0);(!y.touchData.cxtOver||Hd!==y.touchData.cxtOver)&&(y.touchData.cxtOver&&y.touchData.cxtOver.emit({originalEvent:Qt,type:"cxtdragout",position:{x:gr[0],y:gr[1]}}),y.touchData.cxtOver=Hd,Hd&&Hd.emit({originalEvent:Qt,type:"cxtdragover",position:{x:gr[0],y:gr[1]}}))}else if(Hn&&Qt.touches[2]&&dr.boxSelectionEnabled())Qt.preventDefault(),y.data.bgActivePosistion=void 0,this.lastThreeTouch=+new Date,y.touchData.selecting||dr.emit({originalEvent:Qt,type:"boxstart",position:{x:gr[0],y:gr[1]}}),y.touchData.selecting=!0,y.touchData.didSelect=!0,jr[4]=1,!jr||jr.length===0||jr[0]===void 0?(jr[0]=(gr[0]+gr[2]+gr[4])/3,jr[1]=(gr[1]+gr[3]+gr[5])/3,jr[2]=(gr[0]+gr[2]+gr[4])/3+1,jr[3]=(gr[1]+gr[3]+gr[5])/3+1):(jr[2]=(gr[0]+gr[2]+gr[4])/3,jr[3]=(gr[1]+gr[3]+gr[5])/3),y.redrawHint("select",!0),y.redraw();else if(Hn&&Qt.touches[1]&&!y.touchData.didSelect&&dr.zoomingEnabled()&&dr.panningEnabled()&&dr.userZoomingEnabled()&&dr.userPanningEnabled()){Qt.preventDefault(),y.data.bgActivePosistion=void 0,y.redrawHint("select",!0);var C1=y.dragData.touchDragEles;if(C1){y.redrawHint("drag",!0);for(var Vd=0;Vd0&&!y.hoverData.draggingEles&&!y.swipePanning&&y.data.bgActivePosistion!=null&&(y.data.bgActivePosistion=void 0,y.redrawHint("select",!0),y.redraw())}},!1);var fi;y.registerBinding(window,"touchcancel",fi=function(Qt){var Hn=y.touchData.start;y.touchData.capture=!1,Hn&&Hn.unactivate()});var Ii,oa,Fa,Fi;if(y.registerBinding(window,"touchend",Ii=function(Qt){var Hn=y.touchData.start,jr=y.touchData.capture;if(jr)Qt.touches.length===0&&(y.touchData.capture=!1),Qt.preventDefault();else return;var dr=y.selection;y.swipePanning=!1,y.hoverData.draggingEles=!1;var gr=y.cy,Ga=gr.zoom(),Qr=y.touchData.now,us=y.touchData.earlier;if(Qt.touches[0]){var Ko=y.projectIntoViewport(Qt.touches[0].clientX,Qt.touches[0].clientY);Qr[0]=Ko[0],Qr[1]=Ko[1]}if(Qt.touches[1]){var Ko=y.projectIntoViewport(Qt.touches[1].clientX,Qt.touches[1].clientY);Qr[2]=Ko[0],Qr[3]=Ko[1]}if(Qt.touches[2]){var Ko=y.projectIntoViewport(Qt.touches[2].clientX,Qt.touches[2].clientY);Qr[4]=Ko[0],Qr[5]=Ko[1]}Hn&&Hn.unactivate();var Vc;if(y.touchData.cxt){if(Vc={originalEvent:Qt,type:"cxttapend",position:{x:Qr[0],y:Qr[1]}},Hn?Hn.emit(Vc):gr.emit(Vc),!y.touchData.cxtDragged){var ho={originalEvent:Qt,type:"cxttap",position:{x:Qr[0],y:Qr[1]}};Hn?Hn.emit(ho):gr.emit(ho)}y.touchData.start&&(y.touchData.start._private.grabbed=!1),y.touchData.cxt=!1,y.touchData.start=null,y.redraw();return}if(!Qt.touches[2]&&gr.boxSelectionEnabled()&&y.touchData.selecting){y.touchData.selecting=!1;var Ic=gr.collection(y.getAllInBox(dr[0],dr[1],dr[2],dr[3]));dr[0]=void 0,dr[1]=void 0,dr[2]=void 0,dr[3]=void 0,dr[4]=0,y.redrawHint("select",!0),gr.emit({type:"boxend",originalEvent:Qt,position:{x:Qr[0],y:Qr[1]}});var Ba=function(O3){return O3.selectable()&&!O3.selected()};Ic.emit("box").stdFilter(Ba).select().emit("boxselect"),Ic.nonempty()&&y.redrawHint("eles",!0),y.redraw()}if(Hn!=null&&Hn.unactivate(),Qt.touches[2])y.data.bgActivePosistion=void 0,y.redrawHint("select",!0);else if(!Qt.touches[1]){if(!Qt.touches[0]){if(!Qt.touches[0]){y.data.bgActivePosistion=void 0,y.redrawHint("select",!0);var fo=y.dragData.touchDragEles;if(Hn!=null){var Sl=Hn._private.grabbed;dt(fo),y.redrawHint("drag",!0),y.redrawHint("eles",!0),Sl&&(Hn.emit("freeon"),fo.emit("free"),y.dragData.didDrag&&(Hn.emit("dragfreeon"),fo.emit("dragfree"))),x(Hn,["touchend","tapend","vmouseup","tapdragout"],Qt,{x:Qr[0],y:Qr[1]}),Hn.unactivate(),y.touchData.start=null}else{var Wf=y.findNearestElement(Qr[0],Qr[1],!0,!0);x(Wf,["touchend","tapend","vmouseup","tapdragout"],Qt,{x:Qr[0],y:Qr[1]})}var Ep=y.touchData.startPosition[0]-Qr[0],Tp=Ep*Ep,Kf=y.touchData.startPosition[1]-Qr[1],wg=Kf*Kf,hd=Tp+wg,dv=hd*Ga*Ga;y.touchData.singleTouchMoved||(Hn||gr.$(":selected").unselect(["tapunselect"]),x(Hn,["tap","vclick"],Qt,{x:Qr[0],y:Qr[1]}),oa=!1,Qt.timeStamp-Fi<=gr.multiClickDebounceTime()?(Fa&&clearTimeout(Fa),oa=!0,Fi=null,x(Hn,["dbltap","vdblclick"],Qt,{x:Qr[0],y:Qr[1]})):(Fa=setTimeout(function(){oa||x(Hn,["onetap","voneclick"],Qt,{x:Qr[0],y:Qr[1]})},gr.multiClickDebounceTime()),Fi=Qt.timeStamp)),Hn!=null&&!y.dragData.didDrag&&Hn._private.selectable&&dv"u"){var Ci=[],Ls=function(Qt){return{clientX:Qt.clientX,clientY:Qt.clientY,force:1,identifier:Qt.pointerId,pageX:Qt.pageX,pageY:Qt.pageY,radiusX:Qt.width/2,radiusY:Qt.height/2,screenX:Qt.screenX,screenY:Qt.screenY,target:Qt.target}},es=function(Qt){return{event:Qt,touch:Ls(Qt)}},Ri=function(Qt){Ci.push(es(Qt))},as=function(Qt){for(var Hn=0;Hn0)return Sn[0]}return null},at=Object.keys(U),ut=0;ut0?tt:UP(I,O,g,x,T,A,$)},checkPoint:function(g,x,T,A,I,O,$){var z=xk(A,I),S=2*z;if(ov(g,x,this.points,O,$,A,I-S,[0,-1],T)||ov(g,x,this.points,O,$,A-S,I,[0,-1],T))return!0;var V=A/2+2*T,U=I/2+2*T,tt=[O-V,$-U,O-V,$,O+V,$,O+V,$-U];return!!(qd(g,x,tt)||_3(g,x,S,S,O+A/2-z,$+I/2-z,T)||_3(g,x,S,S,O-A/2+z,$+I/2-z,T))}}},lv.registerNodeShapes=function(){var y=this.nodeShapes={},g=this;this.generateEllipse(),this.generatePolygon("triangle",cd(3,0)),this.generateRoundPolygon("round-triangle",cd(3,0)),this.generatePolygon("rectangle",cd(4,0)),y.square=y.rectangle,this.generateRoundRectangle(),this.generateCutRectangle(),this.generateBarrel(),this.generateBottomRoundrectangle();{var x=[0,1,1,0,0,-1,-1,0];this.generatePolygon("diamond",x),this.generateRoundPolygon("round-diamond",x)}this.generatePolygon("pentagon",cd(5,0)),this.generateRoundPolygon("round-pentagon",cd(5,0)),this.generatePolygon("hexagon",cd(6,0)),this.generateRoundPolygon("round-hexagon",cd(6,0)),this.generatePolygon("heptagon",cd(7,0)),this.generateRoundPolygon("round-heptagon",cd(7,0)),this.generatePolygon("octagon",cd(8,0)),this.generateRoundPolygon("round-octagon",cd(8,0));var T=new Array(20);{var A=TL(5,0),I=TL(5,Math.PI/5),O=.5*(3-Math.sqrt(5));O*=1.57;for(var $=0;$=g.deqFastCost*Bt)break}else if(S){if(Mt>=g.deqCost*at||Mt>=g.deqAvgCost*tt)break}else if(Dt>=g.deqNoDrawCost*QL)break;var Zt=g.deq(T,At,dt);if(Zt.length>0)for(var Kt=0;Kt0&&(g.onDeqd(T,ut),!S&&g.shouldRedraw(T,ut,At,dt)&&I())},$=g.priority||fm;A.beforeRender(O,$(T))}}}},VJ=function(){function y(g){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:hm;p(this,y),this.idsByKey=new j2,this.keyForId=new j2,this.cachesByLvl=new j2,this.lvls=[],this.getKey=g,this.doesEleInvalidateKey=x}return m(y,[{key:"getIdsFor",value:function(x){x==null&&Ec("Can not get id list for null key");var T=this.idsByKey,A=this.idsByKey.get(x);return A||(A=new $5,T.set(x,A)),A}},{key:"addIdForKey",value:function(x,T){x!=null&&this.getIdsFor(x).add(T)}},{key:"deleteIdForKey",value:function(x,T){x!=null&&this.getIdsFor(x).delete(T)}},{key:"getNumberOfIdsForKey",value:function(x){return x==null?0:this.getIdsFor(x).size}},{key:"updateKeyMappingFor",value:function(x){var T=x.id(),A=this.keyForId.get(T),I=this.getKey(x);this.deleteIdForKey(A,T),this.addIdForKey(I,T),this.keyForId.set(T,I)}},{key:"deleteKeyMappingFor",value:function(x){var T=x.id(),A=this.keyForId.get(T);this.deleteIdForKey(A,T),this.keyForId.delete(T)}},{key:"keyHasChangedFor",value:function(x){var T=x.id(),A=this.keyForId.get(T),I=this.getKey(x);return A!==I}},{key:"isInvalid",value:function(x){return this.keyHasChangedFor(x)||this.doesEleInvalidateKey(x)}},{key:"getCachesAt",value:function(x){var T=this.cachesByLvl,A=this.lvls,I=T.get(x);return I||(I=new j2,T.set(x,I),A.push(x)),I}},{key:"getCache",value:function(x,T){return this.getCachesAt(T).get(x)}},{key:"get",value:function(x,T){var A=this.getKey(x),I=this.getCache(A,T);return I!=null&&this.updateKeyMappingFor(x),I}},{key:"getForCachedKey",value:function(x,T){var A=this.keyForId.get(x.id()),I=this.getCache(A,T);return I}},{key:"hasCache",value:function(x,T){return this.getCachesAt(T).has(x)}},{key:"has",value:function(x,T){var A=this.getKey(x);return this.hasCache(A,T)}},{key:"setCache",value:function(x,T,A){A.key=x,this.getCachesAt(T).set(x,A)}},{key:"set",value:function(x,T,A){var I=this.getKey(x);this.setCache(I,T,A),this.updateKeyMappingFor(x)}},{key:"deleteCache",value:function(x,T){this.getCachesAt(T).delete(x)}},{key:"delete",value:function(x,T){var A=this.getKey(x);this.deleteCache(A,T)}},{key:"invalidateKey",value:function(x){var T=this;this.lvls.forEach(function(A){return T.deleteCache(x,A)})}},{key:"invalidate",value:function(x){var T=x.id(),A=this.keyForId.get(T);this.deleteKeyMappingFor(x);var I=this.doesEleInvalidateKey(x);return I&&this.invalidateKey(A),I||this.getNumberOfIdsForKey(A)===0}}]),y}(),fT=25,dT=50,o6=-4,ZL=3,JL=7.99,GJ=8,UJ=1024,WJ=1024,BB=1024,KJ=.2,YJ=.8,XJ=10,QJ=.15,ZJ=.1,JJ=.9,ttt=.9,ett=100,ntt=1,c6={dequeue:"dequeue",downscale:"downscale",highQuality:"highQuality"},rtt=Hf({getKey:null,doesEleInvalidateKey:hm,drawElement:null,getBoundingBox:null,getRotationPoint:null,getRotationOffset:null,isVisible:od,allowEdgeTxrCaching:!0,allowParentTxrCaching:!0}),zk=function(g,x){var T=this;T.renderer=g,T.onDequeues=[];var A=rtt(x);Ke(T,A),T.lookup=new VJ(A.getKey,A.doesEleInvalidateKey),T.setupDequeueing()},Mh=zk.prototype;Mh.reasons=c6,Mh.getTextureQueue=function(y){var g=this;return g.eleImgCaches=g.eleImgCaches||{},g.eleImgCaches[y]=g.eleImgCaches[y]||[]},Mh.getRetiredTextureQueue=function(y){var g=this,x=g.eleImgCaches.retired=g.eleImgCaches.retired||{},T=x[y]=x[y]||[];return T},Mh.getElementQueue=function(){var y=this,g=y.eleCacheQueue=y.eleCacheQueue||new vk(function(x,T){return T.reqs-x.reqs});return g},Mh.getElementKeyToQueue=function(){var y=this,g=y.eleKeyToCacheQueue=y.eleKeyToCacheQueue||{};return g},Mh.getElement=function(y,g,x,T,A){var I=this,O=this.renderer,$=O.cy.zoom(),z=this.lookup;if(!g||g.w===0||g.h===0||isNaN(g.w)||isNaN(g.h)||!y.visible()||y.removed()||!I.allowEdgeTxrCaching&&y.isEdge()||!I.allowParentTxrCaching&&y.isParent())return null;if(T==null&&(T=Math.ceil(yL($*x))),T=JL||T>ZL)return null;var S=Math.pow(2,T),V=g.h*S,U=g.w*S,tt=O.eleTextBiggerThanMin(y,S);if(!this.isVisible(y,tt))return null;var at=z.get(y,T);if(at&&at.invalidated&&(at.invalidated=!1,at.texture.invalidatedWidth-=at.width),at)return at;var ut;if(V<=fT?ut=fT:V<=dT?ut=dT:ut=Math.ceil(V/dT)*dT,V>BB||U>WJ)return null;var dt=I.getTextureQueue(ut),At=dt[dt.length-2],xt=function(){return I.recycleTexture(ut,U)||I.addTexture(ut,U)};At||(At=dt[dt.length-1]),At||(At=xt()),At.width-At.usedWidthT;be--)Ht=I.getElement(y,g,x,be,c6.downscale);ge()}else return I.queueElement(y,Kt.level-1),Kt;else{var re;if(!Dt&&!Bt&&!Zt)for(var Pe=T-1;Pe>=o6;Pe--){var ve=z.get(y,Pe);if(ve){re=ve;break}}if(Mt(re))return I.queueElement(y,T),re;At.context.translate(At.usedWidth,0),At.context.scale(S,S),this.drawElement(At.context,y,g,tt,!1),At.context.scale(1/S,1/S),At.context.translate(-At.usedWidth,0)}return at={x:At.usedWidth,texture:At,level:T,scale:S,width:U,height:V,scaledLabelShown:tt},At.usedWidth+=Math.ceil(U+GJ),At.eleCaches.push(at),z.set(y,T,at),I.checkTextureFullness(At),at},Mh.invalidateElements=function(y){for(var g=0;g=KJ*y.width&&this.retireTexture(y)},Mh.checkTextureFullness=function(y){var g=this,x=g.getTextureQueue(y.height);y.usedWidth/y.width>YJ&&y.fullnessChecks>=XJ?dm(x,y):y.fullnessChecks++},Mh.retireTexture=function(y){var g=this,x=y.height,T=g.getTextureQueue(x),A=this.lookup;dm(T,y),y.retired=!0;for(var I=y.eleCaches,O=0;O=g)return O.retired=!1,O.usedWidth=0,O.invalidatedWidth=0,O.fullnessChecks=0,wL(O.eleCaches),O.context.setTransform(1,0,0,1,0,0),O.context.clearRect(0,0,O.width,O.height),dm(A,O),T.push(O),O}},Mh.queueElement=function(y,g){var x=this,T=x.getElementQueue(),A=x.getElementKeyToQueue(),I=this.getKey(y),O=A[I];if(O)O.level=Math.max(O.level,g),O.eles.merge(y),O.reqs++,T.updateItem(O);else{var $={eles:y.spawn().merge(y),level:g,reqs:1,key:I};T.push($),A[I]=$}},Mh.dequeue=function(y){for(var g=this,x=g.getElementQueue(),T=g.getElementKeyToQueue(),A=[],I=g.lookup,O=0;O0;O++){var $=x.pop(),z=$.key,S=$.eles[0],V=I.hasCache(S,$.level);if(T[z]=null,V)continue;A.push($);var U=g.getBoundingBox(S);g.getElement(S,U,y,$.level,c6.dequeue)}return A},Mh.removeFromQueue=function(y){var g=this,x=g.getElementQueue(),T=g.getElementKeyToQueue(),A=this.getKey(y),I=T[A];I!=null&&(I.eles.length===1?(I.reqs=vp,x.updateItem(I),x.pop(),T[A]=null):I.eles.unmerge(y))},Mh.onDequeue=function(y){this.onDequeues.push(y)},Mh.offDequeue=function(y){dm(this.onDequeues,y)},Mh.setupDequeueing=hT.setupDequeueing({deqRedrawThreshold:ett,deqCost:QJ,deqAvgCost:ZJ,deqNoDrawCost:JJ,deqFastCost:ttt,deq:function(g,x,T){return g.dequeue(x,T)},onDeqd:function(g,x){for(var T=0;T=gT||x>qk)return null}T.validateLayersElesOrdering(x,y);var z=T.layersByLevel,S=Math.pow(2,x),V=z[x]=z[x]||[],U,tt=T.levelIsComplete(x,y),at,ut=function(){var ge=function(fn){if(T.validateLayersElesOrdering(fn,y),T.levelIsComplete(fn,y))return at=z[fn],!0},be=function(fn){if(!at)for(var $e=x+fn;u6<=$e&&$e<=qk&&!ge($e);$e+=fn);};be(1),be(-1);for(var re=V.length-1;re>=0;re--){var Pe=V[re];Pe.invalid&&dm(V,Pe)}};if(!tt)ut();else return V;var dt=function(){if(!U){U=zd();for(var ge=0;gejgt)return null;var Pe=T.makeLayer(U,x);if(be!=null){var ve=V.indexOf(be)+1;V.splice(ve,0,Pe)}else(ge.insert===void 0||ge.insert)&&V.unshift(Pe);return Pe};if(T.skipping&&!$)return null;for(var xt=null,Mt=y.length/itt,Dt=!$,Bt=0;Bt=Mt||!GP(xt.bb,Zt.boundingBox()))&&(xt=At({insert:!0,after:xt}),!xt))return null;at||Dt?T.queueLayer(xt,Zt):T.drawEleInLayer(xt,Zt,x,g),xt.eles.push(Zt),$t[x]=xt}return at||(Dt?null:V)},E1.getEleLevelForLayerLevel=function(y,g){return y},E1.drawEleInLayer=function(y,g,x,T){var A=this,I=this.renderer,O=y.context,$=g.boundingBox();$.w===0||$.h===0||!g.visible()||(x=A.getEleLevelForLayerLevel(x,T),I.setImgSmoothing(O,!1),I.drawCachedElement(O,g,null,null,x,$gt),I.setImgSmoothing(O,!0))},E1.levelIsComplete=function(y,g){var x=this,T=x.layersByLevel[y];if(!T||T.length===0)return!1;for(var A=0,I=0;I0||O.invalid)return!1;A+=O.eles.length}return A===g.length},E1.validateLayersElesOrdering=function(y,g){var x=this.layersByLevel[y];if(x)for(var T=0;T0){g=!0;break}}return g},E1.invalidateElements=function(y){var g=this;y.length!==0&&(g.lastInvalidationTime=Ei(),!(y.length===0||!g.haveLayers())&&g.updateElementsInLayers(y,function(T,A,I){g.invalidateLayer(T)}))},E1.invalidateLayer=function(y){if(this.lastInvalidationTime=Ei(),!y.invalid){var g=y.level,x=y.eles,T=this.layersByLevel[g];dm(T,y),y.elesQueue=[],y.invalid=!0,y.replacement&&(y.replacement.invalid=!0);for(var A=0;A3&&arguments[3]!==void 0?arguments[3]:!0,A=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,I=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,O=this,$=g._private.rscratch;if(!(I&&!g.visible())&&!($.badLine||$.allpts==null||isNaN($.allpts[0]))){var z;x&&(z=x,y.translate(-z.x1,-z.y1));var S=I?g.pstyle("opacity").value:1,V=I?g.pstyle("line-opacity").value:1,U=g.pstyle("curve-style").value,tt=g.pstyle("line-style").value,at=g.pstyle("width").pfValue,ut=g.pstyle("line-cap").value,dt=S*V,At=S*V,xt=function(){var re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:dt;U==="straight-triangle"?(O.eleStrokeStyle(y,g,re),O.drawEdgeTrianglePath(g,y,$.allpts)):(y.lineWidth=at,y.lineCap=ut,O.eleStrokeStyle(y,g,re),O.drawEdgePath(g,y,$.allpts,tt),y.lineCap="butt")},Mt=function(){A&&O.drawEdgeOverlay(y,g)},Dt=function(){A&&O.drawEdgeUnderlay(y,g)},Bt=function(){var re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:At;O.drawArrowheads(y,g,re)},Zt=function(){O.drawElementText(y,g,null,T)};y.lineJoin="round";var Kt=g.pstyle("ghost").value==="yes";if(Kt){var $t=g.pstyle("ghost-offset-x").pfValue,ee=g.pstyle("ghost-offset-y").pfValue,Ht=g.pstyle("ghost-opacity").value,ge=dt*Ht;y.translate($t,ee),xt(ge),Bt(ge),y.translate(-$t,-ee)}Dt(),xt(),Bt(),Mt(),Zt(),x&&y.translate(z.x1,z.y1)}};var ltt=function(g){if(!["overlay","underlay"].includes(g))throw new Error("Invalid state");return function(x,T){if(T.visible()){var A=T.pstyle("".concat(g,"-opacity")).value;if(A!==0){var I=this,O=I.usePaths(),$=T._private.rscratch,z=T.pstyle("".concat(g,"-padding")).pfValue,S=2*z,V=T.pstyle("".concat(g,"-color")).value;x.lineWidth=S,$.edgeType==="self"&&!O?x.lineCap="butt":x.lineCap="round",I.colorStrokeStyle(x,V[0],V[1],V[2],A),I.drawEdgePath(T,x,$.allpts,"solid")}}}};fv.drawEdgeOverlay=ltt("overlay"),fv.drawEdgeUnderlay=ltt("underlay"),fv.drawEdgePath=function(y,g,x,T){var A=y._private.rscratch,I=g,O,$=!1,z=this.usePaths(),S=y.pstyle("line-dash-pattern").pfValue,V=y.pstyle("line-dash-offset").pfValue;if(z){var U=x.join("$"),tt=A.pathCacheKey&&A.pathCacheKey===U;tt?(O=g=A.pathCache,$=!0):(O=g=new Path2D,A.pathCacheKey=U,A.pathCache=O)}if(I.setLineDash)switch(T){case"dotted":I.setLineDash([1,1]);break;case"dashed":I.setLineDash(S),I.lineDashOffset=V;break;case"solid":I.setLineDash([]);break}if(!$&&!A.badLine)switch(g.beginPath&&g.beginPath(),g.moveTo(x[0],x[1]),A.edgeType){case"bezier":case"self":case"compound":case"multibezier":for(var at=2;at+35&&arguments[5]!==void 0?arguments[5]:!0,O=this;if(T==null){if(I&&!O.eleTextBiggerThanMin(g))return}else if(T===!1)return;if(g.isNode()){var $=g.pstyle("label");if(!$||!$.value)return;var z=O.getLabelJustification(g);y.textAlign=z,y.textBaseline="bottom"}else{var S=g.element()._private.rscratch.badLine,V=g.pstyle("label"),U=g.pstyle("source-label"),tt=g.pstyle("target-label");if(S||(!V||!V.value)&&(!U||!U.value)&&(!tt||!tt.value))return;y.textAlign="center",y.textBaseline="bottom"}var at=!x,ut;x&&(ut=x,y.translate(-ut.x1,-ut.y1)),A==null?(O.drawText(y,g,null,at,I),g.isEdge()&&(O.drawText(y,g,"source",at,I),O.drawText(y,g,"target",at,I))):O.drawText(y,g,A,at,I),x&&y.translate(ut.x1,ut.y1)},l6.getFontCache=function(y){var g;this.fontCaches=this.fontCaches||[];for(var x=0;x2&&arguments[2]!==void 0?arguments[2]:!0,T=g.pstyle("font-style").strValue,A=g.pstyle("font-size").pfValue+"px",I=g.pstyle("font-family").strValue,O=g.pstyle("font-weight").strValue,$=x?g.effectiveOpacity()*g.pstyle("text-opacity").value:1,z=g.pstyle("text-outline-opacity").value*$,S=g.pstyle("color").value,V=g.pstyle("text-outline-color").value;y.font=T+" "+O+" "+A+" "+I,y.lineJoin="round",this.colorFillStyle(y,S[0],S[1],S[2],$),this.colorStrokeStyle(y,V[0],V[1],V[2],z)};function Ugt(y,g,x,T,A){var I=arguments.length>5&&arguments[5]!==void 0?arguments[5]:5;y.beginPath(),y.moveTo(g+I,x),y.lineTo(g+T-I,x),y.quadraticCurveTo(g+T,x,g+T,x+I),y.lineTo(g+T,x+A-I),y.quadraticCurveTo(g+T,x+A,g+T-I,x+A),y.lineTo(g+I,x+A),y.quadraticCurveTo(g,x+A,g,x+A-I),y.lineTo(g,x+I),y.quadraticCurveTo(g,x,g+I,x),y.closePath(),y.fill()}l6.getTextAngle=function(y,g){var x,T=y._private,A=T.rscratch,I=g?g+"-":"",O=y.pstyle(I+"text-rotation"),$=wp(A,"labelAngle",g);return O.strValue==="autorotate"?x=y.isEdge()?$:0:O.strValue==="none"?x=0:x=O.pfValue,x},l6.drawText=function(y,g,x){var T=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,A=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,I=g._private,O=I.rscratch,$=A?g.effectiveOpacity():1;if(!(A&&($===0||g.pstyle("text-opacity").value===0))){x==="main"&&(x=null);var z=wp(O,"labelX",x),S=wp(O,"labelY",x),V,U,tt=this.getLabelText(g,x);if(tt!=null&&tt!==""&&!isNaN(z)&&!isNaN(S)){this.setupTextStyle(y,g,A);var at=x?x+"-":"",ut=wp(O,"labelWidth",x),dt=wp(O,"labelHeight",x),At=g.pstyle(at+"text-margin-x").pfValue,xt=g.pstyle(at+"text-margin-y").pfValue,Mt=g.isEdge(),Dt=g.pstyle("text-halign").value,Bt=g.pstyle("text-valign").value;Mt&&(Dt="center",Bt="center"),z+=At,S+=xt;var Zt;switch(T?Zt=this.getTextAngle(g,x):Zt=0,Zt!==0&&(V=z,U=S,y.translate(V,U),y.rotate(Zt),z=0,S=0),Bt){case"top":break;case"center":S+=dt/2;break;case"bottom":S+=dt;break}var Kt=g.pstyle("text-background-opacity").value,$t=g.pstyle("text-border-opacity").value,ee=g.pstyle("text-border-width").pfValue,Ht=g.pstyle("text-background-padding").pfValue;if(Kt>0||ee>0&&$t>0){var ge=z-Ht;switch(Dt){case"left":ge-=ut;break;case"center":ge-=ut/2;break}var be=S-dt-Ht,re=ut+2*Ht,Pe=dt+2*Ht;if(Kt>0){var ve=y.fillStyle,fn=g.pstyle("text-background-color").value;y.fillStyle="rgba("+fn[0]+","+fn[1]+","+fn[2]+","+Kt*$+")";var $e=g.pstyle("text-background-shape").strValue;$e.indexOf("round")===0?Ugt(y,ge,be,re,Pe,2):y.fillRect(ge,be,re,Pe),y.fillStyle=ve}if(ee>0&&$t>0){var qe=y.strokeStyle,xn=y.lineWidth,Nn=g.pstyle("text-border-color").value,er=g.pstyle("text-border-style").value;if(y.strokeStyle="rgba("+Nn[0]+","+Nn[1]+","+Nn[2]+","+$t*$+")",y.lineWidth=ee,y.setLineDash)switch(er){case"dotted":y.setLineDash([1,1]);break;case"dashed":y.setLineDash([4,2]);break;case"double":y.lineWidth=ee/4,y.setLineDash([]);break;case"solid":y.setLineDash([]);break}if(y.strokeRect(ge,be,re,Pe),er==="double"){var Sn=ee/2;y.strokeRect(ge+Sn,be+Sn,re-Sn*2,Pe-Sn*2)}y.setLineDash&&y.setLineDash([]),y.lineWidth=xn,y.strokeStyle=qe}}var Jn=2*g.pstyle("text-outline-width").pfValue;if(Jn>0&&(y.lineWidth=Jn),g.pstyle("text-wrap").value==="wrap"){var fr=wp(O,"labelWrapCachedLines",x),Sr=wp(O,"labelLineHeight",x),wr=ut/2,cr=this.getLabelJustification(g);switch(cr==="auto"||(Dt==="left"?cr==="left"?z+=-ut:cr==="center"&&(z+=-wr):Dt==="center"?cr==="left"?z+=-wr:cr==="right"&&(z+=wr):Dt==="right"&&(cr==="center"?z+=wr:cr==="right"&&(z+=ut))),Bt){case"top":S-=(fr.length-1)*Sr;break;case"center":case"bottom":S-=(fr.length-1)*Sr;break}for(var bn=0;bn0&&y.strokeText(fr[bn],z,S),y.fillText(fr[bn],z,S),S+=Sr}else Jn>0&&y.strokeText(tt,z,S),y.fillText(tt,z,S);Zt!==0&&(y.rotate(-Zt),y.translate(-V,-U))}}};var Vk={};Vk.drawNode=function(y,g,x){var T=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,A=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,I=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,O=this,$,z,S=g._private,V=S.rscratch,U=g.position();if(!(!rt(U.x)||!rt(U.y))&&!(I&&!g.visible())){var tt=I?g.effectiveOpacity():1,at=O.usePaths(),ut,dt=!1,At=g.padding();$=g.width()+2*At,z=g.height()+2*At;var xt;x&&(xt=x,y.translate(-xt.x1,-xt.y1));for(var Mt=g.pstyle("background-image"),Dt=Mt.value,Bt=new Array(Dt.length),Zt=new Array(Dt.length),Kt=0,$t=0;$t0&&arguments[0]!==void 0?arguments[0]:Pe;O.eleFillStyle(y,g,Ri)},xn=function(){var Ri=arguments.length>0&&arguments[0]!==void 0?arguments[0]:$e;O.colorStrokeStyle(y,ve[0],ve[1],ve[2],Ri)},Nn=g.pstyle("shape").strValue,er=g.pstyle("shape-polygon-points").pfValue;if(at){y.translate(U.x,U.y);var Sn=O.nodePathCache=O.nodePathCache||[],Jn=R5(Nn==="polygon"?Nn+","+er.join(","):Nn,""+z,""+$),fr=Sn[Jn];fr!=null?(ut=fr,dt=!0,V.pathCache=ut):(ut=new Path2D,Sn[Jn]=V.pathCache=ut)}var Sr=function(){if(!dt){var Ri=U;at&&(Ri={x:0,y:0}),O.nodeShapes[O.getNodeShape(g)].draw(ut||y,Ri.x,Ri.y,$,z)}at?y.fill(ut):y.fill()},wr=function(){for(var Ri=arguments.length>0&&arguments[0]!==void 0?arguments[0]:tt,as=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,no=S.backgrounding,ca=0,ea=0;ea0&&arguments[0]!==void 0?arguments[0]:!1,as=arguments.length>1&&arguments[1]!==void 0?arguments[1]:tt;O.hasPie(g)&&(O.drawPie(y,g,as),Ri&&(at||O.nodeShapes[O.getNodeShape(g)].draw(y,U.x,U.y,$,z)))},bn=function(){var Ri=arguments.length>0&&arguments[0]!==void 0?arguments[0]:tt,as=(be>0?be:-be)*Ri,no=be>0?0:255;be!==0&&(O.colorFillStyle(y,no,no,no,as),at?y.fill(ut):y.fill())},Tr=function(){if(re>0){if(y.lineWidth=re,y.lineCap="butt",y.setLineDash)switch(fn){case"dotted":y.setLineDash([1,1]);break;case"dashed":y.setLineDash([4,2]);break;case"solid":case"double":y.setLineDash([]);break}if(at?y.stroke(ut):y.stroke(),fn==="double"){y.lineWidth=re/3;var Ri=y.globalCompositeOperation;y.globalCompositeOperation="destination-out",at?y.stroke(ut):y.stroke(),y.globalCompositeOperation=Ri}y.setLineDash&&y.setLineDash([])}},xr=function(){A&&O.drawNodeOverlay(y,g,U,$,z)},fi=function(){A&&O.drawNodeUnderlay(y,g,U,$,z)},Ii=function(){O.drawElementText(y,g,null,T)},oa=g.pstyle("ghost").value==="yes";if(oa){var Fa=g.pstyle("ghost-offset-x").pfValue,Fi=g.pstyle("ghost-offset-y").pfValue,Ci=g.pstyle("ghost-opacity").value,Ls=Ci*tt;y.translate(Fa,Fi),qe(Ci*Pe),Sr(),wr(Ls,!0),xn(Ci*$e),Tr(),cr(be!==0||re!==0),wr(Ls,!1),bn(Ls),y.translate(-Fa,-Fi)}at&&y.translate(-U.x,-U.y),fi(),at&&y.translate(U.x,U.y),qe(),Sr(),wr(tt,!0),xn(),Tr(),cr(be!==0||re!==0),wr(tt,!1),bn(),at&&y.translate(-U.x,-U.y),Ii(),xr(),x&&y.translate(xt.x1,xt.y1)}};var htt=function(g){if(!["overlay","underlay"].includes(g))throw new Error("Invalid state");return function(x,T,A,I,O){var $=this;if(T.visible()){var z=T.pstyle("".concat(g,"-padding")).pfValue,S=T.pstyle("".concat(g,"-opacity")).value,V=T.pstyle("".concat(g,"-color")).value,U=T.pstyle("".concat(g,"-shape")).value;if(S>0){if(A=A||T.position(),I==null||O==null){var tt=T.padding();I=T.width()+2*tt,O=T.height()+2*tt}$.colorFillStyle(x,V[0],V[1],V[2],S),$.nodeShapes[U].draw(x,A.x,A.y,I+z*2,O+z*2),x.fill()}}}};Vk.drawNodeOverlay=htt("overlay"),Vk.drawNodeUnderlay=htt("underlay"),Vk.hasPie=function(y){return y=y[0],y._private.hasPie},Vk.drawPie=function(y,g,x,T){g=g[0],T=T||g.position();var A=g.cy().style(),I=g.pstyle("pie-size"),O=T.x,$=T.y,z=g.width(),S=g.height(),V=Math.min(z,S)/2,U=0,tt=this.usePaths();tt&&(O=0,$=0),I.units==="%"?V=V*I.pfValue:I.pfValue!==void 0&&(V=I.pfValue/2);for(var at=1;at<=A.pieBackgroundN;at++){var ut=g.pstyle("pie-"+at+"-background-size").value,dt=g.pstyle("pie-"+at+"-background-color").value,At=g.pstyle("pie-"+at+"-background-opacity").value*x,xt=ut/100;xt+U>1&&(xt=1-U);var Mt=1.5*Math.PI+2*Math.PI*U,Dt=2*Math.PI*xt,Bt=Mt+Dt;ut===0||U>=1||U+xt>1||(y.beginPath(),y.moveTo(O,$),y.arc(O,$,V,Mt,Bt),y.closePath(),this.colorFillStyle(y,dt[0],dt[1],dt[2],At),y.fill(),U+=xt)}};var bg={},Wgt=100;bg.getPixelRatio=function(){var y=this.data.contexts[0];if(this.forcedPixelRatio!=null)return this.forcedPixelRatio;var g=y.backingStorePixelRatio||y.webkitBackingStorePixelRatio||y.mozBackingStorePixelRatio||y.msBackingStorePixelRatio||y.oBackingStorePixelRatio||y.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/g},bg.paintCache=function(y){for(var g=this.paintCaches=this.paintCaches||[],x=!0,T,A=0;AO.minMbLowQualFrames&&(O.motionBlurPxRatio=O.mbPxRBlurry)),O.clearingMotionBlur&&(O.motionBlurPxRatio=1),O.textureDrawLastFrame&&!U&&(V[O.NODE]=!0,V[O.SELECT_BOX]=!0);var Mt=z.style(),Dt=z.zoom(),Bt=A!==void 0?A:Dt,Zt=z.pan(),Kt={x:Zt.x,y:Zt.y},$t={zoom:Dt,pan:{x:Zt.x,y:Zt.y}},ee=O.prevViewport,Ht=ee===void 0||$t.zoom!==ee.zoom||$t.pan.x!==ee.pan.x||$t.pan.y!==ee.pan.y;!Ht&&!(dt&&!ut)&&(O.motionBlurPxRatio=1),I&&(Kt=I),Bt*=$,Kt.x*=$,Kt.y*=$;var ge=O.getCachedZSortedEles();function be(Fi,Ci,Ls,es,Ri){var as=Fi.globalCompositeOperation;Fi.globalCompositeOperation="destination-out",O.colorFillStyle(Fi,255,255,255,O.motionBlurTransparency),Fi.fillRect(Ci,Ls,es,Ri),Fi.globalCompositeOperation=as}function re(Fi,Ci){var Ls,es,Ri,as;!O.clearingMotionBlur&&(Fi===S.bufferContexts[O.MOTIONBLUR_BUFFER_NODE]||Fi===S.bufferContexts[O.MOTIONBLUR_BUFFER_DRAG])?(Ls={x:Zt.x*at,y:Zt.y*at},es=Dt*at,Ri=O.canvasWidth*at,as=O.canvasHeight*at):(Ls=Kt,es=Bt,Ri=O.canvasWidth,as=O.canvasHeight),Fi.setTransform(1,0,0,1,0,0),Ci==="motionBlur"?be(Fi,0,0,Ri,as):!g&&(Ci===void 0||Ci)&&Fi.clearRect(0,0,Ri,as),x||(Fi.translate(Ls.x,Ls.y),Fi.scale(es,es)),I&&Fi.translate(I.x,I.y),A&&Fi.scale(A,A)}if(U||(O.textureDrawLastFrame=!1),U){if(O.textureDrawLastFrame=!0,!O.textureCache){O.textureCache={},O.textureCache.bb=z.mutableElements().boundingBox(),O.textureCache.texture=O.data.bufferCanvases[O.TEXTURE_BUFFER];var Pe=O.data.bufferContexts[O.TEXTURE_BUFFER];Pe.setTransform(1,0,0,1,0,0),Pe.clearRect(0,0,O.canvasWidth*O.textureMult,O.canvasHeight*O.textureMult),O.render({forcedContext:Pe,drawOnlyNodeLayer:!0,forcedPxRatio:$*O.textureMult});var $t=O.textureCache.viewport={zoom:z.zoom(),pan:z.pan(),width:O.canvasWidth,height:O.canvasHeight};$t.mpan={x:(0-$t.pan.x)/$t.zoom,y:(0-$t.pan.y)/$t.zoom}}V[O.DRAG]=!1,V[O.NODE]=!1;var ve=S.contexts[O.NODE],fn=O.textureCache.texture,$t=O.textureCache.viewport;ve.setTransform(1,0,0,1,0,0),tt?be(ve,0,0,$t.width,$t.height):ve.clearRect(0,0,$t.width,$t.height);var $e=Mt.core("outside-texture-bg-color").value,qe=Mt.core("outside-texture-bg-opacity").value;O.colorFillStyle(ve,$e[0],$e[1],$e[2],qe),ve.fillRect(0,0,$t.width,$t.height);var Dt=z.zoom();re(ve,!1),ve.clearRect($t.mpan.x,$t.mpan.y,$t.width/$t.zoom/$,$t.height/$t.zoom/$),ve.drawImage(fn,$t.mpan.x,$t.mpan.y,$t.width/$t.zoom/$,$t.height/$t.zoom/$)}else O.textureOnViewport&&!g&&(O.textureCache=null);var xn=z.extent(),Nn=O.pinching||O.hoverData.dragging||O.swipePanning||O.data.wheelZooming||O.hoverData.draggingEles||O.cy.animated(),er=O.hideEdgesOnViewport&&Nn,Sn=[];if(Sn[O.NODE]=!V[O.NODE]&&tt&&!O.clearedForMotionBlur[O.NODE]||O.clearingMotionBlur,Sn[O.NODE]&&(O.clearedForMotionBlur[O.NODE]=!0),Sn[O.DRAG]=!V[O.DRAG]&&tt&&!O.clearedForMotionBlur[O.DRAG]||O.clearingMotionBlur,Sn[O.DRAG]&&(O.clearedForMotionBlur[O.DRAG]=!0),V[O.NODE]||x||T||Sn[O.NODE]){var Jn=tt&&!Sn[O.NODE]&&at!==1,ve=g||(Jn?O.data.bufferContexts[O.MOTIONBLUR_BUFFER_NODE]:S.contexts[O.NODE]),fr=tt&&!Jn?"motionBlur":void 0;re(ve,fr),er?O.drawCachedNodes(ve,ge.nondrag,$,xn):O.drawLayeredElements(ve,ge.nondrag,$,xn),O.debug&&O.drawDebugPoints(ve,ge.nondrag),!x&&!tt&&(V[O.NODE]=!1)}if(!T&&(V[O.DRAG]||x||Sn[O.DRAG])){var Jn=tt&&!Sn[O.DRAG]&&at!==1,ve=g||(Jn?O.data.bufferContexts[O.MOTIONBLUR_BUFFER_DRAG]:S.contexts[O.DRAG]);re(ve,tt&&!Jn?"motionBlur":void 0),er?O.drawCachedNodes(ve,ge.drag,$,xn):O.drawCachedElements(ve,ge.drag,$,xn),O.debug&&O.drawDebugPoints(ve,ge.drag),!x&&!tt&&(V[O.DRAG]=!1)}if(O.showFps||!T&&V[O.SELECT_BOX]&&!x){var ve=g||S.contexts[O.SELECT_BOX];if(re(ve),O.selection[4]==1&&(O.hoverData.selecting||O.touchData.selecting)){var Dt=O.cy.zoom(),Sr=Mt.core("selection-box-border-width").value/Dt;ve.lineWidth=Sr,ve.fillStyle="rgba("+Mt.core("selection-box-color").value[0]+","+Mt.core("selection-box-color").value[1]+","+Mt.core("selection-box-color").value[2]+","+Mt.core("selection-box-opacity").value+")",ve.fillRect(O.selection[0],O.selection[1],O.selection[2]-O.selection[0],O.selection[3]-O.selection[1]),Sr>0&&(ve.strokeStyle="rgba("+Mt.core("selection-box-border-color").value[0]+","+Mt.core("selection-box-border-color").value[1]+","+Mt.core("selection-box-border-color").value[2]+","+Mt.core("selection-box-opacity").value+")",ve.strokeRect(O.selection[0],O.selection[1],O.selection[2]-O.selection[0],O.selection[3]-O.selection[1]))}if(S.bgActivePosistion&&!O.hoverData.selecting){var Dt=O.cy.zoom(),wr=S.bgActivePosistion;ve.fillStyle="rgba("+Mt.core("active-bg-color").value[0]+","+Mt.core("active-bg-color").value[1]+","+Mt.core("active-bg-color").value[2]+","+Mt.core("active-bg-opacity").value+")",ve.beginPath(),ve.arc(wr.x,wr.y,Mt.core("active-bg-size").pfValue/Dt,0,2*Math.PI),ve.fill()}var cr=O.lastRedrawTime;if(O.showFps&&cr){cr=Math.round(cr);var bn=Math.round(1e3/cr);ve.setTransform(1,0,0,1,0,0),ve.fillStyle="rgba(255, 0, 0, 0.75)",ve.strokeStyle="rgba(255, 0, 0, 0.75)",ve.lineWidth=1,ve.fillText("1 frame = "+cr+" ms = "+bn+" fps",0,20);var Tr=60;ve.strokeRect(0,30,250,20),ve.fillRect(0,30,250*Math.min(bn/Tr,1),20)}x||(V[O.SELECT_BOX]=!1)}if(tt&&at!==1){var xr=S.contexts[O.NODE],fi=O.data.bufferCanvases[O.MOTIONBLUR_BUFFER_NODE],Ii=S.contexts[O.DRAG],oa=O.data.bufferCanvases[O.MOTIONBLUR_BUFFER_DRAG],Fa=function(Ci,Ls,es){Ci.setTransform(1,0,0,1,0,0),es||!xt?Ci.clearRect(0,0,O.canvasWidth,O.canvasHeight):be(Ci,0,0,O.canvasWidth,O.canvasHeight);var Ri=at;Ci.drawImage(Ls,0,0,O.canvasWidth*Ri,O.canvasHeight*Ri,0,0,O.canvasWidth,O.canvasHeight)};(V[O.NODE]||Sn[O.NODE])&&(Fa(xr,fi,Sn[O.NODE]),V[O.NODE]=!1),(V[O.DRAG]||Sn[O.DRAG])&&(Fa(Ii,oa,Sn[O.DRAG]),V[O.DRAG]=!1)}O.prevViewport=$t,O.clearingMotionBlur&&(O.clearingMotionBlur=!1,O.motionBlurCleared=!0,O.motionBlur=!0),tt&&(O.motionBlurTimeout=setTimeout(function(){O.motionBlurTimeout=null,O.clearedForMotionBlur[O.NODE]=!1,O.clearedForMotionBlur[O.DRAG]=!1,O.motionBlur=!1,O.clearingMotionBlur=!U,O.mbFrames=0,V[O.NODE]=!0,V[O.DRAG]=!0,O.redraw()},Wgt)),g||z.emit("render")};var D3={};D3.drawPolygonPath=function(y,g,x,T,A,I){var O=T/2,$=A/2;y.beginPath&&y.beginPath(),y.moveTo(g+O*I[0],x+$*I[1]);for(var z=1;z0&&O>0){at.clearRect(0,0,I,O),at.globalCompositeOperation="source-over";var ut=this.getCachedZSortedEles();if(y.full)at.translate(-T.x1*S,-T.y1*S),at.scale(S,S),this.drawElements(at,ut),at.scale(1/S,1/S),at.translate(T.x1*S,T.y1*S);else{var dt=g.pan(),At={x:dt.x*S,y:dt.y*S};S*=g.zoom(),at.translate(At.x,At.y),at.scale(S,S),this.drawElements(at,ut),at.scale(1/S,1/S),at.translate(-At.x,-At.y)}y.bg&&(at.globalCompositeOperation="destination-over",at.fillStyle=y.bg,at.rect(0,0,I,O),at.fill())}return tt};function Kgt(y,g){for(var x=atob(y),T=new ArrayBuffer(x.length),A=new Uint8Array(T),I=0;I"u"?"undefined":f(OffscreenCanvas))!=="undefined"?x=new OffscreenCanvas(y,g):(x=document.createElement("canvas"),x.width=y,x.height=g),x},[_0,hv,fv,bT,l6,Vk,bg,D3,vT,vtt].forEach(function(y){Ke(Dc,y)});var h6=[{name:"null",impl:SB},{name:"base",impl:XL},{name:"canvas",impl:Ygt}],vg=[{type:"layout",extensions:zJ},{type:"renderer",extensions:h6}],km={},nM={};function T1(y,g,x){var T=x,A=function(ee){Wo("Can not register `"+g+"` for `"+y+"` since `"+ee+"` already exists in the prototype and can not be overridden")};if(y==="core"){if(Fk.prototype[g])return A(g);Fk.prototype[g]=x}else if(y==="collection"){if(Gf.prototype[g])return A(g);Gf.prototype[g]=x}else if(y==="layout"){for(var I=function(ee){this.options=ee,x.call(this,ee),ht(this._private)||(this._private={}),this._private.cy=ee.cy,this._private.listeners=[],this.createEmitter()},O=I.prototype=Object.create(x.prototype),$=[],z=0;z<$.length;z++){var S=$[z];O[S]=O[S]||function(){return this}}O.start&&!O.run?O.run=function(){return this.start(),this}:!O.start&&O.run&&(O.start=function(){return this.run(),this});var V=x.prototype.stop;O.stop=function(){var $t=this.options;if($t&&$t.animate){var ee=this.animations;if(ee)for(var Ht=0;HtH&&(this.rect.x-=(this.labelWidth-H)/2,this.setWidth(this.labelWidth)),this.labelHeight>Y&&(this.labelPos=="center"?this.rect.y-=(this.labelHeight-Y)/2:this.labelPos=="top"&&(this.rect.y-=this.labelHeight-Y),this.setHeight(this.labelHeight))}}},B.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==b.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},B.prototype.transform=function(R){var H=this.rect.x;H>C.WORLD_BOUNDARY?H=C.WORLD_BOUNDARY:H<-C.WORLD_BOUNDARY&&(H=-C.WORLD_BOUNDARY);var Y=this.rect.y;Y>C.WORLD_BOUNDARY?Y=C.WORLD_BOUNDARY:Y<-C.WORLD_BOUNDARY&&(Y=-C.WORLD_BOUNDARY);var it=new P(H,Y),nt=R.inverseTransformPoint(it);this.setLocation(nt.x,nt.y)},B.prototype.getLeft=function(){return this.rect.x},B.prototype.getRight=function(){return this.rect.x+this.rect.width},B.prototype.getTop=function(){return this.rect.y},B.prototype.getBottom=function(){return this.rect.y+this.rect.height},B.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},f.exports=B},function(f,p,v){function m(b,E){b==null&&E==null?(this.x=0,this.y=0):(this.x=b,this.y=E)}m.prototype.getX=function(){return this.x},m.prototype.getY=function(){return this.y},m.prototype.setX=function(b){this.x=b},m.prototype.setY=function(b){this.y=b},m.prototype.getDifference=function(b){return new DimensionD(this.x-b.x,this.y-b.y)},m.prototype.getCopy=function(){return new m(this.x,this.y)},m.prototype.translate=function(b){return this.x+=b.width,this.y+=b.height,this},f.exports=m},function(f,p,v){var m=v(2),b=v(10),E=v(0),C=v(6),D=v(3),P=v(1),B=v(13),j=v(12),R=v(11);function H(it,nt,st){m.call(this,st),this.estimatedSize=b.MIN_VALUE,this.margin=E.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=it,nt!=null&&nt instanceof C?this.graphManager=nt:nt!=null&&nt instanceof Layout&&(this.graphManager=nt.graphManager)}H.prototype=Object.create(m.prototype);for(var Y in m)H[Y]=m[Y];H.prototype.getNodes=function(){return this.nodes},H.prototype.getEdges=function(){return this.edges},H.prototype.getGraphManager=function(){return this.graphManager},H.prototype.getParent=function(){return this.parent},H.prototype.getLeft=function(){return this.left},H.prototype.getRight=function(){return this.right},H.prototype.getTop=function(){return this.top},H.prototype.getBottom=function(){return this.bottom},H.prototype.isConnected=function(){return this.isConnected},H.prototype.add=function(it,nt,st){if(nt==null&&st==null){var pt=it;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(pt)>-1)throw"Node already in graph!";return pt.owner=this,this.getNodes().push(pt),pt}else{var Tt=it;if(!(this.getNodes().indexOf(nt)>-1&&this.getNodes().indexOf(st)>-1))throw"Source or target not in graph!";if(!(nt.owner==st.owner&&nt.owner==this))throw"Both owners must be this graph!";return nt.owner!=st.owner?null:(Tt.source=nt,Tt.target=st,Tt.isInterGraph=!1,this.getEdges().push(Tt),nt.edges.push(Tt),st!=nt&&st.edges.push(Tt),Tt)}},H.prototype.remove=function(it){var nt=it;if(it instanceof D){if(nt==null)throw"Node is null!";if(!(nt.owner!=null&&nt.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var st=nt.edges.slice(),pt,Tt=st.length,kt=0;kt-1&&mt>-1))throw"Source and/or target doesn't know this edge!";pt.source.edges.splice(ht,1),pt.target!=pt.source&&pt.target.edges.splice(mt,1);var yt=pt.source.owner.getEdges().indexOf(pt);if(yt==-1)throw"Not in owner's edge list!";pt.source.owner.getEdges().splice(yt,1)}},H.prototype.updateLeftTop=function(){for(var it=b.MAX_VALUE,nt=b.MAX_VALUE,st,pt,Tt,kt=this.getNodes(),yt=kt.length,ht=0;htst&&(it=st),nt>pt&&(nt=pt)}return it==b.MAX_VALUE?null:(kt[0].getParent().paddingLeft!=null?Tt=kt[0].getParent().paddingLeft:Tt=this.margin,this.left=nt-Tt,this.top=it-Tt,new j(this.left,this.top))},H.prototype.updateBounds=function(it){for(var nt=b.MAX_VALUE,st=-b.MAX_VALUE,pt=b.MAX_VALUE,Tt=-b.MAX_VALUE,kt,yt,ht,mt,rt,wt=this.nodes,gt=wt.length,lt=0;ltkt&&(nt=kt),stht&&(pt=ht),Ttkt&&(nt=kt),stht&&(pt=ht),Tt=this.nodes.length){var gt=0;st.forEach(function(lt){lt.owner==it&>++}),gt==this.nodes.length&&(this.isConnected=!0)}},f.exports=H},function(f,p,v){var m,b=v(1);function E(C){m=v(5),this.layout=C,this.graphs=[],this.edges=[]}E.prototype.addRoot=function(){var C=this.layout.newGraph(),D=this.layout.newNode(null),P=this.add(C,D);return this.setRootGraph(P),this.rootGraph},E.prototype.add=function(C,D,P,B,j){if(P==null&&B==null&&j==null){if(C==null)throw"Graph is null!";if(D==null)throw"Parent node is null!";if(this.graphs.indexOf(C)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(C),C.parent!=null)throw"Already has a parent!";if(D.child!=null)throw"Already has a child!";return C.parent=D,D.child=C,C}else{j=P,B=D,P=C;var R=B.getOwner(),H=j.getOwner();if(!(R!=null&&R.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(H!=null&&H.getGraphManager()==this))throw"Target not in this graph mgr!";if(R==H)return P.isInterGraph=!1,R.add(P,B,j);if(P.isInterGraph=!0,P.source=B,P.target=j,this.edges.indexOf(P)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(P),!(P.source!=null&&P.target!=null))throw"Edge source and/or target is null!";if(!(P.source.edges.indexOf(P)==-1&&P.target.edges.indexOf(P)==-1))throw"Edge already in source and/or target incidency list!";return P.source.edges.push(P),P.target.edges.push(P),P}},E.prototype.remove=function(C){if(C instanceof m){var D=C;if(D.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(D==this.rootGraph||D.parent!=null&&D.parent.graphManager==this))throw"Invalid parent node!";var P=[];P=P.concat(D.getEdges());for(var B,j=P.length,R=0;R=C.getRight()?D[0]+=Math.min(C.getX()-E.getX(),E.getRight()-C.getRight()):C.getX()<=E.getX()&&C.getRight()>=E.getRight()&&(D[0]+=Math.min(E.getX()-C.getX(),C.getRight()-E.getRight())),E.getY()<=C.getY()&&E.getBottom()>=C.getBottom()?D[1]+=Math.min(C.getY()-E.getY(),E.getBottom()-C.getBottom()):C.getY()<=E.getY()&&C.getBottom()>=E.getBottom()&&(D[1]+=Math.min(E.getY()-C.getY(),C.getBottom()-E.getBottom()));var j=Math.abs((C.getCenterY()-E.getCenterY())/(C.getCenterX()-E.getCenterX()));C.getCenterY()===E.getCenterY()&&C.getCenterX()===E.getCenterX()&&(j=1);var R=j*D[0],H=D[1]/j;D[0]R)return D[0]=P,D[1]=Y,D[2]=j,D[3]=wt,!1;if(Bj)return D[0]=H,D[1]=B,D[2]=mt,D[3]=R,!1;if(Pj?(D[0]=nt,D[1]=st,X=!0):(D[0]=it,D[1]=Y,X=!0):ft===J&&(P>j?(D[0]=H,D[1]=Y,X=!0):(D[0]=pt,D[1]=st,X=!0)),-de===J?j>P?(D[2]=rt,D[3]=wt,Rt=!0):(D[2]=mt,D[3]=ht,Rt=!0):de===J&&(j>P?(D[2]=yt,D[3]=ht,Rt=!0):(D[2]=gt,D[3]=wt,Rt=!0)),X&&Rt)return!1;if(P>j?B>R?(ae=this.getCardinalDirection(ft,J,4),Wt=this.getCardinalDirection(de,J,2)):(ae=this.getCardinalDirection(-ft,J,3),Wt=this.getCardinalDirection(-de,J,1)):B>R?(ae=this.getCardinalDirection(-ft,J,1),Wt=this.getCardinalDirection(-de,J,3)):(ae=this.getCardinalDirection(ft,J,2),Wt=this.getCardinalDirection(de,J,4)),!X)switch(ae){case 1:Nt=Y,It=P+-kt/J,D[0]=It,D[1]=Nt;break;case 2:It=pt,Nt=B+Tt*J,D[0]=It,D[1]=Nt;break;case 3:Nt=st,It=P+kt/J,D[0]=It,D[1]=Nt;break;case 4:It=nt,Nt=B+-Tt*J,D[0]=It,D[1]=Nt;break}if(!Rt)switch(Wt){case 1:Ue=ht,me=j+-_t/J,D[2]=me,D[3]=Ue;break;case 2:me=gt,Ue=R+lt*J,D[2]=me,D[3]=Ue;break;case 3:Ue=wt,me=j+_t/J,D[2]=me,D[3]=Ue;break;case 4:me=rt,Ue=R+-lt*J,D[2]=me,D[3]=Ue;break}}return!1},b.getCardinalDirection=function(E,C,D){return E>C?D:1+D%4},b.getIntersection=function(E,C,D,P){if(P==null)return this.getIntersection2(E,C,D);var B=E.x,j=E.y,R=C.x,H=C.y,Y=D.x,it=D.y,nt=P.x,st=P.y,pt=void 0,Tt=void 0,kt=void 0,yt=void 0,ht=void 0,mt=void 0,rt=void 0,wt=void 0,gt=void 0;return kt=H-j,ht=B-R,rt=R*j-B*H,yt=st-it,mt=Y-nt,wt=nt*it-Y*st,gt=kt*mt-yt*ht,gt===0?null:(pt=(ht*wt-mt*rt)/gt,Tt=(yt*rt-kt*wt)/gt,new m(pt,Tt))},b.angleOfVector=function(E,C,D,P){var B=void 0;return E!==D?(B=Math.atan((P-C)/(D-E)),D0?1:b<0?-1:0},m.floor=function(b){return b<0?Math.ceil(b):Math.floor(b)},m.ceil=function(b){return b<0?Math.floor(b):Math.ceil(b)},f.exports=m},function(f,p,v){function m(){}m.MAX_VALUE=2147483647,m.MIN_VALUE=-2147483648,f.exports=m},function(f,p,v){var m=function(){function B(j,R){for(var H=0;H"u"?"undefined":m(E);return E==null||C!="object"&&C!="function"},f.exports=b},function(f,p,v){function m(Y){if(Array.isArray(Y)){for(var it=0,nt=Array(Y.length);it0&⁢){for(kt.push(ht[0]);kt.length>0&⁢){var mt=kt[0];kt.splice(0,1),Tt.add(mt);for(var rt=mt.getEdges(),pt=0;pt-1&&ht.splice(_t,1)}Tt=new Set,yt=new Map}}return Y},H.prototype.createDummyNodesForBendpoints=function(Y){for(var it=[],nt=Y.source,st=this.graphManager.calcLowestCommonAncestor(Y.source,Y.target),pt=0;pt0){for(var st=this.edgeToDummyNodes.get(nt),pt=0;pt=0&&it.splice(wt,1);var gt=yt.getNeighborsList();gt.forEach(function(X){if(nt.indexOf(X)<0){var Rt=st.get(X),ft=Rt-1;ft==1&&mt.push(X),st.set(X,ft)}})}nt=nt.concat(mt),(it.length==1||it.length==2)&&(pt=!0,Tt=it[0])}return Tt},H.prototype.setGraphManager=function(Y){this.graphManager=Y},f.exports=H},function(f,p,v){function m(){}m.seed=1,m.x=0,m.nextDouble=function(){return m.x=Math.sin(m.seed++)*1e4,m.x-Math.floor(m.x)},f.exports=m},function(f,p,v){var m=v(4);function b(E,C){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}b.prototype.getWorldOrgX=function(){return this.lworldOrgX},b.prototype.setWorldOrgX=function(E){this.lworldOrgX=E},b.prototype.getWorldOrgY=function(){return this.lworldOrgY},b.prototype.setWorldOrgY=function(E){this.lworldOrgY=E},b.prototype.getWorldExtX=function(){return this.lworldExtX},b.prototype.setWorldExtX=function(E){this.lworldExtX=E},b.prototype.getWorldExtY=function(){return this.lworldExtY},b.prototype.setWorldExtY=function(E){this.lworldExtY=E},b.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},b.prototype.setDeviceOrgX=function(E){this.ldeviceOrgX=E},b.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},b.prototype.setDeviceOrgY=function(E){this.ldeviceOrgY=E},b.prototype.getDeviceExtX=function(){return this.ldeviceExtX},b.prototype.setDeviceExtX=function(E){this.ldeviceExtX=E},b.prototype.getDeviceExtY=function(){return this.ldeviceExtY},b.prototype.setDeviceExtY=function(E){this.ldeviceExtY=E},b.prototype.transformX=function(E){var C=0,D=this.lworldExtX;return D!=0&&(C=this.ldeviceOrgX+(E-this.lworldOrgX)*this.ldeviceExtX/D),C},b.prototype.transformY=function(E){var C=0,D=this.lworldExtY;return D!=0&&(C=this.ldeviceOrgY+(E-this.lworldOrgY)*this.ldeviceExtY/D),C},b.prototype.inverseTransformX=function(E){var C=0,D=this.ldeviceExtX;return D!=0&&(C=this.lworldOrgX+(E-this.ldeviceOrgX)*this.lworldExtX/D),C},b.prototype.inverseTransformY=function(E){var C=0,D=this.ldeviceExtY;return D!=0&&(C=this.lworldOrgY+(E-this.ldeviceOrgY)*this.lworldExtY/D),C},b.prototype.inverseTransformPoint=function(E){var C=new m(this.inverseTransformX(E.x),this.inverseTransformY(E.y));return C},f.exports=b},function(f,p,v){function m(R){if(Array.isArray(R)){for(var H=0,Y=Array(R.length);HE.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*E.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(R-E.ADAPTATION_LOWER_NODE_LIMIT)/(E.ADAPTATION_UPPER_NODE_LIMIT-E.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-E.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=E.MAX_NODE_DISPLACEMENT_INCREMENTAL):(R>E.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(E.COOLING_ADAPTATION_FACTOR,1-(R-E.ADAPTATION_LOWER_NODE_LIMIT)/(E.ADAPTATION_UPPER_NODE_LIMIT-E.ADAPTATION_LOWER_NODE_LIMIT)*(1-E.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=E.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},B.prototype.calcSpringForces=function(){for(var R=this.getAllEdges(),H,Y=0;Y0&&arguments[0]!==void 0?arguments[0]:!0,H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Y,it,nt,st,pt=this.getAllNodes(),Tt;if(this.useFRGridVariant)for(this.totalIterations%E.GRID_CALCULATION_CHECK_PERIOD==1&&R&&this.updateGrid(),Tt=new Set,Y=0;Ykt||Tt>kt)&&(R.gravitationForceX=-this.gravityConstant*nt,R.gravitationForceY=-this.gravityConstant*st)):(kt=H.getEstimatedSize()*this.compoundGravityRangeFactor,(pt>kt||Tt>kt)&&(R.gravitationForceX=-this.gravityConstant*nt*this.compoundGravityConstant,R.gravitationForceY=-this.gravityConstant*st*this.compoundGravityConstant))},B.prototype.isConverged=function(){var R,H=!1;return this.totalIterations>this.maxIterations/3&&(H=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),R=this.totalDisplacement=pt.length||kt>=pt[0].length)){for(var yt=0;ytB}}]),D}();f.exports=C},function(f,p,v){var m=function(){function C(D,P){for(var B=0;B2&&arguments[2]!==void 0?arguments[2]:1,j=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,R=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;b(this,C),this.sequence1=D,this.sequence2=P,this.match_score=B,this.mismatch_penalty=j,this.gap_penalty=R,this.iMax=D.length+1,this.jMax=P.length+1,this.grid=new Array(this.iMax);for(var H=0;H=0;D--){var P=this.listeners[D];P.event===E&&P.callback===C&&this.listeners.splice(D,1)}},b.emit=function(E,C){for(var D=0;DP.coolingFactor*P.maxNodeDisplacement&&(this.displacementX=P.coolingFactor*P.maxNodeDisplacement*E.sign(this.displacementX)),Math.abs(this.displacementY)>P.coolingFactor*P.maxNodeDisplacement&&(this.displacementY=P.coolingFactor*P.maxNodeDisplacement*E.sign(this.displacementY)),this.child==null?this.moveBy(this.displacementX,this.displacementY):this.child.getNodes().length==0?this.moveBy(this.displacementX,this.displacementY):this.propogateDisplacementToChildren(this.displacementX,this.displacementY),P.totalDisplacement+=Math.abs(this.displacementX)+Math.abs(this.displacementY),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0},C.prototype.propogateDisplacementToChildren=function(P,B){for(var j=this.getChild().getNodes(),R,H=0;H0)this.positionNodesRadially(ht);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var mt=new Set(this.getAllNodes()),rt=this.nodesWithGravity.filter(function(wt){return mt.has(wt)});this.graphManager.setAllNodesToApplyGravitation(rt),this.positionNodesRandomly()}}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},kt.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%j.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var ht=new Set(this.getAllNodes()),mt=this.nodesWithGravity.filter(function(gt){return ht.has(gt)});this.graphManager.setAllNodesToApplyGravitation(mt),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=j.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),this.coolingFactor=j.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var rt=!this.isTreeGrowing&&!this.isGrowthFinished,wt=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(rt,wt),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},kt.prototype.getPositionsData=function(){for(var ht=this.graphManager.getAllNodes(),mt={},rt=0;rt1){var X;for(X=0;X<_t.length;X++){var Rt=_t[X];Rt.getBendpoints().push(new Y),this.createDummyNodesForBendpoints(Rt)}}_t.forEach(function(ft){mt.add(ft)})}}}if(mt.size==ht.length)break}},kt.prototype.positionNodesRadially=function(ht){for(var mt=new H(0,0),rt=Math.ceil(Math.sqrt(ht.length)),wt=0,gt=0,lt=0,_t=new Y(0,0),X=0;Xwt&&(wt=Math.floor(_t.y)),lt=Math.floor(_t.x+B.DEFAULT_COMPONENT_SEPERATION)}this.transform(new Y(R.WORLD_CENTER_X-_t.x/2,R.WORLD_CENTER_Y-_t.y/2))},kt.radialLayout=function(ht,mt,rt){var wt=Math.max(this.maxDiagonalInTree(ht),B.DEFAULT_RADIAL_SEPARATION);kt.branchRadialLayout(mt,null,0,359,0,wt);var gt=pt.calculateBounds(ht),lt=new Tt;lt.setDeviceOrgX(gt.getMinX()),lt.setDeviceOrgY(gt.getMinY()),lt.setWorldOrgX(rt.x),lt.setWorldOrgY(rt.y);for(var _t=0;_t1;){var Ue=me[0];me.splice(0,1);var _n=J.indexOf(Ue);_n>=0&&J.splice(_n,1),It--,ae--}mt!=null?Nt=(J.indexOf(me[0])+1)%It:Nt=0;for(var _e=Math.abs(wt-rt)/ae,rr=Nt;Wt!=ae;rr=++rr%It){var Te=J[rr].getOtherEnd(ht);if(Te!=mt){var ne=(rt+Wt*_e)%360,Ee=(ne+_e)%360;kt.branchRadialLayout(Te,ht,ne,Ee,gt+lt,lt),Wt++}}},kt.maxDiagonalInTree=function(ht){for(var mt=nt.MIN_VALUE,rt=0;rtmt&&(mt=gt)}return mt},kt.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},kt.prototype.groupZeroDegreeMembers=function(){var ht=this,mt={};this.memberGroups={},this.idToDummyNode={};for(var rt=[],wt=this.graphManager.getAllNodes(),gt=0;gt"u"&&(mt[X]=[]),mt[X]=mt[X].concat(lt)}Object.keys(mt).forEach(function(Rt){if(mt[Rt].length>1){var ft="DummyCompound_"+Rt;ht.memberGroups[ft]=mt[Rt];var de=mt[Rt][0].getParent(),J=new D(ht.graphManager);J.id=ft,J.paddingLeft=de.paddingLeft||0,J.paddingRight=de.paddingRight||0,J.paddingBottom=de.paddingBottom||0,J.paddingTop=de.paddingTop||0,ht.idToDummyNode[ft]=J;var ae=ht.getGraphManager().add(ht.newGraph(),J),Wt=de.getChild();Wt.add(J);for(var It=0;It=0;ht--){var mt=this.compoundOrder[ht],rt=mt.id,wt=mt.paddingLeft,gt=mt.paddingTop;this.adjustLocations(this.tiledMemberPack[rt],mt.rect.x,mt.rect.y,wt,gt)}},kt.prototype.repopulateZeroDegreeMembers=function(){var ht=this,mt=this.tiledZeroDegreePack;Object.keys(mt).forEach(function(rt){var wt=ht.idToDummyNode[rt],gt=wt.paddingLeft,lt=wt.paddingTop;ht.adjustLocations(mt[rt],wt.rect.x,wt.rect.y,gt,lt)})},kt.prototype.getToBeTiled=function(ht){var mt=ht.id;if(this.toBeTiled[mt]!=null)return this.toBeTiled[mt];var rt=ht.getChild();if(rt==null)return this.toBeTiled[mt]=!1,!1;for(var wt=rt.getNodes(),gt=0;gt0)return this.toBeTiled[mt]=!1,!1;if(lt.getChild()==null){this.toBeTiled[lt.id]=!1;continue}if(!this.getToBeTiled(lt))return this.toBeTiled[mt]=!1,!1}return this.toBeTiled[mt]=!0,!0},kt.prototype.getNodeDegree=function(ht){ht.id;for(var mt=ht.getEdges(),rt=0,wt=0;wtRt&&(Rt=de.rect.height)}rt+=Rt+ht.verticalPadding}},kt.prototype.tileCompoundMembers=function(ht,mt){var rt=this;this.tiledMemberPack=[],Object.keys(ht).forEach(function(wt){var gt=mt[wt];rt.tiledMemberPack[wt]=rt.tileNodes(ht[wt],gt.paddingLeft+gt.paddingRight),gt.rect.width=rt.tiledMemberPack[wt].width,gt.rect.height=rt.tiledMemberPack[wt].height})},kt.prototype.tileNodes=function(ht,mt){var rt=B.TILING_PADDING_VERTICAL,wt=B.TILING_PADDING_HORIZONTAL,gt={rows:[],rowWidth:[],rowHeight:[],width:0,height:mt,verticalPadding:rt,horizontalPadding:wt};ht.sort(function(X,Rt){return X.rect.width*X.rect.height>Rt.rect.width*Rt.rect.height?-1:X.rect.width*X.rect.height0&&(_t+=ht.horizontalPadding),ht.rowWidth[rt]=_t,ht.width<_t&&(ht.width=_t);var X=mt.rect.height;rt>0&&(X+=ht.verticalPadding);var Rt=0;X>ht.rowHeight[rt]&&(Rt=ht.rowHeight[rt],ht.rowHeight[rt]=X,Rt=ht.rowHeight[rt]-Rt),ht.height+=Rt,ht.rows[rt].push(mt)},kt.prototype.getShortestRowIndex=function(ht){for(var mt=-1,rt=Number.MAX_VALUE,wt=0;wtrt&&(mt=wt,rt=ht.rowWidth[wt]);return mt},kt.prototype.canAddHorizontal=function(ht,mt,rt){var wt=this.getShortestRowIndex(ht);if(wt<0)return!0;var gt=ht.rowWidth[wt];if(gt+ht.horizontalPadding+mt<=ht.width)return!0;var lt=0;ht.rowHeight[wt]0&&(lt=rt+ht.verticalPadding-ht.rowHeight[wt]);var _t;ht.width-gt>=mt+ht.horizontalPadding?_t=(ht.height+lt)/(gt+mt+ht.horizontalPadding):_t=(ht.height+lt)/ht.width,lt=rt+ht.verticalPadding;var X;return ht.widthlt&&mt!=rt){wt.splice(-1,1),ht.rows[rt].push(gt),ht.rowWidth[mt]=ht.rowWidth[mt]-lt,ht.rowWidth[rt]=ht.rowWidth[rt]+lt,ht.width=ht.rowWidth[instance.getLongestRowIndex(ht)];for(var _t=Number.MIN_VALUE,X=0;X_t&&(_t=wt[X].height);mt>0&&(_t+=ht.verticalPadding);var Rt=ht.rowHeight[mt]+ht.rowHeight[rt];ht.rowHeight[mt]=_t,ht.rowHeight[rt]0)for(var Wt=gt;Wt<=lt;Wt++)ae[0]+=this.grid[Wt][_t-1].length+this.grid[Wt][_t].length-1;if(lt0)for(var Wt=_t;Wt<=X;Wt++)ae[3]+=this.grid[gt-1][Wt].length+this.grid[gt][Wt].length-1;for(var It=nt.MAX_VALUE,Nt,me,Ue=0;Ue0){var X;X=Tt.getGraphManager().add(Tt.newGraph(),rt),this.processChildrenList(X,mt,Tt)}}},Y.prototype.stop=function(){return this.stopped=!0,this};var nt=function(pt){pt("layout","cose-bilkent",Y)};typeof cytoscape<"u"&&nt(cytoscape),p.exports=nt}])})})(uUe);const gUe=hLt(Ngt);gjt.use(gUe);function vjt(i,a,f,p){djt.drawNode(i,a,f,p),a.children&&a.children.forEach((v,m)=>{vjt(i,v,f<0?m:f,p)})}function pUe(i,a){a.edges().map((f,p)=>{const v=f.data();if(f[0]._private.bodyBounds){const m=f[0]._private.rscratch;zt.trace("Edge: ",p,v),i.insert("path").attr("d",`M ${m.startX},${m.startY} L ${m.midX},${m.midY} L${m.endX},${m.endY} `).attr("class","edge section-edge-"+v.section+" edge-depth-"+v.depth)}})}function wjt(i,a,f,p){a.add({group:"nodes",data:{id:i.id,labelText:i.descr,height:i.height,width:i.width,level:p,nodeId:i.id,padding:i.padding,type:i.type},position:{x:i.x,y:i.y}}),i.children&&i.children.forEach(v=>{wjt(v,a,f,p+1),a.add({group:"edges",data:{id:`${i.id}_${v.id}`,source:i.id,target:v.id,depth:p,section:v.section}})})}function bUe(i,a){return new Promise(f=>{const p=Mr("body").append("div").attr("id","cy").attr("style","display:none"),v=gjt({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"bezier"}}]});p.remove(),wjt(i,v,a,0),v.nodes().forEach(function(m){m.layoutDimensions=()=>{const b=m.data();return{w:b.width,h:b.height}}}),v.layout({name:"cose-bilkent",quality:"proof",styleEnabled:!1,animate:!1}).run(),v.ready(m=>{zt.info("Ready",m),f(v)})})}function vUe(i){i.nodes().map((a,f)=>{const p=a.data();p.x=a.position().x,p.y=a.position().y,djt.positionNode(p);const v=Igt(p.nodeId);zt.info("Id:",f,"Position: (",a.position().x,", ",a.position().y,")",p),v.attr("transform",`translate(${a.position().x-p.width/2}, ${a.position().y-p.height/2})`),v.attr("attr",`apa-${f})`)})}const wUe={draw:async(i,a,f,p)=>{const v=Oe();v.htmlLabels=!1,p.db.clear(),p.parser.parse(i),zt.debug(`Rendering mindmap diagram -`+i,p.parser);const m=Oe().securityLevel;let b;m==="sandbox"&&(b=Mr("#i"+a));const C=Mr(m==="sandbox"?b.nodes()[0].contentDocument.body:"body").select("#"+a);C.append("g");const D=p.db.getMindmap(),P=C.append("g");P.attr("class","mindmap-edges");const B=C.append("g");B.attr("class","mindmap-nodes"),vjt(B,D,-1,v);const j=await bUe(D,v);pUe(P,j),vUe(j),Z9(void 0,C,v.mindmap.padding,v.mindmap.useMaxWidth)}},mUe=i=>{let a="";for(let f=0;foXt});var oXt,dmt=R(()=>{"use strict";Hpt();emt();cmt();hmt();oXt={db:CB,renderer:lmt,parser:Upt,styles:umt}});var AB,gmt,ymt=R(()=>{"use strict";AB=function(){var e=o(function(S,T,E,_){for(E=E||{},_=S.length;_--;E[S[_]]=T);return E},"o"),t=[1,4],r=[1,13],n=[1,12],i=[1,15],a=[1,16],s=[1,20],l=[1,19],u=[6,7,8],h=[1,26],f=[1,24],d=[1,25],p=[6,7,11],m=[1,6,13,15,16,19,22],g=[1,33],y=[1,34],v=[1,6,7,11,13,15,16,19,22],x={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:o(function(T,E,_,A,L,M,N){var k=M.length-1;switch(L){case 6:case 7:return A;case 8:A.getLogger().trace("Stop NL ");break;case 9:A.getLogger().trace("Stop EOF ");break;case 11:A.getLogger().trace("Stop NL2 ");break;case 12:A.getLogger().trace("Stop EOF2 ");break;case 15:A.getLogger().info("Node: ",M[k].id),A.addNode(M[k-1].length,M[k].id,M[k].descr,M[k].type);break;case 16:A.getLogger().trace("Icon: ",M[k]),A.decorateNode({icon:M[k]});break;case 17:case 21:A.decorateNode({class:M[k]});break;case 18:A.getLogger().trace("SPACELIST");break;case 19:A.getLogger().trace("Node: ",M[k].id),A.addNode(0,M[k].id,M[k].descr,M[k].type);break;case 20:A.decorateNode({icon:M[k]});break;case 25:A.getLogger().trace("node found ..",M[k-2]),this.$={id:M[k-1],descr:M[k-1],type:A.getType(M[k-2],M[k])};break;case 26:this.$={id:M[k],descr:M[k],type:A.nodeType.DEFAULT};break;case 27:A.getLogger().trace("node found ..",M[k-3]),this.$={id:M[k-3],descr:M[k-1],type:A.getType(M[k-2],M[k])};break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:t},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:t},{6:r,7:[1,10],9:9,12:11,13:n,14:14,15:i,16:a,17:17,18:18,19:s,22:l},e(u,[2,3]),{1:[2,2]},e(u,[2,4]),e(u,[2,5]),{1:[2,6],6:r,12:21,13:n,14:14,15:i,16:a,17:17,18:18,19:s,22:l},{6:r,9:22,12:11,13:n,14:14,15:i,16:a,17:17,18:18,19:s,22:l},{6:h,7:f,10:23,11:d},e(p,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:s,22:l}),e(p,[2,18]),e(p,[2,19]),e(p,[2,20]),e(p,[2,21]),e(p,[2,23]),e(p,[2,24]),e(p,[2,26],{19:[1,30]}),{20:[1,31]},{6:h,7:f,10:32,11:d},{1:[2,7],6:r,12:21,13:n,14:14,15:i,16:a,17:17,18:18,19:s,22:l},e(m,[2,14],{7:g,11:y}),e(v,[2,8]),e(v,[2,9]),e(v,[2,10]),e(p,[2,15]),e(p,[2,16]),e(p,[2,17]),{20:[1,35]},{21:[1,36]},e(m,[2,13],{7:g,11:y}),e(v,[2,11]),e(v,[2,12]),{21:[1,37]},e(p,[2,25]),e(p,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(function(T,E){if(E.recoverable)this.trace(T);else{var _=new Error(T);throw _.hash=E,_}},"parseError"),parse:o(function(T){var E=this,_=[0],A=[],L=[null],M=[],N=this.table,k="",I=0,C=0,O=0,D=2,P=1,F=M.slice.call(arguments,1),B=Object.create(this.lexer),G={yy:{}};for(var z in this.yy)Object.prototype.hasOwnProperty.call(this.yy,z)&&(G.yy[z]=this.yy[z]);B.setInput(T,G.yy),G.yy.lexer=B,G.yy.parser=this,typeof B.yylloc>"u"&&(B.yylloc={});var W=B.yylloc;M.push(W);var Q=B.options&&B.options.ranges;typeof G.yy.parseError=="function"?this.parseError=G.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function j(wt){_.length=_.length-2*wt,L.length=L.length-wt,M.length=M.length-wt}o(j,"popStack");function at(){var wt;return wt=A.pop()||B.lex()||P,typeof wt!="number"&&(wt instanceof Array&&(A=wt,wt=A.pop()),wt=E.symbols_[wt]||wt),wt}o(at,"lex");for(var X,J,Z,H,q,K,ot={},ct,ut,et,Mt;;){if(Z=_[_.length-1],this.defaultActions[Z]?H=this.defaultActions[Z]:((X===null||typeof X>"u")&&(X=at()),H=N[Z]&&N[Z][X]),typeof H>"u"||!H.length||!H[0]){var it="";Mt=[];for(ct in N[Z])this.terminals_[ct]&&ct>D&&Mt.push("'"+this.terminals_[ct]+"'");B.showPosition?it="Parse error on line "+(I+1)+`: +`+B.showPosition()+` +Expecting `+Mt.join(", ")+", got '"+(this.terminals_[X]||X)+"'":it="Parse error on line "+(I+1)+": Unexpected "+(X==P?"end of input":"'"+(this.terminals_[X]||X)+"'"),this.parseError(it,{text:B.match,token:this.terminals_[X]||X,line:B.yylineno,loc:W,expected:Mt})}if(H[0]instanceof Array&&H.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Z+", token: "+X);switch(H[0]){case 1:_.push(X),L.push(B.yytext),M.push(B.yylloc),_.push(H[1]),X=null,J?(X=J,J=null):(C=B.yyleng,k=B.yytext,I=B.yylineno,W=B.yylloc,O>0&&O--);break;case 2:if(ut=this.productions_[H[1]][1],ot.$=L[L.length-ut],ot._$={first_line:M[M.length-(ut||1)].first_line,last_line:M[M.length-1].last_line,first_column:M[M.length-(ut||1)].first_column,last_column:M[M.length-1].last_column},Q&&(ot._$.range=[M[M.length-(ut||1)].range[0],M[M.length-1].range[1]]),K=this.performAction.apply(ot,[k,C,I,G.yy,H[1],L,M].concat(F)),typeof K<"u")return K;ut&&(_=_.slice(0,-1*ut*2),L=L.slice(0,-1*ut),M=M.slice(0,-1*ut)),_.push(this.productions_[H[1]][0]),L.push(ot.$),M.push(ot._$),et=N[_[_.length-2]][_[_.length-1]],_.push(et);break;case 3:return!0}}return!0},"parse")},b=function(){var S={EOF:1,parseError:o(function(E,_){if(this.yy.parser)this.yy.parser.parseError(E,_);else throw new Error(E)},"parseError"),setInput:o(function(T,E){return this.yy=E||this.yy||{},this._input=T,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var T=this._input[0];this.yytext+=T,this.yyleng++,this.offset++,this.match+=T,this.matched+=T;var E=T.match(/(?:\r\n?|\n).*/g);return E?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),T},"input"),unput:o(function(T){var E=T.length,_=T.split(/(?:\r\n?|\n)/g);this._input=T+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-E),this.offset-=E;var A=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),_.length-1&&(this.yylineno-=_.length-1);var L=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:_?(_.length===A.length?this.yylloc.first_column:0)+A[A.length-_.length].length-_[0].length:this.yylloc.first_column-E},this.options.ranges&&(this.yylloc.range=[L[0],L[0]+this.yyleng-E]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(T){this.unput(this.match.slice(T))},"less"),pastInput:o(function(){var T=this.matched.substr(0,this.matched.length-this.match.length);return(T.length>20?"...":"")+T.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var T=this.match;return T.length<20&&(T+=this._input.substr(0,20-T.length)),(T.substr(0,20)+(T.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var T=this.pastInput(),E=new Array(T.length+1).join("-");return T+this.upcomingInput()+` +`+E+"^"},"showPosition"),test_match:o(function(T,E){var _,A,L;if(this.options.backtrack_lexer&&(L={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(L.yylloc.range=this.yylloc.range.slice(0))),A=T[0].match(/(?:\r\n?|\n).*/g),A&&(this.yylineno+=A.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:A?A[A.length-1].length-A[A.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+T[0].length},this.yytext+=T[0],this.match+=T[0],this.matches=T,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(T[0].length),this.matched+=T[0],_=this.performAction.call(this,this.yy,this,E,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),_)return _;if(this._backtrack){for(var M in L)this[M]=L[M];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var T,E,_,A;this._more||(this.yytext="",this.match="");for(var L=this._currentRules(),M=0;ME[0].length)){if(E=_,A=M,this.options.backtrack_lexer){if(T=this.test_match(_,L[M]),T!==!1)return T;if(this._backtrack){E=!1;continue}else return!1}else if(!this.options.flex)break}return E?(T=this.test_match(E,L[A]),T!==!1?T:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var E=this.next();return E||this.lex()},"lex"),begin:o(function(E){this.conditionStack.push(E)},"begin"),popState:o(function(){var E=this.conditionStack.length-1;return E>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(E){return E=this.conditionStack.length-1-Math.abs(E||0),E>=0?this.conditionStack[E]:"INITIAL"},"topState"),pushState:o(function(E){this.begin(E)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:o(function(E,_,A,L){var M=L;switch(A){case 0:return E.getLogger().trace("Found comment",_.yytext),6;break;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;break;case 4:this.popState();break;case 5:E.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return E.getLogger().trace("SPACELINE"),6;break;case 7:return 7;case 8:return 15;case 9:E.getLogger().trace("end icon"),this.popState();break;case 10:return E.getLogger().trace("Exploding node"),this.begin("NODE"),19;break;case 11:return E.getLogger().trace("Cloud"),this.begin("NODE"),19;break;case 12:return E.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;break;case 13:return E.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;break;case 14:return this.begin("NODE"),19;break;case 15:return this.begin("NODE"),19;break;case 16:return this.begin("NODE"),19;break;case 17:return this.begin("NODE"),19;break;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin("NSTR2");break;case 22:return"NODE_DESCR";case 23:this.popState();break;case 24:E.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return E.getLogger().trace("description:",_.yytext),"NODE_DESCR";break;case 26:this.popState();break;case 27:return this.popState(),E.getLogger().trace("node end ))"),"NODE_DEND";break;case 28:return this.popState(),E.getLogger().trace("node end )"),"NODE_DEND";break;case 29:return this.popState(),E.getLogger().trace("node end ...",_.yytext),"NODE_DEND";break;case 30:return this.popState(),E.getLogger().trace("node end (("),"NODE_DEND";break;case 31:return this.popState(),E.getLogger().trace("node end (-"),"NODE_DEND";break;case 32:return this.popState(),E.getLogger().trace("node end (-"),"NODE_DEND";break;case 33:return this.popState(),E.getLogger().trace("node end (("),"NODE_DEND";break;case 34:return this.popState(),E.getLogger().trace("node end (("),"NODE_DEND";break;case 35:return E.getLogger().trace("Long description:",_.yytext),20;break;case 36:return E.getLogger().trace("Long description:",_.yytext),20;break}},"anonymous"),rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}};return S}();x.lexer=b;function w(){this.yy={}}return o(w,"Parser"),w.prototype=x,x.Parser=w,new w}();AB.parser=AB;gmt=AB});var Yl,vmt,_B,hXt,fXt,dXt,pXt,Yi,mXt,gXt,yXt,vXt,xXt,bXt,wXt,xmt,bmt=R(()=>{"use strict";Ue();hr();ce();hl();Yl=[],vmt=0,_B={},hXt=o(()=>{Yl=[],vmt=0,_B={}},"clear"),fXt=o(function(e){for(let t=Yl.length-1;t>=0;t--)if(Yl[t].levelYl.length>0?Yl[0]:null,"getMindmap"),pXt=o((e,t,r,n)=>{V.info("addNode",e,t,r,n);let i=pt(),a=i.mindmap?.padding??Er.mindmap.padding;switch(n){case Yi.ROUNDED_RECT:case Yi.RECT:case Yi.HEXAGON:a*=2}let s={id:vmt++,nodeId:Zr(t,i),level:e,descr:Zr(r,i),type:n,children:[],width:i.mindmap?.maxNodeWidth??Er.mindmap.maxNodeWidth,padding:a},l=fXt(e);if(l)l.children.push(s),Yl.push(s);else if(Yl.length===0)Yl.push(s);else throw new Error('There can be only one root. No parent could be found for ("'+s.descr+'")')},"addNode"),Yi={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},mXt=o((e,t)=>{switch(V.debug("In get type",e,t),e){case"[":return Yi.RECT;case"(":return t===")"?Yi.ROUNDED_RECT:Yi.CLOUD;case"((":return Yi.CIRCLE;case")":return Yi.CLOUD;case"))":return Yi.BANG;case"{{":return Yi.HEXAGON;default:return Yi.DEFAULT}},"getType"),gXt=o((e,t)=>{_B[e]=t},"setElementForId"),yXt=o(e=>{if(!e)return;let t=pt(),r=Yl[Yl.length-1];e.icon&&(r.icon=Zr(e.icon,t)),e.class&&(r.class=Zr(e.class,t))},"decorateNode"),vXt=o(e=>{switch(e){case Yi.DEFAULT:return"no-border";case Yi.RECT:return"rect";case Yi.ROUNDED_RECT:return"rounded-rect";case Yi.CIRCLE:return"circle";case Yi.CLOUD:return"cloud";case Yi.BANG:return"bang";case Yi.HEXAGON:return"hexgon";default:return"no-border"}},"type2Str"),xXt=o(()=>V,"getLogger"),bXt=o(e=>_B[e],"getElementById"),wXt={clear:hXt,addNode:pXt,getMindmap:dXt,nodeType:Yi,getType:mXt,setElementForId:gXt,decorateNode:yXt,type2Str:vXt,getLogger:xXt,getElementById:bXt},xmt=wXt});function ji(e){"@babel/helpers - typeof";return ji=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ji(e)}function iF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wmt(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);r=e.length?{done:!0}:{done:!1,value:e[n++]}},"n"),e:o(function(u){throw u},"e"),f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,s=!1,l;return{s:o(function(){r=r.call(e)},"s"),n:o(function(){var u=r.next();return a=u.done,u},"n"),e:o(function(u){s=!0,l=u},"e"),f:o(function(){try{!a&&r.return!=null&&r.return()}finally{if(s)throw l}},"f")}}function XXt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function jXt(e,t){return t={exports:{}},e(t,t.exports),t.exports}function rjt(e){for(var t=e.length;t--&&ejt.test(e.charAt(t)););return t}function ajt(e){return e&&e.slice(0,njt(e)+1).replace(ijt,"")}function ujt(e){var t=ljt.call(e,eb),r=e[eb];try{e[eb]=void 0;var n=!0}catch{}var i=cjt.call(e);return n&&(t?e[eb]=r:delete e[eb]),i}function pjt(e){return djt.call(e)}function vjt(e){return e==null?e===void 0?yjt:gjt:Cmt&&Cmt in Object(e)?hjt(e):mjt(e)}function xjt(e){return e!=null&&typeof e=="object"}function Tjt(e){return typeof e=="symbol"||bjt(e)&&Ygt(e)==wjt}function Ajt(e){if(typeof e=="number")return e;if(Sb(e))return Smt;if(j0(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=j0(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=sjt(e);var r=Ejt.test(e);return r||Cjt.test(e)?Sjt(e.slice(2),r?2:8):kjt.test(e)?Smt:+e}function Rjt(e,t,r){var n,i,a,s,l,u,h=0,f=!1,d=!1,p=!0;if(typeof e!="function")throw new TypeError(_jt);t=Amt(t)||0,j0(r)&&(f=!!r.leading,d="maxWait"in r,a=d?Ljt(Amt(r.maxWait)||0,t):a,p="trailing"in r?!!r.trailing:p);function m(E){var _=n,A=i;return n=i=void 0,h=E,s=e.apply(A,_),s}o(m,"invokeFunc");function g(E){return h=E,l=setTimeout(x,t),f?m(E):s}o(g,"leadingEdge");function y(E){var _=E-u,A=E-h,L=t-_;return d?Djt(L,a-A):L}o(y,"remainingWait");function v(E){var _=E-u,A=E-h;return u===void 0||_>=t||_<0||d&&A>=a}o(v,"shouldInvoke");function x(){var E=LB();if(v(E))return b(E);l=setTimeout(x,y(E))}o(x,"timerExpired");function b(E){return l=void 0,p&&n?m(E):(n=i=void 0,s)}o(b,"trailingEdge");function w(){l!==void 0&&clearTimeout(l),h=0,n=u=i=l=void 0}o(w,"cancel");function S(){return l===void 0?s:b(LB())}o(S,"flush");function T(){var E=LB(),_=v(E);if(n=arguments,i=this,u=E,_){if(l===void 0)return g(u);if(d)return clearTimeout(l),l=setTimeout(x,t),m(u)}return l===void 0&&(l=setTimeout(x,t)),s}return o(T,"debounced"),T.cancel=w,T.flush=S,T}function NC(e,t,r,n,i,a){var s;return ni(e)?s=e:s=k1[e]||k1.euclidean,t===0&&ni(e)?s(i,a):s(t,r,n,i,a)}function kQt(e,t){if(MC(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Sb(e)?!0:TQt.test(e)||!wQt.test(e)||t!=null&&e in Object(t)}function LQt(e){if(!j0(e))return!1;var t=Ygt(e);return t==SQt||t==AQt||t==CQt||t==_Qt}function NQt(e){return!!qmt&&qmt in e}function PQt(e){if(e!=null){try{return OQt.call(e)}catch{}try{return e+""}catch{}}return""}function WQt(e){if(!j0(e)||MQt(e))return!1;var t=DQt(e)?HQt:zQt;return t.test(BQt(e))}function qQt(e,t){return e?.[t]}function jQt(e,t){var r=XQt(e,t);return YQt(r)?r:void 0}function QQt(){this.__data__=xb?xb(null):{},this.size=0}function JQt(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function iZt(e){var t=this.__data__;if(xb){var r=t[e];return r===eZt?void 0:r}return nZt.call(t,e)?t[e]:void 0}function lZt(e){var t=this.__data__;return xb?t[e]!==void 0:oZt.call(t,e)}function hZt(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=xb&&t===void 0?uZt:t,this}function A1(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}function CZt(e,t){var r=this.__data__,n=IC(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function _1(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e0;){var f=i.shift();t(f),a.add(f.id()),l&&n(i,a,f)}return e}function C1t(e,t,r){if(r.isParent())for(var n=r._private.children,i=0;i0&&arguments[0]!==void 0?arguments[0]:cte,t=arguments.length>1?arguments[1]:void 0,r=0;r0?k=C:N=C;while(Math.abs(I)>s&&++O=a?b(M,O):D===0?O:S(M,N,N+h)}o(T,"getTForX");var E=!1;function _(){E=!0,(e!==t||r!==n)&&w()}o(_,"precompute");var A=o(function(N){return E||_(),e===t&&r===n?N:N===0?0:N===1?1:v(T(N),t,n)},"f");A.getControlPoints=function(){return[{x:e,y:t},{x:r,y:n}]};var L="generateBezier("+[e,t,r,n]+")";return A.toString=function(){return L},A}function fgt(e,t,r,n,i){if(n===1||t===r)return r;var a=i(t,r,n);return e==null||((e.roundValue||e.color)&&(a=Math.round(a)),e.min!==void 0&&(a=Math.max(a,e.min)),e.max!==void 0&&(a=Math.min(a,e.max))),a}function dgt(e,t){return e.pfValue!=null||e.value!=null?e.pfValue!=null&&(t==null||t.type.units!=="%")?e.pfValue:e.value:e}function h1(e,t,r,n,i){var a=i!=null?i.type:null;r<0?r=0:r>1&&(r=1);var s=dgt(e,i),l=dgt(t,i);if(be(s)&&be(l))return fgt(a,s,l,r,n);if(kn(s)&&kn(l)){for(var u=[],h=0;h0?(m==="spring"&&g.push(s.duration),s.easingImpl=hC[m].apply(null,g)):s.easingImpl=hC[m]}var y=s.easingImpl,v;if(s.duration===0?v=1:v=(r-u)/s.duration,s.applying&&(v=s.progress),v<0?v=0:v>1&&(v=1),s.delay==null){var x=s.startPosition,b=s.position;if(b&&i&&!e.locked()){var w={};ab(x.x,b.x)&&(w.x=h1(x.x,b.x,v,y)),ab(x.y,b.y)&&(w.y=h1(x.y,b.y,v,y)),e.position(w)}var S=s.startPan,T=s.pan,E=a.pan,_=T!=null&&n;_&&(ab(S.x,T.x)&&(E.x=h1(S.x,T.x,v,y)),ab(S.y,T.y)&&(E.y=h1(S.y,T.y,v,y)),e.emit("pan"));var A=s.startZoom,L=s.zoom,M=L!=null&&n;M&&(ab(A,L)&&(a.zoom=yb(a.minZoom,h1(A,L,v,y),a.maxZoom)),e.emit("zoom")),(_||M)&&e.emit("viewport");var N=s.style;if(N&&N.length>0&&i){for(var k=0;k=0;_--){var A=E[_];A()}E.splice(0,E.length)},"callbacks"),b=m.length-1;b>=0;b--){var w=m[b],S=w._private;if(S.stopped){m.splice(b,1),S.hooked=!1,S.playing=!1,S.started=!1,x(S.frames);continue}!S.playing&&!S.applying||(S.playing&&S.applying&&(S.applying=!1),S.started||kte(f,w,e),Tte(f,w,e,d),S.applying&&(S.applying=!1),x(S.frames),S.step!=null&&S.step(e),w.completed()&&(m.splice(b,1),S.hooked=!1,S.playing=!1,S.started=!1,x(S.completes)),y=!0)}return!d&&m.length===0&&g.length===0&&n.push(f),y}o(i,"stepOne");for(var a=!1,s=0;s0?t.notify("draw",r):t.notify("draw")),r.unmerge(n),t.emit("step")}function V1t(e){this.options=ir({},Rte,Nte,e)}function U1t(e){this.options=ir({},Mte,e)}function H1t(e){this.options=ir({},Ite,e)}function VC(e){this.options=ir({},Ote,e),this.options.layout=this;var t=this.options.eles.nodes(),r=this.options.eles.edges(),n=r.filter(function(i){var a=i.source().data("id"),s=i.target().data("id"),l=t.some(function(h){return h.data("id")===a}),u=t.some(function(h){return h.data("id")===s});return!l||!u});this.options.eles=this.options.eles.not(n)}function Y1t(e){this.options=ir({},Zte,e)}function kF(e){this.options=ir({},Jte,e)}function q1t(e){this.options=ir({},tee,e)}function X1t(e){this.options=ir({},eee,e)}function j1t(e){this.options=e,this.notifications=0}function Z1t(e,t){t.radius===0?e.lineTo(t.cx,t.cy):e.arc(t.cx,t.cy,t.radius,t.startAngle,t.endAngle,t.counterClockwise)}function CF(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0;return n===0||t.radius===0?{cx:t.x,cy:t.y,radius:0,startX:t.x,startY:t.y,stopX:t.x,stopY:t.y,startAngle:void 0,endAngle:void 0,counterClockwise:void 0}:(iee(e,t,r,n,i),{cx:KB,cy:QB,radius:Y0,startX:K1t,startY:Q1t,stopX:ZB,stopY:JB,startAngle:jc.ang+Math.PI/2*q0,endAngle:nl.ang-Math.PI/2*q0,counterClockwise:pC})}function J1t(e){var t=[];if(e!=null){for(var r=0;r5&&arguments[5]!==void 0?arguments[5]:5,s=arguments.length>6?arguments[6]:void 0;e.beginPath(),e.moveTo(t+a,r),e.lineTo(t+n-a,r),e.quadraticCurveTo(t+n,r,t+n,r+a),e.lineTo(t+n,r+i-a),e.quadraticCurveTo(t+n,r+i,t+n-a,r+i),e.lineTo(t+a,r+i),e.quadraticCurveTo(t,r+i,t,r+i-a),e.lineTo(t,r+a),e.quadraticCurveTo(t,r,t+a,r),e.closePath(),s?e.stroke():e.fill()}function Yee(e,t){for(var r=atob(e),n=new ArrayBuffer(r.length),i=new Uint8Array(n),a=0;a{"use strict";o(ji,"_typeof");o(iF,"_classCallCheck");o(wmt,"_defineProperties");o(aF,"_createClass");o(Ogt,"_defineProperty$1");o(ql,"_slicedToArray");o(TXt,"_arrayWithHoles");o(kXt,"_iterableToArrayLimit");o(Pgt,"_unsupportedIterableToArray");o(Tmt,"_arrayLikeToArray");o(EXt,"_nonIterableRest");o(Bgt,"_createForOfIteratorHelper");qi=typeof window>"u"?null:window,kmt=qi?qi.navigator:null;qi&&qi.document;CXt=ji(""),Fgt=ji({}),SXt=ji(function(){}),AXt=typeof HTMLElement>"u"?"undefined":ji(HTMLElement),Eb=o(function(t){return t&&t.instanceString&&ni(t.instanceString)?t.instanceString():null},"instanceStr"),Ke=o(function(t){return t!=null&&ji(t)==CXt},"string"),ni=o(function(t){return t!=null&&ji(t)===SXt},"fn"),kn=o(function(t){return!wo(t)&&(Array.isArray?Array.isArray(t):t!=null&&t instanceof Array)},"array"),Ur=o(function(t){return t!=null&&ji(t)===Fgt&&!kn(t)&&t.constructor===Object},"plainObject"),_Xt=o(function(t){return t!=null&&ji(t)===Fgt},"object"),be=o(function(t){return t!=null&&ji(t)===ji(1)&&!isNaN(t)},"number"),LXt=o(function(t){return be(t)&&Math.floor(t)===t},"integer"),gC=o(function(t){if(AXt!=="undefined")return t!=null&&t instanceof HTMLElement},"htmlElement"),wo=o(function(t){return Cb(t)||zgt(t)},"elementOrCollection"),Cb=o(function(t){return Eb(t)==="collection"&&t._private.single},"element"),zgt=o(function(t){return Eb(t)==="collection"&&!t._private.single},"collection"),sF=o(function(t){return Eb(t)==="core"},"core"),$gt=o(function(t){return Eb(t)==="stylesheet"},"stylesheet"),DXt=o(function(t){return Eb(t)==="event"},"event"),Rf=o(function(t){return t==null?!0:!!(t===""||t.match(/^\s+$/))},"emptyString"),RXt=o(function(t){return typeof HTMLElement>"u"?!1:t instanceof HTMLElement},"domElement"),NXt=o(function(t){return Ur(t)&&be(t.x1)&&be(t.x2)&&be(t.y1)&&be(t.y2)},"boundingBox"),MXt=o(function(t){return _Xt(t)&&ni(t.then)},"promise"),IXt=o(function(){return kmt&&kmt.userAgent.match(/msie|trident|edge/i)},"ms"),db=o(function(t,r){r||(r=o(function(){if(arguments.length===1)return arguments[0];if(arguments.length===0)return"undefined";for(var a=[],s=0;sr?1:0},"ascending"),GXt=o(function(t,r){return-1*Vgt(t,r)},"descending"),ir=Object.assign!=null?Object.assign.bind(Object):function(e){for(var t=arguments,r=1;r1&&(v-=1),v<1/6?g+(y-g)*6*v:v<1/2?y:v<2/3?g+(y-g)*(2/3-v)*6:g}o(f,"hue2rgb");var d=new RegExp("^"+BXt+"$").exec(t);if(d){if(n=parseInt(d[1]),n<0?n=(360- -1*n%360)%360:n>360&&(n=n%360),n/=360,i=parseFloat(d[2]),i<0||i>100||(i=i/100,a=parseFloat(d[3]),a<0||a>100)||(a=a/100,s=d[4],s!==void 0&&(s=parseFloat(s),s<0||s>1)))return;if(i===0)l=u=h=Math.round(a*255);else{var p=a<.5?a*(1+i):a+i-a*i,m=2*a-p;l=Math.round(255*f(m,p,n+1/3)),u=Math.round(255*f(m,p,n)),h=Math.round(255*f(m,p,n-1/3))}r=[l,u,h,s]}return r},"hsl2tuple"),HXt=o(function(t){var r,n=new RegExp("^"+OXt+"$").exec(t);if(n){r=[];for(var i=[],a=1;a<=3;a++){var s=n[a];if(s[s.length-1]==="%"&&(i[a]=!0),s=parseFloat(s),i[a]&&(s=s/100*255),s<0||s>255)return;r.push(Math.floor(s))}var l=i[1]||i[2]||i[3],u=i[1]&&i[2]&&i[3];if(l&&!u)return;var h=n[4];if(h!==void 0){if(h=parseFloat(h),h<0||h>1)return;r.push(h)}}return r},"rgb2tuple"),WXt=o(function(t){return qXt[t.toLowerCase()]},"colorname2tuple"),YXt=o(function(t){return(kn(t)?t:null)||WXt(t)||VXt(t)||HXt(t)||UXt(t)},"color2tuple"),qXt={transparent:[0,0,0,0],aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],grey:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Ugt=o(function(t){for(var r=t.map,n=t.keys,i=n.length,a=0;a1&&arguments[1]!==void 0?arguments[1]:p1,n=r,i;i=t.next(),!i.done;)n=n*Xgt+i.value|0;return n},"hashIterableInts"),pb=o(function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:p1;return r*Xgt+t|0},"hashInt"),mb=o(function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ob;return(r<<5)+r+t|0},"hashIntAlt"),Mjt=o(function(t,r){return t*2097152+r},"combineHashes"),Cf=o(function(t){return t[0]*2097152+t[1]},"combineHashesArray"),j6=o(function(t,r){return[pb(t[0],r[0]),mb(t[1],r[1])]},"hashArrays"),Ijt=o(function(t,r){var n={value:0,done:!1},i=0,a=t.length,s={next:o(function(){return i=0&&!(t[i]===r&&(t.splice(i,1),n));i--);},"removeFromArray"),uF=o(function(t){t.splice(0,t.length)},"clearArray"),Gjt=o(function(t,r){for(var n=0;n"u"?"undefined":ji(Set))!==Ujt?Set:Hjt,DC=o(function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(t===void 0||r===void 0||!sF(t)){fi("An element must have a core reference and parameters set");return}var i=r.group;if(i==null&&(r.data&&r.data.source!=null&&r.data.target!=null?i="edges":i="nodes"),i!=="nodes"&&i!=="edges"){fi("An element must be of type `nodes` or `edges`; you specified `"+i+"`");return}this.length=1,this[0]=this;var a=this._private={cy:t,single:!0,data:r.data||{},position:r.position||{x:0,y:0},autoWidth:void 0,autoHeight:void 0,autoPadding:void 0,compoundBoundsClean:!1,listeners:[],group:i,style:{},rstyle:{},styleCxts:[],styleKeys:{},removed:!0,selected:!!r.selected,selectable:r.selectable===void 0?!0:!!r.selectable,locked:!!r.locked,grabbed:!1,grabbable:r.grabbable===void 0?!0:!!r.grabbable,pannable:r.pannable===void 0?i==="edges":!!r.pannable,active:!1,classes:new C1,animation:{current:[],queue:[]},rscratch:{},scratch:r.scratch||{},edges:[],children:[],parent:r.parent&&r.parent.isNode()?r.parent:null,traversalCache:{},backgrounding:!1,bbCache:null,bbCacheShift:{x:0,y:0},bodyBounds:null,overlayBounds:null,labelBounds:{all:null,source:null,target:null,main:null},arrowBounds:{source:null,target:null,"mid-source":null,"mid-target":null}};if(a.position.x==null&&(a.position.x=0),a.position.y==null&&(a.position.y=0),r.renderedPosition){var s=r.renderedPosition,l=t.pan(),u=t.zoom();a.position={x:(s.x-l.x)/u,y:(s.y-l.y)/u}}var h=[];kn(r.classes)?h=r.classes:Ke(r.classes)&&(h=r.classes.split(/\s+/));for(var f=0,d=h.length;fb?1:0},"defaultCmp"),f=o(function(x,b,w,S,T){var E;if(w==null&&(w=0),T==null&&(T=n),w<0)throw new Error("lo must be non-negative");for(S==null&&(S=x.length);wM;0<=M?L++:L--)A.push(L);return A}.apply(this).reverse(),_=[],S=0,T=E.length;SN;0<=N?++A:--A)k.push(s(x,w));return k},"nsmallest"),y=o(function(x,b,w,S){var T,E,_;for(S==null&&(S=n),T=x[w];w>b;){if(_=w-1>>1,E=x[_],S(T,E)<0){x[w]=E,w=_;continue}break}return x[w]=T},"_siftdown"),v=o(function(x,b,w){var S,T,E,_,A;for(w==null&&(w=n),T=x.length,A=b,E=x[b],S=2*b+1;S0;){var E=b.pop(),_=v(E),A=E.id();if(p[A]=_,_!==1/0)for(var L=E.neighborhood().intersect(g),M=0;M0)for(F.unshift(P);d[G];){var z=d[G];F.unshift(z.edge),F.unshift(z.node),B=z.node,G=B.id()}return l.spawn(F)},"pathTo")}},"dijkstra")},Xjt={kruskal:o(function(t){t=t||function(w){return 1};for(var r=this.byGroup(),n=r.nodes,i=r.edges,a=n.length,s=new Array(a),l=n,u=o(function(S){for(var T=0;T0;){if(T(),_++,S===f){for(var A=[],L=a,M=f,N=x[M];A.unshift(L),N!=null&&A.unshift(N),L=v[M],L!=null;)M=L.id(),N=x[M];return{found:!0,distance:d[S],path:this.spawn(A),steps:_}}m[S]=!0;for(var k=w._private.edges,I=0;IN&&(g[M]=N,b[M]=L,w[M]=T),!a){var k=L*f+A;!a&&g[k]>N&&(g[k]=N,b[k]=A,w[k]=T)}}}for(var I=0;I1&&arguments[1]!==void 0?arguments[1]:s,St=w(wt),Vt=[],Pt=St;;){if(Pt==null)return r.spawn();var _t=b(Pt),dt=_t.edge,Y=_t.pred;if(Vt.unshift(Pt[0]),Pt.same(Ot)&&Vt.length>0)break;dt!=null&&Vt.unshift(dt),Pt=Y}return u.spawn(Vt)},"pathTo"),E=0;E=0;f--){var d=h[f],p=d[1],m=d[2];(r[p]===l&&r[m]===u||r[p]===u&&r[m]===l)&&h.splice(f,1)}for(var g=0;gi;){var a=Math.floor(Math.random()*r.length);r=rKt(a,t,r),n--}return r},"contractUntil"),nKt={kargerStein:o(function(){var t=this,r=this.byGroup(),n=r.nodes,i=r.edges;i.unmergeBy(function(F){return F.isLoop()});var a=n.length,s=i.length,l=Math.ceil(Math.pow(Math.log(a)/Math.LN2,2)),u=Math.floor(a/eKt);if(a<2){fi("At least 2 nodes are required for Karger-Stein algorithm");return}for(var h=[],f=0;f1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t.length,i=1/0,a=r;a1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t.length,i=-1/0,a=r;a1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t.length,i=0,a=0,s=r;s1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t.length,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;i?t=t.slice(r,n):(n0&&t.splice(0,r));for(var l=0,u=t.length-1;u>=0;u--){var h=t[u];s?isFinite(h)||(t[u]=-1/0,l++):t.splice(u,1)}a&&t.sort(function(p,m){return p-m});var f=t.length,d=Math.floor(f/2);return f%2!==0?t[d+1+l]:(t[d-1+l]+t[d+l])/2},"median"),cKt=o(function(t){return Math.PI*t/180},"deg2rad"),K6=o(function(t,r){return Math.atan2(r,t)-Math.PI/2},"getAngleFromDisp"),hF=Math.log2||function(e){return Math.log(e)/Math.log(2)},r1t=o(function(t){return t>0?1:t<0?-1:0},"signum"),Q0=o(function(t,r){return Math.sqrt(H0(t,r))},"dist"),H0=o(function(t,r){var n=r.x-t.x,i=r.y-t.y;return n*n+i*i},"sqdist"),uKt=o(function(t){for(var r=t.length,n=0,i=0;i=t.x1&&t.y2>=t.y1)return{x1:t.x1,y1:t.y1,x2:t.x2,y2:t.y2,w:t.x2-t.x1,h:t.y2-t.y1};if(t.w!=null&&t.h!=null&&t.w>=0&&t.h>=0)return{x1:t.x1,y1:t.y1,x2:t.x1+t.w,y2:t.y1+t.h,w:t.w,h:t.h}}},"makeBoundingBox"),fKt=o(function(t){return{x1:t.x1,x2:t.x2,w:t.w,y1:t.y1,y2:t.y2,h:t.h}},"copyBoundingBox"),dKt=o(function(t){t.x1=1/0,t.y1=1/0,t.x2=-1/0,t.y2=-1/0,t.w=0,t.h=0},"clearBoundingBox"),pKt=o(function(t,r,n){return{x1:t.x1+r,x2:t.x2+r,y1:t.y1+n,y2:t.y2+n,w:t.w,h:t.h}},"shiftBoundingBox"),n1t=o(function(t,r){t.x1=Math.min(t.x1,r.x1),t.x2=Math.max(t.x2,r.x2),t.w=t.x2-t.x1,t.y1=Math.min(t.y1,r.y1),t.y2=Math.max(t.y2,r.y2),t.h=t.y2-t.y1},"updateBoundingBox"),mKt=o(function(t,r,n){t.x1=Math.min(t.x1,r),t.x2=Math.max(t.x2,r),t.w=t.x2-t.x1,t.y1=Math.min(t.y1,n),t.y2=Math.max(t.y2,n),t.h=t.y2-t.y1},"expandBoundingBoxByPoint"),oC=o(function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return t.x1-=r,t.x2+=r,t.y1-=r,t.y2+=r,t.w=t.x2-t.x1,t.h=t.y2-t.y1,t},"expandBoundingBox"),lC=o(function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0],n,i,a,s;if(r.length===1)n=i=a=s=r[0];else if(r.length===2)n=a=r[0],s=i=r[1];else if(r.length===4){var l=ql(r,4);n=l[0],i=l[1],a=l[2],s=l[3]}return t.x1-=s,t.x2+=i,t.y1-=n,t.y2+=a,t.w=t.x2-t.x1,t.h=t.y2-t.y1,t},"expandBoundingBoxSides"),Rmt=o(function(t,r){t.x1=r.x1,t.y1=r.y1,t.x2=r.x2,t.y2=r.y2,t.w=t.x2-t.x1,t.h=t.y2-t.y1},"assignBoundingBox"),fF=o(function(t,r){return!(t.x1>r.x2||r.x1>t.x2||t.x2r.y2||r.y1>t.y2)},"boundingBoxesIntersect"),T1=o(function(t,r,n){return t.x1<=r&&r<=t.x2&&t.y1<=n&&n<=t.y2},"inBoundingBox"),gKt=o(function(t,r){return T1(t,r.x,r.y)},"pointInBoundingBox"),i1t=o(function(t,r){return T1(t,r.x1,r.y1)&&T1(t,r.x2,r.y2)},"boundingBoxInBoundingBox"),a1t=o(function(t,r,n,i,a,s,l){var u=arguments.length>7&&arguments[7]!==void 0?arguments[7]:"auto",h=u==="auto"?Z0(a,s):u,f=a/2,d=s/2;h=Math.min(h,f,d);var p=h!==f,m=h!==d,g;if(p){var y=n-f+h-l,v=i-d-l,x=n+f-h+l,b=v;if(g=_f(t,r,n,i,y,v,x,b,!1),g.length>0)return g}if(m){var w=n+f+l,S=i-d+h-l,T=w,E=i+d-h+l;if(g=_f(t,r,n,i,w,S,T,E,!1),g.length>0)return g}if(p){var _=n-f+h-l,A=i+d+l,L=n+f-h+l,M=A;if(g=_f(t,r,n,i,_,A,L,M,!1),g.length>0)return g}if(m){var N=n-f-l,k=i-d+h-l,I=N,C=i+d-h+l;if(g=_f(t,r,n,i,N,k,I,C,!1),g.length>0)return g}var O;{var D=n-f+h,P=i-d+h;if(O=lb(t,r,n,i,D,P,h+l),O.length>0&&O[0]<=D&&O[1]<=P)return[O[0],O[1]]}{var F=n+f-h,B=i-d+h;if(O=lb(t,r,n,i,F,B,h+l),O.length>0&&O[0]>=F&&O[1]<=B)return[O[0],O[1]]}{var G=n+f-h,z=i+d-h;if(O=lb(t,r,n,i,G,z,h+l),O.length>0&&O[0]>=G&&O[1]>=z)return[O[0],O[1]]}{var W=n-f+h,Q=i+d-h;if(O=lb(t,r,n,i,W,Q,h+l),O.length>0&&O[0]<=W&&O[1]>=Q)return[O[0],O[1]]}return[]},"roundRectangleIntersectLine"),yKt=o(function(t,r,n,i,a,s,l){var u=l,h=Math.min(n,a),f=Math.max(n,a),d=Math.min(i,s),p=Math.max(i,s);return h-u<=t&&t<=f+u&&d-u<=r&&r<=p+u},"inLineVicinity"),vKt=o(function(t,r,n,i,a,s,l,u,h){var f={x1:Math.min(n,l,a)-h,x2:Math.max(n,l,a)+h,y1:Math.min(i,u,s)-h,y2:Math.max(i,u,s)+h};return!(tf.x2||rf.y2)},"inBezierVicinity"),xKt=o(function(t,r,n,i){n-=i;var a=r*r-4*t*n;if(a<0)return[];var s=Math.sqrt(a),l=2*t,u=(-r+s)/l,h=(-r-s)/l;return[u,h]},"solveQuadratic"),bKt=o(function(t,r,n,i,a){var s=1e-5;t===0&&(t=s),r/=t,n/=t,i/=t;var l,u,h,f,d,p,m,g;if(u=(3*n-r*r)/9,h=-(27*i)+r*(9*n-2*(r*r)),h/=54,l=u*u*u+h*h,a[1]=0,m=r/3,l>0){d=h+Math.sqrt(l),d=d<0?-Math.pow(-d,1/3):Math.pow(d,1/3),p=h-Math.sqrt(l),p=p<0?-Math.pow(-p,1/3):Math.pow(p,1/3),a[0]=-m+d+p,m+=(d+p)/2,a[4]=a[2]=-m,m=Math.sqrt(3)*(-p+d)/2,a[3]=m,a[5]=-m;return}if(a[5]=a[3]=0,l===0){g=h<0?-Math.pow(-h,1/3):Math.pow(h,1/3),a[0]=-m+2*g,a[4]=a[2]=-(g+m);return}u=-u,f=u*u*u,f=Math.acos(h/Math.sqrt(f)),g=2*Math.sqrt(u),a[0]=-m+g*Math.cos(f/3),a[2]=-m+g*Math.cos((f+2*Math.PI)/3),a[4]=-m+g*Math.cos((f+4*Math.PI)/3)},"solveCubic"),wKt=o(function(t,r,n,i,a,s,l,u){var h=1*n*n-4*n*a+2*n*l+4*a*a-4*a*l+l*l+i*i-4*i*s+2*i*u+4*s*s-4*s*u+u*u,f=1*9*n*a-3*n*n-3*n*l-6*a*a+3*a*l+9*i*s-3*i*i-3*i*u-6*s*s+3*s*u,d=1*3*n*n-6*n*a+n*l-n*t+2*a*a+2*a*t-l*t+3*i*i-6*i*s+i*u-i*r+2*s*s+2*s*r-u*r,p=1*n*a-n*n+n*t-a*t+i*s-i*i+i*r-s*r,m=[];bKt(h,f,d,p,m);for(var g=1e-7,y=[],v=0;v<6;v+=2)Math.abs(m[v+1])=0&&m[v]<=1&&y.push(m[v]);y.push(1),y.push(0);for(var x=-1,b,w,S,T=0;T=0?Sh?(t-a)*(t-a)+(r-s)*(r-s):f-p},"sqdistToFiniteLine"),Ws=o(function(t,r,n){for(var i,a,s,l,u,h=0,f=0;f=t&&t>=s||i<=t&&t<=s)u=(t-i)/(s-i)*(l-a)+a,u>r&&h++;else continue;return h%2!==0},"pointInsidePolygonPoints"),rh=o(function(t,r,n,i,a,s,l,u,h){var f=new Array(n.length),d;u[0]!=null?(d=Math.atan(u[1]/u[0]),u[0]<0?d=d+Math.PI/2:d=-d-Math.PI/2):d=u;for(var p=Math.cos(-d),m=Math.sin(-d),g=0;g0){var v=bC(f,-h);y=xC(v)}else y=f;return Ws(t,r,y)},"pointInsidePolygon"),kKt=o(function(t,r,n,i,a,s,l,u){for(var h=new Array(n.length*2),f=0;f=0&&v<=1&&b.push(v),x>=0&&x<=1&&b.push(x),b.length===0)return[];var w=b[0]*u[0]+t,S=b[0]*u[1]+r;if(b.length>1){if(b[0]==b[1])return[w,S];var T=b[1]*u[0]+t,E=b[1]*u[1]+r;return[w,S,T,E]}else return[w,S]},"intersectLineCircle"),NB=o(function(t,r,n){return r<=t&&t<=n||n<=t&&t<=r?t:t<=r&&r<=n||n<=r&&r<=t?r:n},"midOfThree"),_f=o(function(t,r,n,i,a,s,l,u,h){var f=t-a,d=n-t,p=l-a,m=r-s,g=i-r,y=u-s,v=p*m-y*f,x=d*m-g*f,b=y*d-p*g;if(b!==0){var w=v/b,S=x/b,T=.001,E=0-T,_=1+T;return E<=w&&w<=_&&E<=S&&S<=_?[t+w*d,r+w*g]:h?[t+w*d,r+w*g]:[]}else return v===0||x===0?NB(t,n,l)===l?[l,u]:NB(t,n,a)===a?[a,s]:NB(a,l,n)===n?[n,i]:[]:[]},"finiteLinesIntersect"),vb=o(function(t,r,n,i,a,s,l,u){var h=[],f,d=new Array(n.length),p=!0;s==null&&(p=!1);var m;if(p){for(var g=0;g0){var y=bC(d,-u);m=xC(y)}else m=d}else m=n;for(var v,x,b,w,S=0;S2){for(var g=[f[0],f[1]],y=Math.pow(g[0]-t,2)+Math.pow(g[1]-r,2),v=1;vf&&(f=S)},"set"),get:o(function(w){return h[w]},"get")},p=0;p0?D=O.edgesTo(C)[0]:D=C.edgesTo(O)[0];var P=i(D);C=C.id(),A[C]>A[k]+P&&(A[C]=A[k]+P,L.nodes.indexOf(C)<0?L.push(C):L.updateItem(C),_[C]=0,E[C]=[]),A[C]==A[k]+P&&(_[C]=_[C]+_[k],E[C].push(k))}else for(var F=0;F0;){for(var W=T.pop(),Q=0;Q0&&l.push(n[u]);l.length!==0&&a.push(i.collection(l))}return a},"assign"),zKt=o(function(t,r){for(var n=0;n5&&arguments[5]!==void 0?arguments[5]:VKt,l=i,u,h,f=0;f=2?rb(t,r,n,0,Pmt,UKt):rb(t,r,n,0,Omt)},"euclidean"),squaredEuclidean:o(function(t,r,n){return rb(t,r,n,0,Pmt)},"squaredEuclidean"),manhattan:o(function(t,r,n){return rb(t,r,n,0,Omt)},"manhattan"),max:o(function(t,r,n){return rb(t,r,n,-1/0,HKt)},"max")};k1["squared-euclidean"]=k1.squaredEuclidean;k1.squaredeuclidean=k1.squaredEuclidean;o(NC,"clusteringDistance");WKt=Da({k:2,m:2,sensitivityThreshold:1e-4,distance:"euclidean",maxIterations:10,attributes:[],testMode:!1,testCentroids:null}),pF=o(function(t){return WKt(t)},"setOptions"),wC=o(function(t,r,n,i,a){var s=a!=="kMedoids",l=s?function(d){return n[d]}:function(d){return i[d](n)},u=o(function(p){return i[p](r)},"getQ"),h=n,f=r;return NC(t,i.length,l,u,h,f)},"getDist"),MB=o(function(t,r,n){for(var i=n.length,a=new Array(i),s=new Array(i),l=new Array(r),u=null,h=0;hn)return!1}return!0},"haveMatricesConverged"),XKt=o(function(t,r,n){for(var i=0;il&&(l=r[h][f],u=f);a[u].push(t[h])}for(var d=0;d=a.threshold||a.mode==="dendrogram"&&t.length===1)return!1;var g=r[s],y=r[i[s]],v;a.mode==="dendrogram"?v={left:g,right:y,key:g.key}:v={value:g.value.concat(y.value),key:g.key},t[g.index]=v,t.splice(y.index,1),r[g.key]=v;for(var x=0;xn[y.key][b.key]&&(u=n[y.key][b.key])):a.linkage==="max"?(u=n[g.key][b.key],n[g.key][b.key]0&&i.push(a);return i},"findExemplars"),Vmt=o(function(t,r,n){for(var i=[],a=0;al&&(s=h,l=r[a*t+h])}s>0&&i.push(s)}for(var f=0;fh&&(u=f,h=d)}n[a]=s[u]}return i=Vmt(t,r,n),i},"assign"),Umt=o(function(t){for(var r=this.cy(),n=this.nodes(),i=lQt(t),a={},s=0;s=N?(k=N,N=C,I=O):C>k&&(k=C);for(var D=0;D0?1:0;_[L%i.minIterations*l+W]=Q,z+=Q}if(z>0&&(L>=i.minIterations-1||L==i.maxIterations-1)){for(var j=0,at=0;at1||E>1)&&(l=!0),d[w]=[],b.outgoers().forEach(function(A){A.isEdge()&&d[w].push(A.id())})}else p[w]=[void 0,b.target().id()]}):s.forEach(function(b){var w=b.id();if(b.isNode()){var S=b.degree(!0);S%2&&(u?h?l=!0:h=w:u=w),d[w]=[],b.connectedEdges().forEach(function(T){return d[w].push(T.id())})}else p[w]=[b.source().id(),b.target().id()]});var m={found:!1,trail:void 0};if(l)return m;if(h&&u)if(a){if(f&&h!=f)return m;f=h}else{if(f&&h!=f&&u!=f)return m;f||(f=h)}else f||(f=s[0].id());var g=o(function(w){for(var S=w,T=[w],E,_,A;d[S].length;)E=d[S].shift(),_=p[E][0],A=p[E][1],S!=A?(d[A]=d[A].filter(function(L){return L!=E}),S=A):!a&&S!=_&&(d[_]=d[_].filter(function(L){return L!=E}),S=_),T.unshift(E),T.unshift(S);return T},"walk"),y=[],v=[];for(v=g(f);v.length!=1;)d[v[0]].length==0?(y.unshift(s.getElementById(v.shift())),y.unshift(s.getElementById(v.shift()))):v=g(v.shift()).concat(v);y.unshift(s.getElementById(v.shift()));for(var x in d)if(d[x].length)return m;return m.found=!0,m.trail=this.spawn(y,!0),m},"hierholzer")},J6=o(function(){var t=this,r={},n=0,i=0,a=[],s=[],l={},u=o(function(p,m){for(var g=s.length-1,y=[],v=t.spawn();s[g].x!=p||s[g].y!=m;)y.push(s.pop().edge),g--;y.push(s.pop().edge),y.forEach(function(x){var b=x.connectedNodes().intersection(t);v.merge(x),b.forEach(function(w){var S=w.id(),T=w.connectedEdges().intersection(t);v.merge(w),r[S].cutVertex?v.merge(T.filter(function(E){return E.isLoop()})):v.merge(T)})}),a.push(v)},"buildComponent"),h=o(function d(p,m,g){p===g&&(i+=1),r[m]={id:n,low:n++,cutVertex:!1};var y=t.getElementById(m).connectedEdges().intersection(t);if(y.size()===0)a.push(t.spawn(t.getElementById(m)));else{var v,x,b,w;y.forEach(function(S){v=S.source().id(),x=S.target().id(),b=v===m?x:v,b!==g&&(w=S.id(),l[w]||(l[w]=!0,s.push({x:m,y:b,edge:S})),b in r?r[m].low=Math.min(r[m].low,r[b].id):(d(p,b,m),r[m].low=Math.min(r[m].low,r[b].low),r[m].id<=r[b].low&&(r[m].cutVertex=!0,u(m,b))))})}},"biconnectedSearch");t.forEach(function(d){if(d.isNode()){var p=d.id();p in r||(i=0,h(p,p),r[p].cutVertex=i>1)}});var f=Object.keys(r).filter(function(d){return r[d].cutVertex}).map(function(d){return t.getElementById(d)});return{cut:t.spawn(f),components:a}},"hopcroftTarjanBiconnected"),gQt={hopcroftTarjanBiconnected:J6,htbc:J6,htb:J6,hopcroftTarjanBiconnectedComponents:J6},tC=o(function(){var t=this,r={},n=0,i=[],a=[],s=t.spawn(t),l=o(function u(h){a.push(h),r[h]={index:n,low:n++,explored:!1};var f=t.getElementById(h).connectedEdges().intersection(t);if(f.forEach(function(y){var v=y.target().id();v!==h&&(v in r||u(v),r[v].explored||(r[h].low=Math.min(r[h].low,r[v].low)))}),r[h].index===r[h].low){for(var d=t.spawn();;){var p=a.pop();if(d.merge(t.getElementById(p)),r[p].low=r[h].index,r[p].explored=!0,p===h)break}var m=d.edgesWith(d),g=d.merge(m);i.push(g),s=s.difference(g)}},"stronglyConnectedSearch");return t.forEach(function(u){if(u.isNode()){var h=u.id();h in r||l(h)}}),{cut:s,components:i}},"tarjanStronglyConnected"),yQt={tarjanStronglyConnected:tC,tsc:tC,tscc:tC,tarjanStronglyConnectedComponents:tC},f1t={};[gb,qjt,Xjt,Kjt,Zjt,tKt,nKt,_Kt,v1,x1,HB,GKt,tQt,sQt,dQt,mQt,gQt,yQt].forEach(function(e){ir(f1t,e)});d1t=0,p1t=1,m1t=2,nh=o(function e(t){if(!(this instanceof e))return new e(t);this.id="Thenable/1.0.7",this.state=d1t,this.fulfillValue=void 0,this.rejectReason=void 0,this.onFulfilled=[],this.onRejected=[],this.proxy={then:this.then.bind(this)},typeof t=="function"&&t.call(this,this.fulfill.bind(this),this.reject.bind(this))},"api");nh.prototype={fulfill:o(function(t){return Hmt(this,p1t,"fulfillValue",t)},"fulfill"),reject:o(function(t){return Hmt(this,m1t,"rejectReason",t)},"reject"),then:o(function(t,r){var n=this,i=new nh;return n.onFulfilled.push(Ymt(t,i,"fulfill")),n.onRejected.push(Ymt(r,i,"reject")),g1t(n),i.proxy},"then")};Hmt=o(function(t,r,n,i){return t.state===d1t&&(t.state=r,t[n]=i,g1t(t)),t},"deliver"),g1t=o(function(t){t.state===p1t?Wmt(t,"onFulfilled",t.fulfillValue):t.state===m1t&&Wmt(t,"onRejected",t.rejectReason)},"execute"),Wmt=o(function(t,r,n){if(t[r].length!==0){var i=t[r];t[r]=[];var a=o(function(){for(var l=0;l0},"animatedImpl")},"animated"),clearQueue:o(function(){return o(function(){var r=this,n=r.length!==void 0,i=n?r:[r],a=this._private.cy||this;if(!a.styleEnabled())return this;for(var s=0;s0&&this.spawn(i).updateStyle().emit("class"),r},"classes"),addClass:o(function(t){return this.toggleClass(t,!0)},"addClass"),hasClass:o(function(t){var r=this[0];return r!=null&&r._private.classes.has(t)},"hasClass"),toggleClass:o(function(t,r){kn(t)||(t=t.match(/\S+/g)||[]);for(var n=this,i=r===void 0,a=[],s=0,l=n.length;s0&&this.spawn(a).updateStyle().emit("class"),n},"toggleClass"),removeClass:o(function(t){return this.toggleClass(t,!1)},"removeClass"),flashClass:o(function(t,r){var n=this;if(r==null)r=250;else if(r===0)return n;return n.addClass(t),setTimeout(function(){n.removeClass(t)},r),n},"flashClass")};cC.className=cC.classNames=cC.classes;Vr={metaChar:"[\\!\\\"\\#\\$\\%\\&\\'\\(\\)\\*\\+\\,\\.\\/\\:\\;\\<\\=\\>\\?\\@\\[\\]\\^\\`\\{\\|\\}\\~]",comparatorOp:"=|\\!=|>|>=|<|<=|\\$=|\\^=|\\*=",boolOp:"\\?|\\!|\\^",string:`"(?:\\\\"|[^"])*"|'(?:\\\\'|[^'])*'`,number:Xi,meta:"degree|indegree|outdegree",separator:"\\s*,\\s*",descendant:"\\s+",child:"\\s+>\\s+",subject:"\\$",group:"node|edge|\\*",directedEdge:"\\s+->\\s+",undirectedEdge:"\\s+<->\\s+"};Vr.variable="(?:[\\w-.]|(?:\\\\"+Vr.metaChar+"))+";Vr.className="(?:[\\w-]|(?:\\\\"+Vr.metaChar+"))+";Vr.value=Vr.string+"|"+Vr.number;Vr.id=Vr.variable;(function(){var e,t,r;for(e=Vr.comparatorOp.split("|"),r=0;r=0)&&t!=="="&&(Vr.comparatorOp+="|\\!"+t)})();pn=o(function(){return{checks:[]}},"newQuery"),Ne={GROUP:0,COLLECTION:1,FILTER:2,DATA_COMPARE:3,DATA_EXIST:4,DATA_BOOL:5,META_COMPARE:6,STATE:7,ID:8,CLASS:9,UNDIRECTED_EDGE:10,DIRECTED_EDGE:11,NODE_SOURCE:12,NODE_TARGET:13,NODE_NEIGHBOR:14,CHILD:15,DESCENDANT:16,PARENT:17,ANCESTOR:18,COMPOUND_SPLIT:19,TRUE:20},YB=[{selector:":selected",matches:o(function(t){return t.selected()},"matches")},{selector:":unselected",matches:o(function(t){return!t.selected()},"matches")},{selector:":selectable",matches:o(function(t){return t.selectable()},"matches")},{selector:":unselectable",matches:o(function(t){return!t.selectable()},"matches")},{selector:":locked",matches:o(function(t){return t.locked()},"matches")},{selector:":unlocked",matches:o(function(t){return!t.locked()},"matches")},{selector:":visible",matches:o(function(t){return t.visible()},"matches")},{selector:":hidden",matches:o(function(t){return!t.visible()},"matches")},{selector:":transparent",matches:o(function(t){return t.transparent()},"matches")},{selector:":grabbed",matches:o(function(t){return t.grabbed()},"matches")},{selector:":free",matches:o(function(t){return!t.grabbed()},"matches")},{selector:":removed",matches:o(function(t){return t.removed()},"matches")},{selector:":inside",matches:o(function(t){return!t.removed()},"matches")},{selector:":grabbable",matches:o(function(t){return t.grabbable()},"matches")},{selector:":ungrabbable",matches:o(function(t){return!t.grabbable()},"matches")},{selector:":animated",matches:o(function(t){return t.animated()},"matches")},{selector:":unanimated",matches:o(function(t){return!t.animated()},"matches")},{selector:":parent",matches:o(function(t){return t.isParent()},"matches")},{selector:":childless",matches:o(function(t){return t.isChildless()},"matches")},{selector:":child",matches:o(function(t){return t.isChild()},"matches")},{selector:":orphan",matches:o(function(t){return t.isOrphan()},"matches")},{selector:":nonorphan",matches:o(function(t){return t.isChild()},"matches")},{selector:":compound",matches:o(function(t){return t.isNode()?t.isParent():t.source().isParent()||t.target().isParent()},"matches")},{selector:":loop",matches:o(function(t){return t.isLoop()},"matches")},{selector:":simple",matches:o(function(t){return t.isSimple()},"matches")},{selector:":active",matches:o(function(t){return t.active()},"matches")},{selector:":inactive",matches:o(function(t){return!t.active()},"matches")},{selector:":backgrounding",matches:o(function(t){return t.backgrounding()},"matches")},{selector:":nonbackgrounding",matches:o(function(t){return!t.backgrounding()},"matches")}].sort(function(e,t){return GXt(e.selector,t.selector)}),DJt=function(){for(var e={},t,r=0;r0&&f.edgeCount>0)return on("The selector `"+t+"` is invalid because it uses both a compound selector and an edge selector"),!1;if(f.edgeCount>1)return on("The selector `"+t+"` is invalid because it uses multiple edge selectors"),!1;f.edgeCount===1&&on("The selector `"+t+"` is deprecated. Edge selectors do not take effect on changes to source and target nodes after an edge is added, for performance reasons. Use a class or data selector on edges instead, updating the class or data of an edge when your app detects a change in source or target nodes.")}return!0},"parse"),PJt=o(function(){if(this.toStringCache!=null)return this.toStringCache;for(var t=o(function(f){return f??""},"clean"),r=o(function(f){return Ke(f)?'"'+f+'"':t(f)},"cleanVal"),n=o(function(f){return" "+f+" "},"space"),i=o(function(f,d){var p=f.type,m=f.value;switch(p){case Ne.GROUP:{var g=t(m);return g.substring(0,g.length-1)}case Ne.DATA_COMPARE:{var y=f.field,v=f.operator;return"["+y+n(t(v))+r(m)+"]"}case Ne.DATA_BOOL:{var x=f.operator,b=f.field;return"["+t(x)+b+"]"}case Ne.DATA_EXIST:{var w=f.field;return"["+w+"]"}case Ne.META_COMPARE:{var S=f.operator,T=f.field;return"[["+T+n(t(S))+r(m)+"]]"}case Ne.STATE:return m;case Ne.ID:return"#"+m;case Ne.CLASS:return"."+m;case Ne.PARENT:case Ne.CHILD:return a(f.parent,d)+n(">")+a(f.child,d);case Ne.ANCESTOR:case Ne.DESCENDANT:return a(f.ancestor,d)+" "+a(f.descendant,d);case Ne.COMPOUND_SPLIT:{var E=a(f.left,d),_=a(f.subject,d),A=a(f.right,d);return E+(E.length>0?" ":"")+_+A}case Ne.TRUE:return""}},"checkToString"),a=o(function(f,d){return f.checks.reduce(function(p,m,g){return p+(d===f&&g===0?"$":"")+i(m,d)},"")},"queryToString"),s="",l=0;l1&&l=0&&(r=r.replace("!",""),d=!0),r.indexOf("@")>=0&&(r=r.replace("@",""),f=!0),(a||l||f)&&(u=!a&&!s?"":""+t,h=""+n),f&&(t=u=u.toLowerCase(),n=h=h.toLowerCase()),r){case"*=":i=u.indexOf(h)>=0;break;case"$=":i=u.indexOf(h,u.length-h.length)>=0;break;case"^=":i=u.indexOf(h)===0;break;case"=":i=t===n;break;case">":p=!0,i=t>n;break;case">=":p=!0,i=t>=n;break;case"<":p=!0,i=t1&&arguments[1]!==void 0?arguments[1]:!0;return xF(this,e,t,C1t)};o(S1t,"addParent");E1.forEachUp=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return xF(this,e,t,S1t)};o(HJt,"addParentAndChildren");E1.forEachUpAndDown=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return xF(this,e,t,HJt)};E1.ancestors=E1.parents;bb=A1t={data:sn.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),removeData:sn.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),scratch:sn.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:sn.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),rscratch:sn.data({field:"rscratch",allowBinding:!1,allowSetting:!0,settingTriggersEvent:!1,allowGetting:!0}),removeRscratch:sn.removeData({field:"rscratch",triggerEvent:!1}),id:o(function(){var t=this[0];if(t)return t._private.data.id},"id")};bb.attr=bb.data;bb.removeAttr=bb.removeData;WJt=A1t,PC={};o(OB,"defineDegreeFunction");ir(PC,{degree:OB(function(e,t){return t.source().same(t.target())?2:1}),indegree:OB(function(e,t){return t.target().same(e)?1:0}),outdegree:OB(function(e,t){return t.source().same(e)?1:0})});o(u1,"defineDegreeBoundsFunction");ir(PC,{minDegree:u1("degree",function(e,t){return et}),minIndegree:u1("indegree",function(e,t){return et}),minOutdegree:u1("outdegree",function(e,t){return et})});ir(PC,{totalDegree:o(function(t){for(var r=0,n=this.nodes(),i=0;i0,p=d;d&&(f=f[0]);var m=p?f.position():{x:0,y:0};r!==void 0?h.position(t,r+m[t]):a!==void 0&&h.position({x:a.x+m.x,y:a.y+m.y})}else{var g=n.position(),y=l?n.parent():null,v=y&&y.length>0,x=v;v&&(y=y[0]);var b=x?y.position():{x:0,y:0};return a={x:g.x-b.x,y:g.y-b.y},t===void 0?a:a[t]}else if(!s)return;return this},"relativePosition")};Kl.modelPosition=Kl.point=Kl.position;Kl.modelPositions=Kl.points=Kl.positions;Kl.renderedPoint=Kl.renderedPosition;Kl.relativePoint=Kl.relativePosition;YJt=_1t;b1=Pf={};Pf.renderedBoundingBox=function(e){var t=this.boundingBox(e),r=this.cy(),n=r.zoom(),i=r.pan(),a=t.x1*n+i.x,s=t.x2*n+i.x,l=t.y1*n+i.y,u=t.y2*n+i.y;return{x1:a,x2:s,y1:l,y2:u,w:s-a,h:u-l}};Pf.dirtyCompoundBoundsCache=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,t=this.cy();return!t.styleEnabled()||!t.hasCompoundNodes()?this:(this.forEachUp(function(r){if(r.isParent()){var n=r._private;n.compoundBoundsClean=!1,n.bbCache=null,e||r.emitAndNotify("bounds")}}),this)};Pf.updateCompoundBounds=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,t=this.cy();if(!t.styleEnabled()||!t.hasCompoundNodes())return this;if(!e&&t.batching())return this;function r(s){if(!s.isParent())return;var l=s._private,u=s.children(),h=s.pstyle("compound-sizing-wrt-labels").value==="include",f={width:{val:s.pstyle("min-width").pfValue,left:s.pstyle("min-width-bias-left"),right:s.pstyle("min-width-bias-right")},height:{val:s.pstyle("min-height").pfValue,top:s.pstyle("min-height-bias-top"),bottom:s.pstyle("min-height-bias-bottom")}},d=u.boundingBox({includeLabels:h,includeOverlays:!1,useCache:!1}),p=l.position;(d.w===0||d.h===0)&&(d={w:s.pstyle("width").pfValue,h:s.pstyle("height").pfValue},d.x1=p.x-d.w/2,d.x2=p.x+d.w/2,d.y1=p.y-d.h/2,d.y2=p.y+d.h/2);function m(L,M,N){var k=0,I=0,C=M+N;return L>0&&C>0&&(k=M/C*L,I=N/C*L),{biasDiff:k,biasComplementDiff:I}}o(m,"computeBiasValues");function g(L,M,N,k){if(N.units==="%")switch(k){case"width":return L>0?N.pfValue*L:0;case"height":return M>0?N.pfValue*M:0;case"average":return L>0&&M>0?N.pfValue*(L+M)/2:0;case"min":return L>0&&M>0?L>M?N.pfValue*M:N.pfValue*L:0;case"max":return L>0&&M>0?L>M?N.pfValue*L:N.pfValue*M:0;default:return 0}else return N.units==="px"?N.pfValue:0}o(g,"computePaddingValues");var y=f.width.left.value;f.width.left.units==="px"&&f.width.val>0&&(y=y*100/f.width.val);var v=f.width.right.value;f.width.right.units==="px"&&f.width.val>0&&(v=v*100/f.width.val);var x=f.height.top.value;f.height.top.units==="px"&&f.height.val>0&&(x=x*100/f.height.val);var b=f.height.bottom.value;f.height.bottom.units==="px"&&f.height.val>0&&(b=b*100/f.height.val);var w=m(f.width.val-d.w,y,v),S=w.biasDiff,T=w.biasComplementDiff,E=m(f.height.val-d.h,x,b),_=E.biasDiff,A=E.biasComplementDiff;l.autoPadding=g(d.w,d.h,s.pstyle("padding"),s.pstyle("padding-relative-to").value),l.autoWidth=Math.max(d.w,f.width.val),p.x=(-S+d.x1+d.x2+T)/2,l.autoHeight=Math.max(d.h,f.height.val),p.y=(-_+d.y1+d.y2+A)/2}o(r,"update");for(var n=0;nt.x2?i:t.x2,t.y1=nt.y2?a:t.y2,t.w=t.x2-t.x1,t.h=t.y2-t.y1)},"updateBounds"),W0=o(function(t,r){return r==null?t:Xl(t,r.x1,r.y1,r.x2,r.y2)},"updateBoundsFromBox"),nb=o(function(t,r,n){return jl(t,r,n)},"prefixedProperty"),eC=o(function(t,r,n){if(!r.cy().headless()){var i=r._private,a=i.rstyle,s=a.arrowWidth/2,l=r.pstyle(n+"-arrow-shape").value,u,h;if(l!=="none"){n==="source"?(u=a.srcX,h=a.srcY):n==="target"?(u=a.tgtX,h=a.tgtY):(u=a.midX,h=a.midY);var f=i.arrowBounds=i.arrowBounds||{},d=f[n]=f[n]||{};d.x1=u-s,d.y1=h-s,d.x2=u+s,d.y2=h+s,d.w=d.x2-d.x1,d.h=d.y2-d.y1,oC(d,1),Xl(t,d.x1,d.y1,d.x2,d.y2)}}},"updateBoundsFromArrow"),PB=o(function(t,r,n){if(!r.cy().headless()){var i;n?i=n+"-":i="";var a=r._private,s=a.rstyle,l=r.pstyle(i+"label").strValue;if(l){var u=r.pstyle("text-halign"),h=r.pstyle("text-valign"),f=nb(s,"labelWidth",n),d=nb(s,"labelHeight",n),p=nb(s,"labelX",n),m=nb(s,"labelY",n),g=r.pstyle(i+"text-margin-x").pfValue,y=r.pstyle(i+"text-margin-y").pfValue,v=r.isEdge(),x=r.pstyle(i+"text-rotation"),b=r.pstyle("text-outline-width").pfValue,w=r.pstyle("text-border-width").pfValue,S=w/2,T=r.pstyle("text-background-padding").pfValue,E=2,_=d,A=f,L=A/2,M=_/2,N,k,I,C;if(v)N=p-L,k=p+L,I=m-M,C=m+M;else{switch(u.value){case"left":N=p-A,k=p;break;case"center":N=p-L,k=p+L;break;case"right":N=p,k=p+A;break}switch(h.value){case"top":I=m-_,C=m;break;case"center":I=m-M,C=m+M;break;case"bottom":I=m,C=m+_;break}}N+=g-Math.max(b,S)-T-E,k+=g+Math.max(b,S)+T+E,I+=y-Math.max(b,S)-T-E,C+=y+Math.max(b,S)+T+E;var O=n||"main",D=a.labelBounds,P=D[O]=D[O]||{};P.x1=N,P.y1=I,P.x2=k,P.y2=C,P.w=k-N,P.h=C-I;var F=v&&x.strValue==="autorotate",B=x.pfValue!=null&&x.pfValue!==0;if(F||B){var G=F?nb(a.rstyle,"labelAngle",n):x.pfValue,z=Math.cos(G),W=Math.sin(G),Q=(N+k)/2,j=(I+C)/2;if(!v){switch(u.value){case"left":Q=k;break;case"right":Q=N;break}switch(h.value){case"top":j=C;break;case"bottom":j=I;break}}var at=o(function(ct,ut){return ct=ct-Q,ut=ut-j,{x:ct*z-ut*W+Q,y:ct*W+ut*z+j}},"rotate"),X=at(N,I),J=at(N,C),Z=at(k,I),H=at(k,C);N=Math.min(X.x,J.x,Z.x,H.x),k=Math.max(X.x,J.x,Z.x,H.x),I=Math.min(X.y,J.y,Z.y,H.y),C=Math.max(X.y,J.y,Z.y,H.y)}var q=O+"Rot",K=D[q]=D[q]||{};K.x1=N,K.y1=I,K.x2=k,K.y2=C,K.w=k-N,K.h=C-I,Xl(t,N,I,k,C),Xl(a.labelBounds.all,N,I,k,C)}return t}},"updateBoundsFromLabel"),qJt=o(function(t,r){if(!r.cy().headless()){var n=r.pstyle("outline-opacity").value,i=r.pstyle("outline-width").value;if(n>0&&i>0){var a=r.pstyle("outline-offset").value,s=r.pstyle("shape").value,l=i+a,u=(t.w+l*2)/t.w,h=(t.h+l*2)/t.h,f=0,d=0;["diamond","pentagon","round-triangle"].includes(s)?(u=(t.w+l*2.4)/t.w,d=-l/3.6):["concave-hexagon","rhomboid","right-rhomboid"].includes(s)?u=(t.w+l*2.4)/t.w:s==="star"?(u=(t.w+l*2.8)/t.w,h=(t.h+l*2.6)/t.h,d=-l/3.8):s==="triangle"?(u=(t.w+l*2.8)/t.w,h=(t.h+l*2.4)/t.h,d=-l/1.4):s==="vee"&&(u=(t.w+l*4.4)/t.w,h=(t.h+l*3.8)/t.h,d=-l*.5);var p=t.h*h-t.h,m=t.w*u-t.w;if(lC(t,[Math.ceil(p/2),Math.ceil(m/2)]),f!=0||d!==0){var g=pKt(t,f,d);n1t(t,g)}}}},"updateBoundsFromOutline"),XJt=o(function(t,r){var n=t._private.cy,i=n.styleEnabled(),a=n.headless(),s=Ys(),l=t._private,u=t.isNode(),h=t.isEdge(),f,d,p,m,g,y,v=l.rstyle,x=u&&i?t.pstyle("bounds-expansion").pfValue:[0],b=o(function(Mt){return Mt.pstyle("display").value!=="none"},"isDisplayed"),w=!i||b(t)&&(!h||b(t.source())&&b(t.target()));if(w){var S=0,T=0;i&&r.includeOverlays&&(S=t.pstyle("overlay-opacity").value,S!==0&&(T=t.pstyle("overlay-padding").value));var E=0,_=0;i&&r.includeUnderlays&&(E=t.pstyle("underlay-opacity").value,E!==0&&(_=t.pstyle("underlay-padding").value));var A=Math.max(T,_),L=0,M=0;if(i&&(L=t.pstyle("width").pfValue,M=L/2),u&&r.includeNodes){var N=t.position();g=N.x,y=N.y;var k=t.outerWidth(),I=k/2,C=t.outerHeight(),O=C/2;f=g-I,d=g+I,p=y-O,m=y+O,Xl(s,f,p,d,m),i&&r.includeOutlines&&qJt(s,t)}else if(h&&r.includeEdges)if(i&&!a){var D=t.pstyle("curve-style").strValue;if(f=Math.min(v.srcX,v.midX,v.tgtX),d=Math.max(v.srcX,v.midX,v.tgtX),p=Math.min(v.srcY,v.midY,v.tgtY),m=Math.max(v.srcY,v.midY,v.tgtY),f-=M,d+=M,p-=M,m+=M,Xl(s,f,p,d,m),D==="haystack"){var P=v.haystackPts;if(P&&P.length===2){if(f=P[0].x,p=P[0].y,d=P[1].x,m=P[1].y,f>d){var F=f;f=d,d=F}if(p>m){var B=p;p=m,m=B}Xl(s,f-M,p-M,d+M,m+M)}}else if(D==="bezier"||D==="unbundled-bezier"||D.endsWith("segments")||D.endsWith("taxi")){var G;switch(D){case"bezier":case"unbundled-bezier":G=v.bezierPts;break;case"segments":case"taxi":case"round-segments":case"round-taxi":G=v.linePts;break}if(G!=null)for(var z=0;zd){var J=f;f=d,d=J}if(p>m){var Z=p;p=m,m=Z}f-=M,d+=M,p-=M,m+=M,Xl(s,f,p,d,m)}if(i&&r.includeEdges&&h&&(eC(s,t,"mid-source"),eC(s,t,"mid-target"),eC(s,t,"source"),eC(s,t,"target")),i){var H=t.pstyle("ghost").value==="yes";if(H){var q=t.pstyle("ghost-offset-x").pfValue,K=t.pstyle("ghost-offset-y").pfValue;Xl(s,s.x1+q,s.y1+K,s.x2+q,s.y2+K)}}var ot=l.bodyBounds=l.bodyBounds||{};Rmt(ot,s),lC(ot,x),oC(ot,1),i&&(f=s.x1,d=s.x2,p=s.y1,m=s.y2,Xl(s,f-A,p-A,d+A,m+A));var ct=l.overlayBounds=l.overlayBounds||{};Rmt(ct,s),lC(ct,x),oC(ct,1);var ut=l.labelBounds=l.labelBounds||{};ut.all!=null?dKt(ut.all):ut.all=Ys(),i&&r.includeLabels&&(r.includeMainLabels&&PB(s,t,null),h&&(r.includeSourceLabels&&PB(s,t,"source"),r.includeTargetLabels&&PB(s,t,"target")))}return s.x1=il(s.x1),s.y1=il(s.y1),s.x2=il(s.x2),s.y2=il(s.y2),s.w=il(s.x2-s.x1),s.h=il(s.y2-s.y1),s.w>0&&s.h>0&&w&&(lC(s,x),oC(s,1)),s},"boundingBoxImpl"),D1t=o(function(t){var r=0,n=o(function(s){return(s?1:0)<=0;l--)s(l);return this};Of.removeAllListeners=function(){return this.removeListener("*")};Of.emit=Of.trigger=function(e,t,r){var n=this.listeners,i=n.length;return this.emitting++,kn(t)||(t=[t]),ute(this,function(a,s){r!=null&&(n=[{event:s.event,type:s.type,namespace:s.namespace,callback:r}],i=n.length);for(var l=o(function(f){var d=n[f];if(d.type===s.type&&(!d.namespace||d.namespace===s.namespace||d.namespace===lte)&&a.eventMatches(a.context,d,s)){var p=[s];t!=null&&Gjt(p,t),a.beforeEmit(a.context,d,s),d.conf&&d.conf.one&&(a.listeners=a.listeners.filter(function(y){return y!==d}));var m=a.callbackContext(a.context,d,s),g=d.callback.apply(m,p);a.afterEmit(a.context,d,s),g===!1&&(s.stopPropagation(),s.preventDefault())}},"_loop2"),u=0;u1&&!s){var l=this.length-1,u=this[l],h=u._private.data.id;this[l]=void 0,this[t]=u,a.set(h,{ele:u,index:t})}return this.length--,this},"unmergeAt"),unmergeOne:o(function(t){t=t[0];var r=this._private,n=t._private.data.id,i=r.map,a=i.get(n);if(!a)return this;var s=a.index;return this.unmergeAt(s),this},"unmergeOne"),unmerge:o(function(t){var r=this._private.cy;if(!t)return this;if(t&&Ke(t)){var n=t;t=r.mutableElements().filter(n)}for(var i=0;i=0;r--){var n=this[r];t(n)&&this.unmergeAt(r)}return this},"unmergeBy"),map:o(function(t,r){for(var n=[],i=this,a=0;an&&(n=u,i=l)}return{value:n,ele:i}},"max"),min:o(function(t,r){for(var n=1/0,i,a=this,s=0;s=0&&a"u"?"undefined":ji(Symbol))!=t&&ji(Symbol.iterator)!=t;r&&(TC[Symbol.iterator]=function(){var n=this,i={value:void 0,done:!1},a=0,s=this.length;return Ogt({next:o(function(){return a1&&arguments[1]!==void 0?arguments[1]:!0,n=this[0],i=n.cy();if(i.styleEnabled()&&n){this.cleanStyle();var a=n._private.style[t];return a??(r?i.style().getDefaultProperty(t):null)}},"parsedStyle"),numericStyle:o(function(t){var r=this[0];if(r.cy().styleEnabled()&&r){var n=r.pstyle(t);return n.pfValue!==void 0?n.pfValue:n.value}},"numericStyle"),numericStyleUnits:o(function(t){var r=this[0];if(r.cy().styleEnabled()&&r)return r.pstyle(t).units},"numericStyleUnits"),renderedStyle:o(function(t){var r=this.cy();if(!r.styleEnabled())return this;var n=this[0];if(n)return r.style().getRenderedStyle(n,t)},"renderedStyle"),style:o(function(t,r){var n=this.cy();if(!n.styleEnabled())return this;var i=!1,a=n.style();if(Ur(t)){var s=t;a.applyBypass(this,s,i),this.emitAndNotify("style")}else if(Ke(t))if(r===void 0){var l=this[0];return l?a.getStylePropertyValue(l,t):void 0}else a.applyBypass(this,t,r,i),this.emitAndNotify("style");else if(t===void 0){var u=this[0];return u?a.getRawStyle(u):void 0}return this},"style"),removeStyle:o(function(t){var r=this.cy();if(!r.styleEnabled())return this;var n=!1,i=r.style(),a=this;if(t===void 0)for(var s=0;s0&&t.push(f[0]),t.push(l[0])}return this.spawn(t,!0).filter(e)},"neighborhood"),closedNeighborhood:o(function(t){return this.neighborhood().add(this).filter(t)},"closedNeighborhood"),openNeighborhood:o(function(t){return this.neighborhood(t)},"openNeighborhood")});Ua.neighbourhood=Ua.neighborhood;Ua.closedNeighbourhood=Ua.closedNeighborhood;Ua.openNeighbourhood=Ua.openNeighborhood;ir(Ua,{source:al(o(function(t){var r=this[0],n;return r&&(n=r._private.source||r.cy().collection()),n&&t?n.filter(t):n},"sourceImpl"),"source"),target:al(o(function(t){var r=this[0],n;return r&&(n=r._private.target||r.cy().collection()),n&&t?n.filter(t):n},"targetImpl"),"target"),sources:cgt({attr:"source"}),targets:cgt({attr:"target"})});o(cgt,"defineSourceFunction");ir(Ua,{edgesWith:al(ugt(),"edgesWith"),edgesTo:al(ugt({thisIsSrc:!0}),"edgesTo")});o(ugt,"defineEdgesWithFunction");ir(Ua,{connectedEdges:al(function(e){for(var t=[],r=this,n=0;n0);return s},"components"),component:o(function(){var t=this[0];return t.cy().mutableElements().components(t)[0]},"component")});Ua.componentsOf=Ua.components;La=o(function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(t===void 0){fi("A collection must have a reference to the core");return}var a=new Qc,s=!1;if(!r)r=[];else if(r.length>0&&Ur(r[0])&&!Cb(r[0])){s=!0;for(var l=[],u=new C1,h=0,f=r.length;h0&&arguments[0]!==void 0?arguments[0]:!0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=this,n=r.cy(),i=n._private,a=[],s=[],l,u=0,h=r.length;u0){for(var B=l.length===r.length?r:new La(n,l),G=0;G0&&arguments[0]!==void 0?arguments[0]:!0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=this,n=[],i={},a=r._private.cy;function s(C){for(var O=C._private.edges,D=0;D0&&(e?N.emitAndNotify("remove"):t&&N.emit("remove"));for(var k=0;kf&&Math.abs(g.v)>f;);return p?function(y){return u[y*(u.length-1)|0]}:h},"springRK4Factory")}(),In=o(function(t,r,n,i){var a=bte(t,r,n,i);return function(s,l,u){return s+(l-s)*a(u)}},"cubicBezier"),hC={linear:o(function(t,r,n){return t+(r-t)*n},"linear"),ease:In(.25,.1,.25,1),"ease-in":In(.42,0,1,1),"ease-out":In(0,0,.58,1),"ease-in-out":In(.42,0,.58,1),"ease-in-sine":In(.47,0,.745,.715),"ease-out-sine":In(.39,.575,.565,1),"ease-in-out-sine":In(.445,.05,.55,.95),"ease-in-quad":In(.55,.085,.68,.53),"ease-out-quad":In(.25,.46,.45,.94),"ease-in-out-quad":In(.455,.03,.515,.955),"ease-in-cubic":In(.55,.055,.675,.19),"ease-out-cubic":In(.215,.61,.355,1),"ease-in-out-cubic":In(.645,.045,.355,1),"ease-in-quart":In(.895,.03,.685,.22),"ease-out-quart":In(.165,.84,.44,1),"ease-in-out-quart":In(.77,0,.175,1),"ease-in-quint":In(.755,.05,.855,.06),"ease-out-quint":In(.23,1,.32,1),"ease-in-out-quint":In(.86,0,.07,1),"ease-in-expo":In(.95,.05,.795,.035),"ease-out-expo":In(.19,1,.22,1),"ease-in-out-expo":In(1,0,0,1),"ease-in-circ":In(.6,.04,.98,.335),"ease-out-circ":In(.075,.82,.165,1),"ease-in-out-circ":In(.785,.135,.15,.86),spring:o(function(t,r,n){if(n===0)return hC.linear;var i=wte(t,r,n);return function(a,s,l){return a+(s-a)*i(l)}},"spring"),"cubic-bezier":In};o(fgt,"getEasedValue");o(dgt,"getValue");o(h1,"ease");o(Tte,"step$1");o(ab,"valid");o(kte,"startAnimation");o(pgt,"stepAll");Ete={animate:sn.animate(),animation:sn.animation(),animated:sn.animated(),clearQueue:sn.clearQueue(),delay:sn.delay(),delayAnimation:sn.delayAnimation(),stop:sn.stop(),addToAnimationPool:o(function(t){var r=this;r.styleEnabled()&&r._private.aniEles.merge(t)},"addToAnimationPool"),stopAnimationLoop:o(function(){this._private.animationsRunning=!1},"stopAnimationLoop"),startAnimationLoop:o(function(){var t=this;if(t._private.animationsRunning=!0,!t.styleEnabled())return;function r(){t._private.animationsRunning&&yC(o(function(a){pgt(a,t),r()},"animationStep"))}o(r,"headlessStep");var n=t.renderer();n&&n.beforeRender?n.beforeRender(o(function(a,s){pgt(s,t)},"rendererAnimationStep"),n.beforeRenderPriorities.animations):r()},"startAnimationLoop")},Cte={qualifierCompare:o(function(t,r){return t==null||r==null?t==null&&r==null:t.sameText(r)},"qualifierCompare"),eventMatches:o(function(t,r,n){var i=r.qualifier;return i!=null?t!==n.target&&Cb(n.target)&&i.matches(n.target):!0},"eventMatches"),addEventFields:o(function(t,r){r.cy=t,r.target=t},"addEventFields"),callbackContext:o(function(t,r,n){return r.qualifier!=null?n.target:t},"callbackContext")},iC=o(function(t){return Ke(t)?new Mf(t):t},"argSelector"),G1t={createEmitter:o(function(){var t=this._private;return t.emitter||(t.emitter=new BC(Cte,this)),this},"createEmitter"),emitter:o(function(){return this._private.emitter},"emitter"),on:o(function(t,r,n){return this.emitter().on(t,iC(r),n),this},"on"),removeListener:o(function(t,r,n){return this.emitter().removeListener(t,iC(r),n),this},"removeListener"),removeAllListeners:o(function(){return this.emitter().removeAllListeners(),this},"removeAllListeners"),one:o(function(t,r,n){return this.emitter().one(t,iC(r),n),this},"one"),once:o(function(t,r,n){return this.emitter().one(t,iC(r),n),this},"once"),emit:o(function(t,r){return this.emitter().emit(t,r),this},"emit"),emitAndNotify:o(function(t,r){return this.emit(t),this.notify(t,r),this},"emitAndNotify")};sn.eventAliasesOn(G1t);XB={png:o(function(t){var r=this._private.renderer;return t=t||{},r.png(t)},"png"),jpg:o(function(t){var r=this._private.renderer;return t=t||{},t.bg=t.bg||"#fff",r.jpg(t)},"jpg")};XB.jpeg=XB.jpg;fC={layout:o(function(t){var r=this;if(t==null){fi("Layout options must be specified to make a layout");return}if(t.name==null){fi("A `name` must be specified to make a layout");return}var n=t.name,i=r.extension("layout",n);if(i==null){fi("No such layout `"+n+"` found. Did you forget to import it and `cytoscape.use()` it?");return}var a;Ke(t.eles)?a=r.$(t.eles):a=t.eles!=null?t.eles:r.$();var s=new i(ir({},t,{cy:r,eles:a}));return s},"layout")};fC.createLayout=fC.makeLayout=fC.layout;Ste={notify:o(function(t,r){var n=this._private;if(this.batching()){n.batchNotifications=n.batchNotifications||{};var i=n.batchNotifications[t]=n.batchNotifications[t]||this.collection();r!=null&&i.merge(r);return}if(n.notificationsEnabled){var a=this.renderer();this.destroyed()||!a||a.notify(t,r)}},"notify"),notifications:o(function(t){var r=this._private;return t===void 0?r.notificationsEnabled:(r.notificationsEnabled=!!t,this)},"notifications"),noNotifications:o(function(t){this.notifications(!1),t(),this.notifications(!0)},"noNotifications"),batching:o(function(){return this._private.batchCount>0},"batching"),startBatch:o(function(){var t=this._private;return t.batchCount==null&&(t.batchCount=0),t.batchCount===0&&(t.batchStyleEles=this.collection(),t.batchNotifications={}),t.batchCount++,this},"startBatch"),endBatch:o(function(){var t=this._private;if(t.batchCount===0)return this;if(t.batchCount--,t.batchCount===0){t.batchStyleEles.updateStyle();var r=this.renderer();Object.keys(t.batchNotifications).forEach(function(n){var i=t.batchNotifications[n];i.empty()?r.notify(n):r.notify(n,i)})}return this},"endBatch"),batch:o(function(t){return this.startBatch(),t(),this.endBatch(),this},"batch"),batchData:o(function(t){var r=this;return this.batch(function(){for(var n=Object.keys(t),i=0;i0;)r.removeChild(r.childNodes[0]);t._private.renderer=null,t.mutableElements().forEach(function(n){var i=n._private;i.rscratch={},i.rstyle={},i.animation.current=[],i.animation.queue=[]})},"destroyRenderer"),onRender:o(function(t){return this.on("render",t)},"onRender"),offRender:o(function(t){return this.off("render",t)},"offRender")};jB.invalidateDimensions=jB.resize;dC={collection:o(function(t,r){return Ke(t)?this.$(t):wo(t)?t.collection():kn(t)?(r||(r={}),new La(this,t,r.unique,r.removed)):new La(this)},"collection"),nodes:o(function(t){var r=this.$(function(n){return n.isNode()});return t?r.filter(t):r},"nodes"),edges:o(function(t){var r=this.$(function(n){return n.isEdge()});return t?r.filter(t):r},"edges"),$:o(function(t){var r=this._private.elements;return t?r.filter(t):r.spawnSelf()},"$"),mutableElements:o(function(){return this._private.elements},"mutableElements")};dC.elements=dC.filter=dC.$;Wa={},hb="t",_te="f";Wa.apply=function(e){for(var t=this,r=t._private,n=r.cy,i=n.collection(),a=0;a0;if(p||d&&m){var g=void 0;p&&m||p?g=h.properties:m&&(g=h.mappedProperties);for(var y=0;y1&&(S=1),l.color){var E=n.valueMin[0],_=n.valueMax[0],A=n.valueMin[1],L=n.valueMax[1],M=n.valueMin[2],N=n.valueMax[2],k=n.valueMin[3]==null?1:n.valueMin[3],I=n.valueMax[3]==null?1:n.valueMax[3],C=[Math.round(E+(_-E)*S),Math.round(A+(L-A)*S),Math.round(M+(N-M)*S),Math.round(k+(I-k)*S)];a={bypass:n.bypass,name:n.name,value:C,strValue:"rgb("+C[0]+", "+C[1]+", "+C[2]+")"}}else if(l.number){var O=n.valueMin+(n.valueMax-n.valueMin)*S;a=this.parse(n.name,O,n.bypass,p)}else return!1;if(!a)return y(),!1;a.mapping=n,n=a;break}case s.data:{for(var D=n.field.split("."),P=d.data,F=0;F0&&a>0){for(var l={},u=!1,h=0;h0?e.delayAnimation(s).play().promise().then(w):w()}).then(function(){return e.animation({style:l,duration:a,easing:e.pstyle("transition-timing-function").value,queue:!1}).play().promise()}).then(function(){r.removeBypasses(e,i),e.emitAndNotify("style"),n.transitioning=!1})}else n.transitioning&&(this.removeBypasses(e,i),e.emitAndNotify("style"),n.transitioning=!1)};Wa.checkTrigger=function(e,t,r,n,i,a){var s=this.properties[t],l=i(s);l!=null&&l(r,n)&&a(s)};Wa.checkZOrderTrigger=function(e,t,r,n){var i=this;this.checkTrigger(e,t,r,n,function(a){return a.triggersZOrder},function(){i._private.cy.notify("zorder",e)})};Wa.checkBoundsTrigger=function(e,t,r,n){this.checkTrigger(e,t,r,n,function(i){return i.triggersBounds},function(i){e.dirtyCompoundBoundsCache(),e.dirtyBoundingBoxCache(),i.triggersBoundsOfParallelBeziers&&t==="curve-style"&&(r==="bezier"||n==="bezier")&&e.parallelEdges().forEach(function(a){a.isBundledBezier()&&a.dirtyBoundingBoxCache()}),i.triggersBoundsOfConnectedEdges&&t==="display"&&(r==="none"||n==="none")&&e.connectedEdges().forEach(function(a){a.dirtyBoundingBoxCache()})})};Wa.checkTriggers=function(e,t,r,n){e.dirtyStyleCache(),this.checkZOrderTrigger(e,t,r,n),this.checkBoundsTrigger(e,t,r,n)};Lb={};Lb.applyBypass=function(e,t,r,n){var i=this,a=[],s=!0;if(t==="*"||t==="**"){if(r!==void 0)for(var l=0;li.length?n=n.substr(i.length):n=""}o(l,"removeSelAndBlockFromRemaining");function u(){a.length>s.length?a=a.substr(s.length):a=""}for(o(u,"removePropAndValFromRem");;){var h=n.match(/^\s*$/);if(h)break;var f=n.match(/^\s*((?:.|\s)+?)\s*\{((?:.|\s)+?)\}/);if(!f){on("Halting stylesheet parsing: String stylesheet contains more to parse but no selector and block found in: "+n);break}i=f[0];var d=f[1];if(d!=="core"){var p=new Mf(d);if(p.invalid){on("Skipping parsing of block: Invalid selector found in string stylesheet: "+d),l();continue}}var m=f[2],g=!1;a=m;for(var y=[];;){var v=a.match(/^\s*$/);if(v)break;var x=a.match(/^\s*(.+?)\s*:\s*(.+?)(?:\s*;|\s*$)/);if(!x){on("Skipping parsing of block: Invalid formatting of style property and value definitions found in:"+m),g=!0;break}s=x[0];var b=x[1],w=x[2],S=t.properties[b];if(!S){on("Skipping property: Invalid property name in: "+s),u();continue}var T=r.parse(b,w);if(!T){on("Skipping property: Invalid property definition in: "+s),u();continue}y.push({name:b,val:w}),u()}if(g){l();break}r.selector(d);for(var E=0;E=7&&t[0]==="d"&&(f=new RegExp(l.data.regex).exec(t))){if(r)return!1;var p=l.data;return{name:e,value:f,strValue:""+t,mapped:p,field:f[1],bypass:r}}else if(t.length>=10&&t[0]==="m"&&(d=new RegExp(l.mapData.regex).exec(t))){if(r||h.multiple)return!1;var m=l.mapData;if(!(h.color||h.number))return!1;var g=this.parse(e,d[4]);if(!g||g.mapped)return!1;var y=this.parse(e,d[5]);if(!y||y.mapped)return!1;if(g.pfValue===y.pfValue||g.strValue===y.strValue)return on("`"+e+": "+t+"` is not a valid mapper because the output range is zero; converting to `"+e+": "+g.strValue+"`"),this.parse(e,g.strValue);if(h.color){var v=g.value,x=y.value,b=v[0]===x[0]&&v[1]===x[1]&&v[2]===x[2]&&(v[3]===x[3]||(v[3]==null||v[3]===1)&&(x[3]==null||x[3]===1));if(b)return!1}return{name:e,value:d,strValue:""+t,mapped:m,field:d[1],fieldMin:parseFloat(d[2]),fieldMax:parseFloat(d[3]),valueMin:g.value,valueMax:y.value,bypass:r}}}if(h.multiple&&n!=="multiple"){var w;if(u?w=t.split(/\s+/):kn(t)?w=t:w=[t],h.evenMultiple&&w.length%2!==0)return null;for(var S=[],T=[],E=[],_="",A=!1,L=0;L0?" ":"")+M.strValue}return h.validate&&!h.validate(S,T)?null:h.singleEnum&&A?S.length===1&&Ke(S[0])?{name:e,value:S[0],strValue:S[0],bypass:r}:null:{name:e,value:S,pfValue:E,strValue:_,bypass:r,units:T}}var N=o(function(){for(var H=0;Hh.max||h.strictMax&&t===h.max))return null;var D={name:e,value:t,strValue:""+t+(k||""),units:k,bypass:r};return h.unitless||k!=="px"&&k!=="em"?D.pfValue=t:D.pfValue=k==="px"||!k?t:this.getEmSizeInPixels()*t,(k==="ms"||k==="s")&&(D.pfValue=k==="ms"?t:1e3*t),(k==="deg"||k==="rad")&&(D.pfValue=k==="rad"?t:cKt(t)),k==="%"&&(D.pfValue=t/100),D}else if(h.propList){var P=[],F=""+t;if(F!=="none"){for(var B=F.split(/\s*,\s*|\s+/),G=0;G0&&l>0&&!isNaN(n.w)&&!isNaN(n.h)&&n.w>0&&n.h>0){u=Math.min((s-2*r)/n.w,(l-2*r)/n.h),u=u>this._private.maxZoom?this._private.maxZoom:u,u=u=n.minZoom&&(n.maxZoom=r),this},"zoomRange"),minZoom:o(function(t){return t===void 0?this._private.minZoom:this.zoomRange({min:t})},"minZoom"),maxZoom:o(function(t){return t===void 0?this._private.maxZoom:this.zoomRange({max:t})},"maxZoom"),getZoomedViewport:o(function(t){var r=this._private,n=r.pan,i=r.zoom,a,s,l=!1;if(r.zoomingEnabled||(l=!0),be(t)?s=t:Ur(t)&&(s=t.level,t.position!=null?a=RC(t.position,i,n):t.renderedPosition!=null&&(a=t.renderedPosition),a!=null&&!r.panningEnabled&&(l=!0)),s=s>r.maxZoom?r.maxZoom:s,s=sr.maxZoom||!r.zoomingEnabled?s=!0:(r.zoom=u,a.push("zoom"))}if(i&&(!s||!t.cancelOnFailedZoom)&&r.panningEnabled){var h=t.pan;be(h.x)&&(r.pan.x=h.x,l=!1),be(h.y)&&(r.pan.y=h.y,l=!1),l||a.push("pan")}return a.length>0&&(a.push("viewport"),this.emit(a.join(" ")),this.notify("viewport")),this},"viewport"),center:o(function(t){var r=this.getCenterPan(t);return r&&(this._private.pan=r,this.emit("pan viewport"),this.notify("viewport")),this},"center"),getCenterPan:o(function(t,r){if(this._private.panningEnabled){if(Ke(t)){var n=t;t=this.mutableElements().filter(n)}else wo(t)||(t=this.mutableElements());if(t.length!==0){var i=t.boundingBox(),a=this.width(),s=this.height();r=r===void 0?this._private.zoom:r;var l={x:(a-r*(i.x1+i.x2))/2,y:(s-r*(i.y1+i.y2))/2};return l}}},"getCenterPan"),reset:o(function(){return!this._private.panningEnabled||!this._private.zoomingEnabled?this:(this.viewport({pan:{x:0,y:0},zoom:1}),this)},"reset"),invalidateSize:o(function(){this._private.sizeCache=null},"invalidateSize"),size:o(function(){var t=this._private,r=t.container,n=this;return t.sizeCache=t.sizeCache||(r?function(){var i=n.window().getComputedStyle(r),a=o(function(l){return parseFloat(i.getPropertyValue(l))},"val");return{width:r.clientWidth-a("padding-left")-a("padding-right"),height:r.clientHeight-a("padding-top")-a("padding-bottom")}}():{width:1,height:1})},"size"),width:o(function(){return this.size().width},"width"),height:o(function(){return this.size().height},"height"),extent:o(function(){var t=this._private.pan,r=this._private.zoom,n=this.renderedExtent(),i={x1:(n.x1-t.x)/r,x2:(n.x2-t.x)/r,y1:(n.y1-t.y)/r,y2:(n.y2-t.y)/r};return i.w=i.x2-i.x1,i.h=i.y2-i.y1,i},"extent"),renderedExtent:o(function(){var t=this.width(),r=this.height();return{x1:0,y1:0,x2:t,y2:r,w:t,h:r}},"renderedExtent"),multiClickDebounceTime:o(function(t){if(t)this._private.multiClickDebounceTime=t;else return this._private.multiClickDebounceTime;return this},"multiClickDebounceTime")};tp.centre=tp.center;tp.autolockNodes=tp.autolock;tp.autoungrabifyNodes=tp.autoungrabify;Tb={data:sn.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeData:sn.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),scratch:sn.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:sn.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0})};Tb.attr=Tb.data;Tb.removeAttr=Tb.removeData;kb=o(function(t){var r=this;t=ir({},t);var n=t.container;n&&!gC(n)&&gC(n[0])&&(n=n[0]);var i=n?n._cyreg:null;i=i||{},i&&i.cy&&(i.cy.destroy(),i={});var a=i.readies=i.readies||[];n&&(n._cyreg=i),i.cy=r;var s=qi!==void 0&&n!==void 0&&!t.headless,l=t;l.layout=ir({name:s?"grid":"null"},l.layout),l.renderer=ir({name:s?"canvas":"null"},l.renderer);var u=o(function(g,y,v){return y!==void 0?y:v!==void 0?v:g},"defVal"),h=this._private={container:n,ready:!1,options:l,elements:new La(this),listeners:[],aniEles:new La(this),data:l.data||{},scratch:{},layout:null,renderer:null,destroyed:!1,notificationsEnabled:!0,minZoom:1e-50,maxZoom:1e50,zoomingEnabled:u(!0,l.zoomingEnabled),userZoomingEnabled:u(!0,l.userZoomingEnabled),panningEnabled:u(!0,l.panningEnabled),userPanningEnabled:u(!0,l.userPanningEnabled),boxSelectionEnabled:u(!0,l.boxSelectionEnabled),autolock:u(!1,l.autolock,l.autolockNodes),autoungrabify:u(!1,l.autoungrabify,l.autoungrabifyNodes),autounselectify:u(!1,l.autounselectify),styleEnabled:l.styleEnabled===void 0?s:l.styleEnabled,zoom:be(l.zoom)?l.zoom:1,pan:{x:Ur(l.pan)&&be(l.pan.x)?l.pan.x:0,y:Ur(l.pan)&&be(l.pan.y)?l.pan.y:0},animation:{current:[],queue:[]},hasCompoundNodes:!1,multiClickDebounceTime:u(250,l.multiClickDebounceTime)};this.createEmitter(),this.selectionType(l.selectionType),this.zoomRange({min:l.minZoom,max:l.maxZoom});var f=o(function(g,y){var v=g.some(MXt);if(v)return S1.all(g).then(y);y(g)},"loadExtData");h.styleEnabled&&r.setStyle([]);var d=ir({},l,l.renderer);r.initRenderer(d);var p=o(function(g,y,v){r.notifications(!1);var x=r.mutableElements();x.length>0&&x.remove(),g!=null&&(Ur(g)||kn(g))&&r.add(g),r.one("layoutready",function(w){r.notifications(!0),r.emit(w),r.one("load",y),r.emitAndNotify("load")}).one("layoutstop",function(){r.one("done",v),r.emit("done")});var b=ir({},r._private.options.layout);b.eles=r.elements(),r.layout(b).run()},"setElesAndLayout");f([l.style,l.elements],function(m){var g=m[0],y=m[1];h.styleEnabled&&r.style().append(g),p(y,function(){r.startAnimationLoop(),h.ready=!0,ni(l.ready)&&r.on("ready",l.ready);for(var v=0;v0,u=Ys(t.boundingBox?t.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()}),h;if(wo(t.roots))h=t.roots;else if(kn(t.roots)){for(var f=[],d=0;d0;){var O=C(),D=M(O,k);if(D)O.outgoers().filter(function(ut){return ut.isNode()&&n.has(ut)}).forEach(I);else if(D===null){on("Detected double maximal shift for node `"+O.id()+"`. Bailing maximal adjustment due to cycle. Use `options.maximal: true` only on DAGs.");break}}}L();var P=0;if(t.avoidOverlap)for(var F=0;F0&&x[0].length<=3?Pt/2:0),Y=2*Math.PI/x[it].length*wt;return it===0&&x[0].length===1&&(dt=1),{x:K.x+dt*Math.cos(Y),y:K.y+dt*Math.sin(Y)}}else{var _t={x:K.x+(wt+1-(Ot+1)/2)*St,y:(it+1)*Vt};return _t}},"getPosition");return n.nodes().layoutPositions(this,t,ct),this};Mte={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,radius:void 0,startAngle:3/2*Math.PI,sweep:void 0,clockwise:!0,sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:o(function(t,r){return!0},"animateFilter"),ready:void 0,stop:void 0,transform:o(function(t,r){return r},"transform")};o(U1t,"CircleLayout");U1t.prototype.run=function(){var e=this.options,t=e,r=e.cy,n=t.eles,i=t.counterclockwise!==void 0?!t.counterclockwise:t.clockwise,a=n.nodes().not(":parent");t.sort&&(a=a.sort(t.sort));for(var s=Ys(t.boundingBox?t.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()}),l={x:s.x1+s.w/2,y:s.y1+s.h/2},u=t.sweep===void 0?2*Math.PI-2*Math.PI/a.length:t.sweep,h=u/Math.max(1,a.length-1),f,d=0,p=0;p1&&t.avoidOverlap){d*=1.75;var x=Math.cos(h)-Math.cos(0),b=Math.sin(h)-Math.sin(0),w=Math.sqrt(d*d/(x*x+b*b));f=Math.max(w,f)}var S=o(function(E,_){var A=t.startAngle+_*h*(i?1:-1),L=f*Math.cos(A),M=f*Math.sin(A),N={x:l.x+L,y:l.y+M};return N},"getPos");return n.nodes().layoutPositions(this,t,S),this};Ite={fit:!0,padding:30,startAngle:3/2*Math.PI,sweep:void 0,clockwise:!0,equidistant:!1,minNodeSpacing:10,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,height:void 0,width:void 0,spacingFactor:void 0,concentric:o(function(t){return t.degree()},"concentric"),levelWidth:o(function(t){return t.maxDegree()/4},"levelWidth"),animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:o(function(t,r){return!0},"animateFilter"),ready:void 0,stop:void 0,transform:o(function(t,r){return r},"transform")};o(H1t,"ConcentricLayout");H1t.prototype.run=function(){for(var e=this.options,t=e,r=t.counterclockwise!==void 0?!t.counterclockwise:t.clockwise,n=e.cy,i=t.eles,a=i.nodes().not(":parent"),s=Ys(t.boundingBox?t.boundingBox:{x1:0,y1:0,w:n.width(),h:n.height()}),l={x:s.x1+s.w/2,y:s.y1+s.h/2},u=[],h=0,f=0;f0){var T=Math.abs(b[0].value-S.value);T>=v&&(b=[],x.push(b))}b.push(S)}var E=h+t.minNodeSpacing;if(!t.avoidOverlap){var _=x.length>0&&x[0].length>1,A=Math.min(s.w,s.h)/2-E,L=A/(x.length+_?1:0);E=Math.min(E,L)}for(var M=0,N=0;N1&&t.avoidOverlap){var O=Math.cos(C)-Math.cos(0),D=Math.sin(C)-Math.sin(0),P=Math.sqrt(E*E/(O*O+D*D));M=Math.max(P,M)}k.r=M,M+=E}if(t.equidistant){for(var F=0,B=0,G=0;G=e.numIter||(Vte(n,e),n.temperature=n.temperature*e.coolingFactor,n.temperature=e.animationThreshold&&a(),yC(d)}},"frame");f()}else{for(;h;)h=s(u),u++;ygt(n,e),l()}return this};VC.prototype.stop=function(){return this.stopped=!0,this.thread&&this.thread.stop(),this.emit("layoutstop"),this};VC.prototype.destroy=function(){return this.thread&&this.thread.stop(),this};Pte=o(function(t,r,n){for(var i=n.eles.edges(),a=n.eles.nodes(),s=Ys(n.boundingBox?n.boundingBox:{x1:0,y1:0,w:t.width(),h:t.height()}),l={isCompound:t.hasCompoundNodes(),layoutNodes:[],idToIndex:{},nodeSize:a.size(),graphSet:[],indexToGraph:[],layoutEdges:[],edgeSize:i.size(),temperature:n.initialTemp,clientWidth:s.w,clientHeight:s.h,boundingBox:s},u=n.eles.components(),h={},f=0;f0){l.graphSet.push(A);for(var f=0;fi.count?0:i.graph},"findLCA"),Fte=o(function e(t,r,n,i){var a=i.graphSet[n];if(-10)var d=i.nodeOverlap*f,p=Math.sqrt(l*l+u*u),m=d*l/p,g=d*u/p;else var y=EC(t,l,u),v=EC(r,-1*l,-1*u),x=v.x-y.x,b=v.y-y.y,w=x*x+b*b,p=Math.sqrt(w),d=(t.nodeRepulsion+r.nodeRepulsion)/w,m=d*x/p,g=d*b/p;t.isLocked||(t.offsetX-=m,t.offsetY-=g),r.isLocked||(r.offsetX+=m,r.offsetY+=g)}},"nodeRepulsion"),Wte=o(function(t,r,n,i){if(n>0)var a=t.maxX-r.minX;else var a=r.maxX-t.minX;if(i>0)var s=t.maxY-r.minY;else var s=r.maxY-t.minY;return a>=0&&s>=0?Math.sqrt(a*a+s*s):0},"nodesOverlap"),EC=o(function(t,r,n){var i=t.positionX,a=t.positionY,s=t.height||1,l=t.width||1,u=n/r,h=s/l,f={};return r===0&&0n?(f.x=i,f.y=a+s/2,f):0r&&-1*h<=u&&u<=h?(f.x=i-l/2,f.y=a-l*n/2/r,f):0=h)?(f.x=i+s*r/2/n,f.y=a+s/2,f):(0>n&&(u<=-1*h||u>=h)&&(f.x=i-s*r/2/n,f.y=a-s/2),f)},"findClippingPoint"),Yte=o(function(t,r){for(var n=0;nn){var v=r.gravity*m/y,x=r.gravity*g/y;p.offsetX+=v,p.offsetY+=x}}}}},"calculateGravityForces"),Xte=o(function(t,r){var n=[],i=0,a=-1;for(n.push.apply(n,t.graphSet[0]),a+=t.graphSet[0].length;i<=a;){var s=n[i++],l=t.idToIndex[s],u=t.layoutNodes[l],h=u.children;if(0n)var a={x:n*t/i,y:n*r/i};else var a={x:t,y:r};return a},"limitForce"),Qte=o(function e(t,r){var n=t.parentId;if(n!=null){var i=r.layoutNodes[r.idToIndex[n]],a=!1;if((i.maxX==null||t.maxX+i.padRight>i.maxX)&&(i.maxX=t.maxX+i.padRight,a=!0),(i.minX==null||t.minX-i.padLefti.maxY)&&(i.maxY=t.maxY+i.padBottom,a=!0),(i.minY==null||t.minY-i.padTopx&&(g+=v+r.componentSpacing,m=0,y=0,v=0)}}},"separateComponents"),Zte={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,avoidOverlapPadding:10,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,condense:!1,rows:void 0,cols:void 0,position:o(function(t){},"position"),sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:o(function(t,r){return!0},"animateFilter"),ready:void 0,stop:void 0,transform:o(function(t,r){return r},"transform")};o(Y1t,"GridLayout");Y1t.prototype.run=function(){var e=this.options,t=e,r=e.cy,n=t.eles,i=n.nodes().not(":parent");t.sort&&(i=i.sort(t.sort));var a=Ys(t.boundingBox?t.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()});if(a.h===0||a.w===0)n.nodes().layoutPositions(this,t,function(Q){return{x:a.x1,y:a.y1}});else{var s=i.size(),l=Math.sqrt(s*a.h/a.w),u=Math.round(l),h=Math.round(a.w/a.h*l),f=o(function(j){if(j==null)return Math.min(u,h);var at=Math.min(u,h);at==u?u=j:h=j},"small"),d=o(function(j){if(j==null)return Math.max(u,h);var at=Math.max(u,h);at==u?u=j:h=j},"large"),p=t.rows,m=t.cols!=null?t.cols:t.columns;if(p!=null&&m!=null)u=p,h=m;else if(p!=null&&m==null)u=p,h=Math.ceil(s/u);else if(p==null&&m!=null)h=m,u=Math.ceil(s/h);else if(h*u>s){var g=f(),y=d();(g-1)*y>=s?f(g-1):(y-1)*g>=s&&d(y-1)}else for(;h*u=s?d(x+1):f(v+1)}var b=a.w/h,w=a.h/u;if(t.condense&&(b=0,w=0),t.avoidOverlap)for(var S=0;S=h&&(O=0,C++)},"moveToNextCell"),P={},F=0;F(O=TKt(e,t,D[P],D[P+1],D[P+2],D[P+3])))return v(_,O),!0}else if(L.edgeType==="bezier"||L.edgeType==="multibezier"||L.edgeType==="self"||L.edgeType==="compound"){for(var D=L.allpts,P=0;P+5(O=wKt(e,t,D[P],D[P+1],D[P+2],D[P+3],D[P+4],D[P+5])))return v(_,O),!0}for(var F=F||A.source,B=B||A.target,G=i.getArrowWidth(M,N),z=[{name:"source",x:L.arrowStartX,y:L.arrowStartY,angle:L.srcArrowAngle},{name:"target",x:L.arrowEndX,y:L.arrowEndY,angle:L.tgtArrowAngle},{name:"mid-source",x:L.midX,y:L.midY,angle:L.midsrcArrowAngle},{name:"mid-target",x:L.midX,y:L.midY,angle:L.midtgtArrowAngle}],P=0;P0&&(x(F),x(B))}o(b,"checkEdge");function w(_,A,L){return jl(_,A,L)}o(w,"preprop");function S(_,A){var L=_._private,M=p,N;A?N=A+"-":N="",_.boundingBox();var k=L.labelBounds[A||"main"],I=_.pstyle(N+"label").value,C=_.pstyle("text-events").strValue==="yes";if(!(!C||!I)){var O=w(L.rscratch,"labelX",A),D=w(L.rscratch,"labelY",A),P=w(L.rscratch,"labelAngle",A),F=_.pstyle(N+"text-margin-x").pfValue,B=_.pstyle(N+"text-margin-y").pfValue,G=k.x1-M-F,z=k.x2+M-F,W=k.y1-M-B,Q=k.y2+M-B;if(P){var j=Math.cos(P),at=Math.sin(P),X=o(function(ct,ut){return ct=ct-O,ut=ut-D,{x:ct*j-ut*at+O,y:ct*at+ut*j+D}},"rotate"),J=X(G,W),Z=X(G,Q),H=X(z,W),q=X(z,Q),K=[J.x+F,J.y+B,H.x+F,H.y+B,q.x+F,q.y+B,Z.x+F,Z.y+B];if(Ws(e,t,K))return v(_),!0}else if(T1(k,e,t))return v(_),!0}}o(S,"checkLabel");for(var T=s.length-1;T>=0;T--){var E=s[T];E.isNode()?x(E)||S(E):b(E)||S(E)||S(E,"source")||S(E,"target")}return l};rp.getAllInBox=function(e,t,r,n){var i=this.getCachedZSortedEles().interactive,a=[],s=Math.min(e,r),l=Math.max(e,r),u=Math.min(t,n),h=Math.max(t,n);e=s,r=l,t=u,n=h;for(var f=Ys({x1:e,y1:t,x2:r,y2:n}),d=0;d0?-(Math.PI-t.ang):Math.PI+t.ang},"invertVec"),iee=o(function(t,r,n,i,a){if(t!==Tgt?kgt(r,t,jc):nee(nl,jc),kgt(r,n,nl),bgt=jc.nx*nl.ny-jc.ny*nl.nx,wgt=jc.nx*nl.nx-jc.ny*-nl.ny,th=Math.asin(Math.max(-1,Math.min(1,bgt))),Math.abs(th)<1e-6){KB=r.x,QB=r.y,Y0=d1=0;return}q0=1,pC=!1,wgt<0?th<0?th=Math.PI+th:(th=Math.PI-th,q0=-1,pC=!0):th>0&&(q0=-1,pC=!0),r.radius!==void 0?d1=r.radius:d1=i,V0=th/2,aC=Math.min(jc.len/2,nl.len/2),a?(Xc=Math.abs(Math.cos(V0)*d1/Math.sin(V0)),Xc>aC?(Xc=aC,Y0=Math.abs(Xc*Math.sin(V0)/Math.cos(V0))):Y0=d1):(Xc=Math.min(aC,d1),Y0=Math.abs(Xc*Math.sin(V0)/Math.cos(V0))),ZB=r.x+nl.nx*Xc,JB=r.y+nl.ny*Xc,KB=ZB-nl.ny*Y0*q0,QB=JB+nl.nx*Y0*q0,K1t=r.x+jc.nx*Xc,Q1t=r.y+jc.ny*Xc,Tgt=r},"calcCornerArc");o(Z1t,"drawPreparedRoundCorner");o(CF,"getRoundCorner");Ya={};Ya.findMidptPtsEtc=function(e,t){var r=t.posPts,n=t.intersectionPts,i=t.vectorNormInverse,a,s=e.pstyle("source-endpoint"),l=e.pstyle("target-endpoint"),u=s.units!=null&&l.units!=null,h=o(function(T,E,_,A){var L=A-E,M=_-T,N=Math.sqrt(M*M+L*L);return{x:-L/N,y:M/N}},"recalcVectorNormInverse"),f=e.pstyle("edge-distances").value;switch(f){case"node-position":a=r;break;case"intersection":a=n;break;case"endpoints":{if(u){var d=this.manualEndptToPx(e.source()[0],s),p=ql(d,2),m=p[0],g=p[1],y=this.manualEndptToPx(e.target()[0],l),v=ql(y,2),x=v[0],b=v[1],w={x1:m,y1:g,x2:x,y2:b};i=h(m,g,x,b),a=w}else on("Edge ".concat(e.id()," has edge-distances:endpoints specified without manual endpoints specified via source-endpoint and target-endpoint. Falling back on edge-distances:intersection (default).")),a=n;break}}return{midptPts:a,vectorNormInverse:i}};Ya.findHaystackPoints=function(e){for(var t=0;t0?Math.max(kt-Ct,0):Math.min(kt+Ct,0)},"subDWH"),I=k(M,A),C=k(N,L),O=!1;b===h?x=Math.abs(I)>Math.abs(C)?i:n:b===u||b===l?(x=n,O=!0):(b===a||b===s)&&(x=i,O=!0);var D=x===n,P=D?C:I,F=D?N:M,B=r1t(F),G=!1;!(O&&(S||E))&&(b===l&&F<0||b===u&&F>0||b===a&&F>0||b===s&&F<0)&&(B*=-1,P=B*Math.abs(P),G=!0);var z;if(S){var W=T<0?1+T:T;z=W*P}else{var Q=T<0?P:0;z=Q+T*B}var j=o(function(kt){return Math.abs(kt)<_||Math.abs(kt)>=Math.abs(P)},"getIsTooClose"),at=j(z),X=j(Math.abs(P)-Math.abs(z)),J=at||X;if(J&&!G)if(D){var Z=Math.abs(F)<=p/2,H=Math.abs(M)<=m/2;if(Z){var q=(f.x1+f.x2)/2,K=f.y1,ot=f.y2;r.segpts=[q,K,q,ot]}else if(H){var ct=(f.y1+f.y2)/2,ut=f.x1,et=f.x2;r.segpts=[ut,ct,et,ct]}else r.segpts=[f.x1,f.y2]}else{var Mt=Math.abs(F)<=d/2,it=Math.abs(N)<=g/2;if(Mt){var wt=(f.y1+f.y2)/2,Ot=f.x1,St=f.x2;r.segpts=[Ot,wt,St,wt]}else if(it){var Vt=(f.x1+f.x2)/2,Pt=f.y1,_t=f.y2;r.segpts=[Vt,Pt,Vt,_t]}else r.segpts=[f.x2,f.y1]}else if(D){var dt=f.y1+z+(v?p/2*B:0),Y=f.x1,ft=f.x2;r.segpts=[Y,dt,ft,dt]}else{var mt=f.x1+z+(v?d/2*B:0),rt=f.y1,ht=f.y2;r.segpts=[mt,rt,mt,ht]}if(r.isRound){var nt=e.pstyle("taxi-radius").value,st=e.pstyle("radius-type").value[0]==="arc-radius";r.radii=new Array(r.segpts.length/2).fill(nt),r.isArcRadius=new Array(r.segpts.length/2).fill(st)}};Ya.tryToCorrectInvalidPoints=function(e,t){var r=e._private.rscratch;if(r.edgeType==="bezier"){var n=t.srcPos,i=t.tgtPos,a=t.srcW,s=t.srcH,l=t.tgtW,u=t.tgtH,h=t.srcShape,f=t.tgtShape,d=t.srcCornerRadius,p=t.tgtCornerRadius,m=t.srcRs,g=t.tgtRs,y=!be(r.startX)||!be(r.startY),v=!be(r.arrowStartX)||!be(r.arrowStartY),x=!be(r.endX)||!be(r.endY),b=!be(r.arrowEndX)||!be(r.arrowEndY),w=3,S=this.getArrowWidth(e.pstyle("width").pfValue,e.pstyle("arrow-scale").value)*this.arrowShapeWidth,T=w*S,E=Q0({x:r.ctrlpts[0],y:r.ctrlpts[1]},{x:r.startX,y:r.startY}),_=EC.poolIndex()){var O=I;I=C,C=O}var D=L.srcPos=I.position(),P=L.tgtPos=C.position(),F=L.srcW=I.outerWidth(),B=L.srcH=I.outerHeight(),G=L.tgtW=C.outerWidth(),z=L.tgtH=C.outerHeight(),W=L.srcShape=r.nodeShapes[t.getNodeShape(I)],Q=L.tgtShape=r.nodeShapes[t.getNodeShape(C)],j=L.srcCornerRadius=I.pstyle("corner-radius").value==="auto"?"auto":I.pstyle("corner-radius").pfValue,at=L.tgtCornerRadius=C.pstyle("corner-radius").value==="auto"?"auto":C.pstyle("corner-radius").pfValue,X=L.tgtRs=C._private.rscratch,J=L.srcRs=I._private.rscratch;L.dirCounts={north:0,west:0,south:0,east:0,northwest:0,southwest:0,northeast:0,southeast:0};for(var Z=0;Z0){var ot=a,ct=H0(ot,m1(r)),ut=H0(ot,m1(K)),et=ct;if(ut2){var Mt=H0(ot,{x:K[2],y:K[3]});Mt0){var ht=s,nt=H0(ht,m1(r)),st=H0(ht,m1(rt)),Tt=nt;if(st2){var kt=H0(ht,{x:rt[2],y:rt[3]});kt=g||_){v={cp:S,segment:E};break}}if(v)break}var A=v.cp,L=v.segment,M=(g-x)/L.length,N=L.t1-L.t0,k=m?L.t0+N*M:L.t1-N*M;k=yb(0,k,1),t=y1(A.p0,A.p1,A.p2,k),p=see(A.p0,A.p1,A.p2,k);break}case"straight":case"segments":case"haystack":{for(var I=0,C,O,D,P,F=n.allpts.length,B=0;B+3=g));B+=2);var G=g-O,z=G/C;z=yb(0,z,1),t=hKt(D,P,z),p=eyt(D,P);break}}s("labelX",d,t.x),s("labelY",d,t.y),s("labelAutoAngle",d,p)}},"calculateEndProjection");h("source"),h("target"),this.applyLabelDimensions(e)}};Jc.applyLabelDimensions=function(e){this.applyPrefixedLabelDimensions(e),e.isEdge()&&(this.applyPrefixedLabelDimensions(e,"source"),this.applyPrefixedLabelDimensions(e,"target"))};Jc.applyPrefixedLabelDimensions=function(e,t){var r=e._private,n=this.getLabelText(e,t),i=this.calculateLabelDimensions(e,n),a=e.pstyle("line-height").pfValue,s=e.pstyle("text-wrap").strValue,l=jl(r.rscratch,"labelWrapCachedLines",t)||[],u=s!=="wrap"?1:Math.max(l.length,1),h=i.height/u,f=h*a,d=i.width,p=i.height+(u-1)*(a-1)*h;Af(r.rstyle,"labelWidth",t,d),Af(r.rscratch,"labelWidth",t,d),Af(r.rstyle,"labelHeight",t,p),Af(r.rscratch,"labelHeight",t,p),Af(r.rscratch,"labelLineHeight",t,f)};Jc.getLabelText=function(e,t){var r=e._private,n=t?t+"-":"",i=e.pstyle(n+"label").strValue,a=e.pstyle("text-transform").value,s=o(function(Q,j){return j?(Af(r.rscratch,Q,t,j),j):jl(r.rscratch,Q,t)},"rscratch");if(!i)return"";a=="none"||(a=="uppercase"?i=i.toUpperCase():a=="lowercase"&&(i=i.toLowerCase()));var l=e.pstyle("text-wrap").value;if(l==="wrap"){var u=s("labelKey");if(u!=null&&s("labelWrapKey")===u)return s("labelWrapCachedText");for(var h="\u200B",f=i.split(` +`),d=e.pstyle("text-max-width").pfValue,p=e.pstyle("text-overflow-wrap").value,m=p==="anywhere",g=[],y=/[\s\u200b]+|$/g,v=0;vd){var T=x.matchAll(y),E="",_=0,A=Bgt(T),L;try{for(A.s();!(L=A.n()).done;){var M=L.value,N=M[0],k=x.substring(_,M.index);_=M.index+N.length;var I=E.length===0?k:E+k+N,C=this.calculateLabelDimensions(e,I),O=C.width;O<=d?E+=k+N:(E&&g.push(E),E=k+N)}}catch(W){A.e(W)}finally{A.f()}E.match(/^[\s\u200b]+$/)||g.push(E)}else g.push(x)}s("labelWrapCachedLines",g),i=s("labelWrapCachedText",g.join(` +`)),s("labelWrapKey",u)}else if(l==="ellipsis"){var D=e.pstyle("text-max-width").pfValue,P="",F="\u2026",B=!1;if(this.calculateLabelDimensions(e,i).widthD)break;P+=i[G],G===i.length-1&&(B=!0)}return B||(P+=F),P}return i};Jc.getLabelJustification=function(e){var t=e.pstyle("text-justification").strValue,r=e.pstyle("text-halign").strValue;if(t==="auto")if(e.isNode())switch(r){case"left":return"right";case"right":return"left";default:return"center"}else return"center";else return t};Jc.calculateLabelDimensions=function(e,t){var r=this,n=r.cy.window(),i=n.document,a=K0(t,e._private.labelDimsKey),s=r.labelDimCache||(r.labelDimCache=[]),l=s[a];if(l!=null)return l;var u=0,h=e.pstyle("font-style").strValue,f=e.pstyle("font-size").pfValue,d=e.pstyle("font-family").strValue,p=e.pstyle("font-weight").strValue,m=this.labelCalcCanvas,g=this.labelCalcCanvasContext;if(!m){m=this.labelCalcCanvas=i.createElement("canvas"),g=this.labelCalcCanvasContext=m.getContext("2d");var y=m.style;y.position="absolute",y.left="-9999px",y.top="-9999px",y.zIndex="-1",y.visibility="hidden",y.pointerEvents="none"}g.font="".concat(h," ").concat(p," ").concat(f,"px ").concat(d);for(var v=0,x=0,b=t.split(` +`),w=0;w1&&arguments[1]!==void 0?arguments[1]:!0;if(t.merge(s),l)for(var u=0;u=e.desktopTapThreshold2}var me=i(Y);zt&&(e.hoverData.tapholdCancelled=!0);var Ht=o(function(){var qe=e.hoverData.dragDelta=e.hoverData.dragDelta||[];qe.length===0?(qe.push(yt[0]),qe.push(yt[1])):(qe[0]+=yt[0],qe[1]+=yt[1])},"updateDragDelta");mt=!0,n(At,["mousemove","vmousemove","tapdrag"],Y,{x:st[0],y:st[1]});var ne=o(function(){e.data.bgActivePosistion=void 0,e.hoverData.selecting||rt.emit({originalEvent:Y,type:"boxstart",position:{x:st[0],y:st[1]}}),Ct[4]=1,e.hoverData.selecting=!0,e.redrawHint("select",!0),e.redraw()},"goIntoBoxMode");if(e.hoverData.which===3){if(zt){var xe={originalEvent:Y,type:"cxtdrag",position:{x:st[0],y:st[1]}};Nt?Nt.emit(xe):rt.emit(xe),e.hoverData.cxtDragged=!0,(!e.hoverData.cxtOver||At!==e.hoverData.cxtOver)&&(e.hoverData.cxtOver&&e.hoverData.cxtOver.emit({originalEvent:Y,type:"cxtdragout",position:{x:st[0],y:st[1]}}),e.hoverData.cxtOver=At,At&&At.emit({originalEvent:Y,type:"cxtdragover",position:{x:st[0],y:st[1]}}))}}else if(e.hoverData.dragging){if(mt=!0,rt.panningEnabled()&&rt.userPanningEnabled()){var Se;if(e.hoverData.justStartedPan){var Ye=e.hoverData.mdownPos;Se={x:(st[0]-Ye[0])*ht,y:(st[1]-Ye[1])*ht},e.hoverData.justStartedPan=!1}else Se={x:yt[0]*ht,y:yt[1]*ht};rt.panBy(Se),rt.emit("dragpan"),e.hoverData.dragged=!0}st=e.projectIntoViewport(Y.clientX,Y.clientY)}else if(Ct[4]==1&&(Nt==null||Nt.pannable())){if(zt){if(!e.hoverData.dragging&&rt.boxSelectionEnabled()&&(me||!rt.panningEnabled()||!rt.userPanningEnabled()))ne();else if(!e.hoverData.selecting&&rt.panningEnabled()&&rt.userPanningEnabled()){var fe=a(Nt,e.hoverData.downs);fe&&(e.hoverData.dragging=!0,e.hoverData.justStartedPan=!0,Ct[4]=0,e.data.bgActivePosistion=m1(Tt),e.redrawHint("select",!0),e.redraw())}Nt&&Nt.pannable()&&Nt.active()&&Nt.unactivate()}}else{if(Nt&&Nt.pannable()&&Nt.active()&&Nt.unactivate(),(!Nt||!Nt.grabbed())&&At!=$t&&($t&&n($t,["mouseout","tapdragout"],Y,{x:st[0],y:st[1]}),At&&n(At,["mouseover","tapdragover"],Y,{x:st[0],y:st[1]}),e.hoverData.last=At),Nt)if(zt){if(rt.boxSelectionEnabled()&&me)Nt&&Nt.grabbed()&&(v(Ut),Nt.emit("freeon"),Ut.emit("free"),e.dragData.didDrag&&(Nt.emit("dragfreeon"),Ut.emit("dragfree"))),ne();else if(Nt&&Nt.grabbed()&&e.nodeIsDraggable(Nt)){var ee=!e.dragData.didDrag;ee&&e.redrawHint("eles",!0),e.dragData.didDrag=!0,e.hoverData.draggingEles||g(Ut,{inDragLayer:!0});var pe={x:0,y:0};if(be(yt[0])&&be(yt[1])&&(pe.x+=yt[0],pe.y+=yt[1],ee)){var Me=e.hoverData.dragDelta;Me&&be(Me[0])&&be(Me[1])&&(pe.x+=Me[0],pe.y+=Me[1])}e.hoverData.draggingEles=!0,Ut.silentShift(pe).emit("position drag"),e.redrawHint("drag",!0),e.redraw()}}else Ht();mt=!0}if(Ct[2]=st[0],Ct[3]=st[1],mt)return Y.stopPropagation&&Y.stopPropagation(),Y.preventDefault&&Y.preventDefault(),!1}},"mousemoveHandler"),!1);var M,N,k;e.registerBinding(t,"mouseup",o(function(Y){if(!(e.hoverData.which===1&&Y.which!==1&&e.hoverData.capture)){var ft=e.hoverData.capture;if(ft){e.hoverData.capture=!1;var mt=e.cy,rt=e.projectIntoViewport(Y.clientX,Y.clientY),ht=e.selection,nt=e.findNearestElement(rt[0],rt[1],!0,!1),st=e.dragData.possibleDragElements,Tt=e.hoverData.down,kt=i(Y);if(e.data.bgActivePosistion&&(e.redrawHint("select",!0),e.redraw()),e.hoverData.tapholdCancelled=!0,e.data.bgActivePosistion=void 0,Tt&&Tt.unactivate(),e.hoverData.which===3){var Ct={originalEvent:Y,type:"cxttapend",position:{x:rt[0],y:rt[1]}};if(Tt?Tt.emit(Ct):mt.emit(Ct),!e.hoverData.cxtDragged){var At={originalEvent:Y,type:"cxttap",position:{x:rt[0],y:rt[1]}};Tt?Tt.emit(At):mt.emit(At)}e.hoverData.cxtDragged=!1,e.hoverData.which=null}else if(e.hoverData.which===1){if(n(nt,["mouseup","tapend","vmouseup"],Y,{x:rt[0],y:rt[1]}),!e.dragData.didDrag&&!e.hoverData.dragged&&!e.hoverData.selecting&&!e.hoverData.isOverThresholdDrag&&(n(Tt,["click","tap","vclick"],Y,{x:rt[0],y:rt[1]}),N=!1,Y.timeStamp-k<=mt.multiClickDebounceTime()?(M&&clearTimeout(M),N=!0,k=null,n(Tt,["dblclick","dbltap","vdblclick"],Y,{x:rt[0],y:rt[1]})):(M=setTimeout(function(){N||n(Tt,["oneclick","onetap","voneclick"],Y,{x:rt[0],y:rt[1]})},mt.multiClickDebounceTime()),k=Y.timeStamp)),Tt==null&&!e.dragData.didDrag&&!e.hoverData.selecting&&!e.hoverData.dragged&&!i(Y)&&(mt.$(r).unselect(["tapunselect"]),st.length>0&&e.redrawHint("eles",!0),e.dragData.possibleDragElements=st=mt.collection()),nt==Tt&&!e.dragData.didDrag&&!e.hoverData.selecting&&nt!=null&&nt._private.selectable&&(e.hoverData.dragging||(mt.selectionType()==="additive"||kt?nt.selected()?nt.unselect(["tapunselect"]):nt.select(["tapselect"]):kt||(mt.$(r).unmerge(nt).unselect(["tapunselect"]),nt.select(["tapselect"]))),e.redrawHint("eles",!0)),e.hoverData.selecting){var $t=mt.collection(e.getAllInBox(ht[0],ht[1],ht[2],ht[3]));e.redrawHint("select",!0),$t.length>0&&e.redrawHint("eles",!0),mt.emit({type:"boxend",originalEvent:Y,position:{x:rt[0],y:rt[1]}});var Nt=o(function(zt){return zt.selectable()&&!zt.selected()},"eleWouldBeSelected");mt.selectionType()==="additive"||kt||mt.$(r).unmerge($t).unselect(),$t.emit("box").stdFilter(Nt).select().emit("boxselect"),e.redraw()}if(e.hoverData.dragging&&(e.hoverData.dragging=!1,e.redrawHint("select",!0),e.redrawHint("eles",!0),e.redraw()),!ht[4]){e.redrawHint("drag",!0),e.redrawHint("eles",!0);var yt=Tt&&Tt.grabbed();v(st),yt&&(Tt.emit("freeon"),st.emit("free"),e.dragData.didDrag&&(Tt.emit("dragfreeon"),st.emit("dragfree")))}}ht[4]=0,e.hoverData.down=null,e.hoverData.cxtStarted=!1,e.hoverData.draggingEles=!1,e.hoverData.selecting=!1,e.hoverData.isOverThresholdDrag=!1,e.dragData.didDrag=!1,e.hoverData.dragged=!1,e.hoverData.dragDelta=[],e.hoverData.mdownPos=null,e.hoverData.mdownGPos=null}}},"mouseupHandler"),!1);var I=o(function(Y){if(!e.scrollingPage){var ft=e.cy,mt=ft.zoom(),rt=ft.pan(),ht=e.projectIntoViewport(Y.clientX,Y.clientY),nt=[ht[0]*mt+rt.x,ht[1]*mt+rt.y];if(e.hoverData.draggingEles||e.hoverData.dragging||e.hoverData.cxtStarted||A()){Y.preventDefault();return}if(ft.panningEnabled()&&ft.userPanningEnabled()&&ft.zoomingEnabled()&&ft.userZoomingEnabled()){Y.preventDefault(),e.data.wheelZooming=!0,clearTimeout(e.data.wheelTimeout),e.data.wheelTimeout=setTimeout(function(){e.data.wheelZooming=!1,e.redrawHint("eles",!0),e.redraw()},150);var st;Y.deltaY!=null?st=Y.deltaY/-250:Y.wheelDeltaY!=null?st=Y.wheelDeltaY/1e3:st=Y.wheelDelta/1e3,st=st*e.wheelSensitivity;var Tt=Y.deltaMode===1;Tt&&(st*=33);var kt=ft.zoom()*Math.pow(10,st);Y.type==="gesturechange"&&(kt=e.gestureStartZoom*Y.scale),ft.zoom({level:kt,renderedPosition:{x:nt[0],y:nt[1]}}),ft.emit(Y.type==="gesturechange"?"pinchzoom":"scrollzoom")}}},"wheelHandler");e.registerBinding(e.container,"wheel",I,!0),e.registerBinding(t,"scroll",o(function(Y){e.scrollingPage=!0,clearTimeout(e.scrollingPageTimeout),e.scrollingPageTimeout=setTimeout(function(){e.scrollingPage=!1},250)},"scrollHandler"),!0),e.registerBinding(e.container,"gesturestart",o(function(Y){e.gestureStartZoom=e.cy.zoom(),e.hasTouchStarted||Y.preventDefault()},"gestureStartHandler"),!0),e.registerBinding(e.container,"gesturechange",function(dt){e.hasTouchStarted||I(dt)},!0),e.registerBinding(e.container,"mouseout",o(function(Y){var ft=e.projectIntoViewport(Y.clientX,Y.clientY);e.cy.emit({originalEvent:Y,type:"mouseout",position:{x:ft[0],y:ft[1]}})},"mouseOutHandler"),!1),e.registerBinding(e.container,"mouseover",o(function(Y){var ft=e.projectIntoViewport(Y.clientX,Y.clientY);e.cy.emit({originalEvent:Y,type:"mouseover",position:{x:ft[0],y:ft[1]}})},"mouseOverHandler"),!1);var C,O,D,P,F,B,G,z,W,Q,j,at,X,J=o(function(Y,ft,mt,rt){return Math.sqrt((mt-Y)*(mt-Y)+(rt-ft)*(rt-ft))},"distance"),Z=o(function(Y,ft,mt,rt){return(mt-Y)*(mt-Y)+(rt-ft)*(rt-ft)},"distanceSq"),H;e.registerBinding(e.container,"touchstart",H=o(function(Y){if(e.hasTouchStarted=!0,!!L(Y)){b(),e.touchData.capture=!0,e.data.bgActivePosistion=void 0;var ft=e.cy,mt=e.touchData.now,rt=e.touchData.earlier;if(Y.touches[0]){var ht=e.projectIntoViewport(Y.touches[0].clientX,Y.touches[0].clientY);mt[0]=ht[0],mt[1]=ht[1]}if(Y.touches[1]){var ht=e.projectIntoViewport(Y.touches[1].clientX,Y.touches[1].clientY);mt[2]=ht[0],mt[3]=ht[1]}if(Y.touches[2]){var ht=e.projectIntoViewport(Y.touches[2].clientX,Y.touches[2].clientY);mt[4]=ht[0],mt[5]=ht[1]}if(Y.touches[1]){e.touchData.singleTouchMoved=!0,v(e.dragData.touchDragEles);var nt=e.findContainerClientCoords();W=nt[0],Q=nt[1],j=nt[2],at=nt[3],C=Y.touches[0].clientX-W,O=Y.touches[0].clientY-Q,D=Y.touches[1].clientX-W,P=Y.touches[1].clientY-Q,X=0<=C&&C<=j&&0<=D&&D<=j&&0<=O&&O<=at&&0<=P&&P<=at;var st=ft.pan(),Tt=ft.zoom();F=J(C,O,D,P),B=Z(C,O,D,P),G=[(C+D)/2,(O+P)/2],z=[(G[0]-st.x)/Tt,(G[1]-st.y)/Tt];var kt=200,Ct=kt*kt;if(B=1){for(var ke=e.touchData.startPosition=[null,null,null,null,null,null],Ee=0;Ee=e.touchTapThreshold2}if(ft&&e.touchData.cxt){Y.preventDefault();var ke=Y.touches[0].clientX-W,Ee=Y.touches[0].clientY-Q,le=Y.touches[1].clientX-W,Zt=Y.touches[1].clientY-Q,me=Z(ke,Ee,le,Zt),Ht=me/B,ne=150,xe=ne*ne,Se=1.5,Ye=Se*Se;if(Ht>=Ye||me>=xe){e.touchData.cxt=!1,e.data.bgActivePosistion=void 0,e.redrawHint("select",!0);var fe={originalEvent:Y,type:"cxttapend",position:{x:ht[0],y:ht[1]}};e.touchData.start?(e.touchData.start.unactivate().emit(fe),e.touchData.start=null):rt.emit(fe)}}if(ft&&e.touchData.cxt){var fe={originalEvent:Y,type:"cxtdrag",position:{x:ht[0],y:ht[1]}};e.data.bgActivePosistion=void 0,e.redrawHint("select",!0),e.touchData.start?e.touchData.start.emit(fe):rt.emit(fe),e.touchData.start&&(e.touchData.start._private.grabbed=!1),e.touchData.cxtDragged=!0;var ee=e.findNearestElement(ht[0],ht[1],!0,!0);(!e.touchData.cxtOver||ee!==e.touchData.cxtOver)&&(e.touchData.cxtOver&&e.touchData.cxtOver.emit({originalEvent:Y,type:"cxtdragout",position:{x:ht[0],y:ht[1]}}),e.touchData.cxtOver=ee,ee&&ee.emit({originalEvent:Y,type:"cxtdragover",position:{x:ht[0],y:ht[1]}}))}else if(ft&&Y.touches[2]&&rt.boxSelectionEnabled())Y.preventDefault(),e.data.bgActivePosistion=void 0,this.lastThreeTouch=+new Date,e.touchData.selecting||rt.emit({originalEvent:Y,type:"boxstart",position:{x:ht[0],y:ht[1]}}),e.touchData.selecting=!0,e.touchData.didSelect=!0,mt[4]=1,!mt||mt.length===0||mt[0]===void 0?(mt[0]=(ht[0]+ht[2]+ht[4])/3,mt[1]=(ht[1]+ht[3]+ht[5])/3,mt[2]=(ht[0]+ht[2]+ht[4])/3+1,mt[3]=(ht[1]+ht[3]+ht[5])/3+1):(mt[2]=(ht[0]+ht[2]+ht[4])/3,mt[3]=(ht[1]+ht[3]+ht[5])/3),e.redrawHint("select",!0),e.redraw();else if(ft&&Y.touches[1]&&!e.touchData.didSelect&&rt.zoomingEnabled()&&rt.panningEnabled()&&rt.userZoomingEnabled()&&rt.userPanningEnabled()){Y.preventDefault(),e.data.bgActivePosistion=void 0,e.redrawHint("select",!0);var pe=e.dragData.touchDragEles;if(pe){e.redrawHint("drag",!0);for(var Me=0;Me0&&!e.hoverData.draggingEles&&!e.swipePanning&&e.data.bgActivePosistion!=null&&(e.data.bgActivePosistion=void 0,e.redrawHint("select",!0),e.redraw())}},"touchmoveHandler"),!1);var K;e.registerBinding(t,"touchcancel",K=o(function(Y){var ft=e.touchData.start;e.touchData.capture=!1,ft&&ft.unactivate()},"touchcancelHandler"));var ot,ct,ut,et;if(e.registerBinding(t,"touchend",ot=o(function(Y){var ft=e.touchData.start,mt=e.touchData.capture;if(mt)Y.touches.length===0&&(e.touchData.capture=!1),Y.preventDefault();else return;var rt=e.selection;e.swipePanning=!1,e.hoverData.draggingEles=!1;var ht=e.cy,nt=ht.zoom(),st=e.touchData.now,Tt=e.touchData.earlier;if(Y.touches[0]){var kt=e.projectIntoViewport(Y.touches[0].clientX,Y.touches[0].clientY);st[0]=kt[0],st[1]=kt[1]}if(Y.touches[1]){var kt=e.projectIntoViewport(Y.touches[1].clientX,Y.touches[1].clientY);st[2]=kt[0],st[3]=kt[1]}if(Y.touches[2]){var kt=e.projectIntoViewport(Y.touches[2].clientX,Y.touches[2].clientY);st[4]=kt[0],st[5]=kt[1]}ft&&ft.unactivate();var Ct;if(e.touchData.cxt){if(Ct={originalEvent:Y,type:"cxttapend",position:{x:st[0],y:st[1]}},ft?ft.emit(Ct):ht.emit(Ct),!e.touchData.cxtDragged){var At={originalEvent:Y,type:"cxttap",position:{x:st[0],y:st[1]}};ft?ft.emit(At):ht.emit(At)}e.touchData.start&&(e.touchData.start._private.grabbed=!1),e.touchData.cxt=!1,e.touchData.start=null,e.redraw();return}if(!Y.touches[2]&&ht.boxSelectionEnabled()&&e.touchData.selecting){e.touchData.selecting=!1;var $t=ht.collection(e.getAllInBox(rt[0],rt[1],rt[2],rt[3]));rt[0]=void 0,rt[1]=void 0,rt[2]=void 0,rt[3]=void 0,rt[4]=0,e.redrawHint("select",!0),ht.emit({type:"boxend",originalEvent:Y,position:{x:st[0],y:st[1]}});var Nt=o(function(xe){return xe.selectable()&&!xe.selected()},"eleWouldBeSelected");$t.emit("box").stdFilter(Nt).select().emit("boxselect"),$t.nonempty()&&e.redrawHint("eles",!0),e.redraw()}if(ft?.unactivate(),Y.touches[2])e.data.bgActivePosistion=void 0,e.redrawHint("select",!0);else if(!Y.touches[1]){if(!Y.touches[0]){if(!Y.touches[0]){e.data.bgActivePosistion=void 0,e.redrawHint("select",!0);var yt=e.dragData.touchDragEles;if(ft!=null){var Ut=ft._private.grabbed;v(yt),e.redrawHint("drag",!0),e.redrawHint("eles",!0),Ut&&(ft.emit("freeon"),yt.emit("free"),e.dragData.didDrag&&(ft.emit("dragfreeon"),yt.emit("dragfree"))),n(ft,["touchend","tapend","vmouseup","tapdragout"],Y,{x:st[0],y:st[1]}),ft.unactivate(),e.touchData.start=null}else{var zt=e.findNearestElement(st[0],st[1],!0,!0);n(zt,["touchend","tapend","vmouseup","tapdragout"],Y,{x:st[0],y:st[1]})}var ae=e.touchData.startPosition[0]-st[0],ke=ae*ae,Ee=e.touchData.startPosition[1]-st[1],le=Ee*Ee,Zt=ke+le,me=Zt*nt*nt;e.touchData.singleTouchMoved||(ft||ht.$(":selected").unselect(["tapunselect"]),n(ft,["tap","vclick"],Y,{x:st[0],y:st[1]}),ct=!1,Y.timeStamp-et<=ht.multiClickDebounceTime()?(ut&&clearTimeout(ut),ct=!0,et=null,n(ft,["dbltap","vdblclick"],Y,{x:st[0],y:st[1]})):(ut=setTimeout(function(){ct||n(ft,["onetap","voneclick"],Y,{x:st[0],y:st[1]})},ht.multiClickDebounceTime()),et=Y.timeStamp)),ft!=null&&!e.dragData.didDrag&&ft._private.selectable&&me"u"){var Mt=[],it=o(function(Y){return{clientX:Y.clientX,clientY:Y.clientY,force:1,identifier:Y.pointerId,pageX:Y.pageX,pageY:Y.pageY,radiusX:Y.width/2,radiusY:Y.height/2,screenX:Y.screenX,screenY:Y.screenY,target:Y.target}},"makeTouch"),wt=o(function(Y){return{event:Y,touch:it(Y)}},"makePointer"),Ot=o(function(Y){Mt.push(wt(Y))},"addPointer"),St=o(function(Y){for(var ft=0;ft0)return W[0]}return null},"getCurveT"),g=Object.keys(p),y=0;y0?m:a1t(a,s,t,r,n,i,l,u)},"intersectLine"),checkPoint:o(function(t,r,n,i,a,s,l,u){u=u==="auto"?Z0(i,a):u;var h=2*u;if(rh(t,r,this.points,s,l,i,a-h,[0,-1],n)||rh(t,r,this.points,s,l,i-h,a,[0,-1],n))return!0;var f=i/2+2*n,d=a/2+2*n,p=[s-f,l-d,s-f,l,s+f,l,s+f,l-d];return!!(Ws(t,r,p)||X0(t,r,h,h,s+i/2-u,l+a/2-u,n)||X0(t,r,h,h,s-i/2+u,l+a/2-u,n))},"checkPoint")}};ih.registerNodeShapes=function(){var e=this.nodeShapes={},t=this;this.generateEllipse(),this.generatePolygon("triangle",fs(3,0)),this.generateRoundPolygon("round-triangle",fs(3,0)),this.generatePolygon("rectangle",fs(4,0)),e.square=e.rectangle,this.generateRoundRectangle(),this.generateCutRectangle(),this.generateBarrel(),this.generateBottomRoundrectangle();{var r=[0,1,1,0,0,-1,-1,0];this.generatePolygon("diamond",r),this.generateRoundPolygon("round-diamond",r)}this.generatePolygon("pentagon",fs(5,0)),this.generateRoundPolygon("round-pentagon",fs(5,0)),this.generatePolygon("hexagon",fs(6,0)),this.generateRoundPolygon("round-hexagon",fs(6,0)),this.generatePolygon("heptagon",fs(7,0)),this.generateRoundPolygon("round-heptagon",fs(7,0)),this.generatePolygon("octagon",fs(8,0)),this.generateRoundPolygon("round-octagon",fs(8,0));var n=new Array(20);{var i=VB(5,0),a=VB(5,Math.PI/5),s=.5*(3-Math.sqrt(5));s*=1.57;for(var l=0;l=t.deqFastCost*S)break}else if(h){if(b>=t.deqCost*m||b>=t.deqAvgCost*p)break}else if(w>=t.deqNoDrawCost*zB)break;var T=t.deq(n,v,y);if(T.length>0)for(var E=0;E0&&(t.onDeqd(n,g),!h&&t.shouldRedraw(n,g,v,y)&&a())},"dequeue"),l=t.priority||cF;i.beforeRender(s,l(n))}},"setupDequeueingImpl")},"setupDequeueing")},lee=function(){function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:vC;iF(this,e),this.idsByKey=new Qc,this.keyForId=new Qc,this.cachesByLvl=new Qc,this.lvls=[],this.getKey=t,this.doesEleInvalidateKey=r}return o(e,"ElementTextureCacheLookup"),aF(e,[{key:"getIdsFor",value:o(function(r){r==null&&fi("Can not get id list for null key");var n=this.idsByKey,i=this.idsByKey.get(r);return i||(i=new C1,n.set(r,i)),i},"getIdsFor")},{key:"addIdForKey",value:o(function(r,n){r!=null&&this.getIdsFor(r).add(n)},"addIdForKey")},{key:"deleteIdForKey",value:o(function(r,n){r!=null&&this.getIdsFor(r).delete(n)},"deleteIdForKey")},{key:"getNumberOfIdsForKey",value:o(function(r){return r==null?0:this.getIdsFor(r).size},"getNumberOfIdsForKey")},{key:"updateKeyMappingFor",value:o(function(r){var n=r.id(),i=this.keyForId.get(n),a=this.getKey(r);this.deleteIdForKey(i,n),this.addIdForKey(a,n),this.keyForId.set(n,a)},"updateKeyMappingFor")},{key:"deleteKeyMappingFor",value:o(function(r){var n=r.id(),i=this.keyForId.get(n);this.deleteIdForKey(i,n),this.keyForId.delete(n)},"deleteKeyMappingFor")},{key:"keyHasChangedFor",value:o(function(r){var n=r.id(),i=this.keyForId.get(n),a=this.getKey(r);return i!==a},"keyHasChangedFor")},{key:"isInvalid",value:o(function(r){return this.keyHasChangedFor(r)||this.doesEleInvalidateKey(r)},"isInvalid")},{key:"getCachesAt",value:o(function(r){var n=this.cachesByLvl,i=this.lvls,a=n.get(r);return a||(a=new Qc,n.set(r,a),i.push(r)),a},"getCachesAt")},{key:"getCache",value:o(function(r,n){return this.getCachesAt(n).get(r)},"getCache")},{key:"get",value:o(function(r,n){var i=this.getKey(r),a=this.getCache(i,n);return a!=null&&this.updateKeyMappingFor(r),a},"get")},{key:"getForCachedKey",value:o(function(r,n){var i=this.keyForId.get(r.id()),a=this.getCache(i,n);return a},"getForCachedKey")},{key:"hasCache",value:o(function(r,n){return this.getCachesAt(n).has(r)},"hasCache")},{key:"has",value:o(function(r,n){var i=this.getKey(r);return this.hasCache(i,n)},"has")},{key:"setCache",value:o(function(r,n,i){i.key=r,this.getCachesAt(n).set(r,i)},"setCache")},{key:"set",value:o(function(r,n,i){var a=this.getKey(r);this.setCache(a,n,i),this.updateKeyMappingFor(r)},"set")},{key:"deleteCache",value:o(function(r,n){this.getCachesAt(n).delete(r)},"deleteCache")},{key:"delete",value:o(function(r,n){var i=this.getKey(r);this.deleteCache(i,n)},"_delete")},{key:"invalidateKey",value:o(function(r){var n=this;this.lvls.forEach(function(i){return n.deleteCache(r,i)})},"invalidateKey")},{key:"invalidate",value:o(function(r){var n=r.id(),i=this.keyForId.get(n);this.deleteKeyMappingFor(r);var a=this.doesEleInvalidateKey(r);return a&&this.invalidateKey(i),a||this.getNumberOfIdsForKey(i)===0},"invalidate")}]),e}(),Agt=25,sC=50,mC=-4,tF=3,cee=7.99,uee=8,hee=1024,fee=1024,dee=1024,pee=.2,mee=.8,gee=10,yee=.15,vee=.1,xee=.9,bee=.9,wee=100,Tee=1,g1={dequeue:"dequeue",downscale:"downscale",highQuality:"highQuality"},kee=Da({getKey:null,doesEleInvalidateKey:vC,drawElement:null,getBoundingBox:null,getRotationPoint:null,getRotationOffset:null,isVisible:Qgt,allowEdgeTxrCaching:!0,allowParentTxrCaching:!0}),ub=o(function(t,r){var n=this;n.renderer=t,n.onDequeues=[];var i=kee(r);ir(n,i),n.lookup=new lee(i.getKey,i.doesEleInvalidateKey),n.setupDequeueing()},"ElementTextureCache"),Ki=ub.prototype;Ki.reasons=g1;Ki.getTextureQueue=function(e){var t=this;return t.eleImgCaches=t.eleImgCaches||{},t.eleImgCaches[e]=t.eleImgCaches[e]||[]};Ki.getRetiredTextureQueue=function(e){var t=this,r=t.eleImgCaches.retired=t.eleImgCaches.retired||{},n=r[e]=r[e]||[];return n};Ki.getElementQueue=function(){var e=this,t=e.eleCacheQueue=e.eleCacheQueue||new Ab(function(r,n){return n.reqs-r.reqs});return t};Ki.getElementKeyToQueue=function(){var e=this,t=e.eleKeyToCacheQueue=e.eleKeyToCacheQueue||{};return t};Ki.getElement=function(e,t,r,n,i){var a=this,s=this.renderer,l=s.cy.zoom(),u=this.lookup;if(!t||t.w===0||t.h===0||isNaN(t.w)||isNaN(t.h)||!e.visible()||e.removed()||!a.allowEdgeTxrCaching&&e.isEdge()||!a.allowParentTxrCaching&&e.isParent())return null;if(n==null&&(n=Math.ceil(hF(l*r))),n=cee||n>tF)return null;var h=Math.pow(2,n),f=t.h*h,d=t.w*h,p=s.eleTextBiggerThanMin(e,h);if(!this.isVisible(e,p))return null;var m=u.get(e,n);if(m&&m.invalidated&&(m.invalidated=!1,m.texture.invalidatedWidth-=m.width),m)return m;var g;if(f<=Agt?g=Agt:f<=sC?g=sC:g=Math.ceil(f/sC)*sC,f>dee||d>fee)return null;var y=a.getTextureQueue(g),v=y[y.length-2],x=o(function(){return a.recycleTexture(g,d)||a.addTexture(g,d)},"addNewTxr");v||(v=y[y.length-1]),v||(v=x()),v.width-v.usedWidthn;N--)L=a.getElement(e,t,r,N,g1.downscale);M()}else return a.queueElement(e,E.level-1),E;else{var k;if(!w&&!S&&!T)for(var I=n-1;I>=mC;I--){var C=u.get(e,I);if(C){k=C;break}}if(b(k))return a.queueElement(e,n),k;v.context.translate(v.usedWidth,0),v.context.scale(h,h),this.drawElement(v.context,e,t,p,!1),v.context.scale(1/h,1/h),v.context.translate(-v.usedWidth,0)}return m={x:v.usedWidth,texture:v,level:n,scale:h,width:d,height:f,scaledLabelShown:p},v.usedWidth+=Math.ceil(d+uee),v.eleCaches.push(m),u.set(e,n,m),a.checkTextureFullness(v),m};Ki.invalidateElements=function(e){for(var t=0;t=pee*e.width&&this.retireTexture(e)};Ki.checkTextureFullness=function(e){var t=this,r=t.getTextureQueue(e.height);e.usedWidth/e.width>mee&&e.fullnessChecks>=gee?Nf(r,e):e.fullnessChecks++};Ki.retireTexture=function(e){var t=this,r=e.height,n=t.getTextureQueue(r),i=this.lookup;Nf(n,e),e.retired=!0;for(var a=e.eleCaches,s=0;s=t)return s.retired=!1,s.usedWidth=0,s.invalidatedWidth=0,s.fullnessChecks=0,uF(s.eleCaches),s.context.setTransform(1,0,0,1,0,0),s.context.clearRect(0,0,s.width,s.height),Nf(i,s),n.push(s),s}};Ki.queueElement=function(e,t){var r=this,n=r.getElementQueue(),i=r.getElementKeyToQueue(),a=this.getKey(e),s=i[a];if(s)s.level=Math.max(s.level,t),s.eles.merge(e),s.reqs++,n.updateItem(s);else{var l={eles:e.spawn().merge(e),level:t,reqs:1,key:a};n.push(l),i[a]=l}};Ki.dequeue=function(e){for(var t=this,r=t.getElementQueue(),n=t.getElementKeyToQueue(),i=[],a=t.lookup,s=0;s0;s++){var l=r.pop(),u=l.key,h=l.eles[0],f=a.hasCache(h,l.level);if(n[u]=null,f)continue;i.push(l);var d=t.getBoundingBox(h);t.getElement(h,d,e,l.level,g1.dequeue)}return i};Ki.removeFromQueue=function(e){var t=this,r=t.getElementQueue(),n=t.getElementKeyToQueue(),i=this.getKey(e),a=n[i];a!=null&&(a.eles.length===1?(a.reqs=lF,r.updateItem(a),r.pop(),n[i]=null):a.eles.unmerge(e))};Ki.onDequeue=function(e){this.onDequeues.push(e)};Ki.offDequeue=function(e){Nf(this.onDequeues,e)};Ki.setupDequeueing=syt.setupDequeueing({deqRedrawThreshold:wee,deqCost:yee,deqAvgCost:vee,deqNoDrawCost:xee,deqFastCost:bee,deq:o(function(t,r,n){return t.dequeue(r,n)},"deq"),onDeqd:o(function(t,r){for(var n=0;n=Cee||r>SC)return null}n.validateLayersElesOrdering(r,e);var u=n.layersByLevel,h=Math.pow(2,r),f=u[r]=u[r]||[],d,p=n.levelIsComplete(r,e),m,g=o(function(){var M=o(function(O){if(n.validateLayersElesOrdering(O,e),n.levelIsComplete(O,e))return m=u[O],!0},"canUseAsTmpLvl"),N=o(function(O){if(!m)for(var D=r+O;fb<=D&&D<=SC&&!M(D);D+=O);},"checkLvls");N(1),N(-1);for(var k=f.length-1;k>=0;k--){var I=f[k];I.invalid&&Nf(f,I)}},"checkTempLevels");if(!p)g();else return f;var y=o(function(){if(!d){d=Ys();for(var M=0;MMee)return null;var I=n.makeLayer(d,r);if(N!=null){var C=f.indexOf(N)+1;f.splice(C,0,I)}else(M.insert===void 0||M.insert)&&f.unshift(I);return I},"makeLayer");if(n.skipping&&!l)return null;for(var x=null,b=e.length/Eee,w=!l,S=0;S=b||!i1t(x.bb,T.boundingBox()))&&(x=v({insert:!0,after:x}),!x))return null;m||w?n.queueLayer(x,T):n.drawEleInLayer(x,T,r,t),x.eles.push(T),_[r]=x}return m||(w?null:f)};Ra.getEleLevelForLayerLevel=function(e,t){return e};Ra.drawEleInLayer=function(e,t,r,n){var i=this,a=this.renderer,s=e.context,l=t.boundingBox();l.w===0||l.h===0||!t.visible()||(r=i.getEleLevelForLayerLevel(r,n),a.setImgSmoothing(s,!1),a.drawCachedElement(s,t,null,null,r,Iee),a.setImgSmoothing(s,!0))};Ra.levelIsComplete=function(e,t){var r=this,n=r.layersByLevel[e];if(!n||n.length===0)return!1;for(var i=0,a=0;a0||s.invalid)return!1;i+=s.eles.length}return i===t.length};Ra.validateLayersElesOrdering=function(e,t){var r=this.layersByLevel[e];if(r)for(var n=0;n0){t=!0;break}}return t};Ra.invalidateElements=function(e){var t=this;e.length!==0&&(t.lastInvalidationTime=eh(),!(e.length===0||!t.haveLayers())&&t.updateElementsInLayers(e,o(function(n,i,a){t.invalidateLayer(n)},"invalAssocLayers")))};Ra.invalidateLayer=function(e){if(this.lastInvalidationTime=eh(),!e.invalid){var t=e.level,r=e.eles,n=this.layersByLevel[t];Nf(n,e),e.elesQueue=[],e.invalid=!0,e.replacement&&(e.replacement.invalid=!0);for(var i=0;i3&&arguments[3]!==void 0?arguments[3]:!0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,s=this,l=t._private.rscratch;if(!(a&&!t.visible())&&!(l.badLine||l.allpts==null||isNaN(l.allpts[0]))){var u;r&&(u=r,e.translate(-u.x1,-u.y1));var h=a?t.pstyle("opacity").value:1,f=a?t.pstyle("line-opacity").value:1,d=t.pstyle("curve-style").value,p=t.pstyle("line-style").value,m=t.pstyle("width").pfValue,g=t.pstyle("line-cap").value,y=t.pstyle("line-outline-width").value,v=t.pstyle("line-outline-color").value,x=h*f,b=h*f,w=o(function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:x;d==="straight-triangle"?(s.eleStrokeStyle(e,t,O),s.drawEdgeTrianglePath(t,e,l.allpts)):(e.lineWidth=m,e.lineCap=g,s.eleStrokeStyle(e,t,O),s.drawEdgePath(t,e,l.allpts,p),e.lineCap="butt")},"drawLine"),S=o(function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:x;if(e.lineWidth=m+y,e.lineCap=g,y>0)s.colorStrokeStyle(e,v[0],v[1],v[2],O);else{e.lineCap="butt";return}d==="straight-triangle"?s.drawEdgeTrianglePath(t,e,l.allpts):(s.drawEdgePath(t,e,l.allpts,p),e.lineCap="butt")},"drawLineOutline"),T=o(function(){i&&s.drawEdgeOverlay(e,t)},"drawOverlay"),E=o(function(){i&&s.drawEdgeUnderlay(e,t)},"drawUnderlay"),_=o(function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:b;s.drawArrowheads(e,t,O)},"drawArrows"),A=o(function(){s.drawElementText(e,t,null,n)},"drawText");e.lineJoin="round";var L=t.pstyle("ghost").value==="yes";if(L){var M=t.pstyle("ghost-offset-x").pfValue,N=t.pstyle("ghost-offset-y").pfValue,k=t.pstyle("ghost-opacity").value,I=x*k;e.translate(M,N),w(I),_(I),e.translate(-M,-N)}else S();E(),w(),_(),T(),A(),r&&e.translate(u.x1,u.y1)}};cyt=o(function(t){if(!["overlay","underlay"].includes(t))throw new Error("Invalid state");return function(r,n){if(n.visible()){var i=n.pstyle("".concat(t,"-opacity")).value;if(i!==0){var a=this,s=a.usePaths(),l=n._private.rscratch,u=n.pstyle("".concat(t,"-padding")).pfValue,h=2*u,f=n.pstyle("".concat(t,"-color")).value;r.lineWidth=h,l.edgeType==="self"&&!s?r.lineCap="butt":r.lineCap="round",a.colorStrokeStyle(r,f[0],f[1],f[2],i),a.drawEdgePath(n,r,l.allpts,"solid")}}}},"drawEdgeOverlayUnderlay");ah.drawEdgeOverlay=cyt("overlay");ah.drawEdgeUnderlay=cyt("underlay");ah.drawEdgePath=function(e,t,r,n){var i=e._private.rscratch,a=t,s,l=!1,u=this.usePaths(),h=e.pstyle("line-dash-pattern").pfValue,f=e.pstyle("line-dash-offset").pfValue;if(u){var d=r.join("$"),p=i.pathCacheKey&&i.pathCacheKey===d;p?(s=t=i.pathCache,l=!0):(s=t=new Path2D,i.pathCacheKey=d,i.pathCache=s)}if(a.setLineDash)switch(n){case"dotted":a.setLineDash([1,1]);break;case"dashed":a.setLineDash(h),a.lineDashOffset=f;break;case"solid":a.setLineDash([]);break}if(!l&&!i.badLine)switch(t.beginPath&&t.beginPath(),t.moveTo(r[0],r[1]),i.edgeType){case"bezier":case"self":case"compound":case"multibezier":for(var m=2;m+35&&arguments[5]!==void 0?arguments[5]:!0,s=this;if(n==null){if(a&&!s.eleTextBiggerThanMin(t))return}else if(n===!1)return;if(t.isNode()){var l=t.pstyle("label");if(!l||!l.value)return;var u=s.getLabelJustification(t);e.textAlign=u,e.textBaseline="bottom"}else{var h=t.element()._private.rscratch.badLine,f=t.pstyle("label"),d=t.pstyle("source-label"),p=t.pstyle("target-label");if(h||(!f||!f.value)&&(!d||!d.value)&&(!p||!p.value))return;e.textAlign="center",e.textBaseline="bottom"}var m=!r,g;r&&(g=r,e.translate(-g.x1,-g.y1)),i==null?(s.drawText(e,t,null,m,a),t.isEdge()&&(s.drawText(e,t,"source",m,a),s.drawText(e,t,"target",m,a))):s.drawText(e,t,i,m,a),r&&e.translate(g.x1,g.y1)};np.getFontCache=function(e){var t;this.fontCaches=this.fontCaches||[];for(var r=0;r2&&arguments[2]!==void 0?arguments[2]:!0,n=t.pstyle("font-style").strValue,i=t.pstyle("font-size").pfValue+"px",a=t.pstyle("font-family").strValue,s=t.pstyle("font-weight").strValue,l=r?t.effectiveOpacity()*t.pstyle("text-opacity").value:1,u=t.pstyle("text-outline-opacity").value*l,h=t.pstyle("color").value,f=t.pstyle("text-outline-color").value;e.font=n+" "+s+" "+i+" "+a,e.lineJoin="round",this.colorFillStyle(e,h[0],h[1],h[2],l),this.colorStrokeStyle(e,f[0],f[1],f[2],u)};o(GB,"roundRect");np.getTextAngle=function(e,t){var r,n=e._private,i=n.rscratch,a=t?t+"-":"",s=e.pstyle(a+"text-rotation"),l=jl(i,"labelAngle",t);return s.strValue==="autorotate"?r=e.isEdge()?l:0:s.strValue==="none"?r=0:r=s.pfValue,r};np.drawText=function(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=t._private,s=a.rscratch,l=i?t.effectiveOpacity():1;if(!(i&&(l===0||t.pstyle("text-opacity").value===0))){r==="main"&&(r=null);var u=jl(s,"labelX",r),h=jl(s,"labelY",r),f,d,p=this.getLabelText(t,r);if(p!=null&&p!==""&&!isNaN(u)&&!isNaN(h)){this.setupTextStyle(e,t,i);var m=r?r+"-":"",g=jl(s,"labelWidth",r),y=jl(s,"labelHeight",r),v=t.pstyle(m+"text-margin-x").pfValue,x=t.pstyle(m+"text-margin-y").pfValue,b=t.isEdge(),w=t.pstyle("text-halign").value,S=t.pstyle("text-valign").value;b&&(w="center",S="center"),u+=v,h+=x;var T;switch(n?T=this.getTextAngle(t,r):T=0,T!==0&&(f=u,d=h,e.translate(f,d),e.rotate(T),u=0,h=0),S){case"top":break;case"center":h+=y/2;break;case"bottom":h+=y;break}var E=t.pstyle("text-background-opacity").value,_=t.pstyle("text-border-opacity").value,A=t.pstyle("text-border-width").pfValue,L=t.pstyle("text-background-padding").pfValue,M=t.pstyle("text-background-shape").strValue,N=M.indexOf("round")===0,k=2;if(E>0||A>0&&_>0){var I=u-L;switch(w){case"left":I-=g;break;case"center":I-=g/2;break}var C=h-y-L,O=g+2*L,D=y+2*L;if(E>0){var P=e.fillStyle,F=t.pstyle("text-background-color").value;e.fillStyle="rgba("+F[0]+","+F[1]+","+F[2]+","+E*l+")",N?GB(e,I,C,O,D,k):e.fillRect(I,C,O,D),e.fillStyle=P}if(A>0&&_>0){var B=e.strokeStyle,G=e.lineWidth,z=t.pstyle("text-border-color").value,W=t.pstyle("text-border-style").value;if(e.strokeStyle="rgba("+z[0]+","+z[1]+","+z[2]+","+_*l+")",e.lineWidth=A,e.setLineDash)switch(W){case"dotted":e.setLineDash([1,1]);break;case"dashed":e.setLineDash([4,2]);break;case"double":e.lineWidth=A/4,e.setLineDash([]);break;case"solid":e.setLineDash([]);break}if(N?GB(e,I,C,O,D,k,"stroke"):e.strokeRect(I,C,O,D),W==="double"){var Q=A/2;N?GB(e,I+Q,C+Q,O-Q*2,D-Q*2,k,"stroke"):e.strokeRect(I+Q,C+Q,O-Q*2,D-Q*2)}e.setLineDash&&e.setLineDash([]),e.lineWidth=G,e.strokeStyle=B}}var j=2*t.pstyle("text-outline-width").pfValue;if(j>0&&(e.lineWidth=j),t.pstyle("text-wrap").value==="wrap"){var at=jl(s,"labelWrapCachedLines",r),X=jl(s,"labelLineHeight",r),J=g/2,Z=this.getLabelJustification(t);switch(Z==="auto"||(w==="left"?Z==="left"?u+=-g:Z==="center"&&(u+=-J):w==="center"?Z==="left"?u+=-J:Z==="right"&&(u+=J):w==="right"&&(Z==="center"?u+=J:Z==="right"&&(u+=g))),S){case"top":h-=(at.length-1)*X;break;case"center":case"bottom":h-=(at.length-1)*X;break}for(var H=0;H0&&e.strokeText(at[H],u,h),e.fillText(at[H],u,h),h+=X}else j>0&&e.strokeText(p,u,h),e.fillText(p,u,h);T!==0&&(e.rotate(-T),e.translate(-f,-d))}}};I1={};I1.drawNode=function(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,s=this,l,u,h=t._private,f=h.rscratch,d=t.position();if(!(!be(d.x)||!be(d.y))&&!(a&&!t.visible())){var p=a?t.effectiveOpacity():1,m=s.usePaths(),g,y=!1,v=t.padding();l=t.width()+2*v,u=t.height()+2*v;var x;r&&(x=r,e.translate(-x.x1,-x.y1));for(var b=t.pstyle("background-image"),w=b.value,S=new Array(w.length),T=new Array(w.length),E=0,_=0;_0&&arguments[0]!==void 0?arguments[0]:I;s.eleFillStyle(e,t,nt)},"setupShapeColor"),H=o(function(){var nt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:z;s.colorStrokeStyle(e,C[0],C[1],C[2],nt)},"setupBorderColor"),q=o(function(){var nt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:at;s.colorStrokeStyle(e,Q[0],Q[1],Q[2],nt)},"setupOutlineColor"),K=o(function(nt,st,Tt,kt){var Ct=s.nodePathCache=s.nodePathCache||[],At=Kgt(Tt==="polygon"?Tt+","+kt.join(","):Tt,""+st,""+nt,""+J),$t=Ct[At],Nt,yt=!1;return $t!=null?(Nt=$t,yt=!0,f.pathCache=Nt):(Nt=new Path2D,Ct[At]=f.pathCache=Nt),{path:Nt,cacheHit:yt}},"getPath"),ot=t.pstyle("shape").strValue,ct=t.pstyle("shape-polygon-points").pfValue;if(m){e.translate(d.x,d.y);var ut=K(l,u,ot,ct);g=ut.path,y=ut.cacheHit}var et=o(function(){if(!y){var nt=d;m&&(nt={x:0,y:0}),s.nodeShapes[s.getNodeShape(t)].draw(g||e,nt.x,nt.y,l,u,J,f)}m?e.fill(g):e.fill()},"drawShape"),Mt=o(function(){for(var nt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:p,st=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,Tt=h.backgrounding,kt=0,Ct=0;Ct0&&arguments[0]!==void 0?arguments[0]:!1,st=arguments.length>1&&arguments[1]!==void 0?arguments[1]:p;s.hasPie(t)&&(s.drawPie(e,t,st),nt&&(m||s.nodeShapes[s.getNodeShape(t)].draw(e,d.x,d.y,l,u,J,f)))},"drawPie"),wt=o(function(){var nt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:p,st=(N>0?N:-N)*nt,Tt=N>0?0:255;N!==0&&(s.colorFillStyle(e,Tt,Tt,Tt,st),m?e.fill(g):e.fill())},"darken"),Ot=o(function(){if(k>0){if(e.lineWidth=k,e.lineCap=P,e.lineJoin=D,e.setLineDash)switch(O){case"dotted":e.setLineDash([1,1]);break;case"dashed":e.setLineDash(B),e.lineDashOffset=G;break;case"solid":case"double":e.setLineDash([]);break}if(F!=="center"){if(e.save(),e.lineWidth*=2,F==="inside")m?e.clip(g):e.clip();else{var nt=new Path2D;nt.rect(-l/2-k,-u/2-k,l+2*k,u+2*k),nt.addPath(g),e.clip(nt,"evenodd")}m?e.stroke(g):e.stroke(),e.restore()}else m?e.stroke(g):e.stroke();if(O==="double"){e.lineWidth=k/3;var st=e.globalCompositeOperation;e.globalCompositeOperation="destination-out",m?e.stroke(g):e.stroke(),e.globalCompositeOperation=st}e.setLineDash&&e.setLineDash([])}},"drawBorder"),St=o(function(){if(W>0){if(e.lineWidth=W,e.lineCap="butt",e.setLineDash)switch(j){case"dotted":e.setLineDash([1,1]);break;case"dashed":e.setLineDash([4,2]);break;case"solid":case"double":e.setLineDash([]);break}var nt=d;m&&(nt={x:0,y:0});var st=s.getNodeShape(t),Tt=k;F==="inside"&&(Tt=0),F==="outside"&&(Tt*=2);var kt=(l+Tt+(W+X))/l,Ct=(u+Tt+(W+X))/u,At=l*kt,$t=u*Ct,Nt=s.nodeShapes[st].points,yt;if(m){var Ut=K(At,$t,st,Nt);yt=Ut.path}if(st==="ellipse")s.drawEllipsePath(yt||e,nt.x,nt.y,At,$t);else if(["round-diamond","round-heptagon","round-hexagon","round-octagon","round-pentagon","round-polygon","round-triangle","round-tag"].includes(st)){var zt=0,ae=0,ke=0;st==="round-diamond"?zt=(Tt+X+W)*1.4:st==="round-heptagon"?(zt=(Tt+X+W)*1.075,ke=-(Tt/2+X+W)/35):st==="round-hexagon"?zt=(Tt+X+W)*1.12:st==="round-pentagon"?(zt=(Tt+X+W)*1.13,ke=-(Tt/2+X+W)/15):st==="round-tag"?(zt=(Tt+X+W)*1.12,ae=(Tt/2+W+X)*.07):st==="round-triangle"&&(zt=(Tt+X+W)*(Math.PI/2),ke=-(Tt+X/2+W)/Math.PI),zt!==0&&(kt=(l+zt)/l,At=l*kt,["round-hexagon","round-tag"].includes(st)||(Ct=(u+zt)/u,$t=u*Ct)),J=J==="auto"?o1t(At,$t):J;for(var Ee=At/2,le=$t/2,Zt=J+(Tt+W+X)/2,me=new Array(Nt.length/2),Ht=new Array(Nt.length/2),ne=0;ne0){if(i=i||n.position(),a==null||s==null){var m=n.padding();a=n.width()+2*m,s=n.height()+2*m}l.colorFillStyle(r,f[0],f[1],f[2],h),l.nodeShapes[d].draw(r,i.x,i.y,a+u*2,s+u*2,p),r.fill()}}}},"drawNodeOverlayUnderlay");I1.drawNodeOverlay=uyt("overlay");I1.drawNodeUnderlay=uyt("underlay");I1.hasPie=function(e){return e=e[0],e._private.hasPie};I1.drawPie=function(e,t,r,n){t=t[0],n=n||t.position();var i=t.cy().style(),a=t.pstyle("pie-size"),s=n.x,l=n.y,u=t.width(),h=t.height(),f=Math.min(u,h)/2,d=0,p=this.usePaths();p&&(s=0,l=0),a.units==="%"?f=f*a.pfValue:a.pfValue!==void 0&&(f=a.pfValue/2);for(var m=1;m<=i.pieBackgroundN;m++){var g=t.pstyle("pie-"+m+"-background-size").value,y=t.pstyle("pie-"+m+"-background-color").value,v=t.pstyle("pie-"+m+"-background-opacity").value*r,x=g/100;x+d>1&&(x=1-d);var b=1.5*Math.PI+2*Math.PI*d,w=2*Math.PI*x,S=b+w;g===0||d>=1||d+x>1||(e.beginPath(),e.moveTo(s,l),e.arc(s,l,f,b,S),e.closePath(),this.colorFillStyle(e,y[0],y[1],y[2],v),e.fill(),d+=x)}};To={},Wee=100;To.getPixelRatio=function(){var e=this.data.contexts[0];if(this.forcedPixelRatio!=null)return this.forcedPixelRatio;var t=this.cy.window(),r=e.backingStorePixelRatio||e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return(t.devicePixelRatio||1)/r};To.paintCache=function(e){for(var t=this.paintCaches=this.paintCaches||[],r=!0,n,i=0;is.minMbLowQualFrames&&(s.motionBlurPxRatio=s.mbPxRBlurry)),s.clearingMotionBlur&&(s.motionBlurPxRatio=1),s.textureDrawLastFrame&&!d&&(f[s.NODE]=!0,f[s.SELECT_BOX]=!0);var b=u.style(),w=u.zoom(),S=i!==void 0?i:w,T=u.pan(),E={x:T.x,y:T.y},_={zoom:w,pan:{x:T.x,y:T.y}},A=s.prevViewport,L=A===void 0||_.zoom!==A.zoom||_.pan.x!==A.pan.x||_.pan.y!==A.pan.y;!L&&!(y&&!g)&&(s.motionBlurPxRatio=1),a&&(E=a),S*=l,E.x*=l,E.y*=l;var M=s.getCachedZSortedEles();function N(ut,et,Mt,it,wt){var Ot=ut.globalCompositeOperation;ut.globalCompositeOperation="destination-out",s.colorFillStyle(ut,255,255,255,s.motionBlurTransparency),ut.fillRect(et,Mt,it,wt),ut.globalCompositeOperation=Ot}o(N,"mbclear");function k(ut,et){var Mt,it,wt,Ot;!s.clearingMotionBlur&&(ut===h.bufferContexts[s.MOTIONBLUR_BUFFER_NODE]||ut===h.bufferContexts[s.MOTIONBLUR_BUFFER_DRAG])?(Mt={x:T.x*m,y:T.y*m},it=w*m,wt=s.canvasWidth*m,Ot=s.canvasHeight*m):(Mt=E,it=S,wt=s.canvasWidth,Ot=s.canvasHeight),ut.setTransform(1,0,0,1,0,0),et==="motionBlur"?N(ut,0,0,wt,Ot):!t&&(et===void 0||et)&&ut.clearRect(0,0,wt,Ot),r||(ut.translate(Mt.x,Mt.y),ut.scale(it,it)),a&&ut.translate(a.x,a.y),i&&ut.scale(i,i)}if(o(k,"setContextTransform"),d||(s.textureDrawLastFrame=!1),d){if(s.textureDrawLastFrame=!0,!s.textureCache){s.textureCache={},s.textureCache.bb=u.mutableElements().boundingBox(),s.textureCache.texture=s.data.bufferCanvases[s.TEXTURE_BUFFER];var I=s.data.bufferContexts[s.TEXTURE_BUFFER];I.setTransform(1,0,0,1,0,0),I.clearRect(0,0,s.canvasWidth*s.textureMult,s.canvasHeight*s.textureMult),s.render({forcedContext:I,drawOnlyNodeLayer:!0,forcedPxRatio:l*s.textureMult});var _=s.textureCache.viewport={zoom:u.zoom(),pan:u.pan(),width:s.canvasWidth,height:s.canvasHeight};_.mpan={x:(0-_.pan.x)/_.zoom,y:(0-_.pan.y)/_.zoom}}f[s.DRAG]=!1,f[s.NODE]=!1;var C=h.contexts[s.NODE],O=s.textureCache.texture,_=s.textureCache.viewport;C.setTransform(1,0,0,1,0,0),p?N(C,0,0,_.width,_.height):C.clearRect(0,0,_.width,_.height);var D=b.core("outside-texture-bg-color").value,P=b.core("outside-texture-bg-opacity").value;s.colorFillStyle(C,D[0],D[1],D[2],P),C.fillRect(0,0,_.width,_.height);var w=u.zoom();k(C,!1),C.clearRect(_.mpan.x,_.mpan.y,_.width/_.zoom/l,_.height/_.zoom/l),C.drawImage(O,_.mpan.x,_.mpan.y,_.width/_.zoom/l,_.height/_.zoom/l)}else s.textureOnViewport&&!t&&(s.textureCache=null);var F=u.extent(),B=s.pinching||s.hoverData.dragging||s.swipePanning||s.data.wheelZooming||s.hoverData.draggingEles||s.cy.animated(),G=s.hideEdgesOnViewport&&B,z=[];if(z[s.NODE]=!f[s.NODE]&&p&&!s.clearedForMotionBlur[s.NODE]||s.clearingMotionBlur,z[s.NODE]&&(s.clearedForMotionBlur[s.NODE]=!0),z[s.DRAG]=!f[s.DRAG]&&p&&!s.clearedForMotionBlur[s.DRAG]||s.clearingMotionBlur,z[s.DRAG]&&(s.clearedForMotionBlur[s.DRAG]=!0),f[s.NODE]||r||n||z[s.NODE]){var W=p&&!z[s.NODE]&&m!==1,C=t||(W?s.data.bufferContexts[s.MOTIONBLUR_BUFFER_NODE]:h.contexts[s.NODE]),Q=p&&!W?"motionBlur":void 0;k(C,Q),G?s.drawCachedNodes(C,M.nondrag,l,F):s.drawLayeredElements(C,M.nondrag,l,F),s.debug&&s.drawDebugPoints(C,M.nondrag),!r&&!p&&(f[s.NODE]=!1)}if(!n&&(f[s.DRAG]||r||z[s.DRAG])){var W=p&&!z[s.DRAG]&&m!==1,C=t||(W?s.data.bufferContexts[s.MOTIONBLUR_BUFFER_DRAG]:h.contexts[s.DRAG]);k(C,p&&!W?"motionBlur":void 0),G?s.drawCachedNodes(C,M.drag,l,F):s.drawCachedElements(C,M.drag,l,F),s.debug&&s.drawDebugPoints(C,M.drag),!r&&!p&&(f[s.DRAG]=!1)}if(s.showFps||!n&&f[s.SELECT_BOX]&&!r){var C=t||h.contexts[s.SELECT_BOX];if(k(C),s.selection[4]==1&&(s.hoverData.selecting||s.touchData.selecting)){var w=s.cy.zoom(),j=b.core("selection-box-border-width").value/w;C.lineWidth=j,C.fillStyle="rgba("+b.core("selection-box-color").value[0]+","+b.core("selection-box-color").value[1]+","+b.core("selection-box-color").value[2]+","+b.core("selection-box-opacity").value+")",C.fillRect(s.selection[0],s.selection[1],s.selection[2]-s.selection[0],s.selection[3]-s.selection[1]),j>0&&(C.strokeStyle="rgba("+b.core("selection-box-border-color").value[0]+","+b.core("selection-box-border-color").value[1]+","+b.core("selection-box-border-color").value[2]+","+b.core("selection-box-opacity").value+")",C.strokeRect(s.selection[0],s.selection[1],s.selection[2]-s.selection[0],s.selection[3]-s.selection[1]))}if(h.bgActivePosistion&&!s.hoverData.selecting){var w=s.cy.zoom(),at=h.bgActivePosistion;C.fillStyle="rgba("+b.core("active-bg-color").value[0]+","+b.core("active-bg-color").value[1]+","+b.core("active-bg-color").value[2]+","+b.core("active-bg-opacity").value+")",C.beginPath(),C.arc(at.x,at.y,b.core("active-bg-size").pfValue/w,0,2*Math.PI),C.fill()}var X=s.lastRedrawTime;if(s.showFps&&X){X=Math.round(X);var J=Math.round(1e3/X);C.setTransform(1,0,0,1,0,0),C.fillStyle="rgba(255, 0, 0, 0.75)",C.strokeStyle="rgba(255, 0, 0, 0.75)",C.lineWidth=1,C.fillText("1 frame = "+X+" ms = "+J+" fps",0,20);var Z=60;C.strokeRect(0,30,250,20),C.fillRect(0,30,250*Math.min(J/Z,1),20)}r||(f[s.SELECT_BOX]=!1)}if(p&&m!==1){var H=h.contexts[s.NODE],q=s.data.bufferCanvases[s.MOTIONBLUR_BUFFER_NODE],K=h.contexts[s.DRAG],ot=s.data.bufferCanvases[s.MOTIONBLUR_BUFFER_DRAG],ct=o(function(et,Mt,it){et.setTransform(1,0,0,1,0,0),it||!x?et.clearRect(0,0,s.canvasWidth,s.canvasHeight):N(et,0,0,s.canvasWidth,s.canvasHeight);var wt=m;et.drawImage(Mt,0,0,s.canvasWidth*wt,s.canvasHeight*wt,0,0,s.canvasWidth,s.canvasHeight)},"drawMotionBlur");(f[s.NODE]||z[s.NODE])&&(ct(H,q,z[s.NODE]),f[s.NODE]=!1),(f[s.DRAG]||z[s.DRAG])&&(ct(K,ot,z[s.DRAG]),f[s.DRAG]=!1)}s.prevViewport=_,s.clearingMotionBlur&&(s.clearingMotionBlur=!1,s.motionBlurCleared=!0,s.motionBlur=!0),p&&(s.motionBlurTimeout=setTimeout(function(){s.motionBlurTimeout=null,s.clearedForMotionBlur[s.NODE]=!1,s.clearedForMotionBlur[s.DRAG]=!1,s.motionBlur=!1,s.clearingMotionBlur=!d,s.mbFrames=0,f[s.NODE]=!0,f[s.DRAG]=!0,s.redraw()},Wee)),t||u.emit("render")};Bf={};Bf.drawPolygonPath=function(e,t,r,n,i,a){var s=n/2,l=i/2;e.beginPath&&e.beginPath(),e.moveTo(t+s*a[0],r+l*a[1]);for(var u=1;u0&&s>0){m.clearRect(0,0,a,s),m.globalCompositeOperation="source-over";var g=this.getCachedZSortedEles();if(e.full)m.translate(-n.x1*h,-n.y1*h),m.scale(h,h),this.drawElements(m,g),m.scale(1/h,1/h),m.translate(n.x1*h,n.y1*h);else{var y=t.pan(),v={x:y.x*h,y:y.y*h};h*=t.zoom(),m.translate(v.x,v.y),m.scale(h,h),this.drawElements(m,g),m.scale(1/h,1/h),m.translate(-v.x,-v.y)}e.bg&&(m.globalCompositeOperation="destination-over",m.fillStyle=e.bg,m.rect(0,0,a,s),m.fill())}return p};o(Yee,"b64ToBlob");o(Igt,"b64UriToB64");o(fyt,"output");Nb.png=function(e){return fyt(e,this.bufferCanvasImage(e),"image/png")};Nb.jpg=function(e){return fyt(e,this.bufferCanvasImage(e),"image/jpeg")};dyt={};dyt.nodeShapeImpl=function(e,t,r,n,i,a,s,l){switch(e){case"ellipse":return this.drawEllipsePath(t,r,n,i,a);case"polygon":return this.drawPolygonPath(t,r,n,i,a,s);case"round-polygon":return this.drawRoundPolygonPath(t,r,n,i,a,s,l);case"roundrectangle":case"round-rectangle":return this.drawRoundRectanglePath(t,r,n,i,a,l);case"cutrectangle":case"cut-rectangle":return this.drawCutRectanglePath(t,r,n,i,a,s,l);case"bottomroundrectangle":case"bottom-round-rectangle":return this.drawBottomRoundRectanglePath(t,r,n,i,a,l);case"barrel":return this.drawBarrelPath(t,r,n,i,a)}};qee=pyt,Kr=pyt.prototype;Kr.CANVAS_LAYERS=3;Kr.SELECT_BOX=0;Kr.DRAG=1;Kr.NODE=2;Kr.BUFFER_COUNT=3;Kr.TEXTURE_BUFFER=0;Kr.MOTIONBLUR_BUFFER_NODE=1;Kr.MOTIONBLUR_BUFFER_DRAG=2;o(pyt,"CanvasRenderer");Kr.redrawHint=function(e,t){var r=this;switch(e){case"eles":r.data.canvasNeedsRedraw[Kr.NODE]=t;break;case"drag":r.data.canvasNeedsRedraw[Kr.DRAG]=t;break;case"select":r.data.canvasNeedsRedraw[Kr.SELECT_BOX]=t;break}};Xee=typeof Path2D<"u";Kr.path2dEnabled=function(e){if(e===void 0)return this.pathsEnabled;this.pathsEnabled=!!e};Kr.usePaths=function(){return Xee&&this.pathsEnabled};Kr.setImgSmoothing=function(e,t){e.imageSmoothingEnabled!=null?e.imageSmoothingEnabled=t:(e.webkitImageSmoothingEnabled=t,e.mozImageSmoothingEnabled=t,e.msImageSmoothingEnabled=t)};Kr.getImgSmoothing=function(e){return e.imageSmoothingEnabled!=null?e.imageSmoothingEnabled:e.webkitImageSmoothingEnabled||e.mozImageSmoothingEnabled||e.msImageSmoothingEnabled};Kr.makeOffscreenCanvas=function(e,t){var r;if((typeof OffscreenCanvas>"u"?"undefined":ji(OffscreenCanvas))!=="undefined")r=new OffscreenCanvas(e,t);else{var n=this.cy.window(),i=n.document;r=i.createElement("canvas"),r.width=e,r.height=t}return r};[lyt,tu,ah,AF,np,I1,To,Bf,Nb,dyt].forEach(function(e){ir(Kr,e)});jee=[{name:"null",impl:j1t},{name:"base",impl:ayt},{name:"canvas",impl:qee}],Kee=[{type:"layout",extensions:ree},{type:"renderer",extensions:jee}],myt={},gyt={};o(yyt,"setExtension");o(vyt,"getExtension");o(Qee,"setModule");o(Zee,"getModule");nF=o(function(){if(arguments.length===2)return vyt.apply(null,arguments);if(arguments.length===3)return yyt.apply(null,arguments);if(arguments.length===4)return Zee.apply(null,arguments);if(arguments.length===5)return Qee.apply(null,arguments);fi("Invalid extension access syntax")},"extension");kb.prototype.extension=nF;Kee.forEach(function(e){e.extensions.forEach(function(t){yyt(e.type,t.name,t.impl)})});xyt=o(function e(){if(!(this instanceof e))return new e;this.length=0},"Stylesheet"),ep=xyt.prototype;ep.instanceString=function(){return"stylesheet"};ep.selector=function(e){var t=this.length++;return this[t]={selector:e,properties:[]},this};ep.css=function(e,t){var r=this.length-1;if(Ke(e))this[r].properties.push({name:e,value:t});else if(Ur(e))for(var n=e,i=Object.keys(n),a=0;a{"use strict";o(function(t,r){typeof Mb=="object"&&typeof LF=="object"?LF.exports=r():typeof define=="function"&&define.amd?define([],r):typeof Mb=="object"?Mb.layoutBase=r():t.layoutBase=r()},"webpackUniversalModuleDefinition")(Mb,function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return o(r,"__webpack_require__"),r.m=e,r.c=t,r.i=function(n){return n},r.d=function(n,i,a){r.o(n,i)||Object.defineProperty(n,i,{configurable:!1,enumerable:!0,get:a})},r.n=function(n){var i=n&&n.__esModule?o(function(){return n.default},"getDefault"):o(function(){return n},"getModuleExports");return r.d(i,"a",i),i},r.o=function(n,i){return Object.prototype.hasOwnProperty.call(n,i)},r.p="",r(r.s=26)}([function(e,t,r){"use strict";function n(){}o(n,"LayoutConstants"),n.QUALITY=1,n.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,n.DEFAULT_INCREMENTAL=!1,n.DEFAULT_ANIMATION_ON_LAYOUT=!0,n.DEFAULT_ANIMATION_DURING_LAYOUT=!1,n.DEFAULT_ANIMATION_PERIOD=50,n.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,n.DEFAULT_GRAPH_MARGIN=15,n.NODE_DIMENSIONS_INCLUDE_LABELS=!1,n.SIMPLE_NODE_SIZE=40,n.SIMPLE_NODE_HALF_SIZE=n.SIMPLE_NODE_SIZE/2,n.EMPTY_COMPOUND_NODE_SIZE=40,n.MIN_EDGE_LENGTH=1,n.WORLD_BOUNDARY=1e6,n.INITIAL_WORLD_BOUNDARY=n.WORLD_BOUNDARY/1e3,n.WORLD_CENTER_X=1200,n.WORLD_CENTER_Y=900,e.exports=n},function(e,t,r){"use strict";var n=r(2),i=r(8),a=r(9);function s(u,h,f){n.call(this,f),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=f,this.bendpoints=[],this.source=u,this.target=h}o(s,"LEdge"),s.prototype=Object.create(n.prototype);for(var l in n)s[l]=n[l];s.prototype.getSource=function(){return this.source},s.prototype.getTarget=function(){return this.target},s.prototype.isInterGraph=function(){return this.isInterGraph},s.prototype.getLength=function(){return this.length},s.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},s.prototype.getBendpoints=function(){return this.bendpoints},s.prototype.getLca=function(){return this.lca},s.prototype.getSourceInLca=function(){return this.sourceInLca},s.prototype.getTargetInLca=function(){return this.targetInLca},s.prototype.getOtherEnd=function(u){if(this.source===u)return this.target;if(this.target===u)return this.source;throw"Node is not incident with this edge"},s.prototype.getOtherEndInGraph=function(u,h){for(var f=this.getOtherEnd(u),d=h.getGraphManager().getRoot();;){if(f.getOwner()==h)return f;if(f.getOwner()==d)break;f=f.getOwner().getParent()}return null},s.prototype.updateLength=function(){var u=new Array(4);this.isOverlapingSourceAndTarget=i.getIntersection(this.target.getRect(),this.source.getRect(),u),this.isOverlapingSourceAndTarget||(this.lengthX=u[0]-u[2],this.lengthY=u[1]-u[3],Math.abs(this.lengthX)<1&&(this.lengthX=a.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=a.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},s.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=a.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=a.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},e.exports=s},function(e,t,r){"use strict";function n(i){this.vGraphObject=i}o(n,"LGraphObject"),e.exports=n},function(e,t,r){"use strict";var n=r(2),i=r(10),a=r(13),s=r(0),l=r(16),u=r(4);function h(d,p,m,g){m==null&&g==null&&(g=p),n.call(this,g),d.graphManager!=null&&(d=d.graphManager),this.estimatedSize=i.MIN_VALUE,this.inclusionTreeDepth=i.MAX_VALUE,this.vGraphObject=g,this.edges=[],this.graphManager=d,m!=null&&p!=null?this.rect=new a(p.x,p.y,m.width,m.height):this.rect=new a}o(h,"LNode"),h.prototype=Object.create(n.prototype);for(var f in n)h[f]=n[f];h.prototype.getEdges=function(){return this.edges},h.prototype.getChild=function(){return this.child},h.prototype.getOwner=function(){return this.owner},h.prototype.getWidth=function(){return this.rect.width},h.prototype.setWidth=function(d){this.rect.width=d},h.prototype.getHeight=function(){return this.rect.height},h.prototype.setHeight=function(d){this.rect.height=d},h.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},h.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},h.prototype.getCenter=function(){return new u(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},h.prototype.getLocation=function(){return new u(this.rect.x,this.rect.y)},h.prototype.getRect=function(){return this.rect},h.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},h.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},h.prototype.setRect=function(d,p){this.rect.x=d.x,this.rect.y=d.y,this.rect.width=p.width,this.rect.height=p.height},h.prototype.setCenter=function(d,p){this.rect.x=d-this.rect.width/2,this.rect.y=p-this.rect.height/2},h.prototype.setLocation=function(d,p){this.rect.x=d,this.rect.y=p},h.prototype.moveBy=function(d,p){this.rect.x+=d,this.rect.y+=p},h.prototype.getEdgeListToNode=function(d){var p=[],m,g=this;return g.edges.forEach(function(y){if(y.target==d){if(y.source!=g)throw"Incorrect edge source!";p.push(y)}}),p},h.prototype.getEdgesBetween=function(d){var p=[],m,g=this;return g.edges.forEach(function(y){if(!(y.source==g||y.target==g))throw"Incorrect edge source and/or target";(y.target==d||y.source==d)&&p.push(y)}),p},h.prototype.getNeighborsList=function(){var d=new Set,p=this;return p.edges.forEach(function(m){if(m.source==p)d.add(m.target);else{if(m.target!=p)throw"Incorrect incidency!";d.add(m.source)}}),d},h.prototype.withChildren=function(){var d=new Set,p,m;if(d.add(this),this.child!=null)for(var g=this.child.getNodes(),y=0;yp&&(this.rect.x-=(this.labelWidth-p)/2,this.setWidth(this.labelWidth)),this.labelHeight>m&&(this.labelPos=="center"?this.rect.y-=(this.labelHeight-m)/2:this.labelPos=="top"&&(this.rect.y-=this.labelHeight-m),this.setHeight(this.labelHeight))}}},h.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==i.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},h.prototype.transform=function(d){var p=this.rect.x;p>s.WORLD_BOUNDARY?p=s.WORLD_BOUNDARY:p<-s.WORLD_BOUNDARY&&(p=-s.WORLD_BOUNDARY);var m=this.rect.y;m>s.WORLD_BOUNDARY?m=s.WORLD_BOUNDARY:m<-s.WORLD_BOUNDARY&&(m=-s.WORLD_BOUNDARY);var g=new u(p,m),y=d.inverseTransformPoint(g);this.setLocation(y.x,y.y)},h.prototype.getLeft=function(){return this.rect.x},h.prototype.getRight=function(){return this.rect.x+this.rect.width},h.prototype.getTop=function(){return this.rect.y},h.prototype.getBottom=function(){return this.rect.y+this.rect.height},h.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},e.exports=h},function(e,t,r){"use strict";function n(i,a){i==null&&a==null?(this.x=0,this.y=0):(this.x=i,this.y=a)}o(n,"PointD"),n.prototype.getX=function(){return this.x},n.prototype.getY=function(){return this.y},n.prototype.setX=function(i){this.x=i},n.prototype.setY=function(i){this.y=i},n.prototype.getDifference=function(i){return new DimensionD(this.x-i.x,this.y-i.y)},n.prototype.getCopy=function(){return new n(this.x,this.y)},n.prototype.translate=function(i){return this.x+=i.width,this.y+=i.height,this},e.exports=n},function(e,t,r){"use strict";var n=r(2),i=r(10),a=r(0),s=r(6),l=r(3),u=r(1),h=r(13),f=r(12),d=r(11);function p(g,y,v){n.call(this,v),this.estimatedSize=i.MIN_VALUE,this.margin=a.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=g,y!=null&&y instanceof s?this.graphManager=y:y!=null&&y instanceof Layout&&(this.graphManager=y.graphManager)}o(p,"LGraph"),p.prototype=Object.create(n.prototype);for(var m in n)p[m]=n[m];p.prototype.getNodes=function(){return this.nodes},p.prototype.getEdges=function(){return this.edges},p.prototype.getGraphManager=function(){return this.graphManager},p.prototype.getParent=function(){return this.parent},p.prototype.getLeft=function(){return this.left},p.prototype.getRight=function(){return this.right},p.prototype.getTop=function(){return this.top},p.prototype.getBottom=function(){return this.bottom},p.prototype.isConnected=function(){return this.isConnected},p.prototype.add=function(g,y,v){if(y==null&&v==null){var x=g;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(x)>-1)throw"Node already in graph!";return x.owner=this,this.getNodes().push(x),x}else{var b=g;if(!(this.getNodes().indexOf(y)>-1&&this.getNodes().indexOf(v)>-1))throw"Source or target not in graph!";if(!(y.owner==v.owner&&y.owner==this))throw"Both owners must be this graph!";return y.owner!=v.owner?null:(b.source=y,b.target=v,b.isInterGraph=!1,this.getEdges().push(b),y.edges.push(b),v!=y&&v.edges.push(b),b)}},p.prototype.remove=function(g){var y=g;if(g instanceof l){if(y==null)throw"Node is null!";if(!(y.owner!=null&&y.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var v=y.edges.slice(),x,b=v.length,w=0;w-1&&E>-1))throw"Source and/or target doesn't know this edge!";x.source.edges.splice(T,1),x.target!=x.source&&x.target.edges.splice(E,1);var S=x.source.owner.getEdges().indexOf(x);if(S==-1)throw"Not in owner's edge list!";x.source.owner.getEdges().splice(S,1)}},p.prototype.updateLeftTop=function(){for(var g=i.MAX_VALUE,y=i.MAX_VALUE,v,x,b,w=this.getNodes(),S=w.length,T=0;Tv&&(g=v),y>x&&(y=x)}return g==i.MAX_VALUE?null:(w[0].getParent().paddingLeft!=null?b=w[0].getParent().paddingLeft:b=this.margin,this.left=y-b,this.top=g-b,new f(this.left,this.top))},p.prototype.updateBounds=function(g){for(var y=i.MAX_VALUE,v=-i.MAX_VALUE,x=i.MAX_VALUE,b=-i.MAX_VALUE,w,S,T,E,_,A=this.nodes,L=A.length,M=0;Mw&&(y=w),vT&&(x=T),bw&&(y=w),vT&&(x=T),b=this.nodes.length){var L=0;v.forEach(function(M){M.owner==g&&L++}),L==this.nodes.length&&(this.isConnected=!0)}},e.exports=p},function(e,t,r){"use strict";var n,i=r(1);function a(s){n=r(5),this.layout=s,this.graphs=[],this.edges=[]}o(a,"LGraphManager"),a.prototype.addRoot=function(){var s=this.layout.newGraph(),l=this.layout.newNode(null),u=this.add(s,l);return this.setRootGraph(u),this.rootGraph},a.prototype.add=function(s,l,u,h,f){if(u==null&&h==null&&f==null){if(s==null)throw"Graph is null!";if(l==null)throw"Parent node is null!";if(this.graphs.indexOf(s)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(s),s.parent!=null)throw"Already has a parent!";if(l.child!=null)throw"Already has a child!";return s.parent=l,l.child=s,s}else{f=u,h=l,u=s;var d=h.getOwner(),p=f.getOwner();if(!(d!=null&&d.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(p!=null&&p.getGraphManager()==this))throw"Target not in this graph mgr!";if(d==p)return u.isInterGraph=!1,d.add(u,h,f);if(u.isInterGraph=!0,u.source=h,u.target=f,this.edges.indexOf(u)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(u),!(u.source!=null&&u.target!=null))throw"Edge source and/or target is null!";if(!(u.source.edges.indexOf(u)==-1&&u.target.edges.indexOf(u)==-1))throw"Edge already in source and/or target incidency list!";return u.source.edges.push(u),u.target.edges.push(u),u}},a.prototype.remove=function(s){if(s instanceof n){var l=s;if(l.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(l==this.rootGraph||l.parent!=null&&l.parent.graphManager==this))throw"Invalid parent node!";var u=[];u=u.concat(l.getEdges());for(var h,f=u.length,d=0;d=s.getRight()?l[0]+=Math.min(s.getX()-a.getX(),a.getRight()-s.getRight()):s.getX()<=a.getX()&&s.getRight()>=a.getRight()&&(l[0]+=Math.min(a.getX()-s.getX(),s.getRight()-a.getRight())),a.getY()<=s.getY()&&a.getBottom()>=s.getBottom()?l[1]+=Math.min(s.getY()-a.getY(),a.getBottom()-s.getBottom()):s.getY()<=a.getY()&&s.getBottom()>=a.getBottom()&&(l[1]+=Math.min(a.getY()-s.getY(),s.getBottom()-a.getBottom()));var f=Math.abs((s.getCenterY()-a.getCenterY())/(s.getCenterX()-a.getCenterX()));s.getCenterY()===a.getCenterY()&&s.getCenterX()===a.getCenterX()&&(f=1);var d=f*l[0],p=l[1]/f;l[0]d)return l[0]=u,l[1]=m,l[2]=f,l[3]=A,!1;if(hf)return l[0]=p,l[1]=h,l[2]=E,l[3]=d,!1;if(uf?(l[0]=y,l[1]=v,k=!0):(l[0]=g,l[1]=m,k=!0):C===D&&(u>f?(l[0]=p,l[1]=m,k=!0):(l[0]=x,l[1]=v,k=!0)),-O===D?f>u?(l[2]=_,l[3]=A,I=!0):(l[2]=E,l[3]=T,I=!0):O===D&&(f>u?(l[2]=S,l[3]=T,I=!0):(l[2]=L,l[3]=A,I=!0)),k&&I)return!1;if(u>f?h>d?(P=this.getCardinalDirection(C,D,4),F=this.getCardinalDirection(O,D,2)):(P=this.getCardinalDirection(-C,D,3),F=this.getCardinalDirection(-O,D,1)):h>d?(P=this.getCardinalDirection(-C,D,1),F=this.getCardinalDirection(-O,D,3)):(P=this.getCardinalDirection(C,D,2),F=this.getCardinalDirection(O,D,4)),!k)switch(P){case 1:G=m,B=u+-w/D,l[0]=B,l[1]=G;break;case 2:B=x,G=h+b*D,l[0]=B,l[1]=G;break;case 3:G=v,B=u+w/D,l[0]=B,l[1]=G;break;case 4:B=y,G=h+-b*D,l[0]=B,l[1]=G;break}if(!I)switch(F){case 1:W=T,z=f+-N/D,l[2]=z,l[3]=W;break;case 2:z=L,W=d+M*D,l[2]=z,l[3]=W;break;case 3:W=A,z=f+N/D,l[2]=z,l[3]=W;break;case 4:z=_,W=d+-M*D,l[2]=z,l[3]=W;break}}return!1},i.getCardinalDirection=function(a,s,l){return a>s?l:1+l%4},i.getIntersection=function(a,s,l,u){if(u==null)return this.getIntersection2(a,s,l);var h=a.x,f=a.y,d=s.x,p=s.y,m=l.x,g=l.y,y=u.x,v=u.y,x=void 0,b=void 0,w=void 0,S=void 0,T=void 0,E=void 0,_=void 0,A=void 0,L=void 0;return w=p-f,T=h-d,_=d*f-h*p,S=v-g,E=m-y,A=y*g-m*v,L=w*E-S*T,L===0?null:(x=(T*A-E*_)/L,b=(S*_-w*A)/L,new n(x,b))},i.angleOfVector=function(a,s,l,u){var h=void 0;return a!==l?(h=Math.atan((u-s)/(l-a)),l0?1:i<0?-1:0},n.floor=function(i){return i<0?Math.ceil(i):Math.floor(i)},n.ceil=function(i){return i<0?Math.floor(i):Math.ceil(i)},e.exports=n},function(e,t,r){"use strict";function n(){}o(n,"Integer"),n.MAX_VALUE=2147483647,n.MIN_VALUE=-2147483648,e.exports=n},function(e,t,r){"use strict";var n=function(){function h(f,d){for(var p=0;p"u"?"undefined":n(a);return a==null||s!="object"&&s!="function"},e.exports=i},function(e,t,r){"use strict";function n(m){if(Array.isArray(m)){for(var g=0,y=Array(m.length);g0&&g;){for(w.push(T[0]);w.length>0&&g;){var E=w[0];w.splice(0,1),b.add(E);for(var _=E.getEdges(),x=0;x<_.length;x++){var A=_[x].getOtherEnd(E);if(S.get(E)!=A)if(!b.has(A))w.push(A),S.set(A,E);else{g=!1;break}}}if(!g)m=[];else{var L=[].concat(n(b));m.push(L);for(var x=0;x-1&&T.splice(N,1)}b=new Set,S=new Map}}return m},p.prototype.createDummyNodesForBendpoints=function(m){for(var g=[],y=m.source,v=this.graphManager.calcLowestCommonAncestor(m.source,m.target),x=0;x0){for(var v=this.edgeToDummyNodes.get(y),x=0;x=0&&g.splice(A,1);var L=S.getNeighborsList();L.forEach(function(k){if(y.indexOf(k)<0){var I=v.get(k),C=I-1;C==1&&E.push(k),v.set(k,C)}})}y=y.concat(E),(g.length==1||g.length==2)&&(x=!0,b=g[0])}return b},p.prototype.setGraphManager=function(m){this.graphManager=m},e.exports=p},function(e,t,r){"use strict";function n(){}o(n,"RandomSeed"),n.seed=1,n.x=0,n.nextDouble=function(){return n.x=Math.sin(n.seed++)*1e4,n.x-Math.floor(n.x)},e.exports=n},function(e,t,r){"use strict";var n=r(4);function i(a,s){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}o(i,"Transform"),i.prototype.getWorldOrgX=function(){return this.lworldOrgX},i.prototype.setWorldOrgX=function(a){this.lworldOrgX=a},i.prototype.getWorldOrgY=function(){return this.lworldOrgY},i.prototype.setWorldOrgY=function(a){this.lworldOrgY=a},i.prototype.getWorldExtX=function(){return this.lworldExtX},i.prototype.setWorldExtX=function(a){this.lworldExtX=a},i.prototype.getWorldExtY=function(){return this.lworldExtY},i.prototype.setWorldExtY=function(a){this.lworldExtY=a},i.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},i.prototype.setDeviceOrgX=function(a){this.ldeviceOrgX=a},i.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},i.prototype.setDeviceOrgY=function(a){this.ldeviceOrgY=a},i.prototype.getDeviceExtX=function(){return this.ldeviceExtX},i.prototype.setDeviceExtX=function(a){this.ldeviceExtX=a},i.prototype.getDeviceExtY=function(){return this.ldeviceExtY},i.prototype.setDeviceExtY=function(a){this.ldeviceExtY=a},i.prototype.transformX=function(a){var s=0,l=this.lworldExtX;return l!=0&&(s=this.ldeviceOrgX+(a-this.lworldOrgX)*this.ldeviceExtX/l),s},i.prototype.transformY=function(a){var s=0,l=this.lworldExtY;return l!=0&&(s=this.ldeviceOrgY+(a-this.lworldOrgY)*this.ldeviceExtY/l),s},i.prototype.inverseTransformX=function(a){var s=0,l=this.ldeviceExtX;return l!=0&&(s=this.lworldOrgX+(a-this.ldeviceOrgX)*this.lworldExtX/l),s},i.prototype.inverseTransformY=function(a){var s=0,l=this.ldeviceExtY;return l!=0&&(s=this.lworldOrgY+(a-this.ldeviceOrgY)*this.lworldExtY/l),s},i.prototype.inverseTransformPoint=function(a){var s=new n(this.inverseTransformX(a.x),this.inverseTransformY(a.y));return s},e.exports=i},function(e,t,r){"use strict";function n(d){if(Array.isArray(d)){for(var p=0,m=Array(d.length);pa.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*a.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(d-a.ADAPTATION_LOWER_NODE_LIMIT)/(a.ADAPTATION_UPPER_NODE_LIMIT-a.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-a.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=a.MAX_NODE_DISPLACEMENT_INCREMENTAL):(d>a.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(a.COOLING_ADAPTATION_FACTOR,1-(d-a.ADAPTATION_LOWER_NODE_LIMIT)/(a.ADAPTATION_UPPER_NODE_LIMIT-a.ADAPTATION_LOWER_NODE_LIMIT)*(1-a.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=a.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},h.prototype.calcSpringForces=function(){for(var d=this.getAllEdges(),p,m=0;m0&&arguments[0]!==void 0?arguments[0]:!0,p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,m,g,y,v,x=this.getAllNodes(),b;if(this.useFRGridVariant)for(this.totalIterations%a.GRID_CALCULATION_CHECK_PERIOD==1&&d&&this.updateGrid(),b=new Set,m=0;mw||b>w)&&(d.gravitationForceX=-this.gravityConstant*y,d.gravitationForceY=-this.gravityConstant*v)):(w=p.getEstimatedSize()*this.compoundGravityRangeFactor,(x>w||b>w)&&(d.gravitationForceX=-this.gravityConstant*y*this.compoundGravityConstant,d.gravitationForceY=-this.gravityConstant*v*this.compoundGravityConstant))},h.prototype.isConverged=function(){var d,p=!1;return this.totalIterations>this.maxIterations/3&&(p=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),d=this.totalDisplacement=x.length||w>=x[0].length)){for(var S=0;Sh},"_defaultCompareFunction")}]),l}();e.exports=s},function(e,t,r){"use strict";var n=function(){function s(l,u){for(var h=0;h2&&arguments[2]!==void 0?arguments[2]:1,f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,d=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;i(this,s),this.sequence1=l,this.sequence2=u,this.match_score=h,this.mismatch_penalty=f,this.gap_penalty=d,this.iMax=l.length+1,this.jMax=u.length+1,this.grid=new Array(this.iMax);for(var p=0;p=0;l--){var u=this.listeners[l];u.event===a&&u.callback===s&&this.listeners.splice(l,1)}},i.emit=function(a,s){for(var l=0;l{"use strict";o(function(t,r){typeof Ib=="object"&&typeof RF=="object"?RF.exports=r(DF()):typeof define=="function"&&define.amd?define(["layout-base"],r):typeof Ib=="object"?Ib.coseBase=r(DF()):t.coseBase=r(t.layoutBase)},"webpackUniversalModuleDefinition")(Ib,function(e){return function(t){var r={};function n(i){if(r[i])return r[i].exports;var a=r[i]={i,l:!1,exports:{}};return t[i].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return o(n,"__webpack_require__"),n.m=t,n.c=r,n.i=function(i){return i},n.d=function(i,a,s){n.o(i,a)||Object.defineProperty(i,a,{configurable:!1,enumerable:!0,get:s})},n.n=function(i){var a=i&&i.__esModule?o(function(){return i.default},"getDefault"):o(function(){return i},"getModuleExports");return n.d(a,"a",a),a},n.o=function(i,a){return Object.prototype.hasOwnProperty.call(i,a)},n.p="",n(n.s=7)}([function(t,r){t.exports=e},function(t,r,n){"use strict";var i=n(0).FDLayoutConstants;function a(){}o(a,"CoSEConstants");for(var s in i)a[s]=i[s];a.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,a.DEFAULT_RADIAL_SEPARATION=i.DEFAULT_EDGE_LENGTH,a.DEFAULT_COMPONENT_SEPERATION=60,a.TILE=!0,a.TILING_PADDING_VERTICAL=10,a.TILING_PADDING_HORIZONTAL=10,a.TREE_REDUCTION_ON_INCREMENTAL=!1,t.exports=a},function(t,r,n){"use strict";var i=n(0).FDLayoutEdge;function a(l,u,h){i.call(this,l,u,h)}o(a,"CoSEEdge"),a.prototype=Object.create(i.prototype);for(var s in i)a[s]=i[s];t.exports=a},function(t,r,n){"use strict";var i=n(0).LGraph;function a(l,u,h){i.call(this,l,u,h)}o(a,"CoSEGraph"),a.prototype=Object.create(i.prototype);for(var s in i)a[s]=i[s];t.exports=a},function(t,r,n){"use strict";var i=n(0).LGraphManager;function a(l){i.call(this,l)}o(a,"CoSEGraphManager"),a.prototype=Object.create(i.prototype);for(var s in i)a[s]=i[s];t.exports=a},function(t,r,n){"use strict";var i=n(0).FDLayoutNode,a=n(0).IMath;function s(u,h,f,d){i.call(this,u,h,f,d)}o(s,"CoSENode"),s.prototype=Object.create(i.prototype);for(var l in i)s[l]=i[l];s.prototype.move=function(){var u=this.graphManager.getLayout();this.displacementX=u.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY=u.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren,Math.abs(this.displacementX)>u.coolingFactor*u.maxNodeDisplacement&&(this.displacementX=u.coolingFactor*u.maxNodeDisplacement*a.sign(this.displacementX)),Math.abs(this.displacementY)>u.coolingFactor*u.maxNodeDisplacement&&(this.displacementY=u.coolingFactor*u.maxNodeDisplacement*a.sign(this.displacementY)),this.child==null?this.moveBy(this.displacementX,this.displacementY):this.child.getNodes().length==0?this.moveBy(this.displacementX,this.displacementY):this.propogateDisplacementToChildren(this.displacementX,this.displacementY),u.totalDisplacement+=Math.abs(this.displacementX)+Math.abs(this.displacementY),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0},s.prototype.propogateDisplacementToChildren=function(u,h){for(var f=this.getChild().getNodes(),d,p=0;p0)this.positionNodesRadially(T);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var E=new Set(this.getAllNodes()),_=this.nodesWithGravity.filter(function(A){return E.has(A)});this.graphManager.setAllNodesToApplyGravitation(_),this.positionNodesRandomly()}}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},w.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%f.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var T=new Set(this.getAllNodes()),E=this.nodesWithGravity.filter(function(L){return T.has(L)});this.graphManager.setAllNodesToApplyGravitation(E),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=f.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),this.coolingFactor=f.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var _=!this.isTreeGrowing&&!this.isGrowthFinished,A=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(_,A),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},w.prototype.getPositionsData=function(){for(var T=this.graphManager.getAllNodes(),E={},_=0;_1){var k;for(k=0;kA&&(A=Math.floor(N.y)),M=Math.floor(N.x+h.DEFAULT_COMPONENT_SEPERATION)}this.transform(new m(d.WORLD_CENTER_X-N.x/2,d.WORLD_CENTER_Y-N.y/2))},w.radialLayout=function(T,E,_){var A=Math.max(this.maxDiagonalInTree(T),h.DEFAULT_RADIAL_SEPARATION);w.branchRadialLayout(E,null,0,359,0,A);var L=x.calculateBounds(T),M=new b;M.setDeviceOrgX(L.getMinX()),M.setDeviceOrgY(L.getMinY()),M.setWorldOrgX(_.x),M.setWorldOrgY(_.y);for(var N=0;N1;){var Q=W[0];W.splice(0,1);var j=P.indexOf(Q);j>=0&&P.splice(j,1),G--,F--}E!=null?z=(P.indexOf(W[0])+1)%G:z=0;for(var at=Math.abs(A-_)/F,X=z;B!=F;X=++X%G){var J=P[X].getOtherEnd(T);if(J!=E){var Z=(_+B*at)%360,H=(Z+at)%360;w.branchRadialLayout(J,T,Z,H,L+M,M),B++}}},w.maxDiagonalInTree=function(T){for(var E=y.MIN_VALUE,_=0;_E&&(E=L)}return E},w.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},w.prototype.groupZeroDegreeMembers=function(){var T=this,E={};this.memberGroups={},this.idToDummyNode={};for(var _=[],A=this.graphManager.getAllNodes(),L=0;L"u"&&(E[k]=[]),E[k]=E[k].concat(M)}Object.keys(E).forEach(function(I){if(E[I].length>1){var C="DummyCompound_"+I;T.memberGroups[C]=E[I];var O=E[I][0].getParent(),D=new l(T.graphManager);D.id=C,D.paddingLeft=O.paddingLeft||0,D.paddingRight=O.paddingRight||0,D.paddingBottom=O.paddingBottom||0,D.paddingTop=O.paddingTop||0,T.idToDummyNode[C]=D;var P=T.getGraphManager().add(T.newGraph(),D),F=O.getChild();F.add(D);for(var B=0;B=0;T--){var E=this.compoundOrder[T],_=E.id,A=E.paddingLeft,L=E.paddingTop;this.adjustLocations(this.tiledMemberPack[_],E.rect.x,E.rect.y,A,L)}},w.prototype.repopulateZeroDegreeMembers=function(){var T=this,E=this.tiledZeroDegreePack;Object.keys(E).forEach(function(_){var A=T.idToDummyNode[_],L=A.paddingLeft,M=A.paddingTop;T.adjustLocations(E[_],A.rect.x,A.rect.y,L,M)})},w.prototype.getToBeTiled=function(T){var E=T.id;if(this.toBeTiled[E]!=null)return this.toBeTiled[E];var _=T.getChild();if(_==null)return this.toBeTiled[E]=!1,!1;for(var A=_.getNodes(),L=0;L0)return this.toBeTiled[E]=!1,!1;if(M.getChild()==null){this.toBeTiled[M.id]=!1;continue}if(!this.getToBeTiled(M))return this.toBeTiled[E]=!1,!1}return this.toBeTiled[E]=!0,!0},w.prototype.getNodeDegree=function(T){for(var E=T.id,_=T.getEdges(),A=0,L=0;L<_.length;L++){var M=_[L];M.getSource().id!==M.getTarget().id&&(A=A+1)}return A},w.prototype.getNodeDegreeWithChildren=function(T){var E=this.getNodeDegree(T);if(T.getChild()==null)return E;for(var _=T.getChild().getNodes(),A=0;A<_.length;A++){var L=_[A];E+=this.getNodeDegreeWithChildren(L)}return E},w.prototype.performDFSOnCompounds=function(){this.compoundOrder=[],this.fillCompexOrderByDFS(this.graphManager.getRoot().getNodes())},w.prototype.fillCompexOrderByDFS=function(T){for(var E=0;EI&&(I=O.rect.height)}_+=I+T.verticalPadding}},w.prototype.tileCompoundMembers=function(T,E){var _=this;this.tiledMemberPack=[],Object.keys(T).forEach(function(A){var L=E[A];_.tiledMemberPack[A]=_.tileNodes(T[A],L.paddingLeft+L.paddingRight),L.rect.width=_.tiledMemberPack[A].width,L.rect.height=_.tiledMemberPack[A].height})},w.prototype.tileNodes=function(T,E){var _=h.TILING_PADDING_VERTICAL,A=h.TILING_PADDING_HORIZONTAL,L={rows:[],rowWidth:[],rowHeight:[],width:0,height:E,verticalPadding:_,horizontalPadding:A};T.sort(function(k,I){return k.rect.width*k.rect.height>I.rect.width*I.rect.height?-1:k.rect.width*k.rect.height0&&(N+=T.horizontalPadding),T.rowWidth[_]=N,T.width0&&(k+=T.verticalPadding);var I=0;k>T.rowHeight[_]&&(I=T.rowHeight[_],T.rowHeight[_]=k,I=T.rowHeight[_]-I),T.height+=I,T.rows[_].push(E)},w.prototype.getShortestRowIndex=function(T){for(var E=-1,_=Number.MAX_VALUE,A=0;A_&&(E=A,_=T.rowWidth[A]);return E},w.prototype.canAddHorizontal=function(T,E,_){var A=this.getShortestRowIndex(T);if(A<0)return!0;var L=T.rowWidth[A];if(L+T.horizontalPadding+E<=T.width)return!0;var M=0;T.rowHeight[A]<_&&A>0&&(M=_+T.verticalPadding-T.rowHeight[A]);var N;T.width-L>=E+T.horizontalPadding?N=(T.height+M)/(L+E+T.horizontalPadding):N=(T.height+M)/T.width,M=_+T.verticalPadding;var k;return T.widthM&&E!=_){A.splice(-1,1),T.rows[_].push(L),T.rowWidth[E]=T.rowWidth[E]-M,T.rowWidth[_]=T.rowWidth[_]+M,T.width=T.rowWidth[instance.getLongestRowIndex(T)];for(var N=Number.MIN_VALUE,k=0;kN&&(N=A[k].height);E>0&&(N+=T.verticalPadding);var I=T.rowHeight[E]+T.rowHeight[_];T.rowHeight[E]=N,T.rowHeight[_]0)for(var F=L;F<=M;F++)P[0]+=this.grid[F][N-1].length+this.grid[F][N].length-1;if(M0)for(var F=N;F<=k;F++)P[3]+=this.grid[L-1][F].length+this.grid[L][F].length-1;for(var B=y.MAX_VALUE,G,z,W=0;W{"use strict";o(function(t,r){typeof Ob=="object"&&typeof MF=="object"?MF.exports=r(NF()):typeof define=="function"&&define.amd?define(["cose-base"],r):typeof Ob=="object"?Ob.cytoscapeCoseBilkent=r(NF()):t.cytoscapeCoseBilkent=r(t.coseBase)},"webpackUniversalModuleDefinition")(Ob,function(e){return function(t){var r={};function n(i){if(r[i])return r[i].exports;var a=r[i]={i,l:!1,exports:{}};return t[i].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return o(n,"__webpack_require__"),n.m=t,n.c=r,n.i=function(i){return i},n.d=function(i,a,s){n.o(i,a)||Object.defineProperty(i,a,{configurable:!1,enumerable:!0,get:s})},n.n=function(i){var a=i&&i.__esModule?o(function(){return i.default},"getDefault"):o(function(){return i},"getModuleExports");return n.d(a,"a",a),a},n.o=function(i,a){return Object.prototype.hasOwnProperty.call(i,a)},n.p="",n(n.s=1)}([function(t,r){t.exports=e},function(t,r,n){"use strict";var i=n(0).layoutBase.LayoutConstants,a=n(0).layoutBase.FDLayoutConstants,s=n(0).CoSEConstants,l=n(0).CoSELayout,u=n(0).CoSENode,h=n(0).layoutBase.PointD,f=n(0).layoutBase.DimensionD,d={ready:o(function(){},"ready"),stop:o(function(){},"stop"),quality:"default",nodeDimensionsIncludeLabels:!1,refresh:30,fit:!0,padding:10,randomize:!0,nodeRepulsion:4500,idealEdgeLength:50,edgeElasticity:.45,nestingFactor:.1,gravity:.25,numIter:2500,tile:!0,animate:"end",animationDuration:500,tilingPaddingVertical:10,tilingPaddingHorizontal:10,gravityRangeCompound:1.5,gravityCompound:1,gravityRange:3.8,initialEnergyOnIncremental:.5};function p(v,x){var b={};for(var w in v)b[w]=v[w];for(var w in x)b[w]=x[w];return b}o(p,"extend");function m(v){this.options=p(d,v),g(this.options)}o(m,"_CoSELayout");var g=o(function(x){x.nodeRepulsion!=null&&(s.DEFAULT_REPULSION_STRENGTH=a.DEFAULT_REPULSION_STRENGTH=x.nodeRepulsion),x.idealEdgeLength!=null&&(s.DEFAULT_EDGE_LENGTH=a.DEFAULT_EDGE_LENGTH=x.idealEdgeLength),x.edgeElasticity!=null&&(s.DEFAULT_SPRING_STRENGTH=a.DEFAULT_SPRING_STRENGTH=x.edgeElasticity),x.nestingFactor!=null&&(s.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=a.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=x.nestingFactor),x.gravity!=null&&(s.DEFAULT_GRAVITY_STRENGTH=a.DEFAULT_GRAVITY_STRENGTH=x.gravity),x.numIter!=null&&(s.MAX_ITERATIONS=a.MAX_ITERATIONS=x.numIter),x.gravityRange!=null&&(s.DEFAULT_GRAVITY_RANGE_FACTOR=a.DEFAULT_GRAVITY_RANGE_FACTOR=x.gravityRange),x.gravityCompound!=null&&(s.DEFAULT_COMPOUND_GRAVITY_STRENGTH=a.DEFAULT_COMPOUND_GRAVITY_STRENGTH=x.gravityCompound),x.gravityRangeCompound!=null&&(s.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=a.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=x.gravityRangeCompound),x.initialEnergyOnIncremental!=null&&(s.DEFAULT_COOLING_FACTOR_INCREMENTAL=a.DEFAULT_COOLING_FACTOR_INCREMENTAL=x.initialEnergyOnIncremental),x.quality=="draft"?i.QUALITY=0:x.quality=="proof"?i.QUALITY=2:i.QUALITY=1,s.NODE_DIMENSIONS_INCLUDE_LABELS=a.NODE_DIMENSIONS_INCLUDE_LABELS=i.NODE_DIMENSIONS_INCLUDE_LABELS=x.nodeDimensionsIncludeLabels,s.DEFAULT_INCREMENTAL=a.DEFAULT_INCREMENTAL=i.DEFAULT_INCREMENTAL=!x.randomize,s.ANIMATE=a.ANIMATE=i.ANIMATE=x.animate,s.TILE=x.tile,s.TILING_PADDING_VERTICAL=typeof x.tilingPaddingVertical=="function"?x.tilingPaddingVertical.call():x.tilingPaddingVertical,s.TILING_PADDING_HORIZONTAL=typeof x.tilingPaddingHorizontal=="function"?x.tilingPaddingHorizontal.call():x.tilingPaddingHorizontal},"getUserOptions");m.prototype.run=function(){var v,x,b=this.options,w=this.idToLNode={},S=this.layout=new l,T=this;T.stopped=!1,this.cy=this.options.cy,this.cy.trigger({type:"layoutstart",layout:this});var E=S.newGraphManager();this.gm=E;var _=this.options.eles.nodes(),A=this.options.eles.edges();this.root=E.addRoot(),this.processChildrenList(this.root,this.getTopMostNodes(_),S);for(var L=0;L0){var k;k=b.getGraphManager().add(b.newGraph(),_),this.processChildrenList(k,E,b)}}},m.prototype.stop=function(){return this.stopped=!0,this};var y=o(function(x){x("layout","cose-bilkent",m)},"register");typeof cytoscape<"u"&&y(cytoscape),t.exports=y}])})});function sre(e,t,r,n,i){return e.insert("polygon",":first-child").attr("points",n.map(function(a){return a.x+","+a.y}).join(" ")).attr("transform","translate("+(i.width-t)/2+", "+r+")")}var tre,ere,rre,nre,ire,are,ore,lre,wyt,Tyt,kyt=R(()=>{"use strict";Nl();_r();tre=12,ere=o(function(e,t,r,n){t.append("path").attr("id","node-"+r.id).attr("class","node-bkg node-"+e.type2Str(r.type)).attr("d",`M0 ${r.height-5} v${-r.height+2*5} q0,-5 5,-5 h${r.width-2*5} q5,0 5,5 v${r.height-5} H0 Z`),t.append("line").attr("class","node-line-"+n).attr("x1",0).attr("y1",r.height).attr("x2",r.width).attr("y2",r.height)},"defaultBkg"),rre=o(function(e,t,r){t.append("rect").attr("id","node-"+r.id).attr("class","node-bkg node-"+e.type2Str(r.type)).attr("height",r.height).attr("width",r.width)},"rectBkg"),nre=o(function(e,t,r){let n=r.width,i=r.height,a=.15*n,s=.25*n,l=.35*n,u=.2*n;t.append("path").attr("id","node-"+r.id).attr("class","node-bkg node-"+e.type2Str(r.type)).attr("d",`M0 0 a${a},${a} 0 0,1 ${n*.25},${-1*n*.1} + a${l},${l} 1 0,1 ${n*.4},${-1*n*.1} + a${s},${s} 1 0,1 ${n*.35},${1*n*.2} + + a${a},${a} 1 0,1 ${n*.15},${1*i*.35} + a${u},${u} 1 0,1 ${-1*n*.15},${1*i*.65} + + a${s},${a} 1 0,1 ${-1*n*.25},${n*.15} + a${l},${l} 1 0,1 ${-1*n*.5},0 + a${a},${a} 1 0,1 ${-1*n*.25},${-1*n*.15} + + a${a},${a} 1 0,1 ${-1*n*.1},${-1*i*.35} + a${u},${u} 1 0,1 ${n*.1},${-1*i*.65} + + H0 V0 Z`)},"cloudBkg"),ire=o(function(e,t,r){let n=r.width,i=r.height,a=.15*n;t.append("path").attr("id","node-"+r.id).attr("class","node-bkg node-"+e.type2Str(r.type)).attr("d",`M0 0 a${a},${a} 1 0,0 ${n*.25},${-1*i*.1} + a${a},${a} 1 0,0 ${n*.25},0 + a${a},${a} 1 0,0 ${n*.25},0 + a${a},${a} 1 0,0 ${n*.25},${1*i*.1} + + a${a},${a} 1 0,0 ${n*.15},${1*i*.33} + a${a*.8},${a*.8} 1 0,0 0,${1*i*.34} + a${a},${a} 1 0,0 ${-1*n*.15},${1*i*.33} + + a${a},${a} 1 0,0 ${-1*n*.25},${i*.15} + a${a},${a} 1 0,0 ${-1*n*.25},0 + a${a},${a} 1 0,0 ${-1*n*.25},0 + a${a},${a} 1 0,0 ${-1*n*.25},${-1*i*.15} + + a${a},${a} 1 0,0 ${-1*n*.1},${-1*i*.33} + a${a*.8},${a*.8} 1 0,0 0,${-1*i*.34} + a${a},${a} 1 0,0 ${n*.1},${-1*i*.33} + + H0 V0 Z`)},"bangBkg"),are=o(function(e,t,r){t.append("circle").attr("id","node-"+r.id).attr("class","node-bkg node-"+e.type2Str(r.type)).attr("r",r.width/2)},"circleBkg");o(sre,"insertPolygonShape");ore=o(function(e,t,r){let n=r.height,a=n/4,s=r.width-r.padding+2*a,l=[{x:a,y:0},{x:s-a,y:0},{x:s,y:-n/2},{x:s-a,y:-n},{x:a,y:-n},{x:0,y:-n/2}];sre(t,s,n,l,r)},"hexagonBkg"),lre=o(function(e,t,r){t.append("rect").attr("id","node-"+r.id).attr("class","node-bkg node-"+e.type2Str(r.type)).attr("height",r.height).attr("rx",r.padding).attr("ry",r.padding).attr("width",r.width)},"roundedRectBkg"),wyt=o(async function(e,t,r,n,i){let a=i.htmlLabels,s=n%(tre-1),l=t.append("g");r.section=s;let u="section-"+s;s<0&&(u+=" section-root"),l.attr("class",(r.class?r.class+" ":"")+"mindmap-node "+u);let h=l.append("g"),f=l.append("g"),d=r.descr.replace(/()/g,` +`);await ia(f,d,{useHtmlLabels:a,width:r.width,classes:"mindmap-node-label"},i),a||f.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle");let p=f.node().getBBox(),[m]=Tc(i.fontSize);if(r.height=p.height+m*1.1*.5+r.padding,r.width=p.width+2*r.padding,r.icon)if(r.type===e.nodeType.CIRCLE)r.height+=50,r.width+=50,l.append("foreignObject").attr("height","50px").attr("width",r.width).attr("style","text-align: center;").append("div").attr("class","icon-container").append("i").attr("class","node-icon-"+s+" "+r.icon),f.attr("transform","translate("+r.width/2+", "+(r.height/2-1.5*r.padding)+")");else{r.width+=50;let g=r.height;r.height=Math.max(g,60);let y=Math.abs(r.height-g);l.append("foreignObject").attr("width","60px").attr("height",r.height).attr("style","text-align: center;margin-top:"+y/2+"px;").append("div").attr("class","icon-container").append("i").attr("class","node-icon-"+s+" "+r.icon),f.attr("transform","translate("+(25+r.width/2)+", "+(y/2+r.padding/2)+")")}else if(a){let g=(r.width-p.width)/2,y=(r.height-p.height)/2;f.attr("transform","translate("+g+", "+y+")")}else{let g=r.width/2,y=r.padding/2;f.attr("transform","translate("+g+", "+y+")")}switch(r.type){case e.nodeType.DEFAULT:ere(e,h,r,s);break;case e.nodeType.ROUNDED_RECT:lre(e,h,r,s);break;case e.nodeType.RECT:rre(e,h,r,s);break;case e.nodeType.CIRCLE:h.attr("transform","translate("+r.width/2+", "+ +r.height/2+")"),are(e,h,r,s);break;case e.nodeType.CLOUD:nre(e,h,r,s);break;case e.nodeType.BANG:ire(e,h,r,s);break;case e.nodeType.HEXAGON:ore(e,h,r,s);break}return e.setElementForId(r.id,l),r.height},"drawNode"),Tyt=o(function(e,t){let r=e.getElementById(t.id),n=t.x||0,i=t.y||0;r.attr("transform","translate("+n+","+i+")")},"positionNode")});async function Cyt(e,t,r,n,i){await wyt(e,t,r,n,i),r.children&&await Promise.all(r.children.map((a,s)=>Cyt(e,t,a,n<0?s:n,i)))}function cre(e,t){t.edges().map((r,n)=>{let i=r.data();if(r[0]._private.bodyBounds){let a=r[0]._private.rscratch;V.trace("Edge: ",n,i),e.insert("path").attr("d",`M ${a.startX},${a.startY} L ${a.midX},${a.midY} L${a.endX},${a.endY} `).attr("class","edge section-edge-"+i.section+" edge-depth-"+i.depth)}})}function Syt(e,t,r,n){t.add({group:"nodes",data:{id:e.id.toString(),labelText:e.descr,height:e.height,width:e.width,level:n,nodeId:e.id,padding:e.padding,type:e.type},position:{x:e.x,y:e.y}}),e.children&&e.children.forEach(i=>{Syt(i,t,r,n+1),t.add({group:"edges",data:{id:`${e.id}_${i.id}`,source:e.id,target:i.id,depth:n,section:i.section}})})}function ure(e,t){return new Promise(r=>{let n=Gt("body").append("div").attr("id","cy").attr("style","display:none"),i=sl({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"bezier"}}]});n.remove(),Syt(e,i,t,0),i.nodes().forEach(function(a){a.layoutDimensions=()=>{let s=a.data();return{w:s.width,h:s.height}}}),i.layout({name:"cose-bilkent",quality:"proof",styleEnabled:!1,animate:!1}).run(),i.ready(a=>{V.info("Ready",a),r(i)})})}function hre(e,t){t.nodes().map((r,n)=>{let i=r.data();i.x=r.position().x,i.y=r.position().y,Tyt(e,i);let a=e.getElementById(i.nodeId);V.info("Id:",n,"Position: (",r.position().x,", ",r.position().y,")",i),a.attr("transform",`translate(${r.position().x-i.width/2}, ${r.position().y-i.height/2})`),a.attr("attr",`apa-${n})`)})}var Eyt,fre,Ayt,_yt=R(()=>{"use strict";_F();Eyt=Qi(byt(),1);ur();Ue();ce();xf();Jn();kyt();hl();sl.use(Eyt.default);o(Cyt,"drawNodes");o(cre,"drawEdges");o(Syt,"addNodes");o(ure,"layoutMindmap");o(hre,"positionNodes");fre=o(async(e,t,r,n)=>{V.debug(`Rendering mindmap diagram +`+e);let i=n.db,a=i.getMindmap();if(!a)return;let s=pt();s.htmlLabels=!1;let l=Vs(t),u=l.append("g");u.attr("class","mindmap-edges");let h=l.append("g");h.attr("class","mindmap-nodes"),await Cyt(i,h,a,-1,s);let f=await ure(a,s);cre(u,f),hre(i,f),No(void 0,l,s.mindmap?.padding??Er.mindmap.padding,s.mindmap?.useMaxWidth??Er.mindmap.useMaxWidth)},"draw"),Ayt={draw:fre}});var dre,pre,Lyt,Dyt=R(()=>{"use strict";ul();dre=o(e=>{let t="";for(let r=0;r` + `}return t},"genSections"),pre=o(e=>` .edge { stroke-width: 3; } - ${mUe(i)} + ${dre(e)} .section-root rect, .section-root path, .section-root circle, .section-root polygon { - fill: ${i.git0}; + fill: ${e.git0}; } .section-root text { - fill: ${i.gitBranchLabel0}; + fill: ${e.gitBranchLabel0}; } .icon-container { height:100%; @@ -1627,4 +1991,235 @@ Licensed under The MIT License (http://opensource.org/licenses/MIT) dominant-baseline: middle; text-align: center; } -`}},Symbol.toStringTag,{value:"Module"}));return P2}); +`,"getStyles"),Lyt=pre});var Ryt={};xr(Ryt,{diagram:()=>mre});var mre,Nyt=R(()=>{"use strict";ymt();bmt();_yt();Dyt();mre={db:xmt,renderer:Ayt,parser:gmt,styles:Lyt}});var IF,Pb,Oyt=R(()=>{"use strict";IF=function(){var e=o(function(l,u,h,f){for(h=h||{},f=l.length;f--;h[l[f]]=u);return h},"o"),t=[1,9],r=[1,10],n=[1,5,10,12],i={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:o(function(u,h,f,d,p,m,g){var y=m.length-1;switch(p){case 7:let v=d.findOrCreateNode(m[y-4].trim().replaceAll('""','"')),x=d.findOrCreateNode(m[y-2].trim().replaceAll('""','"')),b=parseFloat(m[y].trim());d.addLink(v,x,b);break;case 8:case 9:case 11:this.$=m[y];break;case 10:this.$=m[y-1];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:t,20:r},{1:[2,6],7:11,10:[1,12]},e(r,[2,4],{9:13,5:[1,14]}),{12:[1,15]},e(n,[2,8]),e(n,[2,9]),{19:[1,16]},e(n,[2,11]),{1:[2,1]},{1:[2,5]},e(r,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:t,20:r},{15:18,16:7,17:8,18:t,20:r},{18:[1,19]},e(r,[2,3]),{12:[1,20]},e(n,[2,10]),{15:21,16:7,17:8,18:t,20:r},e([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:o(function(u,h){if(h.recoverable)this.trace(u);else{var f=new Error(u);throw f.hash=h,f}},"parseError"),parse:o(function(u){var h=this,f=[0],d=[],p=[null],m=[],g=this.table,y="",v=0,x=0,b=0,w=2,S=1,T=m.slice.call(arguments,1),E=Object.create(this.lexer),_={yy:{}};for(var A in this.yy)Object.prototype.hasOwnProperty.call(this.yy,A)&&(_.yy[A]=this.yy[A]);E.setInput(u,_.yy),_.yy.lexer=E,_.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var L=E.yylloc;m.push(L);var M=E.options&&E.options.ranges;typeof _.yy.parseError=="function"?this.parseError=_.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function N(at){f.length=f.length-2*at,p.length=p.length-at,m.length=m.length-at}o(N,"popStack");function k(){var at;return at=d.pop()||E.lex()||S,typeof at!="number"&&(at instanceof Array&&(d=at,at=d.pop()),at=h.symbols_[at]||at),at}o(k,"lex");for(var I,C,O,D,P,F,B={},G,z,W,Q;;){if(O=f[f.length-1],this.defaultActions[O]?D=this.defaultActions[O]:((I===null||typeof I>"u")&&(I=k()),D=g[O]&&g[O][I]),typeof D>"u"||!D.length||!D[0]){var j="";Q=[];for(G in g[O])this.terminals_[G]&&G>w&&Q.push("'"+this.terminals_[G]+"'");E.showPosition?j="Parse error on line "+(v+1)+`: +`+E.showPosition()+` +Expecting `+Q.join(", ")+", got '"+(this.terminals_[I]||I)+"'":j="Parse error on line "+(v+1)+": Unexpected "+(I==S?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(j,{text:E.match,token:this.terminals_[I]||I,line:E.yylineno,loc:L,expected:Q})}if(D[0]instanceof Array&&D.length>1)throw new Error("Parse Error: multiple actions possible at state: "+O+", token: "+I);switch(D[0]){case 1:f.push(I),p.push(E.yytext),m.push(E.yylloc),f.push(D[1]),I=null,C?(I=C,C=null):(x=E.yyleng,y=E.yytext,v=E.yylineno,L=E.yylloc,b>0&&b--);break;case 2:if(z=this.productions_[D[1]][1],B.$=p[p.length-z],B._$={first_line:m[m.length-(z||1)].first_line,last_line:m[m.length-1].last_line,first_column:m[m.length-(z||1)].first_column,last_column:m[m.length-1].last_column},M&&(B._$.range=[m[m.length-(z||1)].range[0],m[m.length-1].range[1]]),F=this.performAction.apply(B,[y,x,v,_.yy,D[1],p,m].concat(T)),typeof F<"u")return F;z&&(f=f.slice(0,-1*z*2),p=p.slice(0,-1*z),m=m.slice(0,-1*z)),f.push(this.productions_[D[1]][0]),p.push(B.$),m.push(B._$),W=g[f[f.length-2]][f[f.length-1]],f.push(W);break;case 3:return!0}}return!0},"parse")},a=function(){var l={EOF:1,parseError:o(function(h,f){if(this.yy.parser)this.yy.parser.parseError(h,f);else throw new Error(h)},"parseError"),setInput:o(function(u,h){return this.yy=h||this.yy||{},this._input=u,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var u=this._input[0];this.yytext+=u,this.yyleng++,this.offset++,this.match+=u,this.matched+=u;var h=u.match(/(?:\r\n?|\n).*/g);return h?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),u},"input"),unput:o(function(u){var h=u.length,f=u.split(/(?:\r\n?|\n)/g);this._input=u+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-h),this.offset-=h;var d=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),f.length-1&&(this.yylineno-=f.length-1);var p=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:f?(f.length===d.length?this.yylloc.first_column:0)+d[d.length-f.length].length-f[0].length:this.yylloc.first_column-h},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-h]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(u){this.unput(this.match.slice(u))},"less"),pastInput:o(function(){var u=this.matched.substr(0,this.matched.length-this.match.length);return(u.length>20?"...":"")+u.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var u=this.match;return u.length<20&&(u+=this._input.substr(0,20-u.length)),(u.substr(0,20)+(u.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var u=this.pastInput(),h=new Array(u.length+1).join("-");return u+this.upcomingInput()+` +`+h+"^"},"showPosition"),test_match:o(function(u,h){var f,d,p;if(this.options.backtrack_lexer&&(p={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(p.yylloc.range=this.yylloc.range.slice(0))),d=u[0].match(/(?:\r\n?|\n).*/g),d&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+u[0].length},this.yytext+=u[0],this.match+=u[0],this.matches=u,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(u[0].length),this.matched+=u[0],f=this.performAction.call(this,this.yy,this,h,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),f)return f;if(this._backtrack){for(var m in p)this[m]=p[m];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var u,h,f,d;this._more||(this.yytext="",this.match="");for(var p=this._currentRules(),m=0;mh[0].length)){if(h=f,d=m,this.options.backtrack_lexer){if(u=this.test_match(f,p[m]),u!==!1)return u;if(this._backtrack){h=!1;continue}else return!1}else if(!this.options.flex)break}return h?(u=this.test_match(h,p[d]),u!==!1?u:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var h=this.next();return h||this.lex()},"lex"),begin:o(function(h){this.conditionStack.push(h)},"begin"),popState:o(function(){var h=this.conditionStack.length-1;return h>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(h){return h=this.conditionStack.length-1-Math.abs(h||0),h>=0?this.conditionStack[h]:"INITIAL"},"topState"),pushState:o(function(h){this.begin(h)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:o(function(h,f,d,p){var m=p;switch(d){case 0:return this.pushState("csv"),4;break;case 1:return 10;case 2:return 5;case 3:return 12;case 4:return this.pushState("escaped_text"),18;break;case 5:return 20;case 6:return this.popState("escaped_text"),18;break;case 7:return 19}},"anonymous"),rules:[/^(?:sankey-beta\b)/i,/^(?:$)/i,/^(?:((\u000D\u000A)|(\u000A)))/i,/^(?:(\u002C))/i,/^(?:(\u0022))/i,/^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i,/^(?:(\u0022)(?!(\u0022)))/i,/^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],conditions:{csv:{rules:[1,2,3,4,5,6,7],inclusive:!1},escaped_text:{rules:[6,7],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7],inclusive:!0}}};return l}();i.lexer=a;function s(){this.yy={}}return o(s,"Parser"),s.prototype=i,i.Parser=s,new s}();IF.parser=IF;Pb=IF});var YC,qC,WC,xre,OF,bre,PF,wre,Tre,kre,Ere,Pyt,Byt=R(()=>{"use strict";Ue();hr();Ci();YC=[],qC=[],WC=new Map,xre=o(()=>{YC=[],qC=[],WC=new Map,Ar()},"clear"),OF=class{constructor(t,r,n=0){this.source=t;this.target=r;this.value=n}static{o(this,"SankeyLink")}},bre=o((e,t,r)=>{YC.push(new OF(e,t,r))},"addLink"),PF=class{constructor(t){this.ID=t}static{o(this,"SankeyNode")}},wre=o(e=>{e=Yt.sanitizeText(e,pt());let t=WC.get(e);return t===void 0&&(t=new PF(e),WC.set(e,t),qC.push(t)),t},"findOrCreateNode"),Tre=o(()=>qC,"getNodes"),kre=o(()=>YC,"getLinks"),Ere=o(()=>({nodes:qC.map(e=>({id:e.ID})),links:YC.map(e=>({source:e.source.ID,target:e.target.ID,value:e.value}))}),"getGraph"),Pyt={nodesMap:WC,getConfig:o(()=>pt().sankey,"getConfig"),getNodes:Tre,getLinks:kre,getGraph:Ere,addLink:bre,findOrCreateNode:wre,getAccTitle:Br,setAccTitle:Mr,getAccDescription:zr,setAccDescription:Fr,getDiagramTitle:Jr,setDiagramTitle:cn,clear:xre}});function Bb(e,t){let r;if(t===void 0)for(let n of e)n!=null&&(r=n)&&(r=n);else{let n=-1;for(let i of e)(i=t(i,++n,e))!=null&&(r=i)&&(r=i)}return r}var Fyt=R(()=>{"use strict";o(Bb,"max")});function O1(e,t){let r;if(t===void 0)for(let n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);else{let n=-1;for(let i of e)(i=t(i,++n,e))!=null&&(r>i||r===void 0&&i>=i)&&(r=i)}return r}var zyt=R(()=>{"use strict";o(O1,"min")});function P1(e,t){let r=0;if(t===void 0)for(let n of e)(n=+n)&&(r+=n);else{let n=-1;for(let i of e)(i=+t(i,++n,e))&&(r+=i)}return r}var $yt=R(()=>{"use strict";o(P1,"sum")});var BF=R(()=>{"use strict";Fyt();zyt();$yt()});function Cre(e){return e.target.depth}function FF(e){return e.depth}function zF(e,t){return t-1-e.height}function Fb(e,t){return e.sourceLinks.length?e.depth:t-1}function $F(e){return e.targetLinks.length?e.depth:e.sourceLinks.length?O1(e.sourceLinks,Cre)-1:0}var GF=R(()=>{"use strict";BF();o(Cre,"targetDepth");o(FF,"left");o(zF,"right");o(Fb,"justify");o($F,"center")});function B1(e){return function(){return e}}var Gyt=R(()=>{"use strict";o(B1,"constant")});function Vyt(e,t){return XC(e.source,t.source)||e.index-t.index}function Uyt(e,t){return XC(e.target,t.target)||e.index-t.index}function XC(e,t){return e.y0-t.y0}function VF(e){return e.value}function Sre(e){return e.index}function Are(e){return e.nodes}function _re(e){return e.links}function Hyt(e,t){let r=e.get(t);if(!r)throw new Error("missing: "+t);return r}function Wyt({nodes:e}){for(let t of e){let r=t.y0,n=r;for(let i of t.sourceLinks)i.y0=r+i.width/2,r+=i.width;for(let i of t.targetLinks)i.y1=n+i.width/2,n+=i.width}}function jC(){let e=0,t=0,r=1,n=1,i=24,a=8,s,l=Sre,u=Fb,h,f,d=Are,p=_re,m=6;function g(){let O={nodes:d.apply(null,arguments),links:p.apply(null,arguments)};return y(O),v(O),x(O),b(O),T(O),Wyt(O),O}o(g,"sankey"),g.update=function(O){return Wyt(O),O},g.nodeId=function(O){return arguments.length?(l=typeof O=="function"?O:B1(O),g):l},g.nodeAlign=function(O){return arguments.length?(u=typeof O=="function"?O:B1(O),g):u},g.nodeSort=function(O){return arguments.length?(h=O,g):h},g.nodeWidth=function(O){return arguments.length?(i=+O,g):i},g.nodePadding=function(O){return arguments.length?(a=s=+O,g):a},g.nodes=function(O){return arguments.length?(d=typeof O=="function"?O:B1(O),g):d},g.links=function(O){return arguments.length?(p=typeof O=="function"?O:B1(O),g):p},g.linkSort=function(O){return arguments.length?(f=O,g):f},g.size=function(O){return arguments.length?(e=t=0,r=+O[0],n=+O[1],g):[r-e,n-t]},g.extent=function(O){return arguments.length?(e=+O[0][0],r=+O[1][0],t=+O[0][1],n=+O[1][1],g):[[e,t],[r,n]]},g.iterations=function(O){return arguments.length?(m=+O,g):m};function y({nodes:O,links:D}){for(let[F,B]of O.entries())B.index=F,B.sourceLinks=[],B.targetLinks=[];let P=new Map(O.map((F,B)=>[l(F,B,O),F]));for(let[F,B]of D.entries()){B.index=F;let{source:G,target:z}=B;typeof G!="object"&&(G=B.source=Hyt(P,G)),typeof z!="object"&&(z=B.target=Hyt(P,z)),G.sourceLinks.push(B),z.targetLinks.push(B)}if(f!=null)for(let{sourceLinks:F,targetLinks:B}of O)F.sort(f),B.sort(f)}o(y,"computeNodeLinks");function v({nodes:O}){for(let D of O)D.value=D.fixedValue===void 0?Math.max(P1(D.sourceLinks,VF),P1(D.targetLinks,VF)):D.fixedValue}o(v,"computeNodeValues");function x({nodes:O}){let D=O.length,P=new Set(O),F=new Set,B=0;for(;P.size;){for(let G of P){G.depth=B;for(let{target:z}of G.sourceLinks)F.add(z)}if(++B>D)throw new Error("circular link");P=F,F=new Set}}o(x,"computeNodeDepths");function b({nodes:O}){let D=O.length,P=new Set(O),F=new Set,B=0;for(;P.size;){for(let G of P){G.height=B;for(let{source:z}of G.targetLinks)F.add(z)}if(++B>D)throw new Error("circular link");P=F,F=new Set}}o(b,"computeNodeHeights");function w({nodes:O}){let D=Bb(O,B=>B.depth)+1,P=(r-e-i)/(D-1),F=new Array(D);for(let B of O){let G=Math.max(0,Math.min(D-1,Math.floor(u.call(null,B,D))));B.layer=G,B.x0=e+G*P,B.x1=B.x0+i,F[G]?F[G].push(B):F[G]=[B]}if(h)for(let B of F)B.sort(h);return F}o(w,"computeNodeLayers");function S(O){let D=O1(O,P=>(n-t-(P.length-1)*s)/P1(P,VF));for(let P of O){let F=t;for(let B of P){B.y0=F,B.y1=F+B.value*D,F=B.y1+s;for(let G of B.sourceLinks)G.width=G.value*D}F=(n-F+s)/(P.length+1);for(let B=0;BP.length)-1)),S(D);for(let P=0;P0))continue;let j=(W/Q-z.y0)*D;z.y0+=j,z.y1+=j,N(z)}h===void 0&&G.sort(XC),A(G,P)}}o(E,"relaxLeftToRight");function _(O,D,P){for(let F=O.length,B=F-2;B>=0;--B){let G=O[B];for(let z of G){let W=0,Q=0;for(let{target:at,value:X}of z.sourceLinks){let J=X*(at.layer-z.layer);W+=C(z,at)*J,Q+=J}if(!(Q>0))continue;let j=(W/Q-z.y0)*D;z.y0+=j,z.y1+=j,N(z)}h===void 0&&G.sort(XC),A(G,P)}}o(_,"relaxRightToLeft");function A(O,D){let P=O.length>>1,F=O[P];M(O,F.y0-s,P-1,D),L(O,F.y1+s,P+1,D),M(O,n,O.length-1,D),L(O,t,0,D)}o(A,"resolveCollisions");function L(O,D,P,F){for(;P1e-6&&(B.y0+=G,B.y1+=G),D=B.y1+s}}o(L,"resolveCollisionsTopToBottom");function M(O,D,P,F){for(;P>=0;--P){let B=O[P],G=(B.y1-D)*F;G>1e-6&&(B.y0-=G,B.y1-=G),D=B.y0-s}}o(M,"resolveCollisionsBottomToTop");function N({sourceLinks:O,targetLinks:D}){if(f===void 0){for(let{source:{sourceLinks:P}}of D)P.sort(Uyt);for(let{target:{targetLinks:P}}of O)P.sort(Vyt)}}o(N,"reorderNodeLinks");function k(O){if(f===void 0)for(let{sourceLinks:D,targetLinks:P}of O)D.sort(Uyt),P.sort(Vyt)}o(k,"reorderLinks");function I(O,D){let P=O.y0-(O.sourceLinks.length-1)*s/2;for(let{target:F,width:B}of O.sourceLinks){if(F===D)break;P+=B+s}for(let{source:F,width:B}of D.targetLinks){if(F===O)break;P-=B}return P}o(I,"targetTop");function C(O,D){let P=D.y0-(D.targetLinks.length-1)*s/2;for(let{source:F,width:B}of D.targetLinks){if(F===O)break;P+=B+s}for(let{target:F,width:B}of O.sourceLinks){if(F===D)break;P-=B}return P}return o(C,"sourceTop"),g}var Yyt=R(()=>{"use strict";BF();GF();Gyt();o(Vyt,"ascendingSourceBreadth");o(Uyt,"ascendingTargetBreadth");o(XC,"ascendingBreadth");o(VF,"value");o(Sre,"defaultId");o(Are,"defaultNodes");o(_re,"defaultLinks");o(Hyt,"find");o(Wyt,"computeLinkBreadths");o(jC,"Sankey")});function WF(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function qyt(){return new WF}var UF,HF,ip,Lre,YF,Xyt=R(()=>{"use strict";UF=Math.PI,HF=2*UF,ip=1e-6,Lre=HF-ip;o(WF,"Path");o(qyt,"path");WF.prototype=qyt.prototype={constructor:WF,moveTo:o(function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},"moveTo"),closePath:o(function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},"closePath"),lineTo:o(function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},"lineTo"),quadraticCurveTo:o(function(e,t,r,n){this._+="Q"+ +e+","+ +t+","+(this._x1=+r)+","+(this._y1=+n)},"quadraticCurveTo"),bezierCurveTo:o(function(e,t,r,n,i,a){this._+="C"+ +e+","+ +t+","+ +r+","+ +n+","+(this._x1=+i)+","+(this._y1=+a)},"bezierCurveTo"),arcTo:o(function(e,t,r,n,i){e=+e,t=+t,r=+r,n=+n,i=+i;var a=this._x1,s=this._y1,l=r-e,u=n-t,h=a-e,f=s-t,d=h*h+f*f;if(i<0)throw new Error("negative radius: "+i);if(this._x1===null)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(d>ip)if(!(Math.abs(f*l-u*h)>ip)||!i)this._+="L"+(this._x1=e)+","+(this._y1=t);else{var p=r-a,m=n-s,g=l*l+u*u,y=p*p+m*m,v=Math.sqrt(g),x=Math.sqrt(d),b=i*Math.tan((UF-Math.acos((g+d-y)/(2*v*x)))/2),w=b/x,S=b/v;Math.abs(w-1)>ip&&(this._+="L"+(e+w*h)+","+(t+w*f)),this._+="A"+i+","+i+",0,0,"+ +(f*p>h*m)+","+(this._x1=e+S*l)+","+(this._y1=t+S*u)}},"arcTo"),arc:o(function(e,t,r,n,i,a){e=+e,t=+t,r=+r,a=!!a;var s=r*Math.cos(n),l=r*Math.sin(n),u=e+s,h=t+l,f=1^a,d=a?n-i:i-n;if(r<0)throw new Error("negative radius: "+r);this._x1===null?this._+="M"+u+","+h:(Math.abs(this._x1-u)>ip||Math.abs(this._y1-h)>ip)&&(this._+="L"+u+","+h),r&&(d<0&&(d=d%HF+HF),d>Lre?this._+="A"+r+","+r+",0,1,"+f+","+(e-s)+","+(t-l)+"A"+r+","+r+",0,1,"+f+","+(this._x1=u)+","+(this._y1=h):d>ip&&(this._+="A"+r+","+r+",0,"+ +(d>=UF)+","+f+","+(this._x1=e+r*Math.cos(i))+","+(this._y1=t+r*Math.sin(i))))},"arc"),rect:o(function(e,t,r,n){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +r+"v"+ +n+"h"+-r+"Z"},"rect"),toString:o(function(){return this._},"toString")};YF=qyt});var jyt=R(()=>{"use strict";Xyt()});function KC(e){return o(function(){return e},"constant")}var Kyt=R(()=>{"use strict";o(KC,"default")});function Qyt(e){return e[0]}function Zyt(e){return e[1]}var Jyt=R(()=>{"use strict";o(Qyt,"x");o(Zyt,"y")});var tvt,evt=R(()=>{"use strict";tvt=Array.prototype.slice});function Dre(e){return e.source}function Rre(e){return e.target}function Nre(e){var t=Dre,r=Rre,n=Qyt,i=Zyt,a=null;function s(){var l,u=tvt.call(arguments),h=t.apply(this,u),f=r.apply(this,u);if(a||(a=l=YF()),e(a,+n.apply(this,(u[0]=h,u)),+i.apply(this,u),+n.apply(this,(u[0]=f,u)),+i.apply(this,u)),l)return a=null,l+""||null}return o(s,"link"),s.source=function(l){return arguments.length?(t=l,s):t},s.target=function(l){return arguments.length?(r=l,s):r},s.x=function(l){return arguments.length?(n=typeof l=="function"?l:KC(+l),s):n},s.y=function(l){return arguments.length?(i=typeof l=="function"?l:KC(+l),s):i},s.context=function(l){return arguments.length?(a=l??null,s):a},s}function Mre(e,t,r,n,i){e.moveTo(t,r),e.bezierCurveTo(t=(t+n)/2,r,t,i,n,i)}function qF(){return Nre(Mre)}var rvt=R(()=>{"use strict";jyt();evt();Kyt();Jyt();o(Dre,"linkSource");o(Rre,"linkTarget");o(Nre,"link");o(Mre,"curveHorizontal");o(qF,"linkHorizontal")});var nvt=R(()=>{"use strict";rvt()});function Ire(e){return[e.source.x1,e.y0]}function Ore(e){return[e.target.x0,e.y1]}function QC(){return qF().source(Ire).target(Ore)}var ivt=R(()=>{"use strict";nvt();o(Ire,"horizontalSource");o(Ore,"horizontalTarget");o(QC,"default")});var avt=R(()=>{"use strict";Yyt();GF();ivt()});var zb,svt=R(()=>{"use strict";zb=class e{static{o(this,"Uid")}static{this.count=0}static next(t){return new e(t+ ++e.count)}constructor(t){this.id=t,this.href=`#${t}`}toString(){return"url("+this.href+")"}}});var Pre,Bre,ovt,lvt=R(()=>{"use strict";Ue();ur();avt();Jn();svt();Pre={left:FF,right:zF,center:$F,justify:Fb},Bre=o(function(e,t,r,n){let{securityLevel:i,sankey:a}=pt(),s=X4.sankey,l;i==="sandbox"&&(l=Gt("#i"+t));let u=i==="sandbox"?Gt(l.nodes()[0].contentDocument.body):Gt("body"),h=i==="sandbox"?u.select(`[id="${t}"]`):Gt(`[id="${t}"]`),f=a?.width??s.width,d=a?.height??s.width,p=a?.useMaxWidth??s.useMaxWidth,m=a?.nodeAlignment??s.nodeAlignment,g=a?.prefix??s.prefix,y=a?.suffix??s.suffix,v=a?.showValues??s.showValues,x=n.db.getGraph(),b=Pre[m];jC().nodeId(M=>M.id).nodeWidth(10).nodePadding(10+(v?15:0)).nodeAlign(b).extent([[0,0],[f,d]])(x);let T=bu(z_);h.append("g").attr("class","nodes").selectAll(".node").data(x.nodes).join("g").attr("class","node").attr("id",M=>(M.uid=zb.next("node-")).id).attr("transform",function(M){return"translate("+M.x0+","+M.y0+")"}).attr("x",M=>M.x0).attr("y",M=>M.y0).append("rect").attr("height",M=>M.y1-M.y0).attr("width",M=>M.x1-M.x0).attr("fill",M=>T(M.id));let E=o(({id:M,value:N})=>v?`${M} +${g}${Math.round(N*100)/100}${y}`:M,"getText");h.append("g").attr("class","node-labels").attr("font-family","sans-serif").attr("font-size",14).selectAll("text").data(x.nodes).join("text").attr("x",M=>M.x0(M.y1+M.y0)/2).attr("dy",`${v?"0":"0.35"}em`).attr("text-anchor",M=>M.x0(N.uid=zb.next("linearGradient-")).id).attr("gradientUnits","userSpaceOnUse").attr("x1",N=>N.source.x1).attr("x2",N=>N.target.x0);M.append("stop").attr("offset","0%").attr("stop-color",N=>T(N.source.id)),M.append("stop").attr("offset","100%").attr("stop-color",N=>T(N.target.id))}let L;switch(A){case"gradient":L=o(M=>M.uid,"coloring");break;case"source":L=o(M=>T(M.source.id),"coloring");break;case"target":L=o(M=>T(M.target.id),"coloring");break;default:L=A}_.append("path").attr("d",QC()).attr("stroke",L).attr("stroke-width",M=>Math.max(1,M.width)),No(void 0,h,0,p)},"draw"),ovt={draw:Bre}});var cvt,uvt=R(()=>{"use strict";cvt=o(e=>e.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,"").replaceAll(/([\n\r])+/g,` +`).trim(),"prepareTextForParsing")});var hvt={};xr(hvt,{diagram:()=>zre});var Fre,zre,fvt=R(()=>{"use strict";Oyt();Byt();lvt();uvt();Fre=Pb.parse.bind(Pb);Pb.parse=e=>Fre(cvt(e));zre={parser:Pb,db:Pyt,renderer:ovt}});var mvt,XF,Ure,Hre,Wre,Yre,qre,Ff,jF=R(()=>{"use strict";js();hl();_r();Ci();mvt={packet:[]},XF=structuredClone(mvt),Ure=Er.packet,Hre=o(()=>{let e=Ss({...Ure,...Nr().packet});return e.showBits&&(e.paddingY+=10),e},"getConfig"),Wre=o(()=>XF.packet,"getPacket"),Yre=o(e=>{e.length>0&&XF.packet.push(e)},"pushWord"),qre=o(()=>{Ar(),XF=structuredClone(mvt)},"clear"),Ff={pushWord:Yre,getPacket:Wre,getConfig:Hre,clear:qre,setAccTitle:Mr,getAccTitle:Br,setDiagramTitle:cn,getDiagramTitle:Jr,getAccDescription:zr,setAccDescription:Fr}});var Xre,jre,Kre,gvt,yvt=R(()=>{"use strict";Hg();ce();Dx();jF();Xre=1e4,jre=o(e=>{pf(e,Ff);let t=-1,r=[],n=1,{bitsPerRow:i}=Ff.getConfig();for(let{start:a,end:s,label:l}of e.blocks){if(s&&s{if(e.end===void 0&&(e.end=e.start),e.start>e.end)throw new Error(`Block start ${e.start} is greater than block end ${e.end}.`);return e.end+1<=t*r?[e,void 0]:[{start:e.start,end:t*r-1,label:e.label},{start:t*r,end:e.end,label:e.label}]},"getNextFittingBlock"),gvt={parse:o(async e=>{let t=await Ul("packet",e);V.debug(t),jre(t)},"parse")}});var Qre,Zre,vvt,xvt=R(()=>{"use strict";xf();Jn();Qre=o((e,t,r,n)=>{let i=n.db,a=i.getConfig(),{rowHeight:s,paddingY:l,bitWidth:u,bitsPerRow:h}=a,f=i.getPacket(),d=i.getDiagramTitle(),p=s+l,m=p*(f.length+1)-(d?0:s),g=u*h+2,y=Vs(t);y.attr("viewbox",`0 0 ${g} ${m}`),Pr(y,m,g,a.useMaxWidth);for(let[v,x]of f.entries())Zre(y,x,v,a);y.append("text").text(d).attr("x",g/2).attr("y",m-p/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),Zre=o((e,t,r,{rowHeight:n,paddingX:i,paddingY:a,bitWidth:s,bitsPerRow:l,showBits:u})=>{let h=e.append("g"),f=r*(n+a)+a;for(let d of t){let p=d.start%l*s+1,m=(d.end-d.start+1)*s-i;if(h.append("rect").attr("x",p).attr("y",f).attr("width",m).attr("height",n).attr("class","packetBlock"),h.append("text").attr("x",p+m/2).attr("y",f+n/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(d.label),!u)continue;let g=d.end===d.start,y=f-2;h.append("text").attr("x",p+(g?m/2:0)).attr("y",y).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",g?"middle":"start").text(d.start),g||h.append("text").attr("x",p+m).attr("y",y).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(d.end)}},"drawWord"),vvt={draw:Qre}});var Jre,bvt,wvt=R(()=>{"use strict";_r();Jre={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},bvt=o(({packet:e}={})=>{let t=Ss(Jre,e);return` + .packetByte { + font-size: ${t.byteFontSize}; + } + .packetByte.start { + fill: ${t.startByteColor}; + } + .packetByte.end { + fill: ${t.endByteColor}; + } + .packetLabel { + fill: ${t.labelColor}; + font-size: ${t.labelFontSize}; + } + .packetTitle { + fill: ${t.titleColor}; + font-size: ${t.titleFontSize}; + } + .packetBlock { + stroke: ${t.blockStrokeColor}; + stroke-width: ${t.blockStrokeWidth}; + fill: ${t.blockFillColor}; + } + `},"styles")});var Tvt={};xr(Tvt,{diagram:()=>tne});var tne,kvt=R(()=>{"use strict";jF();yvt();xvt();wvt();tne={parser:gvt,db:Ff,renderer:vvt,styles:bvt}});var KF,Svt,Avt=R(()=>{"use strict";KF=function(){var e=o(function(w,S,T,E){for(T=T||{},E=w.length;E--;T[w[E]]=S);return T},"o"),t=[1,7],r=[1,13],n=[1,14],i=[1,15],a=[1,19],s=[1,16],l=[1,17],u=[1,18],h=[8,30],f=[8,21,28,29,30,31,32,40,44,47],d=[1,23],p=[1,24],m=[8,15,16,21,28,29,30,31,32,40,44,47],g=[8,15,16,21,27,28,29,30,31,32,40,44,47],y=[1,49],v={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,block:31,NODE_ID:32,nodeShapeNLabel:33,dirList:34,DIR:35,NODE_DSTART:36,NODE_DEND:37,BLOCK_ARROW_START:38,BLOCK_ARROW_END:39,classDef:40,CLASSDEF_ID:41,CLASSDEF_STYLEOPTS:42,DEFAULT:43,class:44,CLASSENTITY_IDS:45,STYLECLASS:46,style:47,STYLE_ENTITY_IDS:48,STYLE_DEFINITION_DATA:49,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"block",32:"NODE_ID",35:"DIR",36:"NODE_DSTART",37:"NODE_DEND",38:"BLOCK_ARROW_START",39:"BLOCK_ARROW_END",40:"classDef",41:"CLASSDEF_ID",42:"CLASSDEF_STYLEOPTS",43:"DEFAULT",44:"class",45:"CLASSENTITY_IDS",46:"STYLECLASS",47:"style",48:"STYLE_ENTITY_IDS",49:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[34,1],[34,2],[33,3],[33,4],[23,3],[23,3],[24,3],[25,3]],performAction:o(function(S,T,E,_,A,L,M){var N=L.length-1;switch(A){case 4:_.getLogger().debug("Rule: separator (NL) ");break;case 5:_.getLogger().debug("Rule: separator (Space) ");break;case 6:_.getLogger().debug("Rule: separator (EOF) ");break;case 7:_.getLogger().debug("Rule: hierarchy: ",L[N-1]),_.setHierarchy(L[N-1]);break;case 8:_.getLogger().debug("Stop NL ");break;case 9:_.getLogger().debug("Stop EOF ");break;case 10:_.getLogger().debug("Stop NL2 ");break;case 11:_.getLogger().debug("Stop EOF2 ");break;case 12:_.getLogger().debug("Rule: statement: ",L[N]),typeof L[N].length=="number"?this.$=L[N]:this.$=[L[N]];break;case 13:_.getLogger().debug("Rule: statement #2: ",L[N-1]),this.$=[L[N-1]].concat(L[N]);break;case 14:_.getLogger().debug("Rule: link: ",L[N],S),this.$={edgeTypeStr:L[N],label:""};break;case 15:_.getLogger().debug("Rule: LABEL link: ",L[N-3],L[N-1],L[N]),this.$={edgeTypeStr:L[N],label:L[N-1]};break;case 18:let k=parseInt(L[N]),I=_.generateId();this.$={id:I,type:"space",label:"",width:k,children:[]};break;case 23:_.getLogger().debug("Rule: (nodeStatement link node) ",L[N-2],L[N-1],L[N]," typestr: ",L[N-1].edgeTypeStr);let C=_.edgeStrToEdgeData(L[N-1].edgeTypeStr);this.$=[{id:L[N-2].id,label:L[N-2].label,type:L[N-2].type,directions:L[N-2].directions},{id:L[N-2].id+"-"+L[N].id,start:L[N-2].id,end:L[N].id,label:L[N-1].label,type:"edge",directions:L[N].directions,arrowTypeEnd:C,arrowTypeStart:"arrow_open"},{id:L[N].id,label:L[N].label,type:_.typeStr2Type(L[N].typeStr),directions:L[N].directions}];break;case 24:_.getLogger().debug("Rule: nodeStatement (abc88 node size) ",L[N-1],L[N]),this.$={id:L[N-1].id,label:L[N-1].label,type:_.typeStr2Type(L[N-1].typeStr),directions:L[N-1].directions,widthInColumns:parseInt(L[N],10)};break;case 25:_.getLogger().debug("Rule: nodeStatement (node) ",L[N]),this.$={id:L[N].id,label:L[N].label,type:_.typeStr2Type(L[N].typeStr),directions:L[N].directions,widthInColumns:1};break;case 26:_.getLogger().debug("APA123",this?this:"na"),_.getLogger().debug("COLUMNS: ",L[N]),this.$={type:"column-setting",columns:L[N]==="auto"?-1:parseInt(L[N])};break;case 27:_.getLogger().debug("Rule: id-block statement : ",L[N-2],L[N-1]);let O=_.generateId();this.$={...L[N-2],type:"composite",children:L[N-1]};break;case 28:_.getLogger().debug("Rule: blockStatement : ",L[N-2],L[N-1],L[N]);let D=_.generateId();this.$={id:D,type:"composite",label:"",children:L[N-1]};break;case 29:_.getLogger().debug("Rule: node (NODE_ID separator): ",L[N]),this.$={id:L[N]};break;case 30:_.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",L[N-1],L[N]),this.$={id:L[N-1],label:L[N].label,typeStr:L[N].typeStr,directions:L[N].directions};break;case 31:_.getLogger().debug("Rule: dirList: ",L[N]),this.$=[L[N]];break;case 32:_.getLogger().debug("Rule: dirList: ",L[N-1],L[N]),this.$=[L[N-1]].concat(L[N]);break;case 33:_.getLogger().debug("Rule: nodeShapeNLabel: ",L[N-2],L[N-1],L[N]),this.$={typeStr:L[N-2]+L[N],label:L[N-1]};break;case 34:_.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",L[N-3],L[N-2]," #3:",L[N-1],L[N]),this.$={typeStr:L[N-3]+L[N],label:L[N-2],directions:L[N-1]};break;case 35:case 36:this.$={type:"classDef",id:L[N-1].trim(),css:L[N].trim()};break;case 37:this.$={type:"applyClass",id:L[N-1].trim(),styleClass:L[N].trim()};break;case 38:this.$={type:"applyStyles",id:L[N-1].trim(),stylesStr:L[N].trim()};break}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{11:3,13:4,19:5,20:6,21:t,22:8,23:9,24:10,25:11,26:12,28:r,29:n,31:i,32:a,40:s,44:l,47:u},{8:[1,20]},e(h,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,21:t,28:r,29:n,31:i,32:a,40:s,44:l,47:u}),e(f,[2,16],{14:22,15:d,16:p}),e(f,[2,17]),e(f,[2,18]),e(f,[2,19]),e(f,[2,20]),e(f,[2,21]),e(f,[2,22]),e(m,[2,25],{27:[1,25]}),e(f,[2,26]),{19:26,26:12,32:a},{11:27,13:4,19:5,20:6,21:t,22:8,23:9,24:10,25:11,26:12,28:r,29:n,31:i,32:a,40:s,44:l,47:u},{41:[1,28],43:[1,29]},{45:[1,30]},{48:[1,31]},e(g,[2,29],{33:32,36:[1,33],38:[1,34]}),{1:[2,7]},e(h,[2,13]),{26:35,32:a},{32:[2,14]},{17:[1,36]},e(m,[2,24]),{11:37,13:4,14:22,15:d,16:p,19:5,20:6,21:t,22:8,23:9,24:10,25:11,26:12,28:r,29:n,31:i,32:a,40:s,44:l,47:u},{30:[1,38]},{42:[1,39]},{42:[1,40]},{46:[1,41]},{49:[1,42]},e(g,[2,30]),{18:[1,43]},{18:[1,44]},e(m,[2,23]),{18:[1,45]},{30:[1,46]},e(f,[2,28]),e(f,[2,35]),e(f,[2,36]),e(f,[2,37]),e(f,[2,38]),{37:[1,47]},{34:48,35:y},{15:[1,50]},e(f,[2,27]),e(g,[2,33]),{39:[1,51]},{34:52,35:y,39:[2,31]},{32:[2,15]},e(g,[2,34]),{39:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:o(function(S,T){if(T.recoverable)this.trace(S);else{var E=new Error(S);throw E.hash=T,E}},"parseError"),parse:o(function(S){var T=this,E=[0],_=[],A=[null],L=[],M=this.table,N="",k=0,I=0,C=0,O=2,D=1,P=L.slice.call(arguments,1),F=Object.create(this.lexer),B={yy:{}};for(var G in this.yy)Object.prototype.hasOwnProperty.call(this.yy,G)&&(B.yy[G]=this.yy[G]);F.setInput(S,B.yy),B.yy.lexer=F,B.yy.parser=this,typeof F.yylloc>"u"&&(F.yylloc={});var z=F.yylloc;L.push(z);var W=F.options&&F.options.ranges;typeof B.yy.parseError=="function"?this.parseError=B.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Q(it){E.length=E.length-2*it,A.length=A.length-it,L.length=L.length-it}o(Q,"popStack");function j(){var it;return it=_.pop()||F.lex()||D,typeof it!="number"&&(it instanceof Array&&(_=it,it=_.pop()),it=T.symbols_[it]||it),it}o(j,"lex");for(var at,X,J,Z,H,q,K={},ot,ct,ut,et;;){if(J=E[E.length-1],this.defaultActions[J]?Z=this.defaultActions[J]:((at===null||typeof at>"u")&&(at=j()),Z=M[J]&&M[J][at]),typeof Z>"u"||!Z.length||!Z[0]){var Mt="";et=[];for(ot in M[J])this.terminals_[ot]&&ot>O&&et.push("'"+this.terminals_[ot]+"'");F.showPosition?Mt="Parse error on line "+(k+1)+`: +`+F.showPosition()+` +Expecting `+et.join(", ")+", got '"+(this.terminals_[at]||at)+"'":Mt="Parse error on line "+(k+1)+": Unexpected "+(at==D?"end of input":"'"+(this.terminals_[at]||at)+"'"),this.parseError(Mt,{text:F.match,token:this.terminals_[at]||at,line:F.yylineno,loc:z,expected:et})}if(Z[0]instanceof Array&&Z.length>1)throw new Error("Parse Error: multiple actions possible at state: "+J+", token: "+at);switch(Z[0]){case 1:E.push(at),A.push(F.yytext),L.push(F.yylloc),E.push(Z[1]),at=null,X?(at=X,X=null):(I=F.yyleng,N=F.yytext,k=F.yylineno,z=F.yylloc,C>0&&C--);break;case 2:if(ct=this.productions_[Z[1]][1],K.$=A[A.length-ct],K._$={first_line:L[L.length-(ct||1)].first_line,last_line:L[L.length-1].last_line,first_column:L[L.length-(ct||1)].first_column,last_column:L[L.length-1].last_column},W&&(K._$.range=[L[L.length-(ct||1)].range[0],L[L.length-1].range[1]]),q=this.performAction.apply(K,[N,I,k,B.yy,Z[1],A,L].concat(P)),typeof q<"u")return q;ct&&(E=E.slice(0,-1*ct*2),A=A.slice(0,-1*ct),L=L.slice(0,-1*ct)),E.push(this.productions_[Z[1]][0]),A.push(K.$),L.push(K._$),ut=M[E[E.length-2]][E[E.length-1]],E.push(ut);break;case 3:return!0}}return!0},"parse")},x=function(){var w={EOF:1,parseError:o(function(T,E){if(this.yy.parser)this.yy.parser.parseError(T,E);else throw new Error(T)},"parseError"),setInput:o(function(S,T){return this.yy=T||this.yy||{},this._input=S,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var S=this._input[0];this.yytext+=S,this.yyleng++,this.offset++,this.match+=S,this.matched+=S;var T=S.match(/(?:\r\n?|\n).*/g);return T?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),S},"input"),unput:o(function(S){var T=S.length,E=S.split(/(?:\r\n?|\n)/g);this._input=S+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-T),this.offset-=T;var _=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),E.length-1&&(this.yylineno-=E.length-1);var A=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:E?(E.length===_.length?this.yylloc.first_column:0)+_[_.length-E.length].length-E[0].length:this.yylloc.first_column-T},this.options.ranges&&(this.yylloc.range=[A[0],A[0]+this.yyleng-T]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(S){this.unput(this.match.slice(S))},"less"),pastInput:o(function(){var S=this.matched.substr(0,this.matched.length-this.match.length);return(S.length>20?"...":"")+S.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var S=this.match;return S.length<20&&(S+=this._input.substr(0,20-S.length)),(S.substr(0,20)+(S.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var S=this.pastInput(),T=new Array(S.length+1).join("-");return S+this.upcomingInput()+` +`+T+"^"},"showPosition"),test_match:o(function(S,T){var E,_,A;if(this.options.backtrack_lexer&&(A={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(A.yylloc.range=this.yylloc.range.slice(0))),_=S[0].match(/(?:\r\n?|\n).*/g),_&&(this.yylineno+=_.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:_?_[_.length-1].length-_[_.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+S[0].length},this.yytext+=S[0],this.match+=S[0],this.matches=S,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(S[0].length),this.matched+=S[0],E=this.performAction.call(this,this.yy,this,T,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),E)return E;if(this._backtrack){for(var L in A)this[L]=A[L];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var S,T,E,_;this._more||(this.yytext="",this.match="");for(var A=this._currentRules(),L=0;LT[0].length)){if(T=E,_=L,this.options.backtrack_lexer){if(S=this.test_match(E,A[L]),S!==!1)return S;if(this._backtrack){T=!1;continue}else return!1}else if(!this.options.flex)break}return T?(S=this.test_match(T,A[_]),S!==!1?S:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var T=this.next();return T||this.lex()},"lex"),begin:o(function(T){this.conditionStack.push(T)},"begin"),popState:o(function(){var T=this.conditionStack.length-1;return T>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(T){return T=this.conditionStack.length-1-Math.abs(T||0),T>=0?this.conditionStack[T]:"INITIAL"},"topState"),pushState:o(function(T){this.begin(T)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:o(function(T,E,_,A){var L=A;switch(_){case 0:return 10;case 1:return T.getLogger().debug("Found space-block"),31;break;case 2:return T.getLogger().debug("Found nl-block"),31;break;case 3:return T.getLogger().debug("Found space-block"),29;break;case 4:T.getLogger().debug(".",E.yytext);break;case 5:T.getLogger().debug("_",E.yytext);break;case 6:return 5;case 7:return E.yytext=-1,28;break;case 8:return E.yytext=E.yytext.replace(/columns\s+/,""),T.getLogger().debug("COLUMNS (LEX)",E.yytext),28;break;case 9:this.pushState("md_string");break;case 10:return"MD_STR";case 11:this.popState();break;case 12:this.pushState("string");break;case 13:T.getLogger().debug("LEX: POPPING STR:",E.yytext),this.popState();break;case 14:return T.getLogger().debug("LEX: STR end:",E.yytext),"STR";break;case 15:return E.yytext=E.yytext.replace(/space\:/,""),T.getLogger().debug("SPACE NUM (LEX)",E.yytext),21;break;case 16:return E.yytext="1",T.getLogger().debug("COLUMNS (LEX)",E.yytext),21;break;case 17:return 43;case 18:return"LINKSTYLE";case 19:return"INTERPOLATE";case 20:return this.pushState("CLASSDEF"),40;break;case 21:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";break;case 22:return this.popState(),this.pushState("CLASSDEFID"),41;break;case 23:return this.popState(),42;break;case 24:return this.pushState("CLASS"),44;break;case 25:return this.popState(),this.pushState("CLASS_STYLE"),45;break;case 26:return this.popState(),46;break;case 27:return this.pushState("STYLE_STMNT"),47;break;case 28:return this.popState(),this.pushState("STYLE_DEFINITION"),48;break;case 29:return this.popState(),49;break;case 30:return this.pushState("acc_title"),"acc_title";break;case 31:return this.popState(),"acc_title_value";break;case 32:return this.pushState("acc_descr"),"acc_descr";break;case 33:return this.popState(),"acc_descr_value";break;case 34:this.pushState("acc_descr_multiline");break;case 35:this.popState();break;case 36:return"acc_descr_multiline_value";case 37:return 30;case 38:return this.popState(),T.getLogger().debug("Lex: (("),"NODE_DEND";break;case 39:return this.popState(),T.getLogger().debug("Lex: (("),"NODE_DEND";break;case 40:return this.popState(),T.getLogger().debug("Lex: ))"),"NODE_DEND";break;case 41:return this.popState(),T.getLogger().debug("Lex: (("),"NODE_DEND";break;case 42:return this.popState(),T.getLogger().debug("Lex: (("),"NODE_DEND";break;case 43:return this.popState(),T.getLogger().debug("Lex: (-"),"NODE_DEND";break;case 44:return this.popState(),T.getLogger().debug("Lex: -)"),"NODE_DEND";break;case 45:return this.popState(),T.getLogger().debug("Lex: (("),"NODE_DEND";break;case 46:return this.popState(),T.getLogger().debug("Lex: ]]"),"NODE_DEND";break;case 47:return this.popState(),T.getLogger().debug("Lex: ("),"NODE_DEND";break;case 48:return this.popState(),T.getLogger().debug("Lex: ])"),"NODE_DEND";break;case 49:return this.popState(),T.getLogger().debug("Lex: /]"),"NODE_DEND";break;case 50:return this.popState(),T.getLogger().debug("Lex: /]"),"NODE_DEND";break;case 51:return this.popState(),T.getLogger().debug("Lex: )]"),"NODE_DEND";break;case 52:return this.popState(),T.getLogger().debug("Lex: )"),"NODE_DEND";break;case 53:return this.popState(),T.getLogger().debug("Lex: ]>"),"NODE_DEND";break;case 54:return this.popState(),T.getLogger().debug("Lex: ]"),"NODE_DEND";break;case 55:return T.getLogger().debug("Lexa: -)"),this.pushState("NODE"),36;break;case 56:return T.getLogger().debug("Lexa: (-"),this.pushState("NODE"),36;break;case 57:return T.getLogger().debug("Lexa: ))"),this.pushState("NODE"),36;break;case 58:return T.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;break;case 59:return T.getLogger().debug("Lex: ((("),this.pushState("NODE"),36;break;case 60:return T.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;break;case 61:return T.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;break;case 62:return T.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;break;case 63:return T.getLogger().debug("Lexc: >"),this.pushState("NODE"),36;break;case 64:return T.getLogger().debug("Lexa: (["),this.pushState("NODE"),36;break;case 65:return T.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;break;case 66:return this.pushState("NODE"),36;break;case 67:return this.pushState("NODE"),36;break;case 68:return this.pushState("NODE"),36;break;case 69:return this.pushState("NODE"),36;break;case 70:return this.pushState("NODE"),36;break;case 71:return this.pushState("NODE"),36;break;case 72:return this.pushState("NODE"),36;break;case 73:return T.getLogger().debug("Lexa: ["),this.pushState("NODE"),36;break;case 74:return this.pushState("BLOCK_ARROW"),T.getLogger().debug("LEX ARR START"),38;break;case 75:return T.getLogger().debug("Lex: NODE_ID",E.yytext),32;break;case 76:return T.getLogger().debug("Lex: EOF",E.yytext),8;break;case 77:this.pushState("md_string");break;case 78:this.pushState("md_string");break;case 79:return"NODE_DESCR";case 80:this.popState();break;case 81:T.getLogger().debug("Lex: Starting string"),this.pushState("string");break;case 82:T.getLogger().debug("LEX ARR: Starting string"),this.pushState("string");break;case 83:return T.getLogger().debug("LEX: NODE_DESCR:",E.yytext),"NODE_DESCR";break;case 84:T.getLogger().debug("LEX POPPING"),this.popState();break;case 85:T.getLogger().debug("Lex: =>BAE"),this.pushState("ARROW_DIR");break;case 86:return E.yytext=E.yytext.replace(/^,\s*/,""),T.getLogger().debug("Lex (right): dir:",E.yytext),"DIR";break;case 87:return E.yytext=E.yytext.replace(/^,\s*/,""),T.getLogger().debug("Lex (left):",E.yytext),"DIR";break;case 88:return E.yytext=E.yytext.replace(/^,\s*/,""),T.getLogger().debug("Lex (x):",E.yytext),"DIR";break;case 89:return E.yytext=E.yytext.replace(/^,\s*/,""),T.getLogger().debug("Lex (y):",E.yytext),"DIR";break;case 90:return E.yytext=E.yytext.replace(/^,\s*/,""),T.getLogger().debug("Lex (up):",E.yytext),"DIR";break;case 91:return E.yytext=E.yytext.replace(/^,\s*/,""),T.getLogger().debug("Lex (down):",E.yytext),"DIR";break;case 92:return E.yytext="]>",T.getLogger().debug("Lex (ARROW_DIR end):",E.yytext),this.popState(),this.popState(),"BLOCK_ARROW_END";break;case 93:return T.getLogger().debug("Lex: LINK","#"+E.yytext+"#"),15;break;case 94:return T.getLogger().debug("Lex: LINK",E.yytext),15;break;case 95:return T.getLogger().debug("Lex: LINK",E.yytext),15;break;case 96:return T.getLogger().debug("Lex: LINK",E.yytext),15;break;case 97:return T.getLogger().debug("Lex: START_LINK",E.yytext),this.pushState("LLABEL"),16;break;case 98:return T.getLogger().debug("Lex: START_LINK",E.yytext),this.pushState("LLABEL"),16;break;case 99:return T.getLogger().debug("Lex: START_LINK",E.yytext),this.pushState("LLABEL"),16;break;case 100:this.pushState("md_string");break;case 101:return T.getLogger().debug("Lex: Starting string"),this.pushState("string"),"LINK_LABEL";break;case 102:return this.popState(),T.getLogger().debug("Lex: LINK","#"+E.yytext+"#"),15;break;case 103:return this.popState(),T.getLogger().debug("Lex: LINK",E.yytext),15;break;case 104:return this.popState(),T.getLogger().debug("Lex: LINK",E.yytext),15;break;case 105:return T.getLogger().debug("Lex: COLON",E.yytext),E.yytext=E.yytext.slice(1),27;break}},"anonymous"),rules:[/^(?:block-beta\b)/,/^(?:block\s+)/,/^(?:block\n+)/,/^(?:block:)/,/^(?:[\s]+)/,/^(?:[\n]+)/,/^(?:((\u000D\u000A)|(\u000A)))/,/^(?:columns\s+auto\b)/,/^(?:columns\s+[\d]+)/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:space[:]\d+)/,/^(?:space\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\s+)/,/^(?:DEFAULT\s+)/,/^(?:\w+\s+)/,/^(?:[^\n]*)/,/^(?:class\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:style\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:end\b\s*)/,/^(?:\(\(\()/,/^(?:\)\)\))/,/^(?:[\)]\))/,/^(?:\}\})/,/^(?:\})/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\()/,/^(?:\]\])/,/^(?:\()/,/^(?:\]\))/,/^(?:\\\])/,/^(?:\/\])/,/^(?:\)\])/,/^(?:[\)])/,/^(?:\]>)/,/^(?:[\]])/,/^(?:-\))/,/^(?:\(-)/,/^(?:\)\))/,/^(?:\))/,/^(?:\(\(\()/,/^(?:\(\()/,/^(?:\{\{)/,/^(?:\{)/,/^(?:>)/,/^(?:\(\[)/,/^(?:\()/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\[\\)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:\[)/,/^(?:<\[)/,/^(?:[^\(\[\n\-\)\{\}\s\<\>:]+)/,/^(?:$)/,/^(?:["][`])/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:\]>\s*\()/,/^(?:,?\s*right\s*)/,/^(?:,?\s*left\s*)/,/^(?:,?\s*x\s*)/,/^(?:,?\s*y\s*)/,/^(?:,?\s*up\s*)/,/^(?:,?\s*down\s*)/,/^(?:\)\s*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*~~[\~]+\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:["][`])/,/^(?:["])/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?::\d+)/],conditions:{STYLE_DEFINITION:{rules:[29],inclusive:!1},STYLE_STMNT:{rules:[28],inclusive:!1},CLASSDEFID:{rules:[23],inclusive:!1},CLASSDEF:{rules:[21,22],inclusive:!1},CLASS_STYLE:{rules:[26],inclusive:!1},CLASS:{rules:[25],inclusive:!1},LLABEL:{rules:[100,101,102,103,104],inclusive:!1},ARROW_DIR:{rules:[86,87,88,89,90,91,92],inclusive:!1},BLOCK_ARROW:{rules:[77,82,85],inclusive:!1},NODE:{rules:[38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,78,81],inclusive:!1},md_string:{rules:[10,11,79,80],inclusive:!1},space:{rules:[],inclusive:!1},string:{rules:[13,14,83,84],inclusive:!1},acc_descr_multiline:{rules:[35,36],inclusive:!1},acc_descr:{rules:[33],inclusive:!1},acc_title:{rules:[31],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,12,15,16,17,18,19,20,24,27,30,32,34,37,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,93,94,95,96,97,98,99,105],inclusive:!0}}};return w}();v.lexer=x;function b(){this.yy={}}return o(b,"Parser"),b.prototype=v,v.Parser=b,new b}();KF.parser=KF;Svt=KF});function une(e){switch(V.debug("typeStr2Type",e),e){case"[]":return"square";case"()":return V.debug("we have a round"),"round";case"(())":return"circle";case">]":return"rect_left_inv_arrow";case"{}":return"diamond";case"{{}}":return"hexagon";case"([])":return"stadium";case"[[]]":return"subroutine";case"[()]":return"cylinder";case"((()))":return"doublecircle";case"[//]":return"lean_right";case"[\\\\]":return"lean_left";case"[/\\]":return"trapezoid";case"[\\/]":return"inv_trapezoid";case"<[]>":return"block_arrow";default:return"na"}}function hne(e){switch(V.debug("typeStr2Type",e),e){case"==":return"thick";default:return"normal"}}function fne(e){switch(e.trim()){case"--x":return"arrow_cross";case"--o":return"arrow_circle";default:return"arrow_point"}}var Ql,ZF,QF,_vt,Lvt,nne,Rvt,ine,ZC,ane,sne,one,lne,Nvt,JF,$b,cne,Dvt,dne,pne,mne,gne,yne,vne,xne,bne,wne,Tne,kne,Mvt,Ivt=R(()=>{"use strict";wD();js();Ue();ce();hr();Ci();Ql=new Map,ZF=[],QF=new Map,_vt="color",Lvt="fill",nne="bgFill",Rvt=",",ine=pt(),ZC=new Map,ane=o(e=>Yt.sanitizeText(e,ine),"sanitizeText"),sne=o(function(e,t=""){let r=ZC.get(e);r||(r={id:e,styles:[],textStyles:[]},ZC.set(e,r)),t?.split(Rvt).forEach(n=>{let i=n.replace(/([^;]*);/,"$1").trim();if(RegExp(_vt).exec(n)){let s=i.replace(Lvt,nne).replace(_vt,Lvt);r.textStyles.push(s)}r.styles.push(i)})},"addStyleClass"),one=o(function(e,t=""){let r=Ql.get(e);t!=null&&(r.styles=t.split(Rvt))},"addStyle2Node"),lne=o(function(e,t){e.split(",").forEach(function(r){let n=Ql.get(r);if(n===void 0){let i=r.trim();n={id:i,type:"na",children:[]},Ql.set(i,n)}n.classes||(n.classes=[]),n.classes.push(t)})},"setCssClass"),Nvt=o((e,t)=>{let r=e.flat(),n=[];for(let i of r){if(i.label&&(i.label=ane(i.label)),i.type==="classDef"){sne(i.id,i.css);continue}if(i.type==="applyClass"){lne(i.id,i?.styleClass??"");continue}if(i.type==="applyStyles"){i?.stylesStr&&one(i.id,i?.stylesStr);continue}if(i.type==="column-setting")t.columns=i.columns??-1;else if(i.type==="edge"){let a=(QF.get(i.id)??0)+1;QF.set(i.id,a),i.id=a+"-"+i.id,ZF.push(i)}else{i.label||(i.type==="composite"?i.label="":i.label=i.id);let a=Ql.get(i.id);if(a===void 0?Ql.set(i.id,i):(i.type!=="na"&&(a.type=i.type),i.label!==i.id&&(a.label=i.label)),i.children&&Nvt(i.children,i),i.type==="space"){let s=i.width??1;for(let l=0;l{V.debug("Clear called"),Ar(),$b={id:"root",type:"composite",children:[],columns:-1},Ql=new Map([["root",$b]]),JF=[],ZC=new Map,ZF=[],QF=new Map},"clear");o(une,"typeStr2Type");o(hne,"edgeTypeStr2Type");o(fne,"edgeStrToEdgeData");Dvt=0,dne=o(()=>(Dvt++,"id-"+Math.random().toString(36).substr(2,12)+"-"+Dvt),"generateId"),pne=o(e=>{$b.children=e,Nvt(e,$b),JF=$b.children},"setHierarchy"),mne=o(e=>{let t=Ql.get(e);return t?t.columns?t.columns:t.children?t.children.length:-1:-1},"getColumns"),gne=o(()=>[...Ql.values()],"getBlocksFlat"),yne=o(()=>JF||[],"getBlocks"),vne=o(()=>ZF,"getEdges"),xne=o(e=>Ql.get(e),"getBlock"),bne=o(e=>{Ql.set(e.id,e)},"setBlock"),wne=o(()=>console,"getLogger"),Tne=o(function(){return ZC},"getClasses"),kne={getConfig:o(()=>Nr().block,"getConfig"),typeStr2Type:une,edgeTypeStr2Type:hne,edgeStrToEdgeData:fne,getLogger:wne,getBlocksFlat:gne,getBlocks:yne,getEdges:vne,setHierarchy:pne,getBlock:xne,setBlock:bne,getColumns:mne,getClasses:Tne,clear:cne,generateId:dne},Mvt=kne});var JC,Ene,Ovt,Pvt=R(()=>{"use strict";ul();JC=o((e,t)=>{let r=ay,n=r(e,"r"),i=r(e,"g"),a=r(e,"b");return Xs(n,i,a,t)},"fade"),Ene=o(e=>`.label { + font-family: ${e.fontFamily}; + color: ${e.nodeTextColor||e.textColor}; + } + .cluster-label text { + fill: ${e.titleColor}; + } + .cluster-label span,p { + color: ${e.titleColor}; + } + + + + .label text,span,p { + fill: ${e.nodeTextColor||e.textColor}; + color: ${e.nodeTextColor||e.textColor}; + } + + .node rect, + .node circle, + .node ellipse, + .node polygon, + .node path { + fill: ${e.mainBkg}; + stroke: ${e.nodeBorder}; + stroke-width: 1px; + } + .flowchart-label text { + text-anchor: middle; + } + // .flowchart-label .text-outer-tspan { + // text-anchor: middle; + // } + // .flowchart-label .text-inner-tspan { + // text-anchor: start; + // } + + .node .label { + text-align: center; + } + .node.clickable { + cursor: pointer; + } + + .arrowheadPath { + fill: ${e.arrowheadColor}; + } + + .edgePath .path { + stroke: ${e.lineColor}; + stroke-width: 2.0px; + } + + .flowchart-link { + stroke: ${e.lineColor}; + fill: none; + } + + .edgeLabel { + background-color: ${e.edgeLabelBackground}; + rect { + opacity: 0.5; + background-color: ${e.edgeLabelBackground}; + fill: ${e.edgeLabelBackground}; + } + text-align: center; + } + + /* For html labels only */ + .labelBkg { + background-color: ${JC(e.edgeLabelBackground,.5)}; + // background-color: + } + + .node .cluster { + // fill: ${JC(e.mainBkg,.5)}; + fill: ${JC(e.clusterBkg,.5)}; + stroke: ${JC(e.clusterBorder,.2)}; + box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px; + stroke-width: 1px; + } + + .cluster text { + fill: ${e.titleColor}; + } + + .cluster span,p { + color: ${e.titleColor}; + } + /* .cluster div { + color: ${e.titleColor}; + } */ + + div.mermaidTooltip { + position: absolute; + text-align: center; + max-width: 200px; + padding: 2px; + font-family: ${e.fontFamily}; + font-size: 12px; + background: ${e.tertiaryColor}; + border: 1px solid ${e.border2}; + border-radius: 2px; + pointer-events: none; + z-index: 100; + } + + .flowchartTitleText { + text-anchor: middle; + font-size: 18px; + fill: ${e.textColor}; + } +`,"getStyles"),Ovt=Ene});function Cne(e,t){if(e===0||!Number.isInteger(e))throw new Error("Columns must be an integer !== 0.");if(t<0||!Number.isInteger(t))throw new Error("Position must be a non-negative integer."+t);if(e<0)return{px:t,py:0};if(e===1)return{px:0,py:t};let r=t%e,n=Math.floor(t/e);return{px:r,py:n}}function tz(e,t,r=0,n=0){V.debug("setBlockSizes abc95 (start)",e.id,e?.size?.x,"block width =",e?.size,"sieblingWidth",r),e?.size?.width||(e.size={width:r,height:n,x:0,y:0});let i=0,a=0;if(e.children?.length>0){for(let m of e.children)tz(m,t);let s=Sne(e);i=s.width,a=s.height,V.debug("setBlockSizes abc95 maxWidth of",e.id,":s children is ",i,a);for(let m of e.children)m.size&&(V.debug(`abc95 Setting size of children of ${e.id} id=${m.id} ${i} ${a} ${JSON.stringify(m.size)}`),m.size.width=i*(m.widthInColumns??1)+bi*((m.widthInColumns??1)-1),m.size.height=a,m.size.x=0,m.size.y=0,V.debug(`abc95 updating size of ${e.id} children child:${m.id} maxWidth:${i} maxHeight:${a}`));for(let m of e.children)tz(m,t,i,a);let l=e.columns??-1,u=0;for(let m of e.children)u+=m.widthInColumns??1;let h=e.children.length;l>0&&l0?Math.min(e.children.length,l):e.children.length;if(m>0){let g=(d-m*bi-bi)/m;V.debug("abc95 (growing to fit) width",e.id,d,e.size?.width,g);for(let y of e.children)y.size&&(y.size.width=g)}}e.size={width:d,height:p,x:0,y:0}}V.debug("setBlockSizes abc94 (done)",e.id,e?.size?.x,e?.size?.width,e?.size?.y,e?.size?.height)}function Bvt(e,t){V.debug(`abc85 layout blocks (=>layoutBlocks) ${e.id} x: ${e?.size?.x} y: ${e?.size?.y} width: ${e?.size?.width}`);let r=e.columns??-1;if(V.debug("layoutBlocks columns abc95",e.id,"=>",r,e),e.children&&e.children.length>0){let n=e?.children[0]?.size?.width??0,i=e.children.length*n+(e.children.length-1)*bi;V.debug("widthOfChildren 88",i,"posX");let a=0;V.debug("abc91 block?.size?.x",e.id,e?.size?.x);let s=e?.size?.x?e?.size?.x+(-e?.size?.width/2||0):-bi,l=0;for(let u of e.children){let h=e;if(!u.size)continue;let{width:f,height:d}=u.size,{px:p,py:m}=Cne(r,a);if(m!=l&&(l=m,s=e?.size?.x?e?.size?.x+(-e?.size?.width/2||0):-bi,V.debug("New row in layout for block",e.id," and child ",u.id,l)),V.debug(`abc89 layout blocks (child) id: ${u.id} Pos: ${a} (px, py) ${p},${m} (${h?.size?.x},${h?.size?.y}) parent: ${h.id} width: ${f}${bi}`),h.size){let g=f/2;u.size.x=s+bi+g,V.debug(`abc91 layout blocks (calc) px, pyid:${u.id} startingPos=X${s} new startingPosX${u.size.x} ${g} padding=${bi} width=${f} halfWidth=${g} => x:${u.size.x} y:${u.size.y} ${u.widthInColumns} (width * (child?.w || 1)) / 2 ${f*(u?.widthInColumns??1)/2}`),s=u.size.x+g,u.size.y=h.size.y-h.size.height/2+m*(d+bi)+d/2+bi,V.debug(`abc88 layout blocks (calc) px, pyid:${u.id}startingPosX${s}${bi}${g}=>x:${u.size.x}y:${u.size.y}${u.widthInColumns}(width * (child?.w || 1)) / 2${f*(u?.widthInColumns??1)/2}`)}u.children&&Bvt(u,t),a+=u?.widthInColumns??1,V.debug("abc88 columnsPos",u,a)}}V.debug(`layout blocks (<==layoutBlocks) ${e.id} x: ${e?.size?.x} y: ${e?.size?.y} width: ${e?.size?.width}`)}function Fvt(e,{minX:t,minY:r,maxX:n,maxY:i}={minX:0,minY:0,maxX:0,maxY:0}){if(e.size&&e.id!=="root"){let{x:a,y:s,width:l,height:u}=e.size;a-l/2n&&(n=a+l/2),s+u/2>i&&(i=s+u/2)}if(e.children)for(let a of e.children)({minX:t,minY:r,maxX:n,maxY:i}=Fvt(a,{minX:t,minY:r,maxX:n,maxY:i}));return{minX:t,minY:r,maxX:n,maxY:i}}function zvt(e){let t=e.getBlock("root");if(!t)return;tz(t,e,0,0),Bvt(t,e),V.debug("getBlocks",JSON.stringify(t,null,2));let{minX:r,minY:n,maxX:i,maxY:a}=Fvt(t),s=a-n,l=i-r;return{x:r,y:n,width:l,height:s}}var bi,Sne,$vt=R(()=>{"use strict";ce();Ue();bi=pt()?.block?.padding??8;o(Cne,"calculateBlockPosition");Sne=o(e=>{let t=0,r=0;for(let n of e.children){let{width:i,height:a,x:s,y:l}=n.size??{width:0,height:0,x:0,y:0};V.debug("getMaxChildSize abc95 child:",n.id,"width:",i,"height:",a,"x:",s,"y:",l,n.type),n.type!=="space"&&(i>t&&(t=i/(e.widthInColumns??1)),a>r&&(r=a))}return{width:t,height:r}},"getMaxChildSize");o(tz,"setBlockSizes");o(Bvt,"layoutBlocks");o(Fvt,"findBounds");o(zvt,"layout")});function Gvt(e,t,r=!1){let n=e,i="default";(n?.classes?.length||0)>0&&(i=(n?.classes??[]).join(" ")),i=i+" flowchart-label";let a=0,s="",l;switch(n.type){case"round":a=5,s="rect";break;case"composite":a=0,s="composite",l=0;break;case"square":s="rect";break;case"diamond":s="question";break;case"hexagon":s="hexagon";break;case"block_arrow":s="block_arrow";break;case"odd":s="rect_left_inv_arrow";break;case"lean_right":s="lean_right";break;case"lean_left":s="lean_left";break;case"trapezoid":s="trapezoid";break;case"inv_trapezoid":s="inv_trapezoid";break;case"rect_left_inv_arrow":s="rect_left_inv_arrow";break;case"circle":s="circle";break;case"ellipse":s="ellipse";break;case"stadium":s="stadium";break;case"subroutine":s="subroutine";break;case"cylinder":s="cylinder";break;case"group":s="rect";break;case"doublecircle":s="doublecircle";break;default:s="rect"}let u=gm(n?.styles??[]),h=n.label,f=n.size??{width:0,height:0,x:0,y:0};return{labelStyle:u.labelStyle,shape:s,labelText:h,rx:a,ry:a,class:i,style:u.style,id:n.id,directions:n.directions,width:f.width,height:f.height,x:f.x,y:f.y,positioned:r,intersect:void 0,type:n.type,padding:l??Nr()?.block?.padding??0}}async function Ane(e,t,r){let n=Gvt(t,r,!1);if(n.type==="group")return;let i=Nr(),a=await jx(e,n,{config:i}),s=a.node().getBBox(),l=r.getBlock(n.id);l.size={width:s.width,height:s.height,x:0,y:0,node:a},r.setBlock(l),a.remove()}async function _ne(e,t,r){let n=Gvt(t,r,!0);if(r.getBlock(n.id).type!=="space"){let a=Nr();await jx(e,n,{config:a}),t.intersect=n?.intersect,Kx(n)}}async function ez(e,t,r,n){for(let i of t)await n(e,i,r),i.children&&await ez(e,i.children,r,n)}async function Vvt(e,t,r){await ez(e,t,r,Ane)}async function Uvt(e,t,r){await ez(e,t,r,_ne)}async function Hvt(e,t,r,n,i){let a=new yr({multigraph:!0,compound:!0});a.setGraph({rankdir:"TB",nodesep:10,ranksep:10,marginx:8,marginy:8});for(let s of r)s.size&&a.setNode(s.id,{width:s.size.width,height:s.size.height,intersect:s.intersect});for(let s of t)if(s.start&&s.end){let l=n.getBlock(s.start),u=n.getBlock(s.end);if(l?.size&&u?.size){let h=l.size,f=u.size,d=[{x:h.x,y:h.y},{x:h.x+(f.x-h.x)/2,y:h.y+(f.y-h.y)/2},{x:f.x,y:f.y}];L6(e,{v:s.start,w:s.end,name:s.id},{...s,arrowTypeEnd:s.arrowTypeEnd,arrowTypeStart:s.arrowTypeStart,points:d,classes:"edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"},void 0,"block",a,i),s.label&&(await A6(e,{...s,label:s.label,labelStyle:"stroke: #333; stroke-width: 1.5px;fill:none;",arrowTypeEnd:s.arrowTypeEnd,arrowTypeStart:s.arrowTypeStart,points:d,classes:"edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"}),_6({...s,x:d[1].x,y:d[1].y},{originalPath:d}))}}}var Wvt=R(()=>{"use strict";wa();js();$P();zP();_r();o(Gvt,"getNodeFromBlock");o(Ane,"calculateBlockSize");o(_ne,"insertBlockPositioned");o(ez,"performOperations");o(Vvt,"calculateBlockSizes");o(Uvt,"insertBlocks");o(Hvt,"insertEdges")});var Lne,Dne,Yvt,qvt=R(()=>{"use strict";ur();js();IP();ce();Jn();$vt();Wvt();Lne=o(function(e,t){return t.db.getClasses()},"getClasses"),Dne=o(async function(e,t,r,n){let{securityLevel:i,block:a}=Nr(),s=n.db,l;i==="sandbox"&&(l=Gt("#i"+t));let u=i==="sandbox"?Gt(l.nodes()[0].contentDocument.body):Gt("body"),h=i==="sandbox"?u.select(`[id="${t}"]`):Gt(`[id="${t}"]`);b6(h,["point","circle","cross"],n.type,t);let d=s.getBlocks(),p=s.getBlocksFlat(),m=s.getEdges(),g=h.insert("g").attr("class","block");await Vvt(g,d,s);let y=zvt(s);if(await Uvt(g,d,s),await Hvt(g,m,p,s,t),y){let v=y,x=Math.max(1,Math.round(.125*(v.width/v.height))),b=v.height+x+10,w=v.width+10,{useMaxWidth:S}=a;Pr(h,b,w,!!S),V.debug("Here Bounds",y,v),h.attr("viewBox",`${v.x-5} ${v.y-5} ${v.width+10} ${v.height+10}`)}},"draw"),Yvt={draw:Dne,getClasses:Lne}});var Xvt={};xr(Xvt,{diagram:()=>Rne});var Rne,jvt=R(()=>{"use strict";Avt();Ivt();Pvt();qvt();Rne={parser:Svt,db:Mvt,renderer:Yvt,styles:Ovt}});var rz,nz,Gb,Zvt,iz,ds,eu,tS,Jvt,One,Vb,t2t,e2t,r2t,n2t,eS,zf,rS=R(()=>{"use strict";rz={L:"left",R:"right",T:"top",B:"bottom"},nz={L:o(e=>`${e},${e/2} 0,${e} 0,0`,"L"),R:o(e=>`0,${e/2} ${e},0 ${e},${e}`,"R"),T:o(e=>`0,0 ${e},0 ${e/2},${e}`,"T"),B:o(e=>`${e/2},0 ${e},${e} 0,${e}`,"B")},Gb={L:o((e,t)=>e-t+2,"L"),R:o((e,t)=>e-2,"R"),T:o((e,t)=>e-t+2,"T"),B:o((e,t)=>e-2,"B")},Zvt=o(function(e){return ds(e)?e==="L"?"R":"L":e==="T"?"B":"T"},"getOppositeArchitectureDirection"),iz=o(function(e){let t=e;return t==="L"||t==="R"||t==="T"||t==="B"},"isArchitectureDirection"),ds=o(function(e){let t=e;return t==="L"||t==="R"},"isArchitectureDirectionX"),eu=o(function(e){let t=e;return t==="T"||t==="B"},"isArchitectureDirectionY"),tS=o(function(e,t){let r=ds(e)&&eu(t),n=eu(e)&&ds(t);return r||n},"isArchitectureDirectionXY"),Jvt=o(function(e){let t=e[0],r=e[1],n=ds(t)&&eu(r),i=eu(t)&&ds(r);return n||i},"isArchitecturePairXY"),One=o(function(e){return e!=="LL"&&e!=="RR"&&e!=="TT"&&e!=="BB"},"isValidArchitectureDirectionPair"),Vb=o(function(e,t){let r=`${e}${t}`;return One(r)?r:void 0},"getArchitectureDirectionPair"),t2t=o(function([e,t],r){let n=r[0],i=r[1];return ds(n)?eu(i)?[e+(n==="L"?-1:1),t+(i==="T"?1:-1)]:[e+(n==="L"?-1:1),t]:ds(i)?[e+(i==="L"?1:-1),t+(n==="T"?1:-1)]:[e,t+(n==="T"?1:-1)]},"shiftPositionByArchitectureDirectionPair"),e2t=o(function(e){return e==="LT"||e==="TL"?[1,1]:e==="BL"||e==="LB"?[1,-1]:e==="BR"||e==="RB"?[-1,-1]:[-1,1]},"getArchitectureDirectionXYFactors"),r2t=o(function(e){return e.type==="service"},"isArchitectureService"),n2t=o(function(e){return e.type==="junction"},"isArchitectureJunction"),eS=o(e=>e.data(),"edgeData"),zf=o(e=>e.data(),"nodeData")});function Di(e){let t=pt().architecture;return t?.[e]?t[e]:i2t[e]}var i2t,pr,Pne,Bne,Fne,zne,$ne,Gne,Vne,Une,Hne,Wne,Yne,qne,Xne,jne,ap,Ub=R(()=>{"use strict";hl();Ue();HE();Ci();rS();i2t=Er.architecture,pr=new mf(()=>({nodes:{},groups:{},edges:[],registeredIds:{},config:i2t,dataStructures:void 0,elements:{}})),Pne=o(()=>{pr.reset(),Ar()},"clear"),Bne=o(function({id:e,icon:t,in:r,title:n,iconText:i}){if(pr.records.registeredIds[e]!==void 0)throw new Error(`The service id [${e}] is already in use by another ${pr.records.registeredIds[e]}`);if(r!==void 0){if(e===r)throw new Error(`The service [${e}] cannot be placed within itself`);if(pr.records.registeredIds[r]===void 0)throw new Error(`The service [${e}]'s parent does not exist. Please make sure the parent is created before this service`);if(pr.records.registeredIds[r]==="node")throw new Error(`The service [${e}]'s parent is not a group`)}pr.records.registeredIds[e]="node",pr.records.nodes[e]={id:e,type:"service",icon:t,iconText:i,title:n,edges:[],in:r}},"addService"),Fne=o(()=>Object.values(pr.records.nodes).filter(r2t),"getServices"),zne=o(function({id:e,in:t}){pr.records.registeredIds[e]="node",pr.records.nodes[e]={id:e,type:"junction",edges:[],in:t}},"addJunction"),$ne=o(()=>Object.values(pr.records.nodes).filter(n2t),"getJunctions"),Gne=o(()=>Object.values(pr.records.nodes),"getNodes"),Vne=o(e=>pr.records.nodes[e],"getNode"),Une=o(function({id:e,icon:t,in:r,title:n}){if(pr.records.registeredIds[e]!==void 0)throw new Error(`The group id [${e}] is already in use by another ${pr.records.registeredIds[e]}`);if(r!==void 0){if(e===r)throw new Error(`The group [${e}] cannot be placed within itself`);if(pr.records.registeredIds[r]===void 0)throw new Error(`The group [${e}]'s parent does not exist. Please make sure the parent is created before this group`);if(pr.records.registeredIds[r]==="node")throw new Error(`The group [${e}]'s parent is not a group`)}pr.records.registeredIds[e]="group",pr.records.groups[e]={id:e,icon:t,title:n,in:r}},"addGroup"),Hne=o(()=>Object.values(pr.records.groups),"getGroups"),Wne=o(function({lhsId:e,rhsId:t,lhsDir:r,rhsDir:n,lhsInto:i,rhsInto:a,lhsGroup:s,rhsGroup:l,title:u}){if(!iz(r))throw new Error(`Invalid direction given for left hand side of edge ${e}--${t}. Expected (L,R,T,B) got ${r}`);if(!iz(n))throw new Error(`Invalid direction given for right hand side of edge ${e}--${t}. Expected (L,R,T,B) got ${n}`);if(pr.records.nodes[e]===void 0&&pr.records.groups[e]===void 0)throw new Error(`The left-hand id [${e}] does not yet exist. Please create the service/group before declaring an edge to it.`);if(pr.records.nodes[t]===void 0&&pr.records.groups[e]===void 0)throw new Error(`The right-hand id [${t}] does not yet exist. Please create the service/group before declaring an edge to it.`);let h=pr.records.nodes[e].in,f=pr.records.nodes[t].in;if(s&&h&&f&&h==f)throw new Error(`The left-hand id [${e}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);if(l&&h&&f&&h==f)throw new Error(`The right-hand id [${t}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);let d={lhsId:e,lhsDir:r,lhsInto:i,lhsGroup:s,rhsId:t,rhsDir:n,rhsInto:a,rhsGroup:l,title:u};pr.records.edges.push(d),pr.records.nodes[e]&&pr.records.nodes[t]&&(pr.records.nodes[e].edges.push(pr.records.edges[pr.records.edges.length-1]),pr.records.nodes[t].edges.push(pr.records.edges[pr.records.edges.length-1]))},"addEdge"),Yne=o(()=>pr.records.edges,"getEdges"),qne=o(()=>{if(pr.records.dataStructures===void 0){let e=Object.entries(pr.records.nodes).reduce((s,[l,u])=>(s[l]=u.edges.reduce((h,f)=>{if(f.lhsId===l){let d=Vb(f.lhsDir,f.rhsDir);d&&(h[d]=f.rhsId)}else{let d=Vb(f.rhsDir,f.lhsDir);d&&(h[d]=f.lhsId)}return h},{}),s),{}),t=Object.keys(e)[0],r={[t]:1},n=Object.keys(e).reduce((s,l)=>l===t?s:{...s,[l]:1},{}),i=o(s=>{let l={[s]:[0,0]},u=[s];for(;u.length>0;){let h=u.shift();if(h){r[h]=1,delete n[h];let f=e[h],[d,p]=l[h];Object.entries(f).forEach(([m,g])=>{r[g]||(l[g]=t2t([d,p],m),u.push(g))})}}return l},"BFS"),a=[i(t)];for(;Object.keys(n).length>0;)a.push(i(Object.keys(n)[0]));pr.records.dataStructures={adjList:e,spatialMaps:a}}return pr.records.dataStructures},"getDataStructures"),Xne=o((e,t)=>{pr.records.elements[e]=t},"setElementForId"),jne=o(e=>pr.records.elements[e],"getElementById"),ap={clear:Pne,setDiagramTitle:cn,getDiagramTitle:Jr,setAccTitle:Mr,getAccTitle:Br,setAccDescription:Fr,getAccDescription:zr,addService:Bne,getServices:Fne,addJunction:zne,getJunctions:$ne,getNodes:Gne,getNode:Vne,addGroup:Une,getGroups:Hne,addEdge:Wne,getEdges:Yne,setElementForId:Xne,getElementById:jne,getDataStructures:qne};o(Di,"getConfigField")});var Kne,a2t,s2t=R(()=>{"use strict";Hg();ce();Dx();Ub();Kne=o((e,t)=>{pf(e,t),e.groups.map(t.addGroup),e.services.map(r=>t.addService({...r,type:"service"})),e.junctions.map(r=>t.addJunction({...r,type:"junction"})),e.edges.map(t.addEdge)},"populateDb"),a2t={parse:o(async e=>{let t=await Ul("architecture",e);V.debug(t),Kne(t,ap)},"parse")}});var Qne,o2t,l2t=R(()=>{"use strict";Qne=o(e=>` + .edge { + stroke-width: ${e.archEdgeWidth}; + stroke: ${e.archEdgeColor}; + fill: none; + } + + .arrow { + fill: ${e.archEdgeArrowColor}; + } + + .node-bkg { + fill: none; + stroke: ${e.archGroupBorderColor}; + stroke-width: ${e.archGroupBorderWidth}; + stroke-dasharray: 8; + } + .node-icon-text { + display: flex; + align-items: center; + } + + .node-icon-text > div { + color: #fff; + margin: 1px; + height: fit-content; + text-align: center; + overflow: hidden; + display: -webkit-box; + -webkit-box-orient: vertical; + } +`,"getStyles"),o2t=Qne});var sz=Ti((Hb,az)=>{"use strict";o(function(t,r){typeof Hb=="object"&&typeof az=="object"?az.exports=r():typeof define=="function"&&define.amd?define([],r):typeof Hb=="object"?Hb.layoutBase=r():t.layoutBase=r()},"webpackUniversalModuleDefinition")(Hb,function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return o(r,"__webpack_require__"),r.m=e,r.c=t,r.i=function(n){return n},r.d=function(n,i,a){r.o(n,i)||Object.defineProperty(n,i,{configurable:!1,enumerable:!0,get:a})},r.n=function(n){var i=n&&n.__esModule?o(function(){return n.default},"getDefault"):o(function(){return n},"getModuleExports");return r.d(i,"a",i),i},r.o=function(n,i){return Object.prototype.hasOwnProperty.call(n,i)},r.p="",r(r.s=28)}([function(e,t,r){"use strict";function n(){}o(n,"LayoutConstants"),n.QUALITY=1,n.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,n.DEFAULT_INCREMENTAL=!1,n.DEFAULT_ANIMATION_ON_LAYOUT=!0,n.DEFAULT_ANIMATION_DURING_LAYOUT=!1,n.DEFAULT_ANIMATION_PERIOD=50,n.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,n.DEFAULT_GRAPH_MARGIN=15,n.NODE_DIMENSIONS_INCLUDE_LABELS=!1,n.SIMPLE_NODE_SIZE=40,n.SIMPLE_NODE_HALF_SIZE=n.SIMPLE_NODE_SIZE/2,n.EMPTY_COMPOUND_NODE_SIZE=40,n.MIN_EDGE_LENGTH=1,n.WORLD_BOUNDARY=1e6,n.INITIAL_WORLD_BOUNDARY=n.WORLD_BOUNDARY/1e3,n.WORLD_CENTER_X=1200,n.WORLD_CENTER_Y=900,e.exports=n},function(e,t,r){"use strict";var n=r(2),i=r(8),a=r(9);function s(u,h,f){n.call(this,f),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=f,this.bendpoints=[],this.source=u,this.target=h}o(s,"LEdge"),s.prototype=Object.create(n.prototype);for(var l in n)s[l]=n[l];s.prototype.getSource=function(){return this.source},s.prototype.getTarget=function(){return this.target},s.prototype.isInterGraph=function(){return this.isInterGraph},s.prototype.getLength=function(){return this.length},s.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},s.prototype.getBendpoints=function(){return this.bendpoints},s.prototype.getLca=function(){return this.lca},s.prototype.getSourceInLca=function(){return this.sourceInLca},s.prototype.getTargetInLca=function(){return this.targetInLca},s.prototype.getOtherEnd=function(u){if(this.source===u)return this.target;if(this.target===u)return this.source;throw"Node is not incident with this edge"},s.prototype.getOtherEndInGraph=function(u,h){for(var f=this.getOtherEnd(u),d=h.getGraphManager().getRoot();;){if(f.getOwner()==h)return f;if(f.getOwner()==d)break;f=f.getOwner().getParent()}return null},s.prototype.updateLength=function(){var u=new Array(4);this.isOverlapingSourceAndTarget=i.getIntersection(this.target.getRect(),this.source.getRect(),u),this.isOverlapingSourceAndTarget||(this.lengthX=u[0]-u[2],this.lengthY=u[1]-u[3],Math.abs(this.lengthX)<1&&(this.lengthX=a.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=a.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},s.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=a.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=a.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},e.exports=s},function(e,t,r){"use strict";function n(i){this.vGraphObject=i}o(n,"LGraphObject"),e.exports=n},function(e,t,r){"use strict";var n=r(2),i=r(10),a=r(13),s=r(0),l=r(16),u=r(5);function h(d,p,m,g){m==null&&g==null&&(g=p),n.call(this,g),d.graphManager!=null&&(d=d.graphManager),this.estimatedSize=i.MIN_VALUE,this.inclusionTreeDepth=i.MAX_VALUE,this.vGraphObject=g,this.edges=[],this.graphManager=d,m!=null&&p!=null?this.rect=new a(p.x,p.y,m.width,m.height):this.rect=new a}o(h,"LNode"),h.prototype=Object.create(n.prototype);for(var f in n)h[f]=n[f];h.prototype.getEdges=function(){return this.edges},h.prototype.getChild=function(){return this.child},h.prototype.getOwner=function(){return this.owner},h.prototype.getWidth=function(){return this.rect.width},h.prototype.setWidth=function(d){this.rect.width=d},h.prototype.getHeight=function(){return this.rect.height},h.prototype.setHeight=function(d){this.rect.height=d},h.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},h.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},h.prototype.getCenter=function(){return new u(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},h.prototype.getLocation=function(){return new u(this.rect.x,this.rect.y)},h.prototype.getRect=function(){return this.rect},h.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},h.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},h.prototype.setRect=function(d,p){this.rect.x=d.x,this.rect.y=d.y,this.rect.width=p.width,this.rect.height=p.height},h.prototype.setCenter=function(d,p){this.rect.x=d-this.rect.width/2,this.rect.y=p-this.rect.height/2},h.prototype.setLocation=function(d,p){this.rect.x=d,this.rect.y=p},h.prototype.moveBy=function(d,p){this.rect.x+=d,this.rect.y+=p},h.prototype.getEdgeListToNode=function(d){var p=[],m,g=this;return g.edges.forEach(function(y){if(y.target==d){if(y.source!=g)throw"Incorrect edge source!";p.push(y)}}),p},h.prototype.getEdgesBetween=function(d){var p=[],m,g=this;return g.edges.forEach(function(y){if(!(y.source==g||y.target==g))throw"Incorrect edge source and/or target";(y.target==d||y.source==d)&&p.push(y)}),p},h.prototype.getNeighborsList=function(){var d=new Set,p=this;return p.edges.forEach(function(m){if(m.source==p)d.add(m.target);else{if(m.target!=p)throw"Incorrect incidency!";d.add(m.source)}}),d},h.prototype.withChildren=function(){var d=new Set,p,m;if(d.add(this),this.child!=null)for(var g=this.child.getNodes(),y=0;yp?(this.rect.x-=(this.labelWidth-p)/2,this.setWidth(this.labelWidth)):this.labelPosHorizontal=="right"&&this.setWidth(p+this.labelWidth)),this.labelHeight&&(this.labelPosVertical=="top"?(this.rect.y-=this.labelHeight,this.setHeight(m+this.labelHeight)):this.labelPosVertical=="center"&&this.labelHeight>m?(this.rect.y-=(this.labelHeight-m)/2,this.setHeight(this.labelHeight)):this.labelPosVertical=="bottom"&&this.setHeight(m+this.labelHeight))}}},h.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==i.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},h.prototype.transform=function(d){var p=this.rect.x;p>s.WORLD_BOUNDARY?p=s.WORLD_BOUNDARY:p<-s.WORLD_BOUNDARY&&(p=-s.WORLD_BOUNDARY);var m=this.rect.y;m>s.WORLD_BOUNDARY?m=s.WORLD_BOUNDARY:m<-s.WORLD_BOUNDARY&&(m=-s.WORLD_BOUNDARY);var g=new u(p,m),y=d.inverseTransformPoint(g);this.setLocation(y.x,y.y)},h.prototype.getLeft=function(){return this.rect.x},h.prototype.getRight=function(){return this.rect.x+this.rect.width},h.prototype.getTop=function(){return this.rect.y},h.prototype.getBottom=function(){return this.rect.y+this.rect.height},h.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},e.exports=h},function(e,t,r){"use strict";var n=r(0);function i(){}o(i,"FDLayoutConstants");for(var a in n)i[a]=n[a];i.MAX_ITERATIONS=2500,i.DEFAULT_EDGE_LENGTH=50,i.DEFAULT_SPRING_STRENGTH=.45,i.DEFAULT_REPULSION_STRENGTH=4500,i.DEFAULT_GRAVITY_STRENGTH=.4,i.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,i.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,i.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,i.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,i.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,i.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,i.COOLING_ADAPTATION_FACTOR=.33,i.ADAPTATION_LOWER_NODE_LIMIT=1e3,i.ADAPTATION_UPPER_NODE_LIMIT=5e3,i.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,i.MAX_NODE_DISPLACEMENT=i.MAX_NODE_DISPLACEMENT_INCREMENTAL*3,i.MIN_REPULSION_DIST=i.DEFAULT_EDGE_LENGTH/10,i.CONVERGENCE_CHECK_PERIOD=100,i.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,i.MIN_EDGE_LENGTH=1,i.GRID_CALCULATION_CHECK_PERIOD=10,e.exports=i},function(e,t,r){"use strict";function n(i,a){i==null&&a==null?(this.x=0,this.y=0):(this.x=i,this.y=a)}o(n,"PointD"),n.prototype.getX=function(){return this.x},n.prototype.getY=function(){return this.y},n.prototype.setX=function(i){this.x=i},n.prototype.setY=function(i){this.y=i},n.prototype.getDifference=function(i){return new DimensionD(this.x-i.x,this.y-i.y)},n.prototype.getCopy=function(){return new n(this.x,this.y)},n.prototype.translate=function(i){return this.x+=i.width,this.y+=i.height,this},e.exports=n},function(e,t,r){"use strict";var n=r(2),i=r(10),a=r(0),s=r(7),l=r(3),u=r(1),h=r(13),f=r(12),d=r(11);function p(g,y,v){n.call(this,v),this.estimatedSize=i.MIN_VALUE,this.margin=a.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=g,y!=null&&y instanceof s?this.graphManager=y:y!=null&&y instanceof Layout&&(this.graphManager=y.graphManager)}o(p,"LGraph"),p.prototype=Object.create(n.prototype);for(var m in n)p[m]=n[m];p.prototype.getNodes=function(){return this.nodes},p.prototype.getEdges=function(){return this.edges},p.prototype.getGraphManager=function(){return this.graphManager},p.prototype.getParent=function(){return this.parent},p.prototype.getLeft=function(){return this.left},p.prototype.getRight=function(){return this.right},p.prototype.getTop=function(){return this.top},p.prototype.getBottom=function(){return this.bottom},p.prototype.isConnected=function(){return this.isConnected},p.prototype.add=function(g,y,v){if(y==null&&v==null){var x=g;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(x)>-1)throw"Node already in graph!";return x.owner=this,this.getNodes().push(x),x}else{var b=g;if(!(this.getNodes().indexOf(y)>-1&&this.getNodes().indexOf(v)>-1))throw"Source or target not in graph!";if(!(y.owner==v.owner&&y.owner==this))throw"Both owners must be this graph!";return y.owner!=v.owner?null:(b.source=y,b.target=v,b.isInterGraph=!1,this.getEdges().push(b),y.edges.push(b),v!=y&&v.edges.push(b),b)}},p.prototype.remove=function(g){var y=g;if(g instanceof l){if(y==null)throw"Node is null!";if(!(y.owner!=null&&y.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var v=y.edges.slice(),x,b=v.length,w=0;w-1&&E>-1))throw"Source and/or target doesn't know this edge!";x.source.edges.splice(T,1),x.target!=x.source&&x.target.edges.splice(E,1);var S=x.source.owner.getEdges().indexOf(x);if(S==-1)throw"Not in owner's edge list!";x.source.owner.getEdges().splice(S,1)}},p.prototype.updateLeftTop=function(){for(var g=i.MAX_VALUE,y=i.MAX_VALUE,v,x,b,w=this.getNodes(),S=w.length,T=0;Tv&&(g=v),y>x&&(y=x)}return g==i.MAX_VALUE?null:(w[0].getParent().paddingLeft!=null?b=w[0].getParent().paddingLeft:b=this.margin,this.left=y-b,this.top=g-b,new f(this.left,this.top))},p.prototype.updateBounds=function(g){for(var y=i.MAX_VALUE,v=-i.MAX_VALUE,x=i.MAX_VALUE,b=-i.MAX_VALUE,w,S,T,E,_,A=this.nodes,L=A.length,M=0;Mw&&(y=w),vT&&(x=T),bw&&(y=w),vT&&(x=T),b=this.nodes.length){var L=0;v.forEach(function(M){M.owner==g&&L++}),L==this.nodes.length&&(this.isConnected=!0)}},e.exports=p},function(e,t,r){"use strict";var n,i=r(1);function a(s){n=r(6),this.layout=s,this.graphs=[],this.edges=[]}o(a,"LGraphManager"),a.prototype.addRoot=function(){var s=this.layout.newGraph(),l=this.layout.newNode(null),u=this.add(s,l);return this.setRootGraph(u),this.rootGraph},a.prototype.add=function(s,l,u,h,f){if(u==null&&h==null&&f==null){if(s==null)throw"Graph is null!";if(l==null)throw"Parent node is null!";if(this.graphs.indexOf(s)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(s),s.parent!=null)throw"Already has a parent!";if(l.child!=null)throw"Already has a child!";return s.parent=l,l.child=s,s}else{f=u,h=l,u=s;var d=h.getOwner(),p=f.getOwner();if(!(d!=null&&d.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(p!=null&&p.getGraphManager()==this))throw"Target not in this graph mgr!";if(d==p)return u.isInterGraph=!1,d.add(u,h,f);if(u.isInterGraph=!0,u.source=h,u.target=f,this.edges.indexOf(u)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(u),!(u.source!=null&&u.target!=null))throw"Edge source and/or target is null!";if(!(u.source.edges.indexOf(u)==-1&&u.target.edges.indexOf(u)==-1))throw"Edge already in source and/or target incidency list!";return u.source.edges.push(u),u.target.edges.push(u),u}},a.prototype.remove=function(s){if(s instanceof n){var l=s;if(l.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(l==this.rootGraph||l.parent!=null&&l.parent.graphManager==this))throw"Invalid parent node!";var u=[];u=u.concat(l.getEdges());for(var h,f=u.length,d=0;d=s.getRight()?l[0]+=Math.min(s.getX()-a.getX(),a.getRight()-s.getRight()):s.getX()<=a.getX()&&s.getRight()>=a.getRight()&&(l[0]+=Math.min(a.getX()-s.getX(),s.getRight()-a.getRight())),a.getY()<=s.getY()&&a.getBottom()>=s.getBottom()?l[1]+=Math.min(s.getY()-a.getY(),a.getBottom()-s.getBottom()):s.getY()<=a.getY()&&s.getBottom()>=a.getBottom()&&(l[1]+=Math.min(a.getY()-s.getY(),s.getBottom()-a.getBottom()));var f=Math.abs((s.getCenterY()-a.getCenterY())/(s.getCenterX()-a.getCenterX()));s.getCenterY()===a.getCenterY()&&s.getCenterX()===a.getCenterX()&&(f=1);var d=f*l[0],p=l[1]/f;l[0]d)return l[0]=u,l[1]=m,l[2]=f,l[3]=A,!1;if(hf)return l[0]=p,l[1]=h,l[2]=E,l[3]=d,!1;if(uf?(l[0]=y,l[1]=v,k=!0):(l[0]=g,l[1]=m,k=!0):C===D&&(u>f?(l[0]=p,l[1]=m,k=!0):(l[0]=x,l[1]=v,k=!0)),-O===D?f>u?(l[2]=_,l[3]=A,I=!0):(l[2]=E,l[3]=T,I=!0):O===D&&(f>u?(l[2]=S,l[3]=T,I=!0):(l[2]=L,l[3]=A,I=!0)),k&&I)return!1;if(u>f?h>d?(P=this.getCardinalDirection(C,D,4),F=this.getCardinalDirection(O,D,2)):(P=this.getCardinalDirection(-C,D,3),F=this.getCardinalDirection(-O,D,1)):h>d?(P=this.getCardinalDirection(-C,D,1),F=this.getCardinalDirection(-O,D,3)):(P=this.getCardinalDirection(C,D,2),F=this.getCardinalDirection(O,D,4)),!k)switch(P){case 1:G=m,B=u+-w/D,l[0]=B,l[1]=G;break;case 2:B=x,G=h+b*D,l[0]=B,l[1]=G;break;case 3:G=v,B=u+w/D,l[0]=B,l[1]=G;break;case 4:B=y,G=h+-b*D,l[0]=B,l[1]=G;break}if(!I)switch(F){case 1:W=T,z=f+-N/D,l[2]=z,l[3]=W;break;case 2:z=L,W=d+M*D,l[2]=z,l[3]=W;break;case 3:W=A,z=f+N/D,l[2]=z,l[3]=W;break;case 4:z=_,W=d+-M*D,l[2]=z,l[3]=W;break}}return!1},i.getCardinalDirection=function(a,s,l){return a>s?l:1+l%4},i.getIntersection=function(a,s,l,u){if(u==null)return this.getIntersection2(a,s,l);var h=a.x,f=a.y,d=s.x,p=s.y,m=l.x,g=l.y,y=u.x,v=u.y,x=void 0,b=void 0,w=void 0,S=void 0,T=void 0,E=void 0,_=void 0,A=void 0,L=void 0;return w=p-f,T=h-d,_=d*f-h*p,S=v-g,E=m-y,A=y*g-m*v,L=w*E-S*T,L===0?null:(x=(T*A-E*_)/L,b=(S*_-w*A)/L,new n(x,b))},i.angleOfVector=function(a,s,l,u){var h=void 0;return a!==l?(h=Math.atan((u-s)/(l-a)),l=0){var v=(-m+Math.sqrt(m*m-4*p*g))/(2*p),x=(-m-Math.sqrt(m*m-4*p*g))/(2*p),b=null;return v>=0&&v<=1?[v]:x>=0&&x<=1?[x]:b}else return null},i.HALF_PI=.5*Math.PI,i.ONE_AND_HALF_PI=1.5*Math.PI,i.TWO_PI=2*Math.PI,i.THREE_PI=3*Math.PI,e.exports=i},function(e,t,r){"use strict";function n(){}o(n,"IMath"),n.sign=function(i){return i>0?1:i<0?-1:0},n.floor=function(i){return i<0?Math.ceil(i):Math.floor(i)},n.ceil=function(i){return i<0?Math.floor(i):Math.ceil(i)},e.exports=n},function(e,t,r){"use strict";function n(){}o(n,"Integer"),n.MAX_VALUE=2147483647,n.MIN_VALUE=-2147483648,e.exports=n},function(e,t,r){"use strict";var n=function(){function h(f,d){for(var p=0;p"u"?"undefined":n(a);return a==null||s!="object"&&s!="function"},e.exports=i},function(e,t,r){"use strict";function n(m){if(Array.isArray(m)){for(var g=0,y=Array(m.length);g0&&g;){for(w.push(T[0]);w.length>0&&g;){var E=w[0];w.splice(0,1),b.add(E);for(var _=E.getEdges(),x=0;x<_.length;x++){var A=_[x].getOtherEnd(E);if(S.get(E)!=A)if(!b.has(A))w.push(A),S.set(A,E);else{g=!1;break}}}if(!g)m=[];else{var L=[].concat(n(b));m.push(L);for(var x=0;x-1&&T.splice(N,1)}b=new Set,S=new Map}}return m},p.prototype.createDummyNodesForBendpoints=function(m){for(var g=[],y=m.source,v=this.graphManager.calcLowestCommonAncestor(m.source,m.target),x=0;x0){for(var v=this.edgeToDummyNodes.get(y),x=0;x=0&&g.splice(A,1);var L=S.getNeighborsList();L.forEach(function(k){if(y.indexOf(k)<0){var I=v.get(k),C=I-1;C==1&&E.push(k),v.set(k,C)}})}y=y.concat(E),(g.length==1||g.length==2)&&(x=!0,b=g[0])}return b},p.prototype.setGraphManager=function(m){this.graphManager=m},e.exports=p},function(e,t,r){"use strict";function n(){}o(n,"RandomSeed"),n.seed=1,n.x=0,n.nextDouble=function(){return n.x=Math.sin(n.seed++)*1e4,n.x-Math.floor(n.x)},e.exports=n},function(e,t,r){"use strict";var n=r(5);function i(a,s){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}o(i,"Transform"),i.prototype.getWorldOrgX=function(){return this.lworldOrgX},i.prototype.setWorldOrgX=function(a){this.lworldOrgX=a},i.prototype.getWorldOrgY=function(){return this.lworldOrgY},i.prototype.setWorldOrgY=function(a){this.lworldOrgY=a},i.prototype.getWorldExtX=function(){return this.lworldExtX},i.prototype.setWorldExtX=function(a){this.lworldExtX=a},i.prototype.getWorldExtY=function(){return this.lworldExtY},i.prototype.setWorldExtY=function(a){this.lworldExtY=a},i.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},i.prototype.setDeviceOrgX=function(a){this.ldeviceOrgX=a},i.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},i.prototype.setDeviceOrgY=function(a){this.ldeviceOrgY=a},i.prototype.getDeviceExtX=function(){return this.ldeviceExtX},i.prototype.setDeviceExtX=function(a){this.ldeviceExtX=a},i.prototype.getDeviceExtY=function(){return this.ldeviceExtY},i.prototype.setDeviceExtY=function(a){this.ldeviceExtY=a},i.prototype.transformX=function(a){var s=0,l=this.lworldExtX;return l!=0&&(s=this.ldeviceOrgX+(a-this.lworldOrgX)*this.ldeviceExtX/l),s},i.prototype.transformY=function(a){var s=0,l=this.lworldExtY;return l!=0&&(s=this.ldeviceOrgY+(a-this.lworldOrgY)*this.ldeviceExtY/l),s},i.prototype.inverseTransformX=function(a){var s=0,l=this.ldeviceExtX;return l!=0&&(s=this.lworldOrgX+(a-this.ldeviceOrgX)*this.lworldExtX/l),s},i.prototype.inverseTransformY=function(a){var s=0,l=this.ldeviceExtY;return l!=0&&(s=this.lworldOrgY+(a-this.ldeviceOrgY)*this.lworldExtY/l),s},i.prototype.inverseTransformPoint=function(a){var s=new n(this.inverseTransformX(a.x),this.inverseTransformY(a.y));return s},e.exports=i},function(e,t,r){"use strict";function n(d){if(Array.isArray(d)){for(var p=0,m=Array(d.length);pa.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*a.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(d-a.ADAPTATION_LOWER_NODE_LIMIT)/(a.ADAPTATION_UPPER_NODE_LIMIT-a.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-a.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=a.MAX_NODE_DISPLACEMENT_INCREMENTAL):(d>a.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(a.COOLING_ADAPTATION_FACTOR,1-(d-a.ADAPTATION_LOWER_NODE_LIMIT)/(a.ADAPTATION_UPPER_NODE_LIMIT-a.ADAPTATION_LOWER_NODE_LIMIT)*(1-a.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=a.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.displacementThresholdPerNode=3*a.DEFAULT_EDGE_LENGTH/100,this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},h.prototype.calcSpringForces=function(){for(var d=this.getAllEdges(),p,m=0;m0&&arguments[0]!==void 0?arguments[0]:!0,p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,m,g,y,v,x=this.getAllNodes(),b;if(this.useFRGridVariant)for(this.totalIterations%a.GRID_CALCULATION_CHECK_PERIOD==1&&d&&this.updateGrid(),b=new Set,m=0;mw||b>w)&&(d.gravitationForceX=-this.gravityConstant*y,d.gravitationForceY=-this.gravityConstant*v)):(w=p.getEstimatedSize()*this.compoundGravityRangeFactor,(x>w||b>w)&&(d.gravitationForceX=-this.gravityConstant*y*this.compoundGravityConstant,d.gravitationForceY=-this.gravityConstant*v*this.compoundGravityConstant))},h.prototype.isConverged=function(){var d,p=!1;return this.totalIterations>this.maxIterations/3&&(p=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),d=this.totalDisplacement=x.length||w>=x[0].length)){for(var S=0;Sh},"_defaultCompareFunction")}]),l}();e.exports=s},function(e,t,r){"use strict";function n(){}o(n,"SVD"),n.svd=function(i){this.U=null,this.V=null,this.s=null,this.m=0,this.n=0,this.m=i.length,this.n=i[0].length;var a=Math.min(this.m,this.n);this.s=function(fe){for(var ee=[];fe-- >0;)ee.push(0);return ee}(Math.min(this.m+1,this.n)),this.U=function(fe){var ee=o(function pe(Me){if(Me.length==0)return 0;for(var oe=[],qe=0;qe0;)ee.push(0);return ee}(this.n),l=function(fe){for(var ee=[];fe-- >0;)ee.push(0);return ee}(this.m),u=!0,h=!0,f=Math.min(this.m-1,this.n),d=Math.max(0,Math.min(this.n-2,this.m)),p=0;p=0;D--)if(this.s[D]!==0){for(var P=D+1;P=0;j--){if(function(fe,ee){return fe&&ee}(j0;){var ut=void 0,et=void 0;for(ut=I-2;ut>=-1&&ut!==-1;ut--)if(Math.abs(s[ut])<=ct+ot*(Math.abs(this.s[ut])+Math.abs(this.s[ut+1]))){s[ut]=0;break}if(ut===I-2)et=4;else{var Mt=void 0;for(Mt=I-1;Mt>=ut&&Mt!==ut;Mt--){var it=(Mt!==I?Math.abs(s[Mt]):0)+(Mt!==ut+1?Math.abs(s[Mt-1]):0);if(Math.abs(this.s[Mt])<=ct+ot*it){this.s[Mt]=0;break}}Mt===ut?et=3:Mt===I-1?et=1:(et=2,ut=Mt)}switch(ut++,et){case 1:{var wt=s[I-2];s[I-2]=0;for(var Ot=I-2;Ot>=ut;Ot--){var St=n.hypot(this.s[Ot],wt),Vt=this.s[Ot]/St,Pt=wt/St;if(this.s[Ot]=St,Ot!==ut&&(wt=-Pt*s[Ot-1],s[Ot-1]=Vt*s[Ot-1]),h)for(var _t=0;_t=this.s[ut+1]);){var ne=this.s[ut];if(this.s[ut]=this.s[ut+1],this.s[ut+1]=ne,h&&utMath.abs(a)?(s=a/i,s=Math.abs(i)*Math.sqrt(1+s*s)):a!=0?(s=i/a,s=Math.abs(a)*Math.sqrt(1+s*s)):s=0,s},e.exports=n},function(e,t,r){"use strict";var n=function(){function s(l,u){for(var h=0;h2&&arguments[2]!==void 0?arguments[2]:1,f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,d=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;i(this,s),this.sequence1=l,this.sequence2=u,this.match_score=h,this.mismatch_penalty=f,this.gap_penalty=d,this.iMax=l.length+1,this.jMax=u.length+1,this.grid=new Array(this.iMax);for(var p=0;p=0;l--){var u=this.listeners[l];u.event===a&&u.callback===s&&this.listeners.splice(l,1)}},i.emit=function(a,s){for(var l=0;l{"use strict";o(function(t,r){typeof Wb=="object"&&typeof oz=="object"?oz.exports=r(sz()):typeof define=="function"&&define.amd?define(["layout-base"],r):typeof Wb=="object"?Wb.coseBase=r(sz()):t.coseBase=r(t.layoutBase)},"webpackUniversalModuleDefinition")(Wb,function(e){return(()=>{"use strict";var t={45:(a,s,l)=>{var u={};u.layoutBase=l(551),u.CoSEConstants=l(806),u.CoSEEdge=l(767),u.CoSEGraph=l(880),u.CoSEGraphManager=l(578),u.CoSELayout=l(765),u.CoSENode=l(991),u.ConstraintHandler=l(902),a.exports=u},806:(a,s,l)=>{var u=l(551).FDLayoutConstants;function h(){}o(h,"CoSEConstants");for(var f in u)h[f]=u[f];h.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,h.DEFAULT_RADIAL_SEPARATION=u.DEFAULT_EDGE_LENGTH,h.DEFAULT_COMPONENT_SEPERATION=60,h.TILE=!0,h.TILING_PADDING_VERTICAL=10,h.TILING_PADDING_HORIZONTAL=10,h.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,h.ENFORCE_CONSTRAINTS=!0,h.APPLY_LAYOUT=!0,h.RELAX_MOVEMENT_ON_CONSTRAINTS=!0,h.TREE_REDUCTION_ON_INCREMENTAL=!0,h.PURE_INCREMENTAL=h.DEFAULT_INCREMENTAL,a.exports=h},767:(a,s,l)=>{var u=l(551).FDLayoutEdge;function h(d,p,m){u.call(this,d,p,m)}o(h,"CoSEEdge"),h.prototype=Object.create(u.prototype);for(var f in u)h[f]=u[f];a.exports=h},880:(a,s,l)=>{var u=l(551).LGraph;function h(d,p,m){u.call(this,d,p,m)}o(h,"CoSEGraph"),h.prototype=Object.create(u.prototype);for(var f in u)h[f]=u[f];a.exports=h},578:(a,s,l)=>{var u=l(551).LGraphManager;function h(d){u.call(this,d)}o(h,"CoSEGraphManager"),h.prototype=Object.create(u.prototype);for(var f in u)h[f]=u[f];a.exports=h},765:(a,s,l)=>{var u=l(551).FDLayout,h=l(578),f=l(880),d=l(991),p=l(767),m=l(806),g=l(902),y=l(551).FDLayoutConstants,v=l(551).LayoutConstants,x=l(551).Point,b=l(551).PointD,w=l(551).DimensionD,S=l(551).Layout,T=l(551).Integer,E=l(551).IGeometry,_=l(551).LGraph,A=l(551).Transform,L=l(551).LinkedList;function M(){u.call(this),this.toBeTiled={},this.constraints={}}o(M,"CoSELayout"),M.prototype=Object.create(u.prototype);for(var N in u)M[N]=u[N];M.prototype.newGraphManager=function(){var k=new h(this);return this.graphManager=k,k},M.prototype.newGraph=function(k){return new f(null,this.graphManager,k)},M.prototype.newNode=function(k){return new d(this.graphManager,k)},M.prototype.newEdge=function(k){return new p(null,null,k)},M.prototype.initParameters=function(){u.prototype.initParameters.call(this,arguments),this.isSubLayout||(m.DEFAULT_EDGE_LENGTH<10?this.idealEdgeLength=10:this.idealEdgeLength=m.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=m.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.gravityConstant=y.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=y.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=y.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=y.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.prunedNodesAll=[],this.growTreeIterations=0,this.afterGrowthIterations=0,this.isTreeGrowing=!1,this.isGrowthFinished=!1)},M.prototype.initSpringEmbedder=function(){u.prototype.initSpringEmbedder.call(this),this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/y.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=.04,this.coolingAdjuster=1},M.prototype.layout=function(){var k=v.DEFAULT_CREATE_BENDS_AS_NEEDED;return k&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},M.prototype.classicLayout=function(){if(this.nodesWithGravity=this.calculateNodesToApplyGravitationTo(),this.graphManager.setAllNodesToApplyGravitation(this.nodesWithGravity),this.calcNoOfChildrenForAllNodes(),this.graphManager.calcLowestCommonAncestors(),this.graphManager.calcInclusionTreeDepths(),this.graphManager.getRoot().calcEstimatedSize(),this.calcIdealEdgeLengths(),this.incremental){if(m.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var I=new Set(this.getAllNodes()),C=this.nodesWithGravity.filter(function(P){return I.has(P)});this.graphManager.setAllNodesToApplyGravitation(C)}}else{var k=this.getFlatForest();if(k.length>0)this.positionNodesRadially(k);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var I=new Set(this.getAllNodes()),C=this.nodesWithGravity.filter(function(O){return I.has(O)});this.graphManager.setAllNodesToApplyGravitation(C),this.positionNodesRandomly()}}return Object.keys(this.constraints).length>0&&(g.handleConstraints(this),this.initConstraintVariables()),this.initSpringEmbedder(),m.APPLY_LAYOUT&&this.runSpringEmbedder(),!0},M.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%y.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var k=new Set(this.getAllNodes()),I=this.nodesWithGravity.filter(function(D){return k.has(D)});this.graphManager.setAllNodesToApplyGravitation(I),this.graphManager.updateBounds(),this.updateGrid(),m.PURE_INCREMENTAL?this.coolingFactor=y.DEFAULT_COOLING_FACTOR_INCREMENTAL/2:this.coolingFactor=y.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),m.PURE_INCREMENTAL?this.coolingFactor=y.DEFAULT_COOLING_FACTOR_INCREMENTAL/2*((100-this.afterGrowthIterations)/100):this.coolingFactor=y.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var C=!this.isTreeGrowing&&!this.isGrowthFinished,O=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(C,O),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},M.prototype.getPositionsData=function(){for(var k=this.graphManager.getAllNodes(),I={},C=0;C0&&this.updateDisplacements();for(var C=0;C0&&(O.fixedNodeWeight=P)}}if(this.constraints.relativePlacementConstraint){var F=new Map,B=new Map;if(this.dummyToNodeForVerticalAlignment=new Map,this.dummyToNodeForHorizontalAlignment=new Map,this.fixedNodesOnHorizontal=new Set,this.fixedNodesOnVertical=new Set,this.fixedNodeSet.forEach(function(J){k.fixedNodesOnHorizontal.add(J),k.fixedNodesOnVertical.add(J)}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var G=this.constraints.alignmentConstraint.vertical,C=0;C=2*J.length/3;q--)Z=Math.floor(Math.random()*(q+1)),H=J[q],J[q]=J[Z],J[Z]=H;return J},this.nodesInRelativeHorizontal=[],this.nodesInRelativeVertical=[],this.nodeToRelativeConstraintMapHorizontal=new Map,this.nodeToRelativeConstraintMapVertical=new Map,this.nodeToTempPositionMapHorizontal=new Map,this.nodeToTempPositionMapVertical=new Map,this.constraints.relativePlacementConstraint.forEach(function(J){if(J.left){var Z=F.has(J.left)?F.get(J.left):J.left,H=F.has(J.right)?F.get(J.right):J.right;k.nodesInRelativeHorizontal.includes(Z)||(k.nodesInRelativeHorizontal.push(Z),k.nodeToRelativeConstraintMapHorizontal.set(Z,[]),k.dummyToNodeForVerticalAlignment.has(Z)?k.nodeToTempPositionMapHorizontal.set(Z,k.idToNodeMap.get(k.dummyToNodeForVerticalAlignment.get(Z)[0]).getCenterX()):k.nodeToTempPositionMapHorizontal.set(Z,k.idToNodeMap.get(Z).getCenterX())),k.nodesInRelativeHorizontal.includes(H)||(k.nodesInRelativeHorizontal.push(H),k.nodeToRelativeConstraintMapHorizontal.set(H,[]),k.dummyToNodeForVerticalAlignment.has(H)?k.nodeToTempPositionMapHorizontal.set(H,k.idToNodeMap.get(k.dummyToNodeForVerticalAlignment.get(H)[0]).getCenterX()):k.nodeToTempPositionMapHorizontal.set(H,k.idToNodeMap.get(H).getCenterX())),k.nodeToRelativeConstraintMapHorizontal.get(Z).push({right:H,gap:J.gap}),k.nodeToRelativeConstraintMapHorizontal.get(H).push({left:Z,gap:J.gap})}else{var q=B.has(J.top)?B.get(J.top):J.top,K=B.has(J.bottom)?B.get(J.bottom):J.bottom;k.nodesInRelativeVertical.includes(q)||(k.nodesInRelativeVertical.push(q),k.nodeToRelativeConstraintMapVertical.set(q,[]),k.dummyToNodeForHorizontalAlignment.has(q)?k.nodeToTempPositionMapVertical.set(q,k.idToNodeMap.get(k.dummyToNodeForHorizontalAlignment.get(q)[0]).getCenterY()):k.nodeToTempPositionMapVertical.set(q,k.idToNodeMap.get(q).getCenterY())),k.nodesInRelativeVertical.includes(K)||(k.nodesInRelativeVertical.push(K),k.nodeToRelativeConstraintMapVertical.set(K,[]),k.dummyToNodeForHorizontalAlignment.has(K)?k.nodeToTempPositionMapVertical.set(K,k.idToNodeMap.get(k.dummyToNodeForHorizontalAlignment.get(K)[0]).getCenterY()):k.nodeToTempPositionMapVertical.set(K,k.idToNodeMap.get(K).getCenterY())),k.nodeToRelativeConstraintMapVertical.get(q).push({bottom:K,gap:J.gap}),k.nodeToRelativeConstraintMapVertical.get(K).push({top:q,gap:J.gap})}});else{var W=new Map,Q=new Map;this.constraints.relativePlacementConstraint.forEach(function(J){if(J.left){var Z=F.has(J.left)?F.get(J.left):J.left,H=F.has(J.right)?F.get(J.right):J.right;W.has(Z)?W.get(Z).push(H):W.set(Z,[H]),W.has(H)?W.get(H).push(Z):W.set(H,[Z])}else{var q=B.has(J.top)?B.get(J.top):J.top,K=B.has(J.bottom)?B.get(J.bottom):J.bottom;Q.has(q)?Q.get(q).push(K):Q.set(q,[K]),Q.has(K)?Q.get(K).push(q):Q.set(K,[q])}});var j=o(function(Z,H){var q=[],K=[],ot=new L,ct=new Set,ut=0;return Z.forEach(function(et,Mt){if(!ct.has(Mt)){q[ut]=[],K[ut]=!1;var it=Mt;for(ot.push(it),ct.add(it),q[ut].push(it);ot.length!=0;){it=ot.shift(),H.has(it)&&(K[ut]=!0);var wt=Z.get(it);wt.forEach(function(Ot){ct.has(Ot)||(ot.push(Ot),ct.add(Ot),q[ut].push(Ot))})}ut++}}),{components:q,isFixed:K}},"constructComponents"),at=j(W,k.fixedNodesOnHorizontal);this.componentsOnHorizontal=at.components,this.fixedComponentsOnHorizontal=at.isFixed;var X=j(Q,k.fixedNodesOnVertical);this.componentsOnVertical=X.components,this.fixedComponentsOnVertical=X.isFixed}}},M.prototype.updateDisplacements=function(){var k=this;if(this.constraints.fixedNodeConstraint&&this.constraints.fixedNodeConstraint.forEach(function(X){var J=k.idToNodeMap.get(X.nodeId);J.displacementX=0,J.displacementY=0}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var I=this.constraints.alignmentConstraint.vertical,C=0;C1){var B;for(B=0;BO&&(O=Math.floor(F.y)),P=Math.floor(F.x+m.DEFAULT_COMPONENT_SEPERATION)}this.transform(new b(v.WORLD_CENTER_X-F.x/2,v.WORLD_CENTER_Y-F.y/2))},M.radialLayout=function(k,I,C){var O=Math.max(this.maxDiagonalInTree(k),m.DEFAULT_RADIAL_SEPARATION);M.branchRadialLayout(I,null,0,359,0,O);var D=_.calculateBounds(k),P=new A;P.setDeviceOrgX(D.getMinX()),P.setDeviceOrgY(D.getMinY()),P.setWorldOrgX(C.x),P.setWorldOrgY(C.y);for(var F=0;F1;){var q=H[0];H.splice(0,1);var K=j.indexOf(q);K>=0&&j.splice(K,1),J--,at--}I!=null?Z=(j.indexOf(H[0])+1)%J:Z=0;for(var ot=Math.abs(O-C)/at,ct=Z;X!=at;ct=++ct%J){var ut=j[ct].getOtherEnd(k);if(ut!=I){var et=(C+X*ot)%360,Mt=(et+ot)%360;M.branchRadialLayout(ut,k,et,Mt,D+P,P),X++}}},M.maxDiagonalInTree=function(k){for(var I=T.MIN_VALUE,C=0;CI&&(I=D)}return I},M.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},M.prototype.groupZeroDegreeMembers=function(){var k=this,I={};this.memberGroups={},this.idToDummyNode={};for(var C=[],O=this.graphManager.getAllNodes(),D=0;D"u"&&(I[B]=[]),I[B]=I[B].concat(P)}Object.keys(I).forEach(function(G){if(I[G].length>1){var z="DummyCompound_"+G;k.memberGroups[z]=I[G];var W=I[G][0].getParent(),Q=new d(k.graphManager);Q.id=z,Q.paddingLeft=W.paddingLeft||0,Q.paddingRight=W.paddingRight||0,Q.paddingBottom=W.paddingBottom||0,Q.paddingTop=W.paddingTop||0,k.idToDummyNode[z]=Q;var j=k.getGraphManager().add(k.newGraph(),Q),at=W.getChild();at.add(Q);for(var X=0;XD?(O.rect.x-=(O.labelWidth-D)/2,O.setWidth(O.labelWidth),O.labelMarginLeft=(O.labelWidth-D)/2):O.labelPosHorizontal=="right"&&O.setWidth(D+O.labelWidth)),O.labelHeight&&(O.labelPosVertical=="top"?(O.rect.y-=O.labelHeight,O.setHeight(P+O.labelHeight),O.labelMarginTop=O.labelHeight):O.labelPosVertical=="center"&&O.labelHeight>P?(O.rect.y-=(O.labelHeight-P)/2,O.setHeight(O.labelHeight),O.labelMarginTop=(O.labelHeight-P)/2):O.labelPosVertical=="bottom"&&O.setHeight(P+O.labelHeight))}})},M.prototype.repopulateCompounds=function(){for(var k=this.compoundOrder.length-1;k>=0;k--){var I=this.compoundOrder[k],C=I.id,O=I.paddingLeft,D=I.paddingTop,P=I.labelMarginLeft,F=I.labelMarginTop;this.adjustLocations(this.tiledMemberPack[C],I.rect.x,I.rect.y,O,D,P,F)}},M.prototype.repopulateZeroDegreeMembers=function(){var k=this,I=this.tiledZeroDegreePack;Object.keys(I).forEach(function(C){var O=k.idToDummyNode[C],D=O.paddingLeft,P=O.paddingTop,F=O.labelMarginLeft,B=O.labelMarginTop;k.adjustLocations(I[C],O.rect.x,O.rect.y,D,P,F,B)})},M.prototype.getToBeTiled=function(k){var I=k.id;if(this.toBeTiled[I]!=null)return this.toBeTiled[I];var C=k.getChild();if(C==null)return this.toBeTiled[I]=!1,!1;for(var O=C.getNodes(),D=0;D0)return this.toBeTiled[I]=!1,!1;if(P.getChild()==null){this.toBeTiled[P.id]=!1;continue}if(!this.getToBeTiled(P))return this.toBeTiled[I]=!1,!1}return this.toBeTiled[I]=!0,!0},M.prototype.getNodeDegree=function(k){for(var I=k.id,C=k.getEdges(),O=0,D=0;DW&&(W=j.rect.height)}C+=W+k.verticalPadding}},M.prototype.tileCompoundMembers=function(k,I){var C=this;this.tiledMemberPack=[],Object.keys(k).forEach(function(O){var D=I[O];if(C.tiledMemberPack[O]=C.tileNodes(k[O],D.paddingLeft+D.paddingRight),D.rect.width=C.tiledMemberPack[O].width,D.rect.height=C.tiledMemberPack[O].height,D.setCenter(C.tiledMemberPack[O].centerX,C.tiledMemberPack[O].centerY),D.labelMarginLeft=0,D.labelMarginTop=0,m.NODE_DIMENSIONS_INCLUDE_LABELS){var P=D.rect.width,F=D.rect.height;D.labelWidth&&(D.labelPosHorizontal=="left"?(D.rect.x-=D.labelWidth,D.setWidth(P+D.labelWidth),D.labelMarginLeft=D.labelWidth):D.labelPosHorizontal=="center"&&D.labelWidth>P?(D.rect.x-=(D.labelWidth-P)/2,D.setWidth(D.labelWidth),D.labelMarginLeft=(D.labelWidth-P)/2):D.labelPosHorizontal=="right"&&D.setWidth(P+D.labelWidth)),D.labelHeight&&(D.labelPosVertical=="top"?(D.rect.y-=D.labelHeight,D.setHeight(F+D.labelHeight),D.labelMarginTop=D.labelHeight):D.labelPosVertical=="center"&&D.labelHeight>F?(D.rect.y-=(D.labelHeight-F)/2,D.setHeight(D.labelHeight),D.labelMarginTop=(D.labelHeight-F)/2):D.labelPosVertical=="bottom"&&D.setHeight(F+D.labelHeight))}})},M.prototype.tileNodes=function(k,I){var C=this.tileNodesByFavoringDim(k,I,!0),O=this.tileNodesByFavoringDim(k,I,!1),D=this.getOrgRatio(C),P=this.getOrgRatio(O),F;return PB&&(B=X.getWidth())});var G=P/D,z=F/D,W=Math.pow(C-O,2)+4*(G+O)*(z+C)*D,Q=(O-C+Math.sqrt(W))/(2*(G+O)),j;I?(j=Math.ceil(Q),j==Q&&j++):j=Math.floor(Q);var at=j*(G+O)-O;return B>at&&(at=B),at+=O*2,at},M.prototype.tileNodesByFavoringDim=function(k,I,C){var O=m.TILING_PADDING_VERTICAL,D=m.TILING_PADDING_HORIZONTAL,P=m.TILING_COMPARE_BY,F={rows:[],rowWidth:[],rowHeight:[],width:0,height:I,verticalPadding:O,horizontalPadding:D,centerX:0,centerY:0};P&&(F.idealRowWidth=this.calcIdealRowWidth(k,C));var B=o(function(J){return J.rect.width*J.rect.height},"getNodeArea"),G=o(function(J,Z){return B(Z)-B(J)},"areaCompareFcn");k.sort(function(X,J){var Z=G;return F.idealRowWidth?(Z=P,Z(X.id,J.id)):Z(X,J)});for(var z=0,W=0,Q=0;Q0&&(F+=k.horizontalPadding),k.rowWidth[C]=F,k.width0&&(B+=k.verticalPadding);var G=0;B>k.rowHeight[C]&&(G=k.rowHeight[C],k.rowHeight[C]=B,G=k.rowHeight[C]-G),k.height+=G,k.rows[C].push(I)},M.prototype.getShortestRowIndex=function(k){for(var I=-1,C=Number.MAX_VALUE,O=0;OC&&(I=O,C=k.rowWidth[O]);return I},M.prototype.canAddHorizontal=function(k,I,C){if(k.idealRowWidth){var O=k.rows.length-1,D=k.rowWidth[O];return D+I+k.horizontalPadding<=k.idealRowWidth}var P=this.getShortestRowIndex(k);if(P<0)return!0;var F=k.rowWidth[P];if(F+k.horizontalPadding+I<=k.width)return!0;var B=0;k.rowHeight[P]0&&(B=C+k.verticalPadding-k.rowHeight[P]);var G;k.width-F>=I+k.horizontalPadding?G=(k.height+B)/(F+I+k.horizontalPadding):G=(k.height+B)/k.width,B=C+k.verticalPadding;var z;return k.widthP&&I!=C){O.splice(-1,1),k.rows[C].push(D),k.rowWidth[I]=k.rowWidth[I]-P,k.rowWidth[C]=k.rowWidth[C]+P,k.width=k.rowWidth[instance.getLongestRowIndex(k)];for(var F=Number.MIN_VALUE,B=0;BF&&(F=O[B].height);I>0&&(F+=k.verticalPadding);var G=k.rowHeight[I]+k.rowHeight[C];k.rowHeight[I]=F,k.rowHeight[C]0)for(var at=D;at<=P;at++)j[0]+=this.grid[at][F-1].length+this.grid[at][F].length-1;if(P0)for(var at=F;at<=B;at++)j[3]+=this.grid[D-1][at].length+this.grid[D][at].length-1;for(var X=T.MAX_VALUE,J,Z,H=0;H{var u=l(551).FDLayoutNode,h=l(551).IMath;function f(p,m,g,y){u.call(this,p,m,g,y)}o(f,"CoSENode"),f.prototype=Object.create(u.prototype);for(var d in u)f[d]=u[d];f.prototype.calculateDisplacement=function(){var p=this.graphManager.getLayout();this.getChild()!=null&&this.fixedNodeWeight?(this.displacementX+=p.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.fixedNodeWeight,this.displacementY+=p.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.fixedNodeWeight):(this.displacementX+=p.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY+=p.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren),Math.abs(this.displacementX)>p.coolingFactor*p.maxNodeDisplacement&&(this.displacementX=p.coolingFactor*p.maxNodeDisplacement*h.sign(this.displacementX)),Math.abs(this.displacementY)>p.coolingFactor*p.maxNodeDisplacement&&(this.displacementY=p.coolingFactor*p.maxNodeDisplacement*h.sign(this.displacementY)),this.child&&this.child.getNodes().length>0&&this.propogateDisplacementToChildren(this.displacementX,this.displacementY)},f.prototype.propogateDisplacementToChildren=function(p,m){for(var g=this.getChild().getNodes(),y,v=0;v{function u(g){if(Array.isArray(g)){for(var y=0,v=Array(g.length);y0){var me=0;Zt.forEach(function(ne){Tt=="horizontal"?(yt.set(ne,x.has(ne)?b[x.get(ne)]:Ct.get(ne)),me+=yt.get(ne)):(yt.set(ne,x.has(ne)?w[x.get(ne)]:Ct.get(ne)),me+=yt.get(ne))}),me=me/Zt.length,le.forEach(function(ne){kt.has(ne)||yt.set(ne,me)})}else{var Ht=0;le.forEach(function(ne){Tt=="horizontal"?Ht+=x.has(ne)?b[x.get(ne)]:Ct.get(ne):Ht+=x.has(ne)?w[x.get(ne)]:Ct.get(ne)}),Ht=Ht/le.length,le.forEach(function(ne){yt.set(ne,Ht)})}});for(var ae=o(function(){var Zt=zt.shift(),me=st.get(Zt);me.forEach(function(Ht){if(yt.get(Ht.id)ne&&(ne=oe),qexe&&(xe=qe)}}catch(Pn){Ye=!0,fe=Pn}finally{try{!Se&&ee.return&&ee.return()}finally{if(Ye)throw fe}}var Cr=(me+ne)/2-(Ht+xe)/2,En=!0,or=!1,ln=void 0;try{for(var Ir=le[Symbol.iterator](),ii;!(En=(ii=Ir.next()).done);En=!0){var mn=ii.value;yt.set(mn,yt.get(mn)+Cr)}}catch(Pn){or=!0,ln=Pn}finally{try{!En&&Ir.return&&Ir.return()}finally{if(or)throw ln}}})}return yt},"findAppropriatePositionForRelativePlacement"),N=o(function(st){var Tt=0,kt=0,Ct=0,At=0;if(st.forEach(function(Ut){Ut.left?b[x.get(Ut.left)]-b[x.get(Ut.right)]>=0?Tt++:kt++:w[x.get(Ut.top)]-w[x.get(Ut.bottom)]>=0?Ct++:At++}),Tt>kt&&Ct>At)for(var $t=0;$tkt)for(var Nt=0;NtAt)for(var yt=0;yt1)y.fixedNodeConstraint.forEach(function(nt,st){O[st]=[nt.position.x,nt.position.y],D[st]=[b[x.get(nt.nodeId)],w[x.get(nt.nodeId)]]}),P=!0;else if(y.alignmentConstraint)(function(){var nt=0;if(y.alignmentConstraint.vertical){for(var st=y.alignmentConstraint.vertical,Tt=o(function(yt){var Ut=new Set;st[yt].forEach(function(ke){Ut.add(ke)});var zt=new Set([].concat(u(Ut)).filter(function(ke){return B.has(ke)})),ae=void 0;zt.size>0?ae=b[x.get(zt.values().next().value)]:ae=L(Ut).x,st[yt].forEach(function(ke){O[nt]=[ae,w[x.get(ke)]],D[nt]=[b[x.get(ke)],w[x.get(ke)]],nt++})},"_loop2"),kt=0;kt0?ae=b[x.get(zt.values().next().value)]:ae=L(Ut).y,Ct[yt].forEach(function(ke){O[nt]=[b[x.get(ke)],ae],D[nt]=[b[x.get(ke)],w[x.get(ke)]],nt++})},"_loop3"),$t=0;$tQ&&(Q=W[at].length,j=at);if(Q0){var Vt={x:0,y:0};y.fixedNodeConstraint.forEach(function(nt,st){var Tt={x:b[x.get(nt.nodeId)],y:w[x.get(nt.nodeId)]},kt=nt.position,Ct=A(kt,Tt);Vt.x+=Ct.x,Vt.y+=Ct.y}),Vt.x/=y.fixedNodeConstraint.length,Vt.y/=y.fixedNodeConstraint.length,b.forEach(function(nt,st){b[st]+=Vt.x}),w.forEach(function(nt,st){w[st]+=Vt.y}),y.fixedNodeConstraint.forEach(function(nt){b[x.get(nt.nodeId)]=nt.position.x,w[x.get(nt.nodeId)]=nt.position.y})}if(y.alignmentConstraint){if(y.alignmentConstraint.vertical)for(var Pt=y.alignmentConstraint.vertical,_t=o(function(st){var Tt=new Set;Pt[st].forEach(function(At){Tt.add(At)});var kt=new Set([].concat(u(Tt)).filter(function(At){return B.has(At)})),Ct=void 0;kt.size>0?Ct=b[x.get(kt.values().next().value)]:Ct=L(Tt).x,Tt.forEach(function(At){B.has(At)||(b[x.get(At)]=Ct)})},"_loop4"),dt=0;dt0?Ct=w[x.get(kt.values().next().value)]:Ct=L(Tt).y,Tt.forEach(function(At){B.has(At)||(w[x.get(At)]=Ct)})},"_loop5"),mt=0;mt{a.exports=e}},r={};function n(a){var s=r[a];if(s!==void 0)return s.exports;var l=r[a]={exports:{}};return t[a](l,l.exports,n),l.exports}o(n,"__webpack_require__");var i=n(45);return i})()})});var c2t=Ti((Yb,cz)=>{"use strict";o(function(t,r){typeof Yb=="object"&&typeof cz=="object"?cz.exports=r(lz()):typeof define=="function"&&define.amd?define(["cose-base"],r):typeof Yb=="object"?Yb.cytoscapeFcose=r(lz()):t.cytoscapeFcose=r(t.coseBase)},"webpackUniversalModuleDefinition")(Yb,function(e){return(()=>{"use strict";var t={658:a=>{a.exports=Object.assign!=null?Object.assign.bind(Object):function(s){for(var l=arguments.length,u=Array(l>1?l-1:0),h=1;h{var u=function(){function d(p,m){var g=[],y=!0,v=!1,x=void 0;try{for(var b=p[Symbol.iterator](),w;!(y=(w=b.next()).done)&&(g.push(w.value),!(m&&g.length===m));y=!0);}catch(S){v=!0,x=S}finally{try{!y&&b.return&&b.return()}finally{if(v)throw x}}return g}return o(d,"sliceIterator"),function(p,m){if(Array.isArray(p))return p;if(Symbol.iterator in Object(p))return d(p,m);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),h=l(140).layoutBase.LinkedList,f={};f.getTopMostNodes=function(d){for(var p={},m=0;m0&&P.merge(z)});for(var F=0;F1){w=x[0],S=w.connectedEdges().length,x.forEach(function(D){D.connectedEdges().length0&&g.set("dummy"+(g.size+1),_),A},f.relocateComponent=function(d,p,m){if(!m.fixedNodeConstraint){var g=Number.POSITIVE_INFINITY,y=Number.NEGATIVE_INFINITY,v=Number.POSITIVE_INFINITY,x=Number.NEGATIVE_INFINITY;if(m.quality=="draft"){var b=!0,w=!1,S=void 0;try{for(var T=p.nodeIndexes[Symbol.iterator](),E;!(b=(E=T.next()).done);b=!0){var _=E.value,A=u(_,2),L=A[0],M=A[1],N=m.cy.getElementById(L);if(N){var k=N.boundingBox(),I=p.xCoords[M]-k.w/2,C=p.xCoords[M]+k.w/2,O=p.yCoords[M]-k.h/2,D=p.yCoords[M]+k.h/2;Iy&&(y=C),Ox&&(x=D)}}}catch(z){w=!0,S=z}finally{try{!b&&T.return&&T.return()}finally{if(w)throw S}}var P=d.x-(y+g)/2,F=d.y-(x+v)/2;p.xCoords=p.xCoords.map(function(z){return z+P}),p.yCoords=p.yCoords.map(function(z){return z+F})}else{Object.keys(p).forEach(function(z){var W=p[z],Q=W.getRect().x,j=W.getRect().x+W.getRect().width,at=W.getRect().y,X=W.getRect().y+W.getRect().height;Qy&&(y=j),atx&&(x=X)});var B=d.x-(y+g)/2,G=d.y-(x+v)/2;Object.keys(p).forEach(function(z){var W=p[z];W.setCenter(W.getCenterX()+B,W.getCenterY()+G)})}}},f.calcBoundingBox=function(d,p,m,g){for(var y=Number.MAX_SAFE_INTEGER,v=Number.MIN_SAFE_INTEGER,x=Number.MAX_SAFE_INTEGER,b=Number.MIN_SAFE_INTEGER,w=void 0,S=void 0,T=void 0,E=void 0,_=d.descendants().not(":parent"),A=_.length,L=0;Lw&&(y=w),vT&&(x=T),b{var u=l(548),h=l(140).CoSELayout,f=l(140).CoSENode,d=l(140).layoutBase.PointD,p=l(140).layoutBase.DimensionD,m=l(140).layoutBase.LayoutConstants,g=l(140).layoutBase.FDLayoutConstants,y=l(140).CoSEConstants,v=o(function(b,w){var S=b.cy,T=b.eles,E=T.nodes(),_=T.edges(),A=void 0,L=void 0,M=void 0,N={};b.randomize&&(A=w.nodeIndexes,L=w.xCoords,M=w.yCoords);var k=o(function(z){return typeof z=="function"},"isFn"),I=o(function(z,W){return k(z)?z(W):z},"optFn"),C=u.calcParentsWithoutChildren(S,T),O=o(function G(z,W,Q,j){for(var at=W.length,X=0;X0){var ot=void 0;ot=Q.getGraphManager().add(Q.newGraph(),H),G(ot,Z,Q,j)}}},"processChildrenList"),D=o(function(z,W,Q){for(var j=0,at=0,X=0;X0?y.DEFAULT_EDGE_LENGTH=g.DEFAULT_EDGE_LENGTH=j/at:k(b.idealEdgeLength)?y.DEFAULT_EDGE_LENGTH=g.DEFAULT_EDGE_LENGTH=50:y.DEFAULT_EDGE_LENGTH=g.DEFAULT_EDGE_LENGTH=b.idealEdgeLength,y.MIN_REPULSION_DIST=g.MIN_REPULSION_DIST=g.DEFAULT_EDGE_LENGTH/10,y.DEFAULT_RADIAL_SEPARATION=g.DEFAULT_EDGE_LENGTH)},"processEdges"),P=o(function(z,W){W.fixedNodeConstraint&&(z.constraints.fixedNodeConstraint=W.fixedNodeConstraint),W.alignmentConstraint&&(z.constraints.alignmentConstraint=W.alignmentConstraint),W.relativePlacementConstraint&&(z.constraints.relativePlacementConstraint=W.relativePlacementConstraint)},"processConstraints");b.nestingFactor!=null&&(y.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=g.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=b.nestingFactor),b.gravity!=null&&(y.DEFAULT_GRAVITY_STRENGTH=g.DEFAULT_GRAVITY_STRENGTH=b.gravity),b.numIter!=null&&(y.MAX_ITERATIONS=g.MAX_ITERATIONS=b.numIter),b.gravityRange!=null&&(y.DEFAULT_GRAVITY_RANGE_FACTOR=g.DEFAULT_GRAVITY_RANGE_FACTOR=b.gravityRange),b.gravityCompound!=null&&(y.DEFAULT_COMPOUND_GRAVITY_STRENGTH=g.DEFAULT_COMPOUND_GRAVITY_STRENGTH=b.gravityCompound),b.gravityRangeCompound!=null&&(y.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=g.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=b.gravityRangeCompound),b.initialEnergyOnIncremental!=null&&(y.DEFAULT_COOLING_FACTOR_INCREMENTAL=g.DEFAULT_COOLING_FACTOR_INCREMENTAL=b.initialEnergyOnIncremental),b.tilingCompareBy!=null&&(y.TILING_COMPARE_BY=b.tilingCompareBy),b.quality=="proof"?m.QUALITY=2:m.QUALITY=0,y.NODE_DIMENSIONS_INCLUDE_LABELS=g.NODE_DIMENSIONS_INCLUDE_LABELS=m.NODE_DIMENSIONS_INCLUDE_LABELS=b.nodeDimensionsIncludeLabels,y.DEFAULT_INCREMENTAL=g.DEFAULT_INCREMENTAL=m.DEFAULT_INCREMENTAL=!b.randomize,y.ANIMATE=g.ANIMATE=m.ANIMATE=b.animate,y.TILE=b.tile,y.TILING_PADDING_VERTICAL=typeof b.tilingPaddingVertical=="function"?b.tilingPaddingVertical.call():b.tilingPaddingVertical,y.TILING_PADDING_HORIZONTAL=typeof b.tilingPaddingHorizontal=="function"?b.tilingPaddingHorizontal.call():b.tilingPaddingHorizontal,y.DEFAULT_INCREMENTAL=g.DEFAULT_INCREMENTAL=m.DEFAULT_INCREMENTAL=!0,y.PURE_INCREMENTAL=!b.randomize,m.DEFAULT_UNIFORM_LEAF_NODE_SIZES=b.uniformNodeDimensions,b.step=="transformed"&&(y.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,y.ENFORCE_CONSTRAINTS=!1,y.APPLY_LAYOUT=!1),b.step=="enforced"&&(y.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,y.ENFORCE_CONSTRAINTS=!0,y.APPLY_LAYOUT=!1),b.step=="cose"&&(y.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,y.ENFORCE_CONSTRAINTS=!1,y.APPLY_LAYOUT=!0),b.step=="all"&&(b.randomize?y.TRANSFORM_ON_CONSTRAINT_HANDLING=!0:y.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,y.ENFORCE_CONSTRAINTS=!0,y.APPLY_LAYOUT=!0),b.fixedNodeConstraint||b.alignmentConstraint||b.relativePlacementConstraint?y.TREE_REDUCTION_ON_INCREMENTAL=!1:y.TREE_REDUCTION_ON_INCREMENTAL=!0;var F=new h,B=F.newGraphManager();return O(B.addRoot(),u.getTopMostNodes(E),F,b),D(F,B,_),P(F,b),F.runLayout(),N},"coseLayout");a.exports={coseLayout:v}},212:(a,s,l)=>{var u=function(){function b(w,S){for(var T=0;T0)if(D){var B=d.getTopMostNodes(T.eles.nodes());if(k=d.connectComponents(E,T.eles,B),k.forEach(function(it){var wt=it.boundingBox();I.push({x:wt.x1+wt.w/2,y:wt.y1+wt.h/2})}),T.randomize&&k.forEach(function(it){T.eles=it,A.push(m(T))}),T.quality=="default"||T.quality=="proof"){var G=E.collection();if(T.tile){var z=new Map,W=[],Q=[],j=0,at={nodeIndexes:z,xCoords:W,yCoords:Q},X=[];if(k.forEach(function(it,wt){it.edges().length==0&&(it.nodes().forEach(function(Ot,St){G.merge(it.nodes()[St]),Ot.isParent()||(at.nodeIndexes.set(it.nodes()[St].id(),j++),at.xCoords.push(it.nodes()[0].position().x),at.yCoords.push(it.nodes()[0].position().y))}),X.push(wt))}),G.length>1){var J=G.boundingBox();I.push({x:J.x1+J.w/2,y:J.y1+J.h/2}),k.push(G),A.push(at);for(var Z=X.length-1;Z>=0;Z--)k.splice(X[Z],1),A.splice(X[Z],1),I.splice(X[Z],1)}}k.forEach(function(it,wt){T.eles=it,N.push(y(T,A[wt])),d.relocateComponent(I[wt],N[wt],T)})}else k.forEach(function(it,wt){d.relocateComponent(I[wt],A[wt],T)});var H=new Set;if(k.length>1){var q=[],K=_.filter(function(it){return it.css("display")=="none"});k.forEach(function(it,wt){var Ot=void 0;if(T.quality=="draft"&&(Ot=A[wt].nodeIndexes),it.nodes().not(K).length>0){var St={};St.edges=[],St.nodes=[];var Vt=void 0;it.nodes().not(K).forEach(function(Pt){if(T.quality=="draft")if(!Pt.isParent())Vt=Ot.get(Pt.id()),St.nodes.push({x:A[wt].xCoords[Vt]-Pt.boundingbox().w/2,y:A[wt].yCoords[Vt]-Pt.boundingbox().h/2,width:Pt.boundingbox().w,height:Pt.boundingbox().h});else{var _t=d.calcBoundingBox(Pt,A[wt].xCoords,A[wt].yCoords,Ot);St.nodes.push({x:_t.topLeftX,y:_t.topLeftY,width:_t.width,height:_t.height})}else N[wt][Pt.id()]&&St.nodes.push({x:N[wt][Pt.id()].getLeft(),y:N[wt][Pt.id()].getTop(),width:N[wt][Pt.id()].getWidth(),height:N[wt][Pt.id()].getHeight()})}),it.edges().forEach(function(Pt){var _t=Pt.source(),dt=Pt.target();if(_t.css("display")!="none"&&dt.css("display")!="none")if(T.quality=="draft"){var Y=Ot.get(_t.id()),ft=Ot.get(dt.id()),mt=[],rt=[];if(_t.isParent()){var ht=d.calcBoundingBox(_t,A[wt].xCoords,A[wt].yCoords,Ot);mt.push(ht.topLeftX+ht.width/2),mt.push(ht.topLeftY+ht.height/2)}else mt.push(A[wt].xCoords[Y]),mt.push(A[wt].yCoords[Y]);if(dt.isParent()){var nt=d.calcBoundingBox(dt,A[wt].xCoords,A[wt].yCoords,Ot);rt.push(nt.topLeftX+nt.width/2),rt.push(nt.topLeftY+nt.height/2)}else rt.push(A[wt].xCoords[ft]),rt.push(A[wt].yCoords[ft]);St.edges.push({startX:mt[0],startY:mt[1],endX:rt[0],endY:rt[1]})}else N[wt][_t.id()]&&N[wt][dt.id()]&&St.edges.push({startX:N[wt][_t.id()].getCenterX(),startY:N[wt][_t.id()].getCenterY(),endX:N[wt][dt.id()].getCenterX(),endY:N[wt][dt.id()].getCenterY()})}),St.nodes.length>0&&(q.push(St),H.add(wt))}});var ot=O.packComponents(q,T.randomize).shifts;if(T.quality=="draft")A.forEach(function(it,wt){var Ot=it.xCoords.map(function(Vt){return Vt+ot[wt].dx}),St=it.yCoords.map(function(Vt){return Vt+ot[wt].dy});it.xCoords=Ot,it.yCoords=St});else{var ct=0;H.forEach(function(it){Object.keys(N[it]).forEach(function(wt){var Ot=N[it][wt];Ot.setCenter(Ot.getCenterX()+ot[ct].dx,Ot.getCenterY()+ot[ct].dy)}),ct++})}}}else{var P=T.eles.boundingBox();if(I.push({x:P.x1+P.w/2,y:P.y1+P.h/2}),T.randomize){var F=m(T);A.push(F)}T.quality=="default"||T.quality=="proof"?(N.push(y(T,A[0])),d.relocateComponent(I[0],N[0],T)):d.relocateComponent(I[0],A[0],T)}var ut=o(function(wt,Ot){if(T.quality=="default"||T.quality=="proof"){typeof wt=="number"&&(wt=Ot);var St=void 0,Vt=void 0,Pt=wt.data("id");return N.forEach(function(dt){Pt in dt&&(St={x:dt[Pt].getRect().getCenterX(),y:dt[Pt].getRect().getCenterY()},Vt=dt[Pt])}),T.nodeDimensionsIncludeLabels&&(Vt.labelWidth&&(Vt.labelPosHorizontal=="left"?St.x+=Vt.labelWidth/2:Vt.labelPosHorizontal=="right"&&(St.x-=Vt.labelWidth/2)),Vt.labelHeight&&(Vt.labelPosVertical=="top"?St.y+=Vt.labelHeight/2:Vt.labelPosVertical=="bottom"&&(St.y-=Vt.labelHeight/2))),St==null&&(St={x:wt.position("x"),y:wt.position("y")}),{x:St.x,y:St.y}}else{var _t=void 0;return A.forEach(function(dt){var Y=dt.nodeIndexes.get(wt.id());Y!=null&&(_t={x:dt.xCoords[Y],y:dt.yCoords[Y]})}),_t==null&&(_t={x:wt.position("x"),y:wt.position("y")}),{x:_t.x,y:_t.y}}},"getPositions");if(T.quality=="default"||T.quality=="proof"||T.randomize){var et=d.calcParentsWithoutChildren(E,_),Mt=_.filter(function(it){return it.css("display")=="none"});T.eles=_.not(Mt),_.nodes().not(":parent").not(Mt).layoutPositions(S,T,ut),et.length>0&&et.forEach(function(it){it.position(ut(it))})}else console.log("If randomize option is set to false, then quality option must be 'default' or 'proof'.")},"run")}]),b}();a.exports=x},657:(a,s,l)=>{var u=l(548),h=l(140).layoutBase.Matrix,f=l(140).layoutBase.SVD,d=o(function(m){var g=m.cy,y=m.eles,v=y.nodes(),x=y.nodes(":parent"),b=new Map,w=new Map,S=new Map,T=[],E=[],_=[],A=[],L=[],M=[],N=[],k=[],I=void 0,C=void 0,O=1e8,D=1e-9,P=m.piTol,F=m.samplingType,B=m.nodeSeparation,G=void 0,z=o(function(){for(var Tt=0,kt=0,Ct=!1;kt=$t;){yt=At[$t++];for(var le=T[yt],Zt=0;Ztae&&(ae=L[Ht],ke=Ht)}return ke},"BFS"),Q=o(function(Tt){var kt=void 0;if(Tt){kt=Math.floor(Math.random()*C),I=kt;for(var At=0;At=1)break;ae=zt}for(var le=0;le=1)break;ae=zt}for(var me=0;me0&&(kt.isParent()?T[Tt].push(S.get(kt.id())):T[Tt].push(kt.id()))})});var et=o(function(Tt){var kt=w.get(Tt),Ct=void 0;b.get(Tt).forEach(function(At){g.getElementById(At).isParent()?Ct=S.get(At):Ct=At,T[kt].push(Ct),T[w.get(Ct)].push(Tt)})},"_loop"),Mt=!0,it=!1,wt=void 0;try{for(var Ot=b.keys()[Symbol.iterator](),St;!(Mt=(St=Ot.next()).done);Mt=!0){var Vt=St.value;et(Vt)}}catch(st){it=!0,wt=st}finally{try{!Mt&&Ot.return&&Ot.return()}finally{if(it)throw wt}}C=w.size;var Pt=void 0;if(C>2){G=C{var u=l(212),h=o(function(d){d&&d("layout","fcose",u)},"register");typeof cytoscape<"u"&&h(cytoscape),a.exports=h},140:a=>{a.exports=e}},r={};function n(a){var s=r[a];if(s!==void 0)return s.exports;var l=r[a]={exports:{}};return t[a](l,l.exports,n),l.exports}o(n,"__webpack_require__");var i=n(579);return i})()})});var F1,sp,uz=R(()=>{"use strict";iu();F1=o(e=>`${e}`,"wrapIcon"),sp={prefix:"mermaid-architecture",height:80,width:80,icons:{database:{body:F1('')},server:{body:F1('')},disk:{body:F1('')},internet:{body:F1('')},cloud:{body:F1('')},unknown:CS,blank:{body:F1("")}}}});var u2t,h2t,f2t,d2t,p2t=R(()=>{"use strict";iu();Ue();Nl();Ub();uz();rS();u2t=o(async function(e,t){let r=Di("padding"),n=Di("iconSize"),i=n/2,a=n/6,s=a/2;await Promise.all(t.edges().map(async l=>{let{source:u,sourceDir:h,sourceArrow:f,sourceGroup:d,target:p,targetDir:m,targetArrow:g,targetGroup:y,label:v}=eS(l),{x,y:b}=l[0].sourceEndpoint(),{x:w,y:S}=l[0].midpoint(),{x:T,y:E}=l[0].targetEndpoint(),_=r+4;if(d&&(ds(h)?x+=h==="L"?-_:_:b+=h==="T"?-_:_+18),y&&(ds(m)?T+=m==="L"?-_:_:E+=m==="T"?-_:_+18),!d&&ap.getNode(u)?.type==="junction"&&(ds(h)?x+=h==="L"?i:-i:b+=h==="T"?i:-i),!y&&ap.getNode(p)?.type==="junction"&&(ds(m)?T+=m==="L"?i:-i:E+=m==="T"?i:-i),l[0]._private.rscratch){let A=e.insert("g");if(A.insert("path").attr("d",`M ${x},${b} L ${w},${S} L${T},${E} `).attr("class","edge"),f){let L=ds(h)?Gb[h](x,a):x-s,M=eu(h)?Gb[h](b,a):b-s;A.insert("polygon").attr("points",nz[h](a)).attr("transform",`translate(${L},${M})`).attr("class","arrow")}if(g){let L=ds(m)?Gb[m](T,a):T-s,M=eu(m)?Gb[m](E,a):E-s;A.insert("polygon").attr("points",nz[m](a)).attr("transform",`translate(${L},${M})`).attr("class","arrow")}if(v){let L=tS(h,m)?"XY":ds(h)?"X":"Y",M=0;L==="X"?M=Math.abs(x-T):L==="Y"?M=Math.abs(b-E)/1.5:M=Math.abs(x-T)/2;let N=A.append("g");if(await ia(N,v,{useHtmlLabels:!1,width:M,classes:"architecture-service-label"},pt()),N.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle"),L==="X")N.attr("transform","translate("+w+", "+S+")");else if(L==="Y")N.attr("transform","translate("+w+", "+S+") rotate(-90)");else if(L==="XY"){let k=Vb(h,m);if(k&&Jvt(k)){let I=N.node().getBoundingClientRect(),[C,O]=e2t(k);N.attr("dominant-baseline","auto").attr("transform",`rotate(${-1*C*O*45})`);let D=N.node().getBoundingClientRect();N.attr("transform",` + translate(${w}, ${S-I.height/2}) + translate(${C*D.width/2}, ${O*D.height/2}) + rotate(${-1*C*O*45}, 0, ${I.height/2}) + `)}}}}}))},"drawEdges"),h2t=o(async function(e,t){let n=Di("padding")*.75,i=Di("fontSize"),s=Di("iconSize")/2;await Promise.all(t.nodes().map(async l=>{let u=zf(l);if(u.type==="group"){let{h,w:f,x1:d,y1:p}=l.boundingBox();e.append("rect").attr("x",d+s).attr("y",p+s).attr("width",f).attr("height",h).attr("class","node-bkg");let m=e.append("g"),g=d,y=p;if(u.icon){let v=m.append("g");v.html(`${await Ao(u.icon,{height:n,width:n,fallbackPrefix:sp.prefix})}`),v.attr("transform","translate("+(g+s+1)+", "+(y+s+1)+")"),g+=n,y+=i/2-1-2}if(u.label){let v=m.append("g");await ia(v,u.label,{useHtmlLabels:!1,width:f,classes:"architecture-service-label"},pt()),v.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","start").attr("text-anchor","start"),v.attr("transform","translate("+(g+s+4)+", "+(y+s+2)+")")}}}))},"drawGroups"),f2t=o(async function(e,t,r){for(let n of r){let i=t.append("g"),a=Di("iconSize");if(n.title){let h=i.append("g");await ia(h,n.title,{useHtmlLabels:!1,width:a*1.5,classes:"architecture-service-label"},pt()),h.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle"),h.attr("transform","translate("+a/2+", "+a+")")}let s=i.append("g");if(n.icon)s.html(`${await Ao(n.icon,{height:a,width:a,fallbackPrefix:sp.prefix})}`);else if(n.iconText){s.html(`${await Ao("blank",{height:a,width:a,fallbackPrefix:sp.prefix})}`);let d=s.append("g").append("foreignObject").attr("width",a).attr("height",a).append("div").attr("class","node-icon-text").attr("style",`height: ${a}px;`).append("div").html(n.iconText),p=parseInt(window.getComputedStyle(d.node(),null).getPropertyValue("font-size").replace(/\D/g,""))??16;d.attr("style",`-webkit-line-clamp: ${Math.floor((a-2)/p)};`)}else s.append("path").attr("class","node-bkg").attr("id","node-"+n.id).attr("d",`M0 ${a} v${-a} q0,-5 5,-5 h${a} q5,0 5,5 v${a} H0 Z`);i.attr("class","architecture-service");let{width:l,height:u}=i._groups[0][0].getBBox();n.width=l,n.height=u,e.setElementForId(n.id,i)}return 0},"drawServices"),d2t=o(function(e,t,r){r.forEach(n=>{let i=t.append("g"),a=Di("iconSize");i.append("g").append("rect").attr("id","node-"+n.id).attr("fill-opacity","0").attr("width",a).attr("height",a),i.attr("class","architecture-junction");let{width:l,height:u}=i._groups[0][0].getBBox();i.width=l,i.height=u,e.setElementForId(n.id,i)})},"drawJunctions")});function Zne(e,t){e.forEach(r=>{t.add({group:"nodes",data:{type:"service",id:r.id,icon:r.icon,label:r.title,parent:r.in,width:Di("iconSize"),height:Di("iconSize")},classes:"node-service"})})}function Jne(e,t){e.forEach(r=>{t.add({group:"nodes",data:{type:"junction",id:r.id,parent:r.in,width:Di("iconSize"),height:Di("iconSize")},classes:"node-junction"})})}function tie(e,t){t.nodes().map(r=>{let n=zf(r);if(n.type==="group")return;n.x=r.position().x,n.y=r.position().y,e.getElementById(n.id).attr("transform","translate("+(n.x||0)+","+(n.y||0)+")")})}function eie(e,t){e.forEach(r=>{t.add({group:"nodes",data:{type:"group",id:r.id,icon:r.icon,label:r.title,parent:r.in},classes:"node-group"})})}function rie(e,t){e.forEach(r=>{let{lhsId:n,rhsId:i,lhsInto:a,lhsGroup:s,rhsInto:l,lhsDir:u,rhsDir:h,rhsGroup:f,title:d}=r,p=tS(r.lhsDir,r.rhsDir)?"segments":"straight",m={id:`${n}-${i}`,label:d,source:n,sourceDir:u,sourceArrow:a,sourceGroup:s,sourceEndpoint:u==="L"?"0 50%":u==="R"?"100% 50%":u==="T"?"50% 0":"50% 100%",target:i,targetDir:h,targetArrow:l,targetGroup:f,targetEndpoint:h==="L"?"0 50%":h==="R"?"100% 50%":h==="T"?"50% 0":"50% 100%"};t.add({group:"edges",data:m,classes:p})})}function nie(e){let t=e.map(i=>{let a={},s={};return Object.entries(i).forEach(([l,[u,h]])=>{a[h]||(a[h]=[]),s[u]||(s[u]=[]),a[h].push(l),s[u].push(l)}),{horiz:Object.values(a).filter(l=>l.length>1),vert:Object.values(s).filter(l=>l.length>1)}}),[r,n]=t.reduce(([i,a],{horiz:s,vert:l})=>[[...i,...s],[...a,...l]],[[],[]]);return{horizontal:r,vertical:n}}function iie(e){let t=[],r=o(i=>`${i[0]},${i[1]}`,"posToStr"),n=o(i=>i.split(",").map(a=>parseInt(a)),"strToPos");return e.forEach(i=>{let a=Object.fromEntries(Object.entries(i).map(([h,f])=>[r(f),h])),s=[r([0,0])],l={},u={L:[-1,0],R:[1,0],T:[0,1],B:[0,-1]};for(;s.length>0;){let h=s.shift();if(h){l[h]=1;let f=a[h];if(f){let d=n(h);Object.entries(u).forEach(([p,m])=>{let g=r([d[0]+m[0],d[1]+m[1]]),y=a[g];y&&!l[g]&&(s.push(g),t.push({[rz[p]]:y,[rz[Zvt(p)]]:f,gap:1.5*Di("iconSize")}))})}}}}),t}function aie(e,t,r,n,{spatialMaps:i}){return new Promise(a=>{let s=Gt("body").append("div").attr("id","cy").attr("style","display:none"),l=sl({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"straight",label:"data(label)","source-endpoint":"data(sourceEndpoint)","target-endpoint":"data(targetEndpoint)"}},{selector:"edge.segments",style:{"curve-style":"segments","segment-weights":"0","segment-distances":[.5],"edge-distances":"endpoints","source-endpoint":"data(sourceEndpoint)","target-endpoint":"data(targetEndpoint)"}},{selector:"node",style:{"compound-sizing-wrt-labels":"include"}},{selector:"node[label]",style:{"text-valign":"bottom","text-halign":"center","font-size":`${Di("fontSize")}px`}},{selector:".node-service",style:{label:"data(label)",width:"data(width)",height:"data(height)"}},{selector:".node-junction",style:{width:"data(width)",height:"data(height)"}},{selector:".node-group",style:{padding:`${Di("padding")}px`}}]});s.remove(),eie(r,l),Zne(e,l),Jne(t,l),rie(n,l);let u=nie(i),h=iie(i),f=l.layout({name:"fcose",quality:"proof",styleEnabled:!1,animate:!1,nodeDimensionsIncludeLabels:!1,idealEdgeLength(d){let[p,m]=d.connectedNodes(),{parent:g}=zf(p),{parent:y}=zf(m);return g===y?1.5*Di("iconSize"):.5*Di("iconSize")},edgeElasticity(d){let[p,m]=d.connectedNodes(),{parent:g}=zf(p),{parent:y}=zf(m);return g===y?.45:.001},alignmentConstraint:u,relativePlacementConstraint:h});f.one("layoutstop",()=>{function d(p,m,g,y){let v,x,{x:b,y:w}=p,{x:S,y:T}=m;x=(y-w+(b-g)*(w-T)/(b-S))/Math.sqrt(1+Math.pow((w-T)/(b-S),2)),v=Math.sqrt(Math.pow(y-w,2)+Math.pow(g-b,2)-Math.pow(x,2));let E=Math.sqrt(Math.pow(S-b,2)+Math.pow(T-w,2));v=v/E;let _=(S-b)*(y-w)-(T-w)*(g-b);switch(!0){case _>=0:_=1;break;case _<0:_=-1;break}let A=(S-b)*(g-b)+(T-w)*(y-w);switch(!0){case A>=0:A=1;break;case A<0:A=-1;break}return x=Math.abs(x)*_,v=v*A,{distances:x,weights:v}}o(d,"getSegmentWeights"),l.startBatch();for(let p of Object.values(l.edges()))if(p.data?.()){let{x:m,y:g}=p.source().position(),{x:y,y:v}=p.target().position();if(m!==y&&g!==v){let x=p.sourceEndpoint(),b=p.targetEndpoint(),{sourceDir:w}=eS(p),[S,T]=eu(w)?[x.x,b.y]:[b.x,x.y],{weights:E,distances:_}=d(x,b,S,T);p.style("segment-distances",_),p.style("segment-weights",E)}}l.endBatch(),f.run()}),f.run(),l.ready(d=>{V.info("Ready",d),a(l)})})}var m2t,sie,g2t,y2t=R(()=>{"use strict";iu();_F();m2t=Qi(c2t(),1);ur();ce();xf();Jn();Ub();uz();rS();p2t();a4([{name:sp.prefix,icons:sp}]);sl.use(m2t.default);o(Zne,"addServices");o(Jne,"addJunctions");o(tie,"positionNodes");o(eie,"addGroups");o(rie,"addEdges");o(nie,"getAlignments");o(iie,"getRelativeConstraints");o(aie,"layoutArchitecture");sie=o(async(e,t,r,n)=>{let i=n.db,a=i.getServices(),s=i.getJunctions(),l=i.getGroups(),u=i.getEdges(),h=i.getDataStructures(),f=Vs(t),d=f.append("g");d.attr("class","architecture-edges");let p=f.append("g");p.attr("class","architecture-services");let m=f.append("g");m.attr("class","architecture-groups"),await f2t(i,p,a),d2t(i,p,s);let g=await aie(a,s,l,u,h);await u2t(d,g),await h2t(m,g),tie(i,g),No(void 0,f,Di("padding"),Di("useMaxWidth"))},"draw"),g2t={draw:sie}});var v2t={};xr(v2t,{diagram:()=>oie});var oie,x2t=R(()=>{"use strict";s2t();Ub();l2t();y2t();oie={parser:a2t,db:ap,renderer:g2t,styles:o2t}});var qie={};xr(qie,{default:()=>Yie});iu();SS();jf();var Oj="c4",$St=o(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),GSt=o(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(Ij(),Mj));return{id:Oj,diagram:e}},"loader"),VSt={id:Oj,detector:$St,loader:GSt},Pj=VSt;var qit="flowchart",UOt=o((e,t)=>t?.flowchart?.defaultRenderer==="dagre-wrapper"||t?.flowchart?.defaultRenderer==="elk"?!1:/^\s*graph/.test(e),"detector"),HOt=o(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(ek(),tk));return{id:qit,diagram:e}},"loader"),WOt={id:qit,detector:UOt,loader:HOt},Xit=WOt;var jit="flowchart-v2",YOt=o((e,t)=>t?.flowchart?.defaultRenderer==="dagre-d3"?!1:(t?.flowchart?.defaultRenderer==="elk"&&(t.layout="elk"),/^\s*graph/.test(e)&&t?.flowchart?.defaultRenderer==="dagre-wrapper"?!0:/^\s*flowchart/.test(e)),"detector"),qOt=o(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(ek(),tk));return{id:jit,diagram:e}},"loader"),XOt={id:jit,detector:YOt,loader:qOt},Kit=XOt;var Cat="er",kPt=o(e=>/^\s*erDiagram/.test(e),"detector"),EPt=o(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(Eat(),kat));return{id:Cat,diagram:e}},"loader"),CPt={id:Cat,detector:kPt,loader:EPt},Sat=CPt;var Put="gitGraph",j$t=o(e=>/^\s*gitGraph/.test(e),"detector"),K$t=o(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(Out(),Iut));return{id:Put,diagram:e}},"loader"),Q$t={id:Put,detector:j$t,loader:K$t},But=Q$t;var dht="gantt",FGt=o(e=>/^\s*gantt/.test(e),"detector"),zGt=o(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(fht(),hht));return{id:dht,diagram:e}},"loader"),$Gt={id:dht,detector:FGt,loader:zGt},pht=$Gt;var kht="info",YGt=o(e=>/^\s*info/.test(e),"detector"),qGt=o(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(Tht(),wht));return{id:kht,diagram:e}},"loader"),Eht={id:kht,detector:YGt,loader:qGt};var Iht="pie",sVt=o(e=>/^\s*pie/.test(e),"detector"),oVt=o(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(Mht(),Nht));return{id:Iht,diagram:e}},"loader"),Oht={id:Iht,detector:sVt,loader:oVt};var Xht="quadrantChart",CVt=o(e=>/^\s*quadrantChart/.test(e),"detector"),SVt=o(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(qht(),Yht));return{id:Xht,diagram:e}},"loader"),AVt={id:Xht,detector:CVt,loader:SVt},jht=AVt;var Tft="xychart",UVt=o(e=>/^\s*xychart-beta/.test(e),"detector"),HVt=o(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(wft(),bft));return{id:Tft,diagram:e}},"loader"),WVt={id:Tft,detector:UVt,loader:HVt},kft=WVt;var zft="requirement",xUt=o(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),bUt=o(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(Fft(),Bft));return{id:zft,diagram:e}},"loader"),wUt={id:zft,detector:xUt,loader:bUt},$ft=wUt;var ddt="sequence",EHt=o(e=>/^\s*sequenceDiagram/.test(e),"detector"),CHt=o(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(fdt(),hdt));return{id:ddt,diagram:e}},"loader"),SHt={id:ddt,detector:EHt,loader:CHt},pdt=SHt;var Ldt="class",sWt=o((e,t)=>t?.class?.defaultRenderer==="dagre-wrapper"?!1:/^\s*classDiagram/.test(e),"detector"),oWt=o(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(_dt(),Adt));return{id:Ldt,diagram:e}},"loader"),lWt={id:Ldt,detector:sWt,loader:oWt},Ddt=lWt;var E0t="classDiagram",fYt=o((e,t)=>/^\s*classDiagram/.test(e)&&t?.class?.defaultRenderer==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(e),"detector"),dYt=o(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(k0t(),T0t));return{id:E0t,diagram:e}},"loader"),pYt={id:E0t,detector:fYt,loader:dYt},C0t=pYt;var gpt="state",cqt=o((e,t)=>t?.state?.defaultRenderer==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(e),"detector"),uqt=o(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(mpt(),ppt));return{id:gpt,diagram:e}},"loader"),hqt={id:gpt,detector:cqt,loader:uqt},ypt=hqt;var bpt="stateDiagram",dqt=o((e,t)=>!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&t?.state?.defaultRenderer==="dagre-wrapper"),"detector"),pqt=o(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(xpt(),vpt));return{id:bpt,diagram:e}},"loader"),mqt={id:bpt,detector:dqt,loader:pqt},wpt=mqt;var Bpt="journey",Pqt=o(e=>/^\s*journey/.test(e),"detector"),Bqt=o(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(Ppt(),Opt));return{id:Bpt,diagram:e}},"loader"),Fqt={id:Bpt,detector:Pqt,loader:Bqt},Fpt=Fqt;ce();xf();Jn();var zqt=o((e,t,r)=>{V.debug(`rendering svg for syntax error +`);let n=Vs(t),i=n.append("g");n.attr("viewBox","0 0 2412 512"),Pr(n,100,512,!0),i.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"),i.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"),i.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"),i.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"),i.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"),i.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"),i.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"),i.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`)},"draw"),TB={draw:zqt},zpt=TB;var $qt={db:{},renderer:TB,parser:{parse:o(()=>{},"parse")}},$pt=$qt;var Gpt="flowchart-elk",Gqt=o((e,t={})=>/^\s*flowchart-elk/.test(e)||/^\s*flowchart|graph/.test(e)&&t?.flowchart?.defaultRenderer==="elk"?(t.layout="elk",!0):!1,"detector"),Vqt=o(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(ek(),tk));return{id:Gpt,diagram:e}},"loader"),Uqt={id:Gpt,detector:Gqt,loader:Vqt},Vpt=Uqt;var pmt="timeline",lXt=o(e=>/^\s*timeline/.test(e),"detector"),cXt=o(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(dmt(),fmt));return{id:pmt,diagram:e}},"loader"),uXt={id:pmt,detector:lXt,loader:cXt},mmt=uXt;var Myt="mindmap",gre=o(e=>/^\s*mindmap/.test(e),"detector"),yre=o(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(Nyt(),Ryt));return{id:Myt,diagram:e}},"loader"),vre={id:Myt,detector:gre,loader:yre},Iyt=vre;var dvt="sankey",$re=o(e=>/^\s*sankey-beta/.test(e),"detector"),Gre=o(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(fvt(),hvt));return{id:dvt,diagram:e}},"loader"),Vre={id:dvt,detector:$re,loader:Gre},pvt=Vre;var Evt="packet",ene=o(e=>/^\s*packet-beta/.test(e),"detector"),rne=o(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(kvt(),Tvt));return{id:Evt,diagram:e}},"loader"),Cvt={id:Evt,detector:ene,loader:rne};var Kvt="block",Nne=o(e=>/^\s*block-beta/.test(e),"detector"),Mne=o(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(jvt(),Xvt));return{id:Kvt,diagram:e}},"loader"),Ine={id:Kvt,detector:Nne,loader:Mne},Qvt=Ine;var b2t="architecture",lie=o(e=>/^\s*architecture/.test(e),"detector"),cie=o(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(x2t(),v2t));return{id:b2t,diagram:e}},"loader"),uie={id:b2t,detector:lie,loader:cie},w2t=uie;jf();Ue();var T2t=!1,z1=o(()=>{T2t||(T2t=!0,id("error",$pt,e=>e.toLowerCase().trim()==="error"),id("---",{db:{clear:o(()=>{},"clear")},styles:{},renderer:{draw:o(()=>{},"draw")},parser:{parse:o(()=>{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")},"parse")},init:o(()=>null,"init")},e=>e.toLowerCase().trimStart().startsWith("---")),c4(Pj,C0t,Ddt,Sat,pht,Eht,Oht,$ft,pdt,Vpt,Kit,Xit,Iyt,mmt,But,wpt,ypt,Fpt,jht,pvt,Cvt,kft,Qvt,w2t))},"addDiagrams");ce();jf();Ue();var k2t=o(async()=>{V.debug("Loading registered diagrams");let t=(await Promise.allSettled(Object.entries(Xf).map(async([r,{detector:n,loader:i}])=>{if(i)try{by(r)}catch{try{let{diagram:a,id:s}=await i();id(s,a,n)}catch(a){throw V.error(`Failed to load external diagram with key ${r}. Removing from detectors.`),delete Xf[r],a}}}))).filter(r=>r.status==="rejected");if(t.length>0){V.error(`Failed to load ${t.length} external diagrams`);for(let r of t)V.error(r);throw new Error(`Failed to load ${t.length} external diagrams`)}},"loadRegisteredDiagrams");ce();ur();var nS="comm",iS="rule",aS="decl";var E2t="@import";var C2t="@keyframes";var S2t="@layer";var hz=Math.abs,qb=String.fromCharCode;function sS(e){return e.trim()}o(sS,"trim");function Xb(e,t,r){return e.replace(t,r)}o(Xb,"replace");function A2t(e,t,r){return e.indexOf(t,r)}o(A2t,"indexof");function op(e,t){return e.charCodeAt(t)|0}o(op,"charat");function $f(e,t,r){return e.slice(t,r)}o($f,"substr");function ko(e){return e.length}o(ko,"strlen");function _2t(e){return e.length}o(_2t,"sizeof");function $1(e,t){return t.push(e),e}o($1,"append");var oS=1,G1=1,L2t=0,ol=0,Ri=0,U1="";function lS(e,t,r,n,i,a,s,l){return{value:e,root:t,parent:r,type:n,props:i,children:a,line:oS,column:G1,length:s,return:"",siblings:l}}o(lS,"node");function D2t(){return Ri}o(D2t,"char");function R2t(){return Ri=ol>0?op(U1,--ol):0,G1--,Ri===10&&(G1=1,oS--),Ri}o(R2t,"prev");function ll(){return Ri=ol2||V1(Ri)>3?"":" "}o(I2t,"whitespace");function O2t(e,t){for(;--t&&ll()&&!(Ri<48||Ri>102||Ri>57&&Ri<65||Ri>70&&Ri<97););return cS(e,jb()+(t<6&&sh()==32&&ll()==32))}o(O2t,"escaping");function fz(e){for(;ll();)switch(Ri){case e:return ol;case 34:case 39:e!==34&&e!==39&&fz(Ri);break;case 40:e===41&&fz(e);break;case 92:ll();break}return ol}o(fz,"delimiter");function P2t(e,t){for(;ll()&&e+Ri!==57;)if(e+Ri===84&&sh()===47)break;return"/*"+cS(t,ol-1)+"*"+qb(e===47?e:ll())}o(P2t,"commenter");function B2t(e){for(;!V1(sh());)ll();return cS(e,ol)}o(B2t,"identifier");function $2t(e){return M2t(hS("",null,null,null,[""],e=N2t(e),0,[0],e))}o($2t,"compile");function hS(e,t,r,n,i,a,s,l,u){for(var h=0,f=0,d=s,p=0,m=0,g=0,y=1,v=1,x=1,b=0,w="",S=i,T=a,E=n,_=w;v;)switch(g=b,b=ll()){case 40:if(g!=108&&op(_,d-1)==58){A2t(_+=Xb(uS(b),"&","&\f"),"&\f",hz(h?l[h-1]:0))!=-1&&(x=-1);break}case 34:case 39:case 91:_+=uS(b);break;case 9:case 10:case 13:case 32:_+=I2t(g);break;case 92:_+=O2t(jb()-1,7);continue;case 47:switch(sh()){case 42:case 47:$1(hie(P2t(ll(),jb()),t,r,u),u),(V1(g||1)==5||V1(sh()||1)==5)&&ko(_)&&$f(_,-1,void 0)!==" "&&(_+=" ");break;default:_+="/"}break;case 123*y:l[h++]=ko(_)*x;case 125*y:case 59:case 0:switch(b){case 0:case 125:v=0;case 59+f:x==-1&&(_=Xb(_,/\f/g,"")),m>0&&(ko(_)-d||y===0&&g===47)&&$1(m>32?z2t(_+";",n,r,d-1,u):z2t(Xb(_," ","")+";",n,r,d-2,u),u);break;case 59:_+=";";default:if($1(E=F2t(_,t,r,h,f,i,l,w,S=[],T=[],d,a),a),b===123)if(f===0)hS(_,t,E,E,S,a,d,l,T);else switch(p===99&&op(_,3)===110?100:p){case 100:case 108:case 109:case 115:hS(e,E,E,n&&$1(F2t(e,E,E,0,0,i,l,w,i,S=[],d,T),T),i,T,d,l,n?S:T);break;default:hS(_,E,E,E,[""],T,0,l,T)}}h=f=m=0,y=x=1,w=_="",d=s;break;case 58:d=1+ko(_),m=g;default:if(y<1){if(b==123)--y;else if(b==125&&y++==0&&R2t()==125)continue}switch(_+=qb(b),b*y){case 38:x=f>0?1:(_+="\f",-1);break;case 44:l[h++]=(ko(_)-1)*x,x=1;break;case 64:sh()===45&&(_+=uS(ll())),p=sh(),f=d=ko(w=_+=B2t(jb())),b++;break;case 45:g===45&&ko(_)==2&&(y=0)}}return a}o(hS,"parse");function F2t(e,t,r,n,i,a,s,l,u,h,f,d){for(var p=i-1,m=i===0?a:[""],g=_2t(m),y=0,v=0,x=0;y0?m[b]+" "+w:Xb(w,/&\f/g,m[b])))&&(u[x++]=S);return lS(e,t,r,i===0?iS:l,u,h,f,d)}o(F2t,"ruleset");function hie(e,t,r,n){return lS(e,t,r,nS,qb(D2t()),$f(e,2,-2),0,n)}o(hie,"comment");function z2t(e,t,r,n,i){return lS(e,t,r,aS,$f(e,0,n),$f(e,n+1,-1),n,i)}o(z2t,"declaration");function fS(e,t){for(var r="",n=0;n{H2t.forEach(e=>{e()}),H2t=[]},"attachFunctions");ce();var Y2t=o(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");l4();sL();function q2t(e){let t=e.match(o4);if(!t)return{text:e,metadata:{}};let r=j5(t[1],{schema:X5})??{};r=typeof r=="object"&&!Array.isArray(r)?r:{};let n={};return r.displayMode&&(n.displayMode=r.displayMode.toString()),r.title&&(n.title=r.title.toString()),r.config&&(n.config=r.config),{text:e.slice(t[0].length),metadata:n}}o(q2t,"extractFrontMatter");_r();var die=o(e=>e.replace(/\r\n?/g,` +`).replace(/<(\w+)([^>]*)>/g,(t,r,n)=>"<"+r+n.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),pie=o(e=>{let{text:t,metadata:r}=q2t(e),{displayMode:n,title:i,config:a={}}=r;return n&&(a.gantt||(a.gantt={}),a.gantt.displayMode=n),{title:i,config:a,text:t}},"processFrontmatter"),mie=o(e=>{let t=Oe.detectInit(e)??{},r=Oe.detectDirective(e,"wrap");return Array.isArray(r)?t.wrap=r.some(({type:n})=>n==="wrap"):r?.type==="wrap"&&(t.wrap=!0),{text:Tj(e),directive:t}},"processDirectives");function dz(e){let t=die(e),r=pie(t),n=mie(r.text),i=Ss(r.config,n.directive);return e=Y2t(n.text),{code:e,title:r.title,config:i}}o(dz,"preprocessDiagram");z7();g4();_r();function X2t(e){let t=new TextEncoder().encode(e),r=Array.from(t,n=>String.fromCodePoint(n)).join("");return btoa(r)}o(X2t,"toBase64");var gie=5e4,yie="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",vie="sandbox",xie="loose",bie="http://www.w3.org/2000/svg",wie="http://www.w3.org/1999/xlink",Tie="http://www.w3.org/1999/xhtml",kie="100%",Eie="100%",Cie="border:0;margin:0;",Sie="margin:0",Aie="allow-top-navigation-by-user-activation allow-popups",_ie='The "iframe" tag is not supported by your browser.',Lie=["foreignobject"],Die=["dominant-baseline"];function J2t(e){let t=dz(e);return ly(),q$(t.config??{}),t}o(J2t,"processAndSetConfigs");async function Rie(e,t){z1();try{let{code:r,config:n}=J2t(e);return{diagramType:(await txt(r)).type,config:n}}catch(r){if(t?.suppressErrors)return!1;throw r}}o(Rie,"parse");var j2t=o((e,t,r=[])=>` +.${e} ${t} { ${r.join(" !important; ")} !important; }`,"cssImportantStyles"),Nie=o((e,t=new Map)=>{let r="";if(e.themeCSS!==void 0&&(r+=` +${e.themeCSS}`),e.fontFamily!==void 0&&(r+=` +:root { --mermaid-font-family: ${e.fontFamily}}`),e.altFontFamily!==void 0&&(r+=` +:root { --mermaid-alt-font-family: ${e.altFontFamily}}`),t instanceof Map){let s=e.htmlLabels??e.flowchart?.htmlLabels?["> *","span"]:["rect","polygon","ellipse","circle","path"];t.forEach(l=>{cr(l.styles)||s.forEach(u=>{r+=j2t(l.id,u,l.styles)}),cr(l.textStyles)||(r+=j2t(l.id,"tspan",(l?.textStyles||[]).map(u=>u.replace("color","fill"))))})}return r},"createCssStyles"),Mie=o((e,t,r,n)=>{let i=Nie(e,r),a=_V(t,i,e.themeVariables);return fS($2t(`${n}{${a}}`),G2t)},"createUserStyles"),Iie=o((e="",t,r)=>{let n=e;return!r&&!t&&(n=n.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),n=no(n),n=n.replace(/
    /g,"
    "),n},"cleanUpSvgCode"),Oie=o((e="",t)=>{let r=t?.viewBox?.baseVal?.height?t.viewBox.baseVal.height+"px":Eie,n=X2t(`${e}`);return``},"putIntoIFrame"),K2t=o((e,t,r,n,i)=>{let a=e.append("div");a.attr("id",r),n&&a.attr("style",n);let s=a.append("svg").attr("id",t).attr("width","100%").attr("xmlns",bie);return i&&s.attr("xmlns:xlink",i),s.append("g"),e},"appendDivSvgG");function Q2t(e,t){return e.append("iframe").attr("id",t).attr("style","width: 100%; height: 100%;").attr("sandbox","")}o(Q2t,"sandboxedIframe");var Pie=o((e,t,r,n)=>{e.getElementById(t)?.remove(),e.getElementById(r)?.remove(),e.getElementById(n)?.remove()},"removeExistingElements"),Bie=o(async function(e,t,r){z1();let n=J2t(t);t=n.code;let i=Nr();V.debug(i),t.length>(i?.maxTextSize??gie)&&(t=yie);let a="#"+e,s="i"+e,l="#"+s,u="d"+e,h="#"+u,f=o(()=>{let I=Gt(p?l:h).node();I&&"remove"in I&&I.remove()},"removeTempElements"),d=Gt("body"),p=i.securityLevel===vie,m=i.securityLevel===xie,g=i.fontFamily;if(r!==void 0){if(r&&(r.innerHTML=""),p){let k=Q2t(Gt(r),s);d=Gt(k.nodes()[0].contentDocument.body),d.node().style.margin=0}else d=Gt(r);K2t(d,e,u,`font-family: ${g}`,wie)}else{if(Pie(document,e,u,s),p){let k=Q2t(Gt("body"),s);d=Gt(k.nodes()[0].contentDocument.body),d.node().style.margin=0}else d=Gt("body");K2t(d,e,u)}let y,v;try{y=await H1.fromText(t,{title:n.title})}catch(k){if(i.suppressErrorRendering)throw f(),k;y=await H1.fromText("error"),v=k}let x=d.select(h).node(),b=y.type,w=x.firstChild,S=w.firstChild,T=y.renderer.getClasses?.(t,y),E=Mie(i,b,T,a),_=document.createElement("style");_.innerHTML=E,w.insertBefore(_,S);try{await y.renderer.draw(t,e,Px,y)}catch(k){throw i.suppressErrorRendering?f():zpt.draw(t,e,Px),k}let A=d.select(`${h} svg`),L=y.db.getAccTitle?.(),M=y.db.getAccDescription?.();zie(b,A,L,M),d.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns",Tie);let N=d.select(h).node().innerHTML;if(V.debug("config.arrowMarkerAbsolute",i.arrowMarkerAbsolute),N=Iie(N,p,Tr(i.arrowMarkerAbsolute)),p){let k=d.select(h+" svg").node();N=Oie(N,k)}else m||(N=Z2t.default.sanitize(N,{ADD_TAGS:Lie,ADD_ATTR:Die}));if(W2t(),v)throw v;return f(),{diagramType:b,svg:N,bindFunctions:y.db.bindFunctions}},"render");function Fie(e={}){let t=Vn({},e);t?.fontFamily&&!t.themeVariables?.fontFamily&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),H$(t),t?.theme&&t.theme in _o?t.themeVariables=_o[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=_o.default.getThemeVariables(t.themeVariables));let r=typeof t=="object"?HS(t):WS();J1(r.logLevel),z1()}o(Fie,"initialize");var txt=o((e,t={})=>{let{code:r}=dz(e);return H1.fromText(r,t)},"getDiagramFromText");function zie(e,t,r,n){V2t(t,e),U2t(t,r,n,t.attr("id"))}o(zie,"addA11yInfo");var Gf=Object.freeze({render:Bie,parse:Rie,getDiagramFromText:txt,initialize:Fie,getConfig:Nr,setConfig:v4,getSiteConfig:WS,updateSiteConfig:W$,reset:o(()=>{ly()},"reset"),globalReset:o(()=>{ly(hh)},"globalReset"),defaultConfig:hh});J1(Nr().logLevel);ly(Nr());ZT();_r();var $ie=o((e,t,r)=>{V.warn(e),U9(e)?(r&&r(e.str,e.hash),t.push({...e,message:e.str,error:e})):(r&&r(e),e instanceof Error&&t.push({str:e.message,message:e.message,hash:e.name,error:e}))},"handleError"),ext=o(async function(e={querySelector:".mermaid"}){try{await Gie(e)}catch(t){if(U9(t)&&V.error(t.str),oh.parseError&&oh.parseError(t),!e.suppressErrors)throw V.error("Use the suppressErrors option to suppress these errors"),t}},"run"),Gie=o(async function({postRenderCallback:e,querySelector:t,nodes:r}={querySelector:".mermaid"}){let n=Gf.getConfig();V.debug(`${e?"":"No "}Callback function found`);let i;if(r)i=r;else if(t)i=document.querySelectorAll(t);else throw new Error("Nodes and querySelector are both undefined");V.debug(`Found ${i.length} diagrams`),n?.startOnLoad!==void 0&&(V.debug("Start On Load: "+n?.startOnLoad),Gf.updateSiteConfig({startOnLoad:n?.startOnLoad}));let a=new Oe.InitIDGenerator(n.deterministicIds,n.deterministicIDSeed),s,l=[];for(let u of Array.from(i)){V.info("Rendering diagram: "+u.id);if(u.getAttribute("data-processed"))continue;u.setAttribute("data-processed","true");let h=`mermaid-${a.next()}`;s=u.innerHTML,s=s4(Oe.entityDecode(s)).trim().replace(//gi,"
    ");let f=Oe.detectInit(s);f&&V.debug("Detected early reinit: ",f);try{let{svg:d,bindFunctions:p}=await axt(h,s,u);u.innerHTML=d,e&&await e(h),p&&p(u)}catch(d){$ie(d,l,oh.parseError)}}if(l.length>0)throw l[0]},"runThrowsErrors"),rxt=o(function(e){Gf.initialize(e)},"initialize"),Vie=o(async function(e,t,r){V.warn("mermaid.init is deprecated. Please use run instead."),e&&rxt(e);let n={postRenderCallback:r,querySelector:".mermaid"};typeof t=="string"?n.querySelector=t:t&&(t instanceof HTMLElement?n.nodes=[t]:n.nodes=t),await ext(n)},"init"),Uie=o(async(e,{lazyLoad:t=!0}={})=>{z1(),c4(...e),t===!1&&await k2t()},"registerExternalDiagrams"),nxt=o(function(){if(oh.startOnLoad){let{startOnLoad:e}=Gf.getConfig();e&&oh.run().catch(t=>V.error("Mermaid failed to initialize",t))}},"contentLoaded");if(typeof document<"u"){window.addEventListener("load",nxt,!1)}var Hie=o(function(e){oh.parseError=e},"setParseErrorHandler"),dS=[],pz=!1,ixt=o(async()=>{if(!pz){for(pz=!0;dS.length>0;){let e=dS.shift();if(e)try{await e()}catch(t){V.error("Error executing queue",t)}}pz=!1}},"executeQueue"),Wie=o(async(e,t)=>new Promise((r,n)=>{let i=o(()=>new Promise((a,s)=>{Gf.parse(e,t).then(l=>{a(l),r(l)},l=>{V.error("Error parsing",l),oh.parseError?.(l),s(l),n(l)})}),"performCall");dS.push(i),ixt().catch(n)}),"parse"),axt=o((e,t,r)=>new Promise((n,i)=>{let a=o(()=>new Promise((s,l)=>{Gf.render(e,t,r).then(u=>{s(u),n(u)},u=>{V.error("Error parsing",u),oh.parseError?.(u),l(u),i(u)})}),"performCall");dS.push(a),ixt().catch(i)}),"render"),oh={startOnLoad:!0,mermaidAPI:Gf,parse:Wie,render:axt,init:Vie,run:ext,registerExternalDiagrams:Uie,registerLayoutLoaders:wR,initialize:rxt,parseError:void 0,contentLoaded:nxt,setParseErrorHandler:Hie,detectType:gp,registerIconPacks:a4},Yie=oh;return fxt(qie);})(); +/*! Check if previously processed */ +/*! + * Wait for document loaded before starting the execution + */ +/*! Bundled license information: + +dompurify/dist/purify.js: + (*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE *) + +js-yaml/dist/js-yaml.mjs: + (*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT *) + +lodash-es/lodash.js: + (** + * @license + * Lodash (Custom Build) + * Build: `lodash modularize exports="es" -o ./` + * Copyright OpenJS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + *) + +cytoscape/dist/cytoscape.esm.mjs: + (*! + Embeddable Minimum Strictly-Compliant Promises/A+ 1.1.1 Thenable + Copyright (c) 2013-2014 Ralf S. Engelschall (http://engelschall.com) + Licensed under The MIT License (http://opensource.org/licenses/MIT) + *) + (*! + Event object based on jQuery events, MIT license + + https://jquery.org/license/ + https://tldrlegal.com/license/mit-license + https://github.com/jquery/jquery/blob/master/src/event.js + *) + (*! Bezier curve function generator. Copyright Gaetan Renaudeau. MIT License: http://en.wikipedia.org/wiki/MIT_License *) + (*! Runge-Kutta spring physics function generator. Adapted from Framer.js, copyright Koen Bok. MIT License: http://en.wikipedia.org/wiki/MIT_License *) +*/ +globalThis.mermaid = globalThis.__esbuild_esm_mermaid.default;