NOEKFT3DJR5OMI5QMFBEOLMN7PMV2NMQOHPMLPNO4RK442U7TB5QC
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bisonex</title>
<meta name="author" content="Alexis Praga">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="https://cdn.jsdelivr.net/gh/slidevjs/slidev/assets/favicon.png">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@200;400;600&family=Fira+Code:wght@200;400;600&display=swap" type="text/css">
<script type="module" crossorigin src="/slides/bisonex/assets/index-D2S1x1Oe.js"></script>
<link rel="modulepreload" crossorigin href="/slides/bisonex/assets/modules/vue-Dn3czbSS.js">
<link rel="modulepreload" crossorigin href="/slides/bisonex/assets/modules/shiki-CuMFyo6Z.js">
<link rel="stylesheet" crossorigin href="/slides/bisonex/assets/modules/shiki-BSchMNmt.css">
<link rel="stylesheet" crossorigin href="/slides/bisonex/assets/index-Dw67r9kT.css">
</head>
<body>
<div id="app"></div>
<div id="mermaid-rendering-container"></div>
</body>
</html>
import{a$ as zt,b0 as ot,aM as wt,aL as Ft,s as Nt,g as Xt,C as Yt,D as St,a as Ht,b as $t,E as Ut,l as Ct,aK as qt,i as jt,d as Gt}from"./slidev/5-BKiUV7YW.js";import{a as Qt}from"./createText-f6615236-y76jB5p3.js";import{i as Kt}from"./init-cc95ec8e-Gi6I4Gst.js";import{o as Zt}from"./ordinal-475e0c0c-BmOJQ37o.js";import{l as pt}from"./linear-d94cf28d-BvaqH9Ej.js";import{l as ft}from"./line-65d70945-BvyDbe4_.js";import"./modules/vue-Dn3czbSS.js";import"./index-D2S1x1Oe.js";import"./modules/shiki-CuMFyo6Z.js";import"./modules/file-saver-EUMWMpoS.js";import"./slidev/default-CY-sqYNf.js";import"./slidev/context-CYh2-pv1.js";import"./array-b7dcf730-BKyUJesY.js";import"./path-39bad7e2-CbwjOpE9.js";function Jt(e,t,i){e=+e,t=+t,i=(n=arguments.length)<2?(t=e,e=0,1):n<3?1:+i;for(var s=-1,n=Math.max(0,Math.ceil((t-e)/i))|0,o=new Array(n);++s<n;)o[s]=e+s*i;return o}function st(){var e=Zt().unknown(void 0),t=e.domain,i=e.range,s=0,n=1,o,c,p=!1,d=0,R=0,_=.5;delete e.unknown;function A(){var m=t().length,T=n<s,S=T?n:s,P=T?s:n;o=(P-S)/Math.max(1,m-d+R*2),p&&(o=Math.floor(o)),S+=(P-S-o*(m-d))*_,c=o*(1-d),p&&(S=Math.round(S),c=Math.round(c));var f=Jt(m).map(function(C){return S+o*C});return i(T?f.reverse():f)}return e.domain=function(m){return arguments.length?(t(m),A()):t()},e.range=function(m){return arguments.length?([s,n]=m,s=+s,n=+n,A()):[s,n]},e.rangeRound=function(m){return[s,n]=m,s=+s,n=+n,p=!0,A()},e.bandwidth=function(){return c},e.step=function(){return o},e.round=function(m){return arguments.length?(p=!!m,A()):p},e.padding=function(m){return arguments.length?(d=Math.min(1,R=+m),A()):d},e.paddingInner=function(m){return arguments.length?(d=Math.min(1,m),A()):d},e.paddingOuter=function(m){return arguments.length?(R=+m,A()):R},e.align=function(m){return arguments.length?(_=Math.max(0,Math.min(1,m)),A()):_},e.copy=function(){return st(t(),[s,n]).round(p).paddingInner(d).paddingOuter(R).align(_)},Kt.apply(A(),arguments)}var nt=function(){var e=function(V,r,l,u){for(l=l||{},u=V.length;u--;l[V[u]]=r);return l},t=[1,10,12,14,16,18,19,21,23],i=[2,6],s=[1,3],n=[1,5],o=[1,6],c=[1,7],p=[1,5,10,12,14,16,18,19,21,23,34,35,36],d=[1,25],R=[1,26],_=[1,28],A=[1,29],m=[1,30],T=[1,31],S=[1,32],P=[1,33],f=[1,34],C=[1,35],h=[1,36],L=[1,37],z=[1,43],lt=[1,42],ct=[1,47],$=[1,50],w=[1,10,12,14,16,18,19,21,23,34,35,36],Q=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],E=[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],ut=[1,64],K={trace:function(){},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:function(r,l,u,g,b,a,F){var x=a.length-1;switch(b){case 5:g.setOrientation(a[x]);break;case 9:g.setDiagramTitle(a[x].text.trim());break;case 12:g.setLineData({text:"",type:"text"},a[x]);break;case 13:g.setLineData(a[x-1],a[x]);break;case 14:g.setBarData({text:"",type:"text"},a[x]);break;case 15:g.setBarData(a[x-1],a[x]);break;case 16:this.$=a[x].trim(),g.setAccTitle(this.$);break;case 17:case 18:this.$=a[x].trim(),g.setAccDescription(this.$);break;case 19:this.$=a[x-1];break;case 20:this.$=[Number(a[x-2]),...a[x]];break;case 21:this.$=[Number(a[x])];break;case 22:g.setXAxisTitle(a[x]);break;case 23:g.setXAxisTitle(a[x-1]);break;case 24:g.setXAxisTitle({type:"text",text:""});break;case 25:g.setXAxisBand(a[x]);break;case 26:g.setXAxisRangeData(Number(a[x-2]),Number(a[x]));break;case 27:this.$=a[x-1];break;case 28:this.$=[a[x-2],...a[x]];break;case 29:this.$=[a[x]];break;case 30:g.setYAxisTitle(a[x]);break;case 31:g.setYAxisTitle(a[x-1]);break;case 32:g.setYAxisTitle({type:"text",text:""});break;case 33:g.setYAxisRangeData(Number(a[x-2]),Number(a[x]));break;case 37:this.$={text:a[x],type:"text"};break;case 38:this.$={text:a[x],type:"text"};break;case 39:this.$={text:a[x],type:"markdown"};break;case 40:this.$=a[x];break;case 41:this.$=a[x-1]+""+a[x];break}},table:[e(t,i,{3:1,4:2,7:4,5:s,34:n,35:o,36:c}),{1:[3]},e(t,i,{4:2,7:4,3:8,5:s,34:n,35:o,36:c}),e(t,i,{4:2,7:4,6:9,3:10,5:s,8:[1,11],34:n,35:o,36:c}),{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(p,[2,34]),e(p,[2,35]),e(p,[2,36]),{1:[2,1]},e(t,i,{4:2,7:4,3:21,5:s,34:n,35:o,36:c}),{1:[2,3]},e(p,[2,5]),e(t,[2,7],{4:22,34:n,35:o,36:c}),{11:23,37:24,38:d,39:R,40:27,41:_,42:A,43:m,44:T,45:S,46:P,47:f,48:C,49:h,50:L},{11:39,13:38,24:z,27:lt,29:40,30:41,37:24,38:d,39:R,40:27,41:_,42:A,43:m,44:T,45:S,46:P,47:f,48:C,49:h,50:L},{11:45,15:44,27:ct,33:46,37:24,38:d,39:R,40:27,41:_,42:A,43:m,44:T,45:S,46:P,47:f,48:C,49:h,50:L},{11:49,17:48,24:$,37:24,38:d,39:R,40:27,41:_,42:A,43:m,44:T,45:S,46:P,47:f,48:C,49:h,50:L},{11:52,17:51,24:$,37:24,38:d,39:R,40:27,41:_,42:A,43:m,44:T,45:S,46:P,47:f,48:C,49:h,50:L},{20:[1,53]},{22:[1,54]},e(w,[2,18]),{1:[2,2]},e(w,[2,8]),e(w,[2,9]),e(Q,[2,37],{40:55,41:_,42:A,43:m,44:T,45:S,46:P,47:f,48:C,49:h,50:L}),e(Q,[2,38]),e(Q,[2,39]),e(E,[2,40]),e(E,[2,42]),e(E,[2,43]),e(E,[2,44]),e(E,[2,45]),e(E,[2,46]),e(E,[2,47]),e(E,[2,48]),e(E,[2,49]),e(E,[2,50]),e(E,[2,51]),e(w,[2,10]),e(w,[2,22],{30:41,29:56,24:z,27:lt}),e(w,[2,24]),e(w,[2,25]),{31:[1,57]},{11:59,32:58,37:24,38:d,39:R,40:27,41:_,42:A,43:m,44:T,45:S,46:P,47:f,48:C,49:h,50:L},e(w,[2,11]),e(w,[2,30],{33:60,27:ct}),e(w,[2,32]),{31:[1,61]},e(w,[2,12]),{17:62,24:$},{25:63,27:ut},e(w,[2,14]),{17:65,24:$},e(w,[2,16]),e(w,[2,17]),e(E,[2,41]),e(w,[2,23]),{27:[1,66]},{26:[1,67]},{26:[2,29],28:[1,68]},e(w,[2,31]),{27:[1,69]},e(w,[2,13]),{26:[1,70]},{26:[2,21],28:[1,71]},e(w,[2,15]),e(w,[2,26]),e(w,[2,27]),{11:59,32:72,37:24,38:d,39:R,40:27,41:_,42:A,43:m,44:T,45:S,46:P,47:f,48:C,49:h,50:L},e(w,[2,33]),e(w,[2,19]),{25:73,27:ut},{26:[2,28]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],72:[2,28],73:[2,20]},parseError:function(r,l){if(l.recoverable)this.trace(r);else{var u=new Error(r);throw u.hash=l,u}},parse:function(r){var l=this,u=[0],g=[],b=[null],a=[],F=this.table,x="",U=0,gt=0,Vt=2,xt=1,Bt=a.slice.call(arguments,1),k=Object.create(this.lexer),B={yy:{}};for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J)&&(B.yy[J]=this.yy[J]);k.setInput(r,B.yy),B.yy.lexer=k,B.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var tt=k.yylloc;a.push(tt);var Wt=k.options&&k.options.ranges;typeof B.yy.parseError=="function"?this.parseError=B.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ot(){var I;return I=g.pop()||k.lex()||xt,typeof I!="number"&&(I instanceof Array&&(g=I,I=g.pop()),I=l.symbols_[I]||I),I}for(var D,W,v,it,O={},q,M,dt,j;;){if(W=u[u.length-1],this.defaultActions[W]?v=this.defaultActions[W]:((D===null||typeof D>"u")&&(D=Ot()),v=F[W]&&F[W][D]),typeof v>"u"||!v.length||!v[0]){var et="";j=[];for(q in F[W])this.terminals_[q]&&q>Vt&&j.push("'"+this.terminals_[q]+"'");k.showPosition?et="Parse error on line "+(U+1)+`:
`+k.showPosition()+`
Expecting `+j.join(", ")+", got '"+(this.terminals_[D]||D)+"'":et="Parse error on line "+(U+1)+": Unexpected "+(D==xt?"end of input":"'"+(this.terminals_[D]||D)+"'"),this.parseError(et,{text:k.match,token:this.terminals_[D]||D,line:k.yylineno,loc:tt,expected:j})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+W+", token: "+D);switch(v[0]){case 1:u.push(D),b.push(k.yytext),a.push(k.yylloc),u.push(v[1]),D=null,gt=k.yyleng,x=k.yytext,U=k.yylineno,tt=k.yylloc;break;case 2:if(M=this.productions_[v[1]][1],O.$=b[b.length-M],O._$={first_line:a[a.length-(M||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(M||1)].first_column,last_column:a[a.length-1].last_column},Wt&&(O._$.range=[a[a.length-(M||1)].range[0],a[a.length-1].range[1]]),it=this.performAction.apply(O,[x,gt,U,B.yy,v[1],b,a].concat(Bt)),typeof it<"u")return it;M&&(u=u.slice(0,-1*M*2),b=b.slice(0,-1*M),a=a.slice(0,-1*M)),u.push(this.productions_[v[1]][0]),b.push(O.$),a.push(O._$),dt=F[u[u.length-2]][u[u.length-1]],u.push(dt);break;case 3:return!0}}return!0}},It=function(){var V={EOF:1,parseError:function(l,u){if(this.yy.parser)this.yy.parser.parseError(l,u);else throw new Error(l)},setInput:function(r,l){return this.yy=l||this.yy||{},this._input=r,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 r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var l=r.match(/(?:\r\n?|\n).*/g);return l?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},unput:function(r){var l=r.length,u=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;var g=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),u.length-1&&(this.yylineno-=u.length-1);var b=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:u?(u.length===g.length?this.yylloc.first_column:0)+g[g.length-u.length].length-u[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[b[0],b[0]+this.yyleng-l]),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(r){this.unput(this.match.slice(r))},pastInput:function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var r=this.pastInput(),l=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
`+l+"^"},test_match:function(r,l){var u,g,b;if(this.options.backtrack_lexer&&(b={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&&(b.yylloc.range=this.yylloc.range.slice(0))),g=r[0].match(/(?:\r\n?|\n).*/g),g&&(this.yylineno+=g.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:g?g[g.length-1].length-g[g.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+r[0].length},this.yytext+=r[0],this.match+=r[0],this.matches=r,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(r[0].length),this.matched+=r[0],u=this.performAction.call(this,this.yy,this,l,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),u)return u;if(this._backtrack){for(var a in b)this[a]=b[a];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var r,l,u,g;this._more||(this.yytext="",this.match="");for(var b=this._currentRules(),a=0;a<b.length;a++)if(u=this._input.match(this.rules[b[a]]),u&&(!l||u[0].length>l[0].length)){if(l=u,g=a,this.options.backtrack_lexer){if(r=this.test_match(u,b[a]),r!==!1)return r;if(this._backtrack){l=!1;continue}else return!1}else if(!this.options.flex)break}return l?(r=this.test_match(l,b[g]),r!==!1?r:!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 l=this.next();return l||this.lex()},begin:function(l){this.conditionStack.push(l)},popState:function(){var l=this.conditionStack.length-1;return l>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(l){return l=this.conditionStack.length-1-Math.abs(l||0),l>=0?this.conditionStack[l]:"INITIAL"},pushState:function(l){this.begin(l)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(l,u,g,b){switch(g){case 0:break;case 1:break;case 2:return this.popState(),34;case 3:return this.popState(),34;case 4:return 34;case 5:break;case 6:return 10;case 7:return this.pushState("acc_title"),19;case 8:return this.popState(),"acc_title_value";case 9:return this.pushState("acc_descr"),21;case 10:return this.popState(),"acc_descr_value";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";case 17:return this.pushState("axis_data"),"Y_AXIS";case 18:return this.pushState("axis_band_data"),24;case 19:return 31;case 20:return this.pushState("data"),16;case 21:return this.pushState("data"),18;case 22:return this.pushState("data_inner"),24;case 23:return 27;case 24:return this.popState(),26;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}},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<md_string>\(\?:\(\?!`"\)\.\)\+ \{ return MD_STR; \}\n<md_string>\(\?:`))/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 V}();K.lexer=It;function Z(){this.yy={}}return Z.prototype=K,K.Parser=Z,new Z}();nt.parser=nt;const ti=nt;function mt(e){return e.type==="bar"}function _t(e){return e.type==="band"}function N(e){return e.type==="linear"}class kt{constructor(t){this.parentGroup=t}getMaxDimension(t,i){if(!this.parentGroup)return{width:t.reduce((o,c)=>Math.max(c.length,o),0)*i,height:i};const s={width:0,height:0},n=this.parentGroup.append("g").attr("visibility","hidden").attr("font-size",i);for(const o of t){const c=Qt(n,1,o),p=c?c.width:o.length*i,d=c?c.height:i;s.width=Math.max(s.width,p),s.height=Math.max(s.height,d)}return n.remove(),s}}const yt=.7,bt=.2;class Rt{constructor(t,i,s,n){this.axisConfig=t,this.title=i,this.textDimensionCalculator=s,this.axisThemeConfig=n,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"}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(){const 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(){yt*this.getTickDistance()>this.outerPadding*2&&(this.outerPadding=Math.floor(yt*this.getTickDistance()/2)),this.recalculateScale()}calculateSpaceIfDrawnHorizontally(t){let i=t.height;if(this.axisConfig.showAxisLine&&i>this.axisConfig.axisLineWidth&&(i-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){const s=this.getLabelDimension(),n=bt*t.width;this.outerPadding=Math.min(s.width/2,n);const o=s.height+this.axisConfig.labelPadding*2;this.labelTextHeight=s.height,o<=i&&(i-=o,this.showLabel=!0)}if(this.axisConfig.showTick&&i>=this.axisConfig.tickLength&&(this.showTick=!0,i-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){const s=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),n=s.height+this.axisConfig.titlePadding*2;this.titleTextHeight=s.height,n<=i&&(i-=n,this.showTitle=!0)}this.boundingRect.width=t.width,this.boundingRect.height=t.height-i}calculateSpaceIfDrawnVertical(t){let i=t.width;if(this.axisConfig.showAxisLine&&i>this.axisConfig.axisLineWidth&&(i-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){const s=this.getLabelDimension(),n=bt*t.height;this.outerPadding=Math.min(s.height/2,n);const o=s.width+this.axisConfig.labelPadding*2;o<=i&&(i-=o,this.showLabel=!0)}if(this.axisConfig.showTick&&i>=this.axisConfig.tickLength&&(this.showTick=!0,i-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){const s=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),n=s.height+this.axisConfig.titlePadding*2;this.titleTextHeight=s.height,n<=i&&(i-=n,this.showTitle=!0)}this.boundingRect.width=t.width-i,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(){const t=[];if(this.showAxisLine){const i=this.boundingRect.x+this.boundingRect.width-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["left-axis","axisl-line"],data:[{path:`M ${i},${this.boundingRect.y} L ${i},${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(i=>({text:i.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(i),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"middle",horizontalPos:"right"}))}),this.showTick){const i=this.boundingRect.x+this.boundingRect.width-(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["left-axis","ticks"],data:this.getTickValues().map(s=>({path:`M ${i},${this.getScaleValue(s)} L ${i-this.axisConfig.tickLength},${this.getScaleValue(s)}`,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(){const t=[];if(this.showAxisLine){const i=this.boundingRect.y+this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["bottom-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${i} L ${this.boundingRect.x+this.boundingRect.width},${i}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["bottom-axis","label"],data:this.getTickValues().map(i=>({text:i.toString(),x:this.getScaleValue(i),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){const i=this.boundingRect.y+(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["bottom-axis","ticks"],data:this.getTickValues().map(s=>({path:`M ${this.getScaleValue(s)},${i} L ${this.getScaleValue(s)},${i+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(){const t=[];if(this.showAxisLine){const i=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},${i} L ${this.boundingRect.x+this.boundingRect.width},${i}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["top-axis","label"],data:this.getTickValues().map(i=>({text:i.toString(),x:this.getScaleValue(i),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){const i=this.boundingRect.y;t.push({type:"path",groupTexts:["top-axis","ticks"],data:this.getTickValues().map(s=>({path:`M ${this.getScaleValue(s)},${i+this.boundingRect.height-(this.showAxisLine?this.axisConfig.axisLineWidth:0)} L ${this.getScaleValue(s)},${i+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():[]}}class ii extends Rt{constructor(t,i,s,n,o){super(t,n,o,i),this.categories=s,this.scale=st().domain(this.categories).range(this.getRange())}setRange(t){super.setRange(t)}recalculateScale(){this.scale=st().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(.5),Ct.trace("BandAxis axis final categories, range: ",this.categories,this.getRange())}getTickValues(){return this.categories}getScaleValue(t){return this.scale(t)||this.getRange()[0]}}class ei extends Rt{constructor(t,i,s,n,o){super(t,n,o,i),this.domain=s,this.scale=pt().domain(this.domain).range(this.getRange())}getTickValues(){return this.scale.ticks()}recalculateScale(){const t=[...this.domain];this.axisPosition==="left"&&t.reverse(),this.scale=pt().domain(t).range(this.getRange())}getScaleValue(t){return this.scale(t)}}function At(e,t,i,s){const n=new kt(s);return _t(e)?new ii(t,i,e.categories,e.title,n):new ei(t,i,[e.min,e.max],e.title,n)}class si{constructor(t,i,s,n){this.textDimensionCalculator=t,this.chartConfig=i,this.chartData=s,this.chartThemeConfig=n,this.boundingRect={x:0,y:0,width:0,height:0},this.showChartTitle=!1}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){const i=this.textDimensionCalculator.getMaxDimension([this.chartData.title],this.chartConfig.titleFontSize),s=Math.max(i.width,t.width),n=i.height+2*this.chartConfig.titlePadding;return i.width<=s&&i.height<=n&&this.chartConfig.showTitle&&this.chartData.title&&(this.boundingRect.width=s,this.boundingRect.height=n,this.showChartTitle=!0),{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){const 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}}function ni(e,t,i,s){const n=new kt(s);return new si(n,e,t,i)}class ai{constructor(t,i,s,n,o){this.plotData=t,this.xAxis=i,this.yAxis=s,this.orientation=n,this.plotIndex=o}getDrawableElement(){const t=this.plotData.data.map(s=>[this.xAxis.getScaleValue(s[0]),this.yAxis.getScaleValue(s[1])]);let i;return this.orientation==="horizontal"?i=ft().y(s=>s[0]).x(s=>s[1])(t):i=ft().x(s=>s[0]).y(s=>s[1])(t),i?[{groupTexts:["plot",`line-plot-${this.plotIndex}`],type:"path",data:[{path:i,strokeFill:this.plotData.strokeFill,strokeWidth:this.plotData.strokeWidth}]}]:[]}}class oi{constructor(t,i,s,n,o,c){this.barData=t,this.boundingRect=i,this.xAxis=s,this.yAxis=n,this.orientation=o,this.plotIndex=c}getDrawableElement(){const t=this.barData.data.map(o=>[this.xAxis.getScaleValue(o[0]),this.yAxis.getScaleValue(o[1])]),s=Math.min(this.xAxis.getAxisOuterPadding()*2,this.xAxis.getTickDistance())*(1-.05),n=s/2;return this.orientation==="horizontal"?[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map(o=>({x:this.boundingRect.x,y:o[0]-n,height:s,width:o[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(o=>({x:o[0]-n,y:o[1],width:s,height:this.boundingRect.y+this.boundingRect.height-o[1],fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]}}class ri{constructor(t,i,s){this.chartConfig=t,this.chartData=i,this.chartThemeConfig=s,this.boundingRect={x:0,y:0,width:0,height:0}}setAxes(t,i){this.xAxis=t,this.yAxis=i}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");const t=[];for(const[i,s]of this.chartData.plots.entries())switch(s.type){case"line":{const n=new ai(s,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,i);t.push(...n.getDrawableElement())}break;case"bar":{const n=new oi(s,this.boundingRect,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,i);t.push(...n.getDrawableElement())}break}return t}}function hi(e,t,i){return new ri(e,t,i)}class li{constructor(t,i,s,n){this.chartConfig=t,this.chartData=i,this.componentStore={title:ni(t,i,s,n),plot:hi(t,i,s),xAxis:At(i.xAxis,t.xAxis,{titleColor:s.xAxisTitleColor,labelColor:s.xAxisLabelColor,tickColor:s.xAxisTickColor,axisLineColor:s.xAxisLineColor},n),yAxis:At(i.yAxis,t.yAxis,{titleColor:s.yAxisTitleColor,labelColor:s.yAxisLabelColor,tickColor:s.yAxisTickColor,axisLineColor:s.yAxisLineColor},n)}}calculateVerticalSpace(){let t=this.chartConfig.width,i=this.chartConfig.height,s=0,n=0,o=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),c=Math.floor(i*this.chartConfig.plotReservedSpacePercent/100),p=this.componentStore.plot.calculateSpace({width:o,height:c});t-=p.width,i-=p.height,p=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:i}),n=p.height,i-=p.height,this.componentStore.xAxis.setAxisPosition("bottom"),p=this.componentStore.xAxis.calculateSpace({width:t,height:i}),i-=p.height,this.componentStore.yAxis.setAxisPosition("left"),p=this.componentStore.yAxis.calculateSpace({width:t,height:i}),s=p.width,t-=p.width,t>0&&(o+=t,t=0),i>0&&(c+=i,i=0),this.componentStore.plot.calculateSpace({width:o,height:c}),this.componentStore.plot.setBoundingBoxXY({x:s,y:n}),this.componentStore.xAxis.setRange([s,s+o]),this.componentStore.xAxis.setBoundingBoxXY({x:s,y:n+c}),this.componentStore.yAxis.setRange([n,n+c]),this.componentStore.yAxis.setBoundingBoxXY({x:0,y:n}),this.chartData.plots.some(d=>mt(d))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateHorizontalSpace(){let t=this.chartConfig.width,i=this.chartConfig.height,s=0,n=0,o=0,c=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),p=Math.floor(i*this.chartConfig.plotReservedSpacePercent/100),d=this.componentStore.plot.calculateSpace({width:c,height:p});t-=d.width,i-=d.height,d=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:i}),s=d.height,i-=d.height,this.componentStore.xAxis.setAxisPosition("left"),d=this.componentStore.xAxis.calculateSpace({width:t,height:i}),t-=d.width,n=d.width,this.componentStore.yAxis.setAxisPosition("top"),d=this.componentStore.yAxis.calculateSpace({width:t,height:i}),i-=d.height,o=s+d.height,t>0&&(c+=t,t=0),i>0&&(p+=i,i=0),this.componentStore.plot.calculateSpace({width:c,height:p}),this.componentStore.plot.setBoundingBoxXY({x:n,y:o}),this.componentStore.yAxis.setRange([n,n+c]),this.componentStore.yAxis.setBoundingBoxXY({x:n,y:s}),this.componentStore.xAxis.setRange([o,o+p]),this.componentStore.xAxis.setBoundingBoxXY({x:0,y:o}),this.chartData.plots.some(R=>mt(R))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateSpace(){this.chartConfig.chartOrientation==="horizontal"?this.calculateHorizontalSpace():this.calculateVerticalSpace()}getDrawableElement(){this.calculateSpace();const t=[];this.componentStore.plot.setAxes(this.componentStore.xAxis,this.componentStore.yAxis);for(const i of Object.values(this.componentStore))t.push(...i.getDrawableElements());return t}}class ci{static build(t,i,s,n){return new li(t,i,s,n).getDrawableElement()}}let X=0,Tt,Y=Pt(),H=Dt(),y=Lt(),at=H.plotColorPalette.split(",").map(e=>e.trim()),G=!1,rt=!1;function Dt(){const e=zt(),t=ot();return wt(e.xyChart,t.themeVariables.xyChart)}function Pt(){const e=ot();return wt(Ft.xyChart,e.xyChart)}function Lt(){return{yAxis:{type:"linear",title:"",min:1/0,max:-1/0},xAxis:{type:"band",title:"",categories:[]},title:"",plots:[]}}function ht(e){const t=ot();return Gt(e.trim(),t)}function ui(e){Tt=e}function gi(e){e==="horizontal"?Y.chartOrientation="horizontal":Y.chartOrientation="vertical"}function xi(e){y.xAxis.title=ht(e.text)}function Et(e,t){y.xAxis={type:"linear",title:y.xAxis.title,min:e,max:t},G=!0}function di(e){y.xAxis={type:"band",title:y.xAxis.title,categories:e.map(t=>ht(t.text))},G=!0}function pi(e){y.yAxis.title=ht(e.text)}function fi(e,t){y.yAxis={type:"linear",title:y.yAxis.title,min:e,max:t},rt=!0}function mi(e){const t=Math.min(...e),i=Math.max(...e),s=N(y.yAxis)?y.yAxis.min:1/0,n=N(y.yAxis)?y.yAxis.max:-1/0;y.yAxis={type:"linear",title:y.yAxis.title,min:Math.min(s,t),max:Math.max(n,i)}}function vt(e){let t=[];if(e.length===0)return t;if(!G){const i=N(y.xAxis)?y.xAxis.min:1/0,s=N(y.xAxis)?y.xAxis.max:-1/0;Et(Math.min(i,1),Math.max(s,e.length))}if(rt||mi(e),_t(y.xAxis)&&(t=y.xAxis.categories.map((i,s)=>[i,e[s]])),N(y.xAxis)){const i=y.xAxis.min,s=y.xAxis.max,n=(s-i+1)/e.length,o=[];for(let c=i;c<=s;c+=n)o.push(`${c}`);t=o.map((c,p)=>[c,e[p]])}return t}function Mt(e){return at[e===0?0:e%at.length]}function yi(e,t){const i=vt(t);y.plots.push({type:"line",strokeFill:Mt(X),strokeWidth:2,data:i}),X++}function bi(e,t){const i=vt(t);y.plots.push({type:"bar",fill:Mt(X),data:i}),X++}function Ai(){if(y.plots.length===0)throw Error("No Plot to render, please provide a plot with some data");return y.title=St(),ci.build(Y,y,H,Tt)}function wi(){return H}function Si(){return Y}const Ci=function(){Ut(),X=0,Y=Pt(),y=Lt(),H=Dt(),at=H.plotColorPalette.split(",").map(e=>e.trim()),G=!1,rt=!1},_i={getDrawableElem:Ai,clear:Ci,setAccTitle:Nt,getAccTitle:Xt,setDiagramTitle:Yt,getDiagramTitle:St,getAccDescription:Ht,setAccDescription:$t,setOrientation:gi,setXAxisTitle:xi,setXAxisRangeData:Et,setXAxisBand:di,setYAxisTitle:pi,setYAxisRangeData:fi,setLineData:yi,setBarData:bi,setTmpSVGG:ui,getChartThemeConfig:wi,getChartConfig:Si},ki=(e,t,i,s)=>{const n=s.db,o=n.getChartThemeConfig(),c=n.getChartConfig();function p(f){return f==="top"?"text-before-edge":"middle"}function d(f){return f==="left"?"start":f==="right"?"end":"middle"}function R(f){return`translate(${f.x}, ${f.y}) rotate(${f.rotation||0})`}Ct.debug(`Rendering xychart chart
`+e);const _=qt(t),A=_.append("g").attr("class","main"),m=A.append("rect").attr("width",c.width).attr("height",c.height).attr("class","background");jt(_,c.height,c.width,!0),_.attr("viewBox",`0 0 ${c.width} ${c.height}`),m.attr("fill",o.backgroundColor),n.setTmpSVGG(_.append("g").attr("class","mermaid-tmp-group"));const T=n.getDrawableElem(),S={};function P(f){let C=A,h="";for(const[L]of f.entries()){let z=A;L>0&&S[h]&&(z=S[h]),h+=f[L],C=S[h],C||(C=S[h]=z.append("g").attr("class",f[L]))}return C}for(const f of T){if(f.data.length===0)continue;const C=P(f.groupTexts);switch(f.type){case"rect":C.selectAll("rect").data(f.data).enter().append("rect").attr("x",h=>h.x).attr("y",h=>h.y).attr("width",h=>h.width).attr("height",h=>h.height).attr("fill",h=>h.fill).attr("stroke",h=>h.strokeFill).attr("stroke-width",h=>h.strokeWidth);break;case"text":C.selectAll("text").data(f.data).enter().append("text").attr("x",0).attr("y",0).attr("fill",h=>h.fill).attr("font-size",h=>h.fontSize).attr("dominant-baseline",h=>p(h.verticalPos)).attr("text-anchor",h=>d(h.horizontalPos)).attr("transform",h=>R(h)).text(h=>h.text);break;case"path":C.selectAll("path").data(f.data).enter().append("path").attr("d",h=>h.path).attr("fill",h=>h.fill?h.fill:"none").attr("stroke",h=>h.strokeFill).attr("stroke-width",h=>h.strokeWidth);break}}},Ri={draw:ki},Ni={parser:ti,db:_i,renderer:Ri};export{Ni as diagram};
import{b5 as ft,E as gt,c as mt,l as E,h as G,t as xt,b6 as bt,b7 as _t,b8 as kt}from"./slidev/5-BKiUV7YW.js";import{d as D}from"./arc-5aa99581-BU3o1NUK.js";import"./modules/vue-Dn3czbSS.js";import"./index-D2S1x1Oe.js";import"./modules/shiki-CuMFyo6Z.js";import"./modules/file-saver-EUMWMpoS.js";import"./slidev/default-CY-sqYNf.js";import"./slidev/context-CYh2-pv1.js";import"./path-39bad7e2-CbwjOpE9.js";var K=function(){var n=function(g,i,r,c){for(r=r||{},c=g.length;c--;r[g[c]]=i);return r},t=[6,8,10,11,12,14,16,17,20,21],e=[1,9],a=[1,10],s=[1,11],h=[1,12],o=[1,13],p=[1,16],y=[1,17],f={trace:function(){},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:function(i,r,c,d,u,l,$){var x=l.length-1;switch(u){case 1:return l[x-1];case 2:this.$=[];break;case 3:l[x-1].push(l[x]),this.$=l[x-1];break;case 4:case 5:this.$=l[x];break;case 6:case 7:this.$=[];break;case 8:d.getCommonDb().setDiagramTitle(l[x].substr(6)),this.$=l[x].substr(6);break;case 9:this.$=l[x].trim(),d.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=l[x].trim(),d.getCommonDb().setAccDescription(this.$);break;case 12:d.addSection(l[x].substr(8)),this.$=l[x].substr(8);break;case 15:d.addTask(l[x],0,""),this.$=l[x];break;case 16:d.addEvent(l[x].substr(2)),this.$=l[x];break}},table:[{3:1,4:[1,2]},{1:[3]},n(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:e,12:a,14:s,16:h,17:o,18:14,19:15,20:p,21:y},n(t,[2,7],{1:[2,1]}),n(t,[2,3]),{9:18,11:e,12:a,14:s,16:h,17:o,18:14,19:15,20:p,21:y},n(t,[2,5]),n(t,[2,6]),n(t,[2,8]),{13:[1,19]},{15:[1,20]},n(t,[2,11]),n(t,[2,12]),n(t,[2,13]),n(t,[2,14]),n(t,[2,15]),n(t,[2,16]),n(t,[2,4]),n(t,[2,9]),n(t,[2,10])],defaultActions:{},parseError:function(i,r){if(r.recoverable)this.trace(i);else{var c=new Error(i);throw c.hash=r,c}},parse:function(i){var r=this,c=[0],d=[],u=[null],l=[],$=this.table,x="",T=0,W=0,C=2,A=1,B=l.slice.call(arguments,1),k=Object.create(this.lexer),w={yy:{}};for(var v in this.yy)Object.prototype.hasOwnProperty.call(this.yy,v)&&(w.yy[v]=this.yy[v]);k.setInput(i,w.yy),w.yy.lexer=k,w.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var I=k.yylloc;l.push(I);var P=k.options&&k.options.ranges;typeof w.yy.parseError=="function"?this.parseError=w.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function z(){var M;return M=d.pop()||k.lex()||A,typeof M!="number"&&(M instanceof Array&&(d=M,M=d.pop()),M=r.symbols_[M]||M),M}for(var _,L,S,Z,R={},O,N,Y,j;;){if(L=c[c.length-1],this.defaultActions[L]?S=this.defaultActions[L]:((_===null||typeof _>"u")&&(_=z()),S=$[L]&&$[L][_]),typeof S>"u"||!S.length||!S[0]){var J="";j=[];for(O in $[L])this.terminals_[O]&&O>C&&j.push("'"+this.terminals_[O]+"'");k.showPosition?J="Parse error on line "+(T+1)+`:
`+k.showPosition()+`
Expecting `+j.join(", ")+", got '"+(this.terminals_[_]||_)+"'":J="Parse error on line "+(T+1)+": Unexpected "+(_==A?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(J,{text:k.match,token:this.terminals_[_]||_,line:k.yylineno,loc:I,expected:j})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+L+", token: "+_);switch(S[0]){case 1:c.push(_),u.push(k.yytext),l.push(k.yylloc),c.push(S[1]),_=null,W=k.yyleng,x=k.yytext,T=k.yylineno,I=k.yylloc;break;case 2:if(N=this.productions_[S[1]][1],R.$=u[u.length-N],R._$={first_line:l[l.length-(N||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(N||1)].first_column,last_column:l[l.length-1].last_column},P&&(R._$.range=[l[l.length-(N||1)].range[0],l[l.length-1].range[1]]),Z=this.performAction.apply(R,[x,W,T,w.yy,S[1],u,l].concat(B)),typeof Z<"u")return Z;N&&(c=c.slice(0,-1*N*2),u=u.slice(0,-1*N),l=l.slice(0,-1*N)),c.push(this.productions_[S[1]][0]),u.push(R.$),l.push(R._$),Y=$[c[c.length-2]][c[c.length-1]],c.push(Y);break;case 3:return!0}}return!0}},b=function(){var g={EOF:1,parseError:function(r,c){if(this.yy.parser)this.yy.parser.parseError(r,c);else throw new Error(r)},setInput:function(i,r){return this.yy=r||this.yy||{},this._input=i,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 i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var r=i.match(/(?:\r\n?|\n).*/g);return r?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},unput:function(i){var r=i.length,c=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;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 u=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-r},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-r]),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(i){this.unput(this.match.slice(i))},pastInput:function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var i=this.pastInput(),r=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
`+r+"^"},test_match:function(i,r){var c,d,u;if(this.options.backtrack_lexer&&(u={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&&(u.yylloc.range=this.yylloc.range.slice(0))),d=i[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+i[0].length},this.yytext+=i[0],this.match+=i[0],this.matches=i,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(i[0].length),this.matched+=i[0],c=this.performAction.call(this,this.yy,this,r,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),c)return c;if(this._backtrack){for(var l in u)this[l]=u[l];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var i,r,c,d;this._more||(this.yytext="",this.match="");for(var u=this._currentRules(),l=0;l<u.length;l++)if(c=this._input.match(this.rules[u[l]]),c&&(!r||c[0].length>r[0].length)){if(r=c,d=l,this.options.backtrack_lexer){if(i=this.test_match(c,u[l]),i!==!1)return i;if(this._backtrack){r=!1;continue}else return!1}else if(!this.options.flex)break}return r?(i=this.test_match(r,u[d]),i!==!1?i:!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 r=this.next();return r||this.lex()},begin:function(r){this.conditionStack.push(r)},popState:function(){var r=this.conditionStack.length-1;return r>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(r){return r=this.conditionStack.length-1-Math.abs(r||0),r>=0?this.conditionStack[r]:"INITIAL"},pushState:function(r){this.begin(r)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(r,c,d,u){switch(d){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;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),14;case 10:return this.popState(),"acc_descr_value";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"}},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 g}();f.lexer=b;function m(){this.yy={}}return m.prototype=f,f.Parser=m,new m}();K.parser=K;const vt=K;let F="",st=0;const Q=[],q=[],V=[],it=()=>ft,rt=function(){Q.length=0,q.length=0,F="",V.length=0,gt()},at=function(n){F=n,Q.push(n)},ot=function(){return Q},lt=function(){let n=tt();const t=100;let e=0;for(;!n&&e<t;)n=tt(),e++;return q.push(...V),q},ct=function(n,t,e){const a={id:st++,section:F,type:F,task:n,score:t||0,events:e?[e]:[]};V.push(a)},ht=function(n){V.find(e=>e.id===st-1).events.push(n)},dt=function(n){const t={section:F,type:F,description:n,task:n,classes:[]};q.push(t)},tt=function(){const n=function(e){return V[e].processed};let t=!0;for(const[e,a]of V.entries())n(e),t=t&&a.processed;return t},wt={clear:rt,getCommonDb:it,addSection:at,getSections:ot,getTasks:lt,addTask:ct,addTaskOrg:dt,addEvent:ht},St=Object.freeze(Object.defineProperty({__proto__:null,addEvent:ht,addSection:at,addTask:ct,addTaskOrg:dt,clear:rt,default:wt,getCommonDb:it,getSections:ot,getTasks:lt},Symbol.toStringTag,{value:"Module"})),Et=12,U=function(n,t){const e=n.append("rect");return e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),e.attr("rx",t.rx),e.attr("ry",t.ry),t.class!==void 0&&e.attr("class",t.class),e},Tt=function(n,t){const a=n.append("circle").attr("cx",t.cx).attr("cy",t.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),s=n.append("g");s.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"),s.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 h(y){const f=D().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);y.append("path").attr("class","mouth").attr("d",f).attr("transform","translate("+t.cx+","+(t.cy+2)+")")}function o(y){const f=D().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);y.append("path").attr("class","mouth").attr("d",f).attr("transform","translate("+t.cx+","+(t.cy+7)+")")}function p(y){y.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 t.score>3?h(s):t.score<3?o(s):p(s),a},It=function(n,t){const e=n.append("circle");return e.attr("cx",t.cx),e.attr("cy",t.cy),e.attr("class","actor-"+t.pos),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("r",t.r),e.class!==void 0&&e.attr("class",e.class),t.title!==void 0&&e.append("title").text(t.title),e},ut=function(n,t){const e=t.text.replace(/<br\s*\/?>/gi," "),a=n.append("text");a.attr("x",t.x),a.attr("y",t.y),a.attr("class","legend"),a.style("text-anchor",t.anchor),t.class!==void 0&&a.attr("class",t.class);const s=a.append("tspan");return s.attr("x",t.x+t.textMargin*2),s.text(e),a},$t=function(n,t){function e(s,h,o,p,y){return s+","+h+" "+(s+o)+","+h+" "+(s+o)+","+(h+p-y)+" "+(s+o-y*1.2)+","+(h+p)+" "+s+","+(h+p)}const a=n.append("polygon");a.attr("points",e(t.x,t.y,50,20,7)),a.attr("class","labelBox"),t.y=t.y+t.labelMargin,t.x=t.x+.5*t.labelMargin,ut(n,t)},Nt=function(n,t,e){const a=n.append("g"),s=X();s.x=t.x,s.y=t.y,s.fill=t.fill,s.width=e.width,s.height=e.height,s.class="journey-section section-type-"+t.num,s.rx=3,s.ry=3,U(a,s),pt(e)(t.text,a,s.x,s.y,s.width,s.height,{class:"journey-section section-type-"+t.num},e,t.colour)};let et=-1;const Mt=function(n,t,e){const a=t.x+e.width/2,s=n.append("g");et++;const h=300+5*30;s.append("line").attr("id","task"+et).attr("x1",a).attr("y1",t.y).attr("x2",a).attr("y2",h).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),Tt(s,{cx:a,cy:300+(5-t.score)*30,score:t.score});const o=X();o.x=t.x,o.y=t.y,o.fill=t.fill,o.width=e.width,o.height=e.height,o.class="task task-type-"+t.num,o.rx=3,o.ry=3,U(s,o),t.x+14,pt(e)(t.task,s,o.x,o.y,o.width,o.height,{class:"task"},e,t.colour)},Lt=function(n,t){U(n,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,class:"rect"}).lower()},At=function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}},X=function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},pt=function(){function n(s,h,o,p,y,f,b,m){const g=h.append("text").attr("x",o+y/2).attr("y",p+f/2+5).style("font-color",m).style("text-anchor","middle").text(s);a(g,b)}function t(s,h,o,p,y,f,b,m,g){const{taskFontSize:i,taskFontFamily:r}=m,c=s.split(/<br\s*\/?>/gi);for(let d=0;d<c.length;d++){const u=d*i-i*(c.length-1)/2,l=h.append("text").attr("x",o+y/2).attr("y",p).attr("fill",g).style("text-anchor","middle").style("font-size",i).style("font-family",r);l.append("tspan").attr("x",o+y/2).attr("dy",u).text(c[d]),l.attr("y",p+f/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),a(l,b)}}function e(s,h,o,p,y,f,b,m){const g=h.append("switch"),r=g.append("foreignObject").attr("x",o).attr("y",p).attr("width",y).attr("height",f).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");r.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(s),t(s,g,o,p,y,f,b,m),a(r,b)}function a(s,h){for(const o in h)o in h&&s.attr(o,h[o])}return function(s){return s.textPlacement==="fo"?e:s.textPlacement==="old"?n:t}}(),Pt=function(n){n.append("defs").append("marker").attr("id","arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")};function yt(n,t){n.each(function(){var e=G(this),a=e.text().split(/(\s+|<br>)/).reverse(),s,h=[],o=1.1,p=e.attr("y"),y=parseFloat(e.attr("dy")),f=e.text(null).append("tspan").attr("x",0).attr("y",p).attr("dy",y+"em");for(let b=0;b<a.length;b++)s=a[a.length-1-b],h.push(s),f.text(h.join(" ").trim()),(f.node().getComputedTextLength()>t||s==="<br>")&&(h.pop(),f.text(h.join(" ").trim()),s==="<br>"?h=[""]:h=[s],f=e.append("tspan").attr("x",0).attr("y",p).attr("dy",o+"em").text(s))})}const Ht=function(n,t,e,a){const s=e%Et-1,h=n.append("g");t.section=s,h.attr("class",(t.class?t.class+" ":"")+"timeline-node "+("section-"+s));const o=h.append("g"),p=h.append("g"),f=p.append("text").text(t.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(yt,t.width).node().getBBox(),b=a.fontSize&&a.fontSize.replace?a.fontSize.replace("px",""):a.fontSize;return t.height=f.height+b*1.1*.5+t.padding,t.height=Math.max(t.height,t.maxHeight),t.width=t.width+2*t.padding,p.attr("transform","translate("+t.width/2+", "+t.padding/2+")"),zt(o,t,s),t},Ct=function(n,t,e){const a=n.append("g"),h=a.append("text").text(t.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(yt,t.width).node().getBBox(),o=e.fontSize&&e.fontSize.replace?e.fontSize.replace("px",""):e.fontSize;return a.remove(),h.height+o*1.1*.5+t.padding},zt=function(n,t,e){n.append("path").attr("id","node-"+t.id).attr("class","node-bkg node-"+t.type).attr("d",`M0 ${t.height-5} v${-t.height+2*5} q0,-5 5,-5 h${t.width-2*5} q5,0 5,5 v${t.height-5} H0 Z`),n.append("line").attr("class","node-line-"+e).attr("x1",0).attr("y1",t.height).attr("x2",t.width).attr("y2",t.height)},H={drawRect:U,drawCircle:It,drawSection:Nt,drawText:ut,drawLabel:$t,drawTask:Mt,drawBackgroundRect:Lt,getTextObj:At,getNoteRect:X,initGraphics:Pt,drawNode:Ht,getVirtualNodeHeight:Ct},Rt=function(n,t,e,a){var s,h;const o=mt(),p=o.leftMargin??50;E.debug("timeline",a.db);const y=o.securityLevel;let f;y==="sandbox"&&(f=G("#i"+t));const m=(y==="sandbox"?G(f.nodes()[0].contentDocument.body):G("body")).select("#"+t);m.append("g");const g=a.db.getTasks(),i=a.db.getCommonDb().getDiagramTitle();E.debug("task",g),H.initGraphics(m);const r=a.db.getSections();E.debug("sections",r);let c=0,d=0,u=0,l=0,$=50+p,x=50;l=50;let T=0,W=!0;r.forEach(function(w){const v={number:T,descr:w,section:T,width:150,padding:20,maxHeight:c},I=H.getVirtualNodeHeight(m,v,o);E.debug("sectionHeight before draw",I),c=Math.max(c,I+20)});let C=0,A=0;E.debug("tasks.length",g.length);for(const[w,v]of g.entries()){const I={number:w,descr:v,section:v.section,width:150,padding:20,maxHeight:d},P=H.getVirtualNodeHeight(m,I,o);E.debug("taskHeight before draw",P),d=Math.max(d,P+20),C=Math.max(C,v.events.length);let z=0;for(let _=0;_<v.events.length;_++){const S={descr:v.events[_],section:v.section,number:v.section,width:150,padding:20,maxHeight:50};z+=H.getVirtualNodeHeight(m,S,o)}A=Math.max(A,z)}E.debug("maxSectionHeight before draw",c),E.debug("maxTaskHeight before draw",d),r&&r.length>0?r.forEach(w=>{const v=g.filter(_=>_.section===w),I={number:T,descr:w,section:T,width:200*Math.max(v.length,1)-50,padding:20,maxHeight:c};E.debug("sectionNode",I);const P=m.append("g"),z=H.drawNode(P,I,T,o);E.debug("sectionNode output",z),P.attr("transform",`translate(${$}, ${l})`),x+=c+50,v.length>0&&nt(m,v,T,$,x,d,o,C,A,c,!1),$+=200*Math.max(v.length,1),x=l,T++}):(W=!1,nt(m,g,T,$,x,d,o,C,A,c,!0));const B=m.node().getBBox();E.debug("bounds",B),i&&m.append("text").text(i).attr("x",B.width/2-p).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),u=W?c+d+150:d+100,m.append("g").attr("class","lineWrapper").append("line").attr("x1",p).attr("y1",u).attr("x2",B.width+3*p).attr("y2",u).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),xt(void 0,m,((s=o.timeline)==null?void 0:s.padding)??50,((h=o.timeline)==null?void 0:h.useMaxWidth)??!1)},nt=function(n,t,e,a,s,h,o,p,y,f,b){var m;for(const g of t){const i={descr:g.task,section:e,number:e,width:150,padding:20,maxHeight:h};E.debug("taskNode",i);const r=n.append("g").attr("class","taskWrapper"),d=H.drawNode(r,i,e,o).height;if(E.debug("taskHeight after draw",d),r.attr("transform",`translate(${a}, ${s})`),h=Math.max(h,d),g.events){const u=n.append("g").attr("class","lineWrapper");let l=h;s+=100,l=l+Ft(n,g.events,e,a,s,o),s-=100,u.append("line").attr("x1",a+190/2).attr("y1",s+h).attr("x2",a+190/2).attr("y2",s+h+(b?h:f)+y+120).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5")}a=a+200,b&&!((m=o.timeline)!=null&&m.disableMulticolor)&&e++}s=s-10},Ft=function(n,t,e,a,s,h){let o=0;const p=s;s=s+100;for(const y of t){const f={descr:y,section:e,number:e,width:150,padding:20,maxHeight:50};E.debug("eventNode",f);const b=n.append("g").attr("class","eventWrapper"),g=H.drawNode(b,f,e,h).height;o=o+g,b.attr("transform",`translate(${a}, ${s})`),s=s+10+g}return s=p,o},Vt={setConf:()=>{},draw:Rt},Wt=n=>{let t="";for(let e=0;e<n.THEME_COLOR_LIMIT;e++)n["lineColor"+e]=n["lineColor"+e]||n["cScaleInv"+e],bt(n["lineColor"+e])?n["lineColor"+e]=_t(n["lineColor"+e],20):n["lineColor"+e]=kt(n["lineColor"+e],20);for(let e=0;e<n.THEME_COLOR_LIMIT;e++){const a=""+(17-3*e);t+=`
.section-${e-1} rect, .section-${e-1} path, .section-${e-1} circle, .section-${e-1} path {
fill: ${n["cScale"+e]};
}
.section-${e-1} text {
fill: ${n["cScaleLabel"+e]};
}
.node-icon-${e-1} {
font-size: 40px;
color: ${n["cScaleLabel"+e]};
}
.section-edge-${e-1}{
stroke: ${n["cScale"+e]};
}
.edge-depth-${e-1}{
stroke-width: ${a};
}
.section-${e-1} line {
stroke: ${n["cScaleInv"+e]} ;
stroke-width: 3;
}
.lineWrapper line{
stroke: ${n["cScaleLabel"+e]} ;
}
.disabled, .disabled circle, .disabled text {
fill: lightgray;
}
.disabled text {
fill: #efefef;
}
`}return t},Bt=n=>`
.edge {
stroke-width: 3;
}
${Wt(n)}
.section-root rect, .section-root path, .section-root circle {
fill: ${n.git0};
}
.section-root text {
fill: ${n.gitBranchLabel0};
}
.icon-container {
height:100%;
display: flex;
justify-content: center;
align-items: center;
}
.edge {
fill: none;
}
.eventWrapper {
filter: brightness(120%);
}
`,Ot=Bt,Yt={db:St,renderer:Vt,parser:vt,styles:Ot};export{Yt as diagram};
import{m as i,U as o}from"./slidev/5-BKiUV7YW.js";const l=(s,t)=>{const e=s.append("rect");if(e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),t.name&&e.attr("name",t.name),t.rx!==void 0&&e.attr("rx",t.rx),t.ry!==void 0&&e.attr("ry",t.ry),t.attrs!==void 0)for(const r in t.attrs)e.attr(r,t.attrs[r]);return t.class!==void 0&&e.attr("class",t.class),e},x=(s,t)=>{const e={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};l(s,e).lower()},d=(s,t)=>{const e=t.text.replace(o," "),r=s.append("text");r.attr("x",t.x),r.attr("y",t.y),r.attr("class","legend"),r.style("text-anchor",t.anchor),t.class!==void 0&&r.attr("class",t.class);const n=r.append("tspan");return n.attr("x",t.x+t.textMargin*2),n.text(e),r},h=(s,t,e,r)=>{const n=s.append("image");n.attr("x",t),n.attr("y",e);const a=i.sanitizeUrl(r);n.attr("xlink:href",a)},y=(s,t,e,r)=>{const n=s.append("use");n.attr("x",t),n.attr("y",e);const a=i.sanitizeUrl(r);n.attr("xlink:href",`#${a}`)},g=()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),m=()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0});export{x as a,y as b,h as c,l as d,m as e,d as f,g};
import{s as ut,g as rt,a as at,b as lt,c as F,C as ct,D as ot,j as v,E as ht,l as At,v as We,h as z,d as pt,G as Re}from"./slidev/5-BKiUV7YW.js";var Ve=function(){var e=function(x,u,a,h){for(a=a||{},h=x.length;h--;a[x[h]]=u);return a},i=[1,17],r=[1,18],l=[1,19],o=[1,39],A=[1,40],g=[1,25],D=[1,23],B=[1,24],_=[1,31],fe=[1,32],de=[1,33],Ee=[1,34],Ce=[1,35],me=[1,36],be=[1,26],ge=[1,27],ke=[1,28],Te=[1,29],d=[1,43],Fe=[1,30],E=[1,42],C=[1,44],m=[1,41],k=[1,45],ye=[1,9],c=[1,8,9],Y=[1,56],j=[1,57],Q=[1,58],X=[1,59],H=[1,60],De=[1,61],Be=[1,62],W=[1,8,9,39],Ge=[1,74],M=[1,8,9,12,13,21,37,39,42,59,60,61,62,63,64,65,70,72],q=[1,8,9,12,13,19,21,37,39,42,46,59,60,61,62,63,64,65,70,72,74,80,95,97,98],J=[13,74,80,95,97,98],G=[13,64,65,74,80,95,97,98],Ue=[13,59,60,61,62,63,74,80,95,97,98],_e=[1,93],Z=[1,110],$=[1,108],ee=[1,102],te=[1,103],se=[1,104],ie=[1,105],ne=[1,106],ue=[1,107],re=[1,109],Se=[1,8,9,37,39,42],ae=[1,8,9,21],ze=[1,8,9,78],S=[1,8,9,21,73,74,78,80,81,82,83,84,85],Ne={trace:function(){},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,className:17,classLiteralName:18,GENERICTYPE:19,relationStatement:20,LABEL:21,namespaceStatement:22,classStatement:23,memberStatement:24,annotationStatement:25,clickStatement:26,styleStatement:27,cssClassStatement:28,noteStatement:29,direction:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,namespaceIdentifier:36,STRUCT_START:37,classStatements:38,STRUCT_STOP:39,NAMESPACE:40,classIdentifier:41,STYLE_SEPARATOR:42,members:43,CLASS:44,ANNOTATION_START:45,ANNOTATION_END:46,MEMBER:47,SEPARATOR:48,relation:49,NOTE_FOR:50,noteText:51,NOTE:52,direction_tb:53,direction_bt:54,direction_rl:55,direction_lr:56,relationType:57,lineType:58,AGGREGATION:59,EXTENSION:60,COMPOSITION:61,DEPENDENCY:62,LOLLIPOP:63,LINE:64,DOTTED_LINE:65,CALLBACK:66,LINK:67,LINK_TARGET:68,CLICK:69,CALLBACK_NAME:70,CALLBACK_ARGS:71,HREF:72,STYLE:73,ALPHA:74,stylesOpt:75,CSSCLASS:76,style:77,COMMA:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,commentToken:86,textToken:87,graphCodeTokens:88,textNoTagsToken:89,TAGSTART:90,TAGEND:91,"==":92,"--":93,DEFAULT:94,MINUS:95,keywords:96,UNICODE_TEXT:97,BQUOTE_STR:98,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",19:"GENERICTYPE",21:"LABEL",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",37:"STRUCT_START",39:"STRUCT_STOP",40:"NAMESPACE",42:"STYLE_SEPARATOR",44:"CLASS",45:"ANNOTATION_START",46:"ANNOTATION_END",47:"MEMBER",48:"SEPARATOR",50:"NOTE_FOR",52:"NOTE",53:"direction_tb",54:"direction_bt",55:"direction_rl",56:"direction_lr",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",76:"CSSCLASS",78:"COMMA",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",88:"graphCodeTokens",90:"TAGSTART",91:"TAGEND",92:"==",93:"--",94:"DEFAULT",95:"MINUS",96:"keywords",97:"UNICODE_TEXT",98:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,2],[17,1],[17,1],[17,2],[17,2],[17,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],[22,4],[22,5],[36,2],[38,1],[38,2],[38,3],[23,1],[23,3],[23,4],[23,6],[41,2],[41,3],[25,4],[43,1],[43,2],[24,1],[24,2],[24,1],[24,1],[20,3],[20,4],[20,4],[20,5],[29,3],[29,2],[30,1],[30,1],[30,1],[30,1],[49,3],[49,2],[49,2],[49,1],[57,1],[57,1],[57,1],[57,1],[57,1],[58,1],[58,1],[26,3],[26,4],[26,3],[26,4],[26,4],[26,5],[26,3],[26,4],[26,4],[26,5],[26,4],[26,5],[26,5],[26,6],[27,3],[28,3],[75,1],[75,3],[77,1],[77,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[86,1],[86,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[89,1],[89,1],[89,1],[89,1],[16,1],[16,1],[16,1],[16,1],[18,1],[51,1]],performAction:function(u,a,h,n,f,t,U){var s=t.length-1;switch(f){case 8:this.$=t[s-1];break;case 9:case 11:case 12:this.$=t[s];break;case 10:case 13:this.$=t[s-1]+t[s];break;case 14:case 15:this.$=t[s-1]+"~"+t[s]+"~";break;case 16:n.addRelation(t[s]);break;case 17:t[s-1].title=n.cleanupLabel(t[s]),n.addRelation(t[s-1]);break;case 27:this.$=t[s].trim(),n.setAccTitle(this.$);break;case 28:case 29:this.$=t[s].trim(),n.setAccDescription(this.$);break;case 30:n.addClassesToNamespace(t[s-3],t[s-1]);break;case 31:n.addClassesToNamespace(t[s-4],t[s-1]);break;case 32:this.$=t[s],n.addNamespace(t[s]);break;case 33:this.$=[t[s]];break;case 34:this.$=[t[s-1]];break;case 35:t[s].unshift(t[s-2]),this.$=t[s];break;case 37:n.setCssClass(t[s-2],t[s]);break;case 38:n.addMembers(t[s-3],t[s-1]);break;case 39:n.setCssClass(t[s-5],t[s-3]),n.addMembers(t[s-5],t[s-1]);break;case 40:this.$=t[s],n.addClass(t[s]);break;case 41:this.$=t[s-1],n.addClass(t[s-1]),n.setClassLabel(t[s-1],t[s]);break;case 42:n.addAnnotation(t[s],t[s-2]);break;case 43:this.$=[t[s]];break;case 44:t[s].push(t[s-1]),this.$=t[s];break;case 45:break;case 46:n.addMember(t[s-1],n.cleanupLabel(t[s]));break;case 47:break;case 48:break;case 49:this.$={id1:t[s-2],id2:t[s],relation:t[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 50:this.$={id1:t[s-3],id2:t[s],relation:t[s-1],relationTitle1:t[s-2],relationTitle2:"none"};break;case 51:this.$={id1:t[s-3],id2:t[s],relation:t[s-2],relationTitle1:"none",relationTitle2:t[s-1]};break;case 52:this.$={id1:t[s-4],id2:t[s],relation:t[s-2],relationTitle1:t[s-3],relationTitle2:t[s-1]};break;case 53:n.addNote(t[s],t[s-1]);break;case 54:n.addNote(t[s]);break;case 55:n.setDirection("TB");break;case 56:n.setDirection("BT");break;case 57:n.setDirection("RL");break;case 58:n.setDirection("LR");break;case 59:this.$={type1:t[s-2],type2:t[s],lineType:t[s-1]};break;case 60:this.$={type1:"none",type2:t[s],lineType:t[s-1]};break;case 61:this.$={type1:t[s-1],type2:"none",lineType:t[s]};break;case 62:this.$={type1:"none",type2:"none",lineType:t[s]};break;case 63:this.$=n.relationType.AGGREGATION;break;case 64:this.$=n.relationType.EXTENSION;break;case 65:this.$=n.relationType.COMPOSITION;break;case 66:this.$=n.relationType.DEPENDENCY;break;case 67:this.$=n.relationType.LOLLIPOP;break;case 68:this.$=n.lineType.LINE;break;case 69:this.$=n.lineType.DOTTED_LINE;break;case 70:case 76:this.$=t[s-2],n.setClickEvent(t[s-1],t[s]);break;case 71:case 77:this.$=t[s-3],n.setClickEvent(t[s-2],t[s-1]),n.setTooltip(t[s-2],t[s]);break;case 72:this.$=t[s-2],n.setLink(t[s-1],t[s]);break;case 73:this.$=t[s-3],n.setLink(t[s-2],t[s-1],t[s]);break;case 74:this.$=t[s-3],n.setLink(t[s-2],t[s-1]),n.setTooltip(t[s-2],t[s]);break;case 75:this.$=t[s-4],n.setLink(t[s-3],t[s-2],t[s]),n.setTooltip(t[s-3],t[s-1]);break;case 78:this.$=t[s-3],n.setClickEvent(t[s-2],t[s-1],t[s]);break;case 79:this.$=t[s-4],n.setClickEvent(t[s-3],t[s-2],t[s-1]),n.setTooltip(t[s-3],t[s]);break;case 80:this.$=t[s-3],n.setLink(t[s-2],t[s]);break;case 81:this.$=t[s-4],n.setLink(t[s-3],t[s-1],t[s]);break;case 82:this.$=t[s-4],n.setLink(t[s-3],t[s-1]),n.setTooltip(t[s-3],t[s]);break;case 83:this.$=t[s-5],n.setLink(t[s-4],t[s-2],t[s]),n.setTooltip(t[s-4],t[s-1]);break;case 84:this.$=t[s-2],n.setCssStyle(t[s-1],t[s]);break;case 85:n.setCssClass(t[s-1],t[s]);break;case 86:this.$=[t[s]];break;case 87:t[s-2].push(t[s]),this.$=t[s-2];break;case 89:this.$=t[s-1]+t[s];break}},table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:37,17:20,18:38,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,31:i,33:r,35:l,36:21,40:o,41:22,44:A,45:g,47:D,48:B,50:_,52:fe,53:de,54:Ee,55:Ce,56:me,66:be,67:ge,69:ke,73:Te,74:d,76:Fe,80:E,95:C,97:m,98:k},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},e(ye,[2,5],{8:[1,46]}),{8:[1,47]},e(c,[2,16],{21:[1,48]}),e(c,[2,18]),e(c,[2,19]),e(c,[2,20]),e(c,[2,21]),e(c,[2,22]),e(c,[2,23]),e(c,[2,24]),e(c,[2,25]),e(c,[2,26]),{32:[1,49]},{34:[1,50]},e(c,[2,29]),e(c,[2,45],{49:51,57:54,58:55,13:[1,52],21:[1,53],59:Y,60:j,61:Q,62:X,63:H,64:De,65:Be}),{37:[1,63]},e(W,[2,36],{37:[1,65],42:[1,64]}),e(c,[2,47]),e(c,[2,48]),{16:66,74:d,80:E,95:C,97:m},{16:37,17:67,18:38,74:d,80:E,95:C,97:m,98:k},{16:37,17:68,18:38,74:d,80:E,95:C,97:m,98:k},{16:37,17:69,18:38,74:d,80:E,95:C,97:m,98:k},{74:[1,70]},{13:[1,71]},{16:37,17:72,18:38,74:d,80:E,95:C,97:m,98:k},{13:Ge,51:73},e(c,[2,55]),e(c,[2,56]),e(c,[2,57]),e(c,[2,58]),e(M,[2,11],{16:37,18:38,17:75,19:[1,76],74:d,80:E,95:C,97:m,98:k}),e(M,[2,12],{19:[1,77]}),{15:78,16:79,74:d,80:E,95:C,97:m},{16:37,17:80,18:38,74:d,80:E,95:C,97:m,98:k},e(q,[2,112]),e(q,[2,113]),e(q,[2,114]),e(q,[2,115]),e([1,8,9,12,13,19,21,37,39,42,59,60,61,62,63,64,65,70,72],[2,116]),e(ye,[2,6],{10:5,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,17:20,36:21,41:22,16:37,18:38,5:81,31:i,33:r,35:l,40:o,44:A,45:g,47:D,48:B,50:_,52:fe,53:de,54:Ee,55:Ce,56:me,66:be,67:ge,69:ke,73:Te,74:d,76:Fe,80:E,95:C,97:m,98:k}),{5:82,10:5,16:37,17:20,18:38,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,31:i,33:r,35:l,36:21,40:o,41:22,44:A,45:g,47:D,48:B,50:_,52:fe,53:de,54:Ee,55:Ce,56:me,66:be,67:ge,69:ke,73:Te,74:d,76:Fe,80:E,95:C,97:m,98:k},e(c,[2,17]),e(c,[2,27]),e(c,[2,28]),{13:[1,84],16:37,17:83,18:38,74:d,80:E,95:C,97:m,98:k},{49:85,57:54,58:55,59:Y,60:j,61:Q,62:X,63:H,64:De,65:Be},e(c,[2,46]),{58:86,64:De,65:Be},e(J,[2,62],{57:87,59:Y,60:j,61:Q,62:X,63:H}),e(G,[2,63]),e(G,[2,64]),e(G,[2,65]),e(G,[2,66]),e(G,[2,67]),e(Ue,[2,68]),e(Ue,[2,69]),{8:[1,89],23:90,38:88,41:22,44:A},{16:91,74:d,80:E,95:C,97:m},{43:92,47:_e},{46:[1,94]},{13:[1,95]},{13:[1,96]},{70:[1,97],72:[1,98]},{21:Z,73:$,74:ee,75:99,77:100,79:101,80:te,81:se,82:ie,83:ne,84:ue,85:re},{74:[1,111]},{13:Ge,51:112},e(c,[2,54]),e(c,[2,117]),e(M,[2,13]),e(M,[2,14]),e(M,[2,15]),{37:[2,32]},{15:113,16:79,37:[2,9],74:d,80:E,95:C,97:m},e(Se,[2,40],{11:114,12:[1,115]}),e(ye,[2,7]),{9:[1,116]},e(ae,[2,49]),{16:37,17:117,18:38,74:d,80:E,95:C,97:m,98:k},{13:[1,119],16:37,17:118,18:38,74:d,80:E,95:C,97:m,98:k},e(J,[2,61],{57:120,59:Y,60:j,61:Q,62:X,63:H}),e(J,[2,60]),{39:[1,121]},{23:90,38:122,41:22,44:A},{8:[1,123],39:[2,33]},e(W,[2,37],{37:[1,124]}),{39:[1,125]},{39:[2,43],43:126,47:_e},{16:37,17:127,18:38,74:d,80:E,95:C,97:m,98:k},e(c,[2,70],{13:[1,128]}),e(c,[2,72],{13:[1,130],68:[1,129]}),e(c,[2,76],{13:[1,131],71:[1,132]}),{13:[1,133]},e(c,[2,84],{78:[1,134]}),e(ze,[2,86],{79:135,21:Z,73:$,74:ee,80:te,81:se,82:ie,83:ne,84:ue,85:re}),e(S,[2,88]),e(S,[2,90]),e(S,[2,91]),e(S,[2,92]),e(S,[2,93]),e(S,[2,94]),e(S,[2,95]),e(S,[2,96]),e(S,[2,97]),e(S,[2,98]),e(c,[2,85]),e(c,[2,53]),{37:[2,10]},e(Se,[2,41]),{13:[1,136]},{1:[2,4]},e(ae,[2,51]),e(ae,[2,50]),{16:37,17:137,18:38,74:d,80:E,95:C,97:m,98:k},e(J,[2,59]),e(c,[2,30]),{39:[1,138]},{23:90,38:139,39:[2,34],41:22,44:A},{43:140,47:_e},e(W,[2,38]),{39:[2,44]},e(c,[2,42]),e(c,[2,71]),e(c,[2,73]),e(c,[2,74],{68:[1,141]}),e(c,[2,77]),e(c,[2,78],{13:[1,142]}),e(c,[2,80],{13:[1,144],68:[1,143]}),{21:Z,73:$,74:ee,77:145,79:101,80:te,81:se,82:ie,83:ne,84:ue,85:re},e(S,[2,89]),{14:[1,146]},e(ae,[2,52]),e(c,[2,31]),{39:[2,35]},{39:[1,147]},e(c,[2,75]),e(c,[2,79]),e(c,[2,81]),e(c,[2,82],{68:[1,148]}),e(ze,[2,87],{79:135,21:Z,73:$,74:ee,80:te,81:se,82:ie,83:ne,84:ue,85:re}),e(Se,[2,8]),e(W,[2,39]),e(c,[2,83])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],78:[2,32],113:[2,10],116:[2,4],126:[2,44],139:[2,35]},parseError:function(u,a){if(a.recoverable)this.trace(u);else{var h=new Error(u);throw h.hash=a,h}},parse:function(u){var a=this,h=[0],n=[],f=[null],t=[],U=this.table,s="",le=0,Ke=0,tt=2,Ye=1,st=t.slice.call(arguments,1),b=Object.create(this.lexer),I={yy:{}};for(var ve in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ve)&&(I.yy[ve]=this.yy[ve]);b.setInput(u,I.yy),I.yy.lexer=b,I.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var xe=b.yylloc;t.push(xe);var it=b.options&&b.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function nt(){var L;return L=n.pop()||b.lex()||Ye,typeof L!="number"&&(L instanceof Array&&(n=L,L=n.pop()),L=a.symbols_[L]||L),L}for(var T,R,y,Oe,P={},ce,N,je,oe;;){if(R=h[h.length-1],this.defaultActions[R]?y=this.defaultActions[R]:((T===null||typeof T>"u")&&(T=nt()),y=U[R]&&U[R][T]),typeof y>"u"||!y.length||!y[0]){var Ie="";oe=[];for(ce in U[R])this.terminals_[ce]&&ce>tt&&oe.push("'"+this.terminals_[ce]+"'");b.showPosition?Ie="Parse error on line "+(le+1)+`:
`+b.showPosition()+`
Expecting `+oe.join(", ")+", got '"+(this.terminals_[T]||T)+"'":Ie="Parse error on line "+(le+1)+": Unexpected "+(T==Ye?"end of input":"'"+(this.terminals_[T]||T)+"'"),this.parseError(Ie,{text:b.match,token:this.terminals_[T]||T,line:b.yylineno,loc:xe,expected:oe})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+R+", token: "+T);switch(y[0]){case 1:h.push(T),f.push(b.yytext),t.push(b.yylloc),h.push(y[1]),T=null,Ke=b.yyleng,s=b.yytext,le=b.yylineno,xe=b.yylloc;break;case 2:if(N=this.productions_[y[1]][1],P.$=f[f.length-N],P._$={first_line:t[t.length-(N||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(N||1)].first_column,last_column:t[t.length-1].last_column},it&&(P._$.range=[t[t.length-(N||1)].range[0],t[t.length-1].range[1]]),Oe=this.performAction.apply(P,[s,Ke,le,I.yy,y[1],f,t].concat(st)),typeof Oe<"u")return Oe;N&&(h=h.slice(0,-1*N*2),f=f.slice(0,-1*N),t=t.slice(0,-1*N)),h.push(this.productions_[y[1]][0]),f.push(P.$),t.push(P._$),je=U[h[h.length-2]][h[h.length-1]],h.push(je);break;case 3:return!0}}return!0}},et=function(){var x={EOF:1,parseError:function(a,h){if(this.yy.parser)this.yy.parser.parseError(a,h);else throw new Error(a)},setInput:function(u,a){return this.yy=a||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},input:function(){var u=this._input[0];this.yytext+=u,this.yyleng++,this.offset++,this.match+=u,this.matched+=u;var a=u.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),u},unput:function(u){var a=u.length,h=u.split(/(?:\r\n?|\n)/g);this._input=u+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;var n=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),h.length-1&&(this.yylineno-=h.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:h?(h.length===n.length?this.yylloc.first_column:0)+n[n.length-h.length].length-h[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[f[0],f[0]+this.yyleng-a]),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(u){this.unput(this.match.slice(u))},pastInput:function(){var u=this.matched.substr(0,this.matched.length-this.match.length);return(u.length>20?"...":"")+u.substr(-20).replace(/\n/g,"")},upcomingInput: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,"")},showPosition:function(){var u=this.pastInput(),a=new Array(u.length+1).join("-");return u+this.upcomingInput()+`
`+a+"^"},test_match:function(u,a){var h,n,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))),n=u[0].match(/(?:\r\n?|\n).*/g),n&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.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],h=this.performAction.call(this,this.yy,this,a,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),h)return h;if(this._backtrack){for(var t in f)this[t]=f[t];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var u,a,h,n;this._more||(this.yytext="",this.match="");for(var f=this._currentRules(),t=0;t<f.length;t++)if(h=this._input.match(this.rules[f[t]]),h&&(!a||h[0].length>a[0].length)){if(a=h,n=t,this.options.backtrack_lexer){if(u=this.test_match(h,f[t]),u!==!1)return u;if(this._backtrack){a=!1;continue}else return!1}else if(!this.options.flex)break}return a?(u=this.test_match(a,f[n]),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})},lex:function(){var a=this.next();return a||this.lex()},begin:function(a){this.conditionStack.push(a)},popState:function(){var a=this.conditionStack.length-1;return a>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(a){return a=this.conditionStack.length-1-Math.abs(a||0),a>=0?this.conditionStack[a]:"INITIAL"},pushState:function(a){this.begin(a)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(a,h,n,f){switch(n){case 0:return 53;case 1:return 54;case 2:return 55;case 3:return 56;case 4:break;case 5:break;case 6:return this.begin("acc_title"),31;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),33;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 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 70;case 22:this.popState();break;case 23:return 71;case 24:this.popState();break;case 25:return"STR";case 26:this.begin("string");break;case 27:return 73;case 28:return this.begin("namespace"),40;case 29:return this.popState(),8;case 30:break;case 31:return this.begin("namespace-body"),37;case 32:return this.popState(),39;case 33:return"EOF_IN_STRUCT";case 34:return 8;case 35:break;case 36:return"EDGE_STATE";case 37:return this.begin("class"),44;case 38:return this.popState(),8;case 39:break;case 40:return this.popState(),this.popState(),39;case 41:return this.begin("class-body"),37;case 42:return this.popState(),39;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 76;case 49:return 66;case 50:return 67;case 51:return 69;case 52:return 50;case 53:return 52;case 54:return 45;case 55:return 46;case 56:return 72;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 68;case 64:return 68;case 65:return 68;case 66:return 68;case 67:return 60;case 68:return 60;case 69:return 62;case 70:return 62;case 71:return 61;case 72:return 59;case 73:return 63;case 74:return 64;case 75:return 65;case 76:return 21;case 77:return 42;case 78:return 95;case 79:return"DOT";case 80:return"PLUS";case 81:return 81;case 82:return 78;case 83:return 84;case 84:return 84;case 85:return 85;case 86:return"EQUALS";case 87:return"EQUALS";case 88:return 74;case 89:return 12;case 90:return 14;case 91:return"PUNCTUATION";case 92:return 80;case 93:return 97;case 94:return 83;case 95:return 83;case 96:return 9}},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 x}();Ne.lexer=et;function Le(){this.yy={}}return Le.prototype=Ne,Ne.Parser=Le,new Le}();Ve.parser=Ve;const zt=Ve,Qe=["#","+","~","-",""];class Xe{constructor(i,r){this.memberType=r,this.visibility="",this.classifier="";const l=pt(i,F());this.parseMember(l)}getDisplayDetails(){let i=this.visibility+Re(this.id);this.memberType==="method"&&(i+=`(${Re(this.parameters.trim())})`,this.returnType&&(i+=" : "+Re(this.returnType))),i=i.trim();const r=this.parseClassifier();return{displayText:i,cssStyle:r}}parseMember(i){let r="";if(this.memberType==="method"){const l=/([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/,o=i.match(l);if(o){const A=o[1]?o[1].trim():"";if(Qe.includes(A)&&(this.visibility=A),this.id=o[2].trim(),this.parameters=o[3]?o[3].trim():"",r=o[4]?o[4].trim():"",this.returnType=o[5]?o[5].trim():"",r===""){const g=this.returnType.substring(this.returnType.length-1);g.match(/[$*]/)&&(r=g,this.returnType=this.returnType.substring(0,this.returnType.length-1))}}}else{const l=i.length,o=i.substring(0,1),A=i.substring(l-1);Qe.includes(o)&&(this.visibility=o),A.match(/[$*]/)&&(r=A),this.id=i.substring(this.visibility===""?0:1,r===""?l:l-1)}this.classifier=r}parseClassifier(){switch(this.classifier){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}}}const pe="classId-";let Pe=[],p={},he=[],He=0,O={},we=0,K=[];const V=e=>v.sanitizeText(e,F()),w=function(e){const i=v.sanitizeText(e,F());let r="",l=i;if(i.indexOf("~")>0){const o=i.split("~");l=V(o[0]),r=V(o[1])}return{className:l,type:r}},ft=function(e,i){const r=v.sanitizeText(e,F());i&&(i=V(i));const{className:l}=w(r);p[l].label=i},Ae=function(e){const i=v.sanitizeText(e,F()),{className:r,type:l}=w(i);if(Object.hasOwn(p,r))return;const o=v.sanitizeText(r,F());p[o]={id:o,type:l,label:o,cssClasses:[],methods:[],members:[],annotations:[],styles:[],domId:pe+o+"-"+He},He++},qe=function(e){const i=v.sanitizeText(e,F());if(i in p)return p[i].domId;throw new Error("Class not found: "+i)},dt=function(){Pe=[],p={},he=[],K=[],K.push(Ze),O={},we=0,ht()},Et=function(e){return p[e]},Ct=function(){return p},mt=function(){return Pe},bt=function(){return he},gt=function(e){At.debug("Adding relation: "+JSON.stringify(e)),Ae(e.id1),Ae(e.id2),e.id1=w(e.id1).className,e.id2=w(e.id2).className,e.relationTitle1=v.sanitizeText(e.relationTitle1.trim(),F()),e.relationTitle2=v.sanitizeText(e.relationTitle2.trim(),F()),Pe.push(e)},kt=function(e,i){const r=w(e).className;p[r].annotations.push(i)},Je=function(e,i){Ae(e);const r=w(e).className,l=p[r];if(typeof i=="string"){const o=i.trim();o.startsWith("<<")&&o.endsWith(">>")?l.annotations.push(V(o.substring(2,o.length-2))):o.indexOf(")")>0?l.methods.push(new Xe(o,"method")):o&&l.members.push(new Xe(o,"attribute"))}},Tt=function(e,i){Array.isArray(i)&&(i.reverse(),i.forEach(r=>Je(e,r)))},Ft=function(e,i){const r={id:`note${he.length}`,class:i,text:e};he.push(r)},yt=function(e){return e.startsWith(":")&&(e=e.substring(1)),V(e.trim())},Me=function(e,i){e.split(",").forEach(function(r){let l=r;r[0].match(/\d/)&&(l=pe+l),p[l]!==void 0&&p[l].cssClasses.push(i)})},Dt=function(e,i){e.split(",").forEach(function(r){i!==void 0&&(p[r].tooltip=V(i))})},Bt=function(e,i){return i?O[i].classes[e].tooltip:p[e].tooltip},_t=function(e,i,r){const l=F();e.split(",").forEach(function(o){let A=o;o[0].match(/\d/)&&(A=pe+A),p[A]!==void 0&&(p[A].link=We.formatUrl(i,l),l.securityLevel==="sandbox"?p[A].linkTarget="_top":typeof r=="string"?p[A].linkTarget=V(r):p[A].linkTarget="_blank")}),Me(e,"clickable")},St=function(e,i,r){e.split(",").forEach(function(l){Nt(l,i,r),p[l].haveCallback=!0}),Me(e,"clickable")},Nt=function(e,i,r){const l=v.sanitizeText(e,F());if(F().securityLevel!=="loose"||i===void 0)return;const A=l;if(p[A]!==void 0){const g=qe(A);let D=[];if(typeof r=="string"){D=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let B=0;B<D.length;B++){let _=D[B].trim();_.charAt(0)==='"'&&_.charAt(_.length-1)==='"'&&(_=_.substr(1,_.length-2)),D[B]=_}}D.length===0&&D.push(g),K.push(function(){const B=document.querySelector(`[id="${g}"]`);B!==null&&B.addEventListener("click",function(){We.runFunc(i,...D)},!1)})}},Lt=function(e){K.forEach(function(i){i(e)})},vt={LINE:0,DOTTED_LINE:1},xt={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3,LOLLIPOP:4},Ze=function(e){let i=z(".mermaidTooltip");(i._groups||i)[0][0]===null&&(i=z("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),z(e).select("svg").selectAll("g.node").on("mouseover",function(){const o=z(this);if(o.attr("title")===null)return;const g=this.getBoundingClientRect();i.transition().duration(200).style("opacity",".9"),i.text(o.attr("title")).style("left",window.scrollX+g.left+(g.right-g.left)/2+"px").style("top",window.scrollY+g.top-14+document.body.scrollTop+"px"),i.html(i.html().replace(/<br\/>/g,"<br/>")),o.classed("hover",!0)}).on("mouseout",function(){i.transition().duration(500).style("opacity",0),z(this).classed("hover",!1)})};K.push(Ze);let $e="TB";const Ot=()=>$e,It=e=>{$e=e},Rt=function(e){O[e]===void 0&&(O[e]={id:e,classes:{},children:{},domId:pe+e+"-"+we},we++)},Vt=function(e){return O[e]},wt=function(){return O},Pt=function(e,i){if(O[e]!==void 0)for(const r of i){const{className:l}=w(r);p[l].parent=e,O[e].classes[l]=p[l]}},Mt=function(e,i){const r=p[e];if(!(!i||!r))for(const l of i)l.includes(",")?r.styles.push(...l.split(",")):r.styles.push(l)},Kt={setAccTitle:ut,getAccTitle:rt,getAccDescription:at,setAccDescription:lt,getConfig:()=>F().class,addClass:Ae,bindFunctions:Lt,clear:dt,getClass:Et,getClasses:Ct,getNotes:bt,addAnnotation:kt,addNote:Ft,getRelations:mt,addRelation:gt,getDirection:Ot,setDirection:It,addMember:Je,addMembers:Tt,cleanupLabel:yt,lineType:vt,relationType:xt,setClickEvent:St,setCssClass:Me,setLink:_t,getTooltip:Bt,setTooltip:Dt,lookUpDomId:qe,setDiagramTitle:ct,getDiagramTitle:ot,setClassLabel:ft,addNamespace:Rt,addClassesToNamespace:Pt,getNamespace:Vt,getNamespaces:wt,setCssStyle:Mt},Gt=e=>`g.classGroup text {
fill: ${e.nodeBorder||e.classText};
stroke: none;
font-family: ${e.fontFamily};
font-size: 10px;
.title {
font-weight: bolder;
}
}
.nodeLabel, .edgeLabel {
color: ${e.classText};
}
.edgeLabel .label rect {
fill: ${e.mainBkg};
}
.label text {
fill: ${e.classText};
}
.edgeLabel .label span {
background: ${e.mainBkg};
}
.classTitle {
font-weight: bolder;
}
.node rect,
.node circle,
.node ellipse,
.node polygon,
.node path {
fill: ${e.mainBkg};
stroke: ${e.nodeBorder};
stroke-width: 1px;
}
.divider {
stroke: ${e.nodeBorder};
stroke-width: 1;
}
g.clickable {
cursor: pointer;
}
g.classGroup rect {
fill: ${e.mainBkg};
stroke: ${e.nodeBorder};
}
g.classGroup line {
stroke: ${e.nodeBorder};
stroke-width: 1;
}
.classLabel .box {
stroke: none;
stroke-width: 0;
fill: ${e.mainBkg};
opacity: 0.5;
}
.classLabel .label {
fill: ${e.nodeBorder};
font-size: 10px;
}
.relation {
stroke: ${e.lineColor};
stroke-width: 1;
fill: none;
}
.dashed-line{
stroke-dasharray: 3;
}
.dotted-line{
stroke-dasharray: 1 2;
}
#compositionStart, .composition {
fill: ${e.lineColor} !important;
stroke: ${e.lineColor} !important;
stroke-width: 1;
}
#compositionEnd, .composition {
fill: ${e.lineColor} !important;
stroke: ${e.lineColor} !important;
stroke-width: 1;
}
#dependencyStart, .dependency {
fill: ${e.lineColor} !important;
stroke: ${e.lineColor} !important;
stroke-width: 1;
}
#dependencyStart, .dependency {
fill: ${e.lineColor} !important;
stroke: ${e.lineColor} !important;
stroke-width: 1;
}
#extensionStart, .extension {
fill: transparent !important;
stroke: ${e.lineColor} !important;
stroke-width: 1;
}
#extensionEnd, .extension {
fill: transparent !important;
stroke: ${e.lineColor} !important;
stroke-width: 1;
}
#aggregationStart, .aggregation {
fill: transparent !important;
stroke: ${e.lineColor} !important;
stroke-width: 1;
}
#aggregationEnd, .aggregation {
fill: transparent !important;
stroke: ${e.lineColor} !important;
stroke-width: 1;
}
#lollipopStart, .lollipop {
fill: ${e.mainBkg} !important;
stroke: ${e.lineColor} !important;
stroke-width: 1;
}
#lollipopEnd, .lollipop {
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: ${e.textColor};
}
`,Yt=Gt;export{Kt as d,zt as p,Yt as s};
import{G as R}from"./graph-af3d5df6-DtpoS02a.js";import{n as N,l as g,o as F,c as S,j as G,r as q,p as E,q as L,h as $,v as j,t as U,S as z,x as H,y as K,z as W,A as X,B as J}from"./slidev/5-BKiUV7YW.js";import{r as Q}from"./index-c8395ba2-BQkSvmSq.js";import{c as Y}from"./channel-d3ac35ac-BPxKiy7g.js";function Z(e){return typeof e=="string"?new z([document.querySelectorAll(e)],[document.documentElement]):new z([K(e)],H)}function pe(e,l){return!!e.children(l).length}function be(e){return A(e.v)+":"+A(e.w)+":"+A(e.name)}var O=/:/g;function A(e){return e?String(e).replace(O,"\\:"):""}function ee(e,l){l&&e.attr("style",l)}function fe(e,l,c){l&&e.attr("class",l).attr("class",c+" "+e.attr("class"))}function ue(e,l){var c=l.graph();if(X(c)){var a=c.transition;if(J(a))return a(e)}return e}function te(e,l){var c=e.append("foreignObject").attr("width","100000"),a=c.append("xhtml:div");a.attr("xmlns","http://www.w3.org/1999/xhtml");var i=l.label;switch(typeof i){case"function":a.insert(i);break;case"object":a.insert(function(){return i});break;default:a.html(i)}ee(a,l.labelStyle),a.style("display","inline-block"),a.style("white-space","nowrap");var d=a.node().getBoundingClientRect();return c.attr("width",d.width).attr("height",d.height),c}const P={},re=function(e){const l=Object.keys(e);for(const c of l)P[c]=e[c]},V=async function(e,l,c,a,i,d){const u=a.select(`[id="${c}"]`),n=Object.keys(e);for(const p of n){const r=e[p];let y="default";r.classes.length>0&&(y=r.classes.join(" ")),y=y+" flowchart-label";const w=N(r.styles);let t=r.text!==void 0?r.text:r.id,s;if(g.info("vertex",r,r.labelType),r.labelType==="markdown")g.info("vertex",r,r.labelType);else if(F(S().flowchart.htmlLabels))s=te(u,{label:t}).node(),s.parentNode.removeChild(s);else{const k=i.createElementNS("http://www.w3.org/2000/svg","text");k.setAttribute("style",w.labelStyle.replace("color:","fill:"));const _=t.split(G.lineBreakRegex);for(const C of _){const v=i.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","1"),v.textContent=C,k.appendChild(v)}s=k}let b=0,o="";switch(r.type){case"round":b=5,o="rect";break;case"square":o="rect";break;case"diamond":o="question";break;case"hexagon":o="hexagon";break;case"odd":o="rect_left_inv_arrow";break;case"lean_right":o="lean_right";break;case"lean_left":o="lean_left";break;case"trapezoid":o="trapezoid";break;case"inv_trapezoid":o="inv_trapezoid";break;case"odd_right":o="rect_left_inv_arrow";break;case"circle":o="circle";break;case"ellipse":o="ellipse";break;case"stadium":o="stadium";break;case"subroutine":o="subroutine";break;case"cylinder":o="cylinder";break;case"group":o="rect";break;case"doublecircle":o="doublecircle";break;default:o="rect"}const T=await q(t,S());l.setNode(r.id,{labelStyle:w.labelStyle,shape:o,labelText:T,labelType:r.labelType,rx:b,ry:b,class:y,style:w.style,id:r.id,link:r.link,linkTarget:r.linkTarget,tooltip:d.db.getTooltip(r.id)||"",domId:d.db.lookUpDomId(r.id),haveCallback:r.haveCallback,width:r.type==="group"?500:void 0,dir:r.dir,type:r.type,props:r.props,padding:S().flowchart.padding}),g.info("setNode",{labelStyle:w.labelStyle,labelType:r.labelType,shape:o,labelText:T,rx:b,ry:b,class:y,style:w.style,id:r.id,domId:d.db.lookUpDomId(r.id),width:r.type==="group"?500:void 0,type:r.type,dir:r.dir,props:r.props,padding:S().flowchart.padding})}},M=async function(e,l,c){g.info("abc78 edges = ",e);let a=0,i={},d,u;if(e.defaultStyle!==void 0){const n=N(e.defaultStyle);d=n.style,u=n.labelStyle}for(const n of e){a++;const p="L-"+n.start+"-"+n.end;i[p]===void 0?(i[p]=0,g.info("abc78 new entry",p,i[p])):(i[p]++,g.info("abc78 new entry",p,i[p]));let r=p+"-"+i[p];g.info("abc78 new link id to be used is",p,r,i[p]);const y="LS-"+n.start,w="LE-"+n.end,t={style:"",labelStyle:""};switch(t.minlen=n.length||1,n.type==="arrow_open"?t.arrowhead="none":t.arrowhead="normal",t.arrowTypeStart="arrow_open",t.arrowTypeEnd="arrow_open",n.type){case"double_arrow_cross":t.arrowTypeStart="arrow_cross";case"arrow_cross":t.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":t.arrowTypeStart="arrow_point";case"arrow_point":t.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":t.arrowTypeStart="arrow_circle";case"arrow_circle":t.arrowTypeEnd="arrow_circle";break}let s="",b="";switch(n.stroke){case"normal":s="fill:none;",d!==void 0&&(s=d),u!==void 0&&(b=u),t.thickness="normal",t.pattern="solid";break;case"dotted":t.thickness="normal",t.pattern="dotted",t.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":t.thickness="thick",t.pattern="solid",t.style="stroke-width: 3.5px;fill:none;";break;case"invisible":t.thickness="invisible",t.pattern="solid",t.style="stroke-width: 0;fill:none;";break}if(n.style!==void 0){const o=N(n.style);s=o.style,b=o.labelStyle}t.style=t.style+=s,t.labelStyle=t.labelStyle+=b,n.interpolate!==void 0?t.curve=E(n.interpolate,L):e.defaultInterpolate!==void 0?t.curve=E(e.defaultInterpolate,L):t.curve=E(P.curve,L),n.text===void 0?n.style!==void 0&&(t.arrowheadStyle="fill: #333"):(t.arrowheadStyle="fill: #333",t.labelpos="c"),t.labelType=n.labelType,t.label=await q(n.text.replace(G.lineBreakRegex,`
`),S()),n.style===void 0&&(t.style=t.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),t.labelStyle=t.labelStyle.replace("color:","fill:"),t.id=r,t.classes="flowchart-link "+y+" "+w,l.setEdge(n.start,n.end,t,a)}},le=function(e,l){return l.db.getClasses()},ae=async function(e,l,c,a){g.info("Drawing flowchart");let i=a.db.getDirection();i===void 0&&(i="TD");const{securityLevel:d,flowchart:u}=S(),n=u.nodeSpacing||50,p=u.rankSpacing||50;let r;d==="sandbox"&&(r=$("#i"+l));const y=d==="sandbox"?$(r.nodes()[0].contentDocument.body):$("body"),w=d==="sandbox"?r.nodes()[0].contentDocument:document,t=new R({multigraph:!0,compound:!0}).setGraph({rankdir:i,nodesep:n,ranksep:p,marginx:0,marginy:0}).setDefaultEdgeLabel(function(){return{}});let s;const b=a.db.getSubGraphs();g.info("Subgraphs - ",b);for(let f=b.length-1;f>=0;f--)s=b[f],g.info("Subgraph - ",s),a.db.addVertex(s.id,{text:s.title,type:s.labelType},"group",void 0,s.classes,s.dir);const o=a.db.getVertices(),T=a.db.getEdges();g.info("Edges",T);let k=0;for(k=b.length-1;k>=0;k--){s=b[k],Z("cluster").append("text");for(let f=0;f<s.nodes.length;f++)g.info("Setting up subgraphs",s.nodes[f],s.id),t.setParent(s.nodes[f],s.id)}await V(o,t,l,y,w,a),await M(T,t);const _=y.select(`[id="${l}"]`),C=y.select("#"+l+" g");if(await Q(C,t,["point","circle","cross"],"flowchart",l),j.insertTitle(_,"flowchartTitleText",u.titleTopMargin,a.db.getDiagramTitle()),U(t,_,u.diagramPadding,u.useMaxWidth),a.db.indexNodes("subGraph"+k),!u.htmlLabels){const f=w.querySelectorAll('[id="'+l+'"] .edgeLabel .label');for(const x of f){const m=x.getBBox(),h=w.createElementNS("http://www.w3.org/2000/svg","rect");h.setAttribute("rx",0),h.setAttribute("ry",0),h.setAttribute("width",m.width),h.setAttribute("height",m.height),x.insertBefore(h,x.firstChild)}}Object.keys(o).forEach(function(f){const x=o[f];if(x.link){const m=$("#"+l+' [id="'+f+'"]');if(m){const h=w.createElementNS("http://www.w3.org/2000/svg","a");h.setAttributeNS("http://www.w3.org/2000/svg","class",x.classes.join(" ")),h.setAttributeNS("http://www.w3.org/2000/svg","href",x.link),h.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),d==="sandbox"?h.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):x.linkTarget&&h.setAttributeNS("http://www.w3.org/2000/svg","target",x.linkTarget);const B=m.insert(function(){return h},":first-child"),I=m.select(".label-container");I&&B.append(function(){return I.node()});const D=m.select(".label");D&&B.append(function(){return D.node()})}}})},we={setConf:re,addVertices:V,addEdges:M,getClasses:le,draw:ae},oe=(e,l)=>{const c=Y,a=c(e,"r"),i=c(e,"g"),d=c(e,"b");return W(a,i,d,l)},ne=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 .katex path {
fill: #000;
stroke: #000;
stroke-width: 1px;
}
.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: ${oe(e.edgeLabelBackground,.5)};
// background-color:
}
.cluster rect {
fill: ${e.clusterBkg};
stroke: ${e.clusterBorder};
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};
}
`,he=ne;export{he as a,te as b,ee as c,ue as d,be as e,we as f,fe as g,pe as i,Z as s};
import{c as Y,g as Ut,s as zt,a as Mt,b as Ht,C as Xt,D as Kt,l as D,j as ot,E as Wt,b4 as Jt}from"./slidev/5-BKiUV7YW.js";var gt=function(){var t=function(C,r,n,i){for(n=n||{},i=C.length;i--;n[C[i]]=r);return n},s=[1,2],a=[1,3],h=[1,4],f=[2,4],d=[1,9],y=[1,11],k=[1,15],u=[1,16],E=[1,17],T=[1,18],R=[1,30],G=[1,19],j=[1,20],U=[1,21],z=[1,22],M=[1,23],H=[1,25],X=[1,26],K=[1,27],W=[1,28],J=[1,29],q=[1,32],Q=[1,33],Z=[1,34],tt=[1,35],w=[1,31],c=[1,4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],et=[1,4,5,13,14,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],Dt=[4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],ht={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,cssClassStatement:11,idStatement:12,DESCR:13,"-->":14,HIDE_EMPTY:15,scale:16,WIDTH:17,COMPOSIT_STATE:18,STRUCT_START:19,STRUCT_STOP:20,STATE_DESCR:21,AS:22,ID:23,FORK:24,JOIN:25,CHOICE:26,CONCURRENT:27,note:28,notePosition:29,NOTE_TEXT:30,direction:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,classDef:37,CLASSDEF_ID:38,CLASSDEF_STYLEOPTS:39,DEFAULT:40,class:41,CLASSENTITY_IDS:42,STYLECLASS:43,direction_tb:44,direction_bt:45,direction_rl:46,direction_lr:47,eol:48,";":49,EDGE_STATE:50,STYLE_SEPARATOR:51,left_of:52,right_of:53,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",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",30:"NOTE_TEXT",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:"direction_tb",45:"direction_bt",46:"direction_rl",47:"direction_lr",49:";",50:"EDGE_STATE",51:"STYLE_SEPARATOR",52:"left_of",53:"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,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],[31,1],[31,1],[31,1],[31,1],[48,1],[48,1],[12,1],[12,1],[12,3],[12,3],[29,1],[29,1]],performAction:function(r,n,i,o,p,e,$){var l=e.length-1;switch(p){case 3:return o.setRootDoc(e[l]),e[l];case 4:this.$=[];break;case 5:e[l]!="nl"&&(e[l-1].push(e[l]),this.$=e[l-1]);break;case 6:case 7:this.$=e[l];break;case 8:this.$="nl";break;case 11:this.$=e[l];break;case 12:const B=e[l-1];B.description=o.trimColon(e[l]),this.$=B;break;case 13:this.$={stmt:"relation",state1:e[l-2],state2:e[l]};break;case 14:const ft=o.trimColon(e[l]);this.$={stmt:"relation",state1:e[l-3],state2:e[l-1],description:ft};break;case 18:this.$={stmt:"state",id:e[l-3],type:"default",description:"",doc:e[l-1]};break;case 19:var v=e[l],O=e[l-2].trim();if(e[l].match(":")){var st=e[l].split(":");v=st[0],O=[O,st[1]]}this.$={stmt:"state",id:v,type:"default",description:O};break;case 20:this.$={stmt:"state",id:e[l-3],type:"default",description:e[l-5],doc:e[l-1]};break;case 21:this.$={stmt:"state",id:e[l],type:"fork"};break;case 22:this.$={stmt:"state",id:e[l],type:"join"};break;case 23:this.$={stmt:"state",id:e[l],type:"choice"};break;case 24:this.$={stmt:"state",id:o.getDividerId(),type:"divider"};break;case 25:this.$={stmt:"state",id:e[l-1].trim(),note:{position:e[l-2].trim(),text:e[l].trim()}};break;case 28:this.$=e[l].trim(),o.setAccTitle(this.$);break;case 29:case 30:this.$=e[l].trim(),o.setAccDescription(this.$);break;case 31:case 32:this.$={stmt:"classDef",id:e[l-1].trim(),classes:e[l].trim()};break;case 33:this.$={stmt:"applyClass",id:e[l-1].trim(),styleClass:e[l].trim()};break;case 34:o.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 35:o.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 36:o.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 37:o.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 40:case 41:this.$={stmt:"state",id:e[l].trim(),type:"default",description:""};break;case 42:this.$={stmt:"state",id:e[l-2].trim(),classes:[e[l].trim()],type:"default",description:""};break;case 43:this.$={stmt:"state",id:e[l-2].trim(),classes:[e[l].trim()],type:"default",description:""};break}},table:[{3:1,4:s,5:a,6:h},{1:[3]},{3:5,4:s,5:a,6:h},{3:6,4:s,5:a,6:h},t([1,4,5,15,16,18,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],f,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:d,5:y,8:8,9:10,10:12,11:13,12:14,15:k,16:u,18:E,21:T,23:R,24:G,25:j,26:U,27:z,28:M,31:24,32:H,34:X,36:K,37:W,41:J,44:q,45:Q,46:Z,47:tt,50:w},t(c,[2,5]),{9:36,10:12,11:13,12:14,15:k,16:u,18:E,21:T,23:R,24:G,25:j,26:U,27:z,28:M,31:24,32:H,34:X,36:K,37:W,41:J,44:q,45:Q,46:Z,47:tt,50:w},t(c,[2,7]),t(c,[2,8]),t(c,[2,9]),t(c,[2,10]),t(c,[2,11],{13:[1,37],14:[1,38]}),t(c,[2,15]),{17:[1,39]},t(c,[2,17],{19:[1,40]}),{22:[1,41]},t(c,[2,21]),t(c,[2,22]),t(c,[2,23]),t(c,[2,24]),{29:42,30:[1,43],52:[1,44],53:[1,45]},t(c,[2,27]),{33:[1,46]},{35:[1,47]},t(c,[2,30]),{38:[1,48],40:[1,49]},{42:[1,50]},t(et,[2,40],{51:[1,51]}),t(et,[2,41],{51:[1,52]}),t(c,[2,34]),t(c,[2,35]),t(c,[2,36]),t(c,[2,37]),t(c,[2,6]),t(c,[2,12]),{12:53,23:R,50:w},t(c,[2,16]),t(Dt,f,{7:54}),{23:[1,55]},{23:[1,56]},{22:[1,57]},{23:[2,44]},{23:[2,45]},t(c,[2,28]),t(c,[2,29]),{39:[1,58]},{39:[1,59]},{43:[1,60]},{23:[1,61]},{23:[1,62]},t(c,[2,13],{13:[1,63]}),{4:d,5:y,8:8,9:10,10:12,11:13,12:14,15:k,16:u,18:E,20:[1,64],21:T,23:R,24:G,25:j,26:U,27:z,28:M,31:24,32:H,34:X,36:K,37:W,41:J,44:q,45:Q,46:Z,47:tt,50:w},t(c,[2,19],{19:[1,65]}),{30:[1,66]},{23:[1,67]},t(c,[2,31]),t(c,[2,32]),t(c,[2,33]),t(et,[2,42]),t(et,[2,43]),t(c,[2,14]),t(c,[2,18]),t(Dt,f,{7:68}),t(c,[2,25]),t(c,[2,26]),{4:d,5:y,8:8,9:10,10:12,11:13,12:14,15:k,16:u,18:E,20:[1,69],21:T,23:R,24:G,25:j,26:U,27:z,28:M,31:24,32:H,34:X,36:K,37:W,41:J,44:q,45:Q,46:Z,47:tt,50:w},t(c,[2,20])],defaultActions:{5:[2,1],6:[2,2],44:[2,44],45:[2,45]},parseError:function(r,n){if(n.recoverable)this.trace(r);else{var i=new Error(r);throw i.hash=n,i}},parse:function(r){var n=this,i=[0],o=[],p=[null],e=[],$=this.table,l="",v=0,O=0,st=2,B=1,ft=e.slice.call(arguments,1),S=Object.create(this.lexer),A={yy:{}};for(var dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,dt)&&(A.yy[dt]=this.yy[dt]);S.setInput(r,A.yy),A.yy.lexer=S,A.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var yt=S.yylloc;e.push(yt);var Gt=S.options&&S.options.ranges;typeof A.yy.parseError=="function"?this.parseError=A.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function jt(){var x;return x=o.pop()||S.lex()||B,typeof x!="number"&&(x instanceof Array&&(o=x,x=o.pop()),x=n.symbols_[x]||x),x}for(var _,L,m,pt,N={},it,b,Ct,rt;;){if(L=i[i.length-1],this.defaultActions[L]?m=this.defaultActions[L]:((_===null||typeof _>"u")&&(_=jt()),m=$[L]&&$[L][_]),typeof m>"u"||!m.length||!m[0]){var St="";rt=[];for(it in $[L])this.terminals_[it]&&it>st&&rt.push("'"+this.terminals_[it]+"'");S.showPosition?St="Parse error on line "+(v+1)+`:
`+S.showPosition()+`
Expecting `+rt.join(", ")+", got '"+(this.terminals_[_]||_)+"'":St="Parse error on line "+(v+1)+": Unexpected "+(_==B?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(St,{text:S.match,token:this.terminals_[_]||_,line:S.yylineno,loc:yt,expected:rt})}if(m[0]instanceof Array&&m.length>1)throw new Error("Parse Error: multiple actions possible at state: "+L+", token: "+_);switch(m[0]){case 1:i.push(_),p.push(S.yytext),e.push(S.yylloc),i.push(m[1]),_=null,O=S.yyleng,l=S.yytext,v=S.yylineno,yt=S.yylloc;break;case 2:if(b=this.productions_[m[1]][1],N.$=p[p.length-b],N._$={first_line:e[e.length-(b||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(b||1)].first_column,last_column:e[e.length-1].last_column},Gt&&(N._$.range=[e[e.length-(b||1)].range[0],e[e.length-1].range[1]]),pt=this.performAction.apply(N,[l,O,v,A.yy,m[1],p,e].concat(ft)),typeof pt<"u")return pt;b&&(i=i.slice(0,-1*b*2),p=p.slice(0,-1*b),e=e.slice(0,-1*b)),i.push(this.productions_[m[1]][0]),p.push(N.$),e.push(N._$),Ct=$[i[i.length-2]][i[i.length-1]],i.push(Ct);break;case 3:return!0}}return!0}},Yt=function(){var C={EOF:1,parseError:function(n,i){if(this.yy.parser)this.yy.parser.parseError(n,i);else throw new Error(n)},setInput:function(r,n){return this.yy=n||this.yy||{},this._input=r,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 r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var n=r.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},unput:function(r){var n=r.length,i=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var o=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),i.length-1&&(this.yylineno-=i.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:i?(i.length===o.length?this.yylloc.first_column:0)+o[o.length-i.length].length-i[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-n]),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(r){this.unput(this.match.slice(r))},pastInput:function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var r=this.pastInput(),n=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
`+n+"^"},test_match:function(r,n){var i,o,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))),o=r[0].match(/(?:\r\n?|\n).*/g),o&&(this.yylineno+=o.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:o?o[o.length-1].length-o[o.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+r[0].length},this.yytext+=r[0],this.match+=r[0],this.matches=r,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(r[0].length),this.matched+=r[0],i=this.performAction.call(this,this.yy,this,n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack){for(var e in p)this[e]=p[e];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var r,n,i,o;this._more||(this.yytext="",this.match="");for(var p=this._currentRules(),e=0;e<p.length;e++)if(i=this._input.match(this.rules[p[e]]),i&&(!n||i[0].length>n[0].length)){if(n=i,o=e,this.options.backtrack_lexer){if(r=this.test_match(i,p[e]),r!==!1)return r;if(this._backtrack){n=!1;continue}else return!1}else if(!this.options.flex)break}return n?(r=this.test_match(n,p[o]),r!==!1?r:!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 n=this.next();return n||this.lex()},begin:function(n){this.conditionStack.push(n)},popState:function(){var n=this.conditionStack.length-1;return n>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(n){return n=this.conditionStack.length-1-Math.abs(n||0),n>=0?this.conditionStack[n]:"INITIAL"},pushState:function(n){this.begin(n)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(n,i,o,p){switch(o){case 0:return 40;case 1:return 44;case 2:return 45;case 3:return 46;case 4:return 47;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"),16;case 13:return 17;case 14:this.popState();break;case 15:return this.begin("acc_title"),32;case 16:return this.popState(),"acc_title_value";case 17:return this.begin("acc_descr"),34;case 18:return this.popState(),"acc_descr_value";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"),37;case 23:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 24:return this.popState(),this.pushState("CLASSDEFID"),38;case 25:return this.popState(),39;case 26:return this.pushState("CLASS"),41;case 27:return this.popState(),this.pushState("CLASS_STYLE"),42;case 28:return this.popState(),43;case 29:return this.pushState("SCALE"),16;case 30:return 17;case 31:this.popState();break;case 32:this.pushState("STATE");break;case 33:return this.popState(),i.yytext=i.yytext.slice(0,-8).trim(),24;case 34:return this.popState(),i.yytext=i.yytext.slice(0,-8).trim(),25;case 35:return this.popState(),i.yytext=i.yytext.slice(0,-10).trim(),26;case 36:return this.popState(),i.yytext=i.yytext.slice(0,-8).trim(),24;case 37:return this.popState(),i.yytext=i.yytext.slice(0,-8).trim(),25;case 38:return this.popState(),i.yytext=i.yytext.slice(0,-10).trim(),26;case 39:return 44;case 40:return 45;case 41:return 46;case 42:return 47;case 43:this.pushState("STATE_STRING");break;case 44:return this.pushState("STATE_ID"),"AS";case 45:return this.popState(),"ID";case 46:this.popState();break;case 47:return"STATE_DESCR";case 48:return 18;case 49:this.popState();break;case 50:return this.popState(),this.pushState("struct"),19;case 51:break;case 52:return this.popState(),20;case 53:break;case 54:return this.begin("NOTE"),28;case 55:return this.popState(),this.pushState("NOTE_ID"),52;case 56:return this.popState(),this.pushState("NOTE_ID"),53;case 57:this.popState(),this.pushState("FLOATING_NOTE");break;case 58:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 59:break;case 60:return"NOTE_TEXT";case 61:return this.popState(),"ID";case 62:return this.popState(),this.pushState("NOTE_TEXT"),23;case 63:return this.popState(),i.yytext=i.yytext.substr(2).trim(),30;case 64:return this.popState(),i.yytext=i.yytext.slice(0,-8).trim(),30;case 65:return 6;case 66:return 6;case 67:return 15;case 68:return 50;case 69:return 23;case 70:return i.yytext=i.yytext.trim(),13;case 71:return 14;case 72:return 27;case 73:return 51;case 74:return 5;case 75: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,/^(?:%%(?!\{)[^\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,/^(?:.*<<fork>>)/i,/^(?:.*<<join>>)/i,/^(?:.*<<choice>>)/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,32,39,40,41,42,51,52,53,54,68,69,70,71,72],inclusive:!1},FLOATING_NOTE_ID:{rules:[61],inclusive:!1},FLOATING_NOTE:{rules:[58,59,60],inclusive:!1},NOTE_TEXT:{rules:[63,64],inclusive:!1},NOTE_ID:{rules:[62],inclusive:!1},NOTE:{rules:[55,56,57],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,30,31],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[45],inclusive:!1},STATE_STRING:{rules:[46,47],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[9,10,33,34,35,36,37,38,43,44,48,49,50],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,50,54,65,66,67,68,69,70,71,73,74,75],inclusive:!0}}};return C}();ht.lexer=Yt;function ut(){this.yy={}}return ut.prototype=ht,ht.Parser=ut,new ut}();gt.parser=gt;const De=gt,qt="LR",Ce="TB",_t="state",It="relation",Qt="classDef",Zt="applyClass",Et="default",te="divider",bt="[*]",Ot="start",Nt=bt,Rt="end",vt="color",At="fill",ee="bgFill",se=",";function wt(){return{}}let $t=qt,lt=[],P=wt();const Bt=()=>({relations:[],states:{},documents:{}});let ct={root:Bt()},g=ct.root,F=0,Lt=0;const ie={LINE:0,DOTTED_LINE:1},re={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},nt=t=>JSON.parse(JSON.stringify(t)),ne=t=>{D.info("Setting root doc",t),lt=t},ae=()=>lt,at=(t,s,a)=>{if(s.stmt===It)at(t,s.state1,!0),at(t,s.state2,!1);else if(s.stmt===_t&&(s.id==="[*]"?(s.id=a?t.id+"_start":t.id+"_end",s.start=a):s.id=s.id.trim()),s.doc){const h=[];let f=[],d;for(d=0;d<s.doc.length;d++)if(s.doc[d].type===te){const y=nt(s.doc[d]);y.doc=nt(f),h.push(y),f=[]}else f.push(s.doc[d]);if(h.length>0&&f.length>0){const y={stmt:_t,id:Jt(),type:"divider",doc:nt(f)};h.push(nt(y)),s.doc=h}s.doc.forEach(y=>at(s,y,!0))}},le=()=>(at({id:"root"},{id:"root",doc:lt},!0),{id:"root",doc:lt}),ce=t=>{let s;t.doc?s=t.doc:s=t,D.info(s),Pt(!0),D.info("Extract",s),s.forEach(a=>{switch(a.stmt){case _t:I(a.id.trim(),a.type,a.doc,a.description,a.note,a.classes,a.styles,a.textStyles);break;case It:Ft(a.state1,a.state2,a.description);break;case Qt:Vt(a.id.trim(),a.classes);break;case Zt:xt(a.id.trim(),a.styleClass);break}})},I=function(t,s=Et,a=null,h=null,f=null,d=null,y=null,k=null){const u=t==null?void 0:t.trim();g.states[u]===void 0?(D.info("Adding state ",u,h),g.states[u]={id:u,descriptions:[],type:s,doc:a,note:f,classes:[],styles:[],textStyles:[]}):(g.states[u].doc||(g.states[u].doc=a),g.states[u].type||(g.states[u].type=s)),h&&(D.info("Setting state description",u,h),typeof h=="string"&&kt(u,h.trim()),typeof h=="object"&&h.forEach(E=>kt(u,E.trim()))),f&&(g.states[u].note=f,g.states[u].note.text=ot.sanitizeText(g.states[u].note.text,Y())),d&&(D.info("Setting state classes",u,d),(typeof d=="string"?[d]:d).forEach(T=>xt(u,T.trim()))),y&&(D.info("Setting state styles",u,y),(typeof y=="string"?[y]:y).forEach(T=>_e(u,T.trim()))),k&&(D.info("Setting state styles",u,y),(typeof k=="string"?[k]:k).forEach(T=>me(u,T.trim())))},Pt=function(t){ct={root:Bt()},g=ct.root,F=0,P=wt(),t||Wt()},V=function(t){return g.states[t]},oe=function(){return g.states},he=function(){D.info("Documents = ",ct)},ue=function(){return g.relations};function mt(t=""){let s=t;return t===bt&&(F++,s=`${Ot}${F}`),s}function Tt(t="",s=Et){return t===bt?Ot:s}function fe(t=""){let s=t;return t===Nt&&(F++,s=`${Rt}${F}`),s}function de(t="",s=Et){return t===Nt?Rt:s}function ye(t,s,a){let h=mt(t.id.trim()),f=Tt(t.id.trim(),t.type),d=mt(s.id.trim()),y=Tt(s.id.trim(),s.type);I(h,f,t.doc,t.description,t.note,t.classes,t.styles,t.textStyles),I(d,y,s.doc,s.description,s.note,s.classes,s.styles,s.textStyles),g.relations.push({id1:h,id2:d,relationTitle:ot.sanitizeText(a,Y())})}const Ft=function(t,s,a){if(typeof t=="object")ye(t,s,a);else{const h=mt(t.trim()),f=Tt(t),d=fe(s.trim()),y=de(s);I(h,f),I(d,y),g.relations.push({id1:h,id2:d,title:ot.sanitizeText(a,Y())})}},kt=function(t,s){const a=g.states[t],h=s.startsWith(":")?s.replace(":","").trim():s;a.descriptions.push(ot.sanitizeText(h,Y()))},pe=function(t){return t.substring(0,1)===":"?t.substr(2).trim():t.trim()},Se=()=>(Lt++,"divider-id-"+Lt),Vt=function(t,s=""){P[t]===void 0&&(P[t]={id:t,styles:[],textStyles:[]});const a=P[t];s!=null&&s.split(se).forEach(h=>{const f=h.replace(/([^;]*);/,"$1").trim();if(h.match(vt)){const y=f.replace(At,ee).replace(vt,At);a.textStyles.push(y)}a.styles.push(f)})},ge=function(){return P},xt=function(t,s){t.split(",").forEach(function(a){let h=V(a);if(h===void 0){const f=a.trim();I(f),h=V(f)}h.classes.push(s)})},_e=function(t,s){const a=V(t);a!==void 0&&a.textStyles.push(s)},me=function(t,s){const a=V(t);a!==void 0&&a.textStyles.push(s)},Te=()=>$t,ke=t=>{$t=t},Ee=t=>t&&t[0]===":"?t.substr(1).trim():t.trim(),ve={getConfig:()=>Y().state,addState:I,clear:Pt,getState:V,getStates:oe,getRelations:ue,getClasses:ge,getDirection:Te,addRelation:Ft,getDividerId:Se,setDirection:ke,cleanupLabel:pe,lineType:ie,relationType:re,logDocuments:he,getRootDoc:ae,setRootDoc:ne,getRootDocV2:le,extract:ce,trimColon:Ee,getAccTitle:Ut,setAccTitle:zt,getAccDescription:Mt,setAccDescription:Ht,addStyleClass:Vt,setCssClass:xt,addDescription:kt,setDiagramTitle:Xt,getDiagramTitle:Kt},be=t=>`
defs #statediagram-barbEnd {
fill: ${t.transitionColor};
stroke: ${t.transitionColor};
}
g.stateGroup text {
fill: ${t.nodeBorder};
stroke: none;
font-size: 10px;
}
g.stateGroup text {
fill: ${t.textColor};
stroke: none;
font-size: 10px;
}
g.stateGroup .state-title {
font-weight: bolder;
fill: ${t.stateLabelColor};
}
g.stateGroup rect {
fill: ${t.mainBkg};
stroke: ${t.nodeBorder};
}
g.stateGroup line {
stroke: ${t.lineColor};
stroke-width: 1;
}
.transition {
stroke: ${t.transitionColor};
stroke-width: 1;
fill: none;
}
.stateGroup .composit {
fill: ${t.background};
border-bottom: 1px
}
.stateGroup .alt-composit {
fill: #e0e0e0;
border-bottom: 1px
}
.state-note {
stroke: ${t.noteBorderColor};
fill: ${t.noteBkgColor};
text {
fill: ${t.noteTextColor};
stroke: none;
font-size: 10px;
}
}
.stateLabel .box {
stroke: none;
stroke-width: 0;
fill: ${t.mainBkg};
opacity: 0.5;
}
.edgeLabel .label rect {
fill: ${t.labelBackgroundColor};
opacity: 0.5;
}
.edgeLabel .label text {
fill: ${t.transitionLabelColor||t.tertiaryTextColor};
}
.label div .edgeLabel {
color: ${t.transitionLabelColor||t.tertiaryTextColor};
}
.stateLabel text {
fill: ${t.stateLabelColor};
font-size: 10px;
font-weight: bold;
}
.node circle.state-start {
fill: ${t.specialStateColor};
stroke: ${t.specialStateColor};
}
.node .fork-join {
fill: ${t.specialStateColor};
stroke: ${t.specialStateColor};
}
.node circle.state-end {
fill: ${t.innerEndBackground};
stroke: ${t.background};
stroke-width: 1.5
}
.end-state-inner {
fill: ${t.compositeBackground||t.background};
// stroke: ${t.background};
stroke-width: 1.5
}
.node rect {
fill: ${t.stateBkg||t.mainBkg};
stroke: ${t.stateBorder||t.nodeBorder};
stroke-width: 1px;
}
.node polygon {
fill: ${t.mainBkg};
stroke: ${t.stateBorder||t.nodeBorder};;
stroke-width: 1px;
}
#statediagram-barbEnd {
fill: ${t.lineColor};
}
.statediagram-cluster rect {
fill: ${t.compositeTitleBackground};
stroke: ${t.stateBorder||t.nodeBorder};
stroke-width: 1px;
}
.cluster-label, .nodeLabel {
color: ${t.stateLabelColor};
}
.statediagram-cluster rect.outer {
rx: 5px;
ry: 5px;
}
.statediagram-state .divider {
stroke: ${t.stateBorder||t.nodeBorder};
}
.statediagram-state .title-state {
rx: 5px;
ry: 5px;
}
.statediagram-cluster.statediagram-cluster .inner {
fill: ${t.compositeBackground||t.background};
}
.statediagram-cluster.statediagram-cluster-alt .inner {
fill: ${t.altBackground?t.altBackground:"#efefef"};
}
.statediagram-cluster .inner {
rx:0;
ry:0;
}
.statediagram-state rect.basic {
rx: 5px;
ry: 5px;
}
.statediagram-state rect.divider {
stroke-dasharray: 10,10;
fill: ${t.altBackground?t.altBackground:"#efefef"};
}
.note-edge {
stroke-dasharray: 5;
}
.statediagram-note rect {
fill: ${t.noteBkgColor};
stroke: ${t.noteBorderColor};
stroke-width: 1px;
rx: 0;
ry: 0;
}
.statediagram-note rect {
fill: ${t.noteBkgColor};
stroke: ${t.noteBorderColor};
stroke-width: 1px;
rx: 0;
ry: 0;
}
.statediagram-note text {
fill: ${t.noteTextColor};
}
.statediagram-note .nodeLabel {
color: ${t.noteTextColor};
}
.statediagram .edgeLabel {
color: red; // ${t.noteTextColor};
}
#dependencyStart, #dependencyEnd {
fill: ${t.lineColor};
stroke: ${t.lineColor};
stroke-width: 1;
}
.statediagramTitleText {
text-anchor: middle;
font-size: 18px;
fill: ${t.textColor};
}
`,Ae=be;export{Et as D,It as S,te as a,_t as b,Ce as c,ve as d,De as p,Ae as s};
import{p as J,d as B,s as Q,D as H,a as X,S as Z,b as F,c as I}from"./styles-15409a09-D93KKqtJ.js";import{G as tt}from"./graph-af3d5df6-DtpoS02a.js";import{l as E,c as g,h as x,v as et,i as ot,j as w}from"./slidev/5-BKiUV7YW.js";import{r as st}from"./index-c8395ba2-BQkSvmSq.js";import"./modules/vue-Dn3czbSS.js";import"./index-D2S1x1Oe.js";import"./modules/shiki-CuMFyo6Z.js";import"./modules/file-saver-EUMWMpoS.js";import"./slidev/default-CY-sqYNf.js";import"./slidev/context-CYh2-pv1.js";import"./layout-6685625a-CnDdhUY9.js";import"./clone-d2e37f8c-CN-809h5.js";import"./edges-1e1ebc73-5f7nvF86.js";import"./createText-f6615236-y76jB5p3.js";import"./line-65d70945-BvyDbe4_.js";import"./array-b7dcf730-BKyUJesY.js";import"./path-39bad7e2-CbwjOpE9.js";const h="rect",C="rectWithTitle",nt="start",it="end",ct="divider",rt="roundedWithTitle",lt="note",at="noteGroup",_="statediagram",dt="state",Et=`${_}-${dt}`,m="transition",St="note",pt="note-edge",Tt=`${m} ${pt}`,_t=`${_}-${St}`,ut="cluster",Dt=`${_}-${ut}`,bt="cluster-alt",ft=`${_}-${bt}`,U="parent",V="note",At="state",N="----",ht=`${N}${V}`,M=`${N}${U}`,Y="fill:none",W="fill: #333",z="c",j="text",q="normal";let y={},d=0;const yt=function(t){const n=Object.keys(t);for(const e of n)t[e]},gt=function(t,n){return n.db.extract(n.db.getRootDocV2()),n.db.getClasses()};function $t(t){return t==null?"":t.classes?t.classes.join(" "):""}function R(t="",n=0,e="",i=N){const c=e!==null&&e.length>0?`${i}${e}`:"";return`${At}-${t}${c}-${n}`}const A=(t,n,e,i,c,r)=>{const o=e.id,u=$t(i[o]);if(o!=="root"){let p=h;e.start===!0&&(p=nt),e.start===!1&&(p=it),e.type!==H&&(p=e.type),y[o]||(y[o]={id:o,shape:p,description:w.sanitizeText(o,g()),classes:`${u} ${Et}`});const s=y[o];e.description&&(Array.isArray(s.description)?(s.shape=C,s.description.push(e.description)):s.description.length>0?(s.shape=C,s.description===o?s.description=[e.description]:s.description=[s.description,e.description]):(s.shape=h,s.description=e.description),s.description=w.sanitizeTextOrArray(s.description,g())),s.description.length===1&&s.shape===C&&(s.shape=h),!s.type&&e.doc&&(E.info("Setting cluster for ",o,G(e)),s.type="group",s.dir=G(e),s.shape=e.type===X?ct:rt,s.classes=s.classes+" "+Dt+" "+(r?ft:""));const T={labelStyle:"",shape:s.shape,labelText:s.description,classes:s.classes,style:"",id:o,dir:s.dir,domId:R(o,d),type:s.type,padding:15};if(T.centerLabel=!0,e.note){const l={labelStyle:"",shape:lt,labelText:e.note.text,classes:_t,style:"",id:o+ht+"-"+d,domId:R(o,d,V),type:s.type,padding:15},a={labelStyle:"",shape:at,labelText:e.note.text,classes:s.classes,style:"",id:o+M,domId:R(o,d,U),type:"group",padding:0};d++;const D=o+M;t.setNode(D,a),t.setNode(l.id,l),t.setNode(o,T),t.setParent(o,D),t.setParent(l.id,D);let S=o,b=l.id;e.note.position==="left of"&&(S=l.id,b=o),t.setEdge(S,b,{arrowhead:"none",arrowType:"",style:Y,labelStyle:"",classes:Tt,arrowheadStyle:W,labelpos:z,labelType:j,thickness:q})}else t.setNode(o,T)}n&&n.id!=="root"&&(E.trace("Setting node ",o," to be child of its parent ",n.id),t.setParent(o,n.id)),e.doc&&(E.trace("Adding nodes children "),xt(t,e,e.doc,i,c,!r))},xt=(t,n,e,i,c,r)=>{E.trace("items",e),e.forEach(o=>{switch(o.stmt){case F:A(t,n,o,i,c,r);break;case H:A(t,n,o,i,c,r);break;case Z:{A(t,n,o.state1,i,c,r),A(t,n,o.state2,i,c,r);const u={id:"edge"+d,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:Y,labelStyle:"",label:w.sanitizeText(o.description,g()),arrowheadStyle:W,labelpos:z,labelType:j,thickness:q,classes:m};t.setEdge(o.state1.id,o.state2.id,u,d),d++}break}})},G=(t,n=I)=>{let e=n;if(t.doc)for(let i=0;i<t.doc.length;i++){const c=t.doc[i];c.stmt==="dir"&&(e=c.value)}return e},Ct=async function(t,n,e,i){E.info("Drawing state diagram (v2)",n),y={},i.db.getDirection();const{securityLevel:c,state:r}=g(),o=r.nodeSpacing||50,u=r.rankSpacing||50;E.info(i.db.getRootDocV2()),i.db.extract(i.db.getRootDocV2()),E.info(i.db.getRootDocV2());const p=i.db.getStates(),s=new tt({multigraph:!0,compound:!0}).setGraph({rankdir:G(i.db.getRootDocV2()),nodesep:o,ranksep:u,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});A(s,void 0,i.db.getRootDocV2(),p,i.db,!0);let T;c==="sandbox"&&(T=x("#i"+n));const l=c==="sandbox"?x(T.nodes()[0].contentDocument.body):x("body"),a=l.select(`[id="${n}"]`),D=l.select("#"+n+" g");await st(D,s,["barb"],_,n);const S=8;et.insertTitle(a,"statediagramTitleText",r.titleTopMargin,i.db.getDiagramTitle());const b=a.node().getBBox(),L=b.width+S*2,P=b.height+S*2;a.attr("class",_);const O=a.node().getBBox();ot(a,P,L,r.useMaxWidth);const v=`${O.x-S} ${O.y-S} ${L} ${P}`;E.debug(`viewBox ${v}`),a.attr("viewBox",v);const K=document.querySelectorAll('[id="'+n+'"] .edgeLabel .label');for(const $ of K){const k=$.getBBox(),f=document.createElementNS("http://www.w3.org/2000/svg",h);f.setAttribute("rx",0),f.setAttribute("ry",0),f.setAttribute("width",k.width),f.setAttribute("height",k.height),$.insertBefore(f,$.firstChild)}},Rt={setConf:yt,getClasses:gt,draw:Ct},jt={parser:J,db:B,renderer:Rt,styles:Q,init:t=>{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute,B.clear()}};export{jt as diagram};
import{p as P,d as N,s as W}from"./styles-15409a09-D93KKqtJ.js";import{c as t,h as H,l as b,i as v,j as T,F as R,v as U}from"./slidev/5-BKiUV7YW.js";import{G as C}from"./graph-af3d5df6-DtpoS02a.js";import{l as F}from"./layout-6685625a-CnDdhUY9.js";import{l as $}from"./line-65d70945-BvyDbe4_.js";import"./modules/vue-Dn3czbSS.js";import"./index-D2S1x1Oe.js";import"./modules/shiki-CuMFyo6Z.js";import"./modules/file-saver-EUMWMpoS.js";import"./slidev/default-CY-sqYNf.js";import"./slidev/context-CYh2-pv1.js";import"./array-b7dcf730-BKyUJesY.js";import"./path-39bad7e2-CbwjOpE9.js";const O=e=>e.append("circle").attr("class","start-state").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit).attr("cy",t().state.padding+t().state.sizeUnit),X=e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",t().state.textHeight).attr("class","divider").attr("x2",t().state.textHeight*2).attr("y1",0).attr("y2",0),J=(e,a)=>{const o=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+2*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(a.id),c=o.node().getBBox();return e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",c.width+2*t().state.padding).attr("height",c.height+2*t().state.padding).attr("rx",t().state.radius),o},Y=(e,a)=>{const o=function(l,m,w){const E=l.append("tspan").attr("x",2*t().state.padding).text(m);w||E.attr("dy",t().state.textHeight)},s=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+1.3*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(a.descriptions[0]).node().getBBox(),g=s.height,p=e.append("text").attr("x",t().state.padding).attr("y",g+t().state.padding*.4+t().state.dividerMargin+t().state.textHeight).attr("class","state-description");let i=!0,r=!0;a.descriptions.forEach(function(l){i||(o(p,l,r),r=!1),i=!1});const y=e.append("line").attr("x1",t().state.padding).attr("y1",t().state.padding+g+t().state.dividerMargin/2).attr("y2",t().state.padding+g+t().state.dividerMargin/2).attr("class","descr-divider"),x=p.node().getBBox(),d=Math.max(x.width,s.width);return y.attr("x2",d+3*t().state.padding),e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",d+2*t().state.padding).attr("height",x.height+g+2*t().state.padding).attr("rx",t().state.radius),e},I=(e,a,o)=>{const c=t().state.padding,s=2*t().state.padding,g=e.node().getBBox(),p=g.width,i=g.x,r=e.append("text").attr("x",0).attr("y",t().state.titleShift).attr("font-size",t().state.fontSize).attr("class","state-title").text(a.id),x=r.node().getBBox().width+s;let d=Math.max(x,p);d===p&&(d=d+s);let l;const m=e.node().getBBox();a.doc,l=i-c,x>p&&(l=(p-d)/2+c),Math.abs(i-m.x)<c&&x>p&&(l=i-(x-p)/2);const w=1-t().state.textHeight;return e.insert("rect",":first-child").attr("x",l).attr("y",w).attr("class",o?"alt-composit":"composit").attr("width",d).attr("height",m.height+t().state.textHeight+t().state.titleShift+1).attr("rx","0"),r.attr("x",l+c),x<=p&&r.attr("x",i+(d-s)/2-x/2+c),e.insert("rect",":first-child").attr("x",l).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",d).attr("height",t().state.textHeight*3).attr("rx",t().state.radius),e.insert("rect",":first-child").attr("x",l).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",d).attr("height",m.height+3+2*t().state.textHeight).attr("rx",t().state.radius),e},_=e=>(e.append("circle").attr("class","end-state-outer").attr("r",t().state.sizeUnit+t().state.miniPadding).attr("cx",t().state.padding+t().state.sizeUnit+t().state.miniPadding).attr("cy",t().state.padding+t().state.sizeUnit+t().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit+2).attr("cy",t().state.padding+t().state.sizeUnit+2)),q=(e,a)=>{let o=t().state.forkWidth,c=t().state.forkHeight;if(a.parentId){let s=o;o=c,c=s}return e.append("rect").style("stroke","black").style("fill","black").attr("width",o).attr("height",c).attr("x",t().state.padding).attr("y",t().state.padding)},Z=(e,a,o,c)=>{let s=0;const g=c.append("text");g.style("text-anchor","start"),g.attr("class","noteText");let p=e.replace(/\r\n/g,"<br/>");p=p.replace(/\n/g,"<br/>");const i=p.split(T.lineBreakRegex);let r=1.25*t().state.noteMargin;for(const y of i){const x=y.trim();if(x.length>0){const d=g.append("tspan");if(d.text(x),r===0){const l=d.node().getBBox();r+=l.height}s+=r,d.attr("x",a+t().state.noteMargin),d.attr("y",o+s+1.25*t().state.noteMargin)}}return{textWidth:g.node().getBBox().width,textHeight:s}},j=(e,a)=>{a.attr("class","state-note");const o=a.append("rect").attr("x",0).attr("y",t().state.padding),c=a.append("g"),{textWidth:s,textHeight:g}=Z(e,0,0,c);return o.attr("height",g+2*t().state.noteMargin),o.attr("width",s+t().state.noteMargin*2),o},L=function(e,a){const o=a.id,c={id:o,label:a.id,width:0,height:0},s=e.append("g").attr("id",o).attr("class","stateGroup");a.type==="start"&&O(s),a.type==="end"&&_(s),(a.type==="fork"||a.type==="join")&&q(s,a),a.type==="note"&&j(a.note.text,s),a.type==="divider"&&X(s),a.type==="default"&&a.descriptions.length===0&&J(s,a),a.type==="default"&&a.descriptions.length>0&&Y(s,a);const g=s.node().getBBox();return c.width=g.width+2*t().state.padding,c.height=g.height+2*t().state.padding,c};let G=0;const K=function(e,a,o){const c=function(r){switch(r){case N.relationType.AGGREGATION:return"aggregation";case N.relationType.EXTENSION:return"extension";case N.relationType.COMPOSITION:return"composition";case N.relationType.DEPENDENCY:return"dependency"}};a.points=a.points.filter(r=>!Number.isNaN(r.y));const s=a.points,g=$().x(function(r){return r.x}).y(function(r){return r.y}).curve(R),p=e.append("path").attr("d",g(s)).attr("id","edge"+G).attr("class","transition");let i="";if(t().state.arrowMarkerAbsolute&&(i=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,i=i.replace(/\(/g,"\\("),i=i.replace(/\)/g,"\\)")),p.attr("marker-end","url("+i+"#"+c(N.relationType.DEPENDENCY)+"End)"),o.title!==void 0){const r=e.append("g").attr("class","stateLabel"),{x:y,y:x}=U.calcLabelPosition(a.points),d=T.getRows(o.title);let l=0;const m=[];let w=0,E=0;for(let u=0;u<=d.length;u++){const h=r.append("text").attr("text-anchor","middle").text(d[u]).attr("x",y).attr("y",x+l),f=h.node().getBBox();w=Math.max(w,f.width),E=Math.min(E,f.x),b.info(f.x,y,x+l),l===0&&(l=h.node().getBBox().height,b.info("Title height",l,x)),m.push(h)}let k=l*d.length;if(d.length>1){const u=(d.length-1)*l*.5;m.forEach((h,f)=>h.attr("y",x+f*l-u)),k=l*d.length}const n=r.node().getBBox();r.insert("rect",":first-child").attr("class","box").attr("x",y-w/2-t().state.padding/2).attr("y",x-k/2-t().state.padding/2-3.5).attr("width",w+t().state.padding).attr("height",k+t().state.padding),b.info(n)}G++};let B;const z={},Q=function(){},V=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")},D=function(e,a,o,c){B=t().state;const s=t().securityLevel;let g;s==="sandbox"&&(g=H("#i"+a));const p=s==="sandbox"?H(g.nodes()[0].contentDocument.body):H("body"),i=s==="sandbox"?g.nodes()[0].contentDocument:document;b.debug("Rendering diagram "+e);const r=p.select(`[id='${a}']`);V(r);const y=c.db.getRootDoc();A(y,r,void 0,!1,p,i,c);const x=B.padding,d=r.node().getBBox(),l=d.width+x*2,m=d.height+x*2,w=l*1.75;v(r,m,w,B.useMaxWidth),r.attr("viewBox",`${d.x-B.padding} ${d.y-B.padding} `+l+" "+m)},tt=e=>e?e.length*B.fontSizeFactor:1,A=(e,a,o,c,s,g,p)=>{const i=new C({compound:!0,multigraph:!0});let r,y=!0;for(r=0;r<e.length;r++)if(e[r].stmt==="relation"){y=!1;break}o?i.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:y?1:B.edgeLengthFactor,nodeSep:y?1:50,isMultiGraph:!0}):i.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:y?1:B.edgeLengthFactor,nodeSep:y?1:50,ranker:"tight-tree",isMultiGraph:!0}),i.setDefaultEdgeLabel(function(){return{}}),p.db.extract(e);const x=p.db.getStates(),d=p.db.getRelations(),l=Object.keys(x);for(const n of l){const u=x[n];o&&(u.parentId=o);let h;if(u.doc){let f=a.append("g").attr("id",u.id).attr("class","stateGroup");h=A(u.doc,f,u.id,!c,s,g,p);{f=I(f,u,c);let S=f.node().getBBox();h.width=S.width,h.height=S.height+B.padding/2,z[u.id]={y:B.compositTitleSize}}}else h=L(a,u);if(u.note){const f={descriptions:[],id:u.id+"-note",note:u.note,type:"note"},S=L(a,f);u.note.position==="left of"?(i.setNode(h.id+"-note",S),i.setNode(h.id,h)):(i.setNode(h.id,h),i.setNode(h.id+"-note",S)),i.setParent(h.id,h.id+"-group"),i.setParent(h.id+"-note",h.id+"-group")}else i.setNode(h.id,h)}b.debug("Count=",i.nodeCount(),i);let m=0;d.forEach(function(n){m++,b.debug("Setting edge",n),i.setEdge(n.id1,n.id2,{relation:n,width:tt(n.title),height:B.labelHeight*T.getRows(n.title).length,labelpos:"c"},"id"+m)}),F(i),b.debug("Graph after layout",i.nodes());const w=a.node();i.nodes().forEach(function(n){n!==void 0&&i.node(n)!==void 0?(b.warn("Node "+n+": "+JSON.stringify(i.node(n))),s.select("#"+w.id+" #"+n).attr("transform","translate("+(i.node(n).x-i.node(n).width/2)+","+(i.node(n).y+(z[n]?z[n].y:0)-i.node(n).height/2)+" )"),s.select("#"+w.id+" #"+n).attr("data-x-shift",i.node(n).x-i.node(n).width/2),g.querySelectorAll("#"+w.id+" #"+n+" .divider").forEach(h=>{const f=h.parentElement;let S=0,M=0;f&&(f.parentElement&&(S=f.parentElement.getBBox().width),M=parseInt(f.getAttribute("data-x-shift"),10),Number.isNaN(M)&&(M=0)),h.setAttribute("x1",0-M+8),h.setAttribute("x2",S-M-8)})):b.debug("No Node "+n+": "+JSON.stringify(i.node(n)))});let E=w.getBBox();i.edges().forEach(function(n){n!==void 0&&i.edge(n)!==void 0&&(b.debug("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(i.edge(n))),K(a,i.edge(n),i.edge(n).relation))}),E=w.getBBox();const k={id:o||"root",label:o||"root",width:0,height:0};return k.width=E.width+2*B.padding,k.height=E.height+2*B.padding,b.debug("Doc rendered",k,i),k},et={setConf:Q,draw:D},ut={parser:P,db:N,renderer:et,styles:W,init:e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute,N.clear()}};export{ut as diagram};
import{d as _,$ as u,y as h,b as a,e as t,x as s,A as r,F as f,Z as v,o as n,a0 as g,l as x,g as b}from"../modules/vue-Dn3czbSS.js";import{u as y,h as N,c as m,b as k}from"../index-D2S1x1Oe.js";import{N as w}from"./NoteDisplay-DPpZxM1P.js";import"../modules/shiki-CuMFyo6Z.js";const L={id:"page-root"},T={class:"m-4"},V={class:"mb-10"},B={class:"text-4xl font-bold mt-2"},D={class:"opacity-50"},H={class:"text-lg"},S={class:"font-bold flex gap-2"},A={class:"opacity-50"},C=t("div",{class:"flex-auto"},null,-1),F={key:0,class:"border-main mb-8"},M=_({__name:"print",setup($){const{slides:d,total:p}=y();u(`
@page {
size: A4;
margin-top: 1.5cm;
margin-bottom: 1cm;
}
* {
-webkit-print-color-adjust: exact;
}
html,
html body,
html #app,
html #page-root {
height: auto;
overflow: auto !important;
}
`),N({title:`Notes - ${m.title}`});const i=h(()=>d.value.map(o=>{var l;return(l=o.meta)==null?void 0:l.slide}).filter(o=>o!==void 0&&o.noteHTML!==""));return(o,l)=>(n(),a("div",L,[t("div",T,[t("div",V,[t("h1",B,s(r(m).title),1),t("div",D,s(new Date().toLocaleString()),1)]),(n(!0),a(f,null,v(i.value,(e,c)=>(n(),a("div",{key:c,class:"flex flex-col gap-4 break-inside-avoid-page"},[t("div",null,[t("h2",H,[t("div",S,[t("div",A,s(e==null?void 0:e.no)+"/"+s(r(p)),1),g(" "+s(e==null?void 0:e.title)+" ",1),C])]),x(w,{"note-html":e.noteHTML,class:"max-w-full"},null,8,["note-html"])]),c<i.value.length-1?(n(),a("hr",F)):b("v-if",!0)]))),128))])]))}}),Z=k(M,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/pages/presenter/print.vue"]]);export{Z as default};
function __vite__mapDeps(indexes) {
if (!__vite__mapDeps.viteFileDeps) {
__vite__mapDeps.viteFileDeps = ["assets/slidev/DrawingPreview-CEcTSZ6p.js","assets/modules/vue-Dn3czbSS.js","assets/index-D2S1x1Oe.js","assets/modules/shiki-CuMFyo6Z.js","assets/modules/shiki-BSchMNmt.css","assets/index-Dw67r9kT.css","assets/slidev/bottom-bs5w17fM.js","assets/slidev/context-CYh2-pv1.js","assets/bottom-DbIWt59F.css"]
}
return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
}
import{d as m,y as c,M as F,Y as L,J as V,o as r,b as u,l as d,A as l,i as B,c as f,g as _,h as M,F as p,Z as R,e as y,f as j,C as z,_ as G}from"../modules/vue-Dn3czbSS.js";import{t as W}from"../modules/shiki-CuMFyo6Z.js";import{G as D,g as I,S as O,a as T,w as H}from"./bottom-bs5w17fM.js";import{s as J,a as k,_ as K,c as S,i as X,b as h,u as w,d as $,C as Y,e as N,f as g,g as Z}from"../index-D2S1x1Oe.js";import{P as Q}from"./PrintStyle-CsJcNKrF.js";import"./context-CYh2-pv1.js";function U(i){return Array.from(new Set(i))}function q(...i){let t,n,e;i.length===1?(t=0,e=1,[n]=i):[t,n,e=1]=i;const s=[];let a=t;for(;a<n;)s.push(a),a+=e||1;return s}function ee(i,t){if(!t||t==="all"||t==="*")return q(1,i+1);if(t==="none")return[];const n=[];for(const e of t.split(/[,;]/g))if(!e.includes("-"))n.push(+e);else{const[s,a]=e.split("-",2);n.push(...q(+s,a?+a+1:i+1))}return U(n).filter(e=>e<=i).sort((e,s)=>e-s)}const te=["id"],ne=m({__name:"PrintSlideClick",props:{nav:{type:Object,required:!0}},setup(i){const{nav:t}=i,n=c(()=>t.currentSlideRoute.value),e=c(()=>({height:`${J.value}px`,width:`${k.value}px`})),s=F();K(()=>import("./DrawingPreview-CEcTSZ6p.js").then(o=>o.a),__vite__mapDeps([0,1,2,3,4,5,6,7,8])).then(o=>s.value=o.default);const a=c(()=>`${n.value.no.toString().padStart(3,"0")}-${(t.clicks.value+1).toString().padStart(2,"0")}`);return L(X,V({nav:t,configs:S,themeConfigs:c(()=>S.themeConfig)})),(o,C)=>(r(),u("div",{id:a.value,class:"print-slide-container",style:M(e.value)},[d(l(D)),d(O,{is:n.value.component,"clicks-context":o.nav.clicksContext.value,class:B(l(I)(n.value)),route:n.value},null,8,["is","clicks-context","class","route"]),s.value?(r(),f(l(s),{key:0,page:n.value.no},null,8,["page"])):_("v-if",!0),d(l(T))],12,te))}}),A=h(ne,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/PrintSlideClick.vue"]]),se=m({__name:"PrintSlide",props:{route:{type:null,required:!0}},setup(i){const{route:t}=i,{isPrintWithClicks:n}=w(),e=$(t,n.value?0:Y);return(s,a)=>(r(),u(p,null,[d(A,{"clicks-context":l(e),nav:l(N)(s.route,l(e))},null,8,["clicks-context","nav"]),l(n)?(r(),u(p,{key:0},[_(`
clicks0.total can be any number >=0 when rendering.
So total-clicksStart can be negative in intermediate states.
`),(r(!0),u(p,null,R(Math.max(0,l(e).total-l(e).clicksStart),o=>(r(),f(A,{key:o,nav:l(N)(s.route,l($)(s.route,o+l(e).clicksStart))},null,8,["nav"]))),128))],64)):_("v-if",!0)],64))}}),ie=h(se,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/PrintSlide.vue"]]),le={id:"print-content"},ae=m({__name:"PrintContainer",props:{width:{type:Number,required:!0}},setup(i){const t=i,{slides:n,currentRoute:e}=w(),s=c(()=>t.width),a=c(()=>t.width/g.value),o=c(()=>s.value/a.value),C=c(()=>o.value<g.value?s.value/k.value:a.value*g.value/k.value);let v=n.value;e.value.query.range&&(v=ee(v.length,e.value.query.range).map(P=>v[P-1]));const E=c(()=>({"select-none":!S.selectable}));return L(Z,C),(x,P)=>(r(),u("div",{id:"print-container",class:B(E.value)},[y("div",le,[(r(!0),u(p,null,R(l(v),b=>(r(),f(ie,{key:b.no,route:b},null,8,["route"]))),128))]),j(x.$slots,"controls")],2))}}),re=h(ae,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/PrintContainer.vue"]]),oe={id:"page-root",class:"grid grid-cols-[1fr_max-content]"},ce=y("div",{id:"twoslash-container"},null,-1),ue=m({__name:"print",setup(i){const{isPrintMode:t}=w();return z(()=>{t?document.body.parentNode.classList.add("print"):document.body.parentNode.classList.remove("print")}),G(()=>{W()}),(n,e)=>(r(),u(p,null,[l(t)?(r(),f(Q,{key:0})):_("v-if",!0),y("div",oe,[d(re,{class:"w-full h-full",style:M({background:"var(--slidev-slide-container-background, black)"}),width:l(H).width.value},null,8,["style","width"]),ce])],64))}}),he=h(ue,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/pages/print.vue"]]);export{he as default};
import{_ as X,a as Z,b as Y,c as ee,d as te}from"../modules/unplugin-icons-CXhi-ET8.js";import{t as q,d as R,c as b,i as f,A as t,o as i,y as v,b as k,e,l as r,F as B,x as N,g as z,Z as se,a1 as oe,a2 as le,h as I,p as U,a as W,D as G,M as ne,_ as ae,J as re,a3 as ie,a4 as ce,k as $,a5 as ue}from"../modules/vue-Dn3czbSS.js";import{j as de,b as P,k as pe,r as me,C as ve,u as _e,c as H,h as fe,l as xe,d as be,m as ke}from"../index-D2S1x1Oe.js";import{r as ge,u as he,S as O,I as Q,Q as ye,a as Ce,N as we,G as Se}from"./SlidesShow-B3J6ytWL.js";import{s as $e,b as V,p as Ne,S as ze,g as Ie,c as Fe,i as De,d as Me}from"./bottom-bs5w17fM.js";import{N as Te}from"./NoteDisplay-DPpZxM1P.js";import Ve from"./DrawingControls-CI8ZW2y-.js";import{u as qe}from"./DrawingPreview-CEcTSZ6p.js";import"../modules/shiki-CuMFyo6Z.js";import"./context-CYh2-pv1.js";function Be(a){var l;return{info:q((l=de(a))==null?void 0:l.meta.slide),update:async()=>{}}}const Re=R({__name:"NoteStatic",props:{no:{type:Number,required:!0},class:{type:String,required:!1},clicksContext:{type:null,required:!1}},setup(a){const l=a,{info:s}=Be(l.no);return(u,c)=>{var o,x;return i(),b(Te,{class:f(l.class),note:(o=t(s))==null?void 0:o.note,"note-html":(x=t(s))==null?void 0:x.noteHTML,"clicks-context":u.clicksContext},null,8,["class","note","note-html","clicks-context"])}}}),Pe=P(Re,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/NoteStatic.vue"]]),E=a=>(U("data-v-52a29648"),a=a(),W(),a),Le=["title"],je={class:"flex gap-0.5 items-center min-w-16 font-mono mr1"},Ae=E(()=>e("div",{"flex-auto":""},null,-1)),Ge={"text-primary":""},He=E(()=>e("span",{op25:""},"/",-1)),Oe={op50:""},Qe=["min","max"],Ue=R({__name:"ClicksSlider",props:{clicksContext:{type:null,required:!0}},setup(a){const l=a,s=v(()=>l.clicksContext.total),u=v(()=>pe(0,l.clicksContext.clicksStart,s.value)),c=v(()=>s.value-u.value+1),o=v({get(){return l.clicksContext.current>s.value?-1:l.clicksContext.current},set(g){l.clicksContext.current=g}}),x=v(()=>me(u.value,s.value+1));function F(){(o.value<0||o.value>s.value)&&(o.value=0)}return(g,d)=>{const D=X;return i(),k("div",{class:f(["flex gap-1 items-center select-none",c.value?"":"op50"]),title:`Clicks in this slide: ${c.value}`},[e("div",je,[r(D,{"text-sm":"",op50:""}),Ae,o.value>=0&&o.value!==t(ve)?(i(),k(B,{key:0},[e("span",Ge,N(o.value),1),He],64)):z("v-if",!0),e("span",Oe,N(s.value),1)]),e("div",{relative:"","flex-auto":"",h5:"","font-mono":"",flex:"~",onDblclick:d[2]||(d[2]=n=>o.value=g.clicksContext.total)},[(i(!0),k(B,null,se(x.value,n=>(i(),k("div",{key:n,border:"y main","of-hidden":"",relative:"",class:f([n===0?"rounded-l border-l":"",n===s.value?"rounded-r border-r":""]),style:I({width:c.value>0?`${1/c.value*100}%`:"100%"})},[e("div",{absolute:"","inset-0":"",class:f(n<=o.value?"bg-primary op15":"")},null,2),e("div",{class:f([+n==+o.value?"text-primary font-bold op100 border-primary":"op30 border-main",n===0?"rounded-l":"",n===s.value?"rounded-r":"border-r-2"]),"w-full":"","h-full":"","text-xs":"",flex:"","items-center":"","justify-center":"","z-1":""},N(n),3)],6))),128)),oe(e("input",{"onUpdate:modelValue":d[0]||(d[0]=n=>o.value=n),class:"range",absolute:"","inset-0":"",type:"range",min:u.value,max:s.value,step:1,"z-10":"",op0:"",style:I({"--thumb-width":`${1/(c.value+1)*100}%`}),onMousedown:F,onFocus:d[1]||(d[1]=n=>{var C;return(C=n.currentTarget)==null?void 0:C.blur()})},null,44,Qe),[[le,o.value]])],32)],10,Le)}}}),We=P(Ue,[["__scopeId","data-v-52a29648"],["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/ClicksSlider.vue"]]),L=a=>(U("data-v-d0ba6bbb"),a=a(),W(),a),Ee={class:"bg-main h-full slidev-presenter"},Je=L(()=>e("div",{class:"absolute left-0 top-0 bg-main border-b border-r border-main px2 py1 op50 text-sm"}," Current ",-1)),Ke={class:"relative grid-section next flex flex-col p-2 lg:p-4"},Xe=L(()=>e("div",{class:"absolute left-0 top-0 bg-main border-b border-r border-main px2 py1 op50 text-sm"}," Next ",-1)),Ze={key:1,class:"grid-section note grid grid-rows-[1fr_min-content] overflow-hidden"},Ye={class:"border-t border-main py-1 px-2 text-sm"},et={class:"grid-section bottom flex"},tt=L(()=>e("div",{"flex-auto":""},null,-1)),st={class:"text-2xl pl-2 pr-6 my-auto tabular-nums"},ot={class:"progress-bar"},lt=R({__name:"presenter",setup(a){const l=q();ge(),he(l);const{clicksContext:s,currentSlideNo:u,currentSlideRoute:c,hasNext:o,nextRoute:x,slides:F,queryClicks:g,getPrimaryClicks:d,total:D}=_e(),{isDrawing:n}=qe(),C=H.titleTemplate.replace("%s",H.title||"Slidev");fe({title:`Presenter - ${C}`}),q(!1);const{timer:J,resetTimer:j}=xe(),K=v(()=>F.value.map(S=>be(S))),p=v(()=>s.value.current<s.value.total?[c.value,s.value.current+1]:o.value?[x.value,0]:null),w=v(()=>p.value&&K.value[p.value[0].no-1]);return G([c,g],()=>{w.value&&(w.value.current=p.value[1])},{immediate:!0}),ne(),ae(()=>{const S=l.value.querySelector("#slide-content"),_=re(ie()),M=ce();G(()=>{if(!M.value||n.value||!$e.value)return;const m=S.getBoundingClientRect(),h=(_.x-m.left)/m.width*100,y=(_.y-m.top)/m.height*100;if(!(h<0||h>100||y<0||y>100))return{x:h,y}},m=>{ke.cursor=m})}),(S,_)=>{var A;const M=Z,m=Y,h=ee,y=te;return i(),k(B,null,[e("div",Ee,[e("div",{class:f(["grid-container",`layout${t(Ne)}`])},[e("div",{ref_key:"main",ref:l,class:"relative grid-section main flex flex-col"},[r(O,{key:"main",class:"h-full w-full p-2 lg:p-4 flex-auto"},{default:$(()=>[r(Ce,{"render-context":"presenter"})]),_:1}),(i(),b(We,{key:(A=t(c))==null?void 0:A.no,"clicks-context":t(d)(t(c)),class:"w-full pb2 px4 flex-none"},null,8,["clicks-context"])),Je],512),e("div",Ke,[p.value&&w.value?(i(),b(O,{key:"next",class:"h-full w-full"},{default:$(()=>[(i(),b(ze,{is:p.value[0].component,key:p.value[0].no,"clicks-context":w.value,class:f(t(Ie)(p.value[0])),route:p.value[0],"render-context":"previewNext"},null,8,["is","clicks-context","class","route"]))]),_:1})):z("v-if",!0),Xe]),z(" Notes "),(i(),k("div",Ze,[(i(),b(Pe,{key:`static-${t(u)}`,no:t(u),class:"w-full max-w-full h-full overflow-auto p-2 lg:p-4",style:I({fontSize:`${t(Fe)}em`}),"clicks-context":t(s)},null,8,["no","style","clicks-context"])),e("div",Ye,[r(Q,{title:"Increase font size",onClick:t(De)},{default:$(()=>[r(M)]),_:1},8,["onClick"]),r(Q,{title:"Decrease font size",onClick:t(Me)},{default:$(()=>[r(m)]),_:1},8,["onClick"]),z("v-if",!0)])])),e("div",et,[r(we,{persist:!0}),tt,e("div",{class:"timer-btn my-auto relative w-22px h-22px cursor-pointer text-lg",opacity:"50 hover:100",onClick:_[2]||(_[2]=(...T)=>t(j)&&t(j)(...T))},[r(h,{class:"absolute"}),r(y,{class:"absolute opacity-0"})]),e("div",st,N(t(J)),1)]),(i(),b(Ve,{key:2}))],2),e("div",ot,[e("div",{class:"progress h-3px bg-primary transition-all",style:I({width:`${(t(u)-1)/(t(D)-1)*100}%`})},null,4)])]),r(Se),r(ye,{modelValue:t(V),"onUpdate:modelValue":_[3]||(_[3]=T=>ue(V)?V.value=T:null)},null,8,["modelValue"])],64)}}}),_t=P(lt,[["__scopeId","data-v-d0ba6bbb"],["__file","/home/alex/notes/slides/node_modules/@slidev/client/pages/presenter.vue"]]);export{_t as default};
function __vite__mapDeps(indexes) {
if (!__vite__mapDeps.viteFileDeps) {
__vite__mapDeps.viteFileDeps = ["assets/slidev/DrawingControls-CI8ZW2y-.js","assets/modules/unplugin-icons-CXhi-ET8.js","assets/modules/vue-Dn3czbSS.js","assets/modules/shiki-CuMFyo6Z.js","assets/modules/shiki-BSchMNmt.css","assets/slidev/DrawingPreview-CEcTSZ6p.js","assets/index-D2S1x1Oe.js","assets/index-Dw67r9kT.css","assets/slidev/bottom-bs5w17fM.js","assets/slidev/context-CYh2-pv1.js","assets/bottom-DbIWt59F.css","assets/slidev/SlidesShow-B3J6ytWL.js","assets/SlidesShow-DZAAkYiM.css","assets/DrawingControls-C5T1oZL5.css"]
}
return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
}
import{b as w,c as y,u as $,_ as z}from"../index-D2S1x1Oe.js";import{d as k,a6 as P,o as s,c as r,A as e,b as v,e as t,f as B,i as D,g as a,a7 as O,y as E,k as M,a5 as g,a0 as R,M as h,l as p,F as I,t as A,h as T}from"../modules/vue-Dn3czbSS.js";import{b as x,e as C,f as S,h as U,j as N,w as H,k as L,l as j}from"./bottom-bs5w17fM.js";import{Q as F,G,r as Q,u as W,S as K,a as X,N as Y}from"./SlidesShow-B3J6ytWL.js";import{P as q}from"./PrintStyle-CsJcNKrF.js";import{u as J}from"./DrawingPreview-CEcTSZ6p.js";import"../modules/shiki-CuMFyo6Z.js";import"./context-CYh2-pv1.js";import"../modules/unplugin-icons-CXhi-ET8.js";const Z="/slides/bisonex/assets/logo-BYkHSa_O.png",ee={key:0,class:"fixed top-0 bottom-0 left-0 right-0 grid z-20"},oe=k({__name:"Modal",props:{modelValue:{default:!1},class:{default:""}},emits:["update:modelValue"],setup(u,{emit:i}){const n=u,o=P(n,"modelValue",i);function l(){o.value=!1}return(c,d)=>(s(),r(O,null,[e(o)?(s(),v("div",ee,[t("div",{bg:"black opacity-80",class:"absolute top-0 bottom-0 left-0 right-0 -z-1",onClick:d[0]||(d[0]=m=>l())}),t("div",{class:D(["m-auto rounded-md bg-main shadow",n.class]),"dark:border":"~ main"},[B(c.$slots,"default")],2)])):a("v-if",!0)],1024))}}),se=w(oe,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/Modal.vue"]]),le={class:"slidev-info-dialog slidev-layout flex flex-col gap-4 text-base"},te=["innerHTML"],ae=t("a",{href:"https://github.com/slidevjs/slidev",target:"_blank",class:"!opacity-100 !border-none !text-current"},[t("div",{class:"flex gap-1 children:my-auto"},[t("div",{class:"opacity-50 text-sm mr-2"},"Powered by"),t("img",{class:"w-5 h-5",src:Z,alt:"Slidev logo"}),t("div",{style:{color:"#2082A6"}},[t("b",null,"Sli"),R("dev ")])])],-1),ie=k({__name:"InfoDialog",props:{modelValue:{default:!1}},emits:["update:modelValue"],setup(u,{emit:i}){const o=P(u,"modelValue",i),l=E(()=>typeof y.info=="string");return(c,d)=>(s(),r(se,{modelValue:e(o),"onUpdate:modelValue":d[0]||(d[0]=m=>g(o)?o.value=m:null),class:"px-6 py-4"},{default:M(()=>[t("div",le,[l.value?(s(),v("div",{key:0,class:"mb-4",innerHTML:e(y).info},null,8,te)):a("v-if",!0),ae])]),_:1},8,["modelValue"]))}}),ne=w(ie,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/InfoDialog.vue"]]),re=k({__name:"Controls",setup(u){const i=h(),n=h();return(_,o)=>(s(),v(I,null,[p(F,{modelValue:e(x),"onUpdate:modelValue":o[0]||(o[0]=l=>g(x)?x.value=l:null)},null,8,["modelValue"]),p(G),i.value?(s(),r(e(i),{key:0})):a("v-if",!0),n.value?(s(),r(e(n),{key:1,modelValue:e(C),"onUpdate:modelValue":o[1]||(o[1]=l=>g(C)?C.value=l:null)},null,8,["modelValue"])):a("v-if",!0),e(y).info?(s(),r(ne,{key:2,modelValue:e(S),"onUpdate:modelValue":o[2]||(o[2]=l=>g(S)?S.value=l:null)},null,8,["modelValue"])):a("v-if",!0)],64))}}),de=w(re,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/Controls.vue"]]),ue=k({__name:"play",setup(u){Q();const{next:i,prev:n,isEmbedded:_,isPrintMode:o}=$(),{isDrawing:l}=J(),c=A();function d(f){var b;N.value||((b=f.target)==null?void 0:b.id)==="slide-container"&&(f.screenX/window.innerWidth>.6?i():n())}W(c);const m=E(()=>U.value||N.value);h();const V=h();return z(()=>import("./DrawingControls-CI8ZW2y-.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13])).then(f=>V.value=f.default),(f,b)=>(s(),v(I,null,[e(o)?(s(),r(q,{key:0})):a("v-if",!0),t("div",{id:"page-root",ref_key:"root",ref:c,class:D(["grid",e(j)?"grid-rows-[1fr_max-content]":"grid-cols-[1fr_max-content]"])},[p(K,{class:"w-full h-full",style:T({background:"var(--slidev-slide-container-background, black)"}),width:e(o)?e(H).width.value:void 0,scale:e(L),"is-main":!0,onPointerdown:d},{default:M(()=>[p(X,{"render-context":"slide"})]),controls:M(()=>[e(o)?a("v-if",!0):(s(),v("div",{key:0,class:D(["absolute bottom-0 left-0 transition duration-300 opacity-0 hover:opacity-100",[m.value?"!opacity-100 right-0":"opacity-0 p-2",e(l)?"pointer-events-none":""]])},[p(Y,{class:"m-auto",persist:m.value},null,8,["persist"])],2)),!e(y).drawings.presenterOnly&&!e(_)&&V.value?(s(),r(e(V),{key:1,class:"ml-0"})):a("v-if",!0)]),_:1},8,["style","width","scale"]),a("v-if",!0)],2),e(o)?a("v-if",!0):(s(),r(de,{key:1}))],64))}}),we=w(ue,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/pages/play.vue"]]);export{we as default};
import{d as r,y as n,o as c,b as d,e as a,f as u,i as f,h as m}from"../modules/vue-Dn3czbSS.js";import{b as p}from"../index-D2S1x1Oe.js";function i(e){return e.startsWith("/")?"/slides/bisonex"+e.slice(1):e}function g(e,s=!1,l="cover"){const t=e&&(e[0]==="#"||e.startsWith("rgb")),o={background:t?e:void 0,color:e&&!t?"white":void 0,backgroundImage:t?void 0:e?s?`linear-gradient(#0005, #0008), url(${i(e)})`:`url("${i(e)}")`:void 0,backgroundRepeat:"no-repeat",backgroundPosition:"center",backgroundSize:l};return o.background||delete o.background,o}const v={class:"grid grid-cols-2 w-full h-full auto-rows-fr"},h=r({__name:"image-right",props:{image:{type:String},class:{type:String},backgroundSize:{type:String,default:"cover"}},setup(e){const s=e,l=n(()=>g(s.image,!1,s.backgroundSize));return(t,o)=>(c(),d("div",v,[a("div",{class:f(["slidev-layout default",s.class])},[u(t.$slots,"default")],2),a("div",{class:"w-full h-full",style:m(l.value)},null,4)]))}}),S=p(h,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/layouts/image-right.vue"]]);export{S as I};
import{o,b as s,f as t}from"../modules/vue-Dn3czbSS.js";import{b as l}from"../index-D2S1x1Oe.js";const a={},n={class:"slidev-layout default"};function c(e,r){return o(),s("div",n,[t(e.$slots,"default")])}const f=l(a,[["render",c],["__file","/home/alex/notes/slides/node_modules/@slidev/client/layouts/default.vue"]]);export{f as I};
import{ax as n,ar as r,t as u,y as j,Y as $,ay as v}from"../modules/vue-Dn3czbSS.js";import{g as p,B as x,X as l,i as C,A as S,x as R,y as T,w as g,Y as k,Z as y}from"../index-D2S1x1Oe.js";function E(){const t=n(C),s=r(t,"nav"),i=n(S).value,e=r(i,"current"),a=n(R),c=n(T),o=n(l,{}),d=n(g,void 0),m=n(p,u(1)),f=n(x,j(()=>1));return{$slidev:t,$nav:s,$clicksContext:i,$clicks:e,$page:a,$route:d,$renderContext:c,$frontmatter:o,$scale:m,$zoom:f}}function L(t){var a,c;$(l,t);const{$slidev:s,$page:i}=E(),e=s.nav.slides.find(o=>o.no===i.value);if((c=(a=e==null?void 0:e.meta)==null?void 0:a.slide)!=null&&c.frontmatter){for(const o of Object.keys(e.meta.slide.frontmatter))o in t||delete e.meta.slide.frontmatter[o];Object.assign(e.meta.slide.frontmatter,t)}}function O(t,s){return{...v(t,s===0?k:y),frontmatter:t}}export{O as f,L as p,E as u};
import{t as m,al as U,am as K,an as Z,y,ao as Q,ap as X,Q as d,S as N,R as Y,aq as J,d as C,_ as q,o as n,b as l,F,g as V,e as p,Y as $,ar as D,c as P,h as ee,i as H,af as te,A as i,as as se,v as W,x as g,a0 as B,l as E,r as ne,k as G,f as R,Z as I}from"../modules/vue-Dn3czbSS.js";import{f as oe,_ as ae,c as S,b as h,w as le,x as ie,y as re,z as ce,A as de,B as ue,u as _e}from"../index-D2S1x1Oe.js";import{u as j}from"./context-CYh2-pv1.js";const qe=m(!1),Ve=m(!1),He=m(!1),fe=m(!1),We=m(!0),Ge=U({xs:460,...J}),O=K(),Ue=Z(),Ke=y(()=>O.height.value-O.width.value/oe.value>120),Ze=Q(N?document.body:null),M=X(),Qe=y(()=>{var s,e;return["INPUT","TEXTAREA"].includes(((s=M.value)==null?void 0:s.tagName)||"")||((e=M.value)==null?void 0:e.classList.contains("CodeMirror-code"))}),Xe=y(()=>{var s;return["BUTTON","A"].includes(((s=M.value)==null?void 0:s.tagName)||"")});d("slidev-camera","default",{listenToStorageChanges:!1});d("slidev-mic","default",{listenToStorageChanges:!1});const Ye=d("slidev-scale",0),Je=d("slidev-presenter-cursor",!0,{listenToStorageChanges:!1}),et=d("slidev-show-editor",!1,{listenToStorageChanges:!1}),tt=d("slidev-editor-vertical",!1,{listenToStorageChanges:!1});d("slidev-editor-width",N?window.innerWidth*.4:318,{listenToStorageChanges:!1});d("slidev-editor-height",N?window.innerHeight*.4:300,{listenToStorageChanges:!1});const z=d("slidev-presenter-font-size",1,{listenToStorageChanges:!1}),L=d("slidev-presenter-layout",1,{listenToStorageChanges:!1});function st(){L.value=L.value+1,L.value>2&&(L.value=1)}function nt(){z.value=Math.min(2,z.value+.1)}function ot(){z.value=Math.max(.5,z.value-.1)}const at=Y(fe);function lt(s,e=""){var r,o;const t=["slidev-page",e],a=(o=(r=s==null?void 0:s.meta)==null?void 0:r.slide)==null?void 0:o.no;return a!=null&&t.push(`slidev-page-${a}`),t.filter(Boolean).join(" ")}async function it(){const{saveAs:s}=await ae(()=>import("../modules/file-saver-EUMWMpoS.js").then(e=>e.F),[]);s(typeof S.download=="string"?S.download:S.exportFilename?`${S.exportFilename}.pdf`:"/slides/bisonexslidev-exported.pdf",`${S.title}.pdf`)}const pe={class:"h-full w-full flex items-center justify-center gap-2 slidev-slide-loading"},me=p("div",{class:"i-svg-spinners-90-ring-with-bg text-xl"},null,-1),ve=p("div",null,"Loading slide...",-1),ge=C({__name:"SlideLoading",setup(s){const e=m(!1);return q(()=>{setTimeout(()=>{e.value=!0},200)}),(t,a)=>(n(),l("div",pe,[e.value?(n(),l(F,{key:0},[me,ve],64)):V("v-if",!0)]))}}),he=h(ge,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/SlideLoading.vue"]]),xe=C({__name:"SlideWrapper",props:{clicksContext:{type:Object,required:!0},renderContext:{type:String,default:"slide"},active:{type:Boolean,default:!1},is:{type:Function,required:!0},route:{type:Object,required:!0}},setup(s){const e=s,t=y(()=>{var o,v;return((v=(o=e.route.meta)==null?void 0:o.slide)==null?void 0:v.frontmatter.zoom)??1});$(le,e.route),$(ie,m(e.route.no)),$(re,m(e.renderContext)),$(ce,D(e,"active")),$(de,D(e,"clicksContext")),$(ue,t);const a=y(()=>t.value===1?void 0:{width:`${100/t.value}%`,height:`${100/t.value}%`,transformOrigin:"top left",transform:`scale(${t.value})`}),r=se({loader:async()=>{const o=await e.is();return C({setup(v,{attrs:w}){return q(()=>{var _,u;(u=(_=e.clicksContext)==null?void 0:_.onMounted)==null||u.call(_)}),()=>W(o.default,w)}})},delay:300,loadingComponent:he});return(o,v)=>(n(),P(te(i(r)),{style:ee(a.value),"data-slidev-no":e.route.no,class:H({"disable-view-transition":!["slide","presenter"].includes(e.renderContext)})},null,8,["style","data-slidev-no","class"]))}}),rt=h(xe,[["__scopeId","data-v-026ee359"],["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/SlideWrapper.vue"]]),ke=C({__name:"SlidesTotal",setup(s){const{$nav:e}=j();return(t,a)=>(n(),l("span",null,g(i(e).total),1))}}),$e=h(ke,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/builtin/SlidesTotal.vue"]]),ye={class:"absolute bottom-0 left-0 right-0 flex text-center text-white"},Ce={class:"flex-1 p-1",style:{background:"#191959"}},Se={class:"flex-1 p-1",style:{background:"#262686"}},we={class:"flex-1 p-1",style:{background:"#3333B3"}},be={class:"float-right"},Te={__name:"InfoLine",setup(s){const{$slidev:e,$nav:t,$clicksContext:a,$clicks:r,$page:o,$renderContext:v,$frontmatter:w}=j();return(_,u)=>{const c=$e;return n(),l("footer",ye,[p("div",Ce,g(i(e).configs.author||"Unknown author"),1),p("div",Se,g(i(e).configs.title||"Unknown title"),1),p("div",we,[p("div",be,[B(g(i(e).nav.currentPage)+" / ",1),E(c)]),B(" "+g(i(e).configs.date||new Date().toLocaleDateString()),1)])])}}},Le=h(Te,[["__file","/home/alex/notes/slides/node_modules/slidev-theme-frankfurt/components/InfoLine.vue"]]),Fe=["href","innerHTML"],Pe=["href"],ze=C({__name:"Link",props:{to:{type:[Number,String],required:!0},title:{type:String,required:!1}},setup(s){const{isPrintMode:e}=_e();return(t,a)=>{const r=ne("RouterLink");return!i(e)&&t.title?(n(),P(r,{key:0,to:String(t.to),onClick:a[0]||(a[0]=o=>o.target.blur()),innerHTML:t.title},null,8,["to","innerHTML"])):!i(e)&&!t.title?(n(),P(r,{key:1,to:String(t.to),onClick:a[1]||(a[1]=o=>o.target.blur())},{default:G(()=>[R(t.$slots,"default")]),_:3},8,["to"])):i(e)&&t.title?(n(),l("a",{key:2,href:`#${t.to}`,innerHTML:t.title},null,8,Fe)):(n(),l("a",{key:3,href:`#${t.to}`},[R(t.$slots,"default")],8,Pe))}}}),je=h(ze,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/builtin/Link.vue"]]),Ae={class:"absolute top-0 left-0 right-0 flex shadow-md shadow-black text-sm px-4 -mx-4",style:{background:"black"}},Be=C({__name:"Frankfurt",setup(s){const{$slidev:e,$nav:t,$clicksContext:a,$clicks:r,$page:o,$renderContext:v,$frontmatter:w}=j(),_=y(()=>{var x,b,k;const u=[];let c=[],f="";for(let T=1;T<e.nav.slides.length;T++){const A=(k=(b=(x=e.nav.slides[T].meta)==null?void 0:x.slide)==null?void 0:b.frontmatter)==null?void 0:k.section;A&&A!=f&&(c.length>0&&u.push([f,c]),c=[],f=A),c.push(T)}return u.push([f,c]),u});return(u,c)=>{const f=je;return n(),l("header",Ae,[(n(!0),l(F,null,I(_.value,(x,b)=>(n(),l("div",{class:H(["flex-1 py-1 px-3",x[1].includes(i(e).nav.currentPage-1)?"text-white":"text-stone"]),key:b},[p("div",null,g(x[0]||" "),1),p("div",null,[(n(!0),l(F,null,I(x[1],k=>(n(),l("span",{key:k},[E(f,{to:k+1,style:{color:"unset"}},{default:G(()=>[B(g(i(e).nav.currentPage==k+1?"●":"○"),1)]),_:2},1032,["to"])]))),128))])],2))),128))])}}}),Me=h(Be,[["__file","/home/alex/notes/slides/node_modules/slidev-theme-frankfurt/components/Frankfurt.vue"]]),Ne={__name:"global-top",setup(s){const{$slidev:e,$nav:t,$clicksContext:a,$clicks:r,$page:o,$renderContext:v,$frontmatter:w}=j();return(_,u)=>{const c=Me,f=Le;return n(),l(F,null,[E(c),i(e).configs.infoLine??!0?(n(),P(f,{key:0})):V("v-if",!0)],64)}}},Ee=h(Ne,[["__file","/home/alex/notes/slides/node_modules/slidev-theme-frankfurt/global-top.vue"]]),ct={render(){return[W(Ee)]}},dt={render(){return[]}};export{dt as G,rt as S,ct as a,fe as b,z as c,ot as d,qe as e,Ve as f,lt as g,Ke as h,nt as i,et as j,Ye as k,tt as l,He as m,Ue as n,it as o,L as p,We as q,Xe as r,Je as s,at as t,Qe as u,Ze as v,O as w,Ge as x,st as y,M as z};
import{I as C,b as S,N as z,O as I}from"../index-D2S1x1Oe.js";import{d as g,_ as V,C as w,o as G,c as $,F as B,au as M,v as n,av as f,aw as D,l as F,a1 as L}from"../modules/vue-Dn3czbSS.js";import{u as O}from"./context-CYh2-pv1.js";const T=g({__name:"VClickGap",props:{size:{type:[String,Number],default:1}},setup(c){const d=c,{$clicksContext:a}=O();return V(()=>{w(u=>{if(!a)return;let l=+d.size;Number.isNaN(l)&&(console.warn(`[slidev] Invalid size for VClickGap: ${d.size}`),l=1);const o=a.currentOffset+l-1,t=C();a.register(t,{max:o,delta:l}),u(()=>a.unregister(t))})}),(u,l)=>(G(),$(B))}}),E=S(T,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/builtin/VClickGap.vue"]]),b=["ul","ol"],q=g({props:{depth:{type:[Number,String],default:1},every:{type:[Number,String],default:1},at:{type:[Number,String],default:"+1"},hide:{type:Boolean,default:!1},fade:{type:Boolean,default:!1}},render(){var _,A;const c=+this.every,[d,a]=z(this.at),u=M("click"),l=(s,e)=>L(s,[[u,e,"",{hide:this.hide,fade:this.fade}]]),o=s=>s.flatMap(e=>f(e)&&typeof e.type=="symbol"&&Array.isArray(e.children)?o(e.children):[e]);let t=(A=(_=this.$slots).default)==null?void 0:A.call(_);if(!t)return;t=o(I(t));const k=(s,e=1)=>o(s).map(r=>{if(!f(r))return r;if(b.includes(r.type)&&Array.isArray(r.children)){const i=p(r.children,e+1);return n(r,{},i)}return n(r)});let N=1,h=0;const p=(s,e=1)=>o(s).map(r=>{if(!f(r)||r.type===D)return r;const i=+a+Math.ceil(N++/c)-1;let m;e<+this.depth&&Array.isArray(r.children)?m=n(r,{},k(r.children,e)):m=n(r);const v=i-h;return h=i,l(m,d?v>=0?`+${v}`:`${v}`:i)}),y=()=>F(E,{size:+a+Math.ceil((N-1)/c)-1-h});if(t.length===1&&b.includes(t[0].type)&&Array.isArray(t[0].children))return n(t[0],{},[...p(t[0].children),y()]);if(t.length===1&&t[0].type==="table"){const s=t[0];if(Array.isArray(s.children))return n(s,{},s.children.map(e=>f(e)?e.type==="tbody"&&Array.isArray(e.children)?n(e,{},[...p(e.children),y()]):n(e):e))}return[...p(t),y()]}});export{q as _};
import{d as n,v as o,at as p}from"../modules/vue-Dn3czbSS.js";import{C as s}from"../index-D2S1x1Oe.js";import{_ as r}from"./VClicks-BxpWTlPO.js";const l=n({props:{at:{type:[Number,String],default:"+1"},hide:{type:Boolean,default:!1},fade:{type:Boolean,default:!1},wrapText:{type:Function,default:e=>o("span",e)}},render(){return o(r,{every:s,at:this.at,hide:this.hide,fade:this.fade},{default:()=>{var e,a;return(a=(e=this.$slots).default)==null?void 0:a.call(e).map(t=>t.type===p?this.wrapText(t):t)}})}});export{l as _};
function __vite__mapDeps(indexes) {
if (!__vite__mapDeps.viteFileDeps) {
__vite__mapDeps.viteFileDeps = ["assets/slidev/DrawingControls-CI8ZW2y-.js","assets/modules/unplugin-icons-CXhi-ET8.js","assets/modules/vue-Dn3czbSS.js","assets/modules/shiki-CuMFyo6Z.js","assets/modules/shiki-BSchMNmt.css","assets/slidev/DrawingPreview-CEcTSZ6p.js","assets/index-D2S1x1Oe.js","assets/index-Dw67r9kT.css","assets/slidev/bottom-bs5w17fM.js","assets/slidev/context-CYh2-pv1.js","assets/bottom-DbIWt59F.css","assets/DrawingControls-C5T1oZL5.css","assets/slidev/DrawingLayer-C2Sr1bte.js"]
}
return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
}
import{t as D,a8 as Ot,a9 as Dt,y as R,aa as L,ab as W,U as Ft,D as me,ac as Vt,d as Y,ad as jt,C as st,$ as Bt,Y as Gt,b as g,e as A,f as le,h as ce,i as F,o as h,a6 as Ve,x as X,F as H,Z as ke,A as u,l as x,a0 as Ee,a5 as Wt,ae as Kt,c as C,g as b,a7 as zt,k as N,af as nt,M as Ie,r as Ht,ag as Ut,ah as Yt,a1 as ot,ai as it,j as he,aj as Qt,N as Xt,m as Jt,ak as qt,p as Zt,a as es}from"../modules/vue-Dn3czbSS.js";import{u as se,n as ts,t as Re,f as we,a as xe,s as ss,c as re,g as ns,b as U,o as ze,_ as rt,p as os,q as He,d as at,C as lt,j as Ue,m as be,v as Ye}from"../index-D2S1x1Oe.js";import{u as je,D as is}from"./DrawingPreview-CEcTSZ6p.js";import{b as G,t as Ne,m as Z,n as ct,o as ut,q as rs,r as as,u as ls,v as dt,k as Se,x as Ae,s as fe,p as cs,y as us,f as Qe,z as ae,w as Me,S as ht,g as ft,G as ds,a as hs}from"./bottom-bs5w17fM.js";import{e as fs,f as ps,g as vs,h as _s,i as gs,j as ms,k as ys,l as pt,m as ks,n as ws,o as xs,p as bs,q as Ss,r as Ms,s as $s,t as Cs,u as Es,v as Is}from"../modules/unplugin-icons-CXhi-ET8.js";import{u as Rs}from"./context-CYh2-pv1.js";import{t as Ns}from"../modules/shiki-CuMFyo6Z.js";function Bo(t){const{next:e,nextSlide:s,prev:n,prevSlide:o}=se(),{isDrawing:i}=je(),r=D(0),{direction:a,distanceX:l,distanceY:c}=Ot(t,{pointerTypes:["touch"],onSwipeStart(){i.value||(r.value=Dt())},onSwipeEnd(){if(!r.value||i.value)return;const d=Math.abs(l.value),f=Math.abs(c.value);d/window.innerWidth>.3||d>75?a.value==="left"?e():n():(f/window.innerHeight>.4||f>200)&&(a.value==="down"?o():s())}})}const _e=D(1),ge=R(()=>ts.value.length),O=D(0),Be=D(0);function As(){O.value>_e.value&&(O.value-=1)}function Ls(){O.value<ge.value&&(O.value+=1)}function Ps(){if(O.value>_e.value){let t=O.value-Be.value;t<_e.value&&(t=_e.value),O.value=t}}function Ts(){if(O.value<ge.value){let t=O.value+Be.value;t>ge.value&&(t=ge.value),O.value=t}}const Os=[];function Ds(){const{go:t,goFirst:e,goLast:s,next:n,nextSlide:o,prev:i,prevSlide:r}=se(),{drawingEnabled:a}=je(),{escape:l,space:c,shift:d,left:f,right:p,up:v,down:k,enter:_,d:M,g:S,o:I,"`":w}=ct,P={next:n,prev:i,nextSlide:o,prevSlide:r,go:t,goFirst:e,goLast:s,downloadPDF:ut,toggleDark:Re,toggleOverview:Ne,toggleDrawing:()=>a.value=!a.value,escapeOverview:()=>G.value=!1,showGotoDialog:()=>Z.value=!Z.value};let m=[{name:"next_space",key:L(c,W(d)),fn:n,autoRepeat:!0},{name:"prev_space",key:L(c,d),fn:i,autoRepeat:!0},{name:"next_right",key:L(p,W(d),W(G)),fn:n,autoRepeat:!0},{name:"prev_left",key:L(f,W(d),W(G)),fn:i,autoRepeat:!0},{name:"next_page_key",key:"pageDown",fn:n,autoRepeat:!0},{name:"prev_page_key",key:"pageUp",fn:i,autoRepeat:!0},{name:"next_down",key:L(k,W(G)),fn:o,autoRepeat:!0},{name:"prev_up",key:L(v,W(G)),fn:()=>r(!1),autoRepeat:!0},{name:"next_shift",key:L(p,d),fn:o,autoRepeat:!0},{name:"prev_shift",key:L(f,d),fn:()=>r(!1),autoRepeat:!0},{name:"toggle_dark",key:L(M,W(a)),fn:Re},{name:"toggle_overview",key:L(Ft(I,w),W(a)),fn:Ne},{name:"hide_overview",key:L(l,W(a)),fn:()=>G.value=!1},{name:"goto",key:L(S,W(a)),fn:()=>Z.value=!Z.value},{name:"next_overview",key:L(p,G),fn:Ls},{name:"prev_overview",key:L(f,G),fn:As},{name:"up_overview",key:L(v,G),fn:Ps},{name:"down_overview",key:L(k,G),fn:Ts},{name:"goto_from_overview",key:L(_,G),fn:()=>{t(O.value),G.value=!1}}];const T=new Set(m.map($=>$.name));for(const $ of Os){const j=$(P,m);m=m.concat(j)}if(m.filter($=>$.name&&T.has($.name)).length===0){const $=["========== WARNING ==========","defineShortcutsSetup did not return any of the base shortcuts.","See https://sli.dev/custom/config-shortcuts.html for migration.",'If it is intentional, return at least one shortcut with one of the base names (e.g. name:"goto").'].join(`
`);alert($),console.warn($)}return m}const vt=L(W(ls),W(as),rs);function Fs(t,e,s=!1){typeof t=="string"&&(t=ct[t]);const n=L(t,vt);let o=0,i;const r=()=>{if(clearTimeout(i),!n.value){o=0;return}s&&(i=setTimeout(r,Math.max(1e3-o*250,150)),o++),e()};return me(n,r,{flush:"sync"})}function Vs(t,e){return Vt(t,s=>{vt.value&&(s.repeat||e())})}function Go(){const t=Ds();new Map(t.map(s=>[s.key,s])).forEach(s=>{s.fn&&Fs(s.key,s.fn,s.autoRepeat)}),Vs("f",()=>dt.toggle())}const js=Y({__name:"SlideContainer",props:{width:{type:Number},meta:{default:()=>({})},scale:{type:[Number,String]},isMain:{type:Boolean,default:!1}},setup(t){const e=t,{clicksDirection:s,isPrintMode:n}=se(),o=D(),i=jt(o),r=R(()=>e.width?e.width:i.width.value),a=R(()=>e.width?e.width/we.value:i.height.value);e.width&&st(()=>{o.value&&(o.value.style.width=`${r.value}px`,o.value.style.height=`${a.value}px`)});const l=R(()=>r.value/a.value),c=R(()=>e.scale&&!n.value?e.scale:l.value<we.value?r.value/xe.value:a.value*we.value/xe.value),d=R(()=>({height:`${ss.value}px`,width:`${xe.value}px`,transform:`translate(-50%, -50%) scale(${c.value})`,"--slidev-slide-scale":c.value})),f=R(()=>({"select-none":!re.selectable,"slidev-nav-go-forward":s.value>0,"slidev-nav-go-backward":s.value<0}));return e.isMain&&Bt(R(()=>`
:root {
--slidev-slide-scale: ${c.value};
}
`)),Gt(ns,c),(p,v)=>(h(),g("div",{id:"slide-container",ref_key:"root",ref:o,class:F(["slidev-slides-container",f.value])},[A("div",{id:"slide-content",class:"slidev-slide-content",style:ce(d.value)},[le(p.$slots,"default")],4),le(p.$slots,"controls")],2))}}),Bs=U(js,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/SlideContainer.vue"]]),Gs={class:"select-list"},Ws={class:"title"},Ks={class:"items"},zs=["onClick"],Hs=Y({__name:"SelectList",props:{modelValue:{type:[Object,String,Number]},title:{type:String},items:{type:Array}},setup(t,{emit:e}){const o=Ve(t,"modelValue",e,{passive:!0});return(i,r)=>{const a=fs;return h(),g("div",Gs,[A("div",Ws,X(t.title),1),A("div",Ks,[(h(!0),g(H,null,ke(t.items,l=>(h(),g("div",{key:l.value,class:F(["item",{active:u(o)===l.value}]),onClick:()=>{var c;o.value=l.value,(c=l.onClick)==null||c.call(l)}},[x(a,{class:F(["text-green-500",{"opacity-0":u(o)!==l.value}])},null,8,["class"]),Ee(" "+X(l.display||l.value),1)],10,zs))),128))])])}}}),Us=U(Hs,[["__scopeId","data-v-3f89fa11"],["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/SelectList.vue"]]),Ys={class:"text-sm"},Qs=Y({__name:"Settings",setup(t){const e=[{display:"Fit",value:0},{display:"1:1",value:1}];return(s,n)=>(h(),g("div",Ys,[x(Us,{modelValue:u(Se),"onUpdate:modelValue":n[0]||(n[0]=o=>Wt(Se)?Se.value=o:null),title:"Scale",items:e},null,8,["modelValue"])]))}}),Xs=U(Qs,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/Settings.vue"]]),Js={key:0,class:"rounded-md bg-main shadow absolute bottom-10 left-0 z-20","dark:border":"~ main"},qs=Y({__name:"MenuButton",props:{modelValue:{default:!1},disabled:{default:!1}},setup(t,{emit:e}){const o=Ve(t,"modelValue",e,{passive:!0}),i=D();return Kt(i,()=>{o.value=!1}),(r,a)=>(h(),g("div",{ref_key:"el",ref:i,class:"flex relative"},[A("button",{class:F({disabled:t.disabled}),onClick:a[0]||(a[0]=l=>o.value=!u(o))},[le(r.$slots,"button",{class:F({disabled:t.disabled})})],2),(h(),C(zt,null,[u(o)?(h(),g("div",Js,[le(r.$slots,"menu")])):b("v-if",!0)],1024))],512))}}),Zs=U(qs,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/MenuButton.vue"]]),en={},tn={class:"w-1px opacity-10 bg-current m-1 lg:m-2"};function sn(t,e){return h(),g("div",tn)}const pe=U(en,[["render",sn],["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/VerticalDivider.vue"]]),nn={class:"sr-only"},on=Y({__name:"IconButton",props:{title:{type:String,required:!0},icon:{type:String,required:!1},as:{type:String,required:!1}},setup(t){return(e,s)=>(h(),C(nt(e.as||"button"),{class:"slidev-icon-btn",title:e.title},{default:N(()=>[A("span",nn,X(e.title),1),le(e.$slots,"default",{},()=>[A("div",{class:F(e.icon)},null,2)])]),_:3},8,["title"]))}}),z=U(on,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/IconButton.vue"]]),rn={render(){return[]}},an={class:"h-40px flex",p:"l-1 t-0.5 r-2",text:"sm leading-2"},ln={class:"my-auto"},cn={class:"opacity-50"},un=Y({__name:"NavControls",props:{persist:{default:!1}},setup(t){const e=t,{currentRoute:s,currentSlideNo:n,hasNext:o,hasPrev:i,isEmbedded:r,isPresenter:a,isPresenterAvailable:l,next:c,prev:d,total:f}=se(),{brush:p,drawingEnabled:v}=je(),k=Ae.smaller("md"),{isFullscreen:_,toggle:M}=dt,S=R(()=>s.value.query.password),I=R(()=>S.value?`?password=${S.value}`:""),w=R(()=>`${ze(n.value,!0)}${I.value}`),P=R(()=>`${ze(n.value,!1)}${I.value}`),m=D();function T(){m.value&&ae.value&&m.value.contains(ae.value)&&ae.value.blur()}const E=R(()=>e.persist?"text-$slidev-controls-foreground bg-transparent":"rounded-md bg-main shadow dark:border dark:border-main"),$=Ie(),j=Ie();return rt(()=>import("./DrawingControls-CI8ZW2y-.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11])).then(ie=>j.value=ie.default),(ie,V)=>{const q=ps,We=vs,B=_s,ne=gs,ue=bs,Mt=ms,$t=ys,Ct=pt,Et=ks,It=ws,Rt=Ss,Ke=Ht("RouterLink"),Nt=Ms,At=$s,Lt=Cs,Pt=Es,Tt=xs;return h(),g("nav",{ref_key:"root",ref:m,class:"flex flex-col"},[A("div",{class:F(["flex flex-wrap-reverse text-xl gap-0.5 p-1 lg:gap-1 lg:p-2",E.value]),onMouseleave:T},[u(r)?b("v-if",!0):(h(),C(z,{key:0,title:u(_)?"Close fullscreen":"Enter fullscreen",onClick:u(M)},{default:N(()=>[u(_)?(h(),C(q,{key:0})):(h(),C(We,{key:1}))]),_:1},8,["title","onClick"])),x(z,{class:F({disabled:!u(i)}),title:"Go to previous slide",onClick:u(d)},{default:N(()=>[x(B)]),_:1},8,["class","onClick"]),x(z,{class:F({disabled:!u(o)}),title:"Go to next slide",onClick:u(c)},{default:N(()=>[x(ne)]),_:1},8,["class","onClick"]),u(r)?b("v-if",!0):(h(),C(z,{key:1,title:"Show slide overview",onClick:V[0]||(V[0]=de=>u(Ne)())},{default:N(()=>[x(ue)]),_:1})),u(os)?b("v-if",!0):(h(),C(z,{key:2,title:u(He)?"Switch to light mode theme":"Switch to dark mode theme",onClick:V[1]||(V[1]=de=>u(Re)())},{default:N(()=>[u(He)?(h(),C(Mt,{key:0})):(h(),C($t,{key:1}))]),_:1},8,["title"])),x(pe),u(r)?b("v-if",!0):(h(),g(H,{key:3},[!u(a)&&!u(k)&&$.value?(h(),g(H,{key:0},[x(u($)),x(pe)],64)):b("v-if",!0),u(a)?(h(),C(z,{key:1,title:u(fe)?"Hide presenter cursor":"Show presenter cursor",onClick:V[2]||(V[2]=de=>fe.value=!u(fe))},{default:N(()=>[u(fe)?(h(),C(Ct,{key:0})):(h(),C(Et,{key:1}))]),_:1},8,["title"])):b("v-if",!0)],64)),(!u(re).drawings.presenterOnly||u(a))&&!u(r)?(h(),g(H,{key:4},[x(z,{class:"relative",title:u(v)?"Hide drawing toolbar":"Show drawing toolbar",onClick:V[3]||(V[3]=de=>v.value=!u(v))},{default:N(()=>[x(It),u(v)?(h(),g("div",{key:0,class:"absolute left-1 right-1 bottom-0 h-0.7 rounded-full",style:ce({background:u(p).color})},null,4)):b("v-if",!0)]),_:1},8,["title"]),x(pe)],64)):b("v-if",!0),u(r)?b("v-if",!0):(h(),g(H,{key:5},[u(a)?(h(),C(Ke,{key:0,to:P.value,class:"slidev-icon-btn",title:"Play Mode"},{default:N(()=>[x(Rt)]),_:1},8,["to"])):b("v-if",!0),u(l)?(h(),C(Ke,{key:1,to:w.value,class:"slidev-icon-btn",title:"Presenter Mode"},{default:N(()=>[x(Nt)]),_:1},8,["to"])):b("v-if",!0),b("v-if",!0),u(a)?(h(),C(z,{key:3,title:"Toggle Presenter Layout",class:"aspect-ratio-initial",onClick:u(us)},{default:N(()=>[x(At),Ee(" "+X(u(cs)),1)]),_:1},8,["onClick"])):b("v-if",!0)],64)),(h(),g(H,{key:6},[u(re).download?(h(),C(z,{key:0,title:"Download as PDF",onClick:u(ut)},{default:N(()=>[x(Lt)]),_:1},8,["onClick"])):b("v-if",!0)],64)),!u(a)&&u(re).info&&!u(r)?(h(),C(z,{key:7,title:"Show info",onClick:V[5]||(V[5]=de=>Qe.value=!u(Qe))},{default:N(()=>[x(Pt)]),_:1})):b("v-if",!0),!u(a)&&!u(r)?(h(),C(Zs,{key:8},{button:N(()=>[x(z,{title:"Adjust settings"},{default:N(()=>[x(Tt)]),_:1})]),menu:N(()=>[x(Xs)]),_:1})):b("v-if",!0),u(r)?b("v-if",!0):(h(),C(pe,{key:9})),A("div",an,[A("div",ln,[Ee(X(u(n))+" ",1),A("span",cn,"/ "+X(u(f)),1)])]),x(u(rn))],34)],512)}}}),Wo=U(un,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/NavControls.vue"]]),dn=["onClick"],hn={class:"text-green font-bold"},fn={class:"opacity-50"},pn={key:1,class:"opacity-50"},vn={key:0,class:"fixed top-4 right-4 text-gray-400 flex flex-col items-center gap-2"},$e=4*16*2,Xe=2*16,_n=Y({__name:"QuickOverview",props:{modelValue:{type:Boolean,required:!0}},emits:["update:modelValue"],setup(t,{emit:e}){const o=Ve(t,"modelValue",e),{currentSlideNo:i,go:r,slides:a}=se();function l(){o.value=!1}function c(M){r(M),l()}function d(M){return M===O.value}const f=Ae.smaller("xs"),p=Ae.smaller("sm"),v=R(()=>f.value?Me.width.value-$e:p.value?(Me.width.value-$e-Xe)/2:300),k=R(()=>Math.floor((Me.width.value-$e)/(v.value+Xe))),_=D("");return Ut("keypress",M=>{if(!G.value){_.value="";return}if(M.key==="Enter"){M.preventDefault(),_.value?(c(+_.value),_.value=""):c(O.value);return}const S=Number.parseInt(M.key.replace(/[^0-9]/g,""));if(Number.isNaN(S)){_.value="";return}if(!_.value&&S===0)return;if(_.value+=String(S),+_.value>=a.value.length){_.value="";return}const I=a.value.findIndex(w=>`/${w.no}`===_.value);I!==-1&&(O.value=I+1),+_.value*10>a.value.length&&(c(+_.value),_.value="")}),st(()=>{O.value=i.value,Be.value=k.value}),(M,S)=>{const I=Is;return h(),g(H,null,[x(Yt,{"enter-active-class":"duration-150 ease-out","enter-from-class":"opacity-0 scale-102 !backdrop-blur-0px","leave-active-class":"duration-200 ease-in","leave-to-class":"opacity-0 scale-102 !backdrop-blur-0px",persisted:""},{default:N(()=>[ot(A("div",{class:"bg-main !bg-opacity-75 p-16 py-20 overflow-y-auto backdrop-blur-5px fixed left-0 right-0 top-0 h-[calc(var(--vh,1vh)*100)]",onClick:S[0]||(S[0]=w=>l())},[A("div",{class:"grid gap-y-4 gap-x-8 w-full",style:ce(`grid-template-columns: repeat(auto-fit,minmax(${v.value}px,1fr))`)},[(h(!0),g(H,null,ke(u(a),(w,P)=>(h(),g("div",{key:w.no,class:"relative"},[A("div",{class:F(["inline-block border rounded overflow-hidden bg-main hover:border-primary transition",d(P+1)||u(O)===P+1?"border-primary":"border-main"]),onClick:m=>c(w.no)},[(h(),C(Bs,{key:w.no,width:v.value,class:"pointer-events-none"},{default:N(()=>[w!=null&&w.component?(h(),C(ht,{key:0,is:w.component,"clicks-context":u(at)(w,u(lt)),class:F(u(ft)(w)),route:w,"render-context":"overview"},null,8,["is","clicks-context","class","route"])):b("v-if",!0),x(is,{page:w.no},null,8,["page"])]),_:2},1032,["width"]))],10,dn),A("div",{class:"absolute top-0",style:ce(`left: ${v.value+5}px`)},[_.value&&String(P+1).startsWith(_.value)?(h(),g(H,{key:0},[A("span",hn,X(_.value),1),A("span",fn,X(String(P+1).slice(_.value.length)),1)],64)):(h(),g("span",pn,X(P+1),1))],4)]))),128))],4)],512),[[it,u(o)]])]),_:1}),u(o)?(h(),g("div",vn,[x(z,{title:"Close",class:"text-2xl",onClick:l},{default:N(()=>[x(I)]),_:1}),b("v-if",!0)])):b("v-if",!0)],64)}}}),Ko=U(_n,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/QuickOverview.vue"]]);function J(t){return Array.isArray?Array.isArray(t):mt(t)==="[object Array]"}const gn=1/0;function mn(t){if(typeof t=="string")return t;let e=t+"";return e=="0"&&1/t==-gn?"-0":e}function yn(t){return t==null?"":mn(t)}function Q(t){return typeof t=="string"}function _t(t){return typeof t=="number"}function kn(t){return t===!0||t===!1||wn(t)&&mt(t)=="[object Boolean]"}function gt(t){return typeof t=="object"}function wn(t){return gt(t)&&t!==null}function K(t){return t!=null}function Ce(t){return!t.trim().length}function mt(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const xn="Incorrect 'index' type",bn=t=>`Invalid value for key ${t}`,Sn=t=>`Pattern length exceeds max of ${t}.`,Mn=t=>`Missing ${t} property in key`,$n=t=>`Property 'weight' in key '${t}' must be a positive integer`,Je=Object.prototype.hasOwnProperty;class Cn{constructor(e){this._keys=[],this._keyMap={};let s=0;e.forEach(n=>{let o=yt(n);this._keys.push(o),this._keyMap[o.id]=o,s+=o.weight}),this._keys.forEach(n=>{n.weight/=s})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function yt(t){let e=null,s=null,n=null,o=1,i=null;if(Q(t)||J(t))n=t,e=qe(t),s=Le(t);else{if(!Je.call(t,"name"))throw new Error(Mn("name"));const r=t.name;if(n=r,Je.call(t,"weight")&&(o=t.weight,o<=0))throw new Error($n(r));e=qe(r),s=Le(r),i=t.getFn}return{path:e,id:s,weight:o,src:n,getFn:i}}function qe(t){return J(t)?t:t.split(".")}function Le(t){return J(t)?t.join("."):t}function En(t,e){let s=[],n=!1;const o=(i,r,a)=>{if(K(i))if(!r[a])s.push(i);else{let l=r[a];const c=i[l];if(!K(c))return;if(a===r.length-1&&(Q(c)||_t(c)||kn(c)))s.push(yn(c));else if(J(c)){n=!0;for(let d=0,f=c.length;d<f;d+=1)o(c[d],r,a+1)}else r.length&&o(c,r,a+1)}};return o(t,Q(e)?e.split("."):e,0),n?s:s[0]}const In={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},Rn={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(t,e)=>t.score===e.score?t.idx<e.idx?-1:1:t.score<e.score?-1:1},Nn={location:0,threshold:.6,distance:100},An={useExtendedSearch:!1,getFn:En,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var y={...Rn,...In,...Nn,...An};const Ln=/[^ ]+/g;function Pn(t=1,e=3){const s=new Map,n=Math.pow(10,e);return{get(o){const i=o.match(Ln).length;if(s.has(i))return s.get(i);const r=1/Math.pow(i,.5*t),a=parseFloat(Math.round(r*n)/n);return s.set(i,a),a},clear(){s.clear()}}}class Ge{constructor({getFn:e=y.getFn,fieldNormWeight:s=y.fieldNormWeight}={}){this.norm=Pn(s,3),this.getFn=e,this.isCreated=!1,this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((s,n)=>{this._keysMap[s.id]=n})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,Q(this.docs[0])?this.docs.forEach((e,s)=>{this._addString(e,s)}):this.docs.forEach((e,s)=>{this._addObject(e,s)}),this.norm.clear())}add(e){const s=this.size();Q(e)?this._addString(e,s):this._addObject(e,s)}removeAt(e){this.records.splice(e,1);for(let s=e,n=this.size();s<n;s+=1)this.records[s].i-=1}getValueForItemAtKeyId(e,s){return e[this._keysMap[s]]}size(){return this.records.length}_addString(e,s){if(!K(e)||Ce(e))return;let n={v:e,i:s,n:this.norm.get(e)};this.records.push(n)}_addObject(e,s){let n={i:s,$:{}};this.keys.forEach((o,i)=>{let r=o.getFn?o.getFn(e):this.getFn(e,o.path);if(K(r)){if(J(r)){let a=[];const l=[{nestedArrIndex:-1,value:r}];for(;l.length;){const{nestedArrIndex:c,value:d}=l.pop();if(K(d))if(Q(d)&&!Ce(d)){let f={v:d,i:c,n:this.norm.get(d)};a.push(f)}else J(d)&&d.forEach((f,p)=>{l.push({nestedArrIndex:p,value:f})})}n.$[i]=a}else if(Q(r)&&!Ce(r)){let a={v:r,n:this.norm.get(r)};n.$[i]=a}}}),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}}function kt(t,e,{getFn:s=y.getFn,fieldNormWeight:n=y.fieldNormWeight}={}){const o=new Ge({getFn:s,fieldNormWeight:n});return o.setKeys(t.map(yt)),o.setSources(e),o.create(),o}function Tn(t,{getFn:e=y.getFn,fieldNormWeight:s=y.fieldNormWeight}={}){const{keys:n,records:o}=t,i=new Ge({getFn:e,fieldNormWeight:s});return i.setKeys(n),i.setIndexRecords(o),i}function ve(t,{errors:e=0,currentLocation:s=0,expectedLocation:n=0,distance:o=y.distance,ignoreLocation:i=y.ignoreLocation}={}){const r=e/t.length;if(i)return r;const a=Math.abs(n-s);return o?r+a/o:a?1:r}function On(t=[],e=y.minMatchCharLength){let s=[],n=-1,o=-1,i=0;for(let r=t.length;i<r;i+=1){let a=t[i];a&&n===-1?n=i:!a&&n!==-1&&(o=i-1,o-n+1>=e&&s.push([n,o]),n=-1)}return t[i-1]&&i-n>=e&&s.push([n,i-1]),s}const te=32;function Dn(t,e,s,{location:n=y.location,distance:o=y.distance,threshold:i=y.threshold,findAllMatches:r=y.findAllMatches,minMatchCharLength:a=y.minMatchCharLength,includeMatches:l=y.includeMatches,ignoreLocation:c=y.ignoreLocation}={}){if(e.length>te)throw new Error(Sn(te));const d=e.length,f=t.length,p=Math.max(0,Math.min(n,f));let v=i,k=p;const _=a>1||l,M=_?Array(f):[];let S;for(;(S=t.indexOf(e,k))>-1;){let E=ve(e,{currentLocation:S,expectedLocation:p,distance:o,ignoreLocation:c});if(v=Math.min(E,v),k=S+d,_){let $=0;for(;$<d;)M[S+$]=1,$+=1}}k=-1;let I=[],w=1,P=d+f;const m=1<<d-1;for(let E=0;E<d;E+=1){let $=0,j=P;for(;$<j;)ve(e,{errors:E,currentLocation:p+j,expectedLocation:p,distance:o,ignoreLocation:c})<=v?$=j:P=j,j=Math.floor((P-$)/2+$);P=j;let ie=Math.max(1,p-j+1),V=r?f:Math.min(p+j,f)+d,q=Array(V+2);q[V+1]=(1<<E)-1;for(let B=V;B>=ie;B-=1){let ne=B-1,ue=s[t.charAt(ne)];if(_&&(M[ne]=+!!ue),q[B]=(q[B+1]<<1|1)&ue,E&&(q[B]|=(I[B+1]|I[B])<<1|1|I[B+1]),q[B]&m&&(w=ve(e,{errors:E,currentLocation:ne,expectedLocation:p,distance:o,ignoreLocation:c}),w<=v)){if(v=w,k=ne,k<=p)break;ie=Math.max(1,2*p-k)}}if(ve(e,{errors:E+1,currentLocation:p,expectedLocation:p,distance:o,ignoreLocation:c})>v)break;I=q}const T={isMatch:k>=0,score:Math.max(.001,w)};if(_){const E=On(M,a);E.length?l&&(T.indices=E):T.isMatch=!1}return T}function Fn(t){let e={};for(let s=0,n=t.length;s<n;s+=1){const o=t.charAt(s);e[o]=(e[o]||0)|1<<n-s-1}return e}class wt{constructor(e,{location:s=y.location,threshold:n=y.threshold,distance:o=y.distance,includeMatches:i=y.includeMatches,findAllMatches:r=y.findAllMatches,minMatchCharLength:a=y.minMatchCharLength,isCaseSensitive:l=y.isCaseSensitive,ignoreLocation:c=y.ignoreLocation}={}){if(this.options={location:s,threshold:n,distance:o,includeMatches:i,findAllMatches:r,minMatchCharLength:a,isCaseSensitive:l,ignoreLocation:c},this.pattern=l?e:e.toLowerCase(),this.chunks=[],!this.pattern.length)return;const d=(p,v)=>{this.chunks.push({pattern:p,alphabet:Fn(p),startIndex:v})},f=this.pattern.length;if(f>te){let p=0;const v=f%te,k=f-v;for(;p<k;)d(this.pattern.substr(p,te),p),p+=te;if(v){const _=f-te;d(this.pattern.substr(_),_)}}else d(this.pattern,0)}searchIn(e){const{isCaseSensitive:s,includeMatches:n}=this.options;if(s||(e=e.toLowerCase()),this.pattern===e){let k={isMatch:!0,score:0};return n&&(k.indices=[[0,e.length-1]]),k}const{location:o,distance:i,threshold:r,findAllMatches:a,minMatchCharLength:l,ignoreLocation:c}=this.options;let d=[],f=0,p=!1;this.chunks.forEach(({pattern:k,alphabet:_,startIndex:M})=>{const{isMatch:S,score:I,indices:w}=Dn(e,k,_,{location:o+M,distance:i,threshold:r,findAllMatches:a,minMatchCharLength:l,includeMatches:n,ignoreLocation:c});S&&(p=!0),f+=I,S&&w&&(d=[...d,...w])});let v={isMatch:p,score:p?f/this.chunks.length:1};return p&&n&&(v.indices=d),v}}class ee{constructor(e){this.pattern=e}static isMultiMatch(e){return Ze(e,this.multiRegex)}static isSingleMatch(e){return Ze(e,this.singleRegex)}search(){}}function Ze(t,e){const s=t.match(e);return s?s[1]:null}class Vn extends ee{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){const s=e===this.pattern;return{isMatch:s,score:s?0:1,indices:[0,this.pattern.length-1]}}}class jn extends ee{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){const n=e.indexOf(this.pattern)===-1;return{isMatch:n,score:n?0:1,indices:[0,e.length-1]}}}class Bn extends ee{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){const s=e.startsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,this.pattern.length-1]}}}class Gn extends ee{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){const s=!e.startsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,e.length-1]}}}class Wn extends ee{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){const s=e.endsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[e.length-this.pattern.length,e.length-1]}}}class Kn extends ee{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){const s=!e.endsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,e.length-1]}}}class xt extends ee{constructor(e,{location:s=y.location,threshold:n=y.threshold,distance:o=y.distance,includeMatches:i=y.includeMatches,findAllMatches:r=y.findAllMatches,minMatchCharLength:a=y.minMatchCharLength,isCaseSensitive:l=y.isCaseSensitive,ignoreLocation:c=y.ignoreLocation}={}){super(e),this._bitapSearch=new wt(e,{location:s,threshold:n,distance:o,includeMatches:i,findAllMatches:r,minMatchCharLength:a,isCaseSensitive:l,ignoreLocation:c})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class bt extends ee{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let s=0,n;const o=[],i=this.pattern.length;for(;(n=e.indexOf(this.pattern,s))>-1;)s=n+i,o.push([n,s-1]);const r=!!o.length;return{isMatch:r,score:r?0:1,indices:o}}}const Pe=[Vn,bt,Bn,Gn,Kn,Wn,jn,xt],et=Pe.length,zn=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,Hn="|";function Un(t,e={}){return t.split(Hn).map(s=>{let n=s.trim().split(zn).filter(i=>i&&!!i.trim()),o=[];for(let i=0,r=n.length;i<r;i+=1){const a=n[i];let l=!1,c=-1;for(;!l&&++c<et;){const d=Pe[c];let f=d.isMultiMatch(a);f&&(o.push(new d(f,e)),l=!0)}if(!l)for(c=-1;++c<et;){const d=Pe[c];let f=d.isSingleMatch(a);if(f){o.push(new d(f,e));break}}}return o})}const Yn=new Set([xt.type,bt.type]);class Qn{constructor(e,{isCaseSensitive:s=y.isCaseSensitive,includeMatches:n=y.includeMatches,minMatchCharLength:o=y.minMatchCharLength,ignoreLocation:i=y.ignoreLocation,findAllMatches:r=y.findAllMatches,location:a=y.location,threshold:l=y.threshold,distance:c=y.distance}={}){this.query=null,this.options={isCaseSensitive:s,includeMatches:n,minMatchCharLength:o,findAllMatches:r,ignoreLocation:i,location:a,threshold:l,distance:c},this.pattern=s?e:e.toLowerCase(),this.query=Un(this.pattern,this.options)}static condition(e,s){return s.useExtendedSearch}searchIn(e){const s=this.query;if(!s)return{isMatch:!1,score:1};const{includeMatches:n,isCaseSensitive:o}=this.options;e=o?e:e.toLowerCase();let i=0,r=[],a=0;for(let l=0,c=s.length;l<c;l+=1){const d=s[l];r.length=0,i=0;for(let f=0,p=d.length;f<p;f+=1){const v=d[f],{isMatch:k,indices:_,score:M}=v.search(e);if(k){if(i+=1,a+=M,n){const S=v.constructor.type;Yn.has(S)?r=[...r,..._]:r.push(_)}}else{a=0,i=0,r.length=0;break}}if(i){let f={isMatch:!0,score:a/i};return n&&(f.indices=r),f}}return{isMatch:!1,score:1}}}const Te=[];function Xn(...t){Te.push(...t)}function Oe(t,e){for(let s=0,n=Te.length;s<n;s+=1){let o=Te[s];if(o.condition(t,e))return new o(t,e)}return new wt(t,e)}const ye={AND:"$and",OR:"$or"},De={PATH:"$path",PATTERN:"$val"},Fe=t=>!!(t[ye.AND]||t[ye.OR]),Jn=t=>!!t[De.PATH],qn=t=>!J(t)&>(t)&&!Fe(t),tt=t=>({[ye.AND]:Object.keys(t).map(e=>({[e]:t[e]}))});function St(t,e,{auto:s=!0}={}){const n=o=>{let i=Object.keys(o);const r=Jn(o);if(!r&&i.length>1&&!Fe(o))return n(tt(o));if(qn(o)){const l=r?o[De.PATH]:i[0],c=r?o[De.PATTERN]:o[l];if(!Q(c))throw new Error(bn(l));const d={keyId:Le(l),pattern:c};return s&&(d.searcher=Oe(c,e)),d}let a={children:[],operator:i[0]};return i.forEach(l=>{const c=o[l];J(c)&&c.forEach(d=>{a.children.push(n(d))})}),a};return Fe(t)||(t=tt(t)),n(t)}function Zn(t,{ignoreFieldNorm:e=y.ignoreFieldNorm}){t.forEach(s=>{let n=1;s.matches.forEach(({key:o,norm:i,score:r})=>{const a=o?o.weight:null;n*=Math.pow(r===0&&a?Number.EPSILON:r,(a||1)*(e?1:i))}),s.score=n})}function eo(t,e){const s=t.matches;e.matches=[],K(s)&&s.forEach(n=>{if(!K(n.indices)||!n.indices.length)return;const{indices:o,value:i}=n;let r={indices:o,value:i};n.key&&(r.key=n.key.src),n.idx>-1&&(r.refIndex=n.idx),e.matches.push(r)})}function to(t,e){e.score=t.score}function so(t,e,{includeMatches:s=y.includeMatches,includeScore:n=y.includeScore}={}){const o=[];return s&&o.push(eo),n&&o.push(to),t.map(i=>{const{idx:r}=i,a={item:e[r],refIndex:r};return o.length&&o.forEach(l=>{l(i,a)}),a})}class oe{constructor(e,s={},n){this.options={...y,...s},this.options.useExtendedSearch,this._keyStore=new Cn(this.options.keys),this.setCollection(e,n)}setCollection(e,s){if(this._docs=e,s&&!(s instanceof Ge))throw new Error(xn);this._myIndex=s||kt(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){K(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){const s=[];for(let n=0,o=this._docs.length;n<o;n+=1){const i=this._docs[n];e(i,n)&&(this.removeAt(n),n-=1,o-=1,s.push(i))}return s}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:s=-1}={}){const{includeMatches:n,includeScore:o,shouldSort:i,sortFn:r,ignoreFieldNorm:a}=this.options;let l=Q(e)?Q(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return Zn(l,{ignoreFieldNorm:a}),i&&l.sort(r),_t(s)&&s>-1&&(l=l.slice(0,s)),so(l,this._docs,{includeMatches:n,includeScore:o})}_searchStringList(e){const s=Oe(e,this.options),{records:n}=this._myIndex,o=[];return n.forEach(({v:i,i:r,n:a})=>{if(!K(i))return;const{isMatch:l,score:c,indices:d}=s.searchIn(i);l&&o.push({item:i,idx:r,matches:[{score:c,value:i,norm:a,indices:d}]})}),o}_searchLogical(e){const s=St(e,this.options),n=(a,l,c)=>{if(!a.children){const{keyId:f,searcher:p}=a,v=this._findMatches({key:this._keyStore.get(f),value:this._myIndex.getValueForItemAtKeyId(l,f),searcher:p});return v&&v.length?[{idx:c,item:l,matches:v}]:[]}const d=[];for(let f=0,p=a.children.length;f<p;f+=1){const v=a.children[f],k=n(v,l,c);if(k.length)d.push(...k);else if(a.operator===ye.AND)return[]}return d},o=this._myIndex.records,i={},r=[];return o.forEach(({$:a,i:l})=>{if(K(a)){let c=n(s,a,l);c.length&&(i[l]||(i[l]={idx:l,item:a,matches:[]},r.push(i[l])),c.forEach(({matches:d})=>{i[l].matches.push(...d)}))}}),r}_searchObjectList(e){const s=Oe(e,this.options),{keys:n,records:o}=this._myIndex,i=[];return o.forEach(({$:r,i:a})=>{if(!K(r))return;let l=[];n.forEach((c,d)=>{l.push(...this._findMatches({key:c,value:r[d],searcher:s}))}),l.length&&i.push({idx:a,item:r,matches:l})}),i}_findMatches({key:e,value:s,searcher:n}){if(!K(s))return[];let o=[];if(J(s))s.forEach(({v:i,i:r,n:a})=>{if(!K(i))return;const{isMatch:l,score:c,indices:d}=n.searchIn(i);l&&o.push({score:c,key:e,value:i,idx:r,norm:a,indices:d})});else{const{v:i,n:r}=s,{isMatch:a,score:l,indices:c}=n.searchIn(i);a&&o.push({score:l,key:e,value:i,norm:r,indices:c})}return o}}oe.version="7.0.0";oe.createIndex=kt;oe.parseIndex=Tn;oe.config=y;oe.parseQuery=St;Xn(Qn);const no={key:0},oo={key:1},io={key:2},ro={key:3},ao={key:4},lo={key:5},co={key:6},uo={key:7},ho={key:8},fo={key:9},po={key:10},vo={key:11},_o={key:12},go={key:13},mo={key:14},yo={key:15},ko=Y({__name:"title-renderer",props:{no:{type:[Number,String],required:!1}},setup(t){const e=t,{$page:s}=Rs(),n=R(()=>+(e.no??s.value));return(o,i)=>(h(),g("div",null,[n.value===1?(h(),g("p",no,"Bisonex")):n.value===2?(h(),g("p",oo,"Plan")):n.value===3?(h(),g("p",io,"Contexte")):n.value===4?(h(),g("p",ro,"Contexte")):n.value===5?(h(),g("p",ao,"Pipeline")):n.value===6?(h(),g("p",lo,"Reproductibilité")):n.value===7?(h(),g("p",co,"Reproductibilité")):n.value===8?(h(),g("p",uo,"Portabilité")):n.value===9?(h(),g("p",ho,"Performances")):n.value===10?(h(),g("p",fo,"Validation")):n.value===11?(h(),g("p",po,"Séquencage et pipeline")):n.value===12?(h(),g("p",vo,"Pipeline")):n.value===13?(h(),g("p",_o,"In silico")):n.value===14?(h(),g("p",go,"In silico")):n.value===15?(h(),g("p",mo,"Non-infériorité")):n.value===16?(h(),g("p",yo,"Nouveaux diagnostics")):b("v-if",!0)]))}}),wo=U(ko,[["__file","/@slidev/title-renderer.md"]]),xo={class:"bg-main transform",shadow:"~",p:"x-4 y-2",border:"~ transparent rounded dark:main"},bo=["value","disabled"],So=["border","onClick"],Mo={"w-4":"","text-right":"",op50:"","text-sm":""},$o=Y({__name:"Goto",setup(t){const e=D(),s=D(),n=D(),o=D(),i=D(""),r=D(0),{go:a,slides:l}=se();function c(m){return m!=null}const d=R(()=>new oe(l.value.map(m=>{var T;return(T=m.meta)==null?void 0:T.slide}).filter(c),{keys:["no","title"],threshold:.3,shouldSort:!0,minMatchCharLength:1})),f=R(()=>i.value.startsWith("/")?i.value.substring(1):i.value),p=R(()=>d.value.search(f.value).map(m=>m.item)),v=R(()=>!!p.value.length);function k(){if(v.value){const m=p.value.at(r.value||0);m&&a(m.no)}_()}function _(){i.value="",Z.value=!1}function M(m){m.preventDefault(),r.value++,r.value>=p.value.length&&(r.value=0),I()}function S(m){m.preventDefault(),r.value--,r.value<=-2&&(r.value=p.value.length-1),I()}function I(){var T;const m=(T=o.value)==null?void 0:T[r.value];m&&n.value&&(m.offsetTop+m.offsetHeight>n.value.offsetHeight+n.value.scrollTop?n.value.scrollTo({behavior:"smooth",top:m.offsetTop+m.offsetHeight-n.value.offsetHeight+1}):m.offsetTop<n.value.scrollTop&&n.value.scrollTo({behavior:"smooth",top:m.offsetTop}))}function w(m){r.value=0,i.value=m.target.value}function P(m){a(m),_()}return me(Z,async m=>{var T;m?(i.value="",r.value=0,setTimeout(()=>{var E;return(E=s.value)==null?void 0:E.focus()},0)):(T=s.value)==null||T.blur()}),me(ae,()=>{var m;(m=e.value)!=null&&m.contains(ae.value)||_()}),(m,T)=>(h(),g("div",{id:"slidev-goto-dialog",ref_key:"container",ref:e,class:F(["fixed right-5 transition-all",u(Z)?"top-5":"-top-20"]),"w-90":"","max-w-90":"","min-w-90":""},[A("div",xo,[A("input",{id:"slidev-goto-input",ref_key:"input",ref:s,value:i.value,type:"text",disabled:!u(Z),class:F(["outline-none bg-transparent",{"text-red-400":!v.value&&i.value}]),placeholder:"Goto...",onKeydown:[he(k,["enter"]),he(_,["escape"]),he(M,["down"]),he(S,["up"])],onInput:w},null,42,bo)]),p.value.length>0?(h(),g("ul",{key:0,ref_key:"list",ref:n,class:"autocomplete-list",shadow:"~",border:"~ transparent rounded dark:main"},[(h(!0),g(H,null,ke(p.value,(E,$)=>(h(),g("li",{ref_for:!0,ref_key:"items",ref:o,key:E.id,role:"button",tabindex:"0",p:"x-4 y-2","cursor-pointer":"",hover:"op100",flex:"~ gap-2","w-90":"","items-center":"",border:$===0?"":"t main",class:F(r.value===$?"bg-active op100":"op80"),onClick:Qt(j=>P(E.no),["stop","prevent"])},[A("div",Mo,X(E.no),1),x(u(wo),{no:E.no},null,8,["no"])],10,So))),128))],512)):b("v-if",!0)],2))}}),zo=U($o,[["__scopeId","data-v-f5ee02a7"],["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/Goto.vue"]]);function Co(){const t=Xt(),e=D(!1);let s,n;const o=typeof document<"u"&&"startViewTransition"in document;return t.beforeResolve((i,r)=>{var _,M,S,I;const a=(_=Ue(r.params.no))==null?void 0:_.meta,l=(M=Ue(i.params.no))==null?void 0:M.meta,c=(S=a==null?void 0:a.slide)==null?void 0:S.no,d=(I=l==null?void 0:l.slide)==null?void 0:I.no;if((c!=null&&d!=null&&((c<d?a==null?void 0:a.transition:l==null?void 0:l.transition)??re.transition))!=="view-transition"){e.value=!1;return}if(!o){e.value=!1,console.warn("View transition is not supported in your browser, fallback to normal transition.");return}e.value=!0;const p=new Promise((w,P)=>{s=w,n=P});let v;const k=new Promise(w=>v=w);return setTimeout(()=>{document.startViewTransition(()=>(v(),p))},50),k}),o&&t.afterEach(()=>{s==null||s(),n==null||n()}),e}const Eo={key:0,class:"absolute top-0 left-0 right-0 bottom-0 pointer-events-none text-xl"},Io=Y({__name:"PresenterMouse",setup(t){return(e,s)=>{const n=pt;return u(be).cursor?(h(),g("div",Eo,[x(n,{class:"absolute stroke-white dark:stroke-black",style:ce({left:`${u(be).cursor.x}%`,top:`${u(be).cursor.y}%`,strokeWidth:16})},null,8,["style"])])):b("v-if",!0)}}}),Ro=U(Io,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/PresenterMouse.vue"]]),No=t=>(Zt("data-v-afb4231e"),t=t(),es(),t),Ao=No(()=>A("div",{id:"twoslash-container"},null,-1)),Lo=Y({__name:"SlidesShow",props:{renderContext:{type:String,required:!0}},setup(t){const{currentSlideRoute:e,currentTransition:s,getPrimaryClicks:n,isPresenter:o,nextRoute:i,slides:r,isPrintMode:a,isPrintWithClicks:l}=se();me(e,()=>{var v,k;(v=e.value)!=null&&v.meta&&e.value.meta.preload!==!1&&(e.value.meta.__preloaded=!0),(k=i.value)!=null&&k.meta&&i.value.meta.preload!==!1&&(i.value.meta.__preloaded=!0)},{immediate:!0});const c=Co(),d=Ie();rt(()=>import("./DrawingLayer-C2Sr1bte.js"),__vite__mapDeps([12,2,9,6,3,4,7,5,8,10])).then(v=>d.value=v.default);const f=R(()=>r.value.filter(v=>{var k;return((k=v.meta)==null?void 0:k.__preloaded)||v===e.value}));function p(){Ye.value=!0,Ns()}return(v,k)=>(h(),g(H,null,[b(" Global Bottom "),x(u(ds)),b(" Slides "),(h(),C(nt(u(c)?"div":qt),Jt(u(Ye)?{}:u(s),{id:"slideshow",tag:"div",onAfterLeave:p}),{default:N(()=>[(h(!0),g(H,null,ke(f.value,_=>ot((h(),g("div",{key:_.no},[x(ht,{is:_.component,"clicks-context":u(a)&&!u(l)?u(at)(_,u(lt)):u(n)(_),class:F([u(ft)(_),"overflow-hidden"]),route:_,"render-context":v.renderContext},null,8,["is","clicks-context","class","route","render-context"])])),[[it,_===u(e)]])),128))]),_:1},16)),Ao,b(" Global Top "),x(u(hs)),d.value?(h(),C(u(d),{key:0})):b("v-if",!0),u(o)?b("v-if",!0):(h(),C(Ro,{key:1}))],64))}}),Ho=U(Lo,[["__scopeId","data-v-afb4231e"],["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/SlidesShow.vue"]]);export{zo as G,z as I,Wo as N,Ko as Q,Bs as S,pe as V,Ho as a,Go as r,Bo as u};
import{d as i,o as r,c as o,k as l,a0 as p,x as t,A as s,v as c}from"../modules/vue-Dn3czbSS.js";import{a as _,s as d,b as f}from"../index-D2S1x1Oe.js";const u=i({__name:"PrintStyle",setup(m){function a(n,{slots:e}){if(e.default)return c("style",e.default())}return(n,e)=>(r(),o(a,null,{default:l(()=>[p(" @page { size: "+t(s(_))+"px "+t(s(d))+"px; margin: 0px; } ",1)]),_:1}))}}),y=f(u,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/PrintStyle.vue"]]);export{y as P};
import{d as N,y as q,t as M,D as H,n as B,_ as T,b as m,i as p,e as L,x as b,o as d}from"../modules/vue-Dn3czbSS.js";import{C as w,b as $}from"../index-D2S1x1Oe.js";const I=["innerHTML"],P=["textContent"],K=["textContent"],k="slidev-note-fade",r="slidev-note-click-mark",R=N({__name:"NoteDisplay",props:{class:{type:String,required:!1},noteHtml:{type:String,required:!1},note:{type:String,required:!1},placeholder:{type:String,required:!1},clicksContext:{type:null,required:!1},autoScroll:{type:Boolean,required:!1}},emits:["markerDblclick","markerClick"],setup(A,{emit:D}){const l=A,v=D,h=q(()=>{var o,n;return((o=l.clicksContext)==null?void 0:o.current)!=null&&((n=l.noteHtml)==null?void 0:n.includes("slidev-note-click-mark"))}),a=M(null);function y(){var S;if(!a.value||!h.value)return;const o=Array.from(a.value.querySelectorAll(`.${r}`)),n=+(((S=l.clicksContext)==null?void 0:S.current)??w),c=n<0||n>=w,g=new Set;function C(e){!e||e===a.value||(g.add(e),e.parentElement&&C(e.parentElement))}const _=new Map;for(const e of o){const t=e.parentElement,s=Number(e.dataset.clicks);_.set(s,e),C(t),Array.from(t.childNodes).forEach(f=>{if(f.nodeType===3){const x=document.createElement("span");x.textContent=f.textContent,t.insertBefore(x,f),f.remove()}})}const E=Array.from(a.value.querySelectorAll("*"));let i=0;const u=new Map;for(const e of E)u.has(i)||u.set(i,[]),u.get(i).push(e),e.classList.contains(r)&&(i=Number(e.dataset.clicks)||i+1);for(const[e,t]of u)c?t.forEach(s=>s.classList.remove(k)):t.forEach(s=>s.classList.toggle(k,g.has(s)?!1:e!==n));for(const[e,t]of _)t.classList.remove(k),t.classList.toggle(`${r}-past`,c?!1:e<n),t.classList.toggle(`${r}-active`,c?!1:e===n),t.classList.toggle(`${r}-next`,c?!1:e===n+1),t.classList.toggle(`${r}-future`,c?!1:e>n+1),t.ondblclick=s=>{v("markerDblclick",s,e),!s.defaultPrevented&&(l.clicksContext.current=e,s.stopPropagation(),s.stopImmediatePropagation())},t.onclick=s=>{v("markerClick",s,e)},l.autoScroll&&e===n&&t.scrollIntoView({block:"center",behavior:"smooth"})}return H(()=>{var o;return[l.noteHtml,(o=l.clicksContext)==null?void 0:o.current]},()=>{B(()=>{y()})},{immediate:!0}),T(()=>{y()}),(o,n)=>o.noteHtml?(d(),m("div",{key:0,ref_key:"noteDisplay",ref:a,class:p(["prose overflow-auto outline-none slidev-note",[l.class,h.value?"slidev-note-with-clicks":""]]),innerHTML:o.noteHtml},null,10,I)):o.note?(d(),m("div",{key:1,class:p(["prose overflow-auto outline-none slidev-note",l.class])},[L("p",{textContent:b(o.note)},null,8,P)],2)):(d(),m("div",{key:2,class:p(["prose overflow-auto outline-none opacity-50 italic select-none slidev-note",l.class])},[L("p",{textContent:b(l.placeholder||"No notes.")},null,8,K)],2))}}),F=$(R,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/NoteDisplay.vue"]]);export{F as N};
import{T as Nt,Q as st,az as kt,t as z,y as rt,J as It,aA as At,n as Ct,D as Ft,d as Tt,A as ct,o as Kt,b as $t,g as Ot}from"../modules/vue-Dn3czbSS.js";import{u as Rt,c as dt,$ as nt,a0 as ft,a1 as zt,b as Ut}from"../index-D2S1x1Oe.js";import{u as Vt}from"./bottom-bs5w17fM.js";var jt=Object.defineProperty,pt=Object.getOwnPropertySymbols,Ht=Object.prototype.hasOwnProperty,qt=Object.prototype.propertyIsEnumerable,gt=(t,e,s)=>e in t?jt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s,it=(t,e)=>{for(var s in e||(e={}))Ht.call(e,s)&>(t,s,e[s]);if(pt)for(var s of pt(e))qt.call(e,s)&>(t,s,e[s]);return t},Gt=()=>({emit(t,...e){for(let s=0,r=this.events[t]||[],i=r.length;s<i;s++)r[s](...e)},events:{},on(t,e){var s;return((s=this.events)[t]||(s[t]=[])).push(e),()=>{var r;this.events[t]=(r=this.events[t])==null?void 0:r.filter(i=>e!==i)}}});function mt(t,e,s,r=i=>i){return t*r(.5-e*(.5-s))}function Bt(t){return[-t[0],-t[1]]}function M(t,e){return[t[0]+e[0],t[1]+e[1]]}function b(t,e){return[t[0]-e[0],t[1]-e[1]]}function E(t,e){return[t[0]*e,t[1]*e]}function Xt(t,e){return[t[0]/e,t[1]/e]}function U(t){return[t[1],-t[0]]}function vt(t,e){return t[0]*e[0]+t[1]*e[1]}function Yt(t,e){return t[0]===e[0]&&t[1]===e[1]}function Zt(t){return Math.hypot(t[0],t[1])}function Qt(t){return t[0]*t[0]+t[1]*t[1]}function yt(t,e){return Qt(b(t,e))}function Pt(t){return Xt(t,Zt(t))}function Jt(t,e){return Math.hypot(t[1]-e[1],t[0]-e[0])}function V(t,e,s){let r=Math.sin(s),i=Math.cos(s),n=t[0]-e[0],a=t[1]-e[1],o=n*i-a*r,l=n*r+a*i;return[o+e[0],l+e[1]]}function ot(t,e,s){return M(t,E(b(e,t),s))}function xt(t,e,s){return M(t,E(e,s))}var{min:K,PI:Wt}=Math,_t=.275,j=Wt+1e-4;function te(t,e={}){let{size:s=16,smoothing:r=.5,thinning:i=.5,simulatePressure:n=!0,easing:a=u=>u,start:o={},end:l={},last:g=!1}=e,{cap:v=!0,easing:y=u=>u*(2-u)}=o,{cap:P=!0,easing:f=u=>--u*u*u+1}=l;if(t.length===0||s<=0)return[];let d=t[t.length-1].runningLength,c=o.taper===!1?0:o.taper===!0?Math.max(s,d):o.taper,S=l.taper===!1?0:l.taper===!0?Math.max(s,d):l.taper,T=Math.pow(s*r,2),D=[],h=[],x=t.slice(0,10).reduce((u,w)=>{let p=w.pressure;if(n){let m=K(1,w.distance/s),W=K(1,1-m);p=K(1,u+(W-u)*(m*_t))}return(u+p)/2},t[0].pressure),_=mt(s,i,t[t.length-1].pressure,a),Y,Z=t[0].vector,O=t[0].point,H=O,A=O,C=H,Q=!1;for(let u=0;u<t.length;u++){let{pressure:w}=t[u],{point:p,vector:m,distance:W,runningLength:R}=t[u];if(u<t.length-1&&d-R<3)continue;if(i){if(n){let I=K(1,W/s),et=K(1,1-I);w=K(1,x+(et-x)*(I*_t))}_=mt(s,i,w,a)}else _=s/2;Y===void 0&&(Y=_);let Mt=R<c?y(R/c):1,Lt=d-R<S?f((d-R)/S):1;_=Math.max(.01,_*Math.min(Mt,Lt));let ht=(u<t.length-1?t[u+1]:t[u]).vector,tt=u<t.length-1?vt(m,ht):1,Dt=vt(m,Z)<0&&!Q,lt=tt!==null&&tt<0;if(Dt||lt){let I=E(U(Z),_);for(let et=1/13,G=0;G<=1;G+=et)A=V(b(p,I),p,j*G),D.push(A),C=V(M(p,I),p,j*-G),h.push(C);O=A,H=C,lt&&(Q=!0);continue}if(Q=!1,u===t.length-1){let I=E(U(m),_);D.push(b(p,I)),h.push(M(p,I));continue}let ut=E(U(ot(ht,m,tt)),_);A=b(p,ut),(u<=1||yt(O,A)>T)&&(D.push(A),O=A),C=M(p,ut),(u<=1||yt(H,C)>T)&&(h.push(C),H=C),x=w,Z=m}let N=t[0].point.slice(0,2),k=t.length>1?t[t.length-1].point.slice(0,2):M(t[0].point,[1,1]),J=[],q=[];if(t.length===1){if(!(c||S)||g){let u=xt(N,Pt(U(b(N,k))),-(Y||_)),w=[];for(let p=1/13,m=p;m<=1;m+=p)w.push(V(u,N,j*2*m));return w}}else{if(!(c||S&&t.length===1))if(v)for(let w=1/13,p=w;p<=1;p+=w){let m=V(h[0],N,j*p);J.push(m)}else{let w=b(D[0],h[0]),p=E(w,.5),m=E(w,.51);J.push(b(N,p),b(N,m),M(N,m),M(N,p))}let u=U(Bt(t[t.length-1].vector));if(S||c&&t.length===1)q.push(k);else if(P){let w=xt(k,u,_);for(let p=1/29,m=p;m<1;m+=p)q.push(V(w,k,j*3*m))}else q.push(M(k,E(u,_)),M(k,E(u,_*.99)),b(k,E(u,_*.99)),b(k,E(u,_)))}return D.concat(q,h.reverse(),J)}function ee(t,e={}){var s;let{streamline:r=.5,size:i=16,last:n=!1}=e;if(t.length===0)return[];let a=.15+(1-r)*.85,o=Array.isArray(t[0])?t:t.map(({x:f,y:d,pressure:c=.5})=>[f,d,c]);if(o.length===2){let f=o[1];o=o.slice(0,-1);for(let d=1;d<5;d++)o.push(ot(o[0],f,d/4))}o.length===1&&(o=[...o,[...M(o[0],[1,1]),...o[0].slice(2)]]);let l=[{point:[o[0][0],o[0][1]],pressure:o[0][2]>=0?o[0][2]:.25,vector:[1,1],distance:0,runningLength:0}],g=!1,v=0,y=l[0],P=o.length-1;for(let f=1;f<o.length;f++){let d=n&&f===P?o[f].slice(0,2):ot(y.point,o[f],a);if(Yt(y.point,d))continue;let c=Jt(d,y.point);if(v+=c,f<P&&!g){if(v<i)continue;g=!0}y={point:d,pressure:o[f][2]>=0?o[f][2]:.5,vector:Pt(b(y.point,d)),distance:c,runningLength:v},l.push(y)}return l[0].vector=((s=l[1])==null?void 0:s.vector)||[0,0],l}function se(t,e={}){return te(ee(t,e),e)}function B(t,e){return t-e}function re(t){return t<0?-1:1}function X(t){return[Math.abs(t),re(t)]}function bt(){const t=()=>((1+Math.random())*65536|0).toString(16).substring(1);return`${t()+t()}-${t()}-${t()}-${t()}-${t()}${t()}${t()}`}var ne=2,L=ne,$=class{constructor(t){this.drauu=t,this.event=void 0,this.point=void 0,this.start=void 0,this.el=null}onSelected(t){}onUnselected(){}onStart(t){}onMove(t){return!1}onEnd(t){}get brush(){return this.drauu.brush}get shiftPressed(){return this.drauu.shiftPressed}get altPressed(){return this.drauu.altPressed}get svgElement(){return this.drauu.el}getMousePosition(t){var e,s,r;const i=this.drauu.el,n=(e=this.drauu.options.coordinateScale)!=null?e:1,a=(s=this.drauu.options.offset)!=null?s:{x:0,y:0};if(this.drauu.options.coordinateTransform===!1){const o=this.drauu.el.getBoundingClientRect();return{x:(t.pageX-o.left+a.x)*n,y:(t.pageY-o.top+a.y)*n,pressure:t.pressure}}else{const o=this.drauu.svgPoint;o.x=t.clientX+a.x,o.y=t.clientY+a.y;const l=o.matrixTransform((r=i.getScreenCTM())==null?void 0:r.inverse());return{x:l.x*n,y:l.y*n,pressure:t.pressure}}}createElement(t,e){var s;const r=document.createElementNS("http://www.w3.org/2000/svg",t),i=e?it(it({},this.brush),e):this.brush;return r.setAttribute("fill",(s=i.fill)!=null?s:"transparent"),r.setAttribute("stroke",i.color),r.setAttribute("stroke-width",i.size.toString()),r.setAttribute("stroke-linecap","round"),i.dasharray&&r.setAttribute("stroke-dasharray",i.dasharray),r}attr(t,e){this.el.setAttribute(t,typeof e=="string"?e:e.toFixed(L))}_setEvent(t){this.event=t,this.point=this.getMousePosition(t)}_eventDown(t){return this._setEvent(t),this.start=this.point,this.onStart(this.point)}_eventMove(t){return this._setEvent(t),this.onMove(this.point)}_eventUp(t){return this._setEvent(t),this.onEnd(this.point)}},ie=class St extends ${constructor(){super(...arguments),this.points=[]}onStart(e){return this.el=document.createElementNS("http://www.w3.org/2000/svg","path"),this.points=[e],this.attr("fill",this.brush.color),this.attr("d",this.getSvgData(this.points)),this.el}onMove(e){return this.el||this.onStart(e),this.points[this.points.length-1]!==e&&this.points.push(e),this.attr("d",this.getSvgData(this.points)),!0}onEnd(){const e=this.el;return this.el=null,!!e}getSvgData(e){return St.getSvgData(e,this.brush)}static getSvgData(e,s){const r=se(e,it({size:s.size,thinning:.9,simulatePressure:!1,start:{taper:5},end:{taper:5}},s.stylusOptions));if(!r.length)return"";const i=r.reduce((n,[a,o],l,g)=>{const[v,y]=g[(l+1)%g.length];return n.push(a,o,(a+v)/2,(o+y)/2),n},["M",...r[0],"Q"]);return i.push("Z"),i.map(n=>typeof n=="number"?n.toFixed(2):n).join(" ")}},oe=class extends ${onStart(t){return this.el=this.createElement("ellipse"),this.attr("cx",t.x),this.attr("cy",t.y),this.el}onMove(t){if(!this.el||!this.start)return!1;let[e,s]=X(t.x-this.start.x),[r,i]=X(t.y-this.start.y);if(this.shiftPressed){const n=Math.min(e,r);e=n,r=n}if(this.altPressed)this.attr("cx",this.start.x),this.attr("cy",this.start.y),this.attr("rx",e),this.attr("ry",r);else{const[n,a]=[this.start.x,this.start.x+e*s].sort(B),[o,l]=[this.start.y,this.start.y+r*i].sort(B);this.attr("cx",(n+a)/2),this.attr("cy",(o+l)/2),this.attr("rx",(a-n)/2),this.attr("ry",(l-o)/2)}return!0}onEnd(){const t=this.el;return this.el=null,!(!t||!t.getTotalLength())}};function Et(t,e){const s=document.createElementNS("http://www.w3.org/2000/svg","defs"),r=document.createElementNS("http://www.w3.org/2000/svg","marker"),i=document.createElementNS("http://www.w3.org/2000/svg","path");return i.setAttribute("fill",e),r.setAttribute("id",t),r.setAttribute("viewBox","0 -5 10 10"),r.setAttribute("refX","5"),r.setAttribute("refY","0"),r.setAttribute("markerWidth","4"),r.setAttribute("markerHeight","4"),r.setAttribute("orient","auto"),i.setAttribute("d","M0,-5L10,0L0,5"),r.appendChild(i),s.appendChild(r),s}var ae=class extends ${onStart(t){if(this.el=this.createElement("line",{fill:"transparent"}),this.attr("x1",t.x),this.attr("y1",t.y),this.attr("x2",t.x),this.attr("y2",t.y),this.brush.arrowEnd){const e=bt(),s=document.createElementNS("http://www.w3.org/2000/svg","g");return s.append(Et(e,this.brush.color)),s.append(this.el),this.attr("marker-end",`url(#${e})`),s}return this.el}onMove(t){if(!this.el)return!1;let{x:e,y:s}=t;if(this.shiftPressed){const r=t.x-this.start.x,i=t.y-this.start.y;if(i!==0){let n=r/i;n=Math.round(n),Math.abs(n)<=1?(e=this.start.x+i*n,s=this.start.y+i):(e=this.start.x+r,s=this.start.y)}}return this.altPressed?(this.attr("x1",this.start.x*2-e),this.attr("y1",this.start.y*2-s),this.attr("x2",e),this.attr("y2",s)):(this.attr("x1",this.start.x),this.attr("y1",this.start.y),this.attr("x2",e),this.attr("y2",s)),!0}onEnd(){const t=this.el;return this.el=null,!(!t||t.getTotalLength()<5)}},he=class extends ${onStart(t){return this.el=this.createElement("rect"),this.brush.cornerRadius&&(this.attr("rx",this.brush.cornerRadius),this.attr("ry",this.brush.cornerRadius)),this.attr("x",t.x),this.attr("y",t.y),this.el}onMove(t){if(!this.el||!this.start)return!1;let[e,s]=X(t.x-this.start.x),[r,i]=X(t.y-this.start.y);if(this.shiftPressed){const n=Math.min(e,r);e=n,r=n}if(this.altPressed)this.attr("x",this.start.x-e),this.attr("y",this.start.y-r),this.attr("width",e*2),this.attr("height",r*2);else{const[n,a]=[this.start.x,this.start.x+e*s].sort(B),[o,l]=[this.start.y,this.start.y+r*i].sort(B);this.attr("x",n),this.attr("y",o),this.attr("width",a-n),this.attr("height",l-o)}return!0}onEnd(){const t=this.el;return this.el=null,!(!t||!t.getTotalLength())}};function le(t,e){const s=t.x-e.x,r=t.y-e.y;return s*s+r*r}function ue(t,e,s){let r=e.x,i=e.y,n=s.x-r,a=s.y-i;if(n!==0||a!==0){const o=((t.x-r)*n+(t.y-i)*a)/(n*n+a*a);o>1?(r=s.x,i=s.y):o>0&&(r+=n*o,i+=a*o)}return n=t.x-r,a=t.y-i,n*n+a*a}function ce(t,e){let s=t[0];const r=[s];let i;for(let n=1,a=t.length;n<a;n++)i=t[n],le(i,s)>e&&(r.push(i),s=i);return s!==i&&i&&r.push(i),r}function at(t,e,s,r,i){let n=r,a=0;for(let o=e+1;o<s;o++){const l=ue(t[o],t[e],t[s]);l>n&&(a=o,n=l)}n>r&&(a-e>1&&at(t,e,a,r,i),i.push(t[a]),s-a>1&&at(t,a,s,r,i))}function de(t,e){const s=t.length-1,r=[t[0]];return at(t,0,s,e,r),r.push(t[s]),r}function wt(t,e,s=!1){if(t.length<=2)return t;const r=e!==void 0?e*e:1;return t=s?t:ce(t,r),t=de(t,r),t}var fe=class F extends ${constructor(){super(...arguments),this.points=[],this.count=0}onStart(e){if(this.el=this.createElement("path",{fill:"transparent"}),this.points=[e],this.brush.arrowEnd){this.arrowId=bt();const s=Et(this.arrowId,this.brush.color);this.el.appendChild(s)}return this.el}onMove(e){return this.el||this.onStart(e),this.points[this.points.length-1]!==e&&(this.points.push(e),this.count+=1),this.count>5&&(this.points=wt(this.points,1,!0),this.count=0),this.attr("d",F.toSvgData(this.points)),!0}onEnd(){const e=this.el;return this.el=null,!(!e||(e.setAttribute("d",F.toSvgData(wt(this.points,1,!0))),!e.getTotalLength()))}static line(e,s){const r=s.x-e.x,i=s.y-e.y;return{length:Math.sqrt(r**2+i**2),angle:Math.atan2(i,r)}}static controlPoint(e,s,r,i){const n=s||e,a=r||e,o=.2,l=F.line(n,a),g=l.angle+(i?Math.PI:0),v=l.length*o,y=e.x+Math.cos(g)*v,P=e.y+Math.sin(g)*v;return{x:y,y:P}}static bezierCommand(e,s,r){const i=F.controlPoint(r[s-1],r[s-2],e),n=F.controlPoint(e,r[s-1],r[s+1],!0);return`C ${i.x.toFixed(L)},${i.y.toFixed(L)} ${n.x.toFixed(L)},${n.y.toFixed(L)} ${e.x.toFixed(L)},${e.y.toFixed(L)}`}static toSvgData(e){return e.reduce((s,r,i,n)=>i===0?`M ${r.x.toFixed(L)},${r.y.toFixed(L)}`:`${s} ${F.bezierCommand(r,i,n)}`,"")}},pe=class extends ${constructor(){super(...arguments),this.pathSubFactor=20,this.pathFragments=[],this._erased=[]}onSelected(t){const e=(s,r)=>{if(s&&s.length)for(let i=0;i<s.length;i++){const n=s[i];if(n.getTotalLength){const a=n.getTotalLength();for(let o=0;o<this.pathSubFactor;o++){const l=n.getPointAtLength(a*o/this.pathSubFactor),g=n.getPointAtLength(a*(o+1)/this.pathSubFactor);this.pathFragments.push({x1:l.x,x2:g.x,y1:l.y,y2:g.y,segment:o,element:r||n})}}else n.children&&e(n.children,n)}};t&&e(t.children)}onUnselected(){this.pathFragments=[]}onStart(t){this.svgPointPrevious=this.svgElement.createSVGPoint(),this.svgPointPrevious.x=t.x,this.svgPointPrevious.y=t.y}onMove(t){this.svgPointCurrent=this.svgElement.createSVGPoint(),this.svgPointCurrent.x=t.x,this.svgPointCurrent.y=t.y;const e=this.checkAndEraseElement();return this.svgPointPrevious=this.svgPointCurrent,e}onEnd(){this.svgPointPrevious=void 0,this.svgPointCurrent=void 0;const t=this._erased;return this._erased=[],{undo:()=>t.forEach(e=>this.drauu._restoreNode(e)),redo:()=>t.forEach(e=>this.drauu._removeNode(e))}}checkAndEraseElement(){if(this.pathFragments.length)for(let t=0;t<this.pathFragments.length;t++){const e=this.pathFragments[t],s={x1:this.svgPointPrevious.x,x2:this.svgPointCurrent.x,y1:this.svgPointPrevious.y,y2:this.svgPointCurrent.y};this.lineLineIntersect(e,s)&&(this.drauu._removeNode(e.element),this._erased.push(e.element))}return this._erased.length&&(this.pathFragments=this.pathFragments.filter(t=>!this._erased.includes(t.element))),this._erased.length>0}lineLineIntersect(t,e){const s=t.x1,r=t.x2,i=e.x1,n=e.x2,a=t.y1,o=t.y2,l=e.y1,g=e.y2,v=(s-r)*(l-g)-(a-o)*(i-n),y=(s*o-a*r)*(i-n)-(s-r)*(i*g-l*n),P=(s*o-a*r)*(l-g)-(a-o)*(i*g-l*n),f=(d,c,S)=>d>=c&&d<=S?!0:d>=S&&d<=c;if(v===0)return!1;{const d={x:y/v,y:P/v};return f(d.x,s,r)&&f(d.y,a,o)&&f(d.x,i,n)&&f(d.y,l,g)}}};function ge(t){return{draw:new fe(t),stylus:new ie(t),line:new ae(t),rectangle:new he(t),ellipse:new oe(t),eraseLine:new pe(t)}}var me=class{constructor(t={}){this.options=t,this.el=null,this.svgPoint=null,this.eventEl=null,this.shiftPressed=!1,this.altPressed=!1,this.drawing=!1,this._emitter=Gt(),this._originalPointerId=null,this._models=ge(this),this._opStack=[],this._opIndex=0,this._disposables=[],this._elements=[],this.options.brush||(this.options.brush={color:"black",size:3,mode:"stylus"}),t.el&&this.mount(t.el,t.eventTarget,t.window)}get model(){return this._models[this.mode]}get mounted(){return!!this.el}get mode(){return this.options.brush.mode||"stylus"}set mode(t){this._models[this.mode].onUnselected(),this.options.brush.mode=t,this.model.onSelected(this.el)}get brush(){return this.options.brush}set brush(t){this.options.brush=t}resolveSelector(t){return typeof t=="string"?document.querySelector(t):t||null}mount(t,e,s=window){if(this.el)throw new Error("[drauu] already mounted, unmount previous target first");if(this.el=this.resolveSelector(t),!this.el)throw new Error("[drauu] target element not found");if(this.el.tagName.toLocaleLowerCase()!=="svg")throw new Error("[drauu] can only mount to a SVG element");if(!this.el.createSVGPoint)throw new Error("[drauu] SVG element must be create by document.createElementNS('http://www.w3.org/2000/svg', 'svg')");this.svgPoint=this.el.createSVGPoint();const r=this.resolveSelector(e)||this.el,i=this.eventStart.bind(this),n=this.eventMove.bind(this),a=this.eventEnd.bind(this),o=this.eventKeyboard.bind(this);r.addEventListener("pointerdown",i,{passive:!1}),s.addEventListener("pointermove",n,{passive:!1}),s.addEventListener("pointerup",a,{passive:!1}),s.addEventListener("pointercancel",a,{passive:!1}),s.addEventListener("keydown",o,!1),s.addEventListener("keyup",o,!1),this._disposables.push(()=>{r.removeEventListener("pointerdown",i),s.removeEventListener("pointermove",n),s.removeEventListener("pointerup",a),s.removeEventListener("pointercancel",a),s.removeEventListener("keydown",o,!1),s.removeEventListener("keyup",o,!1)}),this._emitter.emit("mounted")}unmount(){this._disposables.forEach(t=>t()),this._disposables.length=0,this._elements.length=0,this.el=null,this._emitter.emit("unmounted")}on(t,e){return this._emitter.on(t,e)}undo(){return!this.canUndo()||this.drawing?!1:(this._opStack[--this._opIndex].undo(),this._emitter.emit("changed"),!0)}redo(){return!this.canRedo()||this.drawing?!1:(this._opStack[this._opIndex++].redo(),this._emitter.emit("changed"),!0)}canRedo(){return this._opIndex<this._opStack.length}canUndo(){return this._opIndex>0}eventMove(t){!this.acceptsInput(t)||!this.drawing||this.model._eventMove(t)&&(t.stopPropagation(),t.preventDefault(),this._emitter.emit("changed"))}eventStart(t){this.acceptsInput(t)&&(t.stopPropagation(),t.preventDefault(),this._currentNode&&this.cancel(),this.drawing=!0,this._originalPointerId=t.pointerId,this._emitter.emit("start"),this._currentNode=this.model._eventDown(t),this._currentNode&&this.mode!=="eraseLine"&&this.el.appendChild(this._currentNode),this._emitter.emit("changed"))}eventEnd(t){if(!this.acceptsInput(t)||!this.drawing)return;const e=this.model._eventUp(t);if(!e)this.cancel();else if(e===!0){const s=this._currentNode;this._appendNode(s),this.commit({undo:()=>this._removeNode(s),redo:()=>this._restoreNode(s)})}else this.commit(e);this.drawing=!1,this._emitter.emit("end"),this._emitter.emit("changed"),this._originalPointerId=null}acceptsInput(t){return(!this.options.acceptsInputTypes||this.options.acceptsInputTypes.includes(t.pointerType))&&!(this._originalPointerId&&this._originalPointerId!==t.pointerId)}eventKeyboard(t){this.shiftPressed===t.shiftKey&&this.altPressed===t.altKey||(this.shiftPressed=t.shiftKey,this.altPressed=t.altKey,this.model.point&&this.model.onMove(this.model.point)&&this._emitter.emit("changed"))}commit(t){this._opStack.length=this._opIndex,this._opStack.push(t),this._opIndex++;const e=this._currentNode;this._currentNode=void 0,this._emitter.emit("committed",e)}clear(){this._opStack.length=0,this._opIndex=0,this.cancel(),this.el.innerHTML="",this._emitter.emit("changed")}cancel(){this._currentNode&&(this.el.removeChild(this._currentNode),this._currentNode=void 0,this._emitter.emit("canceled"))}dump(){return this.el.innerHTML}load(t){this.clear(),this.el.innerHTML=t}_appendNode(t){const e=this._elements.at(-1);e?e.after(t):this.el.append(t);const s=this._elements.push(t)-1;t.dataset.drauu_index=s.toString()}_removeNode(t){t.remove(),this._elements[+t.dataset.drauu_index]=null}_restoreNode(t){const e=+t.dataset.drauu_index;this._elements[e]=t;for(let s=e-1;s>=0;s--){const r=this._elements[s];if(r){r.after(t);return}}this.el.prepend(t)}};function ve(t){return new me(t)}const ye=Nt(()=>{const{currentSlideNo:t,isPresenter:e}=Rt(),s=["#ff595e","#ffca3a","#8ac926","#1982c4","#6a4c93","#ffffff","#000000"],r=st("slidev-drawing-enabled",!1),i=st("slidev-drawing-pinned",!1),n=kt(st("slidev-drawing-brush",{color:s[0],size:4,mode:"stylus"})),a=z(!1),o=z(!1),l=z(!1),g=z(!1),v=z("stylus"),y=rt(()=>dt.drawings.syncAll||e.value);let P=!1;const f=rt({get(){return v.value},set(h){v.value=h,h==="arrow"?(c.mode="line",n.arrowEnd=!0):(c.mode=h,n.arrowEnd=!1)}}),d=It({brush:n,acceptsInputTypes:rt(()=>r.value&&(!dt.drawings.presenterOnly||e.value)?void 0:["pen"]),coordinateTransform:!1}),c=At(ve(d));function S(){c.clear(),y.value&&ft(t.value,"")}function T(){var h;l.value=c.canRedo(),o.value=c.canUndo(),g.value=!!((h=c.el)!=null&&h.children.length)}function D(h){P=!0;const x=nt[h||t.value];x!=null?c.load(x):c.clear(),T(),P=!1}return c.on("changed",()=>{if(T(),!P){const h=c.dump(),x=t.value;(nt[x]||"")!==h&&y.value&&ft(x,c.dump())}}),zt(h=>{P=!0,h[t.value]!=null&&c.load(h[t.value]||""),P=!1,T()}),Ct(()=>{Ft(t,()=>{c.mounted&&D()},{immediate:!0})}),c.on("start",()=>a.value=!0),c.on("end",()=>a.value=!1),window.addEventListener("keydown",h=>{if(!r.value||Vt.value)return;const x=!h.ctrlKey&&!h.altKey&&!h.shiftKey&&!h.metaKey;let _=!0;h.code==="KeyZ"&&(h.ctrlKey||h.metaKey)?h.shiftKey?c.redo():c.undo():h.code==="Escape"?r.value=!1:h.code==="KeyL"&&x?f.value="line":h.code==="KeyA"&&x?f.value="arrow":h.code==="KeyS"&&x?f.value="stylus":h.code==="KeyR"&&x?f.value="rectangle":h.code==="KeyE"&&x?f.value="ellipse":h.code==="KeyC"&&x?S():h.code.startsWith("Digit")&&x&&+h.code[5]<=s.length?n.color=s[+h.code[5]-1]:_=!1,_&&(h.preventDefault(),h.stopPropagation())},!1),{brush:n,brushColors:s,canClear:g,canRedo:l,canUndo:o,clear:S,drauu:c,drauuOptions:d,drawingEnabled:r,drawingMode:f,drawingPinned:i,drawingState:nt,isDrawing:a,loadCanvas:D}}),xe=["innerHTML"],_e=Tt({__name:"DrawingPreview",props:{page:{type:Number,required:!0}},setup(t){const{drawingState:e}=ye();return(s,r)=>ct(e)[s.page]?(Kt(),$t("svg",{key:0,class:"w-full h-full absolute top-0 pointer-events-none",innerHTML:ct(e)[s.page]},null,8,xe)):Ot("v-if",!0)}}),we=Ut(_e,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/DrawingPreview.vue"]]),Ee=Object.freeze(Object.defineProperty({__proto__:null,default:we},Symbol.toStringTag,{value:"Module"}));export{we as D,Ee as a,ye as u};
import{d as l,t as i,_ as u,D as m,E as c,o as p,b as f,i as d,A as s}from"../modules/vue-Dn3czbSS.js";import{u as _}from"./context-CYh2-pv1.js";import{u as v}from"./DrawingPreview-CEcTSZ6p.js";import{b as g}from"../index-D2S1x1Oe.js";import"./bottom-bs5w17fM.js";import"../modules/shiki-CuMFyo6Z.js";const w=l({__name:"DrawingLayer",setup(h){const{drauu:e,drawingEnabled:o,loadCanvas:t}=v(),r=_().$scale,n=i();return u(()=>{e.mount(n.value,n.value.parentElement),m(r,a=>e.options.coordinateScale=1/a,{immediate:!0}),t()}),c(()=>{e.unmount()}),(a,x)=>(p(),f("svg",{ref_key:"svg",ref:n,class:d(["w-full h-full absolute top-0",{"pointer-events-none":!s(o),"touch-none":s(o)}])},null,2))}}),B=g(w,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/DrawingLayer.vue"]]);export{B as default};
import{n as T,w as Y,x as Z,y as H,z as J,A as W,B as X,C as ee,D as ne,E as te,F as se,G as oe}from"../modules/unplugin-icons-CXhi-ET8.js";import{d as B,t as $,Q as le,aB as ae,b as L,f as ie,h as z,A as e,o as g,c as x,k as o,i as l,l as n,e as r,x as re,a1 as m,a2 as ue,Z as ce,F as de,ai as b,g as _e}from"../modules/vue-Dn3czbSS.js";import{L as pe}from"../modules/shiki-CuMFyo6Z.js";import{u as me}from"./DrawingPreview-CEcTSZ6p.js";import{I as a,V as D}from"./SlidesShow-B3J6ytWL.js";import{b as M}from"../index-D2S1x1Oe.js";import"./bottom-bs5w17fM.js";import"./context-CYh2-pv1.js";const ge=B({__name:"Draggable",props:{storageKey:{type:String,required:!1},initial:{type:Object,required:!1}},setup(h){const u=h,w=$(null),f=u.initial??{x:0,y:0},k=u.storageKey?le(u.storageKey,f):$(f),{style:y}=ae(w,{initialValue:k});return(v,d)=>(g(),L("div",{ref_key:"el",ref:w,class:"fixed",style:z(e(y))},[ie(v.$slots,"default")],4))}}),we=M(ge,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/Draggable.vue"]]),fe=r("svg",{width:"1em",height:"1em",class:"-mt-0.5",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24"},[r("path",{d:"M21.71 3.29a1 1 0 0 0-1.42 0l-18 18a1 1 0 0 0 0 1.42a1 1 0 0 0 1.42 0l18-18a1 1 0 0 0 0-1.42z",fill:"currentColor"})],-1),ve=r("svg",{viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},[r("line",{x1:"2",y1:"15",x2:"22",y2:"4",stroke:"currentColor","stroke-width":"1","stroke-linecap":"round"}),r("line",{x1:"2",y1:"24",x2:"28",y2:"10",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round"}),r("line",{x1:"7",y1:"31",x2:"29",y2:"19",stroke:"currentColor","stroke-width":"3","stroke-linecap":"round"})],-1),be={class:"flex bg-main p-2"},ke={class:"inline-block w-7 text-center"},ye={class:"pt-.5"},Ce=B({__name:"DrawingControls",setup(h){const{brush:u,canClear:w,canRedo:f,canUndo:k,clear:y,drauu:v,drawingEnabled:d,drawingMode:i,drawingPinned:c,brushColors:S}=me();function V(){v.undo()}function A(){v.redo()}let C="stylus";function _(p){i.value=p,d.value=!0,p!=="eraseLine"&&(C=p)}function E(p){u.color=p,d.value=!0,i.value=C}return(p,t)=>{const U=T,F=Y,K=Z,N=H,R=J,j=W,q=X,I=ee,P=ne,G=te,O=se,Q=oe;return g(),x(we,{class:l(["flex flex-wrap text-xl p-2 gap-1 rounded-md bg-main shadow transition-opacity duration-200 z-20 border border-main",e(d)?"":e(c)?"opacity-40 hover:opacity-90":"opacity-0 pointer-events-none"]),"storage-key":"slidev-drawing-pos","initial-x":10,"initial-y":10},{default:o(()=>[n(a,{title:"Draw with stylus",class:l({shallow:e(i)!=="stylus"}),onClick:t[0]||(t[0]=s=>_("stylus"))},{default:o(()=>[n(U)]),_:1},8,["class"]),n(a,{title:"Draw a line",class:l({shallow:e(i)!=="line"}),onClick:t[1]||(t[1]=s=>_("line"))},{default:o(()=>[fe]),_:1},8,["class"]),n(a,{title:"Draw an arrow",class:l({shallow:e(i)!=="arrow"}),onClick:t[2]||(t[2]=s=>_("arrow"))},{default:o(()=>[n(F)]),_:1},8,["class"]),n(a,{title:"Draw an ellipse",class:l({shallow:e(i)!=="ellipse"}),onClick:t[3]||(t[3]=s=>_("ellipse"))},{default:o(()=>[n(K)]),_:1},8,["class"]),n(a,{title:"Draw a rectangle",class:l({shallow:e(i)!=="rectangle"}),onClick:t[4]||(t[4]=s=>_("rectangle"))},{default:o(()=>[n(N)]),_:1},8,["class"]),n(a,{title:"Erase",class:l({shallow:e(i)!=="eraseLine"}),onClick:t[5]||(t[5]=s=>_("eraseLine"))},{default:o(()=>[n(R)]),_:1},8,["class"]),n(D),n(e(pe),null,{popper:o(()=>[r("div",be,[r("div",ke,re(e(u).size),1),r("div",ye,[m(r("input",{"onUpdate:modelValue":t[6]||(t[6]=s=>e(u).size=s),type:"range",min:"1",max:"15",onChange:t[7]||(t[7]=s=>i.value=e(C))},null,544),[[ue,e(u).size]])])])]),default:o(()=>[n(a,{title:"Adjust stroke width",class:l({shallow:e(i)==="eraseLine"})},{default:o(()=>[ve]),_:1},8,["class"])]),_:1}),(g(!0),L(de,null,ce(e(S),s=>(g(),x(a,{key:s,title:"Set brush color",class:l(e(u).color===s&&e(i)!=="eraseLine"?"active":"shallow"),onClick:xe=>E(s)},{default:o(()=>[r("div",{class:l(["w-6 h-6 transition-all transform border",e(u).color!==s?"rounded-1/2 scale-85 border-white":"rounded-md border-gray-300/50"]),style:z(e(d)?{background:s}:{borderColor:s})},null,6)]),_:2},1032,["class","onClick"]))),128)),n(D),n(a,{title:"Undo",class:l({disabled:!e(k)}),onClick:t[8]||(t[8]=s=>V())},{default:o(()=>[n(j)]),_:1},8,["class"]),n(a,{title:"Redo",class:l({disabled:!e(f)}),onClick:t[9]||(t[9]=s=>A())},{default:o(()=>[n(q)]),_:1},8,["class"]),n(a,{title:"Delete",class:l({disabled:!e(w)}),onClick:t[10]||(t[10]=s=>e(y)())},{default:o(()=>[n(I)]),_:1},8,["class"]),n(D),n(a,{title:e(c)?"Unpin drawing":"Pin drawing",class:l({shallow:!e(c)}),onClick:t[11]||(t[11]=s=>c.value=!e(c))},{default:o(()=>[m(n(P,{class:"transform -rotate-45"},null,512),[[b,e(c)]]),m(n(G,null,null,512),[[b,!e(c)]])]),_:1},8,["title","class"]),e(d)?(g(),x(a,{key:0,title:e(c)?"Drawing pinned":"Drawing unpinned",class:l({shallow:!e(d)}),onClick:t[12]||(t[12]=s=>d.value=!e(d))},{default:o(()=>[m(n(O,null,null,512),[[b,e(c)]]),m(n(Q,null,null,512),[[b,!e(c)]])]),_:1},8,["title","class"])):_e("v-if",!0)]),_:1},8,["class"])}}}),Ve=M(Ce,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/DrawingControls.vue"]]);export{Ve as default};
import{o as a,c as r,k as s,q as l,s as n,A as t,e}from"../modules/vue-Dn3czbSS.js";import{I as i}from"./image-right-DfgZS7MM.js";import{b as c,P as o}from"../index-D2S1x1Oe.js";import{p as m,u,f as p}from"./context-CYh2-pv1.js";import"../modules/shiki-CuMFyo6Z.js";const _=e("h1",null,"Performances",-1),d=e("ul",null,[e("li",null,"Mésocentre de Franche-Comté"),e("li",null,"Parallélisation de l’alignement"),e("li",null,"1 patient = 5h de calcul"),e("li",null,"20 patients/jour")],-1),f={__name:"9",setup(h){return m(o),u(),(P,x)=>(a(),r(i,l(n(t(p)(t(o),8))),{default:s(()=>[_,d]),_:1},16))}},j=c(f,[["__file","/@slidev/slides/9.md"]]);export{j as default};
import{_ as a}from"./VClicks-BxpWTlPO.js";import{o as l,c as n,k as e,l as i,q as u,s as _,A as o,e as t}from"../modules/vue-Dn3czbSS.js";import{I as c}from"./image-right-DfgZS7MM.js";import{b as p,M as s}from"../index-D2S1x1Oe.js";import{p as m,u as d,f}from"./context-CYh2-pv1.js";import"../modules/shiki-CuMFyo6Z.js";const h=t("h1",null,"Portabilité",-1),x=t("p",null,[t("strong",null,"Nextflow")],-1),v=t("ul",null,[t("li",null,"Maîtrise des risques liés au matériel"),t("li",null,"Exécution sur de multiple architecture (super-calculateur…)")],-1),k={__name:"8",setup(P){return m(s),d(),(g,B)=>{const r=a;return l(),n(c,u(_(o(f)(o(s),7))),{default:e(()=>[h,x,i(r,{every:"1"},{default:e(()=>[v]),_:1})]),_:1},16)}}},I=p(k,[["__file","/@slidev/slides/8.md"]]);export{I as default};
import{o as s,c as a,k as r,q as i,s as n,A as e,e as t}from"../modules/vue-Dn3czbSS.js";import{I as l}from"./image-right-DfgZS7MM.js";import{b as p,L as o}from"../index-D2S1x1Oe.js";import{p as c,u,f as _}from"./context-CYh2-pv1.js";import"../modules/shiki-CuMFyo6Z.js";const m=t("h1",null,"Reproductibilité",-1),d=t("p",null,"Incorporation dans Nix :",-1),f=t("ul",null,[t("li",null,'6 logiciels "empaquetés" + 3 dépendences'),t("li",null,"3/6 déjà utilisables par la communauté (nixpkgs)")],-1),x={__name:"7",setup(h){return c(o),u(),(k,b)=>(s(),a(l,i(n(e(_)(e(o),6))),{default:r(()=>[m,d,f]),_:1},16))}},j=p(x,[["__file","/@slidev/slides/7.md"]]);export{j as default};
import{_}from"./VClicks-BxpWTlPO.js";import{_ as a}from"./VClick-DMxgr0td.js";import{o as i,c as u,k as t,l as e,q as c,s as p,A as s,e as o}from"../modules/vue-Dn3czbSS.js";import{I as m}from"./image-right-DfgZS7MM.js";import{b as d,K as l}from"../index-D2S1x1Oe.js";import{p as f,u as h,f as v}from"./context-CYh2-pv1.js";import"../modules/shiki-CuMFyo6Z.js";const x=o("h1",null,"Reproductibilité",-1),b=o("p",null,"Comment assurer au COFRAC des résultats reproductibles ?",-1),g=o("br",null,null,-1),k=o("p",null,[o("strong",null,"Nix")],-1),C=o("ol",null,[o("li",null,"bloque la version de tous les logiciels"),o("li",null,"quelque soit l’ordinateur (Linux +/- OSX)")],-1),q={__name:"6",setup(B){return f(l),h(),(N,P)=>{const n=a,r=_;return i(),u(m,c(p(s(v)(s(l),5))),{default:t(()=>[x,b,g,e(n,null,{default:t(()=>[k]),_:1}),e(r,{every:"1"},{default:t(()=>[C]),_:1})]),_:1},16)}}},S=d(q,[["__file","/@slidev/slides/6.md"]]);export{S as default};
function __vite__mapDeps(indexes) {
if (!__vite__mapDeps.viteFileDeps) {
__vite__mapDeps.viteFileDeps = ["assets/c4Diagram-e2511a7a-DcqzxGPo.js","assets/svgDrawCommon-99ae2c94-qFiheePO.js","assets/modules/vue-Dn3czbSS.js","assets/index-D2S1x1Oe.js","assets/modules/shiki-CuMFyo6Z.js","assets/modules/shiki-BSchMNmt.css","assets/index-Dw67r9kT.css","assets/modules/file-saver-EUMWMpoS.js","assets/slidev/default-CY-sqYNf.js","assets/slidev/context-CYh2-pv1.js","assets/flowDiagram-e44a2353-DS4gPiAE.js","assets/flowDb-147da10a-DiemYpRj.js","assets/graph-af3d5df6-DtpoS02a.js","assets/layout-6685625a-CnDdhUY9.js","assets/styles-c171666c-BORyiMHS.js","assets/index-c8395ba2-BQkSvmSq.js","assets/clone-d2e37f8c-CN-809h5.js","assets/edges-1e1ebc73-5f7nvF86.js","assets/createText-f6615236-y76jB5p3.js","assets/line-65d70945-BvyDbe4_.js","assets/array-b7dcf730-BKyUJesY.js","assets/path-39bad7e2-CbwjOpE9.js","assets/channel-d3ac35ac-BPxKiy7g.js","assets/flowDiagram-v2-a8396bb5-CBfmo9Cy.js","assets/erDiagram-582bd92f-C2r4ztME.js","assets/gitGraphDiagram-d5d647e9-CQKxpspn.js","assets/ganttDiagram-05e48839-CWJ_F3V8.js","assets/linear-d94cf28d-BvaqH9Ej.js","assets/init-cc95ec8e-Gi6I4Gst.js","assets/infoDiagram-00deb277-DyW-9skE.js","assets/pieDiagram-35c7eafc-B5uoLXTV.js","assets/arc-5aa99581-BU3o1NUK.js","assets/ordinal-475e0c0c-BmOJQ37o.js","assets/quadrantDiagram-9c93c009-BR6mTtF_.js","assets/xychartDiagram-7b46ecfd-DLKHhQRW.js","assets/requirementDiagram-e882bd67-m7QucLgT.js","assets/sequenceDiagram-1767341c-PY-8nlIQ.js","assets/classDiagram-3275847a-CNrY7ciT.js","assets/styles-d48462a7-Cp72T330.js","assets/classDiagram-v2-2ed0a7d3-CQK6SDZX.js","assets/stateDiagram-d2e6f24f-LATwrHmr.js","assets/styles-15409a09-D93KKqtJ.js","assets/stateDiagram-v2-21d485ae-ThcDK9Ng.js","assets/journeyDiagram-a5efd2e1-DI4f2TC0.js","assets/flowchart-elk-definition-1a3aaf5d--iixaehS.js","assets/timeline-definition-f8c5dfc0-sY0iCSOs.js","assets/mindmap-definition-74120bdd-DEh8FM6n.js","assets/sankeyDiagram-f5d051b7-Bm9wHpVB.js","assets/Tableau10-31042135-CvOaoHrI.js","assets/blockDiagram-8beecd1f-CAHAqGe5.js"]
}
return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
}
import{d as Vs,t as Xe,y as Fc,C as Ii,o as Gi,b as Xs,D as Ec,x as Oc,c as Ks,I as Mc,k as $c,l as Ic,m as Dc,q as Nc,s as Rc,A as Ao,e as Pc}from"../modules/vue-Dn3czbSS.js";import{_ as Z,H as Lo,I as qc,b as Sn,q as zc,J as Fo}from"../index-D2S1x1Oe.js";import{g as Wc}from"../modules/file-saver-EUMWMpoS.js";import{I as Hc}from"./default-CY-sqYNf.js";import{p as jc,u as Uc,f as Yc}from"./context-CYh2-pv1.js";function Gc(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];var r=Array.from(typeof t=="string"?[t]:t);r[r.length-1]=r[r.length-1].replace(/\r?\n([\t ]*)$/,"");var n=r.reduce(function(a,l){var c=l.match(/\n([\t ]+|(?!\s).)/g);return c?a.concat(c.map(function(u){var f,h;return(h=(f=u.match(/[\t ]/g))===null||f===void 0?void 0:f.length)!==null&&h!==void 0?h:0})):a},[]);if(n.length){var o=new RegExp(`
[ ]{`+Math.min.apply(Math,n)+"}","g");r=r.map(function(a){return a.replace(o,`
`)})}r[0]=r[0].replace(/^\r?\n/,"");var s=r[0];return e.forEach(function(a,l){var c=s.match(/(?:^|\n)( *)$/),u=c?c[1]:"",f=a;typeof a=="string"&&a.includes(`
`)&&(f=String(a).split(`
`).map(function(h,d){return d===0?h:""+u+h}).join(`
`)),s+=f+r[l+1]}),s}var Vc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Xc(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Zs={exports:{}};(function(t,e){(function(i,r){t.exports=r()})(Vc,function(){var i=1e3,r=6e4,n=36e5,o="millisecond",s="second",a="minute",l="hour",c="day",u="week",f="month",h="quarter",d="year",_="date",T="Invalid Date",w=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,A=/\[([^\]]+)]|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,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(q){var B=["th","st","nd","rd"],x=q%100;return"["+q+(B[(x-20)%10]||B[x]||B[0])+"]"}},E=function(q,B,x){var M=String(q);return!M||M.length>=B?q:""+Array(B+1-M.length).join(x)+q},L={s:E,z:function(q){var B=-q.utcOffset(),x=Math.abs(B),M=Math.floor(x/60),k=x%60;return(B<=0?"+":"-")+E(M,2,"0")+":"+E(k,2,"0")},m:function q(B,x){if(B.date()<x.date())return-q(x,B);var M=12*(x.year()-B.year())+(x.month()-B.month()),k=B.clone().add(M,f),S=x-k<0,H=B.clone().add(M+(S?-1:1),f);return+(-(M+(x-k)/(S?k-H:H-k))||0)},a:function(q){return q<0?Math.ceil(q)||0:Math.floor(q)},p:function(q){return{M:f,y:d,w:u,d:c,D:_,h:l,m:a,s,ms:o,Q:h}[q]||String(q||"").toLowerCase().replace(/s$/,"")},u:function(q){return q===void 0}},R="en",m={};m[R]=y;var b="$isDayjsObject",O=function(q){return q instanceof St||!(!q||!q[b])},Zt=function q(B,x,M){var k;if(!B)return R;if(typeof B=="string"){var S=B.toLowerCase();m[S]&&(k=S),x&&(m[S]=x,k=S);var H=B.split("-");if(!k&&H.length>1)return q(H[0])}else{var W=B.name;m[W]=B,k=W}return!M&&k&&(R=k),k||!M&&R},G=function(q,B){if(O(q))return q.clone();var x=typeof B=="object"?B:{};return x.date=q,x.args=arguments,new St(x)},Y=L;Y.l=Zt,Y.i=O,Y.w=function(q,B){return G(q,{locale:B.$L,utc:B.$u,x:B.$x,$offset:B.$offset})};var St=function(){function q(x){this.$L=Zt(x.locale,null,!0),this.parse(x),this.$x=this.$x||x.x||{},this[b]=!0}var B=q.prototype;return B.parse=function(x){this.$d=function(M){var k=M.date,S=M.utc;if(k===null)return new Date(NaN);if(Y.u(k))return new Date;if(k instanceof Date)return new Date(k);if(typeof k=="string"&&!/Z$/i.test(k)){var H=k.match(w);if(H){var W=H[2]-1||0,K=(H[7]||"0").substring(0,3);return S?new Date(Date.UTC(H[1],W,H[3]||1,H[4]||0,H[5]||0,H[6]||0,K)):new Date(H[1],W,H[3]||1,H[4]||0,H[5]||0,H[6]||0,K)}}return new Date(k)}(x),this.init()},B.init=function(){var x=this.$d;this.$y=x.getFullYear(),this.$M=x.getMonth(),this.$D=x.getDate(),this.$W=x.getDay(),this.$H=x.getHours(),this.$m=x.getMinutes(),this.$s=x.getSeconds(),this.$ms=x.getMilliseconds()},B.$utils=function(){return Y},B.isValid=function(){return this.$d.toString()!==T},B.isSame=function(x,M){var k=G(x);return this.startOf(M)<=k&&k<=this.endOf(M)},B.isAfter=function(x,M){return G(x)<this.startOf(M)},B.isBefore=function(x,M){return this.endOf(M)<G(x)},B.$g=function(x,M,k){return Y.u(x)?this[M]:this.set(k,x)},B.unix=function(){return Math.floor(this.valueOf()/1e3)},B.valueOf=function(){return this.$d.getTime()},B.startOf=function(x,M){var k=this,S=!!Y.u(M)||M,H=Y.p(x),W=function(Ot,Q){var nt=Y.w(k.$u?Date.UTC(k.$y,Q,Ot):new Date(k.$y,Q,Ot),k);return S?nt:nt.endOf(c)},K=function(Ot,Q){return Y.w(k.toDate()[Ot].apply(k.toDate("s"),(S?[0,0,0,0]:[23,59,59,999]).slice(Q)),k)},j=this.$W,J=this.$M,rt=this.$D,Pt="set"+(this.$u?"UTC":"");switch(H){case d:return S?W(1,0):W(31,11);case f:return S?W(1,J):W(0,J+1);case u:var wt=this.$locale().weekStart||0,Qt=(j<wt?j+7:j)-wt;return W(S?rt-Qt:rt+(6-Qt),J);case c:case _:return K(Pt+"Hours",0);case l:return K(Pt+"Minutes",1);case a:return K(Pt+"Seconds",2);case s:return K(Pt+"Milliseconds",3);default:return this.clone()}},B.endOf=function(x){return this.startOf(x,!1)},B.$set=function(x,M){var k,S=Y.p(x),H="set"+(this.$u?"UTC":""),W=(k={},k[c]=H+"Date",k[_]=H+"Date",k[f]=H+"Month",k[d]=H+"FullYear",k[l]=H+"Hours",k[a]=H+"Minutes",k[s]=H+"Seconds",k[o]=H+"Milliseconds",k)[S],K=S===c?this.$D+(M-this.$W):M;if(S===f||S===d){var j=this.clone().set(_,1);j.$d[W](K),j.init(),this.$d=j.set(_,Math.min(this.$D,j.daysInMonth())).$d}else W&&this.$d[W](K);return this.init(),this},B.set=function(x,M){return this.clone().$set(x,M)},B.get=function(x){return this[Y.p(x)]()},B.add=function(x,M){var k,S=this;x=Number(x);var H=Y.p(M),W=function(J){var rt=G(S);return Y.w(rt.date(rt.date()+Math.round(J*x)),S)};if(H===f)return this.set(f,this.$M+x);if(H===d)return this.set(d,this.$y+x);if(H===c)return W(1);if(H===u)return W(7);var K=(k={},k[a]=r,k[l]=n,k[s]=i,k)[H]||1,j=this.$d.getTime()+x*K;return Y.w(j,this)},B.subtract=function(x,M){return this.add(-1*x,M)},B.format=function(x){var M=this,k=this.$locale();if(!this.isValid())return k.invalidDate||T;var S=x||"YYYY-MM-DDTHH:mm:ssZ",H=Y.z(this),W=this.$H,K=this.$m,j=this.$M,J=k.weekdays,rt=k.months,Pt=k.meridiem,wt=function(Q,nt,qt,te){return Q&&(Q[nt]||Q(M,S))||qt[nt].slice(0,te)},Qt=function(Q){return Y.s(W%12||12,Q,"0")},Ot=Pt||function(Q,nt,qt){var te=Q<12?"AM":"PM";return qt?te.toLowerCase():te};return S.replace(A,function(Q,nt){return nt||function(qt){switch(qt){case"YY":return String(M.$y).slice(-2);case"YYYY":return Y.s(M.$y,4,"0");case"M":return j+1;case"MM":return Y.s(j+1,2,"0");case"MMM":return wt(k.monthsShort,j,rt,3);case"MMMM":return wt(rt,j);case"D":return M.$D;case"DD":return Y.s(M.$D,2,"0");case"d":return String(M.$W);case"dd":return wt(k.weekdaysMin,M.$W,J,2);case"ddd":return wt(k.weekdaysShort,M.$W,J,3);case"dddd":return J[M.$W];case"H":return String(W);case"HH":return Y.s(W,2,"0");case"h":return Qt(1);case"hh":return Qt(2);case"a":return Ot(W,K,!0);case"A":return Ot(W,K,!1);case"m":return String(K);case"mm":return Y.s(K,2,"0");case"s":return String(M.$s);case"ss":return Y.s(M.$s,2,"0");case"SSS":return Y.s(M.$ms,3,"0");case"Z":return H}return null}(Q)||H.replace(":","")})},B.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},B.diff=function(x,M,k){var S,H=this,W=Y.p(M),K=G(x),j=(K.utcOffset()-this.utcOffset())*r,J=this-K,rt=function(){return Y.m(H,K)};switch(W){case d:S=rt()/12;break;case f:S=rt();break;case h:S=rt()/3;break;case u:S=(J-j)/6048e5;break;case c:S=(J-j)/864e5;break;case l:S=J/n;break;case a:S=J/r;break;case s:S=J/i;break;default:S=J}return k?S:Y.a(S)},B.daysInMonth=function(){return this.endOf(f).$D},B.$locale=function(){return m[this.$L]},B.locale=function(x,M){if(!x)return this.$L;var k=this.clone(),S=Zt(x,M,!0);return S&&(k.$L=S),k},B.clone=function(){return Y.w(this.$d,this)},B.toDate=function(){return new Date(this.valueOf())},B.toJSON=function(){return this.isValid()?this.toISOString():null},B.toISOString=function(){return this.$d.toISOString()},B.toString=function(){return this.$d.toUTCString()},q}(),Jt=St.prototype;return G.prototype=Jt,[["$ms",o],["$s",s],["$m",a],["$H",l],["$W",c],["$M",f],["$y",d],["$D",_]].forEach(function(q){Jt[q[1]]=function(B){return this.$g(B,q[0],q[1])}}),G.extend=function(q,B){return q.$i||(q(B,St,G),q.$i=!0),G},G.locale=Zt,G.isDayjs=O,G.unix=function(q){return G(1e3*q)},G.en=m[R],G.Ls=m,G.p={},G})})(Zs);var Kc=Zs.exports;const Zc=Xc(Kc),Ht={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},N={trace:(...t)=>{},debug:(...t)=>{},info:(...t)=>{},warn:(...t)=>{},error:(...t)=>{},fatal:(...t)=>{}},wn=function(t="fatal"){let e=Ht.fatal;typeof t=="string"?(t=t.toLowerCase(),t in Ht&&(e=Ht[t])):typeof t=="number"&&(e=t),N.trace=()=>{},N.debug=()=>{},N.info=()=>{},N.warn=()=>{},N.error=()=>{},N.fatal=()=>{},e<=Ht.fatal&&(N.fatal=console.error?console.error.bind(console,Tt("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",Tt("FATAL"))),e<=Ht.error&&(N.error=console.error?console.error.bind(console,Tt("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",Tt("ERROR"))),e<=Ht.warn&&(N.warn=console.warn?console.warn.bind(console,Tt("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",Tt("WARN"))),e<=Ht.info&&(N.info=console.info?console.info.bind(console,Tt("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",Tt("INFO"))),e<=Ht.debug&&(N.debug=console.debug?console.debug.bind(console,Tt("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",Tt("DEBUG"))),e<=Ht.trace&&(N.trace=console.debug?console.debug.bind(console,Tt("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",Tt("TRACE")))},Tt=t=>`%c${Zc().format("ss.SSS")} : ${t} : `;var Js={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.sanitizeUrl=t.BLANK_URL=void 0;var e=/^([^\w]*)(javascript|data|vbscript)/im,i=/&#(\w+)(^\w|;)?/g,r=/&(newline|tab);/gi,n=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,o=/^.+(:|:)/gim,s=[".","/"];t.BLANK_URL="about:blank";function a(u){return s.indexOf(u[0])>-1}function l(u){var f=u.replace(n,"");return f.replace(i,function(h,d){return String.fromCharCode(d)})}function c(u){if(!u)return t.BLANK_URL;var f=l(u).replace(r,"").replace(n,"").trim();if(!f)return t.BLANK_URL;if(a(f))return f;var h=f.match(o);if(!h)return f;var d=h[0];return e.test(d)?t.BLANK_URL:f}t.sanitizeUrl=c})(Js);var Jc={value:()=>{}};function Qs(){for(var t=0,e=arguments.length,i={},r;t<e;++t){if(!(r=arguments[t]+"")||r in i||/[\s.]/.test(r))throw new Error("illegal type: "+r);i[r]=[]}return new Di(i)}function Di(t){this._=t}function Qc(t,e){return t.trim().split(/^|\s+/).map(function(i){var r="",n=i.indexOf(".");if(n>=0&&(r=i.slice(n+1),i=i.slice(0,n)),i&&!e.hasOwnProperty(i))throw new Error("unknown type: "+i);return{type:i,name:r}})}Di.prototype=Qs.prototype={constructor:Di,on:function(t,e){var i=this._,r=Qc(t+"",i),n,o=-1,s=r.length;if(arguments.length<2){for(;++o<s;)if((n=(t=r[o]).type)&&(n=th(i[n],t.name)))return n;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++o<s;)if(n=(t=r[o]).type)i[n]=Eo(i[n],t.name,e);else if(e==null)for(n in i)i[n]=Eo(i[n],t.name,null);return this},copy:function(){var t={},e=this._;for(var i in e)t[i]=e[i].slice();return new Di(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var i=new Array(n),r=0,n,o;r<n;++r)i[r]=arguments[r+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=this._[t],r=0,n=o.length;r<n;++r)o[r].value.apply(e,i)},apply:function(t,e,i){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],n=0,o=r.length;n<o;++n)r[n].value.apply(e,i)}};function th(t,e){for(var i=0,r=t.length,n;i<r;++i)if((n=t[i]).name===e)return n.value}function Eo(t,e,i){for(var r=0,n=t.length;r<n;++r)if(t[r].name===e){t[r]=Jc,t=t.slice(0,r).concat(t.slice(r+1));break}return i!=null&&t.push({name:e,value:i}),t}var rn="http://www.w3.org/1999/xhtml";const Oo={svg:"http://www.w3.org/2000/svg",xhtml:rn,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function mr(t){var e=t+="",i=e.indexOf(":");return i>=0&&(e=t.slice(0,i))!=="xmlns"&&(t=t.slice(i+1)),Oo.hasOwnProperty(e)?{space:Oo[e],local:t}:t}function eh(t){return function(){var e=this.ownerDocument,i=this.namespaceURI;return i===rn&&e.documentElement.namespaceURI===rn?e.createElement(t):e.createElementNS(i,t)}}function ih(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function ta(t){var e=mr(t);return(e.local?ih:eh)(e)}function rh(){}function Bn(t){return t==null?rh:function(){return this.querySelector(t)}}function nh(t){typeof t!="function"&&(t=Bn(t));for(var e=this._groups,i=e.length,r=new Array(i),n=0;n<i;++n)for(var o=e[n],s=o.length,a=r[n]=new Array(s),l,c,u=0;u<s;++u)(l=o[u])&&(c=t.call(l,l.__data__,u,o))&&("__data__"in l&&(c.__data__=l.__data__),a[u]=c);return new bt(r,this._parents)}function oh(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function sh(){return[]}function ea(t){return t==null?sh:function(){return this.querySelectorAll(t)}}function ah(t){return function(){return oh(t.apply(this,arguments))}}function lh(t){typeof t=="function"?t=ah(t):t=ea(t);for(var e=this._groups,i=e.length,r=[],n=[],o=0;o<i;++o)for(var s=e[o],a=s.length,l,c=0;c<a;++c)(l=s[c])&&(r.push(t.call(l,l.__data__,c,s)),n.push(l));return new bt(r,n)}function ia(t){return function(){return this.matches(t)}}function ra(t){return function(e){return e.matches(t)}}var ch=Array.prototype.find;function hh(t){return function(){return ch.call(this.children,t)}}function uh(){return this.firstElementChild}function fh(t){return this.select(t==null?uh:hh(typeof t=="function"?t:ra(t)))}var dh=Array.prototype.filter;function ph(){return Array.from(this.children)}function gh(t){return function(){return dh.call(this.children,t)}}function mh(t){return this.selectAll(t==null?ph:gh(typeof t=="function"?t:ra(t)))}function _h(t){typeof t!="function"&&(t=ia(t));for(var e=this._groups,i=e.length,r=new Array(i),n=0;n<i;++n)for(var o=e[n],s=o.length,a=r[n]=[],l,c=0;c<s;++c)(l=o[c])&&t.call(l,l.__data__,c,o)&&a.push(l);return new bt(r,this._parents)}function na(t){return new Array(t.length)}function yh(){return new bt(this._enter||this._groups.map(na),this._parents)}function Vi(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}Vi.prototype={constructor:Vi,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function Ch(t){return function(){return t}}function bh(t,e,i,r,n,o){for(var s=0,a,l=e.length,c=o.length;s<c;++s)(a=e[s])?(a.__data__=o[s],r[s]=a):i[s]=new Vi(t,o[s]);for(;s<l;++s)(a=e[s])&&(n[s]=a)}function xh(t,e,i,r,n,o,s){var a,l,c=new Map,u=e.length,f=o.length,h=new Array(u),d;for(a=0;a<u;++a)(l=e[a])&&(h[a]=d=s.call(l,l.__data__,a,e)+"",c.has(d)?n[a]=l:c.set(d,l));for(a=0;a<f;++a)d=s.call(t,o[a],a,o)+"",(l=c.get(d))?(r[a]=l,l.__data__=o[a],c.delete(d)):i[a]=new Vi(t,o[a]);for(a=0;a<u;++a)(l=e[a])&&c.get(h[a])===l&&(n[a]=l)}function Th(t){return t.__data__}function vh(t,e){if(!arguments.length)return Array.from(this,Th);var i=e?xh:bh,r=this._parents,n=this._groups;typeof t!="function"&&(t=Ch(t));for(var o=n.length,s=new Array(o),a=new Array(o),l=new Array(o),c=0;c<o;++c){var u=r[c],f=n[c],h=f.length,d=kh(t.call(u,u&&u.__data__,c,r)),_=d.length,T=a[c]=new Array(_),w=s[c]=new Array(_),A=l[c]=new Array(h);i(u,f,T,w,A,d,e);for(var y=0,E=0,L,R;y<_;++y)if(L=T[y]){for(y>=E&&(E=y+1);!(R=w[E])&&++E<_;);L._next=R||null}}return s=new bt(s,r),s._enter=a,s._exit=l,s}function kh(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function Sh(){return new bt(this._exit||this._groups.map(na),this._parents)}function wh(t,e,i){var r=this.enter(),n=this,o=this.exit();return typeof t=="function"?(r=t(r),r&&(r=r.selection())):r=r.append(t+""),e!=null&&(n=e(n),n&&(n=n.selection())),i==null?o.remove():i(o),r&&n?r.merge(n).order():n}function Bh(t){for(var e=t.selection?t.selection():t,i=this._groups,r=e._groups,n=i.length,o=r.length,s=Math.min(n,o),a=new Array(n),l=0;l<s;++l)for(var c=i[l],u=r[l],f=c.length,h=a[l]=new Array(f),d,_=0;_<f;++_)(d=c[_]||u[_])&&(h[_]=d);for(;l<n;++l)a[l]=i[l];return new bt(a,this._parents)}function Ah(){for(var t=this._groups,e=-1,i=t.length;++e<i;)for(var r=t[e],n=r.length-1,o=r[n],s;--n>=0;)(s=r[n])&&(o&&s.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(s,o),o=s);return this}function Lh(t){t||(t=Fh);function e(f,h){return f&&h?t(f.__data__,h.__data__):!f-!h}for(var i=this._groups,r=i.length,n=new Array(r),o=0;o<r;++o){for(var s=i[o],a=s.length,l=n[o]=new Array(a),c,u=0;u<a;++u)(c=s[u])&&(l[u]=c);l.sort(e)}return new bt(n,this._parents).order()}function Fh(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function Eh(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function Oh(){return Array.from(this)}function Mh(){for(var t=this._groups,e=0,i=t.length;e<i;++e)for(var r=t[e],n=0,o=r.length;n<o;++n){var s=r[n];if(s)return s}return null}function $h(){let t=0;for(const e of this)++t;return t}function Ih(){return!this.node()}function Dh(t){for(var e=this._groups,i=0,r=e.length;i<r;++i)for(var n=e[i],o=0,s=n.length,a;o<s;++o)(a=n[o])&&t.call(a,a.__data__,o,n);return this}function Nh(t){return function(){this.removeAttribute(t)}}function Rh(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Ph(t,e){return function(){this.setAttribute(t,e)}}function qh(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function zh(t,e){return function(){var i=e.apply(this,arguments);i==null?this.removeAttribute(t):this.setAttribute(t,i)}}function Wh(t,e){return function(){var i=e.apply(this,arguments);i==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,i)}}function Hh(t,e){var i=mr(t);if(arguments.length<2){var r=this.node();return i.local?r.getAttributeNS(i.space,i.local):r.getAttribute(i)}return this.each((e==null?i.local?Rh:Nh:typeof e=="function"?i.local?Wh:zh:i.local?qh:Ph)(i,e))}function oa(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function jh(t){return function(){this.style.removeProperty(t)}}function Uh(t,e,i){return function(){this.style.setProperty(t,e,i)}}function Yh(t,e,i){return function(){var r=e.apply(this,arguments);r==null?this.style.removeProperty(t):this.style.setProperty(t,r,i)}}function Gh(t,e,i){return arguments.length>1?this.each((e==null?jh:typeof e=="function"?Yh:Uh)(t,e,i??"")):Fe(this.node(),t)}function Fe(t,e){return t.style.getPropertyValue(e)||oa(t).getComputedStyle(t,null).getPropertyValue(e)}function Vh(t){return function(){delete this[t]}}function Xh(t,e){return function(){this[t]=e}}function Kh(t,e){return function(){var i=e.apply(this,arguments);i==null?delete this[t]:this[t]=i}}function Zh(t,e){return arguments.length>1?this.each((e==null?Vh:typeof e=="function"?Kh:Xh)(t,e)):this.node()[t]}function sa(t){return t.trim().split(/^|\s+/)}function An(t){return t.classList||new aa(t)}function aa(t){this._node=t,this._names=sa(t.getAttribute("class")||"")}aa.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function la(t,e){for(var i=An(t),r=-1,n=e.length;++r<n;)i.add(e[r])}function ca(t,e){for(var i=An(t),r=-1,n=e.length;++r<n;)i.remove(e[r])}function Jh(t){return function(){la(this,t)}}function Qh(t){return function(){ca(this,t)}}function tu(t,e){return function(){(e.apply(this,arguments)?la:ca)(this,t)}}function eu(t,e){var i=sa(t+"");if(arguments.length<2){for(var r=An(this.node()),n=-1,o=i.length;++n<o;)if(!r.contains(i[n]))return!1;return!0}return this.each((typeof e=="function"?tu:e?Jh:Qh)(i,e))}function iu(){this.textContent=""}function ru(t){return function(){this.textContent=t}}function nu(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function ou(t){return arguments.length?this.each(t==null?iu:(typeof t=="function"?nu:ru)(t)):this.node().textContent}function su(){this.innerHTML=""}function au(t){return function(){this.innerHTML=t}}function lu(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function cu(t){return arguments.length?this.each(t==null?su:(typeof t=="function"?lu:au)(t)):this.node().innerHTML}function hu(){this.nextSibling&&this.parentNode.appendChild(this)}function uu(){return this.each(hu)}function fu(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function du(){return this.each(fu)}function pu(t){var e=typeof t=="function"?t:ta(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function gu(){return null}function mu(t,e){var i=typeof t=="function"?t:ta(t),r=e==null?gu:typeof e=="function"?e:Bn(e);return this.select(function(){return this.insertBefore(i.apply(this,arguments),r.apply(this,arguments)||null)})}function _u(){var t=this.parentNode;t&&t.removeChild(this)}function yu(){return this.each(_u)}function Cu(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function bu(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function xu(t){return this.select(t?bu:Cu)}function Tu(t){return arguments.length?this.property("__data__",t):this.node().__data__}function vu(t){return function(e){t.call(this,e,this.__data__)}}function ku(t){return t.trim().split(/^|\s+/).map(function(e){var i="",r=e.indexOf(".");return r>=0&&(i=e.slice(r+1),e=e.slice(0,r)),{type:e,name:i}})}function Su(t){return function(){var e=this.__on;if(e){for(var i=0,r=-1,n=e.length,o;i<n;++i)o=e[i],(!t.type||o.type===t.type)&&o.name===t.name?this.removeEventListener(o.type,o.listener,o.options):e[++r]=o;++r?e.length=r:delete this.__on}}}function wu(t,e,i){return function(){var r=this.__on,n,o=vu(e);if(r){for(var s=0,a=r.length;s<a;++s)if((n=r[s]).type===t.type&&n.name===t.name){this.removeEventListener(n.type,n.listener,n.options),this.addEventListener(n.type,n.listener=o,n.options=i),n.value=e;return}}this.addEventListener(t.type,o,i),n={type:t.type,name:t.name,value:e,listener:o,options:i},r?r.push(n):this.__on=[n]}}function Bu(t,e,i){var r=ku(t+""),n,o=r.length,s;if(arguments.length<2){var a=this.node().__on;if(a){for(var l=0,c=a.length,u;l<c;++l)for(n=0,u=a[l];n<o;++n)if((s=r[n]).type===u.type&&s.name===u.name)return u.value}return}for(a=e?wu:Su,n=0;n<o;++n)this.each(a(r[n],e,i));return this}function ha(t,e,i){var r=oa(t),n=r.CustomEvent;typeof n=="function"?n=new n(e,i):(n=r.document.createEvent("Event"),i?(n.initEvent(e,i.bubbles,i.cancelable),n.detail=i.detail):n.initEvent(e,!1,!1)),t.dispatchEvent(n)}function Au(t,e){return function(){return ha(this,t,e)}}function Lu(t,e){return function(){return ha(this,t,e.apply(this,arguments))}}function Fu(t,e){return this.each((typeof e=="function"?Lu:Au)(t,e))}function*Eu(){for(var t=this._groups,e=0,i=t.length;e<i;++e)for(var r=t[e],n=0,o=r.length,s;n<o;++n)(s=r[n])&&(yield s)}var ua=[null];function bt(t,e){this._groups=t,this._parents=e}function gi(){return new bt([[document.documentElement]],ua)}function Ou(){return this}bt.prototype=gi.prototype={constructor:bt,select:nh,selectAll:lh,selectChild:fh,selectChildren:mh,filter:_h,data:vh,enter:yh,exit:Sh,join:wh,merge:Bh,selection:Ou,order:Ah,sort:Lh,call:Eh,nodes:Oh,node:Mh,size:$h,empty:Ih,each:Dh,attr:Hh,style:Gh,property:Zh,classed:eu,text:ou,html:cu,raise:uu,lower:du,append:pu,insert:mu,remove:yu,clone:xu,datum:Tu,on:Bu,dispatch:Fu,[Symbol.iterator]:Eu};function vt(t){return typeof t=="string"?new bt([[document.querySelector(t)]],[document.documentElement]):new bt([[t]],ua)}function Ln(t,e,i){t.prototype=e.prototype=i,i.constructor=t}function fa(t,e){var i=Object.create(t.prototype);for(var r in e)i[r]=e[r];return i}function mi(){}var oi=.7,Xi=1/oi,Le="\\s*([+-]?\\d+)\\s*",si="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Mt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Mu=/^#([0-9a-f]{3,8})$/,$u=new RegExp(`^rgb\\(${Le},${Le},${Le}\\)$`),Iu=new RegExp(`^rgb\\(${Mt},${Mt},${Mt}\\)$`),Du=new RegExp(`^rgba\\(${Le},${Le},${Le},${si}\\)$`),Nu=new RegExp(`^rgba\\(${Mt},${Mt},${Mt},${si}\\)$`),Ru=new RegExp(`^hsl\\(${si},${Mt},${Mt}\\)$`),Pu=new RegExp(`^hsla\\(${si},${Mt},${Mt},${si}\\)$`),Mo={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};Ln(mi,ai,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:$o,formatHex:$o,formatHex8:qu,formatHsl:zu,formatRgb:Io,toString:Io});function $o(){return this.rgb().formatHex()}function qu(){return this.rgb().formatHex8()}function zu(){return da(this).formatHsl()}function Io(){return this.rgb().formatRgb()}function ai(t){var e,i;return t=(t+"").trim().toLowerCase(),(e=Mu.exec(t))?(i=e[1].length,e=parseInt(e[1],16),i===6?Do(e):i===3?new mt(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):i===8?Si(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):i===4?Si(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=$u.exec(t))?new mt(e[1],e[2],e[3],1):(e=Iu.exec(t))?new mt(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=Du.exec(t))?Si(e[1],e[2],e[3],e[4]):(e=Nu.exec(t))?Si(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=Ru.exec(t))?Po(e[1],e[2]/100,e[3]/100,1):(e=Pu.exec(t))?Po(e[1],e[2]/100,e[3]/100,e[4]):Mo.hasOwnProperty(t)?Do(Mo[t]):t==="transparent"?new mt(NaN,NaN,NaN,0):null}function Do(t){return new mt(t>>16&255,t>>8&255,t&255,1)}function Si(t,e,i,r){return r<=0&&(t=e=i=NaN),new mt(t,e,i,r)}function Wu(t){return t instanceof mi||(t=ai(t)),t?(t=t.rgb(),new mt(t.r,t.g,t.b,t.opacity)):new mt}function nn(t,e,i,r){return arguments.length===1?Wu(t):new mt(t,e,i,r??1)}function mt(t,e,i,r){this.r=+t,this.g=+e,this.b=+i,this.opacity=+r}Ln(mt,nn,fa(mi,{brighter(t){return t=t==null?Xi:Math.pow(Xi,t),new mt(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?oi:Math.pow(oi,t),new mt(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new mt(fe(this.r),fe(this.g),fe(this.b),Ki(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:No,formatHex:No,formatHex8:Hu,formatRgb:Ro,toString:Ro}));function No(){return`#${ue(this.r)}${ue(this.g)}${ue(this.b)}`}function Hu(){return`#${ue(this.r)}${ue(this.g)}${ue(this.b)}${ue((isNaN(this.opacity)?1:this.opacity)*255)}`}function Ro(){const t=Ki(this.opacity);return`${t===1?"rgb(":"rgba("}${fe(this.r)}, ${fe(this.g)}, ${fe(this.b)}${t===1?")":`, ${t})`}`}function Ki(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function fe(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function ue(t){return t=fe(t),(t<16?"0":"")+t.toString(16)}function Po(t,e,i,r){return r<=0?t=e=i=NaN:i<=0||i>=1?t=e=NaN:e<=0&&(t=NaN),new At(t,e,i,r)}function da(t){if(t instanceof At)return new At(t.h,t.s,t.l,t.opacity);if(t instanceof mi||(t=ai(t)),!t)return new At;if(t instanceof At)return t;t=t.rgb();var e=t.r/255,i=t.g/255,r=t.b/255,n=Math.min(e,i,r),o=Math.max(e,i,r),s=NaN,a=o-n,l=(o+n)/2;return a?(e===o?s=(i-r)/a+(i<r)*6:i===o?s=(r-e)/a+2:s=(e-i)/a+4,a/=l<.5?o+n:2-o-n,s*=60):a=l>0&&l<1?0:s,new At(s,a,l,t.opacity)}function ju(t,e,i,r){return arguments.length===1?da(t):new At(t,e,i,r??1)}function At(t,e,i,r){this.h=+t,this.s=+e,this.l=+i,this.opacity=+r}Ln(At,ju,fa(mi,{brighter(t){return t=t==null?Xi:Math.pow(Xi,t),new At(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?oi:Math.pow(oi,t),new At(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,i=this.l,r=i+(i<.5?i:1-i)*e,n=2*i-r;return new mt(qr(t>=240?t-240:t+120,n,r),qr(t,n,r),qr(t<120?t+240:t-120,n,r),this.opacity)},clamp(){return new At(qo(this.h),wi(this.s),wi(this.l),Ki(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=Ki(this.opacity);return`${t===1?"hsl(":"hsla("}${qo(this.h)}, ${wi(this.s)*100}%, ${wi(this.l)*100}%${t===1?")":`, ${t})`}`}}));function qo(t){return t=(t||0)%360,t<0?t+360:t}function wi(t){return Math.max(0,Math.min(1,t||0))}function qr(t,e,i){return(t<60?e+(i-e)*t/60:t<180?i:t<240?e+(i-e)*(240-t)/60:e)*255}const Fn=t=>()=>t;function pa(t,e){return function(i){return t+i*e}}function Uu(t,e,i){return t=Math.pow(t,i),e=Math.pow(e,i)-t,i=1/i,function(r){return Math.pow(t+r*e,i)}}function rT(t,e){var i=e-t;return i?pa(t,i>180||i<-180?i-360*Math.round(i/360):i):Fn(isNaN(t)?e:t)}function Yu(t){return(t=+t)==1?ga:function(e,i){return i-e?Uu(e,i,t):Fn(isNaN(e)?i:e)}}function ga(t,e){var i=e-t;return i?pa(t,i):Fn(isNaN(t)?e:t)}const zo=function t(e){var i=Yu(e);function r(n,o){var s=i((n=nn(n)).r,(o=nn(o)).r),a=i(n.g,o.g),l=i(n.b,o.b),c=ga(n.opacity,o.opacity);return function(u){return n.r=s(u),n.g=a(u),n.b=l(u),n.opacity=c(u),n+""}}return r.gamma=t,r}(1);function ie(t,e){return t=+t,e=+e,function(i){return t*(1-i)+e*i}}var on=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,zr=new RegExp(on.source,"g");function Gu(t){return function(){return t}}function Vu(t){return function(e){return t(e)+""}}function Xu(t,e){var i=on.lastIndex=zr.lastIndex=0,r,n,o,s=-1,a=[],l=[];for(t=t+"",e=e+"";(r=on.exec(t))&&(n=zr.exec(e));)(o=n.index)>i&&(o=e.slice(i,o),a[s]?a[s]+=o:a[++s]=o),(r=r[0])===(n=n[0])?a[s]?a[s]+=n:a[++s]=n:(a[++s]=null,l.push({i:s,x:ie(r,n)})),i=zr.lastIndex;return i<e.length&&(o=e.slice(i),a[s]?a[s]+=o:a[++s]=o),a.length<2?l[0]?Vu(l[0].x):Gu(e):(e=l.length,function(c){for(var u=0,f;u<e;++u)a[(f=l[u]).i]=f.x(c);return a.join("")})}var Wo=180/Math.PI,sn={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ma(t,e,i,r,n,o){var s,a,l;return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(l=t*i+e*r)&&(i-=t*l,r-=e*l),(a=Math.sqrt(i*i+r*r))&&(i/=a,r/=a,l/=a),t*r<e*i&&(t=-t,e=-e,l=-l,s=-s),{translateX:n,translateY:o,rotate:Math.atan2(e,t)*Wo,skewX:Math.atan(l)*Wo,scaleX:s,scaleY:a}}var Bi;function Ku(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?sn:ma(e.a,e.b,e.c,e.d,e.e,e.f)}function Zu(t){return t==null||(Bi||(Bi=document.createElementNS("http://www.w3.org/2000/svg","g")),Bi.setAttribute("transform",t),!(t=Bi.transform.baseVal.consolidate()))?sn:(t=t.matrix,ma(t.a,t.b,t.c,t.d,t.e,t.f))}function _a(t,e,i,r){function n(c){return c.length?c.pop()+" ":""}function o(c,u,f,h,d,_){if(c!==f||u!==h){var T=d.push("translate(",null,e,null,i);_.push({i:T-4,x:ie(c,f)},{i:T-2,x:ie(u,h)})}else(f||h)&&d.push("translate("+f+e+h+i)}function s(c,u,f,h){c!==u?(c-u>180?u+=360:u-c>180&&(c+=360),h.push({i:f.push(n(f)+"rotate(",null,r)-2,x:ie(c,u)})):u&&f.push(n(f)+"rotate("+u+r)}function a(c,u,f,h){c!==u?h.push({i:f.push(n(f)+"skewX(",null,r)-2,x:ie(c,u)}):u&&f.push(n(f)+"skewX("+u+r)}function l(c,u,f,h,d,_){if(c!==f||u!==h){var T=d.push(n(d)+"scale(",null,",",null,")");_.push({i:T-4,x:ie(c,f)},{i:T-2,x:ie(u,h)})}else(f!==1||h!==1)&&d.push(n(d)+"scale("+f+","+h+")")}return function(c,u){var f=[],h=[];return c=t(c),u=t(u),o(c.translateX,c.translateY,u.translateX,u.translateY,f,h),s(c.rotate,u.rotate,f,h),a(c.skewX,u.skewX,f,h),l(c.scaleX,c.scaleY,u.scaleX,u.scaleY,f,h),c=u=null,function(d){for(var _=-1,T=h.length,w;++_<T;)f[(w=h[_]).i]=w.x(d);return f.join("")}}}var Ju=_a(Ku,"px, ","px)","deg)"),Qu=_a(Zu,", ",")",")"),Ee=0,Ke=0,je=0,ya=1e3,Zi,Ze,Ji=0,ge=0,_r=0,li=typeof performance=="object"&&performance.now?performance:Date,Ca=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function En(){return ge||(Ca(tf),ge=li.now()+_r)}function tf(){ge=0}function Qi(){this._call=this._time=this._next=null}Qi.prototype=ba.prototype={constructor:Qi,restart:function(t,e,i){if(typeof t!="function")throw new TypeError("callback is not a function");i=(i==null?En():+i)+(e==null?0:+e),!this._next&&Ze!==this&&(Ze?Ze._next=this:Zi=this,Ze=this),this._call=t,this._time=i,an()},stop:function(){this._call&&(this._call=null,this._time=1/0,an())}};function ba(t,e,i){var r=new Qi;return r.restart(t,e,i),r}function ef(){En(),++Ee;for(var t=Zi,e;t;)(e=ge-t._time)>=0&&t._call.call(void 0,e),t=t._next;--Ee}function Ho(){ge=(Ji=li.now())+_r,Ee=Ke=0;try{ef()}finally{Ee=0,nf(),ge=0}}function rf(){var t=li.now(),e=t-Ji;e>ya&&(_r-=e,Ji=t)}function nf(){for(var t,e=Zi,i,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(i=e._next,e._next=null,e=t?t._next=i:Zi=i);Ze=t,an(r)}function an(t){if(!Ee){Ke&&(Ke=clearTimeout(Ke));var e=t-ge;e>24?(t<1/0&&(Ke=setTimeout(Ho,t-li.now()-_r)),je&&(je=clearInterval(je))):(je||(Ji=li.now(),je=setInterval(rf,ya)),Ee=1,Ca(Ho))}}function jo(t,e,i){var r=new Qi;return e=e==null?0:+e,r.restart(n=>{r.stop(),t(n+e)},e,i),r}var of=Qs("start","end","cancel","interrupt"),sf=[],xa=0,Uo=1,ln=2,Ni=3,Yo=4,cn=5,Ri=6;function yr(t,e,i,r,n,o){var s=t.__transition;if(!s)t.__transition={};else if(i in s)return;af(t,i,{name:e,index:r,group:n,on:of,tween:sf,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:xa})}function On(t,e){var i=Et(t,e);if(i.state>xa)throw new Error("too late; already scheduled");return i}function Nt(t,e){var i=Et(t,e);if(i.state>Ni)throw new Error("too late; already running");return i}function Et(t,e){var i=t.__transition;if(!i||!(i=i[e]))throw new Error("transition not found");return i}function af(t,e,i){var r=t.__transition,n;r[e]=i,i.timer=ba(o,0,i.time);function o(c){i.state=Uo,i.timer.restart(s,i.delay,i.time),i.delay<=c&&s(c-i.delay)}function s(c){var u,f,h,d;if(i.state!==Uo)return l();for(u in r)if(d=r[u],d.name===i.name){if(d.state===Ni)return jo(s);d.state===Yo?(d.state=Ri,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete r[u]):+u<e&&(d.state=Ri,d.timer.stop(),d.on.call("cancel",t,t.__data__,d.index,d.group),delete r[u])}if(jo(function(){i.state===Ni&&(i.state=Yo,i.timer.restart(a,i.delay,i.time),a(c))}),i.state=ln,i.on.call("start",t,t.__data__,i.index,i.group),i.state===ln){for(i.state=Ni,n=new Array(h=i.tween.length),u=0,f=-1;u<h;++u)(d=i.tween[u].value.call(t,t.__data__,i.index,i.group))&&(n[++f]=d);n.length=f+1}}function a(c){for(var u=c<i.duration?i.ease.call(null,c/i.duration):(i.timer.restart(l),i.state=cn,1),f=-1,h=n.length;++f<h;)n[f].call(t,u);i.state===cn&&(i.on.call("end",t,t.__data__,i.index,i.group),l())}function l(){i.state=Ri,i.timer.stop(),delete r[e];for(var c in r)return;delete t.__transition}}function lf(t,e){var i=t.__transition,r,n,o=!0,s;if(i){e=e==null?null:e+"";for(s in i){if((r=i[s]).name!==e){o=!1;continue}n=r.state>ln&&r.state<cn,r.state=Ri,r.timer.stop(),r.on.call(n?"interrupt":"cancel",t,t.__data__,r.index,r.group),delete i[s]}o&&delete t.__transition}}function cf(t){return this.each(function(){lf(this,t)})}function hf(t,e){var i,r;return function(){var n=Nt(this,t),o=n.tween;if(o!==i){r=i=o;for(var s=0,a=r.length;s<a;++s)if(r[s].name===e){r=r.slice(),r.splice(s,1);break}}n.tween=r}}function uf(t,e,i){var r,n;if(typeof i!="function")throw new Error;return function(){var o=Nt(this,t),s=o.tween;if(s!==r){n=(r=s).slice();for(var a={name:e,value:i},l=0,c=n.length;l<c;++l)if(n[l].name===e){n[l]=a;break}l===c&&n.push(a)}o.tween=n}}function ff(t,e){var i=this._id;if(t+="",arguments.length<2){for(var r=Et(this.node(),i).tween,n=0,o=r.length,s;n<o;++n)if((s=r[n]).name===t)return s.value;return null}return this.each((e==null?hf:uf)(i,t,e))}function Mn(t,e,i){var r=t._id;return t.each(function(){var n=Nt(this,r);(n.value||(n.value={}))[e]=i.apply(this,arguments)}),function(n){return Et(n,r).value[e]}}function Ta(t,e){var i;return(typeof e=="number"?ie:e instanceof ai?zo:(i=ai(e))?(e=i,zo):Xu)(t,e)}function df(t){return function(){this.removeAttribute(t)}}function pf(t){return function(){this.removeAttributeNS(t.space,t.local)}}function gf(t,e,i){var r,n=i+"",o;return function(){var s=this.getAttribute(t);return s===n?null:s===r?o:o=e(r=s,i)}}function mf(t,e,i){var r,n=i+"",o;return function(){var s=this.getAttributeNS(t.space,t.local);return s===n?null:s===r?o:o=e(r=s,i)}}function _f(t,e,i){var r,n,o;return function(){var s,a=i(this),l;return a==null?void this.removeAttribute(t):(s=this.getAttribute(t),l=a+"",s===l?null:s===r&&l===n?o:(n=l,o=e(r=s,a)))}}function yf(t,e,i){var r,n,o;return function(){var s,a=i(this),l;return a==null?void this.removeAttributeNS(t.space,t.local):(s=this.getAttributeNS(t.space,t.local),l=a+"",s===l?null:s===r&&l===n?o:(n=l,o=e(r=s,a)))}}function Cf(t,e){var i=mr(t),r=i==="transform"?Qu:Ta;return this.attrTween(t,typeof e=="function"?(i.local?yf:_f)(i,r,Mn(this,"attr."+t,e)):e==null?(i.local?pf:df)(i):(i.local?mf:gf)(i,r,e))}function bf(t,e){return function(i){this.setAttribute(t,e.call(this,i))}}function xf(t,e){return function(i){this.setAttributeNS(t.space,t.local,e.call(this,i))}}function Tf(t,e){var i,r;function n(){var o=e.apply(this,arguments);return o!==r&&(i=(r=o)&&xf(t,o)),i}return n._value=e,n}function vf(t,e){var i,r;function n(){var o=e.apply(this,arguments);return o!==r&&(i=(r=o)&&bf(t,o)),i}return n._value=e,n}function kf(t,e){var i="attr."+t;if(arguments.length<2)return(i=this.tween(i))&&i._value;if(e==null)return this.tween(i,null);if(typeof e!="function")throw new Error;var r=mr(t);return this.tween(i,(r.local?Tf:vf)(r,e))}function Sf(t,e){return function(){On(this,t).delay=+e.apply(this,arguments)}}function wf(t,e){return e=+e,function(){On(this,t).delay=e}}function Bf(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?Sf:wf)(e,t)):Et(this.node(),e).delay}function Af(t,e){return function(){Nt(this,t).duration=+e.apply(this,arguments)}}function Lf(t,e){return e=+e,function(){Nt(this,t).duration=e}}function Ff(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?Af:Lf)(e,t)):Et(this.node(),e).duration}function Ef(t,e){if(typeof e!="function")throw new Error;return function(){Nt(this,t).ease=e}}function Of(t){var e=this._id;return arguments.length?this.each(Ef(e,t)):Et(this.node(),e).ease}function Mf(t,e){return function(){var i=e.apply(this,arguments);if(typeof i!="function")throw new Error;Nt(this,t).ease=i}}function $f(t){if(typeof t!="function")throw new Error;return this.each(Mf(this._id,t))}function If(t){typeof t!="function"&&(t=ia(t));for(var e=this._groups,i=e.length,r=new Array(i),n=0;n<i;++n)for(var o=e[n],s=o.length,a=r[n]=[],l,c=0;c<s;++c)(l=o[c])&&t.call(l,l.__data__,c,o)&&a.push(l);return new Xt(r,this._parents,this._name,this._id)}function Df(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,i=t._groups,r=e.length,n=i.length,o=Math.min(r,n),s=new Array(r),a=0;a<o;++a)for(var l=e[a],c=i[a],u=l.length,f=s[a]=new Array(u),h,d=0;d<u;++d)(h=l[d]||c[d])&&(f[d]=h);for(;a<r;++a)s[a]=e[a];return new Xt(s,this._parents,this._name,this._id)}function Nf(t){return(t+"").trim().split(/^|\s+/).every(function(e){var i=e.indexOf(".");return i>=0&&(e=e.slice(0,i)),!e||e==="start"})}function Rf(t,e,i){var r,n,o=Nf(e)?On:Nt;return function(){var s=o(this,t),a=s.on;a!==r&&(n=(r=a).copy()).on(e,i),s.on=n}}function Pf(t,e){var i=this._id;return arguments.length<2?Et(this.node(),i).on.on(t):this.each(Rf(i,t,e))}function qf(t){return function(){var e=this.parentNode;for(var i in this.__transition)if(+i!==t)return;e&&e.removeChild(this)}}function zf(){return this.on("end.remove",qf(this._id))}function Wf(t){var e=this._name,i=this._id;typeof t!="function"&&(t=Bn(t));for(var r=this._groups,n=r.length,o=new Array(n),s=0;s<n;++s)for(var a=r[s],l=a.length,c=o[s]=new Array(l),u,f,h=0;h<l;++h)(u=a[h])&&(f=t.call(u,u.__data__,h,a))&&("__data__"in u&&(f.__data__=u.__data__),c[h]=f,yr(c[h],e,i,h,c,Et(u,i)));return new Xt(o,this._parents,e,i)}function Hf(t){var e=this._name,i=this._id;typeof t!="function"&&(t=ea(t));for(var r=this._groups,n=r.length,o=[],s=[],a=0;a<n;++a)for(var l=r[a],c=l.length,u,f=0;f<c;++f)if(u=l[f]){for(var h=t.call(u,u.__data__,f,l),d,_=Et(u,i),T=0,w=h.length;T<w;++T)(d=h[T])&&yr(d,e,i,T,h,_);o.push(h),s.push(u)}return new Xt(o,s,e,i)}var jf=gi.prototype.constructor;function Uf(){return new jf(this._groups,this._parents)}function Yf(t,e){var i,r,n;return function(){var o=Fe(this,t),s=(this.style.removeProperty(t),Fe(this,t));return o===s?null:o===i&&s===r?n:n=e(i=o,r=s)}}function va(t){return function(){this.style.removeProperty(t)}}function Gf(t,e,i){var r,n=i+"",o;return function(){var s=Fe(this,t);return s===n?null:s===r?o:o=e(r=s,i)}}function Vf(t,e,i){var r,n,o;return function(){var s=Fe(this,t),a=i(this),l=a+"";return a==null&&(l=a=(this.style.removeProperty(t),Fe(this,t))),s===l?null:s===r&&l===n?o:(n=l,o=e(r=s,a))}}function Xf(t,e){var i,r,n,o="style."+e,s="end."+o,a;return function(){var l=Nt(this,t),c=l.on,u=l.value[o]==null?a||(a=va(e)):void 0;(c!==i||n!==u)&&(r=(i=c).copy()).on(s,n=u),l.on=r}}function Kf(t,e,i){var r=(t+="")=="transform"?Ju:Ta;return e==null?this.styleTween(t,Yf(t,r)).on("end.style."+t,va(t)):typeof e=="function"?this.styleTween(t,Vf(t,r,Mn(this,"style."+t,e))).each(Xf(this._id,t)):this.styleTween(t,Gf(t,r,e),i).on("end.style."+t,null)}function Zf(t,e,i){return function(r){this.style.setProperty(t,e.call(this,r),i)}}function Jf(t,e,i){var r,n;function o(){var s=e.apply(this,arguments);return s!==n&&(r=(n=s)&&Zf(t,s,i)),r}return o._value=e,o}function Qf(t,e,i){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!="function")throw new Error;return this.tween(r,Jf(t,e,i??""))}function td(t){return function(){this.textContent=t}}function ed(t){return function(){var e=t(this);this.textContent=e??""}}function id(t){return this.tween("text",typeof t=="function"?ed(Mn(this,"text",t)):td(t==null?"":t+""))}function rd(t){return function(e){this.textContent=t.call(this,e)}}function nd(t){var e,i;function r(){var n=t.apply(this,arguments);return n!==i&&(e=(i=n)&&rd(n)),e}return r._value=t,r}function od(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,nd(t))}function sd(){for(var t=this._name,e=this._id,i=ka(),r=this._groups,n=r.length,o=0;o<n;++o)for(var s=r[o],a=s.length,l,c=0;c<a;++c)if(l=s[c]){var u=Et(l,e);yr(l,t,i,c,s,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new Xt(r,this._parents,t,i)}function ad(){var t,e,i=this,r=i._id,n=i.size();return new Promise(function(o,s){var a={value:s},l={value:function(){--n===0&&o()}};i.each(function(){var c=Nt(this,r),u=c.on;u!==t&&(e=(t=u).copy(),e._.cancel.push(a),e._.interrupt.push(a),e._.end.push(l)),c.on=e}),n===0&&o()})}var ld=0;function Xt(t,e,i,r){this._groups=t,this._parents=e,this._name=i,this._id=r}function ka(){return++ld}var jt=gi.prototype;Xt.prototype={constructor:Xt,select:Wf,selectAll:Hf,selectChild:jt.selectChild,selectChildren:jt.selectChildren,filter:If,merge:Df,selection:Uf,transition:sd,call:jt.call,nodes:jt.nodes,node:jt.node,size:jt.size,empty:jt.empty,each:jt.each,on:Pf,attr:Cf,attrTween:kf,style:Kf,styleTween:Qf,text:id,textTween:od,remove:zf,tween:ff,delay:Bf,duration:Ff,ease:Of,easeVarying:$f,end:ad,[Symbol.iterator]:jt[Symbol.iterator]};function cd(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var hd={time:null,delay:0,duration:250,ease:cd};function ud(t,e){for(var i;!(i=t.__transition)||!(i=i[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return i}function fd(t){var e,i;t instanceof Xt?(e=t._id,t=t._name):(e=ka(),(i=hd).time=En(),t=t==null?null:t+"");for(var r=this._groups,n=r.length,o=0;o<n;++o)for(var s=r[o],a=s.length,l,c=0;c<a;++c)(l=s[c])&&yr(l,t,e,c,s,i||ud(l,e));return new Xt(r,this._parents,t,e)}gi.prototype.interrupt=cf;gi.prototype.transition=fd;const nT=Math.abs,oT=Math.atan2,sT=Math.cos,aT=Math.max,lT=Math.min,cT=Math.sin,hT=Math.sqrt,Go=1e-12,$n=Math.PI,Vo=$n/2,uT=2*$n;function fT(t){return t>1?0:t<-1?$n:Math.acos(t)}function dT(t){return t>=1?Vo:t<=-1?-Vo:Math.asin(t)}function Sa(t){this._context=t}Sa.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e);break}}};function dd(t){return new Sa(t)}class wa{constructor(e,i){this._context=e,this._x=i}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,i){switch(e=+e,i=+i,this._point){case 0:{this._point=1,this._line?this._context.lineTo(e,i):this._context.moveTo(e,i);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,i,e,i):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+i)/2,e,this._y0,e,i);break}}this._x0=e,this._y0=i}}function pd(t){return new wa(t,!0)}function gd(t){return new wa(t,!1)}function ne(){}function tr(t,e,i){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+i)/6)}function Cr(t){this._context=t}Cr.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:tr(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:tr(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function md(t){return new Cr(t)}function Ba(t){this._context=t}Ba.prototype={areaStart:ne,areaEnd:ne,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:tr(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function _d(t){return new Ba(t)}function Aa(t){this._context=t}Aa.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var i=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(i,r):this._context.moveTo(i,r);break;case 3:this._point=4;default:tr(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function yd(t){return new Aa(t)}function La(t,e){this._basis=new Cr(t),this._beta=e}La.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,i=t.length-1;if(i>0)for(var r=t[0],n=e[0],o=t[i]-r,s=e[i]-n,a=-1,l;++a<=i;)l=a/i,this._basis.point(this._beta*t[a]+(1-this._beta)*(r+l*o),this._beta*e[a]+(1-this._beta)*(n+l*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};const Cd=function t(e){function i(r){return e===1?new Cr(r):new La(r,e)}return i.beta=function(r){return t(+r)},i}(.85);function er(t,e,i){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-i),t._x2,t._y2)}function In(t,e){this._context=t,this._k=(1-e)/6}In.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:er(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:er(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const bd=function t(e){function i(r){return new In(r,e)}return i.tension=function(r){return t(+r)},i}(0);function Dn(t,e){this._context=t,this._k=(1-e)/6}Dn.prototype={areaStart:ne,areaEnd:ne,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:er(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const xd=function t(e){function i(r){return new Dn(r,e)}return i.tension=function(r){return t(+r)},i}(0);function Nn(t,e){this._context=t,this._k=(1-e)/6}Nn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:er(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Td=function t(e){function i(r){return new Nn(r,e)}return i.tension=function(r){return t(+r)},i}(0);function Rn(t,e,i){var r=t._x1,n=t._y1,o=t._x2,s=t._y2;if(t._l01_a>Go){var a=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*a-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,n=(n*a-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>Go){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,u=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*c+t._x1*t._l23_2a-e*t._l12_2a)/u,s=(s*c+t._y1*t._l23_2a-i*t._l12_2a)/u}t._context.bezierCurveTo(r,n,o,s,t._x2,t._y2)}function Fa(t,e){this._context=t,this._alpha=e}Fa.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var i=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:Rn(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const vd=function t(e){function i(r){return e?new Fa(r,e):new In(r,0)}return i.alpha=function(r){return t(+r)},i}(.5);function Ea(t,e){this._context=t,this._alpha=e}Ea.prototype={areaStart:ne,areaEnd:ne,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){if(t=+t,e=+e,this._point){var i=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Rn(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const kd=function t(e){function i(r){return e?new Ea(r,e):new Dn(r,0)}return i.alpha=function(r){return t(+r)},i}(.5);function Oa(t,e){this._context=t,this._alpha=e}Oa.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var i=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Rn(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Sd=function t(e){function i(r){return e?new Oa(r,e):new Nn(r,0)}return i.alpha=function(r){return t(+r)},i}(.5);function Ma(t){this._context=t}Ma.prototype={areaStart:ne,areaEnd:ne,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function wd(t){return new Ma(t)}function Xo(t){return t<0?-1:1}function Ko(t,e,i){var r=t._x1-t._x0,n=e-t._x1,o=(t._y1-t._y0)/(r||n<0&&-0),s=(i-t._y1)/(n||r<0&&-0),a=(o*n+s*r)/(r+n);return(Xo(o)+Xo(s))*Math.min(Math.abs(o),Math.abs(s),.5*Math.abs(a))||0}function Zo(t,e){var i=t._x1-t._x0;return i?(3*(t._y1-t._y0)/i-e)/2:e}function Wr(t,e,i){var r=t._x0,n=t._y0,o=t._x1,s=t._y1,a=(o-r)/3;t._context.bezierCurveTo(r+a,n+a*e,o-a,s-a*i,o,s)}function ir(t){this._context=t}ir.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:Wr(this,this._t0,Zo(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var i=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,Wr(this,Zo(this,i=Ko(this,t,e)),i);break;default:Wr(this,this._t0,i=Ko(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=i}}};function $a(t){this._context=new Ia(t)}($a.prototype=Object.create(ir.prototype)).point=function(t,e){ir.prototype.point.call(this,e,t)};function Ia(t){this._context=t}Ia.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,i,r,n,o){this._context.bezierCurveTo(e,t,r,i,o,n)}};function Bd(t){return new ir(t)}function Ad(t){return new $a(t)}function Da(t){this._context=t}Da.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,i=t.length;if(i)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),i===2)this._context.lineTo(t[1],e[1]);else for(var r=Jo(t),n=Jo(e),o=0,s=1;s<i;++o,++s)this._context.bezierCurveTo(r[0][o],n[0][o],r[1][o],n[1][o],t[s],e[s]);(this._line||this._line!==0&&i===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}};function Jo(t){var e,i=t.length-1,r,n=new Array(i),o=new Array(i),s=new Array(i);for(n[0]=0,o[0]=2,s[0]=t[0]+2*t[1],e=1;e<i-1;++e)n[e]=1,o[e]=4,s[e]=4*t[e]+2*t[e+1];for(n[i-1]=2,o[i-1]=7,s[i-1]=8*t[i-1]+t[i],e=1;e<i;++e)r=n[e]/o[e-1],o[e]-=r,s[e]-=r*s[e-1];for(n[i-1]=s[i-1]/o[i-1],e=i-2;e>=0;--e)n[e]=(s[e]-n[e+1])/o[e];for(o[i-1]=(t[i]+n[i-1])/2,e=0;e<i-1;++e)o[e]=2*t[e+1]-n[e+1];return[n,o]}function Ld(t){return new Da(t)}function br(t,e){this._context=t,this._t=e}br.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var i=this._x*(1-this._t)+t*this._t;this._context.lineTo(i,this._y),this._context.lineTo(i,e)}break}}this._x=t,this._y=e}};function Fd(t){return new br(t,.5)}function Ed(t){return new br(t,0)}function Od(t){return new br(t,1)}function Je(t,e,i){this.k=t,this.x=e,this.y=i}Je.prototype={constructor:Je,scale:function(t){return t===1?this:new Je(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new Je(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};Je.prototype;/*! @license DOMPurify 3.0.9 | (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.9/LICENSE */const{entries:Na,setPrototypeOf:Qo,isFrozen:Md,getPrototypeOf:$d,getOwnPropertyDescriptor:Id}=Object;let{freeze:ft,seal:Ft,create:Ra}=Object,{apply:hn,construct:un}=typeof Reflect<"u"&&Reflect;ft||(ft=function(e){return e});Ft||(Ft=function(e){return e});hn||(hn=function(e,i,r){return e.apply(i,r)});un||(un=function(e,i){return new e(...i)});const Ai=xt(Array.prototype.forEach),ts=xt(Array.prototype.pop),Ue=xt(Array.prototype.push),Pi=xt(String.prototype.toLowerCase),Hr=xt(String.prototype.toString),Dd=xt(String.prototype.match),Ye=xt(String.prototype.replace),Nd=xt(String.prototype.indexOf),Rd=xt(String.prototype.trim),Bt=xt(Object.prototype.hasOwnProperty),Ct=xt(RegExp.prototype.test),Ge=Pd(TypeError);function xt(t){return function(e){for(var i=arguments.length,r=new Array(i>1?i-1:0),n=1;n<i;n++)r[n-1]=arguments[n];return hn(t,e,r)}}function Pd(t){return function(){for(var e=arguments.length,i=new Array(e),r=0;r<e;r++)i[r]=arguments[r];return un(t,i)}}function U(t,e){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Pi;Qo&&Qo(t,null);let r=e.length;for(;r--;){let n=e[r];if(typeof n=="string"){const o=i(n);o!==n&&(Md(e)||(e[r]=o),n=o)}t[n]=!0}return t}function qd(t){for(let e=0;e<t.length;e++)Bt(t,e)||(t[e]=null);return t}function ce(t){const e=Ra(null);for(const[i,r]of Na(t))Bt(t,i)&&(Array.isArray(r)?e[i]=qd(r):r&&typeof r=="object"&&r.constructor===Object?e[i]=ce(r):e[i]=r);return e}function Li(t,e){for(;t!==null;){const r=Id(t,e);if(r){if(r.get)return xt(r.get);if(typeof r.value=="function")return xt(r.value)}t=$d(t)}function i(){return null}return i}const es=ft(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),jr=ft(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Ur=ft(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),zd=ft(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Yr=ft(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Wd=ft(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),is=ft(["#text"]),rs=ft(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),Gr=ft(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),ns=ft(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Fi=ft(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Hd=Ft(/\{\{[\w\W]*|[\w\W]*\}\}/gm),jd=Ft(/<%[\w\W]*|[\w\W]*%>/gm),Ud=Ft(/\${[\w\W]*}/gm),Yd=Ft(/^data-[\-\w.\u00B7-\uFFFF]/),Gd=Ft(/^aria-[\-\w]+$/),Pa=Ft(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Vd=Ft(/^(?:\w+script|data):/i),Xd=Ft(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),qa=Ft(/^html$/i);var os=Object.freeze({__proto__:null,MUSTACHE_EXPR:Hd,ERB_EXPR:jd,TMPLIT_EXPR:Ud,DATA_ATTR:Yd,ARIA_ATTR:Gd,IS_ALLOWED_URI:Pa,IS_SCRIPT_OR_DATA:Vd,ATTR_WHITESPACE:Xd,DOCTYPE_NAME:qa});const Kd=function(){return typeof window>"u"?null:window},Zd=function(e,i){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let r=null;const n="data-tt-policy-suffix";i&&i.hasAttribute(n)&&(r=i.getAttribute(n));const o="dompurify"+(r?"#"+r:"");try{return e.createPolicy(o,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}};function za(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Kd();const e=$=>za($);if(e.version="3.0.9",e.removed=[],!t||!t.document||t.document.nodeType!==9)return e.isSupported=!1,e;let{document:i}=t;const r=i,n=r.currentScript,{DocumentFragment:o,HTMLTemplateElement:s,Node:a,Element:l,NodeFilter:c,NamedNodeMap:u=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:f,DOMParser:h,trustedTypes:d}=t,_=l.prototype,T=Li(_,"cloneNode"),w=Li(_,"nextSibling"),A=Li(_,"childNodes"),y=Li(_,"parentNode");if(typeof s=="function"){const $=i.createElement("template");$.content&&$.content.ownerDocument&&(i=$.content.ownerDocument)}let E,L="";const{implementation:R,createNodeIterator:m,createDocumentFragment:b,getElementsByTagName:O}=i,{importNode:Zt}=r;let G={};e.isSupported=typeof Na=="function"&&typeof y=="function"&&R&&R.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Y,ERB_EXPR:St,TMPLIT_EXPR:Jt,DATA_ATTR:q,ARIA_ATTR:B,IS_SCRIPT_OR_DATA:x,ATTR_WHITESPACE:M}=os;let{IS_ALLOWED_URI:k}=os,S=null;const H=U({},[...es,...jr,...Ur,...Yr,...is]);let W=null;const K=U({},[...rs,...Gr,...ns,...Fi]);let j=Object.seal(Ra(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}})),J=null,rt=null,Pt=!0,wt=!0,Qt=!1,Ot=!0,Q=!1,nt=!1,qt=!1,te=!1,xe=!1,xi=!1,Ti=!1,ao=!0,lo=!1;const xc="user-content-";let $r=!0,ze=!1,Te={},ve=null;const co=U({},["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 ho=null;const uo=U({},["audio","video","img","source","image","track"]);let Ir=null;const fo=U({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),vi="http://www.w3.org/1998/Math/MathML",ki="http://www.w3.org/2000/svg",zt="http://www.w3.org/1999/xhtml";let ke=zt,Dr=!1,Nr=null;const Tc=U({},[vi,ki,zt],Hr);let We=null;const vc=["application/xhtml+xml","text/html"],kc="text/html";let it=null,Se=null;const Sc=i.createElement("form"),po=function(p){return p instanceof RegExp||p instanceof Function},Rr=function(){let p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Se&&Se===p)){if((!p||typeof p!="object")&&(p={}),p=ce(p),We=vc.indexOf(p.PARSER_MEDIA_TYPE)===-1?kc:p.PARSER_MEDIA_TYPE,it=We==="application/xhtml+xml"?Hr:Pi,S=Bt(p,"ALLOWED_TAGS")?U({},p.ALLOWED_TAGS,it):H,W=Bt(p,"ALLOWED_ATTR")?U({},p.ALLOWED_ATTR,it):K,Nr=Bt(p,"ALLOWED_NAMESPACES")?U({},p.ALLOWED_NAMESPACES,Hr):Tc,Ir=Bt(p,"ADD_URI_SAFE_ATTR")?U(ce(fo),p.ADD_URI_SAFE_ATTR,it):fo,ho=Bt(p,"ADD_DATA_URI_TAGS")?U(ce(uo),p.ADD_DATA_URI_TAGS,it):uo,ve=Bt(p,"FORBID_CONTENTS")?U({},p.FORBID_CONTENTS,it):co,J=Bt(p,"FORBID_TAGS")?U({},p.FORBID_TAGS,it):{},rt=Bt(p,"FORBID_ATTR")?U({},p.FORBID_ATTR,it):{},Te=Bt(p,"USE_PROFILES")?p.USE_PROFILES:!1,Pt=p.ALLOW_ARIA_ATTR!==!1,wt=p.ALLOW_DATA_ATTR!==!1,Qt=p.ALLOW_UNKNOWN_PROTOCOLS||!1,Ot=p.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Q=p.SAFE_FOR_TEMPLATES||!1,nt=p.WHOLE_DOCUMENT||!1,xe=p.RETURN_DOM||!1,xi=p.RETURN_DOM_FRAGMENT||!1,Ti=p.RETURN_TRUSTED_TYPE||!1,te=p.FORCE_BODY||!1,ao=p.SANITIZE_DOM!==!1,lo=p.SANITIZE_NAMED_PROPS||!1,$r=p.KEEP_CONTENT!==!1,ze=p.IN_PLACE||!1,k=p.ALLOWED_URI_REGEXP||Pa,ke=p.NAMESPACE||zt,j=p.CUSTOM_ELEMENT_HANDLING||{},p.CUSTOM_ELEMENT_HANDLING&&po(p.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(j.tagNameCheck=p.CUSTOM_ELEMENT_HANDLING.tagNameCheck),p.CUSTOM_ELEMENT_HANDLING&&po(p.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(j.attributeNameCheck=p.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),p.CUSTOM_ELEMENT_HANDLING&&typeof p.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(j.allowCustomizedBuiltInElements=p.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Q&&(wt=!1),xi&&(xe=!0),Te&&(S=U({},is),W=[],Te.html===!0&&(U(S,es),U(W,rs)),Te.svg===!0&&(U(S,jr),U(W,Gr),U(W,Fi)),Te.svgFilters===!0&&(U(S,Ur),U(W,Gr),U(W,Fi)),Te.mathMl===!0&&(U(S,Yr),U(W,ns),U(W,Fi))),p.ADD_TAGS&&(S===H&&(S=ce(S)),U(S,p.ADD_TAGS,it)),p.ADD_ATTR&&(W===K&&(W=ce(W)),U(W,p.ADD_ATTR,it)),p.ADD_URI_SAFE_ATTR&&U(Ir,p.ADD_URI_SAFE_ATTR,it),p.FORBID_CONTENTS&&(ve===co&&(ve=ce(ve)),U(ve,p.FORBID_CONTENTS,it)),$r&&(S["#text"]=!0),nt&&U(S,["html","head","body"]),S.table&&(U(S,["tbody"]),delete J.tbody),p.TRUSTED_TYPES_POLICY){if(typeof p.TRUSTED_TYPES_POLICY.createHTML!="function")throw Ge('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof p.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Ge('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');E=p.TRUSTED_TYPES_POLICY,L=E.createHTML("")}else E===void 0&&(E=Zd(d,n)),E!==null&&typeof L=="string"&&(L=E.createHTML(""));ft&&ft(p),Se=p}},go=U({},["mi","mo","mn","ms","mtext"]),mo=U({},["foreignobject","desc","title","annotation-xml"]),wc=U({},["title","style","font","a","script"]),_o=U({},[...jr,...Ur,...zd]),yo=U({},[...Yr,...Wd]),Bc=function(p){let C=y(p);(!C||!C.tagName)&&(C={namespaceURI:ke,tagName:"template"});const F=Pi(p.tagName),V=Pi(C.tagName);return Nr[p.namespaceURI]?p.namespaceURI===ki?C.namespaceURI===zt?F==="svg":C.namespaceURI===vi?F==="svg"&&(V==="annotation-xml"||go[V]):!!_o[F]:p.namespaceURI===vi?C.namespaceURI===zt?F==="math":C.namespaceURI===ki?F==="math"&&mo[V]:!!yo[F]:p.namespaceURI===zt?C.namespaceURI===ki&&!mo[V]||C.namespaceURI===vi&&!go[V]?!1:!yo[F]&&(wc[F]||!_o[F]):!!(We==="application/xhtml+xml"&&Nr[p.namespaceURI]):!1},ae=function(p){Ue(e.removed,{element:p});try{p.parentNode.removeChild(p)}catch{p.remove()}},Pr=function(p,C){try{Ue(e.removed,{attribute:C.getAttributeNode(p),from:C})}catch{Ue(e.removed,{attribute:null,from:C})}if(C.removeAttribute(p),p==="is"&&!W[p])if(xe||xi)try{ae(C)}catch{}else try{C.setAttribute(p,"")}catch{}},Co=function(p){let C=null,F=null;if(te)p="<remove></remove>"+p;else{const st=Dd(p,/^[\r\n\t ]+/);F=st&&st[0]}We==="application/xhtml+xml"&&ke===zt&&(p='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+p+"</body></html>");const V=E?E.createHTML(p):p;if(ke===zt)try{C=new h().parseFromString(V,We)}catch{}if(!C||!C.documentElement){C=R.createDocument(ke,"template",null);try{C.documentElement.innerHTML=Dr?L:V}catch{}}const ot=C.body||C.documentElement;return p&&F&&ot.insertBefore(i.createTextNode(F),ot.childNodes[0]||null),ke===zt?O.call(C,nt?"html":"body")[0]:nt?C.documentElement:ot},bo=function(p){return m.call(p.ownerDocument||p,p,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null)},Ac=function(p){return p instanceof f&&(typeof p.nodeName!="string"||typeof p.textContent!="string"||typeof p.removeChild!="function"||!(p.attributes instanceof u)||typeof p.removeAttribute!="function"||typeof p.setAttribute!="function"||typeof p.namespaceURI!="string"||typeof p.insertBefore!="function"||typeof p.hasChildNodes!="function")},xo=function(p){return typeof a=="function"&&p instanceof a},Wt=function(p,C,F){G[p]&&Ai(G[p],V=>{V.call(e,C,F,Se)})},To=function(p){let C=null;if(Wt("beforeSanitizeElements",p,null),Ac(p))return ae(p),!0;const F=it(p.nodeName);if(Wt("uponSanitizeElement",p,{tagName:F,allowedTags:S}),p.hasChildNodes()&&!xo(p.firstElementChild)&&Ct(/<[/\w]/g,p.innerHTML)&&Ct(/<[/\w]/g,p.textContent))return ae(p),!0;if(!S[F]||J[F]){if(!J[F]&&ko(F)&&(j.tagNameCheck instanceof RegExp&&Ct(j.tagNameCheck,F)||j.tagNameCheck instanceof Function&&j.tagNameCheck(F)))return!1;if($r&&!ve[F]){const V=y(p)||p.parentNode,ot=A(p)||p.childNodes;if(ot&&V){const st=ot.length;for(let dt=st-1;dt>=0;--dt)V.insertBefore(T(ot[dt],!0),w(p))}}return ae(p),!0}return p instanceof l&&!Bc(p)||(F==="noscript"||F==="noembed"||F==="noframes")&&Ct(/<\/no(script|embed|frames)/i,p.innerHTML)?(ae(p),!0):(Q&&p.nodeType===3&&(C=p.textContent,Ai([Y,St,Jt],V=>{C=Ye(C,V," ")}),p.textContent!==C&&(Ue(e.removed,{element:p.cloneNode()}),p.textContent=C)),Wt("afterSanitizeElements",p,null),!1)},vo=function(p,C,F){if(ao&&(C==="id"||C==="name")&&(F in i||F in Sc))return!1;if(!(wt&&!rt[C]&&Ct(q,C))){if(!(Pt&&Ct(B,C))){if(!W[C]||rt[C]){if(!(ko(p)&&(j.tagNameCheck instanceof RegExp&&Ct(j.tagNameCheck,p)||j.tagNameCheck instanceof Function&&j.tagNameCheck(p))&&(j.attributeNameCheck instanceof RegExp&&Ct(j.attributeNameCheck,C)||j.attributeNameCheck instanceof Function&&j.attributeNameCheck(C))||C==="is"&&j.allowCustomizedBuiltInElements&&(j.tagNameCheck instanceof RegExp&&Ct(j.tagNameCheck,F)||j.tagNameCheck instanceof Function&&j.tagNameCheck(F))))return!1}else if(!Ir[C]){if(!Ct(k,Ye(F,M,""))){if(!((C==="src"||C==="xlink:href"||C==="href")&&p!=="script"&&Nd(F,"data:")===0&&ho[p])){if(!(Qt&&!Ct(x,Ye(F,M,"")))){if(F)return!1}}}}}}return!0},ko=function(p){return p!=="annotation-xml"&&p.indexOf("-")>0},So=function(p){Wt("beforeSanitizeAttributes",p,null);const{attributes:C}=p;if(!C)return;const F={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:W};let V=C.length;for(;V--;){const ot=C[V],{name:st,namespaceURI:dt,value:le}=ot,He=it(st);let pt=st==="value"?le:Rd(le);if(F.attrName=He,F.attrValue=pt,F.keepAttr=!0,F.forceKeepAttr=void 0,Wt("uponSanitizeAttribute",p,F),pt=F.attrValue,F.forceKeepAttr||(Pr(st,p),!F.keepAttr))continue;if(!Ot&&Ct(/\/>/i,pt)){Pr(st,p);continue}Q&&Ai([Y,St,Jt],Bo=>{pt=Ye(pt,Bo," ")});const wo=it(p.nodeName);if(vo(wo,He,pt)){if(lo&&(He==="id"||He==="name")&&(Pr(st,p),pt=xc+pt),E&&typeof d=="object"&&typeof d.getAttributeType=="function"&&!dt)switch(d.getAttributeType(wo,He)){case"TrustedHTML":{pt=E.createHTML(pt);break}case"TrustedScriptURL":{pt=E.createScriptURL(pt);break}}try{dt?p.setAttributeNS(dt,st,pt):p.setAttribute(st,pt),ts(e.removed)}catch{}}}Wt("afterSanitizeAttributes",p,null)},Lc=function $(p){let C=null;const F=bo(p);for(Wt("beforeSanitizeShadowDOM",p,null);C=F.nextNode();)Wt("uponSanitizeShadowNode",C,null),!To(C)&&(C.content instanceof o&&$(C.content),So(C));Wt("afterSanitizeShadowDOM",p,null)};return e.sanitize=function($){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},C=null,F=null,V=null,ot=null;if(Dr=!$,Dr&&($="<!-->"),typeof $!="string"&&!xo($))if(typeof $.toString=="function"){if($=$.toString(),typeof $!="string")throw Ge("dirty is not a string, aborting")}else throw Ge("toString is not a function");if(!e.isSupported)return $;if(qt||Rr(p),e.removed=[],typeof $=="string"&&(ze=!1),ze){if($.nodeName){const le=it($.nodeName);if(!S[le]||J[le])throw Ge("root node is forbidden and cannot be sanitized in-place")}}else if($ instanceof a)C=Co("<!---->"),F=C.ownerDocument.importNode($,!0),F.nodeType===1&&F.nodeName==="BODY"||F.nodeName==="HTML"?C=F:C.appendChild(F);else{if(!xe&&!Q&&!nt&&$.indexOf("<")===-1)return E&&Ti?E.createHTML($):$;if(C=Co($),!C)return xe?null:Ti?L:""}C&&te&&ae(C.firstChild);const st=bo(ze?$:C);for(;V=st.nextNode();)To(V)||(V.content instanceof o&&Lc(V.content),So(V));if(ze)return $;if(xe){if(xi)for(ot=b.call(C.ownerDocument);C.firstChild;)ot.appendChild(C.firstChild);else ot=C;return(W.shadowroot||W.shadowrootmode)&&(ot=Zt.call(r,ot,!0)),ot}let dt=nt?C.outerHTML:C.innerHTML;return nt&&S["!doctype"]&&C.ownerDocument&&C.ownerDocument.doctype&&C.ownerDocument.doctype.name&&Ct(qa,C.ownerDocument.doctype.name)&&(dt="<!DOCTYPE "+C.ownerDocument.doctype.name+`>
`+dt),Q&&Ai([Y,St,Jt],le=>{dt=Ye(dt,le," ")}),E&&Ti?E.createHTML(dt):dt},e.setConfig=function(){let $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Rr($),qt=!0},e.clearConfig=function(){Se=null,qt=!1},e.isValidAttribute=function($,p,C){Se||Rr({});const F=it($),V=it(p);return vo(F,V,C)},e.addHook=function($,p){typeof p=="function"&&(G[$]=G[$]||[],Ue(G[$],p))},e.removeHook=function($){if(G[$])return ts(G[$])},e.removeHooks=function($){G[$]&&(G[$]=[])},e.removeAllHooks=function(){G={}},e}var Oe=za();const _i=/<br\s*\/?>/gi,Jd=t=>t?Ha(t).replace(/\\n/g,"#br#").split("#br#"):[""],Qd=(()=>{let t=!1;return()=>{t||(tp(),t=!0)}})();function tp(){const t="data-temp-href-target";Oe.addHook("beforeSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute("target")&&e.setAttribute(t,e.getAttribute("target")||"")}),Oe.addHook("afterSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute(t)&&(e.setAttribute("target",e.getAttribute(t)||""),e.removeAttribute(t),e.getAttribute("target")==="_blank"&&e.setAttribute("rel","noopener"))})}const Wa=t=>(Qd(),Oe.sanitize(t)),ss=(t,e)=>{var i;if(((i=e.flowchart)==null?void 0:i.htmlLabels)!==!1){const r=e.securityLevel;r==="antiscript"||r==="strict"?t=Wa(t):r!=="loose"&&(t=Ha(t),t=t.replace(/</g,"<").replace(/>/g,">"),t=t.replace(/=/g,"="),t=np(t))}return t},ci=(t,e)=>t&&(e.dompurifyConfig?t=Oe.sanitize(ss(t,e),e.dompurifyConfig).toString():t=Oe.sanitize(ss(t,e),{FORBID_TAGS:["style"]}).toString(),t),ep=(t,e)=>typeof t=="string"?ci(t,e):t.flat().map(i=>ci(i,e)),ip=t=>_i.test(t),rp=t=>t.split(_i),np=t=>t.replace(/#br#/g,"<br/>"),Ha=t=>t.replace(_i,"#br#"),op=t=>{let e="";return t&&(e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,e=e.replaceAll(/\(/g,"\\("),e=e.replaceAll(/\)/g,"\\)")),e},ja=t=>!(t===!1||["false","null","0"].includes(String(t).trim().toLowerCase())),sp=function(...t){const e=t.filter(i=>!isNaN(i));return Math.max(...e)},ap=function(...t){const e=t.filter(i=>!isNaN(i));return Math.min(...e)},pT=function(t){const e=t.split(/(,)/),i=[];for(let r=0;r<e.length;r++){let n=e[r];if(n===","&&r>0&&r+1<e.length){const o=e[r-1],s=e[r+1];lp(o,s)&&(n=o+","+s,r++,i.pop())}i.push(cp(n))}return i.join("")},fn=(t,e)=>Math.max(0,t.split(e).length-1),lp=(t,e)=>{const i=fn(t,"~"),r=fn(e,"~");return i===1&&r===1},cp=t=>{const e=fn(t,"~");let i=!1;if(e<=1)return t;e%2!==0&&t.startsWith("~")&&(t=t.substring(1),i=!0);const r=[...t];let n=r.indexOf("~"),o=r.lastIndexOf("~");for(;n!==-1&&o!==-1&&n!==o;)r[n]="<",r[o]=">",n=r.indexOf("~"),o=r.lastIndexOf("~");return i&&r.unshift("~"),r.join("")},as=()=>window.MathMLElement!==void 0,dn=/\$\$(.*)\$\$/g,ls=t=>{var e;return(((e=t.match(dn))==null?void 0:e.length)??0)>0},gT=async(t,e)=>{t=await hp(t,e);const i=document.createElement("div");i.innerHTML=t,i.id="katex-temp",i.style.visibility="hidden",i.style.position="absolute",i.style.top="0";const r=document.querySelector("body");r==null||r.insertAdjacentElement("beforeend",i);const n={width:i.clientWidth,height:i.clientHeight};return i.remove(),n},hp=async(t,e)=>{if(!ls(t))return t;if(!as()&&!e.legacyMathML)return t.replace(dn,"MathML is unsupported in this environment.");const{default:i}=await Z(()=>import("../katex-ffb0e8f1-xpx6yKzS.js"),[]);return t.split(_i).map(r=>ls(r)?`
<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">
${r}
</div>
`:`<div>${r}</div>`).join("").replace(dn,(r,n)=>i.renderToString(n,{throwOnError:!0,displayMode:!0,output:as()?"mathml":"htmlAndMathml"}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))},Pn={getRows:Jd,sanitizeText:ci,sanitizeTextOrArray:ep,hasBreaks:ip,splitBreaks:rp,lineBreakRegex:_i,removeScript:Wa,getUrl:op,evaluate:ja,getMax:sp,getMin:ap},qi={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{const e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,i)=>(i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+(e-t)*6*i:i<1/2?e:i<2/3?t+(e-t)*(2/3-i)*6:t),hsl2rgb:({h:t,s:e,l:i},r)=>{if(!e)return i*2.55;t/=360,e/=100,i/=100;const n=i<.5?i*(1+e):i+e-i*e,o=2*i-n;switch(r){case"r":return qi.hue2rgb(o,n,t+1/3)*255;case"g":return qi.hue2rgb(o,n,t)*255;case"b":return qi.hue2rgb(o,n,t-1/3)*255}},rgb2hsl:({r:t,g:e,b:i},r)=>{t/=255,e/=255,i/=255;const n=Math.max(t,e,i),o=Math.min(t,e,i),s=(n+o)/2;if(r==="l")return s*100;if(n===o)return 0;const a=n-o,l=s>.5?a/(2-n-o):a/(n+o);if(r==="s")return l*100;switch(n){case t:return((e-i)/a+(e<i?6:0))*60;case e:return((i-t)/a+2)*60;case i:return((t-e)/a+4)*60;default:return-1}}},up=qi,fp={clamp:(t,e,i)=>e>i?Math.min(e,Math.max(i,t)):Math.min(i,Math.max(e,t)),round:t=>Math.round(t*1e10)/1e10},dp=fp,pp={dec2hex:t=>{const e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}},gp=pp,mp={channel:up,lang:dp,unit:gp},z=mp,ee={};for(let t=0;t<=255;t++)ee[t]=z.unit.dec2hex(t);const at={ALL:0,RGB:1,HSL:2};class _p{constructor(){this.type=at.ALL}get(){return this.type}set(e){if(this.type&&this.type!==e)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=e}reset(){this.type=at.ALL}is(e){return this.type===e}}const yp=_p;class Cp{constructor(e,i){this.color=i,this.changed=!1,this.data=e,this.type=new yp}set(e,i){return this.color=i,this.changed=!1,this.data=e,this.type.type=at.ALL,this}_ensureHSL(){const e=this.data,{h:i,s:r,l:n}=e;i===void 0&&(e.h=z.channel.rgb2hsl(e,"h")),r===void 0&&(e.s=z.channel.rgb2hsl(e,"s")),n===void 0&&(e.l=z.channel.rgb2hsl(e,"l"))}_ensureRGB(){const e=this.data,{r:i,g:r,b:n}=e;i===void 0&&(e.r=z.channel.hsl2rgb(e,"r")),r===void 0&&(e.g=z.channel.hsl2rgb(e,"g")),n===void 0&&(e.b=z.channel.hsl2rgb(e,"b"))}get r(){const e=this.data,i=e.r;return!this.type.is(at.HSL)&&i!==void 0?i:(this._ensureHSL(),z.channel.hsl2rgb(e,"r"))}get g(){const e=this.data,i=e.g;return!this.type.is(at.HSL)&&i!==void 0?i:(this._ensureHSL(),z.channel.hsl2rgb(e,"g"))}get b(){const e=this.data,i=e.b;return!this.type.is(at.HSL)&&i!==void 0?i:(this._ensureHSL(),z.channel.hsl2rgb(e,"b"))}get h(){const e=this.data,i=e.h;return!this.type.is(at.RGB)&&i!==void 0?i:(this._ensureRGB(),z.channel.rgb2hsl(e,"h"))}get s(){const e=this.data,i=e.s;return!this.type.is(at.RGB)&&i!==void 0?i:(this._ensureRGB(),z.channel.rgb2hsl(e,"s"))}get l(){const e=this.data,i=e.l;return!this.type.is(at.RGB)&&i!==void 0?i:(this._ensureRGB(),z.channel.rgb2hsl(e,"l"))}get a(){return this.data.a}set r(e){this.type.set(at.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(at.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(at.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(at.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(at.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(at.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}}const bp=Cp,xp=new bp({r:0,g:0,b:0,a:0},"transparent"),xr=xp,Ua={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(t.charCodeAt(0)!==35)return;const e=t.match(Ua.re);if(!e)return;const i=e[1],r=parseInt(i,16),n=i.length,o=n%4===0,s=n>4,a=s?1:17,l=s?8:4,c=o?0:-1,u=s?255:15;return xr.set({r:(r>>l*(c+3)&u)*a,g:(r>>l*(c+2)&u)*a,b:(r>>l*(c+1)&u)*a,a:o?(r&u)*a/255:1},t)},stringify:t=>{const{r:e,g:i,b:r,a:n}=t;return n<1?`#${ee[Math.round(e)]}${ee[Math.round(i)]}${ee[Math.round(r)]}${ee[Math.round(n*255)]}`:`#${ee[Math.round(e)]}${ee[Math.round(i)]}${ee[Math.round(r)]}`}},Qe=Ua,zi={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:t=>{const e=t.match(zi.hueRe);if(e){const[,i,r]=e;switch(r){case"grad":return z.channel.clamp.h(parseFloat(i)*.9);case"rad":return z.channel.clamp.h(parseFloat(i)*180/Math.PI);case"turn":return z.channel.clamp.h(parseFloat(i)*360)}}return z.channel.clamp.h(parseFloat(t))},parse:t=>{const e=t.charCodeAt(0);if(e!==104&&e!==72)return;const i=t.match(zi.re);if(!i)return;const[,r,n,o,s,a]=i;return xr.set({h:zi._hue2deg(r),s:z.channel.clamp.s(parseFloat(n)),l:z.channel.clamp.l(parseFloat(o)),a:s?z.channel.clamp.a(a?parseFloat(s)/100:parseFloat(s)):1},t)},stringify:t=>{const{h:e,s:i,l:r,a:n}=t;return n<1?`hsla(${z.lang.round(e)}, ${z.lang.round(i)}%, ${z.lang.round(r)}%, ${n})`:`hsl(${z.lang.round(e)}, ${z.lang.round(i)}%, ${z.lang.round(r)}%)`}},Ei=zi,Wi={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:t=>{t=t.toLowerCase();const e=Wi.colors[t];if(e)return Qe.parse(e)},stringify:t=>{const e=Qe.stringify(t);for(const i in Wi.colors)if(Wi.colors[i]===e)return i}},cs=Wi,Ya={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:t=>{const e=t.charCodeAt(0);if(e!==114&&e!==82)return;const i=t.match(Ya.re);if(!i)return;const[,r,n,o,s,a,l,c,u]=i;return xr.set({r:z.channel.clamp.r(n?parseFloat(r)*2.55:parseFloat(r)),g:z.channel.clamp.g(s?parseFloat(o)*2.55:parseFloat(o)),b:z.channel.clamp.b(l?parseFloat(a)*2.55:parseFloat(a)),a:c?z.channel.clamp.a(u?parseFloat(c)/100:parseFloat(c)):1},t)},stringify:t=>{const{r:e,g:i,b:r,a:n}=t;return n<1?`rgba(${z.lang.round(e)}, ${z.lang.round(i)}, ${z.lang.round(r)}, ${z.lang.round(n)})`:`rgb(${z.lang.round(e)}, ${z.lang.round(i)}, ${z.lang.round(r)})`}},Oi=Ya,Tp={format:{keyword:cs,hex:Qe,rgb:Oi,rgba:Oi,hsl:Ei,hsla:Ei},parse:t=>{if(typeof t!="string")return t;const e=Qe.parse(t)||Oi.parse(t)||Ei.parse(t)||cs.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(at.HSL)||t.data.r===void 0?Ei.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?Oi.stringify(t):Qe.stringify(t)},It=Tp,vp=(t,e)=>{const i=It.parse(t);for(const r in e)i[r]=z.channel.clamp[r](e[r]);return It.stringify(i)},Ga=vp,kp=(t,e,i=0,r=1)=>{if(typeof t!="number")return Ga(t,{a:e});const n=xr.set({r:z.channel.clamp.r(t),g:z.channel.clamp.g(e),b:z.channel.clamp.b(i),a:z.channel.clamp.a(r)});return It.stringify(n)},ti=kp,Sp=t=>{const{r:e,g:i,b:r}=It.parse(t),n=.2126*z.channel.toLinear(e)+.7152*z.channel.toLinear(i)+.0722*z.channel.toLinear(r);return z.lang.round(n)},wp=Sp,Bp=t=>wp(t)>=.5,Ap=Bp,Lp=t=>!Ap(t),yi=Lp,Fp=(t,e,i)=>{const r=It.parse(t),n=r[e],o=z.channel.clamp[e](n+i);return n!==o&&(r[e]=o),It.stringify(r)},Va=Fp,Ep=(t,e)=>Va(t,"l",e),I=Ep,Op=(t,e)=>Va(t,"l",-e),P=Op,Mp=(t,e)=>{const i=It.parse(t),r={};for(const n in e)e[n]&&(r[n]=i[n]+e[n]);return Ga(t,r)},g=Mp,$p=(t,e,i=50)=>{const{r,g:n,b:o,a:s}=It.parse(t),{r:a,g:l,b:c,a:u}=It.parse(e),f=i/100,h=f*2-1,d=s-u,T=((h*d===-1?h:(h+d)/(1+h*d))+1)/2,w=1-T,A=r*T+a*w,y=n*T+l*w,E=o*T+c*w,L=s*f+u*(1-f);return ti(A,y,E,L)},Ip=$p,Dp=(t,e=100)=>{const i=It.parse(t);return i.r=255-i.r,i.g=255-i.g,i.b=255-i.b,Ip(i,t,e)},v=Dp,ut=(t,e)=>e?g(t,{s:-40,l:10}):g(t,{s:-40,l:-10}),Tr="#ffffff",vr="#f2f2f2";let Np=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(){var e,i,r,n,o,s,a,l,c,u,f;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||g(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||g(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ut(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ut(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ut(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ut(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||v(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||v(this.tertiaryColor),this.lineColor=this.lineColor||v(this.background),this.arrowheadColor=this.arrowheadColor||v(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?P(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||P(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||v(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||I(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||g(this.primaryColor,{h:30}),this.cScale4=this.cScale4||g(this.primaryColor,{h:60}),this.cScale5=this.cScale5||g(this.primaryColor,{h:90}),this.cScale6=this.cScale6||g(this.primaryColor,{h:120}),this.cScale7=this.cScale7||g(this.primaryColor,{h:150}),this.cScale8=this.cScale8||g(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||g(this.primaryColor,{h:270}),this.cScale10=this.cScale10||g(this.primaryColor,{h:300}),this.cScale11=this.cScale11||g(this.primaryColor,{h:330}),this.darkMode)for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this["cScale"+d]=P(this["cScale"+d],75);else for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this["cScale"+d]=P(this["cScale"+d],25);for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this["cScaleInv"+d]=this["cScaleInv"+d]||v(this["cScale"+d]);for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this.darkMode?this["cScalePeer"+d]=this["cScalePeer"+d]||I(this["cScale"+d],10):this["cScalePeer"+d]=this["cScalePeer"+d]||P(this["cScale"+d],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this["cScaleLabel"+d]=this["cScaleLabel"+d]||this.scaleLabelColor;const h=this.darkMode?-4:-1;for(let d=0;d<5;d++)this["surface"+d]=this["surface"+d]||g(this.mainBkg,{h:180,s:-15,l:h*(5+d*3)}),this["surfacePeer"+d]=this["surfacePeer"+d]||g(this.mainBkg,{h:180,s:-15,l:h*(8+d*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||g(this.primaryColor,{h:64}),this.fillType3=this.fillType3||g(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||g(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||g(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||g(this.primaryColor,{h:128}),this.fillType7=this.fillType7||g(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||g(this.primaryColor,{l:-10}),this.pie5=this.pie5||g(this.secondaryColor,{l:-10}),this.pie6=this.pie6||g(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||g(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||g(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||g(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||g(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||g(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||g(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||g(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||g(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||g(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||g(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||g(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||g(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||yi(this.quadrant1Fill)?I(this.quadrant1Fill):P(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((n=this.xyChart)==null?void 0:n.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((o=this.xyChart)==null?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((s=this.xyChart)==null?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((a=this.xyChart)==null?void 0:a.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((u=this.xyChart)==null?void 0:u.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?P(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||g(this.primaryColor,{h:-30}),this.git4=this.git4||g(this.primaryColor,{h:-60}),this.git5=this.git5||g(this.primaryColor,{h:-90}),this.git6=this.git6||g(this.primaryColor,{h:60}),this.git7=this.git7||g(this.primaryColor,{h:120}),this.darkMode?(this.git0=I(this.git0,25),this.git1=I(this.git1,25),this.git2=I(this.git2,25),this.git3=I(this.git3,25),this.git4=I(this.git4,25),this.git5=I(this.git5,25),this.git6=I(this.git6,25),this.git7=I(this.git7,25)):(this.git0=P(this.git0,25),this.git1=P(this.git1,25),this.git2=P(this.git2,25),this.git3=P(this.git3,25),this.git4=P(this.git4,25),this.git5=P(this.git5,25),this.git6=P(this.git6,25),this.git7=P(this.git7,25)),this.gitInv0=this.gitInv0||v(this.git0),this.gitInv1=this.gitInv1||v(this.git1),this.gitInv2=this.gitInv2||v(this.git2),this.gitInv3=this.gitInv3||v(this.git3),this.gitInv4=this.gitInv4||v(this.git4),this.gitInv5=this.gitInv5||v(this.git5),this.gitInv6=this.gitInv6||v(this.git6),this.gitInv7=this.gitInv7||v(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Tr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||vr}calculate(e){if(typeof e!="object"){this.updateColors();return}const i=Object.keys(e);i.forEach(r=>{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const Rp=t=>{const e=new Np;return e.calculate(t),e};let Pp=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=I(this.primaryColor,16),this.tertiaryColor=g(this.primaryColor,{h:-160}),this.primaryBorderColor=v(this.background),this.secondaryBorderColor=ut(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ut(this.tertiaryColor,this.darkMode),this.primaryTextColor=v(this.primaryColor),this.secondaryTextColor=v(this.secondaryColor),this.tertiaryTextColor=v(this.tertiaryColor),this.lineColor=v(this.background),this.textColor=v(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=I(v("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=ti(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=P("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=P(this.sectionBkgColor,10),this.taskBorderColor=ti(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=ti(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(){var e,i,r,n,o,s,a,l,c,u,f;this.secondBkg=I(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=I(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=I(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=g(this.primaryColor,{h:64}),this.fillType3=g(this.secondaryColor,{h:64}),this.fillType4=g(this.primaryColor,{h:-64}),this.fillType5=g(this.secondaryColor,{h:-64}),this.fillType6=g(this.primaryColor,{h:128}),this.fillType7=g(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||g(this.primaryColor,{h:30}),this.cScale4=this.cScale4||g(this.primaryColor,{h:60}),this.cScale5=this.cScale5||g(this.primaryColor,{h:90}),this.cScale6=this.cScale6||g(this.primaryColor,{h:120}),this.cScale7=this.cScale7||g(this.primaryColor,{h:150}),this.cScale8=this.cScale8||g(this.primaryColor,{h:210}),this.cScale9=this.cScale9||g(this.primaryColor,{h:270}),this.cScale10=this.cScale10||g(this.primaryColor,{h:300}),this.cScale11=this.cScale11||g(this.primaryColor,{h:330});for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScaleInv"+h]=this["cScaleInv"+h]||v(this["cScale"+h]);for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScalePeer"+h]=this["cScalePeer"+h]||I(this["cScale"+h],10);for(let h=0;h<5;h++)this["surface"+h]=this["surface"+h]||g(this.mainBkg,{h:30,s:-30,l:-(-10+h*4)}),this["surfacePeer"+h]=this["surfacePeer"+h]||g(this.mainBkg,{h:30,s:-30,l:-(-7+h*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScaleLabel"+h]=this["cScaleLabel"+h]||this.scaleLabelColor;for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["pie"+h]=this["cScale"+h];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||g(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||g(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||g(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||g(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||g(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||g(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||yi(this.quadrant1Fill)?I(this.quadrant1Fill):P(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((n=this.xyChart)==null?void 0:n.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((o=this.xyChart)==null?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((s=this.xyChart)==null?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((a=this.xyChart)==null?void 0:a.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((u=this.xyChart)==null?void 0:u.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.plotColorPalette)||"#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"},this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?P(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=I(this.secondaryColor,20),this.git1=I(this.pie2||this.secondaryColor,20),this.git2=I(this.pie3||this.tertiaryColor,20),this.git3=I(this.pie4||g(this.primaryColor,{h:-30}),20),this.git4=I(this.pie5||g(this.primaryColor,{h:-60}),20),this.git5=I(this.pie6||g(this.primaryColor,{h:-90}),10),this.git6=I(this.pie7||g(this.primaryColor,{h:60}),10),this.git7=I(this.pie8||g(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||v(this.git0),this.gitInv1=this.gitInv1||v(this.git1),this.gitInv2=this.gitInv2||v(this.git2),this.gitInv3=this.gitInv3||v(this.git3),this.gitInv4=this.gitInv4||v(this.git4),this.gitInv5=this.gitInv5||v(this.git5),this.gitInv6=this.gitInv6||v(this.git6),this.gitInv7=this.gitInv7||v(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||v(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||v(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||I(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||I(this.background,2)}calculate(e){if(typeof e!="object"){this.updateColors();return}const i=Object.keys(e);i.forEach(r=>{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const qp=t=>{const e=new Pp;return e.calculate(t),e};let zp=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=g(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=g(this.primaryColor,{h:-160}),this.primaryBorderColor=ut(this.primaryColor,this.darkMode),this.secondaryBorderColor=ut(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ut(this.tertiaryColor,this.darkMode),this.primaryTextColor=v(this.primaryColor),this.secondaryTextColor=v(this.secondaryColor),this.tertiaryTextColor=v(this.tertiaryColor),this.lineColor=v(this.background),this.textColor=v(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#e8e8e8",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.sectionBkgColor=ti(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(){var e,i,r,n,o,s,a,l,c,u,f;this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||g(this.primaryColor,{h:30}),this.cScale4=this.cScale4||g(this.primaryColor,{h:60}),this.cScale5=this.cScale5||g(this.primaryColor,{h:90}),this.cScale6=this.cScale6||g(this.primaryColor,{h:120}),this.cScale7=this.cScale7||g(this.primaryColor,{h:150}),this.cScale8=this.cScale8||g(this.primaryColor,{h:210}),this.cScale9=this.cScale9||g(this.primaryColor,{h:270}),this.cScale10=this.cScale10||g(this.primaryColor,{h:300}),this.cScale11=this.cScale11||g(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||P(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||P(this.tertiaryColor,40);for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScale"+h]=P(this["cScale"+h],10),this["cScalePeer"+h]=this["cScalePeer"+h]||P(this["cScale"+h],25);for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScaleInv"+h]=this["cScaleInv"+h]||g(this["cScale"+h],{h:180});for(let h=0;h<5;h++)this["surface"+h]=this["surface"+h]||g(this.mainBkg,{h:30,l:-(5+h*5)}),this["surfacePeer"+h]=this["surfacePeer"+h]||g(this.mainBkg,{h:30,l:-(7+h*5)});if(this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,this.labelTextColor!=="calculated"){this.cScaleLabel0=this.cScaleLabel0||v(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||v(this.labelTextColor);for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScaleLabel"+h]=this["cScaleLabel"+h]||this.labelTextColor}this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackground=this.labelBackground,this.actorBorder=I(this.border1,23),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=g(this.primaryColor,{h:64}),this.fillType3=g(this.secondaryColor,{h:64}),this.fillType4=g(this.primaryColor,{h:-64}),this.fillType5=g(this.secondaryColor,{h:-64}),this.fillType6=g(this.primaryColor,{h:128}),this.fillType7=g(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||g(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||g(this.primaryColor,{l:-10}),this.pie5=this.pie5||g(this.secondaryColor,{l:-30}),this.pie6=this.pie6||g(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||g(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||g(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||g(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||g(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||g(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||g(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||g(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||g(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||g(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||g(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||g(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||g(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||yi(this.quadrant1Fill)?I(this.quadrant1Fill):P(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((n=this.xyChart)==null?void 0:n.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((o=this.xyChart)==null?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((s=this.xyChart)==null?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((a=this.xyChart)==null?void 0:a.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((u=this.xyChart)==null?void 0:u.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.plotColorPalette)||"#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||g(this.primaryColor,{h:-30}),this.git4=this.git4||g(this.primaryColor,{h:-60}),this.git5=this.git5||g(this.primaryColor,{h:-90}),this.git6=this.git6||g(this.primaryColor,{h:60}),this.git7=this.git7||g(this.primaryColor,{h:120}),this.darkMode?(this.git0=I(this.git0,25),this.git1=I(this.git1,25),this.git2=I(this.git2,25),this.git3=I(this.git3,25),this.git4=I(this.git4,25),this.git5=I(this.git5,25),this.git6=I(this.git6,25),this.git7=I(this.git7,25)):(this.git0=P(this.git0,25),this.git1=P(this.git1,25),this.git2=P(this.git2,25),this.git3=P(this.git3,25),this.git4=P(this.git4,25),this.git5=P(this.git5,25),this.git6=P(this.git6,25),this.git7=P(this.git7,25)),this.gitInv0=this.gitInv0||P(v(this.git0),25),this.gitInv1=this.gitInv1||v(this.git1),this.gitInv2=this.gitInv2||v(this.git2),this.gitInv3=this.gitInv3||v(this.git3),this.gitInv4=this.gitInv4||v(this.git4),this.gitInv5=this.gitInv5||v(this.git5),this.gitInv6=this.gitInv6||v(this.git6),this.gitInv7=this.gitInv7||v(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||v(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||v(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Tr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||vr}calculate(e){if(typeof e!="object"){this.updateColors();return}const i=Object.keys(e);i.forEach(r=>{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const Wp=t=>{const e=new zp;return e.calculate(t),e};let Hp=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=I("#cde498",10),this.primaryBorderColor=ut(this.primaryColor,this.darkMode),this.secondaryBorderColor=ut(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ut(this.tertiaryColor,this.darkMode),this.primaryTextColor=v(this.primaryColor),this.secondaryTextColor=v(this.secondaryColor),this.tertiaryTextColor=v(this.primaryColor),this.lineColor=v(this.background),this.textColor=v(this.background),this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var e,i,r,n,o,s,a,l,c,u,f;this.actorBorder=P(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||g(this.primaryColor,{h:30}),this.cScale4=this.cScale4||g(this.primaryColor,{h:60}),this.cScale5=this.cScale5||g(this.primaryColor,{h:90}),this.cScale6=this.cScale6||g(this.primaryColor,{h:120}),this.cScale7=this.cScale7||g(this.primaryColor,{h:150}),this.cScale8=this.cScale8||g(this.primaryColor,{h:210}),this.cScale9=this.cScale9||g(this.primaryColor,{h:270}),this.cScale10=this.cScale10||g(this.primaryColor,{h:300}),this.cScale11=this.cScale11||g(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||P(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||P(this.tertiaryColor,40);for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScale"+h]=P(this["cScale"+h],10),this["cScalePeer"+h]=this["cScalePeer"+h]||P(this["cScale"+h],25);for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScaleInv"+h]=this["cScaleInv"+h]||g(this["cScale"+h],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScaleLabel"+h]=this["cScaleLabel"+h]||this.scaleLabelColor;for(let h=0;h<5;h++)this["surface"+h]=this["surface"+h]||g(this.mainBkg,{h:30,s:-30,l:-(5+h*5)}),this["surfacePeer"+h]=this["surfacePeer"+h]||g(this.mainBkg,{h:30,s:-30,l:-(8+h*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=g(this.primaryColor,{h:64}),this.fillType3=g(this.secondaryColor,{h:64}),this.fillType4=g(this.primaryColor,{h:-64}),this.fillType5=g(this.secondaryColor,{h:-64}),this.fillType6=g(this.primaryColor,{h:128}),this.fillType7=g(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||g(this.primaryColor,{l:-30}),this.pie5=this.pie5||g(this.secondaryColor,{l:-30}),this.pie6=this.pie6||g(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||g(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||g(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||g(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||g(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||g(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||g(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||g(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||g(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||g(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||g(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||g(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||g(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||yi(this.quadrant1Fill)?I(this.quadrant1Fill):P(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((n=this.xyChart)==null?void 0:n.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((o=this.xyChart)==null?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((s=this.xyChart)==null?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((a=this.xyChart)==null?void 0:a.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((u=this.xyChart)==null?void 0:u.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.plotColorPalette)||"#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||g(this.primaryColor,{h:-30}),this.git4=this.git4||g(this.primaryColor,{h:-60}),this.git5=this.git5||g(this.primaryColor,{h:-90}),this.git6=this.git6||g(this.primaryColor,{h:60}),this.git7=this.git7||g(this.primaryColor,{h:120}),this.darkMode?(this.git0=I(this.git0,25),this.git1=I(this.git1,25),this.git2=I(this.git2,25),this.git3=I(this.git3,25),this.git4=I(this.git4,25),this.git5=I(this.git5,25),this.git6=I(this.git6,25),this.git7=I(this.git7,25)):(this.git0=P(this.git0,25),this.git1=P(this.git1,25),this.git2=P(this.git2,25),this.git3=P(this.git3,25),this.git4=P(this.git4,25),this.git5=P(this.git5,25),this.git6=P(this.git6,25),this.git7=P(this.git7,25)),this.gitInv0=this.gitInv0||v(this.git0),this.gitInv1=this.gitInv1||v(this.git1),this.gitInv2=this.gitInv2||v(this.git2),this.gitInv3=this.gitInv3||v(this.git3),this.gitInv4=this.gitInv4||v(this.git4),this.gitInv5=this.gitInv5||v(this.git5),this.gitInv6=this.gitInv6||v(this.git6),this.gitInv7=this.gitInv7||v(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||v(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||v(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Tr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||vr}calculate(e){if(typeof e!="object"){this.updateColors();return}const i=Object.keys(e);i.forEach(r=>{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const jp=t=>{const e=new Hp;return e.calculate(t),e};class Up{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=I(this.contrast,55),this.background="#ffffff",this.tertiaryColor=g(this.primaryColor,{h:-160}),this.primaryBorderColor=ut(this.primaryColor,this.darkMode),this.secondaryBorderColor=ut(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ut(this.tertiaryColor,this.darkMode),this.primaryTextColor=v(this.primaryColor),this.secondaryTextColor=v(this.secondaryColor),this.tertiaryTextColor=v(this.tertiaryColor),this.lineColor=v(this.background),this.textColor=v(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var e,i,r,n,o,s,a,l,c,u,f;this.secondBkg=I(this.contrast,55),this.border2=this.contrast,this.actorBorder=I(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 h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScaleInv"+h]=this["cScaleInv"+h]||v(this["cScale"+h]);for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this.darkMode?this["cScalePeer"+h]=this["cScalePeer"+h]||I(this["cScale"+h],10):this["cScalePeer"+h]=this["cScalePeer"+h]||P(this["cScale"+h],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScaleLabel"+h]=this["cScaleLabel"+h]||this.scaleLabelColor;for(let h=0;h<5;h++)this["surface"+h]=this["surface"+h]||g(this.mainBkg,{l:-(5+h*5)}),this["surfacePeer"+h]=this["surfacePeer"+h]||g(this.mainBkg,{l:-(8+h*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.sectionBkgColor=I(this.contrast,30),this.sectionBkgColor2=I(this.contrast,30),this.taskBorderColor=P(this.contrast,10),this.taskBkgColor=this.contrast,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=this.text,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.gridColor=I(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=P(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.transitionColor=this.transitionColor||"#000",this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=g(this.primaryColor,{h:64}),this.fillType3=g(this.secondaryColor,{h:64}),this.fillType4=g(this.primaryColor,{h:-64}),this.fillType5=g(this.secondaryColor,{h:-64}),this.fillType6=g(this.primaryColor,{h:128}),this.fillType7=g(this.secondaryColor,{h:128});for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["pie"+h]=this["cScale"+h];this.pie12=this.pie0,this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||g(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||g(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||g(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||g(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||g(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||g(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||yi(this.quadrant1Fill)?I(this.quadrant1Fill):P(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((n=this.xyChart)==null?void 0:n.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((o=this.xyChart)==null?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((s=this.xyChart)==null?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((a=this.xyChart)==null?void 0:a.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((u=this.xyChart)==null?void 0:u.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.plotColorPalette)||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=P(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||g(this.primaryColor,{h:-30}),this.git4=this.pie5||g(this.primaryColor,{h:-60}),this.git5=this.pie6||g(this.primaryColor,{h:-90}),this.git6=this.pie7||g(this.primaryColor,{h:60}),this.git7=this.pie8||g(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||v(this.git0),this.gitInv1=this.gitInv1||v(this.git1),this.gitInv2=this.gitInv2||v(this.git2),this.gitInv3=this.gitInv3||v(this.git3),this.gitInv4=this.gitInv4||v(this.git4),this.gitInv5=this.gitInv5||v(this.git5),this.gitInv6=this.gitInv6||v(this.git6),this.gitInv7=this.gitInv7||v(this.git7),this.branchLabelColor=this.branchLabelColor||this.labelTextColor,this.gitBranchLabel0=this.branchLabelColor,this.gitBranchLabel1="white",this.gitBranchLabel2=this.branchLabelColor,this.gitBranchLabel3="white",this.gitBranchLabel4=this.branchLabelColor,this.gitBranchLabel5=this.branchLabelColor,this.gitBranchLabel6=this.branchLabelColor,this.gitBranchLabel7=this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Tr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||vr}calculate(e){if(typeof e!="object"){this.updateColors();return}const i=Object.keys(e);i.forEach(r=>{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}}const Yp=t=>{const e=new Up;return e.calculate(t),e},Vt={base:{getThemeVariables:Rp},dark:{getThemeVariables:qp},default:{getThemeVariables:Wp},forest:{getThemeVariables:jp},neutral:{getThemeVariables:Yp}},Ut={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},theme:"default",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","maxEdges"],legacyMathML:!1,deterministicIds:!1,fontSize:16},Xa={...Ut,deterministicIDSeed:void 0,themeCSS:void 0,themeVariables:Vt.default.getThemeVariables(),sequence:{...Ut.sequence,messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},noteFont:function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},actorFont:function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}}},gantt:{...Ut.gantt,tickInterval:void 0,useWidth:void 0},c4:{...Ut.c4,useWidth:void 0,personFont:function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},external_personFont:function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},systemFont:function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},external_systemFont:function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},system_dbFont:function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},external_system_dbFont:function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},system_queueFont:function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},external_system_queueFont:function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},containerFont:function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},external_containerFont:function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},container_dbFont:function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},external_container_dbFont:function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},container_queueFont:function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},external_container_queueFont:function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},componentFont:function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},external_componentFont:function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},component_dbFont:function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},external_component_dbFont:function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},component_queueFont:function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},external_component_queueFont:function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},boundaryFont:function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}}},pie:{...Ut.pie,useWidth:984},xyChart:{...Ut.xyChart,useWidth:void 0},requirement:{...Ut.requirement,useWidth:void 0},gitGraph:{...Ut.gitGraph,useMaxWidth:!1},sankey:{...Ut.sankey,useMaxWidth:!1}},Ka=(t,e="")=>Object.keys(t).reduce((i,r)=>Array.isArray(t[r])?i:typeof t[r]=="object"&&t[r]!==null?[...i,e+r,...Ka(t[r],"")]:[...i,e+r],[]),Gp=new Set(Ka(Xa,"")),Vp=Xa,rr=t=>{if(N.debug("sanitizeDirective called with",t),!(typeof t!="object"||t==null)){if(Array.isArray(t)){t.forEach(e=>rr(e));return}for(const e of Object.keys(t)){if(N.debug("Checking key",e),e.startsWith("__")||e.includes("proto")||e.includes("constr")||!Gp.has(e)||t[e]==null){N.debug("sanitize deleting key: ",e),delete t[e];continue}if(typeof t[e]=="object"){N.debug("sanitizing object",e),rr(t[e]);continue}const i=["themeCSS","fontFamily","altFontFamily"];for(const r of i)e.includes(r)&&(N.debug("sanitizing css option",e),t[e]=Xp(t[e]))}if(t.themeVariables)for(const e of Object.keys(t.themeVariables)){const i=t.themeVariables[e];i!=null&&i.match&&!i.match(/^[\d "#%(),.;A-Za-z]+$/)&&(t.themeVariables[e]="")}N.debug("After sanitization",t)}},Xp=t=>{let e=0,i=0;for(const r of t){if(e<i)return"{ /* ERROR: Unbalanced CSS */ }";r==="{"?e++:r==="}"&&i++}return e!==i?"{ /* ERROR: Unbalanced CSS */ }":t},Za=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,ei=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,Kp=/\s*%%.*\n/gm;class Ja extends Error{constructor(e){super(e),this.name="UnknownDiagramError"}}const Me={},kr=function(t,e){t=t.replace(Za,"").replace(ei,"").replace(Kp,`
`);for(const[i,{detector:r}]of Object.entries(Me))if(r(t,e))return i;throw new Ja(`No diagram type detected matching given configuration for text: ${t}`)},Qa=(...t)=>{for(const{id:e,detector:i,loader:r}of t)tl(e,i,r)},tl=(t,e,i)=>{Me[t]?N.error(`Detector with key ${t} already exists`):Me[t]={detector:e,loader:i},N.debug(`Detector with key ${t} added${i?" with loader":""}`)},Zp=t=>Me[t].loader,pn=(t,e,{depth:i=2,clobber:r=!1}={})=>{const n={depth:i,clobber:r};return Array.isArray(e)&&!Array.isArray(t)?(e.forEach(o=>pn(t,o,n)),t):Array.isArray(e)&&Array.isArray(t)?(e.forEach(o=>{t.includes(o)||t.push(o)}),t):t===void 0||i<=0?t!=null&&typeof t=="object"&&typeof e=="object"?Object.assign(t,e):e:(e!==void 0&&typeof t=="object"&&typeof e=="object"&&Object.keys(e).forEach(o=>{typeof e[o]=="object"&&(t[o]===void 0||typeof t[o]=="object")?(t[o]===void 0&&(t[o]=Array.isArray(e[o])?[]:{}),t[o]=pn(t[o],e[o],{depth:i-1,clobber:r})):(r||typeof t[o]!="object"&&typeof e[o]!="object")&&(t[o]=e[o])}),t)},lt=pn;var Jp=typeof global=="object"&&global&&global.Object===Object&&global;const el=Jp;var Qp=typeof self=="object"&&self&&self.Object===Object&&self,tg=el||Qp||Function("return this")();const Rt=tg;var eg=Rt.Symbol;const nr=eg;var il=Object.prototype,ig=il.hasOwnProperty,rg=il.toString,Ve=nr?nr.toStringTag:void 0;function ng(t){var e=ig.call(t,Ve),i=t[Ve];try{t[Ve]=void 0;var r=!0}catch{}var n=rg.call(t);return r&&(e?t[Ve]=i:delete t[Ve]),n}var og=Object.prototype,sg=og.toString;function ag(t){return sg.call(t)}var lg="[object Null]",cg="[object Undefined]",hs=nr?nr.toStringTag:void 0;function Re(t){return t==null?t===void 0?cg:lg:hs&&hs in Object(t)?ng(t):ag(t)}function ye(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var hg="[object AsyncFunction]",ug="[object Function]",fg="[object GeneratorFunction]",dg="[object Proxy]";function qn(t){if(!ye(t))return!1;var e=Re(t);return e==ug||e==fg||e==hg||e==dg}var pg=Rt["__core-js_shared__"];const Vr=pg;var us=function(){var t=/[^.]+$/.exec(Vr&&Vr.keys&&Vr.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function gg(t){return!!us&&us in t}var mg=Function.prototype,_g=mg.toString;function Ce(t){if(t!=null){try{return _g.call(t)}catch{}try{return t+""}catch{}}return""}var yg=/[\\^$.*+?()[\]{}|]/g,Cg=/^\[object .+?Constructor\]$/,bg=Function.prototype,xg=Object.prototype,Tg=bg.toString,vg=xg.hasOwnProperty,kg=RegExp("^"+Tg.call(vg).replace(yg,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Sg(t){if(!ye(t)||gg(t))return!1;var e=qn(t)?kg:Cg;return e.test(Ce(t))}function wg(t,e){return t==null?void 0:t[e]}function be(t,e){var i=wg(t,e);return Sg(i)?i:void 0}var Bg=be(Object,"create");const hi=Bg;function Ag(){this.__data__=hi?hi(null):{},this.size=0}function Lg(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var Fg="__lodash_hash_undefined__",Eg=Object.prototype,Og=Eg.hasOwnProperty;function Mg(t){var e=this.__data__;if(hi){var i=e[t];return i===Fg?void 0:i}return Og.call(e,t)?e[t]:void 0}var $g=Object.prototype,Ig=$g.hasOwnProperty;function Dg(t){var e=this.__data__;return hi?e[t]!==void 0:Ig.call(e,t)}var Ng="__lodash_hash_undefined__";function Rg(t,e){var i=this.__data__;return this.size+=this.has(t)?0:1,i[t]=hi&&e===void 0?Ng:e,this}function me(t){var e=-1,i=t==null?0:t.length;for(this.clear();++e<i;){var r=t[e];this.set(r[0],r[1])}}me.prototype.clear=Ag;me.prototype.delete=Lg;me.prototype.get=Mg;me.prototype.has=Dg;me.prototype.set=Rg;function Pg(){this.__data__=[],this.size=0}function Sr(t,e){return t===e||t!==t&&e!==e}function wr(t,e){for(var i=t.length;i--;)if(Sr(t[i][0],e))return i;return-1}var qg=Array.prototype,zg=qg.splice;function Wg(t){var e=this.__data__,i=wr(e,t);if(i<0)return!1;var r=e.length-1;return i==r?e.pop():zg.call(e,i,1),--this.size,!0}function Hg(t){var e=this.__data__,i=wr(e,t);return i<0?void 0:e[i][1]}function jg(t){return wr(this.__data__,t)>-1}function Ug(t,e){var i=this.__data__,r=wr(i,t);return r<0?(++this.size,i.push([t,e])):i[r][1]=e,this}function Kt(t){var e=-1,i=t==null?0:t.length;for(this.clear();++e<i;){var r=t[e];this.set(r[0],r[1])}}Kt.prototype.clear=Pg;Kt.prototype.delete=Wg;Kt.prototype.get=Hg;Kt.prototype.has=jg;Kt.prototype.set=Ug;var Yg=be(Rt,"Map");const ui=Yg;function Gg(){this.size=0,this.__data__={hash:new me,map:new(ui||Kt),string:new me}}function Vg(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function Br(t,e){var i=t.__data__;return Vg(e)?i[typeof e=="string"?"string":"hash"]:i.map}function Xg(t){var e=Br(this,t).delete(t);return this.size-=e?1:0,e}function Kg(t){return Br(this,t).get(t)}function Zg(t){return Br(this,t).has(t)}function Jg(t,e){var i=Br(this,t),r=i.size;return i.set(t,e),this.size+=i.size==r?0:1,this}function se(t){var e=-1,i=t==null?0:t.length;for(this.clear();++e<i;){var r=t[e];this.set(r[0],r[1])}}se.prototype.clear=Gg;se.prototype.delete=Xg;se.prototype.get=Kg;se.prototype.has=Zg;se.prototype.set=Jg;var Qg="Expected a function";function Ci(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(Qg);var i=function(){var r=arguments,n=e?e.apply(this,r):r[0],o=i.cache;if(o.has(n))return o.get(n);var s=t.apply(this,r);return i.cache=o.set(n,s)||o,s};return i.cache=new(Ci.Cache||se),i}Ci.Cache=se;function tm(){this.__data__=new Kt,this.size=0}function em(t){var e=this.__data__,i=e.delete(t);return this.size=e.size,i}function im(t){return this.__data__.get(t)}function rm(t){return this.__data__.has(t)}var nm=200;function om(t,e){var i=this.__data__;if(i instanceof Kt){var r=i.__data__;if(!ui||r.length<nm-1)return r.push([t,e]),this.size=++i.size,this;i=this.__data__=new se(r)}return i.set(t,e),this.size=i.size,this}function Pe(t){var e=this.__data__=new Kt(t);this.size=e.size}Pe.prototype.clear=tm;Pe.prototype.delete=em;Pe.prototype.get=im;Pe.prototype.has=rm;Pe.prototype.set=om;var sm=function(){try{var t=be(Object,"defineProperty");return t({},"",{}),t}catch{}}();const or=sm;function zn(t,e,i){e=="__proto__"&&or?or(t,e,{configurable:!0,enumerable:!0,value:i,writable:!0}):t[e]=i}function gn(t,e,i){(i!==void 0&&!Sr(t[e],i)||i===void 0&&!(e in t))&&zn(t,e,i)}function am(t){return function(e,i,r){for(var n=-1,o=Object(e),s=r(e),a=s.length;a--;){var l=s[t?a:++n];if(i(o[l],l,o)===!1)break}return e}}var lm=am();const cm=lm;var rl=typeof exports=="object"&&exports&&!exports.nodeType&&exports,fs=rl&&typeof module=="object"&&module&&!module.nodeType&&module,hm=fs&&fs.exports===rl,ds=hm?Rt.Buffer:void 0,ps=ds?ds.allocUnsafe:void 0;function um(t,e){if(e)return t.slice();var i=t.length,r=ps?ps(i):new t.constructor(i);return t.copy(r),r}var fm=Rt.Uint8Array;const gs=fm;function dm(t){var e=new t.constructor(t.byteLength);return new gs(e).set(new gs(t)),e}function pm(t,e){var i=e?dm(t.buffer):t.buffer;return new t.constructor(i,t.byteOffset,t.length)}function gm(t,e){var i=-1,r=t.length;for(e||(e=Array(r));++i<r;)e[i]=t[i];return e}var ms=Object.create,mm=function(){function t(){}return function(e){if(!ye(e))return{};if(ms)return ms(e);t.prototype=e;var i=new t;return t.prototype=void 0,i}}();const _m=mm;function nl(t,e){return function(i){return t(e(i))}}var ym=nl(Object.getPrototypeOf,Object);const ol=ym;var Cm=Object.prototype;function Ar(t){var e=t&&t.constructor,i=typeof e=="function"&&e.prototype||Cm;return t===i}function bm(t){return typeof t.constructor=="function"&&!Ar(t)?_m(ol(t)):{}}function bi(t){return t!=null&&typeof t=="object"}var xm="[object Arguments]";function _s(t){return bi(t)&&Re(t)==xm}var sl=Object.prototype,Tm=sl.hasOwnProperty,vm=sl.propertyIsEnumerable,km=_s(function(){return arguments}())?_s:function(t){return bi(t)&&Tm.call(t,"callee")&&!vm.call(t,"callee")};const sr=km;var Sm=Array.isArray;const ar=Sm;var wm=9007199254740991;function al(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=wm}function Lr(t){return t!=null&&al(t.length)&&!qn(t)}function Bm(t){return bi(t)&&Lr(t)}function Am(){return!1}var ll=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ys=ll&&typeof module=="object"&&module&&!module.nodeType&&module,Lm=ys&&ys.exports===ll,Cs=Lm?Rt.Buffer:void 0,Fm=Cs?Cs.isBuffer:void 0,Em=Fm||Am;const Wn=Em;var Om="[object Object]",Mm=Function.prototype,$m=Object.prototype,cl=Mm.toString,Im=$m.hasOwnProperty,Dm=cl.call(Object);function Nm(t){if(!bi(t)||Re(t)!=Om)return!1;var e=ol(t);if(e===null)return!0;var i=Im.call(e,"constructor")&&e.constructor;return typeof i=="function"&&i instanceof i&&cl.call(i)==Dm}var Rm="[object Arguments]",Pm="[object Array]",qm="[object Boolean]",zm="[object Date]",Wm="[object Error]",Hm="[object Function]",jm="[object Map]",Um="[object Number]",Ym="[object Object]",Gm="[object RegExp]",Vm="[object Set]",Xm="[object String]",Km="[object WeakMap]",Zm="[object ArrayBuffer]",Jm="[object DataView]",Qm="[object Float32Array]",t_="[object Float64Array]",e_="[object Int8Array]",i_="[object Int16Array]",r_="[object Int32Array]",n_="[object Uint8Array]",o_="[object Uint8ClampedArray]",s_="[object Uint16Array]",a_="[object Uint32Array]",X={};X[Qm]=X[t_]=X[e_]=X[i_]=X[r_]=X[n_]=X[o_]=X[s_]=X[a_]=!0;X[Rm]=X[Pm]=X[Zm]=X[qm]=X[Jm]=X[zm]=X[Wm]=X[Hm]=X[jm]=X[Um]=X[Ym]=X[Gm]=X[Vm]=X[Xm]=X[Km]=!1;function l_(t){return bi(t)&&al(t.length)&&!!X[Re(t)]}function c_(t){return function(e){return t(e)}}var hl=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ii=hl&&typeof module=="object"&&module&&!module.nodeType&&module,h_=ii&&ii.exports===hl,Xr=h_&&el.process,u_=function(){try{var t=ii&&ii.require&&ii.require("util").types;return t||Xr&&Xr.binding&&Xr.binding("util")}catch{}}();const bs=u_;var xs=bs&&bs.isTypedArray,f_=xs?c_(xs):l_;const Hn=f_;function mn(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}var d_=Object.prototype,p_=d_.hasOwnProperty;function g_(t,e,i){var r=t[e];(!(p_.call(t,e)&&Sr(r,i))||i===void 0&&!(e in t))&&zn(t,e,i)}function m_(t,e,i,r){var n=!i;i||(i={});for(var o=-1,s=e.length;++o<s;){var a=e[o],l=r?r(i[a],t[a],a,i,t):void 0;l===void 0&&(l=t[a]),n?zn(i,a,l):g_(i,a,l)}return i}function __(t,e){for(var i=-1,r=Array(t);++i<t;)r[i]=e(i);return r}var y_=9007199254740991,C_=/^(?:0|[1-9]\d*)$/;function ul(t,e){var i=typeof t;return e=e??y_,!!e&&(i=="number"||i!="symbol"&&C_.test(t))&&t>-1&&t%1==0&&t<e}var b_=Object.prototype,x_=b_.hasOwnProperty;function T_(t,e){var i=ar(t),r=!i&&sr(t),n=!i&&!r&&Wn(t),o=!i&&!r&&!n&&Hn(t),s=i||r||n||o,a=s?__(t.length,String):[],l=a.length;for(var c in t)(e||x_.call(t,c))&&!(s&&(c=="length"||n&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||ul(c,l)))&&a.push(c);return a}function v_(t){var e=[];if(t!=null)for(var i in Object(t))e.push(i);return e}var k_=Object.prototype,S_=k_.hasOwnProperty;function w_(t){if(!ye(t))return v_(t);var e=Ar(t),i=[];for(var r in t)r=="constructor"&&(e||!S_.call(t,r))||i.push(r);return i}function fl(t){return Lr(t)?T_(t,!0):w_(t)}function B_(t){return m_(t,fl(t))}function A_(t,e,i,r,n,o,s){var a=mn(t,i),l=mn(e,i),c=s.get(l);if(c){gn(t,i,c);return}var u=o?o(a,l,i+"",t,e,s):void 0,f=u===void 0;if(f){var h=ar(l),d=!h&&Wn(l),_=!h&&!d&&Hn(l);u=l,h||d||_?ar(a)?u=a:Bm(a)?u=gm(a):d?(f=!1,u=um(l,!0)):_?(f=!1,u=pm(l,!0)):u=[]:Nm(l)||sr(l)?(u=a,sr(a)?u=B_(a):(!ye(a)||qn(a))&&(u=bm(l))):f=!1}f&&(s.set(l,u),n(u,l,r,o,s),s.delete(l)),gn(t,i,u)}function dl(t,e,i,r,n){t!==e&&cm(e,function(o,s){if(n||(n=new Pe),ye(o))A_(t,e,s,i,dl,r,n);else{var a=r?r(mn(t,s),o,s+"",t,e,n):void 0;a===void 0&&(a=o),gn(t,s,a)}},fl)}function pl(t){return t}function L_(t,e,i){switch(i.length){case 0:return t.call(e);case 1:return t.call(e,i[0]);case 2:return t.call(e,i[0],i[1]);case 3:return t.call(e,i[0],i[1],i[2])}return t.apply(e,i)}var Ts=Math.max;function F_(t,e,i){return e=Ts(e===void 0?t.length-1:e,0),function(){for(var r=arguments,n=-1,o=Ts(r.length-e,0),s=Array(o);++n<o;)s[n]=r[e+n];n=-1;for(var a=Array(e+1);++n<e;)a[n]=r[n];return a[e]=i(s),L_(t,this,a)}}function E_(t){return function(){return t}}var O_=or?function(t,e){return or(t,"toString",{configurable:!0,enumerable:!1,value:E_(e),writable:!0})}:pl;const M_=O_;var $_=800,I_=16,D_=Date.now;function N_(t){var e=0,i=0;return function(){var r=D_(),n=I_-(r-i);if(i=r,n>0){if(++e>=$_)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var R_=N_(M_);const P_=R_;function q_(t,e){return P_(F_(t,e,pl),t+"")}function z_(t,e,i){if(!ye(i))return!1;var r=typeof e;return(r=="number"?Lr(i)&&ul(e,i.length):r=="string"&&e in i)?Sr(i[e],t):!1}function W_(t){return q_(function(e,i){var r=-1,n=i.length,o=n>1?i[n-1]:void 0,s=n>2?i[2]:void 0;for(o=t.length>3&&typeof o=="function"?(n--,o):void 0,s&&z_(i[0],i[1],s)&&(o=n<3?void 0:o,n=1),e=Object(e);++r<n;){var a=i[r];a&&t(e,a,r,o)}return e})}var H_=W_(function(t,e,i){dl(t,e,i)});const j_=H_,U_="",Y_={curveBasis:md,curveBasisClosed:_d,curveBasisOpen:yd,curveBumpX:pd,curveBumpY:gd,curveBundle:Cd,curveCardinalClosed:xd,curveCardinalOpen:Td,curveCardinal:bd,curveCatmullRomClosed:kd,curveCatmullRomOpen:Sd,curveCatmullRom:vd,curveLinear:dd,curveLinearClosed:wd,curveMonotoneX:Bd,curveMonotoneY:Ad,curveNatural:Ld,curveStep:Fd,curveStepAfter:Od,curveStepBefore:Ed},G_=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,V_=function(t,e){const i=gl(t,/(?:init\b)|(?:initialize\b)/);let r={};if(Array.isArray(i)){const s=i.map(a=>a.args);rr(s),r=lt(r,[...s])}else r=i.args;if(!r)return;let n=kr(t,e);const o="config";return r[o]!==void 0&&(n==="flowchart-v2"&&(n="flowchart"),r[n]=r[o],delete r[o]),r},gl=function(t,e=null){try{const i=new RegExp(`[%]{2}(?![{]${G_.source})(?=[}][%]{2}).*
`,"ig");t=t.trim().replace(i,"").replace(/'/gm,'"'),N.debug(`Detecting diagram directive${e!==null?" type:"+e:""} based on the text:${t}`);let r;const n=[];for(;(r=ei.exec(t))!==null;)if(r.index===ei.lastIndex&&ei.lastIndex++,r&&!e||e&&r[1]&&r[1].match(e)||e&&r[2]&&r[2].match(e)){const o=r[1]?r[1]:r[2],s=r[3]?r[3].trim():r[4]?JSON.parse(r[4].trim()):null;n.push({type:o,args:s})}return n.length===0?{type:t,args:null}:n.length===1?n[0]:n}catch(i){return N.error(`ERROR: ${i.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}},X_=function(t){return t.replace(ei,"")},K_=function(t,e){for(const[i,r]of e.entries())if(r.match(t))return i;return-1};function Z_(t,e){if(!t)return e;const i=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return Y_[i]??e}function J_(t,e){const i=t.trim();if(i)return e.securityLevel!=="loose"?Js.sanitizeUrl(i):i}const Q_=(t,...e)=>{const i=t.split("."),r=i.length-1,n=i[r];let o=window;for(let s=0;s<r;s++)if(o=o[i[s]],!o){N.error(`Function name: ${t} not found in window`);return}o[n](...e)};function ml(t,e){return!t||!e?0:Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function t0(t){let e,i=0;t.forEach(n=>{i+=ml(n,e),e=n});const r=i/2;return jn(t,r)}function e0(t){return t.length===1?t[0]:t0(t)}const vs=(t,e=2)=>{const i=Math.pow(10,e);return Math.round(t*i)/i},jn=(t,e)=>{let i,r=e;for(const n of t){if(i){const o=ml(n,i);if(o<r)r-=o;else{const s=r/o;if(s<=0)return i;if(s>=1)return{x:n.x,y:n.y};if(s>0&&s<1)return{x:vs((1-s)*i.x+s*n.x,5),y:vs((1-s)*i.y+s*n.y,5)}}}i=n}throw new Error("Could not find a suitable point for the given distance")},i0=(t,e,i)=>{N.info(`our points ${JSON.stringify(e)}`),e[0]!==i&&(e=e.reverse());const n=jn(e,25),o=t?10:5,s=Math.atan2(e[0].y-n.y,e[0].x-n.x),a={x:0,y:0};return a.x=Math.sin(s)*o+(e[0].x+n.x)/2,a.y=-Math.cos(s)*o+(e[0].y+n.y)/2,a};function r0(t,e,i){const r=structuredClone(i);N.info("our points",r),e!=="start_left"&&e!=="start_right"&&r.reverse();const n=25+t,o=jn(r,n),s=10+t*.5,a=Math.atan2(r[0].y-o.y,r[0].x-o.x),l={x:0,y:0};return e==="start_left"?(l.x=Math.sin(a+Math.PI)*s+(r[0].x+o.x)/2,l.y=-Math.cos(a+Math.PI)*s+(r[0].y+o.y)/2):e==="end_right"?(l.x=Math.sin(a-Math.PI)*s+(r[0].x+o.x)/2-5,l.y=-Math.cos(a-Math.PI)*s+(r[0].y+o.y)/2-5):e==="end_left"?(l.x=Math.sin(a)*s+(r[0].x+o.x)/2-5,l.y=-Math.cos(a)*s+(r[0].y+o.y)/2-5):(l.x=Math.sin(a)*s+(r[0].x+o.x)/2,l.y=-Math.cos(a)*s+(r[0].y+o.y)/2),l}function n0(t){let e="",i="";for(const r of t)r!==void 0&&(r.startsWith("color:")||r.startsWith("text-align:")?i=i+r+";":e=e+r+";");return{style:e,labelStyle:i}}let ks=0;const o0=()=>(ks++,"id-"+Math.random().toString(36).substr(2,12)+"-"+ks);function s0(t){let e="";const i="0123456789abcdef",r=i.length;for(let n=0;n<t;n++)e+=i.charAt(Math.floor(Math.random()*r));return e}const a0=t=>s0(t.length),l0=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:""}},c0=function(t,e){const i=e.text.replace(Pn.lineBreakRegex," "),[,r]=Yn(e.fontSize),n=t.append("text");n.attr("x",e.x),n.attr("y",e.y),n.style("text-anchor",e.anchor),n.style("font-family",e.fontFamily),n.style("font-size",r),n.style("font-weight",e.fontWeight),n.attr("fill",e.fill),e.class!==void 0&&n.attr("class",e.class);const o=n.append("tspan");return o.attr("x",e.x+e.textMargin*2),o.attr("fill",e.fill),o.text(i),n},h0=Ci((t,e,i)=>{if(!t||(i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},i),Pn.lineBreakRegex.test(t)))return t;const r=t.split(" "),n=[];let o="";return r.forEach((s,a)=>{const l=lr(`${s} `,i),c=lr(o,i);if(l>e){const{hyphenatedStrings:h,remainingWord:d}=u0(s,e,"-",i);n.push(o,...h),o=d}else c+l>=e?(n.push(o),o=s):o=[o,s].filter(Boolean).join(" ");a+1===r.length&&n.push(o)}),n.filter(s=>s!=="").join(i.joinWith)},(t,e,i)=>`${t}${e}${i.fontSize}${i.fontWeight}${i.fontFamily}${i.joinWith}`),u0=Ci((t,e,i="-",r)=>{r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},r);const n=[...t],o=[];let s="";return n.forEach((a,l)=>{const c=`${s}${a}`;if(lr(c,r)>=e){const f=l+1,h=n.length===f,d=`${c}${i}`;o.push(h?c:d),s=""}else s=c}),{hyphenatedStrings:o,remainingWord:s}},(t,e,i="-",r)=>`${t}${e}${i}${r.fontSize}${r.fontWeight}${r.fontFamily}`);function f0(t,e){return Un(t,e).height}function lr(t,e){return Un(t,e).width}const Un=Ci((t,e)=>{const{fontSize:i=12,fontFamily:r="Arial",fontWeight:n=400}=e;if(!t)return{width:0,height:0};const[,o]=Yn(i),s=["sans-serif",r],a=t.split(Pn.lineBreakRegex),l=[],c=vt("body");if(!c.remove)return{width:0,height:0,lineHeight:0};const u=c.append("svg");for(const h of s){let d=0;const _={width:0,height:0,lineHeight:0};for(const T of a){const w=l0();w.text=T||U_;const A=c0(u,w).style("font-size",o).style("font-weight",n).style("font-family",h),y=(A._groups||A)[0][0].getBBox();if(y.width===0&&y.height===0)throw new Error("svg element not in render tree");_.width=Math.round(Math.max(_.width,y.width)),d=Math.round(y.height),_.height+=d,_.lineHeight=Math.round(Math.max(_.lineHeight,d))}l.push(_)}u.remove();const f=isNaN(l[1].height)||isNaN(l[1].width)||isNaN(l[1].lineHeight)||l[0].height>l[1].height&&l[0].width>l[1].width&&l[0].lineHeight>l[1].lineHeight?0:1;return l[f]},(t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`);class d0{constructor(e=!1,i){this.count=0,this.count=i?i.length:0,this.next=e?()=>this.count++:()=>Date.now()}}let Mi;const p0=function(t){return Mi=Mi||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),Mi.innerHTML=t,unescape(Mi.textContent)};function _l(t){return"str"in t}const g0=(t,e,i,r)=>{var n;if(!r)return;const o=(n=t.node())==null?void 0:n.getBBox();o&&t.append("text").text(r).attr("x",o.x+o.width/2).attr("y",-i).attr("class",e)},Yn=t=>{if(typeof t=="number")return[t,t+"px"];const e=parseInt(t??"",10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]};function yl(t,e){return j_({},t,e)}const ri={assignWithDepth:lt,wrapLabel:h0,calculateTextHeight:f0,calculateTextWidth:lr,calculateTextDimensions:Un,cleanAndMerge:yl,detectInit:V_,detectDirective:gl,isSubstringInArray:K_,interpolateToCurve:Z_,calcLabelPosition:e0,calcCardinalityPosition:i0,calcTerminalLabelPosition:r0,formatUrl:J_,getStylesFromArray:n0,generateId:o0,random:a0,runFunc:Q_,entityDecode:p0,insertTitle:g0,parseFontSize:Yn,InitIDGenerator:d0},m0=function(t){let e=t;return e=e.replace(/style.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),e=e.replace(/classDef.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),e=e.replace(/#\w+;/g,function(i){const r=i.substring(1,i.length-1);return/^\+?\d+$/.test(r)?"fl°°"+r+"¶ß":"fl°"+r+"¶ß"}),e},_0=function(t){return t.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")};var Cl="comm",bl="rule",xl="decl",y0="@import",C0="@keyframes",b0="@layer",Tl=Math.abs,Gn=String.fromCharCode;function vl(t){return t.trim()}function Hi(t,e,i){return t.replace(e,i)}function x0(t,e,i){return t.indexOf(e,i)}function fi(t,e){return t.charCodeAt(e)|0}function di(t,e,i){return t.slice(e,i)}function Yt(t){return t.length}function T0(t){return t.length}function $i(t,e){return e.push(t),t}var Fr=1,$e=1,kl=0,kt=0,tt=0,qe="";function Vn(t,e,i,r,n,o,s,a){return{value:t,root:e,parent:i,type:r,props:n,children:o,line:Fr,column:$e,length:s,return:"",siblings:a}}function v0(){return tt}function k0(){return tt=kt>0?fi(qe,--kt):0,$e--,tt===10&&($e=1,Fr--),tt}function Lt(){return tt=kt<kl?fi(qe,kt++):0,$e++,tt===10&&($e=1,Fr++),tt}function de(){return fi(qe,kt)}function ji(){return kt}function Er(t,e){return di(qe,t,e)}function _n(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function S0(t){return Fr=$e=1,kl=Yt(qe=t),kt=0,[]}function w0(t){return qe="",t}function Kr(t){return vl(Er(kt-1,yn(t===91?t+2:t===40?t+1:t)))}function B0(t){for(;(tt=de())&&tt<33;)Lt();return _n(t)>2||_n(tt)>3?"":" "}function A0(t,e){for(;--e&&Lt()&&!(tt<48||tt>102||tt>57&&tt<65||tt>70&&tt<97););return Er(t,ji()+(e<6&&de()==32&&Lt()==32))}function yn(t){for(;Lt();)switch(tt){case t:return kt;case 34:case 39:t!==34&&t!==39&&yn(tt);break;case 40:t===41&&yn(t);break;case 92:Lt();break}return kt}function L0(t,e){for(;Lt()&&t+tt!==57;)if(t+tt===84&&de()===47)break;return"/*"+Er(e,kt-1)+"*"+Gn(t===47?t:Lt())}function F0(t){for(;!_n(de());)Lt();return Er(t,kt)}function E0(t){return w0(Ui("",null,null,null,[""],t=S0(t),0,[0],t))}function Ui(t,e,i,r,n,o,s,a,l){for(var c=0,u=0,f=s,h=0,d=0,_=0,T=1,w=1,A=1,y=0,E="",L=n,R=o,m=r,b=E;w;)switch(_=y,y=Lt()){case 40:if(_!=108&&fi(b,f-1)==58){x0(b+=Hi(Kr(y),"&","&\f"),"&\f",Tl(c?a[c-1]:0))!=-1&&(A=-1);break}case 34:case 39:case 91:b+=Kr(y);break;case 9:case 10:case 13:case 32:b+=B0(_);break;case 92:b+=A0(ji()-1,7);continue;case 47:switch(de()){case 42:case 47:$i(O0(L0(Lt(),ji()),e,i,l),l);break;default:b+="/"}break;case 123*T:a[c++]=Yt(b)*A;case 125*T:case 59:case 0:switch(y){case 0:case 125:w=0;case 59+u:A==-1&&(b=Hi(b,/\f/g,"")),d>0&&Yt(b)-f&&$i(d>32?ws(b+";",r,i,f-1,l):ws(Hi(b," ","")+";",r,i,f-2,l),l);break;case 59:b+=";";default:if($i(m=Ss(b,e,i,c,u,n,a,E,L=[],R=[],f,o),o),y===123)if(u===0)Ui(b,e,m,m,L,o,f,a,R);else switch(h===99&&fi(b,3)===110?100:h){case 100:case 108:case 109:case 115:Ui(t,m,m,r&&$i(Ss(t,m,m,0,0,n,a,E,n,L=[],f,R),R),n,R,f,a,r?L:R);break;default:Ui(b,m,m,m,[""],R,0,a,R)}}c=u=d=0,T=A=1,E=b="",f=s;break;case 58:f=1+Yt(b),d=_;default:if(T<1){if(y==123)--T;else if(y==125&&T++==0&&k0()==125)continue}switch(b+=Gn(y),y*T){case 38:A=u>0?1:(b+="\f",-1);break;case 44:a[c++]=(Yt(b)-1)*A,A=1;break;case 64:de()===45&&(b+=Kr(Lt())),h=de(),u=f=Yt(E=b+=F0(ji())),y++;break;case 45:_===45&&Yt(b)==2&&(T=0)}}return o}function Ss(t,e,i,r,n,o,s,a,l,c,u,f){for(var h=n-1,d=n===0?o:[""],_=T0(d),T=0,w=0,A=0;T<r;++T)for(var y=0,E=di(t,h+1,h=Tl(w=s[T])),L=t;y<_;++y)(L=vl(w>0?d[y]+" "+E:Hi(E,/&\f/g,d[y])))&&(l[A++]=L);return Vn(t,e,i,n===0?bl:a,l,c,u,f)}function O0(t,e,i,r){return Vn(t,e,i,Cl,Gn(v0()),di(t,2,-2),0,r)}function ws(t,e,i,r,n){return Vn(t,e,i,xl,di(t,0,r),di(t,r+1,-1),r,n)}function Cn(t,e){for(var i="",r=0;r<t.length;r++)i+=e(t[r],r,t,e)||"";return i}function M0(t,e,i,r){switch(t.type){case b0:if(t.children.length)break;case y0:case xl:return t.return=t.return||t.value;case Cl:return"";case C0:return t.return=t.value+"{"+Cn(t.children,r)+"}";case bl:if(!Yt(t.value=t.props.join(",")))return""}return Yt(i=Cn(t.children,r))?t.return=t.value+"{"+i+"}":""}const Bs="10.9.0",Ie=Object.freeze(Vp);let gt=lt({},Ie),Sl,De=[],ni=lt({},Ie);const Or=(t,e)=>{let i=lt({},t),r={};for(const n of e)Al(n),r=lt(r,n);if(i=lt(i,r),r.theme&&r.theme in Vt){const n=lt({},Sl),o=lt(n.themeVariables||{},r.themeVariables);i.theme&&i.theme in Vt&&(i.themeVariables=Vt[i.theme].getThemeVariables(o))}return ni=i,Ll(ni),ni},$0=t=>(gt=lt({},Ie),gt=lt(gt,t),t.theme&&Vt[t.theme]&&(gt.themeVariables=Vt[t.theme].getThemeVariables(t.themeVariables)),Or(gt,De),gt),I0=t=>{Sl=lt({},t)},D0=t=>(gt=lt(gt,t),Or(gt,De),gt),wl=()=>lt({},gt),Bl=t=>(Ll(t),lt(ni,t),Dt()),Dt=()=>lt({},ni),Al=t=>{t&&(["secure",...gt.secure??[]].forEach(e=>{Object.hasOwn(t,e)&&(N.debug(`Denied attempt to modify a secure key ${e}`,t[e]),delete t[e])}),Object.keys(t).forEach(e=>{e.startsWith("__")&&delete t[e]}),Object.keys(t).forEach(e=>{typeof t[e]=="string"&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))&&delete t[e],typeof t[e]=="object"&&Al(t[e])}))},N0=t=>{rr(t),t.fontFamily&&(!t.themeVariables||!t.themeVariables.fontFamily)&&(t.themeVariables={fontFamily:t.fontFamily}),De.push(t),Or(gt,De)},cr=(t=gt)=>{De=[],Or(t,De)},R0={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},As={},P0=t=>{As[t]||(N.warn(R0[t]),As[t]=!0)},Ll=t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&P0("LAZY_LOAD_DEPRECATED")},Fl="c4",q0=t=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t),z0=async()=>{const{diagram:t}=await Z(()=>import("../c4Diagram-e2511a7a-DcqzxGPo.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]));return{id:Fl,diagram:t}},W0={id:Fl,detector:q0,loader:z0},H0=W0,El="flowchart",j0=(t,e)=>{var i,r;return((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="dagre-wrapper"||((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)},U0=async()=>{const{diagram:t}=await Z(()=>import("../flowDiagram-e44a2353-DS4gPiAE.js"),__vite__mapDeps([10,11,12,13,14,15,16,17,18,19,20,21,22,2,3,4,5,6,7,8,9]));return{id:El,diagram:t}},Y0={id:El,detector:j0,loader:U0},G0=Y0,Ol="flowchart-v2",V0=(t,e)=>{var i,r,n;return((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="dagre-d3"||((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)&&((n=e==null?void 0:e.flowchart)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(t)},X0=async()=>{const{diagram:t}=await Z(()=>import("../flowDiagram-v2-a8396bb5-CBfmo9Cy.js"),__vite__mapDeps([23,11,14,12,15,13,16,17,18,19,20,21,22,2,3,4,5,6,7,8,9]));return{id:Ol,diagram:t}},K0={id:Ol,detector:V0,loader:X0},Z0=K0,Ml="er",J0=t=>/^\s*erDiagram/.test(t),Q0=async()=>{const{diagram:t}=await Z(()=>import("../erDiagram-582bd92f-C2r4ztME.js"),__vite__mapDeps([24,12,13,19,20,21,2,3,4,5,6,7,8,9]));return{id:Ml,diagram:t}},ty={id:Ml,detector:J0,loader:Q0},ey=ty,$l="gitGraph",iy=t=>/^\s*gitGraph/.test(t),ry=async()=>{const{diagram:t}=await Z(()=>import("../gitGraphDiagram-d5d647e9-CQKxpspn.js"),__vite__mapDeps([25,2,3,4,5,6,7,8,9]));return{id:$l,diagram:t}},ny={id:$l,detector:iy,loader:ry},oy=ny,Il="gantt",sy=t=>/^\s*gantt/.test(t),ay=async()=>{const{diagram:t}=await Z(()=>import("../ganttDiagram-05e48839-CWJ_F3V8.js"),__vite__mapDeps([26,27,28,2,3,4,5,6,7,8,9]));return{id:Il,diagram:t}},ly={id:Il,detector:sy,loader:ay},cy=ly,Dl="info",hy=t=>/^\s*info/.test(t),uy=async()=>{const{diagram:t}=await Z(()=>import("../infoDiagram-00deb277-DyW-9skE.js"),__vite__mapDeps([29,2,3,4,5,6,7,8,9]));return{id:Dl,diagram:t}},fy={id:Dl,detector:hy,loader:uy},Nl="pie",dy=t=>/^\s*pie/.test(t),py=async()=>{const{diagram:t}=await Z(()=>import("../pieDiagram-35c7eafc-B5uoLXTV.js"),__vite__mapDeps([30,31,21,32,28,20,2,3,4,5,6,7,8,9]));return{id:Nl,diagram:t}},gy={id:Nl,detector:dy,loader:py},Rl="quadrantChart",my=t=>/^\s*quadrantChart/.test(t),_y=async()=>{const{diagram:t}=await Z(()=>import("../quadrantDiagram-9c93c009-BR6mTtF_.js"),__vite__mapDeps([33,27,28,2,3,4,5,6,7,8,9]));return{id:Rl,diagram:t}},yy={id:Rl,detector:my,loader:_y},Cy=yy,Pl="xychart",by=t=>/^\s*xychart-beta/.test(t),xy=async()=>{const{diagram:t}=await Z(()=>import("../xychartDiagram-7b46ecfd-DLKHhQRW.js"),__vite__mapDeps([34,18,28,32,27,19,20,21,2,3,4,5,6,7,8,9]));return{id:Pl,diagram:t}},Ty={id:Pl,detector:by,loader:xy},vy=Ty,ql="requirement",ky=t=>/^\s*requirement(Diagram)?/.test(t),Sy=async()=>{const{diagram:t}=await Z(()=>import("../requirementDiagram-e882bd67-m7QucLgT.js"),__vite__mapDeps([35,12,13,19,20,21,2,3,4,5,6,7,8,9]));return{id:ql,diagram:t}},wy={id:ql,detector:ky,loader:Sy},By=wy,zl="sequence",Ay=t=>/^\s*sequenceDiagram/.test(t),Ly=async()=>{const{diagram:t}=await Z(()=>import("../sequenceDiagram-1767341c-PY-8nlIQ.js"),__vite__mapDeps([36,1,2,3,4,5,6,7,8,9]));return{id:zl,diagram:t}},Fy={id:zl,detector:Ay,loader:Ly},Ey=Fy,Wl="class",Oy=(t,e)=>{var i;return((i=e==null?void 0:e.class)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(t)},My=async()=>{const{diagram:t}=await Z(()=>import("../classDiagram-3275847a-CNrY7ciT.js"),__vite__mapDeps([37,38,12,13,19,20,21,2,3,4,5,6,7,8,9]));return{id:Wl,diagram:t}},$y={id:Wl,detector:Oy,loader:My},Iy=$y,Hl="classDiagram",Dy=(t,e)=>{var i;return/^\s*classDiagram/.test(t)&&((i=e==null?void 0:e.class)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(t)},Ny=async()=>{const{diagram:t}=await Z(()=>import("../classDiagram-v2-2ed0a7d3-CQK6SDZX.js"),__vite__mapDeps([39,38,12,15,13,16,17,18,19,20,21,2,3,4,5,6,7,8,9]));return{id:Hl,diagram:t}},Ry={id:Hl,detector:Dy,loader:Ny},Py=Ry,jl="state",qy=(t,e)=>{var i;return((i=e==null?void 0:e.state)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(t)},zy=async()=>{const{diagram:t}=await Z(()=>import("../stateDiagram-d2e6f24f-LATwrHmr.js"),__vite__mapDeps([40,41,12,13,19,20,21,2,3,4,5,6,7,8,9]));return{id:jl,diagram:t}},Wy={id:jl,detector:qy,loader:zy},Hy=Wy,Ul="stateDiagram",jy=(t,e)=>{var i;return!!(/^\s*stateDiagram-v2/.test(t)||/^\s*stateDiagram/.test(t)&&((i=e==null?void 0:e.state)==null?void 0:i.defaultRenderer)==="dagre-wrapper")},Uy=async()=>{const{diagram:t}=await Z(()=>import("../stateDiagram-v2-21d485ae-ThcDK9Ng.js"),__vite__mapDeps([42,41,12,15,13,16,17,18,19,20,21,2,3,4,5,6,7,8,9]));return{id:Ul,diagram:t}},Yy={id:Ul,detector:jy,loader:Uy},Gy=Yy,Yl="journey",Vy=t=>/^\s*journey/.test(t),Xy=async()=>{const{diagram:t}=await Z(()=>import("../journeyDiagram-a5efd2e1-DI4f2TC0.js"),__vite__mapDeps([43,1,31,21,2,3,4,5,6,7,8,9]));return{id:Yl,diagram:t}},Ky={id:Yl,detector:Vy,loader:Xy},Zy=Ky,Jy=function(t,e){for(let i of e)t.attr(i[0],i[1])},Qy=function(t,e,i){let r=new Map;return i?(r.set("width","100%"),r.set("style",`max-width: ${e}px;`)):(r.set("height",t),r.set("width",e)),r},Gl=function(t,e,i,r){const n=Qy(e,i,r);Jy(t,n)},tC=function(t,e,i,r){const n=e.node().getBBox(),o=n.width,s=n.height;N.info(`SVG bounds: ${o}x${s}`,n);let a=0,l=0;N.info(`Graph bounds: ${a}x${l}`,t),a=o+i*2,l=s+i*2,N.info(`Calculated bounds: ${a}x${l}`),Gl(e,l,a,r);const c=`${n.x-i} ${n.y-i} ${n.width+2*i} ${n.height+2*i}`;e.attr("viewBox",c)},Yi={},eC=(t,e,i)=>{let r="";return t in Yi&&Yi[t]?r=Yi[t](i):N.warn(`No theme found for ${t}`),` & {
font-family: ${i.fontFamily};
font-size: ${i.fontSize};
fill: ${i.textColor}
}
/* Classes common for multiple diagrams */
& .error-icon {
fill: ${i.errorBkgColor};
}
& .error-text {
fill: ${i.errorTextColor};
stroke: ${i.errorTextColor};
}
& .edge-thickness-normal {
stroke-width: 2px;
}
& .edge-thickness-thick {
stroke-width: 3.5px
}
& .edge-pattern-solid {
stroke-dasharray: 0;
}
& .edge-pattern-dashed{
stroke-dasharray: 3;
}
.edge-pattern-dotted {
stroke-dasharray: 2;
}
& .marker {
fill: ${i.lineColor};
stroke: ${i.lineColor};
}
& .marker.cross {
stroke: ${i.lineColor};
}
& svg {
font-family: ${i.fontFamily};
font-size: ${i.fontSize};
}
${r}
${e}
`},iC=(t,e)=>{e!==void 0&&(Yi[t]=e)},rC=eC;let Xn="",Kn="",Zn="";const Jn=t=>ci(t,Dt()),nC=()=>{Xn="",Zn="",Kn=""},oC=t=>{Xn=Jn(t).replace(/^\s+/g,"")},sC=()=>Xn,aC=t=>{Zn=Jn(t).replace(/\n\s+/g,`
`)},lC=()=>Zn,cC=t=>{Kn=Jn(t)},hC=()=>Kn,uC=Object.freeze(Object.defineProperty({__proto__:null,clear:nC,getAccDescription:lC,getAccTitle:sC,getDiagramTitle:hC,setAccDescription:aC,setAccTitle:oC,setDiagramTitle:cC},Symbol.toStringTag,{value:"Module"})),fC=N,dC=wn,Qn=Dt,bT=Bl,xT=Ie,pC=t=>ci(t,Qn()),gC=tC,mC=()=>uC,hr={},ur=(t,e,i)=>{var r;if(hr[t])throw new Error(`Diagram ${t} already registered.`);hr[t]=e,i&&tl(t,i),iC(t,e.styles),(r=e.injectUtils)==null||r.call(e,fC,dC,Qn,pC,gC,mC(),()=>{})},to=t=>{if(t in hr)return hr[t];throw new _C(t)};class _C extends Error{constructor(e){super(`Diagram ${e} not found.`)}}const yC=t=>{var e;const{securityLevel:i}=Qn();let r=vt("body");if(i==="sandbox"){const s=((e=vt(`#i${t}`).node())==null?void 0:e.contentDocument)??document;r=vt(s.body)}return r.select(`#${t}`)},CC=(t,e,i)=>{N.debug(`rendering svg for syntax error
`);const r=yC(e),n=r.append("g");r.attr("viewBox","0 0 2412 512"),Gl(r,100,512,!0),n.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),n.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),n.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),n.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),n.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),n.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),n.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),n.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${i}`)},Vl={draw:CC},bC=Vl,xC={db:{},renderer:Vl,parser:{parser:{yy:{}},parse:()=>{}}},TC=xC,Xl="flowchart-elk",vC=(t,e)=>{var i;return!!(/^\s*flowchart-elk/.test(t)||/^\s*flowchart|graph/.test(t)&&((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="elk")},kC=async()=>{const{diagram:t}=await Z(()=>import("../flowchart-elk-definition-1a3aaf5d--iixaehS.js"),__vite__mapDeps([44,11,17,18,19,20,21,2,3,4,5,6,7,8,9]));return{id:Xl,diagram:t}},SC={id:Xl,detector:vC,loader:kC},wC=SC,Kl="timeline",BC=t=>/^\s*timeline/.test(t),AC=async()=>{const{diagram:t}=await Z(()=>import("../timeline-definition-f8c5dfc0-sY0iCSOs.js"),__vite__mapDeps([45,31,21,2,3,4,5,6,7,8,9]));return{id:Kl,diagram:t}},LC={id:Kl,detector:BC,loader:AC},FC=LC,Zl="mindmap",EC=t=>/^\s*mindmap/.test(t),OC=async()=>{const{diagram:t}=await Z(()=>import("../mindmap-definition-74120bdd-DEh8FM6n.js"),__vite__mapDeps([46,18,2,3,4,5,6,7,8,9]));return{id:Zl,diagram:t}},MC={id:Zl,detector:EC,loader:OC},$C=MC,Jl="sankey",IC=t=>/^\s*sankey-beta/.test(t),DC=async()=>{const{diagram:t}=await Z(()=>import("../sankeyDiagram-f5d051b7-Bm9wHpVB.js"),__vite__mapDeps([47,32,28,48,2,3,4,5,6,7,8,9]));return{id:Jl,diagram:t}},NC={id:Jl,detector:IC,loader:DC},RC=NC,Ql="block",PC=t=>/^\s*block-beta/.test(t),qC=async()=>{const{diagram:t}=await Z(()=>import("../blockDiagram-8beecd1f-CAHAqGe5.js"),__vite__mapDeps([49,16,12,22,17,18,19,20,21,32,28,48,2,3,4,5,6,7,8,9]));return{id:Ql,diagram:t}},zC={id:Ql,detector:PC,loader:qC},WC=zC;let Ls=!1;const eo=()=>{Ls||(Ls=!0,ur("error",TC,t=>t.toLowerCase().trim()==="error"),ur("---",{db:{clear:()=>{}},styles:{},renderer:{draw:()=>{}},parser:{parser:{yy:{}},parse:()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")}},init:()=>null},t=>t.toLowerCase().trimStart().startsWith("---")),Qa(H0,Py,Iy,ey,cy,fy,gy,By,Ey,wC,Z0,G0,$C,FC,oy,Gy,Hy,Zy,Cy,RC,vy,WC))};class tc{constructor(e,i={}){this.text=e,this.metadata=i,this.type="graph",this.text=m0(e),this.text+=`
`;const r=Dt();try{this.type=kr(e,r)}catch(o){this.type="error",this.detectError=o}const n=to(this.type);N.debug("Type "+this.type),this.db=n.db,this.renderer=n.renderer,this.parser=n.parser,this.parser.parser.yy=this.db,this.init=n.init,this.parse()}parse(){var e,i,r,n,o;if(this.detectError)throw this.detectError;(i=(e=this.db).clear)==null||i.call(e);const s=Dt();(r=this.init)==null||r.call(this,s),this.metadata.title&&((o=(n=this.db).setDiagramTitle)==null||o.call(n,this.metadata.title)),this.parser.parse(this.text)}async render(e,i){await this.renderer.draw(this.text,e,i,this)}getParser(){return this.parser}getType(){return this.type}}const HC=async(t,e={})=>{const i=kr(t,Dt());try{to(i)}catch{const n=Zp(i);if(!n)throw new Ja(`Diagram ${i} not found.`);const{id:o,diagram:s}=await n();ur(o,s)}return new tc(t,e)};let Fs=[];const jC=()=>{Fs.forEach(t=>{t()}),Fs=[]};var UC=nl(Object.keys,Object);const YC=UC;var GC=Object.prototype,VC=GC.hasOwnProperty;function XC(t){if(!Ar(t))return YC(t);var e=[];for(var i in Object(t))VC.call(t,i)&&i!="constructor"&&e.push(i);return e}var KC=be(Rt,"DataView");const bn=KC;var ZC=be(Rt,"Promise");const xn=ZC;var JC=be(Rt,"Set");const Tn=JC;var QC=be(Rt,"WeakMap");const vn=QC;var Es="[object Map]",t1="[object Object]",Os="[object Promise]",Ms="[object Set]",$s="[object WeakMap]",Is="[object DataView]",e1=Ce(bn),i1=Ce(ui),r1=Ce(xn),n1=Ce(Tn),o1=Ce(vn),he=Re;(bn&&he(new bn(new ArrayBuffer(1)))!=Is||ui&&he(new ui)!=Es||xn&&he(xn.resolve())!=Os||Tn&&he(new Tn)!=Ms||vn&&he(new vn)!=$s)&&(he=function(t){var e=Re(t),i=e==t1?t.constructor:void 0,r=i?Ce(i):"";if(r)switch(r){case e1:return Is;case i1:return Es;case r1:return Os;case n1:return Ms;case o1:return $s}return e});const s1=he;var a1="[object Map]",l1="[object Set]",c1=Object.prototype,h1=c1.hasOwnProperty;function Zr(t){if(t==null)return!0;if(Lr(t)&&(ar(t)||typeof t=="string"||typeof t.splice=="function"||Wn(t)||Hn(t)||sr(t)))return!t.length;var e=s1(t);if(e==a1||e==l1)return!t.size;if(Ar(t))return!XC(t).length;for(var i in t)if(h1.call(t,i))return!1;return!0}const u1="graphics-document document";function f1(t,e){t.attr("role",u1),e!==""&&t.attr("aria-roledescription",e)}function d1(t,e,i,r){if(t.insert!==void 0){if(i){const n=`chart-desc-${r}`;t.attr("aria-describedby",n),t.insert("desc",":first-child").attr("id",n).text(i)}if(e){const n=`chart-title-${r}`;t.attr("aria-labelledby",n),t.insert("title",":first-child").attr("id",n).text(e)}}}const p1=t=>t.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart();/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function ec(t){return typeof t>"u"||t===null}function g1(t){return typeof t=="object"&&t!==null}function m1(t){return Array.isArray(t)?t:ec(t)?[]:[t]}function _1(t,e){var i,r,n,o;if(e)for(o=Object.keys(e),i=0,r=o.length;i<r;i+=1)n=o[i],t[n]=e[n];return t}function y1(t,e){var i="",r;for(r=0;r<e;r+=1)i+=t;return i}function C1(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var b1=ec,x1=g1,T1=m1,v1=y1,k1=C1,S1=_1,ht={isNothing:b1,isObject:x1,toArray:T1,repeat:v1,isNegativeZero:k1,extend:S1};function ic(t,e){var i="",r=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(i+='in "'+t.mark.name+'" '),i+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(i+=`
`+t.mark.snippet),r+" "+i):r}function pi(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=ic(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}pi.prototype=Object.create(Error.prototype);pi.prototype.constructor=pi;pi.prototype.toString=function(e){return this.name+": "+ic(this,e)};var Gt=pi;function Jr(t,e,i,r,n){var o="",s="",a=Math.floor(n/2)-1;return r-e>a&&(o=" ... ",e=r-a+o.length),i-r>a&&(s=" ...",i=r+a-s.length),{str:o+t.slice(e,i).replace(/\t/g,"→")+s,pos:r-e+o.length}}function Qr(t,e){return ht.repeat(" ",e-t.length)+t}function w1(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var i=/\r?\n|\r|\0/g,r=[0],n=[],o,s=-1;o=i.exec(t.buffer);)n.push(o.index),r.push(o.index+o[0].length),t.position<=o.index&&s<0&&(s=r.length-2);s<0&&(s=r.length-1);var a="",l,c,u=Math.min(t.line+e.linesAfter,n.length).toString().length,f=e.maxLength-(e.indent+u+3);for(l=1;l<=e.linesBefore&&!(s-l<0);l++)c=Jr(t.buffer,r[s-l],n[s-l],t.position-(r[s]-r[s-l]),f),a=ht.repeat(" ",e.indent)+Qr((t.line-l+1).toString(),u)+" | "+c.str+`
`+a;for(c=Jr(t.buffer,r[s],n[s],t.position,f),a+=ht.repeat(" ",e.indent)+Qr((t.line+1).toString(),u)+" | "+c.str+`
`,a+=ht.repeat("-",e.indent+u+3+c.pos)+`^
`,l=1;l<=e.linesAfter&&!(s+l>=n.length);l++)c=Jr(t.buffer,r[s+l],n[s+l],t.position-(r[s]-r[s+l]),f),a+=ht.repeat(" ",e.indent)+Qr((t.line+l+1).toString(),u)+" | "+c.str+`
`;return a.replace(/\n$/,"")}var B1=w1,A1=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],L1=["scalar","sequence","mapping"];function F1(t){var e={};return t!==null&&Object.keys(t).forEach(function(i){t[i].forEach(function(r){e[String(r)]=i})}),e}function E1(t,e){if(e=e||{},Object.keys(e).forEach(function(i){if(A1.indexOf(i)===-1)throw new Gt('Unknown option "'+i+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(i){return i},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=F1(e.styleAliases||null),L1.indexOf(this.kind)===-1)throw new Gt('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var ct=E1;function Ds(t,e){var i=[];return t[e].forEach(function(r){var n=i.length;i.forEach(function(o,s){o.tag===r.tag&&o.kind===r.kind&&o.multi===r.multi&&(n=s)}),i[n]=r}),i}function O1(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,i;function r(n){n.multi?(t.multi[n.kind].push(n),t.multi.fallback.push(n)):t[n.kind][n.tag]=t.fallback[n.tag]=n}for(e=0,i=arguments.length;e<i;e+=1)arguments[e].forEach(r);return t}function kn(t){return this.extend(t)}kn.prototype.extend=function(e){var i=[],r=[];if(e instanceof ct)r.push(e);else if(Array.isArray(e))r=r.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(i=i.concat(e.implicit)),e.explicit&&(r=r.concat(e.explicit));else throw new Gt("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");i.forEach(function(o){if(!(o instanceof ct))throw new Gt("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(o.loadKind&&o.loadKind!=="scalar")throw new Gt("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(o.multi)throw new Gt("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(o){if(!(o instanceof ct))throw new Gt("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(kn.prototype);return n.implicit=(this.implicit||[]).concat(i),n.explicit=(this.explicit||[]).concat(r),n.compiledImplicit=Ds(n,"implicit"),n.compiledExplicit=Ds(n,"explicit"),n.compiledTypeMap=O1(n.compiledImplicit,n.compiledExplicit),n};var M1=kn,$1=new ct("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),I1=new ct("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),D1=new ct("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),N1=new M1({explicit:[$1,I1,D1]});function R1(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function P1(){return null}function q1(t){return t===null}var z1=new ct("tag:yaml.org,2002:null",{kind:"scalar",resolve:R1,construct:P1,predicate:q1,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function W1(t){if(t===null)return!1;var e=t.length;return e===4&&(t==="true"||t==="True"||t==="TRUE")||e===5&&(t==="false"||t==="False"||t==="FALSE")}function H1(t){return t==="true"||t==="True"||t==="TRUE"}function j1(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var U1=new ct("tag:yaml.org,2002:bool",{kind:"scalar",resolve:W1,construct:H1,predicate:j1,represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"});function Y1(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function G1(t){return 48<=t&&t<=55}function V1(t){return 48<=t&&t<=57}function X1(t){if(t===null)return!1;var e=t.length,i=0,r=!1,n;if(!e)return!1;if(n=t[i],(n==="-"||n==="+")&&(n=t[++i]),n==="0"){if(i+1===e)return!0;if(n=t[++i],n==="b"){for(i++;i<e;i++)if(n=t[i],n!=="_"){if(n!=="0"&&n!=="1")return!1;r=!0}return r&&n!=="_"}if(n==="x"){for(i++;i<e;i++)if(n=t[i],n!=="_"){if(!Y1(t.charCodeAt(i)))return!1;r=!0}return r&&n!=="_"}if(n==="o"){for(i++;i<e;i++)if(n=t[i],n!=="_"){if(!G1(t.charCodeAt(i)))return!1;r=!0}return r&&n!=="_"}}if(n==="_")return!1;for(;i<e;i++)if(n=t[i],n!=="_"){if(!V1(t.charCodeAt(i)))return!1;r=!0}return!(!r||n==="_")}function K1(t){var e=t,i=1,r;if(e.indexOf("_")!==-1&&(e=e.replace(/_/g,"")),r=e[0],(r==="-"||r==="+")&&(r==="-"&&(i=-1),e=e.slice(1),r=e[0]),e==="0")return 0;if(r==="0"){if(e[1]==="b")return i*parseInt(e.slice(2),2);if(e[1]==="x")return i*parseInt(e.slice(2),16);if(e[1]==="o")return i*parseInt(e.slice(2),8)}return i*parseInt(e,10)}function Z1(t){return Object.prototype.toString.call(t)==="[object Number]"&&t%1===0&&!ht.isNegativeZero(t)}var J1=new ct("tag:yaml.org,2002:int",{kind:"scalar",resolve:X1,construct:K1,predicate:Z1,represent:{binary:function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},octal:function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Q1=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function tb(t){return!(t===null||!Q1.test(t)||t[t.length-1]==="_")}function eb(t){var e,i;return e=t.replace(/_/g,"").toLowerCase(),i=e[0]==="-"?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),e===".inf"?i===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:e===".nan"?NaN:i*parseFloat(e,10)}var ib=/^[-+]?[0-9]+e/;function rb(t,e){var i;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(ht.isNegativeZero(t))return"-0.0";return i=t.toString(10),ib.test(i)?i.replace("e",".e"):i}function nb(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||ht.isNegativeZero(t))}var ob=new ct("tag:yaml.org,2002:float",{kind:"scalar",resolve:tb,construct:eb,predicate:nb,represent:rb,defaultStyle:"lowercase"}),rc=N1.extend({implicit:[z1,U1,J1,ob]}),sb=rc,nc=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),oc=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 ab(t){return t===null?!1:nc.exec(t)!==null||oc.exec(t)!==null}function lb(t){var e,i,r,n,o,s,a,l=0,c=null,u,f,h;if(e=nc.exec(t),e===null&&(e=oc.exec(t)),e===null)throw new Error("Date resolve error");if(i=+e[1],r=+e[2]-1,n=+e[3],!e[4])return new Date(Date.UTC(i,r,n));if(o=+e[4],s=+e[5],a=+e[6],e[7]){for(l=e[7].slice(0,3);l.length<3;)l+="0";l=+l}return e[9]&&(u=+e[10],f=+(e[11]||0),c=(u*60+f)*6e4,e[9]==="-"&&(c=-c)),h=new Date(Date.UTC(i,r,n,o,s,a,l)),c&&h.setTime(h.getTime()-c),h}function cb(t){return t.toISOString()}var hb=new ct("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:ab,construct:lb,instanceOf:Date,represent:cb});function ub(t){return t==="<<"||t===null}var fb=new ct("tag:yaml.org,2002:merge",{kind:"scalar",resolve:ub}),io=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
\r`;function db(t){if(t===null)return!1;var e,i,r=0,n=t.length,o=io;for(i=0;i<n;i++)if(e=o.indexOf(t.charAt(i)),!(e>64)){if(e<0)return!1;r+=6}return r%8===0}function pb(t){var e,i,r=t.replace(/[\r\n=]/g,""),n=r.length,o=io,s=0,a=[];for(e=0;e<n;e++)e%4===0&&e&&(a.push(s>>16&255),a.push(s>>8&255),a.push(s&255)),s=s<<6|o.indexOf(r.charAt(e));return i=n%4*6,i===0?(a.push(s>>16&255),a.push(s>>8&255),a.push(s&255)):i===18?(a.push(s>>10&255),a.push(s>>2&255)):i===12&&a.push(s>>4&255),new Uint8Array(a)}function gb(t){var e="",i=0,r,n,o=t.length,s=io;for(r=0;r<o;r++)r%3===0&&r&&(e+=s[i>>18&63],e+=s[i>>12&63],e+=s[i>>6&63],e+=s[i&63]),i=(i<<8)+t[r];return n=o%3,n===0?(e+=s[i>>18&63],e+=s[i>>12&63],e+=s[i>>6&63],e+=s[i&63]):n===2?(e+=s[i>>10&63],e+=s[i>>4&63],e+=s[i<<2&63],e+=s[64]):n===1&&(e+=s[i>>2&63],e+=s[i<<4&63],e+=s[64],e+=s[64]),e}function mb(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var _b=new ct("tag:yaml.org,2002:binary",{kind:"scalar",resolve:db,construct:pb,predicate:mb,represent:gb}),yb=Object.prototype.hasOwnProperty,Cb=Object.prototype.toString;function bb(t){if(t===null)return!0;var e=[],i,r,n,o,s,a=t;for(i=0,r=a.length;i<r;i+=1){if(n=a[i],s=!1,Cb.call(n)!=="[object Object]")return!1;for(o in n)if(yb.call(n,o))if(!s)s=!0;else return!1;if(!s)return!1;if(e.indexOf(o)===-1)e.push(o);else return!1}return!0}function xb(t){return t!==null?t:[]}var Tb=new ct("tag:yaml.org,2002:omap",{kind:"sequence",resolve:bb,construct:xb}),vb=Object.prototype.toString;function kb(t){if(t===null)return!0;var e,i,r,n,o,s=t;for(o=new Array(s.length),e=0,i=s.length;e<i;e+=1){if(r=s[e],vb.call(r)!=="[object Object]"||(n=Object.keys(r),n.length!==1))return!1;o[e]=[n[0],r[n[0]]]}return!0}function Sb(t){if(t===null)return[];var e,i,r,n,o,s=t;for(o=new Array(s.length),e=0,i=s.length;e<i;e+=1)r=s[e],n=Object.keys(r),o[e]=[n[0],r[n[0]]];return o}var wb=new ct("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:kb,construct:Sb}),Bb=Object.prototype.hasOwnProperty;function Ab(t){if(t===null)return!0;var e,i=t;for(e in i)if(Bb.call(i,e)&&i[e]!==null)return!1;return!0}function Lb(t){return t!==null?t:{}}var Fb=new ct("tag:yaml.org,2002:set",{kind:"mapping",resolve:Ab,construct:Lb}),Eb=sb.extend({implicit:[hb,fb],explicit:[_b,Tb,wb,Fb]}),oe=Object.prototype.hasOwnProperty,fr=1,sc=2,ac=3,dr=4,tn=1,Ob=2,Ns=3,Mb=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,$b=/[\x85\u2028\u2029]/,Ib=/[,\[\]\{\}]/,lc=/^(?:!|!!|![a-z\-]+!)$/i,cc=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Rs(t){return Object.prototype.toString.call(t)}function $t(t){return t===10||t===13}function pe(t){return t===9||t===32}function _t(t){return t===9||t===32||t===10||t===13}function Be(t){return t===44||t===91||t===93||t===123||t===125}function Db(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}function Nb(t){return t===120?2:t===117?4:t===85?8:0}function Rb(t){return 48<=t&&t<=57?t-48:-1}function Ps(t){return t===48?"\0":t===97?"\x07":t===98?"\b":t===116||t===9?" ":t===110?`
`:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?" ":t===95?" ":t===76?"\u2028":t===80?"\u2029":""}function Pb(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}var hc=new Array(256),uc=new Array(256);for(var we=0;we<256;we++)hc[we]=Ps(we)?1:0,uc[we]=Ps(we);function qb(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||Eb,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function fc(t,e){var i={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return i.snippet=B1(i),new Gt(e,i)}function D(t,e){throw fc(t,e)}function pr(t,e){t.onWarning&&t.onWarning.call(null,fc(t,e))}var qs={YAML:function(e,i,r){var n,o,s;e.version!==null&&D(e,"duplication of %YAML directive"),r.length!==1&&D(e,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]),n===null&&D(e,"ill-formed argument of the YAML directive"),o=parseInt(n[1],10),s=parseInt(n[2],10),o!==1&&D(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=s<2,s!==1&&s!==2&&pr(e,"unsupported YAML version of the document")},TAG:function(e,i,r){var n,o;r.length!==2&&D(e,"TAG directive accepts exactly two arguments"),n=r[0],o=r[1],lc.test(n)||D(e,"ill-formed tag handle (first argument) of the TAG directive"),oe.call(e.tagMap,n)&&D(e,'there is a previously declared suffix for "'+n+'" tag handle'),cc.test(o)||D(e,"ill-formed tag prefix (second argument) of the TAG directive");try{o=decodeURIComponent(o)}catch{D(e,"tag prefix is malformed: "+o)}e.tagMap[n]=o}};function re(t,e,i,r){var n,o,s,a;if(e<i){if(a=t.input.slice(e,i),r)for(n=0,o=a.length;n<o;n+=1)s=a.charCodeAt(n),s===9||32<=s&&s<=1114111||D(t,"expected valid JSON character");else Mb.test(a)&&D(t,"the stream contains non-printable characters");t.result+=a}}function zs(t,e,i,r){var n,o,s,a;for(ht.isObject(i)||D(t,"cannot merge mappings; the provided source object is unacceptable"),n=Object.keys(i),s=0,a=n.length;s<a;s+=1)o=n[s],oe.call(e,o)||(e[o]=i[o],r[o]=!0)}function Ae(t,e,i,r,n,o,s,a,l){var c,u;if(Array.isArray(n))for(n=Array.prototype.slice.call(n),c=0,u=n.length;c<u;c+=1)Array.isArray(n[c])&&D(t,"nested arrays are not supported inside keys"),typeof n=="object"&&Rs(n[c])==="[object Object]"&&(n[c]="[object Object]");if(typeof n=="object"&&Rs(n)==="[object Object]"&&(n="[object Object]"),n=String(n),e===null&&(e={}),r==="tag:yaml.org,2002:merge")if(Array.isArray(o))for(c=0,u=o.length;c<u;c+=1)zs(t,e,o[c],i);else zs(t,e,o,i);else!t.json&&!oe.call(i,n)&&oe.call(e,n)&&(t.line=s||t.line,t.lineStart=a||t.lineStart,t.position=l||t.position,D(t,"duplicated mapping key")),n==="__proto__"?Object.defineProperty(e,n,{configurable:!0,enumerable:!0,writable:!0,value:o}):e[n]=o,delete i[n];return e}function ro(t){var e;e=t.input.charCodeAt(t.position),e===10?t.position++:e===13?(t.position++,t.input.charCodeAt(t.position)===10&&t.position++):D(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function et(t,e,i){for(var r=0,n=t.input.charCodeAt(t.position);n!==0;){for(;pe(n);)n===9&&t.firstTabInLine===-1&&(t.firstTabInLine=t.position),n=t.input.charCodeAt(++t.position);if(e&&n===35)do n=t.input.charCodeAt(++t.position);while(n!==10&&n!==13&&n!==0);if($t(n))for(ro(t),n=t.input.charCodeAt(t.position),r++,t.lineIndent=0;n===32;)t.lineIndent++,n=t.input.charCodeAt(++t.position);else break}return i!==-1&&r!==0&&t.lineIndent<i&&pr(t,"deficient indentation"),r}function Mr(t){var e=t.position,i;return i=t.input.charCodeAt(e),!!((i===45||i===46)&&i===t.input.charCodeAt(e+1)&&i===t.input.charCodeAt(e+2)&&(e+=3,i=t.input.charCodeAt(e),i===0||_t(i)))}function no(t,e){e===1?t.result+=" ":e>1&&(t.result+=ht.repeat(`
`,e-1))}function zb(t,e,i){var r,n,o,s,a,l,c,u,f=t.kind,h=t.result,d;if(d=t.input.charCodeAt(t.position),_t(d)||Be(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(n=t.input.charCodeAt(t.position+1),_t(n)||i&&Be(n)))return!1;for(t.kind="scalar",t.result="",o=s=t.position,a=!1;d!==0;){if(d===58){if(n=t.input.charCodeAt(t.position+1),_t(n)||i&&Be(n))break}else if(d===35){if(r=t.input.charCodeAt(t.position-1),_t(r))break}else{if(t.position===t.lineStart&&Mr(t)||i&&Be(d))break;if($t(d))if(l=t.line,c=t.lineStart,u=t.lineIndent,et(t,!1,-1),t.lineIndent>=e){a=!0,d=t.input.charCodeAt(t.position);continue}else{t.position=s,t.line=l,t.lineStart=c,t.lineIndent=u;break}}a&&(re(t,o,s,!1),no(t,t.line-l),o=s=t.position,a=!1),pe(d)||(s=t.position+1),d=t.input.charCodeAt(++t.position)}return re(t,o,s,!1),t.result?!0:(t.kind=f,t.result=h,!1)}function Wb(t,e){var i,r,n;if(i=t.input.charCodeAt(t.position),i!==39)return!1;for(t.kind="scalar",t.result="",t.position++,r=n=t.position;(i=t.input.charCodeAt(t.position))!==0;)if(i===39)if(re(t,r,t.position,!0),i=t.input.charCodeAt(++t.position),i===39)r=t.position,t.position++,n=t.position;else return!0;else $t(i)?(re(t,r,n,!0),no(t,et(t,!1,e)),r=n=t.position):t.position===t.lineStart&&Mr(t)?D(t,"unexpected end of the document within a single quoted scalar"):(t.position++,n=t.position);D(t,"unexpected end of the stream within a single quoted scalar")}function Hb(t,e){var i,r,n,o,s,a;if(a=t.input.charCodeAt(t.position),a!==34)return!1;for(t.kind="scalar",t.result="",t.position++,i=r=t.position;(a=t.input.charCodeAt(t.position))!==0;){if(a===34)return re(t,i,t.position,!0),t.position++,!0;if(a===92){if(re(t,i,t.position,!0),a=t.input.charCodeAt(++t.position),$t(a))et(t,!1,e);else if(a<256&&hc[a])t.result+=uc[a],t.position++;else if((s=Nb(a))>0){for(n=s,o=0;n>0;n--)a=t.input.charCodeAt(++t.position),(s=Db(a))>=0?o=(o<<4)+s:D(t,"expected hexadecimal character");t.result+=Pb(o),t.position++}else D(t,"unknown escape sequence");i=r=t.position}else $t(a)?(re(t,i,r,!0),no(t,et(t,!1,e)),i=r=t.position):t.position===t.lineStart&&Mr(t)?D(t,"unexpected end of the document within a double quoted scalar"):(t.position++,r=t.position)}D(t,"unexpected end of the stream within a double quoted scalar")}function jb(t,e){var i=!0,r,n,o,s=t.tag,a,l=t.anchor,c,u,f,h,d,_=Object.create(null),T,w,A,y;if(y=t.input.charCodeAt(t.position),y===91)u=93,d=!1,a=[];else if(y===123)u=125,d=!0,a={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=a),y=t.input.charCodeAt(++t.position);y!==0;){if(et(t,!0,e),y=t.input.charCodeAt(t.position),y===u)return t.position++,t.tag=s,t.anchor=l,t.kind=d?"mapping":"sequence",t.result=a,!0;i?y===44&&D(t,"expected the node content, but found ','"):D(t,"missed comma between flow collection entries"),w=T=A=null,f=h=!1,y===63&&(c=t.input.charCodeAt(t.position+1),_t(c)&&(f=h=!0,t.position++,et(t,!0,e))),r=t.line,n=t.lineStart,o=t.position,Ne(t,e,fr,!1,!0),w=t.tag,T=t.result,et(t,!0,e),y=t.input.charCodeAt(t.position),(h||t.line===r)&&y===58&&(f=!0,y=t.input.charCodeAt(++t.position),et(t,!0,e),Ne(t,e,fr,!1,!0),A=t.result),d?Ae(t,a,_,w,T,A,r,n,o):f?a.push(Ae(t,null,_,w,T,A,r,n,o)):a.push(T),et(t,!0,e),y=t.input.charCodeAt(t.position),y===44?(i=!0,y=t.input.charCodeAt(++t.position)):i=!1}D(t,"unexpected end of the stream within a flow collection")}function Ub(t,e){var i,r,n=tn,o=!1,s=!1,a=e,l=0,c=!1,u,f;if(f=t.input.charCodeAt(t.position),f===124)r=!1;else if(f===62)r=!0;else return!1;for(t.kind="scalar",t.result="";f!==0;)if(f=t.input.charCodeAt(++t.position),f===43||f===45)tn===n?n=f===43?Ns:Ob:D(t,"repeat of a chomping mode identifier");else if((u=Rb(f))>=0)u===0?D(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?D(t,"repeat of an indentation width identifier"):(a=e+u-1,s=!0);else break;if(pe(f)){do f=t.input.charCodeAt(++t.position);while(pe(f));if(f===35)do f=t.input.charCodeAt(++t.position);while(!$t(f)&&f!==0)}for(;f!==0;){for(ro(t),t.lineIndent=0,f=t.input.charCodeAt(t.position);(!s||t.lineIndent<a)&&f===32;)t.lineIndent++,f=t.input.charCodeAt(++t.position);if(!s&&t.lineIndent>a&&(a=t.lineIndent),$t(f)){l++;continue}if(t.lineIndent<a){n===Ns?t.result+=ht.repeat(`
`,o?1+l:l):n===tn&&o&&(t.result+=`
`);break}for(r?pe(f)?(c=!0,t.result+=ht.repeat(`
`,o?1+l:l)):c?(c=!1,t.result+=ht.repeat(`
`,l+1)):l===0?o&&(t.result+=" "):t.result+=ht.repeat(`
`,l):t.result+=ht.repeat(`
`,o?1+l:l),o=!0,s=!0,l=0,i=t.position;!$t(f)&&f!==0;)f=t.input.charCodeAt(++t.position);re(t,i,t.position,!1)}return!0}function Ws(t,e){var i,r=t.tag,n=t.anchor,o=[],s,a=!1,l;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=o),l=t.input.charCodeAt(t.position);l!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,D(t,"tab characters must not be used in indentation")),!(l!==45||(s=t.input.charCodeAt(t.position+1),!_t(s))));){if(a=!0,t.position++,et(t,!0,-1)&&t.lineIndent<=e){o.push(null),l=t.input.charCodeAt(t.position);continue}if(i=t.line,Ne(t,e,ac,!1,!0),o.push(t.result),et(t,!0,-1),l=t.input.charCodeAt(t.position),(t.line===i||t.lineIndent>e)&&l!==0)D(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return a?(t.tag=r,t.anchor=n,t.kind="sequence",t.result=o,!0):!1}function Yb(t,e,i){var r,n,o,s,a,l,c=t.tag,u=t.anchor,f={},h=Object.create(null),d=null,_=null,T=null,w=!1,A=!1,y;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=f),y=t.input.charCodeAt(t.position);y!==0;){if(!w&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,D(t,"tab characters must not be used in indentation")),r=t.input.charCodeAt(t.position+1),o=t.line,(y===63||y===58)&&_t(r))y===63?(w&&(Ae(t,f,h,d,_,null,s,a,l),d=_=T=null),A=!0,w=!0,n=!0):w?(w=!1,n=!0):D(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,y=r;else{if(s=t.line,a=t.lineStart,l=t.position,!Ne(t,i,sc,!1,!0))break;if(t.line===o){for(y=t.input.charCodeAt(t.position);pe(y);)y=t.input.charCodeAt(++t.position);if(y===58)y=t.input.charCodeAt(++t.position),_t(y)||D(t,"a whitespace character is expected after the key-value separator within a block mapping"),w&&(Ae(t,f,h,d,_,null,s,a,l),d=_=T=null),A=!0,w=!1,n=!1,d=t.tag,_=t.result;else if(A)D(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=c,t.anchor=u,!0}else if(A)D(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=c,t.anchor=u,!0}if((t.line===o||t.lineIndent>e)&&(w&&(s=t.line,a=t.lineStart,l=t.position),Ne(t,e,dr,!0,n)&&(w?_=t.result:T=t.result),w||(Ae(t,f,h,d,_,T,s,a,l),d=_=T=null),et(t,!0,-1),y=t.input.charCodeAt(t.position)),(t.line===o||t.lineIndent>e)&&y!==0)D(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return w&&Ae(t,f,h,d,_,null,s,a,l),A&&(t.tag=c,t.anchor=u,t.kind="mapping",t.result=f),A}function Gb(t){var e,i=!1,r=!1,n,o,s;if(s=t.input.charCodeAt(t.position),s!==33)return!1;if(t.tag!==null&&D(t,"duplication of a tag property"),s=t.input.charCodeAt(++t.position),s===60?(i=!0,s=t.input.charCodeAt(++t.position)):s===33?(r=!0,n="!!",s=t.input.charCodeAt(++t.position)):n="!",e=t.position,i){do s=t.input.charCodeAt(++t.position);while(s!==0&&s!==62);t.position<t.length?(o=t.input.slice(e,t.position),s=t.input.charCodeAt(++t.position)):D(t,"unexpected end of the stream within a verbatim tag")}else{for(;s!==0&&!_t(s);)s===33&&(r?D(t,"tag suffix cannot contain exclamation marks"):(n=t.input.slice(e-1,t.position+1),lc.test(n)||D(t,"named tag handle cannot contain such characters"),r=!0,e=t.position+1)),s=t.input.charCodeAt(++t.position);o=t.input.slice(e,t.position),Ib.test(o)&&D(t,"tag suffix cannot contain flow indicator characters")}o&&!cc.test(o)&&D(t,"tag name cannot contain such characters: "+o);try{o=decodeURIComponent(o)}catch{D(t,"tag name is malformed: "+o)}return i?t.tag=o:oe.call(t.tagMap,n)?t.tag=t.tagMap[n]+o:n==="!"?t.tag="!"+o:n==="!!"?t.tag="tag:yaml.org,2002:"+o:D(t,'undeclared tag handle "'+n+'"'),!0}function Vb(t){var e,i;if(i=t.input.charCodeAt(t.position),i!==38)return!1;for(t.anchor!==null&&D(t,"duplication of an anchor property"),i=t.input.charCodeAt(++t.position),e=t.position;i!==0&&!_t(i)&&!Be(i);)i=t.input.charCodeAt(++t.position);return t.position===e&&D(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function Xb(t){var e,i,r;if(r=t.input.charCodeAt(t.position),r!==42)return!1;for(r=t.input.charCodeAt(++t.position),e=t.position;r!==0&&!_t(r)&&!Be(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&D(t,"name of an alias node must contain at least one character"),i=t.input.slice(e,t.position),oe.call(t.anchorMap,i)||D(t,'unidentified alias "'+i+'"'),t.result=t.anchorMap[i],et(t,!0,-1),!0}function Ne(t,e,i,r,n){var o,s,a,l=1,c=!1,u=!1,f,h,d,_,T,w;if(t.listener!==null&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,o=s=a=dr===i||ac===i,r&&et(t,!0,-1)&&(c=!0,t.lineIndent>e?l=1:t.lineIndent===e?l=0:t.lineIndent<e&&(l=-1)),l===1)for(;Gb(t)||Vb(t);)et(t,!0,-1)?(c=!0,a=o,t.lineIndent>e?l=1:t.lineIndent===e?l=0:t.lineIndent<e&&(l=-1)):a=!1;if(a&&(a=c||n),(l===1||dr===i)&&(fr===i||sc===i?T=e:T=e+1,w=t.position-t.lineStart,l===1?a&&(Ws(t,w)||Yb(t,w,T))||jb(t,T)?u=!0:(s&&Ub(t,T)||Wb(t,T)||Hb(t,T)?u=!0:Xb(t)?(u=!0,(t.tag!==null||t.anchor!==null)&&D(t,"alias node should not have any properties")):zb(t,T,fr===i)&&(u=!0,t.tag===null&&(t.tag="?")),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):l===0&&(u=a&&Ws(t,w))),t.tag===null)t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);else if(t.tag==="?"){for(t.result!==null&&t.kind!=="scalar"&&D(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),f=0,h=t.implicitTypes.length;f<h;f+=1)if(_=t.implicitTypes[f],_.resolve(t.result)){t.result=_.construct(t.result),t.tag=_.tag,t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);break}}else if(t.tag!=="!"){if(oe.call(t.typeMap[t.kind||"fallback"],t.tag))_=t.typeMap[t.kind||"fallback"][t.tag];else for(_=null,d=t.typeMap.multi[t.kind||"fallback"],f=0,h=d.length;f<h;f+=1)if(t.tag.slice(0,d[f].tag.length)===d[f].tag){_=d[f];break}_||D(t,"unknown tag !<"+t.tag+">"),t.result!==null&&_.kind!==t.kind&&D(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+_.kind+'", not "'+t.kind+'"'),_.resolve(t.result,t.tag)?(t.result=_.construct(t.result,t.tag),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):D(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return t.listener!==null&&t.listener("close",t),t.tag!==null||t.anchor!==null||u}function Kb(t){var e=t.position,i,r,n,o=!1,s;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);(s=t.input.charCodeAt(t.position))!==0&&(et(t,!0,-1),s=t.input.charCodeAt(t.position),!(t.lineIndent>0||s!==37));){for(o=!0,s=t.input.charCodeAt(++t.position),i=t.position;s!==0&&!_t(s);)s=t.input.charCodeAt(++t.position);for(r=t.input.slice(i,t.position),n=[],r.length<1&&D(t,"directive name must not be less than one character in length");s!==0;){for(;pe(s);)s=t.input.charCodeAt(++t.position);if(s===35){do s=t.input.charCodeAt(++t.position);while(s!==0&&!$t(s));break}if($t(s))break;for(i=t.position;s!==0&&!_t(s);)s=t.input.charCodeAt(++t.position);n.push(t.input.slice(i,t.position))}s!==0&&ro(t),oe.call(qs,r)?qs[r](t,r,n):pr(t,'unknown document directive "'+r+'"')}if(et(t,!0,-1),t.lineIndent===0&&t.input.charCodeAt(t.position)===45&&t.input.charCodeAt(t.position+1)===45&&t.input.charCodeAt(t.position+2)===45?(t.position+=3,et(t,!0,-1)):o&&D(t,"directives end mark is expected"),Ne(t,t.lineIndent-1,dr,!1,!0),et(t,!0,-1),t.checkLineBreaks&&$b.test(t.input.slice(e,t.position))&&pr(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&Mr(t)){t.input.charCodeAt(t.position)===46&&(t.position+=3,et(t,!0,-1));return}if(t.position<t.length-1)D(t,"end of the stream or a document separator is expected");else return}function dc(t,e){t=String(t),e=e||{},t.length!==0&&(t.charCodeAt(t.length-1)!==10&&t.charCodeAt(t.length-1)!==13&&(t+=`
`),t.charCodeAt(0)===65279&&(t=t.slice(1)));var i=new qb(t,e),r=t.indexOf("\0");for(r!==-1&&(i.position=r,D(i,"null byte is not allowed in input")),i.input+="\0";i.input.charCodeAt(i.position)===32;)i.lineIndent+=1,i.position+=1;for(;i.position<i.length-1;)Kb(i);return i.documents}function Zb(t,e,i){e!==null&&typeof e=="object"&&typeof i>"u"&&(i=e,e=null);var r=dc(t,i);if(typeof e!="function")return r;for(var n=0,o=r.length;n<o;n+=1)e(r[n])}function Jb(t,e){var i=dc(t,e);if(i.length!==0){if(i.length===1)return i[0];throw new Gt("expected a single document in the stream, but found more")}}var Qb=Zb,tx=Jb,ex={loadAll:Qb,load:tx},ix=rc,rx=ex.load;function nx(t){const e=t.match(Za);if(!e)return{text:t,metadata:{}};let i=rx(e[1],{schema:ix})??{};i=typeof i=="object"&&!Array.isArray(i)?i:{};const r={};return i.displayMode&&(r.displayMode=i.displayMode.toString()),i.title&&(r.title=i.title.toString()),i.config&&(r.config=i.config),{text:t.slice(e[0].length),metadata:r}}const ox=t=>t.replace(/\r\n?/g,`
`).replace(/<(\w+)([^>]*)>/g,(e,i,r)=>"<"+i+r.replace(/="([^"]*)"/g,"='$1'")+">"),sx=t=>{const{text:e,metadata:i}=nx(t),{displayMode:r,title:n,config:o={}}=i;return r&&(o.gantt||(o.gantt={}),o.gantt.displayMode=r),{title:n,config:o,text:e}},ax=t=>{const e=ri.detectInit(t)??{},i=ri.detectDirective(t,"wrap");return Array.isArray(i)?e.wrap=i.some(({type:r})=>{}):(i==null?void 0:i.type)==="wrap"&&(e.wrap=!0),{text:X_(t),directive:e}};function pc(t){const e=ox(t),i=sx(e),r=ax(i.text),n=yl(i.config,r.directive);return t=p1(r.text),{code:t,title:i.title,config:n}}const lx=5e4,cx="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",hx="sandbox",ux="loose",fx="http://www.w3.org/2000/svg",dx="http://www.w3.org/1999/xlink",px="http://www.w3.org/1999/xhtml",gx="100%",mx="100%",_x="border:0;margin:0;",yx="margin:0",Cx="allow-top-navigation-by-user-activation allow-popups",bx='The "iframe" tag is not supported by your browser.',xx=["foreignobject"],Tx=["dominant-baseline"];function gc(t){const e=pc(t);return cr(),N0(e.config??{}),e}async function vx(t,e){eo(),t=gc(t).code;try{await oo(t)}catch(i){if(e!=null&&e.suppressErrors)return!1;throw i}return!0}const Hs=(t,e,i=[])=>`
.${t} ${e} { ${i.join(" !important; ")} !important; }`,kx=(t,e={})=>{var i;let r="";if(t.themeCSS!==void 0&&(r+=`
${t.themeCSS}`),t.fontFamily!==void 0&&(r+=`
:root { --mermaid-font-family: ${t.fontFamily}}`),t.altFontFamily!==void 0&&(r+=`
:root { --mermaid-alt-font-family: ${t.altFontFamily}}`),!Zr(e)){const a=t.htmlLabels||((i=t.flowchart)==null?void 0:i.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];for(const l in e){const c=e[l];Zr(c.styles)||a.forEach(u=>{r+=Hs(c.id,u,c.styles)}),Zr(c.textStyles)||(r+=Hs(c.id,"tspan",c.textStyles))}}return r},Sx=(t,e,i,r)=>{const n=kx(t,i),o=rC(e,n,t.themeVariables);return Cn(E0(`${r}{${o}}`),M0)},wx=(t="",e,i)=>{let r=t;return!i&&!e&&(r=r.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),r=_0(r),r=r.replace(/<br>/g,"<br/>"),r},Bx=(t="",e)=>{var i,r;const n=(r=(i=e==null?void 0:e.viewBox)==null?void 0:i.baseVal)!=null&&r.height?e.viewBox.baseVal.height+"px":mx,o=btoa('<body style="'+yx+'">'+t+"</body>");return`<iframe style="width:${gx};height:${n};${_x}" src="data:text/html;base64,${o}" sandbox="${Cx}">
${bx}
</iframe>`},js=(t,e,i,r,n)=>{const o=t.append("div");o.attr("id",i),r&&o.attr("style",r);const s=o.append("svg").attr("id",e).attr("width","100%").attr("xmlns",fx);return n&&s.attr("xmlns:xlink",n),s.append("g"),t};function Us(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}const Ax=(t,e,i,r)=>{var n,o,s;(n=t.getElementById(e))==null||n.remove(),(o=t.getElementById(i))==null||o.remove(),(s=t.getElementById(r))==null||s.remove()},Lx=async function(t,e,i){var r,n,o,s,a,l;eo();const c=gc(e);e=c.code;const u=Dt();N.debug(u),e.length>((u==null?void 0:u.maxTextSize)??lx)&&(e=cx);const f="#"+t,h="i"+t,d="#"+h,_="d"+t,T="#"+_;let w=vt("body");const A=u.securityLevel===hx,y=u.securityLevel===ux,E=u.fontFamily;if(i!==void 0){if(i&&(i.innerHTML=""),A){const S=Us(vt(i),h);w=vt(S.nodes()[0].contentDocument.body),w.node().style.margin=0}else w=vt(i);js(w,t,_,`font-family: ${E}`,dx)}else{if(Ax(document,t,_,h),A){const S=Us(vt("body"),h);w=vt(S.nodes()[0].contentDocument.body),w.node().style.margin=0}else w=vt("body");js(w,t,_)}let L,R;try{L=await oo(e,{title:c.title})}catch(S){L=new tc("error"),R=S}const m=w.select(T).node(),b=L.type,O=m.firstChild,Zt=O.firstChild,G=(n=(r=L.renderer).getClasses)==null?void 0:n.call(r,e,L),Y=Sx(u,b,G,f),St=document.createElement("style");St.innerHTML=Y,O.insertBefore(St,Zt);try{await L.renderer.draw(e,t,Bs,L)}catch(S){throw bC.draw(e,t,Bs),S}const Jt=w.select(`${T} svg`),q=(s=(o=L.db).getAccTitle)==null?void 0:s.call(o),B=(l=(a=L.db).getAccDescription)==null?void 0:l.call(a);Ex(b,Jt,q,B),w.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns",px);let x=w.select(T).node().innerHTML;if(N.debug("config.arrowMarkerAbsolute",u.arrowMarkerAbsolute),x=wx(x,A,ja(u.arrowMarkerAbsolute)),A){const S=w.select(T+" svg").node();x=Bx(x,S)}else y||(x=Oe.sanitize(x,{ADD_TAGS:xx,ADD_ATTR:Tx}));if(jC(),R)throw R;const k=vt(A?d:T).node();return k&&"remove"in k&&k.remove(),{svg:x,bindFunctions:L.db.bindFunctions}};function Fx(t={}){var e;t!=null&&t.fontFamily&&!((e=t.themeVariables)!=null&&e.fontFamily)&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),I0(t),t!=null&&t.theme&&t.theme in Vt?t.themeVariables=Vt[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=Vt.default.getThemeVariables(t.themeVariables));const i=typeof t=="object"?$0(t):wl();wn(i.logLevel),eo()}const oo=(t,e={})=>{const{code:i}=pc(t);return HC(i,e)};function Ex(t,e,i,r){f1(e,t),d1(e,i,r,e.attr("id"))}const _e=Object.freeze({render:Lx,parse:vx,getDiagramFromText:oo,initialize:Fx,getConfig:Dt,setConfig:Bl,getSiteConfig:wl,updateSiteConfig:D0,reset:()=>{cr()},globalReset:()=>{cr(Ie)},defaultConfig:Ie});wn(Dt().logLevel);cr(Dt());const Ox=async()=>{N.debug("Loading registered diagrams");const e=(await Promise.allSettled(Object.entries(Me).map(async([i,{detector:r,loader:n}])=>{if(n)try{to(i)}catch{try{const{diagram:s,id:a}=await n();ur(a,s,r)}catch(s){throw N.error(`Failed to load external diagram with key ${i}. Removing from detectors.`),delete Me[i],s}}}))).filter(i=>i.status==="rejected");if(e.length>0){N.error(`Failed to load ${e.length} external diagrams`);for(const i of e)N.error(i);throw new Error(`Failed to load ${e.length} external diagrams`)}},Mx=(t,e,i)=>{N.warn(t),_l(t)?(i&&i(t.str,t.hash),e.push({...t,message:t.str,error:t})):(i&&i(t),t instanceof Error&&e.push({str:t.message,message:t.message,hash:t.name,error:t}))},mc=async function(t={querySelector:".mermaid"}){try{await $x(t)}catch(e){if(_l(e)&&N.error(e.str),yt.parseError&&yt.parseError(e),!t.suppressErrors)throw N.error("Use the suppressErrors option to suppress these errors"),e}},$x=async function({postRenderCallback:t,querySelector:e,nodes:i}={querySelector:".mermaid"}){const r=_e.getConfig();N.debug(`${t?"":"No "}Callback function found`);let n;if(i)n=i;else if(e)n=document.querySelectorAll(e);else throw new Error("Nodes and querySelector are both undefined");N.debug(`Found ${n.length} diagrams`),(r==null?void 0:r.startOnLoad)!==void 0&&(N.debug("Start On Load: "+(r==null?void 0:r.startOnLoad)),_e.updateSiteConfig({startOnLoad:r==null?void 0:r.startOnLoad}));const o=new ri.InitIDGenerator(r.deterministicIds,r.deterministicIDSeed);let s;const a=[];for(const l of Array.from(n)){N.info("Rendering diagram: "+l.id);/*! Check if previously processed */if(l.getAttribute("data-processed"))continue;l.setAttribute("data-processed","true");const c=`mermaid-${o.next()}`;s=l.innerHTML,s=Gc(ri.entityDecode(s)).trim().replace(/<br\s*\/?>/gi,"<br/>");const u=ri.detectInit(s);u&&N.debug("Detected early reinit: ",u);try{const{svg:f,bindFunctions:h}=await bc(c,s,l);l.innerHTML=f,t&&await t(c),h&&h(l)}catch(f){Mx(f,a,yt.parseError)}}if(a.length>0)throw a[0]},_c=function(t){_e.initialize(t)},Ix=async function(t,e,i){N.warn("mermaid.init is deprecated. Please use run instead."),t&&_c(t);const r={postRenderCallback:i,querySelector:".mermaid"};typeof e=="string"?r.querySelector=e:e&&(e instanceof HTMLElement?r.nodes=[e]:r.nodes=e),await mc(r)},Dx=async(t,{lazyLoad:e=!0}={})=>{Qa(...t),e===!1&&await Ox()},yc=function(){if(yt.startOnLoad){const{startOnLoad:t}=_e.getConfig();t&&yt.run().catch(e=>N.error("Mermaid failed to initialize",e))}};if(typeof document<"u"){/*!
* Wait for document loaded before starting the execution
*/window.addEventListener("load",yc,!1)}const Nx=function(t){yt.parseError=t},gr=[];let en=!1;const Cc=async()=>{if(!en){for(en=!0;gr.length>0;){const t=gr.shift();if(t)try{await t()}catch(e){N.error("Error executing queue",e)}}en=!1}},Rx=async(t,e)=>new Promise((i,r)=>{const n=()=>new Promise((o,s)=>{_e.parse(t,e).then(a=>{o(a),i(a)},a=>{var l;N.error("Error parsing",a),(l=yt.parseError)==null||l.call(yt,a),s(a),r(a)})});gr.push(n),Cc().catch(r)}),bc=(t,e,i)=>new Promise((r,n)=>{const o=()=>new Promise((s,a)=>{_e.render(t,e,i).then(l=>{s(l),r(l)},l=>{var c;N.error("Error parsing",l),(c=yt.parseError)==null||c.call(yt,l),a(l),n(l)})});gr.push(o),Cc().catch(n)}),yt={startOnLoad:!0,mermaidAPI:_e,parse:Rx,render:bc,init:Ix,run:mc,registerExternalDiagrams:Dx,initialize:_c,parseError:void 0,contentLoaded:yc,setParseErrorHandler:Nx,detectType:kr};var so={exports:{}};so.exports;(function(t){var e=function(){var i=String.fromCharCode,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",o={};function s(l,c){if(!o[l]){o[l]={};for(var u=0;u<l.length;u++)o[l][l.charAt(u)]=u}return o[l][c]}var a={compressToBase64:function(l){if(l==null)return"";var c=a._compress(l,6,function(u){return r.charAt(u)});switch(c.length%4){default:case 0:return c;case 1:return c+"===";case 2:return c+"==";case 3:return c+"="}},decompressFromBase64:function(l){return l==null?"":l==""?null:a._decompress(l.length,32,function(c){return s(r,l.charAt(c))})},compressToUTF16:function(l){return l==null?"":a._compress(l,15,function(c){return i(c+32)})+" "},decompressFromUTF16:function(l){return l==null?"":l==""?null:a._decompress(l.length,16384,function(c){return l.charCodeAt(c)-32})},compressToUint8Array:function(l){for(var c=a.compress(l),u=new Uint8Array(c.length*2),f=0,h=c.length;f<h;f++){var d=c.charCodeAt(f);u[f*2]=d>>>8,u[f*2+1]=d%256}return u},decompressFromUint8Array:function(l){if(l==null)return a.decompress(l);for(var c=new Array(l.length/2),u=0,f=c.length;u<f;u++)c[u]=l[u*2]*256+l[u*2+1];var h=[];return c.forEach(function(d){h.push(i(d))}),a.decompress(h.join(""))},compressToEncodedURIComponent:function(l){return l==null?"":a._compress(l,6,function(c){return n.charAt(c)})},decompressFromEncodedURIComponent:function(l){return l==null?"":l==""?null:(l=l.replace(/ /g,"+"),a._decompress(l.length,32,function(c){return s(n,l.charAt(c))}))},compress:function(l){return a._compress(l,16,function(c){return i(c)})},_compress:function(l,c,u){if(l==null)return"";var f,h,d={},_={},T="",w="",A="",y=2,E=3,L=2,R=[],m=0,b=0,O;for(O=0;O<l.length;O+=1)if(T=l.charAt(O),Object.prototype.hasOwnProperty.call(d,T)||(d[T]=E++,_[T]=!0),w=A+T,Object.prototype.hasOwnProperty.call(d,w))A=w;else{if(Object.prototype.hasOwnProperty.call(_,A)){if(A.charCodeAt(0)<256){for(f=0;f<L;f++)m=m<<1,b==c-1?(b=0,R.push(u(m)),m=0):b++;for(h=A.charCodeAt(0),f=0;f<8;f++)m=m<<1|h&1,b==c-1?(b=0,R.push(u(m)),m=0):b++,h=h>>1}else{for(h=1,f=0;f<L;f++)m=m<<1|h,b==c-1?(b=0,R.push(u(m)),m=0):b++,h=0;for(h=A.charCodeAt(0),f=0;f<16;f++)m=m<<1|h&1,b==c-1?(b=0,R.push(u(m)),m=0):b++,h=h>>1}y--,y==0&&(y=Math.pow(2,L),L++),delete _[A]}else for(h=d[A],f=0;f<L;f++)m=m<<1|h&1,b==c-1?(b=0,R.push(u(m)),m=0):b++,h=h>>1;y--,y==0&&(y=Math.pow(2,L),L++),d[w]=E++,A=String(T)}if(A!==""){if(Object.prototype.hasOwnProperty.call(_,A)){if(A.charCodeAt(0)<256){for(f=0;f<L;f++)m=m<<1,b==c-1?(b=0,R.push(u(m)),m=0):b++;for(h=A.charCodeAt(0),f=0;f<8;f++)m=m<<1|h&1,b==c-1?(b=0,R.push(u(m)),m=0):b++,h=h>>1}else{for(h=1,f=0;f<L;f++)m=m<<1|h,b==c-1?(b=0,R.push(u(m)),m=0):b++,h=0;for(h=A.charCodeAt(0),f=0;f<16;f++)m=m<<1|h&1,b==c-1?(b=0,R.push(u(m)),m=0):b++,h=h>>1}y--,y==0&&(y=Math.pow(2,L),L++),delete _[A]}else for(h=d[A],f=0;f<L;f++)m=m<<1|h&1,b==c-1?(b=0,R.push(u(m)),m=0):b++,h=h>>1;y--,y==0&&(y=Math.pow(2,L),L++)}for(h=2,f=0;f<L;f++)m=m<<1|h&1,b==c-1?(b=0,R.push(u(m)),m=0):b++,h=h>>1;for(;;)if(m=m<<1,b==c-1){R.push(u(m));break}else b++;return R.join("")},decompress:function(l){return l==null?"":l==""?null:a._decompress(l.length,32768,function(c){return l.charCodeAt(c)})},_decompress:function(l,c,u){var f=[],h=4,d=4,_=3,T="",w=[],A,y,E,L,R,m,b,O={val:u(0),position:c,index:1};for(A=0;A<3;A+=1)f[A]=A;for(E=0,R=Math.pow(2,2),m=1;m!=R;)L=O.val&O.position,O.position>>=1,O.position==0&&(O.position=c,O.val=u(O.index++)),E|=(L>0?1:0)*m,m<<=1;switch(E){case 0:for(E=0,R=Math.pow(2,8),m=1;m!=R;)L=O.val&O.position,O.position>>=1,O.position==0&&(O.position=c,O.val=u(O.index++)),E|=(L>0?1:0)*m,m<<=1;b=i(E);break;case 1:for(E=0,R=Math.pow(2,16),m=1;m!=R;)L=O.val&O.position,O.position>>=1,O.position==0&&(O.position=c,O.val=u(O.index++)),E|=(L>0?1:0)*m,m<<=1;b=i(E);break;case 2:return""}for(f[3]=b,y=b,w.push(b);;){if(O.index>l)return"";for(E=0,R=Math.pow(2,_),m=1;m!=R;)L=O.val&O.position,O.position>>=1,O.position==0&&(O.position=c,O.val=u(O.index++)),E|=(L>0?1:0)*m,m<<=1;switch(b=E){case 0:for(E=0,R=Math.pow(2,8),m=1;m!=R;)L=O.val&O.position,O.position>>=1,O.position==0&&(O.position=c,O.val=u(O.index++)),E|=(L>0?1:0)*m,m<<=1;f[d++]=i(E),b=d-1,h--;break;case 1:for(E=0,R=Math.pow(2,16),m=1;m!=R;)L=O.val&O.position,O.position>>=1,O.position==0&&(O.position=c,O.val=u(O.index++)),E|=(L>0?1:0)*m,m<<=1;f[d++]=i(E),b=d-1,h--;break;case 2:return w.join("")}if(h==0&&(h=Math.pow(2,_),_++),f[b])T=f[b];else if(b===d)T=y+y.charAt(0);else return null;w.push(T),f[d++]=y+T.charAt(0),h--,y=T,h==0&&(h=Math.pow(2,_),_++)}}};return a}();t!=null?t.exports=e:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return e})})(so);var Px=so.exports;const qx=Wc(Px);const zx=[],Wx=()=>{const t={theme:"default"};for(const e of zx)Object.assign(t,e());return t};yt.startOnLoad=!1;yt.initialize({startOnLoad:!1});const Ys=new Map;let Gs;async function Hx(t,e){Gs??(Gs=document.getElementById("mermaid-rendering-container"));const i=t+JSON.stringify(e),r=Ys.get(i);if(r)return r;yt.initialize({startOnLoad:!1,...Lo(Wx()||{}),...Lo(e)});const n=qx.decompressFromBase64(t),o=qc(),{svg:s}=await yt.render(o,n,Gs);return Ys.set(i,s),s}const jx=Vs({__name:"ShadowRoot",props:{innerHtml:{type:String,required:!0}},emits:["shadow"],setup(t,{emit:e}){const i=t,r=e,n=Xe(),o=Fc(()=>n.value?n.value.shadowRoot||n.value.attachShadow({mode:"open"}):null);return Ii(()=>{o.value&&i.innerHtml&&(r("shadow",o.value),o.value.innerHTML=i.innerHtml)}),(s,a)=>(Gi(),Xs("div",{ref_key:"el",ref:n},null,512))}}),Ux=Sn(jx,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/ShadowRoot.vue"]]),Yx={key:0,border:"1 red rounded",class:"pa-3 text-wrap"},Gx=Vs({__name:"Mermaid",props:{codeLz:{type:String,required:!0},scale:{type:Number,required:!1},theme:{type:String,required:!1}},setup(t){const e=t,i=Mc(),r=Xe(),n=Xe(null),o=Xe("");Ii(async a=>{let l=!1;a(()=>{l=!0}),n.value=null;try{const c=await Hx(e.codeLz||"",{theme:e.theme||(zc.value?"dark":void 0),...i.attrs});l||(o.value=c)}catch(c){n.value=`${c}`,console.warn(c)}});const s=Xe();return Ec(o,()=>{s.value=void 0}),Ii(()=>{var l,c,u;const a=(c=(l=r.value)==null?void 0:l.children)==null?void 0:c[0];if(a&&a.hasAttribute("viewBox")&&s.value==null){const f=Number.parseFloat(((u=a.getAttribute("viewBox"))==null?void 0:u.split(" ")[3])||"");s.value=Number.isNaN(f)?void 0:f}},{flush:"post"}),Ii(()=>{var l,c;const a=(c=(l=r.value)==null?void 0:l.children)==null?void 0:c[0];a!=null&&e.scale!=null&&s.value!=null&&(a.setAttribute("height",`${s.value*e.scale}`),a.removeAttribute("width"),a.removeAttribute("style"))},{flush:"post"}),(a,l)=>n.value?(Gi(),Xs("pre",Yx,Oc(n.value),1)):(Gi(),Ks(Ux,{key:1,class:"mermaid","inner-html":o.value,onShadow:l[0]||(l[0]=c=>r.value=c)},null,8,["inner-html"]))}}),Vx=Sn(Gx,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/builtin/Mermaid.vue"]]),Xx=Pc("h1",null,"Pipeline",-1),Kx={__name:"5",setup(t){return jc(Fo),Uc(),(e,i)=>{const r=Vx;return Gi(),Ks(Hc,Nc(Rc(Ao(Yc)(Ao(Fo),4))),{default:$c(()=>[Xx,Ic(r,Dc({"code-lz":"GYGw9g7gxgFghgJwC4AIAyAlAUClBnAVwCMBzBOABxhQIDsUBtABTDyQFo4QBLE2gUwC2/WkgC6OXCgAm3BPyhJuYegBUAQpNzqGAWUQBHAnBL8Z/PDLDFwtPGJTt2APhQBhBhgVduRckpUJXBFpSUJScipzAgAPRgBBWlowJDgA+n5UYG4QJHkgqVl5RWU1TSkUAFEGADEcvP4HJ1cahkTk1PSmlxQAcVr6/MkQyXi2nj4hEXFHHrpJOlnXABE2igp+EHMUADdEbjhRbtdpfligA==="},{}),null,16)]),_:1},16)}}},Zx=Sn(Kx,[["__file","/@slidev/slides/5.md"]]),TT=Object.freeze(Object.defineProperty({__proto__:null,default:Zx},Symbol.toStringTag,{value:"Module"}));export{Lr as $,Nm as A,qn as B,cC as C,hC as D,nC as E,md as F,pT as G,gC as H,a0 as I,Ln as J,fa as K,mi as L,Vc as M,Zc as N,Xc as O,Wu as P,ga as Q,mt as R,bt as S,rT as T,_i as U,xT as V,nr as W,bs as X,Tn as Y,q_ as Z,E_ as _,lC as a,Wp as a$,T_ as a0,XC as a1,Ci as a2,Bm as a3,se as a4,al as a5,ul as a6,ar as a7,sr as a8,pl as a9,zn as aA,z as aB,It as aC,_0 as aD,Gc as aE,ie as aF,Fn as aG,ai as aH,zo as aI,Xu as aJ,yC as aK,Vp as aL,yl as aM,Yn as aN,uT as aO,$n as aP,sT as aQ,cT as aR,Vo as aS,Go as aT,hT as aU,lT as aV,nT as aW,oT as aX,dT as aY,fT as aZ,aT as a_,Zr as aa,ye as ab,gm as ac,s1 as ad,Wn as ae,um as af,bm as ag,Pe as ah,g_ as ai,cm as aj,bi as ak,Re as al,m_ as am,fl as an,pm as ao,dm as ap,c_ as aq,Hn as ar,ol as as,Sr as at,gs as au,z_ as av,P_ as aw,F_ as ax,j_ as ay,Rt as az,aC as b,Dt as b0,ls as b1,U_ as b2,gT as b3,o0 as b4,uC as b5,yi as b6,I as b7,P as b8,TT as b9,Qn as c,ci as d,lt as e,lr as f,sC as g,vt as h,Gl as i,Pn as j,f0 as k,N as l,Js as m,n0 as n,ja as o,Z_ as p,dd as q,hp as r,oC as s,tC as t,bT as u,ri as v,h0 as w,ua as x,oh as y,ti as z};
import{_ as l}from"./VClick-DMxgr0td.js";import{o as i,c as _,k as t,e,a0 as s,l as n,q as u,s as p,A as r}from"../modules/vue-Dn3czbSS.js";import{I as c}from"./image-right-DfgZS7MM.js";import{b as d,G as a}from"../index-D2S1x1Oe.js";import{p as m,u as f,f as x}from"./context-CYh2-pv1.js";import"./VClicks-BxpWTlPO.js";import"../modules/shiki-CuMFyo6Z.js";const h=e("h1",null,"Contexte",-1),v=e("p",null,"Patients en errance diagnostique",-1),g=e("strong",null,"disponibles depuis 2022",-1),k=e("strong",null,"pipeline maison",-1),P={__name:"4",setup(b){return m(a),f(),(B,C)=>{const o=l;return i(),_(c,u(p(r(x)(r(a),3))),{default:t(()=>[h,v,e("ul",null,[e("li",null,[s("ré-intérpréter données existantes "),n(o,null,{default:t(()=>[g]),_:1})]),e("li",null,[s("ré-analyser données brutes : "),n(o,null,{default:t(()=>[k]),_:1}),s(),n(o,null,{default:t(()=>[s(" (v0.1 par Dr. A. Overs) ")]),_:1})])])]),_:1},16)}}},j=d(P,[["__file","/@slidev/slides/4.md"]]);export{j as default};
import{o as a,c as o,k as s,q as l,s as n,A as t,e,a0 as i}from"../modules/vue-Dn3czbSS.js";import{I as u}from"./default-CY-sqYNf.js";import{b as m,F as r}from"../index-D2S1x1Oe.js";import{p as c,u as d,f as p}from"./context-CYh2-pv1.js";import"../modules/shiki-CuMFyo6Z.js";const _=e("h1",null,"Contexte",-1),f=e("ul",null,[e("li",null,"Consultations de maladies rares (Centre de Génétique Humaine)"),e("li",null,[e("em",null,"Exome"),i(" souvent prescrit après un premier bilan "),e("ul",null,[e("li",null,"1% de l’ADN"),e("li",null,"rendement diagnostic 32%"),e("li",null,"sous-traité à un laboratoire privé accrédité")])])],-1),x={__name:"3",setup(h){return c(r),d(),(v,C)=>(a(),o(u,l(n(t(p)(t(r),2))),{default:s(()=>[_,f]),_:1},16))}},g=m(x,[["__file","/@slidev/slides/3.md"]]);export{g as default};
import{o as r,c as a,k as s,q as l,s as i,A as e,e as t}from"../modules/vue-Dn3czbSS.js";import{I as n}from"./default-CY-sqYNf.js";import{b as p,E as o}from"../index-D2S1x1Oe.js";import{p as c,u as _,f as m}from"./context-CYh2-pv1.js";import"../modules/shiki-CuMFyo6Z.js";const u=t("h1",null,"Plan",-1),d=t("ol",null,[t("li",null,"Contexte"),t("li",null,"Reproductibilité, portabilité et performance"),t("li",null,"Validation"),t("li",null,"Réinterprétation")],-1),f={__name:"2",setup(x){return c(o),_(),(h,P)=>(r(),a(n,l(i(e(m)(e(o),1))),{default:s(()=>[u,d]),_:1},16))}},R=p(f,[["__file","/@slidev/slides/2.md"]]);export{R as default};
import{o,c as s,k as a,q as r,s as i,A as t,e as n}from"../modules/vue-Dn3czbSS.js";import{I as c}from"./default-CY-sqYNf.js";import{b as m,W as e}from"../index-D2S1x1Oe.js";import{p,u as _,f}from"./context-CYh2-pv1.js";import"../modules/shiki-CuMFyo6Z.js";const u=n("h1",null,"Nouveaux diagnostics",-1),d={__name:"16",setup(l){return p(e),_(),(x,h)=>(o(),s(c,r(i(t(f)(t(e),15))),{default:a(()=>[u]),_:1},16))}},C=m(d,[["__file","/@slidev/slides/16.md"]]);export{C as default};
import{o,c as r,k as s,q as a,s as i,A as t,e as n}from"../modules/vue-Dn3czbSS.js";import{I as m}from"./default-CY-sqYNf.js";import{b as p,V as e}from"../index-D2S1x1Oe.js";import{p as _,u as c,f}from"./context-CYh2-pv1.js";import"../modules/shiki-CuMFyo6Z.js";const d=n("h1",null,"Non-infériorité",-1),l={__name:"15",setup(u){return _(e),c(),(x,h)=>(o(),r(m,a(i(t(f)(t(e),14))),{default:s(()=>[d]),_:1},16))}},I=p(l,[["__file","/@slidev/slides/15.md"]]);export{I as default};
import{o as r,c as a,k as l,q as n,s as u,A as s,e,a0 as o}from"../modules/vue-Dn3czbSS.js";import{I as i}from"./default-CY-sqYNf.js";import{b as c,U as t}from"../index-D2S1x1Oe.js";import{p as m,u as p,f as _}from"./context-CYh2-pv1.js";import"../modules/shiki-CuMFyo6Z.js";const d=e("h1",null,"In silico",-1),f=e("p",null,[o("Données simulées avec "),e("strong",null,"simuscop")],-1),h=e("ul",null,[e("li",null,[o("126 même variants "),e("ul",null,[e("li",null,"1 non appelé (3 read sur 34)"),e("li",null,"1 manqué"),e("li",null,"2 en dehors du kit de capture"),e("li",null,"122 retrouvés")])])],-1),v={__name:"14",setup(x){return m(t),p(),(k,B)=>(r(),a(i,n(u(s(_)(s(t),13))),{default:l(()=>[d,f,h]),_:1},16))}},N=c(v,[["__file","/@slidev/slides/14.md"]]);export{N as default};
import{o,c as a,k as n,q as l,s as i,A as t,e,a0 as r}from"../modules/vue-Dn3czbSS.js";import{I as u}from"./image-right-DfgZS7MM.js";import{b as c,T as s}from"../index-D2S1x1Oe.js";import{p as _,u as m,f as p}from"./context-CYh2-pv1.js";import"../modules/shiki-CuMFyo6Z.js";const f=e("h1",null,"In silico",-1),d=e("ul",null,[e("li",null,[r("Patient de synthèse avec "),e("strong",null,"varben")]),e("li",null,[r("126 variants confirmés en Sanger "),e("ul",null,[e("li",null,"1 non inséré"),e("li",null,"1 filtré sur la profondeur (21 < 30)"),e("li",null,"124 retrouvés")])])],-1),v={__name:"13",setup(h){return _(s),m(),(x,P)=>(o(),a(u,l(i(t(p)(t(s),12))),{default:n(()=>[f,d]),_:1},16))}},b=c(v,[["__file","/@slidev/slides/13.md"]]);export{b as default};
import{o as s,c as o,k as l,q as r,s as n,A as t,e,a0 as i}from"../modules/vue-Dn3czbSS.js";import{I as u}from"./image-right-DfgZS7MM.js";import{b as p,S as a}from"../index-D2S1x1Oe.js";import{p as c,u as _,f as d}from"./context-CYh2-pv1.js";import"../modules/shiki-CuMFyo6Z.js";const m=e("h1",null,"Pipeline",-1),f=e("ul",null,[e("li",null,"7 Patients GIAB"),e("li",null,[i("Séquencage par Google (Baid et al. 202) : "),e("ul",null,[e("li",null,"3 kits de capture"),e("li",null,"2 séquenceurs (HiSeq4000, Novaseq)"),e("li",null,"alignement et appel de variant identiques")])])],-1),q={__name:"12",setup(x){return c(a),_(),(h,v)=>(s(),o(u,r(n(t(d)(t(a),11))),{default:l(()=>[m,f]),_:1},16))}},I=p(q,[["__file","/@slidev/slides/12.md"]]);export{I as default};
import{o as n,c as o,k as s,q as r,s as a,A as t,e as l}from"../modules/vue-Dn3czbSS.js";import{I as u}from"./default-CY-sqYNf.js";import{b as i,R as e}from"../index-D2S1x1Oe.js";import{p as d,u as _,f as c}from"./context-CYh2-pv1.js";import"../modules/shiki-CuMFyo6Z.js";const p=l("h1",null,"Séquencage et pipeline",-1),m=l("p",null,"Patient NA12878",-1),f=l("ul",null,[l("li",null,"ADN commandé à Corriel"),l("li",null,"séquencé à Centogène"),l("li",null,"analysé par notre pipeline")],-1),h=l("br",null,null,-1),P=l("table",null,[l("thead",null,[l("tr",null,[l("th",null,"Type"),l("th",null,"Sensibilité"),l("th",null,"Valeur Prédictive Positive")])]),l("tbody",null,[l("tr",null,[l("td",null,"Indel"),l("td",null,"0.954"),l("td",null,"0.775")]),l("tr",null,[l("td",null,"SNV"),l("td",null,"0.983"),l("td",null,"0.965")])])],-1),b={__name:"11",setup(v){return d(e),_(),(x,y)=>(n(),o(u,r(a(t(c)(t(e),10))),{default:s(()=>[p,m,f,h,P]),_:1},16))}},q=i(b,[["__file","/@slidev/slides/11.md"]]);export{q as default};
import{o as s,c as r,k as a,q as n,s as l,A as e,e as t}from"../modules/vue-Dn3czbSS.js";import{I as i}from"./default-CY-sqYNf.js";import{b as m,Q as o}from"../index-D2S1x1Oe.js";import{p as c,u,f as _}from"./context-CYh2-pv1.js";import"../modules/shiki-CuMFyo6Z.js";const d=t("h1",null,"Validation",-1),p=t("ul",null,[t("li",null,'"Gold standard" sur patients de référence (Genome In A Bottle Consortium)'),t("li",null,[t("em",null,"In silico")])],-1),f={__name:"10",setup(h){return c(o),u(),(x,B)=>(s(),r(i,n(l(e(_)(e(o),9))),{default:a(()=>[d,p]),_:1},16))}},A=m(f,[["__file","/@slidev/slides/10.md"]]);export{A as default};
import{m as $t,g as we,D as ve,C as _e,c as st,s as te,b as ke,a as Pe,j as v,aN as ee,b1 as nt,E as Le,l as X,d as At,r as se,b0 as Bt,b2 as Ie,b3 as wt,e as Ae,h as Lt,i as Ne,v as B}from"./slidev/5-BKiUV7YW.js";import{d as Se,a as Me,b as Re,c as Ce,e as zt,g as Nt}from"./svgDrawCommon-99ae2c94-qFiheePO.js";import"./modules/vue-Dn3czbSS.js";import"./index-D2S1x1Oe.js";import"./modules/shiki-CuMFyo6Z.js";import"./modules/file-saver-EUMWMpoS.js";import"./slidev/default-CY-sqYNf.js";import"./slidev/context-CYh2-pv1.js";var Yt=function(){var t=function(dt,w,k,L){for(k=k||{},L=dt.length;L--;k[dt[L]]=w);return k},e=[1,2],c=[1,3],s=[1,4],i=[2,4],a=[1,9],o=[1,11],l=[1,13],p=[1,14],r=[1,16],x=[1,17],T=[1,18],u=[1,24],g=[1,25],m=[1,26],_=[1,27],I=[1,28],V=[1,29],S=[1,30],O=[1,31],R=[1,32],q=[1,33],z=[1,34],J=[1,35],$=[1,36],H=[1,37],U=[1,38],F=[1,39],W=[1,41],Z=[1,42],K=[1,43],Q=[1,44],tt=[1,45],N=[1,46],y=[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],P=[4,5,16,50,52,53],j=[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],rt=[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],A=[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],Gt=[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],ht=[68,69,70],ot=[1,120],Mt={trace:function(){},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,DOTTED_ARROW:74,SOLID_CROSS:75,DOTTED_CROSS:76,SOLID_POINT:77,DOTTED_POINT:78,TXT:79,$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:"DOTTED_ARROW",75:"SOLID_CROSS",76:"DOTTED_CROSS",77:"SOLID_POINT",78:"DOTTED_POINT",79:"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],[56,1]],performAction:function(w,k,L,b,M,h,Et){var d=h.length-1;switch(M){case 3:return b.apply(h[d]),h[d];case 4:case 9:this.$=[];break;case 5:case 10:h[d-1].push(h[d]),this.$=h[d-1];break;case 6:case 7:case 11:case 12:this.$=h[d];break;case 8:case 13:this.$=[];break;case 15:h[d].type="createParticipant",this.$=h[d];break;case 16:h[d-1].unshift({type:"boxStart",boxData:b.parseBoxData(h[d-2])}),h[d-1].push({type:"boxEnd",boxText:h[d-2]}),this.$=h[d-1];break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(h[d-2]),sequenceIndexStep:Number(h[d-1]),sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(h[d-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:b.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"activeStart",signalType:b.LINETYPE.ACTIVE_START,actor:h[d-1]};break;case 23:this.$={type:"activeEnd",signalType:b.LINETYPE.ACTIVE_END,actor:h[d-1]};break;case 29:b.setDiagramTitle(h[d].substring(6)),this.$=h[d].substring(6);break;case 30:b.setDiagramTitle(h[d].substring(7)),this.$=h[d].substring(7);break;case 31:this.$=h[d].trim(),b.setAccTitle(this.$);break;case 32:case 33:this.$=h[d].trim(),b.setAccDescription(this.$);break;case 34:h[d-1].unshift({type:"loopStart",loopText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.LOOP_START}),h[d-1].push({type:"loopEnd",loopText:h[d-2],signalType:b.LINETYPE.LOOP_END}),this.$=h[d-1];break;case 35:h[d-1].unshift({type:"rectStart",color:b.parseMessage(h[d-2]),signalType:b.LINETYPE.RECT_START}),h[d-1].push({type:"rectEnd",color:b.parseMessage(h[d-2]),signalType:b.LINETYPE.RECT_END}),this.$=h[d-1];break;case 36:h[d-1].unshift({type:"optStart",optText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.OPT_START}),h[d-1].push({type:"optEnd",optText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.OPT_END}),this.$=h[d-1];break;case 37:h[d-1].unshift({type:"altStart",altText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.ALT_START}),h[d-1].push({type:"altEnd",signalType:b.LINETYPE.ALT_END}),this.$=h[d-1];break;case 38:h[d-1].unshift({type:"parStart",parText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.PAR_START}),h[d-1].push({type:"parEnd",signalType:b.LINETYPE.PAR_END}),this.$=h[d-1];break;case 39:h[d-1].unshift({type:"parStart",parText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.PAR_OVER_START}),h[d-1].push({type:"parEnd",signalType:b.LINETYPE.PAR_END}),this.$=h[d-1];break;case 40:h[d-1].unshift({type:"criticalStart",criticalText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.CRITICAL_START}),h[d-1].push({type:"criticalEnd",signalType:b.LINETYPE.CRITICAL_END}),this.$=h[d-1];break;case 41:h[d-1].unshift({type:"breakStart",breakText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.BREAK_START}),h[d-1].push({type:"breakEnd",optText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.BREAK_END}),this.$=h[d-1];break;case 43:this.$=h[d-3].concat([{type:"option",optionText:b.parseMessage(h[d-1]),signalType:b.LINETYPE.CRITICAL_OPTION},h[d]]);break;case 45:this.$=h[d-3].concat([{type:"and",parText:b.parseMessage(h[d-1]),signalType:b.LINETYPE.PAR_AND},h[d]]);break;case 47:this.$=h[d-3].concat([{type:"else",altText:b.parseMessage(h[d-1]),signalType:b.LINETYPE.ALT_ELSE},h[d]]);break;case 48:h[d-3].draw="participant",h[d-3].type="addParticipant",h[d-3].description=b.parseMessage(h[d-1]),this.$=h[d-3];break;case 49:h[d-1].draw="participant",h[d-1].type="addParticipant",this.$=h[d-1];break;case 50:h[d-3].draw="actor",h[d-3].type="addParticipant",h[d-3].description=b.parseMessage(h[d-1]),this.$=h[d-3];break;case 51:h[d-1].draw="actor",h[d-1].type="addParticipant",this.$=h[d-1];break;case 52:h[d-1].type="destroyParticipant",this.$=h[d-1];break;case 53:this.$=[h[d-1],{type:"addNote",placement:h[d-2],actor:h[d-1].actor,text:h[d]}];break;case 54:h[d-2]=[].concat(h[d-1],h[d-1]).slice(0,2),h[d-2][0]=h[d-2][0].actor,h[d-2][1]=h[d-2][1].actor,this.$=[h[d-1],{type:"addNote",placement:b.PLACEMENT.OVER,actor:h[d-2].slice(0,2),text:h[d]}];break;case 55:this.$=[h[d-1],{type:"addLinks",actor:h[d-1].actor,text:h[d]}];break;case 56:this.$=[h[d-1],{type:"addALink",actor:h[d-1].actor,text:h[d]}];break;case 57:this.$=[h[d-1],{type:"addProperties",actor:h[d-1].actor,text:h[d]}];break;case 58:this.$=[h[d-1],{type:"addDetails",actor:h[d-1].actor,text:h[d]}];break;case 61:this.$=[h[d-2],h[d]];break;case 62:this.$=h[d];break;case 63:this.$=b.PLACEMENT.LEFTOF;break;case 64:this.$=b.PLACEMENT.RIGHTOF;break;case 65:this.$=[h[d-4],h[d-1],{type:"addMessage",from:h[d-4].actor,to:h[d-1].actor,signalType:h[d-3],msg:h[d],activate:!0},{type:"activeStart",signalType:b.LINETYPE.ACTIVE_START,actor:h[d-1]}];break;case 66:this.$=[h[d-4],h[d-1],{type:"addMessage",from:h[d-4].actor,to:h[d-1].actor,signalType:h[d-3],msg:h[d]},{type:"activeEnd",signalType:b.LINETYPE.ACTIVE_END,actor:h[d-4]}];break;case 67:this.$=[h[d-3],h[d-1],{type:"addMessage",from:h[d-3].actor,to:h[d-1].actor,signalType:h[d-2],msg:h[d]}];break;case 68:this.$={type:"addParticipant",actor:h[d]};break;case 69:this.$=b.LINETYPE.SOLID_OPEN;break;case 70:this.$=b.LINETYPE.DOTTED_OPEN;break;case 71:this.$=b.LINETYPE.SOLID;break;case 72:this.$=b.LINETYPE.DOTTED;break;case 73:this.$=b.LINETYPE.SOLID_CROSS;break;case 74:this.$=b.LINETYPE.DOTTED_CROSS;break;case 75:this.$=b.LINETYPE.SOLID_POINT;break;case 76:this.$=b.LINETYPE.DOTTED_POINT;break;case 77:this.$=b.parseMessage(h[d].trim().substring(1));break}},table:[{3:1,4:e,5:c,6:s},{1:[3]},{3:5,4:e,5:c,6:s},{3:6,4:e,5:c,6:s},t([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:o,8:8,9:10,12:12,13:l,14:p,17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},t(y,[2,5]),{9:47,12:12,13:l,14:p,17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},t(y,[2,7]),t(y,[2,8]),t(y,[2,14]),{12:48,50:H,52:U,53:F},{15:[1,49]},{5:[1,50]},{5:[1,53],19:[1,51],20:[1,52]},{22:54,70:N},{22:55,70:N},{5:[1,56]},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},t(y,[2,29]),t(y,[2,30]),{32:[1,61]},{34:[1,62]},t(y,[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:N},{22:72,70:N},{22:73,70:N},{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]},{55:83,57:[1,84],65:[1,85],66:[1,86]},{22:87,70:N},{22:88,70:N},{22:89,70:N},{22:90,70:N},t([5,51,64,71,72,73,74,75,76,77,78,79],[2,68]),t(y,[2,6]),t(y,[2,15]),t(P,[2,9],{10:91}),t(y,[2,17]),{5:[1,93],19:[1,92]},{5:[1,94]},t(y,[2,21]),{5:[1,95]},{5:[1,96]},t(y,[2,24]),t(y,[2,25]),t(y,[2,26]),t(y,[2,27]),t(y,[2,28]),t(y,[2,31]),t(y,[2,32]),t(j,i,{7:97}),t(j,i,{7:98}),t(j,i,{7:99}),t(rt,i,{40:100,7:101}),t(A,i,{42:102,7:103}),t(A,i,{7:103,42:104}),t(Gt,i,{45:105,7:106}),t(j,i,{7:107}),{5:[1,109],51:[1,108]},{5:[1,111],51:[1,110]},{5:[1,112]},{22:115,68:[1,113],69:[1,114],70:N},t(ht,[2,69]),t(ht,[2,70]),t(ht,[2,71]),t(ht,[2,72]),t(ht,[2,73]),t(ht,[2,74]),t(ht,[2,75]),t(ht,[2,76]),{22:116,70:N},{22:118,58:117,70:N},{70:[2,63]},{70:[2,64]},{56:119,79:ot},{56:121,79:ot},{56:122,79:ot},{56:123,79:ot},{4:[1,126],5:[1,128],11:125,12:127,16:[1,124],50:H,52:U,53:F},{5:[1,129]},t(y,[2,19]),t(y,[2,20]),t(y,[2,22]),t(y,[2,23]),{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[1,130],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[1,131],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[1,132],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{16:[1,133]},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[2,46],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,49:[1,134],50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{16:[1,135]},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[2,44],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,48:[1,136],50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{16:[1,137]},{16:[1,138]},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[2,42],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,47:[1,139],50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[1,140],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{15:[1,141]},t(y,[2,49]),{15:[1,142]},t(y,[2,51]),t(y,[2,52]),{22:143,70:N},{22:144,70:N},{56:145,79:ot},{56:146,79:ot},{56:147,79:ot},{64:[1,148],79:[2,62]},{5:[2,55]},{5:[2,77]},{5:[2,56]},{5:[2,57]},{5:[2,58]},t(y,[2,16]),t(P,[2,10]),{12:149,50:H,52:U,53:F},t(P,[2,12]),t(P,[2,13]),t(y,[2,18]),t(y,[2,34]),t(y,[2,35]),t(y,[2,36]),t(y,[2,37]),{15:[1,150]},t(y,[2,38]),{15:[1,151]},t(y,[2,39]),t(y,[2,40]),{15:[1,152]},t(y,[2,41]),{5:[1,153]},{5:[1,154]},{56:155,79:ot},{56:156,79:ot},{5:[2,67]},{5:[2,53]},{5:[2,54]},{22:157,70:N},t(P,[2,11]),t(rt,i,{7:101,40:158}),t(A,i,{7:103,42:159}),t(Gt,i,{7:106,45:160}),t(y,[2,48]),t(y,[2,50]),{5:[2,65]},{5:[2,66]},{79:[2,61]},{16:[2,47]},{16:[2,45]},{16:[2,43]}],defaultActions:{5:[2,1],6:[2,2],85:[2,63],86:[2,64],119:[2,55],120:[2,77],121:[2,56],122:[2,57],123:[2,58],145:[2,67],146:[2,53],147:[2,54],155:[2,65],156:[2,66],157:[2,61],158:[2,47],159:[2,45],160:[2,43]},parseError:function(w,k){if(k.recoverable)this.trace(w);else{var L=new Error(w);throw L.hash=k,L}},parse:function(w){var k=this,L=[0],b=[],M=[null],h=[],Et=this.table,d="",_t=0,Xt=0,Te=2,Jt=1,be=h.slice.call(arguments,1),Y=Object.create(this.lexer),pt={yy:{}};for(var Ct in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ct)&&(pt.yy[Ct]=this.yy[Ct]);Y.setInput(w,pt.yy),pt.yy.lexer=Y,pt.yy.parser=this,typeof Y.yylloc>"u"&&(Y.yylloc={});var Dt=Y.yylloc;h.push(Dt);var Ee=Y.options&&Y.options.ranges;typeof pt.yy.parseError=="function"?this.parseError=pt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function me(){var lt;return lt=b.pop()||Y.lex()||Jt,typeof lt!="number"&&(lt instanceof Array&&(b=lt,lt=b.pop()),lt=k.symbols_[lt]||lt),lt}for(var G,ut,et,Vt,yt={},kt,ct,Zt,Pt;;){if(ut=L[L.length-1],this.defaultActions[ut]?et=this.defaultActions[ut]:((G===null||typeof G>"u")&&(G=me()),et=Et[ut]&&Et[ut][G]),typeof et>"u"||!et.length||!et[0]){var Ot="";Pt=[];for(kt in Et[ut])this.terminals_[kt]&&kt>Te&&Pt.push("'"+this.terminals_[kt]+"'");Y.showPosition?Ot="Parse error on line "+(_t+1)+`:
`+Y.showPosition()+`
Expecting `+Pt.join(", ")+", got '"+(this.terminals_[G]||G)+"'":Ot="Parse error on line "+(_t+1)+": Unexpected "+(G==Jt?"end of input":"'"+(this.terminals_[G]||G)+"'"),this.parseError(Ot,{text:Y.match,token:this.terminals_[G]||G,line:Y.yylineno,loc:Dt,expected:Pt})}if(et[0]instanceof Array&&et.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ut+", token: "+G);switch(et[0]){case 1:L.push(G),M.push(Y.yytext),h.push(Y.yylloc),L.push(et[1]),G=null,Xt=Y.yyleng,d=Y.yytext,_t=Y.yylineno,Dt=Y.yylloc;break;case 2:if(ct=this.productions_[et[1]][1],yt.$=M[M.length-ct],yt._$={first_line:h[h.length-(ct||1)].first_line,last_line:h[h.length-1].last_line,first_column:h[h.length-(ct||1)].first_column,last_column:h[h.length-1].last_column},Ee&&(yt._$.range=[h[h.length-(ct||1)].range[0],h[h.length-1].range[1]]),Vt=this.performAction.apply(yt,[d,Xt,_t,pt.yy,et[1],M,h].concat(be)),typeof Vt<"u")return Vt;ct&&(L=L.slice(0,-1*ct*2),M=M.slice(0,-1*ct),h=h.slice(0,-1*ct)),L.push(this.productions_[et[1]][0]),M.push(yt.$),h.push(yt._$),Zt=Et[L[L.length-2]][L[L.length-1]],L.push(Zt);break;case 3:return!0}}return!0}},ye=function(){var dt={EOF:1,parseError:function(k,L){if(this.yy.parser)this.yy.parser.parseError(k,L);else throw new Error(k)},setInput:function(w,k){return this.yy=k||this.yy||{},this._input=w,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 w=this._input[0];this.yytext+=w,this.yyleng++,this.offset++,this.match+=w,this.matched+=w;var k=w.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),w},unput:function(w){var k=w.length,L=w.split(/(?:\r\n?|\n)/g);this._input=w+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-k),this.offset-=k;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),L.length-1&&(this.yylineno-=L.length-1);var M=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:L?(L.length===b.length?this.yylloc.first_column:0)+b[b.length-L.length].length-L[0].length:this.yylloc.first_column-k},this.options.ranges&&(this.yylloc.range=[M[0],M[0]+this.yyleng-k]),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(w){this.unput(this.match.slice(w))},pastInput:function(){var w=this.matched.substr(0,this.matched.length-this.match.length);return(w.length>20?"...":"")+w.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var w=this.match;return w.length<20&&(w+=this._input.substr(0,20-w.length)),(w.substr(0,20)+(w.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var w=this.pastInput(),k=new Array(w.length+1).join("-");return w+this.upcomingInput()+`
`+k+"^"},test_match:function(w,k){var L,b,M;if(this.options.backtrack_lexer&&(M={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&&(M.yylloc.range=this.yylloc.range.slice(0))),b=w[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+w[0].length},this.yytext+=w[0],this.match+=w[0],this.matches=w,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(w[0].length),this.matched+=w[0],L=this.performAction.call(this,this.yy,this,k,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),L)return L;if(this._backtrack){for(var h in M)this[h]=M[h];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var w,k,L,b;this._more||(this.yytext="",this.match="");for(var M=this._currentRules(),h=0;h<M.length;h++)if(L=this._input.match(this.rules[M[h]]),L&&(!k||L[0].length>k[0].length)){if(k=L,b=h,this.options.backtrack_lexer){if(w=this.test_match(L,M[h]),w!==!1)return w;if(this._backtrack){k=!1;continue}else return!1}else if(!this.options.flex)break}return k?(w=this.test_match(k,M[b]),w!==!1?w:!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 k=this.next();return k||this.lex()},begin:function(k){this.conditionStack.push(k)},popState:function(){var k=this.conditionStack.length-1;return k>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(k){return k=this.conditionStack.length-1-Math.abs(k||0),k>=0?this.conditionStack[k]:"INITIAL"},pushState:function(k){this.begin(k)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(k,L,b,M){switch(b){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;case 8:return this.begin("ID"),50;case 9:return this.begin("ID"),52;case 10:return 13;case 11:return this.begin("ID"),53;case 12:return L.yytext=L.yytext.trim(),this.begin("ALIAS"),70;case 13:return this.popState(),this.popState(),this.begin("LINE"),51;case 14:return this.popState(),this.popState(),5;case 15:return this.begin("LINE"),36;case 16:return this.begin("LINE"),37;case 17:return this.begin("LINE"),38;case 18:return this.begin("LINE"),39;case 19:return this.begin("LINE"),49;case 20:return this.begin("LINE"),41;case 21:return this.begin("LINE"),43;case 22:return this.begin("LINE"),48;case 23:return this.begin("LINE"),44;case 24:return this.begin("LINE"),47;case 25:return this.begin("LINE"),46;case 26:return this.popState(),15;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;case 37:return this.begin("ID"),23;case 38:return 29;case 39:return 30;case 40:return this.begin("acc_title"),31;case 41:return this.popState(),"acc_title_value";case 42:return this.begin("acc_descr"),33;case 43:return this.popState(),"acc_descr_value";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 L.yytext=L.yytext.trim(),70;case 53:return 73;case 54:return 74;case 55:return 71;case 56:return 72;case 57:return 75;case 58:return 76;case 59:return 77;case 60:return 78;case 61:return 79;case 62:return 68;case 63:return 69;case 64:return 5;case 65:return"INVALID"}},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,/^(?:-[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],inclusive:!0}}};return dt}();Mt.lexer=ye;function Rt(){this.yy={}}return Rt.prototype=Mt,Mt.Parser=Rt,new Rt}();Yt.parser=Yt;const De=Yt;class Ve{constructor(e){this.init=e,this.records=this.init()}reset(){this.records=this.init()}}const E=new Ve(()=>({prevActor:void 0,actors:{},createdActors:{},destroyedActors:{},boxes:[],messages:[],notes:[],sequenceNumbersEnabled:!1,wrapEnabled:void 0,currentBox:void 0,lastCreated:void 0,lastDestroyed:void 0})),Oe=function(t){E.records.boxes.push({name:t.text,wrap:t.wrap===void 0&>()||!!t.wrap,fill:t.color,actorKeys:[]}),E.records.currentBox=E.records.boxes.slice(-1)[0]},Ft=function(t,e,c,s){let i=E.records.currentBox;const a=E.records.actors[t];if(a){if(E.records.currentBox&&a.box&&E.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 '"+E.records.currentBox.name+"' at the same time.");if(i=a.box?a.box:E.records.currentBox,a.box=i,a&&e===a.name&&c==null)return}(c==null||c.text==null)&&(c={text:e,wrap:null,type:s}),(s==null||c.text==null)&&(c={text:e,wrap:null,type:s}),E.records.actors[t]={box:i,name:e,description:c.text,wrap:c.wrap===void 0&>()||!!c.wrap,prevActor:E.records.prevActor,links:{},properties:{},actorCnt:null,rectData:null,type:s||"participant"},E.records.prevActor&&E.records.actors[E.records.prevActor]&&(E.records.actors[E.records.prevActor].nextActor=t),E.records.currentBox&&E.records.currentBox.actorKeys.push(t),E.records.prevActor=t},Be=t=>{let e,c=0;for(e=0;e<E.records.messages.length;e++)E.records.messages[e].type===mt.ACTIVE_START&&E.records.messages[e].from.actor===t&&c++,E.records.messages[e].type===mt.ACTIVE_END&&E.records.messages[e].from.actor===t&&c--;return c},Ye=function(t,e,c,s){E.records.messages.push({from:t,to:e,message:c.text,wrap:c.wrap===void 0&>()||!!c.wrap,answer:s})},C=function(t,e,c={text:void 0,wrap:void 0},s,i=!1){if(s===mt.ACTIVE_END&&Be(t.actor)<1){let o=new Error("Trying to inactivate an inactive participant ("+t.actor+")");throw o.hash={text:"->>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},o}return E.records.messages.push({from:t,to:e,message:c.text,wrap:c.wrap===void 0&>()||!!c.wrap,type:s,activate:i}),!0},Fe=function(){return E.records.boxes.length>0},We=function(){return E.records.boxes.some(t=>t.name)},qe=function(){return E.records.messages},ze=function(){return E.records.boxes},He=function(){return E.records.actors},Ue=function(){return E.records.createdActors},Ke=function(){return E.records.destroyedActors},vt=function(t){return E.records.actors[t]},Ge=function(){return Object.keys(E.records.actors)},Xe=function(){E.records.sequenceNumbersEnabled=!0},Je=function(){E.records.sequenceNumbersEnabled=!1},Ze=()=>E.records.sequenceNumbersEnabled,Qe=function(t){E.records.wrapEnabled=t},gt=()=>E.records.wrapEnabled!==void 0?E.records.wrapEnabled:st().sequence.wrap,je=function(){E.reset(),Le()},$e=function(t){const e=t.trim(),c={text:e.replace(/^:?(?:no)?wrap:/,"").trim(),wrap:e.match(/^:?wrap:/)!==null?!0:e.match(/^:?nowrap:/)!==null?!1:void 0};return X.debug("parseMessage:",c),c},t0=function(t){const e=t.match(/^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/);let c=e!=null&&e[1]?e[1].trim():"transparent",s=e!=null&&e[2]?e[2].trim():void 0;if(window&&window.CSS)window.CSS.supports("color",c)||(c="transparent",s=t.trim());else{const i=new Option().style;i.color=c,i.color!==c&&(c="transparent",s=t.trim())}return{color:c,text:s!==void 0?At(s.replace(/^:?(?:no)?wrap:/,""),st()):void 0,wrap:s!==void 0?s.match(/^:?wrap:/)!==null?!0:s.match(/^:?nowrap:/)!==null?!1:void 0:void 0}},mt={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},e0={FILLED:0,OPEN:1},s0={LEFTOF:0,RIGHTOF:1,OVER:2},re=function(t,e,c){const s={actor:t,placement:e,message:c.text,wrap:c.wrap===void 0&>()||!!c.wrap},i=[].concat(t,t);E.records.notes.push(s),E.records.messages.push({from:i[0],to:i[1],message:c.text,wrap:c.wrap===void 0&>()||!!c.wrap,type:mt.NOTE,placement:e})},ie=function(t,e){const c=vt(t);try{let s=At(e.text,st());s=s.replace(/&/g,"&"),s=s.replace(/=/g,"=");const i=JSON.parse(s);Ht(c,i)}catch(s){X.error("error while parsing actor link text",s)}},r0=function(t,e){const c=vt(t);try{const o={};let l=At(e.text,st());var s=l.indexOf("@");l=l.replace(/&/g,"&"),l=l.replace(/=/g,"=");var i=l.slice(0,s-1).trim(),a=l.slice(s+1).trim();o[i]=a,Ht(c,o)}catch(o){X.error("error while parsing actor link text",o)}};function Ht(t,e){if(t.links==null)t.links=e;else for(let c in e)t.links[c]=e[c]}const ae=function(t,e){const c=vt(t);try{let s=At(e.text,st());const i=JSON.parse(s);ne(c,i)}catch(s){X.error("error while parsing actor properties text",s)}};function ne(t,e){if(t.properties==null)t.properties=e;else for(let c in e)t.properties[c]=e[c]}function i0(){E.records.currentBox=void 0}const oe=function(t,e){const c=vt(t),s=document.getElementById(e.text);try{const i=s.innerHTML,a=JSON.parse(i);a.properties&&ne(c,a.properties),a.links&&Ht(c,a.links)}catch(i){X.error("error while parsing actor details text",i)}},a0=function(t,e){if(t!==void 0&&t.properties!==void 0)return t.properties[e]},ce=function(t){if(Array.isArray(t))t.forEach(function(e){ce(e)});else switch(t.type){case"sequenceIndex":E.records.messages.push({from:void 0,to:void 0,message:{start:t.sequenceIndex,step:t.sequenceIndexStep,visible:t.sequenceVisible},wrap:!1,type:t.signalType});break;case"addParticipant":Ft(t.actor,t.actor,t.description,t.draw);break;case"createParticipant":if(E.records.actors[t.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");E.records.lastCreated=t.actor,Ft(t.actor,t.actor,t.description,t.draw),E.records.createdActors[t.actor]=E.records.messages.length;break;case"destroyParticipant":E.records.lastDestroyed=t.actor,E.records.destroyedActors[t.actor]=E.records.messages.length;break;case"activeStart":C(t.actor,void 0,void 0,t.signalType);break;case"activeEnd":C(t.actor,void 0,void 0,t.signalType);break;case"addNote":re(t.actor,t.placement,t.text);break;case"addLinks":ie(t.actor,t.text);break;case"addALink":r0(t.actor,t.text);break;case"addProperties":ae(t.actor,t.text);break;case"addDetails":oe(t.actor,t.text);break;case"addMessage":if(E.records.lastCreated){if(t.to!==E.records.lastCreated)throw new Error("The created participant "+E.records.lastCreated+" does not have an associated creating message after its declaration. Please check the sequence diagram.");E.records.lastCreated=void 0}else if(E.records.lastDestroyed){if(t.to!==E.records.lastDestroyed&&t.from!==E.records.lastDestroyed)throw new Error("The destroyed participant "+E.records.lastDestroyed+" does not have an associated destroying message after its declaration. Please check the sequence diagram.");E.records.lastDestroyed=void 0}C(t.from,t.to,t.msg,t.signalType,t.activate);break;case"boxStart":Oe(t.boxData);break;case"boxEnd":i0();break;case"loopStart":C(void 0,void 0,t.loopText,t.signalType);break;case"loopEnd":C(void 0,void 0,void 0,t.signalType);break;case"rectStart":C(void 0,void 0,t.color,t.signalType);break;case"rectEnd":C(void 0,void 0,void 0,t.signalType);break;case"optStart":C(void 0,void 0,t.optText,t.signalType);break;case"optEnd":C(void 0,void 0,void 0,t.signalType);break;case"altStart":C(void 0,void 0,t.altText,t.signalType);break;case"else":C(void 0,void 0,t.altText,t.signalType);break;case"altEnd":C(void 0,void 0,void 0,t.signalType);break;case"setAccTitle":te(t.text);break;case"parStart":C(void 0,void 0,t.parText,t.signalType);break;case"and":C(void 0,void 0,t.parText,t.signalType);break;case"parEnd":C(void 0,void 0,void 0,t.signalType);break;case"criticalStart":C(void 0,void 0,t.criticalText,t.signalType);break;case"option":C(void 0,void 0,t.optionText,t.signalType);break;case"criticalEnd":C(void 0,void 0,void 0,t.signalType);break;case"breakStart":C(void 0,void 0,t.breakText,t.signalType);break;case"breakEnd":C(void 0,void 0,void 0,t.signalType);break}},Qt={addActor:Ft,addMessage:Ye,addSignal:C,addLinks:ie,addDetails:oe,addProperties:ae,autoWrap:gt,setWrap:Qe,enableSequenceNumbers:Xe,disableSequenceNumbers:Je,showSequenceNumbers:Ze,getMessages:qe,getActors:He,getCreatedActors:Ue,getDestroyedActors:Ke,getActor:vt,getActorKeys:Ge,getActorProperty:a0,getAccTitle:we,getBoxes:ze,getDiagramTitle:ve,setDiagramTitle:_e,getConfig:()=>st().sequence,clear:je,parseMessage:$e,parseBoxData:t0,LINETYPE:mt,ARROWTYPE:e0,PLACEMENT:s0,addNote:re,setAccTitle:te,apply:ce,setAccDescription:ke,getAccDescription:Pe,hasAtLeastOneBox:Fe,hasAtLeastOneBoxWithTitle:We},n0=t=>`.actor {
stroke: ${t.actorBorder};
fill: ${t.actorBkg};
}
text.actor > tspan {
fill: ${t.actorTextColor};
stroke: none;
}
.actor-line {
stroke: ${t.actorLineColor};
}
.messageLine0 {
stroke-width: 1.5;
stroke-dasharray: none;
stroke: ${t.signalColor};
}
.messageLine1 {
stroke-width: 1.5;
stroke-dasharray: 2, 2;
stroke: ${t.signalColor};
}
#arrowhead path {
fill: ${t.signalColor};
stroke: ${t.signalColor};
}
.sequenceNumber {
fill: ${t.sequenceNumberColor};
}
#sequencenumber {
fill: ${t.signalColor};
}
#crosshead path {
fill: ${t.signalColor};
stroke: ${t.signalColor};
}
.messageText {
fill: ${t.signalTextColor};
stroke: none;
}
.labelBox {
stroke: ${t.labelBoxBorderColor};
fill: ${t.labelBoxBkgColor};
}
.labelText, .labelText > tspan {
fill: ${t.labelTextColor};
stroke: none;
}
.loopText, .loopText > tspan {
fill: ${t.loopTextColor};
stroke: none;
}
.loopLine {
stroke-width: 2px;
stroke-dasharray: 2, 2;
stroke: ${t.labelBoxBorderColor};
fill: ${t.labelBoxBorderColor};
}
.note {
//stroke: #decc93;
stroke: ${t.noteBorderColor};
fill: ${t.noteBkgColor};
}
.noteText, .noteText > tspan {
fill: ${t.noteTextColor};
stroke: none;
}
.activation0 {
fill: ${t.activationBkgColor};
stroke: ${t.activationBorderColor};
}
.activation1 {
fill: ${t.activationBkgColor};
stroke: ${t.activationBorderColor};
}
.activation2 {
fill: ${t.activationBkgColor};
stroke: ${t.activationBorderColor};
}
.actorPopupMenu {
position: absolute;
}
.actorPopupMenuPanel {
position: absolute;
fill: ${t.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: ${t.actorBorder};
fill: ${t.actorBkg};
}
.actor-man circle, line {
stroke: ${t.actorBorder};
fill: ${t.actorBkg};
stroke-width: 2px;
}
`,o0=n0,ft=18*2,le="actor-top",he="actor-bottom",Ut=function(t,e){return Se(t,e)},c0=function(t,e,c,s,i){if(e.links===void 0||e.links===null||Object.keys(e.links).length===0)return{height:0,width:0};const a=e.links,o=e.actorCnt,l=e.rectData;var p="none";i&&(p="block !important");const r=t.append("g");r.attr("id","actor"+o+"_popup"),r.attr("class","actorPopupMenu"),r.attr("display",p);var x="";l.class!==void 0&&(x=" "+l.class);let T=l.width>c?l.width:c;const u=r.append("rect");if(u.attr("class","actorPopupMenuPanel"+x),u.attr("x",l.x),u.attr("y",l.height),u.attr("fill",l.fill),u.attr("stroke",l.stroke),u.attr("width",T),u.attr("height",l.height),u.attr("rx",l.rx),u.attr("ry",l.ry),a!=null){var g=20;for(let I in a){var m=r.append("a"),_=$t.sanitizeUrl(a[I]);m.attr("xlink:href",_),m.attr("target","_blank"),k0(s)(I,m,l.x+10,l.height+g,T,20,{class:"actor"},s),g+=30}}return u.attr("height",g),{height:l.height+g,width:T}},l0=function(t){return"var pu = document.getElementById('"+t+"'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }"},It=async function(t,e,c=null){let s=t.append("foreignObject");const i=await se(e.text,Bt()),o=s.append("xhtml:div").attr("style","width: fit-content;").attr("xmlns","http://www.w3.org/1999/xhtml").html(i).node().getBoundingClientRect();if(s.attr("height",Math.round(o.height)).attr("width",Math.round(o.width)),e.class==="noteText"){const l=t.node().firstChild;l.setAttribute("height",o.height+2*e.textMargin);const p=l.getBBox();s.attr("x",Math.round(p.x+p.width/2-o.width/2)).attr("y",Math.round(p.y+p.height/2-o.height/2))}else if(c){let{startx:l,stopx:p,starty:r}=c;if(l>p){const x=l;l=p,p=x}s.attr("x",Math.round(l+Math.abs(l-p)/2-o.width/2)),e.class==="loopText"?s.attr("y",Math.round(r)):s.attr("y",Math.round(r-o.height))}return[s]},bt=function(t,e){let c=0,s=0;const i=e.text.split(v.lineBreakRegex),[a,o]=ee(e.fontSize);let l=[],p=0,r=()=>e.y;if(e.valign!==void 0&&e.textMargin!==void 0&&e.textMargin>0)switch(e.valign){case"top":case"start":r=()=>Math.round(e.y+e.textMargin);break;case"middle":case"center":r=()=>Math.round(e.y+(c+s+e.textMargin)/2);break;case"bottom":case"end":r=()=>Math.round(e.y+(c+s+2*e.textMargin)-e.textMargin);break}if(e.anchor!==void 0&&e.textMargin!==void 0&&e.width!==void 0)switch(e.anchor){case"left":case"start":e.x=Math.round(e.x+e.textMargin),e.anchor="start",e.dominantBaseline="middle",e.alignmentBaseline="middle";break;case"middle":case"center":e.x=Math.round(e.x+e.width/2),e.anchor="middle",e.dominantBaseline="middle",e.alignmentBaseline="middle";break;case"right":case"end":e.x=Math.round(e.x+e.width-e.textMargin),e.anchor="end",e.dominantBaseline="middle",e.alignmentBaseline="middle";break}for(let[x,T]of i.entries()){e.textMargin!==void 0&&e.textMargin===0&&a!==void 0&&(p=x*a);const u=t.append("text");u.attr("x",e.x),u.attr("y",r()),e.anchor!==void 0&&u.attr("text-anchor",e.anchor).attr("dominant-baseline",e.dominantBaseline).attr("alignment-baseline",e.alignmentBaseline),e.fontFamily!==void 0&&u.style("font-family",e.fontFamily),o!==void 0&&u.style("font-size",o),e.fontWeight!==void 0&&u.style("font-weight",e.fontWeight),e.fill!==void 0&&u.attr("fill",e.fill),e.class!==void 0&&u.attr("class",e.class),e.dy!==void 0?u.attr("dy",e.dy):p!==0&&u.attr("dy",p);const g=T||Ie;if(e.tspan){const m=u.append("tspan");m.attr("x",e.x),e.fill!==void 0&&m.attr("fill",e.fill),m.text(g)}else u.text(g);e.valign!==void 0&&e.textMargin!==void 0&&e.textMargin>0&&(s+=(u._groups||u)[0][0].getBBox().height,c=s),l.push(u)}return l},de=function(t,e){function c(i,a,o,l,p){return i+","+a+" "+(i+o)+","+a+" "+(i+o)+","+(a+l-p)+" "+(i+o-p*1.2)+","+(a+l)+" "+i+","+(a+l)}const s=t.append("polygon");return s.attr("points",c(e.x,e.y,e.width,e.height,7)),s.attr("class","labelBox"),e.y=e.y+e.height/2,bt(t,e),s};let at=-1;const pe=(t,e,c,s)=>{t.select&&c.forEach(i=>{const a=e[i],o=t.select("#actor"+a.actorCnt);!s.mirrorActors&&a.stopy?o.attr("y2",a.stopy+a.height/2):s.mirrorActors&&o.attr("y2",a.stopy)})},h0=async function(t,e,c,s){const i=s?e.stopy:e.starty,a=e.x+e.width/2,o=i+5,l=t.append("g").lower();var p=l;s||(at++,Object.keys(e.links||{}).length&&!c.forceMenus&&p.attr("onclick",l0(`actor${at}_popup`)).attr("cursor","pointer"),p.append("line").attr("id","actor"+at).attr("x1",a).attr("y1",o).attr("x2",a).attr("y2",2e3).attr("class","actor-line").attr("class","200").attr("stroke-width","0.5px").attr("stroke","#999"),p=l.append("g"),e.actorCnt=at,e.links!=null&&p.attr("id","root-"+at));const r=Nt();var x="actor";e.properties!=null&&e.properties.class?x=e.properties.class:r.fill="#eaeaea",s?x+=` ${he}`:x+=` ${le}`,r.x=e.x,r.y=i,r.width=e.width,r.height=e.height,r.class=x,r.rx=3,r.ry=3,r.name=e.name;const T=Ut(p,r);if(e.rectData=r,e.properties!=null&&e.properties.icon){const g=e.properties.icon.trim();g.charAt(0)==="@"?Re(p,r.x+r.width-20,r.y+10,g.substr(1)):Ce(p,r.x+r.width-20,r.y+10,g)}await Kt(c,nt(e.description))(e.description,p,r.x,r.y,r.width,r.height,{class:"actor"},c);let u=e.height;if(T.node){const g=T.node().getBBox();e.height=g.height,u=g.height}return u},d0=async function(t,e,c,s){const i=s?e.stopy:e.starty,a=e.x+e.width/2,o=i+80;t.lower(),s||(at++,t.append("line").attr("id","actor"+at).attr("x1",a).attr("y1",o).attr("x2",a).attr("y2",2e3).attr("class","actor-line").attr("class","200").attr("stroke-width","0.5px").attr("stroke","#999"),e.actorCnt=at);const l=t.append("g");let p="actor-man";s?p+=` ${he}`:p+=` ${le}`,l.attr("class",p),l.attr("name",e.name);const r=Nt();r.x=e.x,r.y=i,r.fill="#eaeaea",r.width=e.width,r.height=e.height,r.class="actor",r.rx=3,r.ry=3,l.append("line").attr("id","actor-man-torso"+at).attr("x1",a).attr("y1",i+25).attr("x2",a).attr("y2",i+45),l.append("line").attr("id","actor-man-arms"+at).attr("x1",a-ft/2).attr("y1",i+33).attr("x2",a+ft/2).attr("y2",i+33),l.append("line").attr("x1",a-ft/2).attr("y1",i+60).attr("x2",a).attr("y2",i+45),l.append("line").attr("x1",a).attr("y1",i+45).attr("x2",a+ft/2-2).attr("y2",i+60);const x=l.append("circle");x.attr("cx",e.x+e.width/2),x.attr("cy",i+10),x.attr("r",15),x.attr("width",e.width),x.attr("height",e.height);const T=l.node().getBBox();return e.height=T.height,await Kt(c,nt(e.description))(e.description,l,r.x,r.y+35,r.width,r.height,{class:"actor"},c),e.height},p0=async function(t,e,c,s){switch(e.type){case"actor":return await d0(t,e,c,s);case"participant":return await h0(t,e,c,s)}},u0=async function(t,e,c){const i=t.append("g");ue(i,e),e.name&&await Kt(c)(e.name,i,e.x,e.y+(e.textMaxHeight||0)/2,e.width,0,{class:"text"},c),i.lower()},f0=function(t){return t.append("g")},g0=function(t,e,c,s,i){const a=Nt(),o=e.anchored;a.x=e.startx,a.y=e.starty,a.class="activation"+i%3,a.width=e.stopx-e.startx,a.height=c-e.starty,Ut(o,a)},x0=async function(t,e,c,s){const{boxMargin:i,boxTextMargin:a,labelBoxHeight:o,labelBoxWidth:l,messageFontFamily:p,messageFontSize:r,messageFontWeight:x}=s,T=t.append("g"),u=function(_,I,V,S){return T.append("line").attr("x1",_).attr("y1",I).attr("x2",V).attr("y2",S).attr("class","loopLine")};u(e.startx,e.starty,e.stopx,e.starty),u(e.stopx,e.starty,e.stopx,e.stopy),u(e.startx,e.stopy,e.stopx,e.stopy),u(e.startx,e.starty,e.startx,e.stopy),e.sections!==void 0&&e.sections.forEach(function(_){u(e.startx,_.y,e.stopx,_.y).style("stroke-dasharray","3, 3")});let g=zt();g.text=c,g.x=e.startx,g.y=e.starty,g.fontFamily=p,g.fontSize=r,g.fontWeight=x,g.anchor="middle",g.valign="middle",g.tspan=!1,g.width=l||50,g.height=o||20,g.textMargin=a,g.class="labelText",de(T,g),g=fe(),g.text=e.title,g.x=e.startx+l/2+(e.stopx-e.startx)/2,g.y=e.starty+i+a,g.anchor="middle",g.valign="middle",g.textMargin=a,g.class="loopText",g.fontFamily=p,g.fontSize=r,g.fontWeight=x,g.wrap=!0;let m=nt(g.text)?await It(T,g,e):bt(T,g);if(e.sectionTitles!==void 0){for(const[_,I]of Object.entries(e.sectionTitles))if(I.message){g.text=I.message,g.x=e.startx+(e.stopx-e.startx)/2,g.y=e.sections[_].y+i+a,g.class="loopText",g.anchor="middle",g.valign="middle",g.tspan=!1,g.fontFamily=p,g.fontSize=r,g.fontWeight=x,g.wrap=e.wrap,nt(g.text)?(e.starty=e.sections[_].y,await It(T,g,e)):bt(T,g);let V=Math.round(m.map(S=>(S._groups||S)[0][0].getBBox().height).reduce((S,O)=>S+O));e.sections[_].height+=V-(i+a)}}return e.height=Math.round(e.stopy-e.starty),T},ue=function(t,e){Me(t,e)},y0=function(t){t.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")},T0=function(t){t.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")},b0=function(t){t.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")},E0=function(t){t.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").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")},m0=function(t){t.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")},w0=function(t){t.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)},v0=function(t){t.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")},fe=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}},_0=function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},Kt=function(){function t(a,o,l,p,r,x,T){const u=o.append("text").attr("x",l+r/2).attr("y",p+x/2+5).style("text-anchor","middle").text(a);i(u,T)}function e(a,o,l,p,r,x,T,u){const{actorFontSize:g,actorFontFamily:m,actorFontWeight:_}=u,[I,V]=ee(g),S=a.split(v.lineBreakRegex);for(let O=0;O<S.length;O++){const R=O*I-I*(S.length-1)/2,q=o.append("text").attr("x",l+r/2).attr("y",p).style("text-anchor","middle").style("font-size",V).style("font-weight",_).style("font-family",m);q.append("tspan").attr("x",l+r/2).attr("dy",R).text(S[O]),q.attr("y",p+x/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),i(q,T)}}function c(a,o,l,p,r,x,T,u){const g=o.append("switch"),_=g.append("foreignObject").attr("x",l).attr("y",p).attr("width",r).attr("height",x).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");_.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(a),e(a,g,l,p,r,x,T,u),i(_,T)}async function s(a,o,l,p,r,x,T,u){const g=await wt(a,Bt()),m=o.append("switch"),I=m.append("foreignObject").attr("x",l+r/2-g.width/2).attr("y",p+x/2-g.height/2).attr("width",g.width).attr("height",g.height).append("xhtml:div").style("height","100%").style("width","100%");I.append("div").style("text-align","center").style("vertical-align","middle").html(await se(a,Bt())),e(a,m,l,p,r,x,T,u),i(I,T)}function i(a,o){for(const l in o)o.hasOwnProperty(l)&&a.attr(l,o[l])}return function(a,o=!1){return o?s:a.textPlacement==="fo"?c:a.textPlacement==="old"?t:e}}(),k0=function(){function t(i,a,o,l,p,r,x){const T=a.append("text").attr("x",o).attr("y",l).style("text-anchor","start").text(i);s(T,x)}function e(i,a,o,l,p,r,x,T){const{actorFontSize:u,actorFontFamily:g,actorFontWeight:m}=T,_=i.split(v.lineBreakRegex);for(let I=0;I<_.length;I++){const V=I*u-u*(_.length-1)/2,S=a.append("text").attr("x",o).attr("y",l).style("text-anchor","start").style("font-size",u).style("font-weight",m).style("font-family",g);S.append("tspan").attr("x",o).attr("dy",V).text(_[I]),S.attr("y",l+r/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),s(S,x)}}function c(i,a,o,l,p,r,x,T){const u=a.append("switch"),m=u.append("foreignObject").attr("x",o).attr("y",l).attr("width",p).attr("height",r).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");m.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(i),e(i,u,o,l,p,r,x,T),s(m,x)}function s(i,a){for(const o in a)a.hasOwnProperty(o)&&i.attr(o,a[o])}return function(i){return i.textPlacement==="fo"?c:i.textPlacement==="old"?t:e}}(),D={drawRect:Ut,drawText:bt,drawLabel:de,drawActor:p0,drawBox:u0,drawPopup:c0,anchorElement:f0,drawActivation:g0,drawLoop:x0,drawBackgroundRect:ue,insertArrowHead:E0,insertArrowFilledHead:m0,insertSequenceNumber:w0,insertArrowCrossHead:v0,insertDatabaseIcon:y0,insertComputerIcon:T0,insertClockIcon:b0,getTextObj:fe,getNoteRect:_0,fixLifeLineHeights:pe,sanitizeUrl:$t.sanitizeUrl};let n={};const f={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],activations:[],models:{getHeight:function(){return Math.max.apply(null,this.actors.length===0?[0]:this.actors.map(t=>t.height||0))+(this.loops.length===0?0:this.loops.map(t=>t.height||0).reduce((t,e)=>t+e))+(this.messages.length===0?0:this.messages.map(t=>t.height||0).reduce((t,e)=>t+e))+(this.notes.length===0?0:this.notes.map(t=>t.height||0).reduce((t,e)=>t+e))},clear:function(){this.actors=[],this.boxes=[],this.loops=[],this.messages=[],this.notes=[]},addBox:function(t){this.boxes.push(t)},addActor:function(t){this.actors.push(t)},addLoop:function(t){this.loops.push(t)},addMessage:function(t){this.messages.push(t)},addNote:function(t){this.notes.push(t)},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,xe(st())},updateVal:function(t,e,c,s){t[e]===void 0?t[e]=c:t[e]=s(c,t[e])},updateBounds:function(t,e,c,s){const i=this;let a=0;function o(l){return function(r){a++;const x=i.sequenceItems.length-a+1;i.updateVal(r,"starty",e-x*n.boxMargin,Math.min),i.updateVal(r,"stopy",s+x*n.boxMargin,Math.max),i.updateVal(f.data,"startx",t-x*n.boxMargin,Math.min),i.updateVal(f.data,"stopx",c+x*n.boxMargin,Math.max),l!=="activation"&&(i.updateVal(r,"startx",t-x*n.boxMargin,Math.min),i.updateVal(r,"stopx",c+x*n.boxMargin,Math.max),i.updateVal(f.data,"starty",e-x*n.boxMargin,Math.min),i.updateVal(f.data,"stopy",s+x*n.boxMargin,Math.max))}}this.sequenceItems.forEach(o()),this.activations.forEach(o("activation"))},insert:function(t,e,c,s){const i=v.getMin(t,c),a=v.getMax(t,c),o=v.getMin(e,s),l=v.getMax(e,s);this.updateVal(f.data,"startx",i,Math.min),this.updateVal(f.data,"starty",o,Math.min),this.updateVal(f.data,"stopx",a,Math.max),this.updateVal(f.data,"stopy",l,Math.max),this.updateBounds(i,o,a,l)},newActivation:function(t,e,c){const s=c[t.from.actor],i=St(t.from.actor).length||0,a=s.x+s.width/2+(i-1)*n.activationWidth/2;this.activations.push({startx:a,starty:this.verticalPos+2,stopx:a+n.activationWidth,stopy:void 0,actor:t.from.actor,anchored:D.anchorElement(e)})},endActivation:function(t){const e=this.activations.map(function(c){return c.actor}).lastIndexOf(t.from.actor);return this.activations.splice(e,1)[0]},createLoop:function(t={message:void 0,wrap:!1,width:void 0},e){return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:t.message,wrap:t.wrap,width:t.width,height:0,fill:e}},newLoop:function(t={message:void 0,wrap:!1,width:void 0},e){this.sequenceItems.push(this.createLoop(t,e))},endLoop:function(){return this.sequenceItems.pop()},isLoopOverlap:function(){return this.sequenceItems.length?this.sequenceItems[this.sequenceItems.length-1].overlap:!1},addSectionToLoop:function(t){const e=this.sequenceItems.pop();e.sections=e.sections||[],e.sectionTitles=e.sectionTitles||[],e.sections.push({y:f.getVerticalPos(),height:0}),e.sectionTitles.push(t),this.sequenceItems.push(e)},saveVerticalPos:function(){this.isLoopOverlap()&&(this.savedVerticalPos=this.verticalPos)},resetVerticalPos:function(){this.isLoopOverlap()&&(this.verticalPos=this.savedVerticalPos)},bumpVerticalPos:function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=v.getMax(this.data.stopy,this.verticalPos)},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return{bounds:this.data,models:this.models}}},P0=async function(t,e){f.bumpVerticalPos(n.boxMargin),e.height=n.boxMargin,e.starty=f.getVerticalPos();const c=Nt();c.x=e.startx,c.y=e.starty,c.width=e.width||n.width,c.class="note";const s=t.append("g"),i=D.drawRect(s,c),a=zt();a.x=e.startx,a.y=e.starty,a.width=c.width,a.dy="1em",a.text=e.message,a.class="noteText",a.fontFamily=n.noteFontFamily,a.fontSize=n.noteFontSize,a.fontWeight=n.noteFontWeight,a.anchor=n.noteAlign,a.textMargin=n.noteMargin,a.valign="center";const o=nt(a.text)?await It(s,a):bt(s,a),l=Math.round(o.map(p=>(p._groups||p)[0][0].getBBox().height).reduce((p,r)=>p+r));i.attr("height",l+2*n.noteMargin),e.height+=l+2*n.noteMargin,f.bumpVerticalPos(l+2*n.noteMargin),e.stopy=e.starty+l+2*n.noteMargin,e.stopx=e.startx+c.width,f.insert(e.startx,e.starty,e.stopx,e.stopy),f.models.addNote(e)},xt=t=>({fontFamily:t.messageFontFamily,fontSize:t.messageFontSize,fontWeight:t.messageFontWeight}),Tt=t=>({fontFamily:t.noteFontFamily,fontSize:t.noteFontSize,fontWeight:t.noteFontWeight}),Wt=t=>({fontFamily:t.actorFontFamily,fontSize:t.actorFontSize,fontWeight:t.actorFontWeight});async function L0(t,e){f.bumpVerticalPos(10);const{startx:c,stopx:s,message:i}=e,a=v.splitBreaks(i).length,o=nt(i),l=o?await wt(i,st()):B.calculateTextDimensions(i,xt(n));if(!o){const T=l.height/a;e.height+=T,f.bumpVerticalPos(T)}let p,r=l.height-10;const x=l.width;if(c===s){p=f.getVerticalPos()+r,n.rightAngles||(r+=n.boxMargin,p=f.getVerticalPos()+r),r+=30;const T=v.getMax(x/2,n.width/2);f.insert(c-T,f.getVerticalPos()-10+r,s+T,f.getVerticalPos()+30+r)}else r+=n.boxMargin,p=f.getVerticalPos()+r,f.insert(c,p-10,s,p);return f.bumpVerticalPos(r),e.height+=r,e.stopy=e.starty+e.height,f.insert(e.fromBounds,e.starty,e.toBounds,e.stopy),p}const I0=async function(t,e,c,s){const{startx:i,stopx:a,starty:o,message:l,type:p,sequenceIndex:r,sequenceVisible:x}=e,T=B.calculateTextDimensions(l,xt(n)),u=zt();u.x=i,u.y=o+10,u.width=a-i,u.class="messageText",u.dy="1em",u.text=l,u.fontFamily=n.messageFontFamily,u.fontSize=n.messageFontSize,u.fontWeight=n.messageFontWeight,u.anchor=n.messageAlign,u.valign="center",u.textMargin=n.wrapPadding,u.tspan=!1,nt(u.text)?await It(t,u,{startx:i,stopx:a,starty:c}):bt(t,u);const g=T.width;let m;i===a?n.rightAngles?m=t.append("path").attr("d",`M ${i},${c} H ${i+v.getMax(n.width/2,g/2)} V ${c+25} H ${i}`):m=t.append("path").attr("d","M "+i+","+c+" C "+(i+60)+","+(c-10)+" "+(i+60)+","+(c+30)+" "+i+","+(c+20)):(m=t.append("line"),m.attr("x1",i),m.attr("y1",c),m.attr("x2",a),m.attr("y2",c)),p===s.db.LINETYPE.DOTTED||p===s.db.LINETYPE.DOTTED_CROSS||p===s.db.LINETYPE.DOTTED_POINT||p===s.db.LINETYPE.DOTTED_OPEN?(m.style("stroke-dasharray","3, 3"),m.attr("class","messageLine1")):m.attr("class","messageLine0");let _="";n.arrowMarkerAbsolute&&(_=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,_=_.replace(/\(/g,"\\("),_=_.replace(/\)/g,"\\)")),m.attr("stroke-width",2),m.attr("stroke","none"),m.style("fill","none"),(p===s.db.LINETYPE.SOLID||p===s.db.LINETYPE.DOTTED)&&m.attr("marker-end","url("+_+"#arrowhead)"),(p===s.db.LINETYPE.SOLID_POINT||p===s.db.LINETYPE.DOTTED_POINT)&&m.attr("marker-end","url("+_+"#filled-head)"),(p===s.db.LINETYPE.SOLID_CROSS||p===s.db.LINETYPE.DOTTED_CROSS)&&m.attr("marker-end","url("+_+"#crosshead)"),(x||n.showSequenceNumbers)&&(m.attr("marker-start","url("+_+"#sequencenumber)"),t.append("text").attr("x",i).attr("y",c+4).attr("font-family","sans-serif").attr("font-size","12px").attr("text-anchor","middle").attr("class","sequenceNumber").text(r))},A0=async function(t,e,c,s,i,a,o){let l=0,p=0,r,x=0;for(const T of s){const u=e[T],g=u.box;r&&r!=g&&(o||f.models.addBox(r),p+=n.boxMargin+r.margin),g&&g!=r&&(o||(g.x=l+p,g.y=i),p+=g.margin),u.width=u.width||n.width,u.height=v.getMax(u.height||n.height,n.height),u.margin=u.margin||n.actorMargin,x=v.getMax(x,u.height),c[u.name]&&(p+=u.width/2),u.x=l+p,u.starty=f.getVerticalPos(),f.insert(u.x,i,u.x+u.width,u.height),l+=u.width+p,u.box&&(u.box.width=l+g.margin-u.box.x),p=u.margin,r=u.box,f.models.addActor(u)}r&&!o&&f.models.addBox(r),f.bumpVerticalPos(x)},qt=async function(t,e,c,s){if(s){let i=0;f.bumpVerticalPos(n.boxMargin*2);for(const a of c){const o=e[a];o.stopy||(o.stopy=f.getVerticalPos());const l=await D.drawActor(t,o,n,!0);i=v.getMax(i,l)}f.bumpVerticalPos(i+n.boxMargin)}else for(const i of c){const a=e[i];await D.drawActor(t,a,n,!1)}},ge=function(t,e,c,s){let i=0,a=0;for(const o of c){const l=e[o],p=R0(l),r=D.drawPopup(t,l,p,n,n.forceMenus,s);r.height>i&&(i=r.height),r.width+l.x>a&&(a=r.width+l.x)}return{maxHeight:i,maxWidth:a}},xe=function(t){Ae(n,t),t.fontFamily&&(n.actorFontFamily=n.noteFontFamily=n.messageFontFamily=t.fontFamily),t.fontSize&&(n.actorFontSize=n.noteFontSize=n.messageFontSize=t.fontSize),t.fontWeight&&(n.actorFontWeight=n.noteFontWeight=n.messageFontWeight=t.fontWeight)},St=function(t){return f.activations.filter(function(e){return e.actor===t})},jt=function(t,e){const c=e[t],s=St(t),i=s.reduce(function(o,l){return v.getMin(o,l.startx)},c.x+c.width/2-1),a=s.reduce(function(o,l){return v.getMax(o,l.stopx)},c.x+c.width/2+1);return[i,a]};function it(t,e,c,s,i){f.bumpVerticalPos(c);let a=s;if(e.id&&e.message&&t[e.id]){const o=t[e.id].width,l=xt(n);e.message=B.wrapLabel(`[${e.message}]`,o-2*n.wrapPadding,l),e.width=o,e.wrap=!0;const p=B.calculateTextDimensions(e.message,l),r=v.getMax(p.height,n.labelBoxHeight);a=s+r,X.debug(`${r} - ${e.message}`)}i(e),f.bumpVerticalPos(a)}function N0(t,e,c,s,i,a,o){function l(r,x){r.x<i[t.from].x?(f.insert(e.stopx-x,e.starty,e.startx,e.stopy+r.height/2+n.noteMargin),e.stopx=e.stopx+x):(f.insert(e.startx,e.starty,e.stopx+x,e.stopy+r.height/2+n.noteMargin),e.stopx=e.stopx-x)}function p(r,x){r.x<i[t.to].x?(f.insert(e.startx-x,e.starty,e.stopx,e.stopy+r.height/2+n.noteMargin),e.startx=e.startx+x):(f.insert(e.stopx,e.starty,e.startx+x,e.stopy+r.height/2+n.noteMargin),e.startx=e.startx-x)}if(a[t.to]==s){const r=i[t.to],x=r.type=="actor"?ft/2+3:r.width/2+3;l(r,x),r.starty=c-r.height/2,f.bumpVerticalPos(r.height/2)}else if(o[t.from]==s){const r=i[t.from];if(n.mirrorActors){const x=r.type=="actor"?ft/2:r.width/2;p(r,x)}r.stopy=c-r.height/2,f.bumpVerticalPos(r.height/2)}else if(o[t.to]==s){const r=i[t.to];if(n.mirrorActors){const x=r.type=="actor"?ft/2+3:r.width/2+3;l(r,x)}r.stopy=c-r.height/2,f.bumpVerticalPos(r.height/2)}}const S0=async function(t,e,c,s){const{securityLevel:i,sequence:a}=st();n=a;let o;i==="sandbox"&&(o=Lt("#i"+e));const l=i==="sandbox"?Lt(o.nodes()[0].contentDocument.body):Lt("body"),p=i==="sandbox"?o.nodes()[0].contentDocument:document;f.init(),X.debug(s.db);const r=i==="sandbox"?l.select(`[id="${e}"]`):Lt(`[id="${e}"]`),x=s.db.getActors(),T=s.db.getCreatedActors(),u=s.db.getDestroyedActors(),g=s.db.getBoxes();let m=s.db.getActorKeys();const _=s.db.getMessages(),I=s.db.getDiagramTitle(),V=s.db.hasAtLeastOneBox(),S=s.db.hasAtLeastOneBoxWithTitle(),O=await M0(x,_,s);if(n.height=await C0(x,O,g),D.insertComputerIcon(r),D.insertDatabaseIcon(r),D.insertClockIcon(r),V&&(f.bumpVerticalPos(n.boxMargin),S&&f.bumpVerticalPos(g[0].textMaxHeight)),n.hideUnusedParticipants===!0){const y=new Set;_.forEach(P=>{y.add(P.from),y.add(P.to)}),m=m.filter(P=>y.has(P))}await A0(r,x,T,m,0,_,!1);const R=await O0(_,x,O,s);D.insertArrowHead(r),D.insertArrowCrossHead(r),D.insertArrowFilledHead(r),D.insertSequenceNumber(r);function q(y,P){const j=f.endActivation(y);j.starty+18>P&&(j.starty=P-6,P+=12),D.drawActivation(r,j,P,n,St(y.from.actor).length),f.insert(j.startx,P-10,j.stopx,P)}let z=1,J=1;const $=[],H=[];let U=0;for(const y of _){let P,j,rt;switch(y.type){case s.db.LINETYPE.NOTE:f.resetVerticalPos(),j=y.noteModel,await P0(r,j);break;case s.db.LINETYPE.ACTIVE_START:f.newActivation(y,r,x);break;case s.db.LINETYPE.ACTIVE_END:q(y,f.getVerticalPos());break;case s.db.LINETYPE.LOOP_START:it(R,y,n.boxMargin,n.boxMargin+n.boxTextMargin,A=>f.newLoop(A));break;case s.db.LINETYPE.LOOP_END:P=f.endLoop(),await D.drawLoop(r,P,"loop",n),f.bumpVerticalPos(P.stopy-f.getVerticalPos()),f.models.addLoop(P);break;case s.db.LINETYPE.RECT_START:it(R,y,n.boxMargin,n.boxMargin,A=>f.newLoop(void 0,A.message));break;case s.db.LINETYPE.RECT_END:P=f.endLoop(),H.push(P),f.models.addLoop(P),f.bumpVerticalPos(P.stopy-f.getVerticalPos());break;case s.db.LINETYPE.OPT_START:it(R,y,n.boxMargin,n.boxMargin+n.boxTextMargin,A=>f.newLoop(A));break;case s.db.LINETYPE.OPT_END:P=f.endLoop(),await D.drawLoop(r,P,"opt",n),f.bumpVerticalPos(P.stopy-f.getVerticalPos()),f.models.addLoop(P);break;case s.db.LINETYPE.ALT_START:it(R,y,n.boxMargin,n.boxMargin+n.boxTextMargin,A=>f.newLoop(A));break;case s.db.LINETYPE.ALT_ELSE:it(R,y,n.boxMargin+n.boxTextMargin,n.boxMargin,A=>f.addSectionToLoop(A));break;case s.db.LINETYPE.ALT_END:P=f.endLoop(),await D.drawLoop(r,P,"alt",n),f.bumpVerticalPos(P.stopy-f.getVerticalPos()),f.models.addLoop(P);break;case s.db.LINETYPE.PAR_START:case s.db.LINETYPE.PAR_OVER_START:it(R,y,n.boxMargin,n.boxMargin+n.boxTextMargin,A=>f.newLoop(A)),f.saveVerticalPos();break;case s.db.LINETYPE.PAR_AND:it(R,y,n.boxMargin+n.boxTextMargin,n.boxMargin,A=>f.addSectionToLoop(A));break;case s.db.LINETYPE.PAR_END:P=f.endLoop(),await D.drawLoop(r,P,"par",n),f.bumpVerticalPos(P.stopy-f.getVerticalPos()),f.models.addLoop(P);break;case s.db.LINETYPE.AUTONUMBER:z=y.message.start||z,J=y.message.step||J,y.message.visible?s.db.enableSequenceNumbers():s.db.disableSequenceNumbers();break;case s.db.LINETYPE.CRITICAL_START:it(R,y,n.boxMargin,n.boxMargin+n.boxTextMargin,A=>f.newLoop(A));break;case s.db.LINETYPE.CRITICAL_OPTION:it(R,y,n.boxMargin+n.boxTextMargin,n.boxMargin,A=>f.addSectionToLoop(A));break;case s.db.LINETYPE.CRITICAL_END:P=f.endLoop(),await D.drawLoop(r,P,"critical",n),f.bumpVerticalPos(P.stopy-f.getVerticalPos()),f.models.addLoop(P);break;case s.db.LINETYPE.BREAK_START:it(R,y,n.boxMargin,n.boxMargin+n.boxTextMargin,A=>f.newLoop(A));break;case s.db.LINETYPE.BREAK_END:P=f.endLoop(),await D.drawLoop(r,P,"break",n),f.bumpVerticalPos(P.stopy-f.getVerticalPos()),f.models.addLoop(P);break;default:try{rt=y.msgModel,rt.starty=f.getVerticalPos(),rt.sequenceIndex=z,rt.sequenceVisible=s.db.showSequenceNumbers();const A=await L0(r,rt);N0(y,rt,A,U,x,T,u),$.push({messageModel:rt,lineStartY:A}),f.models.addMessage(rt)}catch(A){X.error("error while drawing message",A)}}[s.db.LINETYPE.SOLID_OPEN,s.db.LINETYPE.DOTTED_OPEN,s.db.LINETYPE.SOLID,s.db.LINETYPE.DOTTED,s.db.LINETYPE.SOLID_CROSS,s.db.LINETYPE.DOTTED_CROSS,s.db.LINETYPE.SOLID_POINT,s.db.LINETYPE.DOTTED_POINT].includes(y.type)&&(z=z+J),U++}X.debug("createdActors",T),X.debug("destroyedActors",u),await qt(r,x,m,!1);for(const y of $)await I0(r,y.messageModel,y.lineStartY,s);n.mirrorActors&&await qt(r,x,m,!0),H.forEach(y=>D.drawBackgroundRect(r,y)),pe(r,x,m,n);for(const y of f.models.boxes)y.height=f.getVerticalPos()-y.y,f.insert(y.x,y.y,y.x+y.width,y.height),y.startx=y.x,y.starty=y.y,y.stopx=y.startx+y.width,y.stopy=y.starty+y.height,y.stroke="rgb(0,0,0, 0.5)",await D.drawBox(r,y,n);V&&f.bumpVerticalPos(n.boxMargin);const F=ge(r,x,m,p),{bounds:W}=f.getBounds();let Z=W.stopy-W.starty;Z<F.maxHeight&&(Z=F.maxHeight);let K=Z+2*n.diagramMarginY;n.mirrorActors&&(K=K-n.boxMargin+n.bottomMarginAdj);let Q=W.stopx-W.startx;Q<F.maxWidth&&(Q=F.maxWidth);const tt=Q+2*n.diagramMarginX;I&&r.append("text").text(I).attr("x",(W.stopx-W.startx)/2-2*n.diagramMarginX).attr("y",-25),Ne(r,K,tt,n.useMaxWidth);const N=I?40:0;r.attr("viewBox",W.startx-n.diagramMarginX+" -"+(n.diagramMarginY+N)+" "+tt+" "+(K+N)),X.debug("models:",f.models)};async function M0(t,e,c){const s={};for(const i of e)if(t[i.to]&&t[i.from]){const a=t[i.to];if(i.placement===c.db.PLACEMENT.LEFTOF&&!a.prevActor||i.placement===c.db.PLACEMENT.RIGHTOF&&!a.nextActor)continue;const o=i.placement!==void 0,l=!o,p=o?Tt(n):xt(n),r=i.wrap?B.wrapLabel(i.message,n.width-2*n.wrapPadding,p):i.message,T=(nt(r)?await wt(i.message,st()):B.calculateTextDimensions(r,p)).width+2*n.wrapPadding;l&&i.from===a.nextActor?s[i.to]=v.getMax(s[i.to]||0,T):l&&i.from===a.prevActor?s[i.from]=v.getMax(s[i.from]||0,T):l&&i.from===i.to?(s[i.from]=v.getMax(s[i.from]||0,T/2),s[i.to]=v.getMax(s[i.to]||0,T/2)):i.placement===c.db.PLACEMENT.RIGHTOF?s[i.from]=v.getMax(s[i.from]||0,T):i.placement===c.db.PLACEMENT.LEFTOF?s[a.prevActor]=v.getMax(s[a.prevActor]||0,T):i.placement===c.db.PLACEMENT.OVER&&(a.prevActor&&(s[a.prevActor]=v.getMax(s[a.prevActor]||0,T/2)),a.nextActor&&(s[i.from]=v.getMax(s[i.from]||0,T/2)))}return X.debug("maxMessageWidthPerActor:",s),s}const R0=function(t){let e=0;const c=Wt(n);for(const s in t.links){const a=B.calculateTextDimensions(s,c).width+2*n.wrapPadding+2*n.boxMargin;e<a&&(e=a)}return e};async function C0(t,e,c){let s=0;for(const a of Object.keys(t)){const o=t[a];o.wrap&&(o.description=B.wrapLabel(o.description,n.width-2*n.wrapPadding,Wt(n)));const l=nt(o.description)?await wt(o.description,st()):B.calculateTextDimensions(o.description,Wt(n));o.width=o.wrap?n.width:v.getMax(n.width,l.width+2*n.wrapPadding),o.height=o.wrap?v.getMax(l.height,n.height):n.height,s=v.getMax(s,o.height)}for(const a in e){const o=t[a];if(!o)continue;const l=t[o.nextActor];if(!l){const T=e[a]+n.actorMargin-o.width/2;o.margin=v.getMax(T,n.actorMargin);continue}const r=e[a]+n.actorMargin-o.width/2-l.width/2;o.margin=v.getMax(r,n.actorMargin)}let i=0;return c.forEach(a=>{const o=xt(n);let l=a.actorKeys.reduce((x,T)=>x+=t[T].width+(t[T].margin||0),0);l-=2*n.boxTextMargin,a.wrap&&(a.name=B.wrapLabel(a.name,l-2*n.wrapPadding,o));const p=B.calculateTextDimensions(a.name,o);i=v.getMax(p.height,i);const r=v.getMax(l,p.width+2*n.wrapPadding);if(a.margin=n.boxTextMargin,l<r){const x=(r-l)/2;a.margin+=x}}),c.forEach(a=>a.textMaxHeight=i),v.getMax(s,n.height)}const D0=async function(t,e,c){const s=e[t.from].x,i=e[t.to].x,a=t.wrap&&t.message;let o=nt(t.message)?await wt(t.message,st()):B.calculateTextDimensions(a?B.wrapLabel(t.message,n.width,Tt(n)):t.message,Tt(n));const l={width:a?n.width:v.getMax(n.width,o.width+2*n.noteMargin),height:0,startx:e[t.from].x,stopx:0,starty:0,stopy:0,message:t.message};return t.placement===c.db.PLACEMENT.RIGHTOF?(l.width=a?v.getMax(n.width,o.width):v.getMax(e[t.from].width/2+e[t.to].width/2,o.width+2*n.noteMargin),l.startx=s+(e[t.from].width+n.actorMargin)/2):t.placement===c.db.PLACEMENT.LEFTOF?(l.width=a?v.getMax(n.width,o.width+2*n.noteMargin):v.getMax(e[t.from].width/2+e[t.to].width/2,o.width+2*n.noteMargin),l.startx=s-l.width+(e[t.from].width-n.actorMargin)/2):t.to===t.from?(o=B.calculateTextDimensions(a?B.wrapLabel(t.message,v.getMax(n.width,e[t.from].width),Tt(n)):t.message,Tt(n)),l.width=a?v.getMax(n.width,e[t.from].width):v.getMax(e[t.from].width,n.width,o.width+2*n.noteMargin),l.startx=s+(e[t.from].width-l.width)/2):(l.width=Math.abs(s+e[t.from].width/2-(i+e[t.to].width/2))+n.actorMargin,l.startx=s<i?s+e[t.from].width/2-n.actorMargin/2:i+e[t.to].width/2-n.actorMargin/2),a&&(l.message=B.wrapLabel(t.message,l.width-2*n.wrapPadding,Tt(n))),X.debug(`NM:[${l.startx},${l.stopx},${l.starty},${l.stopy}:${l.width},${l.height}=${t.message}]`),l},V0=function(t,e,c){if(![c.db.LINETYPE.SOLID_OPEN,c.db.LINETYPE.DOTTED_OPEN,c.db.LINETYPE.SOLID,c.db.LINETYPE.DOTTED,c.db.LINETYPE.SOLID_CROSS,c.db.LINETYPE.DOTTED_CROSS,c.db.LINETYPE.SOLID_POINT,c.db.LINETYPE.DOTTED_POINT].includes(t.type))return{};const[s,i]=jt(t.from,e),[a,o]=jt(t.to,e),l=s<=a,p=l?i:s;let r=l?a:o;const x=Math.abs(a-o)>2,T=_=>l?-_:_;t.from===t.to?r=p:(t.activate&&!x&&(r+=T(n.activationWidth/2-1)),[c.db.LINETYPE.SOLID_OPEN,c.db.LINETYPE.DOTTED_OPEN].includes(t.type)||(r+=T(3)));const u=[s,i,a,o],g=Math.abs(p-r);t.wrap&&t.message&&(t.message=B.wrapLabel(t.message,v.getMax(g+2*n.wrapPadding,n.width),xt(n)));const m=B.calculateTextDimensions(t.message,xt(n));return{width:v.getMax(t.wrap?0:m.width+2*n.wrapPadding,g+2*n.wrapPadding,n.width),height:0,startx:p,stopx:r,starty:0,stopy:0,message:t.message,type:t.type,wrap:t.wrap,fromBounds:Math.min.apply(null,u),toBounds:Math.max.apply(null,u)}},O0=async function(t,e,c,s){const i={},a=[];let o,l,p;for(const r of t){switch(r.id=B.random({length:10}),r.type){case s.db.LINETYPE.LOOP_START:case s.db.LINETYPE.ALT_START:case s.db.LINETYPE.OPT_START:case s.db.LINETYPE.PAR_START:case s.db.LINETYPE.PAR_OVER_START:case s.db.LINETYPE.CRITICAL_START:case s.db.LINETYPE.BREAK_START:a.push({id:r.id,msg:r.message,from:Number.MAX_SAFE_INTEGER,to:Number.MIN_SAFE_INTEGER,width:0});break;case s.db.LINETYPE.ALT_ELSE:case s.db.LINETYPE.PAR_AND:case s.db.LINETYPE.CRITICAL_OPTION:r.message&&(o=a.pop(),i[o.id]=o,i[r.id]=o,a.push(o));break;case s.db.LINETYPE.LOOP_END:case s.db.LINETYPE.ALT_END:case s.db.LINETYPE.OPT_END:case s.db.LINETYPE.PAR_END:case s.db.LINETYPE.CRITICAL_END:case s.db.LINETYPE.BREAK_END:o=a.pop(),i[o.id]=o;break;case s.db.LINETYPE.ACTIVE_START:{const T=e[r.from?r.from.actor:r.to.actor],u=St(r.from?r.from.actor:r.to.actor).length,g=T.x+T.width/2+(u-1)*n.activationWidth/2,m={startx:g,stopx:g+n.activationWidth,actor:r.from.actor,enabled:!0};f.activations.push(m)}break;case s.db.LINETYPE.ACTIVE_END:{const T=f.activations.map(u=>u.actor).lastIndexOf(r.from.actor);delete f.activations.splice(T,1)[0]}break}r.placement!==void 0?(l=await D0(r,e,s),r.noteModel=l,a.forEach(T=>{o=T,o.from=v.getMin(o.from,l.startx),o.to=v.getMax(o.to,l.startx+l.width),o.width=v.getMax(o.width,Math.abs(o.from-o.to))-n.labelBoxWidth})):(p=V0(r,e,s),r.msgModel=p,p.startx&&p.stopx&&a.length>0&&a.forEach(T=>{if(o=T,p.startx===p.stopx){const u=e[r.from],g=e[r.to];o.from=v.getMin(u.x-p.width/2,u.x-u.width/2,o.from),o.to=v.getMax(g.x+p.width/2,g.x+u.width/2,o.to),o.width=v.getMax(o.width,Math.abs(o.to-o.from))-n.labelBoxWidth}else o.from=v.getMin(p.startx,o.from),o.to=v.getMax(p.stopx,o.to),o.width=v.getMax(o.width,p.width)-n.labelBoxWidth}))}return f.activations=[],X.debug("Loop type widths:",i),i},B0={bounds:f,drawActors:qt,drawActorsPopup:ge,setConf:xe,draw:S0},G0={parser:De,db:Qt,renderer:B0,styles:o0,init:({wrap:t})=>{Qt.setWrap(t)}};export{G0 as diagram};
import{c as rt,g as mt,s as kt,a as _t,b as xt,D as vt,C as bt,E as wt,j as St,V as Lt,h as G,t as Et}from"./slidev/5-BKiUV7YW.js";import{o as At}from"./ordinal-475e0c0c-BmOJQ37o.js";import{d as Tt}from"./Tableau10-31042135-CvOaoHrI.js";import"./modules/vue-Dn3czbSS.js";import"./index-D2S1x1Oe.js";import"./modules/shiki-CuMFyo6Z.js";import"./modules/file-saver-EUMWMpoS.js";import"./slidev/default-CY-sqYNf.js";import"./slidev/context-CYh2-pv1.js";import"./init-cc95ec8e-Gi6I4Gst.js";var tt=function(){var t=function(g,i,o,c){for(o=o||{},c=g.length;c--;o[g[c]]=i);return o},n=[1,9],s=[1,10],a=[1,5,10,12],u={trace:function(){},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:function(i,o,c,m,b,y,x){var E=y.length-1;switch(b){case 7:const L=m.findOrCreateNode(y[E-4].trim().replaceAll('""','"')),A=m.findOrCreateNode(y[E-2].trim().replaceAll('""','"')),N=parseFloat(y[E].trim());m.addLink(L,A,N);break;case 8:case 9:case 11:this.$=y[E];break;case 10:this.$=y[E-1];break}},table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:n,20:s},{1:[2,6],7:11,10:[1,12]},t(s,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(a,[2,8]),t(a,[2,9]),{19:[1,16]},t(a,[2,11]),{1:[2,1]},{1:[2,5]},t(s,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:n,20:s},{15:18,16:7,17:8,18:n,20:s},{18:[1,19]},t(s,[2,3]),{12:[1,20]},t(a,[2,10]),{15:21,16:7,17:8,18:n,20:s},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:function(i,o){if(o.recoverable)this.trace(i);else{var c=new Error(i);throw c.hash=o,c}},parse:function(i){var o=this,c=[0],m=[],b=[null],y=[],x=this.table,E="",L=0,A=0,N=2,I=1,z=y.slice.call(arguments,1),S=Object.create(this.lexer),M={yy:{}};for(var $ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,$)&&(M.yy[$]=this.yy[$]);S.setInput(i,M.yy),M.yy.lexer=S,M.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var C=S.yylloc;y.push(C);var P=S.options&&S.options.ranges;typeof M.yy.parseError=="function"?this.parseError=M.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function d(){var v;return v=m.pop()||S.lex()||I,typeof v!="number"&&(v instanceof Array&&(m=v,v=m.pop()),v=o.symbols_[v]||v),v}for(var w,O,T,V,e={},f,l,h,r;;){if(O=c[c.length-1],this.defaultActions[O]?T=this.defaultActions[O]:((w===null||typeof w>"u")&&(w=d()),T=x[O]&&x[O][w]),typeof T>"u"||!T.length||!T[0]){var k="";r=[];for(f in x[O])this.terminals_[f]&&f>N&&r.push("'"+this.terminals_[f]+"'");S.showPosition?k="Parse error on line "+(L+1)+`:
`+S.showPosition()+`
Expecting `+r.join(", ")+", got '"+(this.terminals_[w]||w)+"'":k="Parse error on line "+(L+1)+": Unexpected "+(w==I?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(k,{text:S.match,token:this.terminals_[w]||w,line:S.yylineno,loc:C,expected:r})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+O+", token: "+w);switch(T[0]){case 1:c.push(w),b.push(S.yytext),y.push(S.yylloc),c.push(T[1]),w=null,A=S.yyleng,E=S.yytext,L=S.yylineno,C=S.yylloc;break;case 2:if(l=this.productions_[T[1]][1],e.$=b[b.length-l],e._$={first_line:y[y.length-(l||1)].first_line,last_line:y[y.length-1].last_line,first_column:y[y.length-(l||1)].first_column,last_column:y[y.length-1].last_column},P&&(e._$.range=[y[y.length-(l||1)].range[0],y[y.length-1].range[1]]),V=this.performAction.apply(e,[E,A,L,M.yy,T[1],b,y].concat(z)),typeof V<"u")return V;l&&(c=c.slice(0,-1*l*2),b=b.slice(0,-1*l),y=y.slice(0,-1*l)),c.push(this.productions_[T[1]][0]),b.push(e.$),y.push(e._$),h=x[c[c.length-2]][c[c.length-1]],c.push(h);break;case 3:return!0}}return!0}},_=function(){var g={EOF:1,parseError:function(o,c){if(this.yy.parser)this.yy.parser.parseError(o,c);else throw new Error(o)},setInput:function(i,o){return this.yy=o||this.yy||{},this._input=i,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 i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var o=i.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),i},unput:function(i){var o=i.length,c=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-o),this.offset-=o;var m=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 b=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===m.length?this.yylloc.first_column:0)+m[m.length-c.length].length-c[0].length:this.yylloc.first_column-o},this.options.ranges&&(this.yylloc.range=[b[0],b[0]+this.yyleng-o]),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(i){this.unput(this.match.slice(i))},pastInput:function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var i=this.pastInput(),o=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
`+o+"^"},test_match:function(i,o){var c,m,b;if(this.options.backtrack_lexer&&(b={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&&(b.yylloc.range=this.yylloc.range.slice(0))),m=i[0].match(/(?:\r\n?|\n).*/g),m&&(this.yylineno+=m.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:m?m[m.length-1].length-m[m.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+i[0].length},this.yytext+=i[0],this.match+=i[0],this.matches=i,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(i[0].length),this.matched+=i[0],c=this.performAction.call(this,this.yy,this,o,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),c)return c;if(this._backtrack){for(var y in b)this[y]=b[y];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var i,o,c,m;this._more||(this.yytext="",this.match="");for(var b=this._currentRules(),y=0;y<b.length;y++)if(c=this._input.match(this.rules[b[y]]),c&&(!o||c[0].length>o[0].length)){if(o=c,m=y,this.options.backtrack_lexer){if(i=this.test_match(c,b[y]),i!==!1)return i;if(this._backtrack){o=!1;continue}else return!1}else if(!this.options.flex)break}return o?(i=this.test_match(o,b[m]),i!==!1?i:!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 o=this.next();return o||this.lex()},begin:function(o){this.conditionStack.push(o)},popState:function(){var o=this.conditionStack.length-1;return o>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(o){return o=this.conditionStack.length-1-Math.abs(o||0),o>=0?this.conditionStack[o]:"INITIAL"},pushState:function(o){this.begin(o)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(o,c,m,b){switch(m){case 0:return this.pushState("csv"),4;case 1:return 10;case 2:return 5;case 3:return 12;case 4:return this.pushState("escaped_text"),18;case 5:return 20;case 6:return this.popState("escaped_text"),18;case 7:return 19}},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 g}();u.lexer=_;function p(){this.yy={}}return p.prototype=u,u.Parser=p,new p}();tt.parser=tt;const H=tt;let q=[],Q=[],B={};const Mt=()=>{q=[],Q=[],B={},wt()};class Nt{constructor(n,s,a=0){this.source=n,this.target=s,this.value=a}}const Ct=(t,n,s)=>{q.push(new Nt(t,n,s))};class Pt{constructor(n){this.ID=n}}const It=t=>(t=St.sanitizeText(t,rt()),B[t]||(B[t]=new Pt(t),Q.push(B[t])),B[t]),Ot=()=>Q,$t=()=>q,zt=()=>({nodes:Q.map(t=>({id:t.ID})),links:q.map(t=>({source:t.source.ID,target:t.target.ID,value:t.value}))}),Dt={nodesMap:B,getConfig:()=>rt().sankey,getNodes:Ot,getLinks:$t,getGraph:zt,addLink:Ct,findOrCreateNode:It,getAccTitle:mt,setAccTitle:kt,getAccDescription:_t,setAccDescription:xt,getDiagramTitle:vt,setDiagramTitle:bt,clear:Mt};function ot(t,n){let s;if(n===void 0)for(const a of t)a!=null&&(s<a||s===void 0&&a>=a)&&(s=a);else{let a=-1;for(let u of t)(u=n(u,++a,t))!=null&&(s<u||s===void 0&&u>=u)&&(s=u)}return s}function yt(t,n){let s;if(n===void 0)for(const a of t)a!=null&&(s>a||s===void 0&&a>=a)&&(s=a);else{let a=-1;for(let u of t)(u=n(u,++a,t))!=null&&(s>u||s===void 0&&u>=u)&&(s=u)}return s}function Z(t,n){let s=0;if(n===void 0)for(let a of t)(a=+a)&&(s+=a);else{let a=-1;for(let u of t)(u=+n(u,++a,t))&&(s+=u)}return s}function jt(t){return t.target.depth}function Bt(t){return t.depth}function Vt(t,n){return n-1-t.height}function dt(t,n){return t.sourceLinks.length?t.depth:n-1}function Rt(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?yt(t.sourceLinks,jt)-1:0}function Y(t){return function(){return t}}function lt(t,n){return X(t.source,n.source)||t.index-n.index}function at(t,n){return X(t.target,n.target)||t.index-n.index}function X(t,n){return t.y0-n.y0}function J(t){return t.value}function Ut(t){return t.index}function Wt(t){return t.nodes}function Ft(t){return t.links}function ct(t,n){const s=t.get(n);if(!s)throw new Error("missing: "+n);return s}function ut({nodes:t}){for(const n of t){let s=n.y0,a=s;for(const u of n.sourceLinks)u.y0=s+u.width/2,s+=u.width;for(const u of n.targetLinks)u.y1=a+u.width/2,a+=u.width}}function Gt(){let t=0,n=0,s=1,a=1,u=24,_=8,p,g=Ut,i=dt,o,c,m=Wt,b=Ft,y=6;function x(){const e={nodes:m.apply(null,arguments),links:b.apply(null,arguments)};return E(e),L(e),A(e),N(e),S(e),ut(e),e}x.update=function(e){return ut(e),e},x.nodeId=function(e){return arguments.length?(g=typeof e=="function"?e:Y(e),x):g},x.nodeAlign=function(e){return arguments.length?(i=typeof e=="function"?e:Y(e),x):i},x.nodeSort=function(e){return arguments.length?(o=e,x):o},x.nodeWidth=function(e){return arguments.length?(u=+e,x):u},x.nodePadding=function(e){return arguments.length?(_=p=+e,x):_},x.nodes=function(e){return arguments.length?(m=typeof e=="function"?e:Y(e),x):m},x.links=function(e){return arguments.length?(b=typeof e=="function"?e:Y(e),x):b},x.linkSort=function(e){return arguments.length?(c=e,x):c},x.size=function(e){return arguments.length?(t=n=0,s=+e[0],a=+e[1],x):[s-t,a-n]},x.extent=function(e){return arguments.length?(t=+e[0][0],s=+e[1][0],n=+e[0][1],a=+e[1][1],x):[[t,n],[s,a]]},x.iterations=function(e){return arguments.length?(y=+e,x):y};function E({nodes:e,links:f}){for(const[h,r]of e.entries())r.index=h,r.sourceLinks=[],r.targetLinks=[];const l=new Map(e.map((h,r)=>[g(h,r,e),h]));for(const[h,r]of f.entries()){r.index=h;let{source:k,target:v}=r;typeof k!="object"&&(k=r.source=ct(l,k)),typeof v!="object"&&(v=r.target=ct(l,v)),k.sourceLinks.push(r),v.targetLinks.push(r)}if(c!=null)for(const{sourceLinks:h,targetLinks:r}of e)h.sort(c),r.sort(c)}function L({nodes:e}){for(const f of e)f.value=f.fixedValue===void 0?Math.max(Z(f.sourceLinks,J),Z(f.targetLinks,J)):f.fixedValue}function A({nodes:e}){const f=e.length;let l=new Set(e),h=new Set,r=0;for(;l.size;){for(const k of l){k.depth=r;for(const{target:v}of k.sourceLinks)h.add(v)}if(++r>f)throw new Error("circular link");l=h,h=new Set}}function N({nodes:e}){const f=e.length;let l=new Set(e),h=new Set,r=0;for(;l.size;){for(const k of l){k.height=r;for(const{source:v}of k.targetLinks)h.add(v)}if(++r>f)throw new Error("circular link");l=h,h=new Set}}function I({nodes:e}){const f=ot(e,r=>r.depth)+1,l=(s-t-u)/(f-1),h=new Array(f);for(const r of e){const k=Math.max(0,Math.min(f-1,Math.floor(i.call(null,r,f))));r.layer=k,r.x0=t+k*l,r.x1=r.x0+u,h[k]?h[k].push(r):h[k]=[r]}if(o)for(const r of h)r.sort(o);return h}function z(e){const f=yt(e,l=>(a-n-(l.length-1)*p)/Z(l,J));for(const l of e){let h=n;for(const r of l){r.y0=h,r.y1=h+r.value*f,h=r.y1+p;for(const k of r.sourceLinks)k.width=k.value*f}h=(a-h+p)/(l.length+1);for(let r=0;r<l.length;++r){const k=l[r];k.y0+=h*(r+1),k.y1+=h*(r+1)}O(l)}}function S(e){const f=I(e);p=Math.min(_,(a-n)/(ot(f,l=>l.length)-1)),z(f);for(let l=0;l<y;++l){const h=Math.pow(.99,l),r=Math.max(1-h,(l+1)/y);$(f,h,r),M(f,h,r)}}function M(e,f,l){for(let h=1,r=e.length;h<r;++h){const k=e[h];for(const v of k){let R=0,D=0;for(const{source:W,value:K}of v.targetLinks){let F=K*(v.layer-W.layer);R+=T(W,v)*F,D+=F}if(!(D>0))continue;let U=(R/D-v.y0)*f;v.y0+=U,v.y1+=U,w(v)}o===void 0&&k.sort(X),C(k,l)}}function $(e,f,l){for(let h=e.length,r=h-2;r>=0;--r){const k=e[r];for(const v of k){let R=0,D=0;for(const{target:W,value:K}of v.sourceLinks){let F=K*(W.layer-v.layer);R+=V(v,W)*F,D+=F}if(!(D>0))continue;let U=(R/D-v.y0)*f;v.y0+=U,v.y1+=U,w(v)}o===void 0&&k.sort(X),C(k,l)}}function C(e,f){const l=e.length>>1,h=e[l];d(e,h.y0-p,l-1,f),P(e,h.y1+p,l+1,f),d(e,a,e.length-1,f),P(e,n,0,f)}function P(e,f,l,h){for(;l<e.length;++l){const r=e[l],k=(f-r.y0)*h;k>1e-6&&(r.y0+=k,r.y1+=k),f=r.y1+p}}function d(e,f,l,h){for(;l>=0;--l){const r=e[l],k=(r.y1-f)*h;k>1e-6&&(r.y0-=k,r.y1-=k),f=r.y0-p}}function w({sourceLinks:e,targetLinks:f}){if(c===void 0){for(const{source:{sourceLinks:l}}of f)l.sort(at);for(const{target:{targetLinks:l}}of e)l.sort(lt)}}function O(e){if(c===void 0)for(const{sourceLinks:f,targetLinks:l}of e)f.sort(at),l.sort(lt)}function T(e,f){let l=e.y0-(e.sourceLinks.length-1)*p/2;for(const{target:h,width:r}of e.sourceLinks){if(h===f)break;l+=r+p}for(const{source:h,width:r}of f.targetLinks){if(h===e)break;l-=r}return l}function V(e,f){let l=f.y0-(f.targetLinks.length-1)*p/2;for(const{source:h,width:r}of f.targetLinks){if(h===e)break;l+=r+p}for(const{target:h,width:r}of e.sourceLinks){if(h===f)break;l-=r}return l}return x}var et=Math.PI,nt=2*et,j=1e-6,Yt=nt-j;function it(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function pt(){return new it}it.prototype=pt.prototype={constructor:it,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,s,a){this._+="Q"+ +t+","+ +n+","+(this._x1=+s)+","+(this._y1=+a)},bezierCurveTo:function(t,n,s,a,u,_){this._+="C"+ +t+","+ +n+","+ +s+","+ +a+","+(this._x1=+u)+","+(this._y1=+_)},arcTo:function(t,n,s,a,u){t=+t,n=+n,s=+s,a=+a,u=+u;var _=this._x1,p=this._y1,g=s-t,i=a-n,o=_-t,c=p-n,m=o*o+c*c;if(u<0)throw new Error("negative radius: "+u);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(m>j)if(!(Math.abs(c*g-i*o)>j)||!u)this._+="L"+(this._x1=t)+","+(this._y1=n);else{var b=s-_,y=a-p,x=g*g+i*i,E=b*b+y*y,L=Math.sqrt(x),A=Math.sqrt(m),N=u*Math.tan((et-Math.acos((x+m-E)/(2*L*A)))/2),I=N/A,z=N/L;Math.abs(I-1)>j&&(this._+="L"+(t+I*o)+","+(n+I*c)),this._+="A"+u+","+u+",0,0,"+ +(c*b>o*y)+","+(this._x1=t+z*g)+","+(this._y1=n+z*i)}},arc:function(t,n,s,a,u,_){t=+t,n=+n,s=+s,_=!!_;var p=s*Math.cos(a),g=s*Math.sin(a),i=t+p,o=n+g,c=1^_,m=_?a-u:u-a;if(s<0)throw new Error("negative radius: "+s);this._x1===null?this._+="M"+i+","+o:(Math.abs(this._x1-i)>j||Math.abs(this._y1-o)>j)&&(this._+="L"+i+","+o),s&&(m<0&&(m=m%nt+nt),m>Yt?this._+="A"+s+","+s+",0,1,"+c+","+(t-p)+","+(n-g)+"A"+s+","+s+",0,1,"+c+","+(this._x1=i)+","+(this._y1=o):m>j&&(this._+="A"+s+","+s+",0,"+ +(m>=et)+","+c+","+(this._x1=t+s*Math.cos(u))+","+(this._y1=n+s*Math.sin(u))))},rect:function(t,n,s,a){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +s+"v"+ +a+"h"+-s+"Z"},toString:function(){return this._}};function ht(t){return function(){return t}}function Ht(t){return t[0]}function Xt(t){return t[1]}var qt=Array.prototype.slice;function Qt(t){return t.source}function Kt(t){return t.target}function Zt(t){var n=Qt,s=Kt,a=Ht,u=Xt,_=null;function p(){var g,i=qt.call(arguments),o=n.apply(this,i),c=s.apply(this,i);if(_||(_=g=pt()),t(_,+a.apply(this,(i[0]=o,i)),+u.apply(this,i),+a.apply(this,(i[0]=c,i)),+u.apply(this,i)),g)return _=null,g+""||null}return p.source=function(g){return arguments.length?(n=g,p):n},p.target=function(g){return arguments.length?(s=g,p):s},p.x=function(g){return arguments.length?(a=typeof g=="function"?g:ht(+g),p):a},p.y=function(g){return arguments.length?(u=typeof g=="function"?g:ht(+g),p):u},p.context=function(g){return arguments.length?(_=g??null,p):_},p}function Jt(t,n,s,a,u){t.moveTo(n,s),t.bezierCurveTo(n=(n+a)/2,s,n,u,a,u)}function te(){return Zt(Jt)}function ee(t){return[t.source.x1,t.y0]}function ne(t){return[t.target.x0,t.y1]}function ie(){return te().source(ee).target(ne)}const gt=class st{static next(n){return new st(n+ ++st.count)}constructor(n){this.id=n,this.href=`#${n}`}toString(){return"url("+this.href+")"}};gt.count=0;let ft=gt;const se={left:Bt,right:Vt,center:Rt,justify:dt},re=function(t,n,s,a){const{securityLevel:u,sankey:_}=rt(),p=Lt.sankey;let g;u==="sandbox"&&(g=G("#i"+n));const i=u==="sandbox"?G(g.nodes()[0].contentDocument.body):G("body"),o=u==="sandbox"?i.select(`[id="${n}"]`):G(`[id="${n}"]`),c=(_==null?void 0:_.width)??p.width,m=(_==null?void 0:_.height)??p.width,b=(_==null?void 0:_.useMaxWidth)??p.useMaxWidth,y=(_==null?void 0:_.nodeAlignment)??p.nodeAlignment,x=(_==null?void 0:_.prefix)??p.prefix,E=(_==null?void 0:_.suffix)??p.suffix,L=(_==null?void 0:_.showValues)??p.showValues,A=a.db.getGraph(),N=se[y];Gt().nodeId(d=>d.id).nodeWidth(10).nodePadding(10+(L?15:0)).nodeAlign(N).extent([[0,0],[c,m]])(A);const S=At(Tt);o.append("g").attr("class","nodes").selectAll(".node").data(A.nodes).join("g").attr("class","node").attr("id",d=>(d.uid=ft.next("node-")).id).attr("transform",function(d){return"translate("+d.x0+","+d.y0+")"}).attr("x",d=>d.x0).attr("y",d=>d.y0).append("rect").attr("height",d=>d.y1-d.y0).attr("width",d=>d.x1-d.x0).attr("fill",d=>S(d.id));const M=({id:d,value:w})=>L?`${d}
${x}${Math.round(w*100)/100}${E}`:d;o.append("g").attr("class","node-labels").attr("font-family","sans-serif").attr("font-size",14).selectAll("text").data(A.nodes).join("text").attr("x",d=>d.x0<c/2?d.x1+6:d.x0-6).attr("y",d=>(d.y1+d.y0)/2).attr("dy",`${L?"0":"0.35"}em`).attr("text-anchor",d=>d.x0<c/2?"start":"end").text(M);const $=o.append("g").attr("class","links").attr("fill","none").attr("stroke-opacity",.5).selectAll(".link").data(A.links).join("g").attr("class","link").style("mix-blend-mode","multiply"),C=(_==null?void 0:_.linkColor)||"gradient";if(C==="gradient"){const d=$.append("linearGradient").attr("id",w=>(w.uid=ft.next("linearGradient-")).id).attr("gradientUnits","userSpaceOnUse").attr("x1",w=>w.source.x1).attr("x2",w=>w.target.x0);d.append("stop").attr("offset","0%").attr("stop-color",w=>S(w.source.id)),d.append("stop").attr("offset","100%").attr("stop-color",w=>S(w.target.id))}let P;switch(C){case"gradient":P=d=>d.uid;break;case"source":P=d=>S(d.source.id);break;case"target":P=d=>S(d.target.id);break;default:P=C}$.append("path").attr("d",ie()).attr("stroke",P).attr("stroke-width",d=>Math.max(1,d.width)),Et(void 0,o,0,b)},oe={draw:re},le=t=>t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,"").replaceAll(/([\n\r])+/g,`
`).trim(),ae=H.parse.bind(H);H.parse=t=>ae(le(t));const _e={parser:H,db:Dt,renderer:oe};export{_e as diagram};
import{c as Te,s as Ce,g as Fe,b as Me,a as De,l as Ne,E as Pe,h as oe,i as Ye,j as ke}from"./slidev/5-BKiUV7YW.js";import{G as Ue}from"./graph-af3d5df6-DtpoS02a.js";import{l as Be}from"./layout-6685625a-CnDdhUY9.js";import{l as Qe}from"./line-65d70945-BvyDbe4_.js";import"./modules/vue-Dn3czbSS.js";import"./index-D2S1x1Oe.js";import"./modules/shiki-CuMFyo6Z.js";import"./modules/file-saver-EUMWMpoS.js";import"./slidev/default-CY-sqYNf.js";import"./slidev/context-CYh2-pv1.js";import"./array-b7dcf730-BKyUJesY.js";import"./path-39bad7e2-CbwjOpE9.js";var ce=function(){var e=function(V,i,n,a){for(n=n||{},a=V.length;a--;n[V[a]]=i);return n},t=[1,3],l=[1,4],c=[1,5],u=[1,6],d=[5,6,8,9,11,13,31,32,33,34,35,36,44,62,63],p=[1,18],h=[2,7],o=[1,22],E=[1,23],R=[1,24],A=[1,25],T=[1,26],N=[1,27],v=[1,20],k=[1,28],x=[1,29],F=[62,63],de=[5,8,9,11,13,31,32,33,34,35,36,44,51,53,62,63],pe=[1,47],fe=[1,48],ye=[1,49],_e=[1,50],Ee=[1,51],ge=[1,52],Re=[1,53],O=[53,54],M=[1,64],D=[1,60],P=[1,61],Y=[1,62],U=[1,63],B=[1,65],j=[1,69],z=[1,70],X=[1,67],J=[1,68],m=[5,8,9,11,13,31,32,33,34,35,36,44,62,63],ie={trace:function(){},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:function(i,n,a,r,f,s,W){var _=s.length-1;switch(f){case 4:this.$=s[_].trim(),r.setAccTitle(this.$);break;case 5:case 6:this.$=s[_].trim(),r.setAccDescription(this.$);break;case 7:this.$=[];break;case 13:r.addRequirement(s[_-3],s[_-4]);break;case 14:r.setNewReqId(s[_-2]);break;case 15:r.setNewReqText(s[_-2]);break;case 16:r.setNewReqRisk(s[_-2]);break;case 17:r.setNewReqVerifyMethod(s[_-2]);break;case 20:this.$=r.RequirementType.REQUIREMENT;break;case 21:this.$=r.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 22:this.$=r.RequirementType.INTERFACE_REQUIREMENT;break;case 23:this.$=r.RequirementType.PERFORMANCE_REQUIREMENT;break;case 24:this.$=r.RequirementType.PHYSICAL_REQUIREMENT;break;case 25:this.$=r.RequirementType.DESIGN_CONSTRAINT;break;case 26:this.$=r.RiskLevel.LOW_RISK;break;case 27:this.$=r.RiskLevel.MED_RISK;break;case 28:this.$=r.RiskLevel.HIGH_RISK;break;case 29:this.$=r.VerifyType.VERIFY_ANALYSIS;break;case 30:this.$=r.VerifyType.VERIFY_DEMONSTRATION;break;case 31:this.$=r.VerifyType.VERIFY_INSPECTION;break;case 32:this.$=r.VerifyType.VERIFY_TEST;break;case 33:r.addElement(s[_-3]);break;case 34:r.setNewElementType(s[_-2]);break;case 35:r.setNewElementDocRef(s[_-2]);break;case 38:r.addRelationship(s[_-2],s[_],s[_-4]);break;case 39:r.addRelationship(s[_-2],s[_-4],s[_]);break;case 40:this.$=r.Relationships.CONTAINS;break;case 41:this.$=r.Relationships.COPIES;break;case 42:this.$=r.Relationships.DERIVES;break;case 43:this.$=r.Relationships.SATISFIES;break;case 44:this.$=r.Relationships.VERIFIES;break;case 45:this.$=r.Relationships.REFINES;break;case 46:this.$=r.Relationships.TRACES;break}},table:[{3:1,4:2,6:t,9:l,11:c,13:u},{1:[3]},{3:8,4:2,5:[1,7],6:t,9:l,11:c,13:u},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(d,[2,6]),{3:12,4:2,6:t,9:l,11:c,13:u},{1:[2,2]},{4:17,5:p,7:13,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:E,33:R,34:A,35:T,36:N,44:v,62:k,63:x},e(d,[2,4]),e(d,[2,5]),{1:[2,1]},{8:[1,30]},{4:17,5:p,7:31,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:E,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:32,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:E,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:33,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:E,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:34,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:E,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:35,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:E,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{18:36,62:[1,37],63:[1,38]},{45:39,62:[1,40],63:[1,41]},{51:[1,42],53:[1,43]},e(F,[2,20]),e(F,[2,21]),e(F,[2,22]),e(F,[2,23]),e(F,[2,24]),e(F,[2,25]),e(de,[2,49]),e(de,[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:pe,56:fe,57:ye,58:_e,59:Ee,60:ge,61:Re},{52:54,55:pe,56:fe,57:ye,58:_e,59:Ee,60:ge,61:Re},{5:[1,55]},{5:[1,56]},{53:[1,57]},e(O,[2,40]),e(O,[2,41]),e(O,[2,42]),e(O,[2,43]),e(O,[2,44]),e(O,[2,45]),e(O,[2,46]),{54:[1,58]},{5:M,20:59,21:D,24:P,26:Y,28:U,30:B},{5:j,30:z,46:66,47:X,49:J},{23:71,62:k,63:x},{23:72,62:k,63:x},e(m,[2,13]),{22:[1,73]},{22:[1,74]},{22:[1,75]},{22:[1,76]},{5:M,20:77,21:D,24:P,26:Y,28:U,30:B},e(m,[2,19]),e(m,[2,33]),{22:[1,78]},{22:[1,79]},{5:j,30:z,46:80,47:X,49:J},e(m,[2,37]),e(m,[2,38]),e(m,[2,39]),{23:81,62:k,63:x},{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(m,[2,18]),{48:94,62:[1,95],63:[1,96]},{50:97,62:[1,98],63:[1,99]},e(m,[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:M,20:106,21:D,24:P,26:Y,28:U,30:B},{5:M,20:107,21:D,24:P,26:Y,28:U,30:B},{5:M,20:108,21:D,24:P,26:Y,28:U,30:B},{5:M,20:109,21:D,24:P,26:Y,28:U,30:B},{5:j,30:z,46:110,47:X,49:J},{5:j,30:z,46:111,47:X,49:J},e(m,[2,14]),e(m,[2,15]),e(m,[2,16]),e(m,[2,17]),e(m,[2,34]),e(m,[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:function(i,n){if(n.recoverable)this.trace(i);else{var a=new Error(i);throw a.hash=n,a}},parse:function(i){var n=this,a=[0],r=[],f=[null],s=[],W=this.table,_="",Z=0,me=0,Ve=2,Ie=1,qe=s.slice.call(arguments,1),g=Object.create(this.lexer),L={yy:{}};for(var ne in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ne)&&(L.yy[ne]=this.yy[ne]);g.setInput(i,L.yy),L.yy.lexer=g,L.yy.parser=this,typeof g.yylloc>"u"&&(g.yylloc={});var se=g.yylloc;s.push(se);var Oe=g.options&&g.options.ranges;typeof L.yy.parseError=="function"?this.parseError=L.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Le(){var $;return $=r.pop()||g.lex()||Ie,typeof $!="number"&&($ instanceof Array&&(r=$,$=r.pop()),$=n.symbols_[$]||$),$}for(var I,C,S,ae,Q={},ee,w,be,te;;){if(C=a[a.length-1],this.defaultActions[C]?S=this.defaultActions[C]:((I===null||typeof I>"u")&&(I=Le()),S=W[C]&&W[C][I]),typeof S>"u"||!S.length||!S[0]){var le="";te=[];for(ee in W[C])this.terminals_[ee]&&ee>Ve&&te.push("'"+this.terminals_[ee]+"'");g.showPosition?le="Parse error on line "+(Z+1)+`:
`+g.showPosition()+`
Expecting `+te.join(", ")+", got '"+(this.terminals_[I]||I)+"'":le="Parse error on line "+(Z+1)+": Unexpected "+(I==Ie?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(le,{text:g.match,token:this.terminals_[I]||I,line:g.yylineno,loc:se,expected:te})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+C+", token: "+I);switch(S[0]){case 1:a.push(I),f.push(g.yytext),s.push(g.yylloc),a.push(S[1]),I=null,me=g.yyleng,_=g.yytext,Z=g.yylineno,se=g.yylloc;break;case 2:if(w=this.productions_[S[1]][1],Q.$=f[f.length-w],Q._$={first_line:s[s.length-(w||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(w||1)].first_column,last_column:s[s.length-1].last_column},Oe&&(Q._$.range=[s[s.length-(w||1)].range[0],s[s.length-1].range[1]]),ae=this.performAction.apply(Q,[_,me,Z,L.yy,S[1],f,s].concat(qe)),typeof ae<"u")return ae;w&&(a=a.slice(0,-1*w*2),f=f.slice(0,-1*w),s=s.slice(0,-1*w)),a.push(this.productions_[S[1]][0]),f.push(Q.$),s.push(Q._$),be=W[a[a.length-2]][a[a.length-1]],a.push(be);break;case 3:return!0}}return!0}},$e=function(){var V={EOF:1,parseError:function(n,a){if(this.yy.parser)this.yy.parser.parseError(n,a);else throw new Error(n)},setInput:function(i,n){return this.yy=n||this.yy||{},this._input=i,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 i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var n=i.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},unput:function(i){var n=i.length,a=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var r=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),a.length-1&&(this.yylineno-=a.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:a?(a.length===r.length?this.yylloc.first_column:0)+r[r.length-a.length].length-a[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[f[0],f[0]+this.yyleng-n]),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(i){this.unput(this.match.slice(i))},pastInput:function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var i=this.pastInput(),n=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
`+n+"^"},test_match:function(i,n){var a,r,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))),r=i[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+i[0].length},this.yytext+=i[0],this.match+=i[0],this.matches=i,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(i[0].length),this.matched+=i[0],a=this.performAction.call(this,this.yy,this,n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),a)return a;if(this._backtrack){for(var s in f)this[s]=f[s];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var i,n,a,r;this._more||(this.yytext="",this.match="");for(var f=this._currentRules(),s=0;s<f.length;s++)if(a=this._input.match(this.rules[f[s]]),a&&(!n||a[0].length>n[0].length)){if(n=a,r=s,this.options.backtrack_lexer){if(i=this.test_match(a,f[s]),i!==!1)return i;if(this._backtrack){n=!1;continue}else return!1}else if(!this.options.flex)break}return n?(i=this.test_match(n,f[r]),i!==!1?i:!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 n=this.next();return n||this.lex()},begin:function(n){this.conditionStack.push(n)},popState:function(){var n=this.conditionStack.length-1;return n>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(n){return n=this.conditionStack.length-1-Math.abs(n||0),n>=0?this.conditionStack[n]:"INITIAL"},pushState:function(n){this.begin(n)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(n,a,r,f){switch(r){case 0:return"title";case 1:return this.begin("acc_title"),9;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),11;case 4:return this.popState(),"acc_descr_value";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 a.yytext=a.yytext.trim(),62}},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 V}();ie.lexer=$e;function re(){this.yy={}}return re.prototype=ie,ie.Parser=re,new re}();ce.parser=ce;const He=ce;let ue=[],b={},K={},q={},G={};const We={REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"},Ke={LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"},Ge={VERIFY_ANALYSIS:"Analysis",VERIFY_DEMONSTRATION:"Demonstration",VERIFY_INSPECTION:"Inspection",VERIFY_TEST:"Test"},je={CONTAINS:"contains",COPIES:"copies",DERIVES:"derives",SATISFIES:"satisfies",VERIFIES:"verifies",REFINES:"refines",TRACES:"traces"},ze=(e,t)=>(K[e]===void 0&&(K[e]={name:e,type:t,id:b.id,text:b.text,risk:b.risk,verifyMethod:b.verifyMethod}),b={},K[e]),Xe=()=>K,Je=e=>{b!==void 0&&(b.id=e)},Ze=e=>{b!==void 0&&(b.text=e)},et=e=>{b!==void 0&&(b.risk=e)},tt=e=>{b!==void 0&&(b.verifyMethod=e)},it=e=>(G[e]===void 0&&(G[e]={name:e,type:q.type,docRef:q.docRef},Ne.info("Added new requirement: ",e)),q={},G[e]),rt=()=>G,nt=e=>{q!==void 0&&(q.type=e)},st=e=>{q!==void 0&&(q.docRef=e)},at=(e,t,l)=>{ue.push({type:e,src:t,dst:l})},lt=()=>ue,ot=()=>{ue=[],b={},K={},q={},G={},Pe()},ct={RequirementType:We,RiskLevel:Ke,VerifyType:Ge,Relationships:je,getConfig:()=>Te().req,addRequirement:ze,getRequirements:Xe,setNewReqId:Je,setNewReqText:Ze,setNewReqRisk:et,setNewReqVerifyMethod:tt,setAccTitle:Ce,getAccTitle:Fe,setAccDescription:Me,getAccDescription:De,addElement:it,getElements:rt,setNewElementType:nt,setNewElementDocRef:st,addRelationship:at,getRelationships:lt,clear:ot},ht=e=>`
marker {
fill: ${e.relationColor};
stroke: ${e.relationColor};
}
marker.cross {
stroke: ${e.lineColor};
}
svg {
font-family: ${e.fontFamily};
font-size: ${e.fontSize};
}
.reqBox {
fill: ${e.requirementBackground};
fill-opacity: 1.0;
stroke: ${e.requirementBorderColor};
stroke-width: ${e.requirementBorderSize};
}
.reqTitle, .reqLabel{
fill: ${e.requirementTextColor};
}
.reqLabelBox {
fill: ${e.relationLabelBackground};
fill-opacity: 1.0;
}
.req-title-line {
stroke: ${e.requirementBorderColor};
stroke-width: ${e.requirementBorderSize};
}
.relationshipLine {
stroke: ${e.relationColor};
stroke-width: 1;
}
.relationshipLabel {
fill: ${e.relationLabelColor};
}
`,ut=ht,he={CONTAINS:"contains",ARROW:"arrow"},dt=(e,t)=>{let l=e.append("defs").append("marker").attr("id",he.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");l.append("circle").attr("cx",t.line_height/2).attr("cy",t.line_height/2).attr("r",t.line_height/2).attr("fill","none"),l.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),l.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",he.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)},xe={ReqMarkers:he,insertLineEndings:dt};let y={},Se=0;const Ae=(e,t)=>e.insert("rect","#"+t).attr("class","req reqBox").attr("x",0).attr("y",0).attr("width",y.rect_min_width+"px").attr("height",y.rect_min_height+"px"),ve=(e,t,l)=>{let c=y.rect_min_width/2,u=e.append("text").attr("class","req reqLabel reqTitle").attr("id",t).attr("x",c).attr("y",y.rect_padding).attr("dominant-baseline","hanging"),d=0;l.forEach(E=>{d==0?u.append("tspan").attr("text-anchor","middle").attr("x",y.rect_min_width/2).attr("dy",0).text(E):u.append("tspan").attr("text-anchor","middle").attr("x",y.rect_min_width/2).attr("dy",y.line_height*.75).text(E),d++});let p=1.5*y.rect_padding,h=d*y.line_height*.75,o=p+h;return e.append("line").attr("class","req-title-line").attr("x1","0").attr("x2",y.rect_min_width).attr("y1",o).attr("y2",o),{titleNode:u,y:o}},we=(e,t,l,c)=>{let u=e.append("text").attr("class","req reqLabel").attr("id",t).attr("x",y.rect_padding).attr("y",c).attr("dominant-baseline","hanging"),d=0;const p=30;let h=[];return l.forEach(o=>{let E=o.length;for(;E>p&&d<3;){let R=o.substring(0,p);o=o.substring(p,o.length),E=o.length,h[h.length]=R,d++}if(d==3){let R=h[h.length-1];h[h.length-1]=R.substring(0,R.length-4)+"..."}else h[h.length]=o;d=0}),h.forEach(o=>{u.append("tspan").attr("x",y.rect_padding).attr("dy",y.line_height).text(o)}),u},pt=(e,t,l,c)=>{const u=t.node().getTotalLength(),d=t.node().getPointAtLength(u*.5),p="rel"+Se;Se++;const o=e.append("text").attr("class","req relationshipLabel").attr("id",p).attr("x",d.x).attr("y",d.y).attr("text-anchor","middle").attr("dominant-baseline","middle").text(c).node().getBBox();e.insert("rect","#"+p).attr("class","req reqLabelBox").attr("x",d.x-o.width/2).attr("y",d.y-o.height/2).attr("width",o.width).attr("height",o.height).attr("fill","white").attr("fill-opacity","85%")},ft=function(e,t,l,c,u){const d=l.edge(H(t.src),H(t.dst)),p=Qe().x(function(o){return o.x}).y(function(o){return o.y}),h=e.insert("path","#"+c).attr("class","er relationshipLine").attr("d",p(d.points)).attr("fill","none");t.type==u.db.Relationships.CONTAINS?h.attr("marker-start","url("+ke.getUrl(y.arrowMarkerAbsolute)+"#"+t.type+"_line_ending)"):(h.attr("stroke-dasharray","10,7"),h.attr("marker-end","url("+ke.getUrl(y.arrowMarkerAbsolute)+"#"+xe.ReqMarkers.ARROW+"_line_ending)")),pt(e,h,y,`<<${t.type}>>`)},yt=(e,t,l)=>{Object.keys(e).forEach(c=>{let u=e[c];c=H(c),Ne.info("Added new requirement: ",c);const d=l.append("g").attr("id",c),p="req-"+c,h=Ae(d,p);let o=ve(d,c+"_title",[`<<${u.type}>>`,`${u.name}`]);we(d,c+"_body",[`Id: ${u.id}`,`Text: ${u.text}`,`Risk: ${u.risk}`,`Verification: ${u.verifyMethod}`],o.y);const E=h.node().getBBox();t.setNode(c,{width:E.width,height:E.height,shape:"rect",id:c})})},_t=(e,t,l)=>{Object.keys(e).forEach(c=>{let u=e[c];const d=H(c),p=l.append("g").attr("id",d),h="element-"+d,o=Ae(p,h);let E=ve(p,h+"_title",["<<Element>>",`${c}`]);we(p,h+"_body",[`Type: ${u.type||"Not Specified"}`,`Doc Ref: ${u.docRef||"None"}`],E.y);const R=o.node().getBBox();t.setNode(d,{width:R.width,height:R.height,shape:"rect",id:d})})},Et=(e,t)=>(e.forEach(function(l){let c=H(l.src),u=H(l.dst);t.setEdge(c,u,{relationship:l})}),e),gt=function(e,t){t.nodes().forEach(function(l){l!==void 0&&t.node(l)!==void 0&&(e.select("#"+l),e.select("#"+l).attr("transform","translate("+(t.node(l).x-t.node(l).width/2)+","+(t.node(l).y-t.node(l).height/2)+" )"))})},H=e=>e.replace(/\s/g,"").replace(/\./g,"_"),Rt=(e,t,l,c)=>{y=Te().requirement;const u=y.securityLevel;let d;u==="sandbox"&&(d=oe("#i"+t));const h=(u==="sandbox"?oe(d.nodes()[0].contentDocument.body):oe("body")).select(`[id='${t}']`);xe.insertLineEndings(h,y);const o=new Ue({multigraph:!1,compound:!1,directed:!0}).setGraph({rankdir:y.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}});let E=c.db.getRequirements(),R=c.db.getElements(),A=c.db.getRelationships();yt(E,o,h),_t(R,o,h),Et(A,o),Be(o),gt(h,o),A.forEach(function(x){ft(h,x,o,t,c)});const T=y.rect_padding,N=h.node().getBBox(),v=N.width+T*2,k=N.height+T*2;Ye(h,k,v,y.useMaxWidth),h.attr("viewBox",`${N.x-T} ${N.y-T} ${v} ${k}`)},mt={draw:Rt},qt={parser:He,db:ct,renderer:mt,styles:ut};export{qt as diagram};
import{a$ as vt,c as yt,aL as D,l as ot,s as Lt,g as Ct,C as zt,D as bt,a as Et,b as Dt,E as It,h as gt,i as Bt,d as wt}from"./slidev/5-BKiUV7YW.js";import{l as _t}from"./linear-d94cf28d-BvaqH9Ej.js";import"./modules/vue-Dn3czbSS.js";import"./index-D2S1x1Oe.js";import"./modules/shiki-CuMFyo6Z.js";import"./modules/file-saver-EUMWMpoS.js";import"./slidev/default-CY-sqYNf.js";import"./slidev/context-CYh2-pv1.js";import"./init-cc95ec8e-Gi6I4Gst.js";var pt=function(){var e=function(K,n,r,l){for(r=r||{},l=K.length;l--;r[K[l]]=n);return r},s=[1,3],h=[1,4],x=[1,5],f=[1,6],d=[1,7],c=[1,5,13,15,17,19,20,25,27,28,29,30,31,32,33,34,37,38,40,41,42,43,44,45,46,47,48,49,50],g=[1,5,6,13,15,17,19,20,25,27,28,29,30,31,32,33,34,37,38,40,41,42,43,44,45,46,47,48,49,50],i=[32,33,34],y=[2,7],p=[1,13],B=[1,17],N=[1,18],V=[1,19],I=[1,20],b=[1,21],M=[1,22],X=[1,23],C=[1,24],it=[1,25],at=[1,26],nt=[1,27],U=[1,30],Q=[1,31],T=[1,32],_=[1,33],m=[1,34],t=[1,35],A=[1,36],S=[1,37],k=[1,38],F=[1,39],P=[1,40],v=[1,41],L=[1,42],O=[1,57],Y=[1,58],z=[5,22,26,32,33,34,40,41,42,43,44,45,46,47,48,49,50,51],ht={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,SPACE:5,QUADRANT:6,document:7,line:8,statement:9,axisDetails:10,quadrantDetails:11,points: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,text:21,point_start:22,point_x:23,point_y:24,"X-AXIS":25,"AXIS-TEXT-DELIMITER":26,"Y-AXIS":27,QUADRANT_1:28,QUADRANT_2:29,QUADRANT_3:30,QUADRANT_4:31,NEWLINE:32,SEMI:33,EOF:34,alphaNumToken:35,textNoTagsToken:36,STR:37,MD_STR:38,alphaNum:39,PUNCTUATION:40,AMP:41,NUM:42,ALPHA:43,COMMA:44,PLUS:45,EQUALS:46,MULT:47,DOT:48,BRKT:49,UNDERSCORE:50,MINUS:51,$accept:0,$end:1},terminals_:{2:"error",5:"SPACE",6:"QUADRANT",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",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:"NEWLINE",33:"SEMI",34:"EOF",37:"STR",38:"MD_STR",40:"PUNCTUATION",41:"AMP",42:"NUM",43:"ALPHA",44:"COMMA",45:"PLUS",46:"EQUALS",47:"MULT",48:"DOT",49:"BRKT",50:"UNDERSCORE",51:"MINUS"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[9,0],[9,2],[9,1],[9,1],[9,1],[9,2],[9,2],[9,2],[9,1],[9,1],[12,4],[10,4],[10,3],[10,2],[10,4],[10,3],[10,2],[11,2],[11,2],[11,2],[11,2],[4,1],[4,1],[4,1],[21,1],[21,2],[21,1],[21,1],[39,1],[39,2],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[36,1],[36,1],[36,1]],performAction:function(n,r,l,o,q,a,et){var u=a.length-1;switch(q){case 12:this.$=a[u].trim(),o.setDiagramTitle(this.$);break;case 13:this.$=a[u].trim(),o.setAccTitle(this.$);break;case 14:case 15:this.$=a[u].trim(),o.setAccDescription(this.$);break;case 16:o.addSection(a[u].substr(8)),this.$=a[u].substr(8);break;case 17:o.addPoint(a[u-3],a[u-1],a[u]);break;case 18:o.setXAxisLeftText(a[u-2]),o.setXAxisRightText(a[u]);break;case 19:a[u-1].text+=" ⟶ ",o.setXAxisLeftText(a[u-1]);break;case 20:o.setXAxisLeftText(a[u]);break;case 21:o.setYAxisBottomText(a[u-2]),o.setYAxisTopText(a[u]);break;case 22:a[u-1].text+=" ⟶ ",o.setYAxisBottomText(a[u-1]);break;case 23:o.setYAxisBottomText(a[u]);break;case 24:o.setQuadrant1Text(a[u]);break;case 25:o.setQuadrant2Text(a[u]);break;case 26:o.setQuadrant3Text(a[u]);break;case 27:o.setQuadrant4Text(a[u]);break;case 31:this.$={text:a[u],type:"text"};break;case 32:this.$={text:a[u-1].text+""+a[u],type:a[u-1].type};break;case 33:this.$={text:a[u],type:"text"};break;case 34:this.$={text:a[u],type:"markdown"};break;case 35:this.$=a[u];break;case 36:this.$=a[u-1]+""+a[u];break}},table:[{3:1,4:2,5:s,6:h,32:x,33:f,34:d},{1:[3]},{3:8,4:2,5:s,6:h,32:x,33:f,34:d},{3:9,4:2,5:s,6:h,32:x,33:f,34:d},e(c,[2,4],{7:10}),e(g,[2,28]),e(g,[2,29]),e(g,[2,30]),{1:[2,1]},{1:[2,2]},e(i,y,{8:11,9:12,10:14,11:15,12:16,21:28,35:29,1:[2,3],5:p,13:B,15:N,17:V,19:I,20:b,25:M,27:X,28:C,29:it,30:at,31:nt,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L}),e(c,[2,5]),{4:43,32:x,33:f,34:d},e(i,y,{10:14,11:15,12:16,21:28,35:29,9:44,5:p,13:B,15:N,17:V,19:I,20:b,25:M,27:X,28:C,29:it,30:at,31:nt,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L}),e(i,[2,9]),e(i,[2,10]),e(i,[2,11]),{14:[1,45]},{16:[1,46]},{18:[1,47]},e(i,[2,15]),e(i,[2,16]),{21:48,35:29,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:49,35:29,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:50,35:29,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:51,35:29,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:52,35:29,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:53,35:29,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{5:O,22:[1,54],35:56,36:55,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y},e(z,[2,31]),e(z,[2,33]),e(z,[2,34]),e(z,[2,37]),e(z,[2,38]),e(z,[2,39]),e(z,[2,40]),e(z,[2,41]),e(z,[2,42]),e(z,[2,43]),e(z,[2,44]),e(z,[2,45]),e(z,[2,46]),e(z,[2,47]),e(c,[2,6]),e(i,[2,8]),e(i,[2,12]),e(i,[2,13]),e(i,[2,14]),e(i,[2,20],{36:55,35:56,5:O,26:[1,59],40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,23],{36:55,35:56,5:O,26:[1,60],40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,24],{36:55,35:56,5:O,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,25],{36:55,35:56,5:O,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,26],{36:55,35:56,5:O,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,27],{36:55,35:56,5:O,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),{23:[1,61]},e(z,[2,32]),e(z,[2,48]),e(z,[2,49]),e(z,[2,50]),e(i,[2,19],{35:29,21:62,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L}),e(i,[2,22],{35:29,21:63,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L}),{24:[1,64]},e(i,[2,18],{36:55,35:56,5:O,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,21],{36:55,35:56,5:O,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,17])],defaultActions:{8:[2,1],9:[2,2]},parseError:function(n,r){if(r.recoverable)this.trace(n);else{var l=new Error(n);throw l.hash=r,l}},parse:function(n){var r=this,l=[0],o=[],q=[null],a=[],et=this.table,u="",st=0,qt=0,St=2,Tt=1,kt=a.slice.call(arguments,1),E=Object.create(this.lexer),Z={yy:{}};for(var dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,dt)&&(Z.yy[dt]=this.yy[dt]);E.setInput(n,Z.yy),Z.yy.lexer=E,Z.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var ut=E.yylloc;a.push(ut);var Ft=E.options&&E.options.ranges;typeof Z.yy.parseError=="function"?this.parseError=Z.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Pt(){var j;return j=o.pop()||E.lex()||Tt,typeof j!="number"&&(j instanceof Array&&(o=j,j=o.pop()),j=r.symbols_[j]||j),j}for(var W,J,H,xt,tt={},rt,$,mt,lt;;){if(J=l[l.length-1],this.defaultActions[J]?H=this.defaultActions[J]:((W===null||typeof W>"u")&&(W=Pt()),H=et[J]&&et[J][W]),typeof H>"u"||!H.length||!H[0]){var ft="";lt=[];for(rt in et[J])this.terminals_[rt]&&rt>St&<.push("'"+this.terminals_[rt]+"'");E.showPosition?ft="Parse error on line "+(st+1)+`:
`+E.showPosition()+`
Expecting `+lt.join(", ")+", got '"+(this.terminals_[W]||W)+"'":ft="Parse error on line "+(st+1)+": Unexpected "+(W==Tt?"end of input":"'"+(this.terminals_[W]||W)+"'"),this.parseError(ft,{text:E.match,token:this.terminals_[W]||W,line:E.yylineno,loc:ut,expected:lt})}if(H[0]instanceof Array&&H.length>1)throw new Error("Parse Error: multiple actions possible at state: "+J+", token: "+W);switch(H[0]){case 1:l.push(W),q.push(E.yytext),a.push(E.yylloc),l.push(H[1]),W=null,qt=E.yyleng,u=E.yytext,st=E.yylineno,ut=E.yylloc;break;case 2:if($=this.productions_[H[1]][1],tt.$=q[q.length-$],tt._$={first_line:a[a.length-($||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-($||1)].first_column,last_column:a[a.length-1].last_column},Ft&&(tt._$.range=[a[a.length-($||1)].range[0],a[a.length-1].range[1]]),xt=this.performAction.apply(tt,[u,qt,st,Z.yy,H[1],q,a].concat(kt)),typeof xt<"u")return xt;$&&(l=l.slice(0,-1*$*2),q=q.slice(0,-1*$),a=a.slice(0,-1*$)),l.push(this.productions_[H[1]][0]),q.push(tt.$),a.push(tt._$),mt=et[l[l.length-2]][l[l.length-1]],l.push(mt);break;case 3:return!0}}return!0}},At=function(){var K={EOF:1,parseError:function(r,l){if(this.yy.parser)this.yy.parser.parseError(r,l);else throw new Error(r)},setInput:function(n,r){return this.yy=r||this.yy||{},this._input=n,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 n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var r=n.match(/(?:\r\n?|\n).*/g);return r?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},unput:function(n){var r=n.length,l=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;var o=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),l.length-1&&(this.yylineno-=l.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:l?(l.length===o.length?this.yylloc.first_column:0)+o[o.length-l.length].length-l[0].length:this.yylloc.first_column-r},this.options.ranges&&(this.yylloc.range=[q[0],q[0]+this.yyleng-r]),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(n){this.unput(this.match.slice(n))},pastInput:function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var n=this.pastInput(),r=new Array(n.length+1).join("-");return n+this.upcomingInput()+`
`+r+"^"},test_match:function(n,r){var l,o,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))),o=n[0].match(/(?:\r\n?|\n).*/g),o&&(this.yylineno+=o.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:o?o[o.length-1].length-o[o.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+n[0].length},this.yytext+=n[0],this.match+=n[0],this.matches=n,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(n[0].length),this.matched+=n[0],l=this.performAction.call(this,this.yy,this,r,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),l)return l;if(this._backtrack){for(var a in q)this[a]=q[a];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var n,r,l,o;this._more||(this.yytext="",this.match="");for(var q=this._currentRules(),a=0;a<q.length;a++)if(l=this._input.match(this.rules[q[a]]),l&&(!r||l[0].length>r[0].length)){if(r=l,o=a,this.options.backtrack_lexer){if(n=this.test_match(l,q[a]),n!==!1)return n;if(this._backtrack){r=!1;continue}else return!1}else if(!this.options.flex)break}return r?(n=this.test_match(r,q[o]),n!==!1?n:!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 r=this.next();return r||this.lex()},begin:function(r){this.conditionStack.push(r)},popState:function(){var r=this.conditionStack.length-1;return r>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(r){return r=this.conditionStack.length-1-Math.abs(r||0),r>=0?this.conditionStack[r]:"INITIAL"},pushState:function(r){this.begin(r)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(r,l,o,q){switch(o){case 0:break;case 1:break;case 2:return 32;case 3:break;case 4:return this.begin("title"),13;case 5:return this.popState(),"title_value";case 6:return this.begin("acc_title"),15;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),17;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 25;case 14:return 27;case 15:return 26;case 16:return 28;case 17:return 29;case 18:return 30;case 19:return 31;case 20:this.begin("md_string");break;case 21:return"MD_STR";case 22:this.popState();break;case 23:this.begin("string");break;case 24:this.popState();break;case 25:return"STR";case 26:return this.begin("point_start"),22;case 27:return this.begin("point_x"),23;case 28:this.popState();break;case 29:this.popState(),this.begin("point_y");break;case 30:return this.popState(),24;case 31:return 6;case 32:return 43;case 33:return"COLON";case 34:return 45;case 35:return 44;case 36:return 46;case 37:return 46;case 38:return 47;case 39:return 49;case 40:return 50;case 41:return 48;case 42:return 41;case 43:return 51;case 44:return 42;case 45:return 5;case 46:return 33;case 47:return 40;case 48:return 34}},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,/^(?:["][`])/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:[30],inclusive:!1},point_x:{rules:[29],inclusive:!1},point_start:{rules:[27,28],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:[21,22],inclusive:!1},string:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,6,8,10,13,14,15,16,17,18,19,20,23,26,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48],inclusive:!0}}};return K}();ht.lexer=At;function ct(){this.yy={}}return ct.prototype=ht,ht.Parser=ct,new ct}();pt.parser=pt;const Rt=pt,R=vt();class Vt{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 s,h,x,f,d,c,g,i,y,p,B,N,V,I,b,M,X,C;return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:((s=D.quadrantChart)==null?void 0:s.chartWidth)||500,chartWidth:((h=D.quadrantChart)==null?void 0:h.chartHeight)||500,titlePadding:((x=D.quadrantChart)==null?void 0:x.titlePadding)||10,titleFontSize:((f=D.quadrantChart)==null?void 0:f.titleFontSize)||20,quadrantPadding:((d=D.quadrantChart)==null?void 0:d.quadrantPadding)||5,xAxisLabelPadding:((c=D.quadrantChart)==null?void 0:c.xAxisLabelPadding)||5,yAxisLabelPadding:((g=D.quadrantChart)==null?void 0:g.yAxisLabelPadding)||5,xAxisLabelFontSize:((i=D.quadrantChart)==null?void 0:i.xAxisLabelFontSize)||16,yAxisLabelFontSize:((y=D.quadrantChart)==null?void 0:y.yAxisLabelFontSize)||16,quadrantLabelFontSize:((p=D.quadrantChart)==null?void 0:p.quadrantLabelFontSize)||16,quadrantTextTopPadding:((B=D.quadrantChart)==null?void 0:B.quadrantTextTopPadding)||5,pointTextPadding:((N=D.quadrantChart)==null?void 0:N.pointTextPadding)||5,pointLabelFontSize:((V=D.quadrantChart)==null?void 0:V.pointLabelFontSize)||12,pointRadius:((I=D.quadrantChart)==null?void 0:I.pointRadius)||5,xAxisPosition:((b=D.quadrantChart)==null?void 0:b.xAxisPosition)||"top",yAxisPosition:((M=D.quadrantChart)==null?void 0:M.yAxisPosition)||"left",quadrantInternalBorderStrokeWidth:((X=D.quadrantChart)==null?void 0:X.quadrantInternalBorderStrokeWidth)||1,quadrantExternalBorderStrokeWidth:((C=D.quadrantChart)==null?void 0:C.quadrantExternalBorderStrokeWidth)||2}}getDefaultThemeConfig(){return{quadrant1Fill:R.quadrant1Fill,quadrant2Fill:R.quadrant2Fill,quadrant3Fill:R.quadrant3Fill,quadrant4Fill:R.quadrant4Fill,quadrant1TextFill:R.quadrant1TextFill,quadrant2TextFill:R.quadrant2TextFill,quadrant3TextFill:R.quadrant3TextFill,quadrant4TextFill:R.quadrant4TextFill,quadrantPointFill:R.quadrantPointFill,quadrantPointTextFill:R.quadrantPointTextFill,quadrantXAxisTextFill:R.quadrantXAxisTextFill,quadrantYAxisTextFill:R.quadrantYAxisTextFill,quadrantTitleFill:R.quadrantTitleFill,quadrantInternalBorderStrokeFill:R.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:R.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),ot.info("clear called")}setData(s){this.data={...this.data,...s}}addPoints(s){this.data.points=[...s,...this.data.points]}setConfig(s){ot.trace("setConfig called with: ",s),this.config={...this.config,...s}}setThemeConfig(s){ot.trace("setThemeConfig called with: ",s),this.themeConfig={...this.themeConfig,...s}}calculateSpace(s,h,x,f){const d=this.config.xAxisLabelPadding*2+this.config.xAxisLabelFontSize,c={top:s==="top"&&h?d:0,bottom:s==="bottom"&&h?d:0},g=this.config.yAxisLabelPadding*2+this.config.yAxisLabelFontSize,i={left:this.config.yAxisPosition==="left"&&x?g:0,right:this.config.yAxisPosition==="right"&&x?g:0},y=this.config.titleFontSize+this.config.titlePadding*2,p={top:f?y:0},B=this.config.quadrantPadding+i.left,N=this.config.quadrantPadding+c.top+p.top,V=this.config.chartWidth-this.config.quadrantPadding*2-i.left-i.right,I=this.config.chartHeight-this.config.quadrantPadding*2-c.top-c.bottom-p.top,b=V/2,M=I/2;return{xAxisSpace:c,yAxisSpace:i,titleSpace:p,quadrantSpace:{quadrantLeft:B,quadrantTop:N,quadrantWidth:V,quadrantHalfWidth:b,quadrantHeight:I,quadrantHalfHeight:M}}}getAxisLabels(s,h,x,f){const{quadrantSpace:d,titleSpace:c}=f,{quadrantHalfHeight:g,quadrantHeight:i,quadrantLeft:y,quadrantHalfWidth:p,quadrantTop:B,quadrantWidth:N}=d,V=!!this.data.xAxisRightText,I=!!this.data.yAxisTopText,b=[];return this.data.xAxisLeftText&&h&&b.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:y+(V?p/2:0),y:s==="top"?this.config.xAxisLabelPadding+c.top:this.config.xAxisLabelPadding+B+i+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:V?"center":"left",horizontalPos:"top",rotation:0}),this.data.xAxisRightText&&h&&b.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:y+p+(V?p/2:0),y:s==="top"?this.config.xAxisLabelPadding+c.top:this.config.xAxisLabelPadding+B+i+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:V?"center":"left",horizontalPos:"top",rotation:0}),this.data.yAxisBottomText&&x&&b.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+y+N+this.config.quadrantPadding,y:B+i-(I?g/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:I?"center":"left",horizontalPos:"top",rotation:-90}),this.data.yAxisTopText&&x&&b.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+y+N+this.config.quadrantPadding,y:B+g-(I?g/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:I?"center":"left",horizontalPos:"top",rotation:-90}),b}getQuadrants(s){const{quadrantSpace:h}=s,{quadrantHalfHeight:x,quadrantLeft:f,quadrantHalfWidth:d,quadrantTop:c}=h,g=[{text:{text:this.data.quadrant1Text,fill:this.themeConfig.quadrant1TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:f+d,y:c,width:d,height:x,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:f,y:c,width:d,height:x,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:f,y:c+x,width:d,height:x,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:f+d,y:c+x,width:d,height:x,fill:this.themeConfig.quadrant4Fill}];for(const i of g)i.text.x=i.x+i.width/2,this.data.points.length===0?(i.text.y=i.y+i.height/2,i.text.horizontalPos="middle"):(i.text.y=i.y+this.config.quadrantTextTopPadding,i.text.horizontalPos="top");return g}getQuadrantPoints(s){const{quadrantSpace:h}=s,{quadrantHeight:x,quadrantLeft:f,quadrantTop:d,quadrantWidth:c}=h,g=_t().domain([0,1]).range([f,c+f]),i=_t().domain([0,1]).range([x+d,d]);return this.data.points.map(p=>({x:g(p.x),y:i(p.y),fill:this.themeConfig.quadrantPointFill,radius:this.config.pointRadius,text:{text:p.text,fill:this.themeConfig.quadrantPointTextFill,x:g(p.x),y:i(p.y)+this.config.pointTextPadding,verticalPos:"center",horizontalPos:"top",fontSize:this.config.pointLabelFontSize,rotation:0}}))}getBorders(s){const h=this.config.quadrantExternalBorderStrokeWidth/2,{quadrantSpace:x}=s,{quadrantHalfHeight:f,quadrantHeight:d,quadrantLeft:c,quadrantHalfWidth:g,quadrantTop:i,quadrantWidth:y}=x;return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:c-h,y1:i,x2:c+y+h,y2:i},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:c+y,y1:i+h,x2:c+y,y2:i+d-h},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:c-h,y1:i+d,x2:c+y+h,y2:i+d},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:c,y1:i+h,x2:c,y2:i+d-h},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:c+g,y1:i+h,x2:c+g,y2:i+d-h},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:c+h,y1:i+f,x2:c+y-h,y2:i+f}]}getTitle(s){if(s)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 s=this.config.showXAxis&&!!(this.data.xAxisLeftText||this.data.xAxisRightText),h=this.config.showYAxis&&!!(this.data.yAxisTopText||this.data.yAxisBottomText),x=this.config.showTitle&&!!this.data.titleText,f=this.data.points.length>0?"bottom":this.config.xAxisPosition,d=this.calculateSpace(f,s,h,x);return{points:this.getQuadrantPoints(d),quadrants:this.getQuadrants(d),axisLabels:this.getAxisLabels(f,s,h,d),borderLines:this.getBorders(d),title:this.getTitle(x)}}}const Wt=yt();function G(e){return wt(e.trim(),Wt)}const w=new Vt;function Nt(e){w.setData({quadrant1Text:G(e.text)})}function Ut(e){w.setData({quadrant2Text:G(e.text)})}function Qt(e){w.setData({quadrant3Text:G(e.text)})}function Ht(e){w.setData({quadrant4Text:G(e.text)})}function Mt(e){w.setData({xAxisLeftText:G(e.text)})}function Xt(e){w.setData({xAxisRightText:G(e.text)})}function Ot(e){w.setData({yAxisTopText:G(e.text)})}function Yt(e){w.setData({yAxisBottomText:G(e.text)})}function $t(e,s,h){w.addPoints([{x:s,y:h,text:G(e.text)}])}function jt(e){w.setConfig({chartWidth:e})}function Gt(e){w.setConfig({chartHeight:e})}function Kt(){const e=yt(),{themeVariables:s,quadrantChart:h}=e;return h&&w.setConfig(h),w.setThemeConfig({quadrant1Fill:s.quadrant1Fill,quadrant2Fill:s.quadrant2Fill,quadrant3Fill:s.quadrant3Fill,quadrant4Fill:s.quadrant4Fill,quadrant1TextFill:s.quadrant1TextFill,quadrant2TextFill:s.quadrant2TextFill,quadrant3TextFill:s.quadrant3TextFill,quadrant4TextFill:s.quadrant4TextFill,quadrantPointFill:s.quadrantPointFill,quadrantPointTextFill:s.quadrantPointTextFill,quadrantXAxisTextFill:s.quadrantXAxisTextFill,quadrantYAxisTextFill:s.quadrantYAxisTextFill,quadrantExternalBorderStrokeFill:s.quadrantExternalBorderStrokeFill,quadrantInternalBorderStrokeFill:s.quadrantInternalBorderStrokeFill,quadrantTitleFill:s.quadrantTitleFill}),w.setData({titleText:bt()}),w.build()}const Zt=function(){w.clear(),It()},Jt={setWidth:jt,setHeight:Gt,setQuadrant1Text:Nt,setQuadrant2Text:Ut,setQuadrant3Text:Qt,setQuadrant4Text:Ht,setXAxisLeftText:Mt,setXAxisRightText:Xt,setYAxisTopText:Ot,setYAxisBottomText:Yt,addPoint:$t,getQuadrantData:Kt,clear:Zt,setAccTitle:Lt,getAccTitle:Ct,setDiagramTitle:zt,getDiagramTitle:bt,getAccDescription:Et,setAccDescription:Dt},te=(e,s,h,x)=>{var f,d,c;function g(t){return t==="top"?"hanging":"middle"}function i(t){return t==="left"?"start":"middle"}function y(t){return`translate(${t.x}, ${t.y}) rotate(${t.rotation||0})`}const p=yt();ot.debug(`Rendering quadrant chart
`+e);const B=p.securityLevel;let N;B==="sandbox"&&(N=gt("#i"+s));const I=(B==="sandbox"?gt(N.nodes()[0].contentDocument.body):gt("body")).select(`[id="${s}"]`),b=I.append("g").attr("class","main"),M=((f=p.quadrantChart)==null?void 0:f.chartWidth)||500,X=((d=p.quadrantChart)==null?void 0:d.chartHeight)||500;Bt(I,X,M,((c=p.quadrantChart)==null?void 0:c.useMaxWidth)||!0),I.attr("viewBox","0 0 "+M+" "+X),x.db.setHeight(X),x.db.setWidth(M);const C=x.db.getQuadrantData(),it=b.append("g").attr("class","quadrants"),at=b.append("g").attr("class","border"),nt=b.append("g").attr("class","data-points"),U=b.append("g").attr("class","labels"),Q=b.append("g").attr("class","title");C.title&&Q.append("text").attr("x",0).attr("y",0).attr("fill",C.title.fill).attr("font-size",C.title.fontSize).attr("dominant-baseline",g(C.title.horizontalPos)).attr("text-anchor",i(C.title.verticalPos)).attr("transform",y(C.title)).text(C.title.text),C.borderLines&&at.selectAll("line").data(C.borderLines).enter().append("line").attr("x1",t=>t.x1).attr("y1",t=>t.y1).attr("x2",t=>t.x2).attr("y2",t=>t.y2).style("stroke",t=>t.strokeFill).style("stroke-width",t=>t.strokeWidth);const T=it.selectAll("g.quadrant").data(C.quadrants).enter().append("g").attr("class","quadrant");T.append("rect").attr("x",t=>t.x).attr("y",t=>t.y).attr("width",t=>t.width).attr("height",t=>t.height).attr("fill",t=>t.fill),T.append("text").attr("x",0).attr("y",0).attr("fill",t=>t.text.fill).attr("font-size",t=>t.text.fontSize).attr("dominant-baseline",t=>g(t.text.horizontalPos)).attr("text-anchor",t=>i(t.text.verticalPos)).attr("transform",t=>y(t.text)).text(t=>t.text.text),U.selectAll("g.label").data(C.axisLabels).enter().append("g").attr("class","label").append("text").attr("x",0).attr("y",0).text(t=>t.text).attr("fill",t=>t.fill).attr("font-size",t=>t.fontSize).attr("dominant-baseline",t=>g(t.horizontalPos)).attr("text-anchor",t=>i(t.verticalPos)).attr("transform",t=>y(t));const m=nt.selectAll("g.data-point").data(C.points).enter().append("g").attr("class","data-point");m.append("circle").attr("cx",t=>t.x).attr("cy",t=>t.y).attr("r",t=>t.radius).attr("fill",t=>t.fill),m.append("text").attr("x",0).attr("y",0).text(t=>t.text.text).attr("fill",t=>t.text.fill).attr("font-size",t=>t.text.fontSize).attr("dominant-baseline",t=>g(t.text.horizontalPos)).attr("text-anchor",t=>i(t.text.verticalPos)).attr("transform",t=>y(t.text))},ee={draw:te},de={parser:Rt,db:Jt,renderer:ee,styles:()=>""};export{de as diagram};
#print-content{--un-bg-opacity:1;background-color:rgb(255 255 255 / var(--un-bg-opacity))}.dark #print-content{--un-bg-opacity:1;background-color:rgb(18 18 18 / var(--un-bg-opacity))}.print-slide-container{position:relative;--un-translate-x:0;--un-translate-y:0;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z));break-after:page;overflow:hidden}html.print,html.print body,html.print #app{height:auto;overflow:auto}html.print #page-root{height:auto;overflow:hidden}html.print *{-webkit-print-color-adjust:exact}html.print{width:100%;height:100%;overflow:visible}html.print body{margin:0 auto;border:0;padding:0;float:none;overflow:visible}
.range[data-v-52a29648]{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent}.range[data-v-52a29648]::-webkit-slider-thumb{-webkit-appearance:none;height:100%;width:var(--thumb-width, .5rem)}.range[data-v-52a29648]::-moz-range-thumb{height:100%;width:var(--thumb-width, .5rem)}.slidev-presenter[data-v-d0ba6bbb]{--slidev-controls-foreground: current}.timer-btn[data-v-d0ba6bbb]:hover>:first-child{opacity:0}.timer-btn[data-v-d0ba6bbb]:hover>:last-child{opacity:1}.section-title[data-v-d0ba6bbb]{padding:.5rem 1rem;font-size:1.25rem;line-height:1.75rem}.grid-container[data-v-d0ba6bbb]{background-color:#9ca3af33;height:100%;width:100%;display:grid;gap:1px 1px}.grid-container.layout1[data-v-d0ba6bbb]{grid-template-columns:1fr 1fr;grid-template-rows:2fr 1fr min-content;grid-template-areas:"main main" "note next" "bottom bottom"}.grid-container.layout2[data-v-d0ba6bbb]{grid-template-columns:3fr 2fr;grid-template-rows:2fr 1fr min-content;grid-template-areas:"note main" "note next" "bottom bottom"}@media (max-aspect-ratio: 3/5){.grid-container.layout1[data-v-d0ba6bbb]{grid-template-columns:1fr;grid-template-rows:1fr 1fr 1fr min-content;grid-template-areas:"main" "note" "next" "bottom"}}@media (min-aspect-ratio: 1/1){.grid-container.layout1[data-v-d0ba6bbb]{grid-template-columns:1fr 1.1fr .9fr;grid-template-rows:1fr 2fr min-content;grid-template-areas:"main main next" "main main note" "bottom bottom bottom"}}.progress-bar[data-v-d0ba6bbb]{position:fixed;left:0;right:0;top:0}.grid-section[data-v-d0ba6bbb]{--un-bg-opacity:1;background-color:rgb(255 255 255 / var(--un-bg-opacity))}.dark .grid-section[data-v-d0ba6bbb]{--un-bg-opacity:1;background-color:rgb(18 18 18 / var(--un-bg-opacity))}.grid-section.top[data-v-d0ba6bbb]{grid-area:top}.grid-section.main[data-v-d0ba6bbb]{grid-area:main}.grid-section.next[data-v-d0ba6bbb]{grid-area:next}.grid-section.note[data-v-d0ba6bbb]{grid-area:note}.grid-section.bottom[data-v-d0ba6bbb]{grid-area:bottom}
.slidev-info-dialog{max-width:37.5rem;padding:1rem!important}
import{aL as at,C as lt,D as ot,s as ct,g as ht,b as ut,a as yt,E as ft,d as pt,c as et,l as it,aM as gt,aK as dt,aN as mt,i as _t,aO as H}from"./slidev/5-BKiUV7YW.js";import{d as tt}from"./arc-5aa99581-BU3o1NUK.js";import{o as xt}from"./ordinal-475e0c0c-BmOJQ37o.js";import{a as kt}from"./array-b7dcf730-BKyUJesY.js";import{c as F}from"./path-39bad7e2-CbwjOpE9.js";import"./modules/vue-Dn3czbSS.js";import"./index-D2S1x1Oe.js";import"./modules/shiki-CuMFyo6Z.js";import"./modules/file-saver-EUMWMpoS.js";import"./slidev/default-CY-sqYNf.js";import"./slidev/context-CYh2-pv1.js";import"./init-cc95ec8e-Gi6I4Gst.js";function vt(e,u){return u<e?-1:u>e?1:u>=e?0:NaN}function bt(e){return e}function St(){var e=bt,u=vt,E=null,p=F(0),g=F(H),A=F(0);function y(a){var l,d=(a=kt(a)).length,m,I,T=0,_=new Array(d),v=new Array(d),c=+p.apply(this,arguments),$=Math.min(H,Math.max(-H,g.apply(this,arguments)-c)),O,w=Math.min(Math.abs($)/d,A.apply(this,arguments)),b=w*($<0?-1:1),t;for(l=0;l<d;++l)(t=v[_[l]=l]=+e(a[l],l,a))>0&&(T+=t);for(u!=null?_.sort(function(i,n){return u(v[i],v[n])}):E!=null&&_.sort(function(i,n){return E(a[i],a[n])}),l=0,I=T?($-d*b)/T:0;l<d;++l,c=O)m=_[l],t=v[m],O=c+(t>0?t*I:0)+b,v[m]={data:a[m],index:l,value:t,startAngle:c,endAngle:O,padAngle:w};return v}return y.value=function(a){return arguments.length?(e=typeof a=="function"?a:F(+a),y):e},y.sortValues=function(a){return arguments.length?(u=a,E=null,y):u},y.sort=function(a){return arguments.length?(E=a,u=null,y):E},y.startAngle=function(a){return arguments.length?(p=typeof a=="function"?a:F(+a),y):p},y.endAngle=function(a){return arguments.length?(g=typeof a=="function"?a:F(+a),y):g},y.padAngle=function(a){return arguments.length?(A=typeof a=="function"?a:F(+a),y):A},y}var J=function(){var e=function(b,t,i,n){for(i=i||{},n=b.length;n--;i[b[n]]=t);return i},u=[1,3],E=[1,4],p=[1,5],g=[1,6],A=[1,10,12,14,16,18,19,20,21,22],y=[2,4],a=[1,5,10,12,14,16,18,19,20,21,22],l=[20,21,22],d=[2,7],m=[1,12],I=[1,13],T=[1,14],_=[1,15],v=[1,16],c=[1,17],$={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,PIE:5,document:6,showData:7,line:8,statement:9,txt:10,value:11,title:12,title_value:13,acc_title:14,acc_title_value:15,acc_descr:16,acc_descr_value:17,acc_descr_multiline_value:18,section:19,NEWLINE:20,";":21,EOF:22,$accept:0,$end:1},terminals_:{2:"error",5:"PIE",7:"showData",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:"NEWLINE",21:";",22:"EOF"},productions_:[0,[3,2],[3,2],[3,3],[6,0],[6,2],[8,2],[9,0],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[4,1],[4,1],[4,1]],performAction:function(t,i,n,r,o,s,P){var x=s.length-1;switch(o){case 3:r.setShowData(!0);break;case 6:this.$=s[x-1];break;case 8:r.addSection(s[x-1],r.cleanupValue(s[x]));break;case 9:this.$=s[x].trim(),r.setDiagramTitle(this.$);break;case 10:this.$=s[x].trim(),r.setAccTitle(this.$);break;case 11:case 12:this.$=s[x].trim(),r.setAccDescription(this.$);break;case 13:r.addSection(s[x].substr(8)),this.$=s[x].substr(8);break}},table:[{3:1,4:2,5:u,20:E,21:p,22:g},{1:[3]},{3:7,4:2,5:u,20:E,21:p,22:g},e(A,y,{6:8,7:[1,9]}),e(a,[2,14]),e(a,[2,15]),e(a,[2,16]),{1:[2,1]},e(l,d,{8:10,9:11,1:[2,2],10:m,12:I,14:T,16:_,18:v,19:c}),e(A,y,{6:18}),e(A,[2,5]),{4:19,20:E,21:p,22:g},{11:[1,20]},{13:[1,21]},{15:[1,22]},{17:[1,23]},e(l,[2,12]),e(l,[2,13]),e(l,d,{8:10,9:11,1:[2,3],10:m,12:I,14:T,16:_,18:v,19:c}),e(A,[2,6]),e(l,[2,8]),e(l,[2,9]),e(l,[2,10]),e(l,[2,11])],defaultActions:{7:[2,1]},parseError:function(t,i){if(i.recoverable)this.trace(t);else{var n=new Error(t);throw n.hash=i,n}},parse:function(t){var i=this,n=[0],r=[],o=[null],s=[],P=this.table,x="",f=0,V=0,R=2,M=1,B=s.slice.call(arguments,1),h=Object.create(this.lexer),N={yy:{}};for(var Y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Y)&&(N.yy[Y]=this.yy[Y]);h.setInput(t,N.yy),N.yy.lexer=h,N.yy.parser=this,typeof h.yylloc>"u"&&(h.yylloc={});var K=h.yylloc;s.push(K);var st=h.options&&h.options.ranges;typeof N.yy.parseError=="function"?this.parseError=N.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function rt(){var C;return C=r.pop()||h.lex()||M,typeof C!="number"&&(C instanceof Array&&(r=C,C=r.pop()),C=i.symbols_[C]||C),C}for(var k,L,S,Z,z={},j,D,X,W;;){if(L=n[n.length-1],this.defaultActions[L]?S=this.defaultActions[L]:((k===null||typeof k>"u")&&(k=rt()),S=P[L]&&P[L][k]),typeof S>"u"||!S.length||!S[0]){var q="";W=[];for(j in P[L])this.terminals_[j]&&j>R&&W.push("'"+this.terminals_[j]+"'");h.showPosition?q="Parse error on line "+(f+1)+`:
`+h.showPosition()+`
Expecting `+W.join(", ")+", got '"+(this.terminals_[k]||k)+"'":q="Parse error on line "+(f+1)+": Unexpected "+(k==M?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(q,{text:h.match,token:this.terminals_[k]||k,line:h.yylineno,loc:K,expected:W})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+L+", token: "+k);switch(S[0]){case 1:n.push(k),o.push(h.yytext),s.push(h.yylloc),n.push(S[1]),k=null,V=h.yyleng,x=h.yytext,f=h.yylineno,K=h.yylloc;break;case 2:if(D=this.productions_[S[1]][1],z.$=o[o.length-D],z._$={first_line:s[s.length-(D||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(D||1)].first_column,last_column:s[s.length-1].last_column},st&&(z._$.range=[s[s.length-(D||1)].range[0],s[s.length-1].range[1]]),Z=this.performAction.apply(z,[x,V,f,N.yy,S[1],o,s].concat(B)),typeof Z<"u")return Z;D&&(n=n.slice(0,-1*D*2),o=o.slice(0,-1*D),s=s.slice(0,-1*D)),n.push(this.productions_[S[1]][0]),o.push(z.$),s.push(z._$),X=P[n[n.length-2]][n[n.length-1]],n.push(X);break;case 3:return!0}}return!0}},O=function(){var b={EOF:1,parseError:function(i,n){if(this.yy.parser)this.yy.parser.parseError(i,n);else throw new Error(i)},setInput:function(t,i){return this.yy=i||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 i=t.match(/(?:\r\n?|\n).*/g);return i?(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 i=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i),this.offset-=i;var r=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 o=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===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-i},this.options.ranges&&(this.yylloc.range=[o[0],o[0]+this.yyleng-i]),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(),i=new Array(t.length+1).join("-");return t+this.upcomingInput()+`
`+i+"^"},test_match:function(t,i){var n,r,o;if(this.options.backtrack_lexer&&(o={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&&(o.yylloc.range=this.yylloc.range.slice(0))),r=t[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.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],n=this.performAction.call(this,this.yy,this,i,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var s in o)this[s]=o[s];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var t,i,n,r;this._more||(this.yytext="",this.match="");for(var o=this._currentRules(),s=0;s<o.length;s++)if(n=this._input.match(this.rules[o[s]]),n&&(!i||n[0].length>i[0].length)){if(i=n,r=s,this.options.backtrack_lexer){if(t=this.test_match(n,o[s]),t!==!1)return t;if(this._backtrack){i=!1;continue}else return!1}else if(!this.options.flex)break}return i?(t=this.test_match(i,o[r]),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 i=this.next();return i||this.lex()},begin:function(i){this.conditionStack.push(i)},popState:function(){var i=this.conditionStack.length-1;return i>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(i){return i=this.conditionStack.length-1-Math.abs(i||0),i>=0?this.conditionStack[i]:"INITIAL"},pushState:function(i){this.begin(i)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(i,n,r,o){switch(r){case 0:break;case 1:break;case 2:return 20;case 3:break;case 4:break;case 5:return this.begin("title"),12;case 6:return this.popState(),"title_value";case 7:return this.begin("acc_title"),14;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),16;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:this.begin("string");break;case 15:this.popState();break;case 16:return"txt";case 17:return 5;case 18:return 7;case 19:return"value";case 20:return 22}},rules:[/^(?:%%(?!\{)[^\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:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},title:{rules:[6],inclusive:!1},string:{rules:[15,16],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,7,9,11,14,17,18,19,20],inclusive:!0}}};return b}();$.lexer=O;function w(){this.yy={}}return w.prototype=$,$.Parser=w,new w}();J.parser=J;const Et=J,nt=at.pie,G={sections:{},showData:!1,config:nt};let U=G.sections,Q=G.showData;const At=structuredClone(nt),$t=()=>structuredClone(At),wt=()=>{U=structuredClone(G.sections),Q=G.showData,ft()},Tt=(e,u)=>{e=pt(e,et()),U[e]===void 0&&(U[e]=u,it.debug(`added new section: ${e}, with value: ${u}`))},It=()=>U,Dt=e=>(e.substring(0,1)===":"&&(e=e.substring(1).trim()),Number(e.trim())),Ct=e=>{Q=e},Ot=()=>Q,Pt={getConfig:$t,clear:wt,setDiagramTitle:lt,getDiagramTitle:ot,setAccTitle:ct,getAccTitle:ht,setAccDescription:ut,getAccDescription:yt,addSection:Tt,getSections:It,cleanupValue:Dt,setShowData:Ct,getShowData:Ot},Vt=e=>`
.pieCircle{
stroke: ${e.pieStrokeColor};
stroke-width : ${e.pieStrokeWidth};
opacity : ${e.pieOpacity};
}
.pieOuterCircle{
stroke: ${e.pieOuterStrokeColor};
stroke-width: ${e.pieOuterStrokeWidth};
fill: none;
}
.pieTitleText {
text-anchor: middle;
font-size: ${e.pieTitleTextSize};
fill: ${e.pieTitleTextColor};
font-family: ${e.fontFamily};
}
.slice {
font-family: ${e.fontFamily};
fill: ${e.pieSectionTextColor};
font-size:${e.pieSectionTextSize};
// fill: white;
}
.legend text {
fill: ${e.pieLegendTextColor};
font-family: ${e.fontFamily};
font-size: ${e.pieLegendTextSize};
}
`,Nt=Vt,Lt=e=>{const u=Object.entries(e).map(p=>({label:p[0],value:p[1]})).sort((p,g)=>g.value-p.value);return St().value(p=>p.value)(u)},Ft=(e,u,E,p)=>{it.debug(`rendering pie chart
`+e);const g=p.db,A=et(),y=gt(g.getConfig(),A.pie),a=40,l=18,d=4,m=450,I=m,T=dt(u),_=T.append("g"),v=g.getSections();_.attr("transform","translate("+I/2+","+m/2+")");const{themeVariables:c}=A;let[$]=mt(c.pieOuterStrokeWidth);$??($=2);const O=y.textPosition,w=Math.min(I,m)/2-a,b=tt().innerRadius(0).outerRadius(w),t=tt().innerRadius(w*O).outerRadius(w*O);_.append("circle").attr("cx",0).attr("cy",0).attr("r",w+$/2).attr("class","pieOuterCircle");const i=Lt(v),n=[c.pie1,c.pie2,c.pie3,c.pie4,c.pie5,c.pie6,c.pie7,c.pie8,c.pie9,c.pie10,c.pie11,c.pie12],r=xt(n);_.selectAll("mySlices").data(i).enter().append("path").attr("d",b).attr("fill",f=>r(f.data.label)).attr("class","pieCircle");let o=0;Object.keys(v).forEach(f=>{o+=v[f]}),_.selectAll("mySlices").data(i).enter().append("text").text(f=>(f.data.value/o*100).toFixed(0)+"%").attr("transform",f=>"translate("+t.centroid(f)+")").style("text-anchor","middle").attr("class","slice"),_.append("text").text(g.getDiagramTitle()).attr("x",0).attr("y",-(m-50)/2).attr("class","pieTitleText");const s=_.selectAll(".legend").data(r.domain()).enter().append("g").attr("class","legend").attr("transform",(f,V)=>{const R=l+d,M=R*r.domain().length/2,B=12*l,h=V*R-M;return"translate("+B+","+h+")"});s.append("rect").attr("width",l).attr("height",l).style("fill",r).style("stroke",r),s.data(i).append("text").attr("x",l+d).attr("y",l-d).text(f=>{const{label:V,value:R}=f.data;return g.getShowData()?`${V} [${R}]`:V});const P=Math.max(...s.selectAll("text").nodes().map(f=>(f==null?void 0:f.getBoundingClientRect().width)??0)),x=I+a+l+d+P;T.attr("viewBox",`0 0 ${x} ${m}`),_t(T,m,x,y.useMaxWidth)},Rt={draw:Ft},Jt={parser:Et,db:Pt,renderer:Rt,styles:Nt};export{Jt as diagram};
const c=Math.PI,x=2*c,u=1e-6,m=x-u;function E(e){this._+=e[0];for(let t=1,h=e.length;t<h;++t)this._+=arguments[t]+e[t]}function A(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return E;const h=10**t;return function(i){this._+=i[0];for(let s=1,n=i.length;s<n;++s)this._+=Math.round(arguments[s]*h)/h+i[s]}}class L{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?E:A(t)}moveTo(t,h){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+h}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,h){this._append`L${this._x1=+t},${this._y1=+h}`}quadraticCurveTo(t,h,i,s){this._append`Q${+t},${+h},${this._x1=+i},${this._y1=+s}`}bezierCurveTo(t,h,i,s,n,$){this._append`C${+t},${+h},${+i},${+s},${this._x1=+n},${this._y1=+$}`}arcTo(t,h,i,s,n){if(t=+t,h=+h,i=+i,s=+s,n=+n,n<0)throw new Error(`negative radius: ${n}`);let $=this._x1,r=this._y1,p=i-t,l=s-h,_=$-t,o=r-h,a=_*_+o*o;if(this._x1===null)this._append`M${this._x1=t},${this._y1=h}`;else if(a>u)if(!(Math.abs(o*p-l*_)>u)||!n)this._append`L${this._x1=t},${this._y1=h}`;else{let d=i-$,f=s-r,y=p*p+l*l,T=d*d+f*f,g=Math.sqrt(y),v=Math.sqrt(a),w=n*Math.tan((c-Math.acos((y+a-T)/(2*g*v)))/2),M=w/v,b=w/g;Math.abs(M-1)>u&&this._append`L${t+M*_},${h+M*o}`,this._append`A${n},${n},0,0,${+(o*d>_*f)},${this._x1=t+b*p},${this._y1=h+b*l}`}}arc(t,h,i,s,n,$){if(t=+t,h=+h,i=+i,$=!!$,i<0)throw new Error(`negative radius: ${i}`);let r=i*Math.cos(s),p=i*Math.sin(s),l=t+r,_=h+p,o=1^$,a=$?s-n:n-s;this._x1===null?this._append`M${l},${_}`:(Math.abs(this._x1-l)>u||Math.abs(this._y1-_)>u)&&this._append`L${l},${_}`,i&&(a<0&&(a=a%x+x),a>m?this._append`A${i},${i},0,1,${o},${t-r},${h-p}A${i},${i},0,1,${o},${this._x1=l},${this._y1=_}`:a>u&&this._append`A${i},${i},0,${+(a>=c)},${o},${this._x1=t+i*Math.cos(n)},${this._y1=h+i*Math.sin(n)}`)}rect(t,h,i,s){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+h}h${i=+i}v${+s}h${-i}Z`}toString(){return this._}}function P(e){return function(){return e}}function q(e){let t=3;return e.digits=function(h){if(!arguments.length)return t;if(h==null)t=null;else{const i=Math.floor(h);if(!(i>=0))throw new RangeError(`invalid digits: ${h}`);t=i}return e},()=>new L(t)}export{P as c,q as w};
import{i as a}from"./init-cc95ec8e-Gi6I4Gst.js";class o extends Map{constructor(t,n=g){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,s]of t)this.set(r,s)}get(t){return super.get(c(this,t))}has(t){return super.has(c(this,t))}set(t,n){return super.set(l(this,t),n)}delete(t){return super.delete(p(this,t))}}function c({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function l({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function p({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function g(e){return e!==null&&typeof e=="object"?e.valueOf():e}const f=Symbol("implicit");function h(){var e=new o,t=[],n=[],r=f;function s(i){let u=e.get(i);if(u===void 0){if(r!==f)return r;e.set(i,u=t.push(i)-1)}return n[u%n.length]}return s.domain=function(i){if(!arguments.length)return t.slice();t=[],e=new o;for(const u of i)e.has(u)||e.set(u,t.push(u)-1);return s},s.range=function(i){return arguments.length?(n=Array.from(i),s):n.slice()},s.unknown=function(i){return arguments.length?(r=i,s):r},s.copy=function(){return h(t,n).unknown(r)},a.apply(s,arguments),s}export{h as o};
/**
* @vue/shared v3.4.21
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function Ue(e,t){const n=new Set(e.split(","));return t?s=>n.has(s.toLowerCase()):s=>n.has(s)}const me=Object.freeze({}),ms=Object.freeze([]),Me=()=>{},fr=()=>!1,nn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Sr=e=>e.startsWith("onUpdate:"),ce=Object.assign,Kl=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},fm=Object.prototype.hasOwnProperty,de=(e,t)=>fm.call(e,t),H=Array.isArray,Jn=e=>Ls(e)==="[object Map]",as=e=>Ls(e)==="[object Set]",hc=e=>Ls(e)==="[object Date]",dm=e=>Ls(e)==="[object RegExp]",Q=e=>typeof e=="function",ee=e=>typeof e=="string",kt=e=>typeof e=="symbol",he=e=>e!==null&&typeof e=="object",Yr=e=>(he(e)||Q(e))&&Q(e.then)&&Q(e.catch),uf=Object.prototype.toString,Ls=e=>uf.call(e),ql=e=>Ls(e).slice(8,-1),ff=e=>Ls(e)==="[object Object]",Wl=e=>ee(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Cn=Ue(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),df=Ue("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),Jr=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},pm=/-(\w)/g,Ie=Jr(e=>e.replace(pm,(t,n)=>n?n.toUpperCase():"")),hm=/\B([A-Z])/g,Xe=Jr(e=>e.replace(hm,"-$1").toLowerCase()),Ut=Jr(e=>e.charAt(0).toUpperCase()+e.slice(1)),Dt=Jr(e=>e?`on${Ut(e)}`:""),Pt=(e,t)=>!Object.is(e,t),_n=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},wr=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},fi=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Er=e=>{const t=ee(e)?Number(e):NaN;return isNaN(t)?e:t};let mc;const zl=()=>mc||(mc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),jt={1:"TEXT",2:"CLASS",4:"STYLE",8:"PROPS",16:"FULL_PROPS",32:"NEED_HYDRATION",64:"STABLE_FRAGMENT",128:"KEYED_FRAGMENT",256:"UNKEYED_FRAGMENT",512:"NEED_PATCH",1024:"DYNAMIC_SLOTS",2048:"DEV_ROOT_FRAGMENT",[-1]:"HOISTED",[-2]:"BAIL"},mm={1:"STABLE",2:"DYNAMIC",3:"FORWARDED"},gm="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error",ym=Ue(gm),gc=2;function vm(e,t=0,n=e.length){let s=e.split(/(\r?\n)/);const i=s.filter((l,a)=>a%2===1);s=s.filter((l,a)=>a%2===0);let r=0;const o=[];for(let l=0;l<s.length;l++)if(r+=s[l].length+(i[l]&&i[l].length||0),r>=t){for(let a=l-gc;a<=l+gc||n>r;a++){if(a<0||a>=s.length)continue;const c=a+1;o.push(`${c}${" ".repeat(Math.max(3-String(c).length,0))}| ${s[a]}`);const f=s[a].length,u=i[a]&&i[a].length||0;if(a===l){const d=t-(r-(f+u)),p=Math.max(1,n>r?f-d:n-t);o.push(" | "+" ".repeat(d)+"^".repeat(p))}else if(a>l){if(n>r){const d=Math.max(Math.min(n-r,f),1);o.push(" | "+"^".repeat(d))}r+=f+u}}break}return o.join(`
`)}function Ds(e){if(H(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],i=ee(s)?pf(s):Ds(s);if(i)for(const r in i)t[r]=i[r]}return t}else if(ee(e)||he(e))return e}const bm=/;(?![^(]*\))/g,_m=/:([^]+)/,Sm=/\/\*[^]*?\*\//g;function pf(e){const t={};return e.replace(Sm,"").split(bm).forEach(n=>{if(n){const s=n.split(_m);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function wm(e){let t="";if(!e||ee(e))return t;for(const n in e){const s=e[n],i=n.startsWith("--")?n:Xe(n);(ee(s)||typeof s=="number")&&(t+=`${i}:${s};`)}return t}function Vs(e){let t="";if(ee(e))t=e;else if(H(e))for(let n=0;n<e.length;n++){const s=Vs(e[n]);s&&(t+=s+" ")}else if(he(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Em(e){if(!e)return null;let{class:t,style:n}=e;return t&&!ee(t)&&(e.class=Vs(t)),n&&(e.style=Ds(n)),e}const Cm="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",Tm="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",xm="annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics",Om="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",Gl=Ue(Cm),hf=Ue(Tm),mf=Ue(xm),Am=Ue(Om),gf="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Rm=Ue(gf),yc=Ue(gf+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");function Yl(e){return!!e||e===""}const Im=Ue("accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap"),Nm=Ue("xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xmlns:xlink,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan");function km(e){if(e==null)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"}function Pm(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=Nn(e[s],t[s]);return n}function Nn(e,t){if(e===t)return!0;let n=hc(e),s=hc(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=kt(e),s=kt(t),n||s)return e===t;if(n=H(e),s=H(t),n||s)return n&&s?Pm(e,t):!1;if(n=he(e),s=he(t),n||s){if(!n||!s)return!1;const i=Object.keys(e).length,r=Object.keys(t).length;if(i!==r)return!1;for(const o in e){const l=e.hasOwnProperty(o),a=t.hasOwnProperty(o);if(l&&!a||!l&&a||!Nn(e[o],t[o]))return!1}}return String(e)===String(t)}function Xr(e,t){return e.findIndex(n=>Nn(n,t))}const Mm=e=>ee(e)?e:e==null?"":H(e)||he(e)&&(e.toString===uf||!Q(e.toString))?JSON.stringify(e,yf,2):String(e),yf=(e,t)=>t&&t.__v_isRef?yf(e,t.value):Jn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,i],r)=>(n[Eo(s,r)+" =>"]=i,n),{})}:as(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Eo(n))}:kt(t)?Eo(t):he(t)&&!H(t)&&!ff(t)?String(t):t,Eo=(e,t="")=>{var n;return kt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
* @vue/reactivity v3.4.21
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function Kt(e,...t){console.warn(`[Vue warn] ${e}`,...t)}let pt;class Jl{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=pt,!t&&pt&&(this.index=(pt.scopes||(pt.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=pt;try{return pt=this,t()}finally{pt=n}}else Kt("cannot run an inactive effect scope.")}on(){pt=this}off(){pt=this.parent}stop(t){if(this._active){let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.scopes)for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0,this._active=!1}}}function vf(e){return new Jl(e)}function bf(e,t=pt){t&&t.active&&t.effects.push(e)}function Xl(){return pt}function _f(e){pt?pt.cleanups.push(e):Kt("onScopeDispose() is called when there is no active effect scope to be associated with.")}let Xn;class Cs{constructor(t,n,s,i){this.fn=t,this.trigger=n,this.scheduler=s,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,bf(this,i)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,$n();for(let t=0;t<this._depsLength;t++){const n=this.deps[t];if(n.computed&&($m(n.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),Fn()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Tn,n=Xn;try{return Tn=!0,Xn=this,this._runnings++,vc(this),this.fn()}finally{bc(this),this._runnings--,Xn=n,Tn=t}}stop(){var t;this.active&&(vc(this),bc(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function $m(e){return e.value}function vc(e){e._trackId++,e._depsLength=0}function bc(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)Sf(e.deps[t],e);e.deps.length=e._depsLength}}function Sf(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}function Fm(e,t){e.effect instanceof Cs&&(e=e.effect.fn);const n=new Cs(e,Me,()=>{n.dirty&&n.run()});t&&(ce(n,t),t.scope&&bf(n,t.scope)),(!t||!t.lazy)&&n.run();const s=n.run.bind(n);return s.effect=n,s}function Lm(e){e.effect.stop()}let Tn=!0,Go=0;const wf=[];function $n(){wf.push(Tn),Tn=!1}function Fn(){const e=wf.pop();Tn=e===void 0?!0:e}function Ql(){Go++}function Zl(){for(Go--;!Go&&Yo.length;)Yo.shift()()}function Ef(e,t,n){var s;if(t.get(e)!==e._trackId){t.set(e,e._trackId);const i=e.deps[e._depsLength];i!==t?(i&&Sf(i,e),e.deps[e._depsLength++]=t):e._depsLength++,(s=e.onTrack)==null||s.call(e,ce({effect:e},n))}}const Yo=[];function Cf(e,t,n){var s;Ql();for(const i of e.keys()){let r;i._dirtyLevel<t&&(r??(r=e.get(i)===i._trackId))&&(i._shouldSchedule||(i._shouldSchedule=i._dirtyLevel===0),i._dirtyLevel=t),i._shouldSchedule&&(r??(r=e.get(i)===i._trackId))&&((s=i.onTrigger)==null||s.call(i,ce({effect:i},n)),i.trigger(),(!i._runnings||i.allowRecurse)&&i._dirtyLevel!==2&&(i._shouldSchedule=!1,i.scheduler&&Yo.push(i.scheduler)))}Zl()}const Tf=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},Cr=new WeakMap,Qn=Symbol("iterate"),Jo=Symbol("Map key iterate");function tt(e,t,n){if(Tn&&Xn){let s=Cr.get(e);s||Cr.set(e,s=new Map);let i=s.get(n);i||s.set(n,i=Tf(()=>s.delete(n))),Ef(Xn,i,{target:e,type:t,key:n})}}function Bt(e,t,n,s,i,r){const o=Cr.get(e);if(!o)return;let l=[];if(t==="clear")l=[...o.values()];else if(n==="length"&&H(e)){const a=Number(s);o.forEach((c,f)=>{(f==="length"||!kt(f)&&f>=a)&&l.push(c)})}else switch(n!==void 0&&l.push(o.get(n)),t){case"add":H(e)?Wl(n)&&l.push(o.get("length")):(l.push(o.get(Qn)),Jn(e)&&l.push(o.get(Jo)));break;case"delete":H(e)||(l.push(o.get(Qn)),Jn(e)&&l.push(o.get(Jo)));break;case"set":Jn(e)&&l.push(o.get(Qn));break}Ql();for(const a of l)a&&Cf(a,4,{target:e,type:t,key:n,newValue:s,oldValue:i,oldTarget:r});Zl()}function Dm(e,t){var n;return(n=Cr.get(e))==null?void 0:n.get(t)}const Vm=Ue("__proto__,__v_isRef,__isVue"),xf=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(kt)),_c=jm();function jm(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=se(this);for(let r=0,o=this.length;r<o;r++)tt(s,"get",r+"");const i=s[t](...n);return i===-1||i===!1?s[t](...n.map(se)):i}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){$n(),Ql();const s=se(this)[t].apply(this,n);return Zl(),Fn(),s}}),e}function Bm(e){const t=se(this);return tt(t,"has",e),t.hasOwnProperty(e)}class Of{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){const i=this._isReadonly,r=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return r;if(n==="__v_raw")return s===(i?r?Mf:Pf:r?kf:Nf).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const o=H(t);if(!i){if(o&&de(_c,n))return Reflect.get(_c,n,s);if(n==="hasOwnProperty")return Bm}const l=Reflect.get(t,n,s);return(kt(n)?xf.has(n):Vm(n))||(i||tt(t,"get",n),r)?l:Te(l)?o&&Wl(n)?l:l.value:he(l)?i?Rt(l):it(l):l}}class Af extends Of{constructor(t=!1){super(!1,t)}set(t,n,s,i){let r=t[n];if(!this._isShallow){const a=sn(r);if(!On(s)&&!sn(s)&&(r=se(r),s=se(s)),!H(t)&&Te(r)&&!Te(s))return a?!1:(r.value=s,!0)}const o=H(t)&&Wl(n)?Number(n)<t.length:de(t,n),l=Reflect.set(t,n,s,i);return t===se(i)&&(o?Pt(s,r)&&Bt(t,"set",n,s,r):Bt(t,"add",n,s)),l}deleteProperty(t,n){const s=de(t,n),i=t[n],r=Reflect.deleteProperty(t,n);return r&&s&&Bt(t,"delete",n,void 0,i),r}has(t,n){const s=Reflect.has(t,n);return(!kt(n)||!xf.has(n))&&tt(t,"has",n),s}ownKeys(t){return tt(t,"iterate",H(t)?"length":Qn),Reflect.ownKeys(t)}}class Rf extends Of{constructor(t=!1){super(!0,t)}set(t,n){return Kt(`Set operation on key "${String(n)}" failed: target is readonly.`,t),!0}deleteProperty(t,n){return Kt(`Delete operation on key "${String(n)}" failed: target is readonly.`,t),!0}}const Hm=new Af,Um=new Rf,Km=new Af(!0),qm=new Rf(!0),ea=e=>e,Qr=e=>Reflect.getPrototypeOf(e);function zi(e,t,n=!1,s=!1){e=e.__v_raw;const i=se(e),r=se(t);n||(Pt(t,r)&&tt(i,"get",t),tt(i,"get",r));const{has:o}=Qr(i),l=s?ea:n?sa:pi;if(o.call(i,t))return l(e.get(t));if(o.call(i,r))return l(e.get(r));e!==i&&e.get(t)}function Gi(e,t=!1){const n=this.__v_raw,s=se(n),i=se(e);return t||(Pt(e,i)&&tt(s,"has",e),tt(s,"has",i)),e===i?n.has(e):n.has(e)||n.has(i)}function Yi(e,t=!1){return e=e.__v_raw,!t&&tt(se(e),"iterate",Qn),Reflect.get(e,"size",e)}function Sc(e){e=se(e);const t=se(this);return Qr(t).has.call(t,e)||(t.add(e),Bt(t,"add",e,e)),this}function wc(e,t){t=se(t);const n=se(this),{has:s,get:i}=Qr(n);let r=s.call(n,e);r?If(n,s,e):(e=se(e),r=s.call(n,e));const o=i.call(n,e);return n.set(e,t),r?Pt(t,o)&&Bt(n,"set",e,t,o):Bt(n,"add",e,t),this}function Ec(e){const t=se(this),{has:n,get:s}=Qr(t);let i=n.call(t,e);i?If(t,n,e):(e=se(e),i=n.call(t,e));const r=s?s.call(t,e):void 0,o=t.delete(e);return i&&Bt(t,"delete",e,void 0,r),o}function Cc(){const e=se(this),t=e.size!==0,n=Jn(e)?new Map(e):new Set(e),s=e.clear();return t&&Bt(e,"clear",void 0,void 0,n),s}function Ji(e,t){return function(s,i){const r=this,o=r.__v_raw,l=se(o),a=t?ea:e?sa:pi;return!e&&tt(l,"iterate",Qn),o.forEach((c,f)=>s.call(i,a(c),a(f),r))}}function Xi(e,t,n){return function(...s){const i=this.__v_raw,r=se(i),o=Jn(r),l=e==="entries"||e===Symbol.iterator&&o,a=e==="keys"&&o,c=i[e](...s),f=n?ea:t?sa:pi;return!t&&tt(r,"iterate",a?Jo:Qn),{next(){const{value:u,done:d}=c.next();return d?{value:u,done:d}:{value:l?[f(u[0]),f(u[1])]:f(u),done:d}},[Symbol.iterator](){return this}}}}function cn(e){return function(...t){{const n=t[0]?`on key "${t[0]}" `:"";Kt(`${Ut(e)} operation ${n}failed: target is readonly.`,se(this))}return e==="delete"?!1:e==="clear"?void 0:this}}function Wm(){const e={get(r){return zi(this,r)},get size(){return Yi(this)},has:Gi,add:Sc,set:wc,delete:Ec,clear:Cc,forEach:Ji(!1,!1)},t={get(r){return zi(this,r,!1,!0)},get size(){return Yi(this)},has:Gi,add:Sc,set:wc,delete:Ec,clear:Cc,forEach:Ji(!1,!0)},n={get(r){return zi(this,r,!0)},get size(){return Yi(this,!0)},has(r){return Gi.call(this,r,!0)},add:cn("add"),set:cn("set"),delete:cn("delete"),clear:cn("clear"),forEach:Ji(!0,!1)},s={get(r){return zi(this,r,!0,!0)},get size(){return Yi(this,!0)},has(r){return Gi.call(this,r,!0)},add:cn("add"),set:cn("set"),delete:cn("delete"),clear:cn("clear"),forEach:Ji(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{e[r]=Xi(r,!1,!1),n[r]=Xi(r,!0,!1),t[r]=Xi(r,!1,!0),s[r]=Xi(r,!0,!0)}),[e,n,t,s]}const[zm,Gm,Ym,Jm]=Wm();function Zr(e,t){const n=t?e?Jm:Ym:e?Gm:zm;return(s,i,r)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?s:Reflect.get(de(n,i)&&i in s?n:s,i,r)}const Xm={get:Zr(!1,!1)},Qm={get:Zr(!1,!0)},Zm={get:Zr(!0,!1)},eg={get:Zr(!0,!0)};function If(e,t,n){const s=se(n);if(s!==n&&t.call(e,s)){const i=ql(e);Kt(`Reactive ${i} contains both the raw and reactive versions of the same object${i==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}const Nf=new WeakMap,kf=new WeakMap,Pf=new WeakMap,Mf=new WeakMap;function tg(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ng(e){return e.__v_skip||!Object.isExtensible(e)?0:tg(ql(e))}function it(e){return sn(e)?e:eo(e,!1,Hm,Xm,Nf)}function ta(e){return eo(e,!1,Km,Qm,kf)}function Rt(e){return eo(e,!0,Um,Zm,Pf)}function qn(e){return eo(e,!0,qm,eg,Mf)}function eo(e,t,n,s,i){if(!he(e))return Kt(`value cannot be made reactive: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=i.get(e);if(r)return r;const o=ng(e);if(o===0)return e;const l=new Proxy(e,o===2?s:n);return i.set(e,l),l}function xn(e){return sn(e)?xn(e.__v_raw):!!(e&&e.__v_isReactive)}function sn(e){return!!(e&&e.__v_isReadonly)}function On(e){return!!(e&&e.__v_isShallow)}function di(e){return xn(e)||sn(e)}function se(e){const t=e&&e.__v_raw;return t?se(t):e}function na(e){return Object.isExtensible(e)&&wr(e,"__v_skip",!0),e}const pi=e=>he(e)?it(e):e,sa=e=>he(e)?Rt(e):e,sg="Computed is still dirty after getter evaluation, likely because a computed is mutating its own dependency in its getter. State mutations in computed getters should be avoided. Check the docs for more details: https://vuejs.org/guide/essentials/computed.html#getters-should-be-side-effect-free";class $f{constructor(t,n,s,i){this.getter=t,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Cs(()=>t(this._value),()=>gs(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=s}get value(){const t=se(this);return(!t._cacheable||t.effect.dirty)&&Pt(t._value,t._value=t.effect.run())&&gs(t,4),ia(t),t.effect._dirtyLevel>=2&&(this._warnRecursive&&Kt(sg,`
getter: `,this.getter),gs(t,2)),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function ig(e,t,n=!1){let s,i;const r=Q(e);r?(s=e,i=()=>{Kt("Write operation failed: computed value is readonly")}):(s=e.get,i=e.set);const o=new $f(s,i,r||!i,n);return t&&!n&&(o.effect.onTrack=t.onTrack,o.effect.onTrigger=t.onTrigger),o}function ia(e){var t;Tn&&Xn&&(e=se(e),Ef(Xn,(t=e.dep)!=null?t:e.dep=Tf(()=>e.dep=void 0,e instanceof $f?e:void 0),{target:e,type:"get",key:"value"}))}function gs(e,t=4,n){e=se(e);const s=e.dep;s&&Cf(s,t,{target:e,type:"set",key:"value",newValue:n})}function Te(e){return!!(e&&e.__v_isRef===!0)}function ne(e){return Ff(e,!1)}function ra(e){return Ff(e,!0)}function Ff(e,t){return Te(e)?e:new rg(e,t)}class rg{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:se(t),this._value=n?t:pi(t)}get value(){return ia(this),this._value}set value(t){const n=this.__v_isShallow||On(t)||sn(t);t=n?t:se(t),Pt(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:pi(t),gs(this,4,t))}}function og(e){gs(e,4,e.value)}function Ze(e){return Te(e)?e.value:e}function lg(e){return Q(e)?e():Ze(e)}const ag={get:(e,t,n)=>Ze(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const i=e[t];return Te(i)&&!Te(n)?(i.value=n,!0):Reflect.set(e,t,n,s)}};function oa(e){return xn(e)?e:new Proxy(e,ag)}class cg{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:s}=t(()=>ia(this),()=>gs(this));this._get=n,this._set=s}get value(){return this._get()}set value(t){this._set(t)}}function to(e){return new cg(e)}function Lf(e){di(e)||Kt("toRefs() expects a reactive object but received a plain one.");const t=H(e)?new Array(e.length):{};for(const n in e)t[n]=Vf(e,n);return t}class ug{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Dm(se(this._object),this._key)}}class fg{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Df(e,t,n){return Te(e)?e:Q(e)?new fg(e):he(e)&&arguments.length>1?Vf(e,t,n):ne(e)}function Vf(e,t,n){const s=e[t];return Te(s)?s:new ug(e,t,n)}const dg={GET:"get",HAS:"has",ITERATE:"iterate"},pg={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"};/**
* @vue/runtime-core v3.4.21
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/const Zn=[];function Qs(e){Zn.push(e)}function Zs(){Zn.pop()}function M(e,...t){$n();const n=Zn.length?Zn[Zn.length-1].component:null,s=n&&n.appContext.config.warnHandler,i=hg();if(s)Ht(s,n,11,[e+t.map(r=>{var o,l;return(l=(o=r.toString)==null?void 0:o.call(r))!=null?l:JSON.stringify(r)}).join(""),n&&n.proxy,i.map(({vnode:r})=>`at <${po(n,r.type)}>`).join(`
`),i]);else{const r=[`[Vue warn]: ${e}`,...t];i.length&&r.push(`
`,...mg(i)),console.warn(...r)}Fn()}function hg(){let e=Zn[Zn.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const s=e.component&&e.component.parent;e=s&&s.vnode}return t}function mg(e){const t=[];return e.forEach((n,s)=>{t.push(...s===0?[]:[`
`],...gg(n))}),t}function gg({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",s=e.component?e.component.parent==null:!1,i=` at <${po(e.component,e.type,s)}`,r=">"+n;return e.props?[i,...yg(e.props),r]:[i+r]}function yg(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(s=>{t.push(...jf(s,e[s]))}),n.length>3&&t.push(" ..."),t}function jf(e,t,n){return ee(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:Te(t)?(t=jf(e,se(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):Q(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=se(t),n?t:[`${e}=`,t])}function la(e,t){e!==void 0&&(typeof e!="number"?M(`${t} is not a valid number - got ${JSON.stringify(e)}.`):isNaN(e)&&M(`${t} is NaN - the duration expression might be incorrect.`))}const vg={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",WATCH_GETTER:2,2:"WATCH_GETTER",WATCH_CALLBACK:3,3:"WATCH_CALLBACK",WATCH_CLEANUP:4,4:"WATCH_CLEANUP",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER"},no={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://github.com/vuejs/core ."};function Ht(e,t,n,s){try{return s?e(...s):e()}catch(i){Ln(i,t,n)}}function mt(e,t,n,s){if(Q(e)){const r=Ht(e,t,n,s);return r&&Yr(r)&&r.catch(o=>{Ln(o,t,n)}),r}const i=[];for(let r=0;r<e.length;r++)i.push(mt(e[r],t,n,s));return i}function Ln(e,t,n,s=!0){const i=t?t.vnode:null;if(t){let r=t.parent;const o=t.proxy,l=no[n];for(;r;){const c=r.ec;if(c){for(let f=0;f<c.length;f++)if(c[f](e,o,l)===!1)return}r=r.parent}const a=t.appContext.config.errorHandler;if(a){Ht(a,null,10,[e,o,l]);return}}bg(e,n,i,s)}function bg(e,t,n,s=!0){{const i=no[t];if(n&&Qs(n),M(`Unhandled error${i?` during execution of ${i}`:""}`),n&&Zs(),s)throw e;console.error(e)}}let hi=!1,Xo=!1;const Qe=[];let Vt=0;const ys=[];let Qt=null,hn=0;const Bf=Promise.resolve();let aa=null;const _g=100;function Dn(e){const t=aa||Bf;return e?t.then(this?e.bind(this):e):t}function Sg(e){let t=Vt+1,n=Qe.length;for(;t<n;){const s=t+n>>>1,i=Qe[s],r=gi(i);r<e||r===e&&i.pre?t=s+1:n=s}return t}function Ni(e){(!Qe.length||!Qe.includes(e,hi&&e.allowRecurse?Vt+1:Vt))&&(e.id==null?Qe.push(e):Qe.splice(Sg(e.id),0,e),Hf())}function Hf(){!hi&&!Xo&&(Xo=!0,aa=Bf.then(Uf))}function wg(e){const t=Qe.indexOf(e);t>Vt&&Qe.splice(t,1)}function mi(e){H(e)?ys.push(...e):(!Qt||!Qt.includes(e,e.allowRecurse?hn+1:hn))&&ys.push(e),Hf()}function Tc(e,t,n=hi?Vt+1:0){for(t=t||new Map;n<Qe.length;n++){const s=Qe[n];if(s&&s.pre){if(e&&s.id!==e.uid||ca(t,s))continue;Qe.splice(n,1),n--,s()}}}function Tr(e){if(ys.length){const t=[...new Set(ys)].sort((n,s)=>gi(n)-gi(s));if(ys.length=0,Qt){Qt.push(...t);return}for(Qt=t,e=e||new Map,hn=0;hn<Qt.length;hn++)ca(e,Qt[hn])||Qt[hn]();Qt=null,hn=0}}const gi=e=>e.id==null?1/0:e.id,Eg=(e,t)=>{const n=gi(e)-gi(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Uf(e){Xo=!1,hi=!0,e=e||new Map,Qe.sort(Eg);const t=n=>ca(e,n);try{for(Vt=0;Vt<Qe.length;Vt++){const n=Qe[Vt];if(n&&n.active!==!1){if(t(n))continue;Ht(n,null,14)}}}finally{Vt=0,Qe.length=0,Tr(e),hi=!1,aa=null,(Qe.length||ys.length)&&Uf(e)}}function ca(e,t){if(!e.has(t))e.set(t,1);else{const n=e.get(t);if(n>_g){const s=t.ownerInstance,i=s&&_i(s.type);return Ln(`Maximum recursive updates exceeded${i?` in component <${i}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,null,10),!0}else e.set(t,n+1)}}let An=!1;const hs=new Set;zl().__VUE_HMR_RUNTIME__={createRecord:Co(Kf),rerender:Co(xg),reload:Co(Og)};const ss=new Map;function Cg(e){const t=e.type.__hmrId;let n=ss.get(t);n||(Kf(t,e.type),n=ss.get(t)),n.instances.add(e)}function Tg(e){ss.get(e.type.__hmrId).instances.delete(e)}function Kf(e,t){return ss.has(e)?!1:(ss.set(e,{initialDef:ei(t),instances:new Set}),!0)}function ei(e){return Kd(e)?e.__vccOpts:e}function xg(e,t){const n=ss.get(e);n&&(n.initialDef.render=t,[...n.instances].forEach(s=>{t&&(s.render=t,ei(s.type).render=t),s.renderCache=[],An=!0,s.effect.dirty=!0,s.update(),An=!1}))}function Og(e,t){const n=ss.get(e);if(!n)return;t=ei(t),xc(n.initialDef,t);const s=[...n.instances];for(const i of s){const r=ei(i.type);hs.has(r)||(r!==n.initialDef&&xc(r,t),hs.add(r)),i.appContext.propsCache.delete(i.type),i.appContext.emitsCache.delete(i.type),i.appContext.optionsCache.delete(i.type),i.ceReload?(hs.add(r),i.ceReload(t.styles),hs.delete(r)):i.parent?(i.parent.effect.dirty=!0,Ni(i.parent.update)):i.appContext.reload?i.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}mi(()=>{for(const i of s)hs.delete(ei(i.type))})}function xc(e,t){ce(e,t);for(const n in e)n!=="__file"&&!(n in t)&&delete e[n]}function Co(e){return(t,n)=>{try{return e(t,n)}catch(s){console.error(s),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let Ot,Ys=[],Qo=!1;function ki(e,...t){Ot?Ot.emit(e,...t):Qo||Ys.push({event:e,args:t})}function ua(e,t){var n,s;Ot=e,Ot?(Ot.enabled=!0,Ys.forEach(({event:i,args:r})=>Ot.emit(i,...r)),Ys=[]):typeof window<"u"&&window.HTMLElement&&!((s=(n=window.navigator)==null?void 0:n.userAgent)!=null&&s.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(r=>{ua(r,t)}),setTimeout(()=>{Ot||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Qo=!0,Ys=[])},3e3)):(Qo=!0,Ys=[])}function Ag(e,t){ki("app:init",e,t,{Fragment:De,Text:kn,Comment:$e,Static:Rn})}function Rg(e){ki("app:unmount",e)}const Zo=fa("component:added"),qf=fa("component:updated"),Ig=fa("component:removed"),Ng=e=>{Ot&&typeof Ot.cleanupBuffer=="function"&&!Ot.cleanupBuffer(e)&&Ig(e)};function fa(e){return t=>{ki(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}const kg=Wf("perf:start"),Pg=Wf("perf:end");function Wf(e){return(t,n,s)=>{ki(e,t.appContext.app,t.uid,t,n,s)}}function Mg(e,t,n){ki("component:emit",e.appContext.app,e,t,n)}function $g(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||me;{const{emitsOptions:f,propsOptions:[u]}=e;if(f)if(!(t in f))(!u||!(Dt(t)in u))&&M(`Component emitted event "${t}" but it is neither declared in the emits option nor as an "${Dt(t)}" prop.`);else{const d=f[t];Q(d)&&(d(...n)||M(`Invalid event arguments: event validation failed for event "${t}".`))}}let i=n;const r=t.startsWith("update:"),o=r&&t.slice(7);if(o&&o in s){const f=`${o==="modelValue"?"model":o}Modifiers`,{number:u,trim:d}=s[f]||me;d&&(i=n.map(p=>ee(p)?p.trim():p)),u&&(i=n.map(fi))}Mg(e,t,i);{const f=t.toLowerCase();f!==t&&s[Dt(f)]&&M(`Event "${f}" is emitted in component ${po(e,e.type)} but the handler is registered for "${t}". Note that HTML attributes are case-insensitive and you cannot use v-on to listen to camelCase events when using in-DOM templates. You should probably use "${Xe(t)}" instead of "${t}".`)}let l,a=s[l=Dt(t)]||s[l=Dt(Ie(t))];!a&&r&&(a=s[l=Dt(Xe(t))]),a&&mt(a,e,6,i);const c=s[l+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,mt(c,e,6,i)}}function zf(e,t,n=!1){const s=t.emitsCache,i=s.get(e);if(i!==void 0)return i;const r=e.emits;let o={},l=!1;if(!Q(e)){const a=c=>{const f=zf(c,t,!0);f&&(l=!0,ce(o,f))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!r&&!l?(he(e)&&s.set(e,null),null):(H(r)?r.forEach(a=>o[a]=null):ce(o,r),he(e)&&s.set(e,o),o)}function so(e,t){return!e||!nn(t)?!1:(t=t.slice(2).replace(/Once$/,""),de(e,t[0].toLowerCase()+t.slice(1))||de(e,Xe(t))||de(e,t))}let Re=null,io=null;function yi(e){const t=Re;return Re=e,io=e&&e.type.__scopeId||null,t}function Fg(e){io=e}function Lg(){io=null}const Dg=e=>da;function da(e,t=Re,n){if(!t||e._n)return e;const s=(...i)=>{s._d&&al(-1);const r=yi(t);let o;try{o=e(...i)}finally{yi(r),s._d&&al(1)}return qf(t),o};return s._n=!0,s._c=!0,s._d=!0,s}let el=!1;function xr(){el=!0}function dr(e){const{type:t,vnode:n,proxy:s,withProxy:i,props:r,propsOptions:[o],slots:l,attrs:a,emit:c,render:f,renderCache:u,data:d,setupState:p,ctx:m,inheritAttrs:w}=e;let E,y;const _=yi(e);el=!1;try{if(n.shapeFlag&4){const S=i||s,A=p.__isScriptSetup?new Proxy(S,{get(C,T,O){return M(`Property '${String(T)}' was accessed via 'this'. Avoid using 'this' in templates.`),Reflect.get(C,T,O)}}):S;E=ut(f.call(A,S,u,r,p,d,m)),y=a}else{const S=t;a===r&&xr(),E=ut(S.length>1?S(r,{get attrs(){return xr(),a},slots:l,emit:c}):S(r,null)),y=t.props?a:Vg(a)}}catch(S){ni.length=0,Ln(S,e,1),E=xe($e)}let g=E,b;if(E.patchFlag>0&&E.patchFlag&2048&&([g,b]=Gf(E)),y&&w!==!1){const S=Object.keys(y),{shapeFlag:A}=g;if(S.length){if(A&7)o&&S.some(Sr)&&(y=jg(y,o)),g=Tt(g,y);else if(!el&&g.type!==$e){const C=Object.keys(a),T=[],O=[];for(let x=0,N=C.length;x<N;x++){const I=C[x];nn(I)?Sr(I)||T.push(I[2].toLowerCase()+I.slice(3)):O.push(I)}O.length&&M(`Extraneous non-props attributes (${O.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.`),T.length&&M(`Extraneous non-emits event listeners (${T.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes. If the listener is intended to be a component custom event listener only, declare it using the "emits" option.`)}}}return n.dirs&&(Oc(g)||M("Runtime directive used on component with non-element root node. The directives will not function as intended."),g=Tt(g),g.dirs=g.dirs?g.dirs.concat(n.dirs):n.dirs),n.transition&&(Oc(g)||M("Component inside <Transition> renders non-element root node that cannot be animated."),g.transition=n.transition),b?b(g):E=g,yi(_),E}const Gf=e=>{const t=e.children,n=e.dynamicChildren,s=ro(t,!1);if(s){if(s.patchFlag>0&&s.patchFlag&2048)return Gf(s)}else return[e,void 0];const i=t.indexOf(s),r=n?n.indexOf(s):-1,o=l=>{t[i]=l,n&&(r>-1?n[r]=l:l.patchFlag>0&&(e.dynamicChildren=[...n,l]))};return[ut(s),o]};function ro(e,t=!0){let n;for(let s=0;s<e.length;s++){const i=e[s];if(rn(i)){if(i.type!==$e||i.children==="v-if"){if(n)return;if(n=i,t&&n.patchFlag>0&&n.patchFlag&2048)return ro(n.children)}}else return}return n}const Vg=e=>{let t;for(const n in e)(n==="class"||n==="style"||nn(n))&&((t||(t={}))[n]=e[n]);return t},jg=(e,t)=>{const n={};for(const s in e)(!Sr(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n},Oc=e=>e.shapeFlag&7||e.type===$e;function Bg(e,t,n){const{props:s,children:i,component:r}=e,{props:o,children:l,patchFlag:a}=t,c=r.emitsOptions;if((i||l)&&An||t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return s?Ac(s,o,c):!!o;if(a&8){const f=t.dynamicProps;for(let u=0;u<f.length;u++){const d=f[u];if(o[d]!==s[d]&&!so(c,d))return!0}}}else return(i||l)&&(!l||!l.$stable)?!0:s===o?!1:s?o?Ac(s,o,c):!0:!!o;return!1}function Ac(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let i=0;i<s.length;i++){const r=s[i];if(t[r]!==e[r]&&!so(n,r))return!0}return!1}function pa({vnode:e,parent:t},n){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.el=e.el),s===e)(e=t.vnode).el=n,t=t.parent;else break}}const Or="components",Hg="directives";function Yf(e,t){return ma(Or,e,!0,t)||e}const ha=Symbol.for("v-ndc");function Ug(e){return ee(e)?ma(Or,e,!1)||e:e||ha}function Kg(e){return ma(Hg,e)}function ma(e,t,n=!0,s=!1){const i=Re||Pe;if(i){const r=i.type;if(e===Or){const l=_i(r,!1);if(l&&(l===t||l===Ie(t)||l===Ut(Ie(t))))return r}const o=Rc(i[e]||r[e],t)||Rc(i.appContext[e],t);if(!o&&s)return r;if(n&&!o){const l=e===Or?`
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.`:"";M(`Failed to resolve ${e.slice(0,-1)}: ${t}${l}`)}return o}else M(`resolve${Ut(e.slice(0,-1))} can only be used in render() or setup().`)}function Rc(e,t){return e&&(e[t]||e[Ie(t)]||e[Ut(Ie(t))])}const Jf=e=>e.__isSuspense;let tl=0;const qg={name:"Suspense",__isSuspense:!0,process(e,t,n,s,i,r,o,l,a,c){if(e==null)zg(t,n,s,i,r,o,l,a,c);else{if(r&&r.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}Gg(e,t,n,s,i,o,l,a,c)}},hydrate:Yg,create:ga,normalize:Jg},Wg=qg;function vi(e,t){const n=e.props&&e.props[t];Q(n)&&n()}function zg(e,t,n,s,i,r,o,l,a){const{p:c,o:{createElement:f}}=a,u=f("div"),d=e.suspense=ga(e,i,s,t,u,n,r,o,l,a);c(null,d.pendingBranch=e.ssContent,u,null,s,d,r,o),d.deps>0?(vi(e,"onPending"),vi(e,"onFallback"),c(null,e.ssFallback,t,n,s,null,r,o),vs(d,e.ssFallback)):d.resolve(!1,!0)}function Gg(e,t,n,s,i,r,o,l,{p:a,um:c,o:{createElement:f}}){const u=t.suspense=e.suspense;u.vnode=t,t.el=e.el;const d=t.ssContent,p=t.ssFallback,{activeBranch:m,pendingBranch:w,isInFallback:E,isHydrating:y}=u;if(w)u.pendingBranch=d,At(d,w)?(a(w,d,u.hiddenContainer,null,i,u,r,o,l),u.deps<=0?u.resolve():E&&(y||(a(m,p,n,s,i,null,r,o,l),vs(u,p)))):(u.pendingId=tl++,y?(u.isHydrating=!1,u.activeBranch=w):c(w,i,u),u.deps=0,u.effects.length=0,u.hiddenContainer=f("div"),E?(a(null,d,u.hiddenContainer,null,i,u,r,o,l),u.deps<=0?u.resolve():(a(m,p,n,s,i,null,r,o,l),vs(u,p))):m&&At(d,m)?(a(m,d,n,s,i,u,r,o,l),u.resolve(!0)):(a(null,d,u.hiddenContainer,null,i,u,r,o,l),u.deps<=0&&u.resolve()));else if(m&&At(d,m))a(m,d,n,s,i,u,r,o,l),vs(u,d);else if(vi(t,"onPending"),u.pendingBranch=d,d.shapeFlag&512?u.pendingId=d.component.suspenseId:u.pendingId=tl++,a(null,d,u.hiddenContainer,null,i,u,r,o,l),u.deps<=0)u.resolve();else{const{timeout:_,pendingId:g}=u;_>0?setTimeout(()=>{u.pendingId===g&&u.fallback(p)},_):_===0&&u.fallback(p)}}let Ic=!1;function ga(e,t,n,s,i,r,o,l,a,c,f=!1){Ic||(Ic=!0,console[console.info?"info":"log"]("<Suspense> is an experimental feature and its API will likely change."));const{p:u,m:d,um:p,n:m,o:{parentNode:w,remove:E}}=c;let y;const _=Xg(e);_&&t!=null&&t.pendingBranch&&(y=t.pendingId,t.deps++);const g=e.props?Er(e.props.timeout):void 0;la(g,"Suspense timeout");const b=r,S={vnode:e,parent:t,parentComponent:n,namespace:o,container:s,hiddenContainer:i,deps:0,pendingId:tl++,timeout:typeof g=="number"?g:-1,activeBranch:null,pendingBranch:null,isInFallback:!f,isHydrating:f,isUnmounted:!1,effects:[],resolve(A=!1,C=!1){{if(!A&&!S.pendingBranch)throw new Error("suspense.resolve() is called without a pending branch.");if(S.isUnmounted)throw new Error("suspense.resolve() is called on an already unmounted suspense boundary.")}const{vnode:T,activeBranch:O,pendingBranch:x,pendingId:N,effects:I,parentComponent:j,container:G}=S;let te=!1;S.isHydrating?S.isHydrating=!1:A||(te=O&&x.transition&&x.transition.mode==="out-in",te&&(O.transition.afterLeave=()=>{N===S.pendingId&&(d(x,G,r===b?m(O):r,0),mi(I))}),O&&(w(O.el)!==S.hiddenContainer&&(r=m(O)),p(O,j,S,!0)),te||d(x,G,r,0)),vs(S,x),S.pendingBranch=null,S.isInFallback=!1;let z=S.parent,J=!1;for(;z;){if(z.pendingBranch){z.effects.push(...I),J=!0;break}z=z.parent}!J&&!te&&mi(I),S.effects=[],_&&t&&t.pendingBranch&&y===t.pendingId&&(t.deps--,t.deps===0&&!C&&t.resolve()),vi(T,"onResolve")},fallback(A){if(!S.pendingBranch)return;const{vnode:C,activeBranch:T,parentComponent:O,container:x,namespace:N}=S;vi(C,"onFallback");const I=m(T),j=()=>{S.isInFallback&&(u(null,A,x,I,O,null,N,l,a),vs(S,A))},G=A.transition&&A.transition.mode==="out-in";G&&(T.transition.afterLeave=j),S.isInFallback=!0,p(T,O,null,!0),G||j()},move(A,C,T){S.activeBranch&&d(S.activeBranch,A,C,T),S.container=A},next(){return S.activeBranch&&m(S.activeBranch)},registerDep(A,C){const T=!!S.pendingBranch;T&&S.deps++;const O=A.vnode.el;A.asyncDep.catch(x=>{Ln(x,A,0)}).then(x=>{if(A.isUnmounted||S.isUnmounted||S.pendingId!==A.suspenseId)return;A.asyncResolved=!0;const{vnode:N}=A;Qs(N),pl(A,x,!1),O&&(N.el=O);const I=!O&&A.subTree.el;C(A,N,w(O||A.subTree.el),O?null:m(A.subTree),S,o,a),I&&E(I),pa(A,N.el),Zs(),T&&--S.deps===0&&S.resolve()})},unmount(A,C){S.isUnmounted=!0,S.activeBranch&&p(S.activeBranch,n,A,C),S.pendingBranch&&p(S.pendingBranch,n,A,C)}};return S}function Yg(e,t,n,s,i,r,o,l,a){const c=t.suspense=ga(t,s,n,e.parentNode,document.createElement("div"),null,i,r,o,l,!0),f=a(e,c.pendingBranch=t.ssContent,n,c,r,o);return c.deps===0&&c.resolve(!1,!0),f}function Jg(e){const{shapeFlag:t,children:n}=e,s=t&32;e.ssContent=Nc(s?n.default:n),e.ssFallback=s?Nc(n.fallback):xe($e)}function Nc(e){let t;if(Q(e)){const n=rs&&e._c;n&&(e._d=!1,co()),e=e(),n&&(e._d=!0,t=ft,kd())}if(H(e)){const n=ro(e);!n&&e.filter(s=>s!==ha).length>0&&M("<Suspense> slots expect a single root node."),e=n}return e=ut(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function Xf(e,t){t&&t.pendingBranch?H(e)?t.effects.push(...e):t.effects.push(e):mi(e)}function vs(e,t){e.activeBranch=t;const{vnode:n,parentComponent:s}=e;let i=t.el;for(;!i&&t.component;)t=t.component.subTree,i=t.el;n.el=i,s&&s.subTree===n&&(s.vnode.el=i,pa(s,i))}function Xg(e){var t;return((t=e.props)==null?void 0:t.suspensible)!=null&&e.props.suspensible!==!1}const Qf=Symbol.for("v-scx"),Zf=()=>{{const e=Et(Qf);return e||M("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}};function ya(e,t){return Pi(e,null,t)}function ed(e,t){return Pi(e,null,ce({},t,{flush:"post"}))}function td(e,t){return Pi(e,null,ce({},t,{flush:"sync"}))}const Qi={};function Ee(e,t,n){return Q(t)||M("`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."),Pi(e,t,n)}function Pi(e,t,{immediate:n,deep:s,flush:i,once:r,onTrack:o,onTrigger:l}=me){if(t&&r){const C=t;t=(...T)=>{C(...T),A()}}s!==void 0&&typeof s=="number"&&M('watch() "deep" option with number value will be used as watch depth in future versions. Please use a boolean instead to avoid potential breakage.'),t||(n!==void 0&&M('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),s!==void 0&&M('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),r!==void 0&&M('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));const a=C=>{M("Invalid watch source: ",C,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},c=Pe,f=C=>s===!0?C:Wn(C,s===!1?1:void 0);let u,d=!1,p=!1;if(Te(e)?(u=()=>e.value,d=On(e)):xn(e)?(u=()=>f(e),d=!0):H(e)?(p=!0,d=e.some(C=>xn(C)||On(C)),u=()=>e.map(C=>{if(Te(C))return C.value;if(xn(C))return f(C);if(Q(C))return Ht(C,c,2);a(C)})):Q(e)?t?u=()=>Ht(e,c,2):u=()=>(m&&m(),mt(e,c,3,[w])):(u=Me,a(e)),t&&s){const C=u;u=()=>Wn(C())}let m,w=C=>{m=b.onStop=()=>{Ht(C,c,4),m=b.onStop=void 0}},E;if(Fi)if(w=Me,t?n&&mt(t,c,3,[u(),p?[]:void 0,w]):u(),i==="sync"){const C=Zf();E=C.__watcherHandles||(C.__watcherHandles=[])}else return Me;let y=p?new Array(e.length).fill(Qi):Qi;const _=()=>{if(!(!b.active||!b.dirty))if(t){const C=b.run();(s||d||(p?C.some((T,O)=>Pt(T,y[O])):Pt(C,y)))&&(m&&m(),mt(t,c,3,[C,y===Qi?void 0:p&&y[0]===Qi?[]:y,w]),y=C)}else b.run()};_.allowRecurse=!!t;let g;i==="sync"?g=_:i==="post"?g=()=>We(_,c&&c.suspense):(_.pre=!0,c&&(_.id=c.uid),g=()=>Ni(_));const b=new Cs(u,Me,g),S=Xl(),A=()=>{b.stop(),S&&Kl(S.effects,b)};return b.onTrack=o,b.onTrigger=l,t?n?_():y=b.run():i==="post"?We(b.run.bind(b),c&&c.suspense):b.run(),E&&E.push(A),A}function Qg(e,t,n){const s=this.proxy,i=ee(e)?e.includes(".")?nd(s,e):()=>s[e]:e.bind(s,s);let r;Q(t)?r=t:(r=t.handler,n=t);const o=os(this),l=Pi(i,r.bind(s),n);return o(),l}function nd(e,t){const n=t.split(".");return()=>{let s=e;for(let i=0;i<n.length&&s;i++)s=s[n[i]];return s}}function Wn(e,t,n=0,s){if(!he(e)||e.__v_skip)return e;if(t&&t>0){if(n>=t)return e;n++}if(s=s||new Set,s.has(e))return e;if(s.add(e),Te(e))Wn(e.value,t,n,s);else if(H(e))for(let i=0;i<e.length;i++)Wn(e[i],t,n,s);else if(as(e)||Jn(e))e.forEach(i=>{Wn(i,t,n,s)});else if(ff(e))for(const i in e)Wn(e[i],t,n,s);return e}function sd(e){df(e)&&M("Do not use built-in directive ids as custom directive id: "+e)}function Zg(e,t){if(Re===null)return M("withDirectives can only be used inside render functions."),e;const n=fo(Re)||Re.proxy,s=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[r,o,l,a=me]=t[i];r&&(Q(r)&&(r={mounted:r,updated:r}),r.deep&&Wn(o),s.push({dir:r,instance:n,value:o,oldValue:void 0,arg:l,modifiers:a}))}return e}function Lt(e,t,n,s){const i=e.dirs,r=t&&t.dirs;for(let o=0;o<i.length;o++){const l=i[o];r&&(l.oldValue=r[o].value);let a=l.dir[s];a&&($n(),mt(a,n,8,[e.el,l,e,t]),Fn())}}const mn=Symbol("_leaveCb"),Zi=Symbol("_enterCb");function va(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return cs(()=>{e.isMounted=!0}),ao(()=>{e.isUnmounting=!0}),e}const bt=[Function,Array],ba={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:bt,onEnter:bt,onAfterEnter:bt,onEnterCancelled:bt,onBeforeLeave:bt,onLeave:bt,onAfterLeave:bt,onLeaveCancelled:bt,onBeforeAppear:bt,onAppear:bt,onAfterAppear:bt,onAppearCancelled:bt},ey={name:"BaseTransition",props:ba,setup(e,{slots:t}){const n=Ge(),s=va();return()=>{const i=t.default&&oo(t.default(),!0);if(!i||!i.length)return;let r=i[0];if(i.length>1){let d=!1;for(const p of i)if(p.type!==$e){if(d){M("<transition> can only be used on a single element or component. Use <transition-group> for lists.");break}r=p,d=!0}}const o=se(e),{mode:l}=o;if(l&&l!=="in-out"&&l!=="out-in"&&l!=="default"&&M(`invalid <transition> mode: ${l}`),s.isLeaving)return To(r);const a=kc(r);if(!a)return To(r);const c=Ts(a,o,s,n);is(a,c);const f=n.subTree,u=f&&kc(f);if(u&&u.type!==$e&&!At(a,u)){const d=Ts(u,o,s,n);if(is(u,d),l==="out-in")return s.isLeaving=!0,d.afterLeave=()=>{s.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},To(r);l==="in-out"&&a.type!==$e&&(d.delayLeave=(p,m,w)=>{const E=rd(s,u);E[String(u.key)]=u,p[mn]=()=>{m(),p[mn]=void 0,delete c.delayedLeave},c.delayedLeave=w})}return r}}},id=ey;function rd(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function Ts(e,t,n,s){const{appear:i,mode:r,persisted:o=!1,onBeforeEnter:l,onEnter:a,onAfterEnter:c,onEnterCancelled:f,onBeforeLeave:u,onLeave:d,onAfterLeave:p,onLeaveCancelled:m,onBeforeAppear:w,onAppear:E,onAfterAppear:y,onAppearCancelled:_}=t,g=String(e.key),b=rd(n,e),S=(T,O)=>{T&&mt(T,s,9,O)},A=(T,O)=>{const x=O[1];S(T,O),H(T)?T.every(N=>N.length<=1)&&x():T.length<=1&&x()},C={mode:r,persisted:o,beforeEnter(T){let O=l;if(!n.isMounted)if(i)O=w||l;else return;T[mn]&&T[mn](!0);const x=b[g];x&&At(e,x)&&x.el[mn]&&x.el[mn](),S(O,[T])},enter(T){let O=a,x=c,N=f;if(!n.isMounted)if(i)O=E||a,x=y||c,N=_||f;else return;let I=!1;const j=T[Zi]=G=>{I||(I=!0,G?S(N,[T]):S(x,[T]),C.delayedLeave&&C.delayedLeave(),T[Zi]=void 0)};O?A(O,[T,j]):j()},leave(T,O){const x=String(e.key);if(T[Zi]&&T[Zi](!0),n.isUnmounting)return O();S(u,[T]);let N=!1;const I=T[mn]=j=>{N||(N=!0,O(),j?S(m,[T]):S(p,[T]),T[mn]=void 0,b[x]===e&&delete b[x])};b[x]=e,d?A(d,[T,I]):I()},clone(T){return Ts(T,t,n,s)}};return C}function To(e){if(Bs(e))return e=Tt(e),e.children=null,e}function kc(e){return Bs(e)?e.component?e.component.subTree:e.children?e.children[0]:void 0:e}function is(e,t){e.shapeFlag&6&&e.component?is(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function oo(e,t=!1,n){let s=[],i=0;for(let r=0;r<e.length;r++){let o=e[r];const l=n==null?o.key:String(n)+String(o.key!=null?o.key:r);o.type===De?(o.patchFlag&128&&i++,s=s.concat(oo(o.children,t,l))):(t||o.type!==$e)&&s.push(l!=null?Tt(o,{key:l}):o)}if(i>1)for(let r=0;r<s.length;r++)s[r].patchFlag=-2;return s}/*! #__NO_SIDE_EFFECTS__ */function js(e,t){return Q(e)?ce({name:e.name},t,{setup:e}):e}const es=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function ty(e){Q(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:s,delay:i=200,timeout:r,suspensible:o=!0,onError:l}=e;let a=null,c,f=0;const u=()=>(f++,a=null,d()),d=()=>{let p;return a||(p=a=t().catch(m=>{if(m=m instanceof Error?m:new Error(String(m)),l)return new Promise((w,E)=>{l(m,()=>w(u()),()=>E(m),f+1)});throw m}).then(m=>{if(p!==a&&a)return a;if(m||M("Async component loader resolved to undefined. If you are using retry(), make sure to return its return value."),m&&(m.__esModule||m[Symbol.toStringTag]==="Module")&&(m=m.default),m&&!he(m)&&!Q(m))throw new Error(`Invalid async component load result: ${m}`);return c=m,m}))};return js({name:"AsyncComponentWrapper",__asyncLoader:d,get __asyncResolved(){return c},setup(){const p=Pe;if(c)return()=>xo(c,p);const m=_=>{a=null,Ln(_,p,13,!s)};if(o&&p.suspense||Fi)return d().then(_=>()=>xo(_,p)).catch(_=>(m(_),()=>s?xe(s,{error:_}):null));const w=ne(!1),E=ne(),y=ne(!!i);return i&&setTimeout(()=>{y.value=!1},i),r!=null&&setTimeout(()=>{if(!w.value&&!E.value){const _=new Error(`Async component timed out after ${r}ms.`);m(_),E.value=_}},r),d().then(()=>{w.value=!0,p.parent&&Bs(p.parent.vnode)&&(p.parent.effect.dirty=!0,Ni(p.parent.update))}).catch(_=>{m(_),E.value=_}),()=>{if(w.value&&c)return xo(c,p);if(E.value&&s)return xe(s,{error:E.value});if(n&&!y.value)return xe(n)}}})}function xo(e,t){const{ref:n,props:s,children:i,ce:r}=t.vnode,o=xe(e,s,i);return o.ref=n,o.ce=r,delete t.vnode.ce,o}const Bs=e=>e.type.__isKeepAlive,ny={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Ge(),s=n.ctx;if(!s.renderer)return()=>{const _=t.default&&t.default();return _&&_.length===1?_[0]:_};const i=new Map,r=new Set;let o=null;n.__v_cache=i;const l=n.suspense,{renderer:{p:a,m:c,um:f,o:{createElement:u}}}=s,d=u("div");s.activate=(_,g,b,S,A)=>{const C=_.component;c(_,g,b,0,l),a(C.vnode,_,g,b,C,l,S,_.slotScopeIds,A),We(()=>{C.isDeactivated=!1,C.a&&_n(C.a);const T=_.props&&_.props.onVnodeMounted;T&&at(T,C.parent,_)},l),Zo(C)},s.deactivate=_=>{const g=_.component;c(_,d,null,1,l),We(()=>{g.da&&_n(g.da);const b=_.props&&_.props.onVnodeUnmounted;b&&at(b,g.parent,_),g.isDeactivated=!0},l),Zo(g)};function p(_){Oo(_),f(_,n,l,!0)}function m(_){i.forEach((g,b)=>{const S=_i(g.type);S&&(!_||!_(S))&&w(b)})}function w(_){const g=i.get(_);!o||!At(g,o)?p(g):o&&Oo(o),i.delete(_),r.delete(_)}Ee(()=>[e.include,e.exclude],([_,g])=>{_&&m(b=>Js(_,b)),g&&m(b=>!Js(g,b))},{flush:"post",deep:!0});let E=null;const y=()=>{E!=null&&i.set(E,Ao(n.subTree))};return cs(y),Mi(y),ao(()=>{i.forEach(_=>{const{subTree:g,suspense:b}=n,S=Ao(g);if(_.type===S.type&&_.key===S.key){Oo(S);const A=S.component.da;A&&We(A,b);return}p(_)})}),()=>{if(E=null,!t.default)return null;const _=t.default(),g=_[0];if(_.length>1)return M("KeepAlive should contain exactly one component child."),o=null,_;if(!rn(g)||!(g.shapeFlag&4)&&!(g.shapeFlag&128))return o=null,g;let b=Ao(g);const S=b.type,A=_i(es(b)?b.type.__asyncResolved||{}:S),{include:C,exclude:T,max:O}=e;if(C&&(!A||!Js(C,A))||T&&A&&Js(T,A))return o=b,g;const x=b.key==null?S:b.key,N=i.get(x);return b.el&&(b=Tt(b),g.shapeFlag&128&&(g.ssContent=b)),E=x,N?(b.el=N.el,b.component=N.component,b.transition&&is(b,b.transition),b.shapeFlag|=512,r.delete(x),r.add(x)):(r.add(x),O&&r.size>parseInt(O,10)&&w(r.values().next().value)),b.shapeFlag|=256,o=b,Jf(g.type)?g:b}}},sy=ny;function Js(e,t){return H(e)?e.some(n=>Js(n,t)):ee(e)?e.split(",").includes(t):dm(e)?e.test(t):!1}function od(e,t){ad(e,"a",t)}function ld(e,t){ad(e,"da",t)}function ad(e,t,n=Pe){const s=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(lo(t,s,n),n){let i=n.parent;for(;i&&i.parent;)Bs(i.parent.vnode)&&iy(s,t,n,i),i=i.parent}}function iy(e,t,n,s){const i=lo(t,e,s,!0);$i(()=>{Kl(s[t],i)},n)}function Oo(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Ao(e){return e.shapeFlag&128?e.ssContent:e}function lo(e,t,n=Pe,s=!1){if(n){const i=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;$n();const l=os(n),a=mt(t,n,e,o);return l(),Fn(),a});return s?i.unshift(r):i.push(r),r}else{const i=Dt(no[e].replace(/ hook$/,""));M(`${i} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`)}}const on=e=>(t,n=Pe)=>(!Fi||e==="sp")&&lo(e,(...s)=>t(...s),n),cd=on("bm"),cs=on("m"),ud=on("bu"),Mi=on("u"),ao=on("bum"),$i=on("um"),fd=on("sp"),dd=on("rtg"),pd=on("rtc");function hd(e,t=Pe){lo("ec",e,t)}function ry(e,t,n,s){let i;const r=n&&n[s];if(H(e)||ee(e)){i=new Array(e.length);for(let o=0,l=e.length;o<l;o++)i[o]=t(e[o],o,void 0,r&&r[o])}else if(typeof e=="number"){Number.isInteger(e)||M(`The v-for range expect an integer value but got ${e}.`),i=new Array(e);for(let o=0;o<e;o++)i[o]=t(o+1,o,void 0,r&&r[o])}else if(he(e))if(e[Symbol.iterator])i=Array.from(e,(o,l)=>t(o,l,void 0,r&&r[l]));else{const o=Object.keys(e);i=new Array(o.length);for(let l=0,a=o.length;l<a;l++){const c=o[l];i[l]=t(e[c],c,l,r&&r[l])}}else i=[];return n&&(n[s]=i),i}function oy(e,t){for(let n=0;n<t.length;n++){const s=t[n];if(H(s))for(let i=0;i<s.length;i++)e[s[i].name]=s[i].fn;else s&&(e[s.name]=s.key?(...i)=>{const r=s.fn(...i);return r&&(r.key=s.key),r}:s.fn)}return e}function ly(e,t,n={},s,i){if(Re.isCE||Re.parent&&es(Re.parent)&&Re.parent.isCE)return t!=="default"&&(n.name=t),xe("slot",n,s&&s());let r=e[t];r&&r.length>1&&(M("SSR-optimized slot function detected in a non-SSR-optimized render function. You need to mark this component with $dynamic-slots in the parent template."),r=()=>[]),r&&r._c&&(r._d=!1),co();const o=r&&md(r(n)),l=Ea(De,{key:n.key||o&&o.key||`_${t}`},o||(s?s():[]),o&&e._===1?64:-2);return!i&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),r&&r._c&&(r._d=!0),l}function md(e){return e.some(t=>rn(t)?!(t.type===$e||t.type===De&&!md(t.children)):!0)?e:null}function ay(e,t){const n={};if(!he(e))return M("v-on with no argument expects an object value."),n;for(const s in e)n[t&&/[A-Z]/.test(s)?`on:${s}`:Dt(s)]=e[s];return n}const nl=e=>e?Vd(e)?fo(e)||e.proxy:nl(e.parent):null,ts=ce(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>qn(e.props),$attrs:e=>qn(e.attrs),$slots:e=>qn(e.slots),$refs:e=>qn(e.refs),$parent:e=>nl(e.parent),$root:e=>nl(e.root),$emit:e=>e.emit,$options:e=>Sa(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,Ni(e.update)}),$nextTick:e=>e.n||(e.n=Dn.bind(e.proxy)),$watch:e=>Qg.bind(e)}),_a=e=>e==="_"||e==="$",Ro=(e,t)=>e!==me&&!e.__isScriptSetup&&de(e,t),ti={get({_:e},t){const{ctx:n,setupState:s,data:i,props:r,accessCache:o,type:l,appContext:a}=e;if(t==="__isVue")return!0;let c;if(t[0]!=="$"){const p=o[t];if(p!==void 0)switch(p){case 1:return s[t];case 2:return i[t];case 4:return n[t];case 3:return r[t]}else{if(Ro(s,t))return o[t]=1,s[t];if(i!==me&&de(i,t))return o[t]=2,i[t];if((c=e.propsOptions[0])&&de(c,t))return o[t]=3,r[t];if(n!==me&&de(n,t))return o[t]=4,n[t];sl&&(o[t]=0)}}const f=ts[t];let u,d;if(f)return t==="$attrs"?(tt(e,"get",t),xr()):t==="$slots"&&tt(e,"get",t),f(e);if((u=l.__cssModules)&&(u=u[t]))return u;if(n!==me&&de(n,t))return o[t]=4,n[t];if(d=a.config.globalProperties,de(d,t))return d[t];Re&&(!ee(t)||t.indexOf("__v")!==0)&&(i!==me&&_a(t[0])&&de(i,t)?M(`Property ${JSON.stringify(t)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):e===Re&&M(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))},set({_:e},t,n){const{data:s,setupState:i,ctx:r}=e;return Ro(i,t)?(i[t]=n,!0):i.__isScriptSetup&&de(i,t)?(M(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):s!==me&&de(s,t)?(s[t]=n,!0):de(e.props,t)?(M(`Attempting to mutate prop "${t}". Props are readonly.`),!1):t[0]==="$"&&t.slice(1)in e?(M(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`),!1):(t in e.appContext.config.globalProperties?Object.defineProperty(r,t,{enumerable:!0,configurable:!0,value:n}):r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:i,propsOptions:r}},o){let l;return!!n[o]||e!==me&&de(e,o)||Ro(t,o)||(l=r[0])&&de(l,o)||de(s,o)||de(ts,o)||de(i.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:de(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};ti.ownKeys=e=>(M("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(e));const cy=ce({},ti,{get(e,t){if(t!==Symbol.unscopables)return ti.get(e,t,e)},has(e,t){const n=t[0]!=="_"&&!ym(t);return!n&&ti.has(e,t)&&M(`Property ${JSON.stringify(t)} should not start with _ which is a reserved prefix for Vue internals.`),n}});function uy(e){const t={};return Object.defineProperty(t,"_",{configurable:!0,enumerable:!1,get:()=>e}),Object.keys(ts).forEach(n=>{Object.defineProperty(t,n,{configurable:!0,enumerable:!1,get:()=>ts[n](e),set:Me})}),t}function fy(e){const{ctx:t,propsOptions:[n]}=e;n&&Object.keys(n).forEach(s=>{Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>e.props[s],set:Me})})}function dy(e){const{ctx:t,setupState:n}=e;Object.keys(se(n)).forEach(s=>{if(!n.__isScriptSetup){if(_a(s[0])){M(`setup() return property ${JSON.stringify(s)} should not start with "$" or "_" which are reserved prefixes for Vue internals.`);return}Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>n[s],set:Me})}})}const us=e=>M(`${e}() is a compiler-hint helper that is only usable inside <script setup> of a single file component. Its arguments should be compiled away and passing it at runtime has no effect.`);function py(){return us("defineProps"),null}function hy(){return us("defineEmits"),null}function my(e){us("defineExpose")}function gy(e){us("defineOptions")}function yy(){return us("defineSlots"),null}function vy(){us("defineModel")}function by(e,t){return us("withDefaults"),null}function gd(){return yd().slots}function _y(){return yd().attrs}function yd(){const e=Ge();return e||M("useContext() called without active instance."),e.setupContext||(e.setupContext=Ud(e))}function bi(e){return H(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Sy(e,t){const n=bi(e);for(const s in t){if(s.startsWith("__skip"))continue;let i=n[s];i?H(i)||Q(i)?i=n[s]={type:i,default:t[s]}:i.default=t[s]:i===null?i=n[s]={default:t[s]}:M(`props default key "${s}" has no corresponding declaration.`),i&&t[`__skip_${s}`]&&(i.skipFactory=!0)}return n}function wy(e,t){return!e||!t?e||t:H(e)&&H(t)?e.concat(t):ce({},bi(e),bi(t))}function Ey(e,t){const n={};for(const s in e)t.includes(s)||Object.defineProperty(n,s,{enumerable:!0,get:()=>e[s]});return n}function Cy(e){const t=Ge();t||M("withAsyncContext called without active current instance. This is likely a bug.");let n=e();return fl(),Yr(n)&&(n=n.catch(s=>{throw os(t),s})),[n,()=>os(t)]}function Ty(){const e=Object.create(null);return(t,n)=>{e[n]?M(`${t} property "${n}" is already defined in ${e[n]}.`):e[n]=t}}let sl=!0;function xy(e){const t=Sa(e),n=e.proxy,s=e.ctx;sl=!1,t.beforeCreate&&Pc(t.beforeCreate,e,"bc");const{data:i,computed:r,methods:o,watch:l,provide:a,inject:c,created:f,beforeMount:u,mounted:d,beforeUpdate:p,updated:m,activated:w,deactivated:E,beforeDestroy:y,beforeUnmount:_,destroyed:g,unmounted:b,render:S,renderTracked:A,renderTriggered:C,errorCaptured:T,serverPrefetch:O,expose:x,inheritAttrs:N,components:I,directives:j,filters:G}=t,te=Ty();{const[J]=e.propsOptions;if(J)for(const W in J)te("Props",W)}if(c&&Oy(c,s,te),o)for(const J in o){const W=o[J];Q(W)?(Object.defineProperty(s,J,{value:W.bind(n),configurable:!0,enumerable:!0,writable:!0}),te("Methods",J)):M(`Method "${J}" has type "${typeof W}" in the component definition. Did you reference the function correctly?`)}if(i){Q(i)||M("The data option must be a function. Plain object usage is no longer supported.");const J=i.call(n,n);if(Yr(J)&&M("data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>."),!he(J))M("data() should return an object.");else{e.data=it(J);for(const W in J)te("Data",W),_a(W[0])||Object.defineProperty(s,W,{configurable:!0,enumerable:!0,get:()=>J[W],set:Me})}}if(sl=!0,r)for(const J in r){const W=r[J],Fe=Q(W)?W.bind(n,n):Q(W.get)?W.get.bind(n,n):Me;Fe===Me&&M(`Computed property "${J}" has no getter.`);const Ye=!Q(W)&&Q(W.set)?W.set.bind(n):()=>{M(`Write operation failed: computed property "${J}" is readonly.`)},rt=ae({get:Fe,set:Ye});Object.defineProperty(s,J,{enumerable:!0,configurable:!0,get:()=>rt.value,set:Mt=>rt.value=Mt}),te("Computed",J)}if(l)for(const J in l)vd(l[J],s,n,J);if(a){const J=Q(a)?a.call(n):a;Reflect.ownKeys(J).forEach(W=>{_s(W,J[W])})}f&&Pc(f,e,"c");function z(J,W){H(W)?W.forEach(Fe=>J(Fe.bind(n))):W&&J(W.bind(n))}if(z(cd,u),z(cs,d),z(ud,p),z(Mi,m),z(od,w),z(ld,E),z(hd,T),z(pd,A),z(dd,C),z(ao,_),z($i,b),z(fd,O),H(x))if(x.length){const J=e.exposed||(e.exposed={});x.forEach(W=>{Object.defineProperty(J,W,{get:()=>n[W],set:Fe=>n[W]=Fe})})}else e.exposed||(e.exposed={});S&&e.render===Me&&(e.render=S),N!=null&&(e.inheritAttrs=N),I&&(e.components=I),j&&(e.directives=j)}function Oy(e,t,n=Me){H(e)&&(e=il(e));for(const s in e){const i=e[s];let r;he(i)?"default"in i?r=Et(i.from||s,i.default,!0):r=Et(i.from||s):r=Et(i),Te(r)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>r.value,set:o=>r.value=o}):t[s]=r,n("Inject",s)}}function Pc(e,t,n){mt(H(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function vd(e,t,n,s){const i=s.includes(".")?nd(n,s):()=>n[s];if(ee(e)){const r=t[e];Q(r)?Ee(i,r):M(`Invalid watch handler specified by key "${e}"`,r)}else if(Q(e))Ee(i,e.bind(n));else if(he(e))if(H(e))e.forEach(r=>vd(r,t,n,s));else{const r=Q(e.handler)?e.handler.bind(n):t[e.handler];Q(r)?Ee(i,r,e):M(`Invalid watch handler specified by key "${e.handler}"`,r)}else M(`Invalid watch option: "${s}"`,e)}function Sa(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:i,optionsCache:r,config:{optionMergeStrategies:o}}=e.appContext,l=r.get(t);let a;return l?a=l:!i.length&&!n&&!s?a=t:(a={},i.length&&i.forEach(c=>Ar(a,c,o,!0)),Ar(a,t,o)),he(t)&&r.set(t,a),a}function Ar(e,t,n,s=!1){const{mixins:i,extends:r}=t;r&&Ar(e,r,n,!0),i&&i.forEach(o=>Ar(e,o,n,!0));for(const o in t)if(s&&o==="expose")M('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const l=Ay[o]||n&&n[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const Ay={data:Mc,props:$c,emits:$c,methods:Xs,computed:Xs,beforeCreate:st,created:st,beforeMount:st,mounted:st,beforeUpdate:st,updated:st,beforeDestroy:st,beforeUnmount:st,destroyed:st,unmounted:st,activated:st,deactivated:st,errorCaptured:st,serverPrefetch:st,components:Xs,directives:Xs,watch:Iy,provide:Mc,inject:Ry};function Mc(e,t){return t?e?function(){return ce(Q(e)?e.call(this,this):e,Q(t)?t.call(this,this):t)}:t:e}function Ry(e,t){return Xs(il(e),il(t))}function il(e){if(H(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function st(e,t){return e?[...new Set([].concat(e,t))]:t}function Xs(e,t){return e?ce(Object.create(null),e,t):t}function $c(e,t){return e?H(e)&&H(t)?[...new Set([...e,...t])]:ce(Object.create(null),bi(e),bi(t??{})):t}function Iy(e,t){if(!e)return t;if(!t)return e;const n=ce(Object.create(null),e);for(const s in t)n[s]=st(e[s],t[s]);return n}function bd(){return{app:null,config:{isNativeTag:fr,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Ny=0;function ky(e,t){return function(s,i=null){Q(s)||(s=ce({},s)),i!=null&&!he(i)&&(M("root props passed to app.mount() must be an object."),i=null);const r=bd(),o=new WeakSet;let l=!1;const a=r.app={_uid:Ny++,_component:s,_props:i,_container:null,_context:r,_instance:null,version:ml,get config(){return r.config},set config(c){M("app.config cannot be replaced. Modify individual options instead.")},use(c,...f){return o.has(c)?M("Plugin has already been applied to target app."):c&&Q(c.install)?(o.add(c),c.install(a,...f)):Q(c)?(o.add(c),c(a,...f)):M('A plugin must either be a function or an object with an "install" function.'),a},mixin(c){return r.mixins.includes(c)?M("Mixin has already been applied to target app"+(c.name?`: ${c.name}`:"")):r.mixins.push(c),a},component(c,f){return dl(c,r.config),f?(r.components[c]&&M(`Component "${c}" has already been registered in target app.`),r.components[c]=f,a):r.components[c]},directive(c,f){return sd(c),f?(r.directives[c]&&M(`Directive "${c}" has already been registered in target app.`),r.directives[c]=f,a):r.directives[c]},mount(c,f,u){if(l)M("App has already been mounted.\nIf you want to remount the same app, move your app creation logic into a factory function and create fresh app instances for each mount - e.g. `const createMyApp = () => createApp(App)`");else{c.__vue_app__&&M("There is already an app instance mounted on the host container.\n If you want to mount another app on the same host container, you need to unmount the previous app by calling `app.unmount()` first.");const d=xe(s,i);return d.appContext=r,u===!0?u="svg":u===!1&&(u=void 0),r.reload=()=>{e(Tt(d),c,u)},f&&t?t(d,c):e(d,c,u),l=!0,a._container=c,c.__vue_app__=a,a._instance=d.component,Ag(a,ml),fo(d.component)||d.component.proxy}},unmount(){l?(e(null,a._container),a._instance=null,Rg(a),delete a._container.__vue_app__):M("Cannot unmount an app that is not mounted.")},provide(c,f){return c in r.provides&&M(`App already provides property with key "${String(c)}". It will be overwritten with the new value.`),r.provides[c]=f,a},runWithContext(c){const f=bs;bs=a;try{return c()}finally{bs=f}}};return a}}let bs=null;function _s(e,t){if(!Pe)M("provide() can only be used inside setup().");else{let n=Pe.provides;const s=Pe.parent&&Pe.parent.provides;s===n&&(n=Pe.provides=Object.create(s)),n[e]=t}}function Et(e,t,n=!1){const s=Pe||Re;if(s||bs){const i=s?s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:bs._context.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&Q(t)?t.call(s&&s.proxy):t;M(`injection "${String(e)}" not found.`)}else M("inject() can only be used inside setup() or functional components.")}function Py(){return!!(Pe||Re||bs)}function My(e,t,n,s=!1){const i={},r={};wr(r,uo,1),e.propsDefaults=Object.create(null),_d(e,t,i,r);for(const o in e.propsOptions[0])o in i||(i[o]=void 0);wd(t||{},i,e),n?e.props=s?i:ta(i):e.type.props?e.props=i:e.props=r,e.attrs=r}function $y(e){for(;e;){if(e.type.__hmrId)return!0;e=e.parent}}function Fy(e,t,n,s){const{props:i,attrs:r,vnode:{patchFlag:o}}=e,l=se(i),[a]=e.propsOptions;let c=!1;if(!$y(e)&&(s||o>0)&&!(o&16)){if(o&8){const f=e.vnode.dynamicProps;for(let u=0;u<f.length;u++){let d=f[u];if(so(e.emitsOptions,d))continue;const p=t[d];if(a)if(de(r,d))p!==r[d]&&(r[d]=p,c=!0);else{const m=Ie(d);i[m]=rl(a,l,m,p,e,!1)}else p!==r[d]&&(r[d]=p,c=!0)}}}else{_d(e,t,i,r)&&(c=!0);let f;for(const u in l)(!t||!de(t,u)&&((f=Xe(u))===u||!de(t,f)))&&(a?n&&(n[u]!==void 0||n[f]!==void 0)&&(i[u]=rl(a,l,u,void 0,e,!0)):delete i[u]);if(r!==l)for(const u in r)(!t||!de(t,u))&&(delete r[u],c=!0)}c&&Bt(e,"set","$attrs"),wd(t||{},i,e)}function _d(e,t,n,s){const[i,r]=e.propsOptions;let o=!1,l;if(t)for(let a in t){if(Cn(a))continue;const c=t[a];let f;i&&de(i,f=Ie(a))?!r||!r.includes(f)?n[f]=c:(l||(l={}))[f]=c:so(e.emitsOptions,a)||(!(a in s)||c!==s[a])&&(s[a]=c,o=!0)}if(r){const a=se(n),c=l||me;for(let f=0;f<r.length;f++){const u=r[f];n[u]=rl(i,a,u,c[u],e,!de(c,u))}}return o}function rl(e,t,n,s,i,r){const o=e[n];if(o!=null){const l=de(o,"default");if(l&&s===void 0){const a=o.default;if(o.type!==Function&&!o.skipFactory&&Q(a)){const{propsDefaults:c}=i;if(n in c)s=c[n];else{const f=os(i);s=c[n]=a.call(null,t),f()}}else s=a}o[0]&&(r&&!l?s=!1:o[1]&&(s===""||s===Xe(n))&&(s=!0))}return s}function Sd(e,t,n=!1){const s=t.propsCache,i=s.get(e);if(i)return i;const r=e.props,o={},l=[];let a=!1;if(!Q(e)){const f=u=>{a=!0;const[d,p]=Sd(u,t,!0);ce(o,d),p&&l.push(...p)};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!r&&!a)return he(e)&&s.set(e,ms),ms;if(H(r))for(let f=0;f<r.length;f++){ee(r[f])||M("props must be strings when using array syntax.",r[f]);const u=Ie(r[f]);Fc(u)&&(o[u]=me)}else if(r){he(r)||M("invalid props options",r);for(const f in r){const u=Ie(f);if(Fc(u)){const d=r[f],p=o[u]=H(d)||Q(d)?{type:d}:ce({},d);if(p){const m=Dc(Boolean,p.type),w=Dc(String,p.type);p[0]=m>-1,p[1]=w<0||m<w,(m>-1||de(p,"default"))&&l.push(u)}}}}const c=[o,l];return he(e)&&s.set(e,c),c}function Fc(e){return e[0]!=="$"&&!Cn(e)?!0:(M(`Invalid prop name: "${e}" is a reserved property.`),!1)}function ol(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function Lc(e,t){return ol(e)===ol(t)}function Dc(e,t){return H(t)?t.findIndex(n=>Lc(n,e)):Q(t)&&Lc(t,e)?0:-1}function wd(e,t,n){const s=se(t),i=n.propsOptions[0];for(const r in i){let o=i[r];o!=null&&Ly(r,s[r],o,qn(s),!de(e,r)&&!de(e,Xe(r)))}}function Ly(e,t,n,s,i){const{type:r,required:o,validator:l,skipCheck:a}=n;if(o&&i){M('Missing required prop: "'+e+'"');return}if(!(t==null&&!o)){if(r!=null&&r!==!0&&!a){let c=!1;const f=H(r)?r:[r],u=[];for(let d=0;d<f.length&&!c;d++){const{valid:p,expectedType:m}=Vy(t,f[d]);u.push(m||""),c=p}if(!c){M(jy(e,t,u));return}}l&&!l(t,s)&&M('Invalid prop: custom validator check failed for prop "'+e+'".')}}const Dy=Ue("String,Number,Boolean,Function,Symbol,BigInt");function Vy(e,t){let n;const s=ol(t);if(Dy(s)){const i=typeof e;n=i===s.toLowerCase(),!n&&i==="object"&&(n=e instanceof t)}else s==="Object"?n=he(e):s==="Array"?n=H(e):s==="null"?n=e===null:n=e instanceof t;return{valid:n,expectedType:s}}function jy(e,t,n){if(n.length===0)return`Prop type [] for prop "${e}" won't match anything. Did you mean to use type Array instead?`;let s=`Invalid prop: type check failed for prop "${e}". Expected ${n.map(Ut).join(" | ")}`;const i=n[0],r=ql(t),o=Vc(t,i),l=Vc(t,r);return n.length===1&&jc(i)&&!By(i,r)&&(s+=` with value ${o}`),s+=`, got ${r} `,jc(r)&&(s+=`with value ${l}.`),s}function Vc(e,t){return t==="String"?`"${e}"`:t==="Number"?`${Number(e)}`:`${e}`}function jc(e){return["string","number","boolean"].some(n=>e.toLowerCase()===n)}function By(...e){return e.some(t=>t.toLowerCase()==="boolean")}const Ed=e=>e[0]==="_"||e==="$stable",wa=e=>H(e)?e.map(ut):[ut(e)],Hy=(e,t,n)=>{if(t._n)return t;const s=da((...i)=>(Pe&&(!n||n.root===Pe.root)&&M(`Slot "${e}" invoked outside of the render function: this will not track dependencies used in the slot. Invoke the slot function inside the render function instead.`),wa(t(...i))),n);return s._c=!1,s},Cd=(e,t,n)=>{const s=e._ctx;for(const i in e){if(Ed(i))continue;const r=e[i];if(Q(r))t[i]=Hy(i,r,s);else if(r!=null){M(`Non-function value encountered for slot "${i}". Prefer function slots for better performance.`);const o=wa(r);t[i]=()=>o}}},Td=(e,t)=>{Bs(e.vnode)||M("Non-function value encountered for default slot. Prefer function slots for better performance.");const n=wa(t);e.slots.default=()=>n},Uy=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=se(t),wr(t,"_",n)):Cd(t,e.slots={})}else e.slots={},t&&Td(e,t);wr(e.slots,uo,1)},Ky=(e,t,n)=>{const{vnode:s,slots:i}=e;let r=!0,o=me;if(s.shapeFlag&32){const l=t._;l?An?(ce(i,t),Bt(e,"set","$slots")):n&&l===1?r=!1:(ce(i,t),!n&&l===1&&delete i._):(r=!t.$stable,Cd(t,i)),o=t}else t&&(Td(e,t),o={default:1});if(r)for(const l in i)!Ed(l)&&o[l]==null&&delete i[l]};function Rr(e,t,n,s,i=!1){if(H(e)){e.forEach((d,p)=>Rr(d,t&&(H(t)?t[p]:t),n,s,i));return}if(es(s)&&!i)return;const r=s.shapeFlag&4?fo(s.component)||s.component.proxy:s.el,o=i?null:r,{i:l,r:a}=e;if(!l){M("Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function.");return}const c=t&&t.r,f=l.refs===me?l.refs={}:l.refs,u=l.setupState;if(c!=null&&c!==a&&(ee(c)?(f[c]=null,de(u,c)&&(u[c]=null)):Te(c)&&(c.value=null)),Q(a))Ht(a,l,12,[o,f]);else{const d=ee(a),p=Te(a);if(d||p){const m=()=>{if(e.f){const w=d?de(u,a)?u[a]:f[a]:a.value;i?H(w)&&Kl(w,r):H(w)?w.includes(r)||w.push(r):d?(f[a]=[r],de(u,a)&&(u[a]=f[a])):(a.value=[r],e.k&&(f[e.k]=a.value))}else d?(f[a]=o,de(u,a)&&(u[a]=o)):p?(a.value=o,e.k&&(f[e.k]=o)):M("Invalid template ref type:",a,`(${typeof a})`)};o?(m.id=-1,We(m,n)):m()}else M("Invalid template ref type:",a,`(${typeof a})`)}}let Wt=!1;const qy=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",Wy=e=>e.namespaceURI.includes("MathML"),er=e=>{if(qy(e))return"svg";if(Wy(e))return"mathml"},Us=e=>e.nodeType===8;function zy(e){const{mt:t,p:n,o:{patchProp:s,createText:i,nextSibling:r,parentNode:o,remove:l,insert:a,createComment:c}}=e,f=(g,b)=>{if(!b.hasChildNodes()){M("Attempting to hydrate existing markup but container is empty. Performing full mount instead."),n(null,g,b),Tr(),b._vnode=g;return}Wt=!1,u(b.firstChild,g,null,null,null),Tr(),b._vnode=g,Wt&&console.error("Hydration completed but contains mismatches.")},u=(g,b,S,A,C,T=!1)=>{const O=Us(g)&&g.data==="[",x=()=>w(g,b,S,A,C,O),{type:N,ref:I,shapeFlag:j,patchFlag:G}=b;let te=g.nodeType;b.el=g,"__vnode"in g||Object.defineProperty(g,"__vnode",{value:b,enumerable:!1}),"__vueParentComponent"in g||Object.defineProperty(g,"__vueParentComponent",{value:S,enumerable:!1}),G===-2&&(T=!1,b.dynamicChildren=null);let z=null;switch(N){case kn:te!==3?b.children===""?(a(b.el=i(""),o(g),g),z=g):z=x():(g.data!==b.children&&(Wt=!0,M("Hydration text mismatch in",g.parentNode,`
- rendered on server: ${JSON.stringify(g.data)}
- expected on client: ${JSON.stringify(b.children)}`),g.data=b.children),z=r(g));break;case $e:_(g)?(z=r(g),y(b.el=g.content.firstChild,g,S)):te!==8||O?z=x():z=r(g);break;case Rn:if(O&&(g=r(g),te=g.nodeType),te===1||te===3){z=g;const J=!b.children.length;for(let W=0;W<b.staticCount;W++)J&&(b.children+=z.nodeType===1?z.outerHTML:z.data),W===b.staticCount-1&&(b.anchor=z),z=r(z);return O?r(z):z}else x();break;case De:O?z=m(g,b,S,A,C,T):z=x();break;default:if(j&1)(te!==1||b.type.toLowerCase()!==g.tagName.toLowerCase())&&!_(g)?z=x():z=d(g,b,S,A,C,T);else if(j&6){b.slotScopeIds=C;const J=o(g);if(O?z=E(g):Us(g)&&g.data==="teleport start"?z=E(g,g.data,"teleport end"):z=r(g),t(b,J,null,S,A,er(J),T),es(b)){let W;O?(W=xe(De),W.anchor=z?z.previousSibling:J.lastChild):W=g.nodeType===3?Ta(""):xe("div"),W.el=g,b.component.subTree=W}}else j&64?te!==8?z=x():z=b.type.hydrate(g,b,S,A,C,T,e,p):j&128?z=b.type.hydrate(g,b,S,A,er(o(g)),C,T,e,u):M("Invalid HostVNode type:",N,`(${typeof N})`)}return I!=null&&Rr(I,null,A,b),z},d=(g,b,S,A,C,T)=>{T=T||!!b.dynamicChildren;const{type:O,props:x,patchFlag:N,shapeFlag:I,dirs:j,transition:G}=b,te=O==="input"||O==="option";{j&&Lt(b,null,S,"created");let z=!1;if(_(g)){z=Rd(A,G)&&S&&S.vnode.props&&S.vnode.props.appear;const W=g.content.firstChild;z&&G.beforeEnter(W),y(W,g,S),b.el=g=W}if(I&16&&!(x&&(x.innerHTML||x.textContent))){let W=p(g.firstChild,b,g,S,A,C,T),Fe=!1;for(;W;){Wt=!0,Fe||(M("Hydration children mismatch on",g,`
Server rendered element contains more child nodes than client vdom.`),Fe=!0);const Ye=W;W=W.nextSibling,l(Ye)}}else I&8&&g.textContent!==b.children&&(Wt=!0,M("Hydration text content mismatch on",g,`
- rendered on server: ${g.textContent}
- expected on client: ${b.children}`),g.textContent=b.children);if(x)for(const W in x)Gy(g,W,x[W],b,S)&&(Wt=!0),(te&&(W.endsWith("value")||W==="indeterminate")||nn(W)&&!Cn(W)||W[0]===".")&&s(g,W,null,x[W],void 0,void 0,S);let J;(J=x&&x.onVnodeBeforeMount)&&at(J,S,b),j&&Lt(b,null,S,"beforeMount"),((J=x&&x.onVnodeMounted)||j||z)&&Xf(()=>{J&&at(J,S,b),z&&G.enter(g),j&&Lt(b,null,S,"mounted")},A)}return g.nextSibling},p=(g,b,S,A,C,T,O)=>{O=O||!!b.dynamicChildren;const x=b.children,N=x.length;let I=!1;for(let j=0;j<N;j++){const G=O?x[j]:x[j]=ut(x[j]);if(g)g=u(g,G,A,C,T,O);else{if(G.type===kn&&!G.children)continue;Wt=!0,I||(M("Hydration children mismatch on",S,`
Server rendered element contains fewer child nodes than client vdom.`),I=!0),n(null,G,S,null,A,C,er(S),T)}}return g},m=(g,b,S,A,C,T)=>{const{slotScopeIds:O}=b;O&&(C=C?C.concat(O):O);const x=o(g),N=p(r(g),b,x,S,A,C,T);return N&&Us(N)&&N.data==="]"?r(b.anchor=N):(Wt=!0,a(b.anchor=c("]"),x,N),N)},w=(g,b,S,A,C,T)=>{if(Wt=!0,M(`Hydration node mismatch:
- rendered on server:`,g,g.nodeType===3?"(text)":Us(g)&&g.data==="["?"(start of fragment)":"",`
- expected on client:`,b.type),b.el=null,T){const N=E(g);for(;;){const I=r(g);if(I&&I!==N)l(I);else break}}const O=r(g),x=o(g);return l(g),n(null,b,x,O,S,A,er(x),C),O},E=(g,b="[",S="]")=>{let A=0;for(;g;)if(g=r(g),g&&Us(g)&&(g.data===b&&A++,g.data===S)){if(A===0)return r(g);A--}return g},y=(g,b,S)=>{const A=b.parentNode;A&&A.replaceChild(g,b);let C=S;for(;C;)C.vnode.el===b&&(C.vnode.el=C.subTree.el=g),C=C.parent},_=g=>g.nodeType===1&&g.tagName.toLowerCase()==="template";return[f,u]}function Gy(e,t,n,s,i){var r;let o,l,a,c;if(t==="class")a=e.getAttribute("class"),c=Vs(n),Yy(Bc(a||""),Bc(c))||(o=l="class");else if(t==="style"){a=e.getAttribute("style"),c=ee(n)?n:wm(Ds(n));const f=Hc(a),u=Hc(c);if(s.dirs)for(const{dir:p,value:m}of s.dirs)p.name==="show"&&!m&&u.set("display","none");const d=i==null?void 0:i.subTree;if(s===d||(d==null?void 0:d.type)===De&&d.children.includes(s)){const p=(r=i==null?void 0:i.getCssVars)==null?void 0:r.call(i);for(const m in p)u.set(`--${m}`,String(p[m]))}Jy(f,u)||(o=l="style")}else(e instanceof SVGElement&&Nm(t)||e instanceof HTMLElement&&(yc(t)||Im(t)))&&(yc(t)?(a=e.hasAttribute(t),c=Yl(n)):n==null?(a=e.hasAttribute(t),c=!1):(e.hasAttribute(t)?a=e.getAttribute(t):t==="value"&&e.tagName==="TEXTAREA"?a=e.value:a=!1,c=km(n)?String(n):!1),a!==c&&(o="attribute",l=t));if(o){const f=p=>p===!1?"(not rendered)":`${l}="${p}"`,u=`Hydration ${o} mismatch on`,d=`
- rendered on server: ${f(a)}
- expected on client: ${f(c)}
Note: this mismatch is check-only. The DOM will not be rectified in production due to performance overhead.
You should fix the source of the mismatch.`;return M(u,e,d),!0}return!1}function Bc(e){return new Set(e.trim().split(/\s+/))}function Yy(e,t){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}function Hc(e){const t=new Map;for(const n of e.split(";")){let[s,i]=n.split(":");s=s==null?void 0:s.trim(),i=i==null?void 0:i.trim(),s&&i&&t.set(s,i)}return t}function Jy(e,t){if(e.size!==t.size)return!1;for(const[n,s]of e)if(s!==t.get(n))return!1;return!0}let Ks,Sn;function Gt(e,t){e.appContext.config.performance&&Ir()&&Sn.mark(`vue-${t}-${e.uid}`),kg(e,t,Ir()?Sn.now():Date.now())}function Yt(e,t){if(e.appContext.config.performance&&Ir()){const n=`vue-${t}-${e.uid}`,s=n+":end";Sn.mark(s),Sn.measure(`<${po(e,e.type)}> ${t}`,n,s),Sn.clearMarks(n),Sn.clearMarks(s)}Pg(e,t,Ir()?Sn.now():Date.now())}function Ir(){return Ks!==void 0||(typeof window<"u"&&window.performance?(Ks=!0,Sn=window.performance):Ks=!1),Ks}function Xy(){const e=[];if(e.length){const t=e.length>1;console.warn(`Feature flag${t?"s":""} ${e.join(", ")} ${t?"are":"is"} not explicitly defined. You are running the esm-bundler build of Vue, which expects these compile-time feature flags to be globally injected via the bundler config in order to get better tree-shaking in the production bundle.
For more details, see https://link.vuejs.org/feature-flags.`)}}const We=Xf;function xd(e){return Ad(e)}function Od(e){return Ad(e,zy)}function Ad(e,t){Xy();const n=zl();n.__VUE__=!0,ua(n.__VUE_DEVTOOLS_GLOBAL_HOOK__,n);const{insert:s,remove:i,patchProp:r,createElement:o,createText:l,createComment:a,setText:c,setElementText:f,parentNode:u,nextSibling:d,setScopeId:p=Me,insertStaticContent:m}=e,w=(h,v,R,P=null,$=null,D=null,B=void 0,L=null,V=An?!1:!!v.dynamicChildren)=>{if(h===v)return;h&&!At(h,v)&&(P=K(h),vt(h,$,D,!0),h=null),v.patchFlag===-2&&(V=!1,v.dynamicChildren=null);const{type:F,ref:q,shapeFlag:Z}=v;switch(F){case kn:E(h,v,R,P);break;case $e:y(h,v,R,P);break;case Rn:h==null?_(v,R,P,B):g(h,v,R,B);break;case De:j(h,v,R,P,$,D,B,L,V);break;default:Z&1?A(h,v,R,P,$,D,B,L,V):Z&6?G(h,v,R,P,$,D,B,L,V):Z&64||Z&128?F.process(h,v,R,P,$,D,B,L,V,ue):M("Invalid VNode type:",F,`(${typeof F})`)}q!=null&&$&&Rr(q,h&&h.ref,D,v||h,!v)},E=(h,v,R,P)=>{if(h==null)s(v.el=l(v.children),R,P);else{const $=v.el=h.el;v.children!==h.children&&c($,v.children)}},y=(h,v,R,P)=>{h==null?s(v.el=a(v.children||""),R,P):v.el=h.el},_=(h,v,R,P)=>{[h.el,h.anchor]=m(h.children,v,R,P,h.el,h.anchor)},g=(h,v,R,P)=>{if(v.children!==h.children){const $=d(h.anchor);S(h),[v.el,v.anchor]=m(v.children,R,$,P)}else v.el=h.el,v.anchor=h.anchor},b=({el:h,anchor:v},R,P)=>{let $;for(;h&&h!==v;)$=d(h),s(h,R,P),h=$;s(v,R,P)},S=({el:h,anchor:v})=>{let R;for(;h&&h!==v;)R=d(h),i(h),h=R;i(v)},A=(h,v,R,P,$,D,B,L,V)=>{v.type==="svg"?B="svg":v.type==="math"&&(B="mathml"),h==null?C(v,R,P,$,D,B,L,V):x(h,v,$,D,B,L,V)},C=(h,v,R,P,$,D,B,L)=>{let V,F;const{props:q,shapeFlag:Z,transition:X,dirs:ie}=h;if(V=h.el=o(h.type,D,q&&q.is,q),Z&8?f(V,h.children):Z&16&&O(h.children,V,null,P,$,Io(h,D),B,L),ie&&Lt(h,null,P,"created"),T(V,h,h.scopeId,B,P),q){for(const _e in q)_e!=="value"&&!Cn(_e)&&r(V,_e,null,q[_e],D,h.children,P,$,k);"value"in q&&r(V,"value",null,q.value,D),(F=q.onVnodeBeforeMount)&&at(F,P,h)}Object.defineProperty(V,"__vnode",{value:h,enumerable:!1}),Object.defineProperty(V,"__vueParentComponent",{value:P,enumerable:!1}),ie&&Lt(h,null,P,"beforeMount");const pe=Rd($,X);pe&&X.beforeEnter(V),s(V,v,R),((F=q&&q.onVnodeMounted)||pe||ie)&&We(()=>{F&&at(F,P,h),pe&&X.enter(V),ie&&Lt(h,null,P,"mounted")},$)},T=(h,v,R,P,$)=>{if(R&&p(h,R),P)for(let D=0;D<P.length;D++)p(h,P[D]);if($){let D=$.subTree;if(D.patchFlag>0&&D.patchFlag&2048&&(D=ro(D.children)||D),v===D){const B=$.vnode;T(h,B,B.scopeId,B.slotScopeIds,$.parent)}}},O=(h,v,R,P,$,D,B,L,V=0)=>{for(let F=V;F<h.length;F++){const q=h[F]=L?gn(h[F]):ut(h[F]);w(null,q,v,R,P,$,D,B,L)}},x=(h,v,R,P,$,D,B)=>{const L=v.el=h.el;let{patchFlag:V,dynamicChildren:F,dirs:q}=v;V|=h.patchFlag&16;const Z=h.props||me,X=v.props||me;let ie;if(R&&Vn(R,!1),(ie=X.onVnodeBeforeUpdate)&&at(ie,R,v,h),q&&Lt(v,h,R,"beforeUpdate"),R&&Vn(R,!0),An&&(V=0,B=!1,F=null),F?(N(h.dynamicChildren,F,L,R,P,Io(v,$),D),Nr(h,v)):B||Fe(h,v,L,null,R,P,Io(v,$),D,!1),V>0){if(V&16)I(L,v,Z,X,R,P,$);else if(V&2&&Z.class!==X.class&&r(L,"class",null,X.class,$),V&4&&r(L,"style",Z.style,X.style,$),V&8){const pe=v.dynamicProps;for(let _e=0;_e<pe.length;_e++){const Ae=pe[_e],je=Z[Ae],xt=X[Ae];(xt!==je||Ae==="value")&&r(L,Ae,je,xt,$,h.children,R,P,k)}}V&1&&h.children!==v.children&&f(L,v.children)}else!B&&F==null&&I(L,v,Z,X,R,P,$);((ie=X.onVnodeUpdated)||q)&&We(()=>{ie&&at(ie,R,v,h),q&&Lt(v,h,R,"updated")},P)},N=(h,v,R,P,$,D,B)=>{for(let L=0;L<v.length;L++){const V=h[L],F=v[L],q=V.el&&(V.type===De||!At(V,F)||V.shapeFlag&70)?u(V.el):R;w(V,F,q,null,P,$,D,B,!0)}},I=(h,v,R,P,$,D,B)=>{if(R!==P){if(R!==me)for(const L in R)!Cn(L)&&!(L in P)&&r(h,L,R[L],null,B,v.children,$,D,k);for(const L in P){if(Cn(L))continue;const V=P[L],F=R[L];V!==F&&L!=="value"&&r(h,L,F,V,B,v.children,$,D,k)}"value"in P&&r(h,"value",R.value,P.value,B)}},j=(h,v,R,P,$,D,B,L,V)=>{const F=v.el=h?h.el:l(""),q=v.anchor=h?h.anchor:l("");let{patchFlag:Z,dynamicChildren:X,slotScopeIds:ie}=v;(An||Z&2048)&&(Z=0,V=!1,X=null),ie&&(L=L?L.concat(ie):ie),h==null?(s(F,R,P),s(q,R,P),O(v.children||[],R,q,$,D,B,L,V)):Z>0&&Z&64&&X&&h.dynamicChildren?(N(h.dynamicChildren,X,R,$,D,B,L),Nr(h,v)):Fe(h,v,R,q,$,D,B,L,V)},G=(h,v,R,P,$,D,B,L,V)=>{v.slotScopeIds=L,h==null?v.shapeFlag&512?$.ctx.activate(v,R,P,B,V):te(v,R,P,$,D,B,V):z(h,v,V)},te=(h,v,R,P,$,D,B)=>{const L=h.component=Dd(h,P,$);if(L.type.__hmrId&&Cg(L),Qs(h),Gt(L,"mount"),Bs(h)&&(L.ctx.renderer=ue),Gt(L,"init"),jd(L),Yt(L,"init"),L.asyncDep){if($&&$.registerDep(L,J),!h.el){const V=L.subTree=xe($e);y(null,V,v,R)}}else J(L,h,v,R,$,D,B);Zs(),Yt(L,"mount")},z=(h,v,R)=>{const P=v.component=h.component;if(Bg(h,v,R))if(P.asyncDep&&!P.asyncResolved){Qs(v),W(P,v,R),Zs();return}else P.next=v,wg(P.update),P.effect.dirty=!0,P.update();else v.el=h.el,P.vnode=v},J=(h,v,R,P,$,D,B)=>{const L=()=>{if(h.isMounted){let{next:q,bu:Z,u:X,parent:ie,vnode:pe}=h;{const fs=Id(h);if(fs){q&&(q.el=pe.el,W(h,q,B)),fs.asyncDep.then(()=>{h.isUnmounted||L()});return}}let _e=q,Ae;Qs(q||h.vnode),Vn(h,!1),q?(q.el=pe.el,W(h,q,B)):q=pe,Z&&_n(Z),(Ae=q.props&&q.props.onVnodeBeforeUpdate)&&at(Ae,ie,q,pe),Vn(h,!0),Gt(h,"render");const je=dr(h);Yt(h,"render");const xt=h.subTree;h.subTree=je,Gt(h,"patch"),w(xt,je,u(xt.el),K(xt),h,$,D),Yt(h,"patch"),q.el=je.el,_e===null&&pa(h,je.el),X&&We(X,$),(Ae=q.props&&q.props.onVnodeUpdated)&&We(()=>at(Ae,ie,q,pe),$),qf(h),Zs()}else{let q;const{el:Z,props:X}=v,{bm:ie,m:pe,parent:_e}=h,Ae=es(v);if(Vn(h,!1),ie&&_n(ie),!Ae&&(q=X&&X.onVnodeBeforeMount)&&at(q,_e,v),Vn(h,!0),Z&&le){const je=()=>{Gt(h,"render"),h.subTree=dr(h),Yt(h,"render"),Gt(h,"hydrate"),le(Z,h.subTree,h,$,null),Yt(h,"hydrate")};Ae?v.type.__asyncLoader().then(()=>!h.isUnmounted&&je()):je()}else{Gt(h,"render");const je=h.subTree=dr(h);Yt(h,"render"),Gt(h,"patch"),w(null,je,R,P,h,$,D),Yt(h,"patch"),v.el=je.el}if(pe&&We(pe,$),!Ae&&(q=X&&X.onVnodeMounted)){const je=v;We(()=>at(q,_e,je),$)}(v.shapeFlag&256||_e&&es(_e.vnode)&&_e.vnode.shapeFlag&256)&&h.a&&We(h.a,$),h.isMounted=!0,Zo(h),v=R=P=null}},V=h.effect=new Cs(L,Me,()=>Ni(F),h.scope),F=h.update=()=>{V.dirty&&V.run()};F.id=h.uid,Vn(h,!0),V.onTrack=h.rtc?q=>_n(h.rtc,q):void 0,V.onTrigger=h.rtg?q=>_n(h.rtg,q):void 0,F.ownerInstance=h,F()},W=(h,v,R)=>{v.component=h;const P=h.vnode.props;h.vnode=v,h.next=null,Fy(h,v.props,P,R),Ky(h,v.children,R),$n(),Tc(h),Fn()},Fe=(h,v,R,P,$,D,B,L,V=!1)=>{const F=h&&h.children,q=h?h.shapeFlag:0,Z=v.children,{patchFlag:X,shapeFlag:ie}=v;if(X>0){if(X&128){rt(F,Z,R,P,$,D,B,L,V);return}else if(X&256){Ye(F,Z,R,P,$,D,B,L,V);return}}ie&8?(q&16&&k(F,$,D),Z!==F&&f(R,Z)):q&16?ie&16?rt(F,Z,R,P,$,D,B,L,V):k(F,$,D,!0):(q&8&&f(R,""),ie&16&&O(Z,R,P,$,D,B,L,V))},Ye=(h,v,R,P,$,D,B,L,V)=>{h=h||ms,v=v||ms;const F=h.length,q=v.length,Z=Math.min(F,q);let X;for(X=0;X<Z;X++){const ie=v[X]=V?gn(v[X]):ut(v[X]);w(h[X],ie,R,null,$,D,B,L,V)}F>q?k(h,$,D,!0,!1,Z):O(v,R,P,$,D,B,L,V,Z)},rt=(h,v,R,P,$,D,B,L,V)=>{let F=0;const q=v.length;let Z=h.length-1,X=q-1;for(;F<=Z&&F<=X;){const ie=h[F],pe=v[F]=V?gn(v[F]):ut(v[F]);if(At(ie,pe))w(ie,pe,R,null,$,D,B,L,V);else break;F++}for(;F<=Z&&F<=X;){const ie=h[Z],pe=v[X]=V?gn(v[X]):ut(v[X]);if(At(ie,pe))w(ie,pe,R,null,$,D,B,L,V);else break;Z--,X--}if(F>Z){if(F<=X){const ie=X+1,pe=ie<q?v[ie].el:P;for(;F<=X;)w(null,v[F]=V?gn(v[F]):ut(v[F]),R,pe,$,D,B,L,V),F++}}else if(F>X)for(;F<=Z;)vt(h[F],$,D,!0),F++;else{const ie=F,pe=F,_e=new Map;for(F=pe;F<=X;F++){const nt=v[F]=V?gn(v[F]):ut(v[F]);nt.key!=null&&(_e.has(nt.key)&&M("Duplicate keys found during update:",JSON.stringify(nt.key),"Make sure keys are unique."),_e.set(nt.key,F))}let Ae,je=0;const xt=X-pe+1;let fs=!1,fc=0;const Hs=new Array(xt);for(F=0;F<xt;F++)Hs[F]=0;for(F=ie;F<=Z;F++){const nt=h[F];if(je>=xt){vt(nt,$,D,!0);continue}let $t;if(nt.key!=null)$t=_e.get(nt.key);else for(Ae=pe;Ae<=X;Ae++)if(Hs[Ae-pe]===0&&At(nt,v[Ae])){$t=Ae;break}$t===void 0?vt(nt,$,D,!0):(Hs[$t-pe]=F+1,$t>=fc?fc=$t:fs=!0,w(nt,v[$t],R,null,$,D,B,L,V),je++)}const dc=fs?Qy(Hs):ms;for(Ae=dc.length-1,F=xt-1;F>=0;F--){const nt=pe+F,$t=v[nt],pc=nt+1<q?v[nt+1].el:P;Hs[F]===0?w(null,$t,R,pc,$,D,B,L,V):fs&&(Ae<0||F!==dc[Ae]?Mt($t,R,pc,2):Ae--)}}},Mt=(h,v,R,P,$=null)=>{const{el:D,type:B,transition:L,children:V,shapeFlag:F}=h;if(F&6){Mt(h.component.subTree,v,R,P);return}if(F&128){h.suspense.move(v,R,P);return}if(F&64){B.move(h,v,R,ue);return}if(B===De){s(D,v,R);for(let Z=0;Z<V.length;Z++)Mt(V[Z],v,R,P);s(h.anchor,v,R);return}if(B===Rn){b(h,v,R);return}if(P!==2&&F&1&&L)if(P===0)L.beforeEnter(D),s(D,v,R),We(()=>L.enter(D),$);else{const{leave:Z,delayLeave:X,afterLeave:ie}=L,pe=()=>s(D,v,R),_e=()=>{Z(D,()=>{pe(),ie&&ie()})};X?X(D,pe,_e):_e()}else s(D,v,R)},vt=(h,v,R,P=!1,$=!1)=>{const{type:D,props:B,ref:L,children:V,dynamicChildren:F,shapeFlag:q,patchFlag:Z,dirs:X}=h;if(L!=null&&Rr(L,null,R,h,!0),q&256){v.ctx.deactivate(h);return}const ie=q&1&&X,pe=!es(h);let _e;if(pe&&(_e=B&&B.onVnodeBeforeUnmount)&&at(_e,v,h),q&6)an(h.component,R,P);else{if(q&128){h.suspense.unmount(R,P);return}ie&&Lt(h,null,v,"beforeUnmount"),q&64?h.type.remove(h,v,R,$,ue,P):F&&(D!==De||Z>0&&Z&64)?k(F,v,R,!1,!0):(D===De&&Z&384||!$&&q&16)&&k(V,v,R),P&&ln(h)}(pe&&(_e=B&&B.onVnodeUnmounted)||ie)&&We(()=>{_e&&at(_e,v,h),ie&&Lt(h,null,v,"unmounted")},R)},ln=h=>{const{type:v,el:R,anchor:P,transition:$}=h;if(v===De){h.patchFlag>0&&h.patchFlag&2048&&$&&!$.persisted?h.children.forEach(B=>{B.type===$e?i(B.el):ln(B)}):Wi(R,P);return}if(v===Rn){S(h);return}const D=()=>{i(R),$&&!$.persisted&&$.afterLeave&&$.afterLeave()};if(h.shapeFlag&1&&$&&!$.persisted){const{leave:B,delayLeave:L}=$,V=()=>B(R,D);L?L(h.el,D,V):V()}else D()},Wi=(h,v)=>{let R;for(;h!==v;)R=d(h),i(h),h=R;i(v)},an=(h,v,R)=>{h.type.__hmrId&&Tg(h);const{bum:P,scope:$,update:D,subTree:B,um:L}=h;P&&_n(P),$.stop(),D&&(D.active=!1,vt(B,h,v,R)),L&&We(L,v),We(()=>{h.isUnmounted=!0},v),v&&v.pendingBranch&&!v.isUnmounted&&h.asyncDep&&!h.asyncResolved&&h.suspenseId===v.pendingId&&(v.deps--,v.deps===0&&v.resolve()),Ng(h)},k=(h,v,R,P=!1,$=!1,D=0)=>{for(let B=D;B<h.length;B++)vt(h[B],v,R,P,$)},K=h=>h.shapeFlag&6?K(h.component.subTree):h.shapeFlag&128?h.suspense.next():d(h.anchor||h.el);let U=!1;const Y=(h,v,R)=>{h==null?v._vnode&&vt(v._vnode,null,null,!0):w(v._vnode||null,h,v,null,null,null,R),U||(U=!0,Tc(),Tr(),U=!1),v._vnode=h},ue={p:w,um:vt,m:Mt,r:ln,mt:te,mc:O,pc:Fe,pbc:N,n:K,o:e};let Oe,le;return t&&([Oe,le]=t(ue)),{render:Y,hydrate:Oe,createApp:ky(Y,Oe)}}function Io({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Vn({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Rd(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Nr(e,t,n=!1){const s=e.children,i=t.children;if(H(s)&&H(i))for(let r=0;r<s.length;r++){const o=s[r];let l=i[r];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=i[r]=gn(i[r]),l.el=o.el),n||Nr(o,l)),l.type===kn&&(l.el=o.el),l.type===$e&&!l.el&&(l.el=o.el)}}function Qy(e){const t=e.slice(),n=[0];let s,i,r,o,l;const a=e.length;for(s=0;s<a;s++){const c=e[s];if(c!==0){if(i=n[n.length-1],e[i]<c){t[s]=i,n.push(s);continue}for(r=0,o=n.length-1;r<o;)l=r+o>>1,e[n[l]]<c?r=l+1:o=l;c<e[n[r]]&&(r>0&&(t[s]=n[r-1]),n[r]=s)}}for(r=n.length,o=n[r-1];r-- >0;)n[r]=o,o=t[o];return n}function Id(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Id(t)}const Zy=e=>e.__isTeleport,Ss=e=>e&&(e.disabled||e.disabled===""),Uc=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Kc=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,ll=(e,t)=>{const n=e&&e.to;if(ee(n))if(t){const s=t(n);return s||M(`Failed to locate Teleport target with selector "${n}". Note the target element must exist before the component is mounted - i.e. the target cannot be rendered by the component itself, and ideally should be outside of the entire Vue component tree.`),s}else return M("Current renderer does not support string target for Teleports. (missing querySelector renderer option)"),null;else return!n&&!Ss(e)&&M(`Invalid Teleport target: ${n}`),n},ev={name:"Teleport",__isTeleport:!0,process(e,t,n,s,i,r,o,l,a,c){const{mc:f,pc:u,pbc:d,o:{insert:p,querySelector:m,createText:w,createComment:E}}=c,y=Ss(t.props);let{shapeFlag:_,children:g,dynamicChildren:b}=t;if(An&&(a=!1,b=null),e==null){const S=t.el=E("teleport start"),A=t.anchor=E("teleport end");p(S,n,s),p(A,n,s);const C=t.target=ll(t.props,m),T=t.targetAnchor=w("");C?(p(T,C),o==="svg"||Uc(C)?o="svg":(o==="mathml"||Kc(C))&&(o="mathml")):y||M("Invalid Teleport target on mount:",C,`(${typeof C})`);const O=(x,N)=>{_&16&&f(g,x,N,i,r,o,l,a)};y?O(n,A):C&&O(C,T)}else{t.el=e.el;const S=t.anchor=e.anchor,A=t.target=e.target,C=t.targetAnchor=e.targetAnchor,T=Ss(e.props),O=T?n:A,x=T?S:C;if(o==="svg"||Uc(A)?o="svg":(o==="mathml"||Kc(A))&&(o="mathml"),b?(d(e.dynamicChildren,b,O,i,r,o,l),Nr(e,t,!0)):a||u(e,t,O,x,i,r,o,l,!1),y)T?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):tr(t,n,S,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const N=t.target=ll(t.props,m);N?tr(t,N,null,c,0):M("Invalid Teleport target on update:",A,`(${typeof A})`)}else T&&tr(t,A,C,c,1)}Nd(t)},remove(e,t,n,s,{um:i,o:{remove:r}},o){const{shapeFlag:l,children:a,anchor:c,targetAnchor:f,target:u,props:d}=e;if(u&&r(f),o&&r(c),l&16){const p=o||!Ss(d);for(let m=0;m<a.length;m++){const w=a[m];i(w,t,n,p,!!w.dynamicChildren)}}},move:tr,hydrate:tv};function tr(e,t,n,{o:{insert:s},m:i},r=2){r===0&&s(e.targetAnchor,t,n);const{el:o,anchor:l,shapeFlag:a,children:c,props:f}=e,u=r===2;if(u&&s(o,t,n),(!u||Ss(f))&&a&16)for(let d=0;d<c.length;d++)i(c[d],t,n,2);u&&s(l,t,n)}function tv(e,t,n,s,i,r,{o:{nextSibling:o,parentNode:l,querySelector:a}},c){const f=t.target=ll(t.props,a);if(f){const u=f._lpa||f.firstChild;if(t.shapeFlag&16)if(Ss(t.props))t.anchor=c(o(e),t,l(e),n,s,i,r),t.targetAnchor=u;else{t.anchor=o(e);let d=u;for(;d;)if(d=o(d),d&&d.nodeType===8&&d.data==="teleport anchor"){t.targetAnchor=d,f._lpa=t.targetAnchor&&o(t.targetAnchor);break}c(u,t,f,n,s,i,r)}Nd(t)}return t.anchor&&o(t.anchor)}const nv=ev;function Nd(e){const t=e.ctx;if(t&&t.ut){let n=e.children[0].el;for(;n&&n!==e.targetAnchor;)n.nodeType===1&&n.setAttribute("data-v-owner",t.uid),n=n.nextSibling;t.ut()}}const De=Symbol.for("v-fgt"),kn=Symbol.for("v-txt"),$e=Symbol.for("v-cmt"),Rn=Symbol.for("v-stc"),ni=[];let ft=null;function co(e=!1){ni.push(ft=e?null:[])}function kd(){ni.pop(),ft=ni[ni.length-1]||null}let rs=1;function al(e){rs+=e}function Pd(e){return e.dynamicChildren=rs>0?ft||ms:null,kd(),rs>0&&ft&&ft.push(e),e}function sv(e,t,n,s,i,r){return Pd(Ca(e,t,n,s,i,r,!0))}function Ea(e,t,n,s,i){return Pd(xe(e,t,n,s,i,!0))}function rn(e){return e?e.__v_isVNode===!0:!1}function At(e,t){return t.shapeFlag&6&&hs.has(t.type)?(e.shapeFlag&=-257,t.shapeFlag&=-513,!1):e.type===t.type&&e.key===t.key}let cl;function iv(e){cl=e}const rv=(...e)=>ov(...cl?cl(e,Re):e),uo="__vInternal",Md=({key:e})=>e??null,pr=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ee(e)||Te(e)||Q(e)?{i:Re,r:e,k:t,f:!!n}:e:null);function Ca(e,t=null,n=null,s=0,i=null,r=e===De?0:1,o=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Md(t),ref:t&&pr(t),scopeId:io,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:s,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Re};return l?(xa(a,n),r&128&&e.normalize(a)):n&&(a.shapeFlag|=ee(n)?8:16),a.key!==a.key&&M("VNode created with invalid key (NaN). VNode type:",a.type),rs>0&&!o&&ft&&(a.patchFlag>0||r&6)&&a.patchFlag!==32&&ft.push(a),a}const xe=rv;function ov(e,t=null,n=null,s=0,i=null,r=!1){if((!e||e===ha)&&(e||M(`Invalid vnode type when creating vnode: ${e}.`),e=$e),rn(e)){const l=Tt(e,t,!0);return n&&xa(l,n),rs>0&&!r&&ft&&(l.shapeFlag&6?ft[ft.indexOf(e)]=l:ft.push(l)),l.patchFlag|=-2,l}if(Kd(e)&&(e=e.__vccOpts),t){t=$d(t);let{class:l,style:a}=t;l&&!ee(l)&&(t.class=Vs(l)),he(a)&&(di(a)&&!H(a)&&(a=ce({},a)),t.style=Ds(a))}const o=ee(e)?1:Jf(e)?128:Zy(e)?64:he(e)?4:Q(e)?2:0;return o&4&&di(e)&&(e=se(e),M("Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",`
Component that was made reactive: `,e)),Ca(e,t,n,s,i,o,r,!0)}function $d(e){return e?di(e)||uo in e?ce({},e):e:null}function Tt(e,t,n=!1){const{props:s,ref:i,patchFlag:r,children:o}=e,l=t?Ld(s||{},t):s;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Md(l),ref:t&&t.ref?n&&i?H(i)?i.concat(pr(t)):[i,pr(t)]:pr(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:r===-1&&H(o)?o.map(Fd):o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==De?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Tt(e.ssContent),ssFallback:e.ssFallback&&Tt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Fd(e){const t=Tt(e);return H(e.children)&&(t.children=e.children.map(Fd)),t}function Ta(e=" ",t=0){return xe(kn,null,e,t)}function lv(e,t){const n=xe(Rn,null,e);return n.staticCount=t,n}function av(e="",t=!1){return t?(co(),Ea($e,null,e)):xe($e,null,e)}function ut(e){return e==null||typeof e=="boolean"?xe($e):H(e)?xe(De,null,e.slice()):typeof e=="object"?gn(e):xe(kn,null,String(e))}function gn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Tt(e)}function xa(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(H(t))n=16;else if(typeof t=="object")if(s&65){const i=t.default;i&&(i._c&&(i._d=!1),xa(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!(uo in t)?t._ctx=Re:i===3&&Re&&(Re.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Q(t)?(t={default:t,_ctx:Re},n=32):(t=String(t),s&64?(n=16,t=[Ta(t)]):n=8);e.children=t,e.shapeFlag|=n}function Ld(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const i in s)if(i==="class")t.class!==s.class&&(t.class=Vs([t.class,s.class]));else if(i==="style")t.style=Ds([t.style,s.style]);else if(nn(i)){const r=t[i],o=s[i];o&&r!==o&&!(H(r)&&r.includes(o))&&(t[i]=r?[].concat(r,o):o)}else i!==""&&(t[i]=s[i])}return t}function at(e,t,n,s=null){mt(e,t,7,[n,s])}const cv=bd();let uv=0;function Dd(e,t,n){const s=e.type,i=(t?t.appContext:e.appContext)||cv,r={uid:uv++,vnode:e,type:s,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new Jl(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Sd(s,i),emitsOptions:zf(s,i),emit:null,emitted:null,propsDefaults:me,inheritAttrs:s.inheritAttrs,ctx:me,data:me,props:me,attrs:me,slots:me,refs:me,setupState:me,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return r.ctx=uy(r),r.root=t?t.root:r,r.emit=$g.bind(null,r),e.ce&&e.ce(r),r}let Pe=null;const Ge=()=>Pe||Re;let kr,ul;{const e=zl(),t=(n,s)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(s),r=>{i.length>1?i.forEach(o=>o(r)):i[0](r)}};kr=t("__VUE_INSTANCE_SETTERS__",n=>Pe=n),ul=t("__VUE_SSR_SETTERS__",n=>Fi=n)}const os=e=>{const t=Pe;return kr(e),e.scope.on(),()=>{e.scope.off(),kr(t)}},fl=()=>{Pe&&Pe.scope.off(),kr(null)},fv=Ue("slot,component");function dl(e,{isNativeTag:t}){(fv(e)||t(e))&&M("Do not use built-in or reserved HTML elements as component id: "+e)}function Vd(e){return e.vnode.shapeFlag&4}let Fi=!1;function jd(e,t=!1){t&&ul(t);const{props:n,children:s}=e.vnode,i=Vd(e);My(e,n,i,t),Uy(e,s);const r=i?dv(e,t):void 0;return t&&ul(!1),r}function dv(e,t){var n;const s=e.type;{if(s.name&&dl(s.name,e.appContext.config),s.components){const r=Object.keys(s.components);for(let o=0;o<r.length;o++)dl(r[o],e.appContext.config)}if(s.directives){const r=Object.keys(s.directives);for(let o=0;o<r.length;o++)sd(r[o])}s.compilerOptions&&Oa()&&M('"compilerOptions" is only supported when using a build of Vue that includes the runtime compiler. Since you are using a runtime-only build, the options should be passed via your build tool config instead.')}e.accessCache=Object.create(null),e.proxy=na(new Proxy(e.ctx,ti)),fy(e);const{setup:i}=s;if(i){const r=e.setupContext=i.length>1?Ud(e):null,o=os(e);$n();const l=Ht(i,e,0,[qn(e.props),r]);if(Fn(),o(),Yr(l)){if(l.then(fl,fl),t)return l.then(a=>{pl(e,a,t)}).catch(a=>{Ln(a,e,0)});if(e.asyncDep=l,!e.suspense){const a=(n=s.name)!=null?n:"Anonymous";M(`Component <${a}>: setup function returned a promise, but no <Suspense> boundary was found in the parent component tree. A component with async setup() must be nested in a <Suspense> in order to be rendered.`)}}else pl(e,l,t)}else Hd(e,t)}function pl(e,t,n){Q(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:he(t)?(rn(t)&&M("setup() should not return VNodes directly - return a render function instead."),e.devtoolsRawSetupState=t,e.setupState=oa(t),dy(e)):t!==void 0&&M(`setup() should return an object. Received: ${t===null?"null":typeof t}`),Hd(e,n)}let si,hl;function Bd(e){si=e,hl=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,cy))}}const Oa=()=>!si;function Hd(e,t,n){const s=e.type;if(!e.render){if(!t&&si&&!s.render){const i=s.template||Sa(e).template;if(i){Gt(e,"compile");const{isCustomElement:r,compilerOptions:o}=e.appContext.config,{delimiters:l,compilerOptions:a}=s,c=ce(ce({isCustomElement:r,delimiters:l},o),a);s.render=si(i,c),Yt(e,"compile")}}e.render=s.render||Me,hl&&hl(e)}{const i=os(e);$n();try{xy(e)}finally{Fn(),i()}}!s.render&&e.render===Me&&!t&&(!si&&s.template?M('Component provided template option but runtime compilation is not supported in this build of Vue. Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".'):M("Component is missing template or render function."))}function pv(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return xr(),tt(e,"get","$attrs"),t[n]},set(){return M("setupContext.attrs is readonly."),!1},deleteProperty(){return M("setupContext.attrs is readonly."),!1}}))}function hv(e){return e.slotsProxy||(e.slotsProxy=new Proxy(e.slots,{get(t,n){return tt(e,"get","$slots"),t[n]}}))}function Ud(e){return Object.freeze({get attrs(){return pv(e)},get slots(){return hv(e)},get emit(){return(n,...s)=>e.emit(n,...s)},expose:n=>{if(e.exposed&&M("expose() should be called only once per setup()."),n!=null){let s=typeof n;s==="object"&&(H(n)?s="array":Te(n)&&(s="ref")),s!=="object"&&M(`expose() should be passed a plain object, received ${s}.`)}e.exposed=n||{}}})}function fo(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(oa(na(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ts)return ts[n](e)},has(t,n){return n in t||n in ts}}))}const mv=/(?:^|[-_])(\w)/g,gv=e=>e.replace(mv,t=>t.toUpperCase()).replace(/[-_]/g,"");function _i(e,t=!0){return Q(e)?e.displayName||e.name:e.name||t&&e.__name}function po(e,t,n=!1){let s=_i(t);if(!s&&t.__file){const i=t.__file.match(/([^/\\]+)\.\w+$/);i&&(s=i[1])}if(!s&&e&&e.parent){const i=r=>{for(const o in r)if(r[o]===t)return o};s=i(e.components||e.parent.type.components)||i(e.appContext.components)}return s?gv(s):n?"App":"Anonymous"}function Kd(e){return Q(e)&&"__vccOpts"in e}const ae=(e,t)=>{const n=ig(e,t,Fi);{const s=Ge();s&&s.appContext.config.warnRecursiveComputed&&(n._warnRecursive=!0)}return n};function yv(e,t,n=me){const s=Ge();if(!s)return M("useModel() called without active instance."),ne();if(!s.propsOptions[0][t])return M(`useModel() called with prop "${t}" which is not declared.`),ne();const i=Ie(t),r=Xe(t),o=to((a,c)=>{let f;return td(()=>{const u=e[t];Pt(f,u)&&(f=u,c())}),{get(){return a(),n.get?n.get(f):f},set(u){const d=s.vnode.props;!(d&&(t in d||i in d||r in d)&&(`onUpdate:${t}`in d||`onUpdate:${i}`in d||`onUpdate:${r}`in d))&&Pt(u,f)&&(f=u,c()),s.emit(`update:${t}`,n.set?n.set(u):u)}}}),l=t==="modelValue"?"modelModifiers":`${t}Modifiers`;return o[Symbol.iterator]=()=>{let a=0;return{next(){return a<2?{value:a++?e[l]||{}:o,done:!1}:{done:!0}}}},o}function xs(e,t,n){const s=arguments.length;return s===2?he(t)&&!H(t)?rn(t)?xe(e,null,[t]):xe(e,t):xe(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&rn(n)&&(n=[n]),xe(e,t,n))}function qd(){if(typeof window>"u")return;const e={style:"color:#3ba776"},t={style:"color:#1677ff"},n={style:"color:#f5222d"},s={style:"color:#eb2f96"},i={header(u){return he(u)?u.__isVue?["div",e,"VueInstance"]:Te(u)?["div",{},["span",e,f(u)],"<",l(u.value),">"]:xn(u)?["div",{},["span",e,On(u)?"ShallowReactive":"Reactive"],"<",l(u),`>${sn(u)?" (readonly)":""}`]:sn(u)?["div",{},["span",e,On(u)?"ShallowReadonly":"Readonly"],"<",l(u),">"]:null:null},hasBody(u){return u&&u.__isVue},body(u){if(u&&u.__isVue)return["div",{},...r(u.$)]}};function r(u){const d=[];u.type.props&&u.props&&d.push(o("props",se(u.props))),u.setupState!==me&&d.push(o("setup",u.setupState)),u.data!==me&&d.push(o("data",se(u.data)));const p=a(u,"computed");p&&d.push(o("computed",p));const m=a(u,"inject");return m&&d.push(o("injected",m)),d.push(["div",{},["span",{style:s.style+";opacity:0.66"},"$ (internal): "],["object",{object:u}]]),d}function o(u,d){return d=ce({},d),Object.keys(d).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},u],["div",{style:"padding-left:1.25em"},...Object.keys(d).map(p=>["div",{},["span",s,p+": "],l(d[p],!1)])]]:["span",{}]}function l(u,d=!0){return typeof u=="number"?["span",t,u]:typeof u=="string"?["span",n,JSON.stringify(u)]:typeof u=="boolean"?["span",s,u]:he(u)?["object",{object:d?se(u):u}]:["span",n,String(u)]}function a(u,d){const p=u.type;if(Q(p))return;const m={};for(const w in u.ctx)c(p,w,d)&&(m[w]=u.ctx[w]);return m}function c(u,d,p){const m=u[p];if(H(m)&&m.includes(d)||he(m)&&d in m||u.extends&&c(u.extends,d,p)||u.mixins&&u.mixins.some(w=>c(w,d,p)))return!0}function f(u){return On(u)?"ShallowRef":u.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(i):window.devtoolsFormatters=[i]}function vv(e,t,n,s){const i=n[s];if(i&&Wd(i,e))return i;const r=t();return r.memo=e.slice(),n[s]=r}function Wd(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let s=0;s<n.length;s++)if(Pt(n[s],t[s]))return!1;return rs>0&&ft&&ft.push(e),!0}const ml="3.4.21",Be=M,bv=no,_v=Ot,Sv=ua,wv={createComponentInstance:Dd,setupComponent:jd,renderComponentRoot:dr,setCurrentRenderingInstance:yi,isVNode:rn,normalizeVNode:ut},Ev=wv,Cv=null,Tv=null,xv=null;/**
* @vue/runtime-dom v3.4.21
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/const Ov="http://www.w3.org/2000/svg",Av="http://www.w3.org/1998/Math/MathML",yn=typeof document<"u"?document:null,qc=yn&&yn.createElement("template"),Rv={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const i=t==="svg"?yn.createElementNS(Ov,e):t==="mathml"?yn.createElementNS(Av,e):yn.createElement(e,n?{is:n}:void 0);return e==="select"&&s&&s.multiple!=null&&i.setAttribute("multiple",s.multiple),i},createText:e=>yn.createTextNode(e),createComment:e=>yn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>yn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,i,r){const o=n?n.previousSibling:t.lastChild;if(i&&(i===r||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===r||!(i=i.nextSibling)););else{qc.innerHTML=s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e;const l=qc.content;if(s==="svg"||s==="mathml"){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},un="transition",qs="animation",Os=Symbol("_vtc"),Aa=(e,{slots:t})=>xs(id,Gd(e),t);Aa.displayName="Transition";const zd={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Iv=Aa.props=ce({},ba,zd),jn=(e,t=[])=>{H(e)?e.forEach(n=>n(...t)):e&&e(...t)},Wc=e=>e?H(e)?e.some(t=>t.length>1):e.length>1:!1;function Gd(e){const t={};for(const I in e)I in zd||(t[I]=e[I]);if(e.css===!1)return t;const{name:n="v",type:s,duration:i,enterFromClass:r=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:a=r,appearActiveClass:c=o,appearToClass:f=l,leaveFromClass:u=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,m=Nv(i),w=m&&m[0],E=m&&m[1],{onBeforeEnter:y,onEnter:_,onEnterCancelled:g,onLeave:b,onLeaveCancelled:S,onBeforeAppear:A=y,onAppear:C=_,onAppearCancelled:T=g}=t,O=(I,j,G)=>{pn(I,j?f:l),pn(I,j?c:o),G&&G()},x=(I,j)=>{I._isLeaving=!1,pn(I,u),pn(I,p),pn(I,d),j&&j()},N=I=>(j,G)=>{const te=I?C:_,z=()=>O(j,I,G);jn(te,[j,z]),zc(()=>{pn(j,I?a:r),Jt(j,I?f:l),Wc(te)||Gc(j,s,w,z)})};return ce(t,{onBeforeEnter(I){jn(y,[I]),Jt(I,r),Jt(I,o)},onBeforeAppear(I){jn(A,[I]),Jt(I,a),Jt(I,c)},onEnter:N(!1),onAppear:N(!0),onLeave(I,j){I._isLeaving=!0;const G=()=>x(I,j);Jt(I,u),Jd(),Jt(I,d),zc(()=>{I._isLeaving&&(pn(I,u),Jt(I,p),Wc(b)||Gc(I,s,E,G))}),jn(b,[I,G])},onEnterCancelled(I){O(I,!1),jn(g,[I])},onAppearCancelled(I){O(I,!0),jn(T,[I])},onLeaveCancelled(I){x(I),jn(S,[I])}})}function Nv(e){if(e==null)return null;if(he(e))return[No(e.enter),No(e.leave)];{const t=No(e);return[t,t]}}function No(e){const t=Er(e);return la(t,"<transition> explicit duration"),t}function Jt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Os]||(e[Os]=new Set)).add(t)}function pn(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[Os];n&&(n.delete(t),n.size||(e[Os]=void 0))}function zc(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let kv=0;function Gc(e,t,n,s){const i=e._endId=++kv,r=()=>{i===e._endId&&s()};if(n)return setTimeout(r,n);const{type:o,timeout:l,propCount:a}=Yd(e,t);if(!o)return s();const c=o+"end";let f=0;const u=()=>{e.removeEventListener(c,d),r()},d=p=>{p.target===e&&++f>=a&&u()};setTimeout(()=>{f<a&&u()},l+1),e.addEventListener(c,d)}function Yd(e,t){const n=window.getComputedStyle(e),s=m=>(n[m]||"").split(", "),i=s(`${un}Delay`),r=s(`${un}Duration`),o=Yc(i,r),l=s(`${qs}Delay`),a=s(`${qs}Duration`),c=Yc(l,a);let f=null,u=0,d=0;t===un?o>0&&(f=un,u=o,d=r.length):t===qs?c>0&&(f=qs,u=c,d=a.length):(u=Math.max(o,c),f=u>0?o>c?un:qs:null,d=f?f===un?r.length:a.length:0);const p=f===un&&/\b(transform|all)(,|$)/.test(s(`${un}Property`).toString());return{type:f,timeout:u,propCount:d,hasTransform:p}}function Yc(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,s)=>Jc(n)+Jc(e[s])))}function Jc(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Jd(){return document.body.offsetHeight}function Pv(e,t,n){const s=e[Os];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Pr=Symbol("_vod"),Xd=Symbol("_vsh"),Ra={beforeMount(e,{value:t},{transition:n}){e[Pr]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Ws(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),Ws(e,!0),s.enter(e)):s.leave(e,()=>{Ws(e,!1)}):Ws(e,t))},beforeUnmount(e,{value:t}){Ws(e,t)}};Ra.name="show";function Ws(e,t){e.style.display=t?e[Pr]:"none",e[Xd]=!t}function Mv(){Ra.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const Qd=Symbol("CSS_VAR_TEXT");function $v(e){const t=Ge();if(!t){Be("useCssVars is called without current active component instance.");return}const n=t.ut=(i=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(r=>yl(r,i))};t.getCssVars=()=>e(t.proxy);const s=()=>{const i=e(t.proxy);gl(t.subTree,i),n(i)};ed(s),cs(()=>{const i=new MutationObserver(s);i.observe(t.subTree.el.parentNode,{childList:!0}),$i(()=>i.disconnect())})}function gl(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{gl(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)yl(e.el,t);else if(e.type===De)e.children.forEach(n=>gl(n,t));else if(e.type===Rn){let{el:n,anchor:s}=e;for(;n&&(yl(n,t),n!==s);)n=n.nextSibling}}function yl(e,t){if(e.nodeType===1){const n=e.style;let s="";for(const i in t)n.setProperty(`--${i}`,t[i]),s+=`--${i}: ${t[i]};`;n[Qd]=s}}const Fv=/(^|;)\s*display\s*:/;function Lv(e,t,n){const s=e.style,i=ee(n);let r=!1;if(n&&!i){if(t)if(ee(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();n[l]==null&&hr(s,l,"")}else for(const o in t)n[o]==null&&hr(s,o,"");for(const o in n)o==="display"&&(r=!0),hr(s,o,n[o])}else if(i){if(t!==n){const o=s[Qd];o&&(n+=";"+o),s.cssText=n,r=Fv.test(n)}}else t&&e.removeAttribute("style");Pr in e&&(e[Pr]=r?s.display:"",e[Xd]&&(s.display="none"))}const Dv=/[^\\];\s*$/,Xc=/\s*!important$/;function hr(e,t,n){if(H(n))n.forEach(s=>hr(e,t,s));else if(n==null&&(n=""),Dv.test(n)&&Be(`Unexpected semicolon at the end of '${t}' style value: '${n}'`),t.startsWith("--"))e.setProperty(t,n);else{const s=Vv(e,t);Xc.test(n)?e.setProperty(Xe(s),n.replace(Xc,""),"important"):e[s]=n}}const Qc=["Webkit","Moz","ms"],ko={};function Vv(e,t){const n=ko[t];if(n)return n;let s=Ie(t);if(s!=="filter"&&s in e)return ko[t]=s;s=Ut(s);for(let i=0;i<Qc.length;i++){const r=Qc[i]+s;if(r in e)return ko[t]=r}return t}const Zc="http://www.w3.org/1999/xlink";function jv(e,t,n,s,i){if(s&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Zc,t.slice(6,t.length)):e.setAttributeNS(Zc,t,n);else{const r=Rm(t);n==null||r&&!Yl(n)?e.removeAttribute(t):e.setAttribute(t,r?"":n)}}function Bv(e,t,n,s,i,r,o){if(t==="innerHTML"||t==="textContent"){s&&o(s,i,r),e[t]=n??"";return}const l=e.tagName;if(t==="value"&&l!=="PROGRESS"&&!l.includes("-")){const c=l==="OPTION"?e.getAttribute("value")||"":e.value,f=n??"";(c!==f||!("_value"in e))&&(e.value=f),n==null&&e.removeAttribute(t),e._value=n;return}let a=!1;if(n===""||n==null){const c=typeof e[t];c==="boolean"?n=Yl(n):n==null&&c==="string"?(n="",a=!0):c==="number"&&(n=0,a=!0)}try{e[t]=n}catch(c){a||Be(`Failed setting prop "${t}" on <${l.toLowerCase()}>: value ${n} is invalid.`,c)}a&&e.removeAttribute(t)}function en(e,t,n,s){e.addEventListener(t,n,s)}function Hv(e,t,n,s){e.removeEventListener(t,n,s)}const eu=Symbol("_vei");function Uv(e,t,n,s,i=null){const r=e[eu]||(e[eu]={}),o=r[t];if(s&&o)o.value=s;else{const[l,a]=Kv(t);if(s){const c=r[t]=zv(s,i);en(e,l,c,a)}else o&&(Hv(e,l,o,a),r[t]=void 0)}}const tu=/(?:Once|Passive|Capture)$/;function Kv(e){let t;if(tu.test(e)){t={};let s;for(;s=e.match(tu);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Xe(e.slice(2)),t]}let Po=0;const qv=Promise.resolve(),Wv=()=>Po||(qv.then(()=>Po=0),Po=Date.now());function zv(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;mt(Gv(s,n.value),t,5,[s])};return n.value=e,n.attached=Wv(),n}function Gv(e,t){if(H(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>i=>!i._stopped&&s&&s(i))}else return t}const nu=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Yv=(e,t,n,s,i,r,o,l,a)=>{const c=i==="svg";t==="class"?Pv(e,s,c):t==="style"?Lv(e,n,s):nn(t)?Sr(t)||Uv(e,t,n,s,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Jv(e,t,s,c))?Bv(e,t,s,r,o,l,a):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),jv(e,t,s,c))};function Jv(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&nu(t)&&Q(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return nu(t)&&ee(n)?!1:t in e}/*! #__NO_SIDE_EFFECTS__ */function Zd(e,t){const n=js(e);class s extends ho{constructor(r){super(n,r,t)}}return s.def=n,s}/*! #__NO_SIDE_EFFECTS__ */const Xv=e=>Zd(e,up),Qv=typeof HTMLElement<"u"?HTMLElement:class{};class ho extends Qv{constructor(t,n={},s){super(),this._def=t,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&s?s(this._createVNode(),this.shadowRoot):(this.shadowRoot&&Be("Custom element has pre-rendered declarative shadow root but is not defined as hydratable. Use `defineSSRCustomElement`."),this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,this._ob&&(this._ob.disconnect(),this._ob=null),Dn(()=>{this._connected||(vl(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let s=0;s<this.attributes.length;s++)this._setAttr(this.attributes[s].name);this._ob=new MutationObserver(s=>{for(const i of s)this._setAttr(i.attributeName)}),this._ob.observe(this,{attributes:!0});const t=(s,i=!1)=>{const{props:r,styles:o}=s;let l;if(r&&!H(r))for(const a in r){const c=r[a];(c===Number||c&&c.type===Number)&&(a in this._props&&(this._props[a]=Er(this._props[a])),(l||(l=Object.create(null)))[Ie(a)]=!0)}this._numberProps=l,i&&this._resolveProps(s),this._applyStyles(o),this._update()},n=this._def.__asyncLoader;n?n().then(s=>t(s,!0)):t(this._def)}_resolveProps(t){const{props:n}=t,s=H(n)?n:Object.keys(n||{});for(const i of Object.keys(this))i[0]!=="_"&&s.includes(i)&&this._setProp(i,this[i],!0,!1);for(const i of s.map(Ie))Object.defineProperty(this,i,{get(){return this._getProp(i)},set(r){this._setProp(i,r)}})}_setAttr(t){let n=this.getAttribute(t);const s=Ie(t);this._numberProps&&this._numberProps[s]&&(n=Er(n)),this._setProp(s,n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,s=!0,i=!0){n!==this._props[t]&&(this._props[t]=n,i&&this._instance&&this._update(),s&&(n===!0?this.setAttribute(Xe(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Xe(t),n+""):n||this.removeAttribute(Xe(t))))}_update(){vl(this._createVNode(),this.shadowRoot)}_createVNode(){const t=xe(this._def,ce({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0,n.ceReload=r=>{this._styles&&(this._styles.forEach(o=>this.shadowRoot.removeChild(o)),this._styles.length=0),this._applyStyles(r),this._instance=null,this._update()};const s=(r,o)=>{this.dispatchEvent(new CustomEvent(r,{detail:o}))};n.emit=(r,...o)=>{s(r,o),Xe(r)!==r&&s(Xe(r),o)};let i=this;for(;i=i&&(i.parentNode||i.host);)if(i instanceof ho){n.parent=i._instance,n.provides=i._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(n=>{const s=document.createElement("style");s.textContent=n,this.shadowRoot.appendChild(s),(this._styles||(this._styles=[])).push(s)})}}function Zv(e="$style"){{const t=Ge();if(!t)return Be("useCssModule must be called inside setup()"),me;const n=t.type.__cssModules;if(!n)return Be("Current instance does not have CSS modules injected."),me;const s=n[e];return s||(Be(`Current instance does not have CSS module named "${e}".`),me)}}const ep=new WeakMap,tp=new WeakMap,Mr=Symbol("_moveCb"),su=Symbol("_enterCb"),np={name:"TransitionGroup",props:ce({},Iv,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Ge(),s=va();let i,r;return Mi(()=>{if(!i.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!rb(i[0].el,n.vnode.el,o))return;i.forEach(nb),i.forEach(sb);const l=i.filter(ib);Jd(),l.forEach(a=>{const c=a.el,f=c.style;Jt(c,o),f.transform=f.webkitTransform=f.transitionDuration="";const u=c[Mr]=d=>{d&&d.target!==c||(!d||/transform$/.test(d.propertyName))&&(c.removeEventListener("transitionend",u),c[Mr]=null,pn(c,o))};c.addEventListener("transitionend",u)})}),()=>{const o=se(e),l=Gd(o);let a=o.tag||De;i=r,r=t.default?oo(t.default()):[];for(let c=0;c<r.length;c++){const f=r[c];f.key!=null?is(f,Ts(f,l,s,n)):Be("<TransitionGroup> children must be keyed.")}if(i)for(let c=0;c<i.length;c++){const f=i[c];is(f,Ts(f,l,s,n)),ep.set(f,f.el.getBoundingClientRect())}return xe(a,null,r)}}},eb=e=>delete e.mode;np.props;const tb=np;function nb(e){const t=e.el;t[Mr]&&t[Mr](),t[su]&&t[su]()}function sb(e){tp.set(e,e.el.getBoundingClientRect())}function ib(e){const t=ep.get(e),n=tp.get(e),s=t.left-n.left,i=t.top-n.top;if(s||i){const r=e.el.style;return r.transform=r.webkitTransform=`translate(${s}px,${i}px)`,r.transitionDuration="0s",e}}function rb(e,t,n){const s=e.cloneNode(),i=e[Os];i&&i.forEach(l=>{l.split(/\s+/).forEach(a=>a&&s.classList.remove(a))}),n.split(/\s+/).forEach(l=>l&&s.classList.add(l)),s.style.display="none";const r=t.nodeType===1?t:t.parentNode;r.appendChild(s);const{hasTransform:o}=Yd(s);return r.removeChild(s),o}const Pn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return H(t)?n=>_n(t,n):t};function ob(e){e.target.composing=!0}function iu(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ct=Symbol("_assign"),$r={created(e,{modifiers:{lazy:t,trim:n,number:s}},i){e[Ct]=Pn(i);const r=s||i.props&&i.props.type==="number";en(e,t?"change":"input",o=>{if(o.target.composing)return;let l=e.value;n&&(l=l.trim()),r&&(l=fi(l)),e[Ct](l)}),n&&en(e,"change",()=>{e.value=e.value.trim()}),t||(en(e,"compositionstart",ob),en(e,"compositionend",iu),en(e,"change",iu))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:s,number:i}},r){if(e[Ct]=Pn(r),e.composing)return;const o=i||e.type==="number"?fi(e.value):e.value,l=t??"";o!==l&&(document.activeElement===e&&e.type!=="range"&&(n||s&&e.value.trim()===l)||(e.value=l))}},Ia={deep:!0,created(e,t,n){e[Ct]=Pn(n),en(e,"change",()=>{const s=e._modelValue,i=As(e),r=e.checked,o=e[Ct];if(H(s)){const l=Xr(s,i),a=l!==-1;if(r&&!a)o(s.concat(i));else if(!r&&a){const c=[...s];c.splice(l,1),o(c)}}else if(as(s)){const l=new Set(s);r?l.add(i):l.delete(i),o(l)}else o(ip(e,r))})},mounted:ru,beforeUpdate(e,t,n){e[Ct]=Pn(n),ru(e,t,n)}};function ru(e,{value:t,oldValue:n},s){e._modelValue=t,H(t)?e.checked=Xr(t,s.props.value)>-1:as(t)?e.checked=t.has(s.props.value):t!==n&&(e.checked=Nn(t,ip(e,!0)))}const Na={created(e,{value:t},n){e.checked=Nn(t,n.props.value),e[Ct]=Pn(n),en(e,"change",()=>{e[Ct](As(e))})},beforeUpdate(e,{value:t,oldValue:n},s){e[Ct]=Pn(s),t!==n&&(e.checked=Nn(t,s.props.value))}},sp={deep:!0,created(e,{value:t,modifiers:{number:n}},s){const i=as(t);en(e,"change",()=>{const r=Array.prototype.filter.call(e.options,o=>o.selected).map(o=>n?fi(As(o)):As(o));e[Ct](e.multiple?i?new Set(r):r:r[0]),e._assigning=!0,Dn(()=>{e._assigning=!1})}),e[Ct]=Pn(s)},mounted(e,{value:t,modifiers:{number:n}}){ou(e,t,n)},beforeUpdate(e,t,n){e[Ct]=Pn(n)},updated(e,{value:t,modifiers:{number:n}}){e._assigning||ou(e,t,n)}};function ou(e,t,n){const s=e.multiple,i=H(t);if(s&&!i&&!as(t)){Be(`<select multiple v-model> expects an Array or Set value for its binding, but got ${Object.prototype.toString.call(t).slice(8,-1)}.`);return}for(let r=0,o=e.options.length;r<o;r++){const l=e.options[r],a=As(l);if(s)if(i){const c=typeof a;c==="string"||c==="number"?l.selected=t.includes(n?fi(a):a):l.selected=Xr(t,a)>-1}else l.selected=t.has(a);else if(Nn(As(l),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!s&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}function As(e){return"_value"in e?e._value:e.value}function ip(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const rp={created(e,t,n){nr(e,t,n,null,"created")},mounted(e,t,n){nr(e,t,n,null,"mounted")},beforeUpdate(e,t,n,s){nr(e,t,n,s,"beforeUpdate")},updated(e,t,n,s){nr(e,t,n,s,"updated")}};function op(e,t){switch(e){case"SELECT":return sp;case"TEXTAREA":return $r;default:switch(t){case"checkbox":return Ia;case"radio":return Na;default:return $r}}}function nr(e,t,n,s,i){const o=op(e.tagName,n.props&&n.props.type)[i];o&&o(e,t,n,s)}function lb(){$r.getSSRProps=({value:e})=>({value:e}),Na.getSSRProps=({value:e},t)=>{if(t.props&&Nn(t.props.value,e))return{checked:!0}},Ia.getSSRProps=({value:e},t)=>{if(H(e)){if(t.props&&Xr(e,t.props.value)>-1)return{checked:!0}}else if(as(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},rp.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=op(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const ab=["ctrl","shift","alt","meta"],cb={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>ab.some(n=>e[`${n}Key`]&&!t.includes(n))},ub=(e,t)=>{const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(i,...r)=>{for(let o=0;o<t.length;o++){const l=cb[t[o]];if(l&&l(i,t))return}return e(i,...r)})},fb={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},db=(e,t)=>{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=i=>{if(!("key"in i))return;const r=Xe(i.key);if(t.some(o=>o===r||fb[o]===r))return e(i)})},lp=ce({patchProp:Yv},Rv);let ii,lu=!1;function ap(){return ii||(ii=xd(lp))}function cp(){return ii=lu?ii:Od(lp),lu=!0,ii}const vl=(...e)=>{ap().render(...e)},up=(...e)=>{cp().hydrate(...e)},pb=(...e)=>{const t=ap().createApp(...e);dp(t),pp(t);const{mount:n}=t;return t.mount=s=>{const i=hp(s);if(!i)return;const r=t._component;!Q(r)&&!r.render&&!r.template&&(r.template=i.innerHTML),i.innerHTML="";const o=n(i,!1,fp(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},t},hb=(...e)=>{const t=cp().createApp(...e);dp(t),pp(t);const{mount:n}=t;return t.mount=s=>{const i=hp(s);if(i)return n(i,!0,fp(i))},t};function fp(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function dp(e){Object.defineProperty(e.config,"isNativeTag",{value:t=>Gl(t)||hf(t)||mf(t),writable:!1})}function pp(e){if(Oa()){const t=e.config.isCustomElement;Object.defineProperty(e.config,"isCustomElement",{get(){return t},set(){Be("The `isCustomElement` config option is deprecated. Use `compilerOptions.isCustomElement` instead.")}});const n=e.config.compilerOptions,s='The `compilerOptions` config option is only respected when using a build of Vue.js that includes the runtime compiler (aka "full build"). Since you are using the runtime-only build, `compilerOptions` must be passed to `@vue/compiler-dom` in the build setup instead.\n- For vue-loader: pass it via vue-loader\'s `compilerOptions` loader option.\n- For vue-cli: see https://cli.vuejs.org/guide/webpack.html#modifying-options-of-a-loader\n- For vite: pass it via @vitejs/plugin-vue options. See https://github.com/vitejs/vite-plugin-vue/tree/main/packages/plugin-vue#example-for-passing-options-to-vuecompiler-sfc';Object.defineProperty(e.config,"compilerOptions",{get(){return Be(s),n},set(){Be(s)}})}}function hp(e){if(ee(e)){const t=document.querySelector(e);return t||Be(`Failed to mount app: mount target selector "${e}" returned null.`),t}return window.ShadowRoot&&e instanceof window.ShadowRoot&&e.mode==="closed"&&Be('mounting on a ShadowRoot with `{mode: "closed"}` may lead to unpredictable bugs'),e}let au=!1;const mb=()=>{au||(au=!0,lb(),Mv())},gb=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:id,BaseTransitionPropsValidators:ba,Comment:$e,DeprecationTypes:xv,EffectScope:Jl,ErrorCodes:vg,ErrorTypeStrings:bv,Fragment:De,KeepAlive:sy,ReactiveEffect:Cs,Static:Rn,Suspense:Wg,Teleport:nv,Text:kn,TrackOpTypes:dg,Transition:Aa,TransitionGroup:tb,TriggerOpTypes:pg,VueElement:ho,assertNumber:la,callWithAsyncErrorHandling:mt,callWithErrorHandling:Ht,camelize:Ie,capitalize:Ut,cloneVNode:Tt,compatUtils:Tv,computed:ae,createApp:pb,createBlock:Ea,createCommentVNode:av,createElementBlock:sv,createElementVNode:Ca,createHydrationRenderer:Od,createPropsRestProxy:Ey,createRenderer:xd,createSSRApp:hb,createSlots:oy,createStaticVNode:lv,createTextVNode:Ta,createVNode:xe,customRef:to,defineAsyncComponent:ty,defineComponent:js,defineCustomElement:Zd,defineEmits:hy,defineExpose:my,defineModel:vy,defineOptions:gy,defineProps:py,defineSSRCustomElement:Xv,defineSlots:yy,devtools:_v,effect:Fm,effectScope:vf,getCurrentInstance:Ge,getCurrentScope:Xl,getTransitionRawChildren:oo,guardReactiveProps:$d,h:xs,handleError:Ln,hasInjectionContext:Py,hydrate:up,initCustomFormatter:qd,initDirectivesForSSR:mb,inject:Et,isMemoSame:Wd,isProxy:di,isReactive:xn,isReadonly:sn,isRef:Te,isRuntimeOnly:Oa,isShallow:On,isVNode:rn,markRaw:na,mergeDefaults:Sy,mergeModels:wy,mergeProps:Ld,nextTick:Dn,normalizeClass:Vs,normalizeProps:Em,normalizeStyle:Ds,onActivated:od,onBeforeMount:cd,onBeforeUnmount:ao,onBeforeUpdate:ud,onDeactivated:ld,onErrorCaptured:hd,onMounted:cs,onRenderTracked:pd,onRenderTriggered:dd,onScopeDispose:_f,onServerPrefetch:fd,onUnmounted:$i,onUpdated:Mi,openBlock:co,popScopeId:Lg,provide:_s,proxyRefs:oa,pushScopeId:Fg,queuePostFlushCb:mi,reactive:it,readonly:Rt,ref:ne,registerRuntimeCompiler:Bd,render:vl,renderList:ry,renderSlot:ly,resolveComponent:Yf,resolveDirective:Kg,resolveDynamicComponent:Ug,resolveFilter:Cv,resolveTransitionHooks:Ts,setBlockTracking:al,setDevtoolsHook:Sv,setTransitionHooks:is,shallowReactive:ta,shallowReadonly:qn,shallowRef:ra,ssrContextKey:Qf,ssrUtils:Ev,stop:Lm,toDisplayString:Mm,toHandlerKey:Dt,toHandlers:ay,toRaw:se,toRef:Df,toRefs:Lf,toValue:lg,transformVNodeArgs:iv,triggerRef:og,unref:Ze,useAttrs:_y,useCssModule:Zv,useCssVars:$v,useModel:yv,useSSRContext:Zf,useSlots:gd,useTransitionState:va,vModelCheckbox:Ia,vModelDynamic:rp,vModelRadio:Na,vModelSelect:sp,vModelText:$r,vShow:Ra,version:ml,warn:Be,watch:Ee,watchEffect:ya,watchPostEffect:ed,watchSyncEffect:td,withAsyncContext:Cy,withCtx:da,withDefaults:by,withDirectives:Zg,withKeys:db,withMemo:vv,withModifiers:ub,withScopeId:Dg},Symbol.toStringTag,{value:"Module"}));/**
* @vue/compiler-core v3.4.21
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/const Si=Symbol("Fragment"),ri=Symbol("Teleport"),ka=Symbol("Suspense"),Fr=Symbol("KeepAlive"),mp=Symbol("BaseTransition"),ls=Symbol("openBlock"),gp=Symbol("createBlock"),yp=Symbol("createElementBlock"),Pa=Symbol("createVNode"),Ma=Symbol("createElementVNode"),Li=Symbol("createCommentVNode"),$a=Symbol("createTextVNode"),vp=Symbol("createStaticVNode"),Fa=Symbol("resolveComponent"),La=Symbol("resolveDynamicComponent"),Da=Symbol("resolveDirective"),Va=Symbol("resolveFilter"),ja=Symbol("withDirectives"),Ba=Symbol("renderList"),bp=Symbol("renderSlot"),_p=Symbol("createSlots"),mo=Symbol("toDisplayString"),Lr=Symbol("mergeProps"),Ha=Symbol("normalizeClass"),Ua=Symbol("normalizeStyle"),wi=Symbol("normalizeProps"),Di=Symbol("guardReactiveProps"),Ka=Symbol("toHandlers"),bl=Symbol("camelize"),yb=Symbol("capitalize"),_l=Symbol("toHandlerKey"),Dr=Symbol("setBlockTracking"),vb=Symbol("pushScopeId"),bb=Symbol("popScopeId"),qa=Symbol("withCtx"),_b=Symbol("unref"),Sb=Symbol("isRef"),Wa=Symbol("withMemo"),Sp=Symbol("isMemoSame"),Rs={[Si]:"Fragment",[ri]:"Teleport",[ka]:"Suspense",[Fr]:"KeepAlive",[mp]:"BaseTransition",[ls]:"openBlock",[gp]:"createBlock",[yp]:"createElementBlock",[Pa]:"createVNode",[Ma]:"createElementVNode",[Li]:"createCommentVNode",[$a]:"createTextVNode",[vp]:"createStaticVNode",[Fa]:"resolveComponent",[La]:"resolveDynamicComponent",[Da]:"resolveDirective",[Va]:"resolveFilter",[ja]:"withDirectives",[Ba]:"renderList",[bp]:"renderSlot",[_p]:"createSlots",[mo]:"toDisplayString",[Lr]:"mergeProps",[Ha]:"normalizeClass",[Ua]:"normalizeStyle",[wi]:"normalizeProps",[Di]:"guardReactiveProps",[Ka]:"toHandlers",[bl]:"camelize",[yb]:"capitalize",[_l]:"toHandlerKey",[Dr]:"setBlockTracking",[vb]:"pushScopeId",[bb]:"popScopeId",[qa]:"withCtx",[_b]:"unref",[Sb]:"isRef",[Wa]:"withMemo",[Sp]:"isMemoSame"};function wb(e){Object.getOwnPropertySymbols(e).forEach(t=>{Rs[t]=e[t]})}const yt={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function Eb(e,t=""){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:yt}}function Ei(e,t,n,s,i,r,o,l=!1,a=!1,c=!1,f=yt){return e&&(l?(e.helper(ls),e.helper(ks(e.inSSR,c))):e.helper(Ns(e.inSSR,c)),o&&e.helper(ja)),{type:13,tag:t,props:n,children:s,patchFlag:i,dynamicProps:r,directives:o,isBlock:l,disableTracking:a,isComponent:c,loc:f}}function Vi(e,t=yt){return{type:17,loc:t,elements:e}}function St(e,t=yt){return{type:15,loc:t,properties:e}}function ke(e,t){return{type:16,loc:yt,key:ee(e)?oe(e,!0):e,value:t}}function oe(e,t=!1,n=yt,s=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:s}}function Nt(e,t=yt){return{type:8,loc:t,children:e}}function Ve(e,t=[],n=yt){return{type:14,loc:n,callee:e,arguments:t}}function Is(e,t=void 0,n=!1,s=!1,i=yt){return{type:18,params:e,returns:t,newline:n,isSlot:s,loc:i}}function Sl(e,t,n,s=!0){return{type:19,test:e,consequent:t,alternate:n,newline:s,loc:yt}}function Cb(e,t,n=!1){return{type:20,index:e,value:t,isVNode:n,loc:yt}}function Tb(e){return{type:21,body:e,loc:yt}}function Ns(e,t){return e||t?Pa:Ma}function ks(e,t){return e||t?gp:yp}function za(e,{helper:t,removeHelper:n,inSSR:s}){e.isBlock||(e.isBlock=!0,n(Ns(s,e.isComponent)),t(ls),t(ks(s,e.isComponent)))}const cu=new Uint8Array([123,123]),uu=new Uint8Array([125,125]);function fu(e){return e>=97&&e<=122||e>=65&&e<=90}function ht(e){return e===32||e===10||e===9||e===12||e===13}function fn(e){return e===47||e===62||ht(e)}function Vr(e){const t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}const Ke={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97])};class xb{constructor(t,n){this.stack=t,this.cbs=n,this.state=1,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=cu,this.delimiterClose=uu,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0}get inSFCRoot(){return this.mode===2&&this.stack.length===0}reset(){this.state=1,this.mode=0,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=cu,this.delimiterClose=uu}getPos(t){let n=1,s=t+1;for(let i=this.newlines.length-1;i>=0;i--){const r=this.newlines[i];if(t>r){n=i+2,s=t-r;break}}return{column:s,line:n,offset:t}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(t){t===60?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):!this.inVPre&&t===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t))}stateInterpolationOpen(t){if(t===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const n=this.index+1-this.delimiterOpen.length;n>this.sectionStart&&this.cbs.ontext(this.sectionStart,n),this.state=3,this.sectionStart=n}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(t)):(this.state=1,this.stateText(t))}stateInterpolation(t){t===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(t))}stateInterpolationClose(t){t===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(t))}stateSpecialStartSequence(t){const n=this.sequenceIndex===this.currentSequence.length;if(!(n?fn(t):(t|32)===this.currentSequence[this.sequenceIndex]))this.inRCDATA=!1;else if(!n){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=6,this.stateInTagName(t)}stateInRCDATA(t){if(this.sequenceIndex===this.currentSequence.length){if(t===62||ht(t)){const n=this.index-this.currentSequence.length;if(this.sectionStart<n){const s=this.index;this.index=n,this.cbs.ontext(this.sectionStart,n),this.index=s}this.sectionStart=n+2,this.stateInClosingTagName(t),this.inRCDATA=!1;return}this.sequenceIndex=0}(t|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===Ke.TitleEnd||this.currentSequence===Ke.TextareaEnd&&!this.inSFCRoot?t===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t)):this.fastForwardTo(60)&&(this.sequenceIndex=1):this.sequenceIndex=+(t===60)}stateCDATASequence(t){t===Ke.Cdata[this.sequenceIndex]?++this.sequenceIndex===Ke.Cdata.length&&(this.state=28,this.currentSequence=Ke.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=23,this.stateInDeclaration(t))}fastForwardTo(t){for(;++this.index<this.buffer.length;){const n=this.buffer.charCodeAt(this.index);if(n===10&&this.newlines.push(this.index),n===t)return!0}return this.index=this.buffer.length-1,!1}stateInCommentLike(t){t===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===Ke.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index-2):this.cbs.oncomment(this.sectionStart,this.index-2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=1):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):t!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}startSpecial(t,n){this.enterRCDATA(t,n),this.state=31}enterRCDATA(t,n){this.inRCDATA=!0,this.currentSequence=t,this.sequenceIndex=n}stateBeforeTagName(t){t===33?(this.state=22,this.sectionStart=this.index+1):t===63?(this.state=24,this.sectionStart=this.index+1):fu(t)?(this.sectionStart=this.index,this.mode===0?this.state=6:this.inSFCRoot?this.state=34:this.inXML?this.state=6:t===116?this.state=30:this.state=t===115?29:6):t===47?this.state=8:(this.state=1,this.stateText(t))}stateInTagName(t){fn(t)&&this.handleTagName(t)}stateInSFCRootTagName(t){if(fn(t)){const n=this.buffer.slice(this.sectionStart,this.index);n!=="template"&&this.enterRCDATA(Vr("</"+n),0),this.handleTagName(t)}}handleTagName(t){this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(t)}stateBeforeClosingTagName(t){ht(t)||(t===62?(this.cbs.onerr(14,this.index),this.state=1,this.sectionStart=this.index+1):(this.state=fu(t)?9:27,this.sectionStart=this.index))}stateInClosingTagName(t){(t===62||ht(t))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=10,this.stateAfterClosingTagName(t))}stateAfterClosingTagName(t){t===62&&(this.state=1,this.sectionStart=this.index+1)}stateBeforeAttrName(t){t===62?(this.cbs.onopentagend(this.index),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):t===47?(this.state=7,this.peek()!==62&&this.cbs.onerr(22,this.index)):t===60&&this.peek()===47?(this.cbs.onopentagend(this.index),this.state=5,this.sectionStart=this.index):ht(t)||(t===61&&this.cbs.onerr(19,this.index),this.handleAttrStart(t))}handleAttrStart(t){t===118&&this.peek()===45?(this.state=13,this.sectionStart=this.index):t===46||t===58||t===64||t===35?(this.cbs.ondirname(this.index,this.index+1),this.state=14,this.sectionStart=this.index+1):(this.state=12,this.sectionStart=this.index)}stateInSelfClosingTag(t){t===62?(this.cbs.onselfclosingtag(this.index),this.state=1,this.sectionStart=this.index+1,this.inRCDATA=!1):ht(t)||(this.state=11,this.stateBeforeAttrName(t))}stateInAttrName(t){t===61||fn(t)?(this.cbs.onattribname(this.sectionStart,this.index),this.handleAttrNameEnd(t)):(t===34||t===39||t===60)&&this.cbs.onerr(17,this.index)}stateInDirName(t){t===61||fn(t)?(this.cbs.ondirname(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===58?(this.cbs.ondirname(this.sectionStart,this.index),this.state=14,this.sectionStart=this.index+1):t===46&&(this.cbs.ondirname(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDirArg(t){t===61||fn(t)?(this.cbs.ondirarg(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===91?this.state=15:t===46&&(this.cbs.ondirarg(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDynamicDirArg(t){t===93?this.state=14:(t===61||fn(t))&&(this.cbs.ondirarg(this.sectionStart,this.index+1),this.handleAttrNameEnd(t),this.cbs.onerr(27,this.index))}stateInDirModifier(t){t===61||fn(t)?(this.cbs.ondirmodifier(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===46&&(this.cbs.ondirmodifier(this.sectionStart,this.index),this.sectionStart=this.index+1)}handleAttrNameEnd(t){this.sectionStart=this.index,this.state=17,this.cbs.onattribnameend(this.index),this.stateAfterAttrName(t)}stateAfterAttrName(t){t===61?this.state=18:t===47||t===62?(this.cbs.onattribend(0,this.sectionStart),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(t)):ht(t)||(this.cbs.onattribend(0,this.sectionStart),this.handleAttrStart(t))}stateBeforeAttrValue(t){t===34?(this.state=19,this.sectionStart=this.index+1):t===39?(this.state=20,this.sectionStart=this.index+1):ht(t)||(this.sectionStart=this.index,this.state=21,this.stateInAttrValueNoQuotes(t))}handleInAttrValue(t,n){(t===n||this.fastForwardTo(n))&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(n===34?3:2,this.index+1),this.state=11)}stateInAttrValueDoubleQuotes(t){this.handleInAttrValue(t,34)}stateInAttrValueSingleQuotes(t){this.handleInAttrValue(t,39)}stateInAttrValueNoQuotes(t){ht(t)||t===62?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(1,this.index),this.state=11,this.stateBeforeAttrName(t)):(t===34||t===39||t===60||t===61||t===96)&&this.cbs.onerr(18,this.index)}stateBeforeDeclaration(t){t===91?(this.state=26,this.sequenceIndex=0):this.state=t===45?25:23}stateInDeclaration(t){(t===62||this.fastForwardTo(62))&&(this.state=1,this.sectionStart=this.index+1)}stateInProcessingInstruction(t){(t===62||this.fastForwardTo(62))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeComment(t){t===45?(this.state=28,this.currentSequence=Ke.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=23}stateInSpecialComment(t){(t===62||this.fastForwardTo(62))&&(this.cbs.oncomment(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeSpecialS(t){t===Ke.ScriptEnd[3]?this.startSpecial(Ke.ScriptEnd,4):t===Ke.StyleEnd[3]?this.startSpecial(Ke.StyleEnd,4):(this.state=6,this.stateInTagName(t))}stateBeforeSpecialT(t){t===Ke.TitleEnd[3]?this.startSpecial(Ke.TitleEnd,4):t===Ke.TextareaEnd[3]?this.startSpecial(Ke.TextareaEnd,4):(this.state=6,this.stateInTagName(t))}startEntity(){}stateInEntity(){}parse(t){for(this.buffer=t;this.index<this.buffer.length;){const n=this.buffer.charCodeAt(this.index);switch(n===10&&this.newlines.push(this.index),this.state){case 1:{this.stateText(n);break}case 2:{this.stateInterpolationOpen(n);break}case 3:{this.stateInterpolation(n);break}case 4:{this.stateInterpolationClose(n);break}case 31:{this.stateSpecialStartSequence(n);break}case 32:{this.stateInRCDATA(n);break}case 26:{this.stateCDATASequence(n);break}case 19:{this.stateInAttrValueDoubleQuotes(n);break}case 12:{this.stateInAttrName(n);break}case 13:{this.stateInDirName(n);break}case 14:{this.stateInDirArg(n);break}case 15:{this.stateInDynamicDirArg(n);break}case 16:{this.stateInDirModifier(n);break}case 28:{this.stateInCommentLike(n);break}case 27:{this.stateInSpecialComment(n);break}case 11:{this.stateBeforeAttrName(n);break}case 6:{this.stateInTagName(n);break}case 34:{this.stateInSFCRootTagName(n);break}case 9:{this.stateInClosingTagName(n);break}case 5:{this.stateBeforeTagName(n);break}case 17:{this.stateAfterAttrName(n);break}case 20:{this.stateInAttrValueSingleQuotes(n);break}case 18:{this.stateBeforeAttrValue(n);break}case 8:{this.stateBeforeClosingTagName(n);break}case 10:{this.stateAfterClosingTagName(n);break}case 29:{this.stateBeforeSpecialS(n);break}case 30:{this.stateBeforeSpecialT(n);break}case 21:{this.stateInAttrValueNoQuotes(n);break}case 7:{this.stateInSelfClosingTag(n);break}case 23:{this.stateInDeclaration(n);break}case 22:{this.stateBeforeDeclaration(n);break}case 25:{this.stateBeforeComment(n);break}case 24:{this.stateInProcessingInstruction(n);break}case 33:{this.stateInEntity();break}}this.index++}this.cleanup(),this.finish()}cleanup(){this.sectionStart!==this.index&&(this.state===1||this.state===32&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===19||this.state===20||this.state===21)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}finish(){this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const t=this.buffer.length;this.sectionStart>=t||(this.state===28?this.currentSequence===Ke.CdataEnd?this.cbs.oncdata(this.sectionStart,t):this.cbs.oncomment(this.sectionStart,t):this.state===6||this.state===11||this.state===18||this.state===17||this.state===12||this.state===13||this.state===14||this.state===15||this.state===16||this.state===20||this.state===19||this.state===21||this.state===9||this.cbs.ontext(this.sectionStart,t))}emitCodePoint(t,n){}}const Ob={COMPILER_IS_ON_ELEMENT:{message:'Platform-native elements with "is" prop will no longer be treated as components in Vue 3 unless the "is" value is explicitly prefixed with "vue:".',link:"https://v3-migration.vuejs.org/breaking-changes/custom-elements-interop.html"},COMPILER_V_BIND_SYNC:{message:e=>`.sync modifier for v-bind has been removed. Use v-model with argument instead. \`v-bind:${e}.sync\` should be changed to \`v-model:${e}\`.`,link:"https://v3-migration.vuejs.org/breaking-changes/v-model.html"},COMPILER_V_BIND_OBJECT_ORDER:{message:'v-bind="obj" usage is now order sensitive and behaves like JavaScript object spread: it will now overwrite an existing non-mergeable attribute that appears before v-bind in the case of conflict. To retain 2.x behavior, move v-bind to make it the first attribute. You can also suppress this warning if the usage is intended.',link:"https://v3-migration.vuejs.org/breaking-changes/v-bind.html"},COMPILER_V_ON_NATIVE:{message:".native modifier for v-on has been removed as is no longer necessary.",link:"https://v3-migration.vuejs.org/breaking-changes/v-on-native-modifier-removed.html"},COMPILER_V_IF_V_FOR_PRECEDENCE:{message:"v-if / v-for precedence when used on the same element has changed in Vue 3: v-if now takes higher precedence and will no longer have access to v-for scope variables. It is best to avoid the ambiguity with <template> tags or use a computed property that filters v-for data source.",link:"https://v3-migration.vuejs.org/breaking-changes/v-if-v-for.html"},COMPILER_NATIVE_TEMPLATE:{message:"<template> with no special directives will render as a native template element instead of its inner content in Vue 3."},COMPILER_INLINE_TEMPLATE:{message:'"inline-template" has been removed in Vue 3.',link:"https://v3-migration.vuejs.org/breaking-changes/inline-template-attribute.html"},COMPILER_FILTERS:{message:'filters have been removed in Vue 3. The "|" symbol will be treated as native JavaScript bitwise OR operator. Use method calls or computed properties instead.',link:"https://v3-migration.vuejs.org/breaking-changes/filters.html"}};function wl(e,{compatConfig:t}){const n=t&&t[e];return e==="MODE"?n||3:n}function In(e,t){const n=wl("MODE",t),s=wl(e,t);return n===3?s===!0:s!==!1}function Ps(e,t,n,...s){const i=In(e,t);return i&&jr(e,t,n,...s),i}function jr(e,t,n,...s){if(wl(e,t)==="suppress-warning")return;const{message:r,link:o}=Ob[e],l=`(deprecation ${e}) ${typeof r=="function"?r(...s):r}${o?`
Details: ${o}`:""}`,a=new SyntaxError(l);a.code=e,n&&(a.loc=n),t.onWarn(a)}function Ga(e){throw e}function wp(e){console.warn(`[Vue warn] ${e.message}`)}function we(e,t,n,s){const i=(n||Ab)[e]+(s||""),r=new SyntaxError(String(i));return r.code=e,r.loc=t,r}const Ab={0:"Illegal comment.",1:"CDATA section is allowed only in XML context.",2:"Duplicate attribute.",3:"End tag cannot have attributes.",4:"Illegal '/' in tags.",5:"Unexpected EOF in tag.",6:"Unexpected EOF in CDATA section.",7:"Unexpected EOF in comment.",8:"Unexpected EOF in script.",9:"Unexpected EOF in tag.",10:"Incorrectly closed comment.",11:"Incorrectly opened comment.",12:"Illegal tag name. Use '<' to print '<'.",13:"Attribute value was expected.",14:"End tag name was expected.",15:"Whitespace was expected.",16:"Unexpected '<!--' in comment.",17:`Attribute name cannot contain U+0022 ("), U+0027 ('), and U+003C (<).`,18:"Unquoted attribute value cannot contain U+0022 (\"), U+0027 ('), U+003C (<), U+003D (=), and U+0060 (`).",19:"Attribute name cannot start with '='.",21:"'<?' is allowed only in XML context.",20:"Unexpected null character.",22:"Illegal '/' in tags.",23:"Invalid end tag.",24:"Element is missing end tag.",25:"Interpolation end sign was not found.",27:"End bracket for dynamic directive argument was not found. Note that dynamic directive argument cannot contain spaces.",26:"Legal directive name was expected.",28:"v-if/v-else-if is missing expression.",29:"v-if/else branches must use unique keys.",30:"v-else/v-else-if has no adjacent v-if or v-else-if.",31:"v-for is missing expression.",32:"v-for has invalid expression.",33:"<template v-for> key should be placed on the <template> tag.",34:"v-bind is missing expression.",52:"v-bind with same-name shorthand only allows static argument.",35:"v-on is missing expression.",36:"Unexpected custom directive on <slot> outlet.",37:"Mixed v-slot usage on both the component and nested <template>. When there are multiple named slots, all slots should use <template> syntax to avoid scope ambiguity.",38:"Duplicate slot names found. ",39:"Extraneous children found when component already has explicitly named default slot. These children will be ignored.",40:"v-slot can only be used on components or <template> tags.",41:"v-model is missing expression.",42:"v-model value must be a valid JavaScript member expression.",43:"v-model cannot be used on v-for or v-slot scope variables because they are not writable.",44:`v-model cannot be used on a prop, because local prop bindings are not writable.
Use a v-bind binding combined with a v-on listener that emits update:x event instead.`,45:"Error parsing JavaScript expression: ",46:"<KeepAlive> expects exactly one child component.",51:"@vnode-* hooks in templates are no longer supported. Use the vue: prefix instead. For example, @vnode-mounted should be changed to @vue:mounted. @vnode-* hooks support has been removed in 3.4.",47:'"prefixIdentifiers" option is not supported in this build of compiler.',48:"ES module mode is not supported in this build of compiler.",49:'"cacheHandlers" option is only supported when the "prefixIdentifiers" option is enabled.',50:'"scopeId" option is only supported in module mode.',53:""},dt=e=>e.type===4&&e.isStatic;function Ep(e){switch(e){case"Teleport":case"teleport":return ri;case"Suspense":case"suspense":return ka;case"KeepAlive":case"keep-alive":return Fr;case"BaseTransition":case"base-transition":return mp}}const Rb=/^\d|[^\$\w]/,Ya=e=>!Rb.test(e),Ib=/[A-Za-z_$\xA0-\uFFFF]/,Nb=/[\.\?\w$\xA0-\uFFFF]/,kb=/\s+[.[]\s*|\s*[.[]\s+/g,Pb=e=>{e=e.trim().replace(kb,o=>o.trim());let t=0,n=[],s=0,i=0,r=null;for(let o=0;o<e.length;o++){const l=e.charAt(o);switch(t){case 0:if(l==="[")n.push(t),t=1,s++;else if(l==="(")n.push(t),t=2,i++;else if(!(o===0?Ib:Nb).test(l))return!1;break;case 1:l==="'"||l==='"'||l==="`"?(n.push(t),t=3,r=l):l==="["?s++:l==="]"&&(--s||(t=n.pop()));break;case 2:if(l==="'"||l==='"'||l==="`")n.push(t),t=3,r=l;else if(l==="(")i++;else if(l===")"){if(o===e.length-1)return!1;--i||(t=n.pop())}break;case 3:l===r&&(t=n.pop(),r=null);break}}return!s&&!i},Cp=Pb;function du(e,t){if(!e)throw new Error(t||"unexpected compiler condition")}function _t(e,t,n=!1){for(let s=0;s<e.props.length;s++){const i=e.props[s];if(i.type===7&&(n||i.exp)&&(ee(t)?i.name===t:t.test(i.name)))return i}}function Ci(e,t,n=!1,s=!1){for(let i=0;i<e.props.length;i++){const r=e.props[i];if(r.type===6){if(n)continue;if(r.name===t&&(r.value||s))return r}else if(r.name==="bind"&&(r.exp||s)&&wn(r.arg,t))return r}}function wn(e,t){return!!(e&&dt(e)&&e.content===t)}function Mb(e){return e.props.some(t=>t.type===7&&t.name==="bind"&&(!t.arg||t.arg.type!==4||!t.arg.isStatic))}function Mo(e){return e.type===5||e.type===2}function $b(e){return e.type===7&&e.name==="slot"}function Br(e){return e.type===1&&e.tagType===3}function Hr(e){return e.type===1&&e.tagType===2}const Fb=new Set([wi,Di]);function Tp(e,t=[]){if(e&&!ee(e)&&e.type===14){const n=e.callee;if(!ee(n)&&Fb.has(n))return Tp(e.arguments[0],t.concat(e))}return[e,t]}function Ur(e,t,n){let s,i=e.type===13?e.props:e.arguments[2],r=[],o;if(i&&!ee(i)&&i.type===14){const l=Tp(i);i=l[0],r=l[1],o=r[r.length-1]}if(i==null||ee(i))s=St([t]);else if(i.type===14){const l=i.arguments[0];!ee(l)&&l.type===15?pu(t,l)||l.properties.unshift(t):i.callee===Ka?s=Ve(n.helper(Lr),[St([t]),i]):i.arguments.unshift(St([t])),!s&&(s=i)}else i.type===15?(pu(t,i)||i.properties.unshift(t),s=i):(s=Ve(n.helper(Lr),[St([t]),i]),o&&o.callee===Di&&(o=r[r.length-2]));e.type===13?o?o.arguments[0]=s:e.props=s:o?o.arguments[0]=s:e.arguments[2]=s}function pu(e,t){let n=!1;if(e.key.type===4){const s=e.key.content;n=t.properties.some(i=>i.key.type===4&&i.key.content===s)}return n}function Ti(e,t){return`_${t}_${e.replace(/[^\w]/g,(n,s)=>n==="-"?"_":e.charCodeAt(s).toString())}`}function Lb(e){return e.type===14&&e.callee===Wa?e.arguments[1].returns:e}const Db=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,xp={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:fr,isPreTag:fr,isCustomElement:fr,onError:Ga,onWarn:wp,comments:!0,prefixIdentifiers:!1};let ge=xp,xi=null,ns="",Je=null,ye=null,lt="",Xt=-1,Un=-1,Kr=0,vn=!1,El=null;const Ne=[],Ce=new xb(Ne,{onerr:ot,ontext(e,t){sr(qe(e,t),e,t)},ontextentity(e,t,n){sr(e,t,n)},oninterpolation(e,t){if(vn)return sr(qe(e,t),e,t);let n=e+Ce.delimiterOpen.length,s=t-Ce.delimiterClose.length;for(;ht(ns.charCodeAt(n));)n++;for(;ht(ns.charCodeAt(s-1));)s--;let i=qe(n,s);i.includes("&")&&(i=ge.decodeEntities(i,!1)),Cl({type:5,content:gr(i,!1,Le(n,s)),loc:Le(e,t)})},onopentagname(e,t){const n=qe(e,t);Je={type:1,tag:n,ns:ge.getNamespace(n,Ne[0],ge.ns),tagType:0,props:[],children:[],loc:Le(e-1,t),codegenNode:void 0}},onopentagend(e){mu(e)},onclosetag(e,t){const n=qe(e,t);if(!ge.isVoidTag(n)){let s=!1;for(let i=0;i<Ne.length;i++)if(Ne[i].tag.toLowerCase()===n.toLowerCase()){s=!0,i>0&&ot(24,Ne[0].loc.start.offset);for(let o=0;o<=i;o++){const l=Ne.shift();mr(l,t,o<i)}break}s||ot(23,Op(e,60))}},onselfclosingtag(e){var t;const n=Je.tag;Je.isSelfClosing=!0,mu(e),((t=Ne[0])==null?void 0:t.tag)===n&&mr(Ne.shift(),e)},onattribname(e,t){ye={type:6,name:qe(e,t),nameLoc:Le(e,t),value:void 0,loc:Le(e)}},ondirname(e,t){const n=qe(e,t),s=n==="."||n===":"?"bind":n==="@"?"on":n==="#"?"slot":n.slice(2);if(!vn&&s===""&&ot(26,e),vn||s==="")ye={type:6,name:n,nameLoc:Le(e,t),value:void 0,loc:Le(e)};else if(ye={type:7,name:s,rawName:n,exp:void 0,arg:void 0,modifiers:n==="."?["prop"]:[],loc:Le(e)},s==="pre"){vn=Ce.inVPre=!0,El=Je;const i=Je.props;for(let r=0;r<i.length;r++)i[r].type===7&&(i[r]=zb(i[r]))}},ondirarg(e,t){if(e===t)return;const n=qe(e,t);if(vn)ye.name+=n,zn(ye.nameLoc,t);else{const s=n[0]!=="[";ye.arg=gr(s?n:n.slice(1,-1),s,Le(e,t),s?3:0)}},ondirmodifier(e,t){const n=qe(e,t);if(vn)ye.name+="."+n,zn(ye.nameLoc,t);else if(ye.name==="slot"){const s=ye.arg;s&&(s.content+="."+n,zn(s.loc,t))}else ye.modifiers.push(n)},onattribdata(e,t){lt+=qe(e,t),Xt<0&&(Xt=e),Un=t},onattribentity(e,t,n){lt+=e,Xt<0&&(Xt=t),Un=n},onattribnameend(e){const t=ye.loc.start.offset,n=qe(t,e);ye.type===7&&(ye.rawName=n),Je.props.some(s=>(s.type===7?s.rawName:s.name)===n)&&ot(2,t)},onattribend(e,t){if(Je&&ye){if(zn(ye.loc,t),e!==0)if(lt.includes("&")&&(lt=ge.decodeEntities(lt,!0)),ye.type===6)ye.name==="class"&&(lt=Rp(lt).trim()),e===1&&!lt&&ot(13,t),ye.value={type:2,content:lt,loc:e===1?Le(Xt,Un):Le(Xt-1,Un+1)},Ce.inSFCRoot&&Je.tag==="template"&&ye.name==="lang"&<&<!=="html"&&Ce.enterRCDATA(Vr("</template"),0);else{let n=0;ye.exp=gr(lt,!1,Le(Xt,Un),0,n),ye.name==="for"&&(ye.forParseResult=jb(ye.exp));let s=-1;ye.name==="bind"&&(s=ye.modifiers.indexOf("sync"))>-1&&Ps("COMPILER_V_BIND_SYNC",ge,ye.loc,ye.rawName)&&(ye.name="model",ye.modifiers.splice(s,1))}(ye.type!==7||ye.name!=="pre")&&Je.props.push(ye)}lt="",Xt=Un=-1},oncomment(e,t){ge.comments&&Cl({type:3,content:qe(e,t),loc:Le(e-4,t+3)})},onend(){const e=ns.length;if(Ce.state!==1)switch(Ce.state){case 5:case 8:ot(5,e);break;case 3:case 4:ot(25,Ce.sectionStart);break;case 28:Ce.currentSequence===Ke.CdataEnd?ot(6,e):ot(7,e);break;case 6:case 7:case 9:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:ot(9,e);break}for(let t=0;t<Ne.length;t++)mr(Ne[t],e-1),ot(24,Ne[t].loc.start.offset)},oncdata(e,t){Ne[0].ns!==0?sr(qe(e,t),e,t):ot(1,e-9)},onprocessinginstruction(e){(Ne[0]?Ne[0].ns:ge.ns)===0&&ot(21,e-1)}}),hu=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Vb=/^\(|\)$/g;function jb(e){const t=e.loc,n=e.content,s=n.match(Db);if(!s)return;const[,i,r]=s,o=(u,d,p=!1)=>{const m=t.start.offset+d,w=m+u.length;return gr(u,!1,Le(m,w),0,p?1:0)},l={source:o(r.trim(),n.indexOf(r,i.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let a=i.trim().replace(Vb,"").trim();const c=i.indexOf(a),f=a.match(hu);if(f){a=a.replace(hu,"").trim();const u=f[1].trim();let d;if(u&&(d=n.indexOf(u,c+a.length),l.key=o(u,d,!0)),f[2]){const p=f[2].trim();p&&(l.index=o(p,n.indexOf(p,l.key?d+u.length:c+a.length),!0))}}return a&&(l.value=o(a,c,!0)),l}function qe(e,t){return ns.slice(e,t)}function mu(e){Ce.inSFCRoot&&(Je.innerLoc=Le(e+1,e+1)),Cl(Je);const{tag:t,ns:n}=Je;n===0&&ge.isPreTag(t)&&Kr++,ge.isVoidTag(t)?mr(Je,e):(Ne.unshift(Je),(n===1||n===2)&&(Ce.inXML=!0)),Je=null}function sr(e,t,n){var s;{const o=(s=Ne[0])==null?void 0:s.tag;o!=="script"&&o!=="style"&&e.includes("&")&&(e=ge.decodeEntities(e,!1))}const i=Ne[0]||xi,r=i.children[i.children.length-1];(r==null?void 0:r.type)===2?(r.content+=e,zn(r.loc,n)):i.children.push({type:2,content:e,loc:Le(t,n)})}function mr(e,t,n=!1){n?zn(e.loc,Op(t,60)):zn(e.loc,t+1),Ce.inSFCRoot&&(e.children.length?e.innerLoc.end=ce({},e.children[e.children.length-1].loc.end):e.innerLoc.end=ce({},e.innerLoc.start),e.innerLoc.source=qe(e.innerLoc.start.offset,e.innerLoc.end.offset));const{tag:s,ns:i}=e;vn||(s==="slot"?e.tagType=2:gu(e)?e.tagType=3:Hb(e)&&(e.tagType=1)),Ce.inRCDATA||(e.children=Ap(e.children,e.tag)),i===0&&ge.isPreTag(s)&&Kr--,El===e&&(vn=Ce.inVPre=!1,El=null),Ce.inXML&&(Ne[0]?Ne[0].ns:ge.ns)===0&&(Ce.inXML=!1);{const r=e.props;if(In("COMPILER_V_IF_V_FOR_PRECEDENCE",ge)){let l=!1,a=!1;for(let c=0;c<r.length;c++){const f=r[c];if(f.type===7&&(f.name==="if"?l=!0:f.name==="for"&&(a=!0)),l&&a){jr("COMPILER_V_IF_V_FOR_PRECEDENCE",ge,e.loc);break}}}if(!Ce.inSFCRoot&&In("COMPILER_NATIVE_TEMPLATE",ge)&&e.tag==="template"&&!gu(e)){jr("COMPILER_NATIVE_TEMPLATE",ge,e.loc);const l=Ne[0]||xi,a=l.children.indexOf(e);l.children.splice(a,1,...e.children)}const o=r.find(l=>l.type===6&&l.name==="inline-template");o&&Ps("COMPILER_INLINE_TEMPLATE",ge,o.loc)&&e.children.length&&(o.value={type:2,content:qe(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:o.loc})}}function Op(e,t){let n=e;for(;ns.charCodeAt(n)!==t&&n>=0;)n--;return n}const Bb=new Set(["if","else","else-if","for","slot"]);function gu({tag:e,props:t}){if(e==="template"){for(let n=0;n<t.length;n++)if(t[n].type===7&&Bb.has(t[n].name))return!0}return!1}function Hb({tag:e,props:t}){var n;if(ge.isCustomElement(e))return!1;if(e==="component"||Ub(e.charCodeAt(0))||Ep(e)||(n=ge.isBuiltInComponent)!=null&&n.call(ge,e)||ge.isNativeTag&&!ge.isNativeTag(e))return!0;for(let s=0;s<t.length;s++){const i=t[s];if(i.type===6){if(i.name==="is"&&i.value){if(i.value.content.startsWith("vue:"))return!0;if(Ps("COMPILER_IS_ON_ELEMENT",ge,i.loc))return!0}}else if(i.name==="bind"&&wn(i.arg,"is")&&Ps("COMPILER_IS_ON_ELEMENT",ge,i.loc))return!0}return!1}function Ub(e){return e>64&&e<91}const Kb=/\r\n/g;function Ap(e,t){var n,s;const i=ge.whitespace!=="preserve";let r=!1;for(let o=0;o<e.length;o++){const l=e[o];if(l.type===2)if(Kr)l.content=l.content.replace(Kb,`
`);else if(qb(l.content)){const a=(n=e[o-1])==null?void 0:n.type,c=(s=e[o+1])==null?void 0:s.type;!a||!c||i&&(a===3&&(c===3||c===1)||a===1&&(c===3||c===1&&Wb(l.content)))?(r=!0,e[o]=null):l.content=" "}else i&&(l.content=Rp(l.content))}if(Kr&&t&&ge.isPreTag(t)){const o=e[0];o&&o.type===2&&(o.content=o.content.replace(/^\r?\n/,""))}return r?e.filter(Boolean):e}function qb(e){for(let t=0;t<e.length;t++)if(!ht(e.charCodeAt(t)))return!1;return!0}function Wb(e){for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(n===10||n===13)return!0}return!1}function Rp(e){let t="",n=!1;for(let s=0;s<e.length;s++)ht(e.charCodeAt(s))?n||(t+=" ",n=!0):(t+=e[s],n=!1);return t}function Cl(e){(Ne[0]||xi).children.push(e)}function Le(e,t){return{start:Ce.getPos(e),end:t==null?t:Ce.getPos(t),source:t==null?t:qe(e,t)}}function zn(e,t){e.end=Ce.getPos(t),e.source=qe(e.start.offset,t)}function zb(e){const t={type:6,name:e.rawName,nameLoc:Le(e.loc.start.offset,e.loc.start.offset+e.rawName.length),value:void 0,loc:e.loc};if(e.exp){const n=e.exp.loc;n.end.offset<e.loc.end.offset&&(n.start.offset--,n.start.column--,n.end.offset++,n.end.column++),t.value={type:2,content:e.exp.content,loc:n}}return t}function gr(e,t=!1,n,s=0,i=0){return oe(e,t,n,s)}function ot(e,t,n){ge.onError(we(e,Le(t,t),void 0,n))}function Gb(){Ce.reset(),Je=null,ye=null,lt="",Xt=-1,Un=-1,Ne.length=0}function Yb(e,t){if(Gb(),ns=e,ge=ce({},xp),t){let i;for(i in t)t[i]!=null&&(ge[i]=t[i])}if(!ge.decodeEntities)throw new Error("[@vue/compiler-core] decodeEntities option is required in browser builds.");Ce.mode=ge.parseMode==="html"?1:ge.parseMode==="sfc"?2:0,Ce.inXML=ge.ns===1||ge.ns===2;const n=t==null?void 0:t.delimiters;n&&(Ce.delimiterOpen=Vr(n[0]),Ce.delimiterClose=Vr(n[1]));const s=xi=Eb([],e);return Ce.parse(ns),s.loc=Le(0,e.length),s.children=Ap(s.children),xi=null,s}function Jb(e,t){yr(e,t,Ip(e,e.children[0]))}function Ip(e,t){const{children:n}=e;return n.length===1&&t.type===1&&!Hr(t)}function yr(e,t,n=!1){const{children:s}=e,i=s.length;let r=0;for(let o=0;o<s.length;o++){const l=s[o];if(l.type===1&&l.tagType===0){const a=n?0:wt(l,t);if(a>0){if(a>=2){l.codegenNode.patchFlag="-1 /* HOISTED */",l.codegenNode=t.hoist(l.codegenNode),r++;continue}}else{const c=l.codegenNode;if(c.type===13){const f=Mp(c);if((!f||f===512||f===1)&&kp(l,t)>=2){const u=Pp(l);u&&(c.props=t.hoist(u))}c.dynamicProps&&(c.dynamicProps=t.hoist(c.dynamicProps))}}}if(l.type===1){const a=l.tagType===1;a&&t.scopes.vSlot++,yr(l,t),a&&t.scopes.vSlot--}else if(l.type===11)yr(l,t,l.children.length===1);else if(l.type===9)for(let a=0;a<l.branches.length;a++)yr(l.branches[a],t,l.branches[a].children.length===1)}if(r&&t.transformHoist&&t.transformHoist(s,t,e),r&&r===i&&e.type===1&&e.tagType===0&&e.codegenNode&&e.codegenNode.type===13&&H(e.codegenNode.children)){const o=t.hoist(Vi(e.codegenNode.children));t.hmr&&(o.content=`[...${o.content}]`),e.codegenNode.children=o}}function wt(e,t){const{constantCache:n}=t;switch(e.type){case 1:if(e.tagType!==0)return 0;const s=n.get(e);if(s!==void 0)return s;const i=e.codegenNode;if(i.type!==13||i.isBlock&&e.tag!=="svg"&&e.tag!=="foreignObject")return 0;if(Mp(i))return n.set(e,0),0;{let l=3;const a=kp(e,t);if(a===0)return n.set(e,0),0;a<l&&(l=a);for(let c=0;c<e.children.length;c++){const f=wt(e.children[c],t);if(f===0)return n.set(e,0),0;f<l&&(l=f)}if(l>1)for(let c=0;c<e.props.length;c++){const f=e.props[c];if(f.type===7&&f.name==="bind"&&f.exp){const u=wt(f.exp,t);if(u===0)return n.set(e,0),0;u<l&&(l=u)}}if(i.isBlock){for(let c=0;c<e.props.length;c++)if(e.props[c].type===7)return n.set(e,0),0;t.removeHelper(ls),t.removeHelper(ks(t.inSSR,i.isComponent)),i.isBlock=!1,t.helper(Ns(t.inSSR,i.isComponent))}return n.set(e,l),l}case 2:case 3:return 3;case 9:case 11:case 10:return 0;case 5:case 12:return wt(e.content,t);case 4:return e.constType;case 8:let o=3;for(let l=0;l<e.children.length;l++){const a=e.children[l];if(ee(a)||kt(a))continue;const c=wt(a,t);if(c===0)return 0;c<o&&(o=c)}return o;default:return 0}}const Xb=new Set([Ha,Ua,wi,Di]);function Np(e,t){if(e.type===14&&!ee(e.callee)&&Xb.has(e.callee)){const n=e.arguments[0];if(n.type===4)return wt(n,t);if(n.type===14)return Np(n,t)}return 0}function kp(e,t){let n=3;const s=Pp(e);if(s&&s.type===15){const{properties:i}=s;for(let r=0;r<i.length;r++){const{key:o,value:l}=i[r],a=wt(o,t);if(a===0)return a;a<n&&(n=a);let c;if(l.type===4?c=wt(l,t):l.type===14?c=Np(l,t):c=0,c===0)return c;c<n&&(n=c)}}return n}function Pp(e){const t=e.codegenNode;if(t.type===13)return t.props}function Mp(e){const t=e.patchFlag;return t?parseInt(t,10):void 0}function Qb(e,{filename:t="",prefixIdentifiers:n=!1,hoistStatic:s=!1,hmr:i=!1,cacheHandlers:r=!1,nodeTransforms:o=[],directiveTransforms:l={},transformHoist:a=null,isBuiltInComponent:c=Me,isCustomElement:f=Me,expressionPlugins:u=[],scopeId:d=null,slotted:p=!0,ssr:m=!1,inSSR:w=!1,ssrCssVars:E="",bindingMetadata:y=me,inline:_=!1,isTS:g=!1,onError:b=Ga,onWarn:S=wp,compatConfig:A}){const C=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),T={filename:t,selfName:C&&Ut(Ie(C[1])),prefixIdentifiers:n,hoistStatic:s,hmr:i,cacheHandlers:r,nodeTransforms:o,directiveTransforms:l,transformHoist:a,isBuiltInComponent:c,isCustomElement:f,expressionPlugins:u,scopeId:d,slotted:p,ssr:m,inSSR:w,ssrCssVars:E,bindingMetadata:y,inline:_,isTS:g,onError:b,onWarn:S,compatConfig:A,root:e,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],constantCache:new WeakMap,temps:0,cached:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,currentNode:e,childIndex:0,inVOnce:!1,helper(O){const x=T.helpers.get(O)||0;return T.helpers.set(O,x+1),O},removeHelper(O){const x=T.helpers.get(O);if(x){const N=x-1;N?T.helpers.set(O,N):T.helpers.delete(O)}},helperString(O){return`_${Rs[T.helper(O)]}`},replaceNode(O){{if(!T.currentNode)throw new Error("Node being replaced is already removed.");if(!T.parent)throw new Error("Cannot replace root node.")}T.parent.children[T.childIndex]=T.currentNode=O},removeNode(O){if(!T.parent)throw new Error("Cannot remove root node.");const x=T.parent.children,N=O?x.indexOf(O):T.currentNode?T.childIndex:-1;if(N<0)throw new Error("node being removed is not a child of current parent");!O||O===T.currentNode?(T.currentNode=null,T.onNodeRemoved()):T.childIndex>N&&(T.childIndex--,T.onNodeRemoved()),T.parent.children.splice(N,1)},onNodeRemoved:Me,addIdentifiers(O){},removeIdentifiers(O){},hoist(O){ee(O)&&(O=oe(O)),T.hoists.push(O);const x=oe(`_hoisted_${T.hoists.length}`,!1,O.loc,2);return x.hoisted=O,x},cache(O,x=!1){return Cb(T.cached++,O,x)}};return T.filters=new Set,T}function Zb(e,t){const n=Qb(e,t);go(e,n),t.hoistStatic&&Jb(e,n),t.ssr||e0(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.transformed=!0,e.filters=[...n.filters]}function e0(e,t){const{helper:n}=t,{children:s}=e;if(s.length===1){const i=s[0];if(Ip(e,i)&&i.codegenNode){const r=i.codegenNode;r.type===13&&za(r,t),e.codegenNode=r}else e.codegenNode=i}else if(s.length>1){let i=64,r=jt[64];s.filter(o=>o.type!==3).length===1&&(i|=2048,r+=`, ${jt[2048]}`),e.codegenNode=Ei(t,n(Si),void 0,e.children,i+` /* ${r} */`,void 0,void 0,!0,void 0,!1)}}function t0(e,t){let n=0;const s=()=>{n--};for(;n<e.children.length;n++){const i=e.children[n];ee(i)||(t.parent=e,t.childIndex=n,t.onNodeRemoved=s,go(i,t))}}function go(e,t){t.currentNode=e;const{nodeTransforms:n}=t,s=[];for(let r=0;r<n.length;r++){const o=n[r](e,t);if(o&&(H(o)?s.push(...o):s.push(o)),t.currentNode)e=t.currentNode;else return}switch(e.type){case 3:t.ssr||t.helper(Li);break;case 5:t.ssr||t.helper(mo);break;case 9:for(let r=0;r<e.branches.length;r++)go(e.branches[r],t);break;case 10:case 11:case 1:case 0:t0(e,t);break}t.currentNode=e;let i=s.length;for(;i--;)s[i]()}function $p(e,t){const n=ee(e)?s=>s===e:s=>e.test(s);return(s,i)=>{if(s.type===1){const{props:r}=s;if(s.tagType===3&&r.some($b))return;const o=[];for(let l=0;l<r.length;l++){const a=r[l];if(a.type===7&&n(a.name)){r.splice(l,1),l--;const c=t(s,a,i);c&&o.push(c)}}return o}}}const yo="/*#__PURE__*/",Fp=e=>`${Rs[e]}: _${Rs[e]}`;function n0(e,{mode:t="function",prefixIdentifiers:n=t==="module",sourceMap:s=!1,filename:i="template.vue.html",scopeId:r=null,optimizeImports:o=!1,runtimeGlobalName:l="Vue",runtimeModuleName:a="vue",ssrRuntimeModuleName:c="vue/server-renderer",ssr:f=!1,isTS:u=!1,inSSR:d=!1}){const p={mode:t,prefixIdentifiers:n,sourceMap:s,filename:i,scopeId:r,optimizeImports:o,runtimeGlobalName:l,runtimeModuleName:a,ssrRuntimeModuleName:c,ssr:f,isTS:u,inSSR:d,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(w){return`_${Rs[w]}`},push(w,E=-2,y){p.code+=w},indent(){m(++p.indentLevel)},deindent(w=!1){w?--p.indentLevel:m(--p.indentLevel)},newline(){m(p.indentLevel)}};function m(w){p.push(`
`+" ".repeat(w),0)}return p}function s0(e,t={}){const n=n0(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:s,push:i,prefixIdentifiers:r,indent:o,deindent:l,newline:a,scopeId:c,ssr:f}=n,u=Array.from(e.helpers),d=u.length>0,p=!r&&s!=="module";i0(e,n);const w=f?"ssrRender":"render",y=(f?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ");if(i(`function ${w}(${y}) {`),o(),p&&(i("with (_ctx) {"),o(),d&&(i(`const { ${u.map(Fp).join(", ")} } = _Vue
`,-1),a())),e.components.length&&($o(e.components,"component",n),(e.directives.length||e.temps>0)&&a()),e.directives.length&&($o(e.directives,"directive",n),e.temps>0&&a()),e.filters&&e.filters.length&&(a(),$o(e.filters,"filter",n),a()),e.temps>0){i("let ");for(let _=0;_<e.temps;_++)i(`${_>0?", ":""}_temp${_}`)}return(e.components.length||e.directives.length||e.temps)&&(i(`
`,0),a()),f||i("return "),e.codegenNode?et(e.codegenNode,n):i("null"),p&&(l(),i("}")),l(),i("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}function i0(e,t){const{ssr:n,prefixIdentifiers:s,push:i,newline:r,runtimeModuleName:o,runtimeGlobalName:l,ssrRuntimeModuleName:a}=t,c=l,f=Array.from(e.helpers);if(f.length>0&&(i(`const _Vue = ${c}
`,-1),e.hoists.length)){const u=[Pa,Ma,Li,$a,vp].filter(d=>f.includes(d)).map(Fp).join(", ");i(`const { ${u} } = _Vue
`,-1)}r0(e.hoists,t),r(),i("return ")}function $o(e,t,{helper:n,push:s,newline:i,isTS:r}){const o=n(t==="filter"?Va:t==="component"?Fa:Da);for(let l=0;l<e.length;l++){let a=e[l];const c=a.endsWith("__self");c&&(a=a.slice(0,-6)),s(`const ${Ti(a,t)} = ${o}(${JSON.stringify(a)}${c?", true":""})${r?"!":""}`),l<e.length-1&&i()}}function r0(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:s,helper:i,scopeId:r,mode:o}=t;s();for(let l=0;l<e.length;l++){const a=e[l];a&&(n(`const _hoisted_${l+1} = `),et(a,t),s())}t.pure=!1}function o0(e){return ee(e)||e.type===4||e.type===2||e.type===5||e.type===8}function Ja(e,t){const n=e.length>3||e.some(s=>H(s)||!o0(s));t.push("["),n&&t.indent(),ji(e,t,n),n&&t.deindent(),t.push("]")}function ji(e,t,n=!1,s=!0){const{push:i,newline:r}=t;for(let o=0;o<e.length;o++){const l=e[o];ee(l)?i(l,-3):H(l)?Ja(l,t):et(l,t),o<e.length-1&&(n?(s&&i(","),r()):s&&i(", "))}}function et(e,t){if(ee(e)){t.push(e,-3);return}if(kt(e)){t.push(t.helper(e));return}switch(e.type){case 1:case 9:case 11:du(e.codegenNode!=null,"Codegen node is missing for element/if/for node. Apply appropriate transforms first."),et(e.codegenNode,t);break;case 2:l0(e,t);break;case 4:Lp(e,t);break;case 5:a0(e,t);break;case 12:et(e.codegenNode,t);break;case 8:Dp(e,t);break;case 3:u0(e,t);break;case 13:f0(e,t);break;case 14:p0(e,t);break;case 15:h0(e,t);break;case 17:m0(e,t);break;case 18:g0(e,t);break;case 19:y0(e,t);break;case 20:v0(e,t);break;case 21:ji(e.body,t,!0,!1);break;case 22:break;case 23:break;case 24:break;case 25:break;case 26:break;case 10:break;default:return du(!1,`unhandled codegen node type: ${e.type}`),e}}function l0(e,t){t.push(JSON.stringify(e.content),-3,e)}function Lp(e,t){const{content:n,isStatic:s}=e;t.push(s?JSON.stringify(n):n,-3,e)}function a0(e,t){const{push:n,helper:s,pure:i}=t;i&&n(yo),n(`${s(mo)}(`),et(e.content,t),n(")")}function Dp(e,t){for(let n=0;n<e.children.length;n++){const s=e.children[n];ee(s)?t.push(s,-3):et(s,t)}}function c0(e,t){const{push:n}=t;if(e.type===8)n("["),Dp(e,t),n("]");else if(e.isStatic){const s=Ya(e.content)?e.content:JSON.stringify(e.content);n(s,-2,e)}else n(`[${e.content}]`,-3,e)}function u0(e,t){const{push:n,helper:s,pure:i}=t;i&&n(yo),n(`${s(Li)}(${JSON.stringify(e.content)})`,-3,e)}function f0(e,t){const{push:n,helper:s,pure:i}=t,{tag:r,props:o,children:l,patchFlag:a,dynamicProps:c,directives:f,isBlock:u,disableTracking:d,isComponent:p}=e;f&&n(s(ja)+"("),u&&n(`(${s(ls)}(${d?"true":""}), `),i&&n(yo);const m=u?ks(t.inSSR,p):Ns(t.inSSR,p);n(s(m)+"(",-2,e),ji(d0([r,o,l,a,c]),t),n(")"),u&&n(")"),f&&(n(", "),et(f,t),n(")"))}function d0(e){let t=e.length;for(;t--&&e[t]==null;);return e.slice(0,t+1).map(n=>n||"null")}function p0(e,t){const{push:n,helper:s,pure:i}=t,r=ee(e.callee)?e.callee:s(e.callee);i&&n(yo),n(r+"(",-2,e),ji(e.arguments,t),n(")")}function h0(e,t){const{push:n,indent:s,deindent:i,newline:r}=t,{properties:o}=e;if(!o.length){n("{}",-2,e);return}const l=o.length>1||o.some(a=>a.value.type!==4);n(l?"{":"{ "),l&&s();for(let a=0;a<o.length;a++){const{key:c,value:f}=o[a];c0(c,t),n(": "),et(f,t),a<o.length-1&&(n(","),r())}l&&i(),n(l?"}":" }")}function m0(e,t){Ja(e.elements,t)}function g0(e,t){const{push:n,indent:s,deindent:i}=t,{params:r,returns:o,body:l,newline:a,isSlot:c}=e;c&&n(`_${Rs[qa]}(`),n("(",-2,e),H(r)?ji(r,t):r&&et(r,t),n(") => "),(a||l)&&(n("{"),s()),o?(a&&n("return "),H(o)?Ja(o,t):et(o,t)):l&&et(l,t),(a||l)&&(i(),n("}")),c&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}function y0(e,t){const{test:n,consequent:s,alternate:i,newline:r}=e,{push:o,indent:l,deindent:a,newline:c}=t;if(n.type===4){const u=!Ya(n.content);u&&o("("),Lp(n,t),u&&o(")")}else o("("),et(n,t),o(")");r&&l(),t.indentLevel++,r||o(" "),o("? "),et(s,t),t.indentLevel--,r&&c(),r||o(" "),o(": ");const f=i.type===19;f||t.indentLevel++,et(i,t),f||t.indentLevel--,r&&a(!0)}function v0(e,t){const{push:n,helper:s,indent:i,deindent:r,newline:o}=t;n(`_cache[${e.index}] || (`),e.isVNode&&(i(),n(`${s(Dr)}(-1),`),o()),n(`_cache[${e.index}] = `),et(e.value,t),e.isVNode&&(n(","),o(),n(`${s(Dr)}(1),`),o(),n(`_cache[${e.index}]`),r()),n(")")}const b0=new RegExp("\\b"+"arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b")+"\\b"),_0=/'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`(?:[^`\\]|\\.)*\$\{|\}(?:[^`\\]|\\.)*`|`(?:[^`\\]|\\.)*`/g;function Gn(e,t,n=!1,s=!1){const i=e.content;if(i.trim())try{new Function(s?` ${i} `:`return ${n?`(${i}) => {}`:`(${i})`}`)}catch(r){let o=r.message;const l=i.replace(_0,"").match(b0);l&&(o=`avoid using JavaScript keyword as property name: "${l[0]}"`),t.onError(we(45,e.loc,void 0,o))}}const S0=(e,t)=>{if(e.type===5)e.content=Fo(e.content,t);else if(e.type===1)for(let n=0;n<e.props.length;n++){const s=e.props[n];if(s.type===7&&s.name!=="for"){const i=s.exp,r=s.arg;i&&i.type===4&&!(s.name==="on"&&r)&&(s.exp=Fo(i,t,s.name==="slot")),r&&r.type===4&&!r.isStatic&&(s.arg=Fo(r,t))}}};function Fo(e,t,n=!1,s=!1,i=Object.create(t.identifiers)){return Gn(e,t,n,s),e}const w0=$p(/^(if|else|else-if)$/,(e,t,n)=>E0(e,t,n,(s,i,r)=>{const o=n.parent.children;let l=o.indexOf(s),a=0;for(;l-->=0;){const c=o[l];c&&c.type===9&&(a+=c.branches.length)}return()=>{if(r)s.codegenNode=vu(i,a,n);else{const c=T0(s.codegenNode);c.alternate=vu(i,a+s.branches.length-1,n)}}}));function E0(e,t,n,s){if(t.name!=="else"&&(!t.exp||!t.exp.content.trim())){const i=t.exp?t.exp.loc:e.loc;n.onError(we(28,t.loc)),t.exp=oe("true",!1,i)}if(t.exp&&Gn(t.exp,n),t.name==="if"){const i=yu(e,t),r={type:9,loc:e.loc,branches:[i]};if(n.replaceNode(r),s)return s(r,i,!0)}else{const i=n.parent.children,r=[];let o=i.indexOf(e);for(;o-->=-1;){const l=i[o];if(l&&l.type===3){n.removeNode(l),r.unshift(l);continue}if(l&&l.type===2&&!l.content.trim().length){n.removeNode(l);continue}if(l&&l.type===9){t.name==="else-if"&&l.branches[l.branches.length-1].condition===void 0&&n.onError(we(30,e.loc)),n.removeNode();const a=yu(e,t);r.length&&!(n.parent&&n.parent.type===1&&(n.parent.tag==="transition"||n.parent.tag==="Transition"))&&(a.children=[...r,...a.children]);{const f=a.userKey;f&&l.branches.forEach(({userKey:u})=>{C0(u,f)&&n.onError(we(29,a.userKey.loc))})}l.branches.push(a);const c=s&&s(l,a,!1);go(a,n),c&&c(),n.currentNode=null}else n.onError(we(30,e.loc));break}}}function yu(e,t){const n=e.tagType===3;return{type:10,loc:e.loc,condition:t.name==="else"?void 0:t.exp,children:n&&!_t(e,"for")?e.children:[e],userKey:Ci(e,"key"),isTemplateIf:n}}function vu(e,t,n){return e.condition?Sl(e.condition,bu(e,t,n),Ve(n.helper(Li),['"v-if"',"true"])):bu(e,t,n)}function bu(e,t,n){const{helper:s}=n,i=ke("key",oe(`${t}`,!1,yt,2)),{children:r}=e,o=r[0];if(r.length!==1||o.type!==1)if(r.length===1&&o.type===11){const a=o.codegenNode;return Ur(a,i,n),a}else{let a=64,c=jt[64];return!e.isTemplateIf&&r.filter(f=>f.type!==3).length===1&&(a|=2048,c+=`, ${jt[2048]}`),Ei(n,s(Si),St([i]),r,a+` /* ${c} */`,void 0,void 0,!0,!1,!1,e.loc)}else{const a=o.codegenNode,c=Lb(a);return c.type===13&&za(c,n),Ur(c,i,n),a}}function C0(e,t){if(!e||e.type!==t.type)return!1;if(e.type===6){if(e.value.content!==t.value.content)return!1}else{const n=e.exp,s=t.exp;if(n.type!==s.type||n.type!==4||n.isStatic!==s.isStatic||n.content!==s.content)return!1}return!0}function T0(e){for(;;)if(e.type===19)if(e.alternate.type===19)e=e.alternate;else return e;else e.type===20&&(e=e.value)}const x0=$p("for",(e,t,n)=>{const{helper:s,removeHelper:i}=n;return O0(e,t,n,r=>{const o=Ve(s(Ba),[r.source]),l=Br(e),a=_t(e,"memo"),c=Ci(e,"key"),f=c&&(c.type===6?oe(c.value.content,!0):c.exp),u=c?ke("key",f):null,d=r.source.type===4&&r.source.constType>0,p=d?64:c?128:256;return r.codegenNode=Ei(n,s(Si),void 0,o,p+` /* ${jt[p]} */`,void 0,void 0,!0,!d,!1,e.loc),()=>{let m;const{children:w}=r;l&&e.children.some(_=>{if(_.type===1){const g=Ci(_,"key");if(g)return n.onError(we(33,g.loc)),!0}});const E=w.length!==1||w[0].type!==1,y=Hr(e)?e:l&&e.children.length===1&&Hr(e.children[0])?e.children[0]:null;if(y?(m=y.codegenNode,l&&u&&Ur(m,u,n)):E?m=Ei(n,s(Si),u?St([u]):void 0,e.children,`64 /* ${jt[64]} */`,void 0,void 0,!0,void 0,!1):(m=w[0].codegenNode,l&&u&&Ur(m,u,n),m.isBlock!==!d&&(m.isBlock?(i(ls),i(ks(n.inSSR,m.isComponent))):i(Ns(n.inSSR,m.isComponent))),m.isBlock=!d,m.isBlock?(s(ls),s(ks(n.inSSR,m.isComponent))):s(Ns(n.inSSR,m.isComponent))),a){const _=Is(Tl(r.parseResult,[oe("_cached")]));_.body=Tb([Nt(["const _memo = (",a.exp,")"]),Nt(["if (_cached",...f?[" && _cached.key === ",f]:[],` && ${n.helperString(Sp)}(_cached, _memo)) return _cached`]),Nt(["const _item = ",m]),oe("_item.memo = _memo"),oe("return _item")]),o.arguments.push(_,oe("_cache"),oe(String(n.cached++)))}else o.arguments.push(Is(Tl(r.parseResult),m,!0))}})});function O0(e,t,n,s){if(!t.exp){n.onError(we(31,t.loc));return}const i=t.forParseResult;if(!i){n.onError(we(32,t.loc));return}Vp(i,n);const{addIdentifiers:r,removeIdentifiers:o,scopes:l}=n,{source:a,value:c,key:f,index:u}=i,d={type:11,loc:t.loc,source:a,valueAlias:c,keyAlias:f,objectIndexAlias:u,parseResult:i,children:Br(e)?e.children:[e]};n.replaceNode(d),l.vFor++;const p=s&&s(d);return()=>{l.vFor--,p&&p()}}function Vp(e,t){e.finalized||(Gn(e.source,t),e.key&&Gn(e.key,t,!0),e.index&&Gn(e.index,t,!0),e.value&&Gn(e.value,t,!0),e.finalized=!0)}function Tl({value:e,key:t,index:n},s=[]){return A0([e,t,n,...s])}function A0(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((n,s)=>n||oe("_".repeat(s+1),!1))}const _u=oe("undefined",!1),R0=(e,t)=>{if(e.type===1&&(e.tagType===1||e.tagType===3)){const n=_t(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},I0=(e,t,n,s)=>Is(e,n,!1,!0,n.length?n[0].loc:s);function N0(e,t,n=I0){t.helper(qa);const{children:s,loc:i}=e,r=[],o=[];let l=t.scopes.vSlot>0||t.scopes.vFor>0;const a=_t(e,"slot",!0);if(a){const{arg:E,exp:y}=a;E&&!dt(E)&&(l=!0),r.push(ke(E||oe("default",!0),n(y,void 0,s,i)))}let c=!1,f=!1;const u=[],d=new Set;let p=0;for(let E=0;E<s.length;E++){const y=s[E];let _;if(!Br(y)||!(_=_t(y,"slot",!0))){y.type!==3&&u.push(y);continue}if(a){t.onError(we(37,_.loc));break}c=!0;const{children:g,loc:b}=y,{arg:S=oe("default",!0),exp:A,loc:C}=_;let T;dt(S)?T=S?S.content:"default":l=!0;const O=_t(y,"for"),x=n(A,O,g,b);let N,I;if(N=_t(y,"if"))l=!0,o.push(Sl(N.exp,ir(S,x,p++),_u));else if(I=_t(y,/^else(-if)?$/,!0)){let j=E,G;for(;j--&&(G=s[j],G.type===3););if(G&&Br(G)&&_t(G,"if")){s.splice(E,1),E--;let te=o[o.length-1];for(;te.alternate.type===19;)te=te.alternate;te.alternate=I.exp?Sl(I.exp,ir(S,x,p++),_u):ir(S,x,p++)}else t.onError(we(30,I.loc))}else if(O){l=!0;const j=O.forParseResult;j?(Vp(j,t),o.push(Ve(t.helper(Ba),[j.source,Is(Tl(j),ir(S,x),!0)]))):t.onError(we(32,O.loc))}else{if(T){if(d.has(T)){t.onError(we(38,C));continue}d.add(T),T==="default"&&(f=!0)}r.push(ke(S,x))}}if(!a){const E=(y,_)=>{const g=n(y,void 0,_,i);return t.compatConfig&&(g.isNonScopedSlot=!0),ke("default",g)};c?u.length&&u.some(y=>jp(y))&&(f?t.onError(we(39,u[0].loc)):r.push(E(void 0,u))):r.push(E(void 0,s))}const m=l?2:vr(e.children)?3:1;let w=St(r.concat(ke("_",oe(m+` /* ${mm[m]} */`,!1))),i);return o.length&&(w=Ve(t.helper(_p),[w,Vi(o)])),{slots:w,hasDynamicSlots:l}}function ir(e,t,n){const s=[ke("name",e),ke("fn",t)];return n!=null&&s.push(ke("key",oe(String(n),!0))),St(s)}function vr(e){for(let t=0;t<e.length;t++){const n=e[t];switch(n.type){case 1:if(n.tagType===2||vr(n.children))return!0;break;case 9:if(vr(n.branches))return!0;break;case 10:case 11:if(vr(n.children))return!0;break}}return!1}function jp(e){return e.type!==2&&e.type!==12?!0:e.type===2?!!e.content.trim():jp(e.content)}const Bp=new WeakMap,k0=(e,t)=>function(){if(e=t.currentNode,!(e.type===1&&(e.tagType===0||e.tagType===1)))return;const{tag:s,props:i}=e,r=e.tagType===1;let o=r?P0(e,t):`"${s}"`;const l=he(o)&&o.callee===La;let a,c,f,u=0,d,p,m,w=l||o===ri||o===ka||!r&&(s==="svg"||s==="foreignObject");if(i.length>0){const E=Hp(e,t,void 0,r,l);a=E.props,u=E.patchFlag,p=E.dynamicPropNames;const y=E.directives;m=y&&y.length?Vi(y.map(_=>$0(_,t))):void 0,E.shouldUseBlock&&(w=!0)}if(e.children.length>0)if(o===Fr&&(w=!0,u|=1024,e.children.length>1&&t.onError(we(46,{start:e.children[0].loc.start,end:e.children[e.children.length-1].loc.end,source:""}))),r&&o!==ri&&o!==Fr){const{slots:y,hasDynamicSlots:_}=N0(e,t);c=y,_&&(u|=1024)}else if(e.children.length===1&&o!==ri){const y=e.children[0],_=y.type,g=_===5||_===8;g&&wt(y,t)===0&&(u|=1),g||_===2?c=y:c=e.children}else c=e.children;if(u!==0){if(u<0)f=u+` /* ${jt[u]} */`;else{const E=Object.keys(jt).map(Number).filter(y=>y>0&&u&y).map(y=>jt[y]).join(", ");f=u+` /* ${E} */`}p&&p.length&&(d=F0(p))}e.codegenNode=Ei(t,o,a,c,f,d,m,!!w,!1,r,e.loc)};function P0(e,t,n=!1){let{tag:s}=e;const i=xl(s),r=Ci(e,"is");if(r)if(i||In("COMPILER_IS_ON_ELEMENT",t)){const l=r.type===6?r.value&&oe(r.value.content,!0):r.exp;if(l)return Ve(t.helper(La),[l])}else r.type===6&&r.value.content.startsWith("vue:")&&(s=r.value.content.slice(4));const o=Ep(s)||t.isBuiltInComponent(s);return o?(n||t.helper(o),o):(t.helper(Fa),t.components.add(s),Ti(s,"component"))}function Hp(e,t,n=e.props,s,i,r=!1){const{tag:o,loc:l,children:a}=e;let c=[];const f=[],u=[],d=a.length>0;let p=!1,m=0,w=!1,E=!1,y=!1,_=!1,g=!1,b=!1;const S=[],A=O=>{c.length&&(f.push(St(Su(c),l)),c=[]),O&&f.push(O)},C=({key:O,value:x})=>{if(dt(O)){const N=O.content,I=nn(N);if(I&&(!s||i)&&N.toLowerCase()!=="onclick"&&N!=="onUpdate:modelValue"&&!Cn(N)&&(_=!0),I&&Cn(N)&&(b=!0),I&&x.type===14&&(x=x.arguments[0]),x.type===20||(x.type===4||x.type===8)&&wt(x,t)>0)return;N==="ref"?w=!0:N==="class"?E=!0:N==="style"?y=!0:N!=="key"&&!S.includes(N)&&S.push(N),s&&(N==="class"||N==="style")&&!S.includes(N)&&S.push(N)}else g=!0};for(let O=0;O<n.length;O++){const x=n[O];if(x.type===6){const{loc:N,name:I,nameLoc:j,value:G}=x;let te=!0;if(I==="ref"&&(w=!0,t.scopes.vFor>0&&c.push(ke(oe("ref_for",!0),oe("true")))),I==="is"&&(xl(o)||G&&G.content.startsWith("vue:")||In("COMPILER_IS_ON_ELEMENT",t)))continue;c.push(ke(oe(I,!0,j),oe(G?G.content:"",te,G?G.loc:N)))}else{const{name:N,arg:I,exp:j,loc:G,modifiers:te}=x,z=N==="bind",J=N==="on";if(N==="slot"){s||t.onError(we(40,G));continue}if(N==="once"||N==="memo"||N==="is"||z&&wn(I,"is")&&(xl(o)||In("COMPILER_IS_ON_ELEMENT",t))||J&&r)continue;if((z&&wn(I,"key")||J&&d&&wn(I,"vue:before-update"))&&(p=!0),z&&wn(I,"ref")&&t.scopes.vFor>0&&c.push(ke(oe("ref_for",!0),oe("true"))),!I&&(z||J)){if(g=!0,j)if(z){if(A(),f.some(Ye=>Ye.type===15?Ye.properties.some(({key:rt})=>rt.type!==4||!rt.isStatic?!0:rt.content!=="class"&&rt.content!=="style"&&!nn(rt.content)):!0)&&Ps("COMPILER_V_BIND_OBJECT_ORDER",t,G),In("COMPILER_V_BIND_OBJECT_ORDER",t)){f.unshift(j);continue}f.push(j)}else A({type:14,loc:G,callee:t.helper(Ka),arguments:s?[j]:[j,"true"]});else t.onError(we(z?34:35,G));continue}z&&te.includes("prop")&&(m|=32);const W=t.directiveTransforms[N];if(W){const{props:Fe,needRuntime:Ye}=W(x,e,t);!r&&Fe.forEach(C),J&&I&&!dt(I)?A(St(Fe,l)):c.push(...Fe),Ye&&(u.push(x),kt(Ye)&&Bp.set(x,Ye))}else df(N)||(u.push(x),d&&(p=!0))}}let T;if(f.length?(A(),f.length>1?T=Ve(t.helper(Lr),f,l):T=f[0]):c.length&&(T=St(Su(c),l)),g?m|=16:(E&&!s&&(m|=2),y&&!s&&(m|=4),S.length&&(m|=8),_&&(m|=32)),!p&&(m===0||m===32)&&(w||b||u.length>0)&&(m|=512),!t.inSSR&&T)switch(T.type){case 15:let O=-1,x=-1,N=!1;for(let G=0;G<T.properties.length;G++){const te=T.properties[G].key;dt(te)?te.content==="class"?O=G:te.content==="style"&&(x=G):te.isHandlerKey||(N=!0)}const I=T.properties[O],j=T.properties[x];N?T=Ve(t.helper(wi),[T]):(I&&!dt(I.value)&&(I.value=Ve(t.helper(Ha),[I.value])),j&&(y||j.value.type===4&&j.value.content.trim()[0]==="["||j.value.type===17)&&(j.value=Ve(t.helper(Ua),[j.value])));break;case 14:break;default:T=Ve(t.helper(wi),[Ve(t.helper(Di),[T])]);break}return{props:T,directives:u,patchFlag:m,dynamicPropNames:S,shouldUseBlock:p}}function Su(e){const t=new Map,n=[];for(let s=0;s<e.length;s++){const i=e[s];if(i.key.type===8||!i.key.isStatic){n.push(i);continue}const r=i.key.content,o=t.get(r);o?(r==="style"||r==="class"||nn(r))&&M0(o,i):(t.set(r,i),n.push(i))}return n}function M0(e,t){e.value.type===17?e.value.elements.push(t.value):e.value=Vi([e.value,t.value],e.loc)}function $0(e,t){const n=[],s=Bp.get(e);s?n.push(t.helperString(s)):(t.helper(Da),t.directives.add(e.name),n.push(Ti(e.name,"directive")));const{loc:i}=e;if(e.exp&&n.push(e.exp),e.arg&&(e.exp||n.push("void 0"),n.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));const r=oe("true",!1,i);n.push(St(e.modifiers.map(o=>ke(o,r)),i))}return Vi(n,e.loc)}function F0(e){let t="[";for(let n=0,s=e.length;n<s;n++)t+=JSON.stringify(e[n]),n<s-1&&(t+=", ");return t+"]"}function xl(e){return e==="component"||e==="Component"}const L0=(e,t)=>{if(Hr(e)){const{children:n,loc:s}=e,{slotName:i,slotProps:r}=D0(e,t),o=[t.prefixIdentifiers?"_ctx.$slots":"$slots",i,"{}","undefined","true"];let l=2;r&&(o[2]=r,l=3),n.length&&(o[3]=Is([],n,!1,!1,s),l=4),t.scopeId&&!t.slotted&&(l=5),o.splice(l),e.codegenNode=Ve(t.helper(bp),o,s)}};function D0(e,t){let n='"default"',s;const i=[];for(let r=0;r<e.props.length;r++){const o=e.props[r];if(o.type===6)o.value&&(o.name==="name"?n=JSON.stringify(o.value.content):(o.name=Ie(o.name),i.push(o)));else if(o.name==="bind"&&wn(o.arg,"name")){if(o.exp)n=o.exp;else if(o.arg&&o.arg.type===4){const l=Ie(o.arg.content);n=o.exp=oe(l,!1,o.arg.loc)}}else o.name==="bind"&&o.arg&&dt(o.arg)&&(o.arg.content=Ie(o.arg.content)),i.push(o)}if(i.length>0){const{props:r,directives:o}=Hp(e,t,i,!1,!1);s=r,o.length&&t.onError(we(36,o[0].loc))}return{slotName:n,slotProps:s}}const V0=/^\s*([\w$_]+|(async\s*)?\([^)]*?\))\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,Up=(e,t,n,s)=>{const{loc:i,modifiers:r,arg:o}=e;!e.exp&&!r.length&&n.onError(we(35,i));let l;if(o.type===4)if(o.isStatic){let u=o.content;u.startsWith("vnode")&&n.onError(we(51,o.loc)),u.startsWith("vue:")&&(u=`vnode-${u.slice(4)}`);const d=t.tagType!==0||u.startsWith("vnode")||!/[A-Z]/.test(u)?Dt(Ie(u)):`on:${u}`;l=oe(d,!0,o.loc)}else l=Nt([`${n.helperString(_l)}(`,o,")"]);else l=o,l.children.unshift(`${n.helperString(_l)}(`),l.children.push(")");let a=e.exp;a&&!a.content.trim()&&(a=void 0);let c=n.cacheHandlers&&!a&&!n.inVOnce;if(a){const u=Cp(a.content),d=!(u||V0.test(a.content)),p=a.content.includes(";");Gn(a,n,!1,p),(d||c&&u)&&(a=Nt([`${d?"$event":"(...args)"} => ${p?"{":"("}`,a,p?"}":")"]))}let f={props:[ke(l,a||oe("() => {}",!1,i))]};return s&&(f=s(f)),c&&(f.props[0].value=n.cache(f.props[0].value)),f.props.forEach(u=>u.key.isHandlerKey=!0),f},j0=(e,t,n)=>{const{modifiers:s,loc:i}=e,r=e.arg;let{exp:o}=e;if(o&&o.type===4&&!o.content.trim()&&(o=void 0),!o){if(r.type!==4||!r.isStatic)return n.onError(we(52,r.loc)),{props:[ke(r,oe("",!0,i))]};const l=Ie(r.content);o=e.exp=oe(l,!1,r.loc)}return r.type!==4?(r.children.unshift("("),r.children.push(') || ""')):r.isStatic||(r.content=`${r.content} || ""`),s.includes("camel")&&(r.type===4?r.isStatic?r.content=Ie(r.content):r.content=`${n.helperString(bl)}(${r.content})`:(r.children.unshift(`${n.helperString(bl)}(`),r.children.push(")"))),n.inSSR||(s.includes("prop")&&wu(r,"."),s.includes("attr")&&wu(r,"^")),{props:[ke(r,o)]}},wu=(e,t)=>{e.type===4?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},B0=(e,t)=>{if(e.type===0||e.type===1||e.type===11||e.type===10)return()=>{const n=e.children;let s,i=!1;for(let r=0;r<n.length;r++){const o=n[r];if(Mo(o)){i=!0;for(let l=r+1;l<n.length;l++){const a=n[l];if(Mo(a))s||(s=n[r]=Nt([o],o.loc)),s.children.push(" + ",a),n.splice(l,1),l--;else{s=void 0;break}}}}if(!(!i||n.length===1&&(e.type===0||e.type===1&&e.tagType===0&&!e.props.find(r=>r.type===7&&!t.directiveTransforms[r.name])&&e.tag!=="template")))for(let r=0;r<n.length;r++){const o=n[r];if(Mo(o)||o.type===8){const l=[];(o.type!==2||o.content!==" ")&&l.push(o),!t.ssr&&wt(o,t)===0&&l.push(`1 /* ${jt[1]} */`),n[r]={type:12,content:o,loc:o.loc,codegenNode:Ve(t.helper($a),l)}}}}},Eu=new WeakSet,H0=(e,t)=>{if(e.type===1&&_t(e,"once",!0))return Eu.has(e)||t.inVOnce||t.inSSR?void 0:(Eu.add(e),t.inVOnce=!0,t.helper(Dr),()=>{t.inVOnce=!1;const n=t.currentNode;n.codegenNode&&(n.codegenNode=t.cache(n.codegenNode,!0))})},Kp=(e,t,n)=>{const{exp:s,arg:i}=e;if(!s)return n.onError(we(41,e.loc)),rr();const r=s.loc.source,o=s.type===4?s.content:r,l=n.bindingMetadata[r];if(l==="props"||l==="props-aliased")return n.onError(we(44,s.loc)),rr();if(!o.trim()||!Cp(o)&&!!1)return n.onError(we(42,s.loc)),rr();const c=i||oe("modelValue",!0),f=i?dt(i)?`onUpdate:${Ie(i.content)}`:Nt(['"onUpdate:" + ',i]):"onUpdate:modelValue";let u;const d=n.isTS?"($event: any)":"$event";u=Nt([`${d} => ((`,s,") = $event)"]);const p=[ke(c,e.exp),ke(f,u)];if(e.modifiers.length&&t.tagType===1){const m=e.modifiers.map(E=>(Ya(E)?E:JSON.stringify(E))+": true").join(", "),w=i?dt(i)?`${i.content}Modifiers`:Nt([i,' + "Modifiers"']):"modelModifiers";p.push(ke(w,oe(`{ ${m} }`,!1,e.loc,2)))}return rr(p)};function rr(e=[]){return{props:e}}const U0=/[\w).+\-_$\]]/,K0=(e,t)=>{In("COMPILER_FILTERS",t)&&(e.type===5&&qr(e.content,t),e.type===1&&e.props.forEach(n=>{n.type===7&&n.name!=="for"&&n.exp&&qr(n.exp,t)}))};function qr(e,t){if(e.type===4)Cu(e,t);else for(let n=0;n<e.children.length;n++){const s=e.children[n];typeof s=="object"&&(s.type===4?Cu(s,t):s.type===8?qr(e,t):s.type===5&&qr(s.content,t))}}function Cu(e,t){const n=e.content;let s=!1,i=!1,r=!1,o=!1,l=0,a=0,c=0,f=0,u,d,p,m,w=[];for(p=0;p<n.length;p++)if(d=u,u=n.charCodeAt(p),s)u===39&&d!==92&&(s=!1);else if(i)u===34&&d!==92&&(i=!1);else if(r)u===96&&d!==92&&(r=!1);else if(o)u===47&&d!==92&&(o=!1);else if(u===124&&n.charCodeAt(p+1)!==124&&n.charCodeAt(p-1)!==124&&!l&&!a&&!c)m===void 0?(f=p+1,m=n.slice(0,p).trim()):E();else{switch(u){case 34:i=!0;break;case 39:s=!0;break;case 96:r=!0;break;case 40:c++;break;case 41:c--;break;case 91:a++;break;case 93:a--;break;case 123:l++;break;case 125:l--;break}if(u===47){let y=p-1,_;for(;y>=0&&(_=n.charAt(y),_===" ");y--);(!_||!U0.test(_))&&(o=!0)}}m===void 0?m=n.slice(0,p).trim():f!==0&&E();function E(){w.push(n.slice(f,p).trim()),f=p+1}if(w.length){for(jr("COMPILER_FILTERS",t,e.loc),p=0;p<w.length;p++)m=q0(m,w[p],t);e.content=m}}function q0(e,t,n){n.helper(Va);const s=t.indexOf("(");if(s<0)return n.filters.add(t),`${Ti(t,"filter")}(${e})`;{const i=t.slice(0,s),r=t.slice(s+1);return n.filters.add(i),`${Ti(i,"filter")}(${e}${r!==")"?","+r:r}`}}const Tu=new WeakSet,W0=(e,t)=>{if(e.type===1){const n=_t(e,"memo");return!n||Tu.has(e)?void 0:(Tu.add(e),()=>{const s=e.codegenNode||t.currentNode.codegenNode;s&&s.type===13&&(e.tagType!==1&&za(s,t),e.codegenNode=Ve(t.helper(Wa),[n.exp,Is(void 0,s),"_cache",String(t.cached++)]))})}};function z0(e){return[[H0,w0,W0,x0,K0,S0,L0,k0,R0,B0],{on:Up,bind:j0,model:Kp}]}function G0(e,t={}){const n=t.onError||Ga,s=t.mode==="module";t.prefixIdentifiers===!0?n(we(47)):s&&n(we(48));const i=!1;t.cacheHandlers&&n(we(49)),t.scopeId&&!s&&n(we(50));const r=ce({},t,{prefixIdentifiers:i}),o=ee(e)?Yb(e,r):e,[l,a]=z0();return Zb(o,ce({},r,{nodeTransforms:[...l,...t.nodeTransforms||[]],directiveTransforms:ce({},a,t.directiveTransforms||{})})),s0(o,r)}const Y0=()=>({props:[]});/**
* @vue/compiler-dom v3.4.21
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/const qp=Symbol("vModelRadio"),Wp=Symbol("vModelCheckbox"),zp=Symbol("vModelText"),Gp=Symbol("vModelSelect"),Ol=Symbol("vModelDynamic"),Yp=Symbol("vOnModifiersGuard"),Jp=Symbol("vOnKeysGuard"),Xp=Symbol("vShow"),Xa=Symbol("Transition"),Qp=Symbol("TransitionGroup");wb({[qp]:"vModelRadio",[Wp]:"vModelCheckbox",[zp]:"vModelText",[Gp]:"vModelSelect",[Ol]:"vModelDynamic",[Yp]:"withModifiers",[Jp]:"withKeys",[Xp]:"vShow",[Xa]:"Transition",[Qp]:"TransitionGroup"});let ds;function J0(e,t=!1){return ds||(ds=document.createElement("div")),t?(ds.innerHTML=`<div foo="${e.replace(/"/g,""")}">`,ds.children[0].getAttribute("foo")):(ds.innerHTML=e,ds.textContent)}const X0={parseMode:"html",isVoidTag:Am,isNativeTag:e=>Gl(e)||hf(e)||mf(e),isPreTag:e=>e==="pre",decodeEntities:J0,isBuiltInComponent:e=>{if(e==="Transition"||e==="transition")return Xa;if(e==="TransitionGroup"||e==="transition-group")return Qp},getNamespace(e,t,n){let s=t?t.ns:n;if(t&&s===2)if(t.tag==="annotation-xml"){if(e==="svg")return 1;t.props.some(i=>i.type===6&&i.name==="encoding"&&i.value!=null&&(i.value.content==="text/html"||i.value.content==="application/xhtml+xml"))&&(s=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&e!=="mglyph"&&e!=="malignmark"&&(s=0);else t&&s===1&&(t.tag==="foreignObject"||t.tag==="desc"||t.tag==="title")&&(s=0);if(s===0){if(e==="svg")return 1;if(e==="math")return 2}return s}},Q0=e=>{e.type===1&&e.props.forEach((t,n)=>{t.type===6&&t.name==="style"&&t.value&&(e.props[n]={type:7,name:"bind",arg:oe("style",!0,t.loc),exp:Z0(t.value.content,t.loc),modifiers:[],loc:t.loc})})},Z0=(e,t)=>{const n=pf(e);return oe(JSON.stringify(n),!1,t,3)};function It(e,t){return we(e,t,e_)}const e_={53:"v-html is missing expression.",54:"v-html will override element children.",55:"v-text is missing expression.",56:"v-text will override element children.",57:"v-model can only be used on <input>, <textarea> and <select> elements.",58:"v-model argument is not supported on plain elements.",59:"v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.",60:"Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.",61:"v-show is missing expression.",62:"<Transition> expects exactly one child element or component.",63:"Tags with side effect (<script> and <style>) are ignored in client component templates."},t_=(e,t,n)=>{const{exp:s,loc:i}=e;return s||n.onError(It(53,i)),t.children.length&&(n.onError(It(54,i)),t.children.length=0),{props:[ke(oe("innerHTML",!0,i),s||oe("",!0))]}},n_=(e,t,n)=>{const{exp:s,loc:i}=e;return s||n.onError(It(55,i)),t.children.length&&(n.onError(It(56,i)),t.children.length=0),{props:[ke(oe("textContent",!0),s?wt(s,n)>0?s:Ve(n.helperString(mo),[s],i):oe("",!0))]}},s_=(e,t,n)=>{const s=Kp(e,t,n);if(!s.props.length||t.tagType===1)return s;e.arg&&n.onError(It(58,e.arg.loc));function i(){const l=_t(t,"bind");l&&wn(l.arg,"value")&&n.onError(It(60,l.loc))}const{tag:r}=t,o=n.isCustomElement(r);if(r==="input"||r==="textarea"||r==="select"||o){let l=zp,a=!1;if(r==="input"||o){const c=Ci(t,"type");if(c){if(c.type===7)l=Ol;else if(c.value)switch(c.value.content){case"radio":l=qp;break;case"checkbox":l=Wp;break;case"file":a=!0,n.onError(It(59,e.loc));break;default:i();break}}else Mb(t)?l=Ol:i()}else r==="select"?l=Gp:i();a||(s.needRuntime=n.helper(l))}else n.onError(It(57,e.loc));return s.props=s.props.filter(l=>!(l.key.type===4&&l.key.content==="modelValue")),s},i_=Ue("passive,once,capture"),r_=Ue("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),o_=Ue("left,right"),Zp=Ue("onkeyup,onkeydown,onkeypress",!0),l_=(e,t,n,s)=>{const i=[],r=[],o=[];for(let l=0;l<t.length;l++){const a=t[l];a==="native"&&Ps("COMPILER_V_ON_NATIVE",n,s)||i_(a)?o.push(a):o_(a)?dt(e)?Zp(e.content)?i.push(a):r.push(a):(i.push(a),r.push(a)):r_(a)?r.push(a):i.push(a)}return{keyModifiers:i,nonKeyModifiers:r,eventOptionModifiers:o}},xu=(e,t)=>dt(e)&&e.content.toLowerCase()==="onclick"?oe(t,!0):e.type!==4?Nt(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,a_=(e,t,n)=>Up(e,t,n,s=>{const{modifiers:i}=e;if(!i.length)return s;let{key:r,value:o}=s.props[0];const{keyModifiers:l,nonKeyModifiers:a,eventOptionModifiers:c}=l_(r,i,n,e.loc);if(a.includes("right")&&(r=xu(r,"onContextmenu")),a.includes("middle")&&(r=xu(r,"onMouseup")),a.length&&(o=Ve(n.helper(Yp),[o,JSON.stringify(a)])),l.length&&(!dt(r)||Zp(r.content))&&(o=Ve(n.helper(Jp),[o,JSON.stringify(l)])),c.length){const f=c.map(Ut).join("");r=dt(r)?oe(`${r.content}${f}`,!0):Nt(["(",r,`) + "${f}"`])}return{props:[ke(r,o)]}}),c_=(e,t,n)=>{const{exp:s,loc:i}=e;return s||n.onError(It(61,i)),{props:[],needRuntime:n.helper(Xp)}},u_=(e,t)=>{if(e.type===1&&e.tagType===1&&t.isBuiltInComponent(e.tag)===Xa)return()=>{if(!e.children.length)return;eh(e)&&t.onError(It(62,{start:e.children[0].loc.start,end:e.children[e.children.length-1].loc.end,source:""}));const s=e.children[0];if(s.type===1)for(const i of s.props)i.type===7&&i.name==="show"&&e.props.push({type:6,name:"persisted",nameLoc:e.loc,value:void 0,loc:e.loc})}};function eh(e){const t=e.children=e.children.filter(s=>s.type!==3&&!(s.type===2&&!s.content.trim())),n=t[0];return t.length!==1||n.type===11||n.type===9&&n.branches.some(eh)}const f_=(e,t)=>{e.type===1&&e.tagType===0&&(e.tag==="script"||e.tag==="style")&&(t.onError(It(63,e.loc)),t.removeNode())},d_=[Q0,u_],p_={cloak:Y0,html:t_,text:n_,model:s_,on:a_,show:c_};function h_(e,t={}){return G0(e,ce({},X0,t,{nodeTransforms:[f_,...d_,...t.nodeTransforms||[]],directiveTransforms:ce({},p_,t.directiveTransforms||{}),transformHoist:null}))}/**
* vue v3.4.21
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function m_(){qd()}m_();const Ou=new WeakMap;function g_(e){let t=Ou.get(e??me);return t||(t=Object.create(null),Ou.set(e??me,t)),t}function y_(e,t){if(!ee(e))if(e.nodeType)e=e.innerHTML;else return Be("invalid template option: ",e),Me;const n=e,s=g_(t),i=s[n];if(i)return i;if(e[0]==="#"){const c=document.querySelector(e);c||Be(`Template element not found or is empty: ${e}`),e=c?c.innerHTML:""}const r=ce({hoistStatic:!0,onError:l,onWarn:c=>l(c,!0)},t);!r.isCustomElement&&typeof customElements<"u"&&(r.isCustomElement=c=>!!customElements.get(c));const{code:o}=h_(e,r);function l(c,f=!1){const u=f?c.message:`Template compilation error: ${c.message}`,d=c.loc&&vm(e,c.loc.start.offset,c.loc.end.offset);Be(d?`${u}
${d}`:u)}const a=new Function("Vue",o)(gb);return a._rc=!0,s[n]=a}Bd(y_);function v_(){return th().__VUE_DEVTOOLS_GLOBAL_HOOK__}function th(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const b_=typeof Proxy=="function",__="devtools-plugin:setup",S_="plugin:settings:set";let ps,Al;function w_(){var e;return ps!==void 0||(typeof window<"u"&&window.performance?(ps=!0,Al=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(ps=!0,Al=globalThis.perf_hooks.performance):ps=!1),ps}function E_(){return w_()?Al.now():Date.now()}class C_{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const s={};if(t.settings)for(const o in t.settings){const l=t.settings[o];s[o]=l.defaultValue}const i=`__vue-devtools-plugin-settings__${t.id}`;let r=Object.assign({},s);try{const o=localStorage.getItem(i),l=JSON.parse(o);Object.assign(r,l)}catch{}this.fallbacks={getSettings(){return r},setSettings(o){try{localStorage.setItem(i,JSON.stringify(o))}catch{}r=o},now(){return E_()}},n&&n.on(S_,(o,l)=>{o===this.plugin.id&&this.fallbacks.setSettings(l)}),this.proxiedOn=new Proxy({},{get:(o,l)=>this.target?this.target.on[l]:(...a)=>{this.onQueue.push({method:l,args:a})}}),this.proxiedTarget=new Proxy({},{get:(o,l)=>this.target?this.target[l]:l==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(l)?(...a)=>(this.targetQueue.push({method:l,args:a,resolve:()=>{}}),this.fallbacks[l](...a)):(...a)=>new Promise(c=>{this.targetQueue.push({method:l,args:a,resolve:c})})})}async setRealTarget(t){this.target=t;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function T_(e,t){const n=e,s=th(),i=v_(),r=b_&&n.enableEarlyProxy;if(i&&(s.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!r))i.emit(__,e,t);else{const o=r?new C_(n,i):null;(s.__VUE_DEVTOOLS_PLUGINS__=s.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:o}),o&&t(o.proxiedTarget)}}/*!
* vue-router v4.3.0
* (c) 2024 Eduardo San Martin Morote
* @license MIT
*/const Zt=typeof document<"u";function x_(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const be=Object.assign;function Lo(e,t){const n={};for(const s in t){const i=t[s];n[s]=gt(i)?i.map(e):e(i)}return n}const oi=()=>{},gt=Array.isArray;function ve(e){const t=Array.from(arguments).slice(1);console.warn.apply(console,["[Vue Router warn]: "+e].concat(t))}const nh=/#/g,O_=/&/g,A_=/\//g,R_=/=/g,I_=/\?/g,sh=/\+/g,N_=/%5B/g,k_=/%5D/g,ih=/%5E/g,P_=/%60/g,rh=/%7B/g,M_=/%7C/g,oh=/%7D/g,$_=/%20/g;function Qa(e){return encodeURI(""+e).replace(M_,"|").replace(N_,"[").replace(k_,"]")}function F_(e){return Qa(e).replace(rh,"{").replace(oh,"}").replace(ih,"^")}function Rl(e){return Qa(e).replace(sh,"%2B").replace($_,"+").replace(nh,"%23").replace(O_,"%26").replace(P_,"`").replace(rh,"{").replace(oh,"}").replace(ih,"^")}function L_(e){return Rl(e).replace(R_,"%3D")}function D_(e){return Qa(e).replace(nh,"%23").replace(I_,"%3F")}function V_(e){return e==null?"":D_(e).replace(A_,"%2F")}function Ms(e){try{return decodeURIComponent(""+e)}catch{ve(`Error decoding "${e}". Using original value`)}return""+e}const j_=/\/$/,B_=e=>e.replace(j_,"");function Do(e,t,n="/"){let s,i={},r="",o="";const l=t.indexOf("#");let a=t.indexOf("?");return l<a&&l>=0&&(a=-1),a>-1&&(s=t.slice(0,a),r=t.slice(a+1,l>-1?l:t.length),i=e(r)),l>-1&&(s=s||t.slice(0,l),o=t.slice(l,t.length)),s=K_(s??t,n),{fullPath:s+(r&&"?")+r+o,path:s,query:i,hash:Ms(o)}}function H_(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Au(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Ru(e,t,n){const s=t.matched.length-1,i=n.matched.length-1;return s>-1&&s===i&&Mn(t.matched[s],n.matched[i])&&lh(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Mn(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function lh(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!U_(e[n],t[n]))return!1;return!0}function U_(e,t){return gt(e)?Iu(e,t):gt(t)?Iu(t,e):e===t}function Iu(e,t){return gt(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function K_(e,t){if(e.startsWith("/"))return e;if(!t.startsWith("/"))return ve(`Cannot resolve a relative location without an absolute path. Trying to resolve "${e}" from "${t}". It should look like "/${t}".`),e;if(!e)return t;const n=t.split("/"),s=e.split("/"),i=s[s.length-1];(i===".."||i===".")&&s.push("");let r=n.length-1,o,l;for(o=0;o<s.length;o++)if(l=s[o],l!==".")if(l==="..")r>1&&r--;else break;return n.slice(0,r).join("/")+"/"+s.slice(o).join("/")}var Oi;(function(e){e.pop="pop",e.push="push"})(Oi||(Oi={}));var li;(function(e){e.back="back",e.forward="forward",e.unknown=""})(li||(li={}));function q_(e){if(!e)if(Zt){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),B_(e)}const W_=/^[^#]+#/;function z_(e,t){return e.replace(W_,"#")+t}function G_(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const vo=()=>({left:window.scrollX,top:window.scrollY});function Y_(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#");if(typeof e.el=="string"&&(!s||!document.getElementById(e.el.slice(1))))try{const r=document.querySelector(e.el);if(s&&r){ve(`The selector "${e.el}" should be passed as "el: document.querySelector('${e.el}')" because it starts with "#".`);return}}catch{ve(`The selector "${e.el}" is invalid. If you are using an id selector, make sure to escape it. You can find more information about escaping characters in selectors at https://mathiasbynens.be/notes/css-escapes or use CSS.escape (https://developer.mozilla.org/en-US/docs/Web/API/CSS/escape).`);return}const i=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i){ve(`Couldn't find element using selector "${e.el}" returned by scrollBehavior.`);return}t=G_(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Nu(e,t){return(history.state?history.state.position-t:-1)+e}const Il=new Map;function J_(e,t){Il.set(e,t)}function X_(e){const t=Il.get(e);return Il.delete(e),t}let Q_=()=>location.protocol+"//"+location.host;function ah(e,t){const{pathname:n,search:s,hash:i}=t,r=e.indexOf("#");if(r>-1){let l=i.includes(e.slice(r))?e.slice(r).length:1,a=i.slice(l);return a[0]!=="/"&&(a="/"+a),Au(a,"")}return Au(n,e)+s+i}function Z_(e,t,n,s){let i=[],r=[],o=null;const l=({state:d})=>{const p=ah(e,location),m=n.value,w=t.value;let E=0;if(d){if(n.value=p,t.value=d,o&&o===m){o=null;return}E=w?d.position-w.position:0}else s(p);i.forEach(y=>{y(n.value,m,{delta:E,type:Oi.pop,direction:E?E>0?li.forward:li.back:li.unknown})})};function a(){o=n.value}function c(d){i.push(d);const p=()=>{const m=i.indexOf(d);m>-1&&i.splice(m,1)};return r.push(p),p}function f(){const{history:d}=window;d.state&&d.replaceState(be({},d.state,{scroll:vo()}),"")}function u(){for(const d of r)d();r=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",f)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",f,{passive:!0}),{pauseListeners:a,listen:c,destroy:u}}function ku(e,t,n,s=!1,i=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:i?vo():null}}function eS(e){const{history:t,location:n}=window,s={value:ah(e,n)},i={value:t.state};i.value||r(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function r(a,c,f){const u=e.indexOf("#"),d=u>-1?(n.host&&document.querySelector("base")?e:e.slice(u))+a:Q_()+e+a;try{t[f?"replaceState":"pushState"](c,"",d),i.value=c}catch(p){ve("Error with push/replace State",p),n[f?"replace":"assign"](d)}}function o(a,c){const f=be({},t.state,ku(i.value.back,a,i.value.forward,!0),c,{position:i.value.position});r(a,f,!0),s.value=a}function l(a,c){const f=be({},i.value,t.state,{forward:a,scroll:vo()});t.state||ve(`history.state seems to have been manually replaced without preserving the necessary values. Make sure to preserve existing history state if you are manually calling history.replaceState:
history.replaceState(history.state, '', url)
You can find more information at https://next.router.vuejs.org/guide/migration/#usage-of-history-state.`),r(f.current,f,!0);const u=be({},ku(s.value,a,null),{position:f.position+1},c);r(a,u,!1),s.value=a}return{location:s,state:i,push:l,replace:o}}function eC(e){e=q_(e);const t=eS(e),n=Z_(e,t.state,t.location,t.replace);function s(r,o=!0){o||n.pauseListeners(),history.go(r)}const i=be({location:"",base:e,go:s,createHref:z_.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function tS(e){return typeof e=="string"||e&&typeof e=="object"}function ch(e){return typeof e=="string"||typeof e=="symbol"}const dn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},uh=Symbol("navigation failure");var Pu;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Pu||(Pu={}));const nS={1({location:e,currentLocation:t}){return`No match for
${JSON.stringify(e)}${t?`
while being at
`+JSON.stringify(t):""}`},2({from:e,to:t}){return`Redirected from "${e.fullPath}" to "${iS(t)}" via a navigation guard.`},4({from:e,to:t}){return`Navigation aborted from "${e.fullPath}" to "${t.fullPath}" via a navigation guard.`},8({from:e,to:t}){return`Navigation cancelled from "${e.fullPath}" to "${t.fullPath}" with a new navigation.`},16({from:e,to:t}){return`Avoided redundant navigation to current location: "${e.fullPath}".`}};function $s(e,t){return be(new Error(nS[e](t)),{type:e,[uh]:!0},t)}function zt(e,t){return e instanceof Error&&uh in e&&(t==null||!!(e.type&t))}const sS=["params","query","hash"];function iS(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of sS)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}const Mu="[^/]+?",rS={sensitive:!1,strict:!1,start:!0,end:!0},oS=/[.+*?^${}()[\]/\\]/g;function lS(e,t){const n=be({},rS,t),s=[];let i=n.start?"^":"";const r=[];for(const c of e){const f=c.length?[]:[90];n.strict&&!c.length&&(i+="/");for(let u=0;u<c.length;u++){const d=c[u];let p=40+(n.sensitive?.25:0);if(d.type===0)u||(i+="/"),i+=d.value.replace(oS,"\\$&"),p+=40;else if(d.type===1){const{value:m,repeatable:w,optional:E,regexp:y}=d;r.push({name:m,repeatable:w,optional:E});const _=y||Mu;if(_!==Mu){p+=10;try{new RegExp(`(${_})`)}catch(b){throw new Error(`Invalid custom RegExp for param "${m}" (${_}): `+b.message)}}let g=w?`((?:${_})(?:/(?:${_}))*)`:`(${_})`;u||(g=E&&c.length<2?`(?:/${g})`:"/"+g),E&&(g+="?"),i+=g,p+=20,E&&(p+=-8),w&&(p+=-20),_===".*"&&(p+=-50)}f.push(p)}s.push(f)}if(n.strict&&n.end){const c=s.length-1;s[c][s[c].length-1]+=.7000000000000001}n.strict||(i+="/?"),n.end?i+="$":n.strict&&(i+="(?:/|$)");const o=new RegExp(i,n.sensitive?"":"i");function l(c){const f=c.match(o),u={};if(!f)return null;for(let d=1;d<f.length;d++){const p=f[d]||"",m=r[d-1];u[m.name]=p&&m.repeatable?p.split("/"):p}return u}function a(c){let f="",u=!1;for(const d of e){(!u||!f.endsWith("/"))&&(f+="/"),u=!1;for(const p of d)if(p.type===0)f+=p.value;else if(p.type===1){const{value:m,repeatable:w,optional:E}=p,y=m in c?c[m]:"";if(gt(y)&&!w)throw new Error(`Provided param "${m}" is an array but it is not repeatable (* or + modifiers)`);const _=gt(y)?y.join("/"):y;if(!_)if(E)d.length<2&&(f.endsWith("/")?f=f.slice(0,-1):u=!0);else throw new Error(`Missing required param "${m}"`);f+=_}}return f||"/"}return{re:o,score:s,keys:r,parse:l,stringify:a}}function aS(e,t){let n=0;for(;n<e.length&&n<t.length;){const s=t[n]-e[n];if(s)return s;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function cS(e,t){let n=0;const s=e.score,i=t.score;for(;n<s.length&&n<i.length;){const r=aS(s[n],i[n]);if(r)return r;n++}if(Math.abs(i.length-s.length)===1){if($u(s))return 1;if($u(i))return-1}return i.length-s.length}function $u(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const uS={type:0,value:""},fS=/[a-zA-Z0-9_]/;function dS(e){if(!e)return[[]];if(e==="/")return[[uS]];if(!e.startsWith("/"))throw new Error(`Route paths should start with a "/": "${e}" should be "/${e}".`);function t(p){throw new Error(`ERR (${n})/"${c}": ${p}`)}let n=0,s=n;const i=[];let r;function o(){r&&i.push(r),r=[]}let l=0,a,c="",f="";function u(){c&&(n===0?r.push({type:0,value:c}):n===1||n===2||n===3?(r.length>1&&(a==="*"||a==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),r.push({type:1,value:c,regexp:f,repeatable:a==="*"||a==="+",optional:a==="*"||a==="?"})):t("Invalid state to consume buffer"),c="")}function d(){c+=a}for(;l<e.length;){if(a=e[l++],a==="\\"&&n!==2){s=n,n=4;continue}switch(n){case 0:a==="/"?(c&&u(),o()):a===":"?(u(),n=1):d();break;case 4:d(),n=s;break;case 1:a==="("?n=2:fS.test(a)?d():(u(),n=0,a!=="*"&&a!=="?"&&a!=="+"&&l--);break;case 2:a===")"?f[f.length-1]=="\\"?f=f.slice(0,-1)+a:n=3:f+=a;break;case 3:u(),n=0,a!=="*"&&a!=="?"&&a!=="+"&&l--,f="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${c}"`),u(),o(),i}function pS(e,t,n){const s=lS(dS(e.path),n);{const r=new Set;for(const o of s.keys)r.has(o.name)&&ve(`Found duplicated params with name "${o.name}" for path "${e.path}". Only the last one will be available on "$route.params".`),r.add(o.name)}const i=be(s,{record:e,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function hS(e,t){const n=[],s=new Map;t=Du({strict:!1,end:!0,sensitive:!1},t);function i(f){return s.get(f)}function r(f,u,d){const p=!d,m=mS(f);bS(m,u),m.aliasOf=d&&d.record;const w=Du(t,f),E=[m];if("alias"in f){const g=typeof f.alias=="string"?[f.alias]:f.alias;for(const b of g)E.push(be({},m,{components:d?d.record.components:m.components,path:b,aliasOf:d?d.record:m}))}let y,_;for(const g of E){const{path:b}=g;if(u&&b[0]!=="/"){const S=u.record.path,A=S[S.length-1]==="/"?"":"/";g.path=u.record.path+(b&&A+b)}if(g.path==="*")throw new Error(`Catch all routes ("*") must now be defined using a param with a custom regexp.
See more at https://next.router.vuejs.org/guide/migration/#removed-star-or-catch-all-routes.`);if(y=pS(g,u,w),u&&b[0]==="/"&&_S(y,u),d?(d.alias.push(y),vS(d,y)):(_=_||y,_!==y&&_.alias.push(y),p&&f.name&&!Lu(y)&&o(f.name)),m.children){const S=m.children;for(let A=0;A<S.length;A++)r(S[A],y,d&&d.children[A])}d=d||y,(y.record.components&&Object.keys(y.record.components).length||y.record.name||y.record.redirect)&&a(y)}return _?()=>{o(_)}:oi}function o(f){if(ch(f)){const u=s.get(f);u&&(s.delete(f),n.splice(n.indexOf(u),1),u.children.forEach(o),u.alias.forEach(o))}else{const u=n.indexOf(f);u>-1&&(n.splice(u,1),f.record.name&&s.delete(f.record.name),f.children.forEach(o),f.alias.forEach(o))}}function l(){return n}function a(f){let u=0;for(;u<n.length&&cS(f,n[u])>=0&&(f.record.path!==n[u].record.path||!fh(f,n[u]));)u++;n.splice(u,0,f),f.record.name&&!Lu(f)&&s.set(f.record.name,f)}function c(f,u){let d,p={},m,w;if("name"in f&&f.name){if(d=s.get(f.name),!d)throw $s(1,{location:f});{const _=Object.keys(f.params||{}).filter(g=>!d.keys.find(b=>b.name===g));_.length&&ve(`Discarded invalid param(s) "${_.join('", "')}" when navigating. See https://github.com/vuejs/router/blob/main/packages/router/CHANGELOG.md#414-2022-08-22 for more details.`)}w=d.record.name,p=be(Fu(u.params,d.keys.filter(_=>!_.optional).concat(d.parent?d.parent.keys.filter(_=>_.optional):[]).map(_=>_.name)),f.params&&Fu(f.params,d.keys.map(_=>_.name))),m=d.stringify(p)}else if(f.path!=null)m=f.path,m.startsWith("/")||ve(`The Matcher cannot resolve relative paths but received "${m}". Unless you directly called \`matcher.resolve("${m}")\`, this is probably a bug in vue-router. Please open an issue at https://github.com/vuejs/router/issues/new/choose.`),d=n.find(_=>_.re.test(m)),d&&(p=d.parse(m),w=d.record.name);else{if(d=u.name?s.get(u.name):n.find(_=>_.re.test(u.path)),!d)throw $s(1,{location:f,currentLocation:u});w=d.record.name,p=be({},u.params,f.params),m=d.stringify(p)}const E=[];let y=d;for(;y;)E.unshift(y.record),y=y.parent;return{name:w,path:m,params:p,matched:E,meta:yS(E)}}return e.forEach(f=>r(f)),{addRoute:r,resolve:c,removeRoute:o,getRoutes:l,getRecordMatcher:i}}function Fu(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function mS(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:gS(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function gS(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="object"?n[s]:n;return t}function Lu(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function yS(e){return e.reduce((t,n)=>be(t,n.meta),{})}function Du(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}function Nl(e,t){return e.name===t.name&&e.optional===t.optional&&e.repeatable===t.repeatable}function vS(e,t){for(const n of e.keys)if(!n.optional&&!t.keys.find(Nl.bind(null,n)))return ve(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`);for(const n of t.keys)if(!n.optional&&!e.keys.find(Nl.bind(null,n)))return ve(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`)}function bS(e,t){t&&t.record.name&&!e.name&&!e.path&&ve(`The route named "${String(t.record.name)}" has a child without a name and an empty path. Using that name won't render the empty path child so you probably want to move the name to the child instead. If this is intentional, add a name to the child route to remove the warning.`)}function _S(e,t){for(const n of t.keys)if(!e.keys.find(Nl.bind(null,n)))return ve(`Absolute path "${e.record.path}" must have the exact same param named "${n.name}" as its parent "${t.record.path}".`)}function fh(e,t){return t.children.some(n=>n===e||fh(e,n))}function SS(e){const t={};if(e===""||e==="?")return t;const s=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;i<s.length;++i){const r=s[i].replace(sh," "),o=r.indexOf("="),l=Ms(o<0?r:r.slice(0,o)),a=o<0?null:Ms(r.slice(o+1));if(l in t){let c=t[l];gt(c)||(c=t[l]=[c]),c.push(a)}else t[l]=a}return t}function Vu(e){let t="";for(let n in e){const s=e[n];if(n=L_(n),s==null){s!==void 0&&(t+=(t.length?"&":"")+n);continue}(gt(s)?s.map(r=>r&&Rl(r)):[s&&Rl(s)]).forEach(r=>{r!==void 0&&(t+=(t.length?"&":"")+n,r!=null&&(t+="="+r))})}return t}function wS(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=gt(s)?s.map(i=>i==null?null:""+i):s==null?s:""+s)}return t}const ES=Symbol("router view location matched"),ju=Symbol("router view depth"),bo=Symbol("router"),dh=Symbol("route location"),kl=Symbol("router view location");function zs(){let e=[];function t(s){return e.push(s),()=>{const i=e.indexOf(s);i>-1&&e.splice(i,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function bn(e,t,n,s,i,r=o=>o()){const o=s&&(s.enterCallbacks[i]=s.enterCallbacks[i]||[]);return()=>new Promise((l,a)=>{const c=d=>{d===!1?a($s(4,{from:n,to:t})):d instanceof Error?a(d):tS(d)?a($s(2,{from:t,to:d})):(o&&s.enterCallbacks[i]===o&&typeof d=="function"&&o.push(d),l())},f=r(()=>e.call(s&&s.instances[i],t,n,CS(c,t,n)));let u=Promise.resolve(f);if(e.length<3&&(u=u.then(c)),e.length>2){const d=`The "next" callback was never called inside of ${e.name?'"'+e.name+'"':""}:
${e.toString()}
. If you are returning a value instead of calling "next", make sure to remove the "next" parameter from your function.`;if(typeof f=="object"&&"then"in f)u=u.then(p=>c._called?p:(ve(d),Promise.reject(new Error("Invalid navigation guard"))));else if(f!==void 0&&!c._called){ve(d),a(new Error("Invalid navigation guard"));return}}u.catch(d=>a(d))})}function CS(e,t,n){let s=0;return function(){s++===1&&ve(`The "next" callback was called more than once in one navigation guard when going from "${n.fullPath}" to "${t.fullPath}". It should be called exactly one time in each navigation guard. This will fail in production.`),e._called=!0,s===1&&e.apply(null,arguments)}}function Vo(e,t,n,s,i=r=>r()){const r=[];for(const o of e){!o.components&&!o.children.length&&ve(`Record with path "${o.path}" is either missing a "component(s)" or "children" property.`);for(const l in o.components){let a=o.components[l];{if(!a||typeof a!="object"&&typeof a!="function")throw ve(`Component "${l}" in record with path "${o.path}" is not a valid component. Received "${String(a)}".`),new Error("Invalid route component");if("then"in a){ve(`Component "${l}" in record with path "${o.path}" is a Promise instead of a function that returns a Promise. Did you write "import('./MyPage.vue')" instead of "() => import('./MyPage.vue')" ? This will break in production if not fixed.`);const c=a;a=()=>c}else a.__asyncLoader&&!a.__warnedDefineAsync&&(a.__warnedDefineAsync=!0,ve(`Component "${l}" in record with path "${o.path}" is defined using "defineAsyncComponent()". Write "() => import('./MyPage.vue')" instead of "defineAsyncComponent(() => import('./MyPage.vue'))".`))}if(!(t!=="beforeRouteEnter"&&!o.instances[l]))if(TS(a)){const f=(a.__vccOpts||a)[t];f&&r.push(bn(f,n,s,o,l,i))}else{let c=a();"catch"in c||(ve(`Component "${l}" in record with path "${o.path}" is a function that does not return a Promise. If you were passing a functional component, make sure to add a "displayName" to the component. This will break in production if not fixed.`),c=Promise.resolve(c)),r.push(()=>c.then(f=>{if(!f)return Promise.reject(new Error(`Couldn't resolve component "${l}" at "${o.path}"`));const u=x_(f)?f.default:f;o.components[l]=u;const p=(u.__vccOpts||u)[t];return p&&bn(p,n,s,o,l,i)()}))}}}return r}function TS(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Bu(e){const t=Et(bo),n=Et(dh),s=ae(()=>t.resolve(Ze(e.to))),i=ae(()=>{const{matched:a}=s.value,{length:c}=a,f=a[c-1],u=n.matched;if(!f||!u.length)return-1;const d=u.findIndex(Mn.bind(null,f));if(d>-1)return d;const p=Hu(a[c-2]);return c>1&&Hu(f)===p&&u[u.length-1].path!==p?u.findIndex(Mn.bind(null,a[c-2])):d}),r=ae(()=>i.value>-1&&RS(n.params,s.value.params)),o=ae(()=>i.value>-1&&i.value===n.matched.length-1&&lh(n.params,s.value.params));function l(a={}){return AS(a)?t[Ze(e.replace)?"replace":"push"](Ze(e.to)).catch(oi):Promise.resolve()}if(Zt){const a=Ge();if(a){const c={route:s.value,isActive:r.value,isExactActive:o.value};a.__vrl_devtools=a.__vrl_devtools||[],a.__vrl_devtools.push(c),ya(()=>{c.route=s.value,c.isActive=r.value,c.isExactActive=o.value},{flush:"post"})}}return{route:s,href:ae(()=>s.value.href),isActive:r,isExactActive:o,navigate:l}}const xS=js({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Bu,setup(e,{slots:t}){const n=it(Bu(e)),{options:s}=Et(bo),i=ae(()=>({[Uu(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[Uu(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const r=t.default&&t.default(n);return e.custom?r:xs("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},r)}}}),OS=xS;function AS(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function RS(e,t){for(const n in t){const s=t[n],i=e[n];if(typeof s=="string"){if(s!==i)return!1}else if(!gt(i)||i.length!==s.length||s.some((r,o)=>r!==i[o]))return!1}return!0}function Hu(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Uu=(e,t,n)=>e??t??n,IS=js({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){kS();const s=Et(kl),i=ae(()=>e.route||s.value),r=Et(ju,0),o=ae(()=>{let c=Ze(r);const{matched:f}=i.value;let u;for(;(u=f[c])&&!u.components;)c++;return c}),l=ae(()=>i.value.matched[o.value]);_s(ju,ae(()=>o.value+1)),_s(ES,l),_s(kl,i);const a=ne();return Ee(()=>[a.value,l.value,e.name],([c,f,u],[d,p,m])=>{f&&(f.instances[u]=c,p&&p!==f&&c&&c===d&&(f.leaveGuards.size||(f.leaveGuards=p.leaveGuards),f.updateGuards.size||(f.updateGuards=p.updateGuards))),c&&f&&(!p||!Mn(f,p)||!d)&&(f.enterCallbacks[u]||[]).forEach(w=>w(c))},{flush:"post"}),()=>{const c=i.value,f=e.name,u=l.value,d=u&&u.components[f];if(!d)return Ku(n.default,{Component:d,route:c});const p=u.props[f],m=p?p===!0?c.params:typeof p=="function"?p(c):p:null,E=xs(d,be({},m,t,{onVnodeUnmounted:y=>{y.component.isUnmounted&&(u.instances[f]=null)},ref:a}));if(Zt&&E.ref){const y={depth:o.value,name:u.name,path:u.path,meta:u.meta};(gt(E.ref)?E.ref.map(g=>g.i):[E.ref.i]).forEach(g=>{g.__vrv_devtools=y})}return Ku(n.default,{Component:E,route:c})||E}}});function Ku(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const NS=IS;function kS(){const e=Ge(),t=e.parent&&e.parent.type.name,n=e.parent&&e.parent.subTree&&e.parent.subTree.type;if(t&&(t==="KeepAlive"||t.includes("Transition"))&&typeof n=="object"&&n.name==="RouterView"){const s=t==="KeepAlive"?"keep-alive":"transition";ve(`<router-view> can no longer be used directly inside <transition> or <keep-alive>.
Use slot props instead:
<router-view v-slot="{ Component }">
<${s}>
<component :is="Component" />
</${s}>
</router-view>`)}}function Gs(e,t){const n=be({},e,{matched:e.matched.map(s=>BS(s,["instances","children","aliasOf"]))});return{_custom:{type:null,readOnly:!0,display:e.fullPath,tooltip:t,value:n}}}function or(e){return{_custom:{display:e}}}let PS=0;function MS(e,t,n){if(t.__hasDevtools)return;t.__hasDevtools=!0;const s=PS++;T_({id:"org.vuejs.router"+(s?"."+s:""),label:"Vue Router",packageName:"vue-router",homepage:"https://router.vuejs.org",logo:"https://router.vuejs.org/logo.png",componentStateTypes:["Routing"],app:e},i=>{typeof i.now!="function"&&console.warn("[Vue Router]: You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),i.on.inspectComponent((f,u)=>{f.instanceData&&f.instanceData.state.push({type:"Routing",key:"$route",editable:!1,value:Gs(t.currentRoute.value,"Current Route")})}),i.on.visitComponentTree(({treeNode:f,componentInstance:u})=>{if(u.__vrv_devtools){const d=u.__vrv_devtools;f.tags.push({label:(d.name?`${d.name.toString()}: `:"")+d.path,textColor:0,tooltip:"This component is rendered by <router-view>",backgroundColor:ph})}gt(u.__vrl_devtools)&&(u.__devtoolsApi=i,u.__vrl_devtools.forEach(d=>{let p=gh,m="";d.isExactActive?(p=mh,m="This is exactly active"):d.isActive&&(p=hh,m="This link is active"),f.tags.push({label:d.route.path,textColor:0,tooltip:m,backgroundColor:p})}))}),Ee(t.currentRoute,()=>{a(),i.notifyComponentUpdate(),i.sendInspectorTree(l),i.sendInspectorState(l)});const r="router:navigations:"+s;i.addTimelineLayer({id:r,label:`Router${s?" "+s:""} Navigations`,color:4237508}),t.onError((f,u)=>{i.addTimelineEvent({layerId:r,event:{title:"Error during Navigation",subtitle:u.fullPath,logType:"error",time:i.now(),data:{error:f},groupId:u.meta.__navigationId}})});let o=0;t.beforeEach((f,u)=>{const d={guard:or("beforeEach"),from:Gs(u,"Current Location during this navigation"),to:Gs(f,"Target location")};Object.defineProperty(f.meta,"__navigationId",{value:o++}),i.addTimelineEvent({layerId:r,event:{time:i.now(),title:"Start of navigation",subtitle:f.fullPath,data:d,groupId:f.meta.__navigationId}})}),t.afterEach((f,u,d)=>{const p={guard:or("afterEach")};d?(p.failure={_custom:{type:Error,readOnly:!0,display:d?d.message:"",tooltip:"Navigation Failure",value:d}},p.status=or("❌")):p.status=or("✅"),p.from=Gs(u,"Current Location during this navigation"),p.to=Gs(f,"Target location"),i.addTimelineEvent({layerId:r,event:{title:"End of navigation",subtitle:f.fullPath,time:i.now(),data:p,logType:d?"warning":"default",groupId:f.meta.__navigationId}})});const l="router-inspector:"+s;i.addInspector({id:l,label:"Routes"+(s?" "+s:""),icon:"book",treeFilterPlaceholder:"Search routes"});function a(){if(!c)return;const f=c;let u=n.getRoutes().filter(d=>!d.parent||!d.parent.record.components);u.forEach(bh),f.filter&&(u=u.filter(d=>Pl(d,f.filter.toLowerCase()))),u.forEach(d=>vh(d,t.currentRoute.value)),f.rootNodes=u.map(yh)}let c;i.on.getInspectorTree(f=>{c=f,f.app===e&&f.inspectorId===l&&a()}),i.on.getInspectorState(f=>{if(f.app===e&&f.inspectorId===l){const d=n.getRoutes().find(p=>p.record.__vd_id===f.nodeId);d&&(f.state={options:FS(d)})}}),i.sendInspectorTree(l),i.sendInspectorState(l)})}function $S(e){return e.optional?e.repeatable?"*":"?":e.repeatable?"+":""}function FS(e){const{record:t}=e,n=[{editable:!1,key:"path",value:t.path}];return t.name!=null&&n.push({editable:!1,key:"name",value:t.name}),n.push({editable:!1,key:"regexp",value:e.re}),e.keys.length&&n.push({editable:!1,key:"keys",value:{_custom:{type:null,readOnly:!0,display:e.keys.map(s=>`${s.name}${$S(s)}`).join(" "),tooltip:"Param keys",value:e.keys}}}),t.redirect!=null&&n.push({editable:!1,key:"redirect",value:t.redirect}),e.alias.length&&n.push({editable:!1,key:"aliases",value:e.alias.map(s=>s.record.path)}),Object.keys(e.record.meta).length&&n.push({editable:!1,key:"meta",value:e.record.meta}),n.push({key:"score",editable:!1,value:{_custom:{type:null,readOnly:!0,display:e.score.map(s=>s.join(", ")).join(" | "),tooltip:"Score used to sort routes",value:e.score}}}),n}const ph=15485081,hh=2450411,mh=8702998,LS=2282478,gh=16486972,DS=6710886;function yh(e){const t=[],{record:n}=e;n.name!=null&&t.push({label:String(n.name),textColor:0,backgroundColor:LS}),n.aliasOf&&t.push({label:"alias",textColor:0,backgroundColor:gh}),e.__vd_match&&t.push({label:"matches",textColor:0,backgroundColor:ph}),e.__vd_exactActive&&t.push({label:"exact",textColor:0,backgroundColor:mh}),e.__vd_active&&t.push({label:"active",textColor:0,backgroundColor:hh}),n.redirect&&t.push({label:typeof n.redirect=="string"?`redirect: ${n.redirect}`:"redirects",textColor:16777215,backgroundColor:DS});let s=n.__vd_id;return s==null&&(s=String(VS++),n.__vd_id=s),{id:s,label:n.path,tags:t,children:e.children.map(yh)}}let VS=0;const jS=/^\/(.*)\/([a-z]*)$/;function vh(e,t){const n=t.matched.length&&Mn(t.matched[t.matched.length-1],e.record);e.__vd_exactActive=e.__vd_active=n,n||(e.__vd_active=t.matched.some(s=>Mn(s,e.record))),e.children.forEach(s=>vh(s,t))}function bh(e){e.__vd_match=!1,e.children.forEach(bh)}function Pl(e,t){const n=String(e.re).match(jS);if(e.__vd_match=!1,!n||n.length<3)return!1;if(new RegExp(n[1].replace(/\$$/,""),n[2]).test(t))return e.children.forEach(o=>Pl(o,t)),e.record.path!=="/"||t==="/"?(e.__vd_match=e.re.test(t),!0):!1;const i=e.record.path.toLowerCase(),r=Ms(i);return!t.startsWith("/")&&(r.includes(t)||i.includes(t))||r.startsWith(t)||i.startsWith(t)||e.record.name&&String(e.record.name).includes(t)?!0:e.children.some(o=>Pl(o,t))}function BS(e,t){const n={};for(const s in e)t.includes(s)||(n[s]=e[s]);return n}function tC(e){const t=hS(e.routes,e),n=e.parseQuery||SS,s=e.stringifyQuery||Vu,i=e.history;if(!i)throw new Error('Provide the "history" option when calling "createRouter()": https://next.router.vuejs.org/api/#history.');const r=zs(),o=zs(),l=zs(),a=ra(dn);let c=dn;Zt&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=Lo.bind(null,k=>""+k),u=Lo.bind(null,V_),d=Lo.bind(null,Ms);function p(k,K){let U,Y;return ch(k)?(U=t.getRecordMatcher(k),Y=K):Y=k,t.addRoute(Y,U)}function m(k){const K=t.getRecordMatcher(k);K?t.removeRoute(K):ve(`Cannot remove non-existent route "${String(k)}"`)}function w(){return t.getRoutes().map(k=>k.record)}function E(k){return!!t.getRecordMatcher(k)}function y(k,K){if(K=be({},K||a.value),typeof k=="string"){const h=Do(n,k,K.path),v=t.resolve({path:h.path},K),R=i.createHref(h.fullPath);return R.startsWith("//")?ve(`Location "${k}" resolved to "${R}". A resolved location cannot start with multiple slashes.`):v.matched.length||ve(`No match found for location with path "${k}"`),be(h,v,{params:d(v.params),hash:Ms(h.hash),redirectedFrom:void 0,href:R})}let U;if(k.path!=null)"params"in k&&!("name"in k)&&Object.keys(k.params).length&&ve(`Path "${k.path}" was passed with params but they will be ignored. Use a named route alongside params instead.`),U=be({},k,{path:Do(n,k.path,K.path).path});else{const h=be({},k.params);for(const v in h)h[v]==null&&delete h[v];U=be({},k,{params:u(h)}),K.params=u(K.params)}const Y=t.resolve(U,K),ue=k.hash||"";ue&&!ue.startsWith("#")&&ve(`A \`hash\` should always start with the character "#". Replace "${ue}" with "#${ue}".`),Y.params=f(d(Y.params));const Oe=H_(s,be({},k,{hash:F_(ue),path:Y.path})),le=i.createHref(Oe);return le.startsWith("//")?ve(`Location "${k}" resolved to "${le}". A resolved location cannot start with multiple slashes.`):Y.matched.length||ve(`No match found for location with path "${k.path!=null?k.path:k}"`),be({fullPath:Oe,hash:ue,query:s===Vu?wS(k.query):k.query||{}},Y,{redirectedFrom:void 0,href:le})}function _(k){return typeof k=="string"?Do(n,k,a.value.path):be({},k)}function g(k,K){if(c!==k)return $s(8,{from:K,to:k})}function b(k){return C(k)}function S(k){return b(be(_(k),{replace:!0}))}function A(k){const K=k.matched[k.matched.length-1];if(K&&K.redirect){const{redirect:U}=K;let Y=typeof U=="function"?U(k):U;if(typeof Y=="string"&&(Y=Y.includes("?")||Y.includes("#")?Y=_(Y):{path:Y},Y.params={}),Y.path==null&&!("name"in Y))throw ve(`Invalid redirect found:
${JSON.stringify(Y,null,2)}
when navigating to "${k.fullPath}". A redirect must contain a name or path. This will break in production.`),new Error("Invalid redirect");return be({query:k.query,hash:k.hash,params:Y.path!=null?{}:k.params},Y)}}function C(k,K){const U=c=y(k),Y=a.value,ue=k.state,Oe=k.force,le=k.replace===!0,h=A(U);if(h)return C(be(_(h),{state:typeof h=="object"?be({},ue,h.state):ue,force:Oe,replace:le}),K||U);const v=U;v.redirectedFrom=K;let R;return!Oe&&Ru(s,Y,U)&&(R=$s(16,{to:v,from:Y}),rt(Y,Y,!0,!1)),(R?Promise.resolve(R):x(v,Y)).catch(P=>zt(P)?zt(P,2)?P:Ye(P):W(P,v,Y)).then(P=>{if(P){if(zt(P,2))return Ru(s,y(P.to),v)&&K&&(K._count=K._count?K._count+1:1)>30?(ve(`Detected a possibly infinite redirection in a navigation guard when going from "${Y.fullPath}" to "${v.fullPath}". Aborting to avoid a Stack Overflow.
Are you always returning a new location within a navigation guard? That would lead to this error. Only return when redirecting or aborting, that should fix this. This might break in production if not fixed.`),Promise.reject(new Error("Infinite redirect in navigation guard"))):C(be({replace:le},_(P.to),{state:typeof P.to=="object"?be({},ue,P.to.state):ue,force:Oe}),K||v)}else P=I(v,Y,!0,le,ue);return N(v,Y,P),P})}function T(k,K){const U=g(k,K);return U?Promise.reject(U):Promise.resolve()}function O(k){const K=ln.values().next().value;return K&&typeof K.runWithContext=="function"?K.runWithContext(k):k()}function x(k,K){let U;const[Y,ue,Oe]=HS(k,K);U=Vo(Y.reverse(),"beforeRouteLeave",k,K);for(const h of Y)h.leaveGuards.forEach(v=>{U.push(bn(v,k,K))});const le=T.bind(null,k,K);return U.push(le),an(U).then(()=>{U=[];for(const h of r.list())U.push(bn(h,k,K));return U.push(le),an(U)}).then(()=>{U=Vo(ue,"beforeRouteUpdate",k,K);for(const h of ue)h.updateGuards.forEach(v=>{U.push(bn(v,k,K))});return U.push(le),an(U)}).then(()=>{U=[];for(const h of Oe)if(h.beforeEnter)if(gt(h.beforeEnter))for(const v of h.beforeEnter)U.push(bn(v,k,K));else U.push(bn(h.beforeEnter,k,K));return U.push(le),an(U)}).then(()=>(k.matched.forEach(h=>h.enterCallbacks={}),U=Vo(Oe,"beforeRouteEnter",k,K,O),U.push(le),an(U))).then(()=>{U=[];for(const h of o.list())U.push(bn(h,k,K));return U.push(le),an(U)}).catch(h=>zt(h,8)?h:Promise.reject(h))}function N(k,K,U){l.list().forEach(Y=>O(()=>Y(k,K,U)))}function I(k,K,U,Y,ue){const Oe=g(k,K);if(Oe)return Oe;const le=K===dn,h=Zt?history.state:{};U&&(Y||le?i.replace(k.fullPath,be({scroll:le&&h&&h.scroll},ue)):i.push(k.fullPath,ue)),a.value=k,rt(k,K,U,le),Ye()}let j;function G(){j||(j=i.listen((k,K,U)=>{if(!Wi.listening)return;const Y=y(k),ue=A(Y);if(ue){C(be(ue,{replace:!0}),Y).catch(oi);return}c=Y;const Oe=a.value;Zt&&J_(Nu(Oe.fullPath,U.delta),vo()),x(Y,Oe).catch(le=>zt(le,12)?le:zt(le,2)?(C(le.to,Y).then(h=>{zt(h,20)&&!U.delta&&U.type===Oi.pop&&i.go(-1,!1)}).catch(oi),Promise.reject()):(U.delta&&i.go(-U.delta,!1),W(le,Y,Oe))).then(le=>{le=le||I(Y,Oe,!1),le&&(U.delta&&!zt(le,8)?i.go(-U.delta,!1):U.type===Oi.pop&&zt(le,20)&&i.go(-1,!1)),N(Y,Oe,le)}).catch(oi)}))}let te=zs(),z=zs(),J;function W(k,K,U){Ye(k);const Y=z.list();return Y.length?Y.forEach(ue=>ue(k,K,U)):(ve("uncaught error during route navigation:"),console.error(k)),Promise.reject(k)}function Fe(){return J&&a.value!==dn?Promise.resolve():new Promise((k,K)=>{te.add([k,K])})}function Ye(k){return J||(J=!k,G(),te.list().forEach(([K,U])=>k?U(k):K()),te.reset()),k}function rt(k,K,U,Y){const{scrollBehavior:ue}=e;if(!Zt||!ue)return Promise.resolve();const Oe=!U&&X_(Nu(k.fullPath,0))||(Y||!U)&&history.state&&history.state.scroll||null;return Dn().then(()=>ue(k,K,Oe)).then(le=>le&&Y_(le)).catch(le=>W(le,k,K))}const Mt=k=>i.go(k);let vt;const ln=new Set,Wi={currentRoute:a,listening:!0,addRoute:p,removeRoute:m,hasRoute:E,getRoutes:w,resolve:y,options:e,push:b,replace:S,go:Mt,back:()=>Mt(-1),forward:()=>Mt(1),beforeEach:r.add,beforeResolve:o.add,afterEach:l.add,onError:z.add,isReady:Fe,install(k){const K=this;k.component("RouterLink",OS),k.component("RouterView",NS),k.config.globalProperties.$router=K,Object.defineProperty(k.config.globalProperties,"$route",{enumerable:!0,get:()=>Ze(a)}),Zt&&!vt&&a.value===dn&&(vt=!0,b(i.location).catch(ue=>{ve("Unexpected error when starting the router:",ue)}));const U={};for(const ue in dn)Object.defineProperty(U,ue,{get:()=>a.value[ue],enumerable:!0});k.provide(bo,K),k.provide(dh,ta(U)),k.provide(kl,a);const Y=k.unmount;ln.add(k),k.unmount=function(){ln.delete(k),ln.size<1&&(c=dn,j&&j(),j=null,a.value=dn,vt=!1,J=!1),Y()},Zt&&MS(k,K,t)}};function an(k){return k.reduce((K,U)=>K.then(()=>O(U)),Promise.resolve())}return Wi}function HS(e,t){const n=[],s=[],i=[],r=Math.max(t.matched.length,e.matched.length);for(let o=0;o<r;o++){const l=t.matched[o];l&&(e.matched.find(c=>Mn(c,l))?s.push(l):n.push(l));const a=e.matched[o];a&&(t.matched.find(c=>Mn(c,a))||i.push(a))}return[n,s,i]}function nC(){return Et(bo)}function qt(e){return Xl()?(_f(e),!0):!1}const ws=new WeakMap,sC=(e,t)=>{var n;const s=(n=Ge())==null?void 0:n.proxy;if(s==null)throw new Error("provideLocal must be called in setup");ws.has(s)||ws.set(s,Object.create(null));const i=ws.get(s);i[e]=t,_s(e,t)},iC=(...e)=>{var t;const n=e[0],s=(t=Ge())==null?void 0:t.proxy;if(s==null)throw new Error("injectLocal must be called in setup");return ws.has(s)&&n in ws.get(s)?ws.get(s)[n]:Et(...e)};function rC(e){let t=0,n,s;const i=()=>{t-=1,s&&t<=0&&(s.stop(),n=void 0,s=void 0)};return(...r)=>(t+=1,n||(s=vf(!0),n=s.run(()=>e(...r))),qt(i),n)}function Se(e){return typeof e=="function"?e():Ze(e)}function oC(e){if(!Te(e))return it(e);const t=new Proxy({},{get(n,s,i){return Ze(Reflect.get(e.value,s,i))},set(n,s,i){return Te(e.value[s])&&!Te(i)?e.value[s].value=i:e.value[s]=i,!0},deleteProperty(n,s){return Reflect.deleteProperty(e.value,s)},has(n,s){return Reflect.has(e.value,s)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return it(t)}const Fs=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const US=e=>typeof e<"u",KS=e=>e!=null,qS=Object.prototype.toString,Wr=e=>qS.call(e)==="[object Object]",qu=()=>+Date.now(),tn=()=>{},WS=zS();function zS(){var e,t;return Fs&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function GS(e,t){function n(...s){return new Promise((i,r)=>{Promise.resolve(e(()=>t.apply(this,s),{fn:t,thisArg:this,args:s})).then(i).catch(r)})}return n}const _h=e=>e();function YS(e=_h){const t=ne(!0);function n(){t.value=!1}function s(){t.value=!0}const i=(...r)=>{t.value&&e(...r)};return{isActive:Rt(t),pause:n,resume:s,eventFilter:i}}function JS(e,t){var n;if(typeof e=="number")return e+t;const s=((n=e.match(/^-?[0-9]+\.?[0-9]*/))==null?void 0:n[0])||"",i=e.slice(s.length),r=Number.parseFloat(s)+t;return Number.isNaN(r)?e:r+i}function lC(e,t,n=!1){return Object.fromEntries(Object.entries(e).filter(([s,i])=>(!n||i!==void 0)&&!t.includes(s)))}function Sh(e){return e||Ge()}function XS(...e){if(e.length!==1)return Df(...e);const t=e[0];return typeof t=="function"?Rt(to(()=>({get:t,set:tn}))):ne(t)}function QS(e,t,n={}){const{eventFilter:s=_h,...i}=n;return Ee(e,GS(s,t),i)}function ZS(e,t,n={}){const{eventFilter:s,...i}=n,{eventFilter:r,pause:o,resume:l,isActive:a}=YS(s);return{stop:QS(e,t,{...i,eventFilter:r}),pause:o,resume:l,isActive:a}}function ew(e,t={}){if(!Te(e))return Lf(e);const n=Array.isArray(e.value)?Array.from({length:e.value.length}):{};for(const s in e.value)n[s]=to(()=>({get(){return e.value[s]},set(i){var r;if((r=Se(t.replaceRef))!=null?r:!0)if(Array.isArray(e.value)){const l=[...e.value];l[s]=i,e.value=l}else{const l={...e.value,[s]:i};Object.setPrototypeOf(l,Object.getPrototypeOf(e.value)),e.value=l}else e.value[s]=i}}));return n}function Bi(e,t=!0,n){Sh()?cs(e,n):t?e():Dn(e)}function tw(e,t){Sh(t)&&$i(e,t)}function nw(e,t=1e3,n={}){const{immediate:s=!0,immediateCallback:i=!1}=n;let r=null;const o=ne(!1);function l(){r&&(clearInterval(r),r=null)}function a(){o.value=!1,l()}function c(){const f=Se(t);f<=0||(o.value=!0,i&&e(),l(),r=setInterval(e,f))}if(s&&Fs&&c(),Te(t)||typeof t=="function"){const f=Ee(t,()=>{o.value&&Fs&&c()});qt(f)}return qt(a),{isActive:o,pause:a,resume:c}}function aC(e=!1,t={}){const{truthyValue:n=!0,falsyValue:s=!1}=t,i=Te(e),r=ne(e);function o(l){if(arguments.length)return r.value=l,r.value;{const a=Se(n);return r.value=r.value===a?Se(s):a,r.value}}return i?o:[r,o]}function ze(e){var t;const n=Se(e);return(t=n==null?void 0:n.$el)!=null?t:n}const He=Fs?window:void 0,wh=Fs?window.document:void 0;function fe(...e){let t,n,s,i;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,s,i]=e,t=He):[t,n,s,i]=e,!t)return tn;Array.isArray(n)||(n=[n]),Array.isArray(s)||(s=[s]);const r=[],o=()=>{r.forEach(f=>f()),r.length=0},l=(f,u,d,p)=>(f.addEventListener(u,d,p),()=>f.removeEventListener(u,d,p)),a=Ee(()=>[ze(t),Se(i)],([f,u])=>{if(o(),!f)return;const d=Wr(u)?{...u}:u;r.push(...n.flatMap(p=>s.map(m=>l(f,p,m,d))))},{immediate:!0,flush:"post"}),c=()=>{a(),o()};return qt(c),c}let Wu=!1;function cC(e,t,n={}){const{window:s=He,ignore:i=[],capture:r=!0,detectIframe:o=!1}=n;if(!s)return tn;WS&&!Wu&&(Wu=!0,Array.from(s.document.body.children).forEach(d=>d.addEventListener("click",tn)),s.document.documentElement.addEventListener("click",tn));let l=!0;const a=d=>i.some(p=>{if(typeof p=="string")return Array.from(s.document.querySelectorAll(p)).some(m=>m===d.target||d.composedPath().includes(m));{const m=ze(p);return m&&(d.target===m||d.composedPath().includes(m))}}),f=[fe(s,"click",d=>{const p=ze(e);if(!(!p||p===d.target||d.composedPath().includes(p))){if(d.detail===0&&(l=!a(d)),!l){l=!0;return}t(d)}},{passive:!0,capture:r}),fe(s,"pointerdown",d=>{const p=ze(e);l=!a(d)&&!!(p&&!d.composedPath().includes(p))},{passive:!0}),o&&fe(s,"blur",d=>{setTimeout(()=>{var p;const m=ze(e);((p=s.document.activeElement)==null?void 0:p.tagName)==="IFRAME"&&!(m!=null&&m.contains(s.document.activeElement))&&t(d)},0)})].filter(Boolean);return()=>f.forEach(d=>d())}function sw(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function uC(...e){let t,n,s={};e.length===3?(t=e[0],n=e[1],s=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],s=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:i=He,eventName:r="keydown",passive:o=!1,dedupe:l=!1}=s,a=sw(t);return fe(i,r,f=>{f.repeat&&Se(l)||a(f)&&n(f)},o)}function fC(e={}){var t;const{window:n=He,deep:s=!0}=e,i=(t=e.document)!=null?t:n==null?void 0:n.document,r=()=>{var a;let c=i==null?void 0:i.activeElement;if(s)for(;c!=null&&c.shadowRoot;)c=(a=c==null?void 0:c.shadowRoot)==null?void 0:a.activeElement;return c},o=ne(),l=()=>{o.value=r()};return n&&(fe(n,"blur",a=>{a.relatedTarget===null&&l()},!0),fe(n,"focus",l,!0)),l(),o}function iw(){const e=ne(!1),t=Ge();return t&&cs(()=>{e.value=!0},t),e}function _o(e){const t=iw();return ae(()=>(t.value,!!e()))}function rw(e,t={}){const{immediate:n=!0,fpsLimit:s=void 0,window:i=He}=t,r=ne(!1),o=s?1e3/s:null;let l=0,a=null;function c(d){if(!r.value||!i)return;l||(l=d);const p=d-l;if(o&&p<o){a=i.requestAnimationFrame(c);return}l=d,e({delta:p,timestamp:d}),a=i.requestAnimationFrame(c)}function f(){!r.value&&i&&(r.value=!0,l=0,a=i.requestAnimationFrame(c))}function u(){r.value=!1,a!=null&&i&&(i.cancelAnimationFrame(a),a=null)}return n&&f(),qt(u),{isActive:Rt(r),pause:u,resume:f}}function Kn(e,t={}){const{window:n=He}=t,s=_o(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let i;const r=ne(!1),o=c=>{r.value=c.matches},l=()=>{i&&("removeEventListener"in i?i.removeEventListener("change",o):i.removeListener(o))},a=ya(()=>{s.value&&(l(),i=n.matchMedia(Se(e)),"addEventListener"in i?i.addEventListener("change",o):i.addListener(o),r.value=i.matches)});return qt(()=>{a(),l(),i=void 0}),r}const dC={sm:640,md:768,lg:1024,xl:1280,"2xl":1536};function pC(e,t={}){function n(f,u){let d=Se(e[Se(f)]);return u!=null&&(d=JS(d,u)),typeof d=="number"&&(d=`${d}px`),d}const{window:s=He,strategy:i="min-width"}=t;function r(f){return s?s.matchMedia(f).matches:!1}const o=f=>Kn(()=>`(min-width: ${n(f)})`,t),l=f=>Kn(()=>`(max-width: ${n(f)})`,t),a=Object.keys(e).reduce((f,u)=>(Object.defineProperty(f,u,{get:()=>i==="min-width"?o(u):l(u),enumerable:!0,configurable:!0}),f),{});function c(){const f=Object.keys(e).map(u=>[u,o(u)]);return ae(()=>f.filter(([,u])=>u.value).map(([u])=>u))}return Object.assign(a,{greaterOrEqual:o,smallerOrEqual:l,greater(f){return Kn(()=>`(min-width: ${n(f,.1)})`,t)},smaller(f){return Kn(()=>`(max-width: ${n(f,-.1)})`,t)},between(f,u){return Kn(()=>`(min-width: ${n(f)}) and (max-width: ${n(u,-.1)})`,t)},isGreater(f){return r(`(min-width: ${n(f,.1)})`)},isGreaterOrEqual(f){return r(`(min-width: ${n(f)})`)},isSmaller(f){return r(`(max-width: ${n(f,-.1)})`)},isSmallerOrEqual(f){return r(`(max-width: ${n(f)})`)},isInBetween(f,u){return r(`(min-width: ${n(f)}) and (max-width: ${n(u,-.1)})`)},current:c,active(){const f=c();return ae(()=>f.value.length===0?"":f.value.at(-1))}})}function ow(e){return JSON.parse(JSON.stringify(e))}const lr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ar="__vueuse_ssr_handlers__",lw=aw();function aw(){return ar in lr||(lr[ar]=lr[ar]||{}),lr[ar]}function cw(e,t){return lw[e]||t}function uw(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const fw={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},zu="vueuse-storage";function dw(e,t,n,s={}){var i;const{flush:r="pre",deep:o=!0,listenToStorageChanges:l=!0,writeDefaults:a=!0,mergeDefaults:c=!1,shallow:f,window:u=He,eventFilter:d,onError:p=x=>{console.error(x)},initOnMounted:m}=s,w=(f?ra:ne)(typeof t=="function"?t():t);if(!n)try{n=cw("getDefaultStorage",()=>{var x;return(x=He)==null?void 0:x.localStorage})()}catch(x){p(x)}if(!n)return w;const E=Se(t),y=uw(E),_=(i=s.serializer)!=null?i:fw[y],{pause:g,resume:b}=ZS(w,()=>A(w.value),{flush:r,deep:o,eventFilter:d});u&&l&&Bi(()=>{fe(u,"storage",T),fe(u,zu,O),m&&T()}),m||T();function S(x,N){u&&u.dispatchEvent(new CustomEvent(zu,{detail:{key:e,oldValue:x,newValue:N,storageArea:n}}))}function A(x){try{const N=n.getItem(e);if(x==null)S(N,null),n.removeItem(e);else{const I=_.write(x);N!==I&&(n.setItem(e,I),S(N,I))}}catch(N){p(N)}}function C(x){const N=x?x.newValue:n.getItem(e);if(N==null)return a&&E!=null&&n.setItem(e,_.write(E)),E;if(!x&&c){const I=_.read(N);return typeof c=="function"?c(I,E):y==="object"&&!Array.isArray(I)?{...E,...I}:I}else return typeof N!="string"?N:_.read(N)}function T(x){if(!(x&&x.storageArea!==n)){if(x&&x.key==null){w.value=E;return}if(!(x&&x.key!==e)){g();try{(x==null?void 0:x.newValue)!==_.write(w.value)&&(w.value=C(x))}catch(N){p(N)}finally{x?Dn(b):b()}}}}function O(x){T(x.detail)}return w}function hC(e){return Kn("(prefers-color-scheme: dark)",e)}function mC(e,t={}){var n,s;const{pointerTypes:i,preventDefault:r,stopPropagation:o,exact:l,onMove:a,onEnd:c,onStart:f,initialValue:u,axis:d="both",draggingElement:p=He,containerElement:m,handle:w=e}=t,E=ne((n=Se(u))!=null?n:{x:0,y:0}),y=ne(),_=C=>i?i.includes(C.pointerType):!0,g=C=>{Se(r)&&C.preventDefault(),Se(o)&&C.stopPropagation()},b=C=>{var T;if(Se(t.disabled)||!_(C)||Se(l)&&C.target!==Se(e))return;const O=Se(m),x=(T=O==null?void 0:O.getBoundingClientRect)==null?void 0:T.call(O),N=Se(e).getBoundingClientRect(),I={x:C.clientX-(O?N.left-x.left+O.scrollLeft:N.left),y:C.clientY-(O?N.top-x.top+O.scrollTop:N.top)};(f==null?void 0:f(I,C))!==!1&&(y.value=I,g(C))},S=C=>{if(Se(t.disabled)||!_(C)||!y.value)return;const T=Se(m),O=Se(e).getBoundingClientRect();let{x,y:N}=E.value;(d==="x"||d==="both")&&(x=C.clientX-y.value.x,T&&(x=Math.min(Math.max(0,x),T.scrollWidth-O.width))),(d==="y"||d==="both")&&(N=C.clientY-y.value.y,T&&(N=Math.min(Math.max(0,N),T.scrollHeight-O.height))),E.value={x,y:N},a==null||a(E.value,C),g(C)},A=C=>{Se(t.disabled)||!_(C)||y.value&&(y.value=void 0,c==null||c(E.value,C),g(C))};if(Fs){const C={capture:(s=t.capture)!=null?s:!0};fe(w,"pointerdown",b,C),fe(p,"pointermove",S,C),fe(p,"pointerup",A,C)}return{...ew(E),position:E,isDragging:ae(()=>!!y.value),style:ae(()=>`left:${E.value.x}px;top:${E.value.y}px;`)}}function pw(e,t,n={}){const{window:s=He,...i}=n;let r;const o=_o(()=>s&&"ResizeObserver"in s),l=()=>{r&&(r.disconnect(),r=void 0)},a=ae(()=>Array.isArray(e)?e.map(u=>ze(u)):[ze(e)]),c=Ee(a,u=>{if(l(),o.value&&s){r=new ResizeObserver(t);for(const d of u)d&&r.observe(d,i)}},{immediate:!0,flush:"post"}),f=()=>{l(),c()};return qt(f),{isSupported:o,stop:f}}function gC(e,t={width:0,height:0},n={}){const{window:s=He,box:i="content-box"}=n,r=ae(()=>{var u,d;return(d=(u=ze(e))==null?void 0:u.namespaceURI)==null?void 0:d.includes("svg")}),o=ne(t.width),l=ne(t.height),{stop:a}=pw(e,([u])=>{const d=i==="border-box"?u.borderBoxSize:i==="content-box"?u.contentBoxSize:u.devicePixelContentBoxSize;if(s&&r.value){const p=ze(e);if(p){const m=s.getComputedStyle(p);o.value=Number.parseFloat(m.width),l.value=Number.parseFloat(m.height)}}else if(d){const p=Array.isArray(d)?d:[d];o.value=p.reduce((m,{inlineSize:w})=>m+w,0),l.value=p.reduce((m,{blockSize:w})=>m+w,0)}else o.value=u.contentRect.width,l.value=u.contentRect.height},n);Bi(()=>{const u=ze(e);u&&(o.value="offsetWidth"in u?u.offsetWidth:t.width,l.value="offsetHeight"in u?u.offsetHeight:t.height)});const c=Ee(()=>ze(e),u=>{o.value=u?t.width:0,l.value=u?t.height:0});function f(){a(),c()}return{width:o,height:l,stop:f}}function hw(e,t,n={}){const{root:s,rootMargin:i="0px",threshold:r=.1,window:o=He,immediate:l=!0}=n,a=_o(()=>o&&"IntersectionObserver"in o),c=ae(()=>{const m=Se(e);return(Array.isArray(m)?m:[m]).map(ze).filter(KS)});let f=tn;const u=ne(l),d=a.value?Ee(()=>[c.value,ze(s),u.value],([m,w])=>{if(f(),!u.value||!m.length)return;const E=new IntersectionObserver(t,{root:ze(w),rootMargin:i,threshold:r});m.forEach(y=>y&&E.observe(y)),f=()=>{E.disconnect(),f=tn}},{immediate:l,flush:"post"}):tn,p=()=>{f(),d(),u.value=!1};return qt(p),{isSupported:a,isActive:u,pause(){f(),u.value=!1},resume(){u.value=!0},stop:p}}const Gu=["fullscreenchange","webkitfullscreenchange","webkitendfullscreen","mozfullscreenchange","MSFullscreenChange"];function yC(e,t={}){const{document:n=wh,autoExit:s=!1}=t,i=ae(()=>{var y;return(y=ze(e))!=null?y:n==null?void 0:n.querySelector("html")}),r=ne(!1),o=ae(()=>["requestFullscreen","webkitRequestFullscreen","webkitEnterFullscreen","webkitEnterFullScreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"].find(y=>n&&y in n||i.value&&y in i.value)),l=ae(()=>["exitFullscreen","webkitExitFullscreen","webkitExitFullScreen","webkitCancelFullScreen","mozCancelFullScreen","msExitFullscreen"].find(y=>n&&y in n||i.value&&y in i.value)),a=ae(()=>["fullScreen","webkitIsFullScreen","webkitDisplayingFullscreen","mozFullScreen","msFullscreenElement"].find(y=>n&&y in n||i.value&&y in i.value)),c=["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"].find(y=>n&&y in n),f=_o(()=>i.value&&n&&o.value!==void 0&&l.value!==void 0&&a.value!==void 0),u=()=>c?(n==null?void 0:n[c])===i.value:!1,d=()=>{if(a.value){if(n&&n[a.value]!=null)return n[a.value];{const y=i.value;if((y==null?void 0:y[a.value])!=null)return!!y[a.value]}}return!1};async function p(){if(!(!f.value||!r.value)){if(l.value)if((n==null?void 0:n[l.value])!=null)await n[l.value]();else{const y=i.value;(y==null?void 0:y[l.value])!=null&&await y[l.value]()}r.value=!1}}async function m(){if(!f.value||r.value)return;d()&&await p();const y=i.value;o.value&&(y==null?void 0:y[o.value])!=null&&(await y[o.value](),r.value=!0)}async function w(){await(r.value?p():m())}const E=()=>{const y=d();(!y||y&&u())&&(r.value=y)};return fe(n,Gu,E,!1),fe(()=>ze(i),Gu,E,!1),s&&qt(p),{isSupported:f,isFullscreen:r,enter:m,exit:p,toggle:w}}function vC(e,t,n={}){const{window:s=He}=n;return dw(e,t,s==null?void 0:s.localStorage,n)}const mw={ctrl:"control",command:"meta",cmd:"meta",option:"alt",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright"};function bC(e={}){const{reactive:t=!1,target:n=He,aliasMap:s=mw,passive:i=!0,onEventFired:r=tn}=e,o=it(new Set),l={toJSON(){return{}},current:o},a=t?it(l):l,c=new Set,f=new Set;function u(w,E){w in a&&(t?a[w]=E:a[w].value=E)}function d(){o.clear();for(const w of f)u(w,!1)}function p(w,E){var y,_;const g=(y=w.key)==null?void 0:y.toLowerCase(),S=[(_=w.code)==null?void 0:_.toLowerCase(),g].filter(Boolean);g&&(E?o.add(g):o.delete(g));for(const A of S)f.add(A),u(A,E);g==="meta"&&!E?(c.forEach(A=>{o.delete(A),u(A,!1)}),c.clear()):typeof w.getModifierState=="function"&&w.getModifierState("Meta")&&E&&[...o,...S].forEach(A=>c.add(A))}fe(n,"keydown",w=>(p(w,!0),r(w)),{passive:i}),fe(n,"keyup",w=>(p(w,!1),r(w)),{passive:i}),fe("blur",d,{passive:!0}),fe("focus",d,{passive:!0});const m=new Proxy(a,{get(w,E,y){if(typeof E!="string")return Reflect.get(w,E,y);if(E=E.toLowerCase(),E in s&&(E=s[E]),!(E in a))if(/[+_-]/.test(E)){const g=E.split(/[+_-]/g).map(b=>b.trim());a[E]=ae(()=>g.every(b=>Se(m[b])))}else a[E]=ne(!1);const _=Reflect.get(w,E,y);return t?Se(_):_}});return m}const gw={page:e=>[e.pageX,e.pageY],client:e=>[e.clientX,e.clientY],screen:e=>[e.screenX,e.screenY],movement:e=>e instanceof Touch?null:[e.movementX,e.movementY]};function _C(e={}){const{type:t="page",touch:n=!0,resetOnTouchEnds:s=!1,initialValue:i={x:0,y:0},window:r=He,target:o=r,scroll:l=!0,eventFilter:a}=e;let c=null;const f=ne(i.x),u=ne(i.y),d=ne(null),p=typeof t=="function"?t:gw[t],m=S=>{const A=p(S);c=S,A&&([f.value,u.value]=A,d.value="mouse")},w=S=>{if(S.touches.length>0){const A=p(S.touches[0]);A&&([f.value,u.value]=A,d.value="touch")}},E=()=>{if(!c||!r)return;const S=p(c);c instanceof MouseEvent&&S&&(f.value=S[0]+r.scrollX,u.value=S[1]+r.scrollY)},y=()=>{f.value=i.x,u.value=i.y},_=a?S=>a(()=>m(S),{}):S=>m(S),g=a?S=>a(()=>w(S),{}):S=>w(S),b=a?()=>a(()=>E(),{}):()=>E();if(o){const S={passive:!0};fe(o,["mousemove","dragover"],_,S),n&&t!=="movement"&&(fe(o,["touchstart","touchmove"],g,S),s&&fe(o,"touchend",y,S)),l&&t==="page"&&fe(r,"scroll",b,{passive:!0})}return{x:f,y:u,sourceType:d}}function SC(e,t={}){const n=XS(e),{threshold:s=50,onSwipe:i,onSwipeEnd:r,onSwipeStart:o,disableTextSelect:l=!1}=t,a=it({x:0,y:0}),c=(C,T)=>{a.x=C,a.y=T},f=it({x:0,y:0}),u=(C,T)=>{f.x=C,f.y=T},d=ae(()=>a.x-f.x),p=ae(()=>a.y-f.y),{max:m,abs:w}=Math,E=ae(()=>m(w(d.value),w(p.value))>=s),y=ne(!1),_=ne(!1),g=ae(()=>E.value?w(d.value)>w(p.value)?d.value>0?"left":"right":p.value>0?"up":"down":"none"),b=C=>{var T,O,x;const N=C.buttons===0,I=C.buttons===1;return(x=(O=(T=t.pointerTypes)==null?void 0:T.includes(C.pointerType))!=null?O:N||I)!=null?x:!0},S=[fe(e,"pointerdown",C=>{if(!b(C))return;_.value=!0;const T=C.target;T==null||T.setPointerCapture(C.pointerId);const{clientX:O,clientY:x}=C;c(O,x),u(O,x),o==null||o(C)}),fe(e,"pointermove",C=>{if(!b(C)||!_.value)return;const{clientX:T,clientY:O}=C;u(T,O),!y.value&&E.value&&(y.value=!0),y.value&&(i==null||i(C))}),fe(e,"pointerup",C=>{b(C)&&(y.value&&(r==null||r(C,g.value)),_.value=!1,y.value=!1)})];Bi(()=>{var C,T,O,x,N,I,j,G;(T=(C=n.value)==null?void 0:C.style)==null||T.setProperty("touch-action","none"),l&&((x=(O=n.value)==null?void 0:O.style)==null||x.setProperty("-webkit-user-select","none"),(I=(N=n.value)==null?void 0:N.style)==null||I.setProperty("-ms-user-select","none"),(G=(j=n.value)==null?void 0:j.style)==null||G.setProperty("user-select","none"))});const A=()=>S.forEach(C=>C());return{isSwiping:Rt(y),direction:Rt(g),posStart:Rt(a),posEnd:Rt(f),distanceX:d,distanceY:p,stop:A}}let yw=0;function wC(e,t={}){const n=ne(!1),{document:s=wh,immediate:i=!0,manual:r=!1,id:o=`vueuse_styletag_${++yw}`}=t,l=ne(e);let a=()=>{};const c=()=>{if(!s)return;const u=s.getElementById(o)||s.createElement("style");u.isConnected||(u.id=o,t.media&&(u.media=t.media),s.head.appendChild(u)),!n.value&&(a=Ee(l,d=>{u.textContent=d},{immediate:!0}),n.value=!0)},f=()=>{!s||!n.value||(a(),s.head.removeChild(s.getElementById(o)),n.value=!1)};return i&&!r&&Bi(c),r||qt(f),{id:o,css:l,unload:f,load:c,isLoaded:Rt(n)}}function EC(e={}){const{controls:t=!1,offset:n=0,immediate:s=!0,interval:i="requestAnimationFrame",callback:r}=e,o=ne(qu()+n),l=()=>o.value=qu()+n,a=r?()=>{l(),r(o.value)}:l,c=i==="requestAnimationFrame"?rw(a,{immediate:s}):nw(a,i,{immediate:s});return t?{timestamp:o,...c}:o}function CC(e,t,n,s={}){var i,r,o;const{clone:l=!1,passive:a=!1,eventName:c,deep:f=!1,defaultValue:u,shouldEmit:d}=s,p=Ge(),m=n||(p==null?void 0:p.emit)||((i=p==null?void 0:p.$emit)==null?void 0:i.bind(p))||((o=(r=p==null?void 0:p.proxy)==null?void 0:r.$emit)==null?void 0:o.bind(p==null?void 0:p.proxy));let w=c;t||(t="modelValue"),w=w||`update:${t.toString()}`;const E=g=>l?typeof l=="function"?l(g):ow(g):g,y=()=>US(e[t])?E(e[t]):u,_=g=>{d?d(g)&&m(w,g):m(w,g)};if(a){const g=y(),b=ne(g);let S=!1;return Ee(()=>e[t],A=>{S||(S=!0,b.value=E(A),Dn(()=>S=!1))}),Ee(b,A=>{!S&&(A!==e[t]||f)&&_(A)},{deep:f}),b}else return ae({get(){return y()},set(g){_(g)}})}function TC(e={}){const{window:t=He}=e;if(!t)return ne(!1);const n=ne(t.document.hasFocus());return fe(t,"blur",()=>{n.value=!1}),fe(t,"focus",()=>{n.value=!0}),n}function xC(e={}){const{window:t=He,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:s=Number.POSITIVE_INFINITY,listenOrientation:i=!0,includeScrollbar:r=!0}=e,o=ne(n),l=ne(s),a=()=>{t&&(r?(o.value=t.innerWidth,l.value=t.innerHeight):(o.value=t.document.documentElement.clientWidth,l.value=t.document.documentElement.clientHeight))};if(a(),Bi(a),fe("resize",a,{passive:!0}),i){const c=Kn("(orientation: portrait)");Ee(c,()=>a())}return{width:o,height:l}}function OC(...e){return ae(()=>e.every(t=>Se(t)))}function AC(e){return ae(()=>!Se(e))}function RC(...e){return ae(()=>e.some(t=>Se(t)))}function jo(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function Ml(e,t,n=".",s){if(!jo(t))return Ml(e,{},n,s);const i=Object.assign({},t);for(const r in e){if(r==="__proto__"||r==="constructor")continue;const o=e[r];o!=null&&(s&&s(i,r,o,n)||(Array.isArray(o)&&Array.isArray(i[r])?i[r]=[...o,...i[r]]:jo(o)&&jo(i[r])?i[r]=Ml(o,i[r],(n?`${n}.`:"")+r.toString(),s):i[r]=o))}return i}function vw(e){return(...t)=>t.reduce((n,s)=>Ml(n,s,"",e),{})}const bw=vw(),Eh=1/60*1e3,_w=typeof performance<"u"?()=>performance.now():()=>Date.now(),Ch=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(_w()),Eh);function Sw(e){let t=[],n=[],s=0,i=!1,r=!1;const o=new WeakSet,l={schedule:(a,c=!1,f=!1)=>{const u=f&&i,d=u?t:n;return c&&o.add(a),d.indexOf(a)===-1&&(d.push(a),u&&i&&(s=t.length)),a},cancel:a=>{const c=n.indexOf(a);c!==-1&&n.splice(c,1),o.delete(a)},process:a=>{if(i){r=!0;return}if(i=!0,[t,n]=[n,t],n.length=0,s=t.length,s)for(let c=0;c<s;c++){const f=t[c];f(a),o.has(f)&&(l.schedule(f),e())}i=!1,r&&(r=!1,l.process(a))}};return l}const ww=40;let $l=!0,Ai=!1,Fl=!1;const Es={delta:0,timestamp:0},Hi=["read","update","preRender","render","postRender"],So=Hi.reduce((e,t)=>(e[t]=Sw(()=>Ai=!0),e),{}),Ll=Hi.reduce((e,t)=>{const n=So[t];return e[t]=(s,i=!1,r=!1)=>(Ai||Tw(),n.schedule(s,i,r)),e},{}),Ew=Hi.reduce((e,t)=>(e[t]=So[t].cancel,e),{});Hi.reduce((e,t)=>(e[t]=()=>So[t].process(Es),e),{});const Cw=e=>So[e].process(Es),Th=e=>{Ai=!1,Es.delta=$l?Eh:Math.max(Math.min(e-Es.timestamp,ww),1),Es.timestamp=e,Fl=!0,Hi.forEach(Cw),Fl=!1,Ai&&($l=!1,Ch(Th))},Tw=()=>{Ai=!0,$l=!0,Fl||Ch(Th)},xh=()=>Es;function Oh(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,s=Object.getOwnPropertySymbols(e);i<s.length;i++)t.indexOf(s[i])<0&&Object.prototype.propertyIsEnumerable.call(e,s[i])&&(n[s[i]]=e[s[i]]);return n}var Za=function(){},Ri=function(){};Za=function(e,t){!e&&typeof console<"u"&&console.warn(t)},Ri=function(e,t){if(!e)throw new Error(t)};const Dl=(e,t,n)=>Math.min(Math.max(n,e),t),Bo=.001,xw=.01,Yu=10,Ow=.05,Aw=1;function Rw({duration:e=800,bounce:t=.25,velocity:n=0,mass:s=1}){let i,r;Za(e<=Yu*1e3,"Spring duration must be 10 seconds or less");let o=1-t;o=Dl(Ow,Aw,o),e=Dl(xw,Yu,e/1e3),o<1?(i=c=>{const f=c*o,u=f*e,d=f-n,p=Vl(c,o),m=Math.exp(-u);return Bo-d/p*m},r=c=>{const u=c*o*e,d=u*n+n,p=Math.pow(o,2)*Math.pow(c,2)*e,m=Math.exp(-u),w=Vl(Math.pow(c,2),o);return(-i(c)+Bo>0?-1:1)*((d-p)*m)/w}):(i=c=>{const f=Math.exp(-c*e),u=(c-n)*e+1;return-Bo+f*u},r=c=>{const f=Math.exp(-c*e),u=(n-c)*(e*e);return f*u});const l=5/e,a=Nw(i,r,l);if(e=e*1e3,isNaN(a))return{stiffness:100,damping:10,duration:e};{const c=Math.pow(a,2)*s;return{stiffness:c,damping:o*2*Math.sqrt(s*c),duration:e}}}const Iw=12;function Nw(e,t,n){let s=n;for(let i=1;i<Iw;i++)s=s-e(s)/t(s);return s}function Vl(e,t){return e*Math.sqrt(1-t*t)}const kw=["duration","bounce"],Pw=["stiffness","damping","mass"];function Ju(e,t){return t.some(n=>e[n]!==void 0)}function Mw(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!Ju(e,Pw)&&Ju(e,kw)){const n=Rw(e);t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function ec(e){var{from:t=0,to:n=1,restSpeed:s=2,restDelta:i}=e,r=Oh(e,["from","to","restSpeed","restDelta"]);const o={done:!1,value:t};let{stiffness:l,damping:a,mass:c,velocity:f,duration:u,isResolvedFromDuration:d}=Mw(r),p=Xu,m=Xu;function w(){const E=f?-(f/1e3):0,y=n-t,_=a/(2*Math.sqrt(l*c)),g=Math.sqrt(l/c)/1e3;if(i===void 0&&(i=Math.min(Math.abs(n-t)/100,.4)),_<1){const b=Vl(g,_);p=S=>{const A=Math.exp(-_*g*S);return n-A*((E+_*g*y)/b*Math.sin(b*S)+y*Math.cos(b*S))},m=S=>{const A=Math.exp(-_*g*S);return _*g*A*(Math.sin(b*S)*(E+_*g*y)/b+y*Math.cos(b*S))-A*(Math.cos(b*S)*(E+_*g*y)-b*y*Math.sin(b*S))}}else if(_===1)p=b=>n-Math.exp(-g*b)*(y+(E+g*y)*b);else{const b=g*Math.sqrt(_*_-1);p=S=>{const A=Math.exp(-_*g*S),C=Math.min(b*S,300);return n-A*((E+_*g*y)*Math.sinh(C)+b*y*Math.cosh(C))/b}}}return w(),{next:E=>{const y=p(E);if(d)o.done=E>=u;else{const _=m(E)*1e3,g=Math.abs(_)<=s,b=Math.abs(n-y)<=i;o.done=g&&b}return o.value=o.done?n:y,o},flipTarget:()=>{f=-f,[t,n]=[n,t],w()}}}ec.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";const Xu=e=>0,Ah=(e,t,n)=>{const s=t-e;return s===0?1:(n-e)/s},tc=(e,t,n)=>-n*e+n*t+e,Rh=(e,t)=>n=>Math.max(Math.min(n,t),e),ai=e=>e%1?Number(e.toFixed(5)):e,Ii=/(-)?([\d]*\.?[\d])+/g,jl=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,$w=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Ui(e){return typeof e=="string"}const Ki={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ci=Object.assign(Object.assign({},Ki),{transform:Rh(0,1)}),cr=Object.assign(Object.assign({},Ki),{default:1}),nc=e=>({test:t=>Ui(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Bn=nc("deg"),ui=nc("%"),re=nc("px"),Qu=Object.assign(Object.assign({},ui),{parse:e=>ui.parse(e)/100,transform:e=>ui.transform(e*100)}),sc=(e,t)=>n=>!!(Ui(n)&&$w.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Ih=(e,t,n)=>s=>{if(!Ui(s))return s;const[i,r,o,l]=s.match(Ii);return{[e]:parseFloat(i),[t]:parseFloat(r),[n]:parseFloat(o),alpha:l!==void 0?parseFloat(l):1}},Yn={test:sc("hsl","hue"),parse:Ih("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:s=1})=>"hsla("+Math.round(e)+", "+ui.transform(ai(t))+", "+ui.transform(ai(n))+", "+ai(ci.transform(s))+")"},Fw=Rh(0,255),Ho=Object.assign(Object.assign({},Ki),{transform:e=>Math.round(Fw(e))}),En={test:sc("rgb","red"),parse:Ih("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:s=1})=>"rgba("+Ho.transform(e)+", "+Ho.transform(t)+", "+Ho.transform(n)+", "+ai(ci.transform(s))+")"};function Lw(e){let t="",n="",s="",i="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),s=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),s=e.substr(3,1),i=e.substr(4,1),t+=t,n+=n,s+=s,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:i?parseInt(i,16)/255:1}}const Bl={test:sc("#"),parse:Lw,transform:En.transform},ct={test:e=>En.test(e)||Bl.test(e)||Yn.test(e),parse:e=>En.test(e)?En.parse(e):Yn.test(e)?Yn.parse(e):Bl.parse(e),transform:e=>Ui(e)?e:e.hasOwnProperty("red")?En.transform(e):Yn.transform(e)},Nh="${c}",kh="${n}";function Dw(e){var t,n,s,i;return isNaN(e)&&Ui(e)&&((n=(t=e.match(Ii))===null||t===void 0?void 0:t.length)!==null&&n!==void 0?n:0)+((i=(s=e.match(jl))===null||s===void 0?void 0:s.length)!==null&&i!==void 0?i:0)>0}function Ph(e){typeof e=="number"&&(e=`${e}`);const t=[];let n=0;const s=e.match(jl);s&&(n=s.length,e=e.replace(jl,Nh),t.push(...s.map(ct.parse)));const i=e.match(Ii);return i&&(e=e.replace(Ii,kh),t.push(...i.map(Ki.parse))),{values:t,numColors:n,tokenised:e}}function Mh(e){return Ph(e).values}function $h(e){const{values:t,numColors:n,tokenised:s}=Ph(e),i=t.length;return r=>{let o=s;for(let l=0;l<i;l++)o=o.replace(l<n?Nh:kh,l<n?ct.transform(r[l]):ai(r[l]));return o}}const Vw=e=>typeof e=="number"?0:e;function jw(e){const t=Mh(e);return $h(e)(t.map(Vw))}const qi={test:Dw,parse:Mh,createTransformer:$h,getAnimatableNone:jw},Bw=new Set(["brightness","contrast","saturate","opacity"]);function Hw(e){let[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[s]=n.match(Ii)||[];if(!s)return e;const i=n.replace(s,"");let r=Bw.has(t)?1:0;return s!==n&&(r*=100),t+"("+r+i+")"}const Uw=/([a-z-]*)\(.*?\)/g,Hl=Object.assign(Object.assign({},qi),{getAnimatableNone:e=>{const t=e.match(Uw);return t?t.map(Hw).join(" "):e}});function Uo(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Zu({hue:e,saturation:t,lightness:n,alpha:s}){e/=360,t/=100,n/=100;let i=0,r=0,o=0;if(!t)i=r=o=n;else{const l=n<.5?n*(1+t):n+t-n*t,a=2*n-l;i=Uo(a,l,e+1/3),r=Uo(a,l,e),o=Uo(a,l,e-1/3)}return{red:Math.round(i*255),green:Math.round(r*255),blue:Math.round(o*255),alpha:s}}const Kw=(e,t,n)=>{const s=e*e,i=t*t;return Math.sqrt(Math.max(0,n*(i-s)+s))},qw=[Bl,En,Yn],ef=e=>qw.find(t=>t.test(e)),tf=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,Fh=(e,t)=>{let n=ef(e),s=ef(t);Ri(!!n,tf(e)),Ri(!!s,tf(t));let i=n.parse(e),r=s.parse(t);n===Yn&&(i=Zu(i),n=En),s===Yn&&(r=Zu(r),s=En);const o=Object.assign({},i);return l=>{for(const a in o)a!=="alpha"&&(o[a]=Kw(i[a],r[a],l));return o.alpha=tc(i.alpha,r.alpha,l),n.transform(o)}},Ww=e=>typeof e=="number",zw=(e,t)=>n=>t(e(n)),Lh=(...e)=>e.reduce(zw);function Dh(e,t){return Ww(e)?n=>tc(e,t,n):ct.test(e)?Fh(e,t):jh(e,t)}const Vh=(e,t)=>{const n=[...e],s=n.length,i=e.map((r,o)=>Dh(r,t[o]));return r=>{for(let o=0;o<s;o++)n[o]=i[o](r);return n}},Gw=(e,t)=>{const n=Object.assign(Object.assign({},e),t),s={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(s[i]=Dh(e[i],t[i]));return i=>{for(const r in s)n[r]=s[r](i);return n}};function nf(e){const t=qi.parse(e),n=t.length;let s=0,i=0,r=0;for(let o=0;o<n;o++)s||typeof t[o]=="number"?s++:t[o].hue!==void 0?r++:i++;return{parsed:t,numNumbers:s,numRGB:i,numHSL:r}}const jh=(e,t)=>{const n=qi.createTransformer(t),s=nf(e),i=nf(t);return s.numHSL===i.numHSL&&s.numRGB===i.numRGB&&s.numNumbers>=i.numNumbers?Lh(Vh(s.parsed,i.parsed),n):(Za(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),o=>`${o>0?t:e}`)},Yw=(e,t)=>n=>tc(e,t,n);function Jw(e){if(typeof e=="number")return Yw;if(typeof e=="string")return ct.test(e)?Fh:jh;if(Array.isArray(e))return Vh;if(typeof e=="object")return Gw}function Xw(e,t,n){const s=[],i=n||Jw(e[0]),r=e.length-1;for(let o=0;o<r;o++){let l=i(e[o],e[o+1]);if(t){const a=Array.isArray(t)?t[o]:t;l=Lh(a,l)}s.push(l)}return s}function Qw([e,t],[n]){return s=>n(Ah(e,t,s))}function Zw(e,t){const n=e.length,s=n-1;return i=>{let r=0,o=!1;if(i<=e[0]?o=!0:i>=e[s]&&(r=s-1,o=!0),!o){let a=1;for(;a<n&&!(e[a]>i||a===s);a++);r=a-1}const l=Ah(e[r],e[r+1],i);return t[r](l)}}function Bh(e,t,{clamp:n=!0,ease:s,mixer:i}={}){const r=e.length;Ri(r===t.length,"Both input and output ranges must be the same length"),Ri(!s||!Array.isArray(s)||s.length===r-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[r-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const o=Xw(t,s,i),l=r===2?Qw(e,o):Zw(e,o);return n?a=>l(Dl(e[0],e[r-1],a)):l}const wo=e=>t=>1-e(1-t),ic=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,eE=e=>t=>Math.pow(t,e),Hh=e=>t=>t*t*((e+1)*t-e),tE=e=>{const t=Hh(e);return n=>(n*=2)<1?.5*t(n):.5*(2-Math.pow(2,-10*(n-1)))},Uh=1.525,nE=4/11,sE=8/11,iE=9/10,Kh=e=>e,rc=eE(2),rE=wo(rc),qh=ic(rc),Wh=e=>1-Math.sin(Math.acos(e)),zh=wo(Wh),oE=ic(zh),oc=Hh(Uh),lE=wo(oc),aE=ic(oc),cE=tE(Uh),uE=4356/361,fE=35442/1805,dE=16061/1805,zr=e=>{if(e===1||e===0)return e;const t=e*e;return e<nE?7.5625*t:e<sE?9.075*t-9.9*e+3.4:e<iE?uE*t-fE*e+dE:10.8*e*e-20.52*e+10.72},pE=wo(zr),hE=e=>e<.5?.5*(1-zr(1-e*2)):.5*zr(e*2-1)+.5;function mE(e,t){return e.map(()=>t||qh).splice(0,e.length-1)}function gE(e){const t=e.length;return e.map((n,s)=>s!==0?s/(t-1):0)}function yE(e,t){return e.map(n=>n*t)}function br({from:e=0,to:t=1,ease:n,offset:s,duration:i=300}){const r={done:!1,value:e},o=Array.isArray(t)?t:[e,t],l=yE(s&&s.length===o.length?s:gE(o),i);function a(){return Bh(l,o,{ease:Array.isArray(n)?n:mE(o,n)})}let c=a();return{next:f=>(r.value=c(f),r.done=f>=i,r),flipTarget:()=>{o.reverse(),c=a()}}}function vE({velocity:e=0,from:t=0,power:n=.8,timeConstant:s=350,restDelta:i=.5,modifyTarget:r}){const o={done:!1,value:t};let l=n*e;const a=t+l,c=r===void 0?a:r(a);return c!==a&&(l=c-t),{next:f=>{const u=-l*Math.exp(-f/s);return o.done=!(u>i||u<-i),o.value=o.done?c:c+u,o},flipTarget:()=>{}}}const sf={keyframes:br,spring:ec,decay:vE};function bE(e){if(Array.isArray(e.to))return br;if(sf[e.type])return sf[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?br:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?ec:br}function Gh(e,t,n=0){return e-t-n}function _E(e,t,n=0,s=!0){return s?Gh(t+-e,t,n):t-(e-t)+n}function SE(e,t,n,s){return s?e>=t+n:e<=-n}const wE=e=>{const t=({delta:n})=>e(n);return{start:()=>Ll.update(t,!0),stop:()=>Ew.update(t)}};function Yh(e){var t,n,{from:s,autoplay:i=!0,driver:r=wE,elapsed:o=0,repeat:l=0,repeatType:a="loop",repeatDelay:c=0,onPlay:f,onStop:u,onComplete:d,onRepeat:p,onUpdate:m}=e,w=Oh(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:E}=w,y,_=0,g=w.duration,b,S=!1,A=!0,C;const T=bE(w);!((n=(t=T).needsInterpolation)===null||n===void 0)&&n.call(t,s,E)&&(C=Bh([0,100],[s,E],{clamp:!1}),s=0,E=100);const O=T(Object.assign(Object.assign({},w),{from:s,to:E}));function x(){_++,a==="reverse"?(A=_%2===0,o=_E(o,g,c,A)):(o=Gh(o,g,c),a==="mirror"&&O.flipTarget()),S=!1,p&&p()}function N(){y.stop(),d&&d()}function I(G){if(A||(G=-G),o+=G,!S){const te=O.next(Math.max(0,o));b=te.value,C&&(b=C(b)),S=A?te.done:o<=0}m==null||m(b),S&&(_===0&&(g??(g=o)),_<l?SE(o,g,c,A)&&x():N())}function j(){f==null||f(),y=r(I),y.start()}return i&&j(),{stop:()=>{u==null||u(),y.stop()}}}function Jh(e,t){return t?e*(1e3/t):0}function EE({from:e=0,velocity:t=0,min:n,max:s,power:i=.8,timeConstant:r=750,bounceStiffness:o=500,bounceDamping:l=10,restDelta:a=1,modifyTarget:c,driver:f,onUpdate:u,onComplete:d,onStop:p}){let m;function w(g){return n!==void 0&&g<n||s!==void 0&&g>s}function E(g){return n===void 0?s:s===void 0||Math.abs(n-g)<Math.abs(s-g)?n:s}function y(g){m==null||m.stop(),m=Yh(Object.assign(Object.assign({},g),{driver:f,onUpdate:b=>{var S;u==null||u(b),(S=g.onUpdate)===null||S===void 0||S.call(g,b)},onComplete:d,onStop:p}))}function _(g){y(Object.assign({type:"spring",stiffness:o,damping:l,restDelta:a},g))}if(w(e))_({from:e,velocity:t,to:E(e)});else{let g=i*t+e;typeof c<"u"&&(g=c(g));const b=E(g),S=b===n?-1:1;let A,C;const T=O=>{A=C,C=O,t=Jh(O-A,xh().delta),(S===1&&O>b||S===-1&&O<b)&&_({from:O,to:b,velocity:t})};y({type:"decay",from:e,velocity:t,timeConstant:r,power:i,restDelta:a,modifyTarget:c,onUpdate:w(g)?T:void 0})}return{stop:()=>m==null?void 0:m.stop()}}const Xh=(e,t)=>1-3*t+3*e,Qh=(e,t)=>3*t-6*e,Zh=e=>3*e,Gr=(e,t,n)=>((Xh(t,n)*e+Qh(t,n))*e+Zh(t))*e,em=(e,t,n)=>3*Xh(t,n)*e*e+2*Qh(t,n)*e+Zh(t),CE=1e-7,TE=10;function xE(e,t,n,s,i){let r,o,l=0;do o=t+(n-t)/2,r=Gr(o,s,i)-e,r>0?n=o:t=o;while(Math.abs(r)>CE&&++l<TE);return o}const OE=8,AE=.001;function RE(e,t,n,s){for(let i=0;i<OE;++i){const r=em(t,n,s);if(r===0)return t;const o=Gr(t,n,s)-e;t-=o/r}return t}const _r=11,ur=1/(_r-1);function IE(e,t,n,s){if(e===t&&n===s)return Kh;const i=new Float32Array(_r);for(let o=0;o<_r;++o)i[o]=Gr(o*ur,e,n);function r(o){let l=0,a=1;const c=_r-1;for(;a!==c&&i[a]<=o;++a)l+=ur;--a;const f=(o-i[a])/(i[a+1]-i[a]),u=l+f*ur,d=em(u,e,n);return d>=AE?RE(o,u,e,n):d===0?u:xE(o,l,l+ur,e,n)}return o=>o===0||o===1?o:Gr(r(o),t,s)}const Ko={};var NE=Object.defineProperty,kE=(e,t,n)=>t in e?NE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,PE=(e,t,n)=>(kE(e,typeof t!="symbol"?t+"":t,n),n);class ME{constructor(){PE(this,"subscriptions",new Set)}add(t){return this.subscriptions.add(t),()=>this.subscriptions.delete(t)}notify(t,n,s){if(this.subscriptions.size)for(const i of this.subscriptions)i(t,n,s)}clear(){this.subscriptions.clear()}}var $E=Object.defineProperty,FE=(e,t,n)=>t in e?$E(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ft=(e,t,n)=>(FE(e,typeof t!="symbol"?t+"":t,n),n);function rf(e){return!isNaN(parseFloat(e))}class LE{constructor(t){Ft(this,"current"),Ft(this,"prev"),Ft(this,"timeDelta",0),Ft(this,"lastUpdated",0),Ft(this,"updateSubscribers",new ME),Ft(this,"stopAnimation"),Ft(this,"canTrackVelocity",!1),Ft(this,"updateAndNotify",n=>{this.prev=this.current,this.current=n;const{delta:s,timestamp:i}=xh();this.lastUpdated!==i&&(this.timeDelta=s,this.lastUpdated=i),Ll.postRender(this.scheduleVelocityCheck),this.updateSubscribers.notify(this.current)}),Ft(this,"scheduleVelocityCheck",()=>Ll.postRender(this.velocityCheck)),Ft(this,"velocityCheck",({timestamp:n})=>{this.canTrackVelocity||(this.canTrackVelocity=rf(this.current)),n!==this.lastUpdated&&(this.prev=this.current)}),this.prev=this.current=t,this.canTrackVelocity=rf(this.current)}onChange(t){return this.updateSubscribers.add(t)}clearListeners(){this.updateSubscribers.clear()}set(t){this.updateAndNotify(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?Jh(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{const{stop:s}=t(n);this.stopAnimation=s}).then(()=>this.clearAnimation())}stop(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.updateSubscribers.clear(),this.stop()}}function DE(e){return new LE(e)}const{isArray:VE}=Array;function jE(){const e=ne({}),t=s=>{const i=r=>{e.value[r]&&(e.value[r].stop(),e.value[r].destroy(),delete e.value[r])};s?VE(s)?s.forEach(i):i(s):Object.keys(e.value).forEach(i)},n=(s,i,r)=>{if(e.value[s])return e.value[s];const o=DE(i);return o.onChange(l=>r[s]=l),e.value[s]=o,o};return tw(t),{motionValues:e,get:n,stop:t}}function BE(e){return Array.isArray(e)}function Hn(){return{type:"spring",stiffness:500,damping:25,restDelta:.5,restSpeed:10}}function qo(e){return{type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restDelta:.01,restSpeed:10}}function HE(e){return{type:"spring",stiffness:550,damping:e===0?100:30,restDelta:.01,restSpeed:10}}function Wo(){return{type:"keyframes",ease:"linear",duration:300}}function UE(e){return{type:"keyframes",duration:800,values:e}}const of={default:HE,x:Hn,y:Hn,z:Hn,rotate:Hn,rotateX:Hn,rotateY:Hn,rotateZ:Hn,scaleX:qo,scaleY:qo,scale:qo,backgroundColor:Wo,color:Wo,opacity:Wo};function tm(e,t){let n;return BE(t)?n=UE:n=of[e]||of.default,{to:t,...n(t)}}const lf={...Ki,transform:Math.round},nm={color:ct,backgroundColor:ct,outlineColor:ct,fill:ct,stroke:ct,borderColor:ct,borderTopColor:ct,borderRightColor:ct,borderBottomColor:ct,borderLeftColor:ct,borderWidth:re,borderTopWidth:re,borderRightWidth:re,borderBottomWidth:re,borderLeftWidth:re,borderRadius:re,radius:re,borderTopLeftRadius:re,borderTopRightRadius:re,borderBottomRightRadius:re,borderBottomLeftRadius:re,width:re,maxWidth:re,height:re,maxHeight:re,size:re,top:re,right:re,bottom:re,left:re,padding:re,paddingTop:re,paddingRight:re,paddingBottom:re,paddingLeft:re,margin:re,marginTop:re,marginRight:re,marginBottom:re,marginLeft:re,rotate:Bn,rotateX:Bn,rotateY:Bn,rotateZ:Bn,scale:cr,scaleX:cr,scaleY:cr,scaleZ:cr,skew:Bn,skewX:Bn,skewY:Bn,distance:re,translateX:re,translateY:re,translateZ:re,x:re,y:re,z:re,perspective:re,transformPerspective:re,opacity:ci,originX:Qu,originY:Qu,originZ:re,zIndex:lf,filter:Hl,WebkitFilter:Hl,fillOpacity:ci,strokeOpacity:ci,numOctaves:lf},lc=e=>nm[e];function sm(e,t){return t&&typeof e=="number"&&t.transform?t.transform(e):e}function KE(e,t){let n=lc(e);return n!==Hl&&(n=qi),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const qE={linear:Kh,easeIn:rc,easeInOut:qh,easeOut:rE,circIn:Wh,circInOut:oE,circOut:zh,backIn:oc,backInOut:aE,backOut:lE,anticipate:cE,bounceIn:pE,bounceInOut:hE,bounceOut:zr};function af(e){if(Array.isArray(e)){const[t,n,s,i]=e;return IE(t,n,s,i)}else if(typeof e=="string")return qE[e];return e}function WE(e){return Array.isArray(e)&&typeof e[0]!="number"}function cf(e,t){return e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&qi.test(t)&&!t.startsWith("url("))}function zE(e){return Array.isArray(e.to)&&e.to[0]===null&&(e.to=[...e.to],e.to[0]=e.from),e}function GE({ease:e,times:t,delay:n,...s}){const i={...s};return t&&(i.offset=t),e&&(i.ease=WE(e)?e.map(af):af(e)),n&&(i.elapsed=-n),i}function YE(e,t,n){return Array.isArray(t.to)&&(e.duration||(e.duration=800)),zE(t),JE(e)||(e={...e,...tm(n,t.to)}),{...t,...GE(e)}}function JE({delay:e,repeat:t,repeatType:n,repeatDelay:s,from:i,...r}){return!!Object.keys(r).length}function XE(e,t){return e[t]||e.default||e}function QE(e,t,n,s,i){const r=XE(s,e);let o=r.from===null||r.from===void 0?t.get():r.from;const l=cf(e,n);o==="none"&&l&&typeof n=="string"&&(o=KE(e,n));const a=cf(e,o);function c(u){const d={from:o,to:n,velocity:s.velocity?s.velocity:t.getVelocity(),onUpdate:p=>t.set(p)};return r.type==="inertia"||r.type==="decay"?EE({...d,...r}):Yh({...YE(r,d,e),onUpdate:p=>{d.onUpdate(p),r.onUpdate&&r.onUpdate(p)},onComplete:()=>{s.onComplete&&s.onComplete(),i&&i(),u&&u()}})}function f(u){return t.set(n),s.onComplete&&s.onComplete(),i&&i(),u&&u(),{stop:()=>{}}}return!a||!l||r.type===!1?f:c}function ZE(){const{motionValues:e,stop:t,get:n}=jE();return{motionValues:e,stop:t,push:(i,r,o,l={},a)=>{const c=o[i],f=n(i,c,o);if(l&&l.immediate){f.set(r);return}const u=QE(i,f,r,l,a);f.start(u)}}}function e1(e,t={},{motionValues:n,push:s,stop:i}=ZE()){const r=Ze(t),o=ne(!1);Ee(n,u=>{o.value=Object.values(u).filter(d=>d.isAnimating()).length>0},{immediate:!0,deep:!0});const l=u=>{if(!r||!r[u])throw new Error(`The variant ${u} does not exist.`);return r[u]},a=u=>(typeof u=="string"&&(u=l(u)),Promise.all(Object.entries(u).map(([d,p])=>{if(d!=="transition")return new Promise(m=>s(d,p,e,u.transition||tm(d,u[d]),m))}).filter(Boolean)));return{isAnimating:o,apply:a,set:u=>{const d=Wr(u)?u:l(u);Object.entries(d).forEach(([p,m])=>{p!=="transition"&&s(p,m,e,{immediate:!0})})},leave:async u=>{let d;if(r&&(r.leave&&(d=r.leave),!r.leave&&r.initial&&(d=r.initial)),!d){u();return}await a(d),u()},stop:i}}const ac=typeof window<"u",t1=()=>ac&&window.onpointerdown===null,n1=()=>ac&&window.ontouchstart===null,s1=()=>ac&&window.onmousedown===null;function i1({target:e,state:t,variants:n,apply:s}){const i=Ze(n),r=ne(!1),o=ne(!1),l=ne(!1),a=ae(()=>{let f=[];return i&&(i.hovered&&(f=[...f,...Object.keys(i.hovered)]),i.tapped&&(f=[...f,...Object.keys(i.tapped)]),i.focused&&(f=[...f,...Object.keys(i.focused)])),f}),c=ae(()=>{const f={};Object.assign(f,t.value),r.value&&i.hovered&&Object.assign(f,i.hovered),o.value&&i.tapped&&Object.assign(f,i.tapped),l.value&&i.focused&&Object.assign(f,i.focused);for(const u in f)a.value.includes(u)||delete f[u];return f});i.hovered&&(fe(e,"mouseenter",()=>r.value=!0),fe(e,"mouseleave",()=>{r.value=!1,o.value=!1}),fe(e,"mouseout",()=>{r.value=!1,o.value=!1})),i.tapped&&(s1()&&(fe(e,"mousedown",()=>o.value=!0),fe(e,"mouseup",()=>o.value=!1)),t1()&&(fe(e,"pointerdown",()=>o.value=!0),fe(e,"pointerup",()=>o.value=!1)),n1()&&(fe(e,"touchstart",()=>o.value=!0),fe(e,"touchend",()=>o.value=!1))),i.focused&&(fe(e,"focus",()=>l.value=!0),fe(e,"blur",()=>l.value=!1)),Ee(c,s)}function r1({set:e,target:t,variants:n,variant:s}){const i=Ze(n);Ee(()=>t,()=>{i&&(i.initial&&e("initial"),i.enter&&(s.value="enter"))},{immediate:!0,flush:"pre"})}function o1({state:e,apply:t}){Ee(e,n=>{n&&t(n)},{immediate:!0})}function im({target:e,variants:t,variant:n}){const s=Ze(t);s&&(s.visible||s.visibleOnce)&&hw(e,([{isIntersecting:i}])=>{s.visible?i?n.value="visible":n.value="initial":s.visibleOnce&&(i&&n.value!=="visibleOnce"?n.value="visibleOnce":n.value||(n.value="initial"))})}function l1(e,t={syncVariants:!0,lifeCycleHooks:!0,visibilityHooks:!0,eventListeners:!0}){t.lifeCycleHooks&&r1(e),t.syncVariants&&o1(e),t.visibilityHooks&&im(e),t.eventListeners&&i1(e)}function rm(e={}){const t=it({...e}),n=ne({});return Ee(t,()=>{const s={};for(const[i,r]of Object.entries(t)){const o=lc(i),l=sm(r,o);s[i]=l}n.value=s},{immediate:!0,deep:!0}),{state:t,style:n}}function cc(e,t){Ee(()=>ze(e),n=>{n&&t(n)},{immediate:!0})}const a1={x:"translateX",y:"translateY",z:"translateZ"};function om(e={},t=!0){const n=it({...e}),s=ne("");return Ee(n,i=>{let r="",o=!1;if(t&&(i.x||i.y||i.z)){const l=[i.x||0,i.y||0,i.z||0].map(re.transform).join(",");r+=`translate3d(${l}) `,o=!0}for(const[l,a]of Object.entries(i)){if(t&&(l==="x"||l==="y"||l==="z"))continue;const c=lc(l),f=sm(a,c);r+=`${a1[l]||l}(${f}) `}t&&!o&&(r+="translateZ(0px) "),s.value=r.trim()},{immediate:!0,deep:!0}),{state:n,transform:s}}const c1=["","X","Y","Z"],u1=["perspective","translate","scale","rotate","skew"],lm=["transformPerspective","x","y","z"];u1.forEach(e=>{c1.forEach(t=>{const n=e+t;lm.push(n)})});const f1=new Set(lm);function uc(e){return f1.has(e)}const d1=new Set(["originX","originY","originZ"]);function am(e){return d1.has(e)}function p1(e){const t={},n={};return Object.entries(e).forEach(([s,i])=>{uc(s)||am(s)?t[s]=i:n[s]=i}),{transform:t,style:n}}function cm(e){const{transform:t,style:n}=p1(e),{transform:s}=om(t),{style:i}=rm(n);return s.value&&(i.value.transform=s.value),i.value}function h1(e,t){let n,s;const{state:i,style:r}=rm();return cc(e,o=>{s=o;for(const l of Object.keys(nm))o.style[l]===null||o.style[l]===""||uc(l)||am(l)||(i[l]=o.style[l]);n&&Object.entries(n).forEach(([l,a])=>o.style[l]=a),t&&t(i)}),Ee(r,o=>{if(!s){n=o;return}for(const l in o)s.style[l]=o[l]},{immediate:!0}),{style:i}}function m1(e){const t=e.trim().split(/\) |\)/);if(t.length===1)return{};const n=s=>s.endsWith("px")||s.endsWith("deg")?parseFloat(s):isNaN(Number(s))?Number(s):s;return t.reduce((s,i)=>{if(!i)return s;const[r,o]=i.split("("),a=o.split(",").map(f=>n(f.endsWith(")")?f.replace(")",""):f.trim())),c=a.length===1?a[0]:a;return{...s,[r]:c}},{})}function g1(e,t){Object.entries(m1(t)).forEach(([n,s])=>{const i=["x","y","z"];if(n==="translate3d"){if(s===0){i.forEach(r=>e[r]=0);return}s.forEach((r,o)=>e[i[o]]=r);return}if(s=parseFloat(s),n==="translateX"){e.x=s;return}if(n==="translateY"){e.y=s;return}if(n==="translateZ"){e.z=s;return}e[n]=s})}function y1(e,t){let n,s;const{state:i,transform:r}=om();return cc(e,o=>{s=o,o.style.transform&&g1(i,o.style.transform),n&&(o.style.transform=n),t&&t(i)}),Ee(r,o=>{if(!s){n=o;return}s.style.transform=o},{immediate:!0}),{transform:i}}function v1(e,t){const n=it({}),s=o=>Object.entries(o).forEach(([l,a])=>n[l]=a),{style:i}=h1(e,s),{transform:r}=y1(e,s);return Ee(n,o=>{Object.entries(o).forEach(([l,a])=>{const c=uc(l)?r:i;c[l]&&c[l]===a||(c[l]=a)})},{immediate:!0,deep:!0}),cc(e,()=>t&&s(t)),{motionProperties:n,style:i,transform:r}}function b1(e={}){const t=Ze(e),n=ne();return{state:ae(()=>{if(n.value)return t[n.value]}),variant:n}}function um(e,t={},n){const{motionProperties:s}=v1(e),{variant:i,state:r}=b1(t),o=e1(s,t),l={target:e,variant:i,variants:t,state:r,motionProperties:s,...o};return l1(l,n),l}const _1=["initial","enter","leave","visible","visible-once","visibleOnce","hovered","tapped","focused","delay"];function S1(e,t){const n=e.props?e.props:e.data&&e.data.attrs?e.data.attrs:{};n&&(n.variants&&Wr(n.variants)&&(t.value={...t.value,...n.variants}),_1.forEach(s=>{if(s==="delay"){if(n&&n[s]&&typeof n[s]=="number"){const i=n[s];t&&t.value&&(t.value.enter&&(t.value.enter.transition||(t.value.enter.transition={}),t.value.enter.transition={delay:i,...t.value.enter.transition}),t.value.visible&&(t.value.visible.transition||(t.value.visible.transition={}),t.value.visible.transition={delay:i,...t.value.visible.transition}),t.value.visibleOnce&&(t.value.visibleOnce.transition||(t.value.visibleOnce.transition={}),t.value.visibleOnce.transition={delay:i,...t.value.visibleOnce.transition}))}return}if(n&&n[s]&&Wr(n[s])){const i=n[s];s==="visible-once"&&(s="visibleOnce"),t.value[s]=i}}))}function zo(e){return{created:(s,i,r)=>{const o=i.value&&typeof i.value=="string"?i.value:r.key;o&&Ko[o]&&Ko[o].stop();const l=ne(e||{});typeof i.value=="object"&&(l.value=i.value),S1(r,l);const c=um(s,l,{eventListeners:!0,lifeCycleHooks:!0,syncVariants:!0,visibilityHooks:!1});s.motionInstance=c,o&&(Ko[o]=c)},mounted:(s,i,r)=>{s.motionInstance&&im(s.motionInstance)},getSSRProps(s,i){let{initial:r}=s.value||i&&(i==null?void 0:i.props)||{};r=Ze(r);const o=bw((e==null?void 0:e.initial)||{},r||{});return!o||Object.keys(o).length===0?void 0:{style:cm(o)}}}}const w1={initial:{opacity:0},enter:{opacity:1}},E1={initial:{opacity:0},visible:{opacity:1}},C1={initial:{opacity:0},visibleOnce:{opacity:1}},T1={initial:{scale:0,opacity:0},enter:{scale:1,opacity:1}},x1={initial:{scale:0,opacity:0},visible:{scale:1,opacity:1}},O1={initial:{scale:0,opacity:0},visibleOnce:{scale:1,opacity:1}},A1={initial:{x:-100,rotate:90,opacity:0},enter:{x:0,rotate:0,opacity:1}},R1={initial:{x:-100,rotate:90,opacity:0},visible:{x:0,rotate:0,opacity:1}},I1={initial:{x:-100,rotate:90,opacity:0},visibleOnce:{x:0,rotate:0,opacity:1}},N1={initial:{x:100,rotate:-90,opacity:0},enter:{x:0,rotate:0,opacity:1}},k1={initial:{x:100,rotate:-90,opacity:0},visible:{x:0,rotate:0,opacity:1}},P1={initial:{x:100,rotate:-90,opacity:0},visibleOnce:{x:0,rotate:0,opacity:1}},M1={initial:{y:-100,rotate:-90,opacity:0},enter:{y:0,rotate:0,opacity:1}},$1={initial:{y:-100,rotate:-90,opacity:0},visible:{y:0,rotate:0,opacity:1}},F1={initial:{y:-100,rotate:-90,opacity:0},visibleOnce:{y:0,rotate:0,opacity:1}},L1={initial:{y:100,rotate:90,opacity:0},enter:{y:0,rotate:0,opacity:1}},D1={initial:{y:100,rotate:90,opacity:0},visible:{y:0,rotate:0,opacity:1}},V1={initial:{y:100,rotate:90,opacity:0},visibleOnce:{y:0,rotate:0,opacity:1}},j1={initial:{x:-100,opacity:0},enter:{x:0,opacity:1}},B1={initial:{x:-100,opacity:0},visible:{x:0,opacity:1}},H1={initial:{x:-100,opacity:0},visibleOnce:{x:0,opacity:1}},U1={initial:{x:100,opacity:0},enter:{x:0,opacity:1}},K1={initial:{x:100,opacity:0},visible:{x:0,opacity:1}},q1={initial:{x:100,opacity:0},visibleOnce:{x:0,opacity:1}},W1={initial:{y:-100,opacity:0},enter:{y:0,opacity:1}},z1={initial:{y:-100,opacity:0},visible:{y:0,opacity:1}},G1={initial:{y:-100,opacity:0},visibleOnce:{y:0,opacity:1}},Y1={initial:{y:100,opacity:0},enter:{y:0,opacity:1}},J1={initial:{y:100,opacity:0},visible:{y:0,opacity:1}},X1={initial:{y:100,opacity:0},visibleOnce:{y:0,opacity:1}},Ul={__proto__:null,fade:w1,fadeVisible:E1,fadeVisibleOnce:C1,pop:T1,popVisible:x1,popVisibleOnce:O1,rollBottom:L1,rollLeft:A1,rollRight:N1,rollTop:M1,rollVisibleBottom:D1,rollVisibleLeft:R1,rollVisibleOnceBottom:V1,rollVisibleOnceLeft:I1,rollVisibleOnceRight:P1,rollVisibleOnceTop:F1,rollVisibleRight:k1,rollVisibleTop:$1,slideBottom:Y1,slideLeft:j1,slideRight:U1,slideTop:W1,slideVisibleBottom:J1,slideVisibleLeft:B1,slideVisibleOnceBottom:X1,slideVisibleOnceLeft:H1,slideVisibleOnceRight:q1,slideVisibleOnceTop:G1,slideVisibleRight:K1,slideVisibleTop:z1},Q1=js({props:{is:{type:[String,Object],required:!1},preset:{type:String,required:!1},instance:{type:Object,required:!1},variants:{type:Object,required:!1},initial:{type:Object,required:!1},enter:{type:Object,required:!1},leave:{type:Object,required:!1},visible:{type:Object,required:!1},visibleOnce:{type:Object,required:!1},hovered:{type:Object,required:!1},tapped:{type:Object,required:!1},focused:{type:Object,required:!1},delay:{type:[Number,String],required:!1}},setup(e){const t=gd(),n=it({});if(!e.is&&!t.default)return()=>xs("div",{});const s=ae(()=>{let l;return e.preset&&(l=Ul[e.preset]),l}),i=ae(()=>({initial:e.initial,enter:e.enter,leave:e.leave,visible:e.visible,visibleOnce:e.visibleOnce,hovered:e.hovered,tapped:e.tapped,focused:e.focused})),r=ae(()=>{const l={...i.value,...s.value||{},...e.variants||{}};return e.delay&&(l.enter.transition={...l.enter.transition},l.enter.transition.delay=parseInt(e.delay)),l}),o=ae(()=>{if(!e.is)return;let l=e.is;return typeof o.value=="string"&&!Gl(l)&&(l=Yf(l)),l});{const l=a=>{var c;(c=a.variants)!=null&&c.initial&&a.set("initial"),setTimeout(()=>{var f,u,d;(f=a.variants)!=null&&f.enter&&a.apply("enter"),(u=a.variants)!=null&&u.visible&&a.apply("visible"),(d=a.variants)!=null&&d.visibleOnce&&a.apply("visibleOnce")},10)};Mi(()=>Object.entries(n).forEach(([a,c])=>l(c)))}return{slots:t,component:o,motionConfig:r,instances:n}},render({slots:e,motionConfig:t,instances:n,component:s}){var l;const i=cm(t.initial||{}),r=(a,c)=>(a.props||(a.props={}),a.props.style=i,a.props.onVnodeMounted=({el:f})=>{const u=um(f,t);n[c]=u},a);if(s){const a=xs(s,void 0,e);return r(a,0),a}return(((l=e.default)==null?void 0:l.call(e))||[]).map((a,c)=>r(a,c))}});function Z1(e){const t="àáâäæãåāăąçćčđďèéêëēėęěğǵḧîïíīįìłḿñńǹňôöòóœøōõőṕŕřßśšşșťțûüùúūǘůűųẃẍÿýžźż·/_,:;",n="aaaaaaaaaacccddeeeeeeeegghiiiiiilmnnnnoooooooooprrsssssttuuuuuuuuuwxyyzzz------",s=new RegExp(t.split("").join("|"),"g");return e.toString().replace(/[A-Z]/g,i=>`-${i}`).toLowerCase().replace(/\s+/g,"-").replace(s,i=>n.charAt(t.indexOf(i))).replace(/&/g,"-and-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")}const IC={install(e,t){if(e.directive("motion",zo()),e.component("Motion",Q1),!t||t&&!t.excludePresets)for(const n in Ul){const s=Ul[n];e.directive(`motion-${Z1(n)}`,zo(s))}if(t&&t.directives)for(const n in t.directives){const s=t.directives[n];s.initial,e.directive(`motion-${n}`,zo(s))}}};export{wC as $,Ze as A,Et as B,ya as C,Ee as D,ao as E,De as F,ld as G,od as H,Ge as I,it as J,se as K,EC as L,ra as M,nC as N,ta as O,hC as P,vC as Q,aC as R,Fs as S,rC as T,RC as U,tC as V,eC as W,IC as X,sC as Y,ry as Z,cs as _,Lg as a,Ta as a0,Zg as a1,$r as a2,_C as a3,TC as a4,Te as a5,CC as a6,sy as a7,SC as a8,qu as a9,na as aA,mC as aB,OC as aa,AC as ab,uC as ac,gC as ad,cC as ae,Ug as af,fe as ag,Aa as ah,Ra as ai,ub as aj,tb as ak,pC as al,xC as am,bC as an,yC as ao,fC as ap,dC as aq,Df as ar,ty as as,kn as at,Kg as au,rn as av,$e as aw,iC as ax,lC as ay,oC as az,sv as b,Ea as c,js as d,Ca as e,ly as f,av as g,Ds as h,Vs as i,db as j,da as k,xe as l,Ld as m,Dn as n,co as o,Fg as p,Em as q,Yf as r,$d as s,ne as t,pb as u,xs as v,Dg as w,Mm as x,ae as y,ml as z};
import{o as e,b as o,e as n}from"./vue-Dn3czbSS.js";const c={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},_=n("path",{fill:"currentColor",d:"M12 10H6.78A11 11 0 0 1 27 16h2A13 13 0 0 0 6 7.68V4H4v8h8zm8 12h5.22A11 11 0 0 1 5 16H3a13 13 0 0 0 23 8.32V28h2v-8h-8z"},null,-1),l=[_];function i(t,s){return e(),o("svg",c,[...l])}const I2={name:"carbon-renew",render:i},h={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},r=n("path",{fill:"currentColor",d:"M16 30a14 14 0 1 1 14-14a14 14 0 0 1-14 14m0-26a12 12 0 1 0 12 12A12 12 0 0 0 16 4"},null,-1),a=n("path",{fill:"currentColor",d:"M20.59 22L15 16.41V7h2v8.58l5 5.01z"},null,-1),d=[r,a];function u(t,s){return e(),o("svg",h,[...d])}const J2={name:"carbon-time",render:u},m={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},v=n("path",{fill:"currentColor",d:"M8 12h10v2H8z"},null,-1),$=n("path",{fill:"currentColor",d:"M21.448 20A10.856 10.856 0 0 0 24 13a11 11 0 1 0-11 11a10.856 10.856 0 0 0 7-2.552L27.586 29L29 27.586ZM13 22a9 9 0 1 1 9-9a9.01 9.01 0 0 1-9 9"},null,-1),p=[v,$];function g(t,s){return e(),o("svg",m,[...p])}const K2={name:"carbon-zoom-out",render:g},L={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},f=n("path",{fill:"currentColor",d:"M18 12h-4V8h-2v4H8v2h4v4h2v-4h4z"},null,-1),w=n("path",{fill:"currentColor",d:"M21.448 20A10.856 10.856 0 0 0 24 13a11 11 0 1 0-11 11a10.856 10.856 0 0 0 7-2.552L27.586 29L29 27.586ZM13 22a9 9 0 1 1 9-9a9.01 9.01 0 0 1-9 9"},null,-1),x=[f,w];function M(t,s){return e(),o("svg",L,[...x])}const O2={name:"carbon-zoom-in",render:M},z={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},C=n("path",{fill:"currentColor",d:"M30 8h-4.1c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2v2h14.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30zm-9 4c-1.7 0-3-1.3-3-3s1.3-3 3-3s3 1.3 3 3s-1.3 3-3 3M2 24h4.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30v-2H15.9c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2zm9-4c1.7 0 3 1.3 3 3s-1.3 3-3 3s-3-1.3-3-3s1.3-3 3-3"},null,-1),H=[C];function b(t,s){return e(),o("svg",z,[...H])}const P2={name:"carbon-settings-adjust",render:b},B={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},V=n("path",{fill:"currentColor",d:"M17 22v-8h-4v2h2v6h-3v2h8v-2zM16 8a1.5 1.5 0 1 0 1.5 1.5A1.5 1.5 0 0 0 16 8"},null,-1),Z=n("path",{fill:"currentColor",d:"M16 30a14 14 0 1 1 14-14a14 14 0 0 1-14 14m0-26a12 12 0 1 0 12 12A12 12 0 0 0 16 4"},null,-1),A=[V,Z];function k(t,s){return e(),o("svg",B,[...A])}const Q2={name:"carbon-information",render:k},j={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},q=n("path",{fill:"currentColor",d:"M26 24v4H6v-4H4v4a2 2 0 0 0 2 2h20a2 2 0 0 0 2-2v-4zm0-10l-1.41-1.41L17 20.17V2h-2v18.17l-7.59-7.58L6 14l10 10z"},null,-1),y=[q];function E(t,s){return e(),o("svg",j,[...y])}const R2={name:"carbon-download",render:E},S={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},D=n("path",{fill:"currentColor",d:"M26 6v4H6V6zm0-2H6a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h20a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2M10 16v10H6V16zm0-2H6a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2V16a2 2 0 0 0-2-2m16 2v10H16V16zm0-2H16a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V16a2 2 0 0 0-2-2"},null,-1),F=[D];function G(t,s){return e(),o("svg",S,[...F])}const T2={name:"carbon-template",render:G},N={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},I=n("path",{fill:"currentColor",d:"M29.415 19L27.7 17.285A2.97 2.97 0 0 0 28 16a3 3 0 1 0-3 3a2.97 2.97 0 0 0 1.286-.3L28 20.414V28h-6v-3a7.008 7.008 0 0 0-7-7H9a7.008 7.008 0 0 0-7 7v5h28v-9.586A1.988 1.988 0 0 0 29.415 19M4 25a5.006 5.006 0 0 1 5-5h6a5.006 5.006 0 0 1 5 5v3H4Z"},null,-1),J=n("path",{fill:"currentColor",d:"M12 4a5 5 0 1 1-5 5a5 5 0 0 1 5-5m0-2a7 7 0 1 0 7 7a7 7 0 0 0-7-7"},null,-1),K=[I,J];function O(t,s){return e(),o("svg",N,[...K])}const U2={name:"carbon-user-speaker",render:O},P={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},Q=n("path",{fill:"currentColor",d:"M15 10h2v8h-2zm5 4h2v4h-2zm-10-2h2v6h-2z"},null,-1),R=n("path",{fill:"currentColor",d:"M25 4h-8V2h-2v2H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h8v6h-4v2h10v-2h-4v-6h8a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2m0 16H7V6h18Z"},null,-1),T=[Q,R];function U(t,s){return e(),o("svg",P,[...T])}const W2={name:"carbon-presentation-file",render:U},W={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},X=n("path",{fill:"currentColor",d:"M27.307 6.107L30 3.414L28.586 2l-2.693 2.693L24.8 3.6a1.933 1.933 0 0 0-2.8 0l-18 18V28h6.4l18-18a1.933 1.933 0 0 0 0-2.8ZM9.6 26H6v-3.6L23.4 5L27 8.6ZM9 11.586L16.586 4L18 5.414L10.414 13z"},null,-1),Y=[X];function n1(t,s){return e(),o("svg",W,[...Y])}const X2={name:"carbon-pen",render:n1},e1={class:"slidev-icon",viewBox:"0 0 256 256",width:"1.2em",height:"1.2em"},o1=n("g",{fill:"currentColor"},[n("path",{d:"M213.66 201L201 213.66a8 8 0 0 1-11.31 0l-51.31-51.31a8 8 0 0 0-13 2.46l-17.82 46.41a8 8 0 0 1-14.85-.71L40.41 50.44a8 8 0 0 1 10-10l160.1 52.24a8 8 0 0 1 .71 14.85l-46.41 17.82a8 8 0 0 0-2.46 13l51.31 51.31a8 8 0 0 1 0 11.34",opacity:".2"}),n("path",{d:"M168 132.69L214.08 115l.33-.13a16 16 0 0 0-1.41-29.8L52.92 32.8A15.95 15.95 0 0 0 32.8 52.92L85.07 213a15.82 15.82 0 0 0 14.41 11h.78a15.84 15.84 0 0 0 14.61-9.59l.13-.33L132.69 168L184 219.31a16 16 0 0 0 22.63 0l12.68-12.68a16 16 0 0 0 0-22.63ZM195.31 208L144 156.69a16 16 0 0 0-26 4.93c0 .11-.09.22-.13.32l-17.65 46L48 48l159.85 52.2l-45.95 17.64l-.32.13a16 16 0 0 0-4.93 26L208 195.31Z"})],-1),t1=[o1];function s1(t,s){return e(),o("svg",e1,[...t1])}const Y2={name:"ph-cursor-duotone",render:s1},c1={class:"slidev-icon",viewBox:"0 0 256 256",width:"1.2em",height:"1.2em"},_1=n("path",{fill:"currentColor",d:"m220.49 207.8l-12.69 12.69a12 12 0 0 1-17 0l-56.57-56.57L115 214.08l-.13.33a15.84 15.84 0 0 1-14.61 9.59h-.78a15.82 15.82 0 0 1-14.41-11L32.8 52.92A15.95 15.95 0 0 1 52.92 32.8L213 85.07a16 16 0 0 1 1.41 29.8l-.33.13l-50.16 19.27l56.57 56.56a12 12 0 0 1 0 16.97"},null,-1),l1=[_1];function i1(t,s){return e(),o("svg",c1,[...l1])}const nn={name:"ph-cursor-fill",render:i1},h1={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},r1=n("path",{fill:"currentColor",d:"M16 12.005a4 4 0 1 1-4 4a4.005 4.005 0 0 1 4-4m0-2a6 6 0 1 0 6 6a6 6 0 0 0-6-6M5.394 6.813L6.81 5.399l3.505 3.506L8.9 10.319zM2 15.005h5v2H2zm3.394 10.193L8.9 21.692l1.414 1.414l-3.505 3.506zM15 25.005h2v5h-2zm6.687-1.9l1.414-1.414l3.506 3.506l-1.414 1.414zm3.313-8.1h5v2h-5zm-3.313-6.101l3.506-3.506l1.414 1.414l-3.506 3.506zM15 2.005h2v5h-2z"},null,-1),a1=[r1];function d1(t,s){return e(),o("svg",h1,[...a1])}const en={name:"carbon-sun",render:d1},u1={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},m1=n("path",{fill:"currentColor",d:"M13.503 5.414a15.076 15.076 0 0 0 11.593 18.194a11.113 11.113 0 0 1-7.975 3.39c-.138 0-.278.005-.418 0a11.094 11.094 0 0 1-3.2-21.584M14.98 3a1.002 1.002 0 0 0-.175.016a13.096 13.096 0 0 0 1.825 25.981c.164.006.328 0 .49 0a13.072 13.072 0 0 0 10.703-5.555a1.01 1.01 0 0 0-.783-1.565A13.08 13.08 0 0 1 15.89 4.38A1.015 1.015 0 0 0 14.98 3"},null,-1),v1=[m1];function $1(t,s){return e(),o("svg",u1,[...v1])}const on={name:"carbon-moon",render:$1},p1={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},g1=n("path",{fill:"currentColor",d:"M8 4v4H4V4Zm2-2H2v8h8Zm8 2v4h-4V4Zm2-2h-8v8h8Zm8 2v4h-4V4Zm2-2h-8v8h8ZM8 14v4H4v-4Zm2-2H2v8h8Zm8 2v4h-4v-4Zm2-2h-8v8h8Zm8 2v4h-4v-4Zm2-2h-8v8h8ZM8 24v4H4v-4Zm2-2H2v8h8Zm8 2v4h-4v-4Zm2-2h-8v8h8Zm8 2v4h-4v-4Zm2-2h-8v8h8Z"},null,-1),L1=[g1];function f1(t,s){return e(),o("svg",p1,[...L1])}const tn={name:"carbon-apps",render:f1},w1={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},x1=n("path",{fill:"currentColor",d:"m18 6l-1.43 1.393L24.15 15H4v2h20.15l-7.58 7.573L18 26l10-10z"},null,-1),M1=[x1];function z1(t,s){return e(),o("svg",w1,[...M1])}const sn={name:"carbon-arrow-right",render:z1},C1={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},H1=n("path",{fill:"currentColor",d:"m14 26l1.41-1.41L7.83 17H28v-2H7.83l7.58-7.59L14 6L4 16z"},null,-1),b1=[H1];function B1(t,s){return e(),o("svg",C1,[...b1])}const cn={name:"carbon-arrow-left",render:B1},V1={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},Z1=n("path",{fill:"currentColor",d:"M20 2v2h6.586L18 12.582L19.414 14L28 5.414V12h2V2zm-6 17.416L12.592 18L4 26.586V20H2v10h10v-2H5.414z"},null,-1),A1=[Z1];function k1(t,s){return e(),o("svg",V1,[...A1])}const _n={name:"carbon-maximize",render:k1},j1={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},q1=n("path",{fill:"currentColor",d:"M4 18v2h6.586L2 28.582L3.414 30L12 21.414V28h2V18zM30 3.416L28.592 2L20 10.586V4h-2v10h10v-2h-6.586z"},null,-1),y1=[q1];function E1(t,s){return e(),o("svg",j1,[...y1])}const ln={name:"carbon-minimize",render:E1},S1={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},D1=n("path",{fill:"currentColor",d:"m13 24l-9-9l1.414-1.414L13 21.171L26.586 7.586L28 9z"},null,-1),F1=[D1];function G1(t,s){return e(),o("svg",S1,[...F1])}const hn={name:"carbon-checkmark",render:G1},N1={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},I1=n("path",{fill:"currentColor",d:"M17.414 16L24 9.414L22.586 8L16 14.586L9.414 8L8 9.414L14.586 16L8 22.586L9.414 24L16 17.414L22.586 24L24 22.586z"},null,-1),J1=[I1];function K1(t,s){return e(),o("svg",N1,[...J1])}const rn={name:"carbon-close",render:K1},O1={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},P1=n("path",{fill:"currentColor",d:"M16 2C8.2 2 2 8.2 2 16s6.2 14 14 14s14-6.2 14-14S23.8 2 16 2m0 26C9.4 28 4 22.6 4 16S9.4 4 16 4s12 5.4 12 12s-5.4 12-12 12"},null,-1),Q1=n("path",{fill:"currentColor",d:"M21.4 23L16 17.6L10.6 23L9 21.4l5.4-5.4L9 10.6L10.6 9l5.4 5.4L21.4 9l1.6 1.6l-5.4 5.4l5.4 5.4z"},null,-1),R1=[P1,Q1];function T1(t,s){return e(),o("svg",O1,[...R1])}const an={name:"carbon-close-outline",render:T1},U1={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},W1=n("path",{fill:"currentColor",d:"M2 16A14 14 0 1 0 16 2A14 14 0 0 0 2 16m23.15 7.75L8.25 6.85a12 12 0 0 1 16.9 16.9M8.24 25.16a12 12 0 0 1-1.4-16.89l16.89 16.89a12 12 0 0 1-15.49 0"},null,-1),X1=[W1];function Y1(t,s){return e(),o("svg",U1,[...X1])}const dn={name:"carbon-error",render:Y1},n2={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},e2=n("path",{fill:"currentColor",d:"M28.59 13.31L30 11.9L20 2l-1.31 1.42l1.18 1.18l-11.49 9.72l-1.72-1.71L5.25 14l5.66 5.68L2 28.58L3.41 30l8.91-8.91L18 26.75l1.39-1.42l-1.71-1.71l9.72-11.49ZM16.26 22.2L9.8 15.74L21.29 6L26 10.71Z"},null,-1),o2=[e2];function t2(t,s){return e(),o("svg",n2,[...o2])}const un={name:"carbon-pin",render:t2},s2={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},c2=n("path",{fill:"currentColor",d:"M28.586 13.314L30 11.9L20 2l-1.314 1.415l1.186 1.186L8.38 14.322l-1.716-1.715L5.25 14l5.657 5.677L2 28.583L3.41 30l8.911-8.909L18 26.748l1.393-1.414l-1.716-1.716l9.724-11.49Z"},null,-1),_2=[c2];function l2(t,s){return e(),o("svg",s2,[..._2])}const mn={name:"carbon-pin-filled",render:l2},i2={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},h2=n("path",{fill:"currentColor",d:"M12 12h2v12h-2zm6 0h2v12h-2z"},null,-1),r2=n("path",{fill:"currentColor",d:"M4 6v2h2v20a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8h2V6zm4 22V8h16v20zm4-26h8v2h-8z"},null,-1),a2=[h2,r2];function d2(t,s){return e(),o("svg",i2,[...a2])}const vn={name:"carbon-trash-can",render:d2},u2={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},m2=n("path",{fill:"currentColor",d:"M12 10h12.185l-3.587-3.586L22 5l6 6l-6 6l-1.402-1.415L24.182 12H12a6 6 0 0 0 0 12h8v2h-8a8 8 0 0 1 0-16"},null,-1),v2=[m2];function $2(t,s){return e(),o("svg",u2,[...v2])}const $n={name:"carbon-redo",render:$2},p2={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},g2=n("path",{fill:"currentColor",d:"M20 10H7.815l3.587-3.586L10 5l-6 6l6 6l1.402-1.415L7.818 12H20a6 6 0 0 1 0 12h-8v2h8a8 8 0 0 0 0-16"},null,-1),L2=[g2];function f2(t,s){return e(),o("svg",p2,[...L2])}const pn={name:"carbon-undo",render:f2},w2={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},x2=n("path",{fill:"currentColor",d:"M7 27h23v2H7zm20.38-16.49l-7.93-7.92a2 2 0 0 0-2.83 0l-14 14a2 2 0 0 0 0 2.83L7.13 24h9.59l10.66-10.66a2 2 0 0 0 0-2.83M15.89 22H8l-4-4l6.31-6.31l7.93 7.92zm3.76-3.76l-7.92-7.93L18 4l8 7.93z"},null,-1),M2=[x2];function z2(t,s){return e(),o("svg",w2,[...M2])}const gn={name:"carbon-erase",render:z2},C2={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},H2=n("path",{fill:"currentColor",d:"M26 4H6a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h20a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2M6 26V6h20v20Z"},null,-1),b2=[H2];function B2(t,s){return e(),o("svg",C2,[...b2])}const Ln={name:"carbon-checkbox",render:B2},V2={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},Z2=n("path",{fill:"currentColor",d:"M16 2a14 14 0 1 0 14 14A14 14 0 0 0 16 2m0 26a12 12 0 1 1 12-12a12 12 0 0 1-12 12"},null,-1),A2=[Z2];function k2(t,s){return e(),o("svg",V2,[...A2])}const fn={name:"carbon-radio-button",render:k2},j2={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},q2=n("path",{fill:"currentColor",d:"M10 6v2h12.59L6 24.59L7.41 26L24 9.41V22h2V6z"},null,-1),y2=[q2];function E2(t,s){return e(),o("svg",j2,[...y2])}const wn={name:"carbon-arrow-up-right",render:E2},S2={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},D2=n("path",{fill:"currentColor",d:"M23 28a1 1 0 0 1-.71-.29l-6.13-6.14l-3.33 5a1 1 0 0 1-1 .44a1 1 0 0 1-.81-.7l-6-20A1 1 0 0 1 6.29 5l20 6a1 1 0 0 1 .7.81a1 1 0 0 1-.44 1l-5 3.33l6.14 6.13a1 1 0 0 1 0 1.42l-4 4A1 1 0 0 1 23 28m0-2.41L25.59 23l-7.16-7.15l5.25-3.5L7.49 7.49l4.86 16.19l3.5-5.25Z"},null,-1),F2=[D2];function G2(t,s){return e(),o("svg",S2,[...F2])}const xn={name:"carbon-cursor1",render:G2};export{pn as A,$n as B,vn as C,mn as D,un as E,dn as F,an as G,xn as _,O2 as a,K2 as b,J2 as c,I2 as d,hn as e,ln as f,_n as g,cn as h,sn as i,on as j,en as k,nn as l,Y2 as m,X2 as n,P2 as o,tn as p,W2 as q,U2 as r,T2 as s,R2 as t,Q2 as u,rn as v,wn as w,fn as x,Ln as y,gn as z};
import{d as xe,n as Vt,p as Wt,a as jt,o as I,c as be,w as qt,r as ne,b as se,e as K,F as Gt,f as me,g as je,h as Oe,i as Re,j as Yt,k as ge,l as ht,m as ut,q as Xt,s as Ut,t as Le,u as Kt,v as Zt,x as Qt}from"./vue-Dn3czbSS.js";const Jt=["top","right","bottom","left"],qe=["start","end"],Ge=Jt.reduce((e,t)=>e.concat(t,t+"-"+qe[0],t+"-"+qe[1]),[]),re=Math.min,U=Math.max,eo={left:"right",right:"left",bottom:"top",top:"bottom"},to={start:"end",end:"start"};function Me(e,t,o){return U(e,re(t,o))}function Z(e,t){return typeof e=="function"?e(t):e}function B(e){return e.split("-")[0]}function L(e){return e.split("-")[1]}function ft(e){return e==="x"?"y":"x"}function De(e){return e==="y"?"height":"width"}function ce(e){return["top","bottom"].includes(B(e))?"y":"x"}function Fe(e){return ft(ce(e))}function mt(e,t,o){o===void 0&&(o=!1);const i=L(e),n=Fe(e),s=De(n);let r=n==="x"?i===(o?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(r=ve(r)),[r,ve(r)]}function oo(e){const t=ve(e);return[we(e),t,we(t)]}function we(e){return e.replace(/start|end/g,t=>to[t])}function io(e,t,o){const i=["left","right"],n=["right","left"],s=["top","bottom"],r=["bottom","top"];switch(e){case"top":case"bottom":return o?t?n:i:t?i:n;case"left":case"right":return t?s:r;default:return[]}}function no(e,t,o,i){const n=L(e);let s=io(B(e),o==="start",i);return n&&(s=s.map(r=>r+"-"+n),t&&(s=s.concat(s.map(we)))),s}function ve(e){return e.replace(/left|right|bottom|top/g,t=>eo[t])}function so(e){return{top:0,right:0,bottom:0,left:0,...e}}function gt(e){return typeof e!="number"?so(e):{top:e,right:e,bottom:e,left:e}}function ee(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Ye(e,t,o){let{reference:i,floating:n}=e;const s=ce(t),r=Fe(t),a=De(r),l=B(t),d=s==="y",f=i.x+i.width/2-n.width/2,c=i.y+i.height/2-n.height/2,u=i[a]/2-n[a]/2;let p;switch(l){case"top":p={x:f,y:i.y-n.height};break;case"bottom":p={x:f,y:i.y+i.height};break;case"right":p={x:i.x+i.width,y:c};break;case"left":p={x:i.x-n.width,y:c};break;default:p={x:i.x,y:i.y}}switch(L(t)){case"start":p[r]-=u*(o&&d?-1:1);break;case"end":p[r]+=u*(o&&d?-1:1);break}return p}const ro=async(e,t,o)=>{const{placement:i="bottom",strategy:n="absolute",middleware:s=[],platform:r}=o,a=s.filter(Boolean),l=await(r.isRTL==null?void 0:r.isRTL(t));let d=await r.getElementRects({reference:e,floating:t,strategy:n}),{x:f,y:c}=Ye(d,i,l),u=i,p={},h=0;for(let v=0;v<a.length;v++){const{name:y,fn:m}=a[v],{x:g,y:$,data:x,reset:_}=await m({x:f,y:c,initialPlacement:i,placement:u,strategy:n,middlewareData:p,rects:d,platform:r,elements:{reference:e,floating:t}});f=g??f,c=$??c,p={...p,[y]:{...p[y],...x}},_&&h<=50&&(h++,typeof _=="object"&&(_.placement&&(u=_.placement),_.rects&&(d=_.rects===!0?await r.getElementRects({reference:e,floating:t,strategy:n}):_.rects),{x:f,y:c}=Ye(d,u,l)),v=-1)}return{x:f,y:c,placement:u,strategy:n,middlewareData:p}};async function Te(e,t){var o;t===void 0&&(t={});const{x:i,y:n,platform:s,rects:r,elements:a,strategy:l}=e,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:c="floating",altBoundary:u=!1,padding:p=0}=Z(t,e),h=gt(p),y=a[u?c==="floating"?"reference":"floating":c],m=ee(await s.getClippingRect({element:(o=await(s.isElement==null?void 0:s.isElement(y)))==null||o?y:y.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:d,rootBoundary:f,strategy:l})),g=c==="floating"?{...r.floating,x:i,y:n}:r.reference,$=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),x=await(s.isElement==null?void 0:s.isElement($))?await(s.getScale==null?void 0:s.getScale($))||{x:1,y:1}:{x:1,y:1},_=ee(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:g,offsetParent:$,strategy:l}):g);return{top:(m.top-_.top+h.top)/x.y,bottom:(_.bottom-m.bottom+h.bottom)/x.y,left:(m.left-_.left+h.left)/x.x,right:(_.right-m.right+h.right)/x.x}}const ao=e=>({name:"arrow",options:e,async fn(t){const{x:o,y:i,placement:n,rects:s,platform:r,elements:a,middlewareData:l}=t,{element:d,padding:f=0}=Z(e,t)||{};if(d==null)return{};const c=gt(f),u={x:o,y:i},p=Fe(n),h=De(p),v=await r.getDimensions(d),y=p==="y",m=y?"top":"left",g=y?"bottom":"right",$=y?"clientHeight":"clientWidth",x=s.reference[h]+s.reference[p]-u[p]-s.floating[h],_=u[p]-s.reference[p],b=await(r.getOffsetParent==null?void 0:r.getOffsetParent(d));let T=b?b[$]:0;(!T||!await(r.isElement==null?void 0:r.isElement(b)))&&(T=a.floating[$]||s.floating[h]);const O=x/2-_/2,N=T/2-v[h]/2-1,S=re(c[m],N),k=re(c[g],N),P=S,Y=T-v[h]-k,C=T/2-v[h]/2+O,H=Me(P,C,Y),E=!l.arrow&&L(n)!=null&&C!==H&&s.reference[h]/2-(C<P?S:k)-v[h]/2<0,F=E?C<P?C-P:C-Y:0;return{[p]:u[p]+F,data:{[p]:H,centerOffset:C-H-F,...E&&{alignmentOffset:F}},reset:E}}});function lo(e,t,o){return(e?[...o.filter(n=>L(n)===e),...o.filter(n=>L(n)!==e)]:o.filter(n=>B(n)===n)).filter(n=>e?L(n)===e||(t?we(n)!==n:!1):!0)}const po=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var o,i,n;const{rects:s,middlewareData:r,placement:a,platform:l,elements:d}=t,{crossAxis:f=!1,alignment:c,allowedPlacements:u=Ge,autoAlignment:p=!0,...h}=Z(e,t),v=c!==void 0||u===Ge?lo(c||null,p,u):u,y=await Te(t,h),m=((o=r.autoPlacement)==null?void 0:o.index)||0,g=v[m];if(g==null)return{};const $=mt(g,s,await(l.isRTL==null?void 0:l.isRTL(d.floating)));if(a!==g)return{reset:{placement:v[0]}};const x=[y[B(g)],y[$[0]],y[$[1]]],_=[...((i=r.autoPlacement)==null?void 0:i.overflows)||[],{placement:g,overflows:x}],b=v[m+1];if(b)return{data:{index:m+1,overflows:_},reset:{placement:b}};const T=_.map(S=>{const k=L(S.placement);return[S.placement,k&&f?S.overflows.slice(0,2).reduce((P,Y)=>P+Y,0):S.overflows[0],S.overflows]}).sort((S,k)=>S[1]-k[1]),N=((n=T.filter(S=>S[2].slice(0,L(S[0])?2:3).every(k=>k<=0))[0])==null?void 0:n[0])||T[0][0];return N!==a?{data:{index:m+1,overflows:_},reset:{placement:N}}:{}}}},co=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var o,i;const{placement:n,middlewareData:s,rects:r,initialPlacement:a,platform:l,elements:d}=t,{mainAxis:f=!0,crossAxis:c=!0,fallbackPlacements:u,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:v=!0,...y}=Z(e,t);if((o=s.arrow)!=null&&o.alignmentOffset)return{};const m=B(n),g=B(a)===a,$=await(l.isRTL==null?void 0:l.isRTL(d.floating)),x=u||(g||!v?[ve(a)]:oo(a));!u&&h!=="none"&&x.push(...no(a,v,h,$));const _=[a,...x],b=await Te(t,y),T=[];let O=((i=s.flip)==null?void 0:i.overflows)||[];if(f&&T.push(b[m]),c){const P=mt(n,r,$);T.push(b[P[0]],b[P[1]])}if(O=[...O,{placement:n,overflows:T}],!T.every(P=>P<=0)){var N,S;const P=(((N=s.flip)==null?void 0:N.index)||0)+1,Y=_[P];if(Y)return{data:{index:P,overflows:O},reset:{placement:Y}};let C=(S=O.filter(H=>H.overflows[0]<=0).sort((H,E)=>H.overflows[1]-E.overflows[1])[0])==null?void 0:S.placement;if(!C)switch(p){case"bestFit":{var k;const H=(k=O.map(E=>[E.placement,E.overflows.filter(F=>F>0).reduce((F,It)=>F+It,0)]).sort((E,F)=>E[1]-F[1])[0])==null?void 0:k[0];H&&(C=H);break}case"initialPlacement":C=a;break}if(n!==C)return{reset:{placement:C}}}return{}}}};async function ho(e,t){const{placement:o,platform:i,elements:n}=e,s=await(i.isRTL==null?void 0:i.isRTL(n.floating)),r=B(o),a=L(o),l=ce(o)==="y",d=["left","top"].includes(r)?-1:1,f=s&&l?-1:1,c=Z(t,e);let{mainAxis:u,crossAxis:p,alignmentAxis:h}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...c};return a&&typeof h=="number"&&(p=a==="end"?h*-1:h),l?{x:p*f,y:u*d}:{x:u*d,y:p*f}}const uo=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var o,i;const{x:n,y:s,placement:r,middlewareData:a}=t,l=await ho(t,e);return r===((o=a.offset)==null?void 0:o.placement)&&(i=a.arrow)!=null&&i.alignmentOffset?{}:{x:n+l.x,y:s+l.y,data:{...l,placement:r}}}}},fo=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:o,y:i,placement:n}=t,{mainAxis:s=!0,crossAxis:r=!1,limiter:a={fn:y=>{let{x:m,y:g}=y;return{x:m,y:g}}},...l}=Z(e,t),d={x:o,y:i},f=await Te(t,l),c=ce(B(n)),u=ft(c);let p=d[u],h=d[c];if(s){const y=u==="y"?"top":"left",m=u==="y"?"bottom":"right",g=p+f[y],$=p-f[m];p=Me(g,p,$)}if(r){const y=c==="y"?"top":"left",m=c==="y"?"bottom":"right",g=h+f[y],$=h-f[m];h=Me(g,h,$)}const v=a.fn({...t,[u]:p,[c]:h});return{...v,data:{x:v.x-o,y:v.y-i}}}}},mo=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:o,rects:i,platform:n,elements:s}=t,{apply:r=()=>{},...a}=Z(e,t),l=await Te(t,a),d=B(o),f=L(o),c=ce(o)==="y",{width:u,height:p}=i.floating;let h,v;d==="top"||d==="bottom"?(h=d,v=f===(await(n.isRTL==null?void 0:n.isRTL(s.floating))?"start":"end")?"left":"right"):(v=d,h=f==="end"?"top":"bottom");const y=p-l[h],m=u-l[v],g=!t.middlewareData.shift;let $=y,x=m;if(c){const b=u-l.left-l.right;x=f||g?re(m,b):b}else{const b=p-l.top-l.bottom;$=f||g?re(y,b):b}if(g&&!f){const b=U(l.left,0),T=U(l.right,0),O=U(l.top,0),N=U(l.bottom,0);c?x=u-2*(b!==0||T!==0?b+T:U(l.left,l.right)):$=p-2*(O!==0||N!==0?O+N:U(l.top,l.bottom))}await r({...t,availableWidth:x,availableHeight:$});const _=await n.getDimensions(s.floating);return u!==_.width||p!==_.height?{reset:{rects:!0}}:{}}}};function A(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function R(e){return A(e).getComputedStyle(e)}const Xe=Math.min,te=Math.max,ye=Math.round;function wt(e){const t=R(e);let o=parseFloat(t.width),i=parseFloat(t.height);const n=e.offsetWidth,s=e.offsetHeight,r=ye(o)!==n||ye(i)!==s;return r&&(o=n,i=s),{width:o,height:i,fallback:r}}function j(e){return yt(e)?(e.nodeName||"").toLowerCase():""}let he;function vt(){if(he)return he;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(he=e.brands.map(t=>t.brand+"/"+t.version).join(" "),he):navigator.userAgent}function D(e){return e instanceof A(e).HTMLElement}function q(e){return e instanceof A(e).Element}function yt(e){return e instanceof A(e).Node}function Ue(e){if(typeof ShadowRoot>"u")return!1;const t=A(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Se(e){const{overflow:t,overflowX:o,overflowY:i,display:n}=R(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+o)&&!["inline","contents"].includes(n)}function go(e){return["table","td","th"].includes(j(e))}function Ie(e){const t=/firefox/i.test(vt()),o=R(e),i=o.backdropFilter||o.WebkitBackdropFilter;return o.transform!=="none"||o.perspective!=="none"||(i?i!=="none":!1)||t&&o.willChange==="filter"||t&&(o.filter?o.filter!=="none":!1)||["transform","perspective"].some(n=>o.willChange.includes(n))||["paint","layout","strict","content"].some(n=>{const s=o.contain;return s!=null?s.includes(n):!1})}function $t(){return!/^((?!chrome|android).)*safari/i.test(vt())}function Ve(e){return["html","body","#document"].includes(j(e))}function _t(e){return q(e)?e:e.contextElement}const xt={x:1,y:1};function Q(e){const t=_t(e);if(!D(t))return xt;const o=t.getBoundingClientRect(),{width:i,height:n,fallback:s}=wt(t);let r=(s?ye(o.width):o.width)/i,a=(s?ye(o.height):o.height)/n;return(!r||!Number.isFinite(r))&&(r=1),(!a||!Number.isFinite(a))&&(a=1),{x:r,y:a}}function ae(e,t,o,i){var n,s;t===void 0&&(t=!1),o===void 0&&(o=!1);const r=e.getBoundingClientRect(),a=_t(e);let l=xt;t&&(i?q(i)&&(l=Q(i)):l=Q(e));const d=a?A(a):window,f=!$t()&&o;let c=(r.left+(f&&((n=d.visualViewport)==null?void 0:n.offsetLeft)||0))/l.x,u=(r.top+(f&&((s=d.visualViewport)==null?void 0:s.offsetTop)||0))/l.y,p=r.width/l.x,h=r.height/l.y;if(a){const v=A(a),y=i&&q(i)?A(i):i;let m=v.frameElement;for(;m&&i&&y!==v;){const g=Q(m),$=m.getBoundingClientRect(),x=getComputedStyle(m);$.x+=(m.clientLeft+parseFloat(x.paddingLeft))*g.x,$.y+=(m.clientTop+parseFloat(x.paddingTop))*g.y,c*=g.x,u*=g.y,p*=g.x,h*=g.y,c+=$.x,u+=$.y,m=A(m).frameElement}}return{width:p,height:h,top:u,right:c+p,bottom:u+h,left:c,x:c,y:u}}function G(e){return((yt(e)?e.ownerDocument:e.document)||window.document).documentElement}function Pe(e){return q(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function wo(e){let{rect:t,offsetParent:o,strategy:i}=e;const n=D(o),s=G(o);if(o===s)return t;let r={scrollLeft:0,scrollTop:0},a={x:1,y:1};const l={x:0,y:0};if((n||!n&&i!=="fixed")&&((j(o)!=="body"||Se(s))&&(r=Pe(o)),D(o))){const d=ae(o);a=Q(o),l.x=d.x+o.clientLeft,l.y=d.y+o.clientTop}return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-r.scrollLeft*a.x+l.x,y:t.y*a.y-r.scrollTop*a.y+l.y}}function bt(e){return ae(G(e)).left+Pe(e).scrollLeft}function vo(e){const t=G(e),o=Pe(e),i=e.ownerDocument.body,n=te(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),s=te(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let r=-o.scrollLeft+bt(e);const a=-o.scrollTop;return R(i).direction==="rtl"&&(r+=te(t.clientWidth,i.clientWidth)-n),{width:n,height:s,x:r,y:a}}function le(e){if(j(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ue(e)&&e.host||G(e);return Ue(t)?t.host:t}function Tt(e){const t=le(e);return Ve(t)?t.ownerDocument.body:D(t)&&Se(t)?t:Tt(t)}function $e(e,t){var o;t===void 0&&(t=[]);const i=Tt(e),n=i===((o=e.ownerDocument)==null?void 0:o.body),s=A(i);return n?t.concat(s,s.visualViewport||[],Se(i)?i:[]):t.concat(i,$e(i))}function yo(e,t){const o=A(e),i=G(e),n=o.visualViewport;let s=i.clientWidth,r=i.clientHeight,a=0,l=0;if(n){s=n.width,r=n.height;const d=$t();(d||!d&&t==="fixed")&&(a=n.offsetLeft,l=n.offsetTop)}return{width:s,height:r,x:a,y:l}}function $o(e,t){const o=ae(e,!0,t==="fixed"),i=o.top+e.clientTop,n=o.left+e.clientLeft,s=D(e)?Q(e):{x:1,y:1},r=e.clientWidth*s.x,a=e.clientHeight*s.y,l=n*s.x,d=i*s.y;return{width:r,height:a,x:l,y:d}}function Ke(e,t,o){return t==="viewport"?ee(yo(e,o)):q(t)?ee($o(t,o)):ee(vo(G(e)))}function _o(e,t){const o=t.get(e);if(o)return o;let i=$e(e).filter(a=>q(a)&&j(a)!=="body"),n=null;const s=R(e).position==="fixed";let r=s?le(e):e;for(;q(r)&&!Ve(r);){const a=R(r),l=Ie(r);(s?!l&&!n:!l&&a.position==="static"&&!!n&&["absolute","fixed"].includes(n.position))?i=i.filter(f=>f!==r):n=a,r=le(r)}return t.set(e,i),i}function xo(e){let{element:t,boundary:o,rootBoundary:i,strategy:n}=e;const r=[...o==="clippingAncestors"?_o(t,this._c):[].concat(o),i],a=r[0],l=r.reduce((d,f)=>{const c=Ke(t,f,n);return d.top=te(c.top,d.top),d.right=Xe(c.right,d.right),d.bottom=Xe(c.bottom,d.bottom),d.left=te(c.left,d.left),d},Ke(t,a,n));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function bo(e){return D(e)?wt(e):e.getBoundingClientRect()}function Ze(e){return!D(e)||R(e).position==="fixed"?null:e.offsetParent}function To(e){let t=le(e);for(;D(t)&&!Ve(t);){if(Ie(t))return t;t=le(t)}return null}function Qe(e){const t=A(e);let o=Ze(e);for(;o&&go(o)&&R(o).position==="static";)o=Ze(o);return o&&(j(o)==="html"||j(o)==="body"&&R(o).position==="static"&&!Ie(o))?t:o||To(e)||t}function So(e,t,o){const i=D(t),n=G(t),s=ae(e,!0,o==="fixed",t);let r={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(i||!i&&o!=="fixed")if((j(t)!=="body"||Se(n))&&(r=Pe(t)),D(t)){const l=ae(t,!0);a.x=l.x+t.clientLeft,a.y=l.y+t.clientTop}else n&&(a.x=bt(n));return{x:s.left+r.scrollLeft-a.x,y:s.top+r.scrollTop-a.y,width:s.width,height:s.height}}const Po={getClippingRect:xo,convertOffsetParentRelativeRectToViewportRelativeRect:wo,isElement:q,getDimensions:bo,getOffsetParent:Qe,getDocumentElement:G,getScale:Q,async getElementRects(e){let{reference:t,floating:o,strategy:i}=e;const n=this.getOffsetParent||Qe,s=this.getDimensions;return{reference:So(t,await n(o),i),floating:{x:0,y:0,...await s(o)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>R(e).direction==="rtl"},Co=(e,t,o)=>{const i=new Map,n={platform:Po,...o},s={...n.platform,_c:i};return ro(e,t,{...n,platform:s})};function St(e,t){for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&(typeof t[o]=="object"&&e[o]?St(e[o],t[o]):e[o]=t[o])}const M={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:150,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,autoHideOnMousedown:!1,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:e=>[...e,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover"],delay:{show:0,hide:400}}}};function de(e,t){let o=M.themes[e]||{},i;do i=o[t],typeof i>"u"?o.$extend?o=M.themes[o.$extend]||{}:(o=null,i=M[t]):o=null;while(o);return i}function Ao(e){const t=[e];let o=M.themes[e]||{};do o.$extend&&!o.$resetCss?(t.push(o.$extend),o=M.themes[o.$extend]||{}):o=null;while(o);return t.map(i=>`v-popper--theme-${i}`)}function Je(e){const t=[e];let o=M.themes[e]||{};do o.$extend?(t.push(o.$extend),o=M.themes[o.$extend]||{}):o=null;while(o);return t}let J=!1;if(typeof window<"u"){J=!1;try{const e=Object.defineProperty({},"passive",{get(){J=!0}});window.addEventListener("test",null,e)}catch{}}let Pt=!1;typeof window<"u"&&typeof navigator<"u"&&(Pt=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const Ct=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),et={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},tt={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function ot(e,t){const o=e.indexOf(t);o!==-1&&e.splice(o,1)}function Ne(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const z=[];let X=null;const it={};function nt(e){let t=it[e];return t||(t=it[e]=[]),t}let He=function(){};typeof window<"u"&&(He=window.Element);function w(e){return function(t){return de(t.theme,e)}}const ke="__floating-vue__popper",At=()=>xe({name:"VPopper",provide(){return{[ke]:{parentPopper:this}}},inject:{[ke]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:w("disabled")},positioningDisabled:{type:Boolean,default:w("positioningDisabled")},placement:{type:String,default:w("placement"),validator:e=>Ct.includes(e)},delay:{type:[String,Number,Object],default:w("delay")},distance:{type:[Number,String],default:w("distance")},skidding:{type:[Number,String],default:w("skidding")},triggers:{type:Array,default:w("triggers")},showTriggers:{type:[Array,Function],default:w("showTriggers")},hideTriggers:{type:[Array,Function],default:w("hideTriggers")},popperTriggers:{type:Array,default:w("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:w("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:w("popperHideTriggers")},container:{type:[String,Object,He,Boolean],default:w("container")},boundary:{type:[String,He],default:w("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:w("strategy")},autoHide:{type:[Boolean,Function],default:w("autoHide")},handleResize:{type:Boolean,default:w("handleResize")},instantMove:{type:Boolean,default:w("instantMove")},eagerMount:{type:Boolean,default:w("eagerMount")},popperClass:{type:[String,Array,Object],default:w("popperClass")},computeTransformOrigin:{type:Boolean,default:w("computeTransformOrigin")},autoMinSize:{type:Boolean,default:w("autoMinSize")},autoSize:{type:[Boolean,String],default:w("autoSize")},autoMaxSize:{type:Boolean,default:w("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:w("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:w("preventOverflow")},overflowPadding:{type:[Number,String],default:w("overflowPadding")},arrowPadding:{type:[Number,String],default:w("arrowPadding")},arrowOverflow:{type:Boolean,default:w("arrowOverflow")},flip:{type:Boolean,default:w("flip")},shift:{type:Boolean,default:w("shift")},shiftCrossAxis:{type:Boolean,default:w("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:w("noAutoFocus")},disposeTimeout:{type:Number,default:w("disposeTimeout")}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},randomId:`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join("_")}`,shownChildren:new Set,lastAutoHide:!0,pendingHide:!1,containsGlobalTarget:!1,isDisposed:!0,mouseDownContains:!1}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var e;return(e=this[ke])==null?void 0:e.parentPopper},hasPopperShowTriggerHover(){var e,t;return((e=this.popperTriggers)==null?void 0:e.includes("hover"))||((t=this.popperShowTriggers)==null?void 0:t.includes("hover"))}},watch:{shown:"$_autoShowHide",disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},triggers:{handler:"$_refreshListeners",deep:!0},positioningDisabled:"$_refreshListeners",...["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((e,t)=>(e[t]="$_computePosition",e),{})},created(){this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:e=null,skipDelay:t=!1,force:o=!1}={}){var i,n;(i=this.parentPopper)!=null&&i.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(o||!this.disabled)&&(((n=this.parentPopper)==null?void 0:n.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:e=null,skipDelay:t=!1}={}){var o;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null)},1e3));return}((o=this.parentPopper)==null?void 0:o.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.pendingHide=!1,this.$_scheduleHide(e,t),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var e;this.isDisposed&&(this.isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=((e=this.referenceNode)==null?void 0:e.call(this))??this.$el,this.$_targetNodes=this.targetNodes().filter(t=>t.nodeType===t.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.isDisposed||(this.isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){if(this.isDisposed||this.positioningDisabled)return;const e={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e.middleware.push(uo({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(po({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(fo({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(co({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(ao({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:"arrowOverflow",fn:({placement:i,rects:n,middlewareData:s})=>{let r;const{centerOffset:a}=s.arrow;return i.startsWith("top")||i.startsWith("bottom")?r=Math.abs(a)>n.reference.width/2:r=Math.abs(a)>n.reference.height/2,{data:{overflow:r}}}}),this.autoMinSize||this.autoSize){const i=this.autoSize?this.autoSize:this.autoMinSize?"min":null;e.middleware.push({name:"autoSize",fn:({rects:n,placement:s,middlewareData:r})=>{var a;if((a=r.autoSize)!=null&&a.skip)return{};let l,d;return s.startsWith("top")||s.startsWith("bottom")?l=n.reference.width:d=n.reference.height,this.$_innerNode.style[i==="min"?"minWidth":i==="max"?"maxWidth":"width"]=l!=null?`${l}px`:null,this.$_innerNode.style[i==="min"?"minHeight":i==="max"?"maxHeight":"height"]=d!=null?`${d}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,e.middleware.push(mo({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:i,availableHeight:n})=>{this.$_innerNode.style.maxWidth=i!=null?`${i}px`:null,this.$_innerNode.style.maxHeight=n!=null?`${n}px`:null}})));const o=await Co(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:o.x,y:o.y,placement:o.placement,strategy:o.strategy,arrow:{...o.middlewareData.arrow,...o.middlewareData.arrowOverflow}})},$_scheduleShow(e,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),X&&this.instantMove&&X.instantMove&&X!==this.parentPopper){X.$_applyHide(!0),this.$_applyShow(!0);return}t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(e,t=!1){if(this.shownChildren.size>0){this.pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(X=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(e){const t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await Ne(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...$e(this.$_referenceNode),...$e(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),o=this.$_popperNode.querySelector(".v-popper__wrapper"),i=o.parentNode.getBoundingClientRect(),n=t.x+t.width/2-(i.left+o.offsetLeft),s=t.y+t.height/2-(i.top+o.offsetTop);this.result.transformOrigin=`${n}px ${s}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let o=0;o<z.length;o++)t=z[o],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}z.push(this),document.body.classList.add("v-popper--some-open");for(const t of Je(this.theme))nt(t).push(this),document.body.classList.add(`v-popper--some-open--${t}`);this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await Ne(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus()},async $_applyHide(e=!1){if(this.shownChildren.size>0){this.pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,ot(z,this),z.length===0&&document.body.classList.remove("v-popper--some-open");for(const o of Je(this.theme)){const i=nt(o);ot(i,this),i.length===0&&document.body.classList.remove(`v-popper--some-open--${o}`)}X===this&&(X=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=this.disposeTimeout;t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await Ne(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.isDisposed)return;let e=this.container;if(typeof e=="string"?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw new Error("No container for popover: "+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const e=o=>{this.isShown&&!this.$_hideInProgress||(o.usedByTooltip=!0,!this.$_preventShow&&this.show({event:o}))};this.$_registerTriggerListeners(this.$_targetNodes,et,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],et,this.popperTriggers,this.popperShowTriggers,e);const t=o=>{o.usedByTooltip||this.hide({event:o})};this.$_registerTriggerListeners(this.$_targetNodes,tt,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],tt,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,o){this.$_events.push({targetNodes:e,eventType:t,handler:o}),e.forEach(i=>i.addEventListener(t,o,J?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,o,i,n){let s=o;i!=null&&(s=typeof i=="function"?i(s):i),s.forEach(r=>{const a=t[r];a&&this.$_registerEventListeners(e,a,n)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(o=>{const{targetNodes:i,eventType:n,handler:s}=o;!e||e===n?i.forEach(r=>r.removeEventListener(n,s)):t.push(o)}),this.$_events=t},$_refreshListeners(){this.isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(const o of this.$_targetNodes){const i=o.getAttribute(e);i&&(o.removeAttribute(e),o.setAttribute(t,i))}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const o in e){const i=e[o];i==null?t.removeAttribute(o):t.setAttribute(o,i)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){const e=this.$_referenceNode.getBoundingClientRect();if(oe>=e.left&&oe<=e.right&&ie>=e.top&&ie<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),o=oe-V,i=ie-W,n=t.left+t.width/2-V+(t.top+t.height/2)-W+t.width+t.height,s=V+o*n,r=W+i*n;return ue(V,W,s,r,t.left,t.top,t.left,t.bottom)||ue(V,W,s,r,t.left,t.top,t.right,t.top)||ue(V,W,s,r,t.right,t.top,t.right,t.bottom)||ue(V,W,s,r,t.left,t.bottom,t.right,t.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});if(typeof document<"u"&&typeof window<"u"){if(Pt){const e=J?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>st(t,!0),e),document.addEventListener("touchend",t=>rt(t,!0),e)}else window.addEventListener("mousedown",e=>st(e,!1),!0),window.addEventListener("click",e=>rt(e,!1),!0);window.addEventListener("resize",Nt)}function st(e,t){if(M.autoHideOnMousedown)Ot(e,t);else for(let o=0;o<z.length;o++){const i=z[o];try{i.mouseDownContains=i.popperNode().contains(e.target)}catch{}}}function rt(e,t){M.autoHideOnMousedown||Ot(e,t)}function Ot(e,t){const o={};for(let i=z.length-1;i>=0;i--){const n=z[i];try{const s=n.containsGlobalTarget=n.mouseDownContains||n.popperNode().contains(e.target);n.pendingHide=!1,requestAnimationFrame(()=>{if(n.pendingHide=!1,!o[n.randomId]&&at(n,s,e)){if(n.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&s){let a=n.parentPopper;for(;a;)o[a.randomId]=!0,a=a.parentPopper;return}let r=n.parentPopper;for(;r&&at(r,r.containsGlobalTarget,e);)r.$_handleGlobalClose(e,t),r=r.parentPopper}})}catch{}}}function at(e,t,o){return o.closeAllPopover||o.closePopover&&t||Oo(e,o)&&!t}function Oo(e,t){if(typeof e.autoHide=="function"){const o=e.autoHide(t);return e.lastAutoHide=o,o}return e.autoHide}function Nt(){for(let e=0;e<z.length;e++)z[e].$_computePosition()}let V=0,W=0,oe=0,ie=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{V=oe,W=ie,oe=e.clientX,ie=e.clientY},J?{passive:!0}:void 0);function ue(e,t,o,i,n,s,r,a){const l=((r-n)*(t-s)-(a-s)*(e-n))/((a-s)*(o-e)-(r-n)*(i-t)),d=((o-e)*(t-s)-(i-t)*(e-n))/((a-s)*(o-e)-(r-n)*(i-t));return l>=0&&l<=1&&d>=0&&d<=1}const No={extends:At()},Ce=(e,t)=>{const o=e.__vccOpts||e;for(const[i,n]of t)o[i]=n;return o};function ko(e,t,o,i,n,s){return I(),se("div",{ref:"reference",class:Re(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[me(e.$slots,"default",Xt(Ut(e.slotData)))],2)}const zo=Ce(No,[["render",ko]]);function Lo(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var o=e.indexOf("Trident/");if(o>0){var i=e.indexOf("rv:");return parseInt(e.substring(i+3,e.indexOf(".",i)),10)}var n=e.indexOf("Edge/");return n>0?parseInt(e.substring(n+5,e.indexOf(".",n)),10):-1}let fe;function Ee(){Ee.init||(Ee.init=!0,fe=Lo()!==-1)}var Ae={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Ee(),Vt(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",fe&&this.$el.appendChild(e),e.data="about:blank",fe||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!fe&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const Mo=qt();Wt("data-v-b329ee4c");const Ho={class:"resize-observer",tabindex:"-1"};jt();const Eo=Mo((e,t,o,i,n,s)=>(I(),be("div",Ho)));Ae.render=Eo;Ae.__scopeId="data-v-b329ee4c";Ae.__file="src/components/ResizeObserver.vue";const kt=(e="theme")=>({computed:{themeClass(){return Ao(this[e])}}}),Bo=xe({name:"VPopperContent",components:{ResizeObserver:Ae},mixins:[kt()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(e){return e!=null&&!isNaN(e)?`${e}px`:null}}}),Ro=["id","aria-hidden","tabindex","data-popper-placement"],Do={ref:"inner",class:"v-popper__inner"},Fo=K("div",{class:"v-popper__arrow-outer"},null,-1),Io=K("div",{class:"v-popper__arrow-inner"},null,-1),Vo=[Fo,Io];function Wo(e,t,o,i,n,s){const r=ne("ResizeObserver");return I(),se("div",{id:e.popperId,ref:"popover",class:Re(["v-popper__popper",[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style:Oe(e.result?{position:e.result.strategy,transform:`translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`}:void 0),"aria-hidden":e.shown?"false":"true",tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0,onKeyup:t[2]||(t[2]=Yt(a=>e.autoHide&&e.$emit("hide"),["esc"]))},[K("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=a=>e.autoHide&&e.$emit("hide"))}),K("div",{class:"v-popper__wrapper",style:Oe(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[K("div",Do,[e.mounted?(I(),se(Gt,{key:0},[K("div",null,[me(e.$slots,"default")]),e.handleResize?(I(),be(r,{key:0,onNotify:t[1]||(t[1]=a=>e.$emit("resize",a))})):je("",!0)],64)):je("",!0)],512),K("div",{ref:"arrow",class:"v-popper__arrow-container",style:Oe(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},Vo,4)],4)],46,Ro)}const zt=Ce(Bo,[["render",Wo]]),Lt={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}};let Be=function(){};typeof window<"u"&&(Be=window.Element);const jo=xe({name:"VPopperWrapper",components:{Popper:zo,PopperContent:zt},mixins:[Lt,kt("finalTheme")],props:{theme:{type:String,default:null},referenceNode:{type:Function,default:null},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:void 0},positioningDisabled:{type:Boolean,default:void 0},placement:{type:String,default:void 0},delay:{type:[String,Number,Object],default:void 0},distance:{type:[Number,String],default:void 0},skidding:{type:[Number,String],default:void 0},triggers:{type:Array,default:void 0},showTriggers:{type:[Array,Function],default:void 0},hideTriggers:{type:[Array,Function],default:void 0},popperTriggers:{type:Array,default:void 0},popperShowTriggers:{type:[Array,Function],default:void 0},popperHideTriggers:{type:[Array,Function],default:void 0},container:{type:[String,Object,Be,Boolean],default:void 0},boundary:{type:[String,Be],default:void 0},strategy:{type:String,default:void 0},autoHide:{type:[Boolean,Function],default:void 0},handleResize:{type:Boolean,default:void 0},instantMove:{type:Boolean,default:void 0},eagerMount:{type:Boolean,default:void 0},popperClass:{type:[String,Array,Object],default:void 0},computeTransformOrigin:{type:Boolean,default:void 0},autoMinSize:{type:Boolean,default:void 0},autoSize:{type:[Boolean,String],default:void 0},autoMaxSize:{type:Boolean,default:void 0},autoBoundaryMaxSize:{type:Boolean,default:void 0},preventOverflow:{type:Boolean,default:void 0},overflowPadding:{type:[Number,String],default:void 0},arrowPadding:{type:[Number,String],default:void 0},arrowOverflow:{type:Boolean,default:void 0},flip:{type:Boolean,default:void 0},shift:{type:Boolean,default:void 0},shiftCrossAxis:{type:Boolean,default:void 0},noAutoFocus:{type:Boolean,default:void 0},disposeTimeout:{type:Number,default:void 0}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(e=>e!==this.$refs.popperContent.$el)}}});function qo(e,t,o,i,n,s){const r=ne("PopperContent"),a=ne("Popper");return I(),be(a,ut({ref:"popper"},e.$props,{theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:[e.themeClass],onShow:t[0]||(t[0]=()=>e.$emit("show")),onHide:t[1]||(t[1]=()=>e.$emit("hide")),"onUpdate:shown":t[2]||(t[2]=l=>e.$emit("update:shown",l)),onApplyShow:t[3]||(t[3]=()=>e.$emit("apply-show")),onApplyHide:t[4]||(t[4]=()=>e.$emit("apply-hide")),onCloseGroup:t[5]||(t[5]=()=>e.$emit("close-group")),onCloseDirective:t[6]||(t[6]=()=>e.$emit("close-directive")),onAutoHide:t[7]||(t[7]=()=>e.$emit("auto-hide")),onResize:t[8]||(t[8]=()=>e.$emit("resize"))}),{default:ge(({popperId:l,isShown:d,shouldMountContent:f,skipTransition:c,autoHide:u,show:p,hide:h,handleResize:v,onResize:y,classes:m,result:g})=>[me(e.$slots,"default",{shown:d,show:p,hide:h}),ht(r,{ref:"popperContent","popper-id":l,theme:e.finalTheme,shown:d,mounted:f,"skip-transition":c,"auto-hide":u,"handle-resize":v,classes:m,result:g,onHide:h,onResize:y},{default:ge(()=>[me(e.$slots,"popper",{shown:d,hide:h})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},16,["theme","target-nodes","popper-node","class"])}const We=Ce(jo,[["render",qo]]),Go={...We,name:"VDropdown",vPopperTheme:"dropdown"},Mt={...We,name:"VMenu",vPopperTheme:"menu"},Yo={...We,name:"VTooltip",vPopperTheme:"tooltip"},Xo=xe({name:"VTooltipDirective",components:{Popper:At(),PopperContent:zt},mixins:[Lt],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>de(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>de(e.theme,"loadingContent")},targetNodes:{type:Function,required:!0}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content=="function"},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(e){if(typeof this.content=="function"&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const t=++this.$_fetchId,o=this.content(this);o.then?o.then(i=>this.onResult(t,i)):this.onResult(t,o)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),Uo=["innerHTML"],Ko=["textContent"];function Zo(e,t,o,i,n,s){const r=ne("PopperContent"),a=ne("Popper");return I(),be(a,ut({ref:"popper"},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:ge(({popperId:l,isShown:d,shouldMountContent:f,skipTransition:c,autoHide:u,hide:p,handleResize:h,onResize:v,classes:y,result:m})=>[ht(r,{ref:"popperContent",class:Re({"v-popper--tooltip-loading":e.loading}),"popper-id":l,theme:e.theme,shown:d,mounted:f,"skip-transition":c,"auto-hide":u,"handle-resize":h,classes:y,result:m,onHide:p,onResize:v},{default:ge(()=>[e.html?(I(),se("div",{key:0,innerHTML:e.finalContent},null,8,Uo)):(I(),se("div",{key:1,textContent:Qt(e.finalContent)},null,8,Ko))]),_:2},1032,["class","popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:1},16,["theme","target-nodes","popper-node","onApplyShow","onApplyHide"])}const Qo=Ce(Xo,[["render",Zo]]),Ht="v-popper--has-tooltip";function Jo(e,t){let o=e.placement;if(!o&&t)for(const i of Ct)t[i]&&(o=i);return o||(o=de(e.theme||"tooltip","placement")),o}function Et(e,t,o){let i;const n=typeof t;return n==="string"?i={content:t}:t&&n==="object"?i=t:i={content:!1},i.placement=Jo(i,o),i.targetNodes=()=>[e],i.referenceNode=()=>e,i}let ze,pe,ei=0;function ti(){if(ze)return;pe=Le([]),ze=Kt({name:"VTooltipDirectiveApp",setup(){return{directives:pe}},render(){return this.directives.map(t=>Zt(Qo,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),ze.mount(e)}function oi(e,t,o){ti();const i=Le(Et(e,t,o)),n=Le(!1),s={id:ei++,options:i,shown:n};return pe.value.push(s),e.classList&&e.classList.add(Ht),e.$_popper={options:i,item:s,show(){n.value=!0},hide(){n.value=!1}}}function Bt(e){if(e.$_popper){const t=pe.value.indexOf(e.$_popper.item);t!==-1&&pe.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(Ht)}function lt(e,{value:t,modifiers:o}){const i=Et(e,t,o);if(!i.content||de(i.theme||"tooltip","disabled"))Bt(e);else{let n;e.$_popper?(n=e.$_popper,n.options.value=i):n=oi(e,t,o),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?n.show():n.hide())}}const ii={beforeMount:lt,updated:lt,beforeUnmount(e){Bt(e)}};function dt(e){e.addEventListener("mousedown",_e),e.addEventListener("click",_e),e.addEventListener("touchstart",Rt,J?{passive:!0}:!1)}function pt(e){e.removeEventListener("mousedown",_e),e.removeEventListener("click",_e),e.removeEventListener("touchstart",Rt),e.removeEventListener("touchend",Dt),e.removeEventListener("touchcancel",Ft)}function _e(e){const t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function Rt(e){if(e.changedTouches.length===1){const t=e.currentTarget;t.$_vclosepopover_touch=!0;const o=e.changedTouches[0];t.$_vclosepopover_touchPoint=o,t.addEventListener("touchend",Dt),t.addEventListener("touchcancel",Ft)}}function Dt(e){const t=e.currentTarget;if(t.$_vclosepopover_touch=!1,e.changedTouches.length===1){const o=e.changedTouches[0],i=t.$_vclosepopover_touchPoint;e.closePopover=Math.abs(o.screenY-i.screenY)<20&&Math.abs(o.screenX-i.screenX)<20,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}}function Ft(e){const t=e.currentTarget;t.$_vclosepopover_touch=!1}const ni={beforeMount(e,{value:t,modifiers:o}){e.$_closePopoverModifiers=o,(typeof t>"u"||t)&&dt(e)},updated(e,{value:t,oldValue:o,modifiers:i}){e.$_closePopoverModifiers=i,t!==o&&(typeof t>"u"||t?dt(e):pt(e))},beforeUnmount(e){pt(e)}},li=Mt;function si(e,t={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,St(M,t),e.directive("tooltip",ii),e.directive("close-popper",ni),e.component("VTooltip",Yo),e.component("VDropdown",Go),e.component("VMenu",Mt))}const ri={version:"5.2.2",install:si,options:M},ct=typeof navigator<"u"&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),di={install:(e,t={})=>{typeof window<"u"&&window.addEventListener("click",o=>{o.composedPath().some(n=>{var s,r,a,l;return((r=(s=n==null?void 0:n.classList)==null?void 0:s.contains)==null?void 0:r.call(s,"vp-code-group"))||((l=(a=n==null?void 0:n.classList)==null?void 0:a.contains)==null?void 0:l.call(a,"tabs"))})&&Nt()},{passive:!0}),e.use(ri,{...t,themes:{twoslash:{$extend:"dropdown",triggers:ct?["touch"]:["hover","touch"],popperTriggers:ct?["touch"]:["hover","touch"],placement:"bottom-start",overflowPadding:10,delay:0,handleResize:!1,autoHide:!0,instantMove:!0,flip:!1,arrowPadding:8,autoBoundaryMaxSize:!0},"twoslash-query":{$extend:"twoslash",triggers:["click"],popperTriggers:["click"],autoHide:!1},"twoslash-completion":{$extend:"twoslash-query",triggers:["click"],popperTriggers:["click"],autoHide:!1,distance:0,arrowOverflow:!0},...t.theme}})}};export{li as L,di as T,Nt as t};
.resize-observer[data-v-b329ee4c]{position:absolute;top:0;left:0;z-index:-1;width:100%;height:100%;border:none;background-color:transparent;pointer-events:none;display:block;overflow:hidden;opacity:0}.resize-observer[data-v-b329ee4c] object{display:block;position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1}.v-popper__popper{z-index:10000;top:0;left:0;outline:none}.v-popper__popper.v-popper__popper--hidden{visibility:hidden;opacity:0;transition:opacity .15s,visibility .15s;pointer-events:none}.v-popper__popper.v-popper__popper--shown{visibility:visible;opacity:1;transition:opacity .15s}.v-popper__popper.v-popper__popper--skip-transition,.v-popper__popper.v-popper__popper--skip-transition>.v-popper__wrapper{transition:none!important}.v-popper__backdrop{position:absolute;top:0;left:0;width:100%;height:100%;display:none}.v-popper__inner{position:relative;box-sizing:border-box;overflow-y:auto}.v-popper__inner>div{position:relative;z-index:1;max-width:inherit;max-height:inherit}.v-popper__arrow-container{position:absolute;width:10px;height:10px}.v-popper__popper--arrow-overflow .v-popper__arrow-container,.v-popper__popper--no-positioning .v-popper__arrow-container{display:none}.v-popper__arrow-inner,.v-popper__arrow-outer{border-style:solid;position:absolute;top:0;left:0;width:0;height:0}.v-popper__arrow-inner{visibility:hidden;border-width:7px}.v-popper__arrow-outer{border-width:6px}.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-inner{left:-2px}.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-outer,.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-outer{left:-1px}.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-outer{border-bottom-width:0;border-left-color:transparent!important;border-right-color:transparent!important;border-bottom-color:transparent!important}.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-inner{top:-2px}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-container{top:0}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-outer{border-top-width:0;border-left-color:transparent!important;border-right-color:transparent!important;border-top-color:transparent!important}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-inner{top:-4px}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-outer{top:-6px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-inner{top:-2px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-outer,.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-outer{top:-1px}.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-outer{border-left-width:0;border-left-color:transparent!important;border-top-color:transparent!important;border-bottom-color:transparent!important}.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-inner{left:-4px}.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-outer{left:-6px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-container{right:-10px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-outer{border-right-width:0;border-top-color:transparent!important;border-right-color:transparent!important;border-bottom-color:transparent!important}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-inner{left:-2px}.v-popper--theme-tooltip .v-popper__inner{background:#000c;color:#fff;border-radius:6px;padding:7px 12px 6px}.v-popper--theme-tooltip .v-popper__arrow-outer{border-color:#000c}.v-popper--theme-dropdown .v-popper__inner{background:#fff;color:#000;border-radius:6px;border:1px solid #ddd;box-shadow:0 6px 30px #0000001a}.v-popper--theme-dropdown .v-popper__arrow-inner{visibility:visible;border-color:#fff}.v-popper--theme-dropdown .v-popper__arrow-outer{border-color:#ddd}:root{--twoslash-border-color: #8888;--twoslash-underline-color: currentColor;--twoslash-highlighted-border: #c37d0d50;--twoslash-highlighted-bg: #c37d0d20;--twoslash-popup-bg: #f8f8f8;--twoslash-popup-color: inherit;--twoslash-popup-shadow: rgba(0, 0, 0, .08) 0px 1px 4px;--twoslash-docs-color: #888;--twoslash-docs-font: sans-serif;--twoslash-code-font: inherit;--twoslash-code-font-size: 1em;--twoslash-matched-color: inherit;--twoslash-unmatched-color: #888;--twoslash-cursor-color: #8888;--twoslash-error-color: #d45656;--twoslash-error-bg: #d4565620;--twoslash-warn-color: #c37d0d;--twoslash-warn-bg: #c37d0d20;--twoslash-tag-color: #3772cf;--twoslash-tag-bg: #3772cf20;--twoslash-tag-warn-color: var(--twoslash-warn-color);--twoslash-tag-warn-bg: var(--twoslash-warn-bg);--twoslash-tag-annotate-color: #1ba673;--twoslash-tag-annotate-bg: #1ba67320}@media (prefers-reduced-motion: reduce){.twoslash *{transition:none!important}}.twoslash:hover .twoslash-hover{border-color:var(--twoslash-underline-color)}.twoslash .twoslash-hover{border-bottom:1px dotted transparent;transition-timing-function:ease;transition:border-color .3s;position:relative}.twoslash .twoslash-popup-container{position:absolute;opacity:0;display:inline-flex;flex-direction:column;transform:translateY(1.1em);background:var(--twoslash-popup-bg);color:var(--twoslash-popup-color);border:1px solid var(--twoslash-border-color);transition:opacity .3s;border-radius:4px;pointer-events:none;z-index:10;-webkit-user-select:none;user-select:none;text-align:left;box-shadow:var(--twoslash-popup-shadow)}.twoslash .twoslash-query-presisted .twoslash-popup-container{z-index:9;transform:translateY(1.5em)}.twoslash .twoslash-hover:hover .twoslash-popup-container,.twoslash .twoslash-error-hover:hover .twoslash-popup-container,.twoslash .twoslash-query-presisted .twoslash-popup-container{opacity:1;pointer-events:auto}.twoslash .twoslash-popup-container:hover{-webkit-user-select:auto;user-select:auto}.twoslash .twoslash-popup-arrow{position:absolute;top:-4px;left:1em;border-top:1px solid var(--twoslash-border-color);border-right:1px solid var(--twoslash-border-color);background:var(--twoslash-popup-bg);transform:rotate(-45deg);width:6px;height:6px;pointer-events:none}.twoslash .twoslash-popup-code,.twoslash .twoslash-popup-error,.twoslash .twoslash-popup-docs{padding:6px 8px!important}.twoslash .twoslash-popup-code{font-family:var(--twoslash-code-font);font-size:var(--twoslash-code-font-size)}.twoslash .twoslash-popup-docs{color:var(--twoslash-docs-color);font-family:var(--twoslash-docs-font);font-size:.8em;border-top:1px solid var(--twoslash-border-color)}.twoslash .twoslash-popup-error{color:var(--twoslash-error-color);background-color:var(--twoslash-error-bg);font-family:var(--twoslash-docs-font);font-size:.8em}.twoslash .twoslash-popup-docs-tags{display:flex;flex-direction:column;font-family:var(--twoslash-docs-font)}.twoslash .twoslash-popup-docs-tags,.twoslash .twoslash-popup-docs-tag-name{margin-right:.5em}.twoslash .twoslash-popup-docs-tag-name{font-family:var(--twoslash-code-font)}.twoslash .twoslash-error-line{position:relative;background-color:var(--twoslash-error-bg);border-left:3px solid var(--twoslash-error-color);color:var(--twoslash-error-color);padding:6px 12px;margin:.2em 0;min-width:100%;width:max-content}.twoslash .twoslash-error-line.twoslash-error-level-warning{background-color:var(--twoslash-warn-bg);border-left:3px solid var(--twoslash-warn-color);color:var(--twoslash-warn-color)}.twoslash .twoslash-error{background:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%206%203'%20enable-background%3D'new%200%200%206%203'%20height%3D'3'%20width%3D'6'%3E%3Cg%20fill%3D'%23c94824'%3E%3Cpolygon%20points%3D'5.5%2C0%202.5%2C3%201.1%2C3%204.1%2C0'%2F%3E%3Cpolygon%20points%3D'4%2C0%206%2C2%206%2C0.6%205.4%2C0'%2F%3E%3Cpolygon%20points%3D'0%2C2%201%2C3%202.4%2C3%200%2C0.6'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") repeat-x bottom left;padding-bottom:2px}.twoslash .twoslash-error.twoslash-error-level-warning{background:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%206%203'%20enable-background%3D'new%200%200%206%203'%20height%3D'3'%20width%3D'6'%3E%3Cg%20fill%3D'%23c37d0d'%3E%3Cpolygon%20points%3D'5.5%2C0%202.5%2C3%201.1%2C3%204.1%2C0'%2F%3E%3Cpolygon%20points%3D'4%2C0%206%2C2%206%2C0.6%205.4%2C0'%2F%3E%3Cpolygon%20points%3D'0%2C2%201%2C3%202.4%2C3%200%2C0.6'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") repeat-x bottom left;padding-bottom:2px}.twoslash .twoslash-completion-cursor{position:relative}.twoslash .twoslash-completion-cursor .twoslash-completion-list{-webkit-user-select:none;user-select:none;position:absolute;top:0;left:0;transform:translateY(1.2em);margin:3px 0 0 -1px;display:inline-block;z-index:8;box-shadow:var(--twoslash-popup-shadow);background:var(--twoslash-popup-bg);border:1px solid var(--twoslash-border-color)}.twoslash-completion-list{width:240px;font-size:.8rem;padding:4px;display:flex;flex-direction:column;gap:4px}.twoslash-completion-list:hover{-webkit-user-select:auto;user-select:auto}.twoslash-completion-list:before{background-color:var(--twoslash-cursor-color);width:2px;position:absolute;top:-1.6em;height:1.4em;left:-1px;content:" "}.twoslash-completion-list li{overflow:hidden;display:flex;align-items:center;gap:.25em;line-height:1em}.twoslash-completion-list li span.twoslash-completions-unmatched{color:var(--twoslash-unmatched-color)}.twoslash-completion-list .deprecated{text-decoration:line-through;opacity:.5}.twoslash-completion-list li span.twoslash-completions-matched{color:var(--twoslash-matched-color)}.twoslash-highlighted{background-color:var(--twoslash-highlighted-bg);border:1px solid var(--twoslash-highlighted-border);padding:1px 2px;margin:-1px -3px;border-radius:4px}.twoslash-completion-list .twoslash-completions-icon{color:var(--twoslash-unmatched-color);width:1em;flex:none}.twoslash .twoslash-tag-line{position:relative;background-color:var(--twoslash-tag-bg);border-left:3px solid var(--twoslash-tag-color);color:var(--twoslash-tag-color);padding:6px 10px;margin:.2em 0;display:flex;align-items:center;gap:.3em;min-width:100%;width:max-content}.twoslash .twoslash-tag-line .twoslash-tag-icon{width:1.1em;color:inherit}.twoslash .twoslash-tag-line.twoslash-tag-error-line{background-color:var(--twoslash-error-bg);border-left:3px solid var(--twoslash-error-color);color:var(--twoslash-error-color)}.twoslash .twoslash-tag-line.twoslash-tag-warn-line{background-color:var(--twoslash-tag-warn-bg);border-left:3px solid var(--twoslash-tag-warn-color);color:var(--twoslash-tag-warn-color)}.twoslash .twoslash-tag-line.twoslash-tag-annotate-line{background-color:var(--twoslash-tag-annotate-bg);border-left:3px solid var(--twoslash-tag-annotate-color);color:var(--twoslash-tag-annotate-color)}:root{--twoslash-popup-bg: var(--vp-c-bg, inherit);--twoslash-popup-color: var(--vp-c-text-1);--twoslash-docs-color: var(--vp-c-text-1);--twoslash-docs-font: var(--vp-font-family-base);--twoslash-code-font: var(--vp-font-family-mono);--twoslash-code-size: var(--vp-code-font-size);--twoslash-underline-color: #8888;--twoslash-border-color: var(--vp-c-border);--twoslash-cursor-color: var(--vp-c-brand);--twoslash-matched-color: var(--vp-c-brand);--twoslash-unmatched-color: var(--vp-c-text-2)}.v-popper--theme-twoslash{z-index:calc(var(--vp-z-index-local-nav) - 1)}.v-popper--theme-twoslash .v-popper__inner{background:var(--twoslash-popup-bg);color:var(--twoslash-popup-color);border-color:var(--twoslash-border-color)}.v-popper--theme-twoslash .v-popper__arrow-outer{border-color:var(--twoslash-border-color)}.v-popper--theme-twoslash .v-popper__arrow-inner{border-color:var(--twoslash-popup-bg)}.twoslash-popup-container{transform:translateY(1.5em)}.twoslash-query-presisted .twoslash-popup-container{transform:translateY(1.8em)}.twoslash .v-popper{display:inline-block}.twoslash-completion-list .twoslash-completions-icon{color:var(--twoslash-unmatched-color)!important}.twoslash-floating .twoslash-popup-code{max-width:600px;display:block;width:fit-content;min-width:100%;padding:6px 12px;line-height:var(--vp-code-line-height);font-size:var(--twoslash-code-size);transition:color .5s;white-space:pre-wrap}.twoslash-floating .twoslash-popup-docs,.twoslash-floating .twoslash-popup-error{padding:0 12px!important;font-family:var(--twoslash-docs-font);font-size:.9em;max-height:500px;max-width:700px;overflow-y:auto;overflow-x:hidden;text-wrap:balance}.twoslash-floating .twoslash-popup-docs{border-top:1px solid var(--twoslash-border-color);color:var(--twoslash-docs-color)}.twoslash-floating .twoslash-popup-error{color:var(--twoslash-error-color)}.twoslash-floating .twoslash-popup-error.twoslash-error-level-warning{color:var(--twoslash-warn-color)}.twoslash-floating .twoslash-popup-docs p,.twoslash-floating .twoslash-popup-error p{margin:0;padding:6px 0;text-wrap:balance}.twoslash-floating .twoslash-popup-docs pre .twoslash-floating .twoslash-popup-error pre{background-color:var(--vp-code-block-bg);border-radius:8px;padding:12px;margin:6px -2px;overflow-x:auto}.twoslash-floating .twoslash-popup-docs-tags{display:flex;flex-direction:column;padding:8px 12px!important}.twoslash-floating .twoslash-popup-docs-tags .twoslash-popup-docs-tag-name{font-family:var(--twoslash-code-font);color:var(--twoslash-unmatched-color);margin-right:.5em}.twoslash-completion-cursor{height:1.2em;width:2px;margin-bottom:-.2em;background:var(--twoslash-cursor-color);display:inline-block;-webkit-user-select:none;user-select:none}.twoslash-floating.twoslash-completion .v-popper__arrow-container{display:none}.twoslash-floating.twoslash-completion .twoslash-completion-list{padding:6px;font-family:var(--twoslash-code-font);font-size:var(--twoslash-code-size)!important}.twoslash-floating.twoslash-completion .twoslash-completion-list li{padding:3px 0}
function O(r,v){for(var u=0;u<v.length;u++){const a=v[u];if(typeof a!="string"&&!Array.isArray(a)){for(const l in a)if(l!=="default"&&!(l in r)){const c=Object.getOwnPropertyDescriptor(a,l);c&&Object.defineProperty(r,l,c.get?c:{enumerable:!0,get:()=>a[l]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var d=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var h={exports:{}};(function(r,v){(function(u,a){a()})(d,function(){function u(e,t){return typeof t>"u"?t={autoBom:!1}:typeof t!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\uFEFF",e],{type:e.type}):e}function a(e,t,s){var o=new XMLHttpRequest;o.open("GET",e),o.responseType="blob",o.onload=function(){p(o.response,t,s)},o.onerror=function(){console.error("could not download file")},o.send()}function l(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return 200<=t.status&&299>=t.status}function c(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var i=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof d=="object"&&d.global===d?d:void 0,y=i.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),p=i.saveAs||(typeof window!="object"||window!==i?function(){}:"download"in HTMLAnchorElement.prototype&&!y?function(e,t,s){var o=i.URL||i.webkitURL,n=document.createElement("a");t=t||e.name||"download",n.download=t,n.rel="noopener",typeof e=="string"?(n.href=e,n.origin===location.origin?c(n):l(n.href)?a(e,t,s):c(n,n.target="_blank")):(n.href=o.createObjectURL(e),setTimeout(function(){o.revokeObjectURL(n.href)},4e4),setTimeout(function(){c(n)},0))}:"msSaveOrOpenBlob"in navigator?function(e,t,s){if(t=t||e.name||"download",typeof e!="string")navigator.msSaveOrOpenBlob(u(e,s),t);else if(l(e))a(e,t,s);else{var o=document.createElement("a");o.href=e,o.target="_blank",setTimeout(function(){c(o)})}}:function(e,t,s,o){if(o=o||open("","_blank"),o&&(o.document.title=o.document.body.innerText="downloading..."),typeof e=="string")return a(e,t,s);var n=e.type==="application/octet-stream",E=/constructor/i.test(i.HTMLElement)||i.safari,b=/CriOS\/[\d]+/.test(navigator.userAgent);if((b||n&&E||y)&&typeof FileReader<"u"){var w=new FileReader;w.onloadend=function(){var f=w.result;f=b?f:f.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=f:location=f,o=null},w.readAsDataURL(e)}else{var g=i.URL||i.webkitURL,m=g.createObjectURL(e);o?o.location=m:location.href=m,o=null,setTimeout(function(){g.revokeObjectURL(m)},4e4)}});i.saveAs=p.saveAs=p,r.exports=p})})(h);var j=h.exports;const A=_(j),L=O({__proto__:null,default:A},[j]);export{L as F,_ as g};
import{M as Ca,O as Ul,l as qr,c as Ji,aK as pp,t as yp,aL as ti,d as ri,h as mp,b6 as bp,b7 as Ep,b8 as wp,aN as xp}from"./slidev/5-BKiUV7YW.js";import{c as Tp}from"./createText-f6615236-y76jB5p3.js";import"./modules/vue-Dn3czbSS.js";import"./index-D2S1x1Oe.js";import"./modules/shiki-CuMFyo6Z.js";import"./modules/file-saver-EUMWMpoS.js";import"./slidev/default-CY-sqYNf.js";import"./slidev/context-CYh2-pv1.js";var Qi=function(){var de=function(ee,H,te,S){for(te=te||{},S=ee.length;S--;te[ee[S]]=H);return te},Pe=[1,4],_=[1,13],ve=[1,12],J=[1,15],C=[1,16],T=[1,20],x=[1,19],N=[6,7,8],z=[1,26],Y=[1,24],P=[1,25],Z=[6,7,11],A=[1,6,13,15,16,19,22],U=[1,33],$=[1,34],Q=[1,6,7,11,13,15,16,19,22],ne={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(H,te,S,V,R,q,he){var pe=q.length-1;switch(R){case 6:case 7:return V;case 8:V.getLogger().trace("Stop NL ");break;case 9:V.getLogger().trace("Stop EOF ");break;case 11:V.getLogger().trace("Stop NL2 ");break;case 12:V.getLogger().trace("Stop EOF2 ");break;case 15:V.getLogger().info("Node: ",q[pe].id),V.addNode(q[pe-1].length,q[pe].id,q[pe].descr,q[pe].type);break;case 16:V.getLogger().trace("Icon: ",q[pe]),V.decorateNode({icon:q[pe]});break;case 17:case 21:V.decorateNode({class:q[pe]});break;case 18:V.getLogger().trace("SPACELIST");break;case 19:V.getLogger().trace("Node: ",q[pe].id),V.addNode(0,q[pe].id,q[pe].descr,q[pe].type);break;case 20:V.decorateNode({icon:q[pe]});break;case 25:V.getLogger().trace("node found ..",q[pe-2]),this.$={id:q[pe-1],descr:q[pe-1],type:V.getType(q[pe-2],q[pe])};break;case 26:this.$={id:q[pe],descr:q[pe],type:V.nodeType.DEFAULT};break;case 27:V.getLogger().trace("node found ..",q[pe-3]),this.$={id:q[pe-3],descr:q[pe-1],type:V.getType(q[pe-2],q[pe])};break}},table:[{3:1,4:2,5:3,6:[1,5],8:Pe},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:Pe},{6:_,7:[1,10],9:9,12:11,13:ve,14:14,15:J,16:C,17:17,18:18,19:T,22:x},de(N,[2,3]),{1:[2,2]},de(N,[2,4]),de(N,[2,5]),{1:[2,6],6:_,12:21,13:ve,14:14,15:J,16:C,17:17,18:18,19:T,22:x},{6:_,9:22,12:11,13:ve,14:14,15:J,16:C,17:17,18:18,19:T,22:x},{6:z,7:Y,10:23,11:P},de(Z,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:T,22:x}),de(Z,[2,18]),de(Z,[2,19]),de(Z,[2,20]),de(Z,[2,21]),de(Z,[2,23]),de(Z,[2,24]),de(Z,[2,26],{19:[1,30]}),{20:[1,31]},{6:z,7:Y,10:32,11:P},{1:[2,7],6:_,12:21,13:ve,14:14,15:J,16:C,17:17,18:18,19:T,22:x},de(A,[2,14],{7:U,11:$}),de(Q,[2,8]),de(Q,[2,9]),de(Q,[2,10]),de(Z,[2,15]),de(Z,[2,16]),de(Z,[2,17]),{20:[1,35]},{21:[1,36]},de(A,[2,13],{7:U,11:$}),de(Q,[2,11]),de(Q,[2,12]),{21:[1,37]},de(Z,[2,25]),de(Z,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:function(H,te){if(te.recoverable)this.trace(H);else{var S=new Error(H);throw S.hash=te,S}},parse:function(H){var te=this,S=[0],V=[],R=[null],q=[],he=this.table,pe="",Ae=0,Ne=0,Ye=2,at=1,dt=q.slice.call(arguments,1),Re=Object.create(this.lexer),Ve={yy:{}};for(var Ze in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ze)&&(Ve.yy[Ze]=this.yy[Ze]);Re.setInput(H,Ve.yy),Ve.yy.lexer=Re,Ve.yy.parser=this,typeof Re.yylloc>"u"&&(Re.yylloc={});var nt=Re.yylloc;q.push(nt);var ft=Re.options&&Re.options.ranges;typeof Ve.yy.parseError=="function"?this.parseError=Ve.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function it(){var jt;return jt=V.pop()||Re.lex()||at,typeof jt!="number"&&(jt instanceof Array&&(V=jt,jt=V.pop()),jt=te.symbols_[jt]||jt),jt}for(var tt,yt,Et,Pt,gt={},dr,qt,nn,Kr;;){if(yt=S[S.length-1],this.defaultActions[yt]?Et=this.defaultActions[yt]:((tt===null||typeof tt>"u")&&(tt=it()),Et=he[yt]&&he[yt][tt]),typeof Et>"u"||!Et.length||!Et[0]){var Da="";Kr=[];for(dr in he[yt])this.terminals_[dr]&&dr>Ye&&Kr.push("'"+this.terminals_[dr]+"'");Re.showPosition?Da="Parse error on line "+(Ae+1)+`:
`+Re.showPosition()+`
Expecting `+Kr.join(", ")+", got '"+(this.terminals_[tt]||tt)+"'":Da="Parse error on line "+(Ae+1)+": Unexpected "+(tt==at?"end of input":"'"+(this.terminals_[tt]||tt)+"'"),this.parseError(Da,{text:Re.match,token:this.terminals_[tt]||tt,line:Re.yylineno,loc:nt,expected:Kr})}if(Et[0]instanceof Array&&Et.length>1)throw new Error("Parse Error: multiple actions possible at state: "+yt+", token: "+tt);switch(Et[0]){case 1:S.push(tt),R.push(Re.yytext),q.push(Re.yylloc),S.push(Et[1]),tt=null,Ne=Re.yyleng,pe=Re.yytext,Ae=Re.yylineno,nt=Re.yylloc;break;case 2:if(qt=this.productions_[Et[1]][1],gt.$=R[R.length-qt],gt._$={first_line:q[q.length-(qt||1)].first_line,last_line:q[q.length-1].last_line,first_column:q[q.length-(qt||1)].first_column,last_column:q[q.length-1].last_column},ft&&(gt._$.range=[q[q.length-(qt||1)].range[0],q[q.length-1].range[1]]),Pt=this.performAction.apply(gt,[pe,Ne,Ae,Ve.yy,Et[1],R,q].concat(dt)),typeof Pt<"u")return Pt;qt&&(S=S.slice(0,-1*qt*2),R=R.slice(0,-1*qt),q=q.slice(0,-1*qt)),S.push(this.productions_[Et[1]][0]),R.push(gt.$),q.push(gt._$),nn=he[S[S.length-2]][S[S.length-1]],S.push(nn);break;case 3:return!0}}return!0}},le=function(){var ee={EOF:1,parseError:function(te,S){if(this.yy.parser)this.yy.parser.parseError(te,S);else throw new Error(te)},setInput:function(H,te){return this.yy=te||this.yy||{},this._input=H,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 H=this._input[0];this.yytext+=H,this.yyleng++,this.offset++,this.match+=H,this.matched+=H;var te=H.match(/(?:\r\n?|\n).*/g);return te?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),H},unput:function(H){var te=H.length,S=H.split(/(?:\r\n?|\n)/g);this._input=H+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-te),this.offset-=te;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),S.length-1&&(this.yylineno-=S.length-1);var R=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:S?(S.length===V.length?this.yylloc.first_column:0)+V[V.length-S.length].length-S[0].length:this.yylloc.first_column-te},this.options.ranges&&(this.yylloc.range=[R[0],R[0]+this.yyleng-te]),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(H){this.unput(this.match.slice(H))},pastInput:function(){var H=this.matched.substr(0,this.matched.length-this.match.length);return(H.length>20?"...":"")+H.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var H=this.match;return H.length<20&&(H+=this._input.substr(0,20-H.length)),(H.substr(0,20)+(H.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var H=this.pastInput(),te=new Array(H.length+1).join("-");return H+this.upcomingInput()+`
`+te+"^"},test_match:function(H,te){var S,V,R;if(this.options.backtrack_lexer&&(R={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&&(R.yylloc.range=this.yylloc.range.slice(0))),V=H[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+H[0].length},this.yytext+=H[0],this.match+=H[0],this.matches=H,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(H[0].length),this.matched+=H[0],S=this.performAction.call(this,this.yy,this,te,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),S)return S;if(this._backtrack){for(var q in R)this[q]=R[q];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var H,te,S,V;this._more||(this.yytext="",this.match="");for(var R=this._currentRules(),q=0;q<R.length;q++)if(S=this._input.match(this.rules[R[q]]),S&&(!te||S[0].length>te[0].length)){if(te=S,V=q,this.options.backtrack_lexer){if(H=this.test_match(S,R[q]),H!==!1)return H;if(this._backtrack){te=!1;continue}else return!1}else if(!this.options.flex)break}return te?(H=this.test_match(te,R[V]),H!==!1?H:!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 te=this.next();return te||this.lex()},begin:function(te){this.conditionStack.push(te)},popState:function(){var te=this.conditionStack.length-1;return te>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(te){return te=this.conditionStack.length-1-Math.abs(te||0),te>=0?this.conditionStack[te]:"INITIAL"},pushState:function(te){this.begin(te)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(te,S,V,R){switch(V){case 0:return te.getLogger().trace("Found comment",S.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:te.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return te.getLogger().trace("SPACELINE"),6;case 7:return 7;case 8:return 15;case 9:te.getLogger().trace("end icon"),this.popState();break;case 10:return te.getLogger().trace("Exploding node"),this.begin("NODE"),19;case 11:return te.getLogger().trace("Cloud"),this.begin("NODE"),19;case 12:return te.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;case 13:return te.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:te.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return te.getLogger().trace("description:",S.yytext),"NODE_DESCR";case 26:this.popState();break;case 27:return this.popState(),te.getLogger().trace("node end ))"),"NODE_DEND";case 28:return this.popState(),te.getLogger().trace("node end )"),"NODE_DEND";case 29:return this.popState(),te.getLogger().trace("node end ...",S.yytext),"NODE_DEND";case 30:return this.popState(),te.getLogger().trace("node end (("),"NODE_DEND";case 31:return this.popState(),te.getLogger().trace("node end (-"),"NODE_DEND";case 32:return this.popState(),te.getLogger().trace("node end (-"),"NODE_DEND";case 33:return this.popState(),te.getLogger().trace("node end (("),"NODE_DEND";case 34:return this.popState(),te.getLogger().trace("node end (("),"NODE_DEND";case 35:return te.getLogger().trace("Long description:",S.yytext),20;case 36:return te.getLogger().trace("Long description:",S.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 ee}();ne.lexer=le;function j(){this.yy={}}return j.prototype=ne,ne.Parser=j,new j}();Qi.parser=Qi;const Cp=Qi;let sr=[],_l=0,ji={};const Dp=()=>{sr=[],_l=0,ji={}},Sp=function(de){for(let Pe=sr.length-1;Pe>=0;Pe--)if(sr[Pe].level<de)return sr[Pe];return null},Lp=()=>sr.length>0?sr[0]:null,Ap=(de,Pe,_,ve)=>{var J,C;qr.info("addNode",de,Pe,_,ve);const T=Ji();let x=((J=T.mindmap)==null?void 0:J.padding)??ti.mindmap.padding;switch(ve){case St.ROUNDED_RECT:case St.RECT:case St.HEXAGON:x*=2}const N={id:_l++,nodeId:ri(Pe,T),level:de,descr:ri(_,T),type:ve,children:[],width:((C=T.mindmap)==null?void 0:C.maxNodeWidth)??ti.mindmap.maxNodeWidth,padding:x},z=Sp(de);if(z)z.children.push(N),sr.push(N);else if(sr.length===0)sr.push(N);else throw new Error('There can be only one root. No parent could be found for ("'+N.descr+'")')},St={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},Op=(de,Pe)=>{switch(qr.debug("In get type",de,Pe),de){case"[":return St.RECT;case"(":return Pe===")"?St.ROUNDED_RECT:St.CLOUD;case"((":return St.CIRCLE;case")":return St.CLOUD;case"))":return St.BANG;case"{{":return St.HEXAGON;default:return St.DEFAULT}},Np=(de,Pe)=>{ji[de]=Pe},Ip=de=>{if(!de)return;const Pe=Ji(),_=sr[sr.length-1];de.icon&&(_.icon=ri(de.icon,Pe)),de.class&&(_.class=ri(de.class,Pe))},Mp=de=>{switch(de){case St.DEFAULT:return"no-border";case St.RECT:return"rect";case St.ROUNDED_RECT:return"rounded-rect";case St.CIRCLE:return"circle";case St.CLOUD:return"cloud";case St.BANG:return"bang";case St.HEXAGON:return"hexgon";default:return"no-border"}},Rp=()=>qr,kp=de=>ji[de],Pp={clear:Dp,addNode:Ap,getMindmap:Lp,nodeType:St,getType:Op,setElementForId:Np,decorateNode:Ip,type2Str:Mp,getLogger:Rp,getElementById:kp},Bp=Pp;var Yl={exports:{}};(function(de,Pe){(function(_,ve){de.exports=ve()})(Ca,function(){function _(t){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(t)}function ve(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function J(t,e){for(var r=0;r<e.length;r++){var a=e[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function C(t,e,r){return e&&J(t.prototype,e),r&&J(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function T(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function x(t,e){return N(t)||z(t,e)||Y(t,e)||Z()}function N(t){if(Array.isArray(t))return t}function z(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var a=[],n=!0,i=!1,o,s;try{for(r=r.call(t);!(n=(o=r.next()).done)&&(a.push(o.value),!(e&&a.length===e));n=!0);}catch(u){i=!0,s=u}finally{try{!n&&r.return!=null&&r.return()}finally{if(i)throw s}}return a}}function Y(t,e){if(t){if(typeof t=="string")return P(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return P(t,e)}}function P(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,a=new Array(e);r<e;r++)a[r]=t[r];return a}function Z(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var A=typeof window>"u"?null:window,U=A?A.navigator:null;A&&A.document;var $=_(""),Q=_({}),ne=_(function(){}),le=typeof HTMLElement>"u"?"undefined":_(HTMLElement),j=function(e){return e&&e.instanceString&&H(e.instanceString)?e.instanceString():null},ee=function(e){return e!=null&&_(e)==$},H=function(e){return e!=null&&_(e)===ne},te=function(e){return!pe(e)&&(Array.isArray?Array.isArray(e):e!=null&&e instanceof Array)},S=function(e){return e!=null&&_(e)===Q&&!te(e)&&e.constructor===Object},V=function(e){return e!=null&&_(e)===Q},R=function(e){return e!=null&&_(e)===_(1)&&!isNaN(e)},q=function(e){return R(e)&&Math.floor(e)===e},he=function(e){if(le!=="undefined")return e!=null&&e instanceof HTMLElement},pe=function(e){return Ae(e)||Ne(e)},Ae=function(e){return j(e)==="collection"&&e._private.single},Ne=function(e){return j(e)==="collection"&&!e._private.single},Ye=function(e){return j(e)==="core"},at=function(e){return j(e)==="stylesheet"},dt=function(e){return j(e)==="event"},Re=function(e){return e==null?!0:!!(e===""||e.match(/^\s+$/))},Ve=function(e){return typeof HTMLElement>"u"?!1:e instanceof HTMLElement},Ze=function(e){return S(e)&&R(e.x1)&&R(e.x2)&&R(e.y1)&&R(e.y2)},nt=function(e){return V(e)&&H(e.then)},ft=function(){return U&&U.userAgent.match(/msie|trident|edge/i)},it=function(e,r){r||(r=function(){if(arguments.length===1)return arguments[0];if(arguments.length===0)return"undefined";for(var i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);return i.join("$")});var a=function n(){var i=this,o=arguments,s,u=r.apply(i,o),l=n.cache;return(s=l[u])||(s=l[u]=e.apply(i,o)),s};return a.cache={},a},tt=it(function(t){return t.replace(/([A-Z])/g,function(e){return"-"+e.toLowerCase()})}),yt=it(function(t){return t.replace(/(-\w)/g,function(e){return e[1].toUpperCase()})}),Et=it(function(t,e){return t+e[0].toUpperCase()+e.substring(1)},function(t,e){return t+"$"+e}),Pt=function(e){return Re(e)?e:e.charAt(0).toUpperCase()+e.substring(1)},gt="(?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))",dr="rgb[a]?\\(("+gt+"[%]?)\\s*,\\s*("+gt+"[%]?)\\s*,\\s*("+gt+"[%]?)(?:\\s*,\\s*("+gt+"))?\\)",qt="rgb[a]?\\((?:"+gt+"[%]?)\\s*,\\s*(?:"+gt+"[%]?)\\s*,\\s*(?:"+gt+"[%]?)(?:\\s*,\\s*(?:"+gt+"))?\\)",nn="hsl[a]?\\(("+gt+")\\s*,\\s*("+gt+"[%])\\s*,\\s*("+gt+"[%])(?:\\s*,\\s*("+gt+"))?\\)",Kr="hsl[a]?\\((?:"+gt+")\\s*,\\s*(?:"+gt+"[%])\\s*,\\s*(?:"+gt+"[%])(?:\\s*,\\s*(?:"+gt+"))?\\)",Da="\\#[0-9a-fA-F]{3}",jt="\\#[0-9a-fA-F]{6}",eo=function(e,r){return e<r?-1:e>r?1:0},Kl=function(e,r){return-1*eo(e,r)},He=Object.assign!=null?Object.assign.bind(Object):function(t){for(var e=arguments,r=1;r<e.length;r++){var a=e[r];if(a!=null)for(var n=Object.keys(a),i=0;i<n.length;i++){var o=n[i];t[o]=a[o]}}return t},Zl=function(e){if(!(!(e.length===4||e.length===7)||e[0]!=="#")){var r=e.length===4,a,n,i,o=16;return r?(a=parseInt(e[1]+e[1],o),n=parseInt(e[2]+e[2],o),i=parseInt(e[3]+e[3],o)):(a=parseInt(e[1]+e[2],o),n=parseInt(e[3]+e[4],o),i=parseInt(e[5]+e[6],o)),[a,n,i]}},Ql=function(e){var r,a,n,i,o,s,u,l;function v(c,y,p){return p<0&&(p+=1),p>1&&(p-=1),p<1/6?c+(y-c)*6*p:p<1/2?y:p<2/3?c+(y-c)*(2/3-p)*6:c}var f=new RegExp("^"+nn+"$").exec(e);if(f){if(a=parseInt(f[1]),a<0?a=(360- -1*a%360)%360:a>360&&(a=a%360),a/=360,n=parseFloat(f[2]),n<0||n>100||(n=n/100,i=parseFloat(f[3]),i<0||i>100)||(i=i/100,o=f[4],o!==void 0&&(o=parseFloat(o),o<0||o>1)))return;if(n===0)s=u=l=Math.round(i*255);else{var h=i<.5?i*(1+n):i+n-i*n,d=2*i-h;s=Math.round(255*v(d,h,a+1/3)),u=Math.round(255*v(d,h,a)),l=Math.round(255*v(d,h,a-1/3))}r=[s,u,l,o]}return r},Jl=function(e){var r,a=new RegExp("^"+dr+"$").exec(e);if(a){r=[];for(var n=[],i=1;i<=3;i++){var o=a[i];if(o[o.length-1]==="%"&&(n[i]=!0),o=parseFloat(o),n[i]&&(o=o/100*255),o<0||o>255)return;r.push(Math.floor(o))}var s=n[1]||n[2]||n[3],u=n[1]&&n[2]&&n[3];if(s&&!u)return;var l=a[4];if(l!==void 0){if(l=parseFloat(l),l<0||l>1)return;r.push(l)}}return r},jl=function(e){return tu[e.toLowerCase()]},eu=function(e){return(te(e)?e:null)||jl(e)||Zl(e)||Jl(e)||Ql(e)},tu={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]},to=function(e){for(var r=e.map,a=e.keys,n=a.length,i=0;i<n;i++){var o=a[i];if(S(o))throw Error("Tried to set map with object key");i<a.length-1?(r[o]==null&&(r[o]={}),r=r[o]):r[o]=e.value}},ro=function(e){for(var r=e.map,a=e.keys,n=a.length,i=0;i<n;i++){var o=a[i];if(S(o))throw Error("Tried to get map with object key");if(r=r[o],r==null)return r}return r};function ru(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var kr=ru,Sa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof Ca<"u"?Ca:typeof self<"u"?self:{};function au(t,e){return e={exports:{}},t(e,e.exports),e.exports}var nu=typeof Sa=="object"&&Sa&&Sa.Object===Object&&Sa,iu=nu,ou=typeof self=="object"&&self&&self.Object===Object&&self,su=iu||ou||Function("return this")(),on=su,lu=function(){return on.Date.now()},ai=lu,uu=/\s/;function vu(t){for(var e=t.length;e--&&uu.test(t.charAt(e)););return e}var fu=vu,hu=/^\s+/;function cu(t){return t&&t.slice(0,fu(t)+1).replace(hu,"")}var du=cu,gu=on.Symbol,Zr=gu,ao=Object.prototype,pu=ao.hasOwnProperty,yu=ao.toString,La=Zr?Zr.toStringTag:void 0;function mu(t){var e=pu.call(t,La),r=t[La];try{t[La]=void 0;var a=!0}catch{}var n=yu.call(t);return a&&(e?t[La]=r:delete t[La]),n}var bu=mu,Eu=Object.prototype,wu=Eu.toString;function xu(t){return wu.call(t)}var Tu=xu,Cu="[object Null]",Du="[object Undefined]",no=Zr?Zr.toStringTag:void 0;function Su(t){return t==null?t===void 0?Du:Cu:no&&no in Object(t)?bu(t):Tu(t)}var io=Su;function Lu(t){return t!=null&&typeof t=="object"}var Au=Lu,Ou="[object Symbol]";function Nu(t){return typeof t=="symbol"||Au(t)&&io(t)==Ou}var Aa=Nu,oo=NaN,Iu=/^[-+]0x[0-9a-f]+$/i,Mu=/^0b[01]+$/i,Ru=/^0o[0-7]+$/i,ku=parseInt;function Pu(t){if(typeof t=="number")return t;if(Aa(t))return oo;if(kr(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=kr(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=du(t);var r=Mu.test(t);return r||Ru.test(t)?ku(t.slice(2),r?2:8):Iu.test(t)?oo:+t}var so=Pu,Bu="Expected a function",Fu=Math.max,Gu=Math.min;function zu(t,e,r){var a,n,i,o,s,u,l=0,v=!1,f=!1,h=!0;if(typeof t!="function")throw new TypeError(Bu);e=so(e)||0,kr(r)&&(v=!!r.leading,f="maxWait"in r,i=f?Fu(so(r.maxWait)||0,e):i,h="trailing"in r?!!r.trailing:h);function d(L){var w=a,k=n;return a=n=void 0,l=L,o=t.apply(k,w),o}function c(L){return l=L,s=setTimeout(g,e),v?d(L):o}function y(L){var w=L-u,k=L-l,D=e-w;return f?Gu(D,i-k):D}function p(L){var w=L-u,k=L-l;return u===void 0||w>=e||w<0||f&&k>=i}function g(){var L=ai();if(p(L))return m(L);s=setTimeout(g,y(L))}function m(L){return s=void 0,h&&a?d(L):(a=n=void 0,o)}function b(){s!==void 0&&clearTimeout(s),l=0,a=u=n=s=void 0}function E(){return s===void 0?o:m(ai())}function M(){var L=ai(),w=p(L);if(a=arguments,n=this,u=L,w){if(s===void 0)return c(u);if(f)return clearTimeout(s),s=setTimeout(g,e),d(u)}return s===void 0&&(s=setTimeout(g,e)),o}return M.cancel=b,M.flush=E,M}var sn=zu,ni=A?A.performance:null,lo=ni&&ni.now?function(){return ni.now()}:function(){return Date.now()},Vu=function(){if(A){if(A.requestAnimationFrame)return function(t){A.requestAnimationFrame(t)};if(A.mozRequestAnimationFrame)return function(t){A.mozRequestAnimationFrame(t)};if(A.webkitRequestAnimationFrame)return function(t){A.webkitRequestAnimationFrame(t)};if(A.msRequestAnimationFrame)return function(t){A.msRequestAnimationFrame(t)}}return function(t){t&&setTimeout(function(){t(lo())},1e3/60)}}(),ln=function(e){return Vu(e)},gr=lo,Qr=9261,uo=65599,Oa=5381,vo=function(e){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Qr,a=r,n;n=e.next(),!n.done;)a=a*uo+n.value|0;return a},Na=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Qr;return r*uo+e|0},Ia=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Oa;return(r<<5)+r+e|0},$u=function(e,r){return e*2097152+r},wr=function(e){return e[0]*2097152+e[1]},un=function(e,r){return[Na(e[0],r[0]),Ia(e[1],r[1])]},Uu=function(e,r){var a={value:0,done:!1},n=0,i=e.length,o={next:function(){return n<i?a.value=e[n++]:a.done=!0,a}};return vo(o,r)},Pr=function(e,r){var a={value:0,done:!1},n=0,i=e.length,o={next:function(){return n<i?a.value=e.charCodeAt(n++):a.done=!0,a}};return vo(o,r)},fo=function(){return _u(arguments)},_u=function(e){for(var r,a=0;a<e.length;a++){var n=e[a];a===0?r=Pr(n):r=Pr(n,r)}return r},ho=!0,Yu=console.warn!=null,Hu=console.trace!=null,ii=Number.MAX_SAFE_INTEGER||9007199254740991,co=function(){return!0},vn=function(){return!1},go=function(){return 0},oi=function(){},xt=function(e){throw new Error(e)},po=function(e){if(e!==void 0)ho=!!e;else return ho},ht=function(e){po()&&(Yu?console.warn(e):(console.log(e),Hu&&console.trace()))},Xu=function(e){return He({},e)},lr=function(e){return e==null?e:te(e)?e.slice():S(e)?Xu(e):e},Wu=function(e){return e.slice()},yo=function(e,r){for(r=e="";e++<36;r+=e*51&52?(e^15?8^Math.random()*(e^20?16:4):4).toString(16):"-");return r},qu={},mo=function(){return qu},At=function(e){var r=Object.keys(e);return function(a){for(var n={},i=0;i<r.length;i++){var o=r[i],s=a==null?void 0:a[o];n[o]=s===void 0?e[o]:s}return n}},xr=function(e,r,a){for(var n=e.length-1;n>=0&&!(e[n]===r&&(e.splice(n,1),a));n--);},si=function(e){e.splice(0,e.length)},Ku=function(e,r){for(var a=0;a<r.length;a++){var n=r[a];e.push(n)}},er=function(e,r,a){return a&&(r=Et(a,r)),e[r]},Tr=function(e,r,a,n){a&&(r=Et(a,r)),e[r]=n},Zu=function(){function t(){ve(this,t),this._obj={}}return C(t,[{key:"set",value:function(r,a){return this._obj[r]=a,this}},{key:"delete",value:function(r){return this._obj[r]=void 0,this}},{key:"clear",value:function(){this._obj={}}},{key:"has",value:function(r){return this._obj[r]!==void 0}},{key:"get",value:function(r){return this._obj[r]}}]),t}(),ur=typeof Map<"u"?Map:Zu,Qu="undefined",Ju=function(){function t(e){if(ve(this,t),this._obj=Object.create(null),this.size=0,e!=null){var r;e.instanceString!=null&&e.instanceString()===this.instanceString()?r=e.toArray():r=e;for(var a=0;a<r.length;a++)this.add(r[a])}}return C(t,[{key:"instanceString",value:function(){return"set"}},{key:"add",value:function(r){var a=this._obj;a[r]!==1&&(a[r]=1,this.size++)}},{key:"delete",value:function(r){var a=this._obj;a[r]===1&&(a[r]=0,this.size--)}},{key:"clear",value:function(){this._obj=Object.create(null)}},{key:"has",value:function(r){return this._obj[r]===1}},{key:"toArray",value:function(){var r=this;return Object.keys(this._obj).filter(function(a){return r.has(a)})}},{key:"forEach",value:function(r,a){return this.toArray().forEach(r,a)}}]),t}(),Jr=(typeof Set>"u"?"undefined":_(Set))!==Qu?Set:Ju,fn=function(e,r){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(e===void 0||r===void 0||!Ye(e)){xt("An element must have a core reference and parameters set");return}var n=r.group;if(n==null&&(r.data&&r.data.source!=null&&r.data.target!=null?n="edges":n="nodes"),n!=="nodes"&&n!=="edges"){xt("An element must be of type `nodes` or `edges`; you specified `"+n+"`");return}this.length=1,this[0]=this;var i=this._private={cy:e,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:n,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?n==="edges":!!r.pannable,active:!1,classes:new Jr,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(i.position.x==null&&(i.position.x=0),i.position.y==null&&(i.position.y=0),r.renderedPosition){var o=r.renderedPosition,s=e.pan(),u=e.zoom();i.position={x:(o.x-s.x)/u,y:(o.y-s.y)/u}}var l=[];te(r.classes)?l=r.classes:ee(r.classes)&&(l=r.classes.split(/\s+/));for(var v=0,f=l.length;v<f;v++){var h=l[v];!h||h===""||i.classes.add(h)}this.createEmitter();var d=r.style||r.css;d&&(ht("Setting a `style` bypass at element creation should be done only when absolutely necessary. Try to use the stylesheet instead."),this.style(d)),(a===void 0||a)&&this.restore()},bo=function(e){return e={bfs:e.bfs||!e.dfs,dfs:e.dfs||!e.bfs},function(a,n,i){var o;S(a)&&!pe(a)&&(o=a,a=o.roots||o.root,n=o.visit,i=o.directed),i=arguments.length===2&&!H(n)?n:i,n=H(n)?n:function(){};for(var s=this._private.cy,u=a=ee(a)?this.filter(a):a,l=[],v=[],f={},h={},d={},c=0,y,p=this.byGroup(),g=p.nodes,m=p.edges,b=0;b<u.length;b++){var E=u[b],M=E.id();E.isNode()&&(l.unshift(E),e.bfs&&(d[M]=!0,v.push(E)),h[M]=0)}for(var L=function(){var X=e.bfs?l.shift():l.pop(),B=X.id();if(e.dfs){if(d[B])return"continue";d[B]=!0,v.push(X)}var re=h[B],K=f[B],W=K!=null?K.source():null,ae=K!=null?K.target():null,ue=K==null?void 0:X.same(W)?ae[0]:W[0],me=void 0;if(me=n(X,K,ue,c++,re),me===!0)return y=X,"break";if(me===!1)return"break";for(var ie=X.connectedEdges().filter(function(De){return(!i||De.source().same(X))&&m.has(De)}),ge=0;ge<ie.length;ge++){var Ee=ie[ge],Ce=Ee.connectedNodes().filter(function(De){return!De.same(X)&&g.has(De)}),we=Ce.id();Ce.length!==0&&!d[we]&&(Ce=Ce[0],l.push(Ce),e.bfs&&(d[we]=!0,v.push(Ce)),f[we]=Ee,h[we]=h[B]+1)}};l.length!==0;){var w=L();if(w!=="continue"&&w==="break")break}for(var k=s.collection(),D=0;D<v.length;D++){var F=v[D],G=f[F.id()];G!=null&&k.push(G),k.push(F)}return{path:s.collection(k),found:s.collection(y)}}},Ma={breadthFirstSearch:bo({bfs:!0}),depthFirstSearch:bo({dfs:!0})};Ma.bfs=Ma.breadthFirstSearch,Ma.dfs=Ma.depthFirstSearch;var ju=au(function(t,e){(function(){var r,a,n,i,o,s,u,l,v,f,h,d,c,y,p;n=Math.floor,f=Math.min,a=function(g,m){return g<m?-1:g>m?1:0},v=function(g,m,b,E,M){var L;if(b==null&&(b=0),M==null&&(M=a),b<0)throw new Error("lo must be non-negative");for(E==null&&(E=g.length);b<E;)L=n((b+E)/2),M(m,g[L])<0?E=L:b=L+1;return[].splice.apply(g,[b,b-b].concat(m)),m},s=function(g,m,b){return b==null&&(b=a),g.push(m),y(g,0,g.length-1,b)},o=function(g,m){var b,E;return m==null&&(m=a),b=g.pop(),g.length?(E=g[0],g[0]=b,p(g,0,m)):E=b,E},l=function(g,m,b){var E;return b==null&&(b=a),E=g[0],g[0]=m,p(g,0,b),E},u=function(g,m,b){var E;return b==null&&(b=a),g.length&&b(g[0],m)<0&&(E=[g[0],m],m=E[0],g[0]=E[1],p(g,0,b)),m},i=function(g,m){var b,E,M,L,w,k;for(m==null&&(m=a),L=(function(){k=[];for(var D=0,F=n(g.length/2);0<=F?D<F:D>F;0<=F?D++:D--)k.push(D);return k}).apply(this).reverse(),w=[],E=0,M=L.length;E<M;E++)b=L[E],w.push(p(g,b,m));return w},c=function(g,m,b){var E;if(b==null&&(b=a),E=g.indexOf(m),E!==-1)return y(g,0,E,b),p(g,E,b)},h=function(g,m,b){var E,M,L,w,k;if(b==null&&(b=a),M=g.slice(0,m),!M.length)return M;for(i(M,b),k=g.slice(m),L=0,w=k.length;L<w;L++)E=k[L],u(M,E,b);return M.sort(b).reverse()},d=function(g,m,b){var E,M,L,w,k,D,F,G,I;if(b==null&&(b=a),m*10<=g.length){if(L=g.slice(0,m).sort(b),!L.length)return L;for(M=L[L.length-1],F=g.slice(m),w=0,D=F.length;w<D;w++)E=F[w],b(E,M)<0&&(v(L,E,0,null,b),L.pop(),M=L[L.length-1]);return L}for(i(g,b),I=[],k=0,G=f(m,g.length);0<=G?k<G:k>G;0<=G?++k:--k)I.push(o(g,b));return I},y=function(g,m,b,E){var M,L,w;for(E==null&&(E=a),M=g[b];b>m;){if(w=b-1>>1,L=g[w],E(M,L)<0){g[b]=L,b=w;continue}break}return g[b]=M},p=function(g,m,b){var E,M,L,w,k;for(b==null&&(b=a),M=g.length,k=m,L=g[m],E=2*m+1;E<M;)w=E+1,w<M&&!(b(g[E],g[w])<0)&&(E=w),g[m]=g[E],m=E,E=2*m+1;return g[m]=L,y(g,k,m,b)},r=function(){g.push=s,g.pop=o,g.replace=l,g.pushpop=u,g.heapify=i,g.updateItem=c,g.nlargest=h,g.nsmallest=d;function g(m){this.cmp=m??a,this.nodes=[]}return g.prototype.push=function(m){return s(this.nodes,m,this.cmp)},g.prototype.pop=function(){return o(this.nodes,this.cmp)},g.prototype.peek=function(){return this.nodes[0]},g.prototype.contains=function(m){return this.nodes.indexOf(m)!==-1},g.prototype.replace=function(m){return l(this.nodes,m,this.cmp)},g.prototype.pushpop=function(m){return u(this.nodes,m,this.cmp)},g.prototype.heapify=function(){return i(this.nodes,this.cmp)},g.prototype.updateItem=function(m){return c(this.nodes,m,this.cmp)},g.prototype.clear=function(){return this.nodes=[]},g.prototype.empty=function(){return this.nodes.length===0},g.prototype.size=function(){return this.nodes.length},g.prototype.clone=function(){var m;return m=new g,m.nodes=this.nodes.slice(0),m},g.prototype.toArray=function(){return this.nodes.slice(0)},g.prototype.insert=g.prototype.push,g.prototype.top=g.prototype.peek,g.prototype.front=g.prototype.peek,g.prototype.has=g.prototype.contains,g.prototype.copy=g.prototype.clone,g}(),function(g,m){return t.exports=m()}(this,function(){return r})}).call(Sa)}),Ra=ju,ev=At({root:null,weight:function(e){return 1},directed:!1}),tv={dijkstra:function(e){if(!S(e)){var r=arguments;e={root:r[0],weight:r[1],directed:r[2]}}var a=ev(e),n=a.root,i=a.weight,o=a.directed,s=this,u=i,l=ee(n)?this.filter(n)[0]:n[0],v={},f={},h={},d=this.byGroup(),c=d.nodes,y=d.edges;y.unmergeBy(function(re){return re.isLoop()});for(var p=function(K){return v[K.id()]},g=function(K,W){v[K.id()]=W,m.updateItem(K)},m=new Ra(function(re,K){return p(re)-p(K)}),b=0;b<c.length;b++){var E=c[b];v[E.id()]=E.same(l)?0:1/0,m.push(E)}for(var M=function(K,W){for(var ae=(o?K.edgesTo(W):K.edgesWith(W)).intersect(y),ue=1/0,me,ie=0;ie<ae.length;ie++){var ge=ae[ie],Ee=u(ge);(Ee<ue||!me)&&(ue=Ee,me=ge)}return{edge:me,dist:ue}};m.size()>0;){var L=m.pop(),w=p(L),k=L.id();if(h[k]=w,w!==1/0)for(var D=L.neighborhood().intersect(c),F=0;F<D.length;F++){var G=D[F],I=G.id(),X=M(L,G),B=w+X.dist;B<p(G)&&(g(G,B),f[I]={node:L,edge:X.edge})}}return{distanceTo:function(K){var W=ee(K)?c.filter(K)[0]:K[0];return h[W.id()]},pathTo:function(K){var W=ee(K)?c.filter(K)[0]:K[0],ae=[],ue=W,me=ue.id();if(W.length>0)for(ae.unshift(W);f[me];){var ie=f[me];ae.unshift(ie.edge),ae.unshift(ie.node),ue=ie.node,me=ue.id()}return s.spawn(ae)}}}},rv={kruskal:function(e){e=e||function(b){return 1};for(var r=this.byGroup(),a=r.nodes,n=r.edges,i=a.length,o=new Array(i),s=a,u=function(E){for(var M=0;M<o.length;M++){var L=o[M];if(L.has(E))return M}},l=0;l<i;l++)o[l]=this.spawn(a[l]);for(var v=n.sort(function(b,E){return e(b)-e(E)}),f=0;f<v.length;f++){var h=v[f],d=h.source()[0],c=h.target()[0],y=u(d),p=u(c),g=o[y],m=o[p];y!==p&&(s.merge(h),g.merge(m),o.splice(p,1))}return s}},av=At({root:null,goal:null,weight:function(e){return 1},heuristic:function(e){return 0},directed:!1}),nv={aStar:function(e){var r=this.cy(),a=av(e),n=a.root,i=a.goal,o=a.heuristic,s=a.directed,u=a.weight;n=r.collection(n)[0],i=r.collection(i)[0];var l=n.id(),v=i.id(),f={},h={},d={},c=new Ra(function(me,ie){return h[me.id()]-h[ie.id()]}),y=new Jr,p={},g={},m=function(ie,ge){c.push(ie),y.add(ge)},b,E,M=function(){b=c.pop(),E=b.id(),y.delete(E)},L=function(ie){return y.has(ie)};m(n,l),f[l]=0,h[l]=o(n);for(var w=0;c.size()>0;){if(M(),w++,E===v){for(var k=[],D=i,F=v,G=g[F];k.unshift(D),G!=null&&k.unshift(G),D=p[F],D!=null;)F=D.id(),G=g[F];return{found:!0,distance:f[E],path:this.spawn(k),steps:w}}d[E]=!0;for(var I=b._private.edges,X=0;X<I.length;X++){var B=I[X];if(this.hasElementWithId(B.id())&&!(s&&B.data("source")!==E)){var re=B.source(),K=B.target(),W=re.id()!==E?re:K,ae=W.id();if(this.hasElementWithId(ae)&&!d[ae]){var ue=f[E]+u(B);if(!L(ae)){f[ae]=ue,h[ae]=ue+o(W),m(W,ae),p[ae]=b,g[ae]=B;continue}ue<f[ae]&&(f[ae]=ue,h[ae]=ue+o(W),p[ae]=b,g[ae]=B)}}}}return{found:!1,distance:void 0,path:void 0,steps:w}}},iv=At({weight:function(e){return 1},directed:!1}),ov={floydWarshall:function(e){for(var r=this.cy(),a=iv(e),n=a.weight,i=a.directed,o=n,s=this.byGroup(),u=s.nodes,l=s.edges,v=u.length,f=v*v,h=function(Ee){return u.indexOf(Ee)},d=function(Ee){return u[Ee]},c=new Array(f),y=0;y<f;y++){var p=y%v,g=(y-p)/v;g===p?c[y]=0:c[y]=1/0}for(var m=new Array(f),b=new Array(f),E=0;E<l.length;E++){var M=l[E],L=M.source()[0],w=M.target()[0];if(L!==w){var k=h(L),D=h(w),F=k*v+D,G=o(M);if(c[F]>G&&(c[F]=G,m[F]=D,b[F]=M),!i){var I=D*v+k;!i&&c[I]>G&&(c[I]=G,m[I]=k,b[I]=M)}}}for(var X=0;X<v;X++)for(var B=0;B<v;B++)for(var re=B*v+X,K=0;K<v;K++){var W=B*v+K,ae=X*v+K;c[re]+c[ae]<c[W]&&(c[W]=c[re]+c[ae],m[W]=m[re])}var ue=function(Ee){return(ee(Ee)?r.filter(Ee):Ee)[0]},me=function(Ee){return h(ue(Ee))},ie={distance:function(Ee,Ce){var we=me(Ee),De=me(Ce);return c[we*v+De]},path:function(Ee,Ce){var we=me(Ee),De=me(Ce),oe=d(we);if(we===De)return oe.collection();if(m[we*v+De]==null)return r.collection();var xe=r.collection(),Le=we,Se;for(xe.merge(oe);we!==De;)Le=we,we=m[we*v+De],Se=b[Le*v+we],xe.merge(Se),xe.merge(d(we));return xe}};return ie}},sv=At({weight:function(e){return 1},directed:!1,root:null}),lv={bellmanFord:function(e){var r=this,a=sv(e),n=a.weight,i=a.directed,o=a.root,s=n,u=this,l=this.cy(),v=this.byGroup(),f=v.edges,h=v.nodes,d=h.length,c=new ur,y=!1,p=[];o=l.collection(o)[0],f.unmergeBy(function(ze){return ze.isLoop()});for(var g=f.length,m=function(Be){var Ue=c.get(Be.id());return Ue||(Ue={},c.set(Be.id(),Ue)),Ue},b=function(Be){return(ee(Be)?l.$(Be):Be)[0]},E=function(Be){return m(b(Be)).dist},M=function(Be){for(var Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:o,rt=b(Be),je=[],We=rt;;){if(We==null)return r.spawn();var et=m(We),fe=et.edge,O=et.pred;if(je.unshift(We[0]),We.same(Ue)&&je.length>0)break;fe!=null&&je.unshift(fe),We=O}return u.spawn(je)},L=0;L<d;L++){var w=h[L],k=m(w);w.same(o)?k.dist=0:k.dist=1/0,k.pred=null,k.edge=null}for(var D=!1,F=function(Be,Ue,rt,je,We,et){var fe=je.dist+et;fe<We.dist&&!rt.same(je.edge)&&(We.dist=fe,We.pred=Be,We.edge=rt,D=!0)},G=1;G<d;G++){D=!1;for(var I=0;I<g;I++){var X=f[I],B=X.source(),re=X.target(),K=s(X),W=m(B),ae=m(re);F(B,re,X,W,ae,K),i||F(re,B,X,ae,W,K)}if(!D)break}if(D)for(var ue=[],me=0;me<g;me++){var ie=f[me],ge=ie.source(),Ee=ie.target(),Ce=s(ie),we=m(ge).dist,De=m(Ee).dist;if(we+Ce<De||!i&&De+Ce<we)if(y||(ht("Graph contains a negative weight cycle for Bellman-Ford"),y=!0),e.findNegativeWeightCycles!==!1){var oe=[];we+Ce<De&&oe.push(ge),!i&&De+Ce<we&&oe.push(Ee);for(var xe=oe.length,Le=0;Le<xe;Le++){var Se=oe[Le],Oe=[Se];Oe.push(m(Se).edge);for(var Fe=m(Se).pred;Oe.indexOf(Fe)===-1;)Oe.push(Fe),Oe.push(m(Fe).edge),Fe=m(Fe).pred;Oe=Oe.slice(Oe.indexOf(Fe));for(var Xe=Oe[0].id(),Ie=0,Me=2;Me<Oe.length;Me+=2)Oe[Me].id()<Xe&&(Xe=Oe[Me].id(),Ie=Me);Oe=Oe.slice(Ie).concat(Oe.slice(0,Ie)),Oe.push(Oe[0]);var $e=Oe.map(function(ze){return ze.id()}).join(",");ue.indexOf($e)===-1&&(p.push(u.spawn(Oe)),ue.push($e))}}else break}return{distanceTo:E,pathTo:M,hasNegativeWeightCycle:y,negativeWeightCycles:p}}},uv=Math.sqrt(2),vv=function(e,r,a){a.length===0&&xt("Karger-Stein must be run on a connected (sub)graph");for(var n=a[e],i=n[1],o=n[2],s=r[i],u=r[o],l=a,v=l.length-1;v>=0;v--){var f=l[v],h=f[1],d=f[2];(r[h]===s&&r[d]===u||r[h]===u&&r[d]===s)&&l.splice(v,1)}for(var c=0;c<l.length;c++){var y=l[c];y[1]===u?(l[c]=y.slice(),l[c][1]=s):y[2]===u&&(l[c]=y.slice(),l[c][2]=s)}for(var p=0;p<r.length;p++)r[p]===u&&(r[p]=s);return l},li=function(e,r,a,n){for(;a>n;){var i=Math.floor(Math.random()*r.length);r=vv(i,e,r),a--}return r},fv={kargerStein:function(){var e=this,r=this.byGroup(),a=r.nodes,n=r.edges;n.unmergeBy(function(ae){return ae.isLoop()});var i=a.length,o=n.length,s=Math.ceil(Math.pow(Math.log(i)/Math.LN2,2)),u=Math.floor(i/uv);if(i<2){xt("At least 2 nodes are required for Karger-Stein algorithm");return}for(var l=[],v=0;v<o;v++){var f=n[v];l.push([v,a.indexOf(f.source()),a.indexOf(f.target())])}for(var h=1/0,d=[],c=new Array(i),y=new Array(i),p=new Array(i),g=function(ue,me){for(var ie=0;ie<i;ie++)me[ie]=ue[ie]},m=0;m<=s;m++){for(var b=0;b<i;b++)y[b]=b;var E=li(y,l.slice(),i,u),M=E.slice();g(y,p);var L=li(y,E,u,2),w=li(p,M,u,2);L.length<=w.length&&L.length<h?(h=L.length,d=L,g(y,c)):w.length<=L.length&&w.length<h&&(h=w.length,d=w,g(p,c))}for(var k=this.spawn(d.map(function(ae){return n[ae[0]]})),D=this.spawn(),F=this.spawn(),G=c[0],I=0;I<c.length;I++){var X=c[I],B=a[I];X===G?D.merge(B):F.merge(B)}var re=function(ue){var me=e.spawn();return ue.forEach(function(ie){me.merge(ie),ie.connectedEdges().forEach(function(ge){e.contains(ge)&&!k.contains(ge)&&me.merge(ge)})}),me},K=[re(D),re(F)],W={cut:k,components:K,partition1:D,partition2:F};return W}},hv=function(e){return{x:e.x,y:e.y}},hn=function(e,r,a){return{x:e.x*r+a.x,y:e.y*r+a.y}},Eo=function(e,r,a){return{x:(e.x-a.x)/r,y:(e.y-a.y)/r}},jr=function(e){return{x:e[0],y:e[1]}},cv=function(e){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=1/0,i=r;i<a;i++){var o=e[i];isFinite(o)&&(n=Math.min(o,n))}return n},dv=function(e){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=-1/0,i=r;i<a;i++){var o=e[i];isFinite(o)&&(n=Math.max(o,n))}return n},gv=function(e){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=0,i=0,o=r;o<a;o++){var s=e[o];isFinite(s)&&(n+=s,i++)}return n/i},pv=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=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;n?e=e.slice(r,a):(a<e.length&&e.splice(a,e.length-a),r>0&&e.splice(0,r));for(var s=0,u=e.length-1;u>=0;u--){var l=e[u];o?isFinite(l)||(e[u]=-1/0,s++):e.splice(u,1)}i&&e.sort(function(h,d){return h-d});var v=e.length,f=Math.floor(v/2);return v%2!==0?e[f+1+s]:(e[f-1+s]+e[f+s])/2},yv=function(e){return Math.PI*e/180},cn=function(e,r){return Math.atan2(r,e)-Math.PI/2},ui=Math.log2||function(t){return Math.log(t)/Math.log(2)},wo=function(e){return e>0?1:e<0?-1:0},Br=function(e,r){return Math.sqrt(Fr(e,r))},Fr=function(e,r){var a=r.x-e.x,n=r.y-e.y;return a*a+n*n},mv=function(e){for(var r=e.length,a=0,n=0;n<r;n++)a+=e[n];for(var i=0;i<r;i++)e[i]=e[i]/a;return e},Lt=function(e,r,a,n){return(1-n)*(1-n)*e+2*(1-n)*n*r+n*n*a},ea=function(e,r,a,n){return{x:Lt(e.x,r.x,a.x,n),y:Lt(e.y,r.y,a.y,n)}},bv=function(e,r,a,n){var i={x:r.x-e.x,y:r.y-e.y},o=Br(e,r),s={x:i.x/o,y:i.y/o};return a=a??0,n=n??a*o,{x:e.x+s.x*n,y:e.y+s.y*n}},ka=function(e,r,a){return Math.max(e,Math.min(a,r))},Yt=function(e){if(e==null)return{x1:1/0,y1:1/0,x2:-1/0,y2:-1/0,w:0,h:0};if(e.x1!=null&&e.y1!=null){if(e.x2!=null&&e.y2!=null&&e.x2>=e.x1&&e.y2>=e.y1)return{x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,w:e.x2-e.x1,h:e.y2-e.y1};if(e.w!=null&&e.h!=null&&e.w>=0&&e.h>=0)return{x1:e.x1,y1:e.y1,x2:e.x1+e.w,y2:e.y1+e.h,w:e.w,h:e.h}}},Ev=function(e){return{x1:e.x1,x2:e.x2,w:e.w,y1:e.y1,y2:e.y2,h:e.h}},wv=function(e){e.x1=1/0,e.y1=1/0,e.x2=-1/0,e.y2=-1/0,e.w=0,e.h=0},xv=function(e,r,a){return{x1:e.x1+r,x2:e.x2+r,y1:e.y1+a,y2:e.y2+a,w:e.w,h:e.h}},xo=function(e,r){e.x1=Math.min(e.x1,r.x1),e.x2=Math.max(e.x2,r.x2),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,r.y1),e.y2=Math.max(e.y2,r.y2),e.h=e.y2-e.y1},Tv=function(e,r,a){e.x1=Math.min(e.x1,r),e.x2=Math.max(e.x2,r),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,a),e.y2=Math.max(e.y2,a),e.h=e.y2-e.y1},dn=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return e.x1-=r,e.x2+=r,e.y1-=r,e.y2+=r,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},gn=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0],a,n,i,o;if(r.length===1)a=n=i=o=r[0];else if(r.length===2)a=i=r[0],o=n=r[1];else if(r.length===4){var s=x(r,4);a=s[0],n=s[1],i=s[2],o=s[3]}return e.x1-=o,e.x2+=n,e.y1-=a,e.y2+=i,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},To=function(e,r){e.x1=r.x1,e.y1=r.y1,e.x2=r.x2,e.y2=r.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1},vi=function(e,r){return!(e.x1>r.x2||r.x1>e.x2||e.x2<r.x1||r.x2<e.x1||e.y2<r.y1||r.y2<e.y1||e.y1>r.y2||r.y1>e.y2)},ta=function(e,r,a){return e.x1<=r&&r<=e.x2&&e.y1<=a&&a<=e.y2},Cv=function(e,r){return ta(e,r.x,r.y)},Co=function(e,r){return ta(e,r.x1,r.y1)&&ta(e,r.x2,r.y2)},Do=function(e,r,a,n,i,o,s){var u=Fa(i,o),l=i/2,v=o/2,f;{var h=a-l+u-s,d=n-v-s,c=a+l-u+s,y=d;if(f=Cr(e,r,a,n,h,d,c,y,!1),f.length>0)return f}{var p=a+l+s,g=n-v+u-s,m=p,b=n+v-u+s;if(f=Cr(e,r,a,n,p,g,m,b,!1),f.length>0)return f}{var E=a-l+u-s,M=n+v+s,L=a+l-u+s,w=M;if(f=Cr(e,r,a,n,E,M,L,w,!1),f.length>0)return f}{var k=a-l-s,D=n-v+u-s,F=k,G=n+v-u+s;if(f=Cr(e,r,a,n,k,D,F,G,!1),f.length>0)return f}var I;{var X=a-l+u,B=n-v+u;if(I=Pa(e,r,a,n,X,B,u+s),I.length>0&&I[0]<=X&&I[1]<=B)return[I[0],I[1]]}{var re=a+l-u,K=n-v+u;if(I=Pa(e,r,a,n,re,K,u+s),I.length>0&&I[0]>=re&&I[1]<=K)return[I[0],I[1]]}{var W=a+l-u,ae=n+v-u;if(I=Pa(e,r,a,n,W,ae,u+s),I.length>0&&I[0]>=W&&I[1]>=ae)return[I[0],I[1]]}{var ue=a-l+u,me=n+v-u;if(I=Pa(e,r,a,n,ue,me,u+s),I.length>0&&I[0]<=ue&&I[1]>=me)return[I[0],I[1]]}return[]},Dv=function(e,r,a,n,i,o,s){var u=s,l=Math.min(a,i),v=Math.max(a,i),f=Math.min(n,o),h=Math.max(n,o);return l-u<=e&&e<=v+u&&f-u<=r&&r<=h+u},Sv=function(e,r,a,n,i,o,s,u,l){var v={x1:Math.min(a,s,i)-l,x2:Math.max(a,s,i)+l,y1:Math.min(n,u,o)-l,y2:Math.max(n,u,o)+l};return!(e<v.x1||e>v.x2||r<v.y1||r>v.y2)},Lv=function(e,r,a,n){a-=n;var i=r*r-4*e*a;if(i<0)return[];var o=Math.sqrt(i),s=2*e,u=(-r+o)/s,l=(-r-o)/s;return[u,l]},Av=function(e,r,a,n,i){var o=1e-5;e===0&&(e=o),r/=e,a/=e,n/=e;var s,u,l,v,f,h,d,c;if(u=(3*a-r*r)/9,l=-(27*n)+r*(9*a-2*(r*r)),l/=54,s=u*u*u+l*l,i[1]=0,d=r/3,s>0){f=l+Math.sqrt(s),f=f<0?-Math.pow(-f,1/3):Math.pow(f,1/3),h=l-Math.sqrt(s),h=h<0?-Math.pow(-h,1/3):Math.pow(h,1/3),i[0]=-d+f+h,d+=(f+h)/2,i[4]=i[2]=-d,d=Math.sqrt(3)*(-h+f)/2,i[3]=d,i[5]=-d;return}if(i[5]=i[3]=0,s===0){c=l<0?-Math.pow(-l,1/3):Math.pow(l,1/3),i[0]=-d+2*c,i[4]=i[2]=-(c+d);return}u=-u,v=u*u*u,v=Math.acos(l/Math.sqrt(v)),c=2*Math.sqrt(u),i[0]=-d+c*Math.cos(v/3),i[2]=-d+c*Math.cos((v+2*Math.PI)/3),i[4]=-d+c*Math.cos((v+4*Math.PI)/3)},Ov=function(e,r,a,n,i,o,s,u){var l=1*a*a-4*a*i+2*a*s+4*i*i-4*i*s+s*s+n*n-4*n*o+2*n*u+4*o*o-4*o*u+u*u,v=1*9*a*i-3*a*a-3*a*s-6*i*i+3*i*s+9*n*o-3*n*n-3*n*u-6*o*o+3*o*u,f=1*3*a*a-6*a*i+a*s-a*e+2*i*i+2*i*e-s*e+3*n*n-6*n*o+n*u-n*r+2*o*o+2*o*r-u*r,h=1*a*i-a*a+a*e-i*e+n*o-n*n+n*r-o*r,d=[];Av(l,v,f,h,d);for(var c=1e-7,y=[],p=0;p<6;p+=2)Math.abs(d[p+1])<c&&d[p]>=0&&d[p]<=1&&y.push(d[p]);y.push(1),y.push(0);for(var g=-1,m,b,E,M=0;M<y.length;M++)m=Math.pow(1-y[M],2)*a+2*(1-y[M])*y[M]*i+y[M]*y[M]*s,b=Math.pow(1-y[M],2)*n+2*(1-y[M])*y[M]*o+y[M]*y[M]*u,E=Math.pow(m-e,2)+Math.pow(b-r,2),g>=0?E<g&&(g=E):g=E;return g},Nv=function(e,r,a,n,i,o){var s=[e-a,r-n],u=[i-a,o-n],l=u[0]*u[0]+u[1]*u[1],v=s[0]*s[0]+s[1]*s[1],f=s[0]*u[0]+s[1]*u[1],h=f*f/l;return f<0?v:h>l?(e-i)*(e-i)+(r-o)*(r-o):v-h},Ht=function(e,r,a){for(var n,i,o,s,u,l=0,v=0;v<a.length/2;v++)if(n=a[v*2],i=a[v*2+1],v+1<a.length/2?(o=a[(v+1)*2],s=a[(v+1)*2+1]):(o=a[(v+1-a.length/2)*2],s=a[(v+1-a.length/2)*2+1]),!(n==e&&o==e))if(n>=e&&e>=o||n<=e&&e<=o)u=(e-n)/(o-n)*(s-i)+i,u>r&&l++;else continue;return l%2!==0},pr=function(e,r,a,n,i,o,s,u,l){var v=new Array(a.length),f;u[0]!=null?(f=Math.atan(u[1]/u[0]),u[0]<0?f=f+Math.PI/2:f=-f-Math.PI/2):f=u;for(var h=Math.cos(-f),d=Math.sin(-f),c=0;c<v.length/2;c++)v[c*2]=o/2*(a[c*2]*h-a[c*2+1]*d),v[c*2+1]=s/2*(a[c*2+1]*h+a[c*2]*d),v[c*2]+=n,v[c*2+1]+=i;var y;if(l>0){var p=yn(v,-l);y=pn(p)}else y=v;return Ht(e,r,y)},Iv=function(e,r,a,n,i,o,s){for(var u=new Array(a.length),l=o/2,v=s/2,f=ci(o,s),h=f*f,d=0;d<a.length/4;d++){var c=void 0,y=void 0;d===0?c=a.length-2:c=d*4-2,y=d*4+2;var p=n+l*a[d*4],g=i+v*a[d*4+1],m=-a[c]*a[y]-a[c+1]*a[y+1],b=f/Math.tan(Math.acos(m)/2),E=p-b*a[c],M=g-b*a[c+1],L=p+b*a[y],w=g+b*a[y+1];u[d*4]=E,u[d*4+1]=M,u[d*4+2]=L,u[d*4+3]=w;var k=a[c+1],D=-a[c],F=k*a[y]+D*a[y+1];F<0&&(k*=-1,D*=-1);var G=E+k*f,I=M+D*f,X=Math.pow(G-e,2)+Math.pow(I-r,2);if(X<=h)return!0}return Ht(e,r,u)},pn=function(e){for(var r=new Array(e.length/2),a,n,i,o,s,u,l,v,f=0;f<e.length/4;f++){a=e[f*4],n=e[f*4+1],i=e[f*4+2],o=e[f*4+3],f<e.length/4-1?(s=e[(f+1)*4],u=e[(f+1)*4+1],l=e[(f+1)*4+2],v=e[(f+1)*4+3]):(s=e[0],u=e[1],l=e[2],v=e[3]);var h=Cr(a,n,i,o,s,u,l,v,!0);r[f*2]=h[0],r[f*2+1]=h[1]}return r},yn=function(e,r){for(var a=new Array(e.length*2),n,i,o,s,u=0;u<e.length/2;u++){n=e[u*2],i=e[u*2+1],u<e.length/2-1?(o=e[(u+1)*2],s=e[(u+1)*2+1]):(o=e[0],s=e[1]);var l=s-i,v=-(o-n),f=Math.sqrt(l*l+v*v),h=l/f,d=v/f;a[u*4]=n+h*r,a[u*4+1]=i+d*r,a[u*4+2]=o+h*r,a[u*4+3]=s+d*r}return a},Mv=function(e,r,a,n,i,o){var s=a-e,u=n-r;s/=i,u/=o;var l=Math.sqrt(s*s+u*u),v=l-1;if(v<0)return[];var f=v/l;return[(a-e)*f+e,(n-r)*f+r]},Gr=function(e,r,a,n,i,o,s){return e-=i,r-=o,e/=a/2+s,r/=n/2+s,e*e+r*r<=1},Pa=function(e,r,a,n,i,o,s){var u=[a-e,n-r],l=[e-i,r-o],v=u[0]*u[0]+u[1]*u[1],f=2*(l[0]*u[0]+l[1]*u[1]),h=l[0]*l[0]+l[1]*l[1]-s*s,d=f*f-4*v*h;if(d<0)return[];var c=(-f+Math.sqrt(d))/(2*v),y=(-f-Math.sqrt(d))/(2*v),p=Math.min(c,y),g=Math.max(c,y),m=[];if(p>=0&&p<=1&&m.push(p),g>=0&&g<=1&&m.push(g),m.length===0)return[];var b=m[0]*u[0]+e,E=m[0]*u[1]+r;if(m.length>1){if(m[0]==m[1])return[b,E];var M=m[1]*u[0]+e,L=m[1]*u[1]+r;return[b,E,M,L]}else return[b,E]},fi=function(e,r,a){return r<=e&&e<=a||a<=e&&e<=r?e:e<=r&&r<=a||a<=r&&r<=e?r:a},Cr=function(e,r,a,n,i,o,s,u,l){var v=e-i,f=a-e,h=s-i,d=r-o,c=n-r,y=u-o,p=h*d-y*v,g=f*d-c*v,m=y*f-h*c;if(m!==0){var b=p/m,E=g/m,M=.001,L=0-M,w=1+M;return L<=b&&b<=w&&L<=E&&E<=w?[e+b*f,r+b*c]:l?[e+b*f,r+b*c]:[]}else return p===0||g===0?fi(e,a,s)===s?[s,u]:fi(e,a,i)===i?[i,o]:fi(i,s,a)===a?[a,n]:[]:[]},Ba=function(e,r,a,n,i,o,s,u){var l=[],v,f=new Array(a.length),h=!0;o==null&&(h=!1);var d;if(h){for(var c=0;c<f.length/2;c++)f[c*2]=a[c*2]*o+n,f[c*2+1]=a[c*2+1]*s+i;if(u>0){var y=yn(f,-u);d=pn(y)}else d=f}else d=a;for(var p,g,m,b,E=0;E<d.length/2;E++)p=d[E*2],g=d[E*2+1],E<d.length/2-1?(m=d[(E+1)*2],b=d[(E+1)*2+1]):(m=d[0],b=d[1]),v=Cr(e,r,n,i,p,g,m,b),v.length!==0&&l.push(v[0],v[1]);return l},Rv=function(e,r,a,n,i,o,s,u){for(var l=[],v,f=new Array(a.length),h=o/2,d=s/2,c=ci(o,s),y=0;y<a.length/4;y++){var p=void 0,g=void 0;y===0?p=a.length-2:p=y*4-2,g=y*4+2;var m=n+h*a[y*4],b=i+d*a[y*4+1],E=-a[p]*a[g]-a[p+1]*a[g+1],M=c/Math.tan(Math.acos(E)/2),L=m-M*a[p],w=b-M*a[p+1],k=m+M*a[g],D=b+M*a[g+1];y===0?(f[a.length-2]=L,f[a.length-1]=w):(f[y*4-2]=L,f[y*4-1]=w),f[y*4]=k,f[y*4+1]=D;var F=a[p+1],G=-a[p],I=F*a[g]+G*a[g+1];I<0&&(F*=-1,G*=-1);var X=L+F*c,B=w+G*c;v=Pa(e,r,n,i,X,B,c),v.length!==0&&l.push(v[0],v[1])}for(var re=0;re<f.length/4;re++)v=Cr(e,r,n,i,f[re*4],f[re*4+1],f[re*4+2],f[re*4+3],!1),v.length!==0&&l.push(v[0],v[1]);if(l.length>2){for(var K=[l[0],l[1]],W=Math.pow(K[0]-e,2)+Math.pow(K[1]-r,2),ae=1;ae<l.length/2;ae++){var ue=Math.pow(l[ae*2]-e,2)+Math.pow(l[ae*2+1]-r,2);ue<=W&&(K[0]=l[ae*2],K[1]=l[ae*2+1],W=ue)}return K}return l},mn=function(e,r,a){var n=[e[0]-r[0],e[1]-r[1]],i=Math.sqrt(n[0]*n[0]+n[1]*n[1]),o=(i-a)/i;return o<0&&(o=1e-5),[r[0]+o*n[0],r[1]+o*n[1]]},Ut=function(e,r){var a=hi(e,r);return a=So(a),a},So=function(e){for(var r,a,n=e.length/2,i=1/0,o=1/0,s=-1/0,u=-1/0,l=0;l<n;l++)r=e[2*l],a=e[2*l+1],i=Math.min(i,r),s=Math.max(s,r),o=Math.min(o,a),u=Math.max(u,a);for(var v=2/(s-i),f=2/(u-o),h=0;h<n;h++)r=e[2*h]=e[2*h]*v,a=e[2*h+1]=e[2*h+1]*f,i=Math.min(i,r),s=Math.max(s,r),o=Math.min(o,a),u=Math.max(u,a);if(o<-1)for(var d=0;d<n;d++)a=e[2*d+1]=e[2*d+1]+(-1-o);return e},hi=function(e,r){var a=1/e*2*Math.PI,n=e%2===0?Math.PI/2+a/2:Math.PI/2;n+=r;for(var i=new Array(e*2),o,s=0;s<e;s++)o=s*a+n,i[2*s]=Math.cos(o),i[2*s+1]=Math.sin(-o);return i},Fa=function(e,r){return Math.min(e/4,r/4,8)},ci=function(e,r){return Math.min(e/10,r/10,8)},Lo=function(){return 8},kv=function(e,r,a){return[e-2*r+a,2*(r-e),e]},di=function(e,r){return{heightOffset:Math.min(15,.05*r),widthOffset:Math.min(100,.25*e),ctrlPtOffsetPct:.05}},Pv=At({dampingFactor:.8,precision:1e-6,iterations:200,weight:function(e){return 1}}),Bv={pageRank:function(e){for(var r=Pv(e),a=r.dampingFactor,n=r.precision,i=r.iterations,o=r.weight,s=this._private.cy,u=this.byGroup(),l=u.nodes,v=u.edges,f=l.length,h=f*f,d=v.length,c=new Array(h),y=new Array(f),p=(1-a)/f,g=0;g<f;g++){for(var m=0;m<f;m++){var b=g*f+m;c[b]=0}y[g]=0}for(var E=0;E<d;E++){var M=v[E],L=M.data("source"),w=M.data("target");if(L!==w){var k=l.indexOfId(L),D=l.indexOfId(w),F=o(M),G=D*f+k;c[G]+=F,y[k]+=F}}for(var I=1/f+p,X=0;X<f;X++)if(y[X]===0)for(var B=0;B<f;B++){var re=B*f+X;c[re]=I}else for(var K=0;K<f;K++){var W=K*f+X;c[W]=c[W]/y[X]+p}for(var ae=new Array(f),ue=new Array(f),me,ie=0;ie<f;ie++)ae[ie]=1;for(var ge=0;ge<i;ge++){for(var Ee=0;Ee<f;Ee++)ue[Ee]=0;for(var Ce=0;Ce<f;Ce++)for(var we=0;we<f;we++){var De=Ce*f+we;ue[Ce]+=c[De]*ae[we]}mv(ue),me=ae,ae=ue,ue=me;for(var oe=0,xe=0;xe<f;xe++){var Le=me[xe]-ae[xe];oe+=Le*Le}if(oe<n)break}var Se={rank:function(Fe){return Fe=s.collection(Fe)[0],ae[l.indexOf(Fe)]}};return Se}},Ao=At({root:null,weight:function(e){return 1},directed:!1,alpha:0}),ra={degreeCentralityNormalized:function(e){e=Ao(e);var r=this.cy(),a=this.nodes(),n=a.length;if(e.directed){for(var v={},f={},h=0,d=0,c=0;c<n;c++){var y=a[c],p=y.id();e.root=y;var g=this.degreeCentrality(e);h<g.indegree&&(h=g.indegree),d<g.outdegree&&(d=g.outdegree),v[p]=g.indegree,f[p]=g.outdegree}return{indegree:function(b){return h==0?0:(ee(b)&&(b=r.filter(b)),v[b.id()]/h)},outdegree:function(b){return d===0?0:(ee(b)&&(b=r.filter(b)),f[b.id()]/d)}}}else{for(var i={},o=0,s=0;s<n;s++){var u=a[s];e.root=u;var l=this.degreeCentrality(e);o<l.degree&&(o=l.degree),i[u.id()]=l.degree}return{degree:function(b){return o===0?0:(ee(b)&&(b=r.filter(b)),i[b.id()]/o)}}}},degreeCentrality:function(e){e=Ao(e);var r=this.cy(),a=this,n=e,i=n.root,o=n.weight,s=n.directed,u=n.alpha;if(i=r.collection(i)[0],s){for(var d=i.connectedEdges(),c=d.filter(function(L){return L.target().same(i)&&a.has(L)}),y=d.filter(function(L){return L.source().same(i)&&a.has(L)}),p=c.length,g=y.length,m=0,b=0,E=0;E<c.length;E++)m+=o(c[E]);for(var M=0;M<y.length;M++)b+=o(y[M]);return{indegree:Math.pow(p,1-u)*Math.pow(m,u),outdegree:Math.pow(g,1-u)*Math.pow(b,u)}}else{for(var l=i.connectedEdges().intersection(a),v=l.length,f=0,h=0;h<l.length;h++)f+=o(l[h]);return{degree:Math.pow(v,1-u)*Math.pow(f,u)}}}};ra.dc=ra.degreeCentrality,ra.dcn=ra.degreeCentralityNormalised=ra.degreeCentralityNormalized;var Oo=At({harmonic:!0,weight:function(){return 1},directed:!1,root:null}),aa={closenessCentralityNormalized:function(e){for(var r=Oo(e),a=r.harmonic,n=r.weight,i=r.directed,o=this.cy(),s={},u=0,l=this.nodes(),v=this.floydWarshall({weight:n,directed:i}),f=0;f<l.length;f++){for(var h=0,d=l[f],c=0;c<l.length;c++)if(f!==c){var y=v.distance(d,l[c]);a?h+=1/y:h+=y}a||(h=1/h),u<h&&(u=h),s[d.id()]=h}return{closeness:function(g){return u==0?0:(ee(g)?g=o.filter(g)[0].id():g=g.id(),s[g]/u)}}},closenessCentrality:function(e){var r=Oo(e),a=r.root,n=r.weight,i=r.directed,o=r.harmonic;a=this.filter(a)[0];for(var s=this.dijkstra({root:a,weight:n,directed:i}),u=0,l=this.nodes(),v=0;v<l.length;v++){var f=l[v];if(!f.same(a)){var h=s.distanceTo(f);o?u+=1/h:u+=h}}return o?u:1/u}};aa.cc=aa.closenessCentrality,aa.ccn=aa.closenessCentralityNormalised=aa.closenessCentralityNormalized;var Fv=At({weight:null,directed:!1}),gi={betweennessCentrality:function(e){for(var r=Fv(e),a=r.directed,n=r.weight,i=n!=null,o=this.cy(),s=this.nodes(),u={},l={},v=0,f={set:function(b,E){l[b]=E,E>v&&(v=E)},get:function(b){return l[b]}},h=0;h<s.length;h++){var d=s[h],c=d.id();a?u[c]=d.outgoers().nodes():u[c]=d.openNeighborhood().nodes(),f.set(c,0)}for(var y=function(b){for(var E=s[b].id(),M=[],L={},w={},k={},D=new Ra(function(we,De){return k[we]-k[De]}),F=0;F<s.length;F++){var G=s[F].id();L[G]=[],w[G]=0,k[G]=1/0}for(w[E]=1,k[E]=0,D.push(E);!D.empty();){var I=D.pop();if(M.push(I),i)for(var X=0;X<u[I].length;X++){var B=u[I][X],re=o.getElementById(I),K=void 0;re.edgesTo(B).length>0?K=re.edgesTo(B)[0]:K=B.edgesTo(re)[0];var W=n(K);B=B.id(),k[B]>k[I]+W&&(k[B]=k[I]+W,D.nodes.indexOf(B)<0?D.push(B):D.updateItem(B),w[B]=0,L[B]=[]),k[B]==k[I]+W&&(w[B]=w[B]+w[I],L[B].push(I))}else for(var ae=0;ae<u[I].length;ae++){var ue=u[I][ae].id();k[ue]==1/0&&(D.push(ue),k[ue]=k[I]+1),k[ue]==k[I]+1&&(w[ue]=w[ue]+w[I],L[ue].push(I))}}for(var me={},ie=0;ie<s.length;ie++)me[s[ie].id()]=0;for(;M.length>0;){for(var ge=M.pop(),Ee=0;Ee<L[ge].length;Ee++){var Ce=L[ge][Ee];me[Ce]=me[Ce]+w[Ce]/w[ge]*(1+me[ge])}ge!=s[b].id()&&f.set(ge,f.get(ge)+me[ge])}},p=0;p<s.length;p++)y(p);var g={betweenness:function(b){var E=o.collection(b).id();return f.get(E)},betweennessNormalized:function(b){if(v==0)return 0;var E=o.collection(b).id();return f.get(E)/v}};return g.betweennessNormalised=g.betweennessNormalized,g}};gi.bc=gi.betweennessCentrality;var Gv=At({expandFactor:2,inflateFactor:2,multFactor:1,maxIterations:20,attributes:[function(t){return 1}]}),zv=function(e){return Gv(e)},Vv=function(e,r){for(var a=0,n=0;n<r.length;n++)a+=r[n](e);return a},$v=function(e,r,a){for(var n=0;n<r;n++)e[n*r+n]=a},No=function(e,r){for(var a,n=0;n<r;n++){a=0;for(var i=0;i<r;i++)a+=e[i*r+n];for(var o=0;o<r;o++)e[o*r+n]=e[o*r+n]/a}},Uv=function(e,r,a){for(var n=new Array(a*a),i=0;i<a;i++){for(var o=0;o<a;o++)n[i*a+o]=0;for(var s=0;s<a;s++)for(var u=0;u<a;u++)n[i*a+u]+=e[i*a+s]*r[s*a+u]}return n},_v=function(e,r,a){for(var n=e.slice(0),i=1;i<a;i++)e=Uv(e,n,r);return e},Yv=function(e,r,a){for(var n=new Array(r*r),i=0;i<r*r;i++)n[i]=Math.pow(e[i],a);return No(n,r),n},Hv=function(e,r,a,n){for(var i=0;i<a;i++){var o=Math.round(e[i]*Math.pow(10,n))/Math.pow(10,n),s=Math.round(r[i]*Math.pow(10,n))/Math.pow(10,n);if(o!==s)return!1}return!0},Xv=function(e,r,a,n){for(var i=[],o=0;o<r;o++){for(var s=[],u=0;u<r;u++)Math.round(e[o*r+u]*1e3)/1e3>0&&s.push(a[u]);s.length!==0&&i.push(n.collection(s))}return i},Wv=function(e,r){for(var a=0;a<e.length;a++)if(!r[a]||e[a].id()!==r[a].id())return!1;return!0},qv=function(e){for(var r=0;r<e.length;r++)for(var a=0;a<e.length;a++)r!=a&&Wv(e[r],e[a])&&e.splice(a,1);return e},Io=function(e){for(var r=this.nodes(),a=this.edges(),n=this.cy(),i=zv(e),o={},s=0;s<r.length;s++)o[r[s].id()]=s;for(var u=r.length,l=u*u,v=new Array(l),f,h=0;h<l;h++)v[h]=0;for(var d=0;d<a.length;d++){var c=a[d],y=o[c.source().id()],p=o[c.target().id()],g=Vv(c,i.attributes);v[y*u+p]+=g,v[p*u+y]+=g}$v(v,u,i.multFactor),No(v,u);for(var m=!0,b=0;m&&b<i.maxIterations;)m=!1,f=_v(v,u,i.expandFactor),v=Yv(f,u,i.inflateFactor),Hv(v,f,l,4)||(m=!0),b++;var E=Xv(v,u,r,n);return E=qv(E),E},Kv={markovClustering:Io,mcl:Io},Zv=function(e){return e},Mo=function(e,r){return Math.abs(r-e)},Ro=function(e,r,a){return e+Mo(r,a)},ko=function(e,r,a){return e+Math.pow(a-r,2)},Qv=function(e){return Math.sqrt(e)},Jv=function(e,r,a){return Math.max(e,Mo(r,a))},Ga=function(e,r,a,n,i){for(var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:Zv,s=n,u,l,v=0;v<e;v++)u=r(v),l=a(v),s=i(s,u,l);return o(s)},na={euclidean:function(e,r,a){return e>=2?Ga(e,r,a,0,ko,Qv):Ga(e,r,a,0,Ro)},squaredEuclidean:function(e,r,a){return Ga(e,r,a,0,ko)},manhattan:function(e,r,a){return Ga(e,r,a,0,Ro)},max:function(e,r,a){return Ga(e,r,a,-1/0,Jv)}};na["squared-euclidean"]=na.squaredEuclidean,na.squaredeuclidean=na.squaredEuclidean;function bn(t,e,r,a,n,i){var o;return H(t)?o=t:o=na[t]||na.euclidean,e===0&&H(t)?o(n,i):o(e,r,a,n,i)}var jv=At({k:2,m:2,sensitivityThreshold:1e-4,distance:"euclidean",maxIterations:10,attributes:[],testMode:!1,testCentroids:null}),pi=function(e){return jv(e)},En=function(e,r,a,n,i){var o=i!=="kMedoids",s=o?function(f){return a[f]}:function(f){return n[f](a)},u=function(h){return n[h](r)},l=a,v=r;return bn(e,n.length,s,u,l,v)},yi=function(e,r,a){for(var n=a.length,i=new Array(n),o=new Array(n),s=new Array(r),u=null,l=0;l<n;l++)i[l]=e.min(a[l]).value,o[l]=e.max(a[l]).value;for(var v=0;v<r;v++){u=[];for(var f=0;f<n;f++)u[f]=Math.random()*(o[f]-i[f])+i[f];s[v]=u}return s},Po=function(e,r,a,n,i){for(var o=1/0,s=0,u=0;u<r.length;u++){var l=En(a,e,r[u],n,i);l<o&&(o=l,s=u)}return s},Bo=function(e,r,a){for(var n=[],i=null,o=0;o<r.length;o++)i=r[o],a[i.id()]===e&&n.push(i);return n},ef=function(e,r,a){return Math.abs(r-e)<=a},tf=function(e,r,a){for(var n=0;n<e.length;n++)for(var i=0;i<e[n].length;i++){var o=Math.abs(e[n][i]-r[n][i]);if(o>a)return!1}return!0},rf=function(e,r,a){for(var n=0;n<a;n++)if(e===r[n])return!0;return!1},Fo=function(e,r){var a=new Array(r);if(e.length<50)for(var n=0;n<r;n++){for(var i=e[Math.floor(Math.random()*e.length)];rf(i,a,n);)i=e[Math.floor(Math.random()*e.length)];a[n]=i}else for(var o=0;o<r;o++)a[o]=e[Math.floor(Math.random()*e.length)];return a},Go=function(e,r,a){for(var n=0,i=0;i<r.length;i++)n+=En("manhattan",r[i],e,a,"kMedoids");return n},af=function(e){var r=this.cy(),a=this.nodes(),n=null,i=pi(e),o=new Array(i.k),s={},u;i.testMode?typeof i.testCentroids=="number"?(i.testCentroids,u=yi(a,i.k,i.attributes)):_(i.testCentroids)==="object"?u=i.testCentroids:u=yi(a,i.k,i.attributes):u=yi(a,i.k,i.attributes);for(var l=!0,v=0;l&&v<i.maxIterations;){for(var f=0;f<a.length;f++)n=a[f],s[n.id()]=Po(n,u,i.distance,i.attributes,"kMeans");l=!1;for(var h=0;h<i.k;h++){var d=Bo(h,a,s);if(d.length!==0){for(var c=i.attributes.length,y=u[h],p=new Array(c),g=new Array(c),m=0;m<c;m++){g[m]=0;for(var b=0;b<d.length;b++)n=d[b],g[m]+=i.attributes[m](n);p[m]=g[m]/d.length,ef(p[m],y[m],i.sensitivityThreshold)||(l=!0)}u[h]=p,o[h]=r.collection(d)}}v++}return o},nf=function(e){var r=this.cy(),a=this.nodes(),n=null,i=pi(e),o=new Array(i.k),s,u={},l,v=new Array(i.k);i.testMode?typeof i.testCentroids=="number"||(_(i.testCentroids)==="object"?s=i.testCentroids:s=Fo(a,i.k)):s=Fo(a,i.k);for(var f=!0,h=0;f&&h<i.maxIterations;){for(var d=0;d<a.length;d++)n=a[d],u[n.id()]=Po(n,s,i.distance,i.attributes,"kMedoids");f=!1;for(var c=0;c<s.length;c++){var y=Bo(c,a,u);if(y.length!==0){v[c]=Go(s[c],y,i.attributes);for(var p=0;p<y.length;p++)l=Go(y[p],y,i.attributes),l<v[c]&&(v[c]=l,s[c]=y[p],f=!0);o[c]=r.collection(y)}}h++}return o},of=function(e,r,a,n,i){for(var o,s,u=0;u<r.length;u++)for(var l=0;l<e.length;l++)n[u][l]=Math.pow(a[u][l],i.m);for(var v=0;v<e.length;v++)for(var f=0;f<i.attributes.length;f++){o=0,s=0;for(var h=0;h<r.length;h++)o+=n[h][v]*i.attributes[f](r[h]),s+=n[h][v];e[v][f]=o/s}},sf=function(e,r,a,n,i){for(var o=0;o<e.length;o++)r[o]=e[o].slice();for(var s,u,l,v=2/(i.m-1),f=0;f<a.length;f++)for(var h=0;h<n.length;h++){s=0;for(var d=0;d<a.length;d++)u=En(i.distance,n[h],a[f],i.attributes,"cmeans"),l=En(i.distance,n[h],a[d],i.attributes,"cmeans"),s+=Math.pow(u/l,v);e[h][f]=1/s}},lf=function(e,r,a,n){for(var i=new Array(a.k),o=0;o<i.length;o++)i[o]=[];for(var s,u,l=0;l<r.length;l++){s=-1/0,u=-1;for(var v=0;v<r[0].length;v++)r[l][v]>s&&(s=r[l][v],u=v);i[u].push(e[l])}for(var f=0;f<i.length;f++)i[f]=n.collection(i[f]);return i},zo=function(e){var r=this.cy(),a=this.nodes(),n=pi(e),i,o,s,u,l;u=new Array(a.length);for(var v=0;v<a.length;v++)u[v]=new Array(n.k);s=new Array(a.length);for(var f=0;f<a.length;f++)s[f]=new Array(n.k);for(var h=0;h<a.length;h++){for(var d=0,c=0;c<n.k;c++)s[h][c]=Math.random(),d+=s[h][c];for(var y=0;y<n.k;y++)s[h][y]=s[h][y]/d}o=new Array(n.k);for(var p=0;p<n.k;p++)o[p]=new Array(n.attributes.length);l=new Array(a.length);for(var g=0;g<a.length;g++)l[g]=new Array(n.k);for(var m=!0,b=0;m&&b<n.maxIterations;)m=!1,of(o,a,s,l,n),sf(s,u,o,a,n),tf(s,u,n.sensitivityThreshold)||(m=!0),b++;return i=lf(a,s,n,r),{clusters:i,degreeOfMembership:s}},uf={kMeans:af,kMedoids:nf,fuzzyCMeans:zo,fcm:zo},vf=At({distance:"euclidean",linkage:"min",mode:"threshold",threshold:1/0,addDendrogram:!1,dendrogramDepth:0,attributes:[]}),ff={single:"min",complete:"max"},hf=function(e){var r=vf(e),a=ff[r.linkage];return a!=null&&(r.linkage=a),r},Vo=function(e,r,a,n,i){for(var o=0,s=1/0,u,l=i.attributes,v=function(D,F){return bn(i.distance,l.length,function(G){return l[G](D)},function(G){return l[G](F)},D,F)},f=0;f<e.length;f++){var h=e[f].key,d=a[h][n[h]];d<s&&(o=h,s=d)}if(i.mode==="threshold"&&s>=i.threshold||i.mode==="dendrogram"&&e.length===1)return!1;var c=r[o],y=r[n[o]],p;i.mode==="dendrogram"?p={left:c,right:y,key:c.key}:p={value:c.value.concat(y.value),key:c.key},e[c.index]=p,e.splice(y.index,1),r[c.key]=p;for(var g=0;g<e.length;g++){var m=e[g];c.key===m.key?u=1/0:i.linkage==="min"?(u=a[c.key][m.key],a[c.key][m.key]>a[y.key][m.key]&&(u=a[y.key][m.key])):i.linkage==="max"?(u=a[c.key][m.key],a[c.key][m.key]<a[y.key][m.key]&&(u=a[y.key][m.key])):i.linkage==="mean"?u=(a[c.key][m.key]*c.size+a[y.key][m.key]*y.size)/(c.size+y.size):i.mode==="dendrogram"?u=v(m.value,c.value):u=v(m.value[0],c.value[0]),a[c.key][m.key]=a[m.key][c.key]=u}for(var b=0;b<e.length;b++){var E=e[b].key;if(n[E]===c.key||n[E]===y.key){for(var M=E,L=0;L<e.length;L++){var w=e[L].key;a[E][w]<a[E][M]&&(M=w)}n[E]=M}e[b].index=b}return c.key=y.key=c.index=y.index=null,!0},wn=function t(e,r,a){e&&(e.value?r.push(e.value):(e.left&&t(e.left,r),e.right&&t(e.right,r)))},cf=function t(e,r){if(!e)return"";if(e.left&&e.right){var a=t(e.left,r),n=t(e.right,r),i=r.add({group:"nodes",data:{id:a+","+n}});return r.add({group:"edges",data:{source:a,target:i.id()}}),r.add({group:"edges",data:{source:n,target:i.id()}}),i.id()}else if(e.value)return e.value.id()},df=function t(e,r,a){if(!e)return[];var n=[],i=[],o=[];return r===0?(e.left&&wn(e.left,n),e.right&&wn(e.right,i),o=n.concat(i),[a.collection(o)]):r===1?e.value?[a.collection(e.value)]:(e.left&&wn(e.left,n),e.right&&wn(e.right,i),[a.collection(n),a.collection(i)]):e.value?[a.collection(e.value)]:(e.left&&(n=t(e.left,r-1,a)),e.right&&(i=t(e.right,r-1,a)),n.concat(i))},$o=function(e){for(var r=this.cy(),a=this.nodes(),n=hf(e),i=n.attributes,o=function(b,E){return bn(n.distance,i.length,function(M){return i[M](b)},function(M){return i[M](E)},b,E)},s=[],u=[],l=[],v=[],f=0;f<a.length;f++){var h={value:n.mode==="dendrogram"?a[f]:[a[f]],key:f,index:f};s[f]=h,v[f]=h,u[f]=[],l[f]=0}for(var d=0;d<s.length;d++)for(var c=0;c<=d;c++){var y=void 0;n.mode==="dendrogram"?y=d===c?1/0:o(s[d].value,s[c].value):y=d===c?1/0:o(s[d].value[0],s[c].value[0]),u[d][c]=y,u[c][d]=y,y<u[d][l[d]]&&(l[d]=c)}for(var p=Vo(s,v,u,l,n);p;)p=Vo(s,v,u,l,n);var g;return n.mode==="dendrogram"?(g=df(s[0],n.dendrogramDepth,r),n.addDendrogram&&cf(s[0],r)):(g=new Array(s.length),s.forEach(function(m,b){m.key=m.index=null,g[b]=r.collection(m.value)})),g},gf={hierarchicalClustering:$o,hca:$o},pf=At({distance:"euclidean",preference:"median",damping:.8,maxIterations:1e3,minIterations:100,attributes:[]}),yf=function(e){var r=e.damping,a=e.preference;.5<=r&&r<1||xt("Damping must range on [0.5, 1). Got: ".concat(r));var n=["median","mean","min","max"];return n.some(function(i){return i===a})||R(a)||xt("Preference must be one of [".concat(n.map(function(i){return"'".concat(i,"'")}).join(", "),"] or a number. Got: ").concat(a)),pf(e)},mf=function(e,r,a,n){var i=function(s,u){return n[u](s)};return-bn(e,n.length,function(o){return i(r,o)},function(o){return i(a,o)},r,a)},bf=function(e,r){var a=null;return r==="median"?a=pv(e):r==="mean"?a=gv(e):r==="min"?a=cv(e):r==="max"?a=dv(e):a=r,a},Ef=function(e,r,a){for(var n=[],i=0;i<e;i++)r[i*e+i]+a[i*e+i]>0&&n.push(i);return n},Uo=function(e,r,a){for(var n=[],i=0;i<e;i++){for(var o=-1,s=-1/0,u=0;u<a.length;u++){var l=a[u];r[i*e+l]>s&&(o=l,s=r[i*e+l])}o>0&&n.push(o)}for(var v=0;v<a.length;v++)n[a[v]]=a[v];return n},wf=function(e,r,a){for(var n=Uo(e,r,a),i=0;i<a.length;i++){for(var o=[],s=0;s<n.length;s++)n[s]===a[i]&&o.push(s);for(var u=-1,l=-1/0,v=0;v<o.length;v++){for(var f=0,h=0;h<o.length;h++)f+=r[o[h]*e+o[v]];f>l&&(u=v,l=f)}a[i]=o[u]}return n=Uo(e,r,a),n},_o=function(e){for(var r=this.cy(),a=this.nodes(),n=yf(e),i={},o=0;o<a.length;o++)i[a[o].id()]=o;var s,u,l,v,f,h;s=a.length,u=s*s,l=new Array(u);for(var d=0;d<u;d++)l[d]=-1/0;for(var c=0;c<s;c++)for(var y=0;y<s;y++)c!==y&&(l[c*s+y]=mf(n.distance,a[c],a[y],n.attributes));v=bf(l,n.preference);for(var p=0;p<s;p++)l[p*s+p]=v;f=new Array(u);for(var g=0;g<u;g++)f[g]=0;h=new Array(u);for(var m=0;m<u;m++)h[m]=0;for(var b=new Array(s),E=new Array(s),M=new Array(s),L=0;L<s;L++)b[L]=0,E[L]=0,M[L]=0;for(var w=new Array(s*n.minIterations),k=0;k<w.length;k++)w[k]=0;var D;for(D=0;D<n.maxIterations;D++){for(var F=0;F<s;F++){for(var G=-1/0,I=-1/0,X=-1,B=0,re=0;re<s;re++)b[re]=f[F*s+re],B=h[F*s+re]+l[F*s+re],B>=G?(I=G,G=B,X=re):B>I&&(I=B);for(var K=0;K<s;K++)f[F*s+K]=(1-n.damping)*(l[F*s+K]-G)+n.damping*b[K];f[F*s+X]=(1-n.damping)*(l[F*s+X]-I)+n.damping*b[X]}for(var W=0;W<s;W++){for(var ae=0,ue=0;ue<s;ue++)b[ue]=h[ue*s+W],E[ue]=Math.max(0,f[ue*s+W]),ae+=E[ue];ae-=E[W],E[W]=f[W*s+W],ae+=E[W];for(var me=0;me<s;me++)h[me*s+W]=(1-n.damping)*Math.min(0,ae-E[me])+n.damping*b[me];h[W*s+W]=(1-n.damping)*(ae-E[W])+n.damping*b[W]}for(var ie=0,ge=0;ge<s;ge++){var Ee=h[ge*s+ge]+f[ge*s+ge]>0?1:0;w[D%n.minIterations*s+ge]=Ee,ie+=Ee}if(ie>0&&(D>=n.minIterations-1||D==n.maxIterations-1)){for(var Ce=0,we=0;we<s;we++){M[we]=0;for(var De=0;De<n.minIterations;De++)M[we]+=w[De*s+we];(M[we]===0||M[we]===n.minIterations)&&Ce++}if(Ce===s)break}}for(var oe=Ef(s,f,h),xe=wf(s,l,oe),Le={},Se=0;Se<oe.length;Se++)Le[oe[Se]]=[];for(var Oe=0;Oe<a.length;Oe++){var Fe=i[a[Oe].id()],Xe=xe[Fe];Xe!=null&&Le[Xe].push(a[Oe])}for(var Ie=new Array(oe.length),Me=0;Me<oe.length;Me++)Ie[Me]=r.collection(Le[oe[Me]]);return Ie},xf={affinityPropagation:_o,ap:_o},Tf=At({root:void 0,directed:!1}),Cf={hierholzer:function(e){if(!S(e)){var r=arguments;e={root:r[0],directed:r[1]}}var a=Tf(e),n=a.root,i=a.directed,o=this,s=!1,u,l,v;n&&(v=ee(n)?this.filter(n)[0].id():n[0].id());var f={},h={};i?o.forEach(function(m){var b=m.id();if(m.isNode()){var E=m.indegree(!0),M=m.outdegree(!0),L=E-M,w=M-E;L==1?u?s=!0:u=b:w==1?l?s=!0:l=b:(w>1||L>1)&&(s=!0),f[b]=[],m.outgoers().forEach(function(k){k.isEdge()&&f[b].push(k.id())})}else h[b]=[void 0,m.target().id()]}):o.forEach(function(m){var b=m.id();if(m.isNode()){var E=m.degree(!0);E%2&&(u?l?s=!0:l=b:u=b),f[b]=[],m.connectedEdges().forEach(function(M){return f[b].push(M.id())})}else h[b]=[m.source().id(),m.target().id()]});var d={found:!1,trail:void 0};if(s)return d;if(l&&u)if(i){if(v&&l!=v)return d;v=l}else{if(v&&l!=v&&u!=v)return d;v||(v=l)}else v||(v=o[0].id());var c=function(b){for(var E=b,M=[b],L,w,k;f[E].length;)L=f[E].shift(),w=h[L][0],k=h[L][1],E!=k?(f[k]=f[k].filter(function(D){return D!=L}),E=k):!i&&E!=w&&(f[w]=f[w].filter(function(D){return D!=L}),E=w),M.unshift(L),M.unshift(E);return M},y=[],p=[];for(p=c(v);p.length!=1;)f[p[0]].length==0?(y.unshift(o.getElementById(p.shift())),y.unshift(o.getElementById(p.shift()))):p=c(p.shift()).concat(p);y.unshift(o.getElementById(p.shift()));for(var g in f)if(f[g].length)return d;return d.found=!0,d.trail=this.spawn(y,!0),d}},xn=function(){var e=this,r={},a=0,n=0,i=[],o=[],s={},u=function(h,d){for(var c=o.length-1,y=[],p=e.spawn();o[c].x!=h||o[c].y!=d;)y.push(o.pop().edge),c--;y.push(o.pop().edge),y.forEach(function(g){var m=g.connectedNodes().intersection(e);p.merge(g),m.forEach(function(b){var E=b.id(),M=b.connectedEdges().intersection(e);p.merge(b),r[E].cutVertex?p.merge(M.filter(function(L){return L.isLoop()})):p.merge(M)})}),i.push(p)},l=function f(h,d,c){h===c&&(n+=1),r[d]={id:a,low:a++,cutVertex:!1};var y=e.getElementById(d).connectedEdges().intersection(e);if(y.size()===0)i.push(e.spawn(e.getElementById(d)));else{var p,g,m,b;y.forEach(function(E){p=E.source().id(),g=E.target().id(),m=p===d?g:p,m!==c&&(b=E.id(),s[b]||(s[b]=!0,o.push({x:d,y:m,edge:E})),m in r?r[d].low=Math.min(r[d].low,r[m].id):(f(h,m,d),r[d].low=Math.min(r[d].low,r[m].low),r[d].id<=r[m].low&&(r[d].cutVertex=!0,u(d,m))))})}};e.forEach(function(f){if(f.isNode()){var h=f.id();h in r||(n=0,l(h,h),r[h].cutVertex=n>1)}});var v=Object.keys(r).filter(function(f){return r[f].cutVertex}).map(function(f){return e.getElementById(f)});return{cut:e.spawn(v),components:i}},Df={hopcroftTarjanBiconnected:xn,htbc:xn,htb:xn,hopcroftTarjanBiconnectedComponents:xn},Tn=function(){var e=this,r={},a=0,n=[],i=[],o=e.spawn(e),s=function u(l){i.push(l),r[l]={index:a,low:a++,explored:!1};var v=e.getElementById(l).connectedEdges().intersection(e);if(v.forEach(function(y){var p=y.target().id();p!==l&&(p in r||u(p),r[p].explored||(r[l].low=Math.min(r[l].low,r[p].low)))}),r[l].index===r[l].low){for(var f=e.spawn();;){var h=i.pop();if(f.merge(e.getElementById(h)),r[h].low=r[l].index,r[h].explored=!0,h===l)break}var d=f.edgesWith(f),c=f.merge(d);n.push(c),o=o.difference(c)}};return e.forEach(function(u){if(u.isNode()){var l=u.id();l in r||s(l)}}),{cut:o,components:n}},Sf={tarjanStronglyConnected:Tn,tsc:Tn,tscc:Tn,tarjanStronglyConnectedComponents:Tn},Yo={};[Ma,tv,rv,nv,ov,lv,fv,Bv,ra,aa,gi,Kv,uf,gf,xf,Cf,Df,Sf].forEach(function(t){He(Yo,t)});/*!
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 Ho=0,Xo=1,Wo=2,yr=function t(e){if(!(this instanceof t))return new t(e);this.id="Thenable/1.0.7",this.state=Ho,this.fulfillValue=void 0,this.rejectReason=void 0,this.onFulfilled=[],this.onRejected=[],this.proxy={then:this.then.bind(this)},typeof e=="function"&&e.call(this,this.fulfill.bind(this),this.reject.bind(this))};yr.prototype={fulfill:function(e){return qo(this,Xo,"fulfillValue",e)},reject:function(e){return qo(this,Wo,"rejectReason",e)},then:function(e,r){var a=this,n=new yr;return a.onFulfilled.push(Qo(e,n,"fulfill")),a.onRejected.push(Qo(r,n,"reject")),Ko(a),n.proxy}};var qo=function(e,r,a,n){return e.state===Ho&&(e.state=r,e[a]=n,Ko(e)),e},Ko=function(e){e.state===Xo?Zo(e,"onFulfilled",e.fulfillValue):e.state===Wo&&Zo(e,"onRejected",e.rejectReason)},Zo=function(e,r,a){if(e[r].length!==0){var n=e[r];e[r]=[];var i=function(){for(var s=0;s<n.length;s++)n[s](a)};typeof setImmediate=="function"?setImmediate(i):setTimeout(i,0)}},Qo=function(e,r,a){return function(n){if(typeof e!="function")r[a].call(r,n);else{var i;try{i=e(n)}catch(o){r.reject(o);return}Lf(r,i)}}},Lf=function t(e,r){if(e===r||e.proxy===r){e.reject(new TypeError("cannot resolve promise with itself"));return}var a;if(_(r)==="object"&&r!==null||typeof r=="function")try{a=r.then}catch(i){e.reject(i);return}if(typeof a=="function"){var n=!1;try{a.call(r,function(i){n||(n=!0,i===r?e.reject(new TypeError("circular thenable chain")):t(e,i))},function(i){n||(n=!0,e.reject(i))})}catch(i){n||e.reject(i)}return}e.fulfill(r)};yr.all=function(t){return new yr(function(e,r){for(var a=new Array(t.length),n=0,i=function(u,l){a[u]=l,n++,n===t.length&&e(a)},o=0;o<t.length;o++)(function(s){var u=t[s],l=u!=null&&u.then!=null;if(l)u.then(function(f){i(s,f)},function(f){r(f)});else{var v=u;i(s,v)}})(o)})},yr.resolve=function(t){return new yr(function(e,r){e(t)})},yr.reject=function(t){return new yr(function(e,r){r(t)})};var ia=typeof Promise<"u"?Promise:yr,mi=function(e,r,a){var n=Ye(e),i=!n,o=this._private=He({duration:1e3},r,a);if(o.target=e,o.style=o.style||o.css,o.started=!1,o.playing=!1,o.hooked=!1,o.applying=!1,o.progress=0,o.completes=[],o.frames=[],o.complete&&H(o.complete)&&o.completes.push(o.complete),i){var s=e.position();o.startPosition=o.startPosition||{x:s.x,y:s.y},o.startStyle=o.startStyle||e.cy().style().getAnimationStartStyle(e,o.style)}if(n){var u=e.pan();o.startPan={x:u.x,y:u.y},o.startZoom=e.zoom()}this.length=1,this[0]=this},zr=mi.prototype;He(zr,{instanceString:function(){return"animation"},hook:function(){var e=this._private;if(!e.hooked){var r,a=e.target._private.animation;e.queue?r=a.queue:r=a.current,r.push(this),pe(e.target)&&e.target.cy().addToAnimationPool(e.target),e.hooked=!0}return this},play:function(){var e=this._private;return e.progress===1&&(e.progress=0),e.playing=!0,e.started=!1,e.stopped=!1,this.hook(),this},playing:function(){return this._private.playing},apply:function(){var e=this._private;return e.applying=!0,e.started=!1,e.stopped=!1,this.hook(),this},applying:function(){return this._private.applying},pause:function(){var e=this._private;return e.playing=!1,e.started=!1,this},stop:function(){var e=this._private;return e.playing=!1,e.started=!1,e.stopped=!0,this},rewind:function(){return this.progress(0)},fastforward:function(){return this.progress(1)},time:function(e){var r=this._private;return e===void 0?r.progress*r.duration:this.progress(e/r.duration)},progress:function(e){var r=this._private,a=r.playing;return e===void 0?r.progress:(a&&this.pause(),r.progress=e,r.started=!1,a&&this.play(),this)},completed:function(){return this._private.progress===1},reverse:function(){var e=this._private,r=e.playing;r&&this.pause(),e.progress=1-e.progress,e.started=!1;var a=function(l,v){var f=e[l];f!=null&&(e[l]=e[v],e[v]=f)};if(a("zoom","startZoom"),a("pan","startPan"),a("position","startPosition"),e.style)for(var n=0;n<e.style.length;n++){var i=e.style[n],o=i.name,s=e.startStyle[o];e.startStyle[o]=i,e.style[n]=s}return r&&this.play(),this},promise:function(e){var r=this._private,a;switch(e){case"frame":a=r.frames;break;default:case"complete":case"completed":a=r.completes}return new ia(function(n,i){a.push(function(){n()})})}}),zr.complete=zr.completed,zr.run=zr.play,zr.running=zr.playing;var Af={animated:function(){return function(){var r=this,a=r.length!==void 0,n=a?r:[r],i=this._private.cy||this;if(!i.styleEnabled())return!1;var o=n[0];if(o)return o._private.animation.current.length>0}},clearQueue:function(){return function(){var r=this,a=r.length!==void 0,n=a?r:[r],i=this._private.cy||this;if(!i.styleEnabled())return this;for(var o=0;o<n.length;o++){var s=n[o];s._private.animation.queue=[]}return this}},delay:function(){return function(r,a){var n=this._private.cy||this;return n.styleEnabled()?this.animate({delay:r,duration:r,complete:a}):this}},delayAnimation:function(){return function(r,a){var n=this._private.cy||this;return n.styleEnabled()?this.animation({delay:r,duration:r,complete:a}):this}},animation:function(){return function(r,a){var n=this,i=n.length!==void 0,o=i?n:[n],s=this._private.cy||this,u=!i,l=!u;if(!s.styleEnabled())return this;var v=s.style();r=He({},r,a);var f=Object.keys(r).length===0;if(f)return new mi(o[0],r);switch(r.duration===void 0&&(r.duration=400),r.duration){case"slow":r.duration=600;break;case"fast":r.duration=200;break}if(l&&(r.style=v.getPropsList(r.style||r.css),r.css=void 0),l&&r.renderedPosition!=null){var h=r.renderedPosition,d=s.pan(),c=s.zoom();r.position=Eo(h,c,d)}if(u&&r.panBy!=null){var y=r.panBy,p=s.pan();r.pan={x:p.x+y.x,y:p.y+y.y}}var g=r.center||r.centre;if(u&&g!=null){var m=s.getCenterPan(g.eles,r.zoom);m!=null&&(r.pan=m)}if(u&&r.fit!=null){var b=r.fit,E=s.getFitViewport(b.eles||b.boundingBox,b.padding);E!=null&&(r.pan=E.pan,r.zoom=E.zoom)}if(u&&S(r.zoom)){var M=s.getZoomedViewport(r.zoom);M!=null?(M.zoomed&&(r.zoom=M.zoom),M.panned&&(r.pan=M.pan)):r.zoom=null}return new mi(o[0],r)}},animate:function(){return function(r,a){var n=this,i=n.length!==void 0,o=i?n:[n],s=this._private.cy||this;if(!s.styleEnabled())return this;a&&(r=He({},r,a));for(var u=0;u<o.length;u++){var l=o[u],v=l.animated()&&(r.queue===void 0||r.queue),f=l.animation(r,v?{queue:!0}:void 0);f.play()}return this}},stop:function(){return function(r,a){var n=this,i=n.length!==void 0,o=i?n:[n],s=this._private.cy||this;if(!s.styleEnabled())return this;for(var u=0;u<o.length;u++){for(var l=o[u],v=l._private,f=v.animation.current,h=0;h<f.length;h++){var d=f[h],c=d._private;a&&(c.duration=0)}r&&(v.animation.queue=[]),a||(v.animation.current=[])}return s.notify("draw"),this}}},Of=Array.isArray,Cn=Of,Nf=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,If=/^\w*$/;function Mf(t,e){if(Cn(t))return!1;var r=typeof t;return r=="number"||r=="symbol"||r=="boolean"||t==null||Aa(t)?!0:If.test(t)||!Nf.test(t)||e!=null&&t in Object(e)}var Rf=Mf,kf="[object AsyncFunction]",Pf="[object Function]",Bf="[object GeneratorFunction]",Ff="[object Proxy]";function Gf(t){if(!kr(t))return!1;var e=io(t);return e==Pf||e==Bf||e==kf||e==Ff}var zf=Gf,Vf=on["__core-js_shared__"],bi=Vf,Jo=function(){var t=/[^.]+$/.exec(bi&&bi.keys&&bi.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function $f(t){return!!Jo&&Jo in t}var Uf=$f,_f=Function.prototype,Yf=_f.toString;function Hf(t){if(t!=null){try{return Yf.call(t)}catch{}try{return t+""}catch{}}return""}var Xf=Hf,Wf=/[\\^$.*+?()[\]{}|]/g,qf=/^\[object .+?Constructor\]$/,Kf=Function.prototype,Zf=Object.prototype,Qf=Kf.toString,Jf=Zf.hasOwnProperty,jf=RegExp("^"+Qf.call(Jf).replace(Wf,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function eh(t){if(!kr(t)||Uf(t))return!1;var e=zf(t)?jf:qf;return e.test(Xf(t))}var th=eh;function rh(t,e){return t==null?void 0:t[e]}var ah=rh;function nh(t,e){var r=ah(t,e);return th(r)?r:void 0}var Ei=nh,ih=Ei(Object,"create"),za=ih;function oh(){this.__data__=za?za(null):{},this.size=0}var sh=oh;function lh(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var uh=lh,vh="__lodash_hash_undefined__",fh=Object.prototype,hh=fh.hasOwnProperty;function ch(t){var e=this.__data__;if(za){var r=e[t];return r===vh?void 0:r}return hh.call(e,t)?e[t]:void 0}var dh=ch,gh=Object.prototype,ph=gh.hasOwnProperty;function yh(t){var e=this.__data__;return za?e[t]!==void 0:ph.call(e,t)}var mh=yh,bh="__lodash_hash_undefined__";function Eh(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=za&&e===void 0?bh:e,this}var wh=Eh;function oa(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var a=t[e];this.set(a[0],a[1])}}oa.prototype.clear=sh,oa.prototype.delete=uh,oa.prototype.get=dh,oa.prototype.has=mh,oa.prototype.set=wh;var jo=oa;function xh(){this.__data__=[],this.size=0}var Th=xh;function Ch(t,e){return t===e||t!==t&&e!==e}var es=Ch;function Dh(t,e){for(var r=t.length;r--;)if(es(t[r][0],e))return r;return-1}var Dn=Dh,Sh=Array.prototype,Lh=Sh.splice;function Ah(t){var e=this.__data__,r=Dn(e,t);if(r<0)return!1;var a=e.length-1;return r==a?e.pop():Lh.call(e,r,1),--this.size,!0}var Oh=Ah;function Nh(t){var e=this.__data__,r=Dn(e,t);return r<0?void 0:e[r][1]}var Ih=Nh;function Mh(t){return Dn(this.__data__,t)>-1}var Rh=Mh;function kh(t,e){var r=this.__data__,a=Dn(r,t);return a<0?(++this.size,r.push([t,e])):r[a][1]=e,this}var Ph=kh;function sa(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var a=t[e];this.set(a[0],a[1])}}sa.prototype.clear=Th,sa.prototype.delete=Oh,sa.prototype.get=Ih,sa.prototype.has=Rh,sa.prototype.set=Ph;var Bh=sa,Fh=Ei(on,"Map"),Gh=Fh;function zh(){this.size=0,this.__data__={hash:new jo,map:new(Gh||Bh),string:new jo}}var Vh=zh;function $h(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}var Uh=$h;function _h(t,e){var r=t.__data__;return Uh(e)?r[typeof e=="string"?"string":"hash"]:r.map}var Sn=_h;function Yh(t){var e=Sn(this,t).delete(t);return this.size-=e?1:0,e}var Hh=Yh;function Xh(t){return Sn(this,t).get(t)}var Wh=Xh;function qh(t){return Sn(this,t).has(t)}var Kh=qh;function Zh(t,e){var r=Sn(this,t),a=r.size;return r.set(t,e),this.size+=r.size==a?0:1,this}var Qh=Zh;function la(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var a=t[e];this.set(a[0],a[1])}}la.prototype.clear=Vh,la.prototype.delete=Hh,la.prototype.get=Wh,la.prototype.has=Kh,la.prototype.set=Qh;var ts=la,Jh="Expected a function";function wi(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(Jh);var r=function(){var a=arguments,n=e?e.apply(this,a):a[0],i=r.cache;if(i.has(n))return i.get(n);var o=t.apply(this,a);return r.cache=i.set(n,o)||i,o};return r.cache=new(wi.Cache||ts),r}wi.Cache=ts;var jh=wi,ec=500;function tc(t){var e=jh(t,function(a){return r.size===ec&&r.clear(),a}),r=e.cache;return e}var rc=tc,ac=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,nc=/\\(\\)?/g,ic=rc(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(ac,function(r,a,n,i){e.push(n?i.replace(nc,"$1"):a||r)}),e}),rs=ic;function oc(t,e){for(var r=-1,a=t==null?0:t.length,n=Array(a);++r<a;)n[r]=e(t[r],r,t);return n}var as=oc,sc=1/0,ns=Zr?Zr.prototype:void 0,is=ns?ns.toString:void 0;function os(t){if(typeof t=="string")return t;if(Cn(t))return as(t,os)+"";if(Aa(t))return is?is.call(t):"";var e=t+"";return e=="0"&&1/t==-sc?"-0":e}var lc=os;function uc(t){return t==null?"":lc(t)}var ss=uc;function vc(t,e){return Cn(t)?t:Rf(t,e)?[t]:rs(ss(t))}var ls=vc,fc=1/0;function hc(t){if(typeof t=="string"||Aa(t))return t;var e=t+"";return e=="0"&&1/t==-fc?"-0":e}var xi=hc;function cc(t,e){e=ls(e,t);for(var r=0,a=e.length;t!=null&&r<a;)t=t[xi(e[r++])];return r&&r==a?t:void 0}var dc=cc;function gc(t,e,r){var a=t==null?void 0:dc(t,e);return a===void 0?r:a}var pc=gc,yc=function(){try{var t=Ei(Object,"defineProperty");return t({},"",{}),t}catch{}}(),us=yc;function mc(t,e,r){e=="__proto__"&&us?us(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}var bc=mc,Ec=Object.prototype,wc=Ec.hasOwnProperty;function xc(t,e,r){var a=t[e];(!(wc.call(t,e)&&es(a,r))||r===void 0&&!(e in t))&&bc(t,e,r)}var Tc=xc,Cc=9007199254740991,Dc=/^(?:0|[1-9]\d*)$/;function Sc(t,e){var r=typeof t;return e=e??Cc,!!e&&(r=="number"||r!="symbol"&&Dc.test(t))&&t>-1&&t%1==0&&t<e}var Lc=Sc;function Ac(t,e,r,a){if(!kr(t))return t;e=ls(e,t);for(var n=-1,i=e.length,o=i-1,s=t;s!=null&&++n<i;){var u=xi(e[n]),l=r;if(u==="__proto__"||u==="constructor"||u==="prototype")return t;if(n!=o){var v=s[u];l=a?a(v,u,s):void 0,l===void 0&&(l=kr(v)?v:Lc(e[n+1])?[]:{})}Tc(s,u,l),s=s[u]}return t}var Oc=Ac;function Nc(t,e,r){return t==null?t:Oc(t,e,r)}var Ic=Nc;function Mc(t,e){var r=-1,a=t.length;for(e||(e=Array(a));++r<a;)e[r]=t[r];return e}var Rc=Mc;function kc(t){return Cn(t)?as(t,xi):Aa(t)?[t]:Rc(rs(ss(t)))}var Pc=kc,Bc={data:function(e){var r={field:"data",bindingEvent:"data",allowBinding:!1,allowSetting:!1,allowGetting:!1,settingEvent:"data",settingTriggersEvent:!1,triggerFnName:"trigger",immutableKeys:{},updateStyle:!1,beforeGet:function(n){},beforeSet:function(n,i){},onSet:function(n){},canSet:function(n){return!0}};return e=He({},r,e),function(n,i){var o=e,s=this,u=s.length!==void 0,l=u?s:[s],v=u?s[0]:s;if(ee(n)){var f=n.indexOf(".")!==-1,h=f&&Pc(n);if(o.allowGetting&&i===void 0){var d;return v&&(o.beforeGet(v),h&&v._private[o.field][n]===void 0?d=pc(v._private[o.field],h):d=v._private[o.field][n]),d}else if(o.allowSetting&&i!==void 0){var c=!o.immutableKeys[n];if(c){var y=T({},n,i);o.beforeSet(s,y);for(var p=0,g=l.length;p<g;p++){var m=l[p];o.canSet(m)&&(h&&v._private[o.field][n]===void 0?Ic(m._private[o.field],h,i):m._private[o.field][n]=i)}o.updateStyle&&s.updateStyle(),o.onSet(s),o.settingTriggersEvent&&s[o.triggerFnName](o.settingEvent)}}}else if(o.allowSetting&&S(n)){var b=n,E,M,L=Object.keys(b);o.beforeSet(s,b);for(var w=0;w<L.length;w++){E=L[w],M=b[E];var k=!o.immutableKeys[E];if(k)for(var D=0;D<l.length;D++){var F=l[D];o.canSet(F)&&(F._private[o.field][E]=M)}}o.updateStyle&&s.updateStyle(),o.onSet(s),o.settingTriggersEvent&&s[o.triggerFnName](o.settingEvent)}else if(o.allowBinding&&H(n)){var G=n;s.on(o.bindingEvent,G)}else if(o.allowGetting&&n===void 0){var I;return v&&(o.beforeGet(v),I=v._private[o.field]),I}return s}},removeData:function(e){var r={field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!1,immutableKeys:{}};return e=He({},r,e),function(n){var i=e,o=this,s=o.length!==void 0,u=s?o:[o];if(ee(n)){for(var l=n.split(/\s+/),v=l.length,f=0;f<v;f++){var h=l[f];if(!Re(h)){var d=!i.immutableKeys[h];if(d)for(var c=0,y=u.length;c<y;c++)u[c]._private[i.field][h]=void 0}}i.triggerEvent&&o[i.triggerFnName](i.event)}else if(n===void 0){for(var p=0,g=u.length;p<g;p++)for(var m=u[p]._private[i.field],b=Object.keys(m),E=0;E<b.length;E++){var M=b[E],L=!i.immutableKeys[M];L&&(m[M]=void 0)}i.triggerEvent&&o[i.triggerFnName](i.event)}return o}}},Fc={eventAliasesOn:function(e){var r=e;r.addListener=r.listen=r.bind=r.on,r.unlisten=r.unbind=r.off=r.removeListener,r.trigger=r.emit,r.pon=r.promiseOn=function(a,n){var i=this,o=Array.prototype.slice.call(arguments,0);return new ia(function(s,u){var l=function(d){i.off.apply(i,f),s(d)},v=o.concat([l]),f=v.concat([]);i.on.apply(i,v)})}}},ct={};[Af,Bc,Fc].forEach(function(t){He(ct,t)});var Gc={animate:ct.animate(),animation:ct.animation(),animated:ct.animated(),clearQueue:ct.clearQueue(),delay:ct.delay(),delayAnimation:ct.delayAnimation(),stop:ct.stop()},Ln={classes:function(e){var r=this;if(e===void 0){var a=[];return r[0]._private.classes.forEach(function(c){return a.push(c)}),a}else te(e)||(e=(e||"").match(/\S+/g)||[]);for(var n=[],i=new Jr(e),o=0;o<r.length;o++){for(var s=r[o],u=s._private,l=u.classes,v=!1,f=0;f<e.length;f++){var h=e[f],d=l.has(h);if(!d){v=!0;break}}v||(v=l.size!==e.length),v&&(u.classes=i,n.push(s))}return n.length>0&&this.spawn(n).updateStyle().emit("class"),r},addClass:function(e){return this.toggleClass(e,!0)},hasClass:function(e){var r=this[0];return r!=null&&r._private.classes.has(e)},toggleClass:function(e,r){te(e)||(e=e.match(/\S+/g)||[]);for(var a=this,n=r===void 0,i=[],o=0,s=a.length;o<s;o++)for(var u=a[o],l=u._private.classes,v=!1,f=0;f<e.length;f++){var h=e[f],d=l.has(h),c=!1;r||n&&!d?(l.add(h),c=!0):(!r||n&&d)&&(l.delete(h),c=!0),!v&&c&&(i.push(u),v=!0)}return i.length>0&&this.spawn(i).updateStyle().emit("class"),a},removeClass:function(e){return this.toggleClass(e,!1)},flashClass:function(e,r){var a=this;if(r==null)r=250;else if(r===0)return a;return a.addClass(e),setTimeout(function(){a.removeClass(e)},r),a}};Ln.className=Ln.classNames=Ln.classes;var ot={metaChar:"[\\!\\\"\\#\\$\\%\\&\\'\\(\\)\\*\\+\\,\\.\\/\\:\\;\\<\\=\\>\\?\\@\\[\\]\\^\\`\\{\\|\\}\\~]",comparatorOp:"=|\\!=|>|>=|<|<=|\\$=|\\^=|\\*=",boolOp:"\\?|\\!|\\^",string:`"(?:\\\\"|[^"])*"|'(?:\\\\'|[^'])*'`,number:gt,meta:"degree|indegree|outdegree",separator:"\\s*,\\s*",descendant:"\\s+",child:"\\s+>\\s+",subject:"\\$",group:"node|edge|\\*",directedEdge:"\\s+->\\s+",undirectedEdge:"\\s+<->\\s+"};ot.variable="(?:[\\w-.]|(?:\\\\"+ot.metaChar+"))+",ot.className="(?:[\\w-]|(?:\\\\"+ot.metaChar+"))+",ot.value=ot.string+"|"+ot.number,ot.id=ot.variable,function(){var t,e,r;for(t=ot.comparatorOp.split("|"),r=0;r<t.length;r++)e=t[r],ot.comparatorOp+="|@"+e;for(t=ot.comparatorOp.split("|"),r=0;r<t.length;r++)e=t[r],!(e.indexOf("!")>=0)&&e!=="="&&(ot.comparatorOp+="|\\!"+e)}();var pt=function(){return{checks:[]}},ke={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},Ti=[{selector:":selected",matches:function(e){return e.selected()}},{selector:":unselected",matches:function(e){return!e.selected()}},{selector:":selectable",matches:function(e){return e.selectable()}},{selector:":unselectable",matches:function(e){return!e.selectable()}},{selector:":locked",matches:function(e){return e.locked()}},{selector:":unlocked",matches:function(e){return!e.locked()}},{selector:":visible",matches:function(e){return e.visible()}},{selector:":hidden",matches:function(e){return!e.visible()}},{selector:":transparent",matches:function(e){return e.transparent()}},{selector:":grabbed",matches:function(e){return e.grabbed()}},{selector:":free",matches:function(e){return!e.grabbed()}},{selector:":removed",matches:function(e){return e.removed()}},{selector:":inside",matches:function(e){return!e.removed()}},{selector:":grabbable",matches:function(e){return e.grabbable()}},{selector:":ungrabbable",matches:function(e){return!e.grabbable()}},{selector:":animated",matches:function(e){return e.animated()}},{selector:":unanimated",matches:function(e){return!e.animated()}},{selector:":parent",matches:function(e){return e.isParent()}},{selector:":childless",matches:function(e){return e.isChildless()}},{selector:":child",matches:function(e){return e.isChild()}},{selector:":orphan",matches:function(e){return e.isOrphan()}},{selector:":nonorphan",matches:function(e){return e.isChild()}},{selector:":compound",matches:function(e){return e.isNode()?e.isParent():e.source().isParent()||e.target().isParent()}},{selector:":loop",matches:function(e){return e.isLoop()}},{selector:":simple",matches:function(e){return e.isSimple()}},{selector:":active",matches:function(e){return e.active()}},{selector:":inactive",matches:function(e){return!e.active()}},{selector:":backgrounding",matches:function(e){return e.backgrounding()}},{selector:":nonbackgrounding",matches:function(e){return!e.backgrounding()}}].sort(function(t,e){return Kl(t.selector,e.selector)}),zc=function(){for(var t={},e,r=0;r<Ti.length;r++)e=Ti[r],t[e.selector]=e.matches;return t}(),Vc=function(e,r){return zc[e](r)},$c="("+Ti.map(function(t){return t.selector}).join("|")+")",ua=function(e){return e.replace(new RegExp("\\\\("+ot.metaChar+")","g"),function(r,a){return a})},Dr=function(e,r,a){e[e.length-1]=a},Ci=[{name:"group",query:!0,regex:"("+ot.group+")",populate:function(e,r,a){var n=x(a,1),i=n[0];r.checks.push({type:ke.GROUP,value:i==="*"?i:i+"s"})}},{name:"state",query:!0,regex:$c,populate:function(e,r,a){var n=x(a,1),i=n[0];r.checks.push({type:ke.STATE,value:i})}},{name:"id",query:!0,regex:"\\#("+ot.id+")",populate:function(e,r,a){var n=x(a,1),i=n[0];r.checks.push({type:ke.ID,value:ua(i)})}},{name:"className",query:!0,regex:"\\.("+ot.className+")",populate:function(e,r,a){var n=x(a,1),i=n[0];r.checks.push({type:ke.CLASS,value:ua(i)})}},{name:"dataExists",query:!0,regex:"\\[\\s*("+ot.variable+")\\s*\\]",populate:function(e,r,a){var n=x(a,1),i=n[0];r.checks.push({type:ke.DATA_EXIST,field:ua(i)})}},{name:"dataCompare",query:!0,regex:"\\[\\s*("+ot.variable+")\\s*("+ot.comparatorOp+")\\s*("+ot.value+")\\s*\\]",populate:function(e,r,a){var n=x(a,3),i=n[0],o=n[1],s=n[2],u=new RegExp("^"+ot.string+"$").exec(s)!=null;u?s=s.substring(1,s.length-1):s=parseFloat(s),r.checks.push({type:ke.DATA_COMPARE,field:ua(i),operator:o,value:s})}},{name:"dataBool",query:!0,regex:"\\[\\s*("+ot.boolOp+")\\s*("+ot.variable+")\\s*\\]",populate:function(e,r,a){var n=x(a,2),i=n[0],o=n[1];r.checks.push({type:ke.DATA_BOOL,field:ua(o),operator:i})}},{name:"metaCompare",query:!0,regex:"\\[\\[\\s*("+ot.meta+")\\s*("+ot.comparatorOp+")\\s*("+ot.number+")\\s*\\]\\]",populate:function(e,r,a){var n=x(a,3),i=n[0],o=n[1],s=n[2];r.checks.push({type:ke.META_COMPARE,field:ua(i),operator:o,value:parseFloat(s)})}},{name:"nextQuery",separator:!0,regex:ot.separator,populate:function(e,r){var a=e.currentSubject,n=e.edgeCount,i=e.compoundCount,o=e[e.length-1];a!=null&&(o.subject=a,e.currentSubject=null),o.edgeCount=n,o.compoundCount=i,e.edgeCount=0,e.compoundCount=0;var s=e[e.length++]=pt();return s}},{name:"directedEdge",separator:!0,regex:ot.directedEdge,populate:function(e,r){if(e.currentSubject==null){var a=pt(),n=r,i=pt();return a.checks.push({type:ke.DIRECTED_EDGE,source:n,target:i}),Dr(e,r,a),e.edgeCount++,i}else{var o=pt(),s=r,u=pt();return o.checks.push({type:ke.NODE_SOURCE,source:s,target:u}),Dr(e,r,o),e.edgeCount++,u}}},{name:"undirectedEdge",separator:!0,regex:ot.undirectedEdge,populate:function(e,r){if(e.currentSubject==null){var a=pt(),n=r,i=pt();return a.checks.push({type:ke.UNDIRECTED_EDGE,nodes:[n,i]}),Dr(e,r,a),e.edgeCount++,i}else{var o=pt(),s=r,u=pt();return o.checks.push({type:ke.NODE_NEIGHBOR,node:s,neighbor:u}),Dr(e,r,o),u}}},{name:"child",separator:!0,regex:ot.child,populate:function(e,r){if(e.currentSubject==null){var a=pt(),n=pt(),i=e[e.length-1];return a.checks.push({type:ke.CHILD,parent:i,child:n}),Dr(e,r,a),e.compoundCount++,n}else if(e.currentSubject===r){var o=pt(),s=e[e.length-1],u=pt(),l=pt(),v=pt(),f=pt();return o.checks.push({type:ke.COMPOUND_SPLIT,left:s,right:u,subject:l}),l.checks=r.checks,r.checks=[{type:ke.TRUE}],f.checks.push({type:ke.TRUE}),u.checks.push({type:ke.PARENT,parent:f,child:v}),Dr(e,s,o),e.currentSubject=l,e.compoundCount++,v}else{var h=pt(),d=pt(),c=[{type:ke.PARENT,parent:h,child:d}];return h.checks=r.checks,r.checks=c,e.compoundCount++,d}}},{name:"descendant",separator:!0,regex:ot.descendant,populate:function(e,r){if(e.currentSubject==null){var a=pt(),n=pt(),i=e[e.length-1];return a.checks.push({type:ke.DESCENDANT,ancestor:i,descendant:n}),Dr(e,r,a),e.compoundCount++,n}else if(e.currentSubject===r){var o=pt(),s=e[e.length-1],u=pt(),l=pt(),v=pt(),f=pt();return o.checks.push({type:ke.COMPOUND_SPLIT,left:s,right:u,subject:l}),l.checks=r.checks,r.checks=[{type:ke.TRUE}],f.checks.push({type:ke.TRUE}),u.checks.push({type:ke.ANCESTOR,ancestor:f,descendant:v}),Dr(e,s,o),e.currentSubject=l,e.compoundCount++,v}else{var h=pt(),d=pt(),c=[{type:ke.ANCESTOR,ancestor:h,descendant:d}];return h.checks=r.checks,r.checks=c,e.compoundCount++,d}}},{name:"subject",modifier:!0,regex:ot.subject,populate:function(e,r){if(e.currentSubject!=null&&e.currentSubject!==r)return ht("Redefinition of subject in selector `"+e.toString()+"`"),!1;e.currentSubject=r;var a=e[e.length-1],n=a.checks[0],i=n==null?null:n.type;i===ke.DIRECTED_EDGE?n.type=ke.NODE_TARGET:i===ke.UNDIRECTED_EDGE&&(n.type=ke.NODE_NEIGHBOR,n.node=n.nodes[1],n.neighbor=n.nodes[0],n.nodes=null)}}];Ci.forEach(function(t){return t.regexObj=new RegExp("^"+t.regex)});var Uc=function(e){for(var r,a,n,i=0;i<Ci.length;i++){var o=Ci[i],s=o.name,u=e.match(o.regexObj);if(u!=null){a=u,r=o,n=s;var l=u[0];e=e.substring(l.length);break}}return{expr:r,match:a,name:n,remaining:e}},_c=function(e){var r=e.match(/^\s+/);if(r){var a=r[0];e=e.substring(a.length)}return e},Yc=function(e){var r=this,a=r.inputText=e,n=r[0]=pt();for(r.length=1,a=_c(a);;){var i=Uc(a);if(i.expr==null)return ht("The selector `"+e+"`is invalid"),!1;var o=i.match.slice(1),s=i.expr.populate(r,n,o);if(s===!1)return!1;if(s!=null&&(n=s),a=i.remaining,a.match(/^\s*$/))break}var u=r[r.length-1];r.currentSubject!=null&&(u.subject=r.currentSubject),u.edgeCount=r.edgeCount,u.compoundCount=r.compoundCount;for(var l=0;l<r.length;l++){var v=r[l];if(v.compoundCount>0&&v.edgeCount>0)return ht("The selector `"+e+"` is invalid because it uses both a compound selector and an edge selector"),!1;if(v.edgeCount>1)return ht("The selector `"+e+"` is invalid because it uses multiple edge selectors"),!1;v.edgeCount===1&&ht("The selector `"+e+"` 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},Hc=function(){if(this.toStringCache!=null)return this.toStringCache;for(var e=function(v){return v??""},r=function(v){return ee(v)?'"'+v+'"':e(v)},a=function(v){return" "+v+" "},n=function(v,f){var h=v.type,d=v.value;switch(h){case ke.GROUP:{var c=e(d);return c.substring(0,c.length-1)}case ke.DATA_COMPARE:{var y=v.field,p=v.operator;return"["+y+a(e(p))+r(d)+"]"}case ke.DATA_BOOL:{var g=v.operator,m=v.field;return"["+e(g)+m+"]"}case ke.DATA_EXIST:{var b=v.field;return"["+b+"]"}case ke.META_COMPARE:{var E=v.operator,M=v.field;return"[["+M+a(e(E))+r(d)+"]]"}case ke.STATE:return d;case ke.ID:return"#"+d;case ke.CLASS:return"."+d;case ke.PARENT:case ke.CHILD:return i(v.parent,f)+a(">")+i(v.child,f);case ke.ANCESTOR:case ke.DESCENDANT:return i(v.ancestor,f)+" "+i(v.descendant,f);case ke.COMPOUND_SPLIT:{var L=i(v.left,f),w=i(v.subject,f),k=i(v.right,f);return L+(L.length>0?" ":"")+w+k}case ke.TRUE:return""}},i=function(v,f){return v.checks.reduce(function(h,d,c){return h+(f===v&&c===0?"$":"")+n(d,f)},"")},o="",s=0;s<this.length;s++){var u=this[s];o+=i(u,u.subject),this.length>1&&s<this.length-1&&(o+=", ")}return this.toStringCache=o,o},Xc={parse:Yc,toString:Hc},vs=function(e,r,a){var n,i=ee(e),o=R(e),s=ee(a),u,l,v=!1,f=!1,h=!1;switch(r.indexOf("!")>=0&&(r=r.replace("!",""),f=!0),r.indexOf("@")>=0&&(r=r.replace("@",""),v=!0),(i||s||v)&&(u=!i&&!o?"":""+e,l=""+a),v&&(e=u=u.toLowerCase(),a=l=l.toLowerCase()),r){case"*=":n=u.indexOf(l)>=0;break;case"$=":n=u.indexOf(l,u.length-l.length)>=0;break;case"^=":n=u.indexOf(l)===0;break;case"=":n=e===a;break;case">":h=!0,n=e>a;break;case">=":h=!0,n=e>=a;break;case"<":h=!0,n=e<a;break;case"<=":h=!0,n=e<=a;break;default:n=!1;break}return f&&(e!=null||!h)&&(n=!n),n},Wc=function(e,r){switch(r){case"?":return!!e;case"!":return!e;case"^":return e===void 0}},qc=function(e){return e!==void 0},Di=function(e,r){return e.data(r)},Kc=function(e,r){return e[r]()},Tt=[],wt=function(e,r){return e.checks.every(function(a){return Tt[a.type](a,r)})};Tt[ke.GROUP]=function(t,e){var r=t.value;return r==="*"||r===e.group()},Tt[ke.STATE]=function(t,e){var r=t.value;return Vc(r,e)},Tt[ke.ID]=function(t,e){var r=t.value;return e.id()===r},Tt[ke.CLASS]=function(t,e){var r=t.value;return e.hasClass(r)},Tt[ke.META_COMPARE]=function(t,e){var r=t.field,a=t.operator,n=t.value;return vs(Kc(e,r),a,n)},Tt[ke.DATA_COMPARE]=function(t,e){var r=t.field,a=t.operator,n=t.value;return vs(Di(e,r),a,n)},Tt[ke.DATA_BOOL]=function(t,e){var r=t.field,a=t.operator;return Wc(Di(e,r),a)},Tt[ke.DATA_EXIST]=function(t,e){var r=t.field;return t.operator,qc(Di(e,r))},Tt[ke.UNDIRECTED_EDGE]=function(t,e){var r=t.nodes[0],a=t.nodes[1],n=e.source(),i=e.target();return wt(r,n)&&wt(a,i)||wt(a,n)&&wt(r,i)},Tt[ke.NODE_NEIGHBOR]=function(t,e){return wt(t.node,e)&&e.neighborhood().some(function(r){return r.isNode()&&wt(t.neighbor,r)})},Tt[ke.DIRECTED_EDGE]=function(t,e){return wt(t.source,e.source())&&wt(t.target,e.target())},Tt[ke.NODE_SOURCE]=function(t,e){return wt(t.source,e)&&e.outgoers().some(function(r){return r.isNode()&&wt(t.target,r)})},Tt[ke.NODE_TARGET]=function(t,e){return wt(t.target,e)&&e.incomers().some(function(r){return r.isNode()&&wt(t.source,r)})},Tt[ke.CHILD]=function(t,e){return wt(t.child,e)&&wt(t.parent,e.parent())},Tt[ke.PARENT]=function(t,e){return wt(t.parent,e)&&e.children().some(function(r){return wt(t.child,r)})},Tt[ke.DESCENDANT]=function(t,e){return wt(t.descendant,e)&&e.ancestors().some(function(r){return wt(t.ancestor,r)})},Tt[ke.ANCESTOR]=function(t,e){return wt(t.ancestor,e)&&e.descendants().some(function(r){return wt(t.descendant,r)})},Tt[ke.COMPOUND_SPLIT]=function(t,e){return wt(t.subject,e)&&wt(t.left,e)&&wt(t.right,e)},Tt[ke.TRUE]=function(){return!0},Tt[ke.COLLECTION]=function(t,e){var r=t.value;return r.has(e)},Tt[ke.FILTER]=function(t,e){var r=t.value;return r(e)};var Zc=function(e){var r=this;if(r.length===1&&r[0].checks.length===1&&r[0].checks[0].type===ke.ID)return e.getElementById(r[0].checks[0].value).collection();var a=function(i){for(var o=0;o<r.length;o++){var s=r[o];if(wt(s,i))return!0}return!1};return r.text()==null&&(a=function(){return!0}),e.filter(a)},Qc=function(e){for(var r=this,a=0;a<r.length;a++){var n=r[a];if(wt(n,e))return!0}return!1},Jc={matches:Qc,filter:Zc},Sr=function(e){this.inputText=e,this.currentSubject=null,this.compoundCount=0,this.edgeCount=0,this.length=0,e==null||ee(e)&&e.match(/^\s*$/)||(pe(e)?this.addQuery({checks:[{type:ke.COLLECTION,value:e.collection()}]}):H(e)?this.addQuery({checks:[{type:ke.FILTER,value:e}]}):ee(e)?this.parse(e)||(this.invalid=!0):xt("A selector must be created from a string; found "))},Lr=Sr.prototype;[Xc,Jc].forEach(function(t){return He(Lr,t)}),Lr.text=function(){return this.inputText},Lr.size=function(){return this.length},Lr.eq=function(t){return this[t]},Lr.sameText=function(t){return!this.invalid&&!t.invalid&&this.text()===t.text()},Lr.addQuery=function(t){this[this.length++]=t},Lr.selector=Lr.toString;var Ar={allAre:function(e){var r=new Sr(e);return this.every(function(a){return r.matches(a)})},is:function(e){var r=new Sr(e);return this.some(function(a){return r.matches(a)})},some:function(e,r){for(var a=0;a<this.length;a++){var n=r?e.apply(r,[this[a],a,this]):e(this[a],a,this);if(n)return!0}return!1},every:function(e,r){for(var a=0;a<this.length;a++){var n=r?e.apply(r,[this[a],a,this]):e(this[a],a,this);if(!n)return!1}return!0},same:function(e){if(this===e)return!0;e=this.cy().collection(e);var r=this.length,a=e.length;return r!==a?!1:r===1?this[0]===e[0]:this.every(function(n){return e.hasElementWithId(n.id())})},anySame:function(e){return e=this.cy().collection(e),this.some(function(r){return e.hasElementWithId(r.id())})},allAreNeighbors:function(e){e=this.cy().collection(e);var r=this.neighborhood();return e.every(function(a){return r.hasElementWithId(a.id())})},contains:function(e){e=this.cy().collection(e);var r=this;return e.every(function(a){return r.hasElementWithId(a.id())})}};Ar.allAreNeighbours=Ar.allAreNeighbors,Ar.has=Ar.contains,Ar.equal=Ar.equals=Ar.same;var Zt=function(e,r){return function(n,i,o,s){var u=n,l=this,v;if(u==null?v="":pe(u)&&u.length===1&&(v=u.id()),l.length===1&&v){var f=l[0]._private,h=f.traversalCache=f.traversalCache||{},d=h[r]=h[r]||[],c=Pr(v),y=d[c];return y||(d[c]=e.call(l,n,i,o,s))}else return e.call(l,n,i,o,s)}},va={parent:function(e){var r=[];if(this.length===1){var a=this[0]._private.parent;if(a)return a}for(var n=0;n<this.length;n++){var i=this[n],o=i._private.parent;o&&r.push(o)}return this.spawn(r,!0).filter(e)},parents:function(e){for(var r=[],a=this.parent();a.nonempty();){for(var n=0;n<a.length;n++){var i=a[n];r.push(i)}a=a.parent()}return this.spawn(r,!0).filter(e)},commonAncestors:function(e){for(var r,a=0;a<this.length;a++){var n=this[a],i=n.parents();r=r||i,r=r.intersect(i)}return r.filter(e)},orphans:function(e){return this.stdFilter(function(r){return r.isOrphan()}).filter(e)},nonorphans:function(e){return this.stdFilter(function(r){return r.isChild()}).filter(e)},children:Zt(function(t){for(var e=[],r=0;r<this.length;r++)for(var a=this[r],n=a._private.children,i=0;i<n.length;i++)e.push(n[i]);return this.spawn(e,!0).filter(t)},"children"),siblings:function(e){return this.parent().children().not(this).filter(e)},isParent:function(){var e=this[0];if(e)return e.isNode()&&e._private.children.length!==0},isChildless:function(){var e=this[0];if(e)return e.isNode()&&e._private.children.length===0},isChild:function(){var e=this[0];if(e)return e.isNode()&&e._private.parent!=null},isOrphan:function(){var e=this[0];if(e)return e.isNode()&&e._private.parent==null},descendants:function(e){var r=[];function a(n){for(var i=0;i<n.length;i++){var o=n[i];r.push(o),o.children().nonempty()&&a(o.children())}}return a(this.children()),this.spawn(r,!0).filter(e)}};function Si(t,e,r,a){for(var n=[],i=new Jr,o=t.cy(),s=o.hasCompoundNodes(),u=0;u<t.length;u++){var l=t[u];r?n.push(l):s&&a(n,i,l)}for(;n.length>0;){var v=n.shift();e(v),i.add(v.id()),s&&a(n,i,v)}return t}function fs(t,e,r){if(r.isParent())for(var a=r._private.children,n=0;n<a.length;n++){var i=a[n];e.has(i.id())||t.push(i)}}va.forEachDown=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Si(this,t,e,fs)};function hs(t,e,r){if(r.isChild()){var a=r._private.parent;e.has(a.id())||t.push(a)}}va.forEachUp=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Si(this,t,e,hs)};function jc(t,e,r){hs(t,e,r),fs(t,e,r)}va.forEachUpAndDown=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Si(this,t,e,jc)},va.ancestors=va.parents;var Va,cs;Va=cs={data:ct.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:ct.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),scratch:ct.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:ct.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),rscratch:ct.data({field:"rscratch",allowBinding:!1,allowSetting:!0,settingTriggersEvent:!1,allowGetting:!0}),removeRscratch:ct.removeData({field:"rscratch",triggerEvent:!1}),id:function(){var e=this[0];if(e)return e._private.data.id}},Va.attr=Va.data,Va.removeAttr=Va.removeData;var ed=cs,An={};function Li(t){return function(e){var r=this;if(e===void 0&&(e=!0),r.length!==0)if(r.isNode()&&!r.removed()){for(var a=0,n=r[0],i=n._private.edges,o=0;o<i.length;o++){var s=i[o];!e&&s.isLoop()||(a+=t(n,s))}return a}else return}}He(An,{degree:Li(function(t,e){return e.source().same(e.target())?2:1}),indegree:Li(function(t,e){return e.target().same(t)?1:0}),outdegree:Li(function(t,e){return e.source().same(t)?1:0})});function fa(t,e){return function(r){for(var a,n=this.nodes(),i=0;i<n.length;i++){var o=n[i],s=o[t](r);s!==void 0&&(a===void 0||e(s,a))&&(a=s)}return a}}He(An,{minDegree:fa("degree",function(t,e){return t<e}),maxDegree:fa("degree",function(t,e){return t>e}),minIndegree:fa("indegree",function(t,e){return t<e}),maxIndegree:fa("indegree",function(t,e){return t>e}),minOutdegree:fa("outdegree",function(t,e){return t<e}),maxOutdegree:fa("outdegree",function(t,e){return t>e})}),He(An,{totalDegree:function(e){for(var r=0,a=this.nodes(),n=0;n<a.length;n++)r+=a[n].degree(e);return r}});var tr,ds,gs=function(e,r,a){for(var n=0;n<e.length;n++){var i=e[n];if(!i.locked()){var o=i._private.position,s={x:r.x!=null?r.x-o.x:0,y:r.y!=null?r.y-o.y:0};i.isParent()&&!(s.x===0&&s.y===0)&&i.children().shift(s,a),i.dirtyBoundingBoxCache()}}},ps={field:"position",bindingEvent:"position",allowBinding:!0,allowSetting:!0,settingEvent:"position",settingTriggersEvent:!0,triggerFnName:"emitAndNotify",allowGetting:!0,validKeys:["x","y"],beforeGet:function(e){e.updateCompoundBounds()},beforeSet:function(e,r){gs(e,r,!1)},onSet:function(e){e.dirtyCompoundBoundsCache()},canSet:function(e){return!e.locked()}};tr=ds={position:ct.data(ps),silentPosition:ct.data(He({},ps,{allowBinding:!1,allowSetting:!0,settingTriggersEvent:!1,allowGetting:!1,beforeSet:function(e,r){gs(e,r,!0)},onSet:function(e){e.dirtyCompoundBoundsCache()}})),positions:function(e,r){if(S(e))r?this.silentPosition(e):this.position(e);else if(H(e)){var a=e,n=this.cy();n.startBatch();for(var i=0;i<this.length;i++){var o=this[i],s=void 0;(s=a(o,i))&&(r?o.silentPosition(s):o.position(s))}n.endBatch()}return this},silentPositions:function(e){return this.positions(e,!0)},shift:function(e,r,a){var n;if(S(e)?(n={x:R(e.x)?e.x:0,y:R(e.y)?e.y:0},a=r):ee(e)&&R(r)&&(n={x:0,y:0},n[e]=r),n!=null){var i=this.cy();i.startBatch();for(var o=0;o<this.length;o++){var s=this[o];if(!(i.hasCompoundNodes()&&s.isChild()&&s.ancestors().anySame(this))){var u=s.position(),l={x:u.x+n.x,y:u.y+n.y};a?s.silentPosition(l):s.position(l)}}i.endBatch()}return this},silentShift:function(e,r){return S(e)?this.shift(e,!0):ee(e)&&R(r)&&this.shift(e,r,!0),this},renderedPosition:function(e,r){var a=this[0],n=this.cy(),i=n.zoom(),o=n.pan(),s=S(e)?e:void 0,u=s!==void 0||r!==void 0&&ee(e);if(a&&a.isNode())if(u)for(var l=0;l<this.length;l++){var v=this[l];r!==void 0?v.position(e,(r-o[e])/i):s!==void 0&&v.position(Eo(s,i,o))}else{var f=a.position();return s=hn(f,i,o),e===void 0?s:s[e]}else if(!u)return;return this},relativePosition:function(e,r){var a=this[0],n=this.cy(),i=S(e)?e:void 0,o=i!==void 0||r!==void 0&&ee(e),s=n.hasCompoundNodes();if(a&&a.isNode())if(o)for(var u=0;u<this.length;u++){var l=this[u],v=s?l.parent():null,f=v&&v.length>0,h=f;f&&(v=v[0]);var d=h?v.position():{x:0,y:0};r!==void 0?l.position(e,r+d[e]):i!==void 0&&l.position({x:i.x+d.x,y:i.y+d.y})}else{var c=a.position(),y=s?a.parent():null,p=y&&y.length>0,g=p;p&&(y=y[0]);var m=g?y.position():{x:0,y:0};return i={x:c.x-m.x,y:c.y-m.y},e===void 0?i:i[e]}else if(!o)return;return this}},tr.modelPosition=tr.point=tr.position,tr.modelPositions=tr.points=tr.positions,tr.renderedPoint=tr.renderedPosition,tr.relativePoint=tr.relativePosition;var td=ds,ha,Or;ha=Or={},Or.renderedBoundingBox=function(t){var e=this.boundingBox(t),r=this.cy(),a=r.zoom(),n=r.pan(),i=e.x1*a+n.x,o=e.x2*a+n.x,s=e.y1*a+n.y,u=e.y2*a+n.y;return{x1:i,x2:o,y1:s,y2:u,w:o-i,h:u-s}},Or.dirtyCompoundBoundsCache=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,e=this.cy();return!e.styleEnabled()||!e.hasCompoundNodes()?this:(this.forEachUp(function(r){if(r.isParent()){var a=r._private;a.compoundBoundsClean=!1,a.bbCache=null,t||r.emitAndNotify("bounds")}}),this)},Or.updateCompoundBounds=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,e=this.cy();if(!e.styleEnabled()||!e.hasCompoundNodes())return this;if(!t&&e.batching())return this;function r(o){if(!o.isParent())return;var s=o._private,u=o.children(),l=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")}},f=u.boundingBox({includeLabels:l,includeOverlays:!1,useCache:!1}),h=s.position;(f.w===0||f.h===0)&&(f={w:o.pstyle("width").pfValue,h:o.pstyle("height").pfValue},f.x1=h.x-f.w/2,f.x2=h.x+f.w/2,f.y1=h.y-f.h/2,f.y2=h.y+f.h/2);function d(D,F,G){var I=0,X=0,B=F+G;return D>0&&B>0&&(I=F/B*D,X=G/B*D),{biasDiff:I,biasComplementDiff:X}}function c(D,F,G,I){if(G.units==="%")switch(I){case"width":return D>0?G.pfValue*D:0;case"height":return F>0?G.pfValue*F:0;case"average":return D>0&&F>0?G.pfValue*(D+F)/2:0;case"min":return D>0&&F>0?D>F?G.pfValue*F:G.pfValue*D:0;case"max":return D>0&&F>0?D>F?G.pfValue*D:G.pfValue*F:0;default:return 0}else return G.units==="px"?G.pfValue:0}var y=v.width.left.value;v.width.left.units==="px"&&v.width.val>0&&(y=y*100/v.width.val);var p=v.width.right.value;v.width.right.units==="px"&&v.width.val>0&&(p=p*100/v.width.val);var g=v.height.top.value;v.height.top.units==="px"&&v.height.val>0&&(g=g*100/v.height.val);var m=v.height.bottom.value;v.height.bottom.units==="px"&&v.height.val>0&&(m=m*100/v.height.val);var b=d(v.width.val-f.w,y,p),E=b.biasDiff,M=b.biasComplementDiff,L=d(v.height.val-f.h,g,m),w=L.biasDiff,k=L.biasComplementDiff;s.autoPadding=c(f.w,f.h,o.pstyle("padding"),o.pstyle("padding-relative-to").value),s.autoWidth=Math.max(f.w,v.width.val),h.x=(-E+f.x1+f.x2+M)/2,s.autoHeight=Math.max(f.h,v.height.val),h.y=(-w+f.y1+f.y2+k)/2}for(var a=0;a<this.length;a++){var n=this[a],i=n._private;(!i.compoundBoundsClean||t)&&(r(n),e.batching()||(i.compoundBoundsClean=!0))}return this};var Qt=function(e){return e===1/0||e===-1/0?0:e},rr=function(e,r,a,n,i){n-r===0||i-a===0||r==null||a==null||n==null||i==null||(e.x1=r<e.x1?r:e.x1,e.x2=n>e.x2?n:e.x2,e.y1=a<e.y1?a:e.y1,e.y2=i>e.y2?i:e.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1)},Vr=function(e,r){return r==null?e:rr(e,r.x1,r.y1,r.x2,r.y2)},$a=function(e,r,a){return er(e,r,a)},On=function(e,r,a){if(!r.cy().headless()){var n=r._private,i=n.rstyle,o=i.arrowWidth/2,s=r.pstyle(a+"-arrow-shape").value,u,l;if(s!=="none"){a==="source"?(u=i.srcX,l=i.srcY):a==="target"?(u=i.tgtX,l=i.tgtY):(u=i.midX,l=i.midY);var v=n.arrowBounds=n.arrowBounds||{},f=v[a]=v[a]||{};f.x1=u-o,f.y1=l-o,f.x2=u+o,f.y2=l+o,f.w=f.x2-f.x1,f.h=f.y2-f.y1,dn(f,1),rr(e,f.x1,f.y1,f.x2,f.y2)}}},Ai=function(e,r,a){if(!r.cy().headless()){var n;a?n=a+"-":n="";var i=r._private,o=i.rstyle,s=r.pstyle(n+"label").strValue;if(s){var u=r.pstyle("text-halign"),l=r.pstyle("text-valign"),v=$a(o,"labelWidth",a),f=$a(o,"labelHeight",a),h=$a(o,"labelX",a),d=$a(o,"labelY",a),c=r.pstyle(n+"text-margin-x").pfValue,y=r.pstyle(n+"text-margin-y").pfValue,p=r.isEdge(),g=r.pstyle(n+"text-rotation"),m=r.pstyle("text-outline-width").pfValue,b=r.pstyle("text-border-width").pfValue,E=b/2,M=r.pstyle("text-background-padding").pfValue,L=2,w=f,k=v,D=k/2,F=w/2,G,I,X,B;if(p)G=h-D,I=h+D,X=d-F,B=d+F;else{switch(u.value){case"left":G=h-k,I=h;break;case"center":G=h-D,I=h+D;break;case"right":G=h,I=h+k;break}switch(l.value){case"top":X=d-w,B=d;break;case"center":X=d-F,B=d+F;break;case"bottom":X=d,B=d+w;break}}G+=c-Math.max(m,E)-M-L,I+=c+Math.max(m,E)+M+L,X+=y-Math.max(m,E)-M-L,B+=y+Math.max(m,E)+M+L;var re=a||"main",K=i.labelBounds,W=K[re]=K[re]||{};W.x1=G,W.y1=X,W.x2=I,W.y2=B,W.w=I-G,W.h=B-X;var ae=p&&g.strValue==="autorotate",ue=g.pfValue!=null&&g.pfValue!==0;if(ae||ue){var me=ae?$a(i.rstyle,"labelAngle",a):g.pfValue,ie=Math.cos(me),ge=Math.sin(me),Ee=(G+I)/2,Ce=(X+B)/2;if(!p){switch(u.value){case"left":Ee=I;break;case"right":Ee=G;break}switch(l.value){case"top":Ce=B;break;case"bottom":Ce=X;break}}var we=function(Xe,Ie){return Xe=Xe-Ee,Ie=Ie-Ce,{x:Xe*ie-Ie*ge+Ee,y:Xe*ge+Ie*ie+Ce}},De=we(G,X),oe=we(G,B),xe=we(I,X),Le=we(I,B);G=Math.min(De.x,oe.x,xe.x,Le.x),I=Math.max(De.x,oe.x,xe.x,Le.x),X=Math.min(De.y,oe.y,xe.y,Le.y),B=Math.max(De.y,oe.y,xe.y,Le.y)}var Se=re+"Rot",Oe=K[Se]=K[Se]||{};Oe.x1=G,Oe.y1=X,Oe.x2=I,Oe.y2=B,Oe.w=I-G,Oe.h=B-X,rr(e,G,X,I,B),rr(i.labelBounds.all,G,X,I,B)}return e}},rd=function(e,r){if(!r.cy().headless()){var a=r.pstyle("outline-opacity").value,n=r.pstyle("outline-width").value;if(a>0&&n>0){var i=r.pstyle("outline-offset").value,o=r.pstyle("shape").value,s=n+i,u=(e.w+s*2)/e.w,l=(e.h+s*2)/e.h,v=0,f=0;["diamond","pentagon","round-triangle"].includes(o)?(u=(e.w+s*2.4)/e.w,f=-s/3.6):["concave-hexagon","rhomboid","right-rhomboid"].includes(o)?u=(e.w+s*2.4)/e.w:o==="star"?(u=(e.w+s*2.8)/e.w,l=(e.h+s*2.6)/e.h,f=-s/3.8):o==="triangle"?(u=(e.w+s*2.8)/e.w,l=(e.h+s*2.4)/e.h,f=-s/1.4):o==="vee"&&(u=(e.w+s*4.4)/e.w,l=(e.h+s*3.8)/e.h,f=-s*.5);var h=e.h*l-e.h,d=e.w*u-e.w;if(gn(e,[Math.ceil(h/2),Math.ceil(d/2)]),v!=0||f!==0){var c=xv(e,v,f);xo(e,c)}}}},ad=function(e,r){var a=e._private.cy,n=a.styleEnabled(),i=a.headless(),o=Yt(),s=e._private,u=e.isNode(),l=e.isEdge(),v,f,h,d,c,y,p=s.rstyle,g=u&&n?e.pstyle("bounds-expansion").pfValue:[0],m=function($e){return $e.pstyle("display").value!=="none"},b=!n||m(e)&&(!l||m(e.source())&&m(e.target()));if(b){var E=0,M=0;n&&r.includeOverlays&&(E=e.pstyle("overlay-opacity").value,E!==0&&(M=e.pstyle("overlay-padding").value));var L=0,w=0;n&&r.includeUnderlays&&(L=e.pstyle("underlay-opacity").value,L!==0&&(w=e.pstyle("underlay-padding").value));var k=Math.max(M,w),D=0,F=0;if(n&&(D=e.pstyle("width").pfValue,F=D/2),u&&r.includeNodes){var G=e.position();c=G.x,y=G.y;var I=e.outerWidth(),X=I/2,B=e.outerHeight(),re=B/2;v=c-X,f=c+X,h=y-re,d=y+re,rr(o,v,h,f,d),n&&r.includeOutlines&&rd(o,e)}else if(l&&r.includeEdges)if(n&&!i){var K=e.pstyle("curve-style").strValue;if(v=Math.min(p.srcX,p.midX,p.tgtX),f=Math.max(p.srcX,p.midX,p.tgtX),h=Math.min(p.srcY,p.midY,p.tgtY),d=Math.max(p.srcY,p.midY,p.tgtY),v-=F,f+=F,h-=F,d+=F,rr(o,v,h,f,d),K==="haystack"){var W=p.haystackPts;if(W&&W.length===2){if(v=W[0].x,h=W[0].y,f=W[1].x,d=W[1].y,v>f){var ae=v;v=f,f=ae}if(h>d){var ue=h;h=d,d=ue}rr(o,v-F,h-F,f+F,d+F)}}else if(K==="bezier"||K==="unbundled-bezier"||K==="segments"||K==="taxi"){var me;switch(K){case"bezier":case"unbundled-bezier":me=p.bezierPts;break;case"segments":case"taxi":me=p.linePts;break}if(me!=null)for(var ie=0;ie<me.length;ie++){var ge=me[ie];v=ge.x-F,f=ge.x+F,h=ge.y-F,d=ge.y+F,rr(o,v,h,f,d)}}}else{var Ee=e.source(),Ce=Ee.position(),we=e.target(),De=we.position();if(v=Ce.x,f=De.x,h=Ce.y,d=De.y,v>f){var oe=v;v=f,f=oe}if(h>d){var xe=h;h=d,d=xe}v-=F,f+=F,h-=F,d+=F,rr(o,v,h,f,d)}if(n&&r.includeEdges&&l&&(On(o,e,"mid-source"),On(o,e,"mid-target"),On(o,e,"source"),On(o,e,"target")),n){var Le=e.pstyle("ghost").value==="yes";if(Le){var Se=e.pstyle("ghost-offset-x").pfValue,Oe=e.pstyle("ghost-offset-y").pfValue;rr(o,o.x1+Se,o.y1+Oe,o.x2+Se,o.y2+Oe)}}var Fe=s.bodyBounds=s.bodyBounds||{};To(Fe,o),gn(Fe,g),dn(Fe,1),n&&(v=o.x1,f=o.x2,h=o.y1,d=o.y2,rr(o,v-k,h-k,f+k,d+k));var Xe=s.overlayBounds=s.overlayBounds||{};To(Xe,o),gn(Xe,g),dn(Xe,1);var Ie=s.labelBounds=s.labelBounds||{};Ie.all!=null?wv(Ie.all):Ie.all=Yt(),n&&r.includeLabels&&(r.includeMainLabels&&Ai(o,e,null),l&&(r.includeSourceLabels&&Ai(o,e,"source"),r.includeTargetLabels&&Ai(o,e,"target")))}return o.x1=Qt(o.x1),o.y1=Qt(o.y1),o.x2=Qt(o.x2),o.y2=Qt(o.y2),o.w=Qt(o.x2-o.x1),o.h=Qt(o.y2-o.y1),o.w>0&&o.h>0&&b&&(gn(o,g),dn(o,1)),o},ys=function(e){var r=0,a=function(o){return(o?1:0)<<r++},n=0;return n+=a(e.incudeNodes),n+=a(e.includeEdges),n+=a(e.includeLabels),n+=a(e.includeMainLabels),n+=a(e.includeSourceLabels),n+=a(e.includeTargetLabels),n+=a(e.includeOverlays),n+=a(e.includeOutlines),n},ms=function(e){if(e.isEdge()){var r=e.source().position(),a=e.target().position(),n=function(o){return Math.round(o)};return Uu([n(r.x),n(r.y),n(a.x),n(a.y)])}else return 0},bs=function(e,r){var a=e._private,n,i=e.isEdge(),o=r==null?Es:ys(r),s=o===Es,u=ms(e),l=a.bbCachePosKey===u,v=r.useCache&&l,f=function(y){return y._private.bbCache==null||y._private.styleDirty},h=!v||f(e)||i&&f(e.source())||f(e.target());if(h?(l||e.recalculateRenderedStyle(v),n=ad(e,Ua),a.bbCache=n,a.bbCachePosKey=u):n=a.bbCache,!s){var d=e.isNode();n=Yt(),(r.includeNodes&&d||r.includeEdges&&!d)&&(r.includeOverlays?Vr(n,a.overlayBounds):Vr(n,a.bodyBounds)),r.includeLabels&&(r.includeMainLabels&&(!i||r.includeSourceLabels&&r.includeTargetLabels)?Vr(n,a.labelBounds.all):(r.includeMainLabels&&Vr(n,a.labelBounds.mainRot),r.includeSourceLabels&&Vr(n,a.labelBounds.sourceRot),r.includeTargetLabels&&Vr(n,a.labelBounds.targetRot))),n.w=n.x2-n.x1,n.h=n.y2-n.y1}return n},Ua={includeNodes:!0,includeEdges:!0,includeLabels:!0,includeMainLabels:!0,includeSourceLabels:!0,includeTargetLabels:!0,includeOverlays:!0,includeUnderlays:!0,includeOutlines:!0,useCache:!0},Es=ys(Ua),ws=At(Ua);Or.boundingBox=function(t){var e;if(this.length===1&&this[0]._private.bbCache!=null&&!this[0]._private.styleDirty&&(t===void 0||t.useCache===void 0||t.useCache===!0))t===void 0?t=Ua:t=ws(t),e=bs(this[0],t);else{e=Yt(),t=t||Ua;var r=ws(t),a=this,n=a.cy(),i=n.styleEnabled();if(i)for(var o=0;o<a.length;o++){var s=a[o],u=s._private,l=ms(s),v=u.bbCachePosKey===l,f=r.useCache&&v&&!u.styleDirty;s.recalculateRenderedStyle(f)}this.updateCompoundBounds(!t.useCache);for(var h=0;h<a.length;h++){var d=a[h];Vr(e,bs(d,r))}}return e.x1=Qt(e.x1),e.y1=Qt(e.y1),e.x2=Qt(e.x2),e.y2=Qt(e.y2),e.w=Qt(e.x2-e.x1),e.h=Qt(e.y2-e.y1),e},Or.dirtyBoundingBoxCache=function(){for(var t=0;t<this.length;t++){var e=this[t]._private;e.bbCache=null,e.bbCachePosKey=null,e.bodyBounds=null,e.overlayBounds=null,e.labelBounds.all=null,e.labelBounds.source=null,e.labelBounds.target=null,e.labelBounds.main=null,e.labelBounds.sourceRot=null,e.labelBounds.targetRot=null,e.labelBounds.mainRot=null,e.arrowBounds.source=null,e.arrowBounds.target=null,e.arrowBounds["mid-source"]=null,e.arrowBounds["mid-target"]=null}return this.emitAndNotify("bounds"),this},Or.boundingBoxAt=function(t){var e=this.nodes(),r=this.cy(),a=r.hasCompoundNodes(),n=r.collection();if(a&&(n=e.filter(function(l){return l.isParent()}),e=e.not(n)),S(t)){var i=t;t=function(){return i}}var o=function(v,f){return v._private.bbAtOldPos=t(v,f)},s=function(v){return v._private.bbAtOldPos};r.startBatch(),e.forEach(o).silentPositions(t),a&&(n.dirtyCompoundBoundsCache(),n.dirtyBoundingBoxCache(),n.updateCompoundBounds(!0));var u=Ev(this.boundingBox({useCache:!1}));return e.silentPositions(s),a&&(n.dirtyCompoundBoundsCache(),n.dirtyBoundingBoxCache(),n.updateCompoundBounds(!0)),r.endBatch(),u},ha.boundingbox=ha.bb=ha.boundingBox,ha.renderedBoundingbox=ha.renderedBoundingBox;var nd=Or,_a,Ya;_a=Ya={};var xs=function(e){e.uppercaseName=Pt(e.name),e.autoName="auto"+e.uppercaseName,e.labelName="label"+e.uppercaseName,e.outerName="outer"+e.uppercaseName,e.uppercaseOuterName=Pt(e.outerName),_a[e.name]=function(){var a=this[0],n=a._private,i=n.cy,o=i._private.styleEnabled;if(a)if(o){if(a.isParent())return a.updateCompoundBounds(),n[e.autoName]||0;var s=a.pstyle(e.name);switch(s.strValue){case"label":return a.recalculateRenderedStyle(),n.rstyle[e.labelName]||0;default:return s.pfValue}}else return 1},_a["outer"+e.uppercaseName]=function(){var a=this[0],n=a._private,i=n.cy,o=i._private.styleEnabled;if(a)if(o){var s=a[e.name](),u=a.pstyle("border-width").pfValue,l=2*a.padding();return s+u+l}else return 1},_a["rendered"+e.uppercaseName]=function(){var a=this[0];if(a){var n=a[e.name]();return n*this.cy().zoom()}},_a["rendered"+e.uppercaseOuterName]=function(){var a=this[0];if(a){var n=a[e.outerName]();return n*this.cy().zoom()}}};xs({name:"width"}),xs({name:"height"}),Ya.padding=function(){var t=this[0],e=t._private;return t.isParent()?(t.updateCompoundBounds(),e.autoPadding!==void 0?e.autoPadding:t.pstyle("padding").pfValue):t.pstyle("padding").pfValue},Ya.paddedHeight=function(){var t=this[0];return t.height()+2*t.padding()},Ya.paddedWidth=function(){var t=this[0];return t.width()+2*t.padding()};var id=Ya,od=function(e,r){if(e.isEdge())return r(e)},sd=function(e,r){if(e.isEdge()){var a=e.cy();return hn(r(e),a.zoom(),a.pan())}},ld=function(e,r){if(e.isEdge()){var a=e.cy(),n=a.pan(),i=a.zoom();return r(e).map(function(o){return hn(o,i,n)})}},ud=function(e){return e.renderer().getControlPoints(e)},vd=function(e){return e.renderer().getSegmentPoints(e)},fd=function(e){return e.renderer().getSourceEndpoint(e)},hd=function(e){return e.renderer().getTargetEndpoint(e)},cd=function(e){return e.renderer().getEdgeMidpoint(e)},Ts={controlPoints:{get:ud,mult:!0},segmentPoints:{get:vd,mult:!0},sourceEndpoint:{get:fd},targetEndpoint:{get:hd},midpoint:{get:cd}},dd=function(e){return"rendered"+e[0].toUpperCase()+e.substr(1)},gd=Object.keys(Ts).reduce(function(t,e){var r=Ts[e],a=dd(e);return t[e]=function(){return od(this,r.get)},r.mult?t[a]=function(){return ld(this,r.get)}:t[a]=function(){return sd(this,r.get)},t},{}),pd=He({},td,nd,id,gd);/*!
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
*/var Cs=function(e,r){this.recycle(e,r)};function Ha(){return!1}function Nn(){return!0}Cs.prototype={instanceString:function(){return"event"},recycle:function(e,r){if(this.isImmediatePropagationStopped=this.isPropagationStopped=this.isDefaultPrevented=Ha,e!=null&&e.preventDefault?(this.type=e.type,this.isDefaultPrevented=e.defaultPrevented?Nn:Ha):e!=null&&e.type?r=e:this.type=e,r!=null&&(this.originalEvent=r.originalEvent,this.type=r.type!=null?r.type:this.type,this.cy=r.cy,this.target=r.target,this.position=r.position,this.renderedPosition=r.renderedPosition,this.namespace=r.namespace,this.layout=r.layout),this.cy!=null&&this.position!=null&&this.renderedPosition==null){var a=this.position,n=this.cy.zoom(),i=this.cy.pan();this.renderedPosition={x:a.x*n+i.x,y:a.y*n+i.y}}this.timeStamp=e&&e.timeStamp||Date.now()},preventDefault:function(){this.isDefaultPrevented=Nn;var e=this.originalEvent;e&&e.preventDefault&&e.preventDefault()},stopPropagation:function(){this.isPropagationStopped=Nn;var e=this.originalEvent;e&&e.stopPropagation&&e.stopPropagation()},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=Nn,this.stopPropagation()},isDefaultPrevented:Ha,isPropagationStopped:Ha,isImmediatePropagationStopped:Ha};var Ds=/^([^.]+)(\.(?:[^.]+))?$/,yd=".*",Ss={qualifierCompare:function(e,r){return e===r},eventMatches:function(){return!0},addEventFields:function(){},callbackContext:function(e){return e},beforeEmit:function(){},afterEmit:function(){},bubble:function(){return!1},parent:function(){return null},context:null},Ls=Object.keys(Ss),md={};function In(){for(var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:md,e=arguments.length>1?arguments[1]:void 0,r=0;r<Ls.length;r++){var a=Ls[r];this[a]=t[a]||Ss[a]}this.context=e||this.context,this.listeners=[],this.emitting=0}var Nr=In.prototype,As=function(e,r,a,n,i,o,s){H(n)&&(i=n,n=null),s&&(o==null?o=s:o=He({},o,s));for(var u=te(a)?a:a.split(/\s+/),l=0;l<u.length;l++){var v=u[l];if(!Re(v)){var f=v.match(Ds);if(f){var h=f[1],d=f[2]?f[2]:null,c=r(e,v,h,d,n,i,o);if(c===!1)break}}}},Os=function(e,r){return e.addEventFields(e.context,r),new Cs(r.type,r)},bd=function(e,r,a){if(dt(a)){r(e,a);return}else if(S(a)){r(e,Os(e,a));return}for(var n=te(a)?a:a.split(/\s+/),i=0;i<n.length;i++){var o=n[i];if(!Re(o)){var s=o.match(Ds);if(s){var u=s[1],l=s[2]?s[2]:null,v=Os(e,{type:u,namespace:l,target:e.context});r(e,v)}}}};Nr.on=Nr.addListener=function(t,e,r,a,n){return As(this,function(i,o,s,u,l,v,f){H(v)&&i.listeners.push({event:o,callback:v,type:s,namespace:u,qualifier:l,conf:f})},t,e,r,a,n),this},Nr.one=function(t,e,r,a){return this.on(t,e,r,a,{one:!0})},Nr.removeListener=Nr.off=function(t,e,r,a){var n=this;this.emitting!==0&&(this.listeners=Wu(this.listeners));for(var i=this.listeners,o=function(l){var v=i[l];As(n,function(f,h,d,c,y,p){if((v.type===d||t==="*")&&(!c&&v.namespace!==".*"||v.namespace===c)&&(!y||f.qualifierCompare(v.qualifier,y))&&(!p||v.callback===p))return i.splice(l,1),!1},t,e,r,a)},s=i.length-1;s>=0;s--)o(s);return this},Nr.removeAllListeners=function(){return this.removeListener("*")},Nr.emit=Nr.trigger=function(t,e,r){var a=this.listeners,n=a.length;return this.emitting++,te(e)||(e=[e]),bd(this,function(i,o){r!=null&&(a=[{event:o.event,type:o.type,namespace:o.namespace,callback:r}],n=a.length);for(var s=function(v){var f=a[v];if(f.type===o.type&&(!f.namespace||f.namespace===o.namespace||f.namespace===yd)&&i.eventMatches(i.context,f,o)){var h=[o];e!=null&&Ku(h,e),i.beforeEmit(i.context,f,o),f.conf&&f.conf.one&&(i.listeners=i.listeners.filter(function(y){return y!==f}));var d=i.callbackContext(i.context,f,o),c=f.callback.apply(d,h);i.afterEmit(i.context,f,o),c===!1&&(o.stopPropagation(),o.preventDefault())}},u=0;u<n;u++)s(u);i.bubble(i.context)&&!o.isPropagationStopped()&&i.parent(i.context).emit(o,e)},t),this.emitting--,this};var Ed={qualifierCompare:function(e,r){return e==null||r==null?e==null&&r==null:e.sameText(r)},eventMatches:function(e,r,a){var n=r.qualifier;return n!=null?e!==a.target&&Ae(a.target)&&n.matches(a.target):!0},addEventFields:function(e,r){r.cy=e.cy(),r.target=e},callbackContext:function(e,r,a){return r.qualifier!=null?a.target:e},beforeEmit:function(e,r){r.conf&&r.conf.once&&r.conf.onceCollection.removeListener(r.event,r.qualifier,r.callback)},bubble:function(){return!0},parent:function(e){return e.isChild()?e.parent():e.cy()}},Mn=function(e){return ee(e)?new Sr(e):e},Ns={createEmitter:function(){for(var e=0;e<this.length;e++){var r=this[e],a=r._private;a.emitter||(a.emitter=new In(Ed,r))}return this},emitter:function(){return this._private.emitter},on:function(e,r,a){for(var n=Mn(r),i=0;i<this.length;i++){var o=this[i];o.emitter().on(e,n,a)}return this},removeListener:function(e,r,a){for(var n=Mn(r),i=0;i<this.length;i++){var o=this[i];o.emitter().removeListener(e,n,a)}return this},removeAllListeners:function(){for(var e=0;e<this.length;e++){var r=this[e];r.emitter().removeAllListeners()}return this},one:function(e,r,a){for(var n=Mn(r),i=0;i<this.length;i++){var o=this[i];o.emitter().one(e,n,a)}return this},once:function(e,r,a){for(var n=Mn(r),i=0;i<this.length;i++){var o=this[i];o.emitter().on(e,n,a,{once:!0,onceCollection:this})}},emit:function(e,r){for(var a=0;a<this.length;a++){var n=this[a];n.emitter().emit(e,r)}return this},emitAndNotify:function(e,r){if(this.length!==0)return this.cy().notify(e,this),this.emit(e,r),this}};ct.eventAliasesOn(Ns);var Is={nodes:function(e){return this.filter(function(r){return r.isNode()}).filter(e)},edges:function(e){return this.filter(function(r){return r.isEdge()}).filter(e)},byGroup:function(){for(var e=this.spawn(),r=this.spawn(),a=0;a<this.length;a++){var n=this[a];n.isNode()?e.push(n):r.push(n)}return{nodes:e,edges:r}},filter:function(e,r){if(e===void 0)return this;if(ee(e)||pe(e))return new Sr(e).filter(this);if(H(e)){for(var a=this.spawn(),n=this,i=0;i<n.length;i++){var o=n[i],s=r?e.apply(r,[o,i,n]):e(o,i,n);s&&a.push(o)}return a}return this.spawn()},not:function(e){if(e){ee(e)&&(e=this.filter(e));for(var r=this.spawn(),a=0;a<this.length;a++){var n=this[a],i=e.has(n);i||r.push(n)}return r}else return this},absoluteComplement:function(){var e=this.cy();return e.mutableElements().not(this)},intersect:function(e){if(ee(e)){var r=e;return this.filter(r)}for(var a=this.spawn(),n=this,i=e,o=this.length<e.length,s=o?n:i,u=o?i:n,l=0;l<s.length;l++){var v=s[l];u.has(v)&&a.push(v)}return a},xor:function(e){var r=this._private.cy;ee(e)&&(e=r.$(e));var a=this.spawn(),n=this,i=e,o=function(u,l){for(var v=0;v<u.length;v++){var f=u[v],h=f._private.data.id,d=l.hasElementWithId(h);d||a.push(f)}};return o(n,i),o(i,n),a},diff:function(e){var r=this._private.cy;ee(e)&&(e=r.$(e));var a=this.spawn(),n=this.spawn(),i=this.spawn(),o=this,s=e,u=function(v,f,h){for(var d=0;d<v.length;d++){var c=v[d],y=c._private.data.id,p=f.hasElementWithId(y);p?i.merge(c):h.push(c)}};return u(o,s,a),u(s,o,n),{left:a,right:n,both:i}},add:function(e){var r=this._private.cy;if(!e)return this;if(ee(e)){var a=e;e=r.mutableElements().filter(a)}for(var n=this.spawnSelf(),i=0;i<e.length;i++){var o=e[i],s=!this.has(o);s&&n.push(o)}return n},merge:function(e){var r=this._private,a=r.cy;if(!e)return this;if(e&&ee(e)){var n=e;e=a.mutableElements().filter(n)}for(var i=r.map,o=0;o<e.length;o++){var s=e[o],u=s._private.data.id,l=!i.has(u);if(l){var v=this.length++;this[v]=s,i.set(u,{ele:s,index:v})}}return this},unmergeAt:function(e){var r=this[e],a=r.id(),n=this._private,i=n.map;this[e]=void 0,i.delete(a);var o=e===this.length-1;if(this.length>1&&!o){var s=this.length-1,u=this[s],l=u._private.data.id;this[s]=void 0,this[e]=u,i.set(l,{ele:u,index:e})}return this.length--,this},unmergeOne:function(e){e=e[0];var r=this._private,a=e._private.data.id,n=r.map,i=n.get(a);if(!i)return this;var o=i.index;return this.unmergeAt(o),this},unmerge:function(e){var r=this._private.cy;if(!e)return this;if(e&&ee(e)){var a=e;e=r.mutableElements().filter(a)}for(var n=0;n<e.length;n++)this.unmergeOne(e[n]);return this},unmergeBy:function(e){for(var r=this.length-1;r>=0;r--){var a=this[r];e(a)&&this.unmergeAt(r)}return this},map:function(e,r){for(var a=[],n=this,i=0;i<n.length;i++){var o=n[i],s=r?e.apply(r,[o,i,n]):e(o,i,n);a.push(s)}return a},reduce:function(e,r){for(var a=r,n=this,i=0;i<n.length;i++)a=e(a,n[i],i,n);return a},max:function(e,r){for(var a=-1/0,n,i=this,o=0;o<i.length;o++){var s=i[o],u=r?e.apply(r,[s,o,i]):e(s,o,i);u>a&&(a=u,n=s)}return{value:a,ele:n}},min:function(e,r){for(var a=1/0,n,i=this,o=0;o<i.length;o++){var s=i[o],u=r?e.apply(r,[s,o,i]):e(s,o,i);u<a&&(a=u,n=s)}return{value:a,ele:n}}},lt=Is;lt.u=lt["|"]=lt["+"]=lt.union=lt.or=lt.add,lt["\\"]=lt["!"]=lt["-"]=lt.difference=lt.relativeComplement=lt.subtract=lt.not,lt.n=lt["&"]=lt["."]=lt.and=lt.intersection=lt.intersect,lt["^"]=lt["(+)"]=lt["(-)"]=lt.symmetricDifference=lt.symdiff=lt.xor,lt.fnFilter=lt.filterFn=lt.stdFilter=lt.filter,lt.complement=lt.abscomp=lt.absoluteComplement;var wd={isNode:function(){return this.group()==="nodes"},isEdge:function(){return this.group()==="edges"},isLoop:function(){return this.isEdge()&&this.source()[0]===this.target()[0]},isSimple:function(){return this.isEdge()&&this.source()[0]!==this.target()[0]},group:function(){var e=this[0];if(e)return e._private.group}},Ms=function(e,r){var a=e.cy(),n=a.hasCompoundNodes();function i(v){var f=v.pstyle("z-compound-depth");return f.value==="auto"?n?v.zDepth():0:f.value==="bottom"?-1:f.value==="top"?ii:0}var o=i(e)-i(r);if(o!==0)return o;function s(v){var f=v.pstyle("z-index-compare");return f.value==="auto"&&v.isNode()?1:0}var u=s(e)-s(r);if(u!==0)return u;var l=e.pstyle("z-index").value-r.pstyle("z-index").value;return l!==0?l:e.poolIndex()-r.poolIndex()},Rn={forEach:function(e,r){if(H(e))for(var a=this.length,n=0;n<a;n++){var i=this[n],o=r?e.apply(r,[i,n,this]):e(i,n,this);if(o===!1)break}return this},toArray:function(){for(var e=[],r=0;r<this.length;r++)e.push(this[r]);return e},slice:function(e,r){var a=[],n=this.length;r==null&&(r=n),e==null&&(e=0),e<0&&(e=n+e),r<0&&(r=n+r);for(var i=e;i>=0&&i<r&&i<n;i++)a.push(this[i]);return this.spawn(a)},size:function(){return this.length},eq:function(e){return this[e]||this.spawn()},first:function(){return this[0]||this.spawn()},last:function(){return this[this.length-1]||this.spawn()},empty:function(){return this.length===0},nonempty:function(){return!this.empty()},sort:function(e){if(!H(e))return this;var r=this.toArray().sort(e);return this.spawn(r)},sortByZIndex:function(){return this.sort(Ms)},zDepth:function(){var e=this[0];if(e){var r=e._private,a=r.group;if(a==="nodes"){var n=r.data.parent?e.parents().size():0;return e.isParent()?n:ii-1}else{var i=r.source,o=r.target,s=i.zDepth(),u=o.zDepth();return Math.max(s,u,0)}}}};Rn.each=Rn.forEach;var xd=function(){var e="undefined",r=(typeof Symbol>"u"?"undefined":_(Symbol))!=e&&_(Symbol.iterator)!=e;r&&(Rn[Symbol.iterator]=function(){var a=this,n={value:void 0,done:!1},i=0,o=this.length;return T({next:function(){return i<o?n.value=a[i++]:(n.value=void 0,n.done=!0),n}},Symbol.iterator,function(){return this})})};xd();var Td=At({nodeDimensionsIncludeLabels:!1}),kn={layoutDimensions:function(e){e=Td(e);var r;if(!this.takesUpSpace())r={w:0,h:0};else if(e.nodeDimensionsIncludeLabels){var a=this.boundingBox();r={w:a.w,h:a.h}}else r={w:this.outerWidth(),h:this.outerHeight()};return(r.w===0||r.h===0)&&(r.w=r.h=1),r},layoutPositions:function(e,r,a){var n=this.nodes().filter(function(M){return!M.isParent()}),i=this.cy(),o=r.eles,s=function(L){return L.id()},u=it(a,s);e.emit({type:"layoutstart",layout:e}),e.animations=[];var l=function(L,w,k){var D={x:w.x1+w.w/2,y:w.y1+w.h/2},F={x:(k.x-D.x)*L,y:(k.y-D.y)*L};return{x:D.x+F.x,y:D.y+F.y}},v=r.spacingFactor&&r.spacingFactor!==1,f=function(){if(!v)return null;for(var L=Yt(),w=0;w<n.length;w++){var k=n[w],D=u(k,w);Tv(L,D.x,D.y)}return L},h=f(),d=it(function(M,L){var w=u(M,L);if(v){var k=Math.abs(r.spacingFactor);w=l(k,h,w)}return r.transform!=null&&(w=r.transform(M,w)),w},s);if(r.animate){for(var c=0;c<n.length;c++){var y=n[c],p=d(y,c),g=r.animateFilter==null||r.animateFilter(y,c);if(g){var m=y.animation({position:p,duration:r.animationDuration,easing:r.animationEasing});e.animations.push(m)}else y.position(p)}if(r.fit){var b=i.animation({fit:{boundingBox:o.boundingBoxAt(d),padding:r.padding},duration:r.animationDuration,easing:r.animationEasing});e.animations.push(b)}else if(r.zoom!==void 0&&r.pan!==void 0){var E=i.animation({zoom:r.zoom,pan:r.pan,duration:r.animationDuration,easing:r.animationEasing});e.animations.push(E)}e.animations.forEach(function(M){return M.play()}),e.one("layoutready",r.ready),e.emit({type:"layoutready",layout:e}),ia.all(e.animations.map(function(M){return M.promise()})).then(function(){e.one("layoutstop",r.stop),e.emit({type:"layoutstop",layout:e})})}else n.positions(d),r.fit&&i.fit(r.eles,r.padding),r.zoom!=null&&i.zoom(r.zoom),r.pan&&i.pan(r.pan),e.one("layoutready",r.ready),e.emit({type:"layoutready",layout:e}),e.one("layoutstop",r.stop),e.emit({type:"layoutstop",layout:e});return this},layout:function(e){var r=this.cy();return r.makeLayout(He({},e,{eles:this}))}};kn.createLayout=kn.makeLayout=kn.layout;function Rs(t,e,r){var a=r._private,n=a.styleCache=a.styleCache||[],i;return(i=n[t])!=null||(i=n[t]=e(r)),i}function Pn(t,e){return t=Pr(t),function(a){return Rs(t,e,a)}}function Bn(t,e){t=Pr(t);var r=function(n){return e.call(n)};return function(){var n=this[0];if(n)return Rs(t,r,n)}}var Ot={recalculateRenderedStyle:function(e){var r=this.cy(),a=r.renderer(),n=r.styleEnabled();return a&&n&&a.recalculateRenderedStyle(this,e),this},dirtyStyleCache:function(){var e=this.cy(),r=function(i){return i._private.styleCache=null};if(e.hasCompoundNodes()){var a;a=this.spawnSelf().merge(this.descendants()).merge(this.parents()),a.merge(a.connectedEdges()),a.forEach(r)}else this.forEach(function(n){r(n),n.connectedEdges().forEach(r)});return this},updateStyle:function(e){var r=this._private.cy;if(!r.styleEnabled())return this;if(r.batching()){var a=r._private.batchStyleEles;return a.merge(this),this}var n=r.hasCompoundNodes(),i=this;e=!!(e||e===void 0),n&&(i=this.spawnSelf().merge(this.descendants()).merge(this.parents()));var o=i;return e?o.emitAndNotify("style"):o.emit("style"),i.forEach(function(s){return s._private.styleDirty=!0}),this},cleanStyle:function(){var e=this.cy();if(e.styleEnabled())for(var r=0;r<this.length;r++){var a=this[r];a._private.styleDirty&&(a._private.styleDirty=!1,e.style().apply(a))}},parsedStyle:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,a=this[0],n=a.cy();if(n.styleEnabled()&&a){this.cleanStyle();var i=a._private.style[e];return i??(r?n.style().getDefaultProperty(e):null)}},numericStyle:function(e){var r=this[0];if(r.cy().styleEnabled()&&r){var a=r.pstyle(e);return a.pfValue!==void 0?a.pfValue:a.value}},numericStyleUnits:function(e){var r=this[0];if(r.cy().styleEnabled()&&r)return r.pstyle(e).units},renderedStyle:function(e){var r=this.cy();if(!r.styleEnabled())return this;var a=this[0];if(a)return r.style().getRenderedStyle(a,e)},style:function(e,r){var a=this.cy();if(!a.styleEnabled())return this;var n=!1,i=a.style();if(S(e)){var o=e;i.applyBypass(this,o,n),this.emitAndNotify("style")}else if(ee(e))if(r===void 0){var s=this[0];return s?i.getStylePropertyValue(s,e):void 0}else i.applyBypass(this,e,r,n),this.emitAndNotify("style");else if(e===void 0){var u=this[0];return u?i.getRawStyle(u):void 0}return this},removeStyle:function(e){var r=this.cy();if(!r.styleEnabled())return this;var a=!1,n=r.style(),i=this;if(e===void 0)for(var o=0;o<i.length;o++){var s=i[o];n.removeAllBypasses(s,a)}else{e=e.split(/\s+/);for(var u=0;u<i.length;u++){var l=i[u];n.removeBypasses(l,e,a)}}return this.emitAndNotify("style"),this},show:function(){return this.css("display","element"),this},hide:function(){return this.css("display","none"),this},effectiveOpacity:function(){var e=this.cy();if(!e.styleEnabled())return 1;var r=e.hasCompoundNodes(),a=this[0];if(a){var n=a._private,i=a.pstyle("opacity").value;if(!r)return i;var o=n.data.parent?a.parents():null;if(o)for(var s=0;s<o.length;s++){var u=o[s],l=u.pstyle("opacity").value;i=l*i}return i}},transparent:function(){var e=this.cy();if(!e.styleEnabled())return!1;var r=this[0],a=r.cy().hasCompoundNodes();if(r)return a?r.effectiveOpacity()===0:r.pstyle("opacity").value===0},backgrounding:function(){var e=this.cy();if(!e.styleEnabled())return!1;var r=this[0];return!!r._private.backgrounding}};function Oi(t,e){var r=t._private,a=r.data.parent?t.parents():null;if(a)for(var n=0;n<a.length;n++){var i=a[n];if(!e(i))return!1}return!0}function Ni(t){var e=t.ok,r=t.edgeOkViaNode||t.ok,a=t.parentOk||t.ok;return function(){var n=this.cy();if(!n.styleEnabled())return!0;var i=this[0],o=n.hasCompoundNodes();if(i){var s=i._private;if(!e(i))return!1;if(i.isNode())return!o||Oi(i,a);var u=s.source,l=s.target;return r(u)&&(!o||Oi(u,r))&&(u===l||r(l)&&(!o||Oi(l,r)))}}}var ca=Pn("eleTakesUpSpace",function(t){return t.pstyle("display").value==="element"&&t.width()!==0&&(t.isNode()?t.height()!==0:!0)});Ot.takesUpSpace=Bn("takesUpSpace",Ni({ok:ca}));var Cd=Pn("eleInteractive",function(t){return t.pstyle("events").value==="yes"&&t.pstyle("visibility").value==="visible"&&ca(t)}),Dd=Pn("parentInteractive",function(t){return t.pstyle("visibility").value==="visible"&&ca(t)});Ot.interactive=Bn("interactive",Ni({ok:Cd,parentOk:Dd,edgeOkViaNode:ca})),Ot.noninteractive=function(){var t=this[0];if(t)return!t.interactive()};var Sd=Pn("eleVisible",function(t){return t.pstyle("visibility").value==="visible"&&t.pstyle("opacity").pfValue!==0&&ca(t)}),Ld=ca;Ot.visible=Bn("visible",Ni({ok:Sd,edgeOkViaNode:Ld})),Ot.hidden=function(){var t=this[0];if(t)return!t.visible()},Ot.isBundledBezier=Bn("isBundledBezier",function(){return this.cy().styleEnabled()?!this.removed()&&this.pstyle("curve-style").value==="bezier"&&this.takesUpSpace():!1}),Ot.bypass=Ot.css=Ot.style,Ot.renderedCss=Ot.renderedStyle,Ot.removeBypass=Ot.removeCss=Ot.removeStyle,Ot.pstyle=Ot.parsedStyle;var Ir={};function ks(t){return function(){var e=arguments,r=[];if(e.length===2){var a=e[0],n=e[1];this.on(t.event,a,n)}else if(e.length===1&&H(e[0])){var i=e[0];this.on(t.event,i)}else if(e.length===0||e.length===1&&te(e[0])){for(var o=e.length===1?e[0]:null,s=0;s<this.length;s++){var u=this[s],l=!t.ableField||u._private[t.ableField],v=u._private[t.field]!=t.value;if(t.overrideAble){var f=t.overrideAble(u);if(f!==void 0&&(l=f,!f))return this}l&&(u._private[t.field]=t.value,v&&r.push(u))}var h=this.spawn(r);h.updateStyle(),h.emit(t.event),o&&h.emit(o)}return this}}function da(t){Ir[t.field]=function(){var e=this[0];if(e){if(t.overrideField){var r=t.overrideField(e);if(r!==void 0)return r}return e._private[t.field]}},Ir[t.on]=ks({event:t.on,field:t.field,ableField:t.ableField,overrideAble:t.overrideAble,value:!0}),Ir[t.off]=ks({event:t.off,field:t.field,ableField:t.ableField,overrideAble:t.overrideAble,value:!1})}da({field:"locked",overrideField:function(e){return e.cy().autolock()?!0:void 0},on:"lock",off:"unlock"}),da({field:"grabbable",overrideField:function(e){return e.cy().autoungrabify()||e.pannable()?!1:void 0},on:"grabify",off:"ungrabify"}),da({field:"selected",ableField:"selectable",overrideAble:function(e){return e.cy().autounselectify()?!1:void 0},on:"select",off:"unselect"}),da({field:"selectable",overrideField:function(e){return e.cy().autounselectify()?!1:void 0},on:"selectify",off:"unselectify"}),Ir.deselect=Ir.unselect,Ir.grabbed=function(){var t=this[0];if(t)return t._private.grabbed},da({field:"active",on:"activate",off:"unactivate"}),da({field:"pannable",on:"panify",off:"unpanify"}),Ir.inactive=function(){var t=this[0];if(t)return!t._private.active};var Bt={},Ps=function(e){return function(a){for(var n=this,i=[],o=0;o<n.length;o++){var s=n[o];if(s.isNode()){for(var u=!1,l=s.connectedEdges(),v=0;v<l.length;v++){var f=l[v],h=f.source(),d=f.target();if(e.noIncomingEdges&&d===s&&h!==s||e.noOutgoingEdges&&h===s&&d!==s){u=!0;break}}u||i.push(s)}}return this.spawn(i,!0).filter(a)}},Bs=function(e){return function(r){for(var a=this,n=[],i=0;i<a.length;i++){var o=a[i];if(o.isNode())for(var s=o.connectedEdges(),u=0;u<s.length;u++){var l=s[u],v=l.source(),f=l.target();e.outgoing&&v===o?(n.push(l),n.push(f)):e.incoming&&f===o&&(n.push(l),n.push(v))}}return this.spawn(n,!0).filter(r)}},Fs=function(e){return function(r){for(var a=this,n=[],i={};;){var o=e.outgoing?a.outgoers():a.incomers();if(o.length===0)break;for(var s=!1,u=0;u<o.length;u++){var l=o[u],v=l.id();i[v]||(i[v]=!0,n.push(l),s=!0)}if(!s)break;a=o}return this.spawn(n,!0).filter(r)}};Bt.clearTraversalCache=function(){for(var t=0;t<this.length;t++)this[t]._private.traversalCache=null},He(Bt,{roots:Ps({noIncomingEdges:!0}),leaves:Ps({noOutgoingEdges:!0}),outgoers:Zt(Bs({outgoing:!0}),"outgoers"),successors:Fs({outgoing:!0}),incomers:Zt(Bs({incoming:!0}),"incomers"),predecessors:Fs({incoming:!0})}),He(Bt,{neighborhood:Zt(function(t){for(var e=[],r=this.nodes(),a=0;a<r.length;a++)for(var n=r[a],i=n.connectedEdges(),o=0;o<i.length;o++){var s=i[o],u=s.source(),l=s.target(),v=n===u?l:u;v.length>0&&e.push(v[0]),e.push(s[0])}return this.spawn(e,!0).filter(t)},"neighborhood"),closedNeighborhood:function(e){return this.neighborhood().add(this).filter(e)},openNeighborhood:function(e){return this.neighborhood(e)}}),Bt.neighbourhood=Bt.neighborhood,Bt.closedNeighbourhood=Bt.closedNeighborhood,Bt.openNeighbourhood=Bt.openNeighborhood,He(Bt,{source:Zt(function(e){var r=this[0],a;return r&&(a=r._private.source||r.cy().collection()),a&&e?a.filter(e):a},"source"),target:Zt(function(e){var r=this[0],a;return r&&(a=r._private.target||r.cy().collection()),a&&e?a.filter(e):a},"target"),sources:Gs({attr:"source"}),targets:Gs({attr:"target"})});function Gs(t){return function(r){for(var a=[],n=0;n<this.length;n++){var i=this[n],o=i._private[t.attr];o&&a.push(o)}return this.spawn(a,!0).filter(r)}}He(Bt,{edgesWith:Zt(zs(),"edgesWith"),edgesTo:Zt(zs({thisIsSrc:!0}),"edgesTo")});function zs(t){return function(r){var a=[],n=this._private.cy,i=t||{};ee(r)&&(r=n.$(r));for(var o=0;o<r.length;o++)for(var s=r[o]._private.edges,u=0;u<s.length;u++){var l=s[u],v=l._private.data,f=this.hasElementWithId(v.source)&&r.hasElementWithId(v.target),h=r.hasElementWithId(v.source)&&this.hasElementWithId(v.target),d=f||h;d&&((i.thisIsSrc||i.thisIsTgt)&&(i.thisIsSrc&&!f||i.thisIsTgt&&!h)||a.push(l))}return this.spawn(a,!0)}}He(Bt,{connectedEdges:Zt(function(t){for(var e=[],r=this,a=0;a<r.length;a++){var n=r[a];if(n.isNode())for(var i=n._private.edges,o=0;o<i.length;o++){var s=i[o];e.push(s)}}return this.spawn(e,!0).filter(t)},"connectedEdges"),connectedNodes:Zt(function(t){for(var e=[],r=this,a=0;a<r.length;a++){var n=r[a];n.isEdge()&&(e.push(n.source()[0]),e.push(n.target()[0]))}return this.spawn(e,!0).filter(t)},"connectedNodes"),parallelEdges:Zt(Vs(),"parallelEdges"),codirectedEdges:Zt(Vs({codirected:!0}),"codirectedEdges")});function Vs(t){var e={codirected:!1};return t=He({},e,t),function(a){for(var n=[],i=this.edges(),o=t,s=0;s<i.length;s++)for(var u=i[s],l=u._private,v=l.source,f=v._private.data.id,h=l.data.target,d=v._private.edges,c=0;c<d.length;c++){var y=d[c],p=y._private.data,g=p.target,m=p.source,b=g===h&&m===f,E=f===g&&h===m;(o.codirected&&b||!o.codirected&&(b||E))&&n.push(y)}return this.spawn(n,!0).filter(a)}}He(Bt,{components:function(e){var r=this,a=r.cy(),n=a.collection(),i=e==null?r.nodes():e.nodes(),o=[];e!=null&&i.empty()&&(i=e.sources());var s=function(v,f){n.merge(v),i.unmerge(v),f.merge(v)};if(i.empty())return r.spawn();var u=function(){var v=a.collection();o.push(v);var f=i[0];s(f,v),r.bfs({directed:!1,roots:f,visit:function(d){return s(d,v)}}),v.forEach(function(h){h.connectedEdges().forEach(function(d){r.has(d)&&v.has(d.source())&&v.has(d.target())&&v.merge(d)})})};do u();while(i.length>0);return o},component:function(){var e=this[0];return e.cy().mutableElements().components(e)[0]}}),Bt.componentsOf=Bt.components;var Nt=function(e,r){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e===void 0){xt("A collection must have a reference to the core");return}var i=new ur,o=!1;if(!r)r=[];else if(r.length>0&&S(r[0])&&!Ae(r[0])){o=!0;for(var s=[],u=new Jr,l=0,v=r.length;l<v;l++){var f=r[l];f.data==null&&(f.data={});var h=f.data;if(h.id==null)h.id=yo();else if(e.hasElementWithId(h.id)||u.has(h.id))continue;var d=new fn(e,f,!1);s.push(d),u.add(h.id)}r=s}this.length=0;for(var c=0,y=r.length;c<y;c++){var p=r[c][0];if(p!=null){var g=p._private.data.id;(!a||!i.has(g))&&(a&&i.set(g,{index:this.length,ele:p}),this[this.length]=p,this.length++)}}this._private={eles:this,cy:e,get map(){return this.lazyMap==null&&this.rebuildMap(),this.lazyMap},set map(m){this.lazyMap=m},rebuildMap:function(){for(var b=this.lazyMap=new ur,E=this.eles,M=0;M<E.length;M++){var L=E[M];b.set(L.id(),{index:M,ele:L})}}},a&&(this._private.map=i),o&&!n&&this.restore()},mt=fn.prototype=Nt.prototype=Object.create(Array.prototype);mt.instanceString=function(){return"collection"},mt.spawn=function(t,e){return new Nt(this.cy(),t,e)},mt.spawnSelf=function(){return this.spawn(this)},mt.cy=function(){return this._private.cy},mt.renderer=function(){return this._private.cy.renderer()},mt.element=function(){return this[0]},mt.collection=function(){return Ne(this)?this:new Nt(this._private.cy,[this])},mt.unique=function(){return new Nt(this._private.cy,this,!0)},mt.hasElementWithId=function(t){return t=""+t,this._private.map.has(t)},mt.getElementById=function(t){t=""+t;var e=this._private.cy,r=this._private.map.get(t);return r?r.ele:new Nt(e)},mt.$id=mt.getElementById,mt.poolIndex=function(){var t=this._private.cy,e=t._private.elements,r=this[0]._private.data.id;return e._private.map.get(r).index},mt.indexOf=function(t){var e=t[0]._private.data.id;return this._private.map.get(e).index},mt.indexOfId=function(t){return t=""+t,this._private.map.get(t).index},mt.json=function(t){var e=this.element(),r=this.cy();if(e==null&&t)return this;if(e!=null){var a=e._private;if(S(t)){if(r.startBatch(),t.data){e.data(t.data);var n=a.data;if(e.isEdge()){var i=!1,o={},s=t.data.source,u=t.data.target;s!=null&&s!=n.source&&(o.source=""+s,i=!0),u!=null&&u!=n.target&&(o.target=""+u,i=!0),i&&(e=e.move(o))}else{var l="parent"in t.data,v=t.data.parent;l&&(v!=null||n.parent!=null)&&v!=n.parent&&(v===void 0&&(v=null),v!=null&&(v=""+v),e=e.move({parent:v}))}}t.position&&e.position(t.position);var f=function(y,p,g){var m=t[y];m!=null&&m!==a[y]&&(m?e[p]():e[g]())};return f("removed","remove","restore"),f("selected","select","unselect"),f("selectable","selectify","unselectify"),f("locked","lock","unlock"),f("grabbable","grabify","ungrabify"),f("pannable","panify","unpanify"),t.classes!=null&&e.classes(t.classes),r.endBatch(),this}else if(t===void 0){var h={data:lr(a.data),position:lr(a.position),group:a.group,removed:a.removed,selected:a.selected,selectable:a.selectable,locked:a.locked,grabbable:a.grabbable,pannable:a.pannable,classes:null};h.classes="";var d=0;return a.classes.forEach(function(c){return h.classes+=d++===0?c:" "+c}),h}}},mt.jsons=function(){for(var t=[],e=0;e<this.length;e++){var r=this[e],a=r.json();t.push(a)}return t},mt.clone=function(){for(var t=this.cy(),e=[],r=0;r<this.length;r++){var a=this[r],n=a.json(),i=new fn(t,n,!1);e.push(i)}return new Nt(t,e)},mt.copy=mt.clone,mt.restore=function(){for(var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=this,a=r.cy(),n=a._private,i=[],o=[],s,u=0,l=r.length;u<l;u++){var v=r[u];e&&!v.removed()||(v.isNode()?i.push(v):o.push(v))}s=i.concat(o);var f,h=function(){s.splice(f,1),f--};for(f=0;f<s.length;f++){var d=s[f],c=d._private,y=c.data;if(d.clearTraversalCache(),!(!e&&!c.removed)){if(y.id===void 0)y.id=yo();else if(R(y.id))y.id=""+y.id;else if(Re(y.id)||!ee(y.id)){xt("Can not create element with invalid string ID `"+y.id+"`"),h();continue}else if(a.hasElementWithId(y.id)){xt("Can not create second element with ID `"+y.id+"`"),h();continue}}var p=y.id;if(d.isNode()){var g=c.position;g.x==null&&(g.x=0),g.y==null&&(g.y=0)}if(d.isEdge()){for(var m=d,b=["source","target"],E=b.length,M=!1,L=0;L<E;L++){var w=b[L],k=y[w];R(k)&&(k=y[w]=""+y[w]),k==null||k===""?(xt("Can not create edge `"+p+"` with unspecified "+w),M=!0):a.hasElementWithId(k)||(xt("Can not create edge `"+p+"` with nonexistant "+w+" `"+k+"`"),M=!0)}if(M){h();continue}var D=a.getElementById(y.source),F=a.getElementById(y.target);D.same(F)?D._private.edges.push(m):(D._private.edges.push(m),F._private.edges.push(m)),m._private.source=D,m._private.target=F}c.map=new ur,c.map.set(p,{ele:d,index:0}),c.removed=!1,e&&a.addToPool(d)}for(var G=0;G<i.length;G++){var I=i[G],X=I._private.data;R(X.parent)&&(X.parent=""+X.parent);var B=X.parent,re=B!=null;if(re||I._private.parent){var K=I._private.parent?a.collection().merge(I._private.parent):a.getElementById(B);if(K.empty())X.parent=void 0;else if(K[0].removed())ht("Node added with missing parent, reference to parent removed"),X.parent=void 0,I._private.parent=null;else{for(var W=!1,ae=K;!ae.empty();){if(I.same(ae)){W=!0,X.parent=void 0;break}ae=ae.parent()}W||(K[0]._private.children.push(I),I._private.parent=K[0],n.hasCompoundNodes=!0)}}}if(s.length>0){for(var ue=s.length===r.length?r:new Nt(a,s),me=0;me<ue.length;me++){var ie=ue[me];ie.isNode()||(ie.parallelEdges().clearTraversalCache(),ie.source().clearTraversalCache(),ie.target().clearTraversalCache())}var ge;n.hasCompoundNodes?ge=a.collection().merge(ue).merge(ue.connectedNodes()).merge(ue.parent()):ge=ue,ge.dirtyCompoundBoundsCache().dirtyBoundingBoxCache().updateStyle(t),t?ue.emitAndNotify("add"):e&&ue.emit("add")}return r},mt.removed=function(){var t=this[0];return t&&t._private.removed},mt.inside=function(){var t=this[0];return t&&!t._private.removed},mt.remove=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=this,a=[],n={},i=r._private.cy;function o(B){for(var re=B._private.edges,K=0;K<re.length;K++)u(re[K])}function s(B){for(var re=B._private.children,K=0;K<re.length;K++)u(re[K])}function u(B){var re=n[B.id()];e&&B.removed()||re||(n[B.id()]=!0,B.isNode()?(a.push(B),o(B),s(B)):a.unshift(B))}for(var l=0,v=r.length;l<v;l++){var f=r[l];u(f)}function h(B,re){var K=B._private.edges;xr(K,re),B.clearTraversalCache()}function d(B){B.clearTraversalCache()}var c=[];c.ids={};function y(B,re){re=re[0],B=B[0];var K=B._private.children,W=B.id();xr(K,re),re._private.parent=null,c.ids[W]||(c.ids[W]=!0,c.push(B))}r.dirtyCompoundBoundsCache(),e&&i.removeFromPool(a);for(var p=0;p<a.length;p++){var g=a[p];if(g.isEdge()){var m=g.source()[0],b=g.target()[0];h(m,g),h(b,g);for(var E=g.parallelEdges(),M=0;M<E.length;M++){var L=E[M];d(L),L.isBundledBezier()&&L.dirtyBoundingBoxCache()}}else{var w=g.parent();w.length!==0&&y(w,g)}e&&(g._private.removed=!0)}var k=i._private.elements;i._private.hasCompoundNodes=!1;for(var D=0;D<k.length;D++){var F=k[D];if(F.isParent()){i._private.hasCompoundNodes=!0;break}}var G=new Nt(this.cy(),a);G.size()>0&&(t?G.emitAndNotify("remove"):e&&G.emit("remove"));for(var I=0;I<c.length;I++){var X=c[I];(!e||!X.removed())&&X.updateStyle()}return G},mt.move=function(t){var e=this._private.cy,r=this,a=!1,n=!1,i=function(c){return c==null?c:""+c};if(t.source!==void 0||t.target!==void 0){var o=i(t.source),s=i(t.target),u=o!=null&&e.hasElementWithId(o),l=s!=null&&e.hasElementWithId(s);(u||l)&&(e.batch(function(){r.remove(a,n),r.emitAndNotify("moveout");for(var d=0;d<r.length;d++){var c=r[d],y=c._private.data;c.isEdge()&&(u&&(y.source=o),l&&(y.target=s))}r.restore(a,n)}),r.emitAndNotify("move"))}else if(t.parent!==void 0){var v=i(t.parent),f=v===null||e.hasElementWithId(v);if(f){var h=v===null?void 0:v;e.batch(function(){var d=r.remove(a,n);d.emitAndNotify("moveout");for(var c=0;c<r.length;c++){var y=r[c],p=y._private.data;y.isNode()&&(p.parent=h)}d.restore(a,n)}),r.emitAndNotify("move")}}return this},[Yo,Gc,Ln,Ar,va,ed,An,pd,Ns,Is,wd,Rn,kn,Ot,Ir,Bt].forEach(function(t){He(mt,t)});var Ad={add:function(e){var r,a=this;if(pe(e)){var n=e;if(n._private.cy===a)r=n.restore();else{for(var i=[],o=0;o<n.length;o++){var s=n[o];i.push(s.json())}r=new Nt(a,i)}}else if(te(e)){var u=e;r=new Nt(a,u)}else if(S(e)&&(te(e.nodes)||te(e.edges))){for(var l=e,v=[],f=["nodes","edges"],h=0,d=f.length;h<d;h++){var c=f[h],y=l[c];if(te(y))for(var p=0,g=y.length;p<g;p++){var m=He({group:c},y[p]);v.push(m)}}r=new Nt(a,v)}else{var b=e;r=new fn(a,b).collection()}return r},remove:function(e){if(!pe(e)){if(ee(e)){var r=e;e=this.$(r)}}return e.remove()}};/*! Bezier curve function generator. Copyright Gaetan Renaudeau. MIT License: http://en.wikipedia.org/wiki/MIT_License */function Od(t,e,r,a){var n=4,i=.001,o=1e-7,s=10,u=11,l=1/(u-1),v=typeof Float32Array<"u";if(arguments.length!==4)return!1;for(var f=0;f<4;++f)if(typeof arguments[f]!="number"||isNaN(arguments[f])||!isFinite(arguments[f]))return!1;t=Math.min(t,1),r=Math.min(r,1),t=Math.max(t,0),r=Math.max(r,0);var h=v?new Float32Array(u):new Array(u);function d(F,G){return 1-3*G+3*F}function c(F,G){return 3*G-6*F}function y(F){return 3*F}function p(F,G,I){return((d(G,I)*F+c(G,I))*F+y(G))*F}function g(F,G,I){return 3*d(G,I)*F*F+2*c(G,I)*F+y(G)}function m(F,G){for(var I=0;I<n;++I){var X=g(G,t,r);if(X===0)return G;var B=p(G,t,r)-F;G-=B/X}return G}function b(){for(var F=0;F<u;++F)h[F]=p(F*l,t,r)}function E(F,G,I){var X,B,re=0;do B=G+(I-G)/2,X=p(B,t,r)-F,X>0?I=B:G=B;while(Math.abs(X)>o&&++re<s);return B}function M(F){for(var G=0,I=1,X=u-1;I!==X&&h[I]<=F;++I)G+=l;--I;var B=(F-h[I])/(h[I+1]-h[I]),re=G+B*l,K=g(re,t,r);return K>=i?m(F,re):K===0?re:E(F,G,G+l)}var L=!1;function w(){L=!0,(t!==e||r!==a)&&b()}var k=function(G){return L||w(),t===e&&r===a?G:G===0?0:G===1?1:p(M(G),e,a)};k.getControlPoints=function(){return[{x:t,y:e},{x:r,y:a}]};var D="generateBezier("+[t,e,r,a]+")";return k.toString=function(){return D},k}/*! Runge-Kutta spring physics function generator. Adapted from Framer.js, copyright Koen Bok. MIT License: http://en.wikipedia.org/wiki/MIT_License */var Nd=function(){function t(a){return-a.tension*a.x-a.friction*a.v}function e(a,n,i){var o={x:a.x+i.dx*n,v:a.v+i.dv*n,tension:a.tension,friction:a.friction};return{dx:o.v,dv:t(o)}}function r(a,n){var i={dx:a.v,dv:t(a)},o=e(a,n*.5,i),s=e(a,n*.5,o),u=e(a,n,s),l=1/6*(i.dx+2*(o.dx+s.dx)+u.dx),v=1/6*(i.dv+2*(o.dv+s.dv)+u.dv);return a.x=a.x+l*n,a.v=a.v+v*n,a}return function a(n,i,o){var s={x:-1,v:0,tension:null,friction:null},u=[0],l=0,v=1/1e4,f=16/1e3,h,d,c;for(n=parseFloat(n)||500,i=parseFloat(i)||20,o=o||null,s.tension=n,s.friction=i,h=o!==null,h?(l=a(n,i),d=l/o*f):d=f;c=r(c||s,d),u.push(1+c.x),l+=16,Math.abs(c.x)>v&&Math.abs(c.v)>v;);return h?function(y){return u[y*(u.length-1)|0]}:l}}(),bt=function(e,r,a,n){var i=Od(e,r,a,n);return function(o,s,u){return o+(s-o)*i(u)}},Fn={linear:function(e,r,a){return e+(r-e)*a},ease:bt(.25,.1,.25,1),"ease-in":bt(.42,0,1,1),"ease-out":bt(0,0,.58,1),"ease-in-out":bt(.42,0,.58,1),"ease-in-sine":bt(.47,0,.745,.715),"ease-out-sine":bt(.39,.575,.565,1),"ease-in-out-sine":bt(.445,.05,.55,.95),"ease-in-quad":bt(.55,.085,.68,.53),"ease-out-quad":bt(.25,.46,.45,.94),"ease-in-out-quad":bt(.455,.03,.515,.955),"ease-in-cubic":bt(.55,.055,.675,.19),"ease-out-cubic":bt(.215,.61,.355,1),"ease-in-out-cubic":bt(.645,.045,.355,1),"ease-in-quart":bt(.895,.03,.685,.22),"ease-out-quart":bt(.165,.84,.44,1),"ease-in-out-quart":bt(.77,0,.175,1),"ease-in-quint":bt(.755,.05,.855,.06),"ease-out-quint":bt(.23,1,.32,1),"ease-in-out-quint":bt(.86,0,.07,1),"ease-in-expo":bt(.95,.05,.795,.035),"ease-out-expo":bt(.19,1,.22,1),"ease-in-out-expo":bt(1,0,0,1),"ease-in-circ":bt(.6,.04,.98,.335),"ease-out-circ":bt(.075,.82,.165,1),"ease-in-out-circ":bt(.785,.135,.15,.86),spring:function(e,r,a){if(a===0)return Fn.linear;var n=Nd(e,r,a);return function(i,o,s){return i+(o-i)*n(s)}},"cubic-bezier":bt};function $s(t,e,r,a,n){if(a===1||e===r)return r;var i=n(e,r,a);return t==null||((t.roundValue||t.color)&&(i=Math.round(i)),t.min!==void 0&&(i=Math.max(i,t.min)),t.max!==void 0&&(i=Math.min(i,t.max))),i}function Us(t,e){return t.pfValue!=null||t.value!=null?t.pfValue!=null&&(e==null||e.type.units!=="%")?t.pfValue:t.value:t}function ga(t,e,r,a,n){var i=n!=null?n.type:null;r<0?r=0:r>1&&(r=1);var o=Us(t,n),s=Us(e,n);if(R(o)&&R(s))return $s(i,o,s,r,a);if(te(o)&&te(s)){for(var u=[],l=0;l<s.length;l++){var v=o[l],f=s[l];if(v!=null&&f!=null){var h=$s(i,v,f,r,a);u.push(h)}else u.push(f)}return u}}function Id(t,e,r,a){var n=!a,i=t._private,o=e._private,s=o.easing,u=o.startTime,l=a?t:t.cy(),v=l.style();if(!o.easingImpl)if(s==null)o.easingImpl=Fn.linear;else{var f;if(ee(s)){var h=v.parse("transition-timing-function",s);f=h.value}else f=s;var d,c;ee(f)?(d=f,c=[]):(d=f[1],c=f.slice(2).map(function(ue){return+ue})),c.length>0?(d==="spring"&&c.push(o.duration),o.easingImpl=Fn[d].apply(null,c)):o.easingImpl=Fn[d]}var y=o.easingImpl,p;if(o.duration===0?p=1:p=(r-u)/o.duration,o.applying&&(p=o.progress),p<0?p=0:p>1&&(p=1),o.delay==null){var g=o.startPosition,m=o.position;if(m&&n&&!t.locked()){var b={};Xa(g.x,m.x)&&(b.x=ga(g.x,m.x,p,y)),Xa(g.y,m.y)&&(b.y=ga(g.y,m.y,p,y)),t.position(b)}var E=o.startPan,M=o.pan,L=i.pan,w=M!=null&&a;w&&(Xa(E.x,M.x)&&(L.x=ga(E.x,M.x,p,y)),Xa(E.y,M.y)&&(L.y=ga(E.y,M.y,p,y)),t.emit("pan"));var k=o.startZoom,D=o.zoom,F=D!=null&&a;F&&(Xa(k,D)&&(i.zoom=ka(i.minZoom,ga(k,D,p,y),i.maxZoom)),t.emit("zoom")),(w||F)&&t.emit("viewport");var G=o.style;if(G&&G.length>0&&n){for(var I=0;I<G.length;I++){var X=G[I],B=X.name,re=X,K=o.startStyle[B],W=v.properties[K.name],ae=ga(K,re,p,y,W);v.overrideBypass(t,B,ae)}t.emit("style")}}return o.progress=p,p}function Xa(t,e){return t==null||e==null?!1:R(t)&&R(e)?!0:!!(t&&e)}function Md(t,e,r,a){var n=e._private;n.started=!0,n.startTime=r-n.progress*n.duration}function _s(t,e){var r=e._private.aniEles,a=[];function n(v,f){var h=v._private,d=h.animation.current,c=h.animation.queue,y=!1;if(d.length===0){var p=c.shift();p&&d.push(p)}for(var g=function(L){for(var w=L.length-1;w>=0;w--){var k=L[w];k()}L.splice(0,L.length)},m=d.length-1;m>=0;m--){var b=d[m],E=b._private;if(E.stopped){d.splice(m,1),E.hooked=!1,E.playing=!1,E.started=!1,g(E.frames);continue}!E.playing&&!E.applying||(E.playing&&E.applying&&(E.applying=!1),E.started||Md(v,b,t),Id(v,b,t,f),E.applying&&(E.applying=!1),g(E.frames),E.step!=null&&E.step(t),b.completed()&&(d.splice(m,1),E.hooked=!1,E.playing=!1,E.started=!1,g(E.completes)),y=!0)}return!f&&d.length===0&&c.length===0&&a.push(v),y}for(var i=!1,o=0;o<r.length;o++){var s=r[o],u=n(s);i=i||u}var l=n(e,!0);(i||l)&&(r.length>0?e.notify("draw",r):e.notify("draw")),r.unmerge(a),e.emit("step")}var Rd={animate:ct.animate(),animation:ct.animation(),animated:ct.animated(),clearQueue:ct.clearQueue(),delay:ct.delay(),delayAnimation:ct.delayAnimation(),stop:ct.stop(),addToAnimationPool:function(e){var r=this;r.styleEnabled()&&r._private.aniEles.merge(e)},stopAnimationLoop:function(){this._private.animationsRunning=!1},startAnimationLoop:function(){var e=this;if(e._private.animationsRunning=!0,!e.styleEnabled())return;function r(){e._private.animationsRunning&&ln(function(i){_s(i,e),r()})}var a=e.renderer();a&&a.beforeRender?a.beforeRender(function(i,o){_s(o,e)},a.beforeRenderPriorities.animations):r()}},kd={qualifierCompare:function(e,r){return e==null||r==null?e==null&&r==null:e.sameText(r)},eventMatches:function(e,r,a){var n=r.qualifier;return n!=null?e!==a.target&&Ae(a.target)&&n.matches(a.target):!0},addEventFields:function(e,r){r.cy=e,r.target=e},callbackContext:function(e,r,a){return r.qualifier!=null?a.target:e}},Gn=function(e){return ee(e)?new Sr(e):e},Ys={createEmitter:function(){var e=this._private;return e.emitter||(e.emitter=new In(kd,this)),this},emitter:function(){return this._private.emitter},on:function(e,r,a){return this.emitter().on(e,Gn(r),a),this},removeListener:function(e,r,a){return this.emitter().removeListener(e,Gn(r),a),this},removeAllListeners:function(){return this.emitter().removeAllListeners(),this},one:function(e,r,a){return this.emitter().one(e,Gn(r),a),this},once:function(e,r,a){return this.emitter().one(e,Gn(r),a),this},emit:function(e,r){return this.emitter().emit(e,r),this},emitAndNotify:function(e,r){return this.emit(e),this.notify(e,r),this}};ct.eventAliasesOn(Ys);var Ii={png:function(e){var r=this._private.renderer;return e=e||{},r.png(e)},jpg:function(e){var r=this._private.renderer;return e=e||{},e.bg=e.bg||"#fff",r.jpg(e)}};Ii.jpeg=Ii.jpg;var zn={layout:function(e){var r=this;if(e==null){xt("Layout options must be specified to make a layout");return}if(e.name==null){xt("A `name` must be specified to make a layout");return}var a=e.name,n=r.extension("layout",a);if(n==null){xt("No such layout `"+a+"` found. Did you forget to import it and `cytoscape.use()` it?");return}var i;ee(e.eles)?i=r.$(e.eles):i=e.eles!=null?e.eles:r.$();var o=new n(He({},e,{cy:r,eles:i}));return o}};zn.createLayout=zn.makeLayout=zn.layout;var Pd={notify:function(e,r){var a=this._private;if(this.batching()){a.batchNotifications=a.batchNotifications||{};var n=a.batchNotifications[e]=a.batchNotifications[e]||this.collection();r!=null&&n.merge(r);return}if(a.notificationsEnabled){var i=this.renderer();this.destroyed()||!i||i.notify(e,r)}},notifications:function(e){var r=this._private;return e===void 0?r.notificationsEnabled:(r.notificationsEnabled=!!e,this)},noNotifications:function(e){this.notifications(!1),e(),this.notifications(!0)},batching:function(){return this._private.batchCount>0},startBatch:function(){var e=this._private;return e.batchCount==null&&(e.batchCount=0),e.batchCount===0&&(e.batchStyleEles=this.collection(),e.batchNotifications={}),e.batchCount++,this},endBatch:function(){var e=this._private;if(e.batchCount===0)return this;if(e.batchCount--,e.batchCount===0){e.batchStyleEles.updateStyle();var r=this.renderer();Object.keys(e.batchNotifications).forEach(function(a){var n=e.batchNotifications[a];n.empty()?r.notify(a):r.notify(a,n)})}return this},batch:function(e){return this.startBatch(),e(),this.endBatch(),this},batchData:function(e){var r=this;return this.batch(function(){for(var a=Object.keys(e),n=0;n<a.length;n++){var i=a[n],o=e[i],s=r.getElementById(i);s.data(o)}})}},Bd=At({hideEdgesOnViewport:!1,textureOnViewport:!1,motionBlur:!1,motionBlurOpacity:.05,pixelRatio:void 0,desktopTapThreshold:4,touchTapThreshold:8,wheelSensitivity:1,debug:!1,showFps:!1}),Mi={renderTo:function(e,r,a,n){var i=this._private.renderer;return i.renderTo(e,r,a,n),this},renderer:function(){return this._private.renderer},forceRender:function(){return this.notify("draw"),this},resize:function(){return this.invalidateSize(),this.emitAndNotify("resize"),this},initRenderer:function(e){var r=this,a=r.extension("renderer",e.name);if(a==null){xt("Can not initialise: No such renderer `".concat(e.name,"` found. Did you forget to import it and `cytoscape.use()` it?"));return}e.wheelSensitivity!==void 0&&ht("You have set a custom wheel sensitivity. This will make your app zoom unnaturally when using mainstream mice. You should change this value from the default only if you can guarantee that all your users will use the same hardware and OS configuration as your current machine.");var n=Bd(e);n.cy=r,r._private.renderer=new a(n),this.notify("init")},destroyRenderer:function(){var e=this;e.notify("destroy");var r=e.container();if(r)for(r._cyreg=null;r.childNodes.length>0;)r.removeChild(r.childNodes[0]);e._private.renderer=null,e.mutableElements().forEach(function(a){var n=a._private;n.rscratch={},n.rstyle={},n.animation.current=[],n.animation.queue=[]})},onRender:function(e){return this.on("render",e)},offRender:function(e){return this.off("render",e)}};Mi.invalidateDimensions=Mi.resize;var Vn={collection:function(e,r){return ee(e)?this.$(e):pe(e)?e.collection():te(e)?(r||(r={}),new Nt(this,e,r.unique,r.removed)):new Nt(this)},nodes:function(e){var r=this.$(function(a){return a.isNode()});return e?r.filter(e):r},edges:function(e){var r=this.$(function(a){return a.isEdge()});return e?r.filter(e):r},$:function(e){var r=this._private.elements;return e?r.filter(e):r.spawnSelf()},mutableElements:function(){return this._private.elements}};Vn.elements=Vn.filter=Vn.$;var Ft={},Wa="t",Fd="f";Ft.apply=function(t){for(var e=this,r=e._private,a=r.cy,n=a.collection(),i=0;i<t.length;i++){var o=t[i],s=e.getContextMeta(o);if(!s.empty){var u=e.getContextStyle(s),l=e.applyContextStyle(s,u,o);o._private.appliedInitStyle?e.updateTransitions(o,l.diffProps):o._private.appliedInitStyle=!0;var v=e.updateStyleHints(o);v&&n.push(o)}}return n},Ft.getPropertiesDiff=function(t,e){var r=this,a=r._private.propDiffs=r._private.propDiffs||{},n=t+"-"+e,i=a[n];if(i)return i;for(var o=[],s={},u=0;u<r.length;u++){var l=r[u],v=t[u]===Wa,f=e[u]===Wa,h=v!==f,d=l.mappedProperties.length>0;if(h||f&&d){var c=void 0;h&&d||h?c=l.properties:d&&(c=l.mappedProperties);for(var y=0;y<c.length;y++){for(var p=c[y],g=p.name,m=!1,b=u+1;b<r.length;b++){var E=r[b],M=e[b]===Wa;if(M&&(m=E.properties[p.name]!=null,m))break}!s[g]&&!m&&(s[g]=!0,o.push(g))}}}return a[n]=o,o},Ft.getContextMeta=function(t){for(var e=this,r="",a,n=t._private.styleCxtKey||"",i=0;i<e.length;i++){var o=e[i],s=o.selector&&o.selector.matches(t);s?r+=Wa:r+=Fd}return a=e.getPropertiesDiff(n,r),t._private.styleCxtKey=r,{key:r,diffPropNames:a,empty:a.length===0}},Ft.getContextStyle=function(t){var e=t.key,r=this,a=this._private.contextStyles=this._private.contextStyles||{};if(a[e])return a[e];for(var n={_private:{key:e}},i=0;i<r.length;i++){var o=r[i],s=e[i]===Wa;if(s)for(var u=0;u<o.properties.length;u++){var l=o.properties[u];n[l.name]=l}}return a[e]=n,n},Ft.applyContextStyle=function(t,e,r){for(var a=this,n=t.diffPropNames,i={},o=a.types,s=0;s<n.length;s++){var u=n[s],l=e[u],v=r.pstyle(u);if(!l)if(v)v.bypass?l={name:u,deleteBypassed:!0}:l={name:u,delete:!0};else continue;if(v!==l){if(l.mapped===o.fn&&v!=null&&v.mapping!=null&&v.mapping.value===l.value){var f=v.mapping,h=f.fnValue=l.value(r);if(h===f.prevFnValue)continue}var d=i[u]={prev:v};a.applyParsedProperty(r,l),d.next=r.pstyle(u),d.next&&d.next.bypass&&(d.next=d.next.bypassed)}}return{diffProps:i}},Ft.updateStyleHints=function(t){var e=t._private,r=this,a=r.propertyGroupNames,n=r.propertyGroupKeys,i=function(Oe,Fe,Xe){return r.getPropertiesHash(Oe,Fe,Xe)},o=e.styleKey;if(t.removed())return!1;var s=e.group==="nodes",u=t._private.style;a=Object.keys(u);for(var l=0;l<n.length;l++){var v=n[l];e.styleKeys[v]=[Qr,Oa]}for(var f=function(Oe,Fe){return e.styleKeys[Fe][0]=Na(Oe,e.styleKeys[Fe][0])},h=function(Oe,Fe){return e.styleKeys[Fe][1]=Ia(Oe,e.styleKeys[Fe][1])},d=function(Oe,Fe){f(Oe,Fe),h(Oe,Fe)},c=function(Oe,Fe){for(var Xe=0;Xe<Oe.length;Xe++){var Ie=Oe.charCodeAt(Xe);f(Ie,Fe),h(Ie,Fe)}},y=2e9,p=function(Oe){return-128<Oe&&Oe<128&&Math.floor(Oe)!==Oe?y-(Oe*1024|0):Oe},g=0;g<a.length;g++){var m=a[g],b=u[m];if(b!=null){var E=this.properties[m],M=E.type,L=E.groupKey,w=void 0;E.hashOverride!=null?w=E.hashOverride(t,b):b.pfValue!=null&&(w=b.pfValue);var k=E.enums==null?b.value:null,D=w!=null,F=k!=null,G=D||F,I=b.units;if(M.number&&G&&!M.multiple){var X=D?w:k;d(p(X),L),!D&&I!=null&&c(I,L)}else c(b.strValue,L)}}for(var B=[Qr,Oa],re=0;re<n.length;re++){var K=n[re],W=e.styleKeys[K];B[0]=Na(W[0],B[0]),B[1]=Ia(W[1],B[1])}e.styleKey=$u(B[0],B[1]);var ae=e.styleKeys;e.labelDimsKey=wr(ae.labelDimensions);var ue=i(t,["label"],ae.labelDimensions);if(e.labelKey=wr(ue),e.labelStyleKey=wr(un(ae.commonLabel,ue)),!s){var me=i(t,["source-label"],ae.labelDimensions);e.sourceLabelKey=wr(me),e.sourceLabelStyleKey=wr(un(ae.commonLabel,me));var ie=i(t,["target-label"],ae.labelDimensions);e.targetLabelKey=wr(ie),e.targetLabelStyleKey=wr(un(ae.commonLabel,ie))}if(s){var ge=e.styleKeys,Ee=ge.nodeBody,Ce=ge.nodeBorder,we=ge.nodeOutline,De=ge.backgroundImage,oe=ge.compound,xe=ge.pie,Le=[Ee,Ce,we,De,oe,xe].filter(function(Se){return Se!=null}).reduce(un,[Qr,Oa]);e.nodeKey=wr(Le),e.hasPie=xe!=null&&xe[0]!==Qr&&xe[1]!==Oa}return o!==e.styleKey},Ft.clearStyleHints=function(t){var e=t._private;e.styleCxtKey="",e.styleKeys={},e.styleKey=null,e.labelKey=null,e.labelStyleKey=null,e.sourceLabelKey=null,e.sourceLabelStyleKey=null,e.targetLabelKey=null,e.targetLabelStyleKey=null,e.nodeKey=null,e.hasPie=null},Ft.applyParsedProperty=function(t,e){var r=this,a=e,n=t._private.style,i,o=r.types,s=r.properties[a.name].type,u=a.bypass,l=n[a.name],v=l&&l.bypass,f=t._private,h="mapping",d=function(Ee){return Ee==null?null:Ee.pfValue!=null?Ee.pfValue:Ee.value},c=function(){var Ee=d(l),Ce=d(a);r.checkTriggers(t,a.name,Ee,Ce)};if(e.name==="curve-style"&&t.isEdge()&&(e.value!=="bezier"&&t.isLoop()||e.value==="haystack"&&(t.source().isParent()||t.target().isParent()))&&(a=e=this.parse(e.name,"bezier",u)),a.delete)return n[a.name]=void 0,c(),!0;if(a.deleteBypassed)return l?l.bypass?(l.bypassed=void 0,c(),!0):!1:(c(),!0);if(a.deleteBypass)return l?l.bypass?(n[a.name]=l.bypassed,c(),!0):!1:(c(),!0);var y=function(){ht("Do not assign mappings to elements without corresponding data (i.e. ele `"+t.id()+"` has no mapping for property `"+a.name+"` with data field `"+a.field+"`); try a `["+a.field+"]` selector to limit scope to elements with `"+a.field+"` defined")};switch(a.mapped){case o.mapData:{for(var p=a.field.split("."),g=f.data,m=0;m<p.length&&g;m++){var b=p[m];g=g[b]}if(g==null)return y(),!1;var E;if(R(g)){var M=a.fieldMax-a.fieldMin;M===0?E=0:E=(g-a.fieldMin)/M}else return ht("Do not use continuous mappers without specifying numeric data (i.e. `"+a.field+": "+g+"` for `"+t.id()+"` is non-numeric)"),!1;if(E<0?E=0:E>1&&(E=1),s.color){var L=a.valueMin[0],w=a.valueMax[0],k=a.valueMin[1],D=a.valueMax[1],F=a.valueMin[2],G=a.valueMax[2],I=a.valueMin[3]==null?1:a.valueMin[3],X=a.valueMax[3]==null?1:a.valueMax[3],B=[Math.round(L+(w-L)*E),Math.round(k+(D-k)*E),Math.round(F+(G-F)*E),Math.round(I+(X-I)*E)];i={bypass:a.bypass,name:a.name,value:B,strValue:"rgb("+B[0]+", "+B[1]+", "+B[2]+")"}}else if(s.number){var re=a.valueMin+(a.valueMax-a.valueMin)*E;i=this.parse(a.name,re,a.bypass,h)}else return!1;if(!i)return y(),!1;i.mapping=a,a=i;break}case o.data:{for(var K=a.field.split("."),W=f.data,ae=0;ae<K.length&&W;ae++){var ue=K[ae];W=W[ue]}if(W!=null&&(i=this.parse(a.name,W,a.bypass,h)),!i)return y(),!1;i.mapping=a,a=i;break}case o.fn:{var me=a.value,ie=a.fnValue!=null?a.fnValue:me(t);if(a.prevFnValue=ie,ie==null)return ht("Custom function mappers may not return null (i.e. `"+a.name+"` for ele `"+t.id()+"` is null)"),!1;if(i=this.parse(a.name,ie,a.bypass,h),!i)return ht("Custom function mappers may not return invalid values for the property type (i.e. `"+a.name+"` for ele `"+t.id()+"` is invalid)"),!1;i.mapping=lr(a),a=i;break}case void 0:break;default:return!1}return u?(v?a.bypassed=l.bypassed:a.bypassed=l,n[a.name]=a):v?l.bypassed=a:n[a.name]=a,c(),!0},Ft.cleanElements=function(t,e){for(var r=0;r<t.length;r++){var a=t[r];if(this.clearStyleHints(a),a.dirtyCompoundBoundsCache(),a.dirtyBoundingBoxCache(),!e)a._private.style={};else for(var n=a._private.style,i=Object.keys(n),o=0;o<i.length;o++){var s=i[o],u=n[s];u!=null&&(u.bypass?u.bypassed=null:n[s]=null)}}},Ft.update=function(){var t=this._private.cy,e=t.mutableElements();e.updateStyle()},Ft.updateTransitions=function(t,e){var r=this,a=t._private,n=t.pstyle("transition-property").value,i=t.pstyle("transition-duration").pfValue,o=t.pstyle("transition-delay").pfValue;if(n.length>0&&i>0){for(var s={},u=!1,l=0;l<n.length;l++){var v=n[l],f=t.pstyle(v),h=e[v];if(h){var d=h.prev,c=d,y=h.next!=null?h.next:f,p=!1,g=void 0,m=1e-6;c&&(R(c.pfValue)&&R(y.pfValue)?(p=y.pfValue-c.pfValue,g=c.pfValue+m*p):R(c.value)&&R(y.value)?(p=y.value-c.value,g=c.value+m*p):te(c.value)&&te(y.value)&&(p=c.value[0]!==y.value[0]||c.value[1]!==y.value[1]||c.value[2]!==y.value[2],g=c.strValue),p&&(s[v]=y.strValue,this.applyBypass(t,v,g),u=!0))}}if(!u)return;a.transitioning=!0,new ia(function(b){o>0?t.delayAnimation(o).play().promise().then(b):b()}).then(function(){return t.animation({style:s,duration:i,easing:t.pstyle("transition-timing-function").value,queue:!1}).play().promise()}).then(function(){r.removeBypasses(t,n),t.emitAndNotify("style"),a.transitioning=!1})}else a.transitioning&&(this.removeBypasses(t,n),t.emitAndNotify("style"),a.transitioning=!1)},Ft.checkTrigger=function(t,e,r,a,n,i){var o=this.properties[e],s=n(o);s!=null&&s(r,a)&&i(o)},Ft.checkZOrderTrigger=function(t,e,r,a){var n=this;this.checkTrigger(t,e,r,a,function(i){return i.triggersZOrder},function(){n._private.cy.notify("zorder",t)})},Ft.checkBoundsTrigger=function(t,e,r,a){this.checkTrigger(t,e,r,a,function(n){return n.triggersBounds},function(n){t.dirtyCompoundBoundsCache(),t.dirtyBoundingBoxCache(),n.triggersBoundsOfParallelBeziers&&e==="curve-style"&&(r==="bezier"||a==="bezier")&&t.parallelEdges().forEach(function(i){i.isBundledBezier()&&i.dirtyBoundingBoxCache()}),n.triggersBoundsOfConnectedEdges&&e==="display"&&(r==="none"||a==="none")&&t.connectedEdges().forEach(function(i){i.dirtyBoundingBoxCache()})})},Ft.checkTriggers=function(t,e,r,a){t.dirtyStyleCache(),this.checkZOrderTrigger(t,e,r,a),this.checkBoundsTrigger(t,e,r,a)};var qa={};qa.applyBypass=function(t,e,r,a){var n=this,i=[],o=!0;if(e==="*"||e==="**"){if(r!==void 0)for(var s=0;s<n.properties.length;s++){var u=n.properties[s],l=u.name,v=this.parse(l,r,!0);v&&i.push(v)}}else if(ee(e)){var f=this.parse(e,r,!0);f&&i.push(f)}else if(S(e)){var h=e;a=r;for(var d=Object.keys(h),c=0;c<d.length;c++){var y=d[c],p=h[y];if(p===void 0&&(p=h[yt(y)]),p!==void 0){var g=this.parse(y,p,!0);g&&i.push(g)}}}else return!1;if(i.length===0)return!1;for(var m=!1,b=0;b<t.length;b++){for(var E=t[b],M={},L=void 0,w=0;w<i.length;w++){var k=i[w];if(a){var D=E.pstyle(k.name);L=M[k.name]={prev:D}}m=this.applyParsedProperty(E,lr(k))||m,a&&(L.next=E.pstyle(k.name))}m&&this.updateStyleHints(E),a&&this.updateTransitions(E,M,o)}return m},qa.overrideBypass=function(t,e,r){e=tt(e);for(var a=0;a<t.length;a++){var n=t[a],i=n._private.style[e],o=this.properties[e].type,s=o.color,u=o.mutiple,l=i?i.pfValue!=null?i.pfValue:i.value:null;!i||!i.bypass?this.applyBypass(n,e,r):(i.value=r,i.pfValue!=null&&(i.pfValue=r),s?i.strValue="rgb("+r.join(",")+")":u?i.strValue=r.join(" "):i.strValue=""+r,this.updateStyleHints(n)),this.checkTriggers(n,e,l,r)}},qa.removeAllBypasses=function(t,e){return this.removeBypasses(t,this.propertyNames,e)},qa.removeBypasses=function(t,e,r){for(var a=!0,n=0;n<t.length;n++){for(var i=t[n],o={},s=0;s<e.length;s++){var u=e[s],l=this.properties[u],v=i.pstyle(l.name);if(!(!v||!v.bypass)){var f="",h=this.parse(u,f,!0),d=o[l.name]={prev:v};this.applyParsedProperty(i,h),d.next=i.pstyle(l.name)}}this.updateStyleHints(i),r&&this.updateTransitions(i,o,a)}};var Ri={};Ri.getEmSizeInPixels=function(){var t=this.containerCss("font-size");return t!=null?parseFloat(t):1},Ri.containerCss=function(t){var e=this._private.cy,r=e.container(),a=e.window();if(a&&r&&a.getComputedStyle)return a.getComputedStyle(r).getPropertyValue(t)};var vr={};vr.getRenderedStyle=function(t,e){return e?this.getStylePropertyValue(t,e,!0):this.getRawStyle(t,!0)},vr.getRawStyle=function(t,e){var r=this;if(t=t[0],t){for(var a={},n=0;n<r.properties.length;n++){var i=r.properties[n],o=r.getStylePropertyValue(t,i.name,e);o!=null&&(a[i.name]=o,a[yt(i.name)]=o)}return a}},vr.getIndexedStyle=function(t,e,r,a){var n=t.pstyle(e)[r][a];return n??t.cy().style().getDefaultProperty(e)[r][0]},vr.getStylePropertyValue=function(t,e,r){var a=this;if(t=t[0],t){var n=a.properties[e];n.alias&&(n=n.pointsTo);var i=n.type,o=t.pstyle(n.name);if(o){var s=o.value,u=o.units,l=o.strValue;if(r&&i.number&&s!=null&&R(s)){var v=t.cy().zoom(),f=function(p){return p*v},h=function(p,g){return f(p)+g},d=te(s),c=d?u.every(function(y){return y!=null}):u!=null;return c?d?s.map(function(y,p){return h(y,u[p])}).join(" "):h(s,u):d?s.map(function(y){return ee(y)?y:""+f(y)}).join(" "):""+f(s)}else if(l!=null)return l}return null}},vr.getAnimationStartStyle=function(t,e){for(var r={},a=0;a<e.length;a++){var n=e[a],i=n.name,o=t.pstyle(i);o!==void 0&&(S(o)?o=this.parse(i,o.strValue):o=this.parse(i,o)),o&&(r[i]=o)}return r},vr.getPropsList=function(t){var e=this,r=[],a=t,n=e.properties;if(a)for(var i=Object.keys(a),o=0;o<i.length;o++){var s=i[o],u=a[s],l=n[s]||n[tt(s)],v=this.parse(l.name,u);v&&r.push(v)}return r},vr.getNonDefaultPropertiesHash=function(t,e,r){var a=r.slice(),n,i,o,s,u,l;for(u=0;u<e.length;u++)if(n=e[u],i=t.pstyle(n,!1),i!=null)if(i.pfValue!=null)a[0]=Na(s,a[0]),a[1]=Ia(s,a[1]);else for(o=i.strValue,l=0;l<o.length;l++)s=o.charCodeAt(l),a[0]=Na(s,a[0]),a[1]=Ia(s,a[1]);return a},vr.getPropertiesHash=vr.getNonDefaultPropertiesHash;var $n={};$n.appendFromJson=function(t){for(var e=this,r=0;r<t.length;r++){var a=t[r],n=a.selector,i=a.style||a.css,o=Object.keys(i);e.selector(n);for(var s=0;s<o.length;s++){var u=o[s],l=i[u];e.css(u,l)}}return e},$n.fromJson=function(t){var e=this;return e.resetToDefault(),e.appendFromJson(t),e},$n.json=function(){for(var t=[],e=this.defaultLength;e<this.length;e++){for(var r=this[e],a=r.selector,n=r.properties,i={},o=0;o<n.length;o++){var s=n[o];i[s.name]=s.strValue}t.push({selector:a?a.toString():"core",style:i})}return t};var ki={};ki.appendFromString=function(t){var e=this,r=this,a=""+t,n,i,o;a=a.replace(/[/][*](\s|.)+?[*][/]/g,"");function s(){a.length>n.length?a=a.substr(n.length):a=""}function u(){i.length>o.length?i=i.substr(o.length):i=""}for(;;){var l=a.match(/^\s*$/);if(l)break;var v=a.match(/^\s*((?:.|\s)+?)\s*\{((?:.|\s)+?)\}/);if(!v){ht("Halting stylesheet parsing: String stylesheet contains more to parse but no selector and block found in: "+a);break}n=v[0];var f=v[1];if(f!=="core"){var h=new Sr(f);if(h.invalid){ht("Skipping parsing of block: Invalid selector found in string stylesheet: "+f),s();continue}}var d=v[2],c=!1;i=d;for(var y=[];;){var p=i.match(/^\s*$/);if(p)break;var g=i.match(/^\s*(.+?)\s*:\s*(.+?)(?:\s*;|\s*$)/);if(!g){ht("Skipping parsing of block: Invalid formatting of style property and value definitions found in:"+d),c=!0;break}o=g[0];var m=g[1],b=g[2],E=e.properties[m];if(!E){ht("Skipping property: Invalid property name in: "+o),u();continue}var M=r.parse(m,b);if(!M){ht("Skipping property: Invalid property definition in: "+o),u();continue}y.push({name:m,val:b}),u()}if(c){s();break}r.selector(f);for(var L=0;L<y.length;L++){var w=y[L];r.css(w.name,w.val)}s()}return r},ki.fromString=function(t){var e=this;return e.resetToDefault(),e.appendFromString(t),e};var It={};(function(){var t=gt,e=qt,r=Kr,a=Da,n=jt,i=function(Le){return"^"+Le+"\\s*\\(\\s*([\\w\\.]+)\\s*\\)$"},o=function(Le){var Se=t+"|\\w+|"+e+"|"+r+"|"+a+"|"+n;return"^"+Le+"\\s*\\(([\\w\\.]+)\\s*\\,\\s*("+t+")\\s*\\,\\s*("+t+")\\s*,\\s*("+Se+")\\s*\\,\\s*("+Se+")\\)$"},s=[`^url\\s*\\(\\s*['"]?(.+?)['"]?\\s*\\)$`,"^(none)$","^(.+)$"];It.types={time:{number:!0,min:0,units:"s|ms",implicitUnits:"ms"},percent:{number:!0,min:0,max:100,units:"%",implicitUnits:"%"},percentages:{number:!0,min:0,max:100,units:"%",implicitUnits:"%",multiple:!0},zeroOneNumber:{number:!0,min:0,max:1,unitless:!0},zeroOneNumbers:{number:!0,min:0,max:1,unitless:!0,multiple:!0},nOneOneNumber:{number:!0,min:-1,max:1,unitless:!0},nonNegativeInt:{number:!0,min:0,integer:!0,unitless:!0},nonNegativeNumber:{number:!0,min:0,unitless:!0},position:{enums:["parent","origin"]},nodeSize:{number:!0,min:0,enums:["label"]},number:{number:!0,unitless:!0},numbers:{number:!0,unitless:!0,multiple:!0},positiveNumber:{number:!0,unitless:!0,min:0,strictMin:!0},size:{number:!0,min:0},bidirectionalSize:{number:!0},bidirectionalSizeMaybePercent:{number:!0,allowPercent:!0},bidirectionalSizes:{number:!0,multiple:!0},sizeMaybePercent:{number:!0,min:0,allowPercent:!0},axisDirection:{enums:["horizontal","leftward","rightward","vertical","upward","downward","auto"]},paddingRelativeTo:{enums:["width","height","average","min","max"]},bgWH:{number:!0,min:0,allowPercent:!0,enums:["auto"],multiple:!0},bgPos:{number:!0,allowPercent:!0,multiple:!0},bgRelativeTo:{enums:["inner","include-padding"],multiple:!0},bgRepeat:{enums:["repeat","repeat-x","repeat-y","no-repeat"],multiple:!0},bgFit:{enums:["none","contain","cover"],multiple:!0},bgCrossOrigin:{enums:["anonymous","use-credentials","null"],multiple:!0},bgClip:{enums:["none","node"],multiple:!0},bgContainment:{enums:["inside","over"],multiple:!0},color:{color:!0},colors:{color:!0,multiple:!0},fill:{enums:["solid","linear-gradient","radial-gradient"]},bool:{enums:["yes","no"]},bools:{enums:["yes","no"],multiple:!0},lineStyle:{enums:["solid","dotted","dashed"]},lineCap:{enums:["butt","round","square"]},borderStyle:{enums:["solid","dotted","dashed","double"]},curveStyle:{enums:["bezier","unbundled-bezier","haystack","segments","straight","straight-triangle","taxi"]},fontFamily:{regex:'^([\\w- \\"]+(?:\\s*,\\s*[\\w- \\"]+)*)$'},fontStyle:{enums:["italic","normal","oblique"]},fontWeight:{enums:["normal","bold","bolder","lighter","100","200","300","400","500","600","800","900",100,200,300,400,500,600,700,800,900]},textDecoration:{enums:["none","underline","overline","line-through"]},textTransform:{enums:["none","uppercase","lowercase"]},textWrap:{enums:["none","wrap","ellipsis"]},textOverflowWrap:{enums:["whitespace","anywhere"]},textBackgroundShape:{enums:["rectangle","roundrectangle","round-rectangle"]},nodeShape:{enums:["rectangle","roundrectangle","round-rectangle","cutrectangle","cut-rectangle","bottomroundrectangle","bottom-round-rectangle","barrel","ellipse","triangle","round-triangle","square","pentagon","round-pentagon","hexagon","round-hexagon","concavehexagon","concave-hexagon","heptagon","round-heptagon","octagon","round-octagon","tag","round-tag","star","diamond","round-diamond","vee","rhomboid","right-rhomboid","polygon"]},overlayShape:{enums:["roundrectangle","round-rectangle","ellipse"]},compoundIncludeLabels:{enums:["include","exclude"]},arrowShape:{enums:["tee","triangle","triangle-tee","circle-triangle","triangle-cross","triangle-backcurve","vee","square","circle","diamond","chevron","none"]},arrowFill:{enums:["filled","hollow"]},arrowWidth:{number:!0,units:"%|px|em",implicitUnits:"px",enums:["match-line"]},display:{enums:["element","none"]},visibility:{enums:["hidden","visible"]},zCompoundDepth:{enums:["bottom","orphan","auto","top"]},zIndexCompare:{enums:["auto","manual"]},valign:{enums:["top","center","bottom"]},halign:{enums:["left","center","right"]},justification:{enums:["left","center","right","auto"]},text:{string:!0},data:{mapping:!0,regex:i("data")},layoutData:{mapping:!0,regex:i("layoutData")},scratch:{mapping:!0,regex:i("scratch")},mapData:{mapping:!0,regex:o("mapData")},mapLayoutData:{mapping:!0,regex:o("mapLayoutData")},mapScratch:{mapping:!0,regex:o("mapScratch")},fn:{mapping:!0,fn:!0},url:{regexes:s,singleRegexMatchValue:!0},urls:{regexes:s,singleRegexMatchValue:!0,multiple:!0},propList:{propList:!0},angle:{number:!0,units:"deg|rad",implicitUnits:"rad"},textRotation:{number:!0,units:"deg|rad",implicitUnits:"rad",enums:["none","autorotate"]},polygonPointList:{number:!0,multiple:!0,evenMultiple:!0,min:-1,max:1,unitless:!0},edgeDistances:{enums:["intersection","node-position","endpoints"]},edgeEndpoint:{number:!0,multiple:!0,units:"%|px|em|deg|rad",implicitUnits:"px",enums:["inside-to-node","outside-to-node","outside-to-node-or-label","outside-to-line","outside-to-line-or-label"],singleEnum:!0,validate:function(Le,Se){switch(Le.length){case 2:return Se[0]!=="deg"&&Se[0]!=="rad"&&Se[1]!=="deg"&&Se[1]!=="rad";case 1:return ee(Le[0])||Se[0]==="deg"||Se[0]==="rad";default:return!1}}},easing:{regexes:["^(spring)\\s*\\(\\s*("+t+")\\s*,\\s*("+t+")\\s*\\)$","^(cubic-bezier)\\s*\\(\\s*("+t+")\\s*,\\s*("+t+")\\s*,\\s*("+t+")\\s*,\\s*("+t+")\\s*\\)$"],enums:["linear","ease","ease-in","ease-out","ease-in-out","ease-in-sine","ease-out-sine","ease-in-out-sine","ease-in-quad","ease-out-quad","ease-in-out-quad","ease-in-cubic","ease-out-cubic","ease-in-out-cubic","ease-in-quart","ease-out-quart","ease-in-out-quart","ease-in-quint","ease-out-quint","ease-in-out-quint","ease-in-expo","ease-out-expo","ease-in-out-expo","ease-in-circ","ease-out-circ","ease-in-out-circ"]},gradientDirection:{enums:["to-bottom","to-top","to-left","to-right","to-bottom-right","to-bottom-left","to-top-right","to-top-left","to-right-bottom","to-left-bottom","to-right-top","to-left-top"]},boundsExpansion:{number:!0,multiple:!0,min:0,validate:function(Le){var Se=Le.length;return Se===1||Se===2||Se===4}}};var u={zeroNonZero:function(Le,Se){return(Le==null||Se==null)&&Le!==Se||Le==0&&Se!=0?!0:Le!=0&&Se==0},any:function(Le,Se){return Le!=Se},emptyNonEmpty:function(Le,Se){var Oe=Re(Le),Fe=Re(Se);return Oe&&!Fe||!Oe&&Fe}},l=It.types,v=[{name:"label",type:l.text,triggersBounds:u.any,triggersZOrder:u.emptyNonEmpty},{name:"text-rotation",type:l.textRotation,triggersBounds:u.any},{name:"text-margin-x",type:l.bidirectionalSize,triggersBounds:u.any},{name:"text-margin-y",type:l.bidirectionalSize,triggersBounds:u.any}],f=[{name:"source-label",type:l.text,triggersBounds:u.any},{name:"source-text-rotation",type:l.textRotation,triggersBounds:u.any},{name:"source-text-margin-x",type:l.bidirectionalSize,triggersBounds:u.any},{name:"source-text-margin-y",type:l.bidirectionalSize,triggersBounds:u.any},{name:"source-text-offset",type:l.size,triggersBounds:u.any}],h=[{name:"target-label",type:l.text,triggersBounds:u.any},{name:"target-text-rotation",type:l.textRotation,triggersBounds:u.any},{name:"target-text-margin-x",type:l.bidirectionalSize,triggersBounds:u.any},{name:"target-text-margin-y",type:l.bidirectionalSize,triggersBounds:u.any},{name:"target-text-offset",type:l.size,triggersBounds:u.any}],d=[{name:"font-family",type:l.fontFamily,triggersBounds:u.any},{name:"font-style",type:l.fontStyle,triggersBounds:u.any},{name:"font-weight",type:l.fontWeight,triggersBounds:u.any},{name:"font-size",type:l.size,triggersBounds:u.any},{name:"text-transform",type:l.textTransform,triggersBounds:u.any},{name:"text-wrap",type:l.textWrap,triggersBounds:u.any},{name:"text-overflow-wrap",type:l.textOverflowWrap,triggersBounds:u.any},{name:"text-max-width",type:l.size,triggersBounds:u.any},{name:"text-outline-width",type:l.size,triggersBounds:u.any},{name:"line-height",type:l.positiveNumber,triggersBounds:u.any}],c=[{name:"text-valign",type:l.valign,triggersBounds:u.any},{name:"text-halign",type:l.halign,triggersBounds:u.any},{name:"color",type:l.color},{name:"text-outline-color",type:l.color},{name:"text-outline-opacity",type:l.zeroOneNumber},{name:"text-background-color",type:l.color},{name:"text-background-opacity",type:l.zeroOneNumber},{name:"text-background-padding",type:l.size,triggersBounds:u.any},{name:"text-border-opacity",type:l.zeroOneNumber},{name:"text-border-color",type:l.color},{name:"text-border-width",type:l.size,triggersBounds:u.any},{name:"text-border-style",type:l.borderStyle,triggersBounds:u.any},{name:"text-background-shape",type:l.textBackgroundShape,triggersBounds:u.any},{name:"text-justification",type:l.justification}],y=[{name:"events",type:l.bool,triggersZOrder:u.any},{name:"text-events",type:l.bool,triggersZOrder:u.any}],p=[{name:"display",type:l.display,triggersZOrder:u.any,triggersBounds:u.any,triggersBoundsOfConnectedEdges:!0},{name:"visibility",type:l.visibility,triggersZOrder:u.any},{name:"opacity",type:l.zeroOneNumber,triggersZOrder:u.zeroNonZero},{name:"text-opacity",type:l.zeroOneNumber},{name:"min-zoomed-font-size",type:l.size},{name:"z-compound-depth",type:l.zCompoundDepth,triggersZOrder:u.any},{name:"z-index-compare",type:l.zIndexCompare,triggersZOrder:u.any},{name:"z-index",type:l.number,triggersZOrder:u.any}],g=[{name:"overlay-padding",type:l.size,triggersBounds:u.any},{name:"overlay-color",type:l.color},{name:"overlay-opacity",type:l.zeroOneNumber,triggersBounds:u.zeroNonZero},{name:"overlay-shape",type:l.overlayShape,triggersBounds:u.any}],m=[{name:"underlay-padding",type:l.size,triggersBounds:u.any},{name:"underlay-color",type:l.color},{name:"underlay-opacity",type:l.zeroOneNumber,triggersBounds:u.zeroNonZero},{name:"underlay-shape",type:l.overlayShape,triggersBounds:u.any}],b=[{name:"transition-property",type:l.propList},{name:"transition-duration",type:l.time},{name:"transition-delay",type:l.time},{name:"transition-timing-function",type:l.easing}],E=function(Le,Se){return Se.value==="label"?-Le.poolIndex():Se.pfValue},M=[{name:"height",type:l.nodeSize,triggersBounds:u.any,hashOverride:E},{name:"width",type:l.nodeSize,triggersBounds:u.any,hashOverride:E},{name:"shape",type:l.nodeShape,triggersBounds:u.any},{name:"shape-polygon-points",type:l.polygonPointList,triggersBounds:u.any},{name:"background-color",type:l.color},{name:"background-fill",type:l.fill},{name:"background-opacity",type:l.zeroOneNumber},{name:"background-blacken",type:l.nOneOneNumber},{name:"background-gradient-stop-colors",type:l.colors},{name:"background-gradient-stop-positions",type:l.percentages},{name:"background-gradient-direction",type:l.gradientDirection},{name:"padding",type:l.sizeMaybePercent,triggersBounds:u.any},{name:"padding-relative-to",type:l.paddingRelativeTo,triggersBounds:u.any},{name:"bounds-expansion",type:l.boundsExpansion,triggersBounds:u.any}],L=[{name:"border-color",type:l.color},{name:"border-opacity",type:l.zeroOneNumber},{name:"border-width",type:l.size,triggersBounds:u.any},{name:"border-style",type:l.borderStyle}],w=[{name:"outline-color",type:l.color},{name:"outline-opacity",type:l.zeroOneNumber},{name:"outline-width",type:l.size,triggersBounds:u.any},{name:"outline-style",type:l.borderStyle},{name:"outline-offset",type:l.size,triggersBounds:u.any}],k=[{name:"background-image",type:l.urls},{name:"background-image-crossorigin",type:l.bgCrossOrigin},{name:"background-image-opacity",type:l.zeroOneNumbers},{name:"background-image-containment",type:l.bgContainment},{name:"background-image-smoothing",type:l.bools},{name:"background-position-x",type:l.bgPos},{name:"background-position-y",type:l.bgPos},{name:"background-width-relative-to",type:l.bgRelativeTo},{name:"background-height-relative-to",type:l.bgRelativeTo},{name:"background-repeat",type:l.bgRepeat},{name:"background-fit",type:l.bgFit},{name:"background-clip",type:l.bgClip},{name:"background-width",type:l.bgWH},{name:"background-height",type:l.bgWH},{name:"background-offset-x",type:l.bgPos},{name:"background-offset-y",type:l.bgPos}],D=[{name:"position",type:l.position,triggersBounds:u.any},{name:"compound-sizing-wrt-labels",type:l.compoundIncludeLabels,triggersBounds:u.any},{name:"min-width",type:l.size,triggersBounds:u.any},{name:"min-width-bias-left",type:l.sizeMaybePercent,triggersBounds:u.any},{name:"min-width-bias-right",type:l.sizeMaybePercent,triggersBounds:u.any},{name:"min-height",type:l.size,triggersBounds:u.any},{name:"min-height-bias-top",type:l.sizeMaybePercent,triggersBounds:u.any},{name:"min-height-bias-bottom",type:l.sizeMaybePercent,triggersBounds:u.any}],F=[{name:"line-style",type:l.lineStyle},{name:"line-color",type:l.color},{name:"line-fill",type:l.fill},{name:"line-cap",type:l.lineCap},{name:"line-opacity",type:l.zeroOneNumber},{name:"line-dash-pattern",type:l.numbers},{name:"line-dash-offset",type:l.number},{name:"line-gradient-stop-colors",type:l.colors},{name:"line-gradient-stop-positions",type:l.percentages},{name:"curve-style",type:l.curveStyle,triggersBounds:u.any,triggersBoundsOfParallelBeziers:!0},{name:"haystack-radius",type:l.zeroOneNumber,triggersBounds:u.any},{name:"source-endpoint",type:l.edgeEndpoint,triggersBounds:u.any},{name:"target-endpoint",type:l.edgeEndpoint,triggersBounds:u.any},{name:"control-point-step-size",type:l.size,triggersBounds:u.any},{name:"control-point-distances",type:l.bidirectionalSizes,triggersBounds:u.any},{name:"control-point-weights",type:l.numbers,triggersBounds:u.any},{name:"segment-distances",type:l.bidirectionalSizes,triggersBounds:u.any},{name:"segment-weights",type:l.numbers,triggersBounds:u.any},{name:"taxi-turn",type:l.bidirectionalSizeMaybePercent,triggersBounds:u.any},{name:"taxi-turn-min-distance",type:l.size,triggersBounds:u.any},{name:"taxi-direction",type:l.axisDirection,triggersBounds:u.any},{name:"edge-distances",type:l.edgeDistances,triggersBounds:u.any},{name:"arrow-scale",type:l.positiveNumber,triggersBounds:u.any},{name:"loop-direction",type:l.angle,triggersBounds:u.any},{name:"loop-sweep",type:l.angle,triggersBounds:u.any},{name:"source-distance-from-node",type:l.size,triggersBounds:u.any},{name:"target-distance-from-node",type:l.size,triggersBounds:u.any}],G=[{name:"ghost",type:l.bool,triggersBounds:u.any},{name:"ghost-offset-x",type:l.bidirectionalSize,triggersBounds:u.any},{name:"ghost-offset-y",type:l.bidirectionalSize,triggersBounds:u.any},{name:"ghost-opacity",type:l.zeroOneNumber}],I=[{name:"selection-box-color",type:l.color},{name:"selection-box-opacity",type:l.zeroOneNumber},{name:"selection-box-border-color",type:l.color},{name:"selection-box-border-width",type:l.size},{name:"active-bg-color",type:l.color},{name:"active-bg-opacity",type:l.zeroOneNumber},{name:"active-bg-size",type:l.size},{name:"outside-texture-bg-color",type:l.color},{name:"outside-texture-bg-opacity",type:l.zeroOneNumber}],X=[];It.pieBackgroundN=16,X.push({name:"pie-size",type:l.sizeMaybePercent});for(var B=1;B<=It.pieBackgroundN;B++)X.push({name:"pie-"+B+"-background-color",type:l.color}),X.push({name:"pie-"+B+"-background-size",type:l.percent}),X.push({name:"pie-"+B+"-background-opacity",type:l.zeroOneNumber});var re=[],K=It.arrowPrefixes=["source","mid-source","target","mid-target"];[{name:"arrow-shape",type:l.arrowShape,triggersBounds:u.any},{name:"arrow-color",type:l.color},{name:"arrow-fill",type:l.arrowFill},{name:"arrow-width",type:l.arrowWidth}].forEach(function(xe){K.forEach(function(Le){var Se=Le+"-"+xe.name,Oe=xe.type,Fe=xe.triggersBounds;re.push({name:Se,type:Oe,triggersBounds:Fe})})},{});var W=It.properties=[].concat(y,b,p,g,m,G,c,d,v,f,h,M,L,w,k,X,D,F,re,I),ae=It.propertyGroups={behavior:y,transition:b,visibility:p,overlay:g,underlay:m,ghost:G,commonLabel:c,labelDimensions:d,mainLabel:v,sourceLabel:f,targetLabel:h,nodeBody:M,nodeBorder:L,nodeOutline:w,backgroundImage:k,pie:X,compound:D,edgeLine:F,edgeArrow:re,core:I},ue=It.propertyGroupNames={},me=It.propertyGroupKeys=Object.keys(ae);me.forEach(function(xe){ue[xe]=ae[xe].map(function(Le){return Le.name}),ae[xe].forEach(function(Le){return Le.groupKey=xe})});var ie=It.aliases=[{name:"content",pointsTo:"label"},{name:"control-point-distance",pointsTo:"control-point-distances"},{name:"control-point-weight",pointsTo:"control-point-weights"},{name:"edge-text-rotation",pointsTo:"text-rotation"},{name:"padding-left",pointsTo:"padding"},{name:"padding-right",pointsTo:"padding"},{name:"padding-top",pointsTo:"padding"},{name:"padding-bottom",pointsTo:"padding"}];It.propertyNames=W.map(function(xe){return xe.name});for(var ge=0;ge<W.length;ge++){var Ee=W[ge];W[Ee.name]=Ee}for(var Ce=0;Ce<ie.length;Ce++){var we=ie[Ce],De=W[we.pointsTo],oe={name:we.name,alias:!0,pointsTo:De};W.push(oe),W[we.name]=oe}})(),It.getDefaultProperty=function(t){return this.getDefaultProperties()[t]},It.getDefaultProperties=function(){var t=this._private;if(t.defaultProperties!=null)return t.defaultProperties;for(var e=He({"selection-box-color":"#ddd","selection-box-opacity":.65,"selection-box-border-color":"#aaa","selection-box-border-width":1,"active-bg-color":"black","active-bg-opacity":.15,"active-bg-size":30,"outside-texture-bg-color":"#000","outside-texture-bg-opacity":.125,events:"yes","text-events":"no","text-valign":"top","text-halign":"center","text-justification":"auto","line-height":1,color:"#000","text-outline-color":"#000","text-outline-width":0,"text-outline-opacity":1,"text-opacity":1,"text-decoration":"none","text-transform":"none","text-wrap":"none","text-overflow-wrap":"whitespace","text-max-width":9999,"text-background-color":"#000","text-background-opacity":0,"text-background-shape":"rectangle","text-background-padding":0,"text-border-opacity":0,"text-border-width":0,"text-border-style":"solid","text-border-color":"#000","font-family":"Helvetica Neue, Helvetica, sans-serif","font-style":"normal","font-weight":"normal","font-size":16,"min-zoomed-font-size":0,"text-rotation":"none","source-text-rotation":"none","target-text-rotation":"none",visibility:"visible",display:"element",opacity:1,"z-compound-depth":"auto","z-index-compare":"auto","z-index":0,label:"","text-margin-x":0,"text-margin-y":0,"source-label":"","source-text-offset":0,"source-text-margin-x":0,"source-text-margin-y":0,"target-label":"","target-text-offset":0,"target-text-margin-x":0,"target-text-margin-y":0,"overlay-opacity":0,"overlay-color":"#000","overlay-padding":10,"overlay-shape":"round-rectangle","underlay-opacity":0,"underlay-color":"#000","underlay-padding":10,"underlay-shape":"round-rectangle","transition-property":"none","transition-duration":0,"transition-delay":0,"transition-timing-function":"linear","background-blacken":0,"background-color":"#999","background-fill":"solid","background-opacity":1,"background-image":"none","background-image-crossorigin":"anonymous","background-image-opacity":1,"background-image-containment":"inside","background-image-smoothing":"yes","background-position-x":"50%","background-position-y":"50%","background-offset-x":0,"background-offset-y":0,"background-width-relative-to":"include-padding","background-height-relative-to":"include-padding","background-repeat":"no-repeat","background-fit":"none","background-clip":"node","background-width":"auto","background-height":"auto","border-color":"#000","border-opacity":1,"border-width":0,"border-style":"solid","outline-color":"#999","outline-opacity":1,"outline-width":0,"outline-offset":0,"outline-style":"solid",height:30,width:30,shape:"ellipse","shape-polygon-points":"-1, -1, 1, -1, 1, 1, -1, 1","bounds-expansion":0,"background-gradient-direction":"to-bottom","background-gradient-stop-colors":"#999","background-gradient-stop-positions":"0%",ghost:"no","ghost-offset-y":0,"ghost-offset-x":0,"ghost-opacity":0,padding:0,"padding-relative-to":"width",position:"origin","compound-sizing-wrt-labels":"include","min-width":0,"min-width-bias-left":0,"min-width-bias-right":0,"min-height":0,"min-height-bias-top":0,"min-height-bias-bottom":0},{"pie-size":"100%"},[{name:"pie-{{i}}-background-color",value:"black"},{name:"pie-{{i}}-background-size",value:"0%"},{name:"pie-{{i}}-background-opacity",value:1}].reduce(function(u,l){for(var v=1;v<=It.pieBackgroundN;v++){var f=l.name.replace("{{i}}",v),h=l.value;u[f]=h}return u},{}),{"line-style":"solid","line-color":"#999","line-fill":"solid","line-cap":"butt","line-opacity":1,"line-gradient-stop-colors":"#999","line-gradient-stop-positions":"0%","control-point-step-size":40,"control-point-weights":.5,"segment-weights":.5,"segment-distances":20,"taxi-turn":"50%","taxi-turn-min-distance":10,"taxi-direction":"auto","edge-distances":"intersection","curve-style":"haystack","haystack-radius":0,"arrow-scale":1,"loop-direction":"-45deg","loop-sweep":"-90deg","source-distance-from-node":0,"target-distance-from-node":0,"source-endpoint":"outside-to-node","target-endpoint":"outside-to-node","line-dash-pattern":[6,3],"line-dash-offset":0},[{name:"arrow-shape",value:"none"},{name:"arrow-color",value:"#999"},{name:"arrow-fill",value:"filled"},{name:"arrow-width",value:1}].reduce(function(u,l){return It.arrowPrefixes.forEach(function(v){var f=v+"-"+l.name,h=l.value;u[f]=h}),u},{})),r={},a=0;a<this.properties.length;a++){var n=this.properties[a];if(!n.pointsTo){var i=n.name,o=e[i],s=this.parse(i,o);r[i]=s}}return t.defaultProperties=r,t.defaultProperties},It.addDefaultStylesheet=function(){this.selector(":parent").css({shape:"rectangle",padding:10,"background-color":"#eee","border-color":"#ccc","border-width":1}).selector("edge").css({width:3}).selector(":loop").css({"curve-style":"bezier"}).selector("edge:compound").css({"curve-style":"bezier","source-endpoint":"outside-to-line","target-endpoint":"outside-to-line"}).selector(":selected").css({"background-color":"#0169D9","line-color":"#0169D9","source-arrow-color":"#0169D9","target-arrow-color":"#0169D9","mid-source-arrow-color":"#0169D9","mid-target-arrow-color":"#0169D9"}).selector(":parent:selected").css({"background-color":"#CCE1F9","border-color":"#aec8e5"}).selector(":active").css({"overlay-color":"black","overlay-padding":10,"overlay-opacity":.25}),this.defaultLength=this.length};var Un={};Un.parse=function(t,e,r,a){var n=this;if(H(e))return n.parseImplWarn(t,e,r,a);var i=a==="mapping"||a===!0||a===!1||a==null?"dontcare":a,o=r?"t":"f",s=""+e,u=fo(t,s,o,i),l=n.propCache=n.propCache||[],v;return(v=l[u])||(v=l[u]=n.parseImplWarn(t,e,r,a)),(r||a==="mapping")&&(v=lr(v),v&&(v.value=lr(v.value))),v},Un.parseImplWarn=function(t,e,r,a){var n=this.parseImpl(t,e,r,a);return!n&&e!=null&&ht("The style property `".concat(t,": ").concat(e,"` is invalid")),n&&(n.name==="width"||n.name==="height")&&e==="label"&&ht("The style value of `label` is deprecated for `"+n.name+"`"),n},Un.parseImpl=function(t,e,r,a){var n=this;t=tt(t);var i=n.properties[t],o=e,s=n.types;if(!i||e===void 0)return null;i.alias&&(i=i.pointsTo,t=i.name);var u=ee(e);u&&(e=e.trim());var l=i.type;if(!l)return null;if(r&&(e===""||e===null))return{name:t,value:e,bypass:!0,deleteBypass:!0};if(H(e))return{name:t,value:e,strValue:"fn",mapped:s.fn,bypass:r};var v,f;if(!(!u||a||e.length<7||e[1]!=="a")){if(e.length>=7&&e[0]==="d"&&(v=new RegExp(s.data.regex).exec(e))){if(r)return!1;var h=s.data;return{name:t,value:v,strValue:""+e,mapped:h,field:v[1],bypass:r}}else if(e.length>=10&&e[0]==="m"&&(f=new RegExp(s.mapData.regex).exec(e))){if(r||l.multiple)return!1;var d=s.mapData;if(!(l.color||l.number))return!1;var c=this.parse(t,f[4]);if(!c||c.mapped)return!1;var y=this.parse(t,f[5]);if(!y||y.mapped)return!1;if(c.pfValue===y.pfValue||c.strValue===y.strValue)return ht("`"+t+": "+e+"` is not a valid mapper because the output range is zero; converting to `"+t+": "+c.strValue+"`"),this.parse(t,c.strValue);if(l.color){var p=c.value,g=y.value,m=p[0]===g[0]&&p[1]===g[1]&&p[2]===g[2]&&(p[3]===g[3]||(p[3]==null||p[3]===1)&&(g[3]==null||g[3]===1));if(m)return!1}return{name:t,value:f,strValue:""+e,mapped:d,field:f[1],fieldMin:parseFloat(f[2]),fieldMax:parseFloat(f[3]),valueMin:c.value,valueMax:y.value,bypass:r}}}if(l.multiple&&a!=="multiple"){var b;if(u?b=e.split(/\s+/):te(e)?b=e:b=[e],l.evenMultiple&&b.length%2!==0)return null;for(var E=[],M=[],L=[],w="",k=!1,D=0;D<b.length;D++){var F=n.parse(t,b[D],r,"multiple");k=k||ee(F.value),E.push(F.value),L.push(F.pfValue!=null?F.pfValue:F.value),M.push(F.units),w+=(D>0?" ":"")+F.strValue}return l.validate&&!l.validate(E,M)?null:l.singleEnum&&k?E.length===1&&ee(E[0])?{name:t,value:E[0],strValue:E[0],bypass:r}:null:{name:t,value:E,pfValue:L,strValue:w,bypass:r,units:M}}var G=function(){for(var Le=0;Le<l.enums.length;Le++){var Se=l.enums[Le];if(Se===e)return{name:t,value:e,strValue:""+e,bypass:r}}return null};if(l.number){var I,X="px";if(l.units&&(I=l.units),l.implicitUnits&&(X=l.implicitUnits),!l.unitless)if(u){var B="px|em"+(l.allowPercent?"|\\%":"");I&&(B=I);var re=e.match("^("+gt+")("+B+")?$");re&&(e=re[1],I=re[2]||X)}else(!I||l.implicitUnits)&&(I=X);if(e=parseFloat(e),isNaN(e)&&l.enums===void 0)return null;if(isNaN(e)&&l.enums!==void 0)return e=o,G();if(l.integer&&!q(e)||l.min!==void 0&&(e<l.min||l.strictMin&&e===l.min)||l.max!==void 0&&(e>l.max||l.strictMax&&e===l.max))return null;var K={name:t,value:e,strValue:""+e+(I||""),units:I,bypass:r};return l.unitless||I!=="px"&&I!=="em"?K.pfValue=e:K.pfValue=I==="px"||!I?e:this.getEmSizeInPixels()*e,(I==="ms"||I==="s")&&(K.pfValue=I==="ms"?e:1e3*e),(I==="deg"||I==="rad")&&(K.pfValue=I==="rad"?e:yv(e)),I==="%"&&(K.pfValue=e/100),K}else if(l.propList){var W=[],ae=""+e;if(ae!=="none"){for(var ue=ae.split(/\s*,\s*|\s+/),me=0;me<ue.length;me++){var ie=ue[me].trim();n.properties[ie]?W.push(ie):ht("`"+ie+"` is not a valid property name")}if(W.length===0)return null}return{name:t,value:W,strValue:W.length===0?"none":W.join(" "),bypass:r}}else if(l.color){var ge=eu(e);return ge?{name:t,value:ge,pfValue:ge,strValue:"rgb("+ge[0]+","+ge[1]+","+ge[2]+")",bypass:r}:null}else if(l.regex||l.regexes){if(l.enums){var Ee=G();if(Ee)return Ee}for(var Ce=l.regexes?l.regexes:[l.regex],we=0;we<Ce.length;we++){var De=new RegExp(Ce[we]),oe=De.exec(e);if(oe)return{name:t,value:l.singleRegexMatchValue?oe[1]:oe,strValue:""+e,bypass:r}}return null}else return l.string?{name:t,value:""+e,strValue:""+e,bypass:r}:l.enums?G():null};var Gt=function t(e){if(!(this instanceof t))return new t(e);if(!Ye(e)){xt("A style must have a core reference");return}this._private={cy:e,coreStyle:{}},this.length=0,this.resetToDefault()},zt=Gt.prototype;zt.instanceString=function(){return"style"},zt.clear=function(){for(var t=this._private,e=t.cy,r=e.elements(),a=0;a<this.length;a++)this[a]=void 0;return this.length=0,t.contextStyles={},t.propDiffs={},this.cleanElements(r,!0),r.forEach(function(n){var i=n[0]._private;i.styleDirty=!0,i.appliedInitStyle=!1}),this},zt.resetToDefault=function(){return this.clear(),this.addDefaultStylesheet(),this},zt.core=function(t){return this._private.coreStyle[t]||this.getDefaultProperty(t)},zt.selector=function(t){var e=t==="core"?null:new Sr(t),r=this.length++;return this[r]={selector:e,properties:[],mappedProperties:[],index:r},this},zt.css=function(){var t=this,e=arguments;if(e.length===1)for(var r=e[0],a=0;a<t.properties.length;a++){var n=t.properties[a],i=r[n.name];i===void 0&&(i=r[yt(n.name)]),i!==void 0&&this.cssRule(n.name,i)}else e.length===2&&this.cssRule(e[0],e[1]);return this},zt.style=zt.css,zt.cssRule=function(t,e){var r=this.parse(t,e);if(r){var a=this.length-1;this[a].properties.push(r),this[a].properties[r.name]=r,r.name.match(/pie-(\d+)-background-size/)&&r.value&&(this._private.hasPie=!0),r.mapped&&this[a].mappedProperties.push(r);var n=!this[a].selector;n&&(this._private.coreStyle[r.name]=r)}return this},zt.append=function(t){return at(t)?t.appendToStyle(this):te(t)?this.appendFromJson(t):ee(t)&&this.appendFromString(t),this},Gt.fromJson=function(t,e){var r=new Gt(t);return r.fromJson(e),r},Gt.fromString=function(t,e){return new Gt(t).fromString(e)},[Ft,qa,Ri,vr,$n,ki,It,Un].forEach(function(t){He(zt,t)}),Gt.types=zt.types,Gt.properties=zt.properties,Gt.propertyGroups=zt.propertyGroups,Gt.propertyGroupNames=zt.propertyGroupNames,Gt.propertyGroupKeys=zt.propertyGroupKeys;var Gd={style:function(e){if(e){var r=this.setStyle(e);r.update()}return this._private.style},setStyle:function(e){var r=this._private;return at(e)?r.style=e.generateStyle(this):te(e)?r.style=Gt.fromJson(this,e):ee(e)?r.style=Gt.fromString(this,e):r.style=Gt(this),r.style},updateStyle:function(){this.mutableElements().updateStyle()}},zd="single",$r={autolock:function(e){if(e!==void 0)this._private.autolock=!!e;else return this._private.autolock;return this},autoungrabify:function(e){if(e!==void 0)this._private.autoungrabify=!!e;else return this._private.autoungrabify;return this},autounselectify:function(e){if(e!==void 0)this._private.autounselectify=!!e;else return this._private.autounselectify;return this},selectionType:function(e){var r=this._private;if(r.selectionType==null&&(r.selectionType=zd),e!==void 0)(e==="additive"||e==="single")&&(r.selectionType=e);else return r.selectionType;return this},panningEnabled:function(e){if(e!==void 0)this._private.panningEnabled=!!e;else return this._private.panningEnabled;return this},userPanningEnabled:function(e){if(e!==void 0)this._private.userPanningEnabled=!!e;else return this._private.userPanningEnabled;return this},zoomingEnabled:function(e){if(e!==void 0)this._private.zoomingEnabled=!!e;else return this._private.zoomingEnabled;return this},userZoomingEnabled:function(e){if(e!==void 0)this._private.userZoomingEnabled=!!e;else return this._private.userZoomingEnabled;return this},boxSelectionEnabled:function(e){if(e!==void 0)this._private.boxSelectionEnabled=!!e;else return this._private.boxSelectionEnabled;return this},pan:function(){var e=arguments,r=this._private.pan,a,n,i,o,s;switch(e.length){case 0:return r;case 1:if(ee(e[0]))return a=e[0],r[a];if(S(e[0])){if(!this._private.panningEnabled)return this;i=e[0],o=i.x,s=i.y,R(o)&&(r.x=o),R(s)&&(r.y=s),this.emit("pan viewport")}break;case 2:if(!this._private.panningEnabled)return this;a=e[0],n=e[1],(a==="x"||a==="y")&&R(n)&&(r[a]=n),this.emit("pan viewport");break}return this.notify("viewport"),this},panBy:function(e,r){var a=arguments,n=this._private.pan,i,o,s,u,l;if(!this._private.panningEnabled)return this;switch(a.length){case 1:S(e)&&(s=a[0],u=s.x,l=s.y,R(u)&&(n.x+=u),R(l)&&(n.y+=l),this.emit("pan viewport"));break;case 2:i=e,o=r,(i==="x"||i==="y")&&R(o)&&(n[i]+=o),this.emit("pan viewport");break}return this.notify("viewport"),this},fit:function(e,r){var a=this.getFitViewport(e,r);if(a){var n=this._private;n.zoom=a.zoom,n.pan=a.pan,this.emit("pan zoom viewport"),this.notify("viewport")}return this},getFitViewport:function(e,r){if(R(e)&&r===void 0&&(r=e,e=void 0),!(!this._private.panningEnabled||!this._private.zoomingEnabled)){var a;if(ee(e)){var n=e;e=this.$(n)}else if(Ze(e)){var i=e;a={x1:i.x1,y1:i.y1,x2:i.x2,y2:i.y2},a.w=a.x2-a.x1,a.h=a.y2-a.y1}else pe(e)||(e=this.mutableElements());if(!(pe(e)&&e.empty())){a=a||e.boundingBox();var o=this.width(),s=this.height(),u;if(r=R(r)?r:0,!isNaN(o)&&!isNaN(s)&&o>0&&s>0&&!isNaN(a.w)&&!isNaN(a.h)&&a.w>0&&a.h>0){u=Math.min((o-2*r)/a.w,(s-2*r)/a.h),u=u>this._private.maxZoom?this._private.maxZoom:u,u=u<this._private.minZoom?this._private.minZoom:u;var l={x:(o-u*(a.x1+a.x2))/2,y:(s-u*(a.y1+a.y2))/2};return{zoom:u,pan:l}}}}},zoomRange:function(e,r){var a=this._private;if(r==null){var n=e;e=n.min,r=n.max}return R(e)&&R(r)&&e<=r?(a.minZoom=e,a.maxZoom=r):R(e)&&r===void 0&&e<=a.maxZoom?a.minZoom=e:R(r)&&e===void 0&&r>=a.minZoom&&(a.maxZoom=r),this},minZoom:function(e){return e===void 0?this._private.minZoom:this.zoomRange({min:e})},maxZoom:function(e){return e===void 0?this._private.maxZoom:this.zoomRange({max:e})},getZoomedViewport:function(e){var r=this._private,a=r.pan,n=r.zoom,i,o,s=!1;if(r.zoomingEnabled||(s=!0),R(e)?o=e:S(e)&&(o=e.level,e.position!=null?i=hn(e.position,n,a):e.renderedPosition!=null&&(i=e.renderedPosition),i!=null&&!r.panningEnabled&&(s=!0)),o=o>r.maxZoom?r.maxZoom:o,o=o<r.minZoom?r.minZoom:o,s||!R(o)||o===n||i!=null&&(!R(i.x)||!R(i.y)))return null;if(i!=null){var u=a,l=n,v=o,f={x:-v/l*(i.x-u.x)+i.x,y:-v/l*(i.y-u.y)+i.y};return{zoomed:!0,panned:!0,zoom:v,pan:f}}else return{zoomed:!0,panned:!1,zoom:o,pan:a}},zoom:function(e){if(e===void 0)return this._private.zoom;var r=this.getZoomedViewport(e),a=this._private;return r==null||!r.zoomed?this:(a.zoom=r.zoom,r.panned&&(a.pan.x=r.pan.x,a.pan.y=r.pan.y),this.emit("zoom"+(r.panned?" pan":"")+" viewport"),this.notify("viewport"),this)},viewport:function(e){var r=this._private,a=!0,n=!0,i=[],o=!1,s=!1;if(!e)return this;if(R(e.zoom)||(a=!1),S(e.pan)||(n=!1),!a&&!n)return this;if(a){var u=e.zoom;u<r.minZoom||u>r.maxZoom||!r.zoomingEnabled?o=!0:(r.zoom=u,i.push("zoom"))}if(n&&(!o||!e.cancelOnFailedZoom)&&r.panningEnabled){var l=e.pan;R(l.x)&&(r.pan.x=l.x,s=!1),R(l.y)&&(r.pan.y=l.y,s=!1),s||i.push("pan")}return i.length>0&&(i.push("viewport"),this.emit(i.join(" ")),this.notify("viewport")),this},center:function(e){var r=this.getCenterPan(e);return r&&(this._private.pan=r,this.emit("pan viewport"),this.notify("viewport")),this},getCenterPan:function(e,r){if(this._private.panningEnabled){if(ee(e)){var a=e;e=this.mutableElements().filter(a)}else pe(e)||(e=this.mutableElements());if(e.length!==0){var n=e.boundingBox(),i=this.width(),o=this.height();r=r===void 0?this._private.zoom:r;var s={x:(i-r*(n.x1+n.x2))/2,y:(o-r*(n.y1+n.y2))/2};return s}}},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 e=this._private,r=e.container,a=this;return e.sizeCache=e.sizeCache||(r?function(){var n=a.window().getComputedStyle(r),i=function(s){return parseFloat(n.getPropertyValue(s))};return{width:r.clientWidth-i("padding-left")-i("padding-right"),height:r.clientHeight-i("padding-top")-i("padding-bottom")}}():{width:1,height:1})},width:function(){return this.size().width},height:function(){return this.size().height},extent:function(){var e=this._private.pan,r=this._private.zoom,a=this.renderedExtent(),n={x1:(a.x1-e.x)/r,x2:(a.x2-e.x)/r,y1:(a.y1-e.y)/r,y2:(a.y2-e.y)/r};return n.w=n.x2-n.x1,n.h=n.y2-n.y1,n},renderedExtent:function(){var e=this.width(),r=this.height();return{x1:0,y1:0,x2:e,y2:r,w:e,h:r}},multiClickDebounceTime:function(e){if(e)this._private.multiClickDebounceTime=e;else return this._private.multiClickDebounceTime;return this}};$r.centre=$r.center,$r.autolockNodes=$r.autolock,$r.autoungrabifyNodes=$r.autoungrabify;var Ka={data:ct.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeData:ct.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),scratch:ct.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:ct.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0})};Ka.attr=Ka.data,Ka.removeAttr=Ka.removeData;var Za=function(e){var r=this;e=He({},e);var a=e.container;a&&!he(a)&&he(a[0])&&(a=a[0]);var n=a?a._cyreg:null;n=n||{},n&&n.cy&&(n.cy.destroy(),n={});var i=n.readies=n.readies||[];a&&(a._cyreg=n),n.cy=r;var o=A!==void 0&&a!==void 0&&!e.headless,s=e;s.layout=He({name:o?"grid":"null"},s.layout),s.renderer=He({name:o?"canvas":"null"},s.renderer);var u=function(c,y,p){return y!==void 0?y:p!==void 0?p:c},l=this._private={container:a,ready:!1,options:s,elements:new Nt(this),listeners:[],aniEles:new Nt(this),data:s.data||{},scratch:{},layout:null,renderer:null,destroyed:!1,notificationsEnabled:!0,minZoom:1e-50,maxZoom:1e50,zoomingEnabled:u(!0,s.zoomingEnabled),userZoomingEnabled:u(!0,s.userZoomingEnabled),panningEnabled:u(!0,s.panningEnabled),userPanningEnabled:u(!0,s.userPanningEnabled),boxSelectionEnabled:u(!0,s.boxSelectionEnabled),autolock:u(!1,s.autolock,s.autolockNodes),autoungrabify:u(!1,s.autoungrabify,s.autoungrabifyNodes),autounselectify:u(!1,s.autounselectify),styleEnabled:s.styleEnabled===void 0?o:s.styleEnabled,zoom:R(s.zoom)?s.zoom:1,pan:{x:S(s.pan)&&R(s.pan.x)?s.pan.x:0,y:S(s.pan)&&R(s.pan.y)?s.pan.y:0},animation:{current:[],queue:[]},hasCompoundNodes:!1,multiClickDebounceTime:u(250,s.multiClickDebounceTime)};this.createEmitter(),this.selectionType(s.selectionType),this.zoomRange({min:s.minZoom,max:s.maxZoom});var v=function(c,y){var p=c.some(nt);if(p)return ia.all(c).then(y);y(c)};l.styleEnabled&&r.setStyle([]);var f=He({},s,s.renderer);r.initRenderer(f);var h=function(c,y,p){r.notifications(!1);var g=r.mutableElements();g.length>0&&g.remove(),c!=null&&(S(c)||te(c))&&r.add(c),r.one("layoutready",function(b){r.notifications(!0),r.emit(b),r.one("load",y),r.emitAndNotify("load")}).one("layoutstop",function(){r.one("done",p),r.emit("done")});var m=He({},r._private.options.layout);m.eles=r.elements(),r.layout(m).run()};v([s.style,s.elements],function(d){var c=d[0],y=d[1];l.styleEnabled&&r.style().append(c),h(y,function(){r.startAnimationLoop(),l.ready=!0,H(s.ready)&&r.on("ready",s.ready);for(var p=0;p<i.length;p++){var g=i[p];r.on("ready",g)}n&&(n.readies=[]),r.emit("ready")},s.done)})},_n=Za.prototype;He(_n,{instanceString:function(){return"core"},isReady:function(){return this._private.ready},destroyed:function(){return this._private.destroyed},ready:function(e){return this.isReady()?this.emitter().emit("ready",[],e):this.on("ready",e),this},destroy:function(){var e=this;if(!e.destroyed())return e.stopAnimationLoop(),e.destroyRenderer(),this.emit("destroy"),e._private.destroyed=!0,e},hasElementWithId:function(e){return this._private.elements.hasElementWithId(e)},getElementById:function(e){return this._private.elements.getElementById(e)},hasCompoundNodes:function(){return this._private.hasCompoundNodes},headless:function(){return this._private.renderer.isHeadless()},styleEnabled:function(){return this._private.styleEnabled},addToPool:function(e){return this._private.elements.merge(e),this},removeFromPool:function(e){return this._private.elements.unmerge(e),this},container:function(){return this._private.container||null},window:function(){var e=this._private.container;if(e==null)return A;var r=this._private.container.ownerDocument;return r===void 0||r==null?A:r.defaultView||A},mount:function(e){if(e!=null){var r=this,a=r._private,n=a.options;return!he(e)&&he(e[0])&&(e=e[0]),r.stopAnimationLoop(),r.destroyRenderer(),a.container=e,a.styleEnabled=!0,r.invalidateSize(),r.initRenderer(He({},n,n.renderer,{name:n.renderer.name==="null"?"canvas":n.renderer.name})),r.startAnimationLoop(),r.style(n.style),r.emit("mount"),r}},unmount:function(){var e=this;return e.stopAnimationLoop(),e.destroyRenderer(),e.initRenderer({name:"null"}),e.emit("unmount"),e},options:function(){return lr(this._private.options)},json:function(e){var r=this,a=r._private,n=r.mutableElements(),i=function(E){return r.getElementById(E.id())};if(S(e)){if(r.startBatch(),e.elements){var o={},s=function(E,M){for(var L=[],w=[],k=0;k<E.length;k++){var D=E[k];if(!D.data.id){ht("cy.json() cannot handle elements without an ID attribute");continue}var F=""+D.data.id,G=r.getElementById(F);o[F]=!0,G.length!==0?w.push({ele:G,json:D}):(M&&(D.group=M),L.push(D))}r.add(L);for(var I=0;I<w.length;I++){var X=w[I],B=X.ele,re=X.json;B.json(re)}};if(te(e.elements))s(e.elements);else for(var u=["nodes","edges"],l=0;l<u.length;l++){var v=u[l],f=e.elements[v];te(f)&&s(f,v)}var h=r.collection();n.filter(function(b){return!o[b.id()]}).forEach(function(b){b.isParent()?h.merge(b):b.remove()}),h.forEach(function(b){return b.children().move({parent:null})}),h.forEach(function(b){return i(b).remove()})}e.style&&r.style(e.style),e.zoom!=null&&e.zoom!==a.zoom&&r.zoom(e.zoom),e.pan&&(e.pan.x!==a.pan.x||e.pan.y!==a.pan.y)&&r.pan(e.pan),e.data&&r.data(e.data);for(var d=["minZoom","maxZoom","zoomingEnabled","userZoomingEnabled","panningEnabled","userPanningEnabled","boxSelectionEnabled","autolock","autoungrabify","autounselectify","multiClickDebounceTime"],c=0;c<d.length;c++){var y=d[c];e[y]!=null&&r[y](e[y])}return r.endBatch(),this}else{var p=!!e,g={};p?g.elements=this.elements().map(function(b){return b.json()}):(g.elements={},n.forEach(function(b){var E=b.group();g.elements[E]||(g.elements[E]=[]),g.elements[E].push(b.json())})),this._private.styleEnabled&&(g.style=r.style().json()),g.data=lr(r.data());var m=a.options;return g.zoomingEnabled=a.zoomingEnabled,g.userZoomingEnabled=a.userZoomingEnabled,g.zoom=a.zoom,g.minZoom=a.minZoom,g.maxZoom=a.maxZoom,g.panningEnabled=a.panningEnabled,g.userPanningEnabled=a.userPanningEnabled,g.pan=lr(a.pan),g.boxSelectionEnabled=a.boxSelectionEnabled,g.renderer=lr(m.renderer),g.hideEdgesOnViewport=m.hideEdgesOnViewport,g.textureOnViewport=m.textureOnViewport,g.wheelSensitivity=m.wheelSensitivity,g.motionBlur=m.motionBlur,g.multiClickDebounceTime=m.multiClickDebounceTime,g}}}),_n.$id=_n.getElementById,[Ad,Rd,Ys,Ii,zn,Pd,Mi,Vn,Gd,$r,Ka].forEach(function(t){He(_n,t)});var Vd={fit:!0,directed:!1,padding:30,circle:!1,grid:!1,spacingFactor:1.75,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,roots:void 0,depthSort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,r){return!0},ready:void 0,stop:void 0,transform:function(e,r){return r}},$d={maximal:!1,acyclic:!1},pa=function(e){return e.scratch("breadthfirst")},Hs=function(e,r){return e.scratch("breadthfirst",r)};function Xs(t){this.options=He({},Vd,$d,t)}Xs.prototype.run=function(){var t=this.options,e=t,r=t.cy,a=e.eles,n=a.nodes().filter(function(Ie){return!Ie.isParent()}),i=a,o=e.directed,s=e.acyclic||e.maximal||e.maximalAdjustments>0,u=Yt(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()}),l;if(pe(e.roots))l=e.roots;else if(te(e.roots)){for(var v=[],f=0;f<e.roots.length;f++){var h=e.roots[f],d=r.getElementById(h);v.push(d)}l=r.collection(v)}else if(ee(e.roots))l=r.$(e.roots);else if(o)l=n.roots();else{var c=a.components();l=r.collection();for(var y=function(Me){var $e=c[Me],ze=$e.maxDegree(!1),Be=$e.filter(function(Ue){return Ue.degree(!1)===ze});l=l.add(Be)},p=0;p<c.length;p++)y(p)}var g=[],m={},b=function(Me,$e){g[$e]==null&&(g[$e]=[]);var ze=g[$e].length;g[$e].push(Me),Hs(Me,{index:ze,depth:$e})},E=function(Me,$e){var ze=pa(Me),Be=ze.depth,Ue=ze.index;g[Be][Ue]=null,b(Me,$e)};i.bfs({roots:l,directed:e.directed,visit:function(Me,$e,ze,Be,Ue){var rt=Me[0],je=rt.id();b(rt,Ue),m[je]=!0}});for(var M=[],L=0;L<n.length;L++){var w=n[L];m[w.id()]||M.push(w)}var k=function(Me){for(var $e=g[Me],ze=0;ze<$e.length;ze++){var Be=$e[ze];if(Be==null){$e.splice(ze,1),ze--;continue}Hs(Be,{depth:Me,index:ze})}},D=function(){for(var Me=0;Me<g.length;Me++)k(Me)},F=function(Me,$e){for(var ze=pa(Me),Be=Me.incomers().filter(function(O){return O.isNode()&&a.has(O)}),Ue=-1,rt=Me.id(),je=0;je<Be.length;je++){var We=Be[je],et=pa(We);Ue=Math.max(Ue,et.depth)}if(ze.depth<=Ue){if(!e.acyclic&&$e[rt])return null;var fe=Ue+1;return E(Me,fe),$e[rt]=fe,!0}return!1};if(o&&s){var G=[],I={},X=function(Me){return G.push(Me)},B=function(){return G.shift()};for(n.forEach(function(Ie){return G.push(Ie)});G.length>0;){var re=B(),K=F(re,I);if(K)re.outgoers().filter(function(Ie){return Ie.isNode()&&a.has(Ie)}).forEach(X);else if(K===null){ht("Detected double maximal shift for node `"+re.id()+"`. Bailing maximal adjustment due to cycle. Use `options.maximal: true` only on DAGs.");break}}}D();var W=0;if(e.avoidOverlap)for(var ae=0;ae<n.length;ae++){var ue=n[ae],me=ue.layoutDimensions(e),ie=me.w,ge=me.h;W=Math.max(W,ie,ge)}var Ee={},Ce=function(Me){if(Ee[Me.id()])return Ee[Me.id()];for(var $e=pa(Me).depth,ze=Me.neighborhood(),Be=0,Ue=0,rt=0;rt<ze.length;rt++){var je=ze[rt];if(!(je.isEdge()||je.isParent()||!n.has(je))){var We=pa(je);if(We!=null){var et=We.index,fe=We.depth;if(!(et==null||fe==null)){var O=g[fe].length;fe<$e&&(Be+=et/O,Ue++)}}}}return Ue=Math.max(1,Ue),Be=Be/Ue,Ue===0&&(Be=0),Ee[Me.id()]=Be,Be},we=function(Me,$e){var ze=Ce(Me),Be=Ce($e),Ue=ze-Be;return Ue===0?eo(Me.id(),$e.id()):Ue};e.depthSort!==void 0&&(we=e.depthSort);for(var De=0;De<g.length;De++)g[De].sort(we),k(De);for(var oe=[],xe=0;xe<M.length;xe++)oe.push(M[xe]);g.unshift(oe),D();for(var Le=0,Se=0;Se<g.length;Se++)Le=Math.max(g[Se].length,Le);var Oe={x:u.x1+u.w/2,y:u.x1+u.h/2},Fe=g.reduce(function(Ie,Me){return Math.max(Ie,Me.length)},0),Xe=function(Me){var $e=pa(Me),ze=$e.depth,Be=$e.index,Ue=g[ze].length,rt=Math.max(u.w/((e.grid?Fe:Ue)+1),W),je=Math.max(u.h/(g.length+1),W),We=Math.min(u.w/2/g.length,u.h/2/g.length);if(We=Math.max(We,W),e.circle){var fe=We*ze+We-(g.length>0&&g[0].length<=3?We/2:0),O=2*Math.PI/g[ze].length*Be;return ze===0&&g[0].length===1&&(fe=1),{x:Oe.x+fe*Math.cos(O),y:Oe.y+fe*Math.sin(O)}}else{var et={x:Oe.x+(Be+1-(Ue+1)/2)*rt,y:(ze+1)*je};return et}};return a.nodes().layoutPositions(this,e,Xe),this};var Ud={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(e,r){return!0},ready:void 0,stop:void 0,transform:function(e,r){return r}};function Ws(t){this.options=He({},Ud,t)}Ws.prototype.run=function(){var t=this.options,e=t,r=t.cy,a=e.eles,n=e.counterclockwise!==void 0?!e.counterclockwise:e.clockwise,i=a.nodes().not(":parent");e.sort&&(i=i.sort(e.sort));for(var o=Yt(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()}),s={x:o.x1+o.w/2,y:o.y1+o.h/2},u=e.sweep===void 0?2*Math.PI-2*Math.PI/i.length:e.sweep,l=u/Math.max(1,i.length-1),v,f=0,h=0;h<i.length;h++){var d=i[h],c=d.layoutDimensions(e),y=c.w,p=c.h;f=Math.max(f,y,p)}if(R(e.radius)?v=e.radius:i.length<=1?v=0:v=Math.min(o.h,o.w)/2-f,i.length>1&&e.avoidOverlap){f*=1.75;var g=Math.cos(l)-Math.cos(0),m=Math.sin(l)-Math.sin(0),b=Math.sqrt(f*f/(g*g+m*m));v=Math.max(b,v)}var E=function(L,w){var k=e.startAngle+w*l*(n?1:-1),D=v*Math.cos(k),F=v*Math.sin(k),G={x:s.x+D,y:s.y+F};return G};return a.nodes().layoutPositions(this,e,E),this};var _d={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(e){return e.degree()},levelWidth:function(e){return e.maxDegree()/4},animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,r){return!0},ready:void 0,stop:void 0,transform:function(e,r){return r}};function qs(t){this.options=He({},_d,t)}qs.prototype.run=function(){for(var t=this.options,e=t,r=e.counterclockwise!==void 0?!e.counterclockwise:e.clockwise,a=t.cy,n=e.eles,i=n.nodes().not(":parent"),o=Yt(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:a.width(),h:a.height()}),s={x:o.x1+o.w/2,y:o.y1+o.h/2},u=[],l=0,v=0;v<i.length;v++){var f=i[v],h=void 0;h=e.concentric(f),u.push({value:h,node:f}),f._private.scratch.concentric=h}i.updateStyle();for(var d=0;d<i.length;d++){var c=i[d],y=c.layoutDimensions(e);l=Math.max(l,y.w,y.h)}u.sort(function(Ie,Me){return Me.value-Ie.value});for(var p=e.levelWidth(i),g=[[]],m=g[0],b=0;b<u.length;b++){var E=u[b];if(m.length>0){var M=Math.abs(m[0].value-E.value);M>=p&&(m=[],g.push(m))}m.push(E)}var L=l+e.minNodeSpacing;if(!e.avoidOverlap){var w=g.length>0&&g[0].length>1,k=Math.min(o.w,o.h)/2-L,D=k/(g.length+w?1:0);L=Math.min(L,D)}for(var F=0,G=0;G<g.length;G++){var I=g[G],X=e.sweep===void 0?2*Math.PI-2*Math.PI/I.length:e.sweep,B=I.dTheta=X/Math.max(1,I.length-1);if(I.length>1&&e.avoidOverlap){var re=Math.cos(B)-Math.cos(0),K=Math.sin(B)-Math.sin(0),W=Math.sqrt(L*L/(re*re+K*K));F=Math.max(W,F)}I.r=F,F+=L}if(e.equidistant){for(var ae=0,ue=0,me=0;me<g.length;me++){var ie=g[me],ge=ie.r-ue;ae=Math.max(ae,ge)}ue=0;for(var Ee=0;Ee<g.length;Ee++){var Ce=g[Ee];Ee===0&&(ue=Ce.r),Ce.r=ue,ue+=ae}}for(var we={},De=0;De<g.length;De++)for(var oe=g[De],xe=oe.dTheta,Le=oe.r,Se=0;Se<oe.length;Se++){var Oe=oe[Se],Fe=e.startAngle+(r?1:-1)*xe*Se,Xe={x:s.x+Le*Math.cos(Fe),y:s.y+Le*Math.sin(Fe)};we[Oe.node.id()]=Xe}return n.nodes().layoutPositions(this,e,function(Ie){var Me=Ie.id();return we[Me]}),this};var Pi,Yd={ready:function(){},stop:function(){},animate:!0,animationEasing:void 0,animationDuration:void 0,animateFilter:function(e,r){return!0},animationThreshold:250,refresh:20,fit:!0,padding:30,boundingBox:void 0,nodeDimensionsIncludeLabels:!1,randomize:!1,componentSpacing:40,nodeRepulsion:function(e){return 2048},nodeOverlap:4,idealEdgeLength:function(e){return 32},edgeElasticity:function(e){return 32},nestingFactor:1.2,gravity:1,numIter:1e3,initialTemp:1e3,coolingFactor:.99,minTemp:1};function Yn(t){this.options=He({},Yd,t),this.options.layout=this;var e=this.options.eles.nodes(),r=this.options.eles.edges(),a=r.filter(function(n){var i=n.source().data("id"),o=n.target().data("id"),s=e.some(function(l){return l.data("id")===i}),u=e.some(function(l){return l.data("id")===o});return!s||!u});this.options.eles=this.options.eles.not(a)}Yn.prototype.run=function(){var t=this.options,e=t.cy,r=this;r.stopped=!1,(t.animate===!0||t.animate===!1)&&r.emit({type:"layoutstart",layout:r}),t.debug===!0?Pi=!0:Pi=!1;var a=Hd(e,r,t);Pi&&qd(a),t.randomize&&Kd(a);var n=gr(),i=function(){Zd(a,e,t),t.fit===!0&&e.fit(t.padding)},o=function(h){return!(r.stopped||h>=t.numIter||(Qd(a,t),a.temperature=a.temperature*t.coolingFactor,a.temperature<t.minTemp))},s=function(){if(t.animate===!0||t.animate===!1)i(),r.one("layoutstop",t.stop),r.emit({type:"layoutstop",layout:r});else{var h=t.eles.nodes(),d=Ks(a,t,h);h.layoutPositions(r,t,d)}},u=0,l=!0;if(t.animate===!0){var v=function f(){for(var h=0;l&&h<t.refresh;)l=o(u),u++,h++;if(!l)Qs(a,t),s();else{var d=gr();d-n>=t.animationThreshold&&i(),ln(f)}};v()}else{for(;l;)l=o(u),u++;Qs(a,t),s()}return this},Yn.prototype.stop=function(){return this.stopped=!0,this.thread&&this.thread.stop(),this.emit("layoutstop"),this},Yn.prototype.destroy=function(){return this.thread&&this.thread.stop(),this};var Hd=function(e,r,a){for(var n=a.eles.edges(),i=a.eles.nodes(),o=Yt(a.boundingBox?a.boundingBox:{x1:0,y1:0,w:e.width(),h:e.height()}),s={isCompound:e.hasCompoundNodes(),layoutNodes:[],idToIndex:{},nodeSize:i.size(),graphSet:[],indexToGraph:[],layoutEdges:[],edgeSize:n.size(),temperature:a.initialTemp,clientWidth:o.w,clientHeight:o.h,boundingBox:o},u=a.eles.components(),l={},v=0;v<u.length;v++)for(var f=u[v],h=0;h<f.length;h++){var d=f[h];l[d.id()]=v}for(var v=0;v<s.nodeSize;v++){var c=i[v],y=c.layoutDimensions(a),p={};p.isLocked=c.locked(),p.id=c.data("id"),p.parentId=c.data("parent"),p.cmptId=l[c.id()],p.children=[],p.positionX=c.position("x"),p.positionY=c.position("y"),p.offsetX=0,p.offsetY=0,p.height=y.w,p.width=y.h,p.maxX=p.positionX+p.width/2,p.minX=p.positionX-p.width/2,p.maxY=p.positionY+p.height/2,p.minY=p.positionY-p.height/2,p.padLeft=parseFloat(c.style("padding")),p.padRight=parseFloat(c.style("padding")),p.padTop=parseFloat(c.style("padding")),p.padBottom=parseFloat(c.style("padding")),p.nodeRepulsion=H(a.nodeRepulsion)?a.nodeRepulsion(c):a.nodeRepulsion,s.layoutNodes.push(p),s.idToIndex[p.id]=v}for(var g=[],m=0,b=-1,E=[],v=0;v<s.nodeSize;v++){var c=s.layoutNodes[v],M=c.parentId;M!=null?s.layoutNodes[s.idToIndex[M]].children.push(c.id):(g[++b]=c.id,E.push(c.id))}for(s.graphSet.push(E);m<=b;){var L=g[m++],w=s.idToIndex[L],d=s.layoutNodes[w],k=d.children;if(k.length>0){s.graphSet.push(k);for(var v=0;v<k.length;v++)g[++b]=k[v]}}for(var v=0;v<s.graphSet.length;v++)for(var D=s.graphSet[v],h=0;h<D.length;h++){var F=s.idToIndex[D[h]];s.indexToGraph[F]=v}for(var v=0;v<s.edgeSize;v++){var G=n[v],I={};I.id=G.data("id"),I.sourceId=G.data("source"),I.targetId=G.data("target");var X=H(a.idealEdgeLength)?a.idealEdgeLength(G):a.idealEdgeLength,B=H(a.edgeElasticity)?a.edgeElasticity(G):a.edgeElasticity,re=s.idToIndex[I.sourceId],K=s.idToIndex[I.targetId],W=s.indexToGraph[re],ae=s.indexToGraph[K];if(W!=ae){for(var ue=Xd(I.sourceId,I.targetId,s),me=s.graphSet[ue],ie=0,p=s.layoutNodes[re];me.indexOf(p.id)===-1;)p=s.layoutNodes[s.idToIndex[p.parentId]],ie++;for(p=s.layoutNodes[K];me.indexOf(p.id)===-1;)p=s.layoutNodes[s.idToIndex[p.parentId]],ie++;X*=ie*a.nestingFactor}I.idealLength=X,I.elasticity=B,s.layoutEdges.push(I)}return s},Xd=function(e,r,a){var n=Wd(e,r,0,a);return 2>n.count?0:n.graph},Wd=function t(e,r,a,n){var i=n.graphSet[a];if(-1<i.indexOf(e)&&-1<i.indexOf(r))return{count:2,graph:a};for(var o=0,s=0;s<i.length;s++){var u=i[s],l=n.idToIndex[u],v=n.layoutNodes[l].children;if(v.length!==0){var f=n.indexToGraph[n.idToIndex[v[0]]],h=t(e,r,f,n);if(h.count!==0)if(h.count===1){if(o++,o===2)break}else return h}}return{count:o,graph:a}},qd,Kd=function(e,r){for(var a=e.clientWidth,n=e.clientHeight,i=0;i<e.nodeSize;i++){var o=e.layoutNodes[i];o.children.length===0&&!o.isLocked&&(o.positionX=Math.random()*a,o.positionY=Math.random()*n)}},Ks=function(e,r,a){var n=e.boundingBox,i={x1:1/0,x2:-1/0,y1:1/0,y2:-1/0};return r.boundingBox&&(a.forEach(function(o){var s=e.layoutNodes[e.idToIndex[o.data("id")]];i.x1=Math.min(i.x1,s.positionX),i.x2=Math.max(i.x2,s.positionX),i.y1=Math.min(i.y1,s.positionY),i.y2=Math.max(i.y2,s.positionY)}),i.w=i.x2-i.x1,i.h=i.y2-i.y1),function(o,s){var u=e.layoutNodes[e.idToIndex[o.data("id")]];if(r.boundingBox){var l=(u.positionX-i.x1)/i.w,v=(u.positionY-i.y1)/i.h;return{x:n.x1+l*n.w,y:n.y1+v*n.h}}else return{x:u.positionX,y:u.positionY}}},Zd=function(e,r,a){var n=a.layout,i=a.eles.nodes(),o=Ks(e,a,i);i.positions(o),e.ready!==!0&&(e.ready=!0,n.one("layoutready",a.ready),n.emit({type:"layoutready",layout:this}))},Qd=function(e,r,a){Jd(e,r),tg(e),rg(e,r),ag(e),ng(e)},Jd=function(e,r){for(var a=0;a<e.graphSet.length;a++)for(var n=e.graphSet[a],i=n.length,o=0;o<i;o++)for(var s=e.layoutNodes[e.idToIndex[n[o]]],u=o+1;u<i;u++){var l=e.layoutNodes[e.idToIndex[n[u]]];jd(s,l,e,r)}},Zs=function(e){return-e+2*e*Math.random()},jd=function(e,r,a,n){var i=e.cmptId,o=r.cmptId;if(!(i!==o&&!a.isCompound)){var s=r.positionX-e.positionX,u=r.positionY-e.positionY,l=1;s===0&&u===0&&(s=Zs(l),u=Zs(l));var v=eg(e,r,s,u);if(v>0)var f=n.nodeOverlap*v,h=Math.sqrt(s*s+u*u),d=f*s/h,c=f*u/h;else var y=Hn(e,s,u),p=Hn(r,-1*s,-1*u),g=p.x-y.x,m=p.y-y.y,b=g*g+m*m,h=Math.sqrt(b),f=(e.nodeRepulsion+r.nodeRepulsion)/b,d=f*g/h,c=f*m/h;e.isLocked||(e.offsetX-=d,e.offsetY-=c),r.isLocked||(r.offsetX+=d,r.offsetY+=c)}},eg=function(e,r,a,n){if(a>0)var i=e.maxX-r.minX;else var i=r.maxX-e.minX;if(n>0)var o=e.maxY-r.minY;else var o=r.maxY-e.minY;return i>=0&&o>=0?Math.sqrt(i*i+o*o):0},Hn=function(e,r,a){var n=e.positionX,i=e.positionY,o=e.height||1,s=e.width||1,u=a/r,l=o/s,v={};return r===0&&0<a||r===0&&0>a?(v.x=n,v.y=i+o/2,v):0<r&&-1*l<=u&&u<=l?(v.x=n+s/2,v.y=i+s*a/2/r,v):0>r&&-1*l<=u&&u<=l?(v.x=n-s/2,v.y=i-s*a/2/r,v):0<a&&(u<=-1*l||u>=l)?(v.x=n+o*r/2/a,v.y=i+o/2,v):(0>a&&(u<=-1*l||u>=l)&&(v.x=n-o*r/2/a,v.y=i-o/2),v)},tg=function(e,r){for(var a=0;a<e.edgeSize;a++){var n=e.layoutEdges[a],i=e.idToIndex[n.sourceId],o=e.layoutNodes[i],s=e.idToIndex[n.targetId],u=e.layoutNodes[s],l=u.positionX-o.positionX,v=u.positionY-o.positionY;if(!(l===0&&v===0)){var f=Hn(o,l,v),h=Hn(u,-1*l,-1*v),d=h.x-f.x,c=h.y-f.y,y=Math.sqrt(d*d+c*c),p=Math.pow(n.idealLength-y,2)/n.elasticity;if(y!==0)var g=p*d/y,m=p*c/y;else var g=0,m=0;o.isLocked||(o.offsetX+=g,o.offsetY+=m),u.isLocked||(u.offsetX-=g,u.offsetY-=m)}}},rg=function(e,r){if(r.gravity!==0)for(var a=1,n=0;n<e.graphSet.length;n++){var i=e.graphSet[n],o=i.length;if(n===0)var s=e.clientHeight/2,u=e.clientWidth/2;else var l=e.layoutNodes[e.idToIndex[i[0]]],v=e.layoutNodes[e.idToIndex[l.parentId]],s=v.positionX,u=v.positionY;for(var f=0;f<o;f++){var h=e.layoutNodes[e.idToIndex[i[f]]];if(!h.isLocked){var d=s-h.positionX,c=u-h.positionY,y=Math.sqrt(d*d+c*c);if(y>a){var p=r.gravity*d/y,g=r.gravity*c/y;h.offsetX+=p,h.offsetY+=g}}}}},ag=function(e,r){var a=[],n=0,i=-1;for(a.push.apply(a,e.graphSet[0]),i+=e.graphSet[0].length;n<=i;){var o=a[n++],s=e.idToIndex[o],u=e.layoutNodes[s],l=u.children;if(0<l.length&&!u.isLocked){for(var v=u.offsetX,f=u.offsetY,h=0;h<l.length;h++){var d=e.layoutNodes[e.idToIndex[l[h]]];d.offsetX+=v,d.offsetY+=f,a[++i]=l[h]}u.offsetX=0,u.offsetY=0}}},ng=function(e,r){for(var a=0;a<e.nodeSize;a++){var n=e.layoutNodes[a];0<n.children.length&&(n.maxX=void 0,n.minX=void 0,n.maxY=void 0,n.minY=void 0)}for(var a=0;a<e.nodeSize;a++){var n=e.layoutNodes[a];if(!(0<n.children.length||n.isLocked)){var i=ig(n.offsetX,n.offsetY,e.temperature);n.positionX+=i.x,n.positionY+=i.y,n.offsetX=0,n.offsetY=0,n.minX=n.positionX-n.width,n.maxX=n.positionX+n.width,n.minY=n.positionY-n.height,n.maxY=n.positionY+n.height,og(n,e)}}for(var a=0;a<e.nodeSize;a++){var n=e.layoutNodes[a];0<n.children.length&&!n.isLocked&&(n.positionX=(n.maxX+n.minX)/2,n.positionY=(n.maxY+n.minY)/2,n.width=n.maxX-n.minX,n.height=n.maxY-n.minY)}},ig=function(e,r,a){var n=Math.sqrt(e*e+r*r);if(n>a)var i={x:a*e/n,y:a*r/n};else var i={x:e,y:r};return i},og=function t(e,r){var a=e.parentId;if(a!=null){var n=r.layoutNodes[r.idToIndex[a]],i=!1;if((n.maxX==null||e.maxX+n.padRight>n.maxX)&&(n.maxX=e.maxX+n.padRight,i=!0),(n.minX==null||e.minX-n.padLeft<n.minX)&&(n.minX=e.minX-n.padLeft,i=!0),(n.maxY==null||e.maxY+n.padBottom>n.maxY)&&(n.maxY=e.maxY+n.padBottom,i=!0),(n.minY==null||e.minY-n.padTop<n.minY)&&(n.minY=e.minY-n.padTop,i=!0),i)return t(n,r)}},Qs=function(e,r){for(var a=e.layoutNodes,n=[],i=0;i<a.length;i++){var o=a[i],s=o.cmptId,u=n[s]=n[s]||[];u.push(o)}for(var l=0,i=0;i<n.length;i++){var v=n[i];if(v){v.x1=1/0,v.x2=-1/0,v.y1=1/0,v.y2=-1/0;for(var f=0;f<v.length;f++){var h=v[f];v.x1=Math.min(v.x1,h.positionX-h.width/2),v.x2=Math.max(v.x2,h.positionX+h.width/2),v.y1=Math.min(v.y1,h.positionY-h.height/2),v.y2=Math.max(v.y2,h.positionY+h.height/2)}v.w=v.x2-v.x1,v.h=v.y2-v.y1,l+=v.w*v.h}}n.sort(function(m,b){return b.w*b.h-m.w*m.h});for(var d=0,c=0,y=0,p=0,g=Math.sqrt(l)*e.clientWidth/e.clientHeight,i=0;i<n.length;i++){var v=n[i];if(v){for(var f=0;f<v.length;f++){var h=v[f];h.isLocked||(h.positionX+=d-v.x1,h.positionY+=c-v.y1)}d+=v.w+r.componentSpacing,y+=v.w+r.componentSpacing,p=Math.max(p,v.h),y>g&&(c+=p+r.componentSpacing,d=0,y=0,p=0)}}},sg={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(e){},sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,r){return!0},ready:void 0,stop:void 0,transform:function(e,r){return r}};function Js(t){this.options=He({},sg,t)}Js.prototype.run=function(){var t=this.options,e=t,r=t.cy,a=e.eles,n=a.nodes().not(":parent");e.sort&&(n=n.sort(e.sort));var i=Yt(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()});if(i.h===0||i.w===0)a.nodes().layoutPositions(this,e,function(Ee){return{x:i.x1,y:i.y1}});else{var o=n.size(),s=Math.sqrt(o*i.h/i.w),u=Math.round(s),l=Math.round(i.w/i.h*s),v=function(Ce){if(Ce==null)return Math.min(u,l);var we=Math.min(u,l);we==u?u=Ce:l=Ce},f=function(Ce){if(Ce==null)return Math.max(u,l);var we=Math.max(u,l);we==u?u=Ce:l=Ce},h=e.rows,d=e.cols!=null?e.cols:e.columns;if(h!=null&&d!=null)u=h,l=d;else if(h!=null&&d==null)u=h,l=Math.ceil(o/u);else if(h==null&&d!=null)l=d,u=Math.ceil(o/l);else if(l*u>o){var c=v(),y=f();(c-1)*y>=o?v(c-1):(y-1)*c>=o&&f(y-1)}else for(;l*u<o;){var p=v(),g=f();(g+1)*p>=o?f(g+1):v(p+1)}var m=i.w/l,b=i.h/u;if(e.condense&&(m=0,b=0),e.avoidOverlap)for(var E=0;E<n.length;E++){var M=n[E],L=M._private.position;(L.x==null||L.y==null)&&(L.x=0,L.y=0);var w=M.layoutDimensions(e),k=e.avoidOverlapPadding,D=w.w+k,F=w.h+k;m=Math.max(m,D),b=Math.max(b,F)}for(var G={},I=function(Ce,we){return!!G["c-"+Ce+"-"+we]},X=function(Ce,we){G["c-"+Ce+"-"+we]=!0},B=0,re=0,K=function(){re++,re>=l&&(re=0,B++)},W={},ae=0;ae<n.length;ae++){var ue=n[ae],me=e.position(ue);if(me&&(me.row!==void 0||me.col!==void 0)){var ie={row:me.row,col:me.col};if(ie.col===void 0)for(ie.col=0;I(ie.row,ie.col);)ie.col++;else if(ie.row===void 0)for(ie.row=0;I(ie.row,ie.col);)ie.row++;W[ue.id()]=ie,X(ie.row,ie.col)}}var ge=function(Ce,we){var De,oe;if(Ce.locked()||Ce.isParent())return!1;var xe=W[Ce.id()];if(xe)De=xe.col*m+m/2+i.x1,oe=xe.row*b+b/2+i.y1;else{for(;I(B,re);)K();De=re*m+m/2+i.x1,oe=B*b+b/2+i.y1,X(B,re),K()}return{x:De,y:oe}};n.layoutPositions(this,e,ge)}return this};var lg={ready:function(){},stop:function(){}};function Bi(t){this.options=He({},lg,t)}Bi.prototype.run=function(){var t=this.options,e=t.eles,r=this;return t.cy,r.emit("layoutstart"),e.nodes().positions(function(){return{x:0,y:0}}),r.one("layoutready",t.ready),r.emit("layoutready"),r.one("layoutstop",t.stop),r.emit("layoutstop"),this},Bi.prototype.stop=function(){return this};var ug={positions:void 0,zoom:void 0,pan:void 0,fit:!0,padding:30,spacingFactor:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,r){return!0},ready:void 0,stop:void 0,transform:function(e,r){return r}};function js(t){this.options=He({},ug,t)}js.prototype.run=function(){var t=this.options,e=t.eles,r=e.nodes(),a=H(t.positions);function n(i){if(t.positions==null)return hv(i.position());if(a)return t.positions(i);var o=t.positions[i._private.data.id];return o??null}return r.layoutPositions(this,t,function(i,o){var s=n(i);return i.locked()||s==null?!1:s}),this};var vg={fit:!0,padding:30,boundingBox:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,r){return!0},ready:void 0,stop:void 0,transform:function(e,r){return r}};function el(t){this.options=He({},vg,t)}el.prototype.run=function(){var t=this.options,e=t.cy,r=t.eles,a=Yt(t.boundingBox?t.boundingBox:{x1:0,y1:0,w:e.width(),h:e.height()}),n=function(o,s){return{x:a.x1+Math.round(Math.random()*a.w),y:a.y1+Math.round(Math.random()*a.h)}};return r.nodes().layoutPositions(this,t,n),this};var fg=[{name:"breadthfirst",impl:Xs},{name:"circle",impl:Ws},{name:"concentric",impl:qs},{name:"cose",impl:Yn},{name:"grid",impl:Js},{name:"null",impl:Bi},{name:"preset",impl:js},{name:"random",impl:el}];function tl(t){this.options=t,this.notifications=0}var rl=function(){},al=function(){throw new Error("A headless instance can not render images")};tl.prototype={recalculateRenderedStyle:rl,notify:function(){this.notifications++},init:rl,isHeadless:function(){return!0},png:al,jpg:al};var Fi={};Fi.arrowShapeWidth=.3,Fi.registerArrowShapes=function(){var t=this.arrowShapes={},e=this,r=function(l,v,f,h,d,c,y){var p=d.x-f/2-y,g=d.x+f/2+y,m=d.y-f/2-y,b=d.y+f/2+y,E=p<=l&&l<=g&&m<=v&&v<=b;return E},a=function(l,v,f,h,d){var c=l*Math.cos(h)-v*Math.sin(h),y=l*Math.sin(h)+v*Math.cos(h),p=c*f,g=y*f,m=p+d.x,b=g+d.y;return{x:m,y:b}},n=function(l,v,f,h){for(var d=[],c=0;c<l.length;c+=2){var y=l[c],p=l[c+1];d.push(a(y,p,v,f,h))}return d},i=function(l){for(var v=[],f=0;f<l.length;f++){var h=l[f];v.push(h.x,h.y)}return v},o=function(l){return l.pstyle("width").pfValue*l.pstyle("arrow-scale").pfValue*2},s=function(l,v){ee(v)&&(v=t[v]),t[l]=He({name:l,points:[-.15,-.3,.15,-.3,.15,.3,-.15,.3],collide:function(h,d,c,y,p,g){var m=i(n(this.points,c+2*g,y,p)),b=Ht(h,d,m);return b},roughCollide:r,draw:function(h,d,c,y){var p=n(this.points,d,c,y);e.arrowShapeImpl("polygon")(h,p)},spacing:function(h){return 0},gap:o},v)};s("none",{collide:vn,roughCollide:vn,draw:oi,spacing:go,gap:go}),s("triangle",{points:[-.15,-.3,0,0,.15,-.3]}),s("arrow","triangle"),s("triangle-backcurve",{points:t.triangle.points,controlPoint:[0,-.15],roughCollide:r,draw:function(l,v,f,h,d){var c=n(this.points,v,f,h),y=this.controlPoint,p=a(y[0],y[1],v,f,h);e.arrowShapeImpl(this.name)(l,c,p)},gap:function(l){return o(l)*.8}}),s("triangle-tee",{points:[0,0,.15,-.3,-.15,-.3,0,0],pointsTee:[-.15,-.4,-.15,-.5,.15,-.5,.15,-.4],collide:function(l,v,f,h,d,c,y){var p=i(n(this.points,f+2*y,h,d)),g=i(n(this.pointsTee,f+2*y,h,d)),m=Ht(l,v,p)||Ht(l,v,g);return m},draw:function(l,v,f,h,d){var c=n(this.points,v,f,h),y=n(this.pointsTee,v,f,h);e.arrowShapeImpl(this.name)(l,c,y)}}),s("circle-triangle",{radius:.15,pointsTr:[0,-.15,.15,-.45,-.15,-.45,0,-.15],collide:function(l,v,f,h,d,c,y){var p=d,g=Math.pow(p.x-l,2)+Math.pow(p.y-v,2)<=Math.pow((f+2*y)*this.radius,2),m=i(n(this.points,f+2*y,h,d));return Ht(l,v,m)||g},draw:function(l,v,f,h,d){var c=n(this.pointsTr,v,f,h);e.arrowShapeImpl(this.name)(l,c,h.x,h.y,this.radius*v)},spacing:function(l){return e.getArrowWidth(l.pstyle("width").pfValue,l.pstyle("arrow-scale").value)*this.radius}}),s("triangle-cross",{points:[0,0,.15,-.3,-.15,-.3,0,0],baseCrossLinePts:[-.15,-.4,-.15,-.4,.15,-.4,.15,-.4],crossLinePts:function(l,v){var f=this.baseCrossLinePts.slice(),h=v/l,d=3,c=5;return f[d]=f[d]-h,f[c]=f[c]-h,f},collide:function(l,v,f,h,d,c,y){var p=i(n(this.points,f+2*y,h,d)),g=i(n(this.crossLinePts(f,c),f+2*y,h,d)),m=Ht(l,v,p)||Ht(l,v,g);return m},draw:function(l,v,f,h,d){var c=n(this.points,v,f,h),y=n(this.crossLinePts(v,d),v,f,h);e.arrowShapeImpl(this.name)(l,c,y)}}),s("vee",{points:[-.15,-.3,0,0,.15,-.3,0,-.15],gap:function(l){return o(l)*.525}}),s("circle",{radius:.15,collide:function(l,v,f,h,d,c,y){var p=d,g=Math.pow(p.x-l,2)+Math.pow(p.y-v,2)<=Math.pow((f+2*y)*this.radius,2);return g},draw:function(l,v,f,h,d){e.arrowShapeImpl(this.name)(l,h.x,h.y,this.radius*v)},spacing:function(l){return e.getArrowWidth(l.pstyle("width").pfValue,l.pstyle("arrow-scale").value)*this.radius}}),s("tee",{points:[-.15,0,-.15,-.1,.15,-.1,.15,0],spacing:function(l){return 1},gap:function(l){return 1}}),s("square",{points:[-.15,0,.15,0,.15,-.3,-.15,-.3]}),s("diamond",{points:[-.15,-.15,0,-.3,.15,-.15,0,0],gap:function(l){return l.pstyle("width").pfValue*l.pstyle("arrow-scale").value}}),s("chevron",{points:[0,0,-.15,-.15,-.1,-.2,0,-.1,.1,-.2,.15,-.15],gap:function(l){return .95*l.pstyle("width").pfValue*l.pstyle("arrow-scale").value}})};var Ur={};Ur.projectIntoViewport=function(t,e){var r=this.cy,a=this.findContainerClientCoords(),n=a[0],i=a[1],o=a[4],s=r.pan(),u=r.zoom(),l=((t-n)/o-s.x)/u,v=((e-i)/o-s.y)/u;return[l,v]},Ur.findContainerClientCoords=function(){if(this.containerBB)return this.containerBB;var t=this.container,e=t.getBoundingClientRect(),r=this.cy.window().getComputedStyle(t),a=function(g){return parseFloat(r.getPropertyValue(g))},n={left:a("padding-left"),right:a("padding-right"),top:a("padding-top"),bottom:a("padding-bottom")},i={left:a("border-left-width"),right:a("border-right-width"),top:a("border-top-width"),bottom:a("border-bottom-width")},o=t.clientWidth,s=t.clientHeight,u=n.left+n.right,l=n.top+n.bottom,v=i.left+i.right,f=e.width/(o+v),h=o-u,d=s-l,c=e.left+n.left+i.left,y=e.top+n.top+i.top;return this.containerBB=[c,y,h,d,f]},Ur.invalidateContainerClientCoordsCache=function(){this.containerBB=null},Ur.findNearestElement=function(t,e,r,a){return this.findNearestElements(t,e,r,a)[0]},Ur.findNearestElements=function(t,e,r,a){var n=this,i=this,o=i.getCachedZSortedEles(),s=[],u=i.cy.zoom(),l=i.cy.hasCompoundNodes(),v=(a?24:8)/u,f=(a?8:2)/u,h=(a?8:2)/u,d=1/0,c,y;r&&(o=o.interactive);function p(w,k){if(w.isNode()){if(y)return;y=w,s.push(w)}if(w.isEdge()&&(k==null||k<d))if(c){if(c.pstyle("z-compound-depth").value===w.pstyle("z-compound-depth").value&&c.pstyle("z-compound-depth").value===w.pstyle("z-compound-depth").value){for(var D=0;D<s.length;D++)if(s[D].isEdge()){s[D]=w,c=w,d=k??d;break}}}else s.push(w),c=w,d=k??d}function g(w){var k=w.outerWidth()+2*f,D=w.outerHeight()+2*f,F=k/2,G=D/2,I=w.position();if(I.x-F<=t&&t<=I.x+F&&I.y-G<=e&&e<=I.y+G){var X=i.nodeShapes[n.getNodeShape(w)];if(X.checkPoint(t,e,0,k,D,I.x,I.y))return p(w,0),!0}}function m(w){var k=w._private,D=k.rscratch,F=w.pstyle("width").pfValue,G=w.pstyle("arrow-scale").value,I=F/2+v,X=I*I,B=I*2,ae=k.source,ue=k.target,re;if(D.edgeType==="segments"||D.edgeType==="straight"||D.edgeType==="haystack"){for(var K=D.allpts,W=0;W+3<K.length;W+=2)if(Dv(t,e,K[W],K[W+1],K[W+2],K[W+3],B)&&X>(re=Nv(t,e,K[W],K[W+1],K[W+2],K[W+3])))return p(w,re),!0}else if(D.edgeType==="bezier"||D.edgeType==="multibezier"||D.edgeType==="self"||D.edgeType==="compound"){for(var K=D.allpts,W=0;W+5<D.allpts.length;W+=4)if(Sv(t,e,K[W],K[W+1],K[W+2],K[W+3],K[W+4],K[W+5],B)&&X>(re=Ov(t,e,K[W],K[W+1],K[W+2],K[W+3],K[W+4],K[W+5])))return p(w,re),!0}for(var ae=ae||k.source,ue=ue||k.target,me=n.getArrowWidth(F,G),ie=[{name:"source",x:D.arrowStartX,y:D.arrowStartY,angle:D.srcArrowAngle},{name:"target",x:D.arrowEndX,y:D.arrowEndY,angle:D.tgtArrowAngle},{name:"mid-source",x:D.midX,y:D.midY,angle:D.midsrcArrowAngle},{name:"mid-target",x:D.midX,y:D.midY,angle:D.midtgtArrowAngle}],W=0;W<ie.length;W++){var ge=ie[W],Ee=i.arrowShapes[w.pstyle(ge.name+"-arrow-shape").value],Ce=w.pstyle("width").pfValue;if(Ee.roughCollide(t,e,me,ge.angle,{x:ge.x,y:ge.y},Ce,v)&&Ee.collide(t,e,me,ge.angle,{x:ge.x,y:ge.y},Ce,v))return p(w),!0}l&&s.length>0&&(g(ae),g(ue))}function b(w,k,D){return er(w,k,D)}function E(w,k){var D=w._private,F=h,G;k?G=k+"-":G="",w.boundingBox();var I=D.labelBounds[k||"main"],X=w.pstyle(G+"label").value,B=w.pstyle("text-events").strValue==="yes";if(!(!B||!X)){var re=b(D.rscratch,"labelX",k),K=b(D.rscratch,"labelY",k),W=b(D.rscratch,"labelAngle",k),ae=w.pstyle(G+"text-margin-x").pfValue,ue=w.pstyle(G+"text-margin-y").pfValue,me=I.x1-F-ae,ie=I.x2+F-ae,ge=I.y1-F-ue,Ee=I.y2+F-ue;if(W){var Ce=Math.cos(W),we=Math.sin(W),De=function(Xe,Ie){return Xe=Xe-re,Ie=Ie-K,{x:Xe*Ce-Ie*we+re,y:Xe*we+Ie*Ce+K}},oe=De(me,ge),xe=De(me,Ee),Le=De(ie,ge),Se=De(ie,Ee),Oe=[oe.x+ae,oe.y+ue,Le.x+ae,Le.y+ue,Se.x+ae,Se.y+ue,xe.x+ae,xe.y+ue];if(Ht(t,e,Oe))return p(w),!0}else if(ta(I,t,e))return p(w),!0}}for(var M=o.length-1;M>=0;M--){var L=o[M];L.isNode()?g(L)||E(L):m(L)||E(L)||E(L,"source")||E(L,"target")}return s},Ur.getAllInBox=function(t,e,r,a){var n=this.getCachedZSortedEles().interactive,i=[],o=Math.min(t,r),s=Math.max(t,r),u=Math.min(e,a),l=Math.max(e,a);t=o,r=s,e=u,a=l;for(var v=Yt({x1:t,y1:e,x2:r,y2:a}),f=0;f<n.length;f++){var h=n[f];if(h.isNode()){var d=h,c=d.boundingBox({includeNodes:!0,includeEdges:!1,includeLabels:!1});vi(v,c)&&!Co(c,v)&&i.push(d)}else{var y=h,p=y._private,g=p.rscratch;if(g.startX!=null&&g.startY!=null&&!ta(v,g.startX,g.startY)||g.endX!=null&&g.endY!=null&&!ta(v,g.endX,g.endY))continue;if(g.edgeType==="bezier"||g.edgeType==="multibezier"||g.edgeType==="self"||g.edgeType==="compound"||g.edgeType==="segments"||g.edgeType==="haystack"){for(var m=p.rstyle.bezierPts||p.rstyle.linePts||p.rstyle.haystackPts,b=!0,E=0;E<m.length;E++)if(!Cv(v,m[E])){b=!1;break}b&&i.push(y)}else(g.edgeType==="haystack"||g.edgeType==="straight")&&i.push(y)}}return i};var Xn={};Xn.calculateArrowAngles=function(t){var e=t._private.rscratch,r=e.edgeType==="haystack",a=e.edgeType==="bezier",n=e.edgeType==="multibezier",i=e.edgeType==="segments",o=e.edgeType==="compound",s=e.edgeType==="self",u,l,v,f,h,d,g,m;if(r?(v=e.haystackPts[0],f=e.haystackPts[1],h=e.haystackPts[2],d=e.haystackPts[3]):(v=e.arrowStartX,f=e.arrowStartY,h=e.arrowEndX,d=e.arrowEndY),g=e.midX,m=e.midY,i)u=v-e.segpts[0],l=f-e.segpts[1];else if(n||o||s||a){var c=e.allpts,y=Lt(c[0],c[2],c[4],.1),p=Lt(c[1],c[3],c[5],.1);u=v-y,l=f-p}else u=v-g,l=f-m;e.srcArrowAngle=cn(u,l);var g=e.midX,m=e.midY;if(r&&(g=(v+h)/2,m=(f+d)/2),u=h-v,l=d-f,i){var c=e.allpts;if(c.length/2%2===0){var b=c.length/2,E=b-2;u=c[b]-c[E],l=c[b+1]-c[E+1]}else{var b=c.length/2-1,E=b-2,M=b+2;u=c[b]-c[E],l=c[b+1]-c[E+1]}}else if(n||o||s){var c=e.allpts,L=e.ctrlpts,w,k,D,F;if(L.length/2%2===0){var G=c.length/2-1,I=G+2,X=I+2;w=Lt(c[G],c[I],c[X],0),k=Lt(c[G+1],c[I+1],c[X+1],0),D=Lt(c[G],c[I],c[X],1e-4),F=Lt(c[G+1],c[I+1],c[X+1],1e-4)}else{var I=c.length/2-1,G=I-2,X=I+2;w=Lt(c[G],c[I],c[X],.4999),k=Lt(c[G+1],c[I+1],c[X+1],.4999),D=Lt(c[G],c[I],c[X],.5),F=Lt(c[G+1],c[I+1],c[X+1],.5)}u=D-w,l=F-k}if(e.midtgtArrowAngle=cn(u,l),e.midDispX=u,e.midDispY=l,u*=-1,l*=-1,i){var c=e.allpts;if(c.length/2%2!==0){var b=c.length/2-1,M=b+2;u=-(c[M]-c[b]),l=-(c[M+1]-c[b+1])}}if(e.midsrcArrowAngle=cn(u,l),i)u=h-e.segpts[e.segpts.length-2],l=d-e.segpts[e.segpts.length-1];else if(n||o||s||a){var c=e.allpts,B=c.length,y=Lt(c[B-6],c[B-4],c[B-2],.9),p=Lt(c[B-5],c[B-3],c[B-1],.9);u=h-y,l=d-p}else u=h-g,l=d-m;e.tgtArrowAngle=cn(u,l)},Xn.getArrowWidth=Xn.getArrowHeight=function(t,e){var r=this.arrowWidthCache=this.arrowWidthCache||{},a=r[t+", "+e];return a||(a=Math.max(Math.pow(t*13.37,.9),29)*e,r[t+", "+e]=a,a)};var Vt={};Vt.findMidptPtsEtc=function(t,e){var r=e.posPts,a=e.intersectionPts,n=e.vectorNormInverse,i,o=t.pstyle("source-endpoint"),s=t.pstyle("target-endpoint"),u=o.units!=null&&s.units!=null,l=function(M,L,w,k){var D=k-L,F=w-M,G=Math.sqrt(F*F+D*D);return{x:-D/G,y:F/G}},v=t.pstyle("edge-distances").value;switch(v){case"node-position":i=r;break;case"intersection":i=a;break;case"endpoints":{if(u){var f=this.manualEndptToPx(t.source()[0],o),h=x(f,2),d=h[0],c=h[1],y=this.manualEndptToPx(t.target()[0],s),p=x(y,2),g=p[0],m=p[1],b={x1:d,y1:c,x2:g,y2:m};n=l(d,c,g,m),i=b}else ht("Edge ".concat(t.id()," has edge-distances:endpoints specified without manual endpoints specified via source-endpoint and target-endpoint. Falling back on edge-distances:intersection (default).")),i=a;break}}return{midptPts:i,vectorNormInverse:n}},Vt.findHaystackPoints=function(t){for(var e=0;e<t.length;e++){var r=t[e],a=r._private,n=a.rscratch;if(!n.haystack){var i=Math.random()*2*Math.PI;n.source={x:Math.cos(i),y:Math.sin(i)},i=Math.random()*2*Math.PI,n.target={x:Math.cos(i),y:Math.sin(i)}}var o=a.source,s=a.target,u=o.position(),l=s.position(),v=o.width(),f=s.width(),h=o.height(),d=s.height(),c=r.pstyle("haystack-radius").value,y=c/2;n.haystackPts=n.allpts=[n.source.x*v*y+u.x,n.source.y*h*y+u.y,n.target.x*f*y+l.x,n.target.y*d*y+l.y],n.midX=(n.allpts[0]+n.allpts[2])/2,n.midY=(n.allpts[1]+n.allpts[3])/2,n.edgeType="haystack",n.haystack=!0,this.storeEdgeProjections(r),this.calculateArrowAngles(r),this.recalculateEdgeLabelProjections(r),this.calculateLabelAngles(r)}},Vt.findSegmentsPoints=function(t,e){var r=t._private.rscratch,a=t.pstyle("segment-weights"),n=t.pstyle("segment-distances"),i=Math.min(a.pfValue.length,n.pfValue.length);r.edgeType="segments",r.segpts=[];for(var o=0;o<i;o++){var s=a.pfValue[o],u=n.pfValue[o],l=1-s,v=s,f=this.findMidptPtsEtc(t,e),h=f.midptPts,d=f.vectorNormInverse,c={x:h.x1*l+h.x2*v,y:h.y1*l+h.y2*v};r.segpts.push(c.x+d.x*u,c.y+d.y*u)}},Vt.findLoopPoints=function(t,e,r,a){var n=t._private.rscratch,i=e.dirCounts,o=e.srcPos,s=t.pstyle("control-point-distances"),u=s?s.pfValue[0]:void 0,l=t.pstyle("loop-direction").pfValue,v=t.pstyle("loop-sweep").pfValue,f=t.pstyle("control-point-step-size").pfValue;n.edgeType="self";var h=r,d=f;a&&(h=0,d=u);var c=l-Math.PI/2,y=c-v/2,p=c+v/2,g=l+"_"+v;h=i[g]===void 0?i[g]=0:++i[g],n.ctrlpts=[o.x+Math.cos(y)*1.4*d*(h/3+1),o.y+Math.sin(y)*1.4*d*(h/3+1),o.x+Math.cos(p)*1.4*d*(h/3+1),o.y+Math.sin(p)*1.4*d*(h/3+1)]},Vt.findCompoundLoopPoints=function(t,e,r,a){var n=t._private.rscratch;n.edgeType="compound";var i=e.srcPos,o=e.tgtPos,s=e.srcW,u=e.srcH,l=e.tgtW,v=e.tgtH,f=t.pstyle("control-point-step-size").pfValue,h=t.pstyle("control-point-distances"),d=h?h.pfValue[0]:void 0,c=r,y=f;a&&(c=0,y=d);var p=50,g={x:i.x-s/2,y:i.y-u/2},m={x:o.x-l/2,y:o.y-v/2},b={x:Math.min(g.x,m.x),y:Math.min(g.y,m.y)},E=.5,M=Math.max(E,Math.log(s*.01)),L=Math.max(E,Math.log(l*.01));n.ctrlpts=[b.x,b.y-(1+Math.pow(p,1.12)/100)*y*(c/3+1)*M,b.x-(1+Math.pow(p,1.12)/100)*y*(c/3+1)*L,b.y]},Vt.findStraightEdgePoints=function(t){t._private.rscratch.edgeType="straight"},Vt.findBezierPoints=function(t,e,r,a,n){var i=t._private.rscratch,o=t.pstyle("control-point-step-size").pfValue,s=t.pstyle("control-point-distances"),u=t.pstyle("control-point-weights"),l=s&&u?Math.min(s.value.length,u.value.length):1,v=s?s.pfValue[0]:void 0,f=u.value[0],h=a;i.edgeType=h?"multibezier":"bezier",i.ctrlpts=[];for(var d=0;d<l;d++){var c=(.5-e.eles.length/2+r)*o*(n?-1:1),y=void 0,p=wo(c);h&&(v=s?s.pfValue[d]:o,f=u.value[d]),a?y=v:y=v!==void 0?p*v:void 0;var g=y!==void 0?y:c,m=1-f,b=f,E=this.findMidptPtsEtc(t,e),M=E.midptPts,L=E.vectorNormInverse,w={x:M.x1*m+M.x2*b,y:M.y1*m+M.y2*b};i.ctrlpts.push(w.x+L.x*g,w.y+L.y*g)}},Vt.findTaxiPoints=function(t,e){var r=t._private.rscratch;r.edgeType="segments";var a="vertical",n="horizontal",i="leftward",o="rightward",s="downward",u="upward",l="auto",v=e.posPts,f=e.srcW,h=e.srcH,d=e.tgtW,c=e.tgtH,y=t.pstyle("edge-distances").value,p=y!=="node-position",g=t.pstyle("taxi-direction").value,m=g,b=t.pstyle("taxi-turn"),E=b.units==="%",M=b.pfValue,L=M<0,w=t.pstyle("taxi-turn-min-distance").pfValue,k=p?(f+d)/2:0,D=p?(h+c)/2:0,F=v.x2-v.x1,G=v.y2-v.y1,I=function(be,Ge){return be>0?Math.max(be-Ge,0):Math.min(be+Ge,0)},X=I(F,k),B=I(G,D),re=!1;m===l?g=Math.abs(X)>Math.abs(B)?n:a:m===u||m===s?(g=a,re=!0):(m===i||m===o)&&(g=n,re=!0);var K=g===a,W=K?B:X,ae=K?G:F,ue=wo(ae),me=!1;!(re&&(E||L))&&(m===s&&ae<0||m===u&&ae>0||m===i&&ae>0||m===o&&ae<0)&&(ue*=-1,W=ue*Math.abs(W),me=!0);var ie;if(E){var ge=M<0?1+M:M;ie=ge*W}else{var Ee=M<0?W:0;ie=Ee+M*ue}var Ce=function(be){return Math.abs(be)<w||Math.abs(be)>=Math.abs(W)},we=Ce(ie),De=Ce(Math.abs(W)-Math.abs(ie)),oe=we||De;if(oe&&!me)if(K){var xe=Math.abs(ae)<=h/2,Le=Math.abs(F)<=d/2;if(xe){var Se=(v.x1+v.x2)/2,Oe=v.y1,Fe=v.y2;r.segpts=[Se,Oe,Se,Fe]}else if(Le){var Xe=(v.y1+v.y2)/2,Ie=v.x1,Me=v.x2;r.segpts=[Ie,Xe,Me,Xe]}else r.segpts=[v.x1,v.y2]}else{var $e=Math.abs(ae)<=f/2,ze=Math.abs(G)<=c/2;if($e){var Be=(v.y1+v.y2)/2,Ue=v.x1,rt=v.x2;r.segpts=[Ue,Be,rt,Be]}else if(ze){var je=(v.x1+v.x2)/2,We=v.y1,et=v.y2;r.segpts=[je,We,je,et]}else r.segpts=[v.x2,v.y1]}else if(K){var fe=v.y1+ie+(p?h/2*ue:0),O=v.x1,se=v.x2;r.segpts=[O,fe,se,fe]}else{var Te=v.x1+ie+(p?f/2*ue:0),ce=v.y1,ye=v.y2;r.segpts=[Te,ce,Te,ye]}},Vt.tryToCorrectInvalidPoints=function(t,e){var r=t._private.rscratch;if(r.edgeType==="bezier"){var a=e.srcPos,n=e.tgtPos,i=e.srcW,o=e.srcH,s=e.tgtW,u=e.tgtH,l=e.srcShape,v=e.tgtShape,f=!R(r.startX)||!R(r.startY),h=!R(r.arrowStartX)||!R(r.arrowStartY),d=!R(r.endX)||!R(r.endY),c=!R(r.arrowEndX)||!R(r.arrowEndY),y=3,p=this.getArrowWidth(t.pstyle("width").pfValue,t.pstyle("arrow-scale").value)*this.arrowShapeWidth,g=y*p,m=Br({x:r.ctrlpts[0],y:r.ctrlpts[1]},{x:r.startX,y:r.startY}),b=m<g,E=Br({x:r.ctrlpts[0],y:r.ctrlpts[1]},{x:r.endX,y:r.endY}),M=E<g,L=!1;if(f||h||b){L=!0;var w={x:r.ctrlpts[0]-a.x,y:r.ctrlpts[1]-a.y},k=Math.sqrt(w.x*w.x+w.y*w.y),D={x:w.x/k,y:w.y/k},F=Math.max(i,o),G={x:r.ctrlpts[0]+D.x*2*F,y:r.ctrlpts[1]+D.y*2*F},I=l.intersectLine(a.x,a.y,i,o,G.x,G.y,0);b?(r.ctrlpts[0]=r.ctrlpts[0]+D.x*(g-m),r.ctrlpts[1]=r.ctrlpts[1]+D.y*(g-m)):(r.ctrlpts[0]=I[0]+D.x*g,r.ctrlpts[1]=I[1]+D.y*g)}if(d||c||M){L=!0;var X={x:r.ctrlpts[0]-n.x,y:r.ctrlpts[1]-n.y},B=Math.sqrt(X.x*X.x+X.y*X.y),re={x:X.x/B,y:X.y/B},K=Math.max(i,o),W={x:r.ctrlpts[0]+re.x*2*K,y:r.ctrlpts[1]+re.y*2*K},ae=v.intersectLine(n.x,n.y,s,u,W.x,W.y,0);M?(r.ctrlpts[0]=r.ctrlpts[0]+re.x*(g-E),r.ctrlpts[1]=r.ctrlpts[1]+re.y*(g-E)):(r.ctrlpts[0]=ae[0]+re.x*g,r.ctrlpts[1]=ae[1]+re.y*g)}L&&this.findEndpoints(t)}},Vt.storeAllpts=function(t){var e=t._private.rscratch;if(e.edgeType==="multibezier"||e.edgeType==="bezier"||e.edgeType==="self"||e.edgeType==="compound"){e.allpts=[],e.allpts.push(e.startX,e.startY);for(var r=0;r+1<e.ctrlpts.length;r+=2)e.allpts.push(e.ctrlpts[r],e.ctrlpts[r+1]),r+3<e.ctrlpts.length&&e.allpts.push((e.ctrlpts[r]+e.ctrlpts[r+2])/2,(e.ctrlpts[r+1]+e.ctrlpts[r+3])/2);e.allpts.push(e.endX,e.endY);var a,n;e.ctrlpts.length/2%2===0?(a=e.allpts.length/2-1,e.midX=e.allpts[a],e.midY=e.allpts[a+1]):(a=e.allpts.length/2-3,n=.5,e.midX=Lt(e.allpts[a],e.allpts[a+2],e.allpts[a+4],n),e.midY=Lt(e.allpts[a+1],e.allpts[a+3],e.allpts[a+5],n))}else if(e.edgeType==="straight")e.allpts=[e.startX,e.startY,e.endX,e.endY],e.midX=(e.startX+e.endX+e.arrowStartX+e.arrowEndX)/4,e.midY=(e.startY+e.endY+e.arrowStartY+e.arrowEndY)/4;else if(e.edgeType==="segments")if(e.allpts=[],e.allpts.push(e.startX,e.startY),e.allpts.push.apply(e.allpts,e.segpts),e.allpts.push(e.endX,e.endY),e.segpts.length%4===0){var i=e.segpts.length/2,o=i-2;e.midX=(e.segpts[o]+e.segpts[i])/2,e.midY=(e.segpts[o+1]+e.segpts[i+1])/2}else{var s=e.segpts.length/2-1;e.midX=e.segpts[s],e.midY=e.segpts[s+1]}},Vt.checkForInvalidEdgeWarning=function(t){var e=t[0]._private.rscratch;e.nodesOverlap||R(e.startX)&&R(e.startY)&&R(e.endX)&&R(e.endY)?e.loggedErr=!1:e.loggedErr||(e.loggedErr=!0,ht("Edge `"+t.id()+"` has invalid endpoints and so it is impossible to draw. Adjust your edge style (e.g. control points) accordingly or use an alternative edge type. This is expected behaviour when the source node and the target node overlap."))},Vt.findEdgeControlPoints=function(t){var e=this;if(!(!t||t.length===0)){for(var r=this,a=r.cy,n=a.hasCompoundNodes(),i={map:new ur,get:function(w){var k=this.map.get(w[0]);return k!=null?k.get(w[1]):null},set:function(w,k){var D=this.map.get(w[0]);D==null&&(D=new ur,this.map.set(w[0],D)),D.set(w[1],k)}},o=[],s=[],u=0;u<t.length;u++){var l=t[u],v=l._private,f=l.pstyle("curve-style").value;if(!(l.removed()||!l.takesUpSpace())){if(f==="haystack"){s.push(l);continue}var h=f==="unbundled-bezier"||f==="segments"||f==="straight"||f==="straight-triangle"||f==="taxi",d=f==="unbundled-bezier"||f==="bezier",c=v.source,y=v.target,p=c.poolIndex(),g=y.poolIndex(),m=[p,g].sort(),b=i.get(m);b==null&&(b={eles:[]},i.set(m,b),o.push(m)),b.eles.push(l),h&&(b.hasUnbundled=!0),d&&(b.hasBezier=!0)}}for(var E=function(w){var k=o[w],D=i.get(k),F=void 0;if(!D.hasUnbundled){var G=D.eles[0].parallelEdges().filter(function(et){return et.isBundledBezier()});si(D.eles),G.forEach(function(et){return D.eles.push(et)}),D.eles.sort(function(et,fe){return et.poolIndex()-fe.poolIndex()})}var I=D.eles[0],X=I.source(),B=I.target();if(X.poolIndex()>B.poolIndex()){var re=X;X=B,B=re}var K=D.srcPos=X.position(),W=D.tgtPos=B.position(),ae=D.srcW=X.outerWidth(),ue=D.srcH=X.outerHeight(),me=D.tgtW=B.outerWidth(),ie=D.tgtH=B.outerHeight(),ge=D.srcShape=r.nodeShapes[e.getNodeShape(X)],Ee=D.tgtShape=r.nodeShapes[e.getNodeShape(B)];D.dirCounts={north:0,west:0,south:0,east:0,northwest:0,southwest:0,northeast:0,southeast:0};for(var Ce=0;Ce<D.eles.length;Ce++){var we=D.eles[Ce],De=we[0]._private.rscratch,oe=we.pstyle("curve-style").value,xe=oe==="unbundled-bezier"||oe==="segments"||oe==="taxi",Le=!X.same(we.source());if(!D.calculatedIntersection&&X!==B&&(D.hasBezier||D.hasUnbundled)){D.calculatedIntersection=!0;var Se=ge.intersectLine(K.x,K.y,ae,ue,W.x,W.y,0),Oe=D.srcIntn=Se,Fe=Ee.intersectLine(W.x,W.y,me,ie,K.x,K.y,0),Xe=D.tgtIntn=Fe,Ie=D.intersectionPts={x1:Se[0],x2:Fe[0],y1:Se[1],y2:Fe[1]},Me=D.posPts={x1:K.x,x2:W.x,y1:K.y,y2:W.y},$e=Fe[1]-Se[1],ze=Fe[0]-Se[0],Be=Math.sqrt(ze*ze+$e*$e),Ue=D.vector={x:ze,y:$e},rt=D.vectorNorm={x:Ue.x/Be,y:Ue.y/Be},je={x:-rt.y,y:rt.x};D.nodesOverlap=!R(Be)||Ee.checkPoint(Se[0],Se[1],0,me,ie,W.x,W.y)||ge.checkPoint(Fe[0],Fe[1],0,ae,ue,K.x,K.y),D.vectorNormInverse=je,F={nodesOverlap:D.nodesOverlap,dirCounts:D.dirCounts,calculatedIntersection:!0,hasBezier:D.hasBezier,hasUnbundled:D.hasUnbundled,eles:D.eles,srcPos:W,tgtPos:K,srcW:me,srcH:ie,tgtW:ae,tgtH:ue,srcIntn:Xe,tgtIntn:Oe,srcShape:Ee,tgtShape:ge,posPts:{x1:Me.x2,y1:Me.y2,x2:Me.x1,y2:Me.y1},intersectionPts:{x1:Ie.x2,y1:Ie.y2,x2:Ie.x1,y2:Ie.y1},vector:{x:-Ue.x,y:-Ue.y},vectorNorm:{x:-rt.x,y:-rt.y},vectorNormInverse:{x:-je.x,y:-je.y}}}var We=Le?F:D;De.nodesOverlap=We.nodesOverlap,De.srcIntn=We.srcIntn,De.tgtIntn=We.tgtIntn,n&&(X.isParent()||X.isChild()||B.isParent()||B.isChild())&&(X.parents().anySame(B)||B.parents().anySame(X)||X.same(B)&&X.isParent())?e.findCompoundLoopPoints(we,We,Ce,xe):X===B?e.findLoopPoints(we,We,Ce,xe):oe==="segments"?e.findSegmentsPoints(we,We):oe==="taxi"?e.findTaxiPoints(we,We):oe==="straight"||!xe&&D.eles.length%2===1&&Ce===Math.floor(D.eles.length/2)?e.findStraightEdgePoints(we):e.findBezierPoints(we,We,Ce,xe,Le),e.findEndpoints(we),e.tryToCorrectInvalidPoints(we,We),e.checkForInvalidEdgeWarning(we),e.storeAllpts(we),e.storeEdgeProjections(we),e.calculateArrowAngles(we),e.recalculateEdgeLabelProjections(we),e.calculateLabelAngles(we)}},M=0;M<o.length;M++)E(M);this.findHaystackPoints(s)}};function nl(t){var e=[];if(t!=null){for(var r=0;r<t.length;r+=2){var a=t[r],n=t[r+1];e.push({x:a,y:n})}return e}}Vt.getSegmentPoints=function(t){var e=t[0]._private.rscratch,r=e.edgeType;if(r==="segments")return this.recalculateRenderedStyle(t),nl(e.segpts)},Vt.getControlPoints=function(t){var e=t[0]._private.rscratch,r=e.edgeType;if(r==="bezier"||r==="multibezier"||r==="self"||r==="compound")return this.recalculateRenderedStyle(t),nl(e.ctrlpts)},Vt.getEdgeMidpoint=function(t){var e=t[0]._private.rscratch;return this.recalculateRenderedStyle(t),{x:e.midX,y:e.midY}};var Qa={};Qa.manualEndptToPx=function(t,e){var r=this,a=t.position(),n=t.outerWidth(),i=t.outerHeight();if(e.value.length===2){var o=[e.pfValue[0],e.pfValue[1]];return e.units[0]==="%"&&(o[0]=o[0]*n),e.units[1]==="%"&&(o[1]=o[1]*i),o[0]+=a.x,o[1]+=a.y,o}else{var s=e.pfValue[0];s=-Math.PI/2+s;var u=2*Math.max(n,i),l=[a.x+Math.cos(s)*u,a.y+Math.sin(s)*u];return r.nodeShapes[this.getNodeShape(t)].intersectLine(a.x,a.y,n,i,l[0],l[1],0)}},Qa.findEndpoints=function(t){var e=this,r,a=t.source()[0],n=t.target()[0],i=a.position(),o=n.position(),s=t.pstyle("target-arrow-shape").value,u=t.pstyle("source-arrow-shape").value,l=t.pstyle("target-distance-from-node").pfValue,v=t.pstyle("source-distance-from-node").pfValue,f=t.pstyle("curve-style").value,h=t._private.rscratch,d=h.edgeType,c=f==="taxi",y=d==="self"||d==="compound",p=d==="bezier"||d==="multibezier"||y,g=d!=="bezier",m=d==="straight"||d==="segments",b=d==="segments",E=p||g||m,M=y||c,L=t.pstyle("source-endpoint"),w=M?"outside-to-node":L.value,k=t.pstyle("target-endpoint"),D=M?"outside-to-node":k.value;h.srcManEndpt=L,h.tgtManEndpt=k;var F,G,I,X;if(p){var B=[h.ctrlpts[0],h.ctrlpts[1]],re=g?[h.ctrlpts[h.ctrlpts.length-2],h.ctrlpts[h.ctrlpts.length-1]]:B;F=re,G=B}else if(m){var K=b?h.segpts.slice(0,2):[o.x,o.y],W=b?h.segpts.slice(h.segpts.length-2):[i.x,i.y];F=W,G=K}if(D==="inside-to-node")r=[o.x,o.y];else if(k.units)r=this.manualEndptToPx(n,k);else if(D==="outside-to-line")r=h.tgtIntn;else if(D==="outside-to-node"||D==="outside-to-node-or-label"?I=F:(D==="outside-to-line"||D==="outside-to-line-or-label")&&(I=[i.x,i.y]),r=e.nodeShapes[this.getNodeShape(n)].intersectLine(o.x,o.y,n.outerWidth(),n.outerHeight(),I[0],I[1],0),D==="outside-to-node-or-label"||D==="outside-to-line-or-label"){var ae=n._private.rscratch,ue=ae.labelWidth,me=ae.labelHeight,ie=ae.labelX,ge=ae.labelY,Ee=ue/2,Ce=me/2,we=n.pstyle("text-valign").value;we==="top"?ge-=Ce:we==="bottom"&&(ge+=Ce);var De=n.pstyle("text-halign").value;De==="left"?ie-=Ee:De==="right"&&(ie+=Ee);var oe=Ba(I[0],I[1],[ie-Ee,ge-Ce,ie+Ee,ge-Ce,ie+Ee,ge+Ce,ie-Ee,ge+Ce],o.x,o.y);if(oe.length>0){var xe=i,Le=Fr(xe,jr(r)),Se=Fr(xe,jr(oe)),Oe=Le;if(Se<Le&&(r=oe,Oe=Se),oe.length>2){var Fe=Fr(xe,{x:oe[2],y:oe[3]});Fe<Oe&&(r=[oe[2],oe[3]])}}}var Xe=mn(r,F,e.arrowShapes[s].spacing(t)+l),Ie=mn(r,F,e.arrowShapes[s].gap(t)+l);if(h.endX=Ie[0],h.endY=Ie[1],h.arrowEndX=Xe[0],h.arrowEndY=Xe[1],w==="inside-to-node")r=[i.x,i.y];else if(L.units)r=this.manualEndptToPx(a,L);else if(w==="outside-to-line")r=h.srcIntn;else if(w==="outside-to-node"||w==="outside-to-node-or-label"?X=G:(w==="outside-to-line"||w==="outside-to-line-or-label")&&(X=[o.x,o.y]),r=e.nodeShapes[this.getNodeShape(a)].intersectLine(i.x,i.y,a.outerWidth(),a.outerHeight(),X[0],X[1],0),w==="outside-to-node-or-label"||w==="outside-to-line-or-label"){var Me=a._private.rscratch,$e=Me.labelWidth,ze=Me.labelHeight,Be=Me.labelX,Ue=Me.labelY,rt=$e/2,je=ze/2,We=a.pstyle("text-valign").value;We==="top"?Ue-=je:We==="bottom"&&(Ue+=je);var et=a.pstyle("text-halign").value;et==="left"?Be-=rt:et==="right"&&(Be+=rt);var fe=Ba(X[0],X[1],[Be-rt,Ue-je,Be+rt,Ue-je,Be+rt,Ue+je,Be-rt,Ue+je],i.x,i.y);if(fe.length>0){var O=o,se=Fr(O,jr(r)),Te=Fr(O,jr(fe)),ce=se;if(Te<se&&(r=[fe[0],fe[1]],ce=Te),fe.length>2){var ye=Fr(O,{x:fe[2],y:fe[3]});ye<ce&&(r=[fe[2],fe[3]])}}}var _e=mn(r,G,e.arrowShapes[u].spacing(t)+v),be=mn(r,G,e.arrowShapes[u].gap(t)+v);h.startX=be[0],h.startY=be[1],h.arrowStartX=_e[0],h.arrowStartY=_e[1],E&&(!R(h.startX)||!R(h.startY)||!R(h.endX)||!R(h.endY)?h.badLine=!0:h.badLine=!1)},Qa.getSourceEndpoint=function(t){var e=t[0]._private.rscratch;switch(this.recalculateRenderedStyle(t),e.edgeType){case"haystack":return{x:e.haystackPts[0],y:e.haystackPts[1]};default:return{x:e.arrowStartX,y:e.arrowStartY}}},Qa.getTargetEndpoint=function(t){var e=t[0]._private.rscratch;switch(this.recalculateRenderedStyle(t),e.edgeType){case"haystack":return{x:e.haystackPts[2],y:e.haystackPts[3]};default:return{x:e.arrowEndX,y:e.arrowEndY}}};var Gi={};function hg(t,e,r){for(var a=function(l,v,f,h){return Lt(l,v,f,h)},n=e._private,i=n.rstyle.bezierPts,o=0;o<t.bezierProjPcts.length;o++){var s=t.bezierProjPcts[o];i.push({x:a(r[0],r[2],r[4],s),y:a(r[1],r[3],r[5],s)})}}Gi.storeEdgeProjections=function(t){var e=t._private,r=e.rscratch,a=r.edgeType;if(e.rstyle.bezierPts=null,e.rstyle.linePts=null,e.rstyle.haystackPts=null,a==="multibezier"||a==="bezier"||a==="self"||a==="compound"){e.rstyle.bezierPts=[];for(var n=0;n+5<r.allpts.length;n+=4)hg(this,t,r.allpts.slice(n,n+6))}else if(a==="segments")for(var i=e.rstyle.linePts=[],n=0;n+1<r.allpts.length;n+=2)i.push({x:r.allpts[n],y:r.allpts[n+1]});else if(a==="haystack"){var o=r.haystackPts;e.rstyle.haystackPts=[{x:o[0],y:o[1]},{x:o[2],y:o[3]}]}e.rstyle.arrowWidth=this.getArrowWidth(t.pstyle("width").pfValue,t.pstyle("arrow-scale").value)*this.arrowShapeWidth},Gi.recalculateEdgeProjections=function(t){this.findEdgeControlPoints(t)};var fr={};fr.recalculateNodeLabelProjection=function(t){var e=t.pstyle("label").strValue;if(!Re(e)){var r,a,n=t._private,i=t.width(),o=t.height(),s=t.padding(),u=t.position(),l=t.pstyle("text-halign").strValue,v=t.pstyle("text-valign").strValue,f=n.rscratch,h=n.rstyle;switch(l){case"left":r=u.x-i/2-s;break;case"right":r=u.x+i/2+s;break;default:r=u.x}switch(v){case"top":a=u.y-o/2-s;break;case"bottom":a=u.y+o/2+s;break;default:a=u.y}f.labelX=r,f.labelY=a,h.labelX=r,h.labelY=a,this.calculateLabelAngles(t),this.applyLabelDimensions(t)}};var il=function(e,r){var a=Math.atan(r/e);return e===0&&a<0&&(a=a*-1),a},ol=function(e,r){var a=r.x-e.x,n=r.y-e.y;return il(a,n)},cg=function(e,r,a,n){var i=ka(0,n-.001,1),o=ka(0,n+.001,1),s=ea(e,r,a,i),u=ea(e,r,a,o);return ol(s,u)};fr.recalculateEdgeLabelProjections=function(t){var e,r=t._private,a=r.rscratch,n=this,i={mid:t.pstyle("label").strValue,source:t.pstyle("source-label").strValue,target:t.pstyle("target-label").strValue};if(i.mid||i.source||i.target){e={x:a.midX,y:a.midY};var o=function(f,h,d){Tr(r.rscratch,f,h,d),Tr(r.rstyle,f,h,d)};o("labelX",null,e.x),o("labelY",null,e.y);var s=il(a.midDispX,a.midDispY);o("labelAutoAngle",null,s);var u=function v(){if(v.cache)return v.cache;for(var f=[],h=0;h+5<a.allpts.length;h+=4){var d={x:a.allpts[h],y:a.allpts[h+1]},c={x:a.allpts[h+2],y:a.allpts[h+3]},y={x:a.allpts[h+4],y:a.allpts[h+5]};f.push({p0:d,p1:c,p2:y,startDist:0,length:0,segments:[]})}var p=r.rstyle.bezierPts,g=n.bezierProjPcts.length;function m(w,k,D,F,G){var I=Br(k,D),X=w.segments[w.segments.length-1],B={p0:k,p1:D,t0:F,t1:G,startDist:X?X.startDist+X.length:0,length:I};w.segments.push(B),w.length+=I}for(var b=0;b<f.length;b++){var E=f[b],M=f[b-1];M&&(E.startDist=M.startDist+M.length),m(E,E.p0,p[b*g],0,n.bezierProjPcts[0]);for(var L=0;L<g-1;L++)m(E,p[b*g+L],p[b*g+L+1],n.bezierProjPcts[L],n.bezierProjPcts[L+1]);m(E,p[b*g+g-1],E.p2,n.bezierProjPcts[g-1],1)}return v.cache=f},l=function(f){var h,d=f==="source";if(i[f]){var c=t.pstyle(f+"-text-offset").pfValue;switch(a.edgeType){case"self":case"compound":case"bezier":case"multibezier":{for(var y=u(),p,g=0,m=0,b=0;b<y.length;b++){for(var E=y[d?b:y.length-1-b],M=0;M<E.segments.length;M++){var L=E.segments[d?M:E.segments.length-1-M],w=b===y.length-1&&M===E.segments.length-1;if(g=m,m+=L.length,m>=c||w){p={cp:E,segment:L};break}}if(p)break}var k=p.cp,D=p.segment,F=(c-g)/D.length,G=D.t1-D.t0,I=d?D.t0+G*F:D.t1-G*F;I=ka(0,I,1),e=ea(k.p0,k.p1,k.p2,I),h=cg(k.p0,k.p1,k.p2,I);break}case"straight":case"segments":case"haystack":{for(var X=0,B,re,K,W,ae=a.allpts.length,ue=0;ue+3<ae&&(d?(K={x:a.allpts[ue],y:a.allpts[ue+1]},W={x:a.allpts[ue+2],y:a.allpts[ue+3]}):(K={x:a.allpts[ae-2-ue],y:a.allpts[ae-1-ue]},W={x:a.allpts[ae-4-ue],y:a.allpts[ae-3-ue]}),B=Br(K,W),re=X,X+=B,!(X>=c));ue+=2);var me=c-re,ie=me/B;ie=ka(0,ie,1),e=bv(K,W,ie),h=ol(K,W);break}}o("labelX",f,e.x),o("labelY",f,e.y),o("labelAutoAngle",f,h)}};l("source"),l("target"),this.applyLabelDimensions(t)}},fr.applyLabelDimensions=function(t){this.applyPrefixedLabelDimensions(t),t.isEdge()&&(this.applyPrefixedLabelDimensions(t,"source"),this.applyPrefixedLabelDimensions(t,"target"))},fr.applyPrefixedLabelDimensions=function(t,e){var r=t._private,a=this.getLabelText(t,e),n=this.calculateLabelDimensions(t,a),i=t.pstyle("line-height").pfValue,o=t.pstyle("text-wrap").strValue,s=er(r.rscratch,"labelWrapCachedLines",e)||[],u=o!=="wrap"?1:Math.max(s.length,1),l=n.height/u,v=l*i,f=n.width,h=n.height+(u-1)*(i-1)*l;Tr(r.rstyle,"labelWidth",e,f),Tr(r.rscratch,"labelWidth",e,f),Tr(r.rstyle,"labelHeight",e,h),Tr(r.rscratch,"labelHeight",e,h),Tr(r.rscratch,"labelLineHeight",e,v)},fr.getLabelText=function(t,e){var r=t._private,a=e?e+"-":"",n=t.pstyle(a+"label").strValue,i=t.pstyle("text-transform").value,o=function(me,ie){return ie?(Tr(r.rscratch,me,e,ie),ie):er(r.rscratch,me,e)};if(!n)return"";i=="none"||(i=="uppercase"?n=n.toUpperCase():i=="lowercase"&&(n=n.toLowerCase()));var s=t.pstyle("text-wrap").value;if(s==="wrap"){var u=o("labelKey");if(u!=null&&o("labelWrapKey")===u)return o("labelWrapCachedText");for(var l="",v=n.split(`
`),f=t.pstyle("text-max-width").pfValue,h=t.pstyle("text-overflow-wrap").value,d=h==="anywhere",c=[],y=/[\s\u200b]+/,p=d?"":" ",g=0;g<v.length;g++){var m=v[g],b=this.calculateLabelDimensions(t,m),E=b.width;if(d){var M=m.split("").join(l);m=M}if(E>f){for(var L=m.split(y),w="",k=0;k<L.length;k++){var D=L[k],F=w.length===0?D:w+p+D,G=this.calculateLabelDimensions(t,F),I=G.width;I<=f?w+=D+p:(w&&c.push(w),w=D+p)}w.match(/^[\s\u200b]+$/)||c.push(w)}else c.push(m)}o("labelWrapCachedLines",c),n=o("labelWrapCachedText",c.join(`
`)),o("labelWrapKey",u)}else if(s==="ellipsis"){var X=t.pstyle("text-max-width").pfValue,B="",re="…",K=!1;if(this.calculateLabelDimensions(t,n).width<X)return n;for(var W=0;W<n.length;W++){var ae=this.calculateLabelDimensions(t,B+n[W]+re).width;if(ae>X)break;B+=n[W],W===n.length-1&&(K=!0)}return K||(B+=re),B}return n},fr.getLabelJustification=function(t){var e=t.pstyle("text-justification").strValue,r=t.pstyle("text-halign").strValue;if(e==="auto")if(t.isNode())switch(r){case"left":return"right";case"right":return"left";default:return"center"}else return"center";else return e},fr.calculateLabelDimensions=function(t,e){var r=this,a=Pr(e,t._private.labelDimsKey),n=r.labelDimCache||(r.labelDimCache=[]),i=n[a];if(i!=null)return i;var o=0,s=t.pstyle("font-style").strValue,u=t.pstyle("font-size").pfValue,l=t.pstyle("font-family").strValue,v=t.pstyle("font-weight").strValue,f=this.labelCalcCanvas,h=this.labelCalcCanvasContext;if(!f){f=this.labelCalcCanvas=document.createElement("canvas"),h=this.labelCalcCanvasContext=f.getContext("2d");var d=f.style;d.position="absolute",d.left="-9999px",d.top="-9999px",d.zIndex="-1",d.visibility="hidden",d.pointerEvents="none"}h.font="".concat(s," ").concat(v," ").concat(u,"px ").concat(l);for(var c=0,y=0,p=e.split(`
`),g=0;g<p.length;g++){var m=p[g],b=h.measureText(m),E=Math.ceil(b.width),M=u;c=Math.max(E,c),y+=M}return c+=o,y+=o,n[a]={width:c,height:y}},fr.calculateLabelAngle=function(t,e){var r=t._private,a=r.rscratch,n=t.isEdge(),i=e?e+"-":"",o=t.pstyle(i+"text-rotation"),s=o.strValue;return s==="none"?0:n&&s==="autorotate"?a.labelAutoAngle:s==="autorotate"?0:o.pfValue},fr.calculateLabelAngles=function(t){var e=this,r=t.isEdge(),a=t._private,n=a.rscratch;n.labelAngle=e.calculateLabelAngle(t),r&&(n.sourceLabelAngle=e.calculateLabelAngle(t,"source"),n.targetLabelAngle=e.calculateLabelAngle(t,"target"))};var sl={},ll=28,ul=!1;sl.getNodeShape=function(t){var e=this,r=t.pstyle("shape").value;if(r==="cutrectangle"&&(t.width()<ll||t.height()<ll))return ul||(ht("The `cutrectangle` node shape can not be used at small sizes so `rectangle` is used instead"),ul=!0),"rectangle";if(t.isParent())return r==="rectangle"||r==="roundrectangle"||r==="round-rectangle"||r==="cutrectangle"||r==="cut-rectangle"||r==="barrel"?r:"rectangle";if(r==="polygon"){var a=t.pstyle("shape-polygon-points").value;return e.nodeShapes.makePolygon(a).name}return r};var Wn={};Wn.registerCalculationListeners=function(){var t=this.cy,e=t.collection(),r=this,a=function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(e.merge(o),s)for(var u=0;u<o.length;u++){var l=o[u],v=l._private,f=v.rstyle;f.clean=!1,f.cleanConnected=!1}};r.binder(t).on("bounds.* dirty.*",function(o){var s=o.target;a(s)}).on("style.* background.*",function(o){var s=o.target;a(s,!1)});var n=function(o){if(o){var s=r.onUpdateEleCalcsFns;e.cleanStyle();for(var u=0;u<e.length;u++){var l=e[u],v=l._private.rstyle;l.isNode()&&!v.cleanConnected&&(a(l.connectedEdges()),v.cleanConnected=!0)}if(s)for(var f=0;f<s.length;f++){var h=s[f];h(o,e)}r.recalculateRenderedStyle(e),e=t.collection()}};r.flushRenderedStyleQueue=function(){n(!0)},r.beforeRender(n,r.beforeRenderPriorities.eleCalcs)},Wn.onUpdateEleCalcs=function(t){var e=this.onUpdateEleCalcsFns=this.onUpdateEleCalcsFns||[];e.push(t)},Wn.recalculateRenderedStyle=function(t,e){var r=function(E){return E._private.rstyle.cleanConnected},a=[],n=[];if(!this.destroyed){e===void 0&&(e=!0);for(var i=0;i<t.length;i++){var o=t[i],s=o._private,u=s.rstyle;o.isEdge()&&(!r(o.source())||!r(o.target()))&&(u.clean=!1),!(e&&u.clean||o.removed())&&o.pstyle("display").value!=="none"&&(s.group==="nodes"?n.push(o):a.push(o),u.clean=!0)}for(var l=0;l<n.length;l++){var v=n[l],f=v._private,h=f.rstyle,d=v.position();this.recalculateNodeLabelProjection(v),h.nodeX=d.x,h.nodeY=d.y,h.nodeW=v.pstyle("width").pfValue,h.nodeH=v.pstyle("height").pfValue}this.recalculateEdgeProjections(a);for(var c=0;c<a.length;c++){var y=a[c],p=y._private,g=p.rstyle,m=p.rscratch;g.srcX=m.arrowStartX,g.srcY=m.arrowStartY,g.tgtX=m.arrowEndX,g.tgtY=m.arrowEndY,g.midX=m.midX,g.midY=m.midY,g.labelAngle=m.labelAngle,g.sourceLabelAngle=m.sourceLabelAngle,g.targetLabelAngle=m.targetLabelAngle}}};var qn={};qn.updateCachedGrabbedEles=function(){var t=this.cachedZSortedEles;if(t){t.drag=[],t.nondrag=[];for(var e=[],r=0;r<t.length;r++){var a=t[r],n=a._private.rscratch;a.grabbed()&&!a.isParent()?e.push(a):n.inDragLayer?t.drag.push(a):t.nondrag.push(a)}for(var r=0;r<e.length;r++){var a=e[r];t.drag.push(a)}}},qn.invalidateCachedZSortedEles=function(){this.cachedZSortedEles=null},qn.getCachedZSortedEles=function(t){if(t||!this.cachedZSortedEles){var e=this.cy.mutableElements().toArray();e.sort(Ms),e.interactive=e.filter(function(r){return r.interactive()}),this.cachedZSortedEles=e,this.updateCachedGrabbedEles()}else e=this.cachedZSortedEles;return e};var vl={};[Ur,Xn,Vt,Qa,Gi,fr,sl,Wn,qn].forEach(function(t){He(vl,t)});var fl={};fl.getCachedImage=function(t,e,r){var a=this,n=a.imageCache=a.imageCache||{},i=n[t];if(i)return i.image.complete||i.image.addEventListener("load",r),i.image;i=n[t]=n[t]||{};var o=i.image=new Image;o.addEventListener("load",r),o.addEventListener("error",function(){o.error=!0});var s="data:",u=t.substring(0,s.length).toLowerCase()===s;return u||(e=e==="null"?null:e,o.crossOrigin=e),o.src=t,o};var ya={};ya.registerBinding=function(t,e,r,a){var n=Array.prototype.slice.apply(arguments,[1]),i=this.binder(t);return i.on.apply(i,n)},ya.binder=function(t){var e=this,r=e.cy.window(),a=t===r||t===r.document||t===r.document.body||Ve(t);if(e.supportsPassiveEvents==null){var n=!1;try{var i=Object.defineProperty({},"passive",{get:function(){return n=!0,!0}});r.addEventListener("test",null,i)}catch{}e.supportsPassiveEvents=n}var o=function(u,l,v){var f=Array.prototype.slice.call(arguments);return a&&e.supportsPassiveEvents&&(f[2]={capture:v??!1,passive:!1,once:!1}),e.bindings.push({target:t,args:f}),(t.addEventListener||t.on).apply(t,f),this};return{on:o,addEventListener:o,addListener:o,bind:o}},ya.nodeIsDraggable=function(t){return t&&t.isNode()&&!t.locked()&&t.grabbable()},ya.nodeIsGrabbable=function(t){return this.nodeIsDraggable(t)&&t.interactive()},ya.load=function(){var t=this,e=t.cy.window(),r=function(O){return O.selected()},a=function(O,se,Te,ce){O==null&&(O=t.cy);for(var ye=0;ye<se.length;ye++){var _e=se[ye];O.emit({originalEvent:Te,type:_e,position:ce})}},n=function(O){return O.shiftKey||O.metaKey||O.ctrlKey},i=function(O,se){var Te=!0;if(t.cy.hasCompoundNodes()&&O&&O.pannable())for(var ce=0;se&&ce<se.length;ce++){var O=se[ce];if(O.isNode()&&O.isParent()&&!O.pannable()){Te=!1;break}}else Te=!0;return Te},o=function(O){O[0]._private.grabbed=!0},s=function(O){O[0]._private.grabbed=!1},u=function(O){O[0]._private.rscratch.inDragLayer=!0},l=function(O){O[0]._private.rscratch.inDragLayer=!1},v=function(O){O[0]._private.rscratch.isGrabTarget=!0},f=function(O){O[0]._private.rscratch.isGrabTarget=!1},h=function(O,se){var Te=se.addToList,ce=Te.has(O);!ce&&O.grabbable()&&!O.locked()&&(Te.merge(O),o(O))},d=function(O,se){if(O.cy().hasCompoundNodes()&&!(se.inDragLayer==null&&se.addToList==null)){var Te=O.descendants();se.inDragLayer&&(Te.forEach(u),Te.connectedEdges().forEach(u)),se.addToList&&h(Te,se)}},c=function(O,se){se=se||{};var Te=O.cy().hasCompoundNodes();se.inDragLayer&&(O.forEach(u),O.neighborhood().stdFilter(function(ce){return!Te||ce.isEdge()}).forEach(u)),se.addToList&&O.forEach(function(ce){h(ce,se)}),d(O,se),g(O,{inDragLayer:se.inDragLayer}),t.updateCachedGrabbedEles()},y=c,p=function(O){O&&(t.getCachedZSortedEles().forEach(function(se){s(se),l(se),f(se)}),t.updateCachedGrabbedEles())},g=function(O,se){if(!(se.inDragLayer==null&&se.addToList==null)&&O.cy().hasCompoundNodes()){var Te=O.ancestors().orphans();if(!Te.same(O)){var ce=Te.descendants().spawnSelf().merge(Te).unmerge(O).unmerge(O.descendants()),ye=ce.connectedEdges();se.inDragLayer&&(ye.forEach(u),ce.forEach(u)),se.addToList&&ce.forEach(function(_e){h(_e,se)})}}},m=function(){document.activeElement!=null&&document.activeElement.blur!=null&&document.activeElement.blur()},b=typeof MutationObserver<"u",E=typeof ResizeObserver<"u";b?(t.removeObserver=new MutationObserver(function(fe){for(var O=0;O<fe.length;O++){var se=fe[O],Te=se.removedNodes;if(Te)for(var ce=0;ce<Te.length;ce++){var ye=Te[ce];if(ye===t.container){t.destroy();break}}}}),t.container.parentNode&&t.removeObserver.observe(t.container.parentNode,{childList:!0})):t.registerBinding(t.container,"DOMNodeRemoved",function(fe){t.destroy()});var M=sn(function(){t.cy.resize()},100);b&&(t.styleObserver=new MutationObserver(M),t.styleObserver.observe(t.container,{attributes:!0})),t.registerBinding(e,"resize",M),E&&(t.resizeObserver=new ResizeObserver(M),t.resizeObserver.observe(t.container));var L=function(O,se){for(;O!=null;)se(O),O=O.parentNode},w=function(){t.invalidateContainerClientCoordsCache()};L(t.container,function(fe){t.registerBinding(fe,"transitionend",w),t.registerBinding(fe,"animationend",w),t.registerBinding(fe,"scroll",w)}),t.registerBinding(t.container,"contextmenu",function(fe){fe.preventDefault()});var k=function(){return t.selection[4]!==0},D=function(O){for(var se=t.findContainerClientCoords(),Te=se[0],ce=se[1],ye=se[2],_e=se[3],be=O.touches?O.touches:[O],Ge=!1,Qe=0;Qe<be.length;Qe++){var vt=be[Qe];if(Te<=vt.clientX&&vt.clientX<=Te+ye&&ce<=vt.clientY&&vt.clientY<=ce+_e){Ge=!0;break}}if(!Ge)return!1;for(var qe=t.container,st=O.target,Ke=st.parentNode,Je=!1;Ke;){if(Ke===qe){Je=!0;break}Ke=Ke.parentNode}return!!Je};t.registerBinding(t.container,"mousedown",function(O){if(D(O)){O.preventDefault(),m(),t.hoverData.capture=!0,t.hoverData.which=O.which;var se=t.cy,Te=[O.clientX,O.clientY],ce=t.projectIntoViewport(Te[0],Te[1]),ye=t.selection,_e=t.findNearestElements(ce[0],ce[1],!0,!1),be=_e[0],Ge=t.dragData.possibleDragElements;t.hoverData.mdownPos=ce,t.hoverData.mdownGPos=Te;var Qe=function(){t.hoverData.tapholdCancelled=!1,clearTimeout(t.hoverData.tapholdTimeout),t.hoverData.tapholdTimeout=setTimeout(function(){if(!t.hoverData.tapholdCancelled){var Ct=t.hoverData.down;Ct?Ct.emit({originalEvent:O,type:"taphold",position:{x:ce[0],y:ce[1]}}):se.emit({originalEvent:O,type:"taphold",position:{x:ce[0],y:ce[1]}})}},t.tapholdDuration)};if(O.which==3){t.hoverData.cxtStarted=!0;var vt={originalEvent:O,type:"cxttapstart",position:{x:ce[0],y:ce[1]}};be?(be.activate(),be.emit(vt),t.hoverData.down=be):se.emit(vt),t.hoverData.downTime=new Date().getTime(),t.hoverData.cxtDragged=!1}else if(O.which==1){be&&be.activate();{if(be!=null&&t.nodeIsGrabbable(be)){var qe=function(Ct){return{originalEvent:O,type:Ct,position:{x:ce[0],y:ce[1]}}},st=function(Ct){Ct.emit(qe("grab"))};if(v(be),!be.selected())Ge=t.dragData.possibleDragElements=se.collection(),y(be,{addToList:Ge}),be.emit(qe("grabon")).emit(qe("grab"));else{Ge=t.dragData.possibleDragElements=se.collection();var Ke=se.$(function(Je){return Je.isNode()&&Je.selected()&&t.nodeIsGrabbable(Je)});c(Ke,{addToList:Ge}),be.emit(qe("grabon")),Ke.forEach(st)}t.redrawHint("eles",!0),t.redrawHint("drag",!0)}t.hoverData.down=be,t.hoverData.downs=_e,t.hoverData.downTime=new Date().getTime()}a(be,["mousedown","tapstart","vmousedown"],O,{x:ce[0],y:ce[1]}),be==null?(ye[4]=1,t.data.bgActivePosistion={x:ce[0],y:ce[1]},t.redrawHint("select",!0),t.redraw()):be.pannable()&&(ye[4]=1),Qe()}ye[0]=ye[2]=ce[0],ye[1]=ye[3]=ce[1]}},!1),t.registerBinding(e,"mousemove",function(O){var se=t.hoverData.capture;if(!(!se&&!D(O))){var Te=!1,ce=t.cy,ye=ce.zoom(),_e=[O.clientX,O.clientY],be=t.projectIntoViewport(_e[0],_e[1]),Ge=t.hoverData.mdownPos,Qe=t.hoverData.mdownGPos,vt=t.selection,qe=null;!t.hoverData.draggingEles&&!t.hoverData.dragging&&!t.hoverData.selecting&&(qe=t.findNearestElement(be[0],be[1],!0,!1));var st=t.hoverData.last,Ke=t.hoverData.down,Je=[be[0]-vt[2],be[1]-vt[3]],Ct=t.dragData.possibleDragElements,Rt;if(Qe){var ar=_e[0]-Qe[0],nr=ar*ar,kt=_e[1]-Qe[1],Jt=kt*kt,_t=nr+Jt;t.hoverData.isOverThresholdDrag=Rt=_t>=t.desktopTapThreshold2}var Er=n(O);Rt&&(t.hoverData.tapholdCancelled=!0);var Rr=function(){var cr=t.hoverData.dragDelta=t.hoverData.dragDelta||[];cr.length===0?(cr.push(Je[0]),cr.push(Je[1])):(cr[0]+=Je[0],cr[1]+=Je[1])};Te=!0,a(qe,["mousemove","vmousemove","tapdrag"],O,{x:be[0],y:be[1]});var xa=function(){t.data.bgActivePosistion=void 0,t.hoverData.selecting||ce.emit({originalEvent:O,type:"boxstart",position:{x:be[0],y:be[1]}}),vt[4]=1,t.hoverData.selecting=!0,t.redrawHint("select",!0),t.redraw()};if(t.hoverData.which===3){if(Rt){var Xr={originalEvent:O,type:"cxtdrag",position:{x:be[0],y:be[1]}};Ke?Ke.emit(Xr):ce.emit(Xr),t.hoverData.cxtDragged=!0,(!t.hoverData.cxtOver||qe!==t.hoverData.cxtOver)&&(t.hoverData.cxtOver&&t.hoverData.cxtOver.emit({originalEvent:O,type:"cxtdragout",position:{x:be[0],y:be[1]}}),t.hoverData.cxtOver=qe,qe&&qe.emit({originalEvent:O,type:"cxtdragover",position:{x:be[0],y:be[1]}}))}}else if(t.hoverData.dragging){if(Te=!0,ce.panningEnabled()&&ce.userPanningEnabled()){var Ta;if(t.hoverData.justStartedPan){var Jn=t.hoverData.mdownPos;Ta={x:(be[0]-Jn[0])*ye,y:(be[1]-Jn[1])*ye},t.hoverData.justStartedPan=!1}else Ta={x:Je[0]*ye,y:Je[1]*ye};ce.panBy(Ta),ce.emit("dragpan"),t.hoverData.dragged=!0}be=t.projectIntoViewport(O.clientX,O.clientY)}else if(vt[4]==1&&(Ke==null||Ke.pannable())){if(Rt){if(!t.hoverData.dragging&&ce.boxSelectionEnabled()&&(Er||!ce.panningEnabled()||!ce.userPanningEnabled()))xa();else if(!t.hoverData.selecting&&ce.panningEnabled()&&ce.userPanningEnabled()){var Wr=i(Ke,t.hoverData.downs);Wr&&(t.hoverData.dragging=!0,t.hoverData.justStartedPan=!0,vt[4]=0,t.data.bgActivePosistion=jr(Ge),t.redrawHint("select",!0),t.redraw())}Ke&&Ke.pannable()&&Ke.active()&&Ke.unactivate()}}else{if(Ke&&Ke.pannable()&&Ke.active()&&Ke.unactivate(),(!Ke||!Ke.grabbed())&&qe!=st&&(st&&a(st,["mouseout","tapdragout"],O,{x:be[0],y:be[1]}),qe&&a(qe,["mouseover","tapdragover"],O,{x:be[0],y:be[1]}),t.hoverData.last=qe),Ke)if(Rt){if(ce.boxSelectionEnabled()&&Er)Ke&&Ke.grabbed()&&(p(Ct),Ke.emit("freeon"),Ct.emit("free"),t.dragData.didDrag&&(Ke.emit("dragfreeon"),Ct.emit("dragfree"))),xa();else if(Ke&&Ke.grabbed()&&t.nodeIsDraggable(Ke)){var Xt=!t.dragData.didDrag;Xt&&t.redrawHint("eles",!0),t.dragData.didDrag=!0,t.hoverData.draggingEles||c(Ct,{inDragLayer:!0});var $t={x:0,y:0};if(R(Je[0])&&R(Je[1])&&($t.x+=Je[0],$t.y+=Je[1],Xt)){var Wt=t.hoverData.dragDelta;Wt&&R(Wt[0])&&R(Wt[1])&&($t.x+=Wt[0],$t.y+=Wt[1])}t.hoverData.draggingEles=!0,Ct.silentShift($t).emit("position drag"),t.redrawHint("drag",!0),t.redraw()}}else Rr();Te=!0}if(vt[2]=be[0],vt[3]=be[1],Te)return O.stopPropagation&&O.stopPropagation(),O.preventDefault&&O.preventDefault(),!1}},!1);var F,G,I;t.registerBinding(e,"mouseup",function(O){var se=t.hoverData.capture;if(se){t.hoverData.capture=!1;var Te=t.cy,ce=t.projectIntoViewport(O.clientX,O.clientY),ye=t.selection,_e=t.findNearestElement(ce[0],ce[1],!0,!1),be=t.dragData.possibleDragElements,Ge=t.hoverData.down,Qe=n(O);if(t.data.bgActivePosistion&&(t.redrawHint("select",!0),t.redraw()),t.hoverData.tapholdCancelled=!0,t.data.bgActivePosistion=void 0,Ge&&Ge.unactivate(),t.hoverData.which===3){var vt={originalEvent:O,type:"cxttapend",position:{x:ce[0],y:ce[1]}};if(Ge?Ge.emit(vt):Te.emit(vt),!t.hoverData.cxtDragged){var qe={originalEvent:O,type:"cxttap",position:{x:ce[0],y:ce[1]}};Ge?Ge.emit(qe):Te.emit(qe)}t.hoverData.cxtDragged=!1,t.hoverData.which=null}else if(t.hoverData.which===1){if(a(_e,["mouseup","tapend","vmouseup"],O,{x:ce[0],y:ce[1]}),!t.dragData.didDrag&&!t.hoverData.dragged&&!t.hoverData.selecting&&!t.hoverData.isOverThresholdDrag&&(a(Ge,["click","tap","vclick"],O,{x:ce[0],y:ce[1]}),G=!1,O.timeStamp-I<=Te.multiClickDebounceTime()?(F&&clearTimeout(F),G=!0,I=null,a(Ge,["dblclick","dbltap","vdblclick"],O,{x:ce[0],y:ce[1]})):(F=setTimeout(function(){G||a(Ge,["oneclick","onetap","voneclick"],O,{x:ce[0],y:ce[1]})},Te.multiClickDebounceTime()),I=O.timeStamp)),Ge==null&&!t.dragData.didDrag&&!t.hoverData.selecting&&!t.hoverData.dragged&&!n(O)&&(Te.$(r).unselect(["tapunselect"]),be.length>0&&t.redrawHint("eles",!0),t.dragData.possibleDragElements=be=Te.collection()),_e==Ge&&!t.dragData.didDrag&&!t.hoverData.selecting&&_e!=null&&_e._private.selectable&&(t.hoverData.dragging||(Te.selectionType()==="additive"||Qe?_e.selected()?_e.unselect(["tapunselect"]):_e.select(["tapselect"]):Qe||(Te.$(r).unmerge(_e).unselect(["tapunselect"]),_e.select(["tapselect"]))),t.redrawHint("eles",!0)),t.hoverData.selecting){var st=Te.collection(t.getAllInBox(ye[0],ye[1],ye[2],ye[3]));t.redrawHint("select",!0),st.length>0&&t.redrawHint("eles",!0),Te.emit({type:"boxend",originalEvent:O,position:{x:ce[0],y:ce[1]}});var Ke=function(Rt){return Rt.selectable()&&!Rt.selected()};Te.selectionType()==="additive"||Qe||Te.$(r).unmerge(st).unselect(),st.emit("box").stdFilter(Ke).select().emit("boxselect"),t.redraw()}if(t.hoverData.dragging&&(t.hoverData.dragging=!1,t.redrawHint("select",!0),t.redrawHint("eles",!0),t.redraw()),!ye[4]){t.redrawHint("drag",!0),t.redrawHint("eles",!0);var Je=Ge&&Ge.grabbed();p(be),Je&&(Ge.emit("freeon"),be.emit("free"),t.dragData.didDrag&&(Ge.emit("dragfreeon"),be.emit("dragfree")))}}ye[4]=0,t.hoverData.down=null,t.hoverData.cxtStarted=!1,t.hoverData.draggingEles=!1,t.hoverData.selecting=!1,t.hoverData.isOverThresholdDrag=!1,t.dragData.didDrag=!1,t.hoverData.dragged=!1,t.hoverData.dragDelta=[],t.hoverData.mdownPos=null,t.hoverData.mdownGPos=null}},!1);var X=function(O){if(!t.scrollingPage){var se=t.cy,Te=se.zoom(),ce=se.pan(),ye=t.projectIntoViewport(O.clientX,O.clientY),_e=[ye[0]*Te+ce.x,ye[1]*Te+ce.y];if(t.hoverData.draggingEles||t.hoverData.dragging||t.hoverData.cxtStarted||k()){O.preventDefault();return}if(se.panningEnabled()&&se.userPanningEnabled()&&se.zoomingEnabled()&&se.userZoomingEnabled()){O.preventDefault(),t.data.wheelZooming=!0,clearTimeout(t.data.wheelTimeout),t.data.wheelTimeout=setTimeout(function(){t.data.wheelZooming=!1,t.redrawHint("eles",!0),t.redraw()},150);var be;O.deltaY!=null?be=O.deltaY/-250:O.wheelDeltaY!=null?be=O.wheelDeltaY/1e3:be=O.wheelDelta/1e3,be=be*t.wheelSensitivity;var Ge=O.deltaMode===1;Ge&&(be*=33);var Qe=se.zoom()*Math.pow(10,be);O.type==="gesturechange"&&(Qe=t.gestureStartZoom*O.scale),se.zoom({level:Qe,renderedPosition:{x:_e[0],y:_e[1]}}),se.emit(O.type==="gesturechange"?"pinchzoom":"scrollzoom")}}};t.registerBinding(t.container,"wheel",X,!0),t.registerBinding(e,"scroll",function(O){t.scrollingPage=!0,clearTimeout(t.scrollingPageTimeout),t.scrollingPageTimeout=setTimeout(function(){t.scrollingPage=!1},250)},!0),t.registerBinding(t.container,"gesturestart",function(O){t.gestureStartZoom=t.cy.zoom(),t.hasTouchStarted||O.preventDefault()},!0),t.registerBinding(t.container,"gesturechange",function(fe){t.hasTouchStarted||X(fe)},!0),t.registerBinding(t.container,"mouseout",function(O){var se=t.projectIntoViewport(O.clientX,O.clientY);t.cy.emit({originalEvent:O,type:"mouseout",position:{x:se[0],y:se[1]}})},!1),t.registerBinding(t.container,"mouseover",function(O){var se=t.projectIntoViewport(O.clientX,O.clientY);t.cy.emit({originalEvent:O,type:"mouseover",position:{x:se[0],y:se[1]}})},!1);var B,re,K,W,ae,ue,me,ie,ge,Ee,Ce,we,De,oe=function(O,se,Te,ce){return Math.sqrt((Te-O)*(Te-O)+(ce-se)*(ce-se))},xe=function(O,se,Te,ce){return(Te-O)*(Te-O)+(ce-se)*(ce-se)},Le;t.registerBinding(t.container,"touchstart",Le=function(O){if(t.hasTouchStarted=!0,!!D(O)){m(),t.touchData.capture=!0,t.data.bgActivePosistion=void 0;var se=t.cy,Te=t.touchData.now,ce=t.touchData.earlier;if(O.touches[0]){var ye=t.projectIntoViewport(O.touches[0].clientX,O.touches[0].clientY);Te[0]=ye[0],Te[1]=ye[1]}if(O.touches[1]){var ye=t.projectIntoViewport(O.touches[1].clientX,O.touches[1].clientY);Te[2]=ye[0],Te[3]=ye[1]}if(O.touches[2]){var ye=t.projectIntoViewport(O.touches[2].clientX,O.touches[2].clientY);Te[4]=ye[0],Te[5]=ye[1]}if(O.touches[1]){t.touchData.singleTouchMoved=!0,p(t.dragData.touchDragEles);var _e=t.findContainerClientCoords();ge=_e[0],Ee=_e[1],Ce=_e[2],we=_e[3],B=O.touches[0].clientX-ge,re=O.touches[0].clientY-Ee,K=O.touches[1].clientX-ge,W=O.touches[1].clientY-Ee,De=0<=B&&B<=Ce&&0<=K&&K<=Ce&&0<=re&&re<=we&&0<=W&&W<=we;var be=se.pan(),Ge=se.zoom();ae=oe(B,re,K,W),ue=xe(B,re,K,W),me=[(B+K)/2,(re+W)/2],ie=[(me[0]-be.x)/Ge,(me[1]-be.y)/Ge];var Qe=200,vt=Qe*Qe;if(ue<vt&&!O.touches[2]){var qe=t.findNearestElement(Te[0],Te[1],!0,!0),st=t.findNearestElement(Te[2],Te[3],!0,!0);qe&&qe.isNode()?(qe.activate().emit({originalEvent:O,type:"cxttapstart",position:{x:Te[0],y:Te[1]}}),t.touchData.start=qe):st&&st.isNode()?(st.activate().emit({originalEvent:O,type:"cxttapstart",position:{x:Te[0],y:Te[1]}}),t.touchData.start=st):se.emit({originalEvent:O,type:"cxttapstart",position:{x:Te[0],y:Te[1]}}),t.touchData.start&&(t.touchData.start._private.grabbed=!1),t.touchData.cxt=!0,t.touchData.cxtDragged=!1,t.data.bgActivePosistion=void 0,t.redraw();return}}if(O.touches[2])se.boxSelectionEnabled()&&O.preventDefault();else if(!O.touches[1]){if(O.touches[0]){var Ke=t.findNearestElements(Te[0],Te[1],!0,!0),Je=Ke[0];if(Je!=null&&(Je.activate(),t.touchData.start=Je,t.touchData.starts=Ke,t.nodeIsGrabbable(Je))){var Ct=t.dragData.touchDragEles=se.collection(),Rt=null;t.redrawHint("eles",!0),t.redrawHint("drag",!0),Je.selected()?(Rt=se.$(function(_t){return _t.selected()&&t.nodeIsGrabbable(_t)}),c(Rt,{addToList:Ct})):y(Je,{addToList:Ct}),v(Je);var ar=function(Er){return{originalEvent:O,type:Er,position:{x:Te[0],y:Te[1]}}};Je.emit(ar("grabon")),Rt?Rt.forEach(function(_t){_t.emit(ar("grab"))}):Je.emit(ar("grab"))}a(Je,["touchstart","tapstart","vmousedown"],O,{x:Te[0],y:Te[1]}),Je==null&&(t.data.bgActivePosistion={x:ye[0],y:ye[1]},t.redrawHint("select",!0),t.redraw()),t.touchData.singleTouchMoved=!1,t.touchData.singleTouchStartTime=+new Date,clearTimeout(t.touchData.tapholdTimeout),t.touchData.tapholdTimeout=setTimeout(function(){t.touchData.singleTouchMoved===!1&&!t.pinching&&!t.touchData.selecting&&a(t.touchData.start,["taphold"],O,{x:Te[0],y:Te[1]})},t.tapholdDuration)}}if(O.touches.length>=1){for(var nr=t.touchData.startPosition=[null,null,null,null,null,null],kt=0;kt<Te.length;kt++)nr[kt]=ce[kt]=Te[kt];var Jt=O.touches[0];t.touchData.startGPosition=[Jt.clientX,Jt.clientY]}}},!1);var Se;t.registerBinding(window,"touchmove",Se=function(O){var se=t.touchData.capture;if(!(!se&&!D(O))){var Te=t.selection,ce=t.cy,ye=t.touchData.now,_e=t.touchData.earlier,be=ce.zoom();if(O.touches[0]){var Ge=t.projectIntoViewport(O.touches[0].clientX,O.touches[0].clientY);ye[0]=Ge[0],ye[1]=Ge[1]}if(O.touches[1]){var Ge=t.projectIntoViewport(O.touches[1].clientX,O.touches[1].clientY);ye[2]=Ge[0],ye[3]=Ge[1]}if(O.touches[2]){var Ge=t.projectIntoViewport(O.touches[2].clientX,O.touches[2].clientY);ye[4]=Ge[0],ye[5]=Ge[1]}var Qe=t.touchData.startGPosition,vt;if(se&&O.touches[0]&&Qe){for(var qe=[],st=0;st<ye.length;st++)qe[st]=ye[st]-_e[st];var Ke=O.touches[0].clientX-Qe[0],Je=Ke*Ke,Ct=O.touches[0].clientY-Qe[1],Rt=Ct*Ct,ar=Je+Rt;vt=ar>=t.touchTapThreshold2}if(se&&t.touchData.cxt){O.preventDefault();var nr=O.touches[0].clientX-ge,kt=O.touches[0].clientY-Ee,Jt=O.touches[1].clientX-ge,_t=O.touches[1].clientY-Ee,Er=xe(nr,kt,Jt,_t),Rr=Er/ue,xa=150,Xr=xa*xa,Ta=1.5,Jn=Ta*Ta;if(Rr>=Jn||Er>=Xr){t.touchData.cxt=!1,t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);var Wr={originalEvent:O,type:"cxttapend",position:{x:ye[0],y:ye[1]}};t.touchData.start?(t.touchData.start.unactivate().emit(Wr),t.touchData.start=null):ce.emit(Wr)}}if(se&&t.touchData.cxt){var Wr={originalEvent:O,type:"cxtdrag",position:{x:ye[0],y:ye[1]}};t.data.bgActivePosistion=void 0,t.redrawHint("select",!0),t.touchData.start?t.touchData.start.emit(Wr):ce.emit(Wr),t.touchData.start&&(t.touchData.start._private.grabbed=!1),t.touchData.cxtDragged=!0;var Xt=t.findNearestElement(ye[0],ye[1],!0,!0);(!t.touchData.cxtOver||Xt!==t.touchData.cxtOver)&&(t.touchData.cxtOver&&t.touchData.cxtOver.emit({originalEvent:O,type:"cxtdragout",position:{x:ye[0],y:ye[1]}}),t.touchData.cxtOver=Xt,Xt&&Xt.emit({originalEvent:O,type:"cxtdragover",position:{x:ye[0],y:ye[1]}}))}else if(se&&O.touches[2]&&ce.boxSelectionEnabled())O.preventDefault(),t.data.bgActivePosistion=void 0,this.lastThreeTouch=+new Date,t.touchData.selecting||ce.emit({originalEvent:O,type:"boxstart",position:{x:ye[0],y:ye[1]}}),t.touchData.selecting=!0,t.touchData.didSelect=!0,Te[4]=1,!Te||Te.length===0||Te[0]===void 0?(Te[0]=(ye[0]+ye[2]+ye[4])/3,Te[1]=(ye[1]+ye[3]+ye[5])/3,Te[2]=(ye[0]+ye[2]+ye[4])/3+1,Te[3]=(ye[1]+ye[3]+ye[5])/3+1):(Te[2]=(ye[0]+ye[2]+ye[4])/3,Te[3]=(ye[1]+ye[3]+ye[5])/3),t.redrawHint("select",!0),t.redraw();else if(se&&O.touches[1]&&!t.touchData.didSelect&&ce.zoomingEnabled()&&ce.panningEnabled()&&ce.userZoomingEnabled()&&ce.userPanningEnabled()){O.preventDefault(),t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);var $t=t.dragData.touchDragEles;if($t){t.redrawHint("drag",!0);for(var Wt=0;Wt<$t.length;Wt++){var jn=$t[Wt]._private;jn.grabbed=!1,jn.rscratch.inDragLayer=!1}}var cr=t.touchData.start,nr=O.touches[0].clientX-ge,kt=O.touches[0].clientY-Ee,Jt=O.touches[1].clientX-ge,_t=O.touches[1].clientY-Ee,Bl=oe(nr,kt,Jt,_t),sp=Bl/ae;if(De){var lp=nr-B,up=kt-re,vp=Jt-K,fp=_t-W,hp=(lp+vp)/2,cp=(up+fp)/2,rn=ce.zoom(),Wi=rn*sp,ei=ce.pan(),Fl=ie[0]*rn+ei.x,Gl=ie[1]*rn+ei.y,dp={x:-Wi/rn*(Fl-ei.x-hp)+Fl,y:-Wi/rn*(Gl-ei.y-cp)+Gl};if(cr&&cr.active()){var $t=t.dragData.touchDragEles;p($t),t.redrawHint("drag",!0),t.redrawHint("eles",!0),cr.unactivate().emit("freeon"),$t.emit("free"),t.dragData.didDrag&&(cr.emit("dragfreeon"),$t.emit("dragfree"))}ce.viewport({zoom:Wi,pan:dp,cancelOnFailedZoom:!0}),ce.emit("pinchzoom"),ae=Bl,B=nr,re=kt,K=Jt,W=_t,t.pinching=!0}if(O.touches[0]){var Ge=t.projectIntoViewport(O.touches[0].clientX,O.touches[0].clientY);ye[0]=Ge[0],ye[1]=Ge[1]}if(O.touches[1]){var Ge=t.projectIntoViewport(O.touches[1].clientX,O.touches[1].clientY);ye[2]=Ge[0],ye[3]=Ge[1]}if(O.touches[2]){var Ge=t.projectIntoViewport(O.touches[2].clientX,O.touches[2].clientY);ye[4]=Ge[0],ye[5]=Ge[1]}}else if(O.touches[0]&&!t.touchData.didSelect){var ir=t.touchData.start,qi=t.touchData.last,Xt;if(!t.hoverData.draggingEles&&!t.swipePanning&&(Xt=t.findNearestElement(ye[0],ye[1],!0,!0)),se&&ir!=null&&O.preventDefault(),se&&ir!=null&&t.nodeIsDraggable(ir))if(vt){var $t=t.dragData.touchDragEles,zl=!t.dragData.didDrag;zl&&c($t,{inDragLayer:!0}),t.dragData.didDrag=!0;var an={x:0,y:0};if(R(qe[0])&&R(qe[1])&&(an.x+=qe[0],an.y+=qe[1],zl)){t.redrawHint("eles",!0);var or=t.touchData.dragDelta;or&&R(or[0])&&R(or[1])&&(an.x+=or[0],an.y+=or[1])}t.hoverData.draggingEles=!0,$t.silentShift(an).emit("position drag"),t.redrawHint("drag",!0),t.touchData.startPosition[0]==_e[0]&&t.touchData.startPosition[1]==_e[1]&&t.redrawHint("eles",!0),t.redraw()}else{var or=t.touchData.dragDelta=t.touchData.dragDelta||[];or.length===0?(or.push(qe[0]),or.push(qe[1])):(or[0]+=qe[0],or[1]+=qe[1])}if(a(ir||Xt,["touchmove","tapdrag","vmousemove"],O,{x:ye[0],y:ye[1]}),(!ir||!ir.grabbed())&&Xt!=qi&&(qi&&qi.emit({originalEvent:O,type:"tapdragout",position:{x:ye[0],y:ye[1]}}),Xt&&Xt.emit({originalEvent:O,type:"tapdragover",position:{x:ye[0],y:ye[1]}})),t.touchData.last=Xt,se)for(var Wt=0;Wt<ye.length;Wt++)ye[Wt]&&t.touchData.startPosition[Wt]&&vt&&(t.touchData.singleTouchMoved=!0);if(se&&(ir==null||ir.pannable())&&ce.panningEnabled()&&ce.userPanningEnabled()){var gp=i(ir,t.touchData.starts);gp&&(O.preventDefault(),t.data.bgActivePosistion||(t.data.bgActivePosistion=jr(t.touchData.startPosition)),t.swipePanning?(ce.panBy({x:qe[0]*be,y:qe[1]*be}),ce.emit("dragpan")):vt&&(t.swipePanning=!0,ce.panBy({x:Ke*be,y:Ct*be}),ce.emit("dragpan"),ir&&(ir.unactivate(),t.redrawHint("select",!0),t.touchData.start=null)));var Ge=t.projectIntoViewport(O.touches[0].clientX,O.touches[0].clientY);ye[0]=Ge[0],ye[1]=Ge[1]}}for(var st=0;st<ye.length;st++)_e[st]=ye[st];se&&O.touches.length>0&&!t.hoverData.draggingEles&&!t.swipePanning&&t.data.bgActivePosistion!=null&&(t.data.bgActivePosistion=void 0,t.redrawHint("select",!0),t.redraw())}},!1);var Oe;t.registerBinding(e,"touchcancel",Oe=function(O){var se=t.touchData.start;t.touchData.capture=!1,se&&se.unactivate()});var Fe,Xe,Ie,Me;if(t.registerBinding(e,"touchend",Fe=function(O){var se=t.touchData.start,Te=t.touchData.capture;if(Te)O.touches.length===0&&(t.touchData.capture=!1),O.preventDefault();else return;var ce=t.selection;t.swipePanning=!1,t.hoverData.draggingEles=!1;var ye=t.cy,_e=ye.zoom(),be=t.touchData.now,Ge=t.touchData.earlier;if(O.touches[0]){var Qe=t.projectIntoViewport(O.touches[0].clientX,O.touches[0].clientY);be[0]=Qe[0],be[1]=Qe[1]}if(O.touches[1]){var Qe=t.projectIntoViewport(O.touches[1].clientX,O.touches[1].clientY);be[2]=Qe[0],be[3]=Qe[1]}if(O.touches[2]){var Qe=t.projectIntoViewport(O.touches[2].clientX,O.touches[2].clientY);be[4]=Qe[0],be[5]=Qe[1]}se&&se.unactivate();var vt;if(t.touchData.cxt){if(vt={originalEvent:O,type:"cxttapend",position:{x:be[0],y:be[1]}},se?se.emit(vt):ye.emit(vt),!t.touchData.cxtDragged){var qe={originalEvent:O,type:"cxttap",position:{x:be[0],y:be[1]}};se?se.emit(qe):ye.emit(qe)}t.touchData.start&&(t.touchData.start._private.grabbed=!1),t.touchData.cxt=!1,t.touchData.start=null,t.redraw();return}if(!O.touches[2]&&ye.boxSelectionEnabled()&&t.touchData.selecting){t.touchData.selecting=!1;var st=ye.collection(t.getAllInBox(ce[0],ce[1],ce[2],ce[3]));ce[0]=void 0,ce[1]=void 0,ce[2]=void 0,ce[3]=void 0,ce[4]=0,t.redrawHint("select",!0),ye.emit({type:"boxend",originalEvent:O,position:{x:be[0],y:be[1]}});var Ke=function(Xr){return Xr.selectable()&&!Xr.selected()};st.emit("box").stdFilter(Ke).select().emit("boxselect"),st.nonempty()&&t.redrawHint("eles",!0),t.redraw()}if(se!=null&&se.unactivate(),O.touches[2])t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);else if(!O.touches[1]){if(!O.touches[0]){if(!O.touches[0]){t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);var Je=t.dragData.touchDragEles;if(se!=null){var Ct=se._private.grabbed;p(Je),t.redrawHint("drag",!0),t.redrawHint("eles",!0),Ct&&(se.emit("freeon"),Je.emit("free"),t.dragData.didDrag&&(se.emit("dragfreeon"),Je.emit("dragfree"))),a(se,["touchend","tapend","vmouseup","tapdragout"],O,{x:be[0],y:be[1]}),se.unactivate(),t.touchData.start=null}else{var Rt=t.findNearestElement(be[0],be[1],!0,!0);a(Rt,["touchend","tapend","vmouseup","tapdragout"],O,{x:be[0],y:be[1]})}var ar=t.touchData.startPosition[0]-be[0],nr=ar*ar,kt=t.touchData.startPosition[1]-be[1],Jt=kt*kt,_t=nr+Jt,Er=_t*_e*_e;t.touchData.singleTouchMoved||(se||ye.$(":selected").unselect(["tapunselect"]),a(se,["tap","vclick"],O,{x:be[0],y:be[1]}),Xe=!1,O.timeStamp-Me<=ye.multiClickDebounceTime()?(Ie&&clearTimeout(Ie),Xe=!0,Me=null,a(se,["dbltap","vdblclick"],O,{x:be[0],y:be[1]})):(Ie=setTimeout(function(){Xe||a(se,["onetap","voneclick"],O,{x:be[0],y:be[1]})},ye.multiClickDebounceTime()),Me=O.timeStamp)),se!=null&&!t.dragData.didDrag&&se._private.selectable&&Er<t.touchTapThreshold2&&!t.pinching&&(ye.selectionType()==="single"?(ye.$(r).unmerge(se).unselect(["tapunselect"]),se.select(["tapselect"])):se.selected()?se.unselect(["tapunselect"]):se.select(["tapselect"]),t.redrawHint("eles",!0)),t.touchData.singleTouchMoved=!0}}}for(var Rr=0;Rr<be.length;Rr++)Ge[Rr]=be[Rr];t.dragData.didDrag=!1,O.touches.length===0&&(t.touchData.dragDelta=[],t.touchData.startPosition=[null,null,null,null,null,null],t.touchData.startGPosition=null,t.touchData.didSelect=!1),O.touches.length<2&&(O.touches.length===1&&(t.touchData.startGPosition=[O.touches[0].clientX,O.touches[0].clientY]),t.pinching=!1,t.redrawHint("eles",!0),t.redraw())},!1),typeof TouchEvent>"u"){var $e=[],ze=function(O){return{clientX:O.clientX,clientY:O.clientY,force:1,identifier:O.pointerId,pageX:O.pageX,pageY:O.pageY,radiusX:O.width/2,radiusY:O.height/2,screenX:O.screenX,screenY:O.screenY,target:O.target}},Be=function(O){return{event:O,touch:ze(O)}},Ue=function(O){$e.push(Be(O))},rt=function(O){for(var se=0;se<$e.length;se++){var Te=$e[se];if(Te.event.pointerId===O.pointerId){$e.splice(se,1);return}}},je=function(O){var se=$e.filter(function(Te){return Te.event.pointerId===O.pointerId})[0];se.event=O,se.touch=ze(O)},We=function(O){O.touches=$e.map(function(se){return se.touch})},et=function(O){return O.pointerType==="mouse"||O.pointerType===4};t.registerBinding(t.container,"pointerdown",function(fe){et(fe)||(fe.preventDefault(),Ue(fe),We(fe),Le(fe))}),t.registerBinding(t.container,"pointerup",function(fe){et(fe)||(rt(fe),We(fe),Fe(fe))}),t.registerBinding(t.container,"pointercancel",function(fe){et(fe)||(rt(fe),We(fe),Oe(fe))}),t.registerBinding(t.container,"pointermove",function(fe){et(fe)||(fe.preventDefault(),je(fe),We(fe),Se(fe))})}};var mr={};mr.generatePolygon=function(t,e){return this.nodeShapes[t]={renderer:this,name:t,points:e,draw:function(a,n,i,o,s){this.renderer.nodeShapeImpl("polygon",a,n,i,o,s,this.points)},intersectLine:function(a,n,i,o,s,u,l){return Ba(s,u,this.points,a,n,i/2,o/2,l)},checkPoint:function(a,n,i,o,s,u,l){return pr(a,n,this.points,u,l,o,s,[0,-1],i)}}},mr.generateEllipse=function(){return this.nodeShapes.ellipse={renderer:this,name:"ellipse",draw:function(e,r,a,n,i){this.renderer.nodeShapeImpl(this.name,e,r,a,n,i)},intersectLine:function(e,r,a,n,i,o,s){return Mv(i,o,e,r,a/2+s,n/2+s)},checkPoint:function(e,r,a,n,i,o,s){return Gr(e,r,n,i,o,s,a)}}},mr.generateRoundPolygon=function(t,e){for(var r=new Array(e.length*2),a=0;a<e.length/2;a++){var n=a*2,i=void 0;a<e.length/2-1?i=(a+1)*2:i=0,r[a*4]=e[n],r[a*4+1]=e[n+1];var o=e[i]-e[n],s=e[i+1]-e[n+1],u=Math.sqrt(o*o+s*s);r[a*4+2]=o/u,r[a*4+3]=s/u}return this.nodeShapes[t]={renderer:this,name:t,points:r,draw:function(v,f,h,d,c){this.renderer.nodeShapeImpl("round-polygon",v,f,h,d,c,this.points)},intersectLine:function(v,f,h,d,c,y,p){return Rv(c,y,this.points,v,f,h,d)},checkPoint:function(v,f,h,d,c,y,p){return Iv(v,f,this.points,y,p,d,c)}}},mr.generateRoundRectangle=function(){return this.nodeShapes["round-rectangle"]=this.nodeShapes.roundrectangle={renderer:this,name:"round-rectangle",points:Ut(4,0),draw:function(e,r,a,n,i){this.renderer.nodeShapeImpl(this.name,e,r,a,n,i)},intersectLine:function(e,r,a,n,i,o,s){return Do(i,o,e,r,a,n,s)},checkPoint:function(e,r,a,n,i,o,s){var u=Fa(n,i),l=u*2;return!!(pr(e,r,this.points,o,s,n,i-l,[0,-1],a)||pr(e,r,this.points,o,s,n-l,i,[0,-1],a)||Gr(e,r,l,l,o-n/2+u,s-i/2+u,a)||Gr(e,r,l,l,o+n/2-u,s-i/2+u,a)||Gr(e,r,l,l,o+n/2-u,s+i/2-u,a)||Gr(e,r,l,l,o-n/2+u,s+i/2-u,a))}}},mr.generateCutRectangle=function(){return this.nodeShapes["cut-rectangle"]=this.nodeShapes.cutrectangle={renderer:this,name:"cut-rectangle",cornerLength:Lo(),points:Ut(4,0),draw:function(e,r,a,n,i){this.renderer.nodeShapeImpl(this.name,e,r,a,n,i)},generateCutTrianglePts:function(e,r,a,n){var i=this.cornerLength,o=r/2,s=e/2,u=a-s,l=a+s,v=n-o,f=n+o;return{topLeft:[u,v+i,u+i,v,u+i,v+i],topRight:[l-i,v,l,v+i,l-i,v+i],bottomRight:[l,f-i,l-i,f,l-i,f-i],bottomLeft:[u+i,f,u,f-i,u+i,f-i]}},intersectLine:function(e,r,a,n,i,o,s){var u=this.generateCutTrianglePts(a+2*s,n+2*s,e,r),l=[].concat.apply([],[u.topLeft.splice(0,4),u.topRight.splice(0,4),u.bottomRight.splice(0,4),u.bottomLeft.splice(0,4)]);return Ba(i,o,l,e,r)},checkPoint:function(e,r,a,n,i,o,s){if(pr(e,r,this.points,o,s,n,i-2*this.cornerLength,[0,-1],a)||pr(e,r,this.points,o,s,n-2*this.cornerLength,i,[0,-1],a))return!0;var u=this.generateCutTrianglePts(n,i,o,s);return Ht(e,r,u.topLeft)||Ht(e,r,u.topRight)||Ht(e,r,u.bottomRight)||Ht(e,r,u.bottomLeft)}}},mr.generateBarrel=function(){return this.nodeShapes.barrel={renderer:this,name:"barrel",points:Ut(4,0),draw:function(e,r,a,n,i){this.renderer.nodeShapeImpl(this.name,e,r,a,n,i)},intersectLine:function(e,r,a,n,i,o,s){var u=.15,l=.5,v=.85,f=this.generateBarrelBezierPts(a+2*s,n+2*s,e,r),h=function(y){var p=ea({x:y[0],y:y[1]},{x:y[2],y:y[3]},{x:y[4],y:y[5]},u),g=ea({x:y[0],y:y[1]},{x:y[2],y:y[3]},{x:y[4],y:y[5]},l),m=ea({x:y[0],y:y[1]},{x:y[2],y:y[3]},{x:y[4],y:y[5]},v);return[y[0],y[1],p.x,p.y,g.x,g.y,m.x,m.y,y[4],y[5]]},d=[].concat(h(f.topLeft),h(f.topRight),h(f.bottomRight),h(f.bottomLeft));return Ba(i,o,d,e,r)},generateBarrelBezierPts:function(e,r,a,n){var i=r/2,o=e/2,s=a-o,u=a+o,l=n-i,v=n+i,f=di(e,r),h=f.heightOffset,d=f.widthOffset,c=f.ctrlPtOffsetPct*e,y={topLeft:[s,l+h,s+c,l,s+d,l],topRight:[u-d,l,u-c,l,u,l+h],bottomRight:[u,v-h,u-c,v,u-d,v],bottomLeft:[s+d,v,s+c,v,s,v-h]};return y.topLeft.isTop=!0,y.topRight.isTop=!0,y.bottomLeft.isBottom=!0,y.bottomRight.isBottom=!0,y},checkPoint:function(e,r,a,n,i,o,s){var u=di(n,i),l=u.heightOffset,v=u.widthOffset;if(pr(e,r,this.points,o,s,n,i-2*l,[0,-1],a)||pr(e,r,this.points,o,s,n-2*v,i,[0,-1],a))return!0;for(var f=this.generateBarrelBezierPts(n,i,o,s),h=function(w,k,D){var F=D[4],G=D[2],I=D[0],X=D[5],B=D[1],re=Math.min(F,I),K=Math.max(F,I),W=Math.min(X,B),ae=Math.max(X,B);if(re<=w&&w<=K&&W<=k&&k<=ae){var ue=kv(F,G,I),me=Lv(ue[0],ue[1],ue[2],w),ie=me.filter(function(ge){return 0<=ge&&ge<=1});if(ie.length>0)return ie[0]}return null},d=Object.keys(f),c=0;c<d.length;c++){var y=d[c],p=f[y],g=h(e,r,p);if(g!=null){var m=p[5],b=p[3],E=p[1],M=Lt(m,b,E,g);if(p.isTop&&M<=r||p.isBottom&&r<=M)return!0}}return!1}}},mr.generateBottomRoundrectangle=function(){return this.nodeShapes["bottom-round-rectangle"]=this.nodeShapes.bottomroundrectangle={renderer:this,name:"bottom-round-rectangle",points:Ut(4,0),draw:function(e,r,a,n,i){this.renderer.nodeShapeImpl(this.name,e,r,a,n,i)},intersectLine:function(e,r,a,n,i,o,s){var u=e-(a/2+s),l=r-(n/2+s),v=l,f=e+(a/2+s),h=Cr(i,o,e,r,u,l,f,v,!1);return h.length>0?h:Do(i,o,e,r,a,n,s)},checkPoint:function(e,r,a,n,i,o,s){var u=Fa(n,i),l=2*u;if(pr(e,r,this.points,o,s,n,i-l,[0,-1],a)||pr(e,r,this.points,o,s,n-l,i,[0,-1],a))return!0;var v=n/2+2*a,f=i/2+2*a,h=[o-v,s-f,o-v,s,o+v,s,o+v,s-f];return!!(Ht(e,r,h)||Gr(e,r,l,l,o+n/2-u,s+i/2-u,a)||Gr(e,r,l,l,o-n/2+u,s+i/2-u,a))}}},mr.registerNodeShapes=function(){var t=this.nodeShapes={},e=this;this.generateEllipse(),this.generatePolygon("triangle",Ut(3,0)),this.generateRoundPolygon("round-triangle",Ut(3,0)),this.generatePolygon("rectangle",Ut(4,0)),t.square=t.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",Ut(5,0)),this.generateRoundPolygon("round-pentagon",Ut(5,0)),this.generatePolygon("hexagon",Ut(6,0)),this.generateRoundPolygon("round-hexagon",Ut(6,0)),this.generatePolygon("heptagon",Ut(7,0)),this.generateRoundPolygon("round-heptagon",Ut(7,0)),this.generatePolygon("octagon",Ut(8,0)),this.generateRoundPolygon("round-octagon",Ut(8,0));var a=new Array(20);{var n=hi(5,0),i=hi(5,Math.PI/5),o=.5*(3-Math.sqrt(5));o*=1.57;for(var s=0;s<i.length/2;s++)i[s*2]*=o,i[s*2+1]*=o;for(var s=0;s<20/4;s++)a[s*4]=n[s*2],a[s*4+1]=n[s*2+1],a[s*4+2]=i[s*2],a[s*4+3]=i[s*2+1]}a=So(a),this.generatePolygon("star",a),this.generatePolygon("vee",[-1,-1,0,-.333,1,-1,0,1]),this.generatePolygon("rhomboid",[-1,-1,.333,-1,1,1,-.333,1]),this.generatePolygon("right-rhomboid",[-.333,-1,1,-1,.333,1,-1,1]),this.nodeShapes.concavehexagon=this.generatePolygon("concave-hexagon",[-1,-.95,-.75,0,-1,.95,1,.95,.75,0,1,-.95]);{var u=[-1,-1,.25,-1,1,0,.25,1,-1,1];this.generatePolygon("tag",u),this.generateRoundPolygon("round-tag",u)}t.makePolygon=function(l){var v=l.join("$"),f="polygon-"+v,h;return(h=this[f])?h:e.generatePolygon(f,l)}};var Ja={};Ja.timeToRender=function(){return this.redrawTotalTime/this.redrawCount},Ja.redraw=function(t){t=t||mo();var e=this;e.averageRedrawTime===void 0&&(e.averageRedrawTime=0),e.lastRedrawTime===void 0&&(e.lastRedrawTime=0),e.lastDrawTime===void 0&&(e.lastDrawTime=0),e.requestedFrame=!0,e.renderOptions=t},Ja.beforeRender=function(t,e){if(!this.destroyed){e==null&&xt("Priority is not optional for beforeRender");var r=this.beforeRenderCallbacks;r.push({fn:t,priority:e}),r.sort(function(a,n){return n.priority-a.priority})}};var hl=function(e,r,a){for(var n=e.beforeRenderCallbacks,i=0;i<n.length;i++)n[i].fn(r,a)};Ja.startRenderLoop=function(){var t=this,e=t.cy;if(!t.renderLoopStarted){t.renderLoopStarted=!0;var r=function a(n){if(!t.destroyed){if(!e.batching())if(t.requestedFrame&&!t.skipFrame){hl(t,!0,n);var i=gr();t.render(t.renderOptions);var o=t.lastDrawTime=gr();t.averageRedrawTime===void 0&&(t.averageRedrawTime=o-i),t.redrawCount===void 0&&(t.redrawCount=0),t.redrawCount++,t.redrawTotalTime===void 0&&(t.redrawTotalTime=0);var s=o-i;t.redrawTotalTime+=s,t.lastRedrawTime=s,t.averageRedrawTime=t.averageRedrawTime/2+s/2,t.requestedFrame=!1}else hl(t,!1,n);t.skipFrame=!1,ln(a)}};ln(r)}};var dg=function(e){this.init(e)},cl=dg,ma=cl.prototype;ma.clientFunctions=["redrawHint","render","renderTo","matchCanvasSize","nodeShapeImpl","arrowShapeImpl"],ma.init=function(t){var e=this;e.options=t,e.cy=t.cy;var r=e.container=t.cy.container(),a=e.cy.window();if(a){var n=a.document,i=n.head,o="__________cytoscape_stylesheet",s="__________cytoscape_container",u=n.getElementById(o)!=null;if(r.className.indexOf(s)<0&&(r.className=(r.className||"")+" "+s),!u){var l=n.createElement("style");l.id=o,l.textContent="."+s+" { position: relative; }",i.insertBefore(l,i.children[0])}var v=a.getComputedStyle(r),f=v.getPropertyValue("position");f==="static"&&ht("A Cytoscape container has style position:static and so can not use UI extensions properly")}e.selection=[void 0,void 0,void 0,void 0,0],e.bezierProjPcts=[.05,.225,.4,.5,.6,.775,.95],e.hoverData={down:null,last:null,downTime:null,triggerMode:null,dragging:!1,initialPan:[null,null],capture:!1},e.dragData={possibleDragElements:[]},e.touchData={start:null,capture:!1,startPosition:[null,null,null,null,null,null],singleTouchStartTime:null,singleTouchMoved:!0,now:[null,null,null,null,null,null],earlier:[null,null,null,null,null,null]},e.redraws=0,e.showFps=t.showFps,e.debug=t.debug,e.hideEdgesOnViewport=t.hideEdgesOnViewport,e.textureOnViewport=t.textureOnViewport,e.wheelSensitivity=t.wheelSensitivity,e.motionBlurEnabled=t.motionBlur,e.forcedPixelRatio=R(t.pixelRatio)?t.pixelRatio:null,e.motionBlur=t.motionBlur,e.motionBlurOpacity=t.motionBlurOpacity,e.motionBlurTransparency=1-e.motionBlurOpacity,e.motionBlurPxRatio=1,e.mbPxRBlurry=1,e.minMbLowQualFrames=4,e.fullQualityMb=!1,e.clearedForMotionBlur=[],e.desktopTapThreshold=t.desktopTapThreshold,e.desktopTapThreshold2=t.desktopTapThreshold*t.desktopTapThreshold,e.touchTapThreshold=t.touchTapThreshold,e.touchTapThreshold2=t.touchTapThreshold*t.touchTapThreshold,e.tapholdDuration=500,e.bindings=[],e.beforeRenderCallbacks=[],e.beforeRenderPriorities={animations:400,eleCalcs:300,eleTxrDeq:200,lyrTxrDeq:150,lyrTxrSkip:100},e.registerNodeShapes(),e.registerArrowShapes(),e.registerCalculationListeners()},ma.notify=function(t,e){var r=this,a=r.cy;if(!this.destroyed){if(t==="init"){r.load();return}if(t==="destroy"){r.destroy();return}(t==="add"||t==="remove"||t==="move"&&a.hasCompoundNodes()||t==="load"||t==="zorder"||t==="mount")&&r.invalidateCachedZSortedEles(),t==="viewport"&&r.redrawHint("select",!0),(t==="load"||t==="resize"||t==="mount")&&(r.invalidateContainerClientCoordsCache(),r.matchCanvasSize(r.container)),r.redrawHint("eles",!0),r.redrawHint("drag",!0),this.startRenderLoop(),this.redraw()}},ma.destroy=function(){var t=this;t.destroyed=!0,t.cy.stopAnimationLoop();for(var e=0;e<t.bindings.length;e++){var r=t.bindings[e],a=r,n=a.target;(n.off||n.removeEventListener).apply(n,a.args)}if(t.bindings=[],t.beforeRenderCallbacks=[],t.onUpdateEleCalcsFns=[],t.removeObserver&&t.removeObserver.disconnect(),t.styleObserver&&t.styleObserver.disconnect(),t.resizeObserver&&t.resizeObserver.disconnect(),t.labelCalcDiv)try{document.body.removeChild(t.labelCalcDiv)}catch{}},ma.isHeadless=function(){return!1},[Fi,vl,fl,ya,mr,Ja].forEach(function(t){He(ma,t)});var zi=1e3/60,dl={setupDequeueing:function(e){return function(){var a=this,n=this.renderer;if(!a.dequeueingSetup){a.dequeueingSetup=!0;var i=sn(function(){n.redrawHint("eles",!0),n.redrawHint("drag",!0),n.redraw()},e.deqRedrawThreshold),o=function(l,v){var f=gr(),h=n.averageRedrawTime,d=n.lastRedrawTime,c=[],y=n.cy.extent(),p=n.getPixelRatio();for(l||n.flushRenderedStyleQueue();;){var g=gr(),m=g-f,b=g-v;if(d<zi){var E=zi-(l?h:0);if(b>=e.deqFastCost*E)break}else if(l){if(m>=e.deqCost*d||m>=e.deqAvgCost*h)break}else if(b>=e.deqNoDrawCost*zi)break;var M=e.deq(a,p,y);if(M.length>0)for(var L=0;L<M.length;L++)c.push(M[L]);else break}c.length>0&&(e.onDeqd(a,c),!l&&e.shouldRedraw(a,c,p,y)&&i())},s=e.priority||oi;n.beforeRender(o,s(a))}}}},gg=function(){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:vn;ve(this,t),this.idsByKey=new ur,this.keyForId=new ur,this.cachesByLvl=new ur,this.lvls=[],this.getKey=e,this.doesEleInvalidateKey=r}return C(t,[{key:"getIdsFor",value:function(r){r==null&&xt("Can not get id list for null key");var a=this.idsByKey,n=this.idsByKey.get(r);return n||(n=new Jr,a.set(r,n)),n}},{key:"addIdForKey",value:function(r,a){r!=null&&this.getIdsFor(r).add(a)}},{key:"deleteIdForKey",value:function(r,a){r!=null&&this.getIdsFor(r).delete(a)}},{key:"getNumberOfIdsForKey",value:function(r){return r==null?0:this.getIdsFor(r).size}},{key:"updateKeyMappingFor",value:function(r){var a=r.id(),n=this.keyForId.get(a),i=this.getKey(r);this.deleteIdForKey(n,a),this.addIdForKey(i,a),this.keyForId.set(a,i)}},{key:"deleteKeyMappingFor",value:function(r){var a=r.id(),n=this.keyForId.get(a);this.deleteIdForKey(n,a),this.keyForId.delete(a)}},{key:"keyHasChangedFor",value:function(r){var a=r.id(),n=this.keyForId.get(a),i=this.getKey(r);return n!==i}},{key:"isInvalid",value:function(r){return this.keyHasChangedFor(r)||this.doesEleInvalidateKey(r)}},{key:"getCachesAt",value:function(r){var a=this.cachesByLvl,n=this.lvls,i=a.get(r);return i||(i=new ur,a.set(r,i),n.push(r)),i}},{key:"getCache",value:function(r,a){return this.getCachesAt(a).get(r)}},{key:"get",value:function(r,a){var n=this.getKey(r),i=this.getCache(n,a);return i!=null&&this.updateKeyMappingFor(r),i}},{key:"getForCachedKey",value:function(r,a){var n=this.keyForId.get(r.id()),i=this.getCache(n,a);return i}},{key:"hasCache",value:function(r,a){return this.getCachesAt(a).has(r)}},{key:"has",value:function(r,a){var n=this.getKey(r);return this.hasCache(n,a)}},{key:"setCache",value:function(r,a,n){n.key=r,this.getCachesAt(a).set(r,n)}},{key:"set",value:function(r,a,n){var i=this.getKey(r);this.setCache(i,a,n),this.updateKeyMappingFor(r)}},{key:"deleteCache",value:function(r,a){this.getCachesAt(a).delete(r)}},{key:"delete",value:function(r,a){var n=this.getKey(r);this.deleteCache(n,a)}},{key:"invalidateKey",value:function(r){var a=this;this.lvls.forEach(function(n){return a.deleteCache(r,n)})}},{key:"invalidate",value:function(r){var a=r.id(),n=this.keyForId.get(a);this.deleteKeyMappingFor(r);var i=this.doesEleInvalidateKey(r);return i&&this.invalidateKey(n),i||this.getNumberOfIdsForKey(n)===0}}]),t}(),gl=25,Kn=50,Zn=-4,Vi=3,pg=7.99,yg=8,mg=1024,bg=1024,Eg=1024,wg=.2,xg=.8,Tg=10,Cg=.15,Dg=.1,Sg=.9,Lg=.9,Ag=100,Og=1,ba={dequeue:"dequeue",downscale:"downscale",highQuality:"highQuality"},Ng=At({getKey:null,doesEleInvalidateKey:vn,drawElement:null,getBoundingBox:null,getRotationPoint:null,getRotationOffset:null,isVisible:co,allowEdgeTxrCaching:!0,allowParentTxrCaching:!0}),ja=function(e,r){var a=this;a.renderer=e,a.onDequeues=[];var n=Ng(r);He(a,n),a.lookup=new gg(n.getKey,n.doesEleInvalidateKey),a.setupDequeueing()},Dt=ja.prototype;Dt.reasons=ba,Dt.getTextureQueue=function(t){var e=this;return e.eleImgCaches=e.eleImgCaches||{},e.eleImgCaches[t]=e.eleImgCaches[t]||[]},Dt.getRetiredTextureQueue=function(t){var e=this,r=e.eleImgCaches.retired=e.eleImgCaches.retired||{},a=r[t]=r[t]||[];return a},Dt.getElementQueue=function(){var t=this,e=t.eleCacheQueue=t.eleCacheQueue||new Ra(function(r,a){return a.reqs-r.reqs});return e},Dt.getElementKeyToQueue=function(){var t=this,e=t.eleKeyToCacheQueue=t.eleKeyToCacheQueue||{};return e},Dt.getElement=function(t,e,r,a,n){var i=this,o=this.renderer,s=o.cy.zoom(),u=this.lookup;if(!e||e.w===0||e.h===0||isNaN(e.w)||isNaN(e.h)||!t.visible()||t.removed()||!i.allowEdgeTxrCaching&&t.isEdge()||!i.allowParentTxrCaching&&t.isParent())return null;if(a==null&&(a=Math.ceil(ui(s*r))),a<Zn)a=Zn;else if(s>=pg||a>Vi)return null;var l=Math.pow(2,a),v=e.h*l,f=e.w*l,h=o.eleTextBiggerThanMin(t,l);if(!this.isVisible(t,h))return null;var d=u.get(t,a);if(d&&d.invalidated&&(d.invalidated=!1,d.texture.invalidatedWidth-=d.width),d)return d;var c;if(v<=gl?c=gl:v<=Kn?c=Kn:c=Math.ceil(v/Kn)*Kn,v>Eg||f>bg)return null;var y=i.getTextureQueue(c),p=y[y.length-2],g=function(){return i.recycleTexture(c,f)||i.addTexture(c,f)};p||(p=y[y.length-1]),p||(p=g()),p.width-p.usedWidth<f&&(p=g());for(var m=function(K){return K&&K.scaledLabelShown===h},b=n&&n===ba.dequeue,E=n&&n===ba.highQuality,M=n&&n===ba.downscale,L,w=a+1;w<=Vi;w++){var k=u.get(t,w);if(k){L=k;break}}var D=L&&L.level===a+1?L:null,F=function(){p.context.drawImage(D.texture.canvas,D.x,0,D.width,D.height,p.usedWidth,0,f,v)};if(p.context.setTransform(1,0,0,1,0,0),p.context.clearRect(p.usedWidth,0,f,c),m(D))F();else if(m(L))if(E){for(var G=L.level;G>a;G--)D=i.getElement(t,e,r,G,ba.downscale);F()}else return i.queueElement(t,L.level-1),L;else{var I;if(!b&&!E&&!M)for(var X=a-1;X>=Zn;X--){var B=u.get(t,X);if(B){I=B;break}}if(m(I))return i.queueElement(t,a),I;p.context.translate(p.usedWidth,0),p.context.scale(l,l),this.drawElement(p.context,t,e,h,!1),p.context.scale(1/l,1/l),p.context.translate(-p.usedWidth,0)}return d={x:p.usedWidth,texture:p,level:a,scale:l,width:f,height:v,scaledLabelShown:h},p.usedWidth+=Math.ceil(f+yg),p.eleCaches.push(d),u.set(t,a,d),i.checkTextureFullness(p),d},Dt.invalidateElements=function(t){for(var e=0;e<t.length;e++)this.invalidateElement(t[e])},Dt.invalidateElement=function(t){var e=this,r=e.lookup,a=[],n=r.isInvalid(t);if(n){for(var i=Zn;i<=Vi;i++){var o=r.getForCachedKey(t,i);o&&a.push(o)}var s=r.invalidate(t);if(s)for(var u=0;u<a.length;u++){var l=a[u],v=l.texture;v.invalidatedWidth+=l.width,l.invalidated=!0,e.checkTextureUtility(v)}e.removeFromQueue(t)}},Dt.checkTextureUtility=function(t){t.invalidatedWidth>=wg*t.width&&this.retireTexture(t)},Dt.checkTextureFullness=function(t){var e=this,r=e.getTextureQueue(t.height);t.usedWidth/t.width>xg&&t.fullnessChecks>=Tg?xr(r,t):t.fullnessChecks++},Dt.retireTexture=function(t){var e=this,r=t.height,a=e.getTextureQueue(r),n=this.lookup;xr(a,t),t.retired=!0;for(var i=t.eleCaches,o=0;o<i.length;o++){var s=i[o];n.deleteCache(s.key,s.level)}si(i);var u=e.getRetiredTextureQueue(r);u.push(t)},Dt.addTexture=function(t,e){var r=this,a=r.getTextureQueue(t),n={};return a.push(n),n.eleCaches=[],n.height=t,n.width=Math.max(mg,e),n.usedWidth=0,n.invalidatedWidth=0,n.fullnessChecks=0,n.canvas=r.renderer.makeOffscreenCanvas(n.width,n.height),n.context=n.canvas.getContext("2d"),n},Dt.recycleTexture=function(t,e){for(var r=this,a=r.getTextureQueue(t),n=r.getRetiredTextureQueue(t),i=0;i<n.length;i++){var o=n[i];if(o.width>=e)return o.retired=!1,o.usedWidth=0,o.invalidatedWidth=0,o.fullnessChecks=0,si(o.eleCaches),o.context.setTransform(1,0,0,1,0,0),o.context.clearRect(0,0,o.width,o.height),xr(n,o),a.push(o),o}},Dt.queueElement=function(t,e){var r=this,a=r.getElementQueue(),n=r.getElementKeyToQueue(),i=this.getKey(t),o=n[i];if(o)o.level=Math.max(o.level,e),o.eles.merge(t),o.reqs++,a.updateItem(o);else{var s={eles:t.spawn().merge(t),level:e,reqs:1,key:i};a.push(s),n[i]=s}},Dt.dequeue=function(t){for(var e=this,r=e.getElementQueue(),a=e.getElementKeyToQueue(),n=[],i=e.lookup,o=0;o<Og&&r.size()>0;o++){var s=r.pop(),u=s.key,l=s.eles[0],v=i.hasCache(l,s.level);if(a[u]=null,v)continue;n.push(s);var f=e.getBoundingBox(l);e.getElement(l,f,t,s.level,ba.dequeue)}return n},Dt.removeFromQueue=function(t){var e=this,r=e.getElementQueue(),a=e.getElementKeyToQueue(),n=this.getKey(t),i=a[n];i!=null&&(i.eles.length===1?(i.reqs=ii,r.updateItem(i),r.pop(),a[n]=null):i.eles.unmerge(t))},Dt.onDequeue=function(t){this.onDequeues.push(t)},Dt.offDequeue=function(t){xr(this.onDequeues,t)},Dt.setupDequeueing=dl.setupDequeueing({deqRedrawThreshold:Ag,deqCost:Cg,deqAvgCost:Dg,deqNoDrawCost:Sg,deqFastCost:Lg,deq:function(e,r,a){return e.dequeue(r,a)},onDeqd:function(e,r){for(var a=0;a<e.onDequeues.length;a++){var n=e.onDequeues[a];n(r)}},shouldRedraw:function(e,r,a,n){for(var i=0;i<r.length;i++)for(var o=r[i].eles,s=0;s<o.length;s++){var u=o[s].boundingBox();if(vi(u,n))return!0}return!1},priority:function(e){return e.renderer.beforeRenderPriorities.eleTxrDeq}});var Ig=1,en=-4,Qn=2,Mg=3.99,Rg=50,kg=50,Pg=.15,Bg=.1,Fg=.9,Gg=.9,zg=1,pl=250,Vg=4e3*4e3,$g=!0,yl=function(e){var r=this,a=r.renderer=e,n=a.cy;r.layersByLevel={},r.firstGet=!0,r.lastInvalidationTime=gr()-2*pl,r.skipping=!1,r.eleTxrDeqs=n.collection(),r.scheduleElementRefinement=sn(function(){r.refineElementTextures(r.eleTxrDeqs),r.eleTxrDeqs.unmerge(r.eleTxrDeqs)},kg),a.beforeRender(function(o,s){s-r.lastInvalidationTime<=pl?r.skipping=!0:r.skipping=!1},a.beforeRenderPriorities.lyrTxrSkip);var i=function(s,u){return u.reqs-s.reqs};r.layersQueue=new Ra(i),r.setupDequeueing()},Mt=yl.prototype,ml=0,Ug=Math.pow(2,53)-1;Mt.makeLayer=function(t,e){var r=Math.pow(2,e),a=Math.ceil(t.w*r),n=Math.ceil(t.h*r),i=this.renderer.makeOffscreenCanvas(a,n),o={id:ml=++ml%Ug,bb:t,level:e,width:a,height:n,canvas:i,context:i.getContext("2d"),eles:[],elesQueue:[],reqs:0},s=o.context,u=-o.bb.x1,l=-o.bb.y1;return s.scale(r,r),s.translate(u,l),o},Mt.getLayers=function(t,e,r){var a=this,n=a.renderer,i=n.cy,o=i.zoom(),s=a.firstGet;if(a.firstGet=!1,r==null){if(r=Math.ceil(ui(o*e)),r<en)r=en;else if(o>=Mg||r>Qn)return null}a.validateLayersElesOrdering(r,t);var u=a.layersByLevel,l=Math.pow(2,r),v=u[r]=u[r]||[],f,h=a.levelIsComplete(r,t),d,c=function(){var F=function(re){if(a.validateLayersElesOrdering(re,t),a.levelIsComplete(re,t))return d=u[re],!0},G=function(re){if(!d)for(var K=r+re;en<=K&&K<=Qn&&!F(K);K+=re);};G(1),G(-1);for(var I=v.length-1;I>=0;I--){var X=v[I];X.invalid&&xr(v,X)}};if(!h)c();else return v;var y=function(){if(!f){f=Yt();for(var F=0;F<t.length;F++)xo(f,t[F].boundingBox())}return f},p=function(F){F=F||{};var G=F.after;y();var I=f.w*l*(f.h*l);if(I>Vg)return null;var X=a.makeLayer(f,r);if(G!=null){var B=v.indexOf(G)+1;v.splice(B,0,X)}else(F.insert===void 0||F.insert)&&v.unshift(X);return X};if(a.skipping&&!s)return null;for(var g=null,m=t.length/Ig,b=!s,E=0;E<t.length;E++){var M=t[E],L=M._private.rscratch,w=L.imgLayerCaches=L.imgLayerCaches||{},k=w[r];if(k){g=k;continue}if((!g||g.eles.length>=m||!Co(g.bb,M.boundingBox()))&&(g=p({insert:!0,after:g}),!g))return null;d||b?a.queueLayer(g,M):a.drawEleInLayer(g,M,r,e),g.eles.push(M),w[r]=g}return d||(b?null:v)},Mt.getEleLevelForLayerLevel=function(t,e){return t},Mt.drawEleInLayer=function(t,e,r,a){var n=this,i=this.renderer,o=t.context,s=e.boundingBox();s.w===0||s.h===0||!e.visible()||(r=n.getEleLevelForLayerLevel(r,a),i.setImgSmoothing(o,!1),i.drawCachedElement(o,e,null,null,r,$g),i.setImgSmoothing(o,!0))},Mt.levelIsComplete=function(t,e){var r=this,a=r.layersByLevel[t];if(!a||a.length===0)return!1;for(var n=0,i=0;i<a.length;i++){var o=a[i];if(o.reqs>0||o.invalid)return!1;n+=o.eles.length}return n===e.length},Mt.validateLayersElesOrdering=function(t,e){var r=this.layersByLevel[t];if(r)for(var a=0;a<r.length;a++){for(var n=r[a],i=-1,o=0;o<e.length;o++)if(n.eles[0]===e[o]){i=o;break}if(i<0){this.invalidateLayer(n);continue}for(var s=i,o=0;o<n.eles.length;o++)if(n.eles[o]!==e[s+o]){this.invalidateLayer(n);break}}},Mt.updateElementsInLayers=function(t,e){for(var r=this,a=Ae(t[0]),n=0;n<t.length;n++)for(var i=a?null:t[n],o=a?t[n]:t[n].ele,s=o._private.rscratch,u=s.imgLayerCaches=s.imgLayerCaches||{},l=en;l<=Qn;l++){var v=u[l];v&&(i&&r.getEleLevelForLayerLevel(v.level)!==i.level||e(v,o,i))}},Mt.haveLayers=function(){for(var t=this,e=!1,r=en;r<=Qn;r++){var a=t.layersByLevel[r];if(a&&a.length>0){e=!0;break}}return e},Mt.invalidateElements=function(t){var e=this;t.length!==0&&(e.lastInvalidationTime=gr(),!(t.length===0||!e.haveLayers())&&e.updateElementsInLayers(t,function(a,n,i){e.invalidateLayer(a)}))},Mt.invalidateLayer=function(t){if(this.lastInvalidationTime=gr(),!t.invalid){var e=t.level,r=t.eles,a=this.layersByLevel[e];xr(a,t),t.elesQueue=[],t.invalid=!0,t.replacement&&(t.replacement.invalid=!0);for(var n=0;n<r.length;n++){var i=r[n]._private.rscratch.imgLayerCaches;i&&(i[e]=null)}}},Mt.refineElementTextures=function(t){var e=this;e.updateElementsInLayers(t,function(a,n,i){var o=a.replacement;if(o||(o=a.replacement=e.makeLayer(a.bb,a.level),o.replaces=a,o.eles=a.eles),!o.reqs)for(var s=0;s<o.eles.length;s++)e.queueLayer(o,o.eles[s])})},Mt.enqueueElementRefinement=function(t){this.eleTxrDeqs.merge(t),this.scheduleElementRefinement()},Mt.queueLayer=function(t,e){var r=this,a=r.layersQueue,n=t.elesQueue,i=n.hasId=n.hasId||{};if(!t.replacement){if(e){if(i[e.id()])return;n.push(e),i[e.id()]=!0}t.reqs?(t.reqs++,a.updateItem(t)):(t.reqs=1,a.push(t))}},Mt.dequeue=function(t){for(var e=this,r=e.layersQueue,a=[],n=0;n<zg&&r.size()!==0;){var i=r.peek();if(i.replacement){r.pop();continue}if(i.replaces&&i!==i.replaces.replacement){r.pop();continue}if(i.invalid){r.pop();continue}var o=i.elesQueue.shift();o&&(e.drawEleInLayer(i,o,i.level,t),n++),a.length===0&&a.push(!0),i.elesQueue.length===0&&(r.pop(),i.reqs=0,i.replaces&&e.applyLayerReplacement(i),e.requestRedraw())}return a},Mt.applyLayerReplacement=function(t){var e=this,r=e.layersByLevel[t.level],a=t.replaces,n=r.indexOf(a);if(!(n<0||a.invalid)){r[n]=t;for(var i=0;i<t.eles.length;i++){var o=t.eles[i]._private,s=o.imgLayerCaches=o.imgLayerCaches||{};s&&(s[t.level]=t)}e.requestRedraw()}},Mt.requestRedraw=sn(function(){var t=this.renderer;t.redrawHint("eles",!0),t.redrawHint("drag",!0),t.redraw()},100),Mt.setupDequeueing=dl.setupDequeueing({deqRedrawThreshold:Rg,deqCost:Pg,deqAvgCost:Bg,deqNoDrawCost:Fg,deqFastCost:Gg,deq:function(e,r){return e.dequeue(r)},onDeqd:oi,shouldRedraw:co,priority:function(e){return e.renderer.beforeRenderPriorities.lyrTxrDeq}});var bl={},El;function _g(t,e){for(var r=0;r<e.length;r++){var a=e[r];t.lineTo(a.x,a.y)}}function Yg(t,e,r){for(var a,n=0;n<e.length;n++){var i=e[n];n===0&&(a=i),t.lineTo(i.x,i.y)}t.quadraticCurveTo(r.x,r.y,a.x,a.y)}function wl(t,e,r){t.beginPath&&t.beginPath();for(var a=e,n=0;n<a.length;n++){var i=a[n];t.lineTo(i.x,i.y)}var o=r,s=r[0];t.moveTo(s.x,s.y);for(var n=1;n<o.length;n++){var i=o[n];t.lineTo(i.x,i.y)}t.closePath&&t.closePath()}function Hg(t,e,r,a,n){t.beginPath&&t.beginPath(),t.arc(r,a,n,0,Math.PI*2,!1);var i=e,o=i[0];t.moveTo(o.x,o.y);for(var s=0;s<i.length;s++){var u=i[s];t.lineTo(u.x,u.y)}t.closePath&&t.closePath()}function Xg(t,e,r,a){t.arc(e,r,a,0,Math.PI*2,!1)}bl.arrowShapeImpl=function(t){return(El||(El={polygon:_g,"triangle-backcurve":Yg,"triangle-tee":wl,"circle-triangle":Hg,"triangle-cross":wl,circle:Xg}))[t]};var hr={};hr.drawElement=function(t,e,r,a,n,i){var o=this;e.isNode()?o.drawNode(t,e,r,a,n,i):o.drawEdge(t,e,r,a,n,i)},hr.drawElementOverlay=function(t,e){var r=this;e.isNode()?r.drawNodeOverlay(t,e):r.drawEdgeOverlay(t,e)},hr.drawElementUnderlay=function(t,e){var r=this;e.isNode()?r.drawNodeUnderlay(t,e):r.drawEdgeUnderlay(t,e)},hr.drawCachedElementPortion=function(t,e,r,a,n,i,o,s){var u=this,l=r.getBoundingBox(e);if(!(l.w===0||l.h===0)){var v=r.getElement(e,l,a,n,i);if(v!=null){var f=s(u,e);if(f===0)return;var h=o(u,e),d=l.x1,c=l.y1,y=l.w,p=l.h,g,m,b,E,M;if(h!==0){var L=r.getRotationPoint(e);b=L.x,E=L.y,t.translate(b,E),t.rotate(h),M=u.getImgSmoothing(t),M||u.setImgSmoothing(t,!0);var w=r.getRotationOffset(e);g=w.x,m=w.y}else g=d,m=c;var k;f!==1&&(k=t.globalAlpha,t.globalAlpha=k*f),t.drawImage(v.texture.canvas,v.x,0,v.width,v.height,g,m,y,p),f!==1&&(t.globalAlpha=k),h!==0&&(t.rotate(-h),t.translate(-b,-E),M||u.setImgSmoothing(t,!1))}else r.drawElement(t,e)}};var Wg=function(){return 0},qg=function(e,r){return e.getTextAngle(r,null)},Kg=function(e,r){return e.getTextAngle(r,"source")},Zg=function(e,r){return e.getTextAngle(r,"target")},Qg=function(e,r){return r.effectiveOpacity()},$i=function(e,r){return r.pstyle("text-opacity").pfValue*r.effectiveOpacity()};hr.drawCachedElement=function(t,e,r,a,n,i){var o=this,s=o.data,u=s.eleTxrCache,l=s.lblTxrCache,v=s.slbTxrCache,f=s.tlbTxrCache,h=e.boundingBox(),d=i===!0?u.reasons.highQuality:null;if(!(h.w===0||h.h===0||!e.visible())&&(!a||vi(h,a))){var c=e.isEdge(),y=e.element()._private.rscratch.badLine;o.drawElementUnderlay(t,e),o.drawCachedElementPortion(t,e,u,r,n,d,Wg,Qg),(!c||!y)&&o.drawCachedElementPortion(t,e,l,r,n,d,qg,$i),c&&!y&&(o.drawCachedElementPortion(t,e,v,r,n,d,Kg,$i),o.drawCachedElementPortion(t,e,f,r,n,d,Zg,$i)),o.drawElementOverlay(t,e)}},hr.drawElements=function(t,e){for(var r=this,a=0;a<e.length;a++){var n=e[a];r.drawElement(t,n)}},hr.drawCachedElements=function(t,e,r,a){for(var n=this,i=0;i<e.length;i++){var o=e[i];n.drawCachedElement(t,o,r,a)}},hr.drawCachedNodes=function(t,e,r,a){for(var n=this,i=0;i<e.length;i++){var o=e[i];o.isNode()&&n.drawCachedElement(t,o,r,a)}},hr.drawLayeredElements=function(t,e,r,a){var n=this,i=n.data.lyrTxrCache.getLayers(e,r);if(i)for(var o=0;o<i.length;o++){var s=i[o],u=s.bb;u.w===0||u.h===0||t.drawImage(s.canvas,u.x1,u.y1,u.w,u.h)}else n.drawCachedElements(t,e,r,a)};var br={};br.drawEdge=function(t,e,r){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,o=this,s=e._private.rscratch;if(!(i&&!e.visible())&&!(s.badLine||s.allpts==null||isNaN(s.allpts[0]))){var u;r&&(u=r,t.translate(-u.x1,-u.y1));var l=i?e.pstyle("opacity").value:1,v=i?e.pstyle("line-opacity").value:1,f=e.pstyle("curve-style").value,h=e.pstyle("line-style").value,d=e.pstyle("width").pfValue,c=e.pstyle("line-cap").value,y=l*v,p=l*v,g=function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:y;f==="straight-triangle"?(o.eleStrokeStyle(t,e,I),o.drawEdgeTrianglePath(e,t,s.allpts)):(t.lineWidth=d,t.lineCap=c,o.eleStrokeStyle(t,e,I),o.drawEdgePath(e,t,s.allpts,h),t.lineCap="butt")},m=function(){n&&o.drawEdgeOverlay(t,e)},b=function(){n&&o.drawEdgeUnderlay(t,e)},E=function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:p;o.drawArrowheads(t,e,I)},M=function(){o.drawElementText(t,e,null,a)};t.lineJoin="round";var L=e.pstyle("ghost").value==="yes";if(L){var w=e.pstyle("ghost-offset-x").pfValue,k=e.pstyle("ghost-offset-y").pfValue,D=e.pstyle("ghost-opacity").value,F=y*D;t.translate(w,k),g(F),E(F),t.translate(-w,-k)}b(),g(),E(),m(),M(),r&&t.translate(u.x1,u.y1)}};var xl=function(e){if(!["overlay","underlay"].includes(e))throw new Error("Invalid state");return function(r,a){if(a.visible()){var n=a.pstyle("".concat(e,"-opacity")).value;if(n!==0){var i=this,o=i.usePaths(),s=a._private.rscratch,u=a.pstyle("".concat(e,"-padding")).pfValue,l=2*u,v=a.pstyle("".concat(e,"-color")).value;r.lineWidth=l,s.edgeType==="self"&&!o?r.lineCap="butt":r.lineCap="round",i.colorStrokeStyle(r,v[0],v[1],v[2],n),i.drawEdgePath(a,r,s.allpts,"solid")}}}};br.drawEdgeOverlay=xl("overlay"),br.drawEdgeUnderlay=xl("underlay"),br.drawEdgePath=function(t,e,r,a){var n=t._private.rscratch,i=e,o,s=!1,u=this.usePaths(),l=t.pstyle("line-dash-pattern").pfValue,v=t.pstyle("line-dash-offset").pfValue;if(u){var f=r.join("$"),h=n.pathCacheKey&&n.pathCacheKey===f;h?(o=e=n.pathCache,s=!0):(o=e=new Path2D,n.pathCacheKey=f,n.pathCache=o)}if(i.setLineDash)switch(a){case"dotted":i.setLineDash([1,1]);break;case"dashed":i.setLineDash(l),i.lineDashOffset=v;break;case"solid":i.setLineDash([]);break}if(!s&&!n.badLine)switch(e.beginPath&&e.beginPath(),e.moveTo(r[0],r[1]),n.edgeType){case"bezier":case"self":case"compound":case"multibezier":for(var d=2;d+3<r.length;d+=4)e.quadraticCurveTo(r[d],r[d+1],r[d+2],r[d+3]);break;case"straight":case"segments":case"haystack":for(var c=2;c+1<r.length;c+=2)e.lineTo(r[c],r[c+1]);break}e=i,u?e.stroke(o):e.stroke(),e.setLineDash&&e.setLineDash([])},br.drawEdgeTrianglePath=function(t,e,r){e.fillStyle=e.strokeStyle;for(var a=t.pstyle("width").pfValue,n=0;n+1<r.length;n+=2){var i=[r[n+2]-r[n],r[n+3]-r[n+1]],o=Math.sqrt(i[0]*i[0]+i[1]*i[1]),s=[i[1]/o,-i[0]/o],u=[s[0]*a/2,s[1]*a/2];e.beginPath(),e.moveTo(r[n]-u[0],r[n+1]-u[1]),e.lineTo(r[n]+u[0],r[n+1]+u[1]),e.lineTo(r[n+2],r[n+3]),e.closePath(),e.fill()}},br.drawArrowheads=function(t,e,r){var a=e._private.rscratch,n=a.edgeType==="haystack";n||this.drawArrowhead(t,e,"source",a.arrowStartX,a.arrowStartY,a.srcArrowAngle,r),this.drawArrowhead(t,e,"mid-target",a.midX,a.midY,a.midtgtArrowAngle,r),this.drawArrowhead(t,e,"mid-source",a.midX,a.midY,a.midsrcArrowAngle,r),n||this.drawArrowhead(t,e,"target",a.arrowEndX,a.arrowEndY,a.tgtArrowAngle,r)},br.drawArrowhead=function(t,e,r,a,n,i,o){if(!(isNaN(a)||a==null||isNaN(n)||n==null||isNaN(i)||i==null)){var s=this,u=e.pstyle(r+"-arrow-shape").value;if(u!=="none"){var l=e.pstyle(r+"-arrow-fill").value==="hollow"?"both":"filled",v=e.pstyle(r+"-arrow-fill").value,f=e.pstyle("width").pfValue,h=e.pstyle(r+"-arrow-width"),d=h.value==="match-line"?f:h.pfValue;h.units==="%"&&(d*=f);var c=e.pstyle("opacity").value;o===void 0&&(o=c);var y=t.globalCompositeOperation;(o!==1||v==="hollow")&&(t.globalCompositeOperation="destination-out",s.colorFillStyle(t,255,255,255,1),s.colorStrokeStyle(t,255,255,255,1),s.drawArrowShape(e,t,l,f,u,d,a,n,i),t.globalCompositeOperation=y);var p=e.pstyle(r+"-arrow-color").value;s.colorFillStyle(t,p[0],p[1],p[2],o),s.colorStrokeStyle(t,p[0],p[1],p[2],o),s.drawArrowShape(e,t,v,f,u,d,a,n,i)}}},br.drawArrowShape=function(t,e,r,a,n,i,o,s,u){var l=this,v=this.usePaths()&&n!=="triangle-cross",f=!1,h,d=e,c={x:o,y:s},y=t.pstyle("arrow-scale").value,p=this.getArrowWidth(a,y),g=l.arrowShapes[n];if(v){var m=l.arrowPathCache=l.arrowPathCache||[],b=Pr(n),E=m[b];E!=null?(h=e=E,f=!0):(h=e=new Path2D,m[b]=h)}f||(e.beginPath&&e.beginPath(),v?g.draw(e,1,0,{x:0,y:0},1):g.draw(e,p,u,c,a),e.closePath&&e.closePath()),e=d,v&&(e.translate(o,s),e.rotate(u),e.scale(p,p)),(r==="filled"||r==="both")&&(v?e.fill(h):e.fill()),(r==="hollow"||r==="both")&&(e.lineWidth=i/(v?p:1),e.lineJoin="miter",v?e.stroke(h):e.stroke()),v&&(e.scale(1/p,1/p),e.rotate(-u),e.translate(-o,-s))};var Ui={};Ui.safeDrawImage=function(t,e,r,a,n,i,o,s,u,l){if(!(n<=0||i<=0||u<=0||l<=0))try{t.drawImage(e,r,a,n,i,o,s,u,l)}catch(v){ht(v)}},Ui.drawInscribedImage=function(t,e,r,a,n){var i=this,o=r.position(),s=o.x,u=o.y,l=r.cy().style(),v=l.getIndexedStyle.bind(l),f=v(r,"background-fit","value",a),h=v(r,"background-repeat","value",a),d=r.width(),c=r.height(),y=r.padding()*2,p=d+(v(r,"background-width-relative-to","value",a)==="inner"?0:y),g=c+(v(r,"background-height-relative-to","value",a)==="inner"?0:y),m=r._private.rscratch,b=v(r,"background-clip","value",a),E=b==="node",M=v(r,"background-image-opacity","value",a)*n,L=v(r,"background-image-smoothing","value",a),w=e.width||e.cachedW,k=e.height||e.cachedH;(w==null||k==null)&&(document.body.appendChild(e),w=e.cachedW=e.width||e.offsetWidth,k=e.cachedH=e.height||e.offsetHeight,document.body.removeChild(e));var D=w,F=k;if(v(r,"background-width","value",a)!=="auto"&&(v(r,"background-width","units",a)==="%"?D=v(r,"background-width","pfValue",a)*p:D=v(r,"background-width","pfValue",a)),v(r,"background-height","value",a)!=="auto"&&(v(r,"background-height","units",a)==="%"?F=v(r,"background-height","pfValue",a)*g:F=v(r,"background-height","pfValue",a)),!(D===0||F===0)){if(f==="contain"){var G=Math.min(p/D,g/F);D*=G,F*=G}else if(f==="cover"){var G=Math.max(p/D,g/F);D*=G,F*=G}var I=s-p/2,X=v(r,"background-position-x","units",a),B=v(r,"background-position-x","pfValue",a);X==="%"?I+=(p-D)*B:I+=B;var re=v(r,"background-offset-x","units",a),K=v(r,"background-offset-x","pfValue",a);re==="%"?I+=(p-D)*K:I+=K;var W=u-g/2,ae=v(r,"background-position-y","units",a),ue=v(r,"background-position-y","pfValue",a);ae==="%"?W+=(g-F)*ue:W+=ue;var me=v(r,"background-offset-y","units",a),ie=v(r,"background-offset-y","pfValue",a);me==="%"?W+=(g-F)*ie:W+=ie,m.pathCache&&(I-=s,W-=u,s=0,u=0);var ge=t.globalAlpha;t.globalAlpha=M;var Ee=i.getImgSmoothing(t),Ce=!1;if(L==="no"&&Ee?(i.setImgSmoothing(t,!1),Ce=!0):L==="yes"&&!Ee&&(i.setImgSmoothing(t,!0),Ce=!0),h==="no-repeat")E&&(t.save(),m.pathCache?t.clip(m.pathCache):(i.nodeShapes[i.getNodeShape(r)].draw(t,s,u,p,g),t.clip())),i.safeDrawImage(t,e,0,0,w,k,I,W,D,F),E&&t.restore();else{var we=t.createPattern(e,h);t.fillStyle=we,i.nodeShapes[i.getNodeShape(r)].draw(t,s,u,p,g),t.translate(I,W),t.fill(),t.translate(-I,-W)}t.globalAlpha=ge,Ce&&i.setImgSmoothing(t,Ee)}};var _r={};_r.eleTextBiggerThanMin=function(t,e){if(!e){var r=t.cy().zoom(),a=this.getPixelRatio(),n=Math.ceil(ui(r*a));e=Math.pow(2,n)}var i=t.pstyle("font-size").pfValue*e,o=t.pstyle("min-zoomed-font-size").pfValue;return!(i<o)},_r.drawElementText=function(t,e,r,a,n){var i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,o=this;if(a==null){if(i&&!o.eleTextBiggerThanMin(e))return}else if(a===!1)return;if(e.isNode()){var s=e.pstyle("label");if(!s||!s.value)return;var u=o.getLabelJustification(e);t.textAlign=u,t.textBaseline="bottom"}else{var l=e.element()._private.rscratch.badLine,v=e.pstyle("label"),f=e.pstyle("source-label"),h=e.pstyle("target-label");if(l||(!v||!v.value)&&(!f||!f.value)&&(!h||!h.value))return;t.textAlign="center",t.textBaseline="bottom"}var d=!r,c;r&&(c=r,t.translate(-c.x1,-c.y1)),n==null?(o.drawText(t,e,null,d,i),e.isEdge()&&(o.drawText(t,e,"source",d,i),o.drawText(t,e,"target",d,i))):o.drawText(t,e,n,d,i),r&&t.translate(c.x1,c.y1)},_r.getFontCache=function(t){var e;this.fontCaches=this.fontCaches||[];for(var r=0;r<this.fontCaches.length;r++)if(e=this.fontCaches[r],e.context===t)return e;return e={context:t},this.fontCaches.push(e),e},_r.setupTextStyle=function(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=e.pstyle("font-style").strValue,n=e.pstyle("font-size").pfValue+"px",i=e.pstyle("font-family").strValue,o=e.pstyle("font-weight").strValue,s=r?e.effectiveOpacity()*e.pstyle("text-opacity").value:1,u=e.pstyle("text-outline-opacity").value*s,l=e.pstyle("color").value,v=e.pstyle("text-outline-color").value;t.font=a+" "+o+" "+n+" "+i,t.lineJoin="round",this.colorFillStyle(t,l[0],l[1],l[2],s),this.colorStrokeStyle(t,v[0],v[1],v[2],u)};function _i(t,e,r,a,n){var i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:5,o=arguments.length>6?arguments[6]:void 0;t.beginPath(),t.moveTo(e+i,r),t.lineTo(e+a-i,r),t.quadraticCurveTo(e+a,r,e+a,r+i),t.lineTo(e+a,r+n-i),t.quadraticCurveTo(e+a,r+n,e+a-i,r+n),t.lineTo(e+i,r+n),t.quadraticCurveTo(e,r+n,e,r+n-i),t.lineTo(e,r+i),t.quadraticCurveTo(e,r,e+i,r),t.closePath(),o?t.stroke():t.fill()}_r.getTextAngle=function(t,e){var r,a=t._private,n=a.rscratch,i=e?e+"-":"",o=t.pstyle(i+"text-rotation"),s=er(n,"labelAngle",e);return o.strValue==="autorotate"?r=t.isEdge()?s:0:o.strValue==="none"?r=0:r=o.pfValue,r},_r.drawText=function(t,e,r){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=e._private,o=i.rscratch,s=n?e.effectiveOpacity():1;if(!(n&&(s===0||e.pstyle("text-opacity").value===0))){r==="main"&&(r=null);var u=er(o,"labelX",r),l=er(o,"labelY",r),v,f,h=this.getLabelText(e,r);if(h!=null&&h!==""&&!isNaN(u)&&!isNaN(l)){this.setupTextStyle(t,e,n);var d=r?r+"-":"",c=er(o,"labelWidth",r),y=er(o,"labelHeight",r),p=e.pstyle(d+"text-margin-x").pfValue,g=e.pstyle(d+"text-margin-y").pfValue,m=e.isEdge(),b=e.pstyle("text-halign").value,E=e.pstyle("text-valign").value;m&&(b="center",E="center"),u+=p,l+=g;var M;switch(a?M=this.getTextAngle(e,r):M=0,M!==0&&(v=u,f=l,t.translate(v,f),t.rotate(M),u=0,l=0),E){case"top":break;case"center":l+=y/2;break;case"bottom":l+=y;break}var L=e.pstyle("text-background-opacity").value,w=e.pstyle("text-border-opacity").value,k=e.pstyle("text-border-width").pfValue,D=e.pstyle("text-background-padding").pfValue,F=e.pstyle("text-background-shape").strValue,G=F.indexOf("round")===0,I=2;if(L>0||k>0&&w>0){var X=u-D;switch(b){case"left":X-=c;break;case"center":X-=c/2;break}var B=l-y-D,re=c+2*D,K=y+2*D;if(L>0){var W=t.fillStyle,ae=e.pstyle("text-background-color").value;t.fillStyle="rgba("+ae[0]+","+ae[1]+","+ae[2]+","+L*s+")",G?_i(t,X,B,re,K,I):t.fillRect(X,B,re,K),t.fillStyle=W}if(k>0&&w>0){var ue=t.strokeStyle,me=t.lineWidth,ie=e.pstyle("text-border-color").value,ge=e.pstyle("text-border-style").value;if(t.strokeStyle="rgba("+ie[0]+","+ie[1]+","+ie[2]+","+w*s+")",t.lineWidth=k,t.setLineDash)switch(ge){case"dotted":t.setLineDash([1,1]);break;case"dashed":t.setLineDash([4,2]);break;case"double":t.lineWidth=k/4,t.setLineDash([]);break;case"solid":t.setLineDash([]);break}if(G?_i(t,X,B,re,K,I,"stroke"):t.strokeRect(X,B,re,K),ge==="double"){var Ee=k/2;G?_i(t,X+Ee,B+Ee,re-Ee*2,K-Ee*2,I,"stroke"):t.strokeRect(X+Ee,B+Ee,re-Ee*2,K-Ee*2)}t.setLineDash&&t.setLineDash([]),t.lineWidth=me,t.strokeStyle=ue}}var Ce=2*e.pstyle("text-outline-width").pfValue;if(Ce>0&&(t.lineWidth=Ce),e.pstyle("text-wrap").value==="wrap"){var we=er(o,"labelWrapCachedLines",r),De=er(o,"labelLineHeight",r),oe=c/2,xe=this.getLabelJustification(e);switch(xe==="auto"||(b==="left"?xe==="left"?u+=-c:xe==="center"&&(u+=-oe):b==="center"?xe==="left"?u+=-oe:xe==="right"&&(u+=oe):b==="right"&&(xe==="center"?u+=oe:xe==="right"&&(u+=c))),E){case"top":l-=(we.length-1)*De;break;case"center":case"bottom":l-=(we.length-1)*De;break}for(var Le=0;Le<we.length;Le++)Ce>0&&t.strokeText(we[Le],u,l),t.fillText(we[Le],u,l),l+=De}else Ce>0&&t.strokeText(h,u,l),t.fillText(h,u,l);M!==0&&(t.rotate(-M),t.translate(-v,-f))}}};var Ea={};Ea.drawNode=function(t,e,r){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,o=this,s,u,l=e._private,v=l.rscratch,f=e.position();if(!(!R(f.x)||!R(f.y))&&!(i&&!e.visible())){var h=i?e.effectiveOpacity():1,d=o.usePaths(),c,y=!1,p=e.padding();s=e.width()+2*p,u=e.height()+2*p;var g;r&&(g=r,t.translate(-g.x1,-g.y1));for(var m=e.pstyle("background-image"),b=m.value,E=new Array(b.length),M=new Array(b.length),L=0,w=0;w<b.length;w++){var k=b[w],D=E[w]=k!=null&&k!=="none";if(D){var F=e.cy().style().getIndexedStyle(e,"background-image-crossorigin","value",w);L++,M[w]=o.getCachedImage(k,F,function(){l.backgroundTimestamp=Date.now(),e.emitAndNotify("background")})}}var G=e.pstyle("background-blacken").value,I=e.pstyle("border-width").pfValue,X=e.pstyle("background-opacity").value*h,B=e.pstyle("border-color").value,re=e.pstyle("border-style").value,K=e.pstyle("border-opacity").value*h,W=e.pstyle("outline-width").pfValue,ae=e.pstyle("outline-color").value,ue=e.pstyle("outline-style").value,me=e.pstyle("outline-opacity").value*h,ie=e.pstyle("outline-offset").value;t.lineJoin="miter";var ge=function(){var fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:X;o.eleFillStyle(t,e,fe)},Ee=function(){var fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:K;o.colorStrokeStyle(t,B[0],B[1],B[2],fe)},Ce=function(){var fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:me;o.colorStrokeStyle(t,ae[0],ae[1],ae[2],fe)},we=function(fe,O,se,Te){var ce=o.nodePathCache=o.nodePathCache||[],ye=fo(se==="polygon"?se+","+Te.join(","):se,""+O,""+fe),_e=ce[ye],be,Ge=!1;return _e!=null?(be=_e,Ge=!0,v.pathCache=be):(be=new Path2D,ce[ye]=v.pathCache=be),{path:be,cacheHit:Ge}},De=e.pstyle("shape").strValue,oe=e.pstyle("shape-polygon-points").pfValue;if(d){t.translate(f.x,f.y);var xe=we(s,u,De,oe);c=xe.path,y=xe.cacheHit}var Le=function(){if(!y){var fe=f;d&&(fe={x:0,y:0}),o.nodeShapes[o.getNodeShape(e)].draw(c||t,fe.x,fe.y,s,u)}d?t.fill(c):t.fill()},Se=function(){for(var fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:h,O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,se=l.backgrounding,Te=0,ce=0;ce<M.length;ce++){var ye=e.cy().style().getIndexedStyle(e,"background-image-containment","value",ce);if(O&&ye==="over"||!O&&ye==="inside"){Te++;continue}E[ce]&&M[ce].complete&&!M[ce].error&&(Te++,o.drawInscribedImage(t,M[ce],e,ce,fe))}l.backgrounding=Te!==L,se!==l.backgrounding&&e.updateStyle(!1)},Oe=function(){var fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:h;o.hasPie(e)&&(o.drawPie(t,e,O),fe&&(d||o.nodeShapes[o.getNodeShape(e)].draw(t,f.x,f.y,s,u)))},Fe=function(){var fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:h,O=(G>0?G:-G)*fe,se=G>0?0:255;G!==0&&(o.colorFillStyle(t,se,se,se,O),d?t.fill(c):t.fill())},Xe=function(){if(I>0){if(t.lineWidth=I,t.lineCap="butt",t.setLineDash)switch(re){case"dotted":t.setLineDash([1,1]);break;case"dashed":t.setLineDash([4,2]);break;case"solid":case"double":t.setLineDash([]);break}if(d?t.stroke(c):t.stroke(),re==="double"){t.lineWidth=I/3;var fe=t.globalCompositeOperation;t.globalCompositeOperation="destination-out",d?t.stroke(c):t.stroke(),t.globalCompositeOperation=fe}t.setLineDash&&t.setLineDash([])}},Ie=function(){if(W>0){if(t.lineWidth=W,t.lineCap="butt",t.setLineDash)switch(ue){case"dotted":t.setLineDash([1,1]);break;case"dashed":t.setLineDash([4,2]);break;case"solid":case"double":t.setLineDash([]);break}var fe=f;d&&(fe={x:0,y:0});var O=o.getNodeShape(e),se=(s+I+(W+ie))/s,Te=(u+I+(W+ie))/u,ce=s*se,ye=u*Te,_e=o.nodeShapes[O].points,be;if(d){var Ge=we(ce,ye,O,_e);be=Ge.path}if(O==="ellipse")o.drawEllipsePath(be||t,fe.x,fe.y,ce,ye);else if(["round-diamond","round-heptagon","round-hexagon","round-octagon","round-pentagon","round-polygon","round-triangle","round-tag"].includes(O)){var Qe=0,vt=0,qe=0;O==="round-diamond"?Qe=(I+ie+W)*1.4:O==="round-heptagon"?(Qe=(I+ie+W)*1.075,qe=-(I/2+ie+W)/35):O==="round-hexagon"?Qe=(I+ie+W)*1.12:O==="round-pentagon"?(Qe=(I+ie+W)*1.13,qe=-(I/2+ie+W)/15):O==="round-tag"?(Qe=(I+ie+W)*1.12,vt=(I/2+W+ie)*.07):O==="round-triangle"&&(Qe=(I+ie+W)*(Math.PI/2),qe=-(I+ie/2+W)/Math.PI),Qe!==0&&(se=(s+Qe)/s,Te=(u+Qe)/u),o.drawRoundPolygonPath(be||t,fe.x+vt,fe.y+qe,s*se,u*Te,_e)}else if(["roundrectangle","round-rectangle"].includes(O))o.drawRoundRectanglePath(be||t,fe.x,fe.y,ce,ye);else if(["cutrectangle","cut-rectangle"].includes(O))o.drawCutRectanglePath(be||t,fe.x,fe.y,ce,ye);else if(["bottomroundrectangle","bottom-round-rectangle"].includes(O))o.drawBottomRoundRectanglePath(be||t,fe.x,fe.y,ce,ye);else if(O==="barrel")o.drawBarrelPath(be||t,fe.x,fe.y,ce,ye);else if(O.startsWith("polygon")||["rhomboid","right-rhomboid","round-tag","tag","vee"].includes(O)){var st=(I+W+ie)/s;_e=pn(yn(_e,st)),o.drawPolygonPath(be||t,fe.x,fe.y,s,u,_e)}else{var Ke=(I+W+ie)/s;_e=pn(yn(_e,-Ke)),o.drawPolygonPath(be||t,fe.x,fe.y,s,u,_e)}if(d?t.stroke(be):t.stroke(),ue==="double"){t.lineWidth=I/3;var Je=t.globalCompositeOperation;t.globalCompositeOperation="destination-out",d?t.stroke(be):t.stroke(),t.globalCompositeOperation=Je}t.setLineDash&&t.setLineDash([])}},Me=function(){n&&o.drawNodeOverlay(t,e,f,s,u)},$e=function(){n&&o.drawNodeUnderlay(t,e,f,s,u)},ze=function(){o.drawElementText(t,e,null,a)},Be=e.pstyle("ghost").value==="yes";if(Be){var Ue=e.pstyle("ghost-offset-x").pfValue,rt=e.pstyle("ghost-offset-y").pfValue,je=e.pstyle("ghost-opacity").value,We=je*h;t.translate(Ue,rt),Ce(),Ie(),ge(je*X),Le(),Se(We,!0),Ee(je*K),Xe(),Oe(G!==0||I!==0),Se(We,!1),Fe(We),t.translate(-Ue,-rt)}d&&t.translate(-f.x,-f.y),$e(),d&&t.translate(f.x,f.y),Ce(),Ie(),ge(),Le(),Se(h,!0),Ee(),Xe(),Oe(G!==0||I!==0),Se(h,!1),Fe(),d&&t.translate(-f.x,-f.y),ze(),Me(),r&&t.translate(g.x1,g.y1)}};var Tl=function(e){if(!["overlay","underlay"].includes(e))throw new Error("Invalid state");return function(r,a,n,i,o){var s=this;if(a.visible()){var u=a.pstyle("".concat(e,"-padding")).pfValue,l=a.pstyle("".concat(e,"-opacity")).value,v=a.pstyle("".concat(e,"-color")).value,f=a.pstyle("".concat(e,"-shape")).value;if(l>0){if(n=n||a.position(),i==null||o==null){var h=a.padding();i=a.width()+2*h,o=a.height()+2*h}s.colorFillStyle(r,v[0],v[1],v[2],l),s.nodeShapes[f].draw(r,n.x,n.y,i+u*2,o+u*2),r.fill()}}}};Ea.drawNodeOverlay=Tl("overlay"),Ea.drawNodeUnderlay=Tl("underlay"),Ea.hasPie=function(t){return t=t[0],t._private.hasPie},Ea.drawPie=function(t,e,r,a){e=e[0],a=a||e.position();var n=e.cy().style(),i=e.pstyle("pie-size"),o=a.x,s=a.y,u=e.width(),l=e.height(),v=Math.min(u,l)/2,f=0,h=this.usePaths();h&&(o=0,s=0),i.units==="%"?v=v*i.pfValue:i.pfValue!==void 0&&(v=i.pfValue/2);for(var d=1;d<=n.pieBackgroundN;d++){var c=e.pstyle("pie-"+d+"-background-size").value,y=e.pstyle("pie-"+d+"-background-color").value,p=e.pstyle("pie-"+d+"-background-opacity").value*r,g=c/100;g+f>1&&(g=1-f);var m=1.5*Math.PI+2*Math.PI*f,b=2*Math.PI*g,E=m+b;c===0||f>=1||f+g>1||(t.beginPath(),t.moveTo(o,s),t.arc(o,s,v,m,E),t.closePath(),this.colorFillStyle(t,y[0],y[1],y[2],p),t.fill(),f+=g)}};var Kt={},Jg=100;Kt.getPixelRatio=function(){var t=this.data.contexts[0];if(this.forcedPixelRatio!=null)return this.forcedPixelRatio;var e=t.backingStorePixelRatio||t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/e},Kt.paintCache=function(t){for(var e=this.paintCaches=this.paintCaches||[],r=!0,a,n=0;n<e.length;n++)if(a=e[n],a.context===t){r=!1;break}return r&&(a={context:t},e.push(a)),a},Kt.createGradientStyleFor=function(t,e,r,a,n){var i,o=this.usePaths(),s=r.pstyle(e+"-gradient-stop-colors").value,u=r.pstyle(e+"-gradient-stop-positions").pfValue;if(a==="radial-gradient")if(r.isEdge()){var l=r.sourceEndpoint(),v=r.targetEndpoint(),f=r.midpoint(),h=Br(l,f),d=Br(v,f);i=t.createRadialGradient(f.x,f.y,0,f.x,f.y,Math.max(h,d))}else{var c=o?{x:0,y:0}:r.position(),y=r.paddedWidth(),p=r.paddedHeight();i=t.createRadialGradient(c.x,c.y,0,c.x,c.y,Math.max(y,p))}else if(r.isEdge()){var g=r.sourceEndpoint(),m=r.targetEndpoint();i=t.createLinearGradient(g.x,g.y,m.x,m.y)}else{var b=o?{x:0,y:0}:r.position(),E=r.paddedWidth(),M=r.paddedHeight(),L=E/2,w=M/2,k=r.pstyle("background-gradient-direction").value;switch(k){case"to-bottom":i=t.createLinearGradient(b.x,b.y-w,b.x,b.y+w);break;case"to-top":i=t.createLinearGradient(b.x,b.y+w,b.x,b.y-w);break;case"to-left":i=t.createLinearGradient(b.x+L,b.y,b.x-L,b.y);break;case"to-right":i=t.createLinearGradient(b.x-L,b.y,b.x+L,b.y);break;case"to-bottom-right":case"to-right-bottom":i=t.createLinearGradient(b.x-L,b.y-w,b.x+L,b.y+w);break;case"to-top-right":case"to-right-top":i=t.createLinearGradient(b.x-L,b.y+w,b.x+L,b.y-w);break;case"to-bottom-left":case"to-left-bottom":i=t.createLinearGradient(b.x+L,b.y-w,b.x-L,b.y+w);break;case"to-top-left":case"to-left-top":i=t.createLinearGradient(b.x+L,b.y+w,b.x-L,b.y-w);break}}if(!i)return null;for(var D=u.length===s.length,F=s.length,G=0;G<F;G++)i.addColorStop(D?u[G]:G/(F-1),"rgba("+s[G][0]+","+s[G][1]+","+s[G][2]+","+n+")");return i},Kt.gradientFillStyle=function(t,e,r,a){var n=this.createGradientStyleFor(t,"background",e,r,a);if(!n)return null;t.fillStyle=n},Kt.colorFillStyle=function(t,e,r,a,n){t.fillStyle="rgba("+e+","+r+","+a+","+n+")"},Kt.eleFillStyle=function(t,e,r){var a=e.pstyle("background-fill").value;if(a==="linear-gradient"||a==="radial-gradient")this.gradientFillStyle(t,e,a,r);else{var n=e.pstyle("background-color").value;this.colorFillStyle(t,n[0],n[1],n[2],r)}},Kt.gradientStrokeStyle=function(t,e,r,a){var n=this.createGradientStyleFor(t,"line",e,r,a);if(!n)return null;t.strokeStyle=n},Kt.colorStrokeStyle=function(t,e,r,a,n){t.strokeStyle="rgba("+e+","+r+","+a+","+n+")"},Kt.eleStrokeStyle=function(t,e,r){var a=e.pstyle("line-fill").value;if(a==="linear-gradient"||a==="radial-gradient")this.gradientStrokeStyle(t,e,a,r);else{var n=e.pstyle("line-color").value;this.colorStrokeStyle(t,n[0],n[1],n[2],r)}},Kt.matchCanvasSize=function(t){var e=this,r=e.data,a=e.findContainerClientCoords(),n=a[2],i=a[3],o=e.getPixelRatio(),s=e.motionBlurPxRatio;(t===e.data.bufferCanvases[e.MOTIONBLUR_BUFFER_NODE]||t===e.data.bufferCanvases[e.MOTIONBLUR_BUFFER_DRAG])&&(o=s);var u=n*o,l=i*o,v;if(!(u===e.canvasWidth&&l===e.canvasHeight)){e.fontCaches=null;var f=r.canvasContainer;f.style.width=n+"px",f.style.height=i+"px";for(var h=0;h<e.CANVAS_LAYERS;h++)v=r.canvases[h],v.width=u,v.height=l,v.style.width=n+"px",v.style.height=i+"px";for(var h=0;h<e.BUFFER_COUNT;h++)v=r.bufferCanvases[h],v.width=u,v.height=l,v.style.width=n+"px",v.style.height=i+"px";e.textureMult=1,o<=1&&(v=r.bufferCanvases[e.TEXTURE_BUFFER],e.textureMult=2,v.width=u*e.textureMult,v.height=l*e.textureMult),e.canvasWidth=u,e.canvasHeight=l}},Kt.renderTo=function(t,e,r,a){this.render({forcedContext:t,forcedZoom:e,forcedPan:r,drawAllLayers:!0,forcedPxRatio:a})},Kt.render=function(t){t=t||mo();var e=t.forcedContext,r=t.drawAllLayers,a=t.drawOnlyNodeLayer,n=t.forcedZoom,i=t.forcedPan,o=this,s=t.forcedPxRatio===void 0?this.getPixelRatio():t.forcedPxRatio,u=o.cy,l=o.data,v=l.canvasNeedsRedraw,f=o.textureOnViewport&&!e&&(o.pinching||o.hoverData.dragging||o.swipePanning||o.data.wheelZooming),h=t.motionBlur!==void 0?t.motionBlur:o.motionBlur,d=o.motionBlurPxRatio,c=u.hasCompoundNodes(),y=o.hoverData.draggingEles,p=!!(o.hoverData.selecting||o.touchData.selecting);h=h&&!e&&o.motionBlurEnabled&&!p;var g=h;e||(o.prevPxRatio!==s&&(o.invalidateContainerClientCoordsCache(),o.matchCanvasSize(o.container),o.redrawHint("eles",!0),o.redrawHint("drag",!0)),o.prevPxRatio=s),!e&&o.motionBlurTimeout&&clearTimeout(o.motionBlurTimeout),h&&(o.mbFrames==null&&(o.mbFrames=0),o.mbFrames++,o.mbFrames<3&&(g=!1),o.mbFrames>o.minMbLowQualFrames&&(o.motionBlurPxRatio=o.mbPxRBlurry)),o.clearingMotionBlur&&(o.motionBlurPxRatio=1),o.textureDrawLastFrame&&!f&&(v[o.NODE]=!0,v[o.SELECT_BOX]=!0);var m=u.style(),b=u.zoom(),E=n!==void 0?n:b,M=u.pan(),L={x:M.x,y:M.y},w={zoom:b,pan:{x:M.x,y:M.y}},k=o.prevViewport,D=k===void 0||w.zoom!==k.zoom||w.pan.x!==k.pan.x||w.pan.y!==k.pan.y;!D&&!(y&&!c)&&(o.motionBlurPxRatio=1),i&&(L=i),E*=s,L.x*=s,L.y*=s;var F=o.getCachedZSortedEles();function G(Ie,Me,$e,ze,Be){var Ue=Ie.globalCompositeOperation;Ie.globalCompositeOperation="destination-out",o.colorFillStyle(Ie,255,255,255,o.motionBlurTransparency),Ie.fillRect(Me,$e,ze,Be),Ie.globalCompositeOperation=Ue}function I(Ie,Me){var $e,ze,Be,Ue;!o.clearingMotionBlur&&(Ie===l.bufferContexts[o.MOTIONBLUR_BUFFER_NODE]||Ie===l.bufferContexts[o.MOTIONBLUR_BUFFER_DRAG])?($e={x:M.x*d,y:M.y*d},ze=b*d,Be=o.canvasWidth*d,Ue=o.canvasHeight*d):($e=L,ze=E,Be=o.canvasWidth,Ue=o.canvasHeight),Ie.setTransform(1,0,0,1,0,0),Me==="motionBlur"?G(Ie,0,0,Be,Ue):!e&&(Me===void 0||Me)&&Ie.clearRect(0,0,Be,Ue),r||(Ie.translate($e.x,$e.y),Ie.scale(ze,ze)),i&&Ie.translate(i.x,i.y),n&&Ie.scale(n,n)}if(f||(o.textureDrawLastFrame=!1),f){if(o.textureDrawLastFrame=!0,!o.textureCache){o.textureCache={},o.textureCache.bb=u.mutableElements().boundingBox(),o.textureCache.texture=o.data.bufferCanvases[o.TEXTURE_BUFFER];var X=o.data.bufferContexts[o.TEXTURE_BUFFER];X.setTransform(1,0,0,1,0,0),X.clearRect(0,0,o.canvasWidth*o.textureMult,o.canvasHeight*o.textureMult),o.render({forcedContext:X,drawOnlyNodeLayer:!0,forcedPxRatio:s*o.textureMult});var w=o.textureCache.viewport={zoom:u.zoom(),pan:u.pan(),width:o.canvasWidth,height:o.canvasHeight};w.mpan={x:(0-w.pan.x)/w.zoom,y:(0-w.pan.y)/w.zoom}}v[o.DRAG]=!1,v[o.NODE]=!1;var B=l.contexts[o.NODE],re=o.textureCache.texture,w=o.textureCache.viewport;B.setTransform(1,0,0,1,0,0),h?G(B,0,0,w.width,w.height):B.clearRect(0,0,w.width,w.height);var K=m.core("outside-texture-bg-color").value,W=m.core("outside-texture-bg-opacity").value;o.colorFillStyle(B,K[0],K[1],K[2],W),B.fillRect(0,0,w.width,w.height);var b=u.zoom();I(B,!1),B.clearRect(w.mpan.x,w.mpan.y,w.width/w.zoom/s,w.height/w.zoom/s),B.drawImage(re,w.mpan.x,w.mpan.y,w.width/w.zoom/s,w.height/w.zoom/s)}else o.textureOnViewport&&!e&&(o.textureCache=null);var ae=u.extent(),ue=o.pinching||o.hoverData.dragging||o.swipePanning||o.data.wheelZooming||o.hoverData.draggingEles||o.cy.animated(),me=o.hideEdgesOnViewport&&ue,ie=[];if(ie[o.NODE]=!v[o.NODE]&&h&&!o.clearedForMotionBlur[o.NODE]||o.clearingMotionBlur,ie[o.NODE]&&(o.clearedForMotionBlur[o.NODE]=!0),ie[o.DRAG]=!v[o.DRAG]&&h&&!o.clearedForMotionBlur[o.DRAG]||o.clearingMotionBlur,ie[o.DRAG]&&(o.clearedForMotionBlur[o.DRAG]=!0),v[o.NODE]||r||a||ie[o.NODE]){var ge=h&&!ie[o.NODE]&&d!==1,B=e||(ge?o.data.bufferContexts[o.MOTIONBLUR_BUFFER_NODE]:l.contexts[o.NODE]),Ee=h&&!ge?"motionBlur":void 0;I(B,Ee),me?o.drawCachedNodes(B,F.nondrag,s,ae):o.drawLayeredElements(B,F.nondrag,s,ae),o.debug&&o.drawDebugPoints(B,F.nondrag),!r&&!h&&(v[o.NODE]=!1)}if(!a&&(v[o.DRAG]||r||ie[o.DRAG])){var ge=h&&!ie[o.DRAG]&&d!==1,B=e||(ge?o.data.bufferContexts[o.MOTIONBLUR_BUFFER_DRAG]:l.contexts[o.DRAG]);I(B,h&&!ge?"motionBlur":void 0),me?o.drawCachedNodes(B,F.drag,s,ae):o.drawCachedElements(B,F.drag,s,ae),o.debug&&o.drawDebugPoints(B,F.drag),!r&&!h&&(v[o.DRAG]=!1)}if(o.showFps||!a&&v[o.SELECT_BOX]&&!r){var B=e||l.contexts[o.SELECT_BOX];if(I(B),o.selection[4]==1&&(o.hoverData.selecting||o.touchData.selecting)){var b=o.cy.zoom(),Ce=m.core("selection-box-border-width").value/b;B.lineWidth=Ce,B.fillStyle="rgba("+m.core("selection-box-color").value[0]+","+m.core("selection-box-color").value[1]+","+m.core("selection-box-color").value[2]+","+m.core("selection-box-opacity").value+")",B.fillRect(o.selection[0],o.selection[1],o.selection[2]-o.selection[0],o.selection[3]-o.selection[1]),Ce>0&&(B.strokeStyle="rgba("+m.core("selection-box-border-color").value[0]+","+m.core("selection-box-border-color").value[1]+","+m.core("selection-box-border-color").value[2]+","+m.core("selection-box-opacity").value+")",B.strokeRect(o.selection[0],o.selection[1],o.selection[2]-o.selection[0],o.selection[3]-o.selection[1]))}if(l.bgActivePosistion&&!o.hoverData.selecting){var b=o.cy.zoom(),we=l.bgActivePosistion;B.fillStyle="rgba("+m.core("active-bg-color").value[0]+","+m.core("active-bg-color").value[1]+","+m.core("active-bg-color").value[2]+","+m.core("active-bg-opacity").value+")",B.beginPath(),B.arc(we.x,we.y,m.core("active-bg-size").pfValue/b,0,2*Math.PI),B.fill()}var De=o.lastRedrawTime;if(o.showFps&&De){De=Math.round(De);var oe=Math.round(1e3/De);B.setTransform(1,0,0,1,0,0),B.fillStyle="rgba(255, 0, 0, 0.75)",B.strokeStyle="rgba(255, 0, 0, 0.75)",B.lineWidth=1,B.fillText("1 frame = "+De+" ms = "+oe+" fps",0,20);var xe=60;B.strokeRect(0,30,250,20),B.fillRect(0,30,250*Math.min(oe/xe,1),20)}r||(v[o.SELECT_BOX]=!1)}if(h&&d!==1){var Le=l.contexts[o.NODE],Se=o.data.bufferCanvases[o.MOTIONBLUR_BUFFER_NODE],Oe=l.contexts[o.DRAG],Fe=o.data.bufferCanvases[o.MOTIONBLUR_BUFFER_DRAG],Xe=function(Me,$e,ze){Me.setTransform(1,0,0,1,0,0),ze||!g?Me.clearRect(0,0,o.canvasWidth,o.canvasHeight):G(Me,0,0,o.canvasWidth,o.canvasHeight);var Be=d;Me.drawImage($e,0,0,o.canvasWidth*Be,o.canvasHeight*Be,0,0,o.canvasWidth,o.canvasHeight)};(v[o.NODE]||ie[o.NODE])&&(Xe(Le,Se,ie[o.NODE]),v[o.NODE]=!1),(v[o.DRAG]||ie[o.DRAG])&&(Xe(Oe,Fe,ie[o.DRAG]),v[o.DRAG]=!1)}o.prevViewport=w,o.clearingMotionBlur&&(o.clearingMotionBlur=!1,o.motionBlurCleared=!0,o.motionBlur=!0),h&&(o.motionBlurTimeout=setTimeout(function(){o.motionBlurTimeout=null,o.clearedForMotionBlur[o.NODE]=!1,o.clearedForMotionBlur[o.DRAG]=!1,o.motionBlur=!1,o.clearingMotionBlur=!f,o.mbFrames=0,v[o.NODE]=!0,v[o.DRAG]=!0,o.redraw()},Jg)),e||u.emit("render")};var Mr={};Mr.drawPolygonPath=function(t,e,r,a,n,i){var o=a/2,s=n/2;t.beginPath&&t.beginPath(),t.moveTo(e+o*i[0],r+s*i[1]);for(var u=1;u<i.length/2;u++)t.lineTo(e+o*i[u*2],r+s*i[u*2+1]);t.closePath()},Mr.drawRoundPolygonPath=function(t,e,r,a,n,i){var o=a/2,s=n/2,u=ci(a,n);t.beginPath&&t.beginPath();for(var l=0;l<i.length/4;l++){var v=void 0,f=void 0;l===0?v=i.length-2:v=l*4-2,f=l*4+2;var h=e+o*i[l*4],d=r+s*i[l*4+1],c=-i[v]*i[f]-i[v+1]*i[f+1],y=u/Math.tan(Math.acos(c)/2),p=h-y*i[v],g=d-y*i[v+1],m=h+y*i[f],b=d+y*i[f+1];l===0?t.moveTo(p,g):t.lineTo(p,g),t.arcTo(h,d,m,b,u)}t.closePath()},Mr.drawRoundRectanglePath=function(t,e,r,a,n){var i=a/2,o=n/2,s=Fa(a,n);t.beginPath&&t.beginPath(),t.moveTo(e,r-o),t.arcTo(e+i,r-o,e+i,r,s),t.arcTo(e+i,r+o,e,r+o,s),t.arcTo(e-i,r+o,e-i,r,s),t.arcTo(e-i,r-o,e,r-o,s),t.lineTo(e,r-o),t.closePath()},Mr.drawBottomRoundRectanglePath=function(t,e,r,a,n){var i=a/2,o=n/2,s=Fa(a,n);t.beginPath&&t.beginPath(),t.moveTo(e,r-o),t.lineTo(e+i,r-o),t.lineTo(e+i,r),t.arcTo(e+i,r+o,e,r+o,s),t.arcTo(e-i,r+o,e-i,r,s),t.lineTo(e-i,r-o),t.lineTo(e,r-o),t.closePath()},Mr.drawCutRectanglePath=function(t,e,r,a,n){var i=a/2,o=n/2,s=Lo();t.beginPath&&t.beginPath(),t.moveTo(e-i+s,r-o),t.lineTo(e+i-s,r-o),t.lineTo(e+i,r-o+s),t.lineTo(e+i,r+o-s),t.lineTo(e+i-s,r+o),t.lineTo(e-i+s,r+o),t.lineTo(e-i,r+o-s),t.lineTo(e-i,r-o+s),t.closePath()},Mr.drawBarrelPath=function(t,e,r,a,n){var i=a/2,o=n/2,s=e-i,u=e+i,l=r-o,v=r+o,f=di(a,n),h=f.widthOffset,d=f.heightOffset,c=f.ctrlPtOffsetPct*h;t.beginPath&&t.beginPath(),t.moveTo(s,l+d),t.lineTo(s,v-d),t.quadraticCurveTo(s+c,v,s+h,v),t.lineTo(u-h,v),t.quadraticCurveTo(u-c,v,u,v-d),t.lineTo(u,l+d),t.quadraticCurveTo(u-c,l,u-h,l),t.lineTo(s+h,l),t.quadraticCurveTo(s+c,l,s,l+d),t.closePath()};for(var Cl=Math.sin(0),Dl=Math.cos(0),Yi={},Hi={},Sl=Math.PI/40,wa=0*Math.PI;wa<2*Math.PI;wa+=Sl)Yi[wa]=Math.sin(wa),Hi[wa]=Math.cos(wa);Mr.drawEllipsePath=function(t,e,r,a,n){if(t.beginPath&&t.beginPath(),t.ellipse)t.ellipse(e,r,a/2,n/2,0,0,2*Math.PI);else for(var i,o,s=a/2,u=n/2,l=0*Math.PI;l<2*Math.PI;l+=Sl)i=e-s*Yi[l]*Cl+s*Hi[l]*Dl,o=r+u*Hi[l]*Cl+u*Yi[l]*Dl,l===0?t.moveTo(i,o):t.lineTo(i,o);t.closePath()};var tn={};tn.createBuffer=function(t,e){var r=document.createElement("canvas");return r.width=t,r.height=e,[r,r.getContext("2d")]},tn.bufferCanvasImage=function(t){var e=this.cy,r=e.mutableElements(),a=r.boundingBox(),n=this.findContainerClientCoords(),i=t.full?Math.ceil(a.w):n[2],o=t.full?Math.ceil(a.h):n[3],s=R(t.maxWidth)||R(t.maxHeight),u=this.getPixelRatio(),l=1;if(t.scale!==void 0)i*=t.scale,o*=t.scale,l=t.scale;else if(s){var v=1/0,f=1/0;R(t.maxWidth)&&(v=l*t.maxWidth/i),R(t.maxHeight)&&(f=l*t.maxHeight/o),l=Math.min(v,f),i*=l,o*=l}s||(i*=u,o*=u,l*=u);var h=document.createElement("canvas");h.width=i,h.height=o,h.style.width=i+"px",h.style.height=o+"px";var d=h.getContext("2d");if(i>0&&o>0){d.clearRect(0,0,i,o),d.globalCompositeOperation="source-over";var c=this.getCachedZSortedEles();if(t.full)d.translate(-a.x1*l,-a.y1*l),d.scale(l,l),this.drawElements(d,c),d.scale(1/l,1/l),d.translate(a.x1*l,a.y1*l);else{var y=e.pan(),p={x:y.x*l,y:y.y*l};l*=e.zoom(),d.translate(p.x,p.y),d.scale(l,l),this.drawElements(d,c),d.scale(1/l,1/l),d.translate(-p.x,-p.y)}t.bg&&(d.globalCompositeOperation="destination-over",d.fillStyle=t.bg,d.rect(0,0,i,o),d.fill())}return h};function jg(t,e){for(var r=atob(t),a=new ArrayBuffer(r.length),n=new Uint8Array(a),i=0;i<r.length;i++)n[i]=r.charCodeAt(i);return new Blob([a],{type:e})}function Ll(t){var e=t.indexOf(",");return t.substr(e+1)}function Al(t,e,r){var a=function(){return e.toDataURL(r,t.quality)};switch(t.output){case"blob-promise":return new ia(function(n,i){try{e.toBlob(function(o){o!=null?n(o):i(new Error("`canvas.toBlob()` sent a null value in its callback"))},r,t.quality)}catch(o){i(o)}});case"blob":return jg(Ll(a()),r);case"base64":return Ll(a());case"base64uri":default:return a()}}tn.png=function(t){return Al(t,this.bufferCanvasImage(t),"image/png")},tn.jpg=function(t){return Al(t,this.bufferCanvasImage(t),"image/jpeg")};var Ol={};Ol.nodeShapeImpl=function(t,e,r,a,n,i,o){switch(t){case"ellipse":return this.drawEllipsePath(e,r,a,n,i);case"polygon":return this.drawPolygonPath(e,r,a,n,i,o);case"round-polygon":return this.drawRoundPolygonPath(e,r,a,n,i,o);case"roundrectangle":case"round-rectangle":return this.drawRoundRectanglePath(e,r,a,n,i);case"cutrectangle":case"cut-rectangle":return this.drawCutRectanglePath(e,r,a,n,i);case"bottomroundrectangle":case"bottom-round-rectangle":return this.drawBottomRoundRectanglePath(e,r,a,n,i);case"barrel":return this.drawBarrelPath(e,r,a,n,i)}};var ep=Nl,ut=Nl.prototype;ut.CANVAS_LAYERS=3,ut.SELECT_BOX=0,ut.DRAG=1,ut.NODE=2,ut.BUFFER_COUNT=3,ut.TEXTURE_BUFFER=0,ut.MOTIONBLUR_BUFFER_NODE=1,ut.MOTIONBLUR_BUFFER_DRAG=2;function Nl(t){var e=this;e.data={canvases:new Array(ut.CANVAS_LAYERS),contexts:new Array(ut.CANVAS_LAYERS),canvasNeedsRedraw:new Array(ut.CANVAS_LAYERS),bufferCanvases:new Array(ut.BUFFER_COUNT),bufferContexts:new Array(ut.CANVAS_LAYERS)};var r="-webkit-tap-highlight-color",a="rgba(0,0,0,0)";e.data.canvasContainer=document.createElement("div");var n=e.data.canvasContainer.style;e.data.canvasContainer.style[r]=a,n.position="relative",n.zIndex="0",n.overflow="hidden";var i=t.cy.container();i.appendChild(e.data.canvasContainer),i.style[r]=a;var o={"-webkit-user-select":"none","-moz-user-select":"-moz-none","user-select":"none","-webkit-tap-highlight-color":"rgba(0,0,0,0)","outline-style":"none"};ft()&&(o["-ms-touch-action"]="none",o["touch-action"]="none");for(var s=0;s<ut.CANVAS_LAYERS;s++){var u=e.data.canvases[s]=document.createElement("canvas");e.data.contexts[s]=u.getContext("2d"),Object.keys(o).forEach(function(De){u.style[De]=o[De]}),u.style.position="absolute",u.setAttribute("data-id","layer"+s),u.style.zIndex=String(ut.CANVAS_LAYERS-s),e.data.canvasContainer.appendChild(u),e.data.canvasNeedsRedraw[s]=!1}e.data.topCanvas=e.data.canvases[0],e.data.canvases[ut.NODE].setAttribute("data-id","layer"+ut.NODE+"-node"),e.data.canvases[ut.SELECT_BOX].setAttribute("data-id","layer"+ut.SELECT_BOX+"-selectbox"),e.data.canvases[ut.DRAG].setAttribute("data-id","layer"+ut.DRAG+"-drag");for(var s=0;s<ut.BUFFER_COUNT;s++)e.data.bufferCanvases[s]=document.createElement("canvas"),e.data.bufferContexts[s]=e.data.bufferCanvases[s].getContext("2d"),e.data.bufferCanvases[s].style.position="absolute",e.data.bufferCanvases[s].setAttribute("data-id","buffer"+s),e.data.bufferCanvases[s].style.zIndex=String(-s-1),e.data.bufferCanvases[s].style.visibility="hidden";e.pathsEnabled=!0;var l=Yt(),v=function(oe){return{x:(oe.x1+oe.x2)/2,y:(oe.y1+oe.y2)/2}},f=function(oe){return{x:-oe.w/2,y:-oe.h/2}},h=function(oe){var xe=oe[0]._private,Le=xe.oldBackgroundTimestamp===xe.backgroundTimestamp;return!Le},d=function(oe){return oe[0]._private.nodeKey},c=function(oe){return oe[0]._private.labelStyleKey},y=function(oe){return oe[0]._private.sourceLabelStyleKey},p=function(oe){return oe[0]._private.targetLabelStyleKey},g=function(oe,xe,Le,Se,Oe){return e.drawElement(oe,xe,Le,!1,!1,Oe)},m=function(oe,xe,Le,Se,Oe){return e.drawElementText(oe,xe,Le,Se,"main",Oe)},b=function(oe,xe,Le,Se,Oe){return e.drawElementText(oe,xe,Le,Se,"source",Oe)},E=function(oe,xe,Le,Se,Oe){return e.drawElementText(oe,xe,Le,Se,"target",Oe)},M=function(oe){return oe.boundingBox(),oe[0]._private.bodyBounds},L=function(oe){return oe.boundingBox(),oe[0]._private.labelBounds.main||l},w=function(oe){return oe.boundingBox(),oe[0]._private.labelBounds.source||l},k=function(oe){return oe.boundingBox(),oe[0]._private.labelBounds.target||l},D=function(oe,xe){return xe},F=function(oe){return v(M(oe))},G=function(oe,xe,Le){var Se=oe?oe+"-":"";return{x:xe.x+Le.pstyle(Se+"text-margin-x").pfValue,y:xe.y+Le.pstyle(Se+"text-margin-y").pfValue}},I=function(oe,xe,Le){var Se=oe[0]._private.rscratch;return{x:Se[xe],y:Se[Le]}},X=function(oe){return G("",I(oe,"labelX","labelY"),oe)},B=function(oe){return G("source",I(oe,"sourceLabelX","sourceLabelY"),oe)},re=function(oe){return G("target",I(oe,"targetLabelX","targetLabelY"),oe)},K=function(oe){return f(M(oe))},W=function(oe){return f(w(oe))},ae=function(oe){return f(k(oe))},ue=function(oe){var xe=L(oe),Le=f(L(oe));if(oe.isNode()){switch(oe.pstyle("text-halign").value){case"left":Le.x=-xe.w;break;case"right":Le.x=0;break}switch(oe.pstyle("text-valign").value){case"top":Le.y=-xe.h;break;case"bottom":Le.y=0;break}}return Le},me=e.data.eleTxrCache=new ja(e,{getKey:d,doesEleInvalidateKey:h,drawElement:g,getBoundingBox:M,getRotationPoint:F,getRotationOffset:K,allowEdgeTxrCaching:!1,allowParentTxrCaching:!1}),ie=e.data.lblTxrCache=new ja(e,{getKey:c,drawElement:m,getBoundingBox:L,getRotationPoint:X,getRotationOffset:ue,isVisible:D}),ge=e.data.slbTxrCache=new ja(e,{getKey:y,drawElement:b,getBoundingBox:w,getRotationPoint:B,getRotationOffset:W,isVisible:D}),Ee=e.data.tlbTxrCache=new ja(e,{getKey:p,drawElement:E,getBoundingBox:k,getRotationPoint:re,getRotationOffset:ae,isVisible:D}),Ce=e.data.lyrTxrCache=new yl(e);e.onUpdateEleCalcs(function(oe,xe){me.invalidateElements(xe),ie.invalidateElements(xe),ge.invalidateElements(xe),Ee.invalidateElements(xe),Ce.invalidateElements(xe);for(var Le=0;Le<xe.length;Le++){var Se=xe[Le]._private;Se.oldBackgroundTimestamp=Se.backgroundTimestamp}});var we=function(oe){for(var xe=0;xe<oe.length;xe++)Ce.enqueueElementRefinement(oe[xe].ele)};me.onDequeue(we),ie.onDequeue(we),ge.onDequeue(we),Ee.onDequeue(we)}ut.redrawHint=function(t,e){var r=this;switch(t){case"eles":r.data.canvasNeedsRedraw[ut.NODE]=e;break;case"drag":r.data.canvasNeedsRedraw[ut.DRAG]=e;break;case"select":r.data.canvasNeedsRedraw[ut.SELECT_BOX]=e;break}};var tp=typeof Path2D<"u";ut.path2dEnabled=function(t){if(t===void 0)return this.pathsEnabled;this.pathsEnabled=!!t},ut.usePaths=function(){return tp&&this.pathsEnabled},ut.setImgSmoothing=function(t,e){t.imageSmoothingEnabled!=null?t.imageSmoothingEnabled=e:(t.webkitImageSmoothingEnabled=e,t.mozImageSmoothingEnabled=e,t.msImageSmoothingEnabled=e)},ut.getImgSmoothing=function(t){return t.imageSmoothingEnabled!=null?t.imageSmoothingEnabled:t.webkitImageSmoothingEnabled||t.mozImageSmoothingEnabled||t.msImageSmoothingEnabled},ut.makeOffscreenCanvas=function(t,e){var r;return(typeof OffscreenCanvas>"u"?"undefined":_(OffscreenCanvas))!=="undefined"?r=new OffscreenCanvas(t,e):(r=document.createElement("canvas"),r.width=t,r.height=e),r},[bl,hr,br,Ui,_r,Ea,Kt,Mr,tn,Ol].forEach(function(t){He(ut,t)});var rp=[{name:"null",impl:tl},{name:"base",impl:cl},{name:"canvas",impl:ep}],ap=[{type:"layout",extensions:fg},{type:"renderer",extensions:rp}],Il={},Ml={};function Rl(t,e,r){var a=r,n=function(k){ht("Can not register `"+e+"` for `"+t+"` since `"+k+"` already exists in the prototype and can not be overridden")};if(t==="core"){if(Za.prototype[e])return n(e);Za.prototype[e]=r}else if(t==="collection"){if(Nt.prototype[e])return n(e);Nt.prototype[e]=r}else if(t==="layout"){for(var i=function(k){this.options=k,r.call(this,k),S(this._private)||(this._private={}),this._private.cy=k.cy,this._private.listeners=[],this.createEmitter()},o=i.prototype=Object.create(r.prototype),s=[],u=0;u<s.length;u++){var l=s[u];o[l]=o[l]||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=r.prototype.stop;o.stop=function(){var w=this.options;if(w&&w.animate){var k=this.animations;if(k)for(var D=0;D<k.length;D++)k[D].stop()}return v?v.call(this):this.emit("layoutstop"),this},o.destroy||(o.destroy=function(){return this}),o.cy=function(){return this._private.cy};var f=function(k){return k._private.cy},h={addEventFields:function(k,D){D.layout=k,D.cy=f(k),D.target=k},bubble:function(){return!0},parent:function(k){return f(k)}};He(o,{createEmitter:function(){return this._private.emitter=new In(h,this),this},emitter:function(){return this._private.emitter},on:function(k,D){return this.emitter().on(k,D),this},one:function(k,D){return this.emitter().one(k,D),this},once:function(k,D){return this.emitter().one(k,D),this},removeListener:function(k,D){return this.emitter().removeListener(k,D),this},removeAllListeners:function(){return this.emitter().removeAllListeners(),this},emit:function(k,D){return this.emitter().emit(k,D),this}}),ct.eventAliasesOn(o),a=i}else if(t==="renderer"&&e!=="null"&&e!=="base"){var d=kl("renderer","base"),c=d.prototype,y=r,p=r.prototype,g=function(){d.apply(this,arguments),y.apply(this,arguments)},m=g.prototype;for(var b in c){var E=c[b],M=p[b]!=null;if(M)return n(b);m[b]=E}for(var L in p)m[L]=p[L];c.clientFunctions.forEach(function(w){m[w]=m[w]||function(){xt("Renderer does not implement `renderer."+w+"()` on its prototype")}}),a=g}else if(t==="__proto__"||t==="constructor"||t==="prototype")return xt(t+" is an illegal type to be registered, possibly lead to prototype pollutions");return to({map:Il,keys:[t,e],value:a})}function kl(t,e){return ro({map:Il,keys:[t,e]})}function np(t,e,r,a,n){return to({map:Ml,keys:[t,e,r,a],value:n})}function ip(t,e,r,a){return ro({map:Ml,keys:[t,e,r,a]})}var Xi=function(){if(arguments.length===2)return kl.apply(null,arguments);if(arguments.length===3)return Rl.apply(null,arguments);if(arguments.length===4)return ip.apply(null,arguments);if(arguments.length===5)return np.apply(null,arguments);xt("Invalid extension access syntax")};Za.prototype.extension=Xi,ap.forEach(function(t){t.extensions.forEach(function(e){Rl(t.type,e.name,e.impl)})});var Pl=function t(){if(!(this instanceof t))return new t;this.length=0},Yr=Pl.prototype;Yr.instanceString=function(){return"stylesheet"},Yr.selector=function(t){var e=this.length++;return this[e]={selector:t,properties:[]},this},Yr.css=function(t,e){var r=this.length-1;if(ee(t))this[r].properties.push({name:t,value:e});else if(S(t))for(var a=t,n=Object.keys(a),i=0;i<n.length;i++){var o=n[i],s=a[o];if(s!=null){var u=Gt.properties[o]||Gt.properties[yt(o)];if(u!=null){var l=u.name,v=s;this[r].properties.push({name:l,value:v})}}}return this},Yr.style=Yr.css,Yr.generateStyle=function(t){var e=new Gt(t);return this.appendToStyle(e)},Yr.appendToStyle=function(t){for(var e=0;e<this.length;e++){var r=this[e],a=r.selector,n=r.properties;t.selector(a);for(var i=0;i<n.length;i++){var o=n[i];t.css(o.name,o.value)}}return t};var op="3.28.1",Hr=function(e){if(e===void 0&&(e={}),S(e))return new Za(e);if(ee(e))return Xi.apply(Xi,arguments)};return Hr.use=function(t){var e=Array.prototype.slice.call(arguments,1);return e.unshift(Hr),t.apply(null,e),this},Hr.warnings=function(t){return po(t)},Hr.version=op,Hr.stylesheet=Hr.Stylesheet=Pl,Hr})})(Yl);var Fp=Yl.exports;const Hl=Ul(Fp);var Xl={exports:{}},Ki={exports:{}},Zi={exports:{}},Vl;function Gp(){return Vl||(Vl=1,function(de,Pe){(function(ve,J){de.exports=J()})(Ca,function(){return function(_){var ve={};function J(C){if(ve[C])return ve[C].exports;var T=ve[C]={i:C,l:!1,exports:{}};return _[C].call(T.exports,T,T.exports,J),T.l=!0,T.exports}return J.m=_,J.c=ve,J.i=function(C){return C},J.d=function(C,T,x){J.o(C,T)||Object.defineProperty(C,T,{configurable:!1,enumerable:!0,get:x})},J.n=function(C){var T=C&&C.__esModule?function(){return C.default}:function(){return C};return J.d(T,"a",T),T},J.o=function(C,T){return Object.prototype.hasOwnProperty.call(C,T)},J.p="",J(J.s=26)}([function(_,ve,J){function C(){}C.QUALITY=1,C.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,C.DEFAULT_INCREMENTAL=!1,C.DEFAULT_ANIMATION_ON_LAYOUT=!0,C.DEFAULT_ANIMATION_DURING_LAYOUT=!1,C.DEFAULT_ANIMATION_PERIOD=50,C.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,C.DEFAULT_GRAPH_MARGIN=15,C.NODE_DIMENSIONS_INCLUDE_LABELS=!1,C.SIMPLE_NODE_SIZE=40,C.SIMPLE_NODE_HALF_SIZE=C.SIMPLE_NODE_SIZE/2,C.EMPTY_COMPOUND_NODE_SIZE=40,C.MIN_EDGE_LENGTH=1,C.WORLD_BOUNDARY=1e6,C.INITIAL_WORLD_BOUNDARY=C.WORLD_BOUNDARY/1e3,C.WORLD_CENTER_X=1200,C.WORLD_CENTER_Y=900,_.exports=C},function(_,ve,J){var C=J(2),T=J(8),x=J(9);function N(Y,P,Z){C.call(this,Z),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=Z,this.bendpoints=[],this.source=Y,this.target=P}N.prototype=Object.create(C.prototype);for(var z in C)N[z]=C[z];N.prototype.getSource=function(){return this.source},N.prototype.getTarget=function(){return this.target},N.prototype.isInterGraph=function(){return this.isInterGraph},N.prototype.getLength=function(){return this.length},N.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},N.prototype.getBendpoints=function(){return this.bendpoints},N.prototype.getLca=function(){return this.lca},N.prototype.getSourceInLca=function(){return this.sourceInLca},N.prototype.getTargetInLca=function(){return this.targetInLca},N.prototype.getOtherEnd=function(Y){if(this.source===Y)return this.target;if(this.target===Y)return this.source;throw"Node is not incident with this edge"},N.prototype.getOtherEndInGraph=function(Y,P){for(var Z=this.getOtherEnd(Y),A=P.getGraphManager().getRoot();;){if(Z.getOwner()==P)return Z;if(Z.getOwner()==A)break;Z=Z.getOwner().getParent()}return null},N.prototype.updateLength=function(){var Y=new Array(4);this.isOverlapingSourceAndTarget=T.getIntersection(this.target.getRect(),this.source.getRect(),Y),this.isOverlapingSourceAndTarget||(this.lengthX=Y[0]-Y[2],this.lengthY=Y[1]-Y[3],Math.abs(this.lengthX)<1&&(this.lengthX=x.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=x.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},N.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=x.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=x.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},_.exports=N},function(_,ve,J){function C(T){this.vGraphObject=T}_.exports=C},function(_,ve,J){var C=J(2),T=J(10),x=J(13),N=J(0),z=J(16),Y=J(4);function P(A,U,$,Q){$==null&&Q==null&&(Q=U),C.call(this,Q),A.graphManager!=null&&(A=A.graphManager),this.estimatedSize=T.MIN_VALUE,this.inclusionTreeDepth=T.MAX_VALUE,this.vGraphObject=Q,this.edges=[],this.graphManager=A,$!=null&&U!=null?this.rect=new x(U.x,U.y,$.width,$.height):this.rect=new x}P.prototype=Object.create(C.prototype);for(var Z in C)P[Z]=C[Z];P.prototype.getEdges=function(){return this.edges},P.prototype.getChild=function(){return this.child},P.prototype.getOwner=function(){return this.owner},P.prototype.getWidth=function(){return this.rect.width},P.prototype.setWidth=function(A){this.rect.width=A},P.prototype.getHeight=function(){return this.rect.height},P.prototype.setHeight=function(A){this.rect.height=A},P.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},P.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},P.prototype.getCenter=function(){return new Y(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},P.prototype.getLocation=function(){return new Y(this.rect.x,this.rect.y)},P.prototype.getRect=function(){return this.rect},P.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},P.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},P.prototype.setRect=function(A,U){this.rect.x=A.x,this.rect.y=A.y,this.rect.width=U.width,this.rect.height=U.height},P.prototype.setCenter=function(A,U){this.rect.x=A-this.rect.width/2,this.rect.y=U-this.rect.height/2},P.prototype.setLocation=function(A,U){this.rect.x=A,this.rect.y=U},P.prototype.moveBy=function(A,U){this.rect.x+=A,this.rect.y+=U},P.prototype.getEdgeListToNode=function(A){var U=[],$=this;return $.edges.forEach(function(Q){if(Q.target==A){if(Q.source!=$)throw"Incorrect edge source!";U.push(Q)}}),U},P.prototype.getEdgesBetween=function(A){var U=[],$=this;return $.edges.forEach(function(Q){if(!(Q.source==$||Q.target==$))throw"Incorrect edge source and/or target";(Q.target==A||Q.source==A)&&U.push(Q)}),U},P.prototype.getNeighborsList=function(){var A=new Set,U=this;return U.edges.forEach(function($){if($.source==U)A.add($.target);else{if($.target!=U)throw"Incorrect incidency!";A.add($.source)}}),A},P.prototype.withChildren=function(){var A=new Set,U,$;if(A.add(this),this.child!=null)for(var Q=this.child.getNodes(),ne=0;ne<Q.length;ne++)U=Q[ne],$=U.withChildren(),$.forEach(function(le){A.add(le)});return A},P.prototype.getNoOfChildren=function(){var A=0,U;if(this.child==null)A=1;else for(var $=this.child.getNodes(),Q=0;Q<$.length;Q++)U=$[Q],A+=U.getNoOfChildren();return A==0&&(A=1),A},P.prototype.getEstimatedSize=function(){if(this.estimatedSize==T.MIN_VALUE)throw"assert failed";return this.estimatedSize},P.prototype.calcEstimatedSize=function(){return this.child==null?this.estimatedSize=(this.rect.width+this.rect.height)/2:(this.estimatedSize=this.child.calcEstimatedSize(),this.rect.width=this.estimatedSize,this.rect.height=this.estimatedSize,this.estimatedSize)},P.prototype.scatter=function(){var A,U,$=-N.INITIAL_WORLD_BOUNDARY,Q=N.INITIAL_WORLD_BOUNDARY;A=N.WORLD_CENTER_X+z.nextDouble()*(Q-$)+$;var ne=-N.INITIAL_WORLD_BOUNDARY,le=N.INITIAL_WORLD_BOUNDARY;U=N.WORLD_CENTER_Y+z.nextDouble()*(le-ne)+ne,this.rect.x=A,this.rect.y=U},P.prototype.updateBounds=function(){if(this.getChild()==null)throw"assert failed";if(this.getChild().getNodes().length!=0){var A=this.getChild();if(A.updateBounds(!0),this.rect.x=A.getLeft(),this.rect.y=A.getTop(),this.setWidth(A.getRight()-A.getLeft()),this.setHeight(A.getBottom()-A.getTop()),N.NODE_DIMENSIONS_INCLUDE_LABELS){var U=A.getRight()-A.getLeft(),$=A.getBottom()-A.getTop();this.labelWidth>U&&(this.rect.x-=(this.labelWidth-U)/2,this.setWidth(this.labelWidth)),this.labelHeight>$&&(this.labelPos=="center"?this.rect.y-=(this.labelHeight-$)/2:this.labelPos=="top"&&(this.rect.y-=this.labelHeight-$),this.setHeight(this.labelHeight))}}},P.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==T.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},P.prototype.transform=function(A){var U=this.rect.x;U>N.WORLD_BOUNDARY?U=N.WORLD_BOUNDARY:U<-N.WORLD_BOUNDARY&&(U=-N.WORLD_BOUNDARY);var $=this.rect.y;$>N.WORLD_BOUNDARY?$=N.WORLD_BOUNDARY:$<-N.WORLD_BOUNDARY&&($=-N.WORLD_BOUNDARY);var Q=new Y(U,$),ne=A.inverseTransformPoint(Q);this.setLocation(ne.x,ne.y)},P.prototype.getLeft=function(){return this.rect.x},P.prototype.getRight=function(){return this.rect.x+this.rect.width},P.prototype.getTop=function(){return this.rect.y},P.prototype.getBottom=function(){return this.rect.y+this.rect.height},P.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},_.exports=P},function(_,ve,J){function C(T,x){T==null&&x==null?(this.x=0,this.y=0):(this.x=T,this.y=x)}C.prototype.getX=function(){return this.x},C.prototype.getY=function(){return this.y},C.prototype.setX=function(T){this.x=T},C.prototype.setY=function(T){this.y=T},C.prototype.getDifference=function(T){return new DimensionD(this.x-T.x,this.y-T.y)},C.prototype.getCopy=function(){return new C(this.x,this.y)},C.prototype.translate=function(T){return this.x+=T.width,this.y+=T.height,this},_.exports=C},function(_,ve,J){var C=J(2),T=J(10),x=J(0),N=J(6),z=J(3),Y=J(1),P=J(13),Z=J(12),A=J(11);function U(Q,ne,le){C.call(this,le),this.estimatedSize=T.MIN_VALUE,this.margin=x.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=Q,ne!=null&&ne instanceof N?this.graphManager=ne:ne!=null&&ne instanceof Layout&&(this.graphManager=ne.graphManager)}U.prototype=Object.create(C.prototype);for(var $ in C)U[$]=C[$];U.prototype.getNodes=function(){return this.nodes},U.prototype.getEdges=function(){return this.edges},U.prototype.getGraphManager=function(){return this.graphManager},U.prototype.getParent=function(){return this.parent},U.prototype.getLeft=function(){return this.left},U.prototype.getRight=function(){return this.right},U.prototype.getTop=function(){return this.top},U.prototype.getBottom=function(){return this.bottom},U.prototype.isConnected=function(){return this.isConnected},U.prototype.add=function(Q,ne,le){if(ne==null&&le==null){var j=Q;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(j)>-1)throw"Node already in graph!";return j.owner=this,this.getNodes().push(j),j}else{var ee=Q;if(!(this.getNodes().indexOf(ne)>-1&&this.getNodes().indexOf(le)>-1))throw"Source or target not in graph!";if(!(ne.owner==le.owner&&ne.owner==this))throw"Both owners must be this graph!";return ne.owner!=le.owner?null:(ee.source=ne,ee.target=le,ee.isInterGraph=!1,this.getEdges().push(ee),ne.edges.push(ee),le!=ne&&le.edges.push(ee),ee)}},U.prototype.remove=function(Q){var ne=Q;if(Q instanceof z){if(ne==null)throw"Node is null!";if(!(ne.owner!=null&&ne.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var le=ne.edges.slice(),j,ee=le.length,H=0;H<ee;H++)j=le[H],j.isInterGraph?this.graphManager.remove(j):j.source.owner.remove(j);var te=this.nodes.indexOf(ne);if(te==-1)throw"Node not in owner node list!";this.nodes.splice(te,1)}else if(Q instanceof Y){var j=Q;if(j==null)throw"Edge is null!";if(!(j.source!=null&&j.target!=null))throw"Source and/or target is null!";if(!(j.source.owner!=null&&j.target.owner!=null&&j.source.owner==this&&j.target.owner==this))throw"Source and/or target owner is invalid!";var S=j.source.edges.indexOf(j),V=j.target.edges.indexOf(j);if(!(S>-1&&V>-1))throw"Source and/or target doesn't know this edge!";j.source.edges.splice(S,1),j.target!=j.source&&j.target.edges.splice(V,1);var te=j.source.owner.getEdges().indexOf(j);if(te==-1)throw"Not in owner's edge list!";j.source.owner.getEdges().splice(te,1)}},U.prototype.updateLeftTop=function(){for(var Q=T.MAX_VALUE,ne=T.MAX_VALUE,le,j,ee,H=this.getNodes(),te=H.length,S=0;S<te;S++){var V=H[S];le=V.getTop(),j=V.getLeft(),Q>le&&(Q=le),ne>j&&(ne=j)}return Q==T.MAX_VALUE?null:(H[0].getParent().paddingLeft!=null?ee=H[0].getParent().paddingLeft:ee=this.margin,this.left=ne-ee,this.top=Q-ee,new Z(this.left,this.top))},U.prototype.updateBounds=function(Q){for(var ne=T.MAX_VALUE,le=-T.MAX_VALUE,j=T.MAX_VALUE,ee=-T.MAX_VALUE,H,te,S,V,R,q=this.nodes,he=q.length,pe=0;pe<he;pe++){var Ae=q[pe];Q&&Ae.child!=null&&Ae.updateBounds(),H=Ae.getLeft(),te=Ae.getRight(),S=Ae.getTop(),V=Ae.getBottom(),ne>H&&(ne=H),le<te&&(le=te),j>S&&(j=S),ee<V&&(ee=V)}var Ne=new P(ne,j,le-ne,ee-j);ne==T.MAX_VALUE&&(this.left=this.parent.getLeft(),this.right=this.parent.getRight(),this.top=this.parent.getTop(),this.bottom=this.parent.getBottom()),q[0].getParent().paddingLeft!=null?R=q[0].getParent().paddingLeft:R=this.margin,this.left=Ne.x-R,this.right=Ne.x+Ne.width+R,this.top=Ne.y-R,this.bottom=Ne.y+Ne.height+R},U.calculateBounds=function(Q){for(var ne=T.MAX_VALUE,le=-T.MAX_VALUE,j=T.MAX_VALUE,ee=-T.MAX_VALUE,H,te,S,V,R=Q.length,q=0;q<R;q++){var he=Q[q];H=he.getLeft(),te=he.getRight(),S=he.getTop(),V=he.getBottom(),ne>H&&(ne=H),le<te&&(le=te),j>S&&(j=S),ee<V&&(ee=V)}var pe=new P(ne,j,le-ne,ee-j);return pe},U.prototype.getInclusionTreeDepth=function(){return this==this.graphManager.getRoot()?1:this.parent.getInclusionTreeDepth()},U.prototype.getEstimatedSize=function(){if(this.estimatedSize==T.MIN_VALUE)throw"assert failed";return this.estimatedSize},U.prototype.calcEstimatedSize=function(){for(var Q=0,ne=this.nodes,le=ne.length,j=0;j<le;j++){var ee=ne[j];Q+=ee.calcEstimatedSize()}return Q==0?this.estimatedSize=x.EMPTY_COMPOUND_NODE_SIZE:this.estimatedSize=Q/Math.sqrt(this.nodes.length),this.estimatedSize},U.prototype.updateConnected=function(){var Q=this;if(this.nodes.length==0){this.isConnected=!0;return}var ne=new A,le=new Set,j=this.nodes[0],ee,H,te=j.withChildren();for(te.forEach(function(pe){ne.push(pe),le.add(pe)});ne.length!==0;){j=ne.shift(),ee=j.getEdges();for(var S=ee.length,V=0;V<S;V++){var R=ee[V];if(H=R.getOtherEndInGraph(j,this),H!=null&&!le.has(H)){var q=H.withChildren();q.forEach(function(pe){ne.push(pe),le.add(pe)})}}}if(this.isConnected=!1,le.size>=this.nodes.length){var he=0;le.forEach(function(pe){pe.owner==Q&&he++}),he==this.nodes.length&&(this.isConnected=!0)}},_.exports=U},function(_,ve,J){var C,T=J(1);function x(N){C=J(5),this.layout=N,this.graphs=[],this.edges=[]}x.prototype.addRoot=function(){var N=this.layout.newGraph(),z=this.layout.newNode(null),Y=this.add(N,z);return this.setRootGraph(Y),this.rootGraph},x.prototype.add=function(N,z,Y,P,Z){if(Y==null&&P==null&&Z==null){if(N==null)throw"Graph is null!";if(z==null)throw"Parent node is null!";if(this.graphs.indexOf(N)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(N),N.parent!=null)throw"Already has a parent!";if(z.child!=null)throw"Already has a child!";return N.parent=z,z.child=N,N}else{Z=Y,P=z,Y=N;var A=P.getOwner(),U=Z.getOwner();if(!(A!=null&&A.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(U!=null&&U.getGraphManager()==this))throw"Target not in this graph mgr!";if(A==U)return Y.isInterGraph=!1,A.add(Y,P,Z);if(Y.isInterGraph=!0,Y.source=P,Y.target=Z,this.edges.indexOf(Y)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(Y),!(Y.source!=null&&Y.target!=null))throw"Edge source and/or target is null!";if(!(Y.source.edges.indexOf(Y)==-1&&Y.target.edges.indexOf(Y)==-1))throw"Edge already in source and/or target incidency list!";return Y.source.edges.push(Y),Y.target.edges.push(Y),Y}},x.prototype.remove=function(N){if(N instanceof C){var z=N;if(z.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(z==this.rootGraph||z.parent!=null&&z.parent.graphManager==this))throw"Invalid parent node!";var Y=[];Y=Y.concat(z.getEdges());for(var P,Z=Y.length,A=0;A<Z;A++)P=Y[A],z.remove(P);var U=[];U=U.concat(z.getNodes());var $;Z=U.length;for(var A=0;A<Z;A++)$=U[A],z.remove($);z==this.rootGraph&&this.setRootGraph(null);var Q=this.graphs.indexOf(z);this.graphs.splice(Q,1),z.parent=null}else if(N instanceof T){if(P=N,P==null)throw"Edge is null!";if(!P.isInterGraph)throw"Not an inter-graph edge!";if(!(P.source!=null&&P.target!=null))throw"Source and/or target is null!";if(!(P.source.edges.indexOf(P)!=-1&&P.target.edges.indexOf(P)!=-1))throw"Source and/or target doesn't know this edge!";var Q=P.source.edges.indexOf(P);if(P.source.edges.splice(Q,1),Q=P.target.edges.indexOf(P),P.target.edges.splice(Q,1),!(P.source.owner!=null&&P.source.owner.getGraphManager()!=null))throw"Edge owner graph or owner graph manager is null!";if(P.source.owner.getGraphManager().edges.indexOf(P)==-1)throw"Not in owner graph manager's edge list!";var Q=P.source.owner.getGraphManager().edges.indexOf(P);P.source.owner.getGraphManager().edges.splice(Q,1)}},x.prototype.updateBounds=function(){this.rootGraph.updateBounds(!0)},x.prototype.getGraphs=function(){return this.graphs},x.prototype.getAllNodes=function(){if(this.allNodes==null){for(var N=[],z=this.getGraphs(),Y=z.length,P=0;P<Y;P++)N=N.concat(z[P].getNodes());this.allNodes=N}return this.allNodes},x.prototype.resetAllNodes=function(){this.allNodes=null},x.prototype.resetAllEdges=function(){this.allEdges=null},x.prototype.resetAllNodesToApplyGravitation=function(){this.allNodesToApplyGravitation=null},x.prototype.getAllEdges=function(){if(this.allEdges==null){var N=[],z=this.getGraphs();z.length;for(var Y=0;Y<z.length;Y++)N=N.concat(z[Y].getEdges());N=N.concat(this.edges),this.allEdges=N}return this.allEdges},x.prototype.getAllNodesToApplyGravitation=function(){return this.allNodesToApplyGravitation},x.prototype.setAllNodesToApplyGravitation=function(N){if(this.allNodesToApplyGravitation!=null)throw"assert failed";this.allNodesToApplyGravitation=N},x.prototype.getRoot=function(){return this.rootGraph},x.prototype.setRootGraph=function(N){if(N.getGraphManager()!=this)throw"Root not in this graph mgr!";this.rootGraph=N,N.parent==null&&(N.parent=this.layout.newNode("Root node"))},x.prototype.getLayout=function(){return this.layout},x.prototype.isOneAncestorOfOther=function(N,z){if(!(N!=null&&z!=null))throw"assert failed";if(N==z)return!0;var Y=N.getOwner(),P;do{if(P=Y.getParent(),P==null)break;if(P==z)return!0;if(Y=P.getOwner(),Y==null)break}while(!0);Y=z.getOwner();do{if(P=Y.getParent(),P==null)break;if(P==N)return!0;if(Y=P.getOwner(),Y==null)break}while(!0);return!1},x.prototype.calcLowestCommonAncestors=function(){for(var N,z,Y,P,Z,A=this.getAllEdges(),U=A.length,$=0;$<U;$++){if(N=A[$],z=N.source,Y=N.target,N.lca=null,N.sourceInLca=z,N.targetInLca=Y,z==Y){N.lca=z.getOwner();continue}for(P=z.getOwner();N.lca==null;){for(N.targetInLca=Y,Z=Y.getOwner();N.lca==null;){if(Z==P){N.lca=Z;break}if(Z==this.rootGraph)break;if(N.lca!=null)throw"assert failed";N.targetInLca=Z.getParent(),Z=N.targetInLca.getOwner()}if(P==this.rootGraph)break;N.lca==null&&(N.sourceInLca=P.getParent(),P=N.sourceInLca.getOwner())}if(N.lca==null)throw"assert failed"}},x.prototype.calcLowestCommonAncestor=function(N,z){if(N==z)return N.getOwner();var Y=N.getOwner();do{if(Y==null)break;var P=z.getOwner();do{if(P==null)break;if(P==Y)return P;P=P.getParent().getOwner()}while(!0);Y=Y.getParent().getOwner()}while(!0);return Y},x.prototype.calcInclusionTreeDepths=function(N,z){N==null&&z==null&&(N=this.rootGraph,z=1);for(var Y,P=N.getNodes(),Z=P.length,A=0;A<Z;A++)Y=P[A],Y.inclusionTreeDepth=z,Y.child!=null&&this.calcInclusionTreeDepths(Y.child,z+1)},x.prototype.includesInvalidEdge=function(){for(var N,z=this.edges.length,Y=0;Y<z;Y++)if(N=this.edges[Y],this.isOneAncestorOfOther(N.source,N.target))return!0;return!1},_.exports=x},function(_,ve,J){var C=J(0);function T(){}for(var x in C)T[x]=C[x];T.MAX_ITERATIONS=2500,T.DEFAULT_EDGE_LENGTH=50,T.DEFAULT_SPRING_STRENGTH=.45,T.DEFAULT_REPULSION_STRENGTH=4500,T.DEFAULT_GRAVITY_STRENGTH=.4,T.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,T.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,T.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,T.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,T.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,T.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,T.COOLING_ADAPTATION_FACTOR=.33,T.ADAPTATION_LOWER_NODE_LIMIT=1e3,T.ADAPTATION_UPPER_NODE_LIMIT=5e3,T.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,T.MAX_NODE_DISPLACEMENT=T.MAX_NODE_DISPLACEMENT_INCREMENTAL*3,T.MIN_REPULSION_DIST=T.DEFAULT_EDGE_LENGTH/10,T.CONVERGENCE_CHECK_PERIOD=100,T.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,T.MIN_EDGE_LENGTH=1,T.GRID_CALCULATION_CHECK_PERIOD=10,_.exports=T},function(_,ve,J){var C=J(12);function T(){}T.calcSeparationAmount=function(x,N,z,Y){if(!x.intersects(N))throw"assert failed";var P=new Array(2);this.decideDirectionsForOverlappingNodes(x,N,P),z[0]=Math.min(x.getRight(),N.getRight())-Math.max(x.x,N.x),z[1]=Math.min(x.getBottom(),N.getBottom())-Math.max(x.y,N.y),x.getX()<=N.getX()&&x.getRight()>=N.getRight()?z[0]+=Math.min(N.getX()-x.getX(),x.getRight()-N.getRight()):N.getX()<=x.getX()&&N.getRight()>=x.getRight()&&(z[0]+=Math.min(x.getX()-N.getX(),N.getRight()-x.getRight())),x.getY()<=N.getY()&&x.getBottom()>=N.getBottom()?z[1]+=Math.min(N.getY()-x.getY(),x.getBottom()-N.getBottom()):N.getY()<=x.getY()&&N.getBottom()>=x.getBottom()&&(z[1]+=Math.min(x.getY()-N.getY(),N.getBottom()-x.getBottom()));var Z=Math.abs((N.getCenterY()-x.getCenterY())/(N.getCenterX()-x.getCenterX()));N.getCenterY()===x.getCenterY()&&N.getCenterX()===x.getCenterX()&&(Z=1);var A=Z*z[0],U=z[1]/Z;z[0]<U?U=z[0]:A=z[1],z[0]=-1*P[0]*(U/2+Y),z[1]=-1*P[1]*(A/2+Y)},T.decideDirectionsForOverlappingNodes=function(x,N,z){x.getCenterX()<N.getCenterX()?z[0]=-1:z[0]=1,x.getCenterY()<N.getCenterY()?z[1]=-1:z[1]=1},T.getIntersection2=function(x,N,z){var Y=x.getCenterX(),P=x.getCenterY(),Z=N.getCenterX(),A=N.getCenterY();if(x.intersects(N))return z[0]=Y,z[1]=P,z[2]=Z,z[3]=A,!0;var U=x.getX(),$=x.getY(),Q=x.getRight(),ne=x.getX(),le=x.getBottom(),j=x.getRight(),ee=x.getWidthHalf(),H=x.getHeightHalf(),te=N.getX(),S=N.getY(),V=N.getRight(),R=N.getX(),q=N.getBottom(),he=N.getRight(),pe=N.getWidthHalf(),Ae=N.getHeightHalf(),Ne=!1,Ye=!1;if(Y===Z){if(P>A)return z[0]=Y,z[1]=$,z[2]=Z,z[3]=q,!1;if(P<A)return z[0]=Y,z[1]=le,z[2]=Z,z[3]=S,!1}else if(P===A){if(Y>Z)return z[0]=U,z[1]=P,z[2]=V,z[3]=A,!1;if(Y<Z)return z[0]=Q,z[1]=P,z[2]=te,z[3]=A,!1}else{var at=x.height/x.width,dt=N.height/N.width,Re=(A-P)/(Z-Y),Ve=void 0,Ze=void 0,nt=void 0,ft=void 0,it=void 0,tt=void 0;if(-at===Re?Y>Z?(z[0]=ne,z[1]=le,Ne=!0):(z[0]=Q,z[1]=$,Ne=!0):at===Re&&(Y>Z?(z[0]=U,z[1]=$,Ne=!0):(z[0]=j,z[1]=le,Ne=!0)),-dt===Re?Z>Y?(z[2]=R,z[3]=q,Ye=!0):(z[2]=V,z[3]=S,Ye=!0):dt===Re&&(Z>Y?(z[2]=te,z[3]=S,Ye=!0):(z[2]=he,z[3]=q,Ye=!0)),Ne&&Ye)return!1;if(Y>Z?P>A?(Ve=this.getCardinalDirection(at,Re,4),Ze=this.getCardinalDirection(dt,Re,2)):(Ve=this.getCardinalDirection(-at,Re,3),Ze=this.getCardinalDirection(-dt,Re,1)):P>A?(Ve=this.getCardinalDirection(-at,Re,1),Ze=this.getCardinalDirection(-dt,Re,3)):(Ve=this.getCardinalDirection(at,Re,2),Ze=this.getCardinalDirection(dt,Re,4)),!Ne)switch(Ve){case 1:ft=$,nt=Y+-H/Re,z[0]=nt,z[1]=ft;break;case 2:nt=j,ft=P+ee*Re,z[0]=nt,z[1]=ft;break;case 3:ft=le,nt=Y+H/Re,z[0]=nt,z[1]=ft;break;case 4:nt=ne,ft=P+-ee*Re,z[0]=nt,z[1]=ft;break}if(!Ye)switch(Ze){case 1:tt=S,it=Z+-Ae/Re,z[2]=it,z[3]=tt;break;case 2:it=he,tt=A+pe*Re,z[2]=it,z[3]=tt;break;case 3:tt=q,it=Z+Ae/Re,z[2]=it,z[3]=tt;break;case 4:it=R,tt=A+-pe*Re,z[2]=it,z[3]=tt;break}}return!1},T.getCardinalDirection=function(x,N,z){return x>N?z:1+z%4},T.getIntersection=function(x,N,z,Y){if(Y==null)return this.getIntersection2(x,N,z);var P=x.x,Z=x.y,A=N.x,U=N.y,$=z.x,Q=z.y,ne=Y.x,le=Y.y,j=void 0,ee=void 0,H=void 0,te=void 0,S=void 0,V=void 0,R=void 0,q=void 0,he=void 0;return H=U-Z,S=P-A,R=A*Z-P*U,te=le-Q,V=$-ne,q=ne*Q-$*le,he=H*V-te*S,he===0?null:(j=(S*q-V*R)/he,ee=(te*R-H*q)/he,new C(j,ee))},T.angleOfVector=function(x,N,z,Y){var P=void 0;return x!==z?(P=Math.atan((Y-N)/(z-x)),z<x?P+=Math.PI:Y<N&&(P+=this.TWO_PI)):Y<N?P=this.ONE_AND_HALF_PI:P=this.HALF_PI,P},T.doIntersect=function(x,N,z,Y){var P=x.x,Z=x.y,A=N.x,U=N.y,$=z.x,Q=z.y,ne=Y.x,le=Y.y,j=(A-P)*(le-Q)-(ne-$)*(U-Z);if(j===0)return!1;var ee=((le-Q)*(ne-P)+($-ne)*(le-Z))/j,H=((Z-U)*(ne-P)+(A-P)*(le-Z))/j;return 0<ee&&ee<1&&0<H&&H<1},T.HALF_PI=.5*Math.PI,T.ONE_AND_HALF_PI=1.5*Math.PI,T.TWO_PI=2*Math.PI,T.THREE_PI=3*Math.PI,_.exports=T},function(_,ve,J){function C(){}C.sign=function(T){return T>0?1:T<0?-1:0},C.floor=function(T){return T<0?Math.ceil(T):Math.floor(T)},C.ceil=function(T){return T<0?Math.floor(T):Math.ceil(T)},_.exports=C},function(_,ve,J){function C(){}C.MAX_VALUE=2147483647,C.MIN_VALUE=-2147483648,_.exports=C},function(_,ve,J){var C=function(){function P(Z,A){for(var U=0;U<A.length;U++){var $=A[U];$.enumerable=$.enumerable||!1,$.configurable=!0,"value"in $&&($.writable=!0),Object.defineProperty(Z,$.key,$)}}return function(Z,A,U){return A&&P(Z.prototype,A),U&&P(Z,U),Z}}();function T(P,Z){if(!(P instanceof Z))throw new TypeError("Cannot call a class as a function")}var x=function(Z){return{value:Z,next:null,prev:null}},N=function(Z,A,U,$){return Z!==null?Z.next=A:$.head=A,U!==null?U.prev=A:$.tail=A,A.prev=Z,A.next=U,$.length++,A},z=function(Z,A){var U=Z.prev,$=Z.next;return U!==null?U.next=$:A.head=$,$!==null?$.prev=U:A.tail=U,Z.prev=Z.next=null,A.length--,Z},Y=function(){function P(Z){var A=this;T(this,P),this.length=0,this.head=null,this.tail=null,Z!=null&&Z.forEach(function(U){return A.push(U)})}return C(P,[{key:"size",value:function(){return this.length}},{key:"insertBefore",value:function(A,U){return N(U.prev,x(A),U,this)}},{key:"insertAfter",value:function(A,U){return N(U,x(A),U.next,this)}},{key:"insertNodeBefore",value:function(A,U){return N(U.prev,A,U,this)}},{key:"insertNodeAfter",value:function(A,U){return N(U,A,U.next,this)}},{key:"push",value:function(A){return N(this.tail,x(A),null,this)}},{key:"unshift",value:function(A){return N(null,x(A),this.head,this)}},{key:"remove",value:function(A){return z(A,this)}},{key:"pop",value:function(){return z(this.tail,this).value}},{key:"popNode",value:function(){return z(this.tail,this)}},{key:"shift",value:function(){return z(this.head,this).value}},{key:"shiftNode",value:function(){return z(this.head,this)}},{key:"get_object_at",value:function(A){if(A<=this.length()){for(var U=1,$=this.head;U<A;)$=$.next,U++;return $.value}}},{key:"set_object_at",value:function(A,U){if(A<=this.length()){for(var $=1,Q=this.head;$<A;)Q=Q.next,$++;Q.value=U}}}]),P}();_.exports=Y},function(_,ve,J){function C(T,x,N){this.x=null,this.y=null,T==null&&x==null&&N==null?(this.x=0,this.y=0):typeof T=="number"&&typeof x=="number"&&N==null?(this.x=T,this.y=x):T.constructor.name=="Point"&&x==null&&N==null&&(N=T,this.x=N.x,this.y=N.y)}C.prototype.getX=function(){return this.x},C.prototype.getY=function(){return this.y},C.prototype.getLocation=function(){return new C(this.x,this.y)},C.prototype.setLocation=function(T,x,N){T.constructor.name=="Point"&&x==null&&N==null?(N=T,this.setLocation(N.x,N.y)):typeof T=="number"&&typeof x=="number"&&N==null&&(parseInt(T)==T&&parseInt(x)==x?this.move(T,x):(this.x=Math.floor(T+.5),this.y=Math.floor(x+.5)))},C.prototype.move=function(T,x){this.x=T,this.y=x},C.prototype.translate=function(T,x){this.x+=T,this.y+=x},C.prototype.equals=function(T){if(T.constructor.name=="Point"){var x=T;return this.x==x.x&&this.y==x.y}return this==T},C.prototype.toString=function(){return new C().constructor.name+"[x="+this.x+",y="+this.y+"]"},_.exports=C},function(_,ve,J){function C(T,x,N,z){this.x=0,this.y=0,this.width=0,this.height=0,T!=null&&x!=null&&N!=null&&z!=null&&(this.x=T,this.y=x,this.width=N,this.height=z)}C.prototype.getX=function(){return this.x},C.prototype.setX=function(T){this.x=T},C.prototype.getY=function(){return this.y},C.prototype.setY=function(T){this.y=T},C.prototype.getWidth=function(){return this.width},C.prototype.setWidth=function(T){this.width=T},C.prototype.getHeight=function(){return this.height},C.prototype.setHeight=function(T){this.height=T},C.prototype.getRight=function(){return this.x+this.width},C.prototype.getBottom=function(){return this.y+this.height},C.prototype.intersects=function(T){return!(this.getRight()<T.x||this.getBottom()<T.y||T.getRight()<this.x||T.getBottom()<this.y)},C.prototype.getCenterX=function(){return this.x+this.width/2},C.prototype.getMinX=function(){return this.getX()},C.prototype.getMaxX=function(){return this.getX()+this.width},C.prototype.getCenterY=function(){return this.y+this.height/2},C.prototype.getMinY=function(){return this.getY()},C.prototype.getMaxY=function(){return this.getY()+this.height},C.prototype.getWidthHalf=function(){return this.width/2},C.prototype.getHeightHalf=function(){return this.height/2},_.exports=C},function(_,ve,J){var C=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(x){return typeof x}:function(x){return x&&typeof Symbol=="function"&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x};function T(){}T.lastID=0,T.createID=function(x){return T.isPrimitive(x)?x:(x.uniqueID!=null||(x.uniqueID=T.getString(),T.lastID++),x.uniqueID)},T.getString=function(x){return x==null&&(x=T.lastID),"Object#"+x},T.isPrimitive=function(x){var N=typeof x>"u"?"undefined":C(x);return x==null||N!="object"&&N!="function"},_.exports=T},function(_,ve,J){function C($){if(Array.isArray($)){for(var Q=0,ne=Array($.length);Q<$.length;Q++)ne[Q]=$[Q];return ne}else return Array.from($)}var T=J(0),x=J(6),N=J(3),z=J(1),Y=J(5),P=J(4),Z=J(17),A=J(27);function U($){A.call(this),this.layoutQuality=T.QUALITY,this.createBendsAsNeeded=T.DEFAULT_CREATE_BENDS_AS_NEEDED,this.incremental=T.DEFAULT_INCREMENTAL,this.animationOnLayout=T.DEFAULT_ANIMATION_ON_LAYOUT,this.animationDuringLayout=T.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=T.DEFAULT_ANIMATION_PERIOD,this.uniformLeafNodeSizes=T.DEFAULT_UNIFORM_LEAF_NODE_SIZES,this.edgeToDummyNodes=new Map,this.graphManager=new x(this),this.isLayoutFinished=!1,this.isSubLayout=!1,this.isRemoteUse=!1,$!=null&&(this.isRemoteUse=$)}U.RANDOM_SEED=1,U.prototype=Object.create(A.prototype),U.prototype.getGraphManager=function(){return this.graphManager},U.prototype.getAllNodes=function(){return this.graphManager.getAllNodes()},U.prototype.getAllEdges=function(){return this.graphManager.getAllEdges()},U.prototype.getAllNodesToApplyGravitation=function(){return this.graphManager.getAllNodesToApplyGravitation()},U.prototype.newGraphManager=function(){var $=new x(this);return this.graphManager=$,$},U.prototype.newGraph=function($){return new Y(null,this.graphManager,$)},U.prototype.newNode=function($){return new N(this.graphManager,$)},U.prototype.newEdge=function($){return new z(null,null,$)},U.prototype.checkLayoutSuccess=function(){return this.graphManager.getRoot()==null||this.graphManager.getRoot().getNodes().length==0||this.graphManager.includesInvalidEdge()},U.prototype.runLayout=function(){this.isLayoutFinished=!1,this.tilingPreLayout&&this.tilingPreLayout(),this.initParameters();var $;return this.checkLayoutSuccess()?$=!1:$=this.layout(),T.ANIMATE==="during"?!1:($&&(this.isSubLayout||this.doPostLayout()),this.tilingPostLayout&&this.tilingPostLayout(),this.isLayoutFinished=!0,$)},U.prototype.doPostLayout=function(){this.incremental||this.transform(),this.update()},U.prototype.update2=function(){if(this.createBendsAsNeeded&&(this.createBendpointsFromDummyNodes(),this.graphManager.resetAllEdges()),!this.isRemoteUse){for(var $=this.graphManager.getAllEdges(),Q=0;Q<$.length;Q++)$[Q];for(var ne=this.graphManager.getRoot().getNodes(),Q=0;Q<ne.length;Q++)ne[Q];this.update(this.graphManager.getRoot())}},U.prototype.update=function($){if($==null)this.update2();else if($ instanceof N){var Q=$;if(Q.getChild()!=null)for(var ne=Q.getChild().getNodes(),le=0;le<ne.length;le++)update(ne[le]);if(Q.vGraphObject!=null){var j=Q.vGraphObject;j.update(Q)}}else if($ instanceof z){var ee=$;if(ee.vGraphObject!=null){var H=ee.vGraphObject;H.update(ee)}}else if($ instanceof Y){var te=$;if(te.vGraphObject!=null){var S=te.vGraphObject;S.update(te)}}},U.prototype.initParameters=function(){this.isSubLayout||(this.layoutQuality=T.QUALITY,this.animationDuringLayout=T.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=T.DEFAULT_ANIMATION_PERIOD,this.animationOnLayout=T.DEFAULT_ANIMATION_ON_LAYOUT,this.incremental=T.DEFAULT_INCREMENTAL,this.createBendsAsNeeded=T.DEFAULT_CREATE_BENDS_AS_NEEDED,this.uniformLeafNodeSizes=T.DEFAULT_UNIFORM_LEAF_NODE_SIZES),this.animationDuringLayout&&(this.animationOnLayout=!1)},U.prototype.transform=function($){if($==null)this.transform(new P(0,0));else{var Q=new Z,ne=this.graphManager.getRoot().updateLeftTop();if(ne!=null){Q.setWorldOrgX($.x),Q.setWorldOrgY($.y),Q.setDeviceOrgX(ne.x),Q.setDeviceOrgY(ne.y);for(var le=this.getAllNodes(),j,ee=0;ee<le.length;ee++)j=le[ee],j.transform(Q)}}},U.prototype.positionNodesRandomly=function($){if($==null)this.positionNodesRandomly(this.getGraphManager().getRoot()),this.getGraphManager().getRoot().updateBounds(!0);else for(var Q,ne,le=$.getNodes(),j=0;j<le.length;j++)Q=le[j],ne=Q.getChild(),ne==null||ne.getNodes().length==0?Q.scatter():(this.positionNodesRandomly(ne),Q.updateBounds())},U.prototype.getFlatForest=function(){for(var $=[],Q=!0,ne=this.graphManager.getRoot().getNodes(),le=!0,j=0;j<ne.length;j++)ne[j].getChild()!=null&&(le=!1);if(!le)return $;var ee=new Set,H=[],te=new Map,S=[];for(S=S.concat(ne);S.length>0&&Q;){for(H.push(S[0]);H.length>0&&Q;){var V=H[0];H.splice(0,1),ee.add(V);for(var R=V.getEdges(),j=0;j<R.length;j++){var q=R[j].getOtherEnd(V);if(te.get(V)!=q)if(!ee.has(q))H.push(q),te.set(q,V);else{Q=!1;break}}}if(!Q)$=[];else{var he=[].concat(C(ee));$.push(he);for(var j=0;j<he.length;j++){var pe=he[j],Ae=S.indexOf(pe);Ae>-1&&S.splice(Ae,1)}ee=new Set,te=new Map}}return $},U.prototype.createDummyNodesForBendpoints=function($){for(var Q=[],ne=$.source,le=this.graphManager.calcLowestCommonAncestor($.source,$.target),j=0;j<$.bendpoints.length;j++){var ee=this.newNode(null);ee.setRect(new Point(0,0),new Dimension(1,1)),le.add(ee);var H=this.newEdge(null);this.graphManager.add(H,ne,ee),Q.add(ee),ne=ee}var H=this.newEdge(null);return this.graphManager.add(H,ne,$.target),this.edgeToDummyNodes.set($,Q),$.isInterGraph()?this.graphManager.remove($):le.remove($),Q},U.prototype.createBendpointsFromDummyNodes=function(){var $=[];$=$.concat(this.graphManager.getAllEdges()),$=[].concat(C(this.edgeToDummyNodes.keys())).concat($);for(var Q=0;Q<$.length;Q++){var ne=$[Q];if(ne.bendpoints.length>0){for(var le=this.edgeToDummyNodes.get(ne),j=0;j<le.length;j++){var ee=le[j],H=new P(ee.getCenterX(),ee.getCenterY()),te=ne.bendpoints.get(j);te.x=H.x,te.y=H.y,ee.getOwner().remove(ee)}this.graphManager.add(ne,ne.source,ne.target)}}},U.transform=function($,Q,ne,le){if(ne!=null&&le!=null){var j=Q;if($<=50){var ee=Q/ne;j-=(Q-ee)/50*(50-$)}else{var H=Q*le;j+=(H-Q)/50*($-50)}return j}else{var te,S;return $<=50?(te=9*Q/500,S=Q/10):(te=9*Q/50,S=-8*Q),te*$+S}},U.findCenterOfTree=function($){var Q=[];Q=Q.concat($);var ne=[],le=new Map,j=!1,ee=null;(Q.length==1||Q.length==2)&&(j=!0,ee=Q[0]);for(var H=0;H<Q.length;H++){var te=Q[H],S=te.getNeighborsList().size;le.set(te,te.getNeighborsList().size),S==1&&ne.push(te)}var V=[];for(V=V.concat(ne);!j;){var R=[];R=R.concat(V),V=[];for(var H=0;H<Q.length;H++){var te=Q[H],q=Q.indexOf(te);q>=0&&Q.splice(q,1);var he=te.getNeighborsList();he.forEach(function(Ne){if(ne.indexOf(Ne)<0){var Ye=le.get(Ne),at=Ye-1;at==1&&V.push(Ne),le.set(Ne,at)}})}ne=ne.concat(V),(Q.length==1||Q.length==2)&&(j=!0,ee=Q[0])}return ee},U.prototype.setGraphManager=function($){this.graphManager=$},_.exports=U},function(_,ve,J){function C(){}C.seed=1,C.x=0,C.nextDouble=function(){return C.x=Math.sin(C.seed++)*1e4,C.x-Math.floor(C.x)},_.exports=C},function(_,ve,J){var C=J(4);function T(x,N){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}T.prototype.getWorldOrgX=function(){return this.lworldOrgX},T.prototype.setWorldOrgX=function(x){this.lworldOrgX=x},T.prototype.getWorldOrgY=function(){return this.lworldOrgY},T.prototype.setWorldOrgY=function(x){this.lworldOrgY=x},T.prototype.getWorldExtX=function(){return this.lworldExtX},T.prototype.setWorldExtX=function(x){this.lworldExtX=x},T.prototype.getWorldExtY=function(){return this.lworldExtY},T.prototype.setWorldExtY=function(x){this.lworldExtY=x},T.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},T.prototype.setDeviceOrgX=function(x){this.ldeviceOrgX=x},T.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},T.prototype.setDeviceOrgY=function(x){this.ldeviceOrgY=x},T.prototype.getDeviceExtX=function(){return this.ldeviceExtX},T.prototype.setDeviceExtX=function(x){this.ldeviceExtX=x},T.prototype.getDeviceExtY=function(){return this.ldeviceExtY},T.prototype.setDeviceExtY=function(x){this.ldeviceExtY=x},T.prototype.transformX=function(x){var N=0,z=this.lworldExtX;return z!=0&&(N=this.ldeviceOrgX+(x-this.lworldOrgX)*this.ldeviceExtX/z),N},T.prototype.transformY=function(x){var N=0,z=this.lworldExtY;return z!=0&&(N=this.ldeviceOrgY+(x-this.lworldOrgY)*this.ldeviceExtY/z),N},T.prototype.inverseTransformX=function(x){var N=0,z=this.ldeviceExtX;return z!=0&&(N=this.lworldOrgX+(x-this.ldeviceOrgX)*this.lworldExtX/z),N},T.prototype.inverseTransformY=function(x){var N=0,z=this.ldeviceExtY;return z!=0&&(N=this.lworldOrgY+(x-this.ldeviceOrgY)*this.lworldExtY/z),N},T.prototype.inverseTransformPoint=function(x){var N=new C(this.inverseTransformX(x.x),this.inverseTransformY(x.y));return N},_.exports=T},function(_,ve,J){function C(A){if(Array.isArray(A)){for(var U=0,$=Array(A.length);U<A.length;U++)$[U]=A[U];return $}else return Array.from(A)}var T=J(15),x=J(7),N=J(0),z=J(8),Y=J(9);function P(){T.call(this),this.useSmartIdealEdgeLengthCalculation=x.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.idealEdgeLength=x.DEFAULT_EDGE_LENGTH,this.springConstant=x.DEFAULT_SPRING_STRENGTH,this.repulsionConstant=x.DEFAULT_REPULSION_STRENGTH,this.gravityConstant=x.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=x.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=x.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=x.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.displacementThresholdPerNode=3*x.DEFAULT_EDGE_LENGTH/100,this.coolingFactor=x.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.initialCoolingFactor=x.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.totalDisplacement=0,this.oldTotalDisplacement=0,this.maxIterations=x.MAX_ITERATIONS}P.prototype=Object.create(T.prototype);for(var Z in T)P[Z]=T[Z];P.prototype.initParameters=function(){T.prototype.initParameters.call(this,arguments),this.totalIterations=0,this.notAnimatedIterations=0,this.useFRGridVariant=x.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION,this.grid=[]},P.prototype.calcIdealEdgeLengths=function(){for(var A,U,$,Q,ne,le,j=this.getGraphManager().getAllEdges(),ee=0;ee<j.length;ee++)A=j[ee],A.idealLength=this.idealEdgeLength,A.isInterGraph&&($=A.getSource(),Q=A.getTarget(),ne=A.getSourceInLca().getEstimatedSize(),le=A.getTargetInLca().getEstimatedSize(),this.useSmartIdealEdgeLengthCalculation&&(A.idealLength+=ne+le-2*N.SIMPLE_NODE_SIZE),U=A.getLca().getInclusionTreeDepth(),A.idealLength+=x.DEFAULT_EDGE_LENGTH*x.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR*($.getInclusionTreeDepth()+Q.getInclusionTreeDepth()-2*U))},P.prototype.initSpringEmbedder=function(){var A=this.getAllNodes().length;this.incremental?(A>x.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*x.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(A-x.ADAPTATION_LOWER_NODE_LIMIT)/(x.ADAPTATION_UPPER_NODE_LIMIT-x.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-x.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=x.MAX_NODE_DISPLACEMENT_INCREMENTAL):(A>x.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(x.COOLING_ADAPTATION_FACTOR,1-(A-x.ADAPTATION_LOWER_NODE_LIMIT)/(x.ADAPTATION_UPPER_NODE_LIMIT-x.ADAPTATION_LOWER_NODE_LIMIT)*(1-x.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=x.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},P.prototype.calcSpringForces=function(){for(var A=this.getAllEdges(),U,$=0;$<A.length;$++)U=A[$],this.calcSpringForce(U,U.idealLength)},P.prototype.calcRepulsionForces=function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,$,Q,ne,le,j=this.getAllNodes(),ee;if(this.useFRGridVariant)for(this.totalIterations%x.GRID_CALCULATION_CHECK_PERIOD==1&&A&&this.updateGrid(),ee=new Set,$=0;$<j.length;$++)ne=j[$],this.calculateRepulsionForceOfANode(ne,ee,A,U),ee.add(ne);else for($=0;$<j.length;$++)for(ne=j[$],Q=$+1;Q<j.length;Q++)le=j[Q],ne.getOwner()==le.getOwner()&&this.calcRepulsionForce(ne,le)},P.prototype.calcGravitationalForces=function(){for(var A,U=this.getAllNodesToApplyGravitation(),$=0;$<U.length;$++)A=U[$],this.calcGravitationalForce(A)},P.prototype.moveNodes=function(){for(var A=this.getAllNodes(),U,$=0;$<A.length;$++)U=A[$],U.move()},P.prototype.calcSpringForce=function(A,U){var $=A.getSource(),Q=A.getTarget(),ne,le,j,ee;if(this.uniformLeafNodeSizes&&$.getChild()==null&&Q.getChild()==null)A.updateLengthSimple();else if(A.updateLength(),A.isOverlapingSourceAndTarget)return;ne=A.getLength(),ne!=0&&(le=this.springConstant*(ne-U),j=le*(A.lengthX/ne),ee=le*(A.lengthY/ne),$.springForceX+=j,$.springForceY+=ee,Q.springForceX-=j,Q.springForceY-=ee)},P.prototype.calcRepulsionForce=function(A,U){var $=A.getRect(),Q=U.getRect(),ne=new Array(2),le=new Array(4),j,ee,H,te,S,V,R;if($.intersects(Q)){z.calcSeparationAmount($,Q,ne,x.DEFAULT_EDGE_LENGTH/2),V=2*ne[0],R=2*ne[1];var q=A.noOfChildren*U.noOfChildren/(A.noOfChildren+U.noOfChildren);A.repulsionForceX-=q*V,A.repulsionForceY-=q*R,U.repulsionForceX+=q*V,U.repulsionForceY+=q*R}else this.uniformLeafNodeSizes&&A.getChild()==null&&U.getChild()==null?(j=Q.getCenterX()-$.getCenterX(),ee=Q.getCenterY()-$.getCenterY()):(z.getIntersection($,Q,le),j=le[2]-le[0],ee=le[3]-le[1]),Math.abs(j)<x.MIN_REPULSION_DIST&&(j=Y.sign(j)*x.MIN_REPULSION_DIST),Math.abs(ee)<x.MIN_REPULSION_DIST&&(ee=Y.sign(ee)*x.MIN_REPULSION_DIST),H=j*j+ee*ee,te=Math.sqrt(H),S=this.repulsionConstant*A.noOfChildren*U.noOfChildren/H,V=S*j/te,R=S*ee/te,A.repulsionForceX-=V,A.repulsionForceY-=R,U.repulsionForceX+=V,U.repulsionForceY+=R},P.prototype.calcGravitationalForce=function(A){var U,$,Q,ne,le,j,ee,H;U=A.getOwner(),$=(U.getRight()+U.getLeft())/2,Q=(U.getTop()+U.getBottom())/2,ne=A.getCenterX()-$,le=A.getCenterY()-Q,j=Math.abs(ne)+A.getWidth()/2,ee=Math.abs(le)+A.getHeight()/2,A.getOwner()==this.graphManager.getRoot()?(H=U.getEstimatedSize()*this.gravityRangeFactor,(j>H||ee>H)&&(A.gravitationForceX=-this.gravityConstant*ne,A.gravitationForceY=-this.gravityConstant*le)):(H=U.getEstimatedSize()*this.compoundGravityRangeFactor,(j>H||ee>H)&&(A.gravitationForceX=-this.gravityConstant*ne*this.compoundGravityConstant,A.gravitationForceY=-this.gravityConstant*le*this.compoundGravityConstant))},P.prototype.isConverged=function(){var A,U=!1;return this.totalIterations>this.maxIterations/3&&(U=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),A=this.totalDisplacement<this.totalDisplacementThreshold,this.oldTotalDisplacement=this.totalDisplacement,A||U},P.prototype.animate=function(){this.animationDuringLayout&&!this.isSubLayout&&(this.notAnimatedIterations==this.animationPeriod?(this.update(),this.notAnimatedIterations=0):this.notAnimatedIterations++)},P.prototype.calcNoOfChildrenForAllNodes=function(){for(var A,U=this.graphManager.getAllNodes(),$=0;$<U.length;$++)A=U[$],A.noOfChildren=A.getNoOfChildren()},P.prototype.calcGrid=function(A){var U=0,$=0;U=parseInt(Math.ceil((A.getRight()-A.getLeft())/this.repulsionRange)),$=parseInt(Math.ceil((A.getBottom()-A.getTop())/this.repulsionRange));for(var Q=new Array(U),ne=0;ne<U;ne++)Q[ne]=new Array($);for(var ne=0;ne<U;ne++)for(var le=0;le<$;le++)Q[ne][le]=new Array;return Q},P.prototype.addNodeToGrid=function(A,U,$){var Q=0,ne=0,le=0,j=0;Q=parseInt(Math.floor((A.getRect().x-U)/this.repulsionRange)),ne=parseInt(Math.floor((A.getRect().width+A.getRect().x-U)/this.repulsionRange)),le=parseInt(Math.floor((A.getRect().y-$)/this.repulsionRange)),j=parseInt(Math.floor((A.getRect().height+A.getRect().y-$)/this.repulsionRange));for(var ee=Q;ee<=ne;ee++)for(var H=le;H<=j;H++)this.grid[ee][H].push(A),A.setGridCoordinates(Q,ne,le,j)},P.prototype.updateGrid=function(){var A,U,$=this.getAllNodes();for(this.grid=this.calcGrid(this.graphManager.getRoot()),A=0;A<$.length;A++)U=$[A],this.addNodeToGrid(U,this.graphManager.getRoot().getLeft(),this.graphManager.getRoot().getTop())},P.prototype.calculateRepulsionForceOfANode=function(A,U,$,Q){if(this.totalIterations%x.GRID_CALCULATION_CHECK_PERIOD==1&&$||Q){var ne=new Set;A.surrounding=new Array;for(var le,j=this.grid,ee=A.startX-1;ee<A.finishX+2;ee++)for(var H=A.startY-1;H<A.finishY+2;H++)if(!(ee<0||H<0||ee>=j.length||H>=j[0].length)){for(var te=0;te<j[ee][H].length;te++)if(le=j[ee][H][te],!(A.getOwner()!=le.getOwner()||A==le)&&!U.has(le)&&!ne.has(le)){var S=Math.abs(A.getCenterX()-le.getCenterX())-(A.getWidth()/2+le.getWidth()/2),V=Math.abs(A.getCenterY()-le.getCenterY())-(A.getHeight()/2+le.getHeight()/2);S<=this.repulsionRange&&V<=this.repulsionRange&&ne.add(le)}}A.surrounding=[].concat(C(ne))}for(ee=0;ee<A.surrounding.length;ee++)this.calcRepulsionForce(A,A.surrounding[ee])},P.prototype.calcRepulsionRange=function(){return 0},_.exports=P},function(_,ve,J){var C=J(1),T=J(7);function x(z,Y,P){C.call(this,z,Y,P),this.idealLength=T.DEFAULT_EDGE_LENGTH}x.prototype=Object.create(C.prototype);for(var N in C)x[N]=C[N];_.exports=x},function(_,ve,J){var C=J(3);function T(N,z,Y,P){C.call(this,N,z,Y,P),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0,this.startX=0,this.finishX=0,this.startY=0,this.finishY=0,this.surrounding=[]}T.prototype=Object.create(C.prototype);for(var x in C)T[x]=C[x];T.prototype.setGridCoordinates=function(N,z,Y,P){this.startX=N,this.finishX=z,this.startY=Y,this.finishY=P},_.exports=T},function(_,ve,J){function C(T,x){this.width=0,this.height=0,T!==null&&x!==null&&(this.height=x,this.width=T)}C.prototype.getWidth=function(){return this.width},C.prototype.setWidth=function(T){this.width=T},C.prototype.getHeight=function(){return this.height},C.prototype.setHeight=function(T){this.height=T},_.exports=C},function(_,ve,J){var C=J(14);function T(){this.map={},this.keys=[]}T.prototype.put=function(x,N){var z=C.createID(x);this.contains(z)||(this.map[z]=N,this.keys.push(x))},T.prototype.contains=function(x){return C.createID(x),this.map[x]!=null},T.prototype.get=function(x){var N=C.createID(x);return this.map[N]},T.prototype.keySet=function(){return this.keys},_.exports=T},function(_,ve,J){var C=J(14);function T(){this.set={}}T.prototype.add=function(x){var N=C.createID(x);this.contains(N)||(this.set[N]=x)},T.prototype.remove=function(x){delete this.set[C.createID(x)]},T.prototype.clear=function(){this.set={}},T.prototype.contains=function(x){return this.set[C.createID(x)]==x},T.prototype.isEmpty=function(){return this.size()===0},T.prototype.size=function(){return Object.keys(this.set).length},T.prototype.addAllTo=function(x){for(var N=Object.keys(this.set),z=N.length,Y=0;Y<z;Y++)x.push(this.set[N[Y]])},T.prototype.size=function(){return Object.keys(this.set).length},T.prototype.addAll=function(x){for(var N=x.length,z=0;z<N;z++){var Y=x[z];this.add(Y)}},_.exports=T},function(_,ve,J){var C=function(){function z(Y,P){for(var Z=0;Z<P.length;Z++){var A=P[Z];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(Y,A.key,A)}}return function(Y,P,Z){return P&&z(Y.prototype,P),Z&&z(Y,Z),Y}}();function T(z,Y){if(!(z instanceof Y))throw new TypeError("Cannot call a class as a function")}var x=J(11),N=function(){function z(Y,P){T(this,z),(P!==null||P!==void 0)&&(this.compareFunction=this._defaultCompareFunction);var Z=void 0;Y instanceof x?Z=Y.size():Z=Y.length,this._quicksort(Y,0,Z-1)}return C(z,[{key:"_quicksort",value:function(P,Z,A){if(Z<A){var U=this._partition(P,Z,A);this._quicksort(P,Z,U),this._quicksort(P,U+1,A)}}},{key:"_partition",value:function(P,Z,A){for(var U=this._get(P,Z),$=Z,Q=A;;){for(;this.compareFunction(U,this._get(P,Q));)Q--;for(;this.compareFunction(this._get(P,$),U);)$++;if($<Q)this._swap(P,$,Q),$++,Q--;else return Q}}},{key:"_get",value:function(P,Z){return P instanceof x?P.get_object_at(Z):P[Z]}},{key:"_set",value:function(P,Z,A){P instanceof x?P.set_object_at(Z,A):P[Z]=A}},{key:"_swap",value:function(P,Z,A){var U=this._get(P,Z);this._set(P,Z,this._get(P,A)),this._set(P,A,U)}},{key:"_defaultCompareFunction",value:function(P,Z){return Z>P}}]),z}();_.exports=N},function(_,ve,J){var C=function(){function N(z,Y){for(var P=0;P<Y.length;P++){var Z=Y[P];Z.enumerable=Z.enumerable||!1,Z.configurable=!0,"value"in Z&&(Z.writable=!0),Object.defineProperty(z,Z.key,Z)}}return function(z,Y,P){return Y&&N(z.prototype,Y),P&&N(z,P),z}}();function T(N,z){if(!(N instanceof z))throw new TypeError("Cannot call a class as a function")}var x=function(){function N(z,Y){var P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Z=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,A=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;T(this,N),this.sequence1=z,this.sequence2=Y,this.match_score=P,this.mismatch_penalty=Z,this.gap_penalty=A,this.iMax=z.length+1,this.jMax=Y.length+1,this.grid=new Array(this.iMax);for(var U=0;U<this.iMax;U++){this.grid[U]=new Array(this.jMax);for(var $=0;$<this.jMax;$++)this.grid[U][$]=0}this.tracebackGrid=new Array(this.iMax);for(var Q=0;Q<this.iMax;Q++){this.tracebackGrid[Q]=new Array(this.jMax);for(var ne=0;ne<this.jMax;ne++)this.tracebackGrid[Q][ne]=[null,null,null]}this.alignments=[],this.score=-1,this.computeGrids()}return C(N,[{key:"getScore",value:function(){return this.score}},{key:"getAlignments",value:function(){return this.alignments}},{key:"computeGrids",value:function(){for(var Y=1;Y<this.jMax;Y++)this.grid[0][Y]=this.grid[0][Y-1]+this.gap_penalty,this.tracebackGrid[0][Y]=[!1,!1,!0];for(var P=1;P<this.iMax;P++)this.grid[P][0]=this.grid[P-1][0]+this.gap_penalty,this.tracebackGrid[P][0]=[!1,!0,!1];for(var Z=1;Z<this.iMax;Z++)for(var A=1;A<this.jMax;A++){var U=void 0;this.sequence1[Z-1]===this.sequence2[A-1]?U=this.grid[Z-1][A-1]+this.match_score:U=this.grid[Z-1][A-1]+this.mismatch_penalty;var $=this.grid[Z-1][A]+this.gap_penalty,Q=this.grid[Z][A-1]+this.gap_penalty,ne=[U,$,Q],le=this.arrayAllMaxIndexes(ne);this.grid[Z][A]=ne[le[0]],this.tracebackGrid[Z][A]=[le.includes(0),le.includes(1),le.includes(2)]}this.score=this.grid[this.iMax-1][this.jMax-1]}},{key:"alignmentTraceback",value:function(){var Y=[];for(Y.push({pos:[this.sequence1.length,this.sequence2.length],seq1:"",seq2:""});Y[0];){var P=Y[0],Z=this.tracebackGrid[P.pos[0]][P.pos[1]];Z[0]&&Y.push({pos:[P.pos[0]-1,P.pos[1]-1],seq1:this.sequence1[P.pos[0]-1]+P.seq1,seq2:this.sequence2[P.pos[1]-1]+P.seq2}),Z[1]&&Y.push({pos:[P.pos[0]-1,P.pos[1]],seq1:this.sequence1[P.pos[0]-1]+P.seq1,seq2:"-"+P.seq2}),Z[2]&&Y.push({pos:[P.pos[0],P.pos[1]-1],seq1:"-"+P.seq1,seq2:this.sequence2[P.pos[1]-1]+P.seq2}),P.pos[0]===0&&P.pos[1]===0&&this.alignments.push({sequence1:P.seq1,sequence2:P.seq2}),Y.shift()}return this.alignments}},{key:"getAllIndexes",value:function(Y,P){for(var Z=[],A=-1;(A=Y.indexOf(P,A+1))!==-1;)Z.push(A);return Z}},{key:"arrayAllMaxIndexes",value:function(Y){return this.getAllIndexes(Y,Math.max.apply(null,Y))}}]),N}();_.exports=x},function(_,ve,J){var C=function(){};C.FDLayout=J(18),C.FDLayoutConstants=J(7),C.FDLayoutEdge=J(19),C.FDLayoutNode=J(20),C.DimensionD=J(21),C.HashMap=J(22),C.HashSet=J(23),C.IGeometry=J(8),C.IMath=J(9),C.Integer=J(10),C.Point=J(12),C.PointD=J(4),C.RandomSeed=J(16),C.RectangleD=J(13),C.Transform=J(17),C.UniqueIDGeneretor=J(14),C.Quicksort=J(24),C.LinkedList=J(11),C.LGraphObject=J(2),C.LGraph=J(5),C.LEdge=J(1),C.LGraphManager=J(6),C.LNode=J(3),C.Layout=J(15),C.LayoutConstants=J(0),C.NeedlemanWunsch=J(25),_.exports=C},function(_,ve,J){function C(){this.listeners=[]}var T=C.prototype;T.addListener=function(x,N){this.listeners.push({event:x,callback:N})},T.removeListener=function(x,N){for(var z=this.listeners.length;z>=0;z--){var Y=this.listeners[z];Y.event===x&&Y.callback===N&&this.listeners.splice(z,1)}},T.emit=function(x,N){for(var z=0;z<this.listeners.length;z++){var Y=this.listeners[z];x===Y.event&&Y.callback(N)}},_.exports=C}])})}(Zi)),Zi.exports}var $l;function zp(){return $l||($l=1,function(de,Pe){(function(ve,J){de.exports=J(Gp())})(Ca,function(_){return function(ve){var J={};function C(T){if(J[T])return J[T].exports;var x=J[T]={i:T,l:!1,exports:{}};return ve[T].call(x.exports,x,x.exports,C),x.l=!0,x.exports}return C.m=ve,C.c=J,C.i=function(T){return T},C.d=function(T,x,N){C.o(T,x)||Object.defineProperty(T,x,{configurable:!1,enumerable:!0,get:N})},C.n=function(T){var x=T&&T.__esModule?function(){return T.default}:function(){return T};return C.d(x,"a",x),x},C.o=function(T,x){return Object.prototype.hasOwnProperty.call(T,x)},C.p="",C(C.s=7)}([function(ve,J){ve.exports=_},function(ve,J,C){var T=C(0).FDLayoutConstants;function x(){}for(var N in T)x[N]=T[N];x.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,x.DEFAULT_RADIAL_SEPARATION=T.DEFAULT_EDGE_LENGTH,x.DEFAULT_COMPONENT_SEPERATION=60,x.TILE=!0,x.TILING_PADDING_VERTICAL=10,x.TILING_PADDING_HORIZONTAL=10,x.TREE_REDUCTION_ON_INCREMENTAL=!1,ve.exports=x},function(ve,J,C){var T=C(0).FDLayoutEdge;function x(z,Y,P){T.call(this,z,Y,P)}x.prototype=Object.create(T.prototype);for(var N in T)x[N]=T[N];ve.exports=x},function(ve,J,C){var T=C(0).LGraph;function x(z,Y,P){T.call(this,z,Y,P)}x.prototype=Object.create(T.prototype);for(var N in T)x[N]=T[N];ve.exports=x},function(ve,J,C){var T=C(0).LGraphManager;function x(z){T.call(this,z)}x.prototype=Object.create(T.prototype);for(var N in T)x[N]=T[N];ve.exports=x},function(ve,J,C){var T=C(0).FDLayoutNode,x=C(0).IMath;function N(Y,P,Z,A){T.call(this,Y,P,Z,A)}N.prototype=Object.create(T.prototype);for(var z in T)N[z]=T[z];N.prototype.move=function(){var Y=this.graphManager.getLayout();this.displacementX=Y.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY=Y.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren,Math.abs(this.displacementX)>Y.coolingFactor*Y.maxNodeDisplacement&&(this.displacementX=Y.coolingFactor*Y.maxNodeDisplacement*x.sign(this.displacementX)),Math.abs(this.displacementY)>Y.coolingFactor*Y.maxNodeDisplacement&&(this.displacementY=Y.coolingFactor*Y.maxNodeDisplacement*x.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),Y.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},N.prototype.propogateDisplacementToChildren=function(Y,P){for(var Z=this.getChild().getNodes(),A,U=0;U<Z.length;U++)A=Z[U],A.getChild()==null?(A.moveBy(Y,P),A.displacementX+=Y,A.displacementY+=P):A.propogateDisplacementToChildren(Y,P)},N.prototype.setPred1=function(Y){this.pred1=Y},N.prototype.getPred1=function(){return pred1},N.prototype.getPred2=function(){return pred2},N.prototype.setNext=function(Y){this.next=Y},N.prototype.getNext=function(){return next},N.prototype.setProcessed=function(Y){this.processed=Y},N.prototype.isProcessed=function(){return processed},ve.exports=N},function(ve,J,C){var T=C(0).FDLayout,x=C(4),N=C(3),z=C(5),Y=C(2),P=C(1),Z=C(0).FDLayoutConstants,A=C(0).LayoutConstants,U=C(0).Point,$=C(0).PointD,Q=C(0).Layout,ne=C(0).Integer,le=C(0).IGeometry,j=C(0).LGraph,ee=C(0).Transform;function H(){T.call(this),this.toBeTiled={}}H.prototype=Object.create(T.prototype);for(var te in T)H[te]=T[te];H.prototype.newGraphManager=function(){var S=new x(this);return this.graphManager=S,S},H.prototype.newGraph=function(S){return new N(null,this.graphManager,S)},H.prototype.newNode=function(S){return new z(this.graphManager,S)},H.prototype.newEdge=function(S){return new Y(null,null,S)},H.prototype.initParameters=function(){T.prototype.initParameters.call(this,arguments),this.isSubLayout||(P.DEFAULT_EDGE_LENGTH<10?this.idealEdgeLength=10:this.idealEdgeLength=P.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=P.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.springConstant=Z.DEFAULT_SPRING_STRENGTH,this.repulsionConstant=Z.DEFAULT_REPULSION_STRENGTH,this.gravityConstant=Z.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=Z.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=Z.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=Z.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.prunedNodesAll=[],this.growTreeIterations=0,this.afterGrowthIterations=0,this.isTreeGrowing=!1,this.isGrowthFinished=!1,this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/Z.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=Z.CONVERGENCE_CHECK_PERIOD/this.maxIterations,this.coolingAdjuster=1)},H.prototype.layout=function(){var S=A.DEFAULT_CREATE_BENDS_AS_NEEDED;return S&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},H.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(P.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var V=new Set(this.getAllNodes()),R=this.nodesWithGravity.filter(function(pe){return V.has(pe)});this.graphManager.setAllNodesToApplyGravitation(R)}}else{var S=this.getFlatForest();if(S.length>0)this.positionNodesRadially(S);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var V=new Set(this.getAllNodes()),R=this.nodesWithGravity.filter(function(q){return V.has(q)});this.graphManager.setAllNodesToApplyGravitation(R),this.positionNodesRandomly()}}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},H.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%Z.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 S=new Set(this.getAllNodes()),V=this.nodesWithGravity.filter(function(he){return S.has(he)});this.graphManager.setAllNodesToApplyGravitation(V),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=Z.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=Z.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var R=!this.isTreeGrowing&&!this.isGrowthFinished,q=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(R,q),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},H.prototype.getPositionsData=function(){for(var S=this.graphManager.getAllNodes(),V={},R=0;R<S.length;R++){var q=S[R].rect,he=S[R].id;V[he]={id:he,x:q.getCenterX(),y:q.getCenterY(),w:q.width,h:q.height}}return V},H.prototype.runSpringEmbedder=function(){this.initialAnimationPeriod=25,this.animationPeriod=this.initialAnimationPeriod;var S=!1;if(Z.ANIMATE==="during")this.emit("layoutstarted");else{for(;!S;)S=this.tick();this.graphManager.updateBounds()}},H.prototype.calculateNodesToApplyGravitationTo=function(){var S=[],V,R=this.graphManager.getGraphs(),q=R.length,he;for(he=0;he<q;he++)V=R[he],V.updateConnected(),V.isConnected||(S=S.concat(V.getNodes()));return S},H.prototype.createBendpoints=function(){var S=[];S=S.concat(this.graphManager.getAllEdges());var V=new Set,R;for(R=0;R<S.length;R++){var q=S[R];if(!V.has(q)){var he=q.getSource(),pe=q.getTarget();if(he==pe)q.getBendpoints().push(new $),q.getBendpoints().push(new $),this.createDummyNodesForBendpoints(q),V.add(q);else{var Ae=[];if(Ae=Ae.concat(he.getEdgeListToNode(pe)),Ae=Ae.concat(pe.getEdgeListToNode(he)),!V.has(Ae[0])){if(Ae.length>1){var Ne;for(Ne=0;Ne<Ae.length;Ne++){var Ye=Ae[Ne];Ye.getBendpoints().push(new $),this.createDummyNodesForBendpoints(Ye)}}Ae.forEach(function(at){V.add(at)})}}}if(V.size==S.length)break}},H.prototype.positionNodesRadially=function(S){for(var V=new U(0,0),R=Math.ceil(Math.sqrt(S.length)),q=0,he=0,pe=0,Ae=new $(0,0),Ne=0;Ne<S.length;Ne++){Ne%R==0&&(pe=0,he=q,Ne!=0&&(he+=P.DEFAULT_COMPONENT_SEPERATION),q=0);var Ye=S[Ne],at=Q.findCenterOfTree(Ye);V.x=pe,V.y=he,Ae=H.radialLayout(Ye,at,V),Ae.y>q&&(q=Math.floor(Ae.y)),pe=Math.floor(Ae.x+P.DEFAULT_COMPONENT_SEPERATION)}this.transform(new $(A.WORLD_CENTER_X-Ae.x/2,A.WORLD_CENTER_Y-Ae.y/2))},H.radialLayout=function(S,V,R){var q=Math.max(this.maxDiagonalInTree(S),P.DEFAULT_RADIAL_SEPARATION);H.branchRadialLayout(V,null,0,359,0,q);var he=j.calculateBounds(S),pe=new ee;pe.setDeviceOrgX(he.getMinX()),pe.setDeviceOrgY(he.getMinY()),pe.setWorldOrgX(R.x),pe.setWorldOrgY(R.y);for(var Ae=0;Ae<S.length;Ae++){var Ne=S[Ae];Ne.transform(pe)}var Ye=new $(he.getMaxX(),he.getMaxY());return pe.inverseTransformPoint(Ye)},H.branchRadialLayout=function(S,V,R,q,he,pe){var Ae=(q-R+1)/2;Ae<0&&(Ae+=180);var Ne=(Ae+R)%360,Ye=Ne*le.TWO_PI/360,at=he*Math.cos(Ye),dt=he*Math.sin(Ye);S.setCenter(at,dt);var Re=[];Re=Re.concat(S.getEdges());var Ve=Re.length;V!=null&&Ve--;for(var Ze=0,nt=Re.length,ft,it=S.getEdgesBetween(V);it.length>1;){var tt=it[0];it.splice(0,1);var yt=Re.indexOf(tt);yt>=0&&Re.splice(yt,1),nt--,Ve--}V!=null?ft=(Re.indexOf(it[0])+1)%nt:ft=0;for(var Et=Math.abs(q-R)/Ve,Pt=ft;Ze!=Ve;Pt=++Pt%nt){var gt=Re[Pt].getOtherEnd(S);if(gt!=V){var dr=(R+Ze*Et)%360,qt=(dr+Et)%360;H.branchRadialLayout(gt,S,dr,qt,he+pe,pe),Ze++}}},H.maxDiagonalInTree=function(S){for(var V=ne.MIN_VALUE,R=0;R<S.length;R++){var q=S[R],he=q.getDiagonal();he>V&&(V=he)}return V},H.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},H.prototype.groupZeroDegreeMembers=function(){var S=this,V={};this.memberGroups={},this.idToDummyNode={};for(var R=[],q=this.graphManager.getAllNodes(),he=0;he<q.length;he++){var pe=q[he],Ae=pe.getParent();this.getNodeDegreeWithChildren(pe)===0&&(Ae.id==null||!this.getToBeTiled(Ae))&&R.push(pe)}for(var he=0;he<R.length;he++){var pe=R[he],Ne=pe.getParent().id;typeof V[Ne]>"u"&&(V[Ne]=[]),V[Ne]=V[Ne].concat(pe)}Object.keys(V).forEach(function(Ye){if(V[Ye].length>1){var at="DummyCompound_"+Ye;S.memberGroups[at]=V[Ye];var dt=V[Ye][0].getParent(),Re=new z(S.graphManager);Re.id=at,Re.paddingLeft=dt.paddingLeft||0,Re.paddingRight=dt.paddingRight||0,Re.paddingBottom=dt.paddingBottom||0,Re.paddingTop=dt.paddingTop||0,S.idToDummyNode[at]=Re;var Ve=S.getGraphManager().add(S.newGraph(),Re),Ze=dt.getChild();Ze.add(Re);for(var nt=0;nt<V[Ye].length;nt++){var ft=V[Ye][nt];Ze.remove(ft),Ve.add(ft)}}})},H.prototype.clearCompounds=function(){var S={},V={};this.performDFSOnCompounds();for(var R=0;R<this.compoundOrder.length;R++)V[this.compoundOrder[R].id]=this.compoundOrder[R],S[this.compoundOrder[R].id]=[].concat(this.compoundOrder[R].getChild().getNodes()),this.graphManager.remove(this.compoundOrder[R].getChild()),this.compoundOrder[R].child=null;this.graphManager.resetAllNodes(),this.tileCompoundMembers(S,V)},H.prototype.clearZeroDegreeMembers=function(){var S=this,V=this.tiledZeroDegreePack=[];Object.keys(this.memberGroups).forEach(function(R){var q=S.idToDummyNode[R];V[R]=S.tileNodes(S.memberGroups[R],q.paddingLeft+q.paddingRight),q.rect.width=V[R].width,q.rect.height=V[R].height})},H.prototype.repopulateCompounds=function(){for(var S=this.compoundOrder.length-1;S>=0;S--){var V=this.compoundOrder[S],R=V.id,q=V.paddingLeft,he=V.paddingTop;this.adjustLocations(this.tiledMemberPack[R],V.rect.x,V.rect.y,q,he)}},H.prototype.repopulateZeroDegreeMembers=function(){var S=this,V=this.tiledZeroDegreePack;Object.keys(V).forEach(function(R){var q=S.idToDummyNode[R],he=q.paddingLeft,pe=q.paddingTop;S.adjustLocations(V[R],q.rect.x,q.rect.y,he,pe)})},H.prototype.getToBeTiled=function(S){var V=S.id;if(this.toBeTiled[V]!=null)return this.toBeTiled[V];var R=S.getChild();if(R==null)return this.toBeTiled[V]=!1,!1;for(var q=R.getNodes(),he=0;he<q.length;he++){var pe=q[he];if(this.getNodeDegree(pe)>0)return this.toBeTiled[V]=!1,!1;if(pe.getChild()==null){this.toBeTiled[pe.id]=!1;continue}if(!this.getToBeTiled(pe))return this.toBeTiled[V]=!1,!1}return this.toBeTiled[V]=!0,!0},H.prototype.getNodeDegree=function(S){S.id;for(var V=S.getEdges(),R=0,q=0;q<V.length;q++){var he=V[q];he.getSource().id!==he.getTarget().id&&(R=R+1)}return R},H.prototype.getNodeDegreeWithChildren=function(S){var V=this.getNodeDegree(S);if(S.getChild()==null)return V;for(var R=S.getChild().getNodes(),q=0;q<R.length;q++){var he=R[q];V+=this.getNodeDegreeWithChildren(he)}return V},H.prototype.performDFSOnCompounds=function(){this.compoundOrder=[],this.fillCompexOrderByDFS(this.graphManager.getRoot().getNodes())},H.prototype.fillCompexOrderByDFS=function(S){for(var V=0;V<S.length;V++){var R=S[V];R.getChild()!=null&&this.fillCompexOrderByDFS(R.getChild().getNodes()),this.getToBeTiled(R)&&this.compoundOrder.push(R)}},H.prototype.adjustLocations=function(S,V,R,q,he){V+=q,R+=he;for(var pe=V,Ae=0;Ae<S.rows.length;Ae++){var Ne=S.rows[Ae];V=pe;for(var Ye=0,at=0;at<Ne.length;at++){var dt=Ne[at];dt.rect.x=V,dt.rect.y=R,V+=dt.rect.width+S.horizontalPadding,dt.rect.height>Ye&&(Ye=dt.rect.height)}R+=Ye+S.verticalPadding}},H.prototype.tileCompoundMembers=function(S,V){var R=this;this.tiledMemberPack=[],Object.keys(S).forEach(function(q){var he=V[q];R.tiledMemberPack[q]=R.tileNodes(S[q],he.paddingLeft+he.paddingRight),he.rect.width=R.tiledMemberPack[q].width,he.rect.height=R.tiledMemberPack[q].height})},H.prototype.tileNodes=function(S,V){var R=P.TILING_PADDING_VERTICAL,q=P.TILING_PADDING_HORIZONTAL,he={rows:[],rowWidth:[],rowHeight:[],width:0,height:V,verticalPadding:R,horizontalPadding:q};S.sort(function(Ne,Ye){return Ne.rect.width*Ne.rect.height>Ye.rect.width*Ye.rect.height?-1:Ne.rect.width*Ne.rect.height<Ye.rect.width*Ye.rect.height?1:0});for(var pe=0;pe<S.length;pe++){var Ae=S[pe];he.rows.length==0?this.insertNodeToRow(he,Ae,0,V):this.canAddHorizontal(he,Ae.rect.width,Ae.rect.height)?this.insertNodeToRow(he,Ae,this.getShortestRowIndex(he),V):this.insertNodeToRow(he,Ae,he.rows.length,V),this.shiftToLastRow(he)}return he},H.prototype.insertNodeToRow=function(S,V,R,q){var he=q;if(R==S.rows.length){var pe=[];S.rows.push(pe),S.rowWidth.push(he),S.rowHeight.push(0)}var Ae=S.rowWidth[R]+V.rect.width;S.rows[R].length>0&&(Ae+=S.horizontalPadding),S.rowWidth[R]=Ae,S.width<Ae&&(S.width=Ae);var Ne=V.rect.height;R>0&&(Ne+=S.verticalPadding);var Ye=0;Ne>S.rowHeight[R]&&(Ye=S.rowHeight[R],S.rowHeight[R]=Ne,Ye=S.rowHeight[R]-Ye),S.height+=Ye,S.rows[R].push(V)},H.prototype.getShortestRowIndex=function(S){for(var V=-1,R=Number.MAX_VALUE,q=0;q<S.rows.length;q++)S.rowWidth[q]<R&&(V=q,R=S.rowWidth[q]);return V},H.prototype.getLongestRowIndex=function(S){for(var V=-1,R=Number.MIN_VALUE,q=0;q<S.rows.length;q++)S.rowWidth[q]>R&&(V=q,R=S.rowWidth[q]);return V},H.prototype.canAddHorizontal=function(S,V,R){var q=this.getShortestRowIndex(S);if(q<0)return!0;var he=S.rowWidth[q];if(he+S.horizontalPadding+V<=S.width)return!0;var pe=0;S.rowHeight[q]<R&&q>0&&(pe=R+S.verticalPadding-S.rowHeight[q]);var Ae;S.width-he>=V+S.horizontalPadding?Ae=(S.height+pe)/(he+V+S.horizontalPadding):Ae=(S.height+pe)/S.width,pe=R+S.verticalPadding;var Ne;return S.width<V?Ne=(S.height+pe)/V:Ne=(S.height+pe)/S.width,Ne<1&&(Ne=1/Ne),Ae<1&&(Ae=1/Ae),Ae<Ne},H.prototype.shiftToLastRow=function(S){var V=this.getLongestRowIndex(S),R=S.rowWidth.length-1,q=S.rows[V],he=q[q.length-1],pe=he.width+S.horizontalPadding;if(S.width-S.rowWidth[R]>pe&&V!=R){q.splice(-1,1),S.rows[R].push(he),S.rowWidth[V]=S.rowWidth[V]-pe,S.rowWidth[R]=S.rowWidth[R]+pe,S.width=S.rowWidth[instance.getLongestRowIndex(S)];for(var Ae=Number.MIN_VALUE,Ne=0;Ne<q.length;Ne++)q[Ne].height>Ae&&(Ae=q[Ne].height);V>0&&(Ae+=S.verticalPadding);var Ye=S.rowHeight[V]+S.rowHeight[R];S.rowHeight[V]=Ae,S.rowHeight[R]<he.height+S.verticalPadding&&(S.rowHeight[R]=he.height+S.verticalPadding);var at=S.rowHeight[V]+S.rowHeight[R];S.height+=at-Ye,this.shiftToLastRow(S)}},H.prototype.tilingPreLayout=function(){P.TILE&&(this.groupZeroDegreeMembers(),this.clearCompounds(),this.clearZeroDegreeMembers())},H.prototype.tilingPostLayout=function(){P.TILE&&(this.repopulateZeroDegreeMembers(),this.repopulateCompounds())},H.prototype.reduceTrees=function(){for(var S=[],V=!0,R;V;){var q=this.graphManager.getAllNodes(),he=[];V=!1;for(var pe=0;pe<q.length;pe++)R=q[pe],R.getEdges().length==1&&!R.getEdges()[0].isInterGraph&&R.getChild()==null&&(he.push([R,R.getEdges()[0],R.getOwner()]),V=!0);if(V==!0){for(var Ae=[],Ne=0;Ne<he.length;Ne++)he[Ne][0].getEdges().length==1&&(Ae.push(he[Ne]),he[Ne][0].getOwner().remove(he[Ne][0]));S.push(Ae),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()}}this.prunedNodesAll=S},H.prototype.growTree=function(S){for(var V=S.length,R=S[V-1],q,he=0;he<R.length;he++)q=R[he],this.findPlaceforPrunedNode(q),q[2].add(q[0]),q[2].add(q[1],q[1].source,q[1].target);S.splice(S.length-1,1),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()},H.prototype.findPlaceforPrunedNode=function(S){var V,R,q=S[0];q==S[1].source?R=S[1].target:R=S[1].source;var he=R.startX,pe=R.finishX,Ae=R.startY,Ne=R.finishY,Ye=0,at=0,dt=0,Re=0,Ve=[Ye,dt,at,Re];if(Ae>0)for(var Ze=he;Ze<=pe;Ze++)Ve[0]+=this.grid[Ze][Ae-1].length+this.grid[Ze][Ae].length-1;if(pe<this.grid.length-1)for(var Ze=Ae;Ze<=Ne;Ze++)Ve[1]+=this.grid[pe+1][Ze].length+this.grid[pe][Ze].length-1;if(Ne<this.grid[0].length-1)for(var Ze=he;Ze<=pe;Ze++)Ve[2]+=this.grid[Ze][Ne+1].length+this.grid[Ze][Ne].length-1;if(he>0)for(var Ze=Ae;Ze<=Ne;Ze++)Ve[3]+=this.grid[he-1][Ze].length+this.grid[he][Ze].length-1;for(var nt=ne.MAX_VALUE,ft,it,tt=0;tt<Ve.length;tt++)Ve[tt]<nt?(nt=Ve[tt],ft=1,it=tt):Ve[tt]==nt&&ft++;if(ft==3&&nt==0)Ve[0]==0&&Ve[1]==0&&Ve[2]==0?V=1:Ve[0]==0&&Ve[1]==0&&Ve[3]==0?V=0:Ve[0]==0&&Ve[2]==0&&Ve[3]==0?V=3:Ve[1]==0&&Ve[2]==0&&Ve[3]==0&&(V=2);else if(ft==2&&nt==0){var yt=Math.floor(Math.random()*2);Ve[0]==0&&Ve[1]==0?yt==0?V=0:V=1:Ve[0]==0&&Ve[2]==0?yt==0?V=0:V=2:Ve[0]==0&&Ve[3]==0?yt==0?V=0:V=3:Ve[1]==0&&Ve[2]==0?yt==0?V=1:V=2:Ve[1]==0&&Ve[3]==0?yt==0?V=1:V=3:yt==0?V=2:V=3}else if(ft==4&&nt==0){var yt=Math.floor(Math.random()*4);V=yt}else V=it;V==0?q.setCenter(R.getCenterX(),R.getCenterY()-R.getHeight()/2-Z.DEFAULT_EDGE_LENGTH-q.getHeight()/2):V==1?q.setCenter(R.getCenterX()+R.getWidth()/2+Z.DEFAULT_EDGE_LENGTH+q.getWidth()/2,R.getCenterY()):V==2?q.setCenter(R.getCenterX(),R.getCenterY()+R.getHeight()/2+Z.DEFAULT_EDGE_LENGTH+q.getHeight()/2):q.setCenter(R.getCenterX()-R.getWidth()/2-Z.DEFAULT_EDGE_LENGTH-q.getWidth()/2,R.getCenterY())},ve.exports=H},function(ve,J,C){var T={};T.layoutBase=C(0),T.CoSEConstants=C(1),T.CoSEEdge=C(2),T.CoSEGraph=C(3),T.CoSEGraphManager=C(4),T.CoSELayout=C(6),T.CoSENode=C(5),ve.exports=T}])})}(Ki)),Ki.exports}(function(de,Pe){(function(ve,J){de.exports=J(zp())})(Ca,function(_){return function(ve){var J={};function C(T){if(J[T])return J[T].exports;var x=J[T]={i:T,l:!1,exports:{}};return ve[T].call(x.exports,x,x.exports,C),x.l=!0,x.exports}return C.m=ve,C.c=J,C.i=function(T){return T},C.d=function(T,x,N){C.o(T,x)||Object.defineProperty(T,x,{configurable:!1,enumerable:!0,get:N})},C.n=function(T){var x=T&&T.__esModule?function(){return T.default}:function(){return T};return C.d(x,"a",x),x},C.o=function(T,x){return Object.prototype.hasOwnProperty.call(T,x)},C.p="",C(C.s=1)}([function(ve,J){ve.exports=_},function(ve,J,C){var T=C(0).layoutBase.LayoutConstants,x=C(0).layoutBase.FDLayoutConstants,N=C(0).CoSEConstants,z=C(0).CoSELayout,Y=C(0).CoSENode,P=C(0).layoutBase.PointD,Z=C(0).layoutBase.DimensionD,A={ready:function(){},stop:function(){},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 U(le,j){var ee={};for(var H in le)ee[H]=le[H];for(var H in j)ee[H]=j[H];return ee}function $(le){this.options=U(A,le),Q(this.options)}var Q=function(j){j.nodeRepulsion!=null&&(N.DEFAULT_REPULSION_STRENGTH=x.DEFAULT_REPULSION_STRENGTH=j.nodeRepulsion),j.idealEdgeLength!=null&&(N.DEFAULT_EDGE_LENGTH=x.DEFAULT_EDGE_LENGTH=j.idealEdgeLength),j.edgeElasticity!=null&&(N.DEFAULT_SPRING_STRENGTH=x.DEFAULT_SPRING_STRENGTH=j.edgeElasticity),j.nestingFactor!=null&&(N.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=x.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=j.nestingFactor),j.gravity!=null&&(N.DEFAULT_GRAVITY_STRENGTH=x.DEFAULT_GRAVITY_STRENGTH=j.gravity),j.numIter!=null&&(N.MAX_ITERATIONS=x.MAX_ITERATIONS=j.numIter),j.gravityRange!=null&&(N.DEFAULT_GRAVITY_RANGE_FACTOR=x.DEFAULT_GRAVITY_RANGE_FACTOR=j.gravityRange),j.gravityCompound!=null&&(N.DEFAULT_COMPOUND_GRAVITY_STRENGTH=x.DEFAULT_COMPOUND_GRAVITY_STRENGTH=j.gravityCompound),j.gravityRangeCompound!=null&&(N.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=x.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=j.gravityRangeCompound),j.initialEnergyOnIncremental!=null&&(N.DEFAULT_COOLING_FACTOR_INCREMENTAL=x.DEFAULT_COOLING_FACTOR_INCREMENTAL=j.initialEnergyOnIncremental),j.quality=="draft"?T.QUALITY=0:j.quality=="proof"?T.QUALITY=2:T.QUALITY=1,N.NODE_DIMENSIONS_INCLUDE_LABELS=x.NODE_DIMENSIONS_INCLUDE_LABELS=T.NODE_DIMENSIONS_INCLUDE_LABELS=j.nodeDimensionsIncludeLabels,N.DEFAULT_INCREMENTAL=x.DEFAULT_INCREMENTAL=T.DEFAULT_INCREMENTAL=!j.randomize,N.ANIMATE=x.ANIMATE=T.ANIMATE=j.animate,N.TILE=j.tile,N.TILING_PADDING_VERTICAL=typeof j.tilingPaddingVertical=="function"?j.tilingPaddingVertical.call():j.tilingPaddingVertical,N.TILING_PADDING_HORIZONTAL=typeof j.tilingPaddingHorizontal=="function"?j.tilingPaddingHorizontal.call():j.tilingPaddingHorizontal};$.prototype.run=function(){var le,j,ee=this.options;this.idToLNode={};var H=this.layout=new z,te=this;te.stopped=!1,this.cy=this.options.cy,this.cy.trigger({type:"layoutstart",layout:this});var S=H.newGraphManager();this.gm=S;var V=this.options.eles.nodes(),R=this.options.eles.edges();this.root=S.addRoot(),this.processChildrenList(this.root,this.getTopMostNodes(V),H);for(var q=0;q<R.length;q++){var he=R[q],pe=this.idToLNode[he.data("source")],Ae=this.idToLNode[he.data("target")];if(pe!==Ae&&pe.getEdgesBetween(Ae).length==0){var Ne=S.add(H.newEdge(),pe,Ae);Ne.id=he.id()}}var Ye=function(Re,Ve){typeof Re=="number"&&(Re=Ve);var Ze=Re.data("id"),nt=te.idToLNode[Ze];return{x:nt.getRect().getCenterX(),y:nt.getRect().getCenterY()}},at=function dt(){for(var Re=function(){ee.fit&&ee.cy.fit(ee.eles,ee.padding),le||(le=!0,te.cy.one("layoutready",ee.ready),te.cy.trigger({type:"layoutready",layout:te}))},Ve=te.options.refresh,Ze,nt=0;nt<Ve&&!Ze;nt++)Ze=te.stopped||te.layout.tick();if(Ze){H.checkLayoutSuccess()&&!H.isSubLayout&&H.doPostLayout(),H.tilingPostLayout&&H.tilingPostLayout(),H.isLayoutFinished=!0,te.options.eles.nodes().positions(Ye),Re(),te.cy.one("layoutstop",te.options.stop),te.cy.trigger({type:"layoutstop",layout:te}),j&&cancelAnimationFrame(j),le=!1;return}var ft=te.layout.getPositionsData();ee.eles.nodes().positions(function(it,tt){if(typeof it=="number"&&(it=tt),!it.isParent()){for(var yt=it.id(),Et=ft[yt],Pt=it;Et==null&&(Et=ft[Pt.data("parent")]||ft["DummyCompound_"+Pt.data("parent")],ft[yt]=Et,Pt=Pt.parent()[0],Pt!=null););return Et!=null?{x:Et.x,y:Et.y}:{x:it.position("x"),y:it.position("y")}}}),Re(),j=requestAnimationFrame(dt)};return H.addListener("layoutstarted",function(){te.options.animate==="during"&&(j=requestAnimationFrame(at))}),H.runLayout(),this.options.animate!=="during"&&(te.options.eles.nodes().not(":parent").layoutPositions(te,te.options,Ye),le=!1),this},$.prototype.getTopMostNodes=function(le){for(var j={},ee=0;ee<le.length;ee++)j[le[ee].id()]=!0;var H=le.filter(function(te,S){typeof te=="number"&&(te=S);for(var V=te.parent()[0];V!=null;){if(j[V.id()])return!1;V=V.parent()[0]}return!0});return H},$.prototype.processChildrenList=function(le,j,ee){for(var H=j.length,te=0;te<H;te++){var S=j[te],V=S.children(),R,q=S.layoutDimensions({nodeDimensionsIncludeLabels:this.options.nodeDimensionsIncludeLabels});if(S.outerWidth()!=null&&S.outerHeight()!=null?R=le.add(new Y(ee.graphManager,new P(S.position("x")-q.w/2,S.position("y")-q.h/2),new Z(parseFloat(q.w),parseFloat(q.h)))):R=le.add(new Y(this.graphManager)),R.id=S.data("id"),R.paddingLeft=parseInt(S.css("padding")),R.paddingTop=parseInt(S.css("padding")),R.paddingRight=parseInt(S.css("padding")),R.paddingBottom=parseInt(S.css("padding")),this.options.nodeDimensionsIncludeLabels&&S.isParent()){var he=S.boundingBox({includeLabels:!0,includeNodes:!1}).w,pe=S.boundingBox({includeLabels:!0,includeNodes:!1}).h,Ae=S.css("text-halign");R.labelWidth=he,R.labelHeight=pe,R.labelPos=Ae}if(this.idToLNode[S.data("id")]=R,isNaN(R.rect.x)&&(R.rect.x=0),isNaN(R.rect.y)&&(R.rect.y=0),V!=null&&V.length>0){var Ne;Ne=ee.getGraphManager().add(ee.newGraph(),R),this.processChildrenList(Ne,V,ee)}}},$.prototype.stop=function(){return this.stopped=!0,this};var ne=function(j){j("layout","cose-bilkent",$)};typeof cytoscape<"u"&&ne(cytoscape),ve.exports=ne}])})})(Xl);var Vp=Xl.exports;const $p=Ul(Vp),Up=12,_p=function(de,Pe,_,ve){Pe.append("path").attr("id","node-"+_.id).attr("class","node-bkg node-"+de.type2Str(_.type)).attr("d",`M0 ${_.height-5} v${-_.height+2*5} q0,-5 5,-5 h${_.width-2*5} q5,0 5,5 v${_.height-5} H0 Z`),Pe.append("line").attr("class","node-line-"+ve).attr("x1",0).attr("y1",_.height).attr("x2",_.width).attr("y2",_.height)},Yp=function(de,Pe,_){Pe.append("rect").attr("id","node-"+_.id).attr("class","node-bkg node-"+de.type2Str(_.type)).attr("height",_.height).attr("width",_.width)},Hp=function(de,Pe,_){const ve=_.width,J=_.height,C=.15*ve,T=.25*ve,x=.35*ve,N=.2*ve;Pe.append("path").attr("id","node-"+_.id).attr("class","node-bkg node-"+de.type2Str(_.type)).attr("d",`M0 0 a${C},${C} 0 0,1 ${ve*.25},${-1*ve*.1}
a${x},${x} 1 0,1 ${ve*.4},${-1*ve*.1}
a${T},${T} 1 0,1 ${ve*.35},${1*ve*.2}
a${C},${C} 1 0,1 ${ve*.15},${1*J*.35}
a${N},${N} 1 0,1 ${-1*ve*.15},${1*J*.65}
a${T},${C} 1 0,1 ${-1*ve*.25},${ve*.15}
a${x},${x} 1 0,1 ${-1*ve*.5},0
a${C},${C} 1 0,1 ${-1*ve*.25},${-1*ve*.15}
a${C},${C} 1 0,1 ${-1*ve*.1},${-1*J*.35}
a${N},${N} 1 0,1 ${ve*.1},${-1*J*.65}
H0 V0 Z`)},Xp=function(de,Pe,_){const ve=_.width,J=_.height,C=.15*ve;Pe.append("path").attr("id","node-"+_.id).attr("class","node-bkg node-"+de.type2Str(_.type)).attr("d",`M0 0 a${C},${C} 1 0,0 ${ve*.25},${-1*J*.1}
a${C},${C} 1 0,0 ${ve*.25},0
a${C},${C} 1 0,0 ${ve*.25},0
a${C},${C} 1 0,0 ${ve*.25},${1*J*.1}
a${C},${C} 1 0,0 ${ve*.15},${1*J*.33}
a${C*.8},${C*.8} 1 0,0 0,${1*J*.34}
a${C},${C} 1 0,0 ${-1*ve*.15},${1*J*.33}
a${C},${C} 1 0,0 ${-1*ve*.25},${J*.15}
a${C},${C} 1 0,0 ${-1*ve*.25},0
a${C},${C} 1 0,0 ${-1*ve*.25},0
a${C},${C} 1 0,0 ${-1*ve*.25},${-1*J*.15}
a${C},${C} 1 0,0 ${-1*ve*.1},${-1*J*.33}
a${C*.8},${C*.8} 1 0,0 0,${-1*J*.34}
a${C},${C} 1 0,0 ${ve*.1},${-1*J*.33}
H0 V0 Z`)},Wp=function(de,Pe,_){Pe.append("circle").attr("id","node-"+_.id).attr("class","node-bkg node-"+de.type2Str(_.type)).attr("r",_.width/2)};function qp(de,Pe,_,ve,J){return de.insert("polygon",":first-child").attr("points",ve.map(function(C){return C.x+","+C.y}).join(" ")).attr("transform","translate("+(J.width-Pe)/2+", "+_+")")}const Kp=function(de,Pe,_){const ve=_.height,C=ve/4,T=_.width-_.padding+2*C,x=[{x:C,y:0},{x:T-C,y:0},{x:T,y:-ve/2},{x:T-C,y:-ve},{x:C,y:-ve},{x:0,y:-ve/2}];qp(Pe,T,ve,x,_)},Zp=function(de,Pe,_){Pe.append("rect").attr("id","node-"+_.id).attr("class","node-bkg node-"+de.type2Str(_.type)).attr("height",_.height).attr("rx",_.padding).attr("ry",_.padding).attr("width",_.width)},Qp=function(de,Pe,_,ve,J){const C=J.htmlLabels,T=ve%(Up-1),x=Pe.append("g");_.section=T;let N="section-"+T;T<0&&(N+=" section-root"),x.attr("class",(_.class?_.class+" ":"")+"mindmap-node "+N);const z=x.append("g"),Y=x.append("g"),P=_.descr.replace(/(<br\/*>)/g,`
`);Tp(Y,P,{useHtmlLabels:C,width:_.width,classes:"mindmap-node-label"}),C||Y.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle");const Z=Y.node().getBBox(),[A]=xp(J.fontSize);if(_.height=Z.height+A*1.1*.5+_.padding,_.width=Z.width+2*_.padding,_.icon)if(_.type===de.nodeType.CIRCLE)_.height+=50,_.width+=50,x.append("foreignObject").attr("height","50px").attr("width",_.width).attr("style","text-align: center;").append("div").attr("class","icon-container").append("i").attr("class","node-icon-"+T+" "+_.icon),Y.attr("transform","translate("+_.width/2+", "+(_.height/2-1.5*_.padding)+")");else{_.width+=50;const U=_.height;_.height=Math.max(U,60);const $=Math.abs(_.height-U);x.append("foreignObject").attr("width","60px").attr("height",_.height).attr("style","text-align: center;margin-top:"+$/2+"px;").append("div").attr("class","icon-container").append("i").attr("class","node-icon-"+T+" "+_.icon),Y.attr("transform","translate("+(25+_.width/2)+", "+($/2+_.padding/2)+")")}else if(C){const U=(_.width-Z.width)/2,$=(_.height-Z.height)/2;Y.attr("transform","translate("+U+", "+$+")")}else{const U=_.width/2,$=_.padding/2;Y.attr("transform","translate("+U+", "+$+")")}switch(_.type){case de.nodeType.DEFAULT:_p(de,z,_,T);break;case de.nodeType.ROUNDED_RECT:Zp(de,z,_);break;case de.nodeType.RECT:Yp(de,z,_);break;case de.nodeType.CIRCLE:z.attr("transform","translate("+_.width/2+", "+ +_.height/2+")"),Wp(de,z,_);break;case de.nodeType.CLOUD:Hp(de,z,_);break;case de.nodeType.BANG:Xp(de,z,_);break;case de.nodeType.HEXAGON:Kp(de,z,_);break}return de.setElementForId(_.id,x),_.height},Jp=function(de,Pe){const _=de.getElementById(Pe.id),ve=Pe.x||0,J=Pe.y||0;_.attr("transform","translate("+ve+","+J+")")};Hl.use($p);function Wl(de,Pe,_,ve,J){Qp(de,Pe,_,ve,J),_.children&&_.children.forEach((C,T)=>{Wl(de,Pe,C,ve<0?T:ve,J)})}function jp(de,Pe){Pe.edges().map((_,ve)=>{const J=_.data();if(_[0]._private.bodyBounds){const C=_[0]._private.rscratch;qr.trace("Edge: ",ve,J),de.insert("path").attr("d",`M ${C.startX},${C.startY} L ${C.midX},${C.midY} L${C.endX},${C.endY} `).attr("class","edge section-edge-"+J.section+" edge-depth-"+J.depth)}})}function ql(de,Pe,_,ve){Pe.add({group:"nodes",data:{id:de.id.toString(),labelText:de.descr,height:de.height,width:de.width,level:ve,nodeId:de.id,padding:de.padding,type:de.type},position:{x:de.x,y:de.y}}),de.children&&de.children.forEach(J=>{ql(J,Pe,_,ve+1),Pe.add({group:"edges",data:{id:`${de.id}_${J.id}`,source:de.id,target:J.id,depth:ve,section:J.section}})})}function ey(de,Pe){return new Promise(_=>{const ve=mp("body").append("div").attr("id","cy").attr("style","display:none"),J=Hl({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"bezier"}}]});ve.remove(),ql(de,J,Pe,0),J.nodes().forEach(function(C){C.layoutDimensions=()=>{const T=C.data();return{w:T.width,h:T.height}}}),J.layout({name:"cose-bilkent",quality:"proof",styleEnabled:!1,animate:!1}).run(),J.ready(C=>{qr.info("Ready",C),_(J)})})}function ty(de,Pe){Pe.nodes().map((_,ve)=>{const J=_.data();J.x=_.position().x,J.y=_.position().y,Jp(de,J);const C=de.getElementById(J.nodeId);qr.info("Id:",ve,"Position: (",_.position().x,", ",_.position().y,")",J),C.attr("transform",`translate(${_.position().x-J.width/2}, ${_.position().y-J.height/2})`),C.attr("attr",`apa-${ve})`)})}const ry=async(de,Pe,_,ve)=>{var J,C;qr.debug(`Rendering mindmap diagram
`+de);const T=ve.db,x=T.getMindmap();if(!x)return;const N=Ji();N.htmlLabels=!1;const z=pp(Pe),Y=z.append("g");Y.attr("class","mindmap-edges");const P=z.append("g");P.attr("class","mindmap-nodes"),Wl(T,P,x,-1,N);const Z=await ey(x,N);jp(Y,Z),ty(T,Z),yp(void 0,z,((J=N.mindmap)==null?void 0:J.padding)??ti.mindmap.padding,((C=N.mindmap)==null?void 0:C.useMaxWidth)??ti.mindmap.useMaxWidth)},ay={draw:ry},ny=de=>{let Pe="";for(let _=0;_<de.THEME_COLOR_LIMIT;_++)de["lineColor"+_]=de["lineColor"+_]||de["cScaleInv"+_],bp(de["lineColor"+_])?de["lineColor"+_]=Ep(de["lineColor"+_],20):de["lineColor"+_]=wp(de["lineColor"+_],20);for(let _=0;_<de.THEME_COLOR_LIMIT;_++){const ve=""+(17-3*_);Pe+=`
.section-${_-1} rect, .section-${_-1} path, .section-${_-1} circle, .section-${_-1} polygon, .section-${_-1} path {
fill: ${de["cScale"+_]};
}
.section-${_-1} text {
fill: ${de["cScaleLabel"+_]};
}
.node-icon-${_-1} {
font-size: 40px;
color: ${de["cScaleLabel"+_]};
}
.section-edge-${_-1}{
stroke: ${de["cScale"+_]};
}
.edge-depth-${_-1}{
stroke-width: ${ve};
}
.section-${_-1} line {
stroke: ${de["cScaleInv"+_]} ;
stroke-width: 3;
}
.disabled, .disabled circle, .disabled text {
fill: lightgray;
}
.disabled text {
fill: #efefef;
}
`}return Pe},iy=de=>`
.edge {
stroke-width: 3;
}
${ny(de)}
.section-root rect, .section-root path, .section-root circle, .section-root polygon {
fill: ${de.git0};
}
.section-root text {
fill: ${de.gitBranchLabel0};
}
.icon-container {
height:100%;
display: flex;
justify-content: center;
align-items: center;
}
.edge {
fill: none;
}
.mindmap-node-label {
dy: 1em;
alignment-baseline: middle;
text-anchor: middle;
dominant-baseline: middle;
text-align: center;
}
`,oy=iy,gy={db:Bp,renderer:ay,parser:Cp,styles:oy};export{gy as diagram};
import{aF as T,aG as un,aH as H,aI as J,aJ as fn}from"./slidev/5-BKiUV7YW.js";import{i as cn}from"./init-cc95ec8e-Gi6I4Gst.js";function F(n,t){return n==null||t==null?NaN:n<t?-1:n>t?1:n>=t?0:NaN}function hn(n,t){return n==null||t==null?NaN:t<n?-1:t>n?1:t>=n?0:NaN}function _(n){let t,i,r;n.length!==2?(t=F,i=(u,c)=>F(n(u),c),r=(u,c)=>n(u)-c):(t=n===F||n===hn?n:mn,i=n,r=n);function e(u,c,o=0,l=u.length){if(o<l){if(t(c,c)!==0)return l;do{const h=o+l>>>1;i(u[h],c)<0?o=h+1:l=h}while(o<l)}return o}function f(u,c,o=0,l=u.length){if(o<l){if(t(c,c)!==0)return l;do{const h=o+l>>>1;i(u[h],c)<=0?o=h+1:l=h}while(o<l)}return o}function a(u,c,o=0,l=u.length){const h=e(u,c,o,l-1);return h>o&&r(u[h-1],c)>-r(u[h],c)?h-1:h}return{left:e,center:a,right:f}}function mn(){return 0}function sn(n){return n===null?NaN:+n}const ln=_(F),gn=ln.right;_(sn).center;const dn=gn,yn=Math.sqrt(50),Mn=Math.sqrt(10),pn=Math.sqrt(2);function R(n,t,i){const r=(t-n)/Math.max(0,i),e=Math.floor(Math.log10(r)),f=r/Math.pow(10,e),a=f>=yn?10:f>=Mn?5:f>=pn?2:1;let u,c,o;return e<0?(o=Math.pow(10,-e)/a,u=Math.round(n*o),c=Math.round(t*o),u/o<n&&++u,c/o>t&&--c,o=-o):(o=Math.pow(10,e)*a,u=Math.round(n/o),c=Math.round(t/o),u*o<n&&++u,c*o>t&&--c),c<u&&.5<=i&&i<2?R(n,t,i*2):[u,c,o]}function wn(n,t,i){if(t=+t,n=+n,i=+i,!(i>0))return[];if(n===t)return[n];const r=t<n,[e,f,a]=r?R(t,n,i):R(n,t,i);if(!(f>=e))return[];const u=f-e+1,c=new Array(u);if(r)if(a<0)for(let o=0;o<u;++o)c[o]=(f-o)/-a;else for(let o=0;o<u;++o)c[o]=(f-o)*a;else if(a<0)for(let o=0;o<u;++o)c[o]=(e+o)/-a;else for(let o=0;o<u;++o)c[o]=(e+o)*a;return c}function L(n,t,i){return t=+t,n=+n,i=+i,R(n,t,i)[2]}function vn(n,t,i){t=+t,n=+n,i=+i;const r=t<n,e=r?L(t,n,i):L(n,t,i);return(r?-1:1)*(e<0?1/-e:e)}function Nn(n,t){t||(t=[]);var i=n?Math.min(t.length,n.length):0,r=t.slice(),e;return function(f){for(e=0;e<i;++e)r[e]=n[e]*(1-f)+t[e]*f;return r}}function kn(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function xn(n,t){var i=t?t.length:0,r=n?Math.min(i,n.length):0,e=new Array(r),f=new Array(i),a;for(a=0;a<r;++a)e[a]=C(n[a],t[a]);for(;a<i;++a)f[a]=t[a];return function(u){for(a=0;a<r;++a)f[a]=e[a](u);return f}}function An(n,t){var i=new Date;return n=+n,t=+t,function(r){return i.setTime(n*(1-r)+t*r),i}}function Sn(n,t){var i={},r={},e;(n===null||typeof n!="object")&&(n={}),(t===null||typeof t!="object")&&(t={});for(e in t)e in n?i[e]=C(n[e],t[e]):r[e]=t[e];return function(f){for(e in i)r[e]=i[e](f);return r}}function C(n,t){var i=typeof t,r;return t==null||i==="boolean"?un(t):(i==="number"?T:i==="string"?(r=H(t))?(t=r,J):fn:t instanceof H?J:t instanceof Date?An:kn(t)?Nn:Array.isArray(t)?xn:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?Sn:T)(n,t)}function bn(n,t){return n=+n,t=+t,function(i){return Math.round(n*(1-i)+t*i)}}function jn(n){return Math.abs(n=Math.round(n))>=1e21?n.toLocaleString("en").replace(/,/g,""):n.toString(10)}function E(n,t){if((i=(n=t?n.toExponential(t-1):n.toExponential()).indexOf("e"))<0)return null;var i,r=n.slice(0,i);return[r.length>1?r[0]+r.slice(2):r,+n.slice(i+1)]}function A(n){return n=E(Math.abs(n)),n?n[1]:NaN}function Pn(n,t){return function(i,r){for(var e=i.length,f=[],a=0,u=n[0],c=0;e>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),f.push(i.substring(e-=u,e+u)),!((c+=u+1)>r));)u=n[a=(a+1)%n.length];return f.reverse().join(t)}}function zn(n){return function(t){return t.replace(/[0-9]/g,function(i){return n[+i]})}}var $n=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function D(n){if(!(t=$n.exec(n)))throw new Error("invalid format: "+n);var t;return new G({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]})}D.prototype=G.prototype;function G(n){this.fill=n.fill===void 0?" ":n.fill+"",this.align=n.align===void 0?">":n.align+"",this.sign=n.sign===void 0?"-":n.sign+"",this.symbol=n.symbol===void 0?"":n.symbol+"",this.zero=!!n.zero,this.width=n.width===void 0?void 0:+n.width,this.comma=!!n.comma,this.precision=n.precision===void 0?void 0:+n.precision,this.trim=!!n.trim,this.type=n.type===void 0?"":n.type+""}G.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 Fn(n){n:for(var t=n.length,i=1,r=-1,e;i<t;++i)switch(n[i]){case".":r=e=i;break;case"0":r===0&&(r=i),e=i;break;default:if(!+n[i])break n;r>0&&(r=0);break}return r>0?n.slice(0,r)+n.slice(e+1):n}var nn;function Rn(n,t){var i=E(n,t);if(!i)return n+"";var r=i[0],e=i[1],f=e-(nn=Math.max(-8,Math.min(8,Math.floor(e/3)))*3)+1,a=r.length;return f===a?r:f>a?r+new Array(f-a+1).join("0"):f>0?r.slice(0,f)+"."+r.slice(f):"0."+new Array(1-f).join("0")+E(n,Math.max(0,t+f-1))[0]}function U(n,t){var i=E(n,t);if(!i)return n+"";var r=i[0],e=i[1];return e<0?"0."+new Array(-e).join("0")+r:r.length>e+1?r.slice(0,e+1)+"."+r.slice(e+1):r+new Array(e-r.length+2).join("0")}const Y={"%":(n,t)=>(n*100).toFixed(t),b:n=>Math.round(n).toString(2),c:n=>n+"",d:jn,e:(n,t)=>n.toExponential(t),f:(n,t)=>n.toFixed(t),g:(n,t)=>n.toPrecision(t),o:n=>Math.round(n).toString(8),p:(n,t)=>U(n*100,t),r:U,s:Rn,X:n=>Math.round(n).toString(16).toUpperCase(),x:n=>Math.round(n).toString(16)};function Z(n){return n}var K=Array.prototype.map,Q=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function En(n){var t=n.grouping===void 0||n.thousands===void 0?Z:Pn(K.call(n.grouping,Number),n.thousands+""),i=n.currency===void 0?"":n.currency[0]+"",r=n.currency===void 0?"":n.currency[1]+"",e=n.decimal===void 0?".":n.decimal+"",f=n.numerals===void 0?Z:zn(K.call(n.numerals,String)),a=n.percent===void 0?"%":n.percent+"",u=n.minus===void 0?"−":n.minus+"",c=n.nan===void 0?"NaN":n.nan+"";function o(h){h=D(h);var s=h.fill,p=h.align,y=h.sign,S=h.symbol,N=h.zero,b=h.width,I=h.comma,w=h.precision,B=h.trim,g=h.type;g==="n"?(I=!0,g="g"):Y[g]||(w===void 0&&(w=12),B=!0,g="g"),(N||s==="0"&&p==="=")&&(N=!0,s="0",p="=");var en=S==="$"?i:S==="#"&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",on=S==="$"?r:/[%p]/.test(g)?a:"",O=Y[g],an=/[defgprs%]/.test(g);w=w===void 0?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function V(m){var v=en,d=on,k,X,j;if(g==="c")d=O(m)+d,m="";else{m=+m;var P=m<0||1/m<0;if(m=isNaN(m)?c:O(Math.abs(m),w),B&&(m=Fn(m)),P&&+m==0&&y!=="+"&&(P=!1),v=(P?y==="("?y:u:y==="-"||y==="("?"":y)+v,d=(g==="s"?Q[8+nn/3]:"")+d+(P&&y==="("?")":""),an){for(k=-1,X=m.length;++k<X;)if(j=m.charCodeAt(k),48>j||j>57){d=(j===46?e+m.slice(k+1):m.slice(k))+d,m=m.slice(0,k);break}}}I&&!N&&(m=t(m,1/0));var z=v.length+m.length+d.length,M=z<b?new Array(b-z+1).join(s):"";switch(I&&N&&(m=t(M+m,M.length?b-d.length:1/0),M=""),p){case"<":m=v+m+d+M;break;case"=":m=v+M+m+d;break;case"^":m=M.slice(0,z=M.length>>1)+v+m+d+M.slice(z);break;default:m=M+v+m+d;break}return f(m)}return V.toString=function(){return h+""},V}function l(h,s){var p=o((h=D(h),h.type="f",h)),y=Math.max(-8,Math.min(8,Math.floor(A(s)/3)))*3,S=Math.pow(10,-y),N=Q[8+y/3];return function(b){return p(S*b)+N}}return{format:o,formatPrefix:l}}var $,tn,rn;Dn({thousands:",",grouping:[3],currency:["$",""]});function Dn(n){return $=En(n),tn=$.format,rn=$.formatPrefix,$}function In(n){return Math.max(0,-A(Math.abs(n)))}function Tn(n,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(A(t)/3)))*3-A(Math.abs(n)))}function Ln(n,t){return n=Math.abs(n),t=Math.abs(t)-n,Math.max(0,A(t)-A(n))+1}function qn(n){return function(){return n}}function Cn(n){return+n}var W=[0,1];function x(n){return n}function q(n,t){return(t-=n=+n)?function(i){return(i-n)/t}:qn(isNaN(t)?NaN:.5)}function Gn(n,t){var i;return n>t&&(i=n,n=t,t=i),function(r){return Math.max(n,Math.min(t,r))}}function Bn(n,t,i){var r=n[0],e=n[1],f=t[0],a=t[1];return e<r?(r=q(e,r),f=i(a,f)):(r=q(r,e),f=i(f,a)),function(u){return f(r(u))}}function On(n,t,i){var r=Math.min(n.length,t.length)-1,e=new Array(r),f=new Array(r),a=-1;for(n[r]<n[0]&&(n=n.slice().reverse(),t=t.slice().reverse());++a<r;)e[a]=q(n[a],n[a+1]),f[a]=i(t[a],t[a+1]);return function(u){var c=dn(n,u,1,r)-1;return f[c](e[c](u))}}function Vn(n,t){return t.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown())}function Xn(){var n=W,t=W,i=C,r,e,f,a=x,u,c,o;function l(){var s=Math.min(n.length,t.length);return a!==x&&(a=Gn(n[0],n[s-1])),u=s>2?On:Bn,c=o=null,h}function h(s){return s==null||isNaN(s=+s)?f:(c||(c=u(n.map(r),t,i)))(r(a(s)))}return h.invert=function(s){return a(e((o||(o=u(t,n.map(r),T)))(s)))},h.domain=function(s){return arguments.length?(n=Array.from(s,Cn),l()):n.slice()},h.range=function(s){return arguments.length?(t=Array.from(s),l()):t.slice()},h.rangeRound=function(s){return t=Array.from(s),i=bn,l()},h.clamp=function(s){return arguments.length?(a=s?!0:x,l()):a!==x},h.interpolate=function(s){return arguments.length?(i=s,l()):i},h.unknown=function(s){return arguments.length?(f=s,h):f},function(s,p){return r=s,e=p,l()}}function Hn(){return Xn()(x,x)}function Jn(n,t,i,r){var e=vn(n,t,i),f;switch(r=D(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(n),Math.abs(t));return r.precision==null&&!isNaN(f=Tn(e,a))&&(r.precision=f),rn(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(f=Ln(e,Math.max(Math.abs(n),Math.abs(t))))&&(r.precision=f-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(f=In(e))&&(r.precision=f-(r.type==="%")*2);break}}return tn(r)}function Un(n){var t=n.domain;return n.ticks=function(i){var r=t();return wn(r[0],r[r.length-1],i??10)},n.tickFormat=function(i,r){var e=t();return Jn(e[0],e[e.length-1],i??10,r)},n.nice=function(i){i==null&&(i=10);var r=t(),e=0,f=r.length-1,a=r[e],u=r[f],c,o,l=10;for(u<a&&(o=a,a=u,u=o,o=e,e=f,f=o);l-- >0;){if(o=L(a,u,i),o===c)return r[e]=a,r[f]=u,t(r);if(o>0)a=Math.floor(a/o)*o,u=Math.ceil(u/o)*o;else if(o<0)a=Math.ceil(a*o)/o,u=Math.floor(u*o)/o;else break;c=o}return n},n}function Yn(){var n=Hn();return n.copy=function(){return Vn(n,Yn())},cn.apply(n,arguments),Un(n)}export{Vn as a,_ as b,Hn as c,Yn as l,vn as t};
import{a as h}from"./array-b7dcf730-BKyUJesY.js";import{w as v,c as o}from"./path-39bad7e2-CbwjOpE9.js";import{q as d}from"./slidev/5-BKiUV7YW.js";function w(t){return t[0]}function b(t){return t[1]}function L(t,u){var s=o(!0),f=null,l=d,r=null,m=v(e);t=typeof t=="function"?t:t===void 0?w:o(t),u=typeof u=="function"?u:u===void 0?b:o(u);function e(n){var i,g=(n=h(n)).length,p,c=!1,a;for(f==null&&(r=l(a=m())),i=0;i<=g;++i)!(i<g&&s(p=n[i],i,n))===c&&((c=!c)?r.lineStart():r.lineEnd()),c&&r.point(+t(p,i,n),+u(p,i,n));if(a)return r=null,a+""||null}return e.x=function(n){return arguments.length?(t=typeof n=="function"?n:o(+n),e):t},e.y=function(n){return arguments.length?(u=typeof n=="function"?n:o(+n),e):u},e.defined=function(n){return arguments.length?(s=typeof n=="function"?n:o(!!n),e):s},e.curve=function(n){return arguments.length?(l=n,f!=null&&(r=l(f)),e):l},e.context=function(n){return arguments.length?(n==null?f=r=null:r=l(f=n),e):f},e}export{L as l};
import{b as xn,a as P,f as s,G as x,c as zn,d as L,e as En,g as kn,t as Un,i as g,h as w,v as y,r as V,j as Hn,k as yn,l as Nn,m as Zn,n as M,o as F,p as jn,q as Jn,s as Kn}from"./graph-af3d5df6-DtpoS02a.js";import{Z as Ln,av as $,an as _n,at as Qn,aw as ne,ax as ee,a9 as j,ay as H,$ as Cn,a7 as J,aq as re,az as te,aA as ie,ab as A,a6 as ae,ai as In,aj as oe,_ as ue}from"./slidev/5-BKiUV7YW.js";var de=/\s/;function fe(n){for(var e=n.length;e--&&de.test(n.charAt(e)););return e}var se=/^\s+/;function ce(n){return n&&n.slice(0,fe(n)+1).replace(se,"")}var un=NaN,he=/^[-+]0x[0-9a-f]+$/i,ve=/^0b[01]+$/i,le=/^0o[0-7]+$/i,pe=parseInt;function we(n){if(typeof n=="number")return n;if(F(n))return un;if(A(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=A(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=ce(n);var r=ve.test(n);return r||le.test(n)?pe(n.slice(2),r?2:8):he.test(n)?un:+n}var dn=1/0,me=17976931348623157e292;function S(n){if(!n)return n===0?n:0;if(n=we(n),n===dn||n===-dn){var e=n<0?-1:1;return e*me}return n===n?n:0}function be(n){var e=S(n),r=e%1;return e===e?r?e-r:e:0}function _(n){var e=n==null?0:n.length;return e?xn(n,1):[]}function ge(n){return ne(ee(n,void 0,_),n+"")}var xe=1,Ee=4;function ke(n){return Hn(n,xe|Ee)}var ye=function(){return te.Date.now()};const fn=ye;var Rn=Object.prototype,Ne=Rn.hasOwnProperty,Le=Ln(function(n,e){n=Object(n);var r=-1,t=e.length,i=t>2?e[2]:void 0;for(i&&$(e[0],e[1],i)&&(t=1);++r<t;)for(var o=e[r],a=_n(o),u=-1,d=a.length;++u<d;){var f=a[u],c=n[f];(c===void 0||Qn(c,Rn[f])&&!Ne.call(n,f))&&(n[f]=o[f])}return n});const _e=Le;function B(n){var e=n==null?0:n.length;return e?n[e-1]:void 0}function Ce(n){return function(e,r,t){var i=Object(e);if(!Cn(e)){var o=L(r);e=Jn(e),r=function(u){return o(i[u],u,i)}}var a=n(e,r,t);return a>-1?i[o?e[a]:a]:void 0}}var Ie=Math.max;function Re(n,e,r){var t=n==null?0:n.length;if(!t)return-1;var i=r==null?0:be(r);return i<0&&(i=Ie(t+i,0)),Kn(n,L(e),i)}var Te=Ce(Re);const K=Te;function Tn(n,e){var r=-1,t=Cn(n)?Array(n.length):[];return zn(n,function(i,o,a){t[++r]=e(i,o,a)}),t}function m(n,e){var r=J(n)?P:Tn;return r(n,L(e))}function Me(n,e){return n==null?n:oe(n,yn(e),_n)}function Oe(n,e){return n&&En(n,yn(e))}function Pe(n,e){return n>e}function Mn(n,e){return n<e}function Y(n,e){var r={};return e=L(e),En(n,function(t,i,o){ie(r,i,e(t,i,o))}),r}function Q(n,e,r){for(var t=-1,i=n.length;++t<i;){var o=n[t],a=e(o);if(a!=null&&(u===void 0?a===a&&!F(a):r(a,u)))var u=a,d=o}return d}function E(n){return n&&n.length?Q(n,j,Pe):void 0}function R(n){return n&&n.length?Q(n,j,Mn):void 0}function nn(n,e){return n&&n.length?Q(n,L(e),Mn):void 0}function Se(n,e,r,t){if(!A(n))return n;e=Nn(e,n);for(var i=-1,o=e.length,a=o-1,u=n;u!=null&&++i<o;){var d=jn(e[i]),f=r;if(d==="__proto__"||d==="constructor"||d==="prototype")return n;if(i!=a){var c=u[d];f=t?t(c,d,u):void 0,f===void 0&&(f=A(c)?c:ae(e[i+1])?[]:{})}In(u,d,f),u=u[d]}return n}function Fe(n,e,r){for(var t=-1,i=e.length,o={};++t<i;){var a=e[t],u=kn(n,a);r(u,a)&&Se(o,Nn(a,n),u)}return o}function $e(n,e){var r=n.length;for(n.sort(e);r--;)n[r]=n[r].value;return n}function Ae(n,e){if(n!==e){var r=n!==void 0,t=n===null,i=n===n,o=F(n),a=e!==void 0,u=e===null,d=e===e,f=F(e);if(!u&&!f&&!o&&n>e||o&&a&&d&&!u&&!f||t&&a&&d||!r&&d||!i)return 1;if(!t&&!o&&!f&&n<e||f&&r&&i&&!t&&!o||u&&r&&i||!a&&i||!d)return-1}return 0}function Be(n,e,r){for(var t=-1,i=n.criteria,o=e.criteria,a=i.length,u=r.length;++t<a;){var d=Ae(i[t],o[t]);if(d){if(t>=u)return d;var f=r[t];return d*(f=="desc"?-1:1)}}return n.index-e.index}function Ge(n,e,r){e.length?e=P(e,function(o){return J(o)?function(a){return kn(a,o.length===1?o[0]:o)}:o}):e=[j];var t=-1;e=P(e,re(L));var i=Tn(n,function(o,a,u){var d=P(e,function(f){return f(o)});return{criteria:d,index:++t,value:o}});return $e(i,function(o,a){return Be(o,a,r)})}function Ve(n,e){return Fe(n,e,function(r,t){return Zn(n,t)})}var Ye=ge(function(n,e){return n==null?{}:Ve(n,e)});const G=Ye;var De=Math.ceil,qe=Math.max;function We(n,e,r,t){for(var i=-1,o=qe(De((e-n)/(r||1)),0),a=Array(o);o--;)a[t?o:++i]=n,n+=r;return a}function Xe(n){return function(e,r,t){return t&&typeof t!="number"&&$(e,r,t)&&(r=t=void 0),e=S(e),r===void 0?(r=e,e=0):r=S(r),t=t===void 0?e<r?1:-1:S(t),We(e,r,t,n)}}var ze=Xe();const N=ze;var Ue=Ln(function(n,e){if(n==null)return[];var r=e.length;return r>1&&$(n,e[0],e[1])?e=[]:r>2&&$(e[0],e[1],e[2])&&(e=[e[0]]),Ge(n,xn(e,1),[])});const O=Ue;var He=0;function en(n){var e=++He;return Un(n)+e}function Ze(n,e,r){for(var t=-1,i=n.length,o=e.length,a={};++t<i;){var u=t<o?e[t]:void 0;r(a,n[t],u)}return a}function je(n,e){return Ze(n||[],e||[],In)}class Je{constructor(){var e={};e._next=e._prev=e,this._sentinel=e}dequeue(){var e=this._sentinel,r=e._prev;if(r!==e)return sn(r),r}enqueue(e){var r=this._sentinel;e._prev&&e._next&&sn(e),e._next=r._next,r._next._prev=e,r._next=e,e._prev=r}toString(){for(var e=[],r=this._sentinel,t=r._prev;t!==r;)e.push(JSON.stringify(t,Ke)),t=t._prev;return"["+e.join(", ")+"]"}}function sn(n){n._prev._next=n._next,n._next._prev=n._prev,delete n._next,delete n._prev}function Ke(n,e){if(n!=="_next"&&n!=="_prev")return e}var Qe=ue(1);function nr(n,e){if(n.nodeCount()<=1)return[];var r=rr(n,e||Qe),t=er(r.graph,r.buckets,r.zeroIdx);return _(m(t,function(i){return n.outEdges(i.v,i.w)}))}function er(n,e,r){for(var t=[],i=e[e.length-1],o=e[0],a;n.nodeCount();){for(;a=o.dequeue();)q(n,e,r,a);for(;a=i.dequeue();)q(n,e,r,a);if(n.nodeCount()){for(var u=e.length-2;u>0;--u)if(a=e[u].dequeue(),a){t=t.concat(q(n,e,r,a,!0));break}}}return t}function q(n,e,r,t,i){var o=i?[]:void 0;return s(n.inEdges(t.v),function(a){var u=n.edge(a),d=n.node(a.v);i&&o.push({v:a.v,w:a.w}),d.out-=u,Z(e,r,d)}),s(n.outEdges(t.v),function(a){var u=n.edge(a),d=a.w,f=n.node(d);f.in-=u,Z(e,r,f)}),n.removeNode(t.v),o}function rr(n,e){var r=new x,t=0,i=0;s(n.nodes(),function(u){r.setNode(u,{v:u,in:0,out:0})}),s(n.edges(),function(u){var d=r.edge(u.v,u.w)||0,f=e(u),c=d+f;r.setEdge(u.v,u.w,c),i=Math.max(i,r.node(u.v).out+=f),t=Math.max(t,r.node(u.w).in+=f)});var o=N(i+t+3).map(function(){return new Je}),a=t+1;return s(r.nodes(),function(u){Z(o,a,r.node(u))}),{graph:r,buckets:o,zeroIdx:a}}function Z(n,e,r){r.out?r.in?n[r.out-r.in+e].enqueue(r):n[n.length-1].enqueue(r):n[0].enqueue(r)}function tr(n){var e=n.graph().acyclicer==="greedy"?nr(n,r(n)):ir(n);s(e,function(t){var i=n.edge(t);n.removeEdge(t),i.forwardName=t.name,i.reversed=!0,n.setEdge(t.w,t.v,i,en("rev"))});function r(t){return function(i){return t.edge(i).weight}}}function ir(n){var e=[],r={},t={};function i(o){w(t,o)||(t[o]=!0,r[o]=!0,s(n.outEdges(o),function(a){w(r,a.w)?e.push(a):i(a.w)}),delete r[o])}return s(n.nodes(),i),e}function ar(n){s(n.edges(),function(e){var r=n.edge(e);if(r.reversed){n.removeEdge(e);var t=r.forwardName;delete r.reversed,delete r.forwardName,n.setEdge(e.w,e.v,r,t)}})}function C(n,e,r,t){var i;do i=en(t);while(n.hasNode(i));return r.dummy=e,n.setNode(i,r),i}function or(n){var e=new x().setGraph(n.graph());return s(n.nodes(),function(r){e.setNode(r,n.node(r))}),s(n.edges(),function(r){var t=e.edge(r.v,r.w)||{weight:0,minlen:1},i=n.edge(r);e.setEdge(r.v,r.w,{weight:t.weight+i.weight,minlen:Math.max(t.minlen,i.minlen)})}),e}function On(n){var e=new x({multigraph:n.isMultigraph()}).setGraph(n.graph());return s(n.nodes(),function(r){n.children(r).length||e.setNode(r,n.node(r))}),s(n.edges(),function(r){e.setEdge(r,n.edge(r))}),e}function cn(n,e){var r=n.x,t=n.y,i=e.x-r,o=e.y-t,a=n.width/2,u=n.height/2;if(!i&&!o)throw new Error("Not possible to find intersection inside of the rectangle");var d,f;return Math.abs(o)*a>Math.abs(i)*u?(o<0&&(u=-u),d=u*i/o,f=u):(i<0&&(a=-a),d=a,f=a*o/i),{x:r+d,y:t+f}}function D(n){var e=m(N(Pn(n)+1),function(){return[]});return s(n.nodes(),function(r){var t=n.node(r),i=t.rank;g(i)||(e[i][t.order]=r)}),e}function ur(n){var e=R(m(n.nodes(),function(r){return n.node(r).rank}));s(n.nodes(),function(r){var t=n.node(r);w(t,"rank")&&(t.rank-=e)})}function dr(n){var e=R(m(n.nodes(),function(o){return n.node(o).rank})),r=[];s(n.nodes(),function(o){var a=n.node(o).rank-e;r[a]||(r[a]=[]),r[a].push(o)});var t=0,i=n.graph().nodeRankFactor;s(r,function(o,a){g(o)&&a%i!==0?--t:t&&s(o,function(u){n.node(u).rank+=t})})}function hn(n,e,r,t){var i={width:0,height:0};return arguments.length>=4&&(i.rank=r,i.order=t),C(n,"border",i,e)}function Pn(n){return E(m(n.nodes(),function(e){var r=n.node(e).rank;if(!g(r))return r}))}function fr(n,e){var r={lhs:[],rhs:[]};return s(n,function(t){e(t)?r.lhs.push(t):r.rhs.push(t)}),r}function sr(n,e){var r=fn();try{return e()}finally{console.log(n+" time: "+(fn()-r)+"ms")}}function cr(n,e){return e()}function hr(n){function e(r){var t=n.children(r),i=n.node(r);if(t.length&&s(t,e),w(i,"minRank")){i.borderLeft=[],i.borderRight=[];for(var o=i.minRank,a=i.maxRank+1;o<a;++o)vn(n,"borderLeft","_bl",r,i,o),vn(n,"borderRight","_br",r,i,o)}}s(n.children(),e)}function vn(n,e,r,t,i,o){var a={width:0,height:0,rank:o,borderType:e},u=i[e][o-1],d=C(n,"border",a,r);i[e][o]=d,n.setParent(d,t),u&&n.setEdge(u,d,{weight:1})}function vr(n){var e=n.graph().rankdir.toLowerCase();(e==="lr"||e==="rl")&&Sn(n)}function lr(n){var e=n.graph().rankdir.toLowerCase();(e==="bt"||e==="rl")&&pr(n),(e==="lr"||e==="rl")&&(wr(n),Sn(n))}function Sn(n){s(n.nodes(),function(e){ln(n.node(e))}),s(n.edges(),function(e){ln(n.edge(e))})}function ln(n){var e=n.width;n.width=n.height,n.height=e}function pr(n){s(n.nodes(),function(e){W(n.node(e))}),s(n.edges(),function(e){var r=n.edge(e);s(r.points,W),w(r,"y")&&W(r)})}function W(n){n.y=-n.y}function wr(n){s(n.nodes(),function(e){X(n.node(e))}),s(n.edges(),function(e){var r=n.edge(e);s(r.points,X),w(r,"x")&&X(r)})}function X(n){var e=n.x;n.x=n.y,n.y=e}function mr(n){n.graph().dummyChains=[],s(n.edges(),function(e){br(n,e)})}function br(n,e){var r=e.v,t=n.node(r).rank,i=e.w,o=n.node(i).rank,a=e.name,u=n.edge(e),d=u.labelRank;if(o!==t+1){n.removeEdge(e);var f,c,h;for(h=0,++t;t<o;++h,++t)u.points=[],c={width:0,height:0,edgeLabel:u,edgeObj:e,rank:t},f=C(n,"edge",c,"_d"),t===d&&(c.width=u.width,c.height=u.height,c.dummy="edge-label",c.labelpos=u.labelpos),n.setEdge(r,f,{weight:u.weight},a),h===0&&n.graph().dummyChains.push(f),r=f;n.setEdge(r,i,{weight:u.weight},a)}}function gr(n){s(n.graph().dummyChains,function(e){var r=n.node(e),t=r.edgeLabel,i;for(n.setEdge(r.edgeObj,t);r.dummy;)i=n.successors(e)[0],n.removeNode(e),t.points.push({x:r.x,y:r.y}),r.dummy==="edge-label"&&(t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height),e=i,r=n.node(e)})}function rn(n){var e={};function r(t){var i=n.node(t);if(w(e,t))return i.rank;e[t]=!0;var o=R(m(n.outEdges(t),function(a){return r(a.w)-n.edge(a).minlen}));return(o===Number.POSITIVE_INFINITY||o===void 0||o===null)&&(o=0),i.rank=o}s(n.sources(),r)}function T(n,e){return n.node(e.w).rank-n.node(e.v).rank-n.edge(e).minlen}function Fn(n){var e=new x({directed:!1}),r=n.nodes()[0],t=n.nodeCount();e.setNode(r,{});for(var i,o;xr(e,n)<t;)i=Er(e,n),o=e.hasNode(i.v)?T(n,i):-T(n,i),kr(e,n,o);return e}function xr(n,e){function r(t){s(e.nodeEdges(t),function(i){var o=i.v,a=t===o?i.w:o;!n.hasNode(a)&&!T(e,i)&&(n.setNode(a,{}),n.setEdge(t,a,{}),r(a))})}return s(n.nodes(),r),n.nodeCount()}function Er(n,e){return nn(e.edges(),function(r){if(n.hasNode(r.v)!==n.hasNode(r.w))return T(e,r)})}function kr(n,e,r){s(n.nodes(),function(t){e.node(t).rank+=r})}function $n(n,e,r){J(e)||(e=[e]);var t=(n.isDirected()?n.successors:n.neighbors).bind(n),i=[],o={};return s(e,function(a){if(!n.hasNode(a))throw new Error("Graph does not have node: "+a);An(n,a,r==="post",o,t,i)}),i}function An(n,e,r,t,i,o){w(t,e)||(t[e]=!0,r||o.push(e),s(i(e),function(a){An(n,a,r,t,i,o)}),r&&o.push(e))}function yr(n,e){return $n(n,e,"post")}function Nr(n,e){return $n(n,e,"pre")}k.initLowLimValues=an;k.initCutValues=tn;k.calcCutValue=Bn;k.leaveEdge=Vn;k.enterEdge=Yn;k.exchangeEdges=Dn;function k(n){n=or(n),rn(n);var e=Fn(n);an(e),tn(e,n);for(var r,t;r=Vn(e);)t=Yn(e,n,r),Dn(e,n,r,t)}function tn(n,e){var r=yr(n,n.nodes());r=r.slice(0,r.length-1),s(r,function(t){Lr(n,e,t)})}function Lr(n,e,r){var t=n.node(r),i=t.parent;n.edge(r,i).cutvalue=Bn(n,e,r)}function Bn(n,e,r){var t=n.node(r),i=t.parent,o=!0,a=e.edge(r,i),u=0;return a||(o=!1,a=e.edge(i,r)),u=a.weight,s(e.nodeEdges(r),function(d){var f=d.v===r,c=f?d.w:d.v;if(c!==i){var h=f===o,v=e.edge(d).weight;if(u+=h?v:-v,Cr(n,r,c)){var l=n.edge(r,c).cutvalue;u+=h?-l:l}}}),u}function an(n,e){arguments.length<2&&(e=n.nodes()[0]),Gn(n,{},1,e)}function Gn(n,e,r,t,i){var o=r,a=n.node(t);return e[t]=!0,s(n.neighbors(t),function(u){w(e,u)||(r=Gn(n,e,r,u,t))}),a.low=o,a.lim=r++,i?a.parent=i:delete a.parent,r}function Vn(n){return K(n.edges(),function(e){return n.edge(e).cutvalue<0})}function Yn(n,e,r){var t=r.v,i=r.w;e.hasEdge(t,i)||(t=r.w,i=r.v);var o=n.node(t),a=n.node(i),u=o,d=!1;o.lim>a.lim&&(u=a,d=!0);var f=M(e.edges(),function(c){return d===pn(n,n.node(c.v),u)&&d!==pn(n,n.node(c.w),u)});return nn(f,function(c){return T(e,c)})}function Dn(n,e,r,t){var i=r.v,o=r.w;n.removeEdge(i,o),n.setEdge(t.v,t.w,{}),an(n),tn(n,e),_r(n,e)}function _r(n,e){var r=K(n.nodes(),function(i){return!e.node(i).parent}),t=Nr(n,r);t=t.slice(1),s(t,function(i){var o=n.node(i).parent,a=e.edge(i,o),u=!1;a||(a=e.edge(o,i),u=!0),e.node(i).rank=e.node(o).rank+(u?a.minlen:-a.minlen)})}function Cr(n,e,r){return n.hasEdge(e,r)}function pn(n,e,r){return r.low<=e.lim&&e.lim<=r.lim}function Ir(n){switch(n.graph().ranker){case"network-simplex":wn(n);break;case"tight-tree":Tr(n);break;case"longest-path":Rr(n);break;default:wn(n)}}var Rr=rn;function Tr(n){rn(n),Fn(n)}function wn(n){k(n)}function Mr(n){var e=C(n,"root",{},"_root"),r=Or(n),t=E(y(r))-1,i=2*t+1;n.graph().nestingRoot=e,s(n.edges(),function(a){n.edge(a).minlen*=i});var o=Pr(n)+1;s(n.children(),function(a){qn(n,e,i,o,t,r,a)}),n.graph().nodeRankFactor=i}function qn(n,e,r,t,i,o,a){var u=n.children(a);if(!u.length){a!==e&&n.setEdge(e,a,{weight:0,minlen:r});return}var d=hn(n,"_bt"),f=hn(n,"_bb"),c=n.node(a);n.setParent(d,a),c.borderTop=d,n.setParent(f,a),c.borderBottom=f,s(u,function(h){qn(n,e,r,t,i,o,h);var v=n.node(h),l=v.borderTop?v.borderTop:h,p=v.borderBottom?v.borderBottom:h,b=v.borderTop?t:2*t,I=l!==p?1:i-o[a]+1;n.setEdge(d,l,{weight:b,minlen:I,nestingEdge:!0}),n.setEdge(p,f,{weight:b,minlen:I,nestingEdge:!0})}),n.parent(a)||n.setEdge(e,d,{weight:0,minlen:i+o[a]})}function Or(n){var e={};function r(t,i){var o=n.children(t);o&&o.length&&s(o,function(a){r(a,i+1)}),e[t]=i}return s(n.children(),function(t){r(t,1)}),e}function Pr(n){return V(n.edges(),function(e,r){return e+n.edge(r).weight},0)}function Sr(n){var e=n.graph();n.removeNode(e.nestingRoot),delete e.nestingRoot,s(n.edges(),function(r){var t=n.edge(r);t.nestingEdge&&n.removeEdge(r)})}function Fr(n,e,r){var t={},i;s(r,function(o){for(var a=n.parent(o),u,d;a;){if(u=n.parent(a),u?(d=t[u],t[u]=a):(d=i,i=a),d&&d!==a){e.setEdge(d,a);return}a=u}})}function $r(n,e,r){var t=Ar(n),i=new x({compound:!0}).setGraph({root:t}).setDefaultNodeLabel(function(o){return n.node(o)});return s(n.nodes(),function(o){var a=n.node(o),u=n.parent(o);(a.rank===e||a.minRank<=e&&e<=a.maxRank)&&(i.setNode(o),i.setParent(o,u||t),s(n[r](o),function(d){var f=d.v===o?d.w:d.v,c=i.edge(f,o),h=g(c)?0:c.weight;i.setEdge(f,o,{weight:n.edge(d).weight+h})}),w(a,"minRank")&&i.setNode(o,{borderLeft:a.borderLeft[e],borderRight:a.borderRight[e]}))}),i}function Ar(n){for(var e;n.hasNode(e=en("_root")););return e}function Br(n,e){for(var r=0,t=1;t<e.length;++t)r+=Gr(n,e[t-1],e[t]);return r}function Gr(n,e,r){for(var t=je(r,m(r,function(f,c){return c})),i=_(m(e,function(f){return O(m(n.outEdges(f),function(c){return{pos:t[c.w],weight:n.edge(c).weight}}),"pos")})),o=1;o<r.length;)o<<=1;var a=2*o-1;o-=1;var u=m(new Array(a),function(){return 0}),d=0;return s(i.forEach(function(f){var c=f.pos+o;u[c]+=f.weight;for(var h=0;c>0;)c%2&&(h+=u[c+1]),c=c-1>>1,u[c]+=f.weight;d+=f.weight*h})),d}function Vr(n){var e={},r=M(n.nodes(),function(u){return!n.children(u).length}),t=E(m(r,function(u){return n.node(u).rank})),i=m(N(t+1),function(){return[]});function o(u){if(!w(e,u)){e[u]=!0;var d=n.node(u);i[d.rank].push(u),s(n.successors(u),o)}}var a=O(r,function(u){return n.node(u).rank});return s(a,o),i}function Yr(n,e){return m(e,function(r){var t=n.inEdges(r);if(t.length){var i=V(t,function(o,a){var u=n.edge(a),d=n.node(a.v);return{sum:o.sum+u.weight*d.order,weight:o.weight+u.weight}},{sum:0,weight:0});return{v:r,barycenter:i.sum/i.weight,weight:i.weight}}else return{v:r}})}function Dr(n,e){var r={};s(n,function(i,o){var a=r[i.v]={indegree:0,in:[],out:[],vs:[i.v],i:o};g(i.barycenter)||(a.barycenter=i.barycenter,a.weight=i.weight)}),s(e.edges(),function(i){var o=r[i.v],a=r[i.w];!g(o)&&!g(a)&&(a.indegree++,o.out.push(r[i.w]))});var t=M(r,function(i){return!i.indegree});return qr(t)}function qr(n){var e=[];function r(o){return function(a){a.merged||(g(a.barycenter)||g(o.barycenter)||a.barycenter>=o.barycenter)&&Wr(o,a)}}function t(o){return function(a){a.in.push(o),--a.indegree===0&&n.push(a)}}for(;n.length;){var i=n.pop();e.push(i),s(i.in.reverse(),r(i)),s(i.out,t(i))}return m(M(e,function(o){return!o.merged}),function(o){return G(o,["vs","i","barycenter","weight"])})}function Wr(n,e){var r=0,t=0;n.weight&&(r+=n.barycenter*n.weight,t+=n.weight),e.weight&&(r+=e.barycenter*e.weight,t+=e.weight),n.vs=e.vs.concat(n.vs),n.barycenter=r/t,n.weight=t,n.i=Math.min(e.i,n.i),e.merged=!0}function Xr(n,e){var r=fr(n,function(c){return w(c,"barycenter")}),t=r.lhs,i=O(r.rhs,function(c){return-c.i}),o=[],a=0,u=0,d=0;t.sort(zr(!!e)),d=mn(o,i,d),s(t,function(c){d+=c.vs.length,o.push(c.vs),a+=c.barycenter*c.weight,u+=c.weight,d=mn(o,i,d)});var f={vs:_(o)};return u&&(f.barycenter=a/u,f.weight=u),f}function mn(n,e,r){for(var t;e.length&&(t=B(e)).i<=r;)e.pop(),n.push(t.vs),r++;return r}function zr(n){return function(e,r){return e.barycenter<r.barycenter?-1:e.barycenter>r.barycenter?1:n?r.i-e.i:e.i-r.i}}function Wn(n,e,r,t){var i=n.children(e),o=n.node(e),a=o?o.borderLeft:void 0,u=o?o.borderRight:void 0,d={};a&&(i=M(i,function(p){return p!==a&&p!==u}));var f=Yr(n,i);s(f,function(p){if(n.children(p.v).length){var b=Wn(n,p.v,r,t);d[p.v]=b,w(b,"barycenter")&&Hr(p,b)}});var c=Dr(f,r);Ur(c,d);var h=Xr(c,t);if(a&&(h.vs=_([a,h.vs,u]),n.predecessors(a).length)){var v=n.node(n.predecessors(a)[0]),l=n.node(n.predecessors(u)[0]);w(h,"barycenter")||(h.barycenter=0,h.weight=0),h.barycenter=(h.barycenter*h.weight+v.order+l.order)/(h.weight+2),h.weight+=2}return h}function Ur(n,e){s(n,function(r){r.vs=_(r.vs.map(function(t){return e[t]?e[t].vs:t}))})}function Hr(n,e){g(n.barycenter)?(n.barycenter=e.barycenter,n.weight=e.weight):(n.barycenter=(n.barycenter*n.weight+e.barycenter*e.weight)/(n.weight+e.weight),n.weight+=e.weight)}function Zr(n){var e=Pn(n),r=bn(n,N(1,e+1),"inEdges"),t=bn(n,N(e-1,-1,-1),"outEdges"),i=Vr(n);gn(n,i);for(var o=Number.POSITIVE_INFINITY,a,u=0,d=0;d<4;++u,++d){jr(u%2?r:t,u%4>=2),i=D(n);var f=Br(n,i);f<o&&(d=0,a=ke(i),o=f)}gn(n,a)}function bn(n,e,r){return m(e,function(t){return $r(n,t,r)})}function jr(n,e){var r=new x;s(n,function(t){var i=t.graph().root,o=Wn(t,i,r,e);s(o.vs,function(a,u){t.node(a).order=u}),Fr(t,r,o.vs)})}function gn(n,e){s(e,function(r){s(r,function(t,i){n.node(t).order=i})})}function Jr(n){var e=Qr(n);s(n.graph().dummyChains,function(r){for(var t=n.node(r),i=t.edgeObj,o=Kr(n,e,i.v,i.w),a=o.path,u=o.lca,d=0,f=a[d],c=!0;r!==i.w;){if(t=n.node(r),c){for(;(f=a[d])!==u&&n.node(f).maxRank<t.rank;)d++;f===u&&(c=!1)}if(!c){for(;d<a.length-1&&n.node(f=a[d+1]).minRank<=t.rank;)d++;f=a[d]}n.setParent(r,f),r=n.successors(r)[0]}})}function Kr(n,e,r,t){var i=[],o=[],a=Math.min(e[r].low,e[t].low),u=Math.max(e[r].lim,e[t].lim),d,f;d=r;do d=n.parent(d),i.push(d);while(d&&(e[d].low>a||u>e[d].lim));for(f=d,d=t;(d=n.parent(d))!==f;)o.push(d);return{path:i.concat(o.reverse()),lca:f}}function Qr(n){var e={},r=0;function t(i){var o=r;s(n.children(i),t),e[i]={low:o,lim:r++}}return s(n.children(),t),e}function nt(n,e){var r={};function t(i,o){var a=0,u=0,d=i.length,f=B(o);return s(o,function(c,h){var v=rt(n,c),l=v?n.node(v).order:d;(v||c===f)&&(s(o.slice(u,h+1),function(p){s(n.predecessors(p),function(b){var I=n.node(b),on=I.order;(on<a||l<on)&&!(I.dummy&&n.node(p).dummy)&&Xn(r,b,p)})}),u=h+1,a=l)}),o}return V(e,t),r}function et(n,e){var r={};function t(o,a,u,d,f){var c;s(N(a,u),function(h){c=o[h],n.node(c).dummy&&s(n.predecessors(c),function(v){var l=n.node(v);l.dummy&&(l.order<d||l.order>f)&&Xn(r,v,c)})})}function i(o,a){var u=-1,d,f=0;return s(a,function(c,h){if(n.node(c).dummy==="border"){var v=n.predecessors(c);v.length&&(d=n.node(v[0]).order,t(a,f,h,u,d),f=h,u=d)}t(a,f,a.length,d,o.length)}),a}return V(e,i),r}function rt(n,e){if(n.node(e).dummy)return K(n.predecessors(e),function(r){return n.node(r).dummy})}function Xn(n,e,r){if(e>r){var t=e;e=r,r=t}var i=n[e];i||(n[e]=i={}),i[r]=!0}function tt(n,e,r){if(e>r){var t=e;e=r,r=t}return w(n[e],r)}function it(n,e,r,t){var i={},o={},a={};return s(e,function(u){s(u,function(d,f){i[d]=d,o[d]=d,a[d]=f})}),s(e,function(u){var d=-1;s(u,function(f){var c=t(f);if(c.length){c=O(c,function(b){return a[b]});for(var h=(c.length-1)/2,v=Math.floor(h),l=Math.ceil(h);v<=l;++v){var p=c[v];o[f]===f&&d<a[p]&&!tt(r,f,p)&&(o[p]=f,o[f]=i[f]=i[p],d=a[p])}}})}),{root:i,align:o}}function at(n,e,r,t,i){var o={},a=ot(n,e,r,i),u=i?"borderLeft":"borderRight";function d(h,v){for(var l=a.nodes(),p=l.pop(),b={};p;)b[p]?h(p):(b[p]=!0,l.push(p),l=l.concat(v(p))),p=l.pop()}function f(h){o[h]=a.inEdges(h).reduce(function(v,l){return Math.max(v,o[l.v]+a.edge(l))},0)}function c(h){var v=a.outEdges(h).reduce(function(p,b){return Math.min(p,o[b.w]-a.edge(b))},Number.POSITIVE_INFINITY),l=n.node(h);v!==Number.POSITIVE_INFINITY&&l.borderType!==u&&(o[h]=Math.max(o[h],v))}return d(f,a.predecessors.bind(a)),d(c,a.successors.bind(a)),s(t,function(h){o[h]=o[r[h]]}),o}function ot(n,e,r,t){var i=new x,o=n.graph(),a=ct(o.nodesep,o.edgesep,t);return s(e,function(u){var d;s(u,function(f){var c=r[f];if(i.setNode(c),d){var h=r[d],v=i.edge(h,c);i.setEdge(h,c,Math.max(a(n,f,d),v||0))}d=f})}),i}function ut(n,e){return nn(y(e),function(r){var t=Number.NEGATIVE_INFINITY,i=Number.POSITIVE_INFINITY;return Me(r,function(o,a){var u=ht(n,a)/2;t=Math.max(o+u,t),i=Math.min(o-u,i)}),t-i})}function dt(n,e){var r=y(e),t=R(r),i=E(r);s(["u","d"],function(o){s(["l","r"],function(a){var u=o+a,d=n[u],f;if(d!==e){var c=y(d);f=a==="l"?t-R(c):i-E(c),f&&(n[u]=Y(d,function(h){return h+f}))}})})}function ft(n,e){return Y(n.ul,function(r,t){if(e)return n[e.toLowerCase()][t];var i=O(m(n,t));return(i[1]+i[2])/2})}function st(n){var e=D(n),r=H(nt(n,e),et(n,e)),t={},i;s(["u","d"],function(a){i=a==="u"?e:y(e).reverse(),s(["l","r"],function(u){u==="r"&&(i=m(i,function(h){return y(h).reverse()}));var d=(a==="u"?n.predecessors:n.successors).bind(n),f=it(n,i,r,d),c=at(n,i,f.root,f.align,u==="r");u==="r"&&(c=Y(c,function(h){return-h})),t[a+u]=c})});var o=ut(n,t);return dt(t,o),ft(t,n.graph().align)}function ct(n,e,r){return function(t,i,o){var a=t.node(i),u=t.node(o),d=0,f;if(d+=a.width/2,w(a,"labelpos"))switch(a.labelpos.toLowerCase()){case"l":f=-a.width/2;break;case"r":f=a.width/2;break}if(f&&(d+=r?f:-f),f=0,d+=(a.dummy?e:n)/2,d+=(u.dummy?e:n)/2,d+=u.width/2,w(u,"labelpos"))switch(u.labelpos.toLowerCase()){case"l":f=u.width/2;break;case"r":f=-u.width/2;break}return f&&(d+=r?f:-f),f=0,d}}function ht(n,e){return n.node(e).width}function vt(n){n=On(n),lt(n),Oe(st(n),function(e,r){n.node(r).x=e})}function lt(n){var e=D(n),r=n.graph().ranksep,t=0;s(e,function(i){var o=E(m(i,function(a){return n.node(a).height}));s(i,function(a){n.node(a).y=t+o/2}),t+=o+r})}function Vt(n,e){var r=e&&e.debugTiming?sr:cr;r("layout",function(){var t=r(" buildLayoutGraph",function(){return Lt(n)});r(" runLayout",function(){pt(t,r)}),r(" updateInputGraph",function(){wt(n,t)})})}function pt(n,e){e(" makeSpaceForEdgeLabels",function(){_t(n)}),e(" removeSelfEdges",function(){Ft(n)}),e(" acyclic",function(){tr(n)}),e(" nestingGraph.run",function(){Mr(n)}),e(" rank",function(){Ir(On(n))}),e(" injectEdgeLabelProxies",function(){Ct(n)}),e(" removeEmptyRanks",function(){dr(n)}),e(" nestingGraph.cleanup",function(){Sr(n)}),e(" normalizeRanks",function(){ur(n)}),e(" assignRankMinMax",function(){It(n)}),e(" removeEdgeLabelProxies",function(){Rt(n)}),e(" normalize.run",function(){mr(n)}),e(" parentDummyChains",function(){Jr(n)}),e(" addBorderSegments",function(){hr(n)}),e(" order",function(){Zr(n)}),e(" insertSelfEdges",function(){$t(n)}),e(" adjustCoordinateSystem",function(){vr(n)}),e(" position",function(){vt(n)}),e(" positionSelfEdges",function(){At(n)}),e(" removeBorderNodes",function(){St(n)}),e(" normalize.undo",function(){gr(n)}),e(" fixupEdgeLabelCoords",function(){Ot(n)}),e(" undoCoordinateSystem",function(){lr(n)}),e(" translateGraph",function(){Tt(n)}),e(" assignNodeIntersects",function(){Mt(n)}),e(" reversePoints",function(){Pt(n)}),e(" acyclic.undo",function(){ar(n)})}function wt(n,e){s(n.nodes(),function(r){var t=n.node(r),i=e.node(r);t&&(t.x=i.x,t.y=i.y,e.children(r).length&&(t.width=i.width,t.height=i.height))}),s(n.edges(),function(r){var t=n.edge(r),i=e.edge(r);t.points=i.points,w(i,"x")&&(t.x=i.x,t.y=i.y)}),n.graph().width=e.graph().width,n.graph().height=e.graph().height}var mt=["nodesep","edgesep","ranksep","marginx","marginy"],bt={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},gt=["acyclicer","ranker","rankdir","align"],xt=["width","height"],Et={width:0,height:0},kt=["minlen","weight","width","height","labeloffset"],yt={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},Nt=["labelpos"];function Lt(n){var e=new x({multigraph:!0,compound:!0}),r=U(n.graph());return e.setGraph(H({},bt,z(r,mt),G(r,gt))),s(n.nodes(),function(t){var i=U(n.node(t));e.setNode(t,_e(z(i,xt),Et)),e.setParent(t,n.parent(t))}),s(n.edges(),function(t){var i=U(n.edge(t));e.setEdge(t,H({},yt,z(i,kt),G(i,Nt)))}),e}function _t(n){var e=n.graph();e.ranksep/=2,s(n.edges(),function(r){var t=n.edge(r);t.minlen*=2,t.labelpos.toLowerCase()!=="c"&&(e.rankdir==="TB"||e.rankdir==="BT"?t.width+=t.labeloffset:t.height+=t.labeloffset)})}function Ct(n){s(n.edges(),function(e){var r=n.edge(e);if(r.width&&r.height){var t=n.node(e.v),i=n.node(e.w),o={rank:(i.rank-t.rank)/2+t.rank,e};C(n,"edge-proxy",o,"_ep")}})}function It(n){var e=0;s(n.nodes(),function(r){var t=n.node(r);t.borderTop&&(t.minRank=n.node(t.borderTop).rank,t.maxRank=n.node(t.borderBottom).rank,e=E(e,t.maxRank))}),n.graph().maxRank=e}function Rt(n){s(n.nodes(),function(e){var r=n.node(e);r.dummy==="edge-proxy"&&(n.edge(r.e).labelRank=r.rank,n.removeNode(e))})}function Tt(n){var e=Number.POSITIVE_INFINITY,r=0,t=Number.POSITIVE_INFINITY,i=0,o=n.graph(),a=o.marginx||0,u=o.marginy||0;function d(f){var c=f.x,h=f.y,v=f.width,l=f.height;e=Math.min(e,c-v/2),r=Math.max(r,c+v/2),t=Math.min(t,h-l/2),i=Math.max(i,h+l/2)}s(n.nodes(),function(f){d(n.node(f))}),s(n.edges(),function(f){var c=n.edge(f);w(c,"x")&&d(c)}),e-=a,t-=u,s(n.nodes(),function(f){var c=n.node(f);c.x-=e,c.y-=t}),s(n.edges(),function(f){var c=n.edge(f);s(c.points,function(h){h.x-=e,h.y-=t}),w(c,"x")&&(c.x-=e),w(c,"y")&&(c.y-=t)}),o.width=r-e+a,o.height=i-t+u}function Mt(n){s(n.edges(),function(e){var r=n.edge(e),t=n.node(e.v),i=n.node(e.w),o,a;r.points?(o=r.points[0],a=r.points[r.points.length-1]):(r.points=[],o=i,a=t),r.points.unshift(cn(t,o)),r.points.push(cn(i,a))})}function Ot(n){s(n.edges(),function(e){var r=n.edge(e);if(w(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 Pt(n){s(n.edges(),function(e){var r=n.edge(e);r.reversed&&r.points.reverse()})}function St(n){s(n.nodes(),function(e){if(n.children(e).length){var r=n.node(e),t=n.node(r.borderTop),i=n.node(r.borderBottom),o=n.node(B(r.borderLeft)),a=n.node(B(r.borderRight));r.width=Math.abs(a.x-o.x),r.height=Math.abs(i.y-t.y),r.x=o.x+r.width/2,r.y=t.y+r.height/2}}),s(n.nodes(),function(e){n.node(e).dummy==="border"&&n.removeNode(e)})}function Ft(n){s(n.edges(),function(e){if(e.v===e.w){var r=n.node(e.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e,label:n.edge(e)}),n.removeEdge(e)}})}function $t(n){var e=D(n);s(e,function(r){var t=0;s(r,function(i,o){var a=n.node(i);a.order=o+t,s(a.selfEdges,function(u){C(n,"selfedge",{width:u.label.width,height:u.label.height,rank:a.rank,order:o+ ++t,e:u.e,label:u.label},"_se")}),delete a.selfEdges})})}function At(n){s(n.nodes(),function(e){var r=n.node(e);if(r.dummy==="selfedge"){var t=n.node(r.e.v),i=t.x+t.width/2,o=t.y,a=r.x-i,u=t.height/2;n.setEdge(r.e,r.label),n.removeNode(e),r.label.points=[{x:i+2*a/3,y:o-u},{x:i+5*a/6,y:o-u},{x:i+a,y:o},{x:i+5*a/6,y:o+u},{x:i+2*a/3,y:o+u}],r.label.x=r.x,r.label.y=r.y}})}function z(n,e){return Y(G(n,e),Number)}function U(n){var e={};return s(n,function(r,t){e[t.toLowerCase()]=r}),e}export{_e as d,Vt as l,m,G as p,N as r,en as u};
class h0{constructor(e,t,a){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=t,this.end=a}static range(e,t){return t?!e||!e.loc||!t.loc||e.loc.lexer!==t.loc.lexer?null:new h0(e.loc.lexer,e.loc.start,t.loc.end):e&&e.loc}}class w0{constructor(e,t){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=t}range(e,t){return new w0(t,h0.range(this,e))}}class M{constructor(e,t){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var a="KaTeX parse error: "+e,n,s,o=t&&t.loc;if(o&&o.start<=o.end){var m=o.lexer.input;n=o.start,s=o.end,n===m.length?a+=" at end of input: ":a+=" at position "+(n+1)+": ";var c=m.slice(n,s).replace(/[^]/g,"$&̲"),p;n>15?p="…"+m.slice(n-15,n):p=m.slice(0,n);var g;s+15<m.length?g=m.slice(s,s+15)+"…":g=m.slice(s),a+=p+c+g}var y=new Error(a);return y.name="ParseError",y.__proto__=M.prototype,y.position=n,n!=null&&s!=null&&(y.length=s-n),y.rawMessage=e,y}}M.prototype.__proto__=Error.prototype;var da=function(e,t){return e.indexOf(t)!==-1},fa=function(e,t){return e===void 0?t:e},pa=/([A-Z])/g,va=function(e){return e.replace(pa,"-$1").toLowerCase()},ga={"&":"&",">":">","<":"<",'"':""","'":"'"},ba=/[&><"']/g;function ya(r){return String(r).replace(ba,e=>ga[e])}var pr=function r(e){return e.type==="ordgroup"||e.type==="color"?e.body.length===1?r(e.body[0]):e:e.type==="font"?r(e.body):e},wa=function(e){var t=pr(e);return t.type==="mathord"||t.type==="textord"||t.type==="atom"},xa=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e},ka=function(e){var t=/^\s*([^\\/#]*?)(?::|�*58|�*3a)/i.exec(e);return t!=null?t[1]:"_relative"},E={contains:da,deflt:fa,escape:ya,hyphenate:va,getBaseElem:pr,isCharacterBox:wa,protocolFromUrl:ka},Te={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 <type>"},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 <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:r=>"#"+r},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(r,e)=>(e.push(r),e)},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:r=>Math.max(0,r),cli:"--min-rule-thickness <size>",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:r=>Math.max(0,r),cli:"-s, --max-size <n>",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:r=>Math.max(0,r),cli:"-e, --max-expand <n>",cliProcessor:r=>r==="Infinity"?1/0:parseInt(r)},globalGroup:{type:"boolean",cli:!1}};function Sa(r){if(r.default)return r.default;var e=r.type,t=Array.isArray(e)?e[0]:e;if(typeof t!="string")return t.enum[0];switch(t){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class ct{constructor(e){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,e=e||{};for(var t in Te)if(Te.hasOwnProperty(t)){var a=Te[t];this[t]=e[t]!==void 0?a.processor?a.processor(e[t]):e[t]:Sa(a)}}reportNonstrict(e,t,a){var n=this.strict;if(typeof n=="function"&&(n=n(e,t,a)),!(!n||n==="ignore")){if(n===!0||n==="error")throw new M("LaTeX-incompatible input and strict mode is set to 'error': "+(t+" ["+e+"]"),a);n==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(t+" ["+e+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+n+"': "+t+" ["+e+"]"))}}useStrictBehavior(e,t,a){var n=this.strict;if(typeof n=="function")try{n=n(e,t,a)}catch{n="error"}return!n||n==="ignore"?!1:n===!0||n==="error"?!0:n==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(t+" ["+e+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+n+"': "+t+" ["+e+"]")),!1)}isTrusted(e){e.url&&!e.protocol&&(e.protocol=E.protocolFromUrl(e.url));var t=typeof this.trust=="function"?this.trust(e):this.trust;return!!t}}class O0{constructor(e,t,a){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=a}sup(){return b0[Ma[this.id]]}sub(){return b0[za[this.id]]}fracNum(){return b0[Ta[this.id]]}fracDen(){return b0[Aa[this.id]]}cramp(){return b0[Ba[this.id]]}text(){return b0[Na[this.id]]}isTight(){return this.size>=2}}var dt=0,Be=1,_0=2,A0=3,le=4,d0=5,ee=6,n0=7,b0=[new O0(dt,0,!1),new O0(Be,0,!0),new O0(_0,1,!1),new O0(A0,1,!0),new O0(le,2,!1),new O0(d0,2,!0),new O0(ee,3,!1),new O0(n0,3,!0)],Ma=[le,d0,le,d0,ee,n0,ee,n0],za=[d0,d0,d0,d0,n0,n0,n0,n0],Ta=[_0,A0,le,d0,ee,n0,ee,n0],Aa=[A0,A0,d0,d0,n0,n0,n0,n0],Ba=[Be,Be,A0,A0,d0,d0,n0,n0],Na=[dt,Be,_0,A0,_0,A0,_0,A0],I={DISPLAY:b0[dt],TEXT:b0[_0],SCRIPT:b0[le],SCRIPTSCRIPT:b0[ee]},at=[{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]]}];function Ca(r){for(var e=0;e<at.length;e++)for(var t=at[e],a=0;a<t.blocks.length;a++){var n=t.blocks[a];if(r>=n[0]&&r<=n[1])return t.name}return null}var Ae=[];at.forEach(r=>r.blocks.forEach(e=>Ae.push(...e)));function vr(r){for(var e=0;e<Ae.length;e+=2)if(r>=Ae[e]&&r<=Ae[e+1])return!0;return!1}var Q0=80,qa=function(e,t){return"M95,"+(622+e+t)+`
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`+e/2.075+" -"+e+`
c5.3,-9.3,12,-14,20,-14
H400000v`+(40+e)+`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+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},Ra=function(e,t){return"M263,"+(601+e+t)+`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`+e/2.084+" -"+e+`
c4.7,-7.3,11,-11,19,-11
H40000v`+(40+e)+`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+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},Ia=function(e,t){return"M983 "+(10+e+t)+`
l`+e/3.13+" -"+e+`
c4,-6.7,10,-10,18,-10 H400000v`+(40+e)+`
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+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},Da=function(e,t){return"M424,"+(2398+e+t)+`
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`+e/4.223+" -"+e+`c4,-6.7,10,-10,18,-10 H400000
v`+(40+e)+`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+e)+" "+t+`
h400000v`+(40+e)+"h-400000z"},Ea=function(e,t){return"M473,"+(2713+e+t)+`
c339.3,-1799.3,509.3,-2700,510,-2702 l`+e/5.298+" -"+e+`
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+e)+`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+e)+" "+t+"h400000v"+(40+e)+"H1017.7z"},Oa=function(e){var t=e/2;return"M400000 "+e+" H0 L"+t+" 0 l65 45 L145 "+(e-80)+" H400000z"},Ha=function(e,t,a){var n=a-54-t-e;return"M702 "+(e+t)+"H400000"+(40+e)+`
H742v`+n+`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 `+t+"H400000v"+(40+e)+"H742z"},La=function(e,t,a){t=1e3*t;var n="";switch(e){case"sqrtMain":n=qa(t,Q0);break;case"sqrtSize1":n=Ra(t,Q0);break;case"sqrtSize2":n=Ia(t,Q0);break;case"sqrtSize3":n=Da(t,Q0);break;case"sqrtSize4":n=Ea(t,Q0);break;case"sqrtTall":n=Ha(t,Q0,a)}return n},Fa=function(e,t){switch(e){case"⎜":return"M291 0 H417 V"+t+" H291z M291 0 H417 V"+t+" H291z";case"∣":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145z";case"∥":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145z"+("M367 0 H410 V"+t+" H367z M367 0 H410 V"+t+" H367z");case"⎟":return"M457 0 H583 V"+t+" H457z M457 0 H583 V"+t+" H457z";case"⎢":return"M319 0 H403 V"+t+" H319z M319 0 H403 V"+t+" H319z";case"⎥":return"M263 0 H347 V"+t+" H263z M263 0 H347 V"+t+" H263z";case"⎪":return"M384 0 H504 V"+t+" H384z M384 0 H504 V"+t+" H384z";case"⏐":return"M312 0 H355 V"+t+" H312z M312 0 H355 V"+t+" H312z";case"‖":return"M257 0 H300 V"+t+" H257z M257 0 H300 V"+t+" H257z"+("M478 0 H521 V"+t+" H478z M478 0 H521 V"+t+" H478z");default:return""}},Et={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`},Pa=function(e,t){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+` v1759 h347 v-84
H403z M403 1759 V0 H319 V1759 v`+t+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+` v1759 H0 v84 H347z
M347 1759 V0 H263 V1759 v`+t+" v1759 h84z";case"vert":return"M145 15 v585 v"+t+` v585 c2.667,10,9.667,15,21,15
c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+t+" v585 h43z";case"doublevert":return"M145 15 v585 v"+t+` v585 c2.667,10,9.667,15,21,15
c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+t+` v585 h43z
M367 15 v585 v`+t+` v585 c2.667,10,9.667,15,21,15
c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15
c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+t+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+t+` v1715 h263 v84 H319z
MM319 602 V0 H403 V602 v`+t+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+t+` v1799 H0 v-84 H319z
MM319 602 V0 H403 V602 v`+t+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+` v602 h84z
M403 1759 V0 H319 V1759 v`+t+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+` v602 h84z
M347 1759 V0 h-84 V1759 v`+t+" 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,`+(t+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,-`+(t+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,`+(t+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,-`+(t+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.")}};class me{constructor(e){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=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return E.contains(this.classes,e)}toNode(){for(var e=document.createDocumentFragment(),t=0;t<this.children.length;t++)e.appendChild(this.children[t].toNode());return e}toMarkup(){for(var e="",t=0;t<this.children.length;t++)e+=this.children[t].toMarkup();return e}toText(){var e=t=>t.toText();return this.children.map(e).join("")}}var y0={"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]}},ge={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]},Ot={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function Ga(r,e){y0[r]=e}function ft(r,e,t){if(!y0[e])throw new Error("Font metrics not found for font: "+e+".");var a=r.charCodeAt(0),n=y0[e][a];if(!n&&r[0]in Ot&&(a=Ot[r[0]].charCodeAt(0),n=y0[e][a]),!n&&t==="text"&&vr(a)&&(n=y0[e][77]),n)return{depth:n[0],height:n[1],italic:n[2],skew:n[3],width:n[4]}}var Ue={};function Va(r){var e;if(r>=5?e=0:r>=3?e=1:e=2,!Ue[e]){var t=Ue[e]={cssEmPerMu:ge.quad[e]/18};for(var a in ge)ge.hasOwnProperty(a)&&(t[a]=ge[a][e])}return Ue[e]}var Ua=[[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]],Ht=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Lt=function(e,t){return t.size<2?e:Ua[e-1][t.size-1]};class T0{constructor(e){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=e.style,this.color=e.color,this.size=e.size||T0.BASESIZE,this.textSize=e.textSize||this.size,this.phantom=!!e.phantom,this.font=e.font||"",this.fontFamily=e.fontFamily||"",this.fontWeight=e.fontWeight||"",this.fontShape=e.fontShape||"",this.sizeMultiplier=Ht[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this._fontMetrics=void 0}extend(e){var t={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 a in e)e.hasOwnProperty(a)&&(t[a]=e[a]);return new T0(t)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:Lt(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:Ht[e-1]})}havingBaseStyle(e){e=e||this.style.text();var t=Lt(T0.BASESIZE,e);return this.size===t&&this.textSize===T0.BASESIZE&&this.style===e?this:this.extend({style:e,size:t})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:""})}withTextFontWeight(e){return this.extend({fontWeight:e,font:""})}withTextFontShape(e){return this.extend({fontShape:e,font:""})}sizingClasses(e){return e.size!==this.size?["sizing","reset-size"+e.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==T0.BASESIZE?["sizing","reset-size"+this.size,"size"+T0.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=Va(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}T0.BASESIZE=6;var nt={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},Ya={ex:!0,em:!0,mu:!0},gr=function(e){return typeof e!="string"&&(e=e.unit),e in nt||e in Ya||e==="ex"},K=function(e,t){var a;if(e.unit in nt)a=nt[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if(e.unit==="mu")a=t.fontMetrics().cssEmPerMu;else{var n;if(t.style.isTight()?n=t.havingStyle(t.style.text()):n=t,e.unit==="ex")a=n.fontMetrics().xHeight;else if(e.unit==="em")a=n.fontMetrics().quad;else throw new M("Invalid unit: '"+e.unit+"'");n!==t&&(a*=n.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*a,t.maxSize)},T=function(e){return+e.toFixed(4)+"em"},F0=function(e){return e.filter(t=>t).join(" ")},br=function(e,t,a){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=a||{},t){t.style.isTight()&&this.classes.push("mtight");var n=t.getColor();n&&(this.style.color=n)}},yr=function(e){var t=document.createElement(e);t.className=F0(this.classes);for(var a in this.style)this.style.hasOwnProperty(a)&&(t.style[a]=this.style[a]);for(var n in this.attributes)this.attributes.hasOwnProperty(n)&&t.setAttribute(n,this.attributes[n]);for(var s=0;s<this.children.length;s++)t.appendChild(this.children[s].toNode());return t},wr=function(e){var t="<"+e;this.classes.length&&(t+=' class="'+E.escape(F0(this.classes))+'"');var a="";for(var n in this.style)this.style.hasOwnProperty(n)&&(a+=E.hyphenate(n)+":"+this.style[n]+";");a&&(t+=' style="'+E.escape(a)+'"');for(var s in this.attributes)this.attributes.hasOwnProperty(s)&&(t+=" "+s+'="'+E.escape(this.attributes[s])+'"');t+=">";for(var o=0;o<this.children.length;o++)t+=this.children[o].toMarkup();return t+="</"+e+">",t};class ue{constructor(e,t,a,n){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,br.call(this,e,a,n),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return E.contains(this.classes,e)}toNode(){return yr.call(this,"span")}toMarkup(){return wr.call(this,"span")}}class pt{constructor(e,t,a,n){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,br.call(this,t,n),this.children=a||[],this.setAttribute("href",e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return E.contains(this.classes,e)}toNode(){return yr.call(this,"a")}toMarkup(){return wr.call(this,"a")}}class Xa{constructor(e,t,a){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=t,this.src=e,this.classes=["mord"],this.style=a}hasClass(e){return E.contains(this.classes,e)}toNode(){var e=document.createElement("img");e.src=this.src,e.alt=this.alt,e.className="mord";for(var t in this.style)this.style.hasOwnProperty(t)&&(e.style[t]=this.style[t]);return e}toMarkup(){var e="<img src='"+this.src+" 'alt='"+this.alt+"' ",t="";for(var a in this.style)this.style.hasOwnProperty(a)&&(t+=E.hyphenate(a)+":"+this.style[a]+";");return t&&(e+=' style="'+E.escape(t)+'"'),e+="'/>",e}}var $a={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class f0{constructor(e,t,a,n,s,o,m,c){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=e,this.height=t||0,this.depth=a||0,this.italic=n||0,this.skew=s||0,this.width=o||0,this.classes=m||[],this.style=c||{},this.maxFontSize=0;var p=Ca(this.text.charCodeAt(0));p&&this.classes.push(p+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=$a[this.text])}hasClass(e){return E.contains(this.classes,e)}toNode(){var e=document.createTextNode(this.text),t=null;this.italic>0&&(t=document.createElement("span"),t.style.marginRight=T(this.italic)),this.classes.length>0&&(t=t||document.createElement("span"),t.className=F0(this.classes));for(var a in this.style)this.style.hasOwnProperty(a)&&(t=t||document.createElement("span"),t.style[a]=this.style[a]);return t?(t.appendChild(e),t):e}toMarkup(){var e=!1,t="<span";this.classes.length&&(e=!0,t+=' class="',t+=E.escape(F0(this.classes)),t+='"');var a="";this.italic>0&&(a+="margin-right:"+this.italic+"em;");for(var n in this.style)this.style.hasOwnProperty(n)&&(a+=E.hyphenate(n)+":"+this.style[n]+";");a&&(e=!0,t+=' style="'+E.escape(a)+'"');var s=E.escape(this.text);return e?(t+=">",t+=s,t+="</span>",t):s}}class N0{constructor(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}toNode(){var e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"svg");for(var a in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,a)&&t.setAttribute(a,this.attributes[a]);for(var n=0;n<this.children.length;n++)t.appendChild(this.children[n].toNode());return t}toMarkup(){var e='<svg xmlns="http://www.w3.org/2000/svg"';for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+"='"+this.attributes[t]+"'");e+=">";for(var a=0;a<this.children.length;a++)e+=this.children[a].toMarkup();return e+="</svg>",e}}class P0{constructor(e,t){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=t}toNode(){var e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"path");return this.alternate?t.setAttribute("d",this.alternate):t.setAttribute("d",Et[this.pathName]),t}toMarkup(){return this.alternate?"<path d='"+this.alternate+"'/>":"<path d='"+Et[this.pathName]+"'/>"}}class it{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"line");for(var a in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,a)&&t.setAttribute(a,this.attributes[a]);return t}toMarkup(){var e="<line";for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+"='"+this.attributes[t]+"'");return e+="/>",e}}function Ft(r){if(r instanceof f0)return r;throw new Error("Expected symbolNode but got "+String(r)+".")}function Wa(r){if(r instanceof ue)return r;throw new Error("Expected span<HtmlDomNode> but got "+String(r)+".")}var ja={bin:1,close:1,inner:1,open:1,punct:1,rel:1},Za={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},$={math:{},text:{}};function i(r,e,t,a,n,s){$[r][n]={font:e,group:t,replace:a},s&&a&&($[r][a]=$[r][n])}var l="math",k="text",h="main",d="ams",W="accent-token",N="bin",i0="close",te="inner",R="mathord",_="op-token",m0="open",Ie="punct",f="rel",R0="spacing",v="textord";i(l,h,f,"≡","\\equiv",!0);i(l,h,f,"≺","\\prec",!0);i(l,h,f,"≻","\\succ",!0);i(l,h,f,"∼","\\sim",!0);i(l,h,f,"⊥","\\perp");i(l,h,f,"⪯","\\preceq",!0);i(l,h,f,"⪰","\\succeq",!0);i(l,h,f,"≃","\\simeq",!0);i(l,h,f,"∣","\\mid",!0);i(l,h,f,"≪","\\ll",!0);i(l,h,f,"≫","\\gg",!0);i(l,h,f,"≍","\\asymp",!0);i(l,h,f,"∥","\\parallel");i(l,h,f,"⋈","\\bowtie",!0);i(l,h,f,"⌣","\\smile",!0);i(l,h,f,"⊑","\\sqsubseteq",!0);i(l,h,f,"⊒","\\sqsupseteq",!0);i(l,h,f,"≐","\\doteq",!0);i(l,h,f,"⌢","\\frown",!0);i(l,h,f,"∋","\\ni",!0);i(l,h,f,"∝","\\propto",!0);i(l,h,f,"⊢","\\vdash",!0);i(l,h,f,"⊣","\\dashv",!0);i(l,h,f,"∋","\\owns");i(l,h,Ie,".","\\ldotp");i(l,h,Ie,"⋅","\\cdotp");i(l,h,v,"#","\\#");i(k,h,v,"#","\\#");i(l,h,v,"&","\\&");i(k,h,v,"&","\\&");i(l,h,v,"ℵ","\\aleph",!0);i(l,h,v,"∀","\\forall",!0);i(l,h,v,"ℏ","\\hbar",!0);i(l,h,v,"∃","\\exists",!0);i(l,h,v,"∇","\\nabla",!0);i(l,h,v,"♭","\\flat",!0);i(l,h,v,"ℓ","\\ell",!0);i(l,h,v,"♮","\\natural",!0);i(l,h,v,"♣","\\clubsuit",!0);i(l,h,v,"℘","\\wp",!0);i(l,h,v,"♯","\\sharp",!0);i(l,h,v,"♢","\\diamondsuit",!0);i(l,h,v,"ℜ","\\Re",!0);i(l,h,v,"♡","\\heartsuit",!0);i(l,h,v,"ℑ","\\Im",!0);i(l,h,v,"♠","\\spadesuit",!0);i(l,h,v,"§","\\S",!0);i(k,h,v,"§","\\S");i(l,h,v,"¶","\\P",!0);i(k,h,v,"¶","\\P");i(l,h,v,"†","\\dag");i(k,h,v,"†","\\dag");i(k,h,v,"†","\\textdagger");i(l,h,v,"‡","\\ddag");i(k,h,v,"‡","\\ddag");i(k,h,v,"‡","\\textdaggerdbl");i(l,h,i0,"⎱","\\rmoustache",!0);i(l,h,m0,"⎰","\\lmoustache",!0);i(l,h,i0,"⟯","\\rgroup",!0);i(l,h,m0,"⟮","\\lgroup",!0);i(l,h,N,"∓","\\mp",!0);i(l,h,N,"⊖","\\ominus",!0);i(l,h,N,"⊎","\\uplus",!0);i(l,h,N,"⊓","\\sqcap",!0);i(l,h,N,"∗","\\ast");i(l,h,N,"⊔","\\sqcup",!0);i(l,h,N,"◯","\\bigcirc",!0);i(l,h,N,"∙","\\bullet",!0);i(l,h,N,"‡","\\ddagger");i(l,h,N,"≀","\\wr",!0);i(l,h,N,"⨿","\\amalg");i(l,h,N,"&","\\And");i(l,h,f,"⟵","\\longleftarrow",!0);i(l,h,f,"⇐","\\Leftarrow",!0);i(l,h,f,"⟸","\\Longleftarrow",!0);i(l,h,f,"⟶","\\longrightarrow",!0);i(l,h,f,"⇒","\\Rightarrow",!0);i(l,h,f,"⟹","\\Longrightarrow",!0);i(l,h,f,"↔","\\leftrightarrow",!0);i(l,h,f,"⟷","\\longleftrightarrow",!0);i(l,h,f,"⇔","\\Leftrightarrow",!0);i(l,h,f,"⟺","\\Longleftrightarrow",!0);i(l,h,f,"↦","\\mapsto",!0);i(l,h,f,"⟼","\\longmapsto",!0);i(l,h,f,"↗","\\nearrow",!0);i(l,h,f,"↩","\\hookleftarrow",!0);i(l,h,f,"↪","\\hookrightarrow",!0);i(l,h,f,"↘","\\searrow",!0);i(l,h,f,"↼","\\leftharpoonup",!0);i(l,h,f,"⇀","\\rightharpoonup",!0);i(l,h,f,"↙","\\swarrow",!0);i(l,h,f,"↽","\\leftharpoondown",!0);i(l,h,f,"⇁","\\rightharpoondown",!0);i(l,h,f,"↖","\\nwarrow",!0);i(l,h,f,"⇌","\\rightleftharpoons",!0);i(l,d,f,"≮","\\nless",!0);i(l,d,f,"","\\@nleqslant");i(l,d,f,"","\\@nleqq");i(l,d,f,"⪇","\\lneq",!0);i(l,d,f,"≨","\\lneqq",!0);i(l,d,f,"","\\@lvertneqq");i(l,d,f,"⋦","\\lnsim",!0);i(l,d,f,"⪉","\\lnapprox",!0);i(l,d,f,"⊀","\\nprec",!0);i(l,d,f,"⋠","\\npreceq",!0);i(l,d,f,"⋨","\\precnsim",!0);i(l,d,f,"⪹","\\precnapprox",!0);i(l,d,f,"≁","\\nsim",!0);i(l,d,f,"","\\@nshortmid");i(l,d,f,"∤","\\nmid",!0);i(l,d,f,"⊬","\\nvdash",!0);i(l,d,f,"⊭","\\nvDash",!0);i(l,d,f,"⋪","\\ntriangleleft");i(l,d,f,"⋬","\\ntrianglelefteq",!0);i(l,d,f,"⊊","\\subsetneq",!0);i(l,d,f,"","\\@varsubsetneq");i(l,d,f,"⫋","\\subsetneqq",!0);i(l,d,f,"","\\@varsubsetneqq");i(l,d,f,"≯","\\ngtr",!0);i(l,d,f,"","\\@ngeqslant");i(l,d,f,"","\\@ngeqq");i(l,d,f,"⪈","\\gneq",!0);i(l,d,f,"≩","\\gneqq",!0);i(l,d,f,"","\\@gvertneqq");i(l,d,f,"⋧","\\gnsim",!0);i(l,d,f,"⪊","\\gnapprox",!0);i(l,d,f,"⊁","\\nsucc",!0);i(l,d,f,"⋡","\\nsucceq",!0);i(l,d,f,"⋩","\\succnsim",!0);i(l,d,f,"⪺","\\succnapprox",!0);i(l,d,f,"≆","\\ncong",!0);i(l,d,f,"","\\@nshortparallel");i(l,d,f,"∦","\\nparallel",!0);i(l,d,f,"⊯","\\nVDash",!0);i(l,d,f,"⋫","\\ntriangleright");i(l,d,f,"⋭","\\ntrianglerighteq",!0);i(l,d,f,"","\\@nsupseteqq");i(l,d,f,"⊋","\\supsetneq",!0);i(l,d,f,"","\\@varsupsetneq");i(l,d,f,"⫌","\\supsetneqq",!0);i(l,d,f,"","\\@varsupsetneqq");i(l,d,f,"⊮","\\nVdash",!0);i(l,d,f,"⪵","\\precneqq",!0);i(l,d,f,"⪶","\\succneqq",!0);i(l,d,f,"","\\@nsubseteqq");i(l,d,N,"⊴","\\unlhd");i(l,d,N,"⊵","\\unrhd");i(l,d,f,"↚","\\nleftarrow",!0);i(l,d,f,"↛","\\nrightarrow",!0);i(l,d,f,"⇍","\\nLeftarrow",!0);i(l,d,f,"⇏","\\nRightarrow",!0);i(l,d,f,"↮","\\nleftrightarrow",!0);i(l,d,f,"⇎","\\nLeftrightarrow",!0);i(l,d,f,"△","\\vartriangle");i(l,d,v,"ℏ","\\hslash");i(l,d,v,"▽","\\triangledown");i(l,d,v,"◊","\\lozenge");i(l,d,v,"Ⓢ","\\circledS");i(l,d,v,"®","\\circledR");i(k,d,v,"®","\\circledR");i(l,d,v,"∡","\\measuredangle",!0);i(l,d,v,"∄","\\nexists");i(l,d,v,"℧","\\mho");i(l,d,v,"Ⅎ","\\Finv",!0);i(l,d,v,"⅁","\\Game",!0);i(l,d,v,"‵","\\backprime");i(l,d,v,"▲","\\blacktriangle");i(l,d,v,"▼","\\blacktriangledown");i(l,d,v,"■","\\blacksquare");i(l,d,v,"⧫","\\blacklozenge");i(l,d,v,"★","\\bigstar");i(l,d,v,"∢","\\sphericalangle",!0);i(l,d,v,"∁","\\complement",!0);i(l,d,v,"ð","\\eth",!0);i(k,h,v,"ð","ð");i(l,d,v,"╱","\\diagup");i(l,d,v,"╲","\\diagdown");i(l,d,v,"□","\\square");i(l,d,v,"□","\\Box");i(l,d,v,"◊","\\Diamond");i(l,d,v,"¥","\\yen",!0);i(k,d,v,"¥","\\yen",!0);i(l,d,v,"✓","\\checkmark",!0);i(k,d,v,"✓","\\checkmark");i(l,d,v,"ℶ","\\beth",!0);i(l,d,v,"ℸ","\\daleth",!0);i(l,d,v,"ℷ","\\gimel",!0);i(l,d,v,"ϝ","\\digamma",!0);i(l,d,v,"ϰ","\\varkappa");i(l,d,m0,"┌","\\@ulcorner",!0);i(l,d,i0,"┐","\\@urcorner",!0);i(l,d,m0,"└","\\@llcorner",!0);i(l,d,i0,"┘","\\@lrcorner",!0);i(l,d,f,"≦","\\leqq",!0);i(l,d,f,"⩽","\\leqslant",!0);i(l,d,f,"⪕","\\eqslantless",!0);i(l,d,f,"≲","\\lesssim",!0);i(l,d,f,"⪅","\\lessapprox",!0);i(l,d,f,"≊","\\approxeq",!0);i(l,d,N,"⋖","\\lessdot");i(l,d,f,"⋘","\\lll",!0);i(l,d,f,"≶","\\lessgtr",!0);i(l,d,f,"⋚","\\lesseqgtr",!0);i(l,d,f,"⪋","\\lesseqqgtr",!0);i(l,d,f,"≑","\\doteqdot");i(l,d,f,"≓","\\risingdotseq",!0);i(l,d,f,"≒","\\fallingdotseq",!0);i(l,d,f,"∽","\\backsim",!0);i(l,d,f,"⋍","\\backsimeq",!0);i(l,d,f,"⫅","\\subseteqq",!0);i(l,d,f,"⋐","\\Subset",!0);i(l,d,f,"⊏","\\sqsubset",!0);i(l,d,f,"≼","\\preccurlyeq",!0);i(l,d,f,"⋞","\\curlyeqprec",!0);i(l,d,f,"≾","\\precsim",!0);i(l,d,f,"⪷","\\precapprox",!0);i(l,d,f,"⊲","\\vartriangleleft");i(l,d,f,"⊴","\\trianglelefteq");i(l,d,f,"⊨","\\vDash",!0);i(l,d,f,"⊪","\\Vvdash",!0);i(l,d,f,"⌣","\\smallsmile");i(l,d,f,"⌢","\\smallfrown");i(l,d,f,"≏","\\bumpeq",!0);i(l,d,f,"≎","\\Bumpeq",!0);i(l,d,f,"≧","\\geqq",!0);i(l,d,f,"⩾","\\geqslant",!0);i(l,d,f,"⪖","\\eqslantgtr",!0);i(l,d,f,"≳","\\gtrsim",!0);i(l,d,f,"⪆","\\gtrapprox",!0);i(l,d,N,"⋗","\\gtrdot");i(l,d,f,"⋙","\\ggg",!0);i(l,d,f,"≷","\\gtrless",!0);i(l,d,f,"⋛","\\gtreqless",!0);i(l,d,f,"⪌","\\gtreqqless",!0);i(l,d,f,"≖","\\eqcirc",!0);i(l,d,f,"≗","\\circeq",!0);i(l,d,f,"≜","\\triangleq",!0);i(l,d,f,"∼","\\thicksim");i(l,d,f,"≈","\\thickapprox");i(l,d,f,"⫆","\\supseteqq",!0);i(l,d,f,"⋑","\\Supset",!0);i(l,d,f,"⊐","\\sqsupset",!0);i(l,d,f,"≽","\\succcurlyeq",!0);i(l,d,f,"⋟","\\curlyeqsucc",!0);i(l,d,f,"≿","\\succsim",!0);i(l,d,f,"⪸","\\succapprox",!0);i(l,d,f,"⊳","\\vartriangleright");i(l,d,f,"⊵","\\trianglerighteq");i(l,d,f,"⊩","\\Vdash",!0);i(l,d,f,"∣","\\shortmid");i(l,d,f,"∥","\\shortparallel");i(l,d,f,"≬","\\between",!0);i(l,d,f,"⋔","\\pitchfork",!0);i(l,d,f,"∝","\\varpropto");i(l,d,f,"◀","\\blacktriangleleft");i(l,d,f,"∴","\\therefore",!0);i(l,d,f,"∍","\\backepsilon");i(l,d,f,"▶","\\blacktriangleright");i(l,d,f,"∵","\\because",!0);i(l,d,f,"⋘","\\llless");i(l,d,f,"⋙","\\gggtr");i(l,d,N,"⊲","\\lhd");i(l,d,N,"⊳","\\rhd");i(l,d,f,"≂","\\eqsim",!0);i(l,h,f,"⋈","\\Join");i(l,d,f,"≑","\\Doteq",!0);i(l,d,N,"∔","\\dotplus",!0);i(l,d,N,"∖","\\smallsetminus");i(l,d,N,"⋒","\\Cap",!0);i(l,d,N,"⋓","\\Cup",!0);i(l,d,N,"⩞","\\doublebarwedge",!0);i(l,d,N,"⊟","\\boxminus",!0);i(l,d,N,"⊞","\\boxplus",!0);i(l,d,N,"⋇","\\divideontimes",!0);i(l,d,N,"⋉","\\ltimes",!0);i(l,d,N,"⋊","\\rtimes",!0);i(l,d,N,"⋋","\\leftthreetimes",!0);i(l,d,N,"⋌","\\rightthreetimes",!0);i(l,d,N,"⋏","\\curlywedge",!0);i(l,d,N,"⋎","\\curlyvee",!0);i(l,d,N,"⊝","\\circleddash",!0);i(l,d,N,"⊛","\\circledast",!0);i(l,d,N,"⋅","\\centerdot");i(l,d,N,"⊺","\\intercal",!0);i(l,d,N,"⋒","\\doublecap");i(l,d,N,"⋓","\\doublecup");i(l,d,N,"⊠","\\boxtimes",!0);i(l,d,f,"⇢","\\dashrightarrow",!0);i(l,d,f,"⇠","\\dashleftarrow",!0);i(l,d,f,"⇇","\\leftleftarrows",!0);i(l,d,f,"⇆","\\leftrightarrows",!0);i(l,d,f,"⇚","\\Lleftarrow",!0);i(l,d,f,"↞","\\twoheadleftarrow",!0);i(l,d,f,"↢","\\leftarrowtail",!0);i(l,d,f,"↫","\\looparrowleft",!0);i(l,d,f,"⇋","\\leftrightharpoons",!0);i(l,d,f,"↶","\\curvearrowleft",!0);i(l,d,f,"↺","\\circlearrowleft",!0);i(l,d,f,"↰","\\Lsh",!0);i(l,d,f,"⇈","\\upuparrows",!0);i(l,d,f,"↿","\\upharpoonleft",!0);i(l,d,f,"⇃","\\downharpoonleft",!0);i(l,h,f,"⊶","\\origof",!0);i(l,h,f,"⊷","\\imageof",!0);i(l,d,f,"⊸","\\multimap",!0);i(l,d,f,"↭","\\leftrightsquigarrow",!0);i(l,d,f,"⇉","\\rightrightarrows",!0);i(l,d,f,"⇄","\\rightleftarrows",!0);i(l,d,f,"↠","\\twoheadrightarrow",!0);i(l,d,f,"↣","\\rightarrowtail",!0);i(l,d,f,"↬","\\looparrowright",!0);i(l,d,f,"↷","\\curvearrowright",!0);i(l,d,f,"↻","\\circlearrowright",!0);i(l,d,f,"↱","\\Rsh",!0);i(l,d,f,"⇊","\\downdownarrows",!0);i(l,d,f,"↾","\\upharpoonright",!0);i(l,d,f,"⇂","\\downharpoonright",!0);i(l,d,f,"⇝","\\rightsquigarrow",!0);i(l,d,f,"⇝","\\leadsto");i(l,d,f,"⇛","\\Rrightarrow",!0);i(l,d,f,"↾","\\restriction");i(l,h,v,"‘","`");i(l,h,v,"$","\\$");i(k,h,v,"$","\\$");i(k,h,v,"$","\\textdollar");i(l,h,v,"%","\\%");i(k,h,v,"%","\\%");i(l,h,v,"_","\\_");i(k,h,v,"_","\\_");i(k,h,v,"_","\\textunderscore");i(l,h,v,"∠","\\angle",!0);i(l,h,v,"∞","\\infty",!0);i(l,h,v,"′","\\prime");i(l,h,v,"△","\\triangle");i(l,h,v,"Γ","\\Gamma",!0);i(l,h,v,"Δ","\\Delta",!0);i(l,h,v,"Θ","\\Theta",!0);i(l,h,v,"Λ","\\Lambda",!0);i(l,h,v,"Ξ","\\Xi",!0);i(l,h,v,"Π","\\Pi",!0);i(l,h,v,"Σ","\\Sigma",!0);i(l,h,v,"Υ","\\Upsilon",!0);i(l,h,v,"Φ","\\Phi",!0);i(l,h,v,"Ψ","\\Psi",!0);i(l,h,v,"Ω","\\Omega",!0);i(l,h,v,"A","Α");i(l,h,v,"B","Β");i(l,h,v,"E","Ε");i(l,h,v,"Z","Ζ");i(l,h,v,"H","Η");i(l,h,v,"I","Ι");i(l,h,v,"K","Κ");i(l,h,v,"M","Μ");i(l,h,v,"N","Ν");i(l,h,v,"O","Ο");i(l,h,v,"P","Ρ");i(l,h,v,"T","Τ");i(l,h,v,"X","Χ");i(l,h,v,"¬","\\neg",!0);i(l,h,v,"¬","\\lnot");i(l,h,v,"⊤","\\top");i(l,h,v,"⊥","\\bot");i(l,h,v,"∅","\\emptyset");i(l,d,v,"∅","\\varnothing");i(l,h,R,"α","\\alpha",!0);i(l,h,R,"β","\\beta",!0);i(l,h,R,"γ","\\gamma",!0);i(l,h,R,"δ","\\delta",!0);i(l,h,R,"ϵ","\\epsilon",!0);i(l,h,R,"ζ","\\zeta",!0);i(l,h,R,"η","\\eta",!0);i(l,h,R,"θ","\\theta",!0);i(l,h,R,"ι","\\iota",!0);i(l,h,R,"κ","\\kappa",!0);i(l,h,R,"λ","\\lambda",!0);i(l,h,R,"μ","\\mu",!0);i(l,h,R,"ν","\\nu",!0);i(l,h,R,"ξ","\\xi",!0);i(l,h,R,"ο","\\omicron",!0);i(l,h,R,"π","\\pi",!0);i(l,h,R,"ρ","\\rho",!0);i(l,h,R,"σ","\\sigma",!0);i(l,h,R,"τ","\\tau",!0);i(l,h,R,"υ","\\upsilon",!0);i(l,h,R,"ϕ","\\phi",!0);i(l,h,R,"χ","\\chi",!0);i(l,h,R,"ψ","\\psi",!0);i(l,h,R,"ω","\\omega",!0);i(l,h,R,"ε","\\varepsilon",!0);i(l,h,R,"ϑ","\\vartheta",!0);i(l,h,R,"ϖ","\\varpi",!0);i(l,h,R,"ϱ","\\varrho",!0);i(l,h,R,"ς","\\varsigma",!0);i(l,h,R,"φ","\\varphi",!0);i(l,h,N,"∗","*",!0);i(l,h,N,"+","+");i(l,h,N,"−","-",!0);i(l,h,N,"⋅","\\cdot",!0);i(l,h,N,"∘","\\circ",!0);i(l,h,N,"÷","\\div",!0);i(l,h,N,"±","\\pm",!0);i(l,h,N,"×","\\times",!0);i(l,h,N,"∩","\\cap",!0);i(l,h,N,"∪","\\cup",!0);i(l,h,N,"∖","\\setminus",!0);i(l,h,N,"∧","\\land");i(l,h,N,"∨","\\lor");i(l,h,N,"∧","\\wedge",!0);i(l,h,N,"∨","\\vee",!0);i(l,h,v,"√","\\surd");i(l,h,m0,"⟨","\\langle",!0);i(l,h,m0,"∣","\\lvert");i(l,h,m0,"∥","\\lVert");i(l,h,i0,"?","?");i(l,h,i0,"!","!");i(l,h,i0,"⟩","\\rangle",!0);i(l,h,i0,"∣","\\rvert");i(l,h,i0,"∥","\\rVert");i(l,h,f,"=","=");i(l,h,f,":",":");i(l,h,f,"≈","\\approx",!0);i(l,h,f,"≅","\\cong",!0);i(l,h,f,"≥","\\ge");i(l,h,f,"≥","\\geq",!0);i(l,h,f,"←","\\gets");i(l,h,f,">","\\gt",!0);i(l,h,f,"∈","\\in",!0);i(l,h,f,"","\\@not");i(l,h,f,"⊂","\\subset",!0);i(l,h,f,"⊃","\\supset",!0);i(l,h,f,"⊆","\\subseteq",!0);i(l,h,f,"⊇","\\supseteq",!0);i(l,d,f,"⊈","\\nsubseteq",!0);i(l,d,f,"⊉","\\nsupseteq",!0);i(l,h,f,"⊨","\\models");i(l,h,f,"←","\\leftarrow",!0);i(l,h,f,"≤","\\le");i(l,h,f,"≤","\\leq",!0);i(l,h,f,"<","\\lt",!0);i(l,h,f,"→","\\rightarrow",!0);i(l,h,f,"→","\\to");i(l,d,f,"≱","\\ngeq",!0);i(l,d,f,"≰","\\nleq",!0);i(l,h,R0," ","\\ ");i(l,h,R0," ","\\space");i(l,h,R0," ","\\nobreakspace");i(k,h,R0," ","\\ ");i(k,h,R0," "," ");i(k,h,R0," ","\\space");i(k,h,R0," ","\\nobreakspace");i(l,h,R0,null,"\\nobreak");i(l,h,R0,null,"\\allowbreak");i(l,h,Ie,",",",");i(l,h,Ie,";",";");i(l,d,N,"⊼","\\barwedge",!0);i(l,d,N,"⊻","\\veebar",!0);i(l,h,N,"⊙","\\odot",!0);i(l,h,N,"⊕","\\oplus",!0);i(l,h,N,"⊗","\\otimes",!0);i(l,h,v,"∂","\\partial",!0);i(l,h,N,"⊘","\\oslash",!0);i(l,d,N,"⊚","\\circledcirc",!0);i(l,d,N,"⊡","\\boxdot",!0);i(l,h,N,"△","\\bigtriangleup");i(l,h,N,"▽","\\bigtriangledown");i(l,h,N,"†","\\dagger");i(l,h,N,"⋄","\\diamond");i(l,h,N,"⋆","\\star");i(l,h,N,"◃","\\triangleleft");i(l,h,N,"▹","\\triangleright");i(l,h,m0,"{","\\{");i(k,h,v,"{","\\{");i(k,h,v,"{","\\textbraceleft");i(l,h,i0,"}","\\}");i(k,h,v,"}","\\}");i(k,h,v,"}","\\textbraceright");i(l,h,m0,"{","\\lbrace");i(l,h,i0,"}","\\rbrace");i(l,h,m0,"[","\\lbrack",!0);i(k,h,v,"[","\\lbrack",!0);i(l,h,i0,"]","\\rbrack",!0);i(k,h,v,"]","\\rbrack",!0);i(l,h,m0,"(","\\lparen",!0);i(l,h,i0,")","\\rparen",!0);i(k,h,v,"<","\\textless",!0);i(k,h,v,">","\\textgreater",!0);i(l,h,m0,"⌊","\\lfloor",!0);i(l,h,i0,"⌋","\\rfloor",!0);i(l,h,m0,"⌈","\\lceil",!0);i(l,h,i0,"⌉","\\rceil",!0);i(l,h,v,"\\","\\backslash");i(l,h,v,"∣","|");i(l,h,v,"∣","\\vert");i(k,h,v,"|","\\textbar",!0);i(l,h,v,"∥","\\|");i(l,h,v,"∥","\\Vert");i(k,h,v,"∥","\\textbardbl");i(k,h,v,"~","\\textasciitilde");i(k,h,v,"\\","\\textbackslash");i(k,h,v,"^","\\textasciicircum");i(l,h,f,"↑","\\uparrow",!0);i(l,h,f,"⇑","\\Uparrow",!0);i(l,h,f,"↓","\\downarrow",!0);i(l,h,f,"⇓","\\Downarrow",!0);i(l,h,f,"↕","\\updownarrow",!0);i(l,h,f,"⇕","\\Updownarrow",!0);i(l,h,_,"∐","\\coprod");i(l,h,_,"⋁","\\bigvee");i(l,h,_,"⋀","\\bigwedge");i(l,h,_,"⨄","\\biguplus");i(l,h,_,"⋂","\\bigcap");i(l,h,_,"⋃","\\bigcup");i(l,h,_,"∫","\\int");i(l,h,_,"∫","\\intop");i(l,h,_,"∬","\\iint");i(l,h,_,"∭","\\iiint");i(l,h,_,"∏","\\prod");i(l,h,_,"∑","\\sum");i(l,h,_,"⨂","\\bigotimes");i(l,h,_,"⨁","\\bigoplus");i(l,h,_,"⨀","\\bigodot");i(l,h,_,"∮","\\oint");i(l,h,_,"∯","\\oiint");i(l,h,_,"∰","\\oiiint");i(l,h,_,"⨆","\\bigsqcup");i(l,h,_,"∫","\\smallint");i(k,h,te,"…","\\textellipsis");i(l,h,te,"…","\\mathellipsis");i(k,h,te,"…","\\ldots",!0);i(l,h,te,"…","\\ldots",!0);i(l,h,te,"⋯","\\@cdots",!0);i(l,h,te,"⋱","\\ddots",!0);i(l,h,v,"⋮","\\varvdots");i(l,h,W,"ˊ","\\acute");i(l,h,W,"ˋ","\\grave");i(l,h,W,"¨","\\ddot");i(l,h,W,"~","\\tilde");i(l,h,W,"ˉ","\\bar");i(l,h,W,"˘","\\breve");i(l,h,W,"ˇ","\\check");i(l,h,W,"^","\\hat");i(l,h,W,"⃗","\\vec");i(l,h,W,"˙","\\dot");i(l,h,W,"˚","\\mathring");i(l,h,R,"","\\@imath");i(l,h,R,"","\\@jmath");i(l,h,v,"ı","ı");i(l,h,v,"ȷ","ȷ");i(k,h,v,"ı","\\i",!0);i(k,h,v,"ȷ","\\j",!0);i(k,h,v,"ß","\\ss",!0);i(k,h,v,"æ","\\ae",!0);i(k,h,v,"œ","\\oe",!0);i(k,h,v,"ø","\\o",!0);i(k,h,v,"Æ","\\AE",!0);i(k,h,v,"Œ","\\OE",!0);i(k,h,v,"Ø","\\O",!0);i(k,h,W,"ˊ","\\'");i(k,h,W,"ˋ","\\`");i(k,h,W,"ˆ","\\^");i(k,h,W,"˜","\\~");i(k,h,W,"ˉ","\\=");i(k,h,W,"˘","\\u");i(k,h,W,"˙","\\.");i(k,h,W,"¸","\\c");i(k,h,W,"˚","\\r");i(k,h,W,"ˇ","\\v");i(k,h,W,"¨",'\\"');i(k,h,W,"˝","\\H");i(k,h,W,"◯","\\textcircled");var xr={"--":!0,"---":!0,"``":!0,"''":!0};i(k,h,v,"–","--",!0);i(k,h,v,"–","\\textendash");i(k,h,v,"—","---",!0);i(k,h,v,"—","\\textemdash");i(k,h,v,"‘","`",!0);i(k,h,v,"‘","\\textquoteleft");i(k,h,v,"’","'",!0);i(k,h,v,"’","\\textquoteright");i(k,h,v,"“","``",!0);i(k,h,v,"“","\\textquotedblleft");i(k,h,v,"”","''",!0);i(k,h,v,"”","\\textquotedblright");i(l,h,v,"°","\\degree",!0);i(k,h,v,"°","\\degree");i(k,h,v,"°","\\textdegree",!0);i(l,h,v,"£","\\pounds");i(l,h,v,"£","\\mathsterling",!0);i(k,h,v,"£","\\pounds");i(k,h,v,"£","\\textsterling",!0);i(l,d,v,"✠","\\maltese");i(k,d,v,"✠","\\maltese");var Pt='0123456789/@."';for(var Ye=0;Ye<Pt.length;Ye++){var Gt=Pt.charAt(Ye);i(l,h,v,Gt,Gt)}var Vt='0123456789!@*()-=+";:?/.,';for(var Xe=0;Xe<Vt.length;Xe++){var Ut=Vt.charAt(Xe);i(k,h,v,Ut,Ut)}var Ne="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(var $e=0;$e<Ne.length;$e++){var be=Ne.charAt($e);i(l,h,R,be,be),i(k,h,v,be,be)}i(l,d,v,"C","ℂ");i(k,d,v,"C","ℂ");i(l,d,v,"H","ℍ");i(k,d,v,"H","ℍ");i(l,d,v,"N","ℕ");i(k,d,v,"N","ℕ");i(l,d,v,"P","ℙ");i(k,d,v,"P","ℙ");i(l,d,v,"Q","ℚ");i(k,d,v,"Q","ℚ");i(l,d,v,"R","ℝ");i(k,d,v,"R","ℝ");i(l,d,v,"Z","ℤ");i(k,d,v,"Z","ℤ");i(l,h,R,"h","ℎ");i(k,h,R,"h","ℎ");var D="";for(var a0=0;a0<Ne.length;a0++){var J=Ne.charAt(a0);D=String.fromCharCode(55349,56320+a0),i(l,h,R,J,D),i(k,h,v,J,D),D=String.fromCharCode(55349,56372+a0),i(l,h,R,J,D),i(k,h,v,J,D),D=String.fromCharCode(55349,56424+a0),i(l,h,R,J,D),i(k,h,v,J,D),D=String.fromCharCode(55349,56580+a0),i(l,h,R,J,D),i(k,h,v,J,D),D=String.fromCharCode(55349,56684+a0),i(l,h,R,J,D),i(k,h,v,J,D),D=String.fromCharCode(55349,56736+a0),i(l,h,R,J,D),i(k,h,v,J,D),D=String.fromCharCode(55349,56788+a0),i(l,h,R,J,D),i(k,h,v,J,D),D=String.fromCharCode(55349,56840+a0),i(l,h,R,J,D),i(k,h,v,J,D),D=String.fromCharCode(55349,56944+a0),i(l,h,R,J,D),i(k,h,v,J,D),a0<26&&(D=String.fromCharCode(55349,56632+a0),i(l,h,R,J,D),i(k,h,v,J,D),D=String.fromCharCode(55349,56476+a0),i(l,h,R,J,D),i(k,h,v,J,D))}D="𝕜";i(l,h,R,"k",D);i(k,h,v,"k",D);for(var Y0=0;Y0<10;Y0++){var H0=Y0.toString();D=String.fromCharCode(55349,57294+Y0),i(l,h,R,H0,D),i(k,h,v,H0,D),D=String.fromCharCode(55349,57314+Y0),i(l,h,R,H0,D),i(k,h,v,H0,D),D=String.fromCharCode(55349,57324+Y0),i(l,h,R,H0,D),i(k,h,v,H0,D),D=String.fromCharCode(55349,57334+Y0),i(l,h,R,H0,D),i(k,h,v,H0,D)}var st="ÐÞþ";for(var We=0;We<st.length;We++){var ye=st.charAt(We);i(l,h,R,ye,ye),i(k,h,v,ye,ye)}var we=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],Yt=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],Ka=function(e,t){var a=e.charCodeAt(0),n=e.charCodeAt(1),s=(a-55296)*1024+(n-56320)+65536,o=t==="math"?0:1;if(119808<=s&&s<120484){var m=Math.floor((s-119808)/26);return[we[m][2],we[m][o]]}else if(120782<=s&&s<=120831){var c=Math.floor((s-120782)/10);return[Yt[c][2],Yt[c][o]]}else{if(s===120485||s===120486)return[we[0][2],we[0][o]];if(120486<s&&s<120782)return["",""];throw new M("Unsupported character: "+e)}},De=function(e,t,a){return $[a][e]&&$[a][e].replace&&(e=$[a][e].replace),{value:e,metrics:ft(e,t,a)}},g0=function(e,t,a,n,s){var o=De(e,t,a),m=o.metrics;e=o.value;var c;if(m){var p=m.italic;(a==="text"||n&&n.font==="mathit")&&(p=0),c=new f0(e,m.height,m.depth,p,m.skew,m.width,s)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+e+"' in style '"+t+"' and mode '"+a+"'")),c=new f0(e,0,0,0,0,0,s);if(n){c.maxFontSize=n.sizeMultiplier,n.style.isTight()&&c.classes.push("mtight");var g=n.getColor();g&&(c.style.color=g)}return c},Ja=function(e,t,a,n){return n===void 0&&(n=[]),a.font==="boldsymbol"&&De(e,"Main-Bold",t).metrics?g0(e,"Main-Bold",t,a,n.concat(["mathbf"])):e==="\\"||$[t][e].font==="main"?g0(e,"Main-Regular",t,a,n):g0(e,"AMS-Regular",t,a,n.concat(["amsrm"]))},Qa=function(e,t,a,n,s){return s!=="textord"&&De(e,"Math-BoldItalic",t).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},_a=function(e,t,a){var n=e.mode,s=e.text,o=["mord"],m=n==="math"||n==="text"&&t.font,c=m?t.font:t.fontFamily,p="",g="";if(s.charCodeAt(0)===55349&&([p,g]=Ka(s,n)),p.length>0)return g0(s,p,n,t,o.concat(g));if(c){var y,x;if(c==="boldsymbol"){var w=Qa(s,n,t,o,a);y=w.fontName,x=[w.fontClass]}else m?(y=Mr[c].fontName,x=[c]):(y=xe(c,t.fontWeight,t.fontShape),x=[c,t.fontWeight,t.fontShape]);if(De(s,y,n).metrics)return g0(s,y,n,t,o.concat(x));if(xr.hasOwnProperty(s)&&y.slice(0,10)==="Typewriter"){for(var z=[],A=0;A<s.length;A++)z.push(g0(s[A],y,n,t,o.concat(x)));return Sr(z)}}if(a==="mathord")return g0(s,"Math-Italic",n,t,o.concat(["mathnormal"]));if(a==="textord"){var C=$[n][s]&&$[n][s].font;if(C==="ams"){var q=xe("amsrm",t.fontWeight,t.fontShape);return g0(s,q,n,t,o.concat("amsrm",t.fontWeight,t.fontShape))}else if(C==="main"||!C){var O=xe("textrm",t.fontWeight,t.fontShape);return g0(s,O,n,t,o.concat(t.fontWeight,t.fontShape))}else{var H=xe(C,t.fontWeight,t.fontShape);return g0(s,H,n,t,o.concat(H,t.fontWeight,t.fontShape))}}else throw new Error("unexpected type: "+a+" in makeOrd")},e1=(r,e)=>{if(F0(r.classes)!==F0(e.classes)||r.skew!==e.skew||r.maxFontSize!==e.maxFontSize)return!1;if(r.classes.length===1){var t=r.classes[0];if(t==="mbin"||t==="mord")return!1}for(var a in r.style)if(r.style.hasOwnProperty(a)&&r.style[a]!==e.style[a])return!1;for(var n in e.style)if(e.style.hasOwnProperty(n)&&r.style[n]!==e.style[n])return!1;return!0},t1=r=>{for(var e=0;e<r.length-1;e++){var t=r[e],a=r[e+1];t instanceof f0&&a instanceof f0&&e1(t,a)&&(t.text+=a.text,t.height=Math.max(t.height,a.height),t.depth=Math.max(t.depth,a.depth),t.italic=a.italic,r.splice(e+1,1),e--)}return r},vt=function(e){for(var t=0,a=0,n=0,s=0;s<e.children.length;s++){var o=e.children[s];o.height>t&&(t=o.height),o.depth>a&&(a=o.depth),o.maxFontSize>n&&(n=o.maxFontSize)}e.height=t,e.depth=a,e.maxFontSize=n},l0=function(e,t,a,n){var s=new ue(e,t,a,n);return vt(s),s},kr=(r,e,t,a)=>new ue(r,e,t,a),r1=function(e,t,a){var n=l0([e],[],t);return n.height=Math.max(a||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),n.style.borderBottomWidth=T(n.height),n.maxFontSize=1,n},a1=function(e,t,a,n){var s=new pt(e,t,a,n);return vt(s),s},Sr=function(e){var t=new me(e);return vt(t),t},n1=function(e,t){return e instanceof me?l0([],[e],t):e},i1=function(e){if(e.positionType==="individualShift"){for(var t=e.children,a=[t[0]],n=-t[0].shift-t[0].elem.depth,s=n,o=1;o<t.length;o++){var m=-t[o].shift-s-t[o].elem.depth,c=m-(t[o-1].elem.height+t[o-1].elem.depth);s=s+m,a.push({type:"kern",size:c}),a.push(t[o])}return{children:a,depth:n}}var p;if(e.positionType==="top"){for(var g=e.positionData,y=0;y<e.children.length;y++){var x=e.children[y];g-=x.type==="kern"?x.size:x.elem.height+x.elem.depth}p=g}else if(e.positionType==="bottom")p=-e.positionData;else{var w=e.children[0];if(w.type!=="elem")throw new Error('First child must have type "elem".');if(e.positionType==="shift")p=-w.elem.depth-e.positionData;else if(e.positionType==="firstBaseline")p=-w.elem.depth;else throw new Error("Invalid positionType "+e.positionType+".")}return{children:e.children,depth:p}},s1=function(e,t){for(var{children:a,depth:n}=i1(e),s=0,o=0;o<a.length;o++){var m=a[o];if(m.type==="elem"){var c=m.elem;s=Math.max(s,c.maxFontSize,c.height)}}s+=2;var p=l0(["pstrut"],[]);p.style.height=T(s);for(var g=[],y=n,x=n,w=n,z=0;z<a.length;z++){var A=a[z];if(A.type==="kern")w+=A.size;else{var C=A.elem,q=A.wrapperClasses||[],O=A.wrapperStyle||{},H=l0(q,[p,C],void 0,O);H.style.top=T(-s-w-C.depth),A.marginLeft&&(H.style.marginLeft=A.marginLeft),A.marginRight&&(H.style.marginRight=A.marginRight),g.push(H),w+=C.height+C.depth}y=Math.min(y,w),x=Math.max(x,w)}var V=l0(["vlist"],g);V.style.height=T(x);var F;if(y<0){var U=l0([],[]),G=l0(["vlist"],[U]);G.style.height=T(-y);var j=l0(["vlist-s"],[new f0("")]);F=[l0(["vlist-r"],[V,j]),l0(["vlist-r"],[G])]}else F=[l0(["vlist-r"],[V])];var Y=l0(["vlist-t"],F);return F.length===2&&Y.classes.push("vlist-t2"),Y.height=x,Y.depth=-y,Y},l1=(r,e)=>{var t=l0(["mspace"],[],e),a=K(r,e);return t.style.marginRight=T(a),t},xe=function(e,t,a){var n="";switch(e){case"amsrm":n="AMS";break;case"textrm":n="Main";break;case"textsf":n="SansSerif";break;case"texttt":n="Typewriter";break;default:n=e}var s;return t==="textbf"&&a==="textit"?s="BoldItalic":t==="textbf"?s="Bold":t==="textit"?s="Italic":s="Regular",n+"-"+s},Mr={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"}},zr={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},o1=function(e,t){var[a,n,s]=zr[e],o=new P0(a),m=new N0([o],{width:T(n),height:T(s),style:"width:"+T(n),viewBox:"0 0 "+1e3*n+" "+1e3*s,preserveAspectRatio:"xMinYMin"}),c=kr(["overlay"],[m],t);return c.height=s,c.style.height=T(s),c.style.width=T(n),c},b={fontMap:Mr,makeSymbol:g0,mathsym:Ja,makeSpan:l0,makeSvgSpan:kr,makeLineSpan:r1,makeAnchor:a1,makeFragment:Sr,wrapFragment:n1,makeVList:s1,makeOrd:_a,makeGlue:l1,staticSvg:o1,svgData:zr,tryCombineChars:t1},Z={number:3,unit:"mu"},X0={number:4,unit:"mu"},z0={number:5,unit:"mu"},h1={mord:{mop:Z,mbin:X0,mrel:z0,minner:Z},mop:{mord:Z,mop:Z,mrel:z0,minner:Z},mbin:{mord:X0,mop:X0,mopen:X0,minner:X0},mrel:{mord:z0,mop:z0,mopen:z0,minner:z0},mopen:{},mclose:{mop:Z,mbin:X0,mrel:z0,minner:Z},mpunct:{mord:Z,mop:Z,mrel:z0,mopen:Z,mclose:Z,mpunct:Z,minner:Z},minner:{mord:Z,mop:Z,mbin:X0,mrel:z0,mopen:Z,mpunct:Z,minner:Z}},m1={mord:{mop:Z},mop:{mord:Z,mop:Z},mbin:{},mrel:{},mopen:{},mclose:{mop:Z},mpunct:{},minner:{mop:Z}},Tr={},Ce={},qe={};function B(r){for(var{type:e,names:t,props:a,handler:n,htmlBuilder:s,mathmlBuilder:o}=r,m={type:e,numArgs:a.numArgs,argTypes:a.argTypes,allowedInArgument:!!a.allowedInArgument,allowedInText:!!a.allowedInText,allowedInMath:a.allowedInMath===void 0?!0:a.allowedInMath,numOptionalArgs:a.numOptionalArgs||0,infix:!!a.infix,primitive:!!a.primitive,handler:n},c=0;c<t.length;++c)Tr[t[c]]=m;e&&(s&&(Ce[e]=s),o&&(qe[e]=o))}function $0(r){var{type:e,htmlBuilder:t,mathmlBuilder:a}=r;B({type:e,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:t,mathmlBuilder:a})}var Re=function(e){return e.type==="ordgroup"&&e.body.length===1?e.body[0]:e},Q=function(e){return e.type==="ordgroup"?e.body:[e]},C0=b.makeSpan,u1=["leftmost","mbin","mopen","mrel","mop","mpunct"],c1=["rightmost","mrel","mclose","mpunct"],d1={display:I.DISPLAY,text:I.TEXT,script:I.SCRIPT,scriptscript:I.SCRIPTSCRIPT},f1={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},t0=function(e,t,a,n){n===void 0&&(n=[null,null]);for(var s=[],o=0;o<e.length;o++){var m=P(e[o],t);if(m instanceof me){var c=m.children;s.push(...c)}else s.push(m)}if(b.tryCombineChars(s),!a)return s;var p=t;if(e.length===1){var g=e[0];g.type==="sizing"?p=t.havingSize(g.size):g.type==="styling"&&(p=t.havingStyle(d1[g.style]))}var y=C0([n[0]||"leftmost"],[],t),x=C0([n[1]||"rightmost"],[],t),w=a==="root";return Xt(s,(z,A)=>{var C=A.classes[0],q=z.classes[0];C==="mbin"&&E.contains(c1,q)?A.classes[0]="mord":q==="mbin"&&E.contains(u1,C)&&(z.classes[0]="mord")},{node:y},x,w),Xt(s,(z,A)=>{var C=lt(A),q=lt(z),O=C&&q?z.hasClass("mtight")?m1[C][q]:h1[C][q]:null;if(O)return b.makeGlue(O,p)},{node:y},x,w),s},Xt=function r(e,t,a,n,s){n&&e.push(n);for(var o=0;o<e.length;o++){var m=e[o],c=Ar(m);if(c){r(c.children,t,a,null,s);continue}var p=!m.hasClass("mspace");if(p){var g=t(m,a.node);g&&(a.insertAfter?a.insertAfter(g):(e.unshift(g),o++))}p?a.node=m:s&&m.hasClass("newline")&&(a.node=C0(["leftmost"])),a.insertAfter=(y=>x=>{e.splice(y+1,0,x),o++})(o)}n&&e.pop()},Ar=function(e){return e instanceof me||e instanceof pt||e instanceof ue&&e.hasClass("enclosing")?e:null},p1=function r(e,t){var a=Ar(e);if(a){var n=a.children;if(n.length){if(t==="right")return r(n[n.length-1],"right");if(t==="left")return r(n[0],"left")}}return e},lt=function(e,t){return e?(t&&(e=p1(e,t)),f1[e.classes[0]]||null):null},oe=function(e,t){var a=["nulldelimiter"].concat(e.baseSizingClasses());return C0(t.concat(a))},P=function(e,t,a){if(!e)return C0();if(Ce[e.type]){var n=Ce[e.type](e,t);if(a&&t.size!==a.size){n=C0(t.sizingClasses(a),[n],t);var s=t.sizeMultiplier/a.sizeMultiplier;n.height*=s,n.depth*=s}return n}else throw new M("Got group of unknown type: '"+e.type+"'")};function ke(r,e){var t=C0(["base"],r,e),a=C0(["strut"]);return a.style.height=T(t.height+t.depth),t.depth&&(a.style.verticalAlign=T(-t.depth)),t.children.unshift(a),t}function ot(r,e){var t=null;r.length===1&&r[0].type==="tag"&&(t=r[0].tag,r=r[0].body);var a=t0(r,e,"root"),n;a.length===2&&a[1].hasClass("tag")&&(n=a.pop());for(var s=[],o=[],m=0;m<a.length;m++)if(o.push(a[m]),a[m].hasClass("mbin")||a[m].hasClass("mrel")||a[m].hasClass("allowbreak")){for(var c=!1;m<a.length-1&&a[m+1].hasClass("mspace")&&!a[m+1].hasClass("newline");)m++,o.push(a[m]),a[m].hasClass("nobreak")&&(c=!0);c||(s.push(ke(o,e)),o=[])}else a[m].hasClass("newline")&&(o.pop(),o.length>0&&(s.push(ke(o,e)),o=[]),s.push(a[m]));o.length>0&&s.push(ke(o,e));var p;t?(p=ke(t0(t,e,!0)),p.classes=["tag"],s.push(p)):n&&s.push(n);var g=C0(["katex-html"],s);if(g.setAttribute("aria-hidden","true"),p){var y=p.children[0];y.style.height=T(g.height+g.depth),g.depth&&(y.style.verticalAlign=T(-g.depth))}return g}function Br(r){return new me(r)}class c0{constructor(e,t,a){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=t||[],this.classes=a||[]}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);this.classes.length>0&&(e.className=F0(this.classes));for(var a=0;a<this.children.length;a++)e.appendChild(this.children[a].toNode());return e}toMarkup(){var e="<"+this.type;for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+'="',e+=E.escape(this.attributes[t]),e+='"');this.classes.length>0&&(e+=' class ="'+E.escape(F0(this.classes))+'"'),e+=">";for(var a=0;a<this.children.length;a++)e+=this.children[a].toMarkup();return e+="</"+this.type+">",e}toText(){return this.children.map(e=>e.toText()).join("")}}class ie{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return E.escape(this.toText())}toText(){return this.text}}class v1{constructor(e){this.width=void 0,this.character=void 0,this.width=e,e>=.05555&&e<=.05556?this.character=" ":e>=.1666&&e<=.1667?this.character=" ":e>=.2222&&e<=.2223?this.character=" ":e>=.2777&&e<=.2778?this.character=" ":e>=-.05556&&e<=-.05555?this.character=" ":e>=-.1667&&e<=-.1666?this.character=" ":e>=-.2223&&e<=-.2222?this.character=" ":e>=-.2778&&e<=-.2777?this.character=" ":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",T(this.width)),e}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+T(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var S={MathNode:c0,TextNode:ie,SpaceNode:v1,newDocumentFragment:Br},p0=function(e,t,a){return $[t][e]&&$[t][e].replace&&e.charCodeAt(0)!==55349&&!(xr.hasOwnProperty(e)&&a&&(a.fontFamily&&a.fontFamily.slice(4,6)==="tt"||a.font&&a.font.slice(4,6)==="tt"))&&(e=$[t][e].replace),new S.TextNode(e)},gt=function(e){return e.length===1?e[0]:new S.MathNode("mrow",e)},bt=function(e,t){if(t.fontFamily==="texttt")return"monospace";if(t.fontFamily==="textsf")return t.fontShape==="textit"&&t.fontWeight==="textbf"?"sans-serif-bold-italic":t.fontShape==="textit"?"sans-serif-italic":t.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(t.fontShape==="textit"&&t.fontWeight==="textbf")return"bold-italic";if(t.fontShape==="textit")return"italic";if(t.fontWeight==="textbf")return"bold";var a=t.font;if(!a||a==="mathnormal")return null;var n=e.mode;if(a==="mathit")return"italic";if(a==="boldsymbol")return e.type==="textord"?"bold":"bold-italic";if(a==="mathbf")return"bold";if(a==="mathbb")return"double-struck";if(a==="mathfrak")return"fraktur";if(a==="mathscr"||a==="mathcal")return"script";if(a==="mathsf")return"sans-serif";if(a==="mathtt")return"monospace";var s=e.text;if(E.contains(["\\imath","\\jmath"],s))return null;$[n][s]&&$[n][s].replace&&(s=$[n][s].replace);var o=b.fontMap[a].fontName;return ft(s,o,n)?b.fontMap[a].variant:null},o0=function(e,t,a){if(e.length===1){var n=X(e[0],t);return a&&n instanceof c0&&n.type==="mo"&&(n.setAttribute("lspace","0em"),n.setAttribute("rspace","0em")),[n]}for(var s=[],o,m=0;m<e.length;m++){var c=X(e[m],t);if(c instanceof c0&&o instanceof c0){if(c.type==="mtext"&&o.type==="mtext"&&c.getAttribute("mathvariant")===o.getAttribute("mathvariant")){o.children.push(...c.children);continue}else if(c.type==="mn"&&o.type==="mn"){o.children.push(...c.children);continue}else if(c.type==="mi"&&c.children.length===1&&o.type==="mn"){var p=c.children[0];if(p instanceof ie&&p.text==="."){o.children.push(...c.children);continue}}else if(o.type==="mi"&&o.children.length===1){var g=o.children[0];if(g instanceof ie&&g.text==="̸"&&(c.type==="mo"||c.type==="mi"||c.type==="mn")){var y=c.children[0];y instanceof ie&&y.text.length>0&&(y.text=y.text.slice(0,1)+"̸"+y.text.slice(1),s.pop())}}}s.push(c),o=c}return s},G0=function(e,t,a){return gt(o0(e,t,a))},X=function(e,t){if(!e)return new S.MathNode("mrow");if(qe[e.type]){var a=qe[e.type](e,t);return a}else throw new M("Got group of unknown type: '"+e.type+"'")};function $t(r,e,t,a,n){var s=o0(r,t),o;s.length===1&&s[0]instanceof c0&&E.contains(["mrow","mtable"],s[0].type)?o=s[0]:o=new S.MathNode("mrow",s);var m=new S.MathNode("annotation",[new S.TextNode(e)]);m.setAttribute("encoding","application/x-tex");var c=new S.MathNode("semantics",[o,m]),p=new S.MathNode("math",[c]);p.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),a&&p.setAttribute("display","block");var g=n?"katex":"katex-mathml";return b.makeSpan([g],[p])}var Nr=function(e){return new T0({style:e.displayMode?I.DISPLAY:I.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},Cr=function(e,t){if(t.displayMode){var a=["katex-display"];t.leqno&&a.push("leqno"),t.fleqn&&a.push("fleqn"),e=b.makeSpan(a,[e])}return e},g1=function(e,t,a){var n=Nr(a),s;if(a.output==="mathml")return $t(e,t,n,a.displayMode,!0);if(a.output==="html"){var o=ot(e,n);s=b.makeSpan(["katex"],[o])}else{var m=$t(e,t,n,a.displayMode,!1),c=ot(e,n);s=b.makeSpan(["katex"],[m,c])}return Cr(s,a)},b1=function(e,t,a){var n=Nr(a),s=ot(e,n),o=b.makeSpan(["katex"],[s]);return Cr(o,a)},y1={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},w1=function(e){var t=new S.MathNode("mo",[new S.TextNode(y1[e.replace(/^\\/,"")])]);return t.setAttribute("stretchy","true"),t},x1={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]},k1=function(e){return e.type==="ordgroup"?e.body.length:1},S1=function(e,t){function a(){var m=4e5,c=e.label.slice(1);if(E.contains(["widehat","widecheck","widetilde","utilde"],c)){var p=e,g=k1(p.base),y,x,w;if(g>5)c==="widehat"||c==="widecheck"?(y=420,m=2364,w=.42,x=c+"4"):(y=312,m=2340,w=.34,x="tilde4");else{var z=[1,1,2,2,3,3][g];c==="widehat"||c==="widecheck"?(m=[0,1062,2364,2364,2364][z],y=[0,239,300,360,420][z],w=[0,.24,.3,.3,.36,.42][z],x=c+z):(m=[0,600,1033,2339,2340][z],y=[0,260,286,306,312][z],w=[0,.26,.286,.3,.306,.34][z],x="tilde"+z)}var A=new P0(x),C=new N0([A],{width:"100%",height:T(w),viewBox:"0 0 "+m+" "+y,preserveAspectRatio:"none"});return{span:b.makeSvgSpan([],[C],t),minWidth:0,height:w}}else{var q=[],O=x1[c],[H,V,F]=O,U=F/1e3,G=H.length,j,Y;if(G===1){var M0=O[3];j=["hide-tail"],Y=[M0]}else if(G===2)j=["halfarrow-left","halfarrow-right"],Y=["xMinYMin","xMaxYMin"];else if(G===3)j=["brace-left","brace-center","brace-right"],Y=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
`+G+" children.");for(var r0=0;r0<G;r0++){var e0=new P0(H[r0]),U0=new N0([e0],{width:"400em",height:T(U),viewBox:"0 0 "+m+" "+F,preserveAspectRatio:Y[r0]+" slice"}),s0=b.makeSvgSpan([j[r0]],[U0],t);if(G===1)return{span:s0,minWidth:V,height:U};s0.style.height=T(U),q.push(s0)}return{span:b.makeSpan(["stretchy"],q,t),minWidth:V,height:U}}}var{span:n,minWidth:s,height:o}=a();return n.height=o,n.style.height=T(o),s>0&&(n.style.minWidth=T(s)),n},M1=function(e,t,a,n,s){var o,m=e.height+e.depth+a+n;if(/fbox|color|angl/.test(t)){if(o=b.makeSpan(["stretchy",t],[],s),t==="fbox"){var c=s.color&&s.getColor();c&&(o.style.borderColor=c)}}else{var p=[];/^[bx]cancel$/.test(t)&&p.push(new it({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&p.push(new it({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var g=new N0(p,{width:"100%",height:T(m)});o=b.makeSvgSpan([],[g],s)}return o.height=m,o.style.height=T(m),o},q0={encloseSpan:M1,mathMLnode:w1,svgSpan:S1};function L(r,e){if(!r||r.type!==e)throw new Error("Expected node of type "+e+", but got "+(r?"node of type "+r.type:String(r)));return r}function yt(r){var e=Ee(r);if(!e)throw new Error("Expected node of symbol group type, but got "+(r?"node of type "+r.type:String(r)));return e}function Ee(r){return r&&(r.type==="atom"||Za.hasOwnProperty(r.type))?r:null}var wt=(r,e)=>{var t,a,n;r&&r.type==="supsub"?(a=L(r.base,"accent"),t=a.base,r.base=t,n=Wa(P(r,e)),r.base=a):(a=L(r,"accent"),t=a.base);var s=P(t,e.havingCrampedStyle()),o=a.isShifty&&E.isCharacterBox(t),m=0;if(o){var c=E.getBaseElem(t),p=P(c,e.havingCrampedStyle());m=Ft(p).skew}var g=a.label==="\\c",y=g?s.height+s.depth:Math.min(s.height,e.fontMetrics().xHeight),x;if(a.isStretchy)x=q0.svgSpan(a,e),x=b.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"elem",elem:x,wrapperClasses:["svg-align"],wrapperStyle:m>0?{width:"calc(100% - "+T(2*m)+")",marginLeft:T(2*m)}:void 0}]},e);else{var w,z;a.label==="\\vec"?(w=b.staticSvg("vec",e),z=b.svgData.vec[1]):(w=b.makeOrd({mode:a.mode,text:a.label},e,"textord"),w=Ft(w),w.italic=0,z=w.width,g&&(y+=w.depth)),x=b.makeSpan(["accent-body"],[w]);var A=a.label==="\\textcircled";A&&(x.classes.push("accent-full"),y=s.height);var C=m;A||(C-=z/2),x.style.left=T(C),a.label==="\\textcircled"&&(x.style.top=".2em"),x=b.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:-y},{type:"elem",elem:x}]},e)}var q=b.makeSpan(["mord","accent"],[x],e);return n?(n.children[0]=q,n.height=Math.max(q.height,n.height),n.classes[0]="mord",n):q},qr=(r,e)=>{var t=r.isStretchy?q0.mathMLnode(r.label):new S.MathNode("mo",[p0(r.label,r.mode)]),a=new S.MathNode("mover",[X(r.base,e),t]);return a.setAttribute("accent","true"),a},z1=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(r=>"\\"+r).join("|"));B({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:(r,e)=>{var t=Re(e[0]),a=!z1.test(r.funcName),n=!a||r.funcName==="\\widehat"||r.funcName==="\\widetilde"||r.funcName==="\\widecheck";return{type:"accent",mode:r.parser.mode,label:r.funcName,isStretchy:a,isShifty:n,base:t}},htmlBuilder:wt,mathmlBuilder:qr});B({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(r,e)=>{var t=e[0],a=r.parser.mode;return a==="math"&&(r.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+r.funcName+" works only in text mode"),a="text"),{type:"accent",mode:a,label:r.funcName,isStretchy:!1,isShifty:!0,base:t}},htmlBuilder:wt,mathmlBuilder:qr});B({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(r,e)=>{var{parser:t,funcName:a}=r,n=e[0];return{type:"accentUnder",mode:t.mode,label:a,base:n}},htmlBuilder:(r,e)=>{var t=P(r.base,e),a=q0.svgSpan(r,e),n=r.label==="\\utilde"?.12:0,s=b.makeVList({positionType:"top",positionData:t.height,children:[{type:"elem",elem:a,wrapperClasses:["svg-align"]},{type:"kern",size:n},{type:"elem",elem:t}]},e);return b.makeSpan(["mord","accentunder"],[s],e)},mathmlBuilder:(r,e)=>{var t=q0.mathMLnode(r.label),a=new S.MathNode("munder",[X(r.base,e),t]);return a.setAttribute("accentunder","true"),a}});var Se=r=>{var e=new S.MathNode("mpadded",r?[r]:[]);return e.setAttribute("width","+0.6em"),e.setAttribute("lspace","0.3em"),e};B({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(r,e,t){var{parser:a,funcName:n}=r;return{type:"xArrow",mode:a.mode,label:n,body:e[0],below:t[0]}},htmlBuilder(r,e){var t=e.style,a=e.havingStyle(t.sup()),n=b.wrapFragment(P(r.body,a,e),e),s=r.label.slice(0,2)==="\\x"?"x":"cd";n.classes.push(s+"-arrow-pad");var o;r.below&&(a=e.havingStyle(t.sub()),o=b.wrapFragment(P(r.below,a,e),e),o.classes.push(s+"-arrow-pad"));var m=q0.svgSpan(r,e),c=-e.fontMetrics().axisHeight+.5*m.height,p=-e.fontMetrics().axisHeight-.5*m.height-.111;(n.depth>.25||r.label==="\\xleftequilibrium")&&(p-=n.depth);var g;if(o){var y=-e.fontMetrics().axisHeight+o.height+.5*m.height+.111;g=b.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:p},{type:"elem",elem:m,shift:c},{type:"elem",elem:o,shift:y}]},e)}else g=b.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:p},{type:"elem",elem:m,shift:c}]},e);return g.children[0].children[0].children[1].classes.push("svg-align"),b.makeSpan(["mrel","x-arrow"],[g],e)},mathmlBuilder(r,e){var t=q0.mathMLnode(r.label);t.setAttribute("minsize",r.label.charAt(0)==="x"?"1.75em":"3.0em");var a;if(r.body){var n=Se(X(r.body,e));if(r.below){var s=Se(X(r.below,e));a=new S.MathNode("munderover",[t,s,n])}else a=new S.MathNode("mover",[t,n])}else if(r.below){var o=Se(X(r.below,e));a=new S.MathNode("munder",[t,o])}else a=Se(),a=new S.MathNode("mover",[t,a]);return a}});var T1=b.makeSpan;function Rr(r,e){var t=t0(r.body,e,!0);return T1([r.mclass],t,e)}function Ir(r,e){var t,a=o0(r.body,e);return r.mclass==="minner"?t=new S.MathNode("mpadded",a):r.mclass==="mord"?r.isCharacterBox?(t=a[0],t.type="mi"):t=new S.MathNode("mi",a):(r.isCharacterBox?(t=a[0],t.type="mo"):t=new S.MathNode("mo",a),r.mclass==="mbin"?(t.attributes.lspace="0.22em",t.attributes.rspace="0.22em"):r.mclass==="mpunct"?(t.attributes.lspace="0em",t.attributes.rspace="0.17em"):r.mclass==="mopen"||r.mclass==="mclose"?(t.attributes.lspace="0em",t.attributes.rspace="0em"):r.mclass==="minner"&&(t.attributes.lspace="0.0556em",t.attributes.width="+0.1111em")),t}B({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(r,e){var{parser:t,funcName:a}=r,n=e[0];return{type:"mclass",mode:t.mode,mclass:"m"+a.slice(5),body:Q(n),isCharacterBox:E.isCharacterBox(n)}},htmlBuilder:Rr,mathmlBuilder:Ir});var Oe=r=>{var e=r.type==="ordgroup"&&r.body.length?r.body[0]:r;return e.type==="atom"&&(e.family==="bin"||e.family==="rel")?"m"+e.family:"mord"};B({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(r,e){var{parser:t}=r;return{type:"mclass",mode:t.mode,mclass:Oe(e[0]),body:Q(e[1]),isCharacterBox:E.isCharacterBox(e[1])}}});B({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(r,e){var{parser:t,funcName:a}=r,n=e[1],s=e[0],o;a!=="\\stackrel"?o=Oe(n):o="mrel";var m={type:"op",mode:n.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:a!=="\\stackrel",body:Q(n)},c={type:"supsub",mode:s.mode,base:m,sup:a==="\\underset"?null:s,sub:a==="\\underset"?s:null};return{type:"mclass",mode:t.mode,mclass:o,body:[c],isCharacterBox:E.isCharacterBox(c)}},htmlBuilder:Rr,mathmlBuilder:Ir});B({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(r,e){var{parser:t}=r;return{type:"pmb",mode:t.mode,mclass:Oe(e[0]),body:Q(e[0])}},htmlBuilder(r,e){var t=t0(r.body,e,!0),a=b.makeSpan([r.mclass],t,e);return a.style.textShadow="0.02em 0.01em 0.04px",a},mathmlBuilder(r,e){var t=o0(r.body,e),a=new S.MathNode("mstyle",t);return a.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),a}});var A1={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},Wt=()=>({type:"styling",body:[],mode:"math",style:"display"}),jt=r=>r.type==="textord"&&r.text==="@",B1=(r,e)=>(r.type==="mathord"||r.type==="atom")&&r.text===e;function N1(r,e,t){var a=A1[r];switch(a){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return t.callFunction(a,[e[0]],[e[1]]);case"\\uparrow":case"\\downarrow":{var n=t.callFunction("\\\\cdleft",[e[0]],[]),s={type:"atom",text:a,mode:"math",family:"rel"},o=t.callFunction("\\Big",[s],[]),m=t.callFunction("\\\\cdright",[e[1]],[]),c={type:"ordgroup",mode:"math",body:[n,o,m]};return t.callFunction("\\\\cdparent",[c],[])}case"\\\\cdlongequal":return t.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var p={type:"textord",text:"\\Vert",mode:"math"};return t.callFunction("\\Big",[p],[])}default:return{type:"textord",text:" ",mode:"math"}}}function C1(r){var e=[];for(r.gullet.beginGroup(),r.gullet.macros.set("\\cr","\\\\\\relax"),r.gullet.beginGroup();;){e.push(r.parseExpression(!1,"\\\\")),r.gullet.endGroup(),r.gullet.beginGroup();var t=r.fetch().text;if(t==="&"||t==="\\\\")r.consume();else if(t==="\\end"){e[e.length-1].length===0&&e.pop();break}else throw new M("Expected \\\\ or \\cr or \\end",r.nextToken)}for(var a=[],n=[a],s=0;s<e.length;s++){for(var o=e[s],m=Wt(),c=0;c<o.length;c++)if(!jt(o[c]))m.body.push(o[c]);else{a.push(m),c+=1;var p=yt(o[c]).text,g=new Array(2);if(g[0]={type:"ordgroup",mode:"math",body:[]},g[1]={type:"ordgroup",mode:"math",body:[]},!("=|.".indexOf(p)>-1))if("<>AV".indexOf(p)>-1)for(var y=0;y<2;y++){for(var x=!0,w=c+1;w<o.length;w++){if(B1(o[w],p)){x=!1,c=w;break}if(jt(o[w]))throw new M("Missing a "+p+" character to complete a CD arrow.",o[w]);g[y].body.push(o[w])}if(x)throw new M("Missing a "+p+" character to complete a CD arrow.",o[c])}else throw new M('Expected one of "<>AV=|." after @',o[c]);var z=N1(p,g,r),A={type:"styling",body:[z],mode:"math",style:"display"};a.push(A),m=Wt()}s%2===0?a.push(m):a.shift(),a=[],n.push(a)}r.gullet.endGroup(),r.gullet.endGroup();var C=new Array(n[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:n,arraystretch:1,addJot:!0,rowGaps:[null],cols:C,colSeparationType:"CD",hLinesBeforeRow:new Array(n.length+1).fill([])}}B({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(r,e){var{parser:t,funcName:a}=r;return{type:"cdlabel",mode:t.mode,side:a.slice(4),label:e[0]}},htmlBuilder(r,e){var t=e.havingStyle(e.style.sup()),a=b.wrapFragment(P(r.label,t,e),e);return a.classes.push("cd-label-"+r.side),a.style.bottom=T(.8-a.depth),a.height=0,a.depth=0,a},mathmlBuilder(r,e){var t=new S.MathNode("mrow",[X(r.label,e)]);return t=new S.MathNode("mpadded",[t]),t.setAttribute("width","0"),r.side==="left"&&t.setAttribute("lspace","-1width"),t.setAttribute("voffset","0.7em"),t=new S.MathNode("mstyle",[t]),t.setAttribute("displaystyle","false"),t.setAttribute("scriptlevel","1"),t}});B({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(r,e){var{parser:t}=r;return{type:"cdlabelparent",mode:t.mode,fragment:e[0]}},htmlBuilder(r,e){var t=b.wrapFragment(P(r.fragment,e),e);return t.classes.push("cd-vert-arrow"),t},mathmlBuilder(r,e){return new S.MathNode("mrow",[X(r.fragment,e)])}});B({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(r,e){for(var{parser:t}=r,a=L(e[0],"ordgroup"),n=a.body,s="",o=0;o<n.length;o++){var m=L(n[o],"textord");s+=m.text}var c=parseInt(s),p;if(isNaN(c))throw new M("\\@char has non-numeric argument "+s);if(c<0||c>=1114111)throw new M("\\@char with invalid code point "+s);return c<=65535?p=String.fromCharCode(c):(c-=65536,p=String.fromCharCode((c>>10)+55296,(c&1023)+56320)),{type:"textord",mode:t.mode,text:p}}});var Dr=(r,e)=>{var t=t0(r.body,e.withColor(r.color),!1);return b.makeFragment(t)},Er=(r,e)=>{var t=o0(r.body,e.withColor(r.color)),a=new S.MathNode("mstyle",t);return a.setAttribute("mathcolor",r.color),a};B({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(r,e){var{parser:t}=r,a=L(e[0],"color-token").color,n=e[1];return{type:"color",mode:t.mode,color:a,body:Q(n)}},htmlBuilder:Dr,mathmlBuilder:Er});B({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(r,e){var{parser:t,breakOnTokenText:a}=r,n=L(e[0],"color-token").color;t.gullet.macros.set("\\current@color",n);var s=t.parseExpression(!0,a);return{type:"color",mode:t.mode,color:n,body:s}},htmlBuilder:Dr,mathmlBuilder:Er});B({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(r,e,t){var{parser:a}=r,n=a.gullet.future().text==="["?a.parseSizeGroup(!0):null,s=!a.settings.displayMode||!a.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:a.mode,newLine:s,size:n&&L(n,"size").value}},htmlBuilder(r,e){var t=b.makeSpan(["mspace"],[],e);return r.newLine&&(t.classes.push("newline"),r.size&&(t.style.marginTop=T(K(r.size,e)))),t},mathmlBuilder(r,e){var t=new S.MathNode("mspace");return r.newLine&&(t.setAttribute("linebreak","newline"),r.size&&t.setAttribute("height",T(K(r.size,e)))),t}});var ht={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},Or=r=>{var e=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(e))throw new M("Expected a control sequence",r);return e},q1=r=>{var e=r.gullet.popToken();return e.text==="="&&(e=r.gullet.popToken(),e.text===" "&&(e=r.gullet.popToken())),e},Hr=(r,e,t,a)=>{var n=r.gullet.macros.get(t.text);n==null&&(t.noexpand=!0,n={tokens:[t],numArgs:0,unexpandable:!r.gullet.isExpandable(t.text)}),r.gullet.macros.set(e,n,a)};B({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(r){var{parser:e,funcName:t}=r;e.consumeSpaces();var a=e.fetch();if(ht[a.text])return(t==="\\global"||t==="\\\\globallong")&&(a.text=ht[a.text]),L(e.parseFunction(),"internal");throw new M("Invalid token after macro prefix",a)}});B({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(r){var{parser:e,funcName:t}=r,a=e.gullet.popToken(),n=a.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(n))throw new M("Expected a control sequence",a);for(var s=0,o,m=[[]];e.gullet.future().text!=="{";)if(a=e.gullet.popToken(),a.text==="#"){if(e.gullet.future().text==="{"){o=e.gullet.future(),m[s].push("{");break}if(a=e.gullet.popToken(),!/^[1-9]$/.test(a.text))throw new M('Invalid argument number "'+a.text+'"');if(parseInt(a.text)!==s+1)throw new M('Argument number "'+a.text+'" out of order');s++,m.push([])}else{if(a.text==="EOF")throw new M("Expected a macro definition");m[s].push(a.text)}var{tokens:c}=e.gullet.consumeArg();return o&&c.unshift(o),(t==="\\edef"||t==="\\xdef")&&(c=e.gullet.expandTokens(c),c.reverse()),e.gullet.macros.set(n,{tokens:c,numArgs:s,delimiters:m},t===ht[t]),{type:"internal",mode:e.mode}}});B({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(r){var{parser:e,funcName:t}=r,a=Or(e.gullet.popToken());e.gullet.consumeSpaces();var n=q1(e);return Hr(e,a,n,t==="\\\\globallet"),{type:"internal",mode:e.mode}}});B({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(r){var{parser:e,funcName:t}=r,a=Or(e.gullet.popToken()),n=e.gullet.popToken(),s=e.gullet.popToken();return Hr(e,a,s,t==="\\\\globalfuture"),e.gullet.pushToken(s),e.gullet.pushToken(n),{type:"internal",mode:e.mode}}});var ne=function(e,t,a){var n=$.math[e]&&$.math[e].replace,s=ft(n||e,t,a);if(!s)throw new Error("Unsupported symbol "+e+" and font size "+t+".");return s},xt=function(e,t,a,n){var s=a.havingBaseStyle(t),o=b.makeSpan(n.concat(s.sizingClasses(a)),[e],a),m=s.sizeMultiplier/a.sizeMultiplier;return o.height*=m,o.depth*=m,o.maxFontSize=s.sizeMultiplier,o},Lr=function(e,t,a){var n=t.havingBaseStyle(a),s=(1-t.sizeMultiplier/n.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=T(s),e.height-=s,e.depth+=s},R1=function(e,t,a,n,s,o){var m=b.makeSymbol(e,"Main-Regular",s,n),c=xt(m,t,n,o);return a&&Lr(c,n,t),c},I1=function(e,t,a,n){return b.makeSymbol(e,"Size"+t+"-Regular",a,n)},Fr=function(e,t,a,n,s,o){var m=I1(e,t,s,n),c=xt(b.makeSpan(["delimsizing","size"+t],[m],n),I.TEXT,n,o);return a&&Lr(c,n,I.TEXT),c},je=function(e,t,a){var n;t==="Size1-Regular"?n="delim-size1":n="delim-size4";var s=b.makeSpan(["delimsizinginner",n],[b.makeSpan([],[b.makeSymbol(e,t,a)])]);return{type:"elem",elem:s}},Ze=function(e,t,a){var n=y0["Size4-Regular"][e.charCodeAt(0)]?y0["Size4-Regular"][e.charCodeAt(0)][4]:y0["Size1-Regular"][e.charCodeAt(0)][4],s=new P0("inner",Fa(e,Math.round(1e3*t))),o=new N0([s],{width:T(n),height:T(t),style:"width:"+T(n),viewBox:"0 0 "+1e3*n+" "+Math.round(1e3*t),preserveAspectRatio:"xMinYMin"}),m=b.makeSvgSpan([],[o],a);return m.height=t,m.style.height=T(t),m.style.width=T(n),{type:"elem",elem:m}},mt=.008,Me={type:"kern",size:-1*mt},D1=["|","\\lvert","\\rvert","\\vert"],E1=["\\|","\\lVert","\\rVert","\\Vert"],Pr=function(e,t,a,n,s,o){var m,c,p,g,y="",x=0;m=p=g=e,c=null;var w="Size1-Regular";e==="\\uparrow"?p=g="⏐":e==="\\Uparrow"?p=g="‖":e==="\\downarrow"?m=p="⏐":e==="\\Downarrow"?m=p="‖":e==="\\updownarrow"?(m="\\uparrow",p="⏐",g="\\downarrow"):e==="\\Updownarrow"?(m="\\Uparrow",p="‖",g="\\Downarrow"):E.contains(D1,e)?(p="∣",y="vert",x=333):E.contains(E1,e)?(p="∥",y="doublevert",x=556):e==="["||e==="\\lbrack"?(m="⎡",p="⎢",g="⎣",w="Size4-Regular",y="lbrack",x=667):e==="]"||e==="\\rbrack"?(m="⎤",p="⎥",g="⎦",w="Size4-Regular",y="rbrack",x=667):e==="\\lfloor"||e==="⌊"?(p=m="⎢",g="⎣",w="Size4-Regular",y="lfloor",x=667):e==="\\lceil"||e==="⌈"?(m="⎡",p=g="⎢",w="Size4-Regular",y="lceil",x=667):e==="\\rfloor"||e==="⌋"?(p=m="⎥",g="⎦",w="Size4-Regular",y="rfloor",x=667):e==="\\rceil"||e==="⌉"?(m="⎤",p=g="⎥",w="Size4-Regular",y="rceil",x=667):e==="("||e==="\\lparen"?(m="⎛",p="⎜",g="⎝",w="Size4-Regular",y="lparen",x=875):e===")"||e==="\\rparen"?(m="⎞",p="⎟",g="⎠",w="Size4-Regular",y="rparen",x=875):e==="\\{"||e==="\\lbrace"?(m="⎧",c="⎨",g="⎩",p="⎪",w="Size4-Regular"):e==="\\}"||e==="\\rbrace"?(m="⎫",c="⎬",g="⎭",p="⎪",w="Size4-Regular"):e==="\\lgroup"||e==="⟮"?(m="⎧",g="⎩",p="⎪",w="Size4-Regular"):e==="\\rgroup"||e==="⟯"?(m="⎫",g="⎭",p="⎪",w="Size4-Regular"):e==="\\lmoustache"||e==="⎰"?(m="⎧",g="⎭",p="⎪",w="Size4-Regular"):(e==="\\rmoustache"||e==="⎱")&&(m="⎫",g="⎩",p="⎪",w="Size4-Regular");var z=ne(m,w,s),A=z.height+z.depth,C=ne(p,w,s),q=C.height+C.depth,O=ne(g,w,s),H=O.height+O.depth,V=0,F=1;if(c!==null){var U=ne(c,w,s);V=U.height+U.depth,F=2}var G=A+H+V,j=Math.max(0,Math.ceil((t-G)/(F*q))),Y=G+j*F*q,M0=n.fontMetrics().axisHeight;a&&(M0*=n.sizeMultiplier);var r0=Y/2-M0,e0=[];if(y.length>0){var U0=Y-A-H,s0=Math.round(Y*1e3),v0=Pa(y,Math.round(U0*1e3)),I0=new P0(y,v0),W0=(x/1e3).toFixed(3)+"em",j0=(s0/1e3).toFixed(3)+"em",Fe=new N0([I0],{width:W0,height:j0,viewBox:"0 0 "+x+" "+s0}),D0=b.makeSvgSpan([],[Fe],n);D0.height=s0/1e3,D0.style.width=W0,D0.style.height=j0,e0.push({type:"elem",elem:D0})}else{if(e0.push(je(g,w,s)),e0.push(Me),c===null){var E0=Y-A-H+2*mt;e0.push(Ze(p,E0,n))}else{var u0=(Y-A-H-V)/2+2*mt;e0.push(Ze(p,u0,n)),e0.push(Me),e0.push(je(c,w,s)),e0.push(Me),e0.push(Ze(p,u0,n))}e0.push(Me),e0.push(je(m,w,s))}var ae=n.havingBaseStyle(I.TEXT),Pe=b.makeVList({positionType:"bottom",positionData:r0,children:e0},ae);return xt(b.makeSpan(["delimsizing","mult"],[Pe],ae),I.TEXT,n,o)},Ke=80,Je=.08,Qe=function(e,t,a,n,s){var o=La(e,n,a),m=new P0(e,o),c=new N0([m],{width:"400em",height:T(t),viewBox:"0 0 400000 "+a,preserveAspectRatio:"xMinYMin slice"});return b.makeSvgSpan(["hide-tail"],[c],s)},O1=function(e,t){var a=t.havingBaseSizing(),n=Yr("\\surd",e*a.sizeMultiplier,Ur,a),s=a.sizeMultiplier,o=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),m,c=0,p=0,g=0,y;return n.type==="small"?(g=1e3+1e3*o+Ke,e<1?s=1:e<1.4&&(s=.7),c=(1+o+Je)/s,p=(1+o)/s,m=Qe("sqrtMain",c,g,o,t),m.style.minWidth="0.853em",y=.833/s):n.type==="large"?(g=(1e3+Ke)*se[n.size],p=(se[n.size]+o)/s,c=(se[n.size]+o+Je)/s,m=Qe("sqrtSize"+n.size,c,g,o,t),m.style.minWidth="1.02em",y=1/s):(c=e+o+Je,p=e+o,g=Math.floor(1e3*e+o)+Ke,m=Qe("sqrtTall",c,g,o,t),m.style.minWidth="0.742em",y=1.056),m.height=p,m.style.height=T(c),{span:m,advanceWidth:y,ruleWidth:(t.fontMetrics().sqrtRuleThickness+o)*s}},Gr=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],H1=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],Vr=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],se=[0,1.2,1.8,2.4,3],L1=function(e,t,a,n,s){if(e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle"),E.contains(Gr,e)||E.contains(Vr,e))return Fr(e,t,!1,a,n,s);if(E.contains(H1,e))return Pr(e,se[t],!1,a,n,s);throw new M("Illegal delimiter: '"+e+"'")},F1=[{type:"small",style:I.SCRIPTSCRIPT},{type:"small",style:I.SCRIPT},{type:"small",style:I.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],P1=[{type:"small",style:I.SCRIPTSCRIPT},{type:"small",style:I.SCRIPT},{type:"small",style:I.TEXT},{type:"stack"}],Ur=[{type:"small",style:I.SCRIPTSCRIPT},{type:"small",style:I.SCRIPT},{type:"small",style:I.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],G1=function(e){if(e.type==="small")return"Main-Regular";if(e.type==="large")return"Size"+e.size+"-Regular";if(e.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+e.type+"' here.")},Yr=function(e,t,a,n){for(var s=Math.min(2,3-n.style.size),o=s;o<a.length&&a[o].type!=="stack";o++){var m=ne(e,G1(a[o]),"math"),c=m.height+m.depth;if(a[o].type==="small"){var p=n.havingBaseStyle(a[o].style);c*=p.sizeMultiplier}if(c>t)return a[o]}return a[a.length-1]},Xr=function(e,t,a,n,s,o){e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle");var m;E.contains(Vr,e)?m=F1:E.contains(Gr,e)?m=Ur:m=P1;var c=Yr(e,t,m,n);return c.type==="small"?R1(e,c.style,a,n,s,o):c.type==="large"?Fr(e,c.size,a,n,s,o):Pr(e,t,a,n,s,o)},V1=function(e,t,a,n,s,o){var m=n.fontMetrics().axisHeight*n.sizeMultiplier,c=901,p=5/n.fontMetrics().ptPerEm,g=Math.max(t-m,a+m),y=Math.max(g/500*c,2*g-p);return Xr(e,y,!0,n,s,o)},B0={sqrtImage:O1,sizedDelim:L1,sizeToMaxHeight:se,customSizedDelim:Xr,leftRightDelim:V1},Zt={"\\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}},U1=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function He(r,e){var t=Ee(r);if(t&&E.contains(U1,t.text))return t;throw t?new M("Invalid delimiter '"+t.text+"' after '"+e.funcName+"'",r):new M("Invalid delimiter type '"+r.type+"'",r)}B({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:(r,e)=>{var t=He(e[0],r);return{type:"delimsizing",mode:r.parser.mode,size:Zt[r.funcName].size,mclass:Zt[r.funcName].mclass,delim:t.text}},htmlBuilder:(r,e)=>r.delim==="."?b.makeSpan([r.mclass]):B0.sizedDelim(r.delim,r.size,e,r.mode,[r.mclass]),mathmlBuilder:r=>{var e=[];r.delim!=="."&&e.push(p0(r.delim,r.mode));var t=new S.MathNode("mo",e);r.mclass==="mopen"||r.mclass==="mclose"?t.setAttribute("fence","true"):t.setAttribute("fence","false"),t.setAttribute("stretchy","true");var a=T(B0.sizeToMaxHeight[r.size]);return t.setAttribute("minsize",a),t.setAttribute("maxsize",a),t}});function Kt(r){if(!r.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}B({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(r,e)=>{var t=r.parser.gullet.macros.get("\\current@color");if(t&&typeof t!="string")throw new M("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:r.parser.mode,delim:He(e[0],r).text,color:t}}});B({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(r,e)=>{var t=He(e[0],r),a=r.parser;++a.leftrightDepth;var n=a.parseExpression(!1);--a.leftrightDepth,a.expect("\\right",!1);var s=L(a.parseFunction(),"leftright-right");return{type:"leftright",mode:a.mode,body:n,left:t.text,right:s.delim,rightColor:s.color}},htmlBuilder:(r,e)=>{Kt(r);for(var t=t0(r.body,e,!0,["mopen","mclose"]),a=0,n=0,s=!1,o=0;o<t.length;o++)t[o].isMiddle?s=!0:(a=Math.max(t[o].height,a),n=Math.max(t[o].depth,n));a*=e.sizeMultiplier,n*=e.sizeMultiplier;var m;if(r.left==="."?m=oe(e,["mopen"]):m=B0.leftRightDelim(r.left,a,n,e,r.mode,["mopen"]),t.unshift(m),s)for(var c=1;c<t.length;c++){var p=t[c],g=p.isMiddle;g&&(t[c]=B0.leftRightDelim(g.delim,a,n,g.options,r.mode,[]))}var y;if(r.right===".")y=oe(e,["mclose"]);else{var x=r.rightColor?e.withColor(r.rightColor):e;y=B0.leftRightDelim(r.right,a,n,x,r.mode,["mclose"])}return t.push(y),b.makeSpan(["minner"],t,e)},mathmlBuilder:(r,e)=>{Kt(r);var t=o0(r.body,e);if(r.left!=="."){var a=new S.MathNode("mo",[p0(r.left,r.mode)]);a.setAttribute("fence","true"),t.unshift(a)}if(r.right!=="."){var n=new S.MathNode("mo",[p0(r.right,r.mode)]);n.setAttribute("fence","true"),r.rightColor&&n.setAttribute("mathcolor",r.rightColor),t.push(n)}return gt(t)}});B({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(r,e)=>{var t=He(e[0],r);if(!r.parser.leftrightDepth)throw new M("\\middle without preceding \\left",t);return{type:"middle",mode:r.parser.mode,delim:t.text}},htmlBuilder:(r,e)=>{var t;if(r.delim===".")t=oe(e,[]);else{t=B0.sizedDelim(r.delim,1,e,r.mode,[]);var a={delim:r.delim,options:e};t.isMiddle=a}return t},mathmlBuilder:(r,e)=>{var t=r.delim==="\\vert"||r.delim==="|"?p0("|","text"):p0(r.delim,r.mode),a=new S.MathNode("mo",[t]);return a.setAttribute("fence","true"),a.setAttribute("lspace","0.05em"),a.setAttribute("rspace","0.05em"),a}});var kt=(r,e)=>{var t=b.wrapFragment(P(r.body,e),e),a=r.label.slice(1),n=e.sizeMultiplier,s,o=0,m=E.isCharacterBox(r.body);if(a==="sout")s=b.makeSpan(["stretchy","sout"]),s.height=e.fontMetrics().defaultRuleThickness/n,o=-.5*e.fontMetrics().xHeight;else if(a==="phase"){var c=K({number:.6,unit:"pt"},e),p=K({number:.35,unit:"ex"},e),g=e.havingBaseSizing();n=n/g.sizeMultiplier;var y=t.height+t.depth+c+p;t.style.paddingLeft=T(y/2+c);var x=Math.floor(1e3*y*n),w=Oa(x),z=new N0([new P0("phase",w)],{width:"400em",height:T(x/1e3),viewBox:"0 0 400000 "+x,preserveAspectRatio:"xMinYMin slice"});s=b.makeSvgSpan(["hide-tail"],[z],e),s.style.height=T(y),o=t.depth+c+p}else{/cancel/.test(a)?m||t.classes.push("cancel-pad"):a==="angl"?t.classes.push("anglpad"):t.classes.push("boxpad");var A=0,C=0,q=0;/box/.test(a)?(q=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness),A=e.fontMetrics().fboxsep+(a==="colorbox"?0:q),C=A):a==="angl"?(q=Math.max(e.fontMetrics().defaultRuleThickness,e.minRuleThickness),A=4*q,C=Math.max(0,.25-t.depth)):(A=m?.2:0,C=A),s=q0.encloseSpan(t,a,A,C,e),/fbox|boxed|fcolorbox/.test(a)?(s.style.borderStyle="solid",s.style.borderWidth=T(q)):a==="angl"&&q!==.049&&(s.style.borderTopWidth=T(q),s.style.borderRightWidth=T(q)),o=t.depth+C,r.backgroundColor&&(s.style.backgroundColor=r.backgroundColor,r.borderColor&&(s.style.borderColor=r.borderColor))}var O;if(r.backgroundColor)O=b.makeVList({positionType:"individualShift",children:[{type:"elem",elem:s,shift:o},{type:"elem",elem:t,shift:0}]},e);else{var H=/cancel|phase/.test(a)?["svg-align"]:[];O=b.makeVList({positionType:"individualShift",children:[{type:"elem",elem:t,shift:0},{type:"elem",elem:s,shift:o,wrapperClasses:H}]},e)}return/cancel/.test(a)&&(O.height=t.height,O.depth=t.depth),/cancel/.test(a)&&!m?b.makeSpan(["mord","cancel-lap"],[O],e):b.makeSpan(["mord"],[O],e)},St=(r,e)=>{var t=0,a=new S.MathNode(r.label.indexOf("colorbox")>-1?"mpadded":"menclose",[X(r.body,e)]);switch(r.label){case"\\cancel":a.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":a.setAttribute("notation","downdiagonalstrike");break;case"\\phase":a.setAttribute("notation","phasorangle");break;case"\\sout":a.setAttribute("notation","horizontalstrike");break;case"\\fbox":a.setAttribute("notation","box");break;case"\\angl":a.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(t=e.fontMetrics().fboxsep*e.fontMetrics().ptPerEm,a.setAttribute("width","+"+2*t+"pt"),a.setAttribute("height","+"+2*t+"pt"),a.setAttribute("lspace",t+"pt"),a.setAttribute("voffset",t+"pt"),r.label==="\\fcolorbox"){var n=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness);a.setAttribute("style","border: "+n+"em solid "+String(r.borderColor))}break;case"\\xcancel":a.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return r.backgroundColor&&a.setAttribute("mathbackground",r.backgroundColor),a};B({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(r,e,t){var{parser:a,funcName:n}=r,s=L(e[0],"color-token").color,o=e[1];return{type:"enclose",mode:a.mode,label:n,backgroundColor:s,body:o}},htmlBuilder:kt,mathmlBuilder:St});B({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(r,e,t){var{parser:a,funcName:n}=r,s=L(e[0],"color-token").color,o=L(e[1],"color-token").color,m=e[2];return{type:"enclose",mode:a.mode,label:n,backgroundColor:o,borderColor:s,body:m}},htmlBuilder:kt,mathmlBuilder:St});B({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(r,e){var{parser:t}=r;return{type:"enclose",mode:t.mode,label:"\\fbox",body:e[0]}}});B({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(r,e){var{parser:t,funcName:a}=r,n=e[0];return{type:"enclose",mode:t.mode,label:a,body:n}},htmlBuilder:kt,mathmlBuilder:St});B({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(r,e){var{parser:t}=r;return{type:"enclose",mode:t.mode,label:"\\angl",body:e[0]}}});var $r={};function x0(r){for(var{type:e,names:t,props:a,handler:n,htmlBuilder:s,mathmlBuilder:o}=r,m={type:e,numArgs:a.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:n},c=0;c<t.length;++c)$r[t[c]]=m;s&&(Ce[e]=s),o&&(qe[e]=o)}var Wr={};function u(r,e){Wr[r]=e}function Jt(r){var e=[];r.consumeSpaces();var t=r.fetch().text;for(t==="\\relax"&&(r.consume(),r.consumeSpaces(),t=r.fetch().text);t==="\\hline"||t==="\\hdashline";)r.consume(),e.push(t==="\\hdashline"),r.consumeSpaces(),t=r.fetch().text;return e}var Le=r=>{var e=r.parser.settings;if(!e.displayMode)throw new M("{"+r.envName+"} can be used only in display mode.")};function Mt(r){if(r.indexOf("ed")===-1)return r.indexOf("*")===-1}function V0(r,e,t){var{hskipBeforeAndAfter:a,addJot:n,cols:s,arraystretch:o,colSeparationType:m,autoTag:c,singleRow:p,emptySingleRow:g,maxNumCols:y,leqno:x}=e;if(r.gullet.beginGroup(),p||r.gullet.macros.set("\\cr","\\\\\\relax"),!o){var w=r.gullet.expandMacroAsText("\\arraystretch");if(w==null)o=1;else if(o=parseFloat(w),!o||o<0)throw new M("Invalid \\arraystretch: "+w)}r.gullet.beginGroup();var z=[],A=[z],C=[],q=[],O=c!=null?[]:void 0;function H(){c&&r.gullet.macros.set("\\@eqnsw","1",!0)}function V(){O&&(r.gullet.macros.get("\\df@tag")?(O.push(r.subparse([new w0("\\df@tag")])),r.gullet.macros.set("\\df@tag",void 0,!0)):O.push(!!c&&r.gullet.macros.get("\\@eqnsw")==="1"))}for(H(),q.push(Jt(r));;){var F=r.parseExpression(!1,p?"\\end":"\\\\");r.gullet.endGroup(),r.gullet.beginGroup(),F={type:"ordgroup",mode:r.mode,body:F},t&&(F={type:"styling",mode:r.mode,style:t,body:[F]}),z.push(F);var U=r.fetch().text;if(U==="&"){if(y&&z.length===y){if(p||m)throw new M("Too many tab characters: &",r.nextToken);r.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}r.consume()}else if(U==="\\end"){V(),z.length===1&&F.type==="styling"&&F.body[0].body.length===0&&(A.length>1||!g)&&A.pop(),q.length<A.length+1&&q.push([]);break}else if(U==="\\\\"){r.consume();var G=void 0;r.gullet.future().text!==" "&&(G=r.parseSizeGroup(!0)),C.push(G?G.value:null),V(),q.push(Jt(r)),z=[],A.push(z),H()}else throw new M("Expected & or \\\\ or \\cr or \\end",r.nextToken)}return r.gullet.endGroup(),r.gullet.endGroup(),{type:"array",mode:r.mode,addJot:n,arraystretch:o,body:A,cols:s,rowGaps:C,hskipBeforeAndAfter:a,hLinesBeforeRow:q,colSeparationType:m,tags:O,leqno:x}}function zt(r){return r.slice(0,1)==="d"?"display":"text"}var k0=function(e,t){var a,n,s=e.body.length,o=e.hLinesBeforeRow,m=0,c=new Array(s),p=[],g=Math.max(t.fontMetrics().arrayRuleWidth,t.minRuleThickness),y=1/t.fontMetrics().ptPerEm,x=5*y;if(e.colSeparationType&&e.colSeparationType==="small"){var w=t.havingStyle(I.SCRIPT).sizeMultiplier;x=.2778*(w/t.sizeMultiplier)}var z=e.colSeparationType==="CD"?K({number:3,unit:"ex"},t):12*y,A=3*y,C=e.arraystretch*z,q=.7*C,O=.3*C,H=0;function V(pe){for(var ve=0;ve<pe.length;++ve)ve>0&&(H+=.25),p.push({pos:H,isDashed:pe[ve]})}for(V(o[0]),a=0;a<e.body.length;++a){var F=e.body[a],U=q,G=O;m<F.length&&(m=F.length);var j=new Array(F.length);for(n=0;n<F.length;++n){var Y=P(F[n],t);G<Y.depth&&(G=Y.depth),U<Y.height&&(U=Y.height),j[n]=Y}var M0=e.rowGaps[a],r0=0;M0&&(r0=K(M0,t),r0>0&&(r0+=O,G<r0&&(G=r0),r0=0)),e.addJot&&(G+=A),j.height=U,j.depth=G,H+=U,j.pos=H,H+=G+r0,c[a]=j,V(o[a+1])}var e0=H/2+t.fontMetrics().axisHeight,U0=e.cols||[],s0=[],v0,I0,W0=[];if(e.tags&&e.tags.some(pe=>pe))for(a=0;a<s;++a){var j0=c[a],Fe=j0.pos-e0,D0=e.tags[a],E0=void 0;D0===!0?E0=b.makeSpan(["eqn-num"],[],t):D0===!1?E0=b.makeSpan([],[],t):E0=b.makeSpan([],t0(D0,t,!0),t),E0.depth=j0.depth,E0.height=j0.height,W0.push({type:"elem",elem:E0,shift:Fe})}for(n=0,I0=0;n<m||I0<U0.length;++n,++I0){for(var u0=U0[I0]||{},ae=!0;u0.type==="separator";){if(ae||(v0=b.makeSpan(["arraycolsep"],[]),v0.style.width=T(t.fontMetrics().doubleRuleSep),s0.push(v0)),u0.separator==="|"||u0.separator===":"){var Pe=u0.separator==="|"?"solid":"dashed",Z0=b.makeSpan(["vertical-separator"],[],t);Z0.style.height=T(H),Z0.style.borderRightWidth=T(g),Z0.style.borderRightStyle=Pe,Z0.style.margin="0 "+T(-g/2);var Rt=H-e0;Rt&&(Z0.style.verticalAlign=T(-Rt)),s0.push(Z0)}else throw new M("Invalid separator type: "+u0.separator);I0++,u0=U0[I0]||{},ae=!1}if(!(n>=m)){var K0=void 0;(n>0||e.hskipBeforeAndAfter)&&(K0=E.deflt(u0.pregap,x),K0!==0&&(v0=b.makeSpan(["arraycolsep"],[]),v0.style.width=T(K0),s0.push(v0)));var J0=[];for(a=0;a<s;++a){var de=c[a],fe=de[n];if(fe){var ma=de.pos-e0;fe.depth=de.depth,fe.height=de.height,J0.push({type:"elem",elem:fe,shift:ma})}}J0=b.makeVList({positionType:"individualShift",children:J0},t),J0=b.makeSpan(["col-align-"+(u0.align||"c")],[J0]),s0.push(J0),(n<m-1||e.hskipBeforeAndAfter)&&(K0=E.deflt(u0.postgap,x),K0!==0&&(v0=b.makeSpan(["arraycolsep"],[]),v0.style.width=T(K0),s0.push(v0)))}}if(c=b.makeSpan(["mtable"],s0),p.length>0){for(var ua=b.makeLineSpan("hline",t,g),ca=b.makeLineSpan("hdashline",t,g),Ge=[{type:"elem",elem:c,shift:0}];p.length>0;){var It=p.pop(),Dt=It.pos-e0;It.isDashed?Ge.push({type:"elem",elem:ca,shift:Dt}):Ge.push({type:"elem",elem:ua,shift:Dt})}c=b.makeVList({positionType:"individualShift",children:Ge},t)}if(W0.length===0)return b.makeSpan(["mord"],[c],t);var Ve=b.makeVList({positionType:"individualShift",children:W0},t);return Ve=b.makeSpan(["tag"],[Ve],t),b.makeFragment([c,Ve])},Y1={c:"center ",l:"left ",r:"right "},S0=function(e,t){for(var a=[],n=new S.MathNode("mtd",[],["mtr-glue"]),s=new S.MathNode("mtd",[],["mml-eqn-num"]),o=0;o<e.body.length;o++){for(var m=e.body[o],c=[],p=0;p<m.length;p++)c.push(new S.MathNode("mtd",[X(m[p],t)]));e.tags&&e.tags[o]&&(c.unshift(n),c.push(n),e.leqno?c.unshift(s):c.push(s)),a.push(new S.MathNode("mtr",c))}var g=new S.MathNode("mtable",a),y=e.arraystretch===.5?.1:.16+e.arraystretch-1+(e.addJot?.09:0);g.setAttribute("rowspacing",T(y));var x="",w="";if(e.cols&&e.cols.length>0){var z=e.cols,A="",C=!1,q=0,O=z.length;z[0].type==="separator"&&(x+="top ",q=1),z[z.length-1].type==="separator"&&(x+="bottom ",O-=1);for(var H=q;H<O;H++)z[H].type==="align"?(w+=Y1[z[H].align],C&&(A+="none "),C=!0):z[H].type==="separator"&&C&&(A+=z[H].separator==="|"?"solid ":"dashed ",C=!1);g.setAttribute("columnalign",w.trim()),/[sd]/.test(A)&&g.setAttribute("columnlines",A.trim())}if(e.colSeparationType==="align"){for(var V=e.cols||[],F="",U=1;U<V.length;U++)F+=U%2?"0em ":"1em ";g.setAttribute("columnspacing",F.trim())}else e.colSeparationType==="alignat"||e.colSeparationType==="gather"?g.setAttribute("columnspacing","0em"):e.colSeparationType==="small"?g.setAttribute("columnspacing","0.2778em"):e.colSeparationType==="CD"?g.setAttribute("columnspacing","0.5em"):g.setAttribute("columnspacing","1em");var G="",j=e.hLinesBeforeRow;x+=j[0].length>0?"left ":"",x+=j[j.length-1].length>0?"right ":"";for(var Y=1;Y<j.length-1;Y++)G+=j[Y].length===0?"none ":j[Y][0]?"dashed ":"solid ";return/[sd]/.test(G)&&g.setAttribute("rowlines",G.trim()),x!==""&&(g=new S.MathNode("menclose",[g]),g.setAttribute("notation",x.trim())),e.arraystretch&&e.arraystretch<1&&(g=new S.MathNode("mstyle",[g]),g.setAttribute("scriptlevel","1")),g},jr=function(e,t){e.envName.indexOf("ed")===-1&&Le(e);var a=[],n=e.envName.indexOf("at")>-1?"alignat":"align",s=e.envName==="split",o=V0(e.parser,{cols:a,addJot:!0,autoTag:s?void 0:Mt(e.envName),emptySingleRow:!0,colSeparationType:n,maxNumCols:s?2:void 0,leqno:e.parser.settings.leqno},"display"),m,c=0,p={type:"ordgroup",mode:e.mode,body:[]};if(t[0]&&t[0].type==="ordgroup"){for(var g="",y=0;y<t[0].body.length;y++){var x=L(t[0].body[y],"textord");g+=x.text}m=Number(g),c=m*2}var w=!c;o.body.forEach(function(q){for(var O=1;O<q.length;O+=2){var H=L(q[O],"styling"),V=L(H.body[0],"ordgroup");V.body.unshift(p)}if(w)c<q.length&&(c=q.length);else{var F=q.length/2;if(m<F)throw new M("Too many math in a row: "+("expected "+m+", but got "+F),q[0])}});for(var z=0;z<c;++z){var A="r",C=0;z%2===1?A="l":z>0&&w&&(C=1),a[z]={type:"align",align:A,pregap:C,postgap:0}}return o.colSeparationType=w?"align":"alignat",o};x0({type:"array",names:["array","darray"],props:{numArgs:1},handler(r,e){var t=Ee(e[0]),a=t?[e[0]]:L(e[0],"ordgroup").body,n=a.map(function(o){var m=yt(o),c=m.text;if("lcr".indexOf(c)!==-1)return{type:"align",align:c};if(c==="|")return{type:"separator",separator:"|"};if(c===":")return{type:"separator",separator:":"};throw new M("Unknown column alignment: "+c,o)}),s={cols:n,hskipBeforeAndAfter:!0,maxNumCols:n.length};return V0(r.parser,s,zt(r.envName))},htmlBuilder:k0,mathmlBuilder:S0});x0({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(r){var e={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[r.envName.replace("*","")],t="c",a={hskipBeforeAndAfter:!1,cols:[{type:"align",align:t}]};if(r.envName.charAt(r.envName.length-1)==="*"){var n=r.parser;if(n.consumeSpaces(),n.fetch().text==="["){if(n.consume(),n.consumeSpaces(),t=n.fetch().text,"lcr".indexOf(t)===-1)throw new M("Expected l or c or r",n.nextToken);n.consume(),n.consumeSpaces(),n.expect("]"),n.consume(),a.cols=[{type:"align",align:t}]}}var s=V0(r.parser,a,zt(r.envName)),o=Math.max(0,...s.body.map(m=>m.length));return s.cols=new Array(o).fill({type:"align",align:t}),e?{type:"leftright",mode:r.mode,body:[s],left:e[0],right:e[1],rightColor:void 0}:s},htmlBuilder:k0,mathmlBuilder:S0});x0({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(r){var e={arraystretch:.5},t=V0(r.parser,e,"script");return t.colSeparationType="small",t},htmlBuilder:k0,mathmlBuilder:S0});x0({type:"array",names:["subarray"],props:{numArgs:1},handler(r,e){var t=Ee(e[0]),a=t?[e[0]]:L(e[0],"ordgroup").body,n=a.map(function(o){var m=yt(o),c=m.text;if("lc".indexOf(c)!==-1)return{type:"align",align:c};throw new M("Unknown column alignment: "+c,o)});if(n.length>1)throw new M("{subarray} can contain only one column");var s={cols:n,hskipBeforeAndAfter:!1,arraystretch:.5};if(s=V0(r.parser,s,"script"),s.body.length>0&&s.body[0].length>1)throw new M("{subarray} can contain only one column");return s},htmlBuilder:k0,mathmlBuilder:S0});x0({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(r){var e={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},t=V0(r.parser,e,zt(r.envName));return{type:"leftright",mode:r.mode,body:[t],left:r.envName.indexOf("r")>-1?".":"\\{",right:r.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:k0,mathmlBuilder:S0});x0({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:jr,htmlBuilder:k0,mathmlBuilder:S0});x0({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(r){E.contains(["gather","gather*"],r.envName)&&Le(r);var e={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:Mt(r.envName),emptySingleRow:!0,leqno:r.parser.settings.leqno};return V0(r.parser,e,"display")},htmlBuilder:k0,mathmlBuilder:S0});x0({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:jr,htmlBuilder:k0,mathmlBuilder:S0});x0({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(r){Le(r);var e={autoTag:Mt(r.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:r.parser.settings.leqno};return V0(r.parser,e,"display")},htmlBuilder:k0,mathmlBuilder:S0});x0({type:"array",names:["CD"],props:{numArgs:0},handler(r){return Le(r),C1(r.parser)},htmlBuilder:k0,mathmlBuilder:S0});u("\\nonumber","\\gdef\\@eqnsw{0}");u("\\notag","\\nonumber");B({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(r,e){throw new M(r.funcName+" valid only within array environment")}});var Qt=$r;B({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(r,e){var{parser:t,funcName:a}=r,n=e[0];if(n.type!=="ordgroup")throw new M("Invalid environment name",n);for(var s="",o=0;o<n.body.length;++o)s+=L(n.body[o],"textord").text;if(a==="\\begin"){if(!Qt.hasOwnProperty(s))throw new M("No such environment: "+s,n);var m=Qt[s],{args:c,optArgs:p}=t.parseArguments("\\begin{"+s+"}",m),g={mode:t.mode,envName:s,parser:t},y=m.handler(g,c,p);t.expect("\\end",!1);var x=t.nextToken,w=L(t.parseFunction(),"environment");if(w.name!==s)throw new M("Mismatch: \\begin{"+s+"} matched by \\end{"+w.name+"}",x);return y}return{type:"environment",mode:t.mode,name:s,nameGroup:n}}});var Zr=(r,e)=>{var t=r.font,a=e.withFont(t);return P(r.body,a)},Kr=(r,e)=>{var t=r.font,a=e.withFont(t);return X(r.body,a)},_t={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};B({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(r,e)=>{var{parser:t,funcName:a}=r,n=Re(e[0]),s=a;return s in _t&&(s=_t[s]),{type:"font",mode:t.mode,font:s.slice(1),body:n}},htmlBuilder:Zr,mathmlBuilder:Kr});B({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(r,e)=>{var{parser:t}=r,a=e[0],n=E.isCharacterBox(a);return{type:"mclass",mode:t.mode,mclass:Oe(a),body:[{type:"font",mode:t.mode,font:"boldsymbol",body:a}],isCharacterBox:n}}});B({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(r,e)=>{var{parser:t,funcName:a,breakOnTokenText:n}=r,{mode:s}=t,o=t.parseExpression(!0,n),m="math"+a.slice(1);return{type:"font",mode:s,font:m,body:{type:"ordgroup",mode:t.mode,body:o}}},htmlBuilder:Zr,mathmlBuilder:Kr});var Jr=(r,e)=>{var t=e;return r==="display"?t=t.id>=I.SCRIPT.id?t.text():I.DISPLAY:r==="text"&&t.size===I.DISPLAY.size?t=I.TEXT:r==="script"?t=I.SCRIPT:r==="scriptscript"&&(t=I.SCRIPTSCRIPT),t},Tt=(r,e)=>{var t=Jr(r.size,e.style),a=t.fracNum(),n=t.fracDen(),s;s=e.havingStyle(a);var o=P(r.numer,s,e);if(r.continued){var m=8.5/e.fontMetrics().ptPerEm,c=3.5/e.fontMetrics().ptPerEm;o.height=o.height<m?m:o.height,o.depth=o.depth<c?c:o.depth}s=e.havingStyle(n);var p=P(r.denom,s,e),g,y,x;r.hasBarLine?(r.barSize?(y=K(r.barSize,e),g=b.makeLineSpan("frac-line",e,y)):g=b.makeLineSpan("frac-line",e),y=g.height,x=g.height):(g=null,y=0,x=e.fontMetrics().defaultRuleThickness);var w,z,A;t.size===I.DISPLAY.size||r.size==="display"?(w=e.fontMetrics().num1,y>0?z=3*x:z=7*x,A=e.fontMetrics().denom1):(y>0?(w=e.fontMetrics().num2,z=x):(w=e.fontMetrics().num3,z=3*x),A=e.fontMetrics().denom2);var C;if(g){var O=e.fontMetrics().axisHeight;w-o.depth-(O+.5*y)<z&&(w+=z-(w-o.depth-(O+.5*y))),O-.5*y-(p.height-A)<z&&(A+=z-(O-.5*y-(p.height-A)));var H=-(O-.5*y);C=b.makeVList({positionType:"individualShift",children:[{type:"elem",elem:p,shift:A},{type:"elem",elem:g,shift:H},{type:"elem",elem:o,shift:-w}]},e)}else{var q=w-o.depth-(p.height-A);q<z&&(w+=.5*(z-q),A+=.5*(z-q)),C=b.makeVList({positionType:"individualShift",children:[{type:"elem",elem:p,shift:A},{type:"elem",elem:o,shift:-w}]},e)}s=e.havingStyle(t),C.height*=s.sizeMultiplier/e.sizeMultiplier,C.depth*=s.sizeMultiplier/e.sizeMultiplier;var V;t.size===I.DISPLAY.size?V=e.fontMetrics().delim1:t.size===I.SCRIPTSCRIPT.size?V=e.havingStyle(I.SCRIPT).fontMetrics().delim2:V=e.fontMetrics().delim2;var F,U;return r.leftDelim==null?F=oe(e,["mopen"]):F=B0.customSizedDelim(r.leftDelim,V,!0,e.havingStyle(t),r.mode,["mopen"]),r.continued?U=b.makeSpan([]):r.rightDelim==null?U=oe(e,["mclose"]):U=B0.customSizedDelim(r.rightDelim,V,!0,e.havingStyle(t),r.mode,["mclose"]),b.makeSpan(["mord"].concat(s.sizingClasses(e)),[F,b.makeSpan(["mfrac"],[C]),U],e)},At=(r,e)=>{var t=new S.MathNode("mfrac",[X(r.numer,e),X(r.denom,e)]);if(!r.hasBarLine)t.setAttribute("linethickness","0px");else if(r.barSize){var a=K(r.barSize,e);t.setAttribute("linethickness",T(a))}var n=Jr(r.size,e.style);if(n.size!==e.style.size){t=new S.MathNode("mstyle",[t]);var s=n.size===I.DISPLAY.size?"true":"false";t.setAttribute("displaystyle",s),t.setAttribute("scriptlevel","0")}if(r.leftDelim!=null||r.rightDelim!=null){var o=[];if(r.leftDelim!=null){var m=new S.MathNode("mo",[new S.TextNode(r.leftDelim.replace("\\",""))]);m.setAttribute("fence","true"),o.push(m)}if(o.push(t),r.rightDelim!=null){var c=new S.MathNode("mo",[new S.TextNode(r.rightDelim.replace("\\",""))]);c.setAttribute("fence","true"),o.push(c)}return gt(o)}return t};B({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(r,e)=>{var{parser:t,funcName:a}=r,n=e[0],s=e[1],o,m=null,c=null,p="auto";switch(a){case"\\dfrac":case"\\frac":case"\\tfrac":o=!0;break;case"\\\\atopfrac":o=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":o=!1,m="(",c=")";break;case"\\\\bracefrac":o=!1,m="\\{",c="\\}";break;case"\\\\brackfrac":o=!1,m="[",c="]";break;default:throw new Error("Unrecognized genfrac command")}switch(a){case"\\dfrac":case"\\dbinom":p="display";break;case"\\tfrac":case"\\tbinom":p="text";break}return{type:"genfrac",mode:t.mode,continued:!1,numer:n,denom:s,hasBarLine:o,leftDelim:m,rightDelim:c,size:p,barSize:null}},htmlBuilder:Tt,mathmlBuilder:At});B({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(r,e)=>{var{parser:t,funcName:a}=r,n=e[0],s=e[1];return{type:"genfrac",mode:t.mode,continued:!0,numer:n,denom:s,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}});B({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(r){var{parser:e,funcName:t,token:a}=r,n;switch(t){case"\\over":n="\\frac";break;case"\\choose":n="\\binom";break;case"\\atop":n="\\\\atopfrac";break;case"\\brace":n="\\\\bracefrac";break;case"\\brack":n="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:e.mode,replaceWith:n,token:a}}});var er=["display","text","script","scriptscript"],tr=function(e){var t=null;return e.length>0&&(t=e,t=t==="."?null:t),t};B({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(r,e){var{parser:t}=r,a=e[4],n=e[5],s=Re(e[0]),o=s.type==="atom"&&s.family==="open"?tr(s.text):null,m=Re(e[1]),c=m.type==="atom"&&m.family==="close"?tr(m.text):null,p=L(e[2],"size"),g,y=null;p.isBlank?g=!0:(y=p.value,g=y.number>0);var x="auto",w=e[3];if(w.type==="ordgroup"){if(w.body.length>0){var z=L(w.body[0],"textord");x=er[Number(z.text)]}}else w=L(w,"textord"),x=er[Number(w.text)];return{type:"genfrac",mode:t.mode,numer:a,denom:n,continued:!1,hasBarLine:g,barSize:y,leftDelim:o,rightDelim:c,size:x}},htmlBuilder:Tt,mathmlBuilder:At});B({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(r,e){var{parser:t,funcName:a,token:n}=r;return{type:"infix",mode:t.mode,replaceWith:"\\\\abovefrac",size:L(e[0],"size").value,token:n}}});B({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(r,e)=>{var{parser:t,funcName:a}=r,n=e[0],s=xa(L(e[1],"infix").size),o=e[2],m=s.number>0;return{type:"genfrac",mode:t.mode,numer:n,denom:o,continued:!1,hasBarLine:m,barSize:s,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:Tt,mathmlBuilder:At});var Qr=(r,e)=>{var t=e.style,a,n;r.type==="supsub"?(a=r.sup?P(r.sup,e.havingStyle(t.sup()),e):P(r.sub,e.havingStyle(t.sub()),e),n=L(r.base,"horizBrace")):n=L(r,"horizBrace");var s=P(n.base,e.havingBaseStyle(I.DISPLAY)),o=q0.svgSpan(n,e),m;if(n.isOver?(m=b.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:o}]},e),m.children[0].children[0].children[1].classes.push("svg-align")):(m=b.makeVList({positionType:"bottom",positionData:s.depth+.1+o.height,children:[{type:"elem",elem:o},{type:"kern",size:.1},{type:"elem",elem:s}]},e),m.children[0].children[0].children[0].classes.push("svg-align")),a){var c=b.makeSpan(["mord",n.isOver?"mover":"munder"],[m],e);n.isOver?m=b.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:c},{type:"kern",size:.2},{type:"elem",elem:a}]},e):m=b.makeVList({positionType:"bottom",positionData:c.depth+.2+a.height+a.depth,children:[{type:"elem",elem:a},{type:"kern",size:.2},{type:"elem",elem:c}]},e)}return b.makeSpan(["mord",n.isOver?"mover":"munder"],[m],e)},X1=(r,e)=>{var t=q0.mathMLnode(r.label);return new S.MathNode(r.isOver?"mover":"munder",[X(r.base,e),t])};B({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(r,e){var{parser:t,funcName:a}=r;return{type:"horizBrace",mode:t.mode,label:a,isOver:/^\\over/.test(a),base:e[0]}},htmlBuilder:Qr,mathmlBuilder:X1});B({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(r,e)=>{var{parser:t}=r,a=e[1],n=L(e[0],"url").url;return t.settings.isTrusted({command:"\\href",url:n})?{type:"href",mode:t.mode,href:n,body:Q(a)}:t.formatUnsupportedCmd("\\href")},htmlBuilder:(r,e)=>{var t=t0(r.body,e,!1);return b.makeAnchor(r.href,[],t,e)},mathmlBuilder:(r,e)=>{var t=G0(r.body,e);return t instanceof c0||(t=new c0("mrow",[t])),t.setAttribute("href",r.href),t}});B({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(r,e)=>{var{parser:t}=r,a=L(e[0],"url").url;if(!t.settings.isTrusted({command:"\\url",url:a}))return t.formatUnsupportedCmd("\\url");for(var n=[],s=0;s<a.length;s++){var o=a[s];o==="~"&&(o="\\textasciitilde"),n.push({type:"textord",mode:"text",text:o})}var m={type:"text",mode:t.mode,font:"\\texttt",body:n};return{type:"href",mode:t.mode,href:a,body:Q(m)}}});B({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(r,e){var{parser:t}=r;return{type:"hbox",mode:t.mode,body:Q(e[0])}},htmlBuilder(r,e){var t=t0(r.body,e,!1);return b.makeFragment(t)},mathmlBuilder(r,e){return new S.MathNode("mrow",o0(r.body,e))}});B({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(r,e)=>{var{parser:t,funcName:a,token:n}=r,s=L(e[0],"raw").string,o=e[1];t.settings.strict&&t.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var m,c={};switch(a){case"\\htmlClass":c.class=s,m={command:"\\htmlClass",class:s};break;case"\\htmlId":c.id=s,m={command:"\\htmlId",id:s};break;case"\\htmlStyle":c.style=s,m={command:"\\htmlStyle",style:s};break;case"\\htmlData":{for(var p=s.split(","),g=0;g<p.length;g++){var y=p[g].split("=");if(y.length!==2)throw new M("Error parsing key-value for \\htmlData");c["data-"+y[0].trim()]=y[1].trim()}m={command:"\\htmlData",attributes:c};break}default:throw new Error("Unrecognized html command")}return t.settings.isTrusted(m)?{type:"html",mode:t.mode,attributes:c,body:Q(o)}:t.formatUnsupportedCmd(a)},htmlBuilder:(r,e)=>{var t=t0(r.body,e,!1),a=["enclosing"];r.attributes.class&&a.push(...r.attributes.class.trim().split(/\s+/));var n=b.makeSpan(a,t,e);for(var s in r.attributes)s!=="class"&&r.attributes.hasOwnProperty(s)&&n.setAttribute(s,r.attributes[s]);return n},mathmlBuilder:(r,e)=>G0(r.body,e)});B({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(r,e)=>{var{parser:t}=r;return{type:"htmlmathml",mode:t.mode,html:Q(e[0]),mathml:Q(e[1])}},htmlBuilder:(r,e)=>{var t=t0(r.html,e,!1);return b.makeFragment(t)},mathmlBuilder:(r,e)=>G0(r.mathml,e)});var _e=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new M("Invalid size: '"+e+"' in \\includegraphics");var a={number:+(t[1]+t[2]),unit:t[3]};if(!gr(a))throw new M("Invalid unit: '"+a.unit+"' in \\includegraphics.");return a};B({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(r,e,t)=>{var{parser:a}=r,n={number:0,unit:"em"},s={number:.9,unit:"em"},o={number:0,unit:"em"},m="";if(t[0])for(var c=L(t[0],"raw").string,p=c.split(","),g=0;g<p.length;g++){var y=p[g].split("=");if(y.length===2){var x=y[1].trim();switch(y[0].trim()){case"alt":m=x;break;case"width":n=_e(x);break;case"height":s=_e(x);break;case"totalheight":o=_e(x);break;default:throw new M("Invalid key: '"+y[0]+"' in \\includegraphics.")}}}var w=L(e[0],"url").url;return m===""&&(m=w,m=m.replace(/^.*[\\/]/,""),m=m.substring(0,m.lastIndexOf("."))),a.settings.isTrusted({command:"\\includegraphics",url:w})?{type:"includegraphics",mode:a.mode,alt:m,width:n,height:s,totalheight:o,src:w}:a.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(r,e)=>{var t=K(r.height,e),a=0;r.totalheight.number>0&&(a=K(r.totalheight,e)-t);var n=0;r.width.number>0&&(n=K(r.width,e));var s={height:T(t+a)};n>0&&(s.width=T(n)),a>0&&(s.verticalAlign=T(-a));var o=new Xa(r.src,r.alt,s);return o.height=t,o.depth=a,o},mathmlBuilder:(r,e)=>{var t=new S.MathNode("mglyph",[]);t.setAttribute("alt",r.alt);var a=K(r.height,e),n=0;if(r.totalheight.number>0&&(n=K(r.totalheight,e)-a,t.setAttribute("valign",T(-n))),t.setAttribute("height",T(a+n)),r.width.number>0){var s=K(r.width,e);t.setAttribute("width",T(s))}return t.setAttribute("src",r.src),t}});B({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(r,e){var{parser:t,funcName:a}=r,n=L(e[0],"size");if(t.settings.strict){var s=a[1]==="m",o=n.value.unit==="mu";s?(o||t.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" supports only mu units, "+("not "+n.value.unit+" units")),t.mode!=="math"&&t.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" works only in math mode")):o&&t.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" doesn't support mu units")}return{type:"kern",mode:t.mode,dimension:n.value}},htmlBuilder(r,e){return b.makeGlue(r.dimension,e)},mathmlBuilder(r,e){var t=K(r.dimension,e);return new S.SpaceNode(t)}});B({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(r,e)=>{var{parser:t,funcName:a}=r,n=e[0];return{type:"lap",mode:t.mode,alignment:a.slice(5),body:n}},htmlBuilder:(r,e)=>{var t;r.alignment==="clap"?(t=b.makeSpan([],[P(r.body,e)]),t=b.makeSpan(["inner"],[t],e)):t=b.makeSpan(["inner"],[P(r.body,e)]);var a=b.makeSpan(["fix"],[]),n=b.makeSpan([r.alignment],[t,a],e),s=b.makeSpan(["strut"]);return s.style.height=T(n.height+n.depth),n.depth&&(s.style.verticalAlign=T(-n.depth)),n.children.unshift(s),n=b.makeSpan(["thinbox"],[n],e),b.makeSpan(["mord","vbox"],[n],e)},mathmlBuilder:(r,e)=>{var t=new S.MathNode("mpadded",[X(r.body,e)]);if(r.alignment!=="rlap"){var a=r.alignment==="llap"?"-1":"-0.5";t.setAttribute("lspace",a+"width")}return t.setAttribute("width","0px"),t}});B({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(r,e){var{funcName:t,parser:a}=r,n=a.mode;a.switchMode("math");var s=t==="\\("?"\\)":"$",o=a.parseExpression(!1,s);return a.expect(s),a.switchMode(n),{type:"styling",mode:a.mode,style:"text",body:o}}});B({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(r,e){throw new M("Mismatched "+r.funcName)}});var rr=(r,e)=>{switch(e.style.size){case I.DISPLAY.size:return r.display;case I.TEXT.size:return r.text;case I.SCRIPT.size:return r.script;case I.SCRIPTSCRIPT.size:return r.scriptscript;default:return r.text}};B({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(r,e)=>{var{parser:t}=r;return{type:"mathchoice",mode:t.mode,display:Q(e[0]),text:Q(e[1]),script:Q(e[2]),scriptscript:Q(e[3])}},htmlBuilder:(r,e)=>{var t=rr(r,e),a=t0(t,e,!1);return b.makeFragment(a)},mathmlBuilder:(r,e)=>{var t=rr(r,e);return G0(t,e)}});var _r=(r,e,t,a,n,s,o)=>{r=b.makeSpan([],[r]);var m=t&&E.isCharacterBox(t),c,p;if(e){var g=P(e,a.havingStyle(n.sup()),a);p={elem:g,kern:Math.max(a.fontMetrics().bigOpSpacing1,a.fontMetrics().bigOpSpacing3-g.depth)}}if(t){var y=P(t,a.havingStyle(n.sub()),a);c={elem:y,kern:Math.max(a.fontMetrics().bigOpSpacing2,a.fontMetrics().bigOpSpacing4-y.height)}}var x;if(p&&c){var w=a.fontMetrics().bigOpSpacing5+c.elem.height+c.elem.depth+c.kern+r.depth+o;x=b.makeVList({positionType:"bottom",positionData:w,children:[{type:"kern",size:a.fontMetrics().bigOpSpacing5},{type:"elem",elem:c.elem,marginLeft:T(-s)},{type:"kern",size:c.kern},{type:"elem",elem:r},{type:"kern",size:p.kern},{type:"elem",elem:p.elem,marginLeft:T(s)},{type:"kern",size:a.fontMetrics().bigOpSpacing5}]},a)}else if(c){var z=r.height-o;x=b.makeVList({positionType:"top",positionData:z,children:[{type:"kern",size:a.fontMetrics().bigOpSpacing5},{type:"elem",elem:c.elem,marginLeft:T(-s)},{type:"kern",size:c.kern},{type:"elem",elem:r}]},a)}else if(p){var A=r.depth+o;x=b.makeVList({positionType:"bottom",positionData:A,children:[{type:"elem",elem:r},{type:"kern",size:p.kern},{type:"elem",elem:p.elem,marginLeft:T(s)},{type:"kern",size:a.fontMetrics().bigOpSpacing5}]},a)}else return r;var C=[x];if(c&&s!==0&&!m){var q=b.makeSpan(["mspace"],[],a);q.style.marginRight=T(s),C.unshift(q)}return b.makeSpan(["mop","op-limits"],C,a)},ea=["\\smallint"],re=(r,e)=>{var t,a,n=!1,s;r.type==="supsub"?(t=r.sup,a=r.sub,s=L(r.base,"op"),n=!0):s=L(r,"op");var o=e.style,m=!1;o.size===I.DISPLAY.size&&s.symbol&&!E.contains(ea,s.name)&&(m=!0);var c;if(s.symbol){var p=m?"Size2-Regular":"Size1-Regular",g="";if((s.name==="\\oiint"||s.name==="\\oiiint")&&(g=s.name.slice(1),s.name=g==="oiint"?"\\iint":"\\iiint"),c=b.makeSymbol(s.name,p,"math",e,["mop","op-symbol",m?"large-op":"small-op"]),g.length>0){var y=c.italic,x=b.staticSvg(g+"Size"+(m?"2":"1"),e);c=b.makeVList({positionType:"individualShift",children:[{type:"elem",elem:c,shift:0},{type:"elem",elem:x,shift:m?.08:0}]},e),s.name="\\"+g,c.classes.unshift("mop"),c.italic=y}}else if(s.body){var w=t0(s.body,e,!0);w.length===1&&w[0]instanceof f0?(c=w[0],c.classes[0]="mop"):c=b.makeSpan(["mop"],w,e)}else{for(var z=[],A=1;A<s.name.length;A++)z.push(b.mathsym(s.name[A],s.mode,e));c=b.makeSpan(["mop"],z,e)}var C=0,q=0;return(c instanceof f0||s.name==="\\oiint"||s.name==="\\oiiint")&&!s.suppressBaseShift&&(C=(c.height-c.depth)/2-e.fontMetrics().axisHeight,q=c.italic),n?_r(c,t,a,e,o,q,C):(C&&(c.style.position="relative",c.style.top=T(C)),c)},ce=(r,e)=>{var t;if(r.symbol)t=new c0("mo",[p0(r.name,r.mode)]),E.contains(ea,r.name)&&t.setAttribute("largeop","false");else if(r.body)t=new c0("mo",o0(r.body,e));else{t=new c0("mi",[new ie(r.name.slice(1))]);var a=new c0("mo",[p0("","text")]);r.parentIsSupSub?t=new c0("mrow",[t,a]):t=Br([t,a])}return t},$1={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};B({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(r,e)=>{var{parser:t,funcName:a}=r,n=a;return n.length===1&&(n=$1[n]),{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:re,mathmlBuilder:ce});B({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(r,e)=>{var{parser:t}=r,a=e[0];return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Q(a)}},htmlBuilder:re,mathmlBuilder:ce});var W1={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};B({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(r){var{parser:e,funcName:t}=r;return{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:t}},htmlBuilder:re,mathmlBuilder:ce});B({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(r){var{parser:e,funcName:t}=r;return{type:"op",mode:e.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:t}},htmlBuilder:re,mathmlBuilder:ce});B({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(r){var{parser:e,funcName:t}=r,a=t;return a.length===1&&(a=W1[a]),{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:a}},htmlBuilder:re,mathmlBuilder:ce});var ta=(r,e)=>{var t,a,n=!1,s;r.type==="supsub"?(t=r.sup,a=r.sub,s=L(r.base,"operatorname"),n=!0):s=L(r,"operatorname");var o;if(s.body.length>0){for(var m=s.body.map(y=>{var x=y.text;return typeof x=="string"?{type:"textord",mode:y.mode,text:x}:y}),c=t0(m,e.withFont("mathrm"),!0),p=0;p<c.length;p++){var g=c[p];g instanceof f0&&(g.text=g.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}o=b.makeSpan(["mop"],c,e)}else o=b.makeSpan(["mop"],[],e);return n?_r(o,t,a,e,e.style,0,0):o},j1=(r,e)=>{for(var t=o0(r.body,e.withFont("mathrm")),a=!0,n=0;n<t.length;n++){var s=t[n];if(!(s instanceof S.SpaceNode))if(s instanceof S.MathNode)switch(s.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var o=s.children[0];s.children.length===1&&o instanceof S.TextNode?o.text=o.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):a=!1;break}default:a=!1}else a=!1}if(a){var m=t.map(g=>g.toText()).join("");t=[new S.TextNode(m)]}var c=new S.MathNode("mi",t);c.setAttribute("mathvariant","normal");var p=new S.MathNode("mo",[p0("","text")]);return r.parentIsSupSub?new S.MathNode("mrow",[c,p]):S.newDocumentFragment([c,p])};B({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(r,e)=>{var{parser:t,funcName:a}=r,n=e[0];return{type:"operatorname",mode:t.mode,body:Q(n),alwaysHandleSupSub:a==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:ta,mathmlBuilder:j1});u("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");$0({type:"ordgroup",htmlBuilder(r,e){return r.semisimple?b.makeFragment(t0(r.body,e,!1)):b.makeSpan(["mord"],t0(r.body,e,!0),e)},mathmlBuilder(r,e){return G0(r.body,e,!0)}});B({type:"overline",names:["\\overline"],props:{numArgs:1},handler(r,e){var{parser:t}=r,a=e[0];return{type:"overline",mode:t.mode,body:a}},htmlBuilder(r,e){var t=P(r.body,e.havingCrampedStyle()),a=b.makeLineSpan("overline-line",e),n=e.fontMetrics().defaultRuleThickness,s=b.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:t},{type:"kern",size:3*n},{type:"elem",elem:a},{type:"kern",size:n}]},e);return b.makeSpan(["mord","overline"],[s],e)},mathmlBuilder(r,e){var t=new S.MathNode("mo",[new S.TextNode("‾")]);t.setAttribute("stretchy","true");var a=new S.MathNode("mover",[X(r.body,e),t]);return a.setAttribute("accent","true"),a}});B({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(r,e)=>{var{parser:t}=r,a=e[0];return{type:"phantom",mode:t.mode,body:Q(a)}},htmlBuilder:(r,e)=>{var t=t0(r.body,e.withPhantom(),!1);return b.makeFragment(t)},mathmlBuilder:(r,e)=>{var t=o0(r.body,e);return new S.MathNode("mphantom",t)}});B({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(r,e)=>{var{parser:t}=r,a=e[0];return{type:"hphantom",mode:t.mode,body:a}},htmlBuilder:(r,e)=>{var t=b.makeSpan([],[P(r.body,e.withPhantom())]);if(t.height=0,t.depth=0,t.children)for(var a=0;a<t.children.length;a++)t.children[a].height=0,t.children[a].depth=0;return t=b.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:t}]},e),b.makeSpan(["mord"],[t],e)},mathmlBuilder:(r,e)=>{var t=o0(Q(r.body),e),a=new S.MathNode("mphantom",t),n=new S.MathNode("mpadded",[a]);return n.setAttribute("height","0px"),n.setAttribute("depth","0px"),n}});B({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(r,e)=>{var{parser:t}=r,a=e[0];return{type:"vphantom",mode:t.mode,body:a}},htmlBuilder:(r,e)=>{var t=b.makeSpan(["inner"],[P(r.body,e.withPhantom())]),a=b.makeSpan(["fix"],[]);return b.makeSpan(["mord","rlap"],[t,a],e)},mathmlBuilder:(r,e)=>{var t=o0(Q(r.body),e),a=new S.MathNode("mphantom",t),n=new S.MathNode("mpadded",[a]);return n.setAttribute("width","0px"),n}});B({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(r,e){var{parser:t}=r,a=L(e[0],"size").value,n=e[1];return{type:"raisebox",mode:t.mode,dy:a,body:n}},htmlBuilder(r,e){var t=P(r.body,e),a=K(r.dy,e);return b.makeVList({positionType:"shift",positionData:-a,children:[{type:"elem",elem:t}]},e)},mathmlBuilder(r,e){var t=new S.MathNode("mpadded",[X(r.body,e)]),a=r.dy.number+r.dy.unit;return t.setAttribute("voffset",a),t}});B({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0},handler(r){var{parser:e}=r;return{type:"internal",mode:e.mode}}});B({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler(r,e,t){var{parser:a}=r,n=t[0],s=L(e[0],"size"),o=L(e[1],"size");return{type:"rule",mode:a.mode,shift:n&&L(n,"size").value,width:s.value,height:o.value}},htmlBuilder(r,e){var t=b.makeSpan(["mord","rule"],[],e),a=K(r.width,e),n=K(r.height,e),s=r.shift?K(r.shift,e):0;return t.style.borderRightWidth=T(a),t.style.borderTopWidth=T(n),t.style.bottom=T(s),t.width=a,t.height=n+s,t.depth=-s,t.maxFontSize=n*1.125*e.sizeMultiplier,t},mathmlBuilder(r,e){var t=K(r.width,e),a=K(r.height,e),n=r.shift?K(r.shift,e):0,s=e.color&&e.getColor()||"black",o=new S.MathNode("mspace");o.setAttribute("mathbackground",s),o.setAttribute("width",T(t)),o.setAttribute("height",T(a));var m=new S.MathNode("mpadded",[o]);return n>=0?m.setAttribute("height",T(n)):(m.setAttribute("height",T(n)),m.setAttribute("depth",T(-n))),m.setAttribute("voffset",T(n)),m}});function ra(r,e,t){for(var a=t0(r,e,!1),n=e.sizeMultiplier/t.sizeMultiplier,s=0;s<a.length;s++){var o=a[s].classes.indexOf("sizing");o<0?Array.prototype.push.apply(a[s].classes,e.sizingClasses(t)):a[s].classes[o+1]==="reset-size"+e.size&&(a[s].classes[o+1]="reset-size"+t.size),a[s].height*=n,a[s].depth*=n}return b.makeFragment(a)}var ar=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],Z1=(r,e)=>{var t=e.havingSize(r.size);return ra(r.body,t,e)};B({type:"sizing",names:ar,props:{numArgs:0,allowedInText:!0},handler:(r,e)=>{var{breakOnTokenText:t,funcName:a,parser:n}=r,s=n.parseExpression(!1,t);return{type:"sizing",mode:n.mode,size:ar.indexOf(a)+1,body:s}},htmlBuilder:Z1,mathmlBuilder:(r,e)=>{var t=e.havingSize(r.size),a=o0(r.body,t),n=new S.MathNode("mstyle",a);return n.setAttribute("mathsize",T(t.sizeMultiplier)),n}});B({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(r,e,t)=>{var{parser:a}=r,n=!1,s=!1,o=t[0]&&L(t[0],"ordgroup");if(o)for(var m="",c=0;c<o.body.length;++c){var p=o.body[c];if(m=p.text,m==="t")n=!0;else if(m==="b")s=!0;else{n=!1,s=!1;break}}else n=!0,s=!0;var g=e[0];return{type:"smash",mode:a.mode,body:g,smashHeight:n,smashDepth:s}},htmlBuilder:(r,e)=>{var t=b.makeSpan([],[P(r.body,e)]);if(!r.smashHeight&&!r.smashDepth)return t;if(r.smashHeight&&(t.height=0,t.children))for(var a=0;a<t.children.length;a++)t.children[a].height=0;if(r.smashDepth&&(t.depth=0,t.children))for(var n=0;n<t.children.length;n++)t.children[n].depth=0;var s=b.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:t}]},e);return b.makeSpan(["mord"],[s],e)},mathmlBuilder:(r,e)=>{var t=new S.MathNode("mpadded",[X(r.body,e)]);return r.smashHeight&&t.setAttribute("height","0px"),r.smashDepth&&t.setAttribute("depth","0px"),t}});B({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(r,e,t){var{parser:a}=r,n=t[0],s=e[0];return{type:"sqrt",mode:a.mode,body:s,index:n}},htmlBuilder(r,e){var t=P(r.body,e.havingCrampedStyle());t.height===0&&(t.height=e.fontMetrics().xHeight),t=b.wrapFragment(t,e);var a=e.fontMetrics(),n=a.defaultRuleThickness,s=n;e.style.id<I.TEXT.id&&(s=e.fontMetrics().xHeight);var o=n+s/4,m=t.height+t.depth+o+n,{span:c,ruleWidth:p,advanceWidth:g}=B0.sqrtImage(m,e),y=c.height-p;y>t.height+t.depth+o&&(o=(o+y-t.height-t.depth)/2);var x=c.height-t.height-o-p;t.style.paddingLeft=T(g);var w=b.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:t,wrapperClasses:["svg-align"]},{type:"kern",size:-(t.height+x)},{type:"elem",elem:c},{type:"kern",size:p}]},e);if(r.index){var z=e.havingStyle(I.SCRIPTSCRIPT),A=P(r.index,z,e),C=.6*(w.height-w.depth),q=b.makeVList({positionType:"shift",positionData:-C,children:[{type:"elem",elem:A}]},e),O=b.makeSpan(["root"],[q]);return b.makeSpan(["mord","sqrt"],[O,w],e)}else return b.makeSpan(["mord","sqrt"],[w],e)},mathmlBuilder(r,e){var{body:t,index:a}=r;return a?new S.MathNode("mroot",[X(t,e),X(a,e)]):new S.MathNode("msqrt",[X(t,e)])}});var nr={display:I.DISPLAY,text:I.TEXT,script:I.SCRIPT,scriptscript:I.SCRIPTSCRIPT};B({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(r,e){var{breakOnTokenText:t,funcName:a,parser:n}=r,s=n.parseExpression(!0,t),o=a.slice(1,a.length-5);return{type:"styling",mode:n.mode,style:o,body:s}},htmlBuilder(r,e){var t=nr[r.style],a=e.havingStyle(t).withFont("");return ra(r.body,a,e)},mathmlBuilder(r,e){var t=nr[r.style],a=e.havingStyle(t),n=o0(r.body,a),s=new S.MathNode("mstyle",n),o={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},m=o[r.style];return s.setAttribute("scriptlevel",m[0]),s.setAttribute("displaystyle",m[1]),s}});var K1=function(e,t){var a=e.base;if(a)if(a.type==="op"){var n=a.limits&&(t.style.size===I.DISPLAY.size||a.alwaysHandleSupSub);return n?re:null}else if(a.type==="operatorname"){var s=a.alwaysHandleSupSub&&(t.style.size===I.DISPLAY.size||a.limits);return s?ta:null}else{if(a.type==="accent")return E.isCharacterBox(a.base)?wt:null;if(a.type==="horizBrace"){var o=!e.sub;return o===a.isOver?Qr:null}else return null}else return null};$0({type:"supsub",htmlBuilder(r,e){var t=K1(r,e);if(t)return t(r,e);var{base:a,sup:n,sub:s}=r,o=P(a,e),m,c,p=e.fontMetrics(),g=0,y=0,x=a&&E.isCharacterBox(a);if(n){var w=e.havingStyle(e.style.sup());m=P(n,w,e),x||(g=o.height-w.fontMetrics().supDrop*w.sizeMultiplier/e.sizeMultiplier)}if(s){var z=e.havingStyle(e.style.sub());c=P(s,z,e),x||(y=o.depth+z.fontMetrics().subDrop*z.sizeMultiplier/e.sizeMultiplier)}var A;e.style===I.DISPLAY?A=p.sup1:e.style.cramped?A=p.sup3:A=p.sup2;var C=e.sizeMultiplier,q=T(.5/p.ptPerEm/C),O=null;if(c){var H=r.base&&r.base.type==="op"&&r.base.name&&(r.base.name==="\\oiint"||r.base.name==="\\oiiint");(o instanceof f0||H)&&(O=T(-o.italic))}var V;if(m&&c){g=Math.max(g,A,m.depth+.25*p.xHeight),y=Math.max(y,p.sub2);var F=p.defaultRuleThickness,U=4*F;if(g-m.depth-(c.height-y)<U){y=U-(g-m.depth)+c.height;var G=.8*p.xHeight-(g-m.depth);G>0&&(g+=G,y-=G)}var j=[{type:"elem",elem:c,shift:y,marginRight:q,marginLeft:O},{type:"elem",elem:m,shift:-g,marginRight:q}];V=b.makeVList({positionType:"individualShift",children:j},e)}else if(c){y=Math.max(y,p.sub1,c.height-.8*p.xHeight);var Y=[{type:"elem",elem:c,marginLeft:O,marginRight:q}];V=b.makeVList({positionType:"shift",positionData:y,children:Y},e)}else if(m)g=Math.max(g,A,m.depth+.25*p.xHeight),V=b.makeVList({positionType:"shift",positionData:-g,children:[{type:"elem",elem:m,marginRight:q}]},e);else throw new Error("supsub must have either sup or sub.");var M0=lt(o,"right")||"mord";return b.makeSpan([M0],[o,b.makeSpan(["msupsub"],[V])],e)},mathmlBuilder(r,e){var t=!1,a,n;r.base&&r.base.type==="horizBrace"&&(n=!!r.sup,n===r.base.isOver&&(t=!0,a=r.base.isOver)),r.base&&(r.base.type==="op"||r.base.type==="operatorname")&&(r.base.parentIsSupSub=!0);var s=[X(r.base,e)];r.sub&&s.push(X(r.sub,e)),r.sup&&s.push(X(r.sup,e));var o;if(t)o=a?"mover":"munder";else if(r.sub)if(r.sup){var p=r.base;p&&p.type==="op"&&p.limits&&e.style===I.DISPLAY||p&&p.type==="operatorname"&&p.alwaysHandleSupSub&&(e.style===I.DISPLAY||p.limits)?o="munderover":o="msubsup"}else{var c=r.base;c&&c.type==="op"&&c.limits&&(e.style===I.DISPLAY||c.alwaysHandleSupSub)||c&&c.type==="operatorname"&&c.alwaysHandleSupSub&&(c.limits||e.style===I.DISPLAY)?o="munder":o="msub"}else{var m=r.base;m&&m.type==="op"&&m.limits&&(e.style===I.DISPLAY||m.alwaysHandleSupSub)||m&&m.type==="operatorname"&&m.alwaysHandleSupSub&&(m.limits||e.style===I.DISPLAY)?o="mover":o="msup"}return new S.MathNode(o,s)}});$0({type:"atom",htmlBuilder(r,e){return b.mathsym(r.text,r.mode,e,["m"+r.family])},mathmlBuilder(r,e){var t=new S.MathNode("mo",[p0(r.text,r.mode)]);if(r.family==="bin"){var a=bt(r,e);a==="bold-italic"&&t.setAttribute("mathvariant",a)}else r.family==="punct"?t.setAttribute("separator","true"):(r.family==="open"||r.family==="close")&&t.setAttribute("stretchy","false");return t}});var aa={mi:"italic",mn:"normal",mtext:"normal"};$0({type:"mathord",htmlBuilder(r,e){return b.makeOrd(r,e,"mathord")},mathmlBuilder(r,e){var t=new S.MathNode("mi",[p0(r.text,r.mode,e)]),a=bt(r,e)||"italic";return a!==aa[t.type]&&t.setAttribute("mathvariant",a),t}});$0({type:"textord",htmlBuilder(r,e){return b.makeOrd(r,e,"textord")},mathmlBuilder(r,e){var t=p0(r.text,r.mode,e),a=bt(r,e)||"normal",n;return r.mode==="text"?n=new S.MathNode("mtext",[t]):/[0-9]/.test(r.text)?n=new S.MathNode("mn",[t]):r.text==="\\prime"?n=new S.MathNode("mo",[t]):n=new S.MathNode("mi",[t]),a!==aa[n.type]&&n.setAttribute("mathvariant",a),n}});var et={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},tt={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};$0({type:"spacing",htmlBuilder(r,e){if(tt.hasOwnProperty(r.text)){var t=tt[r.text].className||"";if(r.mode==="text"){var a=b.makeOrd(r,e,"textord");return a.classes.push(t),a}else return b.makeSpan(["mspace",t],[b.mathsym(r.text,r.mode,e)],e)}else{if(et.hasOwnProperty(r.text))return b.makeSpan(["mspace",et[r.text]],[],e);throw new M('Unknown type of space "'+r.text+'"')}},mathmlBuilder(r,e){var t;if(tt.hasOwnProperty(r.text))t=new S.MathNode("mtext",[new S.TextNode(" ")]);else{if(et.hasOwnProperty(r.text))return new S.MathNode("mspace");throw new M('Unknown type of space "'+r.text+'"')}return t}});var ir=()=>{var r=new S.MathNode("mtd",[]);return r.setAttribute("width","50%"),r};$0({type:"tag",mathmlBuilder(r,e){var t=new S.MathNode("mtable",[new S.MathNode("mtr",[ir(),new S.MathNode("mtd",[G0(r.body,e)]),ir(),new S.MathNode("mtd",[G0(r.tag,e)])])]);return t.setAttribute("width","100%"),t}});var sr={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},lr={"\\textbf":"textbf","\\textmd":"textmd"},J1={"\\textit":"textit","\\textup":"textup"},or=(r,e)=>{var t=r.font;return t?sr[t]?e.withTextFontFamily(sr[t]):lr[t]?e.withTextFontWeight(lr[t]):e.withTextFontShape(J1[t]):e};B({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(r,e){var{parser:t,funcName:a}=r,n=e[0];return{type:"text",mode:t.mode,body:Q(n),font:a}},htmlBuilder(r,e){var t=or(r,e),a=t0(r.body,t,!0);return b.makeSpan(["mord","text"],a,t)},mathmlBuilder(r,e){var t=or(r,e);return G0(r.body,t)}});B({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(r,e){var{parser:t}=r;return{type:"underline",mode:t.mode,body:e[0]}},htmlBuilder(r,e){var t=P(r.body,e),a=b.makeLineSpan("underline-line",e),n=e.fontMetrics().defaultRuleThickness,s=b.makeVList({positionType:"top",positionData:t.height,children:[{type:"kern",size:n},{type:"elem",elem:a},{type:"kern",size:3*n},{type:"elem",elem:t}]},e);return b.makeSpan(["mord","underline"],[s],e)},mathmlBuilder(r,e){var t=new S.MathNode("mo",[new S.TextNode("‾")]);t.setAttribute("stretchy","true");var a=new S.MathNode("munder",[X(r.body,e),t]);return a.setAttribute("accentunder","true"),a}});B({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(r,e){var{parser:t}=r;return{type:"vcenter",mode:t.mode,body:e[0]}},htmlBuilder(r,e){var t=P(r.body,e),a=e.fontMetrics().axisHeight,n=.5*(t.height-a-(t.depth+a));return b.makeVList({positionType:"shift",positionData:n,children:[{type:"elem",elem:t}]},e)},mathmlBuilder(r,e){return new S.MathNode("mpadded",[X(r.body,e)],["vcenter"])}});B({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(r,e,t){throw new M("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(r,e){for(var t=hr(r),a=[],n=e.havingStyle(e.style.text()),s=0;s<t.length;s++){var o=t[s];o==="~"&&(o="\\textasciitilde"),a.push(b.makeSymbol(o,"Typewriter-Regular",r.mode,n,["mord","texttt"]))}return b.makeSpan(["mord","text"].concat(n.sizingClasses(e)),b.tryCombineChars(a),n)},mathmlBuilder(r,e){var t=new S.TextNode(hr(r)),a=new S.MathNode("mtext",[t]);return a.setAttribute("mathvariant","monospace"),a}});var hr=r=>r.body.replace(/ /g,r.star?"␣":" "),L0=Tr,na=`[ \r
]`,Q1="\\\\[a-zA-Z@]+",_1="\\\\[^\uD800-\uDFFF]",e4="("+Q1+")"+na+"*",t4=`\\\\(
|[ \r ]+
?)[ \r ]*`,ut="[̀-ͯ]",r4=new RegExp(ut+"+$"),a4="("+na+"+)|"+(t4+"|")+"([!-\\[\\]-‧-豈-]"+(ut+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(ut+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+e4)+("|"+_1+")");class mr{constructor(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=new RegExp(a4,"g"),this.catcodes={"%":14,"~":13}}setCatcode(e,t){this.catcodes[e]=t}lex(){var e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new w0("EOF",new h0(this,t,t));var a=this.tokenRegex.exec(e);if(a===null||a.index!==t)throw new M("Unexpected character: '"+e[t]+"'",new w0(e[t],new h0(this,t,t+1)));var n=a[6]||a[3]||(a[2]?"\\ ":" ");if(this.catcodes[n]===14){var s=e.indexOf(`
`,this.tokenRegex.lastIndex);return s===-1?(this.tokenRegex.lastIndex=e.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=s+1,this.lex()}return new w0(n,new h0(this,t,this.tokenRegex.lastIndex))}}class n4{constructor(e,t){e===void 0&&(e={}),t===void 0&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new M("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var t in e)e.hasOwnProperty(t)&&(e[t]==null?delete this.current[t]:this.current[t]=e[t])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]}set(e,t,a){if(a===void 0&&(a=!1),a){for(var n=0;n<this.undefStack.length;n++)delete this.undefStack[n][e];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var s=this.undefStack[this.undefStack.length-1];s&&!s.hasOwnProperty(e)&&(s[e]=this.current[e])}t==null?delete this.current[e]:this.current[e]=t}}var i4=Wr;u("\\noexpand",function(r){var e=r.popToken();return r.isExpandable(e.text)&&(e.noexpand=!0,e.treatAsRelax=!0),{tokens:[e],numArgs:0}});u("\\expandafter",function(r){var e=r.popToken();return r.expandOnce(!0),{tokens:[e],numArgs:0}});u("\\@firstoftwo",function(r){var e=r.consumeArgs(2);return{tokens:e[0],numArgs:0}});u("\\@secondoftwo",function(r){var e=r.consumeArgs(2);return{tokens:e[1],numArgs:0}});u("\\@ifnextchar",function(r){var e=r.consumeArgs(3);r.consumeSpaces();var t=r.future();return e[0].length===1&&e[0][0].text===t.text?{tokens:e[1],numArgs:0}:{tokens:e[2],numArgs:0}});u("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");u("\\TextOrMath",function(r){var e=r.consumeArgs(2);return r.mode==="text"?{tokens:e[0],numArgs:0}:{tokens:e[1],numArgs:0}});var ur={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};u("\\char",function(r){var e=r.popToken(),t,a="";if(e.text==="'")t=8,e=r.popToken();else if(e.text==='"')t=16,e=r.popToken();else if(e.text==="`")if(e=r.popToken(),e.text[0]==="\\")a=e.text.charCodeAt(1);else{if(e.text==="EOF")throw new M("\\char` missing argument");a=e.text.charCodeAt(0)}else t=10;if(t){if(a=ur[e.text],a==null||a>=t)throw new M("Invalid base-"+t+" digit "+e.text);for(var n;(n=ur[r.future().text])!=null&&n<t;)a*=t,a+=n,r.popToken()}return"\\@char{"+a+"}"});var Bt=(r,e,t)=>{var a=r.consumeArg().tokens;if(a.length!==1)throw new M("\\newcommand's first argument must be a macro name");var n=a[0].text,s=r.isDefined(n);if(s&&!e)throw new M("\\newcommand{"+n+"} attempting to redefine "+(n+"; use \\renewcommand"));if(!s&&!t)throw new M("\\renewcommand{"+n+"} when command "+n+" does not yet exist; use \\newcommand");var o=0;if(a=r.consumeArg().tokens,a.length===1&&a[0].text==="["){for(var m="",c=r.expandNextToken();c.text!=="]"&&c.text!=="EOF";)m+=c.text,c=r.expandNextToken();if(!m.match(/^\s*[0-9]+\s*$/))throw new M("Invalid number of arguments: "+m);o=parseInt(m),a=r.consumeArg().tokens}return r.macros.set(n,{tokens:a,numArgs:o}),""};u("\\newcommand",r=>Bt(r,!1,!0));u("\\renewcommand",r=>Bt(r,!0,!1));u("\\providecommand",r=>Bt(r,!0,!0));u("\\message",r=>{var e=r.consumeArgs(1)[0];return console.log(e.reverse().map(t=>t.text).join("")),""});u("\\errmessage",r=>{var e=r.consumeArgs(1)[0];return console.error(e.reverse().map(t=>t.text).join("")),""});u("\\show",r=>{var e=r.popToken(),t=e.text;return console.log(e,r.macros.get(t),L0[t],$.math[t],$.text[t]),""});u("\\bgroup","{");u("\\egroup","}");u("~","\\nobreakspace");u("\\lq","`");u("\\rq","'");u("\\aa","\\r a");u("\\AA","\\r A");u("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");u("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");u("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");u("ℬ","\\mathscr{B}");u("ℰ","\\mathscr{E}");u("ℱ","\\mathscr{F}");u("ℋ","\\mathscr{H}");u("ℐ","\\mathscr{I}");u("ℒ","\\mathscr{L}");u("ℳ","\\mathscr{M}");u("ℛ","\\mathscr{R}");u("ℭ","\\mathfrak{C}");u("ℌ","\\mathfrak{H}");u("ℨ","\\mathfrak{Z}");u("\\Bbbk","\\Bbb{k}");u("·","\\cdotp");u("\\llap","\\mathllap{\\textrm{#1}}");u("\\rlap","\\mathrlap{\\textrm{#1}}");u("\\clap","\\mathclap{\\textrm{#1}}");u("\\mathstrut","\\vphantom{(}");u("\\underbar","\\underline{\\text{#1}}");u("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}');u("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");u("\\ne","\\neq");u("≠","\\neq");u("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");u("∉","\\notin");u("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");u("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");u("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");u("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");u("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");u("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");u("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");u("⟂","\\perp");u("‼","\\mathclose{!\\mkern-0.8mu!}");u("∌","\\notni");u("⌜","\\ulcorner");u("⌝","\\urcorner");u("⌞","\\llcorner");u("⌟","\\lrcorner");u("©","\\copyright");u("®","\\textregistered");u("️","\\textregistered");u("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');u("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');u("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');u("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');u("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}");u("⋮","\\vdots");u("\\varGamma","\\mathit{\\Gamma}");u("\\varDelta","\\mathit{\\Delta}");u("\\varTheta","\\mathit{\\Theta}");u("\\varLambda","\\mathit{\\Lambda}");u("\\varXi","\\mathit{\\Xi}");u("\\varPi","\\mathit{\\Pi}");u("\\varSigma","\\mathit{\\Sigma}");u("\\varUpsilon","\\mathit{\\Upsilon}");u("\\varPhi","\\mathit{\\Phi}");u("\\varPsi","\\mathit{\\Psi}");u("\\varOmega","\\mathit{\\Omega}");u("\\substack","\\begin{subarray}{c}#1\\end{subarray}");u("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");u("\\boxed","\\fbox{$\\displaystyle{#1}$}");u("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");u("\\implies","\\DOTSB\\;\\Longrightarrow\\;");u("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var cr={",":"\\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"};u("\\dots",function(r){var e="\\dotso",t=r.expandAfterFuture().text;return t in cr?e=cr[t]:(t.slice(0,4)==="\\not"||t in $.math&&E.contains(["bin","rel"],$.math[t].group))&&(e="\\dotsb"),e});var Nt={")":!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};u("\\dotso",function(r){var e=r.future().text;return e in Nt?"\\ldots\\,":"\\ldots"});u("\\dotsc",function(r){var e=r.future().text;return e in Nt&&e!==","?"\\ldots\\,":"\\ldots"});u("\\cdots",function(r){var e=r.future().text;return e in Nt?"\\@cdots\\,":"\\@cdots"});u("\\dotsb","\\cdots");u("\\dotsm","\\cdots");u("\\dotsi","\\!\\cdots");u("\\dotsx","\\ldots\\,");u("\\DOTSI","\\relax");u("\\DOTSB","\\relax");u("\\DOTSX","\\relax");u("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");u("\\,","\\tmspace+{3mu}{.1667em}");u("\\thinspace","\\,");u("\\>","\\mskip{4mu}");u("\\:","\\tmspace+{4mu}{.2222em}");u("\\medspace","\\:");u("\\;","\\tmspace+{5mu}{.2777em}");u("\\thickspace","\\;");u("\\!","\\tmspace-{3mu}{.1667em}");u("\\negthinspace","\\!");u("\\negmedspace","\\tmspace-{4mu}{.2222em}");u("\\negthickspace","\\tmspace-{5mu}{.277em}");u("\\enspace","\\kern.5em ");u("\\enskip","\\hskip.5em\\relax");u("\\quad","\\hskip1em\\relax");u("\\qquad","\\hskip2em\\relax");u("\\tag","\\@ifstar\\tag@literal\\tag@paren");u("\\tag@paren","\\tag@literal{({#1})}");u("\\tag@literal",r=>{if(r.macros.get("\\df@tag"))throw new M("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});u("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");u("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");u("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");u("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");u("\\newline","\\\\\\relax");u("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var ia=T(y0["Main-Regular"][84][1]-.7*y0["Main-Regular"][65][1]);u("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+ia+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");u("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+ia+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");u("\\hspace","\\@ifstar\\@hspacer\\@hspace");u("\\@hspace","\\hskip #1\\relax");u("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");u("\\ordinarycolon",":");u("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");u("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');u("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');u("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');u("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');u("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');u("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');u("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');u("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');u("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');u("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');u("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');u("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');u("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');u("∷","\\dblcolon");u("∹","\\eqcolon");u("≔","\\coloneqq");u("≕","\\eqqcolon");u("⩴","\\Coloneqq");u("\\ratio","\\vcentcolon");u("\\coloncolon","\\dblcolon");u("\\colonequals","\\coloneqq");u("\\coloncolonequals","\\Coloneqq");u("\\equalscolon","\\eqqcolon");u("\\equalscoloncolon","\\Eqqcolon");u("\\colonminus","\\coloneq");u("\\coloncolonminus","\\Coloneq");u("\\minuscolon","\\eqcolon");u("\\minuscoloncolon","\\Eqcolon");u("\\coloncolonapprox","\\Colonapprox");u("\\coloncolonsim","\\Colonsim");u("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");u("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");u("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");u("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");u("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");u("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");u("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");u("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");u("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");u("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");u("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");u("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");u("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");u("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");u("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");u("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");u("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");u("\\nleqq","\\html@mathml{\\@nleqq}{≰}");u("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");u("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");u("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");u("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");u("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");u("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");u("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");u("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");u("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");u("\\imath","\\html@mathml{\\@imath}{ı}");u("\\jmath","\\html@mathml{\\@jmath}{ȷ}");u("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");u("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");u("⟦","\\llbracket");u("⟧","\\rrbracket");u("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");u("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");u("⦃","\\lBrace");u("⦄","\\rBrace");u("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");u("⦵","\\minuso");u("\\darr","\\downarrow");u("\\dArr","\\Downarrow");u("\\Darr","\\Downarrow");u("\\lang","\\langle");u("\\rang","\\rangle");u("\\uarr","\\uparrow");u("\\uArr","\\Uparrow");u("\\Uarr","\\Uparrow");u("\\N","\\mathbb{N}");u("\\R","\\mathbb{R}");u("\\Z","\\mathbb{Z}");u("\\alef","\\aleph");u("\\alefsym","\\aleph");u("\\Alpha","\\mathrm{A}");u("\\Beta","\\mathrm{B}");u("\\bull","\\bullet");u("\\Chi","\\mathrm{X}");u("\\clubs","\\clubsuit");u("\\cnums","\\mathbb{C}");u("\\Complex","\\mathbb{C}");u("\\Dagger","\\ddagger");u("\\diamonds","\\diamondsuit");u("\\empty","\\emptyset");u("\\Epsilon","\\mathrm{E}");u("\\Eta","\\mathrm{H}");u("\\exist","\\exists");u("\\harr","\\leftrightarrow");u("\\hArr","\\Leftrightarrow");u("\\Harr","\\Leftrightarrow");u("\\hearts","\\heartsuit");u("\\image","\\Im");u("\\infin","\\infty");u("\\Iota","\\mathrm{I}");u("\\isin","\\in");u("\\Kappa","\\mathrm{K}");u("\\larr","\\leftarrow");u("\\lArr","\\Leftarrow");u("\\Larr","\\Leftarrow");u("\\lrarr","\\leftrightarrow");u("\\lrArr","\\Leftrightarrow");u("\\Lrarr","\\Leftrightarrow");u("\\Mu","\\mathrm{M}");u("\\natnums","\\mathbb{N}");u("\\Nu","\\mathrm{N}");u("\\Omicron","\\mathrm{O}");u("\\plusmn","\\pm");u("\\rarr","\\rightarrow");u("\\rArr","\\Rightarrow");u("\\Rarr","\\Rightarrow");u("\\real","\\Re");u("\\reals","\\mathbb{R}");u("\\Reals","\\mathbb{R}");u("\\Rho","\\mathrm{P}");u("\\sdot","\\cdot");u("\\sect","\\S");u("\\spades","\\spadesuit");u("\\sub","\\subset");u("\\sube","\\subseteq");u("\\supe","\\supseteq");u("\\Tau","\\mathrm{T}");u("\\thetasym","\\vartheta");u("\\weierp","\\wp");u("\\Zeta","\\mathrm{Z}");u("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");u("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");u("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");u("\\bra","\\mathinner{\\langle{#1}|}");u("\\ket","\\mathinner{|{#1}\\rangle}");u("\\braket","\\mathinner{\\langle{#1}\\rangle}");u("\\Bra","\\left\\langle#1\\right|");u("\\Ket","\\left|#1\\right\\rangle");var sa=r=>e=>{var t=e.consumeArg().tokens,a=e.consumeArg().tokens,n=e.consumeArg().tokens,s=e.consumeArg().tokens,o=e.macros.get("|"),m=e.macros.get("\\|");e.macros.beginGroup();var c=y=>x=>{r&&(x.macros.set("|",o),n.length&&x.macros.set("\\|",m));var w=y;if(!y&&n.length){var z=x.future();z.text==="|"&&(x.popToken(),w=!0)}return{tokens:w?n:a,numArgs:0}};e.macros.set("|",c(!1)),n.length&&e.macros.set("\\|",c(!0));var p=e.consumeArg().tokens,g=e.expandTokens([...s,...p,...t]);return e.macros.endGroup(),{tokens:g.reverse(),numArgs:0}};u("\\bra@ket",sa(!1));u("\\bra@set",sa(!0));u("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");u("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");u("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");u("\\angln","{\\angl n}");u("\\blue","\\textcolor{##6495ed}{#1}");u("\\orange","\\textcolor{##ffa500}{#1}");u("\\pink","\\textcolor{##ff00af}{#1}");u("\\red","\\textcolor{##df0030}{#1}");u("\\green","\\textcolor{##28ae7b}{#1}");u("\\gray","\\textcolor{gray}{#1}");u("\\purple","\\textcolor{##9d38bd}{#1}");u("\\blueA","\\textcolor{##ccfaff}{#1}");u("\\blueB","\\textcolor{##80f6ff}{#1}");u("\\blueC","\\textcolor{##63d9ea}{#1}");u("\\blueD","\\textcolor{##11accd}{#1}");u("\\blueE","\\textcolor{##0c7f99}{#1}");u("\\tealA","\\textcolor{##94fff5}{#1}");u("\\tealB","\\textcolor{##26edd5}{#1}");u("\\tealC","\\textcolor{##01d1c1}{#1}");u("\\tealD","\\textcolor{##01a995}{#1}");u("\\tealE","\\textcolor{##208170}{#1}");u("\\greenA","\\textcolor{##b6ffb0}{#1}");u("\\greenB","\\textcolor{##8af281}{#1}");u("\\greenC","\\textcolor{##74cf70}{#1}");u("\\greenD","\\textcolor{##1fab54}{#1}");u("\\greenE","\\textcolor{##0d923f}{#1}");u("\\goldA","\\textcolor{##ffd0a9}{#1}");u("\\goldB","\\textcolor{##ffbb71}{#1}");u("\\goldC","\\textcolor{##ff9c39}{#1}");u("\\goldD","\\textcolor{##e07d10}{#1}");u("\\goldE","\\textcolor{##a75a05}{#1}");u("\\redA","\\textcolor{##fca9a9}{#1}");u("\\redB","\\textcolor{##ff8482}{#1}");u("\\redC","\\textcolor{##f9685d}{#1}");u("\\redD","\\textcolor{##e84d39}{#1}");u("\\redE","\\textcolor{##bc2612}{#1}");u("\\maroonA","\\textcolor{##ffbde0}{#1}");u("\\maroonB","\\textcolor{##ff92c6}{#1}");u("\\maroonC","\\textcolor{##ed5fa6}{#1}");u("\\maroonD","\\textcolor{##ca337c}{#1}");u("\\maroonE","\\textcolor{##9e034e}{#1}");u("\\purpleA","\\textcolor{##ddd7ff}{#1}");u("\\purpleB","\\textcolor{##c6b9fc}{#1}");u("\\purpleC","\\textcolor{##aa87ff}{#1}");u("\\purpleD","\\textcolor{##7854ab}{#1}");u("\\purpleE","\\textcolor{##543b78}{#1}");u("\\mintA","\\textcolor{##f5f9e8}{#1}");u("\\mintB","\\textcolor{##edf2df}{#1}");u("\\mintC","\\textcolor{##e0e5cc}{#1}");u("\\grayA","\\textcolor{##f6f7f7}{#1}");u("\\grayB","\\textcolor{##f0f1f2}{#1}");u("\\grayC","\\textcolor{##e3e5e6}{#1}");u("\\grayD","\\textcolor{##d6d8da}{#1}");u("\\grayE","\\textcolor{##babec2}{#1}");u("\\grayF","\\textcolor{##888d93}{#1}");u("\\grayG","\\textcolor{##626569}{#1}");u("\\grayH","\\textcolor{##3b3e40}{#1}");u("\\grayI","\\textcolor{##21242c}{#1}");u("\\kaBlue","\\textcolor{##314453}{#1}");u("\\kaGreen","\\textcolor{##71B307}{#1}");var la={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class s4{constructor(e,t,a){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=t,this.expansionCount=0,this.feed(e),this.macros=new n4(i4,t.macros),this.mode=a,this.stack=[]}feed(e){this.lexer=new mr(e,this.settings)}switchMode(e){this.mode=e}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(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var t,a,n;if(e){if(this.consumeSpaces(),this.future().text!=="[")return null;t=this.popToken(),{tokens:n,end:a}=this.consumeArg(["]"])}else({tokens:n,start:t,end:a}=this.consumeArg());return this.pushToken(new w0("EOF",a.loc)),this.pushTokens(n),t.range(a,"")}consumeSpaces(){for(;;){var e=this.future();if(e.text===" ")this.stack.pop();else break}}consumeArg(e){var t=[],a=e&&e.length>0;a||this.consumeSpaces();var n=this.future(),s,o=0,m=0;do{if(s=this.popToken(),t.push(s),s.text==="{")++o;else if(s.text==="}"){if(--o,o===-1)throw new M("Extra }",s)}else if(s.text==="EOF")throw new M("Unexpected end of input in a macro argument, expected '"+(e&&a?e[m]:"}")+"'",s);if(e&&a)if((o===0||o===1&&e[m]==="{")&&s.text===e[m]){if(++m,m===e.length){t.splice(-m,m);break}}else m=0}while(o!==0||a);return n.text==="{"&&t[t.length-1].text==="}"&&(t.pop(),t.shift()),t.reverse(),{tokens:t,start:n,end:s}}consumeArgs(e,t){if(t){if(t.length!==e+1)throw new M("The length of delimiters doesn't match the number of args!");for(var a=t[0],n=0;n<a.length;n++){var s=this.popToken();if(a[n]!==s.text)throw new M("Use of the macro doesn't match its definition",s)}}for(var o=[],m=0;m<e;m++)o.push(this.consumeArg(t&&t[m+1]).tokens);return o}expandOnce(e){var t=this.popToken(),a=t.text,n=t.noexpand?null:this._getExpansion(a);if(n==null||e&&n.unexpandable){if(e&&n==null&&a[0]==="\\"&&!this.isDefined(a))throw new M("Undefined control sequence: "+a);return this.pushToken(t),!1}if(this.expansionCount++,this.expansionCount>this.settings.maxExpand)throw new M("Too many expansions: infinite loop or need to increase maxExpand setting");var s=n.tokens,o=this.consumeArgs(n.numArgs,n.delimiters);if(n.numArgs){s=s.slice();for(var m=s.length-1;m>=0;--m){var c=s[m];if(c.text==="#"){if(m===0)throw new M("Incomplete placeholder at end of macro body",c);if(c=s[--m],c.text==="#")s.splice(m+1,1);else if(/^[1-9]$/.test(c.text))s.splice(m,2,...o[+c.text-1]);else throw new M("Not a valid argument number",c)}}}return this.pushTokens(s),s.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var e=this.stack.pop();return e.treatAsRelax&&(e.text="\\relax"),e}throw new Error}expandMacro(e){return this.macros.has(e)?this.expandTokens([new w0(e)]):void 0}expandTokens(e){var t=[],a=this.stack.length;for(this.pushTokens(e);this.stack.length>a;)if(this.expandOnce(!0)===!1){var n=this.stack.pop();n.treatAsRelax&&(n.noexpand=!1,n.treatAsRelax=!1),t.push(n)}return t}expandMacroAsText(e){var t=this.expandMacro(e);return t&&t.map(a=>a.text).join("")}_getExpansion(e){var t=this.macros.get(e);if(t==null)return t;if(e.length===1){var a=this.lexer.catcodes[e];if(a!=null&&a!==13)return}var n=typeof t=="function"?t(this):t;if(typeof n=="string"){var s=0;if(n.indexOf("#")!==-1)for(var o=n.replace(/##/g,"");o.indexOf("#"+(s+1))!==-1;)++s;for(var m=new mr(n,this.settings),c=[],p=m.lex();p.text!=="EOF";)c.push(p),p=m.lex();c.reverse();var g={tokens:c,numArgs:s};return g}return n}isDefined(e){return this.macros.has(e)||L0.hasOwnProperty(e)||$.math.hasOwnProperty(e)||$.text.hasOwnProperty(e)||la.hasOwnProperty(e)}isExpandable(e){var t=this.macros.get(e);return t!=null?typeof t=="string"||typeof t=="function"||!t.unexpandable:L0.hasOwnProperty(e)&&!L0[e].primitive}}var dr=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,ze=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g",ʰ:"h","ⁱ":"i",ʲ:"j","ᵏ":"k",ˡ:"l","ᵐ":"m",ⁿ:"n","ᵒ":"o","ᵖ":"p",ʳ:"r",ˢ:"s","ᵗ":"t","ᵘ":"u","ᵛ":"v",ʷ:"w",ˣ:"x",ʸ:"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),rt={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},fr={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class he{constructor(e,t){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 s4(e,t,this.mode),this.settings=t,this.leftrightDepth=0}expect(e,t){if(t===void 0&&(t=!0),this.fetch().text!==e)throw new M("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());t&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var t=this.nextToken;this.consume(),this.gullet.pushToken(new w0("}")),this.gullet.pushTokens(e);var a=this.parseExpression(!1);return this.expect("}"),this.nextToken=t,a}parseExpression(e,t){for(var a=[];;){this.mode==="math"&&this.consumeSpaces();var n=this.fetch();if(he.endOfExpression.indexOf(n.text)!==-1||t&&n.text===t||e&&L0[n.text]&&L0[n.text].infix)break;var s=this.parseAtom(t);if(s){if(s.type==="internal")continue}else break;a.push(s)}return this.mode==="text"&&this.formLigatures(a),this.handleInfixNodes(a)}handleInfixNodes(e){for(var t=-1,a,n=0;n<e.length;n++)if(e[n].type==="infix"){if(t!==-1)throw new M("only one infix operator per group",e[n].token);t=n,a=e[n].replaceWith}if(t!==-1&&a){var s,o,m=e.slice(0,t),c=e.slice(t+1);m.length===1&&m[0].type==="ordgroup"?s=m[0]:s={type:"ordgroup",mode:this.mode,body:m},c.length===1&&c[0].type==="ordgroup"?o=c[0]:o={type:"ordgroup",mode:this.mode,body:c};var p;return a==="\\\\abovefrac"?p=this.callFunction(a,[s,e[t],o],[]):p=this.callFunction(a,[s,o],[]),[p]}else return e}handleSupSubscript(e){var t=this.fetch(),a=t.text;this.consume(),this.consumeSpaces();var n=this.parseGroup(e);if(!n)throw new M("Expected group after '"+a+"'",t);return n}formatUnsupportedCmd(e){for(var t=[],a=0;a<e.length;a++)t.push({type:"textord",mode:"text",text:e[a]});var n={type:"text",mode:this.mode,body:t},s={type:"color",mode:this.mode,color:this.settings.errorColor,body:[n]};return s}parseAtom(e){var t=this.parseGroup("atom",e);if(this.mode==="text")return t;for(var a,n;;){this.consumeSpaces();var s=this.fetch();if(s.text==="\\limits"||s.text==="\\nolimits"){if(t&&t.type==="op"){var o=s.text==="\\limits";t.limits=o,t.alwaysHandleSupSub=!0}else if(t&&t.type==="operatorname")t.alwaysHandleSupSub&&(t.limits=s.text==="\\limits");else throw new M("Limit controls must follow a math operator",s);this.consume()}else if(s.text==="^"){if(a)throw new M("Double superscript",s);a=this.handleSupSubscript("superscript")}else if(s.text==="_"){if(n)throw new M("Double subscript",s);n=this.handleSupSubscript("subscript")}else if(s.text==="'"){if(a)throw new M("Double superscript",s);var m={type:"textord",mode:this.mode,text:"\\prime"},c=[m];for(this.consume();this.fetch().text==="'";)c.push(m),this.consume();this.fetch().text==="^"&&c.push(this.handleSupSubscript("superscript")),a={type:"ordgroup",mode:this.mode,body:c}}else if(ze[s.text]){var p=ze[s.text],g=dr.test(s.text);for(this.consume();;){var y=this.fetch().text;if(!ze[y]||dr.test(y)!==g)break;this.consume(),p+=ze[y]}var x=new he(p,this.settings).parse();g?n={type:"ordgroup",mode:"math",body:x}:a={type:"ordgroup",mode:"math",body:x}}else break}return a||n?{type:"supsub",mode:this.mode,base:t,sup:a,sub:n}:t}parseFunction(e,t){var a=this.fetch(),n=a.text,s=L0[n];if(!s)return null;if(this.consume(),t&&t!=="atom"&&!s.allowedInArgument)throw new M("Got function '"+n+"' with no arguments"+(t?" as "+t:""),a);if(this.mode==="text"&&!s.allowedInText)throw new M("Can't use function '"+n+"' in text mode",a);if(this.mode==="math"&&s.allowedInMath===!1)throw new M("Can't use function '"+n+"' in math mode",a);var{args:o,optArgs:m}=this.parseArguments(n,s);return this.callFunction(n,o,m,a,e)}callFunction(e,t,a,n,s){var o={funcName:e,parser:this,token:n,breakOnTokenText:s},m=L0[e];if(m&&m.handler)return m.handler(o,t,a);throw new M("No function handler for "+e)}parseArguments(e,t){var a=t.numArgs+t.numOptionalArgs;if(a===0)return{args:[],optArgs:[]};for(var n=[],s=[],o=0;o<a;o++){var m=t.argTypes&&t.argTypes[o],c=o<t.numOptionalArgs;(t.primitive&&m==null||t.type==="sqrt"&&o===1&&s[0]==null)&&(m="primitive");var p=this.parseGroupOfType("argument to '"+e+"'",m,c);if(c)s.push(p);else if(p!=null)n.push(p);else throw new M("Null argument, please report this as a bug")}return{args:n,optArgs:s}}parseGroupOfType(e,t,a){switch(t){case"color":return this.parseColorGroup(a);case"size":return this.parseSizeGroup(a);case"url":return this.parseUrlGroup(a);case"math":case"text":return this.parseArgumentGroup(a,t);case"hbox":{var n=this.parseArgumentGroup(a,"text");return n!=null?{type:"styling",mode:n.mode,body:[n],style:"text"}:null}case"raw":{var s=this.parseStringGroup("raw",a);return s!=null?{type:"raw",mode:"text",string:s.text}:null}case"primitive":{if(a)throw new M("A primitive argument cannot be optional");var o=this.parseGroup(e);if(o==null)throw new M("Expected group as "+e,this.fetch());return o}case"original":case null:case void 0:return this.parseArgumentGroup(a);default:throw new M("Unknown group type as "+e,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(e,t){var a=this.gullet.scanArgument(t);if(a==null)return null;for(var n="",s;(s=this.fetch()).text!=="EOF";)n+=s.text,this.consume();return this.consume(),a.text=n,a}parseRegexGroup(e,t){for(var a=this.fetch(),n=a,s="",o;(o=this.fetch()).text!=="EOF"&&e.test(s+o.text);)n=o,s+=n.text,this.consume();if(s==="")throw new M("Invalid "+t+": '"+a.text+"'",a);return a.range(n,s)}parseColorGroup(e){var t=this.parseStringGroup("color",e);if(t==null)return null;var a=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(t.text);if(!a)throw new M("Invalid color: '"+t.text+"'",t);var n=a[0];return/^[0-9a-f]{6}$/i.test(n)&&(n="#"+n),{type:"color-token",mode:this.mode,color:n}}parseSizeGroup(e){var t,a=!1;if(this.gullet.consumeSpaces(),!e&&this.gullet.future().text!=="{"?t=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):t=this.parseStringGroup("size",e),!t)return null;!e&&t.text.length===0&&(t.text="0pt",a=!0);var n=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t.text);if(!n)throw new M("Invalid size: '"+t.text+"'",t);var s={number:+(n[1]+n[2]),unit:n[3]};if(!gr(s))throw new M("Invalid unit: '"+s.unit+"'",t);return{type:"size",mode:this.mode,value:s,isBlank:a}}parseUrlGroup(e){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var t=this.parseStringGroup("url",e);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),t==null)return null;var a=t.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:a}}parseArgumentGroup(e,t){var a=this.gullet.scanArgument(e);if(a==null)return null;var n=this.mode;t&&this.switchMode(t),this.gullet.beginGroup();var s=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var o={type:"ordgroup",mode:this.mode,loc:a.loc,body:s};return t&&this.switchMode(n),o}parseGroup(e,t){var a=this.fetch(),n=a.text,s;if(n==="{"||n==="\\begingroup"){this.consume();var o=n==="{"?"}":"\\endgroup";this.gullet.beginGroup();var m=this.parseExpression(!1,o),c=this.fetch();this.expect(o),this.gullet.endGroup(),s={type:"ordgroup",mode:this.mode,loc:h0.range(a,c),body:m,semisimple:n==="\\begingroup"||void 0}}else if(s=this.parseFunction(t,e)||this.parseSymbol(),s==null&&n[0]==="\\"&&!la.hasOwnProperty(n)){if(this.settings.throwOnError)throw new M("Undefined control sequence: "+n,a);s=this.formatUnsupportedCmd(n),this.consume()}return s}formLigatures(e){for(var t=e.length-1,a=0;a<t;++a){var n=e[a],s=n.text;s==="-"&&e[a+1].text==="-"&&(a+1<t&&e[a+2].text==="-"?(e.splice(a,3,{type:"textord",mode:"text",loc:h0.range(n,e[a+2]),text:"---"}),t-=2):(e.splice(a,2,{type:"textord",mode:"text",loc:h0.range(n,e[a+1]),text:"--"}),t-=1)),(s==="'"||s==="`")&&e[a+1].text===s&&(e.splice(a,2,{type:"textord",mode:"text",loc:h0.range(n,e[a+1]),text:s+s}),t-=1)}}parseSymbol(){var e=this.fetch(),t=e.text;if(/^\\verb[^a-zA-Z]/.test(t)){this.consume();var a=t.slice(5),n=a.charAt(0)==="*";if(n&&(a=a.slice(1)),a.length<2||a.charAt(0)!==a.slice(-1))throw new M(`\\verb assertion failed --
please report what input caused this bug`);return a=a.slice(1,-1),{type:"verb",mode:"text",body:a,star:n}}fr.hasOwnProperty(t[0])&&!$[this.mode][t[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+t[0]+'" used in math mode',e),t=fr[t[0]]+t.slice(1));var s=r4.exec(t);s&&(t=t.substring(0,s.index),t==="i"?t="ı":t==="j"&&(t="ȷ"));var o;if($[this.mode][t]){this.settings.strict&&this.mode==="math"&&st.indexOf(t)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+t[0]+'" used in math mode',e);var m=$[this.mode][t].group,c=h0.range(e),p;if(ja.hasOwnProperty(m)){var g=m;p={type:"atom",mode:this.mode,family:g,loc:c,text:t}}else p={type:m,mode:this.mode,loc:c,text:t};o=p}else if(t.charCodeAt(0)>=128)this.settings.strict&&(vr(t.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+t[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+t[0]+'"'+(" ("+t.charCodeAt(0)+")"),e)),o={type:"textord",mode:"text",loc:h0.range(e),text:t};else return null;if(this.consume(),s)for(var y=0;y<s[0].length;y++){var x=s[0][y];if(!rt[x])throw new M("Unknown accent ' "+x+"'",e);var w=rt[x][this.mode]||rt[x].text;if(!w)throw new M("Accent "+x+" unsupported in "+this.mode+" mode",e);o={type:"accent",mode:this.mode,loc:h0.range(e),label:w,isStretchy:!1,isShifty:!0,base:o}}return o}}he.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var Ct=function(e,t){if(!(typeof e=="string"||e instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var a=new he(e,t);delete a.gullet.macros.current["\\df@tag"];var n=a.parse();if(delete a.gullet.macros.current["\\current@color"],delete a.gullet.macros.current["\\color"],a.gullet.macros.get("\\df@tag")){if(!t.displayMode)throw new M("\\tag works only in display equations");n=[{type:"tag",mode:"text",body:n,tag:a.subparse([new w0("\\df@tag")])}]}return n},oa=function(e,t,a){t.textContent="";var n=qt(e,a).toNode();t.appendChild(n)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),oa=function(){throw new M("KaTeX doesn't work in quirks mode.")});var l4=function(e,t){var a=qt(e,t).toMarkup();return a},o4=function(e,t){var a=new ct(t);return Ct(e,a)},ha=function(e,t,a){if(a.throwOnError||!(e instanceof M))throw e;var n=b.makeSpan(["katex-error"],[new f0(t)]);return n.setAttribute("title",e.toString()),n.setAttribute("style","color:"+a.errorColor),n},qt=function(e,t){var a=new ct(t);try{var n=Ct(e,a);return g1(n,e,a)}catch(s){return ha(s,e,a)}},h4=function(e,t){var a=new ct(t);try{var n=Ct(e,a);return b1(n,e,a)}catch(s){return ha(s,e,a)}},m4={version:"0.16.9",render:oa,renderToString:l4,ParseError:M,SETTINGS_SCHEMA:Te,__parse:o4,__renderToDomTree:qt,__renderToHTMLTree:h4,__setFontMetrics:Ga,__defineSymbol:i,__defineFunction:B,__defineMacro:u,__domTree:{Span:ue,Anchor:pt,SymbolNode:f0,SvgNode:N0,PathNode:P0,LineNode:it}};export{m4 as default};
import{c as C,C as yt,D as ft,s as dt,g as pt,b as gt,a as mt,E as xt,h as W,i as kt}from"./slidev/5-BKiUV7YW.js";import{d as _t,f as bt,a as vt,g as it}from"./svgDrawCommon-99ae2c94-qFiheePO.js";import{d as Q}from"./arc-5aa99581-BU3o1NUK.js";import"./modules/vue-Dn3czbSS.js";import"./index-D2S1x1Oe.js";import"./modules/shiki-CuMFyo6Z.js";import"./modules/file-saver-EUMWMpoS.js";import"./slidev/default-CY-sqYNf.js";import"./slidev/context-CYh2-pv1.js";import"./path-39bad7e2-CbwjOpE9.js";var G=function(){var t=function(p,s,r,a){for(r=r||{},a=p.length;a--;r[p[a]]=s);return r},e=[6,8,10,11,12,14,16,17,18],i=[1,9],l=[1,10],n=[1,11],h=[1,12],c=[1,13],f=[1,14],y={trace:function(){},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:function(s,r,a,u,d,o,w){var k=o.length-1;switch(d){case 1:return o[k-1];case 2:this.$=[];break;case 3:o[k-1].push(o[k]),this.$=o[k-1];break;case 4:case 5:this.$=o[k];break;case 6:case 7:this.$=[];break;case 8:u.setDiagramTitle(o[k].substr(6)),this.$=o[k].substr(6);break;case 9:this.$=o[k].trim(),u.setAccTitle(this.$);break;case 10:case 11:this.$=o[k].trim(),u.setAccDescription(this.$);break;case 12:u.addSection(o[k].substr(8)),this.$=o[k].substr(8);break;case 13:u.addTask(o[k-1],o[k]),this.$="task";break}},table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:i,12:l,14:n,16:h,17:c,18:f},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:i,12:l,14:n,16:h,17:c,18:f},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:function(s,r){if(r.recoverable)this.trace(s);else{var a=new Error(s);throw a.hash=r,a}},parse:function(s){var r=this,a=[0],u=[],d=[null],o=[],w=this.table,k="",R=0,Z=0,lt=2,J=1,ct=o.slice.call(arguments,1),x=Object.create(this.lexer),S={yy:{}};for(var z in this.yy)Object.prototype.hasOwnProperty.call(this.yy,z)&&(S.yy[z]=this.yy[z]);x.setInput(s,S.yy),S.yy.lexer=x,S.yy.parser=this,typeof x.yylloc>"u"&&(x.yylloc={});var Y=x.yylloc;o.push(Y);var ht=x.options&&x.options.ranges;typeof S.yy.parseError=="function"?this.parseError=S.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ut(){var $;return $=u.pop()||x.lex()||J,typeof $!="number"&&($ instanceof Array&&(u=$,$=u.pop()),$=r.symbols_[$]||$),$}for(var _,E,b,O,I={},N,T,K,B;;){if(E=a[a.length-1],this.defaultActions[E]?b=this.defaultActions[E]:((_===null||typeof _>"u")&&(_=ut()),b=w[E]&&w[E][_]),typeof b>"u"||!b.length||!b[0]){var q="";B=[];for(N in w[E])this.terminals_[N]&&N>lt&&B.push("'"+this.terminals_[N]+"'");x.showPosition?q="Parse error on line "+(R+1)+`:
`+x.showPosition()+`
Expecting `+B.join(", ")+", got '"+(this.terminals_[_]||_)+"'":q="Parse error on line "+(R+1)+": Unexpected "+(_==J?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(q,{text:x.match,token:this.terminals_[_]||_,line:x.yylineno,loc:Y,expected:B})}if(b[0]instanceof Array&&b.length>1)throw new Error("Parse Error: multiple actions possible at state: "+E+", token: "+_);switch(b[0]){case 1:a.push(_),d.push(x.yytext),o.push(x.yylloc),a.push(b[1]),_=null,Z=x.yyleng,k=x.yytext,R=x.yylineno,Y=x.yylloc;break;case 2:if(T=this.productions_[b[1]][1],I.$=d[d.length-T],I._$={first_line:o[o.length-(T||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(T||1)].first_column,last_column:o[o.length-1].last_column},ht&&(I._$.range=[o[o.length-(T||1)].range[0],o[o.length-1].range[1]]),O=this.performAction.apply(I,[k,Z,R,S.yy,b[1],d,o].concat(ct)),typeof O<"u")return O;T&&(a=a.slice(0,-1*T*2),d=d.slice(0,-1*T),o=o.slice(0,-1*T)),a.push(this.productions_[b[1]][0]),d.push(I.$),o.push(I._$),K=w[a[a.length-2]][a[a.length-1]],a.push(K);break;case 3:return!0}}return!0}},m=function(){var p={EOF:1,parseError:function(r,a){if(this.yy.parser)this.yy.parser.parseError(r,a);else throw new Error(r)},setInput:function(s,r){return this.yy=r||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},input:function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var r=s.match(/(?:\r\n?|\n).*/g);return r?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},unput:function(s){var r=s.length,a=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;var u=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),a.length-1&&(this.yylineno-=a.length-1);var d=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:a?(a.length===u.length?this.yylloc.first_column:0)+u[u.length-a.length].length-a[0].length:this.yylloc.first_column-r},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-r]),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(s){this.unput(this.match.slice(s))},pastInput:function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},upcomingInput: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,"")},showPosition:function(){var s=this.pastInput(),r=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
`+r+"^"},test_match:function(s,r){var a,u,d;if(this.options.backtrack_lexer&&(d={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&&(d.yylloc.range=this.yylloc.range.slice(0))),u=s[0].match(/(?:\r\n?|\n).*/g),u&&(this.yylineno+=u.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:u?u[u.length-1].length-u[u.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],a=this.performAction.call(this,this.yy,this,r,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),a)return a;if(this._backtrack){for(var o in d)this[o]=d[o];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var s,r,a,u;this._more||(this.yytext="",this.match="");for(var d=this._currentRules(),o=0;o<d.length;o++)if(a=this._input.match(this.rules[d[o]]),a&&(!r||a[0].length>r[0].length)){if(r=a,u=o,this.options.backtrack_lexer){if(s=this.test_match(a,d[o]),s!==!1)return s;if(this._backtrack){r=!1;continue}else return!1}else if(!this.options.flex)break}return r?(s=this.test_match(r,d[u]),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})},lex:function(){var r=this.next();return r||this.lex()},begin:function(r){this.conditionStack.push(r)},popState:function(){var r=this.conditionStack.length-1;return r>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(r){return r=this.conditionStack.length-1-Math.abs(r||0),r>=0?this.conditionStack[r]:"INITIAL"},pushState:function(r){this.begin(r)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(r,a,u,d){switch(u){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;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),14;case 10:return this.popState(),"acc_descr_value";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"}},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 p}();y.lexer=m;function g(){this.yy={}}return g.prototype=y,y.Parser=g,new g}();G.parser=G;const wt=G;let A="";const H=[],V=[],F=[],Tt=function(){H.length=0,V.length=0,A="",F.length=0,xt()},$t=function(t){A=t,H.push(t)},Mt=function(){return H},St=function(){let t=D();const e=100;let i=0;for(;!t&&i<e;)t=D(),i++;return V.push(...F),V},Et=function(){const t=[];return V.forEach(i=>{i.people&&t.push(...i.people)}),[...new Set(t)].sort()},Pt=function(t,e){const i=e.substr(1).split(":");let l=0,n=[];i.length===1?(l=Number(i[0]),n=[]):(l=Number(i[0]),n=i[1].split(","));const h=n.map(f=>f.trim()),c={section:A,type:A,people:h,task:t,score:l};F.push(c)},Ct=function(t){const e={section:A,type:A,description:t,task:t,classes:[]};V.push(e)},D=function(){const t=function(i){return F[i].processed};let e=!0;for(const[i,l]of F.entries())t(i),e=e&&l.processed;return e},It=function(){return Et()},tt={getConfig:()=>C().journey,clear:Tt,setDiagramTitle:yt,getDiagramTitle:ft,setAccTitle:dt,getAccTitle:pt,setAccDescription:gt,getAccDescription:mt,addSection:$t,getSections:Mt,getTasks:St,addTask:Pt,addTaskOrg:Ct,getActors:It},At=t=>`.label {
font-family: 'trebuchet ms', verdana, arial, sans-serif;
font-family: var(--mermaid-font-family);
color: ${t.textColor};
}
.mouth {
stroke: #666;
}
line {
stroke: ${t.textColor}
}
.legend {
fill: ${t.textColor};
}
.label text {
fill: #333;
}
.label {
color: ${t.textColor}
}
.face {
${t.faceColor?`fill: ${t.faceColor}`:"fill: #FFF8DC"};
stroke: #999;
}
.node rect,
.node circle,
.node ellipse,
.node polygon,
.node path {
fill: ${t.mainBkg};
stroke: ${t.nodeBorder};
stroke-width: 1px;
}
.node .label {
text-align: center;
}
.node.clickable {
cursor: pointer;
}
.arrowheadPath {
fill: ${t.arrowheadColor};
}
.edgePath .path {
stroke: ${t.lineColor};
stroke-width: 1.5px;
}
.flowchart-link {
stroke: ${t.lineColor};
fill: none;
}
.edgeLabel {
background-color: ${t.edgeLabelBackground};
rect {
opacity: 0.5;
}
text-align: center;
}
.cluster rect {
}
.cluster text {
fill: ${t.titleColor};
}
div.mermaidTooltip {
position: absolute;
text-align: center;
max-width: 200px;
padding: 2px;
font-family: 'trebuchet ms', verdana, arial, sans-serif;
font-family: var(--mermaid-font-family);
font-size: 12px;
background: ${t.tertiaryColor};
border: 1px solid ${t.border2};
border-radius: 2px;
pointer-events: none;
z-index: 100;
}
.task-type-0, .section-type-0 {
${t.fillType0?`fill: ${t.fillType0}`:""};
}
.task-type-1, .section-type-1 {
${t.fillType0?`fill: ${t.fillType1}`:""};
}
.task-type-2, .section-type-2 {
${t.fillType0?`fill: ${t.fillType2}`:""};
}
.task-type-3, .section-type-3 {
${t.fillType0?`fill: ${t.fillType3}`:""};
}
.task-type-4, .section-type-4 {
${t.fillType0?`fill: ${t.fillType4}`:""};
}
.task-type-5, .section-type-5 {
${t.fillType0?`fill: ${t.fillType5}`:""};
}
.task-type-6, .section-type-6 {
${t.fillType0?`fill: ${t.fillType6}`:""};
}
.task-type-7, .section-type-7 {
${t.fillType0?`fill: ${t.fillType7}`:""};
}
.actor-0 {
${t.actor0?`fill: ${t.actor0}`:""};
}
.actor-1 {
${t.actor1?`fill: ${t.actor1}`:""};
}
.actor-2 {
${t.actor2?`fill: ${t.actor2}`:""};
}
.actor-3 {
${t.actor3?`fill: ${t.actor3}`:""};
}
.actor-4 {
${t.actor4?`fill: ${t.actor4}`:""};
}
.actor-5 {
${t.actor5?`fill: ${t.actor5}`:""};
}
`,Vt=At,U=function(t,e){return _t(t,e)},Ft=function(t,e){const l=t.append("circle").attr("cx",e.cx).attr("cy",e.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),n=t.append("g");n.append("circle").attr("cx",e.cx-15/3).attr("cy",e.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),n.append("circle").attr("cx",e.cx+15/3).attr("cy",e.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function h(y){const m=Q().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);y.append("path").attr("class","mouth").attr("d",m).attr("transform","translate("+e.cx+","+(e.cy+2)+")")}function c(y){const m=Q().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);y.append("path").attr("class","mouth").attr("d",m).attr("transform","translate("+e.cx+","+(e.cy+7)+")")}function f(y){y.append("line").attr("class","mouth").attr("stroke",2).attr("x1",e.cx-5).attr("y1",e.cy+7).attr("x2",e.cx+5).attr("y2",e.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return e.score>3?h(n):e.score<3?c(n):f(n),l},rt=function(t,e){const i=t.append("circle");return i.attr("cx",e.cx),i.attr("cy",e.cy),i.attr("class","actor-"+e.pos),i.attr("fill",e.fill),i.attr("stroke",e.stroke),i.attr("r",e.r),i.class!==void 0&&i.attr("class",i.class),e.title!==void 0&&i.append("title").text(e.title),i},at=function(t,e){return bt(t,e)},Lt=function(t,e){function i(n,h,c,f,y){return n+","+h+" "+(n+c)+","+h+" "+(n+c)+","+(h+f-y)+" "+(n+c-y*1.2)+","+(h+f)+" "+n+","+(h+f)}const l=t.append("polygon");l.attr("points",i(e.x,e.y,50,20,7)),l.attr("class","labelBox"),e.y=e.y+e.labelMargin,e.x=e.x+.5*e.labelMargin,at(t,e)},Rt=function(t,e,i){const l=t.append("g"),n=it();n.x=e.x,n.y=e.y,n.fill=e.fill,n.width=i.width*e.taskCount+i.diagramMarginX*(e.taskCount-1),n.height=i.height,n.class="journey-section section-type-"+e.num,n.rx=3,n.ry=3,U(l,n),ot(i)(e.text,l,n.x,n.y,n.width,n.height,{class:"journey-section section-type-"+e.num},i,e.colour)};let et=-1;const Nt=function(t,e,i){const l=e.x+i.width/2,n=t.append("g");et++;const h=300+5*30;n.append("line").attr("id","task"+et).attr("x1",l).attr("y1",e.y).attr("x2",l).attr("y2",h).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),Ft(n,{cx:l,cy:300+(5-e.score)*30,score:e.score});const c=it();c.x=e.x,c.y=e.y,c.fill=e.fill,c.width=i.width,c.height=i.height,c.class="task task-type-"+e.num,c.rx=3,c.ry=3,U(n,c);let f=e.x+14;e.people.forEach(y=>{const m=e.actors[y].color,g={cx:f,cy:e.y,r:7,fill:m,stroke:"#000",title:y,pos:e.actors[y].position};rt(n,g),f+=10}),ot(i)(e.task,n,c.x,c.y,c.width,c.height,{class:"task"},i,e.colour)},Bt=function(t,e){vt(t,e)},ot=function(){function t(n,h,c,f,y,m,g,p){const s=h.append("text").attr("x",c+y/2).attr("y",f+m/2+5).style("font-color",p).style("text-anchor","middle").text(n);l(s,g)}function e(n,h,c,f,y,m,g,p,s){const{taskFontSize:r,taskFontFamily:a}=p,u=n.split(/<br\s*\/?>/gi);for(let d=0;d<u.length;d++){const o=d*r-r*(u.length-1)/2,w=h.append("text").attr("x",c+y/2).attr("y",f).attr("fill",s).style("text-anchor","middle").style("font-size",r).style("font-family",a);w.append("tspan").attr("x",c+y/2).attr("dy",o).text(u[d]),w.attr("y",f+m/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),l(w,g)}}function i(n,h,c,f,y,m,g,p){const s=h.append("switch"),a=s.append("foreignObject").attr("x",c).attr("y",f).attr("width",y).attr("height",m).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");a.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(n),e(n,s,c,f,y,m,g,p),l(a,g)}function l(n,h){for(const c in h)c in h&&n.attr(c,h[c])}return function(n){return n.textPlacement==="fo"?i:n.textPlacement==="old"?t:e}}(),jt=function(t){t.append("defs").append("marker").attr("id","arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},L={drawRect:U,drawCircle:rt,drawSection:Rt,drawText:at,drawLabel:Lt,drawTask:Nt,drawBackgroundRect:Bt,initGraphics:jt},zt=function(t){Object.keys(t).forEach(function(i){j[i]=t[i]})},M={};function Yt(t){const e=C().journey;let i=60;Object.keys(M).forEach(l=>{const n=M[l].color,h={cx:20,cy:i,r:7,fill:n,stroke:"#000",pos:M[l].position};L.drawCircle(t,h);const c={x:40,y:i+7,fill:"#666",text:l,textMargin:e.boxTextMargin|5};L.drawText(t,c),i+=20})}const j=C().journey,P=j.leftMargin,Ot=function(t,e,i,l){const n=C().journey,h=C().securityLevel;let c;h==="sandbox"&&(c=W("#i"+e));const f=h==="sandbox"?W(c.nodes()[0].contentDocument.body):W("body");v.init();const y=f.select("#"+e);L.initGraphics(y);const m=l.db.getTasks(),g=l.db.getDiagramTitle(),p=l.db.getActors();for(const o in M)delete M[o];let s=0;p.forEach(o=>{M[o]={color:n.actorColours[s%n.actorColours.length],position:s},s++}),Yt(y),v.insert(0,0,P,Object.keys(M).length*50),qt(y,m,0);const r=v.getBounds();g&&y.append("text").text(g).attr("x",P).attr("font-size","4ex").attr("font-weight","bold").attr("y",25);const a=r.stopy-r.starty+2*n.diagramMarginY,u=P+r.stopx+2*n.diagramMarginX;kt(y,a,u,n.useMaxWidth),y.append("line").attr("x1",P).attr("y1",n.height*4).attr("x2",u-P-4).attr("y2",n.height*4).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)");const d=g?70:0;y.attr("viewBox",`${r.startx} -25 ${u} ${a+d}`),y.attr("preserveAspectRatio","xMinYMin meet"),y.attr("height",a+d+25)},v={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(t,e,i,l){t[e]===void 0?t[e]=i:t[e]=l(i,t[e])},updateBounds:function(t,e,i,l){const n=C().journey,h=this;let c=0;function f(y){return function(g){c++;const p=h.sequenceItems.length-c+1;h.updateVal(g,"starty",e-p*n.boxMargin,Math.min),h.updateVal(g,"stopy",l+p*n.boxMargin,Math.max),h.updateVal(v.data,"startx",t-p*n.boxMargin,Math.min),h.updateVal(v.data,"stopx",i+p*n.boxMargin,Math.max),y!=="activation"&&(h.updateVal(g,"startx",t-p*n.boxMargin,Math.min),h.updateVal(g,"stopx",i+p*n.boxMargin,Math.max),h.updateVal(v.data,"starty",e-p*n.boxMargin,Math.min),h.updateVal(v.data,"stopy",l+p*n.boxMargin,Math.max))}}this.sequenceItems.forEach(f())},insert:function(t,e,i,l){const n=Math.min(t,i),h=Math.max(t,i),c=Math.min(e,l),f=Math.max(e,l);this.updateVal(v.data,"startx",n,Math.min),this.updateVal(v.data,"starty",c,Math.min),this.updateVal(v.data,"stopx",h,Math.max),this.updateVal(v.data,"stopy",f,Math.max),this.updateBounds(n,c,h,f)},bumpVerticalPos:function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return this.data}},X=j.sectionFills,st=j.sectionColours,qt=function(t,e,i){const l=C().journey;let n="";const h=l.height*2+l.diagramMarginY,c=i+h;let f=0,y="#CCC",m="black",g=0;for(const[p,s]of e.entries()){if(n!==s.section){y=X[f%X.length],g=f%X.length,m=st[f%st.length];let a=0;const u=s.section;for(let o=p;o<e.length&&e[o].section==u;o++)a=a+1;const d={x:p*l.taskMargin+p*l.width+P,y:50,text:s.section,fill:y,num:g,colour:m,taskCount:a};L.drawSection(t,d,l),n=s.section,f++}const r=s.people.reduce((a,u)=>(M[u]&&(a[u]=M[u]),a),{});s.x=p*l.taskMargin+p*l.width+P,s.y=c,s.width=l.diagramMarginX,s.height=l.diagramMarginY,s.colour=m,s.fill=y,s.num=g,s.actors=r,L.drawTask(t,s,l),v.insert(s.x,s.y,s.x+s.width+l.taskMargin,300+5*30)}},nt={setConf:zt,draw:Ot},te={parser:wt,db:tt,renderer:nt,styles:Vt,init:t=>{nt.setConf(t.journey),tt.clear()}};export{te as diagram};
function t(e,a){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(a).domain(e);break}return this}export{t as i};
import{l as Y,aK as D,i as M}from"./slidev/5-BKiUV7YW.js";import"./modules/vue-Dn3czbSS.js";import"./index-D2S1x1Oe.js";import"./modules/shiki-CuMFyo6Z.js";import"./modules/file-saver-EUMWMpoS.js";import"./slidev/default-CY-sqYNf.js";import"./slidev/context-CYh2-pv1.js";var O=function(){var a=function(u,t,e,n){for(e=e||{},n=u.length;n--;e[u[n]]=t);return e},f=[6,9,10],m={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(t,e,n,s,r,i,d){switch(i.length-1,r){case 1:return s;case 4:break;case 6:s.setInfo(!0);break}},table:[{3:1,4:[1,2]},{1:[3]},a(f,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},a(f,[2,3]),a(f,[2,4]),a(f,[2,5]),a(f,[2,6])],defaultActions:{4:[2,1]},parseError:function(t,e){if(e.recoverable)this.trace(t);else{var n=new Error(t);throw n.hash=e,n}},parse:function(t){var e=this,n=[0],s=[],r=[null],i=[],d=this.table,P="",v=0,L=0,N=2,T=1,R=i.slice.call(arguments,1),o=Object.create(this.lexer),p={yy:{}};for(var E in this.yy)Object.prototype.hasOwnProperty.call(this.yy,E)&&(p.yy[E]=this.yy[E]);o.setInput(t,p.yy),p.yy.lexer=o,p.yy.parser=this,typeof o.yylloc>"u"&&(o.yylloc={});var I=o.yylloc;i.push(I);var z=o.options&&o.options.ranges;typeof p.yy.parseError=="function"?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function U(){var y;return y=s.pop()||o.lex()||T,typeof y!="number"&&(y instanceof Array&&(s=y,y=s.pop()),y=e.symbols_[y]||y),y}for(var l,g,h,w,_={},b,c,F,S;;){if(g=n[n.length-1],this.defaultActions[g]?h=this.defaultActions[g]:((l===null||typeof l>"u")&&(l=U()),h=d[g]&&d[g][l]),typeof h>"u"||!h.length||!h[0]){var A="";S=[];for(b in d[g])this.terminals_[b]&&b>N&&S.push("'"+this.terminals_[b]+"'");o.showPosition?A="Parse error on line "+(v+1)+`:
`+o.showPosition()+`
Expecting `+S.join(", ")+", got '"+(this.terminals_[l]||l)+"'":A="Parse error on line "+(v+1)+": Unexpected "+(l==T?"end of input":"'"+(this.terminals_[l]||l)+"'"),this.parseError(A,{text:o.match,token:this.terminals_[l]||l,line:o.yylineno,loc:I,expected:S})}if(h[0]instanceof Array&&h.length>1)throw new Error("Parse Error: multiple actions possible at state: "+g+", token: "+l);switch(h[0]){case 1:n.push(l),r.push(o.yytext),i.push(o.yylloc),n.push(h[1]),l=null,L=o.yyleng,P=o.yytext,v=o.yylineno,I=o.yylloc;break;case 2:if(c=this.productions_[h[1]][1],_.$=r[r.length-c],_._$={first_line:i[i.length-(c||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(c||1)].first_column,last_column:i[i.length-1].last_column},z&&(_._$.range=[i[i.length-(c||1)].range[0],i[i.length-1].range[1]]),w=this.performAction.apply(_,[P,L,v,p.yy,h[1],r,i].concat(R)),typeof w<"u")return w;c&&(n=n.slice(0,-1*c*2),r=r.slice(0,-1*c),i=i.slice(0,-1*c)),n.push(this.productions_[h[1]][0]),r.push(_.$),i.push(_._$),F=d[n[n.length-2]][n[n.length-1]],n.push(F);break;case 3:return!0}}return!0}},k=function(){var u={EOF:1,parseError:function(e,n){if(this.yy.parser)this.yy.parser.parseError(e,n);else throw new Error(e)},setInput: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},input: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},unput:function(t){var e=t.length,n=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 s=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 r=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===s.length?this.yylloc.first_column:0)+s[s.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[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(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(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+`
`+e+"^"},test_match:function(t,e){var n,s,r;if(this.options.backtrack_lexer&&(r={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&&(r.yylloc.range=this.yylloc.range.slice(0))),s=t[0].match(/(?:\r\n?|\n).*/g),s&&(this.yylineno+=s.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:s?s[s.length-1].length-s[s.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],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var i in r)this[i]=r[i];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var t,e,n,s;this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),i=0;i<r.length;i++)if(n=this._input.match(this.rules[r[i]]),n&&(!e||n[0].length>e[0].length)){if(e=n,s=i,this.options.backtrack_lexer){if(t=this.test_match(n,r[i]),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,r[s]),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 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,n,s,r){switch(s){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 u}();m.lexer=k;function x(){this.yy={}}return x.prototype=m,m.Parser=x,new x}();O.parser=O;const B=O,j={info:!1};let $=j.info;const K=a=>{$=a},V=()=>$,X=()=>{$=j.info},q={clear:X,setInfo:K,getInfo:V},C=(a,f,m)=>{Y.debug(`rendering info diagram
`+a);const k=D(f);M(k,100,400,!0),k.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${m}`)},G={draw:C},nt={parser:B,db:q,renderer:G};export{nt as diagram};
import{i as N,G as A}from"./graph-af3d5df6-DtpoS02a.js";import{m as $,l as H}from"./layout-6685625a-CnDdhUY9.js";import{c as V}from"./clone-d2e37f8c-CN-809h5.js";import{i as U,u as W,s as _,a as q,b as z,g as D,p as O,c as K,d as Q,e as Y,f as Z,h as J,j as p}from"./edges-1e1ebc73-5f7nvF86.js";import{l as s,c as T,o as S,h as L}from"./slidev/5-BKiUV7YW.js";import{c as I}from"./createText-f6615236-y76jB5p3.js";function m(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:tt(e),edges:et(e)};return N(e.graph())||(t.value=V(e.graph())),t}function tt(e){return $(e.nodes(),function(t){var n=e.node(t),r=e.parent(t),i={v:t};return N(n)||(i.value=n),N(r)||(i.parent=r),i})}function et(e){return $(e.edges(),function(t){var n=e.edge(t),r={v:t.v,w:t.w};return N(t.name)||(r.name=t.name),N(n)||(r.value=n),r})}let l={},g={},R={};const nt=()=>{g={},R={},l={}},B=(e,t)=>(s.trace("In isDescendant",t," ",e," = ",g[t].includes(e)),!!g[t].includes(e)),it=(e,t)=>(s.info("Descendants of ",t," is ",g[t]),s.info("Edge is ",e),e.v===t||e.w===t?!1:g[t]?g[t].includes(e.v)||B(e.v,t)||B(e.w,t)||g[t].includes(e.w):(s.debug("Tilt, ",t,",not in descendants"),!1)),P=(e,t,n,r)=>{s.warn("Copying children of ",e,"root",r,"data",t.node(e),r);const i=t.children(e)||[];e!==r&&i.push(e),s.warn("Copying (nodes) clusterId",e,"nodes",i),i.forEach(a=>{if(t.children(a).length>0)P(a,t,n,r);else{const d=t.node(a);s.info("cp ",a," to ",r," with parent ",e),n.setNode(a,d),r!==t.parent(a)&&(s.warn("Setting parent",a,t.parent(a)),n.setParent(a,t.parent(a))),e!==r&&a!==e?(s.debug("Setting parent",a,e),n.setParent(a,e)):(s.info("In copy ",e,"root",r,"data",t.node(e),r),s.debug("Not Setting parent for node=",a,"cluster!==rootId",e!==r,"node!==clusterId",a!==e));const u=t.edges(a);s.debug("Copying Edges",u),u.forEach(f=>{s.info("Edge",f);const h=t.edge(f.v,f.w,f.name);s.info("Edge data",h,r);try{it(f,r)?(s.info("Copying as ",f.v,f.w,h,f.name),n.setEdge(f.v,f.w,h,f.name),s.info("newGraph edges ",n.edges(),n.edge(n.edges()[0]))):s.info("Skipping copy of edge ",f.v,"-->",f.w," rootId: ",r," clusterId:",e)}catch(w){s.error(w)}})}s.debug("Removing node",a),t.removeNode(a)})},k=(e,t)=>{const n=t.children(e);let r=[...n];for(const i of n)R[i]=e,r=[...r,...k(i,t)];return r},C=(e,t)=>{s.trace("Searching",e);const n=t.children(e);if(s.trace("Searching children of id ",e,n),n.length<1)return s.trace("This is a valid node",e),e;for(const r of n){const i=C(r,t);if(i)return s.trace("Found replacement for",e," => ",i),i}},X=e=>!l[e]||!l[e].externalConnections?e:l[e]?l[e].id:e,st=(e,t)=>{if(!e||t>10){s.debug("Opting out, no graph ");return}else s.debug("Opting in, graph ");e.nodes().forEach(function(n){e.children(n).length>0&&(s.warn("Cluster identified",n," Replacement id in edges: ",C(n,e)),g[n]=k(n,e),l[n]={id:C(n,e),clusterData:e.node(n)})}),e.nodes().forEach(function(n){const r=e.children(n),i=e.edges();r.length>0?(s.debug("Cluster identified",n,g),i.forEach(a=>{if(a.v!==n&&a.w!==n){const d=B(a.v,n),u=B(a.w,n);d^u&&(s.warn("Edge: ",a," leaves cluster ",n),s.warn("Descendants of XXX ",n,": ",g[n]),l[n].externalConnections=!0)}})):s.debug("Not a cluster ",n,g)});for(let n of Object.keys(l)){const r=l[n].id,i=e.parent(r);i!==n&&l[i]&&!l[i].externalConnections&&(l[n].id=i)}e.edges().forEach(function(n){const r=e.edge(n);s.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(n)),s.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(e.edge(n)));let i=n.v,a=n.w;if(s.warn("Fix XXX",l,"ids:",n.v,n.w,"Translating: ",l[n.v]," --- ",l[n.w]),l[n.v]&&l[n.w]&&l[n.v]===l[n.w]){s.warn("Fixing and trixing link to self - removing XXX",n.v,n.w,n.name),s.warn("Fixing and trixing - removing XXX",n.v,n.w,n.name),i=X(n.v),a=X(n.w),e.removeEdge(n.v,n.w,n.name);const d=n.w+"---"+n.v;e.setNode(d,{domId:d,id:d,labelStyle:"",labelText:r.label,padding:0,shape:"labelRect",style:""});const u=structuredClone(r),f=structuredClone(r);u.label="",u.arrowTypeEnd="none",f.label="",u.fromCluster=n.v,f.toCluster=n.v,e.setEdge(i,d,u,n.name+"-cyclic-special"),e.setEdge(d,a,f,n.name+"-cyclic-special")}else if(l[n.v]||l[n.w]){if(s.warn("Fixing and trixing - removing XXX",n.v,n.w,n.name),i=X(n.v),a=X(n.w),e.removeEdge(n.v,n.w,n.name),i!==n.v){const d=e.parent(i);l[d].externalConnections=!0,r.fromCluster=n.v}if(a!==n.w){const d=e.parent(a);l[d].externalConnections=!0,r.toCluster=n.w}s.warn("Fix Replacing with XXX",i,a,n.name),e.setEdge(i,a,r,n.name)}}),s.warn("Adjusted Graph",m(e)),F(e,0),s.trace(l)},F=(e,t)=>{if(s.warn("extractor - ",t,m(e),e.children("D")),t>10){s.error("Bailing out");return}let n=e.nodes(),r=!1;for(const i of n){const a=e.children(i);r=r||a.length>0}if(!r){s.debug("Done, no node has children",e.nodes());return}s.debug("Nodes = ",n,t);for(const i of n)if(s.debug("Extracting node",i,l,l[i]&&!l[i].externalConnections,!e.parent(i),e.node(i),e.children("D")," Depth ",t),!l[i])s.debug("Not a cluster",i,t);else if(!l[i].externalConnections&&e.children(i)&&e.children(i).length>0){s.warn("Cluster without external connections, without a parent and with children",i,t);let d=e.graph().rankdir==="TB"?"LR":"TB";l[i]&&l[i].clusterData&&l[i].clusterData.dir&&(d=l[i].clusterData.dir,s.warn("Fixing dir",l[i].clusterData.dir,d));const u=new A({multigraph:!0,compound:!0}).setGraph({rankdir:d,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});s.warn("Old graph before copy",m(e)),P(i,e,u,i),e.setNode(i,{clusterNode:!0,id:i,clusterData:l[i].clusterData,labelText:l[i].labelText,graph:u}),s.warn("New graph after copy node: (",i,")",m(u)),s.debug("Old graph after copy",m(e))}else s.warn("Cluster ** ",i," **not meeting the criteria !externalConnections:",!l[i].externalConnections," no parent: ",!e.parent(i)," children ",e.children(i)&&e.children(i).length>0,e.children("D"),t),s.debug(l);n=e.nodes(),s.warn("New list of nodes",n);for(const i of n){const a=e.node(i);s.warn(" Now next level",i,a),a.clusterNode&&F(a.graph,t+1)}},G=(e,t)=>{if(t.length===0)return[];let n=Object.assign(t);return t.forEach(r=>{const i=e.children(r),a=G(e,i);n=[...n,...a]}),n},rt=e=>G(e,e.children()),at=(e,t)=>{s.info("Creating subgraph rect for ",t.id,t);const n=T(),r=e.insert("g").attr("class","cluster"+(t.class?" "+t.class:"")).attr("id",t.id),i=r.insert("rect",":first-child"),a=S(n.flowchart.htmlLabels),d=r.insert("g").attr("class","cluster-label"),u=t.labelType==="markdown"?I(d,t.labelText,{style:t.labelStyle,useHtmlLabels:a}):d.node().appendChild(J(t.labelText,t.labelStyle,void 0,!0));let f=u.getBBox();if(S(n.flowchart.htmlLabels)){const c=u.children[0],o=L(u);f=c.getBoundingClientRect(),o.attr("width",f.width),o.attr("height",f.height)}const h=0*t.padding,w=h/2,x=t.width<=f.width+h?f.width+h:t.width;t.width<=f.width+h?t.diff=(f.width-t.width)/2-t.padding/2:t.diff=-t.padding/2,s.trace("Data ",t,JSON.stringify(t)),i.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-x/2).attr("y",t.y-t.height/2-w).attr("width",x).attr("height",t.height+h);const{subGraphTitleTopMargin:v}=D(n);a?d.attr("transform",`translate(${t.x-f.width/2}, ${t.y-t.height/2+v})`):d.attr("transform",`translate(${t.x}, ${t.y-t.height/2+v})`);const y=i.node().getBBox();return t.width=y.width,t.height=y.height,t.intersect=function(c){return p(t,c)},r},ct=(e,t)=>{const n=e.insert("g").attr("class","note-cluster").attr("id",t.id),r=n.insert("rect",":first-child"),i=0*t.padding,a=i/2;r.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");const d=r.node().getBBox();return t.width=d.width,t.height=d.height,t.intersect=function(u){return p(t,u)},n},ot=(e,t)=>{const n=T(),r=e.insert("g").attr("class",t.classes).attr("id",t.id),i=r.insert("rect",":first-child"),a=r.insert("g").attr("class","cluster-label"),d=r.append("rect"),u=a.node().appendChild(J(t.labelText,t.labelStyle,void 0,!0));let f=u.getBBox();if(S(n.flowchart.htmlLabels)){const c=u.children[0],o=L(u);f=c.getBoundingClientRect(),o.attr("width",f.width),o.attr("height",f.height)}f=u.getBBox();const h=0*t.padding,w=h/2,x=t.width<=f.width+t.padding?f.width+t.padding:t.width;t.width<=f.width+t.padding?t.diff=(f.width+t.padding*0-t.width)/2:t.diff=-t.padding/2,i.attr("class","outer").attr("x",t.x-x/2-w).attr("y",t.y-t.height/2-w).attr("width",x+h).attr("height",t.height+h),d.attr("class","inner").attr("x",t.x-x/2-w).attr("y",t.y-t.height/2-w+f.height-1).attr("width",x+h).attr("height",t.height+h-f.height-3);const{subGraphTitleTopMargin:v}=D(n);a.attr("transform",`translate(${t.x-f.width/2}, ${t.y-t.height/2-t.padding/3+(S(n.flowchart.htmlLabels)?5:3)+v})`);const y=i.node().getBBox();return t.height=y.height,t.intersect=function(c){return p(t,c)},r},lt=(e,t)=>{const n=e.insert("g").attr("class",t.classes).attr("id",t.id),r=n.insert("rect",":first-child"),i=0*t.padding,a=i/2;r.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);const d=r.node().getBBox();return t.width=d.width,t.height=d.height,t.diff=-t.padding/2,t.intersect=function(u){return p(t,u)},n},ft={rect:at,roundedWithTitle:ot,noteGroup:ct,divider:lt};let j={};const dt=(e,t)=>{s.trace("Inserting cluster");const n=t.shape||"rect";j[t.id]=ft[n](e,t)},ut=()=>{j={}},M=async(e,t,n,r,i,a)=>{s.info("Graph in recursive render: XXX",m(t),i);const d=t.graph().rankdir;s.trace("Dir in recursive render - dir:",d);const u=e.insert("g").attr("class","root");t.nodes()?s.info("Recursive render XXX",t.nodes()):s.info("No nodes found for",t),t.edges().length>0&&s.trace("Recursive edges",t.edge(t.edges()[0]));const f=u.insert("g").attr("class","clusters"),h=u.insert("g").attr("class","edgePaths"),w=u.insert("g").attr("class","edgeLabels"),x=u.insert("g").attr("class","nodes");await Promise.all(t.nodes().map(async function(c){const o=t.node(c);if(i!==void 0){const b=JSON.parse(JSON.stringify(i.clusterData));s.info("Setting data for cluster XXX (",c,") ",b,i),t.setNode(i.id,b),t.parent(c)||(s.trace("Setting parent",c,i.id),t.setParent(c,i.id,b))}if(s.info("(Insert) Node XXX"+c+": "+JSON.stringify(t.node(c))),o&&o.clusterNode){s.info("Cluster identified",c,o.width,t.node(c));const b=await M(x,o.graph,n,r,t.node(c),a),E=b.elem;W(o,E),o.diff=b.diff||0,s.info("Node bounds (abc123)",c,o,o.width,o.x,o.y),_(E,o),s.warn("Recursive render complete ",E,o)}else t.children(c).length>0?(s.info("Cluster - the non recursive path XXX",c,o.id,o,t),s.info(C(o.id,t)),l[o.id]={id:C(o.id,t),node:o}):(s.info("Node - the non recursive path",c,o.id,o),await q(x,t.node(c),d))})),t.edges().forEach(function(c){const o=t.edge(c.v,c.w,c.name);s.info("Edge "+c.v+" -> "+c.w+": "+JSON.stringify(c)),s.info("Edge "+c.v+" -> "+c.w+": ",c," ",JSON.stringify(t.edge(c))),s.info("Fix",l,"ids:",c.v,c.w,"Translating: ",l[c.v],l[c.w]),z(w,o)}),t.edges().forEach(function(c){s.info("Edge "+c.v+" -> "+c.w+": "+JSON.stringify(c))}),s.info("#############################################"),s.info("### Layout ###"),s.info("#############################################"),s.info(t),H(t),s.info("Graph after layout:",m(t));let v=0;const{subGraphTitleTotalMargin:y}=D(a);return rt(t).forEach(function(c){const o=t.node(c);s.info("Position "+c+": "+JSON.stringify(t.node(c))),s.info("Position "+c+": ("+o.x,","+o.y,") width: ",o.width," height: ",o.height),o&&o.clusterNode?(o.y+=y,O(o)):t.children(c).length>0?(o.height+=y,dt(f,o),l[o.id].node=o):(o.y+=y/2,O(o))}),t.edges().forEach(function(c){const o=t.edge(c);s.info("Edge "+c.v+" -> "+c.w+": "+JSON.stringify(o),o),o.points.forEach(E=>E.y+=y/2);const b=K(h,c,o,l,n,t,r);Q(o,b)}),t.nodes().forEach(function(c){const o=t.node(c);s.info(c,o.type,o.diff),o.type==="group"&&(v=o.diff)}),{elem:u,diff:v}},bt=async(e,t,n,r,i)=>{U(e,n,r,i),Y(),Z(),ut(),nt(),s.warn("Graph at first:",JSON.stringify(m(t))),st(t),s.warn("Graph after:",JSON.stringify(m(t)));const a=T();await M(e,t,r,i,void 0,a)};export{bt as r};
*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:var(--un-default-border-color, #e5e7eb)}:before,:after{--un-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }.prose :where(h1,h2,h3,h4,h5,h6):not(:where(.not-prose,.not-prose *)){color:var(--un-prose-headings);font-weight:600;line-height:1.25}.prose :where(a):not(:where(.not-prose,.not-prose *)){color:var(--un-prose-links);text-decoration:underline;font-weight:500}.prose :where(a code):not(:where(.not-prose,.not-prose *)){color:var(--un-prose-links)}.prose :where(p,ul,ol,pre):not(:where(.not-prose,.not-prose *)){margin:1em 0;line-height:1.75}.prose :where(blockquote):not(:where(.not-prose,.not-prose *)){margin:1em 0;padding-left:1em;font-style:italic;border-left:.25em solid var(--un-prose-borders)}.prose :where(h1):not(:where(.not-prose,.not-prose *)){margin:1rem 0;font-size:2.25em}.prose :where(h2):not(:where(.not-prose,.not-prose *)){margin:1.75em 0 .5em;font-size:1.75em}.prose :where(h3):not(:where(.not-prose,.not-prose *)){margin:1.5em 0 .5em;font-size:1.375em}.prose :where(h4):not(:where(.not-prose,.not-prose *)){margin:1em 0;font-size:1.125em}.prose :where(img,video):not(:where(.not-prose,.not-prose *)){max-width:100%}.prose :where(figure,picture):not(:where(.not-prose,.not-prose *)){margin:1em 0}.prose :where(figcaption):not(:where(.not-prose,.not-prose *)){color:var(--un-prose-captions);font-size:.875em}.prose :where(code):not(:where(.not-prose,.not-prose *)){color:var(--un-prose-code);font-size:.875em;font-weight:600;font-family:Fira Code,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.prose :where(:not(pre)>code):not(:where(.not-prose,.not-prose *)):before,.prose :where(:not(pre)>code):not(:where(.not-prose,.not-prose *)):after{content:"`"}.prose :where(pre):not(:where(.not-prose,.not-prose *)){padding:1.25rem 1.5rem;overflow-x:auto;border-radius:.375rem}.prose :where(pre,code):not(:where(.not-prose,.not-prose *)){white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;hyphens:none;background:transparent}.prose :where(pre code):not(:where(.not-prose,.not-prose *)){font-weight:inherit}.prose :where(ol,ul):not(:where(.not-prose,.not-prose *)){padding-left:1.25em}.prose :where(ol):not(:where(.not-prose,.not-prose *)){list-style-type:decimal}.prose :where(ol[type=A]):not(:where(.not-prose,.not-prose *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where(.not-prose,.not-prose *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where(.not-prose,.not-prose *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where(.not-prose,.not-prose *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where(.not-prose,.not-prose *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where(.not-prose,.not-prose *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where(.not-prose,.not-prose *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where(.not-prose,.not-prose *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where(.not-prose,.not-prose *)){list-style-type:decimal}.prose :where(ul):not(:where(.not-prose,.not-prose *)){list-style-type:disc}.prose :where(ol>li):not(:where(.not-prose,.not-prose *))::marker,.prose :where(ul>li):not(:where(.not-prose,.not-prose *))::marker,.prose :where(summary):not(:where(.not-prose,.not-prose *))::marker{color:var(--un-prose-lists)}.prose :where(hr):not(:where(.not-prose,.not-prose *)){margin:2em 0;border:1px solid var(--un-prose-hr)}.prose :where(table):not(:where(.not-prose,.not-prose *)){display:block;margin:1em 0;border-collapse:collapse;overflow-x:auto}.prose :where(tr):not(:where(.not-prose,.not-prose *)):nth-child(2n){background:var(--un-prose-bg-soft)}.prose :where(td,th):not(:where(.not-prose,.not-prose *)){border:1px solid var(--un-prose-borders);padding:.625em 1em}.prose :where(abbr):not(:where(.not-prose,.not-prose *)){cursor:help}.prose :where(kbd):not(:where(.not-prose,.not-prose *)){color:var(--un-prose-code);border:1px solid;padding:.25rem .5rem;font-size:.875em;border-radius:.25rem}.prose :where(details):not(:where(.not-prose,.not-prose *)){margin:1em 0;padding:1.25rem 1.5rem;background:var(--un-prose-bg-soft)}.prose :where(summary):not(:where(.not-prose,.not-prose *)){cursor:pointer;font-weight:600}.prose{color:var(--un-prose-body);max-width:65ch}.container{width:100%}.border-main,.dark .dark\:border-main,.dark [border~="dark:main"],.dark [dark\:border~=main],[border~=main]{border-color:#9ca3af33}.border-primary,.hover\:border-primary:hover{border-color:var(--slidev-theme-primary)}.bg-active{background-color:#9ca3af1a}.bg-main{--un-bg-opacity:1;background-color:rgb(255 255 255 / var(--un-bg-opacity))}.dark .bg-main{--un-bg-opacity:1;background-color:rgb(18 18 18 / var(--un-bg-opacity))}.bg-primary{background-color:var(--slidev-theme-primary)}.text-primary,[text-primary=""]{color:var(--slidev-theme-primary)}@media print{.print-container{width:100%}}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 640px){@media print{.print-container{max-width:640px}}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 768px){@media print{.print-container{max-width:768px}}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1024px){@media print{.print-container{max-width:1024px}}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1280px){@media print{.print-container{max-width:1280px}}}@media (min-width: 1536px){.container{max-width:1536px}}@media (min-width: 1536px){@media print{.print-container{max-width:1536px}}}:root{--slidev-code-background: #f5f5f5;--slidev-code-foreground: #1b1b1b;--slidev-code-font-family: "Fira Code",ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--slidev-code-padding: 8px;--slidev-code-font-size: 12px;--slidev-code-line-height: 18px;--slidev-code-radius: 4px;--slidev-code-margin: 4px 0;--slidev-theme-primary: #3ab9d5;--slidev-transition-duration: .5s;--slidev-slide-container-background: black;--slidev-controls-foreground: white}html.dark{--slidev-code-background: #1b1b1b;--slidev-code-foreground: #eee}html,body,#app,#page-root{padding:0;margin:0;width:100%;height:100vh;height:calc(var(--vh, 1vh) * 100);overflow:hidden;font-family:Nunito Sans,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}html{background:transparent}.slidev-icon-btn{aspect-ratio:1;display:inline-block;-webkit-user-select:none;user-select:none;outline:none;cursor:pointer;border-radius:.25rem;padding:.25rem;vertical-align:middle;opacity:.75;transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-duration:.15s;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1)}@media (min-width: 768px){.slidev-icon-btn{padding:.5rem}}.slidev-icon-btn:hover{--un-bg-opacity:1;background-color:rgb(156 163 175 / var(--un-bg-opacity));--un-bg-opacity:.1;opacity:1}.slidev-icon-btn.shallow{opacity:.3}.slidev-icon-btn.active{opacity:1}.slidev-icon-btn.disabled{opacity:.25;pointer-events:none}.slidev-vclick-target{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;transition-duration:.1s}.slidev-vclick-hidden{opacity:0!important;pointer-events:none!important;-webkit-user-select:none!important;user-select:none!important}.slidev-vclick-fade{opacity:.5}.slidev-icon{display:inline-block;vertical-align:sub;line-height:1em}.slidev-page{position:relative;top:0;left:0;right:0;width:100%}.slidev-note-with-clicks .slidev-note-fade{color:#888888ab}.slidev-note-click-mark{-webkit-user-select:none;user-select:none;font-size:.7em;display:inline-flex;align-items:center;border-width:1px;border-color:transparent;border-radius:.25rem;background-color:#a78bfa1a;padding-left:.25rem;padding-right:.25rem;--un-text-opacity:1;color:rgb(167 139 250 / var(--un-text-opacity));font-family:Fira Code,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.slidev-note-click-mark.slidev-note-click-mark-active{border-width:1px;--un-border-opacity:1;border-color:rgb(167 139 250 / var(--un-border-opacity))}.slidev-note-click-mark.slidev-note-click-mark-past{filter:saturate(0);opacity:.5}.slidev-note-click-mark.slidev-note-click-mark-future{opacity:.5}.slidev-note-click-mark:before{content:"";display:inline-block;--un-icon: url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M23 28a1 1 0 0 1-.71-.29l-6.13-6.14l-3.33 5a1 1 0 0 1-1 .44a1 1 0 0 1-.81-.7l-6-20A1 1 0 0 1 6.29 5l20 6a1 1 0 0 1 .7.81a1 1 0 0 1-.44 1l-5 3.33l6.14 6.13a1 1 0 0 1 0 1.42l-4 4A1 1 0 0 1 23 28m0-2.41L25.59 23l-7.16-7.15l5.25-3.5L7.49 7.49l4.86 16.19l3.5-5.25Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1.2em;height:1.2em;opacity:.8}.slidev-note-click-mark:after{content:attr(data-clicks);display:inline-block;transform:translateY(.1em)}.rough-annotation{transform:scale(calc(1 / var(--slidev-slide-scale)))}html.dark:root{color-scheme:dark}html.dark .shiki{color:var(--shiki-dark, inherit);--twoslash-popup-bg: var(--shiki-dark-bg, inherit)}html.dark .shiki span{color:var(--shiki-dark)}html:not(.dark) .shiki{color:var(--shiki-light, inherit);--twoslash-popup-bg: var(--shiki-light-bg, inherit)}html:not(.dark) .shiki span{color:var(--shiki-light)}.twoslash-meta-line.twoslash-popover-line{margin-top:-10px}.slidev-code-wrapper{margin:var(--slidev-code-margin)!important;scroll-padding:var(--slidev-code-padding)}.slidev-code-wrapper:-webkit-scrollbar{width:0px}.slidev-code{font-family:var(--slidev-code-font-family)!important;padding:var(--slidev-code-padding)!important;font-size:var(--slidev-code-font-size)!important;line-height:var(--slidev-code-line-height)!important;border-radius:var(--slidev-code-radius)!important;background:var(--slidev-code-background);overflow:auto}.slidev-code .slidev-code-dishonored{opacity:.3;pointer-events:none}.slidev-code-line-numbers .slidev-code code{counter-reset:step;counter-increment:step calc(var(--start, 1) - 1)}.slidev-code-line-numbers .slidev-code code .line:before{content:counter(step);counter-increment:step;display:inline-block;text-align:right;margin-right:1.5rem;width:1rem;--un-text-opacity:1;color:rgb(156 163 175 / var(--un-text-opacity))}.dark .slidev-code-line-numbers .slidev-code code .line:before{--un-text-opacity:1;color:rgb(75 85 99 / var(--un-text-opacity))}.slidev-layout :not(pre)>code{font-size:.9em;background:var(--slidev-code-background);border-radius:var(--slidev-code-radius);padding:.125rem .375rem;font-weight:300}.slidev-layout :not(pre)>code:before{margin-right:-.08em}.katex,.katex :after,.katex :before{border-color:currentColor}.CodeMirror pre.CodeMirror-placeholder{opacity:.4}.slidev-katex-wrapper .mord.dishonored{opacity:.3}.slide-left-enter-active,.slide-left-leave-active,.slide-right-enter-active,.slide-right-leave-active,.slide-up-enter-active,.slide-up-leave-active,.slide-down-enter-active,.slide-down-leave-active{transition:all var(--slidev-transition-duration) ease}.slide-left-enter-from,.slide-right-leave-to{transform:translate(100%)}.slide-left-leave-to,.slide-right-enter-from{transform:translate(-100%)}.slide-up-enter-from,.slide-down-leave-to{transform:translateY(100%)}.slide-up-leave-to,.slide-down-enter-from{transform:translateY(-100%)}.fade-enter-active,.fade-leave-active{transition:opacity var(--slidev-transition-duration) ease}.fade-enter-from,.fade-leave-to{opacity:0}.fade-out-leave-active{transition:opacity calc(var(--slidev-transition-duration) * .6) ease-out}.fade-out-enter-active{transition:opacity calc(var(--slidev-transition-duration) * .8) ease-in;transition-delay:calc(var(--slidev-transition-duration) * .6)}.fade-out-enter-from,.fade-out-leave-to{opacity:0}.slidev-layout{height:100%;padding:2.5rem 3.5rem;font-size:1.1rem}.slidev-layout pre,.slidev-layout code{-webkit-user-select:text;user-select:text}.slidev-layout code{font-family:Fira Code,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.slidev-layout h1{margin-bottom:1rem;font-size:2.25rem;line-height:2.5rem}.slidev-layout h2{font-size:1.875rem;line-height:2.25rem}.slidev-layout h3{font-size:1.5rem;line-height:2rem}.slidev-layout h4{font-size:1.25rem;line-height:1.75rem}.slidev-layout h5{font-size:1rem;line-height:1.5rem}.slidev-layout h6{padding-top:.25rem;font-size:.875rem;line-height:1.25rem;font-weight:500;letter-spacing:.1em;text-transform:uppercase}.slidev-layout h6:not(.opacity-100){opacity:.4}.slidev-layout p{margin-top:1rem;margin-bottom:1rem;line-height:1.5rem}.slidev-layout ul{list-style:square}.slidev-layout ol{list-style:decimal}.slidev-layout li{line-height:1.8em}.slidev-layout blockquote{background:var(--slidev-code-background);color:var(--slidev-code-foreground);border-left-width:1px;border-color:var(--slidev-theme-primary);border-radius:.25rem;padding:.25rem .5rem;font-size:.875rem;line-height:1.25rem}.slidev-layout blockquote>*{margin-top:0;margin-bottom:0}.slidev-layout table{width:100%}.slidev-layout tr{border-bottom-width:1px;border-color:#9ca3af33}.slidev-layout th{text-align:left;font-weight:400}.slidev-layout a{border-bottom-width:1px;border-color:currentColor;border-style:dashed}.slidev-layout a:hover{border-style:solid;color:var(--slidev-theme-primary)}.slidev-layout td,.slidev-layout th{padding:.75rem .5rem}.slidev-layout b,.slidev-layout strong{font-weight:600}.slidev-layout kbd{border-width:1px;border-bottom-width:2px;border-color:#9ca3af33;border-radius:.25rem;--un-bg-opacity:1;background-color:rgb(156 163 175 / var(--un-bg-opacity));--un-bg-opacity:.05;padding:.125rem .25rem;font-size:.75rem;line-height:1rem;font-family:Fira Code,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.slidev-layout h1,[dir=ltr] h1,.slidev-layout [dir=ltr] h1,.slidev-layout h6,[dir=ltr] h6,.slidev-layout [dir=ltr] h6{margin-left:-.05em;margin-right:0}.slidev-layout li,[dir=ltr] li,.slidev-layout [dir=ltr] li{margin-left:1.1em;margin-right:0;padding-left:.2em;padding-right:0}[dir=rtl] h1,.slidev-layout [dir=rtl] h1,[dir=rtl] h6,.slidev-layout [dir=rtl] h6{margin-right:-.05em;margin-left:0}[dir=rtl] li,.slidev-layout [dir=rtl] li{margin-right:1.1em;margin-left:0;padding-right:.2em;padding-left:0}:root{--slidev-theme-primary: #3333B3}.slidev-layout.cover,.slidev-layout.intro{display:grid;height:100%}.slidev-layout.cover h1,.slidev-layout.intro h1{font-size:3.75rem;line-height:1;line-height:5rem}.slidev-layout.cover h1+p,.slidev-layout.intro h1+p{margin-top:-.5rem;margin-bottom:1rem;opacity:.5}.slidev-layout.cover p+h2,.slidev-layout.cover ul+h2,.slidev-layout.cover table+h2,.slidev-layout.intro p+h2,.slidev-layout.intro ul+h2,.slidev-layout.intro table+h2{margin-top:2.5rem}html{font-size:10pt}.slidev-page{overflow:hidden}html.dark .slidev-page{background:#222}.slidev-page h1{--un-text-opacity:1;color:rgb(255 255 255 / var(--un-text-opacity));--un-shadow:var(--un-shadow-inset) 0 4px 6px -1px var(--un-shadow-color, rgb(0 0 0 / .1)),var(--un-shadow-inset) 0 2px 4px -2px var(--un-shadow-color, rgb(0 0 0 / .1));box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow);background:#3333b3;margin:-4rem -5.5rem 2rem;padding:5.5rem 3rem 1rem;width:1000%;--un-shadow-opacity: 1;--un-shadow-color: #3333B3}.slidev-page.center h1,.slidev-page.cover h1,.slidev-page.intro h1{--un-shadow:var(--un-shadow-inset) 0 4px 6px -1px var(--un-shadow-color, rgb(0 0 0 / .1)),var(--un-shadow-inset) 0 2px 4px -2px var(--un-shadow-color, rgb(0 0 0 / .1));box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow);--un-shadow-opacity:1;--un-shadow-color:rgb(156 163 175 / var(--un-shadow-opacity));display:inline-block;padding:1rem 5rem;border-radius:1rem;width:unset;margin-top:unset;margin-left:unset;margin-right:unset}html.dark .slidev-page.center h1,html.dark .slidev-page.cover h1,html.dark .slidev-page.intro h1{--un-shadow-opacity: 1;--un-shadow-color: #3333B3}.item{--un-shadow:var(--un-shadow-inset) 0 4px 6px -1px var(--un-shadow-color, rgb(0 0 0 / .1)),var(--un-shadow-inset) 0 2px 4px -2px var(--un-shadow-color, rgb(0 0 0 / .1));box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow);--un-shadow-opacity:1;--un-shadow-color:rgb(156 163 175 / var(--un-shadow-opacity));margin:1rem 0;border-radius:.5rem;overflow:hidden}html.dark .item{--un-shadow-color: #111}.item header{padding:.5rem;color:#fff;background:#262686}.item main{padding:.5rem;background:#e9e9f3}html.dark .item main{background:#444}:root{--twoslash-popup-bg: var(--slidev-code-background);--twoslash-popup-color: var(--slidev-code-foreground);--twoslash-docs-color: inherit;--twoslash-docs-font: inherit;--twoslash-code-font: "Fira Code",ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--twoslash-underline-color: #8888;--twoslash-border-color: #8888;--twoslash-cursor-color: var(--slidev-theme-primary);--twoslash-matched-color: var(--slidev-theme-primary)}.twoslash-popup-container{font-size:13px}.twoslash-popup-container .twoslash-popup-code{font-size:.85em}.twoslash-floating .twoslash-popup-docs-tags .twoslash-popup-docs-tag-name{color:inherit;opacity:.5}.i-svg-spinners-90-ring-with-bg{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z' opacity='.25'/%3E%3Cpath fill='currentColor' d='M10.14,1.16a11,11,0,0,0-9,8.92A1.59,1.59,0,0,0,2.46,12,1.52,1.52,0,0,0,4.11,10.7a8,8,0,0,1,6.66-6.61A1.42,1.42,0,0,0,12,2.69h0A1.57,1.57,0,0,0,10.14,1.16Z'%3E%3CanimateTransform attributeName='transform' dur='0.75s' repeatCount='indefinite' type='rotate' values='0 12 12;360 12 12'/%3E%3C/path%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.absolute,[absolute=""]{position:absolute}.fixed,[fixed=""]{position:fixed}.relative,[relative=""]{position:relative}.inset-0,[inset-0=""]{top:0;right:0;bottom:0;left:0}.bottom-0{bottom:0}.bottom-10{bottom:2.5rem}.left-0{left:0}.left-1{left:.25rem}.left-1\/2{left:50%}.right-0{right:0}.right-1{right:.25rem}.right-4{right:1rem}.right-5,[right-5=""]{right:1.25rem}.top-0{top:0}.top-1\/2{top:50%}.-top-20{top:-5rem}.top-4{top:1rem}.top-5{top:1.25rem}.-z-1{z-index:-1}.z-1,[z-1=""]{z-index:1}.z-10,[z-10=""]{z-index:10}.z-20{z-index:20}.grid{display:grid}.auto-rows-fr{grid-auto-rows:minmax(0,1fr)}.grid-cols-\[1fr_max-content\]{grid-template-columns:1fr max-content}.grid-rows-\[1fr_max-content\]{grid-template-rows:1fr max-content}.grid-rows-\[1fr_min-content\]{grid-template-rows:1fr min-content}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.float-right{float:right}.m-1{margin:.25rem}.m-4{margin:1rem}.m-auto{margin:auto}.-mx-4{margin-left:-1rem;margin-right:-1rem}.children\:my-auto>*,.my-auto{margin-top:auto;margin-bottom:auto}.mb-10{margin-bottom:2.5rem}.mb-4{margin-bottom:1rem}.mb-8{margin-bottom:2rem}.ml-0{margin-left:0}.-ml-2{margin-left:-.5rem}.mr-1,.mr1{margin-right:.25rem}.mr-2{margin-right:.5rem}.ms{margin-inline-start:1rem}.-mt-0\.5{margin-top:-.125rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.block{display:block}.inline-block{display:inline-block}.hidden{display:none}.aspect-ratio-initial{aspect-ratio:initial}.h-\[calc\(var\(--vh\,1vh\)\*100\)\]{height:calc(var(--vh,1vh) * 100)}.h-0\.7{height:.175rem}.h-22px{height:22px}.h-3px{height:3px}.h-40px{height:40px}.h-5,.h5,[h5=""]{height:1.25rem}.h-6{height:1.5rem}.h-full,[h-full=""]{height:100%}.h1{height:.25rem}.h2{height:.5rem}.max-w-150{max-width:37.5rem}.max-w-90,[max-w-90=""]{max-width:22.5rem}.max-w-full{max-width:100%}.min-w-16{min-width:4rem}.min-w-90,[min-w-90=""]{min-width:22.5rem}.w-1px{width:1px}.w-22px{width:22px}.w-4,[w-4=""]{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-7{width:1.75rem}.w-90,[w-90=""]{width:22.5rem}.w-full,[w-full=""]{width:100%}.flex,[flex=""],[flex~="~"]{display:flex}.flex-1{flex:1 1 0%}.flex-auto,[flex-auto=""]{flex:1 1 auto}.flex-none{flex:none}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.flex-wrap-reverse{flex-wrap:wrap-reverse}.translate-0{--un-translate-x:0;--un-translate-y:0;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.-rotate-45{--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-rotate:-45deg;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.scale-102{--un-scale-x:1.02;--un-scale-y:1.02;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.scale-85{--un-scale-x:.85;--un-scale-y:.85;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.transform{transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.cursor-default{cursor:default}.cursor-pointer,[cursor-pointer=""]{cursor:pointer}.touch-none{touch-action:none}.select-none{-webkit-user-select:none;user-select:none}.resize{resize:both}.resize-none{resize:none}.break-inside-avoid-page{break-inside:avoid-page}.break-after-page{break-after:page}.items-center,[items-center=""]{align-items:center}.justify-center,[justify-center=""]{justify-content:center}.gap-2,[flex~=gap-2]{gap:.5rem}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-4{gap:1rem}.gap-x-8{column-gap:2rem}.gap-y-4{row-gap:1rem}.of-auto,.overflow-auto{overflow:auto}.of-hidden,.overflow-hidden,[of-hidden=""]{overflow:hidden}.overflow-y-auto{overflow-y:auto}.whitespace-nowrap{white-space:nowrap}.b,.border,.dark .dark\:border,.dark [dark\:border~="~"],[border~="~"],[border~="1"]{border-width:1px}[border~="0"]{border-width:0px}.border-2{border-width:2px}[border~=y]{border-top-width:1px;border-bottom-width:1px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-r{border-right-width:1px}.border-r-2{border-right-width:2px}.border-t,[border~=t]{border-top-width:1px}.border-gray-300\/50{border-color:#d1d5db80}[border~=red]{--un-border-opacity:1;border-color:rgb(248 113 113 / var(--un-border-opacity))}.border-transparent,[border~=transparent]{border-color:transparent}.border-white{--un-border-opacity:1;border-color:rgb(255 255 255 / var(--un-border-opacity))}.rounded,[border~=rounded]{border-radius:.25rem}.rounded-1\/2{border-radius:50%}.rounded-full{border-radius:9999px}.rounded-md{border-radius:.375rem}.rounded-l{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-r{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.\!border-none{border-style:none!important}[bg~=black]{--un-bg-opacity:1;background-color:rgb(0 0 0 / var(--un-bg-opacity))}.bg-current{background-color:currentColor}.bg-gray\/20{background-color:#9ca3af33}.bg-transparent,[bg-transparent~=","],[bg-transparent~="{"],[bg-transparent~="&&"],[bg-transparent~="text.value"]{background-color:transparent}[bg-transparent~="!valid.value"]{background-color:transparent!important}.hover\:bg-gray-400:hover{--un-bg-opacity:1;background-color:rgb(156 163 175 / var(--un-bg-opacity))}[bg-transparent~="placeholder:"]::placeholder{background-color:transparent}.\!bg-opacity-75{--un-bg-opacity:.75 !important}[bg~=opacity-80]{--un-bg-opacity:.8}.hover\:bg-opacity-10:hover{--un-bg-opacity:.1}[stroke-width~="1"]{stroke-width:1px}[stroke-width~="2"]{stroke-width:2px}[stroke-width~="3"]{stroke-width:3px}.dark .dark\:stroke-black{--un-stroke-opacity:1;stroke:rgb(0 0 0 / var(--un-stroke-opacity))}.stroke-white{--un-stroke-opacity:1;stroke:rgb(255 255 255 / var(--un-stroke-opacity))}.p-1{padding:.25rem}.p-16{padding:4rem}.p-2{padding:.5rem}.\!p-4{padding:1rem!important}.pa-3{padding:.75rem}.px,.px-4,.px4,[p~=x-4],[px=""]{padding-left:1rem;padding-right:1rem}.py-2,[p~=y-2]{padding-top:.5rem;padding-bottom:.5rem}.px-2,.px2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-7{padding-left:1.75rem;padding-right:1.75rem}.py-1,.py1{padding-top:.25rem;padding-bottom:.25rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-20{padding-top:5rem;padding-bottom:5rem}.py-4{padding-top:1rem;padding-bottom:1rem}[p~=l-1]{padding-left:.25rem}[p~=r-2]{padding-right:.5rem}.pt-\.5,[p~="t-0.5"]{padding-top:.125rem}.pb2{padding-bottom:.5rem}.pl-2{padding-left:.5rem}.pr-6{padding-right:1.5rem}.pie,[pie=""]{padding-inline-end:1rem}.text-center{text-align:center}.text-right,[text-right=""]{text-align:right}.text-wrap{text-wrap:wrap}.text-2xl{font-size:1.5rem;line-height:2rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm,[text-sm=""],[text~=sm]{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs,[text-xs=""]{font-size:.75rem;line-height:1rem}.text-\$slidev-controls-foreground{color:var(--slidev-controls-foreground)}.text-black{--un-text-opacity:1;color:rgb(0 0 0 / var(--un-text-opacity))}.text-blue{--un-text-opacity:1;color:rgb(96 165 250 / var(--un-text-opacity))}.\!text-current{color:currentColor!important}.text-cyan{--un-text-opacity:1;color:rgb(34 211 238 / var(--un-text-opacity))}.text-gray,.text-gray-400{--un-text-opacity:1;color:rgb(156 163 175 / var(--un-text-opacity))}.text-green{--un-text-opacity:1;color:rgb(74 222 128 / var(--un-text-opacity))}.text-green-500{--un-text-opacity:1;color:rgb(34 197 94 / var(--un-text-opacity))}.text-indigo{--un-text-opacity:1;color:rgb(129 140 248 / var(--un-text-opacity))}.text-lime{--un-text-opacity:1;color:rgb(163 230 53 / var(--un-text-opacity))}.text-orange{--un-text-opacity:1;color:rgb(251 146 60 / var(--un-text-opacity))}.text-pink{--un-text-opacity:1;color:rgb(244 114 182 / var(--un-text-opacity))}.text-purple{--un-text-opacity:1;color:rgb(192 132 252 / var(--un-text-opacity))}.text-red,.text-red-400{--un-text-opacity:1;color:rgb(248 113 113 / var(--un-text-opacity))}.dark .dark\:text-red-500{--un-text-opacity:1;color:rgb(239 68 68 / var(--un-text-opacity))}.text-red-700{--un-text-opacity:1;color:rgb(185 28 28 / var(--un-text-opacity))}.text-stone{--un-text-opacity:1;color:rgb(168 162 158 / var(--un-text-opacity))}.text-teal{--un-text-opacity:1;color:rgb(45 212 191 / var(--un-text-opacity))}.text-white{--un-text-opacity:1;color:rgb(255 255 255 / var(--un-text-opacity))}.text-yellow{--un-text-opacity:1;color:rgb(250 204 21 / var(--un-text-opacity))}.font-bold,[font-bold=""]{font-weight:700}.leading-2{line-height:.5rem}.tracking-widest{letter-spacing:.1em}.font-mono,[font-mono=""]{font-family:Fira Code,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.uppercase{text-transform:uppercase}.italic{font-style:italic}.tabular-nums{--un-numeric-spacing:tabular-nums;font-variant-numeric:var(--un-ordinal) var(--un-slashed-zero) var(--un-numeric-figure) var(--un-numeric-spacing) var(--un-numeric-fraction)}.line-through{text-decoration-line:line-through}.underline{text-decoration-line:underline}.op0,.opacity-0,[op0=""]{opacity:0}.op100,[op100=""]{opacity:1}.op15{opacity:.15}.op25,.opacity-25,[op25=""]{opacity:.25}.op30{opacity:.3}.op50,.opacity-50,[op50=""]{opacity:.5}.op80,.opacity-80{opacity:.8}.\!opacity-0{opacity:0!important}.opacity-10{opacity:.1}.\!opacity-100{opacity:1!important}.opacity-40{opacity:.4}[hover~=op100]:hover,.hover\:opacity-100:hover{opacity:1}.hover\:opacity-90:hover{opacity:.9}.shadow,[shadow~="~"]{--un-shadow:var(--un-shadow-inset) 0 1px 3px 0 var(--un-shadow-color, rgb(0 0 0 / .1)),var(--un-shadow-inset) 0 1px 2px -1px var(--un-shadow-color, rgb(0 0 0 / .1));box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}[shadow~="$event"]{--un-shadow:var(--event);box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.shadow-black{--un-shadow-opacity:1;--un-shadow-color:rgb(0 0 0 / var(--un-shadow-opacity))}.shadow-md{--un-shadow:var(--un-shadow-inset) 0 4px 6px -1px var(--un-shadow-color, rgb(0 0 0 / .1)),var(--un-shadow-inset) 0 2px 4px -2px var(--un-shadow-color, rgb(0 0 0 / .1));box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.outline-none,[outline-none=""]{outline:2px solid transparent;outline-offset:2px}.\!backdrop-blur-0px{--un-backdrop-blur:blur(0px) !important;-webkit-backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia)!important;backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia)!important}.backdrop-blur-5px{--un-backdrop-blur:blur(5px);-webkit-backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia);backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.view-transition-name{view-transition-name:name}@media (max-width: 767.9px){.lt-md\:hidden{display:none}}@media (min-width: 1024px){.lg\:m-2{margin:.5rem}.lg\:gap-1{gap:.25rem}.lg\:p-2{padding:.5rem}.lg\:p-4{padding:1rem}}.shiki-magic-move-container{position:relative;white-space:pre}.shiki-magic-move-item{display:inline-block;transition:color var(--smm-duration, .5s) var(--smm-easing, "ease")}.shiki-magic-move-move,.shiki-magic-move-enter-active,.shiki-magic-move-leave-active{transition:all var(--smm-duration, .5s) var(--smm-easing, "ease")}.shiki-magic-move-container-resize,.shiki-magic-move-container-restyle{transition:all var(--smm-duration, .5s) var(--smm-easing, "ease");transition-delay:calc(var(--smm-duration, .5s) * var(--smm-delay-container, 1))}.shiki-magic-move-move{transition-delay:calc(calc(var(--smm-duration, .5s) * var(--smm-delay-move, 1)) + var(--smm-stagger, 0));z-index:1}.shiki-magic-move-enter-active{transition-delay:calc(calc(var(--smm-duration, .5s) * var(--smm-delay-enter, 1)) + var(--smm-stagger, 0));z-index:1}.shiki-magic-move-leave-active{transition-delay:calc(calc(var(--smm-duration, .5s) * var(--smm-delay-leave, 1)) + var(--smm-stagger, 0))}.shiki-magic-move-enter-from,.shiki-magic-move-leave-to{opacity:0}br.shiki-magic-move-leave-active{display:none}
function __vite__mapDeps(indexes) {
if (!__vite__mapDeps.viteFileDeps) {
__vite__mapDeps.viteFileDeps = ["assets/1-Wee-eZMt.js","assets/modules/vue-Dn3czbSS.js","assets/slidev/context-CYh2-pv1.js","assets/modules/shiki-CuMFyo6Z.js","assets/modules/shiki-BSchMNmt.css","assets/slidev/2-Cx3h844I.js","assets/slidev/default-CY-sqYNf.js","assets/slidev/3-BImWE7hr.js","assets/slidev/4-Cwa14HvN.js","assets/slidev/VClick-DMxgr0td.js","assets/slidev/VClicks-BxpWTlPO.js","assets/slidev/image-right-DfgZS7MM.js","assets/slidev/5-BKiUV7YW.js","assets/modules/file-saver-EUMWMpoS.js","assets/slidev/6-a1-Txnm7.js","assets/slidev/7-DAqIpyyW.js","assets/slidev/8-ef_RKkJr.js","assets/slidev/9-BwiyO0dv.js","assets/slidev/10-DEiP_Nol.js","assets/slidev/11-rOVw0aI_.js","assets/slidev/12-CWoJeBQC.js","assets/slidev/13-CyjasQcB.js","assets/slidev/14-TxaF5e5I.js","assets/slidev/15-DO3P5bdF.js","assets/slidev/16-CMsMuh1c.js","assets/slidev/print-BMgL-6v3.js","assets/slidev/bottom-bs5w17fM.js","assets/bottom-DbIWt59F.css","assets/slidev/PrintStyle-CsJcNKrF.js","assets/print-Nssgrd1X.css","assets/slidev/print-BYA5KV2s.js","assets/slidev/NoteDisplay-DPpZxM1P.js","assets/NoteDisplay-C6AkVv8T.css","assets/slidev/presenter-DyTZ-eDI.js","assets/modules/unplugin-icons-CXhi-ET8.js","assets/slidev/SlidesShow-B3J6ytWL.js","assets/slidev/DrawingPreview-CEcTSZ6p.js","assets/SlidesShow-DZAAkYiM.css","assets/slidev/DrawingControls-CI8ZW2y-.js","assets/DrawingControls-C5T1oZL5.css","assets/presenter-knhRrLBR.css","assets/slidev/play-BN3PqSyH.js","assets/play-CoA43pdi.css"]
}
return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
}
import{t as C,y as p,n as qe,z as Ln,A as _t,B as $n,C as ve,D as ye,E as In,G as Rn,H as Fn,I as Zt,J as x,K as Hn,L as Nn,o as Jt,b as jn,M as Qt,N as Ke,O as Dn,P as qn,Q as zn,R as Wn,S as Vn,T as Xt,U as Bn,d as Un,r as Yn,c as Gn,V as Kn,W as Zn,X as Jn,u as Qn}from"./modules/vue-Dn3czbSS.js";import{T as Xn}from"./modules/shiki-CuMFyo6Z.js";(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&s(i)}).observe(document,{childList:!0,subtree:!0});function n(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function s(r){if(r.ep)return;r.ep=!0;const o=n(r);fetch(r.href,o)}})();function Pe(t,e,n){return Math.min(n,Math.max(e,t))}function es(...t){return ns(t).reduce((e,n)=>e+n,0)}function ts(t){return t=t??[],Array.isArray(t)?t:[t]}function ns(t){return ts(t).flat(1)}function Xi(...t){let e,n,s;t.length===1?(e=0,s=1,[n]=t):[e,n,s=1]=t;const r=[];let o=e;for(;o<n;)r.push(o),o+=s||1;return r}function ss(t){return t!=null}function rs(t,e){return Object.fromEntries(Object.entries(t).map(([n,s])=>e(n,s)).filter(ss))}function ea(t){return Object.keys(t).forEach(e=>t[e]===void 0?delete t[e]:{}),t}const A={theme:"frankfurt",title:"Bisonex",titleTemplate:"%s - Slidev",addons:[],remoteAssets:!1,monaco:!0,monacoTypesSource:"local",monacoTypesAdditionalPackages:[],download:!1,export:{},info:!1,highlighter:"shiki",twoslash:!0,lineNumbers:!1,colorSchema:"auto",routerMode:"history",aspectRatio:1.7777777777777777,canvasWidth:980,exportFilename:"",selectable:!1,themeConfig:{},fonts:{sans:['"Nunito Sans"',"ui-sans-serif","system-ui","-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial",'"Noto Sans"',"sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"','"Noto Color Emoji"'],serif:["ui-serif","Georgia","Cambria",'"Times New Roman"',"Times","serif"],mono:['"Fira Code"',"ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas",'"Liberation Mono"','"Courier New"',"monospace"],webfonts:["Nunito Sans","Fira Code"],provider:"google",local:[],italic:!1,weights:["200","400","600"]},favicon:"https://cdn.jsdelivr.net/gh/slidevjs/slidev/assets/favicon.png",drawings:{enabled:!0,persist:!1,presenterOnly:!1,syncAll:!0},plantUmlServer:"https://www.plantuml.com/plantuml",codeCopy:!0,record:"dev",css:"unocss",presenter:!0,htmlAttrs:{},editor:!0,hightlighter:"shiki",layout:"cover",author:"Alexis Praga",date:"18/04/2024"},os=C(A.aspectRatio??16/9),is=C(A.canvasWidth??980),ta=p(()=>Math.ceil(is.value/os.value)),as=p(()=>rs(A.themeConfig||{},(t,e)=>[`--slidev-theme-${t}`,e]));function ct(t,e={},n){for(const s in t){const r=t[s],o=n?`${n}:${s}`:s;typeof r=="object"&&r!==null?ct(r,e,o):typeof r=="function"&&(e[o]=r)}return e}const ls={run:t=>t()},cs=()=>ls,en=typeof console.createTask<"u"?console.createTask:cs;function us(t,e){const n=e.shift(),s=en(n);return t.reduce((r,o)=>r.then(()=>s.run(()=>o(...e))),Promise.resolve())}function fs(t,e){const n=e.shift(),s=en(n);return Promise.all(t.map(r=>s.run(()=>r(...e))))}function Qe(t,e){for(const n of[...t])n(e)}class hs{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(e,n,s={}){if(!e||typeof n!="function")return()=>{};const r=e;let o;for(;this._deprecatedHooks[e];)o=this._deprecatedHooks[e],e=o.to;if(o&&!s.allowDeprecated){let i=o.message;i||(i=`${r} hook has been deprecated`+(o.to?`, please use ${o.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(i)||(console.warn(i),this._deprecatedMessages.add(i))}if(!n.name)try{Object.defineProperty(n,"name",{get:()=>"_"+e.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(n),()=>{n&&(this.removeHook(e,n),n=void 0)}}hookOnce(e,n){let s,r=(...o)=>(typeof s=="function"&&s(),s=void 0,r=void 0,n(...o));return s=this.hook(e,r),s}removeHook(e,n){if(this._hooks[e]){const s=this._hooks[e].indexOf(n);s!==-1&&this._hooks[e].splice(s,1),this._hooks[e].length===0&&delete this._hooks[e]}}deprecateHook(e,n){this._deprecatedHooks[e]=typeof n=="string"?{to:n}:n;const s=this._hooks[e]||[];delete this._hooks[e];for(const r of s)this.hook(e,r)}deprecateHooks(e){Object.assign(this._deprecatedHooks,e);for(const n in e)this.deprecateHook(n,e[n])}addHooks(e){const n=ct(e),s=Object.keys(n).map(r=>this.hook(r,n[r]));return()=>{for(const r of s.splice(0,s.length))r()}}removeHooks(e){const n=ct(e);for(const s in n)this.removeHook(s,n[s])}removeAllHooks(){for(const e in this._hooks)delete this._hooks[e]}callHook(e,...n){return n.unshift(e),this.callHookWith(us,e,...n)}callHookParallel(e,...n){return n.unshift(e),this.callHookWith(fs,e,...n)}callHookWith(e,n,...s){const r=this._before||this._after?{name:n,args:s,context:{}}:void 0;this._before&&Qe(this._before,r);const o=e(n in this._hooks?[...this._hooks[n]]:[],s);return o instanceof Promise?o.finally(()=>{this._after&&r&&Qe(this._after,r)}):(this._after&&r&&Qe(this._after,r),o)}beforeEach(e){return this._before=this._before||[],this._before.push(e),()=>{if(this._before!==void 0){const n=this._before.indexOf(e);n!==-1&&this._before.splice(n,1)}}}afterEach(e){return this._after=this._after||[],this._after.push(e),()=>{if(this._after!==void 0){const n=this._after.indexOf(e);n!==-1&&this._after.splice(n,1)}}}}function ds(){return new hs}function ps(t){return Array.isArray(t)?t:[t]}const ms=["title","titleTemplate","script","style","noscript"],Fe=["base","meta","link","style","script","noscript"],gs=["title","titleTemplate","templateParams","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"],vs=["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"],tn=["tagPosition","tagPriority","tagDuplicateStrategy","children","innerHTML","textContent","processTemplateParams"],ys=typeof window<"u";function kt(t){let e=9;for(let n=0;n<t.length;)e=Math.imul(e^t.charCodeAt(n++),9**9);return((e^e>>>9)+65536).toString(16).substring(1,8).toLowerCase()}function Pt(t){return t._h||kt(t._d?t._d:`${t.tag}:${t.textContent||t.innerHTML||""}:${Object.entries(t.props).map(([e,n])=>`${e}:${String(n)}`).join(",")}`)}function nn(t,e){const{props:n,tag:s}=t;if(vs.includes(s))return s;if(s==="link"&&n.rel==="canonical")return"canonical";if(n.charset)return"charset";const r=["id"];s==="meta"&&r.push("name","property","http-equiv");for(const o of r)if(typeof n[o]<"u"){const i=String(n[o]);return e&&!e(i)?!1:`${s}:${o}:${i}`}return!1}function At(t,e){return t==null?e||null:typeof t=="function"?t(e):t}async function _s(t,e,n){const s={tag:t,props:await sn(typeof e=="object"&&typeof e!="function"&&!(e instanceof Promise)?{...e}:{[["script","noscript","style"].includes(t)?"innerHTML":"textContent"]:e},["templateParams","titleTemplate"].includes(t))};return tn.forEach(r=>{const o=typeof s.props[r]<"u"?s.props[r]:n[r];typeof o<"u"&&((!["innerHTML","textContent","children"].includes(r)||ms.includes(s.tag))&&(s[r==="children"?"innerHTML":r]=o),delete s.props[r])}),s.props.body&&(s.tagPosition="bodyClose",delete s.props.body),s.tag==="script"&&typeof s.innerHTML=="object"&&(s.innerHTML=JSON.stringify(s.innerHTML),s.props.type=s.props.type||"application/json"),Array.isArray(s.props.content)?s.props.content.map(r=>({...s,props:{...s.props,content:r}})):s}function ks(t,e){const n=t==="class"?" ":";";return typeof e=="object"&&!Array.isArray(e)&&(e=Object.entries(e).filter(([,s])=>s).map(([s,r])=>t==="style"?`${s}:${r}`:s)),(Array.isArray(e)?e.join(n):e).split(n).filter(s=>s.trim()).filter(Boolean).join(n)}async function sn(t,e){for(const n of Object.keys(t)){if(["class","style"].includes(n)){t[n]=ks(n,t[n]);continue}if(t[n]instanceof Promise&&(t[n]=await t[n]),!e&&!tn.includes(n)){const s=String(t[n]),r=n.startsWith("data-");s==="true"||s===""?t[n]=r?"true":!0:t[n]||(r&&s==="false"?t[n]="false":delete t[n])}}return t}const bs=10;async function xs(t){const e=[];return Object.entries(t.resolvedInput).filter(([n,s])=>typeof s<"u"&&gs.includes(n)).forEach(([n,s])=>{const r=ps(s);e.push(...r.map(o=>_s(n,o,t)).flat())}),(await Promise.all(e)).flat().filter(Boolean).map((n,s)=>(n._e=t._i,t.mode&&(n._m=t.mode),n._p=(t._i<<bs)+s,n))}const Ot={base:-10,title:10},Et={critical:-80,high:-10,low:20};function ze(t){let e=100;const n=t.tagPriority;return typeof n=="number"?n:(t.tag==="meta"?(t.props["http-equiv"]==="content-security-policy"&&(e=-30),t.props.charset&&(e=-20),t.props.name==="viewport"&&(e=-15)):t.tag==="link"&&t.props.rel==="preconnect"?e=20:t.tag in Ot&&(e=Ot[t.tag]),typeof n=="string"&&n in Et?e+Et[n]:e)}const ws=[{prefix:"before:",offset:-1},{prefix:"after:",offset:1}],Ct=["onload","onerror","onabort","onprogress","onloadstart"],U="%separator";function He(t,e,n){if(typeof t!="string"||!t.includes("%"))return t;function s(i){let a;return["s","pageTitle"].includes(i)?a=e.pageTitle:i.includes(".")?a=i.split(".").reduce((l,c)=>l&&l[c]||void 0,e):a=e[i],typeof a<"u"?(a||"").replace(/"/g,'\\"'):!1}let r=t;try{r=decodeURI(t)}catch{}return(r.match(/%(\w+\.+\w+)|%(\w+)/g)||[]).sort().reverse().forEach(i=>{const a=s(i.slice(1));typeof a=="string"&&(t=t.replace(new RegExp(`\\${i}(\\W|$)`,"g"),(l,c)=>`${a}${c}`).trim())}),t.includes(U)&&(t.endsWith(U)&&(t=t.slice(0,-U.length).trim()),t.startsWith(U)&&(t=t.slice(U.length).trim()),t=t.replace(new RegExp(`\\${U}\\s*\\${U}`,"g"),U),t=He(t,{separator:n},n)),t}async function Ms(t,e={}){var u;const n=e.document||t.resolvedOptions.document;if(!n||!t.dirty)return;const s={shouldRender:!0,tags:[]};if(await t.hooks.callHook("dom:beforeRender",s),!s.shouldRender)return;const r=(await t.resolveTags()).map(f=>({tag:f,id:Fe.includes(f.tag)?Pt(f):f.tag,shouldRender:!0}));let o=t._dom;if(!o){o={elMap:{htmlAttrs:n.documentElement,bodyAttrs:n.body}};for(const f of["body","head"]){const h=(u=n[f])==null?void 0:u.children,d=[];for(const m of[...h].filter(g=>Fe.includes(g.tagName.toLowerCase()))){const g={tag:m.tagName.toLowerCase(),props:await sn(m.getAttributeNames().reduce((k,b)=>({...k,[b]:m.getAttribute(b)}),{})),innerHTML:m.innerHTML};let y=1,v=nn(g);for(;v&&d.find(k=>k._d===v);)v=`${v}:${y++}`;g._d=v||void 0,d.push(g),o.elMap[m.getAttribute("data-hid")||Pt(g)]=m}}}o.pendingSideEffects={...o.sideEffects||{}},o.sideEffects={};function i(f,h,d){const m=`${f}:${h}`;o.sideEffects[m]=d,delete o.pendingSideEffects[m]}function a({id:f,$el:h,tag:d}){const m=d.tag.endsWith("Attrs");o.elMap[f]=h,m||(["textContent","innerHTML"].forEach(g=>{d[g]&&d[g]!==h[g]&&(h[g]=d[g])}),i(f,"el",()=>{var g;(g=o.elMap[f])==null||g.remove(),delete o.elMap[f]}));for(const[g,y]of Object.entries(d._eventHandlers||{}))h.getAttribute(`data-${g}`)!==""&&((d.tag==="bodyAttrs"?n.defaultView:h).addEventListener(g.replace("on",""),y.bind(h)),h.setAttribute(`data-${g}`,""));Object.entries(d.props).forEach(([g,y])=>{const v=`attr:${g}`;if(g==="class")for(const k of(y||"").split(" ").filter(Boolean))m&&i(f,`${v}:${k}`,()=>h.classList.remove(k)),!h.classList.contains(k)&&h.classList.add(k);else if(g==="style")for(const k of(y||"").split(";").filter(Boolean)){const[b,...M]=k.split(":").map(I=>I.trim());i(f,`${v}:${k}:${b}`,()=>{h.style.removeProperty(b)}),h.style.setProperty(b,M.join(":"))}else h.getAttribute(g)!==y&&h.setAttribute(g,y===!0?"":String(y)),m&&i(f,v,()=>h.removeAttribute(g))})}const l=[],c={bodyClose:void 0,bodyOpen:void 0,head:void 0};for(const f of r){const{tag:h,shouldRender:d,id:m}=f;if(d){if(h.tag==="title"){n.title=h.textContent;continue}f.$el=f.$el||o.elMap[m],f.$el?a(f):Fe.includes(h.tag)&&l.push(f)}}for(const f of l){const h=f.tag.tagPosition||"head";f.$el=n.createElement(f.tag.tag),a(f),c[h]=c[h]||n.createDocumentFragment(),c[h].appendChild(f.$el)}for(const f of r)await t.hooks.callHook("dom:renderTag",f,n,i);c.head&&n.head.appendChild(c.head),c.bodyOpen&&n.body.insertBefore(c.bodyOpen,n.body.firstChild),c.bodyClose&&n.body.appendChild(c.bodyClose),Object.values(o.pendingSideEffects).forEach(f=>f()),t._dom=o,t.dirty=!1,await t.hooks.callHook("dom:rendered",{renders:r})}async function Ss(t,e={}){const n=e.delayFn||(s=>setTimeout(s,10));return t._domUpdatePromise=t._domUpdatePromise||new Promise(s=>n(async()=>{await Ms(t,e),delete t._domUpdatePromise,s()}))}function Ts(t){return e=>{var s,r;const n=((r=(s=e.resolvedOptions.document)==null?void 0:s.head.querySelector('script[id="unhead:payload"]'))==null?void 0:r.innerHTML)||!1;return n&&e.push(JSON.parse(n)),{mode:"client",hooks:{"entries:updated":function(o){Ss(o,t)}}}}}const Ps=["templateParams","htmlAttrs","bodyAttrs"],As={hooks:{"tag:normalise":function({tag:t}){["hid","vmid","key"].forEach(s=>{t.props[s]&&(t.key=t.props[s],delete t.props[s])});const n=nn(t)||(t.key?`${t.tag}:${t.key}`:!1);n&&(t._d=n)},"tags:resolve":function(t){const e={};t.tags.forEach(s=>{const r=(s.key?`${s.tag}:${s.key}`:s._d)||s._p,o=e[r];if(o){let a=s==null?void 0:s.tagDuplicateStrategy;if(!a&&Ps.includes(s.tag)&&(a="merge"),a==="merge"){const l=o.props;["class","style"].forEach(c=>{l[c]&&(s.props[c]?(c==="style"&&!l[c].endsWith(";")&&(l[c]+=";"),s.props[c]=`${l[c]} ${s.props[c]}`):s.props[c]=l[c])}),e[r].props={...l,...s.props};return}else if(s._e===o._e){o._duped=o._duped||[],s._d=`${o._d}:${o._duped.length+1}`,o._duped.push(s);return}else if(ze(s)>ze(o))return}const i=Object.keys(s.props).length+(s.innerHTML?1:0)+(s.textContent?1:0);if(Fe.includes(s.tag)&&i===0){delete e[r];return}e[r]=s});const n=[];Object.values(e).forEach(s=>{const r=s._duped;delete s._duped,n.push(s),r&&n.push(...r)}),t.tags=n,t.tags=t.tags.filter(s=>!(s.tag==="meta"&&(s.props.name||s.props.property)&&!s.props.content))}}},Os={mode:"server",hooks:{"tags:resolve":function(t){const e={};t.tags.filter(n=>["titleTemplate","templateParams","title"].includes(n.tag)&&n._m==="server").forEach(n=>{e[n.tag]=n.tag.startsWith("title")?n.textContent:n.props}),Object.keys(e).length&&t.tags.push({tag:"script",innerHTML:JSON.stringify(e),props:{id:"unhead:payload",type:"application/json"}})}}},Es=["script","link","bodyAttrs"],Cs=t=>({hooks:{"tags:resolve":function(e){for(const n of e.tags.filter(s=>Es.includes(s.tag)))Object.entries(n.props).forEach(([s,r])=>{s.startsWith("on")&&typeof r=="function"&&(t.ssr&&Ct.includes(s)?n.props[s]=`this.dataset.${s}fired = true`:delete n.props[s],n._eventHandlers=n._eventHandlers||{},n._eventHandlers[s]=r)}),t.ssr&&n._eventHandlers&&(n.props.src||n.props.href)&&(n.key=n.key||kt(n.props.src||n.props.href))},"dom:renderTag":function({$el:e,tag:n}){var s,r;for(const o of Object.keys((e==null?void 0:e.dataset)||{}).filter(i=>Ct.some(a=>`${a}fired`===i))){const i=o.replace("fired","");(r=(s=n._eventHandlers)==null?void 0:s[i])==null||r.call(e,new Event(i.replace("on","")))}}}}),Ls=["link","style","script","noscript"],$s={hooks:{"tag:normalise":({tag:t})=>{t.key&&Ls.includes(t.tag)&&(t.props["data-hid"]=t._h=kt(t.key))}}},Is={hooks:{"tags:resolve":t=>{const e=n=>{var s;return(s=t.tags.find(r=>r._d===n))==null?void 0:s._p};for(const{prefix:n,offset:s}of ws)for(const r of t.tags.filter(o=>typeof o.tagPriority=="string"&&o.tagPriority.startsWith(n))){const o=e(r.tagPriority.replace(n,""));typeof o<"u"&&(r._p=o+s)}t.tags.sort((n,s)=>n._p-s._p).sort((n,s)=>ze(n)-ze(s))}}},Rs={meta:"content",link:"href",htmlAttrs:"lang"},Fs=t=>({hooks:{"tags:resolve":e=>{var a;const{tags:n}=e,s=(a=n.find(l=>l.tag==="title"))==null?void 0:a.textContent,r=n.findIndex(l=>l.tag==="templateParams"),o=r!==-1?n[r].props:{},i=o.separator||"|";delete o.separator,o.pageTitle=He(o.pageTitle||s||"",o,i);for(const l of n.filter(c=>c.processTemplateParams!==!1)){const c=Rs[l.tag];c&&typeof l.props[c]=="string"?l.props[c]=He(l.props[c],o,i):(l.processTemplateParams===!0||["titleTemplate","title"].includes(l.tag))&&["innerHTML","textContent"].forEach(u=>{typeof l[u]=="string"&&(l[u]=He(l[u],o,i))})}t._templateParams=o,t._separator=i,e.tags=n.filter(l=>l.tag!=="templateParams")}}}),Hs={hooks:{"tags:resolve":t=>{const{tags:e}=t;let n=e.findIndex(r=>r.tag==="titleTemplate");const s=e.findIndex(r=>r.tag==="title");if(s!==-1&&n!==-1){const r=At(e[n].textContent,e[s].textContent);r!==null?e[s].textContent=r||e[s].textContent:delete e[s]}else if(n!==-1){const r=At(e[n].textContent);r!==null&&(e[n].textContent=r,e[n].tag="title",n=-1)}n!==-1&&delete e[n],t.tags=e.filter(Boolean)}}},Ns={hooks:{"tags:afterResolve":function(t){for(const e of t.tags)typeof e.innerHTML=="string"&&(e.innerHTML&&["application/ld+json","application/json"].includes(e.props.type)?e.innerHTML=e.innerHTML.replace(/</g,"\\u003C"):e.innerHTML=e.innerHTML.replace(new RegExp(`</${e.tag}`,"g"),`<\\/${e.tag}`))}}};let rn;function js(t={}){const e=Ds(t);return e.use(Ts()),rn=e}function Lt(t,e){return!t||t==="server"&&e||t==="client"&&!e}function Ds(t={}){const e=ds();e.addHooks(t.hooks||{}),t.document=t.document||(ys?document:void 0);const n=!t.document,s=()=>{a.dirty=!0,e.callHook("entries:updated",a)};let r=0,o=[];const i=[],a={plugins:i,dirty:!1,resolvedOptions:t,hooks:e,headEntries(){return o},use(l){const c=typeof l=="function"?l(a):l;(!c.key||!i.some(u=>u.key===c.key))&&(i.push(c),Lt(c.mode,n)&&e.addHooks(c.hooks||{}))},push(l,c){c==null||delete c.head;const u={_i:r++,input:l,...c};return Lt(u.mode,n)&&(o.push(u),s()),{dispose(){o=o.filter(f=>f._i!==u._i),e.callHook("entries:updated",a),s()},patch(f){o=o.map(h=>(h._i===u._i&&(h.input=u.input=f),h)),s()}}},async resolveTags(){const l={tags:[],entries:[...o]};await e.callHook("entries:resolve",l);for(const c of l.entries){const u=c.resolvedInput||c.input;if(c.resolvedInput=await(c.transform?c.transform(u):u),c.resolvedInput)for(const f of await xs(c)){const h={tag:f,entry:c,resolvedOptions:a.resolvedOptions};await e.callHook("tag:normalise",h),l.tags.push(h.tag)}}return await e.callHook("tags:beforeResolve",l),await e.callHook("tags:resolve",l),await e.callHook("tags:afterResolve",l),l.tags},ssr:n};return[As,Os,Cs,$s,Is,Fs,Hs,Ns,...(t==null?void 0:t.plugins)||[]].forEach(l=>a.use(l)),a.hooks.callHook("init",a),a}function qs(){return rn}const zs=Ln.startsWith("3");function Ws(t){return typeof t=="function"?t():_t(t)}function We(t,e=""){if(t instanceof Promise)return t;const n=Ws(t);return!t||!n?n:Array.isArray(n)?n.map(s=>We(s,e)):typeof n=="object"?Object.fromEntries(Object.entries(n).map(([s,r])=>s==="titleTemplate"||s.startsWith("on")?[s,_t(r)]:[s,We(r,s)])):n}const Vs={hooks:{"entries:resolve":function(t){for(const e of t.entries)e.resolvedInput=We(e.input)}}},on="usehead";function Bs(t){return{install(n){zs&&(n.config.globalProperties.$unhead=t,n.config.globalProperties.$head=t,n.provide(on,t))}}.install}function Us(t={}){t.domDelayFn=t.domDelayFn||(n=>qe(()=>setTimeout(()=>n(),0)));const e=js(t);return e.use(Vs),e.install=Bs(e),e}const $t=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},It="__unhead_injection_handler__";function Ys(){if(It in $t)return $t[It]();const t=$n(on);return t||console.warn("Unhead is missing Vue context, falling back to shared context. This may have unexpected results."),t||qs()}function Gs(t,e={}){const n=e.head||Ys();if(n)return n.ssr?n.push(t,e):Ks(n,t,e)}function Ks(t,e,n={}){const s=C(!1),r=C({});ve(()=>{r.value=s.value?{}:We(e)});const o=t.push(r.value,n);return ye(r,a=>{o.patch(a)}),Zt()&&(In(()=>{o.dispose()}),Rn(()=>{s.value=!0}),Fn(()=>{s.value=!1})),o}function an(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substr(2,10)}function H(t,e,n){Object.defineProperty(t,e,{value:n,writable:!0,enumerable:!1})}const he=x({page:0,clicks:0});let Zs=[],Js=[];H(he,"$syncUp",!0);H(he,"$syncDown",!0);H(he,"$paused",!1);H(he,"$onSet",t=>Zs.push(t));H(he,"$onPatch",t=>Js.push(t));an();H(he,"$patch",async()=>!1);function ln(t,e,n=!1){const s=[];let r=!1,o=!1,i,a;const l=x(e);function c(d){s.push(d)}function u(d,m){l[d]!==m&&(clearTimeout(i),r=!0,l[d]=m,i=setTimeout(()=>r=!1,0))}function f(d){r||(clearTimeout(a),o=!0,Object.entries(d).forEach(([m,g])=>{l[m]=g}),a=setTimeout(()=>o=!1,0))}function h(d){let m;n?n&&window.addEventListener("storage",y=>{y&&y.key===d&&y.newValue&&f(JSON.parse(y.newValue))}):(m=new BroadcastChannel(d),m.addEventListener("message",y=>f(y.data)));function g(){!n&&m&&!o?m.postMessage(Hn(l)):n&&!o&&window.localStorage.setItem(d,JSON.stringify(l)),r||s.forEach(y=>y(l))}if(ye(l,g,{deep:!0,flush:"sync"}),n){const y=window.localStorage.getItem(d);y&&f(JSON.parse(y))}}return{init:h,onPatch:c,patch:u,state:l}}const{init:Qs,onPatch:Xs,patch:ke,state:na}=ln(he,{page:1,clicks:0,viewerPage:1,viewerClicks:0}),de=x({});let er=[],tr=[];H(de,"$syncUp",!0);H(de,"$syncDown",!0);H(de,"$paused",!1);H(de,"$onSet",t=>er.push(t));H(de,"$onPatch",t=>tr.push(t));an();H(de,"$patch",async()=>!1);const{init:nr,onPatch:sa,patch:ra,state:oa}=ln(de,{},!1),bt="$$slidev-clicks-context",sr="$$slidev-page",ia="$$slidev-slide-scale",rr="$$slidev-context",aa="$$slidev-route",or="$$slidev-render-context",la="$$slidev-active",ca="$$slidev-fontmatter",ua="$$slidev-slide-zoom",Ne="slidev-vclick-target",be="slidev-vclick-hidden",xe="slidev-vclick-fade",Xe="slidev-vclick-hidden-explicitly",et="slidev-vclick-current",tt="slidev-vclick-prior",Ve=999999,ir=["localhost","127.0.0.1"],ar=["clicks","clicksStart","disabled","hide","hideInToc","layout","level","preload","routeAlias","src","title","transition","zoom"],fa=[...ar,"theme","titleTemplate","info","author","keywords","presenter","download","exportFilename","export","highlighter","lineNumbers","monaco","remoteAssets","selectable","record","colorSchema","routerMode","aspectRatio","canvasWidth","themeConfig","favicon","plantUmlServer","fonts","defaults","drawings","htmlAttrs","mdc"],cn=C(!1);/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function un(t){return typeof t>"u"||t===null}function lr(t){return typeof t=="object"&&t!==null}function cr(t){return Array.isArray(t)?t:un(t)?[]:[t]}function ur(t,e){var n,s,r,o;if(e)for(o=Object.keys(e),n=0,s=o.length;n<s;n+=1)r=o[n],t[r]=e[r];return t}function fr(t,e){var n="",s;for(s=0;s<e;s+=1)n+=t;return n}function hr(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var dr=un,pr=lr,mr=cr,gr=fr,vr=hr,yr=ur,xt={isNothing:dr,isObject:pr,toArray:mr,repeat:gr,isNegativeZero:vr,extend:yr};function fn(t,e){var n="",s=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(n+='in "'+t.mark.name+'" '),n+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(n+=`
`+t.mark.snippet),s+" "+n):s}function Ae(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=fn(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Ae.prototype=Object.create(Error.prototype);Ae.prototype.constructor=Ae;Ae.prototype.toString=function(e){return this.name+": "+fn(this,e)};var fe=Ae,_r=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],kr=["scalar","sequence","mapping"];function br(t){var e={};return t!==null&&Object.keys(t).forEach(function(n){t[n].forEach(function(s){e[String(s)]=n})}),e}function xr(t,e){if(e=e||{},Object.keys(e).forEach(function(n){if(_r.indexOf(n)===-1)throw new fe('Unknown option "'+n+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(n){return n},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=br(e.styleAliases||null),kr.indexOf(this.kind)===-1)throw new fe('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var E=xr;function Rt(t,e){var n=[];return t[e].forEach(function(s){var r=n.length;n.forEach(function(o,i){o.tag===s.tag&&o.kind===s.kind&&o.multi===s.multi&&(r=i)}),n[r]=s}),n}function wr(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,n;function s(r){r.multi?(t.multi[r.kind].push(r),t.multi.fallback.push(r)):t[r.kind][r.tag]=t.fallback[r.tag]=r}for(e=0,n=arguments.length;e<n;e+=1)arguments[e].forEach(s);return t}function ut(t){return this.extend(t)}ut.prototype.extend=function(e){var n=[],s=[];if(e instanceof E)s.push(e);else if(Array.isArray(e))s=s.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(n=n.concat(e.implicit)),e.explicit&&(s=s.concat(e.explicit));else throw new fe("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");n.forEach(function(o){if(!(o instanceof E))throw new fe("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(o.loadKind&&o.loadKind!=="scalar")throw new fe("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(o.multi)throw new fe("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),s.forEach(function(o){if(!(o instanceof E))throw new fe("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var r=Object.create(ut.prototype);return r.implicit=(this.implicit||[]).concat(n),r.explicit=(this.explicit||[]).concat(s),r.compiledImplicit=Rt(r,"implicit"),r.compiledExplicit=Rt(r,"explicit"),r.compiledTypeMap=wr(r.compiledImplicit,r.compiledExplicit),r};var Mr=ut,Sr=new E("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),Tr=new E("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),Pr=new E("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),Ar=new Mr({explicit:[Sr,Tr,Pr]});function Or(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function Er(){return null}function Cr(t){return t===null}var Lr=new E("tag:yaml.org,2002:null",{kind:"scalar",resolve:Or,construct:Er,predicate:Cr,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function $r(t){if(t===null)return!1;var e=t.length;return e===4&&(t==="true"||t==="True"||t==="TRUE")||e===5&&(t==="false"||t==="False"||t==="FALSE")}function Ir(t){return t==="true"||t==="True"||t==="TRUE"}function Rr(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var Fr=new E("tag:yaml.org,2002:bool",{kind:"scalar",resolve:$r,construct:Ir,predicate:Rr,represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"});function Hr(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function Nr(t){return 48<=t&&t<=55}function jr(t){return 48<=t&&t<=57}function Dr(t){if(t===null)return!1;var e=t.length,n=0,s=!1,r;if(!e)return!1;if(r=t[n],(r==="-"||r==="+")&&(r=t[++n]),r==="0"){if(n+1===e)return!0;if(r=t[++n],r==="b"){for(n++;n<e;n++)if(r=t[n],r!=="_"){if(r!=="0"&&r!=="1")return!1;s=!0}return s&&r!=="_"}if(r==="x"){for(n++;n<e;n++)if(r=t[n],r!=="_"){if(!Hr(t.charCodeAt(n)))return!1;s=!0}return s&&r!=="_"}if(r==="o"){for(n++;n<e;n++)if(r=t[n],r!=="_"){if(!Nr(t.charCodeAt(n)))return!1;s=!0}return s&&r!=="_"}}if(r==="_")return!1;for(;n<e;n++)if(r=t[n],r!=="_"){if(!jr(t.charCodeAt(n)))return!1;s=!0}return!(!s||r==="_")}function qr(t){var e=t,n=1,s;if(e.indexOf("_")!==-1&&(e=e.replace(/_/g,"")),s=e[0],(s==="-"||s==="+")&&(s==="-"&&(n=-1),e=e.slice(1),s=e[0]),e==="0")return 0;if(s==="0"){if(e[1]==="b")return n*parseInt(e.slice(2),2);if(e[1]==="x")return n*parseInt(e.slice(2),16);if(e[1]==="o")return n*parseInt(e.slice(2),8)}return n*parseInt(e,10)}function zr(t){return Object.prototype.toString.call(t)==="[object Number]"&&t%1===0&&!xt.isNegativeZero(t)}var Wr=new E("tag:yaml.org,2002:int",{kind:"scalar",resolve:Dr,construct:qr,predicate:zr,represent:{binary:function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},octal:function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Vr=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Br(t){return!(t===null||!Vr.test(t)||t[t.length-1]==="_")}function Ur(t){var e,n;return e=t.replace(/_/g,"").toLowerCase(),n=e[0]==="-"?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),e===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:e===".nan"?NaN:n*parseFloat(e,10)}var Yr=/^[-+]?[0-9]+e/;function Gr(t,e){var n;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(xt.isNegativeZero(t))return"-0.0";return n=t.toString(10),Yr.test(n)?n.replace("e",".e"):n}function Kr(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||xt.isNegativeZero(t))}var Zr=new E("tag:yaml.org,2002:float",{kind:"scalar",resolve:Br,construct:Ur,predicate:Kr,represent:Gr,defaultStyle:"lowercase"}),Jr=Ar.extend({implicit:[Lr,Fr,Wr,Zr]}),Qr=Jr,hn=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),dn=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 Xr(t){return t===null?!1:hn.exec(t)!==null||dn.exec(t)!==null}function eo(t){var e,n,s,r,o,i,a,l=0,c=null,u,f,h;if(e=hn.exec(t),e===null&&(e=dn.exec(t)),e===null)throw new Error("Date resolve error");if(n=+e[1],s=+e[2]-1,r=+e[3],!e[4])return new Date(Date.UTC(n,s,r));if(o=+e[4],i=+e[5],a=+e[6],e[7]){for(l=e[7].slice(0,3);l.length<3;)l+="0";l=+l}return e[9]&&(u=+e[10],f=+(e[11]||0),c=(u*60+f)*6e4,e[9]==="-"&&(c=-c)),h=new Date(Date.UTC(n,s,r,o,i,a,l)),c&&h.setTime(h.getTime()-c),h}function to(t){return t.toISOString()}var no=new E("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Xr,construct:eo,instanceOf:Date,represent:to});function so(t){return t==="<<"||t===null}var ro=new E("tag:yaml.org,2002:merge",{kind:"scalar",resolve:so}),wt=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
\r`;function oo(t){if(t===null)return!1;var e,n,s=0,r=t.length,o=wt;for(n=0;n<r;n++)if(e=o.indexOf(t.charAt(n)),!(e>64)){if(e<0)return!1;s+=6}return s%8===0}function io(t){var e,n,s=t.replace(/[\r\n=]/g,""),r=s.length,o=wt,i=0,a=[];for(e=0;e<r;e++)e%4===0&&e&&(a.push(i>>16&255),a.push(i>>8&255),a.push(i&255)),i=i<<6|o.indexOf(s.charAt(e));return n=r%4*6,n===0?(a.push(i>>16&255),a.push(i>>8&255),a.push(i&255)):n===18?(a.push(i>>10&255),a.push(i>>2&255)):n===12&&a.push(i>>4&255),new Uint8Array(a)}function ao(t){var e="",n=0,s,r,o=t.length,i=wt;for(s=0;s<o;s++)s%3===0&&s&&(e+=i[n>>18&63],e+=i[n>>12&63],e+=i[n>>6&63],e+=i[n&63]),n=(n<<8)+t[s];return r=o%3,r===0?(e+=i[n>>18&63],e+=i[n>>12&63],e+=i[n>>6&63],e+=i[n&63]):r===2?(e+=i[n>>10&63],e+=i[n>>4&63],e+=i[n<<2&63],e+=i[64]):r===1&&(e+=i[n>>2&63],e+=i[n<<4&63],e+=i[64],e+=i[64]),e}function lo(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var co=new E("tag:yaml.org,2002:binary",{kind:"scalar",resolve:oo,construct:io,predicate:lo,represent:ao}),uo=Object.prototype.hasOwnProperty,fo=Object.prototype.toString;function ho(t){if(t===null)return!0;var e=[],n,s,r,o,i,a=t;for(n=0,s=a.length;n<s;n+=1){if(r=a[n],i=!1,fo.call(r)!=="[object Object]")return!1;for(o in r)if(uo.call(r,o))if(!i)i=!0;else return!1;if(!i)return!1;if(e.indexOf(o)===-1)e.push(o);else return!1}return!0}function po(t){return t!==null?t:[]}var mo=new E("tag:yaml.org,2002:omap",{kind:"sequence",resolve:ho,construct:po}),go=Object.prototype.toString;function vo(t){if(t===null)return!0;var e,n,s,r,o,i=t;for(o=new Array(i.length),e=0,n=i.length;e<n;e+=1){if(s=i[e],go.call(s)!=="[object Object]"||(r=Object.keys(s),r.length!==1))return!1;o[e]=[r[0],s[r[0]]]}return!0}function yo(t){if(t===null)return[];var e,n,s,r,o,i=t;for(o=new Array(i.length),e=0,n=i.length;e<n;e+=1)s=i[e],r=Object.keys(s),o[e]=[r[0],s[r[0]]];return o}var _o=new E("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:vo,construct:yo}),ko=Object.prototype.hasOwnProperty;function bo(t){if(t===null)return!0;var e,n=t;for(e in n)if(ko.call(n,e)&&n[e]!==null)return!1;return!0}function xo(t){return t!==null?t:{}}var wo=new E("tag:yaml.org,2002:set",{kind:"mapping",resolve:bo,construct:xo});Qr.extend({implicit:[no,ro],explicit:[co,mo,_o,wo]});function Ft(t){return t===48?"\0":t===97?"\x07":t===98?"\b":t===116||t===9?" ":t===110?`
`:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?" ":t===95?" ":t===76?"\u2028":t===80?"\u2029":""}var Mo=new Array(256),So=new Array(256);for(var me=0;me<256;me++)Mo[me]=Ft(me)?1:0,So[me]=Ft(me);function ha(){const t=C(Date.now()),e=Nn({interval:1e3}),n=p(()=>{const r=(e.value-t.value)/1e3,o=Math.floor(r%60).toString().padStart(2,"0");return`${Math.floor(r/60).toString().padStart(2,"0")}:${o}`});function s(){t.value=e.value}return{timer:n,resetTimer:s}}function To(t=5){const e=[],n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",s=n.length;for(let r=0;r<t;r++)e.push(n.charAt(Math.floor(Math.random()*s)));return e.join("")}function Po(t="+1"){let e=+t;return Number.isNaN(e)&&(console.warn("[slidev] Invalid click position:",t),e=0),[typeof t=="string"&&"+-".includes(t[0]),e]}const Ao="modulepreload",Oo=function(t){return"/slides/bisonex/"+t},Ht={},T=function(e,n,s){let r=Promise.resolve();if(n&&n.length>0){const o=document.getElementsByTagName("link"),i=document.querySelector("meta[property=csp-nonce]"),a=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));r=Promise.all(n.map(l=>{if(l=Oo(l),l in Ht)return;Ht[l]=!0;const c=l.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(!!s)for(let d=o.length-1;d>=0;d--){const m=o[d];if(m.href===l&&(!c||m.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${u}`))return;const h=document.createElement("link");if(h.rel=c?"stylesheet":Ao,c||(h.as="script",h.crossOrigin=""),h.href=l,a&&h.setAttribute("nonce",a),document.head.appendChild(h),c)return new Promise((d,m)=>{h.addEventListener("load",d),h.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${l}`)))})}))}return r.then(()=>e()).catch(o=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=o,window.dispatchEvent(i),!i.defaultPrevented)throw o})},pn=(t,e)=>{const n=t.__vccOpts||t;for(const[s,r]of e)n[s]=r;return n},Eo={},Co={class:"px-4 py-10 text-center text-red-700 dark:text-red-500 font-bold font-mono"};function Lo(t,e){return Jt(),jn("div",Co," An error occurred on this slide. Check the terminal for more information. ")}const $o=pn(Eo,[["render",Lo],["__file","/home/alex/notes/slides/node_modules/@slidev/client/layouts/error.vue"]]),O=Object.freeze(Object.defineProperty({__proto__:null,default:$o},Symbol.toStringTag,{value:"Module"})),G=x({theme:"frankfurt",layout:"cover",author:"Alexis Praga",title:"Bisonex",date:"18/04/2024"}),Io=x({layout:p(()=>G.layout),transition:p(()=>G.transition),class:p(()=>G.class),clicks:p(()=>G.clicks),name:p(()=>G.name),preload:p(()=>G.preload),slide:{index:0,content:"",note:"",title:"Bisonex",noteHTML:`<p>Remercier jury + public</p>
`,raw:"",frontmatter:G,filepath:"/home/alex/notes/slides/bisonex.md",start:0,id:0,no:1},__clicksContext:null,__preloaded:!1}),K=x({section:"Introduction"}),Ro=x({layout:p(()=>K.layout),transition:p(()=>K.transition),class:p(()=>K.class),clicks:p(()=>K.clicks),name:p(()=>K.name),preload:p(()=>K.preload),slide:{index:1,content:"",note:"",title:"Plan",level:1,noteHTML:"",raw:"",frontmatter:K,filepath:"/home/alex/notes/slides/bisonex.md",start:16,id:1,no:2},__clicksContext:null,__preloaded:!1}),Z=x({}),Fo=x({layout:p(()=>Z.layout),transition:p(()=>Z.transition),class:p(()=>Z.class),clicks:p(()=>Z.clicks),name:p(()=>Z.name),preload:p(()=>Z.preload),slide:{index:2,content:"",note:"",title:"Contexte",level:1,noteHTML:`<p>Maladies rares par opposition aux cancers
Depuis 2017, bilan "débrouillage" : ACPA/caryotype</p>
<p>1% = codant pour des protéines => rôle important et d'ailleur rendement diagnostic intéressant (mais dépend des malades)</p>
`,raw:"",frontmatter:Z,filepath:"/home/alex/notes/slides/bisonex.md",start:26,id:2,no:3},__clicksContext:null,__preloaded:!1}),J=x({layout:"image-right",image:"/img/ngs.svg",backgroundSize:"100%"}),Ho=x({layout:p(()=>J.layout),transition:p(()=>J.transition),class:p(()=>J.class),clicks:p(()=>J.clicks),name:p(()=>J.name),preload:p(()=>J.preload),slide:{index:3,content:"",note:"",title:"Contexte",level:1,noteHTML:`<p>Errance = sans diag : soit pas de cause génétique, soit limite technologique ou scientifique</p>
<ul>
<li>Intéressant de regarder les données déjà ré-analysées (ex: nouveaux gènes) -> ok</li>
<li>Idéal = notre propre pipeline -> déjà développé</li>
</ul>
<p>Décrire figure puis dire où on se place</p>
<ul>
<li>non utilisable par un humain (volume trop important): nécessité d'un traitement bioinformatique</li>
<li>détermine différence par rapport à une référence (= variants)</li>
<li>filtre (millions candidations -> 1000 candidates)</li>
<li>besoin d'un biologiste (> IA not. expérience)</li>
</ul>
`,raw:"",frontmatter:J,filepath:"/home/alex/notes/slides/bisonex.md",start:45,id:3,no:4},__clicksContext:null,__preloaded:!1}),Q=x({}),No=x({layout:p(()=>Q.layout),transition:p(()=>Q.transition),class:p(()=>Q.class),clicks:p(()=>Q.clicks),name:p(()=>Q.name),preload:p(()=>Q.preload),slide:{index:4,content:"",note:"",title:"Pipeline",level:1,noteHTML:"",raw:"",frontmatter:Q,filepath:"/home/alex/notes/slides/bisonex.md",start:70,id:4,no:5},__clicksContext:null,__preloaded:!1}),X=x({layout:"image-right",image:"/img/dependencies.svg",backgroundSize:"100%",section:"Reproductibilité, portabilité"}),jo=x({layout:p(()=>X.layout),transition:p(()=>X.transition),class:p(()=>X.class),clicks:p(()=>X.clicks),name:p(()=>X.name),preload:p(()=>X.preload),slide:{index:5,content:"",note:"",title:"Reproductibilité",level:1,noteHTML:`<ul>
<li>pour avoir une expérience reproductible, il faut déjà un environnement logiciel qui le soit !</li>
</ul>
<ol>
<li>
<p>SH-GTA-16: version définie de tous les logiciels et une mise à jour implique une requalification
pas de mise à jour sauvage !</p>
</li>
<li>
<p>en cas de panne, on veut retrouver exactement le même environnement</p>
</li>
</ol>
<p>nix répond à cette problématique (exactement)</p>
`,raw:"",frontmatter:X,filepath:"/home/alex/notes/slides/bisonex.md",start:90,id:5,no:6},__clicksContext:null,__preloaded:!1}),ee=x({layout:"image-right",image:"/img/pullrequests.svg",backgroundSize:"100%"}),Do=x({layout:p(()=>ee.layout),transition:p(()=>ee.transition),class:p(()=>ee.class),clicks:p(()=>ee.clicks),name:p(()=>ee.name),preload:p(()=>ee.preload),slide:{index:6,content:"",note:"",title:"Reproductibilité",level:1,noteHTML:`<p>packaging<br>
Apport: appel de variant (gatk), annotation (vep), score d'épissage (spip),
2 outils important pour comparer les résultats à des réference</p>
<p>open-source
utilisable via un dépôt commun (nixpkgs)
processus long</p>
<p>actullement: spip vep et multiqc en attente</p>
`,raw:"",frontmatter:ee,filepath:"/home/alex/notes/slides/bisonex.md",start:125,id:6,no:7},__clicksContext:null,__preloaded:!1}),te=x({layout:"image-right",image:"/img/executors.png",backgroundSize:"85%"}),qo=x({layout:p(()=>te.layout),transition:p(()=>te.transition),class:p(()=>te.class),clicks:p(()=>te.clicks),name:p(()=>te.name),preload:p(()=>te.preload),slide:{index:7,content:"",note:"",title:"Portabilité",level:1,noteHTML:`<p>principe: définir chaque bloc de calcul dans un langage qui est indépendant de l'architecture.</p>
<p>En pratique, cela permet de répondre en partie au SH-GTA-16
"en cas d’incident perturbant l’exécution du pipeline ou le
transfert des fichiers ainsi que des procédures de récupération/sauvegarde des
données en cas de perte."
-> restart automatique depuis le dernier "bloc" exécuté</p>
<p>Et permet de s'exécuter sur de nombreuses architectures !</p>
`,raw:"",frontmatter:te,filepath:"/home/alex/notes/slides/bisonex.md",start:148,id:7,no:8},__clicksContext:null,__preloaded:!1}),ne=x({layout:"image-right",image:"/img/speedup.svg",backgroundSize:"100%"}),zo=x({layout:p(()=>ne.layout),transition:p(()=>ne.transition),class:p(()=>ne.class),clicks:p(()=>ne.clicks),name:p(()=>ne.name),preload:p(()=>ne.preload),slide:{index:8,content:"",note:"",title:"Performances",level:1,noteHTML:`<p>Application de nextflow sur supercalculateur</p>
<p>2 étapes les plus coûteuses = alignement, appel de variant
alignement = trivialement parallélisable
appel de variant = exploitation du processeur mais parallélisation non faite pour le moment</p>
<p>Pour donner une idée, 12h de calcul sur un portable</p>
`,raw:"",frontmatter:ne,filepath:"/home/alex/notes/slides/bisonex.md",start:177,id:8,no:9},__clicksContext:null,__preloaded:!1}),se=x({section:"Validation"}),Wo=x({layout:p(()=>se.layout),transition:p(()=>se.transition),class:p(()=>se.class),clicks:p(()=>se.clicks),name:p(()=>se.name),preload:p(()=>se.preload),slide:{index:9,content:"",note:"",title:"Validation",level:1,noteHTML:`<p>GIAB: séquencage de plusieurs patients, chacun sur plusieurs technologies.
définition de variants de référence sur des intervalles de confiance
permet de définir des vrais positifs, faux positifs, faux négatifs -> calcul de performance</p>
`,raw:"",frontmatter:se,filepath:"/home/alex/notes/slides/bisonex.md",start:200,id:9,no:10},__clicksContext:null,__preloaded:!1}),re=x({}),Vo=x({layout:p(()=>re.layout),transition:p(()=>re.transition),class:p(()=>re.class),clicks:p(()=>re.clicks),name:p(()=>re.name),preload:p(()=>re.preload),slide:{index:10,content:"",note:"",title:"Séquencage et pipeline",level:1,noteHTML:`<p>Bon résultats pour SNV (définir)
Indel: performances moindres, surtotu du à un nombre de faux positifs,
qui ne sont pas du à une discordance sur le gène ou l'allèe
Surtout des petites délitino 1-5bp</p>
`,raw:"",frontmatter:re,filepath:"/home/alex/notes/slides/bisonex.md",start:215,id:10,no:11},__clicksContext:null,__preloaded:!1}),oe=x({layout:"image-right",image:"/img/giab_both_run.svg",backgroundSize:"100%"}),Bo=x({layout:p(()=>oe.layout),transition:p(()=>oe.transition),class:p(()=>oe.class),clicks:p(()=>oe.clicks),name:p(()=>oe.name),preload:p(()=>oe.preload),slide:{index:11,content:"",note:"",title:"Pipeline",level:1,noteHTML:`<p>Ici pipeline seul
Données google intéressantes car nombreuses possibiliés (capture, séquenceur, patient). En résumé</p>
<p>Bisonex semble plus performant: impact du génome de réference (version avec ALT ?)
illuste problème de la reproductibilité</p>
`,raw:"",frontmatter:oe,filepath:"/home/alex/notes/slides/bisonex.md",start:238,id:11,no:12},__clicksContext:null,__preloaded:!1}),ie=x({layout:"image-right",image:"/img/varben.png",backgroundSize:"95%"}),Uo=x({layout:p(()=>ie.layout),transition:p(()=>ie.transition),class:p(()=>ie.class),clicks:p(()=>ie.clicks),name:p(()=>ie.name),preload:p(()=>ie.preload),slide:{index:12,content:"",note:"",title:"In silico",level:1,noteHTML:`<p>13 homozygotes classifiés hétérozygotes</p>
`,raw:"",frontmatter:ie,filepath:"/home/alex/notes/slides/bisonex.md",start:259,id:12,no:13},__clicksContext:null,__preloaded:!1}),ae=x({}),Yo=x({layout:p(()=>ae.layout),transition:p(()=>ae.transition),class:p(()=>ae.class),clicks:p(()=>ae.clicks),name:p(()=>ae.name),preload:p(()=>ae.preload),slide:{index:13,content:"",note:"",title:"In silico",level:1,noteHTML:`<p>7 étiquetés htz au lieu d'hmz</p>
`,raw:"",frontmatter:ae,filepath:"/home/alex/notes/slides/bisonex.md",start:276,id:13,no:14},__clicksContext:null,__preloaded:!1}),le=x({section:"Réinterprétation"}),Go=x({layout:p(()=>le.layout),transition:p(()=>le.transition),class:p(()=>le.class),clicks:p(()=>le.clicks),name:p(()=>le.name),preload:p(()=>le.preload),slide:{index:14,content:"",note:"",title:"Non-infériorité",level:1,noteHTML:"",raw:"",frontmatter:le,filepath:"/home/alex/notes/slides/bisonex.md",start:291,id:14,no:15},__clicksContext:null,__preloaded:!1}),ce=x({}),Ko=x({layout:p(()=>ce.layout),transition:p(()=>ce.transition),class:p(()=>ce.class),clicks:p(()=>ce.clicks),name:p(()=>ce.name),preload:p(()=>ce.preload),slide:{index:15,content:"",note:"",title:"Nouveaux diagnostics",level:1,noteHTML:"",raw:"",frontmatter:ce,filepath:"/home/alex/notes/slides/bisonex.md",start:297,id:15,no:16},__clicksContext:null,__preloaded:!1}),Zo=[{no:1,meta:Io,component:async()=>{try{return await T(()=>import("./1-Wee-eZMt.js"),__vite__mapDeps([0,1,2,3,4]))}catch(t){return console.error("Failed to load slide 1:",t),O}}},{no:2,meta:Ro,component:async()=>{try{return await T(()=>import("./slidev/2-Cx3h844I.js"),__vite__mapDeps([5,1,6,2,3,4]))}catch(t){return console.error("Failed to load slide 2:",t),O}}},{no:3,meta:Fo,component:async()=>{try{return await T(()=>import("./slidev/3-BImWE7hr.js"),__vite__mapDeps([7,1,6,2,3,4]))}catch(t){return console.error("Failed to load slide 3:",t),O}}},{no:4,meta:Ho,component:async()=>{try{return await T(()=>import("./slidev/4-Cwa14HvN.js"),__vite__mapDeps([8,9,1,10,2,11,3,4]))}catch(t){return console.error("Failed to load slide 4:",t),O}}},{no:5,meta:No,component:async()=>{try{return await T(()=>import("./slidev/5-BKiUV7YW.js").then(t=>t.b9),__vite__mapDeps([12,1,13,6,2]))}catch(t){return console.error("Failed to load slide 5:",t),O}}},{no:6,meta:jo,component:async()=>{try{return await T(()=>import("./slidev/6-a1-Txnm7.js"),__vite__mapDeps([14,10,1,2,9,11,3,4]))}catch(t){return console.error("Failed to load slide 6:",t),O}}},{no:7,meta:Do,component:async()=>{try{return await T(()=>import("./slidev/7-DAqIpyyW.js"),__vite__mapDeps([15,1,11,2,3,4]))}catch(t){return console.error("Failed to load slide 7:",t),O}}},{no:8,meta:qo,component:async()=>{try{return await T(()=>import("./slidev/8-ef_RKkJr.js"),__vite__mapDeps([16,10,1,2,11,3,4]))}catch(t){return console.error("Failed to load slide 8:",t),O}}},{no:9,meta:zo,component:async()=>{try{return await T(()=>import("./slidev/9-BwiyO0dv.js"),__vite__mapDeps([17,1,11,2,3,4]))}catch(t){return console.error("Failed to load slide 9:",t),O}}},{no:10,meta:Wo,component:async()=>{try{return await T(()=>import("./slidev/10-DEiP_Nol.js"),__vite__mapDeps([18,1,6,2,3,4]))}catch(t){return console.error("Failed to load slide 10:",t),O}}},{no:11,meta:Vo,component:async()=>{try{return await T(()=>import("./slidev/11-rOVw0aI_.js"),__vite__mapDeps([19,1,6,2,3,4]))}catch(t){return console.error("Failed to load slide 11:",t),O}}},{no:12,meta:Bo,component:async()=>{try{return await T(()=>import("./slidev/12-CWoJeBQC.js"),__vite__mapDeps([20,1,11,2,3,4]))}catch(t){return console.error("Failed to load slide 12:",t),O}}},{no:13,meta:Uo,component:async()=>{try{return await T(()=>import("./slidev/13-CyjasQcB.js"),__vite__mapDeps([21,1,11,2,3,4]))}catch(t){return console.error("Failed to load slide 13:",t),O}}},{no:14,meta:Yo,component:async()=>{try{return await T(()=>import("./slidev/14-TxaF5e5I.js"),__vite__mapDeps([22,1,6,2,3,4]))}catch(t){return console.error("Failed to load slide 14:",t),O}}},{no:15,meta:Go,component:async()=>{try{return await T(()=>import("./slidev/15-DO3P5bdF.js"),__vite__mapDeps([23,1,6,2,3,4]))}catch(t){return console.error("Failed to load slide 15:",t),O}}},{no:16,meta:Ko,component:async()=>{try{return await T(()=>import("./slidev/16-CMsMuh1c.js"),__vite__mapDeps([24,1,6,2,3,4]))}catch(t){return console.error("Failed to load slide 16:",t),O}}}],q=Qt(Zo);function Oe(t){return q.value.find(e=>{var n;return e.no===+t||((n=e.meta.slide)==null?void 0:n.frontmatter.routeAlias)===t})}function Be(t,e){var s;(typeof t=="number"||typeof t=="string")&&(t=Oe(t));const n=((s=t.meta.slide)==null?void 0:s.frontmatter.routeAlias)??t.no;return e?`/presenter/${n}`:`/${n}`}function Jo(t,e,{mode:n="replace"}={}){const s=Ke();return p({get(){const r=s.currentRoute.value.query[t];return r==null?e??null:Array.isArray(r)?r.filter(Boolean):r},set(r){qe(()=>{(s.currentRoute.value.query[t]??(e==null?void 0:e.toString()))!==r.toString()&&s[_t(n)]({query:{...s.currentRoute.value.query,[t]:`${r}`===e?void 0:r}})})}})}const ft=C(0);function mn(t,e=0,n){const s=new Map,r=Dn(new Map);return{get current(){return Pe(+t.value,e,this.total)},set current(o){t.value=Pe(+o,e,this.total)},clicksStart:e,relativeOffsets:s,map:r,onMounted(){},resolve(o,i=1){const[a,l]=Po(o);if(a){const c=this.currentOffset;return{start:c+l,end:c+l+i-1,delta:l+i-1}}else return{start:l,end:l+i-1,delta:0}},register(o,i){s.set(o,i.delta),r.set(o,i)},unregister(o){s.delete(o),r.delete(o)},get currentOffset(){return ft.value,es(...s.values())},get total(){return ft.value,n??Math.max(0,...[...r.values()].map(o=>o.max||0))}}}function Qo(t,e=0){var s,r;const n=((s=t==null?void 0:t.meta.slide)==null?void 0:s.frontmatter.clicksStart)??0;return mn(C(Math.max(e,n)),n,(r=t==null?void 0:t.meta)==null?void 0:r.clicks)}const Nt=qn(),nt=zn("slidev-color-schema","auto"),jt=p(()=>A.colorSchema!=="auto"),gn=p({get(){return jt.value?A.colorSchema==="dark":nt.value==="auto"?Nt.value:nt.value==="dark"},set(t){jt.value||(nt.value=t===Nt.value?"auto":t?"dark":"light")}}),da=Wn(gn);Vn&&ye(gn,t=>{const e=document.querySelector("html");e.classList.toggle("dark",t),e.classList.toggle("light",!t)},{immediate:!0});const Xo={"slide-left":"slide-left | slide-right","slide-right":"slide-right | slide-left","slide-up":"slide-up | slide-down","slide-down":"slide-down | slide-up"};function ei(t,e=!1){if(!t||(typeof t=="string"&&(t={name:t}),!t.name))return;let n=t.name.includes("|")?t.name:Xo[t.name]||t.name;if(n.includes("|")){const[s,r]=n.split("|").map(o=>o.trim());n=e?r:s}if(n)return{...t,name:n}}function ti(t,e,n){var r,o;let s=t>0?(r=n==null?void 0:n.meta)==null?void 0:r.transition:(o=e==null?void 0:e.meta)==null?void 0:o.transition;return s||(s=A.transition),ei(s,t<0)}function vn(t,e,n=1){var r,o,i,a,l,c,u,f,h;const s=(o=(r=e.meta)==null?void 0:r.slide)==null?void 0:o.level;s&&s>n&&t.length>0?vn(t[t.length-1].children,e,n+1):t.push({no:e.no,children:[],level:n,path:Be(((a=(i=e.meta.slide)==null?void 0:i.frontmatter)==null?void 0:a.routeAlias)??e.no,!1),hideInToc:!!((u=(c=(l=e.meta)==null?void 0:l.slide)==null?void 0:c.frontmatter)!=null&&u.hideInToc),title:(h=(f=e.meta)==null?void 0:f.slide)==null?void 0:h.title})}function yn(t,e,n=!1,s,r){return t.map(o=>{const i={...o,active:o.no===(r==null?void 0:r.value),hasActiveParent:n};return i.children.length>0&&(i.children=yn(i.children,e,i.active||i.hasActiveParent,i,r)),s&&(i.active||i.activeParent)&&(s.activeParent=!0),i})}function _n(t,e=1){return t.filter(n=>!n.hideInToc).map(n=>({...n,children:_n(n.children,e+1)}))}function ni(t,e,n){const s=p(()=>t.value.filter(o=>{var i,a;return(a=(i=o.meta)==null?void 0:i.slide)==null?void 0:a.title}).reduce((o,i)=>(vn(o,i),o),[])),r=p(()=>yn(s.value,n.value,void 0,void 0,e));return p(()=>_n(r.value))}function kn(t,e,n=C(0),s,r,o){const i=p(()=>q.value.length),a=C(0),l=C(0),c=p(()=>Be(t.value,s.value)),u=p(()=>t.value.no),f=p(()=>{var w;return((w=t.value.meta)==null?void 0:w.layout)||(u.value===1?"cover":"default")}),h=p(()=>e.value.current),d=p(()=>e.value.clicksStart),m=p(()=>e.value.total),g=p(()=>q.value[Math.min(q.value.length,u.value+1)-1]),y=p(()=>q.value[Math.max(1,u.value-1)-1]),v=p(()=>u.value<q.value.length||h.value<m.value),k=p(()=>u.value>1||h.value>0),b=p(()=>ti(a.value,t.value,y.value));ye(t,(w,S)=>{a.value=w.no-S.no});async function M(w){return!1}const I=ni(q,u,t);async function z(){l.value=1,m.value<=n.value?await W():n.value+=1}async function pe(){l.value=-1,n.value<=d.value?await V():n.value-=1}async function W(){l.value=1,u.value<q.value.length&&await P(u.value+1)}async function V(w=!0){var B,N;l.value=-1;const S=Math.max(1,u.value-1);await P(S,w?r.value?void 0:((N=(B=Oe(S))==null?void 0:B.meta.__clicksContext)==null?void 0:N.total)??Ve:void 0)}function Ce(){return P(1)}function Le(){return P(i.value)}async function P(w,S=0){var $e,_e,Tt;cn.value=!1;const B=u.value!==w,N=S!==n.value,D=($e=Oe(w))==null?void 0:$e.meta,Je=((_e=D==null?void 0:D.slide)==null?void 0:_e.frontmatter.clicksStart)??0;S=Pe(S,Je,((Tt=D==null?void 0:D.__clicksContext)==null?void 0:Tt.total)??Ve),(B||N)&&await(o==null?void 0:o.push({path:Be(w,s.value),query:{...o.currentRoute.value.query,clicks:S===0?void 0:S.toString()}}))}return{slides:q,total:i,currentPath:c,currentSlideNo:u,currentPage:u,currentSlideRoute:t,currentLayout:f,currentTransition:b,clicksDirection:l,nextRoute:g,prevRoute:y,clicksContext:e,clicks:h,clicksStart:d,clicksTotal:m,hasNext:v,hasPrev:k,tocTree:I,navDirection:a,openInEditor:M,next:z,prev:pe,go:P,goLast:Le,goFirst:Ce,nextSlide:W,prevSlide:V}}function pa(t,e){const n=async()=>{};return{...kn(p(()=>t),p(()=>e),C(Ve),C(!1),C(!1)),next:n,prev:n,nextSlide:n,prevSlide:n,goFirst:n,goLast:n,go:n}}const si=Xt(()=>{const t=Ke(),e=p(()=>t.currentRoute.value),n=p(()=>(t.currentRoute.value.query,new URLSearchParams(location.search))),s=p(()=>n.value.has("print")),r=p(()=>n.value.get("print")==="clicks"),o=p(()=>n.value.has("embedded")),i=p(()=>e.value.name==="play"),a=p(()=>e.value.name==="presenter"),l=p(()=>e.value.name==="notes"),c=p(()=>!a.value&&(!A.remote||n.value.get("password")===A.remote)),u=Bn(i,a),f=p(()=>{var v;return u.value?((v=Oe(e.value.params.no))==null?void 0:v.no)??1:1}),h=p(()=>q.value[f.value-1]),d=Jo("clicks","0"),m=p(()=>y(h.value)),g=p({get(){let v=+(d.value||0);return Number.isNaN(v)&&(v=0),v},set(v){d.value=v.toString()}});function y(v){var M,I;if((M=v==null?void 0:v.meta)!=null&&M.__clicksContext)return v.meta.__clicksContext;const k=v.no,b=mn(p({get(){return f.value===k?Math.max(+(d.value??0),b.clicksStart):f.value>k?Ve:b.clicksStart},set(z){f.value===k&&(d.value=Pe(z,b.clicksStart,b.total).toString())}}),((I=v==null?void 0:v.meta.slide)==null?void 0:I.frontmatter.clicksStart)??0,v==null?void 0:v.meta.clicks);return b.onMounted=()=>{f.value===k&&(d.value=Pe(+d.value,b.clicksStart,b.total).toString())},v!=null&&v.meta&&(v.meta.__clicksContext=b),b}return{router:t,currentRoute:e,isPrintMode:s,isPrintWithClicks:r,isEmbedded:o,isPlaying:i,isPresenter:a,isNotesViewer:l,isPresenterAvailable:c,hasPrimarySlide:u,currentSlideNo:f,currentSlideRoute:h,clicksContext:m,queryClicksRaw:d,queryClicks:g,getPrimaryClicks:y}}),Dt=Xt(()=>{const t=si(),e=Ke(),n=kn(t.currentSlideRoute,t.clicksContext,t.queryClicks,t.isPresenter,t.isPrintMode,e);return ye([n.total,t.currentRoute],async()=>{t.hasPrimarySlide.value&&!Oe(t.currentRoute.value.params.no)&&await n.goLast()},{flush:"pre",immediate:!0}),{...n,...t}}),ri=[];function oi(){const t=Zt().appContext.app,e=x({nav:Dt(),configs:A,themeConfigs:p(()=>A.themeConfig)});t.provide(or,C("none")),t.provide(rr,e),t.provide(sr,p(()=>e.nav.currentSlideNo)),t.provide(bt,Qt(Qo()));for(const f of ri)f();const n=A.titleTemplate.replace("%s",A.title||"Slidev"),{clicksContext:s,currentSlideNo:r,hasPrimarySlide:o,isNotesViewer:i,isPresenter:a}=Dt();Gs({title:n,htmlAttrs:A.htmlAttrs}),Qs(`${n} - shared`),nr(`${n} - drawings`);const l=`${location.origin}_${To()}`;function c(){i.value||!a.value&&!ir.includes(location.host.split(":")[0])||(a.value?(ke("page",+r.value),ke("clicks",s.value.current)):(ke("viewerPage",+r.value),ke("viewerClicks",s.value.current)),ke("lastUpdate",{id:l,type:a.value?"presenter":"viewer",time:new Date().getTime()}))}const u=Ke();u.afterEach(c),ye(s,c),Xs(f=>{var h;o.value&&((h=f.lastUpdate)==null?void 0:h.type)==="presenter"&&(+f.page!=+r.value||+s.value.current!=+f.clicks)&&(cn.value=!1,u.replace({path:Be(f.page,a.value),query:{...u.currentRoute.value.query,clicks:f.clicks||0}}))})}const ii=Un({__name:"App",setup(t){return oi(),ve(()=>{for(const[e,n]of Object.entries(as.value))document.body.style.setProperty(e,n.toString())}),(e,n)=>{const s=Yn("RouterView");return Jt(),Gn(s)}}}),ai=pn(ii,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/App.vue"]]);function bn(t,e,n){var s;return((s=t.instance)==null?void 0:s.$).provides[e]??n}function li(){return{install(t){t.directive("click",{name:"v-click",mounted(e,n){const s=je(e,n,n.value);if(s==null)return;e.classList.toggle(Ne,!0);const r=Array.isArray(s.clicks)?s.clicks:[s.clicks,void 0];e.dataset.slidevClicksStart=String(r[0]),r[1]!=null&&(e.dataset.slidevClicksEnd=String(r[1])),ve(()=>{const o=s.isActive.value,i=s.isCurrent.value,a=o&&!i;s.flagHide?(e.classList.toggle(s.flagFade?xe:be,o),e.classList.toggle(Xe,o)):e.classList.toggle(s.flagFade?xe:be,!o),e.classList.toggle(et,i),e.classList.toggle(tt,a)})},unmounted:rt}),t.directive("after",{name:"v-after",mounted(e,n){const s=je(e,n,n.value,!0);s!=null&&(e.classList.toggle(Ne,!0),ve(()=>{const r=s.isActive.value,o=s.isCurrent.value,i=r&&!o;s.flagHide?(e.classList.toggle(s.flagFade?xe:be,r),e.classList.toggle(Xe,r)):e.classList.toggle(s.flagFade?xe:be,!r),e.classList.toggle(et,o),e.classList.toggle(tt,i)}))},unmounted:rt}),t.directive("click-hide",{name:"v-click-hide",mounted(e,n){const s=je(e,n,n.value,!1,!0);s!=null&&(e.classList.toggle(Ne,!0),ve(()=>{const r=s.isActive.value,o=s.isCurrent.value,i=r&&!o;e.classList.toggle(s.flagFade?xe:be,r),e.classList.toggle(Xe,r),e.classList.toggle(et,o),e.classList.toggle(tt,i)}))},unmounted:rt})}}}function st(t,e){return Array.isArray(t)?t[0]<=e&&e<t[1]:t<=e}function ci(t,e){return Array.isArray(t)?t[0]===e:t===e}function je(t,e,n,s=!1,r=!1){var f;const o=(f=bn(e,bt))==null?void 0:f.value;if(!t||!o||n===!1||n==="false")return null;r||(r=e.modifiers.hide!==!1&&e.modifiers.hide!=null);const i=e.modifiers.fade!==!1&&e.modifiers.fade!=null;s?n="+0":(n==null||n===!0||n==="true")&&(n="+1");let a,l,c;Array.isArray(n)?(a=0,l=n,c=+n[1]):{start:l,end:c,delta:a}=o.resolve(n);const u={max:c,clicks:l,delta:a,isActive:p(()=>st(l,o.current)),isCurrent:p(()=>ci(l,o.current)),isShown:p(()=>r?!st(l,o.current):st(l,o.current)),flagFade:i,flagHide:r};return o.register(t,u),u}function rt(t,e){var s;t.classList.toggle(Ne,!1);const n=(s=bn(e,bt))==null?void 0:s.value;n==null||n.unregister(t)}function xn(){return Math.floor(Math.random()*2**31)}class ui{constructor(e){this.seed=e}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}}function ht(t,e,n){if(t&&t.length){const[s,r]=e,o=Math.PI/180*n,i=Math.cos(o),a=Math.sin(o);for(const l of t){const[c,u]=l;l[0]=(c-s)*i-(u-r)*a+s,l[1]=(c-s)*a+(u-r)*i+r}}}function fi(t,e,n){const s=[];t.forEach(r=>s.push(...r)),ht(s,e,n)}function hi(t,e){return t[0]===e[0]&&t[1]===e[1]}function di(t,e,n,s=1){const r=n,o=Math.max(e,.1),i=t[0]&&t[0][0]&&typeof t[0][0]=="number"?[t]:t,a=[0,0];if(r)for(const c of i)ht(c,a,r);const l=pi(i,o,s);if(r){for(const c of i)ht(c,a,-r);fi(l,a,-r)}return l}function pi(t,e,n){const s=[];for(const c of t){const u=[...c];hi(u[0],u[u.length-1])||u.push([u[0][0],u[0][1]]),u.length>2&&s.push(u)}const r=[];e=Math.max(e,.1);const o=[];for(const c of s)for(let u=0;u<c.length-1;u++){const f=c[u],h=c[u+1];if(f[1]!==h[1]){const d=Math.min(f[1],h[1]);o.push({ymin:d,ymax:Math.max(f[1],h[1]),x:d===f[1]?f[0]:h[0],islope:(h[0]-f[0])/(h[1]-f[1])})}}if(o.sort((c,u)=>c.ymin<u.ymin?-1:c.ymin>u.ymin?1:c.x<u.x?-1:c.x>u.x?1:c.ymax===u.ymax?0:(c.ymax-u.ymax)/Math.abs(c.ymax-u.ymax)),!o.length)return r;let i=[],a=o[0].ymin,l=0;for(;i.length||o.length;){if(o.length){let c=-1;for(let f=0;f<o.length&&!(o[f].ymin>a);f++)c=f;o.splice(0,c+1).forEach(f=>{i.push({s:a,edge:f})})}if(i=i.filter(c=>!(c.edge.ymax<=a)),i.sort((c,u)=>c.edge.x===u.edge.x?0:(c.edge.x-u.edge.x)/Math.abs(c.edge.x-u.edge.x)),(n!==1||l%e===0)&&i.length>1)for(let c=0;c<i.length;c=c+2){const u=c+1;if(u>=i.length)break;const f=i[c].edge,h=i[u].edge;r.push([[Math.round(f.x),a],[Math.round(h.x),a]])}a+=n,i.forEach(c=>{c.edge.x=c.edge.x+n*c.edge.islope}),l++}return r}function Ee(t,e){var n;const s=e.hachureAngle+90;let r=e.hachureGap;r<0&&(r=e.strokeWidth*4),r=Math.round(Math.max(r,.1));let o=1;return e.roughness>=1&&(((n=e.randomizer)===null||n===void 0?void 0:n.next())||Math.random())>.7&&(o=r),di(t,r,s,o||1)}class Mt{constructor(e){this.helper=e}fillPolygons(e,n){return this._fillPolygons(e,n)}_fillPolygons(e,n){const s=Ee(e,n);return{type:"fillSketch",ops:this.renderLines(s,n)}}renderLines(e,n){const s=[];for(const r of e)s.push(...this.helper.doubleLineOps(r[0][0],r[0][1],r[1][0],r[1][1],n));return s}}function Ze(t){const e=t[0],n=t[1];return Math.sqrt(Math.pow(e[0]-n[0],2)+Math.pow(e[1]-n[1],2))}class mi extends Mt{fillPolygons(e,n){let s=n.hachureGap;s<0&&(s=n.strokeWidth*4),s=Math.max(s,.1);const r=Object.assign({},n,{hachureGap:s}),o=Ee(e,r),i=Math.PI/180*n.hachureAngle,a=[],l=s*.5*Math.cos(i),c=s*.5*Math.sin(i);for(const[f,h]of o)Ze([f,h])&&a.push([[f[0]-l,f[1]+c],[...h]],[[f[0]+l,f[1]-c],[...h]]);return{type:"fillSketch",ops:this.renderLines(a,n)}}}class gi extends Mt{fillPolygons(e,n){const s=this._fillPolygons(e,n),r=Object.assign({},n,{hachureAngle:n.hachureAngle+90}),o=this._fillPolygons(e,r);return s.ops=s.ops.concat(o.ops),s}}class vi{constructor(e){this.helper=e}fillPolygons(e,n){n=Object.assign({},n,{hachureAngle:0});const s=Ee(e,n);return this.dotsOnLines(s,n)}dotsOnLines(e,n){const s=[];let r=n.hachureGap;r<0&&(r=n.strokeWidth*4),r=Math.max(r,.1);let o=n.fillWeight;o<0&&(o=n.strokeWidth/2);const i=r/4;for(const a of e){const l=Ze(a),c=l/r,u=Math.ceil(c)-1,f=l-u*r,h=(a[0][0]+a[1][0])/2-r/4,d=Math.min(a[0][1],a[1][1]);for(let m=0;m<u;m++){const g=d+f+m*r,y=h-i+Math.random()*2*i,v=g-i+Math.random()*2*i,k=this.helper.ellipse(y,v,o,o,n);s.push(...k.ops)}}return{type:"fillSketch",ops:s}}}class yi{constructor(e){this.helper=e}fillPolygons(e,n){const s=Ee(e,n);return{type:"fillSketch",ops:this.dashedLine(s,n)}}dashedLine(e,n){const s=n.dashOffset<0?n.hachureGap<0?n.strokeWidth*4:n.hachureGap:n.dashOffset,r=n.dashGap<0?n.hachureGap<0?n.strokeWidth*4:n.hachureGap:n.dashGap,o=[];return e.forEach(i=>{const a=Ze(i),l=Math.floor(a/(s+r)),c=(a+r-l*(s+r))/2;let u=i[0],f=i[1];u[0]>f[0]&&(u=i[1],f=i[0]);const h=Math.atan((f[1]-u[1])/(f[0]-u[0]));for(let d=0;d<l;d++){const m=d*(s+r),g=m+s,y=[u[0]+m*Math.cos(h)+c*Math.cos(h),u[1]+m*Math.sin(h)+c*Math.sin(h)],v=[u[0]+g*Math.cos(h)+c*Math.cos(h),u[1]+g*Math.sin(h)+c*Math.sin(h)];o.push(...this.helper.doubleLineOps(y[0],y[1],v[0],v[1],n))}}),o}}class _i{constructor(e){this.helper=e}fillPolygons(e,n){const s=n.hachureGap<0?n.strokeWidth*4:n.hachureGap,r=n.zigzagOffset<0?s:n.zigzagOffset;n=Object.assign({},n,{hachureGap:s+r});const o=Ee(e,n);return{type:"fillSketch",ops:this.zigzagLines(o,r,n)}}zigzagLines(e,n,s){const r=[];return e.forEach(o=>{const i=Ze(o),a=Math.round(i/(2*n));let l=o[0],c=o[1];l[0]>c[0]&&(l=o[1],c=o[0]);const u=Math.atan((c[1]-l[1])/(c[0]-l[0]));for(let f=0;f<a;f++){const h=f*2*n,d=(f+1)*2*n,m=Math.sqrt(2*Math.pow(n,2)),g=[l[0]+h*Math.cos(u),l[1]+h*Math.sin(u)],y=[l[0]+d*Math.cos(u),l[1]+d*Math.sin(u)],v=[g[0]+m*Math.cos(u+Math.PI/4),g[1]+m*Math.sin(u+Math.PI/4)];r.push(...this.helper.doubleLineOps(g[0],g[1],v[0],v[1],s),...this.helper.doubleLineOps(v[0],v[1],y[0],y[1],s))}}),r}}const L={};function ki(t,e){let n=t.fillStyle||"hachure";if(!L[n])switch(n){case"zigzag":L[n]||(L[n]=new mi(e));break;case"cross-hatch":L[n]||(L[n]=new gi(e));break;case"dots":L[n]||(L[n]=new vi(e));break;case"dashed":L[n]||(L[n]=new yi(e));break;case"zigzag-line":L[n]||(L[n]=new _i(e));break;case"hachure":default:n="hachure",L[n]||(L[n]=new Mt(e));break}return L[n]}const bi=0,dt=1,wn=2,Ie={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};function xi(t){const e=new Array;for(;t!=="";)if(t.match(/^([ \t\r\n,]+)/))t=t.substr(RegExp.$1.length);else if(t.match(/^([aAcChHlLmMqQsStTvVzZ])/))e[e.length]={type:bi,text:RegExp.$1},t=t.substr(RegExp.$1.length);else if(t.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))e[e.length]={type:dt,text:`${parseFloat(RegExp.$1)}`},t=t.substr(RegExp.$1.length);else return[];return e[e.length]={type:wn,text:""},e}function ot(t,e){return t.type===e}function St(t){const e=[],n=xi(t);let s="BOD",r=0,o=n[r];for(;!ot(o,wn);){let i=0;const a=[];if(s==="BOD")if(o.text==="M"||o.text==="m")r++,i=Ie[o.text],s=o.text;else return St("M0,0"+t);else ot(o,dt)?i=Ie[s]:(r++,i=Ie[o.text],s=o.text);if(r+i<n.length){for(let l=r;l<r+i;l++){const c=n[l];if(ot(c,dt))a[a.length]=+c.text;else throw new Error("Param not a number: "+s+","+c.text)}if(typeof Ie[s]=="number"){const l={key:s,data:a};e.push(l),r+=i,o=n[r],s==="M"&&(s="L"),s==="m"&&(s="l")}else throw new Error("Bad segment: "+s)}else throw new Error("Path data ended short")}return e}function Mn(t){let e=0,n=0,s=0,r=0;const o=[];for(const{key:i,data:a}of t)switch(i){case"M":o.push({key:"M",data:[...a]}),[e,n]=a,[s,r]=a;break;case"m":e+=a[0],n+=a[1],o.push({key:"M",data:[e,n]}),s=e,r=n;break;case"L":o.push({key:"L",data:[...a]}),[e,n]=a;break;case"l":e+=a[0],n+=a[1],o.push({key:"L",data:[e,n]});break;case"C":o.push({key:"C",data:[...a]}),e=a[4],n=a[5];break;case"c":{const l=a.map((c,u)=>u%2?c+n:c+e);o.push({key:"C",data:l}),e=l[4],n=l[5];break}case"Q":o.push({key:"Q",data:[...a]}),e=a[2],n=a[3];break;case"q":{const l=a.map((c,u)=>u%2?c+n:c+e);o.push({key:"Q",data:l}),e=l[2],n=l[3];break}case"A":o.push({key:"A",data:[...a]}),e=a[5],n=a[6];break;case"a":e+=a[5],n+=a[6],o.push({key:"A",data:[a[0],a[1],a[2],a[3],a[4],e,n]});break;case"H":o.push({key:"H",data:[...a]}),e=a[0];break;case"h":e+=a[0],o.push({key:"H",data:[e]});break;case"V":o.push({key:"V",data:[...a]}),n=a[0];break;case"v":n+=a[0],o.push({key:"V",data:[n]});break;case"S":o.push({key:"S",data:[...a]}),e=a[2],n=a[3];break;case"s":{const l=a.map((c,u)=>u%2?c+n:c+e);o.push({key:"S",data:l}),e=l[2],n=l[3];break}case"T":o.push({key:"T",data:[...a]}),e=a[0],n=a[1];break;case"t":e+=a[0],n+=a[1],o.push({key:"T",data:[e,n]});break;case"Z":case"z":o.push({key:"Z",data:[]}),e=s,n=r;break}return o}function Sn(t){const e=[];let n="",s=0,r=0,o=0,i=0,a=0,l=0;for(const{key:c,data:u}of t){switch(c){case"M":e.push({key:"M",data:[...u]}),[s,r]=u,[o,i]=u;break;case"C":e.push({key:"C",data:[...u]}),s=u[4],r=u[5],a=u[2],l=u[3];break;case"L":e.push({key:"L",data:[...u]}),[s,r]=u;break;case"H":s=u[0],e.push({key:"L",data:[s,r]});break;case"V":r=u[0],e.push({key:"L",data:[s,r]});break;case"S":{let f=0,h=0;n==="C"||n==="S"?(f=s+(s-a),h=r+(r-l)):(f=s,h=r),e.push({key:"C",data:[f,h,...u]}),a=u[0],l=u[1],s=u[2],r=u[3];break}case"T":{const[f,h]=u;let d=0,m=0;n==="Q"||n==="T"?(d=s+(s-a),m=r+(r-l)):(d=s,m=r);const g=s+2*(d-s)/3,y=r+2*(m-r)/3,v=f+2*(d-f)/3,k=h+2*(m-h)/3;e.push({key:"C",data:[g,y,v,k,f,h]}),a=d,l=m,s=f,r=h;break}case"Q":{const[f,h,d,m]=u,g=s+2*(f-s)/3,y=r+2*(h-r)/3,v=d+2*(f-d)/3,k=m+2*(h-m)/3;e.push({key:"C",data:[g,y,v,k,d,m]}),a=f,l=h,s=d,r=m;break}case"A":{const f=Math.abs(u[0]),h=Math.abs(u[1]),d=u[2],m=u[3],g=u[4],y=u[5],v=u[6];f===0||h===0?(e.push({key:"C",data:[s,r,y,v,y,v]}),s=y,r=v):(s!==y||r!==v)&&(Tn(s,r,y,v,f,h,d,m,g).forEach(function(b){e.push({key:"C",data:b})}),s=y,r=v);break}case"Z":e.push({key:"Z",data:[]}),s=o,r=i;break}n=c}return e}function wi(t){return Math.PI*t/180}function we(t,e,n){const s=t*Math.cos(n)-e*Math.sin(n),r=t*Math.sin(n)+e*Math.cos(n);return[s,r]}function Tn(t,e,n,s,r,o,i,a,l,c){const u=wi(i);let f=[],h=0,d=0,m=0,g=0;if(c)[h,d,m,g]=c;else{[t,e]=we(t,e,-u),[n,s]=we(n,s,-u);const P=(t-n)/2,w=(e-s)/2;let S=P*P/(r*r)+w*w/(o*o);S>1&&(S=Math.sqrt(S),r=S*r,o=S*o);const B=a===l?-1:1,N=r*r,D=o*o,Je=N*D-N*w*w-D*P*P,$e=N*w*w+D*P*P,_e=B*Math.sqrt(Math.abs(Je/$e));m=_e*r*w/o+(t+n)/2,g=_e*-o*P/r+(e+s)/2,h=Math.asin(parseFloat(((e-g)/o).toFixed(9))),d=Math.asin(parseFloat(((s-g)/o).toFixed(9))),t<m&&(h=Math.PI-h),n<m&&(d=Math.PI-d),h<0&&(h=Math.PI*2+h),d<0&&(d=Math.PI*2+d),l&&h>d&&(h=h-Math.PI*2),!l&&d>h&&(d=d-Math.PI*2)}let y=d-h;if(Math.abs(y)>Math.PI*120/180){const P=d,w=n,S=s;l&&d>h?d=h+Math.PI*120/180*1:d=h+Math.PI*120/180*-1,n=m+r*Math.cos(d),s=g+o*Math.sin(d),f=Tn(n,s,w,S,r,o,i,0,l,[d,P,m,g])}y=d-h;const v=Math.cos(h),k=Math.sin(h),b=Math.cos(d),M=Math.sin(d),I=Math.tan(y/4),z=4/3*r*I,pe=4/3*o*I,W=[t,e],V=[t+z*k,e-pe*v],Ce=[n+z*M,s-pe*b],Le=[n,s];if(V[0]=2*W[0]-V[0],V[1]=2*W[1]-V[1],c)return[V,Ce,Le].concat(f);{f=[V,Ce,Le].concat(f);const P=[];for(let w=0;w<f.length;w+=3){const S=we(f[w][0],f[w][1],u),B=we(f[w+1][0],f[w+1][1],u),N=we(f[w+2][0],f[w+2][1],u);P.push([S[0],S[1],B[0],B[1],N[0],N[1]])}return P}}const Mi={randOffset:Pi,randOffsetWithRange:Ai,ellipse:pt,doubleLineOps:Oi};function F(t,e,n,s,r){return{type:"path",ops:Y(t,e,n,s,r)}}function Se(t,e,n){const s=(t||[]).length;if(s>2){const r=[];for(let o=0;o<s-1;o++)r.push(...Y(t[o][0],t[o][1],t[o+1][0],t[o+1][1],n));return e&&r.push(...Y(t[s-1][0],t[s-1][1],t[0][0],t[0][1],n)),{type:"path",ops:r}}else if(s===2)return F(t[0][0],t[0][1],t[1][0],t[1][1],n);return{type:"path",ops:[]}}function Si(t,e){return Se(t,!0,e)}function Pn(t,e,n,s,r){const o=[[t,e],[t+n,e],[t+n,e+s],[t,e+s]];return Si(o,r)}function qt(t,e){if(t.length){const s=typeof t[0][0]=="number"?[t]:t,r=Re(s[0],1*(1+e.roughness*.2),e),o=e.disableMultiStroke?[]:Re(s[0],1.5*(1+e.roughness*.22),Vt(e));for(let i=1;i<s.length;i++){const a=s[i];if(a.length){const l=Re(a,1*(1+e.roughness*.2),e),c=e.disableMultiStroke?[]:Re(a,1.5*(1+e.roughness*.22),Vt(e));for(const u of l)u.op!=="move"&&r.push(u);for(const u of c)u.op!=="move"&&o.push(u)}}return{type:"path",ops:r.concat(o)}}return{type:"path",ops:[]}}function pt(t,e,n,s,r){const o=An(n,s,r);return mt(t,e,r,o).opset}function An(t,e,n){const s=Math.sqrt(Math.PI*2*Math.sqrt((Math.pow(t/2,2)+Math.pow(e/2,2))/2)),r=Math.ceil(Math.max(n.curveStepCount,n.curveStepCount/Math.sqrt(200)*s)),o=Math.PI*2/r;let i=Math.abs(t/2),a=Math.abs(e/2);const l=1-n.curveFitting;return i+=_(i*l,n),a+=_(a*l,n),{increment:o,rx:i,ry:a}}function mt(t,e,n,s){const[r,o]=Bt(s.increment,t,e,s.rx,s.ry,1,s.increment*Ue(.1,Ue(.4,1,n),n),n);let i=Ye(r,null,n);if(!n.disableMultiStroke&&n.roughness!==0){const[a]=Bt(s.increment,t,e,s.rx,s.ry,1.5,0,n),l=Ye(a,null,n);i=i.concat(l)}return{estimatedPoints:o,opset:{type:"path",ops:i}}}function zt(t,e,n,s,r,o,i,a,l){const c=t,u=e;let f=Math.abs(n/2),h=Math.abs(s/2);f+=_(f*.01,l),h+=_(h*.01,l);let d=r,m=o;for(;d<0;)d+=Math.PI*2,m+=Math.PI*2;m-d>Math.PI*2&&(d=0,m=Math.PI*2);const g=Math.PI*2/l.curveStepCount,y=Math.min(g/2,(m-d)/2),v=Ut(y,c,u,f,h,d,m,1,l);if(!l.disableMultiStroke){const k=Ut(y,c,u,f,h,d,m,1.5,l);v.push(...k)}return i&&(a?v.push(...Y(c,u,c+f*Math.cos(d),u+h*Math.sin(d),l),...Y(c,u,c+f*Math.cos(m),u+h*Math.sin(m),l)):v.push({op:"lineTo",data:[c,u]},{op:"lineTo",data:[c+f*Math.cos(d),u+h*Math.sin(d)]})),{type:"path",ops:v}}function Wt(t,e){const n=Sn(Mn(St(t))),s=[];let r=[0,0],o=[0,0];for(const{key:i,data:a}of n)switch(i){case"M":{o=[a[0],a[1]],r=[a[0],a[1]];break}case"L":s.push(...Y(o[0],o[1],a[0],a[1],e)),o=[a[0],a[1]];break;case"C":{const[l,c,u,f,h,d]=a;s.push(...Ei(l,c,u,f,h,d,o,e)),o=[h,d];break}case"Z":s.push(...Y(o[0],o[1],r[0],r[1],e)),o=[r[0],r[1]];break}return{type:"path",ops:s}}function it(t,e){const n=[];for(const s of t)if(s.length){const r=e.maxRandomnessOffset||0,o=s.length;if(o>2){n.push({op:"move",data:[s[0][0]+_(r,e),s[0][1]+_(r,e)]});for(let i=1;i<o;i++)n.push({op:"lineTo",data:[s[i][0]+_(r,e),s[i][1]+_(r,e)]})}}return{type:"fillPath",ops:n}}function ge(t,e){return ki(e,Mi).fillPolygons(t,e)}function Ti(t,e,n,s,r,o,i){const a=t,l=e;let c=Math.abs(n/2),u=Math.abs(s/2);c+=_(c*.01,i),u+=_(u*.01,i);let f=r,h=o;for(;f<0;)f+=Math.PI*2,h+=Math.PI*2;h-f>Math.PI*2&&(f=0,h=Math.PI*2);const d=(h-f)/i.curveStepCount,m=[];for(let g=f;g<=h;g=g+d)m.push([a+c*Math.cos(g),l+u*Math.sin(g)]);return m.push([a+c*Math.cos(h),l+u*Math.sin(h)]),m.push([a,l]),ge([m],i)}function Pi(t,e){return _(t,e)}function Ai(t,e,n){return Ue(t,e,n)}function Oi(t,e,n,s,r){return Y(t,e,n,s,r,!0)}function Vt(t){const e=Object.assign({},t);return e.randomizer=void 0,t.seed&&(e.seed=t.seed+1),e}function On(t){return t.randomizer||(t.randomizer=new ui(t.seed||0)),t.randomizer.next()}function Ue(t,e,n,s=1){return n.roughness*s*(On(n)*(e-t)+t)}function _(t,e,n=1){return Ue(-t,t,e,n)}function Y(t,e,n,s,r,o=!1){const i=o?r.disableMultiStrokeFill:r.disableMultiStroke,a=gt(t,e,n,s,r,!0,!1);if(i)return a;const l=gt(t,e,n,s,r,!0,!0);return a.concat(l)}function gt(t,e,n,s,r,o,i){const a=Math.pow(t-n,2)+Math.pow(e-s,2),l=Math.sqrt(a);let c=1;l<200?c=1:l>500?c=.4:c=-.0016668*l+1.233334;let u=r.maxRandomnessOffset||0;u*u*100>a&&(u=l/10);const f=u/2,h=.2+On(r)*.2;let d=r.bowing*r.maxRandomnessOffset*(s-e)/200,m=r.bowing*r.maxRandomnessOffset*(t-n)/200;d=_(d,r,c),m=_(m,r,c);const g=[],y=()=>_(f,r,c),v=()=>_(u,r,c),k=r.preserveVertices;return o&&(i?g.push({op:"move",data:[t+(k?0:y()),e+(k?0:y())]}):g.push({op:"move",data:[t+(k?0:_(u,r,c)),e+(k?0:_(u,r,c))]})),i?g.push({op:"bcurveTo",data:[d+t+(n-t)*h+y(),m+e+(s-e)*h+y(),d+t+2*(n-t)*h+y(),m+e+2*(s-e)*h+y(),n+(k?0:y()),s+(k?0:y())]}):g.push({op:"bcurveTo",data:[d+t+(n-t)*h+v(),m+e+(s-e)*h+v(),d+t+2*(n-t)*h+v(),m+e+2*(s-e)*h+v(),n+(k?0:v()),s+(k?0:v())]}),g}function Re(t,e,n){if(!t.length)return[];const s=[];s.push([t[0][0]+_(e,n),t[0][1]+_(e,n)]),s.push([t[0][0]+_(e,n),t[0][1]+_(e,n)]);for(let r=1;r<t.length;r++)s.push([t[r][0]+_(e,n),t[r][1]+_(e,n)]),r===t.length-1&&s.push([t[r][0]+_(e,n),t[r][1]+_(e,n)]);return Ye(s,null,n)}function Ye(t,e,n){const s=t.length,r=[];if(s>3){const o=[],i=1-n.curveTightness;r.push({op:"move",data:[t[1][0],t[1][1]]});for(let a=1;a+2<s;a++){const l=t[a];o[0]=[l[0],l[1]],o[1]=[l[0]+(i*t[a+1][0]-i*t[a-1][0])/6,l[1]+(i*t[a+1][1]-i*t[a-1][1])/6],o[2]=[t[a+1][0]+(i*t[a][0]-i*t[a+2][0])/6,t[a+1][1]+(i*t[a][1]-i*t[a+2][1])/6],o[3]=[t[a+1][0],t[a+1][1]],r.push({op:"bcurveTo",data:[o[1][0],o[1][1],o[2][0],o[2][1],o[3][0],o[3][1]]})}if(e&&e.length===2){const a=n.maxRandomnessOffset;r.push({op:"lineTo",data:[e[0]+_(a,n),e[1]+_(a,n)]})}}else s===3?(r.push({op:"move",data:[t[1][0],t[1][1]]}),r.push({op:"bcurveTo",data:[t[1][0],t[1][1],t[2][0],t[2][1],t[2][0],t[2][1]]})):s===2&&r.push(...gt(t[0][0],t[0][1],t[1][0],t[1][1],n,!0,!0));return r}function Bt(t,e,n,s,r,o,i,a){const l=a.roughness===0,c=[],u=[];if(l){t=t/4,u.push([e+s*Math.cos(-t),n+r*Math.sin(-t)]);for(let f=0;f<=Math.PI*2;f=f+t){const h=[e+s*Math.cos(f),n+r*Math.sin(f)];c.push(h),u.push(h)}u.push([e+s*Math.cos(0),n+r*Math.sin(0)]),u.push([e+s*Math.cos(t),n+r*Math.sin(t)])}else{const f=_(.5,a)-Math.PI/2;u.push([_(o,a)+e+.9*s*Math.cos(f-t),_(o,a)+n+.9*r*Math.sin(f-t)]);const h=Math.PI*2+f-.01;for(let d=f;d<h;d=d+t){const m=[_(o,a)+e+s*Math.cos(d),_(o,a)+n+r*Math.sin(d)];c.push(m),u.push(m)}u.push([_(o,a)+e+s*Math.cos(f+Math.PI*2+i*.5),_(o,a)+n+r*Math.sin(f+Math.PI*2+i*.5)]),u.push([_(o,a)+e+.98*s*Math.cos(f+i),_(o,a)+n+.98*r*Math.sin(f+i)]),u.push([_(o,a)+e+.9*s*Math.cos(f+i*.5),_(o,a)+n+.9*r*Math.sin(f+i*.5)])}return[u,c]}function Ut(t,e,n,s,r,o,i,a,l){const c=o+_(.1,l),u=[];u.push([_(a,l)+e+.9*s*Math.cos(c-t),_(a,l)+n+.9*r*Math.sin(c-t)]);for(let f=c;f<=i;f=f+t)u.push([_(a,l)+e+s*Math.cos(f),_(a,l)+n+r*Math.sin(f)]);return u.push([e+s*Math.cos(i),n+r*Math.sin(i)]),u.push([e+s*Math.cos(i),n+r*Math.sin(i)]),Ye(u,null,l)}function Ei(t,e,n,s,r,o,i,a){const l=[],c=[a.maxRandomnessOffset||1,(a.maxRandomnessOffset||1)+.3];let u=[0,0];const f=a.disableMultiStroke?1:2,h=a.preserveVertices;for(let d=0;d<f;d++)d===0?l.push({op:"move",data:[i[0],i[1]]}):l.push({op:"move",data:[i[0]+(h?0:_(c[0],a)),i[1]+(h?0:_(c[0],a))]}),u=h?[r,o]:[r+_(c[d],a),o+_(c[d],a)],l.push({op:"bcurveTo",data:[t+_(c[d],a),e+_(c[d],a),n+_(c[d],a),s+_(c[d],a),u[0],u[1]]});return l}function Me(t){return[...t]}function Yt(t,e=0){const n=t.length;if(n<3)throw new Error("A curve must have at least three points.");const s=[];if(n===3)s.push(Me(t[0]),Me(t[1]),Me(t[2]),Me(t[2]));else{const r=[];r.push(t[0],t[0]);for(let a=1;a<t.length;a++)r.push(t[a]),a===t.length-1&&r.push(t[a]);const o=[],i=1-e;s.push(Me(r[0]));for(let a=1;a+2<r.length;a++){const l=r[a];o[0]=[l[0],l[1]],o[1]=[l[0]+(i*r[a+1][0]-i*r[a-1][0])/6,l[1]+(i*r[a+1][1]-i*r[a-1][1])/6],o[2]=[r[a+1][0]+(i*r[a][0]-i*r[a+2][0])/6,r[a+1][1]+(i*r[a][1]-i*r[a+2][1])/6],o[3]=[r[a+1][0],r[a+1][1]],s.push(o[1],o[2],o[3])}}return s}function Ci(t,e){return Math.sqrt(De(t,e))}function De(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)}function Li(t,e,n){const s=De(e,n);if(s===0)return De(t,e);let r=((t[0]-e[0])*(n[0]-e[0])+(t[1]-e[1])*(n[1]-e[1]))/s;return r=Math.max(0,Math.min(1,r)),De(t,ue(e,n,r))}function ue(t,e,n){return[t[0]+(e[0]-t[0])*n,t[1]+(e[1]-t[1])*n]}function $i(t,e){const n=t[e+0],s=t[e+1],r=t[e+2],o=t[e+3];let i=3*s[0]-2*n[0]-o[0];i*=i;let a=3*s[1]-2*n[1]-o[1];a*=a;let l=3*r[0]-2*o[0]-n[0];l*=l;let c=3*r[1]-2*o[1]-n[1];return c*=c,i<l&&(i=l),a<c&&(a=c),i+a}function vt(t,e,n,s){const r=s||[];if($i(t,e)<n){const o=t[e+0];r.length?Ci(r[r.length-1],o)>1&&r.push(o):r.push(o),r.push(t[e+3])}else{const i=t[e+0],a=t[e+1],l=t[e+2],c=t[e+3],u=ue(i,a,.5),f=ue(a,l,.5),h=ue(l,c,.5),d=ue(u,f,.5),m=ue(f,h,.5),g=ue(d,m,.5);vt([i,u,d,g],0,n,r),vt([g,m,h,c],0,n,r)}return r}function Ii(t,e){return Ge(t,0,t.length,e)}function Ge(t,e,n,s,r){const o=r||[],i=t[e],a=t[n-1];let l=0,c=1;for(let u=e+1;u<n-1;++u){const f=Li(t[u],i,a);f>l&&(l=f,c=u)}return Math.sqrt(l)>s?(Ge(t,e,c+1,s,o),Ge(t,c,n,s,o)):(o.length||o.push(i),o.push(a)),o}function yt(t,e=.15,n){const s=[],r=(t.length-1)/3;for(let o=0;o<r;o++){const i=o*3;vt(t,i,e,s)}return n&&n>0?Ge(s,0,s.length,n):s}function Ri(t,e,n){const s=St(t),r=Sn(Mn(s)),o=[];let i=[],a=[0,0],l=[];const c=()=>{l.length>=4&&i.push(...yt(l,e)),l=[]},u=()=>{c(),i.length&&(o.push(i),i=[])};for(const{key:h,data:d}of r)switch(h){case"M":u(),a=[d[0],d[1]],i.push(a);break;case"L":c(),i.push([d[0],d[1]]);break;case"C":if(!l.length){const m=i.length?i[i.length-1]:a;l.push([m[0],m[1]])}l.push([d[0],d[1]]),l.push([d[2],d[3]]),l.push([d[4],d[5]]);break;case"Z":c(),i.push([a[0],a[1]]);break}if(u(),!n)return o;const f=[];for(const h of o){const d=Ii(h,n);d.length&&f.push(d)}return f}const R="none";class Fi{constructor(e){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=e||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return xn()}_o(e){return e?Object.assign({},this.defaultOptions,e):this.defaultOptions}_d(e,n,s){return{shape:e,sets:n||[],options:s||this.defaultOptions}}line(e,n,s,r,o){const i=this._o(o);return this._d("line",[F(e,n,s,r,i)],i)}rectangle(e,n,s,r,o){const i=this._o(o),a=[],l=Pn(e,n,s,r,i);if(i.fill){const c=[[e,n],[e+s,n],[e+s,n+r],[e,n+r]];i.fillStyle==="solid"?a.push(it([c],i)):a.push(ge([c],i))}return i.stroke!==R&&a.push(l),this._d("rectangle",a,i)}ellipse(e,n,s,r,o){const i=this._o(o),a=[],l=An(s,r,i),c=mt(e,n,i,l);if(i.fill)if(i.fillStyle==="solid"){const u=mt(e,n,i,l).opset;u.type="fillPath",a.push(u)}else a.push(ge([c.estimatedPoints],i));return i.stroke!==R&&a.push(c.opset),this._d("ellipse",a,i)}circle(e,n,s,r){const o=this.ellipse(e,n,s,s,r);return o.shape="circle",o}linearPath(e,n){const s=this._o(n);return this._d("linearPath",[Se(e,!1,s)],s)}arc(e,n,s,r,o,i,a=!1,l){const c=this._o(l),u=[],f=zt(e,n,s,r,o,i,a,!0,c);if(a&&c.fill)if(c.fillStyle==="solid"){const h=Object.assign({},c);h.disableMultiStroke=!0;const d=zt(e,n,s,r,o,i,!0,!1,h);d.type="fillPath",u.push(d)}else u.push(Ti(e,n,s,r,o,i,c));return c.stroke!==R&&u.push(f),this._d("arc",u,c)}curve(e,n){const s=this._o(n),r=[],o=qt(e,s);if(s.fill&&s.fill!==R)if(s.fillStyle==="solid"){const i=qt(e,Object.assign(Object.assign({},s),{disableMultiStroke:!0,roughness:s.roughness?s.roughness+s.fillShapeRoughnessGain:0}));r.push({type:"fillPath",ops:this._mergedShape(i.ops)})}else{const i=[],a=e;if(a.length){const c=typeof a[0][0]=="number"?[a]:a;for(const u of c)u.length<3?i.push(...u):u.length===3?i.push(...yt(Yt([u[0],u[0],u[1],u[2]]),10,(1+s.roughness)/2)):i.push(...yt(Yt(u),10,(1+s.roughness)/2))}i.length&&r.push(ge([i],s))}return s.stroke!==R&&r.push(o),this._d("curve",r,s)}polygon(e,n){const s=this._o(n),r=[],o=Se(e,!0,s);return s.fill&&(s.fillStyle==="solid"?r.push(it([e],s)):r.push(ge([e],s))),s.stroke!==R&&r.push(o),this._d("polygon",r,s)}path(e,n){const s=this._o(n),r=[];if(!e)return this._d("path",r,s);e=(e||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const o=s.fill&&s.fill!=="transparent"&&s.fill!==R,i=s.stroke!==R,a=!!(s.simplification&&s.simplification<1),l=a?4-4*(s.simplification||1):(1+s.roughness)/2,c=Ri(e,1,l),u=Wt(e,s);if(o)if(s.fillStyle==="solid")if(c.length===1){const f=Wt(e,Object.assign(Object.assign({},s),{disableMultiStroke:!0,roughness:s.roughness?s.roughness+s.fillShapeRoughnessGain:0}));r.push({type:"fillPath",ops:this._mergedShape(f.ops)})}else r.push(it(c,s));else r.push(ge(c,s));return i&&(a?c.forEach(f=>{r.push(Se(f,!1,s))}):r.push(u)),this._d("path",r,s)}opsToPath(e,n){let s="";for(const r of e.ops){const o=typeof n=="number"&&n>=0?r.data.map(i=>+i.toFixed(n)):r.data;switch(r.op){case"move":s+=`M${o[0]} ${o[1]} `;break;case"bcurveTo":s+=`C${o[0]} ${o[1]}, ${o[2]} ${o[3]}, ${o[4]} ${o[5]} `;break;case"lineTo":s+=`L${o[0]} ${o[1]} `;break}}return s.trim()}toPaths(e){const n=e.sets||[],s=e.options||this.defaultOptions,r=[];for(const o of n){let i=null;switch(o.type){case"path":i={d:this.opsToPath(o),stroke:s.stroke,strokeWidth:s.strokeWidth,fill:R};break;case"fillPath":i={d:this.opsToPath(o),stroke:R,strokeWidth:0,fill:s.fill||R};break;case"fillSketch":i=this.fillSketch(o,s);break}i&&r.push(i)}return r}fillSketch(e,n){let s=n.fillWeight;return s<0&&(s=n.strokeWidth/2),{d:this.opsToPath(e),stroke:n.fill||R,strokeWidth:s,fill:R}}_mergedShape(e){return e.filter((n,s)=>s===0?!0:n.op!=="move")}}const En="http://www.w3.org/2000/svg",Hi=800;let at=null;function Ni(){return at||(at=new Fi().defaultOptions),at}function lt(t,e,n){return{...Ni(),maxRandomnessOffset:2,roughness:t==="highlight"?3:1.5,bowing:1,stroke:"#000",strokeWidth:1.5,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,disableMultiStroke:t!=="double",disableMultiStrokeFill:!1,seed:e,...n}}function ji(t){const e=t.padding;if(e||e===0){if(typeof e=="number")return[e,e,e,e];if(Array.isArray(e)){const n=e;if(n.length)switch(n.length){case 4:return[...n];case 1:return[n[0],n[0],n[0],n[0]];case 2:return[...n,...n];case 3:return[...n,n[1]];default:return[n[0],n[1],n[2],n[3]]}}}return[5,5,5,5]}function Di(t,e,n,s,r,o){const i=[];let a=n.strokeWidth||2;const l=ji(n),c=n.animate===void 0?!0:!!n.animate,u=n.iterations||2,f=n.rtl?1:0,h=lt("single",o,n);switch(n.type){case"underline":{const d=e.y+e.h+l[2];for(let m=f;m<u+f;m++)m%2?i.push(F(e.x+e.w,d,e.x,d,h)):i.push(F(e.x,d,e.x+e.w,d,h));break}case"strike-through":{const d=e.y+e.h/2;for(let m=f;m<u+f;m++)m%2?i.push(F(e.x+e.w,d,e.x,d,h)):i.push(F(e.x,d,e.x+e.w,d,h));break}case"box":{const d=e.x-l[3],m=e.y-l[0],g=e.w+(l[1]+l[3]),y=e.h+(l[0]+l[2]);for(let v=0;v<u;v++)i.push(Pn(d,m,g,y,h));break}case"bracket":{const d=Array.isArray(n.brackets)?n.brackets:n.brackets?[n.brackets]:["right"],m=e.x-l[3]*2,g=e.x+e.w+l[1]*2,y=e.y-l[0]*2,v=e.y+e.h+l[2]*2;for(const k of d){let b;switch(k){case"bottom":b=[[m,e.y+e.h],[m,v],[g,v],[g,e.y+e.h]];break;case"top":b=[[m,e.y],[m,y],[g,y],[g,e.y]];break;case"left":b=[[e.x,y],[m,y],[m,v],[e.x,v]];break;case"right":b=[[e.x+e.w,y],[g,y],[g,v],[e.x+e.w,v]];break}b&&i.push(Se(b,!1,h))}break}case"crossed-off":{const d=e.x,m=e.y,g=d+e.w,y=m+e.h;for(let v=f;v<u+f;v++)v%2?i.push(F(g,y,d,m,h)):i.push(F(d,m,g,y,h));for(let v=f;v<u+f;v++)v%2?i.push(F(d,y,g,m,h)):i.push(F(g,m,d,y,h));break}case"circle":{const d=lt("double",o,n),m=e.w+(l[1]+l[3]),g=e.h+(l[0]+l[2]),y=e.x-l[3]+m/2,v=e.y-l[0]+g/2,k=Math.floor(u/2),b=u-k*2;for(let M=0;M<k;M++)i.push(pt(y,v,m,g,d));for(let M=0;M<b;M++)i.push(pt(y,v,m,g,h));break}case"highlight":{const d=lt("highlight",o,n);a=e.h*.95;const m=e.y+e.h/2;for(let g=f;g<u+f;g++)g%2?i.push(F(e.x+e.w,m,e.x,m,d)):i.push(F(e.x,m,e.x+e.w,m,d));break}}if(i.length){const d=qi(i),m=[],g=[];let y=0;const v=(k,b,M)=>k.setAttribute(b,M);for(const k of d){const b=document.createElementNS(En,"path");if(v(b,"d",k),v(b,"fill","none"),v(b,"stroke",n.color||"currentColor"),v(b,"stroke-width",`${a}`),n.opacity!==void 0&&v(b,"style",`opacity:${n.opacity}`),c){const M=b.getTotalLength();m.push(M),y+=M}t.appendChild(b),g.push(b)}if(c){let k=0;for(let b=0;b<g.length;b++){const M=g[b],I=m[b],z=y?r*(I/y):0,pe=s+k,W=M.style;W.strokeDashoffset=`${I}`,W.strokeDasharray=`${I}`,W.animation=`rough-notation-dash ${z}ms ease-out ${pe}ms forwards`,k+=z}return Gt(r+s)}}return Gt(0)}function Gt(t){return new Promise(e=>setTimeout(e,t))}function qi(t){const e=[];for(const n of t){let s="";for(const r of n.ops){const o=r.data;switch(r.op){case"move":s.trim()&&e.push(s.trim()),s=`M${o[0]} ${o[1]} `;break;case"bcurveTo":s+=`C${o[0]} ${o[1]}, ${o[2]} ${o[3]}, ${o[4]} ${o[5]} `;break;case"lineTo":s+=`L${o[0]} ${o[1]} `;break}}s.trim()&&e.push(s.trim())}return e}function zi(){if(!window.__rno_kf_s){const t=window.__rno_kf_s=document.createElement("style");t.textContent="@keyframes rough-notation-dash { to { stroke-dashoffset: 0; } }",document.head.appendChild(t)}}var Wi=Object.defineProperty,Vi=(t,e,n)=>e in t?Wi(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,j=(t,e,n)=>(Vi(t,typeof e!="symbol"?e+"":e,n),n);class Bi{constructor(e,n){j(this,"_state","unattached"),j(this,"_config"),j(this,"_resizing",!1),j(this,"_ro"),j(this,"_seed",xn()),j(this,"_e"),j(this,"_svg"),j(this,"_lastSizes",[]),j(this,"_animationDelay",0),j(this,"_resizeListener",()=>{this._resizing||(this._resizing=!0,setTimeout(()=>{this._resizing=!1,this._state==="showing"&&this.haveRectsChanged()&&this.show()},400))}),j(this,"pendingRefresh"),this._e=e,this._config=JSON.parse(JSON.stringify(n)),this.attach()}getConfig(e){return this._config[e]}setConfig(e,n){this._config[e]!==n&&(this._config[e]=n,this.refresh())}get animate(){return this._config.animate}set animate(e){this._config.animate=e}get animationDuration(){return this._config.animationDuration}set animationDuration(e){this._config.animationDuration=e}get iterations(){return this._config.iterations}set iterations(e){this._config.iterations=e}get color(){return this._config.color}set color(e){this._config.color!==e&&(this._config.color=e,this.refresh())}get class(){return this._config.class}set class(e){this._config.class!==e&&(this._config.class=e,this._svg&&this._svg.setAttribute("class",["rough-annotation",this._config.class||""].filter(Boolean).join(" ")))}get strokeWidth(){return this._config.strokeWidth}set strokeWidth(e){this._config.strokeWidth!==e&&(this._config.strokeWidth=e,this.refresh())}get padding(){return this._config.padding}set padding(e){this._config.padding!==e&&(this._config.padding=e,this.refresh())}attach(){if(this._state==="unattached"&&this._e.parentElement){zi();const e=this._svg=document.createElementNS(En,"svg");e.setAttribute("class",["rough-annotation",this._config.class||""].filter(Boolean).join(" "));const n=e.style;n.position="absolute",n.top="0",n.left="0",n.overflow="visible",n.pointerEvents="none",n.width="100px",n.height="100px";const s=this._config.type==="highlight";if(this._e.insertAdjacentElement(s?"beforebegin":"afterend",e),this._state="not-showing",s){const r=window.getComputedStyle(this._e).position;(!r||r==="static")&&(this._e.style.position="relative")}this.attachListeners()}}detachListeners(){window.removeEventListener("resize",this._resizeListener),this._ro&&this._ro.unobserve(this._e)}attachListeners(){this.detachListeners(),window.addEventListener("resize",this._resizeListener,{passive:!0}),!this._ro&&"ResizeObserver"in window&&(this._ro=new window.ResizeObserver(e=>{for(const n of e)n.contentRect&&this._resizeListener()})),this._ro&&this._ro.observe(this._e)}haveRectsChanged(){if(this._lastSizes.length){const e=this.rects();if(e.length===this._lastSizes.length){for(let n=0;n<e.length;n++)if(!this.isSameRect(e[n],this._lastSizes[n]))return!0}else return!0}return!1}isSameRect(e,n){const s=(r,o)=>Math.round(r)===Math.round(o);return s(e.x,n.x)&&s(e.y,n.y)&&s(e.w,n.w)&&s(e.h,n.h)}isShowing(){return this._state!=="not-showing"}refresh(){this.isShowing()&&!this.pendingRefresh&&(this.pendingRefresh=Promise.resolve().then(()=>{this.isShowing()&&this.show(),delete this.pendingRefresh}))}async show(){switch(this._state){case"unattached":break;case"showing":this.hide(),this._svg&&await this.render(this._svg,!0);break;case"not-showing":this.attach(),this._svg&&await this.render(this._svg,!1);break}}hide(){if(this._svg)for(;this._svg.lastChild;)this._svg.removeChild(this._svg.lastChild);this._state="not-showing"}remove(){this._svg&&this._svg.parentElement&&this._svg.parentElement.removeChild(this._svg),this._svg=void 0,this._state="unattached",this.detachListeners()}async render(e,n){let s=this._config;n&&(s=JSON.parse(JSON.stringify(this._config)),s.animate=!1);const r=this.rects();let o=0;r.forEach(c=>o+=c.w);const i=s.animationDuration||Hi;let a=0;const l=[];for(let c=0;c<r.length;c++){const u=r[c],f=i*(u.w/o);l.push(Di(e,r[c],s,a+this._animationDelay+(this._config.delay||0),f,this._seed)),a+=f}return this._lastSizes=r,this._state="showing",await Promise.all(l)}rects(){const e=[];if(this._svg)if(this._config.multiline){const n=this._e.getClientRects();for(let s=0;s<n.length;s++)e.push(this.svgRect(this._svg,n[s]))}else e.push(this.svgRect(this._svg,this._e.getBoundingClientRect()));return e}svgRect(e,n){const s=e.getBoundingClientRect(),r=n;return{x:(r.x||r.left)-(s.x||s.left),y:(r.y||r.top)-(s.y||s.top),w:r.width,h:r.height}}}function Ui(t,e){return new Bi(t,e)}function $(t,e){return t.class=[t.class,e].filter(Boolean).join(" "),t}const Kt={box:t=>Object.assign(t,{type:"box"}),circle:t=>Object.assign(t,{type:"circle"}),underline:t=>Object.assign(t,{type:"underline"}),highlight:t=>Object.assign(t,{type:"highlight"}),"strike-through":t=>Object.assign(t,{type:"strike-through"}),"crossed-off":t=>Object.assign(t,{type:"crossed-off"}),bracket:t=>Object.assign(t,{type:"bracket"}),strike:t=>Object.assign(t,{type:"strike-through"}),cross:t=>Object.assign(t,{type:"crossed-off"}),crossed:t=>Object.assign(t,{type:"crossed-off"}),linethrough:t=>Object.assign(t,{type:"strike-through"}),"line-through":t=>Object.assign(t,{type:"strike-through"}),black:t=>$(t,"text-black"),blue:t=>$(t,"text-blue"),cyan:t=>$(t,"text-cyan"),gray:t=>$(t,"text-gray"),green:t=>$(t,"text-green"),indigo:t=>$(t,"text-indigo"),lime:t=>$(t,"text-lime"),orange:t=>$(t,"text-orange"),pink:t=>$(t,"text-pink"),purple:t=>$(t,"text-purple"),red:t=>$(t,"text-red"),teal:t=>$(t,"text-teal"),white:t=>$(t,"text-white"),yellow:t=>$(t,"text-yellow")},Yi=[[/^delay-?(\d+)?$/,(t,e,n)=>{const s=(t[1]?Number.parseInt(t[1]):n)||300;return e.delay=s,e}],[/^(?:op|opacity)-?(\d+)?$/,(t,e,n)=>{const s=(t[1]?Number.parseInt(t[1]):n)||100;return e.opacity=s/100,e}]];function Gi(){return{install(t){t.directive("mark",{name:"v-mark",mounted:(e,n)=>{const s=p(()=>{const i=typeof n.value=="object"&&!Array.isArray(n.value)?{...n.value}:{at:n.value};let a={at:i.at};const l=Object.entries(n.modifiers).filter(([u,f])=>{if(Kt[u])return a=Kt[u](a,f),!1;for(const[h,d]of Yi){const m=u.match(h);if(m)return a=d(m,a,f),!1}return!0});l.length&&console.warn("[Slidev] Invalid modifiers for v-mark:",l);const c={...a,...i};return c.type||(c.type="underline"),c}),r=Ui(e,s.value),o=je(e,n,s.value.at);if(!o){r.show();return}ve(()=>{let i;s.value.class&&(r.class=s.value.class),s.value.color&&(r.color=s.value.color);const a=s.value.at;a===!0?i=!0:a===!1?i=!1:i=o.isActive.value,i!=null&&(i?r.show():r.hide())})}})}}}const Te=[{name:"print",path:"/print",component:()=>T(()=>import("./slidev/print-BMgL-6v3.js"),__vite__mapDeps([25,1,3,4,26,2,27,28,29]))},{path:"",redirect:{path:"/1"}}];{let t=function(e){if(!A.remote||A.remote===e.query.password)return!0;if(A.remote&&e.query.password===void 0){const n=prompt("Enter password");if(A.remote===n)return!0}return e.params.no?{path:`/${e.params.no}`}:{path:""}};Te.push({path:"/presenter/print",component:()=>T(()=>import("./slidev/print-BYA5KV2s.js"),__vite__mapDeps([30,1,31,32,3,4]))}),Te.push({name:"presenter",path:"/presenter/:no",component:()=>T(()=>import("./slidev/presenter-DyTZ-eDI.js"),__vite__mapDeps([33,34,1,35,36,26,2,27,3,4,37,31,32,38,39,40])),beforeEnter:t}),Te.push({path:"/presenter",redirect:{path:"/presenter/1"}})}Te.push({name:"play",path:"/:no",component:()=>T(()=>import("./slidev/play-BN3PqSyH.js"),__vite__mapDeps([41,1,26,2,27,35,36,34,3,4,37,28,42]))});const Ki=[];async function Zi(t){function e(){document.documentElement.style.setProperty("--vh",`${window.innerHeight*.01}px`)}e(),window.addEventListener("resize",e);const n=Kn({history:Zn("/slides/bisonex"),routes:Te});t.use(n),t.use(Us()),t.use(li()),t.use(Gi()),t.use(Jn),t.use(Xn,{container:"#twoslash-container"});const s={app:t,router:n};qe(()=>{n.afterEach(async()=>{await qe(),ft.value+=1})});for(const r of Ki)await r(s)}const Cn=Qn(ai);Zi(Cn);Cn.mount("#app");export{oa as $,bt as A,ua as B,Ve as C,G as D,K as E,Z as F,J as G,ea as H,To as I,Q as J,X as K,ee as L,te as M,Po as N,ts as O,ne as P,se as Q,re as R,oe as S,ie as T,ae as U,le as V,ce as W,ca as X,fa as Y,ar as Z,T as _,is as a,ra as a0,sa as a1,pn as b,A as c,Qo as d,pa as e,os as f,ia as g,Gs as h,rr as i,Oe as j,Pe as k,ha as l,na as m,q as n,Be as o,jt as p,gn as q,Xi as r,ta as s,da as t,Dt as u,cn as v,aa as w,sr as x,or as y,la as z};
import{W as $,X as x,Y as B,Z as Ze,_ as M,B as re,$ as Te,a0 as Xe,a1 as We,a2 as Je,a3 as Qe,a4 as ze,a5 as Ve,a6 as ke,a7 as y,a8 as ve,a9 as $e,aa as te,ab as Ee,ac as en,ad as I,ae as q,af as nn,ag as rn,ah as L,ai as tn,aj as sn,ak as C,al as an,am as G,an as X,ao as un,ap as Oe,aq as me,ar as fn,as as on,at as hn,au as ie}from"./slidev/5-BKiUV7YW.js";var ln="[object Symbol]";function W(e){return typeof e=="symbol"||C(e)&&an(e)==ln}function we(e,n){for(var r=-1,t=e==null?0:e.length,i=Array(t);++r<t;)i[r]=n(e[r],r,e);return i}var gn=1/0,se=$?$.prototype:void 0,ae=se?se.toString:void 0;function Pe(e){if(typeof e=="string")return e;if(y(e))return we(e,Pe)+"";if(W(e))return ae?ae.call(e):"";var n=e+"";return n=="0"&&1/e==-gn?"-0":n}function dn(){}function Le(e,n){for(var r=-1,t=e==null?0:e.length;++r<t&&n(e[r],r,e)!==!1;);return e}function cn(e,n,r,t){for(var i=e.length,s=r+(t?1:-1);t?s--:++s<i;)if(n(e[s],s,e))return s;return-1}function _n(e){return e!==e}function pn(e,n,r){for(var t=r-1,i=e.length;++t<i;)if(e[t]===n)return t;return-1}function bn(e,n,r){return n===n?pn(e,n,r):cn(e,_n,r)}function yn(e,n){var r=e==null?0:e.length;return!!r&&bn(e,n,0)>-1}function T(e){return Te(e)?Xe(e):We(e)}var An=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Tn=/^\w*$/;function J(e,n){if(y(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||W(e)?!0:Tn.test(e)||!An.test(e)||n!=null&&e in Object(n)}var vn=500;function $n(e){var n=Je(e,function(t){return r.size===vn&&r.clear(),t}),r=n.cache;return n}var En=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,On=/\\(\\)?/g,mn=$n(function(e){var n=[];return e.charCodeAt(0)===46&&n.push(""),e.replace(En,function(r,t,i,s){n.push(i?s.replace(On,"$1"):t||r)}),n});const wn=mn;function Pn(e){return e==null?"":Pe(e)}function Ie(e,n){return y(e)?e:J(e,n)?[e]:wn(Pn(e))}var Ln=1/0;function U(e){if(typeof e=="string"||W(e))return e;var n=e+"";return n=="0"&&1/e==-Ln?"-0":n}function Ce(e,n){n=Ie(n,e);for(var r=0,t=n.length;e!=null&&r<t;)e=e[U(n[r++])];return r&&r==t?e:void 0}function In(e,n,r){var t=e==null?void 0:Ce(e,n);return t===void 0?r:t}function Q(e,n){for(var r=-1,t=n.length,i=e.length;++r<t;)e[i+r]=n[r];return e}var ue=$?$.isConcatSpreadable:void 0;function Cn(e){return y(e)||ve(e)||!!(ue&&e&&e[ue])}function Se(e,n,r,t,i){var s=-1,a=e.length;for(r||(r=Cn),i||(i=[]);++s<a;){var u=e[s];n>0&&r(u)?n>1?Se(u,n-1,r,t,i):Q(i,u):t||(i[i.length]=u)}return i}function Sn(e,n,r,t){var i=-1,s=e==null?0:e.length;for(t&&s&&(r=e[++i]);++i<s;)r=n(r,e[i],i,e);return r}function Nn(e,n){return e&&G(n,T(n),e)}function Fn(e,n){return e&&G(n,X(n),e)}function Ne(e,n){for(var r=-1,t=e==null?0:e.length,i=0,s=[];++r<t;){var a=e[r];n(a,r,e)&&(s[i++]=a)}return s}function Fe(){return[]}var Mn=Object.prototype,Dn=Mn.propertyIsEnumerable,fe=Object.getOwnPropertySymbols,Rn=fe?function(e){return e==null?[]:(e=Object(e),Ne(fe(e),function(n){return Dn.call(e,n)}))}:Fe;const z=Rn;function xn(e,n){return G(e,z(e),n)}var Gn=Object.getOwnPropertySymbols,Un=Gn?function(e){for(var n=[];e;)Q(n,z(e)),e=on(e);return n}:Fe;const Me=Un;function Bn(e,n){return G(e,Me(e),n)}function De(e,n,r){var t=n(e);return y(e)?t:Q(t,r(e))}function Z(e){return De(e,T,z)}function jn(e){return De(e,X,Me)}var Kn=Object.prototype,Hn=Kn.hasOwnProperty;function Yn(e){var n=e.length,r=new e.constructor(n);return n&&typeof e[0]=="string"&&Hn.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function qn(e,n){var r=n?Oe(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var Zn=/\w*$/;function Xn(e){var n=new e.constructor(e.source,Zn.exec(e));return n.lastIndex=e.lastIndex,n}var oe=$?$.prototype:void 0,he=oe?oe.valueOf:void 0;function Wn(e){return he?Object(he.call(e)):{}}var Jn="[object Boolean]",Qn="[object Date]",zn="[object Map]",Vn="[object Number]",kn="[object RegExp]",er="[object Set]",nr="[object String]",rr="[object Symbol]",tr="[object ArrayBuffer]",ir="[object DataView]",sr="[object Float32Array]",ar="[object Float64Array]",ur="[object Int8Array]",fr="[object Int16Array]",or="[object Int32Array]",hr="[object Uint8Array]",lr="[object Uint8ClampedArray]",gr="[object Uint16Array]",dr="[object Uint32Array]";function cr(e,n,r){var t=e.constructor;switch(n){case tr:return Oe(e);case Jn:case Qn:return new t(+e);case ir:return qn(e,r);case sr:case ar:case ur:case fr:case or:case hr:case lr:case gr:case dr:return un(e,r);case zn:return new t;case Vn:case nr:return new t(e);case kn:return Xn(e);case er:return new t;case rr:return Wn(e)}}var _r="[object Map]";function pr(e){return C(e)&&I(e)==_r}var le=x&&x.isMap,br=le?me(le):pr;const yr=br;var Ar="[object Set]";function Tr(e){return C(e)&&I(e)==Ar}var ge=x&&x.isSet,vr=ge?me(ge):Tr;const $r=vr;var Er=1,Or=2,mr=4,Re="[object Arguments]",wr="[object Array]",Pr="[object Boolean]",Lr="[object Date]",Ir="[object Error]",xe="[object Function]",Cr="[object GeneratorFunction]",Sr="[object Map]",Nr="[object Number]",Ge="[object Object]",Fr="[object RegExp]",Mr="[object Set]",Dr="[object String]",Rr="[object Symbol]",xr="[object WeakMap]",Gr="[object ArrayBuffer]",Ur="[object DataView]",Br="[object Float32Array]",jr="[object Float64Array]",Kr="[object Int8Array]",Hr="[object Int16Array]",Yr="[object Int32Array]",qr="[object Uint8Array]",Zr="[object Uint8ClampedArray]",Xr="[object Uint16Array]",Wr="[object Uint32Array]",l={};l[Re]=l[wr]=l[Gr]=l[Ur]=l[Pr]=l[Lr]=l[Br]=l[jr]=l[Kr]=l[Hr]=l[Yr]=l[Sr]=l[Nr]=l[Ge]=l[Fr]=l[Mr]=l[Dr]=l[Rr]=l[qr]=l[Zr]=l[Xr]=l[Wr]=!0;l[Ir]=l[xe]=l[xr]=!1;function j(e,n,r,t,i,s){var a,u=n&Er,f=n&Or,d=n&mr;if(r&&(a=i?r(e,t,i,s):r(e)),a!==void 0)return a;if(!Ee(e))return e;var g=y(e);if(g){if(a=Yn(e),!u)return en(e,a)}else{var o=I(e),h=o==xe||o==Cr;if(q(e))return nn(e,u);if(o==Ge||o==Re||h&&!i){if(a=f||h?{}:rn(e),!u)return f?Bn(e,Fn(a,e)):xn(e,Nn(a,e))}else{if(!l[o])return i?e:{};a=cr(e,o,u)}}s||(s=new L);var A=s.get(e);if(A)return A;s.set(e,a),$r(e)?e.forEach(function(c){a.add(j(c,n,r,c,e,s))}):yr(e)&&e.forEach(function(c,_){a.set(_,j(c,n,r,_,e,s))});var p=d?f?jn:Z:f?X:T,b=g?void 0:p(e);return Le(b||e,function(c,_){b&&(_=c,c=e[_]),tn(a,_,j(c,n,r,_,e,s))}),a}var Jr="__lodash_hash_undefined__";function Qr(e){return this.__data__.set(e,Jr),this}function zr(e){return this.__data__.has(e)}function S(e){var n=-1,r=e==null?0:e.length;for(this.__data__=new ze;++n<r;)this.add(e[n])}S.prototype.add=S.prototype.push=Qr;S.prototype.has=zr;function Vr(e,n){for(var r=-1,t=e==null?0:e.length;++r<t;)if(n(e[r],r,e))return!0;return!1}function Ue(e,n){return e.has(n)}var kr=1,et=2;function Be(e,n,r,t,i,s){var a=r&kr,u=e.length,f=n.length;if(u!=f&&!(a&&f>u))return!1;var d=s.get(e),g=s.get(n);if(d&&g)return d==n&&g==e;var o=-1,h=!0,A=r&et?new S:void 0;for(s.set(e,n),s.set(n,e);++o<u;){var p=e[o],b=n[o];if(t)var c=a?t(b,p,o,n,e,s):t(p,b,o,e,n,s);if(c!==void 0){if(c)continue;h=!1;break}if(A){if(!Vr(n,function(_,E){if(!Ue(A,E)&&(p===_||i(p,_,r,t,s)))return A.push(E)})){h=!1;break}}else if(!(p===b||i(p,b,r,t,s))){h=!1;break}}return s.delete(e),s.delete(n),h}function nt(e){var n=-1,r=Array(e.size);return e.forEach(function(t,i){r[++n]=[i,t]}),r}function V(e){var n=-1,r=Array(e.size);return e.forEach(function(t){r[++n]=t}),r}var rt=1,tt=2,it="[object Boolean]",st="[object Date]",at="[object Error]",ut="[object Map]",ft="[object Number]",ot="[object RegExp]",ht="[object Set]",lt="[object String]",gt="[object Symbol]",dt="[object ArrayBuffer]",ct="[object DataView]",de=$?$.prototype:void 0,K=de?de.valueOf:void 0;function _t(e,n,r,t,i,s,a){switch(r){case ct:if(e.byteLength!=n.byteLength||e.byteOffset!=n.byteOffset)return!1;e=e.buffer,n=n.buffer;case dt:return!(e.byteLength!=n.byteLength||!s(new ie(e),new ie(n)));case it:case st:case ft:return hn(+e,+n);case at:return e.name==n.name&&e.message==n.message;case ot:case lt:return e==n+"";case ut:var u=nt;case ht:var f=t&rt;if(u||(u=V),e.size!=n.size&&!f)return!1;var d=a.get(e);if(d)return d==n;t|=tt,a.set(e,n);var g=Be(u(e),u(n),t,i,s,a);return a.delete(e),g;case gt:if(K)return K.call(e)==K.call(n)}return!1}var pt=1,bt=Object.prototype,yt=bt.hasOwnProperty;function At(e,n,r,t,i,s){var a=r&pt,u=Z(e),f=u.length,d=Z(n),g=d.length;if(f!=g&&!a)return!1;for(var o=f;o--;){var h=u[o];if(!(a?h in n:yt.call(n,h)))return!1}var A=s.get(e),p=s.get(n);if(A&&p)return A==n&&p==e;var b=!0;s.set(e,n),s.set(n,e);for(var c=a;++o<f;){h=u[o];var _=e[h],E=n[h];if(t)var ne=a?t(E,_,h,n,e,s):t(_,E,h,e,n,s);if(!(ne===void 0?_===E||i(_,E,r,t,s):ne)){b=!1;break}c||(c=h=="constructor")}if(b&&!c){var N=e.constructor,F=n.constructor;N!=F&&"constructor"in e&&"constructor"in n&&!(typeof N=="function"&&N instanceof N&&typeof F=="function"&&F instanceof F)&&(b=!1)}return s.delete(e),s.delete(n),b}var Tt=1,ce="[object Arguments]",_e="[object Array]",D="[object Object]",vt=Object.prototype,pe=vt.hasOwnProperty;function $t(e,n,r,t,i,s){var a=y(e),u=y(n),f=a?_e:I(e),d=u?_e:I(n);f=f==ce?D:f,d=d==ce?D:d;var g=f==D,o=d==D,h=f==d;if(h&&q(e)){if(!q(n))return!1;a=!0,g=!1}if(h&&!g)return s||(s=new L),a||fn(e)?Be(e,n,r,t,i,s):_t(e,n,f,r,t,i,s);if(!(r&Tt)){var A=g&&pe.call(e,"__wrapped__"),p=o&&pe.call(n,"__wrapped__");if(A||p){var b=A?e.value():e,c=p?n.value():n;return s||(s=new L),i(b,c,r,t,s)}}return h?(s||(s=new L),At(e,n,r,t,i,s)):!1}function k(e,n,r,t,i){return e===n?!0:e==null||n==null||!C(e)&&!C(n)?e!==e&&n!==n:$t(e,n,r,t,k,i)}var Et=1,Ot=2;function mt(e,n,r,t){var i=r.length,s=i,a=!t;if(e==null)return!s;for(e=Object(e);i--;){var u=r[i];if(a&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i<s;){u=r[i];var f=u[0],d=e[f],g=u[1];if(a&&u[2]){if(d===void 0&&!(f in e))return!1}else{var o=new L;if(t)var h=t(d,g,f,e,n,o);if(!(h===void 0?k(g,d,Et|Ot,t,o):h))return!1}}return!0}function je(e){return e===e&&!Ee(e)}function wt(e){for(var n=T(e),r=n.length;r--;){var t=n[r],i=e[t];n[r]=[t,i,je(i)]}return n}function Ke(e,n){return function(r){return r==null?!1:r[e]===n&&(n!==void 0||e in Object(r))}}function Pt(e){var n=wt(e);return n.length==1&&n[0][2]?Ke(n[0][0],n[0][1]):function(r){return r===e||mt(r,e,n)}}function Lt(e,n){return e!=null&&n in Object(e)}function He(e,n,r){n=Ie(n,e);for(var t=-1,i=n.length,s=!1;++t<i;){var a=U(n[t]);if(!(s=e!=null&&r(e,a)))break;e=e[a]}return s||++t!=i?s:(i=e==null?0:e.length,!!i&&Ve(i)&&ke(a,i)&&(y(e)||ve(e)))}function It(e,n){return e!=null&&He(e,n,Lt)}var Ct=1,St=2;function Nt(e,n){return J(e)&&je(n)?Ke(U(e),n):function(r){var t=In(r,e);return t===void 0&&t===n?It(r,e):k(n,t,Ct|St)}}function Ft(e){return function(n){return n==null?void 0:n[e]}}function Mt(e){return function(n){return Ce(n,e)}}function Dt(e){return J(e)?Ft(U(e)):Mt(e)}function Ye(e){return typeof e=="function"?e:e==null?$e:typeof e=="object"?y(e)?Nt(e[0],e[1]):Pt(e):Dt(e)}function Rt(e,n){return e&&sn(e,n,T)}function xt(e,n){return function(r,t){if(r==null)return r;if(!Te(r))return e(r,t);for(var i=r.length,s=n?i:-1,a=Object(r);(n?s--:++s<i)&&t(a[s],s,a)!==!1;);return r}}var Gt=xt(Rt);const ee=Gt;function Ut(e,n,r){for(var t=-1,i=e==null?0:e.length;++t<i;)if(r(n,e[t]))return!0;return!1}function Bt(e){return typeof e=="function"?e:$e}function O(e,n){var r=y(e)?Le:ee;return r(e,Bt(n))}function jt(e,n){var r=[];return ee(e,function(t,i,s){n(t,i,s)&&r.push(t)}),r}function R(e,n){var r=y(e)?Ne:jt;return r(e,Ye(n))}var Kt=Object.prototype,Ht=Kt.hasOwnProperty;function Yt(e,n){return e!=null&&Ht.call(e,n)}function v(e,n){return e!=null&&He(e,n,Yt)}function qt(e,n){return we(n,function(r){return e[r]})}function H(e){return e==null?[]:qt(e,T(e))}function w(e){return e===void 0}function Zt(e,n,r,t,i){return i(e,function(s,a,u){r=t?(t=!1,s):n(r,s,a,u)}),r}function Xt(e,n,r){var t=y(e)?Sn:Zt,i=arguments.length<3;return t(e,Ye(n),r,i,ee)}var Wt=1/0,Jt=B&&1/V(new B([,-0]))[1]==Wt?function(e){return new B(e)}:dn;const Qt=Jt;var zt=200;function Vt(e,n,r){var t=-1,i=yn,s=e.length,a=!0,u=[],f=u;if(r)a=!1,i=Ut;else if(s>=zt){var d=n?null:Qt(e);if(d)return V(d);a=!1,i=Ue,f=new S}else f=n?[]:u;e:for(;++t<s;){var g=e[t],o=n?n(g):g;if(g=r||g!==0?g:0,a&&o===o){for(var h=f.length;h--;)if(f[h]===o)continue e;n&&f.push(o),u.push(g)}else i(f,o,r)||(f!==u&&f.push(o),u.push(g))}return u}var kt=Ze(function(e){return Vt(Se(e,1,Qe,!0))});const ei=kt;var ni="\0",m="\0",be="";class qe{constructor(n={}){this._isDirected=v(n,"directed")?n.directed:!0,this._isMultigraph=v(n,"multigraph")?n.multigraph:!1,this._isCompound=v(n,"compound")?n.compound:!1,this._label=void 0,this._defaultNodeLabelFn=M(void 0),this._defaultEdgeLabelFn=M(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[m]={}),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(n){return this._label=n,this}graph(){return this._label}setDefaultNodeLabel(n){return re(n)||(n=M(n)),this._defaultNodeLabelFn=n,this}nodeCount(){return this._nodeCount}nodes(){return T(this._nodes)}sources(){var n=this;return R(this.nodes(),function(r){return te(n._in[r])})}sinks(){var n=this;return R(this.nodes(),function(r){return te(n._out[r])})}setNodes(n,r){var t=arguments,i=this;return O(n,function(s){t.length>1?i.setNode(s,r):i.setNode(s)}),this}setNode(n,r){return v(this._nodes,n)?(arguments.length>1&&(this._nodes[n]=r),this):(this._nodes[n]=arguments.length>1?r:this._defaultNodeLabelFn(n),this._isCompound&&(this._parent[n]=m,this._children[n]={},this._children[m][n]=!0),this._in[n]={},this._preds[n]={},this._out[n]={},this._sucs[n]={},++this._nodeCount,this)}node(n){return this._nodes[n]}hasNode(n){return v(this._nodes,n)}removeNode(n){var r=this;if(v(this._nodes,n)){var t=function(i){r.removeEdge(r._edgeObjs[i])};delete this._nodes[n],this._isCompound&&(this._removeFromParentsChildList(n),delete this._parent[n],O(this.children(n),function(i){r.setParent(i)}),delete this._children[n]),O(T(this._in[n]),t),delete this._in[n],delete this._preds[n],O(T(this._out[n]),t),delete this._out[n],delete this._sucs[n],--this._nodeCount}return this}setParent(n,r){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(w(r))r=m;else{r+="";for(var t=r;!w(t);t=this.parent(t))if(t===n)throw new Error("Setting "+r+" as parent of "+n+" would create a cycle");this.setNode(r)}return this.setNode(n),this._removeFromParentsChildList(n),this._parent[n]=r,this._children[r][n]=!0,this}_removeFromParentsChildList(n){delete this._children[this._parent[n]][n]}parent(n){if(this._isCompound){var r=this._parent[n];if(r!==m)return r}}children(n){if(w(n)&&(n=m),this._isCompound){var r=this._children[n];if(r)return T(r)}else{if(n===m)return this.nodes();if(this.hasNode(n))return[]}}predecessors(n){var r=this._preds[n];if(r)return T(r)}successors(n){var r=this._sucs[n];if(r)return T(r)}neighbors(n){var r=this.predecessors(n);if(r)return ei(r,this.successors(n))}isLeaf(n){var r;return this.isDirected()?r=this.successors(n):r=this.neighbors(n),r.length===0}filterNodes(n){var r=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});r.setGraph(this.graph());var t=this;O(this._nodes,function(a,u){n(u)&&r.setNode(u,a)}),O(this._edgeObjs,function(a){r.hasNode(a.v)&&r.hasNode(a.w)&&r.setEdge(a,t.edge(a))});var i={};function s(a){var u=t.parent(a);return u===void 0||r.hasNode(u)?(i[a]=u,u):u in i?i[u]:s(u)}return this._isCompound&&O(r.nodes(),function(a){r.setParent(a,s(a))}),r}setDefaultEdgeLabel(n){return re(n)||(n=M(n)),this._defaultEdgeLabelFn=n,this}edgeCount(){return this._edgeCount}edges(){return H(this._edgeObjs)}setPath(n,r){var t=this,i=arguments;return Xt(n,function(s,a){return i.length>1?t.setEdge(s,a,r):t.setEdge(s,a),a}),this}setEdge(){var n,r,t,i,s=!1,a=arguments[0];typeof a=="object"&&a!==null&&"v"in a?(n=a.v,r=a.w,t=a.name,arguments.length===2&&(i=arguments[1],s=!0)):(n=a,r=arguments[1],t=arguments[3],arguments.length>2&&(i=arguments[2],s=!0)),n=""+n,r=""+r,w(t)||(t=""+t);var u=P(this._isDirected,n,r,t);if(v(this._edgeLabels,u))return s&&(this._edgeLabels[u]=i),this;if(!w(t)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(n),this.setNode(r),this._edgeLabels[u]=s?i:this._defaultEdgeLabelFn(n,r,t);var f=ri(this._isDirected,n,r,t);return n=f.v,r=f.w,Object.freeze(f),this._edgeObjs[u]=f,ye(this._preds[r],n),ye(this._sucs[n],r),this._in[r][u]=f,this._out[n][u]=f,this._edgeCount++,this}edge(n,r,t){var i=arguments.length===1?Y(this._isDirected,arguments[0]):P(this._isDirected,n,r,t);return this._edgeLabels[i]}hasEdge(n,r,t){var i=arguments.length===1?Y(this._isDirected,arguments[0]):P(this._isDirected,n,r,t);return v(this._edgeLabels,i)}removeEdge(n,r,t){var i=arguments.length===1?Y(this._isDirected,arguments[0]):P(this._isDirected,n,r,t),s=this._edgeObjs[i];return s&&(n=s.v,r=s.w,delete this._edgeLabels[i],delete this._edgeObjs[i],Ae(this._preds[r],n),Ae(this._sucs[n],r),delete this._in[r][i],delete this._out[n][i],this._edgeCount--),this}inEdges(n,r){var t=this._in[n];if(t){var i=H(t);return r?R(i,function(s){return s.v===r}):i}}outEdges(n,r){var t=this._out[n];if(t){var i=H(t);return r?R(i,function(s){return s.w===r}):i}}nodeEdges(n,r){var t=this.inEdges(n,r);if(t)return t.concat(this.outEdges(n,r))}}qe.prototype._nodeCount=0;qe.prototype._edgeCount=0;function ye(e,n){e[n]?e[n]++:e[n]=1}function Ae(e,n){--e[n]||delete e[n]}function P(e,n,r,t){var i=""+n,s=""+r;if(!e&&i>s){var a=i;i=s,s=a}return i+be+s+be+(w(t)?ni:t)}function ri(e,n,r,t){var i=""+n,s=""+r;if(!e&&i>s){var a=i;i=s,s=a}var u={v:i,w:s};return t&&(u.name=t),u}function Y(e,n){return P(e,n.v,n.w,n.name)}export{qe as G,we as a,Se as b,ee as c,Ye as d,Rt as e,O as f,Ce as g,v as h,w as i,j,Bt as k,Ie as l,It as m,R as n,W as o,U as p,T as q,Xt as r,cn as s,Pn as t,H as v};
import{c as C,s as vt,g as Ct,a as Ot,b as Pt,C as Gt,D as It,l as B,j as D,E as St,h as At,v as Nt,H as Ht,I as Bt}from"./slidev/5-BKiUV7YW.js";import"./modules/vue-Dn3czbSS.js";import"./index-D2S1x1Oe.js";import"./modules/shiki-CuMFyo6Z.js";import"./modules/file-saver-EUMWMpoS.js";import"./slidev/default-CY-sqYNf.js";import"./slidev/context-CYh2-pv1.js";var mt=function(){var r=function(I,o,u,d){for(u=u||{},d=I.length;d--;u[I[d]]=o);return u},n=[1,3],l=[1,6],h=[1,4],i=[1,5],c=[2,5],p=[1,12],m=[5,7,13,19,21,23,24,26,28,31,37,40,47],x=[7,13,19,21,23,24,26,28,31,37,40],y=[7,12,13,19,21,23,24,26,28,31,37,40],a=[7,13,47],R=[1,42],_=[1,41],b=[7,13,29,32,35,38,47],f=[1,55],k=[1,56],g=[1,57],E=[7,13,32,35,42,47],z={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,GG:5,document:6,EOF:7,":":8,DIR:9,options:10,body:11,OPT:12,NL:13,line:14,statement:15,commitStatement:16,mergeStatement:17,cherryPickStatement:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,section:24,branchStatement:25,CHECKOUT:26,ref:27,BRANCH:28,ORDER:29,NUM:30,CHERRY_PICK:31,COMMIT_ID:32,STR:33,PARENT_COMMIT: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,ID:46,";":47,$accept:0,$end:1},terminals_:{2:"error",5:"GG",7:"EOF",8:":",9:"DIR",12:"OPT",13:"NL",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"section",26:"CHECKOUT",28:"BRANCH",29:"ORDER",30:"NUM",31:"CHERRY_PICK",32:"COMMIT_ID",33:"STR",34:"PARENT_COMMIT",35:"COMMIT_TAG",36:"EMPTYSTR",37:"MERGE",38:"COMMIT_TYPE",40:"COMMIT",42:"COMMIT_MSG",43:"NORMAL",44:"REVERSE",45:"HIGHLIGHT",46:"ID",47:";"},productions_:[0,[3,2],[3,3],[3,4],[3,5],[6,0],[6,2],[10,2],[10,1],[11,0],[11,2],[14,2],[14,1],[15,1],[15,1],[15,1],[15,2],[15,2],[15,1],[15,1],[15,1],[15,2],[25,2],[25,4],[18,3],[18,5],[18,5],[18,7],[18,7],[18,5],[18,5],[18,5],[18,7],[18,7],[18,7],[18,7],[17,2],[17,4],[17,4],[17,4],[17,6],[17,6],[17,6],[17,6],[17,6],[17,6],[17,8],[17,8],[17,8],[17,8],[17,8],[17,8],[16,2],[16,3],[16,3],[16,5],[16,5],[16,3],[16,5],[16,5],[16,5],[16,5],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,3],[16,5],[16,5],[16,5],[16,5],[16,5],[16,5],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[41,0],[41,1],[39,1],[39,1],[39,1],[27,1],[27,1],[4,1],[4,1],[4,1]],performAction:function(o,u,d,s,T,t,X){var e=t.length-1;switch(T){case 2:return t[e];case 3:return t[e-1];case 4:return s.setDirection(t[e-3]),t[e-1];case 6:s.setOptions(t[e-1]),this.$=t[e];break;case 7:t[e-1]+=t[e],this.$=t[e-1];break;case 9:this.$=[];break;case 10:t[e-1].push(t[e]),this.$=t[e-1];break;case 11:this.$=t[e-1];break;case 16:this.$=t[e].trim(),s.setAccTitle(this.$);break;case 17:case 18:this.$=t[e].trim(),s.setAccDescription(this.$);break;case 19:s.addSection(t[e].substr(8)),this.$=t[e].substr(8);break;case 21:s.checkout(t[e]);break;case 22:s.branch(t[e]);break;case 23:s.branch(t[e-2],t[e]);break;case 24:s.cherryPick(t[e],"",void 0);break;case 25:s.cherryPick(t[e-2],"",void 0,t[e]);break;case 26:s.cherryPick(t[e-2],"",t[e]);break;case 27:s.cherryPick(t[e-4],"",t[e],t[e-2]);break;case 28:s.cherryPick(t[e-4],"",t[e-2],t[e]);break;case 29:s.cherryPick(t[e],"",t[e-2]);break;case 30:s.cherryPick(t[e],"","");break;case 31:s.cherryPick(t[e-2],"","");break;case 32:s.cherryPick(t[e-4],"","",t[e-2]);break;case 33:s.cherryPick(t[e-4],"","",t[e]);break;case 34:s.cherryPick(t[e-2],"",t[e-4],t[e]);break;case 35:s.cherryPick(t[e-2],"","",t[e]);break;case 36:s.merge(t[e],"","","");break;case 37:s.merge(t[e-2],t[e],"","");break;case 38:s.merge(t[e-2],"",t[e],"");break;case 39:s.merge(t[e-2],"","",t[e]);break;case 40:s.merge(t[e-4],t[e],"",t[e-2]);break;case 41:s.merge(t[e-4],"",t[e],t[e-2]);break;case 42:s.merge(t[e-4],"",t[e-2],t[e]);break;case 43:s.merge(t[e-4],t[e-2],t[e],"");break;case 44:s.merge(t[e-4],t[e-2],"",t[e]);break;case 45:s.merge(t[e-4],t[e],t[e-2],"");break;case 46:s.merge(t[e-6],t[e-4],t[e-2],t[e]);break;case 47:s.merge(t[e-6],t[e],t[e-4],t[e-2]);break;case 48:s.merge(t[e-6],t[e-4],t[e],t[e-2]);break;case 49:s.merge(t[e-6],t[e-2],t[e-4],t[e]);break;case 50:s.merge(t[e-6],t[e],t[e-2],t[e-4]);break;case 51:s.merge(t[e-6],t[e-2],t[e],t[e-4]);break;case 52:s.commit(t[e]);break;case 53:s.commit("","",s.commitType.NORMAL,t[e]);break;case 54:s.commit("","",t[e],"");break;case 55:s.commit("","",t[e],t[e-2]);break;case 56:s.commit("","",t[e-2],t[e]);break;case 57:s.commit("",t[e],s.commitType.NORMAL,"");break;case 58:s.commit("",t[e-2],s.commitType.NORMAL,t[e]);break;case 59:s.commit("",t[e],s.commitType.NORMAL,t[e-2]);break;case 60:s.commit("",t[e-2],t[e],"");break;case 61:s.commit("",t[e],t[e-2],"");break;case 62:s.commit("",t[e-4],t[e-2],t[e]);break;case 63:s.commit("",t[e-4],t[e],t[e-2]);break;case 64:s.commit("",t[e-2],t[e-4],t[e]);break;case 65:s.commit("",t[e],t[e-4],t[e-2]);break;case 66:s.commit("",t[e],t[e-2],t[e-4]);break;case 67:s.commit("",t[e-2],t[e],t[e-4]);break;case 68:s.commit(t[e],"",s.commitType.NORMAL,"");break;case 69:s.commit(t[e],"",s.commitType.NORMAL,t[e-2]);break;case 70:s.commit(t[e-2],"",s.commitType.NORMAL,t[e]);break;case 71:s.commit(t[e-2],"",t[e],"");break;case 72:s.commit(t[e],"",t[e-2],"");break;case 73:s.commit(t[e],t[e-2],s.commitType.NORMAL,"");break;case 74:s.commit(t[e-2],t[e],s.commitType.NORMAL,"");break;case 75:s.commit(t[e-4],"",t[e-2],t[e]);break;case 76:s.commit(t[e-4],"",t[e],t[e-2]);break;case 77:s.commit(t[e-2],"",t[e-4],t[e]);break;case 78:s.commit(t[e],"",t[e-4],t[e-2]);break;case 79:s.commit(t[e],"",t[e-2],t[e-4]);break;case 80:s.commit(t[e-2],"",t[e],t[e-4]);break;case 81:s.commit(t[e-4],t[e],t[e-2],"");break;case 82:s.commit(t[e-4],t[e-2],t[e],"");break;case 83:s.commit(t[e-2],t[e],t[e-4],"");break;case 84:s.commit(t[e],t[e-2],t[e-4],"");break;case 85:s.commit(t[e],t[e-4],t[e-2],"");break;case 86:s.commit(t[e-2],t[e-4],t[e],"");break;case 87:s.commit(t[e-4],t[e],s.commitType.NORMAL,t[e-2]);break;case 88:s.commit(t[e-4],t[e-2],s.commitType.NORMAL,t[e]);break;case 89:s.commit(t[e-2],t[e],s.commitType.NORMAL,t[e-4]);break;case 90:s.commit(t[e],t[e-2],s.commitType.NORMAL,t[e-4]);break;case 91:s.commit(t[e],t[e-4],s.commitType.NORMAL,t[e-2]);break;case 92:s.commit(t[e-2],t[e-4],s.commitType.NORMAL,t[e]);break;case 93:s.commit(t[e-6],t[e-4],t[e-2],t[e]);break;case 94:s.commit(t[e-6],t[e-4],t[e],t[e-2]);break;case 95:s.commit(t[e-6],t[e-2],t[e-4],t[e]);break;case 96:s.commit(t[e-6],t[e],t[e-4],t[e-2]);break;case 97:s.commit(t[e-6],t[e-2],t[e],t[e-4]);break;case 98:s.commit(t[e-6],t[e],t[e-2],t[e-4]);break;case 99:s.commit(t[e-4],t[e-6],t[e-2],t[e]);break;case 100:s.commit(t[e-4],t[e-6],t[e],t[e-2]);break;case 101:s.commit(t[e-2],t[e-6],t[e-4],t[e]);break;case 102:s.commit(t[e],t[e-6],t[e-4],t[e-2]);break;case 103:s.commit(t[e-2],t[e-6],t[e],t[e-4]);break;case 104:s.commit(t[e],t[e-6],t[e-2],t[e-4]);break;case 105:s.commit(t[e],t[e-4],t[e-2],t[e-6]);break;case 106:s.commit(t[e-2],t[e-4],t[e],t[e-6]);break;case 107:s.commit(t[e],t[e-2],t[e-4],t[e-6]);break;case 108:s.commit(t[e-2],t[e],t[e-4],t[e-6]);break;case 109:s.commit(t[e-4],t[e-2],t[e],t[e-6]);break;case 110:s.commit(t[e-4],t[e],t[e-2],t[e-6]);break;case 111:s.commit(t[e-2],t[e-4],t[e-6],t[e]);break;case 112:s.commit(t[e],t[e-4],t[e-6],t[e-2]);break;case 113:s.commit(t[e-2],t[e],t[e-6],t[e-4]);break;case 114:s.commit(t[e],t[e-2],t[e-6],t[e-4]);break;case 115:s.commit(t[e-4],t[e-2],t[e-6],t[e]);break;case 116:s.commit(t[e-4],t[e],t[e-6],t[e-2]);break;case 117:this.$="";break;case 118:this.$=t[e];break;case 119:this.$=s.commitType.NORMAL;break;case 120:this.$=s.commitType.REVERSE;break;case 121:this.$=s.commitType.HIGHLIGHT;break}},table:[{3:1,4:2,5:n,7:l,13:h,47:i},{1:[3]},{3:7,4:2,5:n,7:l,13:h,47:i},{6:8,7:c,8:[1,9],9:[1,10],10:11,13:p},r(m,[2,124]),r(m,[2,125]),r(m,[2,126]),{1:[2,1]},{7:[1,13]},{6:14,7:c,10:11,13:p},{8:[1,15]},r(x,[2,9],{11:16,12:[1,17]}),r(y,[2,8]),{1:[2,2]},{7:[1,18]},{6:19,7:c,10:11,13:p},{7:[2,6],13:[1,22],14:20,15:21,16:23,17:24,18:25,19:[1,26],21:[1,27],23:[1,28],24:[1,29],25:30,26:[1,31],28:[1,35],31:[1,34],37:[1,33],40:[1,32]},r(y,[2,7]),{1:[2,3]},{7:[1,36]},r(x,[2,10]),{4:37,7:l,13:h,47:i},r(x,[2,12]),r(a,[2,13]),r(a,[2,14]),r(a,[2,15]),{20:[1,38]},{22:[1,39]},r(a,[2,18]),r(a,[2,19]),r(a,[2,20]),{27:40,33:R,46:_},r(a,[2,117],{41:43,32:[1,46],33:[1,48],35:[1,44],38:[1,45],42:[1,47]}),{27:49,33:R,46:_},{32:[1,50],35:[1,51]},{27:52,33:R,46:_},{1:[2,4]},r(x,[2,11]),r(a,[2,16]),r(a,[2,17]),r(a,[2,21]),r(b,[2,122]),r(b,[2,123]),r(a,[2,52]),{33:[1,53]},{39:54,43:f,44:k,45:g},{33:[1,58]},{33:[1,59]},r(a,[2,118]),r(a,[2,36],{32:[1,60],35:[1,62],38:[1,61]}),{33:[1,63]},{33:[1,64],36:[1,65]},r(a,[2,22],{29:[1,66]}),r(a,[2,53],{32:[1,68],38:[1,67],42:[1,69]}),r(a,[2,54],{32:[1,71],35:[1,70],42:[1,72]}),r(E,[2,119]),r(E,[2,120]),r(E,[2,121]),r(a,[2,57],{35:[1,73],38:[1,74],42:[1,75]}),r(a,[2,68],{32:[1,78],35:[1,76],38:[1,77]}),{33:[1,79]},{39:80,43:f,44:k,45:g},{33:[1,81]},r(a,[2,24],{34:[1,82],35:[1,83]}),{32:[1,84]},{32:[1,85]},{30:[1,86]},{39:87,43:f,44:k,45:g},{33:[1,88]},{33:[1,89]},{33:[1,90]},{33:[1,91]},{33:[1,92]},{33:[1,93]},{39:94,43:f,44:k,45:g},{33:[1,95]},{33:[1,96]},{39:97,43:f,44:k,45:g},{33:[1,98]},r(a,[2,37],{35:[1,100],38:[1,99]}),r(a,[2,38],{32:[1,102],35:[1,101]}),r(a,[2,39],{32:[1,103],38:[1,104]}),{33:[1,105]},{33:[1,106],36:[1,107]},{33:[1,108]},{33:[1,109]},r(a,[2,23]),r(a,[2,55],{32:[1,110],42:[1,111]}),r(a,[2,59],{38:[1,112],42:[1,113]}),r(a,[2,69],{32:[1,115],38:[1,114]}),r(a,[2,56],{32:[1,116],42:[1,117]}),r(a,[2,61],{35:[1,118],42:[1,119]}),r(a,[2,72],{32:[1,121],35:[1,120]}),r(a,[2,58],{38:[1,122],42:[1,123]}),r(a,[2,60],{35:[1,124],42:[1,125]}),r(a,[2,73],{35:[1,127],38:[1,126]}),r(a,[2,70],{32:[1,129],38:[1,128]}),r(a,[2,71],{32:[1,131],35:[1,130]}),r(a,[2,74],{35:[1,133],38:[1,132]}),{39:134,43:f,44:k,45:g},{33:[1,135]},{33:[1,136]},{33:[1,137]},{33:[1,138]},{39:139,43:f,44:k,45:g},r(a,[2,25],{35:[1,140]}),r(a,[2,26],{34:[1,141]}),r(a,[2,31],{34:[1,142]}),r(a,[2,29],{34:[1,143]}),r(a,[2,30],{34:[1,144]}),{33:[1,145]},{33:[1,146]},{39:147,43:f,44:k,45:g},{33:[1,148]},{39:149,43:f,44:k,45:g},{33:[1,150]},{33:[1,151]},{33:[1,152]},{33:[1,153]},{33:[1,154]},{33:[1,155]},{33:[1,156]},{39:157,43:f,44:k,45:g},{33:[1,158]},{33:[1,159]},{33:[1,160]},{39:161,43:f,44:k,45:g},{33:[1,162]},{39:163,43:f,44:k,45:g},{33:[1,164]},{33:[1,165]},{33:[1,166]},{39:167,43:f,44:k,45:g},{33:[1,168]},r(a,[2,43],{35:[1,169]}),r(a,[2,44],{38:[1,170]}),r(a,[2,42],{32:[1,171]}),r(a,[2,45],{35:[1,172]}),r(a,[2,40],{38:[1,173]}),r(a,[2,41],{32:[1,174]}),{33:[1,175],36:[1,176]},{33:[1,177]},{33:[1,178]},{33:[1,179]},{33:[1,180]},r(a,[2,66],{42:[1,181]}),r(a,[2,79],{32:[1,182]}),r(a,[2,67],{42:[1,183]}),r(a,[2,90],{38:[1,184]}),r(a,[2,80],{32:[1,185]}),r(a,[2,89],{38:[1,186]}),r(a,[2,65],{42:[1,187]}),r(a,[2,78],{32:[1,188]}),r(a,[2,64],{42:[1,189]}),r(a,[2,84],{35:[1,190]}),r(a,[2,77],{32:[1,191]}),r(a,[2,83],{35:[1,192]}),r(a,[2,63],{42:[1,193]}),r(a,[2,91],{38:[1,194]}),r(a,[2,62],{42:[1,195]}),r(a,[2,85],{35:[1,196]}),r(a,[2,86],{35:[1,197]}),r(a,[2,92],{38:[1,198]}),r(a,[2,76],{32:[1,199]}),r(a,[2,87],{38:[1,200]}),r(a,[2,75],{32:[1,201]}),r(a,[2,81],{35:[1,202]}),r(a,[2,82],{35:[1,203]}),r(a,[2,88],{38:[1,204]}),{33:[1,205]},{39:206,43:f,44:k,45:g},{33:[1,207]},{33:[1,208]},{39:209,43:f,44:k,45:g},{33:[1,210]},r(a,[2,27]),r(a,[2,32]),r(a,[2,28]),r(a,[2,33]),r(a,[2,34]),r(a,[2,35]),{33:[1,211]},{33:[1,212]},{33:[1,213]},{39:214,43:f,44:k,45:g},{33:[1,215]},{39:216,43:f,44:k,45:g},{33:[1,217]},{33:[1,218]},{33:[1,219]},{33:[1,220]},{33:[1,221]},{33:[1,222]},{33:[1,223]},{39:224,43:f,44:k,45:g},{33:[1,225]},{33:[1,226]},{33:[1,227]},{39:228,43:f,44:k,45:g},{33:[1,229]},{39:230,43:f,44:k,45:g},{33:[1,231]},{33:[1,232]},{33:[1,233]},{39:234,43:f,44:k,45:g},r(a,[2,46]),r(a,[2,48]),r(a,[2,47]),r(a,[2,49]),r(a,[2,51]),r(a,[2,50]),r(a,[2,107]),r(a,[2,108]),r(a,[2,105]),r(a,[2,106]),r(a,[2,110]),r(a,[2,109]),r(a,[2,114]),r(a,[2,113]),r(a,[2,112]),r(a,[2,111]),r(a,[2,116]),r(a,[2,115]),r(a,[2,104]),r(a,[2,103]),r(a,[2,102]),r(a,[2,101]),r(a,[2,99]),r(a,[2,100]),r(a,[2,98]),r(a,[2,97]),r(a,[2,96]),r(a,[2,95]),r(a,[2,93]),r(a,[2,94])],defaultActions:{7:[2,1],13:[2,2],18:[2,3],36:[2,4]},parseError:function(o,u){if(u.recoverable)this.trace(o);else{var d=new Error(o);throw d.hash=u,d}},parse:function(o){var u=this,d=[0],s=[],T=[null],t=[],X=this.table,e="",rt=0,ft=0,wt=2,pt=1,Lt=t.slice.call(arguments,1),O=Object.create(this.lexer),F={yy:{}};for(var ct in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ct)&&(F.yy[ct]=this.yy[ct]);O.setInput(o,F.yy),F.yy.lexer=O,F.yy.parser=this,typeof O.yylloc>"u"&&(O.yylloc={});var ot=O.yylloc;t.push(ot);var Rt=O.options&&O.options.ranges;typeof F.yy.parseError=="function"?this.parseError=F.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Mt(){var q;return q=s.pop()||O.lex()||pt,typeof q!="number"&&(q instanceof Array&&(s=q,q=s.pop()),q=u.symbols_[q]||q),q}for(var N,K,V,lt,J={},it,j,bt,st;;){if(K=d[d.length-1],this.defaultActions[K]?V=this.defaultActions[K]:((N===null||typeof N>"u")&&(N=Mt()),V=X[K]&&X[K][N]),typeof V>"u"||!V.length||!V[0]){var ht="";st=[];for(it in X[K])this.terminals_[it]&&it>wt&&st.push("'"+this.terminals_[it]+"'");O.showPosition?ht="Parse error on line "+(rt+1)+`:
`+O.showPosition()+`
Expecting `+st.join(", ")+", got '"+(this.terminals_[N]||N)+"'":ht="Parse error on line "+(rt+1)+": Unexpected "+(N==pt?"end of input":"'"+(this.terminals_[N]||N)+"'"),this.parseError(ht,{text:O.match,token:this.terminals_[N]||N,line:O.yylineno,loc:ot,expected:st})}if(V[0]instanceof Array&&V.length>1)throw new Error("Parse Error: multiple actions possible at state: "+K+", token: "+N);switch(V[0]){case 1:d.push(N),T.push(O.yytext),t.push(O.yylloc),d.push(V[1]),N=null,ft=O.yyleng,e=O.yytext,rt=O.yylineno,ot=O.yylloc;break;case 2:if(j=this.productions_[V[1]][1],J.$=T[T.length-j],J._$={first_line:t[t.length-(j||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(j||1)].first_column,last_column:t[t.length-1].last_column},Rt&&(J._$.range=[t[t.length-(j||1)].range[0],t[t.length-1].range[1]]),lt=this.performAction.apply(J,[e,ft,rt,F.yy,V[1],T,t].concat(Lt)),typeof lt<"u")return lt;j&&(d=d.slice(0,-1*j*2),T=T.slice(0,-1*j),t=t.slice(0,-1*j)),d.push(this.productions_[V[1]][0]),T.push(J.$),t.push(J._$),bt=X[d[d.length-2]][d[d.length-1]],d.push(bt);break;case 3:return!0}}return!0}},M=function(){var I={EOF:1,parseError:function(u,d){if(this.yy.parser)this.yy.parser.parseError(u,d);else throw new Error(u)},setInput:function(o,u){return this.yy=u||this.yy||{},this._input=o,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 o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var u=o.match(/(?:\r\n?|\n).*/g);return u?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},unput:function(o){var u=o.length,d=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-u),this.offset-=u;var s=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 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:d?(d.length===s.length?this.yylloc.first_column:0)+s[s.length-d.length].length-d[0].length:this.yylloc.first_column-u},this.options.ranges&&(this.yylloc.range=[T[0],T[0]+this.yyleng-u]),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(o){this.unput(this.match.slice(o))},pastInput:function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var o=this.pastInput(),u=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
`+u+"^"},test_match:function(o,u){var d,s,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))),s=o[0].match(/(?:\r\n?|\n).*/g),s&&(this.yylineno+=s.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:s?s[s.length-1].length-s[s.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+o[0].length},this.yytext+=o[0],this.match+=o[0],this.matches=o,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(o[0].length),this.matched+=o[0],d=this.performAction.call(this,this.yy,this,u,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),d)return d;if(this._backtrack){for(var t in T)this[t]=T[t];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var o,u,d,s;this._more||(this.yytext="",this.match="");for(var T=this._currentRules(),t=0;t<T.length;t++)if(d=this._input.match(this.rules[T[t]]),d&&(!u||d[0].length>u[0].length)){if(u=d,s=t,this.options.backtrack_lexer){if(o=this.test_match(d,T[t]),o!==!1)return o;if(this._backtrack){u=!1;continue}else return!1}else if(!this.options.flex)break}return u?(o=this.test_match(u,T[s]),o!==!1?o:!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 u=this.next();return u||this.lex()},begin:function(u){this.conditionStack.push(u)},popState:function(){var u=this.conditionStack.length-1;return u>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(u){return u=this.conditionStack.length-1-Math.abs(u||0),u>=0?this.conditionStack[u]:"INITIAL"},pushState:function(u){this.begin(u)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(u,d,s,T){switch(s){case 0:return this.begin("acc_title"),19;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),21;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 13;case 8:break;case 9:break;case 10:return 5;case 11:return 40;case 12:return 32;case 13:return 38;case 14:return 42;case 15:return 43;case 16:return 44;case 17:return 45;case 18:return 35;case 19:return 28;case 20:return 29;case 21:return 37;case 22:return 31;case 23:return 34;case 24:return 26;case 25:return 9;case 26:return 9;case 27:return 8;case 28:return"CARET";case 29:this.begin("options");break;case 30:this.popState();break;case 31:return 12;case 32:return 36;case 33:this.begin("string");break;case 34:this.popState();break;case 35:return 33;case 36:return 30;case 37:return 46;case 38:return 7}},rules:[/^(?: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,/^(?:parent:)/i,/^(?:checkout(?=\s|$))/i,/^(?:LR\b)/i,/^(?:TB\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:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},options:{rules:[30,31],inclusive:!1},string:{rules:[34,35],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,32,33,36,37,38,39],inclusive:!0}}};return I}();z.lexer=M;function S(){this.yy={}}return S.prototype=z,z.Parser=S,new S}();mt.parser=mt;const Vt=mt;let at=C().gitGraph.mainBranchName,Dt=C().gitGraph.mainBranchOrder,v={},A=null,tt={};tt[at]={name:at,order:Dt};let L={};L[at]=A;let G=at,kt="LR",W=0;function ut(){return Bt({length:7})}function zt(r,n){const l=Object.create(null);return r.reduce((h,i)=>{const c=n(i);return l[c]||(l[c]=!0,h.push(i)),h},[])}const jt=function(r){kt=r};let xt={};const qt=function(r){B.debug("options str",r),r=r&&r.trim(),r=r||"{}";try{xt=JSON.parse(r)}catch(n){B.error("error while parsing gitGraph options",n.message)}},Yt=function(){return xt},Ft=function(r,n,l,h){B.debug("Entering commit:",r,n,l,h),n=D.sanitizeText(n,C()),r=D.sanitizeText(r,C()),h=D.sanitizeText(h,C());const i={id:n||W+"-"+ut(),message:r,seq:W++,type:l||Q.NORMAL,tag:h||"",parents:A==null?[]:[A.id],branch:G};A=i,v[i.id]=i,L[G]=i.id,B.debug("in pushCommit "+i.id)},Kt=function(r,n){if(r=D.sanitizeText(r,C()),L[r]===void 0)L[r]=A!=null?A.id:null,tt[r]={name:r,order:n?parseInt(n,10):null},yt(r),B.debug("in createBranch");else{let l=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 '+r+'")');throw l.hash={text:"branch "+r,token:"branch "+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"checkout '+r+'"']},l}},Ut=function(r,n,l,h){r=D.sanitizeText(r,C()),n=D.sanitizeText(n,C());const i=v[L[G]],c=v[L[r]];if(G===r){let m=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw m.hash={text:"merge "+r,token:"merge "+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch abc"]},m}else if(i===void 0||!i){let m=new Error('Incorrect usage of "merge". Current branch ('+G+")has no commits");throw m.hash={text:"merge "+r,token:"merge "+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["commit"]},m}else if(L[r]===void 0){let m=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw m.hash={text:"merge "+r,token:"merge "+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch "+r]},m}else if(c===void 0||!c){let m=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw m.hash={text:"merge "+r,token:"merge "+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"commit"']},m}else if(i===c){let m=new Error('Incorrect usage of "merge". Both branches have same head');throw m.hash={text:"merge "+r,token:"merge "+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch abc"]},m}else if(n&&v[n]!==void 0){let m=new Error('Incorrect usage of "merge". Commit with id:'+n+" already exists, use different custom Id");throw m.hash={text:"merge "+r+n+l+h,token:"merge "+r+n+l+h,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["merge "+r+" "+n+"_UNIQUE "+l+" "+h]},m}const p={id:n||W+"-"+ut(),message:"merged branch "+r+" into "+G,seq:W++,parents:[A==null?null:A.id,L[r]],branch:G,type:Q.MERGE,customType:l,customId:!!n,tag:h||""};A=p,v[p.id]=p,L[G]=p.id,B.debug(L),B.debug("in mergeBranch")},Wt=function(r,n,l,h){if(B.debug("Entering cherryPick:",r,n,l),r=D.sanitizeText(r,C()),n=D.sanitizeText(n,C()),l=D.sanitizeText(l,C()),h=D.sanitizeText(h,C()),!r||v[r]===void 0){let p=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw p.hash={text:"cherryPick "+r+" "+n,token:"cherryPick "+r+" "+n,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},p}let i=v[r],c=i.branch;if(h&&!(Array.isArray(i.parents)&&i.parents.includes(h)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");if(i.type===Q.MERGE&&!h)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!n||v[n]===void 0){if(c===G){let x=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw x.hash={text:"cherryPick "+r+" "+n,token:"cherryPick "+r+" "+n,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},x}const p=v[L[G]];if(p===void 0||!p){let x=new Error('Incorrect usage of "cherry-pick". Current branch ('+G+")has no commits");throw x.hash={text:"cherryPick "+r+" "+n,token:"cherryPick "+r+" "+n,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},x}const m={id:W+"-"+ut(),message:"cherry-picked "+i+" into "+G,seq:W++,parents:[A==null?null:A.id,i.id],branch:G,type:Q.CHERRY_PICK,tag:l??`cherry-pick:${i.id}${i.type===Q.MERGE?`|parent:${h}`:""}`};A=m,v[m.id]=m,L[G]=m.id,B.debug(L),B.debug("in cherryPick")}},yt=function(r){if(r=D.sanitizeText(r,C()),L[r]===void 0){let n=new Error('Trying to checkout branch which is not yet created. (Help try using "branch '+r+'")');throw n.hash={text:"checkout "+r,token:"checkout "+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"branch '+r+'"']},n}else{G=r;const n=L[G];A=v[n]}};function gt(r,n,l){const h=r.indexOf(n);h===-1?r.push(l):r.splice(h,1,l)}function _t(r){const n=r.reduce((i,c)=>i.seq>c.seq?i:c,r[0]);let l="";r.forEach(function(i){i===n?l+=" *":l+=" |"});const h=[l,n.id,n.seq];for(let i in L)L[i]===n.id&&h.push(i);if(B.debug(h.join(" ")),n.parents&&n.parents.length==2){const i=v[n.parents[0]];gt(r,n,i),r.push(v[n.parents[1]])}else{if(n.parents.length==0)return;{const i=v[n.parents];gt(r,n,i)}}r=zt(r,i=>i.id),_t(r)}const Jt=function(){B.debug(v);const r=Et()[0];_t([r])},Qt=function(){v={},A=null;let r=C().gitGraph.mainBranchName,n=C().gitGraph.mainBranchOrder;L={},L[r]=null,tt={},tt[r]={name:r,order:n},G=r,W=0,St()},Xt=function(){return Object.values(tt).map((n,l)=>n.order!==null?n:{...n,order:parseFloat(`0.${l}`,10)}).sort((n,l)=>n.order-l.order).map(({name:n})=>({name:n}))},Zt=function(){return L},$t=function(){return v},Et=function(){const r=Object.keys(v).map(function(n){return v[n]});return r.forEach(function(n){B.debug(n.id)}),r.sort((n,l)=>n.seq-l.seq),r},te=function(){return G},ee=function(){return kt},re=function(){return A},Q={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},ie={getConfig:()=>C().gitGraph,setDirection:jt,setOptions:qt,getOptions:Yt,commit:Ft,branch:Kt,merge:Ut,cherryPick:Wt,checkout:yt,prettyPrint:Jt,clear:Qt,getBranchesAsObjArray:Xt,getBranches:Zt,getCommits:$t,getCommitsArray:Et,getCurrentBranch:te,getDirection:ee,getHead:re,setAccTitle:vt,getAccTitle:Ct,getAccDescription:Ot,setAccDescription:Pt,setDiagramTitle:Gt,getDiagramTitle:It,commitType:Q};let Z={};const P={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},U=8;let H={},Y={},nt=[],et=0,w="LR";const se=()=>{H={},Y={},Z={},et=0,nt=[],w="LR"},Tt=r=>{const n=document.createElementNS("http://www.w3.org/2000/svg","text");let l=[];typeof r=="string"?l=r.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(r)?l=r:l=[];for(const h of l){const 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=h.trim(),n.appendChild(i)}return n},ae=r=>{let n="",l=0;return r.forEach(h=>{const i=w==="TB"?Y[h].y:Y[h].x;i>=l&&(n=h,l=i)}),n||void 0},dt=(r,n,l)=>{const h=C().gitGraph,i=r.append("g").attr("class","commit-bullets"),c=r.append("g").attr("class","commit-labels");let p=0;w==="TB"&&(p=30);const x=Object.keys(n).sort((_,b)=>n[_].seq-n[b].seq),y=h.parallelCommits,a=10,R=40;x.forEach(_=>{const b=n[_];if(y)if(b.parents.length){const E=ae(b.parents);p=w==="TB"?Y[E].y+R:Y[E].x+R}else p=0,w==="TB"&&(p=30);const f=p+a,k=w==="TB"?f:H[b.branch].pos,g=w==="TB"?H[b.branch].pos:f;if(l){let E,z=b.customType!==void 0&&b.customType!==""?b.customType:b.type;switch(z){case P.NORMAL:E="commit-normal";break;case P.REVERSE:E="commit-reverse";break;case P.HIGHLIGHT:E="commit-highlight";break;case P.MERGE:E="commit-merge";break;case P.CHERRY_PICK:E="commit-cherry-pick";break;default:E="commit-normal"}if(z===P.HIGHLIGHT){const M=i.append("rect");M.attr("x",g-10),M.attr("y",k-10),M.attr("height",20),M.attr("width",20),M.attr("class",`commit ${b.id} commit-highlight${H[b.branch].index%U} ${E}-outer`),i.append("rect").attr("x",g-6).attr("y",k-6).attr("height",12).attr("width",12).attr("class",`commit ${b.id} commit${H[b.branch].index%U} ${E}-inner`)}else if(z===P.CHERRY_PICK)i.append("circle").attr("cx",g).attr("cy",k).attr("r",10).attr("class",`commit ${b.id} ${E}`),i.append("circle").attr("cx",g-3).attr("cy",k+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${b.id} ${E}`),i.append("circle").attr("cx",g+3).attr("cy",k+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${b.id} ${E}`),i.append("line").attr("x1",g+3).attr("y1",k+1).attr("x2",g).attr("y2",k-5).attr("stroke","#fff").attr("class",`commit ${b.id} ${E}`),i.append("line").attr("x1",g-3).attr("y1",k+1).attr("x2",g).attr("y2",k-5).attr("stroke","#fff").attr("class",`commit ${b.id} ${E}`);else{const M=i.append("circle");if(M.attr("cx",g),M.attr("cy",k),M.attr("r",b.type===P.MERGE?9:10),M.attr("class",`commit ${b.id} commit${H[b.branch].index%U}`),z===P.MERGE){const S=i.append("circle");S.attr("cx",g),S.attr("cy",k),S.attr("r",6),S.attr("class",`commit ${E} ${b.id} commit${H[b.branch].index%U}`)}z===P.REVERSE&&i.append("path").attr("d",`M ${g-5},${k-5}L${g+5},${k+5}M${g-5},${k+5}L${g+5},${k-5}`).attr("class",`commit ${E} ${b.id} commit${H[b.branch].index%U}`)}}if(w==="TB"?Y[b.id]={x:g,y:f}:Y[b.id]={x:f,y:k},l){if(b.type!==P.CHERRY_PICK&&(b.customId&&b.type===P.MERGE||b.type!==P.MERGE)&&h.showCommitLabel){const M=c.append("g"),S=M.insert("rect").attr("class","commit-label-bkg"),I=M.append("text").attr("x",p).attr("y",k+25).attr("class","commit-label").text(b.id);let o=I.node().getBBox();if(S.attr("x",f-o.width/2-2).attr("y",k+13.5).attr("width",o.width+2*2).attr("height",o.height+2*2),w==="TB"&&(S.attr("x",g-(o.width+4*4+5)).attr("y",k-12),I.attr("x",g-(o.width+4*4)).attr("y",k+o.height-12)),w!=="TB"&&I.attr("x",f-o.width/2),h.rotateCommitLabel)if(w==="TB")I.attr("transform","rotate(-45, "+g+", "+k+")"),S.attr("transform","rotate(-45, "+g+", "+k+")");else{let u=-7.5-(o.width+10)/25*9.5,d=10+o.width/25*8.5;M.attr("transform","translate("+u+", "+d+") rotate(-45, "+p+", "+k+")")}}if(b.tag){const M=c.insert("polygon"),S=c.append("circle"),I=c.append("text").attr("y",k-16).attr("class","tag-label").text(b.tag);let o=I.node().getBBox();I.attr("x",f-o.width/2);const u=o.height/2,d=k-19.2;M.attr("class","tag-label-bkg").attr("points",`
${p-o.width/2-4/2},${d+2}
${p-o.width/2-4/2},${d-2}
${f-o.width/2-4},${d-u-2}
${f+o.width/2+4},${d-u-2}
${f+o.width/2+4},${d+u+2}
${f-o.width/2-4},${d+u+2}`),S.attr("cx",p-o.width/2+4/2).attr("cy",d).attr("r",1.5).attr("class","tag-hole"),w==="TB"&&(M.attr("class","tag-label-bkg").attr("points",`
${g},${p+2}
${g},${p-2}
${g+a},${p-u-2}
${g+a+o.width+4},${p-u-2}
${g+a+o.width+4},${p+u+2}
${g+a},${p+u+2}`).attr("transform","translate(12,12) rotate(45, "+g+","+p+")"),S.attr("cx",g+4/2).attr("cy",p).attr("transform","translate(12,12) rotate(45, "+g+","+p+")"),I.attr("x",g+5).attr("y",p+3).attr("transform","translate(14,14) rotate(45, "+g+","+p+")"))}}p+=R+a,p>et&&(et=p)})},ne=(r,n,l,h,i)=>{const p=(w==="TB"?l.x<h.x:l.y<h.y)?n.branch:r.branch,m=y=>y.branch===p,x=y=>y.seq>r.seq&&y.seq<n.seq;return Object.values(i).some(y=>x(y)&&m(y))},$=(r,n,l=0)=>{const h=r+Math.abs(r-n)/2;if(l>5)return h;if(nt.every(p=>Math.abs(p-h)>=10))return nt.push(h),h;const c=Math.abs(r-n);return $(r,n-c/5,l+1)},ce=(r,n,l,h)=>{const i=Y[n.id],c=Y[l.id],p=ne(n,l,i,c,h);let m="",x="",y=0,a=0,R=H[l.branch].index;l.type===P.MERGE&&n.id!==l.parents[0]&&(R=H[n.branch].index);let _;if(p){m="A 10 10, 0, 0, 0,",x="A 10 10, 0, 0, 1,",y=10,a=10;const b=i.y<c.y?$(i.y,c.y):$(c.y,i.y),f=i.x<c.x?$(i.x,c.x):$(c.x,i.x);w==="TB"?i.x<c.x?_=`M ${i.x} ${i.y} L ${f-y} ${i.y} ${x} ${f} ${i.y+a} L ${f} ${c.y-y} ${m} ${f+a} ${c.y} L ${c.x} ${c.y}`:(R=H[n.branch].index,_=`M ${i.x} ${i.y} L ${f+y} ${i.y} ${m} ${f} ${i.y+a} L ${f} ${c.y-y} ${x} ${f-a} ${c.y} L ${c.x} ${c.y}`):i.y<c.y?_=`M ${i.x} ${i.y} L ${i.x} ${b-y} ${m} ${i.x+a} ${b} L ${c.x-y} ${b} ${x} ${c.x} ${b+a} L ${c.x} ${c.y}`:(R=H[n.branch].index,_=`M ${i.x} ${i.y} L ${i.x} ${b+y} ${x} ${i.x+a} ${b} L ${c.x-y} ${b} ${m} ${c.x} ${b-a} L ${c.x} ${c.y}`)}else m="A 20 20, 0, 0, 0,",x="A 20 20, 0, 0, 1,",y=20,a=20,w==="TB"?(i.x<c.x&&(l.type===P.MERGE&&n.id!==l.parents[0]?_=`M ${i.x} ${i.y} L ${i.x} ${c.y-y} ${m} ${i.x+a} ${c.y} L ${c.x} ${c.y}`:_=`M ${i.x} ${i.y} L ${c.x-y} ${i.y} ${x} ${c.x} ${i.y+a} L ${c.x} ${c.y}`),i.x>c.x&&(m="A 20 20, 0, 0, 0,",x="A 20 20, 0, 0, 1,",y=20,a=20,l.type===P.MERGE&&n.id!==l.parents[0]?_=`M ${i.x} ${i.y} L ${i.x} ${c.y-y} ${x} ${i.x-a} ${c.y} L ${c.x} ${c.y}`:_=`M ${i.x} ${i.y} L ${c.x+y} ${i.y} ${m} ${c.x} ${i.y+a} L ${c.x} ${c.y}`),i.x===c.x&&(_=`M ${i.x} ${i.y} L ${c.x} ${c.y}`)):(i.y<c.y&&(l.type===P.MERGE&&n.id!==l.parents[0]?_=`M ${i.x} ${i.y} L ${c.x-y} ${i.y} ${x} ${c.x} ${i.y+a} L ${c.x} ${c.y}`:_=`M ${i.x} ${i.y} L ${i.x} ${c.y-y} ${m} ${i.x+a} ${c.y} L ${c.x} ${c.y}`),i.y>c.y&&(l.type===P.MERGE&&n.id!==l.parents[0]?_=`M ${i.x} ${i.y} L ${c.x-y} ${i.y} ${m} ${c.x} ${i.y-a} L ${c.x} ${c.y}`:_=`M ${i.x} ${i.y} L ${i.x} ${c.y+y} ${x} ${i.x+a} ${c.y} L ${c.x} ${c.y}`),i.y===c.y&&(_=`M ${i.x} ${i.y} L ${c.x} ${c.y}`));r.append("path").attr("d",_).attr("class","arrow arrow"+R%U)},oe=(r,n)=>{const l=r.append("g").attr("class","commit-arrows");Object.keys(n).forEach(h=>{const i=n[h];i.parents&&i.parents.length>0&&i.parents.forEach(c=>{ce(l,n[c],i,n)})})},le=(r,n)=>{const l=C().gitGraph,h=r.append("g");n.forEach((i,c)=>{const p=c%U,m=H[i.name].pos,x=h.append("line");x.attr("x1",0),x.attr("y1",m),x.attr("x2",et),x.attr("y2",m),x.attr("class","branch branch"+p),w==="TB"&&(x.attr("y1",30),x.attr("x1",m),x.attr("y2",et),x.attr("x2",m)),nt.push(m);let y=i.name;const a=Tt(y),R=h.insert("rect"),b=h.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+p);b.node().appendChild(a);let f=a.getBBox();R.attr("class","branchLabelBkg label"+p).attr("rx",4).attr("ry",4).attr("x",-f.width-4-(l.rotateCommitLabel===!0?30:0)).attr("y",-f.height/2+8).attr("width",f.width+18).attr("height",f.height+4),b.attr("transform","translate("+(-f.width-14-(l.rotateCommitLabel===!0?30:0))+", "+(m-f.height/2-1)+")"),w==="TB"&&(R.attr("x",m-f.width/2-10).attr("y",0),b.attr("transform","translate("+(m-f.width/2-5)+", 0)")),w!=="TB"&&R.attr("transform","translate(-19, "+(m-f.height/2)+")")})},he=function(r,n,l,h){se();const i=C(),c=i.gitGraph;B.debug("in gitgraph renderer",r+`
`,"id:",n,l),Z=h.db.getCommits();const p=h.db.getBranchesAsObjArray();w=h.db.getDirection();const m=At(`[id="${n}"]`);let x=0;p.forEach((y,a)=>{const R=Tt(y.name),_=m.append("g"),b=_.insert("g").attr("class","branchLabel"),f=b.insert("g").attr("class","label branch-label");f.node().appendChild(R);let k=R.getBBox();H[y.name]={pos:x,index:a},x+=50+(c.rotateCommitLabel?40:0)+(w==="TB"?k.width/2:0),f.remove(),b.remove(),_.remove()}),dt(m,Z,!1),c.showBranches&&le(m,p),oe(m,Z),dt(m,Z,!0),Nt.insertTitle(m,"gitTitleText",c.titleTopMargin,h.db.getDiagramTitle()),Ht(void 0,m,c.diagramPadding,c.useMaxWidth??i.useMaxWidth)},me={draw:he},ue=r=>`
.commit-id,
.commit-msg,
.branch-label {
fill: lightgrey;
color: lightgrey;
font-family: 'trebuchet ms', verdana, arial, sans-serif;
font-family: var(--mermaid-font-family);
}
${[0,1,2,3,4,5,6,7].map(n=>`
.branch-label${n} { fill: ${r["gitBranchLabel"+n]}; }
.commit${n} { stroke: ${r["git"+n]}; fill: ${r["git"+n]}; }
.commit-highlight${n} { stroke: ${r["gitInv"+n]}; fill: ${r["gitInv"+n]}; }
.label${n} { fill: ${r["git"+n]}; }
.arrow${n} { stroke: ${r["git"+n]}; }
`).join(`
`)}
.branch {
stroke-width: 1;
stroke: ${r.lineColor};
stroke-dasharray: 2;
}
.commit-label { font-size: ${r.commitLabelFontSize}; fill: ${r.commitLabelColor};}
.commit-label-bkg { font-size: ${r.commitLabelFontSize}; fill: ${r.commitLabelBackground}; opacity: 0.5; }
.tag-label { font-size: ${r.tagLabelFontSize}; fill: ${r.tagLabelColor};}
.tag-label-bkg { fill: ${r.tagLabelBackground}; stroke: ${r.tagLabelBorder}; }
.tag-hole { fill: ${r.textColor}; }
.commit-merge {
stroke: ${r.primaryColor};
fill: ${r.primaryColor};
}
.commit-reverse {
stroke: ${r.primaryColor};
fill: ${r.primaryColor};
stroke-width: 3;
}
.commit-highlight-outer {
}
.commit-highlight-inner {
stroke: ${r.primaryColor};
fill: ${r.primaryColor};
}
.arrow { stroke-width: 8; stroke-linecap: round; fill: none}
.gitTitleText {
text-anchor: middle;
font-size: 18px;
fill: ${r.textColor};
}
`,fe=ue,_e={parser:Vt,db:ie,renderer:me,styles:fe};export{_e as diagram};
import{J as Be,K as Ze,R as Xe,L as qe,M as ye,N as nt,O as ke,c as wt,s as Dn,g as Mn,C as Sn,D as _n,b as Un,a as Yn,P as Fn,E as Ln,m as En,l as qt,h as zt,i as An,j as In,v as Wn,Q as Kt,T as On}from"./slidev/5-BKiUV7YW.js";import{l as Hn,c as Nn,a as Vn,b as Pn,t as Ue}from"./linear-d94cf28d-BvaqH9Ej.js";import{i as zn}from"./init-cc95ec8e-Gi6I4Gst.js";import"./modules/vue-Dn3czbSS.js";import"./index-D2S1x1Oe.js";import"./modules/shiki-CuMFyo6Z.js";import"./modules/file-saver-EUMWMpoS.js";import"./slidev/default-CY-sqYNf.js";import"./slidev/context-CYh2-pv1.js";function Rn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function Bn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function Zn(t){return t}var Bt=1,te=2,ue=3,Rt=4,Ye=1e-6;function Xn(t){return"translate("+t+",0)"}function qn(t){return"translate(0,"+t+")"}function Gn(t){return e=>+t(e)}function jn(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function Qn(){return!this.__axis}function Ge(t,e){var n=[],r=null,i=null,s=6,a=6,k=3,Y=typeof window<"u"&&window.devicePixelRatio>1?0:.5,g=t===Bt||t===Rt?-1:1,b=t===Rt||t===te?"x":"y",U=t===Bt||t===ue?Xn:qn;function C(v){var q=r??(e.ticks?e.ticks.apply(e,n):e.domain()),y=i??(e.tickFormat?e.tickFormat.apply(e,n):Zn),L=Math.max(s,0)+k,O=e.range(),W=+O[0]+Y,B=+O[O.length-1]+Y,Z=(e.bandwidth?jn:Gn)(e.copy(),Y),Q=v.selection?v.selection():v,x=Q.selectAll(".domain").data([null]),A=Q.selectAll(".tick").data(q,e).order(),T=A.exit(),F=A.enter().append("g").attr("class","tick"),D=A.select("line"),w=A.select("text");x=x.merge(x.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),A=A.merge(F),D=D.merge(F.append("line").attr("stroke","currentColor").attr(b+"2",g*s)),w=w.merge(F.append("text").attr("fill","currentColor").attr(b,g*L).attr("dy",t===Bt?"0em":t===ue?"0.71em":"0.32em")),v!==Q&&(x=x.transition(v),A=A.transition(v),D=D.transition(v),w=w.transition(v),T=T.transition(v).attr("opacity",Ye).attr("transform",function(o){return isFinite(o=Z(o))?U(o+Y):this.getAttribute("transform")}),F.attr("opacity",Ye).attr("transform",function(o){var d=this.parentNode.__axis;return U((d&&isFinite(d=d(o))?d:Z(o))+Y)})),T.remove(),x.attr("d",t===Rt||t===te?a?"M"+g*a+","+W+"H"+Y+"V"+B+"H"+g*a:"M"+Y+","+W+"V"+B:a?"M"+W+","+g*a+"V"+Y+"H"+B+"V"+g*a:"M"+W+","+Y+"H"+B),A.attr("opacity",1).attr("transform",function(o){return U(Z(o)+Y)}),D.attr(b+"2",g*s),w.attr(b,g*L).text(y),Q.filter(Qn).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===te?"start":t===Rt?"end":"middle"),Q.each(function(){this.__axis=Z})}return C.scale=function(v){return arguments.length?(e=v,C):e},C.ticks=function(){return n=Array.from(arguments),C},C.tickArguments=function(v){return arguments.length?(n=v==null?[]:Array.from(v),C):n.slice()},C.tickValues=function(v){return arguments.length?(r=v==null?null:Array.from(v),C):r&&r.slice()},C.tickFormat=function(v){return arguments.length?(i=v,C):i},C.tickSize=function(v){return arguments.length?(s=a=+v,C):s},C.tickSizeInner=function(v){return arguments.length?(s=+v,C):s},C.tickSizeOuter=function(v){return arguments.length?(a=+v,C):a},C.tickPadding=function(v){return arguments.length?(k=+v,C):k},C.offset=function(v){return arguments.length?(Y=+v,C):Y},C}function Jn(t){return Ge(Bt,t)}function $n(t){return Ge(ue,t)}const Kn=Math.PI/180,tr=180/Math.PI,Gt=18,je=.96422,Qe=1,Je=.82521,$e=4/29,Ct=6/29,Ke=3*Ct*Ct,er=Ct*Ct*Ct;function tn(t){if(t instanceof ot)return new ot(t.l,t.a,t.b,t.opacity);if(t instanceof ut)return en(t);t instanceof Xe||(t=Fn(t));var e=ie(t.r),n=ie(t.g),r=ie(t.b),i=ee((.2225045*e+.7168786*n+.0606169*r)/Qe),s,a;return e===n&&n===r?s=a=i:(s=ee((.4360747*e+.3850649*n+.1430804*r)/je),a=ee((.0139322*e+.0971045*n+.7141733*r)/Je)),new ot(116*i-16,500*(s-i),200*(i-a),t.opacity)}function nr(t,e,n,r){return arguments.length===1?tn(t):new ot(t,e,n,r??1)}function ot(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}Be(ot,nr,Ze(qe,{brighter(t){return new ot(this.l+Gt*(t??1),this.a,this.b,this.opacity)},darker(t){return new ot(this.l-Gt*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=je*ne(e),t=Qe*ne(t),n=Je*ne(n),new Xe(re(3.1338561*e-1.6168667*t-.4906146*n),re(-.9787684*e+1.9161415*t+.033454*n),re(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}}));function ee(t){return t>er?Math.pow(t,1/3):t/Ke+$e}function ne(t){return t>Ct?t*t*t:Ke*(t-$e)}function re(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function ie(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function rr(t){if(t instanceof ut)return new ut(t.h,t.c,t.l,t.opacity);if(t instanceof ot||(t=tn(t)),t.a===0&&t.b===0)return new ut(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*tr;return new ut(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function fe(t,e,n,r){return arguments.length===1?rr(t):new ut(t,e,n,r??1)}function ut(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function en(t){if(isNaN(t.h))return new ot(t.l,0,0,t.opacity);var e=t.h*Kn;return new ot(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}Be(ut,fe,Ze(qe,{brighter(t){return new ut(this.h,this.c,this.l+Gt*(t??1),this.opacity)},darker(t){return new ut(this.h,this.c,this.l-Gt*(t??1),this.opacity)},rgb(){return en(this).rgb()}}));function ir(t){return function(e,n){var r=t((e=fe(e)).h,(n=fe(n)).h),i=Kt(e.c,n.c),s=Kt(e.l,n.l),a=Kt(e.opacity,n.opacity);return function(k){return e.h=r(k),e.c=i(k),e.l=s(k),e.opacity=a(k),e+""}}}const sr=ir(On);function ar(t,e){t=t.slice();var n=0,r=t.length-1,i=t[n],s=t[r],a;return s<i&&(a=n,n=r,r=a,a=i,i=s,s=a),t[n]=e.floor(i),t[r]=e.ceil(s),t}const se=new Date,ae=new Date;function K(t,e,n,r){function i(s){return t(s=arguments.length===0?new Date:new Date(+s)),s}return i.floor=s=>(t(s=new Date(+s)),s),i.ceil=s=>(t(s=new Date(s-1)),e(s,1),t(s),s),i.round=s=>{const a=i(s),k=i.ceil(s);return s-a<k-s?a:k},i.offset=(s,a)=>(e(s=new Date(+s),a==null?1:Math.floor(a)),s),i.range=(s,a,k)=>{const Y=[];if(s=i.ceil(s),k=k==null?1:Math.floor(k),!(s<a)||!(k>0))return Y;let g;do Y.push(g=new Date(+s)),e(s,k),t(s);while(g<s&&s<a);return Y},i.filter=s=>K(a=>{if(a>=a)for(;t(a),!s(a);)a.setTime(a-1)},(a,k)=>{if(a>=a)if(k<0)for(;++k<=0;)for(;e(a,-1),!s(a););else for(;--k>=0;)for(;e(a,1),!s(a););}),n&&(i.count=(s,a)=>(se.setTime(+s),ae.setTime(+a),t(se),t(ae),Math.floor(n(se,ae))),i.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?i.filter(r?a=>r(a)%s===0:a=>i.count(0,a)%s===0):i)),i}const Mt=K(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Mt.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?K(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):Mt);Mt.range;const ft=1e3,rt=ft*60,ht=rt*60,dt=ht*24,pe=dt*7,Fe=dt*30,oe=dt*365,gt=K(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*ft)},(t,e)=>(e-t)/ft,t=>t.getUTCSeconds());gt.range;const Et=K(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*ft)},(t,e)=>{t.setTime(+t+e*rt)},(t,e)=>(e-t)/rt,t=>t.getMinutes());Et.range;const or=K(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*rt)},(t,e)=>(e-t)/rt,t=>t.getUTCMinutes());or.range;const At=K(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*ft-t.getMinutes()*rt)},(t,e)=>{t.setTime(+t+e*ht)},(t,e)=>(e-t)/ht,t=>t.getHours());At.range;const cr=K(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*ht)},(t,e)=>(e-t)/ht,t=>t.getUTCHours());cr.range;const yt=K(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*rt)/dt,t=>t.getDate()-1);yt.range;const Te=K(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/dt,t=>t.getUTCDate()-1);Te.range;const lr=K(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/dt,t=>Math.floor(t/dt));lr.range;function Tt(t){return K(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*rt)/pe)}const Ot=Tt(0),It=Tt(1),nn=Tt(2),rn=Tt(3),kt=Tt(4),sn=Tt(5),an=Tt(6);Ot.range;It.range;nn.range;rn.range;kt.range;sn.range;an.range;function vt(t){return K(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/pe)}const on=vt(0),jt=vt(1),ur=vt(2),fr=vt(3),St=vt(4),hr=vt(5),dr=vt(6);on.range;jt.range;ur.range;fr.range;St.range;hr.range;dr.range;const Wt=K(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());Wt.range;const mr=K(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());mr.range;const mt=K(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());mt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:K(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)});mt.range;const pt=K(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());pt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:K(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)});pt.range;function gr(t,e,n,r,i,s){const a=[[gt,1,ft],[gt,5,5*ft],[gt,15,15*ft],[gt,30,30*ft],[s,1,rt],[s,5,5*rt],[s,15,15*rt],[s,30,30*rt],[i,1,ht],[i,3,3*ht],[i,6,6*ht],[i,12,12*ht],[r,1,dt],[r,2,2*dt],[n,1,pe],[e,1,Fe],[e,3,3*Fe],[t,1,oe]];function k(g,b,U){const C=b<g;C&&([g,b]=[b,g]);const v=U&&typeof U.range=="function"?U:Y(g,b,U),q=v?v.range(g,+b+1):[];return C?q.reverse():q}function Y(g,b,U){const C=Math.abs(b-g)/U,v=Pn(([,,L])=>L).right(a,C);if(v===a.length)return t.every(Ue(g/oe,b/oe,U));if(v===0)return Mt.every(Math.max(Ue(g,b,U),1));const[q,y]=a[C/a[v-1][2]<a[v][2]/C?v-1:v];return q.every(y)}return[k,Y]}const[yr,kr]=gr(mt,Wt,Ot,yt,At,Et);function ce(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function le(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Yt(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function pr(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,s=t.days,a=t.shortDays,k=t.months,Y=t.shortMonths,g=Ft(i),b=Lt(i),U=Ft(s),C=Lt(s),v=Ft(a),q=Lt(a),y=Ft(k),L=Lt(k),O=Ft(Y),W=Lt(Y),B={a:c,A:X,b:f,B:h,c:null,d:Oe,e:Oe,f:Pr,g:Jr,G:Kr,H:Hr,I:Nr,j:Vr,L:cn,m:zr,M:Rr,p:_,q:G,Q:Ve,s:Pe,S:Br,u:Zr,U:Xr,V:qr,w:Gr,W:jr,x:null,X:null,y:Qr,Y:$r,Z:ti,"%":Ne},Z={a:H,A:V,b:I,B:P,c:null,d:He,e:He,f:ii,g:mi,G:yi,H:ei,I:ni,j:ri,L:un,m:si,M:ai,p:st,q:it,Q:Ve,s:Pe,S:oi,u:ci,U:li,V:ui,w:fi,W:hi,x:null,X:null,y:di,Y:gi,Z:ki,"%":Ne},Q={a:D,A:w,b:o,B:d,c:m,d:Ie,e:Ie,f:Ar,g:Ae,G:Ee,H:We,I:We,j:Yr,L:Er,m:Ur,M:Fr,p:F,q:_r,Q:Wr,s:Or,S:Lr,u:wr,U:Cr,V:Dr,w:xr,W:Mr,x:u,X:S,y:Ae,Y:Ee,Z:Sr,"%":Ir};B.x=x(n,B),B.X=x(r,B),B.c=x(e,B),Z.x=x(n,Z),Z.X=x(r,Z),Z.c=x(e,Z);function x(p,E){return function(M){var l=[],R=-1,N=0,j=p.length,J,et,Ut;for(M instanceof Date||(M=new Date(+M));++R<j;)p.charCodeAt(R)===37&&(l.push(p.slice(N,R)),(et=Le[J=p.charAt(++R)])!=null?J=p.charAt(++R):et=J==="e"?" ":"0",(Ut=E[J])&&(J=Ut(M,et)),l.push(J),N=R+1);return l.push(p.slice(N,R)),l.join("")}}function A(p,E){return function(M){var l=Yt(1900,void 0,1),R=T(l,p,M+="",0),N,j;if(R!=M.length)return null;if("Q"in l)return new Date(l.Q);if("s"in l)return new Date(l.s*1e3+("L"in l?l.L:0));if(E&&!("Z"in l)&&(l.Z=0),"p"in l&&(l.H=l.H%12+l.p*12),l.m===void 0&&(l.m="q"in l?l.q:0),"V"in l){if(l.V<1||l.V>53)return null;"w"in l||(l.w=1),"Z"in l?(N=le(Yt(l.y,0,1)),j=N.getUTCDay(),N=j>4||j===0?jt.ceil(N):jt(N),N=Te.offset(N,(l.V-1)*7),l.y=N.getUTCFullYear(),l.m=N.getUTCMonth(),l.d=N.getUTCDate()+(l.w+6)%7):(N=ce(Yt(l.y,0,1)),j=N.getDay(),N=j>4||j===0?It.ceil(N):It(N),N=yt.offset(N,(l.V-1)*7),l.y=N.getFullYear(),l.m=N.getMonth(),l.d=N.getDate()+(l.w+6)%7)}else("W"in l||"U"in l)&&("w"in l||(l.w="u"in l?l.u%7:"W"in l?1:0),j="Z"in l?le(Yt(l.y,0,1)).getUTCDay():ce(Yt(l.y,0,1)).getDay(),l.m=0,l.d="W"in l?(l.w+6)%7+l.W*7-(j+5)%7:l.w+l.U*7-(j+6)%7);return"Z"in l?(l.H+=l.Z/100|0,l.M+=l.Z%100,le(l)):ce(l)}}function T(p,E,M,l){for(var R=0,N=E.length,j=M.length,J,et;R<N;){if(l>=j)return-1;if(J=E.charCodeAt(R++),J===37){if(J=E.charAt(R++),et=Q[J in Le?E.charAt(R++):J],!et||(l=et(p,M,l))<0)return-1}else if(J!=M.charCodeAt(l++))return-1}return l}function F(p,E,M){var l=g.exec(E.slice(M));return l?(p.p=b.get(l[0].toLowerCase()),M+l[0].length):-1}function D(p,E,M){var l=v.exec(E.slice(M));return l?(p.w=q.get(l[0].toLowerCase()),M+l[0].length):-1}function w(p,E,M){var l=U.exec(E.slice(M));return l?(p.w=C.get(l[0].toLowerCase()),M+l[0].length):-1}function o(p,E,M){var l=O.exec(E.slice(M));return l?(p.m=W.get(l[0].toLowerCase()),M+l[0].length):-1}function d(p,E,M){var l=y.exec(E.slice(M));return l?(p.m=L.get(l[0].toLowerCase()),M+l[0].length):-1}function m(p,E,M){return T(p,e,E,M)}function u(p,E,M){return T(p,n,E,M)}function S(p,E,M){return T(p,r,E,M)}function c(p){return a[p.getDay()]}function X(p){return s[p.getDay()]}function f(p){return Y[p.getMonth()]}function h(p){return k[p.getMonth()]}function _(p){return i[+(p.getHours()>=12)]}function G(p){return 1+~~(p.getMonth()/3)}function H(p){return a[p.getUTCDay()]}function V(p){return s[p.getUTCDay()]}function I(p){return Y[p.getUTCMonth()]}function P(p){return k[p.getUTCMonth()]}function st(p){return i[+(p.getUTCHours()>=12)]}function it(p){return 1+~~(p.getUTCMonth()/3)}return{format:function(p){var E=x(p+="",B);return E.toString=function(){return p},E},parse:function(p){var E=A(p+="",!1);return E.toString=function(){return p},E},utcFormat:function(p){var E=x(p+="",Z);return E.toString=function(){return p},E},utcParse:function(p){var E=A(p+="",!0);return E.toString=function(){return p},E}}}var Le={"-":"",_:" ",0:"0"},tt=/^\s*\d+/,Tr=/^%/,vr=/[\\^$*+?|[\]().{}]/g;function z(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",s=i.length;return r+(s<n?new Array(n-s+1).join(e)+i:i)}function br(t){return t.replace(vr,"\\$&")}function Ft(t){return new RegExp("^(?:"+t.map(br).join("|")+")","i")}function Lt(t){return new Map(t.map((e,n)=>[e.toLowerCase(),n]))}function xr(t,e,n){var r=tt.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function wr(t,e,n){var r=tt.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function Cr(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function Dr(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Mr(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Ee(t,e,n){var r=tt.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Ae(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Sr(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function _r(t,e,n){var r=tt.exec(e.slice(n,n+1));return r?(t.q=r[0]*3-3,n+r[0].length):-1}function Ur(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Ie(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Yr(t,e,n){var r=tt.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function We(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Fr(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Lr(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Er(t,e,n){var r=tt.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Ar(t,e,n){var r=tt.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Ir(t,e,n){var r=Tr.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Wr(t,e,n){var r=tt.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Or(t,e,n){var r=tt.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Oe(t,e){return z(t.getDate(),e,2)}function Hr(t,e){return z(t.getHours(),e,2)}function Nr(t,e){return z(t.getHours()%12||12,e,2)}function Vr(t,e){return z(1+yt.count(mt(t),t),e,3)}function cn(t,e){return z(t.getMilliseconds(),e,3)}function Pr(t,e){return cn(t,e)+"000"}function zr(t,e){return z(t.getMonth()+1,e,2)}function Rr(t,e){return z(t.getMinutes(),e,2)}function Br(t,e){return z(t.getSeconds(),e,2)}function Zr(t){var e=t.getDay();return e===0?7:e}function Xr(t,e){return z(Ot.count(mt(t)-1,t),e,2)}function ln(t){var e=t.getDay();return e>=4||e===0?kt(t):kt.ceil(t)}function qr(t,e){return t=ln(t),z(kt.count(mt(t),t)+(mt(t).getDay()===4),e,2)}function Gr(t){return t.getDay()}function jr(t,e){return z(It.count(mt(t)-1,t),e,2)}function Qr(t,e){return z(t.getFullYear()%100,e,2)}function Jr(t,e){return t=ln(t),z(t.getFullYear()%100,e,2)}function $r(t,e){return z(t.getFullYear()%1e4,e,4)}function Kr(t,e){var n=t.getDay();return t=n>=4||n===0?kt(t):kt.ceil(t),z(t.getFullYear()%1e4,e,4)}function ti(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+z(e/60|0,"0",2)+z(e%60,"0",2)}function He(t,e){return z(t.getUTCDate(),e,2)}function ei(t,e){return z(t.getUTCHours(),e,2)}function ni(t,e){return z(t.getUTCHours()%12||12,e,2)}function ri(t,e){return z(1+Te.count(pt(t),t),e,3)}function un(t,e){return z(t.getUTCMilliseconds(),e,3)}function ii(t,e){return un(t,e)+"000"}function si(t,e){return z(t.getUTCMonth()+1,e,2)}function ai(t,e){return z(t.getUTCMinutes(),e,2)}function oi(t,e){return z(t.getUTCSeconds(),e,2)}function ci(t){var e=t.getUTCDay();return e===0?7:e}function li(t,e){return z(on.count(pt(t)-1,t),e,2)}function fn(t){var e=t.getUTCDay();return e>=4||e===0?St(t):St.ceil(t)}function ui(t,e){return t=fn(t),z(St.count(pt(t),t)+(pt(t).getUTCDay()===4),e,2)}function fi(t){return t.getUTCDay()}function hi(t,e){return z(jt.count(pt(t)-1,t),e,2)}function di(t,e){return z(t.getUTCFullYear()%100,e,2)}function mi(t,e){return t=fn(t),z(t.getUTCFullYear()%100,e,2)}function gi(t,e){return z(t.getUTCFullYear()%1e4,e,4)}function yi(t,e){var n=t.getUTCDay();return t=n>=4||n===0?St(t):St.ceil(t),z(t.getUTCFullYear()%1e4,e,4)}function ki(){return"+0000"}function Ne(){return"%"}function Ve(t){return+t}function Pe(t){return Math.floor(+t/1e3)}var xt,Qt;pi({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 pi(t){return xt=pr(t),Qt=xt.format,xt.parse,xt.utcFormat,xt.utcParse,xt}function Ti(t){return new Date(t)}function vi(t){return t instanceof Date?+t:+new Date(+t)}function hn(t,e,n,r,i,s,a,k,Y,g){var b=Nn(),U=b.invert,C=b.domain,v=g(".%L"),q=g(":%S"),y=g("%I:%M"),L=g("%I %p"),O=g("%a %d"),W=g("%b %d"),B=g("%B"),Z=g("%Y");function Q(x){return(Y(x)<x?v:k(x)<x?q:a(x)<x?y:s(x)<x?L:r(x)<x?i(x)<x?O:W:n(x)<x?B:Z)(x)}return b.invert=function(x){return new Date(U(x))},b.domain=function(x){return arguments.length?C(Array.from(x,vi)):C().map(Ti)},b.ticks=function(x){var A=C();return t(A[0],A[A.length-1],x??10)},b.tickFormat=function(x,A){return A==null?Q:g(A)},b.nice=function(x){var A=C();return(!x||typeof x.range!="function")&&(x=e(A[0],A[A.length-1],x??10)),x?C(ar(A,x)):b},b.copy=function(){return Vn(b,hn(t,e,n,r,i,s,a,k,Y,g))},b}function bi(){return zn.apply(hn(yr,kr,mt,Wt,Ot,yt,At,Et,gt,Qt).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var he=function(){var t=function(w,o,d,m){for(d=d||{},m=w.length;m--;d[w[m]]=o);return d},e=[6,8,10,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,30,32,33,35,37],n=[1,25],r=[1,26],i=[1,27],s=[1,28],a=[1,29],k=[1,30],Y=[1,31],g=[1,9],b=[1,10],U=[1,11],C=[1,12],v=[1,13],q=[1,14],y=[1,15],L=[1,16],O=[1,18],W=[1,19],B=[1,20],Z=[1,21],Q=[1,22],x=[1,24],A=[1,32],T={trace:function(){},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,dateFormat:19,inclusiveEndDates:20,topAxis:21,axisFormat:22,tickInterval:23,excludes:24,includes:25,todayMarker:26,title:27,acc_title:28,acc_title_value:29,acc_descr:30,acc_descr_value:31,acc_descr_multiline_value:32,section:33,clickStatement:34,taskTxt:35,taskData:36,click:37,callbackname:38,callbackargs:39,href:40,clickStatementDebug:41,$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",19:"dateFormat",20:"inclusiveEndDates",21:"topAxis",22:"axisFormat",23:"tickInterval",24:"excludes",25:"includes",26:"todayMarker",27:"title",28:"acc_title",29:"acc_title_value",30:"acc_descr",31:"acc_descr_value",32:"acc_descr_multiline_value",33:"section",35:"taskTxt",36:"taskData",37:"click",38:"callbackname",39:"callbackargs",40:"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],[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],[34,2],[34,3],[34,3],[34,4],[34,3],[34,4],[34,2],[41,2],[41,3],[41,3],[41,4],[41,3],[41,4],[41,2]],performAction:function(o,d,m,u,S,c,X){var f=c.length-1;switch(S){case 1:return c[f-1];case 2:this.$=[];break;case 3:c[f-1].push(c[f]),this.$=c[f-1];break;case 4:case 5:this.$=c[f];break;case 6:case 7:this.$=[];break;case 8:u.setWeekday("monday");break;case 9:u.setWeekday("tuesday");break;case 10:u.setWeekday("wednesday");break;case 11:u.setWeekday("thursday");break;case 12:u.setWeekday("friday");break;case 13:u.setWeekday("saturday");break;case 14:u.setWeekday("sunday");break;case 15:u.setDateFormat(c[f].substr(11)),this.$=c[f].substr(11);break;case 16:u.enableInclusiveEndDates(),this.$=c[f].substr(18);break;case 17:u.TopAxis(),this.$=c[f].substr(8);break;case 18:u.setAxisFormat(c[f].substr(11)),this.$=c[f].substr(11);break;case 19:u.setTickInterval(c[f].substr(13)),this.$=c[f].substr(13);break;case 20:u.setExcludes(c[f].substr(9)),this.$=c[f].substr(9);break;case 21:u.setIncludes(c[f].substr(9)),this.$=c[f].substr(9);break;case 22:u.setTodayMarker(c[f].substr(12)),this.$=c[f].substr(12);break;case 24:u.setDiagramTitle(c[f].substr(6)),this.$=c[f].substr(6);break;case 25:this.$=c[f].trim(),u.setAccTitle(this.$);break;case 26:case 27:this.$=c[f].trim(),u.setAccDescription(this.$);break;case 28:u.addSection(c[f].substr(8)),this.$=c[f].substr(8);break;case 30:u.addTask(c[f-1],c[f]),this.$="task";break;case 31:this.$=c[f-1],u.setClickEvent(c[f-1],c[f],null);break;case 32:this.$=c[f-2],u.setClickEvent(c[f-2],c[f-1],c[f]);break;case 33:this.$=c[f-2],u.setClickEvent(c[f-2],c[f-1],null),u.setLink(c[f-2],c[f]);break;case 34:this.$=c[f-3],u.setClickEvent(c[f-3],c[f-2],c[f-1]),u.setLink(c[f-3],c[f]);break;case 35:this.$=c[f-2],u.setClickEvent(c[f-2],c[f],null),u.setLink(c[f-2],c[f-1]);break;case 36:this.$=c[f-3],u.setClickEvent(c[f-3],c[f-1],c[f]),u.setLink(c[f-3],c[f-2]);break;case 37:this.$=c[f-1],u.setLink(c[f-1],c[f]);break;case 38:case 44:this.$=c[f-1]+" "+c[f];break;case 39:case 40:case 42:this.$=c[f-2]+" "+c[f-1]+" "+c[f];break;case 41:case 43:this.$=c[f-3]+" "+c[f-2]+" "+c[f-1]+" "+c[f];break}},table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:r,14:i,15:s,16:a,17:k,18:Y,19:g,20:b,21:U,22:C,23:v,24:q,25:y,26:L,27:O,28:W,30:B,32:Z,33:Q,34:23,35:x,37:A},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:33,11:17,12:n,13:r,14:i,15:s,16:a,17:k,18:Y,19:g,20:b,21:U,22:C,23:v,24:q,25:y,26:L,27:O,28:W,30:B,32:Z,33:Q,34:23,35:x,37:A},t(e,[2,5]),t(e,[2,6]),t(e,[2,15]),t(e,[2,16]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,20]),t(e,[2,21]),t(e,[2,22]),t(e,[2,23]),t(e,[2,24]),{29:[1,34]},{31:[1,35]},t(e,[2,27]),t(e,[2,28]),t(e,[2,29]),{36:[1,36]},t(e,[2,8]),t(e,[2,9]),t(e,[2,10]),t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),{38:[1,37],40:[1,38]},t(e,[2,4]),t(e,[2,25]),t(e,[2,26]),t(e,[2,30]),t(e,[2,31],{39:[1,39],40:[1,40]}),t(e,[2,37],{38:[1,41]}),t(e,[2,32],{40:[1,42]}),t(e,[2,33]),t(e,[2,35],{39:[1,43]}),t(e,[2,34]),t(e,[2,36])],defaultActions:{},parseError:function(o,d){if(d.recoverable)this.trace(o);else{var m=new Error(o);throw m.hash=d,m}},parse:function(o){var d=this,m=[0],u=[],S=[null],c=[],X=this.table,f="",h=0,_=0,G=2,H=1,V=c.slice.call(arguments,1),I=Object.create(this.lexer),P={yy:{}};for(var st in this.yy)Object.prototype.hasOwnProperty.call(this.yy,st)&&(P.yy[st]=this.yy[st]);I.setInput(o,P.yy),P.yy.lexer=I,P.yy.parser=this,typeof I.yylloc>"u"&&(I.yylloc={});var it=I.yylloc;c.push(it);var p=I.options&&I.options.ranges;typeof P.yy.parseError=="function"?this.parseError=P.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function E(){var ct;return ct=u.pop()||I.lex()||H,typeof ct!="number"&&(ct instanceof Array&&(u=ct,ct=u.pop()),ct=d.symbols_[ct]||ct),ct}for(var M,l,R,N,j={},J,et,Ut,Pt;;){if(l=m[m.length-1],this.defaultActions[l]?R=this.defaultActions[l]:((M===null||typeof M>"u")&&(M=E()),R=X[l]&&X[l][M]),typeof R>"u"||!R.length||!R[0]){var $t="";Pt=[];for(J in X[l])this.terminals_[J]&&J>G&&Pt.push("'"+this.terminals_[J]+"'");I.showPosition?$t="Parse error on line "+(h+1)+`:
`+I.showPosition()+`
Expecting `+Pt.join(", ")+", got '"+(this.terminals_[M]||M)+"'":$t="Parse error on line "+(h+1)+": Unexpected "+(M==H?"end of input":"'"+(this.terminals_[M]||M)+"'"),this.parseError($t,{text:I.match,token:this.terminals_[M]||M,line:I.yylineno,loc:it,expected:Pt})}if(R[0]instanceof Array&&R.length>1)throw new Error("Parse Error: multiple actions possible at state: "+l+", token: "+M);switch(R[0]){case 1:m.push(M),S.push(I.yytext),c.push(I.yylloc),m.push(R[1]),M=null,_=I.yyleng,f=I.yytext,h=I.yylineno,it=I.yylloc;break;case 2:if(et=this.productions_[R[1]][1],j.$=S[S.length-et],j._$={first_line:c[c.length-(et||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(et||1)].first_column,last_column:c[c.length-1].last_column},p&&(j._$.range=[c[c.length-(et||1)].range[0],c[c.length-1].range[1]]),N=this.performAction.apply(j,[f,_,h,P.yy,R[1],S,c].concat(V)),typeof N<"u")return N;et&&(m=m.slice(0,-1*et*2),S=S.slice(0,-1*et),c=c.slice(0,-1*et)),m.push(this.productions_[R[1]][0]),S.push(j.$),c.push(j._$),Ut=X[m[m.length-2]][m[m.length-1]],m.push(Ut);break;case 3:return!0}}return!0}},F=function(){var w={EOF:1,parseError:function(d,m){if(this.yy.parser)this.yy.parser.parseError(d,m);else throw new Error(d)},setInput:function(o,d){return this.yy=d||this.yy||{},this._input=o,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 o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var d=o.match(/(?:\r\n?|\n).*/g);return d?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},unput:function(o){var d=o.length,m=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-d),this.offset-=d;var u=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),m.length-1&&(this.yylineno-=m.length-1);var S=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:m?(m.length===u.length?this.yylloc.first_column:0)+u[u.length-m.length].length-m[0].length:this.yylloc.first_column-d},this.options.ranges&&(this.yylloc.range=[S[0],S[0]+this.yyleng-d]),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(o){this.unput(this.match.slice(o))},pastInput:function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var o=this.pastInput(),d=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
`+d+"^"},test_match:function(o,d){var m,u,S;if(this.options.backtrack_lexer&&(S={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&&(S.yylloc.range=this.yylloc.range.slice(0))),u=o[0].match(/(?:\r\n?|\n).*/g),u&&(this.yylineno+=u.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:u?u[u.length-1].length-u[u.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+o[0].length},this.yytext+=o[0],this.match+=o[0],this.matches=o,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(o[0].length),this.matched+=o[0],m=this.performAction.call(this,this.yy,this,d,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),m)return m;if(this._backtrack){for(var c in S)this[c]=S[c];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var o,d,m,u;this._more||(this.yytext="",this.match="");for(var S=this._currentRules(),c=0;c<S.length;c++)if(m=this._input.match(this.rules[S[c]]),m&&(!d||m[0].length>d[0].length)){if(d=m,u=c,this.options.backtrack_lexer){if(o=this.test_match(m,S[c]),o!==!1)return o;if(this._backtrack){d=!1;continue}else return!1}else if(!this.options.flex)break}return d?(o=this.test_match(d,S[u]),o!==!1?o:!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 d=this.next();return d||this.lex()},begin:function(d){this.conditionStack.push(d)},popState:function(){var d=this.conditionStack.length-1;return d>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(d){return d=this.conditionStack.length-1-Math.abs(d||0),d>=0?this.conditionStack[d]:"INITIAL"},pushState:function(d){this.begin(d)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(d,m,u,S){switch(u){case 0:return this.begin("open_directive"),"open_directive";case 1:return this.begin("acc_title"),28;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),30;case 4:return this.popState(),"acc_descr_value";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 40;case 17:this.begin("callbackname");break;case 18:this.popState();break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 38;case 21:this.popState();break;case 22:return 39;case 23:this.begin("click");break;case 24:this.popState();break;case 25:return 37;case 26:return 4;case 27:return 19;case 28:return 20;case 29:return 21;case 30:return 22;case 31:return 23;case 32:return 25;case 33:return 24;case 34:return 26;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"date";case 43:return 27;case 44:return"accDescription";case 45:return 33;case 46:return 35;case 47:return 36;case 48:return":";case 49:return 6;case 50:return"INVALID"}},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,/^(?:\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],inclusive:!0}}};return w}();T.lexer=F;function D(){this.yy={}}return D.prototype=T,T.Parser=D,new D}();he.parser=he;const xi=he;var dn={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(ye,function(){var n="day";return function(r,i,s){var a=function(g){return g.add(4-g.isoWeekday(),n)},k=i.prototype;k.isoWeekYear=function(){return a(this).year()},k.isoWeek=function(g){if(!this.$utils().u(g))return this.add(7*(g-this.isoWeek()),n);var b,U,C,v,q=a(this),y=(b=this.isoWeekYear(),U=this.$u,C=(U?s.utc:s)().year(b).startOf("year"),v=4-C.isoWeekday(),C.isoWeekday()>4&&(v+=7),C.add(v,n));return q.diff(y,"week")+1},k.isoWeekday=function(g){return this.$utils().u(g)?this.day()||7:this.day(this.day()%7?g:g-7)};var Y=k.startOf;k.startOf=function(g,b){var U=this.$utils(),C=!!U.u(b)||b;return U.p(g)==="isoweek"?C?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):Y.bind(this)(g,b)}}})})(dn);var wi=dn.exports;const Ci=ke(wi);var mn={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(ye,function(){var n={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"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d\d/,s=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,k={},Y=function(y){return(y=+y)+(y>68?1900:2e3)},g=function(y){return function(L){this[y]=+L}},b=[/[+-]\d\d:?(\d\d)?|Z/,function(y){(this.zone||(this.zone={})).offset=function(L){if(!L||L==="Z")return 0;var O=L.match(/([+-]|\d\d)/g),W=60*O[1]+(+O[2]||0);return W===0?0:O[0]==="+"?-W:W}(y)}],U=function(y){var L=k[y];return L&&(L.indexOf?L:L.s.concat(L.f))},C=function(y,L){var O,W=k.meridiem;if(W){for(var B=1;B<=24;B+=1)if(y.indexOf(W(B,0,L))>-1){O=B>12;break}}else O=y===(L?"pm":"PM");return O},v={A:[a,function(y){this.afternoon=C(y,!1)}],a:[a,function(y){this.afternoon=C(y,!0)}],S:[/\d/,function(y){this.milliseconds=100*+y}],SS:[i,function(y){this.milliseconds=10*+y}],SSS:[/\d{3}/,function(y){this.milliseconds=+y}],s:[s,g("seconds")],ss:[s,g("seconds")],m:[s,g("minutes")],mm:[s,g("minutes")],H:[s,g("hours")],h:[s,g("hours")],HH:[s,g("hours")],hh:[s,g("hours")],D:[s,g("day")],DD:[i,g("day")],Do:[a,function(y){var L=k.ordinal,O=y.match(/\d+/);if(this.day=O[0],L)for(var W=1;W<=31;W+=1)L(W).replace(/\[|\]/g,"")===y&&(this.day=W)}],M:[s,g("month")],MM:[i,g("month")],MMM:[a,function(y){var L=U("months"),O=(U("monthsShort")||L.map(function(W){return W.slice(0,3)})).indexOf(y)+1;if(O<1)throw new Error;this.month=O%12||O}],MMMM:[a,function(y){var L=U("months").indexOf(y)+1;if(L<1)throw new Error;this.month=L%12||L}],Y:[/[+-]?\d+/,g("year")],YY:[i,function(y){this.year=Y(y)}],YYYY:[/\d{4}/,g("year")],Z:b,ZZ:b};function q(y){var L,O;L=y,O=k&&k.formats;for(var W=(y=L.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(F,D,w){var o=w&&w.toUpperCase();return D||O[w]||n[w]||O[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(d,m,u){return m||u.slice(1)})})).match(r),B=W.length,Z=0;Z<B;Z+=1){var Q=W[Z],x=v[Q],A=x&&x[0],T=x&&x[1];W[Z]=T?{regex:A,parser:T}:Q.replace(/^\[|\]$/g,"")}return function(F){for(var D={},w=0,o=0;w<B;w+=1){var d=W[w];if(typeof d=="string")o+=d.length;else{var m=d.regex,u=d.parser,S=F.slice(o),c=m.exec(S)[0];u.call(D,c),F=F.replace(c,"")}}return function(X){var f=X.afternoon;if(f!==void 0){var h=X.hours;f?h<12&&(X.hours+=12):h===12&&(X.hours=0),delete X.afternoon}}(D),D}}return function(y,L,O){O.p.customParseFormat=!0,y&&y.parseTwoDigitYear&&(Y=y.parseTwoDigitYear);var W=L.prototype,B=W.parse;W.parse=function(Z){var Q=Z.date,x=Z.utc,A=Z.args;this.$u=x;var T=A[1];if(typeof T=="string"){var F=A[2]===!0,D=A[3]===!0,w=F||D,o=A[2];D&&(o=A[2]),k=this.$locale(),!F&&o&&(k=O.Ls[o]),this.$d=function(S,c,X){try{if(["x","X"].indexOf(c)>-1)return new Date((c==="X"?1e3:1)*S);var f=q(c)(S),h=f.year,_=f.month,G=f.day,H=f.hours,V=f.minutes,I=f.seconds,P=f.milliseconds,st=f.zone,it=new Date,p=G||(h||_?1:it.getDate()),E=h||it.getFullYear(),M=0;h&&!_||(M=_>0?_-1:it.getMonth());var l=H||0,R=V||0,N=I||0,j=P||0;return st?new Date(Date.UTC(E,M,p,l,R,N,j+60*st.offset*1e3)):X?new Date(Date.UTC(E,M,p,l,R,N,j)):new Date(E,M,p,l,R,N,j)}catch{return new Date("")}}(Q,T,x),this.init(),o&&o!==!0&&(this.$L=this.locale(o).$L),w&&Q!=this.format(T)&&(this.$d=new Date("")),k={}}else if(T instanceof Array)for(var d=T.length,m=1;m<=d;m+=1){A[1]=T[m-1];var u=O.apply(this,A);if(u.isValid()){this.$d=u.$d,this.$L=u.$L,this.init();break}m===d&&(this.$d=new Date(""))}else B.call(this,Z)}}})})(mn);var Di=mn.exports;const Mi=ke(Di);var gn={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(ye,function(){return function(n,r){var i=r.prototype,s=i.format;i.format=function(a){var k=this,Y=this.$locale();if(!this.isValid())return s.bind(this)(a);var g=this.$utils(),b=(a||"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(U){switch(U){case"Q":return Math.ceil((k.$M+1)/3);case"Do":return Y.ordinal(k.$D);case"gggg":return k.weekYear();case"GGGG":return k.isoWeekYear();case"wo":return Y.ordinal(k.week(),"W");case"w":case"ww":return g.s(k.week(),U==="w"?1:2,"0");case"W":case"WW":return g.s(k.isoWeek(),U==="W"?1:2,"0");case"k":case"kk":return g.s(String(k.$H===0?24:k.$H),U==="k"?1:2,"0");case"X":return Math.floor(k.$d.getTime()/1e3);case"x":return k.$d.getTime();case"z":return"["+k.offsetName()+"]";case"zzz":return"["+k.offsetName("long")+"]";default:return U}});return s.bind(this)(b)}}})})(gn);var Si=gn.exports;const _i=ke(Si);nt.extend(Ci);nt.extend(Mi);nt.extend(_i);let at="",ve="",be,xe="",Ht=[],Nt=[],we={},Ce=[],Jt=[],_t="",De="";const yn=["active","done","crit","milestone"];let Me=[],Vt=!1,Se=!1,_e="sunday",de=0;const Ui=function(){Ce=[],Jt=[],_t="",Me=[],Zt=0,ge=void 0,Xt=void 0,$=[],at="",ve="",De="",be=void 0,xe="",Ht=[],Nt=[],Vt=!1,Se=!1,de=0,we={},Ln(),_e="sunday"},Yi=function(t){ve=t},Fi=function(){return ve},Li=function(t){be=t},Ei=function(){return be},Ai=function(t){xe=t},Ii=function(){return xe},Wi=function(t){at=t},Oi=function(){Vt=!0},Hi=function(){return Vt},Ni=function(){Se=!0},Vi=function(){return Se},Pi=function(t){De=t},zi=function(){return De},Ri=function(){return at},Bi=function(t){Ht=t.toLowerCase().split(/[\s,]+/)},Zi=function(){return Ht},Xi=function(t){Nt=t.toLowerCase().split(/[\s,]+/)},qi=function(){return Nt},Gi=function(){return we},ji=function(t){_t=t,Ce.push(t)},Qi=function(){return Ce},Ji=function(){let t=ze();const e=10;let n=0;for(;!t&&n<e;)t=ze(),n++;return Jt=$,Jt},kn=function(t,e,n,r){return r.includes(t.format(e.trim()))?!1:t.isoWeekday()>=6&&n.includes("weekends")||n.includes(t.format("dddd").toLowerCase())?!0:n.includes(t.format(e.trim()))},$i=function(t){_e=t},Ki=function(){return _e},pn=function(t,e,n,r){if(!n.length||t.manualEndTime)return;let i;t.startTime instanceof Date?i=nt(t.startTime):i=nt(t.startTime,e,!0),i=i.add(1,"d");let s;t.endTime instanceof Date?s=nt(t.endTime):s=nt(t.endTime,e,!0);const[a,k]=ts(i,s,e,n,r);t.endTime=a.toDate(),t.renderEndTime=k},ts=function(t,e,n,r,i){let s=!1,a=null;for(;t<=e;)s||(a=e.toDate()),s=kn(t,n,r,i),s&&(e=e.add(1,"d")),t=t.add(1,"d");return[e,a]},me=function(t,e,n){n=n.trim();const i=/^after\s+(?<ids>[\d\w- ]+)/.exec(n);if(i!==null){let a=null;for(const Y of i.groups.ids.split(" ")){let g=bt(Y);g!==void 0&&(!a||g.endTime>a.endTime)&&(a=g)}if(a)return a.endTime;const k=new Date;return k.setHours(0,0,0,0),k}let s=nt(n,e.trim(),!0);if(s.isValid())return s.toDate();{qt.debug("Invalid date:"+n),qt.debug("With date format:"+e.trim());const a=new Date(n);if(a===void 0||isNaN(a.getTime())||a.getFullYear()<-1e4||a.getFullYear()>1e4)throw new Error("Invalid date:"+n);return a}},Tn=function(t){const e=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());return e!==null?[Number.parseFloat(e[1]),e[2]]:[NaN,"ms"]},vn=function(t,e,n,r=!1){n=n.trim();const s=/^until\s+(?<ids>[\d\w- ]+)/.exec(n);if(s!==null){let b=null;for(const C of s.groups.ids.split(" ")){let v=bt(C);v!==void 0&&(!b||v.startTime<b.startTime)&&(b=v)}if(b)return b.startTime;const U=new Date;return U.setHours(0,0,0,0),U}let a=nt(n,e.trim(),!0);if(a.isValid())return r&&(a=a.add(1,"d")),a.toDate();let k=nt(t);const[Y,g]=Tn(n);if(!Number.isNaN(Y)){const b=k.add(Y,g);b.isValid()&&(k=b)}return k.toDate()};let Zt=0;const Dt=function(t){return t===void 0?(Zt=Zt+1,"task"+Zt):t},es=function(t,e){let n;e.substr(0,1)===":"?n=e.substr(1,e.length):n=e;const r=n.split(","),i={};Cn(r,i,yn);for(let a=0;a<r.length;a++)r[a]=r[a].trim();let s="";switch(r.length){case 1:i.id=Dt(),i.startTime=t.endTime,s=r[0];break;case 2:i.id=Dt(),i.startTime=me(void 0,at,r[0]),s=r[1];break;case 3:i.id=Dt(r[0]),i.startTime=me(void 0,at,r[1]),s=r[2];break}return s&&(i.endTime=vn(i.startTime,at,s,Vt),i.manualEndTime=nt(s,"YYYY-MM-DD",!0).isValid(),pn(i,at,Nt,Ht)),i},ns=function(t,e){let n;e.substr(0,1)===":"?n=e.substr(1,e.length):n=e;const r=n.split(","),i={};Cn(r,i,yn);for(let s=0;s<r.length;s++)r[s]=r[s].trim();switch(r.length){case 1:i.id=Dt(),i.startTime={type:"prevTaskEnd",id:t},i.endTime={data:r[0]};break;case 2:i.id=Dt(),i.startTime={type:"getStartDate",startData:r[0]},i.endTime={data:r[1]};break;case 3:i.id=Dt(r[0]),i.startTime={type:"getStartDate",startData:r[1]},i.endTime={data:r[2]};break}return i};let ge,Xt,$=[];const bn={},rs=function(t,e){const n={section:_t,type:_t,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:e},task:t,classes:[]},r=ns(Xt,e);n.raw.startTime=r.startTime,n.raw.endTime=r.endTime,n.id=r.id,n.prevTaskId=Xt,n.active=r.active,n.done=r.done,n.crit=r.crit,n.milestone=r.milestone,n.order=de,de++;const i=$.push(n);Xt=n.id,bn[n.id]=i-1},bt=function(t){const e=bn[t];return $[e]},is=function(t,e){const n={section:_t,type:_t,description:t,task:t,classes:[]},r=es(ge,e);n.startTime=r.startTime,n.endTime=r.endTime,n.id=r.id,n.active=r.active,n.done=r.done,n.crit=r.crit,n.milestone=r.milestone,ge=n,Jt.push(n)},ze=function(){const t=function(n){const r=$[n];let i="";switch($[n].raw.startTime.type){case"prevTaskEnd":{const s=bt(r.prevTaskId);r.startTime=s.endTime;break}case"getStartDate":i=me(void 0,at,$[n].raw.startTime.startData),i&&($[n].startTime=i);break}return $[n].startTime&&($[n].endTime=vn($[n].startTime,at,$[n].raw.endTime.data,Vt),$[n].endTime&&($[n].processed=!0,$[n].manualEndTime=nt($[n].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),pn($[n],at,Nt,Ht))),$[n].processed};let e=!0;for(const[n,r]of $.entries())t(n),e=e&&r.processed;return e},ss=function(t,e){let n=e;wt().securityLevel!=="loose"&&(n=En.sanitizeUrl(e)),t.split(",").forEach(function(r){bt(r)!==void 0&&(wn(r,()=>{window.open(n,"_self")}),we[r]=n)}),xn(t,"clickable")},xn=function(t,e){t.split(",").forEach(function(n){let r=bt(n);r!==void 0&&r.classes.push(e)})},as=function(t,e,n){if(wt().securityLevel!=="loose"||e===void 0)return;let r=[];if(typeof n=="string"){r=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let s=0;s<r.length;s++){let a=r[s].trim();a.charAt(0)==='"'&&a.charAt(a.length-1)==='"'&&(a=a.substr(1,a.length-2)),r[s]=a}}r.length===0&&r.push(t),bt(t)!==void 0&&wn(t,()=>{Wn.runFunc(e,...r)})},wn=function(t,e){Me.push(function(){const n=document.querySelector(`[id="${t}"]`);n!==null&&n.addEventListener("click",function(){e()})},function(){const n=document.querySelector(`[id="${t}-text"]`);n!==null&&n.addEventListener("click",function(){e()})})},os=function(t,e,n){t.split(",").forEach(function(r){as(r,e,n)}),xn(t,"clickable")},cs=function(t){Me.forEach(function(e){e(t)})},ls={getConfig:()=>wt().gantt,clear:Ui,setDateFormat:Wi,getDateFormat:Ri,enableInclusiveEndDates:Oi,endDatesAreInclusive:Hi,enableTopAxis:Ni,topAxisEnabled:Vi,setAxisFormat:Yi,getAxisFormat:Fi,setTickInterval:Li,getTickInterval:Ei,setTodayMarker:Ai,getTodayMarker:Ii,setAccTitle:Dn,getAccTitle:Mn,setDiagramTitle:Sn,getDiagramTitle:_n,setDisplayMode:Pi,getDisplayMode:zi,setAccDescription:Un,getAccDescription:Yn,addSection:ji,getSections:Qi,getTasks:Ji,addTask:rs,findTaskById:bt,addTaskOrg:is,setIncludes:Bi,getIncludes:Zi,setExcludes:Xi,getExcludes:qi,setClickEvent:os,setLink:ss,getLinks:Gi,bindFunctions:cs,parseDuration:Tn,isInvalidDate:kn,setWeekday:$i,getWeekday:Ki};function Cn(t,e,n){let r=!0;for(;r;)r=!1,n.forEach(function(i){const s="^\\s*"+i+"\\s*$",a=new RegExp(s);t[0].match(a)&&(e[i]=!0,t.shift(1),r=!0)})}const us=function(){qt.debug("Something is calling, setConf, remove the call")},Re={monday:It,tuesday:nn,wednesday:rn,thursday:kt,friday:sn,saturday:an,sunday:Ot},fs=(t,e)=>{let n=[...t].map(()=>-1/0),r=[...t].sort((s,a)=>s.startTime-a.startTime||s.order-a.order),i=0;for(const s of r)for(let a=0;a<n.length;a++)if(s.startTime>=n[a]){n[a]=s.endTime,s.order=a+e,a>i&&(i=a);break}return i};let lt;const hs=function(t,e,n,r){const i=wt().gantt,s=wt().securityLevel;let a;s==="sandbox"&&(a=zt("#i"+e));const k=s==="sandbox"?zt(a.nodes()[0].contentDocument.body):zt("body"),Y=s==="sandbox"?a.nodes()[0].contentDocument:document,g=Y.getElementById(e);lt=g.parentElement.offsetWidth,lt===void 0&&(lt=1200),i.useWidth!==void 0&&(lt=i.useWidth);const b=r.db.getTasks();let U=[];for(const T of b)U.push(T.type);U=A(U);const C={};let v=2*i.topPadding;if(r.db.getDisplayMode()==="compact"||i.displayMode==="compact"){const T={};for(const D of b)T[D.section]===void 0?T[D.section]=[D]:T[D.section].push(D);let F=0;for(const D of Object.keys(T)){const w=fs(T[D],F)+1;F+=w,v+=w*(i.barHeight+i.barGap),C[D]=w}}else{v+=b.length*(i.barHeight+i.barGap);for(const T of U)C[T]=b.filter(F=>F.type===T).length}g.setAttribute("viewBox","0 0 "+lt+" "+v);const q=k.select(`[id="${e}"]`),y=bi().domain([Bn(b,function(T){return T.startTime}),Rn(b,function(T){return T.endTime})]).rangeRound([0,lt-i.leftPadding-i.rightPadding]);function L(T,F){const D=T.startTime,w=F.startTime;let o=0;return D>w?o=1:D<w&&(o=-1),o}b.sort(L),O(b,lt,v),An(q,v,lt,i.useMaxWidth),q.append("text").text(r.db.getDiagramTitle()).attr("x",lt/2).attr("y",i.titleTopMargin).attr("class","titleText");function O(T,F,D){const w=i.barHeight,o=w+i.barGap,d=i.topPadding,m=i.leftPadding,u=Hn().domain([0,U.length]).range(["#00B9FA","#F95002"]).interpolate(sr);B(o,d,m,F,D,T,r.db.getExcludes(),r.db.getIncludes()),Z(m,d,F,D),W(T,o,d,m,w,u,F),Q(o,d),x(m,d,F,D)}function W(T,F,D,w,o,d,m){const S=[...new Set(T.map(h=>h.order))].map(h=>T.find(_=>_.order===h));q.append("g").selectAll("rect").data(S).enter().append("rect").attr("x",0).attr("y",function(h,_){return _=h.order,_*F+D-2}).attr("width",function(){return m-i.rightPadding/2}).attr("height",F).attr("class",function(h){for(const[_,G]of U.entries())if(h.type===G)return"section section"+_%i.numberSectionStyles;return"section section0"});const c=q.append("g").selectAll("rect").data(T).enter(),X=r.db.getLinks();if(c.append("rect").attr("id",function(h){return h.id}).attr("rx",3).attr("ry",3).attr("x",function(h){return h.milestone?y(h.startTime)+w+.5*(y(h.endTime)-y(h.startTime))-.5*o:y(h.startTime)+w}).attr("y",function(h,_){return _=h.order,_*F+D}).attr("width",function(h){return h.milestone?o:y(h.renderEndTime||h.endTime)-y(h.startTime)}).attr("height",o).attr("transform-origin",function(h,_){return _=h.order,(y(h.startTime)+w+.5*(y(h.endTime)-y(h.startTime))).toString()+"px "+(_*F+D+.5*o).toString()+"px"}).attr("class",function(h){const _="task";let G="";h.classes.length>0&&(G=h.classes.join(" "));let H=0;for(const[I,P]of U.entries())h.type===P&&(H=I%i.numberSectionStyles);let V="";return h.active?h.crit?V+=" activeCrit":V=" active":h.done?h.crit?V=" doneCrit":V=" done":h.crit&&(V+=" crit"),V.length===0&&(V=" task"),h.milestone&&(V=" milestone "+V),V+=H,V+=" "+G,_+V}),c.append("text").attr("id",function(h){return h.id+"-text"}).text(function(h){return h.task}).attr("font-size",i.fontSize).attr("x",function(h){let _=y(h.startTime),G=y(h.renderEndTime||h.endTime);h.milestone&&(_+=.5*(y(h.endTime)-y(h.startTime))-.5*o),h.milestone&&(G=_+o);const H=this.getBBox().width;return H>G-_?G+H+1.5*i.leftPadding>m?_+w-5:G+w+5:(G-_)/2+_+w}).attr("y",function(h,_){return _=h.order,_*F+i.barHeight/2+(i.fontSize/2-2)+D}).attr("text-height",o).attr("class",function(h){const _=y(h.startTime);let G=y(h.endTime);h.milestone&&(G=_+o);const H=this.getBBox().width;let V="";h.classes.length>0&&(V=h.classes.join(" "));let I=0;for(const[st,it]of U.entries())h.type===it&&(I=st%i.numberSectionStyles);let P="";return h.active&&(h.crit?P="activeCritText"+I:P="activeText"+I),h.done?h.crit?P=P+" doneCritText"+I:P=P+" doneText"+I:h.crit&&(P=P+" critText"+I),h.milestone&&(P+=" milestoneText"),H>G-_?G+H+1.5*i.leftPadding>m?V+" taskTextOutsideLeft taskTextOutside"+I+" "+P:V+" taskTextOutsideRight taskTextOutside"+I+" "+P+" width-"+H:V+" taskText taskText"+I+" "+P+" width-"+H}),wt().securityLevel==="sandbox"){let h;h=zt("#i"+e);const _=h.nodes()[0].contentDocument;c.filter(function(G){return X[G.id]!==void 0}).each(function(G){var H=_.querySelector("#"+G.id),V=_.querySelector("#"+G.id+"-text");const I=H.parentNode;var P=_.createElement("a");P.setAttribute("xlink:href",X[G.id]),P.setAttribute("target","_top"),I.appendChild(P),P.appendChild(H),P.appendChild(V)})}}function B(T,F,D,w,o,d,m,u){if(m.length===0&&u.length===0)return;let S,c;for(const{startTime:H,endTime:V}of d)(S===void 0||H<S)&&(S=H),(c===void 0||V>c)&&(c=V);if(!S||!c)return;if(nt(c).diff(nt(S),"year")>5){qt.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");return}const X=r.db.getDateFormat(),f=[];let h=null,_=nt(S);for(;_.valueOf()<=c;)r.db.isInvalidDate(_,X,m,u)?h?h.end=_:h={start:_,end:_}:h&&(f.push(h),h=null),_=_.add(1,"d");q.append("g").selectAll("rect").data(f).enter().append("rect").attr("id",function(H){return"exclude-"+H.start.format("YYYY-MM-DD")}).attr("x",function(H){return y(H.start)+D}).attr("y",i.gridLineStartPadding).attr("width",function(H){const V=H.end.add(1,"day");return y(V)-y(H.start)}).attr("height",o-F-i.gridLineStartPadding).attr("transform-origin",function(H,V){return(y(H.start)+D+.5*(y(H.end)-y(H.start))).toString()+"px "+(V*T+.5*o).toString()+"px"}).attr("class","exclude-range")}function Z(T,F,D,w){let o=$n(y).tickSize(-w+F+i.gridLineStartPadding).tickFormat(Qt(r.db.getAxisFormat()||i.axisFormat||"%Y-%m-%d"));const m=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(r.db.getTickInterval()||i.tickInterval);if(m!==null){const u=m[1],S=m[2],c=r.db.getWeekday()||i.weekday;switch(S){case"millisecond":o.ticks(Mt.every(u));break;case"second":o.ticks(gt.every(u));break;case"minute":o.ticks(Et.every(u));break;case"hour":o.ticks(At.every(u));break;case"day":o.ticks(yt.every(u));break;case"week":o.ticks(Re[c].every(u));break;case"month":o.ticks(Wt.every(u));break}}if(q.append("g").attr("class","grid").attr("transform","translate("+T+", "+(w-50)+")").call(o).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),r.db.topAxisEnabled()||i.topAxis){let u=Jn(y).tickSize(-w+F+i.gridLineStartPadding).tickFormat(Qt(r.db.getAxisFormat()||i.axisFormat||"%Y-%m-%d"));if(m!==null){const S=m[1],c=m[2],X=r.db.getWeekday()||i.weekday;switch(c){case"millisecond":u.ticks(Mt.every(S));break;case"second":u.ticks(gt.every(S));break;case"minute":u.ticks(Et.every(S));break;case"hour":u.ticks(At.every(S));break;case"day":u.ticks(yt.every(S));break;case"week":u.ticks(Re[X].every(S));break;case"month":u.ticks(Wt.every(S));break}}q.append("g").attr("class","grid").attr("transform","translate("+T+", "+F+")").call(u).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}function Q(T,F){let D=0;const w=Object.keys(C).map(o=>[o,C[o]]);q.append("g").selectAll("text").data(w).enter().append(function(o){const d=o[0].split(In.lineBreakRegex),m=-(d.length-1)/2,u=Y.createElementNS("http://www.w3.org/2000/svg","text");u.setAttribute("dy",m+"em");for(const[S,c]of d.entries()){const X=Y.createElementNS("http://www.w3.org/2000/svg","tspan");X.setAttribute("alignment-baseline","central"),X.setAttribute("x","10"),S>0&&X.setAttribute("dy","1em"),X.textContent=c,u.appendChild(X)}return u}).attr("x",10).attr("y",function(o,d){if(d>0)for(let m=0;m<d;m++)return D+=w[d-1][1],o[1]*T/2+D*T+F;else return o[1]*T/2+F}).attr("font-size",i.sectionFontSize).attr("class",function(o){for(const[d,m]of U.entries())if(o[0]===m)return"sectionTitle sectionTitle"+d%i.numberSectionStyles;return"sectionTitle"})}function x(T,F,D,w){const o=r.db.getTodayMarker();if(o==="off")return;const d=q.append("g").attr("class","today"),m=new Date,u=d.append("line");u.attr("x1",y(m)+T).attr("x2",y(m)+T).attr("y1",i.titleTopMargin).attr("y2",w-i.titleTopMargin).attr("class","today"),o!==""&&u.attr("style",o.replace(/,/g,";"))}function A(T){const F={},D=[];for(let w=0,o=T.length;w<o;++w)Object.prototype.hasOwnProperty.call(F,T[w])||(F[T[w]]=!0,D.push(T[w]));return D}},ds={setConf:us,draw:hs},ms=t=>`
.mermaid-main-font {
font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);
}
.exclude-range {
fill: ${t.excludeBkgColor};
}
.section {
stroke: none;
opacity: 0.2;
}
.section0 {
fill: ${t.sectionBkgColor};
}
.section2 {
fill: ${t.sectionBkgColor2};
}
.section1,
.section3 {
fill: ${t.altSectionBkgColor};
opacity: 0.2;
}
.sectionTitle0 {
fill: ${t.titleColor};
}
.sectionTitle1 {
fill: ${t.titleColor};
}
.sectionTitle2 {
fill: ${t.titleColor};
}
.sectionTitle3 {
fill: ${t.titleColor};
}
.sectionTitle {
text-anchor: start;
font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);
}
/* Grid and axis */
.grid .tick {
stroke: ${t.gridColor};
opacity: 0.8;
shape-rendering: crispEdges;
}
.grid .tick text {
font-family: ${t.fontFamily};
fill: ${t.textColor};
}
.grid path {
stroke-width: 0;
}
/* Today line */
.today {
fill: none;
stroke: ${t.todayLineColor};
stroke-width: 2px;
}
/* Task styling */
/* Default task */
.task {
stroke-width: 2;
}
.taskText {
text-anchor: middle;
font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);
}
.taskTextOutsideRight {
fill: ${t.taskTextDarkColor};
text-anchor: start;
font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);
}
.taskTextOutsideLeft {
fill: ${t.taskTextDarkColor};
text-anchor: end;
}
/* Special case clickable */
.task.clickable {
cursor: pointer;
}
.taskText.clickable {
cursor: pointer;
fill: ${t.taskTextClickableColor} !important;
font-weight: bold;
}
.taskTextOutsideLeft.clickable {
cursor: pointer;
fill: ${t.taskTextClickableColor} !important;
font-weight: bold;
}
.taskTextOutsideRight.clickable {
cursor: pointer;
fill: ${t.taskTextClickableColor} !important;
font-weight: bold;
}
/* Specific task settings for the sections*/
.taskText0,
.taskText1,
.taskText2,
.taskText3 {
fill: ${t.taskTextColor};
}
.task0,
.task1,
.task2,
.task3 {
fill: ${t.taskBkgColor};
stroke: ${t.taskBorderColor};
}
.taskTextOutside0,
.taskTextOutside2
{
fill: ${t.taskTextOutsideColor};
}
.taskTextOutside1,
.taskTextOutside3 {
fill: ${t.taskTextOutsideColor};
}
/* Active task */
.active0,
.active1,
.active2,
.active3 {
fill: ${t.activeTaskBkgColor};
stroke: ${t.activeTaskBorderColor};
}
.activeText0,
.activeText1,
.activeText2,
.activeText3 {
fill: ${t.taskTextDarkColor} !important;
}
/* Completed task */
.done0,
.done1,
.done2,
.done3 {
stroke: ${t.doneTaskBorderColor};
fill: ${t.doneTaskBkgColor};
stroke-width: 2;
}
.doneText0,
.doneText1,
.doneText2,
.doneText3 {
fill: ${t.taskTextDarkColor} !important;
}
/* Tasks on the critical line */
.crit0,
.crit1,
.crit2,
.crit3 {
stroke: ${t.critBorderColor};
fill: ${t.critBkgColor};
stroke-width: 2;
}
.activeCrit0,
.activeCrit1,
.activeCrit2,
.activeCrit3 {
stroke: ${t.critBorderColor};
fill: ${t.activeTaskBkgColor};
stroke-width: 2;
}
.doneCrit0,
.doneCrit1,
.doneCrit2,
.doneCrit3 {
stroke: ${t.critBorderColor};
fill: ${t.doneTaskBkgColor};
stroke-width: 2;
cursor: pointer;
shape-rendering: crispEdges;
}
.milestone {
transform: rotate(45deg) scale(0.8,0.8);
}
.milestoneText {
font-style: italic;
}
.doneCritText0,
.doneCritText1,
.doneCritText2,
.doneCritText3 {
fill: ${t.taskTextDarkColor} !important;
}
.activeCritText0,
.activeCritText1,
.activeCritText2,
.activeCritText3 {
fill: ${t.taskTextDarkColor} !important;
}
.titleText {
text-anchor: middle;
font-size: 18px;
fill: ${t.titleColor||t.textColor};
font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);
}
`,gs=ms,Ds={parser:xi,db:ls,renderer:ds,styles:gs};export{Ds as diagram};
import{d as xDe,p as RDe}from"./flowDb-147da10a-DiemYpRj.js";import{M as Dse,O as KDe,l as Ba,h as OA,b0 as $U,t as BDe,n as Ebn,p as jbn,q as DU,j as FDe}from"./slidev/5-BKiUV7YW.js";import{i as _De,a as HDe,l as qDe,b as UDe,k as GDe,m as zDe}from"./edges-1e1ebc73-5f7nvF86.js";import{l as XDe}from"./line-65d70945-BvyDbe4_.js";import"./modules/vue-Dn3czbSS.js";import"./index-D2S1x1Oe.js";import"./modules/shiki-CuMFyo6Z.js";import"./modules/file-saver-EUMWMpoS.js";import"./slidev/default-CY-sqYNf.js";import"./slidev/context-CYh2-pv1.js";import"./createText-f6615236-y76jB5p3.js";import"./array-b7dcf730-BKyUJesY.js";import"./path-39bad7e2-CbwjOpE9.js";const VDe=(ct,_t,Xt)=>{const{parentById:gt}=Xt,Pr=new Set;let Li=ct;for(;Li;){if(Pr.add(Li),Li===_t)return Li;Li=gt[Li]}for(Li=_t;Li;){if(Pr.has(Li))return Li;Li=gt[Li]}return"root"};function NU(ct){throw new Error('Could not dynamically require "'+ct+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Kse={exports:{}};(function(ct,_t){(function(Xt){ct.exports=Xt()})(function(){return function(){function Xt(gt,Pr,Li){function y(Ht,Jt){if(!Pr[Ht]){if(!gt[Ht]){var Xe=typeof NU=="function"&&NU;if(!Jt&&Xe)return Xe(Ht,!0);if(Wt)return Wt(Ht,!0);var Yi=new Error("Cannot find module '"+Ht+"'");throw Yi.code="MODULE_NOT_FOUND",Yi}var Bi=Pr[Ht]={exports:{}};gt[Ht][0].call(Bi.exports,function(En){var hu=gt[Ht][1][En];return y(hu||En)},Bi,Bi.exports,Xt,gt,Pr,Li)}return Pr[Ht].exports}for(var Wt=typeof NU=="function"&&NU,Ku=0;Ku<Li.length;Ku++)y(Li[Ku]);return y}return Xt}()({1:[function(Xt,gt,Pr){Object.defineProperty(Pr,"__esModule",{value:!0});var Li=function(){function Ht(Jt,Xe){for(var Yi=0;Yi<Xe.length;Yi++){var Bi=Xe[Yi];Bi.enumerable=Bi.enumerable||!1,Bi.configurable=!0,"value"in Bi&&(Bi.writable=!0),Object.defineProperty(Jt,Bi.key,Bi)}}return function(Jt,Xe,Yi){return Xe&&Ht(Jt.prototype,Xe),Yi&&Ht(Jt,Yi),Jt}}();function y(Ht,Jt){if(!(Ht instanceof Jt))throw new TypeError("Cannot call a class as a function")}var Wt=function(){function Ht(){var Jt=this,Xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Yi=Xe.defaultLayoutOptions,Bi=Yi===void 0?{}:Yi,En=Xe.algorithms,hu=En===void 0?["layered","stress","mrtree","radial","force","disco","sporeOverlap","sporeCompaction","rectpacking"]:En,Qc=Xe.workerFactory,Bu=Xe.workerUrl;if(y(this,Ht),this.defaultLayoutOptions=Bi,this.initialized=!1,typeof Bu>"u"&&typeof Qc>"u")throw new Error("Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.");var Ir=Qc;typeof Bu<"u"&&typeof Qc>"u"&&(Ir=function(D1){return new Worker(D1)});var Tf=Ir(Bu);if(typeof Tf.postMessage!="function")throw new TypeError("Created worker does not provide the required 'postMessage' function.");this.worker=new Ku(Tf),this.worker.postMessage({cmd:"register",algorithms:hu}).then(function(N1){return Jt.initialized=!0}).catch(console.err)}return Li(Ht,[{key:"layout",value:function(Xe){var Yi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Bi=Yi.layoutOptions,En=Bi===void 0?this.defaultLayoutOptions:Bi,hu=Yi.logging,Qc=hu===void 0?!1:hu,Bu=Yi.measureExecutionTime,Ir=Bu===void 0?!1:Bu;return Xe?this.worker.postMessage({cmd:"layout",graph:Xe,layoutOptions:En,options:{logging:Qc,measureExecutionTime:Ir}}):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()}}]),Ht}();Pr.default=Wt;var Ku=function(){function Ht(Jt){var Xe=this;if(y(this,Ht),Jt===void 0)throw new Error("Missing mandatory parameter 'worker'.");this.resolvers={},this.worker=Jt,this.worker.onmessage=function(Yi){setTimeout(function(){Xe.receive(Xe,Yi)},0)}}return Li(Ht,[{key:"postMessage",value:function(Xe){var Yi=this.id||0;this.id=Yi+1,Xe.id=Yi;var Bi=this;return new Promise(function(En,hu){Bi.resolvers[Yi]=function(Qc,Bu){Qc?(Bi.convertGwtStyleError(Qc),hu(Qc)):En(Bu)},Bi.worker.postMessage(Xe)})}},{key:"receive",value:function(Xe,Yi){var Bi=Yi.data,En=Xe.resolvers[Bi.id];En&&(delete Xe.resolvers[Bi.id],Bi.error?En(Bi.error):En(null,Bi.data))}},{key:"terminate",value:function(){this.worker.terminate&&this.worker.terminate()}},{key:"convertGwtStyleError",value:function(Xe){if(Xe){var Yi=Xe.__java$exception;Yi&&(Yi.cause&&Yi.cause.backingJsObject&&(Xe.cause=Yi.cause.backingJsObject,this.convertGwtStyleError(Xe.cause)),delete Xe.__java$exception)}}}]),Ht}()},{}],2:[function(Xt,gt,Pr){(function(Li){(function(){var y;typeof window<"u"?y=window:typeof Li<"u"?y=Li:typeof self<"u"&&(y=self);var Wt;function Ku(){}function Ht(){}function Jt(){}function Xe(){}function Yi(){}function Bi(){}function En(){}function hu(){}function Qc(){}function Bu(){}function Ir(){}function Tf(){}function N1(){}function D1(){}function og(){}function V3(){}function $1(){}function ul(){}function Mbn(){}function Tbn(){}function Q2(){}function R(){}function Cbn(){}function mE(){}function Sbn(){}function Pbn(){}function Ibn(){}function Obn(){}function Abn(){}function xU(){}function Lbn(){}function Nbn(){}function Dbn(){}function AA(){}function $bn(){}function xbn(){}function Rbn(){}function LA(){}function Kbn(){}function Bbn(){}function RU(){}function Fbn(){}function _bn(){}function yu(){}function ju(){}function Y2(){}function Z2(){}function Hbn(){}function qbn(){}function Ubn(){}function Gbn(){}function KU(){}function Eu(){}function np(){}function ep(){}function zbn(){}function Xbn(){}function NA(){}function Vbn(){}function Wbn(){}function Jbn(){}function Qbn(){}function Ybn(){}function Zbn(){}function n0n(){}function e0n(){}function t0n(){}function i0n(){}function r0n(){}function c0n(){}function u0n(){}function o0n(){}function s0n(){}function f0n(){}function h0n(){}function l0n(){}function a0n(){}function d0n(){}function b0n(){}function w0n(){}function g0n(){}function p0n(){}function m0n(){}function v0n(){}function k0n(){}function y0n(){}function j0n(){}function E0n(){}function M0n(){}function T0n(){}function C0n(){}function BU(){}function S0n(){}function P0n(){}function I0n(){}function O0n(){}function DA(){}function $A(){}function vE(){}function A0n(){}function L0n(){}function xA(){}function N0n(){}function D0n(){}function $0n(){}function kE(){}function x0n(){}function R0n(){}function K0n(){}function B0n(){}function F0n(){}function _0n(){}function H0n(){}function q0n(){}function U0n(){}function FU(){}function G0n(){}function z0n(){}function _U(){}function X0n(){}function V0n(){}function W0n(){}function J0n(){}function Q0n(){}function Y0n(){}function Z0n(){}function nwn(){}function ewn(){}function twn(){}function iwn(){}function rwn(){}function cwn(){}function RA(){}function uwn(){}function own(){}function swn(){}function fwn(){}function hwn(){}function lwn(){}function awn(){}function dwn(){}function bwn(){}function HU(){}function qU(){}function wwn(){}function gwn(){}function pwn(){}function mwn(){}function vwn(){}function kwn(){}function ywn(){}function jwn(){}function Ewn(){}function Mwn(){}function Twn(){}function Cwn(){}function Swn(){}function Pwn(){}function Iwn(){}function Own(){}function Awn(){}function Lwn(){}function Nwn(){}function Dwn(){}function $wn(){}function xwn(){}function Rwn(){}function Kwn(){}function Bwn(){}function Fwn(){}function _wn(){}function Hwn(){}function qwn(){}function Uwn(){}function Gwn(){}function zwn(){}function Xwn(){}function Vwn(){}function Wwn(){}function Jwn(){}function Qwn(){}function Ywn(){}function Zwn(){}function ngn(){}function egn(){}function tgn(){}function ign(){}function rgn(){}function cgn(){}function ugn(){}function ogn(){}function sgn(){}function fgn(){}function hgn(){}function lgn(){}function agn(){}function dgn(){}function bgn(){}function wgn(){}function ggn(){}function pgn(){}function mgn(){}function vgn(){}function kgn(){}function ygn(){}function jgn(){}function Egn(){}function Mgn(){}function Tgn(){}function Cgn(){}function Sgn(){}function Pgn(){}function Ign(){}function Ogn(){}function Agn(){}function Lgn(){}function Ngn(){}function Dgn(){}function $gn(){}function xgn(){}function Rgn(){}function Kgn(){}function Bgn(){}function Fgn(){}function _gn(){}function Hgn(){}function qgn(){}function Ugn(){}function Ggn(){}function zgn(){}function Xgn(){}function Vgn(){}function Wgn(){}function Jgn(){}function Qgn(){}function Ygn(){}function Zgn(){}function n2n(){}function e2n(){}function t2n(){}function i2n(){}function r2n(){}function c2n(){}function u2n(){}function UU(){}function o2n(){}function s2n(){}function f2n(){}function h2n(){}function l2n(){}function a2n(){}function d2n(){}function b2n(){}function w2n(){}function g2n(){}function p2n(){}function m2n(){}function v2n(){}function k2n(){}function y2n(){}function j2n(){}function E2n(){}function M2n(){}function T2n(){}function C2n(){}function S2n(){}function P2n(){}function I2n(){}function O2n(){}function A2n(){}function L2n(){}function N2n(){}function D2n(){}function $2n(){}function x2n(){}function R2n(){}function K2n(){}function B2n(){}function F2n(){}function _2n(){}function H2n(){}function q2n(){}function U2n(){}function G2n(){}function z2n(){}function X2n(){}function V2n(){}function W2n(){}function J2n(){}function Q2n(){}function Y2n(){}function Z2n(){}function npn(){}function epn(){}function tpn(){}function ipn(){}function rpn(){}function cpn(){}function upn(){}function opn(){}function spn(){}function fpn(){}function hpn(){}function lpn(){}function apn(){}function dpn(){}function bpn(){}function wpn(){}function gpn(){}function ppn(){}function mpn(){}function vpn(){}function kpn(){}function ypn(){}function jpn(){}function Epn(){}function Mpn(){}function Tpn(){}function GU(){}function Cpn(){}function Spn(){}function Ppn(){}function Ipn(){}function Opn(){}function Apn(){}function Lpn(){}function Npn(){}function Dpn(){}function $pn(){}function zU(){}function xpn(){}function Rpn(){}function Kpn(){}function Bpn(){}function Fpn(){}function _pn(){}function XU(){}function VU(){}function Hpn(){}function WU(){}function JU(){}function qpn(){}function Upn(){}function Gpn(){}function zpn(){}function Xpn(){}function Vpn(){}function Wpn(){}function Jpn(){}function Qpn(){}function Ypn(){}function Zpn(){}function QU(){}function n3n(){}function e3n(){}function t3n(){}function i3n(){}function r3n(){}function c3n(){}function u3n(){}function o3n(){}function s3n(){}function f3n(){}function h3n(){}function l3n(){}function a3n(){}function d3n(){}function b3n(){}function w3n(){}function g3n(){}function p3n(){}function m3n(){}function v3n(){}function k3n(){}function y3n(){}function j3n(){}function E3n(){}function M3n(){}function T3n(){}function C3n(){}function S3n(){}function P3n(){}function I3n(){}function O3n(){}function A3n(){}function L3n(){}function N3n(){}function D3n(){}function $3n(){}function x3n(){}function R3n(){}function K3n(){}function B3n(){}function F3n(){}function _3n(){}function H3n(){}function q3n(){}function U3n(){}function G3n(){}function z3n(){}function X3n(){}function V3n(){}function W3n(){}function J3n(){}function Q3n(){}function Y3n(){}function Z3n(){}function n4n(){}function e4n(){}function t4n(){}function i4n(){}function r4n(){}function c4n(){}function u4n(){}function o4n(){}function s4n(){}function f4n(){}function h4n(){}function l4n(){}function a4n(){}function d4n(){}function b4n(){}function w4n(){}function g4n(){}function p4n(){}function m4n(){}function v4n(){}function k4n(){}function y4n(){}function j4n(){}function E4n(){}function M4n(){}function T4n(){}function C4n(){}function S4n(){}function P4n(){}function I4n(){}function O4n(){}function A4n(){}function _se(){}function L4n(){}function N4n(){}function D4n(){}function $4n(){}function x4n(){}function R4n(){}function K4n(){}function B4n(){}function F4n(){}function _4n(){}function H4n(){}function q4n(){}function U4n(){}function G4n(){}function z4n(){}function X4n(){}function V4n(){}function W4n(){}function J4n(){}function Q4n(){}function Y4n(){}function Z4n(){}function nmn(){}function emn(){}function tmn(){}function imn(){}function rmn(){}function KA(){}function BA(){}function cmn(){}function FA(){}function umn(){}function omn(){}function smn(){}function fmn(){}function hmn(){}function lmn(){}function amn(){}function dmn(){}function bmn(){}function wmn(){}function YU(){}function gmn(){}function pmn(){}function mmn(){}function Hse(){}function vmn(){}function kmn(){}function ymn(){}function jmn(){}function Emn(){}function Mmn(){}function Tmn(){}function Fa(){}function Cmn(){}function tp(){}function ZU(){}function Smn(){}function Pmn(){}function Imn(){}function Omn(){}function Amn(){}function Lmn(){}function Nmn(){}function Dmn(){}function $mn(){}function xmn(){}function Rmn(){}function Kmn(){}function Bmn(){}function Fmn(){}function _mn(){}function Hmn(){}function qmn(){}function Umn(){}function Gmn(){}function hn(){}function zmn(){}function Xmn(){}function Vmn(){}function Wmn(){}function Jmn(){}function Qmn(){}function Ymn(){}function Zmn(){}function nvn(){}function evn(){}function tvn(){}function ivn(){}function rvn(){}function _A(){}function cvn(){}function uvn(){}function ovn(){}function yE(){}function svn(){}function HA(){}function jE(){}function fvn(){}function nG(){}function hvn(){}function lvn(){}function avn(){}function dvn(){}function bvn(){}function wvn(){}function EE(){}function gvn(){}function pvn(){}function ME(){}function mvn(){}function TE(){}function vvn(){}function eG(){}function kvn(){}function qA(){}function tG(){}function yvn(){}function jvn(){}function Evn(){}function Mvn(){}function qse(){}function Tvn(){}function Cvn(){}function Svn(){}function Pvn(){}function Ivn(){}function Ovn(){}function Avn(){}function Lvn(){}function Nvn(){}function Dvn(){}function W3(){}function UA(){}function $vn(){}function xvn(){}function Rvn(){}function Kvn(){}function Bvn(){}function Fvn(){}function _vn(){}function Hvn(){}function qvn(){}function Uvn(){}function Gvn(){}function zvn(){}function Xvn(){}function Vvn(){}function Wvn(){}function Jvn(){}function Qvn(){}function Yvn(){}function Zvn(){}function n6n(){}function e6n(){}function t6n(){}function i6n(){}function r6n(){}function c6n(){}function u6n(){}function o6n(){}function s6n(){}function f6n(){}function h6n(){}function l6n(){}function a6n(){}function d6n(){}function b6n(){}function w6n(){}function g6n(){}function p6n(){}function m6n(){}function v6n(){}function k6n(){}function y6n(){}function j6n(){}function E6n(){}function M6n(){}function T6n(){}function C6n(){}function S6n(){}function P6n(){}function I6n(){}function O6n(){}function A6n(){}function L6n(){}function N6n(){}function D6n(){}function $6n(){}function x6n(){}function R6n(){}function K6n(){}function B6n(){}function F6n(){}function _6n(){}function H6n(){}function q6n(){}function U6n(){}function G6n(){}function z6n(){}function X6n(){}function V6n(){}function W6n(){}function J6n(){}function Q6n(){}function Y6n(){}function Z6n(){}function n5n(){}function e5n(){}function t5n(){}function i5n(){}function r5n(){}function c5n(){}function u5n(){}function o5n(){}function s5n(){}function f5n(){}function h5n(){}function l5n(){}function a5n(){}function d5n(){}function b5n(){}function w5n(){}function g5n(){}function p5n(){}function m5n(){}function v5n(){}function k5n(){}function y5n(){}function j5n(){}function E5n(){}function M5n(){}function T5n(){}function C5n(){}function S5n(){}function iG(){}function P5n(){}function I5n(){}function GA(){Zv()}function O5n(){r7()}function A5n(){aS()}function L5n(){Q$()}function N5n(){M5()}function D5n(){lnn()}function $5n(){Us()}function x5n(){yZ()}function R5n(){Uk()}function K5n(){c7()}function B5n(){N7()}function F5n(){aMn()}function _5n(){Hp()}function H5n(){FNn()}function q5n(){kQ()}function U5n(){PAn()}function G5n(){yQ()}function z5n(){pDn()}function X5n(){SAn()}function V5n(){cm()}function W5n(){nxn()}function J5n(){Z$n()}function Q5n(){ELn()}function Y5n(){exn()}function Z5n(){ua()}function n8n(){ZE()}function e8n(){htn()}function t8n(){cn()}function i8n(){txn()}function r8n(){Ixn()}function c8n(){IAn()}function u8n(){nFn()}function o8n(){OAn()}function s8n(){bUn()}function f8n(){Hnn()}function h8n(){kl()}function l8n(){wKn()}function a8n(){lc()}function d8n(){BAn()}function b8n(){_p()}function w8n(){Men()}function g8n(){oa()}function p8n(){Ten()}function m8n(){Bf()}function v8n(){Wk()}function k8n(){ER()}function y8n(){Lx()}function uf(){wPn()}function j8n(){YT()}function E8n(){mS()}function rG(){He()}function M8n(){DC()}function T8n(){QY()}function cG(){L$()}function uG(){FS()}function C8n(){xen()}function oG(n){Jn(n)}function S8n(n){this.a=n}function CE(n){this.a=n}function P8n(n){this.a=n}function I8n(n){this.a=n}function O8n(n){this.a=n}function A8n(n){this.a=n}function L8n(n){this.a=n}function N8n(n){this.a=n}function sG(n){this.a=n}function fG(n){this.a=n}function D8n(n){this.a=n}function $8n(n){this.a=n}function zA(n){this.a=n}function x8n(n){this.a=n}function R8n(n){this.a=n}function XA(n){this.a=n}function VA(n){this.a=n}function K8n(n){this.a=n}function WA(n){this.a=n}function B8n(n){this.a=n}function F8n(n){this.a=n}function _8n(n){this.a=n}function hG(n){this.b=n}function H8n(n){this.c=n}function q8n(n){this.a=n}function U8n(n){this.a=n}function G8n(n){this.a=n}function z8n(n){this.a=n}function X8n(n){this.a=n}function V8n(n){this.a=n}function W8n(n){this.a=n}function J8n(n){this.a=n}function Q8n(n){this.a=n}function Y8n(n){this.a=n}function Z8n(n){this.a=n}function n9n(n){this.a=n}function e9n(n){this.a=n}function lG(n){this.a=n}function aG(n){this.a=n}function SE(n){this.a=n}function U9(n){this.a=n}function _a(){this.a=[]}function t9n(n,e){n.a=e}function Use(n,e){n.a=e}function Gse(n,e){n.b=e}function zse(n,e){n.b=e}function Xse(n,e){n.b=e}function dG(n,e){n.j=e}function Vse(n,e){n.g=e}function Wse(n,e){n.i=e}function Jse(n,e){n.c=e}function Qse(n,e){n.c=e}function Yse(n,e){n.d=e}function Zse(n,e){n.d=e}function Ha(n,e){n.k=e}function nfe(n,e){n.c=e}function bG(n,e){n.c=e}function wG(n,e){n.a=e}function efe(n,e){n.a=e}function tfe(n,e){n.f=e}function ife(n,e){n.a=e}function rfe(n,e){n.b=e}function JA(n,e){n.d=e}function PE(n,e){n.i=e}function gG(n,e){n.o=e}function cfe(n,e){n.r=e}function ufe(n,e){n.a=e}function ofe(n,e){n.b=e}function i9n(n,e){n.e=e}function sfe(n,e){n.f=e}function pG(n,e){n.g=e}function ffe(n,e){n.e=e}function hfe(n,e){n.f=e}function lfe(n,e){n.f=e}function QA(n,e){n.a=e}function YA(n,e){n.b=e}function afe(n,e){n.n=e}function dfe(n,e){n.a=e}function bfe(n,e){n.c=e}function wfe(n,e){n.c=e}function gfe(n,e){n.c=e}function pfe(n,e){n.a=e}function mfe(n,e){n.a=e}function vfe(n,e){n.d=e}function kfe(n,e){n.d=e}function yfe(n,e){n.e=e}function jfe(n,e){n.e=e}function Efe(n,e){n.g=e}function Mfe(n,e){n.f=e}function Tfe(n,e){n.j=e}function Cfe(n,e){n.a=e}function Sfe(n,e){n.a=e}function Pfe(n,e){n.b=e}function r9n(n){n.b=n.a}function c9n(n){n.c=n.d.d}function mG(n){this.a=n}function vG(n){this.a=n}function kG(n){this.a=n}function qa(n){this.a=n}function Ua(n){this.a=n}function G9(n){this.a=n}function u9n(n){this.a=n}function yG(n){this.a=n}function z9(n){this.a=n}function IE(n){this.a=n}function ol(n){this.a=n}function P0(n){this.a=n}function o9n(n){this.a=n}function s9n(n){this.a=n}function ZA(n){this.b=n}function J3(n){this.b=n}function Q3(n){this.b=n}function nL(n){this.a=n}function f9n(n){this.a=n}function eL(n){this.c=n}function M(n){this.c=n}function h9n(n){this.c=n}function zv(n){this.d=n}function jG(n){this.a=n}function Ce(n){this.a=n}function l9n(n){this.a=n}function EG(n){this.a=n}function MG(n){this.a=n}function TG(n){this.a=n}function CG(n){this.a=n}function SG(n){this.a=n}function PG(n){this.a=n}function Y3(n){this.a=n}function a9n(n){this.a=n}function d9n(n){this.a=n}function Z3(n){this.a=n}function b9n(n){this.a=n}function w9n(n){this.a=n}function g9n(n){this.a=n}function p9n(n){this.a=n}function m9n(n){this.a=n}function v9n(n){this.a=n}function k9n(n){this.a=n}function y9n(n){this.a=n}function j9n(n){this.a=n}function E9n(n){this.a=n}function M9n(n){this.a=n}function T9n(n){this.a=n}function C9n(n){this.a=n}function S9n(n){this.a=n}function P9n(n){this.a=n}function Xv(n){this.a=n}function I9n(n){this.a=n}function O9n(n){this.a=n}function A9n(n){this.a=n}function L9n(n){this.a=n}function OE(n){this.a=n}function N9n(n){this.a=n}function D9n(n){this.a=n}function n4(n){this.a=n}function IG(n){this.a=n}function $9n(n){this.a=n}function x9n(n){this.a=n}function R9n(n){this.a=n}function K9n(n){this.a=n}function B9n(n){this.a=n}function F9n(n){this.a=n}function OG(n){this.a=n}function AG(n){this.a=n}function LG(n){this.a=n}function Vv(n){this.a=n}function AE(n){this.e=n}function e4(n){this.a=n}function _9n(n){this.a=n}function ip(n){this.a=n}function NG(n){this.a=n}function H9n(n){this.a=n}function q9n(n){this.a=n}function U9n(n){this.a=n}function G9n(n){this.a=n}function z9n(n){this.a=n}function X9n(n){this.a=n}function V9n(n){this.a=n}function W9n(n){this.a=n}function J9n(n){this.a=n}function Q9n(n){this.a=n}function Y9n(n){this.a=n}function DG(n){this.a=n}function Z9n(n){this.a=n}function n7n(n){this.a=n}function e7n(n){this.a=n}function t7n(n){this.a=n}function i7n(n){this.a=n}function r7n(n){this.a=n}function c7n(n){this.a=n}function u7n(n){this.a=n}function o7n(n){this.a=n}function s7n(n){this.a=n}function f7n(n){this.a=n}function h7n(n){this.a=n}function l7n(n){this.a=n}function a7n(n){this.a=n}function d7n(n){this.a=n}function b7n(n){this.a=n}function w7n(n){this.a=n}function g7n(n){this.a=n}function p7n(n){this.a=n}function m7n(n){this.a=n}function v7n(n){this.a=n}function k7n(n){this.a=n}function y7n(n){this.a=n}function j7n(n){this.a=n}function E7n(n){this.a=n}function M7n(n){this.a=n}function T7n(n){this.a=n}function C7n(n){this.a=n}function S7n(n){this.a=n}function P7n(n){this.a=n}function I7n(n){this.a=n}function O7n(n){this.a=n}function A7n(n){this.a=n}function L7n(n){this.a=n}function N7n(n){this.a=n}function D7n(n){this.a=n}function $7n(n){this.a=n}function x7n(n){this.a=n}function R7n(n){this.c=n}function K7n(n){this.b=n}function B7n(n){this.a=n}function F7n(n){this.a=n}function _7n(n){this.a=n}function H7n(n){this.a=n}function q7n(n){this.a=n}function U7n(n){this.a=n}function G7n(n){this.a=n}function z7n(n){this.a=n}function X7n(n){this.a=n}function V7n(n){this.a=n}function W7n(n){this.a=n}function J7n(n){this.a=n}function Q7n(n){this.a=n}function Y7n(n){this.a=n}function Z7n(n){this.a=n}function nkn(n){this.a=n}function ekn(n){this.a=n}function tkn(n){this.a=n}function ikn(n){this.a=n}function rkn(n){this.a=n}function ckn(n){this.a=n}function ukn(n){this.a=n}function okn(n){this.a=n}function skn(n){this.a=n}function fkn(n){this.a=n}function hkn(n){this.a=n}function lkn(n){this.a=n}function sl(n){this.a=n}function sg(n){this.a=n}function akn(n){this.a=n}function dkn(n){this.a=n}function bkn(n){this.a=n}function wkn(n){this.a=n}function gkn(n){this.a=n}function pkn(n){this.a=n}function mkn(n){this.a=n}function vkn(n){this.a=n}function kkn(n){this.a=n}function ykn(n){this.a=n}function jkn(n){this.a=n}function Ekn(n){this.a=n}function Mkn(n){this.a=n}function Tkn(n){this.a=n}function Ckn(n){this.a=n}function Skn(n){this.a=n}function Pkn(n){this.a=n}function Ikn(n){this.a=n}function Okn(n){this.a=n}function Akn(n){this.a=n}function Lkn(n){this.a=n}function Nkn(n){this.a=n}function Dkn(n){this.a=n}function $kn(n){this.a=n}function xkn(n){this.a=n}function Rkn(n){this.a=n}function LE(n){this.a=n}function Kkn(n){this.f=n}function Bkn(n){this.a=n}function Fkn(n){this.a=n}function _kn(n){this.a=n}function Hkn(n){this.a=n}function qkn(n){this.a=n}function Ukn(n){this.a=n}function Gkn(n){this.a=n}function zkn(n){this.a=n}function Xkn(n){this.a=n}function Vkn(n){this.a=n}function Wkn(n){this.a=n}function Jkn(n){this.a=n}function Qkn(n){this.a=n}function Ykn(n){this.a=n}function Zkn(n){this.a=n}function nyn(n){this.a=n}function eyn(n){this.a=n}function tyn(n){this.a=n}function iyn(n){this.a=n}function ryn(n){this.a=n}function cyn(n){this.a=n}function uyn(n){this.a=n}function oyn(n){this.a=n}function syn(n){this.a=n}function fyn(n){this.a=n}function hyn(n){this.a=n}function lyn(n){this.a=n}function ayn(n){this.a=n}function tL(n){this.a=n}function $G(n){this.a=n}function lt(n){this.b=n}function dyn(n){this.a=n}function byn(n){this.a=n}function wyn(n){this.a=n}function gyn(n){this.a=n}function pyn(n){this.a=n}function myn(n){this.a=n}function vyn(n){this.a=n}function kyn(n){this.b=n}function yyn(n){this.a=n}function X9(n){this.a=n}function jyn(n){this.a=n}function Eyn(n){this.a=n}function xG(n){this.c=n}function NE(n){this.e=n}function DE(n){this.a=n}function $E(n){this.a=n}function iL(n){this.a=n}function Myn(n){this.d=n}function Tyn(n){this.a=n}function RG(n){this.a=n}function KG(n){this.a=n}function Wd(n){this.e=n}function Ife(){this.a=0}function de(){Hu(this)}function Z(){pN(this)}function rL(){sOn(this)}function Cyn(){}function Jd(){this.c=Gdn}function Syn(n,e){n.b+=e}function Ofe(n,e){e.Wb(n)}function Afe(n){return n.a}function Lfe(n){return n.a}function Nfe(n){return n.a}function Dfe(n){return n.a}function $fe(n){return n.a}function T(n){return n.e}function xfe(){return null}function Rfe(){return null}function Kfe(){Ez(),pNe()}function Bfe(n){n.b.Of(n.e)}function Pyn(n){n.b=new ML}function Wv(n,e){n.b=e-n.b}function Jv(n,e){n.a=e-n.a}function Fn(n,e){n.push(e)}function Iyn(n,e){n.sort(e)}function Oyn(n,e){e.jd(n.a)}function Ffe(n,e){gi(e,n)}function _fe(n,e,t){n.Yd(t,e)}function V9(n,e){n.e=e,e.b=n}function BG(n){oh(),this.a=n}function Ayn(n){oh(),this.a=n}function Lyn(n){oh(),this.a=n}function cL(n){mb(),this.a=n}function Nyn(n){A4(),XF.le(n)}function FG(){FG=R,new de}function Ga(){YCn.call(this)}function _G(){YCn.call(this)}function HG(){Ga.call(this)}function uL(){Ga.call(this)}function Dyn(){Ga.call(this)}function W9(){Ga.call(this)}function Mu(){Ga.call(this)}function rp(){Ga.call(this)}function Ie(){Ga.call(this)}function Ko(){Ga.call(this)}function $yn(){Ga.call(this)}function nc(){Ga.call(this)}function xyn(){Ga.call(this)}function Ryn(){this.a=this}function xE(){this.Bb|=256}function Kyn(){this.b=new GTn}function I0(n,e){n.length=e}function RE(n,e){nn(n.a,e)}function Hfe(n,e){dnn(n.c,e)}function qfe(n,e){fi(n.b,e)}function Ufe(n,e){uS(n.a,e)}function Gfe(n,e){cx(n.a,e)}function t4(n,e){it(n.e,e)}function cp(n){jS(n.c,n.b)}function zfe(n,e){n.kc().Nb(e)}function qG(n){this.a=K5e(n)}function ni(){this.a=new de}function Byn(){this.a=new de}function UG(){this.a=new rMn}function KE(){this.a=new Z}function oL(){this.a=new Z}function GG(){this.a=new Z}function hs(){this.a=new c0n}function za(){this.a=new DNn}function zG(){this.a=new FU}function XG(){this.a=new CAn}function VG(){this.a=new KSn}function Fyn(){this.a=new Z}function _yn(){this.a=new Z}function Hyn(){this.a=new Z}function WG(){this.a=new Z}function qyn(){this.d=new Z}function Uyn(){this.a=new zAn}function Gyn(){this.a=new ni}function zyn(){this.a=new de}function Xyn(){this.b=new de}function Vyn(){this.b=new Z}function JG(){this.e=new Z}function Wyn(){this.a=new Z5n}function Jyn(){this.d=new Z}function Qyn(){QOn.call(this)}function Yyn(){QOn.call(this)}function Zyn(){Z.call(this)}function QG(){HG.call(this)}function YG(){KE.call(this)}function njn(){qM.call(this)}function ejn(){WG.call(this)}function Qv(){Cyn.call(this)}function sL(){Qv.call(this)}function up(){Cyn.call(this)}function ZG(){up.call(this)}function tjn(){iz.call(this)}function ijn(){iz.call(this)}function rjn(){iz.call(this)}function cjn(){rz.call(this)}function Yv(){svn.call(this)}function nz(){svn.call(this)}function Tu(){Mt.call(this)}function ujn(){yjn.call(this)}function ojn(){yjn.call(this)}function sjn(){de.call(this)}function fjn(){de.call(this)}function hjn(){de.call(this)}function fL(){cxn.call(this)}function ljn(){ni.call(this)}function ajn(){xE.call(this)}function hL(){RX.call(this)}function ez(){de.call(this)}function lL(){RX.call(this)}function aL(){de.call(this)}function djn(){de.call(this)}function tz(){TE.call(this)}function bjn(){tz.call(this)}function wjn(){TE.call(this)}function gjn(){iG.call(this)}function iz(){this.a=new ni}function pjn(){this.a=new de}function mjn(){this.a=new Z}function rz(){this.a=new de}function op(){this.a=new Mt}function vjn(){this.j=new Z}function kjn(){this.a=new mEn}function yjn(){this.a=new mvn}function cz(){this.a=new Z4n}function Zv(){Zv=R,FF=new Ht}function dL(){dL=R,_F=new Ejn}function bL(){bL=R,HF=new jjn}function jjn(){XA.call(this,"")}function Ejn(){XA.call(this,"")}function Mjn(n){P$n.call(this,n)}function Tjn(n){P$n.call(this,n)}function uz(n){sG.call(this,n)}function oz(n){XEn.call(this,n)}function Xfe(n){XEn.call(this,n)}function Vfe(n){oz.call(this,n)}function Wfe(n){oz.call(this,n)}function Jfe(n){oz.call(this,n)}function Cjn(n){zD.call(this,n)}function Sjn(n){zD.call(this,n)}function Pjn(n){uPn.call(this,n)}function Ijn(n){Oz.call(this,n)}function n6(n){WE.call(this,n)}function sz(n){WE.call(this,n)}function Ojn(n){WE.call(this,n)}function fz(n){mje.call(this,n)}function hz(n){fz.call(this,n)}function ec(n){SIn.call(this,n)}function Ajn(n){ec.call(this,n)}function sp(){U9.call(this,{})}function Ljn(){Ljn=R,dQn=new Tbn}function BE(){BE=R,GF=new PCn}function Njn(){Njn=R,uun=new Ku}function lz(){lz=R,sun=new D1}function FE(){FE=R,C8=new $1}function wL(n){b4(),this.a=n}function gL(n){KQ(),this.a=n}function Qd(n){nD(),this.f=n}function pL(n){nD(),this.f=n}function Djn(n){bPn(),this.a=n}function $jn(n){n.b=null,n.c=0}function Qfe(n,e){n.e=e,bqn(n,e)}function Yfe(n,e){n.a=e,cEe(n)}function mL(n,e,t){n.a[e.g]=t}function Zfe(n,e,t){kke(t,n,e)}function nhe(n,e){Wae(e.i,n.n)}function xjn(n,e){v6e(n).Cd(e)}function ehe(n,e){n.a.ec().Mc(e)}function Rjn(n,e){return n.g-e.g}function the(n,e){return n*n/e}function on(n){return Jn(n),n}function $(n){return Jn(n),n}function J9(n){return Jn(n),n}function ihe(n){return new SE(n)}function rhe(n){return new q0(n)}function az(n){return Jn(n),n}function che(n){return Jn(n),n}function _E(n){ec.call(this,n)}function Or(n){ec.call(this,n)}function Kjn(n){ec.call(this,n)}function vL(n){SIn.call(this,n)}function i4(n){ec.call(this,n)}function Gn(n){ec.call(this,n)}function Ar(n){ec.call(this,n)}function Bjn(n){ec.call(this,n)}function fp(n){ec.call(this,n)}function Fl(n){ec.call(this,n)}function _l(n){ec.call(this,n)}function hp(n){ec.call(this,n)}function eh(n){ec.call(this,n)}function kL(n){ec.call(this,n)}function Ne(n){ec.call(this,n)}function Fu(n){Jn(n),this.a=n}function dz(n){return ld(n),n}function e6(n){TW(n,n.length)}function t6(n){return n.b==n.c}function O0(n){return!!n&&n.b}function uhe(n){return!!n&&n.k}function ohe(n){return!!n&&n.j}function she(n,e,t){n.c.Ef(e,t)}function Fjn(n,e){n.be(e),e.ae(n)}function lp(n){oh(),this.a=Pe(n)}function yL(){this.a=Ae(Pe(ur))}function _jn(){throw T(new Ie)}function fhe(){throw T(new Ie)}function bz(){throw T(new Ie)}function Hjn(){throw T(new Ie)}function hhe(){throw T(new Ie)}function lhe(){throw T(new Ie)}function HE(){HE=R,A4()}function Hl(){G9.call(this,"")}function i6(){G9.call(this,"")}function x1(){G9.call(this,"")}function fg(){G9.call(this,"")}function wz(n){Or.call(this,n)}function gz(n){Or.call(this,n)}function th(n){Gn.call(this,n)}function r4(n){Q3.call(this,n)}function qjn(n){r4.call(this,n)}function jL(n){KM.call(this,n)}function EL(n){WX.call(this,n,0)}function ML(){oJ.call(this,12,3)}function C(n,e){return kAn(n,e)}function qE(n,e){return o$(n,e)}function ahe(n,e){return n.a-e.a}function dhe(n,e){return n.a-e.a}function bhe(n,e){return n.a-e.a}function whe(n,e){return e in n.a}function Ujn(n){return n.a?n.b:0}function ghe(n){return n.a?n.b:0}function phe(n,e,t){e.Cd(n.a[t])}function mhe(n,e,t){e.Pe(n.a[t])}function vhe(n,e){n.b=new rr(e)}function khe(n,e){return n.b=e,n}function Gjn(n,e){return n.c=e,n}function zjn(n,e){return n.f=e,n}function yhe(n,e){return n.g=e,n}function pz(n,e){return n.a=e,n}function mz(n,e){return n.f=e,n}function jhe(n,e){return n.k=e,n}function vz(n,e){return n.a=e,n}function Ehe(n,e){return n.e=e,n}function kz(n,e){return n.e=e,n}function Mhe(n,e){return n.f=e,n}function The(n,e){n.b=!0,n.d=e}function Che(n,e){return n.b-e.b}function She(n,e){return n.g-e.g}function Phe(n,e){return n?0:e-1}function Xjn(n,e){return n?0:e-1}function Ihe(n,e){return n?e-1:0}function Ohe(n,e){return n.s-e.s}function Ahe(n,e){return e.rg(n)}function Yd(n,e){return n.b=e,n}function UE(n,e){return n.a=e,n}function Zd(n,e){return n.c=e,n}function nb(n,e){return n.d=e,n}function eb(n,e){return n.e=e,n}function yz(n,e){return n.f=e,n}function r6(n,e){return n.a=e,n}function c4(n,e){return n.b=e,n}function u4(n,e){return n.c=e,n}function an(n,e){return n.c=e,n}function Pn(n,e){return n.b=e,n}function dn(n,e){return n.d=e,n}function bn(n,e){return n.e=e,n}function Lhe(n,e){return n.f=e,n}function wn(n,e){return n.g=e,n}function gn(n,e){return n.a=e,n}function pn(n,e){return n.i=e,n}function mn(n,e){return n.j=e,n}function Nhe(n,e){ua(),ic(e,n)}function Dhe(n,e,t){J0e(n.a,e,t)}function GE(n){$N.call(this,n)}function Vjn(n){Z5e.call(this,n)}function Wjn(n){POn.call(this,n)}function jz(n){POn.call(this,n)}function R1(n){Pb.call(this,n)}function Jjn(n){MD.call(this,n)}function Qjn(n){MD.call(this,n)}function Yjn(){AX.call(this,"")}function Ni(){this.a=0,this.b=0}function Zjn(){this.b=0,this.a=0}function nEn(n,e){n.b=0,Z0(n,e)}function eEn(n,e){return n.k=e,n}function $he(n,e){return n.j=e,n}function xhe(n,e){n.c=e,n.b=!0}function tEn(){tEn=R,CQn=Xke()}function K1(){K1=R,voe=rke()}function iEn(){iEn=R,Ci=gye()}function Ez(){Ez=R,La=z4()}function o4(){o4=R,Udn=cke()}function rEn(){rEn=R,ise=uke()}function Mz(){Mz=R,yc=tEe()}function of(n){return n.e&&n.e()}function cEn(n){return n.l|n.m<<22}function uEn(n,e){return n.c._b(e)}function oEn(n,e){return rKn(n.b,e)}function TL(n){return n?n.d:null}function Rhe(n){return n?n.g:null}function Khe(n){return n?n.i:null}function Xa(n){return ll(n),n.o}function hg(n,e){return n.a+=e,n}function CL(n,e){return n.a+=e,n}function ql(n,e){return n.a+=e,n}function tb(n,e){return n.a+=e,n}function Tz(n,e){for(;n.Bd(e););}function zE(n){this.a=new ap(n)}function sEn(){throw T(new Ie)}function fEn(){throw T(new Ie)}function hEn(){throw T(new Ie)}function lEn(){throw T(new Ie)}function aEn(){throw T(new Ie)}function dEn(){throw T(new Ie)}function Ul(n){this.a=new iD(n)}function bEn(){this.a=new R5(Bln)}function wEn(){this.b=new R5(rln)}function gEn(){this.a=new R5(f1n)}function pEn(){this.b=new R5(xq)}function mEn(){this.b=new R5(xq)}function XE(n){this.a=0,this.b=n}function Cz(n){zGn(),ONe(this,n)}function s4(n){return X1(n),n.a}function Q9(n){return n.b!=n.d.c}function Sz(n,e){return n.d[e.p]}function vEn(n,e){return XCe(n,e)}function Pz(n,e,t){n.splice(e,t)}function lg(n,e){for(;n.Re(e););}function kEn(n){n.c?Lqn(n):Nqn(n)}function yEn(){throw T(new Ie)}function jEn(){throw T(new Ie)}function EEn(){throw T(new Ie)}function MEn(){throw T(new Ie)}function TEn(){throw T(new Ie)}function CEn(){throw T(new Ie)}function SEn(){throw T(new Ie)}function PEn(){throw T(new Ie)}function IEn(){throw T(new Ie)}function OEn(){throw T(new Ie)}function Bhe(){throw T(new nc)}function Fhe(){throw T(new nc)}function Y9(n){this.a=new AEn(n)}function AEn(n){Ume(this,n,jje())}function Z9(n){return!n||oOn(n)}function n7(n){return nh[n]!=-1}function _he(){cI!=0&&(cI=0),uI=-1}function LEn(){BF==null&&(BF=[])}function e7(n,e){Tg.call(this,n,e)}function f4(n,e){e7.call(this,n,e)}function NEn(n,e){this.a=n,this.b=e}function DEn(n,e){this.a=n,this.b=e}function $En(n,e){this.a=n,this.b=e}function xEn(n,e){this.a=n,this.b=e}function REn(n,e){this.a=n,this.b=e}function KEn(n,e){this.a=n,this.b=e}function BEn(n,e){this.a=n,this.b=e}function h4(n,e){this.e=n,this.d=e}function Iz(n,e){this.b=n,this.c=e}function FEn(n,e){this.b=n,this.a=e}function _En(n,e){this.b=n,this.a=e}function HEn(n,e){this.b=n,this.a=e}function qEn(n,e){this.b=n,this.a=e}function UEn(n,e){this.a=n,this.b=e}function SL(n,e){this.a=n,this.b=e}function GEn(n,e){this.a=n,this.f=e}function ib(n,e){this.g=n,this.i=e}function je(n,e){this.f=n,this.g=e}function zEn(n,e){this.b=n,this.c=e}function XEn(n){BX(n.dc()),this.c=n}function Hhe(n,e){this.a=n,this.b=e}function VEn(n,e){this.a=n,this.b=e}function WEn(n){this.a=u(Pe(n),15)}function Oz(n){this.a=u(Pe(n),15)}function JEn(n){this.a=u(Pe(n),85)}function VE(n){this.b=u(Pe(n),85)}function WE(n){this.b=u(Pe(n),51)}function JE(){this.q=new y.Date}function PL(n,e){this.a=n,this.b=e}function QEn(n,e){return Zc(n.b,e)}function t7(n,e){return n.b.Hc(e)}function YEn(n,e){return n.b.Ic(e)}function ZEn(n,e){return n.b.Qc(e)}function nMn(n,e){return n.b.Hc(e)}function eMn(n,e){return n.c.uc(e)}function tMn(n,e){return rt(n.c,e)}function sf(n,e){return n.a._b(e)}function iMn(n,e){return n>e&&e<W5}function c6(n){return n.f.c+n.i.c}function qhe(n){return zIn(),n?aQn:lQn}function ap(n){wRn.call(this,n,0)}function rMn(){iD.call(this,null)}function dp(n){this.c=n,i$n(this)}function Mt(){jCn(this),vo(this)}function fl(){fl=R,pQn=new Cbn}function l4(){l4=R,fv=new Pbn}function A0(){A0=R,ZF=new qTn}function QE(){QE=R,PQn=new UTn}function a4(){a4=R,$un=new Bbn}function Az(){i$.call(this,null)}function Va(){Va=R,v3=new Vbn}function qt(n,e){X1(n),n.a.Nb(e)}function Uhe(n,e){return n.a.Xc(e)}function Ghe(n,e){return n.a.Yc(e)}function IL(n,e){return n.a.$c(e)}function OL(n,e){return n.a._c(e)}function zhe(n,e){return n.Gc(e),n}function Xhe(n,e){return Ki(n,e),n}function Vhe(n,e){aR(H(n.a),e)}function Whe(n,e){aR(H(n.a),e)}function cMn(n,e){return n.Gc(e),n}function Jhe(n,e){return n.a.f=e,n}function uMn(n,e){return n.a.d=e,n}function oMn(n,e){return n.a.g=e,n}function sMn(n,e){return n.a.j=e,n}function As(n,e){return n.a.a=e,n}function Ls(n,e){return n.a.d=e,n}function Ns(n,e){return n.a.e=e,n}function Ds(n,e){return n.a.g=e,n}function i7(n,e){return n.a.f=e,n}function Qhe(n){return n.b=!1,n}function fMn(){fMn=R,KQn=new Zbn}function YE(){YE=R,d_=new bSn}function Lz(){Lz=R,jZn=new z0n}function hMn(){hMn=R,EZn=new Z0n}function Nz(){Nz=R,MZn=new wIn}function Dz(){Dz=R,Aon=new iwn}function lMn(){lMn=R,NZn=new dwn}function u6(){u6=R,$Zn=new bwn}function r7(){r7=R,BZn=new _wn}function c7(){c7=R,KZn=new Ni}function aMn(){aMn=R,qZn=new Tgn}function o6(){o6=R,QZn=new upn}function ZE(){ZE=R,w2=new Opn}function nM(){nM=R,Jte=new Zmn}function eM(){eM=R,Rq=new bMn}function tM(){tM=R,Kq=new dSn}function s6(){s6=R,Hj=new bOn}function dMn(){Y$n(),this.c=new ML}function bMn(){je.call(this,VXn,0)}function Yhe(n,e,t){Lr(n.d,e.f,t)}function Zhe(n,e,t,i){I9e(n,i,e,t)}function nle(n,e,t,i){nCe(i,n,e,t)}function ele(n,e,t,i){OLe(i,n,e,t)}function f6(n,e){s1(n.c.c,e.b,e)}function rb(n,e){s1(n.c.b,e.c,e)}function tle(n){return n.e.b+n.f.b}function ile(n){return n.e.a+n.f.a}function rle(n){return n.b?n.b:n.a}function cle(n){return(n.c+n.a)/2}function wMn(n,e){return B7e(n.a,e)}function h6(n,e){return n.a=e.g,n}function $z(){$z=R,qdn=new djn}function gMn(){gMn=R,Boe=new hjn}function cb(){cb=R,poe=new nvn}function pMn(){pMn=R,Toe=new lvn}function mMn(){mMn=R,Koe=new fjn}function B1(){B1=R,Is=new ez}function iM(){iM=R,yA=new de}function l6(){l6=R,MU=new CCn}function Gl(){Gl=R,dE=new SCn}function AL(){AL=R,Zoe=new C6n}function dr(){dr=R,ese=new S6n}function F1(){F1=R,xa=new I5n}function xz(){xz=R,nbn=new Z}function rM(n){return u(n,44).ld()}function LL(n){return n.b<n.d.gc()}function ule(n,e){return e.split(n)}function NL(n,e){return Ec(n,e)>0}function DL(n,e){return Ec(n,e)<0}function vMn(n,e){return JN(n.a,e)}function ole(n,e){yAn.call(this,n,e)}function Rz(n){wD(),uPn.call(this,n)}function Kz(n,e){bIn(n,n.length,e)}function u7(n,e){HIn(n,n.length,e)}function a6(n,e){return n.a.get(e)}function kMn(n,e){return Zc(n.e,e)}function Bz(n){return Jn(n),!1}function Fz(n){this.a=u(Pe(n),229)}function cM(n){On.call(this,n,21)}function uM(n,e){je.call(this,n,e)}function $L(n,e){je.call(this,n,e)}function yMn(n,e){this.b=n,this.a=e}function oM(n,e){this.d=n,this.e=e}function jMn(n,e){this.a=n,this.b=e}function EMn(n,e){this.a=n,this.b=e}function MMn(n,e){this.a=n,this.b=e}function TMn(n,e){this.a=n,this.b=e}function bp(n,e){this.a=n,this.b=e}function CMn(n,e){this.b=n,this.a=e}function _z(n,e){this.b=n,this.a=e}function Hz(n,e){je.call(this,n,e)}function qz(n,e){je.call(this,n,e)}function ag(n,e){je.call(this,n,e)}function xL(n,e){je.call(this,n,e)}function RL(n,e){je.call(this,n,e)}function KL(n,e){je.call(this,n,e)}function sM(n,e){je.call(this,n,e)}function Uz(n,e){this.b=n,this.a=e}function fM(n,e){je.call(this,n,e)}function Gz(n,e){this.b=n,this.a=e}function hM(n,e){je.call(this,n,e)}function SMn(n,e){this.b=n,this.a=e}function zz(n,e){je.call(this,n,e)}function BL(n,e){je.call(this,n,e)}function o7(n,e){je.call(this,n,e)}function d6(n,e,t){n.splice(e,0,t)}function sle(n,e,t){n.Mb(t)&&e.Cd(t)}function fle(n,e,t){e.Pe(n.a.Ye(t))}function hle(n,e,t){e.Dd(n.a.Ze(t))}function lle(n,e,t){e.Cd(n.a.Kb(t))}function ale(n,e){return Su(n.c,e)}function dle(n,e){return Su(n.e,e)}function lM(n,e){je.call(this,n,e)}function aM(n,e){je.call(this,n,e)}function b6(n,e){je.call(this,n,e)}function Xz(n,e){je.call(this,n,e)}function ei(n,e){je.call(this,n,e)}function dM(n,e){je.call(this,n,e)}function PMn(n,e){this.a=n,this.b=e}function IMn(n,e){this.a=n,this.b=e}function OMn(n,e){this.a=n,this.b=e}function AMn(n,e){this.a=n,this.b=e}function LMn(n,e){this.a=n,this.b=e}function NMn(n,e){this.a=n,this.b=e}function DMn(n,e){this.b=n,this.a=e}function $Mn(n,e){this.b=n,this.a=e}function Vz(n,e){this.b=n,this.a=e}function d4(n,e){this.c=n,this.d=e}function xMn(n,e){this.e=n,this.d=e}function RMn(n,e){this.a=n,this.b=e}function KMn(n,e){this.a=n,this.b=e}function BMn(n,e){this.a=n,this.b=e}function FMn(n,e){this.b=n,this.a=e}function _Mn(n,e){this.b=e,this.c=n}function bM(n,e){je.call(this,n,e)}function s7(n,e){je.call(this,n,e)}function FL(n,e){je.call(this,n,e)}function Wz(n,e){je.call(this,n,e)}function w6(n,e){je.call(this,n,e)}function _L(n,e){je.call(this,n,e)}function HL(n,e){je.call(this,n,e)}function f7(n,e){je.call(this,n,e)}function Jz(n,e){je.call(this,n,e)}function qL(n,e){je.call(this,n,e)}function g6(n,e){je.call(this,n,e)}function Qz(n,e){je.call(this,n,e)}function p6(n,e){je.call(this,n,e)}function m6(n,e){je.call(this,n,e)}function L0(n,e){je.call(this,n,e)}function UL(n,e){je.call(this,n,e)}function GL(n,e){je.call(this,n,e)}function Yz(n,e){je.call(this,n,e)}function h7(n,e){je.call(this,n,e)}function dg(n,e){je.call(this,n,e)}function zL(n,e){je.call(this,n,e)}function wM(n,e){je.call(this,n,e)}function l7(n,e){je.call(this,n,e)}function N0(n,e){je.call(this,n,e)}function gM(n,e){je.call(this,n,e)}function Zz(n,e){je.call(this,n,e)}function XL(n,e){je.call(this,n,e)}function VL(n,e){je.call(this,n,e)}function WL(n,e){je.call(this,n,e)}function JL(n,e){je.call(this,n,e)}function QL(n,e){je.call(this,n,e)}function YL(n,e){je.call(this,n,e)}function ZL(n,e){je.call(this,n,e)}function HMn(n,e){this.b=n,this.a=e}function nX(n,e){je.call(this,n,e)}function qMn(n,e){this.a=n,this.b=e}function UMn(n,e){this.a=n,this.b=e}function GMn(n,e){this.a=n,this.b=e}function eX(n,e){je.call(this,n,e)}function tX(n,e){je.call(this,n,e)}function zMn(n,e){this.a=n,this.b=e}function ble(n,e){return k4(),e!=n}function a7(n){return oe(n.a),n.b}function nN(n){return yMe(n,n.c),n}function XMn(){return tEn(),new CQn}function VMn(){VM(),this.a=new vV}function WMn(){AS(),this.a=new ni}function JMn(){DD(),this.b=new ni}function QMn(n,e){this.b=n,this.d=e}function YMn(n,e){this.a=n,this.b=e}function ZMn(n,e){this.a=n,this.b=e}function nTn(n,e){this.a=n,this.b=e}function eTn(n,e){this.b=n,this.a=e}function iX(n,e){je.call(this,n,e)}function rX(n,e){je.call(this,n,e)}function pM(n,e){je.call(this,n,e)}function ub(n,e){je.call(this,n,e)}function eN(n,e){je.call(this,n,e)}function mM(n,e){je.call(this,n,e)}function cX(n,e){je.call(this,n,e)}function uX(n,e){je.call(this,n,e)}function d7(n,e){je.call(this,n,e)}function oX(n,e){je.call(this,n,e)}function tN(n,e){je.call(this,n,e)}function vM(n,e){je.call(this,n,e)}function iN(n,e){je.call(this,n,e)}function rN(n,e){je.call(this,n,e)}function cN(n,e){je.call(this,n,e)}function uN(n,e){je.call(this,n,e)}function sX(n,e){je.call(this,n,e)}function oN(n,e){je.call(this,n,e)}function fX(n,e){je.call(this,n,e)}function b7(n,e){je.call(this,n,e)}function sN(n,e){je.call(this,n,e)}function hX(n,e){je.call(this,n,e)}function w7(n,e){je.call(this,n,e)}function lX(n,e){je.call(this,n,e)}function tTn(n,e){this.b=n,this.a=e}function iTn(n,e){this.b=n,this.a=e}function rTn(n,e){this.b=n,this.a=e}function cTn(n,e){this.b=n,this.a=e}function aX(n,e){this.a=n,this.b=e}function uTn(n,e){this.a=n,this.b=e}function oTn(n,e){this.a=n,this.b=e}function V(n,e){this.a=n,this.b=e}function v6(n,e){je.call(this,n,e)}function g7(n,e){je.call(this,n,e)}function wp(n,e){je.call(this,n,e)}function k6(n,e){je.call(this,n,e)}function p7(n,e){je.call(this,n,e)}function fN(n,e){je.call(this,n,e)}function kM(n,e){je.call(this,n,e)}function y6(n,e){je.call(this,n,e)}function hN(n,e){je.call(this,n,e)}function yM(n,e){je.call(this,n,e)}function bg(n,e){je.call(this,n,e)}function m7(n,e){je.call(this,n,e)}function j6(n,e){je.call(this,n,e)}function E6(n,e){je.call(this,n,e)}function v7(n,e){je.call(this,n,e)}function jM(n,e){je.call(this,n,e)}function wg(n,e){je.call(this,n,e)}function lN(n,e){je.call(this,n,e)}function sTn(n,e){je.call(this,n,e)}function EM(n,e){je.call(this,n,e)}function fTn(n,e){this.a=n,this.b=e}function hTn(n,e){this.a=n,this.b=e}function lTn(n,e){this.a=n,this.b=e}function aTn(n,e){this.a=n,this.b=e}function dTn(n,e){this.a=n,this.b=e}function bTn(n,e){this.a=n,this.b=e}function bi(n,e){this.a=n,this.b=e}function wTn(n,e){this.a=n,this.b=e}function gTn(n,e){this.a=n,this.b=e}function pTn(n,e){this.a=n,this.b=e}function mTn(n,e){this.a=n,this.b=e}function vTn(n,e){this.a=n,this.b=e}function kTn(n,e){this.a=n,this.b=e}function yTn(n,e){this.b=n,this.a=e}function jTn(n,e){this.b=n,this.a=e}function ETn(n,e){this.b=n,this.a=e}function MTn(n,e){this.b=n,this.a=e}function TTn(n,e){this.a=n,this.b=e}function CTn(n,e){this.a=n,this.b=e}function MM(n,e){je.call(this,n,e)}function STn(n,e){this.a=n,this.b=e}function PTn(n,e){this.a=n,this.b=e}function gp(n,e){je.call(this,n,e)}function ITn(n,e){this.f=n,this.c=e}function dX(n,e){return Su(n.g,e)}function wle(n,e){return Su(e.b,n)}function OTn(n,e){return wx(n.a,e)}function gle(n,e){return-n.b.af(e)}function ple(n,e){n&&Ve(hE,n,e)}function bX(n,e){n.i=null,kC(n,e)}function mle(n,e,t){yFn(e,oR(n,t))}function vle(n,e,t){yFn(e,oR(n,t))}function kle(n,e){VTe(n.a,u(e,58))}function ATn(n,e){U4e(n.a,u(e,12))}function TM(n,e){this.a=n,this.b=e}function LTn(n,e){this.a=n,this.b=e}function NTn(n,e){this.a=n,this.b=e}function DTn(n,e){this.a=n,this.b=e}function $Tn(n,e){this.a=n,this.b=e}function xTn(n,e){this.d=n,this.b=e}function RTn(n,e){this.e=n,this.a=e}function k7(n,e){this.b=n,this.c=e}function wX(n,e){this.i=n,this.g=e}function gX(n,e){this.d=n,this.e=e}function yle(n,e){cme(new ne(n),e)}function CM(n){return Rk(n.c,n.b)}function Fr(n){return n?n.md():null}function x(n){return n??null}function Si(n){return typeof n===nK}function D0(n){return typeof n===i3}function $0(n){return typeof n===atn}function ob(n,e){return Ec(n,e)==0}function SM(n,e){return Ec(n,e)>=0}function M6(n,e){return Ec(n,e)!=0}function PM(n,e){return jve(n.Kc(),e)}function _1(n,e){return n.Rd().Xb(e)}function KTn(n){return eo(n),n.d.gc()}function IM(n){return x6(n==null),n}function T6(n,e){return n.a+=""+e,n}function Er(n,e){return n.a+=""+e,n}function C6(n,e){return n.a+=""+e,n}function Lc(n,e){return n.a+=""+e,n}function Be(n,e){return n.a+=""+e,n}function pX(n,e){return n.a+=""+e,n}function jle(n){return""+(Jn(n),n)}function BTn(n){Hu(this),s5(this,n)}function FTn(){uJ(),aW.call(this)}function _Tn(n,e){pW.call(this,n,e)}function HTn(n,e){pW.call(this,n,e)}function OM(n,e){pW.call(this,n,e)}function ir(n,e){xt(n,e,n.c.b,n.c)}function gg(n,e){xt(n,e,n.a,n.a.a)}function mX(n){return Nn(n,0),null}function qTn(){this.b=0,this.a=!1}function UTn(){this.b=0,this.a=!1}function GTn(){this.b=new ap(Q0(12))}function zTn(){zTn=R,kYn=Me(jx())}function XTn(){XTn=R,HZn=Me(iqn())}function VTn(){VTn=R,lre=Me(xxn())}function vX(){vX=R,FG(),fun=new de}function ff(n){return n.a=0,n.b=0,n}function WTn(n,e){return n.a=e.g+1,n}function aN(n,e){F0.call(this,n,e)}function Tn(n,e){Lt.call(this,n,e)}function pg(n,e){wX.call(this,n,e)}function JTn(n,e){M7.call(this,n,e)}function dN(n,e){Y4.call(this,n,e)}function Ge(n,e){iM(),Ve(yA,n,e)}function QTn(n,e){n.q.setTime(id(e))}function Ele(n){y.clearTimeout(n)}function Mle(n){return Pe(n),new S6(n)}function YTn(n,e){return x(n)===x(e)}function ZTn(n,e){return n.a.a.a.cc(e)}function bN(n,e){return qo(n.a,0,e)}function kX(n){return Swe(u(n,74))}function pp(n){return wi((Jn(n),n))}function Tle(n){return wi((Jn(n),n))}function nCn(n){return Yc(n.l,n.m,n.h)}function yX(n,e){return jc(n.a,e.a)}function Cle(n,e){return FIn(n.a,e.a)}function Sle(n,e){return bt(n.a,e.a)}function ih(n,e){return n.indexOf(e)}function Ple(n,e){return n.j[e.p]==2}function sb(n,e){return n==e?0:n?1:-1}function AM(n){return n<10?"0"+n:""+n}function Vr(n){return typeof n===atn}function Ile(n){return n==r0||n==Ow}function Ole(n){return n==r0||n==Iw}function eCn(n,e){return jc(n.g,e.g)}function jX(n){return qr(n.b.b,n,0)}function tCn(){rT.call(this,0,0,0,0)}function rh(){EG.call(this,new Ql)}function EX(n,e){R4(n,0,n.length,e)}function Ale(n,e){return nn(n.a,e),e}function Lle(n,e){return Rs(),e.a+=n}function Nle(n,e){return Rs(),e.a+=n}function Dle(n,e){return Rs(),e.c+=n}function $le(n,e){return nn(n.c,e),n}function MX(n,e){return To(n.a,e),n}function iCn(n){this.a=XMn(),this.b=n}function rCn(n){this.a=XMn(),this.b=n}function rr(n){this.a=n.a,this.b=n.b}function S6(n){this.a=n,GA.call(this)}function cCn(n){this.a=n,GA.call(this)}function mp(){Ho.call(this,0,0,0,0)}function LM(n){return To(new ii,n)}function uCn(n){return jT(u(n,123))}function fo(n){return n.vh()&&n.wh()}function mg(n){return n!=Qf&&n!=Ia}function hl(n){return n==Kr||n==Xr}function vg(n){return n==us||n==Wf}function oCn(n){return n==I2||n==P2}function xle(n,e){return jc(n.g,e.g)}function sCn(n,e){return new Y4(e,n)}function Rle(n,e){return new Y4(e,n)}function TX(n){return r0e(n.b.Kc(),n.a)}function wN(n,e){um(n,e),G4(n,n.D)}function gN(n,e,t){aC(n,e),lC(n,t)}function kg(n,e,t){Ob(n,e),Ib(n,t)}function Bo(n,e,t){eu(n,e),tu(n,t)}function y7(n,e,t){_4(n,e),q4(n,t)}function j7(n,e,t){H4(n,e),U4(n,t)}function fCn(n,e,t){oV.call(this,n,e,t)}function CX(n){ITn.call(this,n,!0)}function hCn(){uM.call(this,"Tail",3)}function lCn(){uM.call(this,"Head",1)}function H1(n){dh(),mve.call(this,n)}function fb(n){rT.call(this,n,n,n,n)}function pN(n){n.c=F(ki,Kn,1,0,5,1)}function SX(n){return n.b&&xR(n),n.a}function PX(n){return n.b&&xR(n),n.c}function Kle(n,e){Uf||(n.b=e)}function Ble(n,e){return n[n.length]=e}function Fle(n,e){return n[n.length]=e}function _le(n,e){return Y0(e,Pf(n))}function Hle(n,e){return Y0(e,Pf(n))}function qle(n,e){return pC(dD(n.d),e)}function Ule(n,e){return pC(dD(n.g),e)}function Gle(n,e){return pC(dD(n.j),e)}function Di(n,e){Lt.call(this,n.b,e)}function zle(n,e){ve(Pc(n.a),LAn(e))}function Xle(n,e){ve(no(n.a),NAn(e))}function Vle(n,e,t){Bo(t,t.i+n,t.j+e)}function aCn(n,e,t){$t(n.c[e.g],e.g,t)}function Wle(n,e,t){u(n.c,71).Gi(e,t)}function mN(n,e,t){return $t(n,e,t),t}function dCn(n){nu(n.Sf(),new L9n(n))}function yg(n){return n!=null?mt(n):0}function Jle(n){return n==null?0:mt(n)}function P6(n){nt(),Wd.call(this,n)}function bCn(n){this.a=n,HV.call(this,n)}function Cf(){Cf=R,y.Math.log(2)}function Fo(){Fo=R,rl=(pMn(),Toe)}function wCn(){wCn=R,QH=new y5(lU)}function Oe(){Oe=R,new gCn,new Z}function gCn(){new de,new de,new de}function Qle(){throw T(new Fl(QJn))}function Yle(){throw T(new Fl(QJn))}function Zle(){throw T(new Fl(YJn))}function n1e(){throw T(new Fl(YJn))}function vN(n){this.a=n,VE.call(this,n)}function kN(n){this.a=n,VE.call(this,n)}function pCn(n,e){mb(),this.a=n,this.b=e}function e1e(n,e){Pe(e),Sg(n).Jc(new Bu)}function Yt(n,e){QN(n.c,n.c.length,e)}function tc(n){return n.a<n.c.c.length}function IX(n){return n.a<n.c.a.length}function mCn(n,e){return n.a?n.b:e.We()}function jc(n,e){return n<e?-1:n>e?1:0}function OX(n,e){return Ec(n,e)>0?n:e}function Yc(n,e,t){return{l:n,m:e,h:t}}function t1e(n,e){n.a!=null&&ATn(e,n.a)}function i1e(n){Zi(n,null),Oi(n,null)}function r1e(n,e,t){return Ve(n.g,t,e)}function jg(n,e,t){return ZY(e,t,n.c)}function c1e(n,e,t){return Ve(n.k,t,e)}function u1e(n,e,t){return GAe(n,e,t),t}function o1e(n,e){return ko(),e.n.b+=n}function vCn(n){ZW.call(this),this.b=n}function AX(n){mV.call(this),this.a=n}function kCn(){uM.call(this,"Range",2)}function NM(n){this.b=n,this.a=new Z}function yCn(n){this.b=new $0n,this.a=n}function jCn(n){n.a=new AA,n.c=new AA}function ECn(n){n.a=new de,n.d=new de}function MCn(n){$D(n,null),xD(n,null)}function TCn(n,e){return XAe(n.a,e,null)}function s1e(n,e){return Ve(n.a,e.a,e)}function Fi(n){return new V(n.a,n.b)}function LX(n){return new V(n.c,n.d)}function f1e(n){return new V(n.c,n.d)}function I6(n,e){return cAe(n.c,n.b,e)}function L(n,e){return n!=null&&Cx(n,e)}function yN(n,e){return Yve(n.Kc(),e)!=-1}function DM(n){return n.Ob()?n.Pb():null}function h1e(n){this.b=(Ln(),new eL(n))}function NX(n){this.a=n,de.call(this)}function CCn(){M7.call(this,null,null)}function SCn(){_M.call(this,null,null)}function PCn(){je.call(this,"INSTANCE",0)}function ICn(){LZ(),this.a=new R5(Oon)}function OCn(n){return ws(n,0,n.length)}function l1e(n,e){return new VCn(n.Kc(),e)}function DX(n,e){return n.a.Bc(e)!=null}function ACn(n,e){me(n),n.Gc(u(e,15))}function a1e(n,e,t){n.c.bd(e,u(t,136))}function d1e(n,e,t){n.c.Ui(e,u(t,136))}function LCn(n,e){n.c&&(eW(e),rAn(e))}function b1e(n,e){n.q.setHours(e),H5(n,e)}function w1e(n,e){ab(e,n.a.a.a,n.a.a.b)}function g1e(n,e,t,i){$t(n.a[e.g],t.g,i)}function jN(n,e,t){return n.a[e.g][t.g]}function p1e(n,e){return n.e[e.c.p][e.p]}function m1e(n,e){return n.c[e.c.p][e.p]}function Sf(n,e){return n.a[e.c.p][e.p]}function v1e(n,e){return n.j[e.p]=OTe(e)}function EN(n,e){return n.a.Bc(e)!=null}function k1e(n,e){return $(B(e.a))<=n}function y1e(n,e){return $(B(e.a))>=n}function j1e(n,e){return KJ(n.f,e.Pg())}function vp(n,e){return n.a*e.a+n.b*e.b}function E1e(n,e){return n.a<IV(e)?-1:1}function M1e(n,e){return KJ(n.b,e.Pg())}function T1e(n,e,t){return t?e!=0:e!=n-1}function NCn(n,e,t){n.a=e^1502,n.b=t^NK}function C1e(n,e,t){return n.a=e,n.b=t,n}function ch(n,e){return n.a*=e,n.b*=e,n}function nn(n,e){return Fn(n.c,e),!0}function O6(n,e,t){return $t(n.g,e,t),t}function ti(n,e,t){R7.call(this,n,e,t)}function $M(n,e,t){ti.call(this,n,e,t)}function $X(n,e,t){QM.call(this,n,e,t)}function DCn(n,e,t){QM.call(this,n,e,t)}function $Cn(n,e,t){$X.call(this,n,e,t)}function Cu(n,e,t){ti.call(this,n,e,t)}function xCn(n,e,t){$M.call(this,n,e,t)}function xX(n,e,t){R7.call(this,n,e,t)}function Eg(n,e,t){R7.call(this,n,e,t)}function RCn(n,e,t){xX.call(this,n,e,t)}function xM(n){n.j=F(jun,J,319,0,0,1)}function Mg(){this.a=F(ki,Kn,1,8,5,1)}function RX(){this.Bb|=256,this.Bb|=512}function ne(n){this.i=n,this.f=this.i.j}function q1(n){this.c=n,this.a=this.c.a}function Tg(n,e){this.a=n,VE.call(this,e)}function KX(n,e){return H5e(n,new x1,e).a}function BX(n){if(!n)throw T(new W9)}function FX(n){if(!n)throw T(new Mu)}function _X(){_X=R,_X(),IQn=new Rbn}function KCn(){KCn=R,AL(),nse=new C8n}function b4(){b4=R,Lun=new wL(null)}function S1e(n){G7(n,TWn),SS(n,GLe(n))}function BCn(n){n.a=u(Un(n.b.a,4),129)}function FCn(n){n.a=u(Un(n.b.a,4),129)}function _Cn(n){n.b.Qb(),--n.d.f.d,fT(n.d)}function HX(n){this.a=n,H8n.call(this,n.d)}function HCn(n,e){this.a=n,EL.call(this,e)}function qCn(n,e){this.a=n,EL.call(this,e)}function UCn(n,e){this.a=n,EL.call(this,e)}function qX(n,e){this.a=e,EL.call(this,n)}function GCn(n,e){this.a=e,zD.call(this,n)}function zCn(n,e){this.a=n,zD.call(this,e)}function XCn(n,e){this.a=e,WE.call(this,n)}function VCn(n,e){this.a=e,WE.call(this,n)}function ce(n,e){return Pe(e),new XCn(n,e)}function WCn(n,e){return new k_n(n.a,n.b,e)}function UX(n,e,t){return n.indexOf(e,t)}function RM(n,e){return n.lastIndexOf(e)}function A6(n){return n==null?gu:Jr(n)}function P1e(n){return n==null?null:n.name}function I1e(n){return n.l+n.m*o3+n.h*vd}function O1e(n){return Q9(n.a)?DAn(n):null}function ls(n){G9.call(this,(Jn(n),n))}function mo(n){G9.call(this,(Jn(n),n))}function JCn(n){XA.call(this,u(Pe(n),34))}function QCn(n){XA.call(this,u(Pe(n),34))}function MN(n){EG.call(this,new XJ(n))}function KM(n){Q3.call(this,n),this.a=n}function GX(n){J3.call(this,n),this.a=n}function zX(n){r4.call(this,n),this.a=n}function YCn(){xM(this),TT(this),this.je()}function ZCn(n){this.a=n,ZA.call(this,n)}function ho(n){return oe(n.a!=null),n.a}function nSn(n,e){return nn(e.a,n.a),n.a}function eSn(n,e){return nn(e.b,n.a),n.a}function hb(n,e){return nn(e.a,n.a),n.a}function E7(n,e,t){return N$(n,e,e,t),n}function BM(n,e){return++n.b,nn(n.a,e)}function XX(n,e){return++n.b,du(n.a,e)}function A1e(n,e){return bt(n.c.d,e.c.d)}function L1e(n,e){return bt(n.c.c,e.c.c)}function N1e(n,e){return bt(n.n.a,e.n.a)}function lu(n,e){return u(ot(n.b,e),15)}function D1e(n,e){return n.n.b=(Jn(e),e)}function $1e(n,e){return n.n.b=(Jn(e),e)}function Su(n,e){return!!e&&n.b[e.g]==e}function L6(n){return tc(n.a)||tc(n.b)}function lb(n){return n.$H||(n.$H=++bDe)}function x1e(n){return n.a!=null?n.a:null}function R1e(n,e){return bt(n.e.b,e.e.b)}function K1e(n,e){return bt(n.e.a,e.e.a)}function B1e(n,e,t){return RLn(n,e,t,n.b)}function VX(n,e,t){return RLn(n,e,t,n.c)}function F1e(n){return Rs(),!!n&&!n.dc()}function tSn(){o6(),this.b=new w7n(this)}function FM(){FM=R,bI=new Lt(gXn,0)}function _n(){_n=R,ga=!1,ov=!0}function zl(n){var e;e=n.a,n.a=n.b,n.b=e}function M7(n,e){l6(),this.a=n,this.b=e}function _M(n,e){Gl(),this.b=n,this.c=e}function TN(n,e){nD(),this.f=e,this.d=n}function WX(n,e){RJ(e,n),this.d=n,this.c=e}function JX(n,e){uZ.call(this,n,e,null)}function iSn(n,e,t,i){mW.call(this,n,e,t,i)}function kp(n){this.d=n,ne.call(this,n)}function yp(n){this.c=n,ne.call(this,n)}function T7(n){this.c=n,kp.call(this,n)}function _1e(n){return new X0(3,n)}function Lh(n){return Mo(n,mw),new Gc(n)}function rSn(n){return A4(),parseInt(n)||-1}function H1e(n){return BE(),Ee((lAn(),oQn),n)}function w4(n,e,t){return UX(n,wu(e),t)}function CN(n,e){return new iPn(n,n.gc(),e)}function q1e(n,e){return eD(n.c).Md().Xb(e)}function g4(n,e,t){var i;i=n.fd(e),i.Rb(t)}function QX(n,e,t){u(lk(n,e),21).Fc(t)}function U1e(n,e,t){cx(n.a,t),uS(n.a,e)}function C7(n){L(n,158)&&u(n,158).pi()}function cSn(n){qV.call(this,n,null,null)}function SN(n){A0(),this.b=n,this.a=!0}function uSn(n){QE(),this.b=n,this.a=!0}function p4(n){return oe(n.b!=0),n.a.a.c}function $s(n){return oe(n.b!=0),n.c.b.c}function G1e(n,e){return N$(n,e,e+1,""),n}function kt(n,e){return!!n.q&&Zc(n.q,e)}function oSn(n){return n.b=u(XW(n.a),44)}function z1e(n){return n.f!=null?n.f:""+n.g}function PN(n){return n.f!=null?n.f:""+n.g}function X1e(n,e){return n>0?e/(n*n):e*100}function V1e(n,e){return n>0?e*e/n:e*e*100}function x0(n,e){return u(Df(n.a,e),34)}function W1e(n,e){return ua(),In(n,e.e,e)}function J1e(n,e,t){return nM(),t.Mg(n,e)}function Q1e(n){return kl(),n.e.a+n.f.a/2}function Y1e(n,e,t){return kl(),t.e.a-n*e}function Z1e(n){return kl(),n.e.b+n.f.b/2}function nae(n,e,t){return kl(),t.e.b-n*e}function sSn(n){n.d=new cSn(n),n.e=new de}function fSn(){this.a=new Mb,this.b=new Mb}function hSn(n){this.c=n,this.a=1,this.b=1}function lSn(n){YR(),Pyn(this),this.Ff(n)}function eae(n,e,t){YT(),n.pf(e)&&t.Cd(n)}function tae(n,e,t){return nn(e,jKn(n,t))}function ab(n,e,t){return n.a+=e,n.b+=t,n}function iae(n,e,t){return n.a*=e,n.b*=t,n}function YX(n,e){return n.a=e.a,n.b=e.b,n}function HM(n){return n.a=-n.a,n.b=-n.b,n}function N6(n,e,t){return n.a-=e,n.b-=t,n}function aSn(n){Mt.call(this),r5(this,n)}function dSn(){je.call(this,"GROW_TREE",0)}function bSn(){je.call(this,"POLYOMINO",0)}function lo(n,e,t){Ou.call(this,n,e,t,2)}function rae(n,e,t){v5(Pc(n.a),e,LAn(t))}function wSn(n,e){l6(),M7.call(this,n,e)}function ZX(n,e){Gl(),_M.call(this,n,e)}function gSn(n,e){Gl(),ZX.call(this,n,e)}function pSn(n,e){Gl(),_M.call(this,n,e)}function cae(n,e){return n.c.Fc(u(e,136))}function uae(n,e,t){v5(no(n.a),e,NAn(t))}function mSn(n){this.c=n,eu(n,0),tu(n,0)}function IN(n,e){Fo(),oT.call(this,n,e)}function vSn(n,e){Fo(),IN.call(this,n,e)}function nV(n,e){Fo(),IN.call(this,n,e)}function eV(n,e){Fo(),oT.call(this,n,e)}function kSn(n,e){Fo(),nV.call(this,n,e)}function ySn(n,e){Fo(),eV.call(this,n,e)}function jSn(n,e){Fo(),oT.call(this,n,e)}function oae(n,e,t){return e.zl(n.e,n.c,t)}function sae(n,e,t){return e.Al(n.e,n.c,t)}function tV(n,e,t){return qS(hk(n,e),t)}function ON(n,e){return ea(n.e,u(e,54))}function fae(n){return n==null?null:DLe(n)}function hae(n){return n==null?null:Sje(n)}function lae(n){return n==null?null:Jr(n)}function aae(n){return n==null?null:Jr(n)}function un(n){return x6(n==null||D0(n)),n}function B(n){return x6(n==null||$0(n)),n}function Ae(n){return x6(n==null||Si(n)),n}function ll(n){n.o==null&&cTe(n)}function iV(n){if(!n)throw T(new W9)}function dae(n){if(!n)throw T(new uL)}function oe(n){if(!n)throw T(new nc)}function R0(n){if(!n)throw T(new Mu)}function ESn(n){if(!n)throw T(new Ko)}function m4(){m4=R,aE=new ujn,new ojn}function Cg(){Cg=R,L2=new lt("root")}function rV(){cxn.call(this),this.Bb|=hr}function bae(n,e){this.d=n,c9n(this),this.b=e}function cV(n,e){i$.call(this,n),this.a=e}function uV(n,e){i$.call(this,n),this.a=e}function oV(n,e,t){VT.call(this,n,e,t,null)}function MSn(n,e,t){VT.call(this,n,e,t,null)}function S7(n,e){this.c=n,h4.call(this,n,e)}function D6(n,e){this.a=n,S7.call(this,n,e)}function sV(n){this.q=new y.Date(id(n))}function TSn(n){return n>8?0:n+1}function CSn(n,e){Uf||nn(n.a,e)}function wae(n,e){return c7(),Q4(e.d.i,n)}function gae(n,e){return Hp(),new tUn(e,n)}function pae(n,e,t){return n.Ne(e,t)<=0?t:e}function mae(n,e,t){return n.Ne(e,t)<=0?e:t}function vae(n,e){return u(Df(n.b,e),143)}function kae(n,e){return u(Df(n.c,e),233)}function AN(n){return u(sn(n.a,n.b),294)}function SSn(n){return new V(n.c,n.d+n.a)}function PSn(n){return Jn(n),n?1231:1237}function ISn(n){return ko(),oCn(u(n,203))}function K0(){K0=R,ron=jn((go(),Gd))}function yae(n,e){e.a?TMe(n,e):EN(n.a,e.b)}function P7(n,e,t){++n.j,n.tj(),t$(n,e,t)}function OSn(n,e,t){++n.j,n.qj(e,n.Zi(e,t))}function ASn(n,e,t){var i;i=n.fd(e),i.Rb(t)}function fV(n,e,t){return t=Po(n,e,6,t),t}function hV(n,e,t){return t=Po(n,e,3,t),t}function lV(n,e,t){return t=Po(n,e,9,t),t}function uh(n,e){return G7(e,$tn),n.f=e,n}function aV(n,e){return(e&et)%n.d.length}function LSn(n,e,t){return Gen(n.c,n.b,e,t)}function NSn(n,e){this.c=n,Pb.call(this,e)}function DSn(n,e){this.a=n,kyn.call(this,e)}function I7(n,e){this.a=n,kyn.call(this,e)}function Lt(n,e){lt.call(this,n),this.a=e}function dV(n,e){xG.call(this,n),this.a=e}function LN(n,e){xG.call(this,n),this.a=e}function jae(n){XY.call(this,0,0),this.f=n}function $Sn(n,e,t){return n.a+=ws(e,0,t),n}function O7(n){return!n.a&&(n.a=new Mbn),n.a}function bV(n,e){var t;return t=n.e,n.e=e,t}function wV(n,e){var t;return t=e,!!n.Fe(t)}function Eae(n,e){return _n(),n==e?0:n?1:-1}function B0(n,e){n.a.bd(n.b,e),++n.b,n.c=-1}function A7(n){n.b?A7(n.b):n.f.c.zc(n.e,n.d)}function xSn(n){Hu(n.e),n.d.b=n.d,n.d.a=n.d}function Mae(n,e,t){Va(),t9n(n,e.Ve(n.a,t))}function gV(n,e,t){return Ip(n,u(e,22),t)}function xs(n,e){return qE(new Array(e),n)}function Tae(n){return Se(U1(n,32))^Se(n)}function NN(n){return String.fromCharCode(n)}function Cae(n){return n==null?null:n.message}function Sae(n,e,t){return n.apply(e,t)}function Pae(n,e){var t;t=n[LK],t.call(n,e)}function Iae(n,e){var t;t=n[LK],t.call(n,e)}function Oae(n,e){return c7(),!Q4(e.d.i,n)}function pV(n,e,t,i){rT.call(this,n,e,t,i)}function RSn(){qM.call(this),this.a=new Ni}function mV(){this.n=new Ni,this.o=new Ni}function KSn(){this.b=new Ni,this.c=new Z}function BSn(){this.a=new Z,this.b=new Z}function FSn(){this.a=new FU,this.b=new Kyn}function vV(){this.b=new Ql,this.a=new Ql}function _Sn(){this.b=new ni,this.a=new ni}function HSn(){this.b=new de,this.a=new de}function qSn(){this.b=new wEn,this.a=new H3n}function USn(){this.a=new n8n,this.b=new Npn}function GSn(){this.a=new Z,this.d=new Z}function qM(){this.n=new up,this.i=new mp}function zSn(n){this.a=(Mo(n,mw),new Gc(n))}function XSn(n){this.a=(Mo(n,mw),new Gc(n))}function Aae(n){return n<100?null:new R1(n)}function Lae(n,e){return n.n.a=(Jn(e),e+10)}function Nae(n,e){return n.n.a=(Jn(e),e+10)}function Dae(n,e){return e==n||km(CS(e),n)}function VSn(n,e){return Ve(n.a,e,"")==null}function $ae(n,e){var t;return t=e.qi(n.a),t}function tt(n,e){return n.a+=e.a,n.b+=e.b,n}function mi(n,e){return n.a-=e.a,n.b-=e.b,n}function xae(n){return I0(n.j.c,0),n.a=-1,n}function kV(n,e,t){return t=Po(n,e,11,t),t}function Rae(n,e,t){t!=null&&mC(e,Rx(n,t))}function Kae(n,e,t){t!=null&&vC(e,Rx(n,t))}function jp(n,e,t,i){q.call(this,n,e,t,i)}function yV(n,e,t,i){q.call(this,n,e,t,i)}function WSn(n,e,t,i){yV.call(this,n,e,t,i)}function JSn(n,e,t,i){bT.call(this,n,e,t,i)}function DN(n,e,t,i){bT.call(this,n,e,t,i)}function jV(n,e,t,i){bT.call(this,n,e,t,i)}function QSn(n,e,t,i){DN.call(this,n,e,t,i)}function EV(n,e,t,i){DN.call(this,n,e,t,i)}function Dn(n,e,t,i){jV.call(this,n,e,t,i)}function YSn(n,e,t,i){EV.call(this,n,e,t,i)}function ZSn(n,e,t,i){yW.call(this,n,e,t,i)}function F0(n,e){Or.call(this,p8+n+Cd+e)}function MV(n,e){return n.jk().wi().ri(n,e)}function TV(n,e){return n.jk().wi().ti(n,e)}function nPn(n,e){return Jn(n),x(n)===x(e)}function Sn(n,e){return Jn(n),x(n)===x(e)}function Bae(n,e){return n.b.Bd(new EMn(n,e))}function Fae(n,e){return n.b.Bd(new MMn(n,e))}function ePn(n,e){return n.b.Bd(new TMn(n,e))}function _ae(n,e){return n.e=u(n.d.Kb(e),159)}function CV(n,e,t){return n.lastIndexOf(e,t)}function Hae(n,e,t){return bt(n[e.a],n[t.a])}function qae(n,e){return U(e,(cn(),Mj),n)}function Uae(n,e){return jc(e.a.d.p,n.a.d.p)}function Gae(n,e){return jc(n.a.d.p,e.a.d.p)}function zae(n,e){return bt(n.c-n.s,e.c-e.s)}function Xae(n,e){return bt(n.b.e.a,e.b.e.a)}function Vae(n,e){return bt(n.c.e.a,e.c.e.a)}function tPn(n){return n.c?qr(n.c.a,n,0):-1}function Ep(n){return n==Ud||n==tl||n==qc}function SV(n,e){this.c=n,oD.call(this,n,e)}function iPn(n,e,t){this.a=n,WX.call(this,e,t)}function rPn(n){this.c=n,OM.call(this,Ey,0)}function cPn(n,e,t){this.c=e,this.b=t,this.a=n}function L7(n){k4(),this.d=n,this.a=new Mg}function uPn(n){oh(),this.a=(Ln(),new r4(n))}function Wae(n,e){hl(n.f)?QMe(n,e):Pye(n,e)}function oPn(n,e){s0e.call(this,n,n.length,e)}function Jae(n,e){Uf||e&&(n.d=e)}function sPn(n,e){return L(e,15)&&xqn(n.c,e)}function Qae(n,e,t){return u(n.c,71).Wk(e,t)}function UM(n,e,t){return u(n.c,71).Xk(e,t)}function Yae(n,e,t){return oae(n,u(e,343),t)}function PV(n,e,t){return sae(n,u(e,343),t)}function Zae(n,e,t){return IFn(n,u(e,343),t)}function fPn(n,e,t){return _ye(n,u(e,343),t)}function $6(n,e){return e==null?null:tw(n.b,e)}function IV(n){return $0(n)?(Jn(n),n):n.ue()}function GM(n){return!isNaN(n)&&!isFinite(n)}function $N(n){jCn(this),vo(this),Ki(this,n)}function _u(n){pN(this),GV(this.c,0,n.Pc())}function _o(n,e,t){this.a=n,this.b=e,this.c=t}function hPn(n,e,t){this.a=n,this.b=e,this.c=t}function lPn(n,e,t){this.d=n,this.b=t,this.a=e}function aPn(n){this.a=n,fl(),vc(Date.now())}function dPn(n){bo(n.a),UJ(n.c,n.b),n.b=null}function xN(){xN=R,Aun=new $bn,SQn=new xbn}function bPn(){bPn=R,Ooe=F(ki,Kn,1,0,5,1)}function wPn(){wPn=R,Voe=F(ki,Kn,1,0,5,1)}function OV(){OV=R,Woe=F(ki,Kn,1,0,5,1)}function oh(){oh=R,new BG((Ln(),Ln(),sr))}function nde(n){return K4(),Ee((yDn(),OQn),n)}function ede(n){return Gu(),Ee((lDn(),xQn),n)}function tde(n){return YC(),Ee((JLn(),HQn),n)}function ide(n){return cC(),Ee((QLn(),qQn),n)}function rde(n){return DS(),Ee((Jxn(),UQn),n)}function cde(n){return wf(),Ee((fDn(),XQn),n)}function ude(n){return Uu(),Ee((sDn(),WQn),n)}function ode(n){return bu(),Ee((hDn(),QQn),n)}function sde(n){return VS(),Ee((zTn(),kYn),n)}function fde(n){return Db(),Ee((EDn(),jYn),n)}function hde(n){return Vp(),Ee((TDn(),MYn),n)}function lde(n){return C5(),Ee((MDn(),SYn),n)}function ade(n){return YE(),Ee((jLn(),PYn),n)}function dde(n){return uC(),Ee((YLn(),GYn),n)}function bde(n){return t5(),Ee((aDn(),pZn),n)}function wde(n){return Vi(),Ee((u$n(),yZn),n)}function gde(n){return nm(),Ee((SDn(),CZn),n)}function pde(n){return dd(),Ee((CDn(),LZn),n)}function AV(n,e){if(!n)throw T(new Gn(e))}function v4(n){if(!n)throw T(new Ar(dtn))}function RN(n,e){if(n!=e)throw T(new Ko)}function gPn(n,e,t){this.a=n,this.b=e,this.c=t}function LV(n,e,t){this.a=n,this.b=e,this.c=t}function pPn(n,e,t){this.a=n,this.b=e,this.c=t}function zM(n,e,t){this.b=n,this.a=e,this.c=t}function NV(n,e,t){this.b=n,this.c=e,this.a=t}function DV(n,e,t){this.a=n,this.b=e,this.c=t}function XM(n,e,t){this.e=e,this.b=n,this.d=t}function mPn(n,e,t){this.b=n,this.a=e,this.c=t}function mde(n,e,t){return Va(),n.a.Yd(e,t),e}function KN(n){var e;return e=new u0n,e.e=n,e}function $V(n){var e;return e=new qyn,e.b=n,e}function N7(){N7=R,MI=new sgn,TI=new fgn}function VM(){VM=R,XZn=new xgn,zZn=new Rgn}function Rs(){Rs=R,YZn=new G2n,ZZn=new z2n}function vde(n){return Lb(),Ee((qNn(),fne),n)}function kde(n){return tr(),Ee((XTn(),HZn),n)}function yde(n){return AC(),Ee((IDn(),GZn),n)}function jde(n){return xf(),Ee((PDn(),tne),n)}function Ede(n){return ow(),Ee((o$n(),rne),n)}function Mde(n){return LS(),Ee(($xn(),hne),n)}function Tde(n){return Yp(),Ee((L$n(),lne),n)}function Cde(n){return QT(),Ee((cNn(),ane),n)}function Sde(n){return c5(),Ee((_Nn(),dne),n)}function Pde(n){return bC(),Ee((HNn(),bne),n)}function Ide(n){return o1(),Ee((s$n(),wne),n)}function Ode(n){return wk(),Ee((eNn(),gne),n)}function Ade(n){return jm(),Ee(($$n(),jne),n)}function Lde(n){return pr(),Ee((aRn(),Ene),n)}function Nde(n){return Z4(),Ee((GNn(),Mne),n)}function Dde(n){return vl(),Ee((zNn(),Cne),n)}function $de(n){return FT(),Ee((nNn(),Sne),n)}function xde(n){return Vk(),Ee((D$n(),yne),n)}function Rde(n){return hd(),Ee((UNn(),mne),n)}function Kde(n){return vS(),Ee((N$n(),vne),n)}function Bde(n){return sk(),Ee((tNn(),kne),n)}function Fde(n){return Yo(),Ee((h$n(),Pne),n)}function _de(n){return a1(),Ee((Xxn(),Yte),n)}function Hde(n){return w5(),Ee((XNn(),Zte),n)}function qde(n){return cw(),Ee((ODn(),nie),n)}function Ude(n){return T5(),Ee((f$n(),eie),n)}function Gde(n){return ps(),Ee((dRn(),tie),n)}function zde(n){return lh(),Ee((ADn(),iie),n)}function Xde(n){return dk(),Ee((iNn(),rie),n)}function Vde(n){return gr(),Ee((JNn(),uie),n)}function Wde(n){return PC(),Ee((VNn(),oie),n)}function Jde(n){return a5(),Ee((WNn(),sie),n)}function Qde(n){return om(),Ee((QNn(),fie),n)}function Yde(n){return dC(),Ee((YNn(),hie),n)}function Zde(n){return LC(),Ee((ZNn(),lie),n)}function nbe(n){return Ab(),Ee((oDn(),Sie),n)}function ebe(n){return Z6(),Ee((rNn(),Lie),n)}function tbe(n){return fh(),Ee((sNn(),Bie),n)}function ibe(n){return If(),Ee((fNn(),_ie),n)}function rbe(n){return af(),Ee((hNn(),tre),n)}function cbe(n){return Tb(),Ee((lNn(),fre),n)}function ube(n){return Qp(),Ee((KDn(),hre),n)}function obe(n){return F5(),Ee((VTn(),lre),n)}function sbe(n){return d5(),Ee((nDn(),are),n)}function fbe(n){return b5(),Ee((RDn(),$re),n)}function hbe(n){return RT(),Ee((uNn(),xre),n)}function lbe(n){return yC(),Ee((oNn(),_re),n)}function abe(n){return wS(),Ee((l$n(),qre),n)}function dbe(n){return Ik(),Ee((eDn(),Gre),n)}function bbe(n){return ZT(),Ee((aNn(),Ure),n)}function wbe(n){return sS(),Ee((xDn(),lce),n)}function gbe(n){return SC(),Ee((tDn(),ace),n)}function pbe(n){return XC(),Ee((iDn(),dce),n)}function mbe(n){return rS(),Ee((rDn(),wce),n)}function vbe(n){return _C(),Ee((cDn(),mce),n)}function kbe(n){return GT(),Ee((dNn(),Bce),n)}function ybe(n){return V4(),Ee((ZLn(),_Zn),n)}function jbe(n){return Vn(),Ee((x$n(),xZn),n)}function Ebe(n){return nC(),Ee((uDn(),Fce),n)}function Mbe(n){return D$(),Ee((bNn(),_ce),n)}function Tbe(n){return x5(),Ee((a$n(),qce),n)}function Cbe(n){return eM(),Ee((OLn(),Gce),n)}function Sbe(n){return $k(),Ee((bDn(),Uce),n)}function Pbe(n){return tM(),Ee((ALn(),Xce),n)}function Ibe(n){return ik(),Ee((wNn(),Vce),n)}function Obe(n){return Jk(),Ee((d$n(),Wce),n)}function Abe(n){return s6(),Ee((LLn(),lue),n)}function Lbe(n){return Tk(),Ee((gNn(),aue),n)}function Nbe(n){return pf(),Ee((w$n(),mue),n)}function Dbe(n){return l1(),Ee((Nxn(),kue),n)}function $be(n){return Bh(),Ee((R$n(),yue),n)}function xbe(n){return wd(),Ee((K$n(),Sue),n)}function Rbe(n){return ci(),Ee((b$n(),zue),n)}function Kbe(n){return $f(),Ee((wDn(),Xue),n)}function Bbe(n){return El(),Ee((BDn(),Vue),n)}function Fbe(n){return pS(),Ee((B$n(),Wue),n)}function _be(n){return jl(),Ee((dDn(),Que),n)}function Hbe(n){return Co(),Ee((FDn(),Zue),n)}function qbe(n){return lw(),Ee((Wxn(),noe),n)}function Ube(n){return Kg(),Ee((g$n(),eoe),n)}function Gbe(n){return Ai(),Ee((F$n(),toe),n)}function zbe(n){return zu(),Ee((_$n(),ioe),n)}function Xbe(n){return en(),Ee((p$n(),roe),n)}function Vbe(n){return go(),Ee((_Dn(),foe),n)}function Wbe(n){return io(),Ee((Vxn(),hoe),n)}function Jbe(n){return Gp(),Ee((gDn(),loe),n)}function Qbe(n,e){return Jn(n),n+(Jn(e),e)}function Ybe(n){return BN(),Ee((pNn(),aoe),n)}function Zbe(n){return qC(),Ee((HDn(),doe),n)}function n0e(n){return NC(),Ee((qDn(),goe),n)}function k4(){k4=R,tln=(en(),Wn),OO=Zn}function BN(){BN=R,vdn=new VPn,kdn=new NIn}function e0e(n){return!n.e&&(n.e=new Z),n.e}function FN(n,e){this.c=n,this.a=e,this.b=e-n}function vPn(n,e,t){this.a=n,this.b=e,this.c=t}function _N(n,e,t){this.a=n,this.b=e,this.c=t}function xV(n,e,t){this.a=n,this.b=e,this.c=t}function RV(n,e,t){this.a=n,this.b=e,this.c=t}function kPn(n,e,t){this.a=n,this.b=e,this.c=t}function yPn(n,e,t){this.a=n,this.b=e,this.c=t}function Xl(n,e,t){this.e=n,this.a=e,this.c=t}function jPn(n,e,t){Fo(),eJ.call(this,n,e,t)}function HN(n,e,t){Fo(),KW.call(this,n,e,t)}function KV(n,e,t){Fo(),KW.call(this,n,e,t)}function BV(n,e,t){Fo(),KW.call(this,n,e,t)}function EPn(n,e,t){Fo(),HN.call(this,n,e,t)}function FV(n,e,t){Fo(),HN.call(this,n,e,t)}function MPn(n,e,t){Fo(),FV.call(this,n,e,t)}function TPn(n,e,t){Fo(),KV.call(this,n,e,t)}function CPn(n,e,t){Fo(),BV.call(this,n,e,t)}function qN(n){rT.call(this,n.d,n.c,n.a,n.b)}function _V(n){rT.call(this,n.d,n.c,n.a,n.b)}function HV(n){this.d=n,c9n(this),this.b=nwe(n.d)}function t0e(n){return Mm(),Ee((Dxn(),Ioe),n)}function D7(n,e){return Pe(n),Pe(e),new DEn(n,e)}function Mp(n,e){return Pe(n),Pe(e),new BPn(n,e)}function i0e(n,e){return Pe(n),Pe(e),new FPn(n,e)}function r0e(n,e){return Pe(n),Pe(e),new qEn(n,e)}function UN(n){return oe(n.b!=0),Xo(n,n.a.a)}function c0e(n){return oe(n.b!=0),Xo(n,n.c.b)}function u0e(n){return!n.c&&(n.c=new W3),n.c}function y4(n){var e;return e=new Z,b$(e,n),e}function o0e(n){var e;return e=new ni,b$(e,n),e}function SPn(n){var e;return e=new UG,S$(e,n),e}function $7(n){var e;return e=new Mt,S$(e,n),e}function u(n,e){return x6(n==null||Cx(n,e)),n}function s0e(n,e,t){CIn.call(this,e,t),this.a=n}function PPn(n,e){this.c=n,this.b=e,this.a=!1}function IPn(){this.a=";,;",this.b="",this.c=""}function OPn(n,e,t){this.b=n,_Tn.call(this,e,t)}function qV(n,e,t){this.c=n,oM.call(this,e,t)}function UV(n,e,t){d4.call(this,n,e),this.b=t}function GV(n,e,t){Rnn(t,0,n,e,t.length,!1)}function Nh(n,e,t,i,r){n.b=e,n.c=t,n.d=i,n.a=r}function zV(n,e,t,i,r){n.d=e,n.c=t,n.a=i,n.b=r}function f0e(n,e){e&&(n.b=e,n.a=(X1(e),e.a))}function x7(n,e){if(!n)throw T(new Gn(e))}function Tp(n,e){if(!n)throw T(new Ar(e))}function XV(n,e){if(!n)throw T(new Kjn(e))}function h0e(n,e){return ZE(),jc(n.d.p,e.d.p)}function l0e(n,e){return kl(),bt(n.e.b,e.e.b)}function a0e(n,e){return kl(),bt(n.e.a,e.e.a)}function d0e(n,e){return jc(GPn(n.d),GPn(e.d))}function WM(n,e){return e&&vT(n,e.d)?e:null}function b0e(n,e){return e==(en(),Wn)?n.c:n.d}function VV(n){return Y1(dwe(Vr(n)?ds(n):n))}function w0e(n){return new V(n.c+n.b,n.d+n.a)}function APn(n){return n!=null&&!lx(n,L9,N9)}function g0e(n,e){return(fKn(n)<<4|fKn(e))&ui}function LPn(n,e,t,i,r){n.c=e,n.d=t,n.b=i,n.a=r}function WV(n){var e,t;e=n.b,t=n.c,n.b=t,n.c=e}function JV(n){var e,t;t=n.d,e=n.a,n.d=e,n.a=t}function p0e(n,e){var t;return t=n.c,PQ(n,e),t}function QV(n,e){return e<0?n.g=-1:n.g=e,n}function JM(n,e){return Tme(n),n.a*=e,n.b*=e,n}function NPn(n,e,t){S$n.call(this,e,t),this.d=n}function R7(n,e,t){gX.call(this,n,e),this.c=t}function QM(n,e,t){gX.call(this,n,e),this.c=t}function YV(n){OV(),TE.call(this),this.ci(n)}function DPn(){$4(),Kwe.call(this,(B1(),Is))}function $Pn(n){return nt(),new Dh(0,n)}function xPn(){xPn=R,CU=(Ln(),new nL(OF))}function YM(){YM=R,new fZ((bL(),HF),(dL(),_F))}function RPn(){RPn=R,pun=F(Gi,J,17,256,0,1)}function KPn(){this.b=$(B(rn((Us(),k_))))}function GN(n){this.b=n,this.a=Ja(this.b.a).Od()}function BPn(n,e){this.b=n,this.a=e,GA.call(this)}function FPn(n,e){this.a=n,this.b=e,GA.call(this)}function _Pn(n,e,t){this.a=n,pg.call(this,e,t)}function HPn(n,e,t){this.a=n,pg.call(this,e,t)}function j4(n,e,t){var i;i=new q0(t),bf(n,e,i)}function ZV(n,e,t){var i;return i=n[e],n[e]=t,i}function ZM(n){var e;return e=n.slice(),o$(e,n)}function nT(n){var e;return e=n.n,n.a.b+e.d+e.a}function qPn(n){var e;return e=n.n,n.e.b+e.d+e.a}function nW(n){var e;return e=n.n,n.e.a+e.b+e.c}function eW(n){n.a.b=n.b,n.b.a=n.a,n.a=n.b=null}function Re(n,e){return xt(n,e,n.c.b,n.c),!0}function m0e(n){return n.a?n.a:vD(n)}function v0e(n){return Np(),Fh(n)==St(ra(n))}function k0e(n){return Np(),ra(n)==St(Fh(n))}function db(n,e){return O5(n,new d4(e.a,e.b))}function y0e(n,e){return yT(),Dx(n,e),new lOn(n,e)}function j0e(n,e){return n.c<e.c?-1:n.c==e.c?0:1}function UPn(n){return n.b.c.length-n.e.c.length}function GPn(n){return n.e.c.length-n.g.c.length}function zN(n){return n.e.c.length+n.g.c.length}function K7(n){return n==0||isNaN(n)?n:n<0?-1:1}function E0e(n){return!fr(n)&&n.c.i.c==n.d.i.c}function M0e(n){return ko(),(en(),su).Hc(n.j)}function T0e(n,e,t){return kl(),t.e.a+t.f.a+n*e}function C0e(n,e,t){return kl(),t.e.b+t.f.b+n*e}function S0e(n,e,t){return Ve(n.b,u(t.b,18),e)}function P0e(n,e,t){return Ve(n.b,u(t.b,18),e)}function I0e(n,e,t){wLe(n.a,n.b,n.c,u(e,166),t)}function tW(n,e,t,i){tZ.call(this,n,e,t,i,0,0)}function zPn(n){OV(),YV.call(this,n),this.a=-1}function XPn(n,e){CIn.call(this,e,1040),this.a=n}function VPn(){sTn.call(this,"COUNT_CHILDREN",0)}function eT(n,e){k7.call(this,n,e),this.a=this}function Dt(n,e){var t;return t=bD(n,e),t.i=2,t}function tT(n,e){var t;return++n.j,t=n.Cj(e),t}function Fe(n,e,t){return n.a=-1,QX(n,e.g,t),n}function O0e(n,e){return nn(n,new V(e.a,e.b))}function WPn(n){return _p(),F(DO,AP,40,n,0,1)}function JPn(n){return n.e.Rd().gc()*n.c.Rd().gc()}function XN(n,e,t){return new cPn(Fwe(n)._e(),t,e)}function A0e(n,e){IQ(n,e==null?null:(Jn(e),e))}function L0e(n,e){SQ(n,e==null?null:(Jn(e),e))}function N0e(n,e){SQ(n,e==null?null:(Jn(e),e))}function x6(n){if(!n)throw T(new i4(null))}function iW(n){if(n.c.e!=n.a)throw T(new Ko)}function rW(n){if(n.e.c!=n.b)throw T(new Ko)}function iT(n){for(Pe(n);n.Ob();)n.Pb(),n.Qb()}function VN(n){mb(),this.a=(Ln(),new nL(Pe(n)))}function cW(n){this.c=n,this.b=this.c.d.vc().Kc()}function D0e(n){n.a.ld(),u(n.a.md(),16).gc(),bz()}function QPn(n,e){return n.a+=ws(e,0,e.length),n}function sn(n,e){return Nn(e,n.c.length),n.c[e]}function YPn(n,e){return Nn(e,n.a.length),n.a[e]}function $0e(n,e){return Jn(e),mk(e,(Jn(n),n))}function x0e(n,e){return Jn(n),mk(n,(Jn(e),e))}function Wa(n,e,t,i,r,c){return jFn(n,e,t,i,r,0,c)}function R0e(n,e){return $t(e,0,uW(e[0],Tl(1)))}function K0e(n,e){return Tl(nr(Tl(n.a).a,e.a))}function uW(n,e){return K0e(u(n,168),u(e,168))}function ZPn(){ZPn=R,mun=F(t0,J,168,256,0,1)}function nIn(){nIn=R,yun=F(i0,J,191,256,0,1)}function eIn(){eIn=R,bun=F(p3,J,222,256,0,1)}function tIn(){tIn=R,gun=F(S8,J,180,128,0,1)}function oW(){Nh(this,!1,!1,!1,!1)}function sW(n){EG.call(this,new Ql),Ki(this,n)}function R6(n){this.a=new ap(n.gc()),Ki(this,n)}function iIn(n){this.c=n,this.a=new dp(this.c.a)}function rIn(n){this.a=n,this.c=new de,o6e(this)}function cIn(){this.d=new V(0,0),this.e=new ni}function Cn(n,e){Va(),i$.call(this,n),this.a=e}function rT(n,e,t,i){zV(this,n,e,t,i)}function B0e(n,e,t){return jc(e.d[n.g],t.d[n.g])}function F0e(n,e,t){return jc(n.d[e.p],n.d[t.p])}function _0e(n,e,t){return jc(n.d[e.p],n.d[t.p])}function H0e(n,e,t){return jc(n.d[e.p],n.d[t.p])}function q0e(n,e,t){return jc(n.d[e.p],n.d[t.p])}function cT(n,e,t){return y.Math.min(t/n,1/e)}function uIn(n,e){return n?0:y.Math.max(0,e-1)}function WN(n,e){return n==null?e==null:Sn(n,e)}function U0e(n,e){return n==null?e==null:JC(n,e)}function oIn(n){return n.q?n.q:(Ln(),Ln(),Wh)}function sIn(n){return n.c-u(sn(n.a,n.b),294).b}function ao(n){return n.c?n.c.f:n.e.b}function Pu(n){return n.c?n.c.g:n.e.a}function G0e(n,e){return n.a==null&&qqn(n),n.a[e]}function fIn(n){var e;return e=MFn(n),e?fIn(e):n}function uT(n,e){return nt(),new SW(n,e)}function Dh(n,e){nt(),Wd.call(this,n),this.a=e}function oT(n,e){Fo(),NE.call(this,e),this.a=n}function K6(n,e,t){this.a=n,ti.call(this,e,t,2)}function hIn(n){this.b=new Mt,this.a=n,this.c=-1}function lIn(n){WX.call(this,0,0),this.a=n,this.b=0}function sT(n){Pb.call(this,n.gc()),Kt(this,n)}function fT(n){n.b?fT(n.b):n.d.dc()&&n.f.c.Bc(n.e)}function fW(n){return Array.isArray(n)&&n.Tm===Q2}function JN(n,e){return L(e,22)&&Su(n,u(e,22))}function aIn(n,e){return L(e,22)&&kme(n,u(e,22))}function wr(n,e){return KRn(n,e,J3e(n,n.b.Ce(e)))}function z0e(n,e){return n.a.get(e)!==void 0}function hW(n){return to(n,26)*J5+to(n,27)*Q5}function dIn(n,e){return Bme(new Ubn,new b9n(n),e)}function QN(n,e,t){xRn(0,e,n.length),R4(n,0,e,t)}function bb(n,e,t){z0(e,n.c.length),d6(n.c,e,t)}function hT(n,e,t){var i;n&&(i=n.i,i.c=e,i.b=t)}function lT(n,e,t){var i;n&&(i=n.i,i.d=e,i.a=t)}function bIn(n,e,t){var i;for(i=0;i<e;++i)n[i]=t}function X0e(n,e){var t;for(t=0;t<e;++t)n[t]=-1}function yt(n,e){var t;return t=jn(n),nY(t,e),t}function V0e(n,e){return!n&&(n=[]),n[n.length]=e,n}function YN(n,e){tt(n.c,e),n.b.c+=e.a,n.b.d+=e.b}function W0e(n,e){YN(n,mi(new V(e.a,e.b),n.c))}function ZN(n,e){this.b=new Mt,this.a=n,this.c=e}function wIn(){this.b=new twn,this.c=new WOn(this)}function lW(){this.d=new i0n,this.e=new VOn(this)}function aW(){uJ(),this.f=new Mt,this.e=new Mt}function gIn(){ko(),this.k=new de,this.d=new ni}function nD(){nD=R,moe=new Di((He(),oo),0)}function pIn(){pIn=R,cQn=new lIn(F(ki,Kn,1,0,5,1))}function J0e(n,e,t){return fi(n,new bp(e.a,t.a))}function Q0e(n,e,t){return-jc(n.f[e.p],n.f[t.p])}function Y0e(n,e,t){LHn(t,n,1),nn(e,new LMn(t,n))}function Z0e(n,e,t){I5(t,n,1),nn(e,new $Mn(t,n))}function mIn(n,e,t){this.a=n,$M.call(this,e,t,22)}function vIn(n,e,t){this.a=n,$M.call(this,e,t,14)}function kIn(n,e,t,i){Fo(),rLn.call(this,n,e,t,i)}function yIn(n,e,t,i){Fo(),rLn.call(this,n,e,t,i)}function Iu(n,e,t){return n.a=-1,QX(n,e.g+1,t),n}function dW(n,e,t){return t=Po(n,u(e,54),7,t),t}function bW(n,e,t){return t=Po(n,u(e,54),3,t),t}function Se(n){return Vr(n)?n|0:cEn(n)}function jIn(n){return nt(),new OD(10,n,0)}function EIn(n){var e;return e=n.f,e||(n.f=n.Dc())}function Cp(n){var e;return e=n.i,e||(n.i=n.bc())}function aT(n){if(n.e.j!=n.d)throw T(new Ko)}function Ja(n){return n.c?n.c:n.c=n.Sd()}function eD(n){return n.d?n.d:n.d=n.Td()}function B6(n,e){return q8e(hk(n,e))?e.zi():null}function nwe(n){return L(n,15)?u(n,15).ed():n.Kc()}function wW(n){return n.Qc(F(ki,Kn,1,n.gc(),5,1))}function MIn(n){return n!=null&&uD(n)&&n.Tm!==Q2}function gW(n){return!Array.isArray(n)&&n.Tm===Q2}function TIn(n,e){return Pe(e),n.a.Jd(e)&&!n.b.Jd(e)}function ewe(n,e){return Yc(n.l&e.l,n.m&e.m,n.h&e.h)}function twe(n,e){return Yc(n.l|e.l,n.m|e.m,n.h|e.h)}function iwe(n,e){return Yc(n.l^e.l,n.m^e.m,n.h^e.h)}function Ks(n,e){return Y1(t_n(Vr(n)?ds(n):n,e))}function wb(n,e){return Y1(znn(Vr(n)?ds(n):n,e))}function U1(n,e){return Y1(Kje(Vr(n)?ds(n):n,e))}function rwe(n,e){return Eae((Jn(n),n),(Jn(e),e))}function tD(n,e){return bt((Jn(n),n),(Jn(e),e))}function dT(n){this.b=new Gc(11),this.a=(jb(),n)}function ie(n){this.a=(pIn(),cQn),this.d=u(Pe(n),51)}function CIn(n,e){this.c=0,this.d=n,this.b=e|64|wh}function pW(n,e){this.e=n,this.d=e&64?e|wh:e}function iD(n){this.b=null,this.a=(jb(),n||Iun)}function SIn(n){xM(this),this.g=n,TT(this),this.je()}function Qa(n){F1(),this.a=0,this.b=n-1,this.c=1}function mW(n,e,t,i){this.a=n,VT.call(this,n,e,t,i)}function cwe(n,e,t){n.a.Mb(t)&&(n.b=!0,e.Cd(t))}function vW(n){n.d||(n.d=n.b.Kc(),n.c=n.b.gc())}function E4(n,e){if(n<0||n>=e)throw T(new QG)}function _0(n,e){return Nk(n,(Jn(e),new a9n(e)))}function Sp(n,e){return Nk(n,(Jn(e),new d9n(e)))}function PIn(n,e,t){return VNe(n,u(e,12),u(t,12))}function IIn(n){return Au(),u(n,12).g.c.length!=0}function OIn(n){return Au(),u(n,12).e.c.length!=0}function uwe(n,e){return Hp(),bt(e.a.o.a,n.a.o.a)}function owe(n,e){e.Bb&kc&&!n.a.o&&(n.a.o=e)}function swe(n,e){e.Ug("General 'Rotator",1),jLe(n)}function fwe(n,e,t){e.qf(t,$(B(ee(n.b,t)))*n.a)}function AIn(n,e,t){return Vg(),W4(n,e)&&W4(n,t)}function F6(n){return zu(),!n.Hc(Rl)&&!n.Hc(Oa)}function hwe(n){return n.e?HJ(n.e):null}function _6(n){return Vr(n)?""+n:$qn(n)}function kW(n){var e;for(e=n;e.f;)e=e.f;return e}function lwe(n,e,t){return $t(e,0,uW(e[0],t[0])),e}function Vl(n,e,t,i){var r;r=n.i,r.i=e,r.a=t,r.b=i}function q(n,e,t,i){ti.call(this,n,e,t),this.b=i}function Mi(n,e,t,i,r){c$.call(this,n,e,t,i,r,-1)}function H6(n,e,t,i,r){ck.call(this,n,e,t,i,r,-1)}function bT(n,e,t,i){R7.call(this,n,e,t),this.b=i}function LIn(n){ITn.call(this,n,!1),this.a=!1}function NIn(){sTn.call(this,"LOOKAHEAD_LAYOUT",1)}function DIn(n){this.b=n,kp.call(this,n),BCn(this)}function $In(n){this.b=n,T7.call(this,n),FCn(this)}function H0(n,e,t){this.a=n,jp.call(this,e,t,5,6)}function yW(n,e,t,i){this.b=n,ti.call(this,e,t,i)}function xIn(n,e){this.b=n,H8n.call(this,n.b),this.a=e}function RIn(n){this.a=kBn(n.a),this.b=new _u(n.b)}function jW(n,e){mb(),Hhe.call(this,n,RC(new Fu(e)))}function wT(n,e){return nt(),new RW(n,e,0)}function rD(n,e){return nt(),new RW(6,n,e)}function _i(n,e){for(Jn(e);n.Ob();)e.Cd(n.Pb())}function Zc(n,e){return Si(e)?SD(n,e):!!wr(n.f,e)}function cD(n,e){return e.Vh()?ea(n.b,u(e,54)):e}function awe(n,e){return Sn(n.substr(0,e.length),e)}function $h(n){return new ie(new qX(n.a.length,n.a))}function gT(n){return new V(n.c+n.b/2,n.d+n.a/2)}function dwe(n){return Yc(~n.l&ro,~n.m&ro,~n.h&Ol)}function uD(n){return typeof n===vy||typeof n===eK}function Hu(n){n.f=new iCn(n),n.i=new rCn(n),++n.g}function KIn(n){if(!n)throw T(new nc);return n.d}function Pp(n){var e;return e=l5(n),oe(e!=null),e}function bwe(n){var e;return e=O5e(n),oe(e!=null),e}function M4(n,e){var t;return t=n.a.gc(),RJ(e,t),t-e}function fi(n,e){var t;return t=n.a.zc(e,n),t==null}function B7(n,e){return n.a.zc(e,(_n(),ga))==null}function EW(n){return new Cn(null,vwe(n,n.length))}function MW(n,e,t){return cGn(n,u(e,42),u(t,176))}function Ip(n,e,t){return _s(n.a,e),ZV(n.b,e.g,t)}function wwe(n,e,t){E4(t,n.a.c.length),Go(n.a,t,e)}function K(n,e,t,i){xRn(e,t,n.length),gwe(n,e,t,i)}function gwe(n,e,t,i){var r;for(r=e;r<t;++r)n[r]=i}function TW(n,e){var t;for(t=0;t<e;++t)n[t]=!1}function Ya(n,e,t){dh(),this.e=n,this.d=e,this.a=t}function CW(n,e,t){this.c=n,this.a=e,Ln(),this.b=t}function oD(n,e){this.d=n,ne.call(this,n),this.e=e}function hf(n,e,t){return $6e(n,e.g,t),_s(n.c,e),n}function pwe(n){return Yg(n,(ci(),Kr)),n.d=!0,n}function sD(n){return!n.j&&Tfe(n,yPe(n.g,n.b)),n.j}function BIn(n){n.a=null,n.e=null,Hu(n.b),n.d=0,++n.c}function q6(n){R0(n.b!=-1),Yl(n.c,n.a=n.b),n.b=-1}function SW(n,e){Wd.call(this,1),this.a=n,this.b=e}function mwe(n,e){return n>0?y.Math.log(n/e):-100}function FIn(n,e){return Ec(n,e)<0?-1:Ec(n,e)>0?1:0}function F7(n,e){ACn(n,L(e,160)?e:u(e,2036).Rl())}function PW(n,e){if(n==null)throw T(new fp(e))}function vwe(n,e){return yme(e,n.length),new XPn(n,e)}function IW(n,e){return e?Ki(n,e):!1}function kwe(){return BE(),S(C(uQn,1),G,549,0,[GF])}function U6(n){return n.e==0?n:new Ya(-n.e,n.d,n.a)}function ywe(n,e){return bt(n.c.c+n.c.b,e.c.c+e.c.b)}function _7(n,e){xt(n.d,e,n.b.b,n.b),++n.a,n.c=null}function _In(n,e){return n.c?_In(n.c,e):nn(n.b,e),n}function jwe(n,e,t){var i;return i=J0(n,e),qD(n,e,t),i}function HIn(n,e,t){var i;for(i=0;i<e;++i)$t(n,i,t)}function qIn(n,e,t,i,r){for(;e<t;)i[r++]=Xi(n,e++)}function T4(n,e,t,i,r){Qx(n,u(ot(e.k,t),15),t,i,r)}function gb(n,e){qt(_r(n.Oc(),new lpn),new M7n(e))}function Ewe(n,e){return bt(n.e.a+n.f.a,e.e.a+e.f.a)}function Mwe(n,e){return bt(n.e.b+n.f.b,e.e.b+e.f.b)}function fD(n){return y.Math.abs(n.d.e-n.e.e)-n.a}function Twe(n){return n==Pt?nj:n==li?"-INF":""+n}function Cwe(n){return n==Pt?nj:n==li?"-INF":""+n}function Swe(n){return Np(),St(Fh(n))==St(ra(n))}function Pwe(n,e,t){return u(n.c.hd(e,u(t,136)),44)}function Iwe(n,e){Op(n,new q0(e.f!=null?e.f:""+e.g))}function Owe(n,e){Op(n,new q0(e.f!=null?e.f:""+e.g))}function Kt(n,e){return n.Si()&&(e=gAn(n,e)),n.Fi(e)}function hD(n,e){return e=n.Yk(null,e),KFn(n,null,e)}function Awe(n,e){++n.j,Jx(n,n.i,e),nMe(n,u(e,343))}function OW(n){n?YZ(n,(fl(),pQn)):$ge((fl(),n))}function pb(n){this.d=(Jn(n),n),this.a=0,this.c=Ey}function lD(n,e){this.d=j5e(n),this.c=e,this.a=.5*e}function UIn(n){ZW.call(this),this.a=n,nn(n.a,this)}function GIn(){Ql.call(this),this.a=!0,this.b=!0}function zIn(){zIn=R,lQn=new aG(!1),aQn=new aG(!0)}function G6(n){var e;return e=n.g,e||(n.g=new sG(n))}function pT(n){var e;return e=n.k,e||(n.k=new fG(n))}function AW(n){var e;return e=n.k,e||(n.k=new fG(n))}function Lwe(n){var e;return e=n.i,e||(n.i=new x8n(n))}function XIn(n){var e;return e=n.f,e||(n.f=new HX(n))}function aD(n){var e;return e=n.j,e||(n.j=new W8n(n))}function dD(n){var e;return e=n.d,e||(n.d=new VA(n))}function VIn(n,e,t){return nt(),new qAn(n,e,t)}function WIn(n,e){return Z7(e,n.c.b.c.gc()),new NEn(n,e)}function LW(n,e){var t;return t=n.a.gc(),Z7(e,t),t-1-e}function w(n,e,t){var i;return i=bD(n,e),G$n(t,i),i}function bD(n,e){var t;return t=new QQ,t.j=n,t.d=e,t}function Pe(n){if(n==null)throw T(new rp);return n}function q0(n){if(n==null)throw T(new rp);this.a=n}function JIn(n){FG(),this.b=new Z,this.a=n,MAe(this,n)}function NW(n){this.b=n,this.a=u(as(this.b.a.e),227)}function mb(){mb=R,oh(),qF=new ID((Ln(),Ln(),sr))}function wD(){wD=R,oh(),cun=new Rz((Ln(),Ln(),hI))}function G1(){G1=R,Hn=ZEe(),An(),tg&&nke()}function mT(n){n.s=NaN,n.c=NaN,kHn(n,n.e),kHn(n,n.j)}function se(n){return(n.i==null&&bh(n),n.i).length}function QIn(n,e){return u(Ja(n.a).Md().Xb(e),44).ld()}function ee(n,e){return Si(e)?Dc(n,e):Fr(wr(n.f,e))}function Nwe(n,e){return Np(),n==Fh(e)?ra(e):Fh(e)}function Dwe(n,e,t,i){return t==0||(t-i)/t<n.e||e>=n.g}function $t(n,e,t){return dae(t==null||sIe(n,t)),n[e]=t}function DW(n,e){return zn(e,n.length+1),n.substr(e)}function gD(n,e){for(Jn(e);n.c<n.d;)n.Se(e,n.c++)}function $W(n){this.d=n,this.c=n.a.d.a,this.b=n.a.e.g}function YIn(n){this.c=n,this.a=new Mt,this.b=new Mt}function Nc(n){this.c=new Ni,this.a=new Z,this.b=n}function ZIn(n){this.b=new Z,this.a=new Z,this.c=n}function $we(n,e,t){u(e.b,68),nu(e.a,new xV(n,t,e))}function xwe(n,e){return Hp(),u(Mr(n,e.d),15).Fc(e)}function Op(n,e){var t;t=n.a.length,J0(n,t),qD(n,t,e)}function nOn(n,e){var t;t=console[n],t.call(console,e)}function eOn(n,e){var t;++n.j,t=n.Ej(),n.rj(n.Zi(t,e))}function pD(n,e,t){var i;return i=C$(n,e,t),ken(n,i)}function vb(n){return!n.d&&(n.d=new ti(jr,n,1)),n.d}function Rwe(n){return!n.a&&(n.a=new ti(Aa,n,4)),n.a}function C4(n,e){return n.a+=String.fromCharCode(e),n}function z1(n,e){return n.a+=String.fromCharCode(e),n}function xW(n,e,t){this.a=n,xG.call(this,e),this.b=t}function tOn(n,e,t){this.a=n,mJ.call(this,8,e,null,t)}function RW(n,e,t){Wd.call(this,n),this.a=e,this.b=t}function KW(n,e,t){NE.call(this,e),this.a=n,this.b=t}function iOn(n){this.c=n,this.b=this.c.a,this.a=this.c.e}function Kwe(n){this.a=(Jn(Ke),Ke),this.b=n,new ez}function rOn(n){GW(n.a),n.b=F(ki,Kn,1,n.b.length,5,1)}function bo(n){R0(n.c!=-1),n.d.gd(n.c),n.b=n.c,n.c=-1}function z6(n){return y.Math.sqrt(n.a*n.a+n.b*n.b)}function vT(n,e){return qx(n.c,n.f,e,n.b,n.a,n.e,n.d)}function kb(n,e){return E4(e,n.a.c.length),sn(n.a,e)}function sh(n,e){return x(n)===x(e)||n!=null&&rt(n,e)}function cOn(n){return L(n,102)&&(u(n,19).Bb&kc)!=0}function uOn(n){return as(n),L(n,484)?u(n,484):Jr(n)}function oOn(n){return n?n.dc():!n.Kc().Ob()}function Bwe(n){return rg?SD(rg,n):!1}function Fwe(n){return 0>=n?new Az:Gme(n-1)}function Hi(n){return!n.a&&n.c?n.c.b:n.a}function BW(n){return L(n,616)?n:new oAn(n)}function X1(n){n.c?X1(n.c):(ta(n),n.d=!0)}function X6(n){n.c?n.c.$e():(n.d=!0,fCe(n))}function sOn(n){n.b=!1,n.c=!1,n.d=!1,n.a=!1}function fOn(n){var e,t;return e=n.c.i.c,t=n.d.i.c,e==t}function _we(n,e){var t;t=n.Ih(e),t>=0?n.ki(t):Pnn(n,e)}function hOn(n,e){n.c<0||n.b.b<n.c?ir(n.b,e):n.a.tf(e)}function Hwe(n,e){ve((!n.a&&(n.a=new I7(n,n)),n.a),e)}function qwe(n,e){YN(u(e.b,68),n),nu(e.a,new IG(n))}function Uwe(n,e){return jc(e.j.c.length,n.j.c.length)}function Gwe(n,e,t){return qp(),t.Lg(n,u(e.ld(),149))}function as(n){if(n==null)throw T(new rp);return n}function Jn(n){if(n==null)throw T(new rp);return n}function zwe(n){if(n.p!=4)throw T(new Mu);return n.e}function Xwe(n){if(n.p!=3)throw T(new Mu);return n.e}function Vwe(n){if(n.p!=3)throw T(new Mu);return n.j}function Wwe(n){if(n.p!=4)throw T(new Mu);return n.j}function Jwe(n){if(n.p!=6)throw T(new Mu);return n.f}function Qwe(n){if(n.p!=6)throw T(new Mu);return n.k}function FW(n){return!n.b&&(n.b=new DE(new aL)),n.b}function yb(n){return n.c==-2&&gfe(n,Uye(n.g,n.b)),n.c}function S4(n,e){var t;return t=bD("",n),t.n=e,t.i=1,t}function kT(n,e,t,i){ib.call(this,n,t),this.a=e,this.f=i}function _W(n,e,t,i){ib.call(this,n,e),this.d=t,this.a=i}function lOn(n,e){h1e.call(this,zme(Pe(n),Pe(e))),this.a=e}function ii(){vjn.call(this),I0(this.j.c,0),this.a=-1}function aOn(){cnn.call(this,ks,(o4(),Udn)),vOe(this)}function dOn(){cnn.call(this,Pd,(rEn(),ise)),hAe(this)}function bOn(){je.call(this,"DELAUNAY_TRIANGULATION",0)}function Ywe(n){return String.fromCharCode.apply(null,n)}function Ve(n,e,t){return Si(e)?Lr(n,e,t):Vc(n.f,e,t)}function HW(n){return Ln(),n?n.Oe():(jb(),jb(),Oun)}function Zwe(n){return Mo(n,cK),oC(nr(nr(5,n),n/10|0))}function wOn(n,e){return YM(),new fZ(new QCn(n),new JCn(e))}function yT(){yT=R,rQn=new hz(S(C(Id,1),WS,44,0,[]))}function gOn(n){return!n.d&&(n.d=new Q3(n.c.Cc())),n.d}function P4(n){return!n.a&&(n.a=new qjn(n.c.vc())),n.a}function pOn(n){return!n.b&&(n.b=new r4(n.c.ec())),n.b}function xh(n,e){for(;e-- >0;)n=n<<1|(n<0?1:0);return n}function mOn(n,e){var t;return t=new Nc(n),Fn(e.c,t),t}function vOn(n,e){n.u.Hc((zu(),Rl))&&zEe(n,e),h4e(n,e)}function mc(n,e){return x(n)===x(e)||n!=null&&rt(n,e)}function Mr(n,e){return JN(n.a,e)?n.b[u(e,22).g]:null}function nge(){return YE(),S(C(oon,1),G,489,0,[d_])}function ege(){return eM(),S(C($1n,1),G,490,0,[Rq])}function tge(){return tM(),S(C(zce,1),G,558,0,[Kq])}function ige(){return s6(),S(C(tan,1),G,539,0,[Hj])}function jT(n){return!n.n&&(n.n=new q(Sr,n,1,7)),n.n}function mD(n){return!n.c&&(n.c=new q(Qu,n,9,9)),n.c}function qW(n){return!n.c&&(n.c=new Dn(he,n,5,8)),n.c}function rge(n){return!n.b&&(n.b=new Dn(he,n,4,7)),n.b}function H7(n){return n.j.c.length=0,GW(n.c),xae(n.a),n}function I4(n){return n.e==rv&&jfe(n,Y8e(n.g,n.b)),n.e}function q7(n){return n.f==rv&&Mfe(n,q7e(n.g,n.b)),n.f}function We(n,e,t,i){return Hxn(n,e,t,!1),KC(n,i),n}function kOn(n,e){this.b=n,oD.call(this,n,e),BCn(this)}function yOn(n,e){this.b=n,SV.call(this,n,e),FCn(this)}function V6(n){this.d=n,this.a=this.d.b,this.b=this.d.c}function UW(n,e){this.b=n,this.c=e,this.a=new dp(this.b)}function Xi(n,e){return zn(e,n.length),n.charCodeAt(e)}function cge(n,e){AY(n,$(yl(e,"x")),$(yl(e,"y")))}function uge(n,e){AY(n,$(yl(e,"x")),$(yl(e,"y")))}function ut(n,e){return ta(n),new Cn(n,new eQ(e,n.a))}function _r(n,e){return ta(n),new Cn(n,new FJ(e,n.a))}function U0(n,e){return ta(n),new cV(n,new ONn(e,n.a))}function ET(n,e){return ta(n),new uV(n,new ANn(e,n.a))}function oge(n,e){return new GOn(u(Pe(n),50),u(Pe(e),50))}function sge(n,e){return bt(n.d.c+n.d.b/2,e.d.c+e.d.b/2)}function jOn(n,e,t){t.a?tu(n,e.b-n.f/2):eu(n,e.a-n.g/2)}function fge(n,e){return bt(n.g.c+n.g.b/2,e.g.c+e.g.b/2)}function hge(n,e){return Dz(),bt((Jn(n),n),(Jn(e),e))}function lge(n){return n!=null&&t7(jA,n.toLowerCase())}function GW(n){var e;for(e=n.Kc();e.Ob();)e.Pb(),e.Qb()}function Sg(n){var e;return e=n.b,!e&&(n.b=e=new D8n(n)),e}function vD(n){var e;return e=Wme(n),e||null}function EOn(n,e){var t,i;return t=n/e,i=wi(t),t>i&&++i,i}function age(n,e,t){var i;i=u(n.d.Kb(t),159),i&&i.Nb(e)}function dge(n,e,t){wOe(n.a,t),zve(t),xMe(n.b,t),xOe(e,t)}function MT(n,e,t,i){this.a=n,this.c=e,this.b=t,this.d=i}function zW(n,e,t,i){this.c=n,this.b=e,this.a=t,this.d=i}function MOn(n,e,t,i){this.c=n,this.b=e,this.d=t,this.a=i}function Ho(n,e,t,i){this.c=n,this.d=e,this.b=t,this.a=i}function TOn(n,e,t,i){this.a=n,this.d=e,this.c=t,this.b=i}function kD(n,e,t,i){this.a=n,this.e=e,this.d=t,this.c=i}function COn(n,e,t,i){this.a=n,this.c=e,this.d=t,this.b=i}function yD(n,e,t){this.a=vtn,this.d=n,this.b=e,this.c=t}function Ap(n,e,t,i){je.call(this,n,e),this.a=t,this.b=i}function SOn(n,e){this.d=(Jn(n),n),this.a=16449,this.c=e}function POn(n){this.a=new Z,this.e=F(ye,J,53,n,0,2)}function bge(n){n.Ug("No crossing minimization",1),n.Vg()}function IOn(){ec.call(this,"There is no more element.")}function OOn(n,e,t,i){this.a=n,this.b=e,this.c=t,this.d=i}function AOn(n,e,t,i){this.a=n,this.b=e,this.c=t,this.d=i}function Za(n,e,t,i){this.e=n,this.a=e,this.c=t,this.d=i}function LOn(n,e,t,i){this.a=n,this.c=e,this.d=t,this.b=i}function NOn(n,e,t,i){Fo(),LNn.call(this,e,t,i),this.a=n}function DOn(n,e,t,i){Fo(),LNn.call(this,e,t,i),this.a=n}function jD(n,e,t){var i,r;return i=ctn(n),r=e.ti(t,i),r}function al(n){var e,t;return t=(e=new Jd,e),F4(t,n),t}function ED(n){var e,t;return t=(e=new Jd,e),snn(t,n),t}function wge(n,e){var t;return t=ee(n.f,e),_Q(e,t),null}function $On(n){return!n.b&&(n.b=new q(Vt,n,12,3)),n.b}function xOn(n){return x6(n==null||uD(n)&&n.Tm!==Q2),n}function TT(n){return n.n&&(n.e!==Rzn&&n.je(),n.j=null),n}function O4(n){if(eo(n.d),n.d.d!=n.c)throw T(new Ko)}function XW(n){return oe(n.b<n.d.gc()),n.d.Xb(n.c=n.b++)}function vo(n){n.a.a=n.c,n.c.b=n.a,n.a.b=n.c.a=null,n.b=0}function MD(n){this.f=n,this.c=this.f.e,n.f>0&&bFn(this)}function ROn(n,e){this.a=n,bae.call(this,n,u(n.d,15).fd(e))}function gge(n,e){return bt(Pu(n)*ao(n),Pu(e)*ao(e))}function pge(n,e){return bt(Pu(n)*ao(n),Pu(e)*ao(e))}function mge(n){return _b(n)&&on(un(z(n,(cn(),Dd))))}function vge(n,e){return In(n,u(v(e,(cn(),Mv)),17),e)}function kge(n,e){return u(v(n,(W(),C3)),15).Fc(e),e}function VW(n,e){return n.b=e.b,n.c=e.c,n.d=e.d,n.a=e.a,n}function KOn(n,e,t,i){this.b=n,this.c=i,OM.call(this,e,t)}function yge(n,e,t){n.i=0,n.e=0,e!=t&&yRn(n,e,t)}function jge(n,e,t){n.i=0,n.e=0,e!=t&&jRn(n,e,t)}function Ege(n,e,t){return o6(),J5e(u(ee(n.e,e),529),t)}function Lp(n){var e;return e=n.f,e||(n.f=new h4(n,n.c))}function BOn(n,e){return Rg(n.j,e.s,e.c)+Rg(e.e,n.s,n.c)}function FOn(n,e){n.e&&!n.e.a&&(Syn(n.e,e),FOn(n.e,e))}function _On(n,e){n.d&&!n.d.a&&(Syn(n.d,e),_On(n.d,e))}function Mge(n,e){return-bt(Pu(n)*ao(n),Pu(e)*ao(e))}function Tge(n){return u(n.ld(),149).Pg()+":"+Jr(n.md())}function HOn(){tR(this,new uG),this.wb=(G1(),Hn),o4()}function qOn(n){this.b=new Z,hi(this.b,this.b),this.a=n}function WW(n,e){new Mt,this.a=new Tu,this.b=n,this.c=e}function jb(){jb=R,Iun=new xU,YF=new xU,Oun=new Lbn}function Ln(){Ln=R,sr=new Sbn,Wh=new Ibn,hI=new Obn}function JW(){JW=R,BQn=new n0n,_Qn=new lW,FQn=new e0n}function Np(){Np=R,mI=new Z,p_=new de,g_=new Z}function CT(n,e){if(n==null)throw T(new fp(e));return n}function ST(n){return!n.a&&(n.a=new q(Ye,n,10,11)),n.a}function ft(n){return!n.q&&(n.q=new q(Ps,n,11,10)),n.q}function H(n){return!n.s&&(n.s=new q(ku,n,21,17)),n.s}function Cge(n){return Pe(n),OBn(new ie(ce(n.a.Kc(),new En)))}function Sge(n,e){return wo(n),wo(e),Rjn(u(n,22),u(e,22))}function nd(n,e,t){var i,r;i=IV(t),r=new SE(i),bf(n,e,r)}function TD(n,e,t,i,r,c){ck.call(this,n,e,t,i,r,c?-2:-1)}function UOn(n,e,t,i){gX.call(this,e,t),this.b=n,this.a=i}function GOn(n,e){Vfe.call(this,new iD(n)),this.a=n,this.b=e}function QW(n){this.b=n,this.c=n,n.e=null,n.c=null,this.a=1}function Pge(n){Rs();var e;e=u(n.g,10),e.n.a=n.d.c+e.d.b}function A4(){A4=R;var n,e;e=!$8e(),n=new V3,XF=e?new og:n}function CD(n){return Ln(),L(n,59)?new jL(n):new KM(n)}function PT(n){return L(n,16)?new R6(u(n,16)):o0e(n.Kc())}function Ige(n){return new HCn(n,n.e.Rd().gc()*n.c.Rd().gc())}function Oge(n){return new qCn(n,n.e.Rd().gc()*n.c.Rd().gc())}function YW(n){return n&&n.hashCode?n.hashCode():lb(n)}function SD(n,e){return e==null?!!wr(n.f,null):z0e(n.i,e)}function Age(n,e){var t;return t=DX(n.a,e),t&&(e.d=null),t}function zOn(n,e,t){return n.f?n.f.ef(e,t):!1}function U7(n,e,t,i){$t(n.c[e.g],t.g,i),$t(n.c[t.g],e.g,i)}function PD(n,e,t,i){$t(n.c[e.g],e.g,t),$t(n.b[e.g],e.g,i)}function Lge(n,e,t){return $(B(t.a))<=n&&$(B(t.b))>=e}function XOn(n,e){this.g=n,this.d=S(C(Qh,1),b1,10,0,[e])}function VOn(n){this.c=n,this.b=new Ul(u(Pe(new t0n),50))}function WOn(n){this.c=n,this.b=new Ul(u(Pe(new ewn),50))}function JOn(n){this.b=n,this.a=new Ul(u(Pe(new D0n),50))}function QOn(){this.b=new ni,this.d=new Mt,this.e=new YG}function ZW(){this.c=new Ni,this.d=new Ni,this.e=new Ni}function Eb(){this.a=new Tu,this.b=(Mo(3,mw),new Gc(3))}function Wl(n,e){this.e=n,this.a=ki,this.b=Qqn(e),this.c=e}function IT(n){this.c=n.c,this.d=n.d,this.b=n.b,this.a=n.a}function YOn(n,e,t,i,r,c){this.a=n,k$.call(this,e,t,i,r,c)}function ZOn(n,e,t,i,r,c){this.a=n,k$.call(this,e,t,i,r,c)}function V1(n,e,t,i,r,c,s){return new GD(n.e,e,t,i,r,c,s)}function Nge(n,e,t){return t>=0&&Sn(n.substr(t,e.length),e)}function nAn(n,e){return L(e,149)&&Sn(n.b,u(e,149).Pg())}function Dge(n,e){return n.a?e.Gh().Kc():u(e.Gh(),71).Ii()}function eAn(n,e){var t;return t=n.b.Qc(e),WLn(t,n.b.gc()),t}function G7(n,e){if(n==null)throw T(new fp(e));return n}function Hr(n){return n.u||(Zu(n),n.u=new DSn(n,n)),n.u}function ID(n){this.a=(Ln(),L(n,59)?new jL(n):new KM(n))}function au(n){var e;return e=u(Un(n,16),29),e||n.ii()}function OT(n,e){var t;return t=Xa(n.Rm),e==null?t:t+": "+e}function qo(n,e,t){return Ri(e,t,n.length),n.substr(e,t-e)}function tAn(n,e){qM.call(this),hQ(this),this.a=n,this.c=e}function $ge(n){n&&OT(n,n.ie())}function xge(n){HE(),y.setTimeout(function(){throw n},0)}function Rge(){return YC(),S(C(Kun,1),G,436,0,[u_,Run])}function Kge(){return cC(),S(C(Fun,1),G,435,0,[Bun,o_])}function Bge(){return uC(),S(C(bon,1),G,432,0,[m_,vI])}function Fge(){return V4(),S(C(FZn,1),G,517,0,[dj,L_])}function _ge(){return FT(),S(C(Qsn,1),G,429,0,[sH,Jsn])}function Hge(){return wk(),S(C($sn,1),G,428,0,[WI,Dsn])}function qge(){return QT(),S(C(Ssn,1),G,431,0,[Csn,X_])}function Uge(){return dk(),S(C(qhn,1),G,430,0,[qH,UH])}function Gge(){return Z6(),S(C(Aie,1),G,531,0,[e9,n9])}function zge(){return yC(),S(C(Bln,1),G,501,0,[BO,N2])}function Xge(){return fh(),S(C(Kie,1),G,523,0,[m0,y1])}function Vge(){return If(),S(C(Fie,1),G,522,0,[Bd,Xf])}function Wge(){return af(),S(C(ere,1),G,528,0,[zw,Ea])}function Jge(){return sk(),S(C(Ksn,1),G,488,0,[Rsn,QI])}function Qge(){return GT(),S(C(P1n,1),G,491,0,[Dq,S1n])}function Yge(){return D$(),S(C(D1n,1),G,492,0,[L1n,N1n])}function Zge(){return RT(),S(C(Kln,1),G,433,0,[aq,Rln])}function n2e(){return ZT(),S(C(_ln,1),G,434,0,[Fln,mq])}function e2e(){return Tb(),S(C(sre,1),G,465,0,[Ma,O2])}function t2e(){return ik(),S(C(x1n,1),G,438,0,[Bq,JO])}function i2e(){return Tk(),S(C(ran,1),G,437,0,[YO,ian])}function r2e(){return BN(),S(C(dA,1),G,347,0,[vdn,kdn])}function AT(n,e,t,i){return t>=0?n.Uh(e,t,i):n.Ch(null,t,i)}function z7(n){return n.b.b==0?n.a.sf():UN(n.b)}function c2e(n){if(n.p!=5)throw T(new Mu);return Se(n.f)}function u2e(n){if(n.p!=5)throw T(new Mu);return Se(n.k)}function nJ(n){return x(n.a)===x((L$(),EU))&&rAe(n),n.a}function o2e(n,e){n.b=e,n.c>0&&n.b>0&&(n.g=cT(n.c,n.b,n.a))}function s2e(n,e){n.c=e,n.c>0&&n.b>0&&(n.g=cT(n.c,n.b,n.a))}function iAn(n,e){ufe(this,new V(n.a,n.b)),ofe(this,$7(e))}function Mb(){Wfe.call(this,new ap(Q0(12))),BX(!0),this.a=2}function OD(n,e,t){nt(),Wd.call(this,n),this.b=e,this.a=t}function eJ(n,e,t){Fo(),NE.call(this,e),this.a=n,this.b=t}function rAn(n){var e;e=n.c.d.b,n.b=e,n.a=n.c.d,e.a=n.c.d.b=n}function f2e(n){return n.b==0?null:(oe(n.b!=0),Xo(n,n.a.a))}function Dc(n,e){return e==null?Fr(wr(n.f,null)):a6(n.i,e)}function cAn(n,e,t,i,r){return new rR(n,(K4(),t_),e,t,i,r)}function LT(n,e){return zLn(e),Nme(n,F(ye,_e,28,e,15,1),e)}function NT(n,e){return CT(n,"set1"),CT(e,"set2"),new VEn(n,e)}function h2e(n,e){var t=oun[n.charCodeAt(0)];return t??n}function uAn(n,e){var t,i;return t=e,i=new LA,NGn(n,t,i),i.d}function AD(n,e,t,i){var r;r=new RSn,e.a[t.g]=r,Ip(n.b,i,r)}function l2e(n,e){var t;return t=Ome(n.f,e),tt(HM(t),n.f.d)}function X7(n){var e;_me(n.a),dCn(n.a),e=new OE(n.a),_Y(e)}function a2e(n,e){_qn(n,!0),nu(n.e.Rf(),new NV(n,!0,e))}function d2e(n,e){return Np(),n==St(Fh(e))||n==St(ra(e))}function b2e(n,e){return kl(),u(v(e,(lc(),Ph)),17).a==n}function wi(n){return Math.max(Math.min(n,et),-2147483648)|0}function oAn(n){this.a=u(Pe(n),277),this.b=(Ln(),new zX(n))}function sAn(n,e,t){this.i=new Z,this.b=n,this.g=e,this.a=t}function tJ(n,e,t){this.a=new Z,this.e=n,this.f=e,this.c=t}function DT(n,e,t){this.c=new Z,this.e=n,this.f=e,this.b=t}function fAn(n){qM.call(this),hQ(this),this.a=n,this.c=!0}function w2e(n){function e(){}return e.prototype=n||{},new e}function g2e(n){if(n.Ae())return null;var e=n.n;return rI[e]}function V7(n){return n.Db>>16!=3?null:u(n.Cb,27)}function Pf(n){return n.Db>>16!=9?null:u(n.Cb,27)}function hAn(n){return n.Db>>16!=6?null:u(n.Cb,74)}function Tb(){Tb=R,Ma=new rX(s3,0),O2=new rX(f3,1)}function fh(){fh=R,m0=new eX(f3,0),y1=new eX(s3,1)}function If(){If=R,Bd=new tX(_K,0),Xf=new tX("UP",1)}function lAn(){lAn=R,oQn=Me((BE(),S(C(uQn,1),G,549,0,[GF])))}function aAn(n){var e;return e=new zE(Q0(n.length)),nY(e,n),e}function dAn(n,e){return n.b+=e.b,n.c+=e.c,n.d+=e.d,n.a+=e.a,n}function p2e(n,e){return Zxn(n,e)?(W$n(n),!0):!1}function dl(n,e){if(e==null)throw T(new rp);return R8e(n,e)}function W7(n,e){var t;t=n.q.getHours(),n.q.setDate(e),H5(n,t)}function iJ(n,e,t){var i;i=n.Ih(e),i>=0?n.bi(i,t):een(n,e,t)}function bAn(n,e){var t;return t=n.Ih(e),t>=0?n.Wh(t):hR(n,e)}function wAn(n,e){var t;for(Pe(e),t=n.a;t;t=t.c)e.Yd(t.g,t.i)}function LD(n,e,t){var i;i=vRn(n,e,t),n.b=new EC(i.c.length)}function Pg(n,e,t){$T(),n&&Ve(kU,n,e),n&&Ve(hE,n,t)}function m2e(n,e){return VM(),_n(),u(e.a,17).a<n}function v2e(n,e){return VM(),_n(),u(e.b,17).a<n}function ND(n,e){return y.Math.abs(n)<y.Math.abs(e)?n:e}function k2e(n){return!n.a&&(n.a=new q(Ye,n,10,11)),n.a.i>0}function rJ(n){var e;return e=n.d,e=n.bj(n.f),ve(n,e),e.Ob()}function gAn(n,e){var t;return t=new sW(e),_Fn(t,n),new _u(t)}function y2e(n){if(n.p!=0)throw T(new Mu);return M6(n.f,0)}function j2e(n){if(n.p!=0)throw T(new Mu);return M6(n.k,0)}function pAn(n){return n.Db>>16!=7?null:u(n.Cb,241)}function L4(n){return n.Db>>16!=6?null:u(n.Cb,241)}function mAn(n){return n.Db>>16!=7?null:u(n.Cb,167)}function St(n){return n.Db>>16!=11?null:u(n.Cb,27)}function G0(n){return n.Db>>16!=17?null:u(n.Cb,29)}function vAn(n){return n.Db>>16!=3?null:u(n.Cb,155)}function cJ(n){var e;return ta(n),e=new ni,ut(n,new T9n(e))}function kAn(n,e){var t=n.a=n.a||[];return t[e]||(t[e]=n.ve(e))}function E2e(n,e){var t;t=n.q.getHours(),n.q.setMonth(e),H5(n,t)}function yAn(n,e){xM(this),this.f=e,this.g=n,TT(this),this.je()}function jAn(n,e){this.a=n,this.c=Fi(this.a),this.b=new IT(e)}function EAn(n,e,t){this.a=e,this.c=n,this.b=(Pe(t),new _u(t))}function MAn(n,e,t){this.a=e,this.c=n,this.b=(Pe(t),new _u(t))}function TAn(n){this.a=n,this.b=F(Pie,J,2043,n.e.length,0,2)}function CAn(){this.a=new rh,this.e=new ni,this.g=0,this.i=0}function $T(){$T=R,kU=new de,hE=new de,ple(TQn,new wvn)}function SAn(){SAn=R,aie=Iu(new ii,(Vi(),zr),(tr(),bj))}function uJ(){uJ=R,die=Iu(new ii,(Vi(),zr),(tr(),bj))}function PAn(){PAn=R,wie=Iu(new ii,(Vi(),zr),(tr(),bj))}function IAn(){IAn=R,Nie=Fe(new ii,(Vi(),zr),(tr(),N8))}function ko(){ko=R,xie=Fe(new ii,(Vi(),zr),(tr(),N8))}function OAn(){OAn=R,Rie=Fe(new ii,(Vi(),zr),(tr(),N8))}function DD(){DD=R,Hie=Fe(new ii,(Vi(),zr),(tr(),N8))}function W6(n,e,t,i,r,c){return new ml(n.e,e,n.Lj(),t,i,r,c)}function Lr(n,e,t){return e==null?Vc(n.f,null,t):$b(n.i,e,t)}function Zi(n,e){n.c&&du(n.c.g,n),n.c=e,n.c&&nn(n.c.g,n)}function $i(n,e){n.c&&du(n.c.a,n),n.c=e,n.c&&nn(n.c.a,n)}function ic(n,e){n.i&&du(n.i.j,n),n.i=e,n.i&&nn(n.i.j,n)}function Oi(n,e){n.d&&du(n.d.e,n),n.d=e,n.d&&nn(n.d.e,n)}function $D(n,e){n.a&&du(n.a.k,n),n.a=e,n.a&&nn(n.a.k,n)}function xD(n,e){n.b&&du(n.b.f,n),n.b=e,n.b&&nn(n.b.f,n)}function AAn(n,e){$we(n,n.b,n.c),u(n.b.b,68),e&&u(e.b,68).b}function M2e(n,e){return bt(u(n.c,65).c.e.b,u(e.c,65).c.e.b)}function T2e(n,e){return bt(u(n.c,65).c.e.a,u(e.c,65).c.e.a)}function C2e(n){return Y$(),_n(),u(n.a,86).d.e!=0}function xT(n,e){L(n.Cb,184)&&(u(n.Cb,184).tb=null),zc(n,e)}function RD(n,e){L(n.Cb,90)&&hw(Zu(u(n.Cb,90)),4),zc(n,e)}function S2e(n,e){LY(n,e),L(n.Cb,90)&&hw(Zu(u(n.Cb,90)),2)}function P2e(n,e){var t,i;t=e.c,i=t!=null,i&&Op(n,new q0(e.c))}function LAn(n){var e,t;return t=(o4(),e=new Jd,e),F4(t,n),t}function NAn(n){var e,t;return t=(o4(),e=new Jd,e),F4(t,n),t}function DAn(n){for(var e;;)if(e=n.Pb(),!n.Ob())return e}function I2e(n,e,t){return nn(n.a,(yT(),Dx(e,t),new ib(e,t))),n}function $c(n,e){return dr(),a$(e)?new eT(e,n):new k7(e,n)}function J7(n){return dh(),Ec(n,0)>=0?ia(n):U6(ia(n1(n)))}function O2e(n){var e;return e=u(ZM(n.b),9),new _o(n.a,e,n.c)}function $An(n,e){var t;return t=u(tw(Lp(n.a),e),16),t?t.gc():0}function xAn(n,e,t){var i;oKn(e,t,n.c.length),i=t-e,Pz(n.c,e,i)}function Jl(n,e,t){oKn(e,t,n.gc()),this.c=n,this.a=e,this.b=t-e}function Dp(n){this.c=new Mt,this.b=n.b,this.d=n.c,this.a=n.a}function KD(n){this.a=y.Math.cos(n),this.b=y.Math.sin(n)}function ed(n,e,t,i){this.c=n,this.d=i,$D(this,e),xD(this,t)}function oJ(n,e){Xfe.call(this,new ap(Q0(n))),Mo(e,Azn),this.a=e}function RAn(n,e,t){return new rR(n,(K4(),e_),null,!1,e,t)}function KAn(n,e,t){return new rR(n,(K4(),i_),e,t,null,!1)}function A2e(){return Gu(),S(C(xr,1),G,108,0,[xun,Yr,Sw])}function L2e(){return bu(),S(C(JQn,1),G,472,0,[kf,ma,Xs])}function N2e(){return Uu(),S(C(VQn,1),G,471,0,[Th,pa,zs])}function D2e(){return wf(),S(C(Pw,1),G,237,0,[bc,Wc,wc])}function $2e(){return t5(),S(C(Ion,1),G,391,0,[j_,y_,E_])}function x2e(){return Lb(),S(C(K_,1),G,372,0,[u0,va,c0])}function R2e(){return c5(),S(C(Isn,1),G,322,0,[$8,pj,Psn])}function K2e(){return bC(),S(C(Asn,1),G,351,0,[Osn,VI,V_])}function B2e(){return hd(),S(C(pne,1),G,460,0,[Q_,mv,m2])}function F2e(){return Z4(),S(C(oH,1),G,299,0,[cH,uH,mj])}function _2e(){return vl(),S(C(Tne,1),G,311,0,[vj,k2,E3])}function H2e(){return w5(),S(C(Nhn,1),G,390,0,[xH,Lhn,TO])}function q2e(){return gr(),S(C(cie,1),G,463,0,[Q8,Vu,Jc])}function U2e(){return PC(),S(C(zhn,1),G,387,0,[Uhn,GH,Ghn])}function G2e(){return a5(),S(C(Xhn,1),G,349,0,[XH,zH,Oj])}function z2e(){return om(),S(C(Whn,1),G,350,0,[VH,Vhn,Y8])}function X2e(){return dC(),S(C(Yhn,1),G,352,0,[Qhn,WH,Jhn])}function V2e(){return LC(),S(C(Zhn,1),G,388,0,[JH,Av,Gw])}function W2e(){return Ab(),S(C(Cie,1),G,464,0,[Aj,Z8,IO])}function Of(n){return cc(S(C(Ei,1),J,8,0,[n.i.n,n.n,n.a]))}function J2e(){return d5(),S(C(gln,1),G,392,0,[wln,ZH,Nj])}function BAn(){BAn=R,Rre=Iu(new ii,(Qp(),i9),(F5(),uln))}function RT(){RT=R,aq=new cX("DFS",0),Rln=new cX("BFS",1)}function FAn(n,e,t){var i;i=new E3n,i.b=e,i.a=t,++e.b,nn(n.d,i)}function Q2e(n,e,t){var i;i=new rr(t.d),tt(i,n),AY(e,i.a,i.b)}function Y2e(n,e){NCn(n,Se(vi(wb(e,24),YS)),Se(vi(e,YS)))}function z0(n,e){if(n<0||n>e)throw T(new Or(Ptn+n+Itn+e))}function Nn(n,e){if(n<0||n>=e)throw T(new Or(Ptn+n+Itn+e))}function zn(n,e){if(n<0||n>=e)throw T(new wz(Ptn+n+Itn+e))}function On(n,e){this.b=(Jn(n),n),this.a=e&vw?e:e|64|wh}function sJ(n){var e;return ta(n),e=(jb(),jb(),YF),fC(n,e)}function Z2e(n,e,t){var i;return i=G5(n,e,!1),i.b<=e&&i.a<=t}function npe(){return nC(),S(C(A1n,1),G,439,0,[$q,O1n,I1n])}function epe(){return _C(),S(C(a1n,1),G,394,0,[l1n,Oq,h1n])}function tpe(){return XC(),S(C(f1n,1),G,445,0,[Kj,qO,Mq])}function ipe(){return rS(),S(C(bce,1),G,456,0,[Tq,Sq,Cq])}function rpe(){return Ik(),S(C(Uln,1),G,393,0,[FO,Hln,qln])}function cpe(){return SC(),S(C(s1n,1),G,300,0,[Eq,o1n,u1n])}function upe(){return jl(),S(C(ldn,1),G,346,0,[uA,T1,E9])}function ope(){return $k(),S(C(xq,1),G,444,0,[XO,VO,WO])}function spe(){return $f(),S(C(Zan,1),G,278,0,[Rv,Jw,Kv])}function fpe(){return Gp(),S(C(mdn,1),G,280,0,[pdn,Yw,aA])}function Cb(n){return Pe(n),L(n,16)?new _u(u(n,16)):y4(n.Kc())}function fJ(n,e){return n&&n.equals?n.equals(e):x(n)===x(e)}function vi(n,e){return Y1(ewe(Vr(n)?ds(n):n,Vr(e)?ds(e):e))}function lf(n,e){return Y1(twe(Vr(n)?ds(n):n,Vr(e)?ds(e):e))}function BD(n,e){return Y1(iwe(Vr(n)?ds(n):n,Vr(e)?ds(e):e))}function hpe(n,e){var t;return t=(Jn(n),n).g,iV(!!t),Jn(e),t(e)}function _An(n,e){var t,i;return i=M4(n,e),t=n.a.fd(i),new zEn(n,t)}function lpe(n){return n.Db>>16!=6?null:u(dR(n),241)}function ape(n){if(n.p!=2)throw T(new Mu);return Se(n.f)&ui}function dpe(n){if(n.p!=2)throw T(new Mu);return Se(n.k)&ui}function E(n){return oe(n.a<n.c.c.length),n.b=n.a++,n.c.c[n.b]}function bpe(n,e){n.b=n.b|e.b,n.c=n.c|e.c,n.d=n.d|e.d,n.a=n.a|e.a}function wpe(n,e){var t;t=$(B(n.a.of((He(),iA)))),tzn(n,e,t)}function HAn(n,e){Ya.call(this,1,2,S(C(ye,1),_e,28,15,[n,e]))}function qAn(n,e,t){Wd.call(this,25),this.b=n,this.a=e,this.c=t}function yo(n){nt(),Wd.call(this,n),this.c=!1,this.a=!1}function gpe(n){return n.a==($4(),CA)&&mfe(n,OSe(n.g,n.b)),n.a}function $p(n){return n.d==($4(),CA)&&kfe(n,IIe(n.g,n.b)),n.d}function ppe(n,e){return i5(),n.c==e.c?bt(e.d,n.d):bt(e.c,n.c)}function mpe(n,e){return i5(),n.c==e.c?bt(e.d,n.d):bt(n.c,e.c)}function vpe(n,e){return i5(),n.c==e.c?bt(n.d,e.d):bt(n.c,e.c)}function kpe(n,e){return i5(),n.c==e.c?bt(n.d,e.d):bt(e.c,n.c)}function hJ(n,e){return aIn(n.a,e)?ZV(n.b,u(e,22).g,null):null}function ype(n){return nr(Ks(vc(to(n,32)),32),vc(to(n,32)))}function lJ(n){return n.b==null||n.b.length==0?"n_"+n.a:"n_"+n.b}function td(n){return n.c==null||n.c.length==0?"n_"+n.g:"n_"+n.c}function UAn(n,e){var t;for(t=n+"";t.length<e;)t="0"+t;return t}function jpe(n,e){var t;t=u(ee(n.g,e),60),nu(e.d,new KMn(n,t))}function Epe(n,e){var t,i;return t=XBn(n),i=XBn(e),t<i?-1:t>i?1:0}function GAn(n,e){var t,i;return t=s$(e),i=t,u(ee(n.c,i),17).a}function FD(n,e,t){var i;i=n.d[e.p],n.d[e.p]=n.d[t.p],n.d[t.p]=i}function Mpe(n,e,t){var i;n.n&&e&&t&&(i=new uvn,nn(n.e,i))}function _D(n,e){if(fi(n.a,e),e.d)throw T(new ec(nXn));e.d=n}function aJ(n,e){this.a=new Z,this.d=new Z,this.f=n,this.c=e}function zAn(){this.c=new ICn,this.a=new $Nn,this.b=new Xyn,lMn()}function XAn(){qp(),this.b=new de,this.a=new de,this.c=new Z}function VAn(n,e,t){this.d=n,this.j=e,this.e=t,this.o=-1,this.p=3}function WAn(n,e,t){this.d=n,this.k=e,this.f=t,this.o=-1,this.p=5}function JAn(n,e,t,i,r,c){aQ.call(this,n,e,t,i,r),c&&(this.o=-2)}function QAn(n,e,t,i,r,c){dQ.call(this,n,e,t,i,r),c&&(this.o=-2)}function YAn(n,e,t,i,r,c){OJ.call(this,n,e,t,i,r),c&&(this.o=-2)}function ZAn(n,e,t,i,r,c){gQ.call(this,n,e,t,i,r),c&&(this.o=-2)}function nLn(n,e,t,i,r,c){AJ.call(this,n,e,t,i,r),c&&(this.o=-2)}function eLn(n,e,t,i,r,c){bQ.call(this,n,e,t,i,r),c&&(this.o=-2)}function tLn(n,e,t,i,r,c){wQ.call(this,n,e,t,i,r),c&&(this.o=-2)}function iLn(n,e,t,i,r,c){LJ.call(this,n,e,t,i,r),c&&(this.o=-2)}function rLn(n,e,t,i){NE.call(this,t),this.b=n,this.c=e,this.d=i}function cLn(n,e){this.f=n,this.a=($4(),TA),this.c=TA,this.b=e}function uLn(n,e){this.g=n,this.d=($4(),CA),this.a=CA,this.b=e}function dJ(n,e){!n.c&&(n.c=new Bt(n,0)),HS(n.c,(at(),$9),e)}function Tpe(n,e){return oTe(n,e,L(e,102)&&(u(e,19).Bb&hr)!=0)}function Cpe(n,e){return FIn(vc(n.q.getTime()),vc(e.q.getTime()))}function oLn(n){return XN(n.e.Rd().gc()*n.c.Rd().gc(),16,new A8n(n))}function Spe(n){return!!n.u&&Pc(n.u.a).i!=0&&!(n.n&&Ox(n.n))}function Ppe(n){return!!n.a&&no(n.a.a).i!=0&&!(n.b&&Ax(n.b))}function bJ(n,e){return e==0?!!n.o&&n.o.f!=0:Mx(n,e)}function Ipe(n,e,t){var i;return i=u(n.Zb().xc(e),16),!!i&&i.Hc(t)}function sLn(n,e,t){var i;return i=u(n.Zb().xc(e),16),!!i&&i.Mc(t)}function fLn(n,e){var t;return t=1-e,n.a[t]=jC(n.a[t],t),jC(n,e)}function hLn(n,e){var t,i;return i=vi(n,mr),t=Ks(e,32),lf(t,i)}function lLn(n,e,t){var i;i=(Pe(n),new _u(n)),A7e(new EAn(i,e,t))}function Q7(n,e,t){var i;i=(Pe(n),new _u(n)),L7e(new MAn(i,e,t))}function fc(n,e,t,i,r,c){return Hxn(n,e,t,c),EY(n,i),MY(n,r),n}function aLn(n,e,t,i){return n.a+=""+qo(e==null?gu:Jr(e),t,i),n}function xi(n,e){this.a=n,zv.call(this,n),z0(e,n.gc()),this.b=e}function dLn(n){this.a=F(ki,Kn,1,JQ(y.Math.max(8,n))<<1,5,1)}function Y7(n){return u(Rf(n,F(Qh,b1,10,n.c.length,0,1)),199)}function hh(n){return u(Rf(n,F(O_,rB,18,n.c.length,0,1)),483)}function bLn(n){return n.a?n.e.length==0?n.a.a:n.a.a+(""+n.e):n.c}function J6(n){for(;n.d>0&&n.a[--n.d]==0;);n.a[n.d++]==0&&(n.e=0)}function wLn(n){return oe(n.b.b!=n.d.a),n.c=n.b=n.b.b,--n.a,n.c.c}function Ope(n,e,t){n.a=e,n.c=t,n.b.a.$b(),vo(n.d),I0(n.e.a.c,0)}function gLn(n,e){var t;n.e=new cz,t=aw(e),Yt(t,n.c),Oqn(n,t,0)}function ri(n,e,t,i){var r;r=new ZU,r.a=e,r.b=t,r.c=i,Re(n.a,r)}function Q(n,e,t,i){var r;r=new ZU,r.a=e,r.b=t,r.c=i,Re(n.b,r)}function pLn(n,e,t){if(n<0||e<n||e>t)throw T(new Or(qje(n,e,t)))}function Z7(n,e){if(n<0||n>=e)throw T(new Or(kEe(n,e)));return n}function Ape(n){if(!("stack"in n))try{throw n}catch{}return n}function Ig(n){return o6(),L(n.g,10)?u(n.g,10):null}function Lpe(n){return Sg(n).dc()?!1:(e1e(n,new Ir),!0)}function id(n){var e;return Vr(n)?(e=n,e==-0?0:e):X4e(n)}function mLn(n,e){return L(e,44)?xx(n.a,u(e,44)):!1}function vLn(n,e){return L(e,44)?xx(n.a,u(e,44)):!1}function kLn(n,e){return L(e,44)?xx(n.a,u(e,44)):!1}function wJ(n){var e;return X1(n),e=new Nbn,lg(n.a,new j9n(e)),e}function gJ(){var n,e,t;return e=(t=(n=new Jd,n),t),nn(nbn,e),e}function KT(n){var e;return X1(n),e=new Dbn,lg(n.a,new E9n(e)),e}function Npe(n,e){return n.a<=n.b?(e.Dd(n.a++),!0):!1}function yLn(n){I$.call(this,n,(K4(),n_),null,!1,null,!1)}function jLn(){jLn=R,PYn=Me((YE(),S(C(oon,1),G,489,0,[d_])))}function ELn(){ELn=R,eln=wOn(Y(1),Y(4)),nln=wOn(Y(1),Y(2))}function Dpe(n,e){return new _N(e,N6(Fi(e.e),n,n),(_n(),!0))}function BT(n){return new Gc((Mo(n,cK),oC(nr(nr(5,n),n/10|0))))}function $pe(n){return XN(n.e.Rd().gc()*n.c.Rd().gc(),273,new O8n(n))}function MLn(n){return u(Rf(n,F(RZn,LXn,12,n.c.length,0,1)),2042)}function xpe(n){return ko(),!fr(n)&&!(!fr(n)&&n.c.i.c==n.d.i.c)}function Rpe(n,e){return _p(),u(v(e,(lc(),A2)),17).a>=n.gc()}function Q6(n,e){vNe(e,n),WV(n.d),WV(u(v(n,(cn(),mO)),214))}function HD(n,e){kNe(e,n),JV(n.d),JV(u(v(n,(cn(),mO)),214))}function Kpe(n,e,t){n.d&&du(n.d.e,n),n.d=e,n.d&&bb(n.d.e,t,n)}function Bpe(n,e,t){return t.f.c.length>0?MW(n.a,e,t):MW(n.b,e,t)}function Fpe(n,e,t){var i;i=i9e();try{return Sae(n,e,t)}finally{L3e(i)}}function Sb(n,e){var t,i;return t=dl(n,e),i=null,t&&(i=t.pe()),i}function Y6(n,e){var t,i;return t=dl(n,e),i=null,t&&(i=t.se()),i}function N4(n,e){var t,i;return t=J0(n,e),i=null,t&&(i=t.se()),i}function bl(n,e){var t,i;return t=dl(n,e),i=null,t&&(i=wnn(t)),i}function _pe(n,e,t){var i;return i=wm(t),RS(n.g,i,e),RS(n.i,e,t),e}function pJ(n,e,t){this.d=new $7n(this),this.e=n,this.i=e,this.f=t}function TLn(n,e,t,i){this.e=null,this.c=n,this.d=e,this.a=t,this.b=i}function CLn(n,e,t,i){ECn(this),this.c=n,this.e=e,this.f=t,this.b=i}function mJ(n,e,t,i){this.d=n,this.n=e,this.g=t,this.o=i,this.p=-1}function SLn(n,e,t,i){return L(t,59)?new iSn(n,e,t,i):new mW(n,e,t,i)}function D4(n){return L(n,16)?u(n,16).dc():!n.Kc().Ob()}function PLn(n){if(n.e.g!=n.b)throw T(new Ko);return!!n.c&&n.d>0}function be(n){return oe(n.b!=n.d.c),n.c=n.b,n.b=n.b.a,++n.a,n.c.c}function vJ(n,e){Jn(e),$t(n.a,n.c,e),n.c=n.c+1&n.a.length-1,JBn(n)}function W1(n,e){Jn(e),n.b=n.b-1&n.a.length-1,$t(n.a,n.b,e),JBn(n)}function ILn(n){var e;e=n.Gh(),this.a=L(e,71)?u(e,71).Ii():e.Kc()}function Hpe(n){return new On(Sme(u(n.a.md(),16).gc(),n.a.ld()),16)}function OLn(){OLn=R,Gce=Me((eM(),S(C($1n,1),G,490,0,[Rq])))}function ALn(){ALn=R,Xce=Me((tM(),S(C(zce,1),G,558,0,[Kq])))}function LLn(){LLn=R,lue=Me((s6(),S(C(tan,1),G,539,0,[Hj])))}function qpe(){return dd(),S(C(Non,1),G,389,0,[Aw,Lon,P_,I_])}function Upe(){return K4(),S(C(lI,1),G,304,0,[n_,e_,t_,i_])}function Gpe(){return Vp(),S(C(EYn,1),G,332,0,[uj,cj,oj,sj])}function zpe(){return C5(),S(C(CYn,1),G,406,0,[fj,wI,gI,hj])}function Xpe(){return Db(),S(C(yYn,1),G,417,0,[rj,ij,l_,a_])}function Vpe(){return nm(),S(C(TZn,1),G,416,0,[r0,Ow,Iw,d2])}function Wpe(){return xf(),S(C(ene,1),G,421,0,[j3,lv,av,R_])}function Jpe(){return AC(),S(C(UZn,1),G,371,0,[x_,HI,qI,wj])}function Qpe(){return cw(),S(C(KH,1),G,203,0,[CO,RH,I2,P2])}function Ype(){return lh(),S(C(Hhn,1),G,284,0,[k1,_hn,_H,HH])}function Zpe(n){var e;return n.j==(en(),ae)&&(e=mHn(n),Su(e,Zn))}function n3e(n,e){var t;t=e.a,Zi(t,e.c.d),Oi(t,e.d.d),nw(t.a,n.n)}function kJ(n,e){var t;return t=u(Df(n.b,e),67),!t&&(t=new Mt),t}function xp(n){return o6(),L(n.g,154)?u(n.g,154):null}function e3e(n){n.a=null,n.e=null,I0(n.b.c,0),I0(n.f.c,0),n.c=null}function FT(){FT=R,sH=new Yz(qm,0),Jsn=new Yz("TOP_LEFT",1)}function Z6(){Z6=R,e9=new nX("UPPER",0),n9=new nX("LOWER",1)}function t3e(n,e){return vp(new V(e.e.a+e.f.a/2,e.e.b+e.f.b/2),n)}function NLn(n,e){return u(ho(_0(u(ot(n.k,e),15).Oc(),w2)),113)}function DLn(n,e){return u(ho(Sp(u(ot(n.k,e),15).Oc(),w2)),113)}function i3e(){return Qp(),S(C(rln,1),G,405,0,[NO,t9,i9,r9])}function r3e(){return b5(),S(C(xln,1),G,353,0,[lq,KO,hq,fq])}function c3e(){return sS(),S(C(c1n,1),G,354,0,[jq,i1n,r1n,t1n])}function u3e(){return go(),S(C(P9,1),G,386,0,[rE,Gd,iE,Qw])}function o3e(){return Co(),S(C(Yue,1),G,291,0,[nE,nl,Sa,Zj])}function s3e(){return El(),S(C(lU,1),G,223,0,[hU,Yj,Bv,R3])}function f3e(){return qC(),S(C(Mdn,1),G,320,0,[bU,ydn,Edn,jdn])}function h3e(){return NC(),S(C(woe,1),G,415,0,[wU,Cdn,Tdn,Sdn])}function l3e(n){return $T(),Zc(kU,n)?u(ee(kU,n),341).Qg():null}function Uo(n,e,t){return e<0?hR(n,t):u(t,69).wk().Bk(n,n.hi(),e)}function a3e(n,e,t){var i;return i=wm(t),RS(n.j,i,e),Ve(n.k,e,t),e}function d3e(n,e,t){var i;return i=wm(t),RS(n.d,i,e),Ve(n.e,e,t),e}function $Ln(n){var e,t;return e=(K1(),t=new HA,t),n&&SS(e,n),e}function yJ(n){var e;return e=n.aj(n.i),n.i>0&&Oc(n.g,0,e,0,n.i),e}function xLn(n,e){var t;for(t=n.j.c.length;t<e;t++)nn(n.j,n.Ng())}function RLn(n,e,t,i){var r;return r=i[e.g][t.g],$(B(v(n.a,r)))}function KLn(n,e){iM();var t;return t=u(ee(yA,n),57),!t||t.fk(e)}function b3e(n){if(n.p!=1)throw T(new Mu);return Se(n.f)<<24>>24}function w3e(n){if(n.p!=1)throw T(new Mu);return Se(n.k)<<24>>24}function g3e(n){if(n.p!=7)throw T(new Mu);return Se(n.k)<<16>>16}function p3e(n){if(n.p!=7)throw T(new Mu);return Se(n.f)<<16>>16}function Og(n,e){return e.e==0||n.e==0?P8:(Sm(),vR(n,e))}function BLn(n,e){return x(e)===x(n)?"(this Map)":e==null?gu:Jr(e)}function m3e(n,e,t){return tD(B(Fr(wr(n.f,e))),B(Fr(wr(n.f,t))))}function v3e(n,e,t){var i;i=u(ee(n.g,t),60),nn(n.a.c,new bi(e,i))}function FLn(n,e,t){n.i=0,n.e=0,e!=t&&(jRn(n,e,t),yRn(n,e,t))}function k3e(n,e,t,i,r){var c;c=yTe(r,t,i),nn(e,dEe(r,c)),rje(n,r,e)}function jJ(n,e,t,i,r){this.i=n,this.a=e,this.e=t,this.j=i,this.f=r}function _Ln(n,e){ZW.call(this),this.a=n,this.b=e,nn(this.a.b,this)}function HLn(n){this.b=new de,this.c=new de,this.d=new de,this.a=n}function qLn(n,e){var t;return t=new fg,n.Gd(t),t.a+="..",e.Hd(t),t.a}function ULn(n,e){var t;for(t=e;t;)ab(n,t.i,t.j),t=St(t);return n}function GLn(n,e,t){var i;return i=wm(t),Ve(n.b,i,e),Ve(n.c,e,t),e}function wl(n){var e;for(e=0;n.Ob();)n.Pb(),e=nr(e,1);return oC(e)}function Rh(n,e){dr();var t;return t=u(n,69).vk(),kje(t,e),t.xl(e)}function y3e(n,e,t){if(t){var i=t.oe();n.a[e]=i(t)}else delete n.a[e]}function EJ(n,e){var t;t=n.q.getHours(),n.q.setFullYear(e+ha),H5(n,t)}function j3e(n,e){return u(e==null?Fr(wr(n.f,null)):a6(n.i,e),288)}function MJ(n,e){return n==(Vn(),zt)&&e==zt?4:n==zt||e==zt?8:32}function _T(n,e,t){return BS(n,e,t,L(e,102)&&(u(e,19).Bb&hr)!=0)}function E3e(n,e,t){return Am(n,e,t,L(e,102)&&(u(e,19).Bb&hr)!=0)}function M3e(n,e,t){return bTe(n,e,t,L(e,102)&&(u(e,19).Bb&hr)!=0)}function TJ(n){n.b!=n.c&&(n.a=F(ki,Kn,1,8,5,1),n.b=0,n.c=0)}function n5(n){return oe(n.a<n.c.a.length),n.b=n.a,i$n(n),n.c.b[n.b]}function Pc(n){return n.n||(Zu(n),n.n=new mIn(n,jr,n),Hr(n)),n.n}function zLn(n){if(n<0)throw T(new Bjn("Negative array size: "+n))}function qD(n,e,t){if(t){var i=t.oe();t=i(t)}else t=void 0;n.a[e]=t}function XLn(n,e){cm();var t;return t=n.j.g-e.j.g,t!=0?t:0}function T3e(n,e){return fl(),ve(H(n.a),e)}function C3e(n,e){return fl(),ve(H(n.a),e)}function gl(n,e){dh(),Ya.call(this,n,1,S(C(ye,1),_e,28,15,[e]))}function X0(n,e){nt(),Wd.call(this,n),this.a=e,this.c=-1,this.b=-1}function V0(n,e,t,i){VAn.call(this,1,t,i),this.c=n,this.b=e}function UD(n,e,t,i){WAn.call(this,1,t,i),this.c=n,this.b=e}function GD(n,e,t,i,r,c,s){k$.call(this,e,i,r,c,s),this.c=n,this.a=t}function rd(n,e,t){this.e=n,this.a=ki,this.b=Qqn(e),this.c=e,this.d=t}function zD(n){this.e=n,this.c=this.e.a,this.b=this.e.g,this.d=this.e.i}function CJ(n){this.d=n,this.b=this.d.a.entries(),this.a=this.b.next()}function VLn(n){this.c=n,this.a=u(gs(n),156),this.b=this.a.jk().wi()}function Ql(){de.call(this),sSn(this),this.d.b=this.d,this.d.a=this.d}function xt(n,e,t,i){var r;r=new AA,r.c=e,r.b=t,r.a=i,i.b=t.a=r,++n.b}function S3e(n,e){var t;return t=e!=null?Dc(n,e):Fr(wr(n.f,e)),IM(t)}function P3e(n,e){var t;return t=e!=null?Dc(n,e):Fr(wr(n.f,e)),IM(t)}function Wr(n,e){var t;return e.b.Kb(GDn(n,e.c.Xe(),(t=new S9n(e),t)))}function I3e(n,e){var t;return zLn(e),t=n.slice(0,e),t.length=e,o$(t,n)}function WLn(n,e){var t;for(t=0;t<e;++t)$t(n,t,new jG(u(n[t],44)))}function O3e(n,e){var t;for(t=n.d-1;t>=0&&n.a[t]===e[t];t--);return t<0}function HT(n){var e;return n?new sW(n):(e=new rh,S$(e,n),e)}function A3e(n,e){var t,i;i=!1;do t=lRn(n,e),i=i|t;while(t);return i}function L3e(n){n&&rme((lz(),sun)),--cI,n&&uI!=-1&&(Ele(uI),uI=-1)}function qT(n){ZZ(),NCn(this,Se(vi(wb(n,24),YS)),Se(vi(n,YS)))}function JLn(){JLn=R,HQn=Me((YC(),S(C(Kun,1),G,436,0,[u_,Run])))}function QLn(){QLn=R,qQn=Me((cC(),S(C(Fun,1),G,435,0,[Bun,o_])))}function YLn(){YLn=R,GYn=Me((uC(),S(C(bon,1),G,432,0,[m_,vI])))}function ZLn(){ZLn=R,_Zn=Me((V4(),S(C(FZn,1),G,517,0,[dj,L_])))}function nNn(){nNn=R,Sne=Me((FT(),S(C(Qsn,1),G,429,0,[sH,Jsn])))}function eNn(){eNn=R,gne=Me((wk(),S(C($sn,1),G,428,0,[WI,Dsn])))}function tNn(){tNn=R,kne=Me((sk(),S(C(Ksn,1),G,488,0,[Rsn,QI])))}function iNn(){iNn=R,rie=Me((dk(),S(C(qhn,1),G,430,0,[qH,UH])))}function rNn(){rNn=R,Lie=Me((Z6(),S(C(Aie,1),G,531,0,[e9,n9])))}function cNn(){cNn=R,ane=Me((QT(),S(C(Ssn,1),G,431,0,[Csn,X_])))}function uNn(){uNn=R,xre=Me((RT(),S(C(Kln,1),G,433,0,[aq,Rln])))}function oNn(){oNn=R,_re=Me((yC(),S(C(Bln,1),G,501,0,[BO,N2])))}function sNn(){sNn=R,Bie=Me((fh(),S(C(Kie,1),G,523,0,[m0,y1])))}function fNn(){fNn=R,_ie=Me((If(),S(C(Fie,1),G,522,0,[Bd,Xf])))}function hNn(){hNn=R,tre=Me((af(),S(C(ere,1),G,528,0,[zw,Ea])))}function lNn(){lNn=R,fre=Me((Tb(),S(C(sre,1),G,465,0,[Ma,O2])))}function aNn(){aNn=R,Ure=Me((ZT(),S(C(_ln,1),G,434,0,[Fln,mq])))}function dNn(){dNn=R,Bce=Me((GT(),S(C(P1n,1),G,491,0,[Dq,S1n])))}function bNn(){bNn=R,_ce=Me((D$(),S(C(D1n,1),G,492,0,[L1n,N1n])))}function wNn(){wNn=R,Vce=Me((ik(),S(C(x1n,1),G,438,0,[Bq,JO])))}function gNn(){gNn=R,aue=Me((Tk(),S(C(ran,1),G,437,0,[YO,ian])))}function pNn(){pNn=R,aoe=Me((BN(),S(C(dA,1),G,347,0,[vdn,kdn])))}function N3e(){return ci(),S(C(y9,1),G,88,0,[Jf,Xr,Kr,Wf,us])}function D3e(){return en(),S(C(lr,1),Tc,64,0,[sc,Xn,Zn,ae,Wn])}function $3e(n,e,t){return u(e==null?Vc(n.f,null,t):$b(n.i,e,t),288)}function x3e(n){return(n.k==(Vn(),zt)||n.k==Zt)&&kt(n,(W(),B8))}function XD(n){return n.c&&n.d?lJ(n.c)+"->"+lJ(n.d):"e_"+lb(n)}function qi(n,e){var t,i;for(Jn(e),i=n.Kc();i.Ob();)t=i.Pb(),e.Cd(t)}function R3e(n,e){var t;t=new sp,nd(t,"x",e.a),nd(t,"y",e.b),Op(n,t)}function K3e(n,e){var t;t=new sp,nd(t,"x",e.a),nd(t,"y",e.b),Op(n,t)}function mNn(n,e){var t;for(t=e;t;)ab(n,-t.i,-t.j),t=St(t);return n}function SJ(n,e){var t,i;for(t=e,i=0;t>0;)i+=n.a[t],t-=t&-t;return i}function Go(n,e,t){var i;return i=(Nn(e,n.c.length),n.c[e]),n.c[e]=t,i}function PJ(n,e,t){n.a.c.length=0,fAe(n,e,t),n.a.c.length==0||RPe(n,e)}function nk(n){n.i=0,u7(n.b,null),u7(n.c,null),n.a=null,n.e=null,++n.g}function UT(){UT=R,Uf=!0,LQn=!1,NQn=!1,$Qn=!1,DQn=!1}function VD(n){UT(),!Uf&&(this.c=n,this.e=!0,this.a=new Z)}function vNn(n,e){this.c=0,this.b=e,HTn.call(this,n,17493),this.a=this.c}function kNn(n){jzn(),Pyn(this),this.a=new Mt,oY(this,n),Re(this.a,n)}function yNn(){pN(this),this.b=new V(Pt,Pt),this.a=new V(li,li)}function GT(){GT=R,Dq=new sX(rin,0),S1n=new sX("TARGET_WIDTH",1)}function Ag(n,e){return(ta(n),s4(new Cn(n,new eQ(e,n.a)))).Bd(v3)}function B3e(){return Vi(),S(C(Oon,1),G,367,0,[Vs,Jh,Ac,Fc,zr])}function F3e(){return ow(),S(C(ine,1),G,375,0,[gj,zI,XI,GI,UI])}function _3e(){return o1(),S(C(Nsn,1),G,348,0,[W_,Lsn,J_,pv,gv])}function H3e(){return T5(),S(C($hn,1),G,323,0,[Dhn,BH,FH,W8,J8])}function q3e(){return Yo(),S(C(hfn,1),G,171,0,[Ej,_8,ya,H8,xw])}function U3e(){return wS(),S(C(Hre,1),G,368,0,[gq,dq,pq,bq,wq])}function G3e(){return x5(),S(C(Hce,1),G,373,0,[D2,L3,d9,a9,_j])}function z3e(){return Jk(),S(C(F1n,1),G,324,0,[R1n,Fq,B1n,_q,K1n])}function X3e(){return pf(),S(C(Zh,1),G,170,0,[xn,pi,Ih,Fd,E1])}function V3e(){return Kg(),S(C(T9,1),G,256,0,[Pa,eE,adn,M9,ddn])}function W3e(n){return HE(),function(){return Fpe(n,this,arguments)}}function fr(n){return!n.c||!n.d?!1:!!n.c.i&&n.c.i==n.d.i}function IJ(n,e){return L(e,143)?Sn(n.c,u(e,143).c):!1}function Zu(n){return n.t||(n.t=new myn(n),v5(new Djn(n),0,n.t)),n.t}function jNn(n){this.b=n,ne.call(this,n),this.a=u(Un(this.b.a,4),129)}function ENn(n){this.b=n,yp.call(this,n),this.a=u(Un(this.b.a,4),129)}function Bs(n,e,t,i,r){NNn.call(this,e,i,r),this.c=n,this.b=t}function OJ(n,e,t,i,r){VAn.call(this,e,i,r),this.c=n,this.a=t}function AJ(n,e,t,i,r){WAn.call(this,e,i,r),this.c=n,this.a=t}function LJ(n,e,t,i,r){NNn.call(this,e,i,r),this.c=n,this.a=t}function WD(n,e){var t;return t=u(Df(n.d,e),23),t||u(Df(n.e,e),23)}function MNn(n,e){var t,i;return t=e.ld(),i=n.Fe(t),!!i&&mc(i.e,e.md())}function TNn(n,e){var t;return t=e.ld(),new ib(t,n.e.pc(t,u(e.md(),16)))}function J3e(n,e){var t;return t=n.a.get(e),t??F(ki,Kn,1,0,5,1)}function CNn(n){var e;return e=n.length,Sn(Yn.substr(Yn.length-e,e),n)}function fe(n){if(pe(n))return n.c=n.a,n.a.Pb();throw T(new nc)}function NJ(n,e){return e==0||n.e==0?n:e>0?wqn(n,e):BKn(n,-e)}function Rp(n,e){return e==0||n.e==0?n:e>0?BKn(n,e):wqn(n,-e)}function DJ(n){ole.call(this,n==null?gu:Jr(n),L(n,82)?u(n,82):null)}function SNn(n){var e;return n.c||(e=n.r,L(e,90)&&(n.c=u(e,29))),n.c}function JD(n){var e;return e=new Eb,Ur(e,n),U(e,(cn(),Rr),null),e}function PNn(n){var e,t;return e=n.c.i,t=n.d.i,e.k==(Vn(),Zt)&&t.k==Zt}function QD(n){var e,t,i;return e=n&ro,t=n>>22&ro,i=n<0?Ol:0,Yc(e,t,i)}function Q3e(n){var e,t,i,r;for(t=n,i=0,r=t.length;i<r;++i)e=t[i],X6(e)}function Y3e(n,e){var t,i;t=u(o5e(n.c,e),16),t&&(i=t.gc(),t.$b(),n.d-=i)}function YD(n,e,t){var i;return i=n.Ih(e),i>=0?n.Lh(i,t,!0):Hb(n,e,t)}function Z3e(n,e,t){return bt(vp(pm(n),Fi(e.b)),vp(pm(n),Fi(t.b)))}function n4e(n,e,t){return bt(vp(pm(n),Fi(e.e)),vp(pm(n),Fi(t.e)))}function e4e(n,e){return y.Math.min(J1(e.a,n.d.d.c),J1(e.b,n.d.d.c))}function ek(n,e){n._i(n.i+1),O6(n,n.i,n.Zi(n.i,e)),n.Mi(n.i++,e),n.Ni()}function e5(n){var e,t;++n.j,e=n.g,t=n.i,n.g=null,n.i=0,n.Oi(t,e),n.Ni()}function INn(n,e,t){var i;i=new NX(n.a),s5(i,n.a.a),Vc(i.f,e,t),n.a.a=i}function $J(n,e,t,i){var r;for(r=0;r<dI;r++)hT(n.a[r][e.g],t,i[e.g])}function xJ(n,e,t,i){var r;for(r=0;r<f_;r++)lT(n.a[e.g][r],t,i[e.g])}function ot(n,e){var t;return t=u(n.c.xc(e),16),!t&&(t=n.ic(e)),n.pc(e,t)}function t4e(n){var e;return e=(Pe(n),n?new _u(n):y4(n.Kc())),Yk(e),RC(e)}function Af(n){var e,t;return Pe(n),e=Zwe(n.length),t=new Gc(e),nY(t,n),t}function ZD(n,e,t,i){var r;return r=F(ye,_e,28,e,15,1),Eye(r,n,e,t,i),r}function RJ(n,e){if(n<0||n>e)throw T(new Or(Mnn(n,e,"index")));return n}function Yl(n,e){var t;return t=(Nn(e,n.c.length),n.c[e]),Pz(n.c,e,1),t}function KJ(n,e){var t,i;return t=(Jn(n),n),i=(Jn(e),e),t==i?0:t<i?-1:1}function BJ(n){var e;return e=n.e+n.f,isNaN(e)&&GM(n.d)?n.d:e}function i4e(n){return n.e=3,n.d=n.Yb(),n.e!=2?(n.e=0,!0):!1}function pl(n,e){return n.a?Be(n.a,n.b):n.a=new mo(n.d),C6(n.a,e),n}function Kp(n,e){return Si(e)?e==null?_nn(n.f,null):Gxn(n.i,e):_nn(n.f,e)}function ONn(n,e){_Tn.call(this,e.zd(),e.yd()&-6),Jn(n),this.a=n,this.b=e}function ANn(n,e){HTn.call(this,e.zd(),e.yd()&-6),Jn(n),this.a=n,this.b=e}function FJ(n,e){OM.call(this,e.zd(),e.yd()&-6),Jn(n),this.a=n,this.b=e}function LNn(n,e,t){NE.call(this,t),this.b=n,this.c=e,this.d=(gx(),TU)}function NNn(n,e,t){this.d=n,this.k=e?1:0,this.f=t?1:0,this.o=-1,this.p=0}function Lf(n){this.c=n,this.a=new M(this.c.a),this.b=new M(this.c.b)}function zT(){this.e=new Z,this.c=new Z,this.d=new Z,this.b=new Z}function DNn(){this.g=new GG,this.b=new GG,this.a=new Z,this.k=new Z}function $Nn(){this.a=new WG,this.b=new ejn,this.d=new cwn,this.e=new lwn}function xNn(n,e,t){this.a=n,this.c=e,this.d=t,nn(e.e,this),nn(t.b,this)}function _J(n,e,t){var i,r;for(i=0,r=0;r<e.length;r++)i+=n.tg(e[r],i,t)}function r4e(n,e){var t;return t=EAe(n,e),n.b=new EC(t.c.length),HOe(n,t)}function c4e(n,e){var t;t=n.q.getHours()+(e/60|0),n.q.setMinutes(e),H5(n,t)}function n$(n){var e;return e=n.b,e.b==0?null:u(Zo(e,0),65).b}function HJ(n){if(n.a){if(n.e)return HJ(n.e)}else return n;return null}function u4e(n,e){return n.p<e.p?1:n.p>e.p?-1:0}function RNn(n){var e;return n.a||(e=n.r,L(e,156)&&(n.a=u(e,156))),n.a}function o4e(n,e,t){var i;return++n.e,--n.f,i=u(n.d[e].gd(t),136),i.md()}function s4e(n){var e,t;return e=n.ld(),t=u(n.md(),16),D7(t.Nc(),new N8n(e))}function KNn(n,e){return Zc(n.a,e)?(Kp(n.a,e),!0):!1}function Bp(n,e,t){return Z7(e,n.e.Rd().gc()),Z7(t,n.c.Rd().gc()),n.a[e][t]}function XT(n,e,t){this.a=n,this.b=e,this.c=t,nn(n.t,this),nn(e.i,this)}function VT(n,e,t,i){this.f=n,this.e=e,this.d=t,this.b=i,this.c=i?i.d:null}function tk(){this.b=new Mt,this.a=new Mt,this.b=new Mt,this.a=new Mt}function $4(){$4=R;var n,e;TA=(o4(),e=new xE,e),CA=(n=new fL,n)}function f4e(n){var e;return ta(n),e=new OPn(n,n.a.e,n.a.d|4),new cV(n,e)}function BNn(n){var e;for(X1(n),e=0;n.a.Bd(new Wbn);)e=nr(e,1);return e}function WT(n,e){return Jn(e),n.c<n.d?(n.Se(e,n.c++),!0):!1}function Gc(n){pN(this),x7(n>=0,"Initial capacity must not be negative")}function JT(){JT=R,b9=new lt("org.eclipse.elk.labels.labelManager")}function FNn(){FNn=R,ysn=new Lt("separateLayerConnections",(AC(),x_))}function af(){af=R,zw=new iX("REGULAR",0),Ea=new iX("CRITICAL",1)}function ik(){ik=R,Bq=new hX("FIXED",0),JO=new hX("CENTER_NODE",1)}function QT(){QT=R,Csn=new Wz("QUADRATIC",0),X_=new Wz("SCANLINE",1)}function _Nn(){_Nn=R,dne=Me((c5(),S(C(Isn,1),G,322,0,[$8,pj,Psn])))}function HNn(){HNn=R,bne=Me((bC(),S(C(Asn,1),G,351,0,[Osn,VI,V_])))}function qNn(){qNn=R,fne=Me((Lb(),S(C(K_,1),G,372,0,[u0,va,c0])))}function UNn(){UNn=R,mne=Me((hd(),S(C(pne,1),G,460,0,[Q_,mv,m2])))}function GNn(){GNn=R,Mne=Me((Z4(),S(C(oH,1),G,299,0,[cH,uH,mj])))}function zNn(){zNn=R,Cne=Me((vl(),S(C(Tne,1),G,311,0,[vj,k2,E3])))}function XNn(){XNn=R,Zte=Me((w5(),S(C(Nhn,1),G,390,0,[xH,Lhn,TO])))}function VNn(){VNn=R,oie=Me((PC(),S(C(zhn,1),G,387,0,[Uhn,GH,Ghn])))}function WNn(){WNn=R,sie=Me((a5(),S(C(Xhn,1),G,349,0,[XH,zH,Oj])))}function JNn(){JNn=R,uie=Me((gr(),S(C(cie,1),G,463,0,[Q8,Vu,Jc])))}function QNn(){QNn=R,fie=Me((om(),S(C(Whn,1),G,350,0,[VH,Vhn,Y8])))}function YNn(){YNn=R,hie=Me((dC(),S(C(Yhn,1),G,352,0,[Qhn,WH,Jhn])))}function ZNn(){ZNn=R,lie=Me((LC(),S(C(Zhn,1),G,388,0,[JH,Av,Gw])))}function nDn(){nDn=R,are=Me((d5(),S(C(gln,1),G,392,0,[wln,ZH,Nj])))}function eDn(){eDn=R,Gre=Me((Ik(),S(C(Uln,1),G,393,0,[FO,Hln,qln])))}function tDn(){tDn=R,ace=Me((SC(),S(C(s1n,1),G,300,0,[Eq,o1n,u1n])))}function iDn(){iDn=R,dce=Me((XC(),S(C(f1n,1),G,445,0,[Kj,qO,Mq])))}function rDn(){rDn=R,wce=Me((rS(),S(C(bce,1),G,456,0,[Tq,Sq,Cq])))}function cDn(){cDn=R,mce=Me((_C(),S(C(a1n,1),G,394,0,[l1n,Oq,h1n])))}function uDn(){uDn=R,Fce=Me((nC(),S(C(A1n,1),G,439,0,[$q,O1n,I1n])))}function oDn(){oDn=R,Sie=Me((Ab(),S(C(Cie,1),G,464,0,[Aj,Z8,IO])))}function sDn(){sDn=R,WQn=Me((Uu(),S(C(VQn,1),G,471,0,[Th,pa,zs])))}function fDn(){fDn=R,XQn=Me((wf(),S(C(Pw,1),G,237,0,[bc,Wc,wc])))}function hDn(){hDn=R,QQn=Me((bu(),S(C(JQn,1),G,472,0,[kf,ma,Xs])))}function lDn(){lDn=R,xQn=Me((Gu(),S(C(xr,1),G,108,0,[xun,Yr,Sw])))}function aDn(){aDn=R,pZn=Me((t5(),S(C(Ion,1),G,391,0,[j_,y_,E_])))}function dDn(){dDn=R,Que=Me((jl(),S(C(ldn,1),G,346,0,[uA,T1,E9])))}function bDn(){bDn=R,Uce=Me(($k(),S(C(xq,1),G,444,0,[XO,VO,WO])))}function wDn(){wDn=R,Xue=Me(($f(),S(C(Zan,1),G,278,0,[Rv,Jw,Kv])))}function gDn(){gDn=R,loe=Me((Gp(),S(C(mdn,1),G,280,0,[pdn,Yw,aA])))}function Nf(n,e){return!n.o&&(n.o=new Ou((Mc(),il),C1,n,0)),wx(n.o,e)}function h4e(n,e){var t;n.C&&(t=u(Mr(n.b,e),127).n,t.d=n.C.d,t.a=n.C.a)}function qJ(n){var e,t,i,r;r=n.d,e=n.a,t=n.b,i=n.c,n.d=t,n.a=i,n.b=r,n.c=e}function l4e(n){return!n.g&&(n.g=new ME),!n.g.b&&(n.g.b=new byn(n)),n.g.b}function rk(n){return!n.g&&(n.g=new ME),!n.g.c&&(n.g.c=new pyn(n)),n.g.c}function a4e(n){return!n.g&&(n.g=new ME),!n.g.d&&(n.g.d=new wyn(n)),n.g.d}function d4e(n){return!n.g&&(n.g=new ME),!n.g.a&&(n.g.a=new gyn(n)),n.g.a}function b4e(n,e,t,i){return t&&(i=t.Rh(e,At(t.Dh(),n.c.uk()),null,i)),i}function w4e(n,e,t,i){return t&&(i=t.Th(e,At(t.Dh(),n.c.uk()),null,i)),i}function e$(n,e,t,i){var r;return r=F(ye,_e,28,e+1,15,1),vIe(r,n,e,t,i),r}function F(n,e,t,i,r,c){var s;return s=_Bn(r,i),r!=10&&S(C(n,c),e,t,r,s),s}function g4e(n,e,t){var i,r;for(r=new Y4(e,n),i=0;i<t;++i)iS(r);return r}function t$(n,e,t){var i,r;if(t!=null)for(i=0;i<e;++i)r=t[i],n.Qi(i,r)}function UJ(n,e){var t;return t=new LA,t.c=!0,t.d=e.md(),NGn(n,e.ld(),t)}function p4e(n,e){var t;t=n.q.getHours()+(e/3600|0),n.q.setSeconds(e),H5(n,t)}function GJ(n,e){var t,i;return t=e,i=CD(y4(new f$(n,t))),iT(new f$(n,t)),i}function m4e(n,e){e.Ug("Label management",1),IM(v(n,(JT(),b9))),e.Vg()}function v4e(n,e,t,i){NUn(n,e,t,Am(n,e,i,L(e,102)&&(u(e,19).Bb&hr)!=0))}function zJ(n,e,t){u(n.b,68),u(n.b,68),u(n.b,68),nu(n.a,new gPn(t,e,n))}function Ri(n,e,t){if(n<0||e>t||e<n)throw T(new wz(ZS+n+Stn+e+Mtn+t))}function i$(n){n?(this.c=n,this.b=null):(this.c=null,this.b=new Z)}function r$(n,e){oM.call(this,n,e),this.a=F(lDe,WS,447,2,0,1),this.b=!0}function XJ(n){wRn.call(this,n,0),sSn(this),this.d.b=this.d,this.d.a=this.d}function VJ(n){this.e=n,this.b=this.e.a.entries(),this.a=F(ki,Kn,1,0,5,1)}function pDn(){pDn=R,bie=Iu(Fe(new ii,(Vi(),Vs),(tr(),N_)),zr,bj)}function k4e(){return vS(),S(C(xsn,1),G,283,0,[Z_,Y_,eH,nH,tH,JI])}function y4e(){return Vk(),S(C(qsn,1),G,281,0,[YI,Fsn,Hsn,Bsn,_sn,iH])}function j4e(){return jm(),S(C(Wsn,1),G,282,0,[x8,Gsn,Vsn,Xsn,zsn,Usn])}function E4e(){return Yp(),S(C(wv,1),G,232,0,[bv,D8,dv,Dw,p2,g2])}function M4e(){return Vn(),S(C(A_,1),G,273,0,[zt,Ti,Zt,_c,Sc,Gf])}function T4e(){return zu(),S(C(oA,1),G,279,0,[Oa,Rl,tE,S9,C9,K3])}function C4e(){return Ai(),S(C(bdn,1),G,101,0,[Ia,Qf,Fv,Ud,tl,qc])}function S4e(){return pS(),S(C(cdn,1),G,321,0,[aU,tdn,rdn,ndn,idn,edn])}function P4e(){return Bh(),S(C(fan,1),G,255,0,[Xq,qj,Uj,eA,ZO,nA])}function I4e(){return wd(),S(C(Qq,1),G,298,0,[Jq,m9,p9,Wq,w9,g9])}function WJ(n){var e;return!n.a&&n.b!=-1&&(e=n.c.Dh(),n.a=$n(e,n.b)),n.a}function ve(n,e){return n.Si()&&n.Hc(e)?!1:(n.Hi(e),!0)}function df(n,e){return G7(e,"Horizontal alignment cannot be null"),n.b=e,n}function mDn(n,e,t){nt();var i;return i=sa(n,e),t&&i&&Bwe(n)&&(i=null),i}function JJ(n,e,t){var i;i=n.b[t.c.p][t.p],i.b+=e.b,i.c+=e.c,i.a+=e.a,++i.a}function QJ(n,e,t){var i;n.d[e.g]=t,i=n.g.c,i[e.g]=y.Math.max(i[e.g],t+1)}function J1(n,e){var t,i;return t=n.a-e.a,i=n.b-e.b,y.Math.sqrt(t*t+i*i)}function YJ(n,e){var t,i;for(i=e.Kc();i.Ob();)t=u(i.Pb(),36),sUn(n,t,0,0)}function Zl(n,e,t){var i,r;for(r=n.Kc();r.Ob();)i=u(r.Pb(),36),Pm(i,e,t)}function O4e(n){var e,t;for(t=ge(n.a,0);t.b!=t.d.c;)e=u(be(t),65),Ann(e)}function vDn(n,e){return kMn(n.e,e)||s1(n.e,e,new fBn(e)),u(Df(n.e,e),113)}function qu(n,e,t,i){return Jn(n),Jn(e),Jn(t),Jn(i),new CW(n,e,new Kbn)}function Ou(n,e,t,i){this.ak(),this.a=e,this.b=n,this.c=new yW(this,e,t,i)}function c$(n,e,t,i,r,c){mJ.call(this,e,i,r,c),this.c=n,this.b=t}function ck(n,e,t,i,r,c){mJ.call(this,e,i,r,c),this.c=n,this.a=t}function uk(n,e){var t,i,r;return r=n.r,i=n.d,t=G5(n,e,!0),t.b!=r||t.a!=i}function ok(n,e,t){var i,r;return r=(i=Tm(n.b,e),i),r?qS(hk(n,r),t):null}function A4e(n,e,t){var i,r,c;i=dl(n,t),r=null,i&&(r=wnn(i)),c=r,uBn(e,t,c)}function L4e(n,e,t){var i,r,c;i=dl(n,t),r=null,i&&(r=wnn(i)),c=r,uBn(e,t,c)}function x4(n,e){var t;return t=n.Ih(e),t>=0?n.Lh(t,!0,!0):Hb(n,e,!0)}function N4e(n,e,t){var i;return i=vRn(n,e,t),n.b=new EC(i.c.length),aen(n,i)}function D4e(n){if(n.b<=0)throw T(new nc);return--n.b,n.a-=n.c.c,Y(n.a)}function $4e(n){var e;if(!n.a)throw T(new IOn);return e=n.a,n.a=St(n.a),e}function x4e(n){for(;!n.a;)if(!ePn(n.c,new M9n(n)))return!1;return!0}function Fp(n){var e;return Pe(n),L(n,204)?(e=u(n,204),e):new _8n(n)}function R4e(n){YT(),u(n.of((He(),Ww)),181).Fc((zu(),tE)),n.qf(oU,null)}function YT(){YT=R,wue=new Emn,pue=new Mmn,gue=T6e((He(),oU),wue,Ca,pue)}function ZT(){ZT=R,Fln=new oX("LEAF_NUMBER",0),mq=new oX("NODE_SIZE",1)}function u$(n){n.a=F(ye,_e,28,n.b+1,15,1),n.c=F(ye,_e,28,n.b,15,1),n.d=0}function K4e(n,e){n.a.Ne(e.d,n.b)>0&&(nn(n.c,new UV(e.c,e.d,n.d)),n.b=e.d)}function ZJ(n,e){if(n.g==null||e>=n.i)throw T(new aN(e,n.i));return n.g[e]}function kDn(n,e,t){if(rm(n,t),t!=null&&!n.fk(t))throw T(new uL);return t}function o$(n,e){return bk(e)!=10&&S(wo(e),e.Sm,e.__elementTypeId$,bk(e),n),n}function R4(n,e,t,i){var r;i=(jb(),i||Iun),r=n.slice(e,t),Tnn(r,n,e,t,-e,i)}function zo(n,e,t,i,r){return e<0?Hb(n,t,i):u(t,69).wk().yk(n,n.hi(),e,i,r)}function B4e(n,e){return bt($(B(v(n,(W(),f0)))),$(B(v(e,f0))))}function yDn(){yDn=R,OQn=Me((K4(),S(C(lI,1),G,304,0,[n_,e_,t_,i_])))}function K4(){K4=R,n_=new uM("All",0),e_=new lCn,t_=new kCn,i_=new hCn}function Uu(){Uu=R,Th=new RL(s3,0),pa=new RL(qm,1),zs=new RL(f3,2)}function jDn(){jDn=R,FS(),sbn=Pt,mse=li,fbn=new z9(Pt),vse=new z9(li)}function EDn(){EDn=R,jYn=Me((Db(),S(C(yYn,1),G,417,0,[rj,ij,l_,a_])))}function MDn(){MDn=R,SYn=Me((C5(),S(C(CYn,1),G,406,0,[fj,wI,gI,hj])))}function TDn(){TDn=R,MYn=Me((Vp(),S(C(EYn,1),G,332,0,[uj,cj,oj,sj])))}function CDn(){CDn=R,LZn=Me((dd(),S(C(Non,1),G,389,0,[Aw,Lon,P_,I_])))}function SDn(){SDn=R,CZn=Me((nm(),S(C(TZn,1),G,416,0,[r0,Ow,Iw,d2])))}function PDn(){PDn=R,tne=Me((xf(),S(C(ene,1),G,421,0,[j3,lv,av,R_])))}function IDn(){IDn=R,GZn=Me((AC(),S(C(UZn,1),G,371,0,[x_,HI,qI,wj])))}function ODn(){ODn=R,nie=Me((cw(),S(C(KH,1),G,203,0,[CO,RH,I2,P2])))}function ADn(){ADn=R,iie=Me((lh(),S(C(Hhn,1),G,284,0,[k1,_hn,_H,HH])))}function sk(){sk=R,Rsn=new Qz(kh,0),QI=new Qz("IMPROVE_STRAIGHTNESS",1)}function LDn(n,e){var t,i;return i=e/n.c.Rd().gc()|0,t=e%n.c.Rd().gc(),Bp(n,i,t)}function NDn(n){var e;if(n.nl())for(e=n.i-1;e>=0;--e)N(n,e);return yJ(n)}function nQ(n){var e,t;if(!n.b)return null;for(t=n.b;e=t.a[0];)t=e;return t}function DDn(n){var e,t;if(!n.b)return null;for(t=n.b;e=t.a[1];)t=e;return t}function F4e(n){return L(n,180)?""+u(n,180).a:n==null?null:Jr(n)}function _4e(n){return L(n,180)?""+u(n,180).a:n==null?null:Jr(n)}function $Dn(n,e){if(e.a)throw T(new ec(nXn));fi(n.a,e),e.a=n,!n.j&&(n.j=e)}function eQ(n,e){OM.call(this,e.zd(),e.yd()&-16449),Jn(n),this.a=n,this.c=e}function H4e(n,e){return new _N(e,ab(Fi(e.e),e.f.a+n,e.f.b+n),(_n(),!1))}function q4e(n,e){return k4(),nn(n,new bi(e,Y(e.e.c.length+e.g.c.length)))}function U4e(n,e){return k4(),nn(n,new bi(e,Y(e.e.c.length+e.g.c.length)))}function xDn(){xDn=R,lce=Me((sS(),S(C(c1n,1),G,354,0,[jq,i1n,r1n,t1n])))}function RDn(){RDn=R,$re=Me((b5(),S(C(xln,1),G,353,0,[lq,KO,hq,fq])))}function KDn(){KDn=R,hre=Me((Qp(),S(C(rln,1),G,405,0,[NO,t9,i9,r9])))}function BDn(){BDn=R,Vue=Me((El(),S(C(lU,1),G,223,0,[hU,Yj,Bv,R3])))}function FDn(){FDn=R,Zue=Me((Co(),S(C(Yue,1),G,291,0,[nE,nl,Sa,Zj])))}function _Dn(){_Dn=R,foe=Me((go(),S(C(P9,1),G,386,0,[rE,Gd,iE,Qw])))}function HDn(){HDn=R,doe=Me((qC(),S(C(Mdn,1),G,320,0,[bU,ydn,Edn,jdn])))}function qDn(){qDn=R,goe=Me((NC(),S(C(woe,1),G,415,0,[wU,Cdn,Tdn,Sdn])))}function nC(){nC=R,$q=new oN(mVn,0),O1n=new oN(Ern,1),I1n=new oN(kh,2)}function W0(n,e,t,i,r){return Jn(n),Jn(e),Jn(t),Jn(i),Jn(r),new CW(n,e,i)}function UDn(n,e){var t;return t=u(Kp(n.e,e),400),t?(eW(t),t.e):null}function du(n,e){var t;return t=qr(n,e,0),t==-1?!1:(Yl(n,t),!0)}function GDn(n,e,t){var i;return X1(n),i=new NA,i.a=e,n.a.Nb(new CMn(i,t)),i.a}function G4e(n){var e;return X1(n),e=F(Ii,Cr,28,0,15,1),lg(n.a,new y9n(e)),e}function tQ(n){var e;if(!E$(n))throw T(new nc);return n.e=1,e=n.d,n.d=null,e}function n1(n){var e;return Vr(n)&&(e=0-n,!isNaN(e))?e:Y1(tm(n))}function qr(n,e,t){for(;t<n.c.length;++t)if(mc(e,n.c[t]))return t;return-1}function s$(n){var e,t;return t=u(sn(n.j,0),12),e=u(v(t,(W(),st)),12),e}function f$(n,e){var t;this.f=n,this.b=e,t=u(ee(n.b,e),260),this.c=t?t.b:null}function zDn(){Rs(),this.b=new de,this.f=new de,this.g=new de,this.e=new de}function eC(n){xM(this),this.g=n?OT(n,n.ie()):null,this.f=n,TT(this),this.je()}function h$(n){var e;e=n.jj(),e!=null&&n.d!=-1&&u(e,94).xh(n),n.i&&n.i.oj()}function fk(n){var e;for(e=n.p+1;e<n.c.a.c.length;++e)--u(sn(n.c.a,e),10).p}function XDn(n){R0(!!n.c),RN(n.f.g,n.d),n.c.Qb(),n.c=null,n.b=UQ(n),n.d=n.f.g}function no(n){return n.b||(n.b=new vIn(n,jr,n),!n.a&&(n.a=new I7(n,n))),n.b}function hk(n,e){var t,i;return t=u(e,690),i=t.xi(),!i&&t.Ai(i=new RTn(n,e)),i}function Nr(n,e){var t,i;return t=u(e,692),i=t.$k(),!i&&t.cl(i=new uLn(n,e)),i}function iQ(n,e){o6();var t,i;return t=xp(n),i=xp(e),!!t&&!!i&&!pBn(t.k,i.k)}function tC(n,e){return mc(e,sn(n.f,0))||mc(e,sn(n.f,1))||mc(e,sn(n.f,2))}function lk(n,e){if(e<0)throw T(new Or(LVn+e));return xLn(n,e+1),sn(n.j,e)}function VDn(n,e,t,i){if(!n)throw T(new Gn(B5(e,S(C(ki,1),Kn,1,5,[t,i]))))}function ml(n,e,t,i,r,c,s){k$.call(this,e,i,r,c,s),this.c=n,this.b=t}function Kh(n,e,t){var i,r;for(i=10,r=0;r<t-1;r++)e<i&&(n.a+="0"),i*=10;n.a+=e}function iC(n){var e,t;return t=n.length,e=F(fs,gh,28,t,15,1),qIn(n,0,t,e,0),e}function ak(n){eIn();var e,t;return e=n+128,t=bun[e],!t&&(t=bun[e]=new u9n(n)),t}function WDn(n){return RN(n.d.a.e.g,n.b),oe(n.c!=n.d.a.d),n.a=n.c,n.c=n.c.a,n.a}function z4e(n){switch(n.g){case 0:return et;case 1:return-1;default:return 0}}function X4e(n){return AZ(n,(B4(),aun))<0?-I1e(tm(n)):n.l+n.m*o3+n.h*vd}function JDn(n){(this.q?this.q:(Ln(),Ln(),Wh)).Ac(n.q?n.q:(Ln(),Ln(),Wh))}function V4e(n,e){Ep(u(u(n.f,27).of((He(),v9)),101))&&e8e(mD(u(n.f,27)),e)}function l$(n,e){var t;return t=At(n.d,e),t>=0?tS(n,t,!0,!0):Hb(n,e,!0)}function rQ(n){var e;return e=cd(Un(n,32)),e==null&&(iu(n),e=cd(Un(n,32))),e}function cQ(n){var e;return n.Oh()||(e=se(n.Dh())-n.ji(),n.$h().Mk(e)),n.zh()}function QDn(n,e){con=new kE,TYn=e,O8=n,u(O8.b,68),zJ(O8,con,null),aGn(O8)}function t5(){t5=R,j_=new BL("XY",0),y_=new BL("X",1),E_=new BL("Y",2)}function bu(){bu=R,kf=new KL("TOP",0),ma=new KL(qm,1),Xs=new KL(xtn,2)}function vl(){vl=R,vj=new GL(kh,0),k2=new GL("TOP",1),E3=new GL(xtn,2)}function dk(){dk=R,qH=new Zz("INPUT_ORDER",0),UH=new Zz("PORT_DEGREE",1)}function B4(){B4=R,hun=Yc(ro,ro,524287),bQn=Yc(0,0,Cy),lun=QD(1),QD(2),aun=QD(0)}function a$(n){var e;return n.d!=n.r&&(e=gs(n),n.e=!!e&&e.lk()==bJn,n.d=e),n.e}function d$(n,e,t){var i;return i=n.g[e],O6(n,e,n.Zi(e,t)),n.Ri(e,t,i),n.Ni(),i}function rC(n,e){var t;return t=n.dd(e),t>=0?(n.gd(t),!0):!1}function b$(n,e){var t;for(Pe(n),Pe(e),t=!1;e.Ob();)t=t|n.Fc(e.Pb());return t}function Df(n,e){var t;return t=u(ee(n.e,e),400),t?(LCn(n,t),t.e):null}function YDn(n){var e,t;return e=n/60|0,t=n%60,t==0?""+e:""+e+":"+(""+t)}function J0(n,e){var t=n.a[e],i=(F$(),VF)[typeof t];return i?i(t):bY(typeof t)}function rc(n,e){var t,i;return ta(n),i=new FJ(e,n.a),t=new rPn(i),new Cn(n,t)}function w$(n){var e;return e=n.b.c.length==0?null:sn(n.b,0),e!=null&&T$(n,0),e}function W4e(n,e){var t,i,r;r=e.c.i,t=u(ee(n.f,r),60),i=t.d.c-t.e.c,RQ(e.a,i,0)}function uQ(n,e){var t;for(++n.d,++n.c[e],t=e+1;t<n.a.length;)++n.a[t],t+=t&-t}function ZDn(n,e,t,i){nt(),Wd.call(this,26),this.c=n,this.a=e,this.d=t,this.b=i}function n$n(n,e){for(;e[0]<n.length&&ih(` \r
`,wu(Xi(n,e[0])))>=0;)++e[0]}function J4e(n,e){eu(n,e==null||GM((Jn(e),e))||isNaN((Jn(e),e))?0:(Jn(e),e))}function Q4e(n,e){tu(n,e==null||GM((Jn(e),e))||isNaN((Jn(e),e))?0:(Jn(e),e))}function Y4e(n,e){Ob(n,e==null||GM((Jn(e),e))||isNaN((Jn(e),e))?0:(Jn(e),e))}function Z4e(n,e){Ib(n,e==null||GM((Jn(e),e))||isNaN((Jn(e),e))?0:(Jn(e),e))}function nme(n,e,t){return vp(new V(t.e.a+t.f.a/2,t.e.b+t.f.b/2),n)==(Jn(e),e)}function eme(n,e){return L(e,102)&&u(e,19).Bb&hr?new dN(e,n):new Y4(e,n)}function tme(n,e){return L(e,102)&&u(e,19).Bb&hr?new dN(e,n):new Y4(e,n)}function bk(n){return n.__elementTypeCategory$==null?10:n.__elementTypeCategory$}function e$n(n,e){return e==(xN(),xN(),SQn)?n.toLocaleLowerCase():n.toLowerCase()}function t$n(n){if(!n.e)throw T(new nc);return n.c=n.a=n.e,n.e=n.e.e,--n.d,n.a.f}function oQ(n){if(!n.c)throw T(new nc);return n.e=n.a=n.c,n.c=n.c.c,++n.d,n.a.f}function i$n(n){var e;for(++n.a,e=n.c.a.length;n.a<e;++n.a)if(n.c.b[n.a])return}function ime(n){var e,t;if(n.a){t=null;do e=n.a,n.a=null,t=d_n(e,t);while(n.a);n.a=t}}function rme(n){var e,t;if(n.b){t=null;do e=n.b,n.b=null,t=d_n(e,t);while(n.b);n.b=t}}function cme(n,e){var t;for(t=0;n.e!=n.i.gc();)I0e(e,ue(n),Y(t)),t!=et&&++t}function ume(n,e){var t;return t=xb(n.e.c,e.e.c),t==0?bt(n.e.d,e.e.d):t}function ome(n,e){var t,i;for(i=e.c,t=i+1;t<=e.f;t++)n.a[t]>n.a[i]&&(i=t);return i}function r$n(n){var e;return e=u(v(n,(W(),o0)),313),e?e.a==n:!1}function c$n(n){var e;return e=u(v(n,(W(),o0)),313),e?e.i==n:!1}function u$n(){u$n=R,yZn=Me((Vi(),S(C(Oon,1),G,367,0,[Vs,Jh,Ac,Fc,zr])))}function o$n(){o$n=R,rne=Me((ow(),S(C(ine,1),G,375,0,[gj,zI,XI,GI,UI])))}function s$n(){s$n=R,wne=Me((o1(),S(C(Nsn,1),G,348,0,[W_,Lsn,J_,pv,gv])))}function f$n(){f$n=R,eie=Me((T5(),S(C($hn,1),G,323,0,[Dhn,BH,FH,W8,J8])))}function h$n(){h$n=R,Pne=Me((Yo(),S(C(hfn,1),G,171,0,[Ej,_8,ya,H8,xw])))}function l$n(){l$n=R,qre=Me((wS(),S(C(Hre,1),G,368,0,[gq,dq,pq,bq,wq])))}function a$n(){a$n=R,qce=Me((x5(),S(C(Hce,1),G,373,0,[D2,L3,d9,a9,_j])))}function d$n(){d$n=R,Wce=Me((Jk(),S(C(F1n,1),G,324,0,[R1n,Fq,B1n,_q,K1n])))}function b$n(){b$n=R,zue=Me((ci(),S(C(y9,1),G,88,0,[Jf,Xr,Kr,Wf,us])))}function w$n(){w$n=R,mue=Me((pf(),S(C(Zh,1),G,170,0,[xn,pi,Ih,Fd,E1])))}function g$n(){g$n=R,eoe=Me((Kg(),S(C(T9,1),G,256,0,[Pa,eE,adn,M9,ddn])))}function p$n(){p$n=R,roe=Me((en(),S(C(lr,1),Tc,64,0,[sc,Xn,Zn,ae,Wn])))}function cC(){cC=R,Bun=new qz("BY_SIZE",0),o_=new qz("BY_SIZE_AND_SHAPE",1)}function uC(){uC=R,m_=new zz("EADES",0),vI=new zz("FRUCHTERMAN_REINGOLD",1)}function wk(){wk=R,WI=new Jz("READING_DIRECTION",0),Dsn=new Jz("ROTATION",1)}function i5(){i5=R,IZn=new rwn,OZn=new own,SZn=new swn,PZn=new uwn,AZn=new fwn}function m$n(n){this.b=new Z,this.a=new Z,this.c=new Z,this.d=new Z,this.e=n}function v$n(n){this.g=n,this.f=new Z,this.a=y.Math.min(this.g.c.c,this.g.d.c)}function k$n(n,e,t){qM.call(this),hQ(this),this.a=n,this.c=t,this.b=e.d,this.f=e.e}function sme(n,e,t){var i,r;for(r=new M(t);r.a<r.c.c.length;)i=E(r),VZ(n,e,i)}function bf(n,e,t){var i;if(e==null)throw T(new rp);return i=dl(n,e),y3e(n,e,t),i}function g$(n,e){var t;return t=u(ee(n.a,e),137),t||(t=new xA,Ve(n.a,e,t)),t}function $n(n,e){var t;return t=(n.i==null&&bh(n),n.i),e>=0&&e<t.length?t[e]:null}function fme(n,e){var t;return t=e>0?e-1:e,eEn($he(U$n(QV(new op,t),n.n),n.j),n.k)}function Dr(n){var e,t;t=(e=new hL,e),ve((!n.q&&(n.q=new q(Ps,n,11,10)),n.q),t)}function sQ(n){return(n.i&2?"interface ":n.i&1?"":"class ")+(ll(n),n.o)}function oC(n){return Ec(n,et)>0?et:Ec(n,Wi)<0?Wi:Se(n)}function Q0(n){return n<3?(Mo(n,$zn),n+1):n<W5?wi(n/.75+1):et}function y$n(n,e){return Jn(e),vW(n),n.d.Ob()?(e.Cd(n.d.Pb()),!0):!1}function hme(n,e){var t,i;return t=u(tw(n.d,e),16),t?(i=e,n.e.pc(i,t)):null}function lme(n,e,t,i){var r;n.j=-1,Knn(n,gnn(n,e,t),(dr(),r=u(e,69).vk(),r.xl(i)))}function ame(n,e){return _p(),-jc(u(v(n,(lc(),A2)),17).a,u(v(e,A2),17).a)}function j$n(n,e){return!!o5(n,e,Se(er(Uh,xh(Se(er(e==null?0:mt(e),Gh)),15))))}function dme(){return Mm(),S(C(kA,1),G,245,0,[vU,mA,vA,pA,mU,gA,wA,pU])}function bme(){return l1(),S(C(vue,1),G,285,0,[uan,yi,Zr,$2,Qi,It,N3,Vf])}function wme(){return LS(),S(C(Tsn,1),G,276,0,[F_,q_,B_,z_,H_,__,G_,U_])}function gme(n){var e;return e=$(B(v(n,(cn(),m1)))),e<0&&(e=0,U(n,m1,e)),e}function sC(n,e){var t,i;for(i=n.Kc();i.Ob();)t=u(i.Pb(),72),U(t,(W(),S3),e)}function pme(n,e,t){var i;i=y.Math.max(0,n.b/2-.5),I5(t,i,1),nn(e,new IMn(t,i))}function mme(n,e,t){var i;return i=n.a.e[u(e.a,10).p]-n.a.e[u(t.a,10).p],wi(K7(i))}function fC(n,e){var t;return ta(n),t=new KOn(n,n.a.zd(),n.a.yd()|4,e),new Cn(n,t)}function p$(n){var e;R0(!!n.c),e=n.c.a,Xo(n.d,n.c),n.b==n.c?n.b=e:--n.a,n.c=null}function E$n(n){return n.a>=-.01&&n.a<=_f&&(n.a=0),n.b>=-.01&&n.b<=_f&&(n.b=0),n}function Lg(n){Vg();var e,t;for(t=Crn,e=0;e<n.length;e++)n[e]>t&&(t=n[e]);return t}function M$n(n,e){var t;if(t=oy(n.Dh(),e),!t)throw T(new Gn(ba+e+sF));return t}function Y0(n,e){var t;for(t=n;St(t);)if(t=St(t),t==e)return!0;return!1}function vme(n,e){var t,i,r;for(i=e.a.ld(),t=u(e.a.md(),16).gc(),r=0;r<t;r++)n.Cd(i)}function nu(n,e){var t,i,r,c;for(Jn(e),i=n.c,r=0,c=i.length;r<c;++r)t=i[r],e.Cd(t)}function T$n(n,e,t,i,r,c){var s;s=JD(i),Zi(s,r),Oi(s,c),In(n.a,i,new zM(s,e,t.f))}function C$n(n,e){ht(n,(_h(),Iq),e.f),ht(n,pce,e.e),ht(n,Pq,e.d),ht(n,gce,e.c)}function S$n(n,e){this.a=new de,this.e=new de,this.b=(w5(),TO),this.c=n,this.b=e}function P$n(n){this.d=n,this.c=n.c.vc().Kc(),this.b=null,this.a=null,this.e=(BE(),GF)}function Xo(n,e){var t;return t=e.c,e.a.b=e.b,e.b.a=e.a,e.a=e.b=null,e.c=null,--n.b,t}function kme(n,e){return e&&n.b[e.g]==e?($t(n.b,e.g,null),--n.c,!0):!1}function yme(n,e){if(0>n||n>e)throw T(new gz("fromIndex: 0, toIndex: "+n+Mtn+e))}function Pb(n){if(n<0)throw T(new Gn("Illegal Capacity: "+n));this.g=this.aj(n)}function fQ(n,e){return Cf(),Fs(fa),y.Math.abs(n-e)<=fa||n==e||isNaN(n)&&isNaN(e)}function m$(n,e){var t,i,r,c;for(i=n.d,r=0,c=i.length;r<c;++r)t=i[r],Sf(n.g,t).a=e}function jme(n,e,t){var i,r,c;for(r=e[t],i=0;i<r.length;i++)c=r[i],n.e[c.c.p][c.p]=i}function Eme(n){var e;for(e=0;e<n.c.length;e++)(Nn(e,n.c.length),u(n.c[e],12)).p=e}function Mme(n){var e,t;for(e=n.a.d.j,t=n.c.d.j;e!=t;)_s(n.b,e),e=BC(e);_s(n.b,e)}function Tme(n){var e;return e=y.Math.sqrt(n.a*n.a+n.b*n.b),e>0&&(n.a/=e,n.b/=e),n}function jo(n){var e;return n.w?n.w:(e=lpe(n),e&&!e.Vh()&&(n.w=e),e)}function F4(n,e){var t,i;i=n.a,t=w5e(n,e,null),i!=e&&!n.e&&(t=Dm(n,e,t)),t&&t.oj()}function I$n(n,e,t){var i,r;i=e;do r=$(n.p[i.p])+t,n.p[i.p]=r,i=n.a[i.p];while(i!=e)}function O$n(n,e,t){var i=function(){return n.apply(i,arguments)};return e.apply(i,t),i}function Cme(n){var e;return n==null?null:(e=u(n,195),Kye(e,e.length))}function N(n,e){if(n.g==null||e>=n.i)throw T(new aN(e,n.i));return n.Wi(e,n.g[e])}function Sme(n,e){Ln();var t,i;for(i=new Z,t=0;t<n;++t)Fn(i.c,e);return new jL(i)}function A$n(n){return ta(n),Tp(!0,"n may not be negative"),new Cn(n,new uxn(n.a))}function hQ(n){n.b=(Uu(),pa),n.f=(bu(),ma),n.d=(Mo(2,mw),new Gc(2)),n.e=new Ni}function hC(n){this.b=(Pe(n),new _u(n)),this.a=new Z,this.d=new Z,this.e=new Ni}function wf(){wf=R,bc=new xL("BEGIN",0),Wc=new xL(qm,1),wc=new xL("END",2)}function $f(){$f=R,Rv=new fN(qm,0),Jw=new fN("HEAD",1),Kv=new fN("TAIL",2)}function _p(){_p=R,Kre=ah(ah(ah(h6(new ii,(Qp(),t9)),(F5(),YH)),sln),aln)}function kl(){kl=R,Fre=ah(ah(ah(h6(new ii,(Qp(),r9)),(F5(),hln)),cln),fln)}function L$n(){L$n=R,lne=Me((Yp(),S(C(wv,1),G,232,0,[bv,D8,dv,Dw,p2,g2])))}function N$n(){N$n=R,vne=Me((vS(),S(C(xsn,1),G,283,0,[Z_,Y_,eH,nH,tH,JI])))}function D$n(){D$n=R,yne=Me((Vk(),S(C(qsn,1),G,281,0,[YI,Fsn,Hsn,Bsn,_sn,iH])))}function $$n(){$$n=R,jne=Me((jm(),S(C(Wsn,1),G,282,0,[x8,Gsn,Vsn,Xsn,zsn,Usn])))}function x$n(){x$n=R,xZn=Me((Vn(),S(C(A_,1),G,273,0,[zt,Ti,Zt,_c,Sc,Gf])))}function R$n(){R$n=R,yue=Me((Bh(),S(C(fan,1),G,255,0,[Xq,qj,Uj,eA,ZO,nA])))}function K$n(){K$n=R,Sue=Me((wd(),S(C(Qq,1),G,298,0,[Jq,m9,p9,Wq,w9,g9])))}function B$n(){B$n=R,Wue=Me((pS(),S(C(cdn,1),G,321,0,[aU,tdn,rdn,ndn,idn,edn])))}function F$n(){F$n=R,toe=Me((Ai(),S(C(bdn,1),G,101,0,[Ia,Qf,Fv,Ud,tl,qc])))}function _$n(){_$n=R,ioe=Me((zu(),S(C(oA,1),G,279,0,[Oa,Rl,tE,S9,C9,K3])))}function H$n(){H$n=R,dI=(wf(),S(C(Pw,1),G,237,0,[bc,Wc,wc])).length,f_=dI}function Pme(){return lw(),S(C(yr,1),G,95,0,[Qs,xl,Ys,nf,el,Ts,No,Zs,Ms])}function Ime(n,e){return ua(),jc(n.b.c.length-n.e.c.length,e.b.c.length-e.e.c.length)}function Ng(n,e){return Khe(u5(n,e,Se(er(Uh,xh(Se(er(e==null?0:mt(e),Gh)),15)))))}function lQ(n,e){return Cf(),Fs(fa),y.Math.abs(n-e)<=fa||n==e||isNaN(n)&&isNaN(e)}function lC(n,e){var t;t=n.b,n.b=e,n.Db&4&&!(n.Db&1)&&it(n,new V0(n,1,t,n.b))}function _4(n,e){var t;t=n.b,n.b=e,n.Db&4&&!(n.Db&1)&&it(n,new V0(n,3,t,n.b))}function Ib(n,e){var t;t=n.f,n.f=e,n.Db&4&&!(n.Db&1)&&it(n,new V0(n,3,t,n.f))}function Ob(n,e){var t;t=n.g,n.g=e,n.Db&4&&!(n.Db&1)&&it(n,new V0(n,4,t,n.g))}function eu(n,e){var t;t=n.i,n.i=e,n.Db&4&&!(n.Db&1)&&it(n,new V0(n,5,t,n.i))}function tu(n,e){var t;t=n.j,n.j=e,n.Db&4&&!(n.Db&1)&&it(n,new V0(n,6,t,n.j))}function H4(n,e){var t;t=n.j,n.j=e,n.Db&4&&!(n.Db&1)&&it(n,new V0(n,1,t,n.j))}function q4(n,e){var t;t=n.c,n.c=e,n.Db&4&&!(n.Db&1)&&it(n,new V0(n,4,t,n.c))}function U4(n,e){var t;t=n.k,n.k=e,n.Db&4&&!(n.Db&1)&&it(n,new V0(n,2,t,n.k))}function aC(n,e){var t;t=n.a,n.a=e,n.Db&4&&!(n.Db&1)&&it(n,new V0(n,0,t,n.a))}function e1(n,e){var t;t=n.s,n.s=e,n.Db&4&&!(n.Db&1)&&it(n,new UD(n,4,t,n.s))}function Z0(n,e){var t;t=n.t,n.t=e,n.Db&4&&!(n.Db&1)&&it(n,new UD(n,5,t,n.t))}function v$(n,e){var t;t=n.d,n.d=e,n.Db&4&&!(n.Db&1)&&it(n,new UD(n,2,t,n.d))}function G4(n,e){var t;t=n.F,n.F=e,n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,5,t,e))}function gk(n,e){var t;return t=u(ee((iM(),yA),n),57),t?t.gk(e):F(ki,Kn,1,e,5,1)}function Ome(n,e){var t;return t=mi(Fi(u(ee(n.g,e),8)),LX(u(ee(n.f,e),470).b)),t}function Ame(n,e){var t,i,r;return t=(i=(K1(),r=new nG,r),e&&uen(i,e),i),TQ(t,n),t}function yl(n,e){var t,i;return t=e in n.a,t&&(i=dl(n,e).re(),i)?i.a:null}function q$n(n,e,t){if(rm(n,t),!n.kl()&&t!=null&&!n.fk(t))throw T(new uL);return t}function U$n(n,e){return n.n=e,n.n?(n.f=new Z,n.e=new Z):(n.f=null,n.e=null),n}function G$n(n,e){if(n){e.n=n;var t=g2e(e);if(!t){rI[n]=[e];return}t.Rm=e}}function cd(n){var e;return x6(n==null||Array.isArray(n)&&(e=bk(n),!(e>=14&&e<=16))),n}function Ee(n,e){var t;return Jn(e),t=n[":"+e],x7(!!t,"Enum constant undefined: "+e),t}function we(n,e,t,i,r,c){var s;return s=bD(n,e),G$n(t,s),s.i=r?8:0,s.f=i,s.e=r,s.g=c,s}function aQ(n,e,t,i,r){this.d=e,this.k=i,this.f=r,this.o=-1,this.p=1,this.c=n,this.a=t}function dQ(n,e,t,i,r){this.d=e,this.k=i,this.f=r,this.o=-1,this.p=2,this.c=n,this.a=t}function bQ(n,e,t,i,r){this.d=e,this.k=i,this.f=r,this.o=-1,this.p=6,this.c=n,this.a=t}function wQ(n,e,t,i,r){this.d=e,this.k=i,this.f=r,this.o=-1,this.p=7,this.c=n,this.a=t}function gQ(n,e,t,i,r){this.d=e,this.j=i,this.e=r,this.o=-1,this.p=4,this.c=n,this.a=t}function z$n(n,e){var t,i,r,c;for(i=e,r=0,c=i.length;r<c;++r)t=i[r],$Dn(n.a,t);return n}function Eo(n){var e,t,i,r;for(t=n,i=0,r=t.length;i<r;++i)e=t[i],Pe(e);return new cCn(n)}function pQ(n){var e;return e=mi(Fi(n.d.d),n.c.d),vm(e,n.c.e.a,n.c.e.b),tt(e,n.c.d)}function mQ(n){var e;return e=mi(Fi(n.c.d),n.d.d),vm(e,n.d.e.a,n.d.e.b),tt(e,n.d.d)}function Lme(n){var e=/function(?:\s+([\w$]+))?\s*\(/,t=e.exec(n);return t&&t[1]||uK}function Nme(n,e,t){var i,r;return r=n.length,i=y.Math.min(t,r),Rnn(n,0,e,0,i,!0),e}function X$n(n,e,t){var i,r;for(r=e.Kc();r.Ob();)i=u(r.Pb(),74),fi(n,u(t.Kb(i),27))}function Dme(n,e){Ep(u(v(u(n.e,10),(cn(),Ft)),101))&&(Ln(),Yt(u(n.e,10).j,e))}function $me(){return DS(),S(C(ton,1),G,257,0,[eon,Qun,Yun,Jun,s_,non,Zun,Wun,Vun])}function xme(){return a1(),S(C(Ahn,1),G,265,0,[$H,Phn,Ihn,DH,Shn,Ohn,MO,Iv,Ov])}function Ab(){Ab=R,Aj=new ZL("BARYCENTER",0),Z8=new ZL(qXn,1),IO=new ZL(UXn,2)}function dC(){dC=R,Qhn=new QL("NO",0),WH=new QL(rin,1),Jhn=new QL("LOOK_BACK",2)}function bC(){bC=R,Osn=new HL("ARD",0),VI=new HL("MSD",1),V_=new HL("MANUAL",2)}function gr(){gr=R,Q8=new XL(n8,0),Vu=new XL("INPUT",1),Jc=new XL("OUTPUT",2)}function z4(){return Gq||(Gq=new Jqn,Dg(Gq,S(C(a2,1),Kn,134,0,[new rG]))),Gq}function Fs(n){if(!(n>=0))throw T(new Gn("tolerance ("+n+") must be >= 0"));return n}function V$n(n,e){var t;return L(e,44)?n.c.Mc(e):(t=wx(n,e),VC(n,e),t)}function Tr(n,e,t){return ad(n,e),zc(n,t),e1(n,0),Z0(n,1),u1(n,!0),c1(n,!0),n}function pk(n,e){var t;if(t=n.gc(),e<0||e>t)throw T(new F0(e,t));return new SV(n,e)}function wC(n,e){n.b=y.Math.max(n.b,e.d),n.e+=e.r+(n.a.c.length==0?0:n.c),nn(n.a,e)}function W$n(n){R0(n.c>=0),_8e(n.d,n.c)<0&&(n.a=n.a-1&n.d.a.length-1,n.b=n.d.c),n.c=-1}function gC(n){var e,t;for(t=n.c.Cc().Kc();t.Ob();)e=u(t.Pb(),16),e.$b();n.c.$b(),n.d=0}function Rme(n){var e,t,i,r;for(t=n.a,i=0,r=t.length;i<r;++i)e=t[i],HIn(e,e.length,null)}function r5(n,e){var t,i,r,c;for(i=e,r=0,c=i.length;r<c;++r)t=i[r],xt(n,t,n.c.b,n.c)}function J$n(n,e){var t,i;for(t=0,i=n.gc();t<i;++t)if(mc(e,n.Xb(t)))return t;return-1}function vQ(n){var e,t;if(n==0)return 32;for(t=0,e=1;!(e&n);e<<=1)++t;return t}function Mo(n,e){if(n<0)throw T(new Gn(e+" cannot be negative but was: "+n));return n}function Kme(n,e){typeof window===vy&&typeof window.$gwt===vy&&(window.$gwt[n]=e)}function pC(n,e){return Rhe(o5(n.a,e,Se(er(Uh,xh(Se(er(e==null?0:mt(e),Gh)),15)))))}function Bme(n,e,t){return W0(n,new m9n(e),new zbn,new v9n(t),S(C(xr,1),G,108,0,[]))}function Fme(){return io(),S(C(gdn,1),G,264,0,[_v,uE,sA,I9,fA,lA,hA,dU,cE])}function Q$n(){Q$n=R,wQn=S(C(ye,1),_e,28,15,[0,8,4,12,2,10,6,14,1,9,5,13,3,11,7,15])}function c5(){c5=R,$8=new _L("LAYER_SWEEP",0),pj=new _L(sB,1),Psn=new _L(kh,2)}function kQ(){kQ=R,gie=Fe(Fe(Fe(new ii,(Vi(),Vs),(tr(),b2)),Jh,Nw),Ac,Lw)}function Y$n(){Y$n=R,pie=Fe(Fe(Fe(new ii,(Vi(),Vs),(tr(),b2)),Jh,Nw),Ac,Lw)}function yQ(){yQ=R,mie=Fe(Fe(Fe(new ii,(Vi(),Vs),(tr(),b2)),Jh,Nw),Ac,Lw)}function Z$n(){Z$n=R,vie=Fe(Fe(Fe(new ii,(Vi(),Vs),(tr(),b2)),Jh,Nw),Ac,Lw)}function nxn(){nxn=R,kie=Fe(Fe(Fe(new ii,(Vi(),Vs),(tr(),b2)),Jh,Nw),Ac,Lw)}function exn(){exn=R,yie=Fe(Fe(Fe(new ii,(Vi(),Vs),(tr(),b2)),Jh,Nw),Ac,Lw)}function txn(){txn=R,Mie=Iu(Fe(Fe(new ii,(Vi(),Ac),(tr(),DI)),Fc,II),zr,NI)}function _me(n){var e,t;for(t=new M(zBn(n));t.a<t.c.c.length;)e=u(E(t),695),e._f()}function Hme(){LEn();for(var n=BF,e=0;e<arguments.length;e++)n.push(arguments[e])}function ixn(n){Lz(),this.g=new de,this.f=new de,this.b=new de,this.c=new Mb,this.i=n}function jQ(){this.f=new Ni,this.d=new ZG,this.c=new Ni,this.a=new Z,this.b=new Z}function rxn(n,e,t,i){this.ak(),this.a=e,this.b=n,this.c=null,this.c=new ZSn(this,e,t,i)}function k$(n,e,t,i,r){this.d=n,this.n=e,this.g=t,this.o=i,this.p=-1,r||(this.o=-2-i-1)}function cxn(){RX.call(this),this.n=-1,this.g=null,this.i=null,this.j=null,this.Bb|=Gs}function uxn(n){OM.call(this,n.Ad(64)?OX(0,bs(n.zd(),1)):Ey,n.yd()),this.b=1,this.a=n}function qme(n,e){return _p(),u(v(e,(lc(),A2)),17).a<n.gc()&&u(v(e,A2),17).a>=0}function EQ(n,e){n.r>0&&n.c<n.r&&(n.c+=e,n.i&&n.i.d>0&&n.g!=0&&EQ(n.i,e/n.r*n.i.d))}function MQ(n,e){var t;t=n.c,n.c=e,n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,1,t,n.c))}function y$(n,e){var t;t=n.c,n.c=e,n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,4,t,n.c))}function X4(n,e){var t;t=n.k,n.k=e,n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,2,t,n.k))}function j$(n,e){var t;t=n.D,n.D=e,n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,2,t,n.D))}function mC(n,e){var t;t=n.f,n.f=e,n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,8,t,n.f))}function vC(n,e){var t;t=n.i,n.i=e,n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,7,t,n.i))}function TQ(n,e){var t;t=n.a,n.a=e,n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,8,t,n.a))}function CQ(n,e){var t;t=n.b,n.b=e,n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,0,t,n.b))}function SQ(n,e){var t;t=n.b,n.b=e,n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,0,t,n.b))}function PQ(n,e){var t;t=n.c,n.c=e,n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,1,t,n.c))}function IQ(n,e){var t;t=n.d,n.d=e,n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,1,t,n.d))}function Ume(n,e,t){var i;n.b=e,n.a=t,i=(n.a&512)==512?new gjn:new iG,n.c=rSe(i,n.b,n.a)}function oxn(n,e){return Pl(n.e,e)?(dr(),a$(e)?new eT(e,n):new k7(e,n)):new $Tn(e,n)}function Gme(n){var e,t;return 0>n?new Az:(e=n+1,t=new vNn(e,n),new uV(null,t))}function zme(n,e){Ln();var t;return t=new ap(1),Si(n)?Lr(t,n,e):Vc(t.f,n,e),new eL(t)}function Xme(n,e){var t,i;return t=n.c,i=e.e[n.p],i>0?u(sn(t.a,i-1),10):null}function Vme(n,e){var t,i;return t=n.o+n.p,i=e.o+e.p,t<i?-1:t==i?0:1}function Wme(n){var e;return e=v(n,(W(),st)),L(e,167)?TKn(u(e,167)):null}function sxn(n){var e;return n=y.Math.max(n,2),e=JQ(n),n>e?(e<<=1,e>0?e:W5):e}function E$(n){switch(FX(n.e!=3),n.e){case 2:return!1;case 0:return!0}return i4e(n)}function fxn(n,e){var t;return L(e,8)?(t=u(e,8),n.a==t.a&&n.b==t.b):!1}function Jme(n,e){var t;t=new kE,u(e.b,68),u(e.b,68),u(e.b,68),nu(e.a,new RV(n,t,e))}function hxn(n,e){var t,i;for(i=e.vc().Kc();i.Ob();)t=u(i.Pb(),44),zk(n,t.ld(),t.md())}function OQ(n,e){var t;t=n.d,n.d=e,n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,11,t,n.d))}function kC(n,e){var t;t=n.j,n.j=e,n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,13,t,n.j))}function AQ(n,e){var t;t=n.b,n.b=e,n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,21,t,n.b))}function Qme(n,e){(UT(),Uf?null:e.c).length==0&&CSn(e,new RU),Lr(n.a,Uf?null:e.c,e)}function Yme(n,e){e.Ug("Hierarchical port constraint processing",1),g9e(n),xNe(n),e.Vg()}function Lb(){Lb=R,u0=new FL("START",0),va=new FL("MIDDLE",1),c0=new FL("END",2)}function yC(){yC=R,BO=new uX("P1_NODE_PLACEMENT",0),N2=new uX("P2_EDGE_ROUTING",1)}function Q1(){Q1=R,y3=new lt(Wtn),jI=new lt(TXn),L8=new lt(CXn),lj=new lt(SXn)}function Nb(n){var e;return RN(n.f.g,n.d),oe(n.b),n.c=n.a,e=u(n.a.Pb(),44),n.b=UQ(n),e}function LQ(n){var e;return n.b==null?(Gl(),Gl(),dE):(e=n.ul()?n.tl():n.sl(),e)}function lxn(n,e){var t;return t=e==null?-1:qr(n.b,e,0),t<0?!1:(T$(n,t),!0)}function _s(n,e){var t;return Jn(e),t=e.g,n.b[t]?!1:($t(n.b,t,e),++n.c,!0)}function jC(n,e){var t,i;return t=1-e,i=n.a[t],n.a[t]=i.a[e],i.a[e]=n,n.b=!0,i.b=!1,i}function Zme(n,e){var t,i;for(i=e.Kc();i.Ob();)t=u(i.Pb(),272),n.b=!0,fi(n.e,t),t.b=n}function nve(n,e){var t,i;return t=u(v(n,(cn(),Hw)),8),i=u(v(e,Hw),8),bt(t.b,i.b)}function M$(n,e,t){var i,r,c;return c=e>>5,r=e&31,i=vi(U1(n.n[t][c],Se(Ks(r,1))),3),i}function axn(n,e,t){var i,r,c;for(c=n.a.length-1,r=n.b,i=0;i<t;r=r+1&c,++i)$t(e,i,n.a[r])}function T$(n,e){var t;t=Yl(n.b,n.b.c.length-1),e<n.b.c.length&&(Go(n.b,e,t),$_n(n,e))}function dxn(n,e){var t;return t=u(ee(n.c,e),467),t||(t=new Jyn,t.c=e,Ve(n.c,t.c,t)),t}function eve(n,e){var t,i;i=new Z,t=e;do Fn(i.c,t),t=u(ee(n.k,t),18);while(t);return i}function C$(n,e,t){var i;return i=new Z,fen(n,e,i,t,!0,!0),n.b=new EC(i.c.length),i}function ud(n,e){var t,i;for(t=n.Pc(),R4(t,0,t.length,e),i=0;i<t.length;i++)n.hd(i,t[i])}function NQ(n){var e,t;for(t=new ne(n);t.e!=t.i.gc();)e=u(ue(t),27),eu(e,0),tu(e,0)}function bxn(n){this.e=n,this.d=new zE(Q0(Cp(this.e).gc())),this.c=this.e.a,this.b=this.e.c}function EC(n){this.b=n,this.a=F(ye,_e,28,n+1,15,1),this.c=F(ye,_e,28,n,15,1),this.d=0}function wxn(n,e,t){S$n.call(this,e,t),this.d=F(Qh,b1,10,n.a.c.length,0,1),Rf(n.a,this.d)}function gxn(n,e,t){pJ.call(this,n,e,t),this.a=new de,this.b=new de,this.d=new q7n(this)}function pxn(n){lW.call(this),this.b=$(B(v(n,(cn(),Ws)))),this.a=u(v(n,$l),223)}function S$(n,e){var t;return L(e,16)?(t=u(e,16),n.Gc(t)):b$(n,u(Pe(e),20).Kc())}function tve(n,e){qt(ut(new Cn(null,new On(new qa(n.b),1)),new fTn(n,e)),new lTn(n,e))}function ive(n,e){e.Ug(HXn,1),qt(rc(new Cn(null,new On(n.b,16)),new Swn),new Pwn),e.Vg()}function mt(n){return Si(n)?t1(n):$0(n)?pp(n):D0(n)?PSn(n):gW(n)?n.Hb():fW(n)?lb(n):YW(n)}function mxn(n){var e,t;for(t=n.c.a.ec().Kc();t.Ob();)e=u(t.Pb(),219),efe(e,new RIn(e.f))}function DQ(n){var e,t;for(t=n.c.a.ec().Kc();t.Ob();)e=u(t.Pb(),219),tfe(e,new QFn(e.e))}function zc(n,e){var t;t=n.zb,n.zb=e,n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,1,t,n.zb))}function MC(n,e){var t;t=n.xb,n.xb=e,n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,3,t,n.xb))}function TC(n,e){var t;t=n.yb,n.yb=e,n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,2,t,n.yb))}function Rt(n,e){var t,i;t=(i=new fL,i),t.n=e,ve((!n.s&&(n.s=new q(ku,n,21,17)),n.s),t)}function jt(n,e){var t,i;i=(t=new rV,t),i.n=e,ve((!n.s&&(n.s=new q(ku,n,21,17)),n.s),i)}function Ki(n,e){var t,i,r;for(Jn(e),t=!1,r=e.Kc();r.Ob();)i=r.Pb(),t=t|n.Fc(i);return t}function vxn(n){var e,t,i;for(e=0,i=n.Kc();i.Ob();)t=i.Pb(),e+=t!=null?mt(t):0,e=~~e;return e}function P$(n,e){var t=n.a,i=0;for(var r in t)t.hasOwnProperty(r)&&(e[i++]=r);return e}function kxn(n){var e;return n==0?"UTC":(n<0?(n=-n,e="UTC+"):e="UTC-",e+YDn(n))}function $Q(n){return n.a<54?n.f<0?-1:n.f>0?1:0:(!n.c&&(n.c=J7(vc(n.f))),n.c).e}function yxn(n,e){e?n.B==null&&(n.B=n.D,n.D=null):n.B!=null&&(n.D=n.B,n.B=null)}function rve(n,e){return nm(),n==r0&&e==Ow||n==Ow&&e==r0||n==d2&&e==Iw||n==Iw&&e==d2}function cve(n,e){return nm(),n==r0&&e==Iw||n==r0&&e==d2||n==Ow&&e==d2||n==Ow&&e==Iw}function jxn(n,e){return Cf(),Fs(_f),y.Math.abs(0-e)<=_f||e==0||isNaN(0)&&isNaN(e)?0:n/e}function Exn(n,e){return $(B(ho(Nk(_r(new Cn(null,new On(n.c.b,16)),new O7n(n)),e))))}function xQ(n,e){return $(B(ho(Nk(_r(new Cn(null,new On(n.c.b,16)),new I7n(n)),e))))}function uve(){return pr(),S(C(rH,1),G,259,0,[ZI,cs,R8,nO,yv,v2,K8,vv,kv,eO])}function ove(){return ps(),S(C(Fhn,1),G,243,0,[SO,Pj,Ij,Rhn,Khn,xhn,Bhn,PO,p0,Uw])}function sve(n,e){var t;e.Ug("General Compactor",1),t=d8e(u(z(n,(oa(),kq)),393)),t.Cg(n)}function fve(n,e){var t,i;return t=u(z(n,(oa(),_O)),17),i=u(z(e,_O),17),jc(t.a,i.a)}function RQ(n,e,t){var i,r;for(r=ge(n,0);r.b!=r.d.c;)i=u(be(r),8),i.a+=e,i.b+=t;return n}function u5(n,e,t){var i;for(i=n.b[t&n.f];i;i=i.b)if(t==i.a&&sh(e,i.g))return i;return null}function o5(n,e,t){var i;for(i=n.c[t&n.f];i;i=i.d)if(t==i.f&&sh(e,i.i))return i;return null}function hve(n,e,t){var i,r,c;for(i=0,r=0;r<t;r++)c=e[r],n[r]=c<<1|i,i=c>>>31;i!=0&&(n[t]=i)}function I$(n,e,t,i,r,c){var s;this.c=n,s=new Z,gZ(n,s,e,n.b,t,i,r,c),this.a=new xi(s,0)}function Mxn(){this.c=new XE(0),this.b=new XE(Trn),this.d=new XE(lVn),this.a=new XE(QK)}function Vo(n,e,t,i,r,c,s){je.call(this,n,e),this.d=t,this.e=i,this.c=r,this.b=c,this.a=Af(s)}function Ut(n,e,t,i,r,c,s,f,h,l,a,d,g){return I_n(n,e,t,i,r,c,s,f,h,l,a,d,g),sx(n,!1),n}function lve(n){return n.b.c.i.k==(Vn(),Zt)?u(v(n.b.c.i,(W(),st)),12):n.b.c}function Txn(n){return n.b.d.i.k==(Vn(),Zt)?u(v(n.b.d.i,(W(),st)),12):n.b.d}function ave(n){var e;return e=KT(n),ob(e.a,0)?(QE(),QE(),PQn):(QE(),new uSn(e.b))}function O$(n){var e;return e=wJ(n),ob(e.a,0)?(A0(),A0(),ZF):(A0(),new SN(e.b))}function A$(n){var e;return e=wJ(n),ob(e.a,0)?(A0(),A0(),ZF):(A0(),new SN(e.c))}function Cxn(n){switch(n.g){case 2:return en(),Wn;case 4:return en(),Zn;default:return n}}function Sxn(n){switch(n.g){case 1:return en(),ae;case 3:return en(),Xn;default:return n}}function Pxn(n){switch(n.g){case 0:return new hmn;case 1:return new lmn;default:return null}}function Hp(){Hp=R,$_=new Lt("edgelabelcenterednessanalysis.includelabel",(_n(),ga))}function KQ(){KQ=R,Tie=ah(WTn(Fe(Fe(new ii,(Vi(),Ac),(tr(),DI)),Fc,II),zr),NI)}function Ixn(){Ixn=R,Iie=ah(WTn(Fe(Fe(new ii,(Vi(),Ac),(tr(),DI)),Fc,II),zr),NI)}function L$(){L$=R,D9=new ljn,EU=S(C(ku,1),f2,179,0,[]),Joe=S(C(Ps,1),Ucn,62,0,[])}function V4(){V4=R,dj=new Xz("TO_INTERNAL_LTR",0),L_=new Xz("TO_INPUT_DIRECTION",1)}function Au(){Au=R,Bon=new wwn,Ron=new gwn,Kon=new pwn,xon=new mwn,Fon=new vwn,_on=new kwn}function dve(n,e){e.Ug(HXn,1),_Y(Qhe(new OE((u6(),new kD(n,!1,!1,new HU))))),e.Vg()}function bve(n,e,t){t.Ug("DFS Treeifying phase",1),A8e(n,e),ICe(n,e),n.a=null,n.b=null,t.Vg()}function mk(n,e){return _n(),Si(n)?KJ(n,Ae(e)):$0(n)?tD(n,B(e)):D0(n)?rwe(n,un(e)):n.Fd(e)}function s5(n,e){var t,i;for(Jn(e),i=e.vc().Kc();i.Ob();)t=u(i.Pb(),44),n.zc(t.ld(),t.md())}function wve(n,e,t){var i;for(i=t.Kc();i.Ob();)if(!_T(n,e,i.Pb()))return!1;return!0}function gve(n,e,t,i,r){var c;return t&&(c=At(e.Dh(),n.c),r=t.Rh(e,-1-(c==-1?i:c),null,r)),r}function pve(n,e,t,i,r){var c;return t&&(c=At(e.Dh(),n.c),r=t.Th(e,-1-(c==-1?i:c),null,r)),r}function Oxn(n){var e;if(n.b==-2){if(n.e==0)e=-1;else for(e=0;n.a[e]==0;e++);n.b=e}return n.b}function mve(n){if(Jn(n),n.length==0)throw T(new th("Zero length BigInteger"));MPe(this,n)}function BQ(n){this.i=n.gc(),this.i>0&&(this.g=this.aj(this.i+(this.i/8|0)+1),n.Qc(this.g))}function Axn(n,e,t){this.g=n,this.d=e,this.e=t,this.a=new Z,OEe(this),Ln(),Yt(this.a,null)}function FQ(n,e){e.q=n,n.d=y.Math.max(n.d,e.r),n.b+=e.d+(n.a.c.length==0?0:n.c),nn(n.a,e)}function W4(n,e){var t,i,r,c;return r=n.c,t=n.c+n.b,c=n.d,i=n.d+n.a,e.a>r&&e.a<t&&e.b>c&&e.b<i}function nw(n,e){var t,i;for(i=ge(n,0);i.b!=i.d.c;)t=u(be(i),8),t.a+=e.a,t.b+=e.b;return n}function vve(n){var e,t,i;for(i=0,t=new M(n.b);t.a<t.c.c.length;)e=u(E(t),30),e.p=i,++i}function kve(n){var e,t,i;return n.j==(en(),Xn)&&(e=mHn(n),t=Su(e,Zn),i=Su(e,Wn),i||i&&t)}function yve(n,e){var t;return t=enn(n),Lnn(new V(t.c,t.d),new V(t.b,t.a),n.Mf(),e,n.ag())}function _Q(n,e){var t;t=u(e,190),nd(t,"x",n.i),nd(t,"y",n.j),nd(t,dF,n.g),nd(t,aF,n.f)}function CC(n,e){var t;L(e,85)?(u(n.c,79).Gk(),t=u(e,85),hxn(n,t)):u(n.c,79).Wb(e)}function f5(n,e){var t,i;for(Jn(e),i=n.vc().Kc();i.Ob();)t=u(i.Pb(),44),e.Yd(t.ld(),t.md())}function jve(n,e){var t;for(Pe(e);n.Ob();)if(t=n.Pb(),!qQ(u(t,10)))return!1;return!0}function Eve(){var n;return r_||(r_=new Byn,n=new VD(""),Kle(n,(a4(),$un)),Qme(r_,n)),r_}function Lxn(n,e){return W0(new w9n(n),new g9n(e),new p9n(e),new Gbn,S(C(xr,1),G,108,0,[]))}function SC(){SC=R,Eq=new iN(kh,0),o1n=new iN("POLAR_COORDINATE",1),u1n=new iN("ID",2)}function PC(){PC=R,Uhn=new VL("EQUALLY",0),GH=new VL(eP,1),Ghn=new VL("NORTH_SOUTH",2)}function J4(){J4=R,A8=new Lt("debugSVG",(_n(),!1)),uon=new Lt("overlapsExisted",!0)}function Nxn(){Nxn=R,kue=Me((l1(),S(C(vue,1),G,285,0,[uan,yi,Zr,$2,Qi,It,N3,Vf])))}function Dxn(){Dxn=R,Ioe=Me((Mm(),S(C(kA,1),G,245,0,[vU,mA,vA,pA,mU,gA,wA,pU])))}function $xn(){$xn=R,hne=Me((LS(),S(C(Tsn,1),G,276,0,[F_,q_,B_,z_,H_,__,G_,U_])))}function xxn(){return F5(),S(C(CDe,1),G,262,0,[YH,sln,aln,dln,lln,oln,bln,cln,hln,fln,uln])}function od(n,e,t){var i,r;return r=u($6(n.d,e),17),i=u($6(n.b,t),17),!r||!i?null:Bp(n,r.a,i.a)}function Rxn(n,e){var t;return t=CR(z4(),n),t?(ht(e,(He(),q2),t),!0):!1}function Kxn(n){return K0(),n.A.Hc((go(),Qw))&&!n.B.Hc((io(),uE))?DKn(n):null}function Bxn(){this.a=u(rn((Us(),kI)),17).a,this.c=$(B(rn(yI))),this.b=$(B(rn(v_)))}function sd(n){this.f=n,this.e=new CJ(this.f.i),this.a=this.e,this.b=UQ(this),this.d=this.f.g}function Bt(n,e){QM.call(this,Qoe,n,e),this.b=this,this.a=ru(n.Dh(),$n(this.e.Dh(),this.c))}function Mve(n,e){var t,i;for(i=new M(e.b);i.a<i.c.c.length;)t=u(E(i),30),n.a[t.p]=ije(t)}function To(n,e){var t;for(t=0;t<e.j.c.length;t++)u(lk(n,t),21).Gc(u(lk(e,t),16));return n}function N$(n,e,t,i){var r;r=n.a.length,t>r?t=r:zn(e,t+1),n.a=qo(n.a,0,e)+(""+i)+DW(n.a,t)}function Fxn(n,e){n.a=nr(n.a,1),n.c=y.Math.min(n.c,e),n.b=y.Math.max(n.b,e),n.d=nr(n.d,e)}function Tve(n,e){return e<n.b.gc()?u(n.b.Xb(e),10):e==n.b.gc()?n.a:u(sn(n.e,e-n.b.gc()-1),10)}function Cve(n,e,t){return bt(vp(pm(n),new V(e.e.a,e.e.b)),vp(pm(n),new V(t.e.a,t.e.b)))}function Sve(n,e,t){return n==(Ab(),IO)?new Wpn:to(e,1)!=0?new jz(t.length):new Wjn(t.length)}function it(n,e){var t,i,r;if(t=n.th(),t!=null&&n.wh())for(i=0,r=t.length;i<r;++i)t[i].dj(e)}function Pve(n,e){var t,i,r;for(t=n.c.Xe(),r=e.Kc();r.Ob();)i=r.Pb(),n.a.Yd(t,i);return n.b.Kb(t)}function Q4(n,e){var t,i;for(t=n,i=Hi(t).e;i;){if(t=i,t==e)return!0;i=Hi(t).e}return!1}function Y1(n){var e;return e=n.h,e==0?n.l+n.m*o3:e==Ol?n.l+n.m*o3-vd:n}function Ive(n,e,t){var i,r;return i=n.a.f[e.p],r=n.a.f[t.p],i<r?-1:i==r?0:1}function Ove(n,e){var t,i;for(i=new M(e);i.a<i.c.c.length;)t=u(E(i),72),nn(n.d,t),Yye(n,t)}function Ave(n,e){var t;e.Ug("Edge and layer constraint edge reversal",1),t=FSe(n),pLe(t),e.Vg()}function Lve(n,e){var t,i;for(i=new ne(n);i.e!=i.i.gc();)t=u(ue(i),27),Bo(t,t.i+e.b,t.j+e.d)}function _xn(n){var e;n.d==null?(++n.e,n.f=0,ZRn(null)):(++n.e,e=n.d,n.d=null,n.f=0,ZRn(e))}function Nve(n){var e;if(n.a==n.b.a)throw T(new nc);return e=n.a,n.c=e,n.a=u(as(n.a.e),227),e}function Un(n,e){var t;return n.Db&e?(t=Bx(n,e),t==-1?n.Eb:cd(n.Eb)[t]):null}function hc(n,e){var t,i;return t=(i=new cG,i),t.G=e,!n.rb&&(n.rb=new H0(n,Mf,n)),ve(n.rb,t),t}function Je(n,e){var t,i;return t=(i=new xE,i),t.G=e,!n.rb&&(n.rb=new H0(n,Mf,n)),ve(n.rb,t),t}function Hxn(n,e,t,i){L(n.Cb,184)&&(u(n.Cb,184).tb=null),zc(n,t),e&&JEe(n,e),i&&n.gl(!0)}function qxn(n,e){n.c&&(cUn(n,e,!0),qt(new Cn(null,new On(e,16)),new x7n(n))),cUn(n,e,!1)}function Dve(n){wCn();var e;return vMn(QH,n)||(e=new T3n,e.a=n,gV(QH,n,e)),u(Mr(QH,n),645)}function IC(n){var e;if(n.g>1||n.Ob())return++n.a,n.g=0,e=n.i,n.Ob(),e;throw T(new nc)}function Uxn(n){switch(n.a.g){case 1:return new WMn;case 3:return new WBn;default:return new s8n}}function HQ(n,e){switch(e){case 1:return!!n.n&&n.n.i!=0;case 2:return n.k!=null}return bJ(n,e)}function vc(n){return Sy<n&&n<vd?n<0?y.Math.ceil(n):y.Math.floor(n):Y1(sCe(n))}function vk(n){var e;return n<128?(tIn(),e=gun[n],!e&&(e=gun[n]=new yG(n)),e):new yG(n)}function $ve(n,e){var t;try{e.de()}catch(i){if(i=Ot(i),L(i,82))t=i,Fn(n.c,t);else throw T(i)}}function ds(n){var e,t,i,r;return r=n,i=0,r<0&&(r+=vd,i=Ol),t=wi(r/o3),e=wi(r-t*o3),Yc(e,t,i)}function kk(n){var e,t,i;for(i=0,t=new dp(n.a);t.a<t.c.a.length;)e=n5(t),n.b.Hc(e)&&++i;return i}function xve(n){var e,t,i;for(e=1,i=n.Kc();i.Ob();)t=i.Pb(),e=31*e+(t==null?0:mt(t)),e=~~e;return e}function Ur(n,e){var t;return e&&(t=e.nf(),t.dc()||(n.q?s5(n.q,t):n.q=new BTn(t))),n}function Gxn(n,e){var t;return t=n.a.get(e),t===void 0?++n.d:(Iae(n.a,e),--n.c,++n.b.g),t}function Rve(n,e){var t,i,r;return t=e.p-n.p,t==0?(i=n.f.a*n.f.b,r=e.f.a*e.f.b,bt(i,r)):t}function Kve(n,e){var t,i;return t=n.j,i=e.j,t!=i?t.g-i.g:n.p==e.p?0:t==(en(),Xn)?n.p-e.p:e.p-n.p}function h5(n,e,t,i,r){$t(n.c[e.g],t.g,i),$t(n.c[t.g],e.g,i),$t(n.b[e.g],t.g,r),$t(n.b[t.g],e.g,r)}function fd(n,e,t){this.b=(Jn(n),n),this.d=(Jn(e),e),this.e=(Jn(t),t),this.c=this.d+(""+this.e)}function Y4(n,e){this.b=n,this.e=e,this.d=e.j,this.f=(dr(),u(n,69).xk()),this.k=ru(e.e.Dh(),n)}function yk(n){this.n=new Z,this.e=new Mt,this.j=new Mt,this.k=new Z,this.f=new Z,this.p=n}function zxn(n){n.r=new ni,n.w=new ni,n.t=new Z,n.i=new Z,n.d=new ni,n.a=new mp,n.c=new de}function Db(){Db=R,rj=new sM("UP",0),ij=new sM(_K,1),l_=new sM(s3,2),a_=new sM(f3,3)}function Z4(){Z4=R,cH=new UL("ONE_SIDED",0),uH=new UL("TWO_SIDED",1),mj=new UL("OFF",2)}function D$(){D$=R,L1n=new fX("EQUAL_BETWEEN_STRUCTURES",0),N1n=new fX("TO_ASPECT_RATIO",1)}function Xxn(){Xxn=R,Yte=Me((a1(),S(C(Ahn,1),G,265,0,[$H,Phn,Ihn,DH,Shn,Ohn,MO,Iv,Ov])))}function Vxn(){Vxn=R,hoe=Me((io(),S(C(gdn,1),G,264,0,[_v,uE,sA,I9,fA,lA,hA,dU,cE])))}function Wxn(){Wxn=R,noe=Me((lw(),S(C(yr,1),G,95,0,[Qs,xl,Ys,nf,el,Ts,No,Zs,Ms])))}function Jxn(){Jxn=R,UQn=Me((DS(),S(C(ton,1),G,257,0,[eon,Qun,Yun,Jun,s_,non,Zun,Wun,Vun])))}function qQ(n){var e;return e=u(v(n,(W(),gc)),64),n.k==(Vn(),Zt)&&(e==(en(),Wn)||e==Zn)}function Bve(n,e,t){var i,r;r=u(v(n,(cn(),Rr)),75),r&&(i=new Tu,J$(i,0,r),nw(i,t),Ki(e,i))}function OC(n,e,t){var i,r,c,s;s=Hi(n),i=s.d,r=s.c,c=n.n,e&&(c.a=c.a-i.b-r.a),t&&(c.b=c.b-i.d-r.b)}function Fve(n,e){var t,i;return t=n.f.c.length,i=e.f.c.length,t<i?-1:t==i?0:1}function _ve(n){return n.b.c.length!=0&&u(sn(n.b,0),72).a?u(sn(n.b,0),72).a:vD(n)}function Hve(n){var e;if(n){if(e=n,e.dc())throw T(new nc);return e.Xb(e.gc()-1)}return DAn(n.Kc())}function Qxn(n){var e;return Ec(n,0)<0&&(n=VV(n)),e=Se(U1(n,32)),64-(e!=0?iy(e):iy(Se(n))+32)}function qve(){return UT(),Uf?new VD(null):wHn(Eve(),"com.google.common.base.Strings")}function $$(n,e,t,i){return t==1?(!n.n&&(n.n=new q(Sr,n,1,7)),cr(n.n,e,i)):fnn(n,e,t,i)}function jk(n,e){var t,i;return i=(t=new UA,t),zc(i,e),ve((!n.A&&(n.A=new Cu(fu,n,7)),n.A),i),i}function Uve(n,e,t){var i,r,c,s;return c=null,s=e,r=Sb(s,gF),i=new wTn(n,t),c=(yke(i.a,i.b,r),r),c}function x$(n){var e;return(!n.a||!(n.Bb&1)&&n.a.Vh())&&(e=gs(n),L(e,156)&&(n.a=u(e,156))),n.a}function Ek(n,e){var t,i;for(Jn(e),i=e.Kc();i.Ob();)if(t=i.Pb(),!n.Hc(t))return!1;return!0}function Gve(n,e){var t,i,r;return t=n.l+e.l,i=n.m+e.m+(t>>22),r=n.h+e.h+(i>>22),Yc(t&ro,i&ro,r&Ol)}function Yxn(n,e){var t,i,r;return t=n.l-e.l,i=n.m-e.m+(t>>22),r=n.h-e.h+(i>>22),Yc(t&ro,i&ro,r&Ol)}function zve(n){var e,t;for(BLe(n),t=new M(n.d);t.a<t.c.c.length;)e=u(E(t),105),e.i&&Dje(e)}function Ot(n){var e;return L(n,82)?n:(e=n&&n.__java$exception,e||(e=new GRn(n),Nyn(e)),e)}function Mk(n){if(L(n,193))return u(n,123);if(n)return null;throw T(new fp(MWn))}function UQ(n){return n.a.Ob()?!0:n.a!=n.e?!1:(n.a=new VJ(n.f.f),n.a.Ob())}function Zxn(n,e){if(e==null)return!1;for(;n.a!=n.b;)if(rt(e,xC(n)))return!0;return!1}function nRn(n,e){return!n||!e||n==e?!1:FKn(n.d.c,e.d.c+e.d.b)&&FKn(e.d.c,n.d.c+n.d.b)}function hi(n,e){var t,i;return t=e.Pc(),i=t.length,i==0?!1:(GV(n.c,n.c.length,t),!0)}function Xve(n,e,t){var i,r;for(r=e.vc().Kc();r.Ob();)i=u(r.Pb(),44),n.yc(i.ld(),i.md(),t);return n}function R$(n){var e,t,i;for(e=new Mt,i=ge(n.d,0);i.b!=i.d.c;)t=u(be(i),65),Re(e,t.c);return e}function eRn(n,e){var t,i;for(i=new M(n.b);i.a<i.c.c.length;)t=u(E(i),72),U(t,(W(),S3),e)}function Vve(n,e,t){var i,r;for(r=new M(n.b);r.a<r.c.c.length;)i=u(E(r),27),Bo(i,i.i+e,i.j+t)}function tRn(n,e){if(!n)throw T(new Gn(B5("value already present: %s",S(C(ki,1),Kn,1,5,[e]))))}function Wve(n,e,t,i,r){return Vg(),y.Math.min(OGn(n,e,t,i,r),OGn(t,i,n,e,HM(new V(r.a,r.b))))}function Jve(n,e,t,i){u(t.b,68),u(t.b,68),u(i.b,68),u(i.b,68),u(i.b,68),nu(i.a,new xV(n,e,i))}function Qve(n,e){n.d==(ci(),Kr)||n.d==us?u(e.a,60).c.Fc(u(e.b,60)):u(e.b,60).c.Fc(u(e.a,60))}function iRn(n,e){var t;return t=Lh(e.a.gc()),qt(fC(new Cn(null,new On(e,1)),n.i),new oTn(n,t)),t}function rRn(n){var e,t;return t=(e=new UA,e),zc(t,"T"),ve((!n.d&&(n.d=new Cu(fu,n,11)),n.d),t),t}function GQ(n){var e,t,i,r;for(e=1,t=0,r=n.gc();t<r;++t)i=n.Vi(t),e=31*e+(i==null?0:mt(i));return e}function cRn(n,e,t,i){var r;return Z7(e,n.e.Rd().gc()),Z7(t,n.c.Rd().gc()),r=n.a[e][t],$t(n.a[e],t,i),r}function S(n,e,t,i,r){return r.Rm=n,r.Sm=e,r.Tm=Q2,r.__elementTypeId$=t,r.__elementTypeCategory$=i,r}function AC(){AC=R,x_=new dM(kh,0),HI=new dM(GXn,1),qI=new dM(zXn,2),wj=new dM("BOTH",3)}function xf(){xf=R,j3=new bM(qm,0),lv=new bM(s3,1),av=new bM(f3,2),R_=new bM("TOP",3)}function nm(){nm=R,r0=new lM("Q1",0),Ow=new lM("Q4",1),Iw=new lM("Q2",2),d2=new lM("Q3",3)}function LC(){LC=R,JH=new YL("OFF",0),Av=new YL("SINGLE_EDGE",1),Gw=new YL("MULTI_EDGE",2)}function Tk(){Tk=R,YO=new lX("MINIMUM_SPANNING_TREE",0),ian=new lX("MAXIMUM_SPANNING_TREE",1)}function qp(){qp=R,bue=new mmn,due=new pmn}function zQ(n){var e,t;return t=(K1(),e=new jE,e),n&&ve((!n.a&&(n.a=new q(Tt,n,6,6)),n.a),t),t}function K$(n){var e,t,i,r;for(r=new Z,i=n.Kc();i.Ob();)t=u(i.Pb(),27),e=aw(t),hi(r,e);return r}function Yve(n,e){var t,i;for(CT(e,"predicate"),i=0;n.Ob();i++)if(t=n.Pb(),e.Lb(t))return i;return-1}function Up(n,e){var t,i;if(i=0,n<64&&n<=e)for(e=e<64?e:63,t=n;t<=e;t++)i=lf(i,Ks(1,t));return i}function Zve(n,e){var t,i;return t=n.c,i=e.e[n.p],i<t.a.c.length-1?u(sn(t.a,i+1),10):null}function XQ(n){Ln();var e,t,i;for(i=0,t=n.Kc();t.Ob();)e=t.Pb(),i=i+(e!=null?mt(e):0),i=i|0;return i}function n6e(n){var e,t,i;return e=u(n.e&&n.e(),9),i=(t=e.slice(),u(o$(t,e),9)),new _o(e,i,e.length)}function uRn(n,e,t){var i;Hu(n.a),nu(t.i,new Ikn(n)),i=new NM(u(ee(n.a,e.b),68)),JKn(n,i,e),t.f=i}function e6e(n){var e;Ub(n,!0),e=d1,kt(n,(cn(),Cv))&&(e+=u(v(n,Cv),17).a),U(n,Cv,Y(e))}function t6e(n){var e;return e=new ul,e.a=n,e.b=a6e(n),e.c=F(fn,J,2,2,6,1),e.c[0]=kxn(n),e.c[1]=kxn(n),e}function oRn(n){var e,t,i;return t=n.n,i=n.o,e=n.d,new Ho(t.a-e.b,t.b-e.d,i.a+(e.b+e.c),i.b+(e.d+e.a))}function i6e(n,e){return!n||!e||n==e?!1:xb(n.b.c,e.b.c+e.b.b)<0&&xb(e.b.c,n.b.c+n.b.b)<0}function sRn(n){switch(n.g){case 1:return Sa;case 2:return nl;case 3:return Zj;default:return nE}}function r6e(n){switch(u(v(n,(cn(),ou)),171).g){case 2:case 4:return!0;default:return!1}}function Ck(n,e,t){switch(t.g){case 2:n.b=e;break;case 1:n.c=e;break;case 4:n.d=e;break;case 3:n.a=e}}function VQ(n,e){switch(e){case 0:!n.o&&(n.o=new Ou((Mc(),il),C1,n,0)),n.o.c.$b();return}cR(n,e)}function c6e(n,e){var t,i;return t=u(u(ee(n.g,e.a),42).a,68),i=u(u(ee(n.g,e.b),42).a,68),xUn(t,i)}function WQ(n,e,t){var i;if(i=n.gc(),e>i)throw T(new F0(e,i));return n.Si()&&(t=gAn(n,t)),n.Ei(e,t)}function em(n,e,t,i,r){var c,s;for(s=t;s<=r;s++)for(c=e;c<=i;c++)Fg(n,c,s)||xS(n,c,s,!0,!1)}function u6e(n){Vg();var e,t,i;for(t=F(Ei,J,8,2,0,1),i=0,e=0;e<2;e++)i+=.5,t[e]=Z9e(i,n);return t}function tm(n){var e,t,i;return e=~n.l+1&ro,t=~n.m+(e==0?1:0)&ro,i=~n.h+(e==0&&t==0?1:0)&Ol,Yc(e,t,i)}function JQ(n){var e;if(n<0)return Wi;if(n==0)return 0;for(e=W5;!(e&n);e>>=1);return e}function B$(n,e,t){return n>=128?!1:n<64?M6(vi(Ks(1,n),t),0):M6(vi(Ks(1,n-64),e),0)}function Sk(n,e,t){return t==null?(!n.q&&(n.q=new de),Kp(n.q,e)):(!n.q&&(n.q=new de),Ve(n.q,e,t)),n}function U(n,e,t){return t==null?(!n.q&&(n.q=new de),Kp(n.q,e)):(!n.q&&(n.q=new de),Ve(n.q,e,t)),n}function fRn(n){var e,t;return t=new zT,Ur(t,n),U(t,(Q1(),y3),n),e=new de,$Ie(n,t,e),fLe(n,t,e),t}function hRn(n){var e,t;return e=n.t-n.k[n.o.p]*n.d+n.j[n.o.p]>n.f,t=n.u+n.e[n.o.p]*n.d>n.f*n.s*n.d,e||t}function lRn(n,e){var t,i,r,c;for(t=!1,i=n.a[e].length,c=0;c<i-1;c++)r=c+1,t=t|N8e(n,e,c,r);return t}function o6e(n){var e,t,i,r;for(t=n.a,i=0,r=t.length;i<r;++i)e=t[i],mRn(n,e,(en(),ae)),mRn(n,e,Xn)}function aRn(){aRn=R,Ene=Me((pr(),S(C(rH,1),G,259,0,[ZI,cs,R8,nO,yv,v2,K8,vv,kv,eO])))}function dRn(){dRn=R,tie=Me((ps(),S(C(Fhn,1),G,243,0,[SO,Pj,Ij,Rhn,Khn,xhn,Bhn,PO,p0,Uw])))}function hd(){hd=R,Q_=new qL(kh,0),mv=new qL("INCOMING_ONLY",1),m2=new qL("OUTGOING_ONLY",2)}function F$(){F$=R,VF={boolean:qhe,number:ihe,string:rhe,object:L_n,function:L_n,undefined:Rfe}}function QQ(){this.o=null,this.k=null,this.j=null,this.d=null,this.b=null,this.n=null,this.a=null}function YQ(n,e){this.c=n,this.d=e,this.b=this.d/this.c.c.Rd().gc()|0,this.a=this.d%this.c.c.Rd().gc()}function bRn(n,e){this.b=n,pg.call(this,(u(N(H((G1(),Hn).o),10),19),e.i),e.g),this.a=(L$(),EU)}function ZQ(n,e,t){this.q=new y.Date,this.q.setFullYear(n+ha,e,t),this.q.setHours(0,0,0,0),H5(this,0)}function wRn(n,e){x7(n>=0,"Negative initial capacity"),x7(e>=0,"Non-positive load factor"),Hu(this)}function s6e(n,e,t,i,r){var c,s;if(s=n.length,c=t.length,e<0||i<0||r<0||e+r>s||i+r>c)throw T(new HG)}function nY(n,e){Ln();var t,i,r,c,s;for(s=!1,i=e,r=0,c=i.length;r<c;++r)t=i[r],s=s|n.Fc(t);return s}function gRn(n,e,t){var i,r;return i=new r$(e,t),r=new LA,n.b=yqn(n,n.b,i,r),r.b||++n.c,n.b.b=!1,r.d}function l5(n){var e;return e=n.a[n.b],e==null?null:($t(n.a,n.b,null),n.b=n.b+1&n.a.length-1,e)}function pRn(n){var e,t;return t=iy(n.h),t==32?(e=iy(n.m),e==32?iy(n.l)+32:e+20-10):t-12}function eY(n){var e;return(!n.c||!(n.Bb&1)&&n.c.Db&64)&&(e=gs(n),L(e,90)&&(n.c=u(e,29))),n.c}function Z1(n){var e,t;for(t=new M(n.a.b);t.a<t.c.c.length;)e=u(E(t),60),e.d.c=-e.d.c-e.d.b;cen(n)}function na(n){var e,t;for(t=new M(n.a.b);t.a<t.c.c.length;)e=u(E(t),86),e.g.c=-e.g.c-e.g.b;IS(n)}function mRn(n,e,t){var i,r,c,s;for(s=g5(e,t),c=0,r=s.Kc();r.Ob();)i=u(r.Pb(),12),Ve(n.c,i,Y(c++))}function vRn(n,e,t){var i;return i=new Z,fen(n,e,i,(en(),Zn),!0,!1),fen(n,t,i,Wn,!1,!1),i}function cc(n){var e,t,i,r,c;for(e=new Ni,i=n,r=0,c=i.length;r<c;++r)t=i[r],e.a+=t.a,e.b+=t.b;return e}function _$(n,e,t){var i,r,c,s;return c=null,s=e,r=Sb(s,"labels"),i=new TTn(n,t),c=(GMe(i.a,i.b,r),r),c}function f6e(n,e,t,i){var r;return r=Jnn(n,e,t,i),!r&&(r=p5e(n,t,i),r&&!Qg(n,e,r))?null:r}function h6e(n,e,t,i){var r;return r=Qnn(n,e,t,i),!r&&(r=rx(n,t,i),r&&!Qg(n,e,r))?null:r}function l6e(n,e,t){if(Pe(e),t.Ob())for(pX(e,uOn(t.Pb()));t.Ob();)pX(e,n.a),pX(e,uOn(t.Pb()));return e}function kRn(n,e){var t;for(t=0;t<n.a.a.length;t++)if(!u(YPn(n.a,t),178).Lb(e))return!1;return!0}function a6e(n){var e;return n==0?"Etc/GMT":(n<0?(n=-n,e="Etc/GMT-"):e="Etc/GMT+",e+YDn(n))}function tY(n){var e;return n.b<=0?!1:(e=ih("MLydhHmsSDkK",wu(Xi(n.c,0))),e>1||e>=0&&n.b<3)}function H$(n){var e,t,i;e=~n.l+1&ro,t=~n.m+(e==0?1:0)&ro,i=~n.h+(e==0&&t==0?1:0)&Ol,n.l=e,n.m=t,n.h=i}function iY(n){Ln();var e,t,i;for(i=1,t=n.Kc();t.Ob();)e=t.Pb(),i=31*i+(e!=null?mt(e):0),i=i|0;return i}function d6e(n,e,t,i,r){var c;return c=znn(n,e),t&&H$(c),r&&(n=u7e(n,e),i?wa=tm(n):wa=Yc(n.l,n.m,n.h)),c}function yRn(n,e,t){n.g=uR(n,e,(en(),Zn),n.b),n.d=uR(n,t,Zn,n.b),!(n.g.c==0||n.d.c==0)&&YFn(n)}function jRn(n,e,t){n.g=uR(n,e,(en(),Wn),n.j),n.d=uR(n,t,Wn,n.j),!(n.g.c==0||n.d.c==0)&&YFn(n)}function rY(n,e){switch(e){case 7:return!!n.e&&n.e.i!=0;case 8:return!!n.d&&n.d.i!=0}return HY(n,e)}function b6e(n,e){switch(e.g){case 0:L(n.b,641)||(n.b=new Bxn);break;case 1:L(n.b,642)||(n.b=new KPn)}}function ERn(n){switch(n.g){case 0:return new gmn;default:throw T(new Gn(xP+(n.f!=null?n.f:""+n.g)))}}function MRn(n){switch(n.g){case 0:return new wmn;default:throw T(new Gn(xP+(n.f!=null?n.f:""+n.g)))}}function w6e(n,e,t){return!s4(ut(new Cn(null,new On(n.c,16)),new Z3(new hTn(e,t)))).Bd((Va(),v3))}function TRn(n,e){return vp(pm(u(v(e,(lc(),v0)),88)),new V(n.c.e.a-n.b.e.a,n.c.e.b-n.b.e.b))<=0}function g6e(n,e){for(;n.g==null&&!n.c?rJ(n):n.g==null||n.i!=0&&u(n.g[n.i-1],51).Ob();)kle(e,MS(n))}function ld(n){var e,t;for(t=new M(n.a.b);t.a<t.c.c.length;)e=u(E(t),86),e.f.$b();Yfe(n.b,n),uqn(n)}function Pk(n){var e,t,i;for(e=new Tu,i=ge(n,0);i.b!=i.d.c;)t=u(be(i),8),g4(e,0,new rr(t));return e}function im(n){var e;return X1(n),e=new NA,n.a.Bd(e)?(b4(),new wL(Jn(e.a))):(b4(),b4(),Lun)}function cY(n,e,t){switch(e){case 0:!n.o&&(n.o=new Ou((Mc(),il),C1,n,0)),CC(n.o,t);return}sR(n,e,t)}function q$(n,e,t){this.g=n,this.e=new Ni,this.f=new Ni,this.d=new Mt,this.b=new Mt,this.a=e,this.c=t}function U$(n,e,t,i){this.b=new Z,this.n=new Z,this.i=i,this.j=t,this.s=n,this.t=e,this.r=0,this.d=0}function rm(n,e){if(!n.Li()&&e==null)throw T(new Gn("The 'no null' constraint is violated"));return e}function t1(n){var e,t;for(e=0,t=0;t<n.length;t++)e=(e<<5)-e+(zn(t,n.length),n.charCodeAt(t))|0;return e}function CRn(n,e){var t,i,r;for(r=n.b;r;){if(t=n.a.Ne(e,r.d),t==0)return r;i=t<0?0:1,r=r.a[i]}return null}function p6e(n,e,t){var i,r;i=(_n(),!!kX(t)),r=u(e.xc(i),15),r||(r=new Z,e.zc(i,r)),r.Fc(t)}function m6e(n,e){var t,i;return t=u(z(n,(Bf(),Bj)),17).a,i=u(z(e,Bj),17).a,t==i||t<i?-1:t>i?1:0}function v6e(n){return nn(n.c,(qp(),bue)),fQ(n.a,$(B(rn((bx(),EO)))))?new tvn:new $kn(n)}function k6e(n){for(;!n.d||!n.d.Ob();)if(n.b&&!t6(n.b))n.d=u(Pp(n.b),51);else return null;return n.d}function uY(n){switch(n.g){case 1:return lVn;default:case 2:return 0;case 3:return QK;case 4:return Trn}}function y6e(){nt();var n;return IU||(n=_1e(sa("M",!0)),n=uT(sa("M",!1),n),IU=n,IU)}function NC(){NC=R,wU=new MM("ELK",0),Cdn=new MM("JSON",1),Tdn=new MM("DOT",2),Sdn=new MM("SVG",3)}function a5(){a5=R,XH=new WL("STACKED",0),zH=new WL("REVERSE_STACKED",1),Oj=new WL("SEQUENCED",2)}function d5(){d5=R,wln=new eN(kh,0),ZH=new eN("MIDDLE_TO_MIDDLE",1),Nj=new eN("AVOID_OVERLAP",2)}function cm(){cm=R,Esn=new Ygn,Msn=new Zgn,JZn=new Jgn,WZn=new n2n,VZn=new Qgn,jsn=(Jn(VZn),new Abn)}function DC(){DC=R,hdn=new fb(15),Jue=new Di((He(),M1),hdn),j9=D3,udn=Iue,odn=Hd,fdn=_2,sdn=Vw}function Dg(n,e){var t,i,r,c,s;for(i=e,r=0,c=i.length;r<c;++r)t=i[r],s=new YIn(n),t.hf(s),VIe(s);Hu(n.f)}function G$(n,e){var t;return e===n?!0:L(e,229)?(t=u(e,229),rt(n.Zb(),t.Zb())):!1}function oY(n,e){return tqn(n,e)?(In(n.b,u(v(e,(W(),Dl)),21),e),Re(n.a,e),!0):!1}function j6e(n){var e,t;e=u(v(n,(W(),Xu)),10),e&&(t=e.c,du(t.a,e),t.a.c.length==0&&du(Hi(e).b,t))}function E6e(n,e){return kt(n,(W(),dt))&&kt(e,dt)?u(v(e,dt),17).a-u(v(n,dt),17).a:0}function M6e(n,e){return kt(n,(W(),dt))&&kt(e,dt)?u(v(n,dt),17).a-u(v(e,dt),17).a:0}function SRn(n){return Uf?F(AQn,Jzn,581,0,0,1):u(Rf(n.a,F(AQn,Jzn,581,n.a.c.length,0,1)),856)}function T6e(n,e,t,i){return yT(),new hz(S(C(Id,1),WS,44,0,[(Dx(n,e),new ib(n,e)),(Dx(t,i),new ib(t,i))]))}function $g(n,e,t){var i,r;return r=(i=new hL,i),Tr(r,e,t),ve((!n.q&&(n.q=new q(Ps,n,11,10)),n.q),r),r}function z$(n){var e,t,i,r;for(r=ule(Coe,n),t=r.length,i=F(fn,J,2,t,6,1),e=0;e<t;++e)i[e]=r[e];return i}function sY(n,e){var t;e*2+1>=n.b.c.length||(sY(n,2*e+1),t=2*e+2,t<n.b.c.length&&sY(n,t),$_n(n,e))}function C6e(n,e){var t,i;for(i=ge(n,0);i.b!=i.d.c;)t=u(be(i),219),t.e.length>0&&(e.Cd(t),t.i&&E5e(t))}function fY(n,e,t){var i;for(i=t-1;i>=0&&n[i]===e[i];i--);return i<0?0:DL(vi(n[i],mr),vi(e[i],mr))?-1:1}function PRn(n,e,t){var i,r;this.g=n,this.c=e,this.a=this,this.d=this,r=sxn(t),i=F(sQn,My,227,r,0,1),this.b=i}function X$(n,e,t,i,r){var c,s;for(s=t;s<=r;s++)for(c=e;c<=i;c++)if(Fg(n,c,s))return!0;return!1}function S6e(n,e){var t,i;for(i=n.Zb().Cc().Kc();i.Ob();)if(t=u(i.Pb(),16),t.Hc(e))return!0;return!1}function IRn(n,e,t){var i,r,c,s;for(Jn(t),s=!1,c=n.fd(e),r=t.Kc();r.Ob();)i=r.Pb(),c.Rb(i),s=!0;return s}function V$(n,e){var t,i;return i=u(Un(n.a,4),129),t=F(yU,TF,424,e,0,1),i!=null&&Oc(i,0,t,0,i.length),t}function ORn(n,e){var t;return t=new jR((n.f&256)!=0,n.i,n.a,n.d,(n.f&16)!=0,n.j,n.g,e),n.e!=null||(t.c=n),t}function P6e(n,e){var t;return n===e?!0:L(e,85)?(t=u(e,85),ann(Ja(n),t.vc())):!1}function ARn(n,e,t){var i,r;for(r=t.Kc();r.Ob();)if(i=u(r.Pb(),44),n.Be(e,i.md()))return!0;return!1}function LRn(n,e,t){return n.d[e.p][t.p]||(A9e(n,e,t),n.d[e.p][t.p]=!0,n.d[t.p][e.p]=!0),n.a[e.p][t.p]}function I6e(n,e){var t;return!n||n==e||!kt(e,(W(),s0))?!1:(t=u(v(e,(W(),s0)),10),t!=n)}function W$(n){switch(n.i){case 2:return!0;case 1:return!1;case-1:++n.c;default:return n.$l()}}function NRn(n){switch(n.i){case-2:return!0;case-1:return!1;case 1:--n.c;default:return n._l()}}function DRn(n){yAn.call(this,"The given string does not match the expected format for individual spacings.",n)}function O6e(n,e){var t;e.Ug("Min Size Preprocessing",1),t=ynn(n),ht(n,(_h(),f9),t.a),ht(n,UO,t.b),e.Vg()}function A6e(n){var e,t,i;for(e=0,i=F(Ei,J,8,n.b,0,1),t=ge(n,0);t.b!=t.d.c;)i[e++]=u(be(t),8);return i}function J$(n,e,t){var i,r,c;for(i=new Mt,c=ge(t,0);c.b!=c.d.c;)r=u(be(c),8),Re(i,new rr(r));IRn(n,e,i)}function L6e(n,e){var t;return t=nr(n,e),DL(BD(n,e),0)|SM(BD(n,t),0)?t:nr(Ey,BD(U1(t,63),1))}function N6e(n,e){var t,i;return t=u(n.d.Bc(e),16),t?(i=n.e.hc(),i.Gc(t),n.e.d-=t.gc(),t.$b(),i):null}function $Rn(n){var e;if(e=n.a.c.length,e>0)return E4(e-1,n.a.c.length),Yl(n.a,e-1);throw T(new $yn)}function xRn(n,e,t){if(n>e)throw T(new Gn(ZS+n+Qzn+e));if(n<0||e>t)throw T(new gz(ZS+n+Stn+e+Mtn+t))}function um(n,e){n.D==null&&n.B!=null&&(n.D=n.B,n.B=null),j$(n,e==null?null:(Jn(e),e)),n.C&&n.hl(null)}function D6e(n,e){var t;t=rn((bx(),EO))!=null&&e.Sg()!=null?$(B(e.Sg()))/$(B(rn(EO))):1,Ve(n.b,e,t)}function hY(n,e){var t,i;if(i=n.c[e],i!=0)for(n.c[e]=0,n.d-=i,t=e+1;t<n.a.length;)n.a[t]-=i,t+=t&-t}function ew(n){var e;++n.j,n.i==0?n.g=null:n.i<n.g.length&&(e=n.g,n.g=n.aj(n.i),Oc(e,0,n.g,0,n.i))}function $6e(n,e,t){if(e<0)throw T(new Or(LVn+e));e<n.j.c.length?Go(n.j,e,t):(xLn(n,e),nn(n.j,t))}function RRn(n){if(!n.a||!(n.a.i&8))throw T(new Ar("Enumeration class expected for layout option "+n.f))}function lY(n){var e;return e=(!n.a&&(n.a=new q(Kl,n,9,5)),n.a),e.i!=0?rle(u(N(e,0),694)):null}function x6e(n){var e;for(Pe(n),AV(!0,"numberToAdvance must be nonnegative"),e=0;e<0&&pe(n);e++)fe(n);return e}function Q$(){Q$=R,fon=(YE(),d_),son=new Tn(Ftn,fon),IYn=new lt(_tn),OYn=new lt(Htn),AYn=new lt(qtn)}function b5(){b5=R,lq=new mM(ein,0),KO=new mM(bVn,1),hq=new mM("FAN",2),fq=new mM("CONSTRAINT",3)}function Ik(){Ik=R,FO=new tN(kh,0),Hln=new tN("RADIAL_COMPACTION",1),qln=new tN("WEDGE_COMPACTION",2)}function om(){om=R,VH=new JL("CONSERVATIVE",0),Vhn=new JL("CONSERVATIVE_SOFT",1),Y8=new JL("SLOPPY",2)}function Gu(){Gu=R,xun=new $L("CONCURRENT",0),Yr=new $L("IDENTITY_FINISH",1),Sw=new $L("UNORDERED",2)}function Y$(){Y$=R,T_=aAn(S(C(y9,1),G,88,0,[(ci(),Kr),Xr])),C_=aAn(S(C(y9,1),G,88,0,[us,Wf]))}function wo(n){return Si(n)?fn:$0(n)?si:D0(n)?Gt:gW(n)||fW(n)?n.Rm:n.Rm||Array.isArray(n)&&C(fQn,1)||fQn}function R6e(n){return n?n.i&1?n==so?Gt:n==ye?Gi:n==cg?sv:n==Ii?si:n==Ra?t0:n==V2?i0:n==Ru?p3:S8:n:null}function xg(n){return(n.c!=n.b.b||n.i!=n.g.b)&&(I0(n.a.c,0),hi(n.a,n.b),hi(n.a,n.g),n.c=n.b.b,n.i=n.g.b),n.a}function K6e(n,e){var t,i;for(t=n.a.length-1;e!=n.b;)i=e-1&t,$t(n.a,e,n.a[i]),e=i;$t(n.a,n.b,null),n.b=n.b+1&t}function B6e(n,e){var t,i;for(t=n.a.length-1,n.c=n.c-1&t;e!=n.c;)i=e+1&t,$t(n.a,e,n.a[i]),e=i;$t(n.a,n.c,null)}function aY(n,e,t){var i,r;return z0(e,n.c.length),i=t.Pc(),r=i.length,r==0?!1:(GV(n.c,e,i),!0)}function KRn(n,e,t){var i,r,c,s;for(r=t,c=0,s=r.length;c<s;++c)if(i=r[c],n.b.Be(e,i.ld()))return i;return null}function Ok(n){var e,t,i,r,c;for(c=1,t=n,i=0,r=t.length;i<r;++i)e=t[i],c=31*c+(e!=null?mt(e):0),c=c|0;return c}function Me(n){var e,t,i,r,c;for(e={},i=n,r=0,c=i.length;r<c;++r)t=i[r],e[":"+(t.f!=null?t.f:""+t.g)]=t;return e}function F6e(n){var e,t;if(n==null)return null;for(e=0,t=n.length;e<t;e++)if(!APn(n[e]))return n[e];return null}function Z$(n,e){return!n||e&&!n.j||L(n,127)&&u(n,127).a.b==0?0:n.jf()}function $C(n,e){return!n||e&&!n.k||L(n,127)&&u(n,127).a.a==0?0:n.kf()}function BRn(n,e){return kt(n,(W(),dt))&&kt(e,dt)?jc(u(v(n,dt),17).a,u(v(e,dt),17).a):0}function FRn(n){var e,t,i;for(i=0,t=new ie(ce(n.a.Kc(),new En));pe(t);)e=u(fe(t),18),e.c.i==e.d.i||++i;return i}function _Rn(n,e){var t,i,r;for(r=e-n.f,i=new M(n.d);i.a<i.c.c.length;)t=u(E(i),315),xKn(t,t.e,t.f+r);n.f=e}function ad(n,e){var t,i,r;i=n.Yk(e,null),r=null,e&&(r=(o4(),t=new Jd,t),F4(r,n.r)),i=Kf(n,r,i),i&&i.oj()}function HRn(n,e){var t,i,r;t=n,r=0;do{if(t==e)return r;if(i=t.e,!i)throw T(new W9);t=Hi(i),++r}while(!0)}function _6e(n){var e,t,i,r;for(i=n.b.a,t=i.a.ec().Kc();t.Ob();)e=u(t.Pb(),567),r=new zHn(e,n.e,n.f),nn(n.g,r)}function H6e(n){var e;return e=new v$n(n),Q7(n.a,AZn,new Fu(S(C(aj,1),Kn,382,0,[e]))),e.d&&nn(e.f,e.d),e.f}function qRn(n,e){var t;for(t=0;t<e.length;t++)if(n==(zn(t,e.length),e.charCodeAt(t)))return!0;return!1}function q6e(n,e){return e<n.length&&(zn(e,n.length),n.charCodeAt(e)!=63)&&(zn(e,n.length),n.charCodeAt(e)!=35)}function URn(n,e,t,i){ECn(this),this.c=F(Qh,b1,10,n.a.c.length,0,1),this.e=e,Rf(n.a,this.c),this.f=t,this.b=i}function GRn(n){Njn(),xM(this),TT(this),this.e=n,bqn(this,n),this.g=n==null?gu:Jr(n),this.a="",this.b=n,this.a=""}function dY(){this.a=new amn,this.f=new jkn(this),this.b=new Ekn(this),this.i=new Mkn(this),this.e=new Tkn(this)}function zRn(){Jfe.call(this,new XJ(Q0(16))),Mo(2,Azn),this.b=2,this.a=new _W(null,null,0,null),V9(this.a,this.a)}function bY(n){throw F$(),T(new Ajn("Unexpected typeof result '"+n+"'; please report this bug to the GWT team"))}function nx(n,e,t){return y.Math.abs(e-n)<IP||y.Math.abs(t-n)<IP?!0:e-n>IP?n-t>IP:t-n>IP}function XRn(n,e){var t;for(t=0;t<e.length;t++)if(n==(zn(t,e.length),e.charCodeAt(t)))return!0;return!1}function U6e(n){var e,t;if(n==null)return!1;for(e=0,t=n.length;e<t;e++)if(!APn(n[e]))return!1;return!0}function wY(n,e){var t,i,r;return i=!1,t=e.q.d,e.d<n.b&&(r=ren(e.q,n.b),e.q.d>r&&(EFn(e.q,r),i=t!=e.q.d)),i}function VRn(n,e){var t,i,r,c,s,f,h,l;return h=e.i,l=e.j,i=n.f,r=i.i,c=i.j,s=h-r,f=l-c,t=y.Math.sqrt(s*s+f*f),t}function gY(n,e){var t,i;return i=WC(n),i||(t=(UR(),$Hn(e)),i=new Myn(t),ve(i.El(),n)),i}function Ak(n,e){var t,i;return t=u(n.c.Bc(e),16),t?(i=n.hc(),i.Gc(t),n.d-=t.gc(),t.$b(),n.mc(i)):n.jc()}function G6e(n,e){var t,i;for(i=to(n.d,1)!=0,t=!0;t;)t=!1,t=e.c.mg(e.e,i),t=t|sy(n,e,i,!1),i=!i;DQ(n)}function WRn(n,e,t,i){var r,c;n.a=e,c=i?0:1,n.f=(r=new s_n(n.c,n.a,t,c),new Fqn(t,n.a,r,n.e,n.b,n.c==(Ab(),Z8)))}function xC(n){var e;return oe(n.a!=n.b),e=n.d.a[n.a],ESn(n.b==n.d.c&&e!=null),n.c=n.a,n.a=n.a+1&n.d.a.length-1,e}function JRn(n){var e;if(n.c!=0)return n.c;for(e=0;e<n.a.length;e++)n.c=n.c*33+(n.a[e]&-1);return n.c=n.c*n.e,n.c}function z6e(n){var e;if(!(n.c.c<0?n.a>=n.c.b:n.a<=n.c.b))throw T(new nc);return e=n.a,n.a+=n.c.c,++n.b,Y(e)}function ex(n){var e;return e=new AX(n.a),Ur(e,n),U(e,(W(),st),n),e.o.a=n.g,e.o.b=n.f,e.n.a=n.i,e.n.b=n.j,e}function tx(n){return(en(),mu).Hc(n.j)?$(B(v(n,(W(),jv)))):cc(S(C(Ei,1),J,8,0,[n.i.n,n.n,n.a])).b}function X6e(n){var e;return e=LM(Mie),u(v(n,(W(),Hc)),21).Hc((pr(),yv))&&Fe(e,(Vi(),Ac),(tr(),RI)),e}function V6e(n){var e,t,i,r;for(r=new ni,i=new M(n);i.a<i.c.c.length;)t=u(E(i),27),e=wSe(t),Ki(r,e);return r}function W6e(n){var e,t;for(t=new M(n.r);t.a<t.c.c.length;)if(e=u(E(t),10),n.n[e.p]<=0)return e;return null}function J6e(n,e,t){var i,r;for(r=e.a.a.ec().Kc();r.Ob();)if(i=u(r.Pb(),60),zOn(n,i,t))return!0;return!1}function Q6e(n,e,t,i){var r,c;for(c=n.Kc();c.Ob();)r=u(c.Pb(),72),r.n.a=e.a+(i.a-r.o.a)/2,r.n.b=e.b,e.b+=r.o.b+t}function Y6e(n,e,t){var i;i=new sHn(n,e),In(n.r,e.ag(),i),t&&!F6(n.u)&&(i.c=new fAn(n.d),nu(e.Rf(),new N9n(i)))}function Ec(n,e){var t;return Vr(n)&&Vr(e)&&(t=n-e,!isNaN(t))?t:AZ(Vr(n)?ds(n):n,Vr(e)?ds(e):e)}function pY(n,e){var t,i,r;for(r=1,t=n,i=e>=0?e:-e;i>0;)i%2==0?(t*=t,i=i/2|0):(r*=t,i-=1);return e<0?1/r:r}function Z6e(n,e){var t,i,r;for(r=1,t=n,i=e>=0?e:-e;i>0;)i%2==0?(t*=t,i=i/2|0):(r*=t,i-=1);return e<0?1/r:r}function ea(n,e){var t,i,r,c;return c=(r=n?WC(n):null,A_n((i=e,r&&r.Gl(),i))),c==e&&(t=WC(n),t&&t.Gl()),c}function QRn(n,e,t){var i,r;return r=n.f,n.f=e,n.Db&4&&!(n.Db&1)&&(i=new Mi(n,1,0,r,e),t?t.nj(i):t=i),t}function YRn(n,e,t){var i,r;return r=n.b,n.b=e,n.Db&4&&!(n.Db&1)&&(i=new Mi(n,1,3,r,e),t?t.nj(i):t=i),t}function mY(n,e,t){var i,r;return r=n.a,n.a=e,n.Db&4&&!(n.Db&1)&&(i=new Mi(n,1,1,r,e),t?t.nj(i):t=i),t}function ZRn(n){var e,t;if(n!=null)for(t=0;t<n.length;++t)e=n[t],e&&(u(e.g,379),e.i)}function n5e(n,e,t,i,r,c,s,f){var h;for(h=t;c<s;)h>=i||e<t&&f.Ne(n[e],n[h])<=0?$t(r,c++,n[e++]):$t(r,c++,n[h++])}function e5e(n,e,t,i,r){e==0||i==0||(e==1?r[i]=hZ(r,t,i,n[0]):i==1?r[e]=hZ(r,n,e,t[0]):EMe(n,t,r,e,i))}function t5e(n,e,t){var i,r,c,s;for(i=t/n.gc(),r=0,s=n.Kc();s.Ob();)c=u(s.Pb(),186),_Rn(c,c.f+i*r),gke(c,e,i),++r}function i5e(n){var e,t,i;for(i=0,t=new M(n.a);t.a<t.c.c.length;)e=u(E(t),172),i=y.Math.max(i,e.g);return i}function r5e(n){var e,t,i;for(i=new M(n.b);i.a<i.c.c.length;)t=u(E(i),219),e=t.c.kg()?t.f:t.a,e&&OOe(e,t.j)}function w5(){w5=R,xH=new zL("DUMMY_NODE_OVER",0),Lhn=new zL("DUMMY_NODE_UNDER",1),TO=new zL("EQUAL",2)}function Gp(){Gp=R,pdn=new lN("PARALLEL_NODE",0),Yw=new lN("HIERARCHICAL_NODE",1),aA=new lN("ROOT_NODE",2)}function jl(){jl=R,uA=new hN("INHERIT",0),T1=new hN("INCLUDE_CHILDREN",1),E9=new hN("SEPARATE_CHILDREN",2)}function vY(n,e){switch(e){case 1:!n.n&&(n.n=new q(Sr,n,1,7)),me(n.n);return;case 2:X4(n,null);return}VQ(n,e)}function nKn(n){switch(n.g){case 0:return new omn;case 1:return new fmn;case 2:return new smn;default:return null}}function i1(n){switch(oh(),n.c){case 0:return wD(),cun;case 1:return new lp(K_n(new dp(n)));default:return new Pjn(n)}}function eKn(n){switch(oh(),n.gc()){case 0:return wD(),cun;case 1:return new lp(n.Kc().Pb());default:return new Rz(n)}}function RC(n){var e;switch(n.gc()){case 0:return qF;case 1:return new VN(Pe(n.Xb(0)));default:return e=n,new ID(e)}}function Y(n){var e,t;return n>-129&&n<128?(RPn(),e=n+128,t=pun[e],!t&&(t=pun[e]=new mG(n)),t):new mG(n)}function sm(n){var e,t;return n>-129&&n<128?(nIn(),e=n+128,t=yun[e],!t&&(t=yun[e]=new kG(n)),t):new kG(n)}function tKn(n,e){var t;n.a.c.length>0&&(t=u(sn(n.a,n.a.c.length-1),579),oY(t,e))||nn(n.a,new kNn(e))}function c5e(n){Rs();var e,t;e=n.d.c-n.e.c,t=u(n.g,154),nu(t.b,new p7n(e)),nu(t.c,new m7n(e)),qi(t.i,new v7n(e))}function iKn(n){var e;return e=new x1,e.a+="VerticalSegment ",Lc(e,n.e),e.a+=" ",Be(e,KX(new yL,new M(n.k))),e.a}function ix(n,e){var t,i,r;for(t=0,r=uc(n,e).Kc();r.Ob();)i=u(r.Pb(),12),t+=v(i,(W(),Xu))!=null?1:0;return t}function Rg(n,e,t){var i,r,c;for(i=0,c=ge(n,0);c.b!=c.d.c&&(r=$(B(be(c))),!(r>t));)r>=e&&++i;return i}function rKn(n,e){Pe(n);try{return n._b(e)}catch(t){if(t=Ot(t),L(t,212)||L(t,169))return!1;throw T(t)}}function kY(n,e){Pe(n);try{return n.Hc(e)}catch(t){if(t=Ot(t),L(t,212)||L(t,169))return!1;throw T(t)}}function u5e(n,e){Pe(n);try{return n.Mc(e)}catch(t){if(t=Ot(t),L(t,212)||L(t,169))return!1;throw T(t)}}function tw(n,e){Pe(n);try{return n.xc(e)}catch(t){if(t=Ot(t),L(t,212)||L(t,169))return null;throw T(t)}}function o5e(n,e){Pe(n);try{return n.Bc(e)}catch(t){if(t=Ot(t),L(t,212)||L(t,169))return null;throw T(t)}}function g5(n,e){switch(e.g){case 2:case 1:return uc(n,e);case 3:case 4:return Qo(uc(n,e))}return Ln(),Ln(),sr}function p5(n){var e;return n.Db&64?Hs(n):(e=new ls(Hs(n)),e.a+=" (name: ",Er(e,n.zb),e.a+=")",e.a)}function s5e(n){var e;return e=u(Df(n.c.c,""),233),e||(e=new Dp(u4(c4(new tp,""),"Other")),s1(n.c.c,"",e)),e}function yY(n,e,t){var i,r;return r=n.sb,n.sb=e,n.Db&4&&!(n.Db&1)&&(i=new Mi(n,1,4,r,e),t?t.nj(i):t=i),t}function jY(n,e,t){var i,r;return r=n.r,n.r=e,n.Db&4&&!(n.Db&1)&&(i=new Mi(n,1,8,r,n.r),t?t.nj(i):t=i),t}function f5e(n,e,t){var i,r;return i=new ml(n.e,4,13,(r=e.c,r||(An(),Zf)),null,f1(n,e),!1),t?t.nj(i):t=i,t}function h5e(n,e,t){var i,r;return i=new ml(n.e,3,13,null,(r=e.c,r||(An(),Zf)),f1(n,e),!1),t?t.nj(i):t=i,t}function r1(n,e){var t,i;return t=u(e,691),i=t.el(),!i&&t.fl(i=L(e,90)?new xTn(n,u(e,29)):new cLn(n,u(e,156))),i}function Lk(n,e,t){var i;n._i(n.i+1),i=n.Zi(e,t),e!=n.i&&Oc(n.g,e,n.g,e+1,n.i-e),$t(n.g,e,i),++n.i,n.Mi(e,t),n.Ni()}function l5e(n,e){var t;return e.a&&(t=e.a.a.length,n.a?Be(n.a,n.b):n.a=new mo(n.d),aLn(n.a,e.a,e.d.length,t)),n}function a5e(n,e){var t;n.c=e,n.a=p8e(e),n.a<54&&(n.f=(t=e.d>1?hLn(e.a[0],e.a[1]):hLn(e.a[0],0),id(e.e>0?t:n1(t))))}function Nk(n,e){var t;return t=new NA,n.a.Bd(t)?(b4(),new wL(Jn(GDn(n,t.a,e)))):(X1(n),b4(),b4(),Lun)}function cKn(n,e){var t;n.c.length!=0&&(t=u(Rf(n,F(Qh,b1,10,n.c.length,0,1)),199),EX(t,new rgn),Y_n(t,e))}function uKn(n,e){var t;n.c.length!=0&&(t=u(Rf(n,F(Qh,b1,10,n.c.length,0,1)),199),EX(t,new cgn),Y_n(t,e))}function rt(n,e){return Si(n)?Sn(n,e):$0(n)?nPn(n,e):D0(n)?(Jn(n),x(n)===x(e)):gW(n)?n.Fb(e):fW(n)?YTn(n,e):fJ(n,e)}function Wo(n,e,t){if(e<0)Pnn(n,t);else{if(!t.rk())throw T(new Gn(ba+t.xe()+b8));u(t,69).wk().Ek(n,n.hi(),e)}}function oKn(n,e,t){if(n<0||e>t)throw T(new Or(ZS+n+Stn+e+", size: "+t));if(n>e)throw T(new Gn(ZS+n+Qzn+e))}function sKn(n){var e;return n.Db&64?Hs(n):(e=new ls(Hs(n)),e.a+=" (source: ",Er(e,n.d),e.a+=")",e.a)}function fKn(n){return n>=65&&n<=70?n-65+10:n>=97&&n<=102?n-97+10:n>=48&&n<=57?n-48:0}function d5e(n){VS();var e,t,i,r;for(t=jx(),i=0,r=t.length;i<r;++i)if(e=t[i],qr(e.a,n,0)!=-1)return e;return h_}function b5e(n,e){var t,i,r,c;if(e.ej(n.a),c=u(Un(n.a,8),2035),c!=null)for(t=c,i=0,r=t.length;i<r;++i)null.Um()}function c1(n,e){var t;t=(n.Bb&256)!=0,e?n.Bb|=256:n.Bb&=-257,n.Db&4&&!(n.Db&1)&&it(n,new Bs(n,1,2,t,e))}function EY(n,e){var t;t=(n.Bb&256)!=0,e?n.Bb|=256:n.Bb&=-257,n.Db&4&&!(n.Db&1)&&it(n,new Bs(n,1,8,t,e))}function KC(n,e){var t;t=(n.Bb&256)!=0,e?n.Bb|=256:n.Bb&=-257,n.Db&4&&!(n.Db&1)&&it(n,new Bs(n,1,8,t,e))}function u1(n,e){var t;t=(n.Bb&512)!=0,e?n.Bb|=512:n.Bb&=-513,n.Db&4&&!(n.Db&1)&&it(n,new Bs(n,1,3,t,e))}function MY(n,e){var t;t=(n.Bb&512)!=0,e?n.Bb|=512:n.Bb&=-513,n.Db&4&&!(n.Db&1)&&it(n,new Bs(n,1,9,t,e))}function w5e(n,e,t){var i,r;return r=n.a,n.a=e,n.Db&4&&!(n.Db&1)&&(i=new Mi(n,1,5,r,n.a),t?GZ(t,i):t=i),t}function m5(n,e){var t;return n.b==-1&&n.a&&(t=n.a.pk(),n.b=t?n.c.Hh(n.a.Lj(),t):At(n.c.Dh(),n.a)),n.c.yh(n.b,e)}function hKn(n,e){var t,i;for(i=new ne(n);i.e!=i.i.gc();)if(t=u(ue(i),29),x(e)===x(t))return!0;return!1}function TY(n){var e,t;return e=n.k,e==(Vn(),Zt)?(t=u(v(n,(W(),gc)),64),t==(en(),Xn)||t==ae):!1}function lKn(n){var e;return e=wJ(n),ob(e.a,0)?(A0(),A0(),ZF):(A0(),new SN(NL(e.a,0)?BJ(e)/id(e.a):0))}function Dk(n,e){this.e=e,this.a=Qxn(n),this.a<54?this.f=id(n):this.c=(dh(),Ec(n,0)>=0?ia(n):U6(ia(n1(n))))}function aKn(n,e,t,i,r,c){this.e=new Z,this.f=(gr(),Q8),nn(this.e,n),this.d=e,this.a=t,this.b=i,this.f=r,this.c=c}function g5e(n,e,t){n.n=Wa(Ra,[J,PK],[376,28],14,[t,wi(y.Math.ceil(e/32))],2),n.o=e,n.p=t,n.j=e-1>>1,n.k=t-1>>1}function dKn(n){return n-=n>>1&1431655765,n=(n>>2&858993459)+(n&858993459),n=(n>>4)+n&252645135,n+=n>>8,n+=n>>16,n&63}function bKn(n,e){var t,i;for(i=new ne(n);i.e!=i.i.gc();)if(t=u(ue(i),142),x(e)===x(t))return!0;return!1}function p5e(n,e,t){var i,r,c;return c=(r=Tm(n.b,e),r),c&&(i=u(qS(hk(n,c),""),29),i)?Jnn(n,i,e,t):null}function rx(n,e,t){var i,r,c;return c=(r=Tm(n.b,e),r),c&&(i=u(qS(hk(n,c),""),29),i)?Qnn(n,i,e,t):null}function m5e(n,e){var t;if(t=Ng(n.i,e),t==null)throw T(new eh("Node did not exist in input."));return _Q(e,t),null}function v5e(n,e){var t;if(t=oy(n,e),L(t,331))return u(t,35);throw T(new Gn(ba+e+"' is not a valid attribute"))}function v5(n,e,t){var i;if(i=n.gc(),e>i)throw T(new F0(e,i));if(n.Si()&&n.Hc(t))throw T(new Gn(Vy));n.Gi(e,t)}function k5e(n,e){e.Ug("Sort end labels",1),qt(ut(rc(new Cn(null,new On(n.b,16)),new Hwn),new qwn),new Uwn),e.Vg()}function ci(){ci=R,Jf=new p7(n8,0),Xr=new p7(f3,1),Kr=new p7(s3,2),Wf=new p7(_K,3),us=new p7("UP",4)}function $k(){$k=R,XO=new sN("P1_STRUCTURE",0),VO=new sN("P2_PROCESSING_ORDER",1),WO=new sN("P3_EXECUTION",2)}function wKn(){wKn=R,Bre=ah(ah(h6(ah(ah(h6(Fe(new ii,(Qp(),t9),(F5(),YH)),i9),lln),dln),r9),oln),bln)}function y5e(n){switch(u(v(n,(W(),Ad)),311).g){case 1:U(n,Ad,(vl(),E3));break;case 2:U(n,Ad,(vl(),k2))}}function j5e(n){switch(n){case 0:return new rjn;case 1:return new tjn;case 2:return new ijn;default:throw T(new W9)}}function gKn(n){switch(n.g){case 2:return Xr;case 1:return Kr;case 4:return Wf;case 3:return us;default:return Jf}}function CY(n,e){switch(n.b.g){case 0:case 1:return e;case 2:case 3:return new Ho(e.d,0,e.a,e.b);default:return null}}function SY(n){switch(n.g){case 1:return Wn;case 2:return Xn;case 3:return Zn;case 4:return ae;default:return sc}}function xk(n){switch(n.g){case 1:return ae;case 2:return Wn;case 3:return Xn;case 4:return Zn;default:return sc}}function BC(n){switch(n.g){case 1:return Zn;case 2:return ae;case 3:return Wn;case 4:return Xn;default:return sc}}function PY(n,e,t,i){switch(e){case 1:return!n.n&&(n.n=new q(Sr,n,1,7)),n.n;case 2:return n.k}return kZ(n,e,t,i)}function k5(n,e,t){var i,r;return n.Pj()?(r=n.Qj(),i=lR(n,e,t),n.Jj(n.Ij(7,Y(t),i,e,r)),i):lR(n,e,t)}function cx(n,e){var t,i,r;n.d==null?(++n.e,--n.f):(r=e.ld(),t=e.Bi(),i=(t&et)%n.d.length,o4e(n,i,BHn(n,i,t,r)))}function fm(n,e){var t;t=(n.Bb&Gs)!=0,e?n.Bb|=Gs:n.Bb&=-1025,n.Db&4&&!(n.Db&1)&&it(n,new Bs(n,1,10,t,e))}function hm(n,e){var t;t=(n.Bb&vw)!=0,e?n.Bb|=vw:n.Bb&=-4097,n.Db&4&&!(n.Db&1)&&it(n,new Bs(n,1,12,t,e))}function lm(n,e){var t;t=(n.Bb&$u)!=0,e?n.Bb|=$u:n.Bb&=-8193,n.Db&4&&!(n.Db&1)&&it(n,new Bs(n,1,15,t,e))}function am(n,e){var t;t=(n.Bb&Cw)!=0,e?n.Bb|=Cw:n.Bb&=-2049,n.Db&4&&!(n.Db&1)&&it(n,new Bs(n,1,11,t,e))}function E5e(n){var e;n.g&&(e=n.c.kg()?n.f:n.a,hen(e.a,n.o,!0),hen(e.a,n.o,!1),U(n.o,(cn(),Ft),(Ai(),Ud)))}function M5e(n){var e;if(!n.a)throw T(new Ar("Cannot offset an unassigned cut."));e=n.c-n.b,n.b+=e,_On(n,e),FOn(n,e)}function T5e(n,e){var t;if(t=ee(n.k,e),t==null)throw T(new eh("Port did not exist in input."));return _Q(e,t),null}function C5e(n){var e,t;for(t=xHn(jo(n)).Kc();t.Ob();)if(e=Ae(t.Pb()),_5(n,e))return S3e((mMn(),Koe),e);return null}function pKn(n){var e,t;for(t=n.p.a.ec().Kc();t.Ob();)if(e=u(t.Pb(),218),e.f&&n.b[e.c]<-1e-10)return e;return null}function S5e(n){var e,t;for(t=z1(new x1,91),e=!0;n.Ob();)e||(t.a+=ur),e=!1,Lc(t,n.Pb());return(t.a+="]",t).a}function P5e(n){var e,t,i;for(e=new Z,i=new M(n.b);i.a<i.c.c.length;)t=u(E(i),602),hi(e,u(t.Cf(),16));return e}function ux(n,e){var t,i;for(i=new M(e);i.a<i.c.c.length;)t=u(E(i),42),du(n.b.b,t.b),Age(u(t.a,194),u(t.b,86))}function I5e(n,e){var t;return t=bt(n.b.c,e.b.c),t!=0||(t=bt(n.a.a,e.a.a),t!=0)?t:bt(n.a.b,e.a.b)}function bt(n,e){return n<e?-1:n>e?1:n==e?n==0?bt(1/n,1/e):0:isNaN(n)?isNaN(e)?0:1:-1}function O5e(n){var e;return e=n.a[n.c-1&n.a.length-1],e==null?null:(n.c=n.c-1&n.a.length-1,$t(n.a,n.c,null),e)}function A5e(n){var e,t,i;for(i=0,t=n.length,e=0;e<t;e++)n[e]==32||n[e]==13||n[e]==10||n[e]==9||(n[i++]=n[e]);return i}function L5e(n,e){var t,i,r,c,s;for(s=ru(n.e.Dh(),e),c=0,t=u(n.g,124),r=0;r<n.i;++r)i=t[r],s.am(i.Lk())&&++c;return c}function N5e(n,e,t){var i,r;for(r=L(e,102)&&u(e,19).Bb&hr?new dN(e,n):new Y4(e,n),i=0;i<t;++i)iS(r);return r}function mKn(n,e,t){var i,r;if(n.c)rnn(n.c,e,t);else for(r=new M(n.b);r.a<r.c.c.length;)i=u(E(r),163),mKn(i,e,t)}function D5e(n,e,t){var i,r;return i=u(e.of(n.a),34),r=u(t.of(n.a),34),i!=null&&r!=null?mk(i,r):i!=null?-1:r!=null?1:0}function IY(n,e){var t,i,r;for(Jn(e),t=!1,i=new M(n);i.a<i.c.c.length;)r=E(i),e.Hc(r)&&(q6(i),t=!0);return t}function jn(n){var e,t,i,r;return t=(e=u(of((i=n.Rm,r=i.f,r==ke?i:r)),9),new _o(e,u(xs(e,e.length),9),0)),_s(t,n),t}function FC(n){var e,t;return t=u(v(n,(cn(),Lo)),88),t==(ci(),Jf)?(e=$(B(v(n,oO))),e>=1?Xr:Wf):t}function $5e(n){switch(u(v(n,(cn(),$l)),223).g){case 1:return new Ipn;case 3:return new Dpn;default:return new Ppn}}function ta(n){if(n.c)ta(n.c);else if(n.d)throw T(new Ar("Stream already terminated, can't be modified or used"))}function $b(n,e,t){var i;return i=n.a.get(e),n.a.set(e,t===void 0?null:t),i===void 0?(++n.c,++n.b.g):++n.d,i}function x5e(n,e,t){var i,r;for(r=n.a.ec().Kc();r.Ob();)if(i=u(r.Pb(),10),Ek(t,u(sn(e,i.p),16)))return i;return null}function OY(n,e,t){var i;return i=0,e&&(vg(n.a)?i+=e.f.a/2:i+=e.f.b/2),t&&(vg(n.a)?i+=t.f.a/2:i+=t.f.b/2),i}function R5e(n,e,t){var i;i=t,!i&&(i=QV(new op,0)),i.Ug(IXn,2),jBn(n.b,e,i.eh(1)),YOe(n,e,i.eh(1)),eNe(e,i.eh(1)),i.Vg()}function AY(n,e,t){var i,r;return i=(K1(),r=new yE,r),aC(i,e),lC(i,t),n&&ve((!n.a&&(n.a=new ti(xo,n,5)),n.a),i),i}function ox(n){var e;return n.Db&64?Hs(n):(e=new ls(Hs(n)),e.a+=" (identifier: ",Er(e,n.k),e.a+=")",e.a)}function sx(n,e){var t;t=(n.Bb&kc)!=0,e?n.Bb|=kc:n.Bb&=-32769,n.Db&4&&!(n.Db&1)&&it(n,new Bs(n,1,18,t,e))}function LY(n,e){var t;t=(n.Bb&kc)!=0,e?n.Bb|=kc:n.Bb&=-32769,n.Db&4&&!(n.Db&1)&&it(n,new Bs(n,1,18,t,e))}function dm(n,e){var t;t=(n.Bb&wh)!=0,e?n.Bb|=wh:n.Bb&=-16385,n.Db&4&&!(n.Db&1)&&it(n,new Bs(n,1,16,t,e))}function NY(n,e){var t;t=(n.Bb&hr)!=0,e?n.Bb|=hr:n.Bb&=-65537,n.Db&4&&!(n.Db&1)&&it(n,new Bs(n,1,20,t,e))}function DY(n){var e;return e=F(fs,gh,28,2,15,1),n-=hr,e[0]=(n>>10)+Py&ui,e[1]=(n&1023)+56320&ui,ws(e,0,e.length)}function K5e(n){var e;return e=sw(n),e>34028234663852886e22?Pt:e<-34028234663852886e22?li:e}function nr(n,e){var t;return Vr(n)&&Vr(e)&&(t=n+e,Sy<t&&t<vd)?t:Y1(Gve(Vr(n)?ds(n):n,Vr(e)?ds(e):e))}function er(n,e){var t;return Vr(n)&&Vr(e)&&(t=n*e,Sy<t&&t<vd)?t:Y1(FOe(Vr(n)?ds(n):n,Vr(e)?ds(e):e))}function bs(n,e){var t;return Vr(n)&&Vr(e)&&(t=n-e,Sy<t&&t<vd)?t:Y1(Yxn(Vr(n)?ds(n):n,Vr(e)?ds(e):e))}function uc(n,e){var t;return n.i||Snn(n),t=u(Mr(n.g,e),42),t?new Jl(n.j,u(t.a,17).a,u(t.b,17).a):(Ln(),Ln(),sr)}function B5e(n){return Y$(),_n(),!!(yKn(u(n.a,86).j,u(n.b,88))||u(n.a,86).d.e!=0&&yKn(u(n.a,86).j,u(n.b,88)))}function F5e(n,e){return Sn(e.b&&e.c?td(e.b)+"->"+td(e.c):"e_"+mt(e),n.b&&n.c?td(n.b)+"->"+td(n.c):"e_"+mt(n))}function _5e(n,e){return Sn(e.b&&e.c?td(e.b)+"->"+td(e.c):"e_"+mt(e),n.b&&n.c?td(n.b)+"->"+td(n.c):"e_"+mt(n))}function xb(n,e){return Cf(),Fs(fa),y.Math.abs(n-e)<=fa||n==e||isNaN(n)&&isNaN(e)?0:n<e?-1:n>e?1:sb(isNaN(n),isNaN(e))}function El(){El=R,hU=new kM(n8,0),Yj=new kM("POLYLINE",1),Bv=new kM("ORTHOGONAL",2),R3=new kM("SPLINES",3)}function _C(){_C=R,l1n=new uN("ASPECT_RATIO_DRIVEN",0),Oq=new uN("MAX_SCALE_DRIVEN",1),h1n=new uN("AREA_DRIVEN",2)}function H5e(n,e,t){var i;try{l6e(n,e,t)}catch(r){throw r=Ot(r),L(r,606)?(i=r,T(new DJ(i))):T(r)}return e}function q5e(n){var e,t,i;for(t=0,i=n.length;t<i;t++)if(n[t]==null)throw T(new fp("at index "+t));return e=n,new Fu(e)}function Ml(n){var e,t,i;for(e=new Z,i=new M(n.j);i.a<i.c.c.length;)t=u(E(i),12),nn(e,t.b);return Pe(e),new S6(e)}function ji(n){var e,t,i;for(e=new Z,i=new M(n.j);i.a<i.c.c.length;)t=u(E(i),12),nn(e,t.e);return Pe(e),new S6(e)}function Qt(n){var e,t,i;for(e=new Z,i=new M(n.j);i.a<i.c.c.length;)t=u(E(i),12),nn(e,t.g);return Pe(e),new S6(e)}function U5e(n,e){var t,i,r;for(r=new de,i=e.vc().Kc();i.Ob();)t=u(i.Pb(),44),Ve(r,t.ld(),Pve(n,u(t.md(),15)));return r}function G5e(n){var e,t;for(t=DMe(jo(G0(n))).Kc();t.Ob();)if(e=Ae(t.Pb()),_5(n,e))return P3e((gMn(),Boe),e);return null}function fx(n,e){var t,i,r;for(r=0,i=u(e.Kb(n),20).Kc();i.Ob();)t=u(i.Pb(),18),on(un(v(t,(W(),zf))))||++r;return r}function vKn(n){var e,t,i,r;for(e=new XSn(n.Rd().gc()),r=0,i=Fp(n.Rd().Kc());i.Ob();)t=i.Pb(),I2e(e,t,Y(r++));return Pje(e.a)}function hx(n,e,t,i){var r,c;return Jn(i),Jn(t),r=n.xc(e),c=r==null?t:cMn(u(r,15),u(t,16)),c==null?n.Bc(e):n.zc(e,c),c}function z5e(n,e,t,i){var r,c,s;for(r=e+1;r<t;++r)for(c=r;c>e&&i.Ne(n[c-1],n[c])>0;--c)s=n[c],$t(n,c,n[c-1]),$t(n,c-1,s)}function vn(n,e){var t,i,r,c,s;if(t=e.f,s1(n.c.d,t,e),e.g!=null)for(r=e.g,c=0,s=r.length;c<s;++c)i=r[c],s1(n.c.e,i,e)}function kKn(n,e){var t,i;for(t=ge(n,0);t.b!=t.d.c;){if(i=J9(B(be(t))),i==e)return;if(i>e){wLn(t);break}}_7(t,e)}function X5e(n,e){var t,i,r;i=Ig(e),r=$(B(rw(i,(cn(),Ws)))),t=y.Math.max(0,r/2-.5),I5(e,t,1),nn(n,new DMn(e,t))}function V5e(n,e,t){var i;t.Ug("Straight Line Edge Routing",1),t.dh(e,$rn),i=u(z(e,(Cg(),L2)),27),iGn(n,i),t.dh(e,LP)}function $Y(n,e){n.n.c.length==0&&nn(n.n,new DT(n.s,n.t,n.i)),nn(n.b,e),wZ(u(sn(n.n,n.n.c.length-1),209),e),BUn(n,e)}function y5(n){var e;this.a=(e=u(n.e&&n.e(),9),new _o(e,u(xs(e,e.length),9),0)),this.b=F(ki,Kn,1,this.a.a.length,5,1)}function Jr(n){var e;return Array.isArray(n)&&n.Tm===Q2?Xa(wo(n))+"@"+(e=mt(n)>>>0,e.toString(16)):n.toString()}function W5e(n,e){return n.h==Cy&&n.m==0&&n.l==0?(e&&(wa=Yc(0,0,0)),nCn((B4(),lun))):(e&&(wa=Yc(n.l,n.m,n.h)),Yc(0,0,0))}function J5e(n,e){switch(e.g){case 2:return n.b;case 1:return n.c;case 4:return n.d;case 3:return n.a;default:return!1}}function yKn(n,e){switch(e.g){case 2:return n.b;case 1:return n.c;case 4:return n.d;case 3:return n.a;default:return!1}}function xY(n,e,t,i){switch(e){case 3:return n.f;case 4:return n.g;case 5:return n.i;case 6:return n.j}return PY(n,e,t,i)}function HC(n,e){if(e==n.d)return n.e;if(e==n.e)return n.d;throw T(new Gn("Node "+e+" not part of edge "+n))}function Q5e(n,e){var t;if(t=oy(n.Dh(),e),L(t,102))return u(t,19);throw T(new Gn(ba+e+"' is not a valid reference"))}function Jo(n,e,t,i){if(e<0)een(n,t,i);else{if(!t.rk())throw T(new Gn(ba+t.xe()+b8));u(t,69).wk().Ck(n,n.hi(),e,i)}}function eo(n){var e;if(n.b){if(eo(n.b),n.b.d!=n.c)throw T(new Ko)}else n.d.dc()&&(e=u(n.f.c.xc(n.e),16),e&&(n.d=e))}function Y5e(n){K0();var e,t,i,r;for(e=n.o.b,i=u(u(ot(n.r,(en(),ae)),21),87).Kc();i.Ob();)t=u(i.Pb(),117),r=t.e,r.b+=e}function Z5e(n){var e,t,i;for(this.a=new rh,i=new M(n);i.a<i.c.c.length;)t=u(E(i),16),e=new cIn,Zme(e,t),fi(this.a,e)}function n8e(n,e){var t,i,r;for(i=ePe(n,e),r=i[i.length-1]/2,t=0;t<i.length;t++)if(i[t]>=r)return e.c+t;return e.c+e.b.gc()}function e8e(n,e){m4();var t,i,r,c;for(i=NDn(n),r=e,R4(i,0,i.length,r),t=0;t<i.length;t++)c=H7e(n,i[t],t),t!=c&&k5(n,t,c)}function lx(n,e,t){var i,r;for(i=0,r=n.length;i<r;i++)if(B$((zn(i,n.length),n.charCodeAt(i)),e,t))return!0;return!1}function t8e(n,e){var t,i;for(i=n.e.a.ec().Kc();i.Ob();)if(t=u(i.Pb(),272),fje(e,t.d)||mEe(e,t.d))return!0;return!1}function RY(n,e,t,i,r){var c,s,f;for(s=r;e.b!=e.c;)c=u(Pp(e),10),f=u(uc(c,i).Xb(0),12),n.d[f.p]=s++,Fn(t.c,f);return s}function KY(n,e){var t,i,r,c,s,f;for(i=0,t=0,c=e,s=0,f=c.length;s<f;++s)r=c[s],r>0&&(i+=r,++t);return t>1&&(i+=n.d*(t-1)),i}function i8e(n){var e,t,i,r,c;return c=nnn(n),t=Z9(n.c),i=!t,i&&(r=new _a,bf(c,"knownLayouters",r),e=new lyn(r),qi(n.c,e)),c}function BY(n){var e,t,i;for(i=new Hl,i.a+="[",e=0,t=n.gc();e<t;)Er(i,A6(n.Vi(e))),++e<t&&(i.a+=ur);return i.a+="]",i.a}function r8e(n){return n.e==null?n:(!n.c&&(n.c=new jR((n.f&256)!=0,n.i,n.a,n.d,(n.f&16)!=0,n.j,n.g,null)),n.c)}function c8e(n){return n.k!=(Vn(),zt)?!1:Ag(new Cn(null,new pb(new ie(ce(Qt(n).a.Kc(),new En)))),new mpn)}function Qo(n){var e,t;return L(n,307)?(t=t4e(u(n,307)),e=t,e):L(n,441)?u(n,441).a:L(n,59)?new Ijn(n):new Oz(n)}function u8e(n){var e;return n==null?!0:(e=n.length,e>0&&(zn(e-1,n.length),n.charCodeAt(e-1)==58)&&!lx(n,L9,N9))}function FY(n,e){var t;return x(n)===x(e)?!0:L(e,92)?(t=u(e,92),n.e==t.e&&n.d==t.d&&O3e(n,t.a)):!1}function zp(n){switch(en(),n.g){case 4:return Xn;case 1:return Zn;case 3:return ae;case 2:return Wn;default:return sc}}function o8e(n){var e,t;if(n.b)return n.b;for(t=Uf?null:n.d;t;){if(e=Uf?null:t.b,e)return e;t=Uf?null:t.d}return a4(),$un}function _Y(n){var e,t,i;for(i=$(B(n.a.of((He(),iA)))),t=new M(n.a.Sf());t.a<t.c.c.length;)e=u(E(t),695),tzn(n,e,i)}function s8e(n){var e,t,i,r;for(e=(n.j==null&&(n.j=(A4(),r=XF.me(n),Cke(r))),n.j),t=0,i=e.length;t<i;++t);}function ax(n,e){var t,i;for(i=new M(e);i.a<i.c.c.length;)t=u(E(i),42),nn(n.b.b,u(t.b,86)),_D(u(t.a,194),u(t.b,86))}function f8e(n,e,t){var i,r;for(r=n.a.b,i=r.c.length;i<t;i++)bb(r,0,new Nc(n.a));$i(e,u(sn(r,r.c.length-t),30)),n.b[e.p]=t}function h8e(n,e,t,i,r){ko(),qs(Ns(Ls(As(Ds(new hs,0),r.d.e-n),e),r.d)),qs(Ns(Ls(As(Ds(new hs,0),t-r.a.e),r.a),i))}function jKn(n,e){var t;return n.d?Zc(n.b,e)?u(ee(n.b,e),47):(t=e.dg(),Ve(n.b,e,t),t):e.dg()}function l8e(n){var e=n.e;function t(i){return!i||i.length==0?"":" "+i.join(`
`)}return e&&(e.stack||t(n[oK]))}function HY(n,e){switch(e){case 3:return n.f!=0;case 4:return n.g!=0;case 5:return n.i!=0;case 6:return n.j!=0}return HQ(n,e)}function EKn(n){switch(n.g){case 0:return new W4n;case 1:return new Y4n;default:throw T(new Gn(cB+(n.f!=null?n.f:""+n.g)))}}function a8e(n){switch(n.g){case 0:return new J4n;case 1:return new Q4n;default:throw T(new Gn(GB+(n.f!=null?n.f:""+n.g)))}}function d8e(n){switch(n.g){case 1:return new H4n;case 2:return new fSn;default:throw T(new Gn(GB+(n.f!=null?n.f:""+n.g)))}}function MKn(n){switch(n.g){case 0:return new rz;case 1:return new cjn;default:throw T(new Gn(xP+(n.f!=null?n.f:""+n.g)))}}function dx(){ZZ();var n,e,t;t=hDe+++Date.now(),n=wi(y.Math.floor(t*Oy))&YS,e=wi(t-n*Etn),this.a=n^1502,this.b=e^NK}function Yo(){Yo=R,Ej=new h7(kh,0),_8=new h7("FIRST",1),ya=new h7(GXn,2),H8=new h7("LAST",3),xw=new h7(zXn,4)}function qC(){qC=R,bU=new EM(Ern,0),ydn=new EM("GROUP_DEC",1),Edn=new EM("GROUP_MIXED",2),jdn=new EM("GROUP_INC",3)}function b8e(n,e){var t,i,r,c;e&&(r=yl(e,"x"),t=new tyn(n),H4(t.a,(Jn(r),r)),c=yl(e,"y"),i=new ryn(n),U4(i.a,(Jn(c),c)))}function w8e(n,e){var t,i,r,c;e&&(r=yl(e,"x"),t=new uyn(n),_4(t.a,(Jn(r),r)),c=yl(e,"y"),i=new oyn(n),q4(i.a,(Jn(c),c)))}function g8e(n,e){var t,i,r,c;for(r=new Gc(e.gc()),i=e.Kc();i.Ob();)t=i.Pb(),c=OR(n,u(t,58)),c&&Fn(r.c,c);return r}function iw(n,e,t){var i,r;for(r=n.Kc();r.Ob();)if(i=r.Pb(),x(e)===x(i)||e!=null&&rt(e,i))return t&&r.Qb(),!0;return!1}function TKn(n){var e,t,i;return t=n.jh(),t?(e=n.Eh(),L(e,167)&&(i=TKn(u(e,167)),i!=null)?i+"."+t:t):null}function p8e(n){var e,t,i;return n.e==0?0:(e=n.d<<5,t=n.a[n.d-1],n.e<0&&(i=Oxn(n),i==n.d-1&&(--t,t=t|0)),e-=iy(t),e)}function m8e(n){var e,t,i;return n<fI.length?fI[n]:(t=n>>5,e=n&31,i=F(ye,_e,28,t+1,15,1),i[t]=1<<e,new Ya(1,t+1,i))}function CKn(n,e){var t,i;if(e){for(t=0;t<n.i;++t)if(i=u(n.g[t],378),i.mj(e))return!1;return ve(n,e)}else return!1}function qY(n,e,t){var i,r;if(++n.j,t.dc())return!1;for(r=t.Kc();r.Ob();)i=r.Pb(),n.qj(e,n.Zi(e,i)),++e;return!0}function v8e(n,e,t,i){var r,c;if(c=t-e,c<3)for(;c<3;)n*=10,++c;else{for(r=1;c>3;)r*=10,--c;n=(n+(r>>1))/r|0}return i.i=n,!0}function At(n,e){var t,i,r;if(t=(n.i==null&&bh(n),n.i),i=e.Lj(),i!=-1){for(r=t.length;i<r;++i)if(t[i]==e)return i}return-1}function k8e(n){var e,t,i,r,c;for(t=u(n.g,689),i=n.i-1;i>=0;--i)for(e=t[i],r=0;r<i;++r)if(c=t[r],LUn(n,e,c)){Jp(n,i);break}}function UY(n){var e,t,i,r;for(e=new _a,r=new J3(n.b.Kc());r.b.Ob();)i=u(r.b.Pb(),701),t=xje(i),jwe(e,e.a.length,t);return e.a}function GY(n){var e;return!n.c&&(n.c=new p0n),Yt(n.d,new v0n),vSe(n),e=hSe(n),qt(new Cn(null,new On(n.d,16)),new D9n(n)),e}function y8e(n,e){e.Ug("End label post-processing",1),qt(ut(rc(new Cn(null,new On(n.b,16)),new Dwn),new $wn),new xwn),e.Vg()}function zY(n){bx(),this.c=Af(S(C(IDe,1),Kn,845,0,[Jte])),this.b=new de,this.a=n,Ve(this.b,EO,1),nu(Qte,new Dkn(this))}function SKn(n,e,t){H$n(),njn.call(this),this.a=Wa(zQn,[J,Dtn],[603,217],0,[dI,f_],2),this.c=new mp,this.g=n,this.f=e,this.d=t}function XY(n,e){this.n=Wa(Ra,[J,PK],[376,28],14,[e,wi(y.Math.ceil(n/32))],2),this.o=n,this.p=e,this.j=n-1>>1,this.k=e-1>>1}function j8e(n){YT(),u(n.of((He(),Ca)),181).Hc((io(),hA))&&(u(n.of(Ww),181).Fc((zu(),K3)),u(n.of(Ca),181).Mc(hA))}function PKn(n){var e,t;e=n.d==(Yp(),dv),t=UZ(n),e&&!t||!e&&t?U(n.a,(cn(),Ch),(Bh(),Uj)):U(n.a,(cn(),Ch),(Bh(),qj))}function bx(){bx=R,nM(),EO=(cn(),g0),Qte=Af(S(C(zq,1),jrn,149,0,[Cj,Ws,C2,w0,qw,IH,Sv,Pv,OH,X8,T2,Kd,S2]))}function E8e(n,e){var t;return t=u(Wr(n,qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[(Gu(),Yr)]))),15),t.Qc(WPn(t.gc()))}function IKn(n,e){var t,i;if(i=new Y3(n.a.ad(e,!0)),i.a.gc()<=1)throw T(new rp);return t=i.a.ec().Kc(),t.Pb(),u(t.Pb(),40)}function M8e(n,e,t){var i,r;return i=$(n.p[e.i.p])+$(n.d[e.i.p])+e.n.b+e.a.b,r=$(n.p[t.i.p])+$(n.d[t.i.p])+t.n.b+t.a.b,r-i}function VY(n,e){var t;return n.i>0&&(e.length<n.i&&(t=gk(wo(e).c,n.i),e=t),Oc(n.g,0,e,0,n.i)),e.length>n.i&&$t(e,n.i,null),e}function UC(n){var e;return n.Db&64?p5(n):(e=new ls(p5(n)),e.a+=" (instanceClassName: ",Er(e,n.D),e.a+=")",e.a)}function GC(n){var e,t,i,r;for(r=0,t=0,i=n.length;t<i;t++)e=(zn(t,n.length),n.charCodeAt(t)),e<64&&(r=lf(r,Ks(1,e)));return r}function T8e(n,e,t){var i,r;for(i=vi(t,mr),r=0;Ec(i,0)!=0&&r<e;r++)i=nr(i,vi(n[r],mr)),n[r]=Se(i),i=wb(i,32);return Se(i)}function Rk(n,e){var t,i,r,c;for(c=ru(n.e.Dh(),e),t=u(n.g,124),r=0;r<n.i;++r)if(i=t[r],c.am(i.Lk()))return!1;return!0}function wx(n,e){var t,i,r;return n.f>0?(n._j(),i=e==null?0:mt(e),r=(i&et)%n.d.length,t=BHn(n,r,i,e),t!=-1):!1}function OKn(n,e){var t,i;n.a=nr(n.a,1),n.c=y.Math.min(n.c,e),n.b=y.Math.max(n.b,e),n.d+=e,t=e-n.f,i=n.e+t,n.f=i-n.e-t,n.e=i}function WY(n,e){switch(e){case 3:Ib(n,0);return;case 4:Ob(n,0);return;case 5:eu(n,0);return;case 6:tu(n,0);return}vY(n,e)}function Rb(n,e){switch(e.g){case 1:return Mp(n.j,(Au(),Ron));case 2:return Mp(n.j,(Au(),Bon));default:return Ln(),Ln(),sr}}function JY(n){mb();var e;switch(e=n.Pc(),e.length){case 0:return qF;case 1:return new VN(Pe(e[0]));default:return new ID(q5e(e))}}function AKn(n,e){n.Xj();try{n.d.bd(n.e++,e),n.f=n.d.j,n.g=-1}catch(t){throw t=Ot(t),L(t,77)?T(new Ko):T(t)}}function gx(){gx=R,TU=new Cvn,zdn=new Svn,Xdn=new Pvn,Vdn=new Ivn,Wdn=new Ovn,Jdn=new Avn,Qdn=new Lvn,Ydn=new Nvn,Zdn=new Dvn}function zC(n,e){vX();var t,i;return t=O7((FE(),FE(),C8)),i=null,e==t&&(i=u(Dc(fun,n),624)),i||(i=new JIn(n),e==t&&Lr(fun,n,i)),i}function LKn(n){cw();var e;return(n.q?n.q:(Ln(),Ln(),Wh))._b((cn(),d0))?e=u(v(n,d0),203):e=u(v(Hi(n),z8),203),e}function rw(n,e){var t,i;return i=null,kt(n,(cn(),yO))&&(t=u(v(n,yO),96),t.pf(e)&&(i=t.of(e))),i==null&&(i=v(Hi(n),e)),i}function NKn(n,e){var t,i,r;return L(e,44)?(t=u(e,44),i=t.ld(),r=tw(n.Rc(),i),sh(r,t.md())&&(r!=null||n.Rc()._b(i))):!1}function gf(n,e){var t,i,r;return n.f>0&&(n._j(),i=e==null?0:mt(e),r=(i&et)%n.d.length,t=$nn(n,r,i,e),t)?t.md():null}function Xc(n,e,t){var i,r,c;return n.Pj()?(i=n.i,c=n.Qj(),Lk(n,i,e),r=n.Ij(3,null,e,i,c),t?t.nj(r):t=r):Lk(n,n.i,e),t}function C8e(n,e,t){var i,r;return i=new ml(n.e,4,10,(r=e.c,L(r,90)?u(r,29):(An(),Os)),null,f1(n,e),!1),t?t.nj(i):t=i,t}function S8e(n,e,t){var i,r;return i=new ml(n.e,3,10,null,(r=e.c,L(r,90)?u(r,29):(An(),Os)),f1(n,e),!1),t?t.nj(i):t=i,t}function DKn(n){K0();var e;return e=new rr(u(n.e.of((He(),_2)),8)),n.B.Hc((io(),_v))&&(e.a<=0&&(e.a=20),e.b<=0&&(e.b=20)),e}function ia(n){dh();var e,t;return t=Se(n),e=Se(U1(n,32)),e!=0?new HAn(t,e):t>10||t<0?new gl(1,t):kQn[t]}function Kk(n,e){var t;return Vr(n)&&Vr(e)&&(t=n%e,Sy<t&&t<vd)?t:Y1((Wen(Vr(n)?ds(n):n,Vr(e)?ds(e):e,!0),wa))}function j5(n,e){var t;bLe(e),t=u(v(n,(cn(),bO)),283),t&&U(n,bO,O7e(t)),zl(n.c),zl(n.f),qJ(n.d),qJ(u(v(n,mO),214))}function P8e(n){var e,t,i,r;for(i=uEe(n),Yt(i,BZn),r=n.d,r.c.length=0,t=new M(i);t.a<t.c.c.length;)e=u(E(t),466),hi(r,e.b)}function px(n){var e;n.c!=0&&(e=u(sn(n.a,n.b),294),e.b==1?(++n.b,n.b<n.a.c.length&&r9n(u(sn(n.a,n.b),294))):--e.b,--n.c)}function I8e(n){var e;e=n.a;do e=u(fe(new ie(ce(Qt(e).a.Kc(),new En))),18).d.i,e.k==(Vn(),Ti)&&nn(n.e,e);while(e.k==(Vn(),Ti))}function $Kn(n){this.e=F(ye,_e,28,n.length,15,1),this.c=F(so,Xh,28,n.length,16,1),this.b=F(so,Xh,28,n.length,16,1),this.f=0}function O8e(n){var e,t;for(n.j=F(Ii,Cr,28,n.p.c.length,15,1),t=new M(n.p);t.a<t.c.c.length;)e=u(E(t),10),n.j[e.p]=e.o.b/n.i}function A8e(n,e){var t,i,r,c;for(c=e.b.b,n.a=new Mt,n.b=F(ye,_e,28,c,15,1),t=0,r=ge(e.b,0);r.b!=r.d.c;)i=u(be(r),40),i.g=t++}function xKn(n,e,t){var i,r,c,s;for(c=e-n.e,s=t-n.f,r=new M(n.a);r.a<r.c.c.length;)i=u(E(r),172),Hk(i,i.s+c,i.t+s);n.e=e,n.f=t}function Bk(n,e){var t,i;for(i=e.length,t=0;t<i;t+=2)xc(n,(zn(t,e.length),e.charCodeAt(t)),(zn(t+1,e.length),e.charCodeAt(t+1)))}function L8e(n,e){e.Ug("Min Size Postprocessing",1),ht(n,(_h(),Xw),y.Math.max($(B(z(n,Xw))),$(B(z(n,f9))))),e.Vg()}function QY(){QY=R,wdn=new fb(15),uoe=new Di((He(),M1),wdn),soe=new Di(qd,15),ooe=new Di(sU,Y(0)),coe=new Di(x2,Gm)}function go(){go=R,rE=new jM("PORTS",0),Gd=new jM("PORT_LABELS",1),iE=new jM("NODE_LABELS",2),Qw=new jM("MINIMUM_SIZE",3)}function XC(){XC=R,Kj=new rN("P1_WIDTH_APPROXIMATION",0),qO=new rN("P2_PACKING",1),Mq=new rN("P3_WHITESPACE_ELIMINATION",2)}function RKn(n){if(n.b==null){for(;n.a.Ob();)if(n.b=n.a.Pb(),!u(n.b,54).Jh())return!0;return n.b=null,!1}else return!0}function bm(n,e,t){var i,r,c;for(r=null,c=n.b;c;){if(i=n.a.Ne(e,c.d),t&&i==0)return c;i>=0?c=c.a[1]:(r=c,c=c.a[0])}return r}function Fk(n,e,t){var i,r,c;for(r=null,c=n.b;c;){if(i=n.a.Ne(e,c.d),t&&i==0)return c;i<=0?c=c.a[0]:(r=c,c=c.a[1])}return r}function N8e(n,e,t,i){var r,c,s;return r=!1,xAe(n.f,t,i)&&(e9e(n.f,n.a[e][t],n.a[e][i]),c=n.a[e],s=c[i],c[i]=c[t],c[t]=s,r=!0),r}function KKn(n,e,t){var i,r,c,s;for(r=u(ee(n.b,t),183),i=0,s=new M(e.j);s.a<s.c.c.length;)c=u(E(s),113),r[c.d.p]&&++i;return i}function YY(n,e,t){var i,r;i=u(Dc(Uv,e),122),r=u(Dc(B9,e),122),t?(Lr(Uv,n,i),Lr(B9,n,r)):(Lr(B9,n,i),Lr(Uv,n,r))}function BKn(n,e){var t,i,r,c;return t=e>>5,e&=31,r=n.d+t+(e==0?0:1),i=F(ye,_e,28,r,15,1),Aye(i,n.a,t,e),c=new Ya(n.e,r,i),J6(c),c}function D8e(n,e){var t,i,r;for(i=new ie(ce(Qt(n).a.Kc(),new En));pe(i);)if(t=u(fe(i),18),r=t.d.i,r.c==e)return!1;return!0}function ZY(n,e,t){var i,r,c,s,f;return s=n.k,f=e.k,i=t[s.g][f.g],r=B(rw(n,i)),c=B(rw(e,i)),y.Math.max((Jn(r),r),(Jn(c),c))}function $8e(){return Error.stackTraceLimit>0?(y.Error.stackTraceLimit=Error.stackTraceLimit=64,!0):"stack"in new Error}function x8e(n,e){return Cf(),Cf(),Fs(fa),(y.Math.abs(n-e)<=fa||n==e||isNaN(n)&&isNaN(e)?0:n<e?-1:n>e?1:sb(isNaN(n),isNaN(e)))>0}function nZ(n,e){return Cf(),Cf(),Fs(fa),(y.Math.abs(n-e)<=fa||n==e||isNaN(n)&&isNaN(e)?0:n<e?-1:n>e?1:sb(isNaN(n),isNaN(e)))<0}function FKn(n,e){return Cf(),Cf(),Fs(fa),(y.Math.abs(n-e)<=fa||n==e||isNaN(n)&&isNaN(e)?0:n<e?-1:n>e?1:sb(isNaN(n),isNaN(e)))<=0}function mx(n,e){for(var t=0;!e[t]||e[t]=="";)t++;for(var i=e[t++];t<e.length;t++)!e[t]||e[t]==""||(i+=n+e[t]);return i}function _Kn(n){var e,t;return e=u(Un(n.a,4),129),e!=null?(t=F(yU,TF,424,e.length,0,1),Oc(e,0,t,0,e.length),t):Ooe}function HKn(n){var e,t,i,r,c;if(n==null)return null;for(c=new Z,t=z$(n),i=0,r=t.length;i<r;++i)e=t[i],nn(c,Rc(e,!0));return c}function qKn(n){var e,t,i,r,c;if(n==null)return null;for(c=new Z,t=z$(n),i=0,r=t.length;i<r;++i)e=t[i],nn(c,Rc(e,!0));return c}function UKn(n){var e,t,i,r,c;if(n==null)return null;for(c=new Z,t=z$(n),i=0,r=t.length;i<r;++i)e=t[i],nn(c,Rc(e,!0));return c}function GKn(n,e){var t,i,r;if(n.c)Ib(n.c,e);else for(t=e-ao(n),r=new M(n.a);r.a<r.c.c.length;)i=u(E(r),163),GKn(i,ao(i)+t)}function zKn(n,e){var t,i,r;if(n.c)Ob(n.c,e);else for(t=e-Pu(n),r=new M(n.d);r.a<r.c.c.length;)i=u(E(r),163),zKn(i,Pu(i)+t)}function ws(n,e,t){var i,r,c,s;for(c=e+t,Ri(e,c,n.length),s="",r=e;r<c;)i=y.Math.min(r+1e4,c),s+=Ywe(n.slice(r,i)),r=i;return s}function eZ(n){switch(n.g){case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:return!0;default:return!1}}function o1(){o1=R,W_=new f7(rin,0),Lsn=new f7(VXn,1),J_=new f7(sB,2),pv=new f7(ein,3),gv=new f7("GREEDY_MODEL_ORDER",4)}function lh(){lh=R,k1=new gM(kh,0),_hn=new gM("NODES_AND_EDGES",1),_H=new gM("PREFER_EDGES",2),HH=new gM("PREFER_NODES",3)}function tZ(n,e,t,i,r,c){this.a=n,this.c=e,this.b=t,this.f=i,this.d=r,this.e=c,this.c>0&&this.b>0&&(this.g=cT(this.c,this.b,this.a))}function R8e(n,e){var t=n.a,i;e=String(e),t.hasOwnProperty(e)&&(i=t[e]);var r=(F$(),VF)[typeof i],c=r?r(i):bY(typeof i);return c}function wm(n){var e,t,i;if(i=null,e=Eh in n.a,t=!e,t)throw T(new eh("Every element must have an id."));return i=Zp(dl(n,Eh)),i}function Kb(n){var e,t;for(t=a_n(n),e=null;n.c==2;)Ze(n),e||(e=(nt(),nt(),new P6(2)),pd(e,t),t=e),t.Jm(a_n(n));return t}function VC(n,e){var t,i,r;return n._j(),i=e==null?0:mt(e),r=(i&et)%n.d.length,t=$nn(n,r,i,e),t?(V$n(n,t),t.md()):null}function XKn(n,e){return n.e>e.e?1:n.e<e.e?-1:n.d>e.d?n.e:n.d<e.d?-e.e:n.e*fY(n.a,e.a,n.d)}function VKn(n){return n>=48&&n<48+y.Math.min(10,10)?n-48:n>=97&&n<97?n-97+10:n>=65&&n<65?n-65+10:-1}function K8e(n,e){if(e.c==n)return e.d;if(e.d==n)return e.c;throw T(new Gn("Input edge is not connected to the input port."))}function B8e(n){if(JC(nv,n))return _n(),ov;if(JC(cF,n))return _n(),ga;throw T(new Gn("Expecting true or false"))}function iZ(n){switch(typeof n){case nK:return t1(n);case atn:return pp(n);case i3:return PSn(n);default:return n==null?0:lb(n)}}function ah(n,e){if(n.a<0)throw T(new Ar("Did not call before(...) or after(...) before calling add(...)."));return QX(n,n.a,e),n}function rZ(n){return $T(),L(n,162)?u(ee(hE,TQn),295).Rg(n):Zc(hE,wo(n))?u(ee(hE,wo(n)),295).Rg(n):null}function iu(n){var e,t;return n.Db&32||(t=(e=u(Un(n,16),29),se(e||n.ii())-se(n.ii())),t!=0&&Xp(n,32,F(ki,Kn,1,t,5,1))),n}function Xp(n,e,t){var i;n.Db&e?t==null?jMe(n,e):(i=Bx(n,e),i==-1?n.Eb=t:$t(cd(n.Eb),i,t)):t!=null&&GCe(n,e,t)}function F8e(n,e,t,i){var r,c;e.c.length!=0&&(r=$Te(t,i),c=xEe(e),qt(fC(new Cn(null,new On(c,1)),new N3n),new TOn(n,t,r,i)))}function _8e(n,e){var t,i,r,c;return i=n.a.length-1,t=e-n.b&i,c=n.c-e&i,r=n.c-n.b&i,ESn(t<r),t>=c?(B6e(n,e),-1):(K6e(n,e),1)}function WC(n){var e,t,i;if(i=n.Jh(),!i)for(e=0,t=n.Ph();t;t=t.Ph()){if(++e>IK)return t.Qh();if(i=t.Jh(),i||t==n)break}return i}function WKn(n,e){var t;return x(e)===x(n)?!0:!L(e,21)||(t=u(e,21),t.gc()!=n.gc())?!1:n.Ic(t)}function H8e(n,e){return n.e<e.e?-1:n.e>e.e?1:n.f<e.f?-1:n.f>e.f?1:mt(n)-mt(e)}function JC(n,e){return Jn(n),e==null?!1:Sn(n,e)?!0:n.length==e.length&&Sn(n.toLowerCase(),e.toLowerCase())}function Tl(n){var e,t;return Ec(n,-129)>0&&Ec(n,128)<0?(ZPn(),e=Se(n)+128,t=mun[e],!t&&(t=mun[e]=new vG(n)),t):new vG(n)}function dd(){dd=R,Aw=new aM(kh,0),Lon=new aM("INSIDE_PORT_SIDE_GROUPS",1),P_=new aM("GROUP_MODEL_ORDER",2),I_=new aM(ein,3)}function q8e(n){var e;return n.b||xhe(n,(e=$ae(n.e,n.a),!e||!Sn(cF,gf((!e.b&&(e.b=new lo((An(),ar),pc,e)),e.b),"qualified")))),n.c}function U8e(n,e){var t,i;for(t=(zn(e,n.length),n.charCodeAt(e)),i=e+1;i<n.length&&(zn(i,n.length),n.charCodeAt(i)==t);)++i;return i-e}function G8e(n,e){(!e&&console.groupCollapsed!=null?console.groupCollapsed:console.group??console.log).call(console,n)}function z8e(n,e,t,i){i==n,u(t.b,68),u(t.b,68),u(i.b,68),u(i.b,68).c.b,zJ(i,e,n)}function X8e(n){var e,t;for(e=new M(n.g);e.a<e.c.c.length;)u(E(e),568);t=new hqn(n.g,$(n.a),n.c),yLe(t),n.g=t.b,n.d=t.a}function JKn(n,e,t){var i,r,c;for(c=new M(t.a);c.a<c.c.c.length;)r=u(E(c),225),i=new NM(u(ee(n.a,r.b),68)),nn(e.a,i),JKn(n,i,r)}function V8e(n,e,t){var i,r,c;return i=u(N(no(n.a),e),89),c=(r=i.c,r||(An(),Zf)),(c.Vh()?ea(n.b,u(c,54)):c)==t?KS(i):F4(i,t),c}function cZ(n,e,t){e.b=y.Math.max(e.b,-t.a),e.c=y.Math.max(e.c,t.a-n.a),e.d=y.Math.max(e.d,-t.b),e.a=y.Math.max(e.a,t.b-n.b)}function uZ(n,e,t){this.c=n,this.f=new Z,this.e=new Ni,this.j=new oW,this.n=new oW,this.b=e,this.g=new Ho(e.c,e.d,e.b,e.a),this.a=t}function vx(n){var e,t,i,r;for(this.a=new rh,this.d=new ni,this.e=0,t=n,i=0,r=t.length;i<r;++i)e=t[i],!this.f&&(this.f=e),_D(this,e)}function QKn(n){dh(),n.length==0?(this.e=0,this.d=1,this.a=S(C(ye,1),_e,28,15,[0])):(this.e=1,this.d=n.length,this.a=n,J6(this))}function E5(n,e,t){njn.call(this),this.a=F(zQn,Dtn,217,(wf(),S(C(Pw,1),G,237,0,[bc,Wc,wc])).length,0,1),this.b=n,this.d=e,this.c=t}function W8e(n){var e,t,i,r,c,s;for(s=u(v(n,(W(),st)),12),U(s,jv,n.i.n.b),e=hh(n.e),i=e,r=0,c=i.length;r<c;++r)t=i[r],Oi(t,s)}function J8e(n){var e,t,i,r,c,s;for(t=u(v(n,(W(),st)),12),U(t,jv,n.i.n.b),e=hh(n.g),r=e,c=0,s=r.length;c<s;++c)i=r[c],Zi(i,t)}function Q8e(n,e){DD();var t,i;for(i=new ie(ce(Ml(n).a.Kc(),new En));pe(i);)if(t=u(fe(i),18),t.d.i==e||t.c.i==e)return t;return null}function YKn(n,e){var t,i;return t=e.qi(n.a),t&&(i=Ae(gf((!t.b&&(t.b=new lo((An(),ar),pc,t)),t.b),Qe)),i!=null)?i:e.xe()}function Y8e(n,e){var t,i;return t=e.qi(n.a),t&&(i=Ae(gf((!t.b&&(t.b=new lo((An(),ar),pc,t)),t.b),Qe)),i!=null)?i:e.xe()}function Z8e(n,e){var t,i;return t=jc(n.a.c.p,e.a.c.p),t!=0?t:(i=jc(n.a.d.i.p,e.a.d.i.p),i!=0?i:jc(e.a.d.p,n.a.d.p))}function n9e(n,e){var t,i,r,c;for(i=0,r=e.gc();i<r;++i)t=e.Tl(i),L(t,102)&&u(t,19).Bb&kc&&(c=e.Ul(i),c!=null&&OR(n,u(c,58)))}function ZKn(n,e){var t,i,r;if(nn(mI,n),e.Fc(n),t=u(ee(p_,n),21),t)for(r=t.Kc();r.Ob();)i=u(r.Pb(),27),qr(mI,i,0)!=-1||ZKn(i,e)}function e9e(n,e,t){var i,r;eR(n.e,e,t,(en(),Wn)),eR(n.i,e,t,Zn),n.a&&(r=u(v(e,(W(),st)),12),i=u(v(t,st),12),FD(n.g,r,i))}function nBn(n,e,t){var i,r,c;i=e.c.p,c=e.p,n.b[i][c]=new XOn(n,e),t&&(n.a[i][c]=new R7n(e),r=u(v(e,(W(),s0)),10),r&&In(n.d,r,e))}function t9e(n,e,t){var i,r,c,s;return c=e.j,s=t.j,c!=s?c.g-s.g:(i=n.f[e.p],r=n.f[t.p],i==0&&r==0?0:i==0?-1:r==0?1:bt(i,r))}function i9e(){var n;return cI!=0&&(n=Date.now(),n-hQn>2e3&&(hQn=n,uI=y.setTimeout(_he,10))),cI++==0?(ime((lz(),sun)),!0):!1}function r9e(n,e,t){var i;(LQn?(o8e(n),!0):NQn||$Qn?(a4(),!0):DQn&&(a4(),!1))&&(i=new aPn(e),i.b=t,aje(n,i))}function kx(n,e){var t;t=!n.A.Hc((go(),Gd))||n.q==(Ai(),qc),n.u.Hc((zu(),Rl))?t?XLe(n,e):UGn(n,e):n.u.Hc(Oa)&&(t?dLe(n,e):czn(n,e))}function eBn(n){var e;x(z(n,(He(),B2)))===x((jl(),uA))&&(St(n)?(e=u(z(St(n),B2),346),ht(n,B2,e)):ht(n,B2,E9))}function c9e(n){var e,t;return kt(n.d.i,(cn(),Mv))?(e=u(v(n.c.i,Mv),17),t=u(v(n.d.i,Mv),17),jc(e.a,t.a)>0):!1}function tBn(n,e,t){return new Ho(y.Math.min(n.a,e.a)-t/2,y.Math.min(n.b,e.b)-t/2,y.Math.abs(n.a-e.a)+t,y.Math.abs(n.b-e.b)+t)}function iBn(n){var e;this.d=new Z,this.j=new Ni,this.g=new Ni,e=n.g.b,this.f=u(v(Hi(e),(cn(),Lo)),88),this.e=$(B(nS(e,qw)))}function rBn(n){this.d=new Z,this.e=new Ql,this.c=F(ye,_e,28,(en(),S(C(lr,1),Tc,64,0,[sc,Xn,Zn,ae,Wn])).length,15,1),this.b=n}function oZ(n,e,t){var i;switch(i=t[n.g][e],n.g){case 1:case 3:return new V(0,i);case 2:case 4:return new V(i,0);default:return null}}function cBn(n,e,t){var i,r;r=u(z7(e.f),205);try{r.rf(n,t),hOn(e.f,r)}catch(c){throw c=Ot(c),L(c,103)?(i=c,T(i)):T(c)}}function uBn(n,e,t){var i,r,c,s,f,h;return i=null,f=Yen(z4(),e),c=null,f&&(r=null,h=Jen(f,t),s=null,h!=null&&(s=n.qf(f,h)),r=s,c=r),i=c,i}function yx(n,e,t,i){var r;if(r=n.length,e>=r)return r;for(e=e>0?e:0;e<r&&!B$((zn(e,n.length),n.charCodeAt(e)),t,i);e++);return e}function Rf(n,e){var t,i;for(i=n.c.length,e.length<i&&(e=qE(new Array(i),e)),t=0;t<i;++t)$t(e,t,n.c[t]);return e.length>i&&$t(e,i,null),e}function oBn(n,e){var t,i;for(i=n.a.length,e.length<i&&(e=qE(new Array(i),e)),t=0;t<i;++t)$t(e,t,n.a[t]);return e.length>i&&$t(e,i,null),e}function gm(n,e){var t,i;if(++n.j,e!=null&&(t=(i=n.a.Cb,L(i,99)?u(i,99).th():null),hMe(e,t))){Xp(n.a,4,t);return}Xp(n.a,4,u(e,129))}function u9e(n){var e;if(n==null)return null;if(e=lTe(Rc(n,!0)),e==null)throw T(new kL("Invalid hexBinary value: '"+n+"'"));return e}function QC(n,e,t){var i;e.a.length>0&&(nn(n.b,new PPn(e.a,t)),i=e.a.length,0<i?e.a=qo(e.a,0,0):0>i&&(e.a+=OCn(F(fs,gh,28,-i,15,1))))}function sBn(n,e,t){var i,r,c;if(!t[e.d])for(t[e.d]=!0,r=new M(xg(e));r.a<r.c.c.length;)i=u(E(r),218),c=HC(i,e),sBn(n,c,t)}function s1(n,e,t){var i,r,c;return r=u(ee(n.e,e),400),r?(c=bV(r,t),LCn(n,r),c):(i=new qV(n,e,t),Ve(n.e,e,i),rAn(i),null)}function o9e(n,e,t,i){var r,c,s;return r=new ml(n.e,1,13,(s=e.c,s||(An(),Zf)),(c=t.c,c||(An(),Zf)),f1(n,e),!1),i?i.nj(r):i=r,i}function jx(){return VS(),S(C(vYn,1),G,164,0,[pYn,gYn,mYn,sYn,oYn,fYn,aYn,lYn,hYn,wYn,bYn,dYn,cYn,rYn,uYn,tYn,eYn,iYn,ZQn,YQn,nYn,h_])}function pm(n){switch(n.g){case 4:return new V(0,-1);case 1:return new V(1,0);case 2:return new V(-1,0);default:return new V(0,1)}}function Ex(n){switch(n.g){case 1:return ci(),us;case 4:return ci(),Kr;case 2:return ci(),Xr;case 3:return ci(),Wf}return ci(),Jf}function s9e(n){var e;switch(e=n.hj(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 pf(){pf=R,xn=new g7("PARENTS",0),pi=new g7("NODES",1),Ih=new g7("EDGES",2),Fd=new g7("PORTS",3),E1=new g7("LABELS",4)}function f9e(n,e,t){var i;switch(i=t.q.getFullYear()-ha+ha,i<0&&(i=-i),e){case 1:n.a+=i;break;case 2:Kh(n,i%100,2);break;default:Kh(n,i,e)}}function ge(n,e){var t,i;if(z0(e,n.b),e>=n.b>>1)for(i=n.c,t=n.b;t>e;--t)i=i.b;else for(i=n.a.a,t=0;t<e;++t)i=i.a;return new lPn(n,e,i)}function YC(){YC=R,u_=new Hz("NUM_OF_EXTERNAL_SIDES_THAN_NUM_OF_EXTENSIONS_LAST",0),Run=new Hz("CORNER_CASES_THAN_SINGLE_SIDE_LAST",1)}function fBn(n){this.b=new Z,this.e=new Z,this.d=n,this.a=!s4(ut(new Cn(null,new pb(new Lf(n.b))),new Z3(new vpn))).Bd((Va(),v3))}function hBn(n,e){var t,i,r,c;for(t=0,r=new M(e.a);r.a<r.c.c.length;)i=u(E(r),10),c=i.o.a+i.d.c+i.d.b+n.j,t=y.Math.max(t,c);return t}function lBn(n,e){var t,i,r;r=e.d.i,i=r.k,!(i==(Vn(),zt)||i==Gf)&&(t=new ie(ce(Qt(r).a.Kc(),new En)),pe(t)&&Ve(n.k,e,u(fe(t),18)))}function h9e(n,e){return kl(),bt((n.a.b==0?new V(n.c.e.a,n.c.e.b):u(p4(n.a),8)).b,(e.a.b==0?new V(e.c.e.a,e.c.e.b):u(p4(e.a),8)).b)}function l9e(n,e){return kl(),bt((n.a.b==0?new V(n.c.e.a,n.c.e.b):u(p4(n.a),8)).a,(e.a.b==0?new V(e.c.e.a,e.c.e.b):u(p4(e.a),8)).a)}function a9e(n,e){return kl(),bt((n.a.b==0?new V(n.b.e.a,n.b.e.b):u($s(n.a),8)).a,(e.a.b==0?new V(e.b.e.a,e.b.e.b):u($s(e.a),8)).a)}function d9e(n,e){return kl(),bt((n.a.b==0?new V(n.b.e.a,n.b.e.b):u($s(n.a),8)).b,(e.a.b==0?new V(e.b.e.a,e.b.e.b):u($s(e.a),8)).b)}function Kg(){Kg=R,Pa=new m7("DISTRIBUTED",0),eE=new m7("JUSTIFIED",1),adn=new m7("BEGIN",2),M9=new m7(qm,3),ddn=new m7("END",4)}function Mx(n,e){var t,i,r;return i=$n(n.Dh(),e),t=e-n.ji(),t<0?(r=n.Ih(i),r>=0?n.Wh(r):hR(n,i)):t<0?hR(n,i):u(i,69).wk().Bk(n,n.hi(),t)}function aBn(n){var e,t,i;for(i=(!n.o&&(n.o=new Ou((Mc(),il),C1,n,0)),n.o),t=i.c.Kc();t.e!=t.i.gc();)e=u(t.Yj(),44),e.md();return rk(i)}function rn(n){var e;if(L(n.a,4)){if(e=rZ(n.a),e==null)throw T(new Ar(DVn+n.b+"'. "+NVn+(ll(lE),lE.k)+dcn));return e}else return n.a}function b9e(n,e){var t,i;if(n.j.length!=e.j.length)return!1;for(t=0,i=n.j.length;t<i;t++)if(!Sn(n.j[t],e.j[t]))return!1;return!0}function ue(n){var e;try{return e=n.i.Xb(n.e),n.Xj(),n.g=n.e++,e}catch(t){throw t=Ot(t),L(t,77)?(n.Xj(),T(new nc)):T(t)}}function Tx(n){var e;try{return e=n.c.Vi(n.e),n.Xj(),n.g=n.e++,e}catch(t){throw t=Ot(t),L(t,77)?(n.Xj(),T(new nc)):T(t)}}function ZC(n){var e,t,i,r;for(r=0,t=0,i=n.length;t<i;t++)e=(zn(t,n.length),n.charCodeAt(t)),e>=64&&e<128&&(r=lf(r,Ks(1,e-64)));return r}function nS(n,e){var t,i;return i=null,kt(n,(He(),$3))&&(t=u(v(n,$3),96),t.pf(e)&&(i=t.of(e))),i==null&&Hi(n)&&(i=v(Hi(n),e)),i}function w9e(n,e){var t;return t=u(v(n,(cn(),Rr)),75),yN(e,NZn)?t?vo(t):(t=new Tu,U(n,Rr,t)):t&&U(n,Rr,null),t}function M5(){M5=R,aon=(He(),qan),w_=Ean,LYn=x2,lon=M1,xYn=(aS(),Uun),$Yn=Hun,RYn=zun,DYn=_un,NYn=(Q$(),son),b_=IYn,hon=OYn,pI=AYn}function eS(n){switch(Dz(),this.c=new Z,this.d=n,n.g){case 0:case 2:this.a=HW(Aon),this.b=Pt;break;case 3:case 1:this.a=Aon,this.b=li}}function g9e(n){var e;Ep(u(v(n,(cn(),Ft)),101))&&(e=n.b,nHn((Nn(0,e.c.length),u(e.c[0],30))),nHn(u(sn(e,e.c.length-1),30)))}function p9e(n,e){e.Ug("Self-Loop post-processing",1),qt(ut(ut(rc(new Cn(null,new On(n.b,16)),new s2n),new f2n),new h2n),new l2n),e.Vg()}function dBn(n,e,t){var i,r;if(n.c)eu(n.c,n.c.i+e),tu(n.c,n.c.j+t);else for(r=new M(n.b);r.a<r.c.c.length;)i=u(E(r),163),dBn(i,e,t)}function m9e(n){var e;if(n==null)return null;if(e=iNe(Rc(n,!0)),e==null)throw T(new kL("Invalid base64Binary value: '"+n+"'"));return e}function Zo(n,e){var t;t=n.fd(e);try{return t.Pb()}catch(i){throw i=Ot(i),L(i,112)?T(new Or("Can't get element "+e)):T(i)}}function bBn(n,e){var t,i,r;for(t=n.o,r=u(u(ot(n.r,e),21),87).Kc();r.Ob();)i=u(r.Pb(),117),i.e.a=y7e(i,t.a),i.e.b=t.b*$(B(i.b.of(bI)))}function v9e(n,e){var t,i,r;for(r=new Gc(e.gc()),i=e.Kc();i.Ob();)t=u(i.Pb(),293),t.c==t.f?Em(n,t,t.c):Hje(n,t)||Fn(r.c,t);return r}function wBn(n){var e;return e=new x1,e.a+="n",n.k!=(Vn(),zt)&&Be(Be((e.a+="(",e),PN(n.k).toLowerCase()),")"),Be((e.a+="_",e),qk(n)),e.a}function k9e(n,e){var t,i,r,c;return r=n.k,t=$(B(v(n,(W(),f0)))),c=e.k,i=$(B(v(e,f0))),c!=(Vn(),Zt)?-1:r!=Zt?1:t==i?0:t<i?-1:1}function y9e(n,e){var t,i;return t=u(u(ee(n.g,e.a),42).a,68),i=u(u(ee(n.g,e.b),42).a,68),J1(e.a,e.b)-J1(e.a,LX(t.b))-J1(e.b,LX(i.b))}function gBn(n,e){var t;switch(t=u(Mr(n.b,e),127).n,e.g){case 1:n.t>=0&&(t.d=n.t);break;case 3:n.t>=0&&(t.a=n.t)}n.C&&(t.b=n.C.b,t.c=n.C.c)}function T5(){T5=R,Dhn=new l7(Ern,0),BH=new l7(sB,1),FH=new l7("LINEAR_SEGMENTS",2),W8=new l7("BRANDES_KOEPF",3),J8=new l7(sVn,4)}function C5(){C5=R,fj=new hM(eP,0),wI=new hM(HK,1),gI=new hM(qK,2),hj=new hM(UK,3),fj.a=!1,wI.a=!0,gI.a=!1,hj.a=!0}function Vp(){Vp=R,uj=new fM(eP,0),cj=new fM(HK,1),oj=new fM(qK,2),sj=new fM(UK,3),uj.a=!1,cj.a=!0,oj.a=!1,sj.a=!0}function Wp(n,e,t,i){var r;return t>=0?n.Sh(e,t,i):(n.Ph()&&(i=(r=n.Fh(),r>=0?n.Ah(i):n.Ph().Th(n,-1-r,null,i))),n.Ch(e,t,i))}function sZ(n,e){switch(e){case 7:!n.e&&(n.e=new Dn(Vt,n,7,4)),me(n.e);return;case 8:!n.d&&(n.d=new Dn(Vt,n,8,5)),me(n.d);return}WY(n,e)}function ht(n,e,t){return t==null?(!n.o&&(n.o=new Ou((Mc(),il),C1,n,0)),VC(n.o,e)):(!n.o&&(n.o=new Ou((Mc(),il),C1,n,0)),zk(n.o,e,t)),n}function pBn(n,e){Ln();var t,i,r,c;for(t=n,c=e,L(n,21)&&!L(e,21)&&(t=e,c=n),r=t.Kc();r.Ob();)if(i=r.Pb(),c.Hc(i))return!1;return!0}function j9e(n,e,t,i){if(e.a<i.a)return!0;if(e.a==i.a){if(e.b<i.b)return!0;if(e.b==i.b&&n.b>t.b)return!0}return!1}function Cx(n,e){return Si(n)?!!iQn[e]:n.Sm?!!n.Sm[e]:$0(n)?!!tQn[e]:D0(n)?!!eQn[e]:!1}function E9e(n){var e;e=n.a;do e=u(fe(new ie(ce(ji(e).a.Kc(),new En))),18).c.i,e.k==(Vn(),Ti)&&n.b.Fc(e);while(e.k==(Vn(),Ti));n.b=Qo(n.b)}function mBn(n,e){var t,i,r;for(r=n,i=new ie(ce(ji(e).a.Kc(),new En));pe(i);)t=u(fe(i),18),t.c.i.c&&(r=y.Math.max(r,t.c.i.c.p));return r}function M9e(n,e){var t,i,r;for(r=0,i=u(u(ot(n.r,e),21),87).Kc();i.Ob();)t=u(i.Pb(),117),r+=t.d.d+t.b.Mf().b+t.d.a,i.Ob()&&(r+=n.w);return r}function T9e(n,e){var t,i,r;for(r=0,i=u(u(ot(n.r,e),21),87).Kc();i.Ob();)t=u(i.Pb(),117),r+=t.d.b+t.b.Mf().a+t.d.c,i.Ob()&&(r+=n.w);return r}function vBn(n){var e,t,i,r;if(i=0,r=aw(n),r.c.length==0)return 1;for(t=new M(r);t.a<t.c.c.length;)e=u(E(t),27),i+=vBn(e);return i}function C9e(n){var e,t,i;for(i=n.c.a,n.p=(Pe(i),new _u(i)),t=new M(i);t.a<t.c.c.length;)e=u(E(t),10),e.p=fEe(e).a;Ln(),Yt(n.p,new Vpn)}function S9e(n,e,t){var i,r,c,s;return i=n.dd(e),i!=-1&&(n.Pj()?(c=n.Qj(),s=tT(n,i),r=n.Ij(4,s,null,i,c),t?t.nj(r):t=r):tT(n,i)),t}function cr(n,e,t){var i,r,c,s;return i=n.dd(e),i!=-1&&(n.Pj()?(c=n.Qj(),s=Jp(n,i),r=n.Ij(4,s,null,i,c),t?t.nj(r):t=r):Jp(n,i)),t}function P9e(n,e,t,i){var r,c,s;t.Xh(e)&&(dr(),a$(e)?(r=u(t.Mh(e),160),n9e(n,r)):(c=(s=e,s?u(i,54).gi(s):null),c&&Ofe(t.Mh(e),c)))}function tS(n,e,t,i){var r,c,s;return c=$n(n.Dh(),e),r=e-n.ji(),r<0?(s=n.Ih(c),s>=0?n.Lh(s,t,!0):Hb(n,c,t)):u(c,69).wk().yk(n,n.hi(),r,t,i)}function I9e(n,e,t,i){var r,c;c=e.pf((He(),F2))?u(e.of(F2),21):n.j,r=d5e(c),r!=(VS(),h_)&&(t&&!eZ(r)||dnn(aTe(n,r,i),e))}function O9e(n){switch(n.g){case 1:return Db(),rj;case 3:return Db(),ij;case 2:return Db(),a_;case 4:return Db(),l_;default:return null}}function A9e(n,e,t){if(n.e)switch(n.b){case 1:yge(n.c,e,t);break;case 0:jge(n.c,e,t)}else FLn(n.c,e,t);n.a[e.p][t.p]=n.c.i,n.a[t.p][e.p]=n.c.e}function kBn(n){var e,t;if(n==null)return null;for(t=F(Qh,J,199,n.length,0,2),e=0;e<t.length;e++)t[e]=u(I3e(n[e],n[e].length),199);return t}function iS(n){var e;if(W$(n))return aT(n),n.ul()&&(e=N5(n.e,n.b,n.c,n.a,n.j),n.j=e),n.g=n.a,++n.a,++n.c,n.i=0,n.j;throw T(new nc)}function L9e(n,e){var t,i,r,c;return c=n.o,t=n.p,c<t?c*=c:t*=t,i=c+t,c=e.o,t=e.p,c<t?c*=c:t*=t,r=c+t,i<r?-1:i==r?0:1}function f1(n,e){var t,i,r;if(r=eFn(n,e),r>=0)return r;if(n.ol()){for(i=0;i<n.i;++i)if(t=n.pl(u(n.g[i],58)),x(t)===x(e))return i}return-1}function Bg(n,e,t){var i,r;if(r=n.gc(),e>=r)throw T(new F0(e,r));if(n.Si()&&(i=n.dd(t),i>=0&&i!=e))throw T(new Gn(Vy));return n.Xi(e,t)}function fZ(n,e){if(this.a=u(Pe(n),253),this.b=u(Pe(e),253),n.Ed(e)>0||n==(dL(),_F)||e==(bL(),HF))throw T(new Gn("Invalid range: "+qLn(n,e)))}function yBn(n){var e,t;for(this.b=new Z,this.c=n,this.a=!1,t=new M(n.a);t.a<t.c.c.length;)e=u(E(t),10),this.a=this.a|e.k==(Vn(),zt)}function N9e(n,e){var t,i,r;for(t=hb(new za,n),r=new M(e);r.a<r.c.c.length;)i=u(E(r),125),qs(Ns(Ls(Ds(As(new hs,0),0),t),i));return t}function jBn(n,e,t){t.Ug("Compound graph preprocessor",1),n.a=new Mb,FGn(n,e,null),SOe(n,e),QTe(n),U(e,(W(),efn),n.a),n.a=null,Hu(n.b),t.Vg()}function EBn(n,e,t){var i,r,c;for(r=new ie(ce((e?ji(n):Qt(n)).a.Kc(),new En));pe(r);)i=u(fe(r),18),c=e?i.c.i:i.d.i,c.k==(Vn(),Sc)&&$i(c,t)}function D9e(n,e){var t,i,r;for(e.Ug("Untreeify",1),t=u(v(n,(pt(),yln)),15),r=t.Kc();r.Ob();)i=u(r.Pb(),65),Re(i.b.d,i),Re(i.c.b,i);e.Vg()}function $9e(n){var e,t,i;for(i=u(ot(n.a,(ow(),zI)),15).Kc();i.Ob();)t=u(i.Pb(),105),e=jZ(t),T4(n,t,e[0],(Lb(),c0),0),T4(n,t,e[1],u0,1)}function x9e(n){var e,t,i;for(i=u(ot(n.a,(ow(),XI)),15).Kc();i.Ob();)t=u(i.Pb(),105),e=jZ(t),T4(n,t,e[0],(Lb(),c0),0),T4(n,t,e[1],u0,1)}function cw(){cw=R,CO=new wM(kh,0),RH=new wM("PORT_POSITION",1),I2=new wM("NODE_SIZE_WHERE_SPACE_PERMITS",2),P2=new wM("NODE_SIZE",3)}function rS(){rS=R,Tq=new cN("INTERACTIVE_NODE_REORDERER",0),Sq=new cN("MIN_SIZE_PRE_PROCESSOR",1),Cq=new cN("MIN_SIZE_POST_PROCESSOR",2)}function Bh(){Bh=R,Xq=new v6("AUTOMATIC",0),qj=new v6(s3,1),Uj=new v6(f3,2),eA=new v6("TOP",3),ZO=new v6(xtn,4),nA=new v6(qm,5)}function hZ(n,e,t,i){Sm();var r,c;for(r=0,c=0;c<t;c++)r=nr(er(vi(e[c],mr),vi(i,mr)),vi(Se(r),mr)),n[c]=Se(r),r=U1(r,32);return Se(r)}function lZ(n,e,t){var i,r;for(r=0,i=0;i<f_;i++)r=y.Math.max(r,Z$(n.a[e.g][i],t));return e==(wf(),Wc)&&n.b&&(r=y.Math.max(r,n.b.b)),r}function cS(n,e){var t,i;if(iV(e>0),(e&-e)==e)return wi(e*to(n,31)*4656612873077393e-25);do t=to(n,31),i=t%e;while(t-i+(e-1)<0);return wi(i)}function R9e(n,e,t){switch(t.g){case 1:n.a=e.a/2,n.b=0;break;case 2:n.a=e.a,n.b=e.b/2;break;case 3:n.a=e.a/2,n.b=e.b;break;case 4:n.a=0,n.b=e.b/2}}function _k(n,e,t,i){var r,c;for(r=e;r<n.c.length;r++)if(c=(Nn(r,n.c.length),u(n.c[r],12)),t.Mb(c))Fn(i.c,c);else return r;return n.c.length}function Sx(n){switch(n.g){case 0:return null;case 1:return new Mxn;case 2:return new cz;default:throw T(new Gn(GB+(n.f!=null?n.f:""+n.g)))}}function Hk(n,e,t){var i,r;for(Vve(n,e-n.s,t-n.t),r=new M(n.n);r.a<r.c.c.length;)i=u(E(r),209),ffe(i,i.e+e-n.s),hfe(i,i.f+t-n.t);n.s=e,n.t=t}function K9e(n){var e,t,i,r,c;for(t=0,r=new M(n.a);r.a<r.c.c.length;)i=u(E(r),125),i.d=t++;return e=Xye(n),c=null,e.c.length>1&&(c=N9e(n,e)),c}function MBn(n){var e;return e=$(B(z(n,(He(),Qj))))*y.Math.sqrt((!n.a&&(n.a=new q(Ye,n,10,11)),n.a).i),new V(e,e/$(B(z(n,rA))))}function Px(n){var e;return n.f&&n.f.Vh()&&(e=u(n.f,54),n.f=u(ea(n,e),84),n.f!=e&&n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,9,8,e,n.f))),n.f}function Ix(n){var e;return n.i&&n.i.Vh()&&(e=u(n.i,54),n.i=u(ea(n,e),84),n.i!=e&&n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,9,7,e,n.i))),n.i}function br(n){var e;return n.b&&n.b.Db&64&&(e=n.b,n.b=u(ea(n,e),19),n.b!=e&&n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,9,21,e,n.b))),n.b}function uS(n,e){var t,i,r;n.d==null?(++n.e,++n.f):(i=e.Bi(),uCe(n,n.f+1),r=(i&et)%n.d.length,t=n.d[r],!t&&(t=n.d[r]=n.dk()),t.Fc(e),++n.f)}function aZ(n,e,t){var i;return e.tk()?!1:e.Ik()!=-2?(i=e.ik(),i==null?t==null:rt(i,t)):e.qk()==n.e.Dh()&&t==null}function oS(){var n;Mo(16,$zn),n=sxn(16),this.b=F(UF,My,303,n,0,1),this.c=F(UF,My,303,n,0,1),this.a=null,this.e=null,this.i=0,this.f=n-1,this.g=0}function Cl(n){mV.call(this),this.k=(Vn(),zt),this.j=(Mo(6,mw),new Gc(6)),this.b=(Mo(2,mw),new Gc(2)),this.d=new sL,this.f=new ZG,this.a=n}function B9e(n){var e,t;n.c.length<=1||(e=Pqn(n,(en(),ae)),w_n(n,u(e.a,17).a,u(e.b,17).a),t=Pqn(n,Wn),w_n(n,u(t.a,17).a,u(t.b,17).a))}function F9e(n,e,t){var i,r;for(r=n.a.b,i=r.c.length;i<t;i++)bb(r,r.c.length,new Nc(n.a));$i(e,(Nn(t-1,r.c.length),u(r.c[t-1],30))),n.b[e.p]=t}function TBn(n,e){var t,i,r;for(n.b[e.g]=1,i=ge(e.d,0);i.b!=i.d.c;)t=u(be(i),65),r=t.c,n.b[r.g]==1?Re(n.a,t):n.b[r.g]==2?n.b[r.g]=1:TBn(n,r)}function CBn(n,e,t,i){var r,c,s;for(r=u(ot(i?n.a:n.b,e),21),s=r.Kc();s.Ob();)if(c=u(s.Pb(),27),NS(n,t,c))return!0;return!1}function Ox(n){var e,t;for(t=new ne(n);t.e!=t.i.gc();)if(e=u(ue(t),89),e.e||(!e.d&&(e.d=new ti(jr,e,1)),e.d).i!=0)return!0;return!1}function Ax(n){var e,t;for(t=new ne(n);t.e!=t.i.gc();)if(e=u(ue(t),89),e.e||(!e.d&&(e.d=new ti(jr,e,1)),e.d).i!=0)return!0;return!1}function _9e(n){var e,t,i;for(e=0,i=new M(n.c.a);i.a<i.c.c.length;)t=u(E(i),10),e+=wl(new ie(ce(Qt(t).a.Kc(),new En)));return e/n.c.a.c.length}function Lx(){Lx=R,ean=(ER(),Q1n),nan=new fb(8),new Di((He(),M1),nan),new Di(qd,8),hue=W1n,Y1n=tue,Z1n=iue,fue=new Di(zj,(_n(),!1))}function H9e(n,e,t){var i;t.Ug("Shrinking tree compaction",1),on(un(v(e,(J4(),A8))))?(Jme(n,e.f),QDn(e.f,(i=e.c,i))):QDn(e.f,e.c),t.Vg()}function dZ(n,e,t,i){switch(e){case 7:return!n.e&&(n.e=new Dn(Vt,n,7,4)),n.e;case 8:return!n.d&&(n.d=new Dn(Vt,n,8,5)),n.d}return xY(n,e,t,i)}function Nx(n){var e;return n.a&&n.a.Vh()&&(e=u(n.a,54),n.a=u(ea(n,e),142),n.a!=e&&n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,9,5,e,n.a))),n.a}function bd(n){return n<48||n>102?-1:n<=57?n-48:n<65?-1:n<=70?n-65+10:n<97?-1:n-97+10}function Dx(n,e){if(n==null)throw T(new fp("null key in entry: null="+e));if(e==null)throw T(new fp("null value in entry: "+n+"=null"))}function q9e(n,e){for(var t,i;n.Ob();)if(!e.Ob()||(t=n.Pb(),i=e.Pb(),!(x(t)===x(i)||t!=null&&rt(t,i))))return!1;return!e.Ob()}function SBn(n,e){var t;return t=S(C(Ii,1),Cr,28,15,[Z$(n.a[0],e),Z$(n.a[1],e),Z$(n.a[2],e)]),n.d&&(t[0]=y.Math.max(t[0],t[2]),t[2]=t[0]),t}function PBn(n,e){var t;return t=S(C(Ii,1),Cr,28,15,[$C(n.a[0],e),$C(n.a[1],e),$C(n.a[2],e)]),n.d&&(t[0]=y.Math.max(t[0],t[2]),t[2]=t[0]),t}function bZ(n,e,t){Ep(u(v(e,(cn(),Ft)),101))||(PJ(n,e,h1(e,t)),PJ(n,e,h1(e,(en(),ae))),PJ(n,e,h1(e,Xn)),Ln(),Yt(e.j,new D7n(n)))}function IBn(n){var e,t;for(n.c||sAe(n),t=new Tu,e=new M(n.a),E(e);e.a<e.c.c.length;)Re(t,u(E(e),418).a);return oe(t.b!=0),Xo(t,t.c.b),t}function U9e(n,e,t){var i,r,c,s,f;for(f=n.r+e,n.r+=e,n.d+=t,i=t/n.n.c.length,r=0,s=new M(n.n);s.a<s.c.c.length;)c=u(E(s),209),iTe(c,f,i,r),++r}function G9e(n){var e,t,i;for(n.b.a.$b(),n.a=F(aI,Kn,60,n.c.c.a.b.c.length,0,1),e=0,i=new M(n.c.c.a.b);i.a<i.c.c.length;)t=u(E(i),60),t.f=e++}function z9e(n){var e,t,i;for(n.b.a.$b(),n.a=F(M_,Kn,86,n.c.a.a.b.c.length,0,1),e=0,i=new M(n.c.a.a.b);i.a<i.c.c.length;)t=u(E(i),86),t.i=e++}function OBn(n){var e;if(e=x6e(n),!pe(n))throw T(new Or("position (0) must be less than the number of elements that remained ("+e+")"));return fe(n)}function X9e(n,e){var t;return n.a||(t=F(Ii,Cr,28,0,15,1),lg(n.b.a,new k9n(t)),Iyn(t,O$n(mE.prototype.Me,mE,[])),n.a=new oPn(t,n.d)),WT(n.a,e)}function ABn(n,e,t){var i;try{return Fg(n,e+n.j,t+n.k)}catch(r){throw r=Ot(r),L(r,77)?(i=r,T(new Or(i.g+iP+e+ur+t+")."))):T(r)}}function V9e(n,e,t){var i;try{return DBn(n,e+n.j,t+n.k)}catch(r){throw r=Ot(r),L(r,77)?(i=r,T(new Or(i.g+iP+e+ur+t+")."))):T(r)}}function W9e(n,e,t){var i;try{return $Bn(n,e+n.j,t+n.k)}catch(r){throw r=Ot(r),L(r,77)?(i=r,T(new Or(i.g+iP+e+ur+t+")."))):T(r)}}function LBn(n){switch(n.g){case 1:return en(),Wn;case 4:return en(),Xn;case 3:return en(),Zn;case 2:return en(),ae;default:return en(),sc}}function J9e(n,e,t){e.k==(Vn(),zt)&&t.k==Ti&&(n.d=ix(e,(en(),ae)),n.b=ix(e,Xn)),t.k==zt&&e.k==Ti&&(n.d=ix(t,(en(),Xn)),n.b=ix(t,ae))}function $x(n,e){var t,i,r;for(r=uc(n,e),i=r.Kc();i.Ob();)if(t=u(i.Pb(),12),v(t,(W(),Xu))!=null||L6(new Lf(t.b)))return!0;return!1}function Q9e(n,e,t){t.Ug("Linear segments node placement",1),n.b=u(v(e,(W(),E2)),312),RNe(n,e),dOe(n,e),AOe(n,e),bNe(n),n.a=null,n.b=null,t.Vg()}function wZ(n,e){return eu(e,n.e+n.d+(n.c.c.length==0?0:n.b)),tu(e,n.f),n.a=y.Math.max(n.a,e.f),n.d+=e.g+(n.c.c.length==0?0:n.b),nn(n.c,e),!0}function Y9e(n,e,t){var i,r,c,s;for(s=0,i=t/n.a.c.length,c=new M(n.a);c.a<c.c.c.length;)r=u(E(c),172),Hk(r,r.s,r.t+s*i),U9e(r,n.d-r.r+e,i),++s}function Z9e(n,e){var t,i,r,c,s,f;for(r=e.length-1,s=0,f=0,i=0;i<=r;i++)c=e[i],t=pje(r,i)*pY(1-n,r-i)*pY(n,i),s+=c.a*t,f+=c.b*t;return new V(s,f)}function NBn(n,e){var t,i,r,c,s;for(t=e.gc(),n._i(n.i+t),c=e.Kc(),s=n.i,n.i+=t,i=s;i<n.i;++i)r=c.Pb(),O6(n,i,n.Zi(i,r)),n.Mi(i,r),n.Ni();return t!=0}function n7e(n,e,t){var i,r,c;return n.Pj()?(i=n.Ej(),c=n.Qj(),++n.j,n.qj(i,n.Zi(i,e)),r=n.Ij(3,null,e,i,c),t?t.nj(r):t=r):OSn(n,n.Ej(),e),t}function e7e(n,e,t){var i,r,c;return i=u(N(Pc(n.a),e),89),c=(r=i.c,L(r,90)?u(r,29):(An(),Os)),(c.Db&64?ea(n.b,c):c)==t?KS(i):F4(i,t),c}function t7e(n){var e;return n==null?null:new H1((e=Rc(n,!0),e.length>0&&(zn(0,e.length),e.charCodeAt(0)==43)?(zn(1,e.length+1),e.substr(1)):e))}function i7e(n){var e;return n==null?null:new H1((e=Rc(n,!0),e.length>0&&(zn(0,e.length),e.charCodeAt(0)==43)?(zn(1,e.length+1),e.substr(1)):e))}function gZ(n,e,t,i,r,c,s,f){var h,l;i&&(h=i.a[0],h&&gZ(n,e,t,h,r,c,s,f),qx(n,t,i.d,r,c,s,f)&&e.Fc(i),l=i.a[1],l&&gZ(n,e,t,l,r,c,s,f))}function Fg(n,e,t){try{return ob(M$(n,e,t),1)}catch(i){throw i=Ot(i),L(i,333)?T(new Or(GK+n.o+"*"+n.p+zK+e+ur+t+XK)):T(i)}}function DBn(n,e,t){try{return ob(M$(n,e,t),0)}catch(i){throw i=Ot(i),L(i,333)?T(new Or(GK+n.o+"*"+n.p+zK+e+ur+t+XK)):T(i)}}function $Bn(n,e,t){try{return ob(M$(n,e,t),2)}catch(i){throw i=Ot(i),L(i,333)?T(new Or(GK+n.o+"*"+n.p+zK+e+ur+t+XK)):T(i)}}function xBn(n,e){if(n.g==-1)throw T(new Mu);n.Xj();try{n.d.hd(n.g,e),n.f=n.d.j}catch(t){throw t=Ot(t),L(t,77)?T(new Ko):T(t)}}function r7e(n){var e,t,i,r,c;for(i=new M(n.b);i.a<i.c.c.length;)for(t=u(E(i),30),e=0,c=new M(t.a);c.a<c.c.c.length;)r=u(E(c),10),r.p=e++}function S5(n,e){var t,i,r,c;for(c=n.gc(),e.length<c&&(e=qE(new Array(c),e)),r=e,i=n.Kc(),t=0;t<c;++t)$t(r,t,i.Pb());return e.length>c&&$t(e,c,null),e}function c7e(n,e){var t,i;if(i=n.gc(),e==null){for(t=0;t<i;t++)if(n.Xb(t)==null)return t}else for(t=0;t<i;t++)if(rt(e,n.Xb(t)))return t;return-1}function xx(n,e){var t,i,r;return t=e.ld(),r=e.md(),i=n.xc(t),!(!(x(r)===x(i)||r!=null&&rt(r,i))||i==null&&!n._b(t))}function u7e(n,e){var t,i,r;return e<=22?(t=n.l&(1<<e)-1,i=r=0):e<=44?(t=n.l,i=n.m&(1<<e-22)-1,r=0):(t=n.l,i=n.m,r=n.h&(1<<e-44)-1),Yc(t,i,r)}function o7e(n,e){switch(e.g){case 1:return n.f.n.d+n.t;case 3:return n.f.n.a+n.t;case 2:return n.f.n.c+n.s;case 4:return n.f.n.b+n.s;default:return 0}}function s7e(n,e){var t,i;switch(i=e.c,t=e.a,n.b.g){case 0:t.d=n.e-i.a-i.d;break;case 1:t.d+=n.e;break;case 2:t.c=n.e-i.a-i.d;break;case 3:t.c=n.e+i.d}}function pZ(n,e,t,i){var r,c;this.a=e,this.c=i,r=n.a,zse(this,new V(-r.c,-r.d)),tt(this.b,t),c=i/2,e.a?N6(this.b,0,c):N6(this.b,c,0),nn(n.c,this)}function RBn(n,e,t,i){var r;this.c=n,this.d=e,r=new Mt,xt(r,t,r.c.b,r.c),this.a=r,this.b=u(v(i,(lc(),v0)),88),this.e=$(B(v(i,Nln))),Ezn(this)}function sS(){sS=R,jq=new vM(kh,0),i1n=new vM(WXn,1),r1n=new vM("EDGE_LENGTH_BY_POSITION",2),t1n=new vM("CROSSING_MINIMIZATION_BY_POSITION",3)}function Rx(n,e){var t,i;if(t=u(Ng(n.g,e),27),t)return t;if(i=u(Ng(n.j,e),123),i)return i;throw T(new eh("Referenced shape does not exist: "+e))}function mZ(n,e){var t,i;if(L(e,253)){i=u(e,253);try{return t=n.Ed(i),t==0}catch(r){if(r=Ot(r),L(r,212))return!1;throw T(r)}}return!1}function f7e(n,e){if(n.c==e)return n.d;if(n.d==e)return n.c;throw T(new Gn("Node 'one' must be either source or target of edge 'edge'."))}function h7e(n,e){if(n.c.i==e)return n.d.i;if(n.d.i==e)return n.c.i;throw T(new Gn("Node "+e+" is neither source nor target of edge "+n))}function l7e(n,e,t){t.Ug("Self-Loop ordering",1),qt(_r(ut(ut(rc(new Cn(null,new On(e.b,16)),new i2n),new r2n),new c2n),new u2n),new u7n(n)),t.Vg()}function a7e(n,e){var t;switch(e.g){case 2:case 4:t=n.a,n.c.d.n.b<t.d.n.b&&(t=n.c),Vl(n,e,(xf(),R_),t);break;case 1:case 3:Vl(n,e,(xf(),j3),null)}}function Kx(n,e,t,i,r,c){var s,f,h,l,a;for(s=ake(e,t,c),f=t==(en(),Xn)||t==Wn?-1:1,l=n[t.g],a=0;a<l.length;a++)h=l[a],h>0&&(h+=r),l[a]=s,s+=f*(h+i)}function KBn(n){var e,t,i;for(i=n.f,n.n=F(Ii,Cr,28,i,15,1),n.d=F(Ii,Cr,28,i,15,1),e=0;e<i;e++)t=u(sn(n.c.b,e),30),n.n[e]=hBn(n,t),n.d[e]=eqn(n,t)}function Bx(n,e){var t,i,r;for(r=0,i=2;i<e;i<<=1)n.Db&i&&++r;if(r==0){for(t=e<<=1;t<=128;t<<=1)if(n.Db&t)return 0;return-1}else return r}function BBn(n,e){var t,i,r,c,s;for(s=ru(n.e.Dh(),e),c=null,t=u(n.g,124),r=0;r<n.i;++r)i=t[r],s.am(i.Lk())&&(!c&&(c=new EE),ve(c,i));c&&uzn(n,c)}function FBn(n){var e,t,i;if(!n)return null;if(n.dc())return"";for(i=new Hl,t=n.Kc();t.Ob();)e=t.Pb(),Er(i,Ae(e)),i.a+=" ";return bN(i,i.a.length-1)}function _Bn(n,e){var t=new Array(e),i;switch(n){case 14:case 15:i=0;break;case 16:i=!1;break;default:return t}for(var r=0;r<e;++r)t[r]=i;return t}function Bb(n){var e,t,i;for(t=new M(n.a.b);t.a<t.c.c.length;)e=u(E(t),60),e.c.$b();hl(n.d)?i=n.a.c:i=n.a.d,nu(i,new A9n(n)),n.c.df(n),vqn(n)}function HBn(n){var e,t,i,r;for(t=new M(n.e.c);t.a<t.c.c.length;){for(e=u(E(t),290),r=new M(e.b);r.a<r.c.c.length;)i=u(E(r),454),qen(i);W_n(e)}}function fS(n){var e,t,i,r,c;for(i=0,c=0,r=0,t=new M(n.a);t.a<t.c.c.length;)e=u(E(t),172),c=y.Math.max(c,e.r),i+=e.d+(r>0?n.c:0),++r;n.b=i,n.d=c}function qBn(n,e){var t;return t=S(C(Ii,1),Cr,28,15,[lZ(n,(wf(),bc),e),lZ(n,Wc,e),lZ(n,wc,e)]),n.f&&(t[0]=y.Math.max(t[0],t[2]),t[2]=t[0]),t}function d7e(n,e,t){var i;try{xS(n,e+n.j,t+n.k,!1,!0)}catch(r){throw r=Ot(r),L(r,77)?(i=r,T(new Or(i.g+iP+e+ur+t+")."))):T(r)}}function b7e(n,e,t){var i;try{xS(n,e+n.j,t+n.k,!0,!1)}catch(r){throw r=Ot(r),L(r,77)?(i=r,T(new Or(i.g+iP+e+ur+t+")."))):T(r)}}function UBn(n){var e;kt(n,(cn(),a0))&&(e=u(v(n,a0),21),e.Hc((lw(),Qs))?(e.Mc(Qs),e.Fc(Ys)):e.Hc(Ys)&&(e.Mc(Ys),e.Fc(Qs)))}function GBn(n){var e;kt(n,(cn(),a0))&&(e=u(v(n,a0),21),e.Hc((lw(),nf))?(e.Mc(nf),e.Fc(Ts)):e.Hc(Ts)&&(e.Mc(Ts),e.Fc(nf)))}function Fx(n,e,t,i){var r,c,s,f;return n.a==null&&gje(n,e),s=e.b.j.c.length,c=t.d.p,f=i.d.p,r=f-1,r<0&&(r=s-1),c<=r?n.a[r]-n.a[c]:n.a[s-1]-n.a[c]+n.a[r]}function w7e(n){var e,t;if(!n.b)for(n.b=BT(u(n.f,27).kh().i),t=new ne(u(n.f,27).kh());t.e!=t.i.gc();)e=u(ue(t),135),nn(n.b,new pL(e));return n.b}function g7e(n){var e,t;if(!n.e)for(n.e=BT(mD(u(n.f,27)).i),t=new ne(mD(u(n.f,27)));t.e!=t.i.gc();)e=u(ue(t),123),nn(n.e,new Kkn(e));return n.e}function zBn(n){var e,t;if(!n.a)for(n.a=BT(ST(u(n.f,27)).i),t=new ne(ST(u(n.f,27)));t.e!=t.i.gc();)e=u(ue(t),27),nn(n.a,new TN(n,e));return n.a}function Fb(n){var e;if(!n.C&&(n.D!=null||n.B!=null))if(e=iLe(n),e)n.hl(e);else try{n.hl(null)}catch(t){if(t=Ot(t),!L(t,63))throw T(t)}return n.C}function p7e(n){switch(n.q.g){case 5:gFn(n,(en(),Xn)),gFn(n,ae);break;case 4:mGn(n,(en(),Xn)),mGn(n,ae);break;default:y_n(n,(en(),Xn)),y_n(n,ae)}}function m7e(n){switch(n.q.g){case 5:pFn(n,(en(),Zn)),pFn(n,Wn);break;case 4:vGn(n,(en(),Zn)),vGn(n,Wn);break;default:j_n(n,(en(),Zn)),j_n(n,Wn)}}function _g(n,e){var t,i,r;for(r=new Ni,i=n.Kc();i.Ob();)t=u(i.Pb(),36),Pm(t,r.a,0),r.a+=t.f.a+e,r.b=y.Math.max(r.b,t.f.b);return r.b>0&&(r.b+=e),r}function hS(n,e){var t,i,r;for(r=new Ni,i=n.Kc();i.Ob();)t=u(i.Pb(),36),Pm(t,0,r.b),r.b+=t.f.b+e,r.a=y.Math.max(r.a,t.f.a);return r.a>0&&(r.a+=e),r}function XBn(n){var e,t,i;for(i=et,t=new M(n.a);t.a<t.c.c.length;)e=u(E(t),10),kt(e,(W(),dt))&&(i=y.Math.min(i,u(v(e,dt),17).a));return i}function VBn(n,e){var t,i;if(e.length==0)return 0;for(t=pD(n.a,e[0],(en(),Wn)),t+=pD(n.a,e[e.length-1],Zn),i=0;i<e.length;i++)t+=eje(n,i,e);return t}function WBn(){K5(),this.c=new Z,this.i=new Z,this.e=new rh,this.f=new rh,this.g=new rh,this.j=new Z,this.a=new Z,this.b=new de,this.k=new de}function _x(n,e){var t,i;return n.Db>>16==6?n.Cb.Th(n,5,Ef,e):(i=br(u($n((t=u(Un(n,16),29),t||n.ii()),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function v7e(n){A4();var e=n.e;if(e&&e.stack){var t=e.stack,i=e+`
`;return t.substring(0,i.length)==i&&(t=t.substring(i.length)),t.split(`
`)}return[]}function k7e(n){var e;return e=(Q$n(),wQn),e[n>>>28]|e[n>>24&15]<<4|e[n>>20&15]<<8|e[n>>16&15]<<12|e[n>>12&15]<<16|e[n>>8&15]<<20|e[n>>4&15]<<24|e[n&15]<<28}function JBn(n){var e,t,i;n.b==n.c&&(i=n.a.length,t=JQ(y.Math.max(8,i))<<1,n.b!=0?(e=xs(n.a,t),axn(n,e,i),n.a=e,n.b=0):I0(n.a,t),n.c=i)}function y7e(n,e){var t;return t=n.b,t.pf((He(),oo))?t.ag()==(en(),Wn)?-t.Mf().a-$(B(t.of(oo))):e+$(B(t.of(oo))):t.ag()==(en(),Wn)?-t.Mf().a:e}function qk(n){var e;return n.b.c.length!=0&&u(sn(n.b,0),72).a?u(sn(n.b,0),72).a:(e=vD(n),e??""+(n.c?qr(n.c.a,n,0):-1))}function lS(n){var e;return n.f.c.length!=0&&u(sn(n.f,0),72).a?u(sn(n.f,0),72).a:(e=vD(n),e??""+(n.i?qr(n.i.j,n,0):-1))}function j7e(n,e){var t,i;if(e<0||e>=n.gc())return null;for(t=e;t<n.gc();++t)if(i=u(n.Xb(t),131),t==n.gc()-1||!i.o)return new bi(Y(t),i);return null}function E7e(n,e,t){var i,r,c,s,f;for(c=n.c,f=t?e:n,i=t?n:e,r=f.p+1;r<i.p;++r)if(s=u(sn(c.a,r),10),!(s.k==(Vn(),Gf)||Q7e(s)))return!1;return!0}function vZ(n){var e,t,i,r,c;for(c=0,r=li,i=0,t=new M(n.a);t.a<t.c.c.length;)e=u(E(t),172),c+=e.r+(i>0?n.c:0),r=y.Math.max(r,e.d),++i;n.e=c,n.b=r}function M7e(n){var e,t;if(!n.b)for(n.b=BT(u(n.f,123).kh().i),t=new ne(u(n.f,123).kh());t.e!=t.i.gc();)e=u(ue(t),135),nn(n.b,new pL(e));return n.b}function T7e(n,e){var t,i,r;if(e.dc())return m4(),m4(),aE;for(t=new NSn(n,e.gc()),r=new ne(n);r.e!=r.i.gc();)i=ue(r),e.Hc(i)&&ve(t,i);return t}function kZ(n,e,t,i){return e==0?i?(!n.o&&(n.o=new Ou((Mc(),il),C1,n,0)),n.o):(!n.o&&(n.o=new Ou((Mc(),il),C1,n,0)),rk(n.o)):tS(n,e,t,i)}function Hx(n){var e,t;if(n.rb)for(e=0,t=n.rb.i;e<t;++e)C7(N(n.rb,e));if(n.vb)for(e=0,t=n.vb.i;e<t;++e)C7(N(n.vb,e));B6((Lu(),zi),n),n.Bb|=1}function Et(n,e,t,i,r,c,s,f,h,l,a,d,g,p){return I_n(n,e,i,null,r,c,s,f,h,l,g,!0,p),LY(n,a),L(n.Cb,90)&&hw(Zu(u(n.Cb,90)),2),t&&AQ(n,t),NY(n,d),n}function C7e(n){var e,t;if(n==null)return null;t=0;try{t=So(n,Wi,et)&ui}catch(i){if(i=Ot(i),L(i,130))e=iC(n),t=e[0];else throw T(i)}return vk(t)}function S7e(n){var e,t;if(n==null)return null;t=0;try{t=So(n,Wi,et)&ui}catch(i){if(i=Ot(i),L(i,130))e=iC(n),t=e[0];else throw T(i)}return vk(t)}function P7e(n,e){var t,i,r;return r=n.h-e.h,r<0||(t=n.l-e.l,i=n.m-e.m+(t>>22),r+=i>>22,r<0)?!1:(n.l=t&ro,n.m=i&ro,n.h=r&Ol,!0)}function qx(n,e,t,i,r,c,s){var f,h;return!(e.Te()&&(h=n.a.Ne(t,i),h<0||!r&&h==0)||e.Ue()&&(f=n.a.Ne(t,c),f>0||!s&&f==0))}function I7e(n,e){cm();var t;if(t=n.j.g-e.j.g,t!=0)return 0;switch(n.j.g){case 2:return fx(e,Msn)-fx(n,Msn);case 4:return fx(n,Esn)-fx(e,Esn)}return 0}function O7e(n){switch(n.g){case 0:return Y_;case 1:return Z_;case 2:return nH;case 3:return eH;case 4:return JI;case 5:return tH;default:return null}}function $r(n,e,t){var i,r;return i=(r=new lL,ad(r,e),zc(r,t),ve((!n.c&&(n.c=new q(y0,n,12,10)),n.c),r),r),e1(i,0),Z0(i,1),u1(i,!0),c1(i,!0),i}function Jp(n,e){var t,i;if(e>=n.i)throw T(new aN(e,n.i));return++n.j,t=n.g[e],i=n.i-e-1,i>0&&Oc(n.g,e+1,n.g,e,i),$t(n.g,--n.i,null),n.Qi(e,t),n.Ni(),t}function QBn(n,e){var t,i;return n.Db>>16==17?n.Cb.Th(n,21,Ss,e):(i=br(u($n((t=u(Un(n,16),29),t||n.ii()),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function A7e(n){var e,t,i,r;for(Ln(),Yt(n.c,n.a),r=new M(n.c);r.a<r.c.c.length;)for(i=E(r),t=new M(n.b);t.a<t.c.c.length;)e=u(E(t),693),e.bf(i)}function L7e(n){var e,t,i,r;for(Ln(),Yt(n.c,n.a),r=new M(n.c);r.a<r.c.c.length;)for(i=E(r),t=new M(n.b);t.a<t.c.c.length;)e=u(E(t),382),e.bf(i)}function N7e(n){var e,t,i,r,c;for(r=et,c=null,i=new M(n.d);i.a<i.c.c.length;)t=u(E(i),218),t.d.j^t.e.j&&(e=t.e.e-t.d.e-t.a,e<r&&(r=e,c=t));return c}function yZ(){yZ=R,hZn=new Tn(Jtn,(_n(),!1)),oZn=new Tn(Qtn,100),jon=(t5(),j_),sZn=new Tn(Ytn,jon),fZn=new Tn(Ztn,vh),lZn=new Tn(nin,Y(et))}function YBn(n,e,t){var i,r,c,s,f,h,l,a;for(l=0,r=n.a[e],c=0,s=r.length;c<s;++c)for(i=r[c],a=g5(i,t),h=a.Kc();h.Ob();)f=u(h.Pb(),12),Ve(n.f,f,Y(l++))}function D7e(n,e,t){var i,r,c,s;if(t)for(r=t.a.length,i=new Qa(r),s=(i.b-i.a)*i.c<0?(F1(),xa):new q1(i);s.Ob();)c=u(s.Pb(),17),In(n,e,Zp(J0(t,c.a)))}function $7e(n,e,t){var i,r,c,s;if(t)for(r=t.a.length,i=new Qa(r),s=(i.b-i.a)*i.c<0?(F1(),xa):new q1(i);s.Ob();)c=u(s.Pb(),17),In(n,e,Zp(J0(t,c.a)))}function jZ(n){ua();var e;return e=u(S5(Cp(n.k),F(lr,Tc,64,2,0,1)),126),R4(e,0,e.length,null),e[0]==(en(),Xn)&&e[1]==Wn&&($t(e,0,Wn),$t(e,1,Xn)),e}function ZBn(n,e,t){var i,r,c;return r=ECe(n,e,t),c=aen(n,r),u$(n.b),FD(n,e,t),Ln(),Yt(r,new U7n(n)),i=aen(n,r),u$(n.b),FD(n,t,e),new bi(Y(c),Y(i))}function nFn(){nFn=R,Die=Fe(new ii,(Vi(),zr),(tr(),N8)),AO=new Lt("linearSegments.inputPrio",Y(0)),LO=new Lt("linearSegments.outputPrio",Y(0))}function Qp(){Qp=R,NO=new pM("P1_TREEIFICATION",0),t9=new pM("P2_NODE_ORDERING",1),i9=new pM("P3_NODE_PLACEMENT",2),r9=new pM("P4_EDGE_ROUTING",3)}function x7e(n){var e,t,i,r;for(t=0,e=0,r=new ne(n);r.e!=r.i.gc();)i=u(ue(r),27),t=y.Math.max(i.g+i.i,t),e=y.Math.max(i.f+i.j,e);return new V(t,e)}function R7e(n,e){var t,i,r,c;for(c=0,i=new M(n);i.a<i.c.c.length;)t=u(E(i),27),c+=y.Math.pow(t.g*t.f-e,2);return r=y.Math.sqrt(c/(n.c.length-1)),r}function Co(){Co=R,nE=new yM("UNKNOWN",0),nl=new yM("ABOVE",1),Sa=new yM("BELOW",2),Zj=new yM("INLINE",3),new Lt("org.eclipse.elk.labelSide",nE)}function eFn(n,e){var t;if(n.Yi()&&e!=null){for(t=0;t<n.i;++t)if(rt(e,n.g[t]))return t}else for(t=0;t<n.i;++t)if(x(n.g[t])===x(e))return t;return-1}function K7e(n,e,t){var i,r;return e.c==(gr(),Jc)&&t.c==Vu?-1:e.c==Vu&&t.c==Jc?1:(i=HRn(e.a,n.a),r=HRn(t.a,n.a),e.c==Jc?r-i:i-r)}function uw(n,e,t){if(t&&(e<0||e>t.a.c.length))throw T(new Gn("index must be >= 0 and <= layer node count"));n.c&&du(n.c.a,n),n.c=t,t&&bb(t.a,e,n)}function tFn(n,e){var t,i,r;for(i=new ie(ce(Ml(n).a.Kc(),new En));pe(i);)return t=u(fe(i),18),r=u(e.Kb(t),10),new CE(Pe(r.n.b+r.o.b/2));return Zv(),Zv(),FF}function iFn(n,e){this.c=new de,this.a=n,this.b=e,this.d=u(v(n,(W(),E2)),312),x(v(n,(cn(),shn)))===x((sk(),QI))?this.e=new Yyn:this.e=new Qyn}function P5(n,e){var t,i;return i=null,n.pf((He(),$3))&&(t=u(n.of($3),96),t.pf(e)&&(i=t.of(e))),i==null&&n.Tf()&&(i=n.Tf().of(e)),i==null&&(i=rn(e)),i}function Ux(n,e){var t,i;t=n.fd(e);try{return i=t.Pb(),t.Qb(),i}catch(r){throw r=Ot(r),L(r,112)?T(new Or("Can't remove element "+e)):T(r)}}function B7e(n,e){var t,i,r;if(i=new JE,r=new ZQ(i.q.getFullYear()-ha,i.q.getMonth(),i.q.getDate()),t=JIe(n,e,r),t==0||t<e.length)throw T(new Gn(e));return r}function EZ(n,e){var t,i,r;for(Jn(e),iV(e!=n),r=n.b.c.length,i=e.Kc();i.Ob();)t=i.Pb(),nn(n.b,Jn(t));return r!=n.b.c.length?(sY(n,0),!0):!1}function Uk(){Uk=R,Con=(He(),Vj),new Di(Yq,(_n(),!0)),dZn=Hd,bZn=_2,wZn=Ca,aZn=F2,Pon=Wj,gZn=Ww,Ton=(yZ(),hZn),Eon=sZn,Mon=fZn,Son=lZn,EI=oZn}function F7e(n,e){if(e==n.c)return n.d;if(e==n.d)return n.c;throw T(new Gn("'port' must be either the source port or target port of the edge."))}function _7e(n,e,t){var i,r;switch(r=n.o,i=n.d,e.g){case 1:return-i.d-t;case 3:return r.b+i.a+t;case 2:return r.a+i.c+t;case 4:return-i.b-t;default:return 0}}function MZ(n,e,t,i){var r,c,s,f;for($i(e,u(i.Xb(0),30)),f=i.kd(1,i.gc()),c=u(t.Kb(e),20).Kc();c.Ob();)r=u(c.Pb(),18),s=r.c.i==e?r.d.i:r.c.i,MZ(n,s,t,f)}function rFn(n){var e;return e=new de,kt(n,(W(),wH))?u(v(n,wH),85):(qt(ut(new Cn(null,new On(n.j,16)),new P2n),new l7n(e)),U(n,wH,e),e)}function cFn(n,e){var t,i,r,c,s;for(i=0,r=0,t=0,s=new M(n);s.a<s.c.c.length;)c=u(E(s),186),i=y.Math.max(i,c.e),r+=c.b+(t>0?e:0),++t;return new V(i,r)}function TZ(n,e){var t,i;return n.Db>>16==6?n.Cb.Th(n,6,Vt,e):(i=br(u($n((t=u(Un(n,16),29),t||(Mc(),bA)),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function CZ(n,e){var t,i;return n.Db>>16==7?n.Cb.Th(n,1,oE,e):(i=br(u($n((t=u(Un(n,16),29),t||(Mc(),Idn)),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function SZ(n,e){var t,i;return n.Db>>16==9?n.Cb.Th(n,9,Ye,e):(i=br(u($n((t=u(Un(n,16),29),t||(Mc(),Adn)),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function uFn(n,e){var t,i;return n.Db>>16==5?n.Cb.Th(n,9,EA,e):(i=br(u($n((t=u(Un(n,16),29),t||(An(),P1)),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function oFn(n,e){var t,i;return n.Db>>16==7?n.Cb.Th(n,6,Ef,e):(i=br(u($n((t=u(Un(n,16),29),t||(An(),O1)),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function PZ(n,e){var t,i;return n.Db>>16==3?n.Cb.Th(n,0,fE,e):(i=br(u($n((t=u(Un(n,16),29),t||(An(),S1)),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function sFn(){this.a=new dvn,this.g=new oS,this.j=new oS,this.b=new de,this.d=new oS,this.i=new oS,this.k=new de,this.c=new de,this.e=new de,this.f=new de}function H7e(n,e,t){var i,r,c;for(t<0&&(t=0),c=n.i,r=t;r<c;r++)if(i=N(n,r),e==null){if(i==null)return r}else if(x(e)===x(i)||rt(e,i))return r;return-1}function q7e(n,e){var t,i;return t=e.qi(n.a),t?(i=Ae(gf((!t.b&&(t.b=new lo((An(),ar),pc,t)),t.b),nI)),Sn(Yy,i)?B6(n,jo(e.qk())):i):null}function mm(n,e){var t,i;if(e){if(e==n)return!0;for(t=0,i=u(e,54).Ph();i&&i!=e;i=i.Ph()){if(++t>IK)return mm(n,i);if(i==n)return!0}}return!1}function U7e(n){switch(FM(),n.q.g){case 5:U_n(n,(en(),Xn)),U_n(n,ae);break;case 4:GHn(n,(en(),Xn)),GHn(n,ae);break;default:VGn(n,(en(),Xn)),VGn(n,ae)}}function G7e(n){switch(FM(),n.q.g){case 5:fHn(n,(en(),Zn)),fHn(n,Wn);break;case 4:bBn(n,(en(),Zn)),bBn(n,Wn);break;default:WGn(n,(en(),Zn)),WGn(n,Wn)}}function z7e(n){var e,t;e=u(v(n,(Us(),nZn)),17),e?(t=e.a,t==0?U(n,(Q1(),jI),new dx):U(n,(Q1(),jI),new qT(t))):U(n,(Q1(),jI),new qT(1))}function X7e(n,e){var t;switch(t=n.i,e.g){case 1:return-(n.n.b+n.o.b);case 2:return n.n.a-t.o.a;case 3:return n.n.b-t.o.b;case 4:return-(n.n.a+n.o.a)}return 0}function V7e(n,e){switch(n.g){case 0:return e==(Yo(),ya)?HI:qI;case 1:return e==(Yo(),ya)?HI:wj;case 2:return e==(Yo(),ya)?wj:qI;default:return wj}}function Gk(n,e){var t,i,r;for(du(n.a,e),n.e-=e.r+(n.a.c.length==0?0:n.c),r=xrn,i=new M(n.a);i.a<i.c.c.length;)t=u(E(i),172),r=y.Math.max(r,t.d);n.b=r}function IZ(n,e){var t,i;return n.Db>>16==3?n.Cb.Th(n,12,Ye,e):(i=br(u($n((t=u(Un(n,16),29),t||(Mc(),Pdn)),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function OZ(n,e){var t,i;return n.Db>>16==11?n.Cb.Th(n,10,Ye,e):(i=br(u($n((t=u(Un(n,16),29),t||(Mc(),Odn)),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function fFn(n,e){var t,i;return n.Db>>16==10?n.Cb.Th(n,11,Ss,e):(i=br(u($n((t=u(Un(n,16),29),t||(An(),I1)),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function hFn(n,e){var t,i;return n.Db>>16==10?n.Cb.Th(n,12,Ps,e):(i=br(u($n((t=u(Un(n,16),29),t||(An(),ig)),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function gs(n){var e;return!(n.Bb&1)&&n.r&&n.r.Vh()&&(e=u(n.r,54),n.r=u(ea(n,e),142),n.r!=e&&n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,9,8,e,n.r))),n.r}function Gx(n,e,t){var i;return i=S(C(Ii,1),Cr,28,15,[tnn(n,(wf(),bc),e,t),tnn(n,Wc,e,t),tnn(n,wc,e,t)]),n.f&&(i[0]=y.Math.max(i[0],i[2]),i[2]=i[0]),i}function W7e(n,e){var t,i,r;if(r=v9e(n,e),r.c.length!=0)for(Yt(r,new Ign),t=r.c.length,i=0;i<t;i++)Em(n,(Nn(i,r.c.length),u(r.c[i],293)),mSe(n,r,i))}function J7e(n){var e,t,i,r;for(r=u(ot(n.a,(ow(),UI)),15).Kc();r.Ob();)for(i=u(r.Pb(),105),t=Cp(i.k).Kc();t.Ob();)e=u(t.Pb(),64),T4(n,i,e,(Lb(),va),1)}function Q7e(n){var e,t;if(n.k==(Vn(),Ti)){for(t=new ie(ce(Ml(n).a.Kc(),new En));pe(t);)if(e=u(fe(t),18),!fr(e)&&n.c==RZ(e,n).c)return!0}return!1}function Y7e(n){var e,t;if(n.k==(Vn(),Ti)){for(t=new ie(ce(Ml(n).a.Kc(),new En));pe(t);)if(e=u(fe(t),18),!fr(e)&&e.c.i.c==e.d.i.c)return!0}return!1}function Z7e(n,e){var t,i,r,c,s;if(e)for(r=e.a.length,t=new Qa(r),s=(t.b-t.a)*t.c<0?(F1(),xa):new q1(t);s.Ob();)c=u(s.Pb(),17),i=N4(e,c.a),i&&KHn(n,i)}function nke(){xz();var n,e;for(_Ne((G1(),Hn)),ANe(Hn),Hx(Hn),Gdn=(An(),Zf),e=new M(nbn);e.a<e.c.c.length;)n=u(E(e),248),Dm(n,Zf,null);return!0}function AZ(n,e){var t,i,r,c,s,f,h,l;return h=n.h>>19,l=e.h>>19,h!=l?l-h:(r=n.h,f=e.h,r!=f?r-f:(i=n.m,s=e.m,i!=s?i-s:(t=n.l,c=e.l,t-c)))}function aS(){aS=R,Xun=(DS(),s_),zun=new Tn(Otn,Xun),Gun=(cC(),o_),Uun=new Tn(Atn,Gun),qun=(YC(),u_),Hun=new Tn(Ltn,qun),_un=new Tn(Ntn,(_n(),!0))}function I5(n,e,t){var i,r;i=e*t,L(n.g,154)?(r=xp(n),r.f.d?r.f.a||(n.d.a+=i+_f):(n.d.d-=i+_f,n.d.a+=i+_f)):L(n.g,10)&&(n.d.d-=i,n.d.a+=2*i)}function lFn(n,e,t){var i,r,c,s,f;for(r=n[t.g],f=new M(e.d);f.a<f.c.c.length;)s=u(E(f),105),c=s.i,c&&c.i==t&&(i=s.d[t.g],r[i]=y.Math.max(r[i],c.j.b))}function eke(n,e){var t,i,r,c,s;for(i=0,r=0,t=0,s=new M(e.d);s.a<s.c.c.length;)c=u(E(s),315),fS(c),i=y.Math.max(i,c.b),r+=c.d+(t>0?n.b:0),++t;e.b=i,e.e=r}function aFn(n){var e,t,i;if(i=n.b,iMn(n.i,i.length)){for(t=i.length*2,n.b=F(UF,My,303,t,0,1),n.c=F(UF,My,303,t,0,1),n.f=t-1,n.i=0,e=n.a;e;e=e.c)ny(n,e,e);++n.g}}function tke(n,e,t,i){var r,c,s,f;for(r=0;r<e.o;r++)for(c=r-e.j+t,s=0;s<e.p;s++)f=s-e.k+i,Fg(e,r,s)?W9e(n,c,f)||d7e(n,c,f):$Bn(e,r,s)&&(ABn(n,c,f)||b7e(n,c,f))}function O5(n,e){return n.b.a=y.Math.min(n.b.a,e.c),n.b.b=y.Math.min(n.b.b,e.d),n.a.a=y.Math.max(n.a.a,e.c),n.a.b=y.Math.max(n.a.b,e.d),Fn(n.c,e),!0}function ike(n,e,t){var i;i=e.c.i,i.k==(Vn(),Ti)?(U(n,(W(),yf),u(v(i,yf),12)),U(n,Es,u(v(i,Es),12))):(U(n,(W(),yf),e.c),U(n,Es,t.d))}function vm(n,e,t){Vg();var i,r,c,s,f,h;return s=e/2,c=t/2,i=y.Math.abs(n.a),r=y.Math.abs(n.b),f=1,h=1,i>s&&(f=s/i),r>c&&(h=c/r),ch(n,y.Math.min(f,h)),n}function rke(){FS();var n,e;try{if(e=u(_Z((B1(),Is),tv),2113),e)return e}catch(t){if(t=Ot(t),L(t,103))n=t,OW((Oe(),n));else throw T(t)}return new fvn}function cke(){FS();var n,e;try{if(e=u(_Z((B1(),Is),ks),2040),e)return e}catch(t){if(t=Ot(t),L(t,103))n=t,OW((Oe(),n));else throw T(t)}return new $vn}function uke(){jDn();var n,e;try{if(e=u(_Z((B1(),Is),Pd),2122),e)return e}catch(t){if(t=Ot(t),L(t,103))n=t,OW((Oe(),n));else throw T(t)}return new P6n}function oke(n,e,t){var i,r;return r=n.e,n.e=e,n.Db&4&&!(n.Db&1)&&(i=new Mi(n,1,4,r,e),t?t.nj(i):t=i),r!=e&&(e?t=Dm(n,TS(n,e),t):t=Dm(n,n.a,t)),t}function dFn(){JE.call(this),this.e=-1,this.a=!1,this.p=Wi,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=Wi}function ske(n,e){var t,i,r;if(i=n.b.d.d,n.a||(i+=n.b.d.a),r=e.b.d.d,e.a||(r+=e.b.d.a),t=bt(i,r),t==0){if(!n.a&&e.a)return-1;if(!e.a&&n.a)return 1}return t}function fke(n,e){var t,i,r;if(i=n.b.b.d,n.a||(i+=n.b.b.a),r=e.b.b.d,e.a||(r+=e.b.b.a),t=bt(i,r),t==0){if(!n.a&&e.a)return-1;if(!e.a&&n.a)return 1}return t}function hke(n,e){var t,i,r;if(i=n.b.g.d,n.a||(i+=n.b.g.a),r=e.b.g.d,e.a||(r+=e.b.g.a),t=bt(i,r),t==0){if(!n.a&&e.a)return-1;if(!e.a&&n.a)return 1}return t}function LZ(){LZ=R,mZn=Iu(Fe(Fe(Fe(new ii,(Vi(),Fc),(tr(),fsn)),Fc,hsn),zr,lsn),zr,Yon),kZn=Fe(Fe(new ii,Fc,Gon),Fc,Zon),vZn=Iu(new ii,zr,esn)}function lke(n){var e,t,i,r,c;for(e=u(v(n,(W(),B8)),85),c=n.n,i=e.Cc().Kc();i.Ob();)t=u(i.Pb(),314),r=t.i,r.c+=c.a,r.d+=c.b,t.c?Lqn(t):Nqn(t);U(n,B8,null)}function ake(n,e,t){var i,r;switch(r=n.b,i=r.d,e.g){case 1:return-i.d-t;case 2:return r.o.a+i.c+t;case 3:return r.o.b+i.a+t;case 4:return-i.b-t;default:return-1}}function dke(n,e,t){var i,r;for(t.Ug("Interactive node placement",1),n.a=u(v(e,(W(),E2)),312),r=new M(e.b);r.a<r.c.c.length;)i=u(E(r),30),cSe(n,i);t.Vg()}function bke(n){var e,t,i,r,c;if(i=0,r=i2,n.b)for(e=0;e<360;e++)t=e*.017453292519943295,Ien(n,n.d,0,0,Md,t),c=n.b.Dg(n.d),c<r&&(i=t,r=c);Ien(n,n.d,0,0,Md,i)}function wke(n,e){var t,i,r,c;for(c=new de,e.e=null,e.f=null,i=new M(e.i);i.a<i.c.c.length;)t=u(E(i),68),r=u(ee(n.g,t.a),42),t.a=gT(t.b),Ve(c,t.a,r);n.g=c}function gke(n,e,t){var i,r,c,s,f,h;for(r=e-n.e,c=r/n.d.c.length,s=0,h=new M(n.d);h.a<h.c.c.length;)f=u(E(h),315),i=n.b-f.b+t,xKn(f,f.e+s*c,f.f),Y9e(f,c,i),++s}function bFn(n){var e;if(n.f._j(),n.b!=-1){if(++n.b,e=n.f.d[n.a],n.b<e.i)return;++n.a}for(;n.a<n.f.d.length;++n.a)if(e=n.f.d[n.a],e&&e.i!=0){n.b=0;return}n.b=-1}function pke(n,e){var t,i,r;for(r=e.c.length,t=vEe(n,r==0?"":(Nn(0,e.c.length),Ae(e.c[0]))),i=1;i<r&&t;++i)t=u(t,54).Zh((Nn(i,e.c.length),Ae(e.c[i])));return t}function wFn(n,e){var t,i;for(i=new M(e);i.a<i.c.c.length;)t=u(E(i),10),n.c[t.c.p][t.p].a=hW(n.i),n.c[t.c.p][t.p].d=$(n.c[t.c.p][t.p].a),n.c[t.c.p][t.p].b=1}function mke(n,e){var t,i,r,c;for(c=0,i=new M(n);i.a<i.c.c.length;)t=u(E(i),163),c+=y.Math.pow(Pu(t)*ao(t)-e,2);return r=y.Math.sqrt(c/(n.c.length-1)),r}function gFn(n,e){var t,i,r,c;for(c=0,r=u(u(ot(n.r,e),21),87).Kc();r.Ob();)i=u(r.Pb(),117),c=y.Math.max(c,i.e.a+i.b.Mf().a);t=u(Mr(n.b,e),127),t.n.b=0,t.a.a=c}function pFn(n,e){var t,i,r,c;for(t=0,c=u(u(ot(n.r,e),21),87).Kc();c.Ob();)r=u(c.Pb(),117),t=y.Math.max(t,r.e.b+r.b.Mf().b);i=u(Mr(n.b,e),127),i.n.d=0,i.a.b=t}function mFn(n,e,t,i){var r,c,s;return c=nPe(n,e,t,i),s=ken(n,c),eR(n,e,t,i),u$(n.b),Ln(),Yt(c,new G7n(n)),r=ken(n,c),eR(n,t,e,i),u$(n.b),new bi(Y(s),Y(r))}function vke(n,e){var t;e.Ug("Delaunay triangulation",1),t=new Z,nu(n.i,new Skn(t)),on(un(v(n,(J4(),A8)))),n.e?Ki(n.e,azn(t)):n.e=azn(t),e.Vg()}function kke(n,e,t){var i,r;for(j7(n,n.j+e,n.k+t),r=new ne((!n.a&&(n.a=new ti(xo,n,5)),n.a));r.e!=r.i.gc();)i=u(ue(r),377),gN(i,i.a+e,i.b+t);y7(n,n.b+e,n.c+t)}function NZ(n,e,t,i){switch(t){case 7:return!n.e&&(n.e=new Dn(Vt,n,7,4)),Xc(n.e,e,i);case 8:return!n.d&&(n.d=new Dn(Vt,n,8,5)),Xc(n.d,e,i)}return Yx(n,e,t,i)}function DZ(n,e,t,i){switch(t){case 7:return!n.e&&(n.e=new Dn(Vt,n,7,4)),cr(n.e,e,i);case 8:return!n.d&&(n.d=new Dn(Vt,n,8,5)),cr(n.d,e,i)}return $$(n,e,t,i)}function yke(n,e,t){var i,r,c,s,f;if(t)for(c=t.a.length,i=new Qa(c),f=(i.b-i.a)*i.c<0?(F1(),xa):new q1(i);f.Ob();)s=u(f.Pb(),17),r=N4(t,s.a),r&&q_n(n,r,e)}function zk(n,e,t){var i,r,c,s,f;return n._j(),c=e==null?0:mt(e),n.f>0&&(s=(c&et)%n.d.length,r=$nn(n,s,c,e),r)?(f=r.nd(t),f):(i=n.ck(c,e,t),n.c.Fc(i),null)}function $Z(n,e){var t,i,r,c;switch(r1(n,e).Kl()){case 3:case 2:{for(t=Jg(e),r=0,c=t.i;r<c;++r)if(i=u(N(t,r),35),yb(Nr(n,i))==5)return i;break}}return null}function jke(n){var e,t,i,r,c;if(iMn(n.f,n.b.length))for(i=F(sQn,My,227,n.b.length*2,0,1),n.b=i,r=i.length-1,t=n.a;t!=n;t=t._d())c=u(t,227),e=c.d&r,c.a=i[e],i[e]=c}function Eke(n){var e,t;return t=u(v(n,(W(),Hc)),21),e=LM(Jie),t.Hc((pr(),v2))&&To(e,Zie),t.Hc(K8)&&To(e,nre),t.Hc(vv)&&To(e,Qie),t.Hc(kv)&&To(e,Yie),e}function xZ(n){if(n<0)throw T(new Gn("The input must be positive"));return n<oan.length?id(oan[n]):y.Math.sqrt(Md*n)*(Z6e(n,n)/pY(2.718281828459045,n))}function km(n,e){var t;if(n.Yi()&&e!=null){for(t=0;t<n.i;++t)if(rt(e,n.g[t]))return!0}else for(t=0;t<n.i;++t)if(x(n.g[t])===x(e))return!0;return!1}function Mke(n,e){if(e==null){for(;n.a.Ob();)if(u(n.a.Pb(),44).md()==null)return!0}else for(;n.a.Ob();)if(rt(e,u(n.a.Pb(),44).md()))return!0;return!1}function Tke(n,e){var t,i,r;return e===n?!0:L(e,678)?(r=u(e,2046),WKn((i=n.g,i||(n.g=new zA(n))),(t=r.g,t||(r.g=new zA(r))))):!1}function Cke(n){var e,t,i,r;for(e="gA",t="vz",r=y.Math.min(n.length,5),i=r-1;i>=0;i--)if(Sn(n[i].d,e)||Sn(n[i].d,t)){n.length>=i+1&&n.splice(0,i+1);break}return n}function Xk(n,e){var t;return Vr(n)&&Vr(e)&&(t=n/e,Sy<t&&t<vd)?t<0?y.Math.ceil(t):y.Math.floor(t):Y1(Wen(Vr(n)?ds(n):n,Vr(e)?ds(e):e,!1))}function RZ(n,e){if(e==n.c.i)return n.d.i;if(e==n.d.i)return n.c.i;throw T(new Gn("'node' must either be the source node or target node of the edge."))}function Ske(n){var e,t,i,r;if(r=u(v(n,(W(),nfn)),36),r){for(i=new Ni,e=Hi(n.c.i);e!=r;)t=e.e,e=Hi(t),ab(tt(tt(i,t.n),e.c),e.d.b,e.d.d);return i}return KZn}function Pke(n){var e;e=u(v(n,(W(),h0)),337),qt(rc(new Cn(null,new On(e.d,16)),new a2n),new c7n(n)),qt(ut(new Cn(null,new On(e.d,16)),new d2n),new o7n(n))}function zx(n,e){var t,i,r,c;for(r=e?Qt(n):ji(n),i=new ie(ce(r.a.Kc(),new En));pe(i);)if(t=u(fe(i),18),c=RZ(t,n),c.k==(Vn(),Ti)&&c.c!=n.c)return c;return null}function Ike(n){var e,t,i;for(t=new M(n.p);t.a<t.c.c.length;)e=u(E(t),10),e.k==(Vn(),zt)&&(i=e.o.b,n.i=y.Math.min(n.i,i),n.g=y.Math.max(n.g,i))}function vFn(n,e,t){var i,r,c;for(c=new M(e);c.a<c.c.c.length;)i=u(E(c),10),n.c[i.c.p][i.p].e=!1;for(r=new M(e);r.a<r.c.c.length;)i=u(E(r),10),etn(n,i,t)}function Xx(n,e,t){var i,r;i=Rg(e.j,t.s,t.c)+Rg(t.e,e.s,e.c),r=Rg(t.j,e.s,e.c)+Rg(e.e,t.s,t.c),i==r?i>0&&(n.b+=2,n.a+=i):(n.b+=1,n.a+=y.Math.min(i,r))}function kFn(n){var e;e=u(v(u(Zo(n.b,0),40),(lc(),Oln)),107),U(n,(pt(),Lv),new V(0,0)),lUn(new tk,n,e.b+e.c-$(B(v(n,iq))),e.d+e.a-$(B(v(n,rq))))}function yFn(n,e){var t,i;if(i=!1,Si(e)&&(i=!0,Op(n,new q0(Ae(e)))),i||L(e,242)&&(i=!0,Op(n,(t=IV(u(e,242)),new SE(t)))),!i)throw T(new vL(Lcn))}function Oke(n,e,t,i){var r,c,s;return r=new ml(n.e,1,10,(s=e.c,L(s,90)?u(s,29):(An(),Os)),(c=t.c,L(c,90)?u(c,29):(An(),Os)),f1(n,e),!1),i?i.nj(r):i=r,i}function KZ(n){var e,t;switch(u(v(Hi(n),(cn(),ehn)),429).g){case 0:return e=n.n,t=n.o,new V(e.a+t.a/2,e.b+t.b/2);case 1:return new rr(n.n);default:return null}}function Vk(){Vk=R,YI=new p6(kh,0),Fsn=new p6("LEFTUP",1),Hsn=new p6("RIGHTUP",2),Bsn=new p6("LEFTDOWN",3),_sn=new p6("RIGHTDOWN",4),iH=new p6("BALANCED",5)}function Ake(n,e,t){var i,r,c;if(i=bt(n.a[e.p],n.a[t.p]),i==0){if(r=u(v(e,(W(),C3)),15),c=u(v(t,C3),15),r.Hc(t))return-1;if(c.Hc(e))return 1}return i}function Lke(n){switch(n.g){case 1:return new U4n;case 2:return new G4n;case 3:return new q4n;case 0:return null;default:throw T(new Gn(GB+(n.f!=null?n.f:""+n.g)))}}function BZ(n,e,t){switch(e){case 1:!n.n&&(n.n=new q(Sr,n,1,7)),me(n.n),!n.n&&(n.n=new q(Sr,n,1,7)),Kt(n.n,u(t,16));return;case 2:X4(n,Ae(t));return}cY(n,e,t)}function FZ(n,e,t){switch(e){case 3:Ib(n,$(B(t)));return;case 4:Ob(n,$(B(t)));return;case 5:eu(n,$(B(t)));return;case 6:tu(n,$(B(t)));return}BZ(n,e,t)}function dS(n,e,t){var i,r,c;c=(i=new lL,i),r=Kf(c,e,null),r&&r.oj(),zc(c,t),ve((!n.c&&(n.c=new q(y0,n,12,10)),n.c),c),e1(c,0),Z0(c,1),u1(c,!0),c1(c,!0)}function _Z(n,e){var t,i,r;return t=a6(n.i,e),L(t,241)?(r=u(t,241),r.zi()==null,r.wi()):L(t,507)?(i=u(t,2037),r=i.b,r):null}function Nke(n,e,t,i){var r,c;return Pe(e),Pe(t),c=u($6(n.d,e),17),VDn(!!c,"Row %s not in %s",e,n.e),r=u($6(n.b,t),17),VDn(!!r,"Column %s not in %s",t,n.c),cRn(n,c.a,r.a,i)}function jFn(n,e,t,i,r,c,s){var f,h,l,a,d;if(a=r[c],l=c==s-1,f=l?i:0,d=_Bn(f,a),i!=10&&S(C(n,s-c),e[c],t[c],f,d),!l)for(++c,h=0;h<a;++h)d[h]=jFn(n,e,t,i,r,c,s);return d}function A5(n){if(n.g==-1)throw T(new Mu);n.Xj();try{n.i.gd(n.g),n.f=n.i.j,n.g<n.e&&--n.e,n.g=-1}catch(e){throw e=Ot(e),L(e,77)?T(new Ko):T(e)}}function Dke(n){var e,t,i,r;for(r=-1,i=0,t=new M(n);t.a<t.c.c.length;){if(e=u(E(t),249),e.c==(gr(),Vu)){r=i==0?0:i-1;break}else i==n.c.length-1&&(r=i);i+=1}return r}function $ke(n){var e,t,i,r;for(r=0,e=0,i=new M(n.c);i.a<i.c.c.length;)t=u(E(i),27),eu(t,n.e+r),tu(t,n.f),r+=t.g+n.b,e=y.Math.max(e,t.f+n.b);n.d=r-n.b,n.a=e-n.b}function Hg(n){var e,t,i;for(t=new M(n.a.b);t.a<t.c.c.length;)e=u(E(t),60),i=e.d.c,e.d.c=e.d.d,e.d.d=i,i=e.d.b,e.d.b=e.d.a,e.d.a=i,i=e.b.a,e.b.a=e.b.b,e.b.b=i;cen(n)}function qg(n){var e,t,i;for(t=new M(n.a.b);t.a<t.c.c.length;)e=u(E(t),86),i=e.g.c,e.g.c=e.g.d,e.g.d=i,i=e.g.b,e.g.b=e.g.a,e.g.a=i,i=e.e.a,e.e.a=e.e.b,e.e.b=i;IS(n)}function xke(n){var e,t,i,r,c;for(c=Cp(n.k),t=(en(),S(C(lr,1),Tc,64,0,[sc,Xn,Zn,ae,Wn])),i=0,r=t.length;i<r;++i)if(e=t[i],e!=sc&&!c.Hc(e))return e;return null}function Vx(n,e){var t,i;return i=u(x1e(im(ut(new Cn(null,new On(e.j,16)),new $pn))),12),i&&(t=u(sn(i.e,0),18),t)?u(v(t,(W(),dt)),17).a:z4e(n.b)}function Rke(n,e){var t,i,r,c;for(c=new M(e.a);c.a<c.c.c.length;)for(r=u(E(c),10),e6(n.d),i=new ie(ce(Qt(r).a.Kc(),new En));pe(i);)t=u(fe(i),18),vHn(n,r,t.d.i)}function Kke(n,e){var t,i;for(du(n.b,e),i=new M(n.n);i.a<i.c.c.length;)if(t=u(E(i),209),qr(t.c,e,0)!=-1){du(t.c,e),$ke(t),t.c.c.length==0&&du(n.n,t);break}ZUn(n)}function EFn(n,e){var t,i,r,c,s;for(s=n.f,r=0,c=0,i=new M(n.a);i.a<i.c.c.length;)t=u(E(i),172),Hk(t,n.e,s),uk(t,e),c=y.Math.max(c,t.r),s+=t.d+n.c,r=s;n.d=c,n.b=r}function MFn(n){var e,t;return t=cy(n),D4(t)?null:(e=(Pe(t),u(OBn(new ie(ce(t.a.Kc(),new En))),74)),Gr(u(N((!e.b&&(e.b=new Dn(he,e,4,7)),e.b),0),84)))}function bS(n){var e;return n.o||(e=n.uk(),e?n.o=new xW(n,n,null):n.al()?n.o=new dV(n,null):yb(Nr((Lu(),zi),n))==1?n.o=new VLn(n):n.o=new LN(n,null)),n.o}function Bke(n,e,t,i){var r,c,s,f,h;t.Xh(e)&&(r=(s=e,s?u(i,54).gi(s):null),r&&(h=t.Mh(e),f=e.t,f>1||f==-1?(c=u(h,15),r.Wb(g8e(n,c))):r.Wb(OR(n,u(h,58)))))}function Fke(n,e,t,i){LEn();var r=BF;function c(){for(var s=0;s<r.length;s++)r[s]()}if(n)try{Ose(c)()}catch(s){n(e,s)}else Ose(c)()}function _ke(n,e){var t,i,r,c;for(r=(c=new qa(n.b).a.vc().Kc(),new IE(c));r.a.Ob();)if(i=(t=u(r.a.Pb(),44),u(t.ld(),34)),yX(e,u(i,17))<0)return!1;return!0}function Hke(n,e){var t,i,r,c;for(r=(c=new qa(n.b).a.vc().Kc(),new IE(c));r.a.Ob();)if(i=(t=u(r.a.Pb(),44),u(t.ld(),34)),yX(e,u(i,17))>0)return!1;return!0}function qke(n){var e,t,i,r,c;for(i=new sd(new Ua(n.b).a);i.b;)t=Nb(i),e=u(t.ld(),10),c=u(u(t.md(),42).a,10),r=u(u(t.md(),42).b,8),tt(ff(e.n),tt(Fi(c.n),r))}function Uke(n){switch(u(v(n.b,(cn(),Vfn)),387).g){case 1:qt(_r(rc(new Cn(null,new On(n.d,16)),new ypn),new jpn),new Epn);break;case 2:BSe(n);break;case 0:pEe(n)}}function Gke(n,e,t){var i,r,c;for(i=t,!i&&(i=new op),i.Ug("Layout",n.a.c.length),c=new M(n.a);c.a<c.c.c.length;){if(r=u(E(c),47),i.$g())return;r.Kf(e,i.eh(1))}i.Vg()}function wd(){wd=R,Jq=new k6("V_TOP",0),m9=new k6("V_CENTER",1),p9=new k6("V_BOTTOM",2),Wq=new k6("H_LEFT",3),w9=new k6("H_CENTER",4),g9=new k6("H_RIGHT",5)}function HZ(n){var e;return n.Db&64?UC(n):(e=new ls(UC(n)),e.a+=" (abstract: ",ql(e,(n.Bb&256)!=0),e.a+=", interface: ",ql(e,(n.Bb&512)!=0),e.a+=")",e.a)}function zke(n){var e;n.c==null&&(e=x(n.b)===x(uun)?null:n.b,n.d=e==null?gu:MIn(e)?P1e(xOn(e)):Si(e)?ptn:Xa(wo(e)),n.a=n.a+": "+(MIn(e)?Cae(xOn(e)):e+""),n.c="("+n.d+") "+n.a)}function Xke(){function n(){try{return new Map().entries().next().done}catch{return!1}}return typeof Map===eK&&Map.prototype.entries&&n()?Map:NLe()}function Vke(n,e){var t,i,r,c;for(c=new xi(n.e,0),t=0;c.b<c.d.gc();){if(i=$((oe(c.b<c.d.gc()),B(c.d.Xb(c.c=c.b++)))),r=i-e,r>_B)return t;r>-1e-6&&++t}return t}function qZ(n,e){var t;e!=n.b?(t=null,n.b&&(t=AT(n.b,n,-4,t)),e&&(t=Wp(e,n,-4,t)),t=YRn(n,e,t),t&&t.oj()):n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,3,e,e))}function TFn(n,e){var t;e!=n.f?(t=null,n.f&&(t=AT(n.f,n,-1,t)),e&&(t=Wp(e,n,-1,t)),t=QRn(n,e,t),t&&t.oj()):n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,0,e,e))}function Wke(n,e,t,i){var r,c,s,f;return fo(n.e)&&(r=e.Lk(),f=e.md(),c=t.md(),s=V1(n,1,r,f,c,r.Jk()?Am(n,r,c,L(r,102)&&(u(r,19).Bb&hr)!=0):-1,!0),i?i.nj(s):i=s),i}function CFn(n){var e,t,i;if(n==null)return null;if(t=u(n,15),t.dc())return"";for(i=new Hl,e=t.Kc();e.Ob();)Er(i,(at(),Ae(e.Pb()))),i.a+=" ";return bN(i,i.a.length-1)}function SFn(n){var e,t,i;if(n==null)return null;if(t=u(n,15),t.dc())return"";for(i=new Hl,e=t.Kc();e.Ob();)Er(i,(at(),Ae(e.Pb()))),i.a+=" ";return bN(i,i.a.length-1)}function Jke(n,e,t){var i,r;return i=n.c[e.c.p][e.p],r=n.c[t.c.p][t.p],i.a!=null&&r.a!=null?tD(i.a,r.a):i.a!=null?-1:r.a!=null?1:0}function Qke(n,e,t){return t.Ug("Tree layout",1),H7(n.b),hf(n.b,(Qp(),NO),NO),hf(n.b,t9,t9),hf(n.b,i9,i9),hf(n.b,r9,r9),n.a=gy(n.b,e),Gke(n,e,t.eh(1)),t.Vg(),e}function Yke(n,e){var t,i,r,c,s,f;if(e)for(c=e.a.length,t=new Qa(c),f=(t.b-t.a)*t.c<0?(F1(),xa):new q1(t);f.Ob();)s=u(f.Pb(),17),r=N4(e,s.a),i=new Vkn(n),uge(i.a,r)}function Zke(n,e){var t,i,r,c,s,f;if(e)for(c=e.a.length,t=new Qa(c),f=(t.b-t.a)*t.c<0?(F1(),xa):new q1(t);f.Ob();)s=u(f.Pb(),17),r=N4(e,s.a),i=new Bkn(n),cge(i.a,r)}function nye(n){var e;if(n!=null&&n.length>0&&Xi(n,n.length-1)==33)try{return e=$Hn(qo(n,0,n.length-1)),e.e==null}catch(t){if(t=Ot(t),!L(t,33))throw T(t)}return!1}function eye(n,e,t){var i,r,c;switch(i=Hi(e),r=FC(i),c=new Ic,ic(c,e),t.g){case 1:gi(c,xk(zp(r)));break;case 2:gi(c,zp(r))}return U(c,(cn(),Fw),B(v(n,Fw))),c}function UZ(n){var e,t;return e=u(fe(new ie(ce(ji(n.a).a.Kc(),new En))),18),t=u(fe(new ie(ce(Qt(n.a).a.Kc(),new En))),18),on(un(v(e,(W(),zf))))||on(un(v(t,zf)))}function ow(){ow=R,gj=new s7("ONE_SIDE",0),zI=new s7("TWO_SIDES_CORNER",1),XI=new s7("TWO_SIDES_OPPOSING",2),GI=new s7("THREE_SIDES",3),UI=new s7("FOUR_SIDES",4)}function PFn(n,e){var t,i,r,c;for(c=new Z,r=0,i=e.Kc();i.Ob();){for(t=Y(u(i.Pb(),17).a+r);t.a<n.f&&!G0e(n,t.a);)t=Y(t.a+1),++r;if(t.a>=n.f)break;Fn(c.c,t)}return c}function tye(n,e){var t,i,r,c,s;for(c=new M(e.a);c.a<c.c.c.length;)for(r=u(E(c),10),i=new ie(ce(ji(r).a.Kc(),new En));pe(i);)t=u(fe(i),18),s=t.c.i.p,n.n[s]=n.n[s]-1}function iye(n){var e,t;for(t=new M(n.e.b);t.a<t.c.c.length;)e=u(E(t),30),YAe(n,e);qt(ut(rc(rc(new Cn(null,new On(n.e.b,16)),new l3n),new p3n),new m3n),new ckn(n))}function GZ(n,e){return e?n.mj(e)?!1:n.i?n.i.nj(e):L(e,152)?(n.i=u(e,152),!0):(n.i=new gvn,n.i.nj(e)):!1}function IFn(n,e,t){var i,r,c;return i=e.Lk(),c=e.md(),r=i.Jk()?V1(n,3,i,null,c,Am(n,i,c,L(i,102)&&(u(i,19).Bb&hr)!=0),!0):V1(n,1,i,i.ik(),c,-1,!0),t?t.nj(r):t=r,t}function rye(n){if(n=Rc(n,!0),Sn(nv,n)||Sn("1",n))return _n(),ov;if(Sn(cF,n)||Sn("0",n))return _n(),ga;throw T(new kL("Invalid boolean value: '"+n+"'"))}function zZ(n,e,t){var i,r,c;for(r=n.vc().Kc();r.Ob();)if(i=u(r.Pb(),44),c=i.ld(),x(e)===x(c)||e!=null&&rt(e,c))return t&&(i=new oM(i.ld(),i.md()),r.Qb()),i;return null}function cye(n){K0();var e,t,i;n.B.Hc((io(),sA))&&(i=n.f.i,e=new IT(n.a.c),t=new up,t.b=e.c-i.c,t.d=e.d-i.d,t.c=i.c+i.b-(e.c+e.b),t.a=i.d+i.a-(e.d+e.a),n.e.$f(t))}function OFn(n,e,t,i){var r,c,s;for(s=y.Math.min(t,_Un(u(n.b,68),e,t,i)),c=new M(n.a);c.a<c.c.c.length;)r=u(E(c),225),r!=e&&(s=y.Math.min(s,OFn(r,e,s,i)));return s}function XZ(n){var e,t,i,r;for(r=F(Qh,J,199,n.b.c.length,0,2),i=new xi(n.b,0);i.b<i.d.gc();)e=(oe(i.b<i.d.gc()),u(i.d.Xb(i.c=i.b++),30)),t=i.b-1,r[t]=Y7(e.a);return r}function VZ(n,e,t){var i,r,c;i=u(Df(n.a,t),34),i!=null&&(c=u(Df(n.b,i),67),iw(c,t,!0)),r=u(Df(n.b,e),67),r||(r=new Mt,s1(n.b,e,r)),xt(r,t,r.c.b,r.c),s1(n.a,t,e)}function Wx(n,e,t,i,r){var c,s,f,h;for(s=Ehe(vz($V(O9e(t)),i),_7e(n,t,r)),h=h1(n,t).Kc();h.Ob();)f=u(h.Pb(),12),e[f.p]&&(c=e[f.p].i,nn(s.d,new ZN(c,CY(s,c))));GY(s)}function WZ(n,e){this.f=new de,this.b=new de,this.j=new de,this.a=n,this.c=e,this.c>0&&YBn(this,this.c-1,(en(),Zn)),this.c<this.a.length-1&&YBn(this,this.c+1,(en(),Wn))}function uye(n,e){var t,i,r,c,s;for(c=new M(e.d);c.a<c.c.c.length;)for(r=u(E(c),105),s=u(ee(n.c,r),118).o,i=new dp(r.b);i.a<i.c.a.length;)t=u(n5(i),64),QJ(r,t,s)}function JZ(n){n.length>0&&n[0].length>0&&(this.c=on(un(v(Hi(n[0][0]),(W(),ifn))))),this.a=F(jie,J,2117,n.length,0,2),this.b=F(Eie,J,2118,n.length,0,2),this.d=new zRn}function oye(n){return n.c.length==0?!1:(Nn(0,n.c.length),u(n.c[0],18)).c.i.k==(Vn(),Ti)?!0:Ag(_r(new Cn(null,new On(n,16)),new t3n),new i3n)}function AFn(n,e){var t,i,r,c,s,f,h;for(f=aw(e),c=e.f,h=e.g,s=y.Math.sqrt(c*c+h*h),r=0,i=new M(f);i.a<i.c.c.length;)t=u(E(i),27),r+=AFn(n,t);return y.Math.max(r,s)}function Ai(){Ai=R,Ia=new j6(n8,0),Qf=new j6("FREE",1),Fv=new j6("FIXED_SIDE",2),Ud=new j6("FIXED_ORDER",3),tl=new j6("FIXED_RATIO",4),qc=new j6("FIXED_POS",5)}function sye(n,e){var t,i,r;if(t=e.qi(n.a),t){for(r=Ae(gf((!t.b&&(t.b=new lo((An(),ar),pc,t)),t.b),ys)),i=1;i<(Lu(),rbn).length;++i)if(Sn(rbn[i],r))return i}return 0}function fye(n){var e,t,i,r,c;if(n==null)return gu;for(c=new fd(ur,"[","]"),t=n,i=0,r=t.length;i<r;++i)e=t[i],pl(c,""+e);return c.a?c.e.length==0?c.a.a:c.a.a+(""+c.e):c.c}function hye(n){var e,t,i,r,c;if(n==null)return gu;for(c=new fd(ur,"[","]"),t=n,i=0,r=t.length;i<r;++i)e=t[i],pl(c,""+e);return c.a?c.e.length==0?c.a.a:c.a.a+(""+c.e):c.c}function LFn(n){var e,t,i;for(i=new fd(ur,"{","}"),t=n.vc().Kc();t.Ob();)e=u(t.Pb(),44),pl(i,BLn(n,e.ld())+"="+BLn(n,e.md()));return i.a?i.e.length==0?i.a.a:i.a.a+(""+i.e):i.c}function lye(n){for(var e,t,i,r;!t6(n.o);)t=u(Pp(n.o),42),i=u(t.a,125),e=u(t.b,218),r=HC(e,i),e.e==i?(BM(r.g,e),i.e=r.e+e.a):(BM(r.b,e),i.e=r.e-e.a),nn(n.e.a,i)}function QZ(n,e){var t,i,r;for(t=null,r=u(e.Kb(n),20).Kc();r.Ob();)if(i=u(r.Pb(),18),!t)t=i.c.i==n?i.d.i:i.c.i;else if((i.c.i==n?i.d.i:i.c.i)!=t)return!1;return!0}function NFn(n,e){var t,i,r,c,s;for(t=JHn(n,!1,e),r=new M(t);r.a<r.c.c.length;)i=u(E(r),132),i.d==0?($D(i,null),xD(i,null)):(c=i.a,s=i.b,$D(i,s),xD(i,c))}function aye(n){var e,t;return e=new ii,To(e,ire),t=u(v(n,(W(),Hc)),21),t.Hc((pr(),K8))&&To(e,ore),t.Hc(vv)&&To(e,rre),t.Hc(v2)&&To(e,ure),t.Hc(kv)&&To(e,cre),e}function YZ(n,e,t){var i,r,c,s,f;for(s8e(n),r=(n.k==null&&(n.k=F(zF,J,82,0,0,1)),n.k),c=0,s=r.length;c<s;++c)i=r[c],YZ(i);f=n.f,f&&YZ(f)}function dye(n){var e,t,i,r;for(nAe(n),t=new ie(ce(Ml(n).a.Kc(),new En));pe(t);)e=u(fe(t),18),i=e.c.i==n,r=i?e.d:e.c,i?Oi(e,null):Zi(e,null),U(e,(W(),ofn),r),SMe(n,r.i)}function bye(n,e,t,i){var r,c;switch(c=e.i,r=t[c.g][n.d[c.g]],c.g){case 1:r-=i+e.j.b,e.g.b=r;break;case 3:r+=i,e.g.b=r;break;case 4:r-=i+e.j.a,e.g.a=r;break;case 2:r+=i,e.g.a=r}}function wye(n){var e,t,i;for(t=new ne((!n.a&&(n.a=new q(Ye,n,10,11)),n.a));t.e!=t.i.gc();)if(e=u(ue(t),27),i=cy(e),!pe(new ie(ce(i.a.Kc(),new En))))return e;return null}function wS(){wS=R,gq=new d7("OVERLAP_REMOVAL",0),dq=new d7(mVn,1),pq=new d7("ROTATION",2),bq=new d7("GRAPH_SIZE_CALCULATION",3),wq=new d7("OUTGOING_EDGE_ANGLES",4)}function gye(){var n;return Soe?u(Tm((B1(),Is),tv),2115):(n=u(L(Dc((B1(),Is),tv),569)?Dc(Is,tv):new jHn,569),Soe=!0,KAe(n),eDe(n),Hx(n),Lr(Is,tv,n),n)}function Jx(n,e,t){var i,r;if(n.j==0)return t;if(r=u(q$n(n,e,t),76),i=t.Lk(),!i.rk()||!n.a.am(i))throw T(new ec("Invalid entry feature '"+i.qk().zb+"."+i.xe()+"'"));return r}function pye(n,e){var t,i,r,c,s,f,h,l;for(f=n.a,h=0,l=f.length;h<l;++h)for(s=f[h],i=s,r=0,c=i.length;r<c;++r)if(t=i[r],x(e)===x(t)||e!=null&&rt(e,t))return!0;return!1}function mye(n){var e,t,i;return Ec(n,0)>=0?(t=Xk(n,QS),i=Kk(n,QS)):(e=U1(n,1),t=Xk(e,5e8),i=Kk(e,5e8),i=nr(Ks(i,1),vi(n,1))),lf(Ks(i,32),vi(t,mr))}function DFn(n,e,t){var i,r;switch(i=(oe(e.b!=0),u(Xo(e,e.a.a),8)),t.g){case 0:i.b=0;break;case 2:i.b=n.f;break;case 3:i.a=0;break;default:i.a=n.g}return r=ge(e,0),_7(r,i),e}function $Fn(n,e,t,i){var r,c,s,f,h;switch(h=n.b,c=e.d,s=c.j,f=oZ(s,h.d[s.g],t),r=tt(Fi(c.n),c.a),c.j.g){case 1:case 3:f.a+=r.a;break;case 2:case 4:f.b+=r.b}xt(i,f,i.c.b,i.c)}function vye(n,e,t){var i,r,c,s;for(s=qr(n.e,e,0),c=new JG,c.b=t,i=new xi(n.e,s);i.b<i.d.gc();)r=(oe(i.b<i.d.gc()),u(i.d.Xb(i.c=i.b++),10)),r.p=t,nn(c.e,r),bo(i);return c}function kye(n,e,t,i){var r,c,s,f,h;for(r=null,c=0,f=new M(e);f.a<f.c.c.length;)s=u(E(f),27),h=s.i+s.g,n<s.j+s.f+i&&(r?t.i-h<t.i-c&&(r=s):r=s,c=r.i+r.g);return r?c+i:0}function yye(n,e,t,i){var r,c,s,f,h;for(c=null,r=0,f=new M(e);f.a<f.c.c.length;)s=u(E(f),27),h=s.j+s.f,n<s.i+s.g+i&&(c?t.j-h<t.j-r&&(c=s):c=s,r=c.j+c.f);return c?r+i:0}function jye(n){var e,t,i;for(e=!1,i=n.b.c.length,t=0;t<i;t++)tY(u(sn(n.b,t),443))?!e&&t+1<i&&tY(u(sn(n.b,t+1),443))&&(e=!0,u(sn(n.b,t),443).a=!0):e=!1}function Eye(n,e,t,i,r){var c,s;for(c=0,s=0;s<r;s++)c=nr(c,bs(vi(e[s],mr),vi(i[s],mr))),n[s]=Se(c),c=wb(c,32);for(;s<t;s++)c=nr(c,vi(e[s],mr)),n[s]=Se(c),c=wb(c,32)}function Mye(n,e){Sm();var t,i;for(i=(dh(),sI),t=n;e>1;e>>=1)e&1&&(i=Og(i,t)),t.d==1?t=Og(t,t):t=new QKn(pUn(t.a,t.d,F(ye,_e,28,t.d<<1,15,1)));return i=Og(i,t),i}function ZZ(){ZZ=R;var n,e,t,i;for(Nun=F(Ii,Cr,28,25,15,1),Dun=F(Ii,Cr,28,33,15,1),i=152587890625e-16,e=32;e>=0;e--)Dun[e]=i,i*=.5;for(t=1,n=24;n>=0;n--)Nun[n]=t,t*=.5}function Tye(n){var e,t;if(on(un(z(n,(cn(),Bw))))){for(t=new ie(ce(Sl(n).a.Kc(),new En));pe(t);)if(e=u(fe(t),74),_b(e)&&on(un(z(e,Dd))))return!0}return!1}function xFn(n,e){var t,i,r;fi(n.f,e)&&(e.b=n,i=e.c,qr(n.j,i,0)!=-1||nn(n.j,i),r=e.d,qr(n.j,r,0)!=-1||nn(n.j,r),t=e.a.b,t.c.length!=0&&(!n.i&&(n.i=new iBn(n)),Ove(n.i,t)))}function Cye(n){var e,t,i,r,c;return t=n.c.d,i=t.j,r=n.d.d,c=r.j,i==c?t.p<r.p?0:1:BC(i)==c?0:SY(i)==c?1:(e=n.b,Su(e.b,BC(i))?0:1)}function gd(n){var e;this.d=new de,this.c=n.c,this.e=n.d,this.b=n.b,this.f=new hIn(n.e),this.a=n.a,n.f?this.g=n.f:this.g=(e=u(of(kA),9),new _o(e,u(xs(e,e.length),9),0))}function gS(n,e){var t,i,r,c,s,f;r=n,s=Y6(r,"layoutOptions"),!s&&(s=Y6(r,wWn)),s&&(f=s,i=null,f&&(i=(c=P$(f,F(fn,J,2,0,6,1)),new PL(f,c))),i&&(t=new ETn(f,e),qi(i,t)))}function Gr(n){if(L(n,207))return u(n,27);if(L(n,193))return Pf(u(n,123));throw T(n?new Fl("Only support nodes and ports."):new fp(MWn))}function Sye(n,e,t,i){return(e>=0&&Sn(n.substr(e,3),"GMT")||e>=0&&Sn(n.substr(e,3),"UTC"))&&(t[0]=e+3),Len(n,t,i)}function Pye(n,e){var t,i,r,c,s;for(c=n.g.a,s=n.g.b,i=new M(n.d);i.a<i.c.c.length;)t=u(E(i),72),r=t.n,r.a=c,n.i==(en(),Xn)?r.b=s+n.j.b-t.o.b:r.b=s,tt(r,e),c+=t.o.a+n.e}function RFn(n,e,t){if(n.b)throw T(new Ar("The task is already done."));return n.p!=null?!1:(n.p=e,n.r=t,n.k&&(n.o=(fl(),er(vc(Date.now()),d1))),!0)}function nnn(n){var e,t,i,r,c,s,f;return f=new sp,t=n.Pg(),r=t!=null,r&&j4(f,Eh,n.Pg()),i=n.xe(),c=i!=null,c&&j4(f,Qe,n.xe()),e=n.Og(),s=e!=null,s&&j4(f,"description",n.Og()),f}function KFn(n,e,t){var i,r,c;return c=n.q,n.q=e,n.Db&4&&!(n.Db&1)&&(r=new Mi(n,1,9,c,e),t?t.nj(r):t=r),e?(i=e.c,i!=n.r&&(t=n.Yk(i,t))):n.r&&(t=n.Yk(null,t)),t}function Iye(n,e,t){var i,r,c,s,f;for(t=(f=e,Wp(f,n.e,-1-n.c,t)),s=FW(n.a),c=(i=new sd(new Ua(s.a).a),new $E(i));c.a.b;)r=u(Nb(c.a).ld(),89),t=Dm(r,TS(r,n.a),t);return t}function Oye(n,e,t){var i,r,c,s,f;for(t=(f=e,AT(f,n.e,-1-n.c,t)),s=FW(n.a),c=(i=new sd(new Ua(s.a).a),new $E(i));c.a.b;)r=u(Nb(c.a).ld(),89),t=Dm(r,TS(r,n.a),t);return t}function Aye(n,e,t,i){var r,c,s;if(i==0)Oc(e,0,n,t,n.length-t);else for(s=32-i,n[n.length-1]=0,c=n.length-1;c>t;c--)n[c]|=e[c-t-1]>>>s,n[c-1]=e[c-t-1]<<i;for(r=0;r<t;r++)n[r]=0}function Lye(n){var e,t,i,r,c;for(e=0,t=0,c=n.Kc();c.Ob();)i=u(c.Pb(),117),e=y.Math.max(e,i.d.b),t=y.Math.max(t,i.d.c);for(r=n.Kc();r.Ob();)i=u(r.Pb(),117),i.d.b=e,i.d.c=t}function Nye(n){var e,t,i,r,c;for(t=0,e=0,c=n.Kc();c.Ob();)i=u(c.Pb(),117),t=y.Math.max(t,i.d.d),e=y.Math.max(e,i.d.a);for(r=n.Kc();r.Ob();)i=u(r.Pb(),117),i.d.d=t,i.d.a=e}function Qx(n,e,t,i,r){var c,s;c=u(Wr(ut(e.Oc(),new dpn),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[(Gu(),Yr)]))),15),Yk(c),s=u(od(n.b,t,i),15),r==0?s.cd(0,c):s.Gc(c)}function Dye(n,e,t){t.Ug("Grow Tree",1),n.b=e.f,on(un(v(e,(J4(),A8))))?(n.c=new kE,AAn(n,null)):n.c=new kE,n.a=!1,cqn(n,e.f),U(e,uon,(_n(),!!n.a)),t.Vg()}function enn(n){var e,t,i,r;for(e=null,r=new M(n.Rf());r.a<r.c.c.length;)i=u(E(r),187),t=new Ho(i.Lf().a,i.Lf().b,i.Mf().a,i.Mf().b),e?L5(e,t):e=t;return!e&&(e=new mp),e}function Yx(n,e,t,i){var r,c;return t==1?(!n.n&&(n.n=new q(Sr,n,1,7)),Xc(n.n,e,i)):(c=u($n((r=u(Un(n,16),29),r||n.ii()),t),69),c.wk().zk(n,iu(n),t-se(n.ii()),e,i))}function Zx(n,e,t){var i,r,c,s,f;for(i=t.gc(),n._i(n.i+i),f=n.i-e,f>0&&Oc(n.g,e,n.g,e+i,f),s=t.Kc(),n.i+=i,r=0;r<i;++r)c=s.Pb(),O6(n,e,n.Zi(e,c)),n.Mi(e,c),n.Ni(),++e;return i!=0}function Kf(n,e,t){var i;return e!=n.q?(n.q&&(t=AT(n.q,n,-10,t)),e&&(t=Wp(e,n,-10,t)),t=KFn(n,e,t)):n.Db&4&&!(n.Db&1)&&(i=new Mi(n,1,9,e,e),t?t.nj(i):t=i),t}function nR(n,e,t,i){return AV((t&wh)==0,"flatMap does not support SUBSIZED characteristic"),AV((t&4)==0,"flatMap does not support SORTED characteristic"),Pe(n),Pe(e),new TLn(n,e,t,i)}function $ye(n,e){PW(e,"Cannot suppress a null exception."),x7(e!=n,"Exception can not suppress itself."),!n.i&&(n.k==null?n.k=S(C(zF,1),J,82,0,[e]):n.k[n.k.length]=e)}function xye(n,e){var t;if(t=eCn(n.b.ag(),e.b.ag()),t!=0)return t;switch(n.b.ag().g){case 1:case 2:return jc(n.b.Nf(),e.b.Nf());case 3:case 4:return jc(e.b.Nf(),n.b.Nf())}return 0}function Rye(n){var e,t,i;for(i=n.e.c.length,n.a=Wa(ye,[J,_e],[53,28],15,[i,i],2),t=new M(n.c);t.a<t.c.c.length;)e=u(E(t),290),n.a[e.c.a][e.d.a]+=u(v(e,(Us(),k3)),17).a}function Kye(n,e){var t,i,r,c,s;if(n==null)return null;for(s=F(fs,gh,28,2*e,15,1),i=0,r=0;i<e;++i)t=n[i]>>4&15,c=n[i]&15,s[r++]=Ldn[t],s[r++]=Ldn[c];return ws(s,0,s.length)}function wu(n){var e,t;return n>=hr?(e=Py+(n-hr>>10&1023)&ui,t=56320+(n-hr&1023)&ui,String.fromCharCode(e)+(""+String.fromCharCode(t))):String.fromCharCode(n&ui)}function Bye(n,e){K0();var t,i,r,c;return r=u(u(ot(n.r,e),21),87),r.gc()>=2?(i=u(r.Kc().Pb(),117),t=n.u.Hc((zu(),S9)),c=n.u.Hc(K3),!i.a&&!t&&(r.gc()==2||c)):!1}function BFn(n,e,t,i,r){var c,s,f;for(c=Mqn(n,e,t,i,r),f=!1;!c;)ES(n,r,!0),f=!0,c=Mqn(n,e,t,i,r);f&&ES(n,r,!1),s=K$(r),s.c.length!=0&&(n.d&&n.d.Gg(s),BFn(n,r,t,i,s))}function pS(){pS=R,aU=new y6(kh,0),tdn=new y6("DIRECTED",1),rdn=new y6("UNDIRECTED",2),ndn=new y6("ASSOCIATION",3),idn=new y6("GENERALIZATION",4),edn=new y6("DEPENDENCY",5)}function Fye(n,e){var t;if(!Pf(n))throw T(new Ar(eWn));switch(t=Pf(n),e.g){case 1:return-(n.j+n.f);case 2:return n.i-t.g;case 3:return n.j-t.f;case 4:return-(n.i+n.g)}return 0}function _ye(n,e,t){var i,r,c;return i=e.Lk(),c=e.md(),r=i.Jk()?V1(n,4,i,c,null,Am(n,i,c,L(i,102)&&(u(i,19).Bb&hr)!=0),!0):V1(n,i.tk()?2:1,i,c,i.ik(),-1,!0),t?t.nj(r):t=r,t}function ym(n,e){var t,i;for(Jn(e),i=n.b.c.length,nn(n.b,e);i>0;){if(t=i,i=(i-1)/2|0,n.a.Ne(sn(n.b,i),e)<=0)return Go(n.b,t,e),!0;Go(n.b,t,sn(n.b,i))}return Go(n.b,i,e),!0}function tnn(n,e,t,i){var r,c;if(r=0,t)r=$C(n.a[t.g][e.g],i);else for(c=0;c<dI;c++)r=y.Math.max(r,$C(n.a[c][e.g],i));return e==(wf(),Wc)&&n.b&&(r=y.Math.max(r,n.b.a)),r}function Hye(n,e){var t,i,r,c,s,f;return r=n.i,c=e.i,!r||!c||r.i!=c.i||r.i==(en(),Zn)||r.i==(en(),Wn)?!1:(s=r.g.a,t=s+r.j.a,f=c.g.a,i=f+c.j.a,s<=i&&t>=f)}function FFn(n){switch(n.g){case 0:return new cmn;case 1:return new umn;default:throw T(new Gn("No implementation is available for the width approximator "+(n.f!=null?n.f:""+n.g)))}}function inn(n,e,t,i){var r;if(r=!1,Si(i)&&(r=!0,j4(e,t,Ae(i))),r||D0(i)&&(r=!0,inn(n,e,t,i)),r||L(i,242)&&(r=!0,nd(e,t,u(i,242))),!r)throw T(new vL(Lcn))}function qye(n,e){var t,i,r;if(t=e.qi(n.a),t&&(r=gf((!t.b&&(t.b=new lo((An(),ar),pc,t)),t.b),vs),r!=null)){for(i=1;i<(Lu(),tbn).length;++i)if(Sn(tbn[i],r))return i}return 0}function Uye(n,e){var t,i,r;if(t=e.qi(n.a),t&&(r=gf((!t.b&&(t.b=new lo((An(),ar),pc,t)),t.b),vs),r!=null)){for(i=1;i<(Lu(),ibn).length;++i)if(Sn(ibn[i],r))return i}return 0}function _Fn(n,e){var t,i,r,c;if(Jn(e),c=n.a.gc(),c<e.gc())for(t=n.a.ec().Kc();t.Ob();)i=t.Pb(),e.Hc(i)&&t.Qb();else for(r=e.Kc();r.Ob();)i=r.Pb(),n.a.Bc(i)!=null;return c!=n.a.gc()}function HFn(n){var e,t;switch(t=Fi(cc(S(C(Ei,1),J,8,0,[n.i.n,n.n,n.a]))),e=n.i.d,n.j.g){case 1:t.b-=e.d;break;case 2:t.a+=e.c;break;case 3:t.b+=e.a;break;case 4:t.a-=e.b}return t}function Gye(n){var e;for(e=(Hp(),u(fe(new ie(ce(ji(n).a.Kc(),new En))),18).c.i);e.k==(Vn(),Ti);)U(e,(W(),jj),(_n(),!0)),e=u(fe(new ie(ce(ji(e).a.Kc(),new En))),18).c.i}function eR(n,e,t,i){var r,c,s,f;for(f=g5(e,i),s=f.Kc();s.Ob();)r=u(s.Pb(),12),n.d[r.p]=n.d[r.p]+n.c[t.p];for(f=g5(t,i),c=f.Kc();c.Ob();)r=u(c.Pb(),12),n.d[r.p]=n.d[r.p]-n.c[e.p]}function rnn(n,e,t){var i,r;for(r=new ne((!n.a&&(n.a=new q(Ye,n,10,11)),n.a));r.e!=r.i.gc();)i=u(ue(r),27),Bo(i,i.i+e,i.j+t);qi((!n.b&&(n.b=new q(Vt,n,12,3)),n.b),new aTn(e,t))}function zye(n,e,t,i){var r,c;for(c=e,r=c.d==null||n.a.Ne(t.d,c.d)>0?1:0;c.a[r]!=t;)c=c.a[r],r=n.a.Ne(t.d,c.d)>0?1:0;c.a[r]=i,i.b=t.b,i.a[0]=t.a[0],i.a[1]=t.a[1],t.a[0]=null,t.a[1]=null}function Xye(n){var e,t,i,r;for(e=new Z,t=F(so,Xh,28,n.a.c.length,16,1),TW(t,t.length),r=new M(n.a);r.a<r.c.c.length;)i=u(E(r),125),t[i.d]||(Fn(e.c,i),sBn(n,i,t));return e}function qFn(n,e){var t,i,r,c,s;for(r=e==1?C_:T_,i=r.a.ec().Kc();i.Ob();)for(t=u(i.Pb(),88),s=u(ot(n.f.c,t),21).Kc();s.Ob();)c=u(s.Pb(),42),du(n.b.b,c.b),du(n.b.a,u(c.b,86).d)}function Vye(n,e){var t;e.Ug("Hierarchical port position processing",1),t=n.b,t.c.length>0&&dUn((Nn(0,t.c.length),u(t.c[0],30)),n),t.c.length>1&&dUn(u(sn(t,t.c.length-1),30),n),e.Vg()}function Wye(n){zu();var e,t;return e=yt(Rl,S(C(oA,1),G,279,0,[Oa])),!(kk(NT(e,n))>1||(t=yt(S9,S(C(oA,1),G,279,0,[C9,K3])),kk(NT(t,n))>1))}function cnn(n,e){var t;t=Dc((B1(),Is),n),L(t,507)?Lr(Is,n,new NTn(this,e)):Lr(Is,n,this),tR(this,e),e==(o4(),Udn)?(this.wb=u(this,2038),u(e,2040)):this.wb=(G1(),Hn)}function Jye(n){var e,t,i;if(n==null)return null;for(e=null,t=0;t<A9.length;++t)try{return wMn(A9[t],n)}catch(r){if(r=Ot(r),L(r,33))i=r,e=i;else throw T(r)}throw T(new eC(e))}function UFn(){UFn=R,EQn=S(C(fn,1),J,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]),MQn=S(C(fn,1),J,2,6,["Jan","Feb","Mar","Apr",c3,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"])}function GFn(n){var e,t,i;e=Sn(typeof e,xK)?null:new Jbn,e&&(a4(),t=(i=900,i>=d1?"error":i>=900?"warn":i>=800?"info":"log"),nOn(t,n.a),n.b&&oen(e,t,n.b,"Exception: ",!0))}function v(n,e){var t,i;return i=(!n.q&&(n.q=new de),ee(n.q,e)),i??(t=e.Sg(),L(t,4)&&(t==null?(!n.q&&(n.q=new de),Kp(n.q,e)):(!n.q&&(n.q=new de),Ve(n.q,e,t))),t)}function Vi(){Vi=R,Vs=new o7("P1_CYCLE_BREAKING",0),Jh=new o7("P2_LAYERING",1),Ac=new o7("P3_NODE_ORDERING",2),Fc=new o7("P4_NODE_PLACEMENT",3),zr=new o7("P5_EDGE_ROUTING",4)}function Qye(n,e){i5();var t;if(n.c==e.c){if(n.b==e.b||rve(n.b,e.b)){if(t=Ile(n.b)?1:-1,n.a&&!e.a)return t;if(!n.a&&e.a)return-t}return jc(n.b.g,e.b.g)}else return bt(n.c,e.c)}function zFn(n,e){var t,i,r;if(onn(n,e))return!0;for(i=new M(e);i.a<i.c.c.length;)if(t=u(E(i),27),r=MFn(t),NS(n,t,r)||VRn(n,t)-n.g<=n.a)return!0;return!1}function Wk(){Wk=R,QO=(ER(),Q1n),Uq=sue,qq=oue,U1n=rue,Hq=uue,q1n=new fb(8),Qce=new Di((He(),M1),q1n),Yce=new Di(qd,8),Zce=W1n,_1n=nue,H1n=eue,Jce=new Di(zj,(_n(),!1))}function mS(){mS=R,ban=new fb(15),Tue=new Di((He(),M1),ban),Cue=new Di(qd,15),wan=new Di(Jj,Y(0)),lan=Lue,Eue=Hd,Mue=Ca,han=new Di(x2,$Vn),aan=Vj,dan=_2,Vq=Oue,jue=Gj}function Fh(n){if((!n.b&&(n.b=new Dn(he,n,4,7)),n.b).i!=1||(!n.c&&(n.c=new Dn(he,n,5,8)),n.c).i!=1)throw T(new Gn(mF));return Gr(u(N((!n.b&&(n.b=new Dn(he,n,4,7)),n.b),0),84))}function XFn(n){if((!n.b&&(n.b=new Dn(he,n,4,7)),n.b).i!=1||(!n.c&&(n.c=new Dn(he,n,5,8)),n.c).i!=1)throw T(new Gn(mF));return Mk(u(N((!n.b&&(n.b=new Dn(he,n,4,7)),n.b),0),84))}function VFn(n){if((!n.b&&(n.b=new Dn(he,n,4,7)),n.b).i!=1||(!n.c&&(n.c=new Dn(he,n,5,8)),n.c).i!=1)throw T(new Gn(mF));return Mk(u(N((!n.c&&(n.c=new Dn(he,n,5,8)),n.c),0),84))}function ra(n){if((!n.b&&(n.b=new Dn(he,n,4,7)),n.b).i!=1||(!n.c&&(n.c=new Dn(he,n,5,8)),n.c).i!=1)throw T(new Gn(mF));return Gr(u(N((!n.c&&(n.c=new Dn(he,n,5,8)),n.c),0),84))}function unn(n,e,t){var i,r,c;if(++n.j,r=n.Ej(),e>=r||e<0)throw T(new Or(vF+e+Cd+r));if(t>=r||t<0)throw T(new Or(kF+t+Cd+r));return e!=t?i=(c=n.Cj(t),n.qj(e,c),c):i=n.xj(t),i}function WFn(n){var e,t,i;if(i=n,n)for(e=0,t=n.Eh();t;t=t.Eh()){if(++e>IK)return WFn(t);if(i=t,t==n)throw T(new Ar("There is a cycle in the containment hierarchy of "+n))}return i}function ca(n){var e,t,i;for(i=new fd(ur,"[","]"),t=n.Kc();t.Ob();)e=t.Pb(),pl(i,x(e)===x(n)?"(this Collection)":e==null?gu:Jr(e));return i.a?i.e.length==0?i.a.a:i.a.a+(""+i.e):i.c}function onn(n,e){var t,i;if(i=!1,e.gc()<2)return!1;for(t=0;t<e.gc();t++)t<e.gc()-1?i=i|NS(n,u(e.Xb(t),27),u(e.Xb(t+1),27)):i=i|NS(n,u(e.Xb(t),27),u(e.Xb(0),27));return i}function JFn(n,e){var t;e!=n.a?(t=null,n.a&&(t=u(n.a,54).Th(n,4,Ef,t)),e&&(t=u(e,54).Rh(n,4,Ef,t)),t=mY(n,e,t),t&&t.oj()):n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,1,e,e))}function snn(n,e){var t;e!=n.e?(n.e&&KNn(FW(n.e),n),e&&(!e.b&&(e.b=new DE(new aL)),VSn(e.b,n)),t=oke(n,e,null),t&&t.oj()):n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,4,e,e))}function Yye(n,e){var t;t=e.o,hl(n.f)?(n.j.a=y.Math.max(n.j.a,t.a),n.j.b+=t.b,n.d.c.length>1&&(n.j.b+=n.e)):(n.j.a+=t.a,n.j.b=y.Math.max(n.j.b,t.b),n.d.c.length>1&&(n.j.a+=n.e))}function ua(){ua=R,une=S(C(lr,1),Tc,64,0,[(en(),Xn),Zn,ae]),cne=S(C(lr,1),Tc,64,0,[Zn,ae,Wn]),one=S(C(lr,1),Tc,64,0,[ae,Wn,Xn]),sne=S(C(lr,1),Tc,64,0,[Wn,Xn,Zn])}function Zye(n,e,t,i){var r,c,s,f,h,l,a;if(s=n.c.d,f=n.d.d,s.j!=f.j)for(a=n.b,r=s.j,h=null;r!=f.j;)h=e==0?BC(r):SY(r),c=oZ(r,a.d[r.g],t),l=oZ(h,a.d[h.g],t),Re(i,tt(c,l)),r=h}function nje(n,e,t,i){var r,c,s,f,h;return s=ZBn(n.a,e,t),f=u(s.a,17).a,c=u(s.b,17).a,i&&(h=u(v(e,(W(),Xu)),10),r=u(v(t,Xu),10),h&&r&&(FLn(n.b,h,r),f+=n.b.i,c+=n.b.e)),f>c}function QFn(n){var e,t,i,r,c,s,f,h,l;for(this.a=kBn(n),this.b=new Z,t=n,i=0,r=t.length;i<r;++i)for(e=t[i],c=new Z,nn(this.b,c),f=e,h=0,l=f.length;h<l;++h)s=f[h],nn(c,new _u(s.j))}function eje(n,e,t){var i,r,c;return c=0,i=t[e],e<t.length-1&&(r=t[e+1],n.b[e]?(c=YNe(n.d,i,r),c+=pD(n.a,i,(en(),Zn)),c+=pD(n.a,r,Wn)):c=N4e(n.a,i,r)),n.c[e]&&(c+=r4e(n.a,i)),c}function tje(n,e,t,i,r){var c,s,f,h;for(h=null,f=new M(i);f.a<f.c.c.length;)if(s=u(E(f),453),s!=t&&qr(s.e,r,0)!=-1){h=s;break}c=JD(r),Zi(c,t.b),Oi(c,h.b),In(n.a,r,new zM(c,e,t.f))}function ije(n){var e,t,i,r;if(vg(u(v(n.b,(cn(),Lo)),88)))return 0;for(e=0,i=new M(n.a);i.a<i.c.c.length;)t=u(E(i),10),t.k==(Vn(),zt)&&(r=t.o.a,e=y.Math.max(e,r));return e}function YFn(n){for(;n.g.c!=0&&n.d.c!=0;)AN(n.g).c>AN(n.d).c?(n.i+=n.g.c,px(n.d)):AN(n.d).c>AN(n.g).c?(n.e+=n.d.c,px(n.g)):(n.i+=sIn(n.g),n.e+=sIn(n.d),px(n.g),px(n.d))}function rje(n,e,t){var i,r,c,s;for(c=e.q,s=e.r,new ed((af(),Ea),e,c,1),new ed(Ea,c,s,1),r=new M(t);r.a<r.c.c.length;)i=u(E(r),118),i!=c&&i!=e&&i!=s&&(zen(n.a,i,e),zen(n.a,i,s))}function ZFn(n,e,t,i){n.a.d=y.Math.min(e,t),n.a.a=y.Math.max(e,i)-n.a.d,e<t?(n.b=.5*(e+t),n.g=HB*n.b+.9*e,n.f=HB*n.b+.9*t):(n.b=.5*(e+i),n.g=HB*n.b+.9*i,n.f=HB*n.b+.9*e)}function cje(n){var e,t,i,r;if(n.b!=0){for(e=new Mt,r=ge(n,0);r.b!=r.d.c;)i=u(be(r),40),Ki(e,R$(i)),t=i.e,t.a=u(v(i,(pt(),$j)),17).a,t.b=u(v(i,xj),17).a;return e}return new Mt}function uje(n){switch(u(v(n,(cn(),ou)),171).g){case 1:U(n,ou,(Yo(),H8));break;case 2:U(n,ou,(Yo(),xw));break;case 3:U(n,ou,(Yo(),_8));break;case 4:U(n,ou,(Yo(),ya))}}function oje(n,e,t){var i;t.Ug("Self-Loop routing",1),i=$5e(e),IM(v(e,(JT(),b9))),qt(_r(ut(ut(rc(new Cn(null,new On(e.b,16)),new m2n),new v2n),new k2n),new y2n),new PMn(n,i)),t.Vg()}function jm(){jm=R,x8=new m6(kh,0),Gsn=new m6(s3,1),Vsn=new m6(f3,2),Xsn=new m6("LEFT_RIGHT_CONSTRAINT_LOCKING",3),zsn=new m6("LEFT_RIGHT_CONNECTION_LOCKING",4),Usn=new m6(WXn,5)}function n_n(n,e,t){var i,r,c,s,f,h,l;f=t.a/2,c=t.b/2,i=y.Math.abs(e.a-n.a),r=y.Math.abs(e.b-n.b),h=1,l=1,i>f&&(h=f/i),r>c&&(l=c/r),s=y.Math.min(h,l),n.a+=s*(e.a-n.a),n.b+=s*(e.b-n.b)}function sje(n,e,t,i,r){var c,s;for(s=!1,c=u(sn(t.b,0),27);RIe(n,e,c,i,r)&&(s=!0,Kke(t,c),t.b.c.length!=0);)c=u(sn(t.b,0),27);return t.b.c.length==0&&Gk(t.j,t),s&&fS(e.q),s}function fje(n,e){Vg();var t,i,r,c;if(e.b<2)return!1;for(c=ge(e,0),t=u(be(c),8),i=t;c.b!=c.d.c;){if(r=u(be(c),8),mR(n,i,r))return!0;i=r}return!!mR(n,i,t)}function fnn(n,e,t,i){var r,c;return t==0?(!n.o&&(n.o=new Ou((Mc(),il),C1,n,0)),UM(n.o,e,i)):(c=u($n((r=u(Un(n,16),29),r||n.ii()),t),69),c.wk().Ak(n,iu(n),t-se(n.ii()),e,i))}function tR(n,e){var t;e!=n.sb?(t=null,n.sb&&(t=u(n.sb,54).Th(n,1,O9,t)),e&&(t=u(e,54).Rh(n,1,O9,t)),t=yY(n,e,t),t&&t.oj()):n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,4,e,e))}function hje(n,e){var t,i,r,c;if(e)r=yl(e,"x"),t=new Gkn(n),_4(t.a,(Jn(r),r)),c=yl(e,"y"),i=new zkn(n),q4(i.a,(Jn(c),c));else throw T(new eh("All edge sections need an end point."))}function lje(n,e){var t,i,r,c;if(e)r=yl(e,"x"),t=new Hkn(n),H4(t.a,(Jn(r),r)),c=yl(e,"y"),i=new qkn(n),U4(i.a,(Jn(c),c));else throw T(new eh("All edge sections need a start point."))}function aje(n,e){var t,i,r,c,s,f,h;for(i=SRn(n),c=0,f=i.length;c<f;++c)GFn(e);for(h=!Uf&&n.e?Uf?null:n.d:null;h;){for(t=SRn(h),r=0,s=t.length;r<s;++r)GFn(e);h=!Uf&&h.e?Uf?null:h.d:null}}function e_n(n,e){var t,i;i=u(v(e,(cn(),Ft)),101),U(e,(W(),sfn),i),t=e.e,t&&(qt(new Cn(null,new On(t.a,16)),new OG(n)),qt(rc(new Cn(null,new On(t.b,16)),new _U),new AG(n)))}function Vn(){Vn=R,zt=new b6("NORMAL",0),Ti=new b6("LONG_EDGE",1),Zt=new b6("EXTERNAL_PORT",2),_c=new b6("NORTH_SOUTH_PORT",3),Sc=new b6("LABEL",4),Gf=new b6("BREAKING_POINT",5)}function dje(n){var e,t,i,r;if(e=!1,kt(n,(W(),B8)))for(t=u(v(n,B8),85),r=new M(n.j);r.a<r.c.c.length;)i=u(E(r),12),jTe(i)&&(e||($Ee(Hi(n)),e=!0),P8e(u(t.xc(i),314)))}function bje(n){var e,t,i,r,c,s,f,h,l;return l=nnn(n),t=n.e,c=t!=null,c&&j4(l,FP,n.e),f=n.k,s=!!f,s&&j4(l,"type",PN(n.k)),i=Z9(n.j),r=!i,r&&(h=new _a,bf(l,pF,h),e=new ayn(h),qi(n.j,e)),l}function wje(n){var e,t,i,r;for(r=z1((Mo(n.gc(),"size"),new fg),123),i=!0,t=Ja(n).Kc();t.Ob();)e=u(t.Pb(),44),i||(r.a+=ur),i=!1,Lc(z1(Lc(r,e.ld()),61),e.md());return(r.a+="}",r).a}function t_n(n,e){var t,i,r;return e&=63,e<22?(t=n.l<<e,i=n.m<<e|n.l>>22-e,r=n.h<<e|n.m>>22-e):e<44?(t=0,i=n.l<<e-22,r=n.m<<e-22|n.l>>44-e):(t=0,i=0,r=n.l<<e-44),Yc(t&ro,i&ro,r&Ol)}function sw(n){if(dun==null&&(dun=new RegExp("^\\s*[+-]?(NaN|Infinity|((\\d+\\.?\\d*)|(\\.\\d+))([eE][+-]?\\d+)?[dDfF]?)\\s*$")),!dun.test(n))throw T(new th(Vb+n+'"'));return parseFloat(n)}function i_n(n,e){var t,i,r,c,s;for(r=e==1?C_:T_,i=r.a.ec().Kc();i.Ob();)for(t=u(i.Pb(),88),s=u(ot(n.f.c,t),21).Kc();s.Ob();)c=u(s.Pb(),42),nn(n.b.b,u(c.b,86)),nn(n.b.a,u(c.b,86).d)}function gje(n,e){var t,i,r,c;for(c=e.b.j,n.a=F(ye,_e,28,c.c.length,15,1),r=0,i=0;i<c.c.length;i++)t=(Nn(i,c.c.length),u(c.c[i],12)),t.e.c.length==0&&t.g.c.length==0?r+=1:r+=3,n.a[i]=r}function vS(){vS=R,Z_=new g6("ALWAYS_UP",0),Y_=new g6("ALWAYS_DOWN",1),eH=new g6("DIRECTION_UP",2),nH=new g6("DIRECTION_DOWN",3),tH=new g6("SMART_UP",4),JI=new g6("SMART_DOWN",5)}function pje(n,e){if(n<0||e<0)throw T(new Gn("k and n must be positive"));if(e>n)throw T(new Gn("k must be smaller than n"));return e==0||e==n?1:n==0?0:xZ(n)/(xZ(e)*xZ(n-e))}function hnn(n,e){var t,i,r,c;for(t=new CX(n);t.g==null&&!t.c?rJ(t):t.g==null||t.i!=0&&u(t.g[t.i-1],51).Ob();)if(c=u(MS(t),58),L(c,167))for(i=u(c,167),r=0;r<e.length;r++)e[r].Kg(i)}function iR(n){var e;return n.Db&64?ox(n):(e=new ls(ox(n)),e.a+=" (height: ",hg(e,n.f),e.a+=", width: ",hg(e,n.g),e.a+=", x: ",hg(e,n.i),e.a+=", y: ",hg(e,n.j),e.a+=")",e.a)}function mje(n){var e,t,i,r,c,s,f;for(e=new Ql,i=n,r=0,c=i.length;r<c;++r)if(t=i[r],s=Pe(t.ld()),f=s1(e,s,Pe(t.md())),f!=null)throw T(new Gn("duplicate key: "+s));this.b=(Ln(),new eL(e))}function vje(n){var e,t,i,r,c;if(n==null)return gu;for(c=new fd(ur,"[","]"),t=n,i=0,r=t.length;i<r;++i)e=t[i],pl(c,String.fromCharCode(e));return c.a?c.e.length==0?c.a.a:c.a.a+(""+c.e):c.c}function lnn(){lnn=R,don=(uC(),vI),BYn=new Tn(cP,don),Y(1),KYn=new Tn(Xtn,Y(300)),Y(0),HYn=new Tn(Vtn,Y(0)),qYn=new Tn(ZK,vh),FYn=new Tn(nB,5),UYn=vI,_Yn=m_}function kje(n,e){var t;if(e!=null&&!n.c.Hk().fk(e))throw t=L(e,58)?u(e,58).Dh().zb:Xa(wo(e)),T(new i4(ba+n.c.xe()+"'s type '"+n.c.Hk().xe()+"' does not permit a value of type '"+t+"'"))}function yje(n,e,t){var i,r;for(r=new xi(n.b,0);r.b<r.d.gc();)i=(oe(r.b<r.d.gc()),u(r.d.Xb(r.c=r.b++),72)),x(v(i,(W(),ufn)))===x(e)&&(pnn(i.n,Hi(n.c.i),t),bo(r),nn(e.b,i))}function r_n(n){var e,t;return t=y.Math.sqrt((n.k==null&&(n.k=xQ(n,new Hpn)),$(n.k)/(n.b*(n.g==null&&(n.g=Exn(n,new VU)),$(n.g))))),e=Se(vc(y.Math.round(t))),e=y.Math.min(e,n.f),e}function jje(){var n,e,t;for(e=0,n=0;n<1;n++){if(t=Fnn((zn(n,1),"X".charCodeAt(n))),t==0)throw T(new Ne((zn(n,2),"Unknown Option: "+"X".substr(n))));e|=t}return e}function Ic(){Au(),mV.call(this),this.j=(en(),sc),this.a=new Ni,new sL,this.f=(Mo(2,mw),new Gc(2)),this.e=(Mo(4,mw),new Gc(4)),this.g=(Mo(4,mw),new Gc(4)),this.b=new OMn(this.e,this.g)}function Eje(n,e){var t,i;return!(on(un(v(e,(W(),zf))))||(i=e.c.i,n==(Yo(),_8)&&i.k==(Vn(),Sc))||(t=u(v(i,(cn(),ou)),171),t==ya))}function Mje(n,e){var t,i;return!(on(un(v(e,(W(),zf))))||(i=e.d.i,n==(Yo(),H8)&&i.k==(Vn(),Sc))||(t=u(v(i,(cn(),ou)),171),t==xw))}function Tje(n,e){var t,i,r,c,s,f,h;for(s=n.d,h=n.o,f=new Ho(-s.b,-s.d,s.b+h.a+s.c,s.d+h.b+s.a),i=e,r=0,c=i.length;r<c;++r)t=i[r],t&&L5(f,t.i);s.b=-f.c,s.d=-f.d,s.c=f.b-s.b-h.a,s.a=f.a-s.d-h.b}function Cje(n,e){if(e.a)switch(u(v(e.b,(W(),sfn)),101).g){case 0:case 1:Uke(e);case 2:qt(new Cn(null,new On(e.d,16)),new UU),PMe(n.a,e)}else qt(new Cn(null,new On(e.d,16)),new UU)}function Jk(){Jk=R,R1n=new w7("CENTER_DISTANCE",0),Fq=new w7("CIRCLE_UNDERLAP",1),B1n=new w7("RECTANGLE_UNDERLAP",2),_q=new w7("INVERTED_OVERLAP",3),K1n=new w7("MINIMUM_ROOT_DISTANCE",4)}function Sje(n){ben();var e,t,i,r,c;if(n==null)return null;for(i=n.length,r=i*2,e=F(fs,gh,28,r,15,1),t=0;t<i;t++)c=n[t],c<0&&(c+=256),e[t*2]=PA[c>>4],e[t*2+1]=PA[c&15];return ws(e,0,e.length)}function Pje(n){yT();var e,t,i;switch(i=n.c.length,i){case 0:return rQn;case 1:return e=u(K_n(new M(n)),44),y0e(e.ld(),e.md());default:return t=u(Rf(n,F(Id,WS,44,n.c.length,0,1)),173),new fz(t)}}function Ije(n){var e,t,i,r,c,s;for(e=new Mg,t=new Mg,W1(e,n),W1(t,n);t.b!=t.c;)for(r=u(Pp(t),36),s=new M(r.a);s.a<s.c.c.length;)c=u(E(s),10),c.e&&(i=c.e,W1(e,i),W1(t,i));return e}function h1(n,e){switch(e.g){case 1:return Mp(n.j,(Au(),Kon));case 2:return Mp(n.j,(Au(),xon));case 3:return Mp(n.j,(Au(),Fon));case 4:return Mp(n.j,(Au(),_on));default:return Ln(),Ln(),sr}}function Oje(n,e){var t,i,r;t=b0e(e,n.e),i=u(ee(n.g.f,t),17).a,r=n.a.c.length-1,n.a.c.length!=0&&u(sn(n.a,r),294).c==i?(++u(sn(n.a,r),294).a,++u(sn(n.a,r),294).b):nn(n.a,new hSn(i))}function Aje(n,e,t){var i,r;return i=XSe(n,e,t),i!=0?i:kt(e,(W(),dt))&&kt(t,dt)?(r=jc(u(v(e,dt),17).a,u(v(t,dt),17).a),r<0?hy(n,e,t):r>0&&hy(n,t,e),r):pMe(n,e,t)}function oa(){oa=R,fce=(He(),D3),hce=qd,cce=Hd,uce=_2,oce=Ca,rce=F2,Jln=Wj,sce=Ww,vq=(Men(),Xre),kq=Vre,Yln=Yre,yq=ece,Zln=Zre,n1n=nce,Qln=Wre,_O=Jre,HO=Qre,Rj=tce,e1n=ice,Wln=zre}function c_n(n,e){var t,i,r,c,s;if(n.e<=e||Z2e(n,n.g,e))return n.g;for(c=n.r,i=n.g,s=n.r,r=(c-i)/2+i;i+1<c;)t=G5(n,r,!1),t.b<=r&&t.a<=e?(s=r,c=r):i=r,r=(c-i)/2+i;return s}function Lje(n,e,t){var i;i=Cqn(n,e,!0),RFn(t,"Recursive Graph Layout",i),hnn(e,S(C(can,1),Kn,536,0,[new j8n])),Nf(e,(He(),q2))||hnn(e,S(C(can,1),Kn,536,0,[new Cmn])),ltn(n,e,null,t),u_n(t)}function u_n(n){var e;if(n.p==null)throw T(new Ar("The task has not begun yet."));n.b||(n.k&&(e=(fl(),er(vc(Date.now()),d1)),n.q=id(bs(e,n.o))*1e-9),n.c<n.r&&EQ(n,n.r-n.c),n.b=!0)}function Qk(n){var e,t,i;for(i=new Tu,Re(i,new V(n.j,n.k)),t=new ne((!n.a&&(n.a=new ti(xo,n,5)),n.a));t.e!=t.i.gc();)e=u(ue(t),377),Re(i,new V(e.a,e.b));return Re(i,new V(n.b,n.c)),i}function Nje(n,e,t,i,r){var c,s,f,h,l,a;if(r)for(h=r.a.length,c=new Qa(h),a=(c.b-c.a)*c.c<0?(F1(),xa):new q1(c);a.Ob();)l=u(a.Pb(),17),f=N4(r,l.a),s=new AOn(n,e,t,i),eIe(s.a,s.b,s.c,s.d,f)}function ann(n,e){var t;if(x(n)===x(e))return!0;if(L(e,21)){t=u(e,21);try{return n.gc()==t.gc()&&n.Ic(t)}catch(i){if(i=Ot(i),L(i,169)||L(i,212))return!1;throw T(i)}}return!1}function rR(n,e,t,i,r,c){switch(this.c=n,e.g){case 2:if(n.a.Ne(r,t)<0)throw T(new Gn(Ttn+r+Wzn+t));break;case 1:n.a.Ne(r,r);break;case 3:n.a.Ne(t,t)}this.f=e,this.b=t,this.a=i,this.e=r,this.d=c}function dnn(n,e){var t;nn(n.d,e),t=e.Mf(),n.c?(n.e.a=y.Math.max(n.e.a,t.a),n.e.b+=t.b,n.d.c.length>1&&(n.e.b+=n.a)):(n.e.a+=t.a,n.e.b=y.Math.max(n.e.b,t.b),n.d.c.length>1&&(n.e.a+=n.a))}function Dje(n){var e,t,i,r;switch(r=n.i,e=r.b,i=r.j,t=r.g,r.a.g){case 0:t.a=(n.g.b.o.a-i.a)/2;break;case 1:t.a=e.d.n.a+e.d.a.a;break;case 2:t.a=e.d.n.a+e.d.a.a-i.a;break;case 3:t.b=e.d.n.b+e.d.a.b}}function $je(n,e,t){var i,r,c;for(r=new ie(ce(Ml(t).a.Kc(),new En));pe(r);)i=u(fe(r),18),!fr(i)&&!(!fr(i)&&i.c.i.c==i.d.i.c)&&(c=WHn(n,i,t,new Zyn),c.c.length>1&&Fn(e.c,c))}function o_n(n,e,t,i,r){if(i<e||r<t)throw T(new Gn("The highx must be bigger then lowx and the highy must be bigger then lowy"));return n.a<e?n.a=e:n.a>i&&(n.a=i),n.b<t?n.b=t:n.b>r&&(n.b=r),n}function xje(n){if(L(n,143))return dCe(u(n,143));if(L(n,233))return i8e(u(n,233));if(L(n,23))return bje(u(n,23));throw T(new Gn(Ncn+ca(new Fu(S(C(ki,1),Kn,1,5,[n])))))}function Rje(n,e,t,i,r){var c,s,f;for(c=!0,s=0;s<i;s++)c=c&t[s]==0;if(r==0)Oc(t,i,n,0,e),s=e;else{for(f=32-r,c=c&t[s]<<f==0,s=0;s<e-1;s++)n[s]=t[s+i]>>>r|t[s+i+1]<<f;n[s]=t[s+i]>>>r,++s}return c}function bnn(n,e,t,i){var r,c,s;if(e.k==(Vn(),Ti)){for(c=new ie(ce(ji(e).a.Kc(),new En));pe(c);)if(r=u(fe(c),18),s=r.c.i.k,s==Ti&&n.c.a[r.c.i.c.p]==i&&n.c.a[e.c.p]==t)return!0}return!1}function Kje(n,e){var t,i,r,c;return e&=63,t=n.h&Ol,e<22?(c=t>>>e,r=n.m>>e|t<<22-e,i=n.l>>e|n.m<<22-e):e<44?(c=0,r=t>>>e-22,i=n.m>>e-22|n.h<<44-e):(c=0,r=0,i=t>>>e-44),Yc(i&ro,r&ro,c&Ol)}function s_n(n,e,t,i){var r;this.b=i,this.e=n==(Ab(),Z8),r=e[t],this.d=Wa(so,[J,Xh],[183,28],16,[r.length,r.length],2),this.a=Wa(ye,[J,_e],[53,28],15,[r.length,r.length],2),this.c=new WZ(e,t)}function Bje(n){var e,t,i;for(n.k=new oJ((en(),S(C(lr,1),Tc,64,0,[sc,Xn,Zn,ae,Wn])).length,n.j.c.length),i=new M(n.j);i.a<i.c.c.length;)t=u(E(i),113),e=t.d.j,In(n.k,e,t);n.e=ZTe(Cp(n.k))}function f_n(n,e){var t,i,r;fi(n.d,e),t=new _3n,Ve(n.c,e,t),t.f=tx(e.c),t.a=tx(e.d),t.d=(K5(),r=e.c.i.k,r==(Vn(),zt)||r==Gf),t.e=(i=e.d.i.k,i==zt||i==Gf),t.b=e.c.j==(en(),Wn),t.c=e.d.j==Zn}function Fje(n){var e,t,i,r,c;for(c=et,r=et,i=new M(xg(n));i.a<i.c.c.length;)t=u(E(i),218),e=t.e.e-t.d.e,t.e==n&&e<r?r=e:e<c&&(c=e);return r==et&&(r=-1),c==et&&(c=-1),new bi(Y(r),Y(c))}function _je(n,e){var t,i,r;return r=i2,i=(C5(),fj),r=y.Math.abs(n.b),t=y.Math.abs(e.f-n.b),t<r&&(r=t,i=gI),t=y.Math.abs(n.a),t<r&&(r=t,i=hj),t=y.Math.abs(e.g-n.a),t<r&&(r=t,i=wI),i}function Hje(n,e){var t,i,r,c;for(t=e.a.o.a,c=new Jl(Hi(e.a).b,e.c,e.f+1),r=new zv(c);r.b<r.d.gc();)if(i=(oe(r.b<r.d.gc()),u(r.d.Xb(r.c=r.b++),30)),i.c.a>=t)return Em(n,e,i.p),!0;return!1}function Ug(n,e,t,i){var r,c,s,f,h,l;for(s=t.length,c=0,r=-1,l=e$n((zn(e,n.length+1),n.substr(e)),(xN(),Aun)),f=0;f<s;++f)h=t[f].length,h>c&&awe(l,e$n(t[f],Aun))&&(r=f,c=h);return r>=0&&(i[0]=e+c),r}function h_n(n){var e;return n.Db&64?iR(n):(e=new mo(jcn),!n.a||Be(Be((e.a+=' "',e),n.a),'"'),Be(tb(Be(tb(Be(tb(Be(tb((e.a+=" (",e),n.i),","),n.j)," | "),n.g),","),n.f),")"),e.a)}function l_n(n,e,t){var i,r,c,s,f;for(f=ru(n.e.Dh(),e),r=u(n.g,124),i=0,s=0;s<n.i;++s)if(c=r[s],f.am(c.Lk())){if(i==t)return dw(n,s),dr(),u(e,69).xk()?c:c.md();++i}throw T(new Or(p8+t+Cd+i))}function a_n(n){var e,t,i;if(e=n.c,e==2||e==7||e==1)return nt(),nt(),F9;for(i=otn(n),t=null;(e=n.c)!=2&&e!=7&&e!=1;)t||(t=(nt(),nt(),new P6(1)),pd(t,i),i=t),pd(t,otn(n));return i}function qje(n,e,t){return n<0||n>t?Mnn(n,t,"start index"):e<0||e>t?Mnn(e,t,"end index"):B5("end index (%s) must not be less than start index (%s)",S(C(ki,1),Kn,1,5,[Y(e),Y(n)]))}function d_n(n,e){var t,i,r,c;for(i=0,r=n.length;i<r;i++){c=n[i];try{c[1]?c[0].Um()&&(e=V0e(e,c)):c[0].Um()}catch(s){if(s=Ot(s),L(s,82))t=s,HE(),xge(L(t,486)?u(t,486).ke():t);else throw T(s)}}return e}function Em(n,e,t){var i,r,c;for(t!=e.c+e.b.gc()&&fOe(e.a,Tve(e,t-e.c)),c=e.a.c.p,n.a[c]=y.Math.max(n.a[c],e.a.o.a),r=u(v(e.a,(W(),F8)),15).Kc();r.Ob();)i=u(r.Pb(),72),U(i,$_,(_n(),!0))}function Uje(n,e){var t,i,r;r=yCe(e),U(e,(W(),aH),r),r&&(i=et,wr(n.f,r)&&(i=u(Fr(wr(n.f,r)),17).a),t=u(sn(e.g,0),18),on(un(v(t,zf)))||Ve(n,r,Y(y.Math.min(u(v(t,dt),17).a,i))))}function b_n(n,e,t){var i,r,c,s,f;for(e.p=-1,f=Rb(e,(gr(),Jc)).Kc();f.Ob();)for(s=u(f.Pb(),12),r=new M(s.g);r.a<r.c.c.length;)i=u(E(r),18),c=i.d.i,e!=c&&(c.p<0?t.Fc(i):c.p>0&&b_n(n,c,t));e.p=0}function ln(n){var e;this.c=new Mt,this.f=n.e,this.e=n.d,this.i=n.g,this.d=n.c,this.b=n.b,this.k=n.j,this.a=n.a,n.i?this.j=n.i:this.j=(e=u(of(Zh),9),new _o(e,u(xs(e,e.length),9),0)),this.g=n.f}function Gje(n){var e,t,i,r;for(e=z1(Be(new mo("Predicates."),"and"),40),t=!0,r=new zv(n);r.b<r.d.gc();)i=(oe(r.b<r.d.gc()),r.d.Xb(r.c=r.b++)),t||(e.a+=","),e.a+=""+i,t=!1;return(e.a+=")",e).a}function w_n(n,e,t){var i,r,c;if(!(t<=e+2))for(r=(t-e)/2|0,i=0;i<r;++i)c=(Nn(e+i,n.c.length),u(n.c[e+i],12)),Go(n,e+i,(Nn(t-i-1,n.c.length),u(n.c[t-i-1],12))),Nn(t-i-1,n.c.length),n.c[t-i-1]=c}function zje(n,e,t){var i,r,c,s,f,h,l,a;c=n.d.p,f=c.e,h=c.r,n.g=new L7(h),s=n.d.o.c.p,i=s>0?f[s-1]:F(Qh,b1,10,0,0,1),r=f[s],l=s<f.length-1?f[s+1]:F(Qh,b1,10,0,0,1),a=e==t-1,a?LD(n.g,r,l):LD(n.g,i,r)}function g_n(n){var e;this.j=new Z,this.f=new ni,this.b=(e=u(of(lr),9),new _o(e,u(xs(e,e.length),9),0)),this.d=F(ye,_e,28,(en(),S(C(lr,1),Tc,64,0,[sc,Xn,Zn,ae,Wn])).length,15,1),this.g=n}function p_n(n,e){var t,i,r;if(e.c.length!=0){for(t=zFn(n,e),r=!1;!t;)ES(n,e,!0),r=!0,t=zFn(n,e);r&&ES(n,e,!1),i=K$(e),n.b&&n.b.Gg(i),n.a=VRn(n,(Nn(0,e.c.length),u(e.c[0],27))),p_n(n,i)}}function cR(n,e){var t,i,r;if(i=$n(n.Dh(),e),t=e-n.ji(),t<0)if(i)if(i.rk())r=n.Ih(i),r>=0?n.ki(r):Pnn(n,i);else throw T(new Gn(ba+i.xe()+b8));else throw T(new Gn(aWn+e+dWn));else Wo(n,t,i)}function wnn(n){var e,t;if(t=null,e=!1,L(n,211)&&(e=!0,t=u(n,211).a),e||L(n,263)&&(e=!0,t=""+u(n,263).a),e||L(n,493)&&(e=!0,t=""+u(n,493).a),!e)throw T(new vL(Lcn));return t}function gnn(n,e,t){var i,r,c,s,f,h;for(h=ru(n.e.Dh(),e),i=0,f=n.i,r=u(n.g,124),s=0;s<n.i;++s)if(c=r[s],h.am(c.Lk())){if(t==i)return s;++i,f=s+1}if(t==i)return f;throw T(new Or(p8+t+Cd+i))}function Xje(n,e){var t,i,r,c;if(n.f.c.length==0)return null;for(c=new mp,i=new M(n.f);i.a<i.c.c.length;)t=u(E(i),72),r=t.o,c.b=y.Math.max(c.b,r.a),c.a+=r.b;return c.a+=(n.f.c.length-1)*e,c}function Vje(n){var e,t,i,r;for(t=new Mt,Ki(t,n.o),i=new YG;t.b!=0;)e=u(t.b==0?null:(oe(t.b!=0),Xo(t,t.a.a)),515),r=ezn(n,e,!0),r&&nn(i.a,e);for(;i.a.c.length!=0;)e=u($Rn(i),515),ezn(n,e,!1)}function l1(){l1=R,uan=new wp(n8,0),yi=new wp("BOOLEAN",1),Zr=new wp("INT",2),$2=new wp("STRING",3),Qi=new wp("DOUBLE",4),It=new wp("ENUM",5),N3=new wp("ENUMSET",6),Vf=new wp("OBJECT",7)}function L5(n,e){var t,i,r,c,s;i=y.Math.min(n.c,e.c),c=y.Math.min(n.d,e.d),r=y.Math.max(n.c+n.b,e.c+e.b),s=y.Math.max(n.d+n.a,e.d+e.a),r<i&&(t=i,i=r,r=t),s<c&&(t=c,c=s,s=t),LPn(n,i,c,r-i,s-c)}function m_n(n,e){var t,i;if(n.f){for(;e.Ob();)if(t=u(e.Pb(),76),i=t.Lk(),L(i,102)&&u(i,19).Bb&kc&&(!n.e||i.pk()!=Hv||i.Lj()!=0)&&t.md()!=null)return e.Ub(),!0;return!1}else return e.Ob()}function v_n(n,e){var t,i;if(n.f){for(;e.Sb();)if(t=u(e.Ub(),76),i=t.Lk(),L(i,102)&&u(i,19).Bb&kc&&(!n.e||i.pk()!=Hv||i.Lj()!=0)&&t.md()!=null)return e.Pb(),!0;return!1}else return e.Sb()}function Lu(){Lu=R,ibn=S(C(fn,1),J,2,6,[Xcn,Qy,YP,IJn,ZP,PF,FP]),tbn=S(C(fn,1),J,2,6,[Xcn,"empty",Qy,Jy,"elementOnly"]),rbn=S(C(fn,1),J,2,6,[Xcn,"preserve","replace",vf]),zi=new DPn}function pnn(n,e,t){var i,r,c;if(e!=t){i=e;do tt(n,i.c),r=i.e,r&&(c=i.d,ab(n,c.b,c.d),tt(n,r.n),i=Hi(r));while(r);i=t;do mi(n,i.c),r=i.e,r&&(c=i.d,N6(n,c.b,c.d),mi(n,r.n),i=Hi(r));while(r)}}function uR(n,e,t,i){var r,c,s,f,h;if(i.f.c+i.i.c==0)for(s=n.a[n.c],f=0,h=s.length;f<h;++f)c=s[f],Ve(i,c,new Axn(n,c,t));return r=u(Fr(wr(i.f,e)),677),r.b=0,r.c=r.f,r.c==0||r9n(u(sn(r.a,r.b),294)),r}function Yp(){Yp=R,bv=new w6("MEDIAN_LAYER",0),D8=new w6("TAIL_LAYER",1),dv=new w6("HEAD_LAYER",2),Dw=new w6("SPACE_EFFICIENT_LAYER",3),p2=new w6("WIDEST_LAYER",4),g2=new w6("CENTER_LAYER",5)}function mnn(n){var e,t,i,r;for(n.e=0,r=ge(n.f,0);r.b!=r.d.c;)i=u(be(r),10),i.p>=n.d.b.c.length&&(e=new Nc(n.d),e.p=i.p-1,nn(n.d.b,e),t=new Nc(n.d),t.p=i.p,nn(n.d.b,t)),$i(i,u(sn(n.d.b,i.p),30))}function vnn(n,e,t){var i,r,c;if(!n.b[e.g]){for(n.b[e.g]=!0,i=t,!i&&(i=new tk),Re(i.b,e),c=n.a[e.g].Kc();c.Ob();)r=u(c.Pb(),65),r.b!=e&&vnn(n,r.b,i),r.c!=e&&vnn(n,r.c,i),Re(i.a,r);return i}return null}function Wje(n){switch(n.g){case 0:case 1:case 2:return en(),Xn;case 3:case 4:case 5:return en(),ae;case 6:case 7:case 8:return en(),Wn;case 9:case 10:case 11:return en(),Zn;default:return en(),sc}}function Jje(n,e){var t;return n.c.length==0?!1:(t=LKn((Nn(0,n.c.length),u(n.c[0],18)).c.i),ko(),t==(cw(),I2)||t==P2?!0:Ag(_r(new Cn(null,new On(n,16)),new r3n),new Y7n(e)))}function oR(n,e){if(L(e,207))return Ule(n,u(e,27));if(L(e,193))return Gle(n,u(e,123));if(L(e,452))return qle(n,u(e,166));throw T(new Gn(Ncn+ca(new Fu(S(C(ki,1),Kn,1,5,[e])))))}function k_n(n,e,t){var i,r;if(this.f=n,i=u(ee(n.b,e),260),r=i?i.a:0,RJ(t,r),t>=(r/2|0))for(this.e=i?i.c:null,this.d=r;t++<r;)t$n(this);else for(this.c=i?i.b:null;t-- >0;)oQ(this);this.b=e,this.a=null}function Qje(n,e){var t,i;e.a?ACe(n,e):(t=u(OL(n.b,e.b),60),t&&t==n.a[e.b.f]&&t.a&&t.a!=e.b.a&&t.c.Fc(e.b),i=u(IL(n.b,e.b),60),i&&n.a[i.f]==e.b&&i.a&&i.a!=e.b.a&&e.b.c.Fc(i),EN(n.b,e.b))}function y_n(n,e){var t,i;if(t=u(Mr(n.b,e),127),u(u(ot(n.r,e),21),87).dc()){t.n.b=0,t.n.c=0;return}t.n.b=n.C.b,t.n.c=n.C.c,n.A.Hc((go(),Gd))&&Xqn(n,e),i=T9e(n,e),kR(n,e)==(Kg(),Pa)&&(i+=2*n.w),t.a.a=i}function j_n(n,e){var t,i;if(t=u(Mr(n.b,e),127),u(u(ot(n.r,e),21),87).dc()){t.n.d=0,t.n.a=0;return}t.n.d=n.C.d,t.n.a=n.C.a,n.A.Hc((go(),Gd))&&Vqn(n,e),i=M9e(n,e),kR(n,e)==(Kg(),Pa)&&(i+=2*n.w),t.a.b=i}function Yje(n,e){var t,i,r,c;for(c=new Z,i=new M(e);i.a<i.c.c.length;)t=u(E(i),68),nn(c,new Gz(t,!0)),nn(c,new Gz(t,!1));r=new JOn(n),r.a.a.$b(),lLn(c,n.b,new Fu(S(C(RQn,1),Kn,693,0,[r])))}function E_n(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k,j;return h=n.a,p=n.b,l=e.a,m=e.b,a=t.a,k=t.b,d=i.a,j=i.b,c=h*m-p*l,s=a*j-k*d,r=(h-l)*(k-j)-(p-m)*(a-d),f=(c*(a-d)-s*(h-l))/r,g=(c*(k-j)-s*(p-m))/r,new V(f,g)}function Zje(n,e){var t,i,r;e.Ug("End label pre-processing",1),t=$(B(v(n,(cn(),C2)))),i=$(B(v(n,qw))),r=vg(u(v(n,Lo),88)),qt(rc(new Cn(null,new On(n.b,16)),new Kwn),new pPn(t,i,r)),e.Vg()}function knn(n,e){var t,i,r;if(!n.d[e.p]){for(n.d[e.p]=!0,n.a[e.p]=!0,i=new ie(ce(Qt(e).a.Kc(),new En));pe(i);)t=u(fe(i),18),!fr(t)&&(r=t.d.i,n.a[r.p]?nn(n.b,t):knn(n,r));n.a[e.p]=!1}}function M_n(n,e,t){var i;switch(i=0,u(v(e,(cn(),ou)),171).g){case 2:i=2*-t+n.a,++n.a;break;case 1:i=-t;break;case 3:i=t;break;case 4:i=2*t+n.b,++n.b}return kt(e,(W(),dt))&&(i+=u(v(e,dt),17).a),i}function T_n(n,e,t){var i,r,c;for(t.zc(e,n),nn(n.n,e),c=n.p.zg(e),e.j==n.p.Ag()?kKn(n.e,c):kKn(n.j,c),mT(n),r=$h(Eo(S(C(Ao,1),Kn,20,0,[new e4(e),new ip(e)])));pe(r);)i=u(fe(r),12),t._b(i)||T_n(n,i,t)}function nEe(n,e,t){var i,r,c;for(t.Ug("Processor set neighbors",1),n.a=e.b.b==0?1:e.b.b,r=null,i=ge(e.b,0);!r&&i.b!=i.d.c;)c=u(be(i),40),on(un(v(c,(pt(),Ta))))&&(r=c);r&&Iqn(n,new sl(r),t),t.Vg()}function ynn(n){var e,t,i;return t=u(z(n,(He(),Hd)),21),t.Hc((go(),Qw))?(i=u(z(n,Ca),21),e=new rr(u(z(n,_2),8)),i.Hc((io(),_v))&&(e.a<=0&&(e.a=20),e.b<=0&&(e.b=20)),e):new Ni}function jnn(n){var e,t,i;if(!n.b){for(i=new Evn,t=new yp(U5(n));t.e!=t.i.gc();)e=u(Tx(t),19),e.Bb&kc&&ve(i,e);ew(i),n.b=new pg((u(N(H((G1(),Hn).o),8),19),i.i),i.g),Zu(n).b&=-9}return n.b}function fw(n){var e,t,i;for(t=n.length,i=0;i<t&&(zn(i,n.length),n.charCodeAt(i)<=32);)++i;for(e=t;e>i&&(zn(e-1,n.length),n.charCodeAt(e-1)<=32);)--e;return i>0||e<t?(Ri(i,e,n.length),n.substr(i,e-i)):n}function eEe(n,e){var t,i,r,c,s,f,h,l;h=u(S5(Cp(e.k),F(lr,Tc,64,2,0,1)),126),l=e.g,t=DLn(e,h[0]),r=NLn(e,h[1]),i=Fx(n,l,t,r),c=DLn(e,h[1]),f=NLn(e,h[0]),s=Fx(n,l,c,f),i<=s?(e.a=t,e.c=r):(e.a=c,e.c=f)}function Yk(n){var e;Ln();var t,i,r,c,s,f;if(L(n,59))for(c=0,r=n.gc()-1;c<r;++c,--r)e=n.Xb(c),n.hd(c,n.Xb(r)),n.hd(r,e);else for(t=n.ed(),s=n.fd(n.gc());t.Tb()<s.Vb();)i=t.Pb(),f=s.Ub(),t.Wb(f),s.Wb(i)}function kS(n,e){var t,i,r,c,s,f;for(f=0,c=new Mg,W1(c,e);c.b!=c.c;)for(s=u(Pp(c),219),f+=VBn(s.d,s.e),r=new M(s.b);r.a<r.c.c.length;)i=u(E(r),36),t=u(sn(n.b,i.p),219),t.s||(f+=kS(n,t));return f}function C_n(n,e,t,i,r){var c,s,f,h,l;if(e)for(f=e.Kc();f.Ob();)for(s=u(f.Pb(),10),l=men(s,(gr(),Jc),t).Kc();l.Ob();)h=u(l.Pb(),12),c=u(Fr(wr(r.f,h)),118),c||(c=new yk(n.d),Fn(i.c,c),T_n(c,h,r))}function S_n(n,e,t){var i,r;zxn(this),e==(Tb(),Ma)?fi(this.r,n.c):fi(this.w,n.c),t==Ma?fi(this.r,n.d):fi(this.w,n.d),f_n(this,n),i=tx(n.c),r=tx(n.d),ZFn(this,i,r,r),this.o=(K5(),y.Math.abs(i-r)<.2)}function P_n(n,e,t){var i,r,c,s,f,h;if(f=u(Un(n.a,8),2035),f!=null)for(r=f,c=0,s=r.length;c<s;++c)null.Um();i=t,n.a.Db&1||(h=new tOn(n,t,e),i.dj(h)),L(i,686)?u(i,686).fj(n.a):i.cj()==n.a&&i.ej(null)}function tEe(){var n;return kse?u(Tm((B1(),Is),Pd),2044):(LLe(),n=u(L(Dc((B1(),Is),Pd),594)?Dc(Is,Pd):new dOn,594),kse=!0,mNe(n),ZNe(n),Ve(($z(),qdn),n,new I6n),Hx(n),Lr(Is,Pd,n),n)}function iEe(n,e,t,i){var r;return r=Ug(n,t,S(C(fn,1),J,2,6,[vK,kK,yK,jK,EK,MK,TK]),e),r<0&&(r=Ug(n,t,S(C(fn,1),J,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]),e)),r<0?!1:(i.d=r,!0)}function rEe(n,e,t,i){var r;return r=Ug(n,t,S(C(fn,1),J,2,6,[vK,kK,yK,jK,EK,MK,TK]),e),r<0&&(r=Ug(n,t,S(C(fn,1),J,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]),e)),r<0?!1:(i.d=r,!0)}function Vc(n,e,t){var i,r,c,s;if(s=n.b.Ce(e),r=(i=n.a.get(s),i??F(ki,Kn,1,0,5,1)),r.length==0)n.a.set(s,r);else if(c=KRn(n,e,r),c)return c.nd(t);return $t(r,r.length,new oM(e,t)),++n.c,++n.b.g,null}function cEe(n){var e,t,i;for(pTe(n),i=new Z,t=new M(n.a.a.b);t.a<t.c.c.length;)e=u(E(t),86),nn(i,new Vz(e,!0)),nn(i,new Vz(e,!1));z9e(n.c),Q7(i,n.b,new Fu(S(C(aj,1),Kn,382,0,[n.c]))),OMe(n)}function Zk(n,e){var t,i,r;for(r=new Z,i=new M(n.c.a.b);i.a<i.c.c.length;)t=u(E(i),60),e.Lb(t)&&(nn(r,new _z(t,!0)),nn(r,new _z(t,!1)));G9e(n.e),lLn(r,n.d,new Fu(S(C(RQn,1),Kn,693,0,[n.e])))}function uEe(n){var e,t,i,r;for(t=new de,r=new M(n.d);r.a<r.c.c.length;)i=u(E(r),187),e=u(i.of((W(),T3)),18),wr(t.f,e)||Ve(t,e,new qOn(e)),nn(u(Fr(wr(t.f,e)),466).b,i);return new _u(new ol(t))}function oEe(n,e){var t,i,r,c,s;for(i=new dLn(n.j.c.length),t=null,c=new M(n.j);c.a<c.c.c.length;)r=u(E(c),12),r.j!=t&&(i.b==i.c||qHn(i,t,e),TJ(i),t=r.j),s=THn(r),s&&vJ(i,s);i.b==i.c||qHn(i,t,e)}function sEe(n,e){var t,i,r;for(i=new xi(n.b,0);i.b<i.d.gc();)t=(oe(i.b<i.d.gc()),u(i.d.Xb(i.c=i.b++),72)),r=u(v(t,(cn(),Sh)),278),r==($f(),Jw)&&(bo(i),nn(e.b,t),kt(t,(W(),T3))||U(t,T3,n))}function fEe(n){var e,t,i,r,c;for(e=wl(new ie(ce(Qt(n).a.Kc(),new En))),r=new ie(ce(ji(n).a.Kc(),new En));pe(r);)i=u(fe(r),18),t=i.c.i,c=wl(new ie(ce(Qt(t).a.Kc(),new En))),e=y.Math.max(e,c);return Y(e)}function Enn(n,e,t){var i,r,c;i=u(z(n,(He(),Gj)),21),r=0,c=0,e.a>t.a&&(i.Hc((wd(),w9))?r=(e.a-t.a)/2:i.Hc(g9)&&(r=e.a-t.a)),e.b>t.b&&(i.Hc((wd(),m9))?c=(e.b-t.b)/2:i.Hc(p9)&&(c=e.b-t.b)),rnn(n,r,c)}function I_n(n,e,t,i,r,c,s,f,h,l,a,d,g){L(n.Cb,90)&&hw(Zu(u(n.Cb,90)),4),zc(n,t),n.f=s,hm(n,f),am(n,h),fm(n,l),lm(n,a),u1(n,d),dm(n,g),c1(n,!0),e1(n,r),n.Zk(c),ad(n,e),i!=null&&(n.i=null,kC(n,i))}function Mnn(n,e,t){if(n<0)return B5(Czn,S(C(ki,1),Kn,1,5,[t,Y(n)]));if(e<0)throw T(new Gn(Szn+e));return B5("%s (%s) must not be greater than size (%s)",S(C(ki,1),Kn,1,5,[t,Y(n),Y(e)]))}function Tnn(n,e,t,i,r,c){var s,f,h,l;if(s=i-t,s<7){z5e(e,t,i,c);return}if(h=t+r,f=i+r,l=h+(f-h>>1),Tnn(e,n,h,l,-r,c),Tnn(e,n,l,f,-r,c),c.Ne(n[l-1],n[l])<=0){for(;t<i;)$t(e,t++,n[h++]);return}n5e(n,h,l,f,e,t,i,c)}function hEe(n,e){var t,i,r,c,s,f,h;for(h=e.d,r=e.b.j,f=new M(h);f.a<f.c.c.length;)for(s=u(E(f),105),c=F(so,Xh,28,r.c.length,16,1),Ve(n.b,s,c),t=s.a.d.p-1,i=s.c.d.p;t!=i;)t=(t+1)%r.c.length,c[t]=!0}function lEe(n,e){if(kQ(),kt(n,(W(),dt))&&kt(e,dt))return jc(u(v(n,dt),17).a,u(v(e,dt),17).a);throw T(new hp("The BF model order layer assigner requires all real nodes to have a model order."))}function aEe(n,e){if(yQ(),kt(n,(W(),dt))&&kt(e,dt))return jc(u(v(n,dt),17).a,u(v(e,dt),17).a);throw T(new hp("The DF model order layer assigner requires all real nodes to have a model order."))}function dEe(n,e){for(n.r=new yk(n.p),cfe(n.r,n),Ki(n.r.j,n.j),vo(n.j),Re(n.j,e),Re(n.r.e,e),mT(n),mT(n.r);n.f.c.length!=0;)MCn(u(sn(n.f,0),132));for(;n.k.c.length!=0;)MCn(u(sn(n.k,0),132));return n.r}function sR(n,e,t){var i,r,c;if(r=$n(n.Dh(),e),i=e-n.ji(),i<0)if(r)if(r.rk())c=n.Ih(r),c>=0?n.bi(c,t):een(n,r,t);else throw T(new Gn(ba+r.xe()+b8));else throw T(new Gn(aWn+e+dWn));else Jo(n,i,r,t)}function O_n(n){var e,t;if(n.f){for(;n.n>0;){if(e=u(n.k.Xb(n.n-1),76),t=e.Lk(),L(t,102)&&u(t,19).Bb&kc&&(!n.e||t.pk()!=Hv||t.Lj()!=0)&&e.md()!=null)return!0;--n.n}return!1}else return n.n>0}function A_n(n){var e,t,i,r;if(t=u(n,54)._h(),t)try{if(i=null,e=Tm((B1(),Is),gUn(r8e(t))),e&&(r=e.ai(),r&&(i=r.Fl(che(t.e)))),i&&i!=n)return A_n(i)}catch(c){if(c=Ot(c),!L(c,63))throw T(c)}return n}function bEe(n,e,t){var i,r,c;t.Ug("Remove overlaps",1),t.dh(e,$rn),i=u(z(e,(Cg(),L2)),27),n.f=i,n.a=Sx(u(z(e,(oa(),Rj)),300)),r=B(z(e,(He(),qd))),pG(n,(Jn(r),r)),c=aw(i),KGn(n,e,c,t),t.dh(e,LP)}function wEe(n){var e,t,i;if(on(un(z(n,(He(),Xj))))){for(i=new Z,t=new ie(ce(Sl(n).a.Kc(),new En));pe(t);)e=u(fe(t),74),_b(e)&&on(un(z(e,nU)))&&Fn(i.c,e);return i}else return Ln(),Ln(),sr}function L_n(n){if(!n)return Ljn(),dQn;var e=n.valueOf?n.valueOf():n;if(e!==n){var t=VF[typeof e];return t?t(e):bY(typeof e)}else return n instanceof Array||n instanceof y.Array?new lG(n):new U9(n)}function N_n(n,e,t){var i,r,c;switch(c=n.o,i=u(Mr(n.p,t),252),r=i.i,r.b=ty(i),r.a=ey(i),r.b=y.Math.max(r.b,c.a),r.b>c.a&&!e&&(r.b=c.a),r.c=-(r.b-c.a)/2,t.g){case 1:r.d=-r.a;break;case 3:r.d=c.b}NR(i),DR(i)}function D_n(n,e,t){var i,r,c;switch(c=n.o,i=u(Mr(n.p,t),252),r=i.i,r.b=ty(i),r.a=ey(i),r.a=y.Math.max(r.a,c.b),r.a>c.b&&!e&&(r.a=c.b),r.d=-(r.a-c.b)/2,t.g){case 4:r.c=-r.b;break;case 2:r.c=c.a}NR(i),DR(i)}function gEe(n,e){var t,i,r,c,s;if(!e.dc()){if(r=u(e.Xb(0),131),e.gc()==1){lqn(n,r,r,1,0,e);return}for(t=1;t<e.gc();)(r.j||!r.o)&&(c=j7e(e,t),c&&(i=u(c.a,17).a,s=u(c.b,131),lqn(n,r,s,t,i,e),t=i+1,r=s))}}function pEe(n){var e,t,i,r,c,s;for(s=new _u(n.d),Yt(s,new kpn),e=(LS(),S(C(Tsn,1),G,276,0,[F_,q_,B_,z_,H_,__,G_,U_])),t=0,c=new M(s);c.a<c.c.c.length;)r=u(E(c),105),i=e[t%e.length],gMe(r,i),++t}function mEe(n,e){Vg();var t,i,r,c;if(e.b<2)return!1;for(c=ge(e,0),t=u(be(c),8),i=t;c.b!=c.d.c;){if(r=u(be(c),8),!(W4(n,i)&&W4(n,r)))return!1;i=r}return!!(W4(n,i)&&W4(n,t))}function Cnn(n,e){var t,i,r,c,s,f,h,l,a,d;return a=null,d=n,s=yl(d,"x"),t=new Jkn(e),J4e(t.a,s),f=yl(d,"y"),i=new Qkn(e),Q4e(i.a,f),h=yl(d,dF),r=new Ykn(e),Y4e(r.a,h),l=yl(d,aF),c=new Zkn(e),a=(Z4e(c.a,l),l),a}function hw(n,e){Uqn(n,e),n.b&1&&(n.a.a=null),n.b&2&&(n.a.f=null),n.b&4&&(n.a.g=null,n.a.i=null),n.b&16&&(n.a.d=null,n.a.e=null),n.b&8&&(n.a.b=null),n.b&32&&(n.a.j=null,n.a.c=null)}function vEe(n,e){var t,i,r;if(r=0,e.length>0)try{r=So(e,Wi,et)}catch(c){throw c=Ot(c),L(c,130)?(i=c,T(new eC(i))):T(c)}return t=(!n.a&&(n.a=new iL(n)),n.a),r<t.i&&r>=0?u(N(t,r),58):null}function kEe(n,e){if(n<0)return B5(Czn,S(C(ki,1),Kn,1,5,["index",Y(n)]));if(e<0)throw T(new Gn(Szn+e));return B5("%s (%s) must be less than size (%s)",S(C(ki,1),Kn,1,5,["index",Y(n),Y(e)]))}function yEe(n){var e,t,i,r,c;if(n==null)return gu;for(c=new fd(ur,"[","]"),t=n,i=0,r=t.length;i<r;++i)e=t[i],c.a?Be(c.a,c.b):c.a=new mo(c.d),C6(c.a,""+e);return c.a?c.e.length==0?c.a.a:c.a.a+(""+c.e):c.c}function jEe(n){var e,t,i,r,c;if(n==null)return gu;for(c=new fd(ur,"[","]"),t=n,i=0,r=t.length;i<r;++i)e=t[i],c.a?Be(c.a,c.b):c.a=new mo(c.d),C6(c.a,""+e);return c.a?c.e.length==0?c.a.a:c.a.a+(""+c.e):c.c}function EEe(n){var e,t,i,r,c;if(n==null)return gu;for(c=new fd(ur,"[","]"),t=n,i=0,r=t.length;i<r;++i)e=t[i],c.a?Be(c.a,c.b):c.a=new mo(c.d),C6(c.a,""+e);return c.a?c.e.length==0?c.a.a:c.a.a+(""+c.e):c.c}function MEe(n){var e,t,i,r,c;if(n==null)return gu;for(c=new fd(ur,"[","]"),t=n,i=0,r=t.length;i<r;++i)e=t[i],c.a?Be(c.a,c.b):c.a=new mo(c.d),C6(c.a,""+e);return c.a?c.e.length==0?c.a.a:c.a.a+(""+c.e):c.c}function $_n(n,e){var t,i,r,c,s,f;for(t=n.b.c.length,r=sn(n.b,e);e*2+1<t&&(i=(c=2*e+1,s=c+1,f=c,s<t&&n.a.Ne(sn(n.b,s),sn(n.b,c))<0&&(f=s),f),!(n.a.Ne(r,sn(n.b,i))<0));)Go(n.b,e,sn(n.b,i)),e=i;Go(n.b,e,r)}function fR(n,e,t){var i,r;return i=t.d,r=t.e,n.g[i.d]<=n.i[e.d]&&n.i[e.d]<=n.i[i.d]&&n.g[r.d]<=n.i[e.d]&&n.i[e.d]<=n.i[r.d]?!(n.i[i.d]<n.i[r.d]):n.i[i.d]<n.i[r.d]}function TEe(n,e){var t;if(t=u(v(e,(cn(),U8)),322),t!=n)throw T(new hp("The hierarchy aware processor "+t+" in child node "+e+" is only allowed if the root node specifies the same hierarchical processor."))}function CEe(n,e){var t,i,r,c,s;for(i=(!e.s&&(e.s=new q(ku,e,21,17)),e.s),c=null,r=0,s=i.i;r<s;++r)switch(t=u(N(i,r),179),yb(Nr(n,t))){case 2:case 3:!c&&(c=new Z),Fn(c.c,t)}return c||(Ln(),Ln(),sr)}function x_n(n,e,t){var i,r,c,s,f,h;for(h=Pt,c=new M(nqn(n.b));c.a<c.c.c.length;)for(r=u(E(c),177),f=new M(nqn(e.b));f.a<f.c.c.length;)s=u(E(f),177),i=Wve(r.a,r.b,s.a,s.b,t),h=y.Math.min(h,i);return h}function gi(n,e){if(!e)throw T(new rp);if(n.j=e,!n.d)switch(n.j.g){case 1:n.a.a=n.o.a/2,n.a.b=0;break;case 2:n.a.a=n.o.a,n.a.b=n.o.b/2;break;case 3:n.a.a=n.o.a/2,n.a.b=n.o.b;break;case 4:n.a.a=0,n.a.b=n.o.b/2}}function SEe(n,e){var t,i,r;return L(e.g,10)&&u(e.g,10).k==(Vn(),Zt)?Pt:(r=xp(e),r?y.Math.max(0,n.b/2-.5):(t=Ig(e),t?(i=$(B(rw(t,(cn(),g0)))),y.Math.max(0,i/2-.5)):Pt))}function PEe(n,e){var t,i,r;return L(e.g,10)&&u(e.g,10).k==(Vn(),Zt)?Pt:(r=xp(e),r?y.Math.max(0,n.b/2-.5):(t=Ig(e),t?(i=$(B(rw(t,(cn(),g0)))),y.Math.max(0,i/2-.5)):Pt))}function IEe(n,e){Rs();var t,i,r,c,s,f;for(t=null,s=e.Kc();s.Ob();)c=u(s.Pb(),131),!c.o&&(i=f1e(c.a),r=w0e(c.a),f=new q5(i,r,null,u(c.d.a.ec().Kc().Pb(),18)),nn(f.c,c.a),Fn(n.c,f),t&&nn(t.d,f),t=f)}function OEe(n){var e,t,i,r,c,s;for(s=g5(n.d,n.e),c=s.Kc();c.Ob();)for(r=u(c.Pb(),12),i=n.e==(en(),Wn)?r.e:r.g,t=new M(i);t.a<t.c.c.length;)e=u(E(t),18),!fr(e)&&e.c.i.c!=e.d.i.c&&(Oje(n,e),++n.f,++n.c)}function R_n(n,e){var t,i;if(e.dc())return Ln(),Ln(),sr;for(i=new Z,nn(i,Y(Wi)),t=1;t<n.f;++t)n.a==null&&qqn(n),n.a[t]&&nn(i,Y(t));return i.c.length==1?(Ln(),Ln(),sr):(nn(i,Y(et)),FIe(e,i))}function AEe(n,e){var t,i,r,c,s,f,h;s=e.c.i.k!=(Vn(),zt),h=s?e.d:e.c,t=F7e(e,h).i,r=u(ee(n.k,h),125),i=n.i[t.p].a,tPn(h.i)<(t.c?qr(t.c.a,t,0):-1)?(c=r,f=i):(c=i,f=r),qs(Ns(Ls(Ds(As(new hs,0),4),c),f))}function LEe(n,e,t){var i,r,c,s,f,h;if(t)for(r=t.a.length,i=new Qa(r),f=(i.b-i.a)*i.c<0?(F1(),xa):new q1(i);f.Ob();)s=u(f.Pb(),17),h=Rx(n,Zp(J0(t,s.a))),h&&(c=(!e.b&&(e.b=new Dn(he,e,4,7)),e.b),ve(c,h))}function NEe(n,e,t){var i,r,c,s,f,h;if(t)for(r=t.a.length,i=new Qa(r),f=(i.b-i.a)*i.c<0?(F1(),xa):new q1(i);f.Ob();)s=u(f.Pb(),17),h=Rx(n,Zp(J0(t,s.a))),h&&(c=(!e.c&&(e.c=new Dn(he,e,5,8)),e.c),ve(c,h))}function ny(n,e,t){var i,r;i=e.a&n.f,e.b=n.b[i],n.b[i]=e,r=e.f&n.f,e.d=n.c[r],n.c[r]=e,t?(e.e=t.e,e.e?e.e.c=e:n.a=e,e.c=t.c,e.c?e.c.e=e:n.e=e):(e.e=n.e,e.c=null,n.e?n.e.c=e:n.a=e,n.e=e),++n.i,++n.g}function K_n(n){var e,t,i;if(e=n.Pb(),!n.Ob())return e;for(i=Lc(Be(new x1,"expected one element but was: <"),e),t=0;t<4&&n.Ob();t++)Lc((i.a+=ur,i),n.Pb());throw n.Ob()&&(i.a+=", ..."),i.a+=">",T(new Gn(i.a))}function DEe(n){var e,t;return t=-n.a,e=S(C(fs,1),gh,28,15,[43,48,48,48,48]),t<0&&(e[0]=45,t=-t),e[1]=e[1]+((t/60|0)/10|0)&ui,e[2]=e[2]+(t/60|0)%10&ui,e[3]=e[3]+(t%60/10|0)&ui,e[4]=e[4]+t%10&ui,ws(e,0,e.length)}function Snn(n){var e,t,i,r;for(n.g=new y5(u(Pe(lr),297)),i=0,t=(en(),Xn),e=0;e<n.j.c.length;e++)r=u(sn(n.j,e),12),r.j!=t&&(i!=e&&Ip(n.g,t,new bi(Y(i),Y(e))),t=r.j,i=e);Ip(n.g,t,new bi(Y(i),Y(e)))}function $Ee(n){var e,t,i,r,c,s,f;for(i=0,t=new M(n.b);t.a<t.c.c.length;)for(e=u(E(t),30),c=new M(e.a);c.a<c.c.c.length;)for(r=u(E(c),10),r.p=i++,f=new M(r.j);f.a<f.c.c.length;)s=u(E(f),12),s.p=i++}function Pnn(n,e){var t,i,r;if(r=Qg((Lu(),zi),n.Dh(),e),r)dr(),u(r,69).xk()||(r=$p(Nr(zi,r))),i=(t=n.Ih(r),u(t>=0?n.Lh(t,!0,!0):Hb(n,r,!0),160)),u(i,220).Zl(e);else throw T(new Gn(ba+e.xe()+b8))}function Inn(n){var e,t;return n>-0x800000000000&&n<0x800000000000?n==0?0:(e=n<0,e&&(n=-n),t=wi(y.Math.floor(y.Math.log(n)/.6931471805599453)),(!e||n!=y.Math.pow(2,t))&&++t,t):Qxn(vc(n))}function xEe(n){var e,t,i,r,c,s,f;for(c=new rh,t=new M(n);t.a<t.c.c.length;)e=u(E(t),132),s=e.a,f=e.b,!(c.a._b(s)||c.a._b(f))&&(r=s,i=f,s.e.b+s.j.b>2&&f.e.b+f.j.b<=2&&(r=f,i=s),c.a.zc(r,c),r.q=i);return c}function REe(n,e,t){t.Ug("Eades radial",1),t.dh(e,LP),n.d=u(z(e,(Cg(),L2)),27),n.c=$(B(z(e,(oa(),HO)))),n.e=Sx(u(z(e,Rj),300)),n.a=a8e(u(z(e,e1n),434)),n.b=Lke(u(z(e,Qln),354)),bke(n),t.dh(e,LP)}function KEe(n,e){if(e.Ug("Target Width Setter",1),Nf(n,(Bf(),Nq)))ht(n,(_h(),Xw),B(z(n,Nq)));else throw T(new _l("A target width has to be set if the TargetWidthWidthApproximator should be used."));e.Vg()}function B_n(n,e){var t,i,r;return i=new Cl(n),Ur(i,e),U(i,(W(),cO),e),U(i,(cn(),Ft),(Ai(),qc)),U(i,Ch,(Bh(),nA)),Ha(i,(Vn(),Zt)),t=new Ic,ic(t,i),gi(t,(en(),Wn)),r=new Ic,ic(r,i),gi(r,Zn),i}function F_n(n){switch(n.g){case 0:return new gL((Ab(),Aj));case 1:return new i8n;case 2:return new r8n;default:throw T(new Gn("No implementation is available for the crossing minimizer "+(n.f!=null?n.f:""+n.g)))}}function __n(n,e){var t,i,r,c,s;for(n.c[e.p]=!0,nn(n.a,e),s=new M(e.j);s.a<s.c.c.length;)for(c=u(E(s),12),i=new Lf(c.b);tc(i.a)||tc(i.b);)t=u(tc(i.a)?E(i.a):E(i.b),18),r=K8e(c,t).i,n.c[r.p]||__n(n,r)}function H_n(n){var e,t,i,r,c,s,f;for(s=0,t=new ne((!n.a&&(n.a=new q(Ye,n,10,11)),n.a));t.e!=t.i.gc();)e=u(ue(t),27),f=e.g,r=e.f,i=y.Math.sqrt(f*f+r*r),s=y.Math.max(i,s),c=H_n(e),s=y.Math.max(c,s);return s}function zu(){zu=R,Oa=new E6("OUTSIDE",0),Rl=new E6("INSIDE",1),tE=new E6("NEXT_TO_PORT_IF_POSSIBLE",2),S9=new E6("ALWAYS_SAME_SIDE",3),C9=new E6("ALWAYS_OTHER_SAME_SIDE",4),K3=new E6("SPACE_EFFICIENT",5)}function q_n(n,e,t){var i,r,c,s,f,h;return i=_pe(n,(r=(K1(),c=new Yv,c),t&&PS(r,t),r),e),X4(i,bl(e,Eh)),gS(e,i),YMe(e,i),Cnn(e,i),s=e,f=Sb(s,"ports"),h=new CTn(n,i),xTe(h.a,h.b,f),_$(n,e,i),Uve(n,e,i),i}function BEe(n){var e,t;return t=-n.a,e=S(C(fs,1),gh,28,15,[43,48,48,58,48,48]),t<0&&(e[0]=45,t=-t),e[1]=e[1]+((t/60|0)/10|0)&ui,e[2]=e[2]+(t/60|0)%10&ui,e[4]=e[4]+(t%60/10|0)&ui,e[5]=e[5]+t%10&ui,ws(e,0,e.length)}function FEe(n){var e;return e=S(C(fs,1),gh,28,15,[71,77,84,45,48,48,58,48,48]),n<=0&&(e[3]=43,n=-n),e[4]=e[4]+((n/60|0)/10|0)&ui,e[5]=e[5]+(n/60|0)%10&ui,e[7]=e[7]+(n%60/10|0)&ui,e[8]=e[8]+n%10&ui,ws(e,0,e.length)}function _Ee(n){var e,t,i,r,c;if(n==null)return gu;for(c=new fd(ur,"[","]"),t=n,i=0,r=t.length;i<r;++i)e=t[i],c.a?Be(c.a,c.b):c.a=new mo(c.d),C6(c.a,""+_6(e));return c.a?c.e.length==0?c.a.a:c.a.a+(""+c.e):c.c}function Onn(n,e){var t,i,r;for(r=et,i=new M(xg(e));i.a<i.c.c.length;)t=u(E(i),218),t.f&&!n.c[t.c]&&(n.c[t.c]=!0,r=y.Math.min(r,Onn(n,HC(t,e))));return n.i[e.d]=n.j,n.g[e.d]=y.Math.min(r,n.j++),n.g[e.d]}function U_n(n,e){var t,i,r;for(r=u(u(ot(n.r,e),21),87).Kc();r.Ob();)i=u(r.Pb(),117),i.e.b=(t=i.b,t.pf((He(),oo))?t.ag()==(en(),Xn)?-t.Mf().b-$(B(t.of(oo))):$(B(t.of(oo))):t.ag()==(en(),Xn)?-t.Mf().b:0)}function HEe(n){var e,t,i,r,c,s,f;for(t=PX(n.e),c=ch(N6(Fi(SX(n.e)),n.d*n.a,n.c*n.b),-.5),e=t.a-c.a,r=t.b-c.b,f=0;f<n.c;f++){for(i=e,s=0;s<n.d;s++)t8e(n.e,new Ho(i,r,n.a,n.b))&&xS(n,s,f,!1,!0),i+=n.a;r+=n.b}}function Ann(n){var e,t,i,r,c;e=n.a,t=n.b,r=n.c,i=new V(t.e.a+t.f.a/2,t.e.b+t.f.b/2),c=new V(r.e.a+r.f.a/2,r.e.b+r.f.b/2),xt(e,i,e.a,e.a.a),xt(e,c,e.c.b,e.c),n_n(i,u(Zo(e,1),8),n.b.f),n_n(c,u(Zo(e,e.b-2),8),n.c.f)}function Zp(n){var e,t;if(t=!1,L(n,211))return t=!0,u(n,211).a;if(!t&&L(n,263)&&(e=u(n,263).a%1==0,e))return t=!0,Y(Tle(u(n,263).a));throw T(new eh("Id must be a string or an integer: '"+n+"'."))}function qEe(n,e){var t,i,r,c,s,f;for(c=null,r=new LIn((!n.a&&(n.a=new iL(n)),n.a));xnn(r);)if(t=u(MS(r),58),i=(s=t.Dh(),f=(Jg(s),s.o),!f||!t.Xh(f)?null:MV(x$(f),t.Mh(f))),i!=null&&Sn(i,e)){c=t;break}return c}function G_n(n,e,t){var i,r,c,s,f;if(Mo(t,"occurrences"),t==0)return f=u(tw(Lp(n.a),e),16),f?f.gc():0;if(s=u(tw(Lp(n.a),e),16),!s)return 0;if(c=s.gc(),t>=c)s.$b();else for(r=s.Kc(),i=0;i<t;i++)r.Pb(),r.Qb();return c}function UEe(n,e,t){var i,r,c,s;return Mo(t,"oldCount"),Mo(0,"newCount"),i=u(tw(Lp(n.a),e),16),(i?i.gc():0)==t?(Mo(0,"count"),r=(c=u(tw(Lp(n.a),e),16),c?c.gc():0),s=-r,s>0?bz():s<0&&G_n(n,e,-s),!0):!1}function ey(n){var e,t,i,r,c,s,f;if(f=0,n.b==0){for(s=SBn(n,!0),e=0,i=s,r=0,c=i.length;r<c;++r)t=i[r],t>0&&(f+=t,++e);e>1&&(f+=n.c*(e-1))}else f=Ujn(O$(U0(ut(EW(n.a),new f0n),new h0n)));return f>0?f+n.n.d+n.n.a:0}function ty(n){var e,t,i,r,c,s,f;if(f=0,n.b==0)f=Ujn(O$(U0(ut(EW(n.a),new o0n),new s0n)));else{for(s=PBn(n,!0),e=0,i=s,r=0,c=i.length;r<c;++r)t=i[r],t>0&&(f+=t,++e);e>1&&(f+=n.c*(e-1))}return f>0?f+n.n.b+n.n.c:0}function GEe(n){var e,t;if(n.c.length!=2)throw T(new Ar("Order only allowed for two paths."));e=(Nn(0,n.c.length),u(n.c[0],18)),t=(Nn(1,n.c.length),u(n.c[1],18)),e.d.i!=t.c.i&&(n.c.length=0,Fn(n.c,t),Fn(n.c,e))}function z_n(n,e,t){var i;for(kg(t,e.g,e.f),Bo(t,e.i,e.j),i=0;i<(!e.a&&(e.a=new q(Ye,e,10,11)),e.a).i;i++)z_n(n,u(N((!e.a&&(e.a=new q(Ye,e,10,11)),e.a),i),27),u(N((!t.a&&(t.a=new q(Ye,t,10,11)),t.a),i),27))}function zEe(n,e){var t,i,r,c;for(c=u(Mr(n.b,e),127),t=c.a,r=u(u(ot(n.r,e),21),87).Kc();r.Ob();)i=u(r.Pb(),117),i.c&&(t.a=y.Math.max(t.a,nW(i.c)));if(t.a>0)switch(e.g){case 2:c.n.c=n.s;break;case 4:c.n.b=n.s}}function XEe(n,e){var t,i,r;return t=u(v(e,(Us(),k3)),17).a-u(v(n,k3),17).a,t==0?(i=mi(Fi(u(v(n,(Q1(),lj)),8)),u(v(n,L8),8)),r=mi(Fi(u(v(e,lj),8)),u(v(e,L8),8)),bt(i.a*i.b,r.a*r.b)):t}function VEe(n,e){var t,i,r;return t=u(v(e,(lc(),RO)),17).a-u(v(n,RO),17).a,t==0?(i=mi(Fi(u(v(n,(pt(),Dj)),8)),u(v(n,Lv),8)),r=mi(Fi(u(v(e,Dj),8)),u(v(e,Lv),8)),bt(i.a*i.b,r.a*r.b)):t}function X_n(n){var e,t;return t=new x1,t.a+="e_",e=_ve(n),e!=null&&(t.a+=""+e),n.c&&n.d&&(Be((t.a+=" ",t),lS(n.c)),Be(Lc((t.a+="[",t),n.c.i),"]"),Be((t.a+=iB,t),lS(n.d)),Be(Lc((t.a+="[",t),n.d.i),"]")),t.a}function V_n(n){switch(n.g){case 0:return new d8n;case 1:return new b8n;case 2:return new l8n;case 3:return new h8n;default:throw T(new Gn("No implementation is available for the layout phase "+(n.f!=null?n.f:""+n.g)))}}function Lnn(n,e,t,i,r){var c;switch(c=0,r.g){case 1:c=y.Math.max(0,e.b+n.b-(t.b+i));break;case 3:c=y.Math.max(0,-n.b-i);break;case 2:c=y.Math.max(0,-n.a-i);break;case 4:c=y.Math.max(0,e.a+n.a-(t.a+i))}return c}function WEe(n,e,t){var i,r,c,s,f;if(t)for(r=t.a.length,i=new Qa(r),f=(i.b-i.a)*i.c<0?(F1(),xa):new q1(i);f.Ob();)s=u(f.Pb(),17),c=N4(t,s.a),Ccn in c.a||pF in c.a?fPe(n,c,e):PNe(n,c,e),S1e(u(ee(n.b,wm(c)),74))}function Nnn(n){var e,t;switch(n.b){case-1:return!0;case 0:return t=n.t,t>1||t==-1?(n.b=-1,!0):(e=gs(n),e&&(dr(),e.lk()==bJn)?(n.b=-1,!0):(n.b=1,!1));default:case 1:return!1}}function Dnn(n,e){var t,i,r,c;if(Ze(n),n.c!=0||n.a!=123)throw T(new Ne($e((Oe(),xWn))));if(c=e==112,i=n.d,t=w4(n.i,125,i),t<0)throw T(new Ne($e((Oe(),RWn))));return r=qo(n.i,i,t),n.d=t+1,mDn(r,c,(n.e&512)==512)}function W_n(n){var e,t,i,r,c,s,f;if(i=n.a.c.length,i>0)for(s=n.c.d,f=n.d.d,r=ch(mi(new V(f.a,f.b),s),1/(i+1)),c=new V(s.a,s.b),t=new M(n.a);t.a<t.c.c.length;)e=u(E(t),250),e.d.a=c.a+r.a,e.d.b=c.b+r.b,tt(c,r)}function JEe(n,e){var t,i,r;if(!e)j$(n,null),G4(n,null);else if(e.i&4)for(i="[]",t=e.c;;t=t.c){if(!(t.i&4)){r=az((ll(t),t.o+i)),j$(n,r),G4(n,r);break}i+="[]"}else r=az((ll(e),e.o)),j$(n,r),G4(n,r);n.hl(e)}function N5(n,e,t,i,r){var c,s,f,h;return h=ON(n,u(r,58)),x(h)!==x(r)?(f=u(n.g[t],76),c=Rh(e,h),O6(n,t,Jx(n,t,c)),fo(n.e)&&(s=V1(n,9,c.Lk(),r,h,i,!1),GZ(s,new ml(n.e,9,n.c,f,c,i,!1)),h$(s)),h):r}function QEe(n,e,t){var i,r,c,s,f,h;for(i=u(ot(n.c,e),15),r=u(ot(n.c,t),15),c=i.fd(i.gc()),s=r.fd(r.gc());c.Sb()&&s.Sb();)if(f=u(c.Ub(),17),h=u(s.Ub(),17),f!=h)return jc(f.a,h.a);return!c.Ob()&&!s.Ob()?0:c.Ob()?1:-1}function YEe(n){var e,t,i,r,c,s,f;for(f=Lh(n.c.length),r=new M(n);r.a<r.c.c.length;){for(i=u(E(r),10),s=new ni,c=Qt(i),t=new ie(ce(c.a.Kc(),new En));pe(t);)e=u(fe(t),18),e.c.i==e.d.i||fi(s,e.d.i);Fn(f.c,s)}return f}function J_n(n,e){var t,i,r;try{return r=hpe(n.a,e),r}catch(c){if(c=Ot(c),L(c,33)){try{if(i=So(e,Wi,et),t=of(n.a),i>=0&&i<t.length)return t[i]}catch(s){if(s=Ot(s),!L(s,130))throw T(s)}return null}else throw T(c)}}function hR(n,e){var t,i,r;if(r=Qg((Lu(),zi),n.Dh(),e),r)return dr(),u(r,69).xk()||(r=$p(Nr(zi,r))),i=(t=n.Ih(r),u(t>=0?n.Lh(t,!0,!0):Hb(n,r,!0),160)),u(i,220).Wl(e);throw T(new Gn(ba+e.xe()+sF))}function ZEe(){xz();var n;return Yoe?u(Tm((B1(),Is),ks),2038):(Ge(Id,new k6n),VAe(),n=u(L(Dc((B1(),Is),ks),560)?Dc(Is,ks):new aOn,560),Yoe=!0,WNe(n),tDe(n),Ve(($z(),qdn),n,new xvn),Lr(Is,ks,n),n)}function nMe(n,e){var t,i,r,c;n.j=-1,fo(n.e)?(t=n.i,c=n.i!=0,ek(n,e),i=new ml(n.e,3,n.c,null,e,t,c),r=e.zl(n.e,n.c,null),r=IFn(n,e,r),r?(r.nj(i),r.oj()):it(n.e,i)):(ek(n,e),r=e.zl(n.e,n.c,null),r&&r.oj())}function yS(n,e){var t,i,r;if(r=0,i=e[0],i>=n.length)return-1;for(t=(zn(i,n.length),n.charCodeAt(i));t>=48&&t<=57&&(r=r*10+(t-48),++i,!(i>=n.length));)t=(zn(i,n.length),n.charCodeAt(i));return i>e[0]?e[0]=i:r=-1,r}function eMe(n){var e,t,i,r,c;return r=u(n.a,17).a,c=u(n.b,17).a,t=r,i=c,e=y.Math.max(y.Math.abs(r),y.Math.abs(c)),r<=0&&r==c?(t=0,i=c-1):r==-e&&c!=e?(t=c,i=r,c>=0&&++t):(t=-c,i=r),new bi(Y(t),Y(i))}function tMe(n,e,t,i){var r,c,s,f,h,l;for(r=0;r<e.o;r++)for(c=r-e.j+t,s=0;s<e.p;s++)if(f=s-e.k+i,h=c,l=f,h+=n.j,l+=n.k,h>=0&&l>=0&&h<n.o&&l<n.p&&(!DBn(e,r,s)&&ABn(n,c,f)||Fg(e,r,s)&&!V9e(n,c,f)))return!0;return!1}function iMe(n,e,t){var i,r,c,s,f;s=n.c,f=n.d,c=cc(S(C(Ei,1),J,8,0,[s.i.n,s.n,s.a])).b,r=(c+cc(S(C(Ei,1),J,8,0,[f.i.n,f.n,f.a])).b)/2,i=null,s.j==(en(),Zn)?i=new V(e+s.i.c.c.a+t,r):i=new V(e-t,r),g4(n.a,0,i)}function _b(n){var e,t,i,r;for(e=null,i=$h(Eo(S(C(Ao,1),Kn,20,0,[(!n.b&&(n.b=new Dn(he,n,4,7)),n.b),(!n.c&&(n.c=new Dn(he,n,5,8)),n.c)])));pe(i);)if(t=u(fe(i),84),r=Gr(t),!e)e=r;else if(e!=r)return!1;return!0}function lR(n,e,t){var i;if(++n.j,e>=n.i)throw T(new Or(vF+e+Cd+n.i));if(t>=n.i)throw T(new Or(kF+t+Cd+n.i));return i=n.g[t],e!=t&&(e<t?Oc(n.g,e,n.g,e+1,t-e):Oc(n.g,t+1,n.g,t,e-t),$t(n.g,e,i),n.Pi(e,i,t),n.Ni()),i}function In(n,e,t){var i;if(i=u(n.c.xc(e),16),i)return i.Fc(t)?(++n.d,!0):!1;if(i=n.ic(e),i.Fc(t))return++n.d,n.c.zc(e,i),!0;throw T(new DJ("New Collection violated the Collection spec"))}function iy(n){var e,t,i;return n<0?0:n==0?32:(i=-(n>>16),e=i>>16&16,t=16-e,n=n>>e,i=n-256,e=i>>16&8,t+=e,n<<=e,i=n-vw,e=i>>16&4,t+=e,n<<=e,i=n-wh,e=i>>16&2,t+=e,n<<=e,i=n>>14,e=i&~(i>>1),t+2-e)}function rMe(n){Np();var e,t,i,r;for(mI=new Z,p_=new de,g_=new Z,e=(!n.a&&(n.a=new q(Ye,n,10,11)),n.a),VLe(e),r=new ne(e);r.e!=r.i.gc();)i=u(ue(r),27),qr(mI,i,0)==-1&&(t=new Z,nn(g_,t),ZKn(i,t));return g_}function cMe(n,e,t){var i,r,c,s;n.a=t.b.d,L(e,326)?(r=Xg(u(e,74),!1,!1),c=Qk(r),i=new R9n(n),qi(c,i),dy(c,r),e.of((He(),k0))!=null&&qi(u(e.of(k0),75),i)):(s=u(e,422),s.rh(s.nh()+n.a.a),s.sh(s.oh()+n.a.b))}function uMe(n,e){var t,i,r;for(r=new Z,i=ge(e.a,0);i.b!=i.d.c;)t=u(be(i),65),t.c.g==n.g&&x(v(t.b,(lc(),Ph)))!==x(v(t.c,Ph))&&!Ag(new Cn(null,new On(r,16)),new hkn(t))&&Fn(r.c,t);return Yt(r,new U3n),r}function Q_n(n,e,t){var i,r,c,s;return L(e,153)&&L(t,153)?(c=u(e,153),s=u(t,153),n.a[c.a][s.a]+n.a[s.a][c.a]):L(e,250)&&L(t,250)&&(i=u(e,250),r=u(t,250),i.a==r.a)?u(v(r.a,(Us(),k3)),17).a:0}function Y_n(n,e){var t,i,r,c,s,f,h,l;for(l=$(B(v(e,(cn(),X8)))),h=n[0].n.a+n[0].o.a+n[0].d.c+l,f=1;f<n.length;f++)i=n[f].n,r=n[f].o,t=n[f].d,c=i.a-t.b-h,c<0&&(i.a-=c),s=e.f,s.a=y.Math.max(s.a,i.a+r.a),h=i.a+r.a+t.c+l}function oMe(n,e){var t,i,r,c,s,f;return i=u(u(ee(n.g,e.a),42).a,68),r=u(u(ee(n.g,e.b),42).a,68),c=i.b,s=r.b,t=NOe(c,s),t>=0?t:(f=z6(mi(new V(s.c+s.b/2,s.d+s.a/2),new V(c.c+c.b/2,c.d+c.a/2))),-(MUn(c,s)-1)*f)}function sMe(n,e,t){var i;qt(new Cn(null,(!t.a&&(t.a=new q(Tt,t,6,6)),new On(t.a,16))),new dTn(n,e)),qt(new Cn(null,(!t.n&&(t.n=new q(Sr,t,1,7)),new On(t.n,16))),new bTn(n,e)),i=u(z(t,(He(),k0)),75),i&&RQ(i,n,e)}function Hb(n,e,t){var i,r,c;if(c=Qg((Lu(),zi),n.Dh(),e),c)return dr(),u(c,69).xk()||(c=$p(Nr(zi,c))),r=(i=n.Ih(c),u(i>=0?n.Lh(i,!0,!0):Hb(n,c,!0),160)),u(r,220).Sl(e,t);throw T(new Gn(ba+e.xe()+sF))}function $nn(n,e,t,i){var r,c,s,f,h;if(r=n.d[e],r){if(c=r.g,h=r.i,i!=null){for(f=0;f<h;++f)if(s=u(c[f],136),s.Bi()==t&&rt(i,s.ld()))return s}else for(f=0;f<h;++f)if(s=u(c[f],136),x(s.ld())===x(i))return s}return null}function fMe(n,e){var t,i,r,c,s;for(i=(!e.s&&(e.s=new q(ku,e,21,17)),e.s),c=null,r=0,s=i.i;r<s;++r)switch(t=u(N(i,r),179),yb(Nr(n,t))){case 4:case 5:case 6:{!c&&(c=new Z),Fn(c.c,t);break}}return c||(Ln(),Ln(),sr)}function ry(n,e){var t;if(e<0)throw T(new _E("Negative exponent"));if(e==0)return sI;if(e==1||FY(n,sI)||FY(n,P8))return n;if(!MHn(n,0)){for(t=1;!MHn(n,t);)++t;return Og(m8e(t*e),ry(NJ(n,t),e))}return Mye(n,e)}function hMe(n,e){var t,i,r;if(x(n)===x(e))return!0;if(n==null||e==null||n.length!=e.length)return!1;for(t=0;t<n.length;++t)if(i=n[t],r=e[t],!(x(i)===x(r)||i!=null&&rt(i,r)))return!1;return!0}function Z_n(n){Nz();var e,t,i;for(this.b=MZn,this.c=(ci(),Jf),this.f=(hMn(),EZn),this.a=n,kz(this,new nwn),IS(this),i=new M(n.b);i.a<i.c.c.length;)t=u(E(i),86),t.d||(e=new vx(S(C(M_,1),Kn,86,0,[t])),nn(n.a,e))}function lMe(n,e,t){var i,r,c,s,f,h;if(!n||n.c.length==0)return null;for(c=new tAn(e,!t),r=new M(n);r.a<r.c.c.length;)i=u(E(r),72),dnn(c,(u6(),new AE(i)));return s=c.i,s.a=(h=c.n,c.e.b+h.d+h.a),s.b=(f=c.n,c.e.a+f.b+f.c),c}function nHn(n){var e,t,i,r,c,s,f;for(f=Y7(n.a),EX(f,new egn),t=null,r=f,c=0,s=r.length;c<s&&(i=r[c],i.k==(Vn(),Zt));++c)e=u(v(i,(W(),gc)),64),!(e!=(en(),Wn)&&e!=Zn)&&(t&&u(v(t,C3),15).Fc(i),t=i)}function aMe(n,e,t){var i,r,c,s,f,h,l;h=(Nn(e,n.c.length),u(n.c[e],339)),Yl(n,e),h.b/2>=t&&(i=e,l=(h.c+h.a)/2,s=l-t,h.c<=l-t&&(r=new FN(h.c,s),bb(n,i++,r)),f=l+t,f<=h.a&&(c=new FN(f,h.a),z0(i,n.c.length),d6(n.c,i,c)))}function eHn(n,e,t){var i,r,c,s,f,h;if(!e.dc()){for(r=new Mt,h=e.Kc();h.Ob();)for(f=u(h.Pb(),40),Ve(n.a,Y(f.g),Y(t)),s=(i=ge(new sl(f).a.d,0),new sg(i));Q9(s.a);)c=u(be(s.a),65).c,xt(r,c,r.c.b,r.c);eHn(n,r,t+1)}}function xnn(n){var e;if(!n.c&&n.g==null)n.d=n.bj(n.f),ve(n,n.d),e=n.d;else{if(n.g==null)return!0;if(n.i==0)return!1;e=u(n.g[n.i-1],51)}return e==n.b&&null.Vm>=null.Um()?(MS(n),xnn(n)):e.Ob()}function tHn(n){if(this.a=n,n.c.i.k==(Vn(),Zt))this.c=n.c,this.d=u(v(n.c.i,(W(),gc)),64);else if(n.d.i.k==Zt)this.c=n.d,this.d=u(v(n.d.i,(W(),gc)),64);else throw T(new Gn("Edge "+n+" is not an external edge."))}function iHn(n,e){var t,i,r;r=n.b,n.b=e,n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,3,r,n.b)),e?e!=n&&(zc(n,e.zb),v$(n,e.d),t=(i=e.c,i??e.zb),y$(n,t==null||Sn(t,e.zb)?null:t)):(zc(n,null),v$(n,0),y$(n,null))}function rHn(n,e){var t;this.e=(mb(),Pe(n),mb(),JY(n)),this.c=(Pe(e),JY(e)),BX(this.e.Rd().dc()==this.c.Rd().dc()),this.d=vKn(this.e),this.b=vKn(this.c),t=Wa(ki,[J,Kn],[5,1],5,[this.e.Rd().gc(),this.c.Rd().gc()],2),this.a=t,Rme(this)}function cHn(n){!oun&&(oun=uNe());var e=n.replace(/[\x00-\x1f\xad\u0600-\u0603\u06dd\u070f\u17b4\u17b5\u200b-\u200f\u2028-\u202e\u2060-\u2064\u206a-\u206f\ufeff\ufff9-\ufffb"\\]/g,function(t){return h2e(t)});return'"'+e+'"'}function Rnn(n,e,t,i,r,c){var s,f,h,l,a;if(r!=0)for(x(n)===x(t)&&(n=n.slice(e,e+r),e=0),h=t,f=e,l=e+r;f<l;)s=y.Math.min(f+1e4,l),r=s-f,a=n.slice(f,s),a.splice(0,0,i,c?r:0),Array.prototype.splice.apply(h,a),f=s,i+=r}function uHn(n){JW();var e,t;for(this.b=BQn,this.c=_Qn,this.g=(fMn(),KQn),this.d=(ci(),Jf),this.a=n,cen(this),t=new M(n.b);t.a<t.c.c.length;)e=u(E(t),60),!e.a&&nSn(z$n(new XG,S(C(aI,1),Kn,60,0,[e])),n),e.e=new IT(e.d)}function dMe(n){var e,t,i,r,c,s;for(r=n.e.c.length,i=F(rs,kw,15,r,0,1),s=new M(n.e);s.a<s.c.c.length;)c=u(E(s),153),i[c.a]=new Mt;for(t=new M(n.c);t.a<t.c.c.length;)e=u(E(t),290),i[e.c.a].Fc(e),i[e.d.a].Fc(e);return i}function bMe(n,e){var t,i,r,c,s;if(t=u(Un(n.a,4),129),s=t==null?0:t.length,e>=s)throw T(new F0(e,s));return r=t[e],s==1?i=null:(i=F(yU,TF,424,s-1,0,1),Oc(t,0,i,0,e),c=s-e-1,c>0&&Oc(t,e+1,i,e,c)),gm(n,i),P_n(n,e,r),r}function oHn(n){var e,t;if(n.f){for(;n.n<n.o;){if(e=u(n.j?n.j.$i(n.n):n.k.Xb(n.n),76),t=e.Lk(),L(t,102)&&u(t,19).Bb&kc&&(!n.e||t.pk()!=Hv||t.Lj()!=0)&&e.md()!=null)return!0;++n.n}return!1}else return n.n<n.o}function n3(){n3=R,_3=u(N(H((Mz(),yc).qb),6),35),F3=u(N(H(yc.qb),3),35),SU=u(N(H(yc.qb),4),35),PU=u(N(H(yc.qb),5),19),bS(_3),bS(F3),bS(SU),bS(PU),tse=new Fu(S(C(ku,1),f2,179,0,[_3,F3]))}function sHn(n,e){var t;this.d=new Qv,this.b=e,this.e=new rr(e.Lf()),t=n.u.Hc((zu(),tE)),n.u.Hc(Rl)?n.D?this.a=t&&!e.bg():this.a=!0:n.u.Hc(Oa)?t?this.a=!(e.Uf().Kc().Ob()||e.Wf().Kc().Ob()):this.a=!1:this.a=!1}function fHn(n,e){var t,i,r,c;for(t=n.o.a,c=u(u(ot(n.r,e),21),87).Kc();c.Ob();)r=u(c.Pb(),117),r.e.a=(i=r.b,i.pf((He(),oo))?i.ag()==(en(),Wn)?-i.Mf().a-$(B(i.of(oo))):t+$(B(i.of(oo))):i.ag()==(en(),Wn)?-i.Mf().a:t)}function hHn(n,e){var t,i,r,c;t=u(v(n,(cn(),Lo)),88),c=u(z(e,Tv),64),r=u(v(n,Ft),101),r!=(Ai(),Qf)&&r!=Ia?c==(en(),sc)&&(c=Ken(e,t),c==sc&&(c=zp(t))):(i=hGn(e),i>0?c=zp(t):c=xk(zp(t))),ht(e,Tv,c)}function wMe(n,e){var t;e.Ug("Partition preprocessing",1),t=u(Wr(ut(rc(ut(new Cn(null,new On(n.a,16)),new zgn),new Xgn),new Vgn),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[(Gu(),Yr)]))),15),qt(t.Oc(),new Wgn),e.Vg()}function gMe(n,e){var t,i,r,c,s;for(s=n.j,e.a!=e.b&&Yt(s,new Tpn),r=s.c.length/2|0,i=0;i<r;i++)c=(Nn(i,s.c.length),u(s.c[i],113)),c.c&&gi(c.d,e.a);for(t=r;t<s.c.length;t++)c=(Nn(t,s.c.length),u(s.c[t],113)),c.c&&gi(c.d,e.b)}function pMe(n,e,t){var i,r,c;return i=n.c[e.c.p][e.p],r=n.c[t.c.p][t.p],i.a!=null&&r.a!=null?(c=tD(i.a,r.a),c<0?hy(n,e,t):c>0&&hy(n,t,e),c):i.a!=null?(hy(n,e,t),-1):r.a!=null?(hy(n,t,e),1):0}function mMe(n,e){var t,i,r,c,s;for(r=e.b.b,n.a=F(rs,kw,15,r,0,1),n.b=F(so,Xh,28,r,16,1),s=ge(e.b,0);s.b!=s.d.c;)c=u(be(s),40),n.a[c.g]=new Mt;for(i=ge(e.a,0);i.b!=i.d.c;)t=u(be(i),65),n.a[t.b.g].Fc(t),n.a[t.c.g].Fc(t)}function lHn(n,e){var t,i,r,c;n.Pj()?(t=n.Ej(),c=n.Qj(),++n.j,n.qj(t,n.Zi(t,e)),i=n.Ij(3,null,e,t,c),n.Mj()?(r=n.Nj(e,null),r?(r.nj(i),r.oj()):n.Jj(i)):n.Jj(i)):(eOn(n,e),n.Mj()&&(r=n.Nj(e,null),r&&r.oj()))}function Knn(n,e,t){var i,r,c;n.Pj()?(c=n.Qj(),Lk(n,e,t),i=n.Ij(3,null,t,e,c),n.Mj()?(r=n.Nj(t,null),n.Tj()&&(r=n.Uj(t,r)),r?(r.nj(i),r.oj()):n.Jj(i)):n.Jj(i)):(Lk(n,e,t),n.Mj()&&(r=n.Nj(t,null),r&&r.oj()))}function jS(n,e){var t,i,r,c,s;for(s=ru(n.e.Dh(),e),r=new EE,t=u(n.g,124),c=n.i;--c>=0;)i=t[c],s.am(i.Lk())&&ve(r,i);!uzn(n,r)&&fo(n.e)&&t4(n,e.Jk()?V1(n,6,e,(Ln(),sr),null,-1,!1):V1(n,e.tk()?2:1,e,null,null,-1,!1))}function vMe(n,e){var t,i,r,c,s;return n.a==(jm(),x8)?!0:(c=e.a.c,t=e.a.c+e.a.b,!(e.j&&(i=e.A,s=i.c.c.a-i.o.a/2,r=c-(i.n.a+i.o.a),r>s)||e.q&&(i=e.C,s=i.c.c.a-i.o.a/2,r=i.n.a-t,r>s)))}function aHn(n){DD();var e,t,i,r,c,s,f;for(t=new Ql,r=new M(n.e.b);r.a<r.c.c.length;)for(i=u(E(r),30),s=new M(i.a);s.a<s.c.c.length;)c=u(E(s),10),f=n.g[c.p],e=u(Df(t,f),15),e||(e=new Z,s1(t,f,e)),e.Fc(c);return t}function dHn(n){var e;return n.Db&64?Hs(n):(e=new ls(Hs(n)),e.a+=" (startX: ",hg(e,n.j),e.a+=", startY: ",hg(e,n.k),e.a+=", endX: ",hg(e,n.b),e.a+=", endY: ",hg(e,n.c),e.a+=", identifier: ",Er(e,n.d),e.a+=")",e.a)}function Bnn(n){var e;return n.Db&64?p5(n):(e=new ls(p5(n)),e.a+=" (ordered: ",ql(e,(n.Bb&256)!=0),e.a+=", unique: ",ql(e,(n.Bb&512)!=0),e.a+=", lowerBound: ",CL(e,n.s),e.a+=", upperBound: ",CL(e,n.t),e.a+=")",e.a)}function bHn(n,e,t,i,r,c,s,f){var h;return L(n.Cb,90)&&hw(Zu(u(n.Cb,90)),4),zc(n,t),n.f=i,hm(n,r),am(n,c),fm(n,s),lm(n,!1),u1(n,!0),dm(n,f),c1(n,!0),e1(n,0),n.b=0,Z0(n,1),h=Kf(n,e,null),h&&h.oj(),sx(n,!1),n}function wHn(n,e){var t,i,r,c;return t=u(Dc(n.a,e),525),t||(i=new VD(e),r=(UT(),Uf?null:i.c),c=qo(r,0,y.Math.max(0,RM(r,wu(46)))),Jae(i,wHn(n,c)),(Uf?null:i.c).length==0&&CSn(i,new RU),Lr(n.a,Uf?null:i.c,i),i)}function kMe(n,e){var t;n.b=e,n.g=new Z,t=MMe(n.b),n.e=t,n.f=t,n.c=on(un(v(n.b,(aS(),_un)))),n.a=B(v(n.b,(He(),x2))),n.a==null&&(n.a=1),$(n.a)>1?n.e*=$(n.a):n.f/=$(n.a),_6e(n),X8e(n),USe(n),U(n.b,(M5(),pI),n.g)}function gHn(n,e,t){var i,r,c,s,f,h;for(i=0,h=t,e||(i=t*(n.c.length-1),h*=-1),c=new M(n);c.a<c.c.c.length;){for(r=u(E(c),10),U(r,(cn(),Ch),(Bh(),nA)),r.o.a=i,f=h1(r,(en(),Zn)).Kc();f.Ob();)s=u(f.Pb(),12),s.n.a=i;i+=h}}function e3(n,e,t){var i,r,c,s,f,h;return f=n.pl(t),f!=t?(s=n.g[e],h=f,O6(n,e,n.Zi(e,h)),c=s,n.Ri(e,h,c),n.al()&&(i=t,r=n.Oj(i,null),!u(f,54).Ph()&&(r=n.Nj(h,r)),r&&r.oj()),fo(n.e)&&t4(n,n.Ij(9,t,f,e,!1)),f):t}function yMe(n,e){var t,i,r,c;for(i=new M(n.a.a);i.a<i.c.c.length;)t=u(E(i),194),t.g=!0;for(c=new M(n.a.b);c.a<c.c.c.length;)r=u(E(c),86),r.k=on(un(n.e.Kb(new bi(r,e)))),r.d.g=r.d.g&on(un(n.e.Kb(new bi(r,e))));return n}function pHn(n,e){var t,i;if(n.c.length!=0){if(n.c.length==2)t3((Nn(0,n.c.length),u(n.c[0],10)),(Co(),nl)),t3((Nn(1,n.c.length),u(n.c[1],10)),Sa);else for(i=new M(n);i.a<i.c.c.length;)t=u(E(i),10),t3(t,e);n.c.length=0}}function mHn(n){var e,t,i,r,c;if(t=(e=u(of(lr),9),new _o(e,u(xs(e,e.length),9),0)),c=u(v(n,(W(),Xu)),10),c)for(r=new M(c.j);r.a<r.c.c.length;)i=u(E(r),12),x(v(i,st))===x(n)&&L6(new Lf(i.b))&&_s(t,i.j);return t}function vHn(n,e,t){var i,r,c,s,f;if(!n.d[t.p]){for(r=new ie(ce(Qt(t).a.Kc(),new En));pe(r);){for(i=u(fe(r),18),f=i.d.i,s=new ie(ce(ji(f).a.Kc(),new En));pe(s);)c=u(fe(s),18),c.c.i==e&&(n.a[c.p]=!0);vHn(n,e,f)}n.d[t.p]=!0}}function jMe(n,e){var t,i,r,c,s,f,h;if(i=dKn(n.Db&254),i==1)n.Eb=null;else if(c=cd(n.Eb),i==2)r=Bx(n,e),n.Eb=c[r==0?1:0];else{for(s=F(ki,Kn,1,i-1,5,1),t=2,f=0,h=0;t<=128;t<<=1)t==e?++f:n.Db&t&&(s[h++]=c[f++]);n.Eb=s}n.Db&=~e}function Fnn(n){var e;switch(e=0,n){case 105:e=2;break;case 109:e=8;break;case 115:e=4;break;case 120:e=16;break;case 117:e=32;break;case 119:e=64;break;case 70:e=256;break;case 72:e=128;break;case 88:e=512;break;case 44:e=Gs}return e}function EMe(n,e,t,i,r){var c,s,f,h;if(x(n)===x(e)&&i==r){pUn(n,i,t);return}for(f=0;f<i;f++){for(s=0,c=n[f],h=0;h<r;h++)s=nr(nr(er(vi(c,mr),vi(e[h],mr)),vi(t[f+h],mr)),vi(Se(s),mr)),t[f+h]=Se(s),s=U1(s,32);t[f+r]=Se(s)}}function MMe(n){var e,t,i,r,c,s,f,h,l,a,d;for(a=0,l=0,r=n.a,f=r.a.gc(),i=r.a.ec().Kc();i.Ob();)t=u(i.Pb(),567),e=(t.b&&xR(t),t.a),d=e.a,s=e.b,a+=d+s,l+=d*s;return h=y.Math.sqrt(400*f*l-4*l+a*a)+a,c=2*(100*f-1),c==0?h:h/c}function kHn(n,e){e.b!=0&&(isNaN(n.s)?n.s=$((oe(e.b!=0),B(e.a.a.c))):n.s=y.Math.min(n.s,$((oe(e.b!=0),B(e.a.a.c)))),isNaN(n.c)?n.c=$((oe(e.b!=0),B(e.c.b.c))):n.c=y.Math.max(n.c,$((oe(e.b!=0),B(e.c.b.c)))))}function D5(n){var e,t,i,r;for(e=null,i=$h(Eo(S(C(Ao,1),Kn,20,0,[(!n.b&&(n.b=new Dn(he,n,4,7)),n.b),(!n.c&&(n.c=new Dn(he,n,5,8)),n.c)])));pe(i);)if(t=u(fe(i),84),r=Gr(t),!e)e=St(r);else if(e!=St(r))return!0;return!1}function aR(n,e){var t,i,r,c;n.Pj()?(t=n.i,c=n.Qj(),ek(n,e),i=n.Ij(3,null,e,t,c),n.Mj()?(r=n.Nj(e,null),n.Tj()&&(r=n.Uj(e,r)),r?(r.nj(i),r.oj()):n.Jj(i)):n.Jj(i)):(ek(n,e),n.Mj()&&(r=n.Nj(e,null),r&&r.oj()))}function TMe(n,e){var t,i,r,c;if(c=B7(n.a,e.b),!c)throw T(new Ar("Invalid hitboxes for scanline overlap calculation."));for(r=!1,i=n.a.a.ec().Kc();i.Ob();)if(t=u(i.Pb(),68),i6e(e.b,t))Dhe(n.b.a,e.b,t),r=!0;else if(r)break}function CMe(n){var e;if(!n.a)throw T(new Ar("IDataType class expected for layout option "+n.f));if(e=l3e(n.a),e==null)throw T(new Ar("Couldn't create new instance of property '"+n.f+"'. "+NVn+(ll(lE),lE.k)+dcn));return u(e,423)}function dR(n){var e,t,i,r,c;return c=n.Ph(),c&&c.Vh()&&(r=ea(n,c),r!=c)?(t=n.Fh(),i=(e=n.Fh(),e>=0?n.Ah(null):n.Ph().Th(n,-1-e,null,null)),n.Bh(u(r,54),t),i&&i.oj(),n.vh()&&n.wh()&&t>-1&&it(n,new Mi(n,9,t,c,r)),r):c}function _nn(n,e){var t,i,r,c,s;for(c=n.b.Ce(e),i=(t=n.a.get(c),t??F(ki,Kn,1,0,5,1)),s=0;s<i.length;s++)if(r=i[s],n.b.Be(e,r.ld()))return i.length==1?(i.length=0,Pae(n.a,c)):i.splice(s,1),--n.c,++n.b.g,r.md();return null}function yHn(n){var e,t,i,r,c,s,f,h;for(s=0,c=n.f.e,i=0;i<c.c.length;++i)for(f=(Nn(i,c.c.length),u(c.c[i],153)),r=i+1;r<c.c.length;++r)h=(Nn(r,c.c.length),u(c.c[r],153)),t=J1(f.d,h.d),e=t-n.a[f.a][h.a],s+=n.i[f.a][h.a]*e*e;return s}function SMe(n,e){var t;if(!kt(e,(cn(),ou))&&(t=V7e(u(v(e,ysn),371),u(v(n,ou),171)),U(e,ysn,t),!pe(new ie(ce(Ml(e).a.Kc(),new En)))))switch(t.g){case 1:U(e,ou,(Yo(),_8));break;case 2:U(e,ou,(Yo(),H8))}}function PMe(n,e){var t;_Se(n),n.a=(t=new ML,qt(new Cn(null,new On(e.d,16)),new T7n(t)),t),iPe(n,u(v(e.b,(cn(),EH)),349)),$9e(n),$Me(n),J7e(n),x9e(n),WOe(n,e),qt(rc(new Cn(null,oLn(Lwe(n.b).a)),new spn),new fpn),e.a=!1,n.a=null}function Hnn(){Hnn=R,bre=new Tn(Srn,(_n(),!1)),wre=new Tn(Prn,7),Y(0),vre=new Tn(Irn,Y(0)),pre=new Tn(Orn,Y(-1)),Mln=(b5(),lq),kre=new Tn(Arn,Mln),jln=(d5(),Nj),gre=new Tn(Lrn,jln),Eln=(RT(),aq),mre=new Tn(Nrn,Eln)}function jHn(){cnn.call(this,tv,(K1(),voe)),this.p=null,this.a=null,this.f=null,this.n=null,this.g=null,this.c=null,this.i=null,this.j=null,this.d=null,this.b=null,this.e=null,this.k=null,this.o=null,this.s=null,this.q=!1,this.r=!1}function Mm(){Mm=R,vU=new gp(JXn,0),mA=new gp("INSIDE_SELF_LOOPS",1),vA=new gp("MULTI_EDGES",2),pA=new gp("EDGE_LABELS",3),mU=new gp("PORTS",4),gA=new gp("COMPOUND",5),wA=new gp("CLUSTERS",6),pU=new gp("DISCONNECTED",7)}function EHn(n,e,t){var i,r,c;n.Pj()?(c=n.Qj(),++n.j,n.qj(e,n.Zi(e,t)),i=n.Ij(3,null,t,e,c),n.Mj()?(r=n.Nj(t,null),r?(r.nj(i),r.oj()):n.Jj(i)):n.Jj(i)):(++n.j,n.qj(e,n.Zi(e,t)),n.Mj()&&(r=n.Nj(t,null),r&&r.oj()))}function MHn(n,e){var t,i,r;if(e==0)return(n.a[0]&1)!=0;if(e<0)throw T(new _E("Negative bit address"));if(r=e>>5,r>=n.d)return n.e<0;if(t=n.a[r],e=1<<(e&31),n.e<0){if(i=Oxn(n),r<i)return!1;i==r?t=-t:t=~t}return(t&e)!=0}function IMe(n,e,t,i){var r;u(t.b,68),u(t.b,68),u(i.b,68),u(i.b,68),r=mi(Fi(u(t.b,68).c),u(i.b,68).c),JM(r,x_n(u(t.b,68),u(i.b,68),r)),u(i.b,68),u(i.b,68),u(i.b,68).c.a+r.a,u(i.b,68).c.b+r.b,u(i.b,68),nu(i.a,new RV(n,e,i))}function qnn(n,e){var t,i,r,c,s,f,h;if(c=e.e,c){for(t=dR(c),i=u(n.g,689),s=0;s<n.i;++s)if(h=i[s],Nx(h)==t&&(r=(!h.d&&(h.d=new ti(jr,h,1)),h.d),f=u(t.Mh(SR(c,c.Cb,c.Db>>16)),15).dd(c),f<r.i))return qnn(n,u(N(r,f),89))}return e}function b(n,e,t){var i=rI,r,c=i[n],s=c instanceof Array?c[0]:null;c&&!s?o=c:(o=(r=e&&e.prototype,!r&&(r=rI[e]),w2e(r)),o.Sm=t,!e&&(o.Tm=Q2),i[n]=o);for(var f=3;f<arguments.length;++f)arguments[f].prototype=o;s&&(o.Rm=s)}function pe(n){for(var e;!u(Pe(n.a),51).Ob();){if(n.d=k6e(n),!n.d)return!1;if(n.a=u(n.d.Pb(),51),L(n.a,38)){if(e=u(n.a,38),n.a=e.a,!n.b&&(n.b=new Mg),W1(n.b,n.d),e.b)for(;!t6(e.b);)W1(n.b,u(bwe(e.b),51));n.d=e.d}}return!0}function Unn(n,e){var t,i,r,c;for(r=1,e.j=!0,c=null,i=new M(xg(e));i.a<i.c.c.length;)t=u(E(i),218),n.c[t.c]||(n.c[t.c]=!0,c=HC(t,e),t.f?r+=Unn(n,c):!c.j&&t.a==t.e.e-t.d.e&&(t.f=!0,fi(n.p,t),r+=Unn(n,c)));return r}function OMe(n){var e,t,i;for(t=new M(n.a.a.b);t.a<t.c.c.length;)e=u(E(t),86),i=(Jn(0),0),i>0&&(!(hl(n.a.c)&&e.n.d)&&!(vg(n.a.c)&&e.n.b)&&(e.g.d+=y.Math.max(0,i/2-.5)),!(hl(n.a.c)&&e.n.a)&&!(vg(n.a.c)&&e.n.c)&&(e.g.a-=i-1))}function THn(n){var e,t,i,r,c;if(r=new Z,c=kUn(n,r),e=u(v(n,(W(),Xu)),10),e)for(i=new M(e.j);i.a<i.c.c.length;)t=u(E(i),12),x(v(t,st))===x(n)&&(c=y.Math.max(c,kUn(t,r)));return r.c.length==0||U(n,y2,c),c!=-1?r:null}function CHn(n,e,t){var i,r,c,s,f,h;c=u(sn(e.e,0),18).c,i=c.i,r=i.k,h=u(sn(t.g,0),18).d,s=h.i,f=s.k,r==(Vn(),Ti)?U(n,(W(),yf),u(v(i,yf),12)):U(n,(W(),yf),c),f==Ti?U(n,(W(),Es),u(v(s,Es),12)):U(n,(W(),Es),h)}function Gnn(n){var e,t,i;this.c=n,i=u(v(n,(cn(),Lo)),88),e=$(B(v(n,oO))),t=$(B(v(n,khn))),i==(ci(),Kr)||i==Xr||i==Jf?this.b=e*t:this.b=1/(e*t),this.j=$(B(v(n,S2))),this.e=$(B(v(n,g0))),this.f=n.b.c.length}function znn(n,e){var t,i,r,c,s;return e&=63,t=n.h,i=(t&Cy)!=0,i&&(t|=-1048576),e<22?(s=t>>e,c=n.m>>e|t<<22-e,r=n.l>>e|n.m<<22-e):e<44?(s=i?Ol:0,c=t>>e-22,r=n.m>>e-22|t<<44-e):(s=i?Ol:0,c=i?ro:0,r=t>>e-44),Yc(r&ro,c&ro,s&Ol)}function bR(n){var e,t,i,r,c,s;for(this.c=new Z,this.d=n,i=Pt,r=Pt,e=li,t=li,s=ge(n,0);s.b!=s.d.c;)c=u(be(s),8),i=y.Math.min(i,c.a),r=y.Math.min(r,c.b),e=y.Math.max(e,c.a),t=y.Math.max(t,c.b);this.a=new Ho(i,r,e-i,t-r)}function SHn(n,e){var t,i,r,c,s,f;for(c=new M(n.b);c.a<c.c.c.length;)for(r=u(E(c),30),f=new M(r.a);f.a<f.c.c.length;)for(s=u(E(f),10),s.k==(Vn(),Sc)&&t3(s,e),i=new ie(ce(Qt(s).a.Kc(),new En));pe(i);)t=u(fe(i),18),eRn(t,e)}function AMe(n,e){var t,i,r;for(e.Ug("Layer constraint preprocessing",1),t=new Z,r=new xi(n.a,0);r.b<r.d.gc();)i=(oe(r.b<r.d.gc()),u(r.d.Xb(r.c=r.b++),10)),r6e(i)&&(dye(i),Fn(t.c,i),bo(r));t.c.length==0||U(n,(W(),hH),t),e.Vg()}function LMe(n){var e,t;for(n.e=F(ye,_e,28,n.p.c.length,15,1),n.k=F(ye,_e,28,n.p.c.length,15,1),t=new M(n.p);t.a<t.c.c.length;)e=u(E(t),10),n.e[e.p]=wl(new ie(ce(ji(e).a.Kc(),new En))),n.k[e.p]=wl(new ie(ce(Qt(e).a.Kc(),new En)))}function NMe(n){var e,t,i,r,c,s;for(r=0,n.q=new Z,e=new ni,s=new M(n.p);s.a<s.c.c.length;){for(c=u(E(s),10),c.p=r,i=new ie(ce(Qt(c).a.Kc(),new En));pe(i);)t=u(fe(i),18),fi(e,t.d.i);e.a.Bc(c)!=null,nn(n.q,new R6(e)),e.a.$b(),++r}}function PHn(n,e){var t,i,r,c,s,f,h,l,a;if(n.a.f>0&&L(e,44)&&(n.a._j(),l=u(e,44),h=l.ld(),c=h==null?0:mt(h),s=aV(n.a,c),t=n.a.d[s],t)){for(i=u(t.g,379),a=t.i,f=0;f<a;++f)if(r=i[f],r.Bi()==c&&r.Fb(l))return PHn(n,l),!0}return!1}function DMe(n){var e,t,i,r,c,s,f;if(e=n.qi(ks),e&&(f=Ae(gf((!e.b&&(e.b=new lo((An(),ar),pc,e)),e.b),"settingDelegates")),f!=null)){for(t=new Z,r=ww(f,"\\w+"),c=0,s=r.length;c<s;++c)i=r[c],Fn(t.c,i);return t}return Ln(),Ln(),sr}function $Me(n){var e,t,i,r;for(r=u(ot(n.a,(ow(),GI)),15).Kc();r.Ob();)i=u(r.Pb(),105),t=(e=Cp(i.k),e.Hc((en(),Xn))?e.Hc(Zn)?e.Hc(ae)?e.Hc(Wn)?null:une:sne:one:cne),T4(n,i,t[0],(Lb(),c0),0),T4(n,i,t[1],va,1),T4(n,i,t[2],u0,1)}function xMe(n,e){var t,i;t=gPe(e),iSe(n,e,t),NFn(n.a,u(v(Hi(e.b),(W(),P3)),234)),KPe(n),uye(n,e),i=F(ye,_e,28,e.b.j.c.length,15,1),VR(n,e,(en(),Xn),i,t),VR(n,e,Zn,i,t),VR(n,e,ae,i,t),VR(n,e,Wn,i,t),n.a=null,n.c=null,n.b=null}function Xnn(n,e,t){switch(e){case 7:!n.e&&(n.e=new Dn(Vt,n,7,4)),me(n.e),!n.e&&(n.e=new Dn(Vt,n,7,4)),Kt(n.e,u(t,16));return;case 8:!n.d&&(n.d=new Dn(Vt,n,8,5)),me(n.d),!n.d&&(n.d=new Dn(Vt,n,8,5)),Kt(n.d,u(t,16));return}FZ(n,e,t)}function Vnn(n,e){var t,i,r,c,s;if(x(e)===x(n))return!0;if(!L(e,15)||(s=u(e,15),n.gc()!=s.gc()))return!1;for(c=s.Kc(),i=n.Kc();i.Ob();)if(t=i.Pb(),r=c.Pb(),!(x(t)===x(r)||t!=null&&rt(t,r)))return!1;return!0}function RMe(n,e){var t,i,r,c;for(c=u(Wr(rc(rc(new Cn(null,new On(e.b,16)),new lgn),new agn),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[(Gu(),Yr)]))),15),c.Jc(new dgn),t=0,r=c.Kc();r.Ob();)i=u(r.Pb(),12),i.p==-1&&Wnn(n,i,t++)}function IHn(n){switch(n.g){case 0:return new o8n;case 1:return new c8n;case 2:return new u8n;case 3:return new JMn;case 4:return new gIn;default:throw T(new Gn("No implementation is available for the node placer "+(n.f!=null?n.f:""+n.g)))}}function OHn(n){switch(n.g){case 0:return new aW;case 1:return new X5n;case 2:return new z5n;case 3:return new U5n;case 4:return new FTn;default:throw T(new Gn("No implementation is available for the cycle breaker "+(n.f!=null?n.f:""+n.g)))}}function KMe(n,e){var t,i,r,c,s;i=new Mt,xt(i,e,i.c.b,i.c);do for(t=(oe(i.b!=0),u(Xo(i,i.a.a),40)),n.b[t.g]=1,c=ge(t.d,0);c.b!=c.d.c;)r=u(be(c),65),s=r.c,n.b[s.g]==1?Re(n.a,r):n.b[s.g]==2?n.b[s.g]=1:xt(i,s,i.c.b,i.c);while(i.b!=0)}function BMe(n,e,t){var i;i=null,e&&(i=e.d),O5(n,new d4(e.n.a-i.b+t.a,e.n.b-i.d+t.b)),O5(n,new d4(e.n.a-i.b+t.a,e.n.b+e.o.b+i.a+t.b)),O5(n,new d4(e.n.a+e.o.a+i.c+t.a,e.n.b-i.d+t.b)),O5(n,new d4(e.n.a+e.o.a+i.c+t.a,e.n.b+e.o.b+i.a+t.b))}function Wnn(n,e,t){var i,r,c;for(e.p=t,c=$h(Eo(S(C(Ao,1),Kn,20,0,[new e4(e),new ip(e)])));pe(c);)i=u(fe(c),12),i.p==-1&&Wnn(n,i,t);if(e.i.k==(Vn(),Ti))for(r=new M(e.i.j);r.a<r.c.c.length;)i=u(E(r),12),i!=e&&i.p==-1&&Wnn(n,i,t)}function FMe(n,e){var t,i,r,c,s,f;for(i=new Ql,s=HT(new Fu(n.g)),c=s.a.ec().Kc();c.Ob();){if(r=u(c.Pb(),10),!r){e.bh("There are no classes in a balanced layout.");break}f=n.j[r.p],t=u(Df(i,f),15),t||(t=new Z,s1(i,f,t)),t.Fc(r)}return i}function AHn(n){var e,t,i,r,c;if(r=u(Wr(cJ(sJ(n)),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[(Gu(),Yr)]))),15),i=i2,r.gc()>=2)for(t=r.Kc(),e=B(t.Pb());t.Ob();)c=e,e=B(t.Pb()),i=y.Math.min(i,(Jn(e),e-(Jn(c),c)));return i}function _Me(n,e){var t,i,r;for(r=new Z,i=ge(e.a,0);i.b!=i.d.c;)t=u(be(i),65),t.b.g==n.g&&!Sn(t.b.c,OP)&&x(v(t.b,(lc(),Ph)))!==x(v(t.c,Ph))&&!Ag(new Cn(null,new On(r,16)),new lkn(t))&&Fn(r.c,t);return Yt(r,new V3n),r}function HMe(n,e){var t,i,r;if(x(e)===x(Pe(n)))return!0;if(!L(e,15)||(i=u(e,15),r=n.gc(),r!=i.gc()))return!1;if(L(i,59)){for(t=0;t<r;t++)if(!sh(n.Xb(t),i.Xb(t)))return!1;return!0}else return q9e(n.Kc(),i.Kc())}function qMe(n,e,t,i,r,c){var s,f,h,l;for(f=!s4(ut(n.Oc(),new Z3(new Cgn))).Bd((Va(),v3)),s=n,c==(ci(),us)&&(s=Qo(s)),l=s.Kc();l.Ob();)h=u(l.Pb(),72),h.n.a=e.a,f?h.n.b=e.b+(i.b-h.o.b)/2:r?h.n.b=e.b:h.n.b=e.b+i.b-h.o.b,e.a+=h.o.a+t}function UMe(n,e){var t,i,r,c,s;for(e.Ug("Port side processing",1),s=new M(n.a);s.a<s.c.c.length;)r=u(E(s),10),GUn(r);for(i=new M(n.b);i.a<i.c.c.length;)for(t=u(E(i),30),c=new M(t.a);c.a<c.c.c.length;)r=u(E(c),10),GUn(r);e.Vg()}function GMe(n,e,t){var i,r,c,s,f,h,l;if(t)for(c=t.a.length,i=new Qa(c),f=(i.b-i.a)*i.c<0?(F1(),xa):new q1(i);f.Ob();)s=u(f.Pb(),17),h=N4(t,s.a),h&&(l=Ame(bl(h,wF),e),Ve(n.f,l,h),r=Eh in h.a,r&&X4(l,bl(h,Eh)),gS(h,l),Cnn(h,l))}function zMe(n,e,t){var i,r,c,s,f;if(f=t,!f&&(f=QV(new op,0)),f.Ug(IXn,1),SGn(n.c,e),s=JAe(n.a,e),s.gc()==1)sGn(u(s.Xb(0),36),f);else for(c=1/s.gc(),r=s.Kc();r.Ob();){if(i=u(r.Pb(),36),t.$g())return;sGn(i,f.eh(c))}she(n.a,s,e),MSe(e),f.Vg()}function LHn(n,e,t){var i,r,c,s,f;if(r=n.f,!r&&(r=u(n.a.a.ec().Kc().Pb(),60)),I5(r,e,t),n.a.a.gc()!=1)for(i=e*t,s=n.a.a.ec().Kc();s.Ob();)c=u(s.Pb(),60),c!=r&&(f=xp(c),f.f.d?(c.d.d+=i+_f,c.d.a-=i+_f):f.f.a&&(c.d.a-=i+_f))}function wR(n,e,t,i,r){var c,s,f,h,l,a,d,g,p;return s=t-n,f=i-e,c=y.Math.atan2(s,f),h=c+QK,l=c-QK,a=r*y.Math.sin(h)+n,g=r*y.Math.cos(h)+e,d=r*y.Math.sin(l)+n,p=r*y.Math.cos(l)+e,Af(S(C(Ei,1),J,8,0,[new V(a,g),new V(d,p)]))}function XMe(n,e,t,i){var r,c,s,f,h,l,a,d;r=t,a=e,c=a;do c=n.a[c.p],f=(d=n.g[c.p],$(n.p[d.p])+$(n.d[c.p])-c.d.d),h=Xme(c,i),h&&(s=(l=n.g[h.p],$(n.p[l.p])+$(n.d[h.p])+h.o.b+h.d.a),r=y.Math.min(r,f-(s+jg(n.k,c,h))));while(a!=c);return r}function VMe(n,e,t,i){var r,c,s,f,h,l,a,d;r=t,a=e,c=a;do c=n.a[c.p],s=(d=n.g[c.p],$(n.p[d.p])+$(n.d[c.p])+c.o.b+c.d.a),h=Zve(c,i),h&&(f=(l=n.g[h.p],$(n.p[l.p])+$(n.d[h.p])-h.d.d),r=y.Math.min(r,f-(s+jg(n.k,c,h))));while(a!=c);return r}function NHn(n,e){var t;if(e.Ug("Equal Whitespace Eliminator",1),Nf(n,(_h(),GO)))t5e(u(z(n,GO),15),$(B(z(n,A3))),(t=$(B(z(n,s9))),$(B(z(n,(Bf(),l9)))),t));else throw T(new _l("The graph does not contain rows."));e.Vg()}function z(n,e){var t,i;return i=(!n.o&&(n.o=new Ou((Mc(),il),C1,n,0)),gf(n.o,e)),i??(t=e.Sg(),L(t,4)&&(t==null?(!n.o&&(n.o=new Ou((Mc(),il),C1,n,0)),VC(n.o,e)):(!n.o&&(n.o=new Ou((Mc(),il),C1,n,0)),zk(n.o,e,t))),t)}function lw(){lw=R,Qs=new bg("H_LEFT",0),xl=new bg("H_CENTER",1),Ys=new bg("H_RIGHT",2),nf=new bg("V_TOP",3),el=new bg("V_CENTER",4),Ts=new bg("V_BOTTOM",5),No=new bg("INSIDE",6),Zs=new bg("OUTSIDE",7),Ms=new bg("H_PRIORITY",8)}function WMe(n,e){var t,i,r,c,s,f,h;if(!e.f)throw T(new Gn("The input edge is not a tree edge."));for(c=null,r=et,i=new M(n.d);i.a<i.c.c.length;)t=u(E(i),218),f=t.d,h=t.e,fR(n,f,e)&&!fR(n,h,e)&&(s=h.e-f.e-t.a,s<r&&(r=s,c=t));return c}function JMe(n){var e,t,i,r,c,s;if(!(n.f.e.c.length<=1)){e=0,r=yHn(n),t=Pt;do{for(e>0&&(r=t),s=new M(n.f.e);s.a<s.c.c.length;)c=u(E(s),153),!on(un(v(c,(Uk(),Ton))))&&(i=fIe(n,c),tt(ff(c.d),i));t=yHn(n)}while(!Dwe(n,e++,r,t))}}function QMe(n,e){var t,i,r,c,s;for(c=n.g.a,s=n.g.b,i=new M(n.d);i.a<i.c.c.length;)t=u(E(i),72),r=t.n,n.a==(xf(),lv)||n.i==(en(),Zn)?r.a=c:n.a==av||n.i==(en(),Wn)?r.a=c+n.j.a-t.o.a:r.a=c+(n.j.a-t.o.a)/2,r.b=s,tt(r,e),s+=t.o.b+n.e}function YMe(n,e){var t,i,r,c,s,f,h,l,a,d;l=n,h=Y6(l,"individualSpacings"),h&&(i=Nf(e,(He(),$3)),s=!i,s&&(r=new _A,ht(e,$3,r)),f=u(z(e,$3),385),d=h,c=null,d&&(c=(a=P$(d,F(fn,J,2,0,6,1)),new PL(d,a))),c&&(t=new MTn(d,f),qi(c,t)))}function ZMe(n,e){var t,i,r,c,s,f,h,l,a,d,g;return h=null,d=n,a=null,(jWn in d.a||EWn in d.a||BP in d.a)&&(l=null,g=zQ(e),s=Y6(d,jWn),t=new Wkn(g),b8e(t.a,s),f=Y6(d,EWn),i=new cyn(g),w8e(i.a,f),c=Sb(d,BP),r=new syn(g),l=(Zke(r.a,c),c),a=l),h=a,h}function nTe(n,e){var t,i,r;if(e===n)return!0;if(L(e,552)){if(r=u(e,849),n.a.d!=r.a.d||Sg(n).gc()!=Sg(r).gc())return!1;for(i=Sg(r).Kc();i.Ob();)if(t=u(i.Pb(),425),$An(n,t.a.ld())!=u(t.a.md(),16).gc())return!1;return!0}return!1}function eTe(n){var e,t,i,r;return i=u(n.a,17).a,r=u(n.b,17).a,e=i,t=r,i==0&&r==0?t-=1:i==-1&&r<=0?(e=0,t-=2):i<=0&&r>0?(e-=1,t-=1):i>=0&&r<0?(e+=1,t+=1):i>0&&r>=0?(e-=1,t+=1):(e+=1,t-=1),new bi(Y(e),Y(t))}function tTe(n,e){return n.c<e.c?-1:n.c>e.c?1:n.b<e.b?-1:n.b>e.b?1:n.a!=e.a?mt(n.a)-mt(e.a):n.d==(Z6(),e9)&&e.d==n9?-1:n.d==n9&&e.d==e9?1:0}function DHn(n,e){var t,i,r,c,s;return c=e.a,c.c.i==e.b?s=c.d:s=c.c,c.c.i==e.b?i=c.c:i=c.d,r=M8e(n.a,s,i),r>0&&r<i2?(t=XMe(n.a,i.i,r,n.c),I$n(n.a,i.i,-t),t>0):r<0&&-r<i2?(t=VMe(n.a,i.i,-r,n.c),I$n(n.a,i.i,t),t>0):!1}function iTe(n,e,t,i){var r,c,s,f,h,l,a,d;for(r=(e-n.d)/n.c.c.length,c=0,n.a+=t,n.d=e,d=new M(n.c);d.a<d.c.c.length;)a=u(E(d),27),l=a.g,h=a.f,eu(a,a.i+c*r),tu(a,a.j+i*t),Ob(a,a.g+r),Ib(a,n.a),++c,f=a.g,s=a.f,Enn(a,new V(f,s),new V(l,h))}function rTe(n){var e,t,i,r,c,s,f;if(n==null)return null;for(f=n.length,r=(f+1)/2|0,s=F(Ru,s2,28,r,15,1),f%2!=0&&(s[--r]=pen((zn(f-1,n.length),n.charCodeAt(f-1)))),t=0,i=0;t<r;++t)e=pen(Xi(n,i++)),c=pen(Xi(n,i++)),s[t]=(e<<4|c)<<24>>24;return s}function cTe(n){if(n.ze()){var e=n.c;e.Ae()?n.o="["+e.n:e.ze()?n.o="["+e.xe():n.o="[L"+e.xe()+";",n.b=e.we()+"[]",n.k=e.ye()+"[]";return}var t=n.j,i=n.d;i=i.split("/"),n.o=mx(".",[t,mx("$",i)]),n.b=mx(".",[t,mx(".",i)]),n.k=i[i.length-1]}function uTe(n,e){var t,i,r,c,s;for(s=null,c=new M(n.e.a);c.a<c.c.c.length;)if(r=u(E(c),125),r.b.a.c.length==r.g.a.c.length){for(i=r.e,s=Fje(r),t=r.e-u(s.a,17).a+1;t<r.e+u(s.b,17).a;t++)e[t]<e[i]&&(i=t);e[i]<e[r.e]&&(--e[r.e],++e[i],r.e=i)}}function gR(n){var e,t,i,r,c,s,f,h;for(r=Pt,i=li,t=new M(n.e.b);t.a<t.c.c.length;)for(e=u(E(t),30),s=new M(e.a);s.a<s.c.c.length;)c=u(E(s),10),h=$(n.p[c.p]),f=h+$(n.b[n.g[c.p].p]),r=y.Math.min(r,h),i=y.Math.max(i,f);return i-r}function $Hn(n){UR();var e,t,i,r;return i=ih(n,wu(35)),e=i==-1?n:(Ri(0,i,n.length),n.substr(0,i)),t=i==-1?null:(zn(i+1,n.length+1),n.substr(i+1)),r=j3e(Hdn,e),r?t!=null&&(r=ORn(r,(Jn(t),t))):(r=qNe(e),$3e(Hdn,e,r),t!=null&&(r=ORn(r,t))),r}function Jnn(n,e,t,i){var r,c,s,f,h;for(r=Cen(n,e),f=0,h=r.gc();f<h;++f)if(c=u(r.Xb(f),179),Sn(i,I4(Nr(n,c)))){if(s=q7(Nr(n,c)),t==null){if(s==null)return c}else if(Sn(t,s))return c}return null}function Qnn(n,e,t,i){var r,c,s,f,h;for(r=PR(n,e),f=0,h=r.gc();f<h;++f)if(c=u(r.Xb(f),179),Sn(i,I4(Nr(n,c)))){if(s=q7(Nr(n,c)),t==null){if(s==null)return c}else if(Sn(t,s))return c}return null}function oTe(n,e,t){var i,r,c,s,f,h;if(s=new EE,f=ru(n.e.Dh(),e),i=u(n.g,124),dr(),u(e,69).xk())for(c=0;c<n.i;++c)r=i[c],f.am(r.Lk())&&ve(s,r);else for(c=0;c<n.i;++c)r=i[c],f.am(r.Lk())&&(h=r.md(),ve(s,t?N5(n,e,c,s.i,h):h));return yJ(s)}function xHn(n){var e,t,i,r,c,s,f;if(n&&(e=n.qi(ks),e&&(s=Ae(gf((!e.b&&(e.b=new lo((An(),ar),pc,e)),e.b),"conversionDelegates")),s!=null))){for(f=new Z,i=ww(s,"\\w+"),r=0,c=i.length;r<c;++r)t=i[r],Fn(f.c,t);return f}return Ln(),Ln(),sr}function RHn(n,e){var t,i,r,c,s,f,h,l;for(s=e==1?C_:T_,c=s.a.ec().Kc();c.Ob();)for(r=u(c.Pb(),88),h=u(ot(n.f.c,r),21).Kc();h.Ob();)switch(f=u(h.Pb(),42),i=u(f.b,86),l=u(f.a,194),t=l.c,r.g){case 2:case 1:i.g.d+=t;break;case 4:case 3:i.g.c+=t}}function sTe(n,e){var t,i,r,c,s;for(t=new y5(wv),r=(Yp(),S(C(wv,1),G,232,0,[bv,D8,dv,Dw,p2,g2])),c=0,s=r.length;c<s;++c)i=r[c],gV(t,i,new Z);return qt(_r(ut(rc(new Cn(null,new On(n.b,16)),new Sgn),new Pgn),new i7n(e)),new r7n(t)),t}function ES(n,e,t){var i,r,c,s,f,h,l,a,d,g;for(c=e.Kc();c.Ob();)r=u(c.Pb(),27),a=r.i+r.g/2,g=r.j+r.f/2,h=n.f,s=h.i+h.g/2,f=h.j+h.f/2,l=a-s,d=g-f,i=y.Math.sqrt(l*l+d*d),l*=n.e/i,d*=n.e/i,t?(a-=l,g-=d):(a+=l,g+=d),eu(r,a-r.g/2),tu(r,g-r.f/2)}function Gg(n){var e,t,i;if(!n.c&&n.b!=null){for(e=n.b.length-4;e>=0;e-=2)for(t=0;t<=e;t+=2)(n.b[t]>n.b[t+2]||n.b[t]===n.b[t+2]&&n.b[t+1]>n.b[t+3])&&(i=n.b[t+2],n.b[t+2]=n.b[t],n.b[t]=i,i=n.b[t+3],n.b[t+3]=n.b[t+1],n.b[t+1]=i);n.c=!0}}function fTe(n,e){var t,i,r,c,s,f,h,l,a;for(l=-1,a=0,s=n,f=0,h=s.length;f<h;++f){for(c=s[f],t=new NPn(l==-1?n[0]:n[l],e,(w5(),TO)),i=0;i<c.length;i++)for(r=i+1;r<c.length;r++)kt(c[i],(W(),dt))&&kt(c[r],dt)&&dzn(t,c[i],c[r])>0&&++a;++l}return a}function Hs(n){var e,t;return t=new mo(Xa(n.Rm)),t.a+="@",Be(t,(e=mt(n)>>>0,e.toString(16))),n.Vh()?(t.a+=" (eProxyURI: ",Lc(t,n._h()),n.Kh()&&(t.a+=" eClass: ",Lc(t,n.Kh())),t.a+=")"):n.Kh()&&(t.a+=" (eClass: ",Lc(t,n.Kh()),t.a+=")"),t.a}function $5(n){var e,t,i,r;if(n.e)throw T(new Ar((ll(c_),RK+c_.k+KK)));for(n.d==(ci(),Jf)&&US(n,Kr),t=new M(n.a.a);t.a<t.c.c.length;)e=u(E(t),316),e.g=e.i;for(r=new M(n.a.b);r.a<r.c.c.length;)i=u(E(r),60),i.i=li;return n.b.cf(n),n}function hTe(n,e){var t,i,r,c,s;if(e<2*n.b)throw T(new Gn("The knot vector must have at least two time the dimension elements."));for(n.f=1,r=0;r<n.b;r++)nn(n.e,0);for(s=e+1-2*n.b,t=s,c=1;c<s;c++)nn(n.e,c/t);if(n.d)for(i=0;i<n.b;i++)nn(n.e,1)}function KHn(n,e){var t,i,r,c,s,f,h,l,a;if(l=e,a=u(pC(dD(n.i),l),27),!a)throw r=bl(l,Eh),f="Unable to find elk node for json object '"+r,h=f+"' Panic!",T(new eh(h));c=Sb(l,"edges"),t=new gTn(n,a),WEe(t.a,t.b,c),s=Sb(l,gF),i=new _kn(n),Z7e(i.a,s)}function BHn(n,e,t,i){var r,c,s,f,h;if(i!=null){if(r=n.d[e],r){for(c=r.g,h=r.i,f=0;f<h;++f)if(s=u(c[f],136),s.Bi()==t&&rt(i,s.ld()))return f}}else if(r=n.d[e],r){for(c=r.g,h=r.i,f=0;f<h;++f)if(s=u(c[f],136),x(s.ld())===x(i))return f}return-1}function Tm(n,e){var t,i,r;return t=e==null?Fr(wr(n.f,null)):a6(n.i,e),L(t,241)?(r=u(t,241),r.zi()==null,r):L(t,507)?(i=u(t,2037),r=i.a,r&&(r.yb==null||(e==null?Vc(n.f,null,r):$b(n.i,e,r))),r):null}function lTe(n){ben();var e,t,i,r,c,s,f;if(n==null||(r=n.length,r%2!=0))return null;for(e=iC(n),c=r/2|0,t=F(Ru,s2,28,c,15,1),i=0;i<c;i++){if(s=K9[e[i*2]],s==-1||(f=K9[e[i*2+1]],f==-1))return null;t[i]=(s<<4|f)<<24>>24}return t}function aTe(n,e,t){var i,r,c;if(r=u(Mr(n.i,e),314),!r)if(r=new k$n(n.d,e,t),Ip(n.i,e,r),eZ(e))g1e(n.a,e.c,e.b,r);else switch(c=Wje(e),i=u(Mr(n.p,c),252),c.g){case 1:case 3:r.j=!0,mL(i,e.b,r);break;case 4:case 2:r.k=!0,mL(i,e.c,r)}return r}function dTe(n,e){var t,i,r,c,s,f,h,l,a;for(h=Lh(n.c-n.b&n.a.length-1),l=null,a=null,c=new V6(n);c.a!=c.b;)r=u(xC(c),10),t=(f=u(v(r,(W(),yf)),12),f?f.i:null),i=(s=u(v(r,Es),12),s?s.i:null),(l!=t||a!=i)&&(pHn(h,e),l=t,a=i),Fn(h.c,r);pHn(h,e)}function bTe(n,e,t,i){var r,c,s,f,h,l;if(f=new EE,h=ru(n.e.Dh(),e),r=u(n.g,124),dr(),u(e,69).xk())for(s=0;s<n.i;++s)c=r[s],h.am(c.Lk())&&ve(f,c);else for(s=0;s<n.i;++s)c=r[s],h.am(c.Lk())&&(l=c.md(),ve(f,i?N5(n,e,s,f.i,l):l));return VY(f,t)}function FHn(n,e){var t,i,r,c,s,f,h,l;if(r=n.b[e.p],r>=0)return r;for(c=1,f=new M(e.j);f.a<f.c.c.length;)for(s=u(E(f),12),i=new M(s.g);i.a<i.c.c.length;)t=u(E(i),18),l=t.d.i,e!=l&&(h=FHn(n,l),c=y.Math.max(c,h+1));return f8e(n,e,c),c}function _Hn(n,e){var t,i,r,c,s,f,h,l;if(r=n.b[e.p],r>=0)return r;for(c=1,f=new M(e.j);f.a<f.c.c.length;)for(s=u(E(f),12),i=new M(s.e);i.a<i.c.c.length;)t=u(E(i),18),l=t.c.i,e!=l&&(h=_Hn(n,l),c=y.Math.max(c,h+1));return F9e(n,e,c),c}function HHn(n,e,t){var i,r,c;for(i=1;i<n.c.length;i++){for(c=(Nn(i,n.c.length),u(n.c[i],10)),r=i;r>0&&e.Ne((Nn(r-1,n.c.length),u(n.c[r-1],10)),c)>0;)Go(n,r,(Nn(r-1,n.c.length),u(n.c[r-1],10))),--r;Nn(r,n.c.length),n.c[r]=c}t.a=new de,t.b=new de}function wTe(n,e,t){var i,r,c,s,f,h,l,a;for(a=(i=u(e.e&&e.e(),9),new _o(i,u(xs(i,i.length),9),0)),h=ww(t,"[\\[\\]\\s,]+"),c=h,s=0,f=c.length;s<f;++s)if(r=c[s],fw(r).length!=0){if(l=J_n(n,r),l==null)return null;_s(a,u(l,22))}return a}function gTe(n){var e,t,i,r;for(r=n.length,e=null,i=0;i<r;i++)t=(zn(i,n.length),n.charCodeAt(i)),ih(".*+?{[()|\\^$",wu(t))>=0?(e||(e=new i6,i>0&&Er(e,(Ri(0,i,n.length),n.substr(0,i)))),e.a+="\\",C4(e,t&ui)):e&&C4(e,t&ui);return e?e.a:n}function pTe(n){var e,t,i;for(t=new M(n.a.a.b);t.a<t.c.c.length;)e=u(E(t),86),i=(Jn(0),0),i>0&&(!(hl(n.a.c)&&e.n.d)&&!(vg(n.a.c)&&e.n.b)&&(e.g.d-=y.Math.max(0,i/2-.5)),!(hl(n.a.c)&&e.n.a)&&!(vg(n.a.c)&&e.n.c)&&(e.g.a+=y.Math.max(0,i-1)))}function qHn(n,e,t){var i,r;if((n.c-n.b&n.a.length-1)==2)e==(en(),Xn)||e==Zn?(sC(u(l5(n),15),(Co(),nl)),sC(u(l5(n),15),Sa)):(sC(u(l5(n),15),(Co(),Sa)),sC(u(l5(n),15),nl));else for(r=new V6(n);r.a!=r.b;)i=u(xC(r),15),sC(i,t)}function mTe(n,e){var t,i,r,c,s,f,h;for(r=y4(new $G(n)),f=new xi(r,r.c.length),c=y4(new $G(e)),h=new xi(c,c.c.length),s=null;f.b>0&&h.b>0&&(t=(oe(f.b>0),u(f.a.Xb(f.c=--f.b),27)),i=(oe(h.b>0),u(h.a.Xb(h.c=--h.b),27)),t==i);)s=t;return s}function UHn(n,e,t){var i,r,c,s;GAn(n,e)>GAn(n,t)?(i=uc(t,(en(),Zn)),n.d=i.dc()?0:zN(u(i.Xb(0),12)),s=uc(e,Wn),n.b=s.dc()?0:zN(u(s.Xb(0),12))):(r=uc(t,(en(),Wn)),n.d=r.dc()?0:zN(u(r.Xb(0),12)),c=uc(e,Zn),n.b=c.dc()?0:zN(u(c.Xb(0),12)))}function GHn(n,e){var t,i,r,c;for(t=n.o.a,c=u(u(ot(n.r,e),21),87).Kc();c.Ob();)r=u(c.Pb(),117),r.e.a=t*$(B(r.b.of(bI))),r.e.b=(i=r.b,i.pf((He(),oo))?i.ag()==(en(),Xn)?-i.Mf().b-$(B(i.of(oo))):$(B(i.of(oo))):i.ag()==(en(),Xn)?-i.Mf().b:0)}function vTe(n,e){var t,i,r,c;for(e.Ug("Self-Loop pre-processing",1),i=new M(n.a);i.a<i.c.c.length;)t=u(E(i),10),c8e(t)&&(r=(c=new rBn(t),U(t,(W(),h0),c),qPe(c),c),qt(_r(rc(new Cn(null,new On(r.d,16)),new w2n),new g2n),new p2n),xCe(r));e.Vg()}function kTe(n){var e,t,i,r,c,s,f,h;e=!0,r=null,c=null;n:for(h=new M(n.a);h.a<h.c.c.length;)for(f=u(E(h),10),i=new ie(ce(ji(f).a.Kc(),new En));pe(i);){if(t=u(fe(i),18),r&&r!=f){e=!1;break n}if(r=f,s=t.c.i,c&&c!=s){e=!1;break n}c=s}return e}function yTe(n,e,t){var i,r,c,s,f,h;for(c=-1,f=-1,s=0;s<e.c.length&&(r=(Nn(s,e.c.length),u(e.c[s],339)),!(r.c>n.c));s++)r.a>=n.s&&(c<0&&(c=s),f=s);return h=(n.s+n.c)/2,c>=0&&(i=oPe(n,e,c,f),h=cle((Nn(i,e.c.length),u(e.c[i],339))),aMe(e,i,t)),h}function Te(n,e,t){var i,r,c,s,f,h,l;for(s=(c=new eG,c),IQ(s,(Jn(e),e)),l=(!s.b&&(s.b=new lo((An(),ar),pc,s)),s.b),h=1;h<t.length;h+=2)zk(l,t[h-1],t[h]);for(i=(!n.Ab&&(n.Ab=new q(Ue,n,0,3)),n.Ab),f=0;f<0;++f)r=Rwe(u(N(i,i.i-1),598)),i=r;ve(i,s)}function zHn(n,e,t){var i,r,c;for(jae.call(this,new Z),this.a=e,this.b=t,this.e=n,i=(n.b&&xR(n),n.a),this.d=EOn(i.a,this.a),this.c=EOn(i.b,this.b),g5e(this,this.d,this.c),HEe(this),c=this.e.e.a.ec().Kc();c.Ob();)r=u(c.Pb(),272),r.c.c.length>0&&iAe(this,r)}function Ynn(n,e,t,i,r,c){var s,f,h;if(!r[e.a]){for(r[e.a]=!0,s=i,!s&&(s=new zT),nn(s.e,e),h=c[e.a].Kc();h.Ob();)f=u(h.Pb(),290),!(f.d==t||f.c==t)&&(f.c!=e&&Ynn(n,f.c,e,s,r,c),f.d!=e&&Ynn(n,f.d,e,s,r,c),nn(s.c,f),hi(s.d,f.b));return s}return null}function jTe(n){var e,t,i,r,c,s,f;for(e=0,r=new M(n.e);r.a<r.c.c.length;)i=u(E(r),18),t=Ag(new Cn(null,new On(i.b,16)),new Gwn),t&&++e;for(s=new M(n.g);s.a<s.c.c.length;)c=u(E(s),18),f=Ag(new Cn(null,new On(c.b,16)),new zwn),f&&++e;return e>=2}function ETe(n,e,t,i,r){var c,s,f,h,l,a;for(c=n.c.d.j,s=u(Zo(t,0),8),a=1;a<t.b;a++)l=u(Zo(t,a),8),xt(i,s,i.c.b,i.c),f=ch(tt(new rr(s),l),.5),h=ch(new KD(uY(c)),r),tt(f,h),xt(i,f,i.c.b,i.c),s=l,c=e==0?BC(c):SY(c);Re(i,(oe(t.b!=0),u(t.c.b.c,8)))}function MTe(n){lw();var e,t,i;return t=yt(No,S(C(yr,1),G,95,0,[Zs])),!(kk(NT(t,n))>1||(e=yt(Qs,S(C(yr,1),G,95,0,[xl,Ys])),kk(NT(e,n))>1)||(i=yt(nf,S(C(yr,1),G,95,0,[el,Ts])),kk(NT(i,n))>1))}function Znn(n,e,t){var i,r,c;for(c=new M(n.t);c.a<c.c.c.length;)i=u(E(c),274),i.b.s<0&&i.c>0&&(i.b.n-=i.c,i.b.n<=0&&i.b.u>0&&Re(e,i.b));for(r=new M(n.i);r.a<r.c.c.length;)i=u(E(r),274),i.a.s<0&&i.c>0&&(i.a.u-=i.c,i.a.u<=0&&i.a.n>0&&Re(t,i.a))}function MS(n){var e,t,i,r,c;if(n.g==null&&(n.d=n.bj(n.f),ve(n,n.d),n.c))return c=n.f,c;if(e=u(n.g[n.i-1],51),r=e.Pb(),n.e=e,t=n.bj(r),t.Ob())n.d=t,ve(n,t);else for(n.d=null;!e.Ob()&&($t(n.g,--n.i,null),n.i!=0);)i=u(n.g[n.i-1],51),e=i;return r}function TTe(n,e){var t,i,r,c,s,f;if(i=e,r=i.Lk(),Pl(n.e,r)){if(r.Si()&&_T(n,r,i.md()))return!1}else for(f=ru(n.e.Dh(),r),t=u(n.g,124),c=0;c<n.i;++c)if(s=t[c],f.am(s.Lk()))return rt(s,i)?!1:(u(Bg(n,c,e),76),!0);return ve(n,e)}function CTe(n,e,t,i){var r,c,s,f;for(r=new Cl(n),Ha(r,(Vn(),Sc)),U(r,(W(),st),e),U(r,F8,i),U(r,(cn(),Ft),(Ai(),qc)),U(r,yf,e.c),U(r,Es,e.d),kqn(e,r),f=y.Math.floor(t/2),s=new M(r.j);s.a<s.c.c.length;)c=u(E(s),12),c.n.b=f;return r}function XHn(n){var e,t,i,r,c,s,f;for(e=0,i=new M(n.a);i.a<i.c.c.length;)for(t=u(E(i),10),c=new ie(ce(Qt(t).a.Kc(),new En));pe(c);)r=u(fe(c),18),n==r.d.i.c&&r.c.j==(en(),Wn)&&(s=Of(r.c).b,f=Of(r.d).b,e=y.Math.max(e,y.Math.abs(f-s)));return e}function VHn(n,e,t){var i,r,c,s,f;for(t.Ug("ELK Force",1),on(un(z(e,(Us(),pon))))||X7((i=new Xv((cb(),new Qd(e))),i)),f=fRn(e),z7e(f),b6e(n,u(v(f,gon),432)),s=FUn(n.a,f),c=s.Kc();c.Ob();)r=u(c.Pb(),235),pIe(n.b,r,t.eh(1/s.gc()));f=nzn(s),hzn(f),t.Vg()}function nen(n,e,t){switch(t.g){case 1:return new V(e.a,y.Math.min(n.d.b,e.b));case 2:return new V(y.Math.max(n.c.a,e.a),e.b);case 3:return new V(e.a,y.Math.max(n.c.b,e.b));case 4:return new V(y.Math.min(e.a,n.d.a),e.b)}return new V(e.a,e.b)}function cy(n){var e,t,i;for(e=Lh(1+(!n.c&&(n.c=new q(Qu,n,9,9)),n.c).i),nn(e,(!n.d&&(n.d=new Dn(Vt,n,8,5)),n.d)),i=new ne((!n.c&&(n.c=new q(Qu,n,9,9)),n.c));i.e!=i.i.gc();)t=u(ue(i),123),nn(e,(!t.d&&(t.d=new Dn(Vt,t,8,5)),t.d));return Pe(e),new S6(e)}function Sl(n){var e,t,i;for(e=Lh(1+(!n.c&&(n.c=new q(Qu,n,9,9)),n.c).i),nn(e,(!n.e&&(n.e=new Dn(Vt,n,7,4)),n.e)),i=new ne((!n.c&&(n.c=new q(Qu,n,9,9)),n.c));i.e!=i.i.gc();)t=u(ue(i),123),nn(e,(!t.e&&(t.e=new Dn(Vt,t,7,4)),t.e));return Pe(e),new S6(e)}function STe(n){var e,t,i,r;if(n==null)return null;if(i=Rc(n,!0),r=nj.length,Sn(i.substr(i.length-r,r),nj)){if(t=i.length,t==4){if(e=(zn(0,i.length),i.charCodeAt(0)),e==43)return sbn;if(e==45)return mse}else if(t==3)return sbn}return sw(i)}function PTe(n,e){var t,i,r,c,s;if(e.Ug("Breaking Point Processor",1),lLe(n),on(un(v(n,(cn(),Thn))))){for(r=new M(n.b);r.a<r.c.c.length;)for(i=u(E(r),30),t=0,s=new M(i.a);s.a<s.c.c.length;)c=u(E(s),10),c.p=t++;uOe(n),aqn(n,!0),aqn(n,!1)}e.Vg()}function ITe(n,e,t,i){var r,c,s,f,h,l,a,d,g;for(d=i?(en(),Wn):(en(),Zn),r=!1,h=e[t],l=0,a=h.length;l<a;++l)f=h[l],!Ep(u(v(f,(cn(),Ft)),101))&&(s=f.e,g=!uc(f,d).dc()&&!!s,g&&(c=XZ(s),n.b=new WZ(c,i?0:c.length-1)),r=r|gSe(n,f,d,g));return r}function WHn(n,e,t,i){var r,c,s;if(s=RZ(e,t),Fn(i.c,e),n.j[s.p]==-1||n.j[s.p]==2||n.a[e.p])return i;for(n.j[s.p]=-1,c=new ie(ce(Ml(s).a.Kc(),new En));pe(c);)if(r=u(fe(c),18),!(!(!fr(r)&&!(!fr(r)&&r.c.i.c==r.d.i.c))||r==e))return WHn(n,r,s,i);return i}function OTe(n){var e,t,i,r;for(e=0,t=0,r=new M(n.j);r.a<r.c.c.length;)if(i=u(E(r),12),e=Se(nr(e,BNn(ut(new Cn(null,new On(i.e,16)),new w3n)))),t=Se(nr(t,BNn(ut(new Cn(null,new On(i.g,16)),new g3n)))),e>1||t>1)return 2;return e+t==1?2:0}function to(n,e){var t,i,r,c,s,f;return c=n.a*NK+n.b*1502,f=n.b*NK+11,t=y.Math.floor(f*Oy),c+=t,f-=t*Etn,c%=Etn,n.a=c,n.b=f,e<=24?y.Math.floor(n.a*Nun[e]):(r=n.a*(1<<e-24),s=y.Math.floor(n.b*Dun[e]),i=r+s,i>=2147483648&&(i-=4294967296),i)}function JHn(n,e,t){var i,r,c,s,f,h,l;for(c=new Z,l=new Mt,s=new Mt,XIe(n,l,s,e),TAe(n,l,s,e,t),h=new M(n);h.a<h.c.c.length;)for(f=u(E(h),118),r=new M(f.k);r.a<r.c.c.length;)i=u(E(r),132),(!e||i.c==(af(),Ea))&&f.g>i.b.g&&Fn(c.c,i);return c}function ATe(n,e,t){var i,r,c,s,f,h;for(f=n.c,s=(t.q?t.q:(Ln(),Ln(),Wh)).vc().Kc();s.Ob();)c=u(s.Pb(),44),i=!s4(ut(new Cn(null,new On(f,16)),new Z3(new uTn(e,c)))).Bd((Va(),v3)),i&&(h=c.md(),L(h,4)&&(r=rZ(h),r!=null&&(h=r)),e.qf(u(c.ld(),149),h))}function LTe(n,e,t){var i,r;if(H7(n.b),hf(n.b,($k(),XO),(s6(),Hj)),hf(n.b,VO,e.g),hf(n.b,WO,e.a),n.a=gy(n.b,e),t.Ug("Compaction by shrinking a tree",n.a.c.length),e.i.c.length>1)for(r=new M(n.a);r.a<r.c.c.length;)i=u(E(r),47),i.Kf(e,t.eh(1));t.Vg()}function een(n,e,t){var i,r,c;if(c=Qg((Lu(),zi),n.Dh(),e),c){if(dr(),!u(c,69).xk()&&(c=$p(Nr(zi,c)),!c))throw T(new Gn(ba+e.xe()+b8));r=(i=n.Ih(c),u(i>=0?n.Lh(i,!0,!0):Hb(n,c,!0),160)),u(r,220).Xl(e,t)}else throw T(new Gn(ba+e.xe()+b8))}function TS(n,e){var t,i,r,c,s;if(e){for(c=L(n.Cb,90)||L(n.Cb,102),s=!c&&L(n.Cb,331),i=new ne((!e.a&&(e.a=new K6(e,jr,e)),e.a));i.e!=i.i.gc();)if(t=u(ue(i),89),r=KS(t),c?L(r,90):s?L(r,156):r)return r;return c?(An(),Os):(An(),Zf)}else return null}function NTe(n,e){var t,i,r,c;for(e.Ug("Resize child graph to fit parent.",1),i=new M(n.b);i.a<i.c.c.length;)t=u(E(i),30),hi(n.a,t.a),t.a.c.length=0;for(c=new M(n.a);c.a<c.c.c.length;)r=u(E(c),10),$i(r,null);n.b.c.length=0,ZCe(n),n.e&&JPe(n.e,n),e.Vg()}function DTe(n,e){var t,i,r,c,s;for(e.Ug("Edge joining",1),t=on(un(v(n,(cn(),AH)))),r=new M(n.b);r.a<r.c.c.length;)for(i=u(E(r),30),s=new xi(i.a,0);s.b<s.d.gc();)c=(oe(s.b<s.d.gc()),u(s.d.Xb(s.c=s.b++),10)),c.k==(Vn(),Ti)&&(XR(c,t),bo(s));e.Vg()}function $Te(n,e){var t,i,r,c,s;for(t=new Z,r=rc(new Cn(null,new On(n,16)),new D3n),c=rc(new Cn(null,new On(n,16)),new $3n),s=G4e(f4e(U0(bCe(S(C(dDe,1),Kn,848,0,[r,c])),new x3n))),i=1;i<s.length;i++)s[i]-s[i-1]>=2*e&&nn(t,new FN(s[i-1]+e,s[i]-e));return t}function xTe(n,e,t){var i,r,c,s,f,h,l,a;if(t)for(c=t.a.length,i=new Qa(c),f=(i.b-i.a)*i.c<0?(F1(),xa):new q1(i);f.Ob();)s=u(f.Pb(),17),r=N4(t,s.a),r&&(h=a3e(n,(l=(K1(),a=new nz,a),e&&ten(l,e),l),r),X4(h,bl(r,Eh)),gS(r,h),Cnn(r,h),_$(n,r,h))}function CS(n){var e,t,i,r,c,s;if(!n.j){if(s=new Mvn,e=D9,c=e.a.zc(n,e),c==null){for(i=new ne(Hr(n));i.e!=i.i.gc();)t=u(ue(i),29),r=CS(t),Kt(s,r),ve(s,t);e.a.Bc(n)!=null}ew(s),n.j=new pg((u(N(H((G1(),Hn).o),11),19),s.i),s.g),Zu(n).b&=-33}return n.j}function RTe(n){var e,t,i,r;if(n==null)return null;if(i=Rc(n,!0),r=nj.length,Sn(i.substr(i.length-r,r),nj)){if(t=i.length,t==4){if(e=(zn(0,i.length),i.charCodeAt(0)),e==43)return fbn;if(e==45)return vse}else if(t==3)return fbn}return new qG(i)}function KTe(n){var e,t,i;return t=n.l,t&t-1||(i=n.m,i&i-1)||(e=n.h,e&e-1)||e==0&&i==0&&t==0?-1:e==0&&i==0&&t!=0?vQ(t):e==0&&i!=0&&t==0?vQ(i)+22:e!=0&&i==0&&t==0?vQ(e)+44:-1}function zg(n,e){var t,i,r,c,s;for(r=e.a&n.f,c=null,i=n.b[r];;i=i.b){if(i==e){c?c.b=e.b:n.b[r]=e.b;break}c=i}for(s=e.f&n.f,c=null,t=n.c[s];;t=t.d){if(t==e){c?c.d=e.d:n.c[s]=e.d;break}c=t}e.e?e.e.c=e.c:n.a=e.c,e.c?e.c.e=e.e:n.e=e.e,--n.i,++n.g}function BTe(n,e){var t;e.d?e.d.b=e.b:n.a=e.b,e.b?e.b.d=e.d:n.e=e.d,!e.e&&!e.c?(t=u(as(u(Kp(n.b,e.a),260)),260),t.a=0,++n.c):(t=u(as(u(ee(n.b,e.a),260)),260),--t.a,e.e?e.e.c=e.c:t.b=u(as(e.c),511),e.c?e.c.e=e.e:t.c=u(as(e.e),511)),--n.d}function FTe(n){var e,t,i,r,c,s,f,h,l,a;for(t=n.o,e=n.p,s=et,r=Wi,f=et,c=Wi,l=0;l<t;++l)for(a=0;a<e;++a)Fg(n,l,a)&&(s=y.Math.min(s,l),r=y.Math.max(r,l),f=y.Math.min(f,a),c=y.Math.max(c,a));return h=r-s+1,i=c-f+1,new COn(Y(s),Y(f),Y(h),Y(i))}function pR(n,e){var t,i,r,c;for(c=new xi(n,0),t=(oe(c.b<c.d.gc()),u(c.d.Xb(c.c=c.b++),148));c.b<c.d.gc();)i=(oe(c.b<c.d.gc()),u(c.d.Xb(c.c=c.b++),148)),r=new UV(i.c,t.d,e),oe(c.b>0),c.a.Xb(c.c=--c.b),B0(c,r),oe(c.b<c.d.gc()),c.d.Xb(c.c=c.b++),r.a=!1,t=i}function QHn(n){var e,t,i,r,c,s;for(r=u(v(n,(W(),tO)),12),s=new M(n.j);s.a<s.c.c.length;){for(c=u(E(s),12),i=new M(c.g);i.a<i.c.c.length;)return e=u(E(i),18),Oi(e,r),c;for(t=new M(c.e);t.a<t.c.c.length;)return e=u(E(t),18),Zi(e,r),c}return null}function YHn(n,e,t){var i,r,c,s,f,h;for(h=u(x0(n.a,e),17).a,t?VZ(n.a,Y(h+1),e):VZ(n.a,Y(h-1),e),s=new rh,r=new ie(ce((t?Qt(e):ji(e)).a.Kc(),new En));pe(r);)i=u(fe(r),18),t?c=i.d.i:c=i.c.i,x(x0(n.a,c))===x(x0(n.a,e))&&(f=s.a.zc(c,s),f==null);return s}function _Te(n,e,t){var i,r;i=vc(t.q.getTime()),Ec(i,0)<0?(r=d1-Se(Kk(n1(i),d1)),r==d1&&(r=0)):r=Se(Kk(i,d1)),e==1?(r=y.Math.min((r+50)/100|0,9),z1(n,48+r&ui)):e==2?(r=y.Math.min((r+5)/10|0,99),Kh(n,r,2)):(Kh(n,r,3),e>3&&Kh(n,0,e-3))}function HTe(n){var e,t,i,r;return x(v(n,(cn(),Kw)))===x((jl(),T1))?!n.e&&x(v(n,Mj))!==x((Z4(),mj)):(i=u(v(n,kH),299),r=on(un(v(n,yH)))||x(v(n,U8))===x((c5(),pj)),e=u(v(n,Hfn),17).a,t=n.a.c.length,!r&&i!=(Z4(),mj)&&(e==0||e>t))}function qTe(n){var e,t;for(t=0;t<n.c.length&&!(UPn((Nn(t,n.c.length),u(n.c[t],113)))>0);t++);if(t>0&&t<n.c.length-1)return t;for(e=0;e<n.c.length&&!(UPn((Nn(e,n.c.length),u(n.c[e],113)))>0);e++);return e>0&&t<n.c.length-1?e:n.c.length/2|0}function ZHn(n,e){var t,i;if(e!=n.Cb||n.Db>>16!=6&&e){if(mm(n,e))throw T(new Gn(w8+dHn(n)));i=null,n.Cb&&(i=(t=n.Db>>16,t>=0?TZ(n,i):n.Cb.Th(n,-1-t,null,i))),e&&(i=Wp(e,n,6,i)),i=fV(n,e,i),i&&i.oj()}else n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,6,e,e))}function SS(n,e){var t,i;if(e!=n.Cb||n.Db>>16!=3&&e){if(mm(n,e))throw T(new Gn(w8+nGn(n)));i=null,n.Cb&&(i=(t=n.Db>>16,t>=0?IZ(n,i):n.Cb.Th(n,-1-t,null,i))),e&&(i=Wp(e,n,12,i)),i=hV(n,e,i),i&&i.oj()}else n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,3,e,e))}function ten(n,e){var t,i;if(e!=n.Cb||n.Db>>16!=9&&e){if(mm(n,e))throw T(new Gn(w8+Yqn(n)));i=null,n.Cb&&(i=(t=n.Db>>16,t>=0?SZ(n,i):n.Cb.Th(n,-1-t,null,i))),e&&(i=Wp(e,n,9,i)),i=lV(n,e,i),i&&i.oj()}else n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,9,e,e))}function Cm(n){var e,t,i,r,c;if(i=gs(n),c=n.j,c==null&&i)return n.Jk()?null:i.ik();if(L(i,156)){if(t=i.jk(),t&&(r=t.wi(),r!=n.i)){if(e=u(i,156),e.nk())try{n.g=r.ti(e,c)}catch(s){if(s=Ot(s),L(s,82))n.g=null;else throw T(s)}n.i=r}return n.g}return null}function nqn(n){var e;return e=new Z,nn(e,new bp(new V(n.c,n.d),new V(n.c+n.b,n.d))),nn(e,new bp(new V(n.c,n.d),new V(n.c,n.d+n.a))),nn(e,new bp(new V(n.c+n.b,n.d+n.a),new V(n.c+n.b,n.d))),nn(e,new bp(new V(n.c+n.b,n.d+n.a),new V(n.c,n.d+n.a))),e}function UTe(n){var e,t,i;if(n==null)return gu;try{return Jr(n)}catch(r){if(r=Ot(r),L(r,103))return e=r,i=Xa(wo(n))+"@"+(t=(fl(),iZ(n)>>>0),t.toString(16)),r9e(qve(),(a4(),"Exception during lenientFormat for "+i),e),"<"+i+" threw "+Xa(e.Rm)+">";throw T(r)}}function GTe(n,e,t){var i,r,c;for(c=e.a.ec().Kc();c.Ob();)r=u(c.Pb(),74),i=u(ee(n.b,r),272),!i&&(St(Fh(r))==St(ra(r))?LCe(n,r,t):Fh(r)==St(ra(r))?ee(n.c,r)==null&&ee(n.b,ra(r))!=null&&LGn(n,r,t,!1):ee(n.d,r)==null&&ee(n.b,Fh(r))!=null&&LGn(n,r,t,!0))}function zTe(n,e){var t,i,r,c,s,f,h;for(r=n.Kc();r.Ob();)for(i=u(r.Pb(),10),f=new Ic,ic(f,i),gi(f,(en(),Zn)),U(f,(W(),uO),(_n(),!0)),s=e.Kc();s.Ob();)c=u(s.Pb(),10),h=new Ic,ic(h,c),gi(h,Wn),U(h,uO,!0),t=new Eb,U(t,uO,!0),Zi(t,f),Oi(t,h)}function XTe(n,e,t,i){var r,c,s,f;r=KKn(n,e,t),c=KKn(n,t,e),s=u(ee(n.c,e),118),f=u(ee(n.c,t),118),r<c?new ed((af(),zw),s,f,c-r):c<r?new ed((af(),zw),f,s,r-c):(r!=0||!(!e.i||!t.i)&&i[e.i.c][t.i.c])&&(new ed((af(),zw),s,f,0),new ed(zw,f,s,0))}function eqn(n,e){var t,i,r,c,s,f,h;for(r=0,s=new M(e.a);s.a<s.c.c.length;)for(c=u(E(s),10),r+=c.o.b+c.d.a+c.d.d+n.e,i=new ie(ce(ji(c).a.Kc(),new En));pe(i);)t=u(fe(i),18),t.c.i.k==(Vn(),_c)&&(h=t.c.i,f=u(v(h,(W(),st)),10),r+=f.o.b+f.d.a+f.d.d);return r}function x5(){x5=R,D2=new b7("CANDIDATE_POSITION_LAST_PLACED_RIGHT",0),L3=new b7("CANDIDATE_POSITION_LAST_PLACED_BELOW",1),d9=new b7("CANDIDATE_POSITION_WHOLE_DRAWING_RIGHT",2),a9=new b7("CANDIDATE_POSITION_WHOLE_DRAWING_BELOW",3),_j=new b7("WHOLE_DRAWING",4)}function VTe(n,e){if(L(e,207))return m5e(n,u(e,27));if(L(e,193))return T5e(n,u(e,123));if(L(e,366))return wge(n,u(e,135));if(L(e,326))return LIe(n,u(e,74));if(e)return null;throw T(new Gn(Ncn+ca(new Fu(S(C(ki,1),Kn,1,5,[e])))))}function WTe(n){var e,t,i,r,c,s,f;for(c=new Mt,r=new M(n.d.a);r.a<r.c.c.length;)i=u(E(r),125),i.b.a.c.length==0&&xt(c,i,c.c.b,c.c);if(c.b>1)for(e=hb((t=new za,++n.b,t),n.d),f=ge(c,0);f.b!=f.d.c;)s=u(be(f),125),qs(Ns(Ls(Ds(As(new hs,1),0),e),s))}function JTe(n,e,t){var i,r,c,s,f;for(t.Ug("Breaking Point Removing",1),n.a=u(v(e,(cn(),$l)),223),c=new M(e.b);c.a<c.c.c.length;)for(r=u(E(c),30),f=new M(Cb(r.a));f.a<f.c.c.length;)s=u(E(f),10),r$n(s)&&(i=u(v(s,(W(),o0)),313),!i.d&&GGn(n,i));t.Vg()}function PS(n,e){var t,i;if(e!=n.Cb||n.Db>>16!=11&&e){if(mm(n,e))throw T(new Gn(w8+jen(n)));i=null,n.Cb&&(i=(t=n.Db>>16,t>=0?OZ(n,i):n.Cb.Th(n,-1-t,null,i))),e&&(i=Wp(e,n,10,i)),i=kV(n,e,i),i&&i.oj()}else n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,11,e,e))}function QTe(n){var e,t,i,r;for(i=new sd(new Ua(n.b).a);i.b;)t=Nb(i),r=u(t.ld(),12),e=u(t.md(),10),U(e,(W(),st),r),U(r,Xu,e),U(r,yj,(_n(),!0)),gi(r,u(v(e,gc),64)),v(e,gc),U(r.i,(cn(),Ft),(Ai(),Fv)),u(v(Hi(r.i),Hc),21).Fc((pr(),yv))}function YTe(n,e,t){var i,r,c,s,f,h;if(c=0,s=0,n.c)for(h=new M(n.d.i.j);h.a<h.c.c.length;)f=u(E(h),12),c+=f.e.c.length;else c=1;if(n.d)for(h=new M(n.c.i.j);h.a<h.c.c.length;)f=u(E(h),12),s+=f.g.c.length;else s=1;return r=wi(K7(s-c)),i=(t+e)/2+(t-e)*(.4*r),i}function ZTe(n){ow();var e,t;if(n.Hc((en(),sc)))throw T(new Gn("Port sides must not contain UNDEFINED"));switch(n.gc()){case 1:return gj;case 2:return e=n.Hc(Zn)&&n.Hc(Wn),t=n.Hc(Xn)&&n.Hc(ae),e||t?XI:zI;case 3:return GI;case 4:return UI;default:return null}}function mR(n,e,t){return Vg(),W4(n,e)&&W4(n,t)?!1:WR(new V(n.c,n.d),new V(n.c+n.b,n.d),e,t)||WR(new V(n.c+n.b,n.d),new V(n.c+n.b,n.d+n.a),e,t)||WR(new V(n.c+n.b,n.d+n.a),new V(n.c,n.d+n.a),e,t)||WR(new V(n.c,n.d+n.a),new V(n.c,n.d),e,t)}function ien(n,e){var t,i,r,c;if(!n.dc()){for(t=0,i=n.gc();t<i;++t)if(c=Ae(n.Xb(t)),c==null?e==null:Sn(c.substr(0,3),"!##")?e!=null&&(r=e.length,!Sn(c.substr(c.length-r,r),e)||c.length!=e.length+3)&&!Sn(Pd,e):Sn(c,OF)&&!Sn(Pd,e)||Sn(c,e))return!0}return!1}function nCe(n,e,t,i){var r,c,s,f,h,l;for(s=n.j.c.length,h=F(gDe,Dtn,314,s,0,1),f=0;f<s;f++)c=u(sn(n.j,f),12),c.p=f,h[f]=lMe(THn(c),t,i);for(TCe(n,h,t,e,i),l=new de,r=0;r<h.length;r++)h[r]&&Ve(l,u(sn(n.j,r),12),h[r]);l.f.c+l.i.c!=0&&(U(n,(W(),B8),l),Tje(n,h))}function eCe(n,e){var t,i,r,c,s,f;for(e.Ug("Partition postprocessing",1),i=new M(n.b);i.a<i.c.c.length;)for(t=u(E(i),30),c=new M(t.a);c.a<c.c.c.length;)for(r=u(E(c),10),f=new M(r.j);f.a<f.c.c.length;)s=u(E(f),12),on(un(v(s,(W(),uO))))&&q6(f);e.Vg()}function tCe(n,e,t){var i,r,c;for(r=new M(n.a.b);r.a<r.c.c.length;)if(i=u(E(r),60),c=Ig(i),c&&c.k==(Vn(),Zt))switch(u(v(c,(W(),gc)),64).g){case 4:c.n.a=e.a;break;case 2:c.n.a=t.a-(c.o.a+c.d.c);break;case 1:c.n.b=e.b;break;case 3:c.n.b=t.b-(c.o.b+c.d.a)}}function iCe(n,e,t){var i,r,c;for(t.Ug("Processor determine the height for each level",1),n.a=e.b.b==0?1:e.b.b,r=null,i=ge(e.b,0);!r&&i.b!=i.d.c;)c=u(be(i),40),on(un(v(c,(pt(),Ta))))&&(r=c);r&&UUn(n,Af(S(C(DO,1),AP,40,0,[r])),t,u(v(e,(lc(),v0)),88)),t.Vg()}function rCe(n){var e,t,i,r,c,s;for(i=(K1(),c=new Yv,c),uy(i,n),t=new ne((!n.a&&(n.a=new q(Ye,n,10,11)),n.a));t.e!=t.i.gc();)e=u(ue(t),27),s=(r=new Yv,r),PS(s,i),kg(s,e.g,e.f),X4(s,e.k),Bo(s,e.i,e.j),ve((!i.a&&(i.a=new q(Ye,i,10,11)),i.a),s),uy(s,e);return i}function cCe(n,e,t){var i,r,c,s,f;return r=u(z(e,(mS(),wan)),17),!r&&(r=Y(0)),c=u(z(t,wan),17),!c&&(c=Y(0)),r.a>c.a?-1:r.a<c.a?1:n.a&&(i=bt(e.j,t.j),i!=0||(i=bt(e.i,t.i),i!=0))?i:(s=e.g*e.f,f=t.g*t.f,bt(s,f))}function uCe(n,e){var t,i,r,c,s,f,h,l,a,d;if(++n.e,h=n.d==null?0:n.d.length,e>h){for(a=n.d,n.d=F(Ddn,Hcn,66,2*h+4,0,1),c=0;c<h;++c)if(l=a[c],l)for(i=l.g,d=l.i,f=0;f<d;++f)r=u(i[f],136),s=aV(n,r.Bi()),t=n.d[s],!t&&(t=n.d[s]=n.dk()),t.Fc(r);return!0}else return!1}function oCe(n,e,t){var i,r,c,s,f,h;if(r=t,c=r.Lk(),Pl(n.e,c)){if(c.Si()){for(i=u(n.g,124),s=0;s<n.i;++s)if(f=i[s],rt(f,r)&&s!=e)throw T(new Gn(Vy))}}else for(h=ru(n.e.Dh(),c),i=u(n.g,124),s=0;s<n.i;++s)if(f=i[s],h.am(f.Lk()))throw T(new Gn(Zy));v5(n,e,t)}function tqn(n,e){var t,i,r,c,s,f;for(t=u(v(e,(W(),Dl)),21),s=u(ot((YR(),wt),t),21),f=u(ot(qe,t),21),c=s.Kc();c.Ob();)if(i=u(c.Pb(),21),!u(ot(n.b,i),15).dc())return!1;for(r=f.Kc();r.Ob();)if(i=u(r.Pb(),21),!u(ot(n.b,i),15).dc())return!1;return!0}function ren(n,e){var t,i,r,c,s,f,h,l,a;if(n.a.c.length==1)return c_n(u(sn(n.a,0),172),e);for(s=i5e(n),h=0,l=n.d,c=s,a=n.d,f=(l-c)/2+c;c+1<l;){for(h=0,i=new M(n.a);i.a<i.c.c.length;)t=u(E(i),172),h+=(r=G5(t,f,!1),r.a);h<e?(a=f,l=f):c=f,f=(l-c)/2+c}return a}function uy(n,e){var t,i,r,c,s;if(!e)return n;if(L(e,342))for(r=u(e,342),c=(!n.o&&(n.o=new Ou((Mc(),il),C1,n,0)),n.o),i=r.gh().c.Kc();i.e!=i.i.gc();)t=u(i.Yj(),44),s=t.md(),zk(c,u(t.ld(),149),s);else!n.o&&(n.o=new Ou((Mc(),il),C1,n,0)),hxn(n.o,e.nf());return n}function sCe(n){var e,t,i,r,c;return isNaN(n)?(B4(),aun):n<-9223372036854776e3?(B4(),bQn):n>=9223372036854776e3?(B4(),hun):(r=!1,n<0&&(r=!0,n=-n),i=0,n>=vd&&(i=wi(n/vd),n-=i*vd),t=0,n>=o3&&(t=wi(n/o3),n-=t*o3),e=wi(n),c=Yc(e,t,i),r&&H$(c),c)}function fCe(n){var e,t,i,r,c;if(c=new Z,nu(n.b,new P9n(c)),n.b.c.length=0,c.c.length!=0){for(e=(Nn(0,c.c.length),u(c.c[0],82)),t=1,i=c.c.length;t<i;++t)r=(Nn(t,c.c.length),u(c.c[t],82)),r!=e&&$ye(e,r);if(L(e,63))throw T(u(e,63));if(L(e,296))throw T(u(e,296))}}function hCe(n,e){var t,i,r,c;for(t=!e||!n.u.Hc((zu(),Rl)),c=0,r=new M(n.e.Xf());r.a<r.c.c.length;){if(i=u(E(r),852),i.ag()==(en(),sc))throw T(new Gn("Label and node size calculator can only be used with ports that have port sides assigned."));i.Qf(c++),Y6e(n,i,t)}}function cen(n){var e,t,i,r,c;for(t=new M(n.a.a);t.a<t.c.c.length;){for(e=u(E(t),316),e.j=null,c=e.a.a.ec().Kc();c.Ob();)i=u(c.Pb(),60),ff(i.b),(!e.j||i.d.c<e.j.d.c)&&(e.j=i);for(r=e.a.a.ec().Kc();r.Ob();)i=u(r.Pb(),60),i.b.a=i.d.c-e.j.d.c,i.b.b=i.d.d-e.j.d.d}return n}function IS(n){var e,t,i,r,c;for(t=new M(n.a.a);t.a<t.c.c.length;){for(e=u(E(t),194),e.f=null,c=e.a.a.ec().Kc();c.Ob();)i=u(c.Pb(),86),ff(i.e),(!e.f||i.g.c<e.f.g.c)&&(e.f=i);for(r=e.a.a.ec().Kc();r.Ob();)i=u(r.Pb(),86),i.e.a=i.g.c-e.f.g.c,i.e.b=i.g.d-e.f.g.d}return n}function lCe(n){var e,t,i;return t=u(n.a,17).a,i=u(n.b,17).a,e=y.Math.max(y.Math.abs(t),y.Math.abs(i)),t<e&&i==-e?new bi(Y(t+1),Y(i)):t==e&&i<e?new bi(Y(t),Y(i+1)):t>=-e&&i==e?new bi(Y(t-1),Y(i)):new bi(Y(t),Y(i-1))}function iqn(){return tr(),S(C(yDe,1),G,81,0,[Qon,Von,b2,N_,gsn,OI,FI,Nw,bsn,csn,asn,Lw,wsn,tsn,psn,Hon,DI,D_,PI,RI,vsn,xI,qon,dsn,ksn,KI,msn,II,Zon,hsn,fsn,_I,zon,SI,LI,Gon,hv,osn,isn,lsn,N8,Won,Xon,ssn,rsn,NI,BI,Uon,$I,usn,AI,nsn,Yon,bj,CI,esn,Jon])}function aCe(n,e,t){n.d=0,n.b=0,e.k==(Vn(),_c)&&t.k==_c&&u(v(e,(W(),st)),10)==u(v(t,st),10)&&(s$(e).j==(en(),Xn)?UHn(n,e,t):UHn(n,t,e)),e.k==_c&&t.k==Ti?s$(e).j==(en(),Xn)?n.d=1:n.b=1:t.k==_c&&e.k==Ti&&(s$(t).j==(en(),Xn)?n.b=1:n.d=1),J9e(n,e,t)}function dCe(n){var e,t,i,r,c,s,f,h,l,a,d;return d=nnn(n),e=n.a,h=e!=null,h&&j4(d,"category",n.a),r=Z9(new qa(n.d)),s=!r,s&&(l=new _a,bf(d,"knownOptions",l),t=new fyn(l),qi(new qa(n.d),t)),c=Z9(n.g),f=!c,f&&(a=new _a,bf(d,"supportedFeatures",a),i=new hyn(a),qi(n.g,i)),d}function bCe(n){var e,t,i,r,c,s,f,h,l;for(i=!1,e=336,t=0,c=new zSn(n.length),f=n,h=0,l=f.length;h<l;++h)s=f[h],i=i|(ta(s),!1),r=(X1(s),s.a),nn(c.a,Pe(r)),e&=r.yd(),t=L6e(t,r.zd());return u(u(_In(new Cn(null,nR(new On((mb(),JY(c.a)),16),new N1,e,t)),new e9n(n)),687),848)}function wCe(n,e){var t;n.d&&(e.c!=n.e.c||cve(n.e.b,e.b))&&(nn(n.f,n.d),n.a=n.d.c+n.d.b,n.d=null,n.e=null),Ole(e.b)?n.c=e:n.b=e,(e.b==(nm(),r0)&&!e.a||e.b==Iw&&e.a||e.b==d2&&e.a||e.b==Ow&&!e.a)&&n.c&&n.b&&(t=new Ho(n.a,n.c.d,e.c-n.a,n.b.d-n.c.d),n.d=t,n.e=e)}function R5(n){var e;if(vjn.call(this),this.i=new jmn,this.g=n,this.f=u(n.e&&n.e(),9).length,this.f==0)throw T(new Gn("There must be at least one phase in the phase enumeration."));this.c=(e=u(of(this.g),9),new _o(e,u(xs(e,e.length),9),0)),this.a=new ii,this.b=new de}function uen(n,e){var t,i;if(e!=n.Cb||n.Db>>16!=7&&e){if(mm(n,e))throw T(new Gn(w8+h_n(n)));i=null,n.Cb&&(i=(t=n.Db>>16,t>=0?CZ(n,i):n.Cb.Th(n,-1-t,null,i))),e&&(i=u(e,54).Rh(n,1,oE,i)),i=dW(n,e,i),i&&i.oj()}else n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,7,e,e))}function rqn(n,e){var t,i;if(e!=n.Cb||n.Db>>16!=3&&e){if(mm(n,e))throw T(new Gn(w8+sKn(n)));i=null,n.Cb&&(i=(t=n.Db>>16,t>=0?PZ(n,i):n.Cb.Th(n,-1-t,null,i))),e&&(i=u(e,54).Rh(n,0,fE,i)),i=bW(n,e,i),i&&i.oj()}else n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,3,e,e))}function vR(n,e){Sm();var t,i,r,c,s,f,h,l,a;return e.d>n.d&&(f=n,n=e,e=f),e.d<63?tSe(n,e):(s=(n.d&-2)<<4,l=NJ(n,s),a=NJ(e,s),i=BR(n,Rp(l,s)),r=BR(e,Rp(a,s)),h=vR(l,a),t=vR(i,r),c=vR(BR(l,i),BR(r,a)),c=zR(zR(c,h),t),c=Rp(c,s),h=Rp(h,s<<1),zR(zR(h,c),t))}function a1(){a1=R,$H=new dg(sVn,0),Phn=new dg("LONGEST_PATH",1),Ihn=new dg("LONGEST_PATH_SOURCE",2),DH=new dg("COFFMAN_GRAHAM",3),Shn=new dg(sB,4),Ohn=new dg("STRETCH_WIDTH",5),MO=new dg("MIN_WIDTH",6),Iv=new dg("BF_MODEL_ORDER",7),Ov=new dg("DF_MODEL_ORDER",8)}function gCe(n,e,t){var i,r,c,s,f;for(s=g5(n,t),f=F(Qh,b1,10,e.length,0,1),i=0,c=s.Kc();c.Ob();)r=u(c.Pb(),12),on(un(v(r,(W(),yj))))&&(f[i++]=u(v(r,Xu),10));if(i<e.length)throw T(new Ar("Expected "+e.length+" hierarchical ports, but found only "+i+"."));return f}function pCe(n,e){var t,i,r,c,s,f;if(!n.tb){for(c=(!n.rb&&(n.rb=new H0(n,Mf,n)),n.rb),f=new ap(c.i),r=new ne(c);r.e!=r.i.gc();)i=u(ue(r),142),s=i.xe(),t=u(s==null?Vc(f.f,null,i):$b(f.i,s,i),142),t&&(s==null?Vc(f.f,null,t):$b(f.i,s,t));n.tb=f}return u(Dc(n.tb,e),142)}function oy(n,e){var t,i,r,c,s;if((n.i==null&&bh(n),n.i).length,!n.p){for(s=new ap((3*n.g.i/2|0)+1),r=new yp(n.g);r.e!=r.i.gc();)i=u(Tx(r),179),c=i.xe(),t=u(c==null?Vc(s.f,null,i):$b(s.i,c,i),179),t&&(c==null?Vc(s.f,null,t):$b(s.i,c,t));n.p=s}return u(Dc(n.p,e),179)}function oen(n,e,t,i,r){var c,s,f,h,l;for(G8e(i+OT(t,t.ie()),r),nOn(e,l8e(t)),c=t.f,c&&oen(n,e,c,"Caused by: ",!1),f=(t.k==null&&(t.k=F(zF,J,82,0,0,1)),t.k),h=0,l=f.length;h<l;++h)s=f[h],oen(n,e,s,"Suppressed: ",!1);console.groupEnd!=null&&console.groupEnd.call(console)}function sy(n,e,t,i){var r,c,s,f,h;for(h=e.e,f=h.length,s=e.q.ug(h,t?0:f-1,t),r=h[t?0:f-1],s=s|Gqn(n,r,t,i),c=t?1:f-2;t?c<f:c>=0;c+=t?1:-1)s=s|e.c.lg(h,c,t,i&&!on(un(v(e.j,(W(),ka))))&&!on(un(v(e.j,(W(),j2))))),s=s|e.q.ug(h,c,t),s=s|Gqn(n,h[c],t,i);return fi(n.c,e),s}function OS(n,e,t){var i,r,c,s,f,h,l,a,d,g;for(a=MLn(n.j),d=0,g=a.length;d<g;++d){if(l=a[d],t==(gr(),Vu)||t==Q8)for(h=hh(l.g),r=h,c=0,s=r.length;c<s;++c)i=r[c],Mje(e,i)&&Ub(i,!0);if(t==Jc||t==Q8)for(f=hh(l.e),r=f,c=0,s=r.length;c<s;++c)i=r[c],Eje(e,i)&&Ub(i,!0)}}function mCe(n){var e,t;switch(e=null,t=null,xke(n).g){case 1:e=(en(),Zn),t=Wn;break;case 2:e=(en(),ae),t=Xn;break;case 3:e=(en(),Wn),t=Zn;break;case 4:e=(en(),Xn),t=ae}wG(n,u(ho(Sp(u(ot(n.k,e),15).Oc(),w2)),113)),bG(n,u(ho(_0(u(ot(n.k,t),15).Oc(),w2)),113))}function vCe(n){var e,t,i,r,c,s;if(r=u(sn(n.j,0),12),r.e.c.length+r.g.c.length==0)n.n.a=0;else{for(s=0,i=$h(Eo(S(C(Ao,1),Kn,20,0,[new e4(r),new ip(r)])));pe(i);)t=u(fe(i),12),s+=t.i.n.a+t.n.a+t.a.a;e=u(v(n,(cn(),b0)),8),c=e?e.a:0,n.n.a=s/(r.e.c.length+r.g.c.length)-c}}function cqn(n,e){var t,i,r;for(i=new M(e.a);i.a<i.c.c.length;)t=u(E(i),225),YN(u(t.b,68),mi(Fi(u(e.b,68).c),u(e.b,68).a)),r=MUn(u(e.b,68).b,u(t.b,68).b),r>1&&(n.a=!0),W0e(u(t.b,68),tt(Fi(u(e.b,68).c),ch(mi(Fi(u(t.b,68).a),u(e.b,68).a),r))),AAn(n,e),cqn(n,t)}function uqn(n){var e,t,i,r,c,s,f;for(c=new M(n.a.a);c.a<c.c.c.length;)i=u(E(c),194),i.e=0,i.d.a.$b();for(r=new M(n.a.a);r.a<r.c.c.length;)for(i=u(E(r),194),t=i.a.a.ec().Kc();t.Ob();)for(e=u(t.Pb(),86),f=e.f.Kc();f.Ob();)s=u(f.Pb(),86),s.d!=i&&(fi(i.d,s),++s.d.e)}function kCe(n){var e,t,i,r,c,s,f,h;for(h=n.j.c.length,t=0,e=h,r=2*h,f=new M(n.j);f.a<f.c.c.length;)switch(s=u(E(f),12),s.j.g){case 2:case 4:s.p=-1;break;case 1:case 3:i=s.e.c.length,c=s.g.c.length,i>0&&c>0?s.p=e++:i>0?s.p=t++:c>0?s.p=r++:s.p=t++}Ln(),Yt(n.j,new _gn)}function yCe(n){var e,t;t=null,e=u(sn(n.g,0),18);do{if(t=e.d.i,kt(t,(W(),Es)))return u(v(t,Es),12).i;if(t.k!=(Vn(),zt)&&pe(new ie(ce(Qt(t).a.Kc(),new En))))e=u(fe(new ie(ce(Qt(t).a.Kc(),new En))),18);else if(t.k!=zt)return null}while(t&&t.k!=(Vn(),zt));return t}function jCe(n,e){var t,i,r,c,s,f,h,l,a;for(f=e.j,s=e.g,h=u(sn(f,f.c.length-1),113),a=(Nn(0,f.c.length),u(f.c[0],113)),l=Fx(n,s,h,a),c=1;c<f.c.length;c++)t=(Nn(c-1,f.c.length),u(f.c[c-1],113)),r=(Nn(c,f.c.length),u(f.c[c],113)),i=Fx(n,s,t,r),i>l&&(h=t,a=r,l=i);e.a=a,e.c=h}function ECe(n,e,t){var i,r,c,s,f,h,l;for(l=new Ul(new X7n(n)),s=S(C(RZn,1),LXn,12,0,[e,t]),f=0,h=s.length;f<h;++f)for(c=s[f],l.a.zc(c,(_n(),ga))==null,r=new Lf(c.b);tc(r.a)||tc(r.b);)i=u(tc(r.a)?E(r.a):E(r.b),18),i.c==i.d||B7(l,c==i.c?i.d:i.c);return Pe(l),new _u(l)}function qs(n){if(!n.a.d||!n.a.e)throw T(new Ar((ll(GQn),GQn.k+" must have a source and target "+(ll(ion),ion.k)+" specified.")));if(n.a.d==n.a.e)throw T(new Ar("Network simplex does not support self-loops: "+n.a+" "+n.a.d+" "+n.a.e));return BM(n.a.d.g,n.a),BM(n.a.e.b,n.a),n.a}function MCe(n,e){var t,i,r,c,s,f,h;for(e.Ug("Constraints Postprocessor",1),s=0,c=new M(n.b);c.a<c.c.c.length;){for(r=u(E(c),30),h=0,f=!1,i=new M(r.a);i.a<i.c.c.length;)t=u(E(i),10),t.k==(Vn(),zt)&&(f=!0,U(t,(cn(),gO),Y(s)),U(t,aO,Y(h)),++h);f&&++s}e.Vg()}function oqn(n,e,t){var i,r,c,s,f,h;if(i=0,e.b!=0&&t.b!=0){c=ge(e,0),s=ge(t,0),f=$(B(be(c))),h=$(B(be(s))),r=!0;do{if(f>h-n.b&&f<h+n.b)return-1;f>h-n.a&&f<h+n.a&&++i,f<=h&&c.b!=c.d.c?f=$(B(be(c))):h<=f&&s.b!=s.d.c?h=$(B(be(s))):r=!1}while(r)}return i}function sqn(n,e){var t,i;return H7(n.a),hf(n.a,(yC(),BO),BO),hf(n.a,N2,N2),i=new ii,Fe(i,N2,(wS(),gq)),x(z(e,(oa(),kq)))!==x((Ik(),FO))&&Fe(i,N2,dq),on(un(z(e,Yln)))&&Fe(i,N2,pq),Fe(i,N2,bq),on(un(z(e,n1n)))&&Iu(i,N2,wq),MX(n.a,i),t=gy(n.a,e),t}function TCe(n,e,t,i,r){var c,s,f,h;for(h=(c=u(of(lr),9),new _o(c,u(xs(c,c.length),9),0)),f=new M(n.j);f.a<f.c.c.length;)s=u(E(f),12),e[s.p]&&(QLe(s,e[s.p],i),_s(h,s.j));r?(Wx(n,e,(en(),Zn),2*t,i),Wx(n,e,Wn,2*t,i)):(Wx(n,e,(en(),Xn),2*t,i),Wx(n,e,ae,2*t,i))}function CCe(n){var e,t;for(t=new ie(ce(Qt(n).a.Kc(),new En));pe(t);)if(e=u(fe(t),18),e.d.i.k!=(Vn(),Sc))throw T(new _l(oB+qk(n)+"' has its layer constraint set to LAST, but has at least one outgoing edge that does not go to a LAST_SEPARATE node. That must not happen."))}function SCe(n,e,t){var i,r,c,s,f;for(t.Ug("Longest path layering",1),n.a=e,f=n.a.a,n.b=F(ye,_e,28,f.c.length,15,1),i=0,s=new M(f);s.a<s.c.c.length;)r=u(E(s),10),r.p=i,n.b[i]=-1,++i;for(c=new M(f);c.a<c.c.c.length;)r=u(E(c),10),FHn(n,r);f.c.length=0,n.a=null,n.b=null,t.Vg()}function PCe(n,e,t,i){var r,c,s,f,h,l,a,d,g;for(h=0,a=new M(n.a);a.a<a.c.c.length;){for(l=u(E(a),10),f=0,c=new ie(ce(ji(l).a.Kc(),new En));pe(c);)r=u(fe(c),18),d=Of(r.c).b,g=Of(r.d).b,f=y.Math.max(f,y.Math.abs(g-d));h=y.Math.max(h,f)}return s=i*y.Math.min(1,e/t)*h,s}function ICe(n,e){var t,i,r,c,s;for(s=u(v(e,(lc(),Lln)),433),c=ge(e.b,0);c.b!=c.d.c;)if(r=u(be(c),40),n.b[r.g]==0){switch(s.g){case 0:TBn(n,r);break;case 1:KMe(n,r)}n.b[r.g]=2}for(i=ge(n.a,0);i.b!=i.d.c;)t=u(be(i),65),iw(t.b.d,t,!0),iw(t.c.b,t,!0);U(e,(pt(),yln),n.a)}function sen(n){var e;return e=new i6,n&256&&(e.a+="F"),n&128&&(e.a+="H"),n&512&&(e.a+="X"),n&2&&(e.a+="i"),n&8&&(e.a+="m"),n&4&&(e.a+="s"),n&32&&(e.a+="u"),n&64&&(e.a+="w"),n&16&&(e.a+="x"),n&Gs&&(e.a+=","),az(e.a)}function OCe(n,e){var t,i,r,c,s,f;e.Ug(PVn,1),r=u(z(n,(Bf(),h9)),107),c=(!n.a&&(n.a=new q(Ye,n,10,11)),n.a),s=x7e(c),f=y.Math.max(s.a,$(B(z(n,(_h(),f9))))-(r.b+r.c)),i=y.Math.max(s.b,$(B(z(n,UO)))-(r.d+r.a)),t=i-s.b,ht(n,s9,t),ht(n,A3,f),ht(n,Dv,i+t),e.Vg()}function ru(n,e){dr();var t,i,r,c;return e?e==(at(),pse)||(e==cse||e==zd||e==rse)&&n!=obn?new itn(n,e):(i=u(e,692),t=i.$k(),t||(I4(Nr((Lu(),zi),e)),t=i.$k()),c=(!t.i&&(t.i=new de),t.i),r=u(Fr(wr(c.f,n)),2041),!r&&Ve(c,n,r=new itn(n,e)),r):ese}function ACe(n,e){var t,i;if(i=B7(n.b,e.b),!i)throw T(new Ar("Invalid hitboxes for scanline constraint calculation."));(nRn(e.b,u(Ghe(n.b,e.b),60))||nRn(e.b,u(Uhe(n.b,e.b),60)))&&fl(),n.a[e.b.f]=u(OL(n.b,e.b),60),t=u(IL(n.b,e.b),60),t&&(n.a[t.f]=e.b)}function LCe(n,e,t){var i,r,c,s,f,h,l,a,d;for(c=Xg(e,!1,!1),l=Qk(c),d=$(B(z(e,(M5(),w_)))),r=mzn(l,d+n.a),a=new bR(r),Ur(a,e),Ve(n.b,e,a),Fn(t.c,a),h=(!e.n&&(e.n=new q(Sr,e,1,7)),e.n),f=new ne(h);f.e!=f.i.gc();)s=u(ue(f),135),i=fy(n,s,!0,0,0),Fn(t.c,i);return a}function NCe(n,e){var t,i,r,c,s,f,h;for(r=new Z,t=0;t<=n.j;t++)i=new Nc(e),i.p=n.j-t,Fn(r.c,i);for(f=new M(n.p);f.a<f.c.c.length;)s=u(E(f),10),$i(s,u(sn(r,n.j-n.g[s.p]),30));for(c=new M(r);c.a<c.c.c.length;)h=u(E(c),30),h.a.c.length==0&&q6(c);e.b.c.length=0,hi(e.b,r)}function DCe(n,e){var t,i,r,c,s,f,h,l,a;for(h=u(v(n,(W(),st)),12),l=cc(S(C(Ei,1),J,8,0,[h.i.n,h.n,h.a])).a,a=n.i.n.b,t=hh(n.e),r=t,c=0,s=r.length;c<s;++c)i=r[c],Oi(i,h),ir(i.a,new V(l,a)),e&&(f=u(v(i,(cn(),Rr)),75),f||(f=new Tu,U(i,Rr,f)),Re(f,new V(l,a)))}function $Ce(n,e){var t,i,r,c,s,f,h,l,a;for(r=u(v(n,(W(),st)),12),l=cc(S(C(Ei,1),J,8,0,[r.i.n,r.n,r.a])).a,a=n.i.n.b,t=hh(n.g),s=t,f=0,h=s.length;f<h;++f)c=s[f],Zi(c,r),gg(c.a,new V(l,a)),e&&(i=u(v(c,(cn(),Rr)),75),i||(i=new Tu,U(c,Rr,i)),Re(i,new V(l,a)))}function xCe(n){var e,t,i,r,c,s,f,h,l;if(i=n.b,c=i.e,s=Ep(u(v(i,(cn(),Ft)),101)),t=!!c&&u(v(c,(W(),Hc)),21).Hc((pr(),cs)),!(s||t))for(l=(f=new ol(n.e).a.vc().Kc(),new P0(f));l.a.Ob();)h=(e=u(l.a.Pb(),44),u(e.md(),113)),h.a&&(r=h.d,ic(r,null),h.c=!0,n.a=!0)}function RCe(n,e){var t,i,r,c;for(e.Ug("Semi-Interactive Crossing Minimization Processor",1),t=!1,r=new M(n.b);r.a<r.c.c.length;)i=u(E(r),30),c=Nk(fC(ut(ut(new Cn(null,new On(i.a,16)),new E2n),new M2n),new T2n),new C2n),t=t|c.a!=null;t&&U(n,(W(),ifn),(_n(),!0)),e.Vg()}function KCe(n,e){var t,i,r,c,s,f;for(n.b=new Z,n.d=u(v(e,(W(),P3)),234),n.e=ype(n.d),c=new Mt,r=Af(S(C(DZn,1),OXn,36,0,[e])),s=0;s<r.c.length;)i=(Nn(s,r.c.length),u(r.c[s],36)),i.p=s++,t=new EGn(i,n.a,n.b),hi(r,t.b),nn(n.b,t),t.s&&(f=ge(c,0),_7(f,t));return n.c=new ni,c}function BCe(n,e){var t,i,r,c,s,f;for(s=u(u(ot(n.r,e),21),87).Kc();s.Ob();)c=u(s.Pb(),117),t=c.c?nW(c.c):0,t>0?c.a?(f=c.b.Mf().a,t>f&&(r=(t-f)/2,c.d.b=r,c.d.c=r)):c.d.c=n.s+t:F6(n.u)&&(i=enn(c.b),i.c<0&&(c.d.b=-i.c),i.c+i.b>c.b.Mf().a&&(c.d.c=i.c+i.b-c.b.Mf().a))}function FCe(n,e){var t,i,r,c,s;s=new Z,t=e;do c=u(ee(n.b,t),131),c.B=t.c,c.D=t.d,Fn(s.c,c),t=u(ee(n.k,t),18);while(t);return i=(Nn(0,s.c.length),u(s.c[0],131)),i.j=!0,i.A=u(i.d.a.ec().Kc().Pb(),18).c.i,r=u(sn(s,s.c.length-1),131),r.q=!0,r.C=u(r.d.a.ec().Kc().Pb(),18).d.i,s}function _Ce(n){var e,t;if(e=u(n.a,17).a,t=u(n.b,17).a,e>=0){if(e==t)return new bi(Y(-e-1),Y(-e-1));if(e==-t)return new bi(Y(-e),Y(t+1))}return y.Math.abs(e)>y.Math.abs(t)?e<0?new bi(Y(-e),Y(t)):new bi(Y(-e),Y(t+1)):new bi(Y(e+1),Y(t))}function HCe(n){var e,t;t=u(v(n,(cn(),ou)),171),e=u(v(n,(W(),Ad)),311),t==(Yo(),ya)?(U(n,ou,Ej),U(n,Ad,(vl(),k2))):t==xw?(U(n,ou,Ej),U(n,Ad,(vl(),E3))):e==(vl(),k2)?(U(n,ou,ya),U(n,Ad,vj)):e==E3&&(U(n,ou,xw),U(n,Ad,vj))}function AS(){AS=R,Lj=new S3n,Jie=Fe(new ii,(Vi(),Ac),(tr(),PI)),Zie=Iu(Fe(new ii,Ac,xI),zr,$I),nre=ah(ah(h6(Iu(Fe(new ii,Vs,FI),zr,BI),Fc),KI),_I),Qie=Iu(Fe(Fe(Fe(new ii,Jh,OI),Fc,LI),Fc,hv),zr,AI),Yie=Iu(Fe(Fe(new ii,Fc,hv),Fc,SI),zr,CI)}function K5(){K5=R,ire=Fe(Iu(new ii,(Vi(),zr),(tr(),nsn)),Ac,PI),ore=ah(ah(h6(Iu(Fe(new ii,Vs,FI),zr,BI),Fc),KI),_I),rre=Iu(Fe(Fe(Fe(new ii,Jh,OI),Fc,LI),Fc,hv),zr,AI),ure=Fe(Fe(new ii,Ac,xI),zr,$I),cre=Iu(Fe(Fe(new ii,Fc,hv),Fc,SI),zr,CI)}function qCe(n,e,t,i,r){var c,s;(!fr(e)&&e.c.i.c==e.d.i.c||!fxn(cc(S(C(Ei,1),J,8,0,[r.i.n,r.n,r.a])),t))&&!fr(e)&&(e.c==r?g4(e.a,0,new rr(t)):Re(e.a,new rr(t)),i&&!sf(n.a,t)&&(s=u(v(e,(cn(),Rr)),75),s||(s=new Tu,U(e,Rr,s)),c=new rr(t),xt(s,c,s.c.b,s.c),fi(n.a,c)))}function fqn(n,e){var t,i,r,c;for(c=Se(er(Uh,xh(Se(er(e==null?0:mt(e),Gh)),15))),t=c&n.b.length-1,r=null,i=n.b[t];i;r=i,i=i.a)if(i.d==c&&sh(i.i,e))return r?r.a=i.a:n.b[t]=i.a,Fjn(u(as(i.c),604),u(as(i.f),604)),V9(u(as(i.b),227),u(as(i.e),227)),--n.f,++n.e,!0;return!1}function UCe(n){var e,t;for(t=new ie(ce(ji(n).a.Kc(),new En));pe(t);)if(e=u(fe(t),18),e.c.i.k!=(Vn(),Sc))throw T(new _l(oB+qk(n)+"' 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 GCe(n,e,t){var i,r,c,s,f,h,l;if(r=dKn(n.Db&254),r==0)n.Eb=t;else{if(r==1)f=F(ki,Kn,1,2,5,1),c=Bx(n,e),c==0?(f[0]=t,f[1]=n.Eb):(f[0]=n.Eb,f[1]=t);else for(f=F(ki,Kn,1,r+1,5,1),s=cd(n.Eb),i=2,h=0,l=0;i<=128;i<<=1)i==e?f[l++]=t:n.Db&i&&(f[l++]=s[h++]);n.Eb=f}n.Db|=e}function hqn(n,e,t){var i,r,c,s;for(this.b=new Z,r=0,i=0,s=new M(n);s.a<s.c.c.length;)c=u(E(s),176),t&&YIe(c),nn(this.b,c),r+=c.o,i+=c.p;this.b.c.length>0&&(c=u(sn(this.b,0),176),r+=c.o,i+=c.p),r*=2,i*=2,e>1?r=wi(y.Math.ceil(r*e)):i=wi(y.Math.ceil(i/e)),this.a=new XY(r,i)}function lqn(n,e,t,i,r,c){var s,f,h,l,a,d,g,p,m,k,j,P;for(a=i,e.j&&e.o?(p=u(ee(n.f,e.A),60),k=p.d.c+p.d.b,--a):k=e.a.c+e.a.b,d=r,t.q&&t.o?(p=u(ee(n.f,t.C),60),l=p.d.c,++d):l=t.a.c,j=l-k,h=y.Math.max(2,d-a),f=j/h,m=k+f,g=a;g<d;++g)s=u(c.Xb(g),131),P=s.a.b,s.a.c=m-P/2,m+=f}function aqn(n,e){var t,i,r,c,s,f,h,l,a,d,g;r=e?new Kpn:new Bpn,c=!1;do for(c=!1,l=e?Qo(n.b):n.b,h=l.Kc();h.Ob();)for(f=u(h.Pb(),30),g=Cb(f.a),e||Qo(g),d=new M(g);d.a<d.c.c.length;)a=u(E(d),10),r.Mb(a)&&(i=a,t=u(v(a,(W(),o0)),313),s=e?t.b:t.k,c=Kqn(i,s,e,!1));while(c)}function fen(n,e,t,i,r,c){var s,f,h,l,a,d;for(l=t.c.length,c&&(n.c=F(ye,_e,28,e.length,15,1)),s=r?0:e.length-1;r?s<e.length:s>=0;s+=r?1:-1){for(f=e[s],h=i==(en(),Zn)?r?uc(f,i):Qo(uc(f,i)):r?Qo(uc(f,i)):uc(f,i),c&&(n.c[f.p]=h.gc()),d=h.Kc();d.Ob();)a=u(d.Pb(),12),n.d[a.p]=l++;hi(t,h)}}function dqn(n,e,t){var i,r,c,s,f,h,l,a;for(c=$(B(n.b.Kc().Pb())),l=$(B(Hve(e.b))),i=ch(Fi(n.a),l-t),r=ch(Fi(e.a),t-c),a=tt(i,r),ch(a,1/(l-c)),this.a=a,this.b=new Z,f=!0,s=n.b.Kc(),s.Pb();s.Ob();)h=$(B(s.Pb())),f&&h-t>_B&&(this.b.Fc(t),f=!1),this.b.Fc(h);f&&this.b.Fc(t)}function zCe(n){var e,t,i,r;if(hPe(n,n.n),n.d.c.length>0){for(e6(n.c);Unn(n,u(E(new M(n.e.a)),125))<n.e.a.c.length;){for(e=N7e(n),r=e.e.e-e.d.e-e.a,e.e.j&&(r=-r),i=new M(n.e.a);i.a<i.c.c.length;)t=u(E(i),125),t.j&&(t.e+=r);e6(n.c)}e6(n.c),Onn(n,u(E(new M(n.e.a)),125)),pGn(n)}}function XCe(n,e){qp();var t,i;if(t=WD(z4(),e.Pg()),t){if(i=t.j,L(n,207))return k2e(u(n,27))?Su(i,(pf(),pi))||Su(i,xn):Su(i,(pf(),pi));if(L(n,326))return Su(i,(pf(),Ih));if(L(n,193))return Su(i,(pf(),Fd));if(L(n,366))return Su(i,(pf(),E1))}return!0}function VCe(n,e,t){var i,r,c,s,f,h;if(r=t,c=r.Lk(),Pl(n.e,c)){if(c.Si()){for(i=u(n.g,124),s=0;s<n.i;++s)if(f=i[s],rt(f,r)&&s!=e)throw T(new Gn(Vy))}}else for(h=ru(n.e.Dh(),c),i=u(n.g,124),s=0;s<n.i;++s)if(f=i[s],h.am(f.Lk())&&s!=e)throw T(new Gn(Zy));return u(Bg(n,e,t),76)}function bqn(n,e){if(e instanceof Object)try{if(e.__java$exception=n,navigator.userAgent.toLowerCase().indexOf("msie")!=-1&&$doc.documentMode<9)return;var t=n;Object.defineProperties(e,{cause:{get:function(){var i=t.he();return i&&i.fe()}},suppressed:{get:function(){return t.ge()}}})}catch{}}function wqn(n,e){var t,i,r,c,s;if(i=e>>5,e&=31,i>=n.d)return n.e<0?(dh(),vQn):(dh(),P8);if(c=n.d-i,r=F(ye,_e,28,c+1,15,1),Rje(r,c,n.a,i,e),n.e<0){for(t=0;t<i&&n.a[t]==0;t++);if(t<i||e>0&&n.a[t]<<32-e){for(t=0;t<c&&r[t]==-1;t++)r[t]=0;t==c&&++c,++r[t]}}return s=new Ya(n.e,c,r),J6(s),s}function gqn(n){var e,t,i,r;return r=Pf(n),t=new $9n(r),i=new x9n(r),e=new Z,hi(e,(!n.d&&(n.d=new Dn(Vt,n,8,5)),n.d)),hi(e,(!n.e&&(n.e=new Dn(Vt,n,7,4)),n.e)),u(Wr(_r(ut(new Cn(null,new On(e,16)),t),i),W0(new Y2,new Z2,new np,new ep,S(C(xr,1),G,108,0,[(Gu(),Sw),Yr]))),21)}function WCe(n,e){var t;switch(t=u(v(n,(cn(),bO)),283),e.Ug("Label side selection ("+t+")",1),t.g){case 0:SHn(n,(Co(),nl));break;case 1:SHn(n,(Co(),Sa));break;case 2:zUn(n,(Co(),nl));break;case 3:zUn(n,(Co(),Sa));break;case 4:Tqn(n,(Co(),nl));break;case 5:Tqn(n,(Co(),Sa))}e.Vg()}function Pl(n,e){dr();var t,i,r;return e.Jk()?!0:e.Ik()==-2?e==(n3(),_3)||e==F3||e==SU||e==PU?!0:(r=n.Dh(),At(r,e)>=0?!1:(t=Qg((Lu(),zi),r,e),t?(i=t.Ik(),(i>1||i==-1)&&yb(Nr(zi,t))!=3):!0)):!1}function JCe(n,e,t,i){var r,c,s,f,h;return f=Gr(u(N((!e.b&&(e.b=new Dn(he,e,4,7)),e.b),0),84)),h=Gr(u(N((!e.c&&(e.c=new Dn(he,e,5,8)),e.c),0),84)),St(f)==St(h)||Y0(h,f)?null:(s=V7(e),s==t?i:(c=u(ee(n.a,s),10),c&&(r=c.e,r)?r:null))}function QCe(n,e,t){var i,r,c,s,f;for(t.Ug("Longest path to source layering",1),n.a=e,f=n.a.a,n.b=F(ye,_e,28,f.c.length,15,1),i=0,s=new M(f);s.a<s.c.c.length;)r=u(E(s),10),r.p=i,n.b[i]=-1,++i;for(c=new M(f);c.a<c.c.c.length;)r=u(E(c),10),_Hn(n,r);f.c.length=0,n.a=null,n.b=null,t.Vg()}function hen(n,e,t){var i,r,c,s,f,h;if(i=Ihe(t,n.length),s=n[i],c=Xjn(t,s.length),s[c].k==(Vn(),Zt))for(h=e.j,r=0;r<h.c.length;r++)f=(Nn(r,h.c.length),u(h.c[r],12)),(t?f.j==(en(),Zn):f.j==(en(),Wn))&&on(un(v(f,(W(),yj))))&&(Go(h,r,u(v(s[c],(W(),st)),12)),c+=t?1:-1)}function YCe(n,e){var t,i,r,c,s,f,h,l;e.Ug("Greedy Width Approximator",1),t=$(B(z(n,(Bf(),zO)))),h=u(z(n,h9),107),c=u(z(n,M1n),394),s=on(un(z(n,E1n))),f=$(B(z(n,l9))),l=(!n.a&&(n.a=new q(Ye,n,10,11)),n.a),NQ(l),r=new vPn(t,c,s),i=sPe(r,l,f,h),ht(n,(_h(),Xw),i.c),e.Vg()}function pqn(n){if(n.g==null)switch(n.p){case 0:n.g=y2e(n)?(_n(),ov):(_n(),ga);break;case 1:n.g=ak(b3e(n));break;case 2:n.g=vk(ape(n));break;case 3:n.g=Xwe(n);break;case 4:n.g=new z9(zwe(n));break;case 6:n.g=Tl(Jwe(n));break;case 5:n.g=Y(c2e(n));break;case 7:n.g=sm(p3e(n))}return n.g}function len(n){if(n.n==null)switch(n.p){case 0:n.n=j2e(n)?(_n(),ov):(_n(),ga);break;case 1:n.n=ak(w3e(n));break;case 2:n.n=vk(dpe(n));break;case 3:n.n=Vwe(n);break;case 4:n.n=new z9(Wwe(n));break;case 6:n.n=Tl(Qwe(n));break;case 5:n.n=Y(u2e(n));break;case 7:n.n=sm(g3e(n))}return n.n}function mqn(n,e,t,i){var r,c,s,f,h;if(f=(dr(),u(e,69).xk()),Pl(n.e,e)){if(e.Si()&&BS(n,e,i,L(e,102)&&(u(e,19).Bb&hr)!=0))throw T(new Gn(Vy))}else for(h=ru(n.e.Dh(),e),r=u(n.g,124),s=0;s<n.i;++s)if(c=r[s],h.am(c.Lk()))throw T(new Gn(Zy));v5(n,gnn(n,e,t),f?u(i,76):Rh(e,i))}function vqn(n){var e,t,i,r,c,s,f;for(c=new M(n.a.a);c.a<c.c.c.length;)i=u(E(c),316),i.g=0,i.i=0,i.e.a.$b();for(r=new M(n.a.a);r.a<r.c.c.length;)for(i=u(E(r),316),t=i.a.a.ec().Kc();t.Ob();)for(e=u(t.Pb(),60),f=e.c.Kc();f.Ob();)s=u(f.Pb(),60),s.a!=i&&(fi(i.e,s),++s.a.g,++s.a.i)}function ZCe(n){var e,t,i,r,c;r=u(v(n,(cn(),xd)),21),c=u(v(n,kO),21),t=new V(n.f.a+n.d.b+n.d.c,n.f.b+n.d.d+n.d.a),e=new rr(t),r.Hc((go(),Qw))&&(i=u(v(n,Ev),8),c.Hc((io(),_v))&&(i.a<=0&&(i.a=20),i.b<=0&&(i.b=20)),e.a=y.Math.max(t.a,i.a),e.b=y.Math.max(t.b,i.b)),eOe(n,t,e)}function nSe(n,e){var t,i,r;e.a?(B7(n.b,e.b),n.a[e.b.i]=u(OL(n.b,e.b),86),t=u(IL(n.b,e.b),86),t&&(n.a[t.i]=e.b)):(i=u(OL(n.b,e.b),86),i&&i==n.a[e.b.i]&&i.d&&i.d!=e.b.d&&i.f.Fc(e.b),r=u(IL(n.b,e.b),86),r&&n.a[r.i]==e.b&&r.d&&r.d!=e.b.d&&e.b.f.Fc(r),EN(n.b,e.b))}function kqn(n,e){var t,i,r,c,s,f;return c=n.d,f=$(B(v(n,(cn(),m1)))),f<0&&(f=0,U(n,m1,f)),e.o.b=f,s=y.Math.floor(f/2),i=new Ic,gi(i,(en(),Wn)),ic(i,e),i.n.b=s,r=new Ic,gi(r,Zn),ic(r,e),r.n.b=s,Oi(n,i),t=new Eb,Ur(t,n),U(t,Rr,null),Zi(t,r),Oi(t,c),bIe(e,n,t),sEe(n,t),t}function eSe(n){var e,t;return t=u(v(n,(W(),Hc)),21),e=new ii,t.Hc((pr(),R8))&&(To(e,zie),To(e,iln)),(t.Hc(yv)||on(un(v(n,(cn(),TH)))))&&(To(e,iln),t.Hc(v2)&&To(e,Vie)),t.Hc(cs)&&To(e,Gie),t.Hc(K8)&&To(e,Wie),t.Hc(nO)&&To(e,Xie),t.Hc(vv)&&To(e,qie),t.Hc(kv)&&To(e,Uie),e}function tSe(n,e){var t,i,r,c,s,f,h,l,a,d,g;return i=n.d,c=e.d,f=i+c,h=n.e!=e.e?-1:1,f==2?(a=er(vi(n.a[0],mr),vi(e.a[0],mr)),g=Se(a),d=Se(U1(a,32)),d==0?new gl(h,g):new Ya(h,2,S(C(ye,1),_e,28,15,[g,d]))):(t=n.a,r=e.a,s=F(ye,_e,28,f,15,1),e5e(t,i,r,c,s),l=new Ya(h,f,s),J6(l),l)}function yqn(n,e,t,i){var r,c;if(e){if(r=n.a.Ne(t.d,e.d),r==0)return i.d=bV(e,t.e),i.b=!0,e;c=r<0?0:1,e.a[c]=yqn(n,e.a[c],t,i),O0(e.a[c])&&(O0(e.a[1-c])?(e.b=!0,e.a[0].b=!1,e.a[1].b=!1):O0(e.a[c].a[c])?e=jC(e,1-c):O0(e.a[c].a[1-c])&&(e=fLn(e,1-c)))}else return t;return e}function jqn(n,e,t){var i,r,c,s;r=n.i,i=n.n,$J(n,(wf(),bc),r.c+i.b,t),$J(n,wc,r.c+r.b-i.c-t[2],t),s=r.b-i.b-i.c,t[0]>0&&(t[0]+=n.d,s-=t[0]),t[2]>0&&(t[2]+=n.d,s-=t[2]),c=y.Math.max(0,s),t[1]=y.Math.max(t[1],s),$J(n,Wc,r.c+i.b+t[0]-(t[1]-s)/2,t),e==Wc&&(n.c.b=c,n.c.c=r.c+i.b+(c-s)/2)}function Eqn(){this.c=F(Ii,Cr,28,(en(),S(C(lr,1),Tc,64,0,[sc,Xn,Zn,ae,Wn])).length,15,1),this.b=F(Ii,Cr,28,S(C(lr,1),Tc,64,0,[sc,Xn,Zn,ae,Wn]).length,15,1),this.a=F(Ii,Cr,28,S(C(lr,1),Tc,64,0,[sc,Xn,Zn,ae,Wn]).length,15,1),Kz(this.c,Pt),Kz(this.b,li),Kz(this.a,li)}function xc(n,e,t){var i,r,c,s;if(e<=t?(r=e,c=t):(r=t,c=e),i=0,n.b==null)n.b=F(ye,_e,28,2,15,1),n.b[0]=r,n.b[1]=c,n.c=!0;else{if(i=n.b.length,n.b[i-1]+1==r){n.b[i-1]=c;return}s=F(ye,_e,28,i+2,15,1),Oc(n.b,0,s,0,i),n.b=s,n.b[i-1]>=r&&(n.c=!1,n.a=!1),n.b[i++]=r,n.b[i]=c,n.c||Gg(n)}}function iSe(n,e,t){var i,r,c,s,f,h,l;for(l=e.d,n.a=new Gc(l.c.length),n.c=new de,f=new M(l);f.a<f.c.c.length;)s=u(E(f),105),c=new yk(null),nn(n.a,c),Ve(n.c,s,c);for(n.b=new de,hEe(n,e),i=0;i<l.c.length-1;i++)for(h=u(sn(e.d,i),105),r=i+1;r<l.c.length;r++)XTe(n,h,u(sn(e.d,r),105),t)}function aw(n){var e,t,i,r,c;for(r=new Z,e=new R6((!n.a&&(n.a=new q(Ye,n,10,11)),n.a)),i=new ie(ce(Sl(n).a.Kc(),new En));pe(i);)t=u(fe(i),74),L(N((!t.b&&(t.b=new Dn(he,t,4,7)),t.b),0),193)||(c=Gr(u(N((!t.c&&(t.c=new Dn(he,t,5,8)),t.c),0),84)),e.a._b(c)||Fn(r.c,c));return r}function rSe(n,e,t){var i,r,c;if(n.e=t,n.d=0,n.b=0,n.f=1,n.i=e,(n.e&16)==16&&(n.i=bPe(n.i)),n.j=n.i.length,Ze(n),c=Kb(n),n.d!=n.j)throw T(new Ne($e((Oe(),SWn))));if(n.g){for(i=0;i<n.g.a.c.length;i++)if(r=u(kb(n.g,i),592),n.f<=r.a)throw T(new Ne($e((Oe(),PWn))));n.g.a.c.length=0}return c}function cSe(n,e){var t,i,r,c,s,f,h;for(t=li,f=(Vn(),zt),r=new M(e.a);r.a<r.c.c.length;)i=u(E(r),10),c=i.k,c!=zt&&(s=B(v(i,(W(),cfn))),s==null?(t=y.Math.max(t,0),i.n.b=t+VX(n.a,c,f)):i.n.b=(Jn(s),s)),h=VX(n.a,c,f),i.n.b<t+h+i.d.d&&(i.n.b=t+h+i.d.d),t=i.n.b+i.o.b+i.d.a,f=c}function Mqn(n,e,t,i,r){var c,s,f,h,l,a;if(n.d&&n.d.Gg(r),c=u(r.Xb(0),27),CBn(n,t,c,!1)||(s=u(r.Xb(r.gc()-1),27),CBn(n,i,s,!0))||onn(n,r))return!0;for(a=r.Kc();a.Ob();)for(l=u(a.Pb(),27),h=e.Kc();h.Ob();)if(f=u(h.Pb(),27),NS(n,l,f))return!0;return!1}function uSe(n,e,t){var i,r,c,s,f,h,l,a,d,g;g=e.c.length,d=(l=n.Ih(t),u(l>=0?n.Lh(l,!1,!0):Hb(n,t,!1),61));n:for(c=d.Kc();c.Ob();){for(r=u(c.Pb(),58),a=0;a<g;++a)if(s=(Nn(a,e.c.length),u(e.c[a],76)),h=s.md(),f=s.Lk(),i=r.Nh(f,!1),h==null?i!=null:!rt(h,i))continue n;return r}return null}function oSe(n,e){var t,i,r,c,s,f,h;for(e.Ug("Comment post-processing",1),c=new M(n.b);c.a<c.c.c.length;){for(r=u(E(c),30),i=new Z,f=new M(r.a);f.a<f.c.c.length;)s=u(E(f),10),h=u(v(s,(W(),I3)),15),t=u(v(s,M3),15),(h||t)&&(MLe(s,h,t),h&&hi(i,h),t&&hi(i,t));hi(r.a,i)}e.Vg()}function sSe(n,e,t,i){var r,c,s,f;for(r=u(h1(e,(en(),Wn)).Kc().Pb(),12),c=u(h1(e,Zn).Kc().Pb(),12),f=new M(n.j);f.a<f.c.c.length;){for(s=u(E(f),12);s.e.c.length!=0;)Oi(u(sn(s.e,0),18),r);for(;s.g.c.length!=0;)Zi(u(sn(s.g,0),18),c)}t||U(e,(W(),yf),null),i||U(e,(W(),Es),null)}function Xg(n,e,t){var i,r;if((!n.a&&(n.a=new q(Tt,n,6,6)),n.a).i==0)return zQ(n);if(i=u(N((!n.a&&(n.a=new q(Tt,n,6,6)),n.a),0),166),e&&(me((!i.a&&(i.a=new ti(xo,i,5)),i.a)),H4(i,0),U4(i,0),_4(i,0),q4(i,0)),t)for(r=(!n.a&&(n.a=new q(Tt,n,6,6)),n.a);r.i>1;)dw(r,r.i-1);return i}function Tqn(n,e){var t,i,r,c,s,f,h;for(t=new Mg,c=new M(n.b);c.a<c.c.c.length;){for(r=u(E(c),30),h=!0,i=0,f=new M(r.a);f.a<f.c.c.length;)switch(s=u(E(f),10),s.k.g){case 4:++i;case 1:vJ(t,s);break;case 0:oEe(s,e);default:t.b==t.c||wUn(t,i,h,!1,e),h=!1,i=0}t.b==t.c||wUn(t,i,h,!0,e)}}function aen(n,e){var t,i,r,c,s,f;for(t=0,f=new M(e);f.a<f.c.c.length;){for(s=u(E(f),12),hY(n.b,n.d[s.p]),r=new Lf(s.b);tc(r.a)||tc(r.b);)i=u(tc(r.a)?E(r.a):E(r.b),18),c=Sz(n,s==i.c?i.d:i.c),c>n.d[s.p]&&(t+=SJ(n.b,c),W1(n.a,Y(c)));for(;!t6(n.a);)uQ(n.b,u(Pp(n.a),17).a)}return t}function fSe(n){var e,t,i,r,c,s,f,h,l;for(n.a=new vV,l=0,r=0,i=new M(n.i.b);i.a<i.c.c.length;){for(e=u(E(i),30),e.p=r,h=new M(e.a);h.a<h.c.c.length;)f=u(E(h),10),f.p=l,++l;++r}for(c=n.r==(ps(),p0),s=c?XZn:zZn,t=new M(n.i.b);t.a<t.c.c.length;)e=u(E(t),30),Yt(e.a,s),sme(n.a,Y(e.p),e.a)}function Cqn(n,e,t){var i,r,c,s;for(c=(!e.a&&(e.a=new q(Ye,e,10,11)),e.a).i,r=new ne((!e.a&&(e.a=new q(Ye,e,10,11)),e.a));r.e!=r.i.gc();)i=u(ue(r),27),(!i.a&&(i.a=new q(Ye,i,10,11)),i.a).i==0||(c+=Cqn(n,i,!1));if(t)for(s=St(e);s;)c+=(!s.a&&(s.a=new q(Ye,s,10,11)),s.a).i,s=St(s);return c}function dw(n,e){var t,i,r,c;return n.Pj()?(i=null,r=n.Qj(),n.Tj()&&(i=n.Vj(n.$i(e),null)),t=n.Ij(4,c=Jp(n,e),null,e,r),n.Mj()&&c!=null&&(i=n.Oj(c,i)),i?(i.nj(t),i.oj()):n.Jj(t),c):(c=Jp(n,e),n.Mj()&&c!=null&&(i=n.Oj(c,null),i&&i.oj()),c)}function hSe(n){var e,t,i,r,c,s,f,h,l,a;for(l=n.a,e=new ni,h=0,i=new M(n.d);i.a<i.c.c.length;){for(t=u(E(i),226),a=0,ud(t.b,new m0n),s=ge(t.b,0);s.b!=s.d.c;)c=u(be(s),226),e.a._b(c)&&(r=t.c,f=c.c,a<f.d+f.a+l&&a+r.a+l>f.d&&(a=f.d+f.a+l));t.c.d=a,e.a.zc(t,e),h=y.Math.max(h,t.c.d+t.c.a)}return h}function pr(){pr=R,ZI=new L0("COMMENTS",0),cs=new L0("EXTERNAL_PORTS",1),R8=new L0("HYPEREDGES",2),nO=new L0("HYPERNODES",3),yv=new L0("NON_FREE_PORTS",4),v2=new L0("NORTH_SOUTH_PORTS",5),K8=new L0(JXn,6),vv=new L0("CENTER_LABELS",7),kv=new L0("END_LABELS",8),eO=new L0("PARTITIONS",9)}function lSe(n,e,t,i,r){return i<0?(i=Ug(n,r,S(C(fn,1),J,2,6,[sK,fK,hK,lK,c3,aK,dK,bK,wK,gK,pK,mK]),e),i<0&&(i=Ug(n,r,S(C(fn,1),J,2,6,["Jan","Feb","Mar","Apr",c3,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),e)),i<0?!1:(t.k=i,!0)):i>0?(t.k=i-1,!0):!1}function aSe(n,e,t,i,r){return i<0?(i=Ug(n,r,S(C(fn,1),J,2,6,[sK,fK,hK,lK,c3,aK,dK,bK,wK,gK,pK,mK]),e),i<0&&(i=Ug(n,r,S(C(fn,1),J,2,6,["Jan","Feb","Mar","Apr",c3,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),e)),i<0?!1:(t.k=i,!0)):i>0?(t.k=i-1,!0):!1}function dSe(n,e,t,i,r,c){var s,f,h,l;if(f=32,i<0){if(e[0]>=n.length||(f=Xi(n,e[0]),f!=43&&f!=45)||(++e[0],i=yS(n,e),i<0))return!1;f==45&&(i=-i)}return f==32&&e[0]-t==2&&r.b==2&&(h=new JE,l=h.q.getFullYear()-ha+ha-80,s=l%100,c.a=i==s,i+=(l/100|0)*100+(i<s?100:0)),c.p=i,!0}function Sqn(n,e){var t,i,r,c,s;St(n)&&(s=u(v(e,(cn(),xd)),181),x(z(n,Ft))===x((Ai(),Ia))&&ht(n,Ft,Qf),i=(cb(),new Qd(St(n))),c=new TN(St(n)?new Qd(St(n)):null,n),r=HGn(i,c,!1,!0),_s(s,(go(),Qw)),t=u(v(e,Ev),8),t.a=y.Math.max(r.a,t.a),t.b=y.Math.max(r.b,t.b))}function bSe(n,e,t){var i,r,c,s,f,h;for(s=u(v(n,(W(),hH)),15).Kc();s.Ob();){switch(c=u(s.Pb(),10),u(v(c,(cn(),ou)),171).g){case 2:$i(c,e);break;case 4:$i(c,t)}for(r=new ie(ce(Ml(c).a.Kc(),new En));pe(r);)i=u(fe(r),18),!(i.c&&i.d)&&(f=!i.d,h=u(v(i,ofn),12),f?Oi(i,h):Zi(i,h))}}function LS(){LS=R,F_=new Ap(eP,0,(en(),Xn),Xn),q_=new Ap(qK,1,ae,ae),B_=new Ap(HK,2,Zn,Zn),z_=new Ap(UK,3,Wn,Wn),H_=new Ap("NORTH_WEST_CORNER",4,Wn,Xn),__=new Ap("NORTH_EAST_CORNER",5,Xn,Zn),G_=new Ap("SOUTH_WEST_CORNER",6,ae,Wn),U_=new Ap("SOUTH_EAST_CORNER",7,Zn,ae)}function wSe(n){var e,t,i,r,c,s;for(c=new ni,e=new R6((!n.a&&(n.a=new q(Ye,n,10,11)),n.a)),r=new ie(ce(Sl(n).a.Kc(),new En));pe(r);)i=u(fe(r),74),L(N((!i.b&&(i.b=new Dn(he,i,4,7)),i.b),0),193)||(s=Gr(u(N((!i.c&&(i.c=new Dn(he,i,5,8)),i.c),0),84)),e.a._b(s)||(t=c.a.zc(s,c),t==null));return c}function Vg(){Vg=R,oan=S(C(Ra,1),PK,28,14,[1,1,2,6,24,120,720,5040,40320,362880,3628800,39916800,479001600,6227020800,87178291200,1307674368e3,{l:3506176,m:794077,h:1},{l:884736,m:916411,h:20},{l:3342336,m:3912489,h:363},{l:589824,m:3034138,h:6914},{l:3407872,m:1962506,h:138294}]),y.Math.pow(2,-65)}function Sm(){Sm=R;var n,e;for(m3=F(l2,J,92,32,0,1),I8=F(l2,J,92,32,0,1),n=1,e=0;e<=18;e++)m3[e]=(dh(),Ec(n,0)>=0?ia(n):U6(ia(n1(n)))),I8[e]=SM(Ks(n,e),0)?ia(Ks(n,e)):U6(ia(n1(Ks(n,e)))),n=er(n,5);for(;e<I8.length;e++)m3[e]=Og(m3[e-1],m3[1]),I8[e]=Og(I8[e-1],(dh(),QF))}function Pqn(n,e){var t,i,r,c,s;if(n.c.length==0)return new bi(Y(0),Y(0));for(t=(Nn(0,n.c.length),u(n.c[0],12)).j,s=0,c=e.g,i=e.g+1;s<n.c.length-1&&t.g<c;)++s,t=(Nn(s,n.c.length),u(n.c[s],12)).j;for(r=s;r<n.c.length-1&&t.g<i;)++r,t=(Nn(s,n.c.length),u(n.c[s],12)).j;return new bi(Y(s),Y(r))}function gSe(n,e,t,i){var r,c,s,f,h,l,a;h=uc(e,t),(t==(en(),ae)||t==Wn)&&(h=Qo(h)),s=!1;do for(r=!1,c=0;c<h.gc()-1;c++)l=u(h.Xb(c),12),f=u(h.Xb(c+1),12),nje(n,l,f,i)&&(s=!0,FD(n.a,u(h.Xb(c),12),u(h.Xb(c+1),12)),a=u(h.Xb(c+1),12),h.hd(c+1,u(h.Xb(c),12)),h.hd(c,a),r=!0);while(r);return s}function pSe(n,e,t){var i,r,c,s;for(t.Ug(aVn,1),r=u(Wr(ut(new Cn(null,new On(e.b,16)),new l4n),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[(Gu(),Yr)]))),15),eHn(n,r,0),s=ge(e.b,0);s.b!=s.d.c;)c=u(be(s),40),i=ee(n.a,Y(c.g))!=null?u(ee(n.a,Y(c.g)),17).a:0,U(c,(lc(),Ph),Y(i));t.Vg()}function NS(n,e,t){var i,r,c,s,f,h,l,a;return f=e.i-n.g/2,h=t.i-n.g/2,l=e.j-n.g/2,a=t.j-n.g/2,c=e.g+n.g,s=t.g+n.g,i=e.f+n.g,r=t.f+n.g,f<h+s&&h<f&&l<a+r&&a<l||h<f+c&&f<h&&a<l+i&&l<a||f<h+s&&h<f&&l<a&&a<l+i?!0:h<f+c&&f<h&&l<a+r&&a<l}function mSe(n,e,t){var i,r,c,s,f,h,l,a,d,g;for(c=e.c.length,s=(Nn(t,e.c.length),u(e.c[t],293)),f=s.a.o.a,d=s.c,g=0,l=s.c;l<=s.f;l++){if(f<=n.a[l])return l;for(a=n.a[l],h=null,r=t+1;r<c;r++)i=(Nn(r,e.c.length),u(e.c[r],293)),i.c<=l&&i.f>=l&&(h=i);h&&(a=y.Math.max(a,h.a.o.a)),a>g&&(d=l,g=a)}return d}function vSe(n){var e,t,i,r,c,s,f;for(c=new Ul(u(Pe(new k0n),50)),f=li,t=new M(n.d);t.a<t.c.c.length;){for(e=u(E(t),226),f=e.c.c;c.a.gc()!=0&&(s=u(c.a.Tc(),226),s.c.c+s.c.b<f);)c.a.Bc(s)!=null;for(r=c.a.ec().Kc();r.Ob();)i=u(r.Pb(),226),Re(i.b,e),Re(e.b,i);c.a.zc(e,(_n(),ga))==null}}function Iqn(n,e,t){var i,r,c,s,f;if(!D4(e)){for(f=t.eh((L(e,16)?u(e,16).gc():wl(e.Kc()))/n.a|0),f.Ug(dVn,1),s=new d4n,c=null,r=e.Kc();r.Ob();)i=u(r.Pb(),40),s=Eo(S(C(Ao,1),Kn,20,0,[s,new sl(i)])),c&&(U(c,(pt(),dre),i),U(i,cq,c),n$(i)==n$(c)&&(U(c,uq,i),U(i,$O,c))),c=i;f.Vg(),Iqn(n,s,t)}}function kSe(n,e){var t,i,r;if(e==null){for(i=(!n.a&&(n.a=new q(Kl,n,9,5)),new ne(n.a));i.e!=i.i.gc();)if(t=u(ue(i),694),r=t.c,(r??t.zb)==null)return t}else for(i=(!n.a&&(n.a=new q(Kl,n,9,5)),new ne(n.a));i.e!=i.i.gc();)if(t=u(ue(i),694),Sn(e,(r=t.c,r??t.zb)))return t;return null}function kR(n,e){var t;switch(t=null,e.g){case 1:n.e.pf((He(),iU))&&(t=u(n.e.of(iU),256));break;case 3:n.e.pf((He(),rU))&&(t=u(n.e.of(rU),256));break;case 2:n.e.pf((He(),tU))&&(t=u(n.e.of(tU),256));break;case 4:n.e.pf((He(),cU))&&(t=u(n.e.of(cU),256))}return!t&&(t=u(n.e.of((He(),xan)),256)),t}function Oqn(n,e,t){var i,r,c,s,f,h;for(r=t,c=0,f=new M(e);f.a<f.c.c.length;)s=u(E(f),27),ht(s,(oa(),_O),Y(r++)),h=aw(s),i=y.Math.atan2(s.j+s.f/2,s.i+s.g/2),i+=i<0?Md:0,i<.7853981633974483||i>jVn?Yt(h,n.b):i<=jVn&&i>EVn?Yt(h,n.d):i<=EVn&&i>MVn?Yt(h,n.c):i<=MVn&&Yt(h,n.a),c=Oqn(n,h,c);return r}function Aqn(n,e,t,i){var r,c,s,f,h,l;for(r=(i.c+i.a)/2,vo(e.j),Re(e.j,r),vo(t.e),Re(t.e,r),l=new Zjn,f=new M(n.f);f.a<f.c.c.length;)c=u(E(f),132),h=c.a,Xx(l,e,h),Xx(l,t,h);for(s=new M(n.k);s.a<s.c.c.length;)c=u(E(s),132),h=c.b,Xx(l,e,h),Xx(l,t,h);return l.b+=2,l.a+=BOn(e,n.q),l.a+=BOn(n.q,t),l}function ySe(n,e,t){var i;t.Ug("Processor arrange node",1),on(un(v(e,(lc(),Cln)))),i=u(ho(im(ut(new Cn(null,new On(e.b,16)),new L4n))),40),n.a=u(v(e,$ln),353),n.a==(b5(),hq)||n.a==KO?qGn(n,new Fu(S(C(DO,1),AP,40,0,[i])),t.eh(1)):n.a==fq&&pzn(n,new Fu(S(C(DO,1),AP,40,0,[i])),t.eh(1)),t.Vg()}function Bf(){Bf=R,zO=new Di((He(),x2),1.3),$ce=new Di(Vw,(_n(),!1)),k1n=new fb(15),h9=new Di(M1,k1n),l9=new Di(qd,15),Ace=Gj,Dce=Hd,xce=_2,Rce=Ca,Nce=F2,Aq=Wj,Kce=Ww,M1n=(Ten(),Pce),E1n=Sce,Nq=Oce,T1n=Ice,v1n=Mce,Lq=Ece,m1n=jce,j1n=Cce,p1n=Vj,Lce=eU,Bj=kce,g1n=vce,Fj=yce,y1n=Tce}function Lqn(n){var e,t,i,r,c,s,f;for(t=n.i,e=n.n,f=t.d,n.f==(bu(),ma)?f+=(t.a-n.e.b)/2:n.f==Xs&&(f+=t.a-n.e.b),r=new M(n.d);r.a<r.c.c.length;){switch(i=u(E(r),187),s=i.Mf(),c=new Ni,c.b=f,f+=s.b+n.a,n.b.g){case 0:c.a=t.c+e.b;break;case 1:c.a=t.c+e.b+(t.b-s.a)/2;break;case 2:c.a=t.c+t.b-e.c-s.a}i.Of(c)}}function Nqn(n){var e,t,i,r,c,s,f;for(t=n.i,e=n.n,f=t.c,n.b==(Uu(),pa)?f+=(t.b-n.e.a)/2:n.b==zs&&(f+=t.b-n.e.a),r=new M(n.d);r.a<r.c.c.length;){switch(i=u(E(r),187),s=i.Mf(),c=new Ni,c.a=f,f+=s.a+n.a,n.f.g){case 0:c.b=t.d+e.d;break;case 1:c.b=t.d+e.d+(t.a-s.b)/2;break;case 2:c.b=t.d+t.a-e.a-s.b}i.Of(c)}}function jSe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m;a=t.a.c,s=t.a.c+t.a.b,c=u(ee(t.c,e),468),p=c.f,m=c.a,h=new V(a,p),d=new V(s,m),r=a,t.p||(r+=n.c),r+=t.F+t.v*n.b,l=new V(r,p),g=new V(r,m),r5(e.a,S(C(Ei,1),J,8,0,[h,l])),f=t.d.a.gc()>1,f&&(i=new V(r,t.b),Re(e.a,i)),r5(e.a,S(C(Ei,1),J,8,0,[g,d]))}function den(n,e,t){var i,r;for(e<n.d.b.c.length?(n.b=u(sn(n.d.b,e),30),n.a=u(sn(n.d.b,e-1),30),n.c=e):(n.a=new Nc(n.d),n.a.p=e-1,nn(n.d.b,n.a),n.b=new Nc(n.d),n.b.p=e,nn(n.d.b,n.b),n.c=e),$i(t,n.b),r=new ie(ce(ji(t).a.Kc(),new En));pe(r);)i=u(fe(r),18),!i.c.i.c&&i.c.i.k==(Vn(),Sc)&&$i(i.c.i,n.a)}function Dqn(n){rb(n,new gd(eb(Yd(nb(Zd(new Fa,KP),"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 Vmn))),Q(n,KP,Wb,wdn),Q(n,KP,yw,15),Q(n,KP,uP,Y(0)),Q(n,KP,l3,Gm)}function ben(){ben=R;var n,e,t,i,r,c;for(K9=F(Ru,s2,28,255,15,1),PA=F(fs,gh,28,16,15,1),e=0;e<255;e++)K9[e]=-1;for(t=57;t>=48;t--)K9[t]=t-48<<24>>24;for(i=70;i>=65;i--)K9[i]=i-65+10<<24>>24;for(r=102;r>=97;r--)K9[r]=r-97+10<<24>>24;for(c=0;c<10;c++)PA[c]=48+c&ui;for(n=10;n<=15;n++)PA[n]=65+n-10&ui}function ESe(n,e){e.Ug("Process graph bounds",1),U(n,(pt(),iq),a7(A$(U0(new Cn(null,new On(n.b,16)),new r4n)))),U(n,rq,a7(A$(U0(new Cn(null,new On(n.b,16)),new c4n)))),U(n,vln,a7(O$(U0(new Cn(null,new On(n.b,16)),new u4n)))),U(n,kln,a7(O$(U0(new Cn(null,new On(n.b,16)),new o4n)))),e.Vg()}function MSe(n){var e,t,i,r,c;r=u(v(n,(cn(),xd)),21),c=u(v(n,kO),21),t=new V(n.f.a+n.d.b+n.d.c,n.f.b+n.d.d+n.d.a),e=new rr(t),r.Hc((go(),Qw))&&(i=u(v(n,Ev),8),c.Hc((io(),_v))&&(i.a<=0&&(i.a=20),i.b<=0&&(i.b=20)),e.a=y.Math.max(t.a,i.a),e.b=y.Math.max(t.b,i.b)),on(un(v(n,SH)))||nOe(n,t,e)}function TSe(n,e){var t,i,r,c;for(c=uc(e,(en(),ae)).Kc();c.Ob();)i=u(c.Pb(),12),t=u(v(i,(W(),Xu)),10),t&&qs(Ns(Ls(Ds(As(new hs,0),.1),n.i[e.p].d),n.i[t.p].a));for(r=uc(e,Xn).Kc();r.Ob();)i=u(r.Pb(),12),t=u(v(i,(W(),Xu)),10),t&&qs(Ns(Ls(Ds(As(new hs,0),.1),n.i[t.p].d),n.i[e.p].a))}function yR(n){var e,t,i,r,c,s;if(!n.c){if(s=new kvn,e=D9,c=e.a.zc(n,e),c==null){for(i=new ne(Pc(n));i.e!=i.i.gc();)t=u(ue(i),89),r=KS(t),L(r,90)&&Kt(s,yR(u(r,29))),ve(s,t);e.a.Bc(n)!=null,e.a.gc()==0}k8e(s),ew(s),n.c=new pg((u(N(H((G1(),Hn).o),15),19),s.i),s.g),Zu(n).b&=-33}return n.c}function wen(n){var e;if(n.c!=10)throw T(new Ne($e((Oe(),qP))));switch(e=n.a,e){case 110:e=10;break;case 114:e=13;break;case 116:e=9;break;case 92:case 124:case 46:case 94:case 45:case 63:case 42:case 43:case 123:case 125:case 40:case 41:case 91:case 93:break;default:throw T(new Ne($e((Oe(),is))))}return e}function $qn(n){var e,t,i,r,c;if(n.l==0&&n.m==0&&n.h==0)return"0";if(n.h==Cy&&n.m==0&&n.l==0)return"-9223372036854775808";if(n.h>>19)return"-"+$qn(tm(n));for(t=n,i="";!(t.l==0&&t.m==0&&t.h==0);){if(r=QD(QS),t=Wen(t,r,!0),e=""+cEn(wa),!(t.l==0&&t.m==0&&t.h==0))for(c=9-e.length;c>0;c--)e="0"+e;i=e+i}return i}function CSe(n){var e,t,i,r,c,s,f;for(e=!1,t=0,r=new M(n.d.b);r.a<r.c.c.length;)for(i=u(E(r),30),i.p=t++,s=new M(i.a);s.a<s.c.c.length;)c=u(E(s),10),!e&&!D4(Ml(c))&&(e=!0);f=yt((ci(),Jf),S(C(y9,1),G,88,0,[Kr,Xr])),e||(_s(f,us),_s(f,Wf)),n.a=new m$n(f),Hu(n.f),Hu(n.b),Hu(n.e),Hu(n.g)}function SSe(){if(!Object.create||!Object.getOwnPropertyNames)return!1;var n="__proto__",e=Object.create(null);if(e[n]!==void 0)return!1;var t=Object.getOwnPropertyNames(e);return!(t.length!=0||(e[n]=42,e[n]!==42)||Object.getOwnPropertyNames(e).length==0)}function PSe(n,e,t){var i,r,c,s,f,h,l,a,d;for(i=t.c,r=t.d,f=Of(e.c),h=Of(e.d),i==e.c?(f=nen(n,f,r),h=HFn(e.d)):(f=HFn(e.c),h=nen(n,h,r)),l=new GE(e.a),xt(l,f,l.a,l.a.a),xt(l,h,l.c.b,l.c),s=e.c==i,d=new _yn,c=0;c<l.b-1;++c)a=new bi(u(Zo(l,c),8),u(Zo(l,c+1),8)),s&&c==0||!s&&c==l.b-2?d.b=a:nn(d.a,a);return d}function ISe(n,e){var t,i,r,c;if(c=n.j.g-e.j.g,c!=0)return c;if(t=u(v(n,(cn(),v1)),17),i=u(v(e,v1),17),t&&i&&(r=t.a-i.a,r!=0))return r;switch(n.j.g){case 1:return bt(n.n.a,e.n.a);case 2:return bt(n.n.b,e.n.b);case 3:return bt(e.n.a,n.n.a);case 4:return bt(e.n.b,n.n.b);default:throw T(new Ar(tin))}}function gen(n,e,t,i){var r,c,s,f,h;if(wl((N7(),new ie(ce(Ml(e).a.Kc(),new En))))>=n.a||!QZ(e,t))return-1;if(D4(u(i.Kb(e),20)))return 1;for(r=0,s=u(i.Kb(e),20).Kc();s.Ob();)if(c=u(s.Pb(),18),h=c.c.i==e?c.d.i:c.c.i,f=gen(n,h,t,i),f==-1||(r=y.Math.max(r,f),r>n.c-1))return-1;return r+1}function xqn(n,e){var t,i,r,c,s,f;if(x(e)===x(n))return!0;if(!L(e,15)||(i=u(e,15),f=n.gc(),i.gc()!=f))return!1;if(s=i.Kc(),n.Yi()){for(t=0;t<f;++t)if(r=n.Vi(t),c=s.Pb(),r==null?c!=null:!rt(r,c))return!1}else for(t=0;t<f;++t)if(r=n.Vi(t),c=s.Pb(),x(r)!==x(c))return!1;return!0}function Rqn(n,e){var t,i,r,c,s,f;if(n.f>0){if(n._j(),e!=null){for(c=0;c<n.d.length;++c)if(t=n.d[c],t){for(i=u(t.g,379),f=t.i,s=0;s<f;++s)if(r=i[s],rt(e,r.md()))return!0}}else for(c=0;c<n.d.length;++c)if(t=n.d[c],t){for(i=u(t.g,379),f=t.i,s=0;s<f;++s)if(r=i[s],x(e)===x(r.md()))return!0}}return!1}function OSe(n,e){var t,i,r;return t=e.qi(n.a),t&&(r=Ae(gf((!t.b&&(t.b=new lo((An(),ar),pc,t)),t.b),"affiliation")),r!=null)?(i=RM(r,wu(35)),i==-1?rx(n,B6(n,jo(e.qk())),r):i==0?rx(n,null,(zn(1,r.length+1),r.substr(1))):rx(n,(Ri(0,i,r.length),r.substr(0,i)),(zn(i+1,r.length+1),r.substr(i+1)))):null}function ASe(n,e,t){var i,r,c,s;t.Ug("Orthogonally routing hierarchical port edges",1),n.a=0,i=COe(e),AAe(e,i),wAe(n,e,i),ALe(e),r=u(v(e,(cn(),Ft)),101),c=e.b,BGn((Nn(0,c.c.length),u(c.c[0],30)),r,e),BGn(u(sn(c,c.c.length-1),30),r,e),s=e.b,WUn((Nn(0,s.c.length),u(s.c[0],30))),WUn(u(sn(s,s.c.length-1),30)),t.Vg()}function pen(n){switch(n){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return n-48<<24>>24;case 97:case 98:case 99:case 100:case 101:case 102:return n-97+10<<24>>24;case 65:case 66:case 67:case 68:case 69:case 70:return n-65+10<<24>>24;default:throw T(new th("Invalid hexadecimal"))}}function DS(){DS=R,eon=new ag("SPIRAL",0),Qun=new ag("LINE_BY_LINE",1),Yun=new ag("MANHATTAN",2),Jun=new ag("JITTER",3),s_=new ag("QUADRANTS_LINE_BY_LINE",4),non=new ag("QUADRANTS_MANHATTAN",5),Zun=new ag("QUADRANTS_JITTER",6),Wun=new ag("COMBINE_LINE_BY_LINE_MANHATTAN",7),Vun=new ag("COMBINE_JITTER_MANHATTAN",8)}function Kqn(n,e,t,i){var r,c,s,f,h,l;for(h=zx(n,t),l=zx(e,t),r=!1;h&&l&&(i||E7e(h,l,t));)s=zx(h,t),f=zx(l,t),fk(e),fk(n),c=h.c,XR(h,!1),XR(l,!1),t?(uw(e,l.p,c),e.p=l.p,uw(n,h.p+1,c),n.p=h.p):(uw(n,h.p,c),n.p=h.p,uw(e,l.p+1,c),e.p=l.p),$i(h,null),$i(l,null),h=s,l=f,r=!0;return r}function Bqn(n){switch(n.g){case 0:return new Y5n;case 1:return new J5n;case 3:return new dMn;case 4:return new Xpn;case 5:return new _Sn;case 6:return new Q5n;case 2:return new W5n;case 7:return new q5n;case 8:return new G5n;default:throw T(new Gn("No implementation is available for the layerer "+(n.f!=null?n.f:""+n.g)))}}function LSe(n,e,t,i){var r,c,s,f,h;for(r=!1,c=!1,f=new M(i.j);f.a<f.c.c.length;)s=u(E(f),12),x(v(s,(W(),st)))===x(t)&&(s.g.c.length==0?s.e.c.length==0||(r=!0):c=!0);return h=0,r&&r^c?h=t.j==(en(),Xn)?-n.e[i.c.p][i.p]:e-n.e[i.c.p][i.p]:c&&r^c?h=n.e[i.c.p][i.p]+1:r&&c&&(h=t.j==(en(),Xn)?0:e/2),h}function jR(n,e,t,i,r,c,s,f){var h,l,a;for(h=0,e!=null&&(h^=t1(e.toLowerCase())),t!=null&&(h^=t1(t)),i!=null&&(h^=t1(i)),s!=null&&(h^=t1(s)),f!=null&&(h^=t1(f)),l=0,a=c.length;l<a;l++)h^=t1(c[l]);n?h|=256:h&=-257,r?h|=16:h&=-17,this.f=h,this.i=e==null?null:(Jn(e),e),this.a=t,this.d=i,this.j=c,this.g=s,this.e=f}function men(n,e,t){var i,r;switch(r=null,e.g){case 1:r=(Au(),Ron);break;case 2:r=(Au(),Bon)}switch(i=null,t.g){case 1:i=(Au(),Kon);break;case 2:i=(Au(),xon);break;case 3:i=(Au(),Fon);break;case 4:i=(Au(),_on)}return r&&i?Mp(n.j,new S8n(new Fu(S(C(cDe,1),Kn,178,0,[u(Pe(r),178),u(Pe(i),178)])))):(Ln(),Ln(),sr)}function NSe(n){var e,t,i;switch(e=u(v(n,(cn(),Ev)),8),U(n,Ev,new V(e.b,e.a)),u(v(n,Ch),255).g){case 1:U(n,Ch,(Bh(),eA));break;case 2:U(n,Ch,(Bh(),ZO));break;case 3:U(n,Ch,(Bh(),qj));break;case 4:U(n,Ch,(Bh(),Uj))}(n.q?n.q:(Ln(),Ln(),Wh))._b(Hw)&&(t=u(v(n,Hw),8),i=t.a,t.a=t.b,t.b=i)}function Fqn(n,e,t,i,r,c){if(this.b=t,this.d=r,n>=e.length)throw T(new Or("Greedy SwitchDecider: Free layer not in graph."));this.c=e[n],this.e=new L7(i),C$(this.e,this.c,(en(),Wn)),this.i=new L7(i),C$(this.i,this.c,Zn),this.f=new rIn(this.c),this.a=!c&&r.i&&!r.s&&this.c[0].k==(Vn(),Zt),this.a&&zje(this,n,e.length)}function _qn(n,e){var t,i,r,c,s,f;c=!n.B.Hc((io(),cE)),s=n.B.Hc(dU),n.a=new SKn(s,c,n.c),n.n&&VW(n.a.n,n.n),mL(n.g,(wf(),Wc),n.a),e||(i=new E5(1,c,n.c),i.n.a=n.k,Ip(n.p,(en(),Xn),i),r=new E5(1,c,n.c),r.n.d=n.k,Ip(n.p,ae,r),f=new E5(0,c,n.c),f.n.c=n.k,Ip(n.p,Wn,f),t=new E5(0,c,n.c),t.n.b=n.k,Ip(n.p,Zn,t))}function DSe(n){var e,t,i;switch(e=u(v(n.d,(cn(),$l)),223),e.g){case 2:t=jNe(n);break;case 3:t=(i=new Z,qt(ut(_r(rc(rc(new Cn(null,new On(n.d.b,16)),new ipn),new rpn),new cpn),new U2n),new E7n(i)),i);break;default:throw T(new Ar("Compaction not supported for "+e+" edges."))}UOe(n,t),qi(new qa(n.g),new y7n(n))}function $Se(n,e){var t,i,r,c,s,f,h;if(e.Ug("Process directions",1),t=u(v(n,(lc(),v0)),88),t!=(ci(),Wf))for(r=ge(n.b,0);r.b!=r.d.c;){switch(i=u(be(r),40),f=u(v(i,(pt(),$j)),17).a,h=u(v(i,xj),17).a,t.g){case 4:h*=-1;break;case 1:c=f,f=h,h=c;break;case 2:s=f,f=-h,h=s}U(i,$j,Y(f)),U(i,xj,Y(h))}e.Vg()}function xSe(n,e){var t;return t=new xA,e&&Ur(t,u(ee(n.a,oE),96)),L(e,422)&&Ur(t,u(ee(n.a,sE),96)),L(e,366)?(Ur(t,u(ee(n.a,Sr),96)),t):(L(e,84)&&Ur(t,u(ee(n.a,he),96)),L(e,207)?(Ur(t,u(ee(n.a,Ye),96)),t):L(e,193)?(Ur(t,u(ee(n.a,Qu),96)),t):(L(e,326)&&Ur(t,u(ee(n.a,Vt),96)),t))}function RSe(n){var e,t,i,r,c,s,f,h;for(h=new yNn,f=new M(n.a);f.a<f.c.c.length;)if(s=u(E(f),10),s.k!=(Vn(),Zt)){for(BMe(h,s,new Ni),c=new ie(ce(Qt(s).a.Kc(),new En));pe(c);)if(r=u(fe(c),18),!(r.c.i.k==Zt||r.d.i.k==Zt))for(i=ge(r.a,0);i.b!=i.d.c;)t=u(be(i),8),e=t,O5(h,new d4(e.a,e.b))}return h}function ER(){ER=R,Q1n=new lt(YB),J1n=(s6(),Hj),W1n=new Tn(eF,J1n),V1n=(Tk(),YO),sue=new Tn(ocn,V1n),X1n=(Jk(),Fq),oue=new Tn(scn,X1n),rue=new Tn(ZB,null),z1n=(ik(),JO),uue=new Tn(nF,z1n),G1n=(eM(),Rq),nue=new Tn(fcn,G1n),eue=new Tn(hcn,(_n(),!1)),tue=new Tn(lcn,Y(64)),iue=new Tn(acn,!0),cue=Bq}function Hqn(n,e){var t,i,r,c,s,f,h,l,a,d;for(n.p=1,r=n.c,d=new rh,a=Rb(n,(gr(),Jc)).Kc();a.Ob();)for(l=u(a.Pb(),12),i=new M(l.g);i.a<i.c.c.length;)t=u(E(i),18),h=t.d.i,n!=h&&(c=h.c,c.p<=r.p&&(s=r.p+1,s==e.b.c.length?(f=new Nc(e),f.p=s,nn(e.b,f),$i(h,f)):(f=u(sn(e.b,s),30),$i(h,f)),d.a.zc(h,d)));return d}function KSe(n,e){var t,i;if(t=u(v(n,(pt(),nq)),15),!t||t.gc()<1)return null;if(t.gc()==1)return u(t.Xb(0),40);switch(i=null,e.g){case 2:i=u(ho(Sp(t.Oc(),new e4n)),40);break;case 1:i=u(ho(_0(t.Oc(),new Q3n)),40);break;case 4:i=u(ho(Sp(t.Oc(),new Y3n)),40);break;case 3:i=u(ho(_0(t.Oc(),new Z3n)),40)}return i}function qqn(n){var e,t,i,r,c,s;if(n.a==null)if(n.a=F(so,Xh,28,n.c.b.c.length,16,1),n.a[0]=!1,kt(n.c,(cn(),NH)))for(i=u(v(n.c,NH),15),t=i.Kc();t.Ob();)e=u(t.Pb(),17).a,e>0&&e<n.a.length&&(n.a[e]=!1);else for(s=new M(n.c.b),s.a<s.c.c.length&&E(s),r=1;s.a<s.c.c.length;)c=u(E(s),30),n.a[r++]=kTe(c)}function _h(){_h=R,s9=new lt("additionalHeight"),Dv=new lt("drawingHeight"),A3=new lt("drawingWidth"),UO=new lt("minHeight"),f9=new lt("minWidth"),GO=new lt("rows"),Xw=new lt("targetWidth"),Iq=new Lt("minRowIncrease",0),pce=new Lt("maxRowIncrease",0),Pq=new Lt("minRowDecrease",0),gce=new Lt("maxRowDecrease",0)}function Uqn(n,e){var t,i,r,c;switch(r=n.b,e){case 1:{n.b|=1,n.b|=4,n.b|=8;break}case 2:{n.b|=2,n.b|=4,n.b|=8;break}case 4:{n.b|=1,n.b|=2,n.b|=4,n.b|=8;break}case 3:{n.b|=16,n.b|=8;break}case 0:{n.b|=32,n.b|=16,n.b|=8,n.b|=1,n.b|=2,n.b|=4;break}}if(n.b!=r&&n.c)for(i=new ne(n.c);i.e!=i.i.gc();)c=u(ue(i),482),t=Zu(c),hw(t,e)}function Gqn(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m;for(r=!1,s=e,f=0,h=s.length;f<h;++f)c=s[f],on((_n(),!!c.e))&&!u(sn(n.b,c.e.p),219).s&&(r=r|(l=c.e,a=u(sn(n.b,l.p),219),d=a.e,g=Xjn(t,d.length),p=d[g][0],p.k==(Vn(),Zt)?d[g]=gCe(c,d[g],t?(en(),Wn):(en(),Zn)):a.c.mg(d,t),m=sy(n,a,t,i),hen(a.e,a.o,t),m));return r}function zqn(n,e){var t,i,r,c,s;for(c=(!e.a&&(e.a=new q(Ye,e,10,11)),e.a).i,r=new ne((!e.a&&(e.a=new q(Ye,e,10,11)),e.a));r.e!=r.i.gc();)i=u(ue(r),27),x(z(i,(He(),B2)))!==x((jl(),E9))&&(s=u(z(e,q2),143),t=u(z(i,q2),143),(s==t||s&&IJ(s,t))&&(!i.a&&(i.a=new q(Ye,i,10,11)),i.a).i!=0&&(c+=zqn(n,i)));return c}function BSe(n){var e,t,i,r,c,s,f;for(i=0,f=0,s=new M(n.d);s.a<s.c.c.length;)c=u(E(s),105),r=u(Wr(ut(new Cn(null,new On(c.j,16)),new GU),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[(Gu(),Yr)]))),15),t=null,i<=f?(t=(en(),Xn),i+=r.gc()):f<i&&(t=(en(),ae),f+=r.gc()),e=t,qt(_r(r.Oc(),new Mpn),new C7n(e))}function FSe(n){var e,t,i,r,c;for(c=new Gc(n.a.c.length),r=new M(n.a);r.a<r.c.c.length;){switch(i=u(E(r),10),t=u(v(i,(cn(),ou)),171),e=null,t.g){case 1:case 2:e=(hd(),m2);break;case 3:case 4:e=(hd(),mv)}e?(U(i,(W(),rO),(hd(),m2)),e==mv?OS(i,t,(gr(),Vu)):e==m2&&OS(i,t,(gr(),Jc))):Fn(c.c,i)}return c}function _Se(n){var e,t,i,r,c,s,f,h;for(n.b=new rHn(new Fu((en(),S(C(lr,1),Tc,64,0,[sc,Xn,Zn,ae,Wn]))),new Fu((Lb(),S(C(K_,1),G,372,0,[u0,va,c0])))),s=S(C(lr,1),Tc,64,0,[sc,Xn,Zn,ae,Wn]),f=0,h=s.length;f<h;++f)for(c=s[f],t=S(C(K_,1),G,372,0,[u0,va,c0]),i=0,r=t.length;i<r;++i)e=t[i],Nke(n.b,c,e,new Z)}function Xqn(n,e){var t,i,r,c,s,f,h,l,a,d;if(s=u(u(ot(n.r,e),21),87),f=n.u.Hc((zu(),Oa)),t=n.u.Hc(S9),i=n.u.Hc(C9),l=n.u.Hc(K3),d=n.B.Hc((io(),lA)),a=!t&&!i&&(l||s.gc()==2),BCe(n,e),r=null,h=null,f){for(c=s.Kc(),r=u(c.Pb(),117),h=r;c.Ob();)h=u(c.Pb(),117);r.d.b=0,h.d.c=0,a&&!r.a&&(r.d.c=0)}d&&(Lye(s),f&&(r.d.b=0,h.d.c=0))}function Vqn(n,e){var t,i,r,c,s,f,h,l,a,d;if(s=u(u(ot(n.r,e),21),87),f=n.u.Hc((zu(),Oa)),t=n.u.Hc(S9),i=n.u.Hc(C9),h=n.u.Hc(K3),d=n.B.Hc((io(),lA)),l=!t&&!i&&(h||s.gc()==2),oIe(n,e),a=null,r=null,f){for(c=s.Kc(),a=u(c.Pb(),117),r=a;c.Ob();)r=u(c.Pb(),117);a.d.d=0,r.d.a=0,l&&!a.a&&(a.d.a=0)}d&&(Nye(s),f&&(a.d.d=0,r.d.a=0))}function Wqn(n,e,t){var i,r,c,s,f,h,l,a;if(r=e.k,e.p>=0)return!1;if(e.p=t.b,nn(t.e,e),r==(Vn(),Ti)||r==_c){for(s=new M(e.j);s.a<s.c.c.length;)for(c=u(E(s),12),a=(i=new M(new ip(c).a.g),new NG(i));tc(a.a);)if(l=u(E(a.a),18).d,f=l.i,h=f.k,e.c!=f.c&&(h==Ti||h==_c)&&Wqn(n,f,t))return!0}return!0}function $S(n){var e;return n.Db&64?Bnn(n):(e=new ls(Bnn(n)),e.a+=" (changeable: ",ql(e,(n.Bb&Gs)!=0),e.a+=", volatile: ",ql(e,(n.Bb&Cw)!=0),e.a+=", transient: ",ql(e,(n.Bb&vw)!=0),e.a+=", defaultValueLiteral: ",Er(e,n.j),e.a+=", unsettable: ",ql(e,(n.Bb&$u)!=0),e.a+=", derived: ",ql(e,(n.Bb&wh)!=0),e.a+=")",e.a)}function HSe(n,e){var t,i,r,c,s;return r=e.qi(n.a),r&&(i=(!r.b&&(r.b=new lo((An(),ar),pc,r)),r.b),t=Ae(gf(i,Ji)),t!=null&&(c=t.lastIndexOf("#"),s=c==-1?tV(n,e.jk(),t):c==0?ok(n,null,(zn(1,t.length+1),t.substr(1))):ok(n,(Ri(0,c,t.length),t.substr(0,c)),(zn(c+1,t.length+1),t.substr(c+1))),L(s,156)))?u(s,156):null}function qSe(n,e){var t,i,r,c,s;return i=e.qi(n.a),i&&(t=(!i.b&&(i.b=new lo((An(),ar),pc,i)),i.b),c=Ae(gf(t,IF)),c!=null&&(r=c.lastIndexOf("#"),s=r==-1?tV(n,e.jk(),c):r==0?ok(n,null,(zn(1,c.length+1),c.substr(1))):ok(n,(Ri(0,r,c.length),c.substr(0,r)),(zn(r+1,c.length+1),c.substr(r+1))),L(s,156)))?u(s,156):null}function USe(n){var e,t,i,r,c,s,f,h,l,a,d,g;for(r=FTe(n.d),s=u(v(n.b,(M5(),lon)),107),f=s.b+s.c,h=s.d+s.a,a=r.d.a*n.e+f,l=r.b.a*n.f+h,Xse(n.b,new V(a,l)),g=new M(n.g);g.a<g.c.c.length;)d=u(E(g),568),e=d.g-r.a.a,t=d.i-r.c.a,i=tt(iae(new V(e,t),d.a,d.b),ch(N6(Fi(SX(d.e)),d.d*d.a,d.c*d.b),-.5)),c=PX(d.e),The(d.e,mi(i,c))}function GSe(n,e){var t,i,r,c,s,f,h,l,a,d,g;for(e.Ug("Restoring reversed edges",1),h=new M(n.b);h.a<h.c.c.length;)for(f=u(E(h),30),a=new M(f.a);a.a<a.c.c.length;)for(l=u(E(a),10),g=new M(l.j);g.a<g.c.c.length;)for(d=u(E(g),12),s=hh(d.g),i=s,r=0,c=i.length;r<c;++r)t=i[r],on(un(v(t,(W(),zf))))&&Ub(t,!1);e.Vg()}function zSe(n,e,t,i){var r,c,s,f,h;for(h=F(Ii,J,109,(en(),S(C(lr,1),Tc,64,0,[sc,Xn,Zn,ae,Wn])).length,0,2),c=S(C(lr,1),Tc,64,0,[sc,Xn,Zn,ae,Wn]),s=0,f=c.length;s<f;++s)r=c[s],h[r.g]=F(Ii,Cr,28,n.c[r.g],15,1);return lFn(h,n,Xn),lFn(h,n,ae),Kx(h,n,Xn,e,t,i),Kx(h,n,Zn,e,t,i),Kx(h,n,ae,e,t,i),Kx(h,n,Wn,e,t,i),h}function XSe(n,e,t){if(Zc(n.a,e)){if(sf(u(ee(n.a,e),49),t))return 1}else Ve(n.a,e,new ni);if(Zc(n.a,t)){if(sf(u(ee(n.a,t),49),e))return-1}else Ve(n.a,t,new ni);if(Zc(n.b,e)){if(sf(u(ee(n.b,e),49),t))return-1}else Ve(n.b,e,new ni);if(Zc(n.b,t)){if(sf(u(ee(n.b,t),49),e))return 1}else Ve(n.b,t,new ni);return 0}function VSe(n){var e,t,i,r,c,s;n.q==(Ai(),tl)||n.q==qc||(r=n.f.n.d+nT(u(Mr(n.b,(en(),Xn)),127))+n.c,e=n.f.n.a+nT(u(Mr(n.b,ae),127))+n.c,i=u(Mr(n.b,Zn),127),s=u(Mr(n.b,Wn),127),c=y.Math.max(0,i.n.d-r),c=y.Math.max(c,s.n.d-r),t=y.Math.max(0,i.n.a-e),t=y.Math.max(t,s.n.a-e),i.n.d=c,s.n.d=c,i.n.a=t,s.n.a=t)}function ven(n,e,t,i){var r,c,s,f,h,l;if(t==null){for(r=u(n.g,124),f=0;f<n.i;++f)if(s=r[f],s.Lk()==e)return cr(n,s,i)}return c=(dr(),u(e,69).xk()?u(t,76):Rh(e,t)),fo(n.e)?(l=!Rk(n,e),i=Xc(n,c,i),h=e.Jk()?V1(n,3,e,null,t,Am(n,e,t,L(e,102)&&(u(e,19).Bb&hr)!=0),l):V1(n,1,e,e.ik(),t,-1,l),i?i.nj(h):i=h):i=Xc(n,c,i),i}function Jqn(){this.b=new Ql,this.d=new Ql,this.e=new Ql,this.c=new Ql,this.a=new de,this.f=new de,Pg(Ei,new Tmn,new Smn),Pg(san,new Kmn,new Bmn),Pg(Don,new Fmn,new _mn),Pg($on,new Hmn,new qmn),Pg(boe,new Umn,new Gmn),Pg(uDe,new Pmn,new Imn),Pg(fDe,new Omn,new Amn),Pg(oDe,new Lmn,new Nmn),Pg(sDe,new Dmn,new $mn),Pg(aDe,new xmn,new Rmn)}function B5(n,e){var t,i,r,c,s;for(n=n==null?gu:(Jn(n),n),r=0;r<e.length;r++)e[r]=UTe(e[r]);for(t=new fg,s=0,i=0;i<e.length&&(c=n.indexOf("%s",s),c!=-1);)t.a+=""+qo(n==null?gu:(Jn(n),n),s,c),Lc(t,e[i++]),s=c+2;if(aLn(t,n,s,n.length),i<e.length){for(t.a+=" [",Lc(t,e[i++]);i<e.length;)t.a+=ur,Lc(t,e[i++]);t.a+="]"}return t.a}function ken(n,e){var t,i,r,c,s,f,h;for(t=0,h=new M(e);h.a<h.c.c.length;){for(f=u(E(h),12),hY(n.b,n.d[f.p]),s=0,r=new Lf(f.b);tc(r.a)||tc(r.b);)i=u(tc(r.a)?E(r.a):E(r.b),18),fOn(i)?(c=Sz(n,f==i.c?i.d:i.c),c>n.d[f.p]&&(t+=SJ(n.b,c),W1(n.a,Y(c)))):++s;for(t+=n.b.d*s;!t6(n.a);)uQ(n.b,u(Pp(n.a),17).a)}return t}function Qqn(n){var e,t,i,r,c,s;return c=0,e=gs(n),e.kk()&&(c|=4),n.Bb&$u&&(c|=2),L(n,102)?(t=u(n,19),r=br(t),t.Bb&kc&&(c|=32),r&&(se(G0(r)),c|=8,s=r.t,(s>1||s==-1)&&(c|=16),r.Bb&kc&&(c|=64)),t.Bb&hr&&(c|=Cw),c|=Gs):L(e,469)?c|=512:(i=e.kk(),i&&i.i&1&&(c|=256)),n.Bb&512&&(c|=128),c}function WSe(n,e){var t;return n.f==CU?(t=yb(Nr((Lu(),zi),e)),n.e?t==4&&e!=(n3(),_3)&&e!=(n3(),F3)&&e!=(n3(),SU)&&e!=(n3(),PU):t==2):n.d&&(n.d.Hc(e)||n.d.Hc($p(Nr((Lu(),zi),e)))||n.d.Hc(Qg((Lu(),zi),n.b,e)))?!0:n.f&&ien((Lu(),n.f),q7(Nr(zi,e)))?(t=yb(Nr(zi,e)),n.e?t==4:t==2):!1}function JSe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p;for(g=-1,p=0,l=n,a=0,d=l.length;a<d;++a){for(h=l[a],c=h,s=0,f=c.length;s<f;++s)for(r=c[s],e=new CLn(g==-1?n[0]:n[g],u(v(Hi(r),(cn(),Yh)),284),rFn(r),on(un(v(Hi(r),mH)))),t=0;t<r.j.c.length;t++)for(i=t+1;i<r.j.c.length;i++)PIn(e,u(sn(r.j,t),12),u(sn(r.j,i),12))>0&&++p;++g}return p}function QSe(n,e,t,i){var r,c,s,f,h,l,a,d;return s=u(z(t,(He(),D3)),8),h=s.a,a=s.b+n,r=y.Math.atan2(a,h),r<0&&(r+=Md),r+=e,r>Md&&(r-=Md),f=u(z(i,D3),8),l=f.a,d=f.b+n,c=y.Math.atan2(d,l),c<0&&(c+=Md),c+=e,c>Md&&(c-=Md),Cf(),Fs(1e-10),y.Math.abs(r-c)<=1e-10||r==c||isNaN(r)&&isNaN(c)?0:r<c?-1:r>c?1:sb(isNaN(r),isNaN(c))}function MR(n){var e,t,i,r,c,s,f;for(f=new de,i=new M(n.a.b);i.a<i.c.c.length;)e=u(E(i),60),Ve(f,e,new Z);for(r=new M(n.a.b);r.a<r.c.c.length;)for(e=u(E(r),60),e.i=li,s=e.c.Kc();s.Ob();)c=u(s.Pb(),60),u(Fr(wr(f.f,c)),15).Fc(e);for(t=new M(n.a.b);t.a<t.c.c.length;)e=u(E(t),60),e.c.$b(),e.c=u(Fr(wr(f.f,e)),15);vqn(n)}function TR(n){var e,t,i,r,c,s,f;for(f=new de,i=new M(n.a.b);i.a<i.c.c.length;)e=u(E(i),86),Ve(f,e,new Z);for(r=new M(n.a.b);r.a<r.c.c.length;)for(e=u(E(r),86),e.o=li,s=e.f.Kc();s.Ob();)c=u(s.Pb(),86),u(Fr(wr(f.f,c)),15).Fc(e);for(t=new M(n.a.b);t.a<t.c.c.length;)e=u(E(t),86),e.f.$b(),e.f=u(Fr(wr(f.f,e)),15);uqn(n)}function YSe(n,e,t,i){var r,c;for(tke(n,e,t,i),Vse(e,n.j-e.j+t),Wse(e,n.k-e.k+i),c=new M(e.f);c.a<c.c.c.length;)switch(r=u(E(c),334),r.a.g){case 0:em(n,e.g+r.b.a,0,e.g+r.c.a,e.i-1);break;case 1:em(n,e.g+e.o,e.i+r.b.a,n.o-1,e.i+r.c.a);break;case 2:em(n,e.g+r.b.a,e.i+e.p,e.g+r.c.a,n.p-1);break;default:em(n,0,e.i+r.b.a,e.g-1,e.i+r.c.a)}}function ZSe(n,e){var t,i,r,c,s,f,h,l;for(c=new Z,e.b.c.length=0,t=u(Wr(sJ(new Cn(null,new On(new qa(n.a.b),1))),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[(Gu(),Yr)]))),15),r=t.Kc();r.Ob();)if(i=u(r.Pb(),17),s=kJ(n.a,i),s.b!=0)for(f=new Nc(e),Fn(c.c,f),f.p=i.a,l=ge(s,0);l.b!=l.d.c;)h=u(be(l),10),$i(h,f);hi(e.b,c)}function xS(n,e,t,i,r){var c,s,f;try{if(e>=n.o)throw T(new QG);f=e>>5,s=e&31,c=Ks(1,Se(Ks(s,1))),r?n.n[t][f]=lf(n.n[t][f],c):n.n[t][f]=vi(n.n[t][f],VV(c)),c=Ks(c,1),i?n.n[t][f]=lf(n.n[t][f],c):n.n[t][f]=vi(n.n[t][f],VV(c))}catch(h){throw h=Ot(h),L(h,333)?T(new Or(GK+n.o+"*"+n.p+zK+e+ur+t+XK)):T(h)}}function nPe(n,e,t,i){var r,c,s,f,h,l,a,d,g;for(g=new Ul(new z7n(n)),f=S(C(Qh,1),b1,10,0,[e,t]),h=0,l=f.length;h<l;++h)for(s=f[h],d=g5(s,i).Kc();d.Ob();)for(a=u(d.Pb(),12),c=new Lf(a.b);tc(c.a)||tc(c.b);)r=u(tc(c.a)?E(c.a):E(c.b),18),fr(r)||(g.a.zc(a,(_n(),ga))==null,fOn(r)&&B7(g,a==r.c?r.d:r.c));return Pe(g),new _u(g)}function yen(n,e,t,i){var r,c,s;e&&(c=$(B(v(e,(pt(),j1))))+i,s=t+$(B(v(e,xO)))/2,U(e,$j,Y(Se(vc(y.Math.round(c))))),U(e,xj,Y(Se(vc(y.Math.round(s))))),e.d.b==0||yen(n,u(DM((r=ge(new sl(e).a.d,0),new sg(r))),40),t+$(B(v(e,xO)))+n.b,i+$(B(v(e,Nv)))),v(e,uq)!=null&¥(n,u(v(e,uq),40),t,i))}function ePe(n,e){var t,i,r,c,s,f,h,l,a,d,g;for(h=Hi(e.a),r=$(B(v(h,(cn(),Kd))))*2,a=$(B(v(h,S2))),l=y.Math.max(r,a),c=F(Ii,Cr,28,e.f-e.c+1,15,1),i=-l,t=0,f=e.b.Kc();f.Ob();)s=u(f.Pb(),10),i+=n.a[s.c.p]+l,c[t++]=i;for(i+=n.a[e.a.c.p]+l,c[t++]=i,g=new M(e.e);g.a<g.c.c.length;)d=u(E(g),10),i+=n.a[d.c.p]+l,c[t++]=i;return c}function tPe(n,e){var t,i,r,c;if(c=u(z(n,(He(),H2)),64).g-u(z(e,H2),64).g,c!=0)return c;if(t=u(z(n,uU),17),i=u(z(e,uU),17),t&&i&&(r=t.a-i.a,r!=0))return r;switch(u(z(n,H2),64).g){case 1:return bt(n.i,e.i);case 2:return bt(n.j,e.j);case 3:return bt(e.i,n.i);case 4:return bt(e.j,n.j);default:throw T(new Ar(tin))}}function jen(n){var e,t,i;return n.Db&64?iR(n):(e=new mo(Ecn),t=n.k,t?Be(Be((e.a+=' "',e),t),'"'):(!n.n&&(n.n=new q(Sr,n,1,7)),n.n.i>0&&(i=(!n.n&&(n.n=new q(Sr,n,1,7)),u(N(n.n,0),135)).a,!i||Be(Be((e.a+=' "',e),i),'"'))),Be(tb(Be(tb(Be(tb(Be(tb((e.a+=" (",e),n.i),","),n.j)," | "),n.g),","),n.f),")"),e.a)}function Yqn(n){var e,t,i;return n.Db&64?iR(n):(e=new mo(Mcn),t=n.k,t?Be(Be((e.a+=' "',e),t),'"'):(!n.n&&(n.n=new q(Sr,n,1,7)),n.n.i>0&&(i=(!n.n&&(n.n=new q(Sr,n,1,7)),u(N(n.n,0),135)).a,!i||Be(Be((e.a+=' "',e),i),'"'))),Be(tb(Be(tb(Be(tb(Be(tb((e.a+=" (",e),n.i),","),n.j)," | "),n.g),","),n.f),")"),e.a)}function iPe(n,e){var t,i,r,c,s;for(e==(a5(),zH)&&Yk(u(ot(n.a,(ow(),gj)),15)),r=u(ot(n.a,(ow(),gj)),15).Kc();r.Ob();)switch(i=u(r.Pb(),105),t=u(sn(i.j,0),113).d.j,c=new _u(i.j),Yt(c,new apn),e.g){case 2:Qx(n,c,t,(Lb(),va),1);break;case 1:case 0:s=qTe(c),Qx(n,new Jl(c,0,s),t,(Lb(),va),0),Qx(n,new Jl(c,s,c.c.length),t,va,1)}}function CR(n,e){var t,i,r,c,s,f,h;if(e==null||e.length==0)return null;if(r=u(Dc(n.a,e),143),!r){for(i=(f=new ol(n.b).a.vc().Kc(),new P0(f));i.a.Ob();)if(t=(c=u(i.a.Pb(),44),u(c.md(),143)),s=t.c,h=e.length,Sn(s.substr(s.length-h,h),e)&&(e.length==s.length||Xi(s,s.length-e.length-1)==46)){if(r)return null;r=t}r&&Lr(n.a,e,r)}return r}function rPe(n,e){var t,i,r,c;return t=new C0n,i=u(Wr(_r(new Cn(null,new On(n.f,16)),t),W0(new Y2,new Z2,new np,new ep,S(C(xr,1),G,108,0,[(Gu(),Sw),Yr]))),21),r=i.gc(),i=u(Wr(_r(new Cn(null,new On(e.f,16)),t),W0(new Y2,new Z2,new np,new ep,S(C(xr,1),G,108,0,[Sw,Yr]))),21),c=i.gc(),r<c?-1:r==c?0:1}function Zqn(n){var e,t,i;kt(n,(cn(),a0))&&(i=u(v(n,a0),21),!i.dc()&&(t=(e=u(of(yr),9),new _o(e,u(xs(e,e.length),9),0)),i.Hc((lw(),No))?_s(t,No):_s(t,Zs),i.Hc(Ms)||_s(t,Ms),i.Hc(Qs)?_s(t,nf):i.Hc(xl)?_s(t,el):i.Hc(Ys)&&_s(t,Ts),i.Hc(nf)?_s(t,Qs):i.Hc(el)?_s(t,xl):i.Hc(Ts)&&_s(t,Ys),U(n,a0,t)))}function cPe(n){var e,t,i,r,c,s,f;for(r=u(v(n,(W(),s0)),10),i=n.j,t=(Nn(0,i.c.length),u(i.c[0],12)),s=new M(r.j);s.a<s.c.c.length;)if(c=u(E(s),12),x(c)===x(v(t,st))){c.j==(en(),Xn)&&n.p>r.p?(gi(c,ae),c.d&&(f=c.o.b,e=c.a.b,c.a.b=f-e)):c.j==ae&&r.p>n.p&&(gi(c,Xn),c.d&&(f=c.o.b,e=c.a.b,c.a.b=-(f-e)));break}return r}function fy(n,e,t,i,r){var c,s,f,h,l,a,d;if(!(L(e,207)||L(e,366)||L(e,193)))throw T(new Gn("Method only works for ElkNode-, ElkLabel and ElkPort-objects."));return s=n.a/2,h=e.i+i-s,a=e.j+r-s,l=h+e.g+n.a,d=a+e.f+n.a,c=new Tu,Re(c,new V(h,a)),Re(c,new V(h,d)),Re(c,new V(l,d)),Re(c,new V(l,a)),f=new bR(c),Ur(f,e),t&&Ve(n.b,e,f),f}function Pm(n,e,t){var i,r,c,s,f,h,l,a,d,g;for(c=new V(e,t),a=new M(n.a);a.a<a.c.c.length;)for(l=u(E(a),10),tt(l.n,c),g=new M(l.j);g.a<g.c.c.length;)for(d=u(E(g),12),r=new M(d.g);r.a<r.c.c.length;)for(i=u(E(r),18),nw(i.a,c),s=u(v(i,(cn(),Rr)),75),s&&nw(s,c),h=new M(i.b);h.a<h.c.c.length;)f=u(E(h),72),tt(f.n,c)}function uPe(n,e,t){var i,r,c,s,f,h,l,a,d,g;for(c=new V(e,t),a=new M(n.a);a.a<a.c.c.length;)for(l=u(E(a),10),tt(l.n,c),g=new M(l.j);g.a<g.c.c.length;)for(d=u(E(g),12),r=new M(d.g);r.a<r.c.c.length;)for(i=u(E(r),18),nw(i.a,c),s=u(v(i,(cn(),Rr)),75),s&&nw(s,c),h=new M(i.b);h.a<h.c.c.length;)f=u(E(h),72),tt(f.n,c)}function nUn(n){if((!n.b&&(n.b=new Dn(he,n,4,7)),n.b).i==0)throw T(new hp("Edges must have a source."));if((!n.c&&(n.c=new Dn(he,n,5,8)),n.c).i==0)throw T(new hp("Edges must have a target."));if(!n.b&&(n.b=new Dn(he,n,4,7)),!(n.b.i<=1&&(!n.c&&(n.c=new Dn(he,n,5,8)),n.c.i<=1)))throw T(new hp("Hyperedges are not supported."))}function Een(n,e){var t,i,r,c,s,f,h,l,a,d;for(d=0,c=new Mg,W1(c,e);c.b!=c.c;)for(h=u(Pp(c),219),l=0,a=u(v(e.j,(cn(),Yh)),284),s=$(B(v(e.j,hO))),f=$(B(v(e.j,Ffn))),a!=(lh(),k1)&&(l+=s*fTe(h.e,a),l+=f*JSe(h.e)),d+=VBn(h.d,h.e)+l,r=new M(h.b);r.a<r.c.c.length;)i=u(E(r),36),t=u(sn(n.b,i.p),219),t.s||(d+=kS(n,t));return d}function dh(){dh=R;var n;for(sI=new gl(1,1),QF=new gl(1,10),P8=new gl(0,0),vQn=new gl(-1,1),kQn=S(C(l2,1),J,92,0,[P8,sI,new gl(1,2),new gl(1,3),new gl(1,4),new gl(1,5),new gl(1,6),new gl(1,7),new gl(1,8),new gl(1,9),QF]),fI=F(l2,J,92,32,0,1),n=0;n<fI.length;n++)fI[n]=SM(Ks(1,n),0)?ia(Ks(1,n)):U6(ia(n1(Ks(1,n))))}function eUn(n,e,t,i,r,c,s){if(n.c=i.Lf().a,n.d=i.Lf().b,r&&(n.c+=r.Lf().a,n.d+=r.Lf().b),n.b=e.Mf().a,n.a=e.Mf().b,!r)t?n.c-=s+e.Mf().a:n.c+=i.Mf().a+s;else switch(r.ag().g){case 0:case 2:n.c+=r.Mf().a+s+c.a+s;break;case 4:n.c-=s+c.a+s+e.Mf().a;break;case 1:n.c+=r.Mf().a+s,n.d-=s+c.b+s+e.Mf().b;break;case 3:n.c+=r.Mf().a+s,n.d+=r.Mf().b+s+c.b+s}}function tUn(n,e){var t,i;for(this.b=new Z,this.e=new Z,this.a=n,this.d=e,E9e(this),I8e(this),this.b.dc()?this.c=n.c.p:this.c=u(this.b.Xb(0),10).c.p,this.e.c.length==0?this.f=n.c.p:this.f=u(sn(this.e,this.e.c.length-1),10).c.p,i=u(v(n,(W(),F8)),15).Kc();i.Ob();)if(t=u(i.Pb(),72),kt(t,(cn(),dO))){this.d=u(v(t,dO),232);break}}function Im(n,e,t){var i,r,c,s,f,h,l,a;for(i=u(ee(n.a,e),49),c=u(ee(n.a,t),49),r=u(ee(n.e,e),49),s=u(ee(n.e,t),49),i.a.zc(t,i),s.a.zc(e,s),a=c.a.ec().Kc();a.Ob();)l=u(a.Pb(),10),i.a.zc(l,i),fi(u(ee(n.e,l),49),e),Ki(u(ee(n.e,l),49),r);for(h=r.a.ec().Kc();h.Ob();)f=u(h.Pb(),10),s.a.zc(f,s),fi(u(ee(n.a,f),49),t),Ki(u(ee(n.a,f),49),c)}function hy(n,e,t){var i,r,c,s,f,h,l,a;for(i=u(ee(n.a,e),49),c=u(ee(n.a,t),49),r=u(ee(n.b,e),49),s=u(ee(n.b,t),49),i.a.zc(t,i),s.a.zc(e,s),a=c.a.ec().Kc();a.Ob();)l=u(a.Pb(),10),i.a.zc(l,i),fi(u(ee(n.b,l),49),e),Ki(u(ee(n.b,l),49),r);for(h=r.a.ec().Kc();h.Ob();)f=u(h.Pb(),10),s.a.zc(f,s),fi(u(ee(n.a,f),49),t),Ki(u(ee(n.a,f),49),c)}function ns(n,e,t){var i,r,c,s,f,h,l,a;for(i=u(ee(n.a,e),49),c=u(ee(n.a,t),49),r=u(ee(n.d,e),49),s=u(ee(n.d,t),49),i.a.zc(t,i),s.a.zc(e,s),a=c.a.ec().Kc();a.Ob();)l=u(a.Pb(),12),i.a.zc(l,i),fi(u(ee(n.d,l),49),e),Ki(u(ee(n.d,l),49),r);for(h=r.a.ec().Kc();h.Ob();)f=u(h.Pb(),12),s.a.zc(f,s),fi(u(ee(n.a,f),49),t),Ki(u(ee(n.a,f),49),c)}function oPe(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m;if(c=t,t<i)for(g=(p=new yk(n.p),m=new yk(n.p),Ki(p.e,n.e),p.q=n.q,p.r=m,mT(p),Ki(m.j,n.j),m.r=p,mT(m),new bi(p,m)),d=u(g.a,118),a=u(g.b,118),r=(Nn(c,e.c.length),u(e.c[c],339)),s=Aqn(n,d,a,r),l=t+1;l<=i;l++)f=(Nn(l,e.c.length),u(e.c[l],339)),h=Aqn(n,d,a,f),j9e(f,h,r,s)&&(r=f,s=h,c=l);return c}function sPe(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m;for(s=u(N(e,0),27),eu(s,0),tu(s,0),g=new Z,Fn(g.c,s),f=s,c=new tW(n.a,s.g,s.f,(x5(),_j)),p=1;p<e.i;p++)m=u(N(e,p),27),h=RR(n,D2,m,f,c,g,t),l=RR(n,L3,m,f,c,g,t),a=RR(n,d9,m,f,c,g,t),d=RR(n,a9,m,f,c,g,t),r=ROe(n,h,l,a,d,m,f,i),eu(m,r.d),tu(m,r.e),lfe(r,_j),c=r,f=m,Fn(g.c,m);return c}function fPe(n,e,t){var i,r,c,s,f,h,l,a,d,g;if(a=null,g=e,d=GLn(n,$Ln(t),g),X4(d,bl(g,Eh)),s=Sb(g,Ccn),i=new pTn(n,d),LEe(i.a,i.b,s),f=Sb(g,pF),r=new mTn(n,d),NEe(r.a,r.b,f),(!d.b&&(d.b=new Dn(he,d,4,7)),d.b).i==0||(!d.c&&(d.c=new Dn(he,d,5,8)),d.c).i==0)throw c=bl(g,Eh),h=vWn+c,l=h+iv,T(new eh(l));return gS(g,d),dNe(n,g,d),a=_$(n,g,d),a}function hPe(n,e){var t,i,r,c,s,f,h;for(r=F(ye,_e,28,n.e.a.c.length,15,1),s=new M(n.e.a);s.a<s.c.c.length;)c=u(E(s),125),r[c.d]+=c.b.a.c.length;for(f=$7(e);f.b!=0;)for(c=u(f.b==0?null:(oe(f.b!=0),Xo(f,f.a.a)),125),i=Fp(new M(c.g.a));i.Ob();)t=u(i.Pb(),218),h=t.e,h.e=y.Math.max(h.e,c.e+t.a),--r[h.d],r[h.d]==0&&xt(f,h,f.c.b,f.c)}function iUn(n){var e,t,i,r,c,s,f,h,l,a,d;for(t=Wi,r=et,f=new M(n.e.a);f.a<f.c.c.length;)c=u(E(f),125),r=y.Math.min(r,c.e),t=y.Math.max(t,c.e);for(e=F(ye,_e,28,t-r+1,15,1),s=new M(n.e.a);s.a<s.c.c.length;)c=u(E(s),125),c.e-=r,++e[c.e];if(i=0,n.k!=null)for(l=n.k,a=0,d=l.length;a<d&&(h=l[a],e[i++]+=h,e.length!=i);++a);return e}function lPe(n,e){var t,i,r,c,s,f;if(e.Ug("Edge routing",1),r=u(v(n,(lc(),oq)),392),r==(d5(),ZH))O4e(n);else if(r==Nj)for(u(ho(im(ut(new Cn(null,new On(n.b,16)),new X3n))),40),c=$(B(v(n,Nln))),s=$(B(v(n,Pln))),f=u(v(n,v0),88),gNe(n,f,c),XNe(n,f,c,s),QNe(n,f,c,s),i=ge(n.a,0);i.b!=i.d.c;)t=u(be(i),65),t.a.b<2&&Ann(t);e.Vg()}function rUn(n){switch(n.d){case 9:case 8:return!0;case 3:case 5:case 4:case 6:return!1;case 7:return u(len(n),17).a==n.o;case 1:case 2:{if(n.o==-2)return!1;switch(n.p){case 0:case 1:case 2:case 6:case 5:case 7:return ob(n.k,n.f);case 3:case 4:return n.j==n.e;default:return n.n==null?n.g==null:rt(n.n,n.g)}}default:return!1}}function aPe(n,e){var t,i,r;switch(e.Ug("Breaking Point Insertion",1),i=new Gnn(n),u(v(n,(cn(),LH)),351).g){case 2:r=new WU;break;case 0:r=new zU;break;default:r=new JU}if(t=r.og(n,i),on(un(v(n,Mhn)))&&(t=eAe(n,t)),!r.pg()&&kt(n,jO))switch(u(v(n,jO),352).g){case 2:t=R_n(i,t);break;case 1:t=PFn(i,t)}if(t.dc()){e.Vg();return}yNe(n,t),e.Vg()}function cUn(n,e,t){var i,r,c,s,f,h,l,a,d;for(c=new Gc(e.c.length),l=new M(e);l.a<l.c.c.length;)s=u(E(l),10),nn(c,n.b[s.c.p][s.p]);for(JOe(n,c,t),d=null;d=_Ae(c);)OIe(n,u(d.a,239),u(d.b,239),c);for(e.c.length=0,r=new M(c);r.a<r.c.c.length;)for(i=u(E(r),239),f=i.d,h=0,a=f.length;h<a;++h)s=f[h],Fn(e.c,s),n.a[s.c.p][s.p].a=Sf(i.g,i.d[0]).a}function uUn(n){rb(n,new gd(eb(Yd(nb(Zd(new Fa,a8),"ELK Fixed"),"Keeps the current layout as it is, without any automatic modification. Optional coordinates can be given for nodes and edge bend points."),new Xmn))),Q(n,a8,Wb,hdn),Q(n,a8,CP,rn(j9)),Q(n,a8,gcn,rn(udn)),Q(n,a8,r2,rn(odn)),Q(n,a8,d3,rn(fdn)),Q(n,a8,zm,rn(sdn))}function RS(n,e,t){var i,r,c,s,f;if(i=Se(er(Uh,xh(Se(er(e==null?0:mt(e),Gh)),15))),f=Se(er(Uh,xh(Se(er(t==null?0:mt(t),Gh)),15))),c=u5(n,e,i),c&&f==c.f&&sh(t,c.i))return t;if(s=o5(n,t,f),s)throw T(new Gn("value already present: "+t));return r=new kT(e,i,t,f),c?(zg(n,c),ny(n,r,c),c.e=null,c.c=null,c.i):(ny(n,r,null),aFn(n),null)}function dPe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m;a=t.a.c,s=t.a.c+t.a.b,c=u(ee(t.c,e),468),p=c.f,m=c.a,c.b?h=new V(s,p):h=new V(a,p),c.c?d=new V(a,m):d=new V(s,m),r=a,t.p||(r+=n.c),r+=t.F+t.v*n.b,l=new V(r,p),g=new V(r,m),r5(e.a,S(C(Ei,1),J,8,0,[h,l])),f=t.d.a.gc()>1,f&&(i=new V(r,t.b),Re(e.a,i)),r5(e.a,S(C(Ei,1),J,8,0,[g,d]))}function ps(){ps=R,SO=new N0(kh,0),Pj=new N0("NIKOLOV",1),Ij=new N0("NIKOLOV_PIXEL",2),Rhn=new N0("NIKOLOV_IMPROVED",3),Khn=new N0("NIKOLOV_IMPROVED_PIXEL",4),xhn=new N0("DUMMYNODE_PERCENTAGE",5),Bhn=new N0("NODECOUNT_PERCENTAGE",6),PO=new N0("NO_BOUNDARY",7),p0=new N0("MODEL_ORDER_LEFT_TO_RIGHT",8),Uw=new N0("MODEL_ORDER_RIGHT_TO_LEFT",9)}function bPe(n){var e,t,i,r,c;for(i=n.length,e=new i6,c=0;c<i;)if(t=Xi(n,c++),!(t==9||t==10||t==12||t==13||t==32)){if(t==35){for(;c<i&&(t=Xi(n,c++),!(t==13||t==10)););continue}t==92&&c<i?(r=(zn(c,n.length),n.charCodeAt(c)))==35||r==9||r==10||r==12||r==13||r==32?(C4(e,r&ui),++c):(e.a+="\\",C4(e,r&ui),++c):C4(e,t&ui)}return e.a}function Men(){Men=R,zre=new Tn(Brn,(_n(),!1)),Jre=new Tn(Frn,Y(0)),Qre=new Tn(_rn,0),Yre=new Tn(NP,!1),Gln=(Ik(),FO),Vre=new Tn(zB,Gln),Y(0),Xre=new Tn(XB,Y(1)),Xln=(SC(),Eq),tce=new Tn(Hrn,Xln),Vln=(ZT(),mq),ice=new Tn(qrn,Vln),zln=(sS(),jq),Wre=new Tn(Urn,zln),ece=new Tn(VB,0),Zre=new Tn(WB,!1),nce=new Tn(Grn,!1)}function wPe(n,e){var t,i,r;for(i=new M(e);i.a<i.c.c.length;)if(t=u(E(i),27),In(n.a,t,t),In(n.b,t,t),r=aw(t),r.c.length!=0)for(n.d&&n.d.Gg(r),In(n.a,t,(Nn(0,r.c.length),u(r.c[0],27))),In(n.b,t,u(sn(r,r.c.length-1),27));K$(r).c.length!=0;)r=K$(r),n.d&&n.d.Gg(r),In(n.a,t,(Nn(0,r.c.length),u(r.c[0],27))),In(n.b,t,u(sn(r,r.c.length-1),27))}function SR(n,e,t){var i,r,c,s,f,h;if(e)if(t<=-1){if(i=$n(e.Dh(),-1-t),L(i,102))return u(i,19);for(s=u(e.Mh(i),160),f=0,h=s.gc();f<h;++f)if(x(s.Ul(f))===x(n)&&(r=s.Tl(f),L(r,102)&&(c=u(r,19),c.Bb&kc)))return c;throw T(new Ar("The containment feature could not be located"))}else return br(u($n(n.Dh(),t),19));else return null}function gPe(n){var e,t,i,r,c,s,f,h,l,a;for(t=0,f=new M(n.d);f.a<f.c.c.length;)s=u(E(f),105),s.i&&(s.i.c=t++);for(e=Wa(so,[J,Xh],[183,28],16,[t,t],2),a=n.d,r=0;r<a.c.length;r++)if(h=(Nn(r,a.c.length),u(a.c[r],105)),h.i)for(c=r+1;c<a.c.length;c++)l=(Nn(c,a.c.length),u(a.c[c],105)),l.i&&(i=Hye(h,l),e[h.i.c][l.i.c]=i,e[l.i.c][h.i.c]=i);return e}function Ten(){Ten=R,Tce=new Tn(Vrn,(_n(),!1)),Y(-1),vce=new Tn(Wrn,Y(-1)),Y(-1),kce=new Tn(Jrn,Y(-1)),yce=new Tn(Qrn,!1),w1n=(GT(),Dq),Ice=new Tn(Yrn,w1n),Oce=new Tn(Zrn,-1),b1n=(_C(),Oq),Pce=new Tn(ncn,b1n),Sce=new Tn(ecn,!0),d1n=(nC(),$q),Mce=new Tn(tcn,d1n),Ece=new Tn(icn,!1),Y(1),jce=new Tn(rcn,Y(1)),Cce=new lt(ccn)}function F5(){F5=R,YH=new ub("ROOT_PROC",0),sln=new ub("FAN_PROC",1),aln=new ub("LEVEL_PROC",2),dln=new ub("NEIGHBORS_PROC",3),lln=new ub("LEVEL_HEIGHT",4),oln=new ub("DIRECTION_PROC",5),bln=new ub("NODE_POSITION_PROC",6),cln=new ub("COMPACTION_PROC",7),hln=new ub("LEVEL_COORDS",8),fln=new ub("GRAPH_BOUNDS_PROC",9),uln=new ub("DETREEIFYING_PROC",10)}function Cen(n,e){var t,i,r,c,s,f,h,l,a,d;for(d=Hr(e),l=null,r=!1,f=0,a=Pc(d.a).i;f<a;++f)s=u(py(d,f,(c=u(N(Pc(d.a),f),89),h=c.c,L(h,90)?u(h,29):(An(),Os))),29),t=Cen(n,s),t.dc()||(l?(r||(r=!0,l=new sT(l)),l.Gc(t)):l=t);return i=CEe(n,e),i.dc()?l||(Ln(),Ln(),sr):l?(r||(l=new sT(l)),l.Gc(i),l):i}function PR(n,e){var t,i,r,c,s,f,h,l,a,d;for(d=Hr(e),l=null,i=!1,f=0,a=Pc(d.a).i;f<a;++f)c=u(py(d,f,(r=u(N(Pc(d.a),f),89),h=r.c,L(h,90)?u(h,29):(An(),Os))),29),t=PR(n,c),t.dc()||(l?(i||(i=!0,l=new sT(l)),l.Gc(t)):l=t);return s=fMe(n,e),s.dc()?l||(Ln(),Ln(),sr):l?(i||(l=new sT(l)),l.Gc(s),l):s}function pPe(n){var e,t,i,r;i=n.o,K0(),n.A.dc()||rt(n.A,ron)?r=i.a:(r=ty(n.f),n.A.Hc((go(),iE))&&!n.B.Hc((io(),I9))&&(r=y.Math.max(r,ty(u(Mr(n.p,(en(),Xn)),252))),r=y.Math.max(r,ty(u(Mr(n.p,ae),252)))),e=Kxn(n),e&&(r=y.Math.max(r,e.a))),on(un(n.e.Tf().of((He(),Vw))))?i.a=y.Math.max(i.a,r):i.a=r,t=n.f.i,t.c=0,t.b=r,NR(n.f)}function ly(n,e,t){var i,r,c,s,f,h;if(L(e,76))return cr(n,e,t);for(f=null,c=null,i=u(n.g,124),s=0;s<n.i;++s)if(r=i[s],rt(e,r.md())&&(c=r.Lk(),L(c,102)&&u(c,19).Bb&kc)){f=r;break}return f&&(fo(n.e)&&(h=c.Jk()?V1(n,4,c,e,null,Am(n,c,e,L(c,102)&&(u(c,19).Bb&hr)!=0),!0):V1(n,c.tk()?2:1,c,e,c.ik(),-1,!0),t?t.nj(h):t=h),t=ly(n,f,t)),t}function mPe(n,e,t){var i,r,c,s;if(s=ru(n.e.Dh(),e),i=u(n.g,124),dr(),u(e,69).xk()){for(c=0;c<n.i;++c)if(r=i[c],s.am(r.Lk())&&rt(r,t))return dw(n,c),!0}else if(t!=null){for(c=0;c<n.i;++c)if(r=i[c],s.am(r.Lk())&&rt(t,r.md()))return dw(n,c),!0}else for(c=0;c<n.i;++c)if(r=i[c],s.am(r.Lk())&&r.md()==null)return dw(n,c),!0;return!1}function vPe(n,e){var t,i,r,c,s;if(e.Ug("Node and Port Label Placement and Node Sizing",1),dCn((u6(),new kD(n,!0,!0,new Egn))),u(v(n,(W(),Hc)),21).Hc((pr(),cs)))for(c=u(v(n,(cn(),_w)),21),r=c.Hc((zu(),tE)),s=on(un(v(n,bhn))),i=new M(n.b);i.a<i.c.c.length;)t=u(E(i),30),qt(ut(new Cn(null,new On(t.a,16)),new Mgn),new mPn(c,r,s));e.Vg()}function kPe(n,e){var t,i,r,c,s;for(n.c==null||n.c.length<e.c.length?n.c=F(so,Xh,28,e.c.length,16,1):e6(n.c),n.a=new Z,i=0,s=new M(e);s.a<s.c.c.length;)r=u(E(s),10),r.p=i++;for(t=new Mt,c=new M(e);c.a<c.c.c.length;)r=u(E(c),10),n.c[r.p]||(__n(n,r),t.b==0||(oe(t.b!=0),u(t.a.a.c,15)).gc()<n.a.c.length?gg(t,n.a):ir(t,n.a),n.a=new Z);return t}function oUn(n){rb(n,new gd(eb(Yd(nb(Zd(new Fa,Ym),"ELK SPOrE Overlap Removal"),'A node overlap removal algorithm proposed by Nachmanson et al. in "Node overlap removal by growing a tree".'),new bmn))),Q(n,Ym,YB,rn(ean)),Q(n,Ym,Wb,nan),Q(n,Ym,yw,8),Q(n,Ym,eF,rn(hue)),Q(n,Ym,lcn,rn(Y1n)),Q(n,Ym,acn,rn(Z1n)),Q(n,Ym,Uy,(_n(),!1))}function yPe(n,e){var t,i,r,c,s,f,h;if(t=e.qi(n.a),t&&(h=Ae(gf((!t.b&&(t.b=new lo((An(),ar),pc,t)),t.b),Vcn)),h!=null)){for(i=new Z,c=ww(h,"\\w"),s=0,f=c.length;s<f;++s)r=c[s],Sn(r,"##other")?nn(i,"!##"+B6(n,jo(e.qk()))):Sn(r,"##local")?i.c.push(null):Sn(r,Yy)?nn(i,B6(n,jo(e.qk()))):Fn(i.c,r);return i}return Ln(),Ln(),sr}function sUn(n,e,t,i){var r,c,s,f,h,l,a,d,g,p;for(s=ab(e.c,t,i),d=new M(e.a);d.a<d.c.c.length;){for(a=u(E(d),10),tt(a.n,s),p=new M(a.j);p.a<p.c.c.length;)for(g=u(E(p),12),c=new M(g.g);c.a<c.c.c.length;)for(r=u(E(c),18),nw(r.a,s),f=u(v(r,(cn(),Rr)),75),f&&nw(f,s),l=new M(r.b);l.a<l.c.c.length;)h=u(E(l),72),tt(h.n,s);nn(n.a,a),a.a=n}}function ay(n){var e,t,i,r,c,s,f,h;if(n.d)throw T(new Ar((ll(S_),RK+S_.k+KK)));for(n.c==(ci(),Jf)&&Yg(n,Kr),t=new M(n.a.a);t.a<t.c.c.length;)e=u(E(t),194),e.e=0;for(s=new M(n.a.b);s.a<s.c.c.length;)for(c=u(E(s),86),c.o=li,r=c.f.Kc();r.Ob();)i=u(r.Pb(),86),++i.d.e;for(kLe(n),h=new M(n.a.b);h.a<h.c.c.length;)f=u(E(h),86),f.k=!0;return n}function jPe(n,e){var t,i,r,c,s,f,h,l;for(f=new g_n(n),t=new Mt,xt(t,e,t.c.b,t.c);t.b!=0;){for(i=u(t.b==0?null:(oe(t.b!=0),Xo(t,t.a.a)),113),i.d.p=1,s=new M(i.e);s.a<s.c.c.length;)r=u(E(s),340),xFn(f,r),l=r.d,l.d.p==0&&xt(t,l,t.c.b,t.c);for(c=new M(i.b);c.a<c.c.c.length;)r=u(E(c),340),xFn(f,r),h=r.c,h.d.p==0&&xt(t,h,t.c.b,t.c)}return f}function fUn(n){var e,t,i,r,c;if(i=$(B(z(n,(He(),Rue)))),i!=1)for(kg(n,i*n.g,i*n.f),t=Mle(i0e((!n.c&&(n.c=new q(Qu,n,9,9)),n.c),new ivn)),c=$h(Eo(S(C(Ao,1),Kn,20,0,[(!n.n&&(n.n=new q(Sr,n,1,7)),n.n),(!n.c&&(n.c=new q(Qu,n,9,9)),n.c),t])));pe(c);)r=u(fe(c),422),r.qh(i*r.nh(),i*r.oh()),r.ph(i*r.mh(),i*r.lh()),e=u(r.of(Kan),8),e&&(e.a*=i,e.b*=i)}function Sen(n,e,t){var i,r,c,s,f;if(s=(dr(),u(e,69).xk()),Pl(n.e,e)){if(e.Si()&&BS(n,e,t,L(e,102)&&(u(e,19).Bb&hr)!=0))return!1}else for(f=ru(n.e.Dh(),e),i=u(n.g,124),c=0;c<n.i;++c)if(r=i[c],f.am(r.Lk()))return(s?rt(r,t):t==null?r.md()==null:rt(t,r.md()))?!1:(u(Bg(n,c,s?u(t,76):Rh(e,t)),76),!0);return ve(n,s?u(t,76):Rh(e,t))}function EPe(n,e,t,i,r){var c,s,f,h,l,a,d,g;for(s=new M(n.b);s.a<s.c.c.length;)for(c=u(E(s),30),g=Y7(c.a),l=g,a=0,d=l.length;a<d;++a)switch(h=l[a],u(v(h,(cn(),ou)),171).g){case 1:UCe(h),$i(h,e),EBn(h,!0,i);break;case 3:CCe(h),$i(h,t),EBn(h,!1,r)}for(f=new xi(n.b,0);f.b<f.d.gc();)(oe(f.b<f.d.gc()),u(f.d.Xb(f.c=f.b++),30)).a.c.length==0&&bo(f)}function MPe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j;for(p=e.length,h=p,zn(0,e.length),e.charCodeAt(0)==45?(d=-1,g=1,--p):(d=1,g=0),c=(KR(),jQn)[10],r=p/c|0,j=p%c,j!=0&&++r,f=F(ye,_e,28,r,15,1),t=yQn[8],s=0,m=g+(j==0?c:j),k=g;k<h;k=m,m=k+c)i=So((Ri(k,m,e.length),e.substr(k,m-k)),Wi,et),l=(Sm(),hZ(f,f,s,t)),l+=T8e(f,s,i),f[s++]=l;a=s,n.e=d,n.d=a,n.a=f,J6(n)}function TPe(n,e){var t,i,r,c;return t=new O0n,i=u(Wr(_r(new Cn(null,new On(n.f,16)),t),W0(new Y2,new Z2,new np,new ep,S(C(xr,1),G,108,0,[(Gu(),Sw),Yr]))),21),r=i.gc(),i=u(Wr(_r(new Cn(null,new On(e.f,16)),t),W0(new Y2,new Z2,new np,new ep,S(C(xr,1),G,108,0,[Sw,Yr]))),21),c=i.gc(),r=r==1?1:0,c=c==1?1:0,r<c?-1:r==c?0:1}function CPe(n){var e,t,i,r,c,s,f,h,l,a,d,g;for(f=n.i,r=on(un(v(f,(cn(),Bw)))),a=0,i=0,l=new M(n.g);l.a<l.c.c.length;)h=u(E(l),18),s=fr(h),c=s&&r&&on(un(v(h,Dd))),g=h.d.i,s&&c?++i:s&&!c?++a:Hi(g).e==f?++i:++a;for(t=new M(n.e);t.a<t.c.c.length;)e=u(E(t),18),s=fr(e),c=s&&r&&on(un(v(e,Dd))),d=e.c.i,s&&c?++a:s&&!c?++i:Hi(d).e==f?++a:++i;return a-i}function Wg(n,e,t,i){this.e=n,this.k=u(v(n,(W(),E2)),312),this.g=F(Qh,b1,10,e,0,1),this.b=F(si,J,345,e,7,1),this.a=F(Qh,b1,10,e,0,1),this.d=F(si,J,345,e,7,1),this.j=F(Qh,b1,10,e,0,1),this.i=F(si,J,345,e,7,1),this.p=F(si,J,345,e,7,1),this.n=F(Gt,J,485,e,8,1),u7(this.n,(_n(),!1)),this.f=F(Gt,J,485,e,8,1),u7(this.f,!0),this.o=t,this.c=i}function hUn(n,e){var t,i,r,c,s,f;if(!e.dc())if(u(e.Xb(0),293).d==(Yp(),Dw))W7e(n,e);else for(i=e.Kc();i.Ob();){switch(t=u(i.Pb(),293),t.d.g){case 5:Em(n,t,n8e(n,t));break;case 0:Em(n,t,(s=t.f-t.c+1,f=(s-1)/2|0,t.c+f));break;case 4:Em(n,t,ome(n,t));break;case 2:PKn(t),Em(n,t,(c=UZ(t),c?t.c:t.f));break;case 1:PKn(t),Em(n,t,(r=UZ(t),r?t.f:t.c))}Gye(t.a)}}function Pen(n,e,t,i){var r,c,s;return s=new GEn(e,t),n.a?i?(r=u(as(u(ee(n.b,e),260)),260),++r.a,s.d=i.d,s.e=i.e,s.b=i,s.c=i,i.e?i.e.c=s:r.b=s,i.d?i.d.b=s:n.a=s,i.d=s,i.e=s):(u(as(n.e),511).b=s,s.d=n.e,n.e=s,r=u(ee(n.b,e),260),r?(++r.a,c=r.c,c.c=s,s.e=c,r.c=s):(Ve(n.b,e,r=new QW(s)),++n.c)):(n.a=n.e=s,Ve(n.b,e,new QW(s)),++n.c),++n.d,s}function IR(n,e){var t,i,r,c,s;if(e.Ug("Network simplex",1),n.e.a.c.length<1){e.Vg();return}for(c=new M(n.e.a);c.a<c.c.c.length;)r=u(E(c),125),r.e=0;for(s=n.e.a.c.length>=40,s&&wIe(n),MOe(n),zCe(n),t=pKn(n),i=0;t&&i<n.f;)APe(n,t,WMe(n,t)),t=pKn(n),++i;s&&lye(n),n.a?uTe(n,iUn(n)):iUn(n),n.b=null,n.d=null,n.p=null,n.c=null,n.g=null,n.i=null,n.n=null,n.o=null,e.Vg()}function SPe(n,e){var t,i,r,c,s,f,h;if(!e.e){for(e.e=!0,i=e.d.a.ec().Kc();i.Ob();){if(t=u(i.Pb(),18),e.o&&e.d.a.gc()<=1){s=e.a.c,f=e.a.c+e.a.b,h=new V(s+(f-s)/2,e.b),Re(u(e.d.a.ec().Kc().Pb(),18).a,h);continue}if(r=u(ee(e.c,t),468),r.b||r.c){dPe(n,t,e);continue}c=n.d==(om(),Y8)&&(r.d||r.e)&&vMe(n,e)&&e.d.a.gc()<=1,c?nLe(t,e):jSe(n,t,e)}e.k&&qi(e.d,new Ywn)}}function Ien(n,e,t,i,r,c){var s,f,h,l,a,d,g,p,m,k,j,P,O,A;for(g=c,f=(i+r)/2+g,j=t*y.Math.cos(f),P=t*y.Math.sin(f),O=j-e.g/2,A=P-e.f/2,eu(e,O),tu(e,A),d=n.a.Eg(e),k=2*y.Math.acos(t/t+n.c),k<r-i?(p=k/d,s=(i+r-k)/2):(p=(r-i)/d,s=i),m=aw(e),n.e&&(n.e.Fg(n.d),n.e.Gg(m)),l=new M(m);l.a<l.c.c.length;)h=u(E(l),27),a=n.a.Eg(h),Ien(n,h,t+n.c,s,s+p*a,c),s+=p*a}function PPe(n,e,t){var i;switch(i=t.q.getMonth(),e){case 5:Be(n,S(C(fn,1),J,2,6,["J","F","M","A","M","J","J","A","S","O","N","D"])[i]);break;case 4:Be(n,S(C(fn,1),J,2,6,[sK,fK,hK,lK,c3,aK,dK,bK,wK,gK,pK,mK])[i]);break;case 3:Be(n,S(C(fn,1),J,2,6,["Jan","Feb","Mar","Apr",c3,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"])[i]);break;default:Kh(n,i+1,e)}}function IPe(n,e,t,i){var r,c,s,f,h,l,a,d,g;for(h=new V(t,i),mi(h,u(v(e,(Q1(),L8)),8)),g=new M(e.e);g.a<g.c.c.length;)d=u(E(g),153),tt(d.d,h),nn(n.e,d);for(f=new M(e.c);f.a<f.c.c.length;){for(s=u(E(f),290),c=new M(s.a);c.a<c.c.c.length;)r=u(E(c),250),tt(r.d,h);nn(n.c,s)}for(a=new M(e.d);a.a<a.c.c.length;)l=u(E(a),454),tt(l.d,h),nn(n.d,l)}function Oen(n,e){var t,i,r,c,s,f,h,l;for(h=new M(e.j);h.a<h.c.c.length;)for(f=u(E(h),12),r=new Lf(f.b);tc(r.a)||tc(r.b);)i=u(tc(r.a)?E(r.a):E(r.b),18),t=i.c==f?i.d:i.c,c=t.i,e!=c&&(l=u(v(i,(cn(),Cv)),17).a,l<0&&(l=0),s=c.p,n.b[s]==0&&(i.d==t?(n.a[s]-=l+1,n.a[s]<=0&&n.c[s]>0&&Re(n.f,c)):(n.c[s]-=l+1,n.c[s]<=0&&n.a[s]>0&&Re(n.e,c))))}function lUn(n,e,t,i){var r,c,s,f,h,l,a;for(h=new V(t,i),mi(h,u(v(e,(pt(),Lv)),8)),a=ge(e.b,0);a.b!=a.d.c;)l=u(be(a),40),tt(l.e,h),Re(n.b,l);for(f=u(Wr(cJ(new Cn(null,new On(e.a,16))),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[(Gu(),Yr)]))),15).Kc();f.Ob();){for(s=u(f.Pb(),65),c=ge(s.a,0);c.b!=c.d.c;)r=u(be(c),8),r.a+=h.a,r.b+=h.b;Re(n.a,s)}}function Aen(n,e){var t,i,r,c;if(0<(L(n,16)?u(n,16).gc():wl(n.Kc()))){if(r=e,1<r){for(--r,c=new G3n,i=n.Kc();i.Ob();)t=u(i.Pb(),40),c=Eo(S(C(Ao,1),Kn,20,0,[c,new sl(t)]));return Aen(c,r)}if(r<0){for(c=new z3n,i=n.Kc();i.Ob();)t=u(i.Pb(),40),c=Eo(S(C(Ao,1),Kn,20,0,[c,new sl(t)]));if(0<(L(c,16)?u(c,16).gc():wl(c.Kc())))return Aen(c,r)}}return u(DM(n.Kc()),40)}function OPe(n,e,t){var i,r,c,s;for(t.Ug("Processor order nodes",2),n.b=$(B(v(e,(lc(),sq)))),n.a=u(v(e,v0),88),n.a==(ci(),Jf)&&(n.a=Wf,U(e,v0,n.a)),r=new Mt,s=ge(e.b,0);s.b!=s.d.c;)c=u(be(s),40),on(un(v(c,(pt(),Ta))))&&xt(r,c,r.c.b,r.c);i=(oe(r.b!=0),u(r.a.a.c,40)),oGn(n,i),t.fh(1),yen(n,i,0-$(B(v(i,(pt(),xO))))/2,0),t.fh(1),t.Vg()}function io(){io=R,_v=new wg("DEFAULT_MINIMUM_SIZE",0),uE=new wg("MINIMUM_SIZE_ACCOUNTS_FOR_PADDING",1),sA=new wg("COMPUTE_PADDING",2),I9=new wg("OUTSIDE_NODE_LABELS_OVERHANG",3),fA=new wg("PORTS_OVERHANG",4),lA=new wg("UNIFORM_PORT_SPACING",5),hA=new wg("SPACE_EFFICIENT_PORT_LABELS",6),dU=new wg("FORCE_TABULAR_NODE_LABELS",7),cE=new wg("ASYMMETRICAL",8)}function OR(n,e){var t,i,r,c,s,f,h,l;if(e){if(t=(c=e.Dh(),c?jo(c).wi().si(c):null),t){for(s1(n,e,t),r=e.Dh(),h=0,l=(r.i==null&&bh(r),r.i).length;h<l;++h)f=(i=(r.i==null&&bh(r),r.i),h>=0&&h<i.length?i[h]:null),f.rk()&&!f.sk()&&(L(f,331)?P9e(n,u(f,35),e,t):(s=u(f,19),s.Bb&kc&&Bke(n,s,e,t)));e.Vh()&&u(t,54).ei(u(e,54)._h())}return t}else return null}function APe(n,e,t){var i,r,c;if(!e.f)throw T(new Gn("Given leave edge is no tree edge."));if(t.f)throw T(new Gn("Given enter edge is a tree edge already."));for(e.f=!1,DX(n.p,e),t.f=!0,fi(n.p,t),i=t.e.e-t.d.e-t.a,fR(n,t.e,e)||(i=-i),c=new M(n.e.a);c.a<c.c.c.length;)r=u(E(c),125),fR(n,r,e)||(r.e+=i);n.j=1,e6(n.c),Onn(n,u(E(new M(n.e.a)),125)),pGn(n)}function aUn(n,e,t,i){var r,c,s,f,h,l,a,d,g,p;if(jme(n,e,t),c=e[t],p=i?(en(),Wn):(en(),Zn),T1e(e.length,t,i)){for(r=e[i?t-1:t+1],_J(n,r,i?(gr(),Jc):(gr(),Vu)),h=c,a=0,g=h.length;a<g;++a)s=h[a],bZ(n,s,p);for(_J(n,c,i?(gr(),Vu):(gr(),Jc)),f=r,l=0,d=f.length;l<d;++l)s=f[l],s.e||bZ(n,s,xk(p))}else for(f=c,l=0,d=f.length;l<d;++l)s=f[l],bZ(n,s,p);return!1}function LPe(n,e,t,i,r){var c,s,f,h,l,a,d;for(Ln(),Yt(n,new Ymn),f=new xi(n,0),d=new Z,c=0;f.b<f.d.gc();)s=(oe(f.b<f.d.gc()),u(f.d.Xb(f.c=f.b++),163)),d.c.length!=0&&Pu(s)*ao(s)>c*2?(a=new hC(d),l=Pu(s)/ao(s),h=QR(a,e,new up,t,i,r,l),tt(ff(a.e),h),d.c.length=0,c=0,Fn(d.c,a),Fn(d.c,s),c=Pu(a)*ao(a)+Pu(s)*ao(s)):(Fn(d.c,s),c+=Pu(s)*ao(s));return d}function dUn(n,e){var t,i,r,c,s,f;if(f=u(v(e,(cn(),Ft)),101),f==(Ai(),tl)||f==qc)for(r=new V(e.f.a+e.d.b+e.d.c,e.f.b+e.d.d+e.d.a).b,s=new M(n.a);s.a<s.c.c.length;)c=u(E(s),10),c.k==(Vn(),Zt)&&(t=u(v(c,(W(),gc)),64),!(t!=(en(),Zn)&&t!=Wn)&&(i=$(B(v(c,f0))),f==tl&&(i*=r),c.n.b=i-u(v(c,b0),8).b,OC(c,!1,!0)))}function NPe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m;if(fo(n.e)){if(e!=t&&(r=u(n.g,124),p=r[t],s=p.Lk(),Pl(n.e,s))){for(m=ru(n.e.Dh(),s),h=-1,f=-1,i=0,l=0,d=e>t?e:t;l<=d;++l)l==t?f=i++:(c=r[l],a=m.am(c.Lk()),l==e&&(h=l==d&&!a?i-1:i),a&&++i);return g=u(k5(n,e,t),76),f!=h&&t4(n,new ck(n.e,7,s,Y(f),p.md(),h)),g}}else return u(lR(n,e,t),76);return u(k5(n,e,t),76)}function DPe(n,e){var t,i,r,c,s,f,h;for(e.Ug("Port order processing",1),h=u(v(n,(cn(),whn)),430),i=new M(n.b);i.a<i.c.c.length;)for(t=u(E(i),30),c=new M(t.a);c.a<c.c.c.length;)r=u(E(c),10),s=u(v(r,Ft),101),f=r.j,s==(Ai(),Ud)||s==tl||s==qc?(Ln(),Yt(f,jsn)):s!=Qf&&s!=Ia&&(Ln(),Yt(f,JZn),B9e(f),h==(dk(),UH)&&Yt(f,WZn)),r.i=!0,Snn(r);e.Vg()}function $Pe(n){var e,t,i,r,c,s,f,h;for(h=new de,e=new oL,s=n.Kc();s.Ob();)r=u(s.Pb(),10),f=hb(i7(new za,r),e),Vc(h.f,r,f);for(c=n.Kc();c.Ob();)for(r=u(c.Pb(),10),i=new ie(ce(Qt(r).a.Kc(),new En));pe(i);)t=u(fe(i),18),!fr(t)&&qs(Ns(Ls(As(Ds(new hs,y.Math.max(1,u(v(t,(cn(),ghn)),17).a)),1),u(ee(h,t.c.i),125)),u(ee(h,t.d.i),125)));return e}function bUn(){bUn=R,zie=Fe(new ii,(Vi(),Fc),(tr(),osn)),iln=Fe(new ii,Ac,PI),Vie=Iu(Fe(new ii,Ac,xI),zr,$I),Gie=Iu(Fe(Fe(new ii,Ac,tsn),Fc,isn),zr,rsn),Wie=ah(ah(h6(Iu(Fe(new ii,Vs,FI),zr,BI),Fc),KI),_I),Xie=Iu(new ii,zr,ssn),qie=Iu(Fe(Fe(Fe(new ii,Jh,OI),Fc,LI),Fc,hv),zr,AI),Uie=Iu(Fe(Fe(new ii,Fc,hv),Fc,SI),zr,CI)}function xPe(n,e,t,i,r,c){var s,f,h,l,a,d,g;for(l=pRn(e)-pRn(n),s=t_n(e,l),h=Yc(0,0,0);l>=0&&(f=P7e(n,s),!(f&&(l<22?h.l|=1<<l:l<44?h.m|=1<<l-22:h.h|=1<<l-44,n.l==0&&n.m==0&&n.h==0)));)a=s.m,d=s.h,g=s.l,s.h=d>>>1,s.m=a>>>1|(d&1)<<21,s.l=g>>>1|(a&1)<<21,--l;return t&&H$(h),c&&(i?(wa=tm(n),r&&(wa=Yxn(wa,(B4(),lun)))):wa=Yc(n.l,n.m,n.h)),h}function RPe(n,e){var t,i,r,c,s,f,h,l,a,d;for(l=n.e[e.c.p][e.p]+1,h=e.c.a.c.length+1,f=new M(n.a);f.a<f.c.c.length;){for(s=u(E(f),12),d=0,c=0,r=$h(Eo(S(C(Ao,1),Kn,20,0,[new e4(s),new ip(s)])));pe(r);)i=u(fe(r),12),i.i.c==e.c&&(d+=p1e(n,i.i)+1,++c);t=d/c,a=s.j,a==(en(),Zn)?t<l?n.f[s.p]=n.c-t:n.f[s.p]=n.b+(h-t):a==Wn&&(t<l?n.f[s.p]=n.b+t:n.f[s.p]=n.c-(h-t))}}function So(n,e,t){var i,r,c,s,f;if(n==null)throw T(new th(gu));for(c=n.length,s=c>0&&(zn(0,n.length),n.charCodeAt(0)==45||(zn(0,n.length),n.charCodeAt(0)==43))?1:0,i=s;i<c;i++)if(VKn((zn(i,n.length),n.charCodeAt(i)))==-1)throw T(new th(Vb+n+'"'));if(f=parseInt(n,10),r=f<e,isNaN(f))throw T(new th(Vb+n+'"'));if(r||f>t)throw T(new th(Vb+n+'"'));return f}function KPe(n){var e,t,i,r,c,s,f;for(s=new Mt,c=new M(n.a);c.a<c.c.c.length;)r=u(E(c),118),JA(r,r.f.c.length),PE(r,r.k.c.length),r.i==0&&(r.o=0,xt(s,r,s.c.b,s.c));for(;s.b!=0;)for(r=u(s.b==0?null:(oe(s.b!=0),Xo(s,s.a.a)),118),i=r.o+1,t=new M(r.f);t.a<t.c.c.length;)e=u(E(t),132),f=e.a,gG(f,y.Math.max(f.o,i)),PE(f,f.i-1),f.i==0&&xt(s,f,s.c.b,s.c)}function BPe(n){var e,t,i,r,c,s,f,h;for(s=new M(n);s.a<s.c.c.length;){for(c=u(E(s),74),i=Gr(u(N((!c.b&&(c.b=new Dn(he,c,4,7)),c.b),0),84)),f=i.i,h=i.j,r=u(N((!c.a&&(c.a=new q(Tt,c,6,6)),c.a),0),166),j7(r,r.j+f,r.k+h),y7(r,r.b+f,r.c+h),t=new ne((!r.a&&(r.a=new ti(xo,r,5)),r.a));t.e!=t.i.gc();)e=u(ue(t),377),gN(e,e.a+f,e.b+h);RQ(u(z(c,(He(),k0)),75),f,h)}}function Om(n){var e;switch(n){case 100:return Zg(T8,!0);case 68:return Zg(T8,!1);case 119:return Zg(NF,!0);case 87:return Zg(NF,!1);case 115:return Zg(DF,!0);case 83:return Zg(DF,!1);case 99:return Zg($F,!0);case 67:return Zg($F,!1);case 105:return Zg(xF,!0);case 73:return Zg(xF,!1);default:throw T(new ec((e=n,zJn+e.toString(16))))}}function FPe(n){var e,t,i,r,c;switch(r=u(sn(n.a,0),10),e=new Cl(n),nn(n.a,e),e.o.a=y.Math.max(1,r.o.a),e.o.b=y.Math.max(1,r.o.b),e.n.a=r.n.a,e.n.b=r.n.b,u(v(r,(W(),gc)),64).g){case 4:e.n.a+=2;break;case 1:e.n.b+=2;break;case 2:e.n.a-=2;break;case 3:e.n.b-=2}return i=new Ic,ic(i,e),t=new Eb,c=u(sn(r.j,0),12),Zi(t,c),Oi(t,i),tt(ff(i.n),c.n),tt(ff(i.a),c.a),e}function wUn(n,e,t,i,r){t&&(!i||(n.c-n.b&n.a.length-1)>1)&&e==1&&u(n.a[n.b],10).k==(Vn(),Sc)?t3(u(n.a[n.b],10),(Co(),nl)):i&&(!t||(n.c-n.b&n.a.length-1)>1)&&e==1&&u(n.a[n.c-1&n.a.length-1],10).k==(Vn(),Sc)?t3(u(n.a[n.c-1&n.a.length-1],10),(Co(),Sa)):(n.c-n.b&n.a.length-1)==2?(t3(u(l5(n),10),(Co(),nl)),t3(u(l5(n),10),Sa)):dTe(n,r),TJ(n)}function _Pe(n,e,t){var i,r,c,s,f;for(c=0,r=new ne((!n.a&&(n.a=new q(Ye,n,10,11)),n.a));r.e!=r.i.gc();)i=u(ue(r),27),s="",(!i.n&&(i.n=new q(Sr,i,1,7)),i.n).i==0||(s=u(N((!i.n&&(i.n=new q(Sr,i,1,7)),i.n),0),135).a),f=new q$(c++,e,s),Ur(f,i),U(f,(pt(),u9),i),f.e.b=i.j+i.f/2,f.f.a=y.Math.max(i.g,1),f.e.a=i.i+i.g/2,f.f.b=y.Math.max(i.f,1),Re(e.b,f),Vc(t.f,i,f)}function HPe(n){var e,t,i,r,c;i=u(v(n,(W(),st)),27),c=u(z(i,(cn(),xd)),181).Hc((go(),Gd)),n.e||(r=u(v(n,Hc),21),e=new V(n.f.a+n.d.b+n.d.c,n.f.b+n.d.d+n.d.a),r.Hc((pr(),cs))?(ht(i,Ft,(Ai(),qc)),Gb(i,e.a,e.b,!1,!0)):on(un(z(i,SH)))||Gb(i,e.a,e.b,!0,!0)),c?ht(i,xd,jn(Gd)):ht(i,xd,(t=u(of(P9),9),new _o(t,u(xs(t,t.length),9),0)))}function Len(n,e,t){var i,r,c,s;if(e[0]>=n.length)return t.o=0,!0;switch(Xi(n,e[0])){case 43:r=1;break;case 45:r=-1;break;default:return t.o=0,!0}if(++e[0],c=e[0],s=yS(n,e),s==0&&e[0]==c)return!1;if(e[0]<n.length&&Xi(n,e[0])==58){if(i=s*60,++e[0],c=e[0],s=yS(n,e),s==0&&e[0]==c)return!1;i+=s}else i=s,i<24&&e[0]-c<=2?i*=60:i=i%100+(i/100|0)*60;return i*=r,t.o=-i,!0}function qPe(n){var e,t,i,r,c,s,f,h,l;for(s=new Z,i=new ie(ce(Qt(n.b).a.Kc(),new En));pe(i);)t=u(fe(i),18),fr(t)&&nn(s,new xNn(t,vDn(n,t.c),vDn(n,t.d)));for(l=(c=new ol(n.e).a.vc().Kc(),new P0(c));l.a.Ob();)f=(e=u(l.a.Pb(),44),u(e.md(),113)),f.d.p=0;for(h=(r=new ol(n.e).a.vc().Kc(),new P0(r));h.a.Ob();)f=(e=u(h.a.Pb(),44),u(e.md(),113)),f.d.p==0&&nn(n.d,jPe(n,f))}function UPe(n){var e,t,i,r,c,s,f;for(c=Pf(n),r=new ne((!n.e&&(n.e=new Dn(Vt,n,7,4)),n.e));r.e!=r.i.gc();)if(i=u(ue(r),74),f=Gr(u(N((!i.c&&(i.c=new Dn(he,i,5,8)),i.c),0),84)),!Y0(f,c))return!0;for(t=new ne((!n.d&&(n.d=new Dn(Vt,n,8,5)),n.d));t.e!=t.i.gc();)if(e=u(ue(t),74),s=Gr(u(N((!e.b&&(e.b=new Dn(he,e,4,7)),e.b),0),84)),!Y0(s,c))return!0;return!1}function GPe(n,e){var t,i,r,c,s,f,h,l,a;for(s=new M(e.b);s.a<s.c.c.length;)for(c=u(E(s),30),l=new M(c.a);l.a<l.c.c.length;){for(h=u(E(l),10),a=new Z,f=0,i=new ie(ce(ji(h).a.Kc(),new En));pe(i);)t=u(fe(i),18),!(fr(t)||!fr(t)&&t.c.i.c==t.d.i.c)&&(r=u(v(t,(cn(),O3)),17).a,r>f&&(f=r,a.c.length=0),r==f&&nn(a,new bi(t.c.i,t)));Ln(),Yt(a,n.c),bb(n.b,h.p,a)}}function zPe(n,e){var t,i,r,c,s,f,h,l,a;for(s=new M(e.b);s.a<s.c.c.length;)for(c=u(E(s),30),l=new M(c.a);l.a<l.c.c.length;){for(h=u(E(l),10),a=new Z,f=0,i=new ie(ce(Qt(h).a.Kc(),new En));pe(i);)t=u(fe(i),18),!(fr(t)||!fr(t)&&t.c.i.c==t.d.i.c)&&(r=u(v(t,(cn(),O3)),17).a,r>f&&(f=r,a.c.length=0),r==f&&nn(a,new bi(t.d.i,t)));Ln(),Yt(a,n.c),bb(n.f,h.p,a)}}function XPe(n,e){var t,i,r,c,s,f,h,l;if(l=un(v(e,(lc(),Ore))),l==null||(Jn(l),l)){for(mMe(n,e),r=new Z,h=ge(e.b,0);h.b!=h.d.c;)s=u(be(h),40),t=vnn(n,s,null),t&&(Ur(t,e),Fn(r.c,t));if(n.a=null,n.b=null,r.c.length>1)for(i=new M(r);i.a<i.c.c.length;)for(t=u(E(i),121),c=0,f=ge(t.b,0);f.b!=f.d.c;)s=u(be(f),40),s.g=c++;return r}return Af(S(C(TDe,1),jXn,121,0,[e]))}function VPe(n){var e,t,i,r,c,s,f,h;for(h=new Tu,e=ge(n,0),f=null,t=u(be(e),8),r=u(be(e),8);e.b!=e.d.c;)f=t,t=r,r=u(be(e),8),c=E$n(mi(new V(f.a,f.b),t)),s=E$n(mi(new V(r.a,r.b),t)),i=10,i=y.Math.min(i,y.Math.abs(c.a+c.b)/2),i=y.Math.min(i,y.Math.abs(s.a+s.b)/2),c.a=K7(c.a)*i,c.b=K7(c.b)*i,s.a=K7(s.a)*i,s.b=K7(s.b)*i,Re(h,tt(c,t)),Re(h,tt(s,t));return h}function WPe(n,e,t){var i,r,c,s,f,h;if(t.Ug("Minimize Crossings "+n.a,1),i=e.b.c.length==0||!s4(ut(new Cn(null,new On(e.b,16)),new Z3(new Jpn))).Bd((Va(),v3)),h=e.b.c.length==1&&u(sn(e.b,0),30).a.c.length==1,c=x(v(e,(cn(),Kw)))===x((jl(),T1)),i||h&&!c){t.Vg();return}r=KCe(n,e),s=(f=u(Zo(r,0),219),f.c.kg()?f.c.eg()?new _7n(n):new H7n(n):new F7n(n)),C6e(r,s),r5e(n),t.Vg()}function Po(n,e,t,i){var r,c,s,f,h;return s=n.Ph(),h=n.Jh(),r=null,h?e&&!(SR(n,e,t).Bb&hr)?(i=cr(h.El(),n,i),n.di(null),r=e.Qh()):h=null:(s&&(h=s.Qh()),e&&(r=e.Qh())),h!=r&&h&&h.Il(n),f=n.Fh(),n.Bh(e,t),h!=r&&r&&r.Hl(n),n.vh()&&n.wh()&&(s&&f>=0&&f!=t&&(c=new Mi(n,1,f,s,null),i?i.nj(c):i=c),t>=0&&(c=new Mi(n,1,t,f==t?s:null,e),i?i.nj(c):i=c)),i}function gUn(n){var e,t,i;if(n.b==null){if(i=new Hl,n.i!=null&&(Er(i,n.i),i.a+=":"),n.f&256){for(n.f&256&&n.a!=null&&(lge(n.i)||(i.a+="//"),Er(i,n.a)),n.d!=null&&(i.a+="/",Er(i,n.d)),n.f&16&&(i.a+="/"),e=0,t=n.j.length;e<t;e++)e!=0&&(i.a+="/"),Er(i,n.j[e]);n.g!=null&&(i.a+="?",Er(i,n.g))}else Er(i,n.a);n.e!=null&&(i.a+="#",Er(i,n.e)),n.b=i.a}return n.b}function JPe(n,e){var t,i,r,c,s,f;for(r=new M(e.a);r.a<r.c.c.length;)i=u(E(r),10),c=v(i,(W(),st)),L(c,12)&&(s=u(c,12),f=DUn(e,i,s.o.a,s.o.b),s.n.a=f.a,s.n.b=f.b,gi(s,u(v(i,gc),64)));t=new V(e.f.a+e.d.b+e.d.c,e.f.b+e.d.d+e.d.a),u(v(e,(W(),Hc)),21).Hc((pr(),cs))?(U(n,(cn(),Ft),(Ai(),qc)),u(v(Hi(n),Hc),21).Fc(yv),jGn(n,t,!1)):jGn(n,t,!0)}function QPe(n,e,t,i,r){var c,s,f,h;c=new Cl(n),Ha(c,(Vn(),_c)),U(c,(cn(),Ft),(Ai(),qc)),U(c,(W(),st),e.c.i),s=new Ic,U(s,st,e.c),gi(s,r),ic(s,c),U(e.c,Xu,c),f=new Cl(n),Ha(f,_c),U(f,Ft,qc),U(f,st,e.d.i),h=new Ic,U(h,st,e.d),gi(h,r),ic(h,f),U(e.d,Xu,f),Zi(e,s),Oi(e,h),z0(0,t.c.length),d6(t.c,0,c),Fn(i.c,f),U(c,iO,Y(1)),U(f,iO,Y(1))}function YPe(n,e,t,i){var r,c,s,f,h;if(h=Se(er(Uh,xh(Se(er(e==null?0:mt(e),Gh)),15))),r=Se(er(Uh,xh(Se(er(t==null?0:mt(t),Gh)),15))),f=o5(n,e,h),s=u5(n,t,r),f&&r==f.a&&sh(t,f.g))return t;if(s&&!i)throw T(new Gn("key already present: "+t));return f&&zg(n,f),s&&zg(n,s),c=new kT(t,r,e,h),ny(n,c,s),s&&(s.e=null,s.c=null),f&&(f.e=null,f.c=null),aFn(n),f?f.g:null}function pUn(n,e,t){var i,r,c,s,f;for(c=0;c<e;c++){for(i=0,f=c+1;f<e;f++)i=nr(nr(er(vi(n[c],mr),vi(n[f],mr)),vi(t[c+f],mr)),vi(Se(i),mr)),t[c+f]=Se(i),i=U1(i,32);t[c+e]=Se(i)}for(hve(t,t,e<<1),i=0,r=0,s=0;r<e;++r,s++)i=nr(nr(er(vi(n[r],mr),vi(n[r],mr)),vi(t[s],mr)),vi(Se(i),mr)),t[s]=Se(i),i=U1(i,32),++s,i=nr(i,vi(t[s],mr)),t[s]=Se(i),i=U1(i,32);return t}function mUn(n,e,t){var i,r,c,s,f,h,l,a;if(!D4(e)){for(h=$(B(rw(t.c,(cn(),X8)))),l=u(rw(t.c,Sj),140),!l&&(l=new Qv),i=t.a,r=null,f=e.Kc();f.Ob();)s=u(f.Pb(),12),a=0,r?(a=h,a+=r.o.b):a=l.d,c=hb(i7(new za,s),n.f),Ve(n.k,s,c),qs(Ns(Ls(As(Ds(new hs,0),wi(y.Math.ceil(a))),i),c)),r=s,i=c;qs(Ns(Ls(As(Ds(new hs,0),wi(y.Math.ceil(l.a+r.o.b))),i),t.d))}}function ZPe(n,e,t,i,r,c,s,f){var h,l,a,d,g,p;return p=!1,g=c-t.s,a=t.t-e.f+(l=G5(t,g,!1),l.a),i.g+f>g?!1:(d=(h=G5(i,g,!1),h.a),a+f+d<=e.b&&(uk(t,c-t.s),t.c=!0,uk(i,c-t.s),Hk(i,t.s,t.t+t.d+f),i.k=!0,FQ(t.q,i),p=!0,r&&(wC(e,i),i.j=e,n.c.length>s&&(Gk((Nn(s,n.c.length),u(n.c[s],186)),i),(Nn(s,n.c.length),u(n.c[s],186)).a.c.length==0&&Yl(n,s)))),p)}function nIe(n,e){var t,i,r,c,s,f;if(e.Ug("Partition midprocessing",1),r=new Mb,qt(ut(new Cn(null,new On(n.a,16)),new qgn),new h7n(r)),r.d!=0){for(f=u(Wr(sJ((c=r.i,new Cn(null,(c||(r.i=new Tg(r,r.c))).Nc()))),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[(Gu(),Yr)]))),15),i=f.Kc(),t=u(i.Pb(),17);i.Ob();)s=u(i.Pb(),17),zTe(u(ot(r,t),21),u(ot(r,s),21)),t=s;e.Vg()}}function vUn(n,e,t){var i,r,c,s,f,h,l,a;if(e.p==0){for(e.p=1,s=t,s||(r=new Z,c=(i=u(of(lr),9),new _o(i,u(xs(i,i.length),9),0)),s=new bi(r,c)),u(s.a,15).Fc(e),e.k==(Vn(),Zt)&&u(s.b,21).Fc(u(v(e,(W(),gc)),64)),h=new M(e.j);h.a<h.c.c.length;)for(f=u(E(h),12),a=$h(Eo(S(C(Ao,1),Kn,20,0,[new e4(f),new ip(f)])));pe(a);)l=u(fe(a),12),vUn(n,l.i,s);return s}return null}function _5(n,e){var t,i,r,c,s;if(n.Ab){if(n.Ab){if(s=n.Ab.i,s>0){if(r=u(n.Ab.g,2033),e==null){for(c=0;c<s;++c)if(t=r[c],t.d==null)return t}else for(c=0;c<s;++c)if(t=r[c],Sn(e,t.d))return t}}else if(e==null){for(i=new ne(n.Ab);i.e!=i.i.gc();)if(t=u(ue(i),598),t.d==null)return t}else for(i=new ne(n.Ab);i.e!=i.i.gc();)if(t=u(ue(i),598),Sn(e,t.d))return t}return null}function eIe(n,e,t,i,r){var c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D;p=d3e(n,zQ(e),r),OQ(p,bl(r,Eh)),Wt=null,m=r,k=Y6(m,mWn),j=new Fkn(p),lje(j.a,k),P=Y6(m,"endPoint"),O=new Ukn(p),hje(O.a,P),A=Sb(m,BP),D=new Xkn(p),Yke(D.a,A),d=bl(r,Icn),c=new vTn(n,p),Rae(c.a,c.b,d),g=bl(r,Pcn),s=new kTn(n,p),Kae(s.a,s.b,g),l=Sb(r,Acn),f=new yTn(t,p),D7e(f.b,f.a,l),a=Sb(r,Ocn),h=new jTn(i,p),$7e(h.b,h.a,a)}function Nen(n,e,t){var i,r,c,s,f;switch(f=null,e.g){case 1:for(r=new M(n.j);r.a<r.c.c.length;)if(i=u(E(r),12),on(un(v(i,(W(),lH)))))return i;f=new Ic,U(f,(W(),lH),(_n(),!0));break;case 2:for(s=new M(n.j);s.a<s.c.c.length;)if(c=u(E(s),12),on(un(v(c,(W(),dH)))))return c;f=new Ic,U(f,(W(),dH),(_n(),!0))}return f&&(ic(f,n),gi(f,t),R9e(f.n,n.o,t)),f}function kUn(n,e){var t,i,r,c,s,f;for(f=-1,s=new Mt,i=new Lf(n.b);tc(i.a)||tc(i.b);){for(t=u(tc(i.a)?E(i.a):E(i.b),18),f=y.Math.max(f,$(B(v(t,(cn(),m1))))),t.c==n?qt(ut(new Cn(null,new On(t.b,16)),new Bwn),new J9n(s)):qt(ut(new Cn(null,new On(t.b,16)),new Fwn),new Q9n(s)),c=ge(s,0);c.b!=c.d.c;)r=u(be(c),72),kt(r,(W(),T3))||U(r,T3,t);hi(e,s),vo(s)}return f}function qb(n,e,t,i,r){var c,s,f,h,l;f=r?i.b:i.a,!sf(n.a,i)&&(l=f>t.s&&f<t.c,h=!1,t.e.b!=0&&t.j.b!=0&&(h=h|(y.Math.abs(f-$(B(p4(t.e))))<vh&&y.Math.abs(f-$(B(p4(t.j))))<vh),h=h|(y.Math.abs(f-$(B($s(t.e))))<vh&&y.Math.abs(f-$(B($s(t.j))))<vh)),(l||h)&&(s=u(v(e,(cn(),Rr)),75),s||(s=new Tu,U(e,Rr,s)),c=new rr(i),xt(s,c,s.c.b,s.c),fi(n.a,c)))}function tIe(n,e,t,i){var r,c,s,f,h,l,a;if(tMe(n,e,t,i))return!0;for(s=new M(e.f);s.a<s.c.c.length;){switch(c=u(E(s),334),f=!1,h=n.j-e.j+t,l=h+e.o,a=n.k-e.k+i,r=a+e.p,c.a.g){case 0:f=X$(n,h+c.b.a,0,h+c.c.a,a-1);break;case 1:f=X$(n,l,a+c.b.a,n.o-1,a+c.c.a);break;case 2:f=X$(n,h+c.b.a,r,h+c.c.a,n.p-1);break;default:f=X$(n,0,a+c.b.a,h-1,a+c.c.a)}if(f)return!0}return!1}function iIe(n,e,t){var i,r,c,s,f,h,l,a,d;for(t.Ug("Processor set coordinates",1),n.a=e.b.b==0?1:e.b.b,l=null,i=ge(e.b,0);!l&&i.b!=i.d.c;)d=u(be(i),40),on(un(v(d,(pt(),Ta))))&&(l=d,h=d.e,h.a=u(v(d,$j),17).a,h.b=u(v(d,xj),17).a);f=R$(l),a=1;do f=cje((r=f,t.eh(a),r)),a=f.b/n.a|0;while(f.b!=0);for(s=ge(e.b,0);s.b!=s.d.c;)c=u(be(s),40),mi(c.e,new V(c.f.a/2,c.f.b/2));t.Vg()}function rIe(n,e,t){var i,r,c,s,f,h,l,a;for(t.Ug(aVn,1),Hu(n.b),Hu(n.a),f=null,c=ge(e.b,0);!f&&c.b!=c.d.c;)l=u(be(c),40),on(un(v(l,(pt(),Ta))))&&(f=l);for(h=new Mt,xt(h,f,h.c.b,h.c),JGn(n,h),a=ge(e.b,0);a.b!=a.d.c;)l=u(be(a),40),s=Ae(v(l,(pt(),c9))),r=Dc(n.b,s)!=null?u(Dc(n.b,s),17).a:0,U(l,tq,Y(r)),i=1+(Dc(n.a,s)!=null?u(Dc(n.a,s),17).a:0),U(l,mln,Y(i));t.Vg()}function yUn(n){rb(n,new gd(eb(Yd(nb(Zd(new Fa,Zb),"ELK Box"),"Algorithm for packing of unconnected boxes, i.e. graphs without edges."),new zmn))),Q(n,Zb,Wb,ban),Q(n,Zb,yw,15),Q(n,Zb,Dy,Y(0)),Q(n,Zb,bcn,rn(lan)),Q(n,Zb,r2,rn(Eue)),Q(n,Zb,a3,rn(Mue)),Q(n,Zb,l3,$Vn),Q(n,Zb,i8,rn(aan)),Q(n,Zb,d3,rn(dan)),Q(n,Zb,wcn,rn(Vq)),Q(n,Zb,TP,rn(jue))}function jUn(n,e){var t,i,r,c,s,f,h,l,a;if(r=n.i,s=r.o.a,c=r.o.b,s<=0&&c<=0)return en(),sc;switch(l=n.n.a,a=n.n.b,f=n.o.a,t=n.o.b,e.g){case 2:case 1:if(l<0)return en(),Wn;if(l+f>s)return en(),Zn;break;case 4:case 3:if(a<0)return en(),Xn;if(a+t>c)return en(),ae}return h=(l+f/2)/s,i=(a+t/2)/c,h+i<=1&&h-i<=0?(en(),Wn):h+i>=1&&h-i>=0?(en(),Zn):i<.5?(en(),Xn):(en(),ae)}function cIe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k;for(t=!1,a=$(B(v(e,(cn(),g0)))),m=fa*a,r=new M(e.b);r.a<r.c.c.length;)for(i=u(E(r),30),l=new M(i.a),c=u(E(l),10),d=kW(n.a[c.p]);l.a<l.c.c.length;)f=u(E(l),10),g=kW(n.a[f.p]),d!=g&&(p=jg(n.b,c,f),s=c.n.b+c.o.b+c.d.a+d.a+p,h=f.n.b-f.d.d+g.a,s>h+m&&(k=d.g+g.g,g.a=(g.g*g.a+d.g*d.a)/k,g.g=k,d.f=g,t=!0)),c=f,d=g;return t}function EUn(n,e,t,i,r,c,s){var f,h,l,a,d,g;for(g=new mp,l=e.Kc();l.Ob();)for(f=u(l.Pb(),853),d=new M(f.Rf());d.a<d.c.c.length;)a=u(E(d),187),x(a.of((He(),Zq)))===x(($f(),Kv))&&(eUn(g,a,!1,i,r,c,s),L5(n,g));for(h=t.Kc();h.Ob();)for(f=u(h.Pb(),853),d=new M(f.Rf());d.a<d.c.c.length;)a=u(E(d),187),x(a.of((He(),Zq)))===x(($f(),Jw))&&(eUn(g,a,!0,i,r,c,s),L5(n,g))}function uIe(n,e,t){var i,r,c,s,f,h,l;for(s=new ne((!n.a&&(n.a=new q(Ye,n,10,11)),n.a));s.e!=s.i.gc();)for(c=u(ue(s),27),r=new ie(ce(Sl(c).a.Kc(),new En));pe(r);)i=u(fe(r),74),!D5(i)&&!D5(i)&&!_b(i)&&(h=u(Fr(wr(t.f,c)),40),l=u(ee(t,Gr(u(N((!i.c&&(i.c=new Dn(he,i,5,8)),i.c),0),84))),40),h&&l&&(f=new WW(h,l),U(f,(pt(),u9),i),Ur(f,i),Re(h.d,f),Re(l.b,f),Re(e.a,f)))}function oIe(n,e){var t,i,r,c,s,f,h,l;for(h=u(u(ot(n.r,e),21),87).Kc();h.Ob();)f=u(h.Pb(),117),r=f.c?qPn(f.c):0,r>0?f.a?(l=f.b.Mf().b,r>l&&(n.v||f.c.d.c.length==1?(s=(r-l)/2,f.d.d=s,f.d.a=s):(t=u(sn(f.c.d,0),187).Mf().b,i=(t-l)/2,f.d.d=y.Math.max(0,i),f.d.a=r-i-l))):f.d.a=n.t+r:F6(n.u)&&(c=enn(f.b),c.d<0&&(f.d.d=-c.d),c.d+c.a>f.b.Mf().b&&(f.d.a=c.d+c.a-f.b.Mf().b))}function Us(){Us=R,k3=new Di((He(),Jj),Y(1)),yI=new Di(qd,80),tZn=new Di(Uan,5),zYn=new Di(x2,Gm),nZn=new Di(sU,Y(1)),eZn=new Di(fU,(_n(),!0)),mon=new fb(50),YYn=new Di(M1,mon),won=Vj,von=v9,XYn=new Di(Yq,!1),pon=Wj,JYn=Vw,QYn=Ca,WYn=Hd,VYn=F2,ZYn=Ww,gon=(lnn(),BYn),k_=qYn,kI=KYn,v_=FYn,kon=HYn,cZn=k9,uZn=cA,rZn=Qj,iZn=rA,yon=(Gp(),Yw),new Di(x3,yon)}function sIe(n,e){var t;switch(bk(n)){case 6:return Si(e);case 7:return $0(e);case 8:return D0(e);case 3:return Array.isArray(e)&&(t=bk(e),!(t>=14&&t<=16));case 11:return e!=null&&typeof e===eK;case 12:return e!=null&&(typeof e===vy||typeof e==eK);case 0:return Cx(e,n.__elementTypeId$);case 2:return uD(e)&&e.Tm!==Q2;case 1:return uD(e)&&e.Tm!==Q2||Cx(e,n.__elementTypeId$);default:return!0}}function MUn(n,e){var t,i,r,c;return i=y.Math.min(y.Math.abs(n.c-(e.c+e.b)),y.Math.abs(n.c+n.b-e.c)),c=y.Math.min(y.Math.abs(n.d-(e.d+e.a)),y.Math.abs(n.d+n.a-e.d)),t=y.Math.abs(n.c+n.b/2-(e.c+e.b/2)),t>n.b/2+e.b/2||(r=y.Math.abs(n.d+n.a/2-(e.d+e.a/2)),r>n.a/2+e.a/2)?1:t==0&&r==0?0:t==0?c/r+1:r==0?i/t+1:y.Math.min(i/t,c/r)+1}function fIe(n,e){var t,i,r,c,s,f,h;for(c=0,f=0,h=0,r=new M(n.f.e);r.a<r.c.c.length;)i=u(E(r),153),e!=i&&(s=n.i[e.a][i.a],c+=s,t=J1(e.d,i.d),t>0&&n.d!=(t5(),E_)&&(f+=s*(i.d.a+n.a[e.a][i.a]*(e.d.a-i.d.a)/t)),t>0&&n.d!=(t5(),y_)&&(h+=s*(i.d.b+n.a[e.a][i.a]*(e.d.b-i.d.b)/t)));switch(n.d.g){case 1:return new V(f/c,e.d.b);case 2:return new V(e.d.a,h/c);default:return new V(f/c,h/c)}}function TUn(n){var e,t,i,r,c,s;for(t=(!n.a&&(n.a=new ti(xo,n,5)),n.a).i+2,s=new Gc(t),nn(s,new V(n.j,n.k)),qt(new Cn(null,(!n.a&&(n.a=new ti(xo,n,5)),new On(n.a,16))),new xkn(s)),nn(s,new V(n.b,n.c)),e=1;e<s.c.length-1;)i=(Nn(e-1,s.c.length),u(s.c[e-1],8)),r=(Nn(e,s.c.length),u(s.c[e],8)),c=(Nn(e+1,s.c.length),u(s.c[e+1],8)),i.a==r.a&&r.a==c.a||i.b==r.b&&r.b==c.b?Yl(s,e):++e;return s}function CUn(n,e){cm();var t,i,r,c,s;if(s=u(v(n.i,(cn(),Ft)),101),c=n.j.g-e.j.g,c!=0||!(s==(Ai(),Ud)||s==tl||s==qc))return 0;if(s==(Ai(),Ud)&&(t=u(v(n,v1),17),i=u(v(e,v1),17),t&&i&&(r=t.a-i.a,r!=0)))return r;switch(n.j.g){case 1:return bt(n.n.a,e.n.a);case 2:return bt(n.n.b,e.n.b);case 3:return bt(e.n.a,n.n.a);case 4:return bt(e.n.b,n.n.b);default:throw T(new Ar(tin))}}function SUn(n,e){var t,i,r,c,s,f,h;for(t=eSn(sMn(uMn(oMn(new VG,e),new IT(e.e)),ZZn),n.a),e.j.c.length==0||$Dn(u(sn(e.j,0),60).a,t),h=new rL,Ve(n.e,t,h),s=new ni,f=new ni,c=new M(e.k);c.a<c.c.c.length;)r=u(E(c),18),fi(s,r.c),fi(f,r.d);i=s.a.gc()-f.a.gc(),i<0?(Ck(h,!0,(ci(),Kr)),Ck(h,!1,Xr)):i>0&&(Ck(h,!1,(ci(),Kr)),Ck(h,!0,Xr)),nu(e.g,new BMn(n,t)),Ve(n.g,e,t)}function PUn(){PUn=R;var n;for(vun=S(C(ye,1),_e,28,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]),WF=F(ye,_e,28,37,15,1),gQn=S(C(ye,1),_e,28,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]),kun=F(Ra,PK,28,37,14,1),n=2;n<=36;n++)WF[n]=wi(y.Math.pow(n,vun[n])),kun[n]=Xk(Ey,WF[n])}function hIe(n){var e;if((!n.a&&(n.a=new q(Tt,n,6,6)),n.a).i!=1)throw T(new Gn(tWn+(!n.a&&(n.a=new q(Tt,n,6,6)),n.a).i));return e=new Tu,Mk(u(N((!n.b&&(n.b=new Dn(he,n,4,7)),n.b),0),84))&&Ki(e,gzn(n,Mk(u(N((!n.b&&(n.b=new Dn(he,n,4,7)),n.b),0),84)),!1)),Mk(u(N((!n.c&&(n.c=new Dn(he,n,5,8)),n.c),0),84))&&Ki(e,gzn(n,Mk(u(N((!n.c&&(n.c=new Dn(he,n,5,8)),n.c),0),84)),!0)),e}function IUn(n,e){var t,i,r,c,s;for(e.d?r=n.a.c==(fh(),m0)?ji(e.b):Qt(e.b):r=n.a.c==(fh(),y1)?ji(e.b):Qt(e.b),c=!1,i=new ie(ce(r.a.Kc(),new En));pe(i);)if(t=u(fe(i),18),s=on(n.a.f[n.a.g[e.b.p].p]),!(!s&&!fr(t)&&t.c.i.c==t.d.i.c)&&!(on(n.a.n[n.a.g[e.b.p].p])||on(n.a.n[n.a.g[e.b.p].p]))&&(c=!0,sf(n.b,n.a.g[h7e(t,e.b).p])))return e.c=!0,e.a=t,e;return e.c=c,e.a=null,e}function Den(n,e,t){var i,r,c,s,f,h,l;if(i=t.gc(),i==0)return!1;if(n.Pj())if(h=n.Qj(),qY(n,e,t),s=i==1?n.Ij(3,null,t.Kc().Pb(),e,h):n.Ij(5,null,t,e,h),n.Mj()){for(f=i<100?null:new R1(i),c=e+i,r=e;r<c;++r)l=n.xj(r),f=n.Nj(l,f),f=f;f?(f.nj(s),f.oj()):n.Jj(s)}else n.Jj(s);else if(qY(n,e,t),n.Mj()){for(f=i<100?null:new R1(i),c=e+i,r=e;r<c;++r)f=n.Nj(n.xj(r),f);f&&f.oj()}return!0}function OUn(n,e,t){var i,r,c,s,f;return n.Pj()?(r=null,c=n.Qj(),i=n.Ij(1,f=(s=n.Dj(e,n.Zi(e,t)),s),t,e,c),n.Mj()&&!(n.Yi()&&f?rt(f,t):x(f)===x(t))&&(f&&(r=n.Oj(f,r)),r=n.Nj(t,r)),r?(r.nj(i),r.oj()):n.Jj(i),f):(f=(s=n.Dj(e,n.Zi(e,t)),s),n.Mj()&&!(n.Yi()&&f?rt(f,t):x(f)===x(t))&&(r=null,f&&(r=n.Oj(f,null)),r=n.Nj(t,r),r&&r.oj()),f)}function $en(n,e){var t,i,r,c,s,f,h,l,a;if(n.e=e,n.f=u(v(e,(Q1(),jI)),234),Rye(e),n.d=y.Math.max(e.e.c.length*16+e.c.c.length,256),!on(un(v(e,(Us(),won)))))for(a=n.e.e.c.length,h=new M(e.e);h.a<h.c.c.length;)f=u(E(h),153),l=f.d,l.a=hW(n.f)*a,l.b=hW(n.f)*a;for(t=e.b,c=new M(e.c);c.a<c.c.c.length;)if(r=u(E(c),290),i=u(v(r,kon),17).a,i>0){for(s=0;s<i;s++)nn(t,new UIn(r));W_n(r)}}function AUn(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m;if(g=new q0(n.Zg()),bf(e,Qe,g),t&&!n.Xg().a.dc())for(a=new _a,bf(e,"logs",a),f=0,m=new J3(n.Xg().b.Kc());m.b.Ob();)p=Ae(m.b.Pb()),d=new q0(p),J0(a,f),qD(a,f,d),++f;if(i&&(l=new SE(n.Wg()),bf(e,"executionTime",l)),!n.Yg().a.dc())for(s=new _a,bf(e,gF,s),f=0,c=new J3(n.Yg().b.Kc());c.b.Ob();)r=u(c.b.Pb(),871),h=new sp,J0(s,f),qD(s,f,h),AUn(r,h,t,i),++f}function xen(){xen=R,AL(),Ise=new P5n,S(C(B3,2),J,381,0,[S(C(B3,1),iI,600,0,[new Y9(xJn)])]),S(C(B3,2),J,381,0,[S(C(B3,1),iI,600,0,[new Y9(Ycn)])]),S(C(B3,2),J,381,0,[S(C(B3,1),iI,600,0,[new Y9(RJn)]),S(C(B3,1),iI,600,0,[new Y9(Ycn)])]),new H1("-1"),S(C(B3,2),J,381,0,[S(C(B3,1),iI,600,0,[new Y9("\\c+")])]),new H1("0"),new H1("0"),new H1("1"),new H1("0"),new H1(qJn)}function lIe(n,e){var t,i,r,c,s,f,h,l,a,d;for(e.Ug("Hypernodes processing",1),r=new M(n.b);r.a<r.c.c.length;)for(i=u(E(r),30),f=new M(i.a);f.a<f.c.c.length;)if(s=u(E(f),10),on(un(v(s,(cn(),wO))))&&s.j.c.length<=2){for(d=0,a=0,t=0,c=0,l=new M(s.j);l.a<l.c.c.length;)switch(h=u(E(l),12),h.j.g){case 1:++d;break;case 2:++a;break;case 3:++t;break;case 4:++c}d==0&&t==0&&wNe(n,s,c<=a)}e.Vg()}function aIe(n,e,t,i,r){var c,s,f,h,l,a,d;for(s=new M(e);s.a<s.c.c.length;){if(c=u(E(s),18),h=c.c,t.a._b(h))l=(Tb(),Ma);else if(i.a._b(h))l=(Tb(),O2);else throw T(new Gn("Source port must be in one of the port sets."));if(a=c.d,t.a._b(a))d=(Tb(),Ma);else if(i.a._b(a))d=(Tb(),O2);else throw T(new Gn("Target port must be in one of the port sets."));f=new S_n(c,l,d),Ve(n.b,c,f),Fn(r.c,f)}}function KS(n){var e,t;return n.c&&n.c.Vh()&&(t=u(n.c,54),n.c=u(ea(n,t),142),n.c!=t&&(n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,9,2,t,n.c)),L(n.Cb,411)?n.Db>>16==-15&&n.Cb.Yh()&&h$(new c$(n.Cb,9,13,t,n.c,f1(no(u(n.Cb,62)),n))):L(n.Cb,90)&&n.Db>>16==-23&&n.Cb.Yh()&&(e=n.c,L(e,90)||(e=(An(),Os)),L(t,90)||(t=(An(),Os)),h$(new c$(n.Cb,9,10,t,e,f1(Pc(u(n.Cb,29)),n)))))),n.c}function dIe(n,e,t){var i,r,c,s,f,h,l,a,d;for(t.Ug("Hyperedge merging",1),RMe(n,e),h=new xi(e.b,0);h.b<h.d.gc();)if(f=(oe(h.b<h.d.gc()),u(h.d.Xb(h.c=h.b++),30)),a=f.a,a.c.length!=0)for(i=null,r=null,c=null,s=null,l=0;l<a.c.length;l++)i=(Nn(l,a.c.length),u(a.c[l],10)),r=i.k,r==(Vn(),Ti)&&s==Ti&&(d=sOe(i,c),d.a&&(sSe(i,c,d.b,d.c),Nn(l,a.c.length),Pz(a.c,l,1),--l,i=c,r=s)),c=i,s=r;t.Vg()}function LUn(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m;if(e==t)return!0;if(e=qnn(n,e),t=qnn(n,t),i=Nx(e),i){if(a=Nx(t),a!=i)return a?(h=i.mk(),m=a.mk(),h==m&&h!=null):!1;if(s=(!e.d&&(e.d=new ti(jr,e,1)),e.d),c=s.i,g=(!t.d&&(t.d=new ti(jr,t,1)),t.d),c==g.i){for(l=0;l<c;++l)if(r=u(N(s,l),89),d=u(N(g,l),89),!LUn(n,r,d))return!1}return!0}else return f=e.e,p=t.e,f==p}function NUn(n,e,t,i){var r,c,s,f,h,l,a,d;if(Pl(n.e,e)){for(d=ru(n.e.Dh(),e),c=u(n.g,124),a=null,h=-1,f=-1,r=0,l=0;l<n.i;++l)s=c[l],d.am(s.Lk())&&(r==t&&(h=l),r==i&&(f=l,a=s.md()),++r);if(h==-1)throw T(new Or(vF+t+Cd+r));if(f==-1)throw T(new Or(kF+i+Cd+r));return k5(n,h,f),fo(n.e)&&t4(n,V1(n,7,e,Y(i),a,t,!0)),a}else throw T(new Gn("The feature must be many-valued to support move"))}function DUn(n,e,t,i){var r,c,s,f,h;switch(h=new rr(e.n),h.a+=e.o.a/2,h.b+=e.o.b/2,f=$(B(v(e,(cn(),Fw)))),c=n.f,s=n.d,r=n.c,u(v(e,(W(),gc)),64).g){case 1:h.a+=s.b+r.a-t/2,h.b=-i-f,e.n.b=-(s.d+f+r.b);break;case 2:h.a=c.a+s.b+s.c+f,h.b+=s.d+r.b-i/2,e.n.a=c.a+s.c+f-r.a;break;case 3:h.a+=s.b+r.a-t/2,h.b=c.b+s.d+s.a+f,e.n.b=c.b+s.a+f-r.b;break;case 4:h.a=-t-f,h.b+=s.d+r.b-i/2,e.n.a=-(s.b+f+r.a)}return h}function $Un(n){var e,t,i,r,c,s;return i=new jQ,Ur(i,n),x(v(i,(cn(),Lo)))===x((ci(),Jf))&&U(i,Lo,FC(i)),v(i,(JT(),b9))==null&&(s=u(WFn(n),167),U(i,b9,IM(s.of(b9)))),U(i,(W(),st),n),U(i,Hc,(e=u(of(rH),9),new _o(e,u(xs(e,e.length),9),0))),r=aLe((St(n)&&(cb(),new Qd(St(n))),cb(),new TN(St(n)?new Qd(St(n)):null,n)),Xr),c=u(v(i,hhn),107),t=i.d,dAn(t,c),dAn(t,r),i}function bIe(n,e,t){var i,r;i=e.c.i,r=t.d.i,i.k==(Vn(),Ti)?(U(n,(W(),yf),u(v(i,yf),12)),U(n,Es,u(v(i,Es),12)),U(n,$w,un(v(i,$w)))):i.k==Sc?(U(n,(W(),yf),u(v(i,yf),12)),U(n,Es,u(v(i,Es),12)),U(n,$w,(_n(),!0))):r.k==Sc?(U(n,(W(),yf),u(v(r,yf),12)),U(n,Es,u(v(r,Es),12)),U(n,$w,(_n(),!0))):(U(n,(W(),yf),e.c),U(n,Es,t.d))}function wIe(n){var e,t,i,r,c,s,f;for(n.o=new Mg,i=new Mt,s=new M(n.e.a);s.a<s.c.c.length;)c=u(E(s),125),xg(c).c.length==1&&xt(i,c,i.c.b,i.c);for(;i.b!=0;)c=u(i.b==0?null:(oe(i.b!=0),Xo(i,i.a.a)),125),xg(c).c.length!=0&&(e=u(sn(xg(c),0),218),t=c.g.a.c.length>0,f=HC(e,c),XX(t?f.b:f.g,e),xg(f).c.length==1&&xt(i,f,i.c.b,i.c),r=new bi(c,e),W1(n.o,r),du(n.e.a,c))}function xUn(n,e){var t,i,r,c,s,f,h;return i=y.Math.abs(gT(n.b).a-gT(e.b).a),f=y.Math.abs(gT(n.b).b-gT(e.b).b),r=0,h=0,t=1,s=1,i>n.b.b/2+e.b.b/2&&(r=y.Math.min(y.Math.abs(n.b.c-(e.b.c+e.b.b)),y.Math.abs(n.b.c+n.b.b-e.b.c)),t=1-r/i),f>n.b.a/2+e.b.a/2&&(h=y.Math.min(y.Math.abs(n.b.d-(e.b.d+e.b.a)),y.Math.abs(n.b.d+n.b.a-e.b.d)),s=1-h/f),c=y.Math.min(t,s),(1-c)*y.Math.sqrt(i*i+f*f)}function gIe(n){var e,t,i,r;for(JR(n,n.e,n.f,(Tb(),Ma),!0,n.c,n.i),JR(n,n.e,n.f,Ma,!1,n.c,n.i),JR(n,n.e,n.f,O2,!0,n.c,n.i),JR(n,n.e,n.f,O2,!1,n.c,n.i),aIe(n,n.c,n.e,n.f,n.i),i=new xi(n.i,0);i.b<i.d.gc();)for(e=(oe(i.b<i.d.gc()),u(i.d.Xb(i.c=i.b++),131)),r=new xi(n.i,i.b);r.b<r.d.gc();)t=(oe(r.b<r.d.gc()),u(r.d.Xb(r.c=r.b++),131)),tAe(e,t);TNe(n.i,u(v(n.d,(W(),P3)),234)),BAe(n.i)}function AR(n,e){var t,i;if(e!=null){if(i=Fb(n),i)if(i.i&1){if(i==so)return D0(e);if(i==ye)return L(e,17);if(i==cg)return L(e,161);if(i==Ru)return L(e,222);if(i==fs)return L(e,180);if(i==Ii)return $0(e);if(i==V2)return L(e,191);if(i==Ra)return L(e,168)}else return iM(),t=u(ee(yA,i),57),!t||t.fk(e);else if(L(e,58))return n.dl(u(e,58))}return!1}function Ren(){Ren=R;var n,e,t,i,r,c,s,f,h;for(nh=F(Ru,s2,28,255,15,1),A1=F(fs,gh,28,64,15,1),e=0;e<255;e++)nh[e]=-1;for(t=90;t>=65;t--)nh[t]=t-65<<24>>24;for(i=122;i>=97;i--)nh[i]=i-97+26<<24>>24;for(r=57;r>=48;r--)nh[r]=r-48+52<<24>>24;for(nh[43]=62,nh[47]=63,c=0;c<=25;c++)A1[c]=65+c&ui;for(s=26,h=0;s<=51;++s,h++)A1[s]=97+h&ui;for(n=52,f=0;n<=61;++n,f++)A1[n]=48+f&ui;A1[62]=43,A1[63]=47}function RUn(n,e){var t,i,r,c,s,f;return r=$Q(n),f=$Q(e),r==f?n.e==e.e&&n.a<54&&e.a<54?n.f<e.f?-1:n.f>e.f?1:0:(i=n.e-e.e,t=(n.d>0?n.d:y.Math.floor((n.a-1)*Uzn)+1)-(e.d>0?e.d:y.Math.floor((e.a-1)*Uzn)+1),t>i+1?r:t<i-1?-r:(c=(!n.c&&(n.c=J7(vc(n.f))),n.c),s=(!e.c&&(e.c=J7(vc(e.f))),e.c),i<0?c=Og(c,VUn(-i)):i>0&&(s=Og(s,VUn(i))),XKn(c,s))):r<f?-1:1}function pIe(n,e,t){var i,r,c,s,f,h,l,a;for(t.Ug(MXn,1),n.vf(e),c=0;n.xf(c)&&!t.$g();){for(n.wf(),a=$h(Eo(S(C(Ao,1),Kn,20,0,[e.e,e.d,e.b])));pe(a);)for(h=u(fe(a),309),f=$h(Eo(S(C(Ao,1),Kn,20,0,[e.e,e.d,e.b])));pe(f);)s=u(fe(f),309),s!=h&&(r=n.uf(s,h),r&&tt(h.c,r));for(l=$h(Eo(S(C(Ao,1),Kn,20,0,[e.e,e.d,e.b])));pe(l);)h=u(fe(l),309),i=h.c,o_n(i,-n.d,-n.d,n.d,n.d),tt(h.d,i),i.a=0,i.b=0;++c}t.Vg()}function mIe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p;if(n.dc())return new Ni;for(l=0,d=0,r=n.Kc();r.Ob();)i=u(r.Pb(),36),c=i.f,l=y.Math.max(l,c.a),d+=c.a*c.b;for(l=y.Math.max(l,y.Math.sqrt(d)*$(B(v(u(n.Kc().Pb(),36),(cn(),oO))))),g=0,p=0,h=0,t=e,f=n.Kc();f.Ob();)s=u(f.Pb(),36),a=s.f,g+a.a>l&&(g=0,p+=h+e,h=0),Pm(s,g,p),t=y.Math.max(t,g+a.a),h=y.Math.max(h,a.b),g+=a.a+e;return new V(t+e,p+h+e)}function Ken(n,e){var t,i,r,c,s,f,h;if(!Pf(n))throw T(new Ar(eWn));if(i=Pf(n),c=i.g,r=i.f,c<=0&&r<=0)return en(),sc;switch(f=n.i,h=n.j,e.g){case 2:case 1:if(f<0)return en(),Wn;if(f+n.g>c)return en(),Zn;break;case 4:case 3:if(h<0)return en(),Xn;if(h+n.f>r)return en(),ae}return s=(f+n.g/2)/c,t=(h+n.f/2)/r,s+t<=1&&s-t<=0?(en(),Wn):s+t>=1&&s-t>=0?(en(),Zn):t<.5?(en(),Xn):(en(),ae)}function vIe(n,e,t,i,r){var c,s;if(c=nr(vi(e[0],mr),vi(i[0],mr)),n[0]=Se(c),c=wb(c,32),t>=r){for(s=1;s<r;s++)c=nr(c,nr(vi(e[s],mr),vi(i[s],mr))),n[s]=Se(c),c=wb(c,32);for(;s<t;s++)c=nr(c,vi(e[s],mr)),n[s]=Se(c),c=wb(c,32)}else{for(s=1;s<t;s++)c=nr(c,nr(vi(e[s],mr),vi(i[s],mr))),n[s]=Se(c),c=wb(c,32);for(;s<r;s++)c=nr(c,vi(i[s],mr)),n[s]=Se(c),c=wb(c,32)}Ec(c,0)!=0&&(n[s]=Se(c))}function bw(n){nt();var e,t,i,r,c,s;if(n.e!=4&&n.e!=5)throw T(new Gn("Token#complementRanges(): must be RANGE: "+n.e));for(c=n,Gg(c),z5(c),i=c.b.length+2,c.b[0]==0&&(i-=2),t=c.b[c.b.length-1],t==cv&&(i-=2),r=new yo(4),r.b=F(ye,_e,28,i,15,1),s=0,c.b[0]>0&&(r.b[s++]=0,r.b[s++]=c.b[0]-1),e=1;e<c.b.length-2;e+=2)r.b[s++]=c.b[e]+1,r.b[s++]=c.b[e+1]-1;return t!=cv&&(r.b[s++]=t+1,r.b[s]=cv),r.a=!0,r}function kIe(n,e){var t,i,r,c,s,f,h,l,a;for(e.Ug("Layer constraint edge reversal",1),s=new M(n.b);s.a<s.c.c.length;){for(c=u(E(s),30),a=-1,t=new Z,l=Y7(c.a),r=0;r<l.length;r++)i=u(v(l[r],(W(),Ad)),311),a==-1?i!=(vl(),k2)&&(a=r):i==(vl(),k2)&&($i(l[r],null),uw(l[r],a++,c)),i==(vl(),E3)&&Fn(t.c,l[r]);for(h=new M(t);h.a<h.c.c.length;)f=u(E(h),10),$i(f,null),$i(f,c)}e.Vg()}function LR(n,e,t){var i,r,c,s,f,h,l,a;if(i=t.gc(),i==0)return!1;if(n.Pj())if(l=n.Qj(),Zx(n,e,t),s=i==1?n.Ij(3,null,t.Kc().Pb(),e,l):n.Ij(5,null,t,e,l),n.Mj()){for(f=i<100?null:new R1(i),c=e+i,r=e;r<c;++r)a=n.g[r],f=n.Nj(a,f),f=n.Uj(a,f);f?(f.nj(s),f.oj()):n.Jj(s)}else n.Jj(s);else if(Zx(n,e,t),n.Mj()){for(f=i<100?null:new R1(i),c=e+i,r=e;r<c;++r)h=n.g[r],f=n.Nj(h,f);f&&f.oj()}return!0}function yIe(n,e){var t,i,r,c,s,f,h,l,a;for(e.Ug("Hierarchical port dummy size processing",1),h=new Z,a=new Z,i=$(B(v(n,(cn(),T2)))),t=i*2,c=new M(n.b);c.a<c.c.c.length;){for(r=u(E(c),30),h.c.length=0,a.c.length=0,f=new M(r.a);f.a<f.c.c.length;)s=u(E(f),10),s.k==(Vn(),Zt)&&(l=u(v(s,(W(),gc)),64),l==(en(),Xn)?Fn(h.c,s):l==ae&&Fn(a.c,s));gHn(h,!0,t),gHn(a,!1,t)}e.Vg()}function Ben(n,e,t,i){var r,c,s,f,h;for(s=new M(n.k);s.a<s.c.c.length;)r=u(E(s),132),(!i||r.c==(af(),Ea))&&(h=r.b,h.g<0&&r.d>0&&(JA(h,h.d-r.d),r.c==(af(),Ea)&&ife(h,h.a-r.d),h.d<=0&&h.i>0&&xt(e,h,e.c.b,e.c)));for(c=new M(n.f);c.a<c.c.c.length;)r=u(E(c),132),(!i||r.c==(af(),Ea))&&(f=r.a,f.g<0&&r.d>0&&(PE(f,f.i-r.d),r.c==(af(),Ea)&&rfe(f,f.b-r.d),f.i<=0&&f.d>0&&xt(t,f,t.c.b,t.c)))}function jIe(n,e,t,i,r){var c,s,f,h,l,a,d,g,p;for(Ln(),Yt(n,new Jmn),s=$7(n),p=new Z,g=new Z,f=null,h=0;s.b!=0;)c=u(s.b==0?null:(oe(s.b!=0),Xo(s,s.a.a)),163),!f||Pu(f)*ao(f)/2<Pu(c)*ao(c)?(f=c,Fn(p.c,c)):(h+=Pu(c)*ao(c),Fn(g.c,c),g.c.length>1&&(h>Pu(f)*ao(f)/2||s.b==0)&&(d=new hC(g),a=Pu(f)/ao(f),l=QR(d,e,new up,t,i,r,a),tt(ff(d.e),l),f=d,Fn(p.c,d),h=0,g.c.length=0));return hi(p,g),p}function Oc(n,e,t,i,r){fl();var c,s,f,h,l,a,d;if(PW(n,"src"),PW(t,"dest"),d=wo(n),h=wo(t),XV((d.i&4)!=0,"srcType is not an array"),XV((h.i&4)!=0,"destType is not an array"),a=d.c,s=h.c,XV(a.i&1?a==s:(s.i&1)==0,"Array types don't match"),s6e(n,e,t,i,r),!(a.i&1)&&d!=h)if(l=cd(n),c=cd(t),x(n)===x(t)&&e<i)for(e+=r,f=i+r;f-- >i;)$t(c,f,l[--e]);else for(f=i+r;i<f;)$t(c,i++,l[e++]);else Rnn(n,e,t,i,r,!0)}function KUn(n,e){var t,i,r,c,s,f,h,l,a;switch(e.Ug("Box layout",2),r=J9(B(z(n,(mS(),Cue)))),c=u(z(n,Tue),107),t=on(un(z(n,lan))),i=on(un(z(n,aan))),u(z(n,Vq),320).g){case 0:s=(a=new _u((!n.a&&(n.a=new q(Ye,n,10,11)),n.a)),Ln(),Yt(a,new Nkn(i)),a),f=ynn(n),h=B(z(n,han)),(h==null||(Jn(h),h<=0))&&(h=1.3),l=nNe(s,r,c,f.a,f.b,t,(Jn(h),h)),Gb(n,l.a,l.b,!1,!0);break;default:zOe(n,r,c,t)}e.Vg()}function EIe(n,e,t,i,r){var c,s,f,h,l,a,d,g,p,m;for(g=Vke(n,t),h=0;h<e;h++){for(B0(r,t),p=new Z,m=(oe(i.b<i.d.gc()),u(i.d.Xb(i.c=i.b++),418)),a=g+h;a<n.b;a++)f=m,m=(oe(i.b<i.d.gc()),u(i.d.Xb(i.c=i.b++),418)),nn(p,new dqn(f,m,t));for(d=g+h;d<n.b;d++)oe(i.b>0),i.a.Xb(i.c=--i.b),d>g+h&&bo(i);for(s=new M(p);s.a<s.c.c.length;)c=u(E(s),418),B0(i,c);if(h<e-1)for(l=g+h;l<n.b;l++)oe(i.b>0),i.a.Xb(i.c=--i.b)}}function MIe(){nt();var n,e,t,i,r,c;if(OU)return OU;for(n=new yo(4),gw(n,sa(RF,!0)),V5(n,sa("M",!0)),V5(n,sa("C",!0)),c=new yo(4),i=0;i<11;i++)xc(c,i,i);return e=new yo(4),gw(e,sa("M",!0)),xc(e,4448,4607),xc(e,65438,65439),r=new P6(2),pd(r,n),pd(r,F9),t=new P6(2),t.Jm(uT(c,sa("L",!0))),t.Jm(e),t=new X0(3,t),t=new SW(r,t),OU=t,OU}function ww(n,e){var t,i,r,c,s,f,h,l;for(t=new RegExp(e,"g"),h=F(fn,J,2,0,6,1),i=0,l=n,c=null;;)if(f=t.exec(l),f==null||l==""){h[i]=l;break}else s=f.index,h[i]=(Ri(0,s,l.length),l.substr(0,s)),l=qo(l,s+f[0].length,l.length),t.lastIndex=0,c==l&&(h[i]=(Ri(0,1,l.length),l.substr(0,1)),l=(zn(1,l.length+1),l.substr(1))),c=l,++i;if(n.length>0){for(r=h.length;r>0&&h[r-1]=="";)--r;r<h.length&&(h.length=r)}return h}function lc(){lc=R,Aln=new fb(20),Oln=new Di((He(),M1),Aln),sq=new Di(qd,20),Nln=new Di(Gan,3),yre=new Di(x2,Gm),RO=new Di(Jj,Y(1)),Ore=new Di(fU,(_n(),!0)),Cln=zj,Sln=(ci(),Jf),v0=new Di(_d,Sln),jre=Vj,Ere=eU,Tre=Hd,Cre=Vw,Sre=_2,Pre=Ca,Mre=F2,Iln=Wj,Ire=Ww,$ln=(Hnn(),kre),Lln=mre,Nre=k9,Dre=cA,Lre=Qj,Are=rA,Dln=(Gp(),Yw),new Di(x3,Dln),A2=pre,oq=gre,Ph=vre,Tln=bre,Pln=wre}function TIe(n){var e,t;if(e=Ae(z(n,(He(),$v))),!Rxn(e,n)&&!Nf(n,q2)&&((!n.a&&(n.a=new q(Ye,n,10,11)),n.a).i!=0||on(un(z(n,Xj)))))if(e==null||fw(e).length==0){if(!Rxn(Yn,n))throw t=Be(Be(new mo("Unable to load default layout algorithm "),Yn)," for unconfigured node "),GS(n,t),T(new _l(t.a))}else throw t=Be(Be(new mo("Layout algorithm '"),e),"' not found for "),GS(n,t),T(new _l(t.a))}function NR(n){var e,t,i,r,c,s,f,h,l,a,d,g,p;if(t=n.i,e=n.n,n.b==0)for(p=t.c+e.b,g=t.b-e.b-e.c,s=n.a,h=0,a=s.length;h<a;++h)r=s[h],hT(r,p,g);else i=PBn(n,!1),hT(n.a[0],t.c+e.b,i[0]),hT(n.a[2],t.c+t.b-e.c-i[2],i[2]),d=t.b-e.b-e.c,i[0]>0&&(d-=i[0]+n.c,i[0]+=n.c),i[2]>0&&(d-=i[2]+n.c),i[1]=y.Math.max(i[1],d),hT(n.a[1],t.c+e.b+i[0]-(i[1]-d)/2,i[1]);for(c=n.a,f=0,l=c.length;f<l;++f)r=c[f],L(r,336)&&u(r,336).lf()}function CIe(n){var e,t,i,r,c,s,f,h,l,a,d;for(d=new M3n,d.d=0,s=new M(n.b);s.a<s.c.c.length;)c=u(E(s),30),d.d+=c.a.c.length;for(i=0,r=0,d.a=F(ye,_e,28,n.b.c.length,15,1),l=0,a=0,d.e=F(ye,_e,28,d.d,15,1),t=new M(n.b);t.a<t.c.c.length;)for(e=u(E(t),30),e.p=i++,d.a[e.p]=r++,a=0,h=new M(e.a);h.a<h.c.c.length;)f=u(E(h),10),f.p=l++,d.e[f.p]=a++;return d.c=new ukn(d),d.b=Lh(d.d),GPe(d,n),d.f=Lh(d.d),zPe(d,n),d}function BUn(n,e){var t,i,r,c;for(c=u(sn(n.n,n.n.c.length-1),209).d,n.p=y.Math.min(n.p,e.g),n.r=y.Math.max(n.r,c),n.g=y.Math.max(n.g,e.g+(n.b.c.length==1?0:n.i)),n.o=y.Math.min(n.o,e.f),n.e+=e.f+(n.b.c.length==1?0:n.i),n.f=y.Math.max(n.f,e.f),r=n.n.c.length>0?(n.n.c.length-1)*n.i:0,i=new M(n.n);i.a<i.c.c.length;)t=u(E(i),209),r+=t.a;n.d=r,n.a=n.e/n.b.c.length-n.i*((n.b.c.length-1)/n.b.c.length),vZ(n.j)}function FUn(n,e){var t,i,r,c,s,f,h,l,a,d;if(a=un(v(e,(Us(),eZn))),a==null||(Jn(a),a)){for(d=F(so,Xh,28,e.e.c.length,16,1),s=dMe(e),r=new Mt,l=new M(e.e);l.a<l.c.c.length;)f=u(E(l),153),t=Ynn(n,f,null,null,d,s),t&&(Ur(t,e),xt(r,t,r.c.b,r.c));if(r.b>1)for(i=ge(r,0);i.b!=i.d.c;)for(t=u(be(i),235),c=0,h=new M(t.e);h.a<h.c.c.length;)f=u(E(h),153),f.a=c++;return r}return Af(S(C(mDe,1),jXn,235,0,[e]))}function bh(n){var e,t,i,r,c,s,f;if(!n.g){if(f=new qA,e=D9,s=e.a.zc(n,e),s==null){for(i=new ne(Hr(n));i.e!=i.i.gc();)t=u(ue(i),29),Kt(f,bh(t));e.a.Bc(n)!=null,e.a.gc()==0}for(r=f.i,c=(!n.s&&(n.s=new q(ku,n,21,17)),new ne(n.s));c.e!=c.i.gc();++r)afe(u(ue(c),462),r);Kt(f,(!n.s&&(n.s=new q(ku,n,21,17)),n.s)),ew(f),n.g=new bRn(n,f),n.i=u(f.g,254),n.i==null&&(n.i=EU),n.p=null,Zu(n).b&=-5}return n.g}function SIe(n,e){var t,i,r,c,s,f,h,l,a;if(t=e.qi(n.a),t&&(h=Ae(gf((!t.b&&(t.b=new lo((An(),ar),pc,t)),t.b),"memberTypes")),h!=null)){for(l=new Z,c=ww(h,"\\w"),s=0,f=c.length;s<f;++s)r=c[s],i=r.lastIndexOf("#"),a=i==-1?tV(n,e.jk(),r):i==0?ok(n,null,(zn(1,r.length+1),r.substr(1))):ok(n,(Ri(0,i,r.length),r.substr(0,i)),(zn(i+1,r.length+1),r.substr(i+1))),L(a,156)&&nn(l,u(a,156));return l}return Ln(),Ln(),sr}function DR(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m;if(i=n.i,t=n.n,n.b==0)e=SBn(n,!1),lT(n.a[0],i.d+t.d,e[0]),lT(n.a[2],i.d+i.a-t.a-e[2],e[2]),g=i.a-t.d-t.a,d=g,e[0]>0&&(e[0]+=n.c,d-=e[0]),e[2]>0&&(d-=e[2]+n.c),e[1]=y.Math.max(e[1],d),lT(n.a[1],i.d+t.d+e[0]-(e[1]-d)/2,e[1]);else for(m=i.d+t.d,p=i.a-t.d-t.a,s=n.a,h=0,a=s.length;h<a;++h)r=s[h],lT(r,m,p);for(c=n.a,f=0,l=c.length;f<l;++f)r=c[f],L(r,336)&&u(r,336).mf()}function PIe(n){var e,t,i,r,c,s,f,h,l,a;for(a=F(ye,_e,28,n.b.c.length+1,15,1),l=new ni,i=0,c=new M(n.b);c.a<c.c.c.length;){for(r=u(E(c),30),a[i++]=l.a.gc(),h=new M(r.a);h.a<h.c.c.length;)for(s=u(E(h),10),t=new ie(ce(Qt(s).a.Kc(),new En));pe(t);)e=u(fe(t),18),l.a.zc(e,l);for(f=new M(r.a);f.a<f.c.c.length;)for(s=u(E(f),10),t=new ie(ce(ji(s).a.Kc(),new En));pe(t);)e=u(fe(t),18),l.a.Bc(e)!=null}return a}function BS(n,e,t,i){var r,c,s,f,h;if(h=ru(n.e.Dh(),e),r=u(n.g,124),dr(),u(e,69).xk()){for(s=0;s<n.i;++s)if(c=r[s],h.am(c.Lk())&&rt(c,t))return!0}else if(t!=null){for(f=0;f<n.i;++f)if(c=r[f],h.am(c.Lk())&&rt(t,c.md()))return!0;if(i){for(s=0;s<n.i;++s)if(c=r[s],h.am(c.Lk())&&x(t)===x(ON(n,u(c.md(),58))))return!0}}else for(s=0;s<n.i;++s)if(c=r[s],h.am(c.Lk())&&c.md()==null)return!1;return!1}function IIe(n,e){var t,i,r,c,s,f;if(t=e.qi(n.a),t&&(f=Ae(gf((!t.b&&(t.b=new lo((An(),ar),pc,t)),t.b),FP)),f!=null))switch(r=RM(f,wu(35)),i=e.qk(),r==-1?(s=B6(n,jo(i)),c=f):r==0?(s=null,c=(zn(1,f.length+1),f.substr(1))):(s=(Ri(0,r,f.length),f.substr(0,r)),c=(zn(r+1,f.length+1),f.substr(r+1))),yb(Nr(n,e))){case 2:case 3:return f6e(n,i,s,c);case 0:case 4:case 5:case 6:return h6e(n,i,s,c)}return null}function _Un(n,e,t,i){var r,c,s,f;for(f=t,s=new M(e.a);s.a<s.c.c.length;){if(c=u(E(s),225),r=u(c.b,68),xb(n.b.c,r.b.c+r.b.b)<=0&&xb(r.b.c,n.b.c+n.b.b)<=0&&xb(n.b.d,r.b.d+r.b.a)<=0&&xb(r.b.d,n.b.d+n.b.a)<=0){if(xb(r.b.c,n.b.c+n.b.b)==0&&i.a<0||xb(r.b.c+r.b.b,n.b.c)==0&&i.a>0||xb(r.b.d,n.b.d+n.b.a)==0&&i.b<0||xb(r.b.d+r.b.a,n.b.d)==0&&i.b>0){f=0;break}}else f=y.Math.min(f,x_n(n,r,i));f=y.Math.min(f,_Un(n,c,f,i))}return f}function dy(n,e){var t,i,r,c,s,f,h;if(n.b<2)throw T(new Gn("The vector chain must contain at least a source and a target point."));for(r=(oe(n.b!=0),u(n.a.a.c,8)),j7(e,r.a,r.b),h=new kp((!e.a&&(e.a=new ti(xo,e,5)),e.a)),s=ge(n,1);s.a<n.b-1;)f=u(be(s),8),h.e!=h.i.gc()?t=u(ue(h),377):(t=(K1(),i=new yE,i),AKn(h,t)),gN(t,f.a,f.b);for(;h.e!=h.i.gc();)ue(h),A5(h);c=(oe(n.b!=0),u(n.c.b.c,8)),y7(e,c.a,c.b)}function HUn(n,e,t,i){var r,c,s,f,h,l;if(l=ru(n.e.Dh(),e),s=u(n.g,124),Pl(n.e,e)){if(e.Si()&&(c=Am(n,e,i,L(e,102)&&(u(e,19).Bb&hr)!=0),c>=0&&c!=t))throw T(new Gn(Vy));for(r=0,h=0;h<n.i;++h)if(f=s[h],l.am(f.Lk())){if(r==t)return u(Bg(n,h,(dr(),u(e,69).xk()?u(i,76):Rh(e,i))),76);++r}throw T(new Or(p8+t+Cd+r))}else{for(h=0;h<n.i;++h)if(f=s[h],l.am(f.Lk()))return dr(),u(e,69).xk()?f:f.md();return null}}function qUn(n,e){var t,i,r,c,s,f,h,l,a;for(t=0,r=new M((Nn(0,n.c.length),u(n.c[0],105)).g.b.j);r.a<r.c.c.length;)i=u(E(r),12),i.p=t++;for(e==(en(),Xn)?Yt(n,new Cpn):Yt(n,new Spn),f=0,a=n.c.length-1;f<a;)s=(Nn(f,n.c.length),u(n.c[f],105)),l=(Nn(a,n.c.length),u(n.c[a],105)),c=e==Xn?s.c:s.a,h=e==Xn?l.a:l.c,Vl(s,e,(xf(),av),c),Vl(l,e,lv,h),++f,--a;f==a&&Vl((Nn(f,n.c.length),u(n.c[f],105)),e,(xf(),j3),null)}function OIe(n,e,t,i){var r,c,s,f,h,l;for(s=new kGn(n,e,t),h=new xi(i,0),r=!1;h.b<h.d.gc();)f=(oe(h.b<h.d.gc()),u(h.d.Xb(h.c=h.b++),239)),f==e||f==t?bo(h):!r&&$(Sf(f.g,f.d[0]).a)>$(Sf(s.g,s.d[0]).a)?(oe(h.b>0),h.a.Xb(h.c=--h.b),B0(h,s),r=!0):f.e&&f.e.gc()>0&&(c=(!f.e&&(f.e=new Z),f.e).Mc(e),l=(!f.e&&(f.e=new Z),f.e).Mc(t),(c||l)&&((!f.e&&(f.e=new Z),f.e).Fc(s),++s.c));r||Fn(i.c,s)}function AIe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P;return d=n.a.i+n.a.g/2,g=n.a.i+n.a.g/2,m=e.i+e.g/2,j=e.j+e.f/2,f=new V(m,j),l=u(z(e,(He(),D3)),8),l.a=l.a+d,l.b=l.b+g,c=(f.b-l.b)/(f.a-l.a),i=f.b-c*f.a,k=t.i+t.g/2,P=t.j+t.f/2,h=new V(k,P),a=u(z(t,D3),8),a.a=a.a+d,a.b=a.b+g,s=(h.b-a.b)/(h.a-a.a),r=h.b-s*h.a,p=(i-r)/(s-c),l.a<p&&f.a<p||p<l.a&&p<f.a?!1:!(a.a<p&&h.a<p||p<a.a&&p<h.a)}function LIe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p;if(g=u(ee(n.c,e),190),!g)throw T(new eh("Edge did not exist in input."));return l=wm(g),c=Z9((!e.a&&(e.a=new q(Tt,e,6,6)),e.a)),f=!c,f&&(p=new _a,t=new kPn(n,l,p),yle((!e.a&&(e.a=new q(Tt,e,6,6)),e.a),t),bf(g,Scn,p)),r=Nf(e,(He(),k0)),r&&(a=u(z(e,k0),75),s=!a||oOn(a),h=!s,h&&(d=new _a,i=new iyn(d),qi(a,i),bf(g,"junctionPoints",d))),j4(g,"container",V7(e).k),null}function UUn(n,e,t,i){var r,c,s,f,h,l;if(!D4(e)){if(l=t.eh((L(e,16)?u(e,16).gc():wl(e.Kc()))/n.a|0),l.Ug(dVn,1),h=new h4n,f=0,i==(ci(),Kr)||i==Xr)for(s=e.Kc();s.Ob();)r=u(s.Pb(),40),h=Eo(S(C(Ao,1),Kn,20,0,[h,new sl(r)])),f<r.f.a&&(f=r.f.a);else for(s=e.Kc();s.Ob();)r=u(s.Pb(),40),h=Eo(S(C(Ao,1),Kn,20,0,[h,new sl(r)])),f<r.f.b&&(f=r.f.b);for(c=e.Kc();c.Ob();)r=u(c.Pb(),40),U(r,(pt(),xO),f);l.Vg(),UUn(n,h,t,i)}}function Fen(n,e,t){var i,r,c,s,f,h,l,a;this.a=n,this.b=e,this.c=t,this.e=Af(S(C(wDe,1),Kn,177,0,[new bp(n,e),new bp(e,t),new bp(t,n)])),this.f=Af(S(C(Ei,1),J,8,0,[n,e,t])),this.d=(i=mi(Fi(this.b),this.a),r=mi(Fi(this.c),this.a),c=mi(Fi(this.c),this.b),s=i.a*(this.a.a+this.b.a)+i.b*(this.a.b+this.b.b),f=r.a*(this.a.a+this.c.a)+r.b*(this.a.b+this.c.b),h=2*(i.a*c.b-i.b*c.a),l=(r.b*s-i.b*f)/h,a=(i.a*f-r.a*s)/h,new V(l,a))}function Ub(n,e){var t,i,r,c,s,f;for(c=n.c,s=n.d,Zi(n,null),Oi(n,null),e&&on(un(v(s,(W(),lH))))?Zi(n,Nen(s.i,(gr(),Jc),(en(),Zn))):Zi(n,s),e&&on(un(v(c,(W(),dH))))?Oi(n,Nen(c.i,(gr(),Vu),(en(),Wn))):Oi(n,c),i=new M(n.b);i.a<i.c.c.length;)t=u(E(i),72),r=u(v(t,(cn(),Sh)),278),r==($f(),Kv)?U(t,Sh,Jw):r==Jw&&U(t,Sh,Kv);f=on(un(v(n,(W(),zf)))),U(n,zf,(_n(),!f)),n.a=Pk(n.a)}function NIe(n,e){var t,i,r,c,s;return t=pm(u(v(e,(lc(),v0)),88)),n.b.b==0?null:(s=u(Wr(_r(new Cn(null,new On(n.b,16)),new W3n),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[(Gu(),Yr)]))),15),c=u(Wr(ut(new Cn(null,new On(e.b,16)),new skn(s)),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[Yr]))),15),r=B(ho(_0(_r(c.Oc(),new fkn(t)),(jb(),jb(),YF)))),i=u(ho(im(ut(c.Oc(),new nTn(t,r)))),40),i)}function DIe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j;t=hb(new za,n.f),l=n.i[e.c.i.p],p=n.i[e.d.i.p],h=e.c,g=e.d,f=h.a.b,d=g.a.b,l.b||(f+=h.n.b),p.b||(d+=g.n.b),a=wi(y.Math.max(0,f-d)),s=wi(y.Math.max(0,d-f)),m=(k=y.Math.max(1,u(v(e,(cn(),O3)),17).a),j=MJ(e.c.i.k,e.d.i.k),k*j),r=qs(Ns(Ls(As(Ds(new hs,m),s),t),u(ee(n.k,e.c),125))),c=qs(Ns(Ls(As(Ds(new hs,m),a),t),u(ee(n.k,e.d),125))),i=new qMn(r,c),n.c[e.p]=i}function $Ie(n,e,t){var i,r,c,s,f,h;for(i=0,c=new ne((!n.a&&(n.a=new q(Ye,n,10,11)),n.a));c.e!=c.i.gc();)r=u(ue(c),27),s="",(!r.n&&(r.n=new q(Sr,r,1,7)),r.n).i==0||(s=u(N((!r.n&&(r.n=new q(Sr,r,1,7)),r.n),0),135).a),f=new vCn(s),Ur(f,r),U(f,(Q1(),y3),r),f.a=i++,f.d.a=r.i+r.g/2,f.d.b=r.j+r.f/2,f.e.a=y.Math.max(r.g,1),f.e.b=y.Math.max(r.f,1),nn(e.e,f),Vc(t.f,r,f),h=u(z(r,(Us(),von)),101),h==(Ai(),Ia)&&(h=Qf)}function xIe(n,e){var t,i,r,c,s,f,h;e.Ug("Layer constraint postprocessing",1),h=n.b,h.c.length!=0&&(i=(Nn(0,h.c.length),u(h.c[0],30)),s=u(sn(h,h.c.length-1),30),t=new Nc(n),c=new Nc(n),EPe(n,i,s,t,c),t.a.c.length==0||(z0(0,h.c.length),d6(h.c,0,t)),c.a.c.length==0||Fn(h.c,c)),kt(n,(W(),hH))&&(r=new Nc(n),f=new Nc(n),bSe(n,r,f),r.a.c.length==0||(z0(0,h.c.length),d6(h.c,0,r)),f.a.c.length==0||Fn(h.c,f)),e.Vg()}function by(n){var e,t,i;switch(n){case 91:case 93:case 45:case 94:case 44:case 92:i="\\"+String.fromCharCode(n&ui);break;case 12:i="\\f";break;case 10:i="\\n";break;case 13:i="\\r";break;case 9:i="\\t";break;case 27:i="\\e";break;default:n<32?(t=(e=n>>>0,"0"+e.toString(16)),i="\\x"+qo(t,t.length-2,t.length)):n>=hr?(t=(e=n>>>0,"0"+e.toString(16)),i="\\v"+qo(t,t.length-6,t.length)):i=""+String.fromCharCode(n&ui)}return i}function GUn(n){var e,t,i;if(mg(u(v(n,(cn(),Ft)),101)))for(t=new M(n.j);t.a<t.c.c.length;)e=u(E(t),12),e.j==(en(),sc)&&(i=u(v(e,(W(),Xu)),10),i?gi(e,u(v(i,gc),64)):e.e.c.length-e.g.c.length<0?gi(e,Zn):gi(e,Wn));else{for(t=new M(n.j);t.a<t.c.c.length;)e=u(E(t),12),i=u(v(e,(W(),Xu)),10),i?gi(e,u(v(i,gc),64)):e.e.c.length-e.g.c.length<0?gi(e,(en(),Zn)):gi(e,(en(),Wn));U(n,Ft,(Ai(),Fv))}}function _en(n){var e,t,i,r,c,s;for(this.e=new Z,this.a=new Z,t=n.b-1;t<3;t++)g4(n,0,u(Zo(n,0),8));if(n.b<4)throw T(new Gn("At (least dimension + 1) control points are necessary!"));for(this.b=3,this.d=!0,this.c=!1,hTe(this,n.b+this.b-1),s=new Z,c=new M(this.e),e=0;e<this.b-1;e++)nn(s,B(E(c)));for(r=ge(n,0);r.b!=r.d.c;)i=u(be(r),8),nn(s,B(E(c))),nn(this.a,new iAn(i,s)),Nn(0,s.c.length),s.c.splice(0,1)}function zUn(n,e){var t,i,r,c,s,f,h,l,a;for(c=new M(n.b);c.a<c.c.c.length;)for(r=u(E(c),30),f=new M(r.a);f.a<f.c.c.length;)for(s=u(E(f),10),s.k==(Vn(),Sc)&&(h=(l=u(fe(new ie(ce(ji(s).a.Kc(),new En))),18),a=u(fe(new ie(ce(Qt(s).a.Kc(),new En))),18),!on(un(v(l,(W(),zf))))||!on(un(v(a,zf)))?e:sRn(e)),t3(s,h)),i=new ie(ce(Qt(s).a.Kc(),new En));pe(i);)t=u(fe(i),18),h=on(un(v(t,(W(),zf))))?sRn(e):e,eRn(t,h)}function RIe(n,e,t,i,r){var c,s,f;if(t.f>=e.o&&t.f<=e.f||e.a*.5<=t.f&&e.a*1.5>=t.f){if(s=u(sn(e.n,e.n.c.length-1),209),s.e+s.d+t.g+r<=i&&(c=u(sn(e.n,e.n.c.length-1),209),c.f-n.f+t.f<=n.b||n.a.c.length==1))return $Y(e,t),!0;if(e.s+t.g<=i&&(e.t+e.d+t.f+r<=n.b||n.a.c.length==1))return nn(e.b,t),f=u(sn(e.n,e.n.c.length-1),209),nn(e.n,new DT(e.s,f.f+f.a+e.i,e.i)),wZ(u(sn(e.n,e.n.c.length-1),209),t),BUn(e,t),!0}return!1}function XUn(n,e,t){var i,r,c,s;return n.Pj()?(r=null,c=n.Qj(),i=n.Ij(1,s=d$(n,e,t),t,e,c),n.Mj()&&!(n.Yi()&&s!=null?rt(s,t):x(s)===x(t))?(s!=null&&(r=n.Oj(s,r)),r=n.Nj(t,r),n.Tj()&&(r=n.Wj(s,t,r)),r?(r.nj(i),r.oj()):n.Jj(i)):(n.Tj()&&(r=n.Wj(s,t,r)),r?(r.nj(i),r.oj()):n.Jj(i)),s):(s=d$(n,e,t),n.Mj()&&!(n.Yi()&&s!=null?rt(s,t):x(s)===x(t))&&(r=null,s!=null&&(r=n.Oj(s,null)),r=n.Nj(t,r),r&&r.oj()),s)}function KIe(n,e){var t,i,r,c,s;if(e.Ug("Path-Like Graph Wrapping",1),n.b.c.length==0){e.Vg();return}if(r=new Gnn(n),s=(r.i==null&&(r.i=xQ(r,new XU)),$(r.i)*r.f),t=s/(r.i==null&&(r.i=xQ(r,new XU)),$(r.i)),r.b>t){e.Vg();return}switch(u(v(n,(cn(),LH)),351).g){case 2:c=new WU;break;case 0:c=new zU;break;default:c=new JU}if(i=c.og(n,r),!c.pg())switch(u(v(n,jO),352).g){case 2:i=R_n(r,i);break;case 1:i=PFn(r,i)}DOe(n,r,i),e.Vg()}function H5(n,e){var t,i,r,c,s,f,h,l;e%=24,n.q.getHours()!=e&&(i=new y.Date(n.q.getTime()),i.setDate(i.getDate()+1),f=n.q.getTimezoneOffset()-i.getTimezoneOffset(),f>0&&(h=f/60|0,l=f%60,r=n.q.getDate(),t=n.q.getHours(),t+h>=24&&++r,c=new y.Date(n.q.getFullYear(),n.q.getMonth(),r,e+h,n.q.getMinutes()+l,n.q.getSeconds(),n.q.getMilliseconds()),n.q.setTime(c.getTime()))),s=n.q.getTime(),n.q.setTime(s+36e5),n.q.getHours()!=e&&n.q.setTime(s)}function BIe(n,e){var t,i,r,c;if(Y2e(n.d,n.e),n.c.a.$b(),$(B(v(e.j,(cn(),hO))))!=0||$(B(v(e.j,hO)))!=0)for(t=i2,x(v(e.j,Yh))!==x((lh(),k1))&&U(e.j,(W(),ka),(_n(),!0)),c=u(v(e.j,V8),17).a,r=0;r<c&&(i=ZIe(n,e),!(i<t&&(t=i,mxn(n),t==0)));r++);else for(t=et,x(v(e.j,Yh))!==x((lh(),k1))&&U(e.j,(W(),ka),(_n(),!0)),c=u(v(e.j,V8),17).a,r=0;r<c&&(i=YUn(n,e),!(i<t&&(t=i,mxn(n),t==0)));r++);}function FIe(n,e){var t,i,r,c,s,f,h,l;for(s=new Z,f=0,t=0,h=0;f<e.c.length-1&&t<n.gc();){for(i=u(n.Xb(t),17).a+h;(Nn(f+1,e.c.length),u(e.c[f+1],17)).a<i;)++f;for(l=0,c=i-(Nn(f,e.c.length),u(e.c[f],17)).a,r=(Nn(f+1,e.c.length),u(e.c[f+1],17)).a-i,c>r&&++l,nn(s,(Nn(f+l,e.c.length),u(e.c[f+l],17))),h+=(Nn(f+l,e.c.length),u(e.c[f+l],17)).a-i,++t;t<n.gc()&&u(n.Xb(t),17).a+h<=(Nn(f+l,e.c.length),u(e.c[f+l],17)).a;)++t;f+=1+l}return s}function _Ie(n,e){var t,i,r,c,s;for(s=new ie(ce(ji(e).a.Kc(),new En));pe(s);)if(c=u(fe(s),18),n.f.b==0?(r=c.c.i.k==(Vn(),zt)&&!!c.c.i.c&&c.c.i.c.p==n.c,pe(new ie(ce(ji(c.c.i).a.Kc(),new En)))?(t=u(fe(new ie(ce(ji(c.c.i).a.Kc(),new En))),18).c.i.c,i=c.c.i.k==Sc&&!!t&&t.p==n.c):i=!1):(r=c.c.i.k==(Vn(),zt)&&c.c.i.p==n.c,i=c.c.i.k==Sc&&u(fe(new ie(ce(ji(c.c.i).a.Kc(),new En))),18).c.i.p==n.c),r||i)return!0;return!1}function HIe(n,e,t,i,r){var c,s,f,h,l,a,d,g,p,m,k,j,P,O,A;for(g=new Z,P=HT(i),j=e*n.a,d=0,m=0,c=new ni,s=new ni,f=new Z,O=0,A=0,p=0,k=0,l=0,a=0;P.a.gc()!=0;)h=x5e(P,r,s),h&&(P.a.Bc(h)!=null,Fn(f.c,h),c.a.zc(h,c),m=n.f[h.p],O+=n.e[h.p]-m*n.b,d=n.c[h.p],A+=d*n.b,a+=m*n.b,k+=n.e[h.p]),(!h||P.a.gc()==0||O>=j&&n.e[h.p]>m*n.b||A>=t*j)&&(Fn(g.c,f),f=new Z,Ki(s,c),c.a.$b(),l-=a,p=y.Math.max(p,l*n.b+k),l+=A,O=A,A=0,a=0,k=0);return new bi(p,g)}function $R(n){var e,t,i,r,c,s,f;if(!n.d){if(f=new jvn,e=D9,c=e.a.zc(n,e),c==null){for(i=new ne(Hr(n));i.e!=i.i.gc();)t=u(ue(i),29),Kt(f,$R(t));e.a.Bc(n)!=null,e.a.gc()==0}for(s=f.i,r=(!n.q&&(n.q=new q(Ps,n,11,10)),new ne(n.q));r.e!=r.i.gc();++s)u(ue(r),411);Kt(f,(!n.q&&(n.q=new q(Ps,n,11,10)),n.q)),ew(f),n.d=new pg((u(N(H((G1(),Hn).o),9),19),f.i),f.g),n.e=u(f.g,688),n.e==null&&(n.e=Joe),Zu(n).b&=-17}return n.d}function Am(n,e,t,i){var r,c,s,f,h,l;if(l=ru(n.e.Dh(),e),h=0,r=u(n.g,124),dr(),u(e,69).xk()){for(s=0;s<n.i;++s)if(c=r[s],l.am(c.Lk())){if(rt(c,t))return h;++h}}else if(t!=null){for(f=0;f<n.i;++f)if(c=r[f],l.am(c.Lk())){if(rt(t,c.md()))return h;++h}if(i){for(h=0,s=0;s<n.i;++s)if(c=r[s],l.am(c.Lk())){if(x(t)===x(ON(n,u(c.md(),58))))return h;++h}}}else for(s=0;s<n.i;++s)if(c=r[s],l.am(c.Lk())){if(c.md()==null)return h;++h}return-1}function qIe(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k;if(t.Xh(e)&&(a=(p=e,p?u(i,54).gi(p):null),a))if(k=t.Nh(e,n.a),m=e.t,m>1||m==-1)if(d=u(k,71),g=u(a,71),d.dc())g.$b();else for(s=!!br(e),c=0,f=n.a?d.Kc():d.Ii();f.Ob();)l=u(f.Pb(),58),r=u(Df(n,l),58),r?(s?(h=g.dd(r),h==-1?g.Gi(c,r):c!=h&&g.Ui(c,r)):g.Gi(c,r),++c):n.b&&!s&&(g.Gi(c,l),++c);else k==null?a.Wb(null):(r=Df(n,k),r==null?n.b&&!br(e)&&a.Wb(k):a.Wb(r))}function UIe(n,e){var t,i,r,c,s,f,h,l;for(t=new ogn,r=new ie(ce(ji(e).a.Kc(),new En));pe(r);)if(i=u(fe(r),18),!fr(i)&&(f=i.c.i,QZ(f,TI))){if(l=gen(n,f,TI,MI),l==-1)continue;t.b=y.Math.max(t.b,l),!t.a&&(t.a=new Z),nn(t.a,f)}for(s=new ie(ce(Qt(e).a.Kc(),new En));pe(s);)if(c=u(fe(s),18),!fr(c)&&(h=c.d.i,QZ(h,MI))){if(l=gen(n,h,MI,TI),l==-1)continue;t.d=y.Math.max(t.d,l),!t.c&&(t.c=new Z),nn(t.c,h)}return t}function GIe(n,e,t,i){var r,c,s,f,h,l,a;if(t.d.i!=e.i){for(r=new Cl(n),Ha(r,(Vn(),Ti)),U(r,(W(),st),t),U(r,(cn(),Ft),(Ai(),qc)),Fn(i.c,r),s=new Ic,ic(s,r),gi(s,(en(),Wn)),f=new Ic,ic(f,r),gi(f,Zn),a=t.d,Oi(t,s),c=new Eb,Ur(c,t),U(c,Rr,null),Zi(c,f),Oi(c,a),l=new xi(t.b,0);l.b<l.d.gc();)h=(oe(l.b<l.d.gc()),u(l.d.Xb(l.c=l.b++),72)),x(v(h,Sh))===x(($f(),Jw))&&(U(h,T3,t),bo(l),nn(c.b,h));CHn(r,s,f)}}function zIe(n,e,t,i){var r,c,s,f,h,l,a;if(t.c.i!=e.i)for(r=new Cl(n),Ha(r,(Vn(),Ti)),U(r,(W(),st),t),U(r,(cn(),Ft),(Ai(),qc)),Fn(i.c,r),s=new Ic,ic(s,r),gi(s,(en(),Wn)),f=new Ic,ic(f,r),gi(f,Zn),Oi(t,s),c=new Eb,Ur(c,t),U(c,Rr,null),Zi(c,f),Oi(c,e),CHn(r,s,f),l=new xi(t.b,0);l.b<l.d.gc();)h=(oe(l.b<l.d.gc()),u(l.d.Xb(l.c=l.b++),72)),a=u(v(h,Sh),278),a==($f(),Jw)&&(kt(h,T3)||U(h,T3,t),bo(l),nn(c.b,h))}function VUn(n){Sm();var e,t,i,r;if(e=wi(n),n<I8.length)return I8[e];if(n<=50)return ry((dh(),QF),e);if(n<=d1)return Rp(ry(m3[1],e),e);if(n>1e6)throw T(new _E("power of ten too big"));if(n<=et)return Rp(ry(m3[1],e),e);for(i=ry(m3[1],et),r=i,t=vc(n-et),e=wi(n%et);Ec(t,et)>0;)r=Og(r,i),t=bs(t,et);for(r=Og(r,ry(m3[1],e)),r=Rp(r,et),t=vc(n-et);Ec(t,et)>0;)r=Rp(r,et),t=bs(t,et);return r=Rp(r,e),r}function WUn(n){var e,t,i,r,c,s,f,h,l,a;for(h=new M(n.a);h.a<h.c.c.length;)if(f=u(E(h),10),f.k==(Vn(),Zt)&&(r=u(v(f,(W(),gc)),64),r==(en(),Zn)||r==Wn))for(i=new ie(ce(Ml(f).a.Kc(),new En));pe(i);)t=u(fe(i),18),e=t.a,e.b!=0&&(l=t.c,l.i==f&&(c=(oe(e.b!=0),u(e.a.a.c,8)),c.b=cc(S(C(Ei,1),J,8,0,[l.i.n,l.n,l.a])).b),a=t.d,a.i==f&&(s=(oe(e.b!=0),u(e.c.b.c,8)),s.b=cc(S(C(Ei,1),J,8,0,[a.i.n,a.n,a.a])).b))}function q5(n,e,t,i){var r,c,s;if(this.j=new Z,this.k=new Z,this.b=new Z,this.c=new Z,this.e=new mp,this.i=new Tu,this.f=new rL,this.d=new Z,this.g=new Z,nn(this.b,n),nn(this.b,e),this.e.c=y.Math.min(n.a,e.a),this.e.d=y.Math.min(n.b,e.b),this.e.b=y.Math.abs(n.a-e.a),this.e.a=y.Math.abs(n.b-e.b),r=u(v(i,(cn(),Rr)),75),r)for(s=ge(r,0);s.b!=s.d.c;)c=u(be(s),8),lQ(c.a,n.a)&&Re(this.i,c);t&&nn(this.j,t),nn(this.k,i)}function XIe(n,e,t,i){var r,c,s,f,h,l,a;for(f=-1,a=new M(n);a.a<a.c.c.length;)l=u(E(a),118),l.g=f--,r=Se(KT(ET(ut(new Cn(null,new On(l.f,16)),new P3n),new I3n)).d),c=Se(KT(ET(ut(new Cn(null,new On(l.k,16)),new O3n),new A3n)).d),s=r,h=c,i||(s=Se(KT(ET(new Cn(null,new On(l.f,16)),new L3n)).d),h=Se(KT(ET(new Cn(null,new On(l.k,16)),new C3n)).d)),l.d=s,l.a=r,l.i=h,l.b=c,h==0?xt(t,l,t.c.b,t.c):s==0&&xt(e,l,e.c.b,e.c)}function t3(n,e){var t,i,r,c,s,f;if(n.k==(Vn(),Sc)&&(t=n.k==Sc&&!s4(ut(u(v(n,(W(),F8)),15).Oc(),new Z3(new qU))).Bd((Va(),v3))?(Co(),Zj):e,U(n,(W(),S3),t),t!=(Co(),Sa)))for(i=u(v(n,st),18),f=$(B(v(i,(cn(),m1)))),s=0,t==nl?s=n.o.b-y.Math.ceil(f/2):t==Zj&&(s=y.Math.ceil(n.o.b-$(B(v(Hi(n),C2)))-f)/2,n.o.b-=$(B(v(Hi(n),C2))),n.o.b-=f),c=new M(n.j);c.a<c.c.c.length;)r=u(E(c),12),r.n.b=s}function JUn(n,e,t){var i,r,c,s,f,h,l,a,d;for(r=!0,s=new M(n.b);s.a<s.c.c.length;){for(c=u(E(s),30),l=li,a=null,h=new M(c.a);h.a<h.c.c.length;)if(f=u(E(h),10),d=$(e.p[f.p])+$(e.d[f.p])-f.d.d,i=$(e.p[f.p])+$(e.d[f.p])+f.o.b+f.d.a,d>l&&i>l)a=f,l=$(e.p[f.p])+$(e.d[f.p])+f.o.b+f.d.a;else{r=!1,t._g()&&t.bh("bk node placement breaks on "+f+" which should have been after "+a);break}if(!r)break}return t._g()&&t.bh(e+" is feasible: "+r),r}function Hen(n,e,t,i){var r,c,s,f,h,l,a,d,g;if(c=new Cl(n),Ha(c,(Vn(),_c)),U(c,(cn(),Ft),(Ai(),qc)),r=0,e){for(s=new Ic,U(s,(W(),st),e),U(c,st,e.i),gi(s,(en(),Wn)),ic(s,c),g=hh(e.e),l=g,a=0,d=l.length;a<d;++a)h=l[a],Oi(h,s);U(e,Xu,c),++r}if(t){for(f=new Ic,U(c,(W(),st),t.i),U(f,st,t),gi(f,(en(),Zn)),ic(f,c),g=hh(t.g),l=g,a=0,d=l.length;a<d;++a)h=l[a],Zi(h,f);U(t,Xu,c),++r}return U(c,(W(),iO),Y(r)),Fn(i.c,c),c}function VIe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p;for(t=(l=new ol(n.c.b).a.vc().Kc(),new P0(l));t.a.Ob();)e=(f=u(t.a.Pb(),44),u(f.md(),143)),r=e.a,r==null&&(r=""),i=kae(n.c,r),!i&&r.length==0&&(i=s5e(n)),i&&!iw(i.c,e,!1)&&Re(i.c,e);for(s=ge(n.a,0);s.b!=s.d.c;)c=u(be(s),487),a=WD(n.c,c.a),p=WD(n.c,c.b),a&&p&&Re(a.c,new bi(p,c.c));for(vo(n.a),g=ge(n.b,0);g.b!=g.d.c;)d=u(be(g),487),e=vae(n.c,d.a),h=WD(n.c,d.b),e&&h&&Yhe(e,h,d.c);vo(n.b)}function WIe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p;c=new U9(n),s=new sFn,r=(nk(s.g),nk(s.j),Hu(s.b),nk(s.d),nk(s.i),Hu(s.k),Hu(s.c),Hu(s.e),p=q_n(s,c,null),KHn(s,c),p),e&&(l=new U9(e),f=rOe(l),hnn(r,S(C(can,1),Kn,536,0,[f]))),g=!1,d=!1,t&&(l=new U9(t),HP in l.a&&(g=dl(l,HP).qe().a),CWn in l.a&&(d=dl(l,CWn).qe().a)),a=eEn(U$n(new op,g),d),Lje(new vmn,r,a),HP in c.a&&bf(c,HP,null),(g||d)&&(h=new sp,AUn(a,h,g,d),bf(c,HP,h)),i=new nyn(s),g6e(new CX(r),i)}function JIe(n,e,t){var i,r,c,s,f,h,l,a,d;for(s=new dFn,l=S(C(ye,1),_e,28,15,[0]),r=-1,c=0,i=0,h=0;h<n.b.c.length;++h)if(a=u(sn(n.b,h),443),a.b>0){if(r<0&&a.a&&(r=h,c=l[0],i=0),r>=0){if(f=a.b,h==r&&(f-=i++,f==0))return 0;if(!ZGn(e,l,a,f,s)){h=r-1,l[0]=c;continue}}else if(r=-1,!ZGn(e,l,a,0,s))return 0}else{if(r=-1,Xi(a.c,0)==32){if(d=l[0],n$n(e,l),l[0]>d)continue}else if(Nge(e,a.c,l[0])){l[0]+=a.c.length;continue}return 0}return $Le(s,t)?l[0]:0}function QIe(n,e,t){var i,r,c,s,f,h,l,a,d,g;for(a=new dT(new K9n(t)),f=F(so,Xh,28,n.f.e.c.length,16,1),TW(f,f.length),t[e.a]=0,l=new M(n.f.e);l.a<l.c.c.length;)h=u(E(l),153),h.a!=e.a&&(t[h.a]=et),Tp(ym(a,h),_m);for(;a.b.c.length!=0;)for(d=u(w$(a),153),f[d.a]=!0,c=WCn(new SL(n.b,d),0);c.c;)r=u(oQ(c),290),g=f7e(r,d),!f[g.a]&&(kt(r,(Uk(),EI))?s=$(B(v(r,EI))):s=n.c,i=t[d.a]+s,i<t[g.a]&&(t[g.a]=i,lxn(a,g),Tp(ym(a,g),_m)))}function YIe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m;for(s=n.o,i=F(ye,_e,28,s,15,1),r=F(ye,_e,28,s,15,1),t=n.p,e=F(ye,_e,28,t,15,1),c=F(ye,_e,28,t,15,1),l=0;l<s;l++){for(d=0;d<t&&!Fg(n,l,d);)++d;i[l]=d}for(a=0;a<s;a++){for(d=t-1;d>=0&&!Fg(n,a,d);)--d;r[a]=d}for(p=0;p<t;p++){for(f=0;f<s&&!Fg(n,f,p);)++f;e[p]=f}for(m=0;m<t;m++){for(f=s-1;f>=0&&!Fg(n,f,m);)--f;c[m]=f}for(h=0;h<s;h++)for(g=0;g<t;g++)h<c[g]&&h>e[g]&&g<r[h]&&g>i[h]&&xS(n,h,g,!1,!0)}function qen(n){var e,t,i,r,c,s,f,h;t=on(un(v(n,(Us(),XYn)))),c=n.a.c.d,f=n.a.d.d,t?(s=ch(mi(new V(f.a,f.b),c),.5),h=ch(Fi(n.e),.5),e=mi(tt(new V(c.a,c.b),s),h),YX(n.d,e)):(r=$(B(v(n.a,tZn))),i=n.d,c.a>=f.a?c.b>=f.b?(i.a=f.a+(c.a-f.a)/2+r,i.b=f.b+(c.b-f.b)/2-r-n.e.b):(i.a=f.a+(c.a-f.a)/2+r,i.b=c.b+(f.b-c.b)/2+r):c.b>=f.b?(i.a=c.a+(f.a-c.a)/2+r,i.b=f.b+(c.b-f.b)/2+r):(i.a=c.a+(f.a-c.a)/2+r,i.b=c.b+(f.b-c.b)/2-r-n.e.b))}function U5(n){var e,t,i,r,c,s,f,h;if(!n.f){if(h=new tG,f=new tG,e=D9,s=e.a.zc(n,e),s==null){for(c=new ne(Hr(n));c.e!=c.i.gc();)r=u(ue(c),29),Kt(h,U5(r));e.a.Bc(n)!=null,e.a.gc()==0}for(i=(!n.s&&(n.s=new q(ku,n,21,17)),new ne(n.s));i.e!=i.i.gc();)t=u(ue(i),179),L(t,102)&&ve(f,u(t,19));ew(f),n.r=new _Pn(n,(u(N(H((G1(),Hn).o),6),19),f.i),f.g),Kt(h,n.r),ew(h),n.f=new pg((u(N(H(Hn.o),5),19),h.i),h.g),Zu(n).b&=-3}return n.f}function QUn(n){rb(n,new gd(eb(Yd(nb(Zd(new Fa,jd),"ELK DisCo"),"Layouter for arranging unconnected subgraphs. The subgraphs themselves are, by default, not laid out."),new K0n))),Q(n,jd,WK,rn(aon)),Q(n,jd,JK,rn(w_)),Q(n,jd,l3,rn(LYn)),Q(n,jd,Wb,rn(lon)),Q(n,jd,Atn,rn(xYn)),Q(n,jd,Ltn,rn($Yn)),Q(n,jd,Otn,rn(RYn)),Q(n,jd,Ntn,rn(DYn)),Q(n,jd,Ftn,rn(NYn)),Q(n,jd,_tn,rn(b_)),Q(n,jd,Htn,rn(hon)),Q(n,jd,qtn,rn(pI))}function FS(){FS=R,Ldn=S(C(fs,1),gh,28,15,[48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70]),Coe=new RegExp(`[
\r\f]+`);try{A9=S(C(NDe,1),Kn,2114,0,[new X9((vX(),zC("yyyy-MM-dd'T'HH:mm:ss'.'SSSZ",O7((FE(),FE(),C8))))),new X9(zC("yyyy-MM-dd'T'HH:mm:ss'.'SSS",O7(C8))),new X9(zC("yyyy-MM-dd'T'HH:mm:ss",O7(C8))),new X9(zC("yyyy-MM-dd'T'HH:mm",O7(C8))),new X9(zC("yyyy-MM-dd",O7(C8)))])}catch(n){if(n=Ot(n),!L(n,82))throw T(n)}}function ZIe(n,e){var t,i,r,c;if(r=to(n.d,1)!=0,i=Een(n,e),i==0&&on(un(v(e.j,(W(),ka)))))return 0;!on(un(v(e.j,(W(),ka))))&&!on(un(v(e.j,j2)))||x(v(e.j,(cn(),Yh)))===x((lh(),k1))?e.c.mg(e.e,r):r=on(un(v(e.j,ka))),sy(n,e,r,!0),on(un(v(e.j,j2)))&&U(e.j,j2,(_n(),!1)),on(un(v(e.j,ka)))&&(U(e.j,ka,(_n(),!1)),U(e.j,j2,!0)),t=Een(n,e);do{if(DQ(n),t==0)return 0;r=!r,c=t,sy(n,e,r,!1),t=Een(n,e)}while(c>t);return c}function YUn(n,e){var t,i,r,c;if(r=to(n.d,1)!=0,i=kS(n,e),i==0&&on(un(v(e.j,(W(),ka)))))return 0;!on(un(v(e.j,(W(),ka))))&&!on(un(v(e.j,j2)))||x(v(e.j,(cn(),Yh)))===x((lh(),k1))?e.c.mg(e.e,r):r=on(un(v(e.j,ka))),sy(n,e,r,!0),on(un(v(e.j,j2)))&&U(e.j,j2,(_n(),!1)),on(un(v(e.j,ka)))&&(U(e.j,ka,(_n(),!1)),U(e.j,j2,!0)),t=kS(n,e);do{if(DQ(n),t==0)return 0;r=!r,c=t,sy(n,e,r,!1),t=kS(n,e)}while(c>t);return c}function Uen(n,e,t,i){var r,c,s,f,h,l,a,d,g;return h=mi(new V(t.a,t.b),n),l=h.a*e.b-h.b*e.a,a=e.a*i.b-e.b*i.a,d=(h.a*i.b-h.b*i.a)/a,g=l/a,a==0?l==0?(r=tt(new V(t.a,t.b),ch(new V(i.a,i.b),.5)),c=J1(n,r),s=J1(tt(new V(n.a,n.b),e),r),f=y.Math.sqrt(i.a*i.a+i.b*i.b)*.5,c<s&&c<=f?new V(n.a,n.b):s<=f?tt(new V(n.a,n.b),e):null):null:d>=0&&d<=1&&g>=0&&g<=1?tt(new V(n.a,n.b),ch(new V(e.a,e.b),d)):null}function nOe(n,e,t){var i,r,c,s,f;if(i=u(v(n,(cn(),vH)),21),t.a>e.a&&(i.Hc((wd(),w9))?n.c.a+=(t.a-e.a)/2:i.Hc(g9)&&(n.c.a+=t.a-e.a)),t.b>e.b&&(i.Hc((wd(),m9))?n.c.b+=(t.b-e.b)/2:i.Hc(p9)&&(n.c.b+=t.b-e.b)),u(v(n,(W(),Hc)),21).Hc((pr(),cs))&&(t.a>e.a||t.b>e.b))for(f=new M(n.a);f.a<f.c.c.length;)s=u(E(f),10),s.k==(Vn(),Zt)&&(r=u(v(s,gc),64),r==(en(),Zn)?s.n.a+=t.a-e.a:r==ae&&(s.n.b+=t.b-e.b));c=n.d,n.f.a=t.a-c.b-c.c,n.f.b=t.b-c.d-c.a}function eOe(n,e,t){var i,r,c,s,f;if(i=u(v(n,(cn(),vH)),21),t.a>e.a&&(i.Hc((wd(),w9))?n.c.a+=(t.a-e.a)/2:i.Hc(g9)&&(n.c.a+=t.a-e.a)),t.b>e.b&&(i.Hc((wd(),m9))?n.c.b+=(t.b-e.b)/2:i.Hc(p9)&&(n.c.b+=t.b-e.b)),u(v(n,(W(),Hc)),21).Hc((pr(),cs))&&(t.a>e.a||t.b>e.b))for(s=new M(n.a);s.a<s.c.c.length;)c=u(E(s),10),c.k==(Vn(),Zt)&&(r=u(v(c,gc),64),r==(en(),Zn)?c.n.a+=t.a-e.a:r==ae&&(c.n.b+=t.b-e.b));f=n.d,n.f.a=t.a-f.b-f.c,n.f.b=t.b-f.d-f.a}function tOe(n){var e,t,i,r,c,s,f,h,l,a,d,g;for(e=aHn(n),a=(f=new qa(e).a.vc().Kc(),new IE(f));a.a.Ob();){for(l=(r=u(a.a.Pb(),44),u(r.ld(),10)),d=0,g=0,d=l.d.d,g=l.o.b+l.d.a,n.d[l.p]=0,t=l;(c=n.a[t.p])!=l;)i=Q8e(t,c),h=0,n.c==(fh(),y1)?h=i.d.n.b+i.d.a.b-i.c.n.b-i.c.a.b:h=i.c.n.b+i.c.a.b-i.d.n.b-i.d.a.b,s=$(n.d[t.p])+h,n.d[c.p]=s,d=y.Math.max(d,c.d.d-s),g=y.Math.max(g,s+c.o.b+c.d.a),t=c;t=l;do n.d[t.p]=$(n.d[t.p])+d,t=n.a[t.p];while(t!=l);n.b[l.p]=d+g}}function G5(n,e,t){var i,r,c,s,f,h,l,a,d,g;for(c=0,s=n.t,r=0,i=0,h=0,g=0,d=0,t&&(n.n.c.length=0,nn(n.n,new DT(n.s,n.t,n.i))),f=0,a=new M(n.b);a.a<a.c.c.length;)l=u(E(a),27),c+l.g+(f>0?n.i:0)>e&&h>0&&(c=0,s+=h+n.i,r=y.Math.max(r,g),i+=h+n.i,h=0,g=0,t&&(++d,nn(n.n,new DT(n.s,s,n.i))),f=0),g+=l.g+(f>0?n.i:0),h=y.Math.max(h,l.f),t&&wZ(u(sn(n.n,d),209),l),c+=l.g+(f>0?n.i:0),++f;return r=y.Math.max(r,g),i+=h,t&&(n.r=r,n.d=i,vZ(n.j)),new Ho(n.s,n.t,r,i)}function xR(n){var e,t,i,r,c,s,f,h,l,a,d,g;for(n.b=!1,d=Pt,h=li,g=Pt,l=li,i=n.e.a.ec().Kc();i.Ob();)for(t=u(i.Pb(),272),r=t.a,d=y.Math.min(d,r.c),h=y.Math.max(h,r.c+r.b),g=y.Math.min(g,r.d),l=y.Math.max(l,r.d+r.a),s=new M(t.c);s.a<s.c.c.length;)c=u(E(s),407),e=c.a,e.a?(a=r.d+c.b.b,f=a+c.c,g=y.Math.min(g,a),l=y.Math.max(l,f)):(a=r.c+c.b.a,f=a+c.c,d=y.Math.min(d,a),h=y.Math.max(h,f));n.a=new V(h-d,l-g),n.c=new V(d+n.d.a,g+n.d.b)}function Jg(n){var e,t,i,r,c,s,f,h;if(!n.a){if(n.o=null,h=new vyn(n),e=new yvn,t=D9,f=t.a.zc(n,t),f==null){for(s=new ne(Hr(n));s.e!=s.i.gc();)c=u(ue(s),29),Kt(h,Jg(c));t.a.Bc(n)!=null,t.a.gc()==0}for(r=(!n.s&&(n.s=new q(ku,n,21,17)),new ne(n.s));r.e!=r.i.gc();)i=u(ue(r),179),L(i,331)&&ve(e,u(i,35));ew(e),n.k=new HPn(n,(u(N(H((G1(),Hn).o),7),19),e.i),e.g),Kt(h,n.k),ew(h),n.a=new pg((u(N(H(Hn.o),4),19),h.i),h.g),Zu(n).b&=-2}return n.a}function Gen(n,e,t,i){var r,c,s,f,h,l,a;if(a=ru(n.e.Dh(),e),r=0,c=u(n.g,124),h=null,dr(),u(e,69).xk()){for(f=0;f<n.i;++f)if(s=c[f],a.am(s.Lk())){if(rt(s,t)){h=s;break}++r}}else if(t!=null){for(f=0;f<n.i;++f)if(s=c[f],a.am(s.Lk())){if(rt(t,s.md())){h=s;break}++r}}else for(f=0;f<n.i;++f)if(s=c[f],a.am(s.Lk())){if(s.md()==null){h=s;break}++r}return h&&(fo(n.e)&&(l=e.Jk()?new GD(n.e,4,e,t,null,r,!0):V1(n,e.tk()?2:1,e,t,e.ik(),-1,!0),i?i.nj(l):i=l),i=ly(n,h,i)),i}function RR(n,e,t,i,r,c,s){var f,h,l,a,d,g,p,m,k;switch(m=0,k=0,h=r.c,f=r.b,a=t.f,p=t.g,e.g){case 0:m=i.i+i.g+s,n.c?k=yye(m,c,i,s):k=i.j,g=y.Math.max(h,m+p),l=y.Math.max(f,k+a);break;case 1:k=i.j+i.f+s,n.c?m=kye(k,c,i,s):m=i.i,g=y.Math.max(h,m+p),l=y.Math.max(f,k+a);break;case 2:m=h+s,k=0,g=h+s+p,l=y.Math.max(f,a);break;case 3:m=0,k=f+s,g=y.Math.max(h,p),l=f+s+a;break;default:throw T(new Gn("IllegalPlacementOption."))}return d=new tZ(n.a,g,l,e,m,k),d}function iOe(n){var e,t,i,r,c,s,f,h,l,a,d,g;if(f=n.d,d=u(v(n,(W(),I3)),15),e=u(v(n,M3),15),!(!d&&!e)){if(c=$(B(rw(n,(cn(),PH)))),s=$(B(rw(n,phn))),g=0,d){for(l=0,r=d.Kc();r.Ob();)i=u(r.Pb(),10),l=y.Math.max(l,i.o.b),g+=i.o.a;g+=c*(d.gc()-1),f.d+=l+s}if(t=0,e){for(l=0,r=e.Kc();r.Ob();)i=u(r.Pb(),10),l=y.Math.max(l,i.o.b),t+=i.o.a;t+=c*(e.gc()-1),f.a+=l+s}h=y.Math.max(g,t),h>n.o.a&&(a=(h-n.o.a)/2,f.b=y.Math.max(f.b,a),f.c=y.Math.max(f.c,a))}}function rOe(n){var e,t,i,r,c,s,f,h;for(c=new XAn,$le(c,(qp(),due)),i=(r=P$(n,F(fn,J,2,0,6,1)),new zv(new Fu(new PL(n,r).b)));i.b<i.d.gc();)t=(oe(i.b<i.d.gc()),Ae(i.d.Xb(i.c=i.b++))),s=Yen(La,t),s&&(e=dl(n,t),e.te()?f=e.te().a:e.qe()?f=""+e.qe().a:e.re()?f=""+e.re().a:f=e.Ib(),h=Jen(s,f),h!=null&&((Su(s.j,(pf(),pi))||Su(s.j,xn))&&Sk(g$(c,Ye),s,h),Su(s.j,Ih)&&Sk(g$(c,Vt),s,h),Su(s.j,Fd)&&Sk(g$(c,Qu),s,h),Su(s.j,E1)&&Sk(g$(c,Sr),s,h)));return c}function wy(n,e,t){var i,r,c,s,f,h,l,a;if(r=u(n.g,124),Pl(n.e,e))return dr(),u(e,69).xk()?new eT(e,n):new k7(e,n);for(l=ru(n.e.Dh(),e),i=0,f=0;f<n.i;++f){if(c=r[f],s=c.Lk(),l.am(s)){if(dr(),u(e,69).xk())return c;if(s==(n3(),_3)||s==F3){for(h=new mo(Jr(c.md()));++f<n.i;)c=r[f],s=c.Lk(),(s==_3||s==F3)&&Be(h,Jr(c.md()));return TV(u(e.Hk(),156),h.a)}else return a=c.md(),a!=null&&t&&L(e,102)&&u(e,19).Bb&hr&&(a=N5(n,e,f,i,a)),a}++i}return e.ik()}function _S(n,e,t,i){var r,c,s,f,h,l;if(h=ru(n.e.Dh(),e),c=u(n.g,124),Pl(n.e,e)){for(r=0,f=0;f<n.i;++f)if(s=c[f],h.am(s.Lk())){if(r==t)return dr(),u(e,69).xk()?s:(l=s.md(),l!=null&&i&&L(e,102)&&u(e,19).Bb&hr&&(l=N5(n,e,f,r,l)),l);++r}throw T(new Or(p8+t+Cd+r))}else{for(r=0,f=0;f<n.i;++f){if(s=c[f],h.am(s.Lk()))return dr(),u(e,69).xk()?s:(l=s.md(),l!=null&&i&&L(e,102)&&u(e,19).Bb&hr&&(l=N5(n,e,f,r,l)),l);++r}return e.ik()}}function KR(){KR=R,yQn=S(C(ye,1),_e,28,15,[Wi,1162261467,W5,1220703125,362797056,1977326743,W5,387420489,QS,214358881,429981696,815730721,1475789056,170859375,268435456,410338673,612220032,893871739,128e7,1801088541,113379904,148035889,191102976,244140625,308915776,387420489,481890304,594823321,729e6,887503681,W5,1291467969,1544804416,1838265625,60466176]),jQn=S(C(ye,1),_e,28,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 BR(n,e){var t,i,r,c,s,f,h,l,a,d;if(s=n.e,h=e.e,h==0)return n;if(s==0)return e.e==0?e:new Ya(-e.e,e.d,e.a);if(c=n.d,f=e.d,c+f==2)return t=vi(n.a[0],mr),i=vi(e.a[0],mr),s<0&&(t=n1(t)),h<0&&(i=n1(i)),dh(),SM(bs(t,i),0)?ia(bs(t,i)):U6(ia(n1(bs(t,i))));if(r=c!=f?c>f?1:-1:fY(n.a,e.a,c),r==-1)d=-h,a=s==h?ZD(e.a,f,n.a,c):e$(e.a,f,n.a,c);else if(d=s,s==h){if(r==0)return dh(),P8;a=ZD(n.a,c,e.a,f)}else a=e$(n.a,c,e.a,f);return l=new Ya(d,a.length,a),J6(l),l}function cOe(n,e){var t,i,r,c;if(c=$Un(e),!e.c&&(e.c=new q(Qu,e,9,9)),qt(new Cn(null,(!e.c&&(e.c=new q(Qu,e,9,9)),new On(e.c,16))),new H9n(c)),r=u(v(c,(W(),Hc)),21),QAe(e,r),r.Hc((pr(),cs)))for(i=new ne((!e.c&&(e.c=new q(Qu,e,9,9)),e.c));i.e!=i.i.gc();)t=u(ue(i),123),CLe(n,e,c,t);return u(z(e,(cn(),xd)),181).gc()!=0&&Sqn(e,c),on(un(v(c,ahn)))&&r.Fc(eO),kt(c,Tj)&&xjn(new zY($(B(v(c,Tj)))),c),x(z(e,Kw))===x((jl(),T1))?JNe(n,e,c):DNe(n,e,c),c}function uOe(n){var e,t,i,r,c,s,f,h;for(r=new M(n.b);r.a<r.c.c.length;)for(i=u(E(r),30),s=new M(Cb(i.a));s.a<s.c.c.length;)if(c=u(E(s),10),c$n(c)&&(t=u(v(c,(W(),o0)),313),!t.g&&t.d))for(e=t,h=t.d;h;)Kqn(h.i,h.k,!1,!0),fk(e.a),fk(h.i),fk(h.k),fk(h.b),Oi(h.c,e.c.d),Oi(e.c,null),$i(e.a,null),$i(h.i,null),$i(h.k,null),$i(h.b,null),f=new jJ(e.i,h.a,e.e,h.j,h.f),f.k=e.k,f.n=e.n,f.b=e.b,f.c=h.c,f.g=e.g,f.d=h.d,U(e.i,o0,f),U(h.a,o0,f),h=h.d,e=f}function Rc(n,e){var t,i,r,c,s,f,h;if(n==null)return null;if(c=n.length,c==0)return"";for(h=F(fs,gh,28,c,15,1),Ri(0,c,n.length),Ri(0,c,h.length),qIn(n,0,c,h,0),t=null,f=e,r=0,s=0;r<c;r++)i=h[r],Tzn(),i<=32&&I[i]&2?f?(!t&&(t=new ls(n)),G1e(t,r-s++)):(f=e,i!=32&&(!t&&(t=new ls(n)),N$(t,r-s,r-s+1," "))):f=!1;return f?t?(c=t.a.length,c>0?qo(t.a,0,c-1):""):(Ri(0,c-1,n.length),n.substr(0,c-1)):t?t.a:n}function oOe(n,e){var t,i,r,c,s,f,h;for(e.Ug("Sort By Input Model "+v(n,(cn(),Yh)),1),r=0,i=new M(n.b);i.a<i.c.c.length;){for(t=u(E(i),30),h=r==0?0:r-1,f=u(sn(n.b,h),30),s=new M(t.a);s.a<s.c.c.length;)c=u(E(s),10),x(v(c,Ft))!==x((Ai(),Ud))&&x(v(c,Ft))!==x(qc)&&(Ln(),Yt(c.j,new URn(f,u(v(n,Yh),284),rFn(c),on(un(v(n,mH))))),e.bh("Node "+c+" ports: "+c.j));Ln(),Yt(t.a,new wxn(f,u(v(n,Yh),284),u(v(n,_fn),390))),e.bh("Layer "+r+": "+t),++r}e.Vg()}function gw(n,e){var t,i,r,c,s;if(s=u(e,138),Gg(n),Gg(s),s.b!=null){if(n.c=!0,n.b==null){n.b=F(ye,_e,28,s.b.length,15,1),Oc(s.b,0,n.b,0,s.b.length);return}for(c=F(ye,_e,28,n.b.length+s.b.length,15,1),t=0,i=0,r=0;t<n.b.length||i<s.b.length;)t>=n.b.length?(c[r++]=s.b[i++],c[r++]=s.b[i++]):i>=s.b.length?(c[r++]=n.b[t++],c[r++]=n.b[t++]):s.b[i]<n.b[t]||s.b[i]===n.b[t]&&s.b[i+1]<n.b[t+1]?(c[r++]=s.b[i++],c[r++]=s.b[i++]):(c[r++]=n.b[t++],c[r++]=n.b[t++]);n.b=c}}function sOe(n,e){var t,i,r,c,s,f,h,l,a,d;return t=on(un(v(n,(W(),$w)))),f=on(un(v(e,$w))),i=u(v(n,yf),12),h=u(v(e,yf),12),r=u(v(n,Es),12),l=u(v(e,Es),12),a=!!i&&i==h,d=!!r&&r==l,!t&&!f?new DV(u(E(new M(n.j)),12).p==u(E(new M(e.j)),12).p,a,d):(c=(!on(un(v(n,$w)))||on(un(v(n,jj))))&&(!on(un(v(e,$w)))||on(un(v(e,jj)))),s=(!on(un(v(n,$w)))||!on(un(v(n,jj))))&&(!on(un(v(e,$w)))||!on(un(v(e,jj)))),new DV(a&&c||d&&s,a,d))}function ZUn(n){var e,t,i,r,c,s,f,h;for(i=0,t=0,h=new Mt,e=0,f=new M(n.n);f.a<f.c.c.length;)s=u(E(f),209),s.c.c.length==0?xt(h,s,h.c.b,h.c):(i=y.Math.max(i,s.d),t+=s.a+(e>0?n.i:0)),++e;for(IY(n.n,h),n.d=t,n.r=i,n.g=0,n.f=0,n.e=0,n.o=Pt,n.p=Pt,c=new M(n.b);c.a<c.c.c.length;)r=u(E(c),27),n.p=y.Math.min(n.p,r.g),n.g=y.Math.max(n.g,r.g),n.f=y.Math.max(n.f,r.f),n.o=y.Math.min(n.o,r.f),n.e+=r.f+n.i;n.a=n.e/n.b.c.length-n.i*((n.b.c.length-1)/n.b.c.length),vZ(n.j)}function nGn(n){var e,t,i,r;return n.Db&64?ox(n):(e=new mo(ycn),i=n.k,i?Be(Be((e.a+=' "',e),i),'"'):(!n.n&&(n.n=new q(Sr,n,1,7)),n.n.i>0&&(r=(!n.n&&(n.n=new q(Sr,n,1,7)),u(N(n.n,0),135)).a,!r||Be(Be((e.a+=' "',e),r),'"'))),t=(!n.b&&(n.b=new Dn(he,n,4,7)),!(n.b.i<=1&&(!n.c&&(n.c=new Dn(he,n,5,8)),n.c.i<=1))),t?e.a+=" [":e.a+=" ",Be(e,KX(new yL,new ne(n.b))),t&&(e.a+="]"),e.a+=iB,t&&(e.a+="["),Be(e,KX(new yL,new ne(n.c))),t&&(e.a+="]"),e.a)}function fOe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn;for(_=n.c,X=e.c,t=qr(_.a,n,0),i=qr(X.a,e,0),A=u(Rb(n,(gr(),Vu)).Kc().Pb(),12),kn=u(Rb(n,Jc).Kc().Pb(),12),D=u(Rb(e,Vu).Kc().Pb(),12),Rn=u(Rb(e,Jc).Kc().Pb(),12),P=hh(A.e),tn=hh(kn.g),O=hh(D.e),yn=hh(Rn.g),uw(n,i,X),s=O,a=0,m=s.length;a<m;++a)r=s[a],Oi(r,A);for(f=yn,d=0,k=f.length;d<k;++d)r=f[d],Zi(r,kn);for(uw(e,t,_),h=P,g=0,j=h.length;g<j;++g)r=h[g],Oi(r,D);for(c=tn,l=0,p=c.length;l<p;++l)r=c[l],Zi(r,Rn)}function hOe(n){var e,t,i,r,c,s,f;for(s=u(z(n,(Cg(),L2)),27),i=new ne((!s.e&&(s.e=new Dn(Vt,s,7,4)),s.e));i.e!=i.i.gc();)t=u(ue(i),74),f=new V(u(N((!t.a&&(t.a=new q(Tt,t,6,6)),t.a),0),166).j,u(N((!t.a&&(t.a=new q(Tt,t,6,6)),t.a),0),166).k),c=new V(u(N((!t.a&&(t.a=new q(Tt,t,6,6)),t.a),0),166).b,u(N((!t.a&&(t.a=new q(Tt,t,6,6)),t.a),0),166).c),r=new V(c.a-f.a,c.b-f.b),e=y.Math.atan2(r.b,r.a),u(N((!t.c&&(t.c=new Dn(he,t,5,8)),t.c),0),84).qf((oa(),yq),e)}function lOe(n,e){var t,i,r,c,s,f,h,l,a;for(e.Ug("Interactive Node Reorderer",1),a=(!n.a&&(n.a=new q(Ye,n,10,11)),n.a),f=new Z,r=new ne(a);r.e!=r.i.gc();)t=u(ue(r),27),Nf(t,(Bf(),Bj))&&Fn(f.c,t);for(c=new M(f);c.a<c.c.c.length;)t=u(E(c),27),rC(a,t);for(Ln(),Yt(f,new emn),s=new M(f);s.a<s.c.c.length;)t=u(E(s),27),l=u(z(t,(Bf(),Bj)),17).a,l=y.Math.min(l,a.i),v5(a,l,t);for(h=0,i=new ne(a);i.e!=i.i.gc();)t=u(ue(i),27),ht(t,(Bf(),g1n),Y(h)),++h;e.Vg()}function zen(n,e,t){var i,r,c,s,f,h,l,a;return y.Math.abs(e.s-e.c)<vh||y.Math.abs(t.s-t.c)<vh?0:(i=oqn(n,e.j,t.e),r=oqn(n,t.j,e.e),c=i==-1||r==-1,s=0,c?(i==-1&&(new ed((af(),Ea),t,e,1),++s),r==-1&&(new ed((af(),Ea),e,t,1),++s)):(f=Rg(e.j,t.s,t.c),f+=Rg(t.e,e.s,e.c),h=Rg(t.j,e.s,e.c),h+=Rg(e.e,t.s,t.c),l=i+16*f,a=r+16*h,l<a?new ed((af(),zw),e,t,a-l):l>a?new ed((af(),zw),t,e,l-a):l>0&&a>0&&(new ed((af(),zw),e,t,0),new ed(zw,t,e,0))),s)}function aOe(n,e,t){var i,r,c;for(n.a=new Z,c=ge(e.b,0);c.b!=c.d.c;){for(r=u(be(c),40);u(v(r,(lc(),Ph)),17).a>n.a.c.length-1;)nn(n.a,new bi(i2,Crn));i=u(v(r,Ph),17).a,t==(ci(),Kr)||t==Xr?(r.e.a<$(B(u(sn(n.a,i),42).a))&&QA(u(sn(n.a,i),42),r.e.a),r.e.a+r.f.a>$(B(u(sn(n.a,i),42).b))&&YA(u(sn(n.a,i),42),r.e.a+r.f.a)):(r.e.b<$(B(u(sn(n.a,i),42).a))&&QA(u(sn(n.a,i),42),r.e.b),r.e.b+r.f.b>$(B(u(sn(n.a,i),42).b))&&YA(u(sn(n.a,i),42),r.e.b+r.f.b))}}function eGn(n,e,t,i){var r,c,s,f,h,l,a;if(c=FC(i),f=on(un(v(i,(cn(),uhn)))),(f||on(un(v(n,wO))))&&!mg(u(v(n,Ft),101)))r=zp(c),h=Nen(n,t,t==(gr(),Jc)?r:xk(r));else switch(h=new Ic,ic(h,n),e?(a=h.n,a.a=e.a-n.n.a,a.b=e.b-n.n.b,o_n(a,0,0,n.o.a,n.o.b),gi(h,jUn(h,c))):(r=zp(c),gi(h,t==(gr(),Jc)?r:xk(r))),s=u(v(i,(W(),Hc)),21),l=h.j,c.g){case 2:case 1:(l==(en(),Xn)||l==ae)&&s.Fc((pr(),v2));break;case 4:case 3:(l==(en(),Zn)||l==Wn)&&s.Fc((pr(),v2))}return h}function tGn(n,e){var t,i,r,c,s,f;for(s=new sd(new Ua(n.f.b).a);s.b;){if(c=Nb(s),r=u(c.ld(),602),e==1){if(r.Af()!=(ci(),us)&&r.Af()!=Wf)continue}else if(r.Af()!=(ci(),Kr)&&r.Af()!=Xr)continue;switch(i=u(u(c.md(),42).b,86),f=u(u(c.md(),42).a,194),t=f.c,r.Af().g){case 2:i.g.c=n.e.a,i.g.b=y.Math.max(1,i.g.b+t);break;case 1:i.g.c=i.g.c+t,i.g.b=y.Math.max(1,i.g.b-t);break;case 4:i.g.d=n.e.b,i.g.a=y.Math.max(1,i.g.a+t);break;case 3:i.g.d=i.g.d+t,i.g.a=y.Math.max(1,i.g.a-t)}}}function dOe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k;for(f=F(ye,_e,28,e.b.c.length,15,1),l=F(A_,G,273,e.b.c.length,0,1),h=F(Qh,b1,10,e.b.c.length,0,1),d=n.a,g=0,p=d.length;g<p;++g){for(a=d[g],k=0,s=new M(a.e);s.a<s.c.c.length;)r=u(E(s),10),i=jX(r.c),++f[i],m=$(B(v(e,(cn(),Ws)))),f[i]>0&&h[i]&&(m=jg(n.b,h[i],r)),k=y.Math.max(k,r.c.c.b+m);for(c=new M(a.e);c.a<c.c.c.length;)r=u(E(c),10),r.n.b=k+r.d.d,t=r.c,t.c.b=k+r.d.d+r.o.b+r.d.a,l[qr(t.b.b,t,0)]=r.k,h[qr(t.b.b,t,0)]=r}}function iGn(n,e){var t,i,r,c,s,f,h,l,a,d,g;for(i=new ie(ce(Sl(e).a.Kc(),new En));pe(i);)t=u(fe(i),74),L(N((!t.b&&(t.b=new Dn(he,t,4,7)),t.b),0),193)||(h=Gr(u(N((!t.c&&(t.c=new Dn(he,t,5,8)),t.c),0),84)),D5(t)||(s=e.i+e.g/2,f=e.j+e.f/2,a=h.i+h.g/2,d=h.j+h.f/2,g=new Ni,g.a=a-s,g.b=d-f,c=new V(g.a,g.b),vm(c,e.g,e.f),g.a-=c.a,g.b-=c.b,s=a-g.a,f=d-g.b,l=new V(g.a,g.b),vm(l,h.g,h.f),g.a-=l.a,g.b-=l.b,a=s+g.a,d=f+g.b,r=Xg(t,!0,!0),H4(r,s),U4(r,f),_4(r,a),q4(r,d),iGn(n,h)))}function rGn(n){rb(n,new gd(eb(Yd(nb(Zd(new Fa,Qb),"ELK SPOrE Compaction"),"ShrinkTree is a compaction algorithm that maintains the topology of a layout. The relocation of diagram elements is based on contracting a spanning tree."),new dmn))),Q(n,Qb,YB,rn(QO)),Q(n,Qb,ocn,rn(Uq)),Q(n,Qb,scn,rn(qq)),Q(n,Qb,ZB,rn(U1n)),Q(n,Qb,nF,rn(Hq)),Q(n,Qb,Wb,q1n),Q(n,Qb,yw,8),Q(n,Qb,eF,rn(Zce)),Q(n,Qb,fcn,rn(_1n)),Q(n,Qb,hcn,rn(H1n)),Q(n,Qb,Uy,(_n(),!1))}function bOe(n,e){var t,i,r,c,s,f,h,l,a,d;for(e.Ug("Simple node placement",1),d=u(v(n,(W(),E2)),312),f=0,c=new M(n.b);c.a<c.c.c.length;){for(i=u(E(c),30),s=i.c,s.b=0,t=null,l=new M(i.a);l.a<l.c.c.length;)h=u(E(l),10),t&&(s.b+=ZY(h,t,d.c)),s.b+=h.d.d+h.o.b+h.d.a,t=h;f=y.Math.max(f,s.b)}for(r=new M(n.b);r.a<r.c.c.length;)for(i=u(E(r),30),s=i.c,a=(f-s.b)/2,t=null,l=new M(i.a);l.a<l.c.c.length;)h=u(E(l),10),t&&(a+=ZY(h,t,d.c)),a+=h.d.d,h.n.b=a,a+=h.o.b+h.d.a,t=h;e.Vg()}function wOe(n,e){var t,i,r,c;for(Eme(e.b.j),qt(_r(new Cn(null,new On(e.d,16)),new Apn),new Lpn),c=new M(e.d);c.a<c.c.c.length;){switch(r=u(E(c),105),r.e.g){case 0:t=u(sn(r.j,0),113).d.j,wG(r,u(ho(Sp(u(ot(r.k,t),15).Oc(),w2)),113)),bG(r,u(ho(_0(u(ot(r.k,t),15).Oc(),w2)),113));break;case 1:i=jZ(r),wG(r,u(ho(Sp(u(ot(r.k,i[0]),15).Oc(),w2)),113)),bG(r,u(ho(_0(u(ot(r.k,i[1]),15).Oc(),w2)),113));break;case 2:eEe(n,r);break;case 3:mCe(r);break;case 4:jCe(n,r)}Mme(r)}n.a=null}function FR(n,e,t){var i,r,c,s,f,h,l,a;return i=n.a.o==(If(),Xf)?Pt:li,f=IUn(n,new QMn(e,t)),!f.a&&f.c?(Re(n.d,f),i):f.a?(r=f.a.c,h=f.a.d,t?(l=n.a.c==(fh(),m0)?h:r,c=n.a.c==m0?r:h,s=n.a.g[c.i.p],a=$(n.a.p[s.p])+$(n.a.d[c.i.p])+c.n.b+c.a.b-$(n.a.d[l.i.p])-l.n.b-l.a.b):(l=n.a.c==(fh(),y1)?h:r,c=n.a.c==y1?r:h,a=$(n.a.p[n.a.g[c.i.p].p])+$(n.a.d[c.i.p])+c.n.b+c.a.b-$(n.a.d[l.i.p])-l.n.b-l.a.b),n.a.n[n.a.g[r.i.p].p]=(_n(),!0),n.a.n[n.a.g[h.i.p].p]=!0,a):i}function gOe(n,e,t,i){var r,c,s,f,h,l,a,d;if(i.gc()==0)return!1;if(h=(dr(),u(e,69).xk()),s=h?i:new Pb(i.gc()),Pl(n.e,e)){if(e.Si())for(a=i.Kc();a.Ob();)l=a.Pb(),BS(n,e,l,L(e,102)&&(u(e,19).Bb&hr)!=0)||(c=Rh(e,l),s.Fc(c));else if(!h)for(a=i.Kc();a.Ob();)l=a.Pb(),c=Rh(e,l),s.Fc(c)}else{for(d=ru(n.e.Dh(),e),r=u(n.g,124),f=0;f<n.i;++f)if(c=r[f],d.am(c.Lk()))throw T(new Gn(Zy));if(i.gc()>1)throw T(new Gn(Zy));h||(c=Rh(e,i.Kc().Pb()),s.Fc(c))}return WQ(n,gnn(n,e,t),s)}function HS(n,e,t){var i,r,c,s,f,h,l,a;if(Pl(n.e,e))h=(dr(),u(e,69).xk()?new eT(e,n):new k7(e,n)),jS(h.c,h.b),I6(h,u(t,16));else{for(a=ru(n.e.Dh(),e),i=u(n.g,124),s=0;s<n.i;++s)if(r=i[s],c=r.Lk(),a.am(c)){if(c==(n3(),_3)||c==F3){for(l=aZ(n,e,t),f=s,l?dw(n,s):++s;s<n.i;)r=i[s],c=r.Lk(),c==_3||c==F3?dw(n,s):++s;l||u(Bg(n,f,Rh(e,t)),76)}else aZ(n,e,t)?dw(n,s):u(Bg(n,s,(dr(),u(e,69).xk()?u(t,76):Rh(e,t))),76);return}aZ(n,e,t)||ve(n,(dr(),u(e,69).xk()?u(t,76):Rh(e,t)))}}function cGn(n,e,t){var i,r,c,s,f,h,l,a;return rt(t,n.b)||(n.b=t,c=new L0n,s=u(Wr(_r(new Cn(null,new On(t.f,16)),c),W0(new Y2,new Z2,new np,new ep,S(C(xr,1),G,108,0,[(Gu(),Sw),Yr]))),21),n.e=!0,n.f=!0,n.c=!0,n.d=!0,r=s.Hc((Vp(),uj)),i=s.Hc(oj),r&&!i&&(n.f=!1),!r&&i&&(n.d=!1),r=s.Hc(cj),i=s.Hc(sj),r&&!i&&(n.c=!1),!r&&i&&(n.e=!1)),a=u(n.a.Ve(e,t),42),h=u(a.a,17).a,l=u(a.b,17).a,f=!1,h<0?n.c||(f=!0):n.e||(f=!0),l<0?n.d||(f=!0):n.f||(f=!0),f?cGn(n,a,t):a}function pOe(n){var e,t,i,r;r=n.o,K0(),n.A.dc()||rt(n.A,ron)?e=r.b:(e=ey(n.f),n.A.Hc((go(),iE))&&!n.B.Hc((io(),I9))&&(e=y.Math.max(e,ey(u(Mr(n.p,(en(),Zn)),252))),e=y.Math.max(e,ey(u(Mr(n.p,Wn),252)))),t=Kxn(n),t&&(e=y.Math.max(e,t.b)),n.A.Hc(rE)&&(n.q==(Ai(),tl)||n.q==qc)&&(e=y.Math.max(e,nT(u(Mr(n.b,(en(),Zn)),127))),e=y.Math.max(e,nT(u(Mr(n.b,Wn),127))))),on(un(n.e.Tf().of((He(),Vw))))?r.b=y.Math.max(r.b,e):r.b=e,i=n.f.i,i.d=0,i.a=e,DR(n.f)}function uGn(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k;for(d=0;d<e.length;d++){for(f=n.Kc();f.Ob();)c=u(f.Pb(),230),c.hg(d,e);for(g=0;g<e[d].length;g++){for(h=n.Kc();h.Ob();)c=u(h.Pb(),230),c.ig(d,g,e);for(k=e[d][g].j,p=0;p<k.c.length;p++){for(l=n.Kc();l.Ob();)c=u(l.Pb(),230),c.jg(d,g,p,e);for(m=(Nn(p,k.c.length),u(k.c[p],12)),t=0,r=new Lf(m.b);tc(r.a)||tc(r.b);)for(i=u(tc(r.a)?E(r.a):E(r.b),18),a=n.Kc();a.Ob();)c=u(a.Pb(),230),c.gg(d,g,p,t++,i,e)}}}for(s=n.Kc();s.Ob();)c=u(s.Pb(),230),c.fg()}function mOe(n,e){var t,i,r,c,s,f,h;for(n.b=$(B(v(e,(cn(),T2)))),n.c=$(B(v(e,Kd))),n.d=u(v(e,MH),350),n.a=u(v(e,fO),282),r7e(e),f=u(Wr(ut(ut(rc(rc(new Cn(null,new On(e.b,16)),new Vwn),new Wwn),new Jwn),new Qwn),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[(Gu(),Yr)]))),15),r=f.Kc();r.Ob();)t=u(r.Pb(),18),s=u(v(t,(W(),Ld)),15),s.Jc(new Y9n(n)),U(t,Ld,null);for(i=f.Kc();i.Ob();)t=u(i.Pb(),18),h=u(v(t,(W(),ffn)),18),c=u(v(t,M2),15),LNe(n,c,h),U(t,M2,null)}function _R(n,e){var t,i,r,c,s,f,h;if(n.a){if(f=n.a.xe(),h=null,f!=null?e.a+=""+f:(s=n.a.mk(),s!=null&&(c=ih(s,wu(91)),c!=-1?(h=(zn(c,s.length+1),s.substr(c)),e.a+=""+qo(s==null?gu:(Jn(s),s),0,c)):e.a+=""+s)),n.d&&n.d.i!=0){for(r=!0,e.a+="<",i=new ne(n.d);i.e!=i.i.gc();)t=u(ue(i),89),r?r=!1:e.a+=ur,_R(t,e);e.a+=">"}h!=null&&(e.a+=""+h)}else n.e?(f=n.e.zb,f!=null&&(e.a+=""+f)):(e.a+="?",n.b?(e.a+=" super ",_R(n.b,e)):n.f&&(e.a+=" extends ",_R(n.f,e)))}function vOe(n){n.b=null,n.a=null,n.o=null,n.q=null,n.v=null,n.w=null,n.B=null,n.p=null,n.Q=null,n.R=null,n.S=null,n.T=null,n.U=null,n.V=null,n.W=null,n.bb=null,n.eb=null,n.ab=null,n.H=null,n.db=null,n.c=null,n.d=null,n.f=null,n.n=null,n.r=null,n.s=null,n.u=null,n.G=null,n.J=null,n.e=null,n.j=null,n.i=null,n.g=null,n.k=null,n.t=null,n.F=null,n.I=null,n.L=null,n.M=null,n.O=null,n.P=null,n.$=null,n.N=null,n.Z=null,n.cb=null,n.K=null,n.D=null,n.A=null,n.C=null,n._=null,n.fb=null,n.X=null,n.Y=null,n.gb=!1,n.hb=!1}function kOe(n){var e,t,i,r;if(i=ZR((!n.c&&(n.c=J7(vc(n.f))),n.c),0),n.e==0||n.a==0&&n.f!=-1&&n.e<0)return i;if(e=$Q(n)<0?1:0,t=n.e,r=(i.length+1+y.Math.abs(wi(n.e)),new fg),e==1&&(r.a+="-"),n.e>0)if(t-=i.length-e,t>=0){for(r.a+="0.";t>Od.length;t-=Od.length)QPn(r,Od);$Sn(r,Od,wi(t)),Be(r,(zn(e,i.length+1),i.substr(e)))}else t=e-t,Be(r,qo(i,e,wi(t))),r.a+=".",Be(r,DW(i,wi(t)));else{for(Be(r,(zn(e,i.length+1),i.substr(e)));t<-Od.length;t+=Od.length)QPn(r,Od);$Sn(r,Od,wi(-t))}return r.a}function HR(n){var e,t,i,r,c,s,f,h,l;return!(n.k!=(Vn(),zt)||n.j.c.length<=1||(c=u(v(n,(cn(),Ft)),101),c==(Ai(),qc))||(r=(cw(),(n.q?n.q:(Ln(),Ln(),Wh))._b(d0)?i=u(v(n,d0),203):i=u(v(Hi(n),z8),203),i),r==CO)||!(r==I2||r==P2)&&(s=$(B(rw(n,X8))),e=u(v(n,Sj),140),!e&&(e=new pV(s,s,s,s)),l=uc(n,(en(),Wn)),h=e.d+e.a+(l.gc()-1)*s,h>n.o.b||(t=uc(n,Zn),f=e.d+e.a+(t.gc()-1)*s,f>n.o.b)))}function yOe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j;e.Ug("Orthogonal edge routing",1),l=$(B(v(n,(cn(),S2)))),t=$(B(v(n,T2))),i=$(B(v(n,Kd))),g=new lD(0,t),j=0,s=new xi(n.b,0),f=null,a=null,h=null,d=null;do a=s.b<s.d.gc()?(oe(s.b<s.d.gc()),u(s.d.Xb(s.c=s.b++),30)):null,d=a?a.a:null,f&&(Ven(f,j),j+=f.c.a),k=f?j+i:j,m=Zen(g,n,h,d,k),r=!f||PM(h,(AS(),Lj)),c=!a||PM(d,(AS(),Lj)),m>0?(p=(m-1)*t,f&&(p+=i),a&&(p+=i),p<l&&!r&&!c&&(p=l),j+=p):!r&&!c&&(j+=l),f=a,h=d;while(a);n.f.a=j,e.Vg()}function qS(n,e){var t,i,r,c,s,f,h,l,a,d;if(a=null,n.d&&(a=u(Dc(n.d,e),142)),!a){if(c=n.a.vi(),d=c.i,!n.d||c6(n.d)!=d){for(h=new de,n.d&&s5(h,n.d),l=h.f.c+h.i.c,f=l;f<d;++f)i=u(N(c,f),142),r=r1(n.e,i).xe(),t=u(r==null?Vc(h.f,null,i):$b(h.i,r,i),142),t&&t!=i&&(r==null?Vc(h.f,null,t):$b(h.i,r,t));if(h.f.c+h.i.c!=d)for(s=0;s<l;++s)i=u(N(c,s),142),r=r1(n.e,i).xe(),t=u(r==null?Vc(h.f,null,i):$b(h.i,r,i),142),t&&t!=i&&(r==null?Vc(h.f,null,t):$b(h.i,r,t));n.d=h}a=u(Dc(n.d,e),142)}return a}function qR(n,e,t,i,r,c,s){var f,h,l,a,d,g,p;return d=on(un(v(e,(cn(),ohn)))),g=null,c==(gr(),Vu)&&i.c.i==t?g=i.c:c==Jc&&i.d.i==t&&(g=i.d),l=s,!l||!d||g?(a=(en(),sc),g?a=g.j:mg(u(v(t,Ft),101))&&(a=c==Vu?Wn:Zn),h=jOe(n,e,t,c,a,i),f=JD((Hi(t),i)),c==Vu?(Zi(f,u(sn(h.j,0),12)),Oi(f,r)):(Zi(f,r),Oi(f,u(sn(h.j,0),12))),l=new aKn(i,f,h,u(v(h,(W(),st)),12),c,!g)):(nn(l.e,i),p=y.Math.max($(B(v(l.d,m1))),$(B(v(i,m1)))),U(l.d,m1,p)),In(n.a,i,new zM(l.d,e,c)),l}function UR(){UR=R;var n;Hdn=new sjn,$oe=F(fn,J,2,0,6,1),Noe=lf(Up(33,58),Up(1,26)),Doe=lf(Up(97,122),Up(65,90)),Rdn=Up(48,57),Aoe=lf(Noe,0),Loe=lf(Doe,Rdn),Kdn=lf(lf(0,Up(1,6)),Up(33,38)),Bdn=lf(lf(Rdn,Up(65,70)),Up(97,102)),xoe=lf(Aoe,ZC("-_.!~*'()")),Roe=lf(Loe,GC("-_.!~*'()")),ZC(eJn),GC(eJn),lf(xoe,ZC(";:@&=+$,")),lf(Roe,GC(";:@&=+$,")),Fdn=ZC(":/?#"),_dn=GC(":/?#"),L9=ZC("/?#"),N9=GC("/?#"),n=new ni,n.a.zc("jar",n),n.a.zc("zip",n),n.a.zc("archive",n),jA=(Ln(),new r4(n))}function jOe(n,e,t,i,r,c){var s,f,h,l,a,d;return s=null,l=i==(gr(),Vu)?c.c:c.d,h=FC(e),l.i==t?(s=u(ee(n.b,l),10),s||(s=my(l,u(v(t,(cn(),Ft)),101),r,CPe(l),null,l.n,l.o,h,e),U(s,(W(),st),l),Ve(n.b,l,s))):(s=my((a=new xA,d=$(B(v(e,(cn(),Ws))))/2,Sk(a,Fw,d),a),u(v(t,Ft),101),r,i==Vu?-1:1,null,new Ni,new V(0,0),h,e),f=eye(s,t,i),U(s,(W(),st),f),Ve(n.b,f,s)),u(v(e,(W(),Hc)),21).Fc((pr(),cs)),mg(u(v(e,(cn(),Ft)),101))?U(e,Ft,(Ai(),Fv)):U(e,Ft,(Ai(),Qf)),s}function Lm(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m;f=0,m=0,h=LT(n.g,n.g.length),c=n.e,s=n.j,i=n.b,r=n.c;do{for(p=0,a=new M(n.q);a.a<a.c.c.length;)l=u(E(a),10),g=CGn(n,l),t=!0,(n.r==(ps(),Pj)||n.r==Ij)&&(t=on(un(g.b))),u(g.a,17).a<0&&t?(++p,h=LT(n.g,n.g.length),n.e=n.e+u(g.a,17).a,m+=c-n.e,c=n.e+u(g.a,17).a,s=n.j,i=Cb(n.b),r=Cb(n.c)):(n.g=LT(h,h.length),n.e=c,n.b=(Pe(i),i?new _u(i):y4(new M(i))),n.c=(Pe(r),r?new _u(r):y4(new M(r))),n.j=s);++f,d=p!=0&&on(un(e.Kb(new bi(Y(m),Y(f)))))}while(d)}function EOe(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn;return s=n.f,g=e.f,f=s==(x5(),L3)||s==a9,p=g==L3||g==a9,h=s==D2||s==d9,m=g==D2||g==d9,l=s==D2||s==L3,k=g==D2||g==L3,f&&p?n.f==a9?n:e:h&&m?n.f==d9?n:e:l&&k?(s==D2?(d=n,a=e):(d=e,a=n),c=(j=t.j+t.f,P=d.e+i.f,O=y.Math.max(j,P),A=O-y.Math.min(t.j,d.e),D=d.d+i.g-t.i,D*A),r=(_=t.i+t.g,X=a.d+i.g,tn=y.Math.max(_,X),yn=tn-y.Math.min(t.i,a.d),kn=a.e+i.f-t.j,yn*kn),c<=r?n.f==D2?n:e:n.f==L3?n:e):n}function oGn(n,e){var t,i,r,c,s,f,h,l,a,d;if(U(e,(pt(),Nv),0),h=u(v(e,$O),40),e.d.b==0)h?(a=$(B(v(h,j1)))+n.b+OY(n,h,e),U(e,j1,a)):U(e,j1,0);else{for(i=(c=ge(new sl(e).a.d,0),new sg(c));Q9(i.a);)t=u(be(i.a),65).c,oGn(n,t);f=u(DM((s=ge(new sl(e).a.d,0),new sg(s))),40),d=u(O1e((r=ge(new sl(e).a.d,0),new sg(r))),40),l=($(B(v(d,j1)))+$(B(v(f,j1))))/2,h?(a=$(B(v(h,j1)))+n.b+OY(n,h,e),U(e,j1,a),U(e,Nv,$(B(v(e,j1)))-l),$Ae(n,e)):U(e,j1,l)}}function MOe(n){var e,t,i,r,c,s,f,h,l,a,d;for(a=n.e.a.c.length,s=new M(n.e.a);s.a<s.c.c.length;)c=u(E(s),125),c.j=!1;for(n.i=F(ye,_e,28,a,15,1),n.g=F(ye,_e,28,a,15,1),n.n=new Z,r=0,d=new Z,h=new M(n.e.a);h.a<h.c.c.length;)f=u(E(h),125),f.d=r++,f.b.a.c.length==0&&nn(n.n,f),hi(d,f.g);for(e=0,i=new M(d);i.a<i.c.c.length;)t=u(E(i),218),t.c=e++,t.f=!1;l=d.c.length,n.b==null||n.b.length<l?(n.b=F(Ii,Cr,28,l,15,1),n.c=F(so,Xh,28,l,16,1)):e6(n.c),n.d=d,n.p=new MN(Q0(n.d.c.length)),n.j=1}function TOe(n,e){var t,i,r,c,s,f,h,l,a;if(!(e.e.c.length<=1)){for(n.f=e,n.d=u(v(n.f,(Uk(),Eon)),391),n.g=u(v(n.f,Son),17).a,n.e=$(B(v(n.f,Mon))),n.c=$(B(v(n.f,EI))),BIn(n.b),r=new M(n.f.c);r.a<r.c.c.length;)i=u(E(r),290),Pen(n.b,i.c,i,null),Pen(n.b,i.d,i,null);for(f=n.f.e.c.length,n.a=Wa(Ii,[J,Cr],[109,28],15,[f,f],2),l=new M(n.f.e);l.a<l.c.c.length;)h=u(E(l),153),QIe(n,h,n.a[h.a]);for(n.i=Wa(Ii,[J,Cr],[109,28],15,[f,f],2),c=0;c<f;++c)for(s=0;s<f;++s)t=n.a[c][s],a=1/(t*t),n.i[c][s]=a}}function sGn(n,e){var t,i,r,c,s,f,h,l,a,d,g,p;if(f=e.ah(),f||e.Ug(MXn,1),t=u(v(n,(W(),bH)),15),s=1/t.gc(),e._g())for(e.bh("ELK Layered uses the following "+t.gc()+" modules:"),p=0,g=t.Kc();g.Ob();)a=u(g.Pb(),47),i=(p<10?"0":"")+p++,e.bh(" Slot "+i+": "+Xa(wo(a)));for(d=t.Kc();d.Ob();){if(a=u(d.Pb(),47),e.$g())return;a.Kf(n,e.eh(s))}for(c=new M(n.b);c.a<c.c.c.length;)r=u(E(c),30),hi(n.a,r.a),r.a.c.length=0;for(l=new M(n.a);l.a<l.c.c.length;)h=u(E(l),10),$i(h,null);n.b.c.length=0,f||e.Vg()}function COe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p;if(l=new Z,!kt(n,(W(),fH)))return l;for(i=u(v(n,fH),15).Kc();i.Ob();)e=u(i.Pb(),10),qOe(e,n),Fn(l.c,e);for(c=new M(n.b);c.a<c.c.c.length;)for(r=u(E(c),30),f=new M(r.a);f.a<f.c.c.length;)s=u(E(f),10),s.k==(Vn(),Zt)&&(h=u(v(s,cO),10),h&&(a=new Ic,ic(a,s),d=u(v(s,gc),64),gi(a,d),g=u(sn(h.j,0),12),p=new Eb,Zi(p,a),Oi(p,g)));for(t=new M(l);t.a<t.c.c.length;)e=u(E(t),10),$i(e,u(sn(n.b,n.b.c.length-1),30));return l}function fGn(n,e,t){var i,r,c,s,f,h,l,a,d;for(d=new Z,a=new aJ(0,t),c=0,wC(a,new U$(0,0,a,t)),r=0,l=new ne(n);l.e!=l.i.gc();)h=u(ue(l),27),i=u(sn(a.a,a.a.c.length-1),172),f=r+h.g+(u(sn(a.a,0),172).b.c.length==0?0:t),(f>e||on(un(z(h,(Bf(),Fj)))))&&(r=0,c+=a.b+t,Fn(d.c,a),a=new aJ(c,t),i=new U$(0,a.f,a,t),wC(a,i),r=0),i.b.c.length==0||!on(un(z(St(h),(Bf(),Lq))))&&(h.f>=i.o&&h.f<=i.f||i.a*.5<=h.f&&i.a*1.5>=h.f)?$Y(i,h):(s=new U$(i.s+i.r+t,a.f,a,t),wC(a,s),$Y(s,h)),r=h.i+h.g;return Fn(d.c,a),d}function z5(n){var e,t,i,r;if(!(n.b==null||n.b.length<=2)&&!n.a){for(e=0,r=0;r<n.b.length;){for(e!=r?(n.b[e]=n.b[r++],n.b[e+1]=n.b[r++]):r+=2,t=n.b[e+1];r<n.b.length&&!(t+1<n.b[r]);)if(t+1==n.b[r])n.b[e+1]=n.b[r+1],t=n.b[e+1],r+=2;else if(t>=n.b[r+1])r+=2;else if(t<n.b[r+1])n.b[e+1]=n.b[r+1],t=n.b[e+1],r+=2;else throw T(new ec("Token#compactRanges(): Internel Error: ["+n.b[e]+","+n.b[e+1]+"] ["+n.b[r]+","+n.b[r+1]+"]"));e+=2}e!=n.b.length&&(i=F(ye,_e,28,e,15,1),Oc(n.b,0,i,0,e),n.b=i),n.a=!0}}function SOe(n,e){var t,i,r,c,s,f,h;for(s=Cp(n.a).Kc();s.Ob();){if(c=u(s.Pb(),18),c.b.c.length>0)for(i=new _u(u(ot(n.a,c),21)),Ln(),Yt(i,new LG(e)),r=new xi(c.b,0);r.b<r.d.gc();){switch(t=(oe(r.b<r.d.gc()),u(r.d.Xb(r.c=r.b++),72)),f=-1,u(v(t,(cn(),Sh)),278).g){case 1:f=i.c.length-1;break;case 0:f=Dke(i);break;case 2:f=0}f!=-1&&(h=(Nn(f,i.c.length),u(i.c[f],249)),nn(h.b.b,t),u(v(Hi(h.b.c.i),(W(),Hc)),21).Fc((pr(),kv)),u(v(Hi(h.b.c.i),Hc),21).Fc(vv),bo(r),U(t,ufn,c))}Zi(c,null),Oi(c,null)}}function POe(n,e){var t,i,r,c;return t=new j0n,i=u(Wr(_r(new Cn(null,new On(n.f,16)),t),W0(new Y2,new Z2,new np,new ep,S(C(xr,1),G,108,0,[(Gu(),Sw),Yr]))),21),r=i.gc(),r=r==2?1:0,r==1&&ob(Kk(u(Wr(ut(i.Lc(),new E0n),Lxn(Tl(0),new KU)),168).a,2),0)&&(r=0),i=u(Wr(_r(new Cn(null,new On(e.f,16)),t),W0(new Y2,new Z2,new np,new ep,S(C(xr,1),G,108,0,[Sw,Yr]))),21),c=i.gc(),c=c==2?1:0,c==1&&ob(Kk(u(Wr(ut(i.Lc(),new M0n),Lxn(Tl(0),new KU)),168).a,2),0)&&(c=0),r<c?-1:r==c?0:1}function hGn(n){var e,t,i,r,c,s,f,h,l,a,d,g;for(e=Pf(n),c=on(un(z(e,(cn(),Bw)))),a=0,r=0,l=new ne((!n.e&&(n.e=new Dn(Vt,n,7,4)),n.e));l.e!=l.i.gc();)h=u(ue(l),74),f=_b(h),s=f&&c&&on(un(z(h,Dd))),g=Gr(u(N((!h.c&&(h.c=new Dn(he,h,5,8)),h.c),0),84)),f&&s?++r:f&&!s?++a:St(g)==e||g==e?++r:++a;for(i=new ne((!n.d&&(n.d=new Dn(Vt,n,8,5)),n.d));i.e!=i.i.gc();)t=u(ue(i),74),f=_b(t),s=f&&c&&on(un(z(t,Dd))),d=Gr(u(N((!t.b&&(t.b=new Dn(he,t,4,7)),t.b),0),84)),f&&s?++a:f&&!s?++r:St(d)==e||d==e?++a:++r;return a-r}function IOe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p;if(e.Ug("Edge splitting",1),n.b.c.length<=2){e.Vg();return}for(c=new xi(n.b,0),s=(oe(c.b<c.d.gc()),u(c.d.Xb(c.c=c.b++),30));c.b<c.d.gc();)for(r=s,s=(oe(c.b<c.d.gc()),u(c.d.Xb(c.c=c.b++),30)),h=new M(r.a);h.a<h.c.c.length;)for(f=u(E(h),10),a=new M(f.j);a.a<a.c.c.length;)for(l=u(E(a),12),i=new M(l.g);i.a<i.c.c.length;)t=u(E(i),18),g=t.d,d=g.i.c,d!=r&&d!=s&&kqn(t,(p=new Cl(n),Ha(p,(Vn(),Ti)),U(p,(W(),st),t),U(p,(cn(),Ft),(Ai(),qc)),$i(p,s),p));e.Vg()}function OOe(n,e){var t,i,r,c,s,f,h,l,a,d,g;for(a=new Z,g=new ni,s=e.b,r=0;r<s.c.length;r++){for(l=(Nn(r,s.c.length),u(s.c[r],30)).a,a.c.length=0,c=0;c<l.c.length;c++)f=n.a[r][c],f.p=c,f.k==(Vn(),_c)&&Fn(a.c,f),Go(u(sn(e.b,r),30).a,c,f),f.j.c.length=0,hi(f.j,u(u(sn(n.b,r),15).Xb(c),16)),Ep(u(v(f,(cn(),Ft)),101))||U(f,Ft,(Ai(),Ud));for(i=new M(a);i.a<i.c.c.length;)t=u(E(i),10),d=cPe(t),g.a.zc(d,g),g.a.zc(t,g)}for(h=g.a.ec().Kc();h.Ob();)f=u(h.Pb(),10),Ln(),Yt(f.j,(cm(),jsn)),f.i=!0,Snn(f)}function lGn(n){var e,t,i,r,c;return n.g!=null?n.g:n.a<32?(n.g=WLe(vc(n.f),wi(n.e)),n.g):(r=ZR((!n.c&&(n.c=J7(vc(n.f))),n.c),0),n.e==0?r:(e=(!n.c&&(n.c=J7(vc(n.f))),n.c).e<0?2:1,t=r.length,i=-n.e+t-e,c=new x1,c.a+=""+r,n.e>0&&i>=-6?i>=0?E7(c,t-wi(n.e),"."):(N$(c,e-1,e-1,"0."),E7(c,e+1,ws(Od,0,-wi(i)-1))):(t-e>=1&&(E7(c,e,"."),++t),E7(c,t,"E"),i>0&&E7(c,++t,"+"),E7(c,++t,""+_6(vc(i)))),n.g=c.a,n.g))}function AOe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn;i=$(B(v(e,(cn(),fhn)))),_=u(v(e,V8),17).a,g=4,r=3,X=20/_,p=!1,h=0,s=et;do{for(c=h!=1,d=h!=0,tn=0,j=n.a,O=0,D=j.length;O<D;++O)m=j[O],m.f=null,mLe(n,m,c,d,i),tn+=y.Math.abs(m.a);do f=cIe(n,e);while(f);for(k=n.a,P=0,A=k.length;P<A;++P)if(m=k[P],t=kW(m).a,t!=0)for(a=new M(m.e);a.a<a.c.c.length;)l=u(E(a),10),l.n.b+=t;h==0||h==1?(--g,g<=0&&(tn<s||-g>_)?(h=2,s=et):h==0?(h=1,s=tn):(h=0,s=tn)):(p=tn>=s||s-tn<X,s=tn,p&&--r)}while(!(p&&r<=0))}function GR(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m;for(m=new de,c=n.a.ec().Kc();c.Ob();)i=u(c.Pb(),177),Ve(m,i,t.af(i));for(s=(Pe(n),n?new _u(n):y4(n.a.ec().Kc())),Yt(s,new O9n(m)),f=HT(s),h=new NM(e),p=new de,Vc(p.f,e,h);f.a.gc()!=0;){for(l=null,a=null,d=null,r=f.a.ec().Kc();r.Ob();)if(i=u(r.Pb(),177),$(B(Fr(wr(m.f,i))))<=Pt){if(Zc(p,i.a)&&!Zc(p,i.b)){a=i.b,d=i.a,l=i;break}if(Zc(p,i.b)&&!Zc(p,i.a)){a=i.a,d=i.b,l=i;break}}if(!l)break;g=new NM(a),nn(u(Fr(wr(p.f,d)),225).a,g),Vc(p.f,a,g),f.a.Bc(l)!=null}return h}function LOe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p;for(t.Ug("Depth-first cycle removal",1),d=e.a,a=d.c.length,n.c=new Z,n.d=F(so,Xh,28,a,16,1),n.a=F(so,Xh,28,a,16,1),n.b=new Z,s=0,l=new M(d);l.a<l.c.c.length;)h=u(E(l),10),h.p=s,D4(ji(h))&&nn(n.c,h),++s;for(p=new M(n.c);p.a<p.c.c.length;)g=u(E(p),10),knn(n,g);for(c=0;c<a;c++)n.d[c]||(f=(Nn(c,d.c.length),u(d.c[c],10)),knn(n,f));for(r=new M(n.b);r.a<r.c.c.length;)i=u(E(r),18),Ub(i,!0),U(e,(W(),kj),(_n(),!0));n.c=null,n.d=null,n.a=null,n.b=null,t.Vg()}function NOe(n,e){Vg();var t,i,r,c,s,f;return c=e.c-(n.c+n.b),r=n.c-(e.c+e.b),s=n.d-(e.d+e.a),t=e.d-(n.d+n.a),i=y.Math.max(r,c),f=y.Math.max(s,t),Cf(),Fs(jh),(y.Math.abs(i)<=jh||i==0||isNaN(i)&&isNaN(0)?0:i<0?-1:i>0?1:sb(isNaN(i),isNaN(0)))>=0^(Fs(jh),(y.Math.abs(f)<=jh||f==0||isNaN(f)&&isNaN(0)?0:f<0?-1:f>0?1:sb(isNaN(f),isNaN(0)))>=0)?y.Math.max(f,i):(Fs(jh),(y.Math.abs(i)<=jh||i==0||isNaN(i)&&isNaN(0)?0:i<0?-1:i>0?1:sb(isNaN(i),isNaN(0)))>0?y.Math.sqrt(f*f+i*i):-y.Math.sqrt(f*f+i*i))}function pd(n,e){var t,i,r,c,s,f;if(e){if(!n.a&&(n.a=new KE),n.e==2){RE(n.a,e);return}if(e.e==1){for(r=0;r<e.Pm();r++)pd(n,e.Lm(r));return}if(f=n.a.a.c.length,f==0){RE(n.a,e);return}if(s=u(kb(n.a,f-1),122),!((s.e==0||s.e==10)&&(e.e==0||e.e==10))){RE(n.a,e);return}c=e.e==0?2:e.Mm().length,s.e==0?(t=new i6,i=s.Km(),i>=hr?Er(t,DY(i)):C4(t,i&ui),s=new OD(10,null,0),wwe(n.a,s,f-1)):(t=(s.Mm().length+c,new i6),Er(t,s.Mm())),e.e==0?(i=e.Km(),i>=hr?Er(t,DY(i)):C4(t,i&ui)):Er(t,e.Mm()),u(s,530).b=t.a}}function DOe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j;if(!t.dc()){for(f=0,g=0,i=t.Kc(),m=u(i.Pb(),17).a;f<e.f;){if(f==m&&(g=0,i.Ob()?m=u(i.Pb(),17).a:m=e.f+1),f!=g){for(j=u(sn(n.b,f),30),p=u(sn(n.b,g),30),k=Cb(j.a),d=new M(k);d.a<d.c.c.length;)if(a=u(E(d),10),uw(a,p.a.c.length,p),g==0)for(s=Cb(ji(a)),c=new M(s);c.a<c.c.c.length;)r=u(E(c),18),Ub(r,!0),U(n,(W(),kj),(_n(),!0)),gGn(n,r,1)}++g,++f}for(h=new xi(n.b,0);h.b<h.d.gc();)l=(oe(h.b<h.d.gc()),u(h.d.Xb(h.c=h.b++),30)),l.a.c.length==0&&bo(h)}}function $Oe(n,e,t){var i,r,c;if(r=u(v(e,(cn(),fO)),282),r!=(jm(),x8)){switch(t.Ug("Horizontal Compaction",1),n.a=e,c=new zDn,i=new uHn((c.d=e,c.c=u(v(c.d,$l),223),CSe(c),NAe(c),DSe(c),c.a)),yhe(i,n.b),u(v(e,Bfn),431).g){case 1:Gjn(i,new pxn(n.a));break;default:Gjn(i,(JW(),FQn))}switch(r.g){case 1:$5(i);break;case 2:$5(US(i,(ci(),Xr)));break;case 3:$5(zjn(US($5(i),(ci(),Xr)),new q2n));break;case 4:$5(zjn(US($5(i),(ci(),Xr)),new g7n(c)));break;case 5:$5(khe(i,QZn))}US(i,(ci(),Kr)),i.e=!0,sLe(c),t.Vg()}}function xOe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A;for(s=e.b,a=s.o,h=s.d,i=$(B(nS(s,(cn(),Ws)))),r=$(B(nS(s,C2))),l=$(B(nS(s,OH))),f=new sL,zV(f,h.d,h.c,h.a,h.b),g=zSe(e,i,r,l),P=new M(e.d);P.a<P.c.c.length;){for(j=u(E(P),105),m=j.f.a.ec().Kc();m.Ob();)p=u(m.Pb(),340),c=p.a,d=Cye(p),t=(O=new Tu,$Fn(p,p.c,g,O),Zye(p,d,g,O),$Fn(p,p.d,g,O),O),t=n.ng(p,d,t),vo(c.a),Ki(c.a,t),qt(new Cn(null,new On(t,16)),new FMn(a,f));k=j.i,k&&(bye(j,k,g,r),A=new rr(k.g),cZ(a,f,A),tt(A,k.j),cZ(a,f,A))}zV(h,f.d,f.c,f.a,f.b)}function ROe(n,e,t,i,r,c,s,f){var h,l,a,d;switch(h=Af(S(C(PDe,1),Kn,238,0,[e,t,i,r])),d=null,n.b.g){case 1:d=Af(S(C(C1n,1),Kn,535,0,[new FA,new KA,new BA]));break;case 0:d=Af(S(C(C1n,1),Kn,535,0,[new BA,new KA,new FA]));break;case 2:d=Af(S(C(C1n,1),Kn,535,0,[new KA,new FA,new BA]))}for(a=new M(d);a.a<a.c.c.length;)l=u(E(a),535),h.c.length>1&&(h=l.Hg(h,n.a,f));return h.c.length==1?u(sn(h,h.c.length-1),238):h.c.length==2?EOe((Nn(0,h.c.length),u(h.c[0],238)),(Nn(1,h.c.length),u(h.c[1],238)),s,c):null}function KOe(n,e,t){var i,r,c,s,f,h,l;for(t.Ug("Find roots",1),n.a.c.length=0,r=ge(e.b,0);r.b!=r.d.c;)i=u(be(r),40),i.b.b==0&&(U(i,(pt(),Ta),(_n(),!0)),nn(n.a,i));switch(n.a.c.length){case 0:c=new q$(0,e,"DUMMY_ROOT"),U(c,(pt(),Ta),(_n(),!0)),U(c,eq,!0),Re(e.b,c);break;case 1:break;default:for(s=new q$(0,e,OP),h=new M(n.a);h.a<h.c.c.length;)f=u(E(h),40),l=new WW(s,f),U(l,(pt(),eq),(_n(),!0)),Re(s.a.a,l),Re(s.d,l),Re(f.b,l),U(f,Ta,!1);U(s,(pt(),Ta),(_n(),!0)),U(s,eq,!0),Re(e.b,s)}t.Vg()}function aGn(n){var e,t,i,r,c,s;for(nu(n.a,new N0n),t=new M(n.a);t.a<t.c.c.length;)e=u(E(t),225),i=mi(Fi(u(n.b,68).c),u(e.b,68).c),TYn?(s=u(n.b,68).b,c=u(e.b,68).b,y.Math.abs(i.a)>=y.Math.abs(i.b)?(i.b=0,c.d+c.a>s.d&&c.d<s.d+s.a&&JM(i,y.Math.max(s.c-(c.c+c.b),c.c-(s.c+s.b)))):(i.a=0,c.c+c.b>s.c&&c.c<s.c+s.b&&JM(i,y.Math.max(s.d-(c.d+c.a),c.d-(s.d+s.a))))):JM(i,xUn(u(n.b,68),u(e.b,68))),r=y.Math.sqrt(i.a*i.a+i.b*i.b),r=OFn(O8,e,r,i),JM(i,r),YN(u(e.b,68),i),nu(e.a,new IG(i)),u(O8.b,68),zJ(O8,con,e)}function BOe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m;for(n.f=new oL,l=0,r=0,s=new M(n.e.b);s.a<s.c.c.length;)for(c=u(E(s),30),h=new M(c.a);h.a<h.c.c.length;){for(f=u(E(h),10),f.p=l++,i=new ie(ce(Qt(f).a.Kc(),new En));pe(i);)t=u(fe(i),18),t.p=r++;for(e=HR(f),g=new M(f.j);g.a<g.c.c.length;)d=u(E(g),12),e&&(m=d.a.b,m!=y.Math.floor(m)&&(a=m-id(vc(y.Math.round(m))),d.a.b-=a)),p=d.n.b+d.a.b,p!=y.Math.floor(p)&&(a=p-id(vc(y.Math.round(p))),d.n.b-=a)}n.g=l,n.b=r,n.i=F(MDe,Kn,412,l,0,1),n.c=F(EDe,Kn,655,r,0,1),n.d.a.$b()}function me(n){var e,t,i,r,c,s,f,h,l;if(n.Pj())if(h=n.Qj(),n.i>0){if(e=new wX(n.i,n.g),t=n.i,c=t<100?null:new R1(t),n.Tj())for(i=0;i<n.i;++i)s=n.g[i],c=n.Vj(s,c);if(e5(n),r=t==1?n.Ij(4,N(e,0),null,0,h):n.Ij(6,e,null,-1,h),n.Mj()){for(i=new yp(e);i.e!=i.i.gc();)c=n.Oj(Tx(i),c);c?(c.nj(r),c.oj()):n.Jj(r)}else c?(c.nj(r),c.oj()):n.Jj(r)}else e5(n),n.Jj(n.Ij(6,(Ln(),sr),null,-1,h));else if(n.Mj())if(n.i>0){for(f=n.g,l=n.i,e5(n),c=l<100?null:new R1(l),i=0;i<l;++i)s=f[i],c=n.Oj(s,c);c&&c.oj()}else e5(n);else e5(n)}function Xen(n,e,t){var i,r,c,s,f,h,l,a,d,g;for(zxn(this),t==(Tb(),Ma)?fi(this.r,n):fi(this.w,n),a=Pt,l=li,s=e.a.ec().Kc();s.Ob();)r=u(s.Pb(),42),f=u(r.a,465),i=u(r.b,18),h=i.c,h==n&&(h=i.d),f==Ma?fi(this.r,h):fi(this.w,h),g=(en(),mu).Hc(h.j)?$(B(v(h,(W(),jv)))):cc(S(C(Ei,1),J,8,0,[h.i.n,h.n,h.a])).b,a=y.Math.min(a,g),l=y.Math.max(l,g);for(d=(en(),mu).Hc(n.j)?$(B(v(n,(W(),jv)))):cc(S(C(Ei,1),J,8,0,[n.i.n,n.n,n.a])).b,ZFn(this,d,a,l),c=e.a.ec().Kc();c.Ob();)r=u(c.Pb(),42),f_n(this,u(r.b,18));this.o=!1}function FOe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn,Bn,te;return t=n.l&8191,i=n.l>>13|(n.m&15)<<9,r=n.m>>4&8191,c=n.m>>17|(n.h&255)<<5,s=(n.h&1048320)>>8,f=e.l&8191,h=e.l>>13|(e.m&15)<<9,l=e.m>>4&8191,a=e.m>>17|(e.h&255)<<5,d=(e.h&1048320)>>8,yn=t*f,kn=i*f,Rn=r*f,Bn=c*f,te=s*f,h!=0&&(kn+=t*h,Rn+=i*h,Bn+=r*h,te+=c*h),l!=0&&(Rn+=t*l,Bn+=i*l,te+=r*l),a!=0&&(Bn+=t*a,te+=i*a),d!=0&&(te+=t*d),p=yn&ro,m=(kn&511)<<13,g=p+m,j=yn>>22,P=kn>>9,O=(Rn&262143)<<4,A=(Bn&31)<<17,k=j+P+O+A,_=Rn>>18,X=Bn>>5,tn=(te&4095)<<8,D=_+X+tn,k+=g>>22,g&=ro,D+=k>>22,k&=ro,D&=Ol,Yc(g,k,D)}function dGn(n){var e,t,i,r,c,s,f;if(f=u(sn(n.j,0),12),f.g.c.length!=0&&f.e.c.length!=0)throw T(new Ar("Interactive layout does not support NORTH/SOUTH ports with incoming _and_ outgoing edges."));if(f.g.c.length!=0){for(c=Pt,t=new M(f.g);t.a<t.c.c.length;)e=u(E(t),18),s=e.d.i,i=u(v(s,(cn(),pO)),140),c=y.Math.min(c,s.n.a-i.b);return new CE(Pe(c))}if(f.e.c.length!=0){for(r=li,t=new M(f.e);t.a<t.c.c.length;)e=u(E(t),18),s=e.c.i,i=u(v(s,(cn(),pO)),140),r=y.Math.max(r,s.n.a+s.o.a+i.c);return new CE(Pe(r))}return Zv(),Zv(),FF}function bGn(n,e){var t,i,r,c,s,f,h;if(n.ol()){if(n.i>4)if(n.fk(e)){if(n.al()){if(r=u(e,54),i=r.Eh(),h=i==n.e&&(n.ml()?r.yh(r.Fh(),n.il())==n.jl():-1-r.Fh()==n.Lj()),n.nl()&&!h&&!i&&r.Jh()){for(c=0;c<n.i;++c)if(t=n.pl(u(n.g[c],58)),x(t)===x(e))return!0}return h}else if(n.ml()&&!n.ll()){if(s=u(e,58).Mh(br(u(n.Lk(),19))),x(s)===x(n.e))return!0;if(s==null||!u(s,58).Vh())return!1}}else return!1;if(f=km(n,e),n.nl()&&!f){for(c=0;c<n.i;++c)if(r=n.pl(u(n.g[c],58)),x(r)===x(e))return!0}return f}else return km(n,e)}function _Oe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j;for(t.Ug("Interactive cycle breaking",1),d=new Z,p=new M(e.a);p.a<p.c.c.length;)for(g=u(E(p),10),g.p=1,m=KZ(g).a,a=Rb(g,(gr(),Jc)).Kc();a.Ob();)for(l=u(a.Pb(),12),c=new M(l.g);c.a<c.c.c.length;)i=u(E(c),18),k=i.d.i,k!=g&&(j=KZ(k).a,j<m&&Fn(d.c,i));for(s=new M(d);s.a<s.c.c.length;)i=u(E(s),18),Ub(i,!0);for(d.c.length=0,h=new M(e.a);h.a<h.c.c.length;)f=u(E(h),10),f.p>0&&b_n(n,f,d);for(r=new M(d);r.a<r.c.c.length;)i=u(E(r),18),Ub(i,!0);d.c.length=0,t.Vg()}function HOe(n,e){var t,i,r,c,s,f,h,l,a;for(t=0,a=new Z,f=new M(e);f.a<f.c.c.length;){switch(s=u(E(f),12),hY(n.b,n.d[s.p]),a.c.length=0,s.i.k.g){case 0:i=u(v(s,(W(),Xu)),10),nu(i.j,new V7n(a));break;case 1:t1e(im(ut(new Cn(null,new On(s.i.j,16)),new W7n(s))),new J7n(a));break;case 3:r=u(v(s,(W(),st)),12),nn(a,new bi(r,Y(s.e.c.length+s.g.c.length)))}for(l=new M(a);l.a<l.c.c.length;)h=u(E(l),42),c=Sz(n,u(h.a,12)),c>n.d[s.p]&&(t+=SJ(n.b,c)*u(h.b,17).a,W1(n.a,Y(c)));for(;!t6(n.a);)uQ(n.b,u(Pp(n.a),17).a)}return t}function qOe(n,e){var t,i,r,c,s,f,h,l,a,d;if(a=u(v(n,(W(),gc)),64),i=u(sn(n.j,0),12),a==(en(),Xn)?gi(i,ae):a==ae&&gi(i,Xn),u(v(e,(cn(),xd)),181).Hc((go(),Gd))){if(h=$(B(v(n,Sv))),l=$(B(v(n,Pv))),s=$(B(v(n,qw))),f=u(v(e,_w),21),f.Hc((zu(),Rl)))for(t=l,d=n.o.a/2-i.n.a,c=new M(i.f);c.a<c.c.c.length;)r=u(E(c),72),r.n.b=t,r.n.a=d-r.o.a/2,t+=r.o.b+s;else if(f.Hc(Oa))for(c=new M(i.f);c.a<c.c.c.length;)r=u(E(c),72),r.n.a=h+n.o.a-i.n.a;wpe(new OE((u6(),new kD(e,!1,!1,new HU))),new XM(null,n,!1))}}function UOe(n,e){var t,i,r,c,s,f,h,l,a;if(e.c.length!=0){for(Ln(),QN(e.c,e.c.length,null),r=new M(e),i=u(E(r),154);r.a<r.c.c.length;)t=u(E(r),154),lQ(i.e.c,t.e.c)&&!(nZ(SSn(i.e).b,t.e.d)||nZ(SSn(t.e).b,i.e.d))?i=(hi(i.k,t.k),hi(i.b,t.b),hi(i.c,t.c),Ki(i.i,t.i),hi(i.d,t.d),hi(i.j,t.j),c=y.Math.min(i.e.c,t.e.c),s=y.Math.min(i.e.d,t.e.d),f=y.Math.max(i.e.c+i.e.b,t.e.c+t.e.b),h=f-c,l=y.Math.max(i.e.d+i.e.a,t.e.d+t.e.a),a=l-s,LPn(i.e,c,s,h,a),bpe(i.f,t.f),!i.a&&(i.a=t.a),hi(i.g,t.g),nn(i.g,t),i):(SUn(n,i),i=t);SUn(n,i)}}function GOe(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_;for(h=new Z,c=new M(e.a);c.a<c.c.c.length;)for(r=u(E(c),10),f=new M(r.j);f.a<f.c.c.length;){for(s=u(E(f),12),a=null,A=hh(s.g),D=0,_=A.length;D<_;++D)O=A[D],Q4(O.d.i,t)||(P=qR(n,e,t,O,O.c,(gr(),Jc),a),P!=a&&Fn(h.c,P),P.c&&(a=P));for(l=null,m=hh(s.e),k=0,j=m.length;k<j;++k)p=m[k],Q4(p.c.i,t)||(P=qR(n,e,t,p,p.d,(gr(),Vu),l),P!=l&&Fn(h.c,P),P.c&&(l=P))}for(g=new M(h);g.a<g.c.c.length;)d=u(E(g),453),qr(e.a,d.a,0)!=-1||nn(e.a,d.a),d.c&&Fn(i.c,d)}function zOe(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k,j;for(d=new rr(u(z(n,(mS(),dan)),8)),d.a=y.Math.max(d.a-t.b-t.c,0),d.b=y.Math.max(d.b-t.d-t.a,0),r=B(z(n,han)),(r==null||(Jn(r),r<=0))&&(r=1.3),f=new Z,m=new ne((!n.a&&(n.a=new q(Ye,n,10,11)),n.a));m.e!=m.i.gc();)p=u(ue(m),27),s=new mSn(p),Fn(f.c,s);switch(g=u(z(n,Vq),320),g.g){case 3:j=LPe(f,e,d.a,d.b,(l=i,Jn(r),l));break;case 1:j=jIe(f,e,d.a,d.b,(a=i,Jn(r),a));break;default:j=VOe(f,e,d.a,d.b,(h=i,Jn(r),h))}c=new hC(j),k=QR(c,e,t,d.a,d.b,i,(Jn(r),r)),Gb(n,k.a,k.b,!1,!0)}function XOe(n,e,t,i){var r,c,s,f,h,l;if(f=n.j,f==(en(),sc)&&e!=(Ai(),Qf)&&e!=(Ai(),Ia)&&(f=jUn(n,t),gi(n,f),!(n.q?n.q:(Ln(),Ln(),Wh))._b((cn(),Fw))&&f!=sc&&(n.n.a!=0||n.n.b!=0)&&U(n,Fw,X7e(n,f))),e==(Ai(),tl)){switch(l=0,f.g){case 1:case 3:c=n.i.o.a,c>0&&(l=n.n.a/c);break;case 2:case 4:r=n.i.o.b,r>0&&(l=n.n.b/r)}U(n,(W(),f0),l)}if(h=n.o,s=n.a,i)s.a=i.a,s.b=i.b,n.d=!0;else if(e!=Qf&&e!=Ia&&f!=sc)switch(f.g){case 1:s.a=h.a/2;break;case 2:s.a=h.a,s.b=h.b/2;break;case 3:s.a=h.a/2,s.b=h.b;break;case 4:s.b=h.b/2}else s.a=h.a/2,s.b=h.b/2}function X5(n){var e,t,i,r,c,s,f,h,l,a;if(n.Pj())if(a=n.Ej(),h=n.Qj(),a>0)if(e=new BQ(n.pj()),t=a,c=t<100?null:new R1(t),P7(n,t,e.g),r=t==1?n.Ij(4,N(e,0),null,0,h):n.Ij(6,e,null,-1,h),n.Mj()){for(i=new ne(e);i.e!=i.i.gc();)c=n.Oj(ue(i),c);c?(c.nj(r),c.oj()):n.Jj(r)}else c?(c.nj(r),c.oj()):n.Jj(r);else P7(n,n.Ej(),n.Fj()),n.Jj(n.Ij(6,(Ln(),sr),null,-1,h));else if(n.Mj())if(a=n.Ej(),a>0){for(f=n.Fj(),l=a,P7(n,a,f),c=l<100?null:new R1(l),i=0;i<l;++i)s=f[i],c=n.Oj(s,c);c&&c.oj()}else P7(n,n.Ej(),n.Fj());else P7(n,n.Ej(),n.Fj())}function VOe(n,e,t,i,r){var c,s,f,h,l,a,d,g,p,m,k,j;for(f=F(Ii,Cr,28,n.c.length,15,1),g=new dT(new Qmn),EZ(g,n),l=0,k=new Z;g.b.c.length!=0;)if(s=u(g.b.c.length==0?null:sn(g.b,0),163),l>1&&Pu(s)*ao(s)/2>f[0]){for(c=0;c<k.c.length-1&&Pu(s)*ao(s)/2>f[c];)++c;m=new Jl(k,0,c+1),d=new hC(m),a=Pu(s)/ao(s),h=QR(d,e,new up,t,i,r,a),tt(ff(d.e),h),Tp(ym(g,d),_m),p=new Jl(k,c+1,k.c.length),EZ(g,p),k.c.length=0,l=0,bIn(f,f.length,0)}else j=g.b.c.length==0?null:sn(g.b,0),j!=null&&T$(g,0),l>0&&(f[l]=f[l-1]),f[l]+=Pu(s)*ao(s),++l,Fn(k.c,s);return k}function WOe(n,e){var t,i,r,c;t=e.b,c=new _u(t.j),r=0,i=t.j,i.c.length=0,gb(u(od(n.b,(en(),Xn),(Lb(),u0)),15),t),r=_k(c,r,new bpn,i),gb(u(od(n.b,Xn,va),15),t),r=_k(c,r,new opn,i),gb(u(od(n.b,Xn,c0),15),t),gb(u(od(n.b,Zn,u0),15),t),gb(u(od(n.b,Zn,va),15),t),r=_k(c,r,new wpn,i),gb(u(od(n.b,Zn,c0),15),t),gb(u(od(n.b,ae,u0),15),t),r=_k(c,r,new gpn,i),gb(u(od(n.b,ae,va),15),t),r=_k(c,r,new ppn,i),gb(u(od(n.b,ae,c0),15),t),gb(u(od(n.b,Wn,u0),15),t),r=_k(c,r,new hpn,i),gb(u(od(n.b,Wn,va),15),t),gb(u(od(n.b,Wn,c0),15),t)}function JOe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p;for(f=new M(e);f.a<f.c.c.length;)c=u(E(f),239),c.e=null,c.c=0;for(h=null,s=new M(e);s.a<s.c.c.length;)if(c=u(E(s),239),d=c.d[0],!(t&&d.k!=(Vn(),zt))){for(p=u(v(d,(W(),C3)),15).Kc();p.Ob();)g=u(p.Pb(),10),(!t||g.k==(Vn(),zt))&&((!c.e&&(c.e=new Z),c.e).Fc(n.b[g.c.p][g.p]),++n.b[g.c.p][g.p].c);if(!t&&d.k==(Vn(),zt)){if(h)for(a=u(ot(n.d,h),21).Kc();a.Ob();)for(l=u(a.Pb(),10),r=u(ot(n.d,d),21).Kc();r.Ob();)i=u(r.Pb(),10),e0e(n.b[l.c.p][l.p]).Fc(n.b[i.c.p][i.p]),++n.b[i.c.p][i.p].c;h=d}}}function QOe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j;for(t.Ug("Model order cycle breaking",1),n.a=0,n.b=0,p=new Z,a=e.a.c.length,l=new M(e.a);l.a<l.c.c.length;)h=u(E(l),10),kt(h,(W(),dt))&&(a=y.Math.max(a,u(v(h,dt),17).a+1));for(k=new M(e.a);k.a<k.c.c.length;)for(m=u(E(k),10),s=M_n(n,m,a),g=Rb(m,(gr(),Jc)).Kc();g.Ob();)for(d=u(g.Pb(),12),c=new M(d.g);c.a<c.c.c.length;)i=u(E(c),18),j=i.d.i,f=M_n(n,j,a),f<s&&Fn(p.c,i);for(r=new M(p);r.a<r.c.c.length;)i=u(E(r),18),Ub(i,!0),U(e,(W(),kj),(_n(),!0));p.c.length=0,t.Vg()}function wGn(n,e,t){var i,r,c,s,f,h,l,a,d,g;for(s=e.d,f=t.d;s.a-f.a==0&&s.b-f.b==0;)h=!1,L(e,250)&&L(t,250)&&!h?(l=u(e,250).a,a=mi(new rr(mQ(l)),pQ(l)),i=2,r=new V(a.a/y.Math.sqrt(a.a*a.a+a.b*a.b)*i,-a.b/y.Math.sqrt(a.a*a.a+a.b*a.b)*i),tt(s,r),d=u(t,250).a,g=mi(new rr(mQ(d)),pQ(d)),i=a==g?-2:2,c=new V(g.a/y.Math.sqrt(g.a*g.a+g.b*g.b)*i,-(g.b/y.Math.sqrt(g.a*g.a+g.b*g.b))*i),tt(s,c),h=!0):(s.a+=to(n,26)*J5+to(n,27)*Q5-.5,s.b+=to(n,26)*J5+to(n,27)*Q5-.5,f.a+=to(n,26)*J5+to(n,27)*Q5-.5,f.b+=to(n,26)*J5+to(n,27)*Q5-.5)}function YOe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j;for(l=Ije(e),k=u(v(e,(cn(),U8)),322),qi(l,new B9n(k)),j=u(v(e,Mj),299),qi(l,new F9n(j)),m=0,a=new Z,c=new V6(l);c.a!=c.b;)r=u(xC(c),36),SGn(n.c,r),g=u(v(r,(W(),bH)),15),m+=g.gc(),i=g.Kc(),nn(a,new bi(r,i));for(t.Ug("Recursive hierarchical layout",m),p=u(u(sn(a,a.c.length-1),42).b,51);p.Ob();)for(h=new M(a);h.a<h.c.c.length;)for(f=u(E(h),42),g=u(f.b,51),s=u(f.a,36);g.Ob();)if(d=u(g.Pb(),47),L(d,514)){if(s.e)break;d.Kf(s,t.eh(1));break}else d.Kf(s,t.eh(1));t.Vg()}function ZOe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k;for(e.Ug("Layer size calculation",1),a=Pt,l=li,r=!1,f=new M(n.b);f.a<f.c.c.length;)if(s=u(E(f),30),h=s.c,h.a=0,h.b=0,s.a.c.length!=0){for(r=!0,g=new M(s.a);g.a<g.c.c.length;)d=u(E(g),10),m=d.o,p=d.d,h.a=y.Math.max(h.a,m.a+p.b+p.c);i=u(sn(s.a,0),10),k=i.n.b-i.d.d,i.k==(Vn(),Zt)&&(k-=u(v(n,(cn(),Sj)),140).d),c=u(sn(s.a,s.a.c.length-1),10),t=c.n.b+c.o.b+c.d.a,c.k==Zt&&(t+=u(v(n,(cn(),Sj)),140).a),h.b=t-k,a=y.Math.min(a,k),l=y.Math.max(l,t)}r||(a=0,l=0),n.f.b=l-a,n.c.b-=a,e.Vg()}function Ven(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P;for(c=0,s=0,l=new M(n.a);l.a<l.c.c.length;)f=u(E(l),10),c=y.Math.max(c,f.d.b),s=y.Math.max(s,f.d.c);for(h=new M(n.a);h.a<h.c.c.length;){switch(f=u(E(h),10),t=u(v(f,(cn(),Ch)),255),t.g){case 1:m=0;break;case 2:m=1;break;case 5:m=.5;break;default:for(i=0,d=0,p=new M(f.j);p.a<p.c.c.length;)g=u(E(p),12),g.e.c.length==0||++i,g.g.c.length==0||++d;i+d==0?m=.5:m=d/(i+d)}j=n.c,a=f.o.a,P=(j.a-a)*m,m>.5?P-=s*2*(m-.5):m<.5&&(P+=c*2*(.5-m)),r=f.d.b,P<r&&(P=r),k=f.d.c,P>j.a-k-a&&(P=j.a-k-a),f.n.a=e+P}}function nAe(n){var e,t,i,r,c;if(i=u(v(n,(cn(),ou)),171),i==(Yo(),ya)){for(t=new ie(ce(ji(n).a.Kc(),new En));pe(t);)if(e=u(fe(t),18),!PNn(e))throw T(new _l(oB+qk(n)+"' 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(i==xw){for(c=new ie(ce(Qt(n).a.Kc(),new En));pe(c);)if(r=u(fe(c),18),!PNn(r))throw T(new _l(oB+qk(n)+"' has its layer constraint set to LAST_SEPARATE, but has at least one outgoing edge. LAST_SEPARATE nodes must not have outgoing edges."))}}function gy(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m;if(n.e&&n.c.c<n.f)throw T(new Ar("Expected "+n.f+" phases to be configured; only found "+n.c.c));for(a=u(of(n.g),9),p=Lh(n.f),c=a,f=0,l=c.length;f<l;++f)i=c[f],d=u(lk(n,i.g),188),d?nn(p,u(jKn(n,d),106)):p.c.push(null);for(m=new ii,qt(ut(_r(ut(new Cn(null,new On(p,16)),new kmn),new Okn(e)),new ymn),new Akn(m)),To(m,n.a),t=new Z,r=a,s=0,h=r.length;s<h;++s)i=r[s],hi(t,iRn(n,PT(u(lk(m,i.g),20)))),g=u(sn(p,i.g),106),g&&Fn(t.c,g);return hi(t,iRn(n,PT(u(lk(m,a[a.length-1].g+1),20)))),t}function eAe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D;for(g=new Z,r=new Z,k=null,f=e.Kc();f.Ob();)s=u(f.Pb(),17),c=new K7n(s.a),Fn(r.c,c),k&&(c.d=k,k.e=c),k=c;for(A=PIe(n),a=0;a<r.c.length;++a){for(p=null,j=HJ((Nn(0,r.c.length),u(r.c[0],661))),t=null,i=Pt,d=1;d<n.b.c.length;++d)P=j?y.Math.abs(j.b-d):y.Math.abs(d-p.b)+1,m=p?y.Math.abs(d-p.b):P+1,m<P?(l=p,h=m):(l=j,h=P),O=(D=$(B(v(n,(cn(),Ehn)))),A[d]+y.Math.pow(h,D)),O<i&&(i=O,t=l,t.c=d),j&&d==j.b&&(p=j,j=hwe(j));t&&(nn(g,Y(t.c)),t.a=!0,M5e(t))}return Ln(),QN(g.c,g.c.length,null),g}function Wen(n,e,t){var i,r,c,s,f,h;if(e.l==0&&e.m==0&&e.h==0)throw T(new _E("divide by zero"));if(n.l==0&&n.m==0&&n.h==0)return t&&(wa=Yc(0,0,0)),Yc(0,0,0);if(e.h==Cy&&e.m==0&&e.l==0)return W5e(n,t);if(h=!1,e.h>>19&&(e=tm(e),h=!h),s=KTe(e),c=!1,r=!1,i=!1,n.h==Cy&&n.m==0&&n.l==0)if(r=!0,c=!0,s==-1)n=nCn((B4(),hun)),i=!0,h=!h;else return f=znn(n,s),h&&H$(f),t&&(wa=Yc(0,0,0)),f;else n.h>>19&&(c=!0,n=tm(n),i=!0,h=!h);return s!=-1?d6e(n,s,h,c,t):AZ(n,e)<0?(t&&(c?wa=tm(n):wa=Yc(n.l,n.m,n.h)),Yc(0,0,0)):xPe(i?n:Yc(n.l,n.m,n.h),e,h,c,r,t)}function zR(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m;if(s=n.e,h=e.e,s==0)return e;if(h==0)return n;if(c=n.d,f=e.d,c+f==2)return t=vi(n.a[0],mr),i=vi(e.a[0],mr),s==h?(a=nr(t,i),m=Se(a),p=Se(U1(a,32)),p==0?new gl(s,m):new Ya(s,2,S(C(ye,1),_e,28,15,[m,p]))):(dh(),SM(s<0?bs(i,t):bs(t,i),0)?ia(s<0?bs(i,t):bs(t,i)):U6(ia(n1(s<0?bs(i,t):bs(t,i)))));if(s==h)g=s,d=c>=f?e$(n.a,c,e.a,f):e$(e.a,f,n.a,c);else{if(r=c!=f?c>f?1:-1:fY(n.a,e.a,c),r==0)return dh(),P8;r==1?(g=s,d=ZD(n.a,c,e.a,f)):(g=h,d=ZD(e.a,f,n.a,c))}return l=new Ya(g,d.length,d),J6(l),l}function tAe(n,e){var t,i,r,c,s,f,h;if(!(n.g>e.f||e.g>n.f)){for(t=0,i=0,s=n.w.a.ec().Kc();s.Ob();)r=u(s.Pb(),12),nx(cc(S(C(Ei,1),J,8,0,[r.i.n,r.n,r.a])).b,e.g,e.f)&&++t;for(f=n.r.a.ec().Kc();f.Ob();)r=u(f.Pb(),12),nx(cc(S(C(Ei,1),J,8,0,[r.i.n,r.n,r.a])).b,e.g,e.f)&&--t;for(h=e.w.a.ec().Kc();h.Ob();)r=u(h.Pb(),12),nx(cc(S(C(Ei,1),J,8,0,[r.i.n,r.n,r.a])).b,n.g,n.f)&&++i;for(c=e.r.a.ec().Kc();c.Ob();)r=u(c.Pb(),12),nx(cc(S(C(Ei,1),J,8,0,[r.i.n,r.n,r.a])).b,n.g,n.f)&&--i;t<i?new XT(n,e,i-t):i<t?new XT(e,n,t-i):(new XT(e,n,0),new XT(n,e,0))}}function iAe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O;for(l=e.c,r=PX(n.e),d=ch(N6(Fi(SX(n.e)),n.d*n.a,n.c*n.b),-.5),t=r.a-d.a,i=r.b-d.b,s=e.a,t=s.c-t,i=s.d-i,h=new M(l);h.a<h.c.c.length;){switch(f=u(E(h),407),g=f.b,p=t+g.a,j=i+g.b,m=wi(p/n.a),P=wi(j/n.b),c=f.a,c.g){case 0:a=(Vp(),uj);break;case 1:a=(Vp(),cj);break;case 2:a=(Vp(),oj);break;default:a=(Vp(),sj)}c.a?(O=wi((j+f.c)/n.b),nn(n.f,new LV(a,Y(P),Y(O))),c==(C5(),hj)?em(n,0,P,m,O):em(n,m,P,n.d-1,O)):(k=wi((p+f.c)/n.a),nn(n.f,new LV(a,Y(m),Y(k))),c==(C5(),fj)?em(n,m,0,k,P):em(n,m,P,k,n.c-1))}}function rAe(n){var e,t,i,r,c,s,f,h,l,a;for(e=new qA,t=new qA,l=Sn(Jy,(r=_5(n.b,Ke),r?Ae(gf((!r.b&&(r.b=new lo((An(),ar),pc,r)),r.b),vs)):null)),h=0;h<n.i;++h)f=u(n.g[h],179),L(f,102)?(s=u(f,19),s.Bb&kc?(!(s.Bb&wh)||!l&&(c=_5(s,Ke),(c?Ae(gf((!c.b&&(c.b=new lo((An(),ar),pc,c)),c.b),FP)):null)==null))&&ve(e,s):(a=br(s),a&&a.Bb&kc||(!(s.Bb&wh)||!l&&(i=_5(s,Ke),(i?Ae(gf((!i.b&&(i.b=new lo((An(),ar),pc,i)),i.b),FP)):null)==null))&&ve(t,s))):(dr(),u(f,69).xk()&&(f.sk()||(ve(e,f),ve(t,f))));ew(e),ew(t),n.a=u(e.g,254),u(t.g,254)}function Qg(n,e,t){var i,r,c,s,f,h,l,a,d;if(At(e,t)>=0)return t;switch(yb(Nr(n,t))){case 2:{if(Sn("",r1(n,t.qk()).xe())){if(h=q7(Nr(n,t)),f=I4(Nr(n,t)),a=Jnn(n,e,h,f),a)return a;for(r=Cen(n,e),s=0,d=r.gc();s<d;++s)if(a=u(r.Xb(s),179),ien(sD(Nr(n,a)),h))return a}return null}case 4:{if(Sn("",r1(n,t.qk()).xe())){for(i=t;i;i=gpe(Nr(n,i)))if(l=q7(Nr(n,i)),f=I4(Nr(n,i)),a=Qnn(n,e,l,f),a)return a;if(h=q7(Nr(n,t)),Sn(Pd,h))return $Z(n,e);for(c=PR(n,e),s=0,d=c.gc();s<d;++s)if(a=u(c.Xb(s),179),ien(sD(Nr(n,a)),h))return a}return null}default:return null}}function cAe(n,e,t){var i,r,c,s,f,h,l,a;if(t.gc()==0)return!1;if(f=(dr(),u(e,69).xk()),c=f?t:new Pb(t.gc()),Pl(n.e,e)){if(e.Si())for(l=t.Kc();l.Ob();)h=l.Pb(),BS(n,e,h,L(e,102)&&(u(e,19).Bb&hr)!=0)||(r=Rh(e,h),c.Hc(r)||c.Fc(r));else if(!f)for(l=t.Kc();l.Ob();)h=l.Pb(),r=Rh(e,h),c.Fc(r)}else{if(t.gc()>1)throw T(new Gn(Zy));for(a=ru(n.e.Dh(),e),i=u(n.g,124),s=0;s<n.i;++s)if(r=i[s],a.am(r.Lk())){if(t.Hc(f?r:r.md()))return!1;for(l=t.Kc();l.Ob();)h=l.Pb(),u(Bg(n,s,f?u(h,76):Rh(e,h)),76);return!0}f||(r=Rh(e,t.Kc().Pb()),c.Fc(r))}return Kt(n,c)}function uAe(n,e){var t,i,r,c,s,f,h,l,a;for(a=new Mt,f=(l=new ol(n.c).a.vc().Kc(),new P0(l));f.a.Ob();)c=(r=u(f.a.Pb(),44),u(r.md(),467)),c.b==0&&xt(a,c,a.c.b,a.c);for(;a.b!=0;)for(c=u(a.b==0?null:(oe(a.b!=0),Xo(a,a.a.a)),467),c.a==null&&(c.a=0),i=new M(c.d);i.a<i.c.c.length;)t=u(E(i),663),t.b.a==null?t.b.a=$(c.a)+t.a:e.o==(If(),Bd)?t.b.a=y.Math.min($(t.b.a),$(c.a)+t.a):t.b.a=y.Math.max($(t.b.a),$(c.a)+t.a),--t.b.b,t.b.b==0&&Re(a,t.b);for(s=(h=new ol(n.c).a.vc().Kc(),new P0(h));s.a.Ob();)c=(r=u(s.a.Pb(),44),u(r.md(),467)),e.i[c.c.p]=c.a}function oAe(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m;for(a=t+e.c.c.a,p=new M(e.j);p.a<p.c.c.length;){if(g=u(E(p),12),r=cc(S(C(Ei,1),J,8,0,[g.i.n,g.n,g.a])),e.k==(Vn(),_c)&&(f=u(v(g,(W(),st)),12),r.a=cc(S(C(Ei,1),J,8,0,[f.i.n,f.n,f.a])).a,e.n.a=r.a),s=new V(0,r.b),g.j==(en(),Zn))s.a=a;else if(g.j==Wn)s.a=t;else continue;if(m=y.Math.abs(r.a-s.a),!(m<=i&&!Y7e(e)))for(c=g.g.c.length+g.e.c.length>1,l=new Lf(g.b);tc(l.a)||tc(l.b);)h=u(tc(l.a)?E(l.a):E(l.b),18),d=h.c==g?h.d:h.c,y.Math.abs(cc(S(C(Ei,1),J,8,0,[d.i.n,d.n,d.a])).b-s.b)>1&&qCe(n,h,s,c,g)}}function sAe(n){var e,t,i,r,c,s;if(r=new xi(n.e,0),i=new xi(n.a,0),n.d)for(t=0;t<n.b;t++)oe(r.b<r.d.gc()),r.d.Xb(r.c=r.b++);else for(t=0;t<n.b-1;t++)oe(r.b<r.d.gc()),r.d.Xb(r.c=r.b++),bo(r);for(e=$((oe(r.b<r.d.gc()),B(r.d.Xb(r.c=r.b++))));n.f-e>_B;){for(c=e,s=0;y.Math.abs(e-c)<_B;)++s,e=$((oe(r.b<r.d.gc()),B(r.d.Xb(r.c=r.b++)))),oe(i.b<i.d.gc()),i.d.Xb(i.c=i.b++);s<n.b&&(oe(r.b>0),r.a.Xb(r.c=--r.b),EIe(n,n.b-s,c,i,r),oe(r.b<r.d.gc()),r.d.Xb(r.c=r.b++)),oe(i.b>0),i.a.Xb(i.c=--i.b)}if(!n.d)for(t=0;t<n.b-1;t++)oe(r.b<r.d.gc()),r.d.Xb(r.c=r.b++),bo(r);n.d=!0,n.c=!0}function at(){at=R,obn=(Mz(),yc).b,cse=u(N(H(yc.b),0),35),zd=u(N(H(yc.b),1),35),rse=u(N(H(yc.b),2),35),G2=yc.bb,u(N(H(yc.bb),0),35),u(N(H(yc.bb),1),35),z2=yc.fb,$9=u(N(H(yc.fb),0),35),u(N(H(yc.fb),1),35),u(N(H(yc.fb),2),19),M0=yc.qb,pse=u(N(H(yc.qb),0),35),u(N(H(yc.qb),1),19),u(N(H(yc.qb),2),19),gE=u(N(H(yc.qb),3),35),pE=u(N(H(yc.qb),4),35),R9=u(N(H(yc.qb),6),35),x9=u(N(H(yc.qb),5),19),use=yc.j,ose=yc.k,sse=yc.q,fse=yc.w,hse=yc.B,lse=yc.A,ase=yc.C,dse=yc.D,bse=yc._,wse=yc.cb,gse=yc.hb}function fAe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p;n.c=0,n.b=0,i=2*e.c.a.c.length+1;n:for(d=t.Kc();d.Ob();){if(a=u(d.Pb(),12),f=a.j==(en(),Xn)||a.j==ae,p=0,f){if(g=u(v(a,(W(),Xu)),10),!g)continue;p+=LSe(n,i,a,g)}else{for(l=new M(a.g);l.a<l.c.c.length;)if(h=u(E(l),18),r=h.d,r.i.c==e.c){nn(n.a,a);continue n}else p+=n.g[r.p];for(s=new M(a.e);s.a<s.c.c.length;)if(c=u(E(s),18),r=c.c,r.i.c==e.c){nn(n.a,a);continue n}else p-=n.g[r.p]}a.e.c.length+a.g.c.length>0?(n.f[a.p]=p/(a.e.c.length+a.g.c.length),n.c=y.Math.min(n.c,n.f[a.p]),n.b=y.Math.max(n.b,n.f[a.p])):f&&(n.f[a.p]=p)}}function hAe(n){n.b=null,n.bb=null,n.fb=null,n.qb=null,n.a=null,n.c=null,n.d=null,n.e=null,n.f=null,n.n=null,n.M=null,n.L=null,n.Q=null,n.R=null,n.K=null,n.db=null,n.eb=null,n.g=null,n.i=null,n.j=null,n.k=null,n.gb=null,n.o=null,n.p=null,n.q=null,n.r=null,n.$=null,n.ib=null,n.S=null,n.T=null,n.t=null,n.s=null,n.u=null,n.v=null,n.w=null,n.B=null,n.A=null,n.C=null,n.D=null,n.F=null,n.G=null,n.H=null,n.I=null,n.J=null,n.P=null,n.Z=null,n.U=null,n.V=null,n.W=null,n.X=null,n.Y=null,n._=null,n.ab=null,n.cb=null,n.hb=null,n.nb=null,n.lb=null,n.mb=null,n.ob=null,n.pb=null,n.jb=null,n.kb=null,n.N=!1,n.O=!1}function lAe(n,e,t){var i,r,c,s;for(t.Ug("Graph transformation ("+n.a+")",1),s=Cb(e.a),c=new M(e.b);c.a<c.c.c.length;)r=u(E(c),30),hi(s,r.a);if(i=u(v(e,(cn(),Ufn)),428),i==(wk(),WI))switch(u(v(e,Lo),88).g){case 2:Q6(e,s);break;case 3:j5(e,s);break;case 4:n.a==(V4(),dj)?(j5(e,s),HD(e,s)):(HD(e,s),j5(e,s))}else if(n.a==(V4(),dj))switch(u(v(e,Lo),88).g){case 2:Q6(e,s),HD(e,s);break;case 3:j5(e,s),Q6(e,s);break;case 4:Q6(e,s),j5(e,s)}else switch(u(v(e,Lo),88).g){case 2:Q6(e,s),HD(e,s);break;case 3:Q6(e,s),j5(e,s);break;case 4:j5(e,s),Q6(e,s)}t.Vg()}function aAe(n){var e,t,i,r,c,s,f,h;for(c=new M(n.a.b);c.a<c.c.c.length;)r=u(E(c),86),r.b.c=r.g.c,r.b.d=r.g.d;for(h=new V(Pt,Pt),e=new V(li,li),i=new M(n.a.b);i.a<i.c.c.length;)t=u(E(i),86),h.a=y.Math.min(h.a,t.g.c),h.b=y.Math.min(h.b,t.g.d),e.a=y.Math.max(e.a,t.g.c+t.g.b),e.b=y.Math.max(e.b,t.g.d+t.g.a);for(f=pT(n.c).a.nc();f.Ob();)s=u(f.Pb(),42),t=u(s.b,86),h.a=y.Math.min(h.a,t.g.c),h.b=y.Math.min(h.b,t.g.d),e.a=y.Math.max(e.a,t.g.c+t.g.b),e.b=y.Math.max(e.b,t.g.d+t.g.a);n.d=HM(new V(h.a,h.b)),n.e=mi(new V(e.a,e.b),h),n.a.a.c.length=0,n.a.b.c.length=0}function dAe(n){i5();var e,t,i,r,c,s,f;for(f=new Hyn,t=new M(n);t.a<t.c.c.length;)e=u(E(t),148),(!f.b||e.c>=f.b.c)&&(f.b=e),(!f.c||e.c<=f.c.c)&&(f.d=f.c,f.c=e),(!f.e||e.d>=f.e.d)&&(f.e=e),(!f.f||e.d<=f.f.d)&&(f.f=e);return i=new eS((nm(),r0)),Q7(n,OZn,new Fu(S(C(aj,1),Kn,382,0,[i]))),s=new eS(Ow),Q7(n,IZn,new Fu(S(C(aj,1),Kn,382,0,[s]))),r=new eS(Iw),Q7(n,PZn,new Fu(S(C(aj,1),Kn,382,0,[r]))),c=new eS(d2),Q7(n,SZn,new Fu(S(C(aj,1),Kn,382,0,[c]))),pR(i.c,r0),pR(r.c,Iw),pR(c.c,d2),pR(s.c,Ow),f.a.c.length=0,hi(f.a,i.c),hi(f.a,Qo(r.c)),hi(f.a,c.c),hi(f.a,Qo(s.c)),f}function bAe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m;for(e.Ug(PVn,1),p=$(B(z(n,(_h(),Xw)))),s=$(B(z(n,(Bf(),l9)))),f=u(z(n,h9),107),NQ((!n.a&&(n.a=new q(Ye,n,10,11)),n.a)),a=fGn((!n.a&&(n.a=new q(Ye,n,10,11)),n.a),p,s),!n.a&&(n.a=new q(Ye,n,10,11)),l=new M(a);l.a<l.c.c.length;)for(h=u(E(l),186),r=new M(h.a);r.a<r.c.c.length;)i=u(E(r),172),g=new tJ(i.s,i.t,$(B(z(n,l9)))),FQ(g,i),nn(h.d,g);d=cFn(a,s),m=y.Math.max(d.a,$(B(z(n,f9)))-(f.b+f.c)),c=y.Math.max(d.b,$(B(z(n,UO)))-(f.d+f.a)),t=c-d.b,ht(n,s9,t),ht(n,A3,m),ht(n,Dv,c+t),ht(n,GO,a),e.Vg()}function wAe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k;for(l=new rh,a=new rh,m=new rh,k=new rh,h=$(B(v(e,(cn(),g0)))),c=$(B(v(e,Ws))),f=new M(t);f.a<f.c.c.length;)if(s=u(E(f),10),d=u(v(s,(W(),gc)),64),d==(en(),Xn))for(a.a.zc(s,a),r=new ie(ce(ji(s).a.Kc(),new En));pe(r);)i=u(fe(r),18),fi(l,i.c.i);else if(d==ae)for(k.a.zc(s,k),r=new ie(ce(ji(s).a.Kc(),new En));pe(r);)i=u(fe(r),18),fi(m,i.c.i);l.a.gc()!=0&&(g=new lD(2,c),p=Zen(g,e,l,a,-h-e.c.b),p>0&&(n.a=h+(p-1)*c,e.c.b+=n.a,e.f.b+=n.a)),m.a.gc()!=0&&(g=new lD(1,c),p=Zen(g,e,m,k,e.f.b+h-e.c.b),p>0&&(e.f.b+=h+(p-1)*c))}function gGn(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D;for(a=$(B(v(n,(cn(),w0)))),i=$(B(v(n,vhn))),g=new _A,U(g,w0,a+i),l=e,P=l.d,k=l.c.i,O=l.d.i,j=jX(k.c),A=jX(O.c),r=new Z,d=j;d<=A;d++)f=new Cl(n),Ha(f,(Vn(),Ti)),U(f,(W(),st),l),U(f,Ft,(Ai(),qc)),U(f,yO,g),p=u(sn(n.b,d),30),d==j?uw(f,p.a.c.length-t,p):$i(f,p),D=$(B(v(l,m1))),D<0&&(D=0,U(l,m1,D)),f.o.b=D,m=y.Math.floor(D/2),s=new Ic,gi(s,(en(),Wn)),ic(s,f),s.n.b=m,h=new Ic,gi(h,Zn),ic(h,f),h.n.b=m,Oi(l,s),c=new Eb,Ur(c,l),U(c,Rr,null),Zi(c,h),Oi(c,P),ike(f,l,c),Fn(r.c,c),l=c;return r}function XR(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A;for(h=u(h1(n,(en(),Wn)).Kc().Pb(),12).e,p=u(h1(n,Zn).Kc().Pb(),12).g,f=h.c.length,A=Of(u(sn(n.j,0),12));f-- >0;){for(k=(Nn(0,h.c.length),u(h.c[0],18)),r=(Nn(0,p.c.length),u(p.c[0],18)),O=r.d.e,c=qr(O,r,0),Kpe(k,r.d,c),Zi(r,null),Oi(r,null),m=k.a,e&&Re(m,new rr(A)),i=ge(r.a,0);i.b!=i.d.c;)t=u(be(i),8),Re(m,new rr(t));for(P=k.b,g=new M(r.b);g.a<g.c.c.length;)d=u(E(g),72),Fn(P.c,d);if(j=u(v(k,(cn(),Rr)),75),s=u(v(r,Rr),75),s)for(j||(j=new Tu,U(k,Rr,j)),a=ge(s,0);a.b!=a.d.c;)l=u(be(a),8),Re(j,new rr(l))}}function gAe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A;if(k=e.b.c.length,!(k<3)){for(p=F(ye,_e,28,k,15,1),d=0,a=new M(e.b);a.a<a.c.c.length;)l=u(E(a),30),p[d++]=l.a.c.length;for(g=new xi(e.b,2),i=1;i<k-1;i++)for(t=(oe(g.b<g.d.gc()),u(g.d.Xb(g.c=g.b++),30)),m=new M(t.a),c=0,f=0,h=0;h<p[i+1];h++)if(A=u(E(m),10),h==p[i+1]-1||bnn(n,A,i+1,i)){for(s=p[i]-1,bnn(n,A,i+1,i)&&(s=n.c.e[u(u(u(sn(n.c.b,A.p),15).Xb(0),42).a,10).p]);f<=h;){if(O=u(sn(t.a,f),10),!bnn(n,O,i+1,i))for(P=u(sn(n.c.b,O.p),15).Kc();P.Ob();)j=u(P.Pb(),42),r=n.c.e[u(j.a,10).p],(r<c||r>s)&&fi(n.b,u(j.b,18));++f}c=s}}}function Jen(n,e){var t;if(e==null||Sn(e,gu)||e.length==0&&n.k!=(l1(),N3))return null;switch(n.k.g){case 1:return JC(e,nv)?(_n(),ov):JC(e,cF)?(_n(),ga):null;case 2:try{return Y(So(e,Wi,et))}catch(i){if(i=Ot(i),L(i,130))return null;throw T(i)}case 4:try{return sw(e)}catch(i){if(i=Ot(i),L(i,130))return null;throw T(i)}case 3:return e;case 5:return RRn(n),J_n(n,e);case 6:return RRn(n),wTe(n,n.a,e);case 7:try{return t=CMe(n),t.cg(e),t}catch(i){if(i=Ot(i),L(i,33))return null;throw T(i)}default:throw T(new Ar("Invalid type set for this layout option."))}}function Qen(n){var e;switch(n.d){case 1:{if(n.Sj())return n.o!=-2;break}case 2:{if(n.Sj())return n.o==-2;break}case 3:case 5:case 4:case 6:case 7:return n.o>-2;default:return!1}switch(e=n.Rj(),n.p){case 0:return e!=null&&on(un(e))!=M6(n.k,0);case 1:return e!=null&&u(e,222).a!=Se(n.k)<<24>>24;case 2:return e!=null&&u(e,180).a!=(Se(n.k)&ui);case 6:return e!=null&&M6(u(e,168).a,n.k);case 5:return e!=null&&u(e,17).a!=Se(n.k);case 7:return e!=null&&u(e,191).a!=Se(n.k)<<16>>16;case 3:return e!=null&&$(B(e))!=n.j;case 4:return e!=null&&u(e,161).a!=n.j;default:return e==null?n.n!=null:!rt(e,n.n)}}function py(n,e,t){var i,r,c,s;return n.ol()&&n.nl()&&(s=cD(n,u(t,58)),x(s)!==x(t))?(n.xj(e),n.Dj(e,kDn(n,e,s)),n.al()&&(c=(r=u(t,54),n.ml()?n.kl()?r.Th(n.b,br(u($n(au(n.b),n.Lj()),19)).n,u($n(au(n.b),n.Lj()).Hk(),29).kk(),null):r.Th(n.b,At(r.Dh(),br(u($n(au(n.b),n.Lj()),19))),null,null):r.Th(n.b,-1-n.Lj(),null,null)),!u(s,54).Ph()&&(c=(i=u(s,54),n.ml()?n.kl()?i.Rh(n.b,br(u($n(au(n.b),n.Lj()),19)).n,u($n(au(n.b),n.Lj()).Hk(),29).kk(),c):i.Rh(n.b,At(i.Dh(),br(u($n(au(n.b),n.Lj()),19))),null,c):i.Rh(n.b,-1-n.Lj(),null,c))),c&&c.oj()),fo(n.b)&&n.Jj(n.Ij(9,t,s,e,!1)),s):t}function pGn(n){var e,t,i,r,c,s,f,h,l,a;for(i=new Z,s=new M(n.e.a);s.a<s.c.c.length;){for(r=u(E(s),125),a=0,r.k.c.length=0,t=new M(xg(r));t.a<t.c.c.length;)e=u(E(t),218),e.f&&(nn(r.k,e),++a);a==1&&Fn(i.c,r)}for(c=new M(i);c.a<c.c.c.length;)for(r=u(E(c),125);r.k.c.length==1;){for(l=u(E(new M(r.k)),218),n.b[l.c]=l.g,f=l.d,h=l.e,t=new M(xg(r));t.a<t.c.c.length;)e=u(E(t),218),rt(e,l)||(e.f?f==e.d||h==e.e?n.b[l.c]-=n.b[e.c]-e.g:n.b[l.c]+=n.b[e.c]-e.g:r==f?e.d==r?n.b[l.c]+=e.g:n.b[l.c]-=e.g:e.d==r?n.b[l.c]-=e.g:n.b[l.c]+=e.g);du(f.k,l),du(h.k,l),f==r?r=l.e:r=l.d}}function mGn(n,e){var t,i,r,c,s,f,h,l,a,d,g,p;if(t=u(Mr(n.b,e),127),h=u(u(ot(n.r,e),21),87),h.dc()){t.n.b=0,t.n.c=0;return}for(l=n.u.Hc((zu(),Rl)),s=0,f=h.Kc(),a=null,d=0,g=0;f.Ob();)i=u(f.Pb(),117),r=$(B(i.b.of((FM(),bI)))),c=i.b.Mf().a,n.A.Hc((go(),Gd))&&Xqn(n,e),a?(p=g+a.d.c+n.w+i.d.b,s=y.Math.max(s,(Cf(),Fs(_f),y.Math.abs(d-r)<=_f||d==r||isNaN(d)&&isNaN(r)?0:p/(r-d)))):n.C&&n.C.b>0&&(s=y.Math.max(s,jxn(n.C.b+i.d.b,r))),a=i,d=r,g=c;n.C&&n.C.c>0&&(p=g+n.C.c,l&&(p+=a.d.c),s=y.Math.max(s,(Cf(),Fs(_f),y.Math.abs(d-1)<=_f||d==1||isNaN(d)&&isNaN(1)?0:p/(1-d)))),t.n.b=0,t.a.a=s}function vGn(n,e){var t,i,r,c,s,f,h,l,a,d,g,p;if(t=u(Mr(n.b,e),127),h=u(u(ot(n.r,e),21),87),h.dc()){t.n.d=0,t.n.a=0;return}for(l=n.u.Hc((zu(),Rl)),s=0,n.A.Hc((go(),Gd))&&Vqn(n,e),f=h.Kc(),a=null,g=0,d=0;f.Ob();)i=u(f.Pb(),117),c=$(B(i.b.of((FM(),bI)))),r=i.b.Mf().b,a?(p=d+a.d.a+n.w+i.d.d,s=y.Math.max(s,(Cf(),Fs(_f),y.Math.abs(g-c)<=_f||g==c||isNaN(g)&&isNaN(c)?0:p/(c-g)))):n.C&&n.C.d>0&&(s=y.Math.max(s,jxn(n.C.d+i.d.d,c))),a=i,g=c,d=r;n.C&&n.C.a>0&&(p=d+n.C.a,l&&(p+=a.d.a),s=y.Math.max(s,(Cf(),Fs(_f),y.Math.abs(g-1)<=_f||g==1||isNaN(g)&&isNaN(1)?0:p/(1-g)))),t.n.d=0,t.a.b=s}function pAe(n,e,t,i,r,c,s,f){var h,l,a,d,g,p,m,k,j,P;if(m=!1,l=ren(t.q,e.f+e.b-t.q.f),p=i.f>e.b&&f,P=r-(t.q.e+l-s),d=(h=G5(i,P,!1),h.a),p&&d>i.f)return!1;if(p){for(g=0,j=new M(e.d);j.a<j.c.c.length;)k=u(E(j),315),g+=ren(k,i.f)+s;P=r-g}return P<i.g||(a=c==n.c.length-1&&P>=(Nn(c,n.c.length),u(n.c[c],186)).e,!p&&d>e.b&&!a)?!1:((a||p||d<=e.b)&&(a&&d>e.b?(t.d=d,uk(t,c_n(t,d))):(EFn(t.q,l),t.c=!0),uk(i,r-(t.s+t.r)),Hk(i,t.q.e+t.q.d,e.f),wC(e,i),n.c.length>c&&(Gk((Nn(c,n.c.length),u(n.c[c],186)),i),(Nn(c,n.c.length),u(n.c[c],186)).a.c.length==0&&Yl(n,c)),m=!0),m)}function kGn(n,e,t){var i,r,c,s,f,h;for(this.g=n,f=e.d.length,h=t.d.length,this.d=F(Qh,b1,10,f+h,0,1),s=0;s<f;s++)this.d[s]=e.d[s];for(c=0;c<h;c++)this.d[f+c]=t.d[c];if(e.e){if(this.e=$7(e.e),this.e.Mc(t),t.e)for(r=t.e.Kc();r.Ob();)i=u(r.Pb(),239),i!=e&&(this.e.Hc(i)?--i.c:this.e.Fc(i))}else t.e&&(this.e=$7(t.e),this.e.Mc(e));this.f=e.f+t.f,this.a=e.a+t.a,this.a>0?m$(this,this.f/this.a):Sf(e.g,e.d[0]).a!=null&&Sf(t.g,t.d[0]).a!=null?m$(this,($(Sf(e.g,e.d[0]).a)+$(Sf(t.g,t.d[0]).a))/2):Sf(e.g,e.d[0]).a!=null?m$(this,Sf(e.g,e.d[0]).a):Sf(t.g,t.d[0]).a!=null&&m$(this,Sf(t.g,t.d[0]).a)}function mAe(n,e){var t,i,r,c,s,f,h,l,a,d;for(n.a=new ZIn(n6e(y9)),i=new M(e.a);i.a<i.c.c.length;){for(t=u(E(i),855),f=new vx(S(C(M_,1),Kn,86,0,[])),nn(n.a.a,f),l=new M(t.d);l.a<l.c.c.length;)h=u(E(l),116),a=new JX(n,h),ntn(a,u(v(t.c,(W(),Dl)),21)),Zc(n.g,t)||(Ve(n.g,t,new V(h.c,h.d)),Ve(n.f,t,a)),nn(n.a.b,a),_D(f,a);for(s=new M(t.b);s.a<s.c.c.length;)c=u(E(s),602),a=new JX(n,c.Df()),Ve(n.b,c,new bi(f,a)),ntn(a,u(v(t.c,(W(),Dl)),21)),c.Bf()&&(d=new uZ(n,c.Bf(),1),ntn(d,u(v(t.c,Dl),21)),r=new vx(S(C(M_,1),Kn,86,0,[])),_D(r,d),In(n.c,c.Af(),new bi(f,d)))}return n.a}function yGn(n){var e;this.a=n,e=(Vn(),S(C(A_,1),G,273,0,[zt,Ti,Zt,_c,Sc,Gf])).length,this.b=Wa(zq,[J,jrn],[601,149],0,[e,e],2),this.c=Wa(zq,[J,jrn],[601,149],0,[e,e],2),PD(this,zt,(cn(),g0),S2),h5(this,zt,Ti,w0,Kd),U7(this,zt,_c,w0),U7(this,zt,Zt,w0),h5(this,zt,Sc,g0,S2),PD(this,Ti,Ws,T2),U7(this,Ti,_c,Ws),U7(this,Ti,Zt,Ws),h5(this,Ti,Sc,w0,Kd),aCn(this,_c,Ws),U7(this,_c,Zt,Ws),U7(this,_c,Sc,IH),aCn(this,Zt,X8),h5(this,Zt,Sc,Pv,Sv),PD(this,Sc,Ws,Ws),PD(this,Gf,Ws,T2),h5(this,Gf,zt,w0,Kd),h5(this,Gf,Sc,w0,Kd),h5(this,Gf,Ti,w0,Kd)}function vAe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j;if(s=t.Lk(),L(s,102)&&u(s,19).Bb&hr&&(g=u(t.md(),54),k=ea(n.e,g),k!=g)){if(a=Rh(s,k),O6(n,e,Jx(n,e,a)),d=null,fo(n.e)&&(i=Qg((Lu(),zi),n.e.Dh(),s),i!=$n(n.e.Dh(),n.c))){for(j=ru(n.e.Dh(),s),f=0,c=u(n.g,124),h=0;h<e;++h)r=c[h],j.am(r.Lk())&&++f;d=new GD(n.e,9,i,g,k,f,!1),d.nj(new ml(n.e,9,n.c,t,a,e,!1))}return m=u(s,19),p=br(m),p?(d=g.Th(n.e,At(g.Dh(),p),null,d),d=u(k,54).Rh(n.e,At(k.Dh(),p),null,d)):m.Bb&kc&&(l=-1-At(n.e.Dh(),m),d=g.Th(n.e,l,null,null),!u(k,54).Ph()&&(d=u(k,54).Rh(n.e,l,null,d))),d&&d.oj(),a}return t}function kAe(n){var e,t,i;for(Dg(La,S(C(a2,1),Kn,134,0,[new rG])),t=new lG(n),i=0;i<t.a.length;++i)e=J0(t,i).te().a,Sn(e,"layered")?Dg(La,S(C(a2,1),Kn,134,0,[new e8n])):Sn(e,"force")?Dg(La,S(C(a2,1),Kn,134,0,[new D5n])):Sn(e,"stress")?Dg(La,S(C(a2,1),Kn,134,0,[new x5n])):Sn(e,"mrtree")?Dg(La,S(C(a2,1),Kn,134,0,[new f8n])):Sn(e,"radial")?Dg(La,S(C(a2,1),Kn,134,0,[new w8n])):Sn(e,"disco")?Dg(La,S(C(a2,1),Kn,134,0,[new A5n,new L5n])):Sn(e,"sporeOverlap")||Sn(e,"sporeCompaction")?Dg(La,S(C(a2,1),Kn,134,0,[new k8n])):Sn(e,"rectpacking")&&Dg(La,S(C(a2,1),Kn,134,0,[new p8n]))}function jGn(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P;if(g=new rr(n.o),P=e.a/g.a,f=e.b/g.b,k=e.a-g.a,c=e.b-g.b,t)for(r=x(v(n,(cn(),Ft)))===x((Ai(),qc)),m=new M(n.j);m.a<m.c.c.length;)switch(p=u(E(m),12),p.j.g){case 1:r||(p.n.a*=P);break;case 2:p.n.a+=k,r||(p.n.b*=f);break;case 3:r||(p.n.a*=P),p.n.b+=c;break;case 4:r||(p.n.b*=f)}for(l=new M(n.b);l.a<l.c.c.length;)h=u(E(l),72),a=h.n.a+h.o.a/2,d=h.n.b+h.o.b/2,j=a/g.a,s=d/g.b,j+s>=1&&(j-s>0&&d>=0?(h.n.a+=k,h.n.b+=c*s):j-s<0&&a>=0&&(h.n.a+=k*j,h.n.b+=c));n.o.a=e.a,n.o.b=e.b,U(n,(cn(),xd),(go(),i=u(of(P9),9),new _o(i,u(xs(i,i.length),9),0)))}function yAe(n,e,t,i,r,c){var s;if(!(e==null||!lx(e,Fdn,_dn)))throw T(new Gn("invalid scheme: "+e));if(!n&&!(t!=null&&ih(t,wu(35))==-1&&t.length>0&&(zn(0,t.length),t.charCodeAt(0)!=47)))throw T(new Gn("invalid opaquePart: "+t));if(n&&!(e!=null&&t7(jA,e.toLowerCase()))&&!(t==null||!lx(t,L9,N9)))throw T(new Gn(tJn+t));if(n&&e!=null&&t7(jA,e.toLowerCase())&&!nye(t))throw T(new Gn(tJn+t));if(!u8e(i))throw T(new Gn("invalid device: "+i));if(!U6e(r))throw s=r==null?"invalid segments: null":"invalid segment: "+F6e(r),T(new Gn(s));if(!(c==null||ih(c,wu(35))==-1))throw T(new Gn("invalid query: "+c))}function jAe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P;if(t.Ug("Network simplex layering",1),n.b=e,P=u(v(e,(cn(),V8)),17).a*4,j=n.b.a,j.c.length<1){t.Vg();return}for(c=kPe(n,j),k=null,r=ge(c,0);r.b!=r.d.c;){for(i=u(be(r),15),f=P*wi(y.Math.sqrt(i.gc())),s=$Pe(i),IR(pz(jhe(mz(KN(s),f),k),!0),t.eh(1)),g=n.b.b,m=new M(s.a);m.a<m.c.c.length;){for(p=u(E(m),125);g.c.length<=p.e;)bb(g,g.c.length,new Nc(n.b));a=u(p.f,10),$i(a,u(sn(g,p.e),30))}if(c.b>1)for(k=F(ye,_e,28,n.b.b.c.length,15,1),d=0,l=new M(n.b.b);l.a<l.c.c.length;)h=u(E(l),30),k[d++]=h.a.c.length}j.c.length=0,n.a=null,n.b=null,n.c=null,t.Vg()}function EAe(n,e){var t,i,r,c,s,f,h,l,a,d;for(a=new Z,d=new Mg,c=null,r=0,i=0;i<e.length;++i)switch(t=e[i],I6e(c,t)&&(r=RY(n,d,a,OO,r)),kt(t,(W(),s0))&&(c=u(v(t,s0),10)),t.k.g){case 0:for(h=TX(Mp(uc(t,(en(),Xn)),new QU));E$(h);)s=u(tQ(h),12),n.d[s.p]=r++,Fn(a.c,s);for(r=RY(n,d,a,OO,r),l=TX(Mp(uc(t,ae),new QU));E$(l);)s=u(tQ(l),12),n.d[s.p]=r++,Fn(a.c,s);break;case 3:uc(t,tln).dc()||(s=u(uc(t,tln).Xb(0),12),n.d[s.p]=r++,Fn(a.c,s)),uc(t,OO).dc()||W1(d,t);break;case 1:for(f=uc(t,(en(),Wn)).Kc();f.Ob();)s=u(f.Pb(),12),n.d[s.p]=r++,Fn(a.c,s);uc(t,Zn).Jc(new HMn(d,t))}return RY(n,d,a,OO,r),a}function Yen(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m;if(e==null||e.length==0)return null;if(c=u(Dc(n.f,e),23),!c){for(r=(p=new ol(n.d).a.vc().Kc(),new P0(p));r.a.Ob();)if(t=(s=u(r.a.Pb(),44),u(s.md(),23)),f=t.f,m=e.length,Sn(f.substr(f.length-m,m),e)&&(e.length==f.length||Xi(f,f.length-e.length-1)==46)){if(c)return null;c=t}if(!c){for(i=(g=new ol(n.d).a.vc().Kc(),new P0(g));i.a.Ob();)if(t=(s=u(i.a.Pb(),44),u(s.md(),23)),d=t.g,d!=null){for(h=d,l=0,a=h.length;l<a;++l)if(f=h[l],m=e.length,Sn(f.substr(f.length-m,m),e)&&(e.length==f.length||Xi(f,f.length-e.length-1)==46)){if(c)return null;c=t}}}c&&Lr(n.f,e,c)}return c}function MAe(n,e){var t,i,r,c,s;for(t=new fg,s=!1,c=0;c<e.length;c++){if(i=(zn(c,e.length),e.charCodeAt(c)),i==32){for(QC(n,t,0),t.a+=" ",QC(n,t,0);c+1<e.length&&(zn(c+1,e.length),e.charCodeAt(c+1)==32);)++c;continue}if(s){i==39?c+1<e.length&&(zn(c+1,e.length),e.charCodeAt(c+1)==39)?(t.a+=String.fromCharCode(i),++c):s=!1:t.a+=String.fromCharCode(i);continue}if(ih("GyMLdkHmsSEcDahKzZv",wu(i))>0){QC(n,t,0),t.a+=String.fromCharCode(i),r=U8e(e,c),QC(n,t,r),c+=r-1;continue}i==39?c+1<e.length&&(zn(c+1,e.length),e.charCodeAt(c+1)==39)?(t.a+="'",++c):s=!0:t.a+=String.fromCharCode(i)}QC(n,t,0),jye(n)}function TAe(n,e,t,i,r){var c,s,f,h,l,a,d,g,p,m,k,j,P,O,A;for(A=SPn(n),h=new Z,c=n.c.length,l=c-1,a=c+1;A.a.gc()!=0;){for(;t.b!=0;)P=(oe(t.b!=0),u(Xo(t,t.a.a),118)),A.a.Bc(P)!=null,P.g=l--,Ben(P,e,t,i);for(;e.b!=0;)O=(oe(e.b!=0),u(Xo(e,e.a.a),118)),A.a.Bc(O)!=null,O.g=a++,Ben(O,e,t,i);for(f=Wi,k=A.a.ec().Kc();k.Ob();){if(m=u(k.Pb(),118),!i&&m.b>0&&m.a<=0){h.c.length=0,Fn(h.c,m);break}p=m.i-m.d,p>=f&&(p>f&&(h.c.length=0,f=p),Fn(h.c,m))}h.c.length!=0&&(s=u(sn(h,cS(r,h.c.length)),118),A.a.Bc(s)!=null,s.g=a++,Ben(s,e,t,i),h.c.length=0)}for(j=n.c.length+1,g=new M(n);g.a<g.c.c.length;)d=u(E(g),118),d.g<c&&(d.g=d.g+j)}function EGn(n,e,t){var i,r,c,s;this.j=n,this.e=XZ(n),this.o=this.j.e,this.i=!!this.o,this.p=this.i?u(sn(t,Hi(this.o).p),219):null,r=u(v(n,(W(),Hc)),21),this.g=r.Hc((pr(),cs)),this.b=new Z,this.d=new $Kn(this.e),s=u(v(this.j,P3),234),this.q=Sve(e,s,this.e),this.k=new TAn(this),c=Af(S(C(nne,1),Kn,230,0,[this,this.d,this.k,this.q])),e==(Ab(),Aj)&&!on(un(v(n,(cn(),l0))))?(i=new JZ(this.e),Fn(c.c,i),this.c=new pJ(i,s,u(this.q,413))):e==Aj&&on(un(v(n,(cn(),l0))))?(i=new JZ(this.e),Fn(c.c,i),this.c=new gxn(i,s,u(this.q,413))):this.c=new _Mn(e,this),nn(c,this.c),uGn(c,this.e),this.s=aNe(this.k)}function CAe(n,e,t,i,r){var c,s,f,h,l,a,d,g,p,m,k,j;for(c=new Z,l=new M(i);l.a<l.c.c.length;)if(f=u(E(l),453),s=null,f.f==(gr(),Jc))for(m=new M(f.e);m.a<m.c.c.length;)p=u(E(m),18),j=p.d.i,Hi(j)==e?T$n(n,e,f,p,f.b,p.d):!t||Q4(j,t)?tje(n,e,f,i,p):(g=qR(n,e,t,p,f.b,Jc,s),g!=s&&Fn(c.c,g),g.c&&(s=g));else for(d=new M(f.e);d.a<d.c.c.length;)if(a=u(E(d),18),k=a.c.i,Hi(k)==e)T$n(n,e,f,a,a.c,f.b);else{if(!t||Q4(k,t))continue;g=qR(n,e,t,a,f.b,Vu,s),g!=s&&Fn(c.c,g),g.c&&(s=g)}for(h=new M(c);h.a<h.c.c.length;)f=u(E(h),453),qr(e.a,f.a,0)!=-1||nn(e.a,f.a),f.c&&Fn(r.c,f)}function MGn(n){var e,t,i,r,c,s,f;for(e=0,c=new M(n.b.a);c.a<c.c.c.length;)i=u(E(c),194),i.b=0,i.c=0;for(i_n(n,0),ax(n,n.g),IS(n.c),dz(n.c),t=(ci(),Kr),ay(nN(Yg(ay(nN(Yg(ay(Yg(n.c,t)),gKn(t)))),t))),Yg(n.c,Kr),ux(n,n.g),qFn(n,0),tGn(n,0),RHn(n,1),i_n(n,1),ax(n,n.d),IS(n.c),s=new M(n.b.a);s.a<s.c.c.length;)i=u(E(s),194),e+=y.Math.abs(i.c);for(f=new M(n.b.a);f.a<f.c.c.length;)i=u(E(f),194),i.b=0,i.c=0;for(t=us,ay(nN(Yg(ay(nN(Yg(ay(dz(Yg(n.c,t))),gKn(t)))),t))),Yg(n.c,Kr),ux(n,n.d),qFn(n,1),tGn(n,1),RHn(n,0),dz(n.c),r=new M(n.b.a);r.a<r.c.c.length;)i=u(E(r),194),e+=y.Math.abs(i.c);return e}function SAe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j;if(on(un(v(t,(cn(),Bw)))))for(f=new M(t.j);f.a<f.c.c.length;)for(s=u(E(f),12),g=hh(s.g),l=g,a=0,d=l.length;a<d;++a)h=l[a],c=h.d.i==t,r=c&&on(un(v(h,Dd))),r&&(m=h.c,p=u(ee(n.b,m),10),p||(p=my(m,(Ai(),Qf),m.j,-1,null,null,m.o,u(v(e,Lo),88),e),U(p,(W(),st),m),Ve(n.b,m,p),nn(e.a,p)),j=h.d,k=u(ee(n.b,j),10),k||(k=my(j,(Ai(),Qf),j.j,1,null,null,j.o,u(v(e,Lo),88),e),U(k,(W(),st),j),Ve(n.b,j,k),nn(e.a,k)),i=JD(h),Zi(i,u(sn(p.j,0),12)),Oi(i,u(sn(k.j,0),12)),In(n.a,h,new zM(i,e,(gr(),Jc))),u(v(e,(W(),Hc)),21).Fc((pr(),cs)))}function PAe(n,e){var t,i,r,c,s,f,h,l,a,d,g;for(r=new M(n.a.b);r.a<r.c.c.length;)for(t=u(E(r),30),h=new M(t.a);h.a<h.c.c.length;)f=u(E(h),10),e.j[f.p]=f,e.i[f.p]=e.o==(If(),Xf)?li:Pt;for(Hu(n.c),s=n.a.b,e.c==(fh(),y1)&&(s=Qo(s)),Ope(n.e,e,n.b),u7(e.p,null),c=s.Kc();c.Ob();)for(t=u(c.Pb(),30),l=t.a,e.o==(If(),Xf)&&(l=Qo(l)),g=l.Kc();g.Ob();)d=u(g.Pb(),10),e.g[d.p]==d&&ozn(n,d,e);for(uAe(n,e),i=s.Kc();i.Ob();)for(t=u(i.Pb(),30),g=new M(t.a);g.a<g.c.c.length;)d=u(E(g),10),e.p[d.p]=e.p[e.g[d.p].p],d==e.g[d.p]&&(a=$(e.i[e.j[d.p].p]),(e.o==(If(),Xf)&&a>li||e.o==Bd&&a<Pt)&&(e.p[d.p]=$(e.p[d.p])+a));n.e.xg()}function IAe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m;for(t.Ug("Label dummy switching",1),i=u(v(e,(cn(),dO)),232),vve(e),r=sTe(e,i),n.a=F(Ii,Cr,28,e.b.c.length,15,1),f=(Yp(),S(C(wv,1),G,232,0,[bv,D8,dv,Dw,p2,g2])),a=0,p=f.length;a<p;++a)if(c=f[a],(c==p2||c==g2||c==Dw)&&!u(Su(r.a,c)?r.b[c.g]:null,15).dc()){Mve(n,e);break}for(h=S(C(wv,1),G,232,0,[bv,D8,dv,Dw,p2,g2]),d=0,m=h.length;d<m;++d)c=h[d],c==p2||c==g2||c==Dw||hUn(n,u(Su(r.a,c)?r.b[c.g]:null,15));for(s=S(C(wv,1),G,232,0,[bv,D8,dv,Dw,p2,g2]),l=0,g=s.length;l<g;++l)c=s[l],(c==p2||c==g2||c==Dw)&&hUn(n,u(Su(r.a,c)?r.b[c.g]:null,15));n.a=null,t.Vg()}function TGn(n,e){var t,i,r,c,s,f,h,l,a;if(l=e,!(l.b==null||n.b==null)){for(Gg(n),z5(n),Gg(l),z5(l),t=F(ye,_e,28,n.b.length+l.b.length,15,1),a=0,i=0,s=0;i<n.b.length&&s<l.b.length;)if(r=n.b[i],c=n.b[i+1],f=l.b[s],h=l.b[s+1],c<f)i+=2;else if(c>=f&&r<=h)f<=r&&c<=h?(t[a++]=r,t[a++]=c,i+=2):f<=r?(t[a++]=r,t[a++]=h,n.b[i]=h+1,s+=2):c<=h?(t[a++]=f,t[a++]=c,i+=2):(t[a++]=f,t[a++]=h,n.b[i]=h+1);else if(h<r)s+=2;else throw T(new ec("Token#intersectRanges(): Internal Error: ["+n.b[i]+","+n.b[i+1]+"] & ["+l.b[s]+","+l.b[s+1]+"]"));for(;i<n.b.length;)t[a++]=n.b[i++],t[a++]=n.b[i++];n.b=F(ye,_e,28,a,15,1),Oc(t,0,n.b,0,a)}}function OAe(n){var e,t,i,r,c,s,f;for(e=new Z,n.g=new Z,n.d=new Z,s=new sd(new Ua(n.f.b).a);s.b;)c=Nb(s),nn(e,u(u(c.md(),42).b,86)),hl(u(c.ld(),602).Af())?nn(n.d,u(c.md(),42)):nn(n.g,u(c.md(),42));for(ax(n,n.d),ax(n,n.g),n.c=new Z_n(n.b),Mhe(n.c,(Lz(),jZn)),ux(n,n.d),ux(n,n.g),hi(e,n.c.a.b),n.e=new V(Pt,Pt),n.a=new V(li,li),i=new M(e);i.a<i.c.c.length;)t=u(E(i),86),n.e.a=y.Math.min(n.e.a,t.g.c),n.e.b=y.Math.min(n.e.b,t.g.d),n.a.a=y.Math.max(n.a.a,t.g.c+t.g.b),n.a.b=y.Math.max(n.a.b,t.g.d+t.g.a);kz(n.c,new Q0n),f=0;do r=MGn(n),++f;while((f<2||r>fa)&&f<10);kz(n.c,new Y0n),MGn(n),pwe(n.c),aAe(n.f)}function AAe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k;for(t=u(v(n,(cn(),Ft)),101),s=n.f,c=n.d,f=s.a+c.b+c.c,h=0-c.d-n.c.b,a=s.b+c.d+c.a-n.c.b,l=new Z,d=new Z,r=new M(e);r.a<r.c.c.length;){switch(i=u(E(r),10),t.g){case 1:case 2:case 3:vCe(i);break;case 4:g=u(v(i,b0),8),p=g?g.a:0,i.n.a=f*$(B(v(i,(W(),f0))))-p,OC(i,!0,!1);break;case 5:m=u(v(i,b0),8),k=m?m.a:0,i.n.a=$(B(v(i,(W(),f0))))-k,OC(i,!0,!1),s.a=y.Math.max(s.a,i.n.a+i.o.a/2)}switch(u(v(i,(W(),gc)),64).g){case 1:i.n.b=h,Fn(l.c,i);break;case 3:i.n.b=a,Fn(d.c,i)}}switch(t.g){case 1:case 2:cKn(l,n),cKn(d,n);break;case 3:uKn(l,n),uKn(d,n)}}function LAe(n,e){var t,i,r,c,s,f,h,l,a,d,g;switch(n.k.g){case 1:if(i=u(v(n,(W(),st)),18),t=u(v(i,rfn),75),t?on(un(v(i,zf)))&&(t=Pk(t)):t=new Tu,l=u(v(n,yf),12),l){if(a=cc(S(C(Ei,1),J,8,0,[l.i.n,l.n,l.a])),e<=a.a)return a.b;xt(t,a,t.a,t.a.a)}if(d=u(v(n,Es),12),d){if(g=cc(S(C(Ei,1),J,8,0,[d.i.n,d.n,d.a])),g.a<=e)return g.b;xt(t,g,t.c.b,t.c)}if(t.b>=2){for(h=ge(t,0),s=u(be(h),8),f=u(be(h),8);f.a<e&&h.b!=h.d.c;)s=f,f=u(be(h),8);return s.b+(e-s.a)/(f.a-s.a)*(f.b-s.b)}break;case 3:switch(c=u(v(u(sn(n.j,0),12),(W(),st)),12),r=c.i,c.j.g){case 1:return r.n.b;case 3:return r.n.b+r.o.b}}return KZ(n).b}function NAe(n){var e,t,i,r,c,s,f,h,l,a,d;for(s=new M(n.d.b);s.a<s.c.c.length;)for(c=u(E(s),30),h=new M(c.a);h.a<h.c.c.length;){if(f=u(E(h),10),on(un(v(f,(cn(),q8))))&&!D4(Ml(f))){i=u(Cge(Ml(f)),18),a=i.c.i,a==f&&(a=i.d.i),d=new bi(a,mi(Fi(f.n),a.n)),Ve(n.b,f,d);continue}r=new Ho(f.n.a-f.d.b,f.n.b-f.d.d,f.o.a+f.d.b+f.d.c,f.o.b+f.d.d+f.d.a),e=eSn(sMn(uMn(oMn(new VG,f),r),YZn),n.a),nSn(Jhe(z$n(new XG,S(C(aI,1),Kn,60,0,[e])),e),n.a),l=new rL,Ve(n.e,e,l),t=wl(new ie(ce(ji(f).a.Kc(),new En)))-wl(new ie(ce(Qt(f).a.Kc(),new En))),t<0?Ck(l,!0,(ci(),Kr)):t>0&&Ck(l,!0,(ci(),Xr)),f.k==(Vn(),Zt)&&sOn(l),Ve(n.f,f,e)}}function DAe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D;for(r=u(v(n,(pt(),u9)),27),l=et,a=et,f=Wi,h=Wi,A=ge(n.b,0);A.b!=A.d.c;)P=u(be(A),40),p=P.e,m=P.f,l=y.Math.min(l,p.a-m.a/2),a=y.Math.min(a,p.b-m.b/2),f=y.Math.max(f,p.a+m.a/2),h=y.Math.max(h,p.b+m.b/2);for(g=u(z(r,(lc(),Oln)),107),O=ge(n.b,0);O.b!=O.d.c;)P=u(be(O),40),d=v(P,u9),L(d,207)&&(c=u(d,27),Bo(c,P.e.a,P.e.b),uy(c,P));for(j=ge(n.a,0);j.b!=j.d.c;)k=u(be(j),65),i=u(v(k,u9),74),i&&(e=k.a,t=Xg(i,!0,!0),dy(e,t));D=f-l+(g.b+g.c),s=h-a+(g.d+g.a),on(un(z(r,(He(),Vw))))||Gb(r,D,s,!1,!1),ht(r,K2,D-(g.b+g.c)),ht(r,R2,s-(g.d+g.a))}function CGn(n,e){var t,i,r,c,s,f,h,l,a,d;for(h=!0,r=0,l=n.g[e.p],a=e.o.b+n.o,t=n.d[e.p][2],Go(n.b,l,Y(u(sn(n.b,l),17).a-1+t)),Go(n.c,l,$(B(sn(n.c,l)))-a+t*n.f),++l,l>=n.j?(++n.j,nn(n.b,Y(1)),nn(n.c,a)):(i=n.d[e.p][1],Go(n.b,l,Y(u(sn(n.b,l),17).a+1-i)),Go(n.c,l,$(B(sn(n.c,l)))+a-i*n.f)),(n.r==(ps(),Pj)&&(u(sn(n.b,l),17).a>n.k||u(sn(n.b,l-1),17).a>n.k)||n.r==Ij&&($(B(sn(n.c,l)))>n.n||$(B(sn(n.c,l-1)))>n.n))&&(h=!1),s=new ie(ce(ji(e).a.Kc(),new En));pe(s);)c=u(fe(s),18),f=c.c.i,n.g[f.p]==l&&(d=CGn(n,f),r=r+u(d.a,17).a,h=h&&on(un(d.b)));return n.g[e.p]=l,r=r+n.d[e.p][0],new bi(Y(r),(_n(),!!h))}function SGn(n,e){var t,i,r,c,s;t=$(B(v(e,(cn(),Ws)))),t<2&&U(e,Ws,2),i=u(v(e,Lo),88),i==(ci(),Jf)&&U(e,Lo,FC(e)),r=u(v(e,Ute),17),r.a==0?U(e,(W(),P3),new dx):U(e,(W(),P3),new qT(r.a)),c=un(v(e,G8)),c==null&&U(e,G8,(_n(),x(v(e,$l))===x((El(),Bv)))),qt(new Cn(null,new On(e.a,16)),new OG(n)),qt(rc(new Cn(null,new On(e.b,16)),new _U),new AG(n)),s=new yGn(e),U(e,(W(),E2),s),H7(n.a),hf(n.a,(Vi(),Vs),u(v(e,Nd),188)),hf(n.a,Jh,u(v(e,$d),188)),hf(n.a,Ac,u(v(e,U8),188)),hf(n.a,Fc,u(v(e,vO),188)),hf(n.a,zr,Dve(u(v(e,$l),223))),MX(n.a,INe(e)),U(e,bH,gy(n.a,e))}function Zen(n,e,t,i,r){var c,s,f,h,l,a,d,g,p,m,k,j,P;for(d=new de,s=new Z,C_n(n,t,n.d.Ag(),s,d),C_n(n,i,n.d.Bg(),s,d),n.b=.2*(k=AHn(rc(new Cn(null,new On(s,16)),new R3n)),j=AHn(rc(new Cn(null,new On(s,16)),new K3n)),y.Math.min(k,j)),c=0,f=0;f<s.c.length-1;f++)for(h=(Nn(f,s.c.length),u(s.c[f],118)),m=f+1;m<s.c.length;m++)c+=zen(n,h,(Nn(m,s.c.length),u(s.c[m],118)));for(g=u(v(e,(W(),P3)),234),c>=2&&(P=JHn(s,!0,g),!n.e&&(n.e=new okn(n)),F8e(n.e,P,s,n.b)),NFn(s,g),FAe(s),p=-1,a=new M(s);a.a<a.c.c.length;)l=u(E(a),118),!(y.Math.abs(l.s-l.c)<vh)&&(p=y.Math.max(p,l.o),n.d.yg(l,r,n.c));return n.d.a.a.$b(),p+1}function $Ae(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D;for(d=u(DM((s=ge(new sl(e).a.d,0),new sg(s))),40),m=d?u(v(d,(pt(),cq)),40):null,r=1;d&&m;){for(h=0,D=0,t=d,i=m,f=0;f<r;f++)t=n$(t),i=n$(i),D+=$(B(v(t,(pt(),Nv)))),h+=$(B(v(i,Nv)));if(A=$(B(v(m,(pt(),j1)))),O=$(B(v(d,j1))),g=OY(n,d,m),p=A+h+n.b+g-O-D,0<p){for(l=e,a=0;l&&l!=i;)++a,l=u(v(l,$O),40);if(l)for(P=p/a,l=e;l!=i;)j=$(B(v(l,j1)))+p,U(l,j1,j),k=$(B(v(l,Nv)))+p,U(l,Nv,k),p-=P,l=u(v(l,$O),40);else return}++r,d.d.b==0?d=Aen(new sl(e),r):d=u(DM((c=ge(new sl(d).a.d,0),new sg(c))),40),m=d?u(v(d,cq),40):null}}function xAe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X;return g=n.c[e],p=n.c[t],m=u(v(g,(W(),C3)),15),!!m&&m.gc()!=0&&m.Hc(p)||(k=g.k!=(Vn(),Ti)&&p.k!=Ti,j=u(v(g,s0),10),P=u(v(p,s0),10),O=j!=P,A=!!j&&j!=g||!!P&&P!=p,D=$x(g,(en(),Xn)),_=$x(p,ae),A=A|($x(g,ae)||$x(p,Xn)),X=A&&O||D||_,k&&X)||g.k==(Vn(),_c)&&p.k==zt||p.k==(Vn(),_c)&&g.k==zt?!1:(a=n.c[e],c=n.c[t],r=mFn(n.e,a,c,(en(),Wn)),h=mFn(n.i,a,c,Zn),aCe(n.f,a,c),l=LRn(n.b,a,c)+u(r.a,17).a+u(h.a,17).a+n.f.d,f=LRn(n.b,c,a)+u(r.b,17).a+u(h.b,17).a+n.f.b,n.a&&(d=u(v(a,st),12),s=u(v(c,st),12),i=ZBn(n.g,d,s),l+=u(i.a,17).a,f+=u(i.b,17).a),l>f)}function PGn(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O;for(l=Pt,a=Pt,f=li,h=li,g=new M(e.i);g.a<g.c.c.length;)d=u(E(g),68),r=u(u(ee(n.g,d.a),42).b,27),Bo(r,d.b.c,d.b.d),l=y.Math.min(l,r.i),a=y.Math.min(a,r.j),f=y.Math.max(f,r.i+r.g),h=y.Math.max(h,r.j+r.f);for(p=u(z(n.c,(Wk(),Qce)),107),Gb(n.c,f-l+(p.b+p.c),h-a+(p.d+p.a),!0,!0),rnn(n.c,-l+p.b,-a+p.d),i=new ne($On(n.c));i.e!=i.i.gc();)t=u(ue(i),74),s=Xg(t,!0,!0),m=Fh(t),j=ra(t),k=new V(m.i+m.g/2,m.j+m.f/2),c=new V(j.i+j.g/2,j.j+j.f/2),P=mi(new V(c.a,c.b),k),vm(P,m.g,m.f),tt(k,P),O=mi(new V(k.a,k.b),c),vm(O,j.g,j.f),tt(c,O),j7(s,k.a,k.b),y7(s,c.a,c.b)}function RAe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m;for(e.Ug("Label dummy removal",1),i=$(B(v(n,(cn(),C2)))),r=$(B(v(n,qw))),l=u(v(n,Lo),88),h=new M(n.b);h.a<h.c.c.length;)for(f=u(E(h),30),d=new xi(f.a,0);d.b<d.d.gc();)a=(oe(d.b<d.d.gc()),u(d.d.Xb(d.c=d.b++),10)),a.k==(Vn(),Sc)&&(g=u(v(a,(W(),st)),18),m=$(B(v(g,m1))),s=x(v(a,S3))===x((Co(),Sa)),t=new rr(a.n),s&&(t.b+=m+i),c=new V(a.o.a,a.o.b+(a.k==Sc&&!s4(ut(u(v(a,F8),15).Oc(),new Z3(new qU))).Bd((Va(),v3))?0:-m-i)),p=u(v(a,F8),15),l==(ci(),us)||l==Wf?qMe(p,t,r,c,s,l):Q6e(p,t,r,c),hi(g.b,p),XR(a,x(v(n,$l))===x((El(),Yj))),bo(d));e.Vg()}function KAe(n){n.q||(n.q=!0,n.p=hc(n,0),n.a=hc(n,1),jt(n.a,0),n.f=hc(n,2),jt(n.f,1),Rt(n.f,2),n.n=hc(n,3),Rt(n.n,3),Rt(n.n,4),Rt(n.n,5),Rt(n.n,6),n.g=hc(n,4),jt(n.g,7),Rt(n.g,8),n.c=hc(n,5),jt(n.c,7),jt(n.c,8),n.i=hc(n,6),jt(n.i,9),jt(n.i,10),jt(n.i,11),jt(n.i,12),Rt(n.i,13),n.j=hc(n,7),jt(n.j,9),n.d=hc(n,8),jt(n.d,3),jt(n.d,4),jt(n.d,5),jt(n.d,6),Rt(n.d,7),Rt(n.d,8),Rt(n.d,9),Rt(n.d,10),n.b=hc(n,9),Rt(n.b,0),Rt(n.b,1),n.e=hc(n,10),Rt(n.e,1),Rt(n.e,2),Rt(n.e,3),Rt(n.e,4),jt(n.e,5),jt(n.e,6),jt(n.e,7),jt(n.e,8),jt(n.e,9),jt(n.e,10),Rt(n.e,11),n.k=hc(n,11),Rt(n.k,0),Rt(n.k,1),n.o=Je(n,12),n.s=Je(n,13))}function ntn(n,e){e.dc()&&Nh(n.j,!0,!0,!0,!0),rt(e,(en(),ef))&&Nh(n.j,!0,!0,!0,!1),rt(e,os)&&Nh(n.j,!1,!0,!0,!0),rt(e,Do)&&Nh(n.j,!0,!0,!1,!0),rt(e,Cs)&&Nh(n.j,!0,!1,!0,!0),rt(e,Wu)&&Nh(n.j,!1,!0,!0,!1),rt(e,ss)&&Nh(n.j,!1,!0,!1,!0),rt(e,$o)&&Nh(n.j,!0,!1,!1,!0),rt(e,tf)&&Nh(n.j,!0,!1,!0,!1),rt(e,mu)&&Nh(n.j,!0,!0,!0,!0),rt(e,su)&&Nh(n.j,!0,!0,!0,!0),rt(e,mu)&&Nh(n.j,!0,!0,!0,!0),rt(e,pu)&&Nh(n.j,!0,!0,!0,!0),rt(e,vu)&&Nh(n.j,!0,!0,!0,!0),rt(e,Ju)&&Nh(n.j,!0,!0,!0,!0),rt(e,Uc)&&Nh(n.j,!0,!0,!0,!0)}function IGn(n,e,t){var i,r,c,s,f,h,l,a,d;if(n.a!=e.jk())throw T(new Gn(ev+e.xe()+n0));if(i=r1((Lu(),zi),e).Jl(),i)return i.jk().wi().ri(i,t);if(s=r1(zi,e).Ll(),s){if(t==null)return null;if(f=u(t,15),f.dc())return"";for(d=new Hl,c=f.Kc();c.Ob();)r=c.Pb(),Er(d,s.jk().wi().ri(s,r)),d.a+=" ";return bN(d,d.a.length-1)}if(a=r1(zi,e).Ml(),!a.dc()){for(l=a.Kc();l.Ob();)if(h=u(l.Pb(),156),h.fk(t))try{if(d=h.jk().wi().ri(h,t),d!=null)return d}catch(g){if(g=Ot(g),!L(g,103))throw T(g)}throw T(new Gn("Invalid value: '"+t+"' for datatype :"+e.xe()))}return u(e,847).ok(),t==null?null:L(t,180)?""+u(t,180).a:wo(t)==oI?TCn(A9[0],u(t,206)):Jr(t)}function BAe(n){var e,t,i,r,c,s,f,h,l,a;for(l=new Mt,f=new Mt,c=new M(n);c.a<c.c.c.length;)i=u(E(c),131),i.v=0,i.n=i.i.c.length,i.u=i.t.c.length,i.n==0&&xt(l,i,l.c.b,l.c),i.u==0&&i.r.a.gc()==0&&xt(f,i,f.c.b,f.c);for(s=-1;l.b!=0;)for(i=u(Ux(l,0),131),t=new M(i.t);t.a<t.c.c.length;)e=u(E(t),274),a=e.b,a.v=y.Math.max(a.v,i.v+1),s=y.Math.max(s,a.v),--a.n,a.n==0&&xt(l,a,l.c.b,l.c);if(s>-1){for(r=ge(f,0);r.b!=r.d.c;)i=u(be(r),131),i.v=s;for(;f.b!=0;)for(i=u(Ux(f,0),131),t=new M(i.i);t.a<t.c.c.length;)e=u(E(t),274),h=e.a,h.r.a.gc()==0&&(h.v=y.Math.min(h.v,i.v-1),--h.u,h.u==0&&xt(f,h,f.c.b,f.c))}}function FAe(n){var e,t,i,r,c,s,f,h,l,a;for(l=new Z,f=new Z,s=new M(n);s.a<s.c.c.length;)r=u(E(s),118),JA(r,r.f.c.length),PE(r,r.k.c.length),r.d==0&&Fn(l.c,r),r.i==0&&r.e.b==0&&Fn(f.c,r);for(i=-1;l.c.length!=0;)for(r=u(Yl(l,0),118),t=new M(r.k);t.a<t.c.c.length;)e=u(E(t),132),a=e.b,gG(a,y.Math.max(a.o,r.o+1)),i=y.Math.max(i,a.o),JA(a,a.d-1),a.d==0&&Fn(l.c,a);if(i>-1){for(c=new M(f);c.a<c.c.c.length;)r=u(E(c),118),r.o=i;for(;f.c.length!=0;)for(r=u(Yl(f,0),118),t=new M(r.f);t.a<t.c.c.length;)e=u(E(t),132),h=e.a,!(h.e.b>0)&&(gG(h,y.Math.min(h.o,r.o-1)),PE(h,h.i-1),h.i==0&&Fn(f.c,h))}}function OGn(n,e,t,i,r){var c,s,f,h;return h=Pt,s=!1,f=Uen(n,mi(new V(e.a,e.b),n),tt(new V(t.a,t.b),r),mi(new V(i.a,i.b),t)),c=!!f&&!(y.Math.abs(f.a-n.a)<=Yb&&y.Math.abs(f.b-n.b)<=Yb||y.Math.abs(f.a-e.a)<=Yb&&y.Math.abs(f.b-e.b)<=Yb),f=Uen(n,mi(new V(e.a,e.b),n),t,r),f&&((y.Math.abs(f.a-n.a)<=Yb&&y.Math.abs(f.b-n.b)<=Yb)==(y.Math.abs(f.a-e.a)<=Yb&&y.Math.abs(f.b-e.b)<=Yb)||c?h=y.Math.min(h,z6(mi(f,t))):s=!0),f=Uen(n,mi(new V(e.a,e.b),n),i,r),f&&(s||(y.Math.abs(f.a-n.a)<=Yb&&y.Math.abs(f.b-n.b)<=Yb)==(y.Math.abs(f.a-e.a)<=Yb&&y.Math.abs(f.b-e.b)<=Yb)||c)&&(h=y.Math.min(h,z6(mi(f,i)))),h}function AGn(n){rb(n,new gd(UE(eb(Yd(nb(Zd(new Fa,la),PXn),"Minimizes the stress within a layout using stress majorization. Stress exists if the euclidean distance between a pair of nodes doesn't match their graph theoretic distance, that is, the shortest path between the two nodes. The method allows to specify individual edge lengths."),new X0n),cu))),Q(n,la,i8,rn(Con)),Q(n,la,oP,(_n(),!0)),Q(n,la,r2,rn(dZn)),Q(n,la,d3,rn(bZn)),Q(n,la,a3,rn(wZn)),Q(n,la,Xm,rn(aZn)),Q(n,la,r8,rn(Pon)),Q(n,la,Vm,rn(gZn)),Q(n,la,Jtn,rn(Ton)),Q(n,la,Ytn,rn(Eon)),Q(n,la,Ztn,rn(Mon)),Q(n,la,nin,rn(Son)),Q(n,la,Qtn,rn(EI))}function _Ae(n){var e,t,i,r,c,s,f,h;for(e=null,i=new M(n);i.a<i.c.c.length;)t=u(E(i),239),$(Sf(t.g,t.d[0]).a),t.b=null,t.e&&t.e.gc()>0&&t.c==0&&(!e&&(e=new Z),Fn(e.c,t));if(e)for(;e.c.length!=0;){if(t=u(Yl(e,0),239),t.b&&t.b.c.length>0){for(c=(!t.b&&(t.b=new Z),new M(t.b));c.a<c.c.c.length;)if(r=u(E(c),239),J9(Sf(r.g,r.d[0]).a)==J9(Sf(t.g,t.d[0]).a)){if(qr(n,r,0)>qr(n,t,0))return new bi(r,t)}else if($(Sf(r.g,r.d[0]).a)>$(Sf(t.g,t.d[0]).a))return new bi(r,t)}for(f=(!t.e&&(t.e=new Z),t.e).Kc();f.Ob();)s=u(f.Pb(),239),h=(!s.b&&(s.b=new Z),s.b),z0(0,h.c.length),d6(h.c,0,t),s.c==h.c.length&&Fn(e.c,s)}return null}function HAe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P;for(e.Ug("Interactive crossing minimization",1),s=0,c=new M(n.b);c.a<c.c.c.length;)i=u(E(c),30),i.p=s++;for(g=XZ(n),j=new jz(g.length),uGn(new Fu(S(C(nne,1),Kn,230,0,[j])),g),k=0,s=0,r=new M(n.b);r.a<r.c.c.length;){for(i=u(E(r),30),t=0,d=0,a=new M(i.a);a.a<a.c.c.length;)for(h=u(E(a),10),h.n.a>0&&(t+=h.n.a+h.o.a/2,++d),m=new M(h.j);m.a<m.c.c.length;)p=u(E(m),12),p.p=k++;for(d>0&&(t/=d),P=F(Ii,Cr,28,i.a.c.length,15,1),f=0,l=new M(i.a);l.a<l.c.c.length;)h=u(E(l),10),h.p=f++,P[h.p]=LAe(h,t),h.k==(Vn(),Ti)&&U(h,(W(),cfn),P[h.p]);Ln(),Yt(i.a,new B7n(P)),aUn(j,g,s,!0),++s}e.Vg()}function V5(n,e){var t,i,r,c,s,f,h,l,a;if(e.e==5){TGn(n,e);return}if(l=e,!(l.b==null||n.b==null)){for(Gg(n),z5(n),Gg(l),z5(l),t=F(ye,_e,28,n.b.length+l.b.length,15,1),a=0,i=0,s=0;i<n.b.length&&s<l.b.length;)if(r=n.b[i],c=n.b[i+1],f=l.b[s],h=l.b[s+1],c<f)t[a++]=n.b[i++],t[a++]=n.b[i++];else if(c>=f&&r<=h)f<=r&&c<=h?i+=2:f<=r?(n.b[i]=h+1,s+=2):c<=h?(t[a++]=r,t[a++]=f-1,i+=2):(t[a++]=r,t[a++]=f-1,n.b[i]=h+1,s+=2);else if(h<r)s+=2;else throw T(new ec("Token#subtractRanges(): Internal Error: ["+n.b[i]+","+n.b[i+1]+"] - ["+l.b[s]+","+l.b[s+1]+"]"));for(;i<n.b.length;)t[a++]=n.b[i++],t[a++]=n.b[i++];n.b=F(ye,_e,28,a,15,1),Oc(t,0,n.b,0,a)}}function LGn(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A;for(f=Xg(e,!1,!1),P=Qk(f),i&&(P=Pk(P)),A=$(B(z(e,(M5(),w_)))),j=(oe(P.b!=0),u(P.a.a.c,8)),d=u(Zo(P,1),8),P.b>2?(a=new Z,hi(a,new Jl(P,1,P.b)),c=mzn(a,A+n.a),O=new bR(c),Ur(O,e),Fn(t.c,O)):i?O=u(ee(n.b,Fh(e)),272):O=u(ee(n.b,ra(e)),272),h=Fh(e),i&&(h=ra(e)),s=_je(j,h),l=A+n.a,s.a?(l+=y.Math.abs(j.b-d.b),k=new V(d.a,(d.b+j.b)/2)):(l+=y.Math.abs(j.a-d.a),k=new V((d.a+j.a)/2,d.b)),i?Ve(n.d,e,new pZ(O,s,k,l)):Ve(n.c,e,new pZ(O,s,k,l)),Ve(n.b,e,O),m=(!e.n&&(e.n=new q(Sr,e,1,7)),e.n),p=new ne(m);p.e!=p.i.gc();)g=u(ue(p),135),r=fy(n,g,!0,0,0),Fn(t.c,r)}function qAe(n){var e,t,i,r,c,s,f;if(!n.A.dc()){if(n.A.Hc((go(),rE))&&(u(Mr(n.b,(en(),Xn)),127).k=!0,u(Mr(n.b,ae),127).k=!0,e=n.q!=(Ai(),tl)&&n.q!=qc,dG(u(Mr(n.b,Zn),127),e),dG(u(Mr(n.b,Wn),127),e),dG(n.g,e),n.A.Hc(Gd)&&(u(Mr(n.b,Xn),127).j=!0,u(Mr(n.b,ae),127).j=!0,u(Mr(n.b,Zn),127).k=!0,u(Mr(n.b,Wn),127).k=!0,n.g.k=!0)),n.A.Hc(iE))for(n.a.j=!0,n.a.k=!0,n.g.j=!0,n.g.k=!0,f=n.B.Hc((io(),I9)),r=jx(),c=0,s=r.length;c<s;++c)i=r[c],t=u(Mr(n.i,i),314),t&&(eZ(i)?(t.j=!0,t.k=!0):(t.j=!f,t.k=!f));n.A.Hc(Qw)&&n.B.Hc((io(),uE))&&(n.g.j=!0,n.g.j=!0,n.a.j||(n.a.j=!0,n.a.k=!0,n.a.e=!0))}}function UAe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P;for(i=new M(n.e.b);i.a<i.c.c.length;)for(t=u(E(i),30),c=new M(t.a);c.a<c.c.c.length;)if(r=u(E(c),10),p=n.i[r.p],l=p.a.e,h=p.d.e,r.n.b=l,P=h-l-r.o.b,e=HR(r),g=(cw(),(r.q?r.q:(Ln(),Ln(),Wh))._b((cn(),d0))?d=u(v(r,d0),203):d=u(v(Hi(r),z8),203),d),e&&(g==I2||g==P2)&&(r.o.b+=P),e&&(g==RH||g==I2||g==P2)){for(k=new M(r.j);k.a<k.c.c.length;)m=u(E(k),12),(en(),su).Hc(m.j)&&(a=u(ee(n.k,m),125),m.n.b=a.e-l);for(f=new M(r.b);f.a<f.c.c.length;)s=u(E(f),72),j=u(v(r,a0),21),j.Hc((lw(),Ts))?s.n.b+=P:j.Hc(el)&&(s.n.b+=P/2);(g==I2||g==P2)&&uc(r,(en(),ae)).Jc(new ekn(P))}}function GAe(n,e,t){var i,r,c,s,f,h,l,a,d,g;for(l=new Z,h=new M(e.a);h.a<h.c.c.length;)for(s=u(E(h),10),g=uc(s,(en(),Zn)).Kc();g.Ob();)for(d=u(g.Pb(),12),r=new M(d.g);r.a<r.c.c.length;)i=u(E(r),18),!(!fr(i)&&i.c.i.c==i.d.i.c||fr(i)||i.d.i.c!=t)&&Fn(l.c,i);for(f=Qo(t.a).Kc();f.Ob();)for(s=u(f.Pb(),10),g=uc(s,(en(),Wn)).Kc();g.Ob();)for(d=u(g.Pb(),12),r=new M(d.e);r.a<r.c.c.length;)if(i=u(E(r),18),!(!fr(i)&&i.c.i.c==i.d.i.c||fr(i)||i.c.i.c!=e)&&l.c.length!=0){for(a=new xi(l,l.c.length),c=(oe(a.b>0),u(a.a.Xb(a.c=--a.b),18));c!=i&&a.b>0;)n.a[c.p]=!0,n.a[i.p]=!0,c=(oe(a.b>0),u(a.a.Xb(a.c=--a.b),18));a.b>0&&bo(a)}}function NGn(n,e,t){var i,r,c,s,f,h,l,a,d,g,p;if(!n.b)return!1;for(s=null,g=null,h=new r$(null,null),r=1,h.a[1]=n.b,d=h;d.a[r];)l=r,f=g,g=d,d=d.a[r],i=n.a.Ne(e,d.d),r=i<0?0:1,i==0&&(!t.c||mc(d.e,t.d))&&(s=d),!(d&&d.b)&&!O0(d.a[r])&&(O0(d.a[1-r])?g=g.a[l]=jC(d,r):O0(d.a[1-r])||(p=g.a[1-l],p&&(!O0(p.a[1-l])&&!O0(p.a[l])?(g.b=!1,p.b=!0,d.b=!0):(c=f.a[1]==g?1:0,O0(p.a[l])?f.a[c]=fLn(g,l):O0(p.a[1-l])&&(f.a[c]=jC(g,l)),d.b=f.a[c].b=!0,f.a[c].a[0].b=!1,f.a[c].a[1].b=!1))));return s&&(t.b=!0,t.d=s.e,d!=s&&(a=new r$(d.d,d.e),zye(n,h,s,a),g==s&&(g=a)),g.a[g.a[1]==d?1:0]=d.a[d.a[0]?0:1],--n.c),n.b=h.a[1],n.b&&(n.b.b=!1),t.b}function zAe(n){var e,t,i,r,c,s,f,h,l,a,d,g;for(r=new M(n.a.a.b);r.a<r.c.c.length;)for(i=u(E(r),60),h=i.c.Kc();h.Ob();)f=u(h.Pb(),60),i.a!=f.a&&(hl(n.a.d)?d=n.a.g.ff(i,f):d=n.a.g.gf(i,f),c=i.b.a+i.d.b+d-f.b.a,c=y.Math.ceil(c),c=y.Math.max(0,c),iQ(i,f)?(s=hb(new za,n.d),l=wi(y.Math.ceil(f.b.a-i.b.a)),e=l-(f.b.a-i.b.a),a=xp(i).a,t=i,a||(a=xp(f).a,e=-e,t=f),a&&(t.b.a-=e,a.n.a-=e),qs(Ns(Ls(Ds(As(new hs,y.Math.max(0,l)),1),s),n.c[i.a.d])),qs(Ns(Ls(Ds(As(new hs,y.Math.max(0,-l)),1),s),n.c[f.a.d]))):(g=1,(L(i.g,154)&&L(f.g,10)||L(f.g,154)&&L(i.g,10))&&(g=2),qs(Ns(Ls(Ds(As(new hs,wi(c)),g),n.c[i.a.d]),n.c[f.a.d]))))}function DGn(n,e,t){var i,r,c,s,f,h,l,a,d,g;if(t)for(i=-1,a=new xi(e,0);a.b<a.d.gc();){if(f=(oe(a.b<a.d.gc()),u(a.d.Xb(a.c=a.b++),10)),d=n.c[f.c.p][f.p].a,d==null){for(s=i+1,c=new xi(e,a.b);c.b<c.d.gc();)if(g=m1e(n,(oe(c.b<c.d.gc()),u(c.d.Xb(c.c=c.b++),10))).a,g!=null){s=(Jn(g),g);break}d=(i+s)/2,n.c[f.c.p][f.p].a=d,n.c[f.c.p][f.p].d=(Jn(d),d),n.c[f.c.p][f.p].b=1}i=(Jn(d),d)}else{for(r=0,l=new M(e);l.a<l.c.c.length;)f=u(E(l),10),n.c[f.c.p][f.p].a!=null&&(r=y.Math.max(r,$(n.c[f.c.p][f.p].a)));for(r+=2,h=new M(e);h.a<h.c.c.length;)f=u(E(h),10),n.c[f.c.p][f.p].a==null&&(d=to(n.i,24)*Oy*r-1,n.c[f.c.p][f.p].a=d,n.c[f.c.p][f.p].d=d,n.c[f.c.p][f.p].b=1)}}function XAe(n,e,t){var i,r,c,s,f,h,l,a,d;for(!t&&(t=t6e(e.q.getTimezoneOffset())),r=(e.q.getTimezoneOffset()-t.a)*6e4,f=new sV(nr(vc(e.q.getTime()),r)),h=f,f.q.getTimezoneOffset()!=e.q.getTimezoneOffset()&&(r>0?r-=864e5:r+=864e5,h=new sV(nr(vc(e.q.getTime()),r))),a=new fg,l=n.a.length,c=0;c<l;)if(i=Xi(n.a,c),i>=97&&i<=122||i>=65&&i<=90){for(s=c+1;s<l&&Xi(n.a,s)==i;++s);zNe(a,i,s-c,f,h,t),c=s}else if(i==39){if(++c,c<l&&Xi(n.a,c)==39){a.a+="'",++c;continue}for(d=!1;!d;){for(s=c;s<l&&Xi(n.a,s)!=39;)++s;if(s>=l)throw T(new Gn("Missing trailing '"));s+1<l&&Xi(n.a,s+1)==39?++s:d=!0,Be(a,qo(n.a,c,s)),c=s+1}}else a.a+=String.fromCharCode(i),++c;return a.a}function VAe(){Ge(ng,new Xvn),Ge(Ue,new r6n),Ge(Ss,new w6n),Ge(Mf,new y6n),Ge(jU,new j6n),Ge(EA,new E6n),Ge(Kl,new M6n),Ge(O9,new T6n),Ge(fE,new Rvn),Ge(gU,new Kvn),Ge(Aa,new Bvn),Ge(Ps,new Fvn),Ge(Ef,new _vn),Ge(y0,new Hvn),Ge(eg,new qvn),Ge(ku,new Uvn),Ge(Zw,new Gvn),Ge(pc,new zvn),Ge(jr,new Vvn),Ge(fu,new Wvn),Ge(Gt,new Jvn),Ge(C(Ru,1),new Qvn),Ge(p3,new Yvn),Ge(S8,new Zvn),Ge(oI,new n6n),Ge(mbn,new e6n),Ge(si,new t6n),Ge(Ndn,new i6n),Ge(xdn,new c6n),Ge(cbn,new u6n),Ge(MA,new o6n),Ge(sv,new s6n),Ge(Gi,new f6n),Ge(iun,new h6n),Ge(t0,new l6n),Ge(run,new a6n),Ge(ebn,new d6n),Ge(vbn,new b6n),Ge(i0,new g6n),Ge(fn,new p6n),Ge($dn,new m6n),Ge(kbn,new v6n)}function $Gn(n,e){var t,i,r,c,s,f,h,l,a;if(n==null)return gu;if(h=e.a.zc(n,e),h!=null)return"[...]";for(t=new fd(ur,"[","]"),r=n,c=0,s=r.length;c<s;++c)i=r[c],i!=null&&wo(i).i&4?Array.isArray(i)&&(a=bk(i),!(a>=14&&a<=16))?e.a._b(i)?(t.a?Be(t.a,t.b):t.a=new mo(t.d),C6(t.a,"[...]")):(f=cd(i),l=new R6(e),pl(t,$Gn(f,l))):L(i,183)?pl(t,MEe(u(i,183))):L(i,195)?pl(t,fye(u(i,195))):L(i,201)?pl(t,vje(u(i,201))):L(i,2111)?pl(t,hye(u(i,2111))):L(i,53)?pl(t,EEe(u(i,53))):L(i,376)?pl(t,_Ee(u(i,376))):L(i,846)?pl(t,jEe(u(i,846))):L(i,109)&&pl(t,yEe(u(i,109))):pl(t,i==null?gu:Jr(i));return t.a?t.e.length==0?t.a.a:t.a.a+(""+t.e):t.c}function Nm(n,e){var t,i,r,c;c=n.F,e==null?(n.F=null,um(n,null)):(n.F=(Jn(e),e),i=ih(e,wu(60)),i!=-1?(r=(Ri(0,i,e.length),e.substr(0,i)),ih(e,wu(46))==-1&&!Sn(r,i3)&&!Sn(r,m8)&&!Sn(r,GP)&&!Sn(r,v8)&&!Sn(r,k8)&&!Sn(r,y8)&&!Sn(r,j8)&&!Sn(r,E8)&&(r=wJn),t=RM(e,wu(62)),t!=-1&&(r+=""+(zn(t+1,e.length+1),e.substr(t+1))),um(n,r)):(r=e,ih(e,wu(46))==-1&&(i=ih(e,wu(91)),i!=-1&&(r=(Ri(0,i,e.length),e.substr(0,i))),!Sn(r,i3)&&!Sn(r,m8)&&!Sn(r,GP)&&!Sn(r,v8)&&!Sn(r,k8)&&!Sn(r,y8)&&!Sn(r,j8)&&!Sn(r,E8)?(r=wJn,i!=-1&&(r+=""+(zn(i,e.length+1),e.substr(i)))):r=e),um(n,r),r==e&&(n.F=n.D))),n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,5,c,e))}function xGn(n,e){var t,i,r,c,s,f,h,l,a,d;if(h=e.length-1,f=(zn(h,e.length),e.charCodeAt(h)),f==93){if(s=ih(e,wu(91)),s>=0)return r=Q5e(n,(Ri(1,s,e.length),e.substr(1,s-1))),a=(Ri(s+1,h,e.length),e.substr(s+1,h-(s+1))),ENe(n,a,r)}else{if(t=-1,wun==null&&(wun=new RegExp("\\d")),wun.test(String.fromCharCode(f))&&(t=CV(e,wu(46),h-1),t>=0)){i=u(YD(n,M$n(n,(Ri(1,t,e.length),e.substr(1,t-1))),!1),61),l=0;try{l=So((zn(t+1,e.length+1),e.substr(t+1)),Wi,et)}catch(g){throw g=Ot(g),L(g,130)?(c=g,T(new eC(c))):T(g)}if(l<i.gc())return d=i.Xb(l),L(d,76)&&(d=u(d,76).md()),u(d,58)}if(t<0)return u(YD(n,M$n(n,(zn(1,e.length+1),e.substr(1))),!1),58)}return null}function WAe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k;for(e.Ug("Label dummy insertions",1),d=new Z,s=$(B(v(n,(cn(),C2)))),l=$(B(v(n,qw))),a=u(v(n,Lo),88),p=new M(n.a);p.a<p.c.c.length;)for(g=u(E(p),10),c=new ie(ce(Qt(g).a.Kc(),new En));pe(c);)if(r=u(fe(c),18),r.c.i!=r.d.i&&yN(r.b,qZn)){for(k=gme(r),m=Lh(r.b.c.length),t=CTe(n,r,k,m),Fn(d.c,t),i=t.o,f=new xi(r.b,0);f.b<f.d.gc();)h=(oe(f.b<f.d.gc()),u(f.d.Xb(f.c=f.b++),72)),x(v(h,Sh))===x(($f(),Rv))&&(a==(ci(),us)||a==Wf?(i.a+=h.o.a+l,i.b=y.Math.max(i.b,h.o.b)):(i.a=y.Math.max(i.a,h.o.a),i.b+=h.o.b+l),Fn(m.c,h),bo(f));a==(ci(),us)||a==Wf?(i.a-=l,i.b+=s+k):i.b+=s-l+k}hi(n.a,d),e.Vg()}function JAe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m;if(n.c=n.e,m=un(v(e,(cn(),Gte))),p=m==null||(Jn(m),m),c=u(v(e,(W(),Hc)),21).Hc((pr(),cs)),r=u(v(e,Ft),101),t=!(r==(Ai(),Ud)||r==tl||r==qc),p&&(t||!c)){for(d=new M(e.a);d.a<d.c.c.length;)l=u(E(d),10),l.p=0;for(g=new Z,a=new M(e.a);a.a<a.c.c.length;)if(l=u(E(a),10),i=vUn(n,l,null),i){for(h=new jQ,Ur(h,e),U(h,Dl,u(i.b,21)),VW(h.d,e.d),U(h,Ev,null),f=u(i.a,15).Kc();f.Ob();)s=u(f.Pb(),10),nn(h.a,s),s.a=h;g.Fc(h)}c&&(x(v(e,Rw))===x((dd(),P_))?n.c=n.b:x(v(e,Rw))===x(I_)?n.c=n.d:n.c=n.a)}else g=new Fu(S(C(DZn,1),OXn,36,0,[e]));return x(v(e,Rw))!==x((dd(),Aw))&&(Ln(),g.jd(new hwn)),g}function Dm(n,e,t){var i,r,c,s,f,h,l;if(l=n.c,!e&&(e=Gdn),n.c=e,n.Db&4&&!(n.Db&1)&&(h=new Mi(n,1,2,l,n.c),t?t.nj(h):t=h),l!=e){if(L(n.Cb,292))n.Db>>16==-10?t=u(n.Cb,292).Yk(e,t):n.Db>>16==-15&&(!e&&(e=(An(),Zf)),!l&&(l=(An(),Zf)),n.Cb.Yh()&&(h=new ml(n.Cb,1,13,l,e,f1(no(u(n.Cb,62)),n),!1),t?t.nj(h):t=h));else if(L(n.Cb,90))n.Db>>16==-23&&(L(e,90)||(e=(An(),Os)),L(l,90)||(l=(An(),Os)),n.Cb.Yh()&&(h=new ml(n.Cb,1,10,l,e,f1(Pc(u(n.Cb,29)),n),!1),t?t.nj(h):t=h));else if(L(n.Cb,457))for(f=u(n.Cb,850),s=(!f.b&&(f.b=new DE(new aL)),f.b),c=(i=new sd(new Ua(s.a).a),new $E(i));c.a.b;)r=u(Nb(c.a).ld(),89),t=Dm(r,TS(r,f),t)}return t}function QAe(n,e){var t,i,r,c,s,f,h,l,a,d,g;for(s=on(un(z(n,(cn(),Bw)))),g=u(z(n,_w),21),h=!1,l=!1,d=new ne((!n.c&&(n.c=new q(Qu,n,9,9)),n.c));d.e!=d.i.gc()&&(!h||!l);){for(c=u(ue(d),123),f=0,r=$h(Eo(S(C(Ao,1),Kn,20,0,[(!c.d&&(c.d=new Dn(Vt,c,8,5)),c.d),(!c.e&&(c.e=new Dn(Vt,c,7,4)),c.e)])));pe(r)&&(i=u(fe(r),74),a=s&&_b(i)&&on(un(z(i,Dd))),t=bGn((!i.b&&(i.b=new Dn(he,i,4,7)),i.b),c)?n==St(Gr(u(N((!i.c&&(i.c=new Dn(he,i,5,8)),i.c),0),84))):n==St(Gr(u(N((!i.b&&(i.b=new Dn(he,i,4,7)),i.b),0),84))),!((a||t)&&(++f,f>1))););(f>0||g.Hc((zu(),Rl))&&(!c.n&&(c.n=new q(Sr,c,1,7)),c.n).i>0)&&(h=!0),f>1&&(l=!0)}h&&e.Fc((pr(),cs)),l&&e.Fc((pr(),R8))}function RGn(n){var e,t,i,r,c,s,f,h,l,a,d,g;if(g=u(z(n,(He(),Hd)),21),g.dc())return null;if(f=0,s=0,g.Hc((go(),rE))){for(a=u(z(n,v9),101),i=2,t=2,r=2,c=2,e=St(n)?u(z(St(n),_d),88):u(z(n,_d),88),l=new ne((!n.c&&(n.c=new q(Qu,n,9,9)),n.c));l.e!=l.i.gc();)if(h=u(ue(l),123),d=u(z(h,H2),64),d==(en(),sc)&&(d=Ken(h,e),ht(h,H2,d)),a==(Ai(),qc))switch(d.g){case 1:i=y.Math.max(i,h.i+h.g);break;case 2:t=y.Math.max(t,h.j+h.f);break;case 3:r=y.Math.max(r,h.i+h.g);break;case 4:c=y.Math.max(c,h.j+h.f)}else switch(d.g){case 1:i+=h.g+2;break;case 2:t+=h.f+2;break;case 3:r+=h.g+2;break;case 4:c+=h.f+2}f=y.Math.max(i,r),s=y.Math.max(t,c)}return Gb(n,f,s,!0,!0)}function VR(n,e,t,i,r){var c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D;for(O=u(Wr(fC(ut(new Cn(null,new On(e.d,16)),new S7n(t)),new P7n(t)),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[(Gu(),Yr)]))),15),d=et,a=Wi,h=new M(e.b.j);h.a<h.c.c.length;)f=u(E(h),12),f.j==t&&(d=y.Math.min(d,f.p),a=y.Math.max(a,f.p));if(d==et)for(s=0;s<O.gc();s++)QJ(u(O.Xb(s),105),t,s);else for(A=F(ye,_e,28,r.length,15,1),X0e(A,A.length),P=O.Kc();P.Ob();){for(j=u(P.Pb(),105),c=u(ee(n.b,j),183),l=0,k=d;k<=a;k++)c[k]&&(l=y.Math.max(l,i[k]));if(j.i){for(p=j.i.c,D=new ni,g=0;g<r.length;g++)r[p][g]&&fi(D,Y(A[g]));for(;sf(D,Y(l));)++l}for(QJ(j,t,l),m=d;m<=a;m++)c[m]&&(i[m]=l+1);j.i&&(A[j.i.c]=l)}}function YAe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k;for(r=null,i=new M(e.a);i.a<i.c.c.length;)t=u(E(i),10),HR(t)?c=(f=hb(i7(new za,t),n.f),h=hb(i7(new za,t),n.f),l=new zW(t,!0,f,h),a=t.o.b,d=(cw(),(t.q?t.q:(Ln(),Ln(),Wh))._b((cn(),d0))?g=u(v(t,d0),203):g=u(v(Hi(t),z8),203),g),p=1e4,d==P2&&(p=1),m=qs(Ns(Ls(As(Ds(new hs,p),wi(y.Math.ceil(a))),f),h)),d==I2&&fi(n.d,m),mUn(n,Qo(uc(t,(en(),Wn))),l),mUn(n,uc(t,Zn),l),l):c=(k=hb(i7(new za,t),n.f),qt(ut(new Cn(null,new On(t.j,16)),new c3n),new UMn(n,k)),new zW(t,!1,k,k)),n.i[t.p]=c,r&&(s=r.c.d.a+jg(n.n,r.c,t)+t.d.d,r.b||(s+=r.c.o.b),qs(Ns(Ls(Ds(As(new hs,wi(y.Math.ceil(s))),0),r.d),c.a))),r=c}function ZAe(n,e,t,i){var r,c,s,f,h,l,a,d,g,p;for(c=new tHn(e),d=PSe(n,e,c),p=y.Math.max($(B(v(e,(cn(),m1)))),1),a=new M(d.a);a.a<a.c.c.length;)l=u(E(a),42),h=tBn(u(l.a,8),u(l.b,8),p),Wt=!0,Wt=Wt&db(t,new V(h.c,h.d)),Wt=Wt&db(t,ab(new V(h.c,h.d),h.b,0)),Wt=Wt&db(t,ab(new V(h.c,h.d),0,h.a)),Wt&db(t,ab(new V(h.c,h.d),h.b,h.a));switch(g=c.d,f=tBn(u(d.b.a,8),u(d.b.b,8),p),g==(en(),Wn)||g==Zn?(i.c[g.g]=y.Math.min(i.c[g.g],f.d),i.b[g.g]=y.Math.max(i.b[g.g],f.d+f.a)):(i.c[g.g]=y.Math.min(i.c[g.g],f.c),i.b[g.g]=y.Math.max(i.b[g.g],f.c+f.b)),r=li,s=c.c.i.d,g.g){case 4:r=s.c;break;case 2:r=s.b;break;case 1:r=s.a;break;case 3:r=s.d}return i.a[g.g]=y.Math.max(i.a[g.g],r),c}function nLe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn;f=u(ee(e.c,n),468),O=e.a.c,h=e.a.c+e.a.b,kn=f.f,Rn=f.a,s=kn<Rn,k=new V(O,kn),A=new V(h,Rn),r=(O+h)/2,j=new V(r,kn),D=new V(r,Rn),c=YTe(n,kn,Rn),X=Of(e.B),tn=new V(r,c),yn=Of(e.D),t=u6e(S(C(Ei,1),J,8,0,[X,tn,yn])),p=!1,P=e.B.i,P&&P.c&&f.d&&(l=s&&P.p<P.c.a.c.length-1||!s&&P.p>0,l?l&&(g=P.p,s?++g:--g,d=u(sn(P.c.a,g),10),i=oRn(d),p=!(mR(i,X,t[0])||AIn(i,X,t[0]))):p=!0),m=!1,_=e.D.i,_&&_.c&&f.e&&(a=s&&_.p>0||!s&&_.p<_.c.a.c.length-1,a?(g=_.p,s?--g:++g,d=u(sn(_.c.a,g),10),i=oRn(d),m=!(mR(i,t[0],yn)||AIn(i,t[0],yn))):m=!0),p&&m&&Re(n.a,tn),p||r5(n.a,S(C(Ei,1),J,8,0,[k,j])),m||r5(n.a,S(C(Ei,1),J,8,0,[D,A]))}function eLe(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k,j,P,O;for(p=e.c.length,g=0,d=new M(n.b);d.a<d.c.c.length;)if(a=u(E(d),30),P=a.a,P.c.length!=0){for(j=new M(P),l=0,O=null,r=u(E(j),10),c=null;r;){if(c=u(sn(e,r.p),261),c.c>=0){for(h=null,f=new xi(a.a,l+1);f.b<f.d.gc()&&(s=(oe(f.b<f.d.gc()),u(f.d.Xb(f.c=f.b++),10)),h=u(sn(e,s.p),261),!(h.d==c.d&&h.c<c.c));)h=null;h&&(O&&(Go(i,r.p,Y(u(sn(i,r.p),17).a-1)),u(sn(t,O.p),15).Mc(c)),c=vye(c,r,p++),Fn(e.c,c),nn(t,new Z),O?(u(sn(t,O.p),15).Fc(c),nn(i,Y(1))):nn(i,Y(0)))}m=null,j.a<j.c.c.length&&(m=u(E(j),10),k=u(sn(e,m.p),261),u(sn(t,r.p),15).Fc(k),Go(i,m.p,Y(u(sn(i,m.p),17).a+1))),c.d=g,c.c=l++,O=r,r=m}++g}}function tLe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p;if(c=u(v(n,(W(),st)),74),!!c){for(i=n.a,r=new rr(t),tt(r,Ske(n)),Q4(n.d.i,n.c.i)?(g=n.c,d=cc(S(C(Ei,1),J,8,0,[g.n,g.a])),mi(d,t)):d=Of(n.c),xt(i,d,i.a,i.a.a),p=Of(n.d),v(n,gH)!=null&&tt(p,u(v(n,gH),8)),xt(i,p,i.c.b,i.c),nw(i,r),s=Xg(c,!0,!0),mC(s,u(N((!c.b&&(c.b=new Dn(he,c,4,7)),c.b),0),84)),vC(s,u(N((!c.c&&(c.c=new Dn(he,c,5,8)),c.c),0),84)),dy(i,s),a=new M(n.b);a.a<a.c.c.length;)l=u(E(a),72),f=u(v(l,st),135),Ob(f,l.o.a),Ib(f,l.o.b),Bo(f,l.n.a+r.a,l.n.b+r.b),ht(f,(Hp(),$_),un(v(l,$_)));h=u(v(n,(cn(),Rr)),75),h?(nw(h,r),ht(c,Rr,h)):ht(c,Rr,null),e==(El(),R3)?ht(c,$l,R3):ht(c,$l,null)}}function KGn(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn;if(t.c.length!=0){for(m=new Z,p=new M(t);p.a<p.c.c.length;)g=u(E(p),27),nn(m,new V(g.i,g.j));for(i.dh(e,"Before removing overlaps");onn(n,t);)ES(n,t,!1);if(i.dh(e,"After removing overlaps"),f=0,h=0,r=null,t.c.length!=0&&(r=(Nn(0,t.c.length),u(t.c[0],27)),f=r.i-(Nn(0,m.c.length),u(m.c[0],8)).a,h=r.j-(Nn(0,m.c.length),u(m.c[0],8)).b),s=y.Math.sqrt(f*f+h*h),d=V6e(t),c=1,d.a.gc()!=0){for(a=d.a.ec().Kc();a.Ob();)l=u(a.Pb(),27),k=n.f,j=k.i+k.g/2,P=k.j+k.f/2,O=l.i+l.g/2,A=l.j+l.f/2,D=O-j,_=A-P,X=y.Math.sqrt(D*D+_*_),tn=D/X,yn=_/X,eu(l,l.i+tn*s),tu(l,l.j+yn*s);i.dh(e,"Child movement "+c),++c}n.a&&n.a.Gg(new _u(d)),KGn(n,e,new _u(d),i)}}function WR(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A;return h=n,a=mi(new V(e.a,e.b),n),l=t,d=mi(new V(i.a,i.b),t),g=h.a,j=h.b,m=l.a,O=l.b,p=a.a,P=a.b,k=d.a,A=d.b,r=k*P-p*A,Cf(),Fs(jh),y.Math.abs(0-r)<=jh||r==0||isNaN(0)&&isNaN(r)?!1:(s=1/r*((g-m)*P-(j-O)*p),f=1/r*-(-(g-m)*A+(j-O)*k),c=(Fs(jh),(y.Math.abs(0-s)<=jh||s==0||isNaN(0)&&isNaN(s)?0:0<s?-1:0>s?1:sb(isNaN(0),isNaN(s)))<0&&(Fs(jh),(y.Math.abs(s-1)<=jh||s==1||isNaN(s)&&isNaN(1)?0:s<1?-1:s>1?1:sb(isNaN(s),isNaN(1)))<0)&&(Fs(jh),(y.Math.abs(0-f)<=jh||f==0||isNaN(0)&&isNaN(f)?0:0<f?-1:0>f?1:sb(isNaN(0),isNaN(f)))<0)&&(Fs(jh),(y.Math.abs(f-1)<=jh||f==1||isNaN(f)&&isNaN(1)?0:f<1?-1:f>1?1:sb(isNaN(f),isNaN(1)))<0)),c)}function iLe(n){var e,t,i,r;if(t=n.D!=null?n.D:n.B,e=ih(t,wu(91)),e!=-1){i=(Ri(0,e,t.length),t.substr(0,e)),r=new Hl;do r.a+="[";while((e=w4(t,91,++e))!=-1);Sn(i,i3)?r.a+="Z":Sn(i,m8)?r.a+="B":Sn(i,GP)?r.a+="C":Sn(i,v8)?r.a+="D":Sn(i,k8)?r.a+="F":Sn(i,y8)?r.a+="I":Sn(i,j8)?r.a+="J":Sn(i,E8)?r.a+="S":(r.a+="L",r.a+=""+i,r.a+=";");try{return null}catch(c){if(c=Ot(c),!L(c,63))throw T(c)}}else if(ih(t,wu(46))==-1){if(Sn(t,i3))return so;if(Sn(t,m8))return Ru;if(Sn(t,GP))return fs;if(Sn(t,v8))return Ii;if(Sn(t,k8))return cg;if(Sn(t,y8))return ye;if(Sn(t,j8))return Ra;if(Sn(t,E8))return V2}return null}function rLe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn;for(n.e=e,f=rMe(e),X=new Z,i=new M(f);i.a<i.c.c.length;){for(t=u(E(i),15),tn=new Z,Fn(X.c,tn),h=new ni,m=t.Kc();m.Ob();){for(p=u(m.Pb(),27),c=fy(n,p,!0,0,0),Fn(tn.c,c),k=p.i,j=p.j,g=(!p.n&&(p.n=new q(Sr,p,1,7)),p.n),d=new ne(g);d.e!=d.i.gc();)l=u(ue(d),135),r=fy(n,l,!1,k,j),Fn(tn.c,r);for(_=(!p.c&&(p.c=new q(Qu,p,9,9)),p.c),O=new ne(_);O.e!=O.i.gc();)for(P=u(ue(O),123),s=fy(n,P,!1,k,j),Fn(tn.c,s),A=P.i+k,D=P.j+j,g=(!P.n&&(P.n=new q(Sr,P,1,7)),P.n),a=new ne(g);a.e!=a.i.gc();)l=u(ue(a),135),r=fy(n,l,!1,A,D),Fn(tn.c,r);Ki(h,PT(Eo(S(C(Ao,1),Kn,20,0,[Sl(p),cy(p)]))))}GTe(n,h,tn)}return n.f=new Vjn(X),Ur(n.f,e),n.f}function cLe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X;for(d=new $W(new PG(n));d.c!=d.d.a.d;)for(a=WDn(d),f=u(a.d,58),e=u(a.e,58),s=f.Dh(),k=0,D=(s.i==null&&bh(s),s.i).length;k<D;++k)if(l=(c=(s.i==null&&bh(s),s.i),k>=0&&k<c.length?c[k]:null),l.rk()&&!l.sk()){if(L(l,102))h=u(l,19),!(h.Bb&kc)&&(X=br(h),!(X&&X.Bb&kc))&&qIe(n,h,f,e);else if(dr(),u(l,69).xk()&&(t=(_=l,u(_?u(e,54).gi(_):null,160)),t))for(p=u(f.Mh(l),160),i=t.gc(),j=0,m=p.gc();j<m;++j)if(g=p.Tl(j),L(g,102)){if(A=p.Ul(j),r=Df(n,A),r==null&&A!=null){if(O=u(g,19),!n.b||O.Bb&kc||br(O))continue;r=A}if(!t.Ol(g,r)){for(P=0;P<i;++P)if(t.Tl(P)==g&&x(t.Ul(P))===x(r)){t.Ti(t.gc()-1,P),--i;break}}}else t.Ol(p.Tl(j),p.Ul(j))}}function uLe(n,e,t){var i;if(t.Ug("StretchWidth layering",1),e.a.c.length==0){t.Vg();return}for(n.c=e,n.t=0,n.u=0,n.i=Pt,n.g=li,n.d=$(B(v(e,(cn(),Ws)))),C9e(n),NMe(n),LMe(n),Ike(n),O8e(n),n.i=y.Math.max(1,n.i),n.g=y.Math.max(1,n.g),n.d=n.d/n.i,n.f=n.g/n.i,n.s=_9e(n),i=new Nc(n.c),nn(n.c.b,i),n.r=Cb(n.p),n.n=LT(n.k,n.k.length);n.r.c.length!=0;)n.o=W6e(n),!n.o||hRn(n)&&n.b.a.gc()!=0?(tye(n,i),i=new Nc(n.c),nn(n.c.b,i),Ki(n.a,n.b),n.b.a.$b(),n.t=n.u,n.u=0):hRn(n)?(n.c.b.c.length=0,i=new Nc(n.c),nn(n.c.b,i),n.t=0,n.u=0,n.b.a.$b(),n.a.a.$b(),++n.f,n.r=Cb(n.p),n.n=LT(n.k,n.k.length)):($i(n.o,i),du(n.r,n.o),fi(n.b,n.o),n.t=n.t-n.k[n.o.p]*n.d+n.j[n.o.p],n.u+=n.e[n.o.p]*n.d);e.a.c.length=0,Yk(e.b),t.Vg()}function oLe(n){var e,t,i,r,c,s,f,h,l,a,d;for(n.j=F(ye,_e,28,n.g,15,1),n.o=new Z,qt(rc(new Cn(null,new On(n.e.b,16)),new a3n),new tkn(n)),n.a=F(so,Xh,28,n.b,16,1),Nk(new Cn(null,new On(n.e.b,16)),new rkn(n)),i=(d=new Z,qt(ut(rc(new Cn(null,new On(n.e.b,16)),new b3n),new ikn(n)),new GMn(n,d)),d),h=new M(i);h.a<h.c.c.length;)if(f=u(E(h),515),!(f.c.length<=1)){if(f.c.length==2){GEe(f),HR((Nn(0,f.c.length),u(f.c[0],18)).d.i)||nn(n.o,f);continue}if(!(oye(f)||Jje(f,new d3n)))for(l=new M(f),r=null;l.a<l.c.c.length;)e=u(E(l),18),t=n.c[e.p],!r||l.a>=l.c.c.length?a=MJ((Vn(),zt),Ti):a=MJ((Vn(),Ti),Ti),a*=2,c=t.a.g,t.a.g=y.Math.max(c,c+(a-c)),s=t.b.g,t.b.g=y.Math.max(s,s+(a-s)),r=e}}function sLe(n){var e,t,i,r;for(qt(ut(new Cn(null,new On(n.a.b,16)),new X2n),new V2n),qke(n),qt(ut(new Cn(null,new On(n.a.b,16)),new W2n),new J2n),n.c==(El(),R3)&&(qt(ut(rc(new Cn(null,new On(new qa(n.f),1)),new Q2n),new Y2n),new k7n(n)),qt(ut(_r(rc(rc(new Cn(null,new On(n.d.b,16)),new Z2n),new npn),new epn),new tpn),new j7n(n))),r=new V(Pt,Pt),e=new V(li,li),i=new M(n.a.b);i.a<i.c.c.length;)t=u(E(i),60),r.a=y.Math.min(r.a,t.d.c),r.b=y.Math.min(r.b,t.d.d),e.a=y.Math.max(e.a,t.d.c+t.d.b),e.b=y.Math.max(e.b,t.d.d+t.d.a);tt(ff(n.d.c),HM(new V(r.a,r.b))),tt(ff(n.d.f),mi(new V(e.a,e.b),r)),tCe(n,r,e),Hu(n.f),Hu(n.b),Hu(n.g),Hu(n.e),n.a.a.c.length=0,n.a.b.c.length=0,n.a=null,n.d=null}function US(n,e){var t;if(n.e)throw T(new Ar((ll(c_),RK+c_.k+KK)));if(!dle(n.a,e))throw T(new ec(tXn+e+iXn));if(e==n.d)return n;switch(t=n.d,n.d=e,t.g){case 0:switch(e.g){case 2:Bb(n);break;case 1:Z1(n),Bb(n);break;case 4:Hg(n),Bb(n);break;case 3:Hg(n),Z1(n),Bb(n)}break;case 2:switch(e.g){case 1:Z1(n),MR(n);break;case 4:Hg(n),Bb(n);break;case 3:Hg(n),Z1(n),Bb(n)}break;case 1:switch(e.g){case 2:Z1(n),MR(n);break;case 4:Z1(n),Hg(n),Bb(n);break;case 3:Z1(n),Hg(n),Z1(n),Bb(n)}break;case 4:switch(e.g){case 2:Hg(n),Bb(n);break;case 1:Hg(n),Z1(n),Bb(n);break;case 3:Z1(n),MR(n)}break;case 3:switch(e.g){case 2:Z1(n),Hg(n),Bb(n);break;case 1:Z1(n),Hg(n),Z1(n),Bb(n);break;case 4:Z1(n),MR(n)}}return n}function Yg(n,e){var t;if(n.d)throw T(new Ar((ll(S_),RK+S_.k+KK)));if(!ale(n.a,e))throw T(new ec(tXn+e+iXn));if(e==n.c)return n;switch(t=n.c,n.c=e,t.g){case 0:switch(e.g){case 2:ld(n);break;case 1:na(n),ld(n);break;case 4:qg(n),ld(n);break;case 3:qg(n),na(n),ld(n)}break;case 2:switch(e.g){case 1:na(n),TR(n);break;case 4:qg(n),ld(n);break;case 3:qg(n),na(n),ld(n)}break;case 1:switch(e.g){case 2:na(n),TR(n);break;case 4:na(n),qg(n),ld(n);break;case 3:na(n),qg(n),na(n),ld(n)}break;case 4:switch(e.g){case 2:qg(n),ld(n);break;case 1:qg(n),na(n),ld(n);break;case 3:na(n),TR(n)}break;case 3:switch(e.g){case 2:na(n),qg(n),ld(n);break;case 1:na(n),qg(n),na(n),ld(n);break;case 4:na(n),TR(n)}}return n}function GS(n,e){var t,i,r,c,s,f,h,l;if(L(n.Eh(),167)?(GS(u(n.Eh(),167),e),e.a+=" > "):e.a+="Root ",t=n.Dh().zb,Sn(t.substr(0,3),"Elk")?Be(e,(zn(3,t.length+1),t.substr(3))):e.a+=""+t,r=n.jh(),r){Be((e.a+=" ",e),r);return}if(L(n,366)&&(l=u(n,135).a,l)){Be((e.a+=" ",e),l);return}for(s=new ne(n.kh());s.e!=s.i.gc();)if(c=u(ue(s),135),l=c.a,l){Be((e.a+=" ",e),l);return}if(L(n,326)&&(i=u(n,74),!i.b&&(i.b=new Dn(he,i,4,7)),i.b.i!=0&&(!i.c&&(i.c=new Dn(he,i,5,8)),i.c.i!=0))){for(e.a+=" (",f=new kp((!i.b&&(i.b=new Dn(he,i,4,7)),i.b));f.e!=f.i.gc();)f.e>0&&(e.a+=ur),GS(u(ue(f),167),e);for(e.a+=iB,h=new kp((!i.c&&(i.c=new Dn(he,i,5,8)),i.c));h.e!=h.i.gc();)h.e>0&&(e.a+=ur),GS(u(ue(h),167),e);e.a+=")"}}function fLe(n,e,t){var i,r,c,s,f,h,l,a;for(h=new ne((!n.a&&(n.a=new q(Ye,n,10,11)),n.a));h.e!=h.i.gc();)for(f=u(ue(h),27),r=new ie(ce(Sl(f).a.Kc(),new En));pe(r);){if(i=u(fe(r),74),!i.b&&(i.b=new Dn(he,i,4,7)),!(i.b.i<=1&&(!i.c&&(i.c=new Dn(he,i,5,8)),i.c.i<=1)))throw T(new hp("Graph must not contain hyperedges."));if(!D5(i)&&f!=Gr(u(N((!i.c&&(i.c=new Dn(he,i,5,8)),i.c),0),84)))for(l=new BSn,Ur(l,i),U(l,(Q1(),y3),i),Jse(l,u(Fr(wr(t.f,f)),153)),Zse(l,u(ee(t,Gr(u(N((!i.c&&(i.c=new Dn(he,i,5,8)),i.c),0),84))),153)),nn(e.c,l),s=new ne((!i.n&&(i.n=new q(Sr,i,1,7)),i.n));s.e!=s.i.gc();)c=u(ue(s),135),a=new _Ln(l,c.a),Ur(a,c),U(a,y3,c),a.e.a=y.Math.max(c.g,1),a.e.b=y.Math.max(c.f,1),qen(a),nn(e.d,a)}}function hLe(n,e,t){var i,r,c,s,f,h,l,a,d,g;switch(t.Ug("Node promotion heuristic",1),n.i=e,n.r=u(v(e,(cn(),ja)),243),n.r!=(ps(),p0)&&n.r!=Uw?RLe(n):fSe(n),a=u(v(n.i,chn),17).a,c=new Kgn,n.r.g){case 2:case 1:Lm(n,c);break;case 3:for(n.r=PO,Lm(n,c),h=0,f=new M(n.b);f.a<f.c.c.length;)s=u(E(f),17),h=y.Math.max(h,s.a);h>n.k&&(n.r=Pj,Lm(n,c));break;case 4:for(n.r=PO,Lm(n,c),l=0,r=new M(n.c);r.a<r.c.c.length;)i=B(E(r)),l=y.Math.max(l,(Jn(i),i));l>n.n&&(n.r=Ij,Lm(n,c));break;case 6:g=wi(y.Math.ceil(n.g.length*a/100)),Lm(n,new s7n(g));break;case 5:d=wi(y.Math.ceil(n.e*a/100)),Lm(n,new f7n(d));break;case 8:yzn(n,!0);break;case 9:yzn(n,!1);break;default:Lm(n,c)}n.r!=p0&&n.r!=Uw?NCe(n,e):ZSe(n,e),t.Vg()}function lLe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A;for(d=n.b,a=new xi(d,0),B0(a,new Nc(n)),O=!1,s=1;a.b<a.d.gc();){for(l=(oe(a.b<a.d.gc()),u(a.d.Xb(a.c=a.b++),30)),k=(Nn(s,d.c.length),u(d.c[s],30)),j=Cb(l.a),P=j.c.length,m=new M(j);m.a<m.c.c.length;)g=u(E(m),10),$i(g,k);if(O){for(p=Qo(j).Kc();p.Ob();)for(g=u(p.Pb(),10),c=new M(Cb(ji(g)));c.a<c.c.c.length;)r=u(E(c),18),Ub(r,!0),U(n,(W(),kj),(_n(),!0)),i=gGn(n,r,P),t=u(v(g,o0),313),A=u(sn(i,i.c.length-1),18),t.k=A.c.i,t.n=A,t.b=r.d.i,t.c=r;O=!1}else j.c.length!=0&&(e=(Nn(0,j.c.length),u(j.c[0],10)),e.k==(Vn(),Gf)&&(O=!0,s=-1));++s}for(f=new xi(n.b,0);f.b<f.d.gc();)h=(oe(f.b<f.d.gc()),u(f.d.Xb(f.c=f.b++),30)),h.a.c.length==0&&bo(f)}function aLe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A;for(d=new ttn(n),a2e(d,!(e==(ci(),us)||e==Wf)),a=d.a,g=new up,r=(wf(),S(C(Pw,1),G,237,0,[bc,Wc,wc])),s=0,h=r.length;s<h;++s)t=r[s],l=jN(a,bc,t),l&&(g.d=y.Math.max(g.d,l.jf()));for(i=S(C(Pw,1),G,237,0,[bc,Wc,wc]),c=0,f=i.length;c<f;++c)t=i[c],l=jN(a,wc,t),l&&(g.a=y.Math.max(g.a,l.jf()));for(k=S(C(Pw,1),G,237,0,[bc,Wc,wc]),P=0,A=k.length;P<A;++P)p=k[P],l=jN(a,p,bc),l&&(g.b=y.Math.max(g.b,l.kf()));for(m=S(C(Pw,1),G,237,0,[bc,Wc,wc]),j=0,O=m.length;j<O;++j)p=m[j],l=jN(a,p,wc),l&&(g.c=y.Math.max(g.c,l.kf()));return g.d>0&&(g.d+=a.n.d,g.d+=a.d),g.a>0&&(g.a+=a.n.a,g.a+=a.d),g.b>0&&(g.b+=a.n.b,g.b+=a.d),g.c>0&&(g.c+=a.n.c,g.c+=a.d),g}function BGn(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m;for(g=t.d,d=t.c,c=new V(t.f.a+t.d.b+t.d.c,t.f.b+t.d.d+t.d.a),s=c.b,l=new M(n.a);l.a<l.c.c.length;)if(f=u(E(l),10),f.k==(Vn(),Zt)){switch(i=u(v(f,(W(),gc)),64),r=u(v(f,tfn),8),a=f.n,i.g){case 2:a.a=t.f.a+g.c-d.a;break;case 4:a.a=-d.a-g.b}switch(m=0,i.g){case 2:case 4:e==(Ai(),tl)?(p=$(B(v(f,f0))),a.b=c.b*p-u(v(f,(cn(),b0)),8).b,m=a.b+r.b,OC(f,!1,!0)):e==qc&&(a.b=$(B(v(f,f0)))-u(v(f,(cn(),b0)),8).b,m=a.b+r.b,OC(f,!1,!0))}s=y.Math.max(s,m)}for(t.f.b+=s-c.b,h=new M(n.a);h.a<h.c.c.length;)if(f=u(E(h),10),f.k==(Vn(),Zt))switch(i=u(v(f,(W(),gc)),64),a=f.n,i.g){case 1:a.b=-d.b-g.d;break;case 3:a.b=t.f.b+g.a-d.b}}function dLe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P;if(a=u(u(ot(n.r,e),21),87),a.gc()<=2||e==(en(),Zn)||e==(en(),Wn)){czn(n,e);return}for(k=n.u.Hc((zu(),K3)),t=e==(en(),Xn)?(Db(),rj):(Db(),ij),P=e==Xn?(bu(),Xs):(bu(),kf),i=vz($V(t),n.s),j=e==Xn?Pt:li,l=a.Kc();l.Ob();)f=u(l.Pb(),117),!(!f.c||f.c.d.c.length<=0)&&(m=f.b.Mf(),p=f.e,d=f.c,g=d.i,g.b=(c=d.n,d.e.a+c.b+c.c),g.a=(s=d.n,d.e.b+s.d+s.a),k?(g.c=p.a-(r=d.n,d.e.a+r.b+r.c)-n.s,k=!1):g.c=p.a+m.a+n.s,G7(P,$tn),d.f=P,df(d,(Uu(),zs)),nn(i.d,new ZN(g,CY(i,g))),j=e==Xn?y.Math.min(j,p.b):y.Math.max(j,p.b+f.b.Mf().b));for(j+=e==Xn?-n.t:n.t,GY((i.e=j,i)),h=a.Kc();h.Ob();)f=u(h.Pb(),117),!(!f.c||f.c.d.c.length<=0)&&(g=f.c.i,g.c-=f.e.a,g.d-=f.e.b)}function FGn(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A;for(r=new Z,k=new M(e.a);k.a<k.c.c.length;)if(m=u(E(k),10),p=m.e,p&&(i=FGn(n,p,m),hi(r,i),SAe(n,p,m),u(v(p,(W(),Hc)),21).Hc((pr(),cs))))for(O=u(v(m,(cn(),Ft)),101),g=u(v(m,_w),181).Hc((zu(),Rl)),P=new M(m.j);P.a<P.c.c.length;)for(j=u(E(P),12),c=u(ee(n.b,j),10),c||(c=my(j,O,j.j,-(j.e.c.length-j.g.c.length),null,new Ni,j.o,u(v(p,Lo),88),p),U(c,st,j),Ve(n.b,j,c),nn(p.a,c)),s=u(sn(c.j,0),12),a=new M(j.f);a.a<a.c.c.length;)l=u(E(a),72),f=new Yjn,f.o.a=l.o.a,f.o.b=l.o.b,nn(s.f,f),g||(A=j.j,d=0,F6(u(v(m,_w),21))&&(d=Lnn(l.n,l.o,j.o,0,A)),O==(Ai(),Qf)||(en(),su).Hc(A)?f.o.a=d:f.o.b=d);return h=new Z,CAe(n,e,t,r,h),t&&GOe(n,e,t,h),h}function etn(n,e,t){var i,r,c,s,f,h,l,a,d;if(!n.c[e.c.p][e.p].e){for(n.c[e.c.p][e.p].e=!0,n.c[e.c.p][e.p].b=0,n.c[e.c.p][e.p].d=0,n.c[e.c.p][e.p].a=null,a=new M(e.j);a.a<a.c.c.length;)for(l=u(E(a),12),d=t?new e4(l):new ip(l),h=d.Kc();h.Ob();)f=u(h.Pb(),12),s=f.i,s.c==e.c?s!=e&&(etn(n,s,t),n.c[e.c.p][e.p].b+=n.c[s.c.p][s.p].b,n.c[e.c.p][e.p].d+=n.c[s.c.p][s.p].d):(n.c[e.c.p][e.p].d+=n.g[f.p],++n.c[e.c.p][e.p].b);if(c=u(v(e,(W(),Ysn)),15),c)for(r=c.Kc();r.Ob();)i=u(r.Pb(),10),e.c==i.c&&(etn(n,i,t),n.c[e.c.p][e.p].b+=n.c[i.c.p][i.p].b,n.c[e.c.p][e.p].d+=n.c[i.c.p][i.p].d);n.c[e.c.p][e.p].b>0&&(n.c[e.c.p][e.p].d+=to(n.i,24)*Oy*.07000000029802322-.03500000014901161,n.c[e.c.p][e.p].a=n.c[e.c.p][e.p].d/n.c[e.c.p][e.p].b)}}function bLe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j;for(m=new M(n);m.a<m.c.c.length;){for(p=u(E(m),10),zl(p.n),zl(p.o),qJ(p.f),Zqn(p),NSe(p),j=new M(p.j);j.a<j.c.c.length;){for(k=u(E(j),12),zl(k.n),zl(k.a),zl(k.o),gi(k,LBn(k.j)),c=u(v(k,(cn(),v1)),17),c&&U(k,v1,Y(-c.a)),r=new M(k.g);r.a<r.c.c.length;){for(i=u(E(r),18),t=ge(i.a,0);t.b!=t.d.c;)e=u(be(t),8),zl(e);if(h=u(v(i,Rr),75),h)for(f=ge(h,0);f.b!=f.d.c;)s=u(be(f),8),zl(s);for(d=new M(i.b);d.a<d.c.c.length;)l=u(E(d),72),zl(l.n),zl(l.o)}for(g=new M(k.f);g.a<g.c.c.length;)l=u(E(g),72),zl(l.n),zl(l.o)}for(p.k==(Vn(),Zt)&&(U(p,(W(),gc),LBn(u(v(p,gc),64))),HCe(p)),a=new M(p.b);a.a<a.c.c.length;)l=u(E(a),72),Zqn(l),zl(l.o),zl(l.n)}}function wLe(n,e,t,i,r){var c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn,Bn,te;Rn=ee(n.e,i),Rn==null&&(Rn=new sp,p=u(Rn,190),O=e+"_s",A=O+r,g=new q0(A),bf(p,Eh,g)),kn=u(Rn,190),Op(t,kn),te=new sp,nd(te,"x",i.j),nd(te,"y",i.k),bf(kn,mWn,te),tn=new sp,nd(tn,"x",i.b),nd(tn,"y",i.c),bf(kn,"endPoint",tn),d=Z9((!i.a&&(i.a=new ti(xo,i,5)),i.a)),m=!d,m&&(X=new _a,c=new eyn(X),qi((!i.a&&(i.a=new ti(xo,i,5)),i.a),c),bf(kn,BP,X)),h=Px(i),D=!!h,D&&inn(n.a,kn,Icn,oR(n,Px(i))),P=Ix(i),_=!!P,_&&inn(n.a,kn,Pcn,oR(n,Ix(i))),l=(!i.e&&(i.e=new Dn(Tt,i,10,9)),i.e).i==0,k=!l,k&&(yn=new _a,s=new STn(n,yn),qi((!i.e&&(i.e=new Dn(Tt,i,10,9)),i.e),s),bf(kn,Acn,yn)),a=(!i.g&&(i.g=new Dn(Tt,i,9,10)),i.g).i==0,j=!a,j&&(Bn=new _a,f=new PTn(n,Bn),qi((!i.g&&(i.g=new Dn(Tt,i,9,10)),i.g),f),bf(kn,Ocn,Bn))}function gLe(n){K0();var e,t,i,r,c,s,f;for(i=n.f.n,s=AW(n.r).a.nc();s.Ob();){if(c=u(s.Pb(),117),r=0,c.b.pf((He(),oo))&&(r=$(B(c.b.of(oo))),r<0))switch(c.b.ag().g){case 1:i.d=y.Math.max(i.d,-r);break;case 3:i.a=y.Math.max(i.a,-r);break;case 2:i.c=y.Math.max(i.c,-r);break;case 4:i.b=y.Math.max(i.b,-r)}if(F6(n.u))switch(e=yve(c.b,r),f=!u(n.e.of(Ca),181).Hc((io(),cE)),t=!1,c.b.ag().g){case 1:t=e>i.d,i.d=y.Math.max(i.d,e),f&&t&&(i.d=y.Math.max(i.d,i.a),i.a=i.d+r);break;case 3:t=e>i.a,i.a=y.Math.max(i.a,e),f&&t&&(i.a=y.Math.max(i.a,i.d),i.d=i.a+r);break;case 2:t=e>i.c,i.c=y.Math.max(i.c,e),f&&t&&(i.c=y.Math.max(i.b,i.c),i.b=i.c+r);break;case 4:t=e>i.b,i.b=y.Math.max(i.b,e),f&&t&&(i.b=y.Math.max(i.b,i.c),i.c=i.b+r)}}}function _Gn(n,e){var t,i,r,c,s,f,h,l,a;return l="",e.length==0?n.ne(vtn,uK,-1,-1):(a=fw(e),Sn(a.substr(0,3),"at ")&&(a=(zn(3,a.length+1),a.substr(3))),a=a.replace(/\[.*?\]/g,""),s=a.indexOf("("),s==-1?(s=a.indexOf("@"),s==-1?(l=a,a=""):(l=fw((zn(s+1,a.length+1),a.substr(s+1))),a=fw((Ri(0,s,a.length),a.substr(0,s))))):(t=a.indexOf(")",s),l=(Ri(s+1,t,a.length),a.substr(s+1,t-(s+1))),a=fw((Ri(0,s,a.length),a.substr(0,s)))),s=ih(a,wu(46)),s!=-1&&(a=(zn(s+1,a.length+1),a.substr(s+1))),(a.length==0||Sn(a,"Anonymous function"))&&(a=uK),f=RM(l,wu(58)),r=CV(l,wu(58),f-1),h=-1,i=-1,c=vtn,f!=-1&&r!=-1&&(c=(Ri(0,r,l.length),l.substr(0,r)),h=rSn((Ri(r+1,f,l.length),l.substr(r+1,f-(r+1)))),i=rSn((zn(f+1,l.length+1),l.substr(f+1)))),n.ne(c,a,h,i))}function pLe(n){var e,t,i,r,c,s,f,h,l,a,d;for(l=new M(n);l.a<l.c.c.length;){switch(h=u(E(l),10),s=u(v(h,(cn(),ou)),171),c=null,s.g){case 1:case 2:c=(hd(),m2);break;case 3:case 4:c=(hd(),mv)}if(c)U(h,(W(),rO),(hd(),m2)),c==mv?OS(h,s,(gr(),Vu)):c==m2&&OS(h,s,(gr(),Jc));else if(mg(u(v(h,Ft),101))&&h.j.c.length!=0){for(e=!0,d=new M(h.j);d.a<d.c.c.length;){if(a=u(E(d),12),!(a.j==(en(),Zn)&&a.e.c.length-a.g.c.length>0||a.j==Wn&&a.e.c.length-a.g.c.length<0)){e=!1;break}for(r=new M(a.g);r.a<r.c.c.length;)if(t=u(E(r),18),f=u(v(t.d.i,ou),171),f==(Yo(),H8)||f==xw){e=!1;break}for(i=new M(a.e);i.a<i.c.c.length;)if(t=u(E(i),18),f=u(v(t.c.i,ou),171),f==(Yo(),_8)||f==ya){e=!1;break}}e&&OS(h,s,(gr(),Q8))}}}function mLe(n,e,t,i,r){var c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X;for(X=0,p=0,d=new M(e.e);d.a<d.c.c.length;){for(a=u(E(d),10),g=0,f=0,h=t?u(v(a,AO),17).a:Wi,P=i?u(v(a,LO),17).a:Wi,l=y.Math.max(h,P),A=new M(a.j);A.a<A.c.c.length;){if(O=u(E(A),12),D=a.n.b+O.n.b+O.a.b,i)for(s=new M(O.g);s.a<s.c.c.length;)c=u(E(s),18),k=c.d,m=k.i,e!=n.a[m.p]&&(j=y.Math.max(u(v(m,AO),17).a,u(v(m,LO),17).a),_=u(v(c,(cn(),O3)),17).a,_>=l&&_>=j&&(g+=m.n.b+k.n.b+k.a.b-D,++f));if(t)for(s=new M(O.e);s.a<s.c.c.length;)c=u(E(s),18),k=c.c,m=k.i,e!=n.a[m.p]&&(j=y.Math.max(u(v(m,AO),17).a,u(v(m,LO),17).a),_=u(v(c,(cn(),O3)),17).a,_>=l&&_>=j&&(g+=m.n.b+k.n.b+k.a.b-D,++f))}f>0&&(X+=g/f,++p)}p>0?(e.a=r*X/p,e.g=p):(e.a=0,e.g=0)}function vLe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn;for(c=n.f.b,g=c.a,a=c.b,m=n.e.g,p=n.e.f,kg(n.e,c.a,c.b),X=g/m,tn=a/p,l=new ne(jT(n.e));l.e!=l.i.gc();)h=u(ue(l),135),eu(h,h.i*X),tu(h,h.j*tn);for(O=new ne(mD(n.e));O.e!=O.i.gc();)P=u(ue(O),123),D=P.i,_=P.j,D>0&&eu(P,D*X),_>0&&tu(P,_*tn);for(f5(n.b,new U0n),e=new Z,f=new sd(new Ua(n.c).a);f.b;)s=Nb(f),i=u(s.ld(),74),t=u(s.md(),407).a,r=Xg(i,!1,!1),d=DFn(Fh(i),Qk(r),t),dy(d,r),A=XFn(i),A&&qr(e,A,0)==-1&&(Fn(e.c,A),jOn(A,(oe(d.b!=0),u(d.a.a.c,8)),t));for(j=new sd(new Ua(n.d).a);j.b;)k=Nb(j),i=u(k.ld(),74),t=u(k.md(),407).a,r=Xg(i,!1,!1),d=DFn(ra(i),Pk(Qk(r)),t),d=Pk(d),dy(d,r),A=VFn(i),A&&qr(e,A,0)==-1&&(Fn(e.c,A),jOn(A,(oe(d.b!=0),u(d.c.b.c,8)),t))}function HGn(n,e,t,i){var r,c,s,f,h;return f=new ttn(e),hCe(f,i),r=!0,n&&n.pf((He(),_d))&&(c=u(n.of((He(),_d)),88),r=c==(ci(),Jf)||c==Kr||c==Xr),_qn(f,!1),nu(f.e.Rf(),new NV(f,!1,r)),AD(f,f.f,(wf(),bc),(en(),Xn)),AD(f,f.f,wc,ae),AD(f,f.g,bc,Wn),AD(f,f.g,wc,Zn),gBn(f,Xn),gBn(f,ae),vOn(f,Zn),vOn(f,Wn),K0(),s=f.A.Hc((go(),Qw))&&f.B.Hc((io(),uE))?DKn(f):null,s&&vhe(f.a,s),gLe(f),p7e(f),m7e(f),qAe(f),pPe(f),U7e(f),kx(f,Xn),kx(f,ae),VSe(f),pOe(f),t&&(Y5e(f),G7e(f),kx(f,Zn),kx(f,Wn),h=f.B.Hc((io(),I9)),N_n(f,h,Xn),N_n(f,h,ae),D_n(f,h,Zn),D_n(f,h,Wn),qt(new Cn(null,new On(new ol(f.i),0)),new d0n),qt(ut(new Cn(null,AW(f.r).a.oc()),new b0n),new w0n),cye(f),f.e.Pf(f.o),qt(new Cn(null,AW(f.r).a.oc()),new g0n)),f.o}function kLe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k;for(l=Pt,i=new M(n.a.b);i.a<i.c.c.length;)e=u(E(i),86),l=y.Math.min(l,e.d.f.g.c+e.e.a);for(p=new Mt,s=new M(n.a.a);s.a<s.c.c.length;)c=u(E(s),194),c.i=l,c.e==0&&xt(p,c,p.c.b,p.c);for(;p.b!=0;){for(c=u(p.b==0?null:(oe(p.b!=0),Xo(p,p.a.a)),194),r=c.f.g.c,g=c.a.a.ec().Kc();g.Ob();)a=u(g.Pb(),86),k=c.i+a.e.a,a.d.g||a.g.c<k?a.o=k:a.o=a.g.c;for(r-=c.f.o,c.b+=r,n.c==(ci(),Xr)||n.c==Wf?c.c+=r:c.c-=r,d=c.a.a.ec().Kc();d.Ob();)for(a=u(d.Pb(),86),h=a.f.Kc();h.Ob();)f=u(h.Pb(),86),hl(n.c)?m=n.f.yf(a,f):m=n.f.zf(a,f),f.d.i=y.Math.max(f.d.i,a.o+a.g.b+m-f.e.a),f.k||(f.d.i=y.Math.max(f.d.i,f.g.c-f.e.a)),--f.d.e,f.d.e==0&&Re(p,f.d)}for(t=new M(n.a.b);t.a<t.c.c.length;)e=u(E(t),86),e.g.c=e.o}function yLe(n){var e,t,i,r,c,s,f,h;switch(f=n.b,e=n.a,u(v(n,(aS(),Uun)),435).g){case 0:Yt(f,new Ce(new S0n));break;case 1:default:Yt(f,new Ce(new P0n))}switch(u(v(n,Hun),436).g){case 1:Yt(f,new BU),Yt(f,new I0n),Yt(f,new y0n);break;case 0:default:Yt(f,new BU),Yt(f,new T0n)}switch(u(v(n,zun),257).g){case 0:h=new A0n;break;case 1:h=new $A;break;case 2:h=new vE;break;case 3:h=new DA;break;case 5:h=new n4(new vE);break;case 4:h=new n4(new $A);break;case 7:h=new Uz(new n4(new $A),new n4(new vE));break;case 8:h=new Uz(new n4(new DA),new n4(new vE));break;case 6:default:h=new n4(new DA)}for(s=new M(f);s.a<s.c.c.length;){for(c=u(E(s),176),i=0,r=0,t=new bi(Y(i),Y(r));tIe(e,c,i,r);)t=u(h.Ve(t,c),42),i=u(t.a,17).a,r=u(t.b,17).a;YSe(e,c,i,r)}}function qGn(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X;for(t.Ug(pVn,1),g=(pt(),tq),n.a==(b5(),KO)&&(g=mln),a=0,Ln(),e.jd(new tL(g)),c=e.gc(),f=e.fd(e.gc()),l=!0;l&&f.Sb();)O=u(f.Ub(),40),u(v(O,g),17).a==0?--c:l=!1;if(X=e.kd(0,c),s=new $N(X),X=e.kd(c,e.gc()),h=new $N(X),s.b==0)for(k=ge(h,0);k.b!=k.d.c;)m=u(be(k),40),U(m,o9,Y(a++));else for(d=s.b,_=ge(s,0);_.b!=_.d.c;){for(D=u(be(_),40),U(D,o9,Y(a++)),i=R$(D),qGn(n,i,t.eh(1/d|0)),ud(i,HW(new tL(o9))),p=new Mt,A=ge(i,0);A.b!=A.d.c;)for(O=u(be(A),40),P=ge(D.d,0);P.b!=P.d.c;)j=u(be(P),65),j.c==O&&xt(p,j,p.c.b,p.c);for(vo(D.d),Ki(D.d,p),f=ge(h,h.b),r=D.d.b,l=!0;0<r&&l&&f.Sb();)O=u(f.Ub(),40),u(v(O,g),17).a==0?(U(O,o9,Y(a++)),--r,f.Qb()):l=!1}t.Vg()}function jLe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p;for(d=$(B(z(n,(oa(),yq)))),on(un(z(n,Zln)))&&(a=u(z(n,(Cg(),L2)),27),c=u(N(qW(u(N((!a.e&&(a.e=new Dn(Vt,a,7,4)),a.e),(!a.e&&(a.e=new Dn(Vt,a,7,4)),a.e).i-1),74)),0),27),i=u(N(qW(u(N((!a.e&&(a.e=new Dn(Vt,a,7,4)),a.e),0),74)),0),27),s=new V(c.i+c.g/2,c.j+c.f/2),r=new V(i.i+i.g/2,i.j+i.f/2),t=d,t<=0&&(t+=Md),g=y.Math.acos((s.a*r.a+s.b*r.b)/(y.Math.sqrt(s.a*s.a+s.b*s.b)*y.Math.sqrt(r.a*r.a+r.b*r.b))),g<=0&&(g+=Md),e=y.Math.atan2(s.b,s.a),e<=0&&(e+=Md),d=Trn-(e-t+g/2)),h=new ne((!n.a&&(n.a=new q(Ye,n,10,11)),n.a));h.e!=h.i.gc();)f=u(ue(h),27),l=new V(f.i+f.g/2,f.j+f.f/2),p=l.a*y.Math.cos(d)-l.b*y.Math.sin(d),l.b=l.a*y.Math.sin(d)+l.b*y.Math.cos(d),l.a=p,Bo(f,l.a-f.g/2,l.b-f.f/2)}function ELe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A;for(e.Ug("Inverted port preprocessing",1),a=n.b,l=new xi(a,0),t=null,A=new Z;l.b<l.d.gc();){for(O=t,t=(oe(l.b<l.d.gc()),u(l.d.Xb(l.c=l.b++),30)),p=new M(A);p.a<p.c.c.length;)d=u(E(p),10),$i(d,O);for(A.c.length=0,m=new M(t.a);m.a<m.c.c.length;)if(d=u(E(m),10),d.k==(Vn(),zt)&&mg(u(v(d,(cn(),Ft)),101))){for(P=men(d,(gr(),Vu),(en(),Zn)).Kc();P.Ob();)for(k=u(P.Pb(),12),h=k.e,f=u(Rf(h,F(O_,rB,18,h.c.length,0,1)),483),r=f,c=0,s=r.length;c<s;++c)i=r[c],zIe(n,k,i,A);for(j=men(d,Jc,Wn).Kc();j.Ob();)for(k=u(j.Pb(),12),h=k.g,f=u(Rf(h,F(O_,rB,18,h.c.length,0,1)),483),r=f,c=0,s=r.length;c<s;++c)i=r[c],GIe(n,k,i,A)}}for(g=new M(A);g.a<g.c.c.length;)d=u(E(g),10),$i(d,t);e.Vg()}function JR(n,e,t,i,r,c,s){var f,h,l,a,d,g,p,m,k,j,P,O,A;for(g=null,i==(Tb(),Ma)?g=e:i==O2&&(g=t),k=g.a.ec().Kc();k.Ob();){for(m=u(k.Pb(),12),j=cc(S(C(Ei,1),J,8,0,[m.i.n,m.n,m.a])).b,A=new ni,f=new ni,l=new Lf(m.b);tc(l.a)||tc(l.b);)if(h=u(tc(l.a)?E(l.a):E(l.b),18),on(un(v(h,(W(),zf))))==r&&qr(c,h,0)!=-1){if(h.d==m?P=h.c:P=h.d,O=cc(S(C(Ei,1),J,8,0,[P.i.n,P.n,P.a])).b,y.Math.abs(O-j)<.2)continue;O<j?e.a._b(P)?fi(A,new bi(Ma,h)):fi(A,new bi(O2,h)):e.a._b(P)?fi(f,new bi(Ma,h)):fi(f,new bi(O2,h))}if(A.a.gc()>1)for(p=new Xen(m,A,i),qi(A,new YMn(n,p)),Fn(s.c,p),d=A.a.ec().Kc();d.Ob();)a=u(d.Pb(),42),du(c,a.b);if(f.a.gc()>1)for(p=new Xen(m,f,i),qi(f,new ZMn(n,p)),Fn(s.c,p),d=f.a.ec().Kc();d.Ob();)a=u(d.Pb(),42),du(c,a.b)}}function MLe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P;if(k=n.n,j=n.o,g=n.d,d=$(B(rw(n,(cn(),PH)))),e){for(a=d*(e.gc()-1),p=0,h=e.Kc();h.Ob();)s=u(h.Pb(),10),a+=s.o.a,p=y.Math.max(p,s.o.b);for(P=k.a-(a-j.a)/2,c=k.b-g.d+p,i=j.a/(e.gc()+1),r=i,f=e.Kc();f.Ob();)s=u(f.Pb(),10),s.n.a=P,s.n.b=c-s.o.b,P+=s.o.a+d,l=QHn(s),l.n.a=s.o.a/2-l.a.a,l.n.b=s.o.b,m=u(v(s,(W(),tO)),12),m.e.c.length+m.g.c.length==1&&(m.n.a=r-m.a.a,m.n.b=0,ic(m,n)),r+=i}if(t){for(a=d*(t.gc()-1),p=0,h=t.Kc();h.Ob();)s=u(h.Pb(),10),a+=s.o.a,p=y.Math.max(p,s.o.b);for(P=k.a-(a-j.a)/2,c=k.b+j.b+g.a-p,i=j.a/(t.gc()+1),r=i,f=t.Kc();f.Ob();)s=u(f.Pb(),10),s.n.a=P,s.n.b=c,P+=s.o.a+d,l=QHn(s),l.n.a=s.o.a/2-l.a.a,l.n.b=0,m=u(v(s,(W(),tO)),12),m.e.c.length+m.g.c.length==1&&(m.n.a=r-m.a.a,m.n.b=j.b,ic(m,n)),r+=i}}function TLe(n,e){var t,i,r,c,s,f;if(u(v(e,(W(),Hc)),21).Hc((pr(),cs))){for(f=new M(e.a);f.a<f.c.c.length;)c=u(E(f),10),c.k==(Vn(),zt)&&(r=u(v(c,(cn(),pO)),140),n.c=y.Math.min(n.c,c.n.a-r.b),n.a=y.Math.max(n.a,c.n.a+c.o.a+r.c),n.d=y.Math.min(n.d,c.n.b-r.d),n.b=y.Math.max(n.b,c.n.b+c.o.b+r.a));for(s=new M(e.a);s.a<s.c.c.length;)if(c=u(E(s),10),c.k!=(Vn(),zt))switch(c.k.g){case 2:if(i=u(v(c,(cn(),ou)),171),i==(Yo(),ya)){c.n.a=n.c-10,tFn(c,new mgn).Jb(new Z9n(c));break}if(i==xw){c.n.a=n.a+10,tFn(c,new vgn).Jb(new n7n(c));break}if(t=u(v(c,Ad),311),t==(vl(),k2)){dGn(c).Jb(new e7n(c)),c.n.b=n.d-10;break}if(t==E3){dGn(c).Jb(new t7n(c)),c.n.b=n.b+10;break}break;default:throw T(new Gn("The node type "+c.k+" is not supported by the "+kDe))}}}function CLe(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k,j;for(h=new V(i.i+i.g/2,i.j+i.f/2),p=hGn(i),m=u(z(e,(cn(),Ft)),101),j=u(z(i,Tv),64),OTn(aBn(i),Fw)||(i.i==0&&i.j==0?k=0:k=Fye(i,j),ht(i,Fw,k)),l=new V(e.g,e.f),r=my(i,m,j,p,l,h,new V(i.g,i.f),u(v(t,Lo),88),t),U(r,(W(),st),i),c=u(sn(r.j,0),12),nfe(c,UPe(i)),U(r,_w,(zu(),jn(Oa))),d=u(z(e,_w),181).Hc(Rl),f=new ne((!i.n&&(i.n=new q(Sr,i,1,7)),i.n));f.e!=f.i.gc();)if(s=u(ue(f),135),!on(un(z(s,Rd)))&&s.a&&(g=ex(s),nn(c.f,g),!d))switch(a=0,F6(u(z(e,_w),21))&&(a=Lnn(new V(s.i,s.j),new V(s.g,s.f),new V(i.g,i.f),0,j)),j.g){case 2:case 4:g.o.a=a;break;case 1:case 3:g.o.b=a}U(r,Sv,B(z(St(e),Sv))),U(r,Pv,B(z(St(e),Pv))),U(r,qw,B(z(St(e),qw))),nn(t.a,r),Ve(n.a,i,r)}function SLe(n,e,t,i,r,c){var s,f,h,l,a,d;for(l=new Ic,Ur(l,e),gi(l,u(z(e,(cn(),Tv)),64)),U(l,(W(),st),e),ic(l,t),d=l.o,d.a=e.g,d.b=e.f,a=l.n,a.a=e.i,a.b=e.j,Ve(n.a,e,l),s=Ag(_r(rc(new Cn(null,(!e.e&&(e.e=new Dn(Vt,e,7,4)),new On(e.e,16))),new Ewn),new ywn),new U9n(e)),s||(s=Ag(_r(rc(new Cn(null,(!e.d&&(e.d=new Dn(Vt,e,8,5)),new On(e.d,16))),new Mwn),new jwn),new G9n(e))),s||(s=Ag(new Cn(null,(!e.e&&(e.e=new Dn(Vt,e,7,4)),new On(e.e,16))),new Twn)),U(l,yj,(_n(),!!s)),XOe(l,c,r,u(z(e,b0),8)),h=new ne((!e.n&&(e.n=new q(Sr,e,1,7)),e.n));h.e!=h.i.gc();)f=u(ue(h),135),!on(un(z(f,Rd)))&&f.a&&nn(l.f,ex(f));switch(r.g){case 2:case 1:(l.j==(en(),Xn)||l.j==ae)&&i.Fc((pr(),v2));break;case 4:case 3:(l.j==(en(),Zn)||l.j==Wn)&&i.Fc((pr(),v2))}return l}function PLe(n,e,t,i,r){var c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn;for(A=0,m=0,p=0,g=1,O=new ne((!n.a&&(n.a=new q(Ye,n,10,11)),n.a));O.e!=O.i.gc();)j=u(ue(O),27),g+=wl(new ie(ce(Sl(j).a.Kc(),new En))),yn=j.g,m=y.Math.max(m,yn),d=j.f,p=y.Math.max(p,d),A+=yn*d;for(k=(!n.a&&(n.a=new q(Ye,n,10,11)),n.a).i,s=A+2*i*i*g*k,c=y.Math.sqrt(s),h=y.Math.max(c*t,m),f=y.Math.max(c/t,p),P=new ne((!n.a&&(n.a=new q(Ye,n,10,11)),n.a));P.e!=P.i.gc();)j=u(ue(P),27),kn=r.b+(to(e,26)*J5+to(e,27)*Q5)*(h-j.g),Rn=r.b+(to(e,26)*J5+to(e,27)*Q5)*(f-j.f),eu(j,kn),tu(j,Rn);for(tn=h+(r.b+r.c),X=f+(r.d+r.a),_=new ne((!n.a&&(n.a=new q(Ye,n,10,11)),n.a));_.e!=_.i.gc();)for(D=u(ue(_),27),a=new ie(ce(Sl(D).a.Kc(),new En));pe(a);)l=u(fe(a),74),D5(l)||NNe(l,e,tn,X);tn+=r.b+r.c,X+=r.d+r.a,Gb(n,tn,X,!1,!0)}function ttn(n){var e;if(this.r=oge(new l0n,new a0n),this.b=new y5(u(Pe(lr),297)),this.p=new y5(u(Pe(lr),297)),this.i=new y5(u(Pe(vYn),297)),this.e=n,this.o=new rr(n.Mf()),this.D=n.Yf()||on(un(n.of((He(),Xj)))),this.A=u(n.of((He(),Hd)),21),this.B=u(n.of(Ca),21),this.q=u(n.of(v9),101),this.u=u(n.of(Ww),21),!Wye(this.u))throw T(new _l("Invalid port label placement: "+this.u));if(this.v=on(un(n.of(_an))),this.j=u(n.of(F2),21),!MTe(this.j))throw T(new _l("Invalid node label placement: "+this.j));this.n=u(P5(n,Pan),107),this.k=$(B(P5(n,iA))),this.d=$(B(P5(n,zan))),this.w=$(B(P5(n,Qan))),this.s=$(B(P5(n,Xan))),this.t=$(B(P5(n,Van))),this.C=u(P5(n,Wan),140),this.c=2*this.d,e=!this.B.Hc((io(),cE)),this.f=new E5(0,e,0),this.g=new E5(1,e,0),mL(this.f,(wf(),Wc),this.g)}function ILe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P;for(e.Ug("Comment pre-processing",1),t=0,h=new M(n.a);h.a<h.c.c.length;)if(f=u(E(h),10),on(un(v(f,(cn(),q8))))){for(++t,r=0,i=null,l=null,m=new M(f.j);m.a<m.c.c.length;)g=u(E(m),12),r+=g.e.c.length+g.g.c.length,g.e.c.length==1&&(i=u(sn(g.e,0),18),l=i.c),g.g.c.length==1&&(i=u(sn(g.g,0),18),l=i.d);if(r==1&&l.e.c.length+l.g.c.length==1&&!on(un(v(l.i,q8))))oNe(f,i,l,l.i),q6(h);else{for(P=new Z,p=new M(f.j);p.a<p.c.c.length;){for(g=u(E(p),12),d=new M(g.g);d.a<d.c.c.length;)a=u(E(d),18),a.d.g.c.length==0||Fn(P.c,a);for(s=new M(g.e);s.a<s.c.c.length;)c=u(E(s),18),c.c.e.c.length==0||Fn(P.c,c)}for(j=new M(P);j.a<j.c.c.length;)k=u(E(j),18),Ub(k,!0)}}e._g()&&e.bh("Found "+t+" comment boxes"),e.Vg()}function itn(n,e){xPn();var t,i,r,c,s,f,h;if(this.a=new NX(this),this.b=n,this.c=e,this.f=sD(Nr((Lu(),zi),e)),this.f.dc())if((f=$Z(zi,n))==e)for(this.e=!0,this.d=new Z,this.f=new avn,this.f.Fc(Pd),u(qS(hk(zi,jo(n)),""),29)==n&&this.f.Fc(B6(zi,jo(n))),r=PR(zi,n).Kc();r.Ob();)switch(i=u(r.Pb(),179),yb(Nr(zi,i))){case 4:{this.d.Fc(i);break}case 5:{this.f.Gc(sD(Nr(zi,i)));break}}else if(dr(),u(e,69).xk())for(this.e=!0,this.f=null,this.d=new Z,s=0,h=(n.i==null&&bh(n),n.i).length;s<h;++s)for(i=(t=(n.i==null&&bh(n),n.i),s>=0&&s<t.length?t[s]:null),c=$p(Nr(zi,i));c;c=$p(Nr(zi,c)))c==e&&this.d.Fc(i);else yb(Nr(zi,e))==1&&f?(this.f=null,this.d=(n3(),tse)):(this.f=null,this.e=!0,this.d=(Ln(),new nL(e)));else this.e=yb(Nr(zi,e))==5,this.f.Fb(CU)&&(this.f=CU)}function UGn(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m;for(t=0,i=o7e(n,e),g=n.s,p=n.t,l=u(u(ot(n.r,e),21),87).Kc();l.Ob();)if(h=u(l.Pb(),117),!(!h.c||h.c.d.c.length<=0)){switch(m=h.b.Mf(),f=h.b.pf((He(),oo))?$(B(h.b.of(oo))):0,a=h.c,d=a.i,d.b=(s=a.n,a.e.a+s.b+s.c),d.a=(c=a.n,a.e.b+c.d+c.a),e.g){case 1:d.c=h.a?(m.a-d.b)/2:m.a+g,d.d=m.b+f+i,df(a,(Uu(),pa)),uh(a,(bu(),kf));break;case 3:d.c=h.a?(m.a-d.b)/2:m.a+g,d.d=-f-i-d.a,df(a,(Uu(),pa)),uh(a,(bu(),Xs));break;case 2:d.c=-f-i-d.b,h.a?(r=n.v?d.a:u(sn(a.d,0),187).Mf().b,d.d=(m.b-r)/2):d.d=m.b+p,df(a,(Uu(),zs)),uh(a,(bu(),ma));break;case 4:d.c=m.a+f+i,h.a?(r=n.v?d.a:u(sn(a.d,0),187).Mf().b,d.d=(m.b-r)/2):d.d=m.b+p,df(a,(Uu(),Th)),uh(a,(bu(),ma))}(e==(en(),Xn)||e==ae)&&(t=y.Math.max(t,d.a))}t>0&&(u(Mr(n.b,e),127).a.b=t)}function OLe(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k;if(g=$(B(v(n,(cn(),Sv)))),p=$(B(v(n,Pv))),d=$(B(v(n,qw))),f=n.o,c=u(sn(n.j,0),12),s=c.n,k=Xje(c,d),!!k){if(e.Hc((zu(),Rl)))switch(u(v(n,(W(),gc)),64).g){case 1:k.c=(f.a-k.b)/2-s.a,k.d=p;break;case 3:k.c=(f.a-k.b)/2-s.a,k.d=-p-k.a;break;case 2:t&&c.e.c.length==0&&c.g.c.length==0?(a=i?k.a:u(sn(c.f,0),72).o.b,k.d=(f.b-a)/2-s.b):k.d=f.b+p-s.b,k.c=-g-k.b;break;case 4:t&&c.e.c.length==0&&c.g.c.length==0?(a=i?k.a:u(sn(c.f,0),72).o.b,k.d=(f.b-a)/2-s.b):k.d=f.b+p-s.b,k.c=g}else if(e.Hc(Oa))switch(u(v(n,(W(),gc)),64).g){case 1:case 3:k.c=s.a+g;break;case 2:case 4:t&&!c.c?(a=i?k.a:u(sn(c.f,0),72).o.b,k.d=(f.b-a)/2-s.b):k.d=s.b+p}for(r=k.d,l=new M(c.f);l.a<l.c.c.length;)h=u(E(l),72),m=h.n,m.a=k.c,m.b=r,r+=h.o.b+d}}function ALe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn,Bn;for(X=new Z,m=new M(n.b);m.a<m.c.c.length;)for(p=u(E(m),30),P=new M(p.a);P.a<P.c.c.length;)if(k=u(E(P),10),k.k==(Vn(),Zt)&&kt(k,(W(),cO))){for(O=null,D=null,A=null,kn=new M(k.j);kn.a<kn.c.c.length;)switch(yn=u(E(kn),12),yn.j.g){case 4:O=yn;break;case 2:D=yn;break;default:A=yn}for(_=u(sn(A.g,0),18),a=new GE(_.a),l=new rr(A.n),tt(l,k.n),d=ge(a,0),_7(d,l),tn=Pk(_.a),g=new rr(A.n),tt(g,k.n),xt(tn,g,tn.c.b,tn.c),Rn=u(v(k,cO),10),Bn=u(sn(Rn.j,0),12),h=u(Rf(O.e,F(O_,rB,18,0,0,1)),483),i=h,c=0,f=i.length;c<f;++c)e=i[c],Oi(e,Bn),J$(e.a,e.a.b,a);for(h=hh(D.g),t=h,r=0,s=t.length;r<s;++r)e=t[r],Zi(e,Bn),J$(e.a,0,tn);Zi(_,null),Oi(_,null),Fn(X.c,k)}for(j=new M(X);j.a<j.c.c.length;)k=u(E(j),10),$i(k,null)}function LLe(){Ge(bE,new _6n),Ge(SA,new Y6n),Ge(wE,new f5n),Ge(ubn,new k5n),Ge(fn,new M5n),Ge(C(Ru,1),new T5n),Ge(Gt,new C5n),Ge(p3,new S5n),Ge(fn,new O6n),Ge(fn,new A6n),Ge(fn,new L6n),Ge(si,new N6n),Ge(fn,new D6n),Ge(rs,new $6n),Ge(rs,new x6n),Ge(fn,new R6n),Ge(sv,new B6n),Ge(fn,new F6n),Ge(fn,new H6n),Ge(fn,new q6n),Ge(fn,new U6n),Ge(fn,new G6n),Ge(C(Ru,1),new z6n),Ge(fn,new X6n),Ge(fn,new V6n),Ge(rs,new W6n),Ge(rs,new J6n),Ge(fn,new Q6n),Ge(Gi,new Z6n),Ge(fn,new n5n),Ge(t0,new e5n),Ge(fn,new t5n),Ge(fn,new i5n),Ge(fn,new r5n),Ge(fn,new c5n),Ge(rs,new u5n),Ge(rs,new o5n),Ge(fn,new s5n),Ge(fn,new h5n),Ge(fn,new l5n),Ge(fn,new a5n),Ge(fn,new d5n),Ge(fn,new b5n),Ge(i0,new w5n),Ge(fn,new g5n),Ge(fn,new p5n),Ge(fn,new m5n),Ge(i0,new v5n),Ge(t0,new y5n),Ge(fn,new j5n),Ge(Gi,new E5n)}function GGn(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m;switch(a=new Tu,n.a.g){case 3:g=u(v(e.e,(W(),Ld)),15),p=u(v(e.j,Ld),15),m=u(v(e.f,Ld),15),t=u(v(e.e,M2),15),i=u(v(e.j,M2),15),r=u(v(e.f,M2),15),s=new Z,hi(s,g),p.Jc(new _pn),hi(s,Qo(p)),hi(s,m),c=new Z,hi(c,t),hi(c,Qo(i)),hi(c,r),U(e.f,Ld,s),U(e.f,M2,c),U(e.f,ffn,e.f),U(e.e,Ld,null),U(e.e,M2,null),U(e.j,Ld,null),U(e.j,M2,null);break;case 1:Ki(a,e.e.a),Re(a,e.i.n),Ki(a,Qo(e.j.a)),Re(a,e.a.n),Ki(a,e.f.a);break;default:Ki(a,e.e.a),Ki(a,Qo(e.j.a)),Ki(a,e.f.a)}vo(e.f.a),Ki(e.f.a,a),Zi(e.f,e.e.c),f=u(v(e.e,(cn(),Rr)),75),l=u(v(e.j,Rr),75),h=u(v(e.f,Rr),75),(f||l||h)&&(d=new Tu,IW(d,h),IW(d,l),IW(d,f),U(e.f,Rr,d)),Zi(e.j,null),Oi(e.j,null),Zi(e.e,null),Oi(e.e,null),$i(e.a,null),$i(e.i,null),e.g&&GGn(n,e.g)}function zGn(){zGn=R;var n,e,t;for(new Dk(1,0),new Dk(10,0),new Dk(0,0),mQn=F(JF,J,247,11,0,1),Od=F(fs,gh,28,100,15,1),Eun=S(C(Ii,1),Cr,28,15,[1,5,25,125,625,3125,15625,78125,390625,1953125,9765625,48828125,244140625,1220703125,6103515625,30517578125,152587890625,762939453125,3814697265625,19073486328125,95367431640625,476837158203125,0x878678326eac9]),Mun=F(ye,_e,28,Eun.length,15,1),Tun=S(C(Ii,1),Cr,28,15,[1,10,100,d1,1e4,IK,1e6,1e7,1e8,QS,1e10,1e11,1e12,1e13,1e14,1e15,1e16]),Cun=F(ye,_e,28,Tun.length,15,1),Sun=F(JF,J,247,11,0,1),n=0;n<Sun.length;n++)mQn[n]=new Dk(n,0),Sun[n]=new Dk(0,n),Od[n]=48;for(;n<Od.length;n++)Od[n]=48;for(t=0;t<Mun.length;t++)Mun[t]=Inn(Eun[t]);for(e=0;e<Cun.length;e++)Cun[e]=Inn(Tun[e]);Sm()}function NLe(){function n(){this.obj=this.createObject()}return n.prototype.createObject=function(e){return Object.create(null)},n.prototype.get=function(e){return this.obj[e]},n.prototype.set=function(e,t){this.obj[e]=t},n.prototype[LK]=function(e){delete this.obj[e]},n.prototype.keys=function(){return Object.getOwnPropertyNames(this.obj)},n.prototype.entries=function(){var e=this.keys(),t=this,i=0;return{next:function(){if(i>=e.length)return{done:!0};var r=e[i++];return{value:[r,t.get(r)],done:!1}}}},SSe()||(n.prototype.createObject=function(){return{}},n.prototype.get=function(e){return this.obj[":"+e]},n.prototype.set=function(e,t){this.obj[":"+e]=t},n.prototype[LK]=function(e){delete this.obj[":"+e]},n.prototype.keys=function(){var e=[];for(var t in this.obj)t.charCodeAt(0)==58&&e.push(t.substring(1));return e}),n}function pt(){pt=R,u9=new lt(Wtn),new Lt("DEPTH",Y(0)),tq=new Lt("FAN",Y(0)),mln=new Lt(bVn,Y(0)),Ta=new Lt("ROOT",(_n(),!1)),cq=new Lt("LEFTNEIGHBOR",null),dre=new Lt("RIGHTNEIGHBOR",null),$O=new Lt("LEFTSIBLING",null),uq=new Lt("RIGHTSIBLING",null),eq=new Lt("DUMMY",!1),new Lt("LEVEL",Y(0)),yln=new Lt("REMOVABLE_EDGES",new Mt),$j=new Lt("XCOOR",Y(0)),xj=new Lt("YCOOR",Y(0)),xO=new Lt("LEVELHEIGHT",0),jf=new Lt("LEVELMIN",0),Js=new Lt("LEVELMAX",0),iq=new Lt("GRAPH_XMIN",0),rq=new Lt("GRAPH_YMIN",0),vln=new Lt("GRAPH_XMAX",0),kln=new Lt("GRAPH_YMAX",0),pln=new Lt("COMPACT_LEVEL_ASCENSION",!1),nq=new Lt("COMPACT_CONSTRAINTS",new Z),c9=new Lt("ID",""),o9=new Lt("POSITION",Y(0)),j1=new Lt("PRELIM",0),Nv=new Lt("MODIFIER",0),Lv=new lt(CXn),Dj=new lt(SXn)}function DLe(n){Ren();var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j;if(n==null)return null;if(d=n.length*8,d==0)return"";for(f=d%24,p=d/24|0,g=f!=0?p+1:p,c=null,c=F(fs,gh,28,g*4,15,1),l=0,a=0,e=0,t=0,i=0,s=0,r=0,h=0;h<p;h++)e=n[r++],t=n[r++],i=n[r++],a=(t&15)<<24>>24,l=(e&3)<<24>>24,m=e&-128?(e>>2^192)<<24>>24:e>>2<<24>>24,k=t&-128?(t>>4^240)<<24>>24:t>>4<<24>>24,j=i&-128?(i>>6^252)<<24>>24:i>>6<<24>>24,c[s++]=A1[m],c[s++]=A1[k|l<<4],c[s++]=A1[a<<2|j],c[s++]=A1[i&63];return f==8?(e=n[r],l=(e&3)<<24>>24,m=e&-128?(e>>2^192)<<24>>24:e>>2<<24>>24,c[s++]=A1[m],c[s++]=A1[l<<4],c[s++]=61,c[s++]=61):f==16&&(e=n[r],t=n[r+1],a=(t&15)<<24>>24,l=(e&3)<<24>>24,m=e&-128?(e>>2^192)<<24>>24:e>>2<<24>>24,k=t&-128?(t>>4^240)<<24>>24:t>>4<<24>>24,c[s++]=A1[m],c[s++]=A1[k|l<<4],c[s++]=A1[a<<2],c[s++]=61),ws(c,0,c.length)}function $Le(n,e){var t,i,r,c,s,f,h;if(n.e==0&&n.p>0&&(n.p=-(n.p-1)),n.p>Wi&&EJ(e,n.p-ha),s=e.q.getDate(),W7(e,1),n.k>=0&&E2e(e,n.k),n.c>=0?W7(e,n.c):n.k>=0?(h=new ZQ(e.q.getFullYear()-ha,e.q.getMonth(),35),i=35-h.q.getDate(),W7(e,y.Math.min(i,s))):W7(e,s),n.f<0&&(n.f=e.q.getHours()),n.b>0&&n.f<12&&(n.f+=12),b1e(e,n.f==24&&n.g?0:n.f),n.j>=0&&c4e(e,n.j),n.n>=0&&p4e(e,n.n),n.i>=0&&QTn(e,nr(er(Xk(vc(e.q.getTime()),d1),d1),n.i)),n.a&&(r=new JE,EJ(r,r.q.getFullYear()-ha-80),DL(vc(e.q.getTime()),vc(r.q.getTime()))&&EJ(e,r.q.getFullYear()-ha+100)),n.d>=0){if(n.c==-1)t=(7+n.d-e.q.getDay())%7,t>3&&(t-=7),f=e.q.getMonth(),W7(e,e.q.getDate()+t),e.q.getMonth()!=f&&W7(e,e.q.getDate()+(t>0?-7:7));else if(e.q.getDay()!=n.d)return!1}return n.o>Wi&&(c=e.q.getTimezoneOffset(),QTn(e,nr(vc(e.q.getTime()),(n.o-c)*60*d1))),!0}function XGn(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D;if(r=v(e,(W(),st)),!!L(r,207)){for(m=u(r,27),k=e.e,g=new rr(e.c),c=e.d,g.a+=c.b,g.b+=c.d,D=u(z(m,(cn(),kO)),181),Su(D,(io(),sA))&&(p=u(z(m,hhn),107),Use(p,c.a),Yse(p,c.d),Gse(p,c.b),Qse(p,c.c)),t=new Z,a=new M(e.a);a.a<a.c.c.length;)for(h=u(E(a),10),L(v(h,st),207)?_Le(h,g):L(v(h,st),193)&&!k&&(i=u(v(h,st),123),O=DUn(e,h,i.g,i.f),Bo(i,O.a,O.b)),P=new M(h.j);P.a<P.c.c.length;)j=u(E(P),12),qt(ut(new Cn(null,new On(j.g,16)),new z9n(h)),new X9n(t));if(k)for(P=new M(k.j);P.a<P.c.c.length;)j=u(E(P),12),qt(ut(new Cn(null,new On(j.g,16)),new V9n(k)),new W9n(t));for(A=u(z(m,$l),223),f=new M(t);f.a<f.c.c.length;)s=u(E(f),18),tLe(s,A,g);for(HPe(e),l=new M(e.a);l.a<l.c.c.length;)h=u(E(l),10),d=h.e,d&&XGn(n,d)}}function VGn(n,e){var t,i,r,c,s,f,h,l,a,d,g,p;if(!u(u(ot(n.r,e),21),87).dc()){if(s=u(Mr(n.b,e),127),h=s.i,f=s.n,a=kR(n,e),i=h.b-f.b-f.c,r=s.a.a,c=h.c+f.b,p=n.w,(a==(Kg(),Pa)||a==eE)&&u(u(ot(n.r,e),21),87).gc()==1&&(r=a==Pa?r-2*n.w:r,a=M9),i<r&&!n.B.Hc((io(),fA)))a==Pa?(p+=(i-r)/(u(u(ot(n.r,e),21),87).gc()+1),c+=p):p+=(i-r)/(u(u(ot(n.r,e),21),87).gc()-1);else switch(i<r&&(r=a==Pa?r-2*n.w:r,a=M9),a.g){case 3:c+=(i-r)/2;break;case 4:c+=i-r;break;case 0:t=(i-r)/(u(u(ot(n.r,e),21),87).gc()+1),p+=y.Math.max(0,t),c+=p;break;case 1:t=(i-r)/(u(u(ot(n.r,e),21),87).gc()-1),p+=y.Math.max(0,t)}for(g=u(u(ot(n.r,e),21),87).Kc();g.Ob();)d=u(g.Pb(),117),d.e.a=c+d.d.b,d.e.b=(l=d.b,l.pf((He(),oo))?l.ag()==(en(),Xn)?-l.Mf().b-$(B(l.of(oo))):$(B(l.of(oo))):l.ag()==(en(),Xn)?-l.Mf().b:0),c+=d.d.b+d.b.Mf().a+d.d.c+p}}function WGn(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m;if(!u(u(ot(n.r,e),21),87).dc()){if(s=u(Mr(n.b,e),127),h=s.i,f=s.n,d=kR(n,e),i=h.a-f.d-f.a,r=s.a.b,c=h.d+f.d,m=n.w,l=n.o.a,(d==(Kg(),Pa)||d==eE)&&u(u(ot(n.r,e),21),87).gc()==1&&(r=d==Pa?r-2*n.w:r,d=M9),i<r&&!n.B.Hc((io(),fA)))d==Pa?(m+=(i-r)/(u(u(ot(n.r,e),21),87).gc()+1),c+=m):m+=(i-r)/(u(u(ot(n.r,e),21),87).gc()-1);else switch(i<r&&(r=d==Pa?r-2*n.w:r,d=M9),d.g){case 3:c+=(i-r)/2;break;case 4:c+=i-r;break;case 0:t=(i-r)/(u(u(ot(n.r,e),21),87).gc()+1),m+=y.Math.max(0,t),c+=m;break;case 1:t=(i-r)/(u(u(ot(n.r,e),21),87).gc()-1),m+=y.Math.max(0,t)}for(p=u(u(ot(n.r,e),21),87).Kc();p.Ob();)g=u(p.Pb(),117),g.e.a=(a=g.b,a.pf((He(),oo))?a.ag()==(en(),Wn)?-a.Mf().a-$(B(a.of(oo))):l+$(B(a.of(oo))):a.ag()==(en(),Wn)?-a.Mf().a:l),g.e.b=c+g.d.d,c+=g.d.d+g.b.Mf().b+g.d.a+m}}function xLe(n,e){var t,i,r,c,s;for(e.Ug("Processor determine the coords for each level",1),i=new Z,s=ge(n.b,0);s.b!=s.d.c;){for(r=u(be(s),40);u(v(r,(lc(),Ph)),17).a>i.c.length-1;)nn(i,new bi(i2,Crn));t=u(v(r,Ph),17).a,hl(u(v(n,v0),88))?(r.e.a<$(B((Nn(t,i.c.length),u(i.c[t],42)).a))&&QA((Nn(t,i.c.length),u(i.c[t],42)),r.e.a),r.e.a+r.f.a>$(B((Nn(t,i.c.length),u(i.c[t],42)).b))&&YA((Nn(t,i.c.length),u(i.c[t],42)),r.e.a+r.f.a)):(r.e.b<$(B((Nn(t,i.c.length),u(i.c[t],42)).a))&&QA((Nn(t,i.c.length),u(i.c[t],42)),r.e.b),r.e.b+r.f.b>$(B((Nn(t,i.c.length),u(i.c[t],42)).b))&&YA((Nn(t,i.c.length),u(i.c[t],42)),r.e.b+r.f.b))}for(c=ge(n.b,0);c.b!=c.d.c;)r=u(be(c),40),t=u(v(r,(lc(),Ph)),17).a,U(r,(pt(),jf),B((Nn(t,i.c.length),u(i.c[t],42)).a)),U(r,Js,B((Nn(t,i.c.length),u(i.c[t],42)).b));e.Vg()}function RLe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k;for(n.o=$(B(v(n.i,(cn(),g0)))),n.f=$(B(v(n.i,Kd))),n.j=n.i.b.c.length,f=n.j-1,g=0,n.k=0,n.n=0,n.b=Af(F(Gi,J,17,n.j,0,1)),n.c=Af(F(si,J,345,n.j,7,1)),s=new M(n.i.b);s.a<s.c.c.length;){for(r=u(E(s),30),r.p=f,d=new M(r.a);d.a<d.c.c.length;)a=u(E(d),10),a.p=g,++g;--f}for(n.g=F(ye,_e,28,g,15,1),n.d=Wa(ye,[J,_e],[53,28],15,[g,3],2),n.p=new Z,n.q=new Z,e=0,n.e=0,c=new M(n.i.b);c.a<c.c.c.length;){for(r=u(E(c),30),f=r.p,i=0,k=0,h=r.a.c.length,l=0,d=new M(r.a);d.a<d.c.c.length;)a=u(E(d),10),g=a.p,n.g[g]=a.c.p,l+=a.o.b+n.o,t=wl(new ie(ce(ji(a).a.Kc(),new En))),m=wl(new ie(ce(Qt(a).a.Kc(),new En))),n.d[g][0]=m-t,n.d[g][1]=t,n.d[g][2]=m,i+=t,k+=m,t>0&&nn(n.q,a),nn(n.p,a);e-=i,p=h+e,l+=e*n.f,Go(n.b,f,Y(p)),Go(n.c,f,l),n.k=y.Math.max(n.k,p),n.n=y.Math.max(n.n,l),n.e+=e,e+=k}}function en(){en=R;var n;sc=new v7(n8,0),Xn=new v7(eP,1),Zn=new v7(HK,2),ae=new v7(qK,3),Wn=new v7(UK,4),Yf=(Ln(),new r4((n=u(of(lr),9),new _o(n,u(xs(n,n.length),9),0)))),ef=i1(yt(Xn,S(C(lr,1),Tc,64,0,[]))),os=i1(yt(Zn,S(C(lr,1),Tc,64,0,[]))),Do=i1(yt(ae,S(C(lr,1),Tc,64,0,[]))),Cs=i1(yt(Wn,S(C(lr,1),Tc,64,0,[]))),mu=i1(yt(Xn,S(C(lr,1),Tc,64,0,[ae]))),su=i1(yt(Zn,S(C(lr,1),Tc,64,0,[Wn]))),tf=i1(yt(Xn,S(C(lr,1),Tc,64,0,[Wn]))),Wu=i1(yt(Xn,S(C(lr,1),Tc,64,0,[Zn]))),$o=i1(yt(ae,S(C(lr,1),Tc,64,0,[Wn]))),ss=i1(yt(Zn,S(C(lr,1),Tc,64,0,[ae]))),Ju=i1(yt(Xn,S(C(lr,1),Tc,64,0,[Zn,Wn]))),pu=i1(yt(Zn,S(C(lr,1),Tc,64,0,[ae,Wn]))),vu=i1(yt(Xn,S(C(lr,1),Tc,64,0,[ae,Wn]))),xu=i1(yt(Xn,S(C(lr,1),Tc,64,0,[Zn,ae]))),Uc=i1(yt(Xn,S(C(lr,1),Tc,64,0,[Zn,ae,Wn])))}function KLe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn;for(e.Ug(XXn,1),k=new Z,X=new Z,l=new M(n.b);l.a<l.c.c.length;)for(h=u(E(l),30),P=-1,m=Y7(h.a),d=m,g=0,p=d.length;g<p;++g)if(a=d[g],++P,!!(a.k==(Vn(),zt)&&mg(u(v(a,(cn(),Ft)),101)))){for(Ep(u(v(a,(cn(),Ft)),101))||kCe(a),U(a,(W(),s0),a),k.c.length=0,X.c.length=0,t=new Z,D=new Mt,S$(D,h1(a,(en(),Xn))),fzn(n,D,k,X,t),f=P,tn=a,c=new M(k);c.a<c.c.c.length;)i=u(E(c),10),uw(i,f,h),++P,U(i,s0,a),s=u(sn(i.j,0),12),j=u(v(s,st),12),on(un(v(j,pH)))||u(v(i,C3),15).Fc(tn);for(vo(D),A=h1(a,ae).Kc();A.Ob();)O=u(A.Pb(),12),xt(D,O,D.a,D.a.a);for(fzn(n,D,X,null,t),_=a,r=new M(X);r.a<r.c.c.length;)i=u(E(r),10),uw(i,++P,h),U(i,s0,a),s=u(sn(i.j,0),12),j=u(v(s,st),12),on(un(v(j,pH)))||u(v(_,C3),15).Fc(i);t.c.length==0||U(a,Ysn,t)}e.Vg()}function JGn(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A;if(e.b!=0){for(p=new Mt,f=null,m=null,i=wi(y.Math.floor(y.Math.log(e.b)*y.Math.LOG10E)+1),h=0,A=ge(e,0);A.b!=A.d.c;)for(P=u(be(A),40),x(m)!==x(v(P,(pt(),c9)))&&(m=Ae(v(P,c9)),h=0),m!=null?f=m+UAn(h++,i):f=UAn(h++,i),U(P,c9,f),j=(r=ge(new sl(P).a.d,0),new sg(r));Q9(j.a);)k=u(be(j.a),65).c,xt(p,k,p.c.b,p.c),U(k,c9,f);for(g=new de,s=0;s<f.length-i;s++)for(O=ge(e,0);O.b!=O.d.c;)P=u(be(O),40),l=qo(Ae(v(P,(pt(),c9))),0,s+1),t=(l==null?Fr(wr(g.f,null)):a6(g.i,l))!=null?u(l==null?Fr(wr(g.f,null)):a6(g.i,l),17).a+1:1,Lr(g,l,Y(t));for(d=new sd(new Ua(g).a);d.b;)a=Nb(d),c=Y(ee(n.a,a.ld())!=null?u(ee(n.a,a.ld()),17).a:0),Lr(n.a,Ae(a.ld()),Y(u(a.md(),17).a+c.a)),c=u(ee(n.b,a.ld()),17),(!c||c.a<u(a.md(),17).a)&&Lr(n.b,Ae(a.ld()),u(a.md(),17));JGn(n,p)}}function BLe(n){var e,t,i,r,c,s,f,h,l,a,d,g;for(t=null,h=null,r=u(v(n.b,(cn(),EH)),349),r==(a5(),Oj)&&(t=new Z,h=new Z),f=new M(n.d);f.a<f.c.c.length;)if(s=u(E(f),105),c=s.i,!!c)switch(s.e.g){case 0:e=u(n5(new dp(s.b)),64),r==Oj&&e==(en(),Xn)?Fn(t.c,s):r==Oj&&e==(en(),ae)?Fn(h.c,s):a7e(s,e);break;case 1:l=s.a.d.j,a=s.c.d.j,l==(en(),Xn)?Vl(s,Xn,(xf(),lv),s.a):a==Xn?Vl(s,Xn,(xf(),av),s.c):l==ae?Vl(s,ae,(xf(),av),s.a):a==ae&&Vl(s,ae,(xf(),lv),s.c);break;case 2:case 3:i=s.b,Su(i,(en(),Xn))?Su(i,ae)?Su(i,Wn)?Su(i,Zn)||Vl(s,Xn,(xf(),av),s.c):Vl(s,Xn,(xf(),lv),s.a):Vl(s,Xn,(xf(),j3),null):Vl(s,ae,(xf(),j3),null);break;case 4:d=s.a.d.j,g=s.a.d.j,d==(en(),Xn)||g==Xn?Vl(s,ae,(xf(),j3),null):Vl(s,Xn,(xf(),j3),null)}t&&(t.c.length==0||qUn(t,(en(),Xn)),h.c.length==0||qUn(h,(en(),ae)))}function FLe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P;for(t.Ug("Breadth first model order layering",1),n.a=e,j=new Z,k=new M(n.a.a);k.a<k.c.c.length;)p=u(E(k),10),p.k==(Vn(),zt)&&Fn(j.c,p);for(Ln(),Yt(j,new Gpn),h=!0,r=new Nc(n.a),i=null,nn(n.a.b,r),m=new M(j);m.a<m.c.c.length;)if(p=u(E(m),10),h)$i(p,r),h=!1;else{for(f=new ie(ce(ji(p).a.Kc(),new En));pe(f);)c=u(fe(f),18),(c.c.i.k==(Vn(),zt)&&c.c.i.c==r||c.c.i.k==Sc&&u(fe(new ie(ce(ji(c.c.i).a.Kc(),new En))),18).c.i.c==r)&&(i=new Nc(n.a),nn(n.a.b,i),r=new Nc(n.a),nn(n.a.b,r));for(s=new ie(ce(ji(p).a.Kc(),new En));pe(s);)c=u(fe(s),18),c.c.i.k==(Vn(),Sc)&&!c.c.i.c&&$i(c.c.i,i);$i(p,r)}for(n.a.a.c.length=0,P=new Z,d=new M(n.a.b);d.a<d.c.c.length;)l=u(E(d),30),l.a.c.length==0&&Fn(P.c,l);for(IY(n.a.b,P),g=0,a=new M(n.a.b);a.a<a.c.c.length;)l=u(E(a),30),l.p=g,++g;t.Vg()}function _Le(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k;for(i=u(v(n,(W(),st)),27),m=u(v(n,(cn(),aO)),17).a,c=u(v(n,gO),17).a,ht(i,aO,Y(m)),ht(i,gO,Y(c)),eu(i,n.n.a+e.a),tu(i,n.n.b+e.b),(u(z(i,xd),181).gc()!=0||n.e||x(v(Hi(n),vO))===x((T5(),J8))&&oCn((cw(),(n.q?n.q:(Ln(),Ln(),Wh))._b(d0)?g=u(v(n,d0),203):g=u(v(Hi(n),z8),203),g)))&&(Ob(i,n.o.a),Ib(i,n.o.b)),d=new M(n.j);d.a<d.c.c.length;)l=u(E(d),12),k=v(l,st),L(k,193)&&(r=u(k,123),Bo(r,l.n.a,l.n.b),ht(r,Tv,l.j));for(p=u(v(n,a0),181).gc()!=0,h=new M(n.b);h.a<h.c.c.length;)s=u(E(h),72),(p||u(v(s,a0),181).gc()!=0)&&(t=u(v(s,st),135),kg(t,s.o.a,s.o.b),Bo(t,s.n.a,s.n.b));if(!F6(u(v(n,_w),21)))for(a=new M(n.j);a.a<a.c.c.length;)for(l=u(E(a),12),f=new M(l.f);f.a<f.c.c.length;)s=u(E(f),72),t=u(v(s,st),135),Ob(t,s.o.a),Ib(t,s.o.b),Bo(t,s.n.a,s.n.b)}function HLe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn;for(e.Ug("Calculate Graph Size",1),e.dh(n,$rn),d=i2,g=i2,l=xrn,a=xrn,k=new ne((!n.a&&(n.a=new q(Ye,n,10,11)),n.a));k.e!=k.i.gc();)p=u(ue(k),27),O=p.i,A=p.j,kn=p.g,f=p.f,h=u(z(p,(He(),xv)),140),d=y.Math.min(d,O-h.b),g=y.Math.min(g,A-h.d),l=y.Math.max(l,O+kn+h.c),a=y.Math.max(a,A+f+h.a);for(P=u(z(n,(He(),M1)),107),j=new V(d-P.b,g-P.d),yn=l-d+(P.b+P.c),s=a-g+(P.d+P.a),on(un(z(n,(oa(),Wln))))&&(D=u(z(n,(Cg(),L2)),27),_=u(z(D,xv),140),X=D.i+D.g/2+(_.b+_.c)/2-j.a,tn=D.j+D.f/2+(_.d+_.a)/2-j.b,r=yn-X,c=s-tn,r<yn/2?(t=r-X,yn+=t,j.a-=t):(t=X-r,yn+=t),c<s/2?(i=c-tn,s+=i,j.b-=i):(i=tn-c,s+=i)),m=new ne((!n.a&&(n.a=new q(Ye,n,10,11)),n.a));m.e!=m.i.gc();)p=u(ue(m),27),eu(p,p.i-j.a),tu(p,p.j-j.b);on(un(z(n,Vw)))||(Ob(n,yn),Ib(n,s)),ht(n,K2,yn-(P.b+P.c)),ht(n,R2,s-(P.d+P.a)),e.dh(n,LP)}function qLe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p;if(n.e.a.$b(),n.f.a.$b(),n.c.c.length=0,n.i.c.length=0,n.g.a.$b(),e)for(s=new M(e.a);s.a<s.c.c.length;)for(c=u(E(s),10),d=h1(c,(en(),Zn)).Kc();d.Ob();)for(a=u(d.Pb(),12),fi(n.e,a),r=new M(a.g);r.a<r.c.c.length;)i=u(E(r),18),!fr(i)&&(nn(n.c,i),lBn(n,i),f=i.c.i.k,(f==(Vn(),zt)||f==_c||f==Zt||f==Gf)&&nn(n.j,i),p=i.d,g=p.i.c,g==t?fi(n.f,p):g==e?fi(n.e,p):du(n.c,i));if(t)for(s=new M(t.a);s.a<s.c.c.length;){for(c=u(E(s),10),l=new M(c.j);l.a<l.c.c.length;)for(h=u(E(l),12),r=new M(h.g);r.a<r.c.c.length;)i=u(E(r),18),fr(i)&&fi(n.g,i);for(d=h1(c,(en(),Wn)).Kc();d.Ob();)for(a=u(d.Pb(),12),fi(n.f,a),r=new M(a.g);r.a<r.c.c.length;)i=u(E(r),18),!fr(i)&&(nn(n.c,i),lBn(n,i),f=i.c.i.k,(f==(Vn(),zt)||f==_c||f==Zt||f==Gf)&&nn(n.j,i),p=i.d,g=p.i.c,g==t?fi(n.f,p):g==e?fi(n.e,p):du(n.c,i))}}function ULe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D;for(t.Ug("Polyline edge routing",1),j=$(B(v(e,(cn(),Xfn)))),p=$(B(v(e,S2))),r=$(B(v(e,T2))),i=y.Math.min(1,r/p),A=0,h=0,e.b.c.length!=0&&(D=XHn(u(sn(e.b,0),30)),A=.4*i*D),f=new xi(e.b,0);f.b<f.d.gc();){for(s=(oe(f.b<f.d.gc()),u(f.d.Xb(f.c=f.b++),30)),c=PM(s,Lj),c&&A>0&&(A-=p),Ven(s,A),a=0,g=new M(s.a);g.a<g.c.c.length;){for(d=u(E(g),10),l=0,k=new ie(ce(Qt(d).a.Kc(),new En));pe(k);)m=u(fe(k),18),P=Of(m.c).b,O=Of(m.d).b,s==m.d.i.c&&!fr(m)&&(iMe(m,A,.4*i*y.Math.abs(P-O)),m.c.j==(en(),Wn)&&(P=0,O=0)),l=y.Math.max(l,y.Math.abs(O-P));switch(d.k.g){case 0:case 4:case 1:case 3:case 5:oAe(n,d,A,j)}a=y.Math.max(a,l)}f.b<f.d.gc()&&(D=XHn((oe(f.b<f.d.gc()),u(f.d.Xb(f.c=f.b++),30))),a=y.Math.max(a,D),oe(f.b>0),f.a.Xb(f.c=--f.b)),h=.4*i*a,!c&&f.b<f.d.gc()&&(h+=p),A+=s.c.a+h}n.a.a.$b(),e.f.a=A,t.Vg()}function GLe(n){var e,t,i,r,c;switch(G7(n,TWn),(!n.b&&(n.b=new Dn(he,n,4,7)),n.b).i+(!n.c&&(n.c=new Dn(he,n,5,8)),n.c).i){case 0:throw T(new Gn("The edge must have at least one source or target."));case 1:return(!n.b&&(n.b=new Dn(he,n,4,7)),n.b).i==0?St(Gr(u(N((!n.c&&(n.c=new Dn(he,n,5,8)),n.c),0),84))):St(Gr(u(N((!n.b&&(n.b=new Dn(he,n,4,7)),n.b),0),84)))}if((!n.b&&(n.b=new Dn(he,n,4,7)),n.b).i==1&&(!n.c&&(n.c=new Dn(he,n,5,8)),n.c).i==1){if(r=Gr(u(N((!n.b&&(n.b=new Dn(he,n,4,7)),n.b),0),84)),c=Gr(u(N((!n.c&&(n.c=new Dn(he,n,5,8)),n.c),0),84)),St(r)==St(c))return St(r);if(r==St(c))return r;if(c==St(r))return c}for(i=$h(Eo(S(C(Ao,1),Kn,20,0,[(!n.b&&(n.b=new Dn(he,n,4,7)),n.b),(!n.c&&(n.c=new Dn(he,n,5,8)),n.c)]))),e=Gr(u(fe(i),84));pe(i);)if(t=Gr(u(fe(i),84)),t!=e&&!Y0(t,e)){if(St(t)==St(e))e=St(t);else if(e=mTe(e,t),!e)return null}return e}function rtn(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A;if(g=e.length,g>0&&(h=(zn(0,e.length),e.charCodeAt(0)),h!=64)){if(h==37&&(d=e.lastIndexOf("%"),l=!1,d!=0&&(d==g-1||(l=(zn(d+1,e.length),e.charCodeAt(d+1)==46))))){if(s=(Ri(1,d,e.length),e.substr(1,d-1)),A=Sn("%",s)?null:ctn(s),i=0,l)try{i=So((zn(d+2,e.length+1),e.substr(d+2)),Wi,et)}catch(D){throw D=Ot(D),L(D,130)?(f=D,T(new eC(f))):T(D)}for(j=LQ(n.Gh());j.Ob();)if(m=IC(j),L(m,519)&&(r=u(m,598),O=r.d,(A==null?O==null:Sn(A,O))&&i--==0))return r;return null}if(a=e.lastIndexOf("."),p=a==-1?e:(Ri(0,a,e.length),e.substr(0,a)),t=0,a!=-1)try{t=So((zn(a+1,e.length+1),e.substr(a+1)),Wi,et)}catch(D){if(D=Ot(D),L(D,130))p=e;else throw T(D)}for(p=Sn("%",p)?null:ctn(p),k=LQ(n.Gh());k.Ob();)if(m=IC(k),L(m,197)&&(c=u(m,197),P=c.xe(),(p==null?P==null:Sn(p,P))&&t--==0))return c;return null}return xGn(n,e)}function zLe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O;for(a=new de,h=new Mb,i=new M(n.a.a.b);i.a<i.c.c.length;)if(e=u(E(i),60),l=Ig(e),l)Vc(a.f,l,e);else if(O=xp(e),O)for(c=new M(O.k);c.a<c.c.c.length;)r=u(E(c),18),In(h,r,e);for(t=new M(n.a.a.b);t.a<t.c.c.length;)if(e=u(E(t),60),l=Ig(e),l){for(f=new ie(ce(Qt(l).a.Kc(),new En));pe(f);)if(s=u(fe(f),18),!fr(s)&&(m=s.c,P=s.d,!((en(),mu).Hc(s.c.j)&&mu.Hc(s.d.j)))){if(k=u(ee(a,s.d.i),60),qs(Ns(Ls(Ds(As(new hs,0),100),n.c[e.a.d]),n.c[k.a.d])),m.j==Wn&&IIn((Au(),m))){for(g=u(ot(h,s),21).Kc();g.Ob();)if(d=u(g.Pb(),60),d.d.c<e.d.c){if(p=n.c[d.a.d],j=n.c[e.a.d],p==j)continue;qs(Ns(Ls(Ds(As(new hs,1),100),p),j))}}if(P.j==Zn&&OIn((Au(),P))){for(g=u(ot(h,s),21).Kc();g.Ob();)if(d=u(g.Pb(),60),d.d.c>e.d.c){if(p=n.c[e.a.d],j=n.c[d.a.d],p==j)continue;qs(Ns(Ls(Ds(As(new hs,1),100),p),j))}}}}}function XLe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X;if(g=u(u(ot(n.r,e),21),87),e==(en(),Zn)||e==Wn){UGn(n,e);return}for(c=e==Xn?(Db(),ij):(Db(),rj),D=e==Xn?(bu(),kf):(bu(),Xs),t=u(Mr(n.b,e),127),i=t.i,r=i.c+Lg(S(C(Ii,1),Cr,28,15,[t.n.b,n.C.b,n.k])),P=i.c+i.b-Lg(S(C(Ii,1),Cr,28,15,[t.n.c,n.C.c,n.k])),s=vz($V(c),n.t),O=e==Xn?li:Pt,d=g.Kc();d.Ob();)l=u(d.Pb(),117),!(!l.c||l.c.d.c.length<=0)&&(j=l.b.Mf(),k=l.e,p=l.c,m=p.i,m.b=(h=p.n,p.e.a+h.b+h.c),m.a=(f=p.n,p.e.b+f.d+f.a),G7(D,$tn),p.f=D,df(p,(Uu(),zs)),m.c=k.a-(m.b-j.a)/2,_=y.Math.min(r,k.a),X=y.Math.max(P,k.a+j.a),m.c<_?m.c=_:m.c+m.b>X&&(m.c=X-m.b),nn(s.d,new ZN(m,CY(s,m))),O=e==Xn?y.Math.max(O,k.b+l.b.Mf().b):y.Math.min(O,k.b));for(O+=e==Xn?n.t:-n.t,A=GY((s.e=O,s)),A>0&&(u(Mr(n.b,e),127).a.b=A),a=g.Kc();a.Ob();)l=u(a.Pb(),117),!(!l.c||l.c.d.c.length<=0)&&(m=l.c.i,m.c-=l.e.a,m.d-=l.e.b)}function VLe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p;for(e=new de,h=new ne(n);h.e!=h.i.gc();){for(f=u(ue(h),27),t=new ni,Ve(p_,f,t),p=new B0n,r=u(Wr(new Cn(null,new pb(new ie(ce(cy(f).a.Kc(),new En)))),dIn(p,qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[(Gu(),Yr)])))),85),X$n(t,u(r.xc((_n(),!0)),16),new F0n),i=u(Wr(ut(u(r.xc(!1),15).Lc(),new _0n),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[Yr]))),15),s=i.Kc();s.Ob();)c=u(s.Pb(),74),g=XFn(c),g&&(l=u(Fr(wr(e.f,g)),21),l||(l=gqn(g),Vc(e.f,g,l)),Ki(t,l));for(r=u(Wr(new Cn(null,new pb(new ie(ce(Sl(f).a.Kc(),new En)))),dIn(p,qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[Yr])))),85),X$n(t,u(r.xc(!0),16),new H0n),i=u(Wr(ut(u(r.xc(!1),15).Lc(),new q0n),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[Yr]))),15),d=i.Kc();d.Ob();)a=u(d.Pb(),74),g=VFn(a),g&&(l=u(Fr(wr(e.f,g)),21),l||(l=gqn(g),Vc(e.f,g,l)),Ki(t,l))}}function WLe(n,e){KR();var t,i,r,c,s,f,h,l,a,d,g,p,m,k;if(h=Ec(n,0)<0,h&&(n=n1(n)),Ec(n,0)==0)switch(e){case 0:return"0";case 1:return Fm;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 p=new x1,e<0?p.a+="0E+":p.a+="0E",p.a+=e==Wi?"2147483648":""+-e,p.a}a=18,d=F(fs,gh,28,a+1,15,1),t=a,k=n;do l=k,k=Xk(k,10),d[--t]=Se(nr(48,bs(l,er(k,10))))&ui;while(Ec(k,0)!=0);if(r=bs(bs(bs(a,t),e),1),e==0)return h&&(d[--t]=45),ws(d,t,a-t);if(e>0&&Ec(r,-6)>=0){if(Ec(r,0)>=0){for(c=t+Se(r),f=a-1;f>=c;f--)d[f+1]=d[f];return d[++c]=46,h&&(d[--t]=45),ws(d,t,a-t+1)}for(s=2;DL(s,nr(n1(r),1));s++)d[--t]=48;return d[--t]=46,d[--t]=48,h&&(d[--t]=45),ws(d,t,a-t)}return m=t+1,i=a,g=new fg,h&&(g.a+="-"),i-m>=1?(z1(g,d[t]),g.a+=".",g.a+=ws(d,t+1,a-t-1)):g.a+=ws(d,t,a-t),g.a+="E",Ec(r,0)>0&&(g.a+="+"),g.a+=""+_6(r),g.a}function Gb(n,e,t,i,r){var c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X;if(j=new V(n.g,n.f),k=ynn(n),k.a=y.Math.max(k.a,e),k.b=y.Math.max(k.b,t),X=k.a/j.a,a=k.b/j.b,D=k.a-j.a,h=k.b-j.b,i)for(s=St(n)?u(z(St(n),(He(),_d)),88):u(z(n,(He(),_d)),88),f=x(z(n,(He(),v9)))===x((Ai(),qc)),O=new ne((!n.c&&(n.c=new q(Qu,n,9,9)),n.c));O.e!=O.i.gc();)switch(P=u(ue(O),123),A=u(z(P,H2),64),A==(en(),sc)&&(A=Ken(P,s),ht(P,H2,A)),A.g){case 1:f||eu(P,P.i*X);break;case 2:eu(P,P.i+D),f||tu(P,P.j*a);break;case 3:f||eu(P,P.i*X),tu(P,P.j+h);break;case 4:f||tu(P,P.j*a)}if(kg(n,k.a,k.b),r)for(g=new ne((!n.n&&(n.n=new q(Sr,n,1,7)),n.n));g.e!=g.i.gc();)d=u(ue(g),135),p=d.i+d.g/2,m=d.j+d.f/2,_=p/j.a,l=m/j.b,_+l>=1&&(_-l>0&&m>=0?(eu(d,d.i+D),tu(d,d.j+h*l)):_-l<0&&p>=0&&(eu(d,d.i+D*_),tu(d,d.j+h)));return ht(n,(He(),Hd),(go(),c=u(of(P9),9),new _o(c,u(xs(c,c.length),9),0))),new V(X,a)}function QGn(n){rb(n,new gd(UE(eb(Yd(nb(Zd(new Fa,es),"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 V4n),es))),Q(n,es,CP,rn(fce)),Q(n,es,yw,rn(hce)),Q(n,es,r2,rn(cce)),Q(n,es,d3,rn(uce)),Q(n,es,a3,rn(oce)),Q(n,es,Xm,rn(rce)),Q(n,es,r8,rn(Jln)),Q(n,es,Vm,rn(sce)),Q(n,es,XB,rn(vq)),Q(n,es,zB,rn(kq)),Q(n,es,NP,rn(Yln)),Q(n,es,VB,rn(yq)),Q(n,es,WB,rn(Zln)),Q(n,es,Grn,rn(n1n)),Q(n,es,Urn,rn(Qln)),Q(n,es,Frn,rn(_O)),Q(n,es,_rn,rn(HO)),Q(n,es,Hrn,rn(Rj)),Q(n,es,qrn,rn(e1n)),Q(n,es,Brn,rn(Wln))}function zS(n){var e,t,i,r,c,s,f,h,l,a,d;if(n==null)throw T(new th(gu));if(l=n,c=n.length,h=!1,c>0&&(e=(zn(0,n.length),n.charCodeAt(0)),(e==45||e==43)&&(n=(zn(1,n.length+1),n.substr(1)),--c,h=e==45)),c==0)throw T(new th(Vb+l+'"'));for(;n.length>0&&(zn(0,n.length),n.charCodeAt(0)==48);)n=(zn(1,n.length+1),n.substr(1)),--c;if(c>(PUn(),gQn)[10])throw T(new th(Vb+l+'"'));for(r=0;r<c;r++)if(VKn((zn(r,n.length),n.charCodeAt(r)))==-1)throw T(new th(Vb+l+'"'));for(d=0,s=vun[10],a=WF[10],f=n1(kun[10]),t=!0,i=c%s,i>0&&(d=-parseInt((Ri(0,i,n.length),n.substr(0,i)),10),n=(zn(i,n.length+1),n.substr(i)),c-=i,t=!1);c>=s;){if(i=parseInt((Ri(0,s,n.length),n.substr(0,s)),10),n=(zn(s,n.length+1),n.substr(s)),c-=s,t)t=!1;else{if(Ec(d,f)<0)throw T(new th(Vb+l+'"'));d=er(d,a)}d=bs(d,i)}if(Ec(d,0)>0)throw T(new th(Vb+l+'"'));if(!h&&(d=n1(d),Ec(d,0)<0))throw T(new th(Vb+l+'"'));return d}function ctn(n){UR();var e,t,i,r,c,s,f,h;if(n==null)return null;if(r=ih(n,wu(37)),r<0)return n;for(h=new mo((Ri(0,r,n.length),n.substr(0,r))),e=F(Ru,s2,28,4,15,1),f=0,i=0,s=n.length;r<s;r++)if(zn(r,n.length),n.charCodeAt(r)==37&&n.length>r+2&&B$((zn(r+1,n.length),n.charCodeAt(r+1)),Kdn,Bdn)&&B$((zn(r+2,n.length),n.charCodeAt(r+2)),Kdn,Bdn))if(t=g0e((zn(r+1,n.length),n.charCodeAt(r+1)),(zn(r+2,n.length),n.charCodeAt(r+2))),r+=2,i>0?(t&192)==128?e[f++]=t<<24>>24:i=0:t>=128&&((t&224)==192?(e[f++]=t<<24>>24,i=2):(t&240)==224?(e[f++]=t<<24>>24,i=3):(t&248)==240&&(e[f++]=t<<24>>24,i=4)),i>0){if(f==i){switch(f){case 2:{z1(h,((e[0]&31)<<6|e[1]&63)&ui);break}case 3:{z1(h,((e[0]&15)<<12|(e[1]&63)<<6|e[2]&63)&ui);break}}f=0,i=0}}else{for(c=0;c<f;++c)z1(h,e[c]&ui);f=0,h.a+=String.fromCharCode(t)}else{for(c=0;c<f;++c)z1(h,e[c]&ui);f=0,z1(h,(zn(r,n.length),n.charCodeAt(r)))}return h.a}function YGn(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m;if(p=St(Gr(u(N((!n.b&&(n.b=new Dn(he,n,4,7)),n.b),0),84))),m=St(Gr(u(N((!n.c&&(n.c=new Dn(he,n,5,8)),n.c),0),84))),d=p==m,f=new Ni,e=u(z(n,(DC(),udn)),75),e&&e.b>=2){if((!n.a&&(n.a=new q(Tt,n,6,6)),n.a).i==0)t=(K1(),r=new jE,r),ve((!n.a&&(n.a=new q(Tt,n,6,6)),n.a),t);else if((!n.a&&(n.a=new q(Tt,n,6,6)),n.a).i>1)for(g=new kp((!n.a&&(n.a=new q(Tt,n,6,6)),n.a));g.e!=g.i.gc();)A5(g);dy(e,u(N((!n.a&&(n.a=new q(Tt,n,6,6)),n.a),0),166))}if(d)for(i=new ne((!n.a&&(n.a=new q(Tt,n,6,6)),n.a));i.e!=i.i.gc();)for(t=u(ue(i),166),l=new ne((!t.a&&(t.a=new ti(xo,t,5)),t.a));l.e!=l.i.gc();)h=u(ue(l),377),f.a=y.Math.max(f.a,h.a),f.b=y.Math.max(f.b,h.b);for(s=new ne((!n.n&&(n.n=new q(Sr,n,1,7)),n.n));s.e!=s.i.gc();)c=u(ue(s),135),a=u(z(c,j9),8),a&&Bo(c,a.a,a.b),d&&(f.a=y.Math.max(f.a,c.i+c.g),f.b=y.Math.max(f.b,c.j+c.f));return f}function ZGn(n,e,t,i,r){var c,s,f;if(n$n(n,e),s=e[0],c=Xi(t.c,0),f=-1,tY(t))if(i>0){if(s+i>n.length)return!1;f=yS((Ri(0,s+i,n.length),n.substr(0,s+i)),e)}else f=yS(n,e);switch(c){case 71:return f=Ug(n,s,S(C(fn,1),J,2,6,[Kzn,Bzn]),e),r.e=f,!0;case 77:return lSe(n,e,r,f,s);case 76:return aSe(n,e,r,f,s);case 69:return iEe(n,e,s,r);case 99:return rEe(n,e,s,r);case 97:return f=Ug(n,s,S(C(fn,1),J,2,6,["AM","PM"]),e),r.b=f,!0;case 121:return dSe(n,e,s,f,t,r);case 100:return f<=0?!1:(r.c=f,!0);case 83:return f<0?!1:v8e(f,s,e[0],r);case 104:f==12&&(f=0);case 75:case 72:return f<0?!1:(r.f=f,r.g=!1,!0);case 107:return f<0?!1:(r.f=f,r.g=!0,!0);case 109:return f<0?!1:(r.j=f,!0);case 115:return f<0?!1:(r.n=f,!0);case 90:if(s<n.length&&(zn(s,n.length),n.charCodeAt(s)==90))return++e[0],r.o=0,!0;case 122:case 118:return Sye(n,s,e,r);default:return!1}}function JLe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn;for(A=e.c.length,r=new Wg(n.a,t,null,null),yn=F(Ii,Cr,28,A,15,1),k=F(Ii,Cr,28,A,15,1),m=F(Ii,Cr,28,A,15,1),j=0,f=0;f<A;f++)k[f]=et,m[f]=Wi;for(h=0;h<A;h++)for(i=(Nn(h,e.c.length),u(e.c[h],185)),yn[h]=gR(i),yn[j]>yn[h]&&(j=h),d=new M(n.a.b);d.a<d.c.c.length;)for(a=u(E(d),30),O=new M(a.a);O.a<O.c.c.length;)P=u(E(O),10),X=$(i.p[P.p])+$(i.d[P.p]),k[h]=y.Math.min(k[h],X),m[h]=y.Math.max(m[h],X+P.o.b);for(tn=F(Ii,Cr,28,A,15,1),l=0;l<A;l++)(Nn(l,e.c.length),u(e.c[l],185)).o==(If(),Bd)?tn[l]=k[j]-k[l]:tn[l]=m[j]-m[l];for(c=F(Ii,Cr,28,A,15,1),p=new M(n.a.b);p.a<p.c.c.length;)for(g=u(E(p),30),_=new M(g.a);_.a<_.c.c.length;){for(D=u(E(_),10),s=0;s<A;s++)c[s]=$((Nn(s,e.c.length),u(e.c[s],185)).p[D.p])+$((Nn(s,e.c.length),u(e.c[s],185)).d[D.p])+tn[s];Iyn(c,O$n(mE.prototype.Me,mE,[])),r.p[D.p]=(c[1]+c[2])/2,r.d[D.p]=0}return r}function QLe(n,e,t){var i,r,c,s,f;switch(i=e.i,c=n.i.o,r=n.i.d,f=n.n,s=cc(S(C(Ei,1),J,8,0,[f,n.a])),n.j.g){case 1:uh(e,(bu(),Xs)),i.d=-r.d-t-i.a,u(u(sn(e.d,0),187).of((W(),S3)),291)==(Co(),nl)?(df(e,(Uu(),zs)),i.c=s.a-$(B(v(n,y2)))-t-i.b):(df(e,(Uu(),Th)),i.c=s.a+$(B(v(n,y2)))+t);break;case 2:df(e,(Uu(),Th)),i.c=c.a+r.c+t,u(u(sn(e.d,0),187).of((W(),S3)),291)==(Co(),nl)?(uh(e,(bu(),Xs)),i.d=s.b-$(B(v(n,y2)))-t-i.a):(uh(e,(bu(),kf)),i.d=s.b+$(B(v(n,y2)))+t);break;case 3:uh(e,(bu(),kf)),i.d=c.b+r.a+t,u(u(sn(e.d,0),187).of((W(),S3)),291)==(Co(),nl)?(df(e,(Uu(),zs)),i.c=s.a-$(B(v(n,y2)))-t-i.b):(df(e,(Uu(),Th)),i.c=s.a+$(B(v(n,y2)))+t);break;case 4:df(e,(Uu(),zs)),i.c=-r.b-t-i.b,u(u(sn(e.d,0),187).of((W(),S3)),291)==(Co(),nl)?(uh(e,(bu(),Xs)),i.d=s.b-$(B(v(n,y2)))-t-i.a):(uh(e,(bu(),kf)),i.d=s.b+$(B(v(n,y2)))+t)}}function YLe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k;for(t.Ug(kVn,1),!e.a&&(e.a=new q(Ye,e,10,11)),i=$(B(z(e,(Bf(),zO)))),a=$(B(z(e,l9))),g=u(z(e,h9),107),p=new aX(i,a),c=vzn(p,e,g),C$n(e,p),f=u(z(e,m1n),17).a;f>1;){if(r=rCe(e),d=c.g,m=u(z(e,h9),107),k=$(B(z(e,zO))),(!e.a&&(e.a=new q(Ye,e,10,11)),e.a).i>1&&$(B(z(e,(_h(),Iq))))!=Pt&&(c.c+(m.b+m.c))/(c.b+(m.d+m.a))<k?ht(r,(_h(),Xw),$(B(z(e,Xw)))+$(B(z(e,Iq)))):(!e.a&&(e.a=new q(Ye,e,10,11)),e.a).i>1&&$(B(z(e,(_h(),Pq))))!=Pt&&(c.c+(m.b+m.c))/(c.b+(m.d+m.a))>k&&ht(r,(_h(),Xw),y.Math.max($(B(z(e,f9))),$(B(z(r,Xw)))-$(B(z(e,Pq))))),p=new aX(i,a),h=vzn(p,r,g),l=h.g,l>=d&&l==l){for(s=0;s<(!r.a&&(r.a=new q(Ye,r,10,11)),r.a).i;s++)z_n(n,u(N((!r.a&&(r.a=new q(Ye,r,10,11)),r.a),s),27),u(N((!e.a&&(e.a=new q(Ye,e,10,11)),e.a),s),27));C$n(e,p),s2e(c,h.c),o2e(c,h.b)}--f}ht(e,(_h(),Dv),c.b),ht(e,A3,c.c),t.Vg()}function ZLe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O;for(e.Ug("Interactive node layering",1),t=new Z,g=new M(n.a);g.a<g.c.c.length;){for(a=u(E(g),10),h=a.n.a,f=h+a.o.a,f=y.Math.max(h+1,f),O=new xi(t,0),i=null;O.b<O.d.gc();)if(j=(oe(O.b<O.d.gc()),u(O.d.Xb(O.c=O.b++),578)),j.c>=f){oe(O.b>0),O.a.Xb(O.c=--O.b);break}else j.a>h&&(i?(hi(i.b,j.b),i.a=y.Math.max(i.a,j.a),bo(O)):(nn(j.b,a),j.c=y.Math.min(j.c,h),j.a=y.Math.max(j.a,f),i=j));i||(i=new Vyn,i.c=h,i.a=f,B0(O,i),nn(i.b,a))}for(s=n.b,l=0,P=new M(t);P.a<P.c.c.length;)for(j=u(E(P),578),r=new Nc(n),r.p=l++,Fn(s.c,r),p=new M(j.b);p.a<p.c.c.length;)a=u(E(p),10),$i(a,r),a.p=0;for(d=new M(n.a);d.a<d.c.c.length;)if(a=u(E(d),10),a.p==0)for(k=Hqn(a,n);k.a.gc()!=0;)m=u(k.a.ec().Kc().Pb(),10),k.a.Bc(m)!=null,Ki(k,Hqn(m,n));for(c=new xi(s,0);c.b<c.d.gc();)(oe(c.b<c.d.gc()),u(c.d.Xb(c.c=c.b++),30)).a.c.length==0&&bo(c);n.a.c.length=0,e.Vg()}function nNe(n,e,t,i,r,c,s){var f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn,Bn,te,xe,Nt;for(p=0,Rn=0,h=new M(n);h.a<h.c.c.length;)f=u(E(h),27),RGn(f),p=y.Math.max(p,f.g),Rn+=f.g*f.f;for(m=Rn/n.c.length,kn=R7e(n,m),Rn+=n.c.length*kn,p=y.Math.max(p,y.Math.sqrt(Rn*s))+t.b,xe=t.b,Nt=t.d,g=0,a=t.b+t.c,yn=new Mt,Re(yn,Y(0)),X=new Mt,l=new xi(n,0);l.b<l.d.gc();)f=(oe(l.b<l.d.gc()),u(l.d.Xb(l.c=l.b++),27)),te=f.g,d=f.f,xe+te>p&&(c&&(ir(X,g),ir(yn,Y(l.b-1))),xe=t.b,Nt+=g+e,g=0,a=y.Math.max(a,t.b+t.c+te)),eu(f,xe),tu(f,Nt),a=y.Math.max(a,xe+te+t.c),g=y.Math.max(g,d),xe+=te+e;if(a=y.Math.max(a,i),Bn=Nt+g+t.a,Bn<r&&(g+=r-Bn,Bn=r),c)for(xe=t.b,l=new xi(n,0),ir(yn,Y(n.c.length)),tn=ge(yn,0),P=u(be(tn),17).a,ir(X,g),_=ge(X,0),D=0;l.b<l.d.gc();)l.b==P&&(xe=t.b,D=$(B(be(_))),P=u(be(tn),17).a),f=(oe(l.b<l.d.gc()),u(l.d.Xb(l.c=l.b++),27)),O=f.f,Ib(f,D),k=D,l.b==P&&(j=a-xe-t.c,A=f.g,Ob(f,j),Enn(f,new V(j,k),new V(A,O))),xe+=f.g+e;return new V(a,Bn)}function eNe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn;for(e.Ug("Compound graph postprocessor",1),t=on(un(v(n,(cn(),AH)))),f=u(v(n,(W(),efn)),229),a=new ni,P=f.ec().Kc();P.Ob();){for(j=u(P.Pb(),18),s=new _u(f.cc(j)),Ln(),Yt(s,new LG(n)),_=lve((Nn(0,s.c.length),u(s.c[0],249))),tn=Txn(u(sn(s,s.c.length-1),249)),A=_.i,Q4(tn.i,A)?O=A.e:O=Hi(A),d=w9e(j,s),vo(j.a),g=null,c=new M(s);c.a<c.c.c.length;)r=u(E(c),249),k=new Ni,pnn(k,r.a,O),p=r.b,i=new Tu,J$(i,0,p.a),nw(i,k),D=new rr(Of(p.c)),X=new rr(Of(p.d)),tt(D,k),tt(X,k),g&&(i.b==0?m=X:m=(oe(i.b!=0),u(i.a.a.c,8)),yn=y.Math.abs(g.a-m.a)>vh,kn=y.Math.abs(g.b-m.b)>vh,(!t&&yn&&kn||t&&(yn||kn))&&Re(j.a,D)),Ki(j.a,i),i.b==0?g=D:g=(oe(i.b!=0),u(i.c.b.c,8)),Bve(p,d,k),Txn(r)==tn&&(Hi(tn.i)!=r.a&&(k=new Ni,pnn(k,Hi(tn.i),O)),U(j,gH,k)),yje(p,j,O),a.a.zc(p,a);Zi(j,_),Oi(j,tn)}for(l=a.a.ec().Kc();l.Ob();)h=u(l.Pb(),18),Zi(h,null),Oi(h,null);e.Vg()}function tNe(n,e){var t,i,r,c,s,f,h,l,a,d,g;for(r=u(v(n,(lc(),v0)),88),a=r==(ci(),Kr)||r==Xr?Wf:Xr,t=u(Wr(ut(new Cn(null,new On(n.b,16)),new n4n),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[(Gu(),Yr)]))),15),h=u(Wr(_r(t.Oc(),new wkn(e)),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[Yr]))),15),h.Gc(u(Wr(_r(t.Oc(),new gkn(e)),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[Yr]))),16)),h.jd(new pkn(a)),g=new Ul(new mkn(r)),i=new de,f=h.Kc();f.Ob();)s=u(f.Pb(),240),l=u(s.a,40),on(un(s.c))?(g.a.zc(l,(_n(),ga))==null,new Y3(g.a.Zc(l,!1)).a.gc()>0&&Ve(i,l,u(new Y3(g.a.Zc(l,!1)).a.Vc(),40)),new Y3(g.a.ad(l,!0)).a.gc()>1&&Ve(i,IKn(g,l),l)):(new Y3(g.a.Zc(l,!1)).a.gc()>0&&(c=u(new Y3(g.a.Zc(l,!1)).a.Vc(),40),x(c)===x(Fr(wr(i.f,l)))&&u(v(l,(pt(),nq)),15).Fc(c)),new Y3(g.a.ad(l,!0)).a.gc()>1&&(d=IKn(g,l),x(Fr(wr(i.f,d)))===x(l)&&u(v(d,(pt(),nq)),15).Fc(l)),g.a.Bc(l)!=null)}function nzn(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D;if(n.gc()==1)return u(n.Xb(0),235);if(n.gc()<=0)return new zT;for(r=n.Kc();r.Ob();){for(t=u(r.Pb(),235),m=0,a=et,d=et,h=Wi,l=Wi,p=new M(t.e);p.a<p.c.c.length;)g=u(E(p),153),m+=u(v(g,(Us(),k3)),17).a,a=y.Math.min(a,g.d.a-g.e.a/2),d=y.Math.min(d,g.d.b-g.e.b/2),h=y.Math.max(h,g.d.a+g.e.a/2),l=y.Math.max(l,g.d.b+g.e.b/2);U(t,(Us(),k3),Y(m)),U(t,(Q1(),L8),new V(a,d)),U(t,lj,new V(h,l))}for(Ln(),n.jd(new G0n),k=new zT,Ur(k,u(n.Xb(0),96)),f=0,O=0,c=n.Kc();c.Ob();)t=u(c.Pb(),235),j=mi(Fi(u(v(t,(Q1(),lj)),8)),u(v(t,L8),8)),f=y.Math.max(f,j.a),O+=j.a*j.b;for(f=y.Math.max(f,y.Math.sqrt(O)*$(B(v(k,(Us(),zYn))))),P=$(B(v(k,yI))),A=0,D=0,s=0,e=P,i=n.Kc();i.Ob();)t=u(i.Pb(),235),j=mi(Fi(u(v(t,(Q1(),lj)),8)),u(v(t,L8),8)),A+j.a>f&&(A=0,D+=s+P,s=0),IPe(k,t,A,D),e=y.Math.max(e,A+j.a),s=y.Math.max(s,j.b),A+=j.a+P;return k}function iNe(n){Ren();var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j;if(n==null||(c=iC(n),m=A5e(c),m%4!=0))return null;if(k=m/4|0,k==0)return F(Ru,s2,28,0,15,1);for(d=null,e=0,t=0,i=0,r=0,s=0,f=0,h=0,l=0,p=0,g=0,a=0,d=F(Ru,s2,28,k*3,15,1);p<k-1;p++){if(!n7(s=c[a++])||!n7(f=c[a++])||!n7(h=c[a++])||!n7(l=c[a++]))return null;e=nh[s],t=nh[f],i=nh[h],r=nh[l],d[g++]=(e<<2|t>>4)<<24>>24,d[g++]=((t&15)<<4|i>>2&15)<<24>>24,d[g++]=(i<<6|r)<<24>>24}return!n7(s=c[a++])||!n7(f=c[a++])?null:(e=nh[s],t=nh[f],h=c[a++],l=c[a++],nh[h]==-1||nh[l]==-1?h==61&&l==61?t&15?null:(j=F(Ru,s2,28,p*3+1,15,1),Oc(d,0,j,0,p*3),j[g]=(e<<2|t>>4)<<24>>24,j):h!=61&&l==61?(i=nh[h],i&3?null:(j=F(Ru,s2,28,p*3+2,15,1),Oc(d,0,j,0,p*3),j[g++]=(e<<2|t>>4)<<24>>24,j[g]=((t&15)<<4|i>>2&15)<<24>>24,j)):null:(i=nh[h],r=nh[l],d[g++]=(e<<2|t>>4)<<24>>24,d[g++]=((t&15)<<4|i>>2&15)<<24>>24,d[g++]=(i<<6|r)<<24>>24,d))}function rNe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_;for(e.Ug(XXn,1),m=u(v(n,(cn(),$l)),223),r=new M(n.b);r.a<r.c.c.length;)for(i=u(E(r),30),l=Y7(i.a),s=l,f=0,h=s.length;f<h;++f)if(c=s[f],c.k==(Vn(),_c)){if(m==(El(),R3))for(d=new M(c.j);d.a<d.c.c.length;)a=u(E(d),12),a.e.c.length==0||W8e(a),a.g.c.length==0||J8e(a);else if(L(v(c,(W(),st)),18))j=u(v(c,st),18),P=u(h1(c,(en(),Wn)).Kc().Pb(),12),O=u(h1(c,Zn).Kc().Pb(),12),A=u(v(P,st),12),D=u(v(O,st),12),Zi(j,D),Oi(j,A),_=new rr(O.i.n),_.a=cc(S(C(Ei,1),J,8,0,[D.i.n,D.n,D.a])).a,Re(j.a,_),_=new rr(P.i.n),_.a=cc(S(C(Ei,1),J,8,0,[A.i.n,A.n,A.a])).a,Re(j.a,_);else{if(c.j.c.length>=2){for(k=!0,g=new M(c.j),t=u(E(g),12),p=null;g.a<g.c.c.length;)if(p=t,t=u(E(g),12),!rt(v(p,st),v(t,st))){k=!1;break}}else k=!1;for(d=new M(c.j);d.a<d.c.c.length;)a=u(E(d),12),a.e.c.length==0||DCe(a,k),a.g.c.length==0||$Ce(a,k)}$i(c,null)}e.Vg()}function cNe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_;for(f=new M(n.a.b);f.a<f.c.c.length;)for(c=u(E(f),30),A=new M(c.a);A.a<A.c.c.length;)O=u(E(A),10),e.g[O.p]=O,e.a[O.p]=O,e.d[O.p]=0;for(h=n.a.b,e.c==(fh(),y1)&&(h=Qo(h)),s=h.Kc();s.Ob();)for(c=u(s.Pb(),30),p=-1,g=c.a,e.o==(If(),Xf)&&(p=et,g=Qo(g)),_=g.Kc();_.Ob();)if(D=u(_.Pb(),10),d=null,e.c==y1?d=u(sn(n.b.f,D.p),15):d=u(sn(n.b.b,D.p),15),d.gc()>0)if(i=d.gc(),l=wi(y.Math.floor((i+1)/2))-1,r=wi(y.Math.ceil((i+1)/2))-1,e.o==Xf)for(a=r;a>=l;a--)e.a[D.p]==D&&(k=u(d.Xb(a),42),m=u(k.a,10),!sf(t,k.b)&&p>n.b.e[m.p]&&(e.a[m.p]=D,e.g[D.p]=e.g[m.p],e.a[D.p]=e.g[D.p],e.f[e.g[D.p].p]=(_n(),!!(on(e.f[e.g[D.p].p])&D.k==(Vn(),Ti))),p=n.b.e[m.p]));else for(a=l;a<=r;a++)e.a[D.p]==D&&(P=u(d.Xb(a),42),j=u(P.a,10),!sf(t,P.b)&&p<n.b.e[j.p]&&(e.a[j.p]=D,e.g[D.p]=e.g[j.p],e.a[D.p]=e.g[D.p],e.f[e.g[D.p].p]=(_n(),!!(on(e.f[e.g[D.p].p])&D.k==(Vn(),Ti))),p=n.b.e[j.p]))}function ezn(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn;return A=n.c[(Nn(0,e.c.length),u(e.c[0],18)).p],tn=n.c[(Nn(1,e.c.length),u(e.c[1],18)).p],A.a.e.e-A.a.a-(A.b.e.e-A.b.a)==0&&tn.a.e.e-tn.a.a-(tn.b.e.e-tn.b.a)==0||(P=A.b.e.f,!L(P,10))?!1:(j=u(P,10),_=n.i[j.p],X=j.c?qr(j.c.a,j,0):-1,c=Pt,X>0&&(r=u(sn(j.c.a,X-1),10),s=n.i[r.p],yn=y.Math.ceil(jg(n.n,r,j)),c=_.a.e-j.d.d-(s.a.e+r.o.b+r.d.a)-yn),l=Pt,X<j.c.a.c.length-1&&(h=u(sn(j.c.a,X+1),10),a=n.i[h.p],yn=y.Math.ceil(jg(n.n,h,j)),l=a.a.e-h.d.d-(_.a.e+j.o.b+j.d.a)-yn),t&&(Cf(),Fs(jh),y.Math.abs(c-l)<=jh||c==l||isNaN(c)&&isNaN(l))?!0:(i=fD(A.a),f=-fD(A.b),d=-fD(tn.a),O=fD(tn.b),k=A.a.e.e-A.a.a-(A.b.e.e-A.b.a)>0&&tn.a.e.e-tn.a.a-(tn.b.e.e-tn.b.a)<0,m=A.a.e.e-A.a.a-(A.b.e.e-A.b.a)<0&&tn.a.e.e-tn.a.a-(tn.b.e.e-tn.b.a)>0,p=A.a.e.e+A.b.a<tn.b.e.e+tn.a.a,g=A.a.e.e+A.b.a>tn.b.e.e+tn.a.a,D=0,!k&&!m&&(g?c+d>0?D=d:l-i>0&&(D=i):p&&(c+f>0?D=f:l-O>0&&(D=O))),_.a.e+=D,_.b&&(_.d.e+=D),!1))}function tzn(n,e,t){var i,r,c,s,f,h,l,a,d,g;if(i=new Ho(e.Lf().a,e.Lf().b,e.Mf().a,e.Mf().b),r=new mp,n.c)for(s=new M(e.Rf());s.a<s.c.c.length;)c=u(E(s),187),r.c=c.Lf().a+e.Lf().a,r.d=c.Lf().b+e.Lf().b,r.b=c.Mf().a,r.a=c.Mf().b,L5(i,r);for(l=new M(e.Xf());l.a<l.c.c.length;){if(h=u(E(l),852),a=h.Lf().a+e.Lf().a,d=h.Lf().b+e.Lf().b,n.e&&(r.c=a,r.d=d,r.b=h.Mf().a,r.a=h.Mf().b,L5(i,r)),n.d)for(s=new M(h.Rf());s.a<s.c.c.length;)c=u(E(s),187),r.c=c.Lf().a+a,r.d=c.Lf().b+d,r.b=c.Mf().a,r.a=c.Mf().b,L5(i,r);if(n.b){if(g=new V(-t,-t),u(e.of((He(),Ww)),181).Hc((zu(),Oa)))for(s=new M(h.Rf());s.a<s.c.c.length;)c=u(E(s),187),g.a+=c.Mf().a+t,g.b+=c.Mf().b+t;g.a=y.Math.max(g.a,0),g.b=y.Math.max(g.b,0),EUn(i,h.Wf(),h.Uf(),e,h,g,t)}}n.b&&EUn(i,e.Wf(),e.Uf(),e,null,null,t),f=new qN(e.Vf()),f.d=y.Math.max(0,e.Lf().b-i.d),f.a=y.Math.max(0,i.d+i.a-(e.Lf().b+e.Mf().b)),f.b=y.Math.max(0,e.Lf().a-i.c),f.c=y.Math.max(0,i.c+i.b-(e.Lf().a+e.Mf().a)),e.Zf(f)}function uNe(){var n=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F"];return n[34]='\\"',n[92]="\\\\",n[173]="\\u00ad",n[1536]="\\u0600",n[1537]="\\u0601",n[1538]="\\u0602",n[1539]="\\u0603",n[1757]="\\u06dd",n[1807]="\\u070f",n[6068]="\\u17b4",n[6069]="\\u17b5",n[8203]="\\u200b",n[8204]="\\u200c",n[8205]="\\u200d",n[8206]="\\u200e",n[8207]="\\u200f",n[8232]="\\u2028",n[8233]="\\u2029",n[8234]="\\u202a",n[8235]="\\u202b",n[8236]="\\u202c",n[8237]="\\u202d",n[8238]="\\u202e",n[8288]="\\u2060",n[8289]="\\u2061",n[8290]="\\u2062",n[8291]="\\u2063",n[8292]="\\u2064",n[8298]="\\u206a",n[8299]="\\u206b",n[8300]="\\u206c",n[8301]="\\u206d",n[8302]="\\u206e",n[8303]="\\u206f",n[65279]="\\ufeff",n[65529]="\\ufff9",n[65530]="\\ufffa",n[65531]="\\ufffb",n}function izn(n){rb(n,new gd(yz(UE(eb(Yd(nb(Zd(new Fa,cu),"ELK Force"),"Force-based algorithm provided by the Eclipse Layout Kernel. Implements methods that follow physical analogies by simulating forces that move the nodes into a balanced distribution. Currently the original Eades model and the Fruchterman - Reingold model are supported."),new W0n),cu),yt((Mm(),vA),S(C(kA,1),G,245,0,[pA]))))),Q(n,cu,Dy,Y(1)),Q(n,cu,yw,80),Q(n,cu,eB,5),Q(n,cu,l3,Gm),Q(n,cu,uP,Y(1)),Q(n,cu,t8,(_n(),!0)),Q(n,cu,Wb,mon),Q(n,cu,i8,rn(won)),Q(n,cu,tB,rn(von)),Q(n,cu,oP,!1),Q(n,cu,r8,rn(pon)),Q(n,cu,zm,rn(JYn)),Q(n,cu,a3,rn(QYn)),Q(n,cu,r2,rn(WYn)),Q(n,cu,Xm,rn(VYn)),Q(n,cu,Vm,rn(ZYn)),Q(n,cu,cP,rn(gon)),Q(n,cu,ZK,rn(k_)),Q(n,cu,Xtn,rn(kI)),Q(n,cu,nB,rn(v_)),Q(n,cu,Vtn,rn(kon)),Q(n,cu,$y,rn(cZn)),Q(n,cu,xy,rn(uZn)),Q(n,cu,Ry,rn(rZn)),Q(n,cu,Ky,rn(iZn)),Q(n,cu,Jb,yon)}function sa(n,e){nt();var t,i,r,c,s,f,h,l,a,d,g,p,m;if(c6(Uv)==0){for(d=F(DDe,J,122,yse.length,0,1),s=0;s<d.length;s++)d[s]=new yo(4);for(i=new i6,c=0;c<hbn.length;c++){if(a=new yo(4),c<84?(f=c*2,p=(zn(f,KF.length),KF.charCodeAt(f)),g=(zn(f+1,KF.length),KF.charCodeAt(f+1)),xc(a,p,g)):(f=(c-84)*2,xc(a,lbn[f],lbn[f+1])),h=hbn[c],Sn(h,"Specials")&&xc(a,65520,65533),Sn(h,WJn)&&(xc(a,983040,1048573),xc(a,1048576,1114109)),Lr(Uv,h,a),Lr(B9,h,bw(a)),l=i.a.length,0<l?i.a=qo(i.a,0,0):0>l&&(i.a+=OCn(F(fs,gh,28,-l,15,1))),i.a+="Is",ih(h,wu(32))>=0)for(r=0;r<h.length;r++)zn(r,h.length),h.charCodeAt(r)!=32&&C4(i,(zn(r,h.length),h.charCodeAt(r)));else i.a+=""+h;YY(i.a,h,!0)}YY(RF,"Cn",!1),YY(eun,"Cn",!0),t=new yo(4),xc(t,0,cv),Lr(Uv,"ALL",t),Lr(B9,"ALL",bw(t)),!rg&&(rg=new de),Lr(rg,RF,RF),!rg&&(rg=new de),Lr(rg,eun,eun),!rg&&(rg=new de),Lr(rg,"ALL","ALL")}return m=u(Dc(e?Uv:B9,n),138),m}function rzn(n){rb(n,new gd(yz(UE(eb(Yd(nb(Zd(new Fa,uu),"ELK Mr. Tree"),"Tree-based algorithm provided by the Eclipse Layout Kernel. Computes a spanning tree of the input graph and arranges all nodes according to the resulting parent-children hierarchy. I pity the fool who doesn't use Mr. Tree Layout."),new g4n),gVn),jn((Mm(),pU))))),Q(n,uu,Wb,Aln),Q(n,uu,yw,20),Q(n,uu,$B,3),Q(n,uu,l3,Gm),Q(n,uu,Dy,Y(1)),Q(n,uu,t8,(_n(),!0)),Q(n,uu,Uy,rn(Cln)),Q(n,uu,xB,Sln),Q(n,uu,i8,rn(jre)),Q(n,uu,SP,rn(Ere)),Q(n,uu,r2,rn(Tre)),Q(n,uu,zm,rn(Cre)),Q(n,uu,d3,rn(Sre)),Q(n,uu,a3,rn(Pre)),Q(n,uu,Xm,rn(Mre)),Q(n,uu,r8,rn(Iln)),Q(n,uu,Vm,rn(Ire)),Q(n,uu,Arn,rn($ln)),Q(n,uu,Nrn,rn(Lln)),Q(n,uu,$y,rn(Nre)),Q(n,uu,xy,rn(Dre)),Q(n,uu,Ry,rn(Lre)),Q(n,uu,Ky,rn(Are)),Q(n,uu,Jb,Dln),Q(n,uu,Orn,rn(A2)),Q(n,uu,Lrn,rn(oq)),Q(n,uu,Irn,rn(Ph)),Q(n,uu,Srn,rn(Tln)),Q(n,uu,Prn,rn(Pln))}function czn(n,e){var t,i,r,c,s,f,h,l,a,d,g;for(l=u(u(ot(n.r,e),21),87),s=Bye(n,e),t=n.u.Hc((zu(),C9)),h=l.Kc();h.Ob();)if(f=u(h.Pb(),117),!(!f.c||f.c.d.c.length<=0)){switch(g=f.b.Mf(),a=f.c,d=a.i,d.b=(c=a.n,a.e.a+c.b+c.c),d.a=(r=a.n,a.e.b+r.d+r.a),e.g){case 1:f.a?(d.c=(g.a-d.b)/2,df(a,(Uu(),pa))):s||t?(d.c=-d.b-n.s,df(a,(Uu(),zs))):(d.c=g.a+n.s,df(a,(Uu(),Th))),d.d=-d.a-n.t,uh(a,(bu(),Xs));break;case 3:f.a?(d.c=(g.a-d.b)/2,df(a,(Uu(),pa))):s||t?(d.c=-d.b-n.s,df(a,(Uu(),zs))):(d.c=g.a+n.s,df(a,(Uu(),Th))),d.d=g.b+n.t,uh(a,(bu(),kf));break;case 2:f.a?(i=n.v?d.a:u(sn(a.d,0),187).Mf().b,d.d=(g.b-i)/2,uh(a,(bu(),ma))):s||t?(d.d=-d.a-n.t,uh(a,(bu(),Xs))):(d.d=g.b+n.t,uh(a,(bu(),kf))),d.c=g.a+n.s,df(a,(Uu(),Th));break;case 4:f.a?(i=n.v?d.a:u(sn(a.d,0),187).Mf().b,d.d=(g.b-i)/2,uh(a,(bu(),ma))):s||t?(d.d=-d.a-n.t,uh(a,(bu(),Xs))):(d.d=g.b+n.t,uh(a,(bu(),kf))),d.c=-d.b-n.s,df(a,(Uu(),zs))}s=!1}}function oNe(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k,j,P,O;if(g=!1,d=!1,mg(u(v(i,(cn(),Ft)),101))){s=!1,f=!1;n:for(m=new M(i.j);m.a<m.c.c.length;)for(p=u(E(m),12),j=$h(Eo(S(C(Ao,1),Kn,20,0,[new e4(p),new ip(p)])));pe(j);)if(k=u(fe(j),12),!on(un(v(k.i,q8)))){if(p.j==(en(),Xn)){s=!0;break n}if(p.j==ae){f=!0;break n}}g=f&&!s,d=s&&!f}if(!g&&!d&&i.b.c.length!=0){for(a=0,l=new M(i.b);l.a<l.c.c.length;)h=u(E(l),72),a+=h.n.b+h.o.b/2;a/=i.b.c.length,O=a>=i.o.b/2}else O=!d;O?(P=u(v(i,(W(),I3)),15),P?g?c=P:(r=u(v(i,M3),15),r?P.gc()<=r.gc()?c=P:c=r:(c=new Z,U(i,M3,c))):(c=new Z,U(i,I3,c))):(r=u(v(i,(W(),M3)),15),r?d?c=r:(P=u(v(i,I3),15),P?r.gc()<=P.gc()?c=r:c=P:(c=new Z,U(i,I3,c))):(c=new Z,U(i,M3,c))),c.Fc(n),U(n,(W(),tO),t),e.d==t?(Oi(e,null),t.e.c.length+t.g.c.length==0&&ic(t,null),j6e(t)):(Zi(e,null),t.e.c.length+t.g.c.length==0&&ic(t,null)),vo(e.a)}function sNe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn,Bn,te,xe,Nt;for(t.Ug("MinWidth layering",1),p=e.b,tn=e.a,Nt=u(v(e,(cn(),ihn)),17).a,f=u(v(e,rhn),17).a,n.b=$(B(v(e,Ws))),n.d=Pt,D=new M(tn);D.a<D.c.c.length;)O=u(E(D),10),O.k==(Vn(),zt)&&(Rn=O.o.b,n.d=y.Math.min(n.d,Rn));for(n.d=y.Math.max(1,n.d),yn=tn.c.length,n.c=F(ye,_e,28,yn,15,1),n.f=F(ye,_e,28,yn,15,1),n.e=F(Ii,Cr,28,yn,15,1),l=0,n.a=0,_=new M(tn);_.a<_.c.c.length;)O=u(E(_),10),O.p=l++,n.c[O.p]=FRn(ji(O)),n.f[O.p]=FRn(Qt(O)),n.e[O.p]=O.o.b/n.d,n.a+=n.e[O.p];for(n.b/=n.d,n.a/=yn,X=YEe(tn),Yt(tn,HW(new N7n(n))),k=Pt,m=et,s=null,xe=Nt,te=Nt,c=f,r=f,Nt<0&&(xe=u(eln.a.Id(),17).a,te=u(eln.b.Id(),17).a),f<0&&(c=u(nln.a.Id(),17).a,r=u(nln.b.Id(),17).a),Bn=xe;Bn<=te;Bn++)for(i=c;i<=r;i++)kn=HIe(n,Bn,i,tn,X),P=$(B(kn.a)),g=u(kn.b,15),j=g.gc(),(P<k||P==k&&j<m)&&(k=P,m=j,s=g);for(d=s.Kc();d.Ob();){for(a=u(d.Pb(),15),h=new Nc(e),A=a.Kc();A.Ob();)O=u(A.Pb(),10),$i(O,h);Fn(p.c,h)}Yk(p),tn.c.length=0,t.Vg()}function fNe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn,Bn,te;if(t.Ug("Spline edge routing",1),e.b.c.length==0){e.f.a=0,t.Vg();return}O=$(B(v(e,(cn(),S2)))),f=$(B(v(e,Kd))),s=$(B(v(e,T2))),P=u(v(e,MH),350),yn=P==(om(),Y8),tn=$(B(v(e,Wfn))),n.d=e,n.j.c.length=0,n.a.c.length=0,Hu(n.k),h=u(sn(e.b,0),30),a=PM(h.a,(AS(),Lj)),m=u(sn(e.b,e.b.c.length-1),30),d=PM(m.a,Lj),k=new M(e.b),j=null,te=0;do{for(A=k.a<k.c.c.length?u(E(k),30):null,qLe(n,j,A),gIe(n),kn=ghe(ave(ET(ut(new Cn(null,new On(n.i,16)),new B3n),new F3n))),Bn=0,D=te,g=!j||a&&j==h,p=!A||d&&A==m,kn>0?(l=0,j&&(l+=f),l+=(kn-1)*s,A&&(l+=f),yn&&A&&(l=y.Math.max(l,PCe(A,s,O,tn))),l<O&&!g&&!p&&(Bn=(O-l)/2,l=O),D+=l):!g&&!p&&(D+=O),A&&Ven(A,D),X=new M(n.i);X.a<X.c.c.length;)_=u(E(X),131),_.a.c=te,_.a.b=D-te,_.F=Bn,_.p=!j;hi(n.a,n.i),te=D,A&&(te+=A.c.a),j=A,g=p}while(A);for(r=new M(n.j);r.a<r.c.c.length;)i=u(E(r),18),c=eve(n,i),U(i,(W(),M2),c),Rn=FCe(n,i),U(i,Ld,Rn);e.f.a=te,n.d=null,t.Vg()}function hNe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn;for(n.b=e,n.a=u(v(e,(cn(),Qfn)),17).a,n.c=u(v(e,Zfn),17).a,n.c==0&&(n.c=et),j=new xi(e.b,0);j.b<j.d.gc();){for(k=(oe(j.b<j.d.gc()),u(j.d.Xb(j.c=j.b++),30)),f=new Z,a=-1,D=-1,A=new M(k.a);A.a<A.c.c.length;)O=u(E(A),10),wl((N7(),new ie(ce(Ml(O).a.Kc(),new En))))>=n.a&&(i=UIe(n,O),a=y.Math.max(a,i.b),D=y.Math.max(D,i.d),nn(f,new bi(O,i)));for(yn=new Z,l=0;l<a;++l)bb(yn,0,(oe(j.b>0),j.a.Xb(j.c=--j.b),kn=new Nc(n.b),B0(j,kn),oe(j.b<j.d.gc()),j.d.Xb(j.c=j.b++),kn));for(s=new M(f);s.a<s.c.c.length;)if(r=u(E(s),42),p=u(r.b,580).a,!!p)for(g=new M(p);g.a<g.c.c.length;)d=u(E(g),10),MZ(n,d,MI,yn);for(t=new Z,h=0;h<D;++h)nn(t,(Rn=new Nc(n.b),B0(j,Rn),Rn));for(c=new M(f);c.a<c.c.c.length;)if(r=u(E(c),42),tn=u(r.b,580).c,!!tn)for(X=new M(tn);X.a<X.c.c.length;)_=u(E(X),10),MZ(n,_,TI,t)}for(P=new xi(e.b,0);P.b<P.d.gc();)m=(oe(P.b<P.d.gc()),u(P.d.Xb(P.c=P.b++),30)),m.a.c.length==0&&bo(P)}function uzn(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D;if(k=n.i!=0,A=!1,P=null,fo(n.e)){if(a=e.gc(),a>0){for(g=a<100?null:new R1(a),l=new BQ(e),m=l.g,P=F(ye,_e,28,a,15,1),i=0,D=new Pb(a),r=0;r<n.i;++r){f=n.g[r],p=f;n:for(O=0;O<2;++O){for(h=a;--h>=0;)if(p!=null?rt(p,m[h]):x(p)===x(m[h])){P.length<=i&&(j=P,P=F(ye,_e,28,2*P.length,15,1),Oc(j,0,P,0,i)),P[i++]=r,ve(D,m[h]);break n}if(p=p,x(p)===x(f))break}}if(l=D,m=D.g,a=i,i>P.length&&(j=P,P=F(ye,_e,28,i,15,1),Oc(j,0,P,0,i)),i>0){for(A=!0,c=0;c<i;++c)p=m[c],g=fPn(n,u(p,76),g);for(s=i;--s>=0;)Jp(n,P[s]);if(i!=a){for(r=a;--r>=i;)Jp(l,r);j=P,P=F(ye,_e,28,i,15,1),Oc(j,0,P,0,i)}e=l}}}else for(e=T7e(n,e),r=n.i;--r>=0;)e.Hc(n.g[r])&&(Jp(n,r),A=!0);if(A){if(P!=null){for(t=e.gc(),d=t==1?W6(n,4,e.Kc().Pb(),null,P[0],k):W6(n,6,e,P,P[0],k),g=t<100?null:new R1(t),r=e.Kc();r.Ob();)p=r.Pb(),g=PV(n,u(p,76),g);g?(g.nj(d),g.oj()):it(n.e,d)}else{for(g=Aae(e.gc()),r=e.Kc();r.Ob();)p=r.Pb(),g=PV(n,u(p,76),g);g&&g.oj()}return!0}else return!1}function lNe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A;for(t=new yBn(e),t.a||FPe(e),l=RSe(e),h=new Mb,j=new Eqn,k=new M(e.a);k.a<k.c.c.length;)for(m=u(E(k),10),r=new ie(ce(Qt(m).a.Kc(),new En));pe(r);)i=u(fe(r),18),(i.c.i.k==(Vn(),Zt)||i.d.i.k==Zt)&&(a=ZAe(n,i,l,j),In(h,Ex(a.d),a.a));for(s=new Z,A=u(v(t.c,(W(),Dl)),21).Kc();A.Ob();){switch(O=u(A.Pb(),64),p=j.c[O.g],g=j.b[O.g],f=j.a[O.g],c=null,P=null,O.g){case 4:c=new Ho(n.d.a,p,l.b.a-n.d.a,g-p),P=new Ho(n.d.a,p,f,g-p),db(l,new V(c.c+c.b,c.d)),db(l,new V(c.c+c.b,c.d+c.a));break;case 2:c=new Ho(l.a.a,p,n.c.a-l.a.a,g-p),P=new Ho(n.c.a-f,p,f,g-p),db(l,new V(c.c,c.d)),db(l,new V(c.c,c.d+c.a));break;case 1:c=new Ho(p,n.d.b,g-p,l.b.b-n.d.b),P=new Ho(p,n.d.b,g-p,f),db(l,new V(c.c,c.d+c.a)),db(l,new V(c.c+c.b,c.d+c.a));break;case 3:c=new Ho(p,l.a.b,g-p,n.c.b-l.a.b),P=new Ho(p,n.c.b-f,g-p,f),db(l,new V(c.c,c.d)),db(l,new V(c.c+c.b,c.d))}c&&(d=new Gyn,d.d=O,d.b=c,d.c=P,d.a=PT(u(ot(h,Ex(O)),21)),Fn(s.c,d))}return hi(t.b,s),t.d=H6e(dAe(l)),t}function ozn(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k;if(t.p[e.p]==null){f=!0,t.p[e.p]=0,s=e,k=t.o==(If(),Bd)?li:Pt;do r=n.b.e[s.p],c=s.c.a.c.length,t.o==Bd&&r>0||t.o==Xf&&r<c-1?(h=null,l=null,t.o==Xf?h=u(sn(s.c.a,r+1),10):h=u(sn(s.c.a,r-1),10),l=t.g[h.p],ozn(n,l,t),k=n.e.wg(k,e,s),t.j[e.p]==e&&(t.j[e.p]=t.j[l.p]),t.j[e.p]==t.j[l.p]?(m=jg(n.d,s,h),t.o==Xf?(i=$(t.p[e.p]),d=$(t.p[l.p])+$(t.d[h.p])-h.d.d-m-s.d.a-s.o.b-$(t.d[s.p]),f?(f=!1,t.p[e.p]=y.Math.min(d,k)):t.p[e.p]=y.Math.min(i,y.Math.min(d,k))):(i=$(t.p[e.p]),d=$(t.p[l.p])+$(t.d[h.p])+h.o.b+h.d.a+m+s.d.d-$(t.d[s.p]),f?(f=!1,t.p[e.p]=y.Math.max(d,k)):t.p[e.p]=y.Math.max(i,y.Math.max(d,k)))):(m=$(B(v(n.a,(cn(),g0)))),p=dxn(n,t.j[e.p]),a=dxn(n,t.j[l.p]),t.o==Xf?(g=$(t.p[e.p])+$(t.d[s.p])+s.o.b+s.d.a+m-($(t.p[l.p])+$(t.d[h.p])-h.d.d),FAn(p,a,g)):(g=$(t.p[e.p])+$(t.d[s.p])-s.d.d-$(t.p[l.p])-$(t.d[h.p])-h.o.b-h.d.a-m,FAn(p,a,g)))):k=n.e.wg(k,e,s),s=t.a[s.p];while(s!=e);qfe(n.e,e)}}function aNe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn;if(t=$(B(v(n.a.j,(cn(),qfn)))),t<-1||!n.a.i||Ep(u(v(n.a.o,Ft),101))||uc(n.a.o,(en(),Zn)).gc()<2&&uc(n.a.o,Wn).gc()<2)return!0;if(n.a.c.kg())return!1;for(_=0,D=0,A=new Z,h=n.a.e,l=0,a=h.length;l<a;++l){for(f=h[l],g=f,p=0,k=g.length;p<k;++p){if(d=g[p],d.k==(Vn(),_c)){Fn(A.c,d);continue}for(i=n.b[d.c.p][d.p],d.k==Zt?(i.b=1,u(v(d,(W(),st)),12).j==(en(),Zn)&&(D+=i.a)):(kn=uc(d,(en(),Wn)),kn.dc()||!yN(kn,new Zpn)?i.c=1:(r=uc(d,Zn),(r.dc()||!yN(r,new Ypn))&&(_+=i.a))),s=new ie(ce(Qt(d).a.Kc(),new En));pe(s);)c=u(fe(s),18),_+=i.c,D+=i.b,yn=c.d.i,JJ(n,i,yn);for(P=Eo(S(C(Ao,1),Kn,20,0,[uc(d,(en(),Xn)),uc(d,ae)])),tn=new ie(new qX(P.a.length,P.a));pe(tn);)X=u(fe(tn),12),O=u(v(X,(W(),Xu)),10),O&&(_+=i.c,D+=i.b,JJ(n,i,O))}for(m=new M(A);m.a<m.c.c.length;)for(d=u(E(m),10),i=n.b[d.c.p][d.p],s=new ie(ce(Qt(d).a.Kc(),new En));pe(s);)c=u(fe(s),18),_+=i.c,D+=i.b,yn=c.d.i,JJ(n,i,yn);A.c.length=0}return e=_+D,j=e==0?Pt:(_-D)/e,j>=t}function dNe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn,Bn,te;for(A=e,O=new Mb,D=new Mb,a=Sb(A,Scn),i=new OOn(n,t,O,D),Nje(i.a,i.b,i.c,i.d,a),h=(tn=O.i,tn||(O.i=new Tg(O,O.c))),kn=h.Kc();kn.Ob();)for(yn=u(kn.Pb(),166),r=u(ot(O,yn),21),k=r.Kc();k.Ob();)if(m=k.Pb(),_=u(Ng(n.d,m),166),_)f=(!yn.e&&(yn.e=new Dn(Tt,yn,10,9)),yn.e),ve(f,_);else throw s=bl(A,Eh),g=kWn+m+yWn+s,p=g+iv,T(new eh(p));for(l=(X=D.i,X||(D.i=new Tg(D,D.c))),Bn=l.Kc();Bn.Ob();)for(Rn=u(Bn.Pb(),166),c=u(ot(D,Rn),21),P=c.Kc();P.Ob();)if(j=P.Pb(),_=u(Ng(n.d,j),166),_)d=(!Rn.g&&(Rn.g=new Dn(Tt,Rn,9,10)),Rn.g),ve(d,_);else throw s=bl(A,Eh),g=kWn+j+yWn+s,p=g+iv,T(new eh(p));!t.b&&(t.b=new Dn(he,t,4,7)),t.b.i!=0&&(!t.c&&(t.c=new Dn(he,t,5,8)),t.c.i!=0)&&(!t.b&&(t.b=new Dn(he,t,4,7)),t.b.i<=1&&(!t.c&&(t.c=new Dn(he,t,5,8)),t.c.i<=1))&&(!t.a&&(t.a=new q(Tt,t,6,6)),t.a).i==1&&(te=u(N((!t.a&&(t.a=new q(Tt,t,6,6)),t.a),0),166),!Px(te)&&!Ix(te)&&(mC(te,u(N((!t.b&&(t.b=new Dn(he,t,4,7)),t.b),0),84)),vC(te,u(N((!t.c&&(t.c=new Dn(he,t,5,8)),t.c),0),84))))}function bNe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn;for(A=n.a,D=0,_=A.length;D<_;++D){for(O=A[D],l=et,a=et,m=new M(O.e);m.a<m.c.c.length;)g=u(E(m),10),s=g.c?qr(g.c.a,g,0):-1,s>0?(d=u(sn(g.c.a,s-1),10),yn=jg(n.b,g,d),j=g.n.b-g.d.d-(d.n.b+d.o.b+d.d.a+yn)):j=g.n.b-g.d.d,l=y.Math.min(j,l),s<g.c.a.c.length-1?(d=u(sn(g.c.a,s+1),10),yn=jg(n.b,g,d),P=d.n.b-d.d.d-(g.n.b+g.o.b+g.d.a+yn)):P=2*g.n.b,a=y.Math.min(P,a);for(h=et,c=!1,r=u(sn(O.e,0),10),Rn=new M(r.j);Rn.a<Rn.c.c.length;)for(kn=u(E(Rn),12),k=r.n.b+kn.n.b+kn.a.b,i=new M(kn.e);i.a<i.c.c.length;)t=u(E(i),18),X=t.c,e=X.i.n.b+X.n.b+X.a.b-k,y.Math.abs(e)<y.Math.abs(h)&&y.Math.abs(e)<(e<0?l:a)&&(h=e,c=!0);for(f=u(sn(O.e,O.e.c.length-1),10),tn=new M(f.j);tn.a<tn.c.c.length;)for(X=u(E(tn),12),k=f.n.b+X.n.b+X.a.b,i=new M(X.g);i.a<i.c.c.length;)t=u(E(i),18),kn=t.d,e=kn.i.n.b+kn.n.b+kn.a.b-k,y.Math.abs(e)<y.Math.abs(h)&&y.Math.abs(e)<(e<0?l:a)&&(h=e,c=!0);if(c&&h!=0)for(p=new M(O.e);p.a<p.c.c.length;)g=u(E(p),10),g.n.b+=h}}function wNe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P;if(i=new Z,r=et,c=et,s=et,t)for(r=n.f.a,k=new M(e.j);k.a<k.c.c.length;)for(m=u(E(k),12),h=new M(m.g);h.a<h.c.c.length;)f=u(E(h),18),f.a.b!=0&&(a=u(p4(f.a),8),a.a<r&&(c=r-a.a,s=et,i.c.length=0,r=a.a),a.a<=r&&(Fn(i.c,f),f.a.b>1&&(s=y.Math.min(s,y.Math.abs(u(Zo(f.a,1),8).b-a.b)))));else for(k=new M(e.j);k.a<k.c.c.length;)for(m=u(E(k),12),h=new M(m.e);h.a<h.c.c.length;)f=u(E(h),18),f.a.b!=0&&(g=u($s(f.a),8),g.a>r&&(c=g.a-r,s=et,i.c.length=0,r=g.a),g.a>=r&&(Fn(i.c,f),f.a.b>1&&(s=y.Math.min(s,y.Math.abs(u(Zo(f.a,f.a.b-2),8).b-g.b)))));if(i.c.length!=0&&c>e.o.a/2&&s>e.o.b/2){for(p=new Ic,ic(p,e),gi(p,(en(),Xn)),p.n.a=e.o.a/2,P=new Ic,ic(P,e),gi(P,ae),P.n.a=e.o.a/2,P.n.b=e.o.b,h=new M(i);h.a<h.c.c.length;)f=u(E(h),18),t?(l=u(UN(f.a),8),j=f.a.b==0?Of(f.d):u(p4(f.a),8),j.b>=l.b?Zi(f,P):Zi(f,p)):(l=u(c0e(f.a),8),j=f.a.b==0?Of(f.c):u($s(f.a),8),j.b>=l.b?Oi(f,P):Oi(f,p)),d=u(v(f,(cn(),Rr)),75),d&&iw(d,l,!0);e.n.a=r-e.o.a/2}}function gNe(n,e,t){var i,r,c,s,f,h,l,a,d,g;for(f=ge(n.b,0);f.b!=f.d.c;)if(s=u(be(f),40),!Sn(s.c,OP))for(l=_Me(s,n),e==(ci(),Kr)||e==Xr?Yt(l,new T4n):Yt(l,new C4n),h=l.c.length,i=0;i<h;i++)a=(Nn(i,l.c.length),u(l.c[i],65)).c,Sn(a.c,"n11"),!(on(un(v(s,(pt(),pln))))&&!TRn((Nn(i,l.c.length),u(l.c[i],65)),n))&&(r=h==1?.5:(i+1)/(h+1),e==Kr?(c=$(B(v(s,jf))),g=s.e.b+s.f.b*r,gg((Nn(i,l.c.length),u(l.c[i],65)).a,new V(y.Math.min(c,s.e.a-t),g)),gg((Nn(i,l.c.length),u(l.c[i],65)).a,new V(s.e.a,g))):e==Xr?(c=$(B(v(s,Js)))+t,g=s.e.b+s.f.b*r,gg((Nn(i,l.c.length),u(l.c[i],65)).a,new V(c,g)),gg((Nn(i,l.c.length),u(l.c[i],65)).a,new V(s.e.a+s.f.a,g))):e==us?(c=$(B(v(s,jf))),d=s.e.a+s.f.a*r,gg((Nn(i,l.c.length),u(l.c[i],65)).a,new V(d,y.Math.min(s.e.b-t,c))),gg((Nn(i,l.c.length),u(l.c[i],65)).a,new V(d,s.e.b))):(c=$(B(v(s,Js)))+t,d=s.e.a+s.f.a*r,gg((Nn(i,l.c.length),u(l.c[i],65)).a,new V(d,c)),gg((Nn(i,l.c.length),u(l.c[i],65)).a,new V(d,s.e.b+s.f.b))))}function my(n,e,t,i,r,c,s,f,h){var l,a,d,g,p,m,k;switch(p=t,a=new Cl(h),Ha(a,(Vn(),Zt)),U(a,(W(),tfn),s),U(a,(cn(),Ft),(Ai(),qc)),k=$(B(n.of(Fw))),U(a,Fw,k),d=new Ic,ic(d,a),e!=Qf&&e!=Ia||(i>=0?p=zp(f):p=xk(zp(f)),n.qf(Tv,p)),l=new Ni,g=!1,n.pf(b0)?(YX(l,u(n.of(b0),8)),g=!0):C1e(l,s.a/2,s.b/2),p.g){case 4:U(a,ou,(Yo(),ya)),U(a,rO,(hd(),m2)),a.o.b=s.b,k<0&&(a.o.a=-k),gi(d,(en(),Zn)),g||(l.a=s.a),l.a-=s.a;break;case 2:U(a,ou,(Yo(),xw)),U(a,rO,(hd(),mv)),a.o.b=s.b,k<0&&(a.o.a=-k),gi(d,(en(),Wn)),g||(l.a=0);break;case 1:U(a,Ad,(vl(),k2)),a.o.a=s.a,k<0&&(a.o.b=-k),gi(d,(en(),ae)),g||(l.b=s.b),l.b-=s.b;break;case 3:U(a,Ad,(vl(),E3)),a.o.a=s.a,k<0&&(a.o.b=-k),gi(d,(en(),Xn)),g||(l.b=0)}if(YX(d.n,l),U(a,b0,l),e==Ud||e==tl||e==qc){if(m=0,e==Ud&&n.pf(v1))switch(p.g){case 1:case 2:m=u(n.of(v1),17).a;break;case 3:case 4:m=-u(n.of(v1),17).a}else switch(p.g){case 4:case 2:m=c.b,e==tl&&(m/=r.b);break;case 1:case 3:m=c.a,e==tl&&(m/=r.a)}U(a,f0,m)}return U(a,gc,p),a}function pNe(){Ez();function n(i){var r=this;this.dispatch=function(c){var s=c.data;switch(s.cmd){case"algorithms":var f=UY((Ln(),new Q3(new ol(La.b))));i.postMessage({id:s.id,data:f});break;case"categories":var h=UY((Ln(),new Q3(new ol(La.c))));i.postMessage({id:s.id,data:h});break;case"options":var l=UY((Ln(),new Q3(new ol(La.d))));i.postMessage({id:s.id,data:l});break;case"register":kAe(s.algorithms),i.postMessage({id:s.id});break;case"layout":WIe(s.graph,s.layoutOptions||{},s.options||{}),i.postMessage({id:s.id,data:s.graph});break}},this.saveDispatch=function(c){try{r.dispatch(c)}catch(s){i.postMessage({id:c.data.id,error:s})}}}function e(i){var r=this;this.dispatcher=new n({postMessage:function(c){r.onmessage({data:c})}}),this.postMessage=function(c){setTimeout(function(){r.dispatcher.saveDispatch({data:c})},0)}}if(typeof document===xK&&typeof self!==xK){var t=new n(self);self.onmessage=t.saveDispatch}else typeof gt!==xK&>.exports&&(Object.defineProperty(Pr,"__esModule",{value:!0}),gt.exports={default:e,Worker:e})}function szn(n,e,t){var i,r,c,s,f,h,l,a,d,g;for(a=new Cl(t),Ur(a,e),U(a,(W(),st),e),a.o.a=e.g,a.o.b=e.f,a.n.a=e.i,a.n.b=e.j,nn(t.a,a),Ve(n.a,e,a),((!e.a&&(e.a=new q(Ye,e,10,11)),e.a).i!=0||on(un(z(e,(cn(),Bw)))))&&U(a,Zsn,(_n(),!0)),l=u(v(t,Hc),21),d=u(v(a,(cn(),Ft)),101),d==(Ai(),Ia)?U(a,Ft,Qf):d!=Qf&&l.Fc((pr(),yv)),g=0,i=u(v(t,Lo),88),h=new ne((!e.c&&(e.c=new q(Qu,e,9,9)),e.c));h.e!=h.i.gc();)f=u(ue(h),123),r=St(e),(x(z(r,Yh))!==x((lh(),k1))||x(z(r,Nd))===x((o1(),pv))||x(z(r,Nd))===x((o1(),gv))||on(un(z(r,l0)))||x(z(r,Rw))!==x((dd(),Aw))||x(z(r,ja))===x((ps(),p0))||x(z(r,ja))===x((ps(),Uw))||x(z(r,$d))===x((a1(),Iv))||x(z(r,$d))===x((a1(),Ov)))&&!on(un(z(e,lO)))&&ht(f,dt,Y(g++)),on(un(z(f,Rd)))||SLe(n,f,a,l,i,d);for(s=new ne((!e.n&&(e.n=new q(Sr,e,1,7)),e.n));s.e!=s.i.gc();)c=u(ue(s),135),!on(un(z(c,Rd)))&&c.a&&nn(a.b,ex(c));return on(un(v(a,q8)))&&l.Fc((pr(),ZI)),on(un(v(a,wO)))&&(l.Fc((pr(),nO)),l.Fc(R8),U(a,Ft,Qf)),a}function QR(n,e,t,i,r,c,s){var f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn,Bn,te,xe,Nt;for(k=0,Rn=0,l=new M(n.b);l.a<l.c.c.length;)h=u(E(l),163),h.c&&RGn(h.c),k=y.Math.max(k,Pu(h)),Rn+=Pu(h)*ao(h);for(j=Rn/n.b.c.length,kn=mke(n.b,j),Rn+=n.b.c.length*kn,k=y.Math.max(k,y.Math.sqrt(Rn*s))+t.b,xe=t.b,Nt=t.d,p=0,d=t.b+t.c,yn=new Mt,Re(yn,Y(0)),X=new Mt,a=new xi(n.b,0),m=null,f=new Z;a.b<a.d.gc();)h=(oe(a.b<a.d.gc()),u(a.d.Xb(a.c=a.b++),163)),te=Pu(h),g=ao(h),xe+te>k&&(c&&(ir(X,p),ir(yn,Y(a.b-1)),nn(n.d,m),f.c.length=0),xe=t.b,Nt+=p+e,p=0,d=y.Math.max(d,t.b+t.c+te)),Fn(f.c,h),dBn(h,xe,Nt),d=y.Math.max(d,xe+te+t.c),p=y.Math.max(p,g),xe+=te+e,m=h;if(hi(n.a,f),nn(n.d,u(sn(f,f.c.length-1),163)),d=y.Math.max(d,i),Bn=Nt+p+t.a,Bn<r&&(p+=r-Bn,Bn=r),c)for(xe=t.b,a=new xi(n.b,0),ir(yn,Y(n.b.c.length)),tn=ge(yn,0),O=u(be(tn),17).a,ir(X,p),_=ge(X,0),D=0;a.b<a.d.gc();)a.b==O&&(xe=t.b,D=$(B(be(_))),O=u(be(tn),17).a),h=(oe(a.b<a.d.gc()),u(a.d.Xb(a.c=a.b++),163)),GKn(h,D),a.b==O&&(P=d-xe-t.c,A=Pu(h),zKn(h,P),mKn(h,(P-A)/2,0)),xe+=Pu(h)+e;return new V(d,Bn)}function mNe(n){n.N||(n.N=!0,n.b=hc(n,0),Rt(n.b,0),Rt(n.b,1),Rt(n.b,2),n.bb=hc(n,1),Rt(n.bb,0),Rt(n.bb,1),n.fb=hc(n,2),Rt(n.fb,3),Rt(n.fb,4),jt(n.fb,5),n.qb=hc(n,3),Rt(n.qb,0),jt(n.qb,1),jt(n.qb,2),Rt(n.qb,3),Rt(n.qb,4),jt(n.qb,5),Rt(n.qb,6),n.a=Je(n,4),n.c=Je(n,5),n.d=Je(n,6),n.e=Je(n,7),n.f=Je(n,8),n.g=Je(n,9),n.i=Je(n,10),n.j=Je(n,11),n.k=Je(n,12),n.n=Je(n,13),n.o=Je(n,14),n.p=Je(n,15),n.q=Je(n,16),n.s=Je(n,17),n.r=Je(n,18),n.t=Je(n,19),n.u=Je(n,20),n.v=Je(n,21),n.w=Je(n,22),n.B=Je(n,23),n.A=Je(n,24),n.C=Je(n,25),n.D=Je(n,26),n.F=Je(n,27),n.G=Je(n,28),n.H=Je(n,29),n.J=Je(n,30),n.I=Je(n,31),n.K=Je(n,32),n.M=Je(n,33),n.L=Je(n,34),n.P=Je(n,35),n.Q=Je(n,36),n.R=Je(n,37),n.S=Je(n,38),n.T=Je(n,39),n.U=Je(n,40),n.V=Je(n,41),n.X=Je(n,42),n.W=Je(n,43),n.Y=Je(n,44),n.Z=Je(n,45),n.$=Je(n,46),n._=Je(n,47),n.ab=Je(n,48),n.cb=Je(n,49),n.db=Je(n,50),n.eb=Je(n,51),n.gb=Je(n,52),n.hb=Je(n,53),n.ib=Je(n,54),n.jb=Je(n,55),n.kb=Je(n,56),n.lb=Je(n,57),n.mb=Je(n,58),n.nb=Je(n,59),n.ob=Je(n,60),n.pb=Je(n,61))}function vNe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D;if(O=0,e.f.a==0)for(j=new M(n);j.a<j.c.c.length;)m=u(E(j),10),O=y.Math.max(O,m.n.a+m.o.a+m.d.c);else O=e.f.a-e.c.a;for(O-=e.c.a,k=new M(n);k.a<k.c.c.length;){switch(m=u(E(k),10),Jv(m.n,O-m.o.a),WV(m.f),UBn(m),(m.q?m.q:(Ln(),Ln(),Wh))._b((cn(),Hw))&&Jv(u(v(m,Hw),8),O-m.o.a),u(v(m,Ch),255).g){case 1:U(m,Ch,(Bh(),Uj));break;case 2:U(m,Ch,(Bh(),qj))}for(P=m.o,D=new M(m.j);D.a<D.c.c.length;){for(A=u(E(D),12),Jv(A.n,P.a-A.o.a),Jv(A.a,A.o.a),gi(A,Cxn(A.j)),s=u(v(A,v1),17),s&&U(A,v1,Y(-s.a)),c=new M(A.g);c.a<c.c.c.length;){for(r=u(E(c),18),i=ge(r.a,0);i.b!=i.d.c;)t=u(be(i),8),t.a=O-t.a;if(l=u(v(r,Rr),75),l)for(h=ge(l,0);h.b!=h.d.c;)f=u(be(h),8),f.a=O-f.a;for(g=new M(r.b);g.a<g.c.c.length;)a=u(E(g),72),Jv(a.n,O-a.o.a)}for(p=new M(A.f);p.a<p.c.c.length;)a=u(E(p),72),Jv(a.n,A.o.a-a.o.a)}for(m.k==(Vn(),Zt)&&(U(m,(W(),gc),Cxn(u(v(m,gc),64))),uje(m)),d=new M(m.b);d.a<d.c.c.length;)a=u(E(d),72),UBn(a),Jv(a.n,P.a-a.o.a)}}function kNe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D;if(O=0,e.f.b==0)for(j=new M(n);j.a<j.c.c.length;)m=u(E(j),10),O=y.Math.max(O,m.n.b+m.o.b+m.d.a);else O=e.f.b-e.c.b;for(O-=e.c.b,k=new M(n);k.a<k.c.c.length;){switch(m=u(E(k),10),Wv(m.n,O-m.o.b),JV(m.f),GBn(m),(m.q?m.q:(Ln(),Ln(),Wh))._b((cn(),Hw))&&Wv(u(v(m,Hw),8),O-m.o.b),u(v(m,Ch),255).g){case 3:U(m,Ch,(Bh(),ZO));break;case 4:U(m,Ch,(Bh(),eA))}for(P=m.o,D=new M(m.j);D.a<D.c.c.length;){for(A=u(E(D),12),Wv(A.n,P.b-A.o.b),Wv(A.a,A.o.b),gi(A,Sxn(A.j)),s=u(v(A,v1),17),s&&U(A,v1,Y(-s.a)),c=new M(A.g);c.a<c.c.c.length;){for(r=u(E(c),18),i=ge(r.a,0);i.b!=i.d.c;)t=u(be(i),8),t.b=O-t.b;if(l=u(v(r,Rr),75),l)for(h=ge(l,0);h.b!=h.d.c;)f=u(be(h),8),f.b=O-f.b;for(g=new M(r.b);g.a<g.c.c.length;)a=u(E(g),72),Wv(a.n,O-a.o.b)}for(p=new M(A.f);p.a<p.c.c.length;)a=u(E(p),72),Wv(a.n,A.o.b-a.o.b)}for(m.k==(Vn(),Zt)&&(U(m,(W(),gc),Sxn(u(v(m,gc),64))),y5e(m)),d=new M(m.b);d.a<d.c.c.length;)a=u(E(d),72),GBn(a),Wv(a.n,P.b-a.o.b)}}function yNe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn,Bn,te,xe;for(O=new xi(n.b,0),a=e.Kc(),m=0,l=u(a.Pb(),17).a,_=0,t=new ni,tn=new rh;O.b<O.d.gc();){for(P=(oe(O.b<O.d.gc()),u(O.d.Xb(O.c=O.b++),30)),D=new M(P.a);D.a<D.c.c.length;){for(A=u(E(D),10),p=new ie(ce(Qt(A).a.Kc(),new En));pe(p);)d=u(fe(p),18),tn.a.zc(d,tn);for(g=new ie(ce(ji(A).a.Kc(),new En));pe(g);)d=u(fe(g),18),tn.a.Bc(d)!=null}if(m+1==l){for(r=new Nc(n),B0(O,r),c=new Nc(n),B0(O,c),kn=tn.a.ec().Kc();kn.Ob();)yn=u(kn.Pb(),18),t.a._b(yn)||(++_,t.a.zc(yn,t)),s=new Cl(n),U(s,(cn(),Ft),(Ai(),Fv)),$i(s,r),Ha(s,(Vn(),Gf)),k=new Ic,ic(k,s),gi(k,(en(),Wn)),Rn=new Ic,ic(Rn,s),gi(Rn,Zn),i=new Cl(n),U(i,Ft,Fv),$i(i,c),Ha(i,Gf),j=new Ic,ic(j,i),gi(j,Wn),Bn=new Ic,ic(Bn,i),gi(Bn,Zn),X=new Eb,Zi(X,yn.c),Oi(X,k),U(X,(W(),dt),u(v(yn,dt),17)),xe=new Eb,Zi(xe,Rn),Oi(xe,j),U(xe,dt,u(v(yn,dt),17)),Zi(yn,Bn),f=new jJ(s,i,X,xe,yn),U(s,o0,f),U(i,o0,f),te=X.c.i,te.k==Gf&&(h=u(v(te,o0),313),h.d=f,f.g=h);if(a.Ob())l=u(a.Pb(),17).a;else break}++m}return Y(_)}function jNe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j;for(k=new Z,g=new M(n.d.b);g.a<g.c.c.length;)for(d=u(E(g),30),m=new M(d.a);m.a<m.c.c.length;){for(p=u(E(m),10),r=u(ee(n.f,p),60),h=new ie(ce(Qt(p).a.Kc(),new En));pe(h);)if(s=u(fe(h),18),i=ge(s.a,0),l=!0,a=null,i.b!=i.d.c){for(e=u(be(i),8),t=null,s.c.j==(en(),Xn)&&(j=new q5(e,new V(e.a,r.d.d),r,s),j.f.a=!0,j.a=s.c,Fn(k.c,j)),s.c.j==ae&&(j=new q5(e,new V(e.a,r.d.d+r.d.a),r,s),j.f.d=!0,j.a=s.c,Fn(k.c,j));i.b!=i.d.c;)t=u(be(i),8),lQ(e.b,t.b)||(a=new q5(e,t,null,s),Fn(k.c,a),l&&(l=!1,t.b<r.d.d?a.f.a=!0:t.b>r.d.d+r.d.a?a.f.d=!0:(a.f.d=!0,a.f.a=!0))),i.b!=i.d.c&&(e=t);a&&(c=u(ee(n.f,s.d.i),60),e.b<c.d.d?a.f.a=!0:e.b>c.d.d+c.d.a?a.f.d=!0:(a.f.d=!0,a.f.a=!0))}for(f=new ie(ce(ji(p).a.Kc(),new En));pe(f);)s=u(fe(f),18),s.a.b!=0&&(e=u($s(s.a),8),s.d.j==(en(),Xn)&&(j=new q5(e,new V(e.a,r.d.d),r,s),j.f.a=!0,j.a=s.d,Fn(k.c,j)),s.d.j==ae&&(j=new q5(e,new V(e.a,r.d.d+r.d.a),r,s),j.f.d=!0,j.a=s.d,Fn(k.c,j)))}return k}function ENe(n,e,t){var i,r,c,s,f,h,l,a,d,g;for(h=new Z,d=e.length,s=eY(t),l=0;l<d;++l){switch(a=UX(e,wu(61),l),i=v5e(s,(Ri(l,a,e.length),e.substr(l,a-l))),r=x$(i),c=r.jk().wi(),Xi(e,++a)){case 39:{f=w4(e,39,++a),nn(h,new TM(i,jD((Ri(a,f,e.length),e.substr(a,f-a)),c,r))),l=f+1;break}case 34:{f=w4(e,34,++a),nn(h,new TM(i,jD((Ri(a,f,e.length),e.substr(a,f-a)),c,r))),l=f+1;break}case 91:{g=new Z,nn(h,new TM(i,g));n:for(;;){switch(Xi(e,++a)){case 39:{f=w4(e,39,++a),nn(g,jD((Ri(a,f,e.length),e.substr(a,f-a)),c,r)),a=f+1;break}case 34:{f=w4(e,34,++a),nn(g,jD((Ri(a,f,e.length),e.substr(a,f-a)),c,r)),a=f+1;break}case 110:{if(++a,e.indexOf("ull",a)==a)g.c.push(null);else throw T(new ec(lWn));a+=3;break}}if(a<d)switch(zn(a,e.length),e.charCodeAt(a)){case 44:break;case 93:break n;default:throw T(new ec("Expecting , or ]"))}else break}l=a+1;break}case 110:{if(++a,e.indexOf("ull",a)==a)nn(h,new TM(i,null));else throw T(new ec(lWn));l=a+3;break}}if(l<d){if(zn(l,e.length),e.charCodeAt(l)!=44)throw T(new ec("Expecting ,"))}else break}return uSe(n,h,t)}function MNe(n){var e,t,i,r,c;switch(e=n.c,c=null,e){case 6:return n.Em();case 13:return n.Fm();case 23:return n.wm();case 22:return n.Bm();case 18:return n.ym();case 8:Ze(n),c=(nt(),abn);break;case 9:return n.em(!0);case 19:return n.fm();case 10:switch(n.a){case 100:case 68:case 119:case 87:case 115:case 83:return c=n.dm(n.a),Ze(n),c;case 101:case 102:case 110:case 114:case 116:case 117:case 118:case 120:t=n.cm(),t<hr?c=(nt(),nt(),new Dh(0,t)):c=jIn(DY(t));break;case 99:return n.om();case 67:return n.jm();case 105:return n.rm();case 73:return n.km();case 103:return n.pm();case 88:return n.lm();case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return n.gm();case 80:case 112:if(c=Dnn(n,n.a),!c)throw T(new Ne($e((Oe(),EF))));break;default:c=$Pn(n.a)}Ze(n);break;case 0:if(n.a==93||n.a==123||n.a==125)throw T(new Ne($e((Oe(),xcn))));c=$Pn(n.a),i=n.a,Ze(n),(i&64512)==Py&&n.c==0&&(n.a&64512)==56320&&(r=F(fs,gh,28,2,15,1),r[0]=i&ui,r[1]=n.a&ui,c=rD(jIn(ws(r,0,r.length)),0),Ze(n));break;default:throw T(new Ne($e((Oe(),xcn))))}return c}function TNe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn,Bn;for(kn=new Mt,X=new Mt,j=-1,h=new M(n);h.a<h.c.c.length;){for(s=u(E(h),131),s.s=j--,a=0,A=0,c=new M(s.t);c.a<c.c.c.length;)i=u(E(c),274),A+=i.c;for(r=new M(s.i);r.a<r.c.c.length;)i=u(E(r),274),a+=i.c;s.n=a,s.u=A,A==0?xt(X,s,X.c.b,X.c):a==0&&xt(kn,s,kn.c.b,kn.c)}for(Bn=HT(n),d=n.c.length,k=d+1,P=d-1,p=new Z;Bn.a.gc()!=0;){for(;X.b!=0;)_=(oe(X.b!=0),u(Xo(X,X.a.a),131)),Bn.a.Bc(_)!=null,_.s=P--,Znn(_,kn,X);for(;kn.b!=0;)tn=(oe(kn.b!=0),u(Xo(kn,kn.a.a),131)),Bn.a.Bc(tn)!=null,tn.s=k++,Znn(tn,kn,X);for(m=Wi,l=Bn.a.ec().Kc();l.Ob();)s=u(l.Pb(),131),O=s.u-s.n,O>=m&&(O>m&&(p.c.length=0,m=O),Fn(p.c,s));p.c.length!=0&&(g=u(sn(p,cS(e,p.c.length)),131),Bn.a.Bc(g)!=null,g.s=k++,Znn(g,kn,X),p.c.length=0)}for(D=n.c.length+1,f=new M(n);f.a<f.c.c.length;)s=u(E(f),131),s.s<d&&(s.s+=D);for(yn=new M(n);yn.a<yn.c.c.length;)for(tn=u(E(yn),131),t=new xi(tn.t,0);t.b<t.d.gc();)i=(oe(t.b<t.d.gc()),u(t.d.Xb(t.c=t.b++),274)),Rn=i.b,tn.s>Rn.s&&(bo(t),du(Rn.i,i),i.c>0&&(i.a=Rn,nn(Rn.t,i),i.b=tn,nn(tn.i,i)))}function fzn(n,e,t,i,r){var c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn,Bn;for(k=new Gc(e.b),D=new Gc(e.b),g=new Gc(e.b),yn=new Gc(e.b),j=new Gc(e.b),tn=ge(e,0);tn.b!=tn.d.c;)for(_=u(be(tn),12),f=new M(_.g);f.a<f.c.c.length;)if(c=u(E(f),18),c.c.i==c.d.i){if(_.j==c.d.j){Fn(yn.c,c);continue}else if(_.j==(en(),Xn)&&c.d.j==ae){Fn(j.c,c);continue}}for(h=new M(j);h.a<h.c.c.length;)c=u(E(h),18),QPe(n,c,t,i,(en(),Zn));for(s=new M(yn);s.a<s.c.c.length;)c=u(E(s),18),kn=new Cl(n),Ha(kn,(Vn(),_c)),U(kn,(cn(),Ft),(Ai(),qc)),U(kn,(W(),st),c),Rn=new Ic,U(Rn,st,c.d),gi(Rn,(en(),Wn)),ic(Rn,kn),Bn=new Ic,U(Bn,st,c.c),gi(Bn,Zn),ic(Bn,kn),U(c.c,Xu,kn),U(c.d,Xu,kn),Zi(c,null),Oi(c,null),Fn(t.c,kn),U(kn,iO,Y(2));for(X=ge(e,0);X.b!=X.d.c;)_=u(be(X),12),l=_.e.c.length>0,P=_.g.c.length>0,l&&P?Fn(g.c,_):l?Fn(k.c,_):P&&Fn(D.c,_);for(m=new M(k);m.a<m.c.c.length;)p=u(E(m),12),nn(r,Hen(n,p,null,t));for(A=new M(D);A.a<A.c.c.length;)O=u(E(A),12),nn(r,Hen(n,null,O,t));for(d=new M(g);d.a<d.c.c.length;)a=u(E(d),12),nn(r,Hen(n,a,a,t))}function utn(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A;for(g=Pt,p=Pt,a=0,d=0,h=new Z,f=new ne((!n.b&&(n.b=new q(Vt,n,12,3)),n.b));f.e!=f.i.gc();)c=u(ue(f),74),h=Eo(S(C(Ao,1),Kn,20,0,[h,(!c.n&&(c.n=new q(Sr,c,1,7)),c.n)]));for(A=$h(Eo(S(C(Ao,1),Kn,20,0,[(!n.n&&(n.n=new q(Sr,n,1,7)),n.n),(!n.a&&(n.a=new q(Ye,n,10,11)),n.a),h])));pe(A);)O=u(fe(A),422),l=u(O.of((He(),xv)),140),g>O.nh()-l.b&&(g=O.nh()-l.b),p>O.oh()-l.d&&(p=O.oh()-l.d),a<O.nh()+O.mh()+l.c&&(a=O.nh()+O.mh()+l.c),d<O.oh()+O.lh()+l.a&&(d=O.oh()+O.lh()+l.a);for(s=new ne((!n.b&&(n.b=new q(Vt,n,12,3)),n.b));s.e!=s.i.gc();)for(c=u(ue(s),74),P=new ne((!c.a&&(c.a=new q(Tt,c,6,6)),c.a));P.e!=P.i.gc();)for(j=u(ue(P),166),m=j.j,i=j.b,k=j.k,r=j.c,g=y.Math.min(g,m),g=y.Math.min(g,i),a=y.Math.max(a,m),a=y.Math.max(a,i),p=y.Math.min(p,k),p=y.Math.min(p,r),d=y.Math.max(d,k),d=y.Math.max(d,r),t=new ne((!j.a&&(j.a=new ti(xo,j,5)),j.a));t.e!=t.i.gc();)e=u(ue(t),377),g=y.Math.min(g,e.a),a=y.Math.max(a,e.a),p=y.Math.min(p,e.b),d=y.Math.max(d,e.b);ht(n,(He(),K2),a-g),ht(n,R2,d-p)}function CNe(n,e,t){var i,r,c,s,f,h,l,a,d;if(t.Ug("Network simplex node placement",1),n.e=e,n.n=u(v(e,(W(),E2)),312),BOe(n),iye(n),qt(rc(new Cn(null,new On(n.e.b,16)),new u3n),new nkn(n)),qt(ut(rc(ut(rc(new Cn(null,new On(n.e.b,16)),new v3n),new k3n),new y3n),new j3n),new Z7n(n)),on(un(v(n.e,(cn(),G8))))&&(s=t.eh(1),s.Ug("Straight Edges Pre-Processing",1),oLe(n),s.Vg()),K9e(n.f),c=u(v(e,V8),17).a*n.f.a.c.length,IR(pz(mz(KN(n.f),c),!1),t.eh(1)),n.d.a.gc()!=0){for(s=t.eh(1),s.Ug("Flexible Where Space Processing",1),f=u(ho(Sp(_r(new Cn(null,new On(n.f.a,16)),new o3n),new n3n)),17).a,h=u(ho(_0(_r(new Cn(null,new On(n.f.a,16)),new s3n),new e3n)),17).a,l=h-f,a=hb(new za,n.f),d=hb(new za,n.f),qs(Ns(Ls(As(Ds(new hs,2e4),l),a),d)),qt(ut(ut(EW(n.i),new f3n),new h3n),new MOn(f,a,l,d)),r=n.d.a.ec().Kc();r.Ob();)i=u(r.Pb(),218),i.g=1;IR(pz(mz(KN(n.f),c),!1),s.eh(1)),s.Vg()}on(un(v(e,G8)))&&(s=t.eh(1),s.Ug("Straight Edges Post-Processing",1),Vje(n),s.Vg()),UAe(n),n.e=null,n.f=null,n.i=null,n.c=null,Hu(n.k),n.j=null,n.a=null,n.o=null,n.d.a.$b(),t.Vg()}function SNe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A;for(t.Ug("Depth first model order layering",1),n.d=e,j=new Z,k=new M(n.d.a);k.a<k.c.c.length;)p=u(E(k),10),p.k==(Vn(),zt)&&Fn(j.c,p);for(Ln(),Yt(j,new zpn),s=!0,n.b=new Nc(n.d),n.a=null,nn(n.d.b,n.b),n.b.p=0,n.c=0,n.f=new Mt,m=new M(j);m.a<m.c.c.length;)if(p=u(E(m),10),s)$i(p,n.b),s=!1;else if(_Ie(n,p))if(g=n.c,g=mBn(g,p),i=g+2,a=g-n.c,n.f.b==0)den(n,i,p);else if(a>0){for(A=ge(n.f,0);A.b!=A.d.c;)O=u(be(A),10),O.p+=g-n.e;mnn(n),vo(n.f),den(n,i,p)}else{for(Re(n.f,p),p.p=i,n.e=y.Math.max(n.e,i),c=new ie(ce(ji(p).a.Kc(),new En));pe(c);)r=u(fe(c),18),!r.c.i.c&&r.c.i.k==(Vn(),Sc)&&(Re(n.f,r.c.i),r.c.i.p=i-1);n.c=i}else mnn(n),vo(n.f),i=0,pe(new ie(ce(ji(p).a.Kc(),new En)))?(g=0,g=mBn(g,p),i=g+2,den(n,i,p)):(Re(n.f,p),p.p=0,n.e=y.Math.max(n.e,0),n.b=u(sn(n.d.b,0),30),n.c=0);for(n.f.b==0||mnn(n),n.d.a.c.length=0,P=new Z,l=new M(n.d.b);l.a<l.c.c.length;)f=u(E(l),30),f.a.c.length==0&&Fn(P.c,f);for(IY(n.d.b,P),d=0,h=new M(n.d.b);h.a<h.c.c.length;)f=u(E(h),30),f.p=d,++d;t.Vg()}function PNe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn,Bn,te,xe,Nt,Yu,Br;if(Rn=null,te=e,Bn=GLn(n,$Ln(t),te),X4(Bn,bl(te,Eh)),xe=u(Ng(n.g,Zp(dl(te,lF))),27),g=dl(te,"sourcePort"),i=null,g&&(i=Zp(g)),Nt=u(Ng(n.j,i),123),!xe)throw f=wm(te),m="An edge must have a source node (edge id: '"+f,k=m+iv,T(new eh(k));if(Nt&&!sh(Pf(Nt),xe))throw h=bl(te,Eh),j="The source port of an edge must be a port of the edge's source node (edge id: '"+h,P=j+iv,T(new eh(P));if(yn=(!Bn.b&&(Bn.b=new Dn(he,Bn,4,7)),Bn.b),c=null,Nt?c=Nt:c=xe,ve(yn,c),Yu=u(Ng(n.g,Zp(dl(te,Dcn))),27),p=dl(te,"targetPort"),r=null,p&&(r=Zp(p)),Br=u(Ng(n.j,r),123),!Yu)throw d=wm(te),O="An edge must have a target node (edge id: '"+d,A=O+iv,T(new eh(A));if(Br&&!sh(Pf(Br),Yu))throw l=bl(te,Eh),D="The target port of an edge must be a port of the edge's target node (edge id: '"+l,_=D+iv,T(new eh(_));if(kn=(!Bn.c&&(Bn.c=new Dn(he,Bn,5,8)),Bn.c),s=null,Br?s=Br:s=Yu,ve(kn,s),(!Bn.b&&(Bn.b=new Dn(he,Bn,4,7)),Bn.b).i==0||(!Bn.c&&(Bn.c=new Dn(he,Bn,5,8)),Bn.c).i==0)throw a=bl(te,Eh),X=vWn+a,tn=X+iv,T(new eh(tn));return gS(te,Bn),ZMe(te,Bn),Rn=_$(n,te,Bn),Rn}function hzn(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn,Bn,te,xe,Nt;for(p=u(v(n,(Q1(),y3)),27),A=et,D=et,P=Wi,O=Wi,X=new M(n.e);X.a<X.c.c.length;)_=u(E(X),153),Bn=_.d,te=_.e,A=y.Math.min(A,Bn.a-te.a/2),D=y.Math.min(D,Bn.b-te.b/2),P=y.Math.max(P,Bn.a+te.a/2),O=y.Math.max(O,Bn.b+te.b/2);for(t=new M(n.b);t.a<t.c.c.length;)e=u(E(t),250),Bn=e.d,te=e.e,A=y.Math.min(A,Bn.a-te.a/2),D=y.Math.min(D,Bn.b-te.b/2),P=y.Math.max(P,Bn.a+te.a/2),O=y.Math.max(O,Bn.b+te.b/2);for(Rn=u(z(p,(Us(),YYn)),107),kn=new V(Rn.b-A,Rn.d-D),l=new M(n.e);l.a<l.c.c.length;)h=u(E(l),153),yn=v(h,y3),L(yn,207)&&(k=u(yn,27),tn=tt(new rr(h.d),kn),Bo(k,tn.a-k.g/2,tn.b-k.f/2));for(c=new M(n.c);c.a<c.c.c.length;)r=u(E(c),290),d=u(v(r,y3),74),g=Xg(d,!0,!0),xe=new rr(pQ(r)),tt(xe,kn),j7(g,xe.a,xe.b),nu(r.a,new SMn(kn,g)),i=new rr(mQ(r)),tt(i,kn),y7(g,i.a,i.b);for(f=new M(n.d);f.a<f.c.c.length;)s=u(E(f),454),m=u(v(s,y3),135),j=tt(new rr(s.d),kn),Bo(m,j.a,j.b);Nt=P-A+(Rn.b+Rn.c),a=O-D+(Rn.d+Rn.a),on(un(z(p,(He(),Vw))))||Gb(p,Nt,a,!1,!0),ht(p,K2,Nt-(Rn.b+Rn.c)),ht(p,R2,a-(Rn.d+Rn.a))}function lzn(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn;return d=mIe(lu(n,(en(),Yf)),e),m=_g(lu(n,ef),e),D=_g(lu(n,Do),e),yn=hS(lu(n,Cs),e),g=hS(lu(n,os),e),O=_g(lu(n,tf),e),k=_g(lu(n,Wu),e),X=_g(lu(n,$o),e),_=_g(lu(n,ss),e),kn=hS(lu(n,su),e),P=_g(lu(n,mu),e),A=_g(lu(n,Ju),e),tn=_g(lu(n,pu),e),Rn=hS(lu(n,vu),e),p=hS(lu(n,xu),e),j=_g(lu(n,Uc),e),t=Lg(S(C(Ii,1),Cr,28,15,[O.a,yn.a,X.a,Rn.a])),i=Lg(S(C(Ii,1),Cr,28,15,[m.a,d.a,D.a,j.a])),r=P.a,c=Lg(S(C(Ii,1),Cr,28,15,[k.a,g.a,_.a,p.a])),l=Lg(S(C(Ii,1),Cr,28,15,[O.b,m.b,k.b,A.b])),h=Lg(S(C(Ii,1),Cr,28,15,[yn.b,d.b,g.b,j.b])),a=kn.b,f=Lg(S(C(Ii,1),Cr,28,15,[X.b,D.b,_.b,tn.b])),Zl(lu(n,Yf),t+r,l+a),Zl(lu(n,Uc),t+r,l+a),Zl(lu(n,ef),t+r,0),Zl(lu(n,Do),t+r,l+a+h),Zl(lu(n,Cs),0,l+a),Zl(lu(n,os),t+r+i,l+a),Zl(lu(n,Wu),t+r+i,0),Zl(lu(n,$o),0,l+a+h),Zl(lu(n,ss),t+r+i,l+a+h),Zl(lu(n,su),0,l),Zl(lu(n,mu),t,0),Zl(lu(n,pu),0,l+a+h),Zl(lu(n,xu),t+r+i,0),s=new Ni,s.a=Lg(S(C(Ii,1),Cr,28,15,[t+i+r+c,kn.a,A.a,tn.a])),s.b=Lg(S(C(Ii,1),Cr,28,15,[l+h+a+f,P.b,Rn.b,p.b])),s}function azn(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn;for(O=new V(Pt,Pt),e=new V(li,li),yn=new M(n);yn.a<yn.c.c.length;)tn=u(E(yn),8),O.a=y.Math.min(O.a,tn.a),O.b=y.Math.min(O.b,tn.b),e.a=y.Math.max(e.a,tn.a),e.b=y.Math.max(e.b,tn.b);for(g=new V(e.a-O.a,e.b-O.b),l=new V(O.a-50,O.b-g.a-50),a=new V(O.a-50,e.b+g.a+50),d=new V(e.a+g.b/2+50,O.b+g.b/2),p=new Fen(l,a,d),X=new ni,c=new Z,t=new Z,X.a.zc(p,X),Rn=new M(n);Rn.a<Rn.c.c.length;){for(kn=u(E(Rn),8),c.c.length=0,_=X.a.ec().Kc();_.Ob();)A=u(_.Pb(),317),i=A.d,J1(i,A.a),xb(J1(A.d,kn),J1(A.d,A.a))<0&&Fn(c.c,A);for(t.c.length=0,D=new M(c);D.a<D.c.c.length;)for(A=u(E(D),317),j=new M(A.e);j.a<j.c.c.length;){for(m=u(E(j),177),s=!0,h=new M(c);h.a<h.c.c.length;)f=u(E(h),317),f!=A&&(mc(m,sn(f.e,0))||mc(m,sn(f.e,1))||mc(m,sn(f.e,2)))&&(s=!1);s&&Fn(t.c,m)}for(_Fn(X,c),qi(X,new Qbn),k=new M(t);k.a<k.c.c.length;)m=u(E(k),177),fi(X,new Fen(kn,m.a,m.b))}for(P=new ni,qi(X,new I9n(P)),r=P.a.ec().Kc();r.Ob();)m=u(r.Pb(),177),(tC(p,m.a)||tC(p,m.b))&&r.Qb();return qi(P,new Ybn),P}function Mc(){Mc=R,iEn(),Moe=Ci.a,u(N(H(Ci.a),0),19),joe=Ci.f,u(N(H(Ci.f),0),19),u(N(H(Ci.f),1),35),Eoe=Ci.n,u(N(H(Ci.n),0),35),u(N(H(Ci.n),1),35),u(N(H(Ci.n),2),35),u(N(H(Ci.n),3),35),Idn=Ci.g,u(N(H(Ci.g),0),19),u(N(H(Ci.g),1),35),yoe=Ci.c,u(N(H(Ci.c),0),19),u(N(H(Ci.c),1),19),Odn=Ci.i,u(N(H(Ci.i),0),19),u(N(H(Ci.i),1),19),u(N(H(Ci.i),2),19),u(N(H(Ci.i),3),19),u(N(H(Ci.i),4),35),Adn=Ci.j,u(N(H(Ci.j),0),19),Pdn=Ci.d,u(N(H(Ci.d),0),19),u(N(H(Ci.d),1),19),u(N(H(Ci.d),2),19),u(N(H(Ci.d),3),19),u(N(H(Ci.d),4),35),u(N(H(Ci.d),5),35),u(N(H(Ci.d),6),35),u(N(H(Ci.d),7),35),koe=Ci.b,u(N(H(Ci.b),0),35),u(N(H(Ci.b),1),35),bA=Ci.e,u(N(H(Ci.e),0),35),u(N(H(Ci.e),1),35),u(N(H(Ci.e),2),35),u(N(H(Ci.e),3),35),u(N(H(Ci.e),4),19),u(N(H(Ci.e),5),19),u(N(H(Ci.e),6),19),u(N(H(Ci.e),7),19),u(N(H(Ci.e),8),19),u(N(H(Ci.e),9),19),u(N(H(Ci.e),10),35),il=Ci.k,u(N(H(Ci.k),0),35),u(N(H(Ci.k),1),35)}function otn(n){var e,t,i,r,c;switch(e=n.c,e){case 11:return n.vm();case 12:return n.xm();case 14:return n.zm();case 15:return n.Cm();case 16:return n.Am();case 17:return n.Dm();case 21:return Ze(n),nt(),nt(),F9;case 10:switch(n.a){case 65:return n.hm();case 90:return n.mm();case 122:return n.tm();case 98:return n.nm();case 66:return n.im();case 60:return n.sm();case 62:return n.qm()}}switch(c=MNe(n),e=n.c,e){case 3:return n.Im(c);case 4:return n.Gm(c);case 5:return n.Hm(c);case 0:if(n.a==123&&n.d<n.j){if(r=n.d,i=0,t=-1,(e=Xi(n.i,r++))>=48&&e<=57){for(i=e-48;r<n.j&&(e=Xi(n.i,r++))>=48&&e<=57;)if(i=i*10+e-48,i<0)throw T(new Ne($e((Oe(),Fcn))))}else throw T(new Ne($e((Oe(),XWn))));if(t=i,e==44){if(r>=n.j)throw T(new Ne($e((Oe(),WWn))));if((e=Xi(n.i,r++))>=48&&e<=57){for(t=e-48;r<n.j&&(e=Xi(n.i,r++))>=48&&e<=57;)if(t=t*10+e-48,t<0)throw T(new Ne($e((Oe(),Fcn))));if(i>t)throw T(new Ne($e((Oe(),JWn))))}else t=-1}if(e!=125)throw T(new Ne($e((Oe(),VWn))));n.bm(r)?(c=(nt(),nt(),new X0(9,c)),n.d=r+1):(c=(nt(),nt(),new X0(3,c)),n.d=r),c.Om(i),c.Nm(t),Ze(n)}}return c}function INe(n){var e,t,i,r,c;switch(t=u(v(n,(W(),Hc)),21),e=LM(mZn),r=u(v(n,(cn(),Kw)),346),r==(jl(),T1)&&To(e,vZn),on(un(v(n,TH)))?Fe(e,(Vi(),Vs),(tr(),D_)):Fe(e,(Vi(),Ac),(tr(),D_)),v(n,(JT(),b9))!=null&&To(e,kZn),(on(un(v(n,nhn)))||on(un(v(n,Jfn))))&&Iu(e,(Vi(),zr),(tr(),Won)),u(v(n,Lo),88).g){case 2:case 3:case 4:Iu(Fe(e,(Vi(),Vs),(tr(),Qon)),zr,Jon)}switch(t.Hc((pr(),ZI))&&Iu(Fe(Fe(e,(Vi(),Vs),(tr(),Von)),Fc,zon),zr,Xon),x(v(n,ja))!==x((ps(),SO))&&Fe(e,(Vi(),Ac),(tr(),asn)),t.Hc(eO)&&(Fe(e,(Vi(),Vs),(tr(),gsn)),Fe(e,Jh,bsn),Fe(e,Ac,wsn)),x(v(n,fO))!==x((jm(),x8))&&x(v(n,$l))!==x((El(),Yj))&&Iu(e,(Vi(),zr),(tr(),usn)),on(un(v(n,Yfn)))&&Fe(e,(Vi(),Ac),(tr(),csn)),on(un(v(n,yH)))&&Fe(e,(Vi(),Ac),(tr(),psn)),HTe(n)&&(x(v(n,Kw))===x(T1)?i=u(v(n,Mj),299):i=u(v(n,kH),299),c=i==(Z4(),cH)?(tr(),dsn):(tr(),ksn),Fe(e,(Vi(),Fc),c)),u(v(n,Chn),388).g){case 1:Fe(e,(Vi(),Fc),(tr(),msn));break;case 2:Iu(Fe(Fe(e,(Vi(),Ac),(tr(),Hon)),Fc,qon),zr,Uon)}return x(v(n,Yh))!==x((lh(),k1))&&Fe(e,(Vi(),Ac),(tr(),vsn)),e}function dzn(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A;if(Zc(n.a,e)){if(sf(u(ee(n.a,e),49),t))return 1}else Ve(n.a,e,new ni);if(Zc(n.a,t)){if(sf(u(ee(n.a,t),49),e))return-1}else Ve(n.a,t,new ni);if(Zc(n.e,e)){if(sf(u(ee(n.e,e),49),t))return-1}else Ve(n.e,e,new ni);if(Zc(n.e,t)){if(sf(u(ee(n.a,t),49),e))return 1}else Ve(n.e,t,new ni);if(n.c==(lh(),_H)||!kt(e,(W(),dt))||!kt(t,(W(),dt))){for(d=null,l=new M(e.j);l.a<l.c.c.length;)f=u(E(l),12),f.e.c.length==0||u(sn(f.e,0),18).c.i.c!=e.c&&(d=u(sn(f.e,0),18).c);for(p=null,h=new M(t.j);h.a<h.c.c.length;)f=u(E(h),12),f.e.c.length==0||u(sn(f.e,0),18).c.i.c!=t.c&&(p=u(sn(f.e,0),18).c);if(d&&p){if(a=d.i,g=p.i,a&&a==g){for(k=new M(a.j);k.a<k.c.c.length;){if(m=u(E(k),12),m==d)return Im(n,t,e),-1;if(m==p)return Im(n,e,t),1}return jc(Vx(n,e),Vx(n,t))}for(P=n.d,O=0,A=P.length;O<A;++O){if(j=P[O],j==a)return Im(n,t,e),-1;if(j==g)return Im(n,e,t),1}}if(!kt(e,(W(),dt))||!kt(t,dt))return r=Vx(n,e),s=Vx(n,t),r>s?Im(n,e,t):Im(n,t,e),r<s?-1:r>s?1:0}return i=u(v(e,(W(),dt)),17).a,c=u(v(t,dt),17).a,i>c?Im(n,e,t):Im(n,t,e),i<c?-1:i>c?1:0}function zb(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j;if(t==null)return null;if(n.a!=e.jk())throw T(new Gn(ev+e.xe()+n0));if(L(e,469)){if(j=kSe(u(e,685),t),!j)throw T(new Gn(fF+t+"' is not a valid enumerator of '"+e.xe()+"'"));return j}switch(r1((Lu(),zi),e).Nl()){case 2:{t=Rc(t,!1);break}case 3:{t=Rc(t,!0);break}}if(i=r1(zi,e).Jl(),i)return i.jk().wi().ti(i,t);if(g=r1(zi,e).Ll(),g){for(j=new Z,l=z$(t),a=0,d=l.length;a<d;++a)h=l[a],nn(j,g.jk().wi().ti(g,h));return j}if(k=r1(zi,e).Ml(),!k.dc()){for(m=k.Kc();m.Ob();){p=u(m.Pb(),156);try{if(j=p.jk().wi().ti(p,t),j!=null)return j}catch(P){if(P=Ot(P),!L(P,63))throw T(P)}}throw T(new Gn(fF+t+"' does not match any member types of the union datatype '"+e.xe()+"'"))}if(u(e,847).ok(),r=R6e(e.kk()),!r)return null;if(r==S8){s=0;try{s=So(t,Wi,et)&ui}catch(P){if(P=Ot(P),L(P,130))c=iC(t),s=c[0];else throw T(P)}return vk(s)}if(r==oI){for(f=0;f<A9.length;++f)try{return wMn(A9[f],t)}catch(P){if(P=Ot(P),!L(P,33))throw T(P)}throw T(new Gn(fF+t+"' is not a date formatted string of the form yyyy-MM-dd'T'HH:mm:ss'.'SSSZ or a valid subset thereof"))}throw T(new Gn(fF+t+"' is invalid. "))}function YR(){YR=R,wt=new Mb,In(wt,(en(),Yf),Uc),In(wt,Cs,Uc),In(wt,Cs,vu),In(wt,os,xu),In(wt,os,Uc),In(wt,ef,Uc),In(wt,ef,Ju),In(wt,Do,pu),In(wt,Do,Uc),In(wt,mu,su),In(wt,mu,Uc),In(wt,mu,Ju),In(wt,mu,pu),In(wt,su,mu),In(wt,su,vu),In(wt,su,xu),In(wt,su,Uc),In(wt,tf,tf),In(wt,tf,Ju),In(wt,tf,vu),In(wt,Wu,Wu),In(wt,Wu,Ju),In(wt,Wu,xu),In(wt,$o,$o),In(wt,$o,pu),In(wt,$o,vu),In(wt,ss,ss),In(wt,ss,pu),In(wt,ss,xu),In(wt,Ju,ef),In(wt,Ju,mu),In(wt,Ju,tf),In(wt,Ju,Wu),In(wt,Ju,Uc),In(wt,Ju,Ju),In(wt,Ju,vu),In(wt,Ju,xu),In(wt,pu,Do),In(wt,pu,mu),In(wt,pu,$o),In(wt,pu,ss),In(wt,pu,pu),In(wt,pu,vu),In(wt,pu,xu),In(wt,pu,Uc),In(wt,vu,Cs),In(wt,vu,su),In(wt,vu,tf),In(wt,vu,$o),In(wt,vu,Ju),In(wt,vu,pu),In(wt,vu,vu),In(wt,vu,Uc),In(wt,xu,os),In(wt,xu,su),In(wt,xu,Wu),In(wt,xu,ss),In(wt,xu,Ju),In(wt,xu,pu),In(wt,xu,xu),In(wt,xu,Uc),In(wt,Uc,Yf),In(wt,Uc,Cs),In(wt,Uc,os),In(wt,Uc,ef),In(wt,Uc,Do),In(wt,Uc,mu),In(wt,Uc,su),In(wt,Uc,Ju),In(wt,Uc,pu),In(wt,Uc,vu),In(wt,Uc,xu),In(wt,Uc,Uc)}function stn(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn;for(n.d=new V(Pt,Pt),n.c=new V(li,li),g=e.Kc();g.Ob();)for(a=u(g.Pb(),36),A=new M(a.a);A.a<A.c.c.length;)O=u(E(A),10),n.d.a=y.Math.min(n.d.a,O.n.a-O.d.b),n.d.b=y.Math.min(n.d.b,O.n.b-O.d.d),n.c.a=y.Math.max(n.c.a,O.n.a+O.o.a+O.d.c),n.c.b=y.Math.max(n.c.b,O.n.b+O.o.b+O.d.a);for(f=new Fyn,d=e.Kc();d.Ob();)a=u(d.Pb(),36),i=lNe(n,a),nn(f.a,i),i.a=i.a|!u(v(i.c,(W(),Dl)),21).dc();for(n.b=(Y$(),yn=new J0n,yn.f=new ixn(t),yn.b=mAe(yn.f,f),yn),OAe((m=n.b,new op,m)),n.e=new Ni,n.a=n.b.f.e,s=new M(f.a);s.a<s.c.c.length;)for(r=u(E(s),855),D=l2e(n.b,r),uPe(r.c,D.a,D.b),j=new M(r.c.a);j.a<j.c.c.length;)k=u(E(j),10),k.k==(Vn(),Zt)&&(P=nen(n,k.n,u(v(k,(W(),gc)),64)),tt(ff(k.n),P));for(c=new M(f.a);c.a<c.c.c.length;)for(r=u(E(c),855),l=new M(P5e(r));l.a<l.c.c.length;)for(h=u(E(l),18),tn=new GE(h.a),g4(tn,0,Of(h.c)),Re(tn,Of(h.d)),p=null,X=ge(tn,0);X.b!=X.d.c;){if(_=u(be(X),8),!p){p=_;continue}fQ(p.a,_.a)?(n.e.a=y.Math.min(n.e.a,p.a),n.a.a=y.Math.max(n.a.a,p.a)):fQ(p.b,_.b)&&(n.e.b=y.Math.min(n.e.b,p.b),n.a.b=y.Math.max(n.a.b,p.b)),p=_}HM(n.e),tt(n.a,n.e)}function ONe(n,e){var t,i,r,c,s,f,h,l;if(t=0,s=0,c=e.length,f=null,l=new fg,s<c&&(zn(s,e.length),e.charCodeAt(s)==43)&&(++s,++t,s<c&&(zn(s,e.length),e.charCodeAt(s)==43||(zn(s,e.length),e.charCodeAt(s)==45))))throw T(new th(Vb+e+'"'));for(;s<c&&(zn(s,e.length),e.charCodeAt(s)!=46)&&(zn(s,e.length),e.charCodeAt(s)!=101)&&(zn(s,e.length),e.charCodeAt(s)!=69);)++s;if(l.a+=""+qo(e==null?gu:(Jn(e),e),t,s),s<c&&(zn(s,e.length),e.charCodeAt(s)==46)){for(++s,t=s;s<c&&(zn(s,e.length),e.charCodeAt(s)!=101)&&(zn(s,e.length),e.charCodeAt(s)!=69);)++s;n.e=s-t,l.a+=""+qo(e==null?gu:(Jn(e),e),t,s)}else n.e=0;if(s<c&&(zn(s,e.length),e.charCodeAt(s)==101||(zn(s,e.length),e.charCodeAt(s)==69))&&(++s,t=s,s<c&&(zn(s,e.length),e.charCodeAt(s)==43)&&(++s,s<c&&(zn(s,e.length),e.charCodeAt(s)!=45)&&++t),f=(Ri(t,c,e.length),e.substr(t,c-t)),n.e=n.e-So(f,Wi,et),n.e!=wi(n.e)))throw T(new th("Scale out of range."));if(h=l.a,h.length<16){if(n.f=(Pun==null&&(Pun=new RegExp("^[+-]?\\d*$","i")),Pun.test(h)?parseInt(h,10):NaN),isNaN(n.f))throw T(new th(Vb+e+'"'));n.a=Inn(n.f)}else a5e(n,new H1(h));for(n.d=l.a.length,r=0;r<l.a.length&&(i=Xi(l.a,r),!(i!=45&&i!=48));++r)--n.d;n.d==0&&(n.d=1)}function ANe(n){Te(n.b,ks,S(C(fn,1),J,2,6,[e0,"ConsistentTransient"])),Te(n.a,ks,S(C(fn,1),J,2,6,[e0,"WellFormedSourceURI"])),Te(n.o,ks,S(C(fn,1),J,2,6,[e0,"InterfaceIsAbstract AtMostOneID UniqueFeatureNames UniqueOperationSignatures NoCircularSuperTypes WellFormedMapEntryClass ConsistentSuperTypes DisjointFeatureAndOperationSignatures"])),Te(n.p,ks,S(C(fn,1),J,2,6,[e0,"WellFormedInstanceTypeName UniqueTypeParameterNames"])),Te(n.v,ks,S(C(fn,1),J,2,6,[e0,"UniqueEnumeratorNames UniqueEnumeratorLiterals"])),Te(n.R,ks,S(C(fn,1),J,2,6,[e0,"WellFormedName"])),Te(n.T,ks,S(C(fn,1),J,2,6,[e0,"UniqueParameterNames UniqueTypeParameterNames NoRepeatingVoid"])),Te(n.U,ks,S(C(fn,1),J,2,6,[e0,"WellFormedNsURI WellFormedNsPrefix UniqueSubpackageNames UniqueClassifierNames UniqueNsURIs"])),Te(n.W,ks,S(C(fn,1),J,2,6,[e0,"ConsistentOpposite SingleContainer ConsistentKeys ConsistentUnique ConsistentContainer"])),Te(n.bb,ks,S(C(fn,1),J,2,6,[e0,"ValidDefaultValueLiteral"])),Te(n.eb,ks,S(C(fn,1),J,2,6,[e0,"ValidLowerBound ValidUpperBound ConsistentBounds ValidType"])),Te(n.H,ks,S(C(fn,1),J,2,6,[e0,"ConsistentType ConsistentBounds ConsistentArguments"]))}function LNe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn;if(!e.dc()){if(r=new Tu,f=t||u(e.Xb(0),18),m=f.c,K5(),g=m.i.k,!(g==(Vn(),zt)||g==_c||g==Zt||g==Gf))throw T(new Gn("The target node of the edge must be a normal node or a northSouthPort."));for(ir(r,cc(S(C(Ei,1),J,8,0,[m.i.n,m.n,m.a]))),(en(),mu).Hc(m.j)&&(j=$(B(v(m,(W(),jv)))),d=new V(cc(S(C(Ei,1),J,8,0,[m.i.n,m.n,m.a])).a,j),xt(r,d,r.c.b,r.c)),a=null,i=!1,h=e.Kc();h.Ob();)s=u(h.Pb(),18),c=s.a,c.b!=0&&(i?(l=ch(tt(a,(oe(c.b!=0),u(c.a.a.c,8))),.5),xt(r,l,r.c.b,r.c),i=!1):i=!0,a=Fi((oe(c.b!=0),u(c.c.b.c,8))),Ki(r,c),vo(c));k=f.d,mu.Hc(k.j)&&(j=$(B(v(k,(W(),jv)))),d=new V(cc(S(C(Ei,1),J,8,0,[k.i.n,k.n,k.a])).a,j),xt(r,d,r.c.b,r.c)),ir(r,cc(S(C(Ei,1),J,8,0,[k.i.n,k.n,k.a]))),n.d==(om(),VH)&&(P=(oe(r.b!=0),u(r.a.a.c,8)),O=u(Zo(r,1),8),A=new KD(uY(m.j)),A.a*=5,A.b*=5,D=mi(new V(O.a,O.b),P),_=new V(ND(A.a,D.a),ND(A.b,D.b)),tt(_,P),X=ge(r,1),_7(X,_),tn=(oe(r.b!=0),u(r.c.b.c,8)),yn=u(Zo(r,r.b-2),8),A=new KD(uY(k.j)),A.a*=5,A.b*=5,D=mi(new V(yn.a,yn.b),tn),kn=new V(ND(A.a,D.a),ND(A.b,D.b)),tt(kn,tn),g4(r,r.b-1,kn)),p=new _en(r),Ki(f.a,IBn(p))}}function NNe(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn,Bn,te,xe,Nt,Yu,Br,Ro,W2,L1,rf,cf;if(A=u(N((!n.b&&(n.b=new Dn(he,n,4,7)),n.b),0),84),_=A.nh(),X=A.oh(),D=A.mh()/2,k=A.lh()/2,L(A,193)&&(O=u(A,123),_+=Pf(O).i,_+=Pf(O).i),_+=D,X+=k,Bn=u(N((!n.b&&(n.b=new Dn(he,n,4,7)),n.b),0),84),xe=Bn.nh(),Nt=Bn.oh(),te=Bn.mh()/2,tn=Bn.lh()/2,L(Bn,193)&&(Rn=u(Bn,123),xe+=Pf(Rn).i,xe+=Pf(Rn).i),xe+=te,Nt+=tn,(!n.a&&(n.a=new q(Tt,n,6,6)),n.a).i==0)f=(K1(),l=new jE,l),ve((!n.a&&(n.a=new q(Tt,n,6,6)),n.a),f);else if((!n.a&&(n.a=new q(Tt,n,6,6)),n.a).i>1)for(m=new kp((!n.a&&(n.a=new q(Tt,n,6,6)),n.a));m.e!=m.i.gc();)A5(m);for(s=u(N((!n.a&&(n.a=new q(Tt,n,6,6)),n.a),0),166),j=xe,xe>_+D?j=_+D:xe<_-D&&(j=_-D),P=Nt,Nt>X+k?P=X+k:Nt<X-k&&(P=X-k),j>_-D&&j<_+D&&P>X-k&&P<X+k&&(j=_+D),H4(s,j),U4(s,P),yn=_,_>xe+te?yn=xe+te:_<xe-te&&(yn=xe-te),kn=X,X>Nt+tn?kn=Nt+tn:X<Nt-tn&&(kn=Nt-tn),yn>xe-te&&yn<xe+te&&kn>Nt-tn&&kn<Nt+tn&&(kn=Nt+tn),_4(s,yn),q4(s,kn),me((!s.a&&(s.a=new ti(xo,s,5)),s.a)),c=cS(e,5),A==Bn&&++c,Ro=yn-j,rf=kn-P,Yu=y.Math.sqrt(Ro*Ro+rf*rf),d=Yu*.20000000298023224,W2=Ro/(c+1),cf=rf/(c+1),Br=j,L1=P,a=0;a<c;a++)Br+=W2,L1+=cf,g=Br+to(e,24)*Oy*d-d/2,g<0?g=1:g>t&&(g=t-1),p=L1+to(e,24)*Oy*d-d/2,p<0?p=1:p>i&&(p=i-1),r=(K1(),h=new yE,h),aC(r,g),lC(r,p),ve((!s.a&&(s.a=new ti(xo,s,5)),s.a),r)}function bzn(n){rb(n,new gd(eb(Yd(nb(Zd(new Fa,co),"ELK Rectangle Packing"),"Algorithm for packing of unconnected boxes, i.e. graphs without edges. The given order of the boxes is always preserved and the main reading direction of the boxes is left to right. The algorithm is divided into two phases. One phase approximates the width in which the rectangles can be placed. The next phase places the rectangles in rows using the previously calculated width as bounding width and bundles rectangles with a similar height in blocks. A compaction step reduces the size of the drawing. Finally, the rectangles are expanded to fill their bounding box and eliminate empty unused spaces."),new rmn))),Q(n,co,l3,1.3),Q(n,co,zm,(_n(),!1)),Q(n,co,Wb,k1n),Q(n,co,yw,15),Q(n,co,TP,rn(Ace)),Q(n,co,r2,rn(Dce)),Q(n,co,d3,rn(xce)),Q(n,co,a3,rn(Rce)),Q(n,co,Xm,rn(Nce)),Q(n,co,r8,rn(Aq)),Q(n,co,Vm,rn(Kce)),Q(n,co,ncn,rn(M1n)),Q(n,co,ecn,rn(E1n)),Q(n,co,Zrn,rn(Nq)),Q(n,co,Yrn,rn(T1n)),Q(n,co,tcn,rn(v1n)),Q(n,co,icn,rn(Lq)),Q(n,co,rcn,rn(m1n)),Q(n,co,ccn,rn(j1n)),Q(n,co,i8,rn(p1n)),Q(n,co,SP,rn(Lce)),Q(n,co,Jrn,rn(Bj)),Q(n,co,Wrn,rn(g1n)),Q(n,co,Qrn,rn(Fj)),Q(n,co,Vrn,rn(y1n))}function ZR(n,e){KR();var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn,Bn,te,xe;if(yn=n.e,m=n.d,r=n.a,yn==0)switch(e){case 0:return"0";case 1:return Fm;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 X=new x1,e<0?X.a+="0E+":X.a+="0E",X.a+=-e,X.a}if(A=m*10+1+7,D=F(fs,gh,28,A+1,15,1),t=A,m==1)if(f=r[0],f<0){xe=vi(f,mr);do k=xe,xe=Xk(xe,10),D[--t]=48+Se(bs(k,er(xe,10)))&ui;while(Ec(xe,0)!=0)}else{xe=f;do k=xe,xe=xe/10|0,D[--t]=48+(k-xe*10)&ui;while(xe!=0)}else{Rn=F(ye,_e,28,m,15,1),te=m,Oc(r,0,Rn,0,te);n:for(;;){for(tn=0,l=te-1;l>=0;l--)Bn=nr(Ks(tn,32),vi(Rn[l],mr)),P=mye(Bn),Rn[l]=Se(P),tn=Se(wb(P,32));O=Se(tn),j=t;do D[--t]=48+O%10&ui;while((O=O/10|0)!=0&&t!=0);for(i=9-j+t,h=0;h<i&&t>0;h++)D[--t]=48;for(d=te-1;Rn[d]==0;d--)if(d==0)break n;te=d+1}for(;D[t]==48;)++t}if(p=yn<0,s=A-t-e-1,e==0)return p&&(D[--t]=45),ws(D,t,A-t);if(e>0&&s>=-6){if(s>=0){for(a=t+s,g=A-1;g>=a;g--)D[g+1]=D[g];return D[++a]=46,p&&(D[--t]=45),ws(D,t,A-t+1)}for(d=2;d<-s+1;d++)D[--t]=48;return D[--t]=46,D[--t]=48,p&&(D[--t]=45),ws(D,t,A-t)}return kn=t+1,c=A,_=new fg,p&&(_.a+="-"),c-kn>=1?(z1(_,D[t]),_.a+=".",_.a+=ws(D,t+1,A-t-1)):_.a+=ws(D,t,A-t),_.a+="E",s>0&&(_.a+="+"),_.a+=""+s,_.a}function wzn(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X;switch(n.c=e,n.g=new de,t=(cb(),new Qd(n.c)),i=new OE(t),_Y(i),A=Ae(z(n.c,(Wk(),U1n))),h=u(z(n.c,qq),324),_=u(z(n.c,Uq),437),s=u(z(n.c,_1n),490),D=u(z(n.c,Hq),438),n.j=$(B(z(n.c,Yce))),f=n.a,h.g){case 0:f=n.a;break;case 1:f=n.b;break;case 2:f=n.i;break;case 3:f=n.e;break;case 4:f=n.f;break;default:throw T(new Gn(xP+(h.f!=null?h.f:""+h.g)))}if(n.d=new sAn(f,_,s),U(n.d,(J4(),A8),un(z(n.c,Jce))),n.d.c=on(un(z(n.c,H1n))),ST(n.c).i==0)return n.d;for(d=new ne(ST(n.c));d.e!=d.i.gc();){for(a=u(ue(d),27),p=a.g/2,g=a.f/2,X=new V(a.i+p,a.j+g);Zc(n.g,X);)ab(X,(y.Math.random()-.5)*vh,(y.Math.random()-.5)*vh);k=u(z(a,(He(),xv)),140),j=new jAn(X,new Ho(X.a-p-n.j/2-k.b,X.b-g-n.j/2-k.d,a.g+n.j+(k.b+k.c),a.f+n.j+(k.d+k.a))),nn(n.d.i,j),Ve(n.g,X,new bi(j,a))}switch(D.g){case 0:if(A==null)n.d.d=u(sn(n.d.i,0),68);else for(O=new M(n.d.i);O.a<O.c.c.length;)j=u(E(O),68),m=u(u(ee(n.g,j.a),42).b,27).jh(),m!=null&&Sn(m,A)&&(n.d.d=j);break;case 1:for(r=new V(n.c.g,n.c.f),r.a*=.5,r.b*=.5,ab(r,n.c.i,n.c.j),c=Pt,P=new M(n.d.i);P.a<P.c.c.length;)j=u(E(P),68),l=J1(j.a,r),l<c&&(c=l,n.d.d=j);break;default:throw T(new Gn(xP+(D.f!=null?D.f:""+D.g)))}return n.d}function DNe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j;for(g=0,r=new ne((!e.a&&(e.a=new q(Ye,e,10,11)),e.a));r.e!=r.i.gc();)i=u(ue(r),27),on(un(z(i,(cn(),Rd))))||(a=St(i),(x(z(a,Yh))!==x((lh(),k1))||x(z(a,Nd))===x((o1(),pv))||x(z(a,Nd))===x((o1(),gv))||on(un(z(a,l0)))||x(z(a,Rw))!==x((dd(),Aw))||x(z(a,ja))===x((ps(),p0))||x(z(a,ja))===x((ps(),Uw))||x(z(a,$d))===x((a1(),Iv))||x(z(a,$d))===x((a1(),Ov)))&&!on(un(z(i,lO)))&&(ht(i,(W(),dt),Y(g)),++g),szn(n,i,t));for(g=0,l=new ne((!e.b&&(e.b=new q(Vt,e,12,3)),e.b));l.e!=l.i.gc();)f=u(ue(l),74),(x(z(e,(cn(),Yh)))!==x((lh(),k1))||x(z(e,Nd))===x((o1(),pv))||x(z(e,Nd))===x((o1(),gv))||on(un(z(e,l0)))||x(z(e,Rw))!==x((dd(),Aw))||x(z(e,ja))===x((ps(),p0))||x(z(e,ja))===x((ps(),Uw))||x(z(e,$d))===x((a1(),Iv))||x(z(e,$d))===x((a1(),Ov)))&&(ht(f,(W(),dt),Y(g)),++g),k=Fh(f),j=ra(f),d=on(un(z(k,Bw))),m=!on(un(z(f,Rd))),p=d&&_b(f)&&on(un(z(f,Dd))),c=St(k)==e&&St(k)==St(j),s=(St(k)==e&&j==e)^(St(j)==e&&k==e),m&&!p&&(s||c)&&ftn(n,f,e,t);if(St(e))for(h=new ne($On(St(e)));h.e!=h.i.gc();)f=u(ue(h),74),k=Fh(f),k==e&&_b(f)&&(p=on(un(z(k,(cn(),Bw))))&&on(un(z(f,Dd))),p&&ftn(n,f,e,t))}function $Ne(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn,Bn,te,xe,Nt,Yu,Br,Ro;for(t.Ug("Greedy cycle removal",1),A=e.a,Ro=A.c.length,n.a=F(ye,_e,28,Ro,15,1),n.c=F(ye,_e,28,Ro,15,1),n.b=F(ye,_e,28,Ro,15,1),l=0,P=new M(A);P.a<P.c.c.length;){for(k=u(E(P),10),k.p=l,kn=new M(k.j);kn.a<kn.c.c.length;){for(X=u(E(kn),12),f=new M(X.e);f.a<f.c.c.length;)i=u(E(f),18),i.c.i!=k&&(te=u(v(i,(cn(),Cv)),17).a,n.a[l]+=te>0?te+1:1);for(s=new M(X.g);s.a<s.c.c.length;)i=u(E(s),18),i.d.i!=k&&(te=u(v(i,(cn(),Cv)),17).a,n.c[l]+=te>0?te+1:1)}n.c[l]==0?Re(n.e,k):n.a[l]==0&&Re(n.f,k),++l}for(m=-1,p=1,d=new Z,n.d=u(v(e,(W(),P3)),234);Ro>0;){for(;n.e.b!=0;)Nt=u(UN(n.e),10),n.b[Nt.p]=m--,Oen(n,Nt),--Ro;for(;n.f.b!=0;)Yu=u(UN(n.f),10),n.b[Yu.p]=p++,Oen(n,Yu),--Ro;if(Ro>0){for(g=Wi,O=new M(A);O.a<O.c.c.length;)k=u(E(O),10),n.b[k.p]==0&&(D=n.c[k.p]-n.a[k.p],D>=g&&(D>g&&(d.c.length=0,g=D),Fn(d.c,k)));a=n.sg(d),n.b[a.p]=p++,Oen(n,a),--Ro}}for(xe=A.c.length+1,l=0;l<A.c.length;l++)n.b[l]<0&&(n.b[l]+=xe);for(j=new M(A);j.a<j.c.c.length;)for(k=u(E(j),10),Bn=MLn(k.j),tn=Bn,yn=0,Rn=tn.length;yn<Rn;++yn)for(X=tn[yn],_=hh(X.g),r=_,c=0,h=r.length;c<h;++c)i=r[c],Br=i.d.i.p,n.b[k.p]>n.b[Br]&&(Ub(i,!0),U(e,kj,(_n(),!0)));n.a=null,n.c=null,n.b=null,vo(n.f),vo(n.e),t.Vg()}function gzn(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X;for(_=u(N((!n.a&&(n.a=new q(Tt,n,6,6)),n.a),0),166),a=new Tu,D=new de,X=TUn(_),Vc(D.f,_,X),g=new de,i=new Mt,m=$h(Eo(S(C(Ao,1),Kn,20,0,[(!e.d&&(e.d=new Dn(Vt,e,8,5)),e.d),(!e.e&&(e.e=new Dn(Vt,e,7,4)),e.e)])));pe(m);){if(p=u(fe(m),74),(!n.a&&(n.a=new q(Tt,n,6,6)),n.a).i!=1)throw T(new Gn(tWn+(!n.a&&(n.a=new q(Tt,n,6,6)),n.a).i));p!=n&&(j=u(N((!p.a&&(p.a=new q(Tt,p,6,6)),p.a),0),166),xt(i,j,i.c.b,i.c),k=u(Fr(wr(D.f,j)),13),k||(k=TUn(j),Vc(D.f,j,k)),d=t?mi(new rr(u(sn(X,X.c.length-1),8)),u(sn(k,k.c.length-1),8)):mi(new rr((Nn(0,X.c.length),u(X.c[0],8))),(Nn(0,k.c.length),u(k.c[0],8))),Vc(g.f,j,d))}if(i.b!=0)for(P=u(sn(X,t?X.c.length-1:0),8),l=1;l<X.c.length;l++){for(O=u(sn(X,t?X.c.length-1-l:l),8),r=ge(i,0);r.b!=r.d.c;)j=u(be(r),166),k=u(Fr(wr(D.f,j)),13),k.c.length<=l?p$(r):(A=tt(new rr(u(sn(k,t?k.c.length-1-l:l),8)),u(Fr(wr(g.f,j)),8)),(O.a!=A.a||O.b!=A.b)&&(c=O.a-P.a,f=O.b-P.b,s=A.a-P.a,h=A.b-P.b,s*f==h*c&&(c==0||isNaN(c)?c:c<0?-1:1)==(s==0||isNaN(s)?s:s<0?-1:1)&&(f==0||isNaN(f)?f:f<0?-1:1)==(h==0||isNaN(h)?h:h<0?-1:1)?(y.Math.abs(c)<y.Math.abs(s)||y.Math.abs(f)<y.Math.abs(h))&&xt(a,O,a.c.b,a.c):l>1&&xt(a,P,a.c.b,a.c),p$(r)));P=O}return a}function pzn(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn;for(t.Ug(pVn,1),Rn=u(Wr(ut(new Cn(null,new On(e,16)),new N4n),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[(Gu(),Yr)]))),15),a=u(Wr(ut(new Cn(null,new On(e,16)),new kkn(e)),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[Yr]))),15),m=u(Wr(ut(new Cn(null,new On(e,16)),new vkn(e)),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[Yr]))),15),k=F(DO,AP,40,e.gc(),0,1),s=0;s<a.gc();s++)r=u(a.Xb(s),40),kn=u(v(r,(lc(),A2)),17).a,kn>=0&&kn<a.gc()&&!k[kn]&&(k[kn]=r,a.gd(s),--s);for(f=0;f<a.gc();f++)for(r=u(a.Xb(f),40),kn=u(v(r,(lc(),A2)),17).a,g=0;;g++){if(p=kn+g,p<k.length&&p>=0&&!k[p]){k[p]=r,a.gd(f),--f;break}if(p=kn-g,p<k.length&&p>=0&&!k[p]){k[p]=r,a.gd(f),--f;break}}for(m.jd(new D4n),h=k.length-1;h>=0;h--)!k[h]&&!m.dc()&&(k[h]=u(m.Xb(0),40),m.gd(0));for(l=0;l<k.length;l++)!k[l]&&!Rn.dc()&&(k[l]=u(Rn.Xb(0),40),Rn.gd(0));for(c=0;c<k.length;c++)U(k[c],(pt(),o9),Y(c));for(d=u(E8e(ut(new Cn(null,new On(e,16)),new $4n)),534),X=d,tn=0,yn=X.length;tn<yn;++tn){for(_=X[tn],i=R$(_),pzn(n,i,t.eh(1/d.length|0)),Ln(),ud(i,new tL((pt(),o9))),j=new Mt,D=ge(i,0);D.b!=D.d.c;)for(A=u(be(D),40),O=ge(_.d,0);O.b!=O.d.c;)P=u(be(O),65),P.c==A&&xt(j,P,j.c.b,j.c);vo(_.d),Ki(_.d,j)}t.Vg()}function mzn(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P;for(i=new Z,f=new Z,j=e/2,p=n.gc(),r=u(n.Xb(0),8),P=u(n.Xb(1),8),m=wR(r.a,r.b,P.a,P.b,j),nn(i,(Nn(0,m.c.length),u(m.c[0],8))),nn(f,(Nn(1,m.c.length),u(m.c[1],8))),l=2;l<p;l++)k=r,r=P,P=u(n.Xb(l),8),m=wR(r.a,r.b,k.a,k.b,j),nn(i,(Nn(1,m.c.length),u(m.c[1],8))),nn(f,(Nn(0,m.c.length),u(m.c[0],8))),m=wR(r.a,r.b,P.a,P.b,j),nn(i,(Nn(0,m.c.length),u(m.c[0],8))),nn(f,(Nn(1,m.c.length),u(m.c[1],8)));for(m=wR(P.a,P.b,r.a,r.b,j),nn(i,(Nn(1,m.c.length),u(m.c[1],8))),nn(f,(Nn(0,m.c.length),u(m.c[0],8))),t=new Tu,s=new Z,Re(t,(Nn(0,i.c.length),u(i.c[0],8))),a=1;a<i.c.length-2;a+=2)c=(Nn(a,i.c.length),u(i.c[a],8)),g=E_n((Nn(a-1,i.c.length),u(i.c[a-1],8)),c,(Nn(a+1,i.c.length),u(i.c[a+1],8)),(Nn(a+2,i.c.length),u(i.c[a+2],8))),!isFinite(g.a)||!isFinite(g.b)?xt(t,c,t.c.b,t.c):xt(t,g,t.c.b,t.c);for(Re(t,u(sn(i,i.c.length-1),8)),nn(s,(Nn(0,f.c.length),u(f.c[0],8))),d=1;d<f.c.length-2;d+=2)c=(Nn(d,f.c.length),u(f.c[d],8)),g=E_n((Nn(d-1,f.c.length),u(f.c[d-1],8)),c,(Nn(d+1,f.c.length),u(f.c[d+1],8)),(Nn(d+2,f.c.length),u(f.c[d+2],8))),!isFinite(g.a)||!isFinite(g.b)?Fn(s.c,c):Fn(s.c,g);for(nn(s,u(sn(f,f.c.length-1),8)),h=s.c.length-1;h>=0;h--)Re(t,(Nn(h,s.c.length),u(s.c[h],8)));return t}function vzn(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D;for(A=$(B(z(e,(_h(),Xw)))),p=$(B(z(e,f9))),g=$(B(z(e,UO))),NQ((!e.a&&(e.a=new q(Ye,e,10,11)),e.a)),P=fGn((!e.a&&(e.a=new q(Ye,e,10,11)),e.a),A,n.b),j=0;j<P.c.length;j++)if(h=(Nn(j,P.c.length),u(P.c[j],186)),j!=0&&(m=(Nn(j-1,P.c.length),u(P.c[j-1],186)),_Rn(h,m.f+m.b+n.b)),k=KNe(j,P,A,n.b,on(un(z(e,(Bf(),Lq))))),on(un(k.b))){for(c=new M(h.a);c.a<c.c.c.length;)r=u(E(c),172),r.c=!1,r.k=!1,ZUn(r);h.d=new Z,h.e=A,--j}else if(eke(n,h),j+1<P.c.length&&(n.e=y.Math.max(h.e+n.b+u(sn((Nn(j+1,P.c.length),u(P.c[j+1],186)).a,0),172).r-A,n.c),n.f=y.Math.min(h.e+n.b+u(sn((Nn(j+1,P.c.length),u(P.c[j+1],186)).a,0),172).r-A,n.d),h.d.c.length!=0&&(n.c=y.Math.max(n.c,u(sn(h.d,h.d.c.length-1),315).d+(h.d.c.length<=1?0:n.b)),n.d=y.Math.min(n.c,u(sn(h.d,h.d.c.length-1),315).d+(h.d.c.length<=1?0:n.b)))),P.c.length==1)for(d=u(sn(h.d,h.d.c.length-1),315),a=u(sn(d.a,d.a.c.length-1),172),f=new M(a.n);f.a<f.c.c.length;)s=u(E(f),209),n.c=y.Math.max(n.c,a.r-s.d),n.d=y.Math.min(n.d,a.r-s.d),n.e=y.Math.max(n.e,s.d+n.b),n.f=y.Math.min(n.f,s.d+n.b);return O=cFn(P,n.b),D=y.Math.max(O.a,p-(t.b+t.c)),l=y.Math.max(O.b,g-(t.d+t.a)),i=l-O.b,ht(e,s9,i),ht(e,GO,P),new tW(n.a,D,O.b+i,(x5(),_j))}function xNe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn,Bn,te;if(tn=u(v(n,(cn(),Ft)),101),tn!=(Ai(),Qf)&&tn!=Ia){for(m=n.b,p=m.c.length,a=new Gc((Mo(p+2,cK),oC(nr(nr(5,p+2),(p+2)/10|0)))),k=new Gc((Mo(p+2,cK),oC(nr(nr(5,p+2),(p+2)/10|0)))),nn(a,new de),nn(a,new de),nn(k,new Z),nn(k,new Z),X=new Z,e=0;e<p;e++)for(t=(Nn(e,m.c.length),u(m.c[e],30)),yn=(Nn(e,a.c.length),u(a.c[e],85)),j=new de,Fn(a.c,j),Rn=(Nn(e,k.c.length),u(k.c[e],15)),O=new Z,Fn(k.c,O),r=new M(t.a);r.a<r.c.c.length;){if(i=u(E(r),10),TY(i)){Fn(X.c,i);continue}for(l=new ie(ce(ji(i).a.Kc(),new En));pe(l);)f=u(fe(l),18),Bn=f.c.i,TY(Bn)&&(kn=u(yn.xc(v(Bn,(W(),st))),10),kn||(kn=B_n(n,Bn),yn.zc(v(Bn,st),kn),Rn.Fc(kn)),Zi(f,u(sn(kn.j,1),12)));for(h=new ie(ce(Qt(i).a.Kc(),new En));pe(h);)f=u(fe(h),18),te=f.d.i,TY(te)&&(P=u(ee(j,v(te,(W(),st))),10),P||(P=B_n(n,te),Ve(j,v(te,st),P),Fn(O.c,P)),Oi(f,u(sn(P.j,0),12)))}for(d=0;d<k.c.length;d++)if(A=(Nn(d,k.c.length),u(k.c[d],15)),!A.dc())for(g=null,d==0?(g=new Nc(n),z0(0,m.c.length),d6(m.c,0,g)):d==a.c.length-1?(g=new Nc(n),Fn(m.c,g)):g=(Nn(d-1,m.c.length),u(m.c[d-1],30)),s=A.Kc();s.Ob();)c=u(s.Pb(),10),$i(c,g);for(_=new M(X);_.a<_.c.c.length;)D=u(E(_),10),$i(D,null);U(n,(W(),fH),X)}}function RNe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn,Bn,te,xe,Nt,Yu,Br;for(Nt=new Z,m=new M(e.b);m.a<m.c.c.length;)for(g=u(E(m),30),_=new M(g.a);_.a<_.c.c.length;){for(D=u(E(_),10),D.p=-1,d=Wi,yn=Wi,Rn=new M(D.j);Rn.a<Rn.c.c.length;){for(kn=u(E(Rn),12),r=new M(kn.e);r.a<r.c.c.length;)t=u(E(r),18),Bn=u(v(t,(cn(),O3)),17).a,d=y.Math.max(d,Bn);for(i=new M(kn.g);i.a<i.c.c.length;)t=u(E(i),18),Bn=u(v(t,(cn(),O3)),17).a,yn=y.Math.max(yn,Bn)}U(D,AO,Y(d)),U(D,LO,Y(yn))}for(P=0,p=new M(e.b);p.a<p.c.c.length;)for(g=u(E(p),30),_=new M(g.a);_.a<_.c.c.length;)D=u(E(_),10),D.p<0&&(xe=new JG,xe.b=P++,Wqn(n,D,xe),Fn(Nt.c,xe));for(tn=Lh(Nt.c.length),a=Lh(Nt.c.length),s=0;s<Nt.c.length;s++)nn(tn,new Z),nn(a,Y(0));for(eLe(e,Nt,tn,a),Yu=u(Rf(Nt,F($ie,hVn,261,Nt.c.length,0,1)),854),X=u(Rf(tn,F(rs,kw,15,tn.c.length,0,1)),198),l=F(ye,_e,28,a.c.length,15,1),f=0;f<l.length;f++)l[f]=(Nn(f,a.c.length),u(a.c[f],17)).a;for(O=0,A=new Z,h=0;h<Yu.length;h++)l[h]==0&&Fn(A.c,Yu[h]);for(j=F(ye,_e,28,Yu.length,15,1);A.c.length!=0;)for(xe=u(Yl(A,0),261),j[xe.b]=O++;!X[xe.b].dc();)Br=u(X[xe.b].gd(0),261),--l[Br.b],l[Br.b]==0&&Fn(A.c,Br);for(n.a=F($ie,hVn,261,Yu.length,0,1),c=0;c<Yu.length;c++)for(k=Yu[c],te=j[c],n.a[te]=k,k.b=te,_=new M(k.e);_.a<_.c.c.length;)D=u(E(_),10),D.p=te;return n.a}function KNe(n,e,t,i,r){var c,s,f,h,l,a,d,g,p,m,k,j,P;for(k=!1,h=!1,g=n+1,m=(Nn(n,e.c.length),u(e.c[n],186)),f=m.a,l=null,s=0;s<m.a.c.length;s++)if(c=(Nn(s,f.c.length),u(f.c[s],172)),!c.c){if(c.b.c.length==0){fl(),Gk(m,c),--s,k=!0;continue}if(c.k||(l&&fS(l),l=new tJ(l?l.e+l.d+i:0,m.f,i),Hk(c,l.e+l.d,m.f),nn(m.d,l),FQ(l,c),c.k=!0),a=null,a=(P=null,s<m.a.c.length-1?P=u(sn(m.a,s+1),172):g<e.c.length&&(Nn(g,e.c.length),u(e.c[g],186)).a.c.length!=0&&(P=u(sn((Nn(g,e.c.length),u(e.c[g],186)).a,0),172)),P),j=!1,a&&(j=!rt(a.j,m)),a){if(a.b.c.length!=0&&!on(un(u(sn(a.b,0),27).of((Bf(),Fj)))))uk(c,t-c.s),fS(c.q),k=k|sje(m,c,a,t,i);else{Gk(m,a);break}if(a.b.c.length==0)for(e.c.length>g&&Gk((Nn(g,e.c.length),u(e.c[g],186)),a),a=null;e.c.length>g&&(Nn(g,e.c.length),u(e.c[g],186)).a.c.length==0;)du(e,(Nn(g,e.c.length),e.c[g]));if(!a){--s;continue}if(!on(un(u(sn(a.b,0),27).of((Bf(),Fj))))&&ZPe(e,m,c,a,j,t,g,i)){k=!0;continue}if(j){if(p=m.b,d=a.f,!on(un(u(sn(a.b,0),27).of(Fj)))&&pAe(e,m,c,a,t,g,i,r)){if(k=!0,p<d){h=!0,a.j=m;break}continue}else if(wY(m,c)){c.c=!0,k=!0;continue}}else if(wY(m,c)){c.c=!0,k=!0;continue}if(k)continue}if(wY(m,c)){c.c=!0,k=!0,a&&(a.k=!1);continue}else fS(c.q)}return new bi((_n(),!!k),!!h)}function cn(){cn=R,PH=(He(),Kue),phn=Bue,Cj=qan,Ws=Fue,C2=Uan,w0=Gan,qw=zan,Sv=Xan,Pv=Van,IH=iA,g0=qd,OH=_ue,X8=Qan,yO=$3,Tj=(htn(),ete),T2=tte,Kd=ite,S2=rte,qte=new Di(Jj,Y(0)),Cv=Yee,ghn=Zee,O3=nte,Chn=Cte,vhn=ote,khn=hte,LH=pte,yhn=dte,jhn=wte,jO=Ote,NH=Ste,Mhn=jte,Ehn=kte,Thn=Mte,d0=zee,z8=Xee,MH=hee,Wfn=aee,Vte=k9,Wte=cA,Xte=Qj,zte=rA,mhn=(Gp(),Yw),new Di(x3,mhn),lhn=new fb(12),hhn=new Di(M1,lhn),zfn=(El(),Bv),$l=new Di(yan,zfn),Fw=new Di(oo,0),Ute=new Di(sU,Y(1)),oO=new Di(x2,Gm),Rd=tA,Ft=v9,Tv=H2,xte=zj,Ch=Pue,Kw=B2,Gte=new Di(fU,(_n(),!0)),Bw=Xj,Dd=nU,xd=Hd,kO=Ca,SH=Vw,Gfn=(ci(),Jf),Lo=new Di(_d,Gfn),a0=F2,mO=Pan,_w=Ww,Hte=oU,bhn=_an,dhn=(Kg(),eE),new Di(xan,dhn),Bte=iU,Fte=rU,_te=cU,Kte=tU,AH=ute,$d=Dee,ja=Nee,V8=cte,ou=Cee,Nd=tee,U8=eee,l0=Fne,Hfn=_ne,kH=Gne,Mj=Hne,yH=Zne,uhn=$ee,ohn=xee,ehn=kee,vO=Jee,CH=Bee,TH=wee,fhn=Uee,Vfn=see,EH=fee,vH=Gj,shn=Ree,fO=Lne,Bfn=Ane,sO=One,Yfn=mee,Qfn=pee,Zfn=vee,Ev=_2,Rr=k0,m1=Ean,Sh=Zq,jH=Yq,qfn=Xne,v1=uU,q8=Aue,wO=Nue,b0=Kan,ahn=Due,Mv=$ue,ihn=Pee,rhn=Oee,Hw=D3,pH=Ine,chn=Lee,bO=cee,dO=ree,pO=xv,thn=Eee,G8=_ee,Sj=Wan,Ufn=iee,whn=Qee,Xfn=uee,Nte=Wne,Dte=Jne,Rte=Tee,$te=Qne,nhn=eU,gO=See,aO=Yne,Yh=Bne,_fn=xne,hO=Dne,Ffn=$ne,lO=Rne,Rw=Nne,mH=Kne,Jfn=gee}function Ze(n){var e,t,i;if(n.d>=n.j){n.a=-1,n.c=1;return}if(e=Xi(n.i,n.d++),n.a=e,n.b==1){switch(e){case 92:if(i=10,n.d>=n.j)throw T(new Ne($e((Oe(),qP))));n.a=Xi(n.i,n.d++);break;case 45:(n.e&512)==512&&n.d<n.j&&Xi(n.i,n.d)==91?(++n.d,i=24):i=0;break;case 91:if((n.e&512)!=512&&n.d<n.j&&Xi(n.i,n.d)==58){++n.d,i=20;break}default:(e&64512)==Py&&n.d<n.j&&(t=Xi(n.i,n.d),(t&64512)==56320&&(n.a=hr+(e-Py<<10)+t-56320,++n.d)),i=0}n.c=i;return}switch(e){case 124:i=2;break;case 42:i=3;break;case 43:i=4;break;case 63:i=5;break;case 41:i=7;break;case 46:i=8;break;case 91:i=9;break;case 94:i=11;break;case 36:i=12;break;case 40:if(i=6,n.d>=n.j||Xi(n.i,n.d)!=63)break;if(++n.d>=n.j)throw T(new Ne($e((Oe(),jF))));switch(e=Xi(n.i,n.d++),e){case 58:i=13;break;case 61:i=14;break;case 33:i=15;break;case 91:i=19;break;case 62:i=18;break;case 60:if(n.d>=n.j)throw T(new Ne($e((Oe(),jF))));if(e=Xi(n.i,n.d++),e==61)i=16;else if(e==33)i=17;else throw T(new Ne($e((Oe(),IWn))));break;case 35:for(;n.d<n.j&&(e=Xi(n.i,n.d++),e!=41););if(e!=41)throw T(new Ne($e((Oe(),OWn))));i=21;break;default:if(e==45||97<=e&&e<=122||65<=e&&e<=90){--n.d,i=22;break}else if(e==40){i=23;break}throw T(new Ne($e((Oe(),jF))))}break;case 92:if(i=10,n.d>=n.j)throw T(new Ne($e((Oe(),qP))));n.a=Xi(n.i,n.d++);break;default:i=0}n.c=i}function BNe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j;if(t.Ug("Process compaction",1),!!on(un(v(e,(lc(),Tln))))){for(r=u(v(e,v0),88),p=$(B(v(e,sq))),aOe(n,e,r),tNe(e,p/2/2),m=e.b,ud(m,new akn(r)),l=ge(m,0);l.b!=l.d.c;)if(h=u(be(l),40),!on(un(v(h,(pt(),Ta))))){if(i=KSe(h,r),k=NIe(h,e),d=0,g=0,i)switch(j=i.e,r.g){case 2:d=j.a-p-h.f.a,k.e.a-p-h.f.a<d&&(d=k.e.a-p-h.f.a),g=d+h.f.a;break;case 1:d=j.a+i.f.a+p,k.e.a+p>d&&(d=k.e.a+k.f.a+p),g=d+h.f.a;break;case 4:d=j.b-p-h.f.b,k.e.b-p-h.f.b<d&&(d=k.e.b-p-h.f.b),g=d+h.f.b;break;case 3:d=j.b+i.f.b+p,k.e.b+p>d&&(d=k.e.b+k.f.b+p),g=d+h.f.b}else if(k)switch(r.g){case 2:d=k.e.a-p-h.f.a,g=d+h.f.a;break;case 1:d=k.e.a+k.f.a+p,g=d+h.f.a;break;case 4:d=k.e.b-p-h.f.b,g=d+h.f.b;break;case 3:d=k.e.b+k.f.b+p,g=d+h.f.b}x(v(e,oq))===x((d5(),Nj))?(c=d,s=g,f=im(ut(new Cn(null,new On(n.a,16)),new eTn(c,s))),f.a!=null?r==(ci(),Kr)||r==Xr?h.e.a=d:h.e.b=d:(r==(ci(),Kr)||r==us?f=im(ut(A$n(new Cn(null,new On(n.a,16))),new dkn(c))):f=im(ut(A$n(new Cn(null,new On(n.a,16))),new bkn(c))),f.a!=null&&(r==Kr||r==Xr?h.e.a=$(B((oe(f.a!=null),u(f.a,42)).a)):h.e.b=$(B((oe(f.a!=null),u(f.a,42)).a)))),f.a!=null&&(a=qr(n.a,(oe(f.a!=null),f.a),0),a>0&&a!=u(v(h,Ph),17).a&&(U(h,pln,(_n(),!0)),U(h,Ph,Y(a))))):r==(ci(),Kr)||r==Xr?h.e.a=d:h.e.b=d}t.Vg()}}function kzn(n){var e,t,i,r,c,s,f,h,l;for(n.b=1,Ze(n),e=null,n.c==0&&n.a==94?(Ze(n),e=(nt(),nt(),new yo(4)),xc(e,0,cv),f=new yo(4)):f=(nt(),nt(),new yo(4)),r=!0;(l=n.c)!=1;){if(l==0&&n.a==93&&!r){e&&(V5(e,f),f=e);break}if(t=n.a,i=!1,l==10)switch(t){case 100:case 68:case 119:case 87:case 115:case 83:gw(f,Om(t)),i=!0;break;case 105:case 73:case 99:case 67:t=(gw(f,Om(t)),-1),t<0&&(i=!0);break;case 112:case 80:if(h=Dnn(n,t),!h)throw T(new Ne($e((Oe(),EF))));gw(f,h),i=!0;break;default:t=wen(n)}else if(l==24&&!r){if(e&&(V5(e,f),f=e),c=kzn(n),V5(f,c),n.c!=0||n.a!=93)throw T(new Ne($e((Oe(),BWn))));break}if(Ze(n),!i){if(l==0){if(t==91)throw T(new Ne($e((Oe(),Kcn))));if(t==93)throw T(new Ne($e((Oe(),Bcn))));if(t==45&&!r&&n.a!=93)throw T(new Ne($e((Oe(),MF))))}if(n.c!=0||n.a!=45||t==45&&r)xc(f,t,t);else{if(Ze(n),(l=n.c)==1)throw T(new Ne($e((Oe(),UP))));if(l==0&&n.a==93)xc(f,t,t),xc(f,45,45);else{if(l==0&&n.a==93||l==24)throw T(new Ne($e((Oe(),MF))));if(s=n.a,l==0){if(s==91)throw T(new Ne($e((Oe(),Kcn))));if(s==93)throw T(new Ne($e((Oe(),Bcn))));if(s==45)throw T(new Ne($e((Oe(),MF))))}else l==10&&(s=wen(n));if(Ze(n),t>s)throw T(new Ne($e((Oe(),HWn))));xc(f,t,s)}}}r=!1}if(n.c==1)throw T(new Ne($e((Oe(),UP))));return Gg(f),z5(f),n.b=0,Ze(n),f}function FNe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_;if(t.Ug("Coffman-Graham Layering",1),e.a.c.length==0){t.Vg();return}for(_=u(v(e,(cn(),thn)),17).a,h=0,s=0,g=new M(e.a);g.a<g.c.c.length;)for(d=u(E(g),10),d.p=h++,c=new ie(ce(Qt(d).a.Kc(),new En));pe(c);)r=u(fe(c),18),r.p=s++;for(n.d=F(so,Xh,28,h,16,1),n.a=F(so,Xh,28,s,16,1),n.b=F(ye,_e,28,h,15,1),n.e=F(ye,_e,28,h,15,1),n.f=F(ye,_e,28,h,15,1),gC(n.c),Rke(n,e),m=new dT(new A7n(n)),D=new M(e.a);D.a<D.c.c.length;){for(O=u(E(D),10),c=new ie(ce(ji(O).a.Kc(),new En));pe(c);)r=u(fe(c),18),n.a[r.p]||++n.b[O.p];n.b[O.p]==0&&Tp(ym(m,O),_m)}for(f=0;m.b.c.length!=0;)for(O=u(w$(m),10),n.f[O.p]=f++,c=new ie(ce(Qt(O).a.Kc(),new En));pe(c);)r=u(fe(c),18),!n.a[r.p]&&(j=r.d.i,--n.b[j.p],In(n.c,j,Y(n.f[O.p])),n.b[j.p]==0&&Tp(ym(m,j),_m));for(p=new dT(new L7n(n)),A=new M(e.a);A.a<A.c.c.length;){for(O=u(E(A),10),c=new ie(ce(Qt(O).a.Kc(),new En));pe(c);)r=u(fe(c),18),n.a[r.p]||++n.e[O.p];n.e[O.p]==0&&Tp(ym(p,O),_m)}for(a=new Z,i=mOn(e,a);p.b.c.length!=0;)for(P=u(w$(p),10),(i.a.c.length>=_||!D8e(P,i))&&(i=mOn(e,a)),$i(P,i),c=new ie(ce(ji(P).a.Kc(),new En));pe(c);)r=u(fe(c),18),!n.a[r.p]&&(k=r.c.i,--n.e[k.p],n.e[k.p]==0&&Tp(ym(p,k),_m));for(l=a.c.length-1;l>=0;--l)nn(e.b,(Nn(l,a.c.length),u(a.c[l],30)));e.a.c.length=0,t.Vg()}function yzn(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D;D=!1;do for(D=!1,c=e?new qa(n.a.b).a.gc()-2:1;e?c>=0:c<new qa(n.a.b).a.gc();c+=e?-1:1)for(r=kJ(n.a,Y(c)),p=0;p<r.b;p++)if(d=u(Zo(r,p),10),!!kt(d,(W(),dt))&&!(_ke(n.a,Y(c))&&n.r==(ps(),p0)||Hke(n.a,Y(c))&&n.r==(ps(),Uw))){for(A=!0,P=0;P<r.b;P++)j=u(Zo(r,P),10),kt(j,dt)&&(e&&u(v(d,dt),17).a<u(v(j,dt),17).a||!e&&u(v(d,dt),17).a>u(v(j,dt),17).a)&&(A=!1);if(A){for(h=e?c+1:c-1,f=kJ(n.a,Y(h)),s=!1,O=!0,i=!1,a=ge(f,0);a.b!=a.d.c;)l=u(be(a),10),kt(l,dt)?l.p!=d.p&&(s=s|(e?u(v(l,dt),17).a<u(v(d,dt),17).a:u(v(l,dt),17).a>u(v(d,dt),17).a),O=!1):!s&&O&&l.k==(Vn(),Sc)&&(i=!0,e?g=u(fe(new ie(ce(ji(l).a.Kc(),new En))),18).c.i:g=u(fe(new ie(ce(Qt(l).a.Kc(),new En))),18).d.i,g==d&&(e?t=u(fe(new ie(ce(Qt(l).a.Kc(),new En))),18).d.i:t=u(fe(new ie(ce(ji(l).a.Kc(),new En))),18).c.i,(e?u(x0(n.a,t),17).a-u(x0(n.a,g),17).a:u(x0(n.a,g),17).a-u(x0(n.a,t),17).a)<=2&&(O=!1)));if(i&&O&&(e?t=u(fe(new ie(ce(Qt(d).a.Kc(),new En))),18).d.i:t=u(fe(new ie(ce(ji(d).a.Kc(),new En))),18).c.i,(e?u(x0(n.a,t),17).a-u(x0(n.a,d),17).a:u(x0(n.a,d),17).a-u(x0(n.a,t),17).a)<=2&&t.k==(Vn(),zt)&&(O=!1)),s||O){for(k=YHn(n,d,e);k.a.gc()!=0;)m=u(k.a.ec().Kc().Pb(),10),k.a.Bc(m)!=null,Ki(k,YHn(n,m,e));--p,D=!0}}}while(D)}function _Ne(n){Te(n.c,Ke,S(C(fn,1),J,2,6,[Ji,"http://www.w3.org/2001/XMLSchema#decimal"])),Te(n.d,Ke,S(C(fn,1),J,2,6,[Ji,"http://www.w3.org/2001/XMLSchema#integer"])),Te(n.e,Ke,S(C(fn,1),J,2,6,[Ji,"http://www.w3.org/2001/XMLSchema#boolean"])),Te(n.f,Ke,S(C(fn,1),J,2,6,[Ji,"EBoolean",Qe,"EBoolean:Object"])),Te(n.i,Ke,S(C(fn,1),J,2,6,[Ji,"http://www.w3.org/2001/XMLSchema#byte"])),Te(n.g,Ke,S(C(fn,1),J,2,6,[Ji,"http://www.w3.org/2001/XMLSchema#hexBinary"])),Te(n.j,Ke,S(C(fn,1),J,2,6,[Ji,"EByte",Qe,"EByte:Object"])),Te(n.n,Ke,S(C(fn,1),J,2,6,[Ji,"EChar",Qe,"EChar:Object"])),Te(n.t,Ke,S(C(fn,1),J,2,6,[Ji,"http://www.w3.org/2001/XMLSchema#double"])),Te(n.u,Ke,S(C(fn,1),J,2,6,[Ji,"EDouble",Qe,"EDouble:Object"])),Te(n.F,Ke,S(C(fn,1),J,2,6,[Ji,"http://www.w3.org/2001/XMLSchema#float"])),Te(n.G,Ke,S(C(fn,1),J,2,6,[Ji,"EFloat",Qe,"EFloat:Object"])),Te(n.I,Ke,S(C(fn,1),J,2,6,[Ji,"http://www.w3.org/2001/XMLSchema#int"])),Te(n.J,Ke,S(C(fn,1),J,2,6,[Ji,"EInt",Qe,"EInt:Object"])),Te(n.N,Ke,S(C(fn,1),J,2,6,[Ji,"http://www.w3.org/2001/XMLSchema#long"])),Te(n.O,Ke,S(C(fn,1),J,2,6,[Ji,"ELong",Qe,"ELong:Object"])),Te(n.Z,Ke,S(C(fn,1),J,2,6,[Ji,"http://www.w3.org/2001/XMLSchema#short"])),Te(n.$,Ke,S(C(fn,1),J,2,6,[Ji,"EShort",Qe,"EShort:Object"])),Te(n._,Ke,S(C(fn,1),J,2,6,[Ji,"http://www.w3.org/2001/XMLSchema#string"]))}function HNe(n,e,t,i,r,c,s){var f,h,l,a,d,g,p,m;return g=u(i.a,17).a,p=u(i.b,17).a,d=n.b,m=n.c,f=0,a=0,e==(ci(),Kr)||e==Xr?(a=a7(lKn(U0(_r(new Cn(null,new On(t.b,16)),new x4n),new m4n))),d.e.b+d.f.b/2>a?(l=++p,f=$(B(ho(_0(_r(new Cn(null,new On(t.b,16)),new rTn(r,l)),new v4n))))):(h=++g,f=$(B(ho(Sp(_r(new Cn(null,new On(t.b,16)),new cTn(r,h)),new k4n)))))):(a=a7(lKn(U0(_r(new Cn(null,new On(t.b,16)),new M4n),new p4n))),d.e.a+d.f.a/2>a?(l=++p,f=$(B(ho(_0(_r(new Cn(null,new On(t.b,16)),new tTn(r,l)),new y4n))))):(h=++g,f=$(B(ho(Sp(_r(new Cn(null,new On(t.b,16)),new iTn(r,h)),new j4n)))))),e==Kr?(ir(n.a,new V($(B(v(d,(pt(),jf))))-r,f)),ir(n.a,new V(m.e.a+m.f.a+r+c,f)),ir(n.a,new V(m.e.a+m.f.a+r+c,m.e.b+m.f.b/2)),ir(n.a,new V(m.e.a+m.f.a,m.e.b+m.f.b/2))):e==Xr?(ir(n.a,new V($(B(v(d,(pt(),Js))))+r,d.e.b+d.f.b/2)),ir(n.a,new V(d.e.a+d.f.a+r,f)),ir(n.a,new V(m.e.a-r-c,f)),ir(n.a,new V(m.e.a-r-c,m.e.b+m.f.b/2)),ir(n.a,new V(m.e.a,m.e.b+m.f.b/2))):e==us?(ir(n.a,new V(f,$(B(v(d,(pt(),jf))))-r)),ir(n.a,new V(f,m.e.b+m.f.b+r+c)),ir(n.a,new V(m.e.a+m.f.a/2,m.e.b+m.f.b+r+c)),ir(n.a,new V(m.e.a+m.f.a/2,m.e.b+m.f.b+r))):(n.a.b==0||(u($s(n.a),8).b=$(B(v(d,(pt(),Js))))+r*u(s.b,17).a),ir(n.a,new V(f,$(B(v(d,(pt(),Js))))+r*u(s.b,17).a)),ir(n.a,new V(f,m.e.b-r*u(s.a,17).a-c))),new bi(Y(g),Y(p))}function qNe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p;if(s=!0,d=null,i=null,r=null,e=!1,p=$oe,l=null,c=null,f=0,h=yx(n,f,Fdn,_dn),h<n.length&&(zn(h,n.length),n.charCodeAt(h)==58)&&(d=(Ri(f,h,n.length),n.substr(f,h-f)),f=h+1),t=d!=null&&t7(jA,d.toLowerCase()),t){if(h=n.lastIndexOf("!/"),h==-1)throw T(new Gn("no archive separator"));s=!0,i=qo(n,f,++h),f=h}else f>=0&&Sn(n.substr(f,2),"//")?(f+=2,h=yx(n,f,L9,N9),i=(Ri(f,h,n.length),n.substr(f,h-f)),f=h):d!=null&&(f==n.length||(zn(f,n.length),n.charCodeAt(f)!=47))&&(s=!1,h=UX(n,wu(35),f),h==-1&&(h=n.length),i=(Ri(f,h,n.length),n.substr(f,h-f)),f=h);if(!t&&f<n.length&&(zn(f,n.length),n.charCodeAt(f)==47)&&(h=yx(n,f+1,L9,N9),a=(Ri(f+1,h,n.length),n.substr(f+1,h-(f+1))),a.length>0&&Xi(a,a.length-1)==58&&(r=a,f=h)),f<n.length&&(zn(f,n.length),n.charCodeAt(f)==47)&&(++f,e=!0),f<n.length&&(zn(f,n.length),n.charCodeAt(f)!=63)&&(zn(f,n.length),n.charCodeAt(f)!=35)){for(g=new Z;f<n.length&&(zn(f,n.length),n.charCodeAt(f)!=63)&&(zn(f,n.length),n.charCodeAt(f)!=35);)h=yx(n,f,L9,N9),nn(g,(Ri(f,h,n.length),n.substr(f,h-f))),f=h,f<n.length&&(zn(f,n.length),n.charCodeAt(f)==47)&&(q6e(n,++f)||g.c.push(""));p=F(fn,J,2,g.c.length,6,1),Rf(g,p)}return f<n.length&&(zn(f,n.length),n.charCodeAt(f)==63)&&(h=w4(n,35,++f),h==-1&&(h=n.length),l=(Ri(f,h,n.length),n.substr(f,h-f)),f=h),f<n.length&&(c=DW(n,++f)),yAe(s,d,i,r,p,l),new jR(s,d,i,r,e,p,l,c)}function jzn(){jzn=R,YR(),qe=new Mb,In(qe,(en(),ef),Yf),In(qe,Cs,Yf),In(qe,Wu,Yf),In(qe,tf,Yf),In(qe,vu,Yf),In(qe,Ju,Yf),In(qe,tf,ef),In(qe,Yf,os),In(qe,ef,os),In(qe,Cs,os),In(qe,Wu,os),In(qe,mu,os),In(qe,tf,os),In(qe,vu,os),In(qe,Ju,os),In(qe,su,os),In(qe,Yf,Do),In(qe,ef,Do),In(qe,os,Do),In(qe,Cs,Do),In(qe,Wu,Do),In(qe,mu,Do),In(qe,tf,Do),In(qe,su,Do),In(qe,$o,Do),In(qe,vu,Do),In(qe,xu,Do),In(qe,Ju,Do),In(qe,ef,Cs),In(qe,Wu,Cs),In(qe,tf,Cs),In(qe,Ju,Cs),In(qe,ef,Wu),In(qe,Cs,Wu),In(qe,tf,Wu),In(qe,Wu,Wu),In(qe,vu,Wu),In(qe,Yf,ss),In(qe,ef,ss),In(qe,os,ss),In(qe,Do,ss),In(qe,Cs,ss),In(qe,Wu,ss),In(qe,mu,ss),In(qe,tf,ss),In(qe,$o,ss),In(qe,su,ss),In(qe,Ju,ss),In(qe,vu,ss),In(qe,Uc,ss),In(qe,Yf,$o),In(qe,ef,$o),In(qe,os,$o),In(qe,Cs,$o),In(qe,Wu,$o),In(qe,mu,$o),In(qe,tf,$o),In(qe,su,$o),In(qe,Ju,$o),In(qe,xu,$o),In(qe,Uc,$o),In(qe,ef,su),In(qe,Cs,su),In(qe,Wu,su),In(qe,tf,su),In(qe,$o,su),In(qe,Ju,su),In(qe,vu,su),In(qe,Yf,pu),In(qe,ef,pu),In(qe,os,pu),In(qe,Cs,pu),In(qe,Wu,pu),In(qe,mu,pu),In(qe,tf,pu),In(qe,su,pu),In(qe,Ju,pu),In(qe,ef,vu),In(qe,os,vu),In(qe,Do,vu),In(qe,Wu,vu),In(qe,Yf,xu),In(qe,ef,xu),In(qe,Do,xu),In(qe,Cs,xu),In(qe,Wu,xu),In(qe,mu,xu),In(qe,tf,xu),In(qe,tf,Uc),In(qe,Wu,Uc),In(qe,su,Yf),In(qe,su,Cs),In(qe,su,os),In(qe,mu,Yf),In(qe,mu,ef),In(qe,mu,Do)}function UNe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X;switch(t.Ug("Brandes & Koepf node placement",1),n.a=e,n.c=CIe(e),i=u(v(e,(cn(),CH)),281),p=on(un(v(e,G8))),n.d=i==(Vk(),YI)&&!p||i==iH,gAe(n,e),_=null,X=null,P=null,O=null,j=(Mo(4,mw),new Gc(4)),u(v(e,CH),281).g){case 3:P=new Wg(e,n.c.d,(If(),Bd),(fh(),y1)),Fn(j.c,P);break;case 1:O=new Wg(e,n.c.d,(If(),Xf),(fh(),y1)),Fn(j.c,O);break;case 4:_=new Wg(e,n.c.d,(If(),Bd),(fh(),m0)),Fn(j.c,_);break;case 2:X=new Wg(e,n.c.d,(If(),Xf),(fh(),m0)),Fn(j.c,X);break;default:P=new Wg(e,n.c.d,(If(),Bd),(fh(),y1)),O=new Wg(e,n.c.d,Xf,y1),_=new Wg(e,n.c.d,Bd,m0),X=new Wg(e,n.c.d,Xf,m0),Fn(j.c,_),Fn(j.c,X),Fn(j.c,P),Fn(j.c,O)}for(r=new zMn(e,n.c),f=new M(j);f.a<f.c.c.length;)c=u(E(f),185),cNe(r,c,n.b),tOe(c);for(g=new iFn(e,n.c),h=new M(j);h.a<h.c.c.length;)c=u(E(h),185),PAe(g,c);if(t._g())for(l=new M(j);l.a<l.c.c.length;)c=u(E(l),185),t.bh(c+" size is "+gR(c));if(d=null,n.d&&(a=JLe(n,j,n.c.d),JUn(e,a,t)&&(d=a)),!d)for(l=new M(j);l.a<l.c.c.length;)c=u(E(l),185),JUn(e,c,t)&&(!d||gR(d)>gR(c))&&(d=c);for(!d&&(d=(Nn(0,j.c.length),u(j.c[0],185))),k=new M(e.b);k.a<k.c.c.length;)for(m=u(E(k),30),D=new M(m.a);D.a<D.c.c.length;)A=u(E(D),10),A.n.b=$(d.p[A.p])+$(d.d[A.p]);for(t._g()&&(t.bh("Chosen node placement: "+d),t.bh("Blocks: "+aHn(d)),t.bh("Classes: "+FMe(d,t)),t.bh("Marked edges: "+n.b)),s=new M(j);s.a<s.c.c.length;)c=u(E(s),185),c.g=null,c.b=null,c.a=null,c.d=null,c.j=null,c.i=null,c.p=null;e3e(n.c),n.b.a.$b(),t.Vg()}function GNe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn,Bn,te;if(n.c.length==1)return kFn((Nn(0,n.c.length),u(n.c[0],121))),Nn(0,n.c.length),u(n.c[0],121);if(n.c.length<=0)return new tk;for(h=new M(n);h.a<h.c.c.length;){for(s=u(E(h),121),O=0,m=et,k=et,g=Wi,p=Wi,P=ge(s.b,0);P.b!=P.d.c;)j=u(be(P),40),O+=u(v(j,(lc(),RO)),17).a,m=y.Math.min(m,j.e.a),k=y.Math.min(k,j.e.b),g=y.Math.max(g,j.e.a+j.f.a),p=y.Math.max(p,j.e.b+j.f.b);U(s,(lc(),RO),Y(O)),U(s,(pt(),Lv),new V(m,k)),U(s,Dj,new V(g,p))}for(Ln(),Yt(n,new q3n),_=new tk,Ur(_,(Nn(0,n.c.length),u(n.c[0],96))),d=0,Rn=0,l=new M(n);l.a<l.c.c.length;)s=u(E(l),121),X=mi(Fi(u(v(s,(pt(),Dj)),8)),u(v(s,Lv),8)),d=y.Math.max(d,X.a),Rn+=X.a*X.b;for(d=y.Math.max(d,y.Math.sqrt(Rn)*$(B(v(_,(lc(),yre))))),tn=$(B(v(_,sq))),Bn=0,te=0,a=0,e=tn,f=new M(n);f.a<f.c.c.length;)s=u(E(f),121),X=mi(Fi(u(v(s,(pt(),Dj)),8)),u(v(s,Lv),8)),Bn+X.a>d&&(Bn=0,te+=a+tn,a=0),lUn(_,s,Bn,te),e=y.Math.max(e,Bn+X.a),a=y.Math.max(a,X.b),Bn+=X.a+tn;for(D=new de,t=new de,kn=new M(n);kn.a<kn.c.c.length;)for(yn=u(E(kn),121),i=on(un(v(yn,(He(),zj)))),A=yn.q?yn.q:Wh,c=A.vc().Kc();c.Ob();)r=u(c.Pb(),44),Zc(D,r.ld())?x(u(r.ld(),149).Sg())!==x(r.md())&&(i&&Zc(t,r.ld())?(fl(),""+u(r.ld(),149).Pg()):(Ve(D,u(r.ld(),149),r.md()),U(_,u(r.ld(),149),r.md()),i&&Ve(t,u(r.ld(),149),r.md()))):(Ve(D,u(r.ld(),149),r.md()),U(_,u(r.ld(),149),r.md()));return kFn(_),_}function XS(n,e){switch(n.e){case 0:case 2:case 4:case 6:case 42:case 44:case 46:case 48:case 8:case 10:case 12:case 14:case 16:case 18:case 20:case 22:case 24:case 26:case 28:case 30:case 32:case 34:case 36:case 38:return new UOn(n.b,n.a,e,n.c);case 1:return new $M(n.a,e,At(e.Dh(),n.c));case 43:return new xCn(n.a,e,At(e.Dh(),n.c));case 3:return new ti(n.a,e,At(e.Dh(),n.c));case 45:return new Cu(n.a,e,At(e.Dh(),n.c));case 41:return new Ou(u(gs(n.c),29),n.a,e,At(e.Dh(),n.c));case 50:return new rxn(u(gs(n.c),29),n.a,e,At(e.Dh(),n.c));case 5:return new yV(n.a,e,At(e.Dh(),n.c),n.d.n);case 47:return new WSn(n.a,e,At(e.Dh(),n.c),n.d.n);case 7:return new q(n.a,e,At(e.Dh(),n.c),n.d.n);case 49:return new jp(n.a,e,At(e.Dh(),n.c),n.d.n);case 9:return new $Cn(n.a,e,At(e.Dh(),n.c));case 11:return new DCn(n.a,e,At(e.Dh(),n.c));case 13:return new $X(n.a,e,At(e.Dh(),n.c));case 15:return new QM(n.a,e,At(e.Dh(),n.c));case 17:return new RCn(n.a,e,At(e.Dh(),n.c));case 19:return new Eg(n.a,e,At(e.Dh(),n.c));case 21:return new xX(n.a,e,At(e.Dh(),n.c));case 23:return new R7(n.a,e,At(e.Dh(),n.c));case 25:return new YSn(n.a,e,At(e.Dh(),n.c),n.d.n);case 27:return new Dn(n.a,e,At(e.Dh(),n.c),n.d.n);case 29:return new QSn(n.a,e,At(e.Dh(),n.c),n.d.n);case 31:return new JSn(n.a,e,At(e.Dh(),n.c),n.d.n);case 33:return new EV(n.a,e,At(e.Dh(),n.c),n.d.n);case 35:return new jV(n.a,e,At(e.Dh(),n.c),n.d.n);case 37:return new DN(n.a,e,At(e.Dh(),n.c),n.d.n);case 39:return new bT(n.a,e,At(e.Dh(),n.c),n.d.n);case 40:return new Bt(e,At(e.Dh(),n.c));default:throw T(new ec("Unknown feature style: "+n.e))}}function Ezn(n){var e,t,i,r,c,s,f,h;for(c=0,r=n.a.b,h=ge(n.a,0);h.b!=h.d.c;){if(f=u(be(h),240),s=(c+1)/(r+1),!n.c&&!n.d)return;n.c&&!n.d?(n.g=!0,n.b==(ci(),Kr)?(i=n.c.e.b+n.c.f.b+n.e*(c+1),e=new V($(B(v(n.c,(pt(),Js))))+n.e,i),t=new V($(B(v(n.c,jf)))-n.e,i)):n.b==Xr?(i=n.c.e.b+n.c.f.b+n.e*(c+1),e=new V($(B(v(n.c,(pt(),jf))))-n.e,i),t=new V($(B(v(n.c,Js)))+n.e,i)):n.b==us?(i=n.c.e.a+n.c.f.a+n.e*(c+1),e=new V(i,$(B(v(n.c,(pt(),Js))))+n.e),t=new V(i,$(B(v(n.c,jf)))-n.e)):(i=n.c.e.a+n.c.f.a+n.e*(c+1),e=new V(i,$(B(v(n.c,(pt(),jf))))-n.e),t=new V(i,$(B(v(n.c,Js)))+n.e))):n.c&&n.d?n.b==(ci(),Kr)?(i=n.d.e.b*s+(n.c.e.b+n.c.f.b)*(1-s),e=new V($(B(v(n.c,(pt(),Js))))+n.e,i),t=new V($(B(v(n.c,jf)))-n.e,i)):n.b==Xr?(i=n.d.e.b*s+(n.c.e.b+n.c.f.b)*(1-s),e=new V($(B(v(n.c,(pt(),jf))))-n.e,i),t=new V($(B(v(n.c,Js)))+n.e,i)):n.b==us?(i=n.d.e.a*s+(n.c.e.a+n.c.f.a)*(1-s),e=new V(i,$(B(v(n.c,(pt(),Js))))+n.e),t=new V(i,$(B(v(n.c,jf)))-n.e)):(i=n.d.e.a*s+(n.c.e.a+n.c.f.a)*(1-s),e=new V(i,$(B(v(n.c,(pt(),jf))))-n.e),t=new V(i,$(B(v(n.c,Js)))+n.e)):(n.f=!0,n.b==(ci(),Kr)?(i=n.d.e.b-n.e*(c+1),e=new V($(B(v(n.d,(pt(),Js))))+n.e,i),t=new V($(B(v(n.d,jf)))-n.e,i)):n.b==Xr?(i=n.d.e.b-n.e*(c+1),e=new V($(B(v(n.d,(pt(),jf))))-n.e,i),t=new V($(B(v(n.d,Js)))+n.e,i)):n.b==us?(i=n.d.e.a-n.e*(c+1),e=new V(i,$(B(v(n.d,(pt(),Js))))+n.e),t=new V(i,$(B(v(n.d,jf)))-n.e)):(i=n.d.e.a-n.e*(c+1),e=new V(i,$(B(v(n.d,(pt(),jf))))-n.e),t=new V(i,$(B(v(n.d,Js)))+n.e))),u(f.a,8).a=e.a,u(f.a,8).b=e.b,f.b.a=t.a,f.b.b=t.b,++c}}function zNe(n,e,t,i,r,c){var s,f,h,l,a,d,g,p,m,k,j,P;switch(e){case 71:f=i.q.getFullYear()-ha>=-1900?1:0,t>=4?Be(n,S(C(fn,1),J,2,6,[Kzn,Bzn])[f]):Be(n,S(C(fn,1),J,2,6,["BC","AD"])[f]);break;case 121:f9e(n,t,i);break;case 77:PPe(n,t,i);break;case 107:h=r.q.getHours(),h==0?Kh(n,24,t):Kh(n,h,t);break;case 83:_Te(n,t,r);break;case 69:a=i.q.getDay(),t==5?Be(n,S(C(fn,1),J,2,6,["S","M","T","W","T","F","S"])[a]):t==4?Be(n,S(C(fn,1),J,2,6,[vK,kK,yK,jK,EK,MK,TK])[a]):Be(n,S(C(fn,1),J,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])[a]);break;case 97:r.q.getHours()>=12&&r.q.getHours()<24?Be(n,S(C(fn,1),J,2,6,["AM","PM"])[1]):Be(n,S(C(fn,1),J,2,6,["AM","PM"])[0]);break;case 104:d=r.q.getHours()%12,d==0?Kh(n,12,t):Kh(n,d,t);break;case 75:g=r.q.getHours()%12,Kh(n,g,t);break;case 72:p=r.q.getHours(),Kh(n,p,t);break;case 99:m=i.q.getDay(),t==5?Be(n,S(C(fn,1),J,2,6,["S","M","T","W","T","F","S"])[m]):t==4?Be(n,S(C(fn,1),J,2,6,[vK,kK,yK,jK,EK,MK,TK])[m]):t==3?Be(n,S(C(fn,1),J,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])[m]):Kh(n,m,1);break;case 76:k=i.q.getMonth(),t==5?Be(n,S(C(fn,1),J,2,6,["J","F","M","A","M","J","J","A","S","O","N","D"])[k]):t==4?Be(n,S(C(fn,1),J,2,6,[sK,fK,hK,lK,c3,aK,dK,bK,wK,gK,pK,mK])[k]):t==3?Be(n,S(C(fn,1),J,2,6,["Jan","Feb","Mar","Apr",c3,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"])[k]):Kh(n,k+1,t);break;case 81:j=i.q.getMonth()/3|0,t<4?Be(n,S(C(fn,1),J,2,6,["Q1","Q2","Q3","Q4"])[j]):Be(n,S(C(fn,1),J,2,6,["1st quarter","2nd quarter","3rd quarter","4th quarter"])[j]);break;case 100:P=i.q.getDate(),Kh(n,P,t);break;case 109:l=r.q.getMinutes(),Kh(n,l,t);break;case 115:s=r.q.getSeconds(),Kh(n,s,t);break;case 122:t<4?Be(n,c.c[0]):Be(n,c.c[1]);break;case 118:Be(n,c.b);break;case 90:t<3?Be(n,DEe(c)):t==3?Be(n,BEe(c)):Be(n,FEe(c.a));break;default:return!1}return!0}function ftn(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn,Bn,te,xe;if(nUn(e),h=u(N((!e.b&&(e.b=new Dn(he,e,4,7)),e.b),0),84),a=u(N((!e.c&&(e.c=new Dn(he,e,5,8)),e.c),0),84),f=Gr(h),l=Gr(a),s=(!e.a&&(e.a=new q(Tt,e,6,6)),e.a).i==0?null:u(N((!e.a&&(e.a=new q(Tt,e,6,6)),e.a),0),166),tn=u(ee(n.a,f),10),Bn=u(ee(n.a,l),10),yn=null,te=null,L(h,193)&&(X=u(ee(n.a,h),305),L(X,12)?yn=u(X,12):L(X,10)&&(tn=u(X,10),yn=u(sn(tn.j,0),12))),L(a,193)&&(Rn=u(ee(n.a,a),305),L(Rn,12)?te=u(Rn,12):L(Rn,10)&&(Bn=u(Rn,10),te=u(sn(Bn.j,0),12))),!tn||!Bn)throw T(new hp("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(k=new Eb,Ur(k,e),U(k,(W(),st),e),U(k,(cn(),Rr),null),p=u(v(i,Hc),21),tn==Bn&&p.Fc((pr(),K8)),yn||(_=(gr(),Jc),kn=null,s&&mg(u(v(tn,Ft),101))&&(kn=new V(s.j,s.k),ULn(kn,V7(e)),mNn(kn,t),Y0(l,f)&&(_=Vu,tt(kn,tn.n))),yn=eGn(tn,kn,_,i)),te||(_=(gr(),Vu),xe=null,s&&mg(u(v(Bn,Ft),101))&&(xe=new V(s.b,s.c),ULn(xe,V7(e)),mNn(xe,t)),te=eGn(Bn,xe,_,Hi(Bn))),Zi(k,yn),Oi(k,te),(yn.e.c.length>1||yn.g.c.length>1||te.e.c.length>1||te.g.c.length>1)&&p.Fc((pr(),R8)),g=new ne((!e.n&&(e.n=new q(Sr,e,1,7)),e.n));g.e!=g.i.gc();)if(d=u(ue(g),135),!on(un(z(d,Rd)))&&d.a)switch(j=ex(d),nn(k.b,j),u(v(j,Sh),278).g){case 1:case 2:p.Fc((pr(),kv));break;case 0:p.Fc((pr(),vv)),U(j,Sh,($f(),Rv))}if(c=u(v(i,U8),322),P=u(v(i,vO),323),r=c==(c5(),pj)||P==(T5(),BH),s&&(!s.a&&(s.a=new ti(xo,s,5)),s.a).i!=0&&r){for(O=Qk(s),m=new Tu,D=ge(O,0);D.b!=D.d.c;)A=u(be(D),8),Re(m,new rr(A));U(k,rfn,m)}return k}function XNe(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn,Bn,te,xe,Nt;for(kn=0,Rn=0,tn=new de,_=u(ho(_0(_r(new Cn(null,new On(n.b,16)),new E4n),new A4n)),17).a+1,yn=F(ye,_e,28,_,15,1),j=F(ye,_e,28,_,15,1),k=0;k<_;k++)yn[k]=0,j[k]=0;for(h=u(Wr(cJ(new Cn(null,new On(n.a,16))),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[(Gu(),Yr)]))),15),a=h.Kc();a.Ob();)if(l=u(a.Pb(),65),te=u(v(l.b,(lc(),Ph)),17).a,Nt=u(v(l.c,Ph),17).a,D=Nt-te,D>1)for(f=te+1;f<Nt;f++){if(d=f,X=u(Wr(ut(new Cn(null,new On(n.b,16)),new ykn(d)),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[Yr]))),15),m=0,e==(ci(),Kr)||e==Xr){for(X.jd(new I4n),m=0;m<X.gc()&&(P=(f-te)/(Nt-te),!(u(X.Xb(m),40).e.b>l.b.e.b*(1-P)+l.c.e.b*P));m++);if(X.gc()>0&&(xe=l.a.b==0?Fi(l.b.e):u($s(l.a),8),A=tt(Fi(u(X.Xb(X.gc()-1),40).e),u(X.Xb(X.gc()-1),40).f),g=tt(Fi(u(X.Xb(0),40).e),u(X.Xb(0),40).f),m>=X.gc()-1&&xe.b>A.b&&l.c.e.b>A.b||m<=0&&xe.b<g.a&&l.c.e.b<g.b))continue}else{for(X.jd(new O4n),m=0;m<X.gc()&&(P=(f-te)/(Nt-te),!(u(X.Xb(m),40).e.a>l.b.e.a*(1-P)+l.c.e.a*P));m++);if(X.gc()>0&&(xe=l.a.b==0?Fi(l.b.e):u($s(l.a),8),A=tt(Fi(u(X.Xb(X.gc()-1),40).e),u(X.Xb(X.gc()-1),40).f),g=tt(Fi(u(X.Xb(0),40).e),u(X.Xb(0),40).f),m>=X.gc()-1&&xe.a>A.a&&l.c.e.a>A.a||m<=0&&xe.a<g.a&&l.c.e.a<g.a))continue}r=new Ni,c=new Ni,Re(l.a,r),Re(l.a,c),s=new _N(r,c,l),O=lf(Ks(f,32),vi(m,mr)),Zc(tn,Tl(O))?(p=u(ee(tn,Tl(O)),675),Re(p.a,s),hl(p.b)?ud(p.a,new R4n):ud(p.a,new K4n),Ezn(p)):(p=new RBn(m==0?null:u(X.Xb(m-1),40),m==X.gc()?null:u(X.Xb(m),40),s,n),Ve(tn,Tl(O),p)),e==Kr||e==Xr?(p.f&&p.d.e.b<=$(B(v(n,(pt(),rq))))&&++kn,p.g&&p.c.e.b+p.c.f.b>=$(B(v(n,(pt(),kln))))&&++Rn):(p.f&&p.d.e.a<=$(B(v(n,(pt(),iq))))&&++kn,p.g&&p.c.e.a+p.c.f.a>=$(B(v(n,(pt(),vln))))&&++Rn)}else D==0?Ann(l):D<0&&(++yn[te],++j[Nt],Bn=HNe(l,e,n,new bi(Y(kn),Y(Rn)),t,i,new bi(Y(j[Nt]),Y(yn[te]))),kn=u(Bn.a,17).a,Rn=u(Bn.b,17).a)}function VNe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O;if(i=e,h=t,n.b&&i.j==(en(),Wn)&&h.j==(en(),Wn)&&(O=i,i=h,h=O),Zc(n.a,i)){if(sf(u(ee(n.a,i),49),h))return 1}else Ve(n.a,i,new ni);if(Zc(n.a,h)){if(sf(u(ee(n.a,h),49),i))return-1}else Ve(n.a,h,new ni);if(Zc(n.d,i)){if(sf(u(ee(n.d,i),49),h))return-1}else Ve(n.d,i,new ni);if(Zc(n.d,h)){if(sf(u(ee(n.a,h),49),i))return 1}else Ve(n.d,h,new ni);if(i.j!=h.j)return P=xle(i.j,h.j),P==-1?ns(n,h,i):ns(n,i,h),P;if(i.e.c.length!=0&&h.e.c.length!=0){if(n.b&&(P=BRn(i,h),P!=0))return P==-1?ns(n,h,i):P==1&&ns(n,i,h),P;if(c=u(sn(i.e,0),18).c.i,a=u(sn(h.e,0),18).c.i,c==a)return r=u(v(u(sn(i.e,0),18),(W(),dt)),17).a,l=u(v(u(sn(h.e,0),18),dt),17).a,r>l?ns(n,i,h):ns(n,h,i),r<l?-1:r>l?1:0;for(m=n.c,k=0,j=m.length;k<j;++k){if(p=m[k],p==c)return ns(n,i,h),1;if(p==a)return ns(n,h,i),-1}}return i.g.c.length!=0&&h.g.c.length!=0?(f=u(v(i,(W(),aH)),10),g=u(v(h,aH),10),n.e==(lh(),HH)&&f&&g&&kt(f,dt)&&kt(g,dt)?(r=u(v(f,dt),17).a,l=u(v(g,dt),17).a,r>l?ns(n,i,h):ns(n,h,i),r<l?-1:r>l?1:0):n.b&&(P=BRn(i,h),P!=0)?(P==-1?ns(n,h,i):P==1&&ns(n,i,h),P):(s=0,d=0,kt(u(sn(i.g,0),18),dt)&&(s=u(v(u(sn(i.g,0),18),dt),17).a),kt(u(sn(h.g,0),18),dt)&&(d=u(v(u(sn(i.g,0),18),dt),17).a),f&&f==g?on(un(v(u(sn(i.g,0),18),zf)))&&!on(un(v(u(sn(h.g,0),18),zf)))?(ns(n,i,h),1):!on(un(v(u(sn(i.g,0),18),zf)))&&on(un(v(u(sn(h.g,0),18),zf)))?(ns(n,h,i),-1):(s>d?ns(n,i,h):ns(n,h,i),s<d?-1:s>d?1:0):(n.f&&(n.f._b(f)&&(s=u(n.f.xc(f),17).a),n.f._b(g)&&(d=u(n.f.xc(g),17).a)),s>d?ns(n,i,h):ns(n,h,i),s<d?-1:s>d?1:0))):i.e.c.length!=0&&h.g.c.length!=0?(ns(n,i,h),1):i.g.c.length!=0&&h.e.c.length!=0?(ns(n,h,i),-1):kt(i,(W(),dt))&&kt(h,dt)?(r=u(v(i,dt),17).a,l=u(v(h,dt),17).a,r>l?ns(n,i,h):ns(n,h,i),r<l?-1:r>l?1:0):(ns(n,h,i),-1)}function WNe(n){n.gb||(n.gb=!0,n.b=hc(n,0),Rt(n.b,18),jt(n.b,19),n.a=hc(n,1),Rt(n.a,1),jt(n.a,2),jt(n.a,3),jt(n.a,4),jt(n.a,5),n.o=hc(n,2),Rt(n.o,8),Rt(n.o,9),jt(n.o,10),jt(n.o,11),jt(n.o,12),jt(n.o,13),jt(n.o,14),jt(n.o,15),jt(n.o,16),jt(n.o,17),jt(n.o,18),jt(n.o,19),jt(n.o,20),jt(n.o,21),jt(n.o,22),jt(n.o,23),Dr(n.o),Dr(n.o),Dr(n.o),Dr(n.o),Dr(n.o),Dr(n.o),Dr(n.o),Dr(n.o),Dr(n.o),Dr(n.o),n.p=hc(n,3),Rt(n.p,2),Rt(n.p,3),Rt(n.p,4),Rt(n.p,5),jt(n.p,6),jt(n.p,7),Dr(n.p),Dr(n.p),n.q=hc(n,4),Rt(n.q,8),n.v=hc(n,5),jt(n.v,9),Dr(n.v),Dr(n.v),Dr(n.v),n.w=hc(n,6),Rt(n.w,2),Rt(n.w,3),Rt(n.w,4),jt(n.w,5),n.B=hc(n,7),jt(n.B,1),Dr(n.B),Dr(n.B),Dr(n.B),n.Q=hc(n,8),jt(n.Q,0),Dr(n.Q),n.R=hc(n,9),Rt(n.R,1),n.S=hc(n,10),Dr(n.S),Dr(n.S),Dr(n.S),Dr(n.S),Dr(n.S),Dr(n.S),Dr(n.S),Dr(n.S),Dr(n.S),Dr(n.S),Dr(n.S),Dr(n.S),Dr(n.S),Dr(n.S),Dr(n.S),n.T=hc(n,11),jt(n.T,10),jt(n.T,11),jt(n.T,12),jt(n.T,13),jt(n.T,14),Dr(n.T),Dr(n.T),n.U=hc(n,12),Rt(n.U,2),Rt(n.U,3),jt(n.U,4),jt(n.U,5),jt(n.U,6),jt(n.U,7),Dr(n.U),n.V=hc(n,13),jt(n.V,10),n.W=hc(n,14),Rt(n.W,18),Rt(n.W,19),Rt(n.W,20),jt(n.W,21),jt(n.W,22),jt(n.W,23),n.bb=hc(n,15),Rt(n.bb,10),Rt(n.bb,11),Rt(n.bb,12),Rt(n.bb,13),Rt(n.bb,14),Rt(n.bb,15),Rt(n.bb,16),jt(n.bb,17),Dr(n.bb),Dr(n.bb),n.eb=hc(n,16),Rt(n.eb,2),Rt(n.eb,3),Rt(n.eb,4),Rt(n.eb,5),Rt(n.eb,6),Rt(n.eb,7),jt(n.eb,8),jt(n.eb,9),n.ab=hc(n,17),Rt(n.ab,0),Rt(n.ab,1),n.H=hc(n,18),jt(n.H,0),jt(n.H,1),jt(n.H,2),jt(n.H,3),jt(n.H,4),jt(n.H,5),Dr(n.H),n.db=hc(n,19),jt(n.db,2),n.c=Je(n,20),n.d=Je(n,21),n.e=Je(n,22),n.f=Je(n,23),n.i=Je(n,24),n.g=Je(n,25),n.j=Je(n,26),n.k=Je(n,27),n.n=Je(n,28),n.r=Je(n,29),n.s=Je(n,30),n.t=Je(n,31),n.u=Je(n,32),n.fb=Je(n,33),n.A=Je(n,34),n.C=Je(n,35),n.D=Je(n,36),n.F=Je(n,37),n.G=Je(n,38),n.I=Je(n,39),n.J=Je(n,40),n.L=Je(n,41),n.M=Je(n,42),n.N=Je(n,43),n.O=Je(n,44),n.P=Je(n,45),n.X=Je(n,46),n.Y=Je(n,47),n.Z=Je(n,48),n.$=Je(n,49),n._=Je(n,50),n.cb=Je(n,51),n.K=Je(n,52))}function JNe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn,Bn,te;for(s=new Mt,X=u(v(t,(cn(),Lo)),88),k=0,Ki(s,(!e.a&&(e.a=new q(Ye,e,10,11)),e.a));s.b!=0;)a=u(s.b==0?null:(oe(s.b!=0),Xo(s,s.a.a)),27),l=St(a),(x(z(l,Yh))!==x((lh(),k1))||x(z(l,Nd))===x((o1(),pv))||x(z(l,Nd))===x((o1(),gv))||on(un(z(l,l0)))||x(z(l,Rw))!==x((dd(),Aw))||x(z(l,ja))===x((ps(),p0))||x(z(l,ja))===x((ps(),Uw))||x(z(l,$d))===x((a1(),Iv))||x(z(l,$d))===x((a1(),Ov)))&&!on(un(z(a,lO)))&&ht(a,(W(),dt),Y(k++)),P=!on(un(z(a,Rd))),P&&(g=(!a.a&&(a.a=new q(Ye,a,10,11)),a.a).i!=0,m=Tye(a),p=x(z(a,Kw))===x((jl(),T1)),te=!Nf(a,(He(),$v))||CNn(Ae(z(a,$v))),D=null,te&&p&&(g||m)&&(D=$Un(a),U(D,Lo,X),kt(D,Tj)&&xjn(new zY($(B(v(D,Tj)))),D),u(z(a,xd),181).gc()!=0&&(d=D,qt(new Cn(null,(!a.c&&(a.c=new q(Qu,a,9,9)),new On(a.c,16))),new q9n(d)),Sqn(a,D))),tn=t,yn=u(ee(n.a,St(a)),10),yn&&(tn=yn.e),A=szn(n,a,tn),D&&(A.e=D,D.e=A,Ki(s,(!a.a&&(a.a=new q(Ye,a,10,11)),a.a))));for(k=0,xt(s,e,s.c.b,s.c);s.b!=0;){for(c=u(s.b==0?null:(oe(s.b!=0),Xo(s,s.a.a)),27),h=new ne((!c.b&&(c.b=new q(Vt,c,12,3)),c.b));h.e!=h.i.gc();)f=u(ue(h),74),nUn(f),(x(z(e,Yh))!==x((lh(),k1))||x(z(e,Nd))===x((o1(),pv))||x(z(e,Nd))===x((o1(),gv))||on(un(z(e,l0)))||x(z(e,Rw))!==x((dd(),Aw))||x(z(e,ja))===x((ps(),p0))||x(z(e,ja))===x((ps(),Uw))||x(z(e,$d))===x((a1(),Iv))||x(z(e,$d))===x((a1(),Ov)))&&ht(f,(W(),dt),Y(k++)),Rn=Gr(u(N((!f.b&&(f.b=new Dn(he,f,4,7)),f.b),0),84)),Bn=Gr(u(N((!f.c&&(f.c=new Dn(he,f,5,8)),f.c),0),84)),!(on(un(z(f,Rd)))||on(un(z(Rn,Rd)))||on(un(z(Bn,Rd))))&&(j=_b(f)&&on(un(z(Rn,Bw)))&&on(un(z(f,Dd))),_=c,j||Y0(Bn,Rn)?_=Rn:Y0(Rn,Bn)&&(_=Bn),tn=t,yn=u(ee(n.a,_),10),yn&&(tn=yn.e),O=ftn(n,f,_,tn),U(O,(W(),nfn),JCe(n,f,e,t)));if(p=x(z(c,Kw))===x((jl(),T1)),p)for(r=new ne((!c.a&&(c.a=new q(Ye,c,10,11)),c.a));r.e!=r.i.gc();)i=u(ue(r),27),te=!Nf(i,(He(),$v))||CNn(Ae(z(i,$v))),kn=x(z(i,Kw))===x(T1),te&&kn&&xt(s,i,s.c.b,s.c)}}function W(){W=R;var n,e;st=new lt(Wtn),nfn=new lt("coordinateOrigin"),bH=new lt("processors"),Zsn=new Lt("compoundNode",(_n(),!1)),yj=new Lt("insideConnections",!1),rfn=new lt("originalBendpoints"),cfn=new lt("originalDummyNodePosition"),ufn=new lt("originalLabelEdge"),F8=new lt("representedLabels"),B8=new lt("endLabels"),T3=new lt("endLabel.origin"),S3=new Lt("labelSide",(Co(),nE)),y2=new Lt("maxEdgeThickness",0),zf=new Lt("reversed",!1),P3=new lt(TXn),yf=new Lt("longEdgeSource",null),Es=new Lt("longEdgeTarget",null),$w=new Lt("longEdgeHasLabelDummies",!1),jj=new Lt("longEdgeBeforeLabelDummy",!1),rO=new Lt("edgeConstraint",(hd(),Q_)),s0=new lt("inLayerLayoutUnit"),Ad=new Lt("inLayerConstraint",(vl(),vj)),C3=new Lt("inLayerSuccessorConstraint",new Z),ifn=new Lt("inLayerSuccessorConstraintBetweenNonDummies",!1),Xu=new lt("portDummy"),iO=new Lt("crossingHint",Y(0)),Hc=new Lt("graphProperties",(e=u(of(rH),9),new _o(e,u(xs(e,e.length),9),0))),gc=new Lt("externalPortSide",(en(),sc)),tfn=new Lt("externalPortSize",new Ni),fH=new lt("externalPortReplacedDummies"),cO=new lt("externalPortReplacedDummy"),Dl=new Lt("externalPortConnections",(n=u(of(lr),9),new _o(n,u(xs(n,n.length),9),0))),f0=new Lt(gXn,0),Ysn=new lt("barycenterAssociates"),I3=new lt("TopSideComments"),M3=new lt("BottomSideComments"),tO=new lt("CommentConnectionPort"),lH=new Lt("inputCollect",!1),dH=new Lt("outputCollect",!1),kj=new Lt("cyclic",!1),efn=new lt("crossHierarchyMap"),gH=new lt("targetOffset"),new Lt("splineLabelSize",new Ni),E2=new lt("spacings"),uO=new Lt("partitionConstraint",!1),o0=new lt("breakingPoint.info"),ffn=new lt("splines.survivingEdge"),Ld=new lt("splines.route.start"),M2=new lt("splines.edgeChain"),sfn=new lt("originalPortConstraints"),h0=new lt("selfLoopHolder"),jv=new lt("splines.nsPortY"),dt=new lt("modelOrder"),aH=new lt("longEdgeTargetNode"),ka=new Lt(QXn,!1),j2=new Lt(QXn,!1),hH=new lt("layerConstraints.hiddenNodes"),ofn=new lt("layerConstraints.opposidePort"),wH=new lt("targetNode.modelOrder")}function QNe(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m;for(d=ge(n.b,0);d.b!=d.d.c;)if(a=u(be(d),40),!Sn(a.c,OP))for(c=u(Wr(new Cn(null,new On(uMe(a,n),16)),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[(Gu(),Yr)]))),15),e==(ci(),Kr)||e==Xr?c.jd(new S4n):c.jd(new P4n),m=c.gc(),r=0;r<m;r++)s=m==1?.5:(1+r)/(m+1),e==Kr?(l=$(B(v(a,(pt(),Js)))),a.e.a+a.f.a+i<l?ir(u(c.Xb(r),65).a,new V(l+t,a.e.b+a.f.b*s)):u(c.Xb(r),65).a.b>0&&(f=u($s(u(c.Xb(r),65).a),8).a,g=a.e.a+a.f.a/2,h=u($s(u(c.Xb(r),65).a),8).b,p=a.e.b+a.f.b/2,i>0&&y.Math.abs(h-p)/(y.Math.abs(f-g)/40)>50&&(p>h?ir(u(c.Xb(r),65).a,new V(a.e.a+a.f.a+i/5.3,a.e.b+a.f.b*s-i/2)):ir(u(c.Xb(r),65).a,new V(a.e.a+a.f.a+i/5.3,a.e.b+a.f.b*s+i/2)))),ir(u(c.Xb(r),65).a,new V(a.e.a+a.f.a,a.e.b+a.f.b*s))):e==Xr?(l=$(B(v(a,(pt(),jf)))),a.e.a-i>l?ir(u(c.Xb(r),65).a,new V(l-t,a.e.b+a.f.b*s)):u(c.Xb(r),65).a.b>0&&(f=u($s(u(c.Xb(r),65).a),8).a,g=a.e.a+a.f.a/2,h=u($s(u(c.Xb(r),65).a),8).b,p=a.e.b+a.f.b/2,i>0&&y.Math.abs(h-p)/(y.Math.abs(f-g)/40)>50&&(p>h?ir(u(c.Xb(r),65).a,new V(a.e.a-i/5.3,a.e.b+a.f.b*s-i/2)):ir(u(c.Xb(r),65).a,new V(a.e.a-i/5.3,a.e.b+a.f.b*s+i/2)))),ir(u(c.Xb(r),65).a,new V(a.e.a,a.e.b+a.f.b*s))):e==us?(l=$(B(v(a,(pt(),Js)))),a.e.b+a.f.b+i<l?ir(u(c.Xb(r),65).a,new V(a.e.a+a.f.a*s,l+t)):u(c.Xb(r),65).a.b>0&&(f=u($s(u(c.Xb(r),65).a),8).a,g=a.e.a+a.f.a/2,h=u($s(u(c.Xb(r),65).a),8).b,p=a.e.b+a.f.b/2,i>0&&y.Math.abs(f-g)/(y.Math.abs(h-p)/40)>50&&(g>f?ir(u(c.Xb(r),65).a,new V(a.e.a+a.f.a*s-i/2,a.e.b+i/5.3+a.f.b)):ir(u(c.Xb(r),65).a,new V(a.e.a+a.f.a*s+i/2,a.e.b+i/5.3+a.f.b)))),ir(u(c.Xb(r),65).a,new V(a.e.a+a.f.a*s,a.e.b+a.f.b))):(l=$(B(v(a,(pt(),jf)))),TRn(u(c.Xb(r),65),n)?ir(u(c.Xb(r),65).a,new V(a.e.a+a.f.a*s,u($s(u(c.Xb(r),65).a),8).b)):a.e.b-i>l?ir(u(c.Xb(r),65).a,new V(a.e.a+a.f.a*s,l-t)):u(c.Xb(r),65).a.b>0&&(f=u($s(u(c.Xb(r),65).a),8).a,g=a.e.a+a.f.a/2,h=u($s(u(c.Xb(r),65).a),8).b,p=a.e.b+a.f.b/2,i>0&&y.Math.abs(f-g)/(y.Math.abs(h-p)/40)>50&&(g>f?ir(u(c.Xb(r),65).a,new V(a.e.a+a.f.a*s-i/2,a.e.b-i/5.3)):ir(u(c.Xb(r),65).a,new V(a.e.a+a.f.a*s+i/2,a.e.b-i/5.3)))),ir(u(c.Xb(r),65).a,new V(a.e.a+a.f.a*s,a.e.b)))}function He(){He=R;var n,e;$v=new lt(xVn),q2=new lt(RVn),gan=(Bh(),Xq),Pue=new Tn(irn,gan),x2=new Tn(l3,null),Iue=new lt(gcn),man=(wd(),yt(Jq,S(C(Qq,1),G,298,0,[Wq]))),Gj=new Tn(TP,man),zj=new Tn(Uy,(_n(),!1)),van=(ci(),Jf),_d=new Tn(xB,van),jan=(El(),hU),yan=new Tn(qy,jan),Lue=new Tn(bcn,!1),Tan=(jl(),uA),B2=new Tn(MP,Tan),Dan=new fb(12),M1=new Tn(Wb,Dan),Vj=new Tn(i8,!1),eU=new Tn(SP,!1),Wj=new Tn(r8,!1),Ban=(Ai(),Ia),v9=new Tn(tB,Ban),D3=new lt(CP),Jj=new lt(Dy),sU=new lt(uP),fU=new lt(t8),Can=new Tu,k0=new Tn(brn,Can),Aue=new Tn(prn,!1),Nue=new Tn(mrn,!1),San=new Qv,xv=new Tn(krn,San),tA=new Tn(ern,!1),Rue=new Tn(KVn,1),K2=new lt(BVn),R2=new lt(FVn),k9=new Tn($y,!1),new Tn(_Vn,!0),Y(0),new Tn(HVn,Y(100)),new Tn(qVn,!1),Y(0),new Tn(UVn,Y(4e3)),Y(0),new Tn(GVn,Y(400)),new Tn(zVn,!1),new Tn(XVn,!1),new Tn(VVn,!0),new Tn(WVn,!1),pan=(qC(),bU),Oue=new Tn(wcn,pan),Kue=new Tn(Uin,10),Bue=new Tn(Gin,10),qan=new Tn(WK,20),Fue=new Tn(zin,10),Uan=new Tn(eB,2),Gan=new Tn($B,10),zan=new Tn(Xin,0),iA=new Tn(Jin,5),Xan=new Tn(Vin,1),Van=new Tn(Win,1),qd=new Tn(yw,20),_ue=new Tn(Qin,10),Qan=new Tn(Yin,10),$3=new lt(Zin),Jan=new tCn,Wan=new Tn(yrn,Jan),$ue=new lt(KB),$an=!1,Due=new Tn(RB,$an),Ian=new fb(5),Pan=new Tn(urn,Ian),Oan=(lw(),e=u(of(yr),9),new _o(e,u(xs(e,e.length),9),0)),F2=new Tn(Xm,Oan),Ran=(Kg(),Pa),xan=new Tn(frn,Ran),iU=new lt(hrn),rU=new lt(lrn),cU=new lt(arn),tU=new lt(drn),Aan=(n=u(of(P9),9),new _o(n,u(xs(n,n.length),9),0)),Hd=new Tn(r2,Aan),Nan=jn((io(),_v)),Ca=new Tn(a3,Nan),Lan=new V(0,0),_2=new Tn(d3,Lan),Vw=new Tn(zm,!1),kan=($f(),Rv),Zq=new Tn(wrn,kan),Yq=new Tn(oP,!1),Y(1),new Tn(JVn,null),Kan=new lt(vrn),uU=new lt(grn),Han=(en(),sc),H2=new Tn(trn,Han),oo=new lt(nrn),Fan=(zu(),jn(Oa)),Ww=new Tn(Vm,Fan),oU=new Tn(orn,!1),_an=new Tn(srn,!0),cA=new Tn(xy,1),Yan=new Tn(pcn,null),Qj=new Tn(Ry,150),rA=new Tn(Ky,1.414),x3=new Tn(Jb,null),Hue=new Tn(mcn,1),Xj=new Tn(rrn,!1),nU=new Tn(crn,!1),Ean=new Tn(JK,1),Man=(pS(),aU),new Tn(QVn,Man),xue=!0,Uue=(Gp(),Yw),Gue=Yw,que=Yw}function tr(){tr=R,Qon=new ei("DIRECTION_PREPROCESSOR",0),Von=new ei("COMMENT_PREPROCESSOR",1),b2=new ei("EDGE_AND_LAYER_CONSTRAINT_EDGE_REVERSER",2),N_=new ei("INTERACTIVE_EXTERNAL_PORT_POSITIONER",3),gsn=new ei("PARTITION_PREPROCESSOR",4),OI=new ei("LABEL_DUMMY_INSERTER",5),FI=new ei("SELF_LOOP_PREPROCESSOR",6),Nw=new ei("LAYER_CONSTRAINT_PREPROCESSOR",7),bsn=new ei("PARTITION_MIDPROCESSOR",8),csn=new ei("HIGH_DEGREE_NODE_LAYER_PROCESSOR",9),asn=new ei("NODE_PROMOTION",10),Lw=new ei("LAYER_CONSTRAINT_POSTPROCESSOR",11),wsn=new ei("PARTITION_POSTPROCESSOR",12),tsn=new ei("HIERARCHICAL_PORT_CONSTRAINT_PROCESSOR",13),psn=new ei("SEMI_INTERACTIVE_CROSSMIN_PROCESSOR",14),Hon=new ei("BREAKING_POINT_INSERTER",15),DI=new ei("LONG_EDGE_SPLITTER",16),D_=new ei("PORT_SIDE_PROCESSOR",17),PI=new ei("INVERTED_PORT_PROCESSOR",18),RI=new ei("PORT_LIST_SORTER",19),vsn=new ei("SORT_BY_INPUT_ORDER_OF_MODEL",20),xI=new ei("NORTH_SOUTH_PORT_PREPROCESSOR",21),qon=new ei("BREAKING_POINT_PROCESSOR",22),dsn=new ei(qXn,23),ksn=new ei(UXn,24),KI=new ei("SELF_LOOP_PORT_RESTORER",25),msn=new ei("SINGLE_EDGE_GRAPH_WRAPPER",26),II=new ei("IN_LAYER_CONSTRAINT_PROCESSOR",27),Zon=new ei("END_NODE_PORT_LABEL_MANAGEMENT_PROCESSOR",28),hsn=new ei("LABEL_AND_NODE_SIZE_PROCESSOR",29),fsn=new ei("INNERMOST_NODE_MARGIN_CALCULATOR",30),_I=new ei("SELF_LOOP_ROUTER",31),zon=new ei("COMMENT_NODE_MARGIN_CALCULATOR",32),SI=new ei("END_LABEL_PREPROCESSOR",33),LI=new ei("LABEL_DUMMY_SWITCHER",34),Gon=new ei("CENTER_LABEL_MANAGEMENT_PROCESSOR",35),hv=new ei("LABEL_SIDE_SELECTOR",36),osn=new ei("HYPEREDGE_DUMMY_MERGER",37),isn=new ei("HIERARCHICAL_PORT_DUMMY_SIZE_PROCESSOR",38),lsn=new ei("LAYER_SIZE_AND_GRAPH_HEIGHT_CALCULATOR",39),N8=new ei("HIERARCHICAL_PORT_POSITION_PROCESSOR",40),Won=new ei("CONSTRAINTS_POSTPROCESSOR",41),Xon=new ei("COMMENT_POSTPROCESSOR",42),ssn=new ei("HYPERNODE_PROCESSOR",43),rsn=new ei("HIERARCHICAL_PORT_ORTHOGONAL_EDGE_ROUTER",44),NI=new ei("LONG_EDGE_JOINER",45),BI=new ei("SELF_LOOP_POSTPROCESSOR",46),Uon=new ei("BREAKING_POINT_REMOVER",47),$I=new ei("NORTH_SOUTH_PORT_POSTPROCESSOR",48),usn=new ei("HORIZONTAL_COMPACTOR",49),AI=new ei("LABEL_DUMMY_REMOVER",50),nsn=new ei("FINAL_SPLINE_BENDPOINTS_CALCULATOR",51),Yon=new ei("END_LABEL_SORTER",52),bj=new ei("REVERSED_EDGE_RESTORER",53),CI=new ei("END_LABEL_POSTPROCESSOR",54),esn=new ei("HIERARCHICAL_NODE_RESIZER",55),Jon=new ei("DIRECTION_POSTPROCESSOR",56)}function htn(){htn=R,kfn=(wk(),WI),iee=new Tn(cin,kfn),wee=new Tn(uin,(_n(),!1)),Cfn=(FT(),sH),kee=new Tn(lP,Cfn),$ee=new Tn(oin,!1),xee=new Tn(sin,!0),Ine=new Tn(fin,!1),Dfn=(dk(),qH),Qee=new Tn(hin,Dfn),Y(1),cte=new Tn(lin,Y(7)),ute=new Tn(ain,!1),gee=new Tn(din,!1),vfn=(o1(),W_),tee=new Tn(fB,vfn),Ifn=(a1(),$H),Dee=new Tn(Hy,Ifn),Sfn=(Yo(),Ej),Cee=new Tn(bin,Sfn),Y(-1),Tee=new Tn(win,null),Y(-1),See=new Tn(gin,Y(-1)),Y(-1),Pee=new Tn(hB,Y(4)),Y(-1),Oee=new Tn(lB,Y(2)),Pfn=(ps(),SO),Nee=new Tn(aB,Pfn),Y(0),Lee=new Tn(dB,Y(0)),Eee=new Tn(bB,Y(et)),mfn=(c5(),$8),eee=new Tn(o8,mfn),Fne=new Tn(pin,!1),Xne=new Tn(wB,.1),Zne=new Tn(gB,!1),Wne=new Tn(min,null),Jne=new Tn(vin,null),Y(-1),Qne=new Tn(kin,null),Y(-1),Yne=new Tn(yin,Y(-1)),Y(0),_ne=new Tn(jin,Y(40)),pfn=(Z4(),uH),Gne=new Tn(pB,pfn),gfn=mj,Hne=new Tn(aP,gfn),Nfn=(T5(),W8),Jee=new Tn(c2,Nfn),_ee=new lt(dP),Ofn=(sk(),QI),Ree=new Tn(mB,Ofn),Afn=(Vk(),YI),Bee=new Tn(vB,Afn),Uee=new Tn(kB,.3),zee=new lt(yB),Lfn=(cw(),CO),Xee=new Tn(jB,Lfn),Efn=(PC(),GH),see=new Tn(Ein,Efn),Mfn=(a5(),XH),fee=new Tn(Min,Mfn),Tfn=(om(),Y8),hee=new Tn(bP,Tfn),aee=new Tn(wP,.2),uee=new Tn(EB,2),ete=new Tn(Tin,null),ite=new Tn(Cin,10),tte=new Tn(Sin,10),rte=new Tn(Pin,20),Y(0),Yee=new Tn(Iin,Y(0)),Y(0),Zee=new Tn(Oin,Y(0)),Y(0),nte=new Tn(Ain,Y(0)),One=new Tn(MB,!1),afn=(jm(),x8),Lne=new Tn(Lin,afn),lfn=(QT(),X_),Ane=new Tn(Nin,lfn),mee=new Tn(gP,!1),Y(0),pee=new Tn(TB,Y(16)),Y(0),vee=new Tn(CB,Y(5)),Rfn=(LC(),JH),Cte=new Tn(Al,Rfn),ote=new Tn(pP,10),hte=new Tn(mP,1),xfn=(bC(),VI),pte=new Tn(s8,xfn),dte=new lt(SB),$fn=Y(1),Y(0),wte=new Tn(PB,$fn),Kfn=(dC(),WH),Ote=new Tn(vP,Kfn),Ste=new lt(kP),jte=new Tn(yP,!0),kte=new Tn(jP,2),Mte=new Tn(IB,!0),jfn=(vS(),JI),cee=new Tn(Din,jfn),yfn=(Yp(),bv),ree=new Tn($in,yfn),wfn=(lh(),k1),Bne=new Tn(EP,wfn),Kne=new Tn(xin,!1),Rne=new Tn(Rin,!1),dfn=(dd(),Aw),Nne=new Tn(OB,dfn),bfn=(w5(),xH),xne=new Tn(Kin,bfn),Dne=new Tn(AB,0),$ne=new Tn(LB,0),jee=J_,yee=pj,Iee=MO,Aee=MO,Mee=DH,Vne=(jl(),T1),nee=$8,zne=$8,qne=$8,Une=T1,Hee=J8,qee=W8,Kee=W8,Fee=W8,Gee=FH,Wee=J8,Vee=J8,lee=(El(),R3),dee=R3,bee=Y8,oee=Yj,ste=Av,fte=Gw,lte=Av,ate=Gw,mte=Av,vte=Gw,bte=V_,gte=VI,Ate=Av,Lte=Gw,Pte=Av,Ite=Gw,Ete=Gw,yte=Gw,Tte=Gw}function YNe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn,Bn,te,xe,Nt,Yu,Br,Ro,W2,L1,rf,cf,Xd,q3,Ka,U3,Oh,cl,T0,G3,J2,Ah,Vd,Bl,Lse,ybn,C0,_9,AU,z3,H9,ug,q9,LU,Nse;for(ybn=0,xe=e,Br=0,L1=xe.length;Br<L1;++Br)for(Bn=xe[Br],cl=new M(Bn.j);cl.a<cl.c.c.length;){for(Oh=u(E(cl),12),G3=0,f=new M(Oh.g);f.a<f.c.c.length;)s=u(E(f),18),Bn.c!=s.d.i.c&&++G3;G3>0&&(n.a[Oh.p]=ybn++)}for(H9=0,Nt=t,Ro=0,rf=Nt.length;Ro<rf;++Ro){for(Bn=Nt[Ro],cf=0,cl=new M(Bn.j);cl.a<cl.c.c.length&&(Oh=u(E(cl),12),Oh.j==(en(),Xn));)for(f=new M(Oh.e);f.a<f.c.c.length;)if(s=u(E(f),18),Bn.c!=s.c.i.c){++cf;break}for(q3=0,J2=new xi(Bn.j,Bn.j.c.length);J2.b>0;){for(Oh=(oe(J2.b>0),u(J2.a.Xb(J2.c=--J2.b),12)),G3=0,f=new M(Oh.e);f.a<f.c.c.length;)s=u(E(f),18),Bn.c!=s.c.i.c&&++G3;G3>0&&(Oh.j==(en(),Xn)?(n.a[Oh.p]=H9,++H9):(n.a[Oh.p]=H9+cf+q3,++q3))}H9+=q3}for(T0=new de,m=new rh,te=e,Yu=0,W2=te.length;Yu<W2;++Yu)for(Bn=te[Yu],AU=new M(Bn.j);AU.a<AU.c.c.length;)for(_9=u(E(AU),12),f=new M(_9.g);f.a<f.c.c.length;)if(s=u(E(f),18),q9=s.d,Bn.c!=q9.i.c)if(C0=u(Fr(wr(T0.f,_9)),478),ug=u(Fr(wr(T0.f,q9)),478),!C0&&!ug)p=new GSn,m.a.zc(p,m),nn(p.a,s),nn(p.d,_9),Vc(T0.f,_9,p),nn(p.d,q9),Vc(T0.f,q9,p);else if(!C0)nn(ug.a,s),nn(ug.d,_9),Vc(T0.f,_9,ug);else if(!ug)nn(C0.a,s),nn(C0.d,q9),Vc(T0.f,q9,C0);else if(C0==ug)nn(C0.a,s);else{for(nn(C0.a,s),U3=new M(ug.d);U3.a<U3.c.c.length;)Ka=u(E(U3),12),Vc(T0.f,Ka,C0);hi(C0.a,ug.a),hi(C0.d,ug.d),m.a.Bc(ug)!=null}for(k=u(S5(m,F(jDe,{3:1,4:1,5:1,2045:1},478,m.a.gc(),0,1)),2045),Rn=e[0].c,Lse=t[0].c,a=k,d=0,g=a.length;d<g;++d)for(l=a[d],l.e=ybn,l.f=H9,cl=new M(l.d);cl.a<cl.c.c.length;)Oh=u(E(cl),12),Ah=n.a[Oh.p],Oh.i.c==Rn?(Ah<l.e&&(l.e=Ah),Ah>l.b&&(l.b=Ah)):Oh.i.c==Lse&&(Ah<l.f&&(l.f=Ah),Ah>l.c&&(l.c=Ah));for(R4(k,0,k.length,null),z3=F(ye,_e,28,k.length,15,1),i=F(ye,_e,28,H9+1,15,1),P=0;P<k.length;P++)z3[P]=k[P].f,i[z3[P]]=1;for(c=0,O=0;O<i.length;O++)i[O]==1?i[O]=c:--c;for(Vd=0,A=0;A<z3.length;A++)z3[A]+=i[z3[A]],Vd=y.Math.max(Vd,z3[A]+1);for(h=1;h<Vd;)h*=2;for(Nse=2*h-1,h-=1,LU=F(ye,_e,28,Nse,15,1),r=0,yn=0;yn<z3.length;yn++)for(tn=z3[yn]+h,++LU[tn];tn>0;)tn%2>0&&(r+=LU[tn+1]),tn=(tn-1)/2|0,++LU[tn];for(kn=F(Oie,Kn,374,k.length*2,0,1),D=0;D<k.length;D++)kn[2*D]=new MT(k[D],k[D].e,k[D].b,(Z6(),e9)),kn[2*D+1]=new MT(k[D],k[D].b,k[D].e,n9);for(R4(kn,0,kn.length,null),Xd=0,_=0;_<kn.length;_++)switch(kn[_].d.g){case 0:++Xd;break;case 1:--Xd,r+=Xd}for(Bl=F(Oie,Kn,374,k.length*2,0,1),X=0;X<k.length;X++)Bl[2*X]=new MT(k[X],k[X].f,k[X].c,(Z6(),e9)),Bl[2*X+1]=new MT(k[X],k[X].c,k[X].f,n9);for(R4(Bl,0,Bl.length,null),Xd=0,j=0;j<Bl.length;j++)switch(Bl[j].d.g){case 0:++Xd;break;case 1:--Xd,r+=Xd}return r}function nt(){nt=R,F9=new Wd(7),dbn=new Dh(8,94),new Dh(8,64),bbn=new Dh(8,36),Ese=new Dh(8,65),Mse=new Dh(8,122),Tse=new Dh(8,90),Sse=new Dh(8,98),jse=new Dh(8,66),Cse=new Dh(8,60),Pse=new Dh(8,62),abn=new Wd(11),IA=new yo(4),xc(IA,48,57),Gv=new yo(4),xc(Gv,48,57),xc(Gv,65,90),xc(Gv,95,95),xc(Gv,97,122),H3=new yo(4),xc(H3,9,9),xc(H3,10,10),xc(H3,12,12),xc(H3,13,13),xc(H3,32,32),wbn=bw(IA),pbn=bw(Gv),gbn=bw(H3),Uv=new de,B9=new de,yse=S(C(fn,1),J,2,6,["Cn","Lu","Ll","Lt","Lm","Lo","Mn","Me","Mc","Nd","Nl","No","Zs","Zl","Zp","Cc","Cf",null,"Co","Cs","Pd","Ps","Pe","Pc","Po","Sm","Sc","Sk","So","Pi","Pf","L","M","N","Z","C","P","S"]),hbn=S(C(fn,1),J,2,6,["Basic Latin","Latin-1 Supplement","Latin Extended-A","Latin Extended-B","IPA Extensions","Spacing Modifier Letters","Combining Diacritical Marks","Greek","Cyrillic","Armenian","Hebrew","Arabic","Syriac","Thaana","Devanagari","Bengali","Gurmukhi","Gujarati","Oriya","Tamil","Telugu","Kannada","Malayalam","Sinhala","Thai","Lao","Tibetan","Myanmar","Georgian","Hangul Jamo","Ethiopic","Cherokee","Unified Canadian Aboriginal Syllabics","Ogham","Runic","Khmer","Mongolian","Latin Extended Additional","Greek Extended","General Punctuation","Superscripts and Subscripts","Currency Symbols","Combining Marks for Symbols","Letterlike Symbols","Number Forms","Arrows","Mathematical Operators","Miscellaneous Technical","Control Pictures","Optical Character Recognition","Enclosed Alphanumerics","Box Drawing","Block Elements","Geometric Shapes","Miscellaneous Symbols","Dingbats","Braille Patterns","CJK Radicals Supplement","Kangxi Radicals","Ideographic Description Characters","CJK Symbols and Punctuation","Hiragana","Katakana","Bopomofo","Hangul Compatibility Jamo","Kanbun","Bopomofo Extended","Enclosed CJK Letters and Months","CJK Compatibility","CJK Unified Ideographs Extension A","CJK Unified Ideographs","Yi Syllables","Yi Radicals","Hangul Syllables",WJn,"CJK Compatibility Ideographs","Alphabetic Presentation Forms","Arabic Presentation Forms-A","Combining Half Marks","CJK Compatibility Forms","Small Form Variants","Arabic Presentation Forms-B","Specials","Halfwidth and Fullwidth Forms","Old Italic","Gothic","Deseret","Byzantine Musical Symbols","Musical Symbols","Mathematical Alphanumeric Symbols","CJK Unified Ideographs Extension B","CJK Compatibility Ideographs Supplement","Tags"]),lbn=S(C(ye,1),_e,28,15,[66304,66351,66352,66383,66560,66639,118784,119039,119040,119295,119808,120831,131072,173782,194560,195103,917504,917631])}function VS(){VS=R,pYn=new Vo("OUT_T_L",0,(Uu(),Th),(bu(),Xs),(wf(),bc),bc,S(C(js,1),Kn,21,0,[yt((lw(),Zs),S(C(yr,1),G,95,0,[nf,Qs]))])),gYn=new Vo("OUT_T_C",1,pa,Xs,bc,Wc,S(C(js,1),Kn,21,0,[yt(Zs,S(C(yr,1),G,95,0,[nf,xl])),yt(Zs,S(C(yr,1),G,95,0,[nf,xl,Ms]))])),mYn=new Vo("OUT_T_R",2,zs,Xs,bc,wc,S(C(js,1),Kn,21,0,[yt(Zs,S(C(yr,1),G,95,0,[nf,Ys]))])),sYn=new Vo("OUT_B_L",3,Th,kf,wc,bc,S(C(js,1),Kn,21,0,[yt(Zs,S(C(yr,1),G,95,0,[Ts,Qs]))])),oYn=new Vo("OUT_B_C",4,pa,kf,wc,Wc,S(C(js,1),Kn,21,0,[yt(Zs,S(C(yr,1),G,95,0,[Ts,xl])),yt(Zs,S(C(yr,1),G,95,0,[Ts,xl,Ms]))])),fYn=new Vo("OUT_B_R",5,zs,kf,wc,wc,S(C(js,1),Kn,21,0,[yt(Zs,S(C(yr,1),G,95,0,[Ts,Ys]))])),aYn=new Vo("OUT_L_T",6,zs,kf,bc,bc,S(C(js,1),Kn,21,0,[yt(Zs,S(C(yr,1),G,95,0,[Qs,nf,Ms]))])),lYn=new Vo("OUT_L_C",7,zs,ma,Wc,bc,S(C(js,1),Kn,21,0,[yt(Zs,S(C(yr,1),G,95,0,[Qs,el])),yt(Zs,S(C(yr,1),G,95,0,[Qs,el,Ms]))])),hYn=new Vo("OUT_L_B",8,zs,Xs,wc,bc,S(C(js,1),Kn,21,0,[yt(Zs,S(C(yr,1),G,95,0,[Qs,Ts,Ms]))])),wYn=new Vo("OUT_R_T",9,Th,kf,bc,wc,S(C(js,1),Kn,21,0,[yt(Zs,S(C(yr,1),G,95,0,[Ys,nf,Ms]))])),bYn=new Vo("OUT_R_C",10,Th,ma,Wc,wc,S(C(js,1),Kn,21,0,[yt(Zs,S(C(yr,1),G,95,0,[Ys,el])),yt(Zs,S(C(yr,1),G,95,0,[Ys,el,Ms]))])),dYn=new Vo("OUT_R_B",11,Th,Xs,wc,wc,S(C(js,1),Kn,21,0,[yt(Zs,S(C(yr,1),G,95,0,[Ys,Ts,Ms]))])),cYn=new Vo("IN_T_L",12,Th,kf,bc,bc,S(C(js,1),Kn,21,0,[yt(No,S(C(yr,1),G,95,0,[nf,Qs])),yt(No,S(C(yr,1),G,95,0,[nf,Qs,Ms]))])),rYn=new Vo("IN_T_C",13,pa,kf,bc,Wc,S(C(js,1),Kn,21,0,[yt(No,S(C(yr,1),G,95,0,[nf,xl])),yt(No,S(C(yr,1),G,95,0,[nf,xl,Ms]))])),uYn=new Vo("IN_T_R",14,zs,kf,bc,wc,S(C(js,1),Kn,21,0,[yt(No,S(C(yr,1),G,95,0,[nf,Ys])),yt(No,S(C(yr,1),G,95,0,[nf,Ys,Ms]))])),tYn=new Vo("IN_C_L",15,Th,ma,Wc,bc,S(C(js,1),Kn,21,0,[yt(No,S(C(yr,1),G,95,0,[el,Qs])),yt(No,S(C(yr,1),G,95,0,[el,Qs,Ms]))])),eYn=new Vo("IN_C_C",16,pa,ma,Wc,Wc,S(C(js,1),Kn,21,0,[yt(No,S(C(yr,1),G,95,0,[el,xl])),yt(No,S(C(yr,1),G,95,0,[el,xl,Ms]))])),iYn=new Vo("IN_C_R",17,zs,ma,Wc,wc,S(C(js,1),Kn,21,0,[yt(No,S(C(yr,1),G,95,0,[el,Ys])),yt(No,S(C(yr,1),G,95,0,[el,Ys,Ms]))])),ZQn=new Vo("IN_B_L",18,Th,Xs,wc,bc,S(C(js,1),Kn,21,0,[yt(No,S(C(yr,1),G,95,0,[Ts,Qs])),yt(No,S(C(yr,1),G,95,0,[Ts,Qs,Ms]))])),YQn=new Vo("IN_B_C",19,pa,Xs,wc,Wc,S(C(js,1),Kn,21,0,[yt(No,S(C(yr,1),G,95,0,[Ts,xl])),yt(No,S(C(yr,1),G,95,0,[Ts,xl,Ms]))])),nYn=new Vo("IN_B_R",20,zs,Xs,wc,wc,S(C(js,1),Kn,21,0,[yt(No,S(C(yr,1),G,95,0,[Ts,Ys])),yt(No,S(C(yr,1),G,95,0,[Ts,Ys,Ms]))])),h_=new Vo(n8,21,null,null,null,null,S(C(js,1),Kn,21,0,[]))}function An(){An=R,tg=(G1(),Hn).b,u(N(H(Hn.b),0),35),u(N(H(Hn.b),1),19),S1=Hn.a,u(N(H(Hn.a),0),35),u(N(H(Hn.a),1),19),u(N(H(Hn.a),2),19),u(N(H(Hn.a),3),19),u(N(H(Hn.a),4),19),Na=Hn.o,u(N(H(Hn.o),0),35),u(N(H(Hn.o),1),35),_oe=u(N(H(Hn.o),2),19),u(N(H(Hn.o),3),19),u(N(H(Hn.o),4),19),u(N(H(Hn.o),5),19),u(N(H(Hn.o),6),19),u(N(H(Hn.o),7),19),u(N(H(Hn.o),8),19),u(N(H(Hn.o),9),19),u(N(H(Hn.o),10),19),u(N(H(Hn.o),11),19),u(N(H(Hn.o),12),19),u(N(H(Hn.o),13),19),u(N(H(Hn.o),14),19),u(N(H(Hn.o),15),19),u(N(ft(Hn.o),0),62),u(N(ft(Hn.o),1),62),u(N(ft(Hn.o),2),62),u(N(ft(Hn.o),3),62),u(N(ft(Hn.o),4),62),u(N(ft(Hn.o),5),62),u(N(ft(Hn.o),6),62),u(N(ft(Hn.o),7),62),u(N(ft(Hn.o),8),62),u(N(ft(Hn.o),9),62),Foe=Hn.p,u(N(H(Hn.p),0),35),u(N(H(Hn.p),1),35),u(N(H(Hn.p),2),35),u(N(H(Hn.p),3),35),u(N(H(Hn.p),4),19),u(N(H(Hn.p),5),19),u(N(ft(Hn.p),0),62),u(N(ft(Hn.p),1),62),Hoe=Hn.q,u(N(H(Hn.q),0),35),Da=Hn.v,u(N(H(Hn.v),0),19),u(N(ft(Hn.v),0),62),u(N(ft(Hn.v),1),62),u(N(ft(Hn.v),2),62),P1=Hn.w,u(N(H(Hn.w),0),35),u(N(H(Hn.w),1),35),u(N(H(Hn.w),2),35),u(N(H(Hn.w),3),19),$a=Hn.B,u(N(H(Hn.B),0),19),u(N(ft(Hn.B),0),62),u(N(ft(Hn.B),1),62),u(N(ft(Hn.B),2),62),qoe=Hn.Q,u(N(H(Hn.Q),0),19),u(N(ft(Hn.Q),0),62),Uoe=Hn.R,u(N(H(Hn.R),0),35),Os=Hn.S,u(N(ft(Hn.S),0),62),u(N(ft(Hn.S),1),62),u(N(ft(Hn.S),2),62),u(N(ft(Hn.S),3),62),u(N(ft(Hn.S),4),62),u(N(ft(Hn.S),5),62),u(N(ft(Hn.S),6),62),u(N(ft(Hn.S),7),62),u(N(ft(Hn.S),8),62),u(N(ft(Hn.S),9),62),u(N(ft(Hn.S),10),62),u(N(ft(Hn.S),11),62),u(N(ft(Hn.S),12),62),u(N(ft(Hn.S),13),62),u(N(ft(Hn.S),14),62),I1=Hn.T,u(N(H(Hn.T),0),19),u(N(H(Hn.T),2),19),Goe=u(N(H(Hn.T),3),19),u(N(H(Hn.T),4),19),u(N(ft(Hn.T),0),62),u(N(ft(Hn.T),1),62),u(N(H(Hn.T),1),19),O1=Hn.U,u(N(H(Hn.U),0),35),u(N(H(Hn.U),1),35),u(N(H(Hn.U),2),19),u(N(H(Hn.U),3),19),u(N(H(Hn.U),4),19),u(N(H(Hn.U),5),19),u(N(ft(Hn.U),0),62),ig=Hn.V,u(N(H(Hn.V),0),19),U2=Hn.W,u(N(H(Hn.W),0),35),u(N(H(Hn.W),1),35),u(N(H(Hn.W),2),35),u(N(H(Hn.W),3),19),u(N(H(Hn.W),4),19),u(N(H(Hn.W),5),19),zoe=Hn.bb,u(N(H(Hn.bb),0),35),u(N(H(Hn.bb),1),35),u(N(H(Hn.bb),2),35),u(N(H(Hn.bb),3),35),u(N(H(Hn.bb),4),35),u(N(H(Hn.bb),5),35),u(N(H(Hn.bb),6),35),u(N(H(Hn.bb),7),19),u(N(ft(Hn.bb),0),62),u(N(ft(Hn.bb),1),62),Xoe=Hn.eb,u(N(H(Hn.eb),0),35),u(N(H(Hn.eb),1),35),u(N(H(Hn.eb),2),35),u(N(H(Hn.eb),3),35),u(N(H(Hn.eb),4),35),u(N(H(Hn.eb),5),35),u(N(H(Hn.eb),6),19),u(N(H(Hn.eb),7),19),ar=Hn.ab,u(N(H(Hn.ab),0),35),u(N(H(Hn.ab),1),35),j0=Hn.H,u(N(H(Hn.H),0),19),u(N(H(Hn.H),1),19),u(N(H(Hn.H),2),19),u(N(H(Hn.H),3),19),u(N(H(Hn.H),4),19),u(N(H(Hn.H),5),19),u(N(ft(Hn.H),0),62),E0=Hn.db,u(N(H(Hn.db),0),19),Zf=Hn.M}function ZNe(n){var e;n.O||(n.O=!0,zc(n,"type"),MC(n,"ecore.xml.type"),TC(n,Pd),e=u(Tm((B1(),Is),Pd),2044),ve(Hr(n.fb),n.b),fc(n.b,bE,"AnyType",!1,!1,!0),Ut(u(N(H(n.b),0),35),n.wb.D,Jy,null,0,-1,bE,!1,!1,!0,!1,!1,!1),Ut(u(N(H(n.b),1),35),n.wb.D,"any",null,0,-1,bE,!0,!0,!0,!1,!1,!0),Ut(u(N(H(n.b),2),35),n.wb.D,"anyAttribute",null,0,-1,bE,!1,!1,!0,!1,!1,!1),fc(n.bb,SA,OJn,!1,!1,!0),Ut(u(N(H(n.bb),0),35),n.gb,"data",null,0,1,SA,!1,!1,!0,!1,!0,!1),Ut(u(N(H(n.bb),1),35),n.gb,Dcn,null,1,1,SA,!1,!1,!0,!1,!0,!1),fc(n.fb,wE,AJn,!1,!1,!0),Ut(u(N(H(n.fb),0),35),e.gb,"rawValue",null,0,1,wE,!0,!0,!0,!1,!0,!0),Ut(u(N(H(n.fb),1),35),e.a,g8,null,0,1,wE,!0,!0,!0,!1,!0,!0),Et(u(N(H(n.fb),2),19),n.wb.q,null,"instanceType",1,1,wE,!1,!1,!0,!1,!1,!1,!1),fc(n.qb,ubn,LJn,!1,!1,!0),Ut(u(N(H(n.qb),0),35),n.wb.D,Jy,null,0,-1,null,!1,!1,!0,!1,!1,!1),Et(u(N(H(n.qb),1),19),n.wb.ab,null,"xMLNSPrefixMap",0,-1,null,!0,!1,!0,!0,!1,!1,!1),Et(u(N(H(n.qb),2),19),n.wb.ab,null,"xSISchemaLocation",0,-1,null,!0,!1,!0,!0,!1,!1,!1),Ut(u(N(H(n.qb),3),35),n.gb,"cDATA",null,0,-2,null,!0,!0,!0,!1,!1,!0),Ut(u(N(H(n.qb),4),35),n.gb,"comment",null,0,-2,null,!0,!0,!0,!1,!1,!0),Et(u(N(H(n.qb),5),19),n.bb,null,GJn,0,-2,null,!0,!0,!0,!0,!1,!1,!0),Ut(u(N(H(n.qb),6),35),n.gb,wF,null,0,-2,null,!0,!0,!0,!1,!1,!0),We(n.a,ki,"AnySimpleType",!0),We(n.c,fn,"AnyURI",!0),We(n.d,C(Ru,1),"Base64Binary",!0),We(n.e,so,"Boolean",!0),We(n.f,Gt,"BooleanObject",!0),We(n.g,Ru,"Byte",!0),We(n.i,p3,"ByteObject",!0),We(n.j,fn,"Date",!0),We(n.k,fn,"DateTime",!0),We(n.n,JF,"Decimal",!0),We(n.o,Ii,"Double",!0),We(n.p,si,"DoubleObject",!0),We(n.q,fn,"Duration",!0),We(n.s,rs,"ENTITIES",!0),We(n.r,rs,"ENTITIESBase",!0),We(n.t,fn,Jcn,!0),We(n.u,cg,"Float",!0),We(n.v,sv,"FloatObject",!0),We(n.w,fn,"GDay",!0),We(n.B,fn,"GMonth",!0),We(n.A,fn,"GMonthDay",!0),We(n.C,fn,"GYear",!0),We(n.D,fn,"GYearMonth",!0),We(n.F,C(Ru,1),"HexBinary",!0),We(n.G,fn,"ID",!0),We(n.H,fn,"IDREF",!0),We(n.J,rs,"IDREFS",!0),We(n.I,rs,"IDREFSBase",!0),We(n.K,ye,"Int",!0),We(n.M,l2,"Integer",!0),We(n.L,Gi,"IntObject",!0),We(n.P,fn,"Language",!0),We(n.Q,Ra,"Long",!0),We(n.R,t0,"LongObject",!0),We(n.S,fn,"Name",!0),We(n.T,fn,tI,!0),We(n.U,l2,"NegativeInteger",!0),We(n.V,fn,Zcn,!0),We(n.X,rs,"NMTOKENS",!0),We(n.W,rs,"NMTOKENSBase",!0),We(n.Y,l2,"NonNegativeInteger",!0),We(n.Z,l2,"NonPositiveInteger",!0),We(n.$,fn,"NormalizedString",!0),We(n._,fn,"NOTATION",!0),We(n.ab,fn,"PositiveInteger",!0),We(n.cb,fn,"QName",!0),We(n.db,V2,"Short",!0),We(n.eb,i0,"ShortObject",!0),We(n.gb,fn,ptn,!0),We(n.hb,fn,"Time",!0),We(n.ib,fn,"Token",!0),We(n.jb,V2,"UnsignedByte",!0),We(n.kb,i0,"UnsignedByteObject",!0),We(n.lb,Ra,"UnsignedInt",!0),We(n.mb,t0,"UnsignedIntObject",!0),We(n.nb,l2,"UnsignedLong",!0),We(n.ob,ye,"UnsignedShort",!0),We(n.pb,Gi,"UnsignedShortObject",!0),gY(n,Pd),nDe(n))}function ltn(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn,Bn,te,xe,Nt,Yu,Br,Ro,W2,L1,rf,cf,Xd,q3,Ka,U3,Oh,cl,T0,G3,J2,Ah,Vd,Bl;if(i.$g()||on(un(z(e,(He(),tA)))))return Ln(),Ln(),sr;if(tn=(!e.a&&(e.a=new q(Ye,e,10,11)),e.a).i!=0,kn=wEe(e),yn=!kn.dc(),tn||yn){if(r=u(z(e,q2),143),!r)throw T(new _l("Resolved algorithm is not set; apply a LayoutAlgorithmResolver before computing layout."));if(J2=dX(r,(Mm(),mA)),eBn(e),!tn&&yn&&!J2)return Ln(),Ln(),sr;if(A=new Z,x(z(e,B2))===x((jl(),T1))&&(dX(r,gA)||dX(r,wA))){if(on(un(z(e,k9))))throw T(new _l("Topdown layout cannot be used together with hierarchy handling."));for(W2=zqn(n,e),L1=new Mt,Ki(L1,(!e.a&&(e.a=new q(Ye,e,10,11)),e.a));L1.b!=0;)Br=u(L1.b==0?null:(oe(L1.b!=0),Xo(L1,L1.a.a)),27),eBn(Br),G3=x(z(Br,B2))===x(E9),G3||Nf(Br,$v)&&!IJ(r,z(Br,q2))?(j=ltn(n,Br,t,i),hi(A,j),ht(Br,B2,E9),fUn(Br)):Ki(L1,(!Br.a&&(Br.a=new q(Ye,Br,10,11)),Br.a))}else{if(W2=(!e.a&&(e.a=new q(Ye,e,10,11)),e.a).i,on(un(z(e,k9)))){if(Ah=i.eh(1),Ah.Ug(AVn,1),z(e,x3)==null)throw T(new _l(e.k+" has not been assigned a top-down node type."));if(u(z(e,x3),280)==(Gp(),Yw)||u(z(e,x3),280)==aA)for(O=new ne((!e.a&&(e.a=new q(Ye,e,10,11)),e.a));O.e!=O.i.gc();)P=u(ue(O),27),Yu=u(z(P,q2),143),(!P.a&&(P.a=new q(Ye,P,10,11)),P.a).i>0&&z7(Yu.f),z(P,Yan)!=null&&(f=u(z(P,Yan),347),T0=f.Tg(P),kg(P,y.Math.max(P.g,T0.a),y.Math.max(P.f,T0.b)));if(rf=u(z(e,M1),107),p=e.g-(rf.b+rf.c),g=e.f-(rf.d+rf.a),Ah.bh("Available Child Area: ("+p+"|"+g+")"),ht(e,x2,p/g),cBn(e,r,i.eh(W2)),u(z(e,x3),280)==aA&&(utn(e),kg(e,rf.b+$(B(z(e,K2)))+rf.c,rf.d+$(B(z(e,R2)))+rf.a)),Ah.bh("Executed layout algorithm: "+Ae(z(e,$v))+" on node "+e.k),u(z(e,x3),280)==Yw){if(p<0||g<0)throw T(new _l("The size defined by the parent parallel node is too small for the space provided by the paddings of the child hierarchical node. "+e.k));for(Nf(e,K2)||Nf(e,R2)||utn(e),k=$(B(z(e,K2))),m=$(B(z(e,R2))),Ah.bh("Desired Child Area: ("+k+"|"+m+")"),Xd=p/k,q3=g/m,cf=y.Math.min(Xd,y.Math.min(q3,$(B(z(e,Hue))))),ht(e,cA,cf),Ah.bh(e.k+" -- Local Scale Factor (X|Y): ("+Xd+"|"+q3+")"),D=u(z(e,Gj),21),c=0,s=0,cf<Xd&&(D.Hc((wd(),w9))?c=(p/2-k*cf/2)/cf:D.Hc(g9)&&(c=(p-k*cf)/cf)),cf<q3&&(D.Hc((wd(),m9))?s=(g/2-m*cf/2)/cf:D.Hc(p9)&&(s=(g-m*cf)/cf)),Vd=c+(rf.b/cf-rf.b),Bl=s+(rf.d/cf-rf.d),Ah.bh("Shift: ("+Vd+"|"+Bl+")"),Ro=new ne((!e.a&&(e.a=new q(Ye,e,10,11)),e.a));Ro.e!=Ro.i.gc();)Br=u(ue(Ro),27),eu(Br,Br.i+Vd),tu(Br,Br.j+Bl);for(X=new ne((!e.b&&(e.b=new q(Vt,e,12,3)),e.b));X.e!=X.i.gc();){for(_=u(ue(X),74),U3=new ne((!_.a&&(_.a=new q(Tt,_,6,6)),_.a));U3.e!=U3.i.gc();)for(Ka=u(ue(U3),166),j7(Ka,Ka.j+Vd,Ka.k+Bl),y7(Ka,Ka.b+Vd,Ka.c+Bl),l=new ne((!Ka.a&&(Ka.a=new ti(xo,Ka,5)),Ka.a));l.e!=l.i.gc();)h=u(ue(l),377),gN(h,h.a+Vd,h.b+Bl);for(Nt=new ne((!_.n&&(_.n=new q(Sr,_,1,7)),_.n));Nt.e!=Nt.i.gc();)xe=u(ue(Nt),135),Bo(xe,xe.i+Vd,xe.j+Bl);for(te=u(z(_,k0),75),Bn=ge(te,0);Bn.b!=Bn.d.c;)Rn=u(be(Bn),8),Rn.a+=Vd,Rn.b+=Bl;ht(_,k0,te)}}Ah.Vg()}for(d=new ne((!e.a&&(e.a=new q(Ye,e,10,11)),e.a));d.e!=d.i.gc();)a=u(ue(d),27),j=ltn(n,a,t,i),hi(A,j),fUn(a)}if(i.$g())return Ln(),Ln(),sr;for(cl=new M(A);cl.a<cl.c.c.length;)Oh=u(E(cl),74),ht(Oh,tA,(_n(),!0));return on(un(z(e,k9)))||cBn(e,r,i.eh(W2)),BPe(A),yn&&J2?kn:(Ln(),Ln(),sr)}else return Ln(),Ln(),sr}function Zg(n,e){var t,i;return X2||(X2=new de,qv=new de,i=(nt(),nt(),new yo(4)),Bk(i,`
\r\r `),Lr(X2,DF,i),Lr(qv,DF,bw(i)),i=new yo(4),Bk(i,XJn),Lr(X2,T8,i),Lr(qv,T8,bw(i)),i=new yo(4),Bk(i,XJn),Lr(X2,T8,i),Lr(qv,T8,bw(i)),i=new yo(4),Bk(i,VJn),gw(i,u(Dc(X2,T8),122)),Lr(X2,NF,i),Lr(qv,NF,bw(i)),i=new yo(4),Bk(i,"-.0:AZ__az··ÀÖØöøıĴľŁňŊžƀǃǍǰǴǵǺȗɐʨʻˁːˑ̀͠͡ͅΆΊΌΌΎΡΣώϐϖϚϚϜϜϞϞϠϠϢϳЁЌЎяёќўҁ҃҆ҐӄӇӈӋӌӐӫӮӵӸӹԱՖՙՙաֆֹֻֽֿֿׁׂ֑֣֡ׄׄאתװײءغـْ٠٩ٰڷںھۀێېۓە۪ۭۨ۰۹ँःअह़्॑॔क़ॣ०९ঁঃঅঌএঐওনপরললশহ়়াৄেৈো্ৗৗড়ঢ়য়ৣ০ৱਂਂਅਊਏਐਓਨਪਰਲਲ਼ਵਸ਼ਸਹ਼਼ਾੂੇੈੋ੍ਖ਼ੜਫ਼ਫ਼੦ੴઁઃઅઋઍઍએઑઓનપરલળવહ઼ૅેૉો્ૠૠ૦૯ଁଃଅଌଏଐଓନପରଲଳଶହ଼ୃେୈୋ୍ୖୗଡ଼ଢ଼ୟୡ୦୯ஂஃஅஊஎஐஒகஙசஜஜஞடணதநபமவஷஹாூெைொ்ௗௗ௧௯ఁఃఅఌఎఐఒనపళవహాౄెైొ్ౕౖౠౡ౦౯ಂಃಅಌಎಐಒನಪಳವಹಾೄೆೈೊ್ೕೖೞೞೠೡ೦೯ംഃഅഌഎഐഒനപഹാൃെൈൊ്ൗൗൠൡ൦൯กฮะฺเ๎๐๙ກຂຄຄງຈຊຊຍຍດທນຟມຣລລວວສຫອຮະູົຽເໄໆໆ່ໍ໐໙༘༙༠༩༹༹༵༵༷༷༾ཇཉཀྵ྄ཱ྆ྋྐྕྗྗྙྭྱྷྐྵྐྵႠჅაჶᄀᄀᄂᄃᄅᄇᄉᄉᄋᄌᄎᄒᄼᄼᄾᄾᅀᅀᅌᅌᅎᅎᅐᅐᅔᅕᅙᅙᅟᅡᅣᅣᅥᅥᅧᅧᅩᅩᅭᅮᅲᅳᅵᅵᆞᆞᆨᆨᆫᆫᆮᆯᆷᆸᆺᆺᆼᇂᇫᇫᇰᇰᇹᇹḀẛẠỹἀἕἘἝἠὅὈὍὐὗὙὙὛὛὝὝὟώᾀᾴᾶᾼιιῂῄῆῌῐΐῖΊῠῬῲῴῶῼ⃐⃜⃡⃡ΩΩKÅ℮℮ↀↂ々々〇〇〡〯〱〵ぁゔ゙゚ゝゞァヺーヾㄅㄬ一龥가힣"),Lr(X2,$F,i),Lr(qv,$F,bw(i)),i=new yo(4),Bk(i,VJn),xc(i,95,95),xc(i,58,58),Lr(X2,xF,i),Lr(qv,xF,bw(i))),t=u(Dc(e?X2:qv,n),138),t}function Mzn(n){rb(n,new gd(yz(UE(eb(Yd(nb(Zd(new Fa,Yn),"ELK Layered"),"Layer-based algorithm provided by the Eclipse Layout Kernel. Arranges as many edges as possible into one direction by placing nodes into subsequent layers. This implementation supports different routing styles (straight, orthogonal, splines); if orthogonal routing is selected, arbitrary port constraints are respected, thus enabling the layout of block diagrams such as actor-oriented models or circuit schematics. Furthermore, full layout of compound graphs with cross-hierarchy edges is supported when the respective option is activated on the top level."),new Upn),Yn),yt((Mm(),vU),S(C(kA,1),G,245,0,[mA,vA,pA,mU,gA,wA]))))),Q(n,Yn,Uin,rn(PH)),Q(n,Yn,Gin,rn(phn)),Q(n,Yn,WK,rn(Cj)),Q(n,Yn,zin,rn(Ws)),Q(n,Yn,eB,rn(C2)),Q(n,Yn,$B,rn(w0)),Q(n,Yn,Xin,rn(qw)),Q(n,Yn,Vin,rn(Sv)),Q(n,Yn,Win,rn(Pv)),Q(n,Yn,Jin,rn(IH)),Q(n,Yn,yw,rn(g0)),Q(n,Yn,Qin,rn(OH)),Q(n,Yn,Yin,rn(X8)),Q(n,Yn,Zin,rn(yO)),Q(n,Yn,Tin,rn(Tj)),Q(n,Yn,Sin,rn(T2)),Q(n,Yn,Cin,rn(Kd)),Q(n,Yn,Pin,rn(S2)),Q(n,Yn,Dy,Y(0)),Q(n,Yn,Iin,rn(Cv)),Q(n,Yn,Oin,rn(ghn)),Q(n,Yn,Ain,rn(O3)),Q(n,Yn,Al,rn(Chn)),Q(n,Yn,pP,rn(vhn)),Q(n,Yn,mP,rn(khn)),Q(n,Yn,s8,rn(LH)),Q(n,Yn,SB,rn(yhn)),Q(n,Yn,PB,rn(jhn)),Q(n,Yn,vP,rn(jO)),Q(n,Yn,kP,rn(NH)),Q(n,Yn,yP,rn(Mhn)),Q(n,Yn,jP,rn(Ehn)),Q(n,Yn,IB,rn(Thn)),Q(n,Yn,yB,rn(d0)),Q(n,Yn,jB,rn(z8)),Q(n,Yn,bP,rn(MH)),Q(n,Yn,wP,rn(Wfn)),Q(n,Yn,$y,rn(Vte)),Q(n,Yn,xy,rn(Wte)),Q(n,Yn,Ry,rn(Xte)),Q(n,Yn,Ky,rn(zte)),Q(n,Yn,Jb,mhn),Q(n,Yn,Wb,lhn),Q(n,Yn,qy,zfn),Q(n,Yn,nrn,0),Q(n,Yn,uP,Y(1)),Q(n,Yn,l3,Gm),Q(n,Yn,ern,rn(Rd)),Q(n,Yn,tB,rn(Ft)),Q(n,Yn,trn,rn(Tv)),Q(n,Yn,Uy,rn(xte)),Q(n,Yn,irn,rn(Ch)),Q(n,Yn,MP,rn(Kw)),Q(n,Yn,t8,(_n(),!0)),Q(n,Yn,rrn,rn(Bw)),Q(n,Yn,crn,rn(Dd)),Q(n,Yn,r2,rn(xd)),Q(n,Yn,a3,rn(kO)),Q(n,Yn,zm,rn(SH)),Q(n,Yn,xB,Gfn),Q(n,Yn,Xm,rn(a0)),Q(n,Yn,urn,rn(mO)),Q(n,Yn,Vm,rn(_w)),Q(n,Yn,orn,rn(Hte)),Q(n,Yn,srn,rn(bhn)),Q(n,Yn,frn,dhn),Q(n,Yn,hrn,rn(Bte)),Q(n,Yn,lrn,rn(Fte)),Q(n,Yn,arn,rn(_te)),Q(n,Yn,drn,rn(Kte)),Q(n,Yn,ain,rn(AH)),Q(n,Yn,Hy,rn($d)),Q(n,Yn,aB,rn(ja)),Q(n,Yn,lin,rn(V8)),Q(n,Yn,bin,rn(ou)),Q(n,Yn,fB,rn(Nd)),Q(n,Yn,o8,rn(U8)),Q(n,Yn,pin,rn(l0)),Q(n,Yn,jin,rn(Hfn)),Q(n,Yn,pB,rn(kH)),Q(n,Yn,aP,rn(Mj)),Q(n,Yn,gB,rn(yH)),Q(n,Yn,oin,rn(uhn)),Q(n,Yn,sin,rn(ohn)),Q(n,Yn,lP,rn(ehn)),Q(n,Yn,c2,rn(vO)),Q(n,Yn,vB,rn(CH)),Q(n,Yn,uin,rn(TH)),Q(n,Yn,kB,rn(fhn)),Q(n,Yn,Ein,rn(Vfn)),Q(n,Yn,Min,rn(EH)),Q(n,Yn,TP,rn(vH)),Q(n,Yn,mB,rn(shn)),Q(n,Yn,Lin,rn(fO)),Q(n,Yn,Nin,rn(Bfn)),Q(n,Yn,MB,rn(sO)),Q(n,Yn,gP,rn(Yfn)),Q(n,Yn,TB,rn(Qfn)),Q(n,Yn,CB,rn(Zfn)),Q(n,Yn,d3,rn(Ev)),Q(n,Yn,brn,rn(Rr)),Q(n,Yn,JK,rn(m1)),Q(n,Yn,wrn,rn(Sh)),Q(n,Yn,oP,rn(jH)),Q(n,Yn,wB,rn(qfn)),Q(n,Yn,grn,rn(v1)),Q(n,Yn,prn,rn(q8)),Q(n,Yn,mrn,rn(wO)),Q(n,Yn,vrn,rn(b0)),Q(n,Yn,RB,rn(ahn)),Q(n,Yn,KB,rn(Mv)),Q(n,Yn,hB,rn(ihn)),Q(n,Yn,lB,rn(rhn)),Q(n,Yn,CP,rn(Hw)),Q(n,Yn,fin,rn(pH)),Q(n,Yn,dB,rn(chn)),Q(n,Yn,Din,rn(bO)),Q(n,Yn,$in,rn(dO)),Q(n,Yn,krn,rn(pO)),Q(n,Yn,bB,rn(thn)),Q(n,Yn,dP,rn(G8)),Q(n,Yn,yrn,rn(Sj)),Q(n,Yn,cin,rn(Ufn)),Q(n,Yn,hin,rn(whn)),Q(n,Yn,EB,rn(Xfn)),Q(n,Yn,min,rn(Nte)),Q(n,Yn,vin,rn(Dte)),Q(n,Yn,win,rn(Rte)),Q(n,Yn,kin,rn($te)),Q(n,Yn,SP,rn(nhn)),Q(n,Yn,gin,rn(gO)),Q(n,Yn,yin,rn(aO)),Q(n,Yn,EP,rn(Yh)),Q(n,Yn,Kin,rn(_fn)),Q(n,Yn,AB,rn(hO)),Q(n,Yn,LB,rn(Ffn)),Q(n,Yn,Rin,rn(lO)),Q(n,Yn,OB,rn(Rw)),Q(n,Yn,xin,rn(mH)),Q(n,Yn,din,rn(Jfn))}function nDe(n){Te(n.a,Ke,S(C(fn,1),J,2,6,[Qe,"anySimpleType"])),Te(n.b,Ke,S(C(fn,1),J,2,6,[Qe,"anyType",vs,Jy])),Te(u(N(H(n.b),0),35),Ke,S(C(fn,1),J,2,6,[vs,PF,Qe,":mixed"])),Te(u(N(H(n.b),1),35),Ke,S(C(fn,1),J,2,6,[vs,PF,Vcn,OF,Qe,":1",NJn,"lax"])),Te(u(N(H(n.b),2),35),Ke,S(C(fn,1),J,2,6,[vs,IJn,Vcn,OF,Qe,":2",NJn,"lax"])),Te(n.c,Ke,S(C(fn,1),J,2,6,[Qe,"anyURI",ys,vf])),Te(n.d,Ke,S(C(fn,1),J,2,6,[Qe,"base64Binary",ys,vf])),Te(n.e,Ke,S(C(fn,1),J,2,6,[Qe,i3,ys,vf])),Te(n.f,Ke,S(C(fn,1),J,2,6,[Qe,"boolean:Object",Ji,i3])),Te(n.g,Ke,S(C(fn,1),J,2,6,[Qe,m8])),Te(n.i,Ke,S(C(fn,1),J,2,6,[Qe,"byte:Object",Ji,m8])),Te(n.j,Ke,S(C(fn,1),J,2,6,[Qe,"date",ys,vf])),Te(n.k,Ke,S(C(fn,1),J,2,6,[Qe,"dateTime",ys,vf])),Te(n.n,Ke,S(C(fn,1),J,2,6,[Qe,"decimal",ys,vf])),Te(n.o,Ke,S(C(fn,1),J,2,6,[Qe,v8,ys,vf])),Te(n.p,Ke,S(C(fn,1),J,2,6,[Qe,"double:Object",Ji,v8])),Te(n.q,Ke,S(C(fn,1),J,2,6,[Qe,"duration",ys,vf])),Te(n.s,Ke,S(C(fn,1),J,2,6,[Qe,"ENTITIES",Ji,DJn,Wcn,"1"])),Te(n.r,Ke,S(C(fn,1),J,2,6,[Qe,DJn,IF,Jcn])),Te(n.t,Ke,S(C(fn,1),J,2,6,[Qe,Jcn,Ji,tI])),Te(n.u,Ke,S(C(fn,1),J,2,6,[Qe,k8,ys,vf])),Te(n.v,Ke,S(C(fn,1),J,2,6,[Qe,"float:Object",Ji,k8])),Te(n.w,Ke,S(C(fn,1),J,2,6,[Qe,"gDay",ys,vf])),Te(n.B,Ke,S(C(fn,1),J,2,6,[Qe,"gMonth",ys,vf])),Te(n.A,Ke,S(C(fn,1),J,2,6,[Qe,"gMonthDay",ys,vf])),Te(n.C,Ke,S(C(fn,1),J,2,6,[Qe,"gYear",ys,vf])),Te(n.D,Ke,S(C(fn,1),J,2,6,[Qe,"gYearMonth",ys,vf])),Te(n.F,Ke,S(C(fn,1),J,2,6,[Qe,"hexBinary",ys,vf])),Te(n.G,Ke,S(C(fn,1),J,2,6,[Qe,"ID",Ji,tI])),Te(n.H,Ke,S(C(fn,1),J,2,6,[Qe,"IDREF",Ji,tI])),Te(n.J,Ke,S(C(fn,1),J,2,6,[Qe,"IDREFS",Ji,$Jn,Wcn,"1"])),Te(n.I,Ke,S(C(fn,1),J,2,6,[Qe,$Jn,IF,"IDREF"])),Te(n.K,Ke,S(C(fn,1),J,2,6,[Qe,y8])),Te(n.M,Ke,S(C(fn,1),J,2,6,[Qe,Qcn])),Te(n.L,Ke,S(C(fn,1),J,2,6,[Qe,"int:Object",Ji,y8])),Te(n.P,Ke,S(C(fn,1),J,2,6,[Qe,"language",Ji,AF,LF,xJn])),Te(n.Q,Ke,S(C(fn,1),J,2,6,[Qe,j8])),Te(n.R,Ke,S(C(fn,1),J,2,6,[Qe,"long:Object",Ji,j8])),Te(n.S,Ke,S(C(fn,1),J,2,6,[Qe,"Name",Ji,AF,LF,Ycn])),Te(n.T,Ke,S(C(fn,1),J,2,6,[Qe,tI,Ji,"Name",LF,RJn])),Te(n.U,Ke,S(C(fn,1),J,2,6,[Qe,"negativeInteger",Ji,KJn,ej,"-1"])),Te(n.V,Ke,S(C(fn,1),J,2,6,[Qe,Zcn,Ji,AF,LF,"\\c+"])),Te(n.X,Ke,S(C(fn,1),J,2,6,[Qe,"NMTOKENS",Ji,BJn,Wcn,"1"])),Te(n.W,Ke,S(C(fn,1),J,2,6,[Qe,BJn,IF,Zcn])),Te(n.Y,Ke,S(C(fn,1),J,2,6,[Qe,nun,Ji,Qcn,tj,"0"])),Te(n.Z,Ke,S(C(fn,1),J,2,6,[Qe,KJn,Ji,Qcn,ej,"0"])),Te(n.$,Ke,S(C(fn,1),J,2,6,[Qe,FJn,Ji,nK,ys,"replace"])),Te(n._,Ke,S(C(fn,1),J,2,6,[Qe,"NOTATION",ys,vf])),Te(n.ab,Ke,S(C(fn,1),J,2,6,[Qe,"positiveInteger",Ji,nun,tj,"1"])),Te(n.bb,Ke,S(C(fn,1),J,2,6,[Qe,"processingInstruction_._type",vs,"empty"])),Te(u(N(H(n.bb),0),35),Ke,S(C(fn,1),J,2,6,[vs,YP,Qe,"data"])),Te(u(N(H(n.bb),1),35),Ke,S(C(fn,1),J,2,6,[vs,YP,Qe,Dcn])),Te(n.cb,Ke,S(C(fn,1),J,2,6,[Qe,"QName",ys,vf])),Te(n.db,Ke,S(C(fn,1),J,2,6,[Qe,E8])),Te(n.eb,Ke,S(C(fn,1),J,2,6,[Qe,"short:Object",Ji,E8])),Te(n.fb,Ke,S(C(fn,1),J,2,6,[Qe,"simpleAnyType",vs,Qy])),Te(u(N(H(n.fb),0),35),Ke,S(C(fn,1),J,2,6,[Qe,":3",vs,Qy])),Te(u(N(H(n.fb),1),35),Ke,S(C(fn,1),J,2,6,[Qe,":4",vs,Qy])),Te(u(N(H(n.fb),2),19),Ke,S(C(fn,1),J,2,6,[Qe,":5",vs,Qy])),Te(n.gb,Ke,S(C(fn,1),J,2,6,[Qe,nK,ys,"preserve"])),Te(n.hb,Ke,S(C(fn,1),J,2,6,[Qe,"time",ys,vf])),Te(n.ib,Ke,S(C(fn,1),J,2,6,[Qe,AF,Ji,FJn,ys,vf])),Te(n.jb,Ke,S(C(fn,1),J,2,6,[Qe,_Jn,ej,"255",tj,"0"])),Te(n.kb,Ke,S(C(fn,1),J,2,6,[Qe,"unsignedByte:Object",Ji,_Jn])),Te(n.lb,Ke,S(C(fn,1),J,2,6,[Qe,HJn,ej,"4294967295",tj,"0"])),Te(n.mb,Ke,S(C(fn,1),J,2,6,[Qe,"unsignedInt:Object",Ji,HJn])),Te(n.nb,Ke,S(C(fn,1),J,2,6,[Qe,"unsignedLong",Ji,nun,ej,qJn,tj,"0"])),Te(n.ob,Ke,S(C(fn,1),J,2,6,[Qe,UJn,ej,"65535",tj,"0"])),Te(n.pb,Ke,S(C(fn,1),J,2,6,[Qe,"unsignedShort:Object",Ji,UJn])),Te(n.qb,Ke,S(C(fn,1),J,2,6,[Qe,"",vs,Jy])),Te(u(N(H(n.qb),0),35),Ke,S(C(fn,1),J,2,6,[vs,PF,Qe,":mixed"])),Te(u(N(H(n.qb),1),19),Ke,S(C(fn,1),J,2,6,[vs,YP,Qe,"xmlns:prefix"])),Te(u(N(H(n.qb),2),19),Ke,S(C(fn,1),J,2,6,[vs,YP,Qe,"xsi:schemaLocation"])),Te(u(N(H(n.qb),3),35),Ke,S(C(fn,1),J,2,6,[vs,ZP,Qe,"cDATA",nI,Yy])),Te(u(N(H(n.qb),4),35),Ke,S(C(fn,1),J,2,6,[vs,ZP,Qe,"comment",nI,Yy])),Te(u(N(H(n.qb),5),19),Ke,S(C(fn,1),J,2,6,[vs,ZP,Qe,GJn,nI,Yy])),Te(u(N(H(n.qb),6),35),Ke,S(C(fn,1),J,2,6,[vs,ZP,Qe,wF,nI,Yy]))}function $e(n){return Sn("_UI_EMFDiagnostic_marker",n)?"EMF Problem":Sn("_UI_CircularContainment_diagnostic",n)?"An object may not circularly contain itself":Sn(SWn,n)?"Wrong character.":Sn(PWn,n)?"Invalid reference number.":Sn(qP,n)?"A character is required after \\.":Sn(jF,n)?"'?' is not expected. '(?:' or '(?=' or '(?!' or '(?<' or '(?#' or '(?>'?":Sn(IWn,n)?"'(?<' or '(?<!' is expected.":Sn(OWn,n)?"A comment is not terminated.":Sn(Sd,n)?"')' is expected.":Sn($cn,n)?"Unexpected end of the pattern in a modifier group.":Sn(AWn,n)?"':' is expected.":Sn(LWn,n)?"Unexpected end of the pattern in a conditional group.":Sn(NWn,n)?"A back reference or an anchor or a lookahead or a look-behind is expected in a conditional pattern.":Sn(DWn,n)?"There are more than three choices in a conditional group.":Sn($Wn,n)?"A character in U+0040-U+005f must follow \\c.":Sn(xWn,n)?"A '{' is required before a character category.":Sn(RWn,n)?"A property name is not closed by '}'.":Sn(xcn,n)?"Unexpected meta character.":Sn(EF,n)?"Unknown property.":Sn(Rcn,n)?"A POSIX character class must be closed by ':]'.":Sn(UP,n)?"Unexpected end of the pattern in a character class.":Sn(KWn,n)?"Unknown name for a POSIX character class.":Sn("parser.cc.4",n)?"'-' is invalid here.":Sn(BWn,n)?"']' is expected.":Sn(Kcn,n)?"'[' is invalid in a character class. Write '\\['.":Sn(Bcn,n)?"']' is invalid in a character class. Write '\\]'.":Sn(MF,n)?"'-' is an invalid character range. Write '\\-'.":Sn(FWn,n)?"'[' is expected.":Sn(_Wn,n)?"')' or '-[' or '+[' or '&[' is expected.":Sn(HWn,n)?"The range end code point is less than the start code point.":Sn(g1,n)?"Invalid Unicode hex notation.":Sn(qWn,n)?"Overflow in a hex notation.":Sn(UWn,n)?"'\\x{' must be closed by '}'.":Sn(GWn,n)?"Invalid Unicode code point.":Sn(zWn,n)?"An anchor must not be here.":Sn(is,n)?"This expression is not supported in the current option setting.":Sn(XWn,n)?"Invalid quantifier. A digit is expected.":Sn(VWn,n)?"Invalid quantifier. Invalid quantity or a '}' is missing.":Sn(WWn,n)?"Invalid quantifier. A digit or '}' is expected.":Sn(JWn,n)?"Invalid quantifier. A min quantity must be <= a max quantity.":Sn(Fcn,n)?"Invalid quantifier. A quantity value overflow.":Sn("_UI_PackageRegistry_extensionpoint",n)?"Ecore Package Registry for Generated Packages":Sn("_UI_DynamicPackageRegistry_extensionpoint",n)?"Ecore Package Registry for Dynamic Packages":Sn("_UI_FactoryRegistry_extensionpoint",n)?"Ecore Factory Override Registry":Sn("_UI_URIExtensionParserRegistry_extensionpoint",n)?"URI Extension Parser Registry":Sn("_UI_URIProtocolParserRegistry_extensionpoint",n)?"URI Protocol Parser Registry":Sn("_UI_URIContentParserRegistry_extensionpoint",n)?"URI Content Parser Registry":Sn("_UI_ContentHandlerRegistry_extensionpoint",n)?"Content Handler Registry":Sn("_UI_URIMappingRegistry_extensionpoint",n)?"URI Converter Mapping Registry":Sn("_UI_PackageRegistryImplementation_extensionpoint",n)?"Ecore Package Registry Implementation":Sn("_UI_ValidationDelegateRegistry_extensionpoint",n)?"Validation Delegate Registry":Sn("_UI_SettingDelegateRegistry_extensionpoint",n)?"Feature Setting Delegate Factory Registry":Sn("_UI_InvocationDelegateRegistry_extensionpoint",n)?"Operation Invocation Delegate Factory Registry":Sn("_UI_EClassInterfaceNotAbstract_diagnostic",n)?"A class that is an interface must also be abstract":Sn("_UI_EClassNoCircularSuperTypes_diagnostic",n)?"A class may not be a super type of itself":Sn("_UI_EClassNotWellFormedMapEntryNoInstanceClassName_diagnostic",n)?"A class that inherits from a map entry class must have instance class name 'java.util.Map$Entry'":Sn("_UI_EReferenceOppositeOfOppositeInconsistent_diagnostic",n)?"The opposite of the opposite may not be a reference different from this one":Sn("_UI_EReferenceOppositeNotFeatureOfType_diagnostic",n)?"The opposite must be a feature of the reference's type":Sn("_UI_EReferenceTransientOppositeNotTransient_diagnostic",n)?"The opposite of a transient reference must be transient if it is proxy resolving":Sn("_UI_EReferenceOppositeBothContainment_diagnostic",n)?"The opposite of a containment reference must not be a containment reference":Sn("_UI_EReferenceConsistentUnique_diagnostic",n)?"A containment or bidirectional reference must be unique if its upper bound is different from 1":Sn("_UI_ETypedElementNoType_diagnostic",n)?"The typed element must have a type":Sn("_UI_EAttributeNoDataType_diagnostic",n)?"The generic attribute type must not refer to a class":Sn("_UI_EReferenceNoClass_diagnostic",n)?"The generic reference type must not refer to a data type":Sn("_UI_EGenericTypeNoTypeParameterAndClassifier_diagnostic",n)?"A generic type can't refer to both a type parameter and a classifier":Sn("_UI_EGenericTypeNoClass_diagnostic",n)?"A generic super type must refer to a class":Sn("_UI_EGenericTypeNoTypeParameterOrClassifier_diagnostic",n)?"A generic type in this context must refer to a classifier or a type parameter":Sn("_UI_EGenericTypeBoundsOnlyForTypeArgument_diagnostic",n)?"A generic type may have bounds only when used as a type argument":Sn("_UI_EGenericTypeNoUpperAndLowerBound_diagnostic",n)?"A generic type must not have both a lower and an upper bound":Sn("_UI_EGenericTypeNoTypeParameterOrClassifierAndBound_diagnostic",n)?"A generic type with bounds must not also refer to a type parameter or classifier":Sn("_UI_EGenericTypeNoArguments_diagnostic",n)?"A generic type may have arguments only if it refers to a classifier":Sn("_UI_EGenericTypeOutOfScopeTypeParameter_diagnostic",n)?"A generic type may only refer to a type parameter that is in scope":n}function eDe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k;n.r||(n.r=!0,zc(n,"graph"),MC(n,"graph"),TC(n,tv),jk(n.o,"T"),ve(Hr(n.a),n.p),ve(Hr(n.f),n.a),ve(Hr(n.n),n.f),ve(Hr(n.g),n.n),ve(Hr(n.c),n.n),ve(Hr(n.i),n.c),ve(Hr(n.j),n.c),ve(Hr(n.d),n.f),ve(Hr(n.e),n.a),fc(n.p,pDe,pXn,!0,!0,!1),m=$g(n.p,n.p,"setProperty"),k=rRn(m),l=al(n.o),a=(t=(i=new Jd,i),t),ve((!l.d&&(l.d=new ti(jr,l,1)),l.d),a),d=ED(k),qZ(a,d),dS(m,l,Tcn),l=ED(k),dS(m,l,g8),m=$g(n.p,null,"getProperty"),k=rRn(m),l=al(n.o),a=ED(k),ve((!l.d&&(l.d=new ti(jr,l,1)),l.d),a),dS(m,l,Tcn),l=ED(k),p=Kf(m,l,null),p&&p.oj(),m=$g(n.p,n.wb.e,"hasProperty"),l=al(n.o),a=(r=(c=new Jd,c),r),ve((!l.d&&(l.d=new ti(jr,l,1)),l.d),a),dS(m,l,Tcn),m=$g(n.p,n.p,"copyProperties"),$r(m,n.p,lF),m=$g(n.p,null,"getAllProperties"),l=al(n.wb.P),a=al(n.o),ve((!l.d&&(l.d=new ti(jr,l,1)),l.d),a),d=(s=(f=new Jd,f),s),ve((!a.d&&(a.d=new ti(jr,a,1)),a.d),d),a=al(n.wb.M),ve((!l.d&&(l.d=new ti(jr,l,1)),l.d),a),g=Kf(m,l,null),g&&g.oj(),fc(n.a,Hv,iWn,!0,!1,!0),Et(u(N(H(n.a),0),19),n.k,null,wWn,0,-1,Hv,!1,!1,!0,!0,!1,!1,!1),fc(n.f,oE,cWn,!0,!1,!0),Et(u(N(H(n.f),0),19),n.g,u(N(H(n.g),0),19),"labels",0,-1,oE,!1,!1,!0,!0,!1,!1,!1),Ut(u(N(H(n.f),1),35),n.wb._,gWn,null,0,1,oE,!1,!1,!0,!1,!0,!1),fc(n.n,sE,"ElkShape",!0,!1,!0),Ut(u(N(H(n.n),0),35),n.wb.t,aF,Fm,1,1,sE,!1,!1,!0,!1,!0,!1),Ut(u(N(H(n.n),1),35),n.wb.t,dF,Fm,1,1,sE,!1,!1,!0,!1,!0,!1),Ut(u(N(H(n.n),2),35),n.wb.t,"x",Fm,1,1,sE,!1,!1,!0,!1,!0,!1),Ut(u(N(H(n.n),3),35),n.wb.t,"y",Fm,1,1,sE,!1,!1,!0,!1,!0,!1),m=$g(n.n,null,"setDimensions"),$r(m,n.wb.t,dF),$r(m,n.wb.t,aF),m=$g(n.n,null,"setLocation"),$r(m,n.wb.t,"x"),$r(m,n.wb.t,"y"),fc(n.g,Sr,jcn,!1,!1,!0),Et(u(N(H(n.g),0),19),n.f,u(N(H(n.f),0),19),bF,0,1,Sr,!1,!1,!0,!1,!1,!1,!1),Ut(u(N(H(n.g),1),35),n.wb._,wF,"",0,1,Sr,!1,!1,!0,!1,!0,!1),fc(n.c,he,uWn,!0,!1,!0),Et(u(N(H(n.c),0),19),n.d,u(N(H(n.d),1),19),"outgoingEdges",0,-1,he,!1,!1,!0,!1,!0,!1,!1),Et(u(N(H(n.c),1),19),n.d,u(N(H(n.d),2),19),"incomingEdges",0,-1,he,!1,!1,!0,!1,!0,!1,!1),fc(n.i,Ye,Ecn,!1,!1,!0),Et(u(N(H(n.i),0),19),n.j,u(N(H(n.j),0),19),"ports",0,-1,Ye,!1,!1,!0,!0,!1,!1,!1),Et(u(N(H(n.i),1),19),n.i,u(N(H(n.i),2),19),gF,0,-1,Ye,!1,!1,!0,!0,!1,!1,!1),Et(u(N(H(n.i),2),19),n.i,u(N(H(n.i),1),19),bF,0,1,Ye,!1,!1,!0,!1,!1,!1,!1),Et(u(N(H(n.i),3),19),n.d,u(N(H(n.d),0),19),"containedEdges",0,-1,Ye,!1,!1,!0,!0,!1,!1,!1),Ut(u(N(H(n.i),4),35),n.wb.e,pWn,null,0,1,Ye,!0,!0,!1,!1,!0,!0),fc(n.j,Qu,Mcn,!1,!1,!0),Et(u(N(H(n.j),0),19),n.i,u(N(H(n.i),0),19),bF,0,1,Qu,!1,!1,!0,!1,!1,!1,!1),fc(n.d,Vt,ycn,!1,!1,!0),Et(u(N(H(n.d),0),19),n.i,u(N(H(n.i),3),19),"containingNode",0,1,Vt,!1,!1,!0,!1,!1,!1,!1),Et(u(N(H(n.d),1),19),n.c,u(N(H(n.c),0),19),Ccn,0,-1,Vt,!1,!1,!0,!1,!0,!1,!1),Et(u(N(H(n.d),2),19),n.c,u(N(H(n.c),1),19),pF,0,-1,Vt,!1,!1,!0,!1,!0,!1,!1),Et(u(N(H(n.d),3),19),n.e,u(N(H(n.e),5),19),Scn,0,-1,Vt,!1,!1,!0,!0,!1,!1,!1),Ut(u(N(H(n.d),4),35),n.wb.e,"hyperedge",null,0,1,Vt,!0,!0,!1,!1,!0,!0),Ut(u(N(H(n.d),5),35),n.wb.e,pWn,null,0,1,Vt,!0,!0,!1,!1,!0,!0),Ut(u(N(H(n.d),6),35),n.wb.e,"selfloop",null,0,1,Vt,!0,!0,!1,!1,!0,!0),Ut(u(N(H(n.d),7),35),n.wb.e,"connected",null,0,1,Vt,!0,!0,!1,!1,!0,!0),fc(n.b,xo,rWn,!1,!1,!0),Ut(u(N(H(n.b),0),35),n.wb.t,"x",Fm,1,1,xo,!1,!1,!0,!1,!0,!1),Ut(u(N(H(n.b),1),35),n.wb.t,"y",Fm,1,1,xo,!1,!1,!0,!1,!0,!1),m=$g(n.b,null,"set"),$r(m,n.wb.t,"x"),$r(m,n.wb.t,"y"),fc(n.e,Tt,oWn,!1,!1,!0),Ut(u(N(H(n.e),0),35),n.wb.t,"startX",null,0,1,Tt,!1,!1,!0,!1,!0,!1),Ut(u(N(H(n.e),1),35),n.wb.t,"startY",null,0,1,Tt,!1,!1,!0,!1,!0,!1),Ut(u(N(H(n.e),2),35),n.wb.t,"endX",null,0,1,Tt,!1,!1,!0,!1,!0,!1),Ut(u(N(H(n.e),3),35),n.wb.t,"endY",null,0,1,Tt,!1,!1,!0,!1,!0,!1),Et(u(N(H(n.e),4),19),n.b,null,BP,0,-1,Tt,!1,!1,!0,!0,!1,!1,!1),Et(u(N(H(n.e),5),19),n.d,u(N(H(n.d),3),19),bF,0,1,Tt,!1,!1,!0,!1,!1,!1,!1),Et(u(N(H(n.e),6),19),n.c,null,Pcn,0,1,Tt,!1,!1,!0,!1,!0,!1,!1),Et(u(N(H(n.e),7),19),n.c,null,Icn,0,1,Tt,!1,!1,!0,!1,!0,!1,!1),Et(u(N(H(n.e),8),19),n.e,u(N(H(n.e),9),19),Ocn,0,-1,Tt,!1,!1,!0,!1,!0,!1,!1),Et(u(N(H(n.e),9),19),n.e,u(N(H(n.e),8),19),Acn,0,-1,Tt,!1,!1,!0,!1,!0,!1,!1),Ut(u(N(H(n.e),10),35),n.wb._,gWn,null,0,1,Tt,!1,!1,!0,!1,!0,!1),m=$g(n.e,null,"setStartLocation"),$r(m,n.wb.t,"x"),$r(m,n.wb.t,"y"),m=$g(n.e,null,"setEndLocation"),$r(m,n.wb.t,"x"),$r(m,n.wb.t,"y"),fc(n.k,Id,"ElkPropertyToValueMapEntry",!1,!1,!1),l=al(n.o),a=(h=(e=new Jd,e),h),ve((!l.d&&(l.d=new ti(jr,l,1)),l.d),a),bHn(u(N(H(n.k),0),35),l,"key",Id,!1,!1,!0,!1),Ut(u(N(H(n.k),1),35),n.s,g8,null,0,1,Id,!1,!1,!0,!1,!0,!1),We(n.o,zq,"IProperty",!0),We(n.s,ki,"PropertyValue",!0),gY(n,tv))}function Tzn(){Tzn=R,I=F(Ru,s2,28,hr,15,1),I[9]=35,I[10]=19,I[13]=19,I[32]=51,I[33]=49,I[34]=33,K(I,35,38,49),I[38]=1,K(I,39,45,49),K(I,45,47,-71),I[47]=49,K(I,48,58,-71),I[58]=61,I[59]=49,I[60]=1,I[61]=49,I[62]=33,K(I,63,65,49),K(I,65,91,-3),K(I,91,93,33),I[93]=1,I[94]=33,I[95]=-3,I[96]=33,K(I,97,123,-3),K(I,123,183,33),I[183]=-87,K(I,184,192,33),K(I,192,215,-19),I[215]=33,K(I,216,247,-19),I[247]=33,K(I,248,306,-19),K(I,306,308,33),K(I,308,319,-19),K(I,319,321,33),K(I,321,329,-19),I[329]=33,K(I,330,383,-19),I[383]=33,K(I,384,452,-19),K(I,452,461,33),K(I,461,497,-19),K(I,497,500,33),K(I,500,502,-19),K(I,502,506,33),K(I,506,536,-19),K(I,536,592,33),K(I,592,681,-19),K(I,681,699,33),K(I,699,706,-19),K(I,706,720,33),K(I,720,722,-87),K(I,722,768,33),K(I,768,838,-87),K(I,838,864,33),K(I,864,866,-87),K(I,866,902,33),I[902]=-19,I[903]=-87,K(I,904,907,-19),I[907]=33,I[908]=-19,I[909]=33,K(I,910,930,-19),I[930]=33,K(I,931,975,-19),I[975]=33,K(I,976,983,-19),K(I,983,986,33),I[986]=-19,I[987]=33,I[988]=-19,I[989]=33,I[990]=-19,I[991]=33,I[992]=-19,I[993]=33,K(I,994,1012,-19),K(I,1012,1025,33),K(I,1025,1037,-19),I[1037]=33,K(I,1038,1104,-19),I[1104]=33,K(I,1105,1117,-19),I[1117]=33,K(I,1118,1154,-19),I[1154]=33,K(I,1155,1159,-87),K(I,1159,1168,33),K(I,1168,1221,-19),K(I,1221,1223,33),K(I,1223,1225,-19),K(I,1225,1227,33),K(I,1227,1229,-19),K(I,1229,1232,33),K(I,1232,1260,-19),K(I,1260,1262,33),K(I,1262,1270,-19),K(I,1270,1272,33),K(I,1272,1274,-19),K(I,1274,1329,33),K(I,1329,1367,-19),K(I,1367,1369,33),I[1369]=-19,K(I,1370,1377,33),K(I,1377,1415,-19),K(I,1415,1425,33),K(I,1425,1442,-87),I[1442]=33,K(I,1443,1466,-87),I[1466]=33,K(I,1467,1470,-87),I[1470]=33,I[1471]=-87,I[1472]=33,K(I,1473,1475,-87),I[1475]=33,I[1476]=-87,K(I,1477,1488,33),K(I,1488,1515,-19),K(I,1515,1520,33),K(I,1520,1523,-19),K(I,1523,1569,33),K(I,1569,1595,-19),K(I,1595,1600,33),I[1600]=-87,K(I,1601,1611,-19),K(I,1611,1619,-87),K(I,1619,1632,33),K(I,1632,1642,-87),K(I,1642,1648,33),I[1648]=-87,K(I,1649,1720,-19),K(I,1720,1722,33),K(I,1722,1727,-19),I[1727]=33,K(I,1728,1743,-19),I[1743]=33,K(I,1744,1748,-19),I[1748]=33,I[1749]=-19,K(I,1750,1765,-87),K(I,1765,1767,-19),K(I,1767,1769,-87),I[1769]=33,K(I,1770,1774,-87),K(I,1774,1776,33),K(I,1776,1786,-87),K(I,1786,2305,33),K(I,2305,2308,-87),I[2308]=33,K(I,2309,2362,-19),K(I,2362,2364,33),I[2364]=-87,I[2365]=-19,K(I,2366,2382,-87),K(I,2382,2385,33),K(I,2385,2389,-87),K(I,2389,2392,33),K(I,2392,2402,-19),K(I,2402,2404,-87),K(I,2404,2406,33),K(I,2406,2416,-87),K(I,2416,2433,33),K(I,2433,2436,-87),I[2436]=33,K(I,2437,2445,-19),K(I,2445,2447,33),K(I,2447,2449,-19),K(I,2449,2451,33),K(I,2451,2473,-19),I[2473]=33,K(I,2474,2481,-19),I[2481]=33,I[2482]=-19,K(I,2483,2486,33),K(I,2486,2490,-19),K(I,2490,2492,33),I[2492]=-87,I[2493]=33,K(I,2494,2501,-87),K(I,2501,2503,33),K(I,2503,2505,-87),K(I,2505,2507,33),K(I,2507,2510,-87),K(I,2510,2519,33),I[2519]=-87,K(I,2520,2524,33),K(I,2524,2526,-19),I[2526]=33,K(I,2527,2530,-19),K(I,2530,2532,-87),K(I,2532,2534,33),K(I,2534,2544,-87),K(I,2544,2546,-19),K(I,2546,2562,33),I[2562]=-87,K(I,2563,2565,33),K(I,2565,2571,-19),K(I,2571,2575,33),K(I,2575,2577,-19),K(I,2577,2579,33),K(I,2579,2601,-19),I[2601]=33,K(I,2602,2609,-19),I[2609]=33,K(I,2610,2612,-19),I[2612]=33,K(I,2613,2615,-19),I[2615]=33,K(I,2616,2618,-19),K(I,2618,2620,33),I[2620]=-87,I[2621]=33,K(I,2622,2627,-87),K(I,2627,2631,33),K(I,2631,2633,-87),K(I,2633,2635,33),K(I,2635,2638,-87),K(I,2638,2649,33),K(I,2649,2653,-19),I[2653]=33,I[2654]=-19,K(I,2655,2662,33),K(I,2662,2674,-87),K(I,2674,2677,-19),K(I,2677,2689,33),K(I,2689,2692,-87),I[2692]=33,K(I,2693,2700,-19),I[2700]=33,I[2701]=-19,I[2702]=33,K(I,2703,2706,-19),I[2706]=33,K(I,2707,2729,-19),I[2729]=33,K(I,2730,2737,-19),I[2737]=33,K(I,2738,2740,-19),I[2740]=33,K(I,2741,2746,-19),K(I,2746,2748,33),I[2748]=-87,I[2749]=-19,K(I,2750,2758,-87),I[2758]=33,K(I,2759,2762,-87),I[2762]=33,K(I,2763,2766,-87),K(I,2766,2784,33),I[2784]=-19,K(I,2785,2790,33),K(I,2790,2800,-87),K(I,2800,2817,33),K(I,2817,2820,-87),I[2820]=33,K(I,2821,2829,-19),K(I,2829,2831,33),K(I,2831,2833,-19),K(I,2833,2835,33),K(I,2835,2857,-19),I[2857]=33,K(I,2858,2865,-19),I[2865]=33,K(I,2866,2868,-19),K(I,2868,2870,33),K(I,2870,2874,-19),K(I,2874,2876,33),I[2876]=-87,I[2877]=-19,K(I,2878,2884,-87),K(I,2884,2887,33),K(I,2887,2889,-87),K(I,2889,2891,33),K(I,2891,2894,-87),K(I,2894,2902,33),K(I,2902,2904,-87),K(I,2904,2908,33),K(I,2908,2910,-19),I[2910]=33,K(I,2911,2914,-19),K(I,2914,2918,33),K(I,2918,2928,-87),K(I,2928,2946,33),K(I,2946,2948,-87),I[2948]=33,K(I,2949,2955,-19),K(I,2955,2958,33),K(I,2958,2961,-19),I[2961]=33,K(I,2962,2966,-19),K(I,2966,2969,33),K(I,2969,2971,-19),I[2971]=33,I[2972]=-19,I[2973]=33,K(I,2974,2976,-19),K(I,2976,2979,33),K(I,2979,2981,-19),K(I,2981,2984,33),K(I,2984,2987,-19),K(I,2987,2990,33),K(I,2990,2998,-19),I[2998]=33,K(I,2999,3002,-19),K(I,3002,3006,33),K(I,3006,3011,-87),K(I,3011,3014,33),K(I,3014,3017,-87),I[3017]=33,K(I,3018,3022,-87),K(I,3022,3031,33),I[3031]=-87,K(I,3032,3047,33),K(I,3047,3056,-87),K(I,3056,3073,33),K(I,3073,3076,-87),I[3076]=33,K(I,3077,3085,-19),I[3085]=33,K(I,3086,3089,-19),I[3089]=33,K(I,3090,3113,-19),I[3113]=33,K(I,3114,3124,-19),I[3124]=33,K(I,3125,3130,-19),K(I,3130,3134,33),K(I,3134,3141,-87),I[3141]=33,K(I,3142,3145,-87),I[3145]=33,K(I,3146,3150,-87),K(I,3150,3157,33),K(I,3157,3159,-87),K(I,3159,3168,33),K(I,3168,3170,-19),K(I,3170,3174,33),K(I,3174,3184,-87),K(I,3184,3202,33),K(I,3202,3204,-87),I[3204]=33,K(I,3205,3213,-19),I[3213]=33,K(I,3214,3217,-19),I[3217]=33,K(I,3218,3241,-19),I[3241]=33,K(I,3242,3252,-19),I[3252]=33,K(I,3253,3258,-19),K(I,3258,3262,33),K(I,3262,3269,-87),I[3269]=33,K(I,3270,3273,-87),I[3273]=33,K(I,3274,3278,-87),K(I,3278,3285,33),K(I,3285,3287,-87),K(I,3287,3294,33),I[3294]=-19,I[3295]=33,K(I,3296,3298,-19),K(I,3298,3302,33),K(I,3302,3312,-87),K(I,3312,3330,33),K(I,3330,3332,-87),I[3332]=33,K(I,3333,3341,-19),I[3341]=33,K(I,3342,3345,-19),I[3345]=33,K(I,3346,3369,-19),I[3369]=33,K(I,3370,3386,-19),K(I,3386,3390,33),K(I,3390,3396,-87),K(I,3396,3398,33),K(I,3398,3401,-87),I[3401]=33,K(I,3402,3406,-87),K(I,3406,3415,33),I[3415]=-87,K(I,3416,3424,33),K(I,3424,3426,-19),K(I,3426,3430,33),K(I,3430,3440,-87),K(I,3440,3585,33),K(I,3585,3631,-19),I[3631]=33,I[3632]=-19,I[3633]=-87,K(I,3634,3636,-19),K(I,3636,3643,-87),K(I,3643,3648,33),K(I,3648,3654,-19),K(I,3654,3663,-87),I[3663]=33,K(I,3664,3674,-87),K(I,3674,3713,33),K(I,3713,3715,-19),I[3715]=33,I[3716]=-19,K(I,3717,3719,33),K(I,3719,3721,-19),I[3721]=33,I[3722]=-19,K(I,3723,3725,33),I[3725]=-19,K(I,3726,3732,33),K(I,3732,3736,-19),I[3736]=33,K(I,3737,3744,-19),I[3744]=33,K(I,3745,3748,-19),I[3748]=33,I[3749]=-19,I[3750]=33,I[3751]=-19,K(I,3752,3754,33),K(I,3754,3756,-19),I[3756]=33,K(I,3757,3759,-19),I[3759]=33,I[3760]=-19,I[3761]=-87,K(I,3762,3764,-19),K(I,3764,3770,-87),I[3770]=33,K(I,3771,3773,-87),I[3773]=-19,K(I,3774,3776,33),K(I,3776,3781,-19),I[3781]=33,I[3782]=-87,I[3783]=33,K(I,3784,3790,-87),K(I,3790,3792,33),K(I,3792,3802,-87),K(I,3802,3864,33),K(I,3864,3866,-87),K(I,3866,3872,33),K(I,3872,3882,-87),K(I,3882,3893,33),I[3893]=-87,I[3894]=33,I[3895]=-87,I[3896]=33,I[3897]=-87,K(I,3898,3902,33),K(I,3902,3904,-87),K(I,3904,3912,-19),I[3912]=33,K(I,3913,3946,-19),K(I,3946,3953,33),K(I,3953,3973,-87),I[3973]=33,K(I,3974,3980,-87),K(I,3980,3984,33),K(I,3984,3990,-87),I[3990]=33,I[3991]=-87,I[3992]=33,K(I,3993,4014,-87),K(I,4014,4017,33),K(I,4017,4024,-87),I[4024]=33,I[4025]=-87,K(I,4026,4256,33),K(I,4256,4294,-19),K(I,4294,4304,33),K(I,4304,4343,-19),K(I,4343,4352,33),I[4352]=-19,I[4353]=33,K(I,4354,4356,-19),I[4356]=33,K(I,4357,4360,-19),I[4360]=33,I[4361]=-19,I[4362]=33,K(I,4363,4365,-19),I[4365]=33,K(I,4366,4371,-19),K(I,4371,4412,33),I[4412]=-19,I[4413]=33,I[4414]=-19,I[4415]=33,I[4416]=-19,K(I,4417,4428,33),I[4428]=-19,I[4429]=33,I[4430]=-19,I[4431]=33,I[4432]=-19,K(I,4433,4436,33),K(I,4436,4438,-19),K(I,4438,4441,33),I[4441]=-19,K(I,4442,4447,33),K(I,4447,4450,-19),I[4450]=33,I[4451]=-19,I[4452]=33,I[4453]=-19,I[4454]=33,I[4455]=-19,I[4456]=33,I[4457]=-19,K(I,4458,4461,33),K(I,4461,4463,-19),K(I,4463,4466,33),K(I,4466,4468,-19),I[4468]=33,I[4469]=-19,K(I,4470,4510,33),I[4510]=-19,K(I,4511,4520,33),I[4520]=-19,K(I,4521,4523,33),I[4523]=-19,K(I,4524,4526,33),K(I,4526,4528,-19),K(I,4528,4535,33),K(I,4535,4537,-19),I[4537]=33,I[4538]=-19,I[4539]=33,K(I,4540,4547,-19),K(I,4547,4587,33),I[4587]=-19,K(I,4588,4592,33),I[4592]=-19,K(I,4593,4601,33),I[4601]=-19,K(I,4602,7680,33),K(I,7680,7836,-19),K(I,7836,7840,33),K(I,7840,7930,-19),K(I,7930,7936,33),K(I,7936,7958,-19),K(I,7958,7960,33),K(I,7960,7966,-19),K(I,7966,7968,33),K(I,7968,8006,-19),K(I,8006,8008,33),K(I,8008,8014,-19),K(I,8014,8016,33),K(I,8016,8024,-19),I[8024]=33,I[8025]=-19,I[8026]=33,I[8027]=-19,I[8028]=33,I[8029]=-19,I[8030]=33,K(I,8031,8062,-19),K(I,8062,8064,33),K(I,8064,8117,-19),I[8117]=33,K(I,8118,8125,-19),I[8125]=33,I[8126]=-19,K(I,8127,8130,33),K(I,8130,8133,-19),I[8133]=33,K(I,8134,8141,-19),K(I,8141,8144,33),K(I,8144,8148,-19),K(I,8148,8150,33),K(I,8150,8156,-19),K(I,8156,8160,33),K(I,8160,8173,-19),K(I,8173,8178,33),K(I,8178,8181,-19),I[8181]=33,K(I,8182,8189,-19),K(I,8189,8400,33),K(I,8400,8413,-87),K(I,8413,8417,33),I[8417]=-87,K(I,8418,8486,33),I[8486]=-19,K(I,8487,8490,33),K(I,8490,8492,-19),K(I,8492,8494,33),I[8494]=-19,K(I,8495,8576,33),K(I,8576,8579,-19),K(I,8579,12293,33),I[12293]=-87,I[12294]=33,I[12295]=-19,K(I,12296,12321,33),K(I,12321,12330,-19),K(I,12330,12336,-87),I[12336]=33,K(I,12337,12342,-87),K(I,12342,12353,33),K(I,12353,12437,-19),K(I,12437,12441,33),K(I,12441,12443,-87),K(I,12443,12445,33),K(I,12445,12447,-87),K(I,12447,12449,33),K(I,12449,12539,-19),I[12539]=33,K(I,12540,12543,-87),K(I,12543,12549,33),K(I,12549,12589,-19),K(I,12589,19968,33),K(I,19968,40870,-19),K(I,40870,44032,33),K(I,44032,55204,-19),K(I,55204,Py,33),K(I,57344,65534,33)}function tDe(n){var e,t,i,r,c,s,f;n.hb||(n.hb=!0,zc(n,"ecore"),MC(n,"ecore"),TC(n,ks),jk(n.fb,"E"),jk(n.L,"T"),jk(n.P,"K"),jk(n.P,"V"),jk(n.cb,"E"),ve(Hr(n.b),n.bb),ve(Hr(n.a),n.Q),ve(Hr(n.o),n.p),ve(Hr(n.p),n.R),ve(Hr(n.q),n.p),ve(Hr(n.v),n.q),ve(Hr(n.w),n.R),ve(Hr(n.B),n.Q),ve(Hr(n.R),n.Q),ve(Hr(n.T),n.eb),ve(Hr(n.U),n.R),ve(Hr(n.V),n.eb),ve(Hr(n.W),n.bb),ve(Hr(n.bb),n.eb),ve(Hr(n.eb),n.R),ve(Hr(n.db),n.R),fc(n.b,ng,uJn,!1,!1,!0),Ut(u(N(H(n.b),0),35),n.e,"iD",null,0,1,ng,!1,!1,!0,!1,!0,!1),Et(u(N(H(n.b),1),19),n.q,null,"eAttributeType",1,1,ng,!0,!0,!1,!1,!0,!1,!0),fc(n.a,Ue,iJn,!1,!1,!0),Ut(u(N(H(n.a),0),35),n._,lF,null,0,1,Ue,!1,!1,!0,!1,!0,!1),Et(u(N(H(n.a),1),19),n.ab,null,"details",0,-1,Ue,!1,!1,!0,!0,!1,!1,!1),Et(u(N(H(n.a),2),19),n.Q,u(N(H(n.Q),0),19),"eModelElement",0,1,Ue,!0,!1,!0,!1,!1,!1,!1),Et(u(N(H(n.a),3),19),n.S,null,"contents",0,-1,Ue,!1,!1,!0,!0,!1,!1,!1),Et(u(N(H(n.a),4),19),n.S,null,"references",0,-1,Ue,!1,!1,!0,!1,!0,!1,!1),fc(n.o,Ss,"EClass",!1,!1,!0),Ut(u(N(H(n.o),0),35),n.e,"abstract",null,0,1,Ss,!1,!1,!0,!1,!0,!1),Ut(u(N(H(n.o),1),35),n.e,"interface",null,0,1,Ss,!1,!1,!0,!1,!0,!1),Et(u(N(H(n.o),2),19),n.o,null,"eSuperTypes",0,-1,Ss,!1,!1,!0,!1,!0,!0,!1),Et(u(N(H(n.o),3),19),n.T,u(N(H(n.T),0),19),"eOperations",0,-1,Ss,!1,!1,!0,!0,!1,!1,!1),Et(u(N(H(n.o),4),19),n.b,null,"eAllAttributes",0,-1,Ss,!0,!0,!1,!1,!0,!1,!0),Et(u(N(H(n.o),5),19),n.W,null,"eAllReferences",0,-1,Ss,!0,!0,!1,!1,!0,!1,!0),Et(u(N(H(n.o),6),19),n.W,null,"eReferences",0,-1,Ss,!0,!0,!1,!1,!0,!1,!0),Et(u(N(H(n.o),7),19),n.b,null,"eAttributes",0,-1,Ss,!0,!0,!1,!1,!0,!1,!0),Et(u(N(H(n.o),8),19),n.W,null,"eAllContainments",0,-1,Ss,!0,!0,!1,!1,!0,!1,!0),Et(u(N(H(n.o),9),19),n.T,null,"eAllOperations",0,-1,Ss,!0,!0,!1,!1,!0,!1,!0),Et(u(N(H(n.o),10),19),n.bb,null,"eAllStructuralFeatures",0,-1,Ss,!0,!0,!1,!1,!0,!1,!0),Et(u(N(H(n.o),11),19),n.o,null,"eAllSuperTypes",0,-1,Ss,!0,!0,!1,!1,!0,!1,!0),Et(u(N(H(n.o),12),19),n.b,null,"eIDAttribute",0,1,Ss,!0,!0,!1,!1,!1,!1,!0),Et(u(N(H(n.o),13),19),n.bb,u(N(H(n.bb),7),19),"eStructuralFeatures",0,-1,Ss,!1,!1,!0,!0,!1,!1,!1),Et(u(N(H(n.o),14),19),n.H,null,"eGenericSuperTypes",0,-1,Ss,!1,!1,!0,!0,!1,!0,!1),Et(u(N(H(n.o),15),19),n.H,null,"eAllGenericSuperTypes",0,-1,Ss,!0,!0,!1,!1,!0,!1,!0),f=Tr(u(N(ft(n.o),0),62),n.e,"isSuperTypeOf"),$r(f,n.o,"someClass"),Tr(u(N(ft(n.o),1),62),n.I,"getFeatureCount"),f=Tr(u(N(ft(n.o),2),62),n.bb,mJn),$r(f,n.I,"featureID"),f=Tr(u(N(ft(n.o),3),62),n.I,vJn),$r(f,n.bb,M8),f=Tr(u(N(ft(n.o),4),62),n.bb,mJn),$r(f,n._,"featureName"),Tr(u(N(ft(n.o),5),62),n.I,"getOperationCount"),f=Tr(u(N(ft(n.o),6),62),n.T,"getEOperation"),$r(f,n.I,"operationID"),f=Tr(u(N(ft(n.o),7),62),n.I,kJn),$r(f,n.T,zcn),f=Tr(u(N(ft(n.o),8),62),n.T,"getOverride"),$r(f,n.T,zcn),f=Tr(u(N(ft(n.o),9),62),n.H,"getFeatureType"),$r(f,n.bb,M8),fc(n.p,Mf,oJn,!0,!1,!0),Ut(u(N(H(n.p),0),35),n._,"instanceClassName",null,0,1,Mf,!1,!0,!0,!0,!0,!1),e=al(n.L),t=gJ(),ve((!e.d&&(e.d=new ti(jr,e,1)),e.d),t),bHn(u(N(H(n.p),1),35),e,"instanceClass",Mf,!0,!0,!1,!0),Ut(u(N(H(n.p),2),35),n.M,yJn,null,0,1,Mf,!0,!0,!1,!1,!0,!0),Ut(u(N(H(n.p),3),35),n._,"instanceTypeName",null,0,1,Mf,!1,!0,!0,!0,!0,!1),Et(u(N(H(n.p),4),19),n.U,u(N(H(n.U),3),19),"ePackage",0,1,Mf,!0,!1,!1,!1,!0,!1,!1),Et(u(N(H(n.p),5),19),n.db,null,jJn,0,-1,Mf,!1,!1,!0,!0,!0,!1,!1),f=Tr(u(N(ft(n.p),0),62),n.e,EJn),$r(f,n.M,vy),Tr(u(N(ft(n.p),1),62),n.I,"getClassifierID"),fc(n.q,jU,"EDataType",!1,!1,!0),Ut(u(N(H(n.q),0),35),n.e,"serializable",nv,0,1,jU,!1,!1,!0,!1,!0,!1),fc(n.v,EA,"EEnum",!1,!1,!0),Et(u(N(H(n.v),0),19),n.w,u(N(H(n.w),3),19),"eLiterals",0,-1,EA,!1,!1,!0,!0,!1,!1,!1),f=Tr(u(N(ft(n.v),0),62),n.w,MJn),$r(f,n._,Qe),f=Tr(u(N(ft(n.v),1),62),n.w,MJn),$r(f,n.I,g8),f=Tr(u(N(ft(n.v),2),62),n.w,"getEEnumLiteralByLiteral"),$r(f,n._,"literal"),fc(n.w,Kl,sJn,!1,!1,!0),Ut(u(N(H(n.w),0),35),n.I,g8,null,0,1,Kl,!1,!1,!0,!1,!0,!1),Ut(u(N(H(n.w),1),35),n.A,"instance",null,0,1,Kl,!0,!1,!0,!1,!0,!1),Ut(u(N(H(n.w),2),35),n._,"literal",null,0,1,Kl,!1,!1,!0,!1,!0,!1),Et(u(N(H(n.w),3),19),n.v,u(N(H(n.v),0),19),"eEnum",0,1,Kl,!0,!1,!1,!1,!1,!1,!1),fc(n.B,O9,"EFactory",!1,!1,!0),Et(u(N(H(n.B),0),19),n.U,u(N(H(n.U),2),19),"ePackage",1,1,O9,!0,!1,!0,!1,!1,!1,!1),f=Tr(u(N(ft(n.B),0),62),n.S,"create"),$r(f,n.o,"eClass"),f=Tr(u(N(ft(n.B),1),62),n.M,"createFromString"),$r(f,n.q,"eDataType"),$r(f,n._,"literalValue"),f=Tr(u(N(ft(n.B),2),62),n._,"convertToString"),$r(f,n.q,"eDataType"),$r(f,n.M,"instanceValue"),fc(n.Q,fE,sWn,!0,!1,!0),Et(u(N(H(n.Q),0),19),n.a,u(N(H(n.a),2),19),"eAnnotations",0,-1,fE,!1,!1,!0,!0,!1,!1,!1),f=Tr(u(N(ft(n.Q),0),62),n.a,"getEAnnotation"),$r(f,n._,lF),fc(n.R,gU,fWn,!0,!1,!0),Ut(u(N(H(n.R),0),35),n._,Qe,null,0,1,gU,!1,!1,!0,!1,!0,!1),fc(n.S,Aa,"EObject",!1,!1,!0),Tr(u(N(ft(n.S),0),62),n.o,"eClass"),Tr(u(N(ft(n.S),1),62),n.e,"eIsProxy"),Tr(u(N(ft(n.S),2),62),n.X,"eResource"),Tr(u(N(ft(n.S),3),62),n.S,"eContainer"),Tr(u(N(ft(n.S),4),62),n.bb,"eContainingFeature"),Tr(u(N(ft(n.S),5),62),n.W,"eContainmentFeature"),f=Tr(u(N(ft(n.S),6),62),null,"eContents"),e=al(n.fb),t=al(n.S),ve((!e.d&&(e.d=new ti(jr,e,1)),e.d),t),r=Kf(f,e,null),r&&r.oj(),f=Tr(u(N(ft(n.S),7),62),null,"eAllContents"),e=al(n.cb),t=al(n.S),ve((!e.d&&(e.d=new ti(jr,e,1)),e.d),t),c=Kf(f,e,null),c&&c.oj(),f=Tr(u(N(ft(n.S),8),62),null,"eCrossReferences"),e=al(n.fb),t=al(n.S),ve((!e.d&&(e.d=new ti(jr,e,1)),e.d),t),s=Kf(f,e,null),s&&s.oj(),f=Tr(u(N(ft(n.S),9),62),n.M,"eGet"),$r(f,n.bb,M8),f=Tr(u(N(ft(n.S),10),62),n.M,"eGet"),$r(f,n.bb,M8),$r(f,n.e,"resolve"),f=Tr(u(N(ft(n.S),11),62),null,"eSet"),$r(f,n.bb,M8),$r(f,n.M,"newValue"),f=Tr(u(N(ft(n.S),12),62),n.e,"eIsSet"),$r(f,n.bb,M8),f=Tr(u(N(ft(n.S),13),62),null,"eUnset"),$r(f,n.bb,M8),f=Tr(u(N(ft(n.S),14),62),n.M,"eInvoke"),$r(f,n.T,zcn),e=al(n.fb),t=gJ(),ve((!e.d&&(e.d=new ti(jr,e,1)),e.d),t),dS(f,e,"arguments"),Hwe(f,n.K),fc(n.T,Ps,hJn,!1,!1,!0),Et(u(N(H(n.T),0),19),n.o,u(N(H(n.o),3),19),TJn,0,1,Ps,!0,!1,!1,!1,!1,!1,!1),Et(u(N(H(n.T),1),19),n.db,null,jJn,0,-1,Ps,!1,!1,!0,!0,!0,!1,!1),Et(u(N(H(n.T),2),19),n.V,u(N(H(n.V),0),19),"eParameters",0,-1,Ps,!1,!1,!0,!0,!1,!1,!1),Et(u(N(H(n.T),3),19),n.p,null,"eExceptions",0,-1,Ps,!1,!1,!0,!1,!0,!0,!1),Et(u(N(H(n.T),4),19),n.H,null,"eGenericExceptions",0,-1,Ps,!1,!1,!0,!0,!1,!0,!1),Tr(u(N(ft(n.T),0),62),n.I,kJn),f=Tr(u(N(ft(n.T),1),62),n.e,"isOverrideOf"),$r(f,n.T,"someOperation"),fc(n.U,Ef,"EPackage",!1,!1,!0),Ut(u(N(H(n.U),0),35),n._,"nsURI",null,0,1,Ef,!1,!1,!0,!1,!0,!1),Ut(u(N(H(n.U),1),35),n._,"nsPrefix",null,0,1,Ef,!1,!1,!0,!1,!0,!1),Et(u(N(H(n.U),2),19),n.B,u(N(H(n.B),0),19),"eFactoryInstance",1,1,Ef,!0,!1,!0,!1,!1,!1,!1),Et(u(N(H(n.U),3),19),n.p,u(N(H(n.p),4),19),"eClassifiers",0,-1,Ef,!1,!1,!0,!0,!0,!1,!1),Et(u(N(H(n.U),4),19),n.U,u(N(H(n.U),5),19),"eSubpackages",0,-1,Ef,!1,!1,!0,!0,!0,!1,!1),Et(u(N(H(n.U),5),19),n.U,u(N(H(n.U),4),19),"eSuperPackage",0,1,Ef,!0,!1,!1,!1,!0,!1,!1),f=Tr(u(N(ft(n.U),0),62),n.p,"getEClassifier"),$r(f,n._,Qe),fc(n.V,y0,lJn,!1,!1,!0),Et(u(N(H(n.V),0),19),n.T,u(N(H(n.T),2),19),"eOperation",0,1,y0,!0,!1,!1,!1,!1,!1,!1),fc(n.W,eg,aJn,!1,!1,!0),Ut(u(N(H(n.W),0),35),n.e,"containment",null,0,1,eg,!1,!1,!0,!1,!0,!1),Ut(u(N(H(n.W),1),35),n.e,"container",null,0,1,eg,!0,!0,!1,!1,!0,!0),Ut(u(N(H(n.W),2),35),n.e,"resolveProxies",nv,0,1,eg,!1,!1,!0,!1,!0,!1),Et(u(N(H(n.W),3),19),n.W,null,"eOpposite",0,1,eg,!1,!1,!0,!1,!0,!1,!1),Et(u(N(H(n.W),4),19),n.o,null,"eReferenceType",1,1,eg,!0,!0,!1,!1,!0,!1,!0),Et(u(N(H(n.W),5),19),n.b,null,"eKeys",0,-1,eg,!1,!1,!0,!1,!0,!1,!1),fc(n.bb,ku,cJn,!0,!1,!0),Ut(u(N(H(n.bb),0),35),n.e,"changeable",nv,0,1,ku,!1,!1,!0,!1,!0,!1),Ut(u(N(H(n.bb),1),35),n.e,"volatile",null,0,1,ku,!1,!1,!0,!1,!0,!1),Ut(u(N(H(n.bb),2),35),n.e,"transient",null,0,1,ku,!1,!1,!0,!1,!0,!1),Ut(u(N(H(n.bb),3),35),n._,"defaultValueLiteral",null,0,1,ku,!1,!1,!0,!1,!0,!1),Ut(u(N(H(n.bb),4),35),n.M,yJn,null,0,1,ku,!0,!0,!1,!1,!0,!0),Ut(u(N(H(n.bb),5),35),n.e,"unsettable",null,0,1,ku,!1,!1,!0,!1,!0,!1),Ut(u(N(H(n.bb),6),35),n.e,"derived",null,0,1,ku,!1,!1,!0,!1,!0,!1),Et(u(N(H(n.bb),7),19),n.o,u(N(H(n.o),13),19),TJn,0,1,ku,!0,!1,!1,!1,!1,!1,!1),Tr(u(N(ft(n.bb),0),62),n.I,vJn),f=Tr(u(N(ft(n.bb),1),62),null,"getContainerClass"),e=al(n.L),t=gJ(),ve((!e.d&&(e.d=new ti(jr,e,1)),e.d),t),i=Kf(f,e,null),i&&i.oj(),fc(n.eb,Zw,rJn,!0,!1,!0),Ut(u(N(H(n.eb),0),35),n.e,"ordered",nv,0,1,Zw,!1,!1,!0,!1,!0,!1),Ut(u(N(H(n.eb),1),35),n.e,"unique",nv,0,1,Zw,!1,!1,!0,!1,!0,!1),Ut(u(N(H(n.eb),2),35),n.I,"lowerBound",null,0,1,Zw,!1,!1,!0,!1,!0,!1),Ut(u(N(H(n.eb),3),35),n.I,"upperBound","1",0,1,Zw,!1,!1,!0,!1,!0,!1),Ut(u(N(H(n.eb),4),35),n.e,"many",null,0,1,Zw,!0,!0,!1,!1,!0,!0),Ut(u(N(H(n.eb),5),35),n.e,"required",null,0,1,Zw,!0,!0,!1,!1,!0,!0),Et(u(N(H(n.eb),6),19),n.p,null,"eType",0,1,Zw,!1,!0,!0,!1,!0,!0,!1),Et(u(N(H(n.eb),7),19),n.H,null,"eGenericType",0,1,Zw,!1,!0,!0,!0,!1,!0,!1),fc(n.ab,Id,"EStringToStringMapEntry",!1,!1,!1),Ut(u(N(H(n.ab),0),35),n._,"key",null,0,1,Id,!1,!1,!0,!1,!0,!1),Ut(u(N(H(n.ab),1),35),n._,g8,null,0,1,Id,!1,!1,!0,!1,!0,!1),fc(n.H,jr,fJn,!1,!1,!0),Et(u(N(H(n.H),0),19),n.H,null,"eUpperBound",0,1,jr,!1,!1,!0,!0,!1,!1,!1),Et(u(N(H(n.H),1),19),n.H,null,"eTypeArguments",0,-1,jr,!1,!1,!0,!0,!1,!1,!1),Et(u(N(H(n.H),2),19),n.p,null,"eRawType",1,1,jr,!0,!1,!1,!1,!0,!1,!0),Et(u(N(H(n.H),3),19),n.H,null,"eLowerBound",0,1,jr,!1,!1,!0,!0,!1,!1,!1),Et(u(N(H(n.H),4),19),n.db,null,"eTypeParameter",0,1,jr,!1,!1,!0,!1,!1,!1,!1),Et(u(N(H(n.H),5),19),n.p,null,"eClassifier",0,1,jr,!1,!1,!0,!1,!0,!1,!1),f=Tr(u(N(ft(n.H),0),62),n.e,EJn),$r(f,n.M,vy),fc(n.db,fu,dJn,!1,!1,!0),Et(u(N(H(n.db),0),19),n.H,null,"eBounds",0,-1,fu,!1,!1,!0,!0,!1,!1,!1),We(n.c,JF,"EBigDecimal",!0),We(n.d,l2,"EBigInteger",!0),We(n.e,so,"EBoolean",!0),We(n.f,Gt,"EBooleanObject",!0),We(n.i,Ru,"EByte",!0),We(n.g,C(Ru,1),"EByteArray",!0),We(n.j,p3,"EByteObject",!0),We(n.k,fs,"EChar",!0),We(n.n,S8,"ECharacterObject",!0),We(n.r,oI,"EDate",!0),We(n.s,mbn,"EDiagnosticChain",!1),We(n.t,Ii,"EDouble",!0),We(n.u,si,"EDoubleObject",!0),We(n.fb,Ndn,"EEList",!1),We(n.A,xdn,"EEnumerator",!1),We(n.C,cbn,"EFeatureMap",!1),We(n.D,MA,"EFeatureMapEntry",!1),We(n.F,cg,"EFloat",!0),We(n.G,sv,"EFloatObject",!0),We(n.I,ye,"EInt",!0),We(n.J,Gi,"EIntegerObject",!0),We(n.L,iun,"EJavaClass",!0),We(n.M,ki,"EJavaObject",!0),We(n.N,Ra,"ELong",!0),We(n.O,t0,"ELongObject",!0),We(n.P,run,"EMap",!1),We(n.X,ebn,"EResource",!1),We(n.Y,vbn,"EResourceSet",!1),We(n.Z,V2,"EShort",!0),We(n.$,i0,"EShortObject",!0),We(n._,fn,"EString",!0),We(n.cb,$dn,"ETreeIterator",!1),We(n.K,kbn,"EInvocationTargetException",!1),gY(n,ks))}var vy="object",i3="boolean",atn="number",nK="string",eK="function",et=2147483647,ac="java.lang",ky={3:1},yy="com.google.common.base",ur=", ",Czn="%s (%s) must not be negative",Kn={3:1,4:1,5:1},Szn="negative size: ",dtn="no calls to next() since the last call to remove()",Pzn="Optional.of(",gu="null",$m={204:1,51:1},Mn="com.google.common.collect",xm={204:1,51:1,128:1},md={229:1,3:1},Pi={51:1},le="java.util",Xb={85:1},pw={20:1,31:1,16:1},Ff=2063,Nu={20:1,31:1,16:1,21:1},btn={85:1,139:1,133:1},Izn={20:1,31:1,16:1,21:1,87:1},wtn={20:1,31:1,16:1,277:1,21:1,87:1},Hh={51:1,128:1},tK={358:1,44:1},Ozn="AbstractMapEntry",Azn="expectedValuesPerKey",J={3:1,6:1,4:1,5:1},wh=16384,Io={159:1},re={41:1},jy={202:1},Ey={l:4194303,m:4194303,h:524287},iK={253:1,3:1,34:1},Lzn="range unbounded on this side",qh={20:1},Nzn={20:1,16:1},gtn={3:1,20:1,31:1,16:1},Rm={307:1,3:1,20:1,31:1,16:1,15:1,59:1},WS={3:1,4:1,5:1,173:1},Km={3:1,85:1},rK={20:1,16:1,21:1},r3={3:1,20:1,31:1,16:1,21:1},Dzn={20:1,16:1,21:1,87:1},Uh=461845907,Gh=-862048943,My={3:1,6:1,4:1,5:1,173:1},$zn="expectedSize",Gs=1024,W5=1073741824,mw="initialArraySize",G={3:1,6:1,4:1,9:1,5:1},Bm={20:1,31:1,56:1,16:1,15:1},cK="arraySize",xzn={20:1,31:1,56:1,16:1,15:1,59:1},Le={46:1},JS={380:1},fa=1e-4,Wi=-2147483648,Rzn="__noinit__",Il={3:1,103:1,63:1,82:1},Ty="com.google.gwt.core.client.impl",ptn="String",mtn="com.google.gwt.core.client",uK="anonymous",oK="fnStack",vtn="Unknown",gh={201:1,3:1,4:1},d1=1e3,ui=65535,sK="January",fK="February",hK="March",lK="April",c3="May",aK="June",dK="July",bK="August",wK="September",gK="October",pK="November",mK="December",ha=1900,_e={53:1,3:1,4:1},Kzn="Before Christ",Bzn="Anno Domini",vK="Sunday",kK="Monday",yK="Tuesday",jK="Wednesday",EK="Thursday",MK="Friday",TK="Saturday",ktn="com.google.gwt.i18n.shared",Fzn="DateTimeFormat",CK="com.google.gwt.i18n.client",_zn="DefaultDateTimeFormatInfo",Hzn={3:1,4:1,34:1,206:1},u3="com.google.gwt.json.client",ro=4194303,Ol=1048575,Cy=524288,o3=4194304,vd=17592186044416,QS=1e9,Sy=-17592186044416,ytn="java.io",SK={3:1,103:1,77:1,63:1,82:1},qzn={3:1,296:1,82:1},Vb='For input string: "',Pt=1/0,li=-1/0,vw=4096,PK={3:1,4:1,376:1},Yn="org.eclipse.elk.layered",hr=65536,Py=55296,Cr={109:1,3:1,4:1},IK=1e5,Uzn=.3010299956639812,mr=4294967295,Fm="0.0",OK={44:1},_m="Unable to add element to queue",Gzn={3:1,4:1,20:1,31:1,56:1,13:1,16:1,15:1,59:1},zzn={3:1,20:1,31:1,56:1,16:1,15:1,59:1},Xzn={20:1,16:1,15:1},AK={3:1,50:1},Iy={189:1},n2={3:1,4:1,85:1},jtn={3:1,4:1,20:1,31:1,16:1,49:1,21:1},LK="delete",J5=14901161193847656e-24,Q5=11102230246251565e-32,NK=15525485,Oy=5960464477539063e-23,Etn=16777216,YS=16777215,Mtn=", length: ",Vzn={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1},Ttn="subMap: ",Wzn=" less than ",DK={3:1,34:1,22:1,304:1},$K="java.util.function",Y5="java.util.logging",Jzn={3:1,4:1,5:1,856:1},xK="undefined",ai="java.util.stream",Ctn={533:1,687:1},ZS="fromIndex: ",Qzn=" > toIndex: ",Stn=", toIndex: ",Ptn="Index: ",Itn=", Size: ",Hm="org.eclipse.elk.alg.common",De={50:1},Yzn="org.eclipse.elk.alg.common.compaction",Zzn="Scanline/EventHandler",zh="org.eclipse.elk.alg.common.compaction.oned",nXn="CNode belongs to another CGroup.",eXn="ISpacingsHandler/1",RK="The ",KK=" instance has been finished already.",tXn="The direction ",iXn=" is not supported by the CGraph instance.",rXn="OneDimensionalCompactor",cXn="OneDimensionalCompactor/lambda$0$Type",uXn="Quadruplet",oXn="ScanlineConstraintCalculator",sXn="ScanlineConstraintCalculator/ConstraintsScanlineHandler",fXn="ScanlineConstraintCalculator/ConstraintsScanlineHandler/lambda$0$Type",hXn="ScanlineConstraintCalculator/Timestamp",lXn="ScanlineConstraintCalculator/lambda$0$Type",ph={178:1,46:1},BK="org.eclipse.elk.alg.common.compaction.options",oc="org.eclipse.elk.core.data",Otn="org.eclipse.elk.polyomino.traversalStrategy",Atn="org.eclipse.elk.polyomino.lowLevelSort",Ltn="org.eclipse.elk.polyomino.highLevelSort",Ntn="org.eclipse.elk.polyomino.fill",ms={134:1},FK="polyomino",Z5="org.eclipse.elk.alg.common.networksimplex",Xh={183:1,3:1,4:1},aXn="org.eclipse.elk.alg.common.nodespacing",kd="org.eclipse.elk.alg.common.nodespacing.cellsystem",qm="CENTER",dXn={217:1,336:1},Dtn={3:1,4:1,5:1,603:1},s3="LEFT",f3="RIGHT",$tn="Vertical alignment cannot be null",xtn="BOTTOM",nP="org.eclipse.elk.alg.common.nodespacing.internal",n8="UNDEFINED",_f=.01,Ay="org.eclipse.elk.alg.common.nodespacing.internal.algorithm",bXn="LabelPlacer/lambda$0$Type",wXn="LabelPlacer/lambda$1$Type",gXn="portRatioOrPosition",Um="org.eclipse.elk.alg.common.overlaps",_K="DOWN",mh="org.eclipse.elk.alg.common.polyomino",eP="NORTH",HK="EAST",qK="SOUTH",UK="WEST",tP="org.eclipse.elk.alg.common.polyomino.structures",Rtn="Direction",GK="Grid is only of size ",zK=". Requested point (",XK=") is out of bounds.",iP=" Given center based coordinates were (",Ly="org.eclipse.elk.graph.properties",pXn="IPropertyHolder",Ktn={3:1,96:1,137:1},h3="org.eclipse.elk.alg.common.spore",mXn="org.eclipse.elk.alg.common.utils",yd={205:1},e2="org.eclipse.elk.core",vXn="Connected Components Compaction",kXn="org.eclipse.elk.alg.disco",rP="org.eclipse.elk.alg.disco.graph",VK="org.eclipse.elk.alg.disco.options",Btn="CompactionStrategy",Ftn="org.eclipse.elk.disco.componentCompaction.strategy",_tn="org.eclipse.elk.disco.componentCompaction.componentLayoutAlgorithm",Htn="org.eclipse.elk.disco.debug.discoGraph",qtn="org.eclipse.elk.disco.debug.discoPolys",yXn="componentCompaction",jd="org.eclipse.elk.disco",WK="org.eclipse.elk.spacing.componentComponent",JK="org.eclipse.elk.edge.thickness",l3="org.eclipse.elk.aspectRatio",Wb="org.eclipse.elk.padding",t2="org.eclipse.elk.alg.disco.transform",QK=1.5707963267948966,i2=17976931348623157e292,kw={3:1,4:1,5:1,198:1},jXn={3:1,6:1,4:1,5:1,100:1,115:1},YK="org.eclipse.elk.alg.force",Utn="ComponentsProcessor",EXn="ComponentsProcessor/1",Gtn="ElkGraphImporter/lambda$0$Type",Ny="org.eclipse.elk.alg.force.graph",MXn="Component Layout",ztn="org.eclipse.elk.alg.force.model",cP="org.eclipse.elk.force.model",Xtn="org.eclipse.elk.force.iterations",Vtn="org.eclipse.elk.force.repulsivePower",ZK="org.eclipse.elk.force.temperature",vh=.001,nB="org.eclipse.elk.force.repulsion",e8="org.eclipse.elk.alg.force.options",Gm=1.600000023841858,cu="org.eclipse.elk.force",Dy="org.eclipse.elk.priority",yw="org.eclipse.elk.spacing.nodeNode",eB="org.eclipse.elk.spacing.edgeLabel",uP="org.eclipse.elk.randomSeed",t8="org.eclipse.elk.separateConnectedComponents",i8="org.eclipse.elk.interactive",tB="org.eclipse.elk.portConstraints",oP="org.eclipse.elk.edgeLabels.inline",r8="org.eclipse.elk.omitNodeMicroLayout",zm="org.eclipse.elk.nodeSize.fixedGraphSize",a3="org.eclipse.elk.nodeSize.options",r2="org.eclipse.elk.nodeSize.constraints",Xm="org.eclipse.elk.nodeLabels.placement",Vm="org.eclipse.elk.portLabels.placement",$y="org.eclipse.elk.topdownLayout",xy="org.eclipse.elk.topdown.scaleFactor",Ry="org.eclipse.elk.topdown.hierarchicalNodeWidth",Ky="org.eclipse.elk.topdown.hierarchicalNodeAspectRatio",Jb="org.eclipse.elk.topdown.nodeType",Wtn="origin",TXn="random",CXn="boundingBox.upLeft",SXn="boundingBox.lowRight",Jtn="org.eclipse.elk.stress.fixed",Qtn="org.eclipse.elk.stress.desiredEdgeLength",Ytn="org.eclipse.elk.stress.dimension",Ztn="org.eclipse.elk.stress.epsilon",nin="org.eclipse.elk.stress.iterationLimit",la="org.eclipse.elk.stress",PXn="ELK Stress",d3="org.eclipse.elk.nodeSize.minimum",sP="org.eclipse.elk.alg.force.stress",IXn="Layered layout",b3="org.eclipse.elk.alg.layered",By="org.eclipse.elk.alg.layered.compaction.components",c8="org.eclipse.elk.alg.layered.compaction.oned",fP="org.eclipse.elk.alg.layered.compaction.oned.algs",Ed="org.eclipse.elk.alg.layered.compaction.recthull",Hf="org.eclipse.elk.alg.layered.components",kh="NONE",ein="MODEL_ORDER",Tc={3:1,6:1,4:1,9:1,5:1,126:1},OXn={3:1,6:1,4:1,5:1,150:1,100:1,115:1},hP="org.eclipse.elk.alg.layered.compound",vt={47:1},Kc="org.eclipse.elk.alg.layered.graph",iB=" -> ",AXn="Not supported by LGraph",tin="Port side is undefined",rB={3:1,6:1,4:1,5:1,483:1,150:1,100:1,115:1},b1={3:1,6:1,4:1,5:1,150:1,199:1,210:1,100:1,115:1},LXn={3:1,6:1,4:1,5:1,150:1,2042:1,210:1,100:1,115:1},NXn=`([{"' \r
`,DXn=`)]}"' \r
`,$Xn="The given string contains parts that cannot be parsed as numbers.",Fy="org.eclipse.elk.core.math",xXn={3:1,4:1,140:1,214:1,423:1},RXn={3:1,4:1,107:1,214:1,423:1},w1="org.eclipse.elk.alg.layered.graph.transform",KXn="ElkGraphImporter",BXn="ElkGraphImporter/lambda$1$Type",FXn="ElkGraphImporter/lambda$2$Type",_Xn="ElkGraphImporter/lambda$4$Type",Qn="org.eclipse.elk.alg.layered.intermediate",HXn="Node margin calculation",qXn="ONE_SIDED_GREEDY_SWITCH",UXn="TWO_SIDED_GREEDY_SWITCH",cB="No implementation is available for the layout processor ",uB="IntermediateProcessorStrategy",oB="Node '",GXn="FIRST_SEPARATE",zXn="LAST_SEPARATE",XXn="Odd port side processing",di="org.eclipse.elk.alg.layered.intermediate.compaction",u8="org.eclipse.elk.alg.layered.intermediate.greedyswitch",Vh="org.eclipse.elk.alg.layered.p3order.counting",_y={230:1},w3="org.eclipse.elk.alg.layered.intermediate.loops",Oo="org.eclipse.elk.alg.layered.intermediate.loops.ordering",aa="org.eclipse.elk.alg.layered.intermediate.loops.routing",iin="org.eclipse.elk.alg.layered.intermediate.preserveorder",yh="org.eclipse.elk.alg.layered.intermediate.wrapping",Cc="org.eclipse.elk.alg.layered.options",sB="INTERACTIVE",rin="GREEDY",VXn="DEPTH_FIRST",WXn="EDGE_LENGTH",JXn="SELF_LOOPS",QXn="firstTryWithInitialOrder",cin="org.eclipse.elk.layered.directionCongruency",uin="org.eclipse.elk.layered.feedbackEdges",lP="org.eclipse.elk.layered.interactiveReferencePoint",oin="org.eclipse.elk.layered.mergeEdges",sin="org.eclipse.elk.layered.mergeHierarchyEdges",fin="org.eclipse.elk.layered.allowNonFlowPortsToSwitchSides",hin="org.eclipse.elk.layered.portSortingStrategy",lin="org.eclipse.elk.layered.thoroughness",ain="org.eclipse.elk.layered.unnecessaryBendpoints",din="org.eclipse.elk.layered.generatePositionAndLayerIds",fB="org.eclipse.elk.layered.cycleBreaking.strategy",Hy="org.eclipse.elk.layered.layering.strategy",bin="org.eclipse.elk.layered.layering.layerConstraint",win="org.eclipse.elk.layered.layering.layerChoiceConstraint",gin="org.eclipse.elk.layered.layering.layerId",hB="org.eclipse.elk.layered.layering.minWidth.upperBoundOnWidth",lB="org.eclipse.elk.layered.layering.minWidth.upperLayerEstimationScalingFactor",aB="org.eclipse.elk.layered.layering.nodePromotion.strategy",dB="org.eclipse.elk.layered.layering.nodePromotion.maxIterations",bB="org.eclipse.elk.layered.layering.coffmanGraham.layerBound",o8="org.eclipse.elk.layered.crossingMinimization.strategy",pin="org.eclipse.elk.layered.crossingMinimization.forceNodeModelOrder",wB="org.eclipse.elk.layered.crossingMinimization.hierarchicalSweepiness",gB="org.eclipse.elk.layered.crossingMinimization.semiInteractive",min="org.eclipse.elk.layered.crossingMinimization.inLayerPredOf",vin="org.eclipse.elk.layered.crossingMinimization.inLayerSuccOf",kin="org.eclipse.elk.layered.crossingMinimization.positionChoiceConstraint",yin="org.eclipse.elk.layered.crossingMinimization.positionId",jin="org.eclipse.elk.layered.crossingMinimization.greedySwitch.activationThreshold",pB="org.eclipse.elk.layered.crossingMinimization.greedySwitch.type",aP="org.eclipse.elk.layered.crossingMinimization.greedySwitchHierarchical.type",c2="org.eclipse.elk.layered.nodePlacement.strategy",dP="org.eclipse.elk.layered.nodePlacement.favorStraightEdges",mB="org.eclipse.elk.layered.nodePlacement.bk.edgeStraightening",vB="org.eclipse.elk.layered.nodePlacement.bk.fixedAlignment",kB="org.eclipse.elk.layered.nodePlacement.linearSegments.deflectionDampening",yB="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility",jB="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility.default",Ein="org.eclipse.elk.layered.edgeRouting.selfLoopDistribution",Min="org.eclipse.elk.layered.edgeRouting.selfLoopOrdering",bP="org.eclipse.elk.layered.edgeRouting.splines.mode",wP="org.eclipse.elk.layered.edgeRouting.splines.sloppy.layerSpacingFactor",EB="org.eclipse.elk.layered.edgeRouting.polyline.slopedEdgeZoneWidth",Tin="org.eclipse.elk.layered.spacing.baseValue",Cin="org.eclipse.elk.layered.spacing.edgeNodeBetweenLayers",Sin="org.eclipse.elk.layered.spacing.edgeEdgeBetweenLayers",Pin="org.eclipse.elk.layered.spacing.nodeNodeBetweenLayers",Iin="org.eclipse.elk.layered.priority.direction",Oin="org.eclipse.elk.layered.priority.shortness",Ain="org.eclipse.elk.layered.priority.straightness",MB="org.eclipse.elk.layered.compaction.connectedComponents",Lin="org.eclipse.elk.layered.compaction.postCompaction.strategy",Nin="org.eclipse.elk.layered.compaction.postCompaction.constraints",gP="org.eclipse.elk.layered.highDegreeNodes.treatment",TB="org.eclipse.elk.layered.highDegreeNodes.threshold",CB="org.eclipse.elk.layered.highDegreeNodes.treeHeight",Al="org.eclipse.elk.layered.wrapping.strategy",pP="org.eclipse.elk.layered.wrapping.additionalEdgeSpacing",mP="org.eclipse.elk.layered.wrapping.correctionFactor",s8="org.eclipse.elk.layered.wrapping.cutting.strategy",SB="org.eclipse.elk.layered.wrapping.cutting.cuts",PB="org.eclipse.elk.layered.wrapping.cutting.msd.freedom",vP="org.eclipse.elk.layered.wrapping.validify.strategy",kP="org.eclipse.elk.layered.wrapping.validify.forbiddenIndices",yP="org.eclipse.elk.layered.wrapping.multiEdge.improveCuts",jP="org.eclipse.elk.layered.wrapping.multiEdge.distancePenalty",IB="org.eclipse.elk.layered.wrapping.multiEdge.improveWrappedEdges",Din="org.eclipse.elk.layered.edgeLabels.sideSelection",$in="org.eclipse.elk.layered.edgeLabels.centerLabelPlacementStrategy",EP="org.eclipse.elk.layered.considerModelOrder.strategy",xin="org.eclipse.elk.layered.considerModelOrder.portModelOrder",Rin="org.eclipse.elk.layered.considerModelOrder.noModelOrder",OB="org.eclipse.elk.layered.considerModelOrder.components",Kin="org.eclipse.elk.layered.considerModelOrder.longEdgeStrategy",AB="org.eclipse.elk.layered.considerModelOrder.crossingCounterNodeInfluence",LB="org.eclipse.elk.layered.considerModelOrder.crossingCounterPortInfluence",NB="layering",YXn="layering.minWidth",ZXn="layering.nodePromotion",Wm="crossingMinimization",MP="org.eclipse.elk.hierarchyHandling",nVn="crossingMinimization.greedySwitch",eVn="nodePlacement",tVn="nodePlacement.bk",iVn="edgeRouting",qy="org.eclipse.elk.edgeRouting",qf="spacing",Bin="priority",Fin="compaction",rVn="compaction.postCompaction",cVn="Specifies whether and how post-process compaction is applied.",_in="highDegreeNodes",Hin="wrapping",uVn="wrapping.cutting",oVn="wrapping.validify",qin="wrapping.multiEdge",DB="edgeLabels",f8="considerModelOrder",Uin="org.eclipse.elk.spacing.commentComment",Gin="org.eclipse.elk.spacing.commentNode",zin="org.eclipse.elk.spacing.edgeEdge",$B="org.eclipse.elk.spacing.edgeNode",Xin="org.eclipse.elk.spacing.labelLabel",Vin="org.eclipse.elk.spacing.labelPortHorizontal",Win="org.eclipse.elk.spacing.labelPortVertical",Jin="org.eclipse.elk.spacing.labelNode",Qin="org.eclipse.elk.spacing.nodeSelfLoop",Yin="org.eclipse.elk.spacing.portPort",Zin="org.eclipse.elk.spacing.individual",nrn="org.eclipse.elk.port.borderOffset",ern="org.eclipse.elk.noLayout",trn="org.eclipse.elk.port.side",Uy="org.eclipse.elk.debugMode",irn="org.eclipse.elk.alignment",rrn="org.eclipse.elk.insideSelfLoops.activate",crn="org.eclipse.elk.insideSelfLoops.yo",xB="org.eclipse.elk.direction",urn="org.eclipse.elk.nodeLabels.padding",orn="org.eclipse.elk.portLabels.nextToPortIfPossible",srn="org.eclipse.elk.portLabels.treatAsGroup",frn="org.eclipse.elk.portAlignment.default",hrn="org.eclipse.elk.portAlignment.north",lrn="org.eclipse.elk.portAlignment.south",arn="org.eclipse.elk.portAlignment.west",drn="org.eclipse.elk.portAlignment.east",TP="org.eclipse.elk.contentAlignment",brn="org.eclipse.elk.junctionPoints",wrn="org.eclipse.elk.edgeLabels.placement",grn="org.eclipse.elk.port.index",prn="org.eclipse.elk.commentBox",mrn="org.eclipse.elk.hypernode",vrn="org.eclipse.elk.port.anchor",RB="org.eclipse.elk.partitioning.activate",KB="org.eclipse.elk.partitioning.partition",CP="org.eclipse.elk.position",krn="org.eclipse.elk.margins",yrn="org.eclipse.elk.spacing.portsSurrounding",SP="org.eclipse.elk.interactiveLayout",dc="org.eclipse.elk.core.util",jrn={3:1,4:1,5:1,601:1},sVn="NETWORK_SIMPLEX",Ern="SIMPLE",vr={106:1,47:1},PP="org.eclipse.elk.alg.layered.p1cycles",Ll="org.eclipse.elk.alg.layered.p2layers",Mrn={413:1,230:1},fVn={846:1,3:1,4:1},Du="org.eclipse.elk.alg.layered.p3order",kr="org.eclipse.elk.alg.layered.p4nodes",hVn={3:1,4:1,5:1,854:1},jh=1e-5,da="org.eclipse.elk.alg.layered.p4nodes.bk",BB="org.eclipse.elk.alg.layered.p5edges",mf="org.eclipse.elk.alg.layered.p5edges.orthogonal",FB="org.eclipse.elk.alg.layered.p5edges.orthogonal.direction",_B=1e-6,jw="org.eclipse.elk.alg.layered.p5edges.splines",HB=.09999999999999998,IP=1e-8,lVn=4.71238898038469,Trn=3.141592653589793,Nl="org.eclipse.elk.alg.mrtree",qB=.10000000149011612,OP="SUPER_ROOT",h8="org.eclipse.elk.alg.mrtree.graph",Crn=-17976931348623157e292,Bc="org.eclipse.elk.alg.mrtree.intermediate",aVn="Processor compute fanout",AP={3:1,6:1,4:1,5:1,534:1,100:1,115:1},dVn="Set neighbors in level",Gy="org.eclipse.elk.alg.mrtree.options",bVn="DESCENDANTS",Srn="org.eclipse.elk.mrtree.compaction",Prn="org.eclipse.elk.mrtree.edgeEndTextureLength",Irn="org.eclipse.elk.mrtree.treeLevel",Orn="org.eclipse.elk.mrtree.positionConstraint",Arn="org.eclipse.elk.mrtree.weighting",Lrn="org.eclipse.elk.mrtree.edgeRoutingMode",Nrn="org.eclipse.elk.mrtree.searchOrder",wVn="Position Constraint",uu="org.eclipse.elk.mrtree",gVn="org.eclipse.elk.tree",pVn="Processor arrange level",Jm="org.eclipse.elk.alg.mrtree.p2order",po="org.eclipse.elk.alg.mrtree.p4route",Drn="org.eclipse.elk.alg.radial",Md=6.283185307179586,$rn="Before",xrn=5e-324,LP="After",Rrn="org.eclipse.elk.alg.radial.intermediate",mVn="COMPACTION",UB="org.eclipse.elk.alg.radial.intermediate.compaction",vVn={3:1,4:1,5:1,100:1},Krn="org.eclipse.elk.alg.radial.intermediate.optimization",GB="No implementation is available for the layout option ",l8="org.eclipse.elk.alg.radial.options",Brn="org.eclipse.elk.radial.centerOnRoot",Frn="org.eclipse.elk.radial.orderId",_rn="org.eclipse.elk.radial.radius",NP="org.eclipse.elk.radial.rotate",zB="org.eclipse.elk.radial.compactor",XB="org.eclipse.elk.radial.compactionStepSize",Hrn="org.eclipse.elk.radial.sorter",qrn="org.eclipse.elk.radial.wedgeCriteria",Urn="org.eclipse.elk.radial.optimizationCriteria",VB="org.eclipse.elk.radial.rotation.targetAngle",WB="org.eclipse.elk.radial.rotation.computeAdditionalWedgeSpace",Grn="org.eclipse.elk.radial.rotation.outgoingEdgeAngles",kVn="Compaction",zrn="rotation",es="org.eclipse.elk.radial",yVn="org.eclipse.elk.alg.radial.p1position.wedge",Xrn="org.eclipse.elk.alg.radial.sorting",jVn=5.497787143782138,EVn=3.9269908169872414,MVn=2.356194490192345,TVn="org.eclipse.elk.alg.rectpacking",DP="org.eclipse.elk.alg.rectpacking.intermediate",JB="org.eclipse.elk.alg.rectpacking.options",Vrn="org.eclipse.elk.rectpacking.trybox",Wrn="org.eclipse.elk.rectpacking.currentPosition",Jrn="org.eclipse.elk.rectpacking.desiredPosition",Qrn="org.eclipse.elk.rectpacking.inNewRow",Yrn="org.eclipse.elk.rectpacking.widthApproximation.strategy",Zrn="org.eclipse.elk.rectpacking.widthApproximation.targetWidth",ncn="org.eclipse.elk.rectpacking.widthApproximation.optimizationGoal",ecn="org.eclipse.elk.rectpacking.widthApproximation.lastPlaceShift",tcn="org.eclipse.elk.rectpacking.packing.strategy",icn="org.eclipse.elk.rectpacking.packing.compaction.rowHeightReevaluation",rcn="org.eclipse.elk.rectpacking.packing.compaction.iterations",ccn="org.eclipse.elk.rectpacking.whiteSpaceElimination.strategy",QB="widthApproximation",CVn="Compaction Strategy",SVn="packing.compaction",co="org.eclipse.elk.rectpacking",Qm="org.eclipse.elk.alg.rectpacking.p1widthapproximation",$P="org.eclipse.elk.alg.rectpacking.p2packing",PVn="No Compaction",ucn="org.eclipse.elk.alg.rectpacking.p3whitespaceelimination",zy="org.eclipse.elk.alg.rectpacking.util",xP="No implementation available for ",Ew="org.eclipse.elk.alg.spore",Mw="org.eclipse.elk.alg.spore.options",Qb="org.eclipse.elk.sporeCompaction",YB="org.eclipse.elk.underlyingLayoutAlgorithm",ocn="org.eclipse.elk.processingOrder.treeConstruction",scn="org.eclipse.elk.processingOrder.spanningTreeCostFunction",ZB="org.eclipse.elk.processingOrder.preferredRoot",nF="org.eclipse.elk.processingOrder.rootSelection",eF="org.eclipse.elk.structure.structureExtractionStrategy",fcn="org.eclipse.elk.compaction.compactionStrategy",hcn="org.eclipse.elk.compaction.orthogonal",lcn="org.eclipse.elk.overlapRemoval.maxIterations",acn="org.eclipse.elk.overlapRemoval.runScanline",tF="processingOrder",IVn="overlapRemoval",Ym="org.eclipse.elk.sporeOverlap",OVn="org.eclipse.elk.alg.spore.p1structure",iF="org.eclipse.elk.alg.spore.p2processingorder",rF="org.eclipse.elk.alg.spore.p3execution",AVn="Topdown Layout",LVn="Invalid index: ",Zm="org.eclipse.elk.core.alg",u2={341:1},Tw={295:1},NVn="Make sure its type is registered with the ",dcn=" utility class.",nv="true",cF="false",DVn="Couldn't clone property '",Yb=.05,uo="org.eclipse.elk.core.options",$Vn=1.2999999523162842,Zb="org.eclipse.elk.box",bcn="org.eclipse.elk.expandNodes",wcn="org.eclipse.elk.box.packingMode",xVn="org.eclipse.elk.algorithm",RVn="org.eclipse.elk.resolvedAlgorithm",gcn="org.eclipse.elk.bendPoints",iDe="org.eclipse.elk.labelManager",KVn="org.eclipse.elk.scaleFactor",BVn="org.eclipse.elk.childAreaWidth",FVn="org.eclipse.elk.childAreaHeight",_Vn="org.eclipse.elk.animate",HVn="org.eclipse.elk.animTimeFactor",qVn="org.eclipse.elk.layoutAncestors",UVn="org.eclipse.elk.maxAnimTime",GVn="org.eclipse.elk.minAnimTime",zVn="org.eclipse.elk.progressBar",XVn="org.eclipse.elk.validateGraph",VVn="org.eclipse.elk.validateOptions",WVn="org.eclipse.elk.zoomToFit",rDe="org.eclipse.elk.font.name",JVn="org.eclipse.elk.font.size",pcn="org.eclipse.elk.topdown.sizeApproximator",mcn="org.eclipse.elk.topdown.scaleCap",QVn="org.eclipse.elk.edge.type",YVn="partitioning",ZVn="nodeLabels",RP="portAlignment",uF="nodeSize",oF="port",vcn="portLabels",Xy="topdown",nWn="insideSelfLoops",a8="org.eclipse.elk.fixed",KP="org.eclipse.elk.random",kcn={3:1,34:1,22:1,347:1},eWn="port must have a parent node to calculate the port side",tWn="The edge needs to have exactly one edge section. Found: ",d8="org.eclipse.elk.core.util.adapters",ts="org.eclipse.emf.ecore",o2="org.eclipse.elk.graph",iWn="EMapPropertyHolder",rWn="ElkBendPoint",cWn="ElkGraphElement",uWn="ElkConnectableShape",ycn="ElkEdge",oWn="ElkEdgeSection",sWn="EModelElement",fWn="ENamedElement",jcn="ElkLabel",Ecn="ElkNode",Mcn="ElkPort",hWn={94:1,93:1},g3="org.eclipse.emf.common.notify.impl",ba="The feature '",b8="' is not a valid changeable feature",lWn="Expecting null",sF="' is not a valid feature",aWn="The feature ID",dWn=" is not a valid feature ID",kc=32768,bWn={110:1,94:1,93:1,58:1,54:1,99:1},qn="org.eclipse.emf.ecore.impl",Td="org.eclipse.elk.graph.impl",w8="Recursive containment not allowed for ",ev="The datatype '",n0="' is not a valid classifier",fF="The value '",s2={195:1,3:1,4:1},hF="The class '",tv="http://www.eclipse.org/elk/ElkGraph",Tcn="property",g8="value",lF="source",wWn="properties",gWn="identifier",aF="height",dF="width",bF="parent",wF="text",gF="children",pWn="hierarchical",Ccn="sources",pF="targets",Scn="sections",BP="bendPoints",Pcn="outgoingShape",Icn="incomingShape",Ocn="outgoingSections",Acn="incomingSections",or="org.eclipse.emf.common.util",Lcn="Severe implementation error in the Json to ElkGraph importer.",Eh="id",Ui="org.eclipse.elk.graph.json",Ncn="Unhandled parameter types: ",mWn="startPoint",vWn="An edge must have at least one source and one target (edge id: '",iv="').",kWn="Referenced edge section does not exist: ",yWn=" (edge id: '",Dcn="target",jWn="sourcePoint",EWn="targetPoint",FP="group",Qe="name",MWn="connectableShape cannot be null",TWn="edge cannot be null",mF="Passed edge is not 'simple'.",_P="org.eclipse.elk.graph.util",Vy="The 'no duplicates' constraint is violated",vF="targetIndex=",Cd=", size=",kF="sourceIndex=",Mh={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1},yF={3:1,4:1,20:1,31:1,56:1,16:1,51:1,15:1,59:1,70:1,66:1,61:1,596:1},HP="logging",CWn="measureExecutionTime",SWn="parser.parse.1",PWn="parser.parse.2",qP="parser.next.1",jF="parser.next.2",IWn="parser.next.3",OWn="parser.next.4",Sd="parser.factor.1",$cn="parser.factor.2",AWn="parser.factor.3",LWn="parser.factor.4",NWn="parser.factor.5",DWn="parser.factor.6",$Wn="parser.atom.1",xWn="parser.atom.2",RWn="parser.atom.3",xcn="parser.atom.4",EF="parser.atom.5",Rcn="parser.cc.1",UP="parser.cc.2",KWn="parser.cc.3",BWn="parser.cc.5",Kcn="parser.cc.6",Bcn="parser.cc.7",MF="parser.cc.8",FWn="parser.ope.1",_Wn="parser.ope.2",HWn="parser.ope.3",g1="parser.descape.1",qWn="parser.descape.2",UWn="parser.descape.3",GWn="parser.descape.4",zWn="parser.descape.5",is="parser.process.1",XWn="parser.quantifier.1",VWn="parser.quantifier.2",WWn="parser.quantifier.3",JWn="parser.quantifier.4",Fcn="parser.quantifier.5",QWn="org.eclipse.emf.common.notify",_cn={424:1,686:1},YWn={3:1,4:1,20:1,31:1,56:1,16:1,15:1,70:1,61:1},Wy={378:1,152:1},p8="index=",TF={3:1,4:1,5:1,129:1},ZWn={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,61:1},Hcn={3:1,6:1,4:1,5:1,198:1},nJn={3:1,4:1,5:1,173:1,379:1},eJn=";/?:@&=+$,",tJn="invalid authority: ",iJn="EAnnotation",rJn="ETypedElement",cJn="EStructuralFeature",uJn="EAttribute",oJn="EClassifier",sJn="EEnumLiteral",fJn="EGenericType",hJn="EOperation",lJn="EParameter",aJn="EReference",dJn="ETypeParameter",Ct="org.eclipse.emf.ecore.util",CF={79:1},qcn={3:1,20:1,16:1,15:1,61:1,597:1,79:1,71:1,97:1},bJn="org.eclipse.emf.ecore.util.FeatureMap$Entry",$u=8192,Cw=2048,m8="byte",GP="char",v8="double",k8="float",y8="int",j8="long",E8="short",wJn="java.lang.Object",f2={3:1,4:1,5:1,254:1},Ucn={3:1,4:1,5:1,688:1},gJn={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1,71:1},Qr={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1,79:1,71:1,97:1},Jy="mixed",Ke="http:///org/eclipse/emf/ecore/util/ExtendedMetaData",vs="kind",pJn={3:1,4:1,5:1,689:1},Gcn={3:1,4:1,20:1,31:1,56:1,16:1,15:1,70:1,61:1,79:1,71:1,97:1},zP={20:1,31:1,56:1,16:1,15:1,61:1,71:1},XP={51:1,128:1,287:1},VP={76:1,343:1},WP="The value of type '",JP="' must be of type '",h2=1352,ks="http://www.eclipse.org/emf/2002/Ecore",QP=-32768,e0="constraints",Ji="baseType",mJn="getEStructuralFeature",vJn="getFeatureID",M8="feature",kJn="getOperationID",zcn="operation",yJn="defaultValue",jJn="eTypeParameters",EJn="isInstance",MJn="getEEnumLiteral",TJn="eContainingClass",ze={57:1},CJn={3:1,4:1,5:1,124:1},SJn="org.eclipse.emf.ecore.resource",PJn={94:1,93:1,599:1,2034:1},SF="org.eclipse.emf.ecore.resource.impl",Xcn="unspecified",Qy="simple",YP="attribute",IJn="attributeWildcard",ZP="element",PF="elementWildcard",vf="collapse",IF="itemType",nI="namespace",Yy="##targetNamespace",ys="whiteSpace",Vcn="wildcards",Pd="http://www.eclipse.org/emf/2003/XMLType",OF="##any",rv="uninitialized",Zy="The multiplicity constraint is violated",eI="org.eclipse.emf.ecore.xml.type",OJn="ProcessingInstruction",AJn="SimpleAnyType",LJn="XMLTypeDocumentRoot",oi="org.eclipse.emf.ecore.xml.type.impl",nj="INF",NJn="processing",DJn="ENTITIES_._base",Wcn="minLength",Jcn="ENTITY",tI="NCName",$Jn="IDREFS_._base",Qcn="integer",AF="token",LF="pattern",xJn="[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*",Ycn="\\i\\c*",RJn="[\\i-[:]][\\c-[:]]*",KJn="nonPositiveInteger",ej="maxInclusive",Zcn="NMTOKEN",BJn="NMTOKENS_._base",nun="nonNegativeInteger",tj="minInclusive",FJn="normalizedString",_Jn="unsignedByte",HJn="unsignedInt",qJn="18446744073709551615",UJn="unsignedShort",GJn="processingInstruction",p1="org.eclipse.emf.ecore.xml.type.internal",cv=1114111,zJn="Internal Error: shorthands: \\u",T8="xml:isDigit",NF="xml:isWord",DF="xml:isSpace",$F="xml:isNameChar",xF="xml:isInitialNameChar",XJn="09٠٩۰۹०९০৯੦੯૦૯୦୯௧௯౦౯೦೯൦൯๐๙໐໙༠༩",VJn="AZazÀÖØöøıĴľŁňŊžƀǃǍǰǴǵǺȗɐʨʻˁΆΆΈΊΌΌΎΡΣώϐϖϚϚϜϜϞϞϠϠϢϳЁЌЎяёќўҁҐӄӇӈӋӌӐӫӮӵӸӹԱՖՙՙաֆאתװײءغفيٱڷںھۀێېۓەەۥۦअहऽऽक़ॡঅঌএঐওনপরললশহড়ঢ়য়ৡৰৱਅਊਏਐਓਨਪਰਲਲ਼ਵਸ਼ਸਹਖ਼ੜਫ਼ਫ਼ੲੴઅઋઍઍએઑઓનપરલળવહઽઽૠૠଅଌଏଐଓନପରଲଳଶହଽଽଡ଼ଢ଼ୟୡஅஊஎஐஒகஙசஜஜஞடணதநபமவஷஹఅఌఎఐఒనపళవహౠౡಅಌಎಐಒನಪಳವಹೞೞೠೡഅഌഎഐഒനപഹൠൡกฮะะาำเๅກຂຄຄງຈຊຊຍຍດທນຟມຣລລວວສຫອຮະະາຳຽຽເໄཀཇཉཀྵႠჅაჶᄀᄀᄂᄃᄅᄇᄉᄉᄋᄌᄎᄒᄼᄼᄾᄾᅀᅀᅌᅌᅎᅎᅐᅐᅔᅕᅙᅙᅟᅡᅣᅣᅥᅥᅧᅧᅩᅩᅭᅮᅲᅳᅵᅵᆞᆞᆨᆨᆫᆫᆮᆯᆷᆸᆺᆺᆼᇂᇫᇫᇰᇰᇹᇹḀẛẠỹἀἕἘἝἠὅὈὍὐὗὙὙὛὛὝὝὟώᾀᾴᾶᾼιιῂῄῆῌῐΐῖΊῠῬῲῴῶῼΩΩKÅ℮℮ↀↂ〇〇〡〩ぁゔァヺㄅㄬ一龥가힣",WJn="Private Use",RF="ASSIGNED",KF="\0ÿĀſƀɏɐʯʰ˿̀ͯͰϿЀӿ֏ۿ܀ݏހऀॿঀ૿ఀ౿ಀഀൿༀက႟ႠჿᄀᇿሀᎠ᐀ᙿ ᚠក᠀Ḁỿἀ ⁰₠⃐℀⅏⅐←⇿∀⋿⌀⏿␀⑀①⓿─╿▀▟■◿☀⛿✀➿⠀⣿⺀⼀⿰ 〿ゟ゠ヿㄯ㆐㆟ㆠㆿ㈀㋿㌀㏿㐀䶵一鿿ꀀ꒐가힣豈ffﭏﭐ﷿︠︯︰﹏﹐ﹰ\uFEFF\uFEFF",eun="UNASSIGNED",uv={3:1,122:1},JJn="org.eclipse.emf.ecore.xml.type.util",iI={3:1,4:1,5:1,381:1},tun="org.eclipse.xtext.xbase.lib",QJn="Cannot add elements to a Range",YJn="Cannot set elements in a Range",ZJn="Cannot remove elements from a Range",nQn="user.agent",o,rI,BF;y.goog=y.goog||{},y.goog.global=y.goog.global||y,rI={},b(1,null,{},Ku),o.Fb=function(e){return YTn(this,e)},o.Gb=function(){return this.Rm},o.Hb=function(){return lb(this)},o.Ib=function(){var e;return Xa(wo(this))+"@"+(e=mt(this)>>>0,e.toString(16))},o.equals=function(n){return this.Fb(n)},o.hashCode=function(){return this.Hb()},o.toString=function(){return this.Ib()};var eQn,tQn,iQn;b(297,1,{297:1,2124:1},QQ),o.ve=function(e){var t;return t=new QQ,t.i=4,e>1?t.c=kAn(this,e-1):t.c=this,t},o.we=function(){return ll(this),this.b},o.xe=function(){return Xa(this)},o.ye=function(){return ll(this),this.k},o.ze=function(){return(this.i&4)!=0},o.Ae=function(){return(this.i&1)!=0},o.Ib=function(){return sQ(this)},o.i=0;var ki=w(ac,"Object",1),iun=w(ac,"Class",297);b(2096,1,ky),w(yy,"Optional",2096),b(1191,2096,ky,Ht),o.Fb=function(e){return e===this},o.Hb=function(){return 2040732332},o.Ib=function(){return"Optional.absent()"},o.Jb=function(e){return Pe(e),Zv(),FF};var FF;w(yy,"Absent",1191),b(636,1,{},yL),w(yy,"Joiner",636);var cDe=Dt(yy,"Predicate");b(589,1,{178:1,589:1,3:1,46:1},S8n),o.Mb=function(e){return kRn(this,e)},o.Lb=function(e){return kRn(this,e)},o.Fb=function(e){var t;return L(e,589)?(t=u(e,589),Vnn(this.a,t.a)):!1},o.Hb=function(){return iY(this.a)+306654252},o.Ib=function(){return Gje(this.a)},w(yy,"Predicates/AndPredicate",589),b(419,2096,{419:1,3:1},CE),o.Fb=function(e){var t;return L(e,419)?(t=u(e,419),rt(this.a,t.a)):!1},o.Hb=function(){return 1502476572+mt(this.a)},o.Ib=function(){return Pzn+this.a+")"},o.Jb=function(e){return new CE(CT(e.Kb(this.a),"the Function passed to Optional.transform() must not return null."))},w(yy,"Present",419),b(204,1,$m),o.Nb=function(e){_i(this,e)},o.Qb=function(){_jn()},w(Mn,"UnmodifiableIterator",204),b(2076,204,xm),o.Qb=function(){_jn()},o.Rb=function(e){throw T(new Ie)},o.Wb=function(e){throw T(new Ie)},w(Mn,"UnmodifiableListIterator",2076),b(399,2076,xm),o.Ob=function(){return this.c<this.d},o.Sb=function(){return this.c>0},o.Pb=function(){if(this.c>=this.d)throw T(new nc);return this.Xb(this.c++)},o.Tb=function(){return this.c},o.Ub=function(){if(this.c<=0)throw T(new nc);return this.Xb(--this.c)},o.Vb=function(){return this.c-1},o.c=0,o.d=0,w(Mn,"AbstractIndexedListIterator",399),b(713,204,$m),o.Ob=function(){return E$(this)},o.Pb=function(){return tQ(this)},o.e=1,w(Mn,"AbstractIterator",713),b(2084,1,{229:1}),o.Zb=function(){var e;return e=this.f,e||(this.f=this.ac())},o.Fb=function(e){return G$(this,e)},o.Hb=function(){return mt(this.Zb())},o.dc=function(){return this.gc()==0},o.ec=function(){return Cp(this)},o.Ib=function(){return Jr(this.Zb())},w(Mn,"AbstractMultimap",2084),b(742,2084,md),o.$b=function(){gC(this)},o._b=function(e){return uEn(this,e)},o.ac=function(){return new h4(this,this.c)},o.ic=function(e){return this.hc()},o.bc=function(){return new Tg(this,this.c)},o.jc=function(){return this.mc(this.hc())},o.kc=function(){return new Tjn(this)},o.lc=function(){return nR(this.c.vc().Nc(),new Xe,64,this.d)},o.cc=function(e){return ot(this,e)},o.fc=function(e){return Ak(this,e)},o.gc=function(){return this.d},o.mc=function(e){return Ln(),new Q3(e)},o.nc=function(){return new Mjn(this)},o.oc=function(){return nR(this.c.Cc().Nc(),new Jt,64,this.d)},o.pc=function(e,t){return new VT(this,e,t,null)},o.d=0,w(Mn,"AbstractMapBasedMultimap",742),b(1696,742,md),o.hc=function(){return new Gc(this.a)},o.jc=function(){return Ln(),Ln(),sr},o.cc=function(e){return u(ot(this,e),15)},o.fc=function(e){return u(Ak(this,e),15)},o.Zb=function(){return Lp(this)},o.Fb=function(e){return G$(this,e)},o.qc=function(e){return u(ot(this,e),15)},o.rc=function(e){return u(Ak(this,e),15)},o.mc=function(e){return CD(u(e,15))},o.pc=function(e,t){return SLn(this,e,u(t,15),null)},w(Mn,"AbstractListMultimap",1696),b(748,1,Pi),o.Nb=function(e){_i(this,e)},o.Ob=function(){return this.c.Ob()||this.e.Ob()},o.Pb=function(){var e;return this.e.Ob()||(e=u(this.c.Pb(),44),this.b=e.ld(),this.a=u(e.md(),16),this.e=this.a.Kc()),this.sc(this.b,this.e.Pb())},o.Qb=function(){this.e.Qb(),u(as(this.a),16).dc()&&this.c.Qb(),--this.d.d},w(Mn,"AbstractMapBasedMultimap/Itr",748),b(1129,748,Pi,Mjn),o.sc=function(e,t){return t},w(Mn,"AbstractMapBasedMultimap/1",1129),b(1130,1,{},Jt),o.Kb=function(e){return u(e,16).Nc()},w(Mn,"AbstractMapBasedMultimap/1methodref$spliterator$Type",1130),b(1131,748,Pi,Tjn),o.sc=function(e,t){return new ib(e,t)},w(Mn,"AbstractMapBasedMultimap/2",1131);var run=Dt(le,"Map");b(2065,1,Xb),o.wc=function(e){f5(this,e)},o.yc=function(e,t,i){return hx(this,e,t,i)},o.$b=function(){this.vc().$b()},o.tc=function(e){return xx(this,e)},o._b=function(e){return!!zZ(this,e,!1)},o.uc=function(e){var t,i,r;for(i=this.vc().Kc();i.Ob();)if(t=u(i.Pb(),44),r=t.md(),x(e)===x(r)||e!=null&&rt(e,r))return!0;return!1},o.Fb=function(e){var t,i,r;if(e===this)return!0;if(!L(e,85)||(r=u(e,85),this.gc()!=r.gc()))return!1;for(i=r.vc().Kc();i.Ob();)if(t=u(i.Pb(),44),!this.tc(t))return!1;return!0},o.xc=function(e){return Fr(zZ(this,e,!1))},o.Hb=function(){return XQ(this.vc())},o.dc=function(){return this.gc()==0},o.ec=function(){return new qa(this)},o.zc=function(e,t){throw T(new Fl("Put not supported on this map"))},o.Ac=function(e){s5(this,e)},o.Bc=function(e){return Fr(zZ(this,e,!0))},o.gc=function(){return this.vc().gc()},o.Ib=function(){return LFn(this)},o.Cc=function(){return new ol(this)},w(le,"AbstractMap",2065),b(2085,2065,Xb),o.bc=function(){return new VE(this)},o.vc=function(){return EIn(this)},o.ec=function(){var e;return e=this.g,e||(this.g=this.bc())},o.Cc=function(){var e;return e=this.i,e||(this.i=new JEn(this))},w(Mn,"Maps/ViewCachingAbstractMap",2085),b(402,2085,Xb,h4),o.xc=function(e){return hme(this,e)},o.Bc=function(e){return N6e(this,e)},o.$b=function(){this.d==this.e.c?this.e.$b():iT(new cW(this))},o._b=function(e){return rKn(this.d,e)},o.Ec=function(){return new P8n(this)},o.Dc=function(){return this.Ec()},o.Fb=function(e){return this===e||rt(this.d,e)},o.Hb=function(){return mt(this.d)},o.ec=function(){return this.e.ec()},o.gc=function(){return this.d.gc()},o.Ib=function(){return Jr(this.d)},w(Mn,"AbstractMapBasedMultimap/AsMap",402);var Ao=Dt(ac,"Iterable");b(31,1,pw),o.Jc=function(e){qi(this,e)},o.Lc=function(){return this.Oc()},o.Nc=function(){return new On(this,0)},o.Oc=function(){return new Cn(null,this.Nc())},o.Fc=function(e){throw T(new Fl("Add not supported on this collection"))},o.Gc=function(e){return Ki(this,e)},o.$b=function(){GW(this)},o.Hc=function(e){return iw(this,e,!1)},o.Ic=function(e){return Ek(this,e)},o.dc=function(){return this.gc()==0},o.Mc=function(e){return iw(this,e,!0)},o.Pc=function(){return wW(this)},o.Qc=function(e){return S5(this,e)},o.Ib=function(){return ca(this)},w(le,"AbstractCollection",31);var js=Dt(le,"Set");b(Ff,31,Nu),o.Nc=function(){return new On(this,1)},o.Fb=function(e){return WKn(this,e)},o.Hb=function(){return XQ(this)},w(le,"AbstractSet",Ff),b(2068,Ff,Nu),w(Mn,"Sets/ImprovedAbstractSet",2068),b(2069,2068,Nu),o.$b=function(){this.Rc().$b()},o.Hc=function(e){return NKn(this,e)},o.dc=function(){return this.Rc().dc()},o.Mc=function(e){var t;return this.Hc(e)&&L(e,44)?(t=u(e,44),this.Rc().ec().Mc(t.ld())):!1},o.gc=function(){return this.Rc().gc()},w(Mn,"Maps/EntrySet",2069),b(1127,2069,Nu,P8n),o.Hc=function(e){return kY(this.a.d.vc(),e)},o.Kc=function(){return new cW(this.a)},o.Rc=function(){return this.a},o.Mc=function(e){var t;return kY(this.a.d.vc(),e)?(t=u(as(u(e,44)),44),Y3e(this.a.e,t.ld()),!0):!1},o.Nc=function(){return D7(this.a.d.vc().Nc(),new I8n(this.a))},w(Mn,"AbstractMapBasedMultimap/AsMap/AsMapEntries",1127),b(1128,1,{},I8n),o.Kb=function(e){return TNn(this.a,u(e,44))},w(Mn,"AbstractMapBasedMultimap/AsMap/AsMapEntries/0methodref$wrapEntry$Type",1128),b(746,1,Pi,cW),o.Nb=function(e){_i(this,e)},o.Pb=function(){var e;return e=u(this.b.Pb(),44),this.a=u(e.md(),16),TNn(this.c,e)},o.Ob=function(){return this.b.Ob()},o.Qb=function(){v4(!!this.a),this.b.Qb(),this.c.e.d-=this.a.gc(),this.a.$b(),this.a=null},w(Mn,"AbstractMapBasedMultimap/AsMap/AsMapIterator",746),b(542,2068,Nu,VE),o.$b=function(){this.b.$b()},o.Hc=function(e){return this.b._b(e)},o.Jc=function(e){Pe(e),this.b.wc(new z8n(e))},o.dc=function(){return this.b.dc()},o.Kc=function(){return new n6(this.b.vc().Kc())},o.Mc=function(e){return this.b._b(e)?(this.b.Bc(e),!0):!1},o.gc=function(){return this.b.gc()},w(Mn,"Maps/KeySet",542),b(327,542,Nu,Tg),o.$b=function(){var e;iT((e=this.b.vc().Kc(),new Iz(this,e)))},o.Ic=function(e){return this.b.ec().Ic(e)},o.Fb=function(e){return this===e||rt(this.b.ec(),e)},o.Hb=function(){return mt(this.b.ec())},o.Kc=function(){var e;return e=this.b.vc().Kc(),new Iz(this,e)},o.Mc=function(e){var t,i;return i=0,t=u(this.b.Bc(e),16),t&&(i=t.gc(),t.$b(),this.a.d-=i),i>0},o.Nc=function(){return this.b.ec().Nc()},w(Mn,"AbstractMapBasedMultimap/KeySet",327),b(747,1,Pi,Iz),o.Nb=function(e){_i(this,e)},o.Ob=function(){return this.c.Ob()},o.Pb=function(){return this.a=u(this.c.Pb(),44),this.a.ld()},o.Qb=function(){var e;v4(!!this.a),e=u(this.a.md(),16),this.c.Qb(),this.b.a.d-=e.gc(),e.$b(),this.a=null},w(Mn,"AbstractMapBasedMultimap/KeySet/1",747),b(503,402,{85:1,133:1},S7),o.bc=function(){return this.Sc()},o.ec=function(){return this.Uc()},o.Sc=function(){return new e7(this.c,this.Wc())},o.Tc=function(){return this.Wc().Tc()},o.Uc=function(){var e;return e=this.b,e||(this.b=this.Sc())},o.Vc=function(){return this.Wc().Vc()},o.Wc=function(){return u(this.d,133)},w(Mn,"AbstractMapBasedMultimap/SortedAsMap",503),b(446,503,btn,D6),o.bc=function(){return new f4(this.a,u(u(this.d,133),139))},o.Sc=function(){return new f4(this.a,u(u(this.d,133),139))},o.ec=function(){var e;return e=this.b,u(e||(this.b=new f4(this.a,u(u(this.d,133),139))),277)},o.Uc=function(){var e;return e=this.b,u(e||(this.b=new f4(this.a,u(u(this.d,133),139))),277)},o.Wc=function(){return u(u(this.d,133),139)},o.Xc=function(e){return u(u(this.d,133),139).Xc(e)},o.Yc=function(e){return u(u(this.d,133),139).Yc(e)},o.Zc=function(e,t){return new D6(this.a,u(u(this.d,133),139).Zc(e,t))},o.$c=function(e){return u(u(this.d,133),139).$c(e)},o._c=function(e){return u(u(this.d,133),139)._c(e)},o.ad=function(e,t){return new D6(this.a,u(u(this.d,133),139).ad(e,t))},w(Mn,"AbstractMapBasedMultimap/NavigableAsMap",446),b(502,327,Izn,e7),o.Nc=function(){return this.b.ec().Nc()},w(Mn,"AbstractMapBasedMultimap/SortedKeySet",502),b(401,502,wtn,f4),w(Mn,"AbstractMapBasedMultimap/NavigableKeySet",401),b(551,31,pw,VT),o.Fc=function(e){var t,i;return eo(this),i=this.d.dc(),t=this.d.Fc(e),t&&(++this.f.d,i&&A7(this)),t},o.Gc=function(e){var t,i,r;return e.dc()?!1:(r=(eo(this),this.d.gc()),t=this.d.Gc(e),t&&(i=this.d.gc(),this.f.d+=i-r,r==0&&A7(this)),t)},o.$b=function(){var e;e=(eo(this),this.d.gc()),e!=0&&(this.d.$b(),this.f.d-=e,fT(this))},o.Hc=function(e){return eo(this),this.d.Hc(e)},o.Ic=function(e){return eo(this),this.d.Ic(e)},o.Fb=function(e){return e===this?!0:(eo(this),rt(this.d,e))},o.Hb=function(){return eo(this),mt(this.d)},o.Kc=function(){return eo(this),new HV(this)},o.Mc=function(e){var t;return eo(this),t=this.d.Mc(e),t&&(--this.f.d,fT(this)),t},o.gc=function(){return KTn(this)},o.Nc=function(){return eo(this),this.d.Nc()},o.Ib=function(){return eo(this),Jr(this.d)},w(Mn,"AbstractMapBasedMultimap/WrappedCollection",551);var rs=Dt(le,"List");b(744,551,{20:1,31:1,16:1,15:1},mW),o.jd=function(e){ud(this,e)},o.Nc=function(){return eo(this),this.d.Nc()},o.bd=function(e,t){var i;eo(this),i=this.d.dc(),u(this.d,15).bd(e,t),++this.a.d,i&&A7(this)},o.cd=function(e,t){var i,r,c;return t.dc()?!1:(c=(eo(this),this.d.gc()),i=u(this.d,15).cd(e,t),i&&(r=this.d.gc(),this.a.d+=r-c,c==0&&A7(this)),i)},o.Xb=function(e){return eo(this),u(this.d,15).Xb(e)},o.dd=function(e){return eo(this),u(this.d,15).dd(e)},o.ed=function(){return eo(this),new bCn(this)},o.fd=function(e){return eo(this),new ROn(this,e)},o.gd=function(e){var t;return eo(this),t=u(this.d,15).gd(e),--this.a.d,fT(this),t},o.hd=function(e,t){return eo(this),u(this.d,15).hd(e,t)},o.kd=function(e,t){return eo(this),SLn(this.a,this.e,u(this.d,15).kd(e,t),this.b?this.b:this)},w(Mn,"AbstractMapBasedMultimap/WrappedList",744),b(1126,744,{20:1,31:1,16:1,15:1,59:1},iSn),w(Mn,"AbstractMapBasedMultimap/RandomAccessWrappedList",1126),b(628,1,Pi,HV),o.Nb=function(e){_i(this,e)},o.Ob=function(){return O4(this),this.b.Ob()},o.Pb=function(){return O4(this),this.b.Pb()},o.Qb=function(){_Cn(this)},w(Mn,"AbstractMapBasedMultimap/WrappedCollection/WrappedIterator",628),b(745,628,Hh,bCn,ROn),o.Qb=function(){_Cn(this)},o.Rb=function(e){var t;t=KTn(this.a)==0,(O4(this),u(this.b,128)).Rb(e),++this.a.a.d,t&&A7(this.a)},o.Sb=function(){return(O4(this),u(this.b,128)).Sb()},o.Tb=function(){return(O4(this),u(this.b,128)).Tb()},o.Ub=function(){return(O4(this),u(this.b,128)).Ub()},o.Vb=function(){return(O4(this),u(this.b,128)).Vb()},o.Wb=function(e){(O4(this),u(this.b,128)).Wb(e)},w(Mn,"AbstractMapBasedMultimap/WrappedList/WrappedListIterator",745),b(743,551,Izn,oV),o.Nc=function(){return eo(this),this.d.Nc()},w(Mn,"AbstractMapBasedMultimap/WrappedSortedSet",743),b(1125,743,wtn,fCn),w(Mn,"AbstractMapBasedMultimap/WrappedNavigableSet",1125),b(1124,551,Nu,MSn),o.Nc=function(){return eo(this),this.d.Nc()},w(Mn,"AbstractMapBasedMultimap/WrappedSet",1124),b(1133,1,{},Xe),o.Kb=function(e){return s4e(u(e,44))},w(Mn,"AbstractMapBasedMultimap/lambda$1$Type",1133),b(1132,1,{},N8n),o.Kb=function(e){return new ib(this.a,e)},w(Mn,"AbstractMapBasedMultimap/lambda$2$Type",1132);var Id=Dt(le,"Map/Entry");b(358,1,tK),o.Fb=function(e){var t;return L(e,44)?(t=u(e,44),sh(this.ld(),t.ld())&&sh(this.md(),t.md())):!1},o.Hb=function(){var e,t;return e=this.ld(),t=this.md(),(e==null?0:mt(e))^(t==null?0:mt(t))},o.nd=function(e){throw T(new Ie)},o.Ib=function(){return this.ld()+"="+this.md()},w(Mn,Ozn,358),b(2086,31,pw),o.$b=function(){this.od().$b()},o.Hc=function(e){var t;return L(e,44)?(t=u(e,44),Ipe(this.od(),t.ld(),t.md())):!1},o.Mc=function(e){var t;return L(e,44)?(t=u(e,44),sLn(this.od(),t.ld(),t.md())):!1},o.gc=function(){return this.od().d},w(Mn,"Multimaps/Entries",2086),b(749,2086,pw,sG),o.Kc=function(){return this.a.kc()},o.od=function(){return this.a},o.Nc=function(){return this.a.lc()},w(Mn,"AbstractMultimap/Entries",749),b(750,749,Nu,uz),o.Nc=function(){return this.a.lc()},o.Fb=function(e){return ann(this,e)},o.Hb=function(){return vxn(this)},w(Mn,"AbstractMultimap/EntrySet",750),b(751,31,pw,fG),o.$b=function(){this.a.$b()},o.Hc=function(e){return S6e(this.a,e)},o.Kc=function(){return this.a.nc()},o.gc=function(){return this.a.d},o.Nc=function(){return this.a.oc()},w(Mn,"AbstractMultimap/Values",751),b(2087,31,{849:1,20:1,31:1,16:1}),o.Jc=function(e){Pe(e),Sg(this).Jc(new Y8n(e))},o.Nc=function(){var e;return e=Sg(this).Nc(),nR(e,new Tf,64|e.yd()&1296,this.a.d)},o.Fc=function(e){return bz(),!0},o.Gc=function(e){return Pe(this),Pe(e),L(e,552)?Lpe(u(e,849)):!e.dc()&&b$(this,e.Kc())},o.Hc=function(e){var t;return t=u(tw(Lp(this.a),e),16),(t?t.gc():0)>0},o.Fb=function(e){return nTe(this,e)},o.Hb=function(){return mt(Sg(this))},o.dc=function(){return Sg(this).dc()},o.Mc=function(e){return G_n(this,e,1)>0},o.Ib=function(){return Jr(Sg(this))},w(Mn,"AbstractMultiset",2087),b(2089,2068,Nu),o.$b=function(){gC(this.a.a)},o.Hc=function(e){var t,i;return L(e,504)?(i=u(e,425),u(i.a.md(),16).gc()<=0?!1:(t=$An(this.a,i.a.ld()),t==u(i.a.md(),16).gc())):!1},o.Mc=function(e){var t,i,r,c;return L(e,504)&&(i=u(e,425),t=i.a.ld(),r=u(i.a.md(),16).gc(),r!=0)?(c=this.a,UEe(c,t,r)):!1},w(Mn,"Multisets/EntrySet",2089),b(1139,2089,Nu,D8n),o.Kc=function(){return new Ojn(EIn(Lp(this.a.a)).Kc())},o.gc=function(){return Lp(this.a.a).gc()},w(Mn,"AbstractMultiset/EntrySet",1139),b(627,742,md),o.hc=function(){return this.pd()},o.jc=function(){return this.qd()},o.cc=function(e){return this.rd(e)},o.fc=function(e){return this.sd(e)},o.Zb=function(){var e;return e=this.f,e||(this.f=this.ac())},o.qd=function(){return Ln(),Ln(),hI},o.Fb=function(e){return G$(this,e)},o.rd=function(e){return u(ot(this,e),21)},o.sd=function(e){return u(Ak(this,e),21)},o.mc=function(e){return Ln(),new r4(u(e,21))},o.pc=function(e,t){return new MSn(this,e,u(t,21))},w(Mn,"AbstractSetMultimap",627),b(1723,627,md),o.hc=function(){return new Ul(this.b)},o.pd=function(){return new Ul(this.b)},o.jc=function(){return BW(new Ul(this.b))},o.qd=function(){return BW(new Ul(this.b))},o.cc=function(e){return u(u(ot(this,e),21),87)},o.rd=function(e){return u(u(ot(this,e),21),87)},o.fc=function(e){return u(u(Ak(this,e),21),87)},o.sd=function(e){return u(u(Ak(this,e),21),87)},o.mc=function(e){return L(e,277)?BW(u(e,277)):(Ln(),new zX(u(e,87)))},o.Zb=function(){var e;return e=this.f,e||(this.f=L(this.c,139)?new D6(this,u(this.c,139)):L(this.c,133)?new S7(this,u(this.c,133)):new h4(this,this.c))},o.pc=function(e,t){return L(t,277)?new fCn(this,e,u(t,277)):new oV(this,e,u(t,87))},w(Mn,"AbstractSortedSetMultimap",1723),b(1724,1723,md),o.Zb=function(){var e;return e=this.f,u(u(e||(this.f=L(this.c,139)?new D6(this,u(this.c,139)):L(this.c,133)?new S7(this,u(this.c,133)):new h4(this,this.c)),133),139)},o.ec=function(){var e;return e=this.i,u(u(e||(this.i=L(this.c,139)?new f4(this,u(this.c,139)):L(this.c,133)?new e7(this,u(this.c,133)):new Tg(this,this.c)),87),277)},o.bc=function(){return L(this.c,139)?new f4(this,u(this.c,139)):L(this.c,133)?new e7(this,u(this.c,133)):new Tg(this,this.c)},w(Mn,"AbstractSortedKeySortedSetMultimap",1724),b(2109,1,{2046:1}),o.Fb=function(e){return Tke(this,e)},o.Hb=function(){var e;return XQ((e=this.g,e||(this.g=new zA(this))))},o.Ib=function(){var e;return LFn((e=this.f,e||(this.f=new HX(this))))},w(Mn,"AbstractTable",2109),b(679,Ff,Nu,zA),o.$b=function(){Hjn()},o.Hc=function(e){var t,i;return L(e,479)?(t=u(e,697),i=u(tw(XIn(this.a),_1(t.c.e,t.b)),85),!!i&&kY(i.vc(),new ib(_1(t.c.c,t.a),Bp(t.c,t.b,t.a)))):!1},o.Kc=function(){return Ige(this.a)},o.Mc=function(e){var t,i;return L(e,479)?(t=u(e,697),i=u(tw(XIn(this.a),_1(t.c.e,t.b)),85),!!i&&u5e(i.vc(),new ib(_1(t.c.c,t.a),Bp(t.c,t.b,t.a)))):!1},o.gc=function(){return JPn(this.a)},o.Nc=function(){return $pe(this.a)},w(Mn,"AbstractTable/CellSet",679),b(2025,31,pw,x8n),o.$b=function(){Hjn()},o.Hc=function(e){return pye(this.a,e)},o.Kc=function(){return Oge(this.a)},o.gc=function(){return JPn(this.a)},o.Nc=function(){return oLn(this.a)},w(Mn,"AbstractTable/Values",2025),b(1697,1696,md),w(Mn,"ArrayListMultimapGwtSerializationDependencies",1697),b(520,1697,md,ML,oJ),o.hc=function(){return new Gc(this.a)},o.a=0,w(Mn,"ArrayListMultimap",520),b(678,2109,{678:1,2046:1,3:1},rHn),w(Mn,"ArrayTable",678),b(2021,399,xm,HCn),o.Xb=function(e){return new YQ(this.a,e)},w(Mn,"ArrayTable/1",2021),b(2022,1,{},O8n),o.td=function(e){return new YQ(this.a,e)},w(Mn,"ArrayTable/1methodref$getCell$Type",2022),b(2110,1,{697:1}),o.Fb=function(e){var t;return e===this?!0:L(e,479)?(t=u(e,697),sh(_1(this.c.e,this.b),_1(t.c.e,t.b))&&sh(_1(this.c.c,this.a),_1(t.c.c,t.a))&&sh(Bp(this.c,this.b,this.a),Bp(t.c,t.b,t.a))):!1},o.Hb=function(){return Ok(S(C(ki,1),Kn,1,5,[_1(this.c.e,this.b),_1(this.c.c,this.a),Bp(this.c,this.b,this.a)]))},o.Ib=function(){return"("+_1(this.c.e,this.b)+","+_1(this.c.c,this.a)+")="+Bp(this.c,this.b,this.a)},w(Mn,"Tables/AbstractCell",2110),b(479,2110,{479:1,697:1},YQ),o.a=0,o.b=0,o.d=0,w(Mn,"ArrayTable/2",479),b(2024,1,{},A8n),o.td=function(e){return LDn(this.a,e)},w(Mn,"ArrayTable/2methodref$getValue$Type",2024),b(2023,399,xm,qCn),o.Xb=function(e){return LDn(this.a,e)},w(Mn,"ArrayTable/3",2023),b(2077,2065,Xb),o.$b=function(){iT(this.kc())},o.vc=function(){return new G8n(this)},o.lc=function(){return new SOn(this.kc(),this.gc())},w(Mn,"Maps/IteratorBasedAbstractMap",2077),b(842,2077,Xb),o.$b=function(){throw T(new Ie)},o._b=function(e){return oEn(this.c,e)},o.kc=function(){return new UCn(this,this.c.b.c.gc())},o.lc=function(){return XN(this.c.b.c.gc(),16,new L8n(this))},o.xc=function(e){var t;return t=u($6(this.c,e),17),t?this.vd(t.a):null},o.dc=function(){return this.c.b.c.dc()},o.ec=function(){return eD(this.c)},o.zc=function(e,t){var i;if(i=u($6(this.c,e),17),!i)throw T(new Gn(this.ud()+" "+e+" not in "+eD(this.c)));return this.wd(i.a,t)},o.Bc=function(e){throw T(new Ie)},o.gc=function(){return this.c.b.c.gc()},w(Mn,"ArrayTable/ArrayMap",842),b(2020,1,{},L8n),o.td=function(e){return WIn(this.a,e)},w(Mn,"ArrayTable/ArrayMap/0methodref$getEntry$Type",2020),b(2018,358,tK,NEn),o.ld=function(){return q1e(this.a,this.b)},o.md=function(){return this.a.vd(this.b)},o.nd=function(e){return this.a.wd(this.b,e)},o.b=0,w(Mn,"ArrayTable/ArrayMap/1",2018),b(2019,399,xm,UCn),o.Xb=function(e){return WIn(this.a,e)},w(Mn,"ArrayTable/ArrayMap/2",2019),b(2017,842,Xb,xIn),o.ud=function(){return"Column"},o.vd=function(e){return Bp(this.b,this.a,e)},o.wd=function(e,t){return cRn(this.b,this.a,e,t)},o.a=0,w(Mn,"ArrayTable/Row",2017),b(843,842,Xb,HX),o.vd=function(e){return new xIn(this.a,e)},o.zc=function(e,t){return u(t,85),hhe()},o.wd=function(e,t){return u(t,85),lhe()},o.ud=function(){return"Row"},w(Mn,"ArrayTable/RowMap",843),b(1157,1,Io,DEn),o.Ad=function(e){return(this.a.yd()&-262&e)!=0},o.yd=function(){return this.a.yd()&-262},o.zd=function(){return this.a.zd()},o.Nb=function(e){this.a.Nb(new xEn(e,this.b))},o.Bd=function(e){return this.a.Bd(new $En(e,this.b))},w(Mn,"CollectSpliterators/1",1157),b(1158,1,re,$En),o.Cd=function(e){this.a.Cd(this.b.Kb(e))},w(Mn,"CollectSpliterators/1/lambda$0$Type",1158),b(1159,1,re,xEn),o.Cd=function(e){this.a.Cd(this.b.Kb(e))},w(Mn,"CollectSpliterators/1/lambda$1$Type",1159),b(1154,1,Io,cPn),o.Ad=function(e){return((16464|this.b)&e)!=0},o.yd=function(){return 16464|this.b},o.zd=function(){return this.a.zd()},o.Nb=function(e){this.a.Qe(new KEn(e,this.c))},o.Bd=function(e){return this.a.Re(new REn(e,this.c))},o.b=0,w(Mn,"CollectSpliterators/1WithCharacteristics",1154),b(1155,1,jy,REn),o.Dd=function(e){this.a.Cd(this.b.td(e))},w(Mn,"CollectSpliterators/1WithCharacteristics/lambda$0$Type",1155),b(1156,1,jy,KEn),o.Dd=function(e){this.a.Cd(this.b.td(e))},w(Mn,"CollectSpliterators/1WithCharacteristics/lambda$1$Type",1156),b(1150,1,Io),o.Ad=function(e){return(this.a&e)!=0},o.yd=function(){return this.a},o.zd=function(){return this.e&&(this.b=OX(this.b,this.e.zd())),OX(this.b,0)},o.Nb=function(e){this.e&&(this.e.Nb(e),this.e=null),this.c.Nb(new BEn(this,e)),this.b=0},o.Bd=function(e){for(;;){if(this.e&&this.e.Bd(e))return M6(this.b,Ey)&&(this.b=bs(this.b,1)),!0;if(this.e=null,!this.c.Bd(new R8n(this)))return!1}},o.a=0,o.b=0,w(Mn,"CollectSpliterators/FlatMapSpliterator",1150),b(1152,1,re,R8n),o.Cd=function(e){_ae(this.a,e)},w(Mn,"CollectSpliterators/FlatMapSpliterator/lambda$0$Type",1152),b(1153,1,re,BEn),o.Cd=function(e){age(this.a,this.b,e)},w(Mn,"CollectSpliterators/FlatMapSpliterator/lambda$1$Type",1153),b(1151,1150,Io,TLn),w(Mn,"CollectSpliterators/FlatMapSpliteratorOfObject",1151),b(253,1,iK),o.Fd=function(e){return this.Ed(u(e,253))},o.Ed=function(e){var t;return e==(bL(),HF)?1:e==(dL(),_F)?-1:(t=(YM(),mk(this.a,e.a)),t!=0?t:L(this,526)==L(e,526)?0:L(this,526)?1:-1)},o.Id=function(){return this.a},o.Fb=function(e){return mZ(this,e)},w(Mn,"Cut",253),b(1823,253,iK,Ejn),o.Ed=function(e){return e==this?0:1},o.Gd=function(e){throw T(new _G)},o.Hd=function(e){e.a+="+∞)"},o.Id=function(){throw T(new Ar(Lzn))},o.Hb=function(){return fl(),iZ(this)},o.Jd=function(e){return!1},o.Ib=function(){return"+∞"};var _F;w(Mn,"Cut/AboveAll",1823),b(526,253,{253:1,526:1,3:1,34:1},JCn),o.Gd=function(e){Lc((e.a+="(",e),this.a)},o.Hd=function(e){z1(Lc(e,this.a),93)},o.Hb=function(){return~mt(this.a)},o.Jd=function(e){return YM(),mk(this.a,e)<0},o.Ib=function(){return"/"+this.a+"\\"},w(Mn,"Cut/AboveValue",526),b(1822,253,iK,jjn),o.Ed=function(e){return e==this?0:-1},o.Gd=function(e){e.a+="(-∞"},o.Hd=function(e){throw T(new _G)},o.Id=function(){throw T(new Ar(Lzn))},o.Hb=function(){return fl(),iZ(this)},o.Jd=function(e){return!0},o.Ib=function(){return"-∞"};var HF;w(Mn,"Cut/BelowAll",1822),b(1824,253,iK,QCn),o.Gd=function(e){Lc((e.a+="[",e),this.a)},o.Hd=function(e){z1(Lc(e,this.a),41)},o.Hb=function(){return mt(this.a)},o.Jd=function(e){return YM(),mk(this.a,e)<=0},o.Ib=function(){return"\\"+this.a+"/"},w(Mn,"Cut/BelowValue",1824),b(547,1,qh),o.Jc=function(e){qi(this,e)},o.Ib=function(){return S5e(u(CT(this,"use Optional.orNull() instead of Optional.or(null)"),20).Kc())},w(Mn,"FluentIterable",547),b(442,547,qh,S6),o.Kc=function(){return new ie(ce(this.a.Kc(),new En))},w(Mn,"FluentIterable/2",442),b(1059,547,qh,cCn),o.Kc=function(){return $h(this)},w(Mn,"FluentIterable/3",1059),b(724,399,xm,qX),o.Xb=function(e){return this.a[e].Kc()},w(Mn,"FluentIterable/3/1",724),b(2070,1,{}),o.Ib=function(){return Jr(this.Kd().b)},w(Mn,"ForwardingObject",2070),b(2071,2070,Nzn),o.Kd=function(){return this.Ld()},o.Jc=function(e){qi(this,e)},o.Lc=function(){return this.Oc()},o.Nc=function(){return new On(this,0)},o.Oc=function(){return new Cn(null,this.Nc())},o.Fc=function(e){return this.Ld(),fEn()},o.Gc=function(e){return this.Ld(),hEn()},o.$b=function(){this.Ld(),lEn()},o.Hc=function(e){return this.Ld().Hc(e)},o.Ic=function(e){return this.Ld().Ic(e)},o.dc=function(){return this.Ld().b.dc()},o.Kc=function(){return this.Ld().Kc()},o.Mc=function(e){return this.Ld(),aEn()},o.gc=function(){return this.Ld().b.gc()},o.Pc=function(){return this.Ld().Pc()},o.Qc=function(e){return this.Ld().Qc(e)},w(Mn,"ForwardingCollection",2071),b(2078,31,gtn),o.Kc=function(){return this.Od()},o.Fc=function(e){throw T(new Ie)},o.Gc=function(e){throw T(new Ie)},o.Md=function(){var e;return e=this.c,e||(this.c=this.Nd())},o.$b=function(){throw T(new Ie)},o.Hc=function(e){return e!=null&&iw(this,e,!1)},o.Nd=function(){switch(this.gc()){case 0:return mb(),mb(),qF;case 1:return mb(),new VN(Pe(this.Od().Pb()));default:return new jW(this,this.Pc())}},o.Mc=function(e){throw T(new Ie)},w(Mn,"ImmutableCollection",2078),b(727,2078,gtn,BG),o.Kc=function(){return Fp(this.a.Kc())},o.Hc=function(e){return e!=null&&this.a.Hc(e)},o.Ic=function(e){return this.a.Ic(e)},o.dc=function(){return this.a.dc()},o.Od=function(){return Fp(this.a.Kc())},o.gc=function(){return this.a.gc()},o.Pc=function(){return this.a.Pc()},o.Qc=function(e){return this.a.Qc(e)},o.Ib=function(){return Jr(this.a)},w(Mn,"ForwardingImmutableCollection",727),b(307,2078,Rm),o.Kc=function(){return this.Od()},o.ed=function(){return this.Pd(0)},o.fd=function(e){return this.Pd(e)},o.jd=function(e){ud(this,e)},o.Nc=function(){return new On(this,16)},o.kd=function(e,t){return this.Qd(e,t)},o.bd=function(e,t){throw T(new Ie)},o.cd=function(e,t){throw T(new Ie)},o.Md=function(){return this},o.Fb=function(e){return HMe(this,e)},o.Hb=function(){return xve(this)},o.dd=function(e){return e==null?-1:c7e(this,e)},o.Od=function(){return this.Pd(0)},o.Pd=function(e){return CN(this,e)},o.gd=function(e){throw T(new Ie)},o.hd=function(e,t){throw T(new Ie)},o.Qd=function(e,t){var i;return RC((i=new WEn(this),new Jl(i,e,t)))};var qF;w(Mn,"ImmutableList",307),b(2105,307,Rm),o.Kc=function(){return Fp(this.Rd().Kc())},o.kd=function(e,t){return RC(this.Rd().kd(e,t))},o.Hc=function(e){return e!=null&&this.Rd().Hc(e)},o.Ic=function(e){return this.Rd().Ic(e)},o.Fb=function(e){return rt(this.Rd(),e)},o.Xb=function(e){return _1(this,e)},o.Hb=function(){return mt(this.Rd())},o.dd=function(e){return this.Rd().dd(e)},o.dc=function(){return this.Rd().dc()},o.Od=function(){return Fp(this.Rd().Kc())},o.gc=function(){return this.Rd().gc()},o.Qd=function(e,t){return RC(this.Rd().kd(e,t))},o.Pc=function(){return this.Rd().Qc(F(ki,Kn,1,this.Rd().gc(),5,1))},o.Qc=function(e){return this.Rd().Qc(e)},o.Ib=function(){return Jr(this.Rd())},w(Mn,"ForwardingImmutableList",2105),b(729,1,Km),o.vc=function(){return Ja(this)},o.wc=function(e){f5(this,e)},o.ec=function(){return eD(this)},o.yc=function(e,t,i){return hx(this,e,t,i)},o.Cc=function(){return this.Vd()},o.$b=function(){throw T(new Ie)},o._b=function(e){return this.xc(e)!=null},o.uc=function(e){return this.Vd().Hc(e)},o.Td=function(){return new Ayn(this)},o.Ud=function(){return new Lyn(this)},o.Fb=function(e){return P6e(this,e)},o.Hb=function(){return Ja(this).Hb()},o.dc=function(){return this.gc()==0},o.zc=function(e,t){return fhe()},o.Bc=function(e){throw T(new Ie)},o.Ib=function(){return wje(this)},o.Vd=function(){return this.e?this.e:this.e=this.Ud()},o.c=null,o.d=null,o.e=null;var rQn;w(Mn,"ImmutableMap",729),b(730,729,Km),o._b=function(e){return oEn(this,e)},o.uc=function(e){return eMn(this.b,e)},o.Sd=function(){return eKn(new $8n(this))},o.Td=function(){return eKn(pOn(this.b))},o.Ud=function(){return oh(),new BG(gOn(this.b))},o.Fb=function(e){return tMn(this.b,e)},o.xc=function(e){return $6(this,e)},o.Hb=function(){return mt(this.b.c)},o.dc=function(){return this.b.c.dc()},o.gc=function(){return this.b.c.gc()},o.Ib=function(){return Jr(this.b.c)},w(Mn,"ForwardingImmutableMap",730),b(2072,2071,rK),o.Kd=function(){return this.Wd()},o.Ld=function(){return this.Wd()},o.Nc=function(){return new On(this,1)},o.Fb=function(e){return e===this||this.Wd().Fb(e)},o.Hb=function(){return this.Wd().Hb()},w(Mn,"ForwardingSet",2072),b(1085,2072,rK,$8n),o.Kd=function(){return P4(this.a.b)},o.Ld=function(){return P4(this.a.b)},o.Hc=function(e){if(L(e,44)&&u(e,44).ld()==null)return!1;try{return nMn(P4(this.a.b),e)}catch(t){if(t=Ot(t),L(t,212))return!1;throw T(t)}},o.Wd=function(){return P4(this.a.b)},o.Qc=function(e){var t;return t=eAn(P4(this.a.b),e),P4(this.a.b).b.gc()<t.length&&$t(t,P4(this.a.b).b.gc(),null),t},w(Mn,"ForwardingImmutableMap/1",1085),b(2079,2078,r3),o.Kc=function(){return this.Od()},o.Nc=function(){return new On(this,1)},o.Fb=function(e){return ann(this,e)},o.Hb=function(){return vxn(this)},w(Mn,"ImmutableSet",2079),b(719,2079,r3),o.Kc=function(){return Fp(new J3(this.a.b.Kc()))},o.Hc=function(e){return e!=null&&t7(this.a,e)},o.Ic=function(e){return YEn(this.a,e)},o.Hb=function(){return mt(this.a.b)},o.dc=function(){return this.a.b.dc()},o.Od=function(){return Fp(new J3(this.a.b.Kc()))},o.gc=function(){return this.a.b.gc()},o.Pc=function(){return this.a.b.Pc()},o.Qc=function(e){return ZEn(this.a,e)},o.Ib=function(){return Jr(this.a.b)},w(Mn,"ForwardingImmutableSet",719),b(2073,2072,Dzn),o.Kd=function(){return this.b},o.Ld=function(){return this.b},o.Wd=function(){return this.b},o.Nc=function(){return new cM(this)},w(Mn,"ForwardingSortedSet",2073),b(543,2077,Km,oS),o.Ac=function(e){s5(this,e)},o.Cc=function(){var e;return e=this.d,new vN(e||(this.d=new VA(this)))},o.$b=function(){nk(this)},o._b=function(e){return!!u5(this,e,Se(er(Uh,xh(Se(er(e==null?0:mt(e),Gh)),15))))},o.uc=function(e){return j$n(this,e)},o.kc=function(){return new GCn(this,this)},o.wc=function(e){wAn(this,e)},o.xc=function(e){return Ng(this,e)},o.ec=function(){return new kN(this)},o.zc=function(e,t){return RS(this,e,t)},o.Bc=function(e){var t;return t=u5(this,e,Se(er(Uh,xh(Se(er(e==null?0:mt(e),Gh)),15)))),t?(zg(this,t),t.e=null,t.c=null,t.i):null},o.gc=function(){return this.i},o.xd=function(){var e;return e=this.d,new vN(e||(this.d=new VA(this)))},o.f=0,o.g=0,o.i=0,w(Mn,"HashBiMap",543),b(544,1,Pi),o.Nb=function(e){_i(this,e)},o.Ob=function(){return PLn(this)},o.Pb=function(){var e;if(!PLn(this))throw T(new nc);return e=u(as(this.c),303),this.c=e.c,this.f=e,--this.d,this.Xd(e)},o.Qb=function(){if(this.e.g!=this.b)throw T(new Ko);if(!this.f)throw T(new Ar(dtn));zg(this.e,this.f),this.b=this.e.g,this.f=null},o.b=0,o.d=0,o.f=null,w(Mn,"HashBiMap/Itr",544),b(1023,544,Pi,GCn),o.Xd=function(e){return new FEn(this,e)},w(Mn,"HashBiMap/1",1023),b(Gs,358,tK,FEn),o.ld=function(){return this.a.g},o.md=function(){return this.a.i},o.nd=function(e){var t,i,r;return i=this.a.i,r=Se(er(Uh,xh(Se(er(e==null?0:mt(e),Gh)),15))),r==this.a.f&&(x(e)===x(i)||e!=null&&rt(e,i))?e:(tRn(!o5(this.b.a,e,r),e),zg(this.b.a,this.a),t=new kT(this.a.g,this.a.a,e,r),ny(this.b.a,t,this.a),this.a.e=null,this.a.c=null,this.b.b=this.b.a.g,this.b.f==this.a&&(this.b.f=t),this.a=t,i)},w(Mn,"HashBiMap/1/MapEntry",Gs),b(246,358,{358:1,246:1,3:1,44:1},ib),o.ld=function(){return this.g},o.md=function(){return this.i},o.nd=function(e){throw T(new Ie)},w(Mn,"ImmutableEntry",246),b(303,246,{358:1,303:1,246:1,3:1,44:1},kT),o.a=0,o.f=0;var UF=w(Mn,"HashBiMap/BiEntry",303);b(619,2077,Km,VA),o.Ac=function(e){s5(this,e)},o.Cc=function(){return new kN(this.a)},o.$b=function(){nk(this.a)},o._b=function(e){return j$n(this.a,e)},o.kc=function(){return new zCn(this,this.a)},o.wc=function(e){Pe(e),wAn(this.a,new K8n(e))},o.xc=function(e){return pC(this,e)},o.ec=function(){return new vN(this)},o.zc=function(e,t){return YPe(this.a,e,t,!1)},o.Bc=function(e){var t;return t=o5(this.a,e,Se(er(Uh,xh(Se(er(e==null?0:mt(e),Gh)),15)))),t?(zg(this.a,t),t.e=null,t.c=null,t.g):null},o.gc=function(){return this.a.i},o.xd=function(){return new kN(this.a)},w(Mn,"HashBiMap/Inverse",619),b(1020,544,Pi,zCn),o.Xd=function(e){return new _En(this,e)},w(Mn,"HashBiMap/Inverse/1",1020),b(1021,358,tK,_En),o.ld=function(){return this.a.i},o.md=function(){return this.a.g},o.nd=function(e){var t,i,r;return r=this.a.g,t=Se(er(Uh,xh(Se(er(e==null?0:mt(e),Gh)),15))),t==this.a.a&&(x(e)===x(r)||e!=null&&rt(e,r))?e:(tRn(!u5(this.b.a.a,e,t),e),zg(this.b.a.a,this.a),i=new kT(e,t,this.a.i,this.a.f),this.a=i,ny(this.b.a.a,i,null),this.b.b=this.b.a.a.g,r)},w(Mn,"HashBiMap/Inverse/1/InverseEntry",1021),b(620,542,Nu,vN),o.Kc=function(){return new Cjn(this.a.a)},o.Mc=function(e){var t;return t=o5(this.a.a,e,Se(er(Uh,xh(Se(er(e==null?0:mt(e),Gh)),15)))),t?(zg(this.a.a,t),!0):!1},w(Mn,"HashBiMap/Inverse/InverseKeySet",620),b(1019,544,Pi,Cjn),o.Xd=function(e){return e.i},w(Mn,"HashBiMap/Inverse/InverseKeySet/1",1019),b(1022,1,{},K8n),o.Yd=function(e,t){_fe(this.a,e,t)},w(Mn,"HashBiMap/Inverse/lambda$0$Type",1022),b(618,542,Nu,kN),o.Kc=function(){return new Sjn(this.a)},o.Mc=function(e){var t;return t=u5(this.a,e,Se(er(Uh,xh(Se(er(e==null?0:mt(e),Gh)),15)))),t?(zg(this.a,t),t.e=null,t.c=null,!0):!1},w(Mn,"HashBiMap/KeySet",618),b(1018,544,Pi,Sjn),o.Xd=function(e){return e.g},w(Mn,"HashBiMap/KeySet/1",1018),b(1123,627,md),w(Mn,"HashMultimapGwtSerializationDependencies",1123),b(271,1123,md,Mb),o.hc=function(){return new zE(Q0(this.a))},o.pd=function(){return new zE(Q0(this.a))},o.a=2,w(Mn,"HashMultimap",271),b(2097,307,Rm),o.Hc=function(e){return this.Zd().Hc(e)},o.dc=function(){return this.Zd().dc()},o.gc=function(){return this.Zd().gc()},w(Mn,"ImmutableAsList",2097),b(2030,730,Km),o.Vd=function(){return oh(),new lp(this.a)},o.Cc=function(){return oh(),new lp(this.a)},o.xd=function(){return oh(),new lp(this.a)},w(Mn,"ImmutableBiMap",2030),b(2075,1,{}),w(Mn,"ImmutableCollection/Builder",2075),b(1035,719,r3,Pjn),w(Mn,"ImmutableEnumSet",1035),b(980,399,xm,iPn),o.Xb=function(e){return this.a.Xb(e)},w(Mn,"ImmutableList/1",980),b(979,2075,{},zSn),w(Mn,"ImmutableList/Builder",979),b(623,204,$m,WA),o.Ob=function(){return this.a.Ob()},o.Pb=function(){return u(this.a.Pb(),44).ld()},w(Mn,"ImmutableMap/1",623),b(1054,1,{},Yi),o.Kb=function(e){return u(e,44).ld()},w(Mn,"ImmutableMap/2methodref$getKey$Type",1054),b(1053,1,{},XSn),w(Mn,"ImmutableMap/Builder",1053),b(2098,2079,r3),o.Md=function(){var e;return e=this.b,e||(this.b=new cL(this))},o.Nd=function(){return new jW(this,S5(this,F(ki,Kn,1,this.gc(),5,1)))},w(Mn,"ImmutableSet/CachingAsList",2098),b(2099,2098,r3),o.Kc=function(){var e;return e=Ja(this.a).Od(),new WA(e)},o.Nd=function(){return new cL(this)},o.Jc=function(e){var t,i;for(Pe(e),i=this.gc(),t=0;t<i;t++)e.Cd(u(Ja(this.a).Md().Xb(t),44).ld())},o.Od=function(){var e;return e=this.b,CN(e||(this.b=new cL(this)),0)},o.Nc=function(){return XN(this.gc(),1296,new F8n(this))},w(Mn,"IndexedImmutableSet",2099),b(1230,2099,r3,Ayn),o.Kc=function(){var e;return e=Ja(this.a).Od(),new WA(e)},o.Hc=function(e){return this.a._b(e)},o.Jc=function(e){Pe(e),f5(this.a,new B8n(e))},o.Od=function(){var e;return e=Ja(this.a).Od(),new WA(e)},o.gc=function(){return this.a.gc()},o.Nc=function(){return D7(Ja(this.a).Nc(),new Yi)},w(Mn,"ImmutableMapKeySet",1230),b(1231,1,{},B8n),o.Yd=function(e,t){oh(),this.a.Cd(e)},w(Mn,"ImmutableMapKeySet/lambda$0$Type",1231),b(1227,2078,gtn,Lyn),o.Kc=function(){return new GN(this)},o.Md=function(){var e;return e=Ja(this.a).Md(),new pCn(this,e)},o.Hc=function(e){return e!=null&&Mke(new GN(this),e)},o.Od=function(){return new GN(this)},o.gc=function(){return this.a.gc()},o.Nc=function(){return D7(Ja(this.a).Nc(),new Bi)},w(Mn,"ImmutableMapValues",1227),b(1228,1,{},Bi),o.Kb=function(e){return u(e,44).md()},w(Mn,"ImmutableMapValues/0methodref$getValue$Type",1228),b(637,204,$m,GN),o.Ob=function(){return this.a.Ob()},o.Pb=function(){return u(this.a.Pb(),44).md()},w(Mn,"ImmutableMapValues/1",637),b(1229,2097,Rm,pCn),o.Zd=function(){return this.a},o.Xb=function(e){return u(this.b.Xb(e),44).md()},w(Mn,"ImmutableMapValues/2",1229),b(1232,1,{},F8n),o.td=function(e){return QIn(this.a,e)},w(Mn,"IndexedImmutableSet/0methodref$get$Type",1232),b(638,2097,Rm,cL),o.Zd=function(){return this.a},o.Xb=function(e){return QIn(this.a,e)},o.gc=function(){return this.a.a.gc()},w(Mn,"IndexedImmutableSet/1",638),b(43,1,{},En),o.Kb=function(e){return u(e,20).Kc()},o.Fb=function(e){return this===e},w(Mn,"Iterables/10",43),b(1055,547,qh,BPn),o.Jc=function(e){Pe(e),this.b.Jc(new HEn(this.a,e))},o.Kc=function(){return TX(this)},w(Mn,"Iterables/4",1055),b(1056,1,re,HEn),o.Cd=function(e){sle(this.b,this.a,e)},w(Mn,"Iterables/4/lambda$0$Type",1056),b(1057,547,qh,FPn),o.Jc=function(e){Pe(e),qi(this.a,new UEn(e,this.b))},o.Kc=function(){return ce(new ne(this.a),this.b)},w(Mn,"Iterables/5",1057),b(1058,1,re,UEn),o.Cd=function(e){this.a.Cd(uCn(e))},w(Mn,"Iterables/5/lambda$0$Type",1058),b(1087,204,$m,_8n),o.Ob=function(){return this.a.Ob()},o.Pb=function(){return this.a.Pb()},w(Mn,"Iterators/1",1087),b(1088,713,$m,qEn),o.Yb=function(){for(var e;this.b.Ob();)if(e=this.b.Pb(),this.a.Lb(e))return e;return this.e=2,null},w(Mn,"Iterators/5",1088),b(497,1,Pi),o.Nb=function(e){_i(this,e)},o.Ob=function(){return this.b.Ob()},o.Pb=function(){return this.$d(this.b.Pb())},o.Qb=function(){this.b.Qb()},w(Mn,"TransformedIterator",497),b(1089,497,Pi,XCn),o.$d=function(e){return this.a.Kb(e)},w(Mn,"Iterators/6",1089),b(732,204,$m,hG),o.Ob=function(){return!this.a},o.Pb=function(){if(this.a)throw T(new nc);return this.a=!0,this.b},o.a=!1,w(Mn,"Iterators/9",732),b(1086,399,xm,lIn),o.Xb=function(e){return this.a[this.b+e]},o.b=0;var cQn;w(Mn,"Iterators/ArrayItr",1086),b(38,1,{38:1,51:1},ie),o.Nb=function(e){_i(this,e)},o.Ob=function(){return pe(this)},o.Pb=function(){return fe(this)},o.Qb=function(){if(!this.c)throw T(new Ar(dtn));this.c.Qb(),this.c=null},w(Mn,"Iterators/ConcatenatedIterator",38),b(22,1,{3:1,34:1,22:1}),o.Fd=function(e){return Rjn(this,u(e,22))},o.Fb=function(e){return this===e},o.Hb=function(){return lb(this)},o.Ib=function(){return PN(this)},o.g=0;var ke=w(ac,"Enum",22);b(549,22,{549:1,3:1,34:1,22:1,51:1},PCn),o.Nb=function(e){_i(this,e)},o.Ob=function(){return!1},o.Pb=function(){throw T(new nc)},o.Qb=function(){v4(!1)};var GF,uQn=we(Mn,"Iterators/EmptyModifiableIterator",549,ke,kwe,H1e),oQn;b(1907,627,md),w(Mn,"LinkedHashMultimapGwtSerializationDependencies",1907),b(1908,1907,md,zRn),o.hc=function(){return new MN(Q0(this.b))},o.$b=function(){gC(this),V9(this.a,this.a)},o.pd=function(){return new MN(Q0(this.b))},o.ic=function(e){return new PRn(this,e,this.b)},o.kc=function(){return new NW(this)},o.lc=function(){var e;return new On((e=this.g,u(e||(this.g=new uz(this)),21)),17)},o.ec=function(){var e;return e=this.i,e||(this.i=new Tg(this,this.c))},o.nc=function(){return new sz(new NW(this))},o.oc=function(){var e;return D7(new On((e=this.g,u(e||(this.g=new uz(this)),21)),17),new hu)},o.b=2,w(Mn,"LinkedHashMultimap",1908),b(1911,1,{},hu),o.Kb=function(e){return u(e,44).md()},w(Mn,"LinkedHashMultimap/0methodref$getValue$Type",1911),b(834,1,Pi,NW),o.Nb=function(e){_i(this,e)},o.Pb=function(){return Nve(this)},o.Ob=function(){return this.a!=this.b.a},o.Qb=function(){v4(!!this.c),sLn(this.b,this.c.g,this.c.i),this.c=null},w(Mn,"LinkedHashMultimap/1",834),b(227,246,{358:1,246:1,227:1,604:1,3:1,44:1},_W),o._d=function(){return u(as(this.f),604)},o.ae=function(e){this.c=e},o.be=function(e){this.f=e},o.d=0;var sQn=w(Mn,"LinkedHashMultimap/ValueEntry",227);b(1909,2068,{604:1,20:1,31:1,16:1,21:1},PRn),o.Fc=function(e){var t,i,r,c,s;for(s=Se(er(Uh,xh(Se(er(e==null?0:mt(e),Gh)),15))),t=s&this.b.length-1,c=this.b[t],i=c;i;i=i.a)if(i.d==s&&sh(i.i,e))return!1;return r=new _W(this.c,e,s,c),Fjn(this.d,r),r.f=this,this.d=r,V9(u(as(this.g.a.b),227),r),V9(r,this.g.a),this.b[t]=r,++this.f,++this.e,jke(this),!0},o.$b=function(){var e,t;for(u7(this.b,null),this.f=0,e=this.a;e!=this;e=e._d())t=u(e,227),V9(u(as(t.b),227),u(as(t.e),227));this.a=this,this.d=this,++this.e},o.Hc=function(e){var t,i;for(i=Se(er(Uh,xh(Se(er(e==null?0:mt(e),Gh)),15))),t=this.b[i&this.b.length-1];t;t=t.a)if(t.d==i&&sh(t.i,e))return!0;return!1},o.Jc=function(e){var t;for(Pe(e),t=this.a;t!=this;t=t._d())e.Cd(u(t,227).i)},o._d=function(){return this.a},o.Kc=function(){return new iOn(this)},o.Mc=function(e){return fqn(this,e)},o.ae=function(e){this.d=e},o.be=function(e){this.a=e},o.gc=function(){return this.f},o.e=0,o.f=0,w(Mn,"LinkedHashMultimap/ValueSet",1909),b(1910,1,Pi,iOn),o.Nb=function(e){_i(this,e)},o.Ob=function(){return iW(this),this.b!=this.c},o.Pb=function(){var e,t;if(iW(this),this.b==this.c)throw T(new nc);return e=u(this.b,227),t=e.i,this.d=e,this.b=u(as(e.f),604),t},o.Qb=function(){iW(this),v4(!!this.d),fqn(this.c,this.d.i),this.a=this.c.e,this.d=null},o.a=0,w(Mn,"LinkedHashMultimap/ValueSet/1",1910),b(780,2084,md,GTn),o.Zb=function(){var e;return e=this.f,e||(this.f=new Fz(this))},o.Fb=function(e){return G$(this,e)},o.cc=function(e){return new SL(this,e)},o.fc=function(e){return GJ(this,e)},o.$b=function(){BIn(this)},o._b=function(e){return QEn(this,e)},o.ac=function(){return new Fz(this)},o.bc=function(){return new q8n(this)},o.qc=function(e){return new SL(this,e)},o.dc=function(){return!this.a},o.rc=function(e){return GJ(this,e)},o.gc=function(){return this.d},o.c=0,o.d=0,w(Mn,"LinkedListMultimap",780),b(56,31,Bm),o.jd=function(e){ud(this,e)},o.Nc=function(){return new On(this,16)},o.bd=function(e,t){throw T(new Fl("Add not supported on this list"))},o.Fc=function(e){return this.bd(this.gc(),e),!0},o.cd=function(e,t){var i,r,c;for(Jn(t),i=!1,c=t.Kc();c.Ob();)r=c.Pb(),this.bd(e++,r),i=!0;return i},o.$b=function(){this.ce(0,this.gc())},o.Fb=function(e){return Vnn(this,e)},o.Hb=function(){return iY(this)},o.dd=function(e){return J$n(this,e)},o.Kc=function(){return new zv(this)},o.ed=function(){return this.fd(0)},o.fd=function(e){return new xi(this,e)},o.gd=function(e){throw T(new Fl("Remove not supported on this list"))},o.ce=function(e,t){var i,r;for(r=this.fd(e),i=e;i<t;++i)r.Pb(),r.Qb()},o.hd=function(e,t){throw T(new Fl("Set not supported on this list"))},o.kd=function(e,t){return new Jl(this,e,t)},o.j=0,w(le,"AbstractList",56),b(2062,56,Bm),o.bd=function(e,t){g4(this,e,t)},o.cd=function(e,t){return IRn(this,e,t)},o.Xb=function(e){return Zo(this,e)},o.Kc=function(){return this.fd(0)},o.gd=function(e){return Ux(this,e)},o.hd=function(e,t){var i,r;i=this.fd(e);try{return r=i.Pb(),i.Wb(t),r}catch(c){throw c=Ot(c),L(c,112)?T(new Or("Can't set element "+e)):T(c)}},w(le,"AbstractSequentialList",2062),b(646,2062,Bm,SL),o.fd=function(e){return WCn(this,e)},o.gc=function(){var e;return e=u(ee(this.a.b,this.b),260),e?e.a:0},w(Mn,"LinkedListMultimap/1",646),b(1316,2068,Nu,q8n),o.Hc=function(e){return QEn(this.a,e)},o.Kc=function(){return new bxn(this.a)},o.Mc=function(e){return!GJ(this.a,e).a.dc()},o.gc=function(){return c6(this.a.b)},w(Mn,"LinkedListMultimap/1KeySetImpl",1316),b(1315,1,Pi,bxn),o.Nb=function(e){_i(this,e)},o.Ob=function(){return rW(this),!!this.c},o.Pb=function(){if(rW(this),!this.c)throw T(new nc);this.a=this.c,fi(this.d,this.a.a);do this.c=this.c.b;while(this.c&&!fi(this.d,this.c.a));return this.a.a},o.Qb=function(){rW(this),v4(!!this.a),iT(new f$(this.e,this.a.a)),this.a=null,this.b=this.e.c},o.b=0,w(Mn,"LinkedListMultimap/DistinctKeyIterator",1315),b(260,1,{260:1},QW),o.a=0,w(Mn,"LinkedListMultimap/KeyList",260),b(511,358,{358:1,511:1,44:1},GEn),o.ld=function(){return this.a},o.md=function(){return this.f},o.nd=function(e){var t;return t=this.f,this.f=e,t},w(Mn,"LinkedListMultimap/Node",511),b(566,1,Hh,f$,k_n),o.Nb=function(e){_i(this,e)},o.Rb=function(e){this.e=Pen(this.f,this.b,e,this.c),++this.d,this.a=null},o.Ob=function(){return!!this.c},o.Sb=function(){return!!this.e},o.Pb=function(){return oQ(this)},o.Tb=function(){return this.d},o.Ub=function(){return t$n(this)},o.Vb=function(){return this.d-1},o.Qb=function(){v4(!!this.a),this.a!=this.c?(this.e=this.a.e,--this.d):this.c=this.a.c,BTe(this.f,this.a),this.a=null},o.Wb=function(e){FX(!!this.a),this.a.f=e},o.d=0,w(Mn,"LinkedListMultimap/ValueForKeyIterator",566),b(1031,56,Bm),o.bd=function(e,t){this.a.bd(e,t)},o.cd=function(e,t){return this.a.cd(e,t)},o.Hc=function(e){return this.a.Hc(e)},o.Xb=function(e){return this.a.Xb(e)},o.gd=function(e){return this.a.gd(e)},o.hd=function(e,t){return this.a.hd(e,t)},o.gc=function(){return this.a.gc()},w(Mn,"Lists/AbstractListWrapper",1031),b(1032,1031,xzn),w(Mn,"Lists/RandomAccessListWrapper",1032),b(1034,1032,xzn,WEn),o.fd=function(e){return this.a.fd(e)},w(Mn,"Lists/1",1034),b(441,56,{441:1,20:1,31:1,56:1,16:1,15:1},Oz),o.bd=function(e,t){this.a.bd(M4(this,e),t)},o.$b=function(){this.a.$b()},o.Xb=function(e){return this.a.Xb(LW(this,e))},o.Kc=function(){return _An(this,0)},o.fd=function(e){return _An(this,e)},o.gd=function(e){return this.a.gd(LW(this,e))},o.ce=function(e,t){(pLn(e,t,this.a.gc()),Qo(this.a.kd(M4(this,t),M4(this,e)))).$b()},o.hd=function(e,t){return this.a.hd(LW(this,e),t)},o.gc=function(){return this.a.gc()},o.kd=function(e,t){return pLn(e,t,this.a.gc()),Qo(this.a.kd(M4(this,t),M4(this,e)))},w(Mn,"Lists/ReverseList",441),b(1030,441,{441:1,20:1,31:1,56:1,16:1,15:1,59:1},Ijn),w(Mn,"Lists/RandomAccessReverseList",1030),b(1033,1,Hh,zEn),o.Nb=function(e){_i(this,e)},o.Rb=function(e){this.c.Rb(e),this.c.Ub(),this.a=!1},o.Ob=function(){return this.c.Sb()},o.Sb=function(){return this.c.Ob()},o.Pb=function(){if(!this.c.Sb())throw T(new nc);return this.a=!0,this.c.Ub()},o.Tb=function(){return M4(this.b,this.c.Tb())},o.Ub=function(){if(!this.c.Ob())throw T(new nc);return this.a=!0,this.c.Pb()},o.Vb=function(){return M4(this.b,this.c.Tb())-1},o.Qb=function(){v4(this.a),this.c.Qb(),this.a=!1},o.Wb=function(e){FX(this.a),this.c.Wb(e)},o.a=!1,w(Mn,"Lists/ReverseList/1",1033),b(440,497,Pi,n6),o.$d=function(e){return rM(e)},w(Mn,"Maps/1",440),b(712,497,Pi,sz),o.$d=function(e){return u(e,44).md()},w(Mn,"Maps/2",712),b(975,497,Pi,VCn),o.$d=function(e){return new ib(e,ZTn(this.a,e))},w(Mn,"Maps/3",975),b(972,2069,Nu,G8n),o.Jc=function(e){zfe(this.a,e)},o.Kc=function(){return this.a.kc()},o.Rc=function(){return this.a},o.Nc=function(){return this.a.lc()},w(Mn,"Maps/IteratorBasedAbstractMap/1",972),b(973,1,{},z8n),o.Yd=function(e,t){this.a.Cd(e)},w(Mn,"Maps/KeySet/lambda$0$Type",973),b(971,31,pw,JEn),o.$b=function(){this.a.$b()},o.Hc=function(e){return this.a.uc(e)},o.Jc=function(e){Pe(e),this.a.wc(new U8n(e))},o.dc=function(){return this.a.dc()},o.Kc=function(){return new sz(this.a.vc().Kc())},o.Mc=function(e){var t,i;try{return iw(this,e,!0)}catch(r){if(r=Ot(r),L(r,48)){for(i=this.a.vc().Kc();i.Ob();)if(t=u(i.Pb(),44),sh(e,t.md()))return this.a.Bc(t.ld()),!0;return!1}else throw T(r)}},o.gc=function(){return this.a.gc()},w(Mn,"Maps/Values",971),b(974,1,{},U8n),o.Yd=function(e,t){this.a.Cd(t)},w(Mn,"Maps/Values/lambda$0$Type",974),b(752,2085,Xb,Fz),o.xc=function(e){return this.a._b(e)?this.a.cc(e):null},o.Bc=function(e){return this.a._b(e)?this.a.fc(e):null},o.$b=function(){this.a.$b()},o._b=function(e){return this.a._b(e)},o.Ec=function(){return new X8n(this)},o.Dc=function(){return this.Ec()},o.dc=function(){return this.a.dc()},o.ec=function(){return this.a.ec()},o.gc=function(){return this.a.ec().gc()},w(Mn,"Multimaps/AsMap",752),b(1134,2069,Nu,X8n),o.Kc=function(){return l1e(this.a.a.ec(),new V8n(this))},o.Rc=function(){return this.a},o.Mc=function(e){var t;return NKn(this,e)?(t=u(as(u(e,44)),44),ehe(this.a,t.ld()),!0):!1},w(Mn,"Multimaps/AsMap/EntrySet",1134),b(1138,1,{},V8n),o.Kb=function(e){return ZTn(this,e)},o.Fb=function(e){return this===e},w(Mn,"Multimaps/AsMap/EntrySet/1",1138),b(552,2087,{552:1,849:1,20:1,31:1,16:1},W8n),o.$b=function(){gC(this.a)},o.Hc=function(e){return uEn(this.a,e)},o.Jc=function(e){Pe(e),qi(G6(this.a),new Q8n(e))},o.Kc=function(){return new n6(G6(this.a).a.kc())},o.gc=function(){return this.a.d},o.Nc=function(){return D7(G6(this.a).Nc(),new Qc)},w(Mn,"Multimaps/Keys",552),b(1136,1,{},Qc),o.Kb=function(e){return u(e,44).ld()},w(Mn,"Multimaps/Keys/0methodref$getKey$Type",1136),b(1135,497,Pi,Ojn),o.$d=function(e){return new J8n(u(e,44))},w(Mn,"Multimaps/Keys/1",1135),b(2088,1,{425:1}),o.Fb=function(e){var t;return L(e,504)?(t=u(e,425),u(this.a.md(),16).gc()==u(t.a.md(),16).gc()&&sh(this.a.ld(),t.a.ld())):!1},o.Hb=function(){var e;return e=this.a.ld(),(e==null?0:mt(e))^u(this.a.md(),16).gc()},o.Ib=function(){var e,t;return t=A6(this.a.ld()),e=u(this.a.md(),16).gc(),e==1?t:t+" x "+e},w(Mn,"Multisets/AbstractEntry",2088),b(504,2088,{504:1,425:1},J8n),w(Mn,"Multimaps/Keys/1/1",504),b(1137,1,re,Q8n),o.Cd=function(e){this.a.Cd(u(e,44).ld())},w(Mn,"Multimaps/Keys/lambda$1$Type",1137),b(1140,1,re,Bu),o.Cd=function(e){D0e(u(e,425))},w(Mn,"Multiset/lambda$0$Type",1140),b(753,1,re,Y8n),o.Cd=function(e){vme(this.a,u(e,425))},w(Mn,"Multiset/lambda$1$Type",753),b(1141,1,{},Ir),w(Mn,"Multisets/0methodref$add$Type",1141),b(754,1,{},Tf),o.Kb=function(e){return Hpe(u(e,425))},w(Mn,"Multisets/lambda$1$Type",754),b(2106,1,ky),w(Mn,"RangeGwtSerializationDependencies",2106),b(521,2106,{178:1,521:1,3:1,46:1},fZ),o.Lb=function(e){return TIn(this,u(e,34))},o.Mb=function(e){return TIn(this,u(e,34))},o.Fb=function(e){var t;return L(e,521)?(t=u(e,521),mZ(this.a,t.a)&&mZ(this.b,t.b)):!1},o.Hb=function(){return this.a.Hb()*31+this.b.Hb()},o.Ib=function(){return qLn(this.a,this.b)},w(Mn,"Range",521),b(654,2097,Rm,jW),o.fd=function(e){return CN(this.b,e)},o.Zd=function(){return this.a},o.Xb=function(e){return _1(this.b,e)},o.Pd=function(e){return CN(this.b,e)},w(Mn,"RegularImmutableAsList",654),b(656,2105,Rm,ID),o.Rd=function(){return this.a},w(Mn,"RegularImmutableList",656),b(548,730,Km,fz,hz),w(Mn,"RegularImmutableMap",548),b(731,719,r3,Rz);var cun;w(Mn,"RegularImmutableSet",731),b(2074,Ff,Nu),o.Kc=function(){return new UW(this.a,this.b)},o.Fc=function(e){throw T(new Ie)},o.Gc=function(e){throw T(new Ie)},o.$b=function(){throw T(new Ie)},o.Mc=function(e){throw T(new Ie)},w(Mn,"Sets/SetView",2074),b(976,2074,Nu,VEn),o.Kc=function(){return new UW(this.a,this.b)},o.Hc=function(e){return JN(this.a,e)&&this.b.Hc(e)},o.Ic=function(e){return Ek(this.a,e)&&this.b.Ic(e)},o.dc=function(){return pBn(this.b,this.a)},o.Lc=function(){return ut(new Cn(null,new On(this.a,1)),new n9n(this.b))},o.gc=function(){return kk(this)},o.Oc=function(){return ut(new Cn(null,new On(this.a,1)),new Z8n(this.b))},w(Mn,"Sets/2",976),b(977,1,Le,Z8n),o.Mb=function(e){return this.a.Hc(e)},w(Mn,"Sets/2/0methodref$contains$Type",977),b(714,713,$m,UW),o.Yb=function(){for(var e;IX(this.a);)if(e=n5(this.a),this.c.Hc(e))return e;return this.e=2,null},w(Mn,"Sets/2/1",714),b(978,1,Le,n9n),o.Mb=function(e){return this.a.Hc(e)},w(Mn,"Sets/2/1methodref$contains$Type",978),b(616,2073,{616:1,3:1,20:1,16:1,277:1,21:1,87:1},oAn),o.Kd=function(){return this.b},o.Ld=function(){return this.b},o.Wd=function(){return this.b},o.Jc=function(e){this.a.Jc(e)},o.Lc=function(){return this.a.Lc()},o.Oc=function(){return this.a.Oc()},w(Mn,"Sets/UnmodifiableNavigableSet",616),b(2031,2030,Km,lOn),o.Vd=function(){return oh(),new lp(this.a)},o.Cc=function(){return oh(),new lp(this.a)},o.xd=function(){return oh(),new lp(this.a)},w(Mn,"SingletonImmutableBiMap",2031),b(657,2105,Rm,VN),o.Rd=function(){return this.a},w(Mn,"SingletonImmutableList",657),b(363,2079,r3,lp),o.Kc=function(){return new hG(this.a)},o.Hc=function(e){return rt(this.a,e)},o.Od=function(){return new hG(this.a)},o.gc=function(){return 1},w(Mn,"SingletonImmutableSet",363),b(1148,1,{},N1),o.Kb=function(e){return u(e,159)},w(Mn,"Streams/lambda$0$Type",1148),b(1149,1,JS,e9n),o.de=function(){Q3e(this.a)},w(Mn,"Streams/lambda$1$Type",1149),b(1725,1724,md,GOn),o.Zb=function(){var e;return e=this.f,u(u(e||(this.f=L(this.c,139)?new D6(this,u(this.c,139)):L(this.c,133)?new S7(this,u(this.c,133)):new h4(this,this.c)),133),139)},o.hc=function(){return new Ul(this.b)},o.pd=function(){return new Ul(this.b)},o.ec=function(){var e;return e=this.i,u(u(e||(this.i=L(this.c,139)?new f4(this,u(this.c,139)):L(this.c,133)?new e7(this,u(this.c,133)):new Tg(this,this.c)),87),277)},o.ac=function(){return L(this.c,139)?new D6(this,u(this.c,139)):L(this.c,133)?new S7(this,u(this.c,133)):new h4(this,this.c)},o.ic=function(e){return e==null&&this.a.Ne(e,e),new Ul(this.b)},w(Mn,"TreeMultimap",1725),b(82,1,{3:1,82:1}),o.ee=function(e){return new Error(e)},o.fe=function(){return this.e},o.ge=function(){var e,t,i;for(i=(this.k==null&&(this.k=F(zF,J,82,0,0,1)),this.k),t=F(ki,Kn,1,i.length,5,1),e=0;e<i.length;e++)t[e]=i[e].e;return t},o.he=function(){return this.f},o.ie=function(){return this.g},o.je=function(){Qfe(this,Ape(this.ee(OT(this,this.g)))),Nyn(this)},o.Ib=function(){return OT(this,this.ie())},o.e=Rzn,o.i=!1,o.n=!0;var zF=w(ac,"Throwable",82);b(103,82,{3:1,103:1,82:1}),w(ac,"Exception",103),b(63,103,Il,Ga,ec),w(ac,"RuntimeException",63),b(607,63,Il),w(ac,"JsException",607),b(875,607,Il),w(Ty,"JavaScriptExceptionBase",875),b(486,875,{486:1,3:1,103:1,63:1,82:1},GRn),o.ie=function(){return zke(this),this.c},o.ke=function(){return x(this.b)===x(uun)?null:this.b};var uun;w(mtn,"JavaScriptException",486);var fQn=w(mtn,"JavaScriptObject$",0),oun;b(2047,1,{}),w(mtn,"Scheduler",2047);var cI=0,hQn=0,uI=-1;b(902,2047,{},D1);var sun;w(Ty,"SchedulerImpl",902);var XF;b(2058,1,{}),w(Ty,"StackTraceCreator/Collector",2058),b(876,2058,{},og),o.le=function(e){var t={},i=[];e[oK]=i;for(var r=arguments.callee.caller;r;){var c=(A4(),r.name||(r.name=Lme(r.toString())));i.push(c);var s=":"+c,f=t[s];if(f){var h,l;for(h=0,l=f.length;h<l;h++)if(f[h]===r)return}(f||(t[s]=[])).push(r),r=r.caller}},o.me=function(e){var t,i,r,c;for(r=(A4(),e&&e[oK]?e[oK]:[]),i=r.length,c=F(jun,J,319,i,0,1),t=0;t<i;t++)c[t]=new yD(r[t],null,-1);return c},w(Ty,"StackTraceCreator/CollectorLegacy",876),b(2059,2058,{}),o.le=function(e){},o.ne=function(e,t,i,r){return new yD(t,e+"@"+r,i<0?-1:i)},o.me=function(e){var t,i,r,c,s,f;if(c=v7e(e),s=F(jun,J,319,0,0,1),t=0,r=c.length,r==0)return s;for(f=_Gn(this,c[0]),Sn(f.d,uK)||(s[t++]=f),i=1;i<r;i++)s[t++]=_Gn(this,c[i]);return s},w(Ty,"StackTraceCreator/CollectorModern",2059),b(877,2059,{},V3),o.ne=function(e,t,i,r){return new yD(t,e,-1)},w(Ty,"StackTraceCreator/CollectorModernNoSourceMap",877),b(1064,1,{}),w(ktn,Fzn,1064),b(624,1064,{624:1},JIn);var fun;w(CK,Fzn,624),b(2101,1,{}),w(ktn,_zn,2101),b(2102,2101,{}),w(CK,_zn,2102),b(1120,1,{},$1);var C8;w(CK,"LocaleInfo",1120),b(2027,1,{},ul),o.a=0,w(CK,"TimeZone",2027),b(1293,2102,{},Mbn),w("com.google.gwt.i18n.client.impl.cldr","DateTimeFormatInfoImpl",1293),b(443,1,{443:1},PPn),o.a=!1,o.b=0,w(ktn,"DateTimeFormat/PatternPart",443),b(206,1,Hzn,JE,ZQ,sV),o.Fd=function(e){return Cpe(this,u(e,206))},o.Fb=function(e){return L(e,206)&&ob(vc(this.q.getTime()),vc(u(e,206).q.getTime()))},o.Hb=function(){var e;return e=vc(this.q.getTime()),Se(BD(e,U1(e,32)))},o.Ib=function(){var e,t,i;return i=-this.q.getTimezoneOffset(),e=(i>=0?"+":"")+(i/60|0),t=AM(y.Math.abs(i)%60),(UFn(),EQn)[this.q.getDay()]+" "+MQn[this.q.getMonth()]+" "+AM(this.q.getDate())+" "+AM(this.q.getHours())+":"+AM(this.q.getMinutes())+":"+AM(this.q.getSeconds())+" GMT"+e+t+" "+this.q.getFullYear()};var oI=w(le,"Date",206);b(2015,206,Hzn,dFn),o.a=!1,o.b=0,o.c=0,o.d=0,o.e=0,o.f=0,o.g=!1,o.i=0,o.j=0,o.k=0,o.n=0,o.o=0,o.p=0,w("com.google.gwt.i18n.shared.impl","DateRecord",2015),b(2064,1,{}),o.pe=function(){return null},o.qe=function(){return null},o.re=function(){return null},o.se=function(){return null},o.te=function(){return null},w(u3,"JSONValue",2064),b(221,2064,{221:1},_a,lG),o.Fb=function(e){return L(e,221)?fJ(this.a,u(e,221).a):!1},o.oe=function(){return Dfe},o.Hb=function(){return YW(this.a)},o.pe=function(){return this},o.Ib=function(){var e,t,i;for(i=new mo("["),t=0,e=this.a.length;t<e;t++)t>0&&(i.a+=","),Lc(i,J0(this,t));return i.a+="]",i.a},w(u3,"JSONArray",221),b(493,2064,{493:1},aG),o.oe=function(){return $fe},o.qe=function(){return this},o.Ib=function(){return _n(),""+this.a},o.a=!1;var lQn,aQn;w(u3,"JSONBoolean",493),b(997,63,Il,Ajn),w(u3,"JSONException",997),b(1036,2064,{},Tbn),o.oe=function(){return xfe},o.Ib=function(){return gu};var dQn;w(u3,"JSONNull",1036),b(263,2064,{263:1},SE),o.Fb=function(e){return L(e,263)?this.a==u(e,263).a:!1},o.oe=function(){return Lfe},o.Hb=function(){return pp(this.a)},o.re=function(){return this},o.Ib=function(){return this.a+""},o.a=0,w(u3,"JSONNumber",263),b(190,2064,{190:1},sp,U9),o.Fb=function(e){return L(e,190)?fJ(this.a,u(e,190).a):!1},o.oe=function(){return Nfe},o.Hb=function(){return YW(this.a)},o.se=function(){return this},o.Ib=function(){var e,t,i,r,c,s,f;for(f=new mo("{"),e=!0,s=P$(this,F(fn,J,2,0,6,1)),i=s,r=0,c=i.length;r<c;++r)t=i[r],e?e=!1:f.a+=ur,Be(f,cHn(t)),f.a+=":",Lc(f,dl(this,t));return f.a+="}",f.a},w(u3,"JSONObject",190),b(605,Ff,Nu,PL),o.Hc=function(e){return Si(e)&&whe(this.a,Ae(e))},o.Kc=function(){return new zv(new Fu(this.b))},o.gc=function(){return this.b.length},w(u3,"JSONObject/1",605);var VF;b(211,2064,{211:1},q0),o.Fb=function(e){return L(e,211)?Sn(this.a,u(e,211).a):!1},o.oe=function(){return Afe},o.Hb=function(){return t1(this.a)},o.te=function(){return this},o.Ib=function(){return cHn(this.a)},w(u3,"JSONString",211);var wa,hun,bQn,lun,aun;b(2060,1,{533:1}),w(ytn,"OutputStream",2060),b(2061,2060,{533:1}),w(ytn,"FilterOutputStream",2061),b(878,2061,{533:1},Cbn),w(ytn,"PrintStream",878),b(427,1,{484:1}),o.Ib=function(){return this.a},w(ac,"AbstractStringBuilder",427),b(538,63,Il,_E),w(ac,"ArithmeticException",538),b(77,63,SK,HG,Or),w(ac,"IndexOutOfBoundsException",77),b(333,77,{3:1,333:1,103:1,77:1,63:1,82:1},QG,gz),w(ac,"ArrayIndexOutOfBoundsException",333),b(537,63,Il,uL,Kjn),w(ac,"ArrayStoreException",537),b(296,82,qzn,vL),w(ac,"Error",296),b(200,296,qzn,_G,DJ),w(ac,"AssertionError",200),eQn={3:1,485:1,34:1};var ga,ov,Gt=w(ac,"Boolean",485);b(242,1,{3:1,242:1});var dun;w(ac,"Number",242),b(222,242,{3:1,222:1,34:1,242:1},u9n),o.Fd=function(e){return ahe(this,u(e,222))},o.ue=function(){return this.a},o.Fb=function(e){return L(e,222)&&u(e,222).a==this.a},o.Hb=function(){return this.a},o.Ib=function(){return""+this.a},o.a=0;var p3=w(ac,"Byte",222),bun;b(180,1,{3:1,180:1,34:1},yG),o.Fd=function(e){return dhe(this,u(e,180))},o.Fb=function(e){return L(e,180)&&u(e,180).a==this.a},o.Hb=function(){return this.a},o.Ib=function(){return String.fromCharCode(this.a)},o.a=0;var wun,S8=w(ac,"Character",180),gun;b(212,63,{3:1,212:1,103:1,63:1,82:1},Dyn,i4),w(ac,"ClassCastException",212),tQn={3:1,34:1,345:1,242:1};var si=w(ac,"Double",345);b(161,242,{3:1,34:1,161:1,242:1},z9,qG),o.Fd=function(e){return Sle(this,u(e,161))},o.ue=function(){return this.a},o.Fb=function(e){return L(e,161)&&nPn(this.a,u(e,161).a)},o.Hb=function(){return wi(this.a)},o.Ib=function(){return""+this.a},o.a=0;var sv=w(ac,"Float",161);b(33,63,{3:1,103:1,33:1,63:1,82:1},W9,Gn,DRn),w(ac,"IllegalArgumentException",33),b(73,63,Il,Mu,Ar),w(ac,"IllegalStateException",73),b(17,242,{3:1,34:1,17:1,242:1},mG),o.Fd=function(e){return yX(this,u(e,17))},o.ue=function(){return this.a},o.Fb=function(e){return L(e,17)&&u(e,17).a==this.a},o.Hb=function(){return this.a},o.Ib=function(){return""+this.a},o.a=0;var Gi=w(ac,"Integer",17),pun,wQn;b(168,242,{3:1,34:1,168:1,242:1},vG),o.Fd=function(e){return Cle(this,u(e,168))},o.ue=function(){return id(this.a)},o.Fb=function(e){return L(e,168)&&ob(u(e,168).a,this.a)},o.Hb=function(){return Tae(this.a)},o.Ib=function(){return""+_6(this.a)},o.a=0;var t0=w(ac,"Long",168),mun;b(2140,1,{}),b(1904,63,Il,Bjn),w(ac,"NegativeArraySizeException",1904),b(169,607,{3:1,103:1,169:1,63:1,82:1},rp,fp),o.ee=function(e){return new TypeError(e)},w(ac,"NullPointerException",169);var vun,WF,gQn,kun;b(130,33,{3:1,103:1,33:1,130:1,63:1,82:1},th),w(ac,"NumberFormatException",130),b(191,242,{3:1,34:1,242:1,191:1},kG),o.Fd=function(e){return bhe(this,u(e,191))},o.ue=function(){return this.a},o.Fb=function(e){return L(e,191)&&u(e,191).a==this.a},o.Hb=function(){return this.a},o.Ib=function(){return""+this.a},o.a=0;var i0=w(ac,"Short",191),yun;b(319,1,{3:1,319:1},yD),o.Fb=function(e){var t;return L(e,319)?(t=u(e,319),this.c==t.c&&this.d==t.d&&this.a==t.a&&this.b==t.b):!1},o.Hb=function(){return Ok(S(C(ki,1),Kn,1,5,[Y(this.c),this.a,this.d,this.b]))},o.Ib=function(){return this.a+"."+this.d+"("+(this.b!=null?this.b:"Unknown Source")+(this.c>=0?":"+this.c:"")+")"},o.c=0;var jun=w(ac,"StackTraceElement",319);iQn={3:1,484:1,34:1,2:1};var fn=w(ac,ptn,2);b(111,427,{484:1},Hl,i6,ls),w(ac,"StringBuffer",111),b(104,427,{484:1},x1,fg,mo),w(ac,"StringBuilder",104),b(702,77,SK,wz),w(ac,"StringIndexOutOfBoundsException",702),b(2145,1,{});var pQn;b(48,63,{3:1,103:1,63:1,82:1,48:1},Ie,Fl),w(ac,"UnsupportedOperationException",48),b(247,242,{3:1,34:1,242:1,247:1},Dk,Cz),o.Fd=function(e){return RUn(this,u(e,247))},o.ue=function(){return sw(lGn(this))},o.Fb=function(e){var t;return this===e?!0:L(e,247)?(t=u(e,247),this.e==t.e&&RUn(this,t)==0):!1},o.Hb=function(){var e;return this.b!=0?this.b:this.a<54?(e=vc(this.f),this.b=Se(vi(e,-1)),this.b=33*this.b+Se(vi(wb(e,32),-1)),this.b=17*this.b+wi(this.e),this.b):(this.b=17*JRn(this.c)+wi(this.e),this.b)},o.Ib=function(){return lGn(this)},o.a=0,o.b=0,o.d=0,o.e=0,o.f=0;var mQn,Od,Eun,Mun,Tun,Cun,Sun,Pun,JF=w("java.math","BigDecimal",247);b(92,242,{3:1,34:1,242:1,92:1},gl,HAn,Ya,QKn,H1),o.Fd=function(e){return XKn(this,u(e,92))},o.ue=function(){return sw(ZR(this,0))},o.Fb=function(e){return FY(this,e)},o.Hb=function(){return JRn(this)},o.Ib=function(){return ZR(this,0)},o.b=-2,o.c=0,o.d=0,o.e=0;var vQn,sI,kQn,QF,fI,P8,l2=w("java.math","BigInteger",92),yQn,jQn,m3,I8;b(498,2065,Xb),o.$b=function(){Hu(this)},o._b=function(e){return Zc(this,e)},o.uc=function(e){return ARn(this,e,this.i)||ARn(this,e,this.f)},o.vc=function(){return new Ua(this)},o.xc=function(e){return ee(this,e)},o.zc=function(e,t){return Ve(this,e,t)},o.Bc=function(e){return Kp(this,e)},o.gc=function(){return c6(this)},o.g=0,w(le,"AbstractHashMap",498),b(267,Ff,Nu,Ua),o.$b=function(){this.a.$b()},o.Hc=function(e){return mLn(this,e)},o.Kc=function(){return new sd(this.a)},o.Mc=function(e){var t;return mLn(this,e)?(t=u(e,44).ld(),this.a.Bc(t),!0):!1},o.gc=function(){return this.a.gc()},w(le,"AbstractHashMap/EntrySet",267),b(268,1,Pi,sd),o.Nb=function(e){_i(this,e)},o.Pb=function(){return Nb(this)},o.Ob=function(){return this.b},o.Qb=function(){XDn(this)},o.b=!1,o.d=0,w(le,"AbstractHashMap/EntrySetIterator",268),b(426,1,Pi,zv),o.Nb=function(e){_i(this,e)},o.Ob=function(){return LL(this)},o.Pb=function(){return XW(this)},o.Qb=function(){bo(this)},o.b=0,o.c=-1,w(le,"AbstractList/IteratorImpl",426),b(98,426,Hh,xi),o.Qb=function(){bo(this)},o.Rb=function(e){B0(this,e)},o.Sb=function(){return this.b>0},o.Tb=function(){return this.b},o.Ub=function(){return oe(this.b>0),this.a.Xb(this.c=--this.b)},o.Vb=function(){return this.b-1},o.Wb=function(e){R0(this.c!=-1),this.a.hd(this.c,e)},w(le,"AbstractList/ListIteratorImpl",98),b(244,56,Bm,Jl),o.bd=function(e,t){z0(e,this.b),this.c.bd(this.a+e,t),++this.b},o.Xb=function(e){return Nn(e,this.b),this.c.Xb(this.a+e)},o.gd=function(e){var t;return Nn(e,this.b),t=this.c.gd(this.a+e),--this.b,t},o.hd=function(e,t){return Nn(e,this.b),this.c.hd(this.a+e,t)},o.gc=function(){return this.b},o.a=0,o.b=0,w(le,"AbstractList/SubList",244),b(266,Ff,Nu,qa),o.$b=function(){this.a.$b()},o.Hc=function(e){return this.a._b(e)},o.Kc=function(){var e;return e=this.a.vc().Kc(),new IE(e)},o.Mc=function(e){return this.a._b(e)?(this.a.Bc(e),!0):!1},o.gc=function(){return this.a.gc()},w(le,"AbstractMap/1",266),b(541,1,Pi,IE),o.Nb=function(e){_i(this,e)},o.Ob=function(){return this.a.Ob()},o.Pb=function(){var e;return e=u(this.a.Pb(),44),e.ld()},o.Qb=function(){this.a.Qb()},w(le,"AbstractMap/1/1",541),b(231,31,pw,ol),o.$b=function(){this.a.$b()},o.Hc=function(e){return this.a.uc(e)},o.Kc=function(){var e;return e=this.a.vc().Kc(),new P0(e)},o.gc=function(){return this.a.gc()},w(le,"AbstractMap/2",231),b(301,1,Pi,P0),o.Nb=function(e){_i(this,e)},o.Ob=function(){return this.a.Ob()},o.Pb=function(){var e;return e=u(this.a.Pb(),44),e.md()},o.Qb=function(){this.a.Qb()},w(le,"AbstractMap/2/1",301),b(494,1,{494:1,44:1}),o.Fb=function(e){var t;return L(e,44)?(t=u(e,44),mc(this.d,t.ld())&&mc(this.e,t.md())):!1},o.ld=function(){return this.d},o.md=function(){return this.e},o.Hb=function(){return yg(this.d)^yg(this.e)},o.nd=function(e){return bV(this,e)},o.Ib=function(){return this.d+"="+this.e},w(le,"AbstractMap/AbstractEntry",494),b(397,494,{494:1,397:1,44:1},oM),w(le,"AbstractMap/SimpleEntry",397),b(2082,1,OK),o.Fb=function(e){var t;return L(e,44)?(t=u(e,44),mc(this.ld(),t.ld())&&mc(this.md(),t.md())):!1},o.Hb=function(){return yg(this.ld())^yg(this.md())},o.Ib=function(){return this.ld()+"="+this.md()},w(le,Ozn,2082),b(2090,2065,btn),o.Xc=function(e){return TL(this.Ee(e))},o.tc=function(e){return MNn(this,e)},o._b=function(e){return wV(this,e)},o.vc=function(){return new ZA(this)},o.Tc=function(){return KIn(this.Ge())},o.Yc=function(e){return TL(this.He(e))},o.xc=function(e){var t;return t=e,Fr(this.Fe(t))},o.$c=function(e){return TL(this.Ie(e))},o.ec=function(){return new o9n(this)},o.Vc=function(){return KIn(this.Je())},o._c=function(e){return TL(this.Ke(e))},w(le,"AbstractNavigableMap",2090),b(629,Ff,Nu,ZA),o.Hc=function(e){return L(e,44)&&MNn(this.b,u(e,44))},o.Kc=function(){return this.b.De()},o.Mc=function(e){var t;return L(e,44)?(t=u(e,44),this.b.Le(t)):!1},o.gc=function(){return this.b.gc()},w(le,"AbstractNavigableMap/EntrySet",629),b(1146,Ff,wtn,o9n),o.Nc=function(){return new cM(this)},o.$b=function(){this.a.$b()},o.Hc=function(e){return wV(this.a,e)},o.Kc=function(){var e;return e=this.a.vc().b.De(),new s9n(e)},o.Mc=function(e){return wV(this.a,e)?(this.a.Bc(e),!0):!1},o.gc=function(){return this.a.gc()},w(le,"AbstractNavigableMap/NavigableKeySet",1146),b(1147,1,Pi,s9n),o.Nb=function(e){_i(this,e)},o.Ob=function(){return LL(this.a.a)},o.Pb=function(){var e;return e=oSn(this.a),e.ld()},o.Qb=function(){dPn(this.a)},w(le,"AbstractNavigableMap/NavigableKeySet/1",1147),b(2103,31,pw),o.Fc=function(e){return Tp(ym(this,e),_m),!0},o.Gc=function(e){return Jn(e),x7(e!=this,"Can't add a queue to itself"),Ki(this,e)},o.$b=function(){for(;w$(this)!=null;);},w(le,"AbstractQueue",2103),b(310,31,{4:1,20:1,31:1,16:1},Mg,dLn),o.Fc=function(e){return vJ(this,e),!0},o.$b=function(){TJ(this)},o.Hc=function(e){return Zxn(new V6(this),e)},o.dc=function(){return t6(this)},o.Kc=function(){return new V6(this)},o.Mc=function(e){return p2e(new V6(this),e)},o.gc=function(){return this.c-this.b&this.a.length-1},o.Nc=function(){return new On(this,272)},o.Qc=function(e){var t;return t=this.c-this.b&this.a.length-1,e.length<t&&(e=qE(new Array(t),e)),axn(this,e,t),e.length>t&&$t(e,t,null),e},o.b=0,o.c=0,w(le,"ArrayDeque",310),b(459,1,Pi,V6),o.Nb=function(e){_i(this,e)},o.Ob=function(){return this.a!=this.b},o.Pb=function(){return xC(this)},o.Qb=function(){W$n(this)},o.a=0,o.b=0,o.c=-1,w(le,"ArrayDeque/IteratorImpl",459),b(13,56,Gzn,Z,Gc,_u),o.bd=function(e,t){bb(this,e,t)},o.Fc=function(e){return nn(this,e)},o.cd=function(e,t){return aY(this,e,t)},o.Gc=function(e){return hi(this,e)},o.$b=function(){I0(this.c,0)},o.Hc=function(e){return qr(this,e,0)!=-1},o.Jc=function(e){nu(this,e)},o.Xb=function(e){return sn(this,e)},o.dd=function(e){return qr(this,e,0)},o.dc=function(){return this.c.length==0},o.Kc=function(){return new M(this)},o.gd=function(e){return Yl(this,e)},o.Mc=function(e){return du(this,e)},o.ce=function(e,t){xAn(this,e,t)},o.hd=function(e,t){return Go(this,e,t)},o.gc=function(){return this.c.length},o.jd=function(e){Yt(this,e)},o.Pc=function(){return ZM(this.c)},o.Qc=function(e){return Rf(this,e)};var uDe=w(le,"ArrayList",13);b(7,1,Pi,M),o.Nb=function(e){_i(this,e)},o.Ob=function(){return tc(this)},o.Pb=function(){return E(this)},o.Qb=function(){q6(this)},o.a=0,o.b=-1,w(le,"ArrayList/1",7),b(2112,y.Function,{},mE),o.Me=function(e,t){return bt(e,t)},b(151,56,zzn,Fu),o.Hc=function(e){return J$n(this,e)!=-1},o.Jc=function(e){var t,i,r,c;for(Jn(e),i=this.a,r=0,c=i.length;r<c;++r)t=i[r],e.Cd(t)},o.Xb=function(e){return YPn(this,e)},o.hd=function(e,t){var i;return i=(Nn(e,this.a.length),this.a[e]),$t(this.a,e,t),i},o.gc=function(){return this.a.length},o.jd=function(e){QN(this.a,this.a.length,e)},o.Pc=function(){return oBn(this,F(ki,Kn,1,this.a.length,5,1))},o.Qc=function(e){return oBn(this,e)},w(le,"Arrays/ArrayList",151);var sr,Wh,hI;b(953,56,zzn,Sbn),o.Hc=function(e){return!1},o.Xb=function(e){return mX(e)},o.Kc=function(){return Ln(),l4(),fv},o.ed=function(){return Ln(),l4(),fv},o.gc=function(){return 0},w(le,"Collections/EmptyList",953),b(954,1,Hh,Pbn),o.Nb=function(e){_i(this,e)},o.Rb=function(e){throw T(new Ie)},o.Ob=function(){return!1},o.Sb=function(){return!1},o.Pb=function(){throw T(new nc)},o.Tb=function(){return 0},o.Ub=function(){throw T(new nc)},o.Vb=function(){return-1},o.Qb=function(){throw T(new Mu)},o.Wb=function(e){throw T(new Mu)};var fv;w(le,"Collections/EmptyListIterator",954),b(956,2065,Km,Ibn),o._b=function(e){return!1},o.uc=function(e){return!1},o.vc=function(){return Ln(),hI},o.xc=function(e){return null},o.ec=function(){return Ln(),hI},o.gc=function(){return 0},o.Cc=function(){return Ln(),sr},w(le,"Collections/EmptyMap",956),b(955,Ff,r3,Obn),o.Hc=function(e){return!1},o.Kc=function(){return Ln(),l4(),fv},o.gc=function(){return 0},w(le,"Collections/EmptySet",955),b(608,56,{3:1,20:1,31:1,56:1,16:1,15:1},nL),o.Hc=function(e){return mc(this.a,e)},o.Xb=function(e){return Nn(e,1),this.a},o.gc=function(){return 1},w(le,"Collections/SingletonList",608),b(384,1,Nzn,Q3),o.Jc=function(e){qi(this,e)},o.Lc=function(){return new Cn(null,this.Nc())},o.Nc=function(){return new On(this,0)},o.Oc=function(){return new Cn(null,this.Nc())},o.Fc=function(e){return fEn()},o.Gc=function(e){return hEn()},o.$b=function(){lEn()},o.Hc=function(e){return t7(this,e)},o.Ic=function(e){return YEn(this,e)},o.dc=function(){return this.b.dc()},o.Kc=function(){return new J3(this.b.Kc())},o.Mc=function(e){return aEn()},o.gc=function(){return this.b.gc()},o.Pc=function(){return this.b.Pc()},o.Qc=function(e){return ZEn(this,e)},o.Ib=function(){return Jr(this.b)},w(le,"Collections/UnmodifiableCollection",384),b(383,1,Pi,J3),o.Nb=function(e){_i(this,e)},o.Ob=function(){return this.b.Ob()},o.Pb=function(){return this.b.Pb()},o.Qb=function(){dEn()},w(le,"Collections/UnmodifiableCollectionIterator",383),b(540,384,Xzn,KM),o.Nc=function(){return new On(this,16)},o.bd=function(e,t){throw T(new Ie)},o.cd=function(e,t){throw T(new Ie)},o.Fb=function(e){return rt(this.a,e)},o.Xb=function(e){return this.a.Xb(e)},o.Hb=function(){return mt(this.a)},o.dd=function(e){return this.a.dd(e)},o.dc=function(){return this.a.dc()},o.ed=function(){return new GX(this.a.fd(0))},o.fd=function(e){return new GX(this.a.fd(e))},o.gd=function(e){throw T(new Ie)},o.hd=function(e,t){throw T(new Ie)},o.jd=function(e){throw T(new Ie)},o.kd=function(e,t){return new KM(this.a.kd(e,t))},w(le,"Collections/UnmodifiableList",540),b(705,383,Hh,GX),o.Qb=function(){dEn()},o.Rb=function(e){throw T(new Ie)},o.Sb=function(){return this.a.Sb()},o.Tb=function(){return this.a.Tb()},o.Ub=function(){return this.a.Ub()},o.Vb=function(){return this.a.Vb()},o.Wb=function(e){throw T(new Ie)},w(le,"Collections/UnmodifiableListIterator",705),b(609,1,Xb,eL),o.wc=function(e){f5(this,e)},o.yc=function(e,t,i){return hx(this,e,t,i)},o.$b=function(){throw T(new Ie)},o._b=function(e){return this.c._b(e)},o.uc=function(e){return eMn(this,e)},o.vc=function(){return P4(this)},o.Fb=function(e){return tMn(this,e)},o.xc=function(e){return this.c.xc(e)},o.Hb=function(){return mt(this.c)},o.dc=function(){return this.c.dc()},o.ec=function(){return pOn(this)},o.zc=function(e,t){throw T(new Ie)},o.Bc=function(e){throw T(new Ie)},o.gc=function(){return this.c.gc()},o.Ib=function(){return Jr(this.c)},o.Cc=function(){return gOn(this)},w(le,"Collections/UnmodifiableMap",609),b(396,384,rK,r4),o.Nc=function(){return new On(this,1)},o.Fb=function(e){return rt(this.b,e)},o.Hb=function(){return mt(this.b)},w(le,"Collections/UnmodifiableSet",396),b(957,396,rK,qjn),o.Hc=function(e){return nMn(this,e)},o.Ic=function(e){return this.b.Ic(e)},o.Kc=function(){var e;return e=this.b.Kc(),new f9n(e)},o.Pc=function(){var e;return e=this.b.Pc(),WLn(e,e.length),e},o.Qc=function(e){return eAn(this,e)},w(le,"Collections/UnmodifiableMap/UnmodifiableEntrySet",957),b(958,1,Pi,f9n),o.Nb=function(e){_i(this,e)},o.Pb=function(){return new jG(u(this.a.Pb(),44))},o.Ob=function(){return this.a.Ob()},o.Qb=function(){throw T(new Ie)},w(le,"Collections/UnmodifiableMap/UnmodifiableEntrySet/1",958),b(703,1,OK,jG),o.Fb=function(e){return this.a.Fb(e)},o.ld=function(){return this.a.ld()},o.md=function(){return this.a.md()},o.Hb=function(){return this.a.Hb()},o.nd=function(e){throw T(new Ie)},o.Ib=function(){return Jr(this.a)},w(le,"Collections/UnmodifiableMap/UnmodifiableEntrySet/UnmodifiableEntry",703),b(610,540,{20:1,16:1,15:1,59:1},jL),w(le,"Collections/UnmodifiableRandomAccessList",610),b(704,396,Dzn,zX),o.Nc=function(){return new cM(this)},o.Fb=function(e){return rt(this.a,e)},o.Hb=function(){return mt(this.a)},w(le,"Collections/UnmodifiableSortedSet",704),b(858,1,AK,Abn),o.Ne=function(e,t){var i;return i=XLn(u(e,12),u(t,12)),i!=0?i:CUn(u(e,12),u(t,12))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(le,"Comparator/lambda$0$Type",858);var Iun,YF,Oun;b(769,1,AK,xU),o.Ne=function(e,t){return x0e(u(e,34),u(t,34))},o.Fb=function(e){return this===e},o.Oe=function(){return jb(),Oun},w(le,"Comparators/NaturalOrderComparator",769),b(1226,1,AK,Lbn),o.Ne=function(e,t){return $0e(u(e,34),u(t,34))},o.Fb=function(e){return this===e},o.Oe=function(){return jb(),YF},w(le,"Comparators/ReverseNaturalOrderComparator",1226),b(52,1,AK,Ce),o.Fb=function(e){return this===e},o.Ne=function(e,t){return this.a.Ne(t,e)},o.Oe=function(){return this.a},w(le,"Comparators/ReversedComparator",52),b(175,63,Il,Ko),w(le,"ConcurrentModificationException",175);var EQn,MQn;b(1948,1,Iy,Nbn),o.Pe=function(e){OKn(this,e)},o.Ib=function(){return"DoubleSummaryStatistics[count = "+_6(this.a)+", avg = "+(NL(this.a,0)?BJ(this)/id(this.a):0)+", min = "+this.c+", max = "+this.b+", sum = "+BJ(this)+"]"},o.a=0,o.b=li,o.c=Pt,o.d=0,o.e=0,o.f=0,w(le,"DoubleSummaryStatistics",1948),b(1868,63,Il,$yn),w(le,"EmptyStackException",1868),b(461,2065,Xb,y5),o.zc=function(e,t){return gV(this,e,t)},o.$b=function(){rOn(this)},o._b=function(e){return vMn(this,e)},o.uc=function(e){var t,i;for(i=new dp(this.a);i.a<i.c.a.length;)if(t=n5(i),mc(e,this.b[t.g]))return!0;return!1},o.vc=function(){return new l9n(this)},o.xc=function(e){return Mr(this,e)},o.Bc=function(e){return hJ(this,e)},o.gc=function(){return this.a.c},w(le,"EnumMap",461),b(1340,Ff,Nu,l9n),o.$b=function(){rOn(this.a)},o.Hc=function(e){return vLn(this,e)},o.Kc=function(){return new iIn(this.a)},o.Mc=function(e){var t;return vLn(this,e)?(t=u(e,44).ld(),hJ(this.a,t),!0):!1},o.gc=function(){return this.a.a.c},w(le,"EnumMap/EntrySet",1340),b(1341,1,Pi,iIn),o.Nb=function(e){_i(this,e)},o.Pb=function(){return this.b=n5(this.a),new yMn(this.c,this.b)},o.Ob=function(){return IX(this.a)},o.Qb=function(){R0(!!this.b),hJ(this.c,this.b),this.b=null},w(le,"EnumMap/EntrySetIterator",1341),b(1342,2082,OK,yMn),o.ld=function(){return this.a},o.md=function(){return this.b.b[this.a.g]},o.nd=function(e){return ZV(this.b.b,this.a.g,e)},w(le,"EnumMap/MapEntry",1342),b(181,Ff,{20:1,31:1,16:1,181:1,21:1});var TQn=w(le,"EnumSet",181);b(162,181,{20:1,31:1,16:1,181:1,162:1,21:1},_o),o.Fc=function(e){return _s(this,u(e,22))},o.Hc=function(e){return JN(this,e)},o.Kc=function(){return new dp(this)},o.Mc=function(e){return aIn(this,e)},o.gc=function(){return this.c},o.c=0,w(le,"EnumSet/EnumSetImpl",162),b(356,1,Pi,dp),o.Nb=function(e){_i(this,e)},o.Pb=function(){return n5(this)},o.Ob=function(){return IX(this)},o.Qb=function(){R0(this.b!=-1),$t(this.c.b,this.b,null),--this.c.c,this.b=-1},o.a=-1,o.b=-1,w(le,"EnumSet/EnumSetImpl/IteratorImpl",356),b(45,498,n2,de,ap,BTn),o.Be=function(e,t){return x(e)===x(t)||e!=null&&rt(e,t)},o.Ce=function(e){var t;return e==null?0:(t=mt(e),t|0)},w(le,"HashMap",45),b(49,Ff,jtn,ni,zE,R6),o.Fc=function(e){return fi(this,e)},o.$b=function(){this.a.$b()},o.Hc=function(e){return sf(this,e)},o.dc=function(){return this.a.gc()==0},o.Kc=function(){return this.a.ec().Kc()},o.Mc=function(e){return DX(this,e)},o.gc=function(){return this.a.gc()};var oDe=w(le,"HashSet",49);b(1897,1,jy,Dbn),o.Dd=function(e){Fxn(this,e)},o.Ib=function(){return"IntSummaryStatistics[count = "+_6(this.a)+", avg = "+(NL(this.a,0)?id(this.d)/id(this.a):0)+", min = "+this.c+", max = "+this.b+", sum = "+_6(this.d)+"]"},o.a=0,o.b=Wi,o.c=et,o.d=0,w(le,"IntSummaryStatistics",1897),b(1062,1,qh,iCn),o.Jc=function(e){qi(this,e)},o.Kc=function(){return new VJ(this)},o.c=0,w(le,"InternalHashCodeMap",1062),b(726,1,Pi,VJ),o.Nb=function(e){_i(this,e)},o.Pb=function(){return this.d=this.a[this.c++],this.d},o.Ob=function(){var e;return this.c<this.a.length?!0:(e=this.b.next(),e.done?!1:(this.a=e.value[1],this.c=0,!0))},o.Qb=function(){_nn(this.e,this.d.ld()),this.c!=0&&--this.c},o.c=0,o.d=null,w(le,"InternalHashCodeMap/1",726);var CQn;b(1060,1,qh,rCn),o.Jc=function(e){qi(this,e)},o.Kc=function(){return new CJ(this)},o.c=0,o.d=0,w(le,"InternalStringMap",1060),b(725,1,Pi,CJ),o.Nb=function(e){_i(this,e)},o.Pb=function(){return this.c=this.a,this.a=this.b.next(),new hPn(this.d,this.c,this.d.d)},o.Ob=function(){return!this.a.done},o.Qb=function(){Gxn(this.d,this.c.value[0])},w(le,"InternalStringMap/1",725),b(1061,2082,OK,hPn),o.ld=function(){return this.b.value[0]},o.md=function(){return this.a.d!=this.c?a6(this.a,this.b.value[0]):this.b.value[1]},o.nd=function(e){return $b(this.a,this.b.value[0],e)},o.c=0,w(le,"InternalStringMap/2",1061),b(215,45,n2,Ql,XJ),o.$b=function(){xSn(this)},o._b=function(e){return kMn(this,e)},o.uc=function(e){var t;for(t=this.d.a;t!=this.d;){if(mc(t.e,e))return!0;t=t.a}return!1},o.vc=function(){return new PG(this)},o.xc=function(e){return Df(this,e)},o.zc=function(e,t){return s1(this,e,t)},o.Bc=function(e){return UDn(this,e)},o.gc=function(){return c6(this.e)},o.c=!1,w(le,"LinkedHashMap",215),b(400,397,{494:1,397:1,400:1,44:1},cSn,qV),w(le,"LinkedHashMap/ChainEntry",400),b(715,Ff,Nu,PG),o.$b=function(){xSn(this.a)},o.Hc=function(e){return kLn(this,e)},o.Kc=function(){return new $W(this)},o.Mc=function(e){var t;return kLn(this,e)?(t=u(e,44).ld(),UDn(this.a,t),!0):!1},o.gc=function(){return c6(this.a.e)},w(le,"LinkedHashMap/EntrySet",715),b(716,1,Pi,$W),o.Nb=function(e){_i(this,e)},o.Pb=function(){return WDn(this)},o.Ob=function(){return this.c!=this.d.a.d},o.Qb=function(){R0(!!this.a),RN(this.d.a.e.g,this.b),eW(this.a),Kp(this.d.a.e,this.a.d),this.b=this.d.a.e.g,this.a=null},o.b=0,w(le,"LinkedHashMap/EntrySet/EntryIterator",716),b(174,49,jtn,rh,MN,sW);var sDe=w(le,"LinkedHashSet",174);b(67,2062,{3:1,4:1,20:1,31:1,56:1,16:1,67:1,15:1},Mt,$N),o.Fc=function(e){return Re(this,e)},o.$b=function(){vo(this)},o.fd=function(e){return ge(this,e)},o.gc=function(){return this.b},o.b=0;var fDe=w(le,"LinkedList",67);b(981,1,Hh,lPn),o.Nb=function(e){_i(this,e)},o.Rb=function(e){_7(this,e)},o.Ob=function(){return Q9(this)},o.Sb=function(){return this.b.b!=this.d.a},o.Pb=function(){return be(this)},o.Tb=function(){return this.a},o.Ub=function(){return wLn(this)},o.Vb=function(){return this.a-1},o.Qb=function(){p$(this)},o.Wb=function(e){R0(!!this.c),this.c.c=e},o.a=0,o.c=null,w(le,"LinkedList/ListIteratorImpl",981),b(617,1,{},AA),w(le,"LinkedList/Node",617),b(2057,1,{});var Aun,SQn;w(le,"Locale",2057),b(873,2057,{},$bn),o.Ib=function(){return""},w(le,"Locale/1",873),b(874,2057,{},xbn),o.Ib=function(){return"unknown"},w(le,"Locale/4",874),b(112,63,{3:1,103:1,63:1,82:1,112:1},nc,IOn),w(le,"NoSuchElementException",112),b(475,1,{475:1},wL),o.Fb=function(e){var t;return e===this?!0:L(e,475)?(t=u(e,475),mc(this.a,t.a)):!1},o.Hb=function(){return yg(this.a)},o.Ib=function(){return this.a!=null?Pzn+A6(this.a)+")":"Optional.empty()"};var Lun;w(le,"Optional",475),b(414,1,{414:1},qTn,SN),o.Fb=function(e){var t;return e===this?!0:L(e,414)?(t=u(e,414),this.a==t.a&&bt(this.b,t.b)==0):!1},o.Hb=function(){return this.a?wi(this.b):0},o.Ib=function(){return this.a?"OptionalDouble.of("+(""+this.b)+")":"OptionalDouble.empty()"},o.a=!1,o.b=0;var ZF;w(le,"OptionalDouble",414),b(524,1,{524:1},UTn,uSn),o.Fb=function(e){var t;return e===this?!0:L(e,524)?(t=u(e,524),this.a==t.a&&jc(this.b,t.b)==0):!1},o.Hb=function(){return this.a?this.b:0},o.Ib=function(){return this.a?"OptionalInt.of("+(""+this.b)+")":"OptionalInt.empty()"},o.a=!1,o.b=0;var PQn;w(le,"OptionalInt",524),b(510,2103,pw,dT),o.Gc=function(e){return EZ(this,e)},o.$b=function(){I0(this.b.c,0)},o.Hc=function(e){return(e==null?-1:qr(this.b,e,0))!=-1},o.Kc=function(){return new h9n(this)},o.Mc=function(e){return lxn(this,e)},o.gc=function(){return this.b.c.length},o.Nc=function(){return new On(this,256)},o.Pc=function(){return ZM(this.b.c)},o.Qc=function(e){return Rf(this.b,e)},w(le,"PriorityQueue",510),b(1296,1,Pi,h9n),o.Nb=function(e){_i(this,e)},o.Ob=function(){return this.a<this.c.b.c.length},o.Pb=function(){return oe(this.a<this.c.b.c.length),this.b=this.a++,sn(this.c.b,this.b)},o.Qb=function(){R0(this.b!=-1),T$(this.c,this.a=this.b),this.b=-1},o.a=0,o.b=-1,w(le,"PriorityQueue/1",1296),b(234,1,{234:1},dx,qT),o.a=0,o.b=0;var Nun,Dun,hDe=0;w(le,"Random",234),b(25,1,Io,On,pb,SOn),o.Ad=function(e){return(this.a&e)!=0},o.yd=function(){return this.a},o.zd=function(){return vW(this),this.c},o.Nb=function(e){vW(this),this.d.Nb(e)},o.Bd=function(e){return y$n(this,e)},o.a=0,o.c=0,w(le,"Spliterators/IteratorSpliterator",25),b(495,25,Io,cM),w(le,"SortedSet/1",495),b(611,1,Iy,TG),o.Pe=function(e){this.a.Cd(e)},w(le,"Spliterator/OfDouble/0methodref$accept$Type",611),b(612,1,Iy,MG),o.Pe=function(e){this.a.Cd(e)},w(le,"Spliterator/OfDouble/1methodref$accept$Type",612),b(613,1,jy,CG),o.Dd=function(e){this.a.Cd(Y(e))},w(le,"Spliterator/OfInt/2methodref$accept$Type",613),b(614,1,jy,SG),o.Dd=function(e){this.a.Cd(Y(e))},w(le,"Spliterator/OfInt/3methodref$accept$Type",614),b(625,1,Io),o.Nb=function(e){Tz(this,e)},o.Ad=function(e){return(this.d&e)!=0},o.yd=function(){return this.d},o.zd=function(){return this.e},o.d=0,o.e=0,w(le,"Spliterators/BaseSpliterator",625),b(736,625,Io),o.Qe=function(e){lg(this,e)},o.Nb=function(e){L(e,189)?lg(this,u(e,189)):lg(this,new MG(e))},o.Bd=function(e){return L(e,189)?this.Re(u(e,189)):this.Re(new TG(e))},w(le,"Spliterators/AbstractDoubleSpliterator",736),b(735,625,Io),o.Qe=function(e){lg(this,e)},o.Nb=function(e){L(e,202)?lg(this,u(e,202)):lg(this,new SG(e))},o.Bd=function(e){return L(e,202)?this.Re(u(e,202)):this.Re(new CG(e))},w(le,"Spliterators/AbstractIntSpliterator",735),b(500,625,Io),w(le,"Spliterators/AbstractSpliterator",500),b(706,1,Io),o.Nb=function(e){Tz(this,e)},o.Ad=function(e){return(this.b&e)!=0},o.yd=function(){return this.b},o.zd=function(){return this.d-this.c},o.b=0,o.c=0,o.d=0,w(le,"Spliterators/BaseArraySpliterator",706),b(960,706,Io,XPn),o.Se=function(e,t){phe(this,u(e,41),t)},o.Nb=function(e){gD(this,e)},o.Bd=function(e){return WT(this,e)},w(le,"Spliterators/ArraySpliterator",960),b(707,706,Io,oPn),o.Se=function(e,t){mhe(this,u(e,189),t)},o.Qe=function(e){gD(this,e)},o.Nb=function(e){L(e,189)?gD(this,u(e,189)):gD(this,new MG(e))},o.Re=function(e){return WT(this,e)},o.Bd=function(e){return L(e,189)?WT(this,u(e,189)):WT(this,new TG(e))},w(le,"Spliterators/DoubleArraySpliterator",707),b(2066,1,Io),o.Nb=function(e){Tz(this,e)},o.Ad=function(e){return(16448&e)!=0},o.yd=function(){return 16448},o.zd=function(){return 0};var IQn;w(le,"Spliterators/EmptySpliterator",2066),b(959,2066,Io,Rbn),o.Qe=function(e){oG(e)},o.Nb=function(e){L(e,202)?oG(u(e,202)):oG(new SG(e))},o.Re=function(e){return Bz(e)},o.Bd=function(e){return L(e,202)?Bz(u(e,202)):Bz(new CG(e))},w(le,"Spliterators/EmptySpliterator/OfInt",959),b(588,56,Vzn,KE),o.bd=function(e,t){E4(e,this.a.c.length+1),bb(this.a,e,t)},o.Fc=function(e){return nn(this.a,e)},o.cd=function(e,t){return E4(e,this.a.c.length+1),aY(this.a,e,t)},o.Gc=function(e){return hi(this.a,e)},o.$b=function(){I0(this.a.c,0)},o.Hc=function(e){return qr(this.a,e,0)!=-1},o.Ic=function(e){return Ek(this.a,e)},o.Jc=function(e){nu(this.a,e)},o.Xb=function(e){return E4(e,this.a.c.length),sn(this.a,e)},o.dd=function(e){return qr(this.a,e,0)},o.dc=function(){return this.a.c.length==0},o.Kc=function(){return new M(this.a)},o.gd=function(e){return E4(e,this.a.c.length),Yl(this.a,e)},o.ce=function(e,t){xAn(this.a,e,t)},o.hd=function(e,t){return E4(e,this.a.c.length),Go(this.a,e,t)},o.gc=function(){return this.a.c.length},o.jd=function(e){Yt(this.a,e)},o.kd=function(e,t){return new Jl(this.a,e,t)},o.Pc=function(){return ZM(this.a.c)},o.Qc=function(e){return Rf(this.a,e)},o.Ib=function(){return ca(this.a)},w(le,"Vector",588),b(824,588,Vzn,YG),w(le,"Stack",824),b(213,1,{213:1},fd),o.Ib=function(){return bLn(this)},w(le,"StringJoiner",213),b(553,2090,{3:1,85:1,139:1,133:1},rMn,iD),o.$b=function(){$jn(this)},o.De=function(){return new yLn(this)},o.vc=function(){return new ZCn(this)},o.Ee=function(e){return bm(this,e,!0)},o.Fe=function(e){return CRn(this,e)},o.Ge=function(){return nQ(this)},o.He=function(e){return Fk(this,e,!0)},o.Ie=function(e){return bm(this,e,!1)},o.Je=function(){return DDn(this)},o.Ke=function(e){return Fk(this,e,!1)},o.Zc=function(e,t){return RAn(this,e,t)},o.zc=function(e,t){return gRn(this,e,t)},o.Bc=function(e){return uAn(this,e)},o.Le=function(e){return UJ(this,e)},o.gc=function(){return this.c},o.ad=function(e,t){return KAn(this,e,t)},o.c=0,w(le,"TreeMap",553),b(554,1,Pi,yLn,I$),o.Nb=function(e){_i(this,e)},o.Pb=function(){return oSn(this)},o.Ob=function(){return LL(this.a)},o.Qb=function(){dPn(this)},w(le,"TreeMap/EntryIterator",554),b(1142,629,Nu,ZCn),o.$b=function(){$jn(this.a)},w(le,"TreeMap/EntrySet",1142),b(447,397,{494:1,397:1,44:1,447:1},r$),o.b=!1;var lDe=w(le,"TreeMap/Node",447);b(630,1,{},LA),o.Ib=function(){return"State: mv="+this.c+" value="+this.d+" done="+this.a+" found="+this.b},o.a=!1,o.b=!1,o.c=!1,w(le,"TreeMap/State",630),b(631,2090,btn,rR),o.De=function(){return new I$(this.c,this.f,this.b,this.a,this.e,this.d)},o.vc=function(){return new ZA(this)},o.Ee=function(e){return WM(this,bm(this.c,e,!0))},o.Fe=function(e){return WM(this,CRn(this.c,e))},o.Ge=function(){var e;return this.f.Te()?this.a?e=bm(this.c,this.b,!0):e=bm(this.c,this.b,!1):e=nQ(this.c),e&&vT(this,e.d)?e:null},o.He=function(e){return WM(this,Fk(this.c,e,!0))},o.Ie=function(e){return WM(this,bm(this.c,e,!1))},o.Je=function(){var e;return this.f.Ue()?this.d?e=Fk(this.c,this.e,!0):e=Fk(this.c,this.e,!1):e=DDn(this.c),e&&vT(this,e.d)?e:null},o.Ke=function(e){return WM(this,Fk(this.c,e,!1))},o.Zc=function(e,t){if(this.f.Ue()&&this.c.a.Ne(e,this.e)>0)throw T(new Gn(Ttn+e+" greater than "+this.e));return this.f.Te()?cAn(this.c,this.b,this.a,e,t):RAn(this.c,e,t)},o.zc=function(e,t){if(!qx(this.c,this.f,e,this.b,this.a,this.e,this.d))throw T(new Gn(e+" outside the range "+this.b+" to "+this.e));return gRn(this.c,e,t)},o.Bc=function(e){var t;return t=e,qx(this.c,this.f,t,this.b,this.a,this.e,this.d)?uAn(this.c,t):null},o.Le=function(e){return vT(this,e.ld())&&UJ(this.c,e)},o.gc=function(){var e,t,i;if(this.f.Te()?this.a?t=bm(this.c,this.b,!0):t=bm(this.c,this.b,!1):t=nQ(this.c),!(t&&vT(this,t.d)&&t))return 0;for(e=0,i=new I$(this.c,this.f,this.b,this.a,this.e,this.d);LL(i.a);i.b=u(XW(i.a),44))++e;return e},o.ad=function(e,t){if(this.f.Te()&&this.c.a.Ne(e,this.b)<0)throw T(new Gn(Ttn+e+Wzn+this.b));return this.f.Ue()?cAn(this.c,e,t,this.e,this.d):KAn(this.c,e,t)},o.a=!1,o.d=!1,w(le,"TreeMap/SubMap",631),b(304,22,DK,uM),o.Te=function(){return!1},o.Ue=function(){return!1};var n_,e_,t_,i_,lI=we(le,"TreeMap/SubMapType",304,ke,Upe,nde);b(1143,304,DK,lCn),o.Ue=function(){return!0},we(le,"TreeMap/SubMapType/1",1143,lI,null,null),b(1144,304,DK,kCn),o.Te=function(){return!0},o.Ue=function(){return!0},we(le,"TreeMap/SubMapType/2",1144,lI,null,null),b(1145,304,DK,hCn),o.Te=function(){return!0},we(le,"TreeMap/SubMapType/3",1145,lI,null,null);var OQn;b(157,Ff,{3:1,20:1,31:1,16:1,277:1,21:1,87:1,157:1},UG,Ul,Y3),o.Nc=function(){return new cM(this)},o.Fc=function(e){return B7(this,e)},o.$b=function(){this.a.$b()},o.Hc=function(e){return this.a._b(e)},o.Kc=function(){return this.a.ec().Kc()},o.Mc=function(e){return EN(this,e)},o.gc=function(){return this.a.gc()};var aDe=w(le,"TreeSet",157);b(1082,1,{},a9n),o.Ve=function(e,t){return pae(this.a,e,t)},w($K,"BinaryOperator/lambda$0$Type",1082),b(1083,1,{},d9n),o.Ve=function(e,t){return mae(this.a,e,t)},w($K,"BinaryOperator/lambda$1$Type",1083),b(952,1,{},Kbn),o.Kb=function(e){return e},w($K,"Function/lambda$0$Type",952),b(395,1,Le,Z3),o.Mb=function(e){return!this.a.Mb(e)},w($K,"Predicate/lambda$2$Type",395),b(581,1,{581:1});var AQn=w(Y5,"Handler",581);b(2107,1,ky),o.xe=function(){return"DUMMY"},o.Ib=function(){return this.xe()};var $un;w(Y5,"Level",2107),b(1706,2107,ky,Bbn),o.xe=function(){return"INFO"},w(Y5,"Level/LevelInfo",1706),b(1843,1,{},Byn);var r_;w(Y5,"LogManager",1843),b(1896,1,ky,aPn),o.b=null,w(Y5,"LogRecord",1896),b(525,1,{525:1},VD),o.e=!1;var LQn=!1,NQn=!1,Uf=!1,DQn=!1,$Qn=!1;w(Y5,"Logger",525),b(835,581,{581:1},RU),w(Y5,"SimpleConsoleLogHandler",835),b(108,22,{3:1,34:1,22:1,108:1},$L);var xun,Yr,Sw,xr=we(ai,"Collector/Characteristics",108,ke,A2e,ede),xQn;b(758,1,{},CW),w(ai,"CollectorImpl",758),b(1074,1,{},Fbn),o.Ve=function(e,t){return l5e(u(e,213),u(t,213))},w(ai,"Collectors/10methodref$merge$Type",1074),b(1075,1,{},_bn),o.Kb=function(e){return bLn(u(e,213))},w(ai,"Collectors/11methodref$toString$Type",1075),b(1076,1,{},b9n),o.Kb=function(e){return _n(),!!kX(e)},w(ai,"Collectors/12methodref$test$Type",1076),b(144,1,{},yu),o.Yd=function(e,t){u(e,16).Fc(t)},w(ai,"Collectors/20methodref$add$Type",144),b(146,1,{},ju),o.Xe=function(){return new Z},w(ai,"Collectors/21methodref$ctor$Type",146),b(359,1,{},Y2),o.Xe=function(){return new ni},w(ai,"Collectors/23methodref$ctor$Type",359),b(360,1,{},Z2),o.Yd=function(e,t){fi(u(e,49),t)},w(ai,"Collectors/24methodref$add$Type",360),b(1069,1,{},Hbn),o.Ve=function(e,t){return cMn(u(e,15),u(t,16))},w(ai,"Collectors/4methodref$addAll$Type",1069),b(1073,1,{},qbn),o.Yd=function(e,t){pl(u(e,213),u(t,484))},w(ai,"Collectors/9methodref$add$Type",1073),b(1072,1,{},IPn),o.Xe=function(){return new fd(this.a,this.b,this.c)},w(ai,"Collectors/lambda$15$Type",1072),b(1077,1,{},Ubn),o.Xe=function(){var e;return e=new Ql,s1(e,(_n(),!1),new Z),s1(e,!0,new Z),e},w(ai,"Collectors/lambda$22$Type",1077),b(1078,1,{},w9n),o.Xe=function(){return S(C(ki,1),Kn,1,5,[this.a])},w(ai,"Collectors/lambda$25$Type",1078),b(1079,1,{},g9n),o.Yd=function(e,t){R0e(this.a,cd(e))},w(ai,"Collectors/lambda$26$Type",1079),b(1080,1,{},p9n),o.Ve=function(e,t){return lwe(this.a,cd(e),cd(t))},w(ai,"Collectors/lambda$27$Type",1080),b(1081,1,{},Gbn),o.Kb=function(e){return cd(e)[0]},w(ai,"Collectors/lambda$28$Type",1081),b(728,1,{},KU),o.Ve=function(e,t){return uW(e,t)},w(ai,"Collectors/lambda$4$Type",728),b(145,1,{},Eu),o.Ve=function(e,t){return zhe(u(e,16),u(t,16))},w(ai,"Collectors/lambda$42$Type",145),b(361,1,{},np),o.Ve=function(e,t){return Xhe(u(e,49),u(t,49))},w(ai,"Collectors/lambda$50$Type",361),b(362,1,{},ep),o.Kb=function(e){return u(e,49)},w(ai,"Collectors/lambda$51$Type",362),b(1068,1,{},m9n),o.Yd=function(e,t){p6e(this.a,u(e,85),t)},w(ai,"Collectors/lambda$7$Type",1068),b(1070,1,{},zbn),o.Ve=function(e,t){return Xve(u(e,85),u(t,85),new Hbn)},w(ai,"Collectors/lambda$8$Type",1070),b(1071,1,{},v9n),o.Kb=function(e){return U5e(this.a,u(e,85))},w(ai,"Collectors/lambda$9$Type",1071),b(550,1,{}),o.$e=function(){X6(this)},o.d=!1,w(ai,"TerminatableStream",550),b(827,550,Ctn,cV),o.$e=function(){X6(this)},w(ai,"DoubleStreamImpl",827),b(1847,736,Io,OPn),o.Re=function(e){return X9e(this,u(e,189))},o.a=null,w(ai,"DoubleStreamImpl/2",1847),b(1848,1,Iy,k9n),o.Pe=function(e){Fle(this.a,e)},w(ai,"DoubleStreamImpl/2/lambda$0$Type",1848),b(1845,1,Iy,y9n),o.Pe=function(e){Ble(this.a,e)},w(ai,"DoubleStreamImpl/lambda$0$Type",1845),b(1846,1,Iy,j9n),o.Pe=function(e){OKn(this.a,e)},w(ai,"DoubleStreamImpl/lambda$2$Type",1846),b(1397,735,Io,vNn),o.Re=function(e){return Npe(this,u(e,202))},o.a=0,o.b=0,o.c=0,w(ai,"IntStream/5",1397),b(806,550,Ctn,uV),o.$e=function(){X6(this)},o._e=function(){return X1(this),this.a},w(ai,"IntStreamImpl",806),b(807,550,Ctn,Az),o.$e=function(){X6(this)},o._e=function(){return X1(this),_X(),IQn},w(ai,"IntStreamImpl/Empty",807),b(1687,1,jy,E9n),o.Dd=function(e){Fxn(this.a,e)},w(ai,"IntStreamImpl/lambda$4$Type",1687);var dDe=Dt(ai,"Stream");b(26,550,{533:1,687:1,848:1},Cn),o.$e=function(){X6(this)};var v3;w(ai,"StreamImpl",26),b(1102,500,Io,rPn),o.Bd=function(e){for(;x4e(this);){if(this.a.Bd(e))return!0;X6(this.b),this.b=null,this.a=null}return!1},w(ai,"StreamImpl/1",1102),b(1103,1,re,M9n),o.Cd=function(e){f0e(this.a,u(e,848))},w(ai,"StreamImpl/1/lambda$0$Type",1103),b(1104,1,Le,T9n),o.Mb=function(e){return fi(this.a,e)},w(ai,"StreamImpl/1methodref$add$Type",1104),b(1105,500,Io,KOn),o.Bd=function(e){var t;return this.a||(t=new Z,this.b.a.Nb(new C9n(t)),Ln(),Yt(t,this.c),this.a=new On(t,16)),y$n(this.a,e)},o.a=null,w(ai,"StreamImpl/5",1105),b(1106,1,re,C9n),o.Cd=function(e){nn(this.a,e)},w(ai,"StreamImpl/5/2methodref$add$Type",1106),b(737,500,Io,eQ),o.Bd=function(e){for(this.b=!1;!this.b&&this.c.Bd(new jMn(this,e)););return this.b},o.b=!1,w(ai,"StreamImpl/FilterSpliterator",737),b(1096,1,re,jMn),o.Cd=function(e){cwe(this.a,this.b,e)},w(ai,"StreamImpl/FilterSpliterator/lambda$0$Type",1096),b(1091,736,Io,ONn),o.Re=function(e){return Bae(this,u(e,189))},w(ai,"StreamImpl/MapToDoubleSpliterator",1091),b(1095,1,re,EMn),o.Cd=function(e){fle(this.a,this.b,e)},w(ai,"StreamImpl/MapToDoubleSpliterator/lambda$0$Type",1095),b(1090,735,Io,ANn),o.Re=function(e){return Fae(this,u(e,202))},w(ai,"StreamImpl/MapToIntSpliterator",1090),b(1094,1,re,MMn),o.Cd=function(e){hle(this.a,this.b,e)},w(ai,"StreamImpl/MapToIntSpliterator/lambda$0$Type",1094),b(734,500,Io,FJ),o.Bd=function(e){return ePn(this,e)},w(ai,"StreamImpl/MapToObjSpliterator",734),b(1093,1,re,TMn),o.Cd=function(e){lle(this.a,this.b,e)},w(ai,"StreamImpl/MapToObjSpliterator/lambda$0$Type",1093),b(1092,500,Io,uxn),o.Bd=function(e){for(;NL(this.b,0);){if(!this.a.Bd(new Xbn))return!1;this.b=bs(this.b,1)}return this.a.Bd(e)},o.b=0,w(ai,"StreamImpl/SkipSpliterator",1092),b(1097,1,re,Xbn),o.Cd=function(e){},w(ai,"StreamImpl/SkipSpliterator/lambda$0$Type",1097),b(626,1,re,NA),o.Cd=function(e){t9n(this,e)},w(ai,"StreamImpl/ValueConsumer",626),b(1098,1,re,Vbn),o.Cd=function(e){Va()},w(ai,"StreamImpl/lambda$0$Type",1098),b(1099,1,re,Wbn),o.Cd=function(e){Va()},w(ai,"StreamImpl/lambda$1$Type",1099),b(1100,1,{},S9n),o.Ve=function(e,t){return mde(this.a,e,t)},w(ai,"StreamImpl/lambda$4$Type",1100),b(1101,1,re,CMn),o.Cd=function(e){Mae(this.b,this.a,e)},w(ai,"StreamImpl/lambda$5$Type",1101),b(1107,1,re,P9n),o.Cd=function(e){$ve(this.a,u(e,380))},w(ai,"TerminatableStream/lambda$0$Type",1107),b(2142,1,{}),b(2014,1,{},Jbn),w("javaemul.internal","ConsoleLogger",2014);var bDe=0;b(2134,1,{}),b(1830,1,re,Qbn),o.Cd=function(e){u(e,317)},w(Hm,"BowyerWatsonTriangulation/lambda$0$Type",1830),b(1831,1,re,I9n),o.Cd=function(e){Ki(this.a,u(e,317).e)},w(Hm,"BowyerWatsonTriangulation/lambda$1$Type",1831),b(1832,1,re,Ybn),o.Cd=function(e){u(e,177)},w(Hm,"BowyerWatsonTriangulation/lambda$2$Type",1832),b(1827,1,De,O9n),o.Ne=function(e,t){return m3e(this.a,u(e,177),u(t,177))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Hm,"NaiveMinST/lambda$0$Type",1827),b(449,1,{},Xv),w(Hm,"NodeMicroLayout",449),b(177,1,{177:1},bp),o.Fb=function(e){var t;return L(e,177)?(t=u(e,177),mc(this.a,t.a)&&mc(this.b,t.b)||mc(this.a,t.b)&&mc(this.b,t.a)):!1},o.Hb=function(){return yg(this.a)+yg(this.b)};var wDe=w(Hm,"TEdge",177);b(317,1,{317:1},Fen),o.Fb=function(e){var t;return L(e,317)?(t=u(e,317),tC(this,t.a)&&tC(this,t.b)&&tC(this,t.c)):!1},o.Hb=function(){return yg(this.a)+yg(this.b)+yg(this.c)},w(Hm,"TTriangle",317),b(225,1,{225:1},NM),w(Hm,"Tree",225),b(1218,1,{},EAn),w(Yzn,"Scanline",1218);var RQn=Dt(Yzn,Zzn);b(1758,1,{},m$n),w(zh,"CGraph",1758),b(316,1,{316:1},CAn),o.b=0,o.c=0,o.d=0,o.g=0,o.i=0,o.k=li,w(zh,"CGroup",316),b(830,1,{},XG),w(zh,"CGroup/CGroupBuilder",830),b(60,1,{60:1},KSn),o.Ib=function(){var e;return this.j?Ae(this.j.Kb(this)):(ll(aI),aI.o+"@"+(e=lb(this)>>>0,e.toString(16)))},o.f=0,o.i=li;var aI=w(zh,"CNode",60);b(829,1,{},VG),w(zh,"CNode/CNodeBuilder",829);var KQn;b(1590,1,{},Zbn),o.ff=function(e,t){return 0},o.gf=function(e,t){return 0},w(zh,eXn,1590),b(1853,1,{},n0n),o.cf=function(e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j;for(a=Pt,r=new M(e.a.b);r.a<r.c.c.length;)t=u(E(r),60),a=y.Math.min(a,t.a.j.d.c+t.b.a);for(m=new Mt,f=new M(e.a.a);f.a<f.c.c.length;)s=u(E(f),316),s.k=a,s.g==0&&xt(m,s,m.c.b,m.c);for(;m.b!=0;){for(s=u(m.b==0?null:(oe(m.b!=0),Xo(m,m.a.a)),316),c=s.j.d.c,p=s.a.a.ec().Kc();p.Ob();)d=u(p.Pb(),60),j=s.k+d.b.a,!J6e(e,s,e.d)||d.d.c<j?d.i=j:d.i=d.d.c;for(c-=s.j.i,s.b+=c,e.d==(ci(),Xr)||e.d==Wf?s.c+=c:s.c-=c,g=s.a.a.ec().Kc();g.Ob();)for(d=u(g.Pb(),60),l=d.c.Kc();l.Ob();)h=u(l.Pb(),60),hl(e.d)?k=e.g.ff(d,h):k=e.g.gf(d,h),h.a.k=y.Math.max(h.a.k,d.i+d.d.b+k-h.b.a),zOn(e,h,e.d)&&(h.a.k=y.Math.max(h.a.k,h.d.c-h.b.a)),--h.a.g,h.a.g==0&&Re(m,h.a)}for(i=new M(e.a.b);i.a<i.c.c.length;)t=u(E(i),60),t.d.c=t.i},w(zh,"LongestPathCompaction",1853),b(1756,1,{},uHn),o.e=!1;var BQn,FQn,_Qn,c_=w(zh,rXn,1756);b(1757,1,re,A9n),o.Cd=function(e){Qve(this.a,u(e,42))},w(zh,cXn,1757),b(1854,1,{},e0n),o.df=function(e){var t,i,r,c,s,f,h;for(i=new M(e.a.b);i.a<i.c.c.length;)t=u(E(i),60),t.c.$b();for(c=new M(e.a.b);c.a<c.c.c.length;)for(r=u(E(c),60),f=new M(e.a.b);f.a<f.c.c.length;)s=u(E(f),60),r!=s&&(r.a&&r.a==s.a||(hl(e.d)?h=e.g.gf(r,s):h=e.g.ff(r,s),(s.d.c>r.d.c||r.d.c==s.d.c&&r.d.b<s.d.b)&&x8e(s.d.d+s.d.a+h,r.d.d)&&nZ(s.d.d,r.d.d+r.d.a+h)&&r.c.Fc(s)))},w(zh,"QuadraticConstraintCalculation",1854),b(529,1,{529:1},rL),o.a=!1,o.b=!1,o.c=!1,o.d=!1,w(zh,uXn,529),b(817,1,{},lW),o.df=function(e){this.c=e,Zk(this,new r0n)},w(zh,oXn,817),b(1784,1,{693:1},VOn),o.bf=function(e){Qje(this,u(e,473))},w(zh,sXn,1784),b(1785,1,De,t0n),o.Ne=function(e,t){return sge(u(e,60),u(t,60))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(zh,fXn,1785),b(473,1,{473:1},_z),o.a=!1,w(zh,hXn,473),b(1786,1,De,i0n),o.Ne=function(e,t){return ske(u(e,473),u(t,473))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(zh,lXn,1786),b(1787,1,ph,r0n),o.Lb=function(e){return u(e,60),!0},o.Fb=function(e){return this===e},o.Mb=function(e){return u(e,60),!0},w(zh,"ScanlineConstraintCalculator/lambda$1$Type",1787),b(436,22,{3:1,34:1,22:1,436:1},Hz);var Run,u_,Kun=we(BK,"HighLevelSortingCriterion",436,ke,Rge,tde),HQn;b(435,22,{3:1,34:1,22:1,435:1},qz);var Bun,o_,Fun=we(BK,"LowLevelSortingCriterion",435,ke,Kge,ide),qQn,a2=Dt(oc,"ILayoutMetaDataProvider");b(864,1,ms,A5n),o.hf=function(e){vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Otn),FK),"Polyomino Traversal Strategy"),"Traversal strategy for trying different candidate positions for polyominoes."),Xun),(l1(),It)),ton),jn((pf(),xn))))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Atn),FK),"Polyomino Secondary Sorting Criterion"),"Possible secondary sorting criteria for the processing order of polyominoes. They are used when polyominoes are equal according to the primary sorting criterion HighLevelSortingCriterion."),Gun),It),Fun),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Ltn),FK),"Polyomino Primary Sorting Criterion"),"Possible primary sorting criteria for the processing order of polyominoes."),qun),It),Kun),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Ntn),FK),"Fill Polyominoes"),"Use the Profile Fill algorithm to fill polyominoes to prevent small polyominoes from being placed inside of big polyominoes with large holes. Might increase packing area."),(_n(),!0)),yi),Gt),jn(xn))))};var _un,Hun,qun,Uun,Gun,zun,Xun;w(BK,"PolyominoOptions",864),b(257,22,{3:1,34:1,22:1,257:1},ag);var Vun,Wun,Jun,Qun,Yun,Zun,s_,non,eon,ton=we(BK,"TraversalStrategy",257,ke,$me,rde),UQn;b(218,1,{218:1},c0n),o.Ib=function(){return"NEdge[id="+this.b+" w="+this.g+" d="+this.a+"]"},o.a=1,o.b=0,o.c=0,o.f=!1,o.g=0;var GQn=w(Z5,"NEdge",218);b(182,1,{},hs),w(Z5,"NEdge/NEdgeBuilder",182),b(662,1,{},oL),w(Z5,"NGraph",662),b(125,1,{125:1},DNn),o.c=-1,o.d=0,o.e=0,o.i=-1,o.j=!1;var ion=w(Z5,"NNode",125);b(808,1,Xzn,GG),o.Jc=function(e){qi(this,e)},o.Lc=function(){return new Cn(null,new On(this,16))},o.jd=function(e){ud(this,e)},o.Nc=function(){return new On(this,16)},o.Oc=function(){return new Cn(null,new On(this,16))},o.bd=function(e,t){++this.b,bb(this.a,e,t)},o.Fc=function(e){return BM(this,e)},o.cd=function(e,t){return++this.b,aY(this.a,e,t)},o.Gc=function(e){return++this.b,hi(this.a,e)},o.$b=function(){++this.b,I0(this.a.c,0)},o.Hc=function(e){return qr(this.a,e,0)!=-1},o.Ic=function(e){return Ek(this.a,e)},o.Xb=function(e){return sn(this.a,e)},o.dd=function(e){return qr(this.a,e,0)},o.dc=function(){return this.a.c.length==0},o.Kc=function(){return Fp(new M(this.a))},o.ed=function(){throw T(new Ie)},o.fd=function(e){throw T(new Ie)},o.gd=function(e){return++this.b,Yl(this.a,e)},o.Mc=function(e){return XX(this,e)},o.hd=function(e,t){return++this.b,Go(this.a,e,t)},o.gc=function(){return this.a.c.length},o.kd=function(e,t){return new Jl(this.a,e,t)},o.Pc=function(){return ZM(this.a.c)},o.Qc=function(e){return Rf(this.a,e)},o.b=0,w(Z5,"NNode/ChangeAwareArrayList",808),b(275,1,{},za),w(Z5,"NNode/NNodeBuilder",275),b(1695,1,{},u0n),o.a=!1,o.f=et,o.j=0,w(Z5,"NetworkSimplex",1695),b(1314,1,re,L9n),o.Cd=function(e){HGn(this.a,u(e,695),!0,!1)},w(aXn,"NodeLabelAndSizeCalculator/lambda$0$Type",1314),b(565,1,{},OE),o.b=!0,o.c=!0,o.d=!0,o.e=!0,w(aXn,"NodeMarginCalculator",565),b(217,1,{217:1}),o.j=!1,o.k=!1;var zQn=w(kd,"Cell",217);b(127,217,{127:1,217:1},RSn),o.jf=function(){return nT(this)},o.kf=function(){var e;return e=this.n,this.a.a+e.b+e.c},w(kd,"AtomicCell",127),b(237,22,{3:1,34:1,22:1,237:1},xL);var bc,Wc,wc,Pw=we(kd,"ContainerArea",237,ke,D2e,cde),XQn;b(336,217,dXn),w(kd,"ContainerCell",336),b(1538,336,dXn,SKn),o.jf=function(){var e;return e=0,this.e?this.b?e=this.b.b:this.a[1][1]&&(e=this.a[1][1].jf()):e=KY(this,qBn(this,!0)),e>0?e+this.n.d+this.n.a:0},o.kf=function(){var e,t,i,r,c;if(c=0,this.e)this.b?c=this.b.a:this.a[1][1]&&(c=this.a[1][1].kf());else if(this.g)c=KY(this,Gx(this,null,!0));else for(t=(wf(),S(C(Pw,1),G,237,0,[bc,Wc,wc])),i=0,r=t.length;i<r;++i)e=t[i],c=y.Math.max(c,KY(this,Gx(this,e,!0)));return c>0?c+this.n.b+this.n.c:0},o.lf=function(){var e,t,i,r,c;if(this.g)for(e=Gx(this,null,!1),i=(wf(),S(C(Pw,1),G,237,0,[bc,Wc,wc])),r=0,c=i.length;r<c;++r)t=i[r],jqn(this,t,e);else for(i=(wf(),S(C(Pw,1),G,237,0,[bc,Wc,wc])),r=0,c=i.length;r<c;++r)t=i[r],e=Gx(this,t,!1),jqn(this,t,e)},o.mf=function(){var e,t,i,r;t=this.i,e=this.n,r=qBn(this,!1),xJ(this,(wf(),bc),t.d+e.d,r),xJ(this,wc,t.d+t.a-e.a-r[2],r),i=t.a-e.d-e.a,r[0]>0&&(r[0]+=this.d,i-=r[0]),r[2]>0&&(r[2]+=this.d,i-=r[2]),this.c.a=y.Math.max(0,i),this.c.d=t.d+e.d+(this.c.a-i)/2,r[1]=y.Math.max(r[1],i),xJ(this,Wc,t.d+e.d+r[0]-(r[1]-i)/2,r)},o.b=null,o.d=0,o.e=!1,o.f=!1,o.g=!1;var f_=0,dI=0;w(kd,"GridContainerCell",1538),b(471,22,{3:1,34:1,22:1,471:1},RL);var pa,Th,zs,VQn=we(kd,"HorizontalLabelAlignment",471,ke,N2e,ude),WQn;b(314,217,{217:1,314:1},fAn,k$n,tAn),o.jf=function(){return qPn(this)},o.kf=function(){return nW(this)},o.a=0,o.c=!1;var gDe=w(kd,"LabelCell",314);b(252,336,{217:1,336:1,252:1},E5),o.jf=function(){return ey(this)},o.kf=function(){return ty(this)},o.lf=function(){NR(this)},o.mf=function(){DR(this)},o.b=0,o.c=0,o.d=!1,w(kd,"StripContainerCell",252),b(1691,1,Le,o0n),o.Mb=function(e){return uhe(u(e,217))},w(kd,"StripContainerCell/lambda$0$Type",1691),b(1692,1,{},s0n),o.Ye=function(e){return u(e,217).kf()},w(kd,"StripContainerCell/lambda$1$Type",1692),b(1693,1,Le,f0n),o.Mb=function(e){return ohe(u(e,217))},w(kd,"StripContainerCell/lambda$2$Type",1693),b(1694,1,{},h0n),o.Ye=function(e){return u(e,217).jf()},w(kd,"StripContainerCell/lambda$3$Type",1694),b(472,22,{3:1,34:1,22:1,472:1},KL);var Xs,ma,kf,JQn=we(kd,"VerticalLabelAlignment",472,ke,L2e,ode),QQn;b(800,1,{},ttn),o.c=0,o.d=0,o.k=0,o.s=0,o.t=0,o.v=!1,o.w=0,o.D=!1,w(nP,"NodeContext",800),b(1536,1,De,l0n),o.Ne=function(e,t){return eCn(u(e,64),u(t,64))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(nP,"NodeContext/0methodref$comparePortSides$Type",1536),b(1537,1,De,a0n),o.Ne=function(e,t){return xye(u(e,117),u(t,117))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(nP,"NodeContext/1methodref$comparePortContexts$Type",1537),b(164,22,{3:1,34:1,22:1,164:1},Vo);var YQn,ZQn,nYn,eYn,tYn,iYn,rYn,cYn,uYn,oYn,sYn,fYn,hYn,lYn,aYn,dYn,bYn,wYn,gYn,pYn,mYn,h_,vYn=we(nP,"NodeLabelLocation",164,ke,jx,sde),kYn;b(117,1,{117:1},sHn),o.a=!1,w(nP,"PortContext",117),b(1541,1,re,d0n),o.Cd=function(e){kEn(u(e,314))},w(Ay,bXn,1541),b(1542,1,Le,b0n),o.Mb=function(e){return!!u(e,117).c},w(Ay,wXn,1542),b(1543,1,re,w0n),o.Cd=function(e){kEn(u(e,117).c)},w(Ay,"LabelPlacer/lambda$2$Type",1543);var ron;b(1540,1,re,g0n),o.Cd=function(e){K0(),Bfe(u(e,117))},w(Ay,"NodeLabelAndSizeUtilities/lambda$0$Type",1540),b(801,1,re,NV),o.Cd=function(e){Zhe(this.b,this.c,this.a,u(e,187))},o.a=!1,o.c=!1,w(Ay,"NodeLabelCellCreator/lambda$0$Type",801),b(1539,1,re,N9n),o.Cd=function(e){Hfe(this.a,u(e,187))},w(Ay,"PortContextCreator/lambda$0$Type",1539);var bI;b(1902,1,{},p0n),w(Um,"GreedyRectangleStripOverlapRemover",1902),b(1903,1,De,m0n),o.Ne=function(e,t){return A1e(u(e,226),u(t,226))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Um,"GreedyRectangleStripOverlapRemover/0methodref$compareByYCoordinate$Type",1903),b(1849,1,{},qyn),o.a=5,o.e=0,w(Um,"RectangleStripOverlapRemover",1849),b(1850,1,De,v0n),o.Ne=function(e,t){return L1e(u(e,226),u(t,226))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Um,"RectangleStripOverlapRemover/0methodref$compareLeftRectangleBorders$Type",1850),b(1852,1,De,k0n),o.Ne=function(e,t){return ywe(u(e,226),u(t,226))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Um,"RectangleStripOverlapRemover/1methodref$compareRightRectangleBorders$Type",1852),b(417,22,{3:1,34:1,22:1,417:1},sM);var ij,l_,a_,rj,yYn=we(Um,"RectangleStripOverlapRemover/OverlapRemovalDirection",417,ke,Xpe,fde),jYn;b(226,1,{226:1},ZN),w(Um,"RectangleStripOverlapRemover/RectangleNode",226),b(1851,1,re,D9n),o.Cd=function(e){s7e(this.a,u(e,226))},w(Um,"RectangleStripOverlapRemover/lambda$1$Type",1851),b(1323,1,De,y0n),o.Ne=function(e,t){return POe(u(e,176),u(t,176))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(mh,"PolyominoCompactor/CornerCasesGreaterThanRestComparator",1323),b(1326,1,{},j0n),o.Kb=function(e){return u(e,334).a},w(mh,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$0$Type",1326),b(1327,1,Le,E0n),o.Mb=function(e){return u(e,332).a},w(mh,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$1$Type",1327),b(1328,1,Le,M0n),o.Mb=function(e){return u(e,332).a},w(mh,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$2$Type",1328),b(1321,1,De,T0n),o.Ne=function(e,t){return rPe(u(e,176),u(t,176))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(mh,"PolyominoCompactor/MinNumOfExtensionDirectionsComparator",1321),b(1324,1,{},C0n),o.Kb=function(e){return u(e,334).a},w(mh,"PolyominoCompactor/MinNumOfExtensionDirectionsComparator/lambda$0$Type",1324),b(781,1,De,BU),o.Ne=function(e,t){return Fve(u(e,176),u(t,176))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(mh,"PolyominoCompactor/MinNumOfExtensionsComparator",781),b(1319,1,De,S0n),o.Ne=function(e,t){return Vme(u(e,330),u(t,330))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(mh,"PolyominoCompactor/MinPerimeterComparator",1319),b(1320,1,De,P0n),o.Ne=function(e,t){return L9e(u(e,330),u(t,330))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(mh,"PolyominoCompactor/MinPerimeterComparatorWithShape",1320),b(1322,1,De,I0n),o.Ne=function(e,t){return TPe(u(e,176),u(t,176))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(mh,"PolyominoCompactor/SingleExtensionSideGreaterThanRestComparator",1322),b(1325,1,{},O0n),o.Kb=function(e){return u(e,334).a},w(mh,"PolyominoCompactor/SingleExtensionSideGreaterThanRestComparator/lambda$0$Type",1325),b(782,1,{},Uz),o.Ve=function(e,t){return Bpe(this,u(e,42),u(t,176))},w(mh,"SuccessorCombination",782),b(649,1,{},DA),o.Ve=function(e,t){var i;return eMe((i=u(e,42),u(t,176),i))},w(mh,"SuccessorJitter",649),b(648,1,{},$A),o.Ve=function(e,t){var i;return _Ce((i=u(e,42),u(t,176),i))},w(mh,"SuccessorLineByLine",648),b(573,1,{},vE),o.Ve=function(e,t){var i;return eTe((i=u(e,42),u(t,176),i))},w(mh,"SuccessorManhattan",573),b(1344,1,{},A0n),o.Ve=function(e,t){var i;return lCe((i=u(e,42),u(t,176),i))},w(mh,"SuccessorMaxNormWindingInMathPosSense",1344),b(409,1,{},n4),o.Ve=function(e,t){return MW(this,e,t)},o.c=!1,o.d=!1,o.e=!1,o.f=!1,w(mh,"SuccessorQuadrantsGeneric",409),b(1345,1,{},L0n),o.Kb=function(e){return u(e,334).a},w(mh,"SuccessorQuadrantsGeneric/lambda$0$Type",1345),b(332,22,{3:1,34:1,22:1,332:1},fM),o.a=!1;var cj,uj,oj,sj,EYn=we(tP,Rtn,332,ke,Gpe,hde),MYn;b(1317,1,{}),o.Ib=function(){var e,t,i,r,c,s;for(i=" ",e=Y(0),c=0;c<this.o;c++)i+=""+e.a,e=Y(TSn(e.a));for(i+=`
`,e=Y(0),s=0;s<this.p;s++){for(i+=""+e.a,e=Y(TSn(e.a)),r=0;r<this.o;r++)t=M$(this,r,s),Ec(t,0)==0?i+="_":Ec(t,1)==0?i+="X":i+="0";i+=`
`}return qo(i,0,i.length-1)},o.o=0,o.p=0,w(tP,"TwoBitGrid",1317),b(330,1317,{330:1},XY),o.j=0,o.k=0,w(tP,"PlanarGrid",330),b(176,330,{330:1,176:1}),o.g=0,o.i=0,w(tP,"Polyomino",176);var pDe=Dt(Ly,pXn);b(137,1,Ktn,xA),o.qf=function(e,t){return Sk(this,e,t)},o.nf=function(){return oIn(this)},o.of=function(e){return v(this,e)},o.pf=function(e){return kt(this,e)},w(Ly,"MapPropertyHolder",137),b(1318,137,Ktn,hqn),w(tP,"Polyominoes",1318);var TYn=!1,O8,con;b(1828,1,re,N0n),o.Cd=function(e){aGn(u(e,225))},w(h3,"DepthFirstCompaction/0methodref$compactTree$Type",1828),b(825,1,re,IG),o.Cd=function(e){qwe(this.a,u(e,225))},w(h3,"DepthFirstCompaction/lambda$1$Type",825),b(1829,1,re,gPn),o.Cd=function(e){z8e(this.a,this.b,this.c,u(e,225))},w(h3,"DepthFirstCompaction/lambda$2$Type",1829);var A8,uon;b(68,1,{68:1},jAn),w(h3,"Node",68),b(1214,1,{},yCn),w(h3,"ScanlineOverlapCheck",1214),b(1215,1,{693:1},JOn),o.bf=function(e){yae(this,u(e,451))},w(h3,"ScanlineOverlapCheck/OverlapsScanlineHandler",1215),b(1216,1,De,D0n),o.Ne=function(e,t){return I5e(u(e,68),u(t,68))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(h3,"ScanlineOverlapCheck/OverlapsScanlineHandler/lambda$0$Type",1216),b(451,1,{451:1},Gz),o.a=!1,w(h3,"ScanlineOverlapCheck/Timestamp",451),b(1217,1,De,$0n),o.Ne=function(e,t){return fke(u(e,451),u(t,451))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(h3,"ScanlineOverlapCheck/lambda$0$Type",1217),b(557,1,{},kE),w(mXn,"SVGImage",557),b(334,1,{334:1},LV),o.Ib=function(){return"("+this.a+ur+this.b+ur+this.c+")"},w(mXn,"UniqueTriple",334),b(205,1,yd),w(e2,"AbstractLayoutProvider",205),b(1114,205,yd,x0n),o.rf=function(e,t){var i,r,c,s;switch(t.Ug(vXn,1),this.a=$(B(z(e,(M5(),aon)))),Nf(e,b_)&&(c=Ae(z(e,b_)),i=CR(z4(),c),i&&(r=u(z7(i.f),205),r.rf(e,t.eh(1)))),s=new HLn(this.a),this.b=rLe(s,e),u(z(e,(Q$(),son)),489).g){case 0:kMe(new R0n,this.b),ht(e,pI,v(this.b,pI));break;default:fl()}vLe(s),ht(e,hon,this.b),t.Vg()},o.a=0,w(kXn,"DisCoLayoutProvider",1114),b(1208,1,{},R0n),o.c=!1,o.e=0,o.f=0,w(kXn,"DisCoPolyominoCompactor",1208),b(567,1,{567:1},cIn),o.b=!0,w(rP,"DCComponent",567),b(406,22,{3:1,34:1,22:1,406:1},hM),o.a=!1;var wI,fj,gI,hj,CYn=we(rP,"DCDirection",406,ke,zpe,lde),SYn;b(272,137,{3:1,272:1,96:1,137:1},bR),w(rP,"DCElement",272),b(407,1,{407:1},pZ),o.c=0,w(rP,"DCExtension",407),b(762,137,Ktn,Vjn),w(rP,"DCGraph",762),b(489,22,{3:1,34:1,22:1,489:1},bSn);var d_,oon=we(VK,Btn,489,ke,nge,ade),PYn;b(865,1,ms,L5n),o.hf=function(e){vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Ftn),yXn),"Connected Components Compaction Strategy"),"Strategy for packing different connected components in order to save space and enhance readability of a graph."),fon),(l1(),It)),oon),jn((pf(),xn))))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,_tn),yXn),"Connected Components Layout Algorithm"),"A layout algorithm that is to be applied to each connected component before the components themselves are compacted. If unspecified, the positions of the components' nodes are not altered."),$2),fn),jn(xn)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,Htn),"debug"),"DCGraph"),"Access to the DCGraph is intended for the debug view,"),Vf),ki),jn(xn)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,qtn),"debug"),"List of Polyominoes"),"Access to the polyominoes is intended for the debug view,"),Vf),ki),jn(xn)))),QUn((new N5n,e))};var IYn,son,fon,OYn,AYn;w(VK,"DisCoMetaDataProvider",865),b(1010,1,ms,N5n),o.hf=function(e){QUn(e)};var LYn,b_,NYn,hon,pI,w_,lon,DYn,$Yn,xYn,RYn,aon;w(VK,"DisCoOptions",1010),b(1011,1,{},K0n),o.sf=function(){var e;return e=new x0n,e},o.tf=function(e){},w(VK,"DisCoOptions/DiscoFactory",1011),b(568,176,{330:1,176:1,568:1},zHn),o.a=0,o.b=0,o.c=0,o.d=0,w("org.eclipse.elk.alg.disco.structures","DCPolyomino",568);var g_,p_,mI;b(1286,1,Le,B0n),o.Mb=function(e){return kX(e)},w(t2,"ElkGraphComponentsProcessor/lambda$0$Type",1286),b(1287,1,{},F0n),o.Kb=function(e){return Np(),Fh(u(e,74))},w(t2,"ElkGraphComponentsProcessor/lambda$1$Type",1287),b(1288,1,Le,_0n),o.Mb=function(e){return v0e(u(e,74))},w(t2,"ElkGraphComponentsProcessor/lambda$2$Type",1288),b(1289,1,{},H0n),o.Kb=function(e){return Np(),ra(u(e,74))},w(t2,"ElkGraphComponentsProcessor/lambda$3$Type",1289),b(1290,1,Le,q0n),o.Mb=function(e){return k0e(u(e,74))},w(t2,"ElkGraphComponentsProcessor/lambda$4$Type",1290),b(1291,1,Le,$9n),o.Mb=function(e){return d2e(this.a,u(e,74))},w(t2,"ElkGraphComponentsProcessor/lambda$5$Type",1291),b(1292,1,{},x9n),o.Kb=function(e){return Nwe(this.a,u(e,74))},w(t2,"ElkGraphComponentsProcessor/lambda$6$Type",1292),b(1205,1,{},HLn),o.a=0,w(t2,"ElkGraphTransformer",1205),b(1206,1,{},U0n),o.Yd=function(e,t){cMe(this,u(e,167),u(t,272))},w(t2,"ElkGraphTransformer/OffsetApplier",1206),b(1207,1,re,R9n),o.Cd=function(e){w1e(this,u(e,8))},w(t2,"ElkGraphTransformer/OffsetApplier/OffSetToChainApplier",1207),b(760,1,{},FU),w(YK,Utn,760),b(1195,1,De,G0n),o.Ne=function(e,t){return XEe(u(e,235),u(t,235))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(YK,EXn,1195),b(1196,1,re,SMn),o.Cd=function(e){Q2e(this.b,this.a,u(e,250))},w(YK,Gtn,1196),b(738,205,yd,zG),o.rf=function(e,t){VHn(this,e,t)},w(YK,"ForceLayoutProvider",738),b(309,137,{3:1,309:1,96:1,137:1}),w(Ny,"FParticle",309),b(250,309,{3:1,250:1,309:1,96:1,137:1},UIn),o.Ib=function(){var e;return this.a?(e=qr(this.a.a,this,0),e>=0?"b"+e+"["+XD(this.a)+"]":"b["+XD(this.a)+"]"):"b_"+lb(this)},w(Ny,"FBendpoint",250),b(290,137,{3:1,290:1,96:1,137:1},BSn),o.Ib=function(){return XD(this)},w(Ny,"FEdge",290),b(235,137,{3:1,235:1,96:1,137:1},zT);var mDe=w(Ny,"FGraph",235);b(454,309,{3:1,454:1,309:1,96:1,137:1},_Ln),o.Ib=function(){return this.b==null||this.b.length==0?"l["+XD(this.a)+"]":"l_"+this.b},w(Ny,"FLabel",454),b(153,309,{3:1,153:1,309:1,96:1,137:1},vCn),o.Ib=function(){return lJ(this)},o.a=0,w(Ny,"FNode",153),b(2100,1,{}),o.vf=function(e){$en(this,e)},o.wf=function(){HBn(this)},o.d=0,w(ztn,"AbstractForceModel",2100),b(641,2100,{641:1},Bxn),o.uf=function(e,t){var i,r,c,s,f;return wGn(this.f,e,t),c=mi(Fi(t.d),e.d),f=y.Math.sqrt(c.a*c.a+c.b*c.b),r=y.Math.max(0,f-z6(e.e)/2-z6(t.e)/2),i=Q_n(this.e,e,t),i>0?s=-mwe(r,this.c)*i:s=X1e(r,this.b)*u(v(e,(Us(),k3)),17).a,ch(c,s/f),c},o.vf=function(e){$en(this,e),this.a=u(v(e,(Us(),kI)),17).a,this.c=$(B(v(e,yI))),this.b=$(B(v(e,v_)))},o.xf=function(e){return e<this.a},o.a=0,o.b=0,o.c=0,w(ztn,"EadesModel",641),b(642,2100,{642:1},KPn),o.uf=function(e,t){var i,r,c,s,f;return wGn(this.f,e,t),c=mi(Fi(t.d),e.d),f=y.Math.sqrt(c.a*c.a+c.b*c.b),r=y.Math.max(0,f-z6(e.e)/2-z6(t.e)/2),s=V1e(r,this.a)*u(v(e,(Us(),k3)),17).a,i=Q_n(this.e,e,t),i>0&&(s-=the(r,this.a)*i),ch(c,s*this.b/f),c},o.vf=function(e){var t,i,r,c,s,f,h;for($en(this,e),this.b=$(B(v(e,(Us(),k_)))),this.c=this.b/u(v(e,kI),17).a,r=e.e.c.length,s=0,c=0,h=new M(e.e);h.a<h.c.c.length;)f=u(E(h),153),s+=f.e.a,c+=f.e.b;t=s*c,i=$(B(v(e,yI)))*_f,this.a=y.Math.sqrt(t/(2*r))*i},o.wf=function(){HBn(this),this.b-=this.c},o.xf=function(e){return this.b>0},o.a=0,o.b=0,o.c=0,w(ztn,"FruchtermanReingoldModel",642),b(860,1,ms,D5n),o.hf=function(e){vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,cP),""),"Force Model"),"Determines the model for force calculation."),don),(l1(),It)),bon),jn((pf(),xn))))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Xtn),""),"Iterations"),"The number of iterations on the force model."),Y(300)),Zr),Gi),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Vtn),""),"Repulsive Power"),"Determines how many bend points are added to the edge; such bend points are regarded as repelling particles in the force model"),Y(0)),Zr),Gi),jn(Ih)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,ZK),""),"FR Temperature"),"The temperature is used as a scaling factor for particle displacements."),vh),Qi),si),jn(xn)))),ri(e,ZK,cP,UYn),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,nB),""),"Eades Repulsion"),"Factor for repulsive forces in Eades' model."),5),Qi),si),jn(xn)))),ri(e,nB,cP,_Yn),izn((new $5n,e))};var KYn,BYn,don,FYn,_Yn,HYn,qYn,UYn;w(e8,"ForceMetaDataProvider",860),b(432,22,{3:1,34:1,22:1,432:1},zz);var m_,vI,bon=we(e8,"ForceModelStrategy",432,ke,Bge,dde),GYn;b(d1,1,ms,$5n),o.hf=function(e){izn(e)};var zYn,XYn,won,kI,gon,VYn,WYn,JYn,QYn,pon,YYn,mon,von,ZYn,k3,nZn,v_,kon,eZn,tZn,yI,k_,iZn,rZn,cZn,yon,uZn;w(e8,"ForceOptions",d1),b(1001,1,{},W0n),o.sf=function(){var e;return e=new zG,e},o.tf=function(e){},w(e8,"ForceOptions/ForceFactory",1001);var lj,L8,y3,jI;b(861,1,ms,x5n),o.hf=function(e){vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Jtn),""),"Fixed Position"),"Prevent that the node is moved by the layout algorithm."),(_n(),!1)),(l1(),yi)),Gt),jn((pf(),pi))))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Qtn),""),"Desired Edge Length"),"Either specified for parent nodes or for individual edges, where the latter takes higher precedence."),100),Qi),si),yt(xn,S(C(Zh,1),G,170,0,[Ih]))))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Ytn),""),"Layout Dimension"),"Dimensions that are permitted to be altered during layout."),jon),It),Ion),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Ztn),""),"Stress Epsilon"),"Termination criterion for the iterative process."),vh),Qi),si),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,nin),""),"Iteration Limit"),"Maximum number of performed iterations. Takes higher precedence than 'epsilon'."),Y(et)),Zr),Gi),jn(xn)))),AGn((new R5n,e))};var oZn,sZn,jon,fZn,hZn,lZn;w(e8,"StressMetaDataProvider",861),b(1004,1,ms,R5n),o.hf=function(e){AGn(e)};var EI,Eon,Mon,Ton,Con,Son,aZn,dZn,bZn,wZn,Pon,gZn;w(e8,"StressOptions",1004),b(1005,1,{},X0n),o.sf=function(){var e;return e=new FSn,e},o.tf=function(e){},w(e8,"StressOptions/StressFactory",1005),b(1110,205,yd,FSn),o.rf=function(e,t){var i,r,c,s,f;for(t.Ug(PXn,1),on(un(z(e,(Uk(),Con))))?on(un(z(e,Pon)))||X7((i=new Xv((cb(),new Qd(e))),i)):VHn(new zG,e,t.eh(1)),c=fRn(e),r=FUn(this.a,c),f=r.Kc();f.Ob();)s=u(f.Pb(),235),!(s.e.c.length<=1)&&(TOe(this.b,s),JMe(this.b),nu(s.d,new V0n));c=nzn(r),hzn(c),t.Vg()},w(sP,"StressLayoutProvider",1110),b(1111,1,re,V0n),o.Cd=function(e){qen(u(e,454))},w(sP,"StressLayoutProvider/lambda$0$Type",1111),b(1002,1,{},Kyn),o.c=0,o.e=0,o.g=0,w(sP,"StressMajorization",1002),b(391,22,{3:1,34:1,22:1,391:1},BL);var y_,j_,E_,Ion=we(sP,"StressMajorization/Dimension",391,ke,$2e,bde),pZn;b(1003,1,De,K9n),o.Ne=function(e,t){return Hae(this.a,u(e,153),u(t,153))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(sP,"StressMajorization/lambda$0$Type",1003),b(1192,1,{},zAn),w(b3,"ElkLayered",1192),b(1193,1,re,B9n),o.Cd=function(e){TEe(this.a,u(e,36))},w(b3,"ElkLayered/lambda$0$Type",1193),b(1194,1,re,F9n),o.Cd=function(e){qae(this.a,u(e,36))},w(b3,"ElkLayered/lambda$1$Type",1194),b(1281,1,{},ICn);var mZn,vZn,kZn;w(b3,"GraphConfigurator",1281),b(770,1,re,OG),o.Cd=function(e){e_n(this.a,u(e,10))},w(b3,"GraphConfigurator/lambda$0$Type",770),b(771,1,{},_U),o.Kb=function(e){return LZ(),new Cn(null,new On(u(e,30).a,16))},w(b3,"GraphConfigurator/lambda$1$Type",771),b(772,1,re,AG),o.Cd=function(e){e_n(this.a,u(e,10))},w(b3,"GraphConfigurator/lambda$2$Type",772),b(1109,205,yd,Uyn),o.rf=function(e,t){var i;i=cOe(new zyn,e),x(z(e,(cn(),Kw)))===x((jl(),T1))?R5e(this.a,i,t):zMe(this.a,i,t),t.$g()||XGn(new K5n,i)},w(b3,"LayeredLayoutProvider",1109),b(367,22,{3:1,34:1,22:1,367:1},o7);var Vs,Jh,Ac,Fc,zr,Oon=we(b3,"LayeredPhases",367,ke,B3e,wde),yZn;b(1717,1,{},ixn),o.i=0;var jZn;w(By,"ComponentsToCGraphTransformer",1717);var EZn;b(1718,1,{},z0n),o.yf=function(e,t){return y.Math.min(e.a!=null?$(e.a):e.c.i,t.a!=null?$(t.a):t.c.i)},o.zf=function(e,t){return y.Math.min(e.a!=null?$(e.a):e.c.i,t.a!=null?$(t.a):t.c.i)},w(By,"ComponentsToCGraphTransformer/1",1718),b(86,1,{86:1}),o.i=0,o.k=!0,o.o=li;var M_=w(c8,"CNode",86);b(470,86,{470:1,86:1},JX,uZ),o.Ib=function(){return""},w(By,"ComponentsToCGraphTransformer/CRectNode",470),b(1688,1,{},J0n);var T_,C_;w(By,"OneDimensionalComponentsCompaction",1688),b(1689,1,{},Q0n),o.Kb=function(e){return C2e(u(e,42))},o.Fb=function(e){return this===e},w(By,"OneDimensionalComponentsCompaction/lambda$0$Type",1689),b(1690,1,{},Y0n),o.Kb=function(e){return B5e(u(e,42))},o.Fb=function(e){return this===e},w(By,"OneDimensionalComponentsCompaction/lambda$1$Type",1690),b(1720,1,{},ZIn),w(c8,"CGraph",1720),b(194,1,{194:1},vx),o.b=0,o.c=0,o.e=0,o.g=!0,o.i=li,w(c8,"CGroup",194),b(1719,1,{},Z0n),o.yf=function(e,t){return y.Math.max(e.a!=null?$(e.a):e.c.i,t.a!=null?$(t.a):t.c.i)},o.zf=function(e,t){return y.Math.max(e.a!=null?$(e.a):e.c.i,t.a!=null?$(t.a):t.c.i)},w(c8,eXn,1719),b(1721,1,{},Z_n),o.d=!1;var MZn,S_=w(c8,rXn,1721);b(1722,1,{},nwn),o.Kb=function(e){return Nz(),_n(),u(u(e,42).a,86).d.e!=0},o.Fb=function(e){return this===e},w(c8,cXn,1722),b(833,1,{},oW),o.a=!1,o.b=!1,o.c=!1,o.d=!1,w(c8,uXn,833),b(1898,1,{},wIn),w(fP,oXn,1898);var aj=Dt(Ed,Zzn);b(1899,1,{382:1},WOn),o.bf=function(e){nSe(this,u(e,476))},w(fP,sXn,1899),b(ha,1,De,ewn),o.Ne=function(e,t){return fge(u(e,86),u(t,86))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(fP,fXn,ha),b(476,1,{476:1},Vz),o.a=!1,w(fP,hXn,476),b(1901,1,De,twn),o.Ne=function(e,t){return hke(u(e,476),u(t,476))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(fP,lXn,1901),b(148,1,{148:1},d4,UV),o.Fb=function(e){var t;return e==null||vDe!=wo(e)?!1:(t=u(e,148),mc(this.c,t.c)&&mc(this.d,t.d))},o.Hb=function(){return Ok(S(C(ki,1),Kn,1,5,[this.c,this.d]))},o.Ib=function(){return"("+this.c+ur+this.d+(this.a?"cx":"")+this.b+")"},o.a=!0,o.c=0,o.d=0;var vDe=w(Ed,"Point",148);b(416,22,{3:1,34:1,22:1,416:1},lM);var r0,Iw,d2,Ow,TZn=we(Ed,"Point/Quadrant",416,ke,Vpe,gde),CZn;b(1708,1,{},Hyn),o.b=null,o.c=null,o.d=null,o.e=null,o.f=null;var SZn,PZn,IZn,OZn,AZn;w(Ed,"RectilinearConvexHull",1708),b(583,1,{382:1},eS),o.bf=function(e){K4e(this,u(e,148))},o.b=0;var Aon;w(Ed,"RectilinearConvexHull/MaximalElementsEventHandler",583),b(1710,1,De,iwn),o.Ne=function(e,t){return hge(B(e),B(t))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Ed,"RectilinearConvexHull/MaximalElementsEventHandler/lambda$0$Type",1710),b(1709,1,{382:1},v$n),o.bf=function(e){wCe(this,u(e,148))},o.a=0,o.b=null,o.c=null,o.d=null,o.e=null,w(Ed,"RectilinearConvexHull/RectangleEventHandler",1709),b(1711,1,De,rwn),o.Ne=function(e,t){return mpe(u(e,148),u(t,148))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Ed,"RectilinearConvexHull/lambda$0$Type",1711),b(1712,1,De,own),o.Ne=function(e,t){return vpe(u(e,148),u(t,148))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Ed,"RectilinearConvexHull/lambda$1$Type",1712),b(1713,1,De,swn),o.Ne=function(e,t){return ppe(u(e,148),u(t,148))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Ed,"RectilinearConvexHull/lambda$2$Type",1713),b(1714,1,De,uwn),o.Ne=function(e,t){return kpe(u(e,148),u(t,148))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Ed,"RectilinearConvexHull/lambda$3$Type",1714),b(1715,1,De,fwn),o.Ne=function(e,t){return Qye(u(e,148),u(t,148))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Ed,"RectilinearConvexHull/lambda$4$Type",1715),b(1716,1,{},MAn),w(Ed,"Scanline",1716),b(2104,1,{}),w(Hf,"AbstractGraphPlacer",2104),b(335,1,{335:1},lSn),o.Ff=function(e){return this.Gf(e)?(In(this.b,u(v(e,(W(),Dl)),21),e),!0):!1},o.Gf=function(e){var t,i,r,c;for(t=u(v(e,(W(),Dl)),21),c=u(ot(wt,t),21),r=c.Kc();r.Ob();)if(i=u(r.Pb(),21),!u(ot(this.b,i),15).dc())return!1;return!0};var wt;w(Hf,"ComponentGroup",335),b(779,2104,{},WG),o.Hf=function(e){var t,i;for(i=new M(this.a);i.a<i.c.c.length;)if(t=u(E(i),335),t.Ff(e))return;nn(this.a,new lSn(e))},o.Ef=function(e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k;if(this.a.c.length=0,t.a.c.length=0,e.dc()){t.f.a=0,t.f.b=0;return}for(f=u(e.Xb(0),36),Ur(t,f),c=e.Kc();c.Ob();)r=u(c.Pb(),36),this.Hf(r);for(k=new Ni,s=$(B(v(f,(cn(),Cj)))),a=new M(this.a);a.a<a.c.c.length;)h=u(E(a),335),d=lzn(h,s),Zl(pT(h.b),k.a,k.b),k.a+=d.a,k.b+=d.b;if(t.f.a=k.a-s,t.f.b=k.b-s,on(un(v(f,sO)))&&x(v(f,$l))===x((El(),Bv))){for(m=e.Kc();m.Ob();)g=u(m.Pb(),36),Pm(g,g.c.a,g.c.b);for(i=new RA,stn(i,e,s),p=e.Kc();p.Ob();)g=u(p.Pb(),36),tt(ff(g.c),i.e);tt(ff(t.f),i.a)}for(l=new M(this.a);l.a<l.c.c.length;)h=u(E(l),335),YJ(t,pT(h.b))},w(Hf,"ComponentGroupGraphPlacer",779),b(1312,779,{},ejn),o.Hf=function(e){tKn(this,e)},o.Ef=function(e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D;if(this.a.c.length=0,t.a.c.length=0,e.dc()){t.f.a=0,t.f.b=0;return}for(f=u(e.Xb(0),36),Ur(t,f),c=e.Kc();c.Ob();)r=u(c.Pb(),36),tKn(this,r);for(D=new Ni,A=new Ni,j=new Ni,k=new Ni,s=$(B(v(f,(cn(),Cj)))),a=new M(this.a);a.a<a.c.c.length;){if(h=u(E(a),335),hl(u(v(t,(He(),_d)),88))){for(j.a=D.a,O=new n6(G6(aD(h.b).a).a.kc());O.b.Ob();)if(P=u(rM(O.b.Pb()),21),P.Hc((en(),Xn))){j.a=A.a;break}}else if(vg(u(v(t,_d),88))){for(j.b=D.b,O=new n6(G6(aD(h.b).a).a.kc());O.b.Ob();)if(P=u(rM(O.b.Pb()),21),P.Hc((en(),Wn))){j.b=A.b;break}}if(d=lzn(u(h,579),s),Zl(pT(h.b),j.a,j.b),hl(u(v(t,_d),88))){for(A.a=j.a+d.a,k.a=y.Math.max(k.a,A.a),O=new n6(G6(aD(h.b).a).a.kc());O.b.Ob();)if(P=u(rM(O.b.Pb()),21),P.Hc((en(),ae))){D.a=j.a+d.a;break}A.b=j.b+d.b,j.b=A.b,k.b=y.Math.max(k.b,j.b)}else if(vg(u(v(t,_d),88))){for(A.b=j.b+d.b,k.b=y.Math.max(k.b,A.b),O=new n6(G6(aD(h.b).a).a.kc());O.b.Ob();)if(P=u(rM(O.b.Pb()),21),P.Hc((en(),Zn))){D.b=j.b+d.b;break}A.a=j.a+d.a,j.a=A.a,k.a=y.Math.max(k.a,j.a)}}if(t.f.a=k.a-s,t.f.b=k.b-s,on(un(v(f,sO)))&&x(v(f,$l))===x((El(),Bv))){for(m=e.Kc();m.Ob();)g=u(m.Pb(),36),Pm(g,g.c.a,g.c.b);for(i=new RA,stn(i,e,s),p=e.Kc();p.Ob();)g=u(p.Pb(),36),tt(ff(g.c),i.e);tt(ff(t.f),i.a)}for(l=new M(this.a);l.a<l.c.c.length;)h=u(E(l),335),YJ(t,pT(h.b))},w(Hf,"ComponentGroupModelOrderGraphPlacer",1312),b(389,22,{3:1,34:1,22:1,389:1},aM);var P_,Lon,I_,Aw,Non=we(Hf,"ComponentOrderingStrategy",389,ke,qpe,pde),LZn;b(659,1,{},RA),w(Hf,"ComponentsCompactor",659),b(1533,13,Gzn,yNn),o.Fc=function(e){return O5(this,u(e,148))},w(Hf,"ComponentsCompactor/Hullpoints",1533),b(1530,1,{855:1},yBn),o.a=!1,w(Hf,"ComponentsCompactor/InternalComponent",1530),b(1529,1,qh,Fyn),o.Jc=function(e){qi(this,e)},o.Kc=function(){return new M(this.a)},w(Hf,"ComponentsCompactor/InternalConnectedComponents",1529),b(1532,1,{602:1},tHn),o.Bf=function(){return null},o.Cf=function(){return this.a},o.Af=function(){return Ex(this.d)},o.Df=function(){return this.b},w(Hf,"ComponentsCompactor/InternalExternalExtension",1532),b(1531,1,{602:1},Gyn),o.Cf=function(){return this.a},o.Af=function(){return Ex(this.d)},o.Bf=function(){return this.c},o.Df=function(){return this.b},w(Hf,"ComponentsCompactor/InternalUnionExternalExtension",1531),b(1535,1,{},Eqn),w(Hf,"ComponentsCompactor/OuterSegments",1535),b(1534,1,{},_yn),w(Hf,"ComponentsCompactor/Segments",1534),b(1282,1,{},$Nn),w(Hf,Utn,1282),b(1283,1,De,hwn),o.Ne=function(e,t){return Epe(u(e,36),u(t,36))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Hf,"ComponentsProcessor/lambda$0$Type",1283),b(579,335,{335:1,579:1},kNn),o.Ff=function(e){return oY(this,e)},o.Gf=function(e){return tqn(this,e)};var qe;w(Hf,"ModelOrderComponentGroup",579),b(1310,2104,{},lwn),o.Ef=function(e,t){var i,r,c,s,f,h,l,a,d,g,p;if(e.gc()==1){g=u(e.Xb(0),36),g!=t&&(t.a.c.length=0,sUn(t,g,0,0),Ur(t,g),VW(t.d,g.d),t.f.a=g.f.a,t.f.b=g.f.b);return}else if(e.dc()){t.a.c.length=0,t.f.a=0,t.f.b=0;return}for(this.Jf(e,t),c=u(e.Xb(0),36),t.a.c.length=0,Ur(t,c),a=0,p=0,f=e.Kc();f.Ob();)s=u(f.Pb(),36),d=s.f,a=y.Math.max(a,d.a),p+=d.a*d.b;if(a=y.Math.max(a,y.Math.sqrt(p)*$(B(v(t,(cn(),oO))))),r=$(B(v(t,Cj))),this.If(e,t,a,r),on(un(v(c,sO)))){for(i=new RA,stn(i,e,r),l=e.Kc();l.Ob();)h=u(l.Pb(),36),tt(ff(h.c),i.e);tt(ff(t.f),i.a)}YJ(t,e)},o.If=function(e,t,i,r){var c,s,f,h,l,a,d,g;for(d=0,g=0,h=0,c=r,f=e.Kc();f.Ob();)s=u(f.Pb(),36),a=s.f,d+a.a>i&&(d=0,g+=h+r,h=0),l=s.c,Pm(s,d+l.a,g+l.b),ff(l),c=y.Math.max(c,d+a.a),h=y.Math.max(h,a.b),d+=a.a+r;t.f.a=c,t.f.b=g+h},o.Jf=function(e,t){var i,r,c,s,f;if(x(v(t,(cn(),Rw)))===x((dd(),Aw))){for(r=e.Kc();r.Ob();){for(i=u(r.Pb(),36),f=0,s=new M(i.a);s.a<s.c.c.length;)c=u(E(s),10),f+=u(v(c,qte),17).a;i.p=f}Ln(),e.jd(new awn)}},w(Hf,"SimpleRowGraphPlacer",1310),b(1313,1310,{},cwn),o.If=function(e,t,i,r){var c,s,f,h,l,a,d,g,p,m;for(p=0,m=0,h=0,c=r,l=null,g=0,f=e.Kc();f.Ob();)s=u(f.Pb(),36),d=s.f,(p+d.a>i&&!u(v(s,(W(),Dl)),21).Hc((en(),Xn))||l&&u(v(l,(W(),Dl)),21).Hc((en(),Zn))||u(v(s,(W(),Dl)),21).Hc((en(),Wn)))&&(p=g,m+=h+r,h=0),a=s.c,u(v(s,(W(),Dl)),21).Hc((en(),Xn))&&(p=c+r),Pm(s,p+a.a,m+a.b),c=y.Math.max(c,p+d.a),u(v(s,Dl),21).Hc(ae)&&(g=y.Math.max(g,p+d.a+r)),ff(a),h=y.Math.max(h,d.b),p+=d.a+r,l=s;t.f.a=c,t.f.b=m+h},o.Jf=function(e,t){},w(Hf,"ModelOrderRowGraphPlacer",1313),b(1311,1,De,awn),o.Ne=function(e,t){return Rve(u(e,36),u(t,36))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Hf,"SimpleRowGraphPlacer/1",1311);var NZn;b(1280,1,ph,dwn),o.Lb=function(e){var t;return t=u(v(u(e,249).b,(cn(),Rr)),75),!!t&&t.b!=0},o.Fb=function(e){return this===e},o.Mb=function(e){var t;return t=u(v(u(e,249).b,(cn(),Rr)),75),!!t&&t.b!=0},w(hP,"CompoundGraphPostprocessor/1",1280),b(1279,1,vt,Xyn),o.Kf=function(e,t){jBn(this,u(e,36),t)},w(hP,"CompoundGraphPreprocessor",1279),b(453,1,{453:1},aKn),o.c=!1,w(hP,"CompoundGraphPreprocessor/ExternalPort",453),b(249,1,{249:1},zM),o.Ib=function(){return PN(this.c)+":"+X_n(this.b)},w(hP,"CrossHierarchyEdge",249),b(777,1,De,LG),o.Ne=function(e,t){return K7e(this,u(e,249),u(t,249))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(hP,"CrossHierarchyEdgeComparator",777),b(305,137,{3:1,305:1,96:1,137:1}),o.p=0,w(Kc,"LGraphElement",305),b(18,305,{3:1,18:1,305:1,96:1,137:1},Eb),o.Ib=function(){return X_n(this)};var O_=w(Kc,"LEdge",18);b(36,305,{3:1,20:1,36:1,305:1,96:1,137:1},jQ),o.Jc=function(e){qi(this,e)},o.Kc=function(){return new M(this.b)},o.Ib=function(){return this.b.c.length==0?"G-unlayered"+ca(this.a):this.a.c.length==0?"G-layered"+ca(this.b):"G[layerless"+ca(this.a)+", layers"+ca(this.b)+"]"};var DZn=w(Kc,"LGraph",36),$Zn;b(666,1,{}),o.Lf=function(){return this.e.n},o.of=function(e){return v(this.e,e)},o.Mf=function(){return this.e.o},o.Nf=function(){return this.e.p},o.pf=function(e){return kt(this.e,e)},o.Of=function(e){this.e.n.a=e.a,this.e.n.b=e.b},o.Pf=function(e){this.e.o.a=e.a,this.e.o.b=e.b},o.Qf=function(e){this.e.p=e},w(Kc,"LGraphAdapters/AbstractLShapeAdapter",666),b(474,1,{853:1},Vv),o.Rf=function(){var e,t;if(!this.b)for(this.b=Lh(this.a.b.c.length),t=new M(this.a.b);t.a<t.c.c.length;)e=u(E(t),72),nn(this.b,new AE(e));return this.b},o.b=null,w(Kc,"LGraphAdapters/LEdgeAdapter",474),b(665,1,{},kD),o.Sf=function(){var e,t,i,r,c,s;if(!this.b){for(this.b=new Z,r=new M(this.a.b);r.a<r.c.c.length;)for(i=u(E(r),30),s=new M(i.a);s.a<s.c.c.length;)if(c=u(E(s),10),this.c.Mb(c)&&(nn(this.b,new XM(this,c,this.e)),this.d)){if(kt(c,(W(),I3)))for(t=u(v(c,I3),15).Kc();t.Ob();)e=u(t.Pb(),10),nn(this.b,new XM(this,e,!1));if(kt(c,M3))for(t=u(v(c,M3),15).Kc();t.Ob();)e=u(t.Pb(),10),nn(this.b,new XM(this,e,!1))}}return this.b},o.Lf=function(){throw T(new Fl(AXn))},o.of=function(e){return v(this.a,e)},o.Mf=function(){return this.a.f},o.Nf=function(){return this.a.p},o.pf=function(e){return kt(this.a,e)},o.Of=function(e){throw T(new Fl(AXn))},o.Pf=function(e){this.a.f.a=e.a,this.a.f.b=e.b},o.Qf=function(e){this.a.p=e},o.b=null,o.d=!1,o.e=!1,w(Kc,"LGraphAdapters/LGraphAdapter",665),b(585,666,{187:1},AE),w(Kc,"LGraphAdapters/LLabelAdapter",585),b(584,666,{695:1},XM),o.Tf=function(){return this.b},o.Uf=function(){return Ln(),Ln(),sr},o.Rf=function(){var e,t;if(!this.a)for(this.a=Lh(u(this.e,10).b.c.length),t=new M(u(this.e,10).b);t.a<t.c.c.length;)e=u(E(t),72),nn(this.a,new AE(e));return this.a},o.Vf=function(){var e;return e=u(this.e,10).d,new pV(e.d,e.c,e.a,e.b)},o.Wf=function(){return Ln(),Ln(),sr},o.Xf=function(){var e,t;if(!this.c)for(this.c=Lh(u(this.e,10).j.c.length),t=new M(u(this.e,10).j);t.a<t.c.c.length;)e=u(E(t),12),nn(this.c,new xMn(e,this.d));return this.c},o.Yf=function(){return on(un(v(u(this.e,10),(W(),Zsn))))},o.Zf=function(e){u(this.e,10).d.b=e.b,u(this.e,10).d.d=e.d,u(this.e,10).d.c=e.c,u(this.e,10).d.a=e.a},o.$f=function(e){u(this.e,10).f.b=e.b,u(this.e,10).f.d=e.d,u(this.e,10).f.c=e.c,u(this.e,10).f.a=e.a},o._f=function(){Dme(this,(u6(),$Zn))},o.a=null,o.b=null,o.c=null,o.d=!1,w(Kc,"LGraphAdapters/LNodeAdapter",584),b(1788,666,{852:1},xMn),o.Uf=function(){var e,t,i,r,c,s,f,h;if(this.d&&u(this.e,12).i.k==(Vn(),_c))return Ln(),Ln(),sr;if(!this.a){for(this.a=new Z,i=new M(u(this.e,12).e);i.a<i.c.c.length;)e=u(E(i),18),nn(this.a,new Vv(e));if(this.d&&(r=u(v(u(this.e,12),(W(),Xu)),10),r))for(t=new ie(ce(ji(r).a.Kc(),new En));pe(t);)e=u(fe(t),18),nn(this.a,new Vv(e));if(kt(u(this.e,12).i,(W(),h0))&&(f=u(v(u(this.e,12).i,h0),337),h=u(Df(f.e,this.e),113),h))for(s=new M(h.b);s.a<s.c.c.length;)c=u(E(s),340),nn(this.a,new Vv(c.a))}return this.a},o.Rf=function(){var e,t;if(!this.b)for(this.b=Lh(u(this.e,12).f.c.length),t=new M(u(this.e,12).f);t.a<t.c.c.length;)e=u(E(t),72),nn(this.b,new AE(e));return this.b},o.Wf=function(){var e,t,i,r,c,s,f,h;if(this.d&&u(this.e,12).i.k==(Vn(),_c))return Ln(),Ln(),sr;if(!this.c){for(this.c=new Z,i=new M(u(this.e,12).g);i.a<i.c.c.length;)e=u(E(i),18),nn(this.c,new Vv(e));if(this.d&&(r=u(v(u(this.e,12),(W(),Xu)),10),r))for(t=new ie(ce(Qt(r).a.Kc(),new En));pe(t);)e=u(fe(t),18),nn(this.c,new Vv(e));if(kt(u(this.e,12).i,(W(),h0))&&(f=u(v(u(this.e,12).i,h0),337),h=u(Df(f.e,this.e),113),h))for(s=new M(h.e);s.a<s.c.c.length;)c=u(E(s),340),nn(this.c,new Vv(c.a))}return this.c},o.ag=function(){return u(this.e,12).j},o.bg=function(){return on(un(v(u(this.e,12),(W(),yj))))},o.a=null,o.b=null,o.c=null,o.d=!1,w(Kc,"LGraphAdapters/LPortAdapter",1788),b(1789,1,De,bwn),o.Ne=function(e,t){return ISe(u(e,12),u(t,12))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Kc,"LGraphAdapters/PortComparator",1789),b(818,1,Le,HU),o.Mb=function(e){return u(e,10),u6(),!0},w(Kc,"LGraphAdapters/lambda$0$Type",818),b(404,305,{3:1,305:1,404:1,96:1,137:1}),w(Kc,"LShape",404),b(72,404,{3:1,305:1,72:1,404:1,96:1,137:1},Yjn,AX),o.Ib=function(){var e;return e=m0e(this),e==null?"label":"l_"+e},w(Kc,"LLabel",72),b(214,1,{3:1,4:1,214:1,423:1}),o.Fb=function(e){var t;return L(e,214)?(t=u(e,214),this.d==t.d&&this.a==t.a&&this.b==t.b&&this.c==t.c):!1},o.Hb=function(){var e,t;return e=pp(this.b)<<16,e|=pp(this.a)&ui,t=pp(this.c)<<16,t|=pp(this.d)&ui,e^t},o.cg=function(e){var t,i,r,c,s,f,h,l,a,d,g;for(s=0;s<e.length&&qRn((zn(s,e.length),e.charCodeAt(s)),NXn);)++s;for(t=e.length;t>0&&qRn((zn(t-1,e.length),e.charCodeAt(t-1)),DXn);)--t;if(s<t){d=ww((Ri(s,t,e.length),e.substr(s,t-s)),",|;");try{for(h=d,l=0,a=h.length;l<a;++l){if(f=h[l],c=ww(f,"="),c.length!=2)throw T(new Gn("Expecting a list of key-value pairs."));r=fw(c[0]),g=sw(fw(c[1])),Sn(r,"top")?this.d=g:Sn(r,"left")?this.b=g:Sn(r,"bottom")?this.a=g:Sn(r,"right")&&(this.c=g)}}catch(p){throw p=Ot(p),L(p,130)?(i=p,T(new Gn($Xn+i))):T(p)}}},o.Ib=function(){return"[top="+this.d+",left="+this.b+",bottom="+this.a+",right="+this.c+"]"},o.a=0,o.b=0,o.c=0,o.d=0,w(Fy,"Spacing",214),b(140,214,xXn,Qv,tCn,pV,qN);var Don=w(Fy,"ElkMargin",140);b(660,140,xXn,sL),w(Kc,"LMargin",660),b(10,404,{3:1,305:1,10:1,404:1,96:1,137:1},Cl),o.Ib=function(){return wBn(this)},o.i=!1;var Qh=w(Kc,"LNode",10);b(273,22,{3:1,34:1,22:1,273:1},b6);var Gf,Zt,Sc,Ti,zt,_c,A_=we(Kc,"LNode/NodeType",273,ke,M4e,jbe),xZn;b(775,1,Le,qU),o.Mb=function(e){return on(un(v(u(e,72),(cn(),jH))))},w(Kc,"LNode/lambda$0$Type",775),b(107,214,RXn,up,fb,_V);var $on=w(Fy,"ElkPadding",107);b(778,107,RXn,ZG),w(Kc,"LPadding",778),b(12,404,{3:1,305:1,12:1,404:1,96:1,137:1},Ic),o.Ib=function(){var e,t,i;return e=new x1,Be((e.a+="p_",e),lS(this)),this.i&&Be(Lc((e.a+="[",e),this.i),"]"),this.e.c.length==1&&this.g.c.length==0&&u(sn(this.e,0),18).c!=this&&(t=u(sn(this.e,0),18).c,Be((e.a+=" << ",e),lS(t)),Be(Lc((e.a+="[",e),t.i),"]")),this.e.c.length==0&&this.g.c.length==1&&u(sn(this.g,0),18).d!=this&&(i=u(sn(this.g,0),18).d,Be((e.a+=" >> ",e),lS(i)),Be(Lc((e.a+="[",e),i.i),"]")),e.a},o.c=!0,o.d=!1;var xon,Ron,Kon,Bon,Fon,_on,RZn=w(Kc,"LPort",12);b(408,1,qh,e4),o.Jc=function(e){qi(this,e)},o.Kc=function(){var e;return e=new M(this.a.e),new _9n(e)},w(Kc,"LPort/1",408),b(1309,1,Pi,_9n),o.Nb=function(e){_i(this,e)},o.Pb=function(){return u(E(this.a),18).c},o.Ob=function(){return tc(this.a)},o.Qb=function(){q6(this.a)},w(Kc,"LPort/1/1",1309),b(369,1,qh,ip),o.Jc=function(e){qi(this,e)},o.Kc=function(){var e;return e=new M(this.a.g),new NG(e)},w(Kc,"LPort/2",369),b(776,1,Pi,NG),o.Nb=function(e){_i(this,e)},o.Pb=function(){return u(E(this.a),18).d},o.Ob=function(){return tc(this.a)},o.Qb=function(){q6(this.a)},w(Kc,"LPort/2/1",776),b(1302,1,qh,OMn),o.Jc=function(e){qi(this,e)},o.Kc=function(){return new Lf(this)},w(Kc,"LPort/CombineIter",1302),b(208,1,Pi,Lf),o.Nb=function(e){_i(this,e)},o.Qb=function(){sEn()},o.Ob=function(){return L6(this)},o.Pb=function(){return tc(this.a)?E(this.a):E(this.b)},w(Kc,"LPort/CombineIter/1",208),b(1303,1,ph,wwn),o.Lb=function(e){return IIn(e)},o.Fb=function(e){return this===e},o.Mb=function(e){return Au(),u(e,12).g.c.length!=0},w(Kc,"LPort/lambda$0$Type",1303),b(1304,1,ph,gwn),o.Lb=function(e){return OIn(e)},o.Fb=function(e){return this===e},o.Mb=function(e){return Au(),u(e,12).e.c.length!=0},w(Kc,"LPort/lambda$1$Type",1304),b(1305,1,ph,pwn),o.Lb=function(e){return Au(),u(e,12).j==(en(),Xn)},o.Fb=function(e){return this===e},o.Mb=function(e){return Au(),u(e,12).j==(en(),Xn)},w(Kc,"LPort/lambda$2$Type",1305),b(1306,1,ph,mwn),o.Lb=function(e){return Au(),u(e,12).j==(en(),Zn)},o.Fb=function(e){return this===e},o.Mb=function(e){return Au(),u(e,12).j==(en(),Zn)},w(Kc,"LPort/lambda$3$Type",1306),b(1307,1,ph,vwn),o.Lb=function(e){return Au(),u(e,12).j==(en(),ae)},o.Fb=function(e){return this===e},o.Mb=function(e){return Au(),u(e,12).j==(en(),ae)},w(Kc,"LPort/lambda$4$Type",1307),b(1308,1,ph,kwn),o.Lb=function(e){return Au(),u(e,12).j==(en(),Wn)},o.Fb=function(e){return this===e},o.Mb=function(e){return Au(),u(e,12).j==(en(),Wn)},w(Kc,"LPort/lambda$5$Type",1308),b(30,305,{3:1,20:1,305:1,30:1,96:1,137:1},Nc),o.Jc=function(e){qi(this,e)},o.Kc=function(){return new M(this.a)},o.Ib=function(){return"L_"+qr(this.b.b,this,0)+ca(this.a)},w(Kc,"Layer",30),b(1330,1,{},zyn),w(w1,KXn,1330),b(1334,1,{},ywn),o.Kb=function(e){return Gr(u(e,84))},w(w1,"ElkGraphImporter/0methodref$connectableShapeToNode$Type",1334),b(1337,1,{},jwn),o.Kb=function(e){return Gr(u(e,84))},w(w1,"ElkGraphImporter/1methodref$connectableShapeToNode$Type",1337),b(1331,1,re,H9n),o.Cd=function(e){hHn(this.a,u(e,123))},w(w1,Gtn,1331),b(1332,1,re,q9n),o.Cd=function(e){hHn(this.a,u(e,123))},w(w1,BXn,1332),b(1333,1,{},Ewn),o.Kb=function(e){return new Cn(null,new On(qW(u(e,74)),16))},w(w1,FXn,1333),b(1335,1,Le,U9n),o.Mb=function(e){return _le(this.a,u(e,27))},w(w1,_Xn,1335),b(1336,1,{},Mwn),o.Kb=function(e){return new Cn(null,new On(rge(u(e,74)),16))},w(w1,"ElkGraphImporter/lambda$5$Type",1336),b(1338,1,Le,G9n),o.Mb=function(e){return Hle(this.a,u(e,27))},w(w1,"ElkGraphImporter/lambda$7$Type",1338),b(1339,1,Le,Twn),o.Mb=function(e){return mge(u(e,74))},w(w1,"ElkGraphImporter/lambda$8$Type",1339),b(1297,1,{},K5n);var KZn;w(w1,"ElkGraphLayoutTransferrer",1297),b(1298,1,Le,z9n),o.Mb=function(e){return Oae(this.a,u(e,18))},w(w1,"ElkGraphLayoutTransferrer/lambda$0$Type",1298),b(1299,1,re,X9n),o.Cd=function(e){c7(),nn(this.a,u(e,18))},w(w1,"ElkGraphLayoutTransferrer/lambda$1$Type",1299),b(1300,1,Le,V9n),o.Mb=function(e){return wae(this.a,u(e,18))},w(w1,"ElkGraphLayoutTransferrer/lambda$2$Type",1300),b(1301,1,re,W9n),o.Cd=function(e){c7(),nn(this.a,u(e,18))},w(w1,"ElkGraphLayoutTransferrer/lambda$3$Type",1301),b(819,1,{},vV),w(Qn,"BiLinkedHashMultiMap",819),b(1550,1,vt,Cwn),o.Kf=function(e,t){ive(u(e,36),t)},w(Qn,"CommentNodeMarginCalculator",1550),b(1551,1,{},Swn),o.Kb=function(e){return new Cn(null,new On(u(e,30).a,16))},w(Qn,"CommentNodeMarginCalculator/lambda$0$Type",1551),b(1552,1,re,Pwn),o.Cd=function(e){iOe(u(e,10))},w(Qn,"CommentNodeMarginCalculator/lambda$1$Type",1552),b(1553,1,vt,Iwn),o.Kf=function(e,t){oSe(u(e,36),t)},w(Qn,"CommentPostprocessor",1553),b(1554,1,vt,Own),o.Kf=function(e,t){ILe(u(e,36),t)},w(Qn,"CommentPreprocessor",1554),b(1555,1,vt,Awn),o.Kf=function(e,t){MCe(u(e,36),t)},w(Qn,"ConstraintsPostprocessor",1555),b(1556,1,vt,Lwn),o.Kf=function(e,t){Ave(u(e,36),t)},w(Qn,"EdgeAndLayerConstraintEdgeReverser",1556),b(1557,1,vt,Nwn),o.Kf=function(e,t){y8e(u(e,36),t)},w(Qn,"EndLabelPostprocessor",1557),b(1558,1,{},Dwn),o.Kb=function(e){return new Cn(null,new On(u(e,30).a,16))},w(Qn,"EndLabelPostprocessor/lambda$0$Type",1558),b(1559,1,Le,$wn),o.Mb=function(e){return x3e(u(e,10))},w(Qn,"EndLabelPostprocessor/lambda$1$Type",1559),b(1560,1,re,xwn),o.Cd=function(e){lke(u(e,10))},w(Qn,"EndLabelPostprocessor/lambda$2$Type",1560),b(1561,1,vt,Rwn),o.Kf=function(e,t){Zje(u(e,36),t)},w(Qn,"EndLabelPreprocessor",1561),b(1562,1,{},Kwn),o.Kb=function(e){return new Cn(null,new On(u(e,30).a,16))},w(Qn,"EndLabelPreprocessor/lambda$0$Type",1562),b(1563,1,re,pPn),o.Cd=function(e){nle(this.a,this.b,this.c,u(e,10))},o.a=0,o.b=0,o.c=!1,w(Qn,"EndLabelPreprocessor/lambda$1$Type",1563),b(1564,1,Le,Bwn),o.Mb=function(e){return x(v(u(e,72),(cn(),Sh)))===x(($f(),Kv))},w(Qn,"EndLabelPreprocessor/lambda$2$Type",1564),b(1565,1,re,J9n),o.Cd=function(e){Re(this.a,u(e,72))},w(Qn,"EndLabelPreprocessor/lambda$3$Type",1565),b(1566,1,Le,Fwn),o.Mb=function(e){return x(v(u(e,72),(cn(),Sh)))===x(($f(),Jw))},w(Qn,"EndLabelPreprocessor/lambda$4$Type",1566),b(1567,1,re,Q9n),o.Cd=function(e){Re(this.a,u(e,72))},w(Qn,"EndLabelPreprocessor/lambda$5$Type",1567),b(1615,1,vt,O5n),o.Kf=function(e,t){k5e(u(e,36),t)};var BZn;w(Qn,"EndLabelSorter",1615),b(1616,1,De,_wn),o.Ne=function(e,t){return Z8e(u(e,466),u(t,466))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Qn,"EndLabelSorter/1",1616),b(466,1,{466:1},qOn),w(Qn,"EndLabelSorter/LabelGroup",466),b(1617,1,{},Hwn),o.Kb=function(e){return r7(),new Cn(null,new On(u(e,30).a,16))},w(Qn,"EndLabelSorter/lambda$0$Type",1617),b(1618,1,Le,qwn),o.Mb=function(e){return r7(),u(e,10).k==(Vn(),zt)},w(Qn,"EndLabelSorter/lambda$1$Type",1618),b(1619,1,re,Uwn),o.Cd=function(e){dje(u(e,10))},w(Qn,"EndLabelSorter/lambda$2$Type",1619),b(1620,1,Le,Gwn),o.Mb=function(e){return r7(),x(v(u(e,72),(cn(),Sh)))===x(($f(),Jw))},w(Qn,"EndLabelSorter/lambda$3$Type",1620),b(1621,1,Le,zwn),o.Mb=function(e){return r7(),x(v(u(e,72),(cn(),Sh)))===x(($f(),Kv))},w(Qn,"EndLabelSorter/lambda$4$Type",1621),b(1568,1,vt,Xwn),o.Kf=function(e,t){mOe(this,u(e,36))},o.b=0,o.c=0,w(Qn,"FinalSplineBendpointsCalculator",1568),b(1569,1,{},Vwn),o.Kb=function(e){return new Cn(null,new On(u(e,30).a,16))},w(Qn,"FinalSplineBendpointsCalculator/lambda$0$Type",1569),b(1570,1,{},Wwn),o.Kb=function(e){return new Cn(null,new pb(new ie(ce(Qt(u(e,10)).a.Kc(),new En))))},w(Qn,"FinalSplineBendpointsCalculator/lambda$1$Type",1570),b(1571,1,Le,Jwn),o.Mb=function(e){return!fr(u(e,18))},w(Qn,"FinalSplineBendpointsCalculator/lambda$2$Type",1571),b(1572,1,Le,Qwn),o.Mb=function(e){return kt(u(e,18),(W(),Ld))},w(Qn,"FinalSplineBendpointsCalculator/lambda$3$Type",1572),b(1573,1,re,Y9n),o.Cd=function(e){SPe(this.a,u(e,131))},w(Qn,"FinalSplineBendpointsCalculator/lambda$4$Type",1573),b(1574,1,re,Ywn),o.Cd=function(e){Yk(u(e,18).a)},w(Qn,"FinalSplineBendpointsCalculator/lambda$5$Type",1574),b(803,1,vt,DG),o.Kf=function(e,t){lAe(this,u(e,36),t)},w(Qn,"GraphTransformer",803),b(517,22,{3:1,34:1,22:1,517:1},Xz);var L_,dj,FZn=we(Qn,"GraphTransformer/Mode",517,ke,Fge,ybe),_Zn;b(1575,1,vt,Zwn),o.Kf=function(e,t){NTe(u(e,36),t)},w(Qn,"HierarchicalNodeResizingProcessor",1575),b(1576,1,vt,ngn),o.Kf=function(e,t){Yme(u(e,36),t)},w(Qn,"HierarchicalPortConstraintProcessor",1576),b(1577,1,De,egn),o.Ne=function(e,t){return k9e(u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Qn,"HierarchicalPortConstraintProcessor/NodeComparator",1577),b(1578,1,vt,tgn),o.Kf=function(e,t){yIe(u(e,36),t)},w(Qn,"HierarchicalPortDummySizeProcessor",1578),b(1579,1,vt,ign),o.Kf=function(e,t){ASe(this,u(e,36),t)},o.a=0,w(Qn,"HierarchicalPortOrthogonalEdgeRouter",1579),b(1580,1,De,rgn),o.Ne=function(e,t){return N1e(u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Qn,"HierarchicalPortOrthogonalEdgeRouter/1",1580),b(1581,1,De,cgn),o.Ne=function(e,t){return B4e(u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Qn,"HierarchicalPortOrthogonalEdgeRouter/2",1581),b(1582,1,vt,ugn),o.Kf=function(e,t){Vye(u(e,36),t)},w(Qn,"HierarchicalPortPositionProcessor",1582),b(1583,1,vt,B5n),o.Kf=function(e,t){hNe(this,u(e,36))},o.a=0,o.c=0;var MI,TI;w(Qn,"HighDegreeNodeLayeringProcessor",1583),b(580,1,{580:1},ogn),o.b=-1,o.d=-1,w(Qn,"HighDegreeNodeLayeringProcessor/HighDegreeNodeInformation",580),b(1584,1,{},sgn),o.Kb=function(e){return N7(),ji(u(e,10))},o.Fb=function(e){return this===e},w(Qn,"HighDegreeNodeLayeringProcessor/lambda$0$Type",1584),b(1585,1,{},fgn),o.Kb=function(e){return N7(),Qt(u(e,10))},o.Fb=function(e){return this===e},w(Qn,"HighDegreeNodeLayeringProcessor/lambda$1$Type",1585),b(1591,1,vt,hgn),o.Kf=function(e,t){dIe(this,u(e,36),t)},w(Qn,"HyperedgeDummyMerger",1591),b(804,1,{},DV),o.a=!1,o.b=!1,o.c=!1,w(Qn,"HyperedgeDummyMerger/MergeState",804),b(1592,1,{},lgn),o.Kb=function(e){return new Cn(null,new On(u(e,30).a,16))},w(Qn,"HyperedgeDummyMerger/lambda$0$Type",1592),b(1593,1,{},agn),o.Kb=function(e){return new Cn(null,new On(u(e,10).j,16))},w(Qn,"HyperedgeDummyMerger/lambda$1$Type",1593),b(1594,1,re,dgn),o.Cd=function(e){u(e,12).p=-1},w(Qn,"HyperedgeDummyMerger/lambda$2$Type",1594),b(1595,1,vt,bgn),o.Kf=function(e,t){lIe(u(e,36),t)},w(Qn,"HypernodesProcessor",1595),b(1596,1,vt,wgn),o.Kf=function(e,t){kIe(u(e,36),t)},w(Qn,"InLayerConstraintProcessor",1596),b(1597,1,vt,ggn),o.Kf=function(e,t){dve(u(e,36),t)},w(Qn,"InnermostNodeMarginCalculator",1597),b(1598,1,vt,pgn),o.Kf=function(e,t){TLe(this,u(e,36))},o.a=li,o.b=li,o.c=Pt,o.d=Pt;var kDe=w(Qn,"InteractiveExternalPortPositioner",1598);b(1599,1,{},mgn),o.Kb=function(e){return u(e,18).d.i},o.Fb=function(e){return this===e},w(Qn,"InteractiveExternalPortPositioner/lambda$0$Type",1599),b(1600,1,{},Z9n),o.Kb=function(e){return D1e(this.a,B(e))},o.Fb=function(e){return this===e},w(Qn,"InteractiveExternalPortPositioner/lambda$1$Type",1600),b(1601,1,{},vgn),o.Kb=function(e){return u(e,18).c.i},o.Fb=function(e){return this===e},w(Qn,"InteractiveExternalPortPositioner/lambda$2$Type",1601),b(1602,1,{},n7n),o.Kb=function(e){return $1e(this.a,B(e))},o.Fb=function(e){return this===e},w(Qn,"InteractiveExternalPortPositioner/lambda$3$Type",1602),b(1603,1,{},e7n),o.Kb=function(e){return Lae(this.a,B(e))},o.Fb=function(e){return this===e},w(Qn,"InteractiveExternalPortPositioner/lambda$4$Type",1603),b(1604,1,{},t7n),o.Kb=function(e){return Nae(this.a,B(e))},o.Fb=function(e){return this===e},w(Qn,"InteractiveExternalPortPositioner/lambda$5$Type",1604),b(81,22,{3:1,34:1,22:1,81:1,196:1},ei),o.dg=function(){switch(this.g){case 15:return new xpn;case 22:return new Rpn;case 47:return new Fpn;case 28:case 35:return new Ogn;case 32:return new Cwn;case 42:return new Iwn;case 1:return new Own;case 41:return new Awn;case 56:return new DG((V4(),dj));case 0:return new DG((V4(),L_));case 2:return new Lwn;case 54:return new Nwn;case 33:return new Rwn;case 51:return new Xwn;case 55:return new Zwn;case 13:return new ngn;case 38:return new tgn;case 44:return new ign;case 40:return new ugn;case 9:return new B5n;case 49:return new tSn;case 37:return new hgn;case 43:return new bgn;case 27:return new wgn;case 30:return new ggn;case 3:return new pgn;case 18:return new ygn;case 29:return new jgn;case 5:return new F5n;case 50:return new kgn;case 34:return new _5n;case 36:return new Agn;case 52:return new O5n;case 11:return new Lgn;case 7:return new H5n;case 39:return new Ngn;case 45:return new Dgn;case 16:return new $gn;case 10:return new VMn;case 48:return new Bgn;case 21:return new Fgn;case 23:return new gL((Ab(),Z8));case 8:return new Hgn;case 12:return new Ugn;case 4:return new Ggn;case 19:return new V5n;case 17:return new e2n;case 53:return new t2n;case 6:return new b2n;case 25:return new Wyn;case 46:return new o2n;case 31:return new USn;case 14:return new j2n;case 26:return new qpn;case 20:return new S2n;case 24:return new gL((Ab(),IO));default:throw T(new Gn(cB+(this.f!=null?this.f:""+this.g)))}};var Hon,qon,Uon,Gon,zon,Xon,Von,Won,Jon,Qon,b2,CI,SI,Yon,Zon,nsn,esn,tsn,isn,rsn,N8,csn,usn,osn,ssn,fsn,N_,PI,II,hsn,OI,AI,LI,hv,Lw,Nw,lsn,NI,DI,asn,$I,xI,dsn,bsn,wsn,gsn,RI,D_,bj,KI,BI,FI,_I,psn,msn,vsn,ksn,yDe=we(Qn,uB,81,ke,iqn,kde),HZn;b(1605,1,vt,ygn),o.Kf=function(e,t){ELe(u(e,36),t)},w(Qn,"InvertedPortProcessor",1605),b(1606,1,vt,jgn),o.Kf=function(e,t){vPe(u(e,36),t)},w(Qn,"LabelAndNodeSizeProcessor",1606),b(1607,1,Le,Egn),o.Mb=function(e){return u(e,10).k==(Vn(),zt)},w(Qn,"LabelAndNodeSizeProcessor/lambda$0$Type",1607),b(1608,1,Le,Mgn),o.Mb=function(e){return u(e,10).k==(Vn(),Zt)},w(Qn,"LabelAndNodeSizeProcessor/lambda$1$Type",1608),b(1609,1,re,mPn),o.Cd=function(e){ele(this.b,this.a,this.c,u(e,10))},o.a=!1,o.c=!1,w(Qn,"LabelAndNodeSizeProcessor/lambda$2$Type",1609),b(1610,1,vt,F5n),o.Kf=function(e,t){WAe(u(e,36),t)};var qZn;w(Qn,"LabelDummyInserter",1610),b(1611,1,ph,Tgn),o.Lb=function(e){return x(v(u(e,72),(cn(),Sh)))===x(($f(),Rv))},o.Fb=function(e){return this===e},o.Mb=function(e){return x(v(u(e,72),(cn(),Sh)))===x(($f(),Rv))},w(Qn,"LabelDummyInserter/1",1611),b(1612,1,vt,kgn),o.Kf=function(e,t){RAe(u(e,36),t)},w(Qn,"LabelDummyRemover",1612),b(1613,1,Le,Cgn),o.Mb=function(e){return on(un(v(u(e,72),(cn(),jH))))},w(Qn,"LabelDummyRemover/lambda$0$Type",1613),b(1378,1,vt,_5n),o.Kf=function(e,t){IAe(this,u(e,36),t)},o.a=null;var $_;w(Qn,"LabelDummySwitcher",1378),b(293,1,{293:1},tUn),o.c=0,o.d=null,o.f=0,w(Qn,"LabelDummySwitcher/LabelDummyInfo",293),b(1379,1,{},Sgn),o.Kb=function(e){return Hp(),new Cn(null,new On(u(e,30).a,16))},w(Qn,"LabelDummySwitcher/lambda$0$Type",1379),b(1380,1,Le,Pgn),o.Mb=function(e){return Hp(),u(e,10).k==(Vn(),Sc)},w(Qn,"LabelDummySwitcher/lambda$1$Type",1380),b(1381,1,{},i7n),o.Kb=function(e){return gae(this.a,u(e,10))},w(Qn,"LabelDummySwitcher/lambda$2$Type",1381),b(1382,1,re,r7n),o.Cd=function(e){xwe(this.a,u(e,293))},w(Qn,"LabelDummySwitcher/lambda$3$Type",1382),b(1383,1,De,Ign),o.Ne=function(e,t){return uwe(u(e,293),u(t,293))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Qn,"LabelDummySwitcher/lambda$4$Type",1383),b(802,1,vt,Ogn),o.Kf=function(e,t){m4e(u(e,36),t)},w(Qn,"LabelManagementProcessor",802),b(1614,1,vt,Agn),o.Kf=function(e,t){WCe(u(e,36),t)},w(Qn,"LabelSideSelector",1614),b(1622,1,vt,Lgn),o.Kf=function(e,t){xIe(u(e,36),t)},w(Qn,"LayerConstraintPostprocessor",1622),b(1623,1,vt,H5n),o.Kf=function(e,t){AMe(u(e,36),t)};var ysn;w(Qn,"LayerConstraintPreprocessor",1623),b(371,22,{3:1,34:1,22:1,371:1},dM);var wj,HI,qI,x_,UZn=we(Qn,"LayerConstraintPreprocessor/HiddenNodeConnections",371,ke,Jpe,yde),GZn;b(1624,1,vt,Ngn),o.Kf=function(e,t){ZOe(u(e,36),t)},w(Qn,"LayerSizeAndGraphHeightCalculator",1624),b(1625,1,vt,Dgn),o.Kf=function(e,t){DTe(u(e,36),t)},w(Qn,"LongEdgeJoiner",1625),b(1626,1,vt,$gn),o.Kf=function(e,t){IOe(u(e,36),t)},w(Qn,"LongEdgeSplitter",1626),b(1627,1,vt,VMn),o.Kf=function(e,t){hLe(this,u(e,36),t)},o.e=0,o.f=0,o.j=0,o.k=0,o.n=0,o.o=0;var zZn,XZn;w(Qn,"NodePromotion",1627),b(1628,1,De,xgn),o.Ne=function(e,t){return E6e(u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Qn,"NodePromotion/1",1628),b(1629,1,De,Rgn),o.Ne=function(e,t){return M6e(u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Qn,"NodePromotion/2",1629),b(1630,1,{},Kgn),o.Kb=function(e){return u(e,42),VM(),_n(),!0},o.Fb=function(e){return this===e},w(Qn,"NodePromotion/lambda$0$Type",1630),b(1631,1,{},s7n),o.Kb=function(e){return v2e(this.a,u(e,42))},o.Fb=function(e){return this===e},o.a=0,w(Qn,"NodePromotion/lambda$1$Type",1631),b(1632,1,{},f7n),o.Kb=function(e){return m2e(this.a,u(e,42))},o.Fb=function(e){return this===e},o.a=0,w(Qn,"NodePromotion/lambda$2$Type",1632),b(1633,1,vt,Bgn),o.Kf=function(e,t){rNe(u(e,36),t)},w(Qn,"NorthSouthPortPostprocessor",1633),b(1634,1,vt,Fgn),o.Kf=function(e,t){KLe(u(e,36),t)},w(Qn,"NorthSouthPortPreprocessor",1634),b(1635,1,De,_gn),o.Ne=function(e,t){return Kve(u(e,12),u(t,12))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Qn,"NorthSouthPortPreprocessor/lambda$0$Type",1635),b(1636,1,vt,Hgn),o.Kf=function(e,t){nIe(u(e,36),t)},w(Qn,"PartitionMidprocessor",1636),b(1637,1,Le,qgn),o.Mb=function(e){return kt(u(e,10),(cn(),Mv))},w(Qn,"PartitionMidprocessor/lambda$0$Type",1637),b(1638,1,re,h7n),o.Cd=function(e){vge(this.a,u(e,10))},w(Qn,"PartitionMidprocessor/lambda$1$Type",1638),b(1639,1,vt,Ugn),o.Kf=function(e,t){eCe(u(e,36),t)},w(Qn,"PartitionPostprocessor",1639),b(1640,1,vt,Ggn),o.Kf=function(e,t){wMe(u(e,36),t)},w(Qn,"PartitionPreprocessor",1640),b(1641,1,Le,zgn),o.Mb=function(e){return kt(u(e,10),(cn(),Mv))},w(Qn,"PartitionPreprocessor/lambda$0$Type",1641),b(1642,1,{},Xgn),o.Kb=function(e){return new Cn(null,new pb(new ie(ce(Qt(u(e,10)).a.Kc(),new En))))},w(Qn,"PartitionPreprocessor/lambda$1$Type",1642),b(1643,1,Le,Vgn),o.Mb=function(e){return c9e(u(e,18))},w(Qn,"PartitionPreprocessor/lambda$2$Type",1643),b(1644,1,re,Wgn),o.Cd=function(e){e6e(u(e,18))},w(Qn,"PartitionPreprocessor/lambda$3$Type",1644),b(1645,1,vt,V5n),o.Kf=function(e,t){DPe(u(e,36),t)};var jsn,VZn,WZn,JZn,Esn,Msn;w(Qn,"PortListSorter",1645),b(1648,1,De,Jgn),o.Ne=function(e,t){return XLn(u(e,12),u(t,12))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Qn,"PortListSorter/lambda$0$Type",1648),b(1650,1,De,Qgn),o.Ne=function(e,t){return CUn(u(e,12),u(t,12))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Qn,"PortListSorter/lambda$1$Type",1650),b(1646,1,{},Ygn),o.Kb=function(e){return cm(),u(e,12).e},w(Qn,"PortListSorter/lambda$2$Type",1646),b(1647,1,{},Zgn),o.Kb=function(e){return cm(),u(e,12).g},w(Qn,"PortListSorter/lambda$3$Type",1647),b(1649,1,De,n2n),o.Ne=function(e,t){return I7e(u(e,12),u(t,12))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Qn,"PortListSorter/lambda$4$Type",1649),b(1651,1,vt,e2n),o.Kf=function(e,t){UMe(u(e,36),t)},w(Qn,"PortSideProcessor",1651),b(1652,1,vt,t2n),o.Kf=function(e,t){GSe(u(e,36),t)},w(Qn,"ReversedEdgeRestorer",1652),b(1657,1,vt,Wyn),o.Kf=function(e,t){l7e(this,u(e,36),t)},w(Qn,"SelfLoopPortRestorer",1657),b(1658,1,{},i2n),o.Kb=function(e){return new Cn(null,new On(u(e,30).a,16))},w(Qn,"SelfLoopPortRestorer/lambda$0$Type",1658),b(1659,1,Le,r2n),o.Mb=function(e){return u(e,10).k==(Vn(),zt)},w(Qn,"SelfLoopPortRestorer/lambda$1$Type",1659),b(1660,1,Le,c2n),o.Mb=function(e){return kt(u(e,10),(W(),h0))},w(Qn,"SelfLoopPortRestorer/lambda$2$Type",1660),b(1661,1,{},u2n),o.Kb=function(e){return u(v(u(e,10),(W(),h0)),337)},w(Qn,"SelfLoopPortRestorer/lambda$3$Type",1661),b(1662,1,re,u7n),o.Cd=function(e){Cje(this.a,u(e,337))},w(Qn,"SelfLoopPortRestorer/lambda$4$Type",1662),b(805,1,re,UU),o.Cd=function(e){Bje(u(e,105))},w(Qn,"SelfLoopPortRestorer/lambda$5$Type",805),b(1663,1,vt,o2n),o.Kf=function(e,t){p9e(u(e,36),t)},w(Qn,"SelfLoopPostProcessor",1663),b(1664,1,{},s2n),o.Kb=function(e){return new Cn(null,new On(u(e,30).a,16))},w(Qn,"SelfLoopPostProcessor/lambda$0$Type",1664),b(1665,1,Le,f2n),o.Mb=function(e){return u(e,10).k==(Vn(),zt)},w(Qn,"SelfLoopPostProcessor/lambda$1$Type",1665),b(1666,1,Le,h2n),o.Mb=function(e){return kt(u(e,10),(W(),h0))},w(Qn,"SelfLoopPostProcessor/lambda$2$Type",1666),b(1667,1,re,l2n),o.Cd=function(e){Pke(u(e,10))},w(Qn,"SelfLoopPostProcessor/lambda$3$Type",1667),b(1668,1,{},a2n),o.Kb=function(e){return new Cn(null,new On(u(e,105).f,1))},w(Qn,"SelfLoopPostProcessor/lambda$4$Type",1668),b(1669,1,re,c7n),o.Cd=function(e){n3e(this.a,u(e,340))},w(Qn,"SelfLoopPostProcessor/lambda$5$Type",1669),b(1670,1,Le,d2n),o.Mb=function(e){return!!u(e,105).i},w(Qn,"SelfLoopPostProcessor/lambda$6$Type",1670),b(1671,1,re,o7n),o.Cd=function(e){nhe(this.a,u(e,105))},w(Qn,"SelfLoopPostProcessor/lambda$7$Type",1671),b(1653,1,vt,b2n),o.Kf=function(e,t){vTe(u(e,36),t)},w(Qn,"SelfLoopPreProcessor",1653),b(1654,1,{},w2n),o.Kb=function(e){return new Cn(null,new On(u(e,105).f,1))},w(Qn,"SelfLoopPreProcessor/lambda$0$Type",1654),b(1655,1,{},g2n),o.Kb=function(e){return u(e,340).a},w(Qn,"SelfLoopPreProcessor/lambda$1$Type",1655),b(1656,1,re,p2n),o.Cd=function(e){i1e(u(e,18))},w(Qn,"SelfLoopPreProcessor/lambda$2$Type",1656),b(1672,1,vt,USn),o.Kf=function(e,t){oje(this,u(e,36),t)},w(Qn,"SelfLoopRouter",1672),b(1673,1,{},m2n),o.Kb=function(e){return new Cn(null,new On(u(e,30).a,16))},w(Qn,"SelfLoopRouter/lambda$0$Type",1673),b(1674,1,Le,v2n),o.Mb=function(e){return u(e,10).k==(Vn(),zt)},w(Qn,"SelfLoopRouter/lambda$1$Type",1674),b(1675,1,Le,k2n),o.Mb=function(e){return kt(u(e,10),(W(),h0))},w(Qn,"SelfLoopRouter/lambda$2$Type",1675),b(1676,1,{},y2n),o.Kb=function(e){return u(v(u(e,10),(W(),h0)),337)},w(Qn,"SelfLoopRouter/lambda$3$Type",1676),b(1677,1,re,PMn),o.Cd=function(e){dge(this.a,this.b,u(e,337))},w(Qn,"SelfLoopRouter/lambda$4$Type",1677),b(1678,1,vt,j2n),o.Kf=function(e,t){RCe(u(e,36),t)},w(Qn,"SemiInteractiveCrossMinProcessor",1678),b(1679,1,Le,E2n),o.Mb=function(e){return u(e,10).k==(Vn(),zt)},w(Qn,"SemiInteractiveCrossMinProcessor/lambda$0$Type",1679),b(1680,1,Le,M2n),o.Mb=function(e){return oIn(u(e,10))._b((cn(),Hw))},w(Qn,"SemiInteractiveCrossMinProcessor/lambda$1$Type",1680),b(1681,1,De,T2n),o.Ne=function(e,t){return nve(u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Qn,"SemiInteractiveCrossMinProcessor/lambda$2$Type",1681),b(1682,1,{},C2n),o.Ve=function(e,t){return kge(u(e,10),u(t,10))},w(Qn,"SemiInteractiveCrossMinProcessor/lambda$3$Type",1682),b(1684,1,vt,S2n),o.Kf=function(e,t){oOe(u(e,36),t)},w(Qn,"SortByInputModelProcessor",1684),b(1685,1,Le,P2n),o.Mb=function(e){return u(e,12).g.c.length!=0},w(Qn,"SortByInputModelProcessor/lambda$0$Type",1685),b(1686,1,re,l7n),o.Cd=function(e){Uje(this.a,u(e,12))},w(Qn,"SortByInputModelProcessor/lambda$1$Type",1686),b(1759,817,{},pxn),o.df=function(e){var t,i,r,c;switch(this.c=e,this.a.g){case 2:t=new Z,qt(ut(new Cn(null,new On(this.c.a.b,16)),new H2n),new RMn(this,t)),Zk(this,new O2n),nu(t,new A2n),t.c.length=0,qt(ut(new Cn(null,new On(this.c.a.b,16)),new L2n),new d7n(t)),Zk(this,new N2n),nu(t,new D2n),t.c.length=0,i=mCn(A$(U0(new Cn(null,new On(this.c.a.b,16)),new b7n(this))),new $2n),qt(new Cn(null,new On(this.c.a.a,16)),new AMn(i,t)),Zk(this,new R2n),nu(t,new K2n),t.c.length=0;break;case 3:r=new Z,Zk(this,new I2n),c=mCn(A$(U0(new Cn(null,new On(this.c.a.b,16)),new a7n(this))),new x2n),qt(ut(new Cn(null,new On(this.c.a.b,16)),new B2n),new NMn(c,r)),Zk(this,new F2n),nu(r,new _2n),r.c.length=0;break;default:throw T(new xyn)}},o.b=0,w(di,"EdgeAwareScanlineConstraintCalculation",1759),b(1760,1,ph,I2n),o.Lb=function(e){return L(u(e,60).g,154)},o.Fb=function(e){return this===e},o.Mb=function(e){return L(u(e,60).g,154)},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$0$Type",1760),b(1761,1,{},a7n),o.Ye=function(e){return SEe(this.a,u(e,60))},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$1$Type",1761),b(1769,1,JS,IMn),o.de=function(){I5(this.a,this.b,-1)},o.b=0,w(di,"EdgeAwareScanlineConstraintCalculation/lambda$10$Type",1769),b(1771,1,ph,O2n),o.Lb=function(e){return L(u(e,60).g,154)},o.Fb=function(e){return this===e},o.Mb=function(e){return L(u(e,60).g,154)},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$11$Type",1771),b(1772,1,re,A2n),o.Cd=function(e){u(e,380).de()},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$12$Type",1772),b(1773,1,Le,L2n),o.Mb=function(e){return L(u(e,60).g,10)},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$13$Type",1773),b(1775,1,re,d7n),o.Cd=function(e){X5e(this.a,u(e,60))},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$14$Type",1775),b(1774,1,JS,DMn),o.de=function(){I5(this.b,this.a,-1)},o.a=0,w(di,"EdgeAwareScanlineConstraintCalculation/lambda$15$Type",1774),b(1776,1,ph,N2n),o.Lb=function(e){return L(u(e,60).g,10)},o.Fb=function(e){return this===e},o.Mb=function(e){return L(u(e,60).g,10)},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$16$Type",1776),b(1777,1,re,D2n),o.Cd=function(e){u(e,380).de()},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$17$Type",1777),b(1778,1,{},b7n),o.Ye=function(e){return PEe(this.a,u(e,60))},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$18$Type",1778),b(1779,1,{},$2n),o.We=function(){return 0},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$19$Type",1779),b(1762,1,{},x2n),o.We=function(){return 0},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$2$Type",1762),b(1781,1,re,AMn),o.Cd=function(e){Y0e(this.a,this.b,u(e,316))},o.a=0,w(di,"EdgeAwareScanlineConstraintCalculation/lambda$20$Type",1781),b(1780,1,JS,LMn),o.de=function(){LHn(this.a,this.b,-1)},o.b=0,w(di,"EdgeAwareScanlineConstraintCalculation/lambda$21$Type",1780),b(1782,1,ph,R2n),o.Lb=function(e){return u(e,60),!0},o.Fb=function(e){return this===e},o.Mb=function(e){return u(e,60),!0},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$22$Type",1782),b(1783,1,re,K2n),o.Cd=function(e){u(e,380).de()},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$23$Type",1783),b(1763,1,Le,B2n),o.Mb=function(e){return L(u(e,60).g,10)},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$3$Type",1763),b(1765,1,re,NMn),o.Cd=function(e){Z0e(this.a,this.b,u(e,60))},o.a=0,w(di,"EdgeAwareScanlineConstraintCalculation/lambda$4$Type",1765),b(1764,1,JS,$Mn),o.de=function(){I5(this.b,this.a,-1)},o.a=0,w(di,"EdgeAwareScanlineConstraintCalculation/lambda$5$Type",1764),b(1766,1,ph,F2n),o.Lb=function(e){return u(e,60),!0},o.Fb=function(e){return this===e},o.Mb=function(e){return u(e,60),!0},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$6$Type",1766),b(1767,1,re,_2n),o.Cd=function(e){u(e,380).de()},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$7$Type",1767),b(1768,1,Le,H2n),o.Mb=function(e){return L(u(e,60).g,154)},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$8$Type",1768),b(1770,1,re,RMn),o.Cd=function(e){pme(this.a,this.b,u(e,60))},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$9$Type",1770),b(1586,1,vt,tSn),o.Kf=function(e,t){$Oe(this,u(e,36),t)};var QZn;w(di,"HorizontalGraphCompactor",1586),b(1587,1,{},w7n),o.ff=function(e,t){var i,r,c;return iQ(e,t)||(i=Ig(e),r=Ig(t),i&&i.k==(Vn(),Zt)||r&&r.k==(Vn(),Zt))?0:(c=u(v(this.a.a,(W(),E2)),312),B1e(c,i?i.k:(Vn(),Ti),r?r.k:(Vn(),Ti)))},o.gf=function(e,t){var i,r,c;return iQ(e,t)?1:(i=Ig(e),r=Ig(t),c=u(v(this.a.a,(W(),E2)),312),VX(c,i?i.k:(Vn(),Ti),r?r.k:(Vn(),Ti)))},w(di,"HorizontalGraphCompactor/1",1587),b(1588,1,{},q2n),o.ef=function(e,t){return o6(),e.a.i==0},w(di,"HorizontalGraphCompactor/lambda$0$Type",1588),b(1589,1,{},g7n),o.ef=function(e,t){return Ege(this.a,e,t)},w(di,"HorizontalGraphCompactor/lambda$1$Type",1589),b(1730,1,{},zDn);var YZn,ZZn;w(di,"LGraphToCGraphTransformer",1730),b(1738,1,Le,U2n),o.Mb=function(e){return e!=null},w(di,"LGraphToCGraphTransformer/0methodref$nonNull$Type",1738),b(1731,1,{},G2n),o.Kb=function(e){return Rs(),Jr(v(u(u(e,60).g,10),(W(),st)))},w(di,"LGraphToCGraphTransformer/lambda$0$Type",1731),b(1732,1,{},z2n),o.Kb=function(e){return Rs(),iKn(u(u(e,60).g,154))},w(di,"LGraphToCGraphTransformer/lambda$1$Type",1732),b(1741,1,Le,X2n),o.Mb=function(e){return Rs(),L(u(e,60).g,10)},w(di,"LGraphToCGraphTransformer/lambda$10$Type",1741),b(1742,1,re,V2n),o.Cd=function(e){Pge(u(e,60))},w(di,"LGraphToCGraphTransformer/lambda$11$Type",1742),b(1743,1,Le,W2n),o.Mb=function(e){return Rs(),L(u(e,60).g,154)},w(di,"LGraphToCGraphTransformer/lambda$12$Type",1743),b(1747,1,re,J2n),o.Cd=function(e){c5e(u(e,60))},w(di,"LGraphToCGraphTransformer/lambda$13$Type",1747),b(1744,1,re,p7n),o.Cd=function(e){Lle(this.a,u(e,8))},o.a=0,w(di,"LGraphToCGraphTransformer/lambda$14$Type",1744),b(1745,1,re,m7n),o.Cd=function(e){Dle(this.a,u(e,116))},o.a=0,w(di,"LGraphToCGraphTransformer/lambda$15$Type",1745),b(1746,1,re,v7n),o.Cd=function(e){Nle(this.a,u(e,8))},o.a=0,w(di,"LGraphToCGraphTransformer/lambda$16$Type",1746),b(1748,1,{},Q2n),o.Kb=function(e){return Rs(),new Cn(null,new pb(new ie(ce(Qt(u(e,10)).a.Kc(),new En))))},w(di,"LGraphToCGraphTransformer/lambda$17$Type",1748),b(1749,1,Le,Y2n),o.Mb=function(e){return Rs(),fr(u(e,18))},w(di,"LGraphToCGraphTransformer/lambda$18$Type",1749),b(1750,1,re,k7n),o.Cd=function(e){W4e(this.a,u(e,18))},w(di,"LGraphToCGraphTransformer/lambda$19$Type",1750),b(1734,1,re,y7n),o.Cd=function(e){jpe(this.a,u(e,154))},w(di,"LGraphToCGraphTransformer/lambda$2$Type",1734),b(1751,1,{},Z2n),o.Kb=function(e){return Rs(),new Cn(null,new On(u(e,30).a,16))},w(di,"LGraphToCGraphTransformer/lambda$20$Type",1751),b(1752,1,{},npn),o.Kb=function(e){return Rs(),new Cn(null,new pb(new ie(ce(Qt(u(e,10)).a.Kc(),new En))))},w(di,"LGraphToCGraphTransformer/lambda$21$Type",1752),b(1753,1,{},epn),o.Kb=function(e){return Rs(),u(v(u(e,18),(W(),Ld)),15)},w(di,"LGraphToCGraphTransformer/lambda$22$Type",1753),b(1754,1,Le,tpn),o.Mb=function(e){return F1e(u(e,15))},w(di,"LGraphToCGraphTransformer/lambda$23$Type",1754),b(1755,1,re,j7n),o.Cd=function(e){gEe(this.a,u(e,15))},w(di,"LGraphToCGraphTransformer/lambda$24$Type",1755),b(1733,1,re,KMn),o.Cd=function(e){v3e(this.a,this.b,u(e,154))},w(di,"LGraphToCGraphTransformer/lambda$3$Type",1733),b(1735,1,{},ipn),o.Kb=function(e){return Rs(),new Cn(null,new On(u(e,30).a,16))},w(di,"LGraphToCGraphTransformer/lambda$4$Type",1735),b(1736,1,{},rpn),o.Kb=function(e){return Rs(),new Cn(null,new pb(new ie(ce(Qt(u(e,10)).a.Kc(),new En))))},w(di,"LGraphToCGraphTransformer/lambda$5$Type",1736),b(1737,1,{},cpn),o.Kb=function(e){return Rs(),u(v(u(e,18),(W(),Ld)),15)},w(di,"LGraphToCGraphTransformer/lambda$6$Type",1737),b(1739,1,re,E7n),o.Cd=function(e){IEe(this.a,u(e,15))},w(di,"LGraphToCGraphTransformer/lambda$8$Type",1739),b(1740,1,re,BMn),o.Cd=function(e){r1e(this.a,this.b,u(e,154))},w(di,"LGraphToCGraphTransformer/lambda$9$Type",1740),b(1729,1,{},upn),o.cf=function(e){var t,i,r,c,s;for(this.a=e,this.d=new oL,this.c=F(ion,Kn,125,this.a.a.a.c.length,0,1),this.b=0,i=new M(this.a.a.a);i.a<i.c.c.length;)t=u(E(i),316),t.d=this.b,s=hb(i7(new za,t),this.d),this.c[this.b]=s,++this.b;for(zAe(this),zLe(this),WTe(this),IR(KN(this.d),new op),c=new M(this.a.a.b);c.a<c.c.c.length;)r=u(E(c),60),r.d.c=this.c[r.a.d].e+r.b.a},o.b=0,w(di,"NetworkSimplexCompaction",1729),b(154,1,{34:1,154:1},q5),o.Fd=function(e){return ume(this,u(e,154))},o.Ib=function(){return iKn(this)},w(di,"VerticalSegment",154),b(841,1,{},WZ),o.c=0,o.e=0,o.i=0,w(u8,"BetweenLayerEdgeTwoNodeCrossingsCounter",841),b(677,1,{677:1},Axn),o.Ib=function(){return"AdjacencyList [node="+this.d+", adjacencies= "+this.a+"]"},o.b=0,o.c=0,o.f=0,w(u8,"BetweenLayerEdgeTwoNodeCrossingsCounter/AdjacencyList",677),b(294,1,{34:1,294:1},hSn),o.Fd=function(e){return j0e(this,u(e,294))},o.Ib=function(){return"Adjacency [position="+this.c+", cardinality="+this.a+", currentCardinality="+this.b+"]"},o.a=0,o.b=0,o.c=0,w(u8,"BetweenLayerEdgeTwoNodeCrossingsCounter/AdjacencyList/Adjacency",294),b(2026,1,{},s_n),o.b=0,o.e=!1,w(u8,"CrossingMatrixFiller",2026);var nne=Dt(Vh,"IInitializable");b(1867,1,_y,_Mn),o.gg=function(e,t,i,r,c,s){},o.ig=function(e,t,i){},o.eg=function(){return this.c!=(Ab(),Z8)},o.fg=function(){this.e=F(ye,_e,28,this.d,15,1)},o.hg=function(e,t){t[e][0].c.p=e},o.jg=function(e,t,i,r){++this.d},o.kg=function(){return!0},o.lg=function(e,t,i,r){return WRn(this,e,t,i),A3e(this,t)},o.mg=function(e,t){var i;return i=Phe(t,e.length),WRn(this,e,i,t),lRn(this,i)},o.d=0,w(u8,"GreedySwitchHeuristic",1867),b(2029,1,{},rIn),o.b=0,o.d=0,w(u8,"NorthSouthEdgeNeighbouringNodeCrossingsCounter",2029),b(2016,1,{},Fqn),o.a=!1,w(u8,"SwitchDecider",2016),b(105,1,{105:1},g_n),o.a=null,o.c=null,o.i=null,w(w3,"SelfHyperLoop",105),b(2013,1,{},iBn),o.c=0,o.e=0,w(w3,"SelfHyperLoopLabels",2013),b(421,22,{3:1,34:1,22:1,421:1},bM);var j3,lv,av,R_,ene=we(w3,"SelfHyperLoopLabels/Alignment",421,ke,Wpe,jde),tne;b(340,1,{340:1},xNn),w(w3,"SelfLoopEdge",340),b(337,1,{337:1},rBn),o.a=!1,w(w3,"SelfLoopHolder",337),b(1790,1,Le,mpn),o.Mb=function(e){return fr(u(e,18))},w(w3,"SelfLoopHolder/lambda$0$Type",1790),b(113,1,{113:1},fBn),o.a=!1,o.c=!1,w(w3,"SelfLoopPort",113),b(1855,1,Le,vpn),o.Mb=function(e){return fr(u(e,18))},w(w3,"SelfLoopPort/lambda$0$Type",1855),b(375,22,{3:1,34:1,22:1,375:1},s7);var UI,gj,GI,zI,XI,ine=we(w3,"SelfLoopType",375,ke,F3e,Ede),rne;b(1798,1,{},Z5n);var cne,une,one,sne;w(Oo,"PortRestorer",1798),b(372,22,{3:1,34:1,22:1,372:1},FL);var c0,va,u0,K_=we(Oo,"PortRestorer/PortSideArea",372,ke,x2e,vde),fne;b(1799,1,{},spn),o.Kb=function(e){return ua(),u(e,15).Oc()},w(Oo,"PortRestorer/lambda$0$Type",1799),b(1800,1,re,fpn),o.Cd=function(e){ua(),u(e,113).c=!1},w(Oo,"PortRestorer/lambda$1$Type",1800),b(1809,1,Le,hpn),o.Mb=function(e){return ua(),u(e,12).j==(en(),Wn)},w(Oo,"PortRestorer/lambda$10$Type",1809),b(1810,1,{},lpn),o.Kb=function(e){return ua(),u(e,113).d},w(Oo,"PortRestorer/lambda$11$Type",1810),b(1811,1,re,M7n),o.Cd=function(e){Nhe(this.a,u(e,12))},w(Oo,"PortRestorer/lambda$12$Type",1811),b(1801,1,re,T7n),o.Cd=function(e){W1e(this.a,u(e,105))},w(Oo,"PortRestorer/lambda$2$Type",1801),b(1802,1,De,apn),o.Ne=function(e,t){return Ime(u(e,113),u(t,113))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Oo,"PortRestorer/lambda$3$Type",1802),b(1803,1,Le,dpn),o.Mb=function(e){return ua(),u(e,113).c},w(Oo,"PortRestorer/lambda$4$Type",1803),b(1804,1,Le,bpn),o.Mb=function(e){return kve(u(e,12))},w(Oo,"PortRestorer/lambda$5$Type",1804),b(1805,1,Le,opn),o.Mb=function(e){return ua(),u(e,12).j==(en(),Xn)},w(Oo,"PortRestorer/lambda$6$Type",1805),b(1806,1,Le,wpn),o.Mb=function(e){return ua(),u(e,12).j==(en(),Zn)},w(Oo,"PortRestorer/lambda$7$Type",1806),b(1807,1,Le,gpn),o.Mb=function(e){return Zpe(u(e,12))},w(Oo,"PortRestorer/lambda$8$Type",1807),b(1808,1,Le,ppn),o.Mb=function(e){return ua(),u(e,12).j==(en(),ae)},w(Oo,"PortRestorer/lambda$9$Type",1808),b(276,22,{3:1,34:1,22:1,276:1},Ap);var B_,F_,__,H_,q_,U_,G_,z_,Tsn=we(Oo,"PortSideAssigner/Target",276,ke,wme,Mde),hne;b(1791,1,{},ypn),o.Kb=function(e){return ut(new Cn(null,new On(u(e,105).j,16)),new GU)},w(Oo,"PortSideAssigner/lambda$1$Type",1791),b(1792,1,{},jpn),o.Kb=function(e){return u(e,113).d},w(Oo,"PortSideAssigner/lambda$2$Type",1792),b(1793,1,re,Epn),o.Cd=function(e){gi(u(e,12),(en(),Xn))},w(Oo,"PortSideAssigner/lambda$3$Type",1793),b(1794,1,{},Mpn),o.Kb=function(e){return u(e,113).d},w(Oo,"PortSideAssigner/lambda$4$Type",1794),b(1795,1,re,C7n),o.Cd=function(e){Ffe(this.a,u(e,12))},w(Oo,"PortSideAssigner/lambda$5$Type",1795),b(1796,1,De,kpn),o.Ne=function(e,t){return Uwe(u(e,105),u(t,105))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Oo,"PortSideAssigner/lambda$6$Type",1796),b(1797,1,De,Tpn),o.Ne=function(e,t){return d0e(u(e,113),u(t,113))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Oo,"PortSideAssigner/lambda$7$Type",1797),b(820,1,Le,GU),o.Mb=function(e){return u(e,113).c},w(Oo,"PortSideAssigner/lambda$8$Type",820),b(2108,1,{}),w(aa,"AbstractSelfLoopRouter",2108),b(1816,1,De,Cpn),o.Ne=function(e,t){return Gae(u(e,105),u(t,105))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(aa,bXn,1816),b(1817,1,De,Spn),o.Ne=function(e,t){return Uae(u(e,105),u(t,105))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(aa,wXn,1817),b(1856,2108,{},Ppn),o.ng=function(e,t,i){return i},w(aa,"OrthogonalSelfLoopRouter",1856),b(1858,1,re,FMn),o.Cd=function(e){cZ(this.b,this.a,u(e,8))},w(aa,"OrthogonalSelfLoopRouter/lambda$0$Type",1858),b(1857,1856,{},Ipn),o.ng=function(e,t,i){var r,c;return r=e.c.d,g4(i,0,tt(Fi(r.n),r.a)),c=e.d.d,Re(i,tt(Fi(c.n),c.a)),VPe(i)},w(aa,"PolylineSelfLoopRouter",1857),b(1812,1,{},n8n),o.a=null;var w2;w(aa,"RoutingDirector",1812),b(1813,1,De,Opn),o.Ne=function(e,t){return h0e(u(e,113),u(t,113))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(aa,"RoutingDirector/lambda$0$Type",1813),b(1814,1,{},Apn),o.Kb=function(e){return ZE(),u(e,105).j},w(aa,"RoutingDirector/lambda$1$Type",1814),b(1815,1,re,Lpn),o.Cd=function(e){ZE(),u(e,15).jd(w2)},w(aa,"RoutingDirector/lambda$2$Type",1815),b(1818,1,{},Npn),w(aa,"RoutingSlotAssigner",1818),b(1819,1,Le,S7n),o.Mb=function(e){return wle(this.a,u(e,105))},w(aa,"RoutingSlotAssigner/lambda$0$Type",1819),b(1820,1,De,P7n),o.Ne=function(e,t){return B0e(this.a,u(e,105),u(t,105))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(aa,"RoutingSlotAssigner/lambda$1$Type",1820),b(1859,1856,{},Dpn),o.ng=function(e,t,i){var r,c,s,f;return r=$(B(nS(e.b.g.b,(cn(),C2)))),f=new aSn(S(C(Ei,1),J,8,0,[(s=e.c.d,tt(new rr(s.n),s.a))])),ETe(e,t,i,f,r),Re(f,(c=e.d.d,tt(new rr(c.n),c.a))),IBn(new _en(f))},w(aa,"SplineSelfLoopRouter",1859),b(586,1,De,wxn,NPn),o.Ne=function(e,t){return dzn(this,u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(iin,"ModelOrderNodeComparator",586),b(1821,1,Le,$pn),o.Mb=function(e){return u(e,12).e.c.length!=0},w(iin,"ModelOrderNodeComparator/lambda$0$Type",1821),b(821,1,De,URn,CLn),o.Ne=function(e,t){return PIn(this,e,t)},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},o.b=!1,w(iin,"ModelOrderPortComparator",821),b(815,1,{},zU),o.og=function(e,t){var i,r,c,s;for(c=r_n(t),i=new Z,s=t.f/c,r=1;r<c;++r)nn(i,Y(Se(vc(y.Math.round(r*s)))));return i},o.pg=function(){return!1},w(yh,"ARDCutIndexHeuristic",815),b(1544,1,vt,xpn),o.Kf=function(e,t){aPe(u(e,36),t)},w(yh,"BreakingPointInserter",1544),b(313,1,{313:1},jJ),o.Ib=function(){var e;return e=new x1,e.a+="BPInfo[",e.a+=`
start=`,Lc(e,this.i),e.a+=`
end=`,Lc(e,this.a),e.a+=`
nodeStartEdge=`,Lc(e,this.e),e.a+=`
startEndEdge=`,Lc(e,this.j),e.a+=`
originalEdge=`,Lc(e,this.f),e.a+=`
startInLayerDummy=`,Lc(e,this.k),e.a+=`
startInLayerEdge=`,Lc(e,this.n),e.a+=`
endInLayerDummy=`,Lc(e,this.b),e.a+=`
endInLayerEdge=`,Lc(e,this.c),e.a},w(yh,"BreakingPointInserter/BPInfo",313),b(661,1,{661:1},K7n),o.a=!1,o.b=0,o.c=0,w(yh,"BreakingPointInserter/Cut",661),b(1545,1,vt,Rpn),o.Kf=function(e,t){PTe(u(e,36),t)},w(yh,"BreakingPointProcessor",1545),b(1546,1,Le,Kpn),o.Mb=function(e){return r$n(u(e,10))},w(yh,"BreakingPointProcessor/0methodref$isEnd$Type",1546),b(1547,1,Le,Bpn),o.Mb=function(e){return c$n(u(e,10))},w(yh,"BreakingPointProcessor/1methodref$isStart$Type",1547),b(1548,1,vt,Fpn),o.Kf=function(e,t){JTe(this,u(e,36),t)},w(yh,"BreakingPointRemover",1548),b(1549,1,re,_pn),o.Cd=function(e){u(e,131).k=!0},w(yh,"BreakingPointRemover/lambda$0$Type",1549),b(811,1,{},Gnn),o.b=0,o.e=0,o.f=0,o.j=0,w(yh,"GraphStats",811),b(812,1,{},XU),o.Ve=function(e,t){return y.Math.max($(B(e)),$(B(t)))},w(yh,"GraphStats/0methodref$max$Type",812),b(813,1,{},VU),o.Ve=function(e,t){return y.Math.max($(B(e)),$(B(t)))},w(yh,"GraphStats/2methodref$max$Type",813),b(1726,1,{},Hpn),o.Ve=function(e,t){return Qbe(B(e),B(t))},w(yh,"GraphStats/lambda$1$Type",1726),b(1727,1,{},I7n),o.Kb=function(e){return hBn(this.a,u(e,30))},w(yh,"GraphStats/lambda$2$Type",1727),b(1728,1,{},O7n),o.Kb=function(e){return eqn(this.a,u(e,30))},w(yh,"GraphStats/lambda$6$Type",1728),b(814,1,{},WU),o.og=function(e,t){var i;return i=u(v(e,(cn(),yhn)),15),i||(Ln(),Ln(),sr)},o.pg=function(){return!1},w(yh,"ICutIndexCalculator/ManualCutIndexCalculator",814),b(816,1,{},JU),o.og=function(e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_;for(_=(t.n==null&&KBn(t),t.n),l=(t.d==null&&KBn(t),t.d),D=F(Ii,Cr,28,_.length,15,1),D[0]=_[0],O=_[0],a=1;a<_.length;a++)D[a]=D[a-1]+_[a],O+=_[a];for(c=r_n(t)-1,f=u(v(e,(cn(),jhn)),17).a,r=li,i=new Z,p=y.Math.max(0,c-f);p<=y.Math.min(t.f-1,c+f);p++){if(j=O/(p+1),P=0,d=1,s=new Z,A=li,g=0,h=0,k=l[0],p==0)A=O,h=(t.g==null&&(t.g=Exn(t,new VU)),$(t.g));else{for(;d<t.f;)D[d-1]-P>=j&&(nn(s,Y(d)),A=y.Math.max(A,D[d-1]-g),h+=k,P+=D[d-1]-P,g=D[d-1],k=l[d]),k=y.Math.max(k,l[d]),++d;h+=k}m=y.Math.min(1/A,1/t.b/h),m>r&&(r=m,i=s)}return i},o.pg=function(){return!1},w(yh,"MSDCutIndexHeuristic",816),b(1683,1,vt,qpn),o.Kf=function(e,t){KIe(u(e,36),t)},w(yh,"SingleEdgeGraphWrapper",1683),b(232,22,{3:1,34:1,22:1,232:1},w6);var g2,dv,bv,Dw,D8,p2,wv=we(Cc,"CenterEdgeLabelPlacementStrategy",232,ke,E4e,Tde),lne;b(431,22,{3:1,34:1,22:1,431:1},Wz);var Csn,X_,Ssn=we(Cc,"ConstraintCalculationStrategy",431,ke,qge,Cde),ane;b(322,22,{3:1,34:1,22:1,322:1,188:1,196:1},_L),o.dg=function(){return F_n(this)},o.qg=function(){return F_n(this)};var pj,$8,Psn,Isn=we(Cc,"CrossingMinimizationStrategy",322,ke,R2e,Sde),dne;b(351,22,{3:1,34:1,22:1,351:1},HL);var Osn,V_,VI,Asn=we(Cc,"CuttingStrategy",351,ke,K2e,Pde),bne;b(348,22,{3:1,34:1,22:1,348:1,188:1,196:1},f7),o.dg=function(){return OHn(this)},o.qg=function(){return OHn(this)};var Lsn,W_,gv,J_,pv,Nsn=we(Cc,"CycleBreakingStrategy",348,ke,_3e,Ide),wne;b(428,22,{3:1,34:1,22:1,428:1},Jz);var WI,Dsn,$sn=we(Cc,"DirectionCongruency",428,ke,Hge,Ode),gne;b(460,22,{3:1,34:1,22:1,460:1},qL);var mv,Q_,m2,pne=we(Cc,"EdgeConstraint",460,ke,B2e,Rde),mne;b(283,22,{3:1,34:1,22:1,283:1},g6);var Y_,Z_,nH,eH,JI,tH,xsn=we(Cc,"EdgeLabelSideSelection",283,ke,k4e,Kde),vne;b(488,22,{3:1,34:1,22:1,488:1},Qz);var QI,Rsn,Ksn=we(Cc,"EdgeStraighteningStrategy",488,ke,Jge,Bde),kne;b(281,22,{3:1,34:1,22:1,281:1},p6);var iH,Bsn,Fsn,YI,_sn,Hsn,qsn=we(Cc,"FixedAlignment",281,ke,y4e,xde),yne;b(282,22,{3:1,34:1,22:1,282:1},m6);var Usn,Gsn,zsn,Xsn,x8,Vsn,Wsn=we(Cc,"GraphCompactionStrategy",282,ke,j4e,Ade),jne;b(259,22,{3:1,34:1,22:1,259:1},L0);var vv,ZI,kv,cs,R8,nO,yv,v2,eO,K8,rH=we(Cc,"GraphProperties",259,ke,uve,Lde),Ene;b(299,22,{3:1,34:1,22:1,299:1},UL);var mj,cH,uH,oH=we(Cc,"GreedySwitchType",299,ke,F2e,Nde),Mne;b(311,22,{3:1,34:1,22:1,311:1},GL);var E3,vj,k2,Tne=we(Cc,"InLayerConstraint",311,ke,_2e,Dde),Cne;b(429,22,{3:1,34:1,22:1,429:1},Yz);var sH,Jsn,Qsn=we(Cc,"InteractiveReferencePoint",429,ke,_ge,$de),Sne,Ysn,M3,o0,tO,Zsn,nfn,iO,efn,kj,rO,B8,T3,Dl,fH,cO,gc,tfn,ka,Hc,hH,lH,yj,Ad,s0,C3,ifn,S3,jj,$w,yf,Es,aH,y2,dt,st,rfn,cfn,ufn,ofn,sfn,dH,uO,Xu,f0,bH,P3,F8,zf,j2,h0,E2,M2,jv,Ld,ffn,wH,gH,I3;b(171,22,{3:1,34:1,22:1,171:1},h7);var _8,ya,H8,xw,Ej,hfn=we(Cc,"LayerConstraint",171,ke,q3e,Fde),Pne;b(859,1,ms,e8n),o.hf=function(e){vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,cin),""),"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."),kfn),(l1(),It)),$sn),jn((pf(),xn))))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,uin),""),"Feedback Edges"),"Whether feedback edges should be highlighted by routing around the nodes."),(_n(),!1)),yi),Gt),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,lP),""),"Interactive Reference Point"),"Determines which point of a node is considered by interactive layout phases."),Cfn),It),Qsn),jn(xn)))),ri(e,lP,fB,jee),ri(e,lP,o8,yee),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,oin),""),"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),yi),Gt),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,sin),""),"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),yi),Gt),jn(xn)))),vn(e,new ln(Lhe(pn(gn(mn(Pn(an(wn(dn(bn(new hn,fin),""),"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),yi),Gt),jn(Fd)),S(C(fn,1),J,2,6,["org.eclipse.elk.layered.northOrSouthPort"])))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,hin),""),"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."),Dfn),It),qhn),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,lin),""),"Thoroughness"),"How much effort should be spent to produce a nice layout."),Y(7)),Zr),Gi),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,ain),""),"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),yi),Gt),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,din),""),"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),yi),Gt),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,fB),"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)."),vfn),It),Nsn),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Hy),NB),"Node Layering Strategy"),"Strategy for node layering."),Ifn),It),Ahn),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,bin),NB),"Layer Constraint"),"Determines a constraint on the placement of the node regarding the layering."),Sfn),It),hfn),jn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,win),NB),"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."),null),Zr),Gi),jn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,gin),NB),"Layer ID"),"Layer identifier that was calculated by ELK Layered for a node. This is only generated if interactiveLayot or generatePositionAndLayerIds is set."),Y(-1)),Zr),Gi),jn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,hB),YXn),"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."),Y(4)),Zr),Gi),jn(xn)))),ri(e,hB,Hy,Iee),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,lB),YXn),"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."),Y(2)),Zr),Gi),jn(xn)))),ri(e,lB,Hy,Aee),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,aB),ZXn),"Node Promotion Strategy"),"Reduces number of dummy nodes after layering phase (if possible)."),Pfn),It),Fhn),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,dB),ZXn),"Max Node Promotion Iterations"),"Limits the number of iterations for node promotion."),Y(0)),Zr),Gi),jn(xn)))),ri(e,dB,aB,null),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,bB),"layering.coffmanGraham"),"Layer Bound"),"The maximum number of nodes allowed per layer."),Y(et)),Zr),Gi),jn(xn)))),ri(e,bB,Hy,Mee),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,o8),Wm),"Crossing Minimization Strategy"),"Strategy for crossing minimization."),mfn),It),Isn),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,pin),Wm),"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),yi),Gt),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,wB),Wm),"Hierarchical Sweepiness"),"How likely it is to use cross-hierarchy (1) vs bottom-up (-1)."),.1),Qi),si),jn(xn)))),ri(e,wB,MP,Vne),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,gB),Wm),"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),yi),Gt),jn(xn)))),ri(e,gB,o8,nee),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,min),Wm),"In Layer Predecessor of"),"Allows to set a constraint which specifies of which node the current node is the predecessor. If set to 's' then the node is the predecessor of 's' and is in the same layer"),null),$2),fn),jn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,vin),Wm),"In Layer Successor of"),"Allows to set a constraint which specifies of which node the current node is the successor. If set to 's' then the node is the successor of 's' and is in the same layer"),null),$2),fn),jn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,kin),Wm),"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."),null),Zr),Gi),jn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,yin),Wm),"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."),Y(-1)),Zr),Gi),jn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,jin),nVn),"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."),Y(40)),Zr),Gi),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,pB),nVn),"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."),pfn),It),oH),jn(xn)))),ri(e,pB,o8,zne),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,aP),"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."),gfn),It),oH),jn(xn)))),ri(e,aP,o8,qne),ri(e,aP,MP,Une),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,c2),eVn),"Node Placement Strategy"),"Strategy for node placement."),Nfn),It),$hn),jn(xn)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,dP),eVn),"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."),yi),Gt),jn(xn)))),ri(e,dP,c2,Hee),ri(e,dP,c2,qee),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,mB),tVn),"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."),Ofn),It),Ksn),jn(xn)))),ri(e,mB,c2,Kee),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,vB),tVn),"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."),Afn),It),qsn),jn(xn)))),ri(e,vB,c2,Fee),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,kB),"nodePlacement.linearSegments"),"Linear Segments Deflection Dampening"),"Dampens the movement of nodes to keep the diagram from getting too large."),.3),Qi),si),jn(xn)))),ri(e,kB,c2,Gee),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,yB),"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."),It),KH),jn(pi)))),ri(e,yB,c2,Wee),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,jB),"nodePlacement.networkSimplex.nodeFlexibility"),"Node Flexibility Default"),"Default value of the 'nodeFlexibility' option for the children of a hierarchical node."),Lfn),It),KH),jn(xn)))),ri(e,jB,c2,Vee),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Ein),iVn),"Self-Loop Distribution"),"Alter the distribution of the loops around the node. It only takes effect for PortConstraints.FREE."),Efn),It),zhn),jn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Min),iVn),"Self-Loop Ordering"),"Alter the ordering of the loops they can either be stacked or sequenced. It only takes effect for PortConstraints.FREE."),Mfn),It),Xhn),jn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,bP),"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."),Tfn),It),Whn),jn(xn)))),ri(e,bP,qy,lee),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,wP),"edgeRouting.splines.sloppy"),"Sloppy Spline Layer Spacing Factor"),"Spacing factor for routing area between layers when using sloppy spline routing."),.2),Qi),si),jn(xn)))),ri(e,wP,qy,dee),ri(e,wP,bP,bee),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,EB),"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),Qi),si),jn(xn)))),ri(e,EB,qy,oee),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,Tin),qf),"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."),Qi),si),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Cin),qf),"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),Qi),si),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Sin),qf),"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),Qi),si),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Pin),qf),"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),Qi),si),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Iin),Bin),"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."),Y(0)),Zr),Gi),jn(Ih)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Oin),Bin),"Shortness Priority"),"Defines how important it is to keep an edge as short as possible. This option is evaluated during the layering phase."),Y(0)),Zr),Gi),jn(Ih)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Ain),Bin),"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."),Y(0)),Zr),Gi),jn(Ih)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,MB),Fin),vXn),"Tries to further compact components (disconnected sub-graphs)."),!1),yi),Gt),jn(xn)))),ri(e,MB,t8,!0),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Lin),rVn),"Post Compaction Strategy"),cVn),afn),It),Wsn),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Nin),rVn),"Post Compaction Constraint Calculation"),cVn),lfn),It),Ssn),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,gP),_in),"High Degree Node Treatment"),"Makes room around high degree nodes to place leafs and trees."),!1),yi),Gt),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,TB),_in),"High Degree Node Threshold"),"Whether a node is considered to have a high degree."),Y(16)),Zr),Gi),jn(xn)))),ri(e,TB,gP,!0),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,CB),_in),"High Degree Node Maximum Tree Height"),"Maximum height of a subtree connected to a high degree node to be moved to separate layers."),Y(5)),Zr),Gi),jn(xn)))),ri(e,CB,gP,!0),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Al),Hin),"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'."),Rfn),It),Zhn),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,pP),Hin),"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),Qi),si),jn(xn)))),ri(e,pP,Al,ste),ri(e,pP,Al,fte),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,mP),Hin),"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),Qi),si),jn(xn)))),ri(e,mP,Al,lte),ri(e,mP,Al,ate),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,s8),uVn),"Cutting Strategy"),"The strategy by which the layer indexes are determined at which the layering crumbles into chunks."),xfn),It),Asn),jn(xn)))),ri(e,s8,Al,mte),ri(e,s8,Al,vte),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,SB),uVn),"Manually Specified Cuts"),"Allows the user to specify her own cuts for a certain graph."),Vf),rs),jn(xn)))),ri(e,SB,s8,bte),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,PB),"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."),$fn),Zr),Gi),jn(xn)))),ri(e,PB,s8,gte),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,vP),oVn),"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."),Kfn),It),Yhn),jn(xn)))),ri(e,vP,Al,Ate),ri(e,vP,Al,Lte),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,kP),oVn),"Valid Indices for Wrapping"),null),Vf),rs),jn(xn)))),ri(e,kP,Al,Pte),ri(e,kP,Al,Ite),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,yP),qin),"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),yi),Gt),jn(xn)))),ri(e,yP,Al,Ete),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,jP),qin),"Distance Penalty When Improving Cuts"),null),2),Qi),si),jn(xn)))),ri(e,jP,Al,yte),ri(e,jP,yP,!0),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,IB),qin),"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),yi),Gt),jn(xn)))),ri(e,IB,Al,Tte),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Din),DB),"Edge Label Side Selection"),"Method to decide on edge label sides."),jfn),It),xsn),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,$in),DB),"Edge Center Label Placement Strategy"),"Determines in which layer center labels of long edges should be placed."),yfn),It),wv),yt(xn,S(C(Zh,1),G,170,0,[E1]))))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,EP),f8),"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."),wfn),It),Hhn),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,xin),f8),"Consider Port Order"),"If disabled the port order of output ports is derived from the edge order and input ports are ordered by their incoming connections. If enabled all ports are ordered by the port model order."),!1),yi),Gt),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Rin),f8),"No Model Order"),"Set on a node to not set a model order for this node even though it is a real node."),!1),yi),Gt),jn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,OB),f8),"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."),dfn),It),Non),jn(xn)))),ri(e,OB,t8,null),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Kin),f8),"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."),bfn),It),Nhn),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,AB),f8),"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),Qi),si),jn(xn)))),ri(e,AB,EP,null),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,LB),f8),"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),Qi),si),jn(xn)))),ri(e,LB,EP,null),Mzn((new t8n,e))};var Ine,One,Ane,lfn,Lne,afn,Nne,dfn,Dne,$ne,xne,bfn,Rne,Kne,Bne,wfn,Fne,_ne,Hne,gfn,qne,Une,Gne,pfn,zne,Xne,Vne,Wne,Jne,Qne,Yne,Zne,nee,eee,mfn,tee,vfn,iee,kfn,ree,yfn,cee,jfn,uee,oee,see,Efn,fee,Mfn,hee,Tfn,lee,aee,dee,bee,wee,gee,pee,mee,vee,kee,Cfn,yee,jee,Eee,Mee,Tee,Cee,Sfn,See,Pee,Iee,Oee,Aee,Lee,Nee,Pfn,Dee,Ifn,$ee,xee,Ree,Ofn,Kee,Bee,Afn,Fee,_ee,Hee,qee,Uee,Gee,zee,Xee,Lfn,Vee,Wee,Jee,Nfn,Qee,Dfn,Yee,Zee,nte,ete,tte,ite,rte,cte,ute,ote,ste,fte,hte,lte,ate,dte,bte,wte,$fn,gte,pte,xfn,mte,vte,kte,yte,jte,Ete,Mte,Tte,Cte,Rfn,Ste,Pte,Ite,Ote,Kfn,Ate,Lte;w(Cc,"LayeredMetaDataProvider",859),b(998,1,ms,t8n),o.hf=function(e){Mzn(e)};var Ch,pH,oO,q8,sO,Bfn,fO,Rw,hO,Ffn,_fn,lO,mH,Yh,vH,l0,Hfn,Mj,kH,qfn,Nte,Dte,$te,aO,yH,U8,Nd,xte,Lo,Ufn,Gfn,dO,jH,Sh,bO,$l,zfn,Xfn,Vfn,EH,MH,Wfn,m1,TH,Jfn,Kw,Qfn,Yfn,Zfn,wO,Bw,Dd,nhn,ehn,Rr,thn,Rte,ou,gO,ihn,rhn,chn,ja,$d,pO,uhn,ohn,mO,a0,shn,CH,G8,fhn,d0,z8,vO,xd,SH,Ev,kO,Rd,hhn,lhn,ahn,Mv,dhn,Kte,Bte,Fte,_te,b0,Fw,Ft,v1,Hte,_w,bhn,Tv,whn,Hw,qte,Cv,ghn,O3,Ute,Gte,Tj,PH,phn,Cj,Ws,T2,C2,w0,Kd,yO,qw,IH,Sv,Pv,g0,S2,OH,Sj,X8,V8,zte,Xte,Vte,mhn,Wte,AH,vhn,khn,yhn,jhn,LH,Ehn,Mhn,Thn,Chn,NH,jO;w(Cc,"LayeredOptions",998),b(999,1,{},Upn),o.sf=function(){var e;return e=new Uyn,e},o.tf=function(e){},w(Cc,"LayeredOptions/LayeredFactory",999),b(1391,1,{}),o.a=0;var Jte;w(dc,"ElkSpacings/AbstractSpacingsBuilder",1391),b(792,1391,{},zY);var EO,Qte;w(Cc,"LayeredSpacings/LayeredSpacingsBuilder",792),b(265,22,{3:1,34:1,22:1,265:1,188:1,196:1},dg),o.dg=function(){return Bqn(this)},o.qg=function(){return Bqn(this)};var Iv,DH,Ov,Shn,Phn,Ihn,MO,$H,Ohn,Ahn=we(Cc,"LayeringStrategy",265,ke,xme,_de),Yte;b(390,22,{3:1,34:1,22:1,390:1},zL);var xH,Lhn,TO,Nhn=we(Cc,"LongEdgeOrderingStrategy",390,ke,H2e,Hde),Zte;b(203,22,{3:1,34:1,22:1,203:1},wM);var P2,I2,CO,RH,KH=we(Cc,"NodeFlexibility",203,ke,Qpe,qde),nie;b(323,22,{3:1,34:1,22:1,323:1,188:1,196:1},l7),o.dg=function(){return IHn(this)},o.qg=function(){return IHn(this)};var W8,BH,FH,J8,Dhn,$hn=we(Cc,"NodePlacementStrategy",323,ke,H3e,Ude),eie;b(243,22,{3:1,34:1,22:1,243:1},N0);var xhn,p0,Uw,Pj,Rhn,Khn,Ij,Bhn,SO,PO,Fhn=we(Cc,"NodePromotionStrategy",243,ke,ove,Gde),tie;b(284,22,{3:1,34:1,22:1,284:1},gM);var _hn,k1,_H,HH,Hhn=we(Cc,"OrderingStrategy",284,ke,Ype,zde),iie;b(430,22,{3:1,34:1,22:1,430:1},Zz);var qH,UH,qhn=we(Cc,"PortSortingStrategy",430,ke,Uge,Xde),rie;b(463,22,{3:1,34:1,22:1,463:1},XL);var Vu,Jc,Q8,cie=we(Cc,"PortType",463,ke,q2e,Vde),uie;b(387,22,{3:1,34:1,22:1,387:1},VL);var Uhn,GH,Ghn,zhn=we(Cc,"SelfLoopDistributionStrategy",387,ke,U2e,Wde),oie;b(349,22,{3:1,34:1,22:1,349:1},WL);var zH,Oj,XH,Xhn=we(Cc,"SelfLoopOrderingStrategy",349,ke,G2e,Jde),sie;b(312,1,{312:1},yGn),w(Cc,"Spacings",312),b(350,22,{3:1,34:1,22:1,350:1},JL);var VH,Vhn,Y8,Whn=we(Cc,"SplineRoutingMode",350,ke,z2e,Qde),fie;b(352,22,{3:1,34:1,22:1,352:1},QL);var WH,Jhn,Qhn,Yhn=we(Cc,"ValidifyStrategy",352,ke,X2e,Yde),hie;b(388,22,{3:1,34:1,22:1,388:1},YL);var Gw,JH,Av,Zhn=we(Cc,"WrappingStrategy",388,ke,V2e,Zde),lie;b(1398,1,vr,X5n),o.rg=function(e){return u(e,36),aie},o.Kf=function(e,t){LOe(this,u(e,36),t)};var aie;w(PP,"DepthFirstCycleBreaker",1398),b(793,1,vr,aW),o.rg=function(e){return u(e,36),die},o.Kf=function(e,t){$Ne(this,u(e,36),t)},o.sg=function(e){return u(sn(e,cS(this.d,e.c.length)),10)};var die;w(PP,"GreedyCycleBreaker",793),b(1401,793,vr,FTn),o.sg=function(e){var t,i,r,c;for(c=null,t=et,r=new M(e);r.a<r.c.c.length;)i=u(E(r),10),kt(i,(W(),dt))&&u(v(i,dt),17).a<t&&(t=u(v(i,dt),17).a,c=i);return c||u(sn(e,cS(this.d,e.c.length)),10)},w(PP,"GreedyModelOrderCycleBreaker",1401),b(1399,1,vr,z5n),o.rg=function(e){return u(e,36),bie},o.Kf=function(e,t){_Oe(this,u(e,36),t)};var bie;w(PP,"InteractiveCycleBreaker",1399),b(1400,1,vr,U5n),o.rg=function(e){return u(e,36),wie},o.Kf=function(e,t){QOe(this,u(e,36),t)},o.a=0,o.b=0;var wie;w(PP,"ModelOrderCycleBreaker",1400),b(1413,1,vr,q5n),o.rg=function(e){return u(e,36),gie},o.Kf=function(e,t){FLe(this,u(e,36),t)};var gie;w(Ll,"BreadthFirstModelOrderLayerer",1413),b(1414,1,De,Gpn),o.Ne=function(e,t){return lEe(u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Ll,"BreadthFirstModelOrderLayerer/lambda$0$Type",1414),b(1404,1,vr,dMn),o.rg=function(e){return u(e,36),pie},o.Kf=function(e,t){FNe(this,u(e,36),t)};var pie;w(Ll,"CoffmanGrahamLayerer",1404),b(1405,1,De,A7n),o.Ne=function(e,t){return QEe(this.a,u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Ll,"CoffmanGrahamLayerer/0methodref$compareNodesInTopo$Type",1405),b(1406,1,De,L7n),o.Ne=function(e,t){return Q0e(this.a,u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Ll,"CoffmanGrahamLayerer/lambda$1$Type",1406),b(1415,1,vr,G5n),o.rg=function(e){return u(e,36),mie},o.Kf=function(e,t){SNe(this,u(e,36),t)},o.c=0,o.e=0;var mie;w(Ll,"DepthFirstModelOrderLayerer",1415),b(1416,1,De,zpn),o.Ne=function(e,t){return aEe(u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Ll,"DepthFirstModelOrderLayerer/lambda$0$Type",1416),b(1407,1,vr,Xpn),o.rg=function(e){return u(e,36),Fe(Fe(Fe(new ii,(Vi(),Vs),(tr(),N_)),Jh,Nw),Ac,Lw)},o.Kf=function(e,t){ZLe(u(e,36),t)},w(Ll,"InteractiveLayerer",1407),b(578,1,{578:1},Vyn),o.a=0,o.c=0,w(Ll,"InteractiveLayerer/LayerSpan",578),b(1403,1,vr,J5n),o.rg=function(e){return u(e,36),vie},o.Kf=function(e,t){SCe(this,u(e,36),t)};var vie;w(Ll,"LongestPathLayerer",1403),b(1412,1,vr,W5n),o.rg=function(e){return u(e,36),kie},o.Kf=function(e,t){QCe(this,u(e,36),t)};var kie;w(Ll,"LongestPathSourceLayerer",1412),b(1410,1,vr,Q5n),o.rg=function(e){return u(e,36),Fe(Fe(Fe(new ii,(Vi(),Vs),(tr(),b2)),Jh,Nw),Ac,Lw)},o.Kf=function(e,t){sNe(this,u(e,36),t)},o.a=0,o.b=0,o.d=0;var nln,eln;w(Ll,"MinWidthLayerer",1410),b(1411,1,De,N7n),o.Ne=function(e,t){return Ive(this,u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Ll,"MinWidthLayerer/MinOutgoingEdgesComparator",1411),b(1402,1,vr,Y5n),o.rg=function(e){return u(e,36),yie},o.Kf=function(e,t){jAe(this,u(e,36),t)};var yie;w(Ll,"NetworkSimplexLayerer",1402),b(1408,1,vr,_Sn),o.rg=function(e){return u(e,36),Fe(Fe(Fe(new ii,(Vi(),Vs),(tr(),b2)),Jh,Nw),Ac,Lw)},o.Kf=function(e,t){uLe(this,u(e,36),t)},o.d=0,o.f=0,o.g=0,o.i=0,o.s=0,o.t=0,o.u=0,w(Ll,"StretchWidthLayerer",1408),b(1409,1,De,Vpn),o.Ne=function(e,t){return u4e(u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Ll,"StretchWidthLayerer/1",1409),b(413,1,Mrn),o.gg=function(e,t,i,r,c,s){},o.ug=function(e,t,i){return aUn(this,e,t,i)},o.fg=function(){this.g=F(cg,fVn,28,this.d,15,1),this.f=F(cg,fVn,28,this.d,15,1)},o.hg=function(e,t){this.e[e]=F(ye,_e,28,t[e].length,15,1)},o.ig=function(e,t,i){var r;r=i[e][t],r.p=t,this.e[e][t]=t},o.jg=function(e,t,i,r){u(sn(r[e][t].j,i),12).p=this.d++},o.b=0,o.c=0,o.d=0,w(Du,"AbstractBarycenterPortDistributor",413),b(1698,1,De,D7n),o.Ne=function(e,t){return t9e(this.a,u(e,12),u(t,12))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Du,"AbstractBarycenterPortDistributor/lambda$0$Type",1698),b(832,1,_y,pJ),o.gg=function(e,t,i,r,c,s){},o.ig=function(e,t,i){},o.jg=function(e,t,i,r){},o.eg=function(){return!1},o.fg=function(){this.c=this.e.a,this.g=this.f.g},o.hg=function(e,t){t[e][0].c.p=e},o.kg=function(){return!1},o.vg=function(e,t,i,r){i?wFn(this,e):(vFn(this,e,r),DGn(this,e,t)),e.c.length>1&&(on(un(v(Hi((Nn(0,e.c.length),u(e.c[0],10))),(cn(),l0))))?HHn(e,this.d,u(this,669)):(Ln(),Yt(e,this.d)),qxn(this.e,e))},o.lg=function(e,t,i,r){var c,s,f,h,l,a,d;for(t!=uIn(i,e.length)&&(s=e[t-(i?1:-1)],_J(this.f,s,i?(gr(),Jc):(gr(),Vu))),c=e[t][0],d=!r||c.k==(Vn(),Zt),a=Af(e[t]),this.vg(a,d,!1,i),f=0,l=new M(a);l.a<l.c.c.length;)h=u(E(l),10),e[t][f++]=h;return!1},o.mg=function(e,t){var i,r,c,s,f;for(f=uIn(t,e.length),s=Af(e[f]),this.vg(s,!1,!0,t),i=0,c=new M(s);c.a<c.c.c.length;)r=u(E(c),10),e[f][i++]=r;return!1},w(Du,"BarycenterHeuristic",832),b(667,1,{667:1},R7n),o.Ib=function(){return"BarycenterState [node="+this.c+", summedWeight="+this.d+", degree="+this.b+", barycenter="+this.a+", visited="+this.e+"]"},o.b=0,o.d=0,o.e=!1;var jie=w(Du,"BarycenterHeuristic/BarycenterState",667);b(1865,1,De,$7n),o.Ne=function(e,t){return Jke(this.a,u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Du,"BarycenterHeuristic/lambda$0$Type",1865),b(831,1,_y,JZ),o.fg=function(){},o.gg=function(e,t,i,r,c,s){},o.jg=function(e,t,i,r){},o.hg=function(e,t){this.a[e]=F(jie,{3:1,4:1,5:1,2117:1},667,t[e].length,0,1),this.b[e]=F(Eie,{3:1,4:1,5:1,2118:1},239,t[e].length,0,1)},o.ig=function(e,t,i){nBn(this,i[e][t],!0)},o.c=!1,w(Du,"ForsterConstraintResolver",831),b(239,1,{239:1},XOn,kGn),o.Ib=function(){var e,t;for(t=new x1,t.a+="[",e=0;e<this.d.length;e++)Be(t,wBn(this.d[e])),Sf(this.g,this.d[0]).a!=null&&Be(Be((t.a+="<",t),jle(Sf(this.g,this.d[0]).a)),">"),e<this.d.length-1&&(t.a+=ur);return(t.a+="]",t).a},o.a=0,o.c=0,o.f=0;var Eie=w(Du,"ForsterConstraintResolver/ConstraintGroup",239);b(1860,1,re,x7n),o.Cd=function(e){nBn(this.a,u(e,10),!1)},w(Du,"ForsterConstraintResolver/lambda$0$Type",1860),b(219,1,{219:1,230:1},EGn),o.gg=function(e,t,i,r,c,s){},o.hg=function(e,t){},o.fg=function(){this.r=F(ye,_e,28,this.n,15,1)},o.ig=function(e,t,i){var r,c;c=i[e][t],r=c.e,r&&nn(this.b,r)},o.jg=function(e,t,i,r){++this.n},o.Ib=function(){return $Gn(this.e,new ni)},o.g=!1,o.i=!1,o.n=0,o.s=!1,w(Du,"GraphInfoHolder",219),b(1905,1,_y,Wpn),o.gg=function(e,t,i,r,c,s){},o.hg=function(e,t){},o.jg=function(e,t,i,r){},o.ug=function(e,t,i){return i&&t>0?LD(this.a,e[t-1],e[t]):!i&&t<e.length-1?LD(this.a,e[t],e[t+1]):C$(this.a,e[t],i?(en(),Wn):(en(),Zn)),ITe(this,e,t,i)},o.fg=function(){this.d=F(ye,_e,28,this.c,15,1),this.a=new L7(this.d)},o.ig=function(e,t,i){var r;r=i[e][t],this.c+=r.j.c.length},o.c=0,w(Du,"GreedyPortDistributor",1905),b(1421,1,vr,i8n),o.rg=function(e){return X6e(u(e,36))},o.Kf=function(e,t){HAe(u(e,36),t)};var Mie;w(Du,"InteractiveCrossingMinimizer",1421),b(1422,1,De,B7n),o.Ne=function(e,t){return Ake(this,u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Du,"InteractiveCrossingMinimizer/1",1422),b(514,1,{514:1,106:1,47:1},gL),o.rg=function(e){var t;return u(e,36),t=LM(Tie),Fe(t,(Vi(),Ac),(tr(),RI)),t},o.Kf=function(e,t){WPe(this,u(e,36),t)},o.e=0;var Tie;w(Du,"LayerSweepCrossingMinimizer",514),b(1418,1,re,F7n),o.Cd=function(e){BIe(this.a,u(e,219))},w(Du,"LayerSweepCrossingMinimizer/0methodref$compareDifferentRandomizedLayouts$Type",1418),b(1419,1,re,_7n),o.Cd=function(e){G6e(this.a,u(e,219))},w(Du,"LayerSweepCrossingMinimizer/1methodref$minimizeCrossingsNoCounter$Type",1419),b(1420,1,re,H7n),o.Cd=function(e){YUn(this.a,u(e,219))},w(Du,"LayerSweepCrossingMinimizer/2methodref$minimizeCrossingsWithCounter$Type",1420),b(464,22,{3:1,34:1,22:1,464:1},ZL);var Aj,Z8,IO,Cie=we(Du,"LayerSweepCrossingMinimizer/CrossMinType",464,ke,W2e,nbe),Sie;b(1417,1,Le,Jpn),o.Mb=function(e){return KQ(),u(e,30).a.c.length==0},w(Du,"LayerSweepCrossingMinimizer/lambda$0$Type",1417),b(1862,1,_y,TAn),o.fg=function(){},o.gg=function(e,t,i,r,c,s){},o.jg=function(e,t,i,r){},o.hg=function(e,t){t[e][0].c.p=e,this.b[e]=F(Pie,{3:1,4:1,5:1,2043:1},668,t[e].length,0,1)},o.ig=function(e,t,i){var r;r=i[e][t],r.p=t,$t(this.b[e],t,new Qpn)},w(Du,"LayerSweepTypeDecider",1862),b(668,1,{668:1},Qpn),o.Ib=function(){return"NodeInfo [connectedEdges="+this.a+", hierarchicalInfluence="+this.b+", randomInfluence="+this.c+"]"},o.a=0,o.b=0,o.c=0;var Pie=w(Du,"LayerSweepTypeDecider/NodeInfo",668);b(1863,1,ph,Ypn),o.Lb=function(e){return L6(new Lf(u(e,12).b))},o.Fb=function(e){return this===e},o.Mb=function(e){return L6(new Lf(u(e,12).b))},w(Du,"LayerSweepTypeDecider/lambda$0$Type",1863),b(1864,1,ph,Zpn),o.Lb=function(e){return L6(new Lf(u(e,12).b))},o.Fb=function(e){return this===e},o.Mb=function(e){return L6(new Lf(u(e,12).b))},w(Du,"LayerSweepTypeDecider/lambda$1$Type",1864),b(1906,413,Mrn,Wjn),o.tg=function(e,t,i){var r,c,s,f,h,l,a,d,g;switch(a=this.g,i.g){case 1:{for(r=0,c=0,l=new M(e.j);l.a<l.c.c.length;)f=u(E(l),12),f.e.c.length!=0&&(++r,f.j==(en(),Xn)&&++c);for(s=t+c,g=t+r,h=Rb(e,(gr(),Vu)).Kc();h.Ob();)f=u(h.Pb(),12),f.j==(en(),Xn)?(a[f.p]=s,--s):(a[f.p]=g,--g);return r}case 2:{for(d=0,h=Rb(e,(gr(),Jc)).Kc();h.Ob();)f=u(h.Pb(),12),++d,a[f.p]=t+d;return d}default:throw T(new W9)}},w(Du,"LayerTotalPortDistributor",1906),b(669,832,{669:1,230:1},gxn),o.vg=function(e,t,i,r){i?wFn(this,e):(vFn(this,e,r),DGn(this,e,t)),e.c.length>1&&(on(un(v(Hi((Nn(0,e.c.length),u(e.c[0],10))),(cn(),l0))))?HHn(e,this.d,this):(Ln(),Yt(e,this.d)),on(un(v(Hi((Nn(0,e.c.length),u(e.c[0],10))),l0)))||qxn(this.e,e))},w(Du,"ModelOrderBarycenterHeuristic",669),b(1866,1,De,q7n),o.Ne=function(e,t){return Aje(this.a,u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Du,"ModelOrderBarycenterHeuristic/lambda$0$Type",1866),b(1423,1,vr,r8n),o.rg=function(e){var t;return u(e,36),t=LM(Iie),Fe(t,(Vi(),Ac),(tr(),RI)),t},o.Kf=function(e,t){bge((u(e,36),t))};var Iie;w(Du,"NoCrossingMinimizer",1423),b(809,413,Mrn,jz),o.tg=function(e,t,i){var r,c,s,f,h,l,a,d,g,p,m;switch(g=this.g,i.g){case 1:{for(c=0,s=0,d=new M(e.j);d.a<d.c.c.length;)l=u(E(d),12),l.e.c.length!=0&&(++c,l.j==(en(),Xn)&&++s);for(r=1/(c+1),f=t+s*r,m=t+1-r,a=Rb(e,(gr(),Vu)).Kc();a.Ob();)l=u(a.Pb(),12),l.j==(en(),Xn)?(g[l.p]=f,f-=r):(g[l.p]=m,m-=r);break}case 2:{for(h=0,d=new M(e.j);d.a<d.c.c.length;)l=u(E(d),12),l.g.c.length==0||++h;for(r=1/(h+1),p=t+r,a=Rb(e,(gr(),Jc)).Kc();a.Ob();)l=u(a.Pb(),12),g[l.p]=p,p+=r;break}default:throw T(new Gn("Port type is undefined"))}return 1},w(Du,"NodeRelativePortDistributor",809),b(822,1,{},RIn,QFn),w(Du,"SweepCopy",822),b(1861,1,_y,$Kn),o.hg=function(e,t){},o.fg=function(){var e;e=F(ye,_e,28,this.f,15,1),this.d=new Q7n(e),this.a=new L7(e)},o.gg=function(e,t,i,r,c,s){var f;f=u(sn(s[e][t].j,i),12),c.c==f&&c.c.i.c==c.d.i.c&&++this.e[e]},o.ig=function(e,t,i){var r;r=i[e][t],this.c[e]=this.c[e]|r.k==(Vn(),_c)},o.jg=function(e,t,i,r){var c;c=u(sn(r[e][t].j,i),12),c.p=this.f++,c.g.c.length+c.e.c.length>1&&(c.j==(en(),Zn)?this.b[e]=!0:c.j==Wn&&e>0&&(this.b[e-1]=!0))},o.f=0,w(Vh,"AllCrossingsCounter",1861),b(595,1,{},EC),o.b=0,o.d=0,w(Vh,"BinaryIndexedTree",595),b(532,1,{},L7);var tln,OO;w(Vh,"CrossingsCounter",532),b(1950,1,De,U7n),o.Ne=function(e,t){return F0e(this.a,u(e,12),u(t,12))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Vh,"CrossingsCounter/lambda$0$Type",1950),b(1951,1,De,G7n),o.Ne=function(e,t){return _0e(this.a,u(e,12),u(t,12))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Vh,"CrossingsCounter/lambda$1$Type",1951),b(1952,1,De,z7n),o.Ne=function(e,t){return H0e(this.a,u(e,12),u(t,12))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Vh,"CrossingsCounter/lambda$2$Type",1952),b(1953,1,De,X7n),o.Ne=function(e,t){return q0e(this.a,u(e,12),u(t,12))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Vh,"CrossingsCounter/lambda$3$Type",1953),b(1954,1,re,V7n),o.Cd=function(e){q4e(this.a,u(e,12))},w(Vh,"CrossingsCounter/lambda$4$Type",1954),b(1955,1,Le,W7n),o.Mb=function(e){return ble(this.a,u(e,12))},w(Vh,"CrossingsCounter/lambda$5$Type",1955),b(1956,1,re,J7n),o.Cd=function(e){ATn(this,e)},w(Vh,"CrossingsCounter/lambda$6$Type",1956),b(1957,1,re,HMn),o.Cd=function(e){var t;k4(),W1(this.b,(t=this.a,u(e,12),t))},w(Vh,"CrossingsCounter/lambda$7$Type",1957),b(839,1,ph,QU),o.Lb=function(e){return k4(),kt(u(e,12),(W(),Xu))},o.Fb=function(e){return this===e},o.Mb=function(e){return k4(),kt(u(e,12),(W(),Xu))},w(Vh,"CrossingsCounter/lambda$8$Type",839),b(1949,1,{},Q7n),w(Vh,"HyperedgeCrossingsCounter",1949),b(478,1,{34:1,478:1},GSn),o.Fd=function(e){return H8e(this,u(e,478))},o.b=0,o.c=0,o.e=0,o.f=0;var jDe=w(Vh,"HyperedgeCrossingsCounter/Hyperedge",478);b(374,1,{34:1,374:1},MT),o.Fd=function(e){return tTe(this,u(e,374))},o.b=0,o.c=0;var Oie=w(Vh,"HyperedgeCrossingsCounter/HyperedgeCorner",374);b(531,22,{3:1,34:1,22:1,531:1},nX);var n9,e9,Aie=we(Vh,"HyperedgeCrossingsCounter/HyperedgeCorner/Type",531,ke,Gge,ebe),Lie;b(1425,1,vr,c8n),o.rg=function(e){return u(v(u(e,36),(W(),Hc)),21).Hc((pr(),cs))?Nie:null},o.Kf=function(e,t){dke(this,u(e,36),t)};var Nie;w(kr,"InteractiveNodePlacer",1425),b(1426,1,vr,u8n),o.rg=function(e){return u(v(u(e,36),(W(),Hc)),21).Hc((pr(),cs))?Die:null},o.Kf=function(e,t){Q9e(this,u(e,36),t)};var Die,AO,LO;w(kr,"LinearSegmentsNodePlacer",1426),b(261,1,{34:1,261:1},JG),o.Fd=function(e){return Che(this,u(e,261))},o.Fb=function(e){var t;return L(e,261)?(t=u(e,261),this.b==t.b):!1},o.Hb=function(){return this.b},o.Ib=function(){return"ls"+ca(this.e)},o.a=0,o.b=0,o.c=-1,o.d=-1,o.g=0;var $ie=w(kr,"LinearSegmentsNodePlacer/LinearSegment",261);b(1428,1,vr,gIn),o.rg=function(e){return u(v(u(e,36),(W(),Hc)),21).Hc((pr(),cs))?xie:null},o.Kf=function(e,t){CNe(this,u(e,36),t)},o.b=0,o.g=0;var xie;w(kr,"NetworkSimplexPlacer",1428),b(1447,1,De,n3n),o.Ne=function(e,t){return jc(u(e,17).a,u(t,17).a)},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(kr,"NetworkSimplexPlacer/0methodref$compare$Type",1447),b(1449,1,De,e3n),o.Ne=function(e,t){return jc(u(e,17).a,u(t,17).a)},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(kr,"NetworkSimplexPlacer/1methodref$compare$Type",1449),b(655,1,{655:1},qMn);var EDe=w(kr,"NetworkSimplexPlacer/EdgeRep",655);b(412,1,{412:1},zW),o.b=!1;var MDe=w(kr,"NetworkSimplexPlacer/NodeRep",412);b(515,13,{3:1,4:1,20:1,31:1,56:1,13:1,16:1,15:1,59:1,515:1},Zyn),w(kr,"NetworkSimplexPlacer/Path",515),b(1429,1,{},t3n),o.Kb=function(e){return u(e,18).d.i.k},w(kr,"NetworkSimplexPlacer/Path/lambda$0$Type",1429),b(1430,1,Le,i3n),o.Mb=function(e){return u(e,273)==(Vn(),Ti)},w(kr,"NetworkSimplexPlacer/Path/lambda$1$Type",1430),b(1431,1,{},r3n),o.Kb=function(e){return u(e,18).d.i},w(kr,"NetworkSimplexPlacer/Path/lambda$2$Type",1431),b(1432,1,Le,Y7n),o.Mb=function(e){return ISn(LKn(u(e,10)))},w(kr,"NetworkSimplexPlacer/Path/lambda$3$Type",1432),b(1433,1,Le,c3n),o.Mb=function(e){return M0e(u(e,12))},w(kr,"NetworkSimplexPlacer/lambda$0$Type",1433),b(1434,1,re,UMn),o.Cd=function(e){c1e(this.a,this.b,u(e,12))},w(kr,"NetworkSimplexPlacer/lambda$1$Type",1434),b(1443,1,re,Z7n),o.Cd=function(e){AEe(this.a,u(e,18))},w(kr,"NetworkSimplexPlacer/lambda$10$Type",1443),b(1444,1,{},u3n),o.Kb=function(e){return ko(),new Cn(null,new On(u(e,30).a,16))},w(kr,"NetworkSimplexPlacer/lambda$11$Type",1444),b(1445,1,re,nkn),o.Cd=function(e){TSe(this.a,u(e,10))},w(kr,"NetworkSimplexPlacer/lambda$12$Type",1445),b(1446,1,{},o3n),o.Kb=function(e){return ko(),Y(u(e,125).e)},w(kr,"NetworkSimplexPlacer/lambda$13$Type",1446),b(1448,1,{},s3n),o.Kb=function(e){return ko(),Y(u(e,125).e)},w(kr,"NetworkSimplexPlacer/lambda$15$Type",1448),b(1450,1,Le,f3n),o.Mb=function(e){return ko(),u(e,412).c.k==(Vn(),zt)},w(kr,"NetworkSimplexPlacer/lambda$17$Type",1450),b(1451,1,Le,h3n),o.Mb=function(e){return ko(),u(e,412).c.j.c.length>1},w(kr,"NetworkSimplexPlacer/lambda$18$Type",1451),b(1452,1,re,MOn),o.Cd=function(e){h8e(this.c,this.b,this.d,this.a,u(e,412))},o.c=0,o.d=0,w(kr,"NetworkSimplexPlacer/lambda$19$Type",1452),b(1435,1,{},l3n),o.Kb=function(e){return ko(),new Cn(null,new On(u(e,30).a,16))},w(kr,"NetworkSimplexPlacer/lambda$2$Type",1435),b(1453,1,re,ekn),o.Cd=function(e){o1e(this.a,u(e,12))},o.a=0,w(kr,"NetworkSimplexPlacer/lambda$20$Type",1453),b(1454,1,{},a3n),o.Kb=function(e){return ko(),new Cn(null,new On(u(e,30).a,16))},w(kr,"NetworkSimplexPlacer/lambda$21$Type",1454),b(1455,1,re,tkn),o.Cd=function(e){v1e(this.a,u(e,10))},w(kr,"NetworkSimplexPlacer/lambda$22$Type",1455),b(1456,1,Le,d3n),o.Mb=function(e){return ISn(e)},w(kr,"NetworkSimplexPlacer/lambda$23$Type",1456),b(1457,1,{},b3n),o.Kb=function(e){return ko(),new Cn(null,new On(u(e,30).a,16))},w(kr,"NetworkSimplexPlacer/lambda$24$Type",1457),b(1458,1,Le,ikn),o.Mb=function(e){return Ple(this.a,u(e,10))},w(kr,"NetworkSimplexPlacer/lambda$25$Type",1458),b(1459,1,re,GMn),o.Cd=function(e){$je(this.a,this.b,u(e,10))},w(kr,"NetworkSimplexPlacer/lambda$26$Type",1459),b(1460,1,Le,w3n),o.Mb=function(e){return ko(),!fr(u(e,18))},w(kr,"NetworkSimplexPlacer/lambda$27$Type",1460),b(1461,1,Le,g3n),o.Mb=function(e){return ko(),!fr(u(e,18))},w(kr,"NetworkSimplexPlacer/lambda$28$Type",1461),b(1462,1,{},rkn),o.Ve=function(e,t){return u1e(this.a,u(e,30),u(t,30))},w(kr,"NetworkSimplexPlacer/lambda$29$Type",1462),b(1436,1,{},p3n),o.Kb=function(e){return ko(),new Cn(null,new pb(new ie(ce(Qt(u(e,10)).a.Kc(),new En))))},w(kr,"NetworkSimplexPlacer/lambda$3$Type",1436),b(1437,1,Le,m3n),o.Mb=function(e){return ko(),xpe(u(e,18))},w(kr,"NetworkSimplexPlacer/lambda$4$Type",1437),b(1438,1,re,ckn),o.Cd=function(e){DIe(this.a,u(e,18))},w(kr,"NetworkSimplexPlacer/lambda$5$Type",1438),b(1439,1,{},v3n),o.Kb=function(e){return ko(),new Cn(null,new On(u(e,30).a,16))},w(kr,"NetworkSimplexPlacer/lambda$6$Type",1439),b(1440,1,Le,k3n),o.Mb=function(e){return ko(),u(e,10).k==(Vn(),zt)},w(kr,"NetworkSimplexPlacer/lambda$7$Type",1440),b(1441,1,{},y3n),o.Kb=function(e){return ko(),new Cn(null,new pb(new ie(ce(Ml(u(e,10)).a.Kc(),new En))))},w(kr,"NetworkSimplexPlacer/lambda$8$Type",1441),b(1442,1,Le,j3n),o.Mb=function(e){return ko(),E0e(u(e,18))},w(kr,"NetworkSimplexPlacer/lambda$9$Type",1442),b(1424,1,vr,o8n),o.rg=function(e){return u(v(u(e,36),(W(),Hc)),21).Hc((pr(),cs))?Rie:null},o.Kf=function(e,t){bOe(u(e,36),t)};var Rie;w(kr,"SimpleNodePlacer",1424),b(185,1,{185:1},Wg),o.Ib=function(){var e;return e="",this.c==(fh(),m0)?e+=f3:this.c==y1&&(e+=s3),this.o==(If(),Bd)?e+=_K:this.o==Xf?e+="UP":e+="BALANCED",e},w(da,"BKAlignedLayout",185),b(523,22,{3:1,34:1,22:1,523:1},eX);var y1,m0,Kie=we(da,"BKAlignedLayout/HDirection",523,ke,Xge,tbe),Bie;b(522,22,{3:1,34:1,22:1,522:1},tX);var Bd,Xf,Fie=we(da,"BKAlignedLayout/VDirection",522,ke,Vge,ibe),_ie;b(1699,1,{},zMn),w(da,"BKAligner",1699),b(1702,1,{},iFn),w(da,"BKCompactor",1702),b(663,1,{663:1},E3n),o.a=0,w(da,"BKCompactor/ClassEdge",663),b(467,1,{467:1},Jyn),o.a=null,o.b=0,w(da,"BKCompactor/ClassNode",467),b(1427,1,vr,JMn),o.rg=function(e){return u(v(u(e,36),(W(),Hc)),21).Hc((pr(),cs))?Hie:null},o.Kf=function(e,t){UNe(this,u(e,36),t)},o.d=!1;var Hie;w(da,"BKNodePlacer",1427),b(1700,1,{},M3n),o.d=0,w(da,"NeighborhoodInformation",1700),b(1701,1,De,ukn),o.Ne=function(e,t){return mme(this,u(e,42),u(t,42))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(da,"NeighborhoodInformation/NeighborComparator",1701),b(823,1,{}),w(da,"ThresholdStrategy",823),b(1825,823,{},Qyn),o.wg=function(e,t,i){return this.a.o==(If(),Xf)?Pt:li},o.xg=function(){},w(da,"ThresholdStrategy/NullThresholdStrategy",1825),b(587,1,{587:1},QMn),o.c=!1,o.d=!1,w(da,"ThresholdStrategy/Postprocessable",587),b(1826,823,{},Yyn),o.wg=function(e,t,i){var r,c,s;return c=t==i,r=this.a.a[i.p]==t,c||r?(s=e,this.a.c==(fh(),m0)?(c&&(s=FR(this,t,!0)),!isNaN(s)&&!isFinite(s)&&r&&(s=FR(this,i,!1))):(c&&(s=FR(this,t,!0)),!isNaN(s)&&!isFinite(s)&&r&&(s=FR(this,i,!1))),s):e},o.xg=function(){for(var e,t,i,r,c;this.d.b!=0;)c=u(f2e(this.d),587),r=IUn(this,c),r.a&&(e=r.a,i=on(this.a.f[this.a.g[c.b.p].p]),!(!i&&!fr(e)&&e.c.i.c==e.d.i.c)&&(t=DHn(this,c),t||Ale(this.e,c)));for(;this.e.a.c.length!=0;)DHn(this,u($Rn(this.e),587))},w(da,"ThresholdStrategy/SimpleThresholdStrategy",1826),b(645,1,{645:1,188:1,196:1},T3n),o.dg=function(){return Uxn(this)},o.qg=function(){return Uxn(this)};var QH;w(BB,"EdgeRouterFactory",645),b(1485,1,vr,s8n),o.rg=function(e){return eSe(u(e,36))},o.Kf=function(e,t){yOe(u(e,36),t)};var qie,Uie,Gie,zie,Xie,iln,Vie,Wie;w(BB,"OrthogonalEdgeRouter",1485),b(1478,1,vr,WMn),o.rg=function(e){return Eke(u(e,36))},o.Kf=function(e,t){ULe(this,u(e,36),t)};var Jie,Qie,Yie,Zie,Lj,nre;w(BB,"PolylineEdgeRouter",1478),b(1479,1,ph,S3n),o.Lb=function(e){return qQ(u(e,10))},o.Fb=function(e){return this===e},o.Mb=function(e){return qQ(u(e,10))},w(BB,"PolylineEdgeRouter/1",1479),b(1872,1,Le,P3n),o.Mb=function(e){return u(e,132).c==(af(),Ea)},w(mf,"HyperEdgeCycleDetector/lambda$0$Type",1872),b(1873,1,{},I3n),o.Ze=function(e){return u(e,132).d},w(mf,"HyperEdgeCycleDetector/lambda$1$Type",1873),b(1874,1,Le,O3n),o.Mb=function(e){return u(e,132).c==(af(),Ea)},w(mf,"HyperEdgeCycleDetector/lambda$2$Type",1874),b(1875,1,{},A3n),o.Ze=function(e){return u(e,132).d},w(mf,"HyperEdgeCycleDetector/lambda$3$Type",1875),b(1876,1,{},L3n),o.Ze=function(e){return u(e,132).d},w(mf,"HyperEdgeCycleDetector/lambda$4$Type",1876),b(1877,1,{},C3n),o.Ze=function(e){return u(e,132).d},w(mf,"HyperEdgeCycleDetector/lambda$5$Type",1877),b(118,1,{34:1,118:1},yk),o.Fd=function(e){return She(this,u(e,118))},o.Fb=function(e){var t;return L(e,118)?(t=u(e,118),this.g==t.g):!1},o.Hb=function(){return this.g},o.Ib=function(){var e,t,i,r;for(e=new mo("{"),r=new M(this.n);r.a<r.c.c.length;)i=u(E(r),12),t=qk(i.i),t==null&&(t="n"+tPn(i.i)),e.a+=""+t,r.a<r.c.c.length&&(e.a+=",");return e.a+="}",e.a},o.a=0,o.b=0,o.c=NaN,o.d=0,o.g=0,o.i=0,o.o=0,o.s=NaN,w(mf,"HyperEdgeSegment",118),b(132,1,{132:1},ed),o.Ib=function(){return this.a+"->"+this.b+" ("+z1e(this.c)+")"},o.d=0,w(mf,"HyperEdgeSegmentDependency",132),b(528,22,{3:1,34:1,22:1,528:1},iX);var Ea,zw,ere=we(mf,"HyperEdgeSegmentDependency/DependencyType",528,ke,Wge,rbe),tre;b(1878,1,{},okn),w(mf,"HyperEdgeSegmentSplitter",1878),b(1879,1,{},Zjn),o.a=0,o.b=0,w(mf,"HyperEdgeSegmentSplitter/AreaRating",1879),b(339,1,{339:1},FN),o.a=0,o.b=0,o.c=0,w(mf,"HyperEdgeSegmentSplitter/FreeArea",339),b(1880,1,De,N3n),o.Ne=function(e,t){return zae(u(e,118),u(t,118))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(mf,"HyperEdgeSegmentSplitter/lambda$0$Type",1880),b(1881,1,re,TOn),o.Cd=function(e){k3e(this.a,this.d,this.c,this.b,u(e,118))},o.b=0,w(mf,"HyperEdgeSegmentSplitter/lambda$1$Type",1881),b(1882,1,{},D3n),o.Kb=function(e){return new Cn(null,new On(u(e,118).e,16))},w(mf,"HyperEdgeSegmentSplitter/lambda$2$Type",1882),b(1883,1,{},$3n),o.Kb=function(e){return new Cn(null,new On(u(e,118).j,16))},w(mf,"HyperEdgeSegmentSplitter/lambda$3$Type",1883),b(1884,1,{},x3n),o.Ye=function(e){return $(B(e))},w(mf,"HyperEdgeSegmentSplitter/lambda$4$Type",1884),b(664,1,{},lD),o.a=0,o.b=0,o.c=0,w(mf,"OrthogonalRoutingGenerator",664),b(1703,1,{},R3n),o.Kb=function(e){return new Cn(null,new On(u(e,118).e,16))},w(mf,"OrthogonalRoutingGenerator/lambda$0$Type",1703),b(1704,1,{},K3n),o.Kb=function(e){return new Cn(null,new On(u(e,118).j,16))},w(mf,"OrthogonalRoutingGenerator/lambda$1$Type",1704),b(670,1,{}),w(FB,"BaseRoutingDirectionStrategy",670),b(1870,670,{},tjn),o.yg=function(e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k,j;if(!(e.r&&!e.q))for(d=t+e.o*i,a=new M(e.n);a.a<a.c.c.length;)for(l=u(E(a),12),g=cc(S(C(Ei,1),J,8,0,[l.i.n,l.n,l.a])).a,h=new M(l.g);h.a<h.c.c.length;)f=u(E(h),18),fr(f)||(k=f.d,j=cc(S(C(Ei,1),J,8,0,[k.i.n,k.n,k.a])).a,y.Math.abs(g-j)>vh&&(s=d,c=e,r=new V(g,s),Re(f.a,r),qb(this,f,c,r,!1),p=e.r,p&&(m=$(B(Zo(p.e,0))),r=new V(m,s),Re(f.a,r),qb(this,f,c,r,!1),s=t+p.o*i,c=p,r=new V(m,s),Re(f.a,r),qb(this,f,c,r,!1)),r=new V(j,s),Re(f.a,r),qb(this,f,c,r,!1)))},o.zg=function(e){return e.i.n.a+e.n.a+e.a.a},o.Ag=function(){return en(),ae},o.Bg=function(){return en(),Xn},w(FB,"NorthToSouthRoutingStrategy",1870),b(1871,670,{},ijn),o.yg=function(e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k,j;if(!(e.r&&!e.q))for(d=t-e.o*i,a=new M(e.n);a.a<a.c.c.length;)for(l=u(E(a),12),g=cc(S(C(Ei,1),J,8,0,[l.i.n,l.n,l.a])).a,h=new M(l.g);h.a<h.c.c.length;)f=u(E(h),18),fr(f)||(k=f.d,j=cc(S(C(Ei,1),J,8,0,[k.i.n,k.n,k.a])).a,y.Math.abs(g-j)>vh&&(s=d,c=e,r=new V(g,s),Re(f.a,r),qb(this,f,c,r,!1),p=e.r,p&&(m=$(B(Zo(p.e,0))),r=new V(m,s),Re(f.a,r),qb(this,f,c,r,!1),s=t-p.o*i,c=p,r=new V(m,s),Re(f.a,r),qb(this,f,c,r,!1)),r=new V(j,s),Re(f.a,r),qb(this,f,c,r,!1)))},o.zg=function(e){return e.i.n.a+e.n.a+e.a.a},o.Ag=function(){return en(),Xn},o.Bg=function(){return en(),ae},w(FB,"SouthToNorthRoutingStrategy",1871),b(1869,670,{},rjn),o.yg=function(e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k,j;if(!(e.r&&!e.q))for(d=t+e.o*i,a=new M(e.n);a.a<a.c.c.length;)for(l=u(E(a),12),g=cc(S(C(Ei,1),J,8,0,[l.i.n,l.n,l.a])).b,h=new M(l.g);h.a<h.c.c.length;)f=u(E(h),18),fr(f)||(k=f.d,j=cc(S(C(Ei,1),J,8,0,[k.i.n,k.n,k.a])).b,y.Math.abs(g-j)>vh&&(s=d,c=e,r=new V(s,g),Re(f.a,r),qb(this,f,c,r,!0),p=e.r,p&&(m=$(B(Zo(p.e,0))),r=new V(s,m),Re(f.a,r),qb(this,f,c,r,!0),s=t+p.o*i,c=p,r=new V(s,m),Re(f.a,r),qb(this,f,c,r,!0)),r=new V(s,j),Re(f.a,r),qb(this,f,c,r,!0)))},o.zg=function(e){return e.i.n.b+e.n.b+e.a.b},o.Ag=function(){return en(),Zn},o.Bg=function(){return en(),Wn},w(FB,"WestToEastRoutingStrategy",1869),b(828,1,{},_en),o.Ib=function(){return ca(this.a)},o.b=0,o.c=!1,o.d=!1,o.f=0,w(jw,"NubSpline",828),b(418,1,{418:1},dqn,iAn),w(jw,"NubSpline/PolarCP",418),b(1480,1,vr,WBn),o.rg=function(e){return aye(u(e,36))},o.Kf=function(e,t){fNe(this,u(e,36),t)};var ire,rre,cre,ure,ore;w(jw,"SplineEdgeRouter",1480),b(274,1,{274:1},XT),o.Ib=function(){return this.a+" ->("+this.c+") "+this.b},o.c=0,w(jw,"SplineEdgeRouter/Dependency",274),b(465,22,{3:1,34:1,22:1,465:1},rX);var Ma,O2,sre=we(jw,"SplineEdgeRouter/SideToProcess",465,ke,e2e,cbe),fre;b(1481,1,Le,B3n),o.Mb=function(e){return K5(),!u(e,131).o},w(jw,"SplineEdgeRouter/lambda$0$Type",1481),b(1482,1,{},F3n),o.Ze=function(e){return K5(),u(e,131).v+1},w(jw,"SplineEdgeRouter/lambda$1$Type",1482),b(1483,1,re,YMn),o.Cd=function(e){S0e(this.a,this.b,u(e,42))},w(jw,"SplineEdgeRouter/lambda$2$Type",1483),b(1484,1,re,ZMn),o.Cd=function(e){P0e(this.a,this.b,u(e,42))},w(jw,"SplineEdgeRouter/lambda$3$Type",1484),b(131,1,{34:1,131:1},S_n,Xen),o.Fd=function(e){return Ohe(this,u(e,131))},o.b=0,o.e=!1,o.f=0,o.g=0,o.j=!1,o.k=!1,o.n=0,o.o=!1,o.p=!1,o.q=!1,o.s=0,o.u=0,o.v=0,o.F=0,w(jw,"SplineSegment",131),b(468,1,{468:1},_3n),o.a=0,o.b=!1,o.c=!1,o.d=!1,o.e=!1,o.f=0,w(jw,"SplineSegment/EdgeInformation",468),b(1198,1,{},H3n),w(Nl,Utn,1198),b(1199,1,De,q3n),o.Ne=function(e,t){return VEe(u(e,121),u(t,121))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Nl,EXn,1199),b(1197,1,{},wEn),w(Nl,"MrTree",1197),b(405,22,{3:1,34:1,22:1,405:1,188:1,196:1},pM),o.dg=function(){return V_n(this)},o.qg=function(){return V_n(this)};var NO,t9,i9,r9,rln=we(Nl,"TreeLayoutPhases",405,ke,i3e,ube),hre;b(1112,205,yd,qSn),o.rf=function(e,t){var i,r,c,s,f,h,l,a;for(on(un(z(e,(lc(),Iln))))||X7((i=new Xv((cb(),new Qd(e))),i)),f=t.eh(qB),f.Ug("build tGraph",1),h=(l=new tk,Ur(l,e),U(l,(pt(),u9),e),a=new de,_Pe(e,l,a),uIe(e,l,a),l),f.Vg(),f=t.eh(qB),f.Ug("Split graph",1),s=XPe(this.a,h),f.Vg(),c=new M(s);c.a<c.c.c.length;)r=u(E(c),121),Qke(this.b,r,t.eh(.5999999940395355/s.c.length));f=t.eh(qB),f.Ug("Pack components",1),h=GNe(s),f.Vg(),f=t.eh(qB),f.Ug("Apply layout results",1),DAe(h),f.Vg()},w(Nl,"TreeLayoutProvider",1112),b(1894,1,qh,G3n),o.Jc=function(e){qi(this,e)},o.Kc=function(){return Ln(),l4(),fv},w(Nl,"TreeUtil/1",1894),b(1895,1,qh,z3n),o.Jc=function(e){qi(this,e)},o.Kc=function(){return Ln(),l4(),fv},w(Nl,"TreeUtil/2",1895),b(1885,1,Le,X3n),o.Mb=function(e){return on(un(v(u(e,40),(pt(),Ta))))},w(Nl,"TreeUtil/lambda$0$Type",1885),b(1891,1,Le,skn),o.Mb=function(e){return this.a.Hc(u(e,40))},w(Nl,"TreeUtil/lambda$10$Type",1891),b(1892,1,{},fkn),o.Kb=function(e){return t3e(this.a,u(e,40))},w(Nl,"TreeUtil/lambda$11$Type",1892),b(1893,1,Le,nTn),o.Mb=function(e){return nme(this.a,this.b,u(e,40))},w(Nl,"TreeUtil/lambda$12$Type",1893),b(1886,1,Le,hkn),o.Mb=function(e){return F5e(this.a,u(e,65))},w(Nl,"TreeUtil/lambda$3$Type",1886),b(1887,1,De,U3n),o.Ne=function(e,t){return Xae(u(e,65),u(t,65))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Nl,"TreeUtil/lambda$4$Type",1887),b(1888,1,Le,lkn),o.Mb=function(e){return _5e(this.a,u(e,65))},w(Nl,"TreeUtil/lambda$7$Type",1888),b(1889,1,De,V3n),o.Ne=function(e,t){return Vae(u(e,65),u(t,65))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Nl,"TreeUtil/lambda$8$Type",1889),b(1890,1,{},W3n),o.Kb=function(e){return u(e,65).b},w(Nl,"TreeUtil/lambda$9$Type",1890),b(508,137,{3:1,508:1,96:1,137:1}),o.g=0,w(h8,"TGraphElement",508),b(65,508,{3:1,65:1,508:1,96:1,137:1},WW),o.Ib=function(){return this.b&&this.c?td(this.b)+"->"+td(this.c):"e_"+mt(this)},w(h8,"TEdge",65),b(121,137,{3:1,121:1,96:1,137:1},tk),o.Ib=function(){var e,t,i,r,c;for(c=null,r=ge(this.b,0);r.b!=r.d.c;)i=u(be(r),40),c+=(i.c==null||i.c.length==0?"n_"+i.g:"n_"+i.c)+`
`;for(t=ge(this.a,0);t.b!=t.d.c;)e=u(be(t),65),c+=(e.b&&e.c?td(e.b)+"->"+td(e.c):"e_"+mt(e))+`
`;return c};var TDe=w(h8,"TGraph",121);b(643,508,{3:1,508:1,643:1,96:1,137:1}),w(h8,"TShape",643),b(40,643,{3:1,508:1,40:1,643:1,96:1,137:1},q$),o.Ib=function(){return td(this)};var DO=w(h8,"TNode",40);b(236,1,qh,sl),o.Jc=function(e){qi(this,e)},o.Kc=function(){var e;return e=ge(this.a.d,0),new sg(e)},w(h8,"TNode/2",236),b(329,1,Pi,sg),o.Nb=function(e){_i(this,e)},o.Pb=function(){return u(be(this.a),65).c},o.Ob=function(){return Q9(this.a)},o.Qb=function(){p$(this.a)},w(h8,"TNode/2/1",329),b(1923,1,vt,J3n),o.Kf=function(e,t){BNe(this,u(e,121),t)},w(Bc,"CompactionProcessor",1923),b(1924,1,De,akn),o.Ne=function(e,t){return Cve(this.a,u(e,40),u(t,40))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Bc,"CompactionProcessor/lambda$0$Type",1924),b(1925,1,Le,eTn),o.Mb=function(e){return Lge(this.b,this.a,u(e,42))},o.a=0,o.b=0,w(Bc,"CompactionProcessor/lambda$1$Type",1925),b(1934,1,De,Q3n),o.Ne=function(e,t){return Ewe(u(e,40),u(t,40))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Bc,"CompactionProcessor/lambda$10$Type",1934),b(1935,1,De,Y3n),o.Ne=function(e,t){return R1e(u(e,40),u(t,40))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Bc,"CompactionProcessor/lambda$11$Type",1935),b(1936,1,De,Z3n),o.Ne=function(e,t){return Mwe(u(e,40),u(t,40))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Bc,"CompactionProcessor/lambda$12$Type",1936),b(1926,1,Le,dkn),o.Mb=function(e){return k1e(this.a,u(e,42))},o.a=0,w(Bc,"CompactionProcessor/lambda$2$Type",1926),b(1927,1,Le,bkn),o.Mb=function(e){return y1e(this.a,u(e,42))},o.a=0,w(Bc,"CompactionProcessor/lambda$3$Type",1927),b(1928,1,Le,n4n),o.Mb=function(e){return u(e,40).c.indexOf(OP)==-1},w(Bc,"CompactionProcessor/lambda$4$Type",1928),b(1929,1,{},wkn),o.Kb=function(e){return Dpe(this.a,u(e,40))},o.a=0,w(Bc,"CompactionProcessor/lambda$5$Type",1929),b(1930,1,{},gkn),o.Kb=function(e){return H4e(this.a,u(e,40))},o.a=0,w(Bc,"CompactionProcessor/lambda$6$Type",1930),b(1931,1,De,pkn),o.Ne=function(e,t){return Z3e(this.a,u(e,240),u(t,240))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Bc,"CompactionProcessor/lambda$7$Type",1931),b(1932,1,De,mkn),o.Ne=function(e,t){return n4e(this.a,u(e,40),u(t,40))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Bc,"CompactionProcessor/lambda$8$Type",1932),b(1933,1,De,e4n),o.Ne=function(e,t){return K1e(u(e,40),u(t,40))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Bc,"CompactionProcessor/lambda$9$Type",1933),b(1921,1,vt,t4n),o.Kf=function(e,t){$Se(u(e,121),t)},w(Bc,"DirectionProcessor",1921),b(1913,1,vt,HSn),o.Kf=function(e,t){rIe(this,u(e,121),t)},w(Bc,"FanProcessor",1913),b(1937,1,vt,i4n),o.Kf=function(e,t){ESe(u(e,121),t)},w(Bc,"GraphBoundsProcessor",1937),b(1938,1,{},r4n),o.Ye=function(e){return u(e,40).e.a},w(Bc,"GraphBoundsProcessor/lambda$0$Type",1938),b(1939,1,{},c4n),o.Ye=function(e){return u(e,40).e.b},w(Bc,"GraphBoundsProcessor/lambda$1$Type",1939),b(1940,1,{},u4n),o.Ye=function(e){return ile(u(e,40))},w(Bc,"GraphBoundsProcessor/lambda$2$Type",1940),b(1941,1,{},o4n),o.Ye=function(e){return tle(u(e,40))},w(Bc,"GraphBoundsProcessor/lambda$3$Type",1941),b(262,22,{3:1,34:1,22:1,262:1,196:1},ub),o.dg=function(){switch(this.g){case 0:return new mjn;case 1:return new HSn;case 2:return new pjn;case 3:return new a4n;case 4:return new f4n;case 8:return new s4n;case 5:return new t4n;case 6:return new b4n;case 7:return new J3n;case 9:return new i4n;case 10:return new w4n;default:throw T(new Gn(cB+(this.f!=null?this.f:""+this.g)))}};var cln,uln,oln,sln,fln,hln,lln,aln,dln,bln,YH,CDe=we(Bc,uB,262,ke,xxn,obe),lre;b(1920,1,vt,s4n),o.Kf=function(e,t){xLe(u(e,121),t)},w(Bc,"LevelCoordinatesProcessor",1920),b(1918,1,vt,f4n),o.Kf=function(e,t){iCe(this,u(e,121),t)},o.a=0,w(Bc,"LevelHeightProcessor",1918),b(1919,1,qh,h4n),o.Jc=function(e){qi(this,e)},o.Kc=function(){return Ln(),l4(),fv},w(Bc,"LevelHeightProcessor/1",1919),b(1914,1,vt,pjn),o.Kf=function(e,t){pSe(this,u(e,121),t)},w(Bc,"LevelProcessor",1914),b(1915,1,Le,l4n),o.Mb=function(e){return on(un(v(u(e,40),(pt(),Ta))))},w(Bc,"LevelProcessor/lambda$0$Type",1915),b(1916,1,vt,a4n),o.Kf=function(e,t){nEe(this,u(e,121),t)},o.a=0,w(Bc,"NeighborsProcessor",1916),b(1917,1,qh,d4n),o.Jc=function(e){qi(this,e)},o.Kc=function(){return Ln(),l4(),fv},w(Bc,"NeighborsProcessor/1",1917),b(1922,1,vt,b4n),o.Kf=function(e,t){iIe(this,u(e,121),t)},o.a=0,w(Bc,"NodePositionProcessor",1922),b(1912,1,vt,mjn),o.Kf=function(e,t){KOe(this,u(e,121),t)},w(Bc,"RootProcessor",1912),b(1942,1,vt,w4n),o.Kf=function(e,t){D9e(u(e,121),t)},w(Bc,"Untreeifyer",1942),b(392,22,{3:1,34:1,22:1,392:1},eN);var Nj,ZH,wln,gln=we(Gy,"EdgeRoutingMode",392,ke,J2e,sbe),are,Dj,Lv,nq,pln,mln,eq,tq,vln,iq,kln,rq,c9,cq,$O,xO,Js,jf,Nv,u9,o9,j1,yln,dre,uq,Ta,$j,xj;b(862,1,ms,f8n),o.hf=function(e){vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Srn),""),wVn),"Turns on Tree compaction which decreases the size of the whole tree by placing nodes of multiple levels in one large level"),(_n(),!1)),(l1(),yi)),Gt),jn((pf(),xn))))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Prn),""),"Edge End Texture Length"),"Should be set to the length of the texture at the end of an edge. This value can be used to improve the Edge Routing."),7),Qi),si),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Irn),""),"Tree Level"),"The index for the tree level the node is in"),Y(0)),Zr),Gi),jn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Orn),""),wVn),"When set to a positive number this option will force the algorithm to place the node to the specified position within the trees layer if weighting is set to constraint"),Y(-1)),Zr),Gi),jn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Arn),""),"Weighting of Nodes"),"Which weighting to use when computing a node order."),Mln),It),xln),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Lrn),""),"Edge Routing Mode"),"Chooses an Edge Routing algorithm."),jln),It),gln),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Nrn),""),"Search Order"),"Which search order to use when computing a spanning tree."),Eln),It),Kln),jn(xn)))),rzn((new a8n,e))};var bre,wre,gre,jln,pre,mre,Eln,vre,kre,Mln;w(Gy,"MrTreeMetaDataProvider",862),b(1006,1,ms,a8n),o.hf=function(e){rzn(e)};var yre,Tln,Cln,v0,Sln,Pln,oq,jre,Ere,Mre,Tre,Cre,Sre,Pre,Iln,Oln,Aln,Ire,A2,RO,Lln,Ore,Nln,sq,Are,Lre,Nre,Dln,Dre,Ph,$ln;w(Gy,"MrTreeOptions",1006),b(1007,1,{},g4n),o.sf=function(){var e;return e=new qSn,e},o.tf=function(e){},w(Gy,"MrTreeOptions/MrtreeFactory",1007),b(353,22,{3:1,34:1,22:1,353:1},mM);var fq,KO,hq,lq,xln=we(Gy,"OrderWeighting",353,ke,r3e,fbe),$re;b(433,22,{3:1,34:1,22:1,433:1},cX);var Rln,aq,Kln=we(Gy,"TreeifyingOrder",433,ke,Zge,hbe),xre;b(1486,1,vr,d8n),o.rg=function(e){return u(e,121),Rre},o.Kf=function(e,t){bve(this,u(e,121),t)};var Rre;w("org.eclipse.elk.alg.mrtree.p1treeify","DFSTreeifyer",1486),b(1487,1,vr,b8n),o.rg=function(e){return u(e,121),Kre},o.Kf=function(e,t){ySe(this,u(e,121),t)};var Kre;w(Jm,"NodeOrderer",1487),b(1494,1,{},_se),o.td=function(e){return WPn(e)},w(Jm,"NodeOrderer/0methodref$lambda$6$Type",1494),b(1488,1,Le,L4n),o.Mb=function(e){return _p(),on(un(v(u(e,40),(pt(),Ta))))},w(Jm,"NodeOrderer/lambda$0$Type",1488),b(1489,1,Le,N4n),o.Mb=function(e){return _p(),u(v(u(e,40),(lc(),A2)),17).a<0},w(Jm,"NodeOrderer/lambda$1$Type",1489),b(1490,1,Le,kkn),o.Mb=function(e){return qme(this.a,u(e,40))},w(Jm,"NodeOrderer/lambda$2$Type",1490),b(1491,1,Le,vkn),o.Mb=function(e){return Rpe(this.a,u(e,40))},w(Jm,"NodeOrderer/lambda$3$Type",1491),b(1492,1,De,D4n),o.Ne=function(e,t){return ame(u(e,40),u(t,40))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Jm,"NodeOrderer/lambda$4$Type",1492),b(1493,1,Le,$4n),o.Mb=function(e){return _p(),u(v(u(e,40),(pt(),tq)),17).a!=0},w(Jm,"NodeOrderer/lambda$5$Type",1493),b(1495,1,vr,l8n),o.rg=function(e){return u(e,121),Bre},o.Kf=function(e,t){OPe(this,u(e,121),t)},o.b=0;var Bre;w("org.eclipse.elk.alg.mrtree.p3place","NodePlacer",1495),b(1496,1,vr,h8n),o.rg=function(e){return u(e,121),Fre},o.Kf=function(e,t){lPe(u(e,121),t)};var Fre,SDe=w(po,"EdgeRouter",1496);b(1498,1,De,A4n),o.Ne=function(e,t){return jc(u(e,17).a,u(t,17).a)},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(po,"EdgeRouter/0methodref$compare$Type",1498),b(1503,1,{},m4n),o.Ye=function(e){return $(B(e))},w(po,"EdgeRouter/1methodref$doubleValue$Type",1503),b(1505,1,De,v4n),o.Ne=function(e,t){return bt($(B(e)),$(B(t)))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(po,"EdgeRouter/2methodref$compare$Type",1505),b(1507,1,De,k4n),o.Ne=function(e,t){return bt($(B(e)),$(B(t)))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(po,"EdgeRouter/3methodref$compare$Type",1507),b(1509,1,{},p4n),o.Ye=function(e){return $(B(e))},w(po,"EdgeRouter/4methodref$doubleValue$Type",1509),b(1511,1,De,y4n),o.Ne=function(e,t){return bt($(B(e)),$(B(t)))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(po,"EdgeRouter/5methodref$compare$Type",1511),b(1513,1,De,j4n),o.Ne=function(e,t){return bt($(B(e)),$(B(t)))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(po,"EdgeRouter/6methodref$compare$Type",1513),b(1497,1,{},E4n),o.Kb=function(e){return kl(),u(v(u(e,40),(lc(),Ph)),17)},w(po,"EdgeRouter/lambda$0$Type",1497),b(1508,1,{},M4n),o.Kb=function(e){return Q1e(u(e,40))},w(po,"EdgeRouter/lambda$11$Type",1508),b(1510,1,{},tTn),o.Kb=function(e){return T0e(this.b,this.a,u(e,40))},o.a=0,o.b=0,w(po,"EdgeRouter/lambda$13$Type",1510),b(1512,1,{},iTn),o.Kb=function(e){return Y1e(this.b,this.a,u(e,40))},o.a=0,o.b=0,w(po,"EdgeRouter/lambda$15$Type",1512),b(1514,1,De,T4n),o.Ne=function(e,t){return h9e(u(e,65),u(t,65))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(po,"EdgeRouter/lambda$17$Type",1514),b(1515,1,De,C4n),o.Ne=function(e,t){return l9e(u(e,65),u(t,65))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(po,"EdgeRouter/lambda$18$Type",1515),b(1516,1,De,S4n),o.Ne=function(e,t){return d9e(u(e,65),u(t,65))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(po,"EdgeRouter/lambda$19$Type",1516),b(1499,1,Le,ykn),o.Mb=function(e){return b2e(this.a,u(e,40))},o.a=0,w(po,"EdgeRouter/lambda$2$Type",1499),b(1517,1,De,P4n),o.Ne=function(e,t){return a9e(u(e,65),u(t,65))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(po,"EdgeRouter/lambda$20$Type",1517),b(1500,1,De,I4n),o.Ne=function(e,t){return l0e(u(e,40),u(t,40))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(po,"EdgeRouter/lambda$3$Type",1500),b(1501,1,De,O4n),o.Ne=function(e,t){return a0e(u(e,40),u(t,40))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(po,"EdgeRouter/lambda$4$Type",1501),b(1502,1,{},x4n),o.Kb=function(e){return Z1e(u(e,40))},w(po,"EdgeRouter/lambda$5$Type",1502),b(1504,1,{},rTn),o.Kb=function(e){return C0e(this.b,this.a,u(e,40))},o.a=0,o.b=0,w(po,"EdgeRouter/lambda$7$Type",1504),b(1506,1,{},cTn),o.Kb=function(e){return nae(this.b,this.a,u(e,40))},o.a=0,o.b=0,w(po,"EdgeRouter/lambda$9$Type",1506),b(675,1,{675:1},RBn),o.e=0,o.f=!1,o.g=!1,w(po,"MultiLevelEdgeNodeNodeGap",675),b(1943,1,De,R4n),o.Ne=function(e,t){return M2e(u(e,240),u(t,240))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(po,"MultiLevelEdgeNodeNodeGap/lambda$0$Type",1943),b(1944,1,De,K4n),o.Ne=function(e,t){return T2e(u(e,240),u(t,240))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(po,"MultiLevelEdgeNodeNodeGap/lambda$1$Type",1944);var L2;b(501,22,{3:1,34:1,22:1,501:1,188:1,196:1},uX),o.dg=function(){return EKn(this)},o.qg=function(){return EKn(this)};var BO,N2,Bln=we(Drn,"RadialLayoutPhases",501,ke,zge,lbe),_re;b(1113,205,yd,bEn),o.rf=function(e,t){var i,r,c,s,f,h;if(i=sqn(this,e),t.Ug("Radial layout",i.c.length),on(un(z(e,(oa(),Jln))))||X7((r=new Xv((cb(),new Qd(e))),r)),h=wye(e),ht(e,(Cg(),L2),h),!h)throw T(new Gn("The given graph is not a tree!"));for(c=$(B(z(e,HO))),c==0&&(c=H_n(e)),ht(e,HO,c),f=new M(sqn(this,e));f.a<f.c.c.length;)s=u(E(f),47),s.Kf(e,t.eh(1));t.Vg()},w(Drn,"RadialLayoutProvider",1113),b(556,1,De,XE),o.Ne=function(e,t){return QSe(this.a,this.b,u(e,27),u(t,27))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},o.a=0,o.b=0,w(Drn,"RadialUtil/lambda$0$Type",556),b(1395,1,vt,B4n),o.Kf=function(e,t){HLe(u(e,27),t)},w(Rrn,"CalculateGraphSize",1395),b(1396,1,vt,F4n),o.Kf=function(e,t){hOe(u(e,27))},w(Rrn,"EdgeAngleCalculator",1396),b(368,22,{3:1,34:1,22:1,368:1,196:1},d7),o.dg=function(){switch(this.g){case 0:return new z4n;case 1:return new _4n;case 2:return new X4n;case 3:return new B4n;case 4:return new F4n;default:throw T(new Gn(cB+(this.f!=null?this.f:""+this.g)))}};var dq,bq,wq,gq,pq,Hre=we(Rrn,uB,368,ke,U3e,abe),qre;b(653,1,{}),o.e=1,o.g=0,w(UB,"AbstractRadiusExtensionCompaction",653),b(1834,653,{},fSn),o.Cg=function(e){var t,i,r,c,s,f,h,l,a;for(this.c=u(z(e,(Cg(),L2)),27),sfe(this,this.c),this.d=Sx(u(z(e,(oa(),Rj)),300)),l=u(z(e,vq),17),l&&i9n(this,l.a),h=B(z(e,(He(),qd))),pG(this,(Jn(h),h)),a=aw(this.c),this.d&&this.d.Gg(a),wPe(this,a),f=new Fu(S(C(Ye,1),vVn,27,0,[this.c])),i=0;i<2;i++)for(t=0;t<a.c.length;t++)c=new Fu(S(C(Ye,1),vVn,27,0,[(Nn(t,a.c.length),u(a.c[t],27))])),s=t<a.c.length-1?(Nn(t+1,a.c.length),u(a.c[t+1],27)):(Nn(0,a.c.length),u(a.c[0],27)),r=t==0?u(sn(a,a.c.length-1),27):(Nn(t-1,a.c.length),u(a.c[t-1],27)),BFn(this,(Nn(t,a.c.length),u(a.c[t],27),f),r,s,c)},w(UB,"AnnulusWedgeCompaction",1834),b(1393,1,vt,_4n),o.Kf=function(e,t){sve(u(e,27),t)},w(UB,"GeneralCompactor",1393),b(1833,653,{},H4n),o.Cg=function(e){var t,i,r,c;i=u(z(e,(Cg(),L2)),27),this.f=i,this.b=Sx(u(z(e,(oa(),Rj)),300)),c=u(z(e,vq),17),c&&i9n(this,c.a),r=B(z(e,(He(),qd))),pG(this,(Jn(r),r)),t=aw(i),this.b&&this.b.Gg(t),p_n(this,t)},o.a=0,w(UB,"RadialCompaction",1833),b(1842,1,{},q4n),o.Dg=function(e){var t,i,r,c,s,f;for(this.a=e,t=0,f=aw(e),r=0,s=new M(f);s.a<s.c.c.length;)for(c=u(E(s),27),++r,i=r;i<f.c.length;i++)AIe(this,c,(Nn(i,f.c.length),u(f.c[i],27)))&&(t+=1);return t},w(Krn,"CrossingMinimizationPosition",1842),b(1840,1,{},U4n),o.Dg=function(e){var t,i,r,c,s,f,h,l,a,d,g,p,m;for(r=0,i=new ie(ce(Sl(e).a.Kc(),new En));pe(i);)t=u(fe(i),74),h=Gr(u(N((!t.c&&(t.c=new Dn(he,t,5,8)),t.c),0),84)),a=h.i+h.g/2,d=h.j+h.f/2,c=e.i+e.g/2,s=e.j+e.f/2,g=new Ni,g.a=a-c,g.b=d-s,f=new V(g.a,g.b),vm(f,e.g,e.f),g.a-=f.a,g.b-=f.b,c=a-g.a,s=d-g.b,l=new V(g.a,g.b),vm(l,h.g,h.f),g.a-=l.a,g.b-=l.b,a=c+g.a,d=s+g.b,p=a-c,m=d-s,r+=y.Math.sqrt(p*p+m*m);return r},w(Krn,"EdgeLengthOptimization",1840),b(1841,1,{},G4n),o.Dg=function(e){var t,i,r,c,s,f,h,l,a,d,g;for(r=0,i=new ie(ce(Sl(e).a.Kc(),new En));pe(i);)t=u(fe(i),74),h=Gr(u(N((!t.c&&(t.c=new Dn(he,t,5,8)),t.c),0),84)),l=h.i+h.g/2,a=h.j+h.f/2,c=u(z(h,(He(),D3)),8),s=e.i+c.a+e.g/2,f=e.j+c.b+e.f,d=l-s,g=a-f,r+=y.Math.sqrt(d*d+g*g);return r},w(Krn,"EdgeLengthPositionOptimization",1841),b(1392,653,vt,z4n),o.Kf=function(e,t){bEe(this,u(e,27),t)},w("org.eclipse.elk.alg.radial.intermediate.overlaps","RadiusExtensionOverlapRemoval",1392),b(1394,1,vt,X4n),o.Kf=function(e,t){swe(u(e,27),t)},w("org.eclipse.elk.alg.radial.intermediate.rotation","GeneralRotator",1394),b(434,22,{3:1,34:1,22:1,434:1},oX);var Fln,mq,_ln=we(l8,"AnnulusWedgeCriteria",434,ke,n2e,bbe),Ure;b(393,22,{3:1,34:1,22:1,393:1},tN);var FO,Hln,qln,Uln=we(l8,Btn,393,ke,rpe,dbe),Gre;b(863,1,ms,w8n),o.hf=function(e){vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Brn),""),"Center On Root"),"Centers the layout on the root of the tree i.e. so that the central node is also the center node of the final layout. This introduces additional whitespace."),(_n(),!1)),(l1(),yi)),Gt),jn((pf(),xn))))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Frn),""),"Order ID"),"The id can be used to define an order for nodes of one radius. This can be used to sort them in the layer accordingly."),Y(0)),Zr),Gi),jn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,_rn),""),"Radius"),"The radius option can be used to set the initial radius for the radial layouter."),0),Qi),si),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,NP),""),"Rotate"),"The rotate option determines whether a rotation of the layout should be performed."),!1),yi),Gt),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,zB),""),kVn),"With the compacter option it can be determined how compaction on the graph is done. It can be chosen between none, the radial compaction or the compaction of wedges separately."),Gln),It),Uln),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,XB),""),"Compaction Step Size"),"Determine the size of steps with which the compaction is done. Step size 1 correlates to a compaction of 1 pixel per Iteration."),Y(1)),Zr),Gi),jn(xn)))),ri(e,XB,zB,null),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Hrn),""),"Sorter"),"Sort the nodes per radius according to the sorting algorithm. The strategies are none, by the given order id, or sorting them by polar coordinates."),Xln),It),s1n),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,qrn),""),"Annulus Wedge Criteria"),"Determine how the wedge for the node placement is calculated. It can be chosen between wedge determination by the number of leaves or by the maximum sum of diagonals."),Vln),It),_ln),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Urn),""),"Translation Optimization"),"Find the optimal translation of the nodes of the first radii according to this criteria. For example edge crossings can be minimized."),zln),It),c1n),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,VB),zrn),"Target Angle"),"The angle in radians that the layout should be rotated to after layout."),0),Qi),si),jn(xn)))),ri(e,VB,NP,null),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,WB),zrn),"Additional Wedge Space"),"If set to true, modifies the target angle by rotating further such that space is left for an edge to pass in between the nodes. This option should only be used in conjunction with top-down layout."),!1),yi),Gt),jn(xn)))),ri(e,WB,NP,null),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Grn),zrn),"Outgoing Edge Angles"),"Calculate the required angle of connected nodes to leave space for an incoming edge. This option should only be used in conjunction with top-down layout."),!1),yi),Gt),jn(xn)))),QGn((new g8n,e))};var zre,Xre,Vre,Gln,Wre,zln,Jre,Qre,Yre,Zre,nce,ece,tce,Xln,ice,Vln;w(l8,"RadialMetaDataProvider",863),b(1008,1,ms,g8n),o.hf=function(e){QGn(e)};var Wln,vq,kq,rce,cce,uce,oce,Jln,Qln,_O,sce,fce,HO,Yln,Zln,n1n,yq,Rj,hce,e1n;w(l8,"RadialOptions",1008),b(1009,1,{},V4n),o.sf=function(){var e;return e=new bEn,e},o.tf=function(e){},w(l8,"RadialOptions/RadialFactory",1009),b(354,22,{3:1,34:1,22:1,354:1},vM);var t1n,i1n,r1n,jq,c1n=we(l8,"RadialTranslationStrategy",354,ke,c3e,wbe),lce;b(300,22,{3:1,34:1,22:1,300:1},iN);var u1n,Eq,o1n,s1n=we(l8,"SortingStrategy",300,ke,cpe,gbe),ace;b(1476,1,vr,W4n),o.rg=function(e){return u(e,27),null},o.Kf=function(e,t){REe(this,u(e,27),t)},o.c=0,w("org.eclipse.elk.alg.radial.p1position","EadesRadial",1476),b(1838,1,{},J4n),o.Eg=function(e){return vBn(e)},w(yVn,"AnnulusWedgeByLeafs",1838),b(1839,1,{},Q4n),o.Eg=function(e){return AFn(this,e)},w(yVn,"AnnulusWedgeByNodeSpace",1839),b(1477,1,vr,Y4n),o.rg=function(e){return u(e,27),null},o.Kf=function(e,t){V5e(this,u(e,27),t)},w("org.eclipse.elk.alg.radial.p2routing","StraightLineEdgeRouter",1477),b(826,1,{},cz),o.Fg=function(e){},o.Gg=function(e){Oyn(this,e)},w(Xrn,"IDSorter",826),b(1837,1,De,Z4n),o.Ne=function(e,t){return fve(u(e,27),u(t,27))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Xrn,"IDSorter/lambda$0$Type",1837),b(1836,1,{},Mxn),o.Fg=function(e){gLn(this,e)},o.Gg=function(e){var t;e.dc()||(this.e||(t=fIn(u(e.Xb(0),27)),gLn(this,t)),Oyn(this.e,e))},w(Xrn,"PolarCoordinateSorter",1836),b(445,22,{3:1,34:1,22:1,445:1},rN);var Kj,qO,Mq,f1n=we(TVn,"RectPackingLayoutPhases",445,ke,tpe,pbe),dce;b(1118,205,yd,gEn),o.rf=function(e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn;if(t.Ug("Rectangle Packing",1),g=u(z(e,(Bf(),h9)),107),l=on(un(z(e,$ce))),d=$(B(z(e,l9))),kn=on(un(z(e,y1n))),D=(!e.a&&(e.a=new q(Ye,e,10,11)),e.a),on(un(z(e,Aq)))||X7((c=new Xv((cb(),new Qd(e))),c)),yn=!1,kn&&D.i>=3)for(X=u(N(D,0),27),tn=u(N(D,1),27),s=0;s+2<D.i;)if(_=X,X=tn,tn=u(N(D,s+2),27),_.f>=X.f+tn.f+d||tn.f>=_.f+X.f+d){yn=!0;break}else++s;else yn=!0;if(!yn){for(p=D.i,h=new ne(D);h.e!=h.i.gc();)f=u(ue(h),27),ht(f,(He(),Jj),Y(p)),--p;KUn(e,new op),t.Vg();return}for(i=(H7(this.a),hf(this.a,(XC(),Kj),u(z(e,T1n),188)),hf(this.a,qO,u(z(e,v1n),188)),hf(this.a,Mq,u(z(e,j1n),188)),MX(this.a,(Rn=new ii,Fe(Rn,Kj,(rS(),Sq)),Fe(Rn,qO,Cq),on(un(z(e,p1n)))&&Fe(Rn,Kj,Tq),Rn)),gy(this.a,e)),a=1/i.c.length,k=new M(i);k.a<k.c.c.length;){if(m=u(E(k),47),t.$g())return;m.Kf(e,t.eh(a))}for(P=0,j=0,A=new ne(D);A.e!=A.i.gc();)O=u(ue(A),27),P=y.Math.max(P,O.i+O.g),j=y.Math.max(j,O.j+O.f);Enn(e,new V($(B(z(e,(_h(),A3)))),$(B(z(e,Dv)))),new V(P,j)),Lve(D,g),l||Gb(e,$(B(z(e,A3)))+(g.b+g.c),$(B(z(e,Dv)))+(g.d+g.a),!1,!0),on(un(z(e,Aq)))||X7((r=new Xv((cb(),new Qd(e))),r)),t.Vg()},w(TVn,"RectPackingLayoutProvider",1118),b(1518,1,vt,nmn),o.Kf=function(e,t){lOe(u(e,27),t)},w(DP,"InteractiveNodeReorderer",1518),b(1519,1,De,emn),o.Ne=function(e,t){return m6e(u(e,27),u(t,27))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(DP,"InteractiveNodeReorderer/lambda$0$Type",1519),b(456,22,{3:1,34:1,22:1,456:1,196:1},cN),o.dg=function(){switch(this.g){case 0:return new nmn;case 1:return new imn;case 2:return new tmn}return null};var Tq,Cq,Sq,bce=we(DP,uB,456,ke,ipe,mbe),wce;b(1521,1,vt,tmn),o.Kf=function(e,t){L8e(u(e,27),t)},w(DP,"MinSizePostProcessor",1521),b(1520,1,vt,imn),o.Kf=function(e,t){O6e(u(e,27),t)},w(DP,"MinSizePreProcessor",1520);var s9,Dv,A3,gce,pce,UO,Pq,Iq,f9,GO,Xw;b(394,22,{3:1,34:1,22:1,394:1},uN);var h1n,l1n,Oq,a1n=we(JB,"OptimizationGoal",394,ke,epe,vbe),mce;b(867,1,ms,p8n),o.hf=function(e){vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Vrn),""),"Try box layout first"),"Whether one should check whether the regions are stackable to see whether box layout would do the job. For example, nodes with the same height are not stackable inside a row. Therefore, box layout will perform better and faster."),(_n(),!1)),(l1(),yi)),Gt),jn((pf(),xn))))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Wrn),""),"Current position of a node in the order of nodes"),"The rectangles are ordered. Normally according to their definition the the model. This option specifies the current position of a node."),Y(-1)),Zr),Gi),jn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Jrn),""),"Desired index of node"),"The rectangles are ordered. Normally according to their definition the the model. This option allows to specify a desired position that has preference over the original position."),Y(-1)),Zr),Gi),jn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Qrn),""),"In new Row"),"If set to true this node begins in a new row. Consequently this node cannot be moved in a previous layer during compaction. Width approximation does does not take this into account."),!1),yi),Gt),jn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Yrn),QB),"Width Approximation Strategy"),"Strategy for finding an initial width of the drawing."),w1n),It),P1n),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Zrn),QB),"Target Width"),"Option to place the rectangles in the given target width instead of approximating the width using the desired aspect ratio. The padding is not included in this. Meaning a drawing will have width of targetwidth + horizontal padding."),-1),Qi),si),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,ncn),QB),"Optimization Goal"),"Optimization goal for approximation of the bounding box given by the first iteration. Determines whether layout is sorted by the maximum scaling, aspect ratio, or area. Depending on the strategy the aspect ratio might be nearly ignored."),b1n),It),a1n),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,ecn),QB),"Shift Last Placed."),"When placing a rectangle behind or below the last placed rectangle in the first iteration, it is sometimes possible to shift the rectangle further to the left or right, resulting in less whitespace. True (default) enables the shift and false disables it. Disabling the shift produces a greater approximated area by the first iteration and a layout, when using ONLY the first iteration (default not the case), where it is sometimes impossible to implement a size transformation of rectangles that will fill the bounding box and eliminate empty spaces."),!0),yi),Gt),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,tcn),"packing"),CVn),"Strategy for finding an initial placement on nodes."),d1n),It),A1n),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,icn),SVn),"Row Height Reevaluation"),"During the compaction step the height of a row is normally not changed. If this options is set, the blocks of other rows might be added if they exceed the row height. If this is the case the whole row has to be packed again to be optimal regarding the new row height. This option should, therefore, be used with care since it might be computation heavy."),!1),yi),Gt),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,rcn),SVn),"Compaction iterations"),"Defines the number of compaction iterations. E.g. if set to 2 the width is initially approximated, then the drawing is compacted and based on the resulting drawing the target width is decreased or increased and a second compaction step is executed and the result compared to the first one. The best run is used based on the scale measure."),Y(1)),Zr),Gi),jn(xn)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,ccn),"whiteSpaceElimination"),"White Space Approximation Strategy"),"Strategy for expanding nodes such that whitespace in the parent is eliminated."),It),D1n),jn(xn)))),bzn((new m8n,e))};var vce,kce,yce,jce,Ece,Mce,d1n,Tce,Cce,Sce,Pce,b1n,Ice,w1n,Oce;w(JB,"RectPackingMetaDataProvider",867),b(1016,1,ms,m8n),o.hf=function(e){bzn(e)};var zO,Ace,g1n,Bj,p1n,Lce,Fj,Nce,Dce,$ce,xce,Rce,Aq,m1n,Lq,v1n,h9,k1n,Kce,l9,y1n,j1n,E1n,M1n,T1n,Nq;w(JB,"RectPackingOptions",1016),b(1017,1,{},rmn),o.sf=function(){var e;return e=new gEn,e},o.tf=function(e){},w(JB,"RectPackingOptions/RectpackingFactory",1017),b(1705,1,{},vPn),o.a=0,o.c=!1,w(Qm,"AreaApproximation",1705);var C1n=Dt(Qm,"BestCandidateFilter");b(673,1,{535:1},KA),o.Hg=function(e,t,i){var r,c,s,f,h,l;for(l=new Z,s=Pt,h=new M(e);h.a<h.c.c.length;)f=u(E(h),238),s=y.Math.min(s,(f.c+(i.b+i.c))*(f.b+(i.d+i.a)));for(c=new M(e);c.a<c.c.c.length;)r=u(E(c),238),(r.c+(i.b+i.c))*(r.b+(i.d+i.a))==s&&Fn(l.c,r);return l},w(Qm,"AreaFilter",673),b(674,1,{535:1},BA),o.Hg=function(e,t,i){var r,c,s,f,h,l;for(h=new Z,l=Pt,f=new M(e);f.a<f.c.c.length;)s=u(E(f),238),l=y.Math.min(l,y.Math.abs((s.c+(i.b+i.c))/(s.b+(i.d+i.a))-t));for(c=new M(e);c.a<c.c.c.length;)r=u(E(c),238),y.Math.abs((r.c+(i.b+i.c))/(r.b+(i.d+i.a))-t)==l&&Fn(h.c,r);return h},w(Qm,"AspectRatioFilter",674),b(1469,1,vr,cmn),o.rg=function(e){return u(e,27),null},o.Kf=function(e,t){YCe(u(e,27),t)},w(Qm,"GreedyWidthApproximator",1469),b(672,1,{535:1},FA),o.Hg=function(e,t,i){var r,c,s,f,h,l;for(l=new Z,s=li,h=new M(e);h.a<h.c.c.length;)f=u(E(h),238),s=y.Math.max(s,cT(f.c+(i.b+i.c),f.b+(i.d+i.a),f.a));for(c=new M(e);c.a<c.c.c.length;)r=u(E(c),238),cT(r.c+(i.b+i.c),r.b+(i.d+i.a),r.a)==s&&Fn(l.c,r);return l},w(Qm,"ScaleMeasureFilter",672),b(1470,1,vr,umn),o.rg=function(e){return u(e,27),null},o.Kf=function(e,t){KEe(u(e,27),t)},w(Qm,"TargetWidthWidthApproximator",1470),b(491,22,{3:1,34:1,22:1,491:1,188:1,196:1},sX),o.dg=function(){return FFn(this)},o.qg=function(){return FFn(this)};var Dq,S1n,P1n=we(Qm,"WidthApproximationStrategy",491,ke,Qge,kbe),Bce;b(1471,1,vr,omn),o.rg=function(e){return u(e,27),null},o.Kf=function(e,t){YLe(this,u(e,27),t)},w($P,"Compactor",1471),b(1473,1,vr,smn),o.rg=function(e){return u(e,27),null},o.Kf=function(e,t){OCe(u(e,27),t)},w($P,"NoPlacement",1473),b(439,22,{3:1,34:1,22:1,439:1,188:1,196:1},oN),o.dg=function(){return nKn(this)},o.qg=function(){return nKn(this)};var $q,I1n,O1n,A1n=we($P,"PackingStrategy",439,ke,npe,Ebe),Fce;b(810,1,{},aX),o.a=0,o.b=0,o.c=0,o.d=Pt,o.e=0,o.f=Pt,w($P,"RowFillingAndCompaction",810),b(1472,1,vr,fmn),o.rg=function(e){return u(e,27),null},o.Kf=function(e,t){bAe(u(e,27),t)},w($P,"SimplePlacement",1472),b(1474,1,vr,hmn),o.rg=function(e){return u(e,27),null},o.Kf=function(e,t){this.Ig(u(e,27),t)},o.Ig=function(e,t){NHn(e,t)},w(ucn,"EqualWhitespaceEliminator",1474),b(1475,1474,vr,lmn),o.Ig=function(e,t){var i,r,c,s,f;t.Ug("To Aspect Ratio Whitesapce Eliminator",1),f=$(B(z(e,(_h(),A3)))),s=$(B(z(e,Dv))),c=$(B(z(e,(Bf(),zO)))),i=$(B(z(e,s9))),r=f/s,r<c?(f=s*c,ht(e,A3,f)):(i+=f/c-s,ht(e,s9,i),ht(e,Dv,s+i)),NHn(e,t),t.Vg()},w(ucn,"ToAspectratioNodeExpander",1475),b(492,22,{3:1,34:1,22:1,492:1,188:1,196:1},fX),o.dg=function(){return Pxn(this)},o.qg=function(){return Pxn(this)};var L1n,N1n,D1n=we(ucn,"WhiteSpaceEliminationStrategy",492,ke,Yge,Mbe),_ce;b(172,1,{172:1},U$),o.a=0,o.c=!1,o.d=0,o.e=0,o.f=0,o.g=0,o.i=0,o.k=!1,o.o=Pt,o.p=Pt,o.r=0,o.s=0,o.t=0,w(zy,"Block",172),b(209,1,{209:1},DT),o.a=0,o.b=0,o.d=0,o.e=0,o.f=0,w(zy,"BlockRow",209),b(315,1,{315:1},tJ),o.b=0,o.c=0,o.d=0,o.e=0,o.f=0,w(zy,"BlockStack",315),b(238,1,{238:1},tW,tZ),o.a=0,o.b=0,o.c=0,o.d=0,o.e=0,o.g=0;var PDe=w(zy,"DrawingData",238);b(373,22,{3:1,34:1,22:1,373:1},b7);var L3,D2,a9,d9,_j,Hce=we(zy,"DrawingDataDescriptor",373,ke,G3e,Tbe),qce;b(186,1,{186:1},aJ),o.b=0,o.c=0,o.e=0,o.f=0,w(zy,"RectRow",186),b(763,1,{},dY),o.j=0,w(Ew,KXn,763),b(1209,1,{},amn),o.af=function(e){return J1(e.a,e.b)},w(Ew,Gtn,1209),b(1210,1,{},jkn),o.af=function(e){return e4e(this.a,e)},w(Ew,BXn,1210),b(1211,1,{},Ekn),o.af=function(e){return y9e(this.a,e)},w(Ew,FXn,1211),b(1212,1,{},Mkn),o.af=function(e){return c6e(this.a,e)},w(Ew,"ElkGraphImporter/lambda$3$Type",1212),b(1213,1,{},Tkn),o.af=function(e){return oMe(this.a,e)},w(Ew,_Xn,1213),b(1115,205,yd,pEn),o.rf=function(e,t){var i,r,c,s,f,h,l,a,d,g,p,m;for(Nf(e,(Wk(),QO))&&(m=Ae(z(e,(Lx(),ean))),s=CR(z4(),m),s&&(f=u(z7(s.f),205),f.rf(e,t.eh(1)))),ht(e,Hq,(ik(),JO)),ht(e,qq,(Jk(),_q)),ht(e,Uq,(Tk(),YO)),h=u(z(e,(Lx(),Y1n)),17).a,t.Ug("Overlap removal",1),on(un(z(e,fue))),l=new ni,a=new Ckn(l),r=new dY,i=wzn(r,e),d=!0,c=0;c<h&&d;){if(on(un(z(e,Z1n)))){if(l.a.$b(),Yje(new yCn(a),i.i),l.a.gc()==0)break;i.e=l}for(H7(this.b),hf(this.b,($k(),XO),(s6(),Hj)),hf(this.b,VO,i.g),hf(this.b,WO,(tM(),Kq)),this.a=gy(this.b,i),p=new M(this.a);p.a<p.c.c.length;)g=u(E(p),47),g.Kf(i,t.eh(1));wke(r,i),d=on(un(v(i,(J4(),uon)))),++c}PGn(r,i),t.Vg()},w(Ew,"OverlapRemovalLayoutProvider",1115),b(1116,1,{},Ckn),w(Ew,"OverlapRemovalLayoutProvider/lambda$0$Type",1116),b(444,22,{3:1,34:1,22:1,444:1},sN);var XO,VO,WO,xq=we(Ew,"SPOrEPhases",444,ke,ope,Sbe),Uce;b(1219,1,{},mEn),w(Ew,"ShrinkTree",1219),b(1117,205,yd,kjn),o.rf=function(e,t){var i,r,c,s,f;Nf(e,(Wk(),QO))&&(f=Ae(z(e,QO)),c=CR(z4(),f),c&&(s=u(z7(c.f),205),s.rf(e,t.eh(1)))),r=new dY,i=wzn(r,e),LTe(this.a,i,t.eh(1)),PGn(r,i)},w(Ew,"ShrinkTreeLayoutProvider",1117),b(306,137,{3:1,306:1,96:1,137:1},sAn),o.c=!1,w("org.eclipse.elk.alg.spore.graph","Graph",306),b(490,22,{3:1,34:1,22:1,490:1,188:1,196:1},bMn),o.dg=function(){return ERn(this)},o.qg=function(){return ERn(this)};var Rq,$1n=we(Mw,Btn,490,ke,ege,Cbe),Gce;b(558,22,{3:1,34:1,22:1,558:1,188:1,196:1},dSn),o.dg=function(){return new YU},o.qg=function(){return new YU};var Kq,zce=we(Mw,"OverlapRemovalStrategy",558,ke,tge,Pbe),Xce;b(438,22,{3:1,34:1,22:1,438:1},hX);var JO,Bq,x1n=we(Mw,"RootSelection",438,ke,t2e,Ibe),Vce;b(324,22,{3:1,34:1,22:1,324:1},w7);var R1n,Fq,_q,K1n,B1n,F1n=we(Mw,"SpanningTreeCostFunction",324,ke,z3e,Obe),Wce;b(1014,1,ms,v8n),o.hf=function(e){rGn(e)};var _1n,H1n,Jce,Qce,q1n,U1n,Hq,qq,Uq,Yce,Zce,QO;w(Mw,"SporeCompactionOptions",1014),b(1015,1,{},dmn),o.sf=function(){var e;return e=new kjn,e},o.tf=function(e){},w(Mw,"SporeCompactionOptions/SporeCompactionFactory",1015),b(866,1,ms,k8n),o.hf=function(e){vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,YB),""),"Underlying Layout Algorithm"),"A layout algorithm that is applied to the graph before it is compacted. If this is null, nothing is applied before compaction."),(l1(),$2)),fn),jn((pf(),xn))))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,eF),"structure"),"Structure Extraction Strategy"),"This option defines what kind of triangulation or other partitioning of the plane is applied to the vertices."),J1n),It),tan),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,ocn),tF),"Tree Construction Strategy"),"Whether a minimum spanning tree or a maximum spanning tree should be constructed."),V1n),It),ran),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,scn),tF),"Cost Function for Spanning Tree"),"The cost function is used in the creation of the spanning tree."),X1n),It),F1n),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,ZB),tF),"Root node for spanning tree construction"),"The identifier of the node that is preferred as the root of the spanning tree. If this is null, the first node is chosen."),null),$2),fn),jn(xn)))),ri(e,ZB,nF,cue),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,nF),tF),"Root selection for spanning tree"),"This sets the method used to select a root node for the construction of a spanning tree"),z1n),It),x1n),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,fcn),Fin),CVn),"This option defines how the compaction is applied."),G1n),It),$1n),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,hcn),Fin),"Orthogonal Compaction"),"Restricts the translation of nodes to orthogonal directions in the compaction phase."),(_n(),!1)),yi),Gt),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,lcn),IVn),"Upper limit for iterations of overlap removal"),null),Y(64)),Zr),Gi),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,acn),IVn),"Whether to run a supplementary scanline overlap check."),null),!0),yi),Gt),jn(xn)))),oUn((new y8n,e)),rGn((new v8n,e))};var nue,G1n,eue,tue,iue,rue,cue,uue,z1n,oue,X1n,sue,V1n,W1n,J1n,Q1n;w(Mw,"SporeMetaDataProvider",866),b(1012,1,ms,y8n),o.hf=function(e){oUn(e)};var fue,Y1n,Z1n,nan,hue,ean;w(Mw,"SporeOverlapRemovalOptions",1012),b(1013,1,{},bmn),o.sf=function(){var e;return e=new pEn,e},o.tf=function(e){},w(Mw,"SporeOverlapRemovalOptions/SporeOverlapFactory",1013),b(539,22,{3:1,34:1,22:1,539:1,188:1,196:1},bOn),o.dg=function(){return MRn(this)},o.qg=function(){return MRn(this)};var Hj,tan=we(Mw,"StructureExtractionStrategy",539,ke,ige,Abe),lue;b(437,22,{3:1,34:1,22:1,437:1,188:1,196:1},lX),o.dg=function(){return MKn(this)},o.qg=function(){return MKn(this)};var ian,YO,ran=we(Mw,"TreeConstructionStrategy",437,ke,i2e,Lbe),aue;b(1463,1,vr,wmn),o.rg=function(e){return u(e,306),new ii},o.Kf=function(e,t){vke(u(e,306),t)},w(OVn,"DelaunayTriangulationPhase",1463),b(1464,1,re,Skn),o.Cd=function(e){nn(this.a,u(e,68).a)},w(OVn,"DelaunayTriangulationPhase/lambda$0$Type",1464),b(794,1,vr,rz),o.rg=function(e){return u(e,306),new ii},o.Kf=function(e,t){this.Jg(u(e,306),t)},o.Jg=function(e,t){var i,r,c;t.Ug("Minimum spanning tree construction",1),e.d?r=e.d.a:r=u(sn(e.i,0),68).a,on(un(v(e,(J4(),A8))))?c=GR(e.e,r,(i=e.b,i)):c=GR(e.e,r,e.b),uRn(this,c,e),t.Vg()},w(iF,"MinSTPhase",794),b(1466,794,vr,cjn),o.Jg=function(e,t){var i,r,c,s;t.Ug("Maximum spanning tree construction",1),i=new Pkn(e),e.d?c=e.d.c:c=u(sn(e.i,0),68).c,on(un(v(e,(J4(),A8))))?s=GR(e.e,c,(r=i,r)):s=GR(e.e,c,i),uRn(this,s,e),t.Vg()},w(iF,"MaxSTPhase",1466),b(1467,1,{},Pkn),o.af=function(e){return gle(this.a,e)},w(iF,"MaxSTPhase/lambda$0$Type",1467),b(1465,1,re,Ikn),o.Cd=function(e){s1e(this.a,u(e,68))},w(iF,"MinSTPhase/lambda$0$Type",1465),b(796,1,vr,YU),o.rg=function(e){return u(e,306),new ii},o.Kf=function(e,t){Dye(this,u(e,306),t)},o.a=!1,w(rF,"GrowTreePhase",796),b(797,1,re,xV),o.Cd=function(e){Jve(this.a,this.b,this.c,u(e,225))},w(rF,"GrowTreePhase/lambda$0$Type",797),b(1468,1,vr,gmn),o.rg=function(e){return u(e,306),new ii},o.Kf=function(e,t){H9e(this,u(e,306),t)},w(rF,"ShrinkTreeCompactionPhase",1468),b(795,1,re,RV),o.Cd=function(e){IMe(this.a,this.b,this.c,u(e,225))},w(rF,"ShrinkTreeCompactionPhase/lambda$0$Type",795);var can=Dt(dc,"IGraphElementVisitor");b(872,1,{536:1},XAn),o.Kg=function(e){var t;t=xSe(this,e),Ur(t,u(ee(this.b,e),96)),ATe(this,e,t)};var due,bue;w(e2,"LayoutConfigurator",872);var IDe=Dt(e2,"LayoutConfigurator/IPropertyHolderOptionFilter");b(944,1,{2032:1},pmn),o.Lg=function(e,t){return qp(),!e.pf(t)},w(e2,"LayoutConfigurator/lambda$0$Type",944),b(943,1,{845:1},mmn),o.Mg=function(e,t){return qp(),!e.pf(t)},w(e2,"LayoutConfigurator/lambda$1$Type",943),b(945,1,{2032:1},Hse),o.Lg=function(e,t){return vEn(e,t)},w(e2,"LayoutConfigurator/lambda$2$Type",945),b(946,1,Le,uTn),o.Mb=function(e){return Gwe(this.a,this.b,u(e,2032))},w(e2,"LayoutConfigurator/lambda$3$Type",946),b(869,1,{},vmn),w(e2,"RecursiveGraphLayoutEngine",869),b(224,63,Il,xyn,_l),w(e2,"UnsupportedConfigurationException",224),b(370,63,Il,hp),w(e2,"UnsupportedGraphException",370),b(761,1,{}),w(dc,"AbstractRandomListAccessor",761),b(450,761,{},R5),o.Ng=function(){return null},o.d=!0,o.e=!0,o.f=0,w(Zm,"AlgorithmAssembler",450),b(1200,1,Le,kmn),o.Mb=function(e){return!!u(e,106)},w(Zm,"AlgorithmAssembler/lambda$0$Type",1200),b(1201,1,{},Okn),o.Kb=function(e){return Ahe(this.a,u(e,106))},w(Zm,"AlgorithmAssembler/lambda$1$Type",1201),b(1202,1,Le,ymn),o.Mb=function(e){return!!u(e,80)},w(Zm,"AlgorithmAssembler/lambda$2$Type",1202),b(1203,1,re,Akn),o.Cd=function(e){To(this.a,u(e,80))},w(Zm,"AlgorithmAssembler/lambda$3$Type",1203),b(1204,1,re,oTn),o.Cd=function(e){tae(this.a,this.b,u(e,196))},w(Zm,"AlgorithmAssembler/lambda$4$Type",1204),b(1343,1,De,jmn),o.Ne=function(e,t){return Sge(u(e,196),u(t,196))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Zm,"EnumBasedFactoryComparator",1343),b(80,761,{80:1},ii),o.Ng=function(){return new ni},o.a=0,w(Zm,"LayoutProcessorConfiguration",80),b(1025,1,{536:1},j8n),o.Kg=function(e){f5(gue,new Lkn(e))};var wue,gue,pue;w(oc,"DeprecatedLayoutOptionReplacer",1025),b(1026,1,re,Emn),o.Cd=function(e){R4e(u(e,167))},w(oc,"DeprecatedLayoutOptionReplacer/lambda$0$Type",1026),b(1027,1,re,Mmn),o.Cd=function(e){j8e(u(e,167))},w(oc,"DeprecatedLayoutOptionReplacer/lambda$1$Type",1027),b(1028,1,{},Lkn),o.Yd=function(e,t){eae(this.a,u(e,149),u(t,41))},w(oc,"DeprecatedLayoutOptionReplacer/lambda$2$Type",1028),b(143,1,{701:1,143:1},gd),o.Fb=function(e){return IJ(this,e)},o.Og=function(){return this.b},o.Pg=function(){return this.c},o.xe=function(){return this.e},o.Hb=function(){return t1(this.c)},o.Ib=function(){return"Layout Algorithm: "+this.c};var ODe=w(oc,"LayoutAlgorithmData",143);b(269,1,{},Fa),w(oc,"LayoutAlgorithmData/Builder",269),b(1029,1,{536:1},Cmn),o.Kg=function(e){L(e,207)&&!on(un(e.of((He(),tA))))&&TIe(u(e,27))},w(oc,"LayoutAlgorithmResolver",1029),b(233,1,{701:1,233:1},Dp),o.Fb=function(e){return L(e,233)?Sn(this.b,u(e,233).b):!1},o.Og=function(){return this.a},o.Pg=function(){return this.b},o.xe=function(){return this.d},o.Hb=function(){return t1(this.b)},o.Ib=function(){return"Layout Type: "+this.b},w(oc,"LayoutCategoryData",233),b(357,1,{},tp),w(oc,"LayoutCategoryData/Builder",357),b(879,1,{},Jqn);var Gq;w(oc,"LayoutMetaDataService",879),b(880,1,{},YIn),w(oc,"LayoutMetaDataService/Registry",880),b(487,1,{487:1},ZU),w(oc,"LayoutMetaDataService/Registry/Triple",487),b(881,1,u2,Tmn),o.Qg=function(){return new Ni},w(oc,"LayoutMetaDataService/lambda$0$Type",881),b(882,1,Tw,Smn),o.Rg=function(e){return Fi(u(e,8))},w(oc,"LayoutMetaDataService/lambda$1$Type",882),b(891,1,u2,Pmn),o.Qg=function(){return new Z},w(oc,"LayoutMetaDataService/lambda$10$Type",891),b(892,1,Tw,Imn),o.Rg=function(e){return new _u(u(e,13))},w(oc,"LayoutMetaDataService/lambda$11$Type",892),b(893,1,u2,Omn),o.Qg=function(){return new Mt},w(oc,"LayoutMetaDataService/lambda$12$Type",893),b(894,1,Tw,Amn),o.Rg=function(e){return $7(u(e,67))},w(oc,"LayoutMetaDataService/lambda$13$Type",894),b(895,1,u2,Lmn),o.Qg=function(){return new ni},w(oc,"LayoutMetaDataService/lambda$14$Type",895),b(896,1,Tw,Nmn),o.Rg=function(e){return PT(u(e,49))},w(oc,"LayoutMetaDataService/lambda$15$Type",896),b(897,1,u2,Dmn),o.Qg=function(){return new rh},w(oc,"LayoutMetaDataService/lambda$16$Type",897),b(898,1,Tw,$mn),o.Rg=function(e){return HT(u(e,49))},w(oc,"LayoutMetaDataService/lambda$17$Type",898),b(899,1,u2,xmn),o.Qg=function(){return new UG},w(oc,"LayoutMetaDataService/lambda$18$Type",899),b(900,1,Tw,Rmn),o.Rg=function(e){return SPn(u(e,157))},w(oc,"LayoutMetaDataService/lambda$19$Type",900),b(883,1,u2,Kmn),o.Qg=function(){return new Tu},w(oc,"LayoutMetaDataService/lambda$2$Type",883),b(884,1,Tw,Bmn),o.Rg=function(e){return new GE(u(e,75))},w(oc,"LayoutMetaDataService/lambda$3$Type",884),b(885,1,u2,Fmn),o.Qg=function(){return new Qv},w(oc,"LayoutMetaDataService/lambda$4$Type",885),b(886,1,Tw,_mn),o.Rg=function(e){return new qN(u(e,140))},w(oc,"LayoutMetaDataService/lambda$5$Type",886),b(887,1,u2,Hmn),o.Qg=function(){return new up},w(oc,"LayoutMetaDataService/lambda$6$Type",887),b(888,1,Tw,qmn),o.Rg=function(e){return new _V(u(e,107))},w(oc,"LayoutMetaDataService/lambda$7$Type",888),b(889,1,u2,Umn),o.Qg=function(){return new _A},w(oc,"LayoutMetaDataService/lambda$8$Type",889),b(890,1,Tw,Gmn),o.Rg=function(e){return new JDn(u(e,385))},w(oc,"LayoutMetaDataService/lambda$9$Type",890);var zq=Dt(Ly,"IProperty");b(23,1,{34:1,701:1,23:1,149:1},ln),o.Fd=function(e){return j1e(this,u(e,149))},o.Fb=function(e){return L(e,23)?Sn(this.f,u(e,23).f):L(e,149)&&Sn(this.f,u(e,149).Pg())},o.Sg=function(){var e;if(L(this.b,4)){if(e=rZ(this.b),e==null)throw T(new Ar(DVn+this.f+"'. Make sure it's type is registered with the "+(ll(lE),lE.k)+dcn));return e}else return this.b},o.Og=function(){return this.d},o.Pg=function(){return this.f},o.xe=function(){return this.i},o.Hb=function(){return t1(this.f)},o.Ib=function(){return"Layout Option: "+this.f},w(oc,"LayoutOptionData",23),b(24,1,{},hn),w(oc,"LayoutOptionData/Builder",24),b(170,22,{3:1,34:1,22:1,170:1},g7);var Ih,E1,pi,xn,Fd,Zh=we(oc,"LayoutOptionData/Target",170,ke,X3e,Nbe),mue;b(285,22,{3:1,34:1,22:1,285:1},wp);var yi,Qi,It,N3,Zr,Vf,$2,uan,vue=we(oc,"LayoutOptionData/Type",285,ke,bme,Dbe),kue,b9,oan;b(116,1,{116:1},mp,Ho,IT),o.Fb=function(e){var t;return e==null||!L(e,116)?!1:(t=u(e,116),mc(this.c,t.c)&&mc(this.d,t.d)&&mc(this.b,t.b)&&mc(this.a,t.a))},o.Hb=function(){return Ok(S(C(ki,1),Kn,1,5,[this.c,this.d,this.b,this.a]))},o.Ib=function(){return"Rect[x="+this.c+",y="+this.d+",w="+this.b+",h="+this.a+"]"},o.a=0,o.b=0,o.c=0,o.d=0,w(Fy,"ElkRectangle",116),b(8,1,{3:1,4:1,8:1,423:1},Ni,KD,V,rr),o.Fb=function(e){return fxn(this,e)},o.Hb=function(){return pp(this.a)+k7e(pp(this.b))},o.cg=function(e){var t,i,r,c;for(r=0;r<e.length&&XRn((zn(r,e.length),e.charCodeAt(r)),NXn);)++r;for(t=e.length;t>0&&XRn((zn(t-1,e.length),e.charCodeAt(t-1)),DXn);)--t;if(r>=t)throw T(new Gn("The given string does not contain any numbers."));if(c=ww((Ri(r,t,e.length),e.substr(r,t-r)),`,|;|\r|
`),c.length!=2)throw T(new Gn("Exactly two numbers are expected, "+c.length+" were found."));try{this.a=sw(fw(c[0])),this.b=sw(fw(c[1]))}catch(s){throw s=Ot(s),L(s,130)?(i=s,T(new Gn($Xn+i))):T(s)}},o.Ib=function(){return"("+this.a+","+this.b+")"},o.a=0,o.b=0;var Ei=w(Fy,"KVector",8);b(75,67,{3:1,4:1,20:1,31:1,56:1,16:1,67:1,15:1,75:1,423:1},Tu,GE,aSn),o.Pc=function(){return A6e(this)},o.cg=function(e){var t,i,r,c,s,f;r=ww(e,`,|;|\\(|\\)|\\[|\\]|\\{|\\}| | |
`),vo(this);try{for(i=0,s=0,c=0,f=0;i<r.length;)r[i]!=null&&fw(r[i]).length>0&&(s%2==0?c=sw(r[i]):f=sw(r[i]),s>0&&s%2!=0&&Re(this,new V(c,f)),++s),++i}catch(h){throw h=Ot(h),L(h,130)?(t=h,T(new Gn("The given string does not match the expected format for vectors."+t))):T(h)}},o.Ib=function(){var e,t,i;for(e=new mo("("),t=ge(this,0);t.b!=t.d.c;)i=u(be(t),8),Be(e,i.a+","+i.b),t.b!=t.d.c&&(e.a+="; ");return(e.a+=")",e).a};var san=w(Fy,"KVectorChain",75);b(255,22,{3:1,34:1,22:1,255:1},v6);var Xq,ZO,nA,qj,Uj,eA,fan=we(uo,"Alignment",255,ke,P4e,$be),yue;b(991,1,ms,E8n),o.hf=function(e){yUn(e)};var han,Vq,jue,lan,aan,Eue,dan,Mue,Tue,ban,wan,Cue;w(uo,"BoxLayouterOptions",991),b(992,1,{},zmn),o.sf=function(){var e;return e=new Wmn,e},o.tf=function(e){},w(uo,"BoxLayouterOptions/BoxFactory",992),b(298,22,{3:1,34:1,22:1,298:1},k6);var w9,Wq,g9,p9,m9,Jq,Qq=we(uo,"ContentAlignment",298,ke,I4e,xbe),Sue;b(699,1,ms,rG),o.hf=function(e){vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,xVn),""),"Layout Algorithm"),"Select a specific layout algorithm."),(l1(),$2)),fn),jn((pf(),xn))))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,RVn),""),"Resolved Layout Algorithm"),"Meta data associated with the selected algorithm."),Vf),ODe),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,irn),""),"Alignment"),"Alignment of the selected node relative to other nodes; the exact meaning depends on the used algorithm."),gan),It),fan),jn(pi)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,l3),""),"Aspect Ratio"),"The desired aspect ratio of the drawing, that is the quotient of width by height."),Qi),si),jn(xn)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,gcn),""),"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."),Vf),san),jn(Ih)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,TP),""),"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."),man),N3),Qq),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Uy),""),"Debug Mode"),"Whether additional debug information shall be generated."),(_n(),!1)),yi),Gt),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,xB),""),Rtn),"Overall direction of edges: horizontal (right / left) or vertical (down / up)."),van),It),y9),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,qy),""),"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."),jan),It),lU),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,bcn),""),"Expand Nodes"),"If active, nodes are expanded to fill the area of their parent."),!1),yi),Gt),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,MP),""),"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`."),Tan),It),ldn),yt(xn,S(C(Zh,1),G,170,0,[pi]))))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Wb),""),"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."),Dan),Vf),$on),yt(xn,S(C(Zh,1),G,170,0,[pi]))))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,i8),""),"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),yi),Gt),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,SP),""),"interactive Layout"),"Whether the graph should be changeable interactively and by setting constraints"),!1),yi),Gt),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,r8),""),"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),yi),Gt),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,tB),""),"Port Constraints"),"Defines constraints of the position of the ports of a node."),Ban),It),bdn),jn(pi)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,CP),""),"Position"),"The position of a node, port, or label. This is used by the 'Fixed Layout' algorithm to specify a pre-defined position."),Vf),Ei),yt(pi,S(C(Zh,1),G,170,0,[Fd,E1]))))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,Dy),""),"Priority"),"Defines the priority of an object; its meaning depends on the specific layout algorithm and the context where it is used."),Zr),Gi),yt(pi,S(C(Zh,1),G,170,0,[Ih]))))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,uP),""),"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)."),Zr),Gi),jn(xn)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,t8),""),"Separate Connected Components"),"Whether each connected component should be processed separately."),yi),Gt),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,brn),""),"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."),Can),Vf),san),jn(Ih)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,prn),""),"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),yi),Gt),jn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,mrn),""),"Hypernode"),"Whether the node should be handled as a hypernode."),!1),yi),Gt),jn(pi)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,iDe),""),"Label Manager"),"Label managers can shorten labels upon a layout algorithm's request."),Vf),$De),yt(xn,S(C(Zh,1),G,170,0,[E1]))))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,krn),""),"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."),San),Vf),Don),jn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,ern),""),"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),yi),Gt),yt(pi,S(C(Zh,1),G,170,0,[Ih,Fd,E1]))))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,KVn),""),"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),Qi),si),jn(pi)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,BVn),""),"Child Area Width"),"The width of the area occupied by the laid out children of a node."),Qi),si),jn(xn)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,FVn),""),"Child Area Height"),"The height of the area occupied by the laid out children of a node."),Qi),si),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,$y),""),AVn),"Turns topdown layout on and off. If this option is enabled, hierarchical layout will be computed first for the root node and then for its children recursively. Layouts are then scaled down to fit the area provided by their parents. Graphs must follow a certain structure for topdown layout to work properly. {@link TopdownNodeTypes.PARALLEL_NODE} nodes must have children of type {@link TopdownNodeTypes.HIERARCHICAL_NODE} and must define {@link topdown.hierarchicalNodeWidth} and {@link topdown.hierarchicalNodeAspectRatio} for their children. Furthermore they need to be laid out using an algorithm that is a {@link TopdownLayoutProvider}. Hierarchical nodes can also be parents of other hierarchical nodes and can optionally use a {@link TopdownSizeApproximator} to dynamically set sizes during topdown layout. In this case {@link topdown.hierarchicalNodeWidth} and {@link topdown.hierarchicalNodeAspectRatio} should be set on the node itself rather than the parent. The values are then used by the size approximator as base values. Hierarchical nodes require the layout option {@link nodeSize.fixedGraphSize} to be true to prevent the algorithm used there from resizing the hierarchical node. This option is not supported if 'Hierarchy Handling' is set to 'INCLUDE_CHILDREN'"),!1),yi),Gt),jn(xn)))),ri(e,$y,Jb,null),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,_Vn),""),"Animate"),"Whether the shift from the old layout to the new computed layout shall be animated."),!0),yi),Gt),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,HVn),""),"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'."),Y(100)),Zr),Gi),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,qVn),""),"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),yi),Gt),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,UVn),""),"Maximal Animation Time"),"The maximal time for animations, in milliseconds."),Y(4e3)),Zr),Gi),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,GVn),""),"Minimal Animation Time"),"The minimal time for animations, in milliseconds."),Y(400)),Zr),Gi),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,zVn),""),"Progress Bar"),"Whether a progress bar shall be displayed during layout computations."),!1),yi),Gt),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,XVn),""),"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),yi),Gt),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,VVn),""),"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),yi),Gt),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,WVn),""),"Zoom to Fit"),"Whether the zoom level shall be set to view the whole diagram after layout."),!1),yi),Gt),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,wcn),"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."),pan),It),Mdn),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Uin),qf),"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),Qi),si),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Gin),qf),"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),Qi),si),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,WK),qf),"Components Spacing"),"Spacing to be preserved between pairs of connected components. This option is only relevant if 'separateConnectedComponents' is activated."),20),Qi),si),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,zin),qf),"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),Qi),si),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,eB),qf),"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),Qi),si),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,$B),qf),"Edge Node Spacing"),"Spacing to be preserved between nodes and edges."),10),Qi),si),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Xin),qf),"Label Spacing"),"Determines the amount of space to be left between two labels of the same graph element."),0),Qi),si),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Jin),qf),"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),Qi),si),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Vin),qf),"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),Qi),si),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Win),qf),"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),Qi),si),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,yw),qf),"Node Spacing"),"The minimal distance to be preserved between each two nodes."),20),Qi),si),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Qin),qf),"Node Self Loop Spacing"),"Spacing to be preserved between a node and its self loops."),10),Qi),si),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Yin),qf),"Port Spacing"),"Spacing between pairs of ports of the same node."),10),Qi),si),yt(xn,S(C(Zh,1),G,170,0,[pi]))))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,Zin),qf),"Individual Spacing"),"Allows to specify individual spacing values for graph elements that shall be different from the value specified for the element's parent."),Vf),boe),yt(pi,S(C(Zh,1),G,170,0,[Ih,Fd,E1]))))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,yrn),qf),"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."),Jan),Vf),Don),jn(xn)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,KB),YVn),"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)."),Zr),Gi),yt(xn,S(C(Zh,1),G,170,0,[pi]))))),ri(e,KB,RB,xue),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,RB),YVn),"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."),$an),yi),Gt),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,urn),ZVn),"Node Label Padding"),"Define padding for node labels that are placed inside of a node."),Ian),Vf),$on),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Xm),ZVn),"Node Label Placement"),"Hints for where node labels are to be placed; if empty, the node label's position is not modified."),Oan),N3),yr),yt(pi,S(C(Zh,1),G,170,0,[E1]))))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,frn),RP),"Port Alignment"),"Defines the default port distribution for a node. May be overridden for each side individually."),Ran),It),T9),jn(pi)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,hrn),RP),"Port Alignment (North)"),"Defines how ports on the northern side are placed, overriding the node's general port alignment."),It),T9),jn(pi)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,lrn),RP),"Port Alignment (South)"),"Defines how ports on the southern side are placed, overriding the node's general port alignment."),It),T9),jn(pi)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,arn),RP),"Port Alignment (West)"),"Defines how ports on the western side are placed, overriding the node's general port alignment."),It),T9),jn(pi)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,drn),RP),"Port Alignment (East)"),"Defines how ports on the eastern side are placed, overriding the node's general port alignment."),It),T9),jn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,r2),uF),"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."),Aan),N3),P9),jn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,a3),uF),"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."),Nan),N3),gdn),jn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,d3),uF),"Node Size Minimum"),"The minimal size to which a node can be reduced."),Lan),Vf),Ei),jn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,zm),uF),"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),yi),Gt),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,wrn),DB),"Edge Label Placement"),"Gives a hint on where to put edge labels."),kan),It),Zan),jn(E1)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,oP),DB),"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),yi),Gt),jn(E1)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,rDe),"font"),"Font Name"),"Font name used for a label."),$2),fn),jn(E1)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,JVn),"font"),"Font Size"),"Font size used for a label."),Zr),Gi),jn(E1)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,vrn),oF),"Port Anchor Offset"),"The offset to the port position where connections shall be attached."),Vf),Ei),jn(Fd)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,grn),oF),"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."),Zr),Gi),jn(Fd)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,trn),oF),"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."),Han),It),lr),jn(Fd)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,nrn),oF),"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."),Qi),si),jn(Fd)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Vm),vcn),"Port Label Placement"),"Decides on a placement method for port labels; if empty, the node label's position is not modified."),Fan),N3),oA),jn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,orn),vcn),"Port Labels Next to Port"),"Use 'portLabels.placement': NEXT_TO_PORT_OF_POSSIBLE."),!1),yi),Gt),jn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,srn),vcn),"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),yi),Gt),jn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,xy),Xy),"Topdown Scale Factor"),"The scaling factor to be applied to the nodes laid out within the node in recursive topdown layout. The difference to 'Scale Factor' is that the node itself is not scaled. This value has to be set on hierarchical nodes."),1),Qi),si),jn(xn)))),ri(e,xy,Jb,Uue),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,pcn),Xy),"Topdown Size Approximator"),"The size approximator to be used to set sizes of hierarchical nodes during topdown layout. The default value is null, which results in nodes keeping whatever size is defined for them e.g. through parent parallel node or by manually setting the size."),null),It),dA),jn(pi)))),ri(e,pcn,Jb,Gue),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Ry),Xy),"Topdown Hierarchical Node Width"),"The fixed size of a hierarchical node when using topdown layout. If this value is set on a parallel node it applies to its children, when set on a hierarchical node it applies to the node itself."),150),Qi),si),yt(xn,S(C(Zh,1),G,170,0,[pi]))))),ri(e,Ry,Jb,null),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Ky),Xy),"Topdown Hierarchical Node Aspect Ratio"),"The fixed aspect ratio of a hierarchical node when using topdown layout. Default is 1/sqrt(2). If this value is set on a parallel node it applies to its children, when set on a hierarchical node it applies to the node itself."),1.414),Qi),si),yt(xn,S(C(Zh,1),G,170,0,[pi]))))),ri(e,Ky,Jb,null),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Jb),Xy),"Topdown Node Type"),"The different node types used for topdown layout. If the node type is set to {@link TopdownNodeTypes.PARALLEL_NODE} the algorithm must be set to a {@link TopdownLayoutProvider} such as {@link TopdownPacking}. The {@link nodeSize.fixedGraphSize} option is technically only required for hierarchical nodes."),null),It),mdn),jn(pi)))),ri(e,Jb,zm,null),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,mcn),Xy),"Topdown Scale Cap"),"Determines the upper limit for the topdown scale factor. The default value is 1.0 which ensures that nested children never end up appearing larger than their parents in terms of unit sizes such as the font size. If the limit is larger, nodes will fully utilize the available space, but it is counteriniuitive for inner nodes to have a larger scale than outer nodes."),1),Qi),si),jn(xn)))),ri(e,mcn,Jb,que),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,rrn),nWn),"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),yi),Gt),jn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,crn),nWn),"Inside Self Loop"),"Whether a self loop should be routed inside a node instead of around that node."),!1),yi),Gt),jn(Ih)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,JK),"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),Qi),si),jn(Ih)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,QVn),"edge"),"Edge Type"),"The type of an edge. This is usually used for UML class diagrams, where associations must be handled differently from generalizations."),Man),It),cdn),jn(Ih)))),f6(e,new Dp(r6(u4(c4(new tp,Yn),"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.'))),f6(e,new Dp(r6(u4(c4(new tp,"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.`))),f6(e,new Dp(r6(u4(c4(new tp,cu),"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."))),f6(e,new Dp(r6(u4(c4(new tp,"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."))),f6(e,new Dp(r6(u4(c4(new tp,gVn),"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."))),f6(e,new Dp(r6(u4(c4(new tp,"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."))),f6(e,new Dp(r6(u4(c4(new tp,es),"Radial"),"Radial layout algorithms usually position the nodes of the graph on concentric circles."))),uUn((new M8n,e)),yUn((new E8n,e)),Dqn((new T8n,e))};var $v,Pue,gan,x2,Iue,Oue,pan,R2,K2,Aue,Gj,man,zj,_d,van,Yq,Zq,kan,yan,jan,Ean,Man,Lue,B2,Tan,Nue,Xj,nU,Vj,eU,k0,Can,xv,San,Pan,Ian,F2,Oan,Hd,Aan,Vw,_2,Lan,Ca,Nan,tA,Wj,M1,Dan,Due,$an,$ue,xue,xan,Ran,tU,iU,rU,cU,Kan,oo,v9,Ban,uU,oU,Ww,Fan,_an,H2,Han,D3,Jj,sU,q2,Rue,fU,Kue,Bue,qan,Fue,Uan,Gan,$3,zan,iA,Xan,Van,qd,_ue,Wan,Jan,Qan,rA,Qj,k9,x3,Hue,que,cA,Uue,Yan,Gue;w(uo,"CoreOptions",699),b(88,22,{3:1,34:1,22:1,88:1},p7);var Wf,Kr,Xr,Jf,us,y9=we(uo,Rtn,88,ke,N3e,Rbe),zue;b(278,22,{3:1,34:1,22:1,278:1},fN);var Rv,Jw,Kv,Zan=we(uo,"EdgeLabelPlacement",278,ke,spe,Kbe),Xue;b(223,22,{3:1,34:1,22:1,223:1},kM);var Bv,Yj,R3,hU,lU=we(uo,"EdgeRouting",223,ke,s3e,Bbe),Vue;b(321,22,{3:1,34:1,22:1,321:1},y6);var ndn,edn,tdn,idn,aU,rdn,cdn=we(uo,"EdgeType",321,ke,S4e,Fbe),Wue;b(989,1,ms,M8n),o.hf=function(e){uUn(e)};var udn,odn,sdn,fdn,Jue,hdn,j9;w(uo,"FixedLayouterOptions",989),b(990,1,{},Xmn),o.sf=function(){var e;return e=new rvn,e},o.tf=function(e){},w(uo,"FixedLayouterOptions/FixedFactory",990),b(346,22,{3:1,34:1,22:1,346:1},hN);var T1,uA,E9,ldn=we(uo,"HierarchyHandling",346,ke,upe,_be),Que;b(291,22,{3:1,34:1,22:1,291:1},yM);var nl,Sa,Zj,nE,Yue=we(uo,"LabelSide",291,ke,o3e,Hbe),Zue;b(95,22,{3:1,34:1,22:1,95:1},bg);var xl,Qs,Ms,Ys,No,Zs,Ts,el,nf,yr=we(uo,"NodeLabelPlacement",95,ke,Pme,qbe),noe;b(256,22,{3:1,34:1,22:1,256:1},m7);var adn,M9,Pa,ddn,eE,T9=we(uo,"PortAlignment",256,ke,V3e,Ube),eoe;b(101,22,{3:1,34:1,22:1,101:1},j6);var Ud,qc,tl,Fv,Qf,Ia,bdn=we(uo,"PortConstraints",101,ke,C4e,Gbe),toe;b(279,22,{3:1,34:1,22:1,279:1},E6);var C9,S9,Rl,tE,Oa,K3,oA=we(uo,"PortLabelPlacement",279,ke,T4e,zbe),ioe;b(64,22,{3:1,34:1,22:1,64:1},v7);var Zn,Xn,os,ss,pu,su,Yf,ef,Wu,xu,Uc,Ju,mu,vu,tf,Do,$o,Cs,ae,sc,Wn,lr=we(uo,"PortSide",64,ke,D3e,Xbe),roe;b(993,1,ms,T8n),o.hf=function(e){Dqn(e)};var coe,uoe,wdn,ooe,soe;w(uo,"RandomLayouterOptions",993),b(994,1,{},Vmn),o.sf=function(){var e;return e=new evn,e},o.tf=function(e){},w(uo,"RandomLayouterOptions/RandomFactory",994),b(386,22,{3:1,34:1,22:1,386:1},jM);var Qw,iE,rE,Gd,P9=we(uo,"SizeConstraint",386,ke,u3e,Vbe),foe;b(264,22,{3:1,34:1,22:1,264:1},wg);var cE,sA,_v,dU,uE,I9,fA,hA,lA,gdn=we(uo,"SizeOptions",264,ke,Fme,Wbe),hoe;b(280,22,{3:1,34:1,22:1,280:1},lN);var Yw,pdn,aA,mdn=we(uo,"TopdownNodeTypes",280,ke,fpe,Jbe),loe;b(347,22,kcn);var vdn,kdn,dA=we(uo,"TopdownSizeApproximator",347,ke,r2e,Ybe);b(987,347,kcn,VPn),o.Tg=function(e){return MBn(e)},we(uo,"TopdownSizeApproximator/1",987,dA,null,null),b(988,347,kcn,NIn),o.Tg=function(e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn;for(t=u(z(e,(He(),q2)),143),tn=(K1(),m=new Yv,m),uy(tn,e),yn=new de,s=new ne((!e.a&&(e.a=new q(Ye,e,10,11)),e.a));s.e!=s.i.gc();)r=u(ue(s),27),A=(p=new Yv,p),PS(A,tn),uy(A,r),Rn=MBn(r),kg(A,y.Math.max(r.g,Rn.a),y.Math.max(r.f,Rn.b)),Vc(yn.f,r,A);for(c=new ne((!e.a&&(e.a=new q(Ye,e,10,11)),e.a));c.e!=c.i.gc();)for(r=u(ue(c),27),d=new ne((!r.e&&(r.e=new Dn(Vt,r,7,4)),r.e));d.e!=d.i.gc();)a=u(ue(d),74),_=u(Fr(wr(yn.f,r)),27),X=u(ee(yn,N((!a.c&&(a.c=new Dn(he,a,5,8)),a.c),0)),27),D=(g=new HA,g),ve((!D.b&&(D.b=new Dn(he,D,4,7)),D.b),_),ve((!D.c&&(D.c=new Dn(he,D,5,8)),D.c),X),SS(D,St(_)),uy(D,a);j=u(z7(t.f),205);try{j.rf(tn,new ovn),hOn(t.f,j)}catch(Bn){throw Bn=Ot(Bn),L(Bn,103)?(k=Bn,T(k)):T(Bn)}return Nf(tn,K2)||Nf(tn,R2)||utn(tn),l=$(B(z(tn,K2))),h=$(B(z(tn,R2))),f=l/h,i=$(B(z(tn,Qj)))*y.Math.sqrt((!tn.a&&(tn.a=new q(Ye,tn,10,11)),tn.a).i),kn=u(z(tn,M1),107),O=kn.b+kn.c+1,P=kn.d+kn.a+1,new V(y.Math.max(O,i),y.Math.max(P,i/f))},we(uo,"TopdownSizeApproximator/2",988,dA,null,null);var aoe;b(344,1,{871:1},op),o.Ug=function(e,t){return RFn(this,e,t)},o.Vg=function(){u_n(this)},o.Wg=function(){return this.q},o.Xg=function(){return this.f?CD(this.f):null},o.Yg=function(){return CD(this.a)},o.Zg=function(){return this.p},o.$g=function(){return!1},o._g=function(){return this.n},o.ah=function(){return this.p!=null&&!this.b},o.bh=function(e){var t;this.n&&(t=e,nn(this.f,t))},o.dh=function(e,t){var i,r;this.n&&e&&Mpe(this,(i=new GIn,r=OR(i,e),cLe(i),r),(NC(),wU))},o.eh=function(e){var t;return this.b?null:(t=fme(this,this.g),Re(this.a,t),t.i=this,this.d=e,t)},o.fh=function(e){e>0&&!this.b&&EQ(this,e)},o.b=!1,o.c=0,o.d=-1,o.e=null,o.f=null,o.g=-1,o.j=!1,o.k=!1,o.n=!1,o.o=0,o.q=0,o.r=0,w(dc,"BasicProgressMonitor",344),b(717,205,yd,Wmn),o.rf=function(e,t){KUn(e,t)},w(dc,"BoxLayoutProvider",717),b(983,1,De,Nkn),o.Ne=function(e,t){return cCe(this,u(e,27),u(t,27))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},o.a=!1,w(dc,"BoxLayoutProvider/1",983),b(163,1,{163:1},hC,mSn),o.Ib=function(){return this.c?jen(this.c):ca(this.b)},w(dc,"BoxLayoutProvider/Group",163),b(320,22,{3:1,34:1,22:1,320:1},EM);var ydn,jdn,Edn,bU,Mdn=we(dc,"BoxLayoutProvider/PackingMode",320,ke,f3e,Zbe),doe;b(984,1,De,Jmn),o.Ne=function(e,t){return Mge(u(e,163),u(t,163))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(dc,"BoxLayoutProvider/lambda$0$Type",984),b(985,1,De,Qmn),o.Ne=function(e,t){return gge(u(e,163),u(t,163))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(dc,"BoxLayoutProvider/lambda$1$Type",985),b(986,1,De,Ymn),o.Ne=function(e,t){return pge(u(e,163),u(t,163))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(dc,"BoxLayoutProvider/lambda$2$Type",986),b(1384,1,{845:1},Zmn),o.Mg=function(e,t){return nM(),!L(t,167)||vEn((qp(),u(e,167)),t)},w(dc,"ElkSpacings/AbstractSpacingsBuilder/lambda$0$Type",1384),b(1385,1,re,Dkn),o.Cd=function(e){D6e(this.a,u(e,149))},w(dc,"ElkSpacings/AbstractSpacingsBuilder/lambda$1$Type",1385),b(1386,1,re,tvn),o.Cd=function(e){u(e,96),nM()},w(dc,"ElkSpacings/AbstractSpacingsBuilder/lambda$2$Type",1386),b(1390,1,re,$kn),o.Cd=function(e){tve(this.a,u(e,96))},w(dc,"ElkSpacings/AbstractSpacingsBuilder/lambda$3$Type",1390),b(1388,1,Le,fTn),o.Mb=function(e){return w6e(this.a,this.b,u(e,149))},w(dc,"ElkSpacings/AbstractSpacingsBuilder/lambda$4$Type",1388),b(1387,1,Le,hTn),o.Mb=function(e){return J1e(this.a,this.b,u(e,845))},w(dc,"ElkSpacings/AbstractSpacingsBuilder/lambda$5$Type",1387),b(1389,1,re,lTn),o.Cd=function(e){fwe(this.a,this.b,u(e,149))},w(dc,"ElkSpacings/AbstractSpacingsBuilder/lambda$6$Type",1389),b(947,1,{},ivn),o.Kb=function(e){return uCn(e)},o.Fb=function(e){return this===e},w(dc,"ElkUtil/lambda$0$Type",947),b(948,1,re,aTn),o.Cd=function(e){sMe(this.a,this.b,u(e,74))},o.a=0,o.b=0,w(dc,"ElkUtil/lambda$1$Type",948),b(949,1,re,dTn),o.Cd=function(e){Zfe(this.a,this.b,u(e,166))},o.a=0,o.b=0,w(dc,"ElkUtil/lambda$2$Type",949),b(950,1,re,bTn),o.Cd=function(e){Vle(this.a,this.b,u(e,135))},o.a=0,o.b=0,w(dc,"ElkUtil/lambda$3$Type",950),b(951,1,re,xkn),o.Cd=function(e){O0e(this.a,u(e,377))},w(dc,"ElkUtil/lambda$4$Type",951),b(325,1,{34:1,325:1},Ife),o.Fd=function(e){return E1e(this,u(e,242))},o.Fb=function(e){var t;return L(e,325)?(t=u(e,325),this.a==t.a):!1},o.Hb=function(){return wi(this.a)},o.Ib=function(){return this.a+" (exclusive)"},o.a=0,w(dc,"ExclusiveBounds/ExclusiveLowerBound",325),b(1119,205,yd,rvn),o.rf=function(e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn;for(t.Ug("Fixed Layout",1),s=u(z(e,(He(),yan)),223),g=0,p=0,A=new ne((!e.a&&(e.a=new q(Ye,e,10,11)),e.a));A.e!=A.i.gc();){for(P=u(ue(A),27),kn=u(z(P,(DC(),j9)),8),kn&&(Bo(P,kn.a,kn.b),u(z(P,odn),181).Hc((go(),Qw))&&(m=u(z(P,fdn),8),m.a>0&&m.b>0&&Gb(P,m.a,m.b,!0,!0))),g=y.Math.max(g,P.i+P.g),p=y.Math.max(p,P.j+P.f),a=new ne((!P.n&&(P.n=new q(Sr,P,1,7)),P.n));a.e!=a.i.gc();)h=u(ue(a),135),kn=u(z(h,j9),8),kn&&Bo(h,kn.a,kn.b),g=y.Math.max(g,P.i+h.i+h.g),p=y.Math.max(p,P.j+h.j+h.f);for(X=new ne((!P.c&&(P.c=new q(Qu,P,9,9)),P.c));X.e!=X.i.gc();)for(_=u(ue(X),123),kn=u(z(_,j9),8),kn&&Bo(_,kn.a,kn.b),tn=P.i+_.i,yn=P.j+_.j,g=y.Math.max(g,tn+_.g),p=y.Math.max(p,yn+_.f),l=new ne((!_.n&&(_.n=new q(Sr,_,1,7)),_.n));l.e!=l.i.gc();)h=u(ue(l),135),kn=u(z(h,j9),8),kn&&Bo(h,kn.a,kn.b),g=y.Math.max(g,tn+h.i+h.g),p=y.Math.max(p,yn+h.j+h.f);for(c=new ie(ce(Sl(P).a.Kc(),new En));pe(c);)i=u(fe(c),74),d=YGn(i),g=y.Math.max(g,d.a),p=y.Math.max(p,d.b);for(r=new ie(ce(cy(P).a.Kc(),new En));pe(r);)i=u(fe(r),74),St(Fh(i))!=e&&(d=YGn(i),g=y.Math.max(g,d.a),p=y.Math.max(p,d.b))}if(s==(El(),Bv))for(O=new ne((!e.a&&(e.a=new q(Ye,e,10,11)),e.a));O.e!=O.i.gc();)for(P=u(ue(O),27),r=new ie(ce(Sl(P).a.Kc(),new En));pe(r);)i=u(fe(r),74),f=hIe(i),f.b==0?ht(i,k0,null):ht(i,k0,f);on(un(z(e,(DC(),sdn))))||(D=u(z(e,Jue),107),j=g+D.b+D.c,k=p+D.d+D.a,Gb(e,j,k,!0,!0)),t.Vg()},w(dc,"FixedLayoutProvider",1119),b(385,137,{3:1,423:1,385:1,96:1,137:1},_A,JDn),o.cg=function(e){var t,i,r,c,s,f,h,l,a;if(e)try{for(l=ww(e,";,;"),s=l,f=0,h=s.length;f<h;++f){if(c=s[f],i=ww(c,"\\:"),r=Yen(z4(),i[0]),!r)throw T(new Gn("Invalid option id: "+i[0]));if(a=Jen(r,i[1]),a==null)throw T(new Gn("Invalid option value: "+i[1]));a==null?(!this.q&&(this.q=new de),Kp(this.q,r)):(!this.q&&(this.q=new de),Ve(this.q,r,a))}}catch(d){throw d=Ot(d),L(d,103)?(t=d,T(new DRn(t))):T(d)}},o.Ib=function(){var e;return e=Ae(Wr(_r((this.q?this.q:(Ln(),Ln(),Wh)).vc().Oc(),new cvn),W0(new IPn,new qbn,new Fbn,new _bn,S(C(xr,1),G,108,0,[])))),e};var boe=w(dc,"IndividualSpacings",385);b(982,1,{},cvn),o.Kb=function(e){return Tge(u(e,44))},w(dc,"IndividualSpacings/lambda$0$Type",982),b(718,1,{},hIn),o.c=0,w(dc,"InstancePool",718),b(1835,1,{},uvn),w(dc,"LoggedGraph",1835),b(415,22,{3:1,34:1,22:1,415:1},MM);var Tdn,wU,Cdn,Sdn,woe=we(dc,"LoggedGraph/Type",415,ke,h3e,n0e),goe;b(1063,1,{871:1},ovn),o.Ug=function(e,t){return!1},o.Vg=function(){},o.Wg=function(){return 0},o.Xg=function(){return null},o.Yg=function(){return null},o.Zg=function(){return null},o.$g=function(){return!1},o._g=function(){return!1},o.ah=function(){return!1},o.bh=function(e){},o.dh=function(e,t){},o.eh=function(e){return this},o.fh=function(e){},w(dc,"NullElkProgressMonitor",1063),b(42,1,{20:1,42:1},bi),o.Jc=function(e){qi(this,e)},o.Fb=function(e){var t,i,r;return L(e,42)?(i=u(e,42),t=this.a==null?i.a==null:rt(this.a,i.a),r=this.b==null?i.b==null:rt(this.b,i.b),t&&r):!1},o.Hb=function(){var e,t,i,r,c,s;return i=this.a==null?0:mt(this.a),e=i&ui,t=i&-65536,s=this.b==null?0:mt(this.b),r=s&ui,c=s&-65536,e^c>>16&ui|t^r<<16},o.Kc=function(){return new Rkn(this)},o.Ib=function(){return this.a==null&&this.b==null?"pair(null,null)":this.a==null?"pair(null,"+Jr(this.b)+")":this.b==null?"pair("+Jr(this.a)+",null)":"pair("+Jr(this.a)+","+Jr(this.b)+")"},w(dc,"Pair",42),b(995,1,Pi,Rkn),o.Nb=function(e){_i(this,e)},o.Ob=function(){return!this.c&&(!this.b&&this.a.a!=null||this.a.b!=null)},o.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 T(new nc)},o.Qb=function(){throw this.c&&this.a.b!=null?this.a.b=null:this.b&&this.a.a!=null&&(this.a.a=null),T(new Mu)},o.b=!1,o.c=!1,w(dc,"Pair/1",995),b(455,1,{455:1},COn),o.Fb=function(e){return mc(this.a,u(e,455).a)&&mc(this.c,u(e,455).c)&&mc(this.d,u(e,455).d)&&mc(this.b,u(e,455).b)},o.Hb=function(){return Ok(S(C(ki,1),Kn,1,5,[this.a,this.c,this.d,this.b]))},o.Ib=function(){return"("+this.a+ur+this.c+ur+this.d+ur+this.b+")"},w(dc,"Quadruple",455),b(1108,205,yd,evn),o.rf=function(e,t){var i,r,c,s,f;if(t.Ug("Random Layout",1),(!e.a&&(e.a=new q(Ye,e,10,11)),e.a).i==0){t.Vg();return}s=u(z(e,(QY(),ooe)),17),s&&s.a!=0?c=new qT(s.a):c=new dx,i=J9(B(z(e,coe))),f=J9(B(z(e,soe))),r=u(z(e,uoe),107),PLe(e,c,i,f,r),t.Vg()},w(dc,"RandomLayoutProvider",1108),b(240,1,{240:1},_N),o.Fb=function(e){return mc(this.a,u(e,240).a)&&mc(this.b,u(e,240).b)&&mc(this.c,u(e,240).c)},o.Hb=function(){return Ok(S(C(ki,1),Kn,1,5,[this.a,this.b,this.c]))},o.Ib=function(){return"("+this.a+ur+this.b+ur+this.c+")"},w(dc,"Triple",240);var poe;b(562,1,{}),o.Lf=function(){return new V(this.f.i,this.f.j)},o.of=function(e){return nAn(e,(He(),oo))?z(this.f,moe):z(this.f,e)},o.Mf=function(){return new V(this.f.g,this.f.f)},o.Nf=function(){return this.g},o.pf=function(e){return Nf(this.f,e)},o.Of=function(e){eu(this.f,e.a),tu(this.f,e.b)},o.Pf=function(e){Ob(this.f,e.a),Ib(this.f,e.b)},o.Qf=function(e){this.g=e},o.g=0;var moe;w(d8,"ElkGraphAdapters/AbstractElkGraphElementAdapter",562),b(563,1,{853:1},LE),o.Rf=function(){var e,t;if(!this.b)for(this.b=BT(jT(this.a).i),t=new ne(jT(this.a));t.e!=t.i.gc();)e=u(ue(t),135),nn(this.b,new pL(e));return this.b},o.b=null,w(d8,"ElkGraphAdapters/ElkEdgeAdapter",563),b(289,562,{},Qd),o.Sf=function(){return zBn(this)},o.a=null,w(d8,"ElkGraphAdapters/ElkGraphAdapter",289),b(640,562,{187:1},pL),w(d8,"ElkGraphAdapters/ElkLabelAdapter",640),b(639,562,{695:1},TN),o.Rf=function(){return w7e(this)},o.Vf=function(){var e;return e=u(z(this.f,(He(),xv)),140),!e&&(e=new Qv),e},o.Xf=function(){return g7e(this)},o.Zf=function(e){var t;t=new qN(e),ht(this.f,(He(),xv),t)},o.$f=function(e){ht(this.f,(He(),M1),new _V(e))},o.Tf=function(){return this.d},o.Uf=function(){var e,t;if(!this.a)for(this.a=new Z,t=new ie(ce(cy(u(this.f,27)).a.Kc(),new En));pe(t);)e=u(fe(t),74),nn(this.a,new LE(e));return this.a},o.Wf=function(){var e,t;if(!this.c)for(this.c=new Z,t=new ie(ce(Sl(u(this.f,27)).a.Kc(),new En));pe(t);)e=u(fe(t),74),nn(this.c,new LE(e));return this.c},o.Yf=function(){return ST(u(this.f,27)).i!=0||on(un(u(this.f,27).of((He(),Xj))))},o._f=function(){V4e(this,(cb(),poe))},o.a=null,o.b=null,o.c=null,o.d=null,o.e=null,w(d8,"ElkGraphAdapters/ElkNodeAdapter",639),b(1284,562,{852:1},Kkn),o.Rf=function(){return M7e(this)},o.Uf=function(){var e,t;if(!this.a)for(this.a=Lh(u(this.f,123).hh().i),t=new ne(u(this.f,123).hh());t.e!=t.i.gc();)e=u(ue(t),74),nn(this.a,new LE(e));return this.a},o.Wf=function(){var e,t;if(!this.c)for(this.c=Lh(u(this.f,123).ih().i),t=new ne(u(this.f,123).ih());t.e!=t.i.gc();)e=u(ue(t),74),nn(this.c,new LE(e));return this.c},o.ag=function(){return u(u(this.f,123).of((He(),H2)),64)},o.bg=function(){var e,t,i,r,c,s,f,h;for(r=Pf(u(this.f,123)),i=new ne(u(this.f,123).ih());i.e!=i.i.gc();)for(e=u(ue(i),74),h=new ne((!e.c&&(e.c=new Dn(he,e,5,8)),e.c));h.e!=h.i.gc();){if(f=u(ue(h),84),Y0(Gr(f),r))return!0;if(Gr(f)==r&&on(un(z(e,(He(),nU)))))return!0}for(t=new ne(u(this.f,123).hh());t.e!=t.i.gc();)for(e=u(ue(t),74),s=new ne((!e.b&&(e.b=new Dn(he,e,4,7)),e.b));s.e!=s.i.gc();)if(c=u(ue(s),84),Y0(Gr(c),r))return!0;return!1},o.a=null,o.b=null,o.c=null,w(d8,"ElkGraphAdapters/ElkPortAdapter",1284),b(1285,1,De,nvn),o.Ne=function(e,t){return tPe(u(e,123),u(t,123))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(d8,"ElkGraphAdapters/PortComparator",1285);var Aa=Dt(ts,"EObject"),Hv=Dt(o2,iWn),xo=Dt(o2,rWn),oE=Dt(o2,cWn),sE=Dt(o2,"ElkShape"),he=Dt(o2,uWn),Vt=Dt(o2,ycn),Tt=Dt(o2,oWn),fE=Dt(ts,sWn),O9=Dt(ts,"EFactory"),voe,gU=Dt(ts,fWn),Ef=Dt(ts,"EPackage"),Ci,koe,yoe,Pdn,bA,joe,Idn,Odn,Adn,il,Eoe,Moe,Sr=Dt(o2,jcn),Ye=Dt(o2,Ecn),Qu=Dt(o2,Mcn);b(93,1,hWn),o.th=function(){return this.uh(),null},o.uh=function(){return null},o.vh=function(){return this.uh(),!1},o.wh=function(){return!1},o.xh=function(e){it(this,e)},w(g3,"BasicNotifierImpl",93),b(99,93,bWn),o.Yh=function(){return fo(this)},o.yh=function(e,t){return e},o.zh=function(){throw T(new Ie)},o.Ah=function(e){var t;return t=br(u($n(this.Dh(),this.Fh()),19)),this.Ph().Th(this,t.n,t.f,e)},o.Bh=function(e,t){throw T(new Ie)},o.Ch=function(e,t,i){return Po(this,e,t,i)},o.Dh=function(){var e;return this.zh()&&(e=this.zh().Nk(),e)?e:this.ii()},o.Eh=function(){return dR(this)},o.Fh=function(){throw T(new Ie)},o.Gh=function(){var e,t;return t=this.$h().Ok(),!t&&this.zh().Tk(t=(l6(),e=nJ(bh(this.Dh())),e==null?MU:new M7(this,e))),t},o.Hh=function(e,t){return e},o.Ih=function(e){var t;return t=e.pk(),t?e.Lj():At(this.Dh(),e)},o.Jh=function(){var e;return e=this.zh(),e?e.Qk():null},o.Kh=function(){return this.zh()?this.zh().Nk():null},o.Lh=function(e,t,i){return tS(this,e,t,i)},o.Mh=function(e){return x4(this,e)},o.Nh=function(e,t){return YD(this,e,t)},o.Oh=function(){var e;return e=this.zh(),!!e&&e.Rk()},o.Ph=function(){throw T(new Ie)},o.Qh=function(){return WC(this)},o.Rh=function(e,t,i,r){return Wp(this,e,t,r)},o.Sh=function(e,t,i){var r;return r=u($n(this.Dh(),t),69),r.wk().zk(this,this.hi(),t-this.ji(),e,i)},o.Th=function(e,t,i,r){return AT(this,e,t,r)},o.Uh=function(e,t,i){var r;return r=u($n(this.Dh(),t),69),r.wk().Ak(this,this.hi(),t-this.ji(),e,i)},o.Vh=function(){return!!this.zh()&&!!this.zh().Pk()},o.Wh=function(e){return Mx(this,e)},o.Xh=function(e){return bAn(this,e)},o.Zh=function(e){return xGn(this,e)},o.$h=function(){throw T(new Ie)},o._h=function(){return this.zh()?this.zh().Pk():null},o.ai=function(){return WC(this)},o.bi=function(e,t){sR(this,e,t)},o.ci=function(e){this.$h().Sk(e)},o.di=function(e){this.$h().Vk(e)},o.ei=function(e){this.$h().Uk(e)},o.fi=function(e,t){var i,r,c,s;return s=this.Jh(),s&&e&&(t=cr(s.El(),this,t),s.Il(this)),r=this.Ph(),r&&(SR(this,this.Ph(),this.Fh()).Bb&hr?(c=r.Qh(),c&&(e?!s&&c.Il(this):c.Hl(this))):(t=(i=this.Fh(),i>=0?this.Ah(t):this.Ph().Th(this,-1-i,null,t)),t=this.Ch(null,-1,t))),this.di(e),t},o.gi=function(e){var t,i,r,c,s,f,h,l;if(i=this.Dh(),s=At(i,e),t=this.ji(),s>=t)return u(e,69).wk().Dk(this,this.hi(),s-t);if(s<=-1)if(f=Qg((Lu(),zi),i,e),f){if(dr(),u(f,69).xk()||(f=$p(Nr(zi,f))),c=(r=this.Ih(f),u(r>=0?this.Lh(r,!0,!0):Hb(this,f,!0),160)),l=f.Ik(),l>1||l==-1)return u(u(c,220).Sl(e,!1),79)}else throw T(new Gn(ba+e.xe()+sF));else if(e.Jk())return r=this.Ih(e),u(r>=0?this.Lh(r,!1,!0):Hb(this,e,!1),79);return h=new LTn(this,e),h},o.hi=function(){return cQ(this)},o.ii=function(){return(G1(),Hn).S},o.ji=function(){return se(this.ii())},o.ki=function(e){cR(this,e)},o.Ib=function(){return Hs(this)},w(qn,"BasicEObjectImpl",99);var Toe;b(119,99,{110:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1}),o.li=function(e){var t;return t=rQ(this),t[e]},o.mi=function(e,t){var i;i=rQ(this),$t(i,e,t)},o.ni=function(e){var t;t=rQ(this),$t(t,e,null)},o.th=function(){return u(Un(this,4),129)},o.uh=function(){throw T(new Ie)},o.vh=function(){return(this.Db&4)!=0},o.zh=function(){throw T(new Ie)},o.oi=function(e){Xp(this,2,e)},o.Bh=function(e,t){this.Db=t<<16|this.Db&255,this.oi(e)},o.Dh=function(){return au(this)},o.Fh=function(){return this.Db>>16},o.Gh=function(){var e,t;return l6(),t=nJ(bh((e=u(Un(this,16),29),e||this.ii()))),t==null?MU:new M7(this,t)},o.wh=function(){return(this.Db&1)==0},o.Jh=function(){return u(Un(this,128),2034)},o.Kh=function(){return u(Un(this,16),29)},o.Oh=function(){return(this.Db&32)!=0},o.Ph=function(){return u(Un(this,2),54)},o.Vh=function(){return(this.Db&64)!=0},o.$h=function(){throw T(new Ie)},o._h=function(){return u(Un(this,64),288)},o.ci=function(e){Xp(this,16,e)},o.di=function(e){Xp(this,128,e)},o.ei=function(e){Xp(this,64,e)},o.hi=function(){return iu(this)},o.Db=0,w(qn,"MinimalEObjectImpl",119),b(120,119,{110:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),o.oi=function(e){this.Cb=e},o.Ph=function(){return this.Cb},w(qn,"MinimalEObjectImpl/Container",120),b(2083,120,{110:1,342:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),o.Lh=function(e,t,i){return kZ(this,e,t,i)},o.Uh=function(e,t,i){return fnn(this,e,t,i)},o.Wh=function(e){return bJ(this,e)},o.bi=function(e,t){cY(this,e,t)},o.ii=function(){return Mc(),Moe},o.ki=function(e){VQ(this,e)},o.nf=function(){return aBn(this)},o.gh=function(){return!this.o&&(this.o=new Ou((Mc(),il),C1,this,0)),this.o},o.of=function(e){return z(this,e)},o.pf=function(e){return Nf(this,e)},o.qf=function(e,t){return ht(this,e,t)},w(Td,"EMapPropertyHolderImpl",2083),b(572,120,{110:1,377:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},yE),o.Lh=function(e,t,i){switch(e){case 0:return this.a;case 1:return this.b}return tS(this,e,t,i)},o.Wh=function(e){switch(e){case 0:return this.a!=0;case 1:return this.b!=0}return Mx(this,e)},o.bi=function(e,t){switch(e){case 0:aC(this,$(B(t)));return;case 1:lC(this,$(B(t)));return}sR(this,e,t)},o.ii=function(){return Mc(),koe},o.ki=function(e){switch(e){case 0:aC(this,0);return;case 1:lC(this,0);return}cR(this,e)},o.Ib=function(){var e;return this.Db&64?Hs(this):(e=new ls(Hs(this)),e.a+=" (x: ",hg(e,this.a),e.a+=", y: ",hg(e,this.b),e.a+=")",e.a)},o.a=0,o.b=0,w(Td,"ElkBendPointImpl",572),b(739,2083,{110:1,342:1,167:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),o.Lh=function(e,t,i){return PY(this,e,t,i)},o.Sh=function(e,t,i){return Yx(this,e,t,i)},o.Uh=function(e,t,i){return $$(this,e,t,i)},o.Wh=function(e){return HQ(this,e)},o.bi=function(e,t){BZ(this,e,t)},o.ii=function(){return Mc(),joe},o.ki=function(e){vY(this,e)},o.jh=function(){return this.k},o.kh=function(){return jT(this)},o.Ib=function(){return ox(this)},o.k=null,w(Td,"ElkGraphElementImpl",739),b(740,739,{110:1,342:1,167:1,422:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),o.Lh=function(e,t,i){return xY(this,e,t,i)},o.Wh=function(e){return HY(this,e)},o.bi=function(e,t){FZ(this,e,t)},o.ii=function(){return Mc(),Eoe},o.ki=function(e){WY(this,e)},o.lh=function(){return this.f},o.mh=function(){return this.g},o.nh=function(){return this.i},o.oh=function(){return this.j},o.ph=function(e,t){kg(this,e,t)},o.qh=function(e,t){Bo(this,e,t)},o.rh=function(e){eu(this,e)},o.sh=function(e){tu(this,e)},o.Ib=function(){return iR(this)},o.f=0,o.g=0,o.i=0,o.j=0,w(Td,"ElkShapeImpl",740),b(741,740,{110:1,342:1,84:1,167:1,422:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),o.Lh=function(e,t,i){return dZ(this,e,t,i)},o.Sh=function(e,t,i){return NZ(this,e,t,i)},o.Uh=function(e,t,i){return DZ(this,e,t,i)},o.Wh=function(e){return rY(this,e)},o.bi=function(e,t){Xnn(this,e,t)},o.ii=function(){return Mc(),yoe},o.ki=function(e){sZ(this,e)},o.hh=function(){return!this.d&&(this.d=new Dn(Vt,this,8,5)),this.d},o.ih=function(){return!this.e&&(this.e=new Dn(Vt,this,7,4)),this.e},w(Td,"ElkConnectableShapeImpl",741),b(326,739,{110:1,342:1,74:1,167:1,326:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},HA),o.Ah=function(e){return IZ(this,e)},o.Lh=function(e,t,i){switch(e){case 3:return V7(this);case 4:return!this.b&&(this.b=new Dn(he,this,4,7)),this.b;case 5:return!this.c&&(this.c=new Dn(he,this,5,8)),this.c;case 6:return!this.a&&(this.a=new q(Tt,this,6,6)),this.a;case 7:return _n(),!this.b&&(this.b=new Dn(he,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new Dn(he,this,5,8)),this.c.i<=1));case 8:return _n(),!!D5(this);case 9:return _n(),!!_b(this);case 10:return _n(),!this.b&&(this.b=new Dn(he,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new Dn(he,this,5,8)),this.c.i!=0)}return PY(this,e,t,i)},o.Sh=function(e,t,i){var r;switch(t){case 3:return this.Cb&&(i=(r=this.Db>>16,r>=0?IZ(this,i):this.Cb.Th(this,-1-r,null,i))),hV(this,u(e,27),i);case 4:return!this.b&&(this.b=new Dn(he,this,4,7)),Xc(this.b,e,i);case 5:return!this.c&&(this.c=new Dn(he,this,5,8)),Xc(this.c,e,i);case 6:return!this.a&&(this.a=new q(Tt,this,6,6)),Xc(this.a,e,i)}return Yx(this,e,t,i)},o.Uh=function(e,t,i){switch(t){case 3:return hV(this,null,i);case 4:return!this.b&&(this.b=new Dn(he,this,4,7)),cr(this.b,e,i);case 5:return!this.c&&(this.c=new Dn(he,this,5,8)),cr(this.c,e,i);case 6:return!this.a&&(this.a=new q(Tt,this,6,6)),cr(this.a,e,i)}return $$(this,e,t,i)},o.Wh=function(e){switch(e){case 3:return!!V7(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 Dn(he,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new Dn(he,this,5,8)),this.c.i<=1));case 8:return D5(this);case 9:return _b(this);case 10:return!this.b&&(this.b=new Dn(he,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new Dn(he,this,5,8)),this.c.i!=0)}return HQ(this,e)},o.bi=function(e,t){switch(e){case 3:SS(this,u(t,27));return;case 4:!this.b&&(this.b=new Dn(he,this,4,7)),me(this.b),!this.b&&(this.b=new Dn(he,this,4,7)),Kt(this.b,u(t,16));return;case 5:!this.c&&(this.c=new Dn(he,this,5,8)),me(this.c),!this.c&&(this.c=new Dn(he,this,5,8)),Kt(this.c,u(t,16));return;case 6:!this.a&&(this.a=new q(Tt,this,6,6)),me(this.a),!this.a&&(this.a=new q(Tt,this,6,6)),Kt(this.a,u(t,16));return}BZ(this,e,t)},o.ii=function(){return Mc(),Pdn},o.ki=function(e){switch(e){case 3:SS(this,null);return;case 4:!this.b&&(this.b=new Dn(he,this,4,7)),me(this.b);return;case 5:!this.c&&(this.c=new Dn(he,this,5,8)),me(this.c);return;case 6:!this.a&&(this.a=new q(Tt,this,6,6)),me(this.a);return}vY(this,e)},o.Ib=function(){return nGn(this)},w(Td,"ElkEdgeImpl",326),b(452,2083,{110:1,342:1,166:1,452:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},jE),o.Ah=function(e){return TZ(this,e)},o.Lh=function(e,t,i){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 ti(xo,this,5)),this.a;case 6:return hAn(this);case 7:return t?Ix(this):this.i;case 8:return t?Px(this):this.f;case 9:return!this.g&&(this.g=new Dn(Tt,this,9,10)),this.g;case 10:return!this.e&&(this.e=new Dn(Tt,this,10,9)),this.e;case 11:return this.d}return kZ(this,e,t,i)},o.Sh=function(e,t,i){var r,c,s;switch(t){case 6:return this.Cb&&(i=(c=this.Db>>16,c>=0?TZ(this,i):this.Cb.Th(this,-1-c,null,i))),fV(this,u(e,74),i);case 9:return!this.g&&(this.g=new Dn(Tt,this,9,10)),Xc(this.g,e,i);case 10:return!this.e&&(this.e=new Dn(Tt,this,10,9)),Xc(this.e,e,i)}return s=u($n((r=u(Un(this,16),29),r||(Mc(),bA)),t),69),s.wk().zk(this,iu(this),t-se((Mc(),bA)),e,i)},o.Uh=function(e,t,i){switch(t){case 5:return!this.a&&(this.a=new ti(xo,this,5)),cr(this.a,e,i);case 6:return fV(this,null,i);case 9:return!this.g&&(this.g=new Dn(Tt,this,9,10)),cr(this.g,e,i);case 10:return!this.e&&(this.e=new Dn(Tt,this,10,9)),cr(this.e,e,i)}return fnn(this,e,t,i)},o.Wh=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!!hAn(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 bJ(this,e)},o.bi=function(e,t){switch(e){case 1:H4(this,$(B(t)));return;case 2:U4(this,$(B(t)));return;case 3:_4(this,$(B(t)));return;case 4:q4(this,$(B(t)));return;case 5:!this.a&&(this.a=new ti(xo,this,5)),me(this.a),!this.a&&(this.a=new ti(xo,this,5)),Kt(this.a,u(t,16));return;case 6:ZHn(this,u(t,74));return;case 7:vC(this,u(t,84));return;case 8:mC(this,u(t,84));return;case 9:!this.g&&(this.g=new Dn(Tt,this,9,10)),me(this.g),!this.g&&(this.g=new Dn(Tt,this,9,10)),Kt(this.g,u(t,16));return;case 10:!this.e&&(this.e=new Dn(Tt,this,10,9)),me(this.e),!this.e&&(this.e=new Dn(Tt,this,10,9)),Kt(this.e,u(t,16));return;case 11:OQ(this,Ae(t));return}cY(this,e,t)},o.ii=function(){return Mc(),bA},o.ki=function(e){switch(e){case 1:H4(this,0);return;case 2:U4(this,0);return;case 3:_4(this,0);return;case 4:q4(this,0);return;case 5:!this.a&&(this.a=new ti(xo,this,5)),me(this.a);return;case 6:ZHn(this,null);return;case 7:vC(this,null);return;case 8:mC(this,null);return;case 9:!this.g&&(this.g=new Dn(Tt,this,9,10)),me(this.g);return;case 10:!this.e&&(this.e=new Dn(Tt,this,10,9)),me(this.e);return;case 11:OQ(this,null);return}VQ(this,e)},o.Ib=function(){return dHn(this)},o.b=0,o.c=0,o.d=null,o.j=0,o.k=0,w(Td,"ElkEdgeSectionImpl",452),b(158,120,{110:1,94:1,93:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1}),o.Lh=function(e,t,i){var r;return e==0?(!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab):zo(this,e-se(this.ii()),$n((r=u(Un(this,16),29),r||this.ii()),e),t,i)},o.Sh=function(e,t,i){var r,c;return t==0?(!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Xc(this.Ab,e,i)):(c=u($n((r=u(Un(this,16),29),r||this.ii()),t),69),c.wk().zk(this,iu(this),t-se(this.ii()),e,i))},o.Uh=function(e,t,i){var r,c;return t==0?(!this.Ab&&(this.Ab=new q(Ue,this,0,3)),cr(this.Ab,e,i)):(c=u($n((r=u(Un(this,16),29),r||this.ii()),t),69),c.wk().Ak(this,iu(this),t-se(this.ii()),e,i))},o.Wh=function(e){var t;return e==0?!!this.Ab&&this.Ab.i!=0:Uo(this,e-se(this.ii()),$n((t=u(Un(this,16),29),t||this.ii()),e))},o.Zh=function(e){return rtn(this,e)},o.bi=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab),!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Kt(this.Ab,u(t,16));return}Jo(this,e-se(this.ii()),$n((i=u(Un(this,16),29),i||this.ii()),e),t)},o.di=function(e){Xp(this,128,e)},o.ii=function(){return An(),qoe},o.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab);return}Wo(this,e-se(this.ii()),$n((t=u(Un(this,16),29),t||this.ii()),e))},o.pi=function(){this.Bb|=1},o.qi=function(e){return _5(this,e)},o.Bb=0,w(qn,"EModelElementImpl",158),b(720,158,{110:1,94:1,93:1,480:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1},uG),o.ri=function(e,t){return IGn(this,e,t)},o.si=function(e){var t,i,r,c,s;if(this.a!=jo(e)||e.Bb&256)throw T(new Gn(hF+e.zb+n0));for(r=Hr(e);Pc(r.a).i!=0;){if(i=u(py(r,0,(t=u(N(Pc(r.a),0),89),s=t.c,L(s,90)?u(s,29):(An(),Os))),29),Fb(i))return c=jo(i).wi().si(i),u(c,54).ci(e),c;r=Hr(i)}return(e.D!=null?e.D:e.B)=="java.util.Map$Entry"?new zPn(e):new YV(e)},o.ti=function(e,t){return zb(this,e,t)},o.Lh=function(e,t,i){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab;case 1:return this.a}return zo(this,e-se((An(),$a)),$n((r=u(Un(this,16),29),r||$a),e),t,i)},o.Sh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Xc(this.Ab,e,i);case 1:return this.a&&(i=u(this.a,54).Th(this,4,Ef,i)),mY(this,u(e,241),i)}return c=u($n((r=u(Un(this,16),29),r||(An(),$a)),t),69),c.wk().zk(this,iu(this),t-se((An(),$a)),e,i)},o.Uh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),cr(this.Ab,e,i);case 1:return mY(this,null,i)}return c=u($n((r=u(Un(this,16),29),r||(An(),$a)),t),69),c.wk().Ak(this,iu(this),t-se((An(),$a)),e,i)},o.Wh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return!!this.a}return Uo(this,e-se((An(),$a)),$n((t=u(Un(this,16),29),t||$a),e))},o.bi=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab),!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Kt(this.Ab,u(t,16));return;case 1:JFn(this,u(t,241));return}Jo(this,e-se((An(),$a)),$n((i=u(Un(this,16),29),i||$a),e),t)},o.ii=function(){return An(),$a},o.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab);return;case 1:JFn(this,null);return}Wo(this,e-se((An(),$a)),$n((t=u(Un(this,16),29),t||$a),e))};var A9,Ldn,Coe;w(qn,"EFactoryImpl",720),b(1037,720,{110:1,2113:1,94:1,93:1,480:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1},fvn),o.ri=function(e,t){switch(e.hk()){case 12:return u(t,149).Pg();case 13:return Jr(t);default:throw T(new Gn(ev+e.xe()+n0))}},o.si=function(e){var t,i,r,c,s,f,h,l;switch(e.G==-1&&(e.G=(t=jo(e),t?f1(t.vi(),e):-1)),e.G){case 4:return s=new nG,s;case 6:return f=new Yv,f;case 7:return h=new nz,h;case 8:return r=new HA,r;case 9:return i=new yE,i;case 10:return c=new jE,c;case 11:return l=new hvn,l;default:throw T(new Gn(hF+e.zb+n0))}},o.ti=function(e,t){switch(e.hk()){case 13:case 12:return null;default:throw T(new Gn(ev+e.xe()+n0))}},w(Td,"ElkGraphFactoryImpl",1037),b(448,158,{110:1,94:1,93:1,155:1,197:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1}),o.Gh=function(){var e,t;return t=(e=u(Un(this,16),29),nJ(bh(e||this.ii()))),t==null?(l6(),l6(),MU):new wSn(this,t)},o.Lh=function(e,t,i){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab;case 1:return this.xe()}return zo(this,e-se(this.ii()),$n((r=u(Un(this,16),29),r||this.ii()),e),t,i)},o.Wh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null}return Uo(this,e-se(this.ii()),$n((t=u(Un(this,16),29),t||this.ii()),e))},o.bi=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab),!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Kt(this.Ab,u(t,16));return;case 1:this.ui(Ae(t));return}Jo(this,e-se(this.ii()),$n((i=u(Un(this,16),29),i||this.ii()),e),t)},o.ii=function(){return An(),Uoe},o.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab);return;case 1:this.ui(null);return}Wo(this,e-se(this.ii()),$n((t=u(Un(this,16),29),t||this.ii()),e))},o.xe=function(){return this.zb},o.ui=function(e){zc(this,e)},o.Ib=function(){return p5(this)},o.zb=null,w(qn,"ENamedElementImpl",448),b(184,448,{110:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,54:1,99:1,158:1,184:1,119:1,120:1,690:1},HOn),o.Ah=function(e){return oFn(this,e)},o.Lh=function(e,t,i){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new q(Ue,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 H0(this,Mf,this)),this.rb;case 6:return!this.vb&&(this.vb=new jp(Ef,this,6,7)),this.vb;case 7:return t?this.Db>>16==7?u(this.Cb,241):null:pAn(this)}return zo(this,e-se((An(),O1)),$n((r=u(Un(this,16),29),r||O1),e),t,i)},o.Sh=function(e,t,i){var r,c,s;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Xc(this.Ab,e,i);case 4:return this.sb&&(i=u(this.sb,54).Th(this,1,O9,i)),yY(this,u(e,480),i);case 5:return!this.rb&&(this.rb=new H0(this,Mf,this)),Xc(this.rb,e,i);case 6:return!this.vb&&(this.vb=new jp(Ef,this,6,7)),Xc(this.vb,e,i);case 7:return this.Cb&&(i=(c=this.Db>>16,c>=0?oFn(this,i):this.Cb.Th(this,-1-c,null,i))),Po(this,e,7,i)}return s=u($n((r=u(Un(this,16),29),r||(An(),O1)),t),69),s.wk().zk(this,iu(this),t-se((An(),O1)),e,i)},o.Uh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),cr(this.Ab,e,i);case 4:return yY(this,null,i);case 5:return!this.rb&&(this.rb=new H0(this,Mf,this)),cr(this.rb,e,i);case 6:return!this.vb&&(this.vb=new jp(Ef,this,6,7)),cr(this.vb,e,i);case 7:return Po(this,null,7,i)}return c=u($n((r=u(Un(this,16),29),r||(An(),O1)),t),69),c.wk().Ak(this,iu(this),t-se((An(),O1)),e,i)},o.Wh=function(e){var t;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!!pAn(this)}return Uo(this,e-se((An(),O1)),$n((t=u(Un(this,16),29),t||O1),e))},o.Zh=function(e){var t;return t=pCe(this,e),t||rtn(this,e)},o.bi=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab),!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Kt(this.Ab,u(t,16));return;case 1:zc(this,Ae(t));return;case 2:TC(this,Ae(t));return;case 3:MC(this,Ae(t));return;case 4:tR(this,u(t,480));return;case 5:!this.rb&&(this.rb=new H0(this,Mf,this)),me(this.rb),!this.rb&&(this.rb=new H0(this,Mf,this)),Kt(this.rb,u(t,16));return;case 6:!this.vb&&(this.vb=new jp(Ef,this,6,7)),me(this.vb),!this.vb&&(this.vb=new jp(Ef,this,6,7)),Kt(this.vb,u(t,16));return}Jo(this,e-se((An(),O1)),$n((i=u(Un(this,16),29),i||O1),e),t)},o.ei=function(e){var t,i;if(e&&this.rb)for(i=new ne(this.rb);i.e!=i.i.gc();)t=ue(i),L(t,364)&&(u(t,364).w=null);Xp(this,64,e)},o.ii=function(){return An(),O1},o.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab);return;case 1:zc(this,null);return;case 2:TC(this,null);return;case 3:MC(this,null);return;case 4:tR(this,null);return;case 5:!this.rb&&(this.rb=new H0(this,Mf,this)),me(this.rb);return;case 6:!this.vb&&(this.vb=new jp(Ef,this,6,7)),me(this.vb);return}Wo(this,e-se((An(),O1)),$n((t=u(Un(this,16),29),t||O1),e))},o.pi=function(){Hx(this)},o.vi=function(){return!this.rb&&(this.rb=new H0(this,Mf,this)),this.rb},o.wi=function(){return this.sb},o.xi=function(){return this.ub},o.yi=function(){return this.xb},o.zi=function(){return this.yb},o.Ai=function(e){this.ub=e},o.Ib=function(){var e;return this.Db&64?p5(this):(e=new ls(p5(this)),e.a+=" (nsURI: ",Er(e,this.yb),e.a+=", nsPrefix: ",Er(e,this.xb),e.a+=")",e.a)},o.xb=null,o.yb=null,w(qn,"EPackageImpl",184),b(569,184,{110:1,2115:1,569:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,54:1,99:1,158:1,184:1,119:1,120:1,690:1},jHn),o.q=!1,o.r=!1;var Soe=!1;w(Td,"ElkGraphPackageImpl",569),b(366,740,{110:1,342:1,167:1,135:1,422:1,366:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},nG),o.Ah=function(e){return CZ(this,e)},o.Lh=function(e,t,i){switch(e){case 7:return mAn(this);case 8:return this.a}return xY(this,e,t,i)},o.Sh=function(e,t,i){var r;switch(t){case 7:return this.Cb&&(i=(r=this.Db>>16,r>=0?CZ(this,i):this.Cb.Th(this,-1-r,null,i))),dW(this,u(e,167),i)}return Yx(this,e,t,i)},o.Uh=function(e,t,i){return t==7?dW(this,null,i):$$(this,e,t,i)},o.Wh=function(e){switch(e){case 7:return!!mAn(this);case 8:return!Sn("",this.a)}return HY(this,e)},o.bi=function(e,t){switch(e){case 7:uen(this,u(t,167));return;case 8:TQ(this,Ae(t));return}FZ(this,e,t)},o.ii=function(){return Mc(),Idn},o.ki=function(e){switch(e){case 7:uen(this,null);return;case 8:TQ(this,"");return}WY(this,e)},o.Ib=function(){return h_n(this)},o.a="",w(Td,"ElkLabelImpl",366),b(207,741,{110:1,342:1,84:1,167:1,27:1,422:1,207:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},Yv),o.Ah=function(e){return OZ(this,e)},o.Lh=function(e,t,i){switch(e){case 9:return!this.c&&(this.c=new q(Qu,this,9,9)),this.c;case 10:return!this.a&&(this.a=new q(Ye,this,10,11)),this.a;case 11:return St(this);case 12:return!this.b&&(this.b=new q(Vt,this,12,3)),this.b;case 13:return _n(),!this.a&&(this.a=new q(Ye,this,10,11)),this.a.i>0}return dZ(this,e,t,i)},o.Sh=function(e,t,i){var r;switch(t){case 9:return!this.c&&(this.c=new q(Qu,this,9,9)),Xc(this.c,e,i);case 10:return!this.a&&(this.a=new q(Ye,this,10,11)),Xc(this.a,e,i);case 11:return this.Cb&&(i=(r=this.Db>>16,r>=0?OZ(this,i):this.Cb.Th(this,-1-r,null,i))),kV(this,u(e,27),i);case 12:return!this.b&&(this.b=new q(Vt,this,12,3)),Xc(this.b,e,i)}return NZ(this,e,t,i)},o.Uh=function(e,t,i){switch(t){case 9:return!this.c&&(this.c=new q(Qu,this,9,9)),cr(this.c,e,i);case 10:return!this.a&&(this.a=new q(Ye,this,10,11)),cr(this.a,e,i);case 11:return kV(this,null,i);case 12:return!this.b&&(this.b=new q(Vt,this,12,3)),cr(this.b,e,i)}return DZ(this,e,t,i)},o.Wh=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!!St(this);case 12:return!!this.b&&this.b.i!=0;case 13:return!this.a&&(this.a=new q(Ye,this,10,11)),this.a.i>0}return rY(this,e)},o.bi=function(e,t){switch(e){case 9:!this.c&&(this.c=new q(Qu,this,9,9)),me(this.c),!this.c&&(this.c=new q(Qu,this,9,9)),Kt(this.c,u(t,16));return;case 10:!this.a&&(this.a=new q(Ye,this,10,11)),me(this.a),!this.a&&(this.a=new q(Ye,this,10,11)),Kt(this.a,u(t,16));return;case 11:PS(this,u(t,27));return;case 12:!this.b&&(this.b=new q(Vt,this,12,3)),me(this.b),!this.b&&(this.b=new q(Vt,this,12,3)),Kt(this.b,u(t,16));return}Xnn(this,e,t)},o.ii=function(){return Mc(),Odn},o.ki=function(e){switch(e){case 9:!this.c&&(this.c=new q(Qu,this,9,9)),me(this.c);return;case 10:!this.a&&(this.a=new q(Ye,this,10,11)),me(this.a);return;case 11:PS(this,null);return;case 12:!this.b&&(this.b=new q(Vt,this,12,3)),me(this.b);return}sZ(this,e)},o.Ib=function(){return jen(this)},w(Td,"ElkNodeImpl",207),b(193,741,{110:1,342:1,84:1,167:1,123:1,422:1,193:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},nz),o.Ah=function(e){return SZ(this,e)},o.Lh=function(e,t,i){return e==9?Pf(this):dZ(this,e,t,i)},o.Sh=function(e,t,i){var r;switch(t){case 9:return this.Cb&&(i=(r=this.Db>>16,r>=0?SZ(this,i):this.Cb.Th(this,-1-r,null,i))),lV(this,u(e,27),i)}return NZ(this,e,t,i)},o.Uh=function(e,t,i){return t==9?lV(this,null,i):DZ(this,e,t,i)},o.Wh=function(e){return e==9?!!Pf(this):rY(this,e)},o.bi=function(e,t){switch(e){case 9:ten(this,u(t,27));return}Xnn(this,e,t)},o.ii=function(){return Mc(),Adn},o.ki=function(e){switch(e){case 9:ten(this,null);return}sZ(this,e)},o.Ib=function(){return Yqn(this)},w(Td,"ElkPortImpl",193);var Poe=Dt(or,"BasicEMap/Entry");b(1122,120,{110:1,44:1,94:1,93:1,136:1,58:1,114:1,54:1,99:1,119:1,120:1},hvn),o.Fb=function(e){return this===e},o.ld=function(){return this.b},o.Hb=function(){return lb(this)},o.Di=function(e){CQ(this,u(e,149))},o.Lh=function(e,t,i){switch(e){case 0:return this.b;case 1:return this.c}return tS(this,e,t,i)},o.Wh=function(e){switch(e){case 0:return!!this.b;case 1:return this.c!=null}return Mx(this,e)},o.bi=function(e,t){switch(e){case 0:CQ(this,u(t,149));return;case 1:MQ(this,t);return}sR(this,e,t)},o.ii=function(){return Mc(),il},o.ki=function(e){switch(e){case 0:CQ(this,null);return;case 1:MQ(this,null);return}cR(this,e)},o.Bi=function(){var e;return this.a==-1&&(e=this.b,this.a=e?mt(e):0),this.a},o.md=function(){return this.c},o.Ci=function(e){this.a=e},o.nd=function(e){var t;return t=this.c,MQ(this,e),t},o.Ib=function(){var e;return this.Db&64?Hs(this):(e=new x1,Be(Be(Be(e,this.b?this.b.Pg():gu),iB),A6(this.c)),e.a)},o.a=-1,o.c=null;var C1=w(Td,"ElkPropertyToValueMapEntryImpl",1122);b(996,1,{},dvn),w(Ui,"JsonAdapter",996),b(216,63,Il,eh),w(Ui,"JsonImportException",216),b(868,1,{},sFn),w(Ui,"JsonImporter",868),b(903,1,{},wTn),w(Ui,"JsonImporter/lambda$0$Type",903),b(904,1,{},gTn),w(Ui,"JsonImporter/lambda$1$Type",904),b(912,1,{},Bkn),w(Ui,"JsonImporter/lambda$10$Type",912),b(914,1,{},pTn),w(Ui,"JsonImporter/lambda$11$Type",914),b(915,1,{},mTn),w(Ui,"JsonImporter/lambda$12$Type",915),b(921,1,{},OOn),w(Ui,"JsonImporter/lambda$13$Type",921),b(920,1,{},AOn),w(Ui,"JsonImporter/lambda$14$Type",920),b(916,1,{},vTn),w(Ui,"JsonImporter/lambda$15$Type",916),b(917,1,{},kTn),w(Ui,"JsonImporter/lambda$16$Type",917),b(918,1,{},yTn),w(Ui,"JsonImporter/lambda$17$Type",918),b(919,1,{},jTn),w(Ui,"JsonImporter/lambda$18$Type",919),b(924,1,{},Fkn),w(Ui,"JsonImporter/lambda$19$Type",924),b(905,1,{},_kn),w(Ui,"JsonImporter/lambda$2$Type",905),b(922,1,{},Hkn),w(Ui,"JsonImporter/lambda$20$Type",922),b(923,1,{},qkn),w(Ui,"JsonImporter/lambda$21$Type",923),b(927,1,{},Ukn),w(Ui,"JsonImporter/lambda$22$Type",927),b(925,1,{},Gkn),w(Ui,"JsonImporter/lambda$23$Type",925),b(926,1,{},zkn),w(Ui,"JsonImporter/lambda$24$Type",926),b(929,1,{},Xkn),w(Ui,"JsonImporter/lambda$25$Type",929),b(928,1,{},Vkn),w(Ui,"JsonImporter/lambda$26$Type",928),b(930,1,re,ETn),o.Cd=function(e){A4e(this.b,this.a,Ae(e))},w(Ui,"JsonImporter/lambda$27$Type",930),b(931,1,re,MTn),o.Cd=function(e){L4e(this.b,this.a,Ae(e))},w(Ui,"JsonImporter/lambda$28$Type",931),b(932,1,{},TTn),w(Ui,"JsonImporter/lambda$29$Type",932),b(908,1,{},Wkn),w(Ui,"JsonImporter/lambda$3$Type",908),b(933,1,{},CTn),w(Ui,"JsonImporter/lambda$30$Type",933),b(934,1,{},Jkn),w(Ui,"JsonImporter/lambda$31$Type",934),b(935,1,{},Qkn),w(Ui,"JsonImporter/lambda$32$Type",935),b(936,1,{},Ykn),w(Ui,"JsonImporter/lambda$33$Type",936),b(937,1,{},Zkn),w(Ui,"JsonImporter/lambda$34$Type",937),b(870,1,{},nyn),w(Ui,"JsonImporter/lambda$35$Type",870),b(941,1,{},kPn),w(Ui,"JsonImporter/lambda$36$Type",941),b(938,1,re,eyn),o.Cd=function(e){R3e(this.a,u(e,377))},w(Ui,"JsonImporter/lambda$37$Type",938),b(939,1,re,STn),o.Cd=function(e){mle(this.a,this.b,u(e,166))},w(Ui,"JsonImporter/lambda$38$Type",939),b(940,1,re,PTn),o.Cd=function(e){vle(this.a,this.b,u(e,166))},w(Ui,"JsonImporter/lambda$39$Type",940),b(906,1,{},tyn),w(Ui,"JsonImporter/lambda$4$Type",906),b(942,1,re,iyn),o.Cd=function(e){K3e(this.a,u(e,8))},w(Ui,"JsonImporter/lambda$40$Type",942),b(907,1,{},ryn),w(Ui,"JsonImporter/lambda$5$Type",907),b(911,1,{},cyn),w(Ui,"JsonImporter/lambda$6$Type",911),b(909,1,{},uyn),w(Ui,"JsonImporter/lambda$7$Type",909),b(910,1,{},oyn),w(Ui,"JsonImporter/lambda$8$Type",910),b(913,1,{},syn),w(Ui,"JsonImporter/lambda$9$Type",913),b(961,1,re,fyn),o.Cd=function(e){Op(this.a,new q0(Ae(e)))},w(Ui,"JsonMetaDataConverter/lambda$0$Type",961),b(962,1,re,hyn),o.Cd=function(e){Iwe(this.a,u(e,245))},w(Ui,"JsonMetaDataConverter/lambda$1$Type",962),b(963,1,re,lyn),o.Cd=function(e){P2e(this.a,u(e,143))},w(Ui,"JsonMetaDataConverter/lambda$2$Type",963),b(964,1,re,ayn),o.Cd=function(e){Owe(this.a,u(e,170))},w(Ui,"JsonMetaDataConverter/lambda$3$Type",964),b(245,22,{3:1,34:1,22:1,245:1},gp);var wA,gA,pU,pA,mA,vA,mU,vU,kA=we(Ly,"GraphFeature",245,ke,dme,t0e),Ioe;b(11,1,{34:1,149:1},lt,Lt,Tn,Di),o.Fd=function(e){return M1e(this,u(e,149))},o.Fb=function(e){return nAn(this,e)},o.Sg=function(){return rn(this)},o.Pg=function(){return this.b},o.Hb=function(){return t1(this.b)},o.Ib=function(){return this.b},w(Ly,"Property",11),b(671,1,De,tL),o.Ne=function(e,t){return D5e(this,u(e,96),u(t,96))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Ly,"PropertyHolderComparator",671),b(709,1,Pi,$G),o.Nb=function(e){_i(this,e)},o.Pb=function(){return $4e(this)},o.Qb=function(){sEn()},o.Ob=function(){return!!this.a},w(_P,"ElkGraphUtil/AncestorIterator",709);var Ndn=Dt(or,"EList");b(70,56,{20:1,31:1,56:1,16:1,15:1,70:1,61:1}),o.bd=function(e,t){v5(this,e,t)},o.Fc=function(e){return ve(this,e)},o.cd=function(e,t){return WQ(this,e,t)},o.Gc=function(e){return Kt(this,e)},o.Ii=function(){return new yp(this)},o.Ji=function(){return new T7(this)},o.Ki=function(e){return pk(this,e)},o.Li=function(){return!0},o.Mi=function(e,t){},o.Ni=function(){},o.Oi=function(e,t){t$(this,e,t)},o.Pi=function(e,t,i){},o.Qi=function(e,t){},o.Ri=function(e,t,i){},o.Fb=function(e){return xqn(this,e)},o.Hb=function(){return GQ(this)},o.Si=function(){return!1},o.Kc=function(){return new ne(this)},o.ed=function(){return new kp(this)},o.fd=function(e){var t;if(t=this.gc(),e<0||e>t)throw T(new F0(e,t));return new oD(this,e)},o.Ui=function(e,t){this.Ti(e,this.dd(t))},o.Mc=function(e){return rC(this,e)},o.Wi=function(e,t){return t},o.hd=function(e,t){return Bg(this,e,t)},o.Ib=function(){return BY(this)},o.Yi=function(){return!0},o.Zi=function(e,t){return rm(this,t)},w(or,"AbstractEList",70),b(66,70,Mh,EE,Pb,BQ),o.Ei=function(e,t){return Zx(this,e,t)},o.Fi=function(e){return NBn(this,e)},o.Gi=function(e,t){Lk(this,e,t)},o.Hi=function(e){ek(this,e)},o.$i=function(e){return ZJ(this,e)},o.$b=function(){e5(this)},o.Hc=function(e){return km(this,e)},o.Xb=function(e){return N(this,e)},o._i=function(e){var t,i,r;++this.j,i=this.g==null?0:this.g.length,e>i&&(r=this.g,t=i+(i/2|0)+4,t<e&&(t=e),this.g=this.aj(t),r!=null&&Oc(r,0,this.g,0,this.i))},o.dd=function(e){return eFn(this,e)},o.dc=function(){return this.i==0},o.Ti=function(e,t){return lR(this,e,t)},o.aj=function(e){return F(ki,Kn,1,e,5,1)},o.Vi=function(e){return this.g[e]},o.gd=function(e){return Jp(this,e)},o.Xi=function(e,t){return d$(this,e,t)},o.gc=function(){return this.i},o.Pc=function(){return yJ(this)},o.Qc=function(e){return VY(this,e)},o.i=0;var Ddn=w(or,"BasicEList",66),$dn=Dt(or,"TreeIterator");b(708,66,yF),o.Nb=function(e){_i(this,e)},o.Ob=function(){return this.g==null&&!this.c?rJ(this):this.g==null||this.i!=0&&u(this.g[this.i-1],51).Ob()},o.Pb=function(){return MS(this)},o.Qb=function(){if(!this.e)throw T(new Ar("There is no valid object to remove."));this.e.Qb()},o.c=!1,w(or,"AbstractTreeIterator",708),b(700,708,yF,CX),o.bj=function(e){var t;return t=u(e,58).Gh().Kc(),L(t,287)&&u(t,287).wl(new bvn),t},w(_P,"ElkGraphUtil/PropertiesSkippingTreeIterator",700),b(965,1,{},bvn),w(_P,"ElkGraphUtil/PropertiesSkippingTreeIterator/1",965);var hE,kU,lE=w(_P,"ElkReflect",null);b(901,1,Tw,wvn),o.Rg=function(e){return $T(),O2e(u(e,181))},w(_P,"ElkReflect/lambda$0$Type",901);var La;Dt(or,"ResourceLocator"),b(1065,1,{}),w(or,"DelegatingResourceLocator",1065),b(1066,1065,{}),w("org.eclipse.emf.common","EMFPlugin",1066);var yU=Dt(QWn,"Adapter"),ADe=Dt(QWn,"Notification");b(1174,1,_cn),o.cj=function(){return this.d},o.dj=function(e){},o.ej=function(e){this.d=e},o.fj=function(e){this.d==e&&(this.d=null)},o.d=null,w(g3,"AdapterImpl",1174),b(2093,70,YWn),o.Ei=function(e,t){return qY(this,e,t)},o.Fi=function(e){var t,i,r;if(++this.j,e.dc())return!1;for(t=this.Ej(),r=e.Kc();r.Ob();)i=r.Pb(),this.rj(this.Zi(t,i)),++t;return!0},o.Gi=function(e,t){OSn(this,e,t)},o.Hi=function(e){eOn(this,e)},o.pj=function(){return this.sj()},o.$b=function(){P7(this,this.Ej(),this.Fj())},o.Hc=function(e){return this.uj(e)},o.Ic=function(e){return this.vj(e)},o.qj=function(e,t){this.Bj().Um()},o.rj=function(e){this.Bj().Um()},o.sj=function(){return this.Bj()},o.tj=function(){this.Bj().Um()},o.uj=function(e){return this.Bj().Um()},o.vj=function(e){return this.Bj().Um()},o.wj=function(e){return this.Bj().Um()},o.xj=function(e){return this.Bj().Um()},o.yj=function(){return this.Bj().Um()},o.zj=function(e){return this.Bj().Um()},o.Aj=function(){return this.Bj().Um()},o.Cj=function(e){return this.Bj().Um()},o.Dj=function(e,t){return this.Bj().Um()},o.Ej=function(){return this.Bj().Um()},o.Fj=function(){return this.Bj().Um()},o.Gj=function(e){return this.Bj().Um()},o.Hj=function(){return this.Bj().Um()},o.Fb=function(e){return this.wj(e)},o.Xb=function(e){return this.Wi(e,this.xj(e))},o.Hb=function(){return this.yj()},o.dd=function(e){return this.zj(e)},o.dc=function(){return this.Aj()},o.Ti=function(e,t){return unn(this,e,t)},o.Vi=function(e){return this.xj(e)},o.gd=function(e){return tT(this,e)},o.Mc=function(e){var t;return t=this.dd(e),t>=0?(this.gd(t),!0):!1},o.Xi=function(e,t){return this.Dj(e,this.Zi(e,t))},o.gc=function(){return this.Ej()},o.Pc=function(){return this.Fj()},o.Qc=function(e){return this.Gj(e)},o.Ib=function(){return this.Hj()},w(or,"DelegatingEList",2093),b(2094,2093,YWn),o.Ei=function(e,t){return Den(this,e,t)},o.Fi=function(e){return this.Ei(this.Ej(),e)},o.Gi=function(e,t){EHn(this,e,t)},o.Hi=function(e){lHn(this,e)},o.Li=function(){return!this.Mj()},o.$b=function(){X5(this)},o.Ij=function(e,t,i,r,c){return new ZOn(this,e,t,i,r,c)},o.Jj=function(e){it(this.jj(),e)},o.Kj=function(){return null},o.Lj=function(){return-1},o.jj=function(){return null},o.Mj=function(){return!1},o.Nj=function(e,t){return t},o.Oj=function(e,t){return t},o.Pj=function(){return!1},o.Qj=function(){return!this.Aj()},o.Ti=function(e,t){var i,r;return this.Pj()?(r=this.Qj(),i=unn(this,e,t),this.Jj(this.Ij(7,Y(t),i,e,r)),i):unn(this,e,t)},o.gd=function(e){var t,i,r,c;return this.Pj()?(i=null,r=this.Qj(),t=this.Ij(4,c=tT(this,e),null,e,r),this.Mj()&&c?(i=this.Oj(c,i),i?(i.nj(t),i.oj()):this.Jj(t)):i?(i.nj(t),i.oj()):this.Jj(t),c):(c=tT(this,e),this.Mj()&&c&&(i=this.Oj(c,null),i&&i.oj()),c)},o.Xi=function(e,t){return OUn(this,e,t)},w(g3,"DelegatingNotifyingListImpl",2094),b(152,1,Wy),o.nj=function(e){return GZ(this,e)},o.oj=function(){h$(this)},o.gj=function(){return this.d},o.Kj=function(){return null},o.Rj=function(){return null},o.hj=function(e){return-1},o.ij=function(){return pqn(this)},o.jj=function(){return null},o.kj=function(){return len(this)},o.lj=function(){return this.o<0?this.o<-2?-2-this.o-1:-1:this.o},o.Sj=function(){return!1},o.mj=function(e){var t,i,r,c,s,f,h,l,a,d,g;switch(this.d){case 1:case 2:switch(c=e.gj(),c){case 1:case 2:if(s=e.jj(),x(s)===x(this.jj())&&this.hj(null)==e.hj(null))return this.g=e.ij(),e.gj()==1&&(this.d=1),!0}case 4:{switch(c=e.gj(),c){case 4:{if(s=e.jj(),x(s)===x(this.jj())&&this.hj(null)==e.hj(null))return a=Qen(this),l=this.o<0?this.o<-2?-2-this.o-1:-1:this.o,f=e.lj(),this.d=6,g=new Pb(2),l<=f?(ve(g,this.n),ve(g,e.kj()),this.g=S(C(ye,1),_e,28,15,[this.o=l,f+1])):(ve(g,e.kj()),ve(g,this.n),this.g=S(C(ye,1),_e,28,15,[this.o=f,l])),this.n=g,a||(this.o=-2-this.o-1),!0;break}}break}case 6:{switch(c=e.gj(),c){case 4:{if(s=e.jj(),x(s)===x(this.jj())&&this.hj(null)==e.hj(null)){for(a=Qen(this),f=e.lj(),d=u(this.g,53),r=F(ye,_e,28,d.length+1,15,1),t=0;t<d.length&&(h=d[t],h<=f);)r[t++]=h,++f;for(i=u(this.n,15),i.bd(t,e.kj()),r[t]=f;++t<r.length;)r[t]=d[t-1];return this.g=r,a||(this.o=-2-r[0]),!0}break}}break}}return!1},o.Ib=function(){var e,t,i,r;switch(r=new ls(Xa(this.Rm)+"@"+(t=mt(this)>>>0,t.toString(16))),r.a+=" (eventType: ",this.d){case 1:{r.a+="SET";break}case 2:{r.a+="UNSET";break}case 3:{r.a+="ADD";break}case 5:{r.a+="ADD_MANY";break}case 4:{r.a+="REMOVE";break}case 6:{r.a+="REMOVE_MANY";break}case 7:{r.a+="MOVE";break}case 8:{r.a+="REMOVING_ADAPTER";break}case 9:{r.a+="RESOLVE";break}default:{CL(r,this.d);break}}if(rUn(this)&&(r.a+=", touch: true"),r.a+=", position: ",CL(r,this.o<0?this.o<-2?-2-this.o-1:-1:this.o),r.a+=", notifier: ",T6(r,this.jj()),r.a+=", feature: ",T6(r,this.Kj()),r.a+=", oldValue: ",T6(r,len(this)),r.a+=", newValue: ",this.d==6&&L(this.g,53)){for(i=u(this.g,53),r.a+="[",e=0;e<i.length;)r.a+=i[e],++e<i.length&&(r.a+=ur);r.a+="]"}else T6(r,pqn(this));return r.a+=", isTouch: ",ql(r,rUn(this)),r.a+=", wasSet: ",ql(r,Qen(this)),r.a+=")",r.a},o.d=0,o.e=0,o.f=0,o.j=0,o.k=0,o.o=0,o.p=0,w(g3,"NotificationImpl",152),b(1188,152,Wy,ZOn),o.Kj=function(){return this.a.Kj()},o.hj=function(e){return this.a.Lj()},o.jj=function(){return this.a.jj()},w(g3,"DelegatingNotifyingListImpl/1",1188),b(251,66,Mh,gvn,R1),o.Fc=function(e){return CKn(this,u(e,378))},o.nj=function(e){return CKn(this,e)},o.oj=function(){var e,t,i;for(e=0;e<this.i;++e)t=u(this.g[e],378),i=t.jj(),i!=null&&t.gj()!=-1&&u(i,94).xh(t)},o.aj=function(e){return F(ADe,Kn,378,e,0,1)},w(g3,"NotificationChainImpl",251),b(1524,93,hWn),o.uh=function(){return this.e},o.wh=function(){return(this.f&1)!=0},o.f=1,w(g3,"NotifierImpl",1524),b(2091,66,Mh),o.Ei=function(e,t){return LR(this,e,t)},o.Fi=function(e){return this.Ei(this.i,e)},o.Gi=function(e,t){Knn(this,e,t)},o.Hi=function(e){aR(this,e)},o.Li=function(){return!this.Mj()},o.$b=function(){me(this)},o.Ij=function(e,t,i,r,c){return new YOn(this,e,t,i,r,c)},o.Jj=function(e){it(this.jj(),e)},o.Kj=function(){return null},o.Lj=function(){return-1},o.jj=function(){return null},o.Mj=function(){return!1},o.Tj=function(){return!1},o.Nj=function(e,t){return t},o.Oj=function(e,t){return t},o.Pj=function(){return!1},o.Qj=function(){return this.i!=0},o.Ti=function(e,t){return k5(this,e,t)},o.gd=function(e){return dw(this,e)},o.Xi=function(e,t){return XUn(this,e,t)},o.Uj=function(e,t){return t},o.Vj=function(e,t){return t},o.Wj=function(e,t,i){return i},w(g3,"NotifyingListImpl",2091),b(1187,152,Wy,YOn),o.Kj=function(){return this.a.Kj()},o.hj=function(e){return this.a.Lj()},o.jj=function(){return this.a.jj()},w(g3,"NotifyingListImpl/1",1187),b(966,66,Mh,NSn),o.Hc=function(e){return this.i>10?((!this.b||this.c.j!=this.a)&&(this.b=new R6(this),this.a=this.j),sf(this.b,e)):km(this,e)},o.Yi=function(){return!0},o.a=0,w(or,"AbstractEList/1",966),b(302,77,SK,F0),w(or,"AbstractEList/BasicIndexOutOfBoundsException",302),b(37,1,Pi,ne),o.Nb=function(e){_i(this,e)},o.Xj=function(){if(this.i.j!=this.f)throw T(new Ko)},o.Yj=function(){return ue(this)},o.Ob=function(){return this.e!=this.i.gc()},o.Pb=function(){return this.Yj()},o.Qb=function(){A5(this)},o.e=0,o.f=0,o.g=-1,w(or,"AbstractEList/EIterator",37),b(286,37,Hh,kp,oD),o.Qb=function(){A5(this)},o.Rb=function(e){AKn(this,e)},o.Zj=function(){var e;try{return e=this.d.Xb(--this.e),this.Xj(),this.g=this.e,e}catch(t){throw t=Ot(t),L(t,77)?(this.Xj(),T(new nc)):T(t)}},o.$j=function(e){xBn(this,e)},o.Sb=function(){return this.e!=0},o.Tb=function(){return this.e},o.Ub=function(){return this.Zj()},o.Vb=function(){return this.e-1},o.Wb=function(e){this.$j(e)},w(or,"AbstractEList/EListIterator",286),b(355,37,Pi,yp),o.Yj=function(){return Tx(this)},o.Qb=function(){throw T(new Ie)},w(or,"AbstractEList/NonResolvingEIterator",355),b(398,286,Hh,T7,SV),o.Rb=function(e){throw T(new Ie)},o.Yj=function(){var e;try{return e=this.c.Vi(this.e),this.Xj(),this.g=this.e++,e}catch(t){throw t=Ot(t),L(t,77)?(this.Xj(),T(new nc)):T(t)}},o.Zj=function(){var e;try{return e=this.c.Vi(--this.e),this.Xj(),this.g=this.e,e}catch(t){throw t=Ot(t),L(t,77)?(this.Xj(),T(new nc)):T(t)}},o.Qb=function(){throw T(new Ie)},o.Wb=function(e){throw T(new Ie)},w(or,"AbstractEList/NonResolvingEListIterator",398),b(2080,70,ZWn),o.Ei=function(e,t){var i,r,c,s,f,h,l,a,d,g,p;if(c=t.gc(),c!=0){for(a=u(Un(this.a,4),129),d=a==null?0:a.length,p=d+c,r=V$(this,p),g=d-e,g>0&&Oc(a,e,r,e+c,g),l=t.Kc(),f=0;f<c;++f)h=l.Pb(),i=e+f,mN(r,i,rm(this,h));for(gm(this,r),s=0;s<c;++s)h=r[e],this.Mi(e,h),++e;return!0}else return++this.j,!1},o.Fi=function(e){var t,i,r,c,s,f,h,l,a;if(r=e.gc(),r!=0){for(l=(i=u(Un(this.a,4),129),i==null?0:i.length),a=l+r,t=V$(this,a),h=e.Kc(),s=l;s<a;++s)f=h.Pb(),mN(t,s,rm(this,f));for(gm(this,t),c=l;c<a;++c)f=t[c],this.Mi(c,f);return!0}else return++this.j,!1},o.Gi=function(e,t){var i,r,c,s;r=u(Un(this.a,4),129),c=r==null?0:r.length,i=V$(this,c+1),s=rm(this,t),e!=c&&Oc(r,e,i,e+1,c-e),$t(i,e,s),gm(this,i),this.Mi(e,t)},o.Hi=function(e){var t,i,r;r=(i=u(Un(this.a,4),129),i==null?0:i.length),t=V$(this,r+1),mN(t,r,rm(this,e)),gm(this,t),this.Mi(r,e)},o.Ii=function(){return new ENn(this)},o.Ji=function(){return new $In(this)},o.Ki=function(e){var t,i;if(i=(t=u(Un(this.a,4),129),t==null?0:t.length),e<0||e>i)throw T(new F0(e,i));return new yOn(this,e)},o.$b=function(){var e,t;++this.j,e=u(Un(this.a,4),129),t=e==null?0:e.length,gm(this,null),t$(this,t,e)},o.Hc=function(e){var t,i,r,c,s;if(t=u(Un(this.a,4),129),t!=null){if(e!=null){for(r=t,c=0,s=r.length;c<s;++c)if(i=r[c],rt(e,i))return!0}else for(r=t,c=0,s=r.length;c<s;++c)if(i=r[c],x(i)===x(e))return!0}return!1},o.Xb=function(e){var t,i;if(t=u(Un(this.a,4),129),i=t==null?0:t.length,e>=i)throw T(new F0(e,i));return t[e]},o.dd=function(e){var t,i,r;if(t=u(Un(this.a,4),129),t!=null){if(e!=null){for(i=0,r=t.length;i<r;++i)if(rt(e,t[i]))return i}else for(i=0,r=t.length;i<r;++i)if(x(t[i])===x(e))return i}return-1},o.dc=function(){return u(Un(this.a,4),129)==null},o.Kc=function(){return new jNn(this)},o.ed=function(){return new DIn(this)},o.fd=function(e){var t,i;if(i=(t=u(Un(this.a,4),129),t==null?0:t.length),e<0||e>i)throw T(new F0(e,i));return new kOn(this,e)},o.Ti=function(e,t){var i,r,c;if(i=_Kn(this),c=i==null?0:i.length,e>=c)throw T(new Or(vF+e+Cd+c));if(t>=c)throw T(new Or(kF+t+Cd+c));return r=i[t],e!=t&&(e<t?Oc(i,e,i,e+1,t-e):Oc(i,t+1,i,t,e-t),$t(i,e,r),gm(this,i)),r},o.Vi=function(e){return u(Un(this.a,4),129)[e]},o.gd=function(e){return bMe(this,e)},o.Xi=function(e,t){var i,r;return i=_Kn(this),r=i[e],mN(i,e,rm(this,t)),gm(this,i),r},o.gc=function(){var e;return e=u(Un(this.a,4),129),e==null?0:e.length},o.Pc=function(){var e,t,i;return e=u(Un(this.a,4),129),i=e==null?0:e.length,t=F(yU,TF,424,i,0,1),i>0&&Oc(e,0,t,0,i),t},o.Qc=function(e){var t,i,r;return t=u(Un(this.a,4),129),r=t==null?0:t.length,r>0&&(e.length<r&&(i=gk(wo(e).c,r),e=i),Oc(t,0,e,0,r)),e.length>r&&$t(e,r,null),e};var Ooe;w(or,"ArrayDelegatingEList",2080),b(1051,37,Pi,jNn),o.Xj=function(){if(this.b.j!=this.f||x(u(Un(this.b.a,4),129))!==x(this.a))throw T(new Ko)},o.Qb=function(){A5(this),this.a=u(Un(this.b.a,4),129)},w(or,"ArrayDelegatingEList/EIterator",1051),b(722,286,Hh,DIn,kOn),o.Xj=function(){if(this.b.j!=this.f||x(u(Un(this.b.a,4),129))!==x(this.a))throw T(new Ko)},o.$j=function(e){xBn(this,e),this.a=u(Un(this.b.a,4),129)},o.Qb=function(){A5(this),this.a=u(Un(this.b.a,4),129)},w(or,"ArrayDelegatingEList/EListIterator",722),b(1052,355,Pi,ENn),o.Xj=function(){if(this.b.j!=this.f||x(u(Un(this.b.a,4),129))!==x(this.a))throw T(new Ko)},w(or,"ArrayDelegatingEList/NonResolvingEIterator",1052),b(723,398,Hh,$In,yOn),o.Xj=function(){if(this.b.j!=this.f||x(u(Un(this.b.a,4),129))!==x(this.a))throw T(new Ko)},w(or,"ArrayDelegatingEList/NonResolvingEListIterator",723),b(615,302,SK,aN),w(or,"BasicEList/BasicIndexOutOfBoundsException",615),b(710,66,Mh,wX),o.bd=function(e,t){throw T(new Ie)},o.Fc=function(e){throw T(new Ie)},o.cd=function(e,t){throw T(new Ie)},o.Gc=function(e){throw T(new Ie)},o.$b=function(){throw T(new Ie)},o._i=function(e){throw T(new Ie)},o.Kc=function(){return this.Ii()},o.ed=function(){return this.Ji()},o.fd=function(e){return this.Ki(e)},o.Ti=function(e,t){throw T(new Ie)},o.Ui=function(e,t){throw T(new Ie)},o.gd=function(e){throw T(new Ie)},o.Mc=function(e){throw T(new Ie)},o.hd=function(e,t){throw T(new Ie)},w(or,"BasicEList/UnmodifiableEList",710),b(721,1,{3:1,20:1,16:1,15:1,61:1,597:1}),o.bd=function(e,t){a1e(this,e,u(t,44))},o.Fc=function(e){return cae(this,u(e,44))},o.Jc=function(e){qi(this,e)},o.Xb=function(e){return u(N(this.c,e),136)},o.Ti=function(e,t){return u(this.c.Ti(e,t),44)},o.Ui=function(e,t){d1e(this,e,u(t,44))},o.Lc=function(){return new Cn(null,new On(this,16))},o.gd=function(e){return u(this.c.gd(e),44)},o.hd=function(e,t){return Pwe(this,e,u(t,44))},o.jd=function(e){ud(this,e)},o.Nc=function(){return new On(this,16)},o.Oc=function(){return new Cn(null,new On(this,16))},o.cd=function(e,t){return this.c.cd(e,t)},o.Gc=function(e){return this.c.Gc(e)},o.$b=function(){this.c.$b()},o.Hc=function(e){return this.c.Hc(e)},o.Ic=function(e){return Ek(this.c,e)},o._j=function(){var e,t,i;if(this.d==null){for(this.d=F(Ddn,Hcn,66,2*this.f+1,0,1),i=this.e,this.f=0,t=this.c.Kc();t.e!=t.i.gc();)e=u(t.Yj(),136),uS(this,e);this.e=i}},o.Fb=function(e){return sPn(this,e)},o.Hb=function(){return GQ(this.c)},o.dd=function(e){return this.c.dd(e)},o.ak=function(){this.c=new dyn(this)},o.dc=function(){return this.f==0},o.Kc=function(){return this.c.Kc()},o.ed=function(){return this.c.ed()},o.fd=function(e){return this.c.fd(e)},o.bk=function(){return rk(this)},o.ck=function(e,t,i){return new yPn(e,t,i)},o.dk=function(){return new pvn},o.Mc=function(e){return V$n(this,e)},o.gc=function(){return this.f},o.kd=function(e,t){return new Jl(this.c,e,t)},o.Pc=function(){return this.c.Pc()},o.Qc=function(e){return this.c.Qc(e)},o.Ib=function(){return BY(this.c)},o.e=0,o.f=0,w(or,"BasicEMap",721),b(1046,66,Mh,dyn),o.Mi=function(e,t){Ufe(this,u(t,136))},o.Pi=function(e,t,i){var r;++(r=this,u(t,136),r).a.e},o.Qi=function(e,t){Gfe(this,u(t,136))},o.Ri=function(e,t,i){U1e(this,u(t,136),u(i,136))},o.Oi=function(e,t){_xn(this.a)},w(or,"BasicEMap/1",1046),b(1047,66,Mh,pvn),o.aj=function(e){return F(LDe,nJn,621,e,0,1)},w(or,"BasicEMap/2",1047),b(1048,Ff,Nu,byn),o.$b=function(){this.a.c.$b()},o.Hc=function(e){return wx(this.a,e)},o.Kc=function(){return this.a.f==0?(m4(),aE.a):new Jjn(this.a)},o.Mc=function(e){var t;return t=this.a.f,VC(this.a,e),this.a.f!=t},o.gc=function(){return this.a.f},w(or,"BasicEMap/3",1048),b(1049,31,pw,wyn),o.$b=function(){this.a.c.$b()},o.Hc=function(e){return Rqn(this.a,e)},o.Kc=function(){return this.a.f==0?(m4(),aE.a):new Qjn(this.a)},o.gc=function(){return this.a.f},w(or,"BasicEMap/4",1049),b(1050,Ff,Nu,gyn),o.$b=function(){this.a.c.$b()},o.Hc=function(e){var t,i,r,c,s,f,h,l,a;if(this.a.f>0&&L(e,44)&&(this.a._j(),l=u(e,44),h=l.ld(),c=h==null?0:mt(h),s=aV(this.a,c),t=this.a.d[s],t)){for(i=u(t.g,379),a=t.i,f=0;f<a;++f)if(r=i[f],r.Bi()==c&&r.Fb(l))return!0}return!1},o.Kc=function(){return this.a.f==0?(m4(),aE.a):new MD(this.a)},o.Mc=function(e){return PHn(this,e)},o.gc=function(){return this.a.f},w(or,"BasicEMap/5",1050),b(622,1,Pi,MD),o.Nb=function(e){_i(this,e)},o.Ob=function(){return this.b!=-1},o.Pb=function(){var e;if(this.f.e!=this.c)throw T(new Ko);if(this.b==-1)throw T(new nc);return this.d=this.a,this.e=this.b,bFn(this),e=u(this.f.d[this.d].g[this.e],136),this.ek(e)},o.Qb=function(){if(this.f.e!=this.c)throw T(new Ko);if(this.e==-1)throw T(new Mu);this.f.c.Mc(N(this.f.d[this.d],this.e)),this.c=this.f.e,this.e=-1,this.a==this.d&&this.b!=-1&&--this.b},o.ek=function(e){return e},o.a=0,o.b=-1,o.c=0,o.d=0,o.e=0,w(or,"BasicEMap/BasicEMapIterator",622),b(1044,622,Pi,Jjn),o.ek=function(e){return e.ld()},w(or,"BasicEMap/BasicEMapKeyIterator",1044),b(1045,622,Pi,Qjn),o.ek=function(e){return e.md()},w(or,"BasicEMap/BasicEMapValueIterator",1045),b(1043,1,Xb,pyn),o.wc=function(e){f5(this,e)},o.yc=function(e,t,i){return hx(this,e,t,i)},o.$b=function(){this.a.c.$b()},o._b=function(e){return OTn(this,e)},o.uc=function(e){return Rqn(this.a,e)},o.vc=function(){return d4e(this.a)},o.Fb=function(e){return sPn(this.a,e)},o.xc=function(e){return gf(this.a,e)},o.Hb=function(){return GQ(this.a.c)},o.dc=function(){return this.a.f==0},o.ec=function(){return l4e(this.a)},o.zc=function(e,t){return zk(this.a,e,t)},o.Bc=function(e){return VC(this.a,e)},o.gc=function(){return this.a.f},o.Ib=function(){return BY(this.a.c)},o.Cc=function(){return a4e(this.a)},w(or,"BasicEMap/DelegatingMap",1043),b(621,1,{44:1,136:1,621:1},yPn),o.Fb=function(e){var t;return L(e,44)?(t=u(e,44),(this.b!=null?rt(this.b,t.ld()):x(this.b)===x(t.ld()))&&(this.c!=null?rt(this.c,t.md()):x(this.c)===x(t.md()))):!1},o.Bi=function(){return this.a},o.ld=function(){return this.b},o.md=function(){return this.c},o.Hb=function(){return this.a^(this.c==null?0:mt(this.c))},o.Ci=function(e){this.a=e},o.Di=function(e){throw T(new Ga)},o.nd=function(e){var t;return t=this.c,this.c=e,t},o.Ib=function(){return this.b+"->"+this.c},o.a=0;var LDe=w(or,"BasicEMap/EntryImpl",621);b(546,1,{},ME),w(or,"BasicEMap/View",546);var aE;b(783,1,{}),o.Fb=function(e){return Vnn((Ln(),sr),e)},o.Hb=function(){return iY((Ln(),sr))},o.Ib=function(){return ca((Ln(),sr))},w(or,"ECollections/BasicEmptyUnmodifiableEList",783),b(1348,1,Hh,mvn),o.Nb=function(e){_i(this,e)},o.Rb=function(e){throw T(new Ie)},o.Ob=function(){return!1},o.Sb=function(){return!1},o.Pb=function(){throw T(new nc)},o.Tb=function(){return 0},o.Ub=function(){throw T(new nc)},o.Vb=function(){return-1},o.Qb=function(){throw T(new Ie)},o.Wb=function(e){throw T(new Ie)},w(or,"ECollections/BasicEmptyUnmodifiableEList/1",1348),b(1346,783,{20:1,16:1,15:1,61:1},ujn),o.bd=function(e,t){yEn()},o.Fc=function(e){return jEn()},o.cd=function(e,t){return EEn()},o.Gc=function(e){return MEn()},o.$b=function(){TEn()},o.Hc=function(e){return!1},o.Ic=function(e){return!1},o.Jc=function(e){qi(this,e)},o.Xb=function(e){return mX((Ln(),e)),null},o.dd=function(e){return-1},o.dc=function(){return!0},o.Kc=function(){return this.a},o.ed=function(){return this.a},o.fd=function(e){return this.a},o.Ti=function(e,t){return CEn()},o.Ui=function(e,t){SEn()},o.Lc=function(){return new Cn(null,new On(this,16))},o.gd=function(e){return PEn()},o.Mc=function(e){return IEn()},o.hd=function(e,t){return OEn()},o.gc=function(){return 0},o.jd=function(e){ud(this,e)},o.Nc=function(){return new On(this,16)},o.Oc=function(){return new Cn(null,new On(this,16))},o.kd=function(e,t){return Ln(),new Jl(sr,e,t)},o.Pc=function(){return wW((Ln(),sr))},o.Qc=function(e){return Ln(),S5(sr,e)},w(or,"ECollections/EmptyUnmodifiableEList",1346),b(1347,783,{20:1,16:1,15:1,61:1,597:1},ojn),o.bd=function(e,t){yEn()},o.Fc=function(e){return jEn()},o.cd=function(e,t){return EEn()},o.Gc=function(e){return MEn()},o.$b=function(){TEn()},o.Hc=function(e){return!1},o.Ic=function(e){return!1},o.Jc=function(e){qi(this,e)},o.Xb=function(e){return mX((Ln(),e)),null},o.dd=function(e){return-1},o.dc=function(){return!0},o.Kc=function(){return this.a},o.ed=function(){return this.a},o.fd=function(e){return this.a},o.Ti=function(e,t){return CEn()},o.Ui=function(e,t){SEn()},o.Lc=function(){return new Cn(null,new On(this,16))},o.gd=function(e){return PEn()},o.Mc=function(e){return IEn()},o.hd=function(e,t){return OEn()},o.gc=function(){return 0},o.jd=function(e){ud(this,e)},o.Nc=function(){return new On(this,16)},o.Oc=function(){return new Cn(null,new On(this,16))},o.kd=function(e,t){return Ln(),new Jl(sr,e,t)},o.Pc=function(){return wW((Ln(),sr))},o.Qc=function(e){return Ln(),S5(sr,e)},o.bk=function(){return Ln(),Ln(),Wh},w(or,"ECollections/EmptyUnmodifiableEMap",1347);var xdn=Dt(or,"Enumerator"),yA;b(288,1,{288:1},jR),o.Fb=function(e){var t;return this===e?!0:L(e,288)?(t=u(e,288),this.f==t.f&&U0e(this.i,t.i)&&WN(this.a,this.f&256?t.f&256?t.a:null:t.f&256?null:t.a)&&WN(this.d,t.d)&&WN(this.g,t.g)&&WN(this.e,t.e)&&b9e(this,t)):!1},o.Hb=function(){return this.f},o.Ib=function(){return gUn(this)},o.f=0;var Aoe=0,Loe=0,Noe=0,Doe=0,Rdn=0,Kdn=0,Bdn=0,Fdn=0,_dn=0,$oe,L9=0,N9=0,xoe=0,Roe=0,jA,Hdn;w(or,"URI",288),b(1121,45,n2,sjn),o.zc=function(e,t){return u(Lr(this,Ae(e),u(t,288)),288)},w(or,"URI/URICache",1121),b(506,66,Mh,avn,sT),o.Si=function(){return!0},w(or,"UniqueEList",506),b(590,63,Il,eC),w(or,"WrappedException",590);var Ue=Dt(ts,iJn),Zw=Dt(ts,rJn),ku=Dt(ts,cJn),ng=Dt(ts,uJn),Mf=Dt(ts,oJn),Ss=Dt(ts,"EClass"),jU=Dt(ts,"EDataType"),Koe;b(1233,45,n2,fjn),o.xc=function(e){return Si(e)?Dc(this,e):Fr(wr(this.f,e))},w(ts,"EDataType/Internal/ConversionDelegate/Factory/Registry/Impl",1233);var EA=Dt(ts,"EEnum"),Kl=Dt(ts,sJn),jr=Dt(ts,fJn),Ps=Dt(ts,hJn),Is,y0=Dt(ts,lJn),eg=Dt(ts,aJn);b(1042,1,{},lvn),o.Ib=function(){return"NIL"},w(ts,"EStructuralFeature/Internal/DynamicValueHolder/1",1042);var Boe;b(1041,45,n2,hjn),o.xc=function(e){return Si(e)?Dc(this,e):Fr(wr(this.f,e))},w(ts,"EStructuralFeature/Internal/SettingDelegate/Factory/Registry/Impl",1041);var fu=Dt(ts,dJn),B3=Dt(ts,"EValidator/PatternMatcher"),qdn,Udn,Hn,S1,tg,Na,Foe,_oe,Hoe,Da,P1,$a,j0,Zf,qoe,Uoe,Os,I1,Goe,O1,ig,U2,ar,zoe,Xoe,E0,MA=Dt(Ct,"FeatureMap/Entry");b(545,1,{76:1},TM),o.Lk=function(){return this.a},o.md=function(){return this.b},w(qn,"BasicEObjectImpl/1",545),b(1040,1,CF,LTn),o.Fk=function(e){return YD(this.a,this.b,e)},o.Qj=function(){return bAn(this.a,this.b)},o.Wb=function(e){iJ(this.a,this.b,e)},o.Gk=function(){_we(this.a,this.b)},w(qn,"BasicEObjectImpl/4",1040),b(2081,1,{114:1}),o.Mk=function(e){this.e=e==0?Voe:F(ki,Kn,1,e,5,1)},o.li=function(e){return this.e[e]},o.mi=function(e,t){this.e[e]=t},o.ni=function(e){this.e[e]=null},o.Nk=function(){return this.c},o.Ok=function(){throw T(new Ie)},o.Pk=function(){throw T(new Ie)},o.Qk=function(){return this.d},o.Rk=function(){return this.e!=null},o.Sk=function(e){this.c=e},o.Tk=function(e){throw T(new Ie)},o.Uk=function(e){throw T(new Ie)},o.Vk=function(e){this.d=e};var Voe;w(qn,"BasicEObjectImpl/EPropertiesHolderBaseImpl",2081),b(192,2081,{114:1},uf),o.Ok=function(){return this.a},o.Pk=function(){return this.b},o.Tk=function(e){this.a=e},o.Uk=function(e){this.b=e},w(qn,"BasicEObjectImpl/EPropertiesHolderImpl",192),b(516,99,bWn,TE),o.uh=function(){return this.f},o.zh=function(){return this.k},o.Bh=function(e,t){this.g=e,this.i=t},o.Dh=function(){return this.j&2?this.$h().Nk():this.ii()},o.Fh=function(){return this.i},o.wh=function(){return(this.j&1)!=0},o.Ph=function(){return this.g},o.Vh=function(){return(this.j&4)!=0},o.$h=function(){return!this.k&&(this.k=new uf),this.k},o.ci=function(e){this.$h().Sk(e),e?this.j|=2:this.j&=-3},o.ei=function(e){this.$h().Uk(e),e?this.j|=4:this.j&=-5},o.ii=function(){return(G1(),Hn).S},o.i=0,o.j=1,w(qn,"EObjectImpl",516),b(798,516,{110:1,94:1,93:1,58:1,114:1,54:1,99:1},YV),o.li=function(e){return this.e[e]},o.mi=function(e,t){this.e[e]=t},o.ni=function(e){this.e[e]=null},o.Dh=function(){return this.d},o.Ih=function(e){return At(this.d,e)},o.Kh=function(){return this.d},o.Oh=function(){return this.e!=null},o.$h=function(){return!this.k&&(this.k=new vvn),this.k},o.ci=function(e){this.d=e},o.hi=function(){var e;return this.e==null&&(e=se(this.d),this.e=e==0?Woe:F(ki,Kn,1,e,5,1)),this},o.ji=function(){return 0};var Woe;w(qn,"DynamicEObjectImpl",798),b(1522,798,{110:1,44:1,94:1,93:1,136:1,58:1,114:1,54:1,99:1},zPn),o.Fb=function(e){return this===e},o.Hb=function(){return lb(this)},o.ci=function(e){this.d=e,this.b=oy(e,"key"),this.c=oy(e,g8)},o.Bi=function(){var e;return this.a==-1&&(e=l$(this,this.b),this.a=e==null?0:mt(e)),this.a},o.ld=function(){return l$(this,this.b)},o.md=function(){return l$(this,this.c)},o.Ci=function(e){this.a=e},o.Di=function(e){iJ(this,this.b,e)},o.nd=function(e){var t;return t=l$(this,this.c),iJ(this,this.c,e),t},o.a=0,w(qn,"DynamicEObjectImpl/BasicEMapEntry",1522),b(1523,1,{114:1},vvn),o.Mk=function(e){throw T(new Ie)},o.li=function(e){throw T(new Ie)},o.mi=function(e,t){throw T(new Ie)},o.ni=function(e){throw T(new Ie)},o.Nk=function(){throw T(new Ie)},o.Ok=function(){return this.a},o.Pk=function(){return this.b},o.Qk=function(){return this.c},o.Rk=function(){throw T(new Ie)},o.Sk=function(e){throw T(new Ie)},o.Tk=function(e){this.a=e},o.Uk=function(e){this.b=e},o.Vk=function(e){this.c=e},w(qn,"DynamicEObjectImpl/DynamicEPropertiesHolderImpl",1523),b(519,158,{110:1,94:1,93:1,598:1,155:1,58:1,114:1,54:1,99:1,519:1,158:1,119:1,120:1},eG),o.Ah=function(e){return PZ(this,e)},o.Lh=function(e,t,i){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab;case 1:return this.d;case 2:return i?(!this.b&&(this.b=new lo((An(),ar),pc,this)),this.b):(!this.b&&(this.b=new lo((An(),ar),pc,this)),rk(this.b));case 3:return vAn(this);case 4:return!this.a&&(this.a=new ti(Aa,this,4)),this.a;case 5:return!this.c&&(this.c=new Eg(Aa,this,5)),this.c}return zo(this,e-se((An(),S1)),$n((r=u(Un(this,16),29),r||S1),e),t,i)},o.Sh=function(e,t,i){var r,c,s;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Xc(this.Ab,e,i);case 3:return this.Cb&&(i=(c=this.Db>>16,c>=0?PZ(this,i):this.Cb.Th(this,-1-c,null,i))),bW(this,u(e,155),i)}return s=u($n((r=u(Un(this,16),29),r||(An(),S1)),t),69),s.wk().zk(this,iu(this),t-se((An(),S1)),e,i)},o.Uh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),cr(this.Ab,e,i);case 2:return!this.b&&(this.b=new lo((An(),ar),pc,this)),UM(this.b,e,i);case 3:return bW(this,null,i);case 4:return!this.a&&(this.a=new ti(Aa,this,4)),cr(this.a,e,i)}return c=u($n((r=u(Un(this,16),29),r||(An(),S1)),t),69),c.wk().Ak(this,iu(this),t-se((An(),S1)),e,i)},o.Wh=function(e){var t;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!!vAn(this);case 4:return!!this.a&&this.a.i!=0;case 5:return!!this.c&&this.c.i!=0}return Uo(this,e-se((An(),S1)),$n((t=u(Un(this,16),29),t||S1),e))},o.bi=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab),!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Kt(this.Ab,u(t,16));return;case 1:A0e(this,Ae(t));return;case 2:!this.b&&(this.b=new lo((An(),ar),pc,this)),CC(this.b,t);return;case 3:rqn(this,u(t,155));return;case 4:!this.a&&(this.a=new ti(Aa,this,4)),me(this.a),!this.a&&(this.a=new ti(Aa,this,4)),Kt(this.a,u(t,16));return;case 5:!this.c&&(this.c=new Eg(Aa,this,5)),me(this.c),!this.c&&(this.c=new Eg(Aa,this,5)),Kt(this.c,u(t,16));return}Jo(this,e-se((An(),S1)),$n((i=u(Un(this,16),29),i||S1),e),t)},o.ii=function(){return An(),S1},o.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab);return;case 1:IQ(this,null);return;case 2:!this.b&&(this.b=new lo((An(),ar),pc,this)),this.b.c.$b();return;case 3:rqn(this,null);return;case 4:!this.a&&(this.a=new ti(Aa,this,4)),me(this.a);return;case 5:!this.c&&(this.c=new Eg(Aa,this,5)),me(this.c);return}Wo(this,e-se((An(),S1)),$n((t=u(Un(this,16),29),t||S1),e))},o.Ib=function(){return sKn(this)},o.d=null,w(qn,"EAnnotationImpl",519),b(141,721,qcn,Ou),o.Gi=function(e,t){Wle(this,e,u(t,44))},o.Wk=function(e,t){return Qae(this,u(e,44),t)},o.$i=function(e){return u(u(this.c,71).$i(e),136)},o.Ii=function(){return u(this.c,71).Ii()},o.Ji=function(){return u(this.c,71).Ji()},o.Ki=function(e){return u(this.c,71).Ki(e)},o.Xk=function(e,t){return UM(this,e,t)},o.Fk=function(e){return u(this.c,79).Fk(e)},o.ak=function(){},o.Qj=function(){return u(this.c,79).Qj()},o.ck=function(e,t,i){var r;return r=u(jo(this.b).wi().si(this.b),136),r.Ci(e),r.Di(t),r.nd(i),r},o.dk=function(){return new RG(this)},o.Wb=function(e){CC(this,e)},o.Gk=function(){u(this.c,79).Gk()},w(Ct,"EcoreEMap",141),b(165,141,qcn,lo),o._j=function(){var e,t,i,r,c,s;if(this.d==null){for(s=F(Ddn,Hcn,66,2*this.f+1,0,1),i=this.c.Kc();i.e!=i.i.gc();)t=u(i.Yj(),136),r=t.Bi(),c=(r&et)%s.length,e=s[c],!e&&(e=s[c]=new RG(this)),e.Fc(t);this.d=s}},w(qn,"EAnnotationImpl/1",165),b(292,448,{110:1,94:1,93:1,155:1,197:1,58:1,114:1,481:1,54:1,99:1,158:1,292:1,119:1,120:1}),o.Lh=function(e,t,i){var r,c;switch(e){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab;case 1:return this.zb;case 2:return _n(),!!(this.Bb&256);case 3:return _n(),!!(this.Bb&512);case 4:return Y(this.s);case 5:return Y(this.t);case 6:return _n(),!!this.Jk();case 7:return _n(),c=this.s,c>=1;case 8:return t?gs(this):this.r;case 9:return this.q}return zo(this,e-se(this.ii()),$n((r=u(Un(this,16),29),r||this.ii()),e),t,i)},o.Uh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),cr(this.Ab,e,i);case 9:return hD(this,i)}return c=u($n((r=u(Un(this,16),29),r||this.ii()),t),69),c.wk().Ak(this,iu(this),t-se(this.ii()),e,i)},o.Wh=function(e){var t,i;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.Jk();case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&vb(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&vb(this.q).i==0)}return Uo(this,e-se(this.ii()),$n((t=u(Un(this,16),29),t||this.ii()),e))},o.bi=function(e,t){var i,r;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab),!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Kt(this.Ab,u(t,16));return;case 1:this.ui(Ae(t));return;case 2:c1(this,on(un(t)));return;case 3:u1(this,on(un(t)));return;case 4:e1(this,u(t,17).a);return;case 5:this.Zk(u(t,17).a);return;case 8:ad(this,u(t,142));return;case 9:r=Kf(this,u(t,89),null),r&&r.oj();return}Jo(this,e-se(this.ii()),$n((i=u(Un(this,16),29),i||this.ii()),e),t)},o.ii=function(){return An(),Xoe},o.ki=function(e){var t,i;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab);return;case 1:this.ui(null);return;case 2:c1(this,!0);return;case 3:u1(this,!0);return;case 4:e1(this,0);return;case 5:this.Zk(1);return;case 8:ad(this,null);return;case 9:i=Kf(this,null,null),i&&i.oj();return}Wo(this,e-se(this.ii()),$n((t=u(Un(this,16),29),t||this.ii()),e))},o.pi=function(){gs(this),this.Bb|=1},o.Hk=function(){return gs(this)},o.Ik=function(){return this.t},o.Jk=function(){var e;return e=this.t,e>1||e==-1},o.Si=function(){return(this.Bb&512)!=0},o.Yk=function(e,t){return jY(this,e,t)},o.Zk=function(e){Z0(this,e)},o.Ib=function(){return Bnn(this)},o.s=0,o.t=1,w(qn,"ETypedElementImpl",292),b(462,292,{110:1,94:1,93:1,155:1,197:1,58:1,179:1,69:1,114:1,481:1,54:1,99:1,158:1,462:1,292:1,119:1,120:1,692:1}),o.Ah=function(e){return QBn(this,e)},o.Lh=function(e,t,i){var r,c;switch(e){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab;case 1:return this.zb;case 2:return _n(),!!(this.Bb&256);case 3:return _n(),!!(this.Bb&512);case 4:return Y(this.s);case 5:return Y(this.t);case 6:return _n(),!!this.Jk();case 7:return _n(),c=this.s,c>=1;case 8:return t?gs(this):this.r;case 9:return this.q;case 10:return _n(),!!(this.Bb&Gs);case 11:return _n(),!!(this.Bb&Cw);case 12:return _n(),!!(this.Bb&vw);case 13:return this.j;case 14:return Cm(this);case 15:return _n(),!!(this.Bb&$u);case 16:return _n(),!!(this.Bb&wh);case 17:return G0(this)}return zo(this,e-se(this.ii()),$n((r=u(Un(this,16),29),r||this.ii()),e),t,i)},o.Sh=function(e,t,i){var r,c,s;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Xc(this.Ab,e,i);case 17:return this.Cb&&(i=(c=this.Db>>16,c>=0?QBn(this,i):this.Cb.Th(this,-1-c,null,i))),Po(this,e,17,i)}return s=u($n((r=u(Un(this,16),29),r||this.ii()),t),69),s.wk().zk(this,iu(this),t-se(this.ii()),e,i)},o.Uh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),cr(this.Ab,e,i);case 9:return hD(this,i);case 17:return Po(this,null,17,i)}return c=u($n((r=u(Un(this,16),29),r||this.ii()),t),69),c.wk().Ak(this,iu(this),t-se(this.ii()),e,i)},o.Wh=function(e){var t,i;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.Jk();case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&vb(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&vb(this.q).i==0);case 10:return(this.Bb&Gs)==0;case 11:return(this.Bb&Cw)!=0;case 12:return(this.Bb&vw)!=0;case 13:return this.j!=null;case 14:return Cm(this)!=null;case 15:return(this.Bb&$u)!=0;case 16:return(this.Bb&wh)!=0;case 17:return!!G0(this)}return Uo(this,e-se(this.ii()),$n((t=u(Un(this,16),29),t||this.ii()),e))},o.bi=function(e,t){var i,r;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab),!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Kt(this.Ab,u(t,16));return;case 1:RD(this,Ae(t));return;case 2:c1(this,on(un(t)));return;case 3:u1(this,on(un(t)));return;case 4:e1(this,u(t,17).a);return;case 5:this.Zk(u(t,17).a);return;case 8:ad(this,u(t,142));return;case 9:r=Kf(this,u(t,89),null),r&&r.oj();return;case 10:fm(this,on(un(t)));return;case 11:am(this,on(un(t)));return;case 12:hm(this,on(un(t)));return;case 13:bX(this,Ae(t));return;case 15:lm(this,on(un(t)));return;case 16:dm(this,on(un(t)));return}Jo(this,e-se(this.ii()),$n((i=u(Un(this,16),29),i||this.ii()),e),t)},o.ii=function(){return An(),zoe},o.ki=function(e){var t,i;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab);return;case 1:L(this.Cb,90)&&hw(Zu(u(this.Cb,90)),4),zc(this,null);return;case 2:c1(this,!0);return;case 3:u1(this,!0);return;case 4:e1(this,0);return;case 5:this.Zk(1);return;case 8:ad(this,null);return;case 9:i=Kf(this,null,null),i&&i.oj();return;case 10:fm(this,!0);return;case 11:am(this,!1);return;case 12:hm(this,!1);return;case 13:this.i=null,kC(this,null);return;case 15:lm(this,!1);return;case 16:dm(this,!1);return}Wo(this,e-se(this.ii()),$n((t=u(Un(this,16),29),t||this.ii()),e))},o.pi=function(){I4(Nr((Lu(),zi),this)),gs(this),this.Bb|=1},o.pk=function(){return this.f},o.ik=function(){return Cm(this)},o.qk=function(){return G0(this)},o.uk=function(){return null},o.$k=function(){return this.k},o.Lj=function(){return this.n},o.vk=function(){return bS(this)},o.wk=function(){var e,t,i,r,c,s,f,h,l;return this.p||(i=G0(this),(i.i==null&&bh(i),i.i).length,r=this.uk(),r&&se(G0(r)),c=gs(this),f=c.kk(),e=f?f.i&1?f==so?Gt:f==ye?Gi:f==cg?sv:f==Ii?si:f==Ra?t0:f==V2?i0:f==Ru?p3:S8:f:null,t=Cm(this),h=c.ik(),G5e(this),this.Bb&wh&&((s=$Z((Lu(),zi),i))&&s!=this||(s=$p(Nr(zi,this))))?this.p=new DTn(this,s):this.Jk()?this.al()?r?this.Bb&$u?e?this.bl()?this.p=new Za(47,e,this,r):this.p=new Za(5,e,this,r):this.bl()?this.p=new rd(46,this,r):this.p=new rd(4,this,r):e?this.bl()?this.p=new Za(49,e,this,r):this.p=new Za(7,e,this,r):this.bl()?this.p=new rd(48,this,r):this.p=new rd(6,this,r):this.Bb&$u?e?e==Id?this.p=new Xl(50,Poe,this):this.bl()?this.p=new Xl(43,e,this):this.p=new Xl(1,e,this):this.bl()?this.p=new Wl(42,this):this.p=new Wl(0,this):e?e==Id?this.p=new Xl(41,Poe,this):this.bl()?this.p=new Xl(45,e,this):this.p=new Xl(3,e,this):this.bl()?this.p=new Wl(44,this):this.p=new Wl(2,this):L(c,156)?e==MA?this.p=new Wl(40,this):this.Bb&512?this.Bb&$u?e?this.p=new Xl(9,e,this):this.p=new Wl(8,this):e?this.p=new Xl(11,e,this):this.p=new Wl(10,this):this.Bb&$u?e?this.p=new Xl(13,e,this):this.p=new Wl(12,this):e?this.p=new Xl(15,e,this):this.p=new Wl(14,this):r?(l=r.t,l>1||l==-1?this.bl()?this.Bb&$u?e?this.p=new Za(25,e,this,r):this.p=new rd(24,this,r):e?this.p=new Za(27,e,this,r):this.p=new rd(26,this,r):this.Bb&$u?e?this.p=new Za(29,e,this,r):this.p=new rd(28,this,r):e?this.p=new Za(31,e,this,r):this.p=new rd(30,this,r):this.bl()?this.Bb&$u?e?this.p=new Za(33,e,this,r):this.p=new rd(32,this,r):e?this.p=new Za(35,e,this,r):this.p=new rd(34,this,r):this.Bb&$u?e?this.p=new Za(37,e,this,r):this.p=new rd(36,this,r):e?this.p=new Za(39,e,this,r):this.p=new rd(38,this,r)):this.bl()?this.Bb&$u?e?this.p=new Xl(17,e,this):this.p=new Wl(16,this):e?this.p=new Xl(19,e,this):this.p=new Wl(18,this):this.Bb&$u?e?this.p=new Xl(21,e,this):this.p=new Wl(20,this):e?this.p=new Xl(23,e,this):this.p=new Wl(22,this):this._k()?this.bl()?this.p=new jPn(u(c,29),this,r):this.p=new eJ(u(c,29),this,r):L(c,156)?e==MA?this.p=new Wl(40,this):this.Bb&$u?e?this.p=new yIn(t,h,this,(gx(),f==ye?Qdn:f==so?zdn:f==Ra?Ydn:f==cg?Jdn:f==Ii?Wdn:f==V2?Zdn:f==Ru?Xdn:f==fs?Vdn:TU)):this.p=new DOn(u(c,156),t,h,this):e?this.p=new kIn(t,h,this,(gx(),f==ye?Qdn:f==so?zdn:f==Ra?Ydn:f==cg?Jdn:f==Ii?Wdn:f==V2?Zdn:f==Ru?Xdn:f==fs?Vdn:TU)):this.p=new NOn(u(c,156),t,h,this):this.al()?r?this.Bb&$u?this.bl()?this.p=new MPn(u(c,29),this,r):this.p=new FV(u(c,29),this,r):this.bl()?this.p=new EPn(u(c,29),this,r):this.p=new HN(u(c,29),this,r):this.Bb&$u?this.bl()?this.p=new kSn(u(c,29),this):this.p=new nV(u(c,29),this):this.bl()?this.p=new vSn(u(c,29),this):this.p=new IN(u(c,29),this):this.bl()?r?this.Bb&$u?this.p=new TPn(u(c,29),this,r):this.p=new KV(u(c,29),this,r):this.Bb&$u?this.p=new ySn(u(c,29),this):this.p=new eV(u(c,29),this):r?this.Bb&$u?this.p=new CPn(u(c,29),this,r):this.p=new BV(u(c,29),this,r):this.Bb&$u?this.p=new jSn(u(c,29),this):this.p=new oT(u(c,29),this)),this.p},o.rk=function(){return(this.Bb&Gs)!=0},o._k=function(){return!1},o.al=function(){return!1},o.sk=function(){return(this.Bb&wh)!=0},o.xk=function(){return a$(this)},o.bl=function(){return!1},o.tk=function(){return(this.Bb&$u)!=0},o.cl=function(e){this.k=e},o.ui=function(e){RD(this,e)},o.Ib=function(){return $S(this)},o.e=!1,o.n=0,w(qn,"EStructuralFeatureImpl",462),b(331,462,{110:1,94:1,93:1,35:1,155:1,197:1,58:1,179:1,69:1,114:1,481:1,54:1,99:1,331:1,158:1,462:1,292:1,119:1,120:1,692:1},fL),o.Lh=function(e,t,i){var r,c;switch(e){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab;case 1:return this.zb;case 2:return _n(),!!(this.Bb&256);case 3:return _n(),!!(this.Bb&512);case 4:return Y(this.s);case 5:return Y(this.t);case 6:return _n(),!!Nnn(this);case 7:return _n(),c=this.s,c>=1;case 8:return t?gs(this):this.r;case 9:return this.q;case 10:return _n(),!!(this.Bb&Gs);case 11:return _n(),!!(this.Bb&Cw);case 12:return _n(),!!(this.Bb&vw);case 13:return this.j;case 14:return Cm(this);case 15:return _n(),!!(this.Bb&$u);case 16:return _n(),!!(this.Bb&wh);case 17:return G0(this);case 18:return _n(),!!(this.Bb&kc);case 19:return t?x$(this):RNn(this)}return zo(this,e-se((An(),tg)),$n((r=u(Un(this,16),29),r||tg),e),t,i)},o.Wh=function(e){var t,i;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 Nnn(this);case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&vb(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&vb(this.q).i==0);case 10:return(this.Bb&Gs)==0;case 11:return(this.Bb&Cw)!=0;case 12:return(this.Bb&vw)!=0;case 13:return this.j!=null;case 14:return Cm(this)!=null;case 15:return(this.Bb&$u)!=0;case 16:return(this.Bb&wh)!=0;case 17:return!!G0(this);case 18:return(this.Bb&kc)!=0;case 19:return!!RNn(this)}return Uo(this,e-se((An(),tg)),$n((t=u(Un(this,16),29),t||tg),e))},o.bi=function(e,t){var i,r;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab),!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Kt(this.Ab,u(t,16));return;case 1:RD(this,Ae(t));return;case 2:c1(this,on(un(t)));return;case 3:u1(this,on(un(t)));return;case 4:e1(this,u(t,17).a);return;case 5:nEn(this,u(t,17).a);return;case 8:ad(this,u(t,142));return;case 9:r=Kf(this,u(t,89),null),r&&r.oj();return;case 10:fm(this,on(un(t)));return;case 11:am(this,on(un(t)));return;case 12:hm(this,on(un(t)));return;case 13:bX(this,Ae(t));return;case 15:lm(this,on(un(t)));return;case 16:dm(this,on(un(t)));return;case 18:sx(this,on(un(t)));return}Jo(this,e-se((An(),tg)),$n((i=u(Un(this,16),29),i||tg),e),t)},o.ii=function(){return An(),tg},o.ki=function(e){var t,i;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab);return;case 1:L(this.Cb,90)&&hw(Zu(u(this.Cb,90)),4),zc(this,null);return;case 2:c1(this,!0);return;case 3:u1(this,!0);return;case 4:e1(this,0);return;case 5:this.b=0,Z0(this,1);return;case 8:ad(this,null);return;case 9:i=Kf(this,null,null),i&&i.oj();return;case 10:fm(this,!0);return;case 11:am(this,!1);return;case 12:hm(this,!1);return;case 13:this.i=null,kC(this,null);return;case 15:lm(this,!1);return;case 16:dm(this,!1);return;case 18:sx(this,!1);return}Wo(this,e-se((An(),tg)),$n((t=u(Un(this,16),29),t||tg),e))},o.pi=function(){x$(this),I4(Nr((Lu(),zi),this)),gs(this),this.Bb|=1},o.Jk=function(){return Nnn(this)},o.Yk=function(e,t){return this.b=0,this.a=null,jY(this,e,t)},o.Zk=function(e){nEn(this,e)},o.Ib=function(){var e;return this.Db&64?$S(this):(e=new ls($S(this)),e.a+=" (iD: ",ql(e,(this.Bb&kc)!=0),e.a+=")",e.a)},o.b=0,w(qn,"EAttributeImpl",331),b(364,448,{110:1,94:1,93:1,142:1,155:1,197:1,58:1,114:1,54:1,99:1,364:1,158:1,119:1,120:1,691:1}),o.dl=function(e){return e.Dh()==this},o.Ah=function(e){return _x(this,e)},o.Bh=function(e,t){this.w=null,this.Db=t<<16|this.Db&255,this.Cb=e},o.Lh=function(e,t,i){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return Fb(this);case 4:return this.ik();case 5:return this.F;case 6:return t?jo(this):L4(this);case 7:return!this.A&&(this.A=new Cu(fu,this,7)),this.A}return zo(this,e-se(this.ii()),$n((r=u(Un(this,16),29),r||this.ii()),e),t,i)},o.Sh=function(e,t,i){var r,c,s;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Xc(this.Ab,e,i);case 6:return this.Cb&&(i=(c=this.Db>>16,c>=0?_x(this,i):this.Cb.Th(this,-1-c,null,i))),Po(this,e,6,i)}return s=u($n((r=u(Un(this,16),29),r||this.ii()),t),69),s.wk().zk(this,iu(this),t-se(this.ii()),e,i)},o.Uh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),cr(this.Ab,e,i);case 6:return Po(this,null,6,i);case 7:return!this.A&&(this.A=new Cu(fu,this,7)),cr(this.A,e,i)}return c=u($n((r=u(Un(this,16),29),r||this.ii()),t),69),c.wk().Ak(this,iu(this),t-se(this.ii()),e,i)},o.Wh=function(e){var t;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!!Fb(this);case 4:return this.ik()!=null;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!L4(this);case 7:return!!this.A&&this.A.i!=0}return Uo(this,e-se(this.ii()),$n((t=u(Un(this,16),29),t||this.ii()),e))},o.bi=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab),!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Kt(this.Ab,u(t,16));return;case 1:xT(this,Ae(t));return;case 2:wN(this,Ae(t));return;case 5:Nm(this,Ae(t));return;case 7:!this.A&&(this.A=new Cu(fu,this,7)),me(this.A),!this.A&&(this.A=new Cu(fu,this,7)),Kt(this.A,u(t,16));return}Jo(this,e-se(this.ii()),$n((i=u(Un(this,16),29),i||this.ii()),e),t)},o.ii=function(){return An(),Foe},o.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab);return;case 1:L(this.Cb,184)&&(u(this.Cb,184).tb=null),zc(this,null);return;case 2:um(this,null),G4(this,this.D);return;case 5:Nm(this,null);return;case 7:!this.A&&(this.A=new Cu(fu,this,7)),me(this.A);return}Wo(this,e-se(this.ii()),$n((t=u(Un(this,16),29),t||this.ii()),e))},o.hk=function(){var e;return this.G==-1&&(this.G=(e=jo(this),e?f1(e.vi(),this):-1)),this.G},o.ik=function(){return null},o.jk=function(){return jo(this)},o.el=function(){return this.v},o.kk=function(){return Fb(this)},o.lk=function(){return this.D!=null?this.D:this.B},o.mk=function(){return this.F},o.fk=function(e){return AR(this,e)},o.fl=function(e){this.v=e},o.gl=function(e){yxn(this,e)},o.hl=function(e){this.C=e},o.ui=function(e){xT(this,e)},o.Ib=function(){return UC(this)},o.C=null,o.D=null,o.G=-1,w(qn,"EClassifierImpl",364),b(90,364,{110:1,94:1,93:1,29:1,142:1,155:1,197:1,58:1,114:1,54:1,99:1,90:1,364:1,158:1,482:1,119:1,120:1,691:1},cG),o.dl=function(e){return Dae(this,e.Dh())},o.Lh=function(e,t,i){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return Fb(this);case 4:return null;case 5:return this.F;case 6:return t?jo(this):L4(this);case 7:return!this.A&&(this.A=new Cu(fu,this,7)),this.A;case 8:return _n(),!!(this.Bb&256);case 9:return _n(),!!(this.Bb&512);case 10:return Hr(this);case 11:return!this.q&&(this.q=new q(Ps,this,11,10)),this.q;case 12:return Jg(this);case 13:return U5(this);case 14:return U5(this),this.r;case 15:return Jg(this),this.k;case 16:return jnn(this);case 17:return $R(this);case 18:return bh(this);case 19:return CS(this);case 20:return Jg(this),this.o;case 21:return!this.s&&(this.s=new q(ku,this,21,17)),this.s;case 22:return Pc(this);case 23:return yR(this)}return zo(this,e-se((An(),Na)),$n((r=u(Un(this,16),29),r||Na),e),t,i)},o.Sh=function(e,t,i){var r,c,s;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Xc(this.Ab,e,i);case 6:return this.Cb&&(i=(c=this.Db>>16,c>=0?_x(this,i):this.Cb.Th(this,-1-c,null,i))),Po(this,e,6,i);case 11:return!this.q&&(this.q=new q(Ps,this,11,10)),Xc(this.q,e,i);case 21:return!this.s&&(this.s=new q(ku,this,21,17)),Xc(this.s,e,i)}return s=u($n((r=u(Un(this,16),29),r||(An(),Na)),t),69),s.wk().zk(this,iu(this),t-se((An(),Na)),e,i)},o.Uh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),cr(this.Ab,e,i);case 6:return Po(this,null,6,i);case 7:return!this.A&&(this.A=new Cu(fu,this,7)),cr(this.A,e,i);case 11:return!this.q&&(this.q=new q(Ps,this,11,10)),cr(this.q,e,i);case 21:return!this.s&&(this.s=new q(ku,this,21,17)),cr(this.s,e,i);case 22:return cr(Pc(this),e,i)}return c=u($n((r=u(Un(this,16),29),r||(An(),Na)),t),69),c.wk().Ak(this,iu(this),t-se((An(),Na)),e,i)},o.Wh=function(e){var t;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!!Fb(this);case 4:return!1;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!L4(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&&Pc(this.u.a).i!=0&&!(this.n&&Ox(this.n));case 11:return!!this.q&&this.q.i!=0;case 12:return Jg(this).i!=0;case 13:return U5(this).i!=0;case 14:return U5(this),this.r.i!=0;case 15:return Jg(this),this.k.i!=0;case 16:return jnn(this).i!=0;case 17:return $R(this).i!=0;case 18:return bh(this).i!=0;case 19:return CS(this).i!=0;case 20:return Jg(this),!!this.o;case 21:return!!this.s&&this.s.i!=0;case 22:return!!this.n&&Ox(this.n);case 23:return yR(this).i!=0}return Uo(this,e-se((An(),Na)),$n((t=u(Un(this,16),29),t||Na),e))},o.Zh=function(e){var t;return t=this.i==null||this.q&&this.q.i!=0?null:oy(this,e),t||rtn(this,e)},o.bi=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab),!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Kt(this.Ab,u(t,16));return;case 1:xT(this,Ae(t));return;case 2:wN(this,Ae(t));return;case 5:Nm(this,Ae(t));return;case 7:!this.A&&(this.A=new Cu(fu,this,7)),me(this.A),!this.A&&(this.A=new Cu(fu,this,7)),Kt(this.A,u(t,16));return;case 8:EY(this,on(un(t)));return;case 9:MY(this,on(un(t)));return;case 10:X5(Hr(this)),Kt(Hr(this),u(t,16));return;case 11:!this.q&&(this.q=new q(Ps,this,11,10)),me(this.q),!this.q&&(this.q=new q(Ps,this,11,10)),Kt(this.q,u(t,16));return;case 21:!this.s&&(this.s=new q(ku,this,21,17)),me(this.s),!this.s&&(this.s=new q(ku,this,21,17)),Kt(this.s,u(t,16));return;case 22:me(Pc(this)),Kt(Pc(this),u(t,16));return}Jo(this,e-se((An(),Na)),$n((i=u(Un(this,16),29),i||Na),e),t)},o.ii=function(){return An(),Na},o.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab);return;case 1:L(this.Cb,184)&&(u(this.Cb,184).tb=null),zc(this,null);return;case 2:um(this,null),G4(this,this.D);return;case 5:Nm(this,null);return;case 7:!this.A&&(this.A=new Cu(fu,this,7)),me(this.A);return;case 8:EY(this,!1);return;case 9:MY(this,!1);return;case 10:this.u&&X5(this.u);return;case 11:!this.q&&(this.q=new q(Ps,this,11,10)),me(this.q);return;case 21:!this.s&&(this.s=new q(ku,this,21,17)),me(this.s);return;case 22:this.n&&me(this.n);return}Wo(this,e-se((An(),Na)),$n((t=u(Un(this,16),29),t||Na),e))},o.pi=function(){var e,t;if(Jg(this),U5(this),jnn(this),$R(this),bh(this),CS(this),yR(this),e5(u0e(Zu(this))),this.s)for(e=0,t=this.s.i;e<t;++e)C7(N(this.s,e));if(this.q)for(e=0,t=this.q.i;e<t;++e)C7(N(this.q,e));r1((Lu(),zi),this).xe(),this.Bb|=1},o.Ib=function(){return HZ(this)},o.k=null,o.r=null;var D9,Joe,EU;w(qn,"EClassImpl",90),b(2092,2091,gJn),o.Ei=function(e,t){return LR(this,e,t)},o.Fi=function(e){return LR(this,this.i,e)},o.Gi=function(e,t){Knn(this,e,t)},o.Hi=function(e){aR(this,e)},o.Wk=function(e,t){return Xc(this,e,t)},o.$i=function(e){return ZJ(this,e)},o.Xk=function(e,t){return cr(this,e,t)},o.Xi=function(e,t){return XUn(this,e,t)},o.Ii=function(){return new yp(this)},o.Ji=function(){return new T7(this)},o.Ki=function(e){return pk(this,e)},w(Ct,"NotifyingInternalEListImpl",2092),b(632,2092,Qr),o.Hc=function(e){return bGn(this,e)},o.Ij=function(e,t,i,r,c){return W6(this,e,t,i,r,c)},o.Jj=function(e){t4(this,e)},o.Fk=function(e){return this},o.Lk=function(){return $n(this.e.Dh(),this.Lj())},o.Kj=function(){return this.Lk()},o.Lj=function(){return At(this.e.Dh(),this.Lk())},o.il=function(){return u(this.Lk().Hk(),29).kk()},o.jl=function(){return br(u(this.Lk(),19)).n},o.jj=function(){return this.e},o.kl=function(){return!0},o.ll=function(){return!1},o.ml=function(){return!1},o.nl=function(){return!1},o.dd=function(e){return f1(this,e)},o.Nj=function(e,t){var i;return i=u(e,54),this.ml()?this.kl()?i.Rh(this.e,this.jl(),this.il(),t):i.Rh(this.e,At(i.Dh(),br(u(this.Lk(),19))),null,t):i.Rh(this.e,-1-this.Lj(),null,t)},o.Oj=function(e,t){var i;return i=u(e,54),this.ml()?this.kl()?i.Th(this.e,this.jl(),this.il(),t):i.Th(this.e,At(i.Dh(),br(u(this.Lk(),19))),null,t):i.Th(this.e,-1-this.Lj(),null,t)},o.al=function(){return!1},o.ol=function(){return!0},o.fk=function(e){return KLn(this.d,e)},o.Pj=function(){return fo(this.e)},o.Qj=function(){return this.i!=0},o.aj=function(e){return gk(this.d,e)},o.Wi=function(e,t){return this.ol()&&this.nl()?e3(this,e,u(t,58)):t},o.pl=function(e){return e.Vh()?ea(this.e,u(e,54)):e},o.Wb=function(e){ACn(this,e)},o.Pc=function(){return NDn(this)},o.Qc=function(e){var t;if(this.nl())for(t=this.i-1;t>=0;--t)N(this,t);return VY(this,e)},o.Gk=function(){me(this)},o.Zi=function(e,t){return q$n(this,e,t)},w(Ct,"EcoreEList",632),b(505,632,Qr,R7),o.Li=function(){return!1},o.Lj=function(){return this.c},o.Mj=function(){return!1},o.ol=function(){return!0},o.Si=function(){return!0},o.Wi=function(e,t){return t},o.Yi=function(){return!1},o.c=0,w(Ct,"EObjectEList",505),b(83,505,Qr,ti),o.Mj=function(){return!0},o.ml=function(){return!1},o.al=function(){return!0},w(Ct,"EObjectContainmentEList",83),b(555,83,Qr,$M),o.Ni=function(){this.b=!0},o.Qj=function(){return this.b},o.Gk=function(){var e;me(this),fo(this.e)?(e=this.b,this.b=!1,it(this.e,new Bs(this.e,2,this.c,e,!1))):this.b=!1},o.b=!1,w(Ct,"EObjectContainmentEList/Unsettable",555),b(1161,555,Qr,mIn),o.Ti=function(e,t){var i,r;return i=u(k5(this,e,t),89),fo(this.e)&&t4(this,new ck(this.a,7,(An(),_oe),Y(t),(r=i.c,L(r,90)?u(r,29):Os),e)),i},o.Uj=function(e,t){return S8e(this,u(e,89),t)},o.Vj=function(e,t){return C8e(this,u(e,89),t)},o.Wj=function(e,t,i){return Oke(this,u(e,89),u(t,89),i)},o.Ij=function(e,t,i,r,c){switch(e){case 3:return W6(this,e,t,i,r,this.i>1);case 5:return W6(this,e,t,i,r,this.i-u(i,15).gc()>0);default:return new ml(this.e,e,this.c,t,i,r,!0)}},o.Tj=function(){return!0},o.Qj=function(){return Ox(this)},o.Gk=function(){me(this)},w(qn,"EClassImpl/1",1161),b(1175,1174,_cn),o.dj=function(e){var t,i,r,c,s,f,h;if(i=e.gj(),i!=8){if(r=s9e(e),r==0)switch(i){case 1:case 9:{h=e.kj(),h!=null&&(t=Zu(u(h,482)),!t.c&&(t.c=new W3),rC(t.c,e.jj())),f=e.ij(),f!=null&&(c=u(f,482),c.Bb&1||(t=Zu(c),!t.c&&(t.c=new W3),ve(t.c,u(e.jj(),29))));break}case 3:{f=e.ij(),f!=null&&(c=u(f,482),c.Bb&1||(t=Zu(c),!t.c&&(t.c=new W3),ve(t.c,u(e.jj(),29))));break}case 5:{if(f=e.ij(),f!=null)for(s=u(f,16).Kc();s.Ob();)c=u(s.Pb(),482),c.Bb&1||(t=Zu(c),!t.c&&(t.c=new W3),ve(t.c,u(e.jj(),29)));break}case 4:{h=e.kj(),h!=null&&(c=u(h,482),c.Bb&1||(t=Zu(c),!t.c&&(t.c=new W3),rC(t.c,e.jj())));break}case 6:{if(h=e.kj(),h!=null)for(s=u(h,16).Kc();s.Ob();)c=u(s.Pb(),482),c.Bb&1||(t=Zu(c),!t.c&&(t.c=new W3),rC(t.c,e.jj()));break}}this.ql(r)}},o.ql=function(e){Uqn(this,e)},o.b=63,w(qn,"ESuperAdapter",1175),b(1176,1175,_cn,myn),o.ql=function(e){hw(this,e)},w(qn,"EClassImpl/10",1176),b(1165,710,Qr),o.Ei=function(e,t){return Zx(this,e,t)},o.Fi=function(e){return NBn(this,e)},o.Gi=function(e,t){Lk(this,e,t)},o.Hi=function(e){ek(this,e)},o.$i=function(e){return ZJ(this,e)},o.Xi=function(e,t){return d$(this,e,t)},o.Wk=function(e,t){throw T(new Ie)},o.Ii=function(){return new yp(this)},o.Ji=function(){return new T7(this)},o.Ki=function(e){return pk(this,e)},o.Xk=function(e,t){throw T(new Ie)},o.Fk=function(e){return this},o.Qj=function(){return this.i!=0},o.Wb=function(e){throw T(new Ie)},o.Gk=function(){throw T(new Ie)},w(Ct,"EcoreEList/UnmodifiableEList",1165),b(328,1165,Qr,pg),o.Yi=function(){return!1},w(Ct,"EcoreEList/UnmodifiableEList/FastCompare",328),b(1168,328,Qr,bRn),o.dd=function(e){var t,i,r;if(L(e,179)&&(t=u(e,179),i=t.Lj(),i!=-1)){for(r=this.i;i<r;++i)if(x(this.g[i])===x(e))return i}return-1},w(qn,"EClassImpl/1EAllStructuralFeaturesList",1168),b(1162,506,Mh,kvn),o.aj=function(e){return F(jr,pJn,89,e,0,1)},o.Yi=function(){return!1},w(qn,"EClassImpl/1EGenericSuperTypeEList",1162),b(633,506,Mh,qA),o.aj=function(e){return F(ku,f2,179,e,0,1)},o.Yi=function(){return!1},w(qn,"EClassImpl/1EStructuralFeatureUniqueEList",633),b(755,506,Mh,tG),o.aj=function(e){return F(eg,f2,19,e,0,1)},o.Yi=function(){return!1},w(qn,"EClassImpl/1ReferenceList",755),b(1163,506,Mh,vyn),o.Mi=function(e,t){owe(this,u(t,35))},o.aj=function(e){return F(ng,f2,35,e,0,1)},o.Yi=function(){return!1},w(qn,"EClassImpl/2",1163),b(1164,506,Mh,yvn),o.aj=function(e){return F(ng,f2,35,e,0,1)},o.Yi=function(){return!1},w(qn,"EClassImpl/3",1164),b(1166,328,Qr,HPn),o.Fc=function(e){return T3e(this,u(e,35))},o.Hi=function(e){Vhe(this,u(e,35))},w(qn,"EClassImpl/4",1166),b(1167,328,Qr,_Pn),o.Fc=function(e){return C3e(this,u(e,19))},o.Hi=function(e){Whe(this,u(e,19))},w(qn,"EClassImpl/5",1167),b(1169,506,Mh,jvn),o.aj=function(e){return F(Ps,Ucn,62,e,0,1)},o.Yi=function(){return!1},w(qn,"EClassImpl/6",1169),b(1170,506,Mh,Evn),o.aj=function(e){return F(eg,f2,19,e,0,1)},o.Yi=function(){return!1},w(qn,"EClassImpl/7",1170),b(2095,2094,{3:1,4:1,20:1,31:1,56:1,16:1,15:1,70:1,61:1,71:1}),o.Ei=function(e,t){return Den(this,e,t)},o.Fi=function(e){return Den(this,this.Ej(),e)},o.Gi=function(e,t){EHn(this,e,t)},o.Hi=function(e){lHn(this,e)},o.Wk=function(e,t){return n7e(this,e,t)},o.Xk=function(e,t){return S9e(this,e,t)},o.Xi=function(e,t){return OUn(this,e,t)},o.$i=function(e){return this.xj(e)},o.Ii=function(){return new yp(this)},o.pj=function(){return this.sj()},o.Ji=function(){return new T7(this)},o.Ki=function(e){return pk(this,e)},w(Ct,"DelegatingNotifyingInternalEListImpl",2095),b(756,2095,Gcn),o.Li=function(){var e;return e=$n(au(this.b),this.Lj()).Hk(),L(e,156)&&!L(e,469)&&(e.kk().i&1)==0},o.Hc=function(e){var t,i,r,c,s,f,h,l;if(this.ol()){if(l=this.Ej(),l>4)if(this.fk(e)){if(this.al()){if(r=u(e,54),i=r.Eh(),h=i==this.b&&(this.ml()?r.yh(r.Fh(),u($n(au(this.b),this.Lj()).Hk(),29).kk())==br(u($n(au(this.b),this.Lj()),19)).n:-1-r.Fh()==this.Lj()),this.nl()&&!h&&!i&&r.Jh()){for(c=0;c<l;++c)if(t=cD(this,this.xj(c)),x(t)===x(e))return!0}return h}else if(this.ml()&&!this.ll()){if(s=u(e,58).Mh(br(u($n(au(this.b),this.Lj()),19))),x(s)===x(this.b))return!0;if(s==null||!u(s,58).Vh())return!1}}else return!1;if(f=this.uj(e),this.nl()&&!f){for(c=0;c<l;++c)if(r=cD(this,this.xj(c)),x(r)===x(e))return!0}return f}else return this.uj(e)},o.Ij=function(e,t,i,r,c){return new ml(this.b,e,this.Lj(),t,i,r,c)},o.Jj=function(e){it(this.b,e)},o.Fk=function(e){return this},o.Kj=function(){return $n(au(this.b),this.Lj())},o.Lj=function(){return At(au(this.b),$n(au(this.b),this.Lj()))},o.jj=function(){return this.b},o.kl=function(){return!!$n(au(this.b),this.Lj()).Hk().kk()},o.Mj=function(){var e,t;return t=$n(au(this.b),this.Lj()),L(t,102)?(e=u(t,19),(e.Bb&kc)!=0||!!br(u(t,19))):!1},o.ll=function(){var e,t,i,r;return t=$n(au(this.b),this.Lj()),L(t,102)?(e=u(t,19),i=br(e),!!i&&(r=i.t,r>1||r==-1)):!1},o.ml=function(){var e,t,i;return t=$n(au(this.b),this.Lj()),L(t,102)?(e=u(t,19),i=br(e),!!i):!1},o.nl=function(){var e,t;return t=$n(au(this.b),this.Lj()),L(t,102)?(e=u(t,19),(e.Bb&hr)!=0):!1},o.dd=function(e){var t,i,r,c;if(r=this.zj(e),r>=0)return r;if(this.ol()){for(i=0,c=this.Ej();i<c;++i)if(t=cD(this,this.xj(i)),x(t)===x(e))return i}return-1},o.Nj=function(e,t){var i;return i=u(e,54),this.ml()?this.kl()?i.Rh(this.b,br(u($n(au(this.b),this.Lj()),19)).n,u($n(au(this.b),this.Lj()).Hk(),29).kk(),t):i.Rh(this.b,At(i.Dh(),br(u($n(au(this.b),this.Lj()),19))),null,t):i.Rh(this.b,-1-this.Lj(),null,t)},o.Oj=function(e,t){var i;return i=u(e,54),this.ml()?this.kl()?i.Th(this.b,br(u($n(au(this.b),this.Lj()),19)).n,u($n(au(this.b),this.Lj()).Hk(),29).kk(),t):i.Th(this.b,At(i.Dh(),br(u($n(au(this.b),this.Lj()),19))),null,t):i.Th(this.b,-1-this.Lj(),null,t)},o.al=function(){var e,t;return t=$n(au(this.b),this.Lj()),L(t,102)?(e=u(t,19),(e.Bb&kc)!=0):!1},o.ol=function(){return L($n(au(this.b),this.Lj()).Hk(),90)},o.fk=function(e){return $n(au(this.b),this.Lj()).Hk().fk(e)},o.Pj=function(){return fo(this.b)},o.Qj=function(){return!this.Aj()},o.Si=function(){return $n(au(this.b),this.Lj()).Si()},o.Wi=function(e,t){return py(this,e,t)},o.Wb=function(e){X5(this),Kt(this,u(e,15))},o.Pc=function(){var e;if(this.nl())for(e=this.Ej()-1;e>=0;--e)py(this,e,this.xj(e));return this.Fj()},o.Qc=function(e){var t;if(this.nl())for(t=this.Ej()-1;t>=0;--t)py(this,t,this.xj(t));return this.Gj(e)},o.Gk=function(){X5(this)},o.Zi=function(e,t){return kDn(this,e,t)},w(Ct,"DelegatingEcoreEList",756),b(1171,756,Gcn,DSn),o.qj=function(e,t){rae(this,e,u(t,29))},o.rj=function(e){zle(this,u(e,29))},o.xj=function(e){var t,i;return t=u(N(Pc(this.a),e),89),i=t.c,L(i,90)?u(i,29):(An(),Os)},o.Cj=function(e){var t,i;return t=u(dw(Pc(this.a),e),89),i=t.c,L(i,90)?u(i,29):(An(),Os)},o.Dj=function(e,t){return e7e(this,e,u(t,29))},o.Li=function(){return!1},o.Ij=function(e,t,i,r,c){return null},o.sj=function(){return new yyn(this)},o.tj=function(){me(Pc(this.a))},o.uj=function(e){return hKn(this,e)},o.vj=function(e){var t,i;for(i=e.Kc();i.Ob();)if(t=i.Pb(),!hKn(this,t))return!1;return!0},o.wj=function(e){var t,i,r;if(L(e,15)&&(r=u(e,15),r.gc()==Pc(this.a).i)){for(t=r.Kc(),i=new ne(this);t.Ob();)if(x(t.Pb())!==x(ue(i)))return!1;return!0}return!1},o.yj=function(){var e,t,i,r,c;for(i=1,t=new ne(Pc(this.a));t.e!=t.i.gc();)e=u(ue(t),89),r=(c=e.c,L(c,90)?u(c,29):(An(),Os)),i=31*i+(r?lb(r):0);return i},o.zj=function(e){var t,i,r,c;for(r=0,i=new ne(Pc(this.a));i.e!=i.i.gc();){if(t=u(ue(i),89),x(e)===x((c=t.c,L(c,90)?u(c,29):(An(),Os))))return r;++r}return-1},o.Aj=function(){return Pc(this.a).i==0},o.Bj=function(){return null},o.Ej=function(){return Pc(this.a).i},o.Fj=function(){var e,t,i,r,c,s;for(s=Pc(this.a).i,c=F(ki,Kn,1,s,5,1),i=0,t=new ne(Pc(this.a));t.e!=t.i.gc();)e=u(ue(t),89),c[i++]=(r=e.c,L(r,90)?u(r,29):(An(),Os));return c},o.Gj=function(e){var t,i,r,c,s,f,h;for(h=Pc(this.a).i,e.length<h&&(c=gk(wo(e).c,h),e=c),e.length>h&&$t(e,h,null),r=0,i=new ne(Pc(this.a));i.e!=i.i.gc();)t=u(ue(i),89),s=(f=t.c,L(f,90)?u(f,29):(An(),Os)),$t(e,r++,s);return e},o.Hj=function(){var e,t,i,r,c;for(c=new Hl,c.a+="[",e=Pc(this.a),t=0,r=Pc(this.a).i;t<r;)Er(c,A6((i=u(N(e,t),89).c,L(i,90)?u(i,29):(An(),Os)))),++t<r&&(c.a+=ur);return c.a+="]",c.a},o.Jj=function(e){},o.Lj=function(){return 10},o.kl=function(){return!0},o.Mj=function(){return!1},o.ll=function(){return!1},o.ml=function(){return!1},o.nl=function(){return!0},o.al=function(){return!1},o.ol=function(){return!0},o.fk=function(e){return L(e,90)},o.Qj=function(){return Spe(this.a)},o.Si=function(){return!0},o.Yi=function(){return!0},w(qn,"EClassImpl/8",1171),b(1172,2062,Bm,yyn),o.fd=function(e){return pk(this.a,e)},o.gc=function(){return Pc(this.a.a).i},w(qn,"EClassImpl/8/1",1172),b(1173,506,Mh,Mvn),o.aj=function(e){return F(Mf,Kn,142,e,0,1)},o.Yi=function(){return!1},w(qn,"EClassImpl/9",1173),b(1160,49,jtn,ljn),w(qn,"EClassImpl/MyHashSet",1160),b(577,364,{110:1,94:1,93:1,142:1,156:1,847:1,155:1,197:1,58:1,114:1,54:1,99:1,364:1,158:1,119:1,120:1,691:1},xE),o.Lh=function(e,t,i){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return Fb(this);case 4:return this.ik();case 5:return this.F;case 6:return t?jo(this):L4(this);case 7:return!this.A&&(this.A=new Cu(fu,this,7)),this.A;case 8:return _n(),!!(this.Bb&256)}return zo(this,e-se(this.ii()),$n((r=u(Un(this,16),29),r||this.ii()),e),t,i)},o.Wh=function(e){var t;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!!Fb(this);case 4:return this.ik()!=null;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!L4(this);case 7:return!!this.A&&this.A.i!=0;case 8:return(this.Bb&256)==0}return Uo(this,e-se(this.ii()),$n((t=u(Un(this,16),29),t||this.ii()),e))},o.bi=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab),!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Kt(this.Ab,u(t,16));return;case 1:xT(this,Ae(t));return;case 2:wN(this,Ae(t));return;case 5:Nm(this,Ae(t));return;case 7:!this.A&&(this.A=new Cu(fu,this,7)),me(this.A),!this.A&&(this.A=new Cu(fu,this,7)),Kt(this.A,u(t,16));return;case 8:KC(this,on(un(t)));return}Jo(this,e-se(this.ii()),$n((i=u(Un(this,16),29),i||this.ii()),e),t)},o.ii=function(){return An(),Hoe},o.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab);return;case 1:L(this.Cb,184)&&(u(this.Cb,184).tb=null),zc(this,null);return;case 2:um(this,null),G4(this,this.D);return;case 5:Nm(this,null);return;case 7:!this.A&&(this.A=new Cu(fu,this,7)),me(this.A);return;case 8:KC(this,!0);return}Wo(this,e-se(this.ii()),$n((t=u(Un(this,16),29),t||this.ii()),e))},o.pi=function(){r1((Lu(),zi),this).xe(),this.Bb|=1},o.ok=function(){var e,t,i;if(!this.c&&(e=xHn(jo(this)),!e.dc()))for(i=e.Kc();i.Ob();)t=Ae(i.Pb()),_5(this,t)&&C5e(this);return this.b},o.ik=function(){var e;if(!this.e){e=null;try{e=Fb(this)}catch(t){if(t=Ot(t),!L(t,103))throw T(t)}this.d=null,e&&e.i&1&&(e==so?this.d=(_n(),ga):e==ye?this.d=Y(0):e==cg?this.d=new z9(0):e==Ii?this.d=0:e==Ra?this.d=Tl(0):e==V2?this.d=sm(0):e==Ru?this.d=ak(0):this.d=vk(0)),this.e=!0}return this.d},o.nk=function(){return(this.Bb&256)!=0},o.rl=function(e){e&&(this.D="org.eclipse.emf.common.util.AbstractEnumerator")},o.gl=function(e){yxn(this,e),this.rl(e)},o.hl=function(e){this.C=e,this.e=!1},o.Ib=function(){var e;return this.Db&64?UC(this):(e=new ls(UC(this)),e.a+=" (serializable: ",ql(e,(this.Bb&256)!=0),e.a+=")",e.a)},o.c=!1,o.d=null,o.e=!1,w(qn,"EDataTypeImpl",577),b(469,577,{110:1,94:1,93:1,142:1,156:1,847:1,685:1,155:1,197:1,58:1,114:1,54:1,99:1,364:1,469:1,158:1,119:1,120:1,691:1},ajn),o.Lh=function(e,t,i){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return Fb(this);case 4:return lY(this);case 5:return this.F;case 6:return t?jo(this):L4(this);case 7:return!this.A&&(this.A=new Cu(fu,this,7)),this.A;case 8:return _n(),!!(this.Bb&256);case 9:return!this.a&&(this.a=new q(Kl,this,9,5)),this.a}return zo(this,e-se((An(),Da)),$n((r=u(Un(this,16),29),r||Da),e),t,i)},o.Sh=function(e,t,i){var r,c,s;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Xc(this.Ab,e,i);case 6:return this.Cb&&(i=(c=this.Db>>16,c>=0?_x(this,i):this.Cb.Th(this,-1-c,null,i))),Po(this,e,6,i);case 9:return!this.a&&(this.a=new q(Kl,this,9,5)),Xc(this.a,e,i)}return s=u($n((r=u(Un(this,16),29),r||(An(),Da)),t),69),s.wk().zk(this,iu(this),t-se((An(),Da)),e,i)},o.Uh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),cr(this.Ab,e,i);case 6:return Po(this,null,6,i);case 7:return!this.A&&(this.A=new Cu(fu,this,7)),cr(this.A,e,i);case 9:return!this.a&&(this.a=new q(Kl,this,9,5)),cr(this.a,e,i)}return c=u($n((r=u(Un(this,16),29),r||(An(),Da)),t),69),c.wk().Ak(this,iu(this),t-se((An(),Da)),e,i)},o.Wh=function(e){var t;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!!Fb(this);case 4:return!!lY(this);case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!L4(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 Uo(this,e-se((An(),Da)),$n((t=u(Un(this,16),29),t||Da),e))},o.bi=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab),!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Kt(this.Ab,u(t,16));return;case 1:xT(this,Ae(t));return;case 2:wN(this,Ae(t));return;case 5:Nm(this,Ae(t));return;case 7:!this.A&&(this.A=new Cu(fu,this,7)),me(this.A),!this.A&&(this.A=new Cu(fu,this,7)),Kt(this.A,u(t,16));return;case 8:KC(this,on(un(t)));return;case 9:!this.a&&(this.a=new q(Kl,this,9,5)),me(this.a),!this.a&&(this.a=new q(Kl,this,9,5)),Kt(this.a,u(t,16));return}Jo(this,e-se((An(),Da)),$n((i=u(Un(this,16),29),i||Da),e),t)},o.ii=function(){return An(),Da},o.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab);return;case 1:L(this.Cb,184)&&(u(this.Cb,184).tb=null),zc(this,null);return;case 2:um(this,null),G4(this,this.D);return;case 5:Nm(this,null);return;case 7:!this.A&&(this.A=new Cu(fu,this,7)),me(this.A);return;case 8:KC(this,!0);return;case 9:!this.a&&(this.a=new q(Kl,this,9,5)),me(this.a);return}Wo(this,e-se((An(),Da)),$n((t=u(Un(this,16),29),t||Da),e))},o.pi=function(){var e,t;if(this.a)for(e=0,t=this.a.i;e<t;++e)C7(N(this.a,e));r1((Lu(),zi),this).xe(),this.Bb|=1},o.ik=function(){return lY(this)},o.fk=function(e){return e!=null},o.rl=function(e){},w(qn,"EEnumImpl",469),b(582,448,{110:1,94:1,93:1,2039:1,694:1,155:1,197:1,58:1,114:1,54:1,99:1,582:1,158:1,119:1,120:1},Ryn),o.xe=function(){return this.zb},o.Ah=function(e){return uFn(this,e)},o.Lh=function(e,t,i){var r,c;switch(e){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Y(this.d);case 3:return this.b?this.b:this.a;case 4:return c=this.c,c??this.zb;case 5:return this.Db>>16==5?u(this.Cb,685):null}return zo(this,e-se((An(),P1)),$n((r=u(Un(this,16),29),r||P1),e),t,i)},o.Sh=function(e,t,i){var r,c,s;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Xc(this.Ab,e,i);case 5:return this.Cb&&(i=(c=this.Db>>16,c>=0?uFn(this,i):this.Cb.Th(this,-1-c,null,i))),Po(this,e,5,i)}return s=u($n((r=u(Un(this,16),29),r||(An(),P1)),t),69),s.wk().zk(this,iu(this),t-se((An(),P1)),e,i)},o.Uh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),cr(this.Ab,e,i);case 5:return Po(this,null,5,i)}return c=u($n((r=u(Un(this,16),29),r||(An(),P1)),t),69),c.wk().Ak(this,iu(this),t-se((An(),P1)),e,i)},o.Wh=function(e){var t;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,685))}return Uo(this,e-se((An(),P1)),$n((t=u(Un(this,16),29),t||P1),e))},o.bi=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab),!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Kt(this.Ab,u(t,16));return;case 1:zc(this,Ae(t));return;case 2:v$(this,u(t,17).a);return;case 3:iHn(this,u(t,2039));return;case 4:y$(this,Ae(t));return}Jo(this,e-se((An(),P1)),$n((i=u(Un(this,16),29),i||P1),e),t)},o.ii=function(){return An(),P1},o.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab);return;case 1:zc(this,null);return;case 2:v$(this,0);return;case 3:iHn(this,null);return;case 4:y$(this,null);return}Wo(this,e-se((An(),P1)),$n((t=u(Un(this,16),29),t||P1),e))},o.Ib=function(){var e;return e=this.c,e??this.zb},o.b=null,o.c=null,o.d=0,w(qn,"EEnumLiteralImpl",582);var NDe=Dt(qn,"EFactoryImpl/InternalEDateTimeFormat");b(499,1,{2114:1},X9),w(qn,"EFactoryImpl/1ClientInternalEDateTimeFormat",499),b(248,120,{110:1,94:1,93:1,89:1,58:1,114:1,54:1,99:1,248:1,119:1,120:1},Jd),o.Ch=function(e,t,i){var r;return i=Po(this,e,t,i),this.e&&L(e,179)&&(r=TS(this,this.e),r!=this.c&&(i=Dm(this,r,i))),i},o.Lh=function(e,t,i){var r;switch(e){case 0:return this.f;case 1:return!this.d&&(this.d=new ti(jr,this,1)),this.d;case 2:return t?KS(this):this.c;case 3:return this.b;case 4:return this.e;case 5:return t?Nx(this):this.a}return zo(this,e-se((An(),j0)),$n((r=u(Un(this,16),29),r||j0),e),t,i)},o.Uh=function(e,t,i){var r,c;switch(t){case 0:return QRn(this,null,i);case 1:return!this.d&&(this.d=new ti(jr,this,1)),cr(this.d,e,i);case 3:return YRn(this,null,i)}return c=u($n((r=u(Un(this,16),29),r||(An(),j0)),t),69),c.wk().Ak(this,iu(this),t-se((An(),j0)),e,i)},o.Wh=function(e){var t;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 Uo(this,e-se((An(),j0)),$n((t=u(Un(this,16),29),t||j0),e))},o.bi=function(e,t){var i;switch(e){case 0:TFn(this,u(t,89));return;case 1:!this.d&&(this.d=new ti(jr,this,1)),me(this.d),!this.d&&(this.d=new ti(jr,this,1)),Kt(this.d,u(t,16));return;case 3:qZ(this,u(t,89));return;case 4:snn(this,u(t,850));return;case 5:F4(this,u(t,142));return}Jo(this,e-se((An(),j0)),$n((i=u(Un(this,16),29),i||j0),e),t)},o.ii=function(){return An(),j0},o.ki=function(e){var t;switch(e){case 0:TFn(this,null);return;case 1:!this.d&&(this.d=new ti(jr,this,1)),me(this.d);return;case 3:qZ(this,null);return;case 4:snn(this,null);return;case 5:F4(this,null);return}Wo(this,e-se((An(),j0)),$n((t=u(Un(this,16),29),t||j0),e))},o.Ib=function(){var e;return e=new mo(Hs(this)),e.a+=" (expression: ",_R(this,e),e.a+=")",e.a};var Gdn;w(qn,"EGenericTypeImpl",248),b(2067,2062,zP),o.Gi=function(e,t){ASn(this,e,t)},o.Wk=function(e,t){return ASn(this,this.gc(),e),t},o.$i=function(e){return Zo(this.pj(),e)},o.Ii=function(){return this.Ji()},o.pj=function(){return new Tyn(this)},o.Ji=function(){return this.Ki(0)},o.Ki=function(e){return this.pj().fd(e)},o.Xk=function(e,t){return iw(this,e,!0),t},o.Ti=function(e,t){var i,r;return r=Ux(this,t),i=this.fd(e),i.Rb(r),r},o.Ui=function(e,t){var i;iw(this,t,!0),i=this.fd(e),i.Rb(t)},w(Ct,"AbstractSequentialInternalEList",2067),b(496,2067,zP,M7),o.$i=function(e){return Zo(this.pj(),e)},o.Ii=function(){return this.b==null?(Gl(),Gl(),dE):this.sl()},o.pj=function(){return new JTn(this.a,this.b)},o.Ji=function(){return this.b==null?(Gl(),Gl(),dE):this.sl()},o.Ki=function(e){var t,i;if(this.b==null){if(e<0||e>1)throw T(new Or(p8+e+", size=0"));return Gl(),Gl(),dE}for(i=this.sl(),t=0;t<e;++t)IC(i);return i},o.dc=function(){var e,t,i,r,c,s;if(this.b!=null){for(i=0;i<this.b.length;++i)if(e=this.b[i],!this.vl()||this.a.Xh(e)){if(s=this.a.Nh(e,!1),dr(),u(e,69).xk()){for(t=u(s,160),r=0,c=t.gc();r<c;++r)if(cOn(t.Tl(r))&&t.Ul(r)!=null)return!1}else if(e.Jk()){if(!u(s,16).dc())return!1}else if(s!=null)return!1}}return!0},o.Kc=function(){return LQ(this)},o.fd=function(e){var t,i;if(this.b==null){if(e!=0)throw T(new Or(p8+e+", size=0"));return Gl(),Gl(),dE}for(i=this.ul()?this.tl():this.sl(),t=0;t<e;++t)IC(i);return i},o.Ti=function(e,t){throw T(new Ie)},o.Ui=function(e,t){throw T(new Ie)},o.sl=function(){return new _M(this.a,this.b)},o.tl=function(){return new ZX(this.a,this.b)},o.ul=function(){return!0},o.gc=function(){var e,t,i,r,c,s,f;if(c=0,this.b!=null){for(i=0;i<this.b.length;++i)if(e=this.b[i],!this.vl()||this.a.Xh(e))if(f=this.a.Nh(e,!1),dr(),u(e,69).xk())for(t=u(f,160),r=0,s=t.gc();r<s;++r)cOn(t.Tl(r))&&t.Ul(r)!=null&&++c;else e.Jk()?c+=u(f,16).gc():f!=null&&++c}return c},o.vl=function(){return!0};var MU;w(Ct,"EContentsEList",496),b(1177,496,zP,wSn),o.sl=function(){return new pSn(this.a,this.b)},o.tl=function(){return new gSn(this.a,this.b)},o.vl=function(){return!1},w(qn,"ENamedElementImpl/1",1177),b(287,1,XP,_M),o.Nb=function(e){_i(this,e)},o.Rb=function(e){throw T(new Ie)},o.wl=function(e){if(this.g!=0||this.e)throw T(new Ar("Iterator already in use or already filtered"));this.e=e},o.Ob=function(){var e,t,i,r,c,s;switch(this.g){case 3:case 2:return!0;case 1:return!1;case-3:this.p?this.p.Pb():++this.n;default:if(!this.k||(this.p?!m_n(this,this.p):!oHn(this))){for(;this.d<this.c.length;)if(t=this.c[this.d++],(!this.e||t.pk()!=Hv||t.Lj()!=0)&&(!this.vl()||this.b.Xh(t))){if(s=this.b.Nh(t,this.ul()),this.f=(dr(),u(t,69).xk()),this.f||t.Jk()){if(this.ul()?(r=u(s,15),this.k=r):(r=u(s,71),this.k=this.j=r),L(this.k,59)?(this.p=null,this.o=this.k.gc(),this.n=0):this.p=this.j?this.j.Ji():this.k.ed(),this.p?m_n(this,this.p):oHn(this))return c=this.p?this.p.Pb():this.j?this.j.$i(this.n++):this.k.Xb(this.n++),this.f?(e=u(c,76),e.Lk(),i=e.md(),this.i=i):(i=c,this.i=i),this.g=3,!0}else if(s!=null)return this.k=null,this.p=null,i=s,this.i=i,this.g=2,!0}return this.k=null,this.p=null,this.f=!1,this.g=1,!1}else return c=this.p?this.p.Pb():this.j?this.j.$i(this.n++):this.k.Xb(this.n++),this.f?(e=u(c,76),e.Lk(),i=e.md(),this.i=i):(i=c,this.i=i),this.g=3,!0}},o.Sb=function(){var e,t,i,r,c,s;switch(this.g){case-3:case-2:return!0;case-1:return!1;case 3:this.p?this.p.Ub():--this.n;default:if(!this.k||(this.p?!v_n(this,this.p):!O_n(this))){for(;this.d>0;)if(t=this.c[--this.d],(!this.e||t.pk()!=Hv||t.Lj()!=0)&&(!this.vl()||this.b.Xh(t))){if(s=this.b.Nh(t,this.ul()),this.f=(dr(),u(t,69).xk()),this.f||t.Jk()){if(this.ul()?(r=u(s,15),this.k=r):(r=u(s,71),this.k=this.j=r),L(this.k,59)?(this.o=this.k.gc(),this.n=this.o):this.p=this.j?this.j.Ki(this.k.gc()):this.k.fd(this.k.gc()),this.p?v_n(this,this.p):O_n(this))return c=this.p?this.p.Ub():this.j?this.j.$i(--this.n):this.k.Xb(--this.n),this.f?(e=u(c,76),e.Lk(),i=e.md(),this.i=i):(i=c,this.i=i),this.g=-3,!0}else if(s!=null)return this.k=null,this.p=null,i=s,this.i=i,this.g=-2,!0}return this.k=null,this.p=null,this.g=-1,!1}else return c=this.p?this.p.Ub():this.j?this.j.$i(--this.n):this.k.Xb(--this.n),this.f?(e=u(c,76),e.Lk(),i=e.md(),this.i=i):(i=c,this.i=i),this.g=-3,!0}},o.Pb=function(){return IC(this)},o.Tb=function(){return this.a},o.Ub=function(){var e;if(this.g<-1||this.Sb())return--this.a,this.g=0,e=this.i,this.Sb(),e;throw T(new nc)},o.Vb=function(){return this.a-1},o.Qb=function(){throw T(new Ie)},o.ul=function(){return!1},o.Wb=function(e){throw T(new Ie)},o.vl=function(){return!0},o.a=0,o.d=0,o.f=!1,o.g=0,o.n=0,o.o=0;var dE;w(Ct,"EContentsEList/FeatureIteratorImpl",287),b(711,287,XP,ZX),o.ul=function(){return!0},w(Ct,"EContentsEList/ResolvingFeatureIteratorImpl",711),b(1178,711,XP,gSn),o.vl=function(){return!1},w(qn,"ENamedElementImpl/1/1",1178),b(1179,287,XP,pSn),o.vl=function(){return!1},w(qn,"ENamedElementImpl/1/2",1179),b(39,152,Wy,V0,UD,Mi,c$,ml,Bs,aQ,JAn,dQ,QAn,OJ,YAn,gQ,ZAn,AJ,nLn,bQ,eLn,H6,ck,TD,wQ,tLn,LJ,iLn),o.Kj=function(){return WJ(this)},o.Rj=function(){var e;return e=WJ(this),e?e.ik():null},o.hj=function(e){return this.b==-1&&this.a&&(this.b=this.c.Hh(this.a.Lj(),this.a.pk())),this.c.yh(this.b,e)},o.jj=function(){return this.c},o.Sj=function(){var e;return e=WJ(this),e?e.tk():!1},o.b=-1,w(qn,"ENotificationImpl",39),b(411,292,{110:1,94:1,93:1,155:1,197:1,58:1,62:1,114:1,481:1,54:1,99:1,158:1,411:1,292:1,119:1,120:1},hL),o.Ah=function(e){return fFn(this,e)},o.Lh=function(e,t,i){var r,c,s;switch(e){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab;case 1:return this.zb;case 2:return _n(),!!(this.Bb&256);case 3:return _n(),!!(this.Bb&512);case 4:return Y(this.s);case 5:return Y(this.t);case 6:return _n(),s=this.t,s>1||s==-1;case 7:return _n(),c=this.s,c>=1;case 8:return t?gs(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?u(this.Cb,29):null;case 11:return!this.d&&(this.d=new Cu(fu,this,11)),this.d;case 12:return!this.c&&(this.c=new q(y0,this,12,10)),this.c;case 13:return!this.a&&(this.a=new I7(this,this)),this.a;case 14:return no(this)}return zo(this,e-se((An(),I1)),$n((r=u(Un(this,16),29),r||I1),e),t,i)},o.Sh=function(e,t,i){var r,c,s;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Xc(this.Ab,e,i);case 10:return this.Cb&&(i=(c=this.Db>>16,c>=0?fFn(this,i):this.Cb.Th(this,-1-c,null,i))),Po(this,e,10,i);case 12:return!this.c&&(this.c=new q(y0,this,12,10)),Xc(this.c,e,i)}return s=u($n((r=u(Un(this,16),29),r||(An(),I1)),t),69),s.wk().zk(this,iu(this),t-se((An(),I1)),e,i)},o.Uh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),cr(this.Ab,e,i);case 9:return hD(this,i);case 10:return Po(this,null,10,i);case 11:return!this.d&&(this.d=new Cu(fu,this,11)),cr(this.d,e,i);case 12:return!this.c&&(this.c=new q(y0,this,12,10)),cr(this.c,e,i);case 14:return cr(no(this),e,i)}return c=u($n((r=u(Un(this,16),29),r||(An(),I1)),t),69),c.wk().Ak(this,iu(this),t-se((An(),I1)),e,i)},o.Wh=function(e){var t,i,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 r=this.t,r>1||r==-1;case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&vb(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&vb(this.q).i==0);case 10:return!!(this.Db>>16==10&&u(this.Cb,29));case 11:return!!this.d&&this.d.i!=0;case 12:return!!this.c&&this.c.i!=0;case 13:return!!this.a&&no(this.a.a).i!=0&&!(this.b&&Ax(this.b));case 14:return!!this.b&&Ax(this.b)}return Uo(this,e-se((An(),I1)),$n((t=u(Un(this,16),29),t||I1),e))},o.bi=function(e,t){var i,r;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab),!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Kt(this.Ab,u(t,16));return;case 1:zc(this,Ae(t));return;case 2:c1(this,on(un(t)));return;case 3:u1(this,on(un(t)));return;case 4:e1(this,u(t,17).a);return;case 5:Z0(this,u(t,17).a);return;case 8:ad(this,u(t,142));return;case 9:r=Kf(this,u(t,89),null),r&&r.oj();return;case 11:!this.d&&(this.d=new Cu(fu,this,11)),me(this.d),!this.d&&(this.d=new Cu(fu,this,11)),Kt(this.d,u(t,16));return;case 12:!this.c&&(this.c=new q(y0,this,12,10)),me(this.c),!this.c&&(this.c=new q(y0,this,12,10)),Kt(this.c,u(t,16));return;case 13:!this.a&&(this.a=new I7(this,this)),X5(this.a),!this.a&&(this.a=new I7(this,this)),Kt(this.a,u(t,16));return;case 14:me(no(this)),Kt(no(this),u(t,16));return}Jo(this,e-se((An(),I1)),$n((i=u(Un(this,16),29),i||I1),e),t)},o.ii=function(){return An(),I1},o.ki=function(e){var t,i;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab);return;case 1:zc(this,null);return;case 2:c1(this,!0);return;case 3:u1(this,!0);return;case 4:e1(this,0);return;case 5:Z0(this,1);return;case 8:ad(this,null);return;case 9:i=Kf(this,null,null),i&&i.oj();return;case 11:!this.d&&(this.d=new Cu(fu,this,11)),me(this.d);return;case 12:!this.c&&(this.c=new q(y0,this,12,10)),me(this.c);return;case 13:this.a&&X5(this.a);return;case 14:this.b&&me(this.b);return}Wo(this,e-se((An(),I1)),$n((t=u(Un(this,16),29),t||I1),e))},o.pi=function(){var e,t;if(this.c)for(e=0,t=this.c.i;e<t;++e)C7(N(this.c,e));gs(this),this.Bb|=1},w(qn,"EOperationImpl",411),b(513,756,Gcn,I7),o.qj=function(e,t){uae(this,e,u(t,142))},o.rj=function(e){Xle(this,u(e,142))},o.xj=function(e){var t,i;return t=u(N(no(this.a),e),89),i=t.c,i||(An(),Zf)},o.Cj=function(e){var t,i;return t=u(dw(no(this.a),e),89),i=t.c,i||(An(),Zf)},o.Dj=function(e,t){return V8e(this,e,u(t,142))},o.Li=function(){return!1},o.Ij=function(e,t,i,r,c){return null},o.sj=function(){return new jyn(this)},o.tj=function(){me(no(this.a))},o.uj=function(e){return bKn(this,e)},o.vj=function(e){var t,i;for(i=e.Kc();i.Ob();)if(t=i.Pb(),!bKn(this,t))return!1;return!0},o.wj=function(e){var t,i,r;if(L(e,15)&&(r=u(e,15),r.gc()==no(this.a).i)){for(t=r.Kc(),i=new ne(this);t.Ob();)if(x(t.Pb())!==x(ue(i)))return!1;return!0}return!1},o.yj=function(){var e,t,i,r,c;for(i=1,t=new ne(no(this.a));t.e!=t.i.gc();)e=u(ue(t),89),r=(c=e.c,c||(An(),Zf)),i=31*i+(r?mt(r):0);return i},o.zj=function(e){var t,i,r,c;for(r=0,i=new ne(no(this.a));i.e!=i.i.gc();){if(t=u(ue(i),89),x(e)===x((c=t.c,c||(An(),Zf))))return r;++r}return-1},o.Aj=function(){return no(this.a).i==0},o.Bj=function(){return null},o.Ej=function(){return no(this.a).i},o.Fj=function(){var e,t,i,r,c,s;for(s=no(this.a).i,c=F(ki,Kn,1,s,5,1),i=0,t=new ne(no(this.a));t.e!=t.i.gc();)e=u(ue(t),89),c[i++]=(r=e.c,r||(An(),Zf));return c},o.Gj=function(e){var t,i,r,c,s,f,h;for(h=no(this.a).i,e.length<h&&(c=gk(wo(e).c,h),e=c),e.length>h&&$t(e,h,null),r=0,i=new ne(no(this.a));i.e!=i.i.gc();)t=u(ue(i),89),s=(f=t.c,f||(An(),Zf)),$t(e,r++,s);return e},o.Hj=function(){var e,t,i,r,c;for(c=new Hl,c.a+="[",e=no(this.a),t=0,r=no(this.a).i;t<r;)Er(c,A6((i=u(N(e,t),89).c,i||(An(),Zf)))),++t<r&&(c.a+=ur);return c.a+="]",c.a},o.Jj=function(e){},o.Lj=function(){return 13},o.kl=function(){return!0},o.Mj=function(){return!1},o.ll=function(){return!1},o.ml=function(){return!1},o.nl=function(){return!0},o.al=function(){return!1},o.ol=function(){return!0},o.fk=function(e){return L(e,142)},o.Qj=function(){return Ppe(this.a)},o.Si=function(){return!0},o.Yi=function(){return!0},w(qn,"EOperationImpl/1",513),b(1376,2062,Bm,jyn),o.fd=function(e){return pk(this.a,e)},o.gc=function(){return no(this.a.a).i},w(qn,"EOperationImpl/1/1",1376),b(1377,555,Qr,vIn),o.Ti=function(e,t){var i,r;return i=u(k5(this,e,t),89),fo(this.e)&&t4(this,new ck(this.a,7,(An(),Goe),Y(t),(r=i.c,r||Zf),e)),i},o.Uj=function(e,t){return h5e(this,u(e,89),t)},o.Vj=function(e,t){return f5e(this,u(e,89),t)},o.Wj=function(e,t,i){return o9e(this,u(e,89),u(t,89),i)},o.Ij=function(e,t,i,r,c){switch(e){case 3:return W6(this,e,t,i,r,this.i>1);case 5:return W6(this,e,t,i,r,this.i-u(i,15).gc()>0);default:return new ml(this.e,e,this.c,t,i,r,!0)}},o.Tj=function(){return!0},o.Qj=function(){return Ax(this)},o.Gk=function(){me(this)},w(qn,"EOperationImpl/2",1377),b(507,1,{2037:1,507:1},NTn),w(qn,"EPackageImpl/1",507),b(14,83,Qr,q),o.il=function(){return this.d},o.jl=function(){return this.b},o.ml=function(){return!0},o.b=0,w(Ct,"EObjectContainmentWithInverseEList",14),b(365,14,Qr,jp),o.nl=function(){return!0},o.Wi=function(e,t){return e3(this,e,u(t,58))},w(Ct,"EObjectContainmentWithInverseEList/Resolving",365),b(308,365,Qr,H0),o.Ni=function(){this.a.tb=null},w(qn,"EPackageImpl/2",308),b(1278,1,{},qse),w(qn,"EPackageImpl/3",1278),b(733,45,n2,ez),o._b=function(e){return Si(e)?SD(this,e):!!wr(this.f,e)},w(qn,"EPackageRegistryImpl",733),b(518,292,{110:1,94:1,93:1,155:1,197:1,58:1,2116:1,114:1,481:1,54:1,99:1,158:1,518:1,292:1,119:1,120:1},lL),o.Ah=function(e){return hFn(this,e)},o.Lh=function(e,t,i){var r,c,s;switch(e){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab;case 1:return this.zb;case 2:return _n(),!!(this.Bb&256);case 3:return _n(),!!(this.Bb&512);case 4:return Y(this.s);case 5:return Y(this.t);case 6:return _n(),s=this.t,s>1||s==-1;case 7:return _n(),c=this.s,c>=1;case 8:return t?gs(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?u(this.Cb,62):null}return zo(this,e-se((An(),ig)),$n((r=u(Un(this,16),29),r||ig),e),t,i)},o.Sh=function(e,t,i){var r,c,s;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Xc(this.Ab,e,i);case 10:return this.Cb&&(i=(c=this.Db>>16,c>=0?hFn(this,i):this.Cb.Th(this,-1-c,null,i))),Po(this,e,10,i)}return s=u($n((r=u(Un(this,16),29),r||(An(),ig)),t),69),s.wk().zk(this,iu(this),t-se((An(),ig)),e,i)},o.Uh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),cr(this.Ab,e,i);case 9:return hD(this,i);case 10:return Po(this,null,10,i)}return c=u($n((r=u(Un(this,16),29),r||(An(),ig)),t),69),c.wk().Ak(this,iu(this),t-se((An(),ig)),e,i)},o.Wh=function(e){var t,i,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 r=this.t,r>1||r==-1;case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&vb(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&vb(this.q).i==0);case 10:return!!(this.Db>>16==10&&u(this.Cb,62))}return Uo(this,e-se((An(),ig)),$n((t=u(Un(this,16),29),t||ig),e))},o.ii=function(){return An(),ig},w(qn,"EParameterImpl",518),b(102,462,{110:1,94:1,93:1,155:1,197:1,58:1,19:1,179:1,69:1,114:1,481:1,54:1,99:1,158:1,102:1,462:1,292:1,119:1,120:1,692:1},rV),o.Lh=function(e,t,i){var r,c,s,f;switch(e){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab;case 1:return this.zb;case 2:return _n(),!!(this.Bb&256);case 3:return _n(),!!(this.Bb&512);case 4:return Y(this.s);case 5:return Y(this.t);case 6:return _n(),f=this.t,f>1||f==-1;case 7:return _n(),c=this.s,c>=1;case 8:return t?gs(this):this.r;case 9:return this.q;case 10:return _n(),!!(this.Bb&Gs);case 11:return _n(),!!(this.Bb&Cw);case 12:return _n(),!!(this.Bb&vw);case 13:return this.j;case 14:return Cm(this);case 15:return _n(),!!(this.Bb&$u);case 16:return _n(),!!(this.Bb&wh);case 17:return G0(this);case 18:return _n(),!!(this.Bb&kc);case 19:return _n(),s=br(this),!!(s&&s.Bb&kc);case 20:return _n(),!!(this.Bb&hr);case 21:return t?br(this):this.b;case 22:return t?eY(this):SNn(this);case 23:return!this.a&&(this.a=new Eg(ng,this,23)),this.a}return zo(this,e-se((An(),U2)),$n((r=u(Un(this,16),29),r||U2),e),t,i)},o.Wh=function(e){var t,i,r,c;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 c=this.t,c>1||c==-1;case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&vb(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&vb(this.q).i==0);case 10:return(this.Bb&Gs)==0;case 11:return(this.Bb&Cw)!=0;case 12:return(this.Bb&vw)!=0;case 13:return this.j!=null;case 14:return Cm(this)!=null;case 15:return(this.Bb&$u)!=0;case 16:return(this.Bb&wh)!=0;case 17:return!!G0(this);case 18:return(this.Bb&kc)!=0;case 19:return r=br(this),!!r&&(r.Bb&kc)!=0;case 20:return(this.Bb&hr)==0;case 21:return!!this.b;case 22:return!!SNn(this);case 23:return!!this.a&&this.a.i!=0}return Uo(this,e-se((An(),U2)),$n((t=u(Un(this,16),29),t||U2),e))},o.bi=function(e,t){var i,r;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab),!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Kt(this.Ab,u(t,16));return;case 1:RD(this,Ae(t));return;case 2:c1(this,on(un(t)));return;case 3:u1(this,on(un(t)));return;case 4:e1(this,u(t,17).a);return;case 5:Z0(this,u(t,17).a);return;case 8:ad(this,u(t,142));return;case 9:r=Kf(this,u(t,89),null),r&&r.oj();return;case 10:fm(this,on(un(t)));return;case 11:am(this,on(un(t)));return;case 12:hm(this,on(un(t)));return;case 13:bX(this,Ae(t));return;case 15:lm(this,on(un(t)));return;case 16:dm(this,on(un(t)));return;case 18:S2e(this,on(un(t)));return;case 20:NY(this,on(un(t)));return;case 21:AQ(this,u(t,19));return;case 23:!this.a&&(this.a=new Eg(ng,this,23)),me(this.a),!this.a&&(this.a=new Eg(ng,this,23)),Kt(this.a,u(t,16));return}Jo(this,e-se((An(),U2)),$n((i=u(Un(this,16),29),i||U2),e),t)},o.ii=function(){return An(),U2},o.ki=function(e){var t,i;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab);return;case 1:L(this.Cb,90)&&hw(Zu(u(this.Cb,90)),4),zc(this,null);return;case 2:c1(this,!0);return;case 3:u1(this,!0);return;case 4:e1(this,0);return;case 5:Z0(this,1);return;case 8:ad(this,null);return;case 9:i=Kf(this,null,null),i&&i.oj();return;case 10:fm(this,!0);return;case 11:am(this,!1);return;case 12:hm(this,!1);return;case 13:this.i=null,kC(this,null);return;case 15:lm(this,!1);return;case 16:dm(this,!1);return;case 18:LY(this,!1),L(this.Cb,90)&&hw(Zu(u(this.Cb,90)),2);return;case 20:NY(this,!0);return;case 21:AQ(this,null);return;case 23:!this.a&&(this.a=new Eg(ng,this,23)),me(this.a);return}Wo(this,e-se((An(),U2)),$n((t=u(Un(this,16),29),t||U2),e))},o.pi=function(){eY(this),I4(Nr((Lu(),zi),this)),gs(this),this.Bb|=1},o.uk=function(){return br(this)},o._k=function(){var e;return e=br(this),!!e&&(e.Bb&kc)!=0},o.al=function(){return(this.Bb&kc)!=0},o.bl=function(){return(this.Bb&hr)!=0},o.Yk=function(e,t){return this.c=null,jY(this,e,t)},o.Ib=function(){var e;return this.Db&64?$S(this):(e=new ls($S(this)),e.a+=" (containment: ",ql(e,(this.Bb&kc)!=0),e.a+=", resolveProxies: ",ql(e,(this.Bb&hr)!=0),e.a+=")",e.a)},w(qn,"EReferenceImpl",102),b(561,120,{110:1,44:1,94:1,93:1,136:1,58:1,114:1,54:1,99:1,561:1,119:1,120:1},Tvn),o.Fb=function(e){return this===e},o.ld=function(){return this.b},o.md=function(){return this.c},o.Hb=function(){return lb(this)},o.Di=function(e){L0e(this,Ae(e))},o.nd=function(e){return p0e(this,Ae(e))},o.Lh=function(e,t,i){var r;switch(e){case 0:return this.b;case 1:return this.c}return zo(this,e-se((An(),ar)),$n((r=u(Un(this,16),29),r||ar),e),t,i)},o.Wh=function(e){var t;switch(e){case 0:return this.b!=null;case 1:return this.c!=null}return Uo(this,e-se((An(),ar)),$n((t=u(Un(this,16),29),t||ar),e))},o.bi=function(e,t){var i;switch(e){case 0:N0e(this,Ae(t));return;case 1:PQ(this,Ae(t));return}Jo(this,e-se((An(),ar)),$n((i=u(Un(this,16),29),i||ar),e),t)},o.ii=function(){return An(),ar},o.ki=function(e){var t;switch(e){case 0:SQ(this,null);return;case 1:PQ(this,null);return}Wo(this,e-se((An(),ar)),$n((t=u(Un(this,16),29),t||ar),e))},o.Bi=function(){var e;return this.a==-1&&(e=this.b,this.a=e==null?0:t1(e)),this.a},o.Ci=function(e){this.a=e},o.Ib=function(){var e;return this.Db&64?Hs(this):(e=new ls(Hs(this)),e.a+=" (key: ",Er(e,this.b),e.a+=", value: ",Er(e,this.c),e.a+=")",e.a)},o.a=-1,o.b=null,o.c=null;var pc=w(qn,"EStringToStringMapEntryImpl",561),Qoe=Dt(Ct,"FeatureMap/Entry/Internal");b(576,1,VP),o.xl=function(e){return this.yl(u(e,54))},o.yl=function(e){return this.xl(e)},o.Fb=function(e){var t,i;return this===e?!0:L(e,76)?(t=u(e,76),t.Lk()==this.c?(i=this.md(),i==null?t.md()==null:rt(i,t.md())):!1):!1},o.Lk=function(){return this.c},o.Hb=function(){var e;return e=this.md(),mt(this.c)^(e==null?0:mt(e))},o.Ib=function(){var e,t;return e=this.c,t=jo(e.qk()).yi(),e.xe(),(t!=null&&t.length!=0?t+":"+e.xe():e.xe())+"="+this.md()},w(qn,"EStructuralFeatureImpl/BasicFeatureMapEntry",576),b(791,576,VP,dV),o.yl=function(e){return new dV(this.c,e)},o.md=function(){return this.a},o.zl=function(e,t,i){return gve(this,e,this.a,t,i)},o.Al=function(e,t,i){return pve(this,e,this.a,t,i)},w(qn,"EStructuralFeatureImpl/ContainmentUpdatingFeatureMapEntry",791),b(1350,1,{},DTn),o.yk=function(e,t,i,r,c){var s;return s=u(x4(e,this.b),220),s.Yl(this.a).Fk(r)},o.zk=function(e,t,i,r,c){var s;return s=u(x4(e,this.b),220),s.Pl(this.a,r,c)},o.Ak=function(e,t,i,r,c){var s;return s=u(x4(e,this.b),220),s.Ql(this.a,r,c)},o.Bk=function(e,t,i){var r;return r=u(x4(e,this.b),220),r.Yl(this.a).Qj()},o.Ck=function(e,t,i,r){var c;c=u(x4(e,this.b),220),c.Yl(this.a).Wb(r)},o.Dk=function(e,t,i){return u(x4(e,this.b),220).Yl(this.a)},o.Ek=function(e,t,i){var r;r=u(x4(e,this.b),220),r.Yl(this.a).Gk()},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateFeatureMapDelegator",1350),b(91,1,{},Xl,Za,Wl,rd),o.yk=function(e,t,i,r,c){var s;if(s=t.li(i),s==null&&t.mi(i,s=XS(this,e)),!c)switch(this.e){case 50:case 41:return u(s,597).bk();case 40:return u(s,220).Vl()}return s},o.zk=function(e,t,i,r,c){var s,f;return f=t.li(i),f==null&&t.mi(i,f=XS(this,e)),s=u(f,71).Wk(r,c),s},o.Ak=function(e,t,i,r,c){var s;return s=t.li(i),s!=null&&(c=u(s,71).Xk(r,c)),c},o.Bk=function(e,t,i){var r;return r=t.li(i),r!=null&&u(r,79).Qj()},o.Ck=function(e,t,i,r){var c;c=u(t.li(i),79),!c&&t.mi(i,c=XS(this,e)),c.Wb(r)},o.Dk=function(e,t,i){var r,c;return c=t.li(i),c==null&&t.mi(i,c=XS(this,e)),L(c,79)?u(c,79):(r=u(t.li(i),15),new Eyn(r))},o.Ek=function(e,t,i){var r;r=u(t.li(i),79),!r&&t.mi(i,r=XS(this,e)),r.Gk()},o.b=0,o.e=0,w(qn,"EStructuralFeatureImpl/InternalSettingDelegateMany",91),b(512,1,{}),o.zk=function(e,t,i,r,c){throw T(new Ie)},o.Ak=function(e,t,i,r,c){throw T(new Ie)},o.Dk=function(e,t,i){return new LOn(this,e,t,i)};var rl;w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingle",512),b(1367,1,CF,LOn),o.Fk=function(e){return this.a.yk(this.c,this.d,this.b,e,!0)},o.Qj=function(){return this.a.Bk(this.c,this.d,this.b)},o.Wb=function(e){this.a.Ck(this.c,this.d,this.b,e)},o.Gk=function(){this.a.Ek(this.c,this.d,this.b)},o.b=0,w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingle/1",1367),b(784,512,{},eJ),o.yk=function(e,t,i,r,c){return SR(e,e.Ph(),e.Fh())==this.b?this.bl()&&r?dR(e):e.Ph():null},o.zk=function(e,t,i,r,c){var s,f;return e.Ph()&&(c=(s=e.Fh(),s>=0?e.Ah(c):e.Ph().Th(e,-1-s,null,c))),f=At(e.Dh(),this.e),e.Ch(r,f,c)},o.Ak=function(e,t,i,r,c){var s;return s=At(e.Dh(),this.e),e.Ch(null,s,c)},o.Bk=function(e,t,i){var r;return r=At(e.Dh(),this.e),!!e.Ph()&&e.Fh()==r},o.Ck=function(e,t,i,r){var c,s,f,h,l;if(r!=null&&!AR(this.a,r))throw T(new i4(WP+(L(r,58)?HZ(u(r,58).Dh()):sQ(wo(r)))+JP+this.a+"'"));if(c=e.Ph(),f=At(e.Dh(),this.e),x(r)!==x(c)||e.Fh()!=f&&r!=null){if(mm(e,u(r,58)))throw T(new Gn(w8+e.Ib()));l=null,c&&(l=(s=e.Fh(),s>=0?e.Ah(l):e.Ph().Th(e,-1-s,null,l))),h=u(r,54),h&&(l=h.Rh(e,At(h.Dh(),this.b),null,l)),l=e.Ch(h,f,l),l&&l.oj()}else e.vh()&&e.wh()&&it(e,new Mi(e,1,f,r,r))},o.Ek=function(e,t,i){var r,c,s,f;r=e.Ph(),r?(f=(c=e.Fh(),c>=0?e.Ah(null):e.Ph().Th(e,-1-c,null,null)),s=At(e.Dh(),this.e),f=e.Ch(null,s,f),f&&f.oj()):e.vh()&&e.wh()&&it(e,new H6(e,1,this.e,null,null))},o.bl=function(){return!1},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainer",784),b(1351,784,{},jPn),o.bl=function(){return!0},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainerResolving",1351),b(574,512,{}),o.yk=function(e,t,i,r,c){var s;return s=t.li(i),s==null?this.b:x(s)===x(rl)?null:s},o.Bk=function(e,t,i){var r;return r=t.li(i),r!=null&&(x(r)===x(rl)||!rt(r,this.b))},o.Ck=function(e,t,i,r){var c,s;e.vh()&&e.wh()?(c=(s=t.li(i),s==null?this.b:x(s)===x(rl)?null:s),r==null?this.c!=null?(t.mi(i,null),r=this.b):this.b!=null?t.mi(i,rl):t.mi(i,null):(this.Bl(r),t.mi(i,r)),it(e,this.d.Cl(e,1,this.e,c,r))):r==null?this.c!=null?t.mi(i,null):this.b!=null?t.mi(i,rl):t.mi(i,null):(this.Bl(r),t.mi(i,r))},o.Ek=function(e,t,i){var r,c;e.vh()&&e.wh()?(r=(c=t.li(i),c==null?this.b:x(c)===x(rl)?null:c),t.ni(i),it(e,this.d.Cl(e,1,this.e,r,this.b))):t.ni(i)},o.Bl=function(e){throw T(new Dyn)},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData",574),b(h2,1,{},Cvn),o.Cl=function(e,t,i,r,c){return new H6(e,t,i,r,c)},o.Dl=function(e,t,i,r,c,s){return new TD(e,t,i,r,c,s)};var zdn,Xdn,Vdn,Wdn,Jdn,Qdn,Ydn,TU,Zdn;w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator",h2),b(1368,h2,{},Svn),o.Cl=function(e,t,i,r,c){return new LJ(e,t,i,on(un(r)),on(un(c)))},o.Dl=function(e,t,i,r,c,s){return new iLn(e,t,i,on(un(r)),on(un(c)),s)},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/1",1368),b(1369,h2,{},Pvn),o.Cl=function(e,t,i,r,c){return new aQ(e,t,i,u(r,222).a,u(c,222).a)},o.Dl=function(e,t,i,r,c,s){return new JAn(e,t,i,u(r,222).a,u(c,222).a,s)},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/2",1369),b(1370,h2,{},Ivn),o.Cl=function(e,t,i,r,c){return new dQ(e,t,i,u(r,180).a,u(c,180).a)},o.Dl=function(e,t,i,r,c,s){return new QAn(e,t,i,u(r,180).a,u(c,180).a,s)},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/3",1370),b(1371,h2,{},Ovn),o.Cl=function(e,t,i,r,c){return new OJ(e,t,i,$(B(r)),$(B(c)))},o.Dl=function(e,t,i,r,c,s){return new YAn(e,t,i,$(B(r)),$(B(c)),s)},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/4",1371),b(1372,h2,{},Avn),o.Cl=function(e,t,i,r,c){return new gQ(e,t,i,u(r,161).a,u(c,161).a)},o.Dl=function(e,t,i,r,c,s){return new ZAn(e,t,i,u(r,161).a,u(c,161).a,s)},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/5",1372),b(1373,h2,{},Lvn),o.Cl=function(e,t,i,r,c){return new AJ(e,t,i,u(r,17).a,u(c,17).a)},o.Dl=function(e,t,i,r,c,s){return new nLn(e,t,i,u(r,17).a,u(c,17).a,s)},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/6",1373),b(1374,h2,{},Nvn),o.Cl=function(e,t,i,r,c){return new bQ(e,t,i,u(r,168).a,u(c,168).a)},o.Dl=function(e,t,i,r,c,s){return new eLn(e,t,i,u(r,168).a,u(c,168).a,s)},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/7",1374),b(1375,h2,{},Dvn),o.Cl=function(e,t,i,r,c){return new wQ(e,t,i,u(r,191).a,u(c,191).a)},o.Dl=function(e,t,i,r,c,s){return new tLn(e,t,i,u(r,191).a,u(c,191).a,s)},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/8",1375),b(1353,574,{},NOn),o.Bl=function(e){if(!this.a.fk(e))throw T(new i4(WP+wo(e)+JP+this.a+"'"))},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataDynamic",1353),b(1354,574,{},kIn),o.Bl=function(e){},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataStatic",1354),b(785,574,{}),o.Bk=function(e,t,i){var r;return r=t.li(i),r!=null},o.Ck=function(e,t,i,r){var c,s;e.vh()&&e.wh()?(c=!0,s=t.li(i),s==null?(c=!1,s=this.b):x(s)===x(rl)&&(s=null),r==null?this.c!=null?(t.mi(i,null),r=this.b):t.mi(i,rl):(this.Bl(r),t.mi(i,r)),it(e,this.d.Dl(e,1,this.e,s,r,!c))):r==null?this.c!=null?t.mi(i,null):t.mi(i,rl):(this.Bl(r),t.mi(i,r))},o.Ek=function(e,t,i){var r,c;e.vh()&&e.wh()?(r=!0,c=t.li(i),c==null?(r=!1,c=this.b):x(c)===x(rl)&&(c=null),t.ni(i),it(e,this.d.Dl(e,2,this.e,c,this.b,r))):t.ni(i)},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettable",785),b(1355,785,{},DOn),o.Bl=function(e){if(!this.a.fk(e))throw T(new i4(WP+wo(e)+JP+this.a+"'"))},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableDynamic",1355),b(1356,785,{},yIn),o.Bl=function(e){},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableStatic",1356),b(410,512,{},oT),o.yk=function(e,t,i,r,c){var s,f,h,l,a;if(a=t.li(i),this.tk()&&x(a)===x(rl))return null;if(this.bl()&&r&&a!=null){if(h=u(a,54),h.Vh()&&(l=ea(e,h),h!=l)){if(!AR(this.a,l))throw T(new i4(WP+wo(l)+JP+this.a+"'"));t.mi(i,a=l),this.al()&&(s=u(l,54),f=h.Th(e,this.b?At(h.Dh(),this.b):-1-At(e.Dh(),this.e),null,null),!s.Ph()&&(f=s.Rh(e,this.b?At(s.Dh(),this.b):-1-At(e.Dh(),this.e),null,f)),f&&f.oj()),e.vh()&&e.wh()&&it(e,new H6(e,9,this.e,h,l))}return a}else return a},o.zk=function(e,t,i,r,c){var s,f;return f=t.li(i),x(f)===x(rl)&&(f=null),t.mi(i,r),this.Mj()?x(f)!==x(r)&&f!=null&&(s=u(f,54),c=s.Th(e,At(s.Dh(),this.b),null,c)):this.al()&&f!=null&&(c=u(f,54).Th(e,-1-At(e.Dh(),this.e),null,c)),e.vh()&&e.wh()&&(!c&&(c=new R1(4)),c.nj(new H6(e,1,this.e,f,r))),c},o.Ak=function(e,t,i,r,c){var s;return s=t.li(i),x(s)===x(rl)&&(s=null),t.ni(i),e.vh()&&e.wh()&&(!c&&(c=new R1(4)),this.tk()?c.nj(new H6(e,2,this.e,s,null)):c.nj(new H6(e,1,this.e,s,null))),c},o.Bk=function(e,t,i){var r;return r=t.li(i),r!=null},o.Ck=function(e,t,i,r){var c,s,f,h,l;if(r!=null&&!AR(this.a,r))throw T(new i4(WP+(L(r,58)?HZ(u(r,58).Dh()):sQ(wo(r)))+JP+this.a+"'"));l=t.li(i),h=l!=null,this.tk()&&x(l)===x(rl)&&(l=null),f=null,this.Mj()?x(l)!==x(r)&&(l!=null&&(c=u(l,54),f=c.Th(e,At(c.Dh(),this.b),null,f)),r!=null&&(c=u(r,54),f=c.Rh(e,At(c.Dh(),this.b),null,f))):this.al()&&x(l)!==x(r)&&(l!=null&&(f=u(l,54).Th(e,-1-At(e.Dh(),this.e),null,f)),r!=null&&(f=u(r,54).Rh(e,-1-At(e.Dh(),this.e),null,f))),r==null&&this.tk()?t.mi(i,rl):t.mi(i,r),e.vh()&&e.wh()?(s=new TD(e,1,this.e,l,r,this.tk()&&!h),f?(f.nj(s),f.oj()):it(e,s)):f&&f.oj()},o.Ek=function(e,t,i){var r,c,s,f,h;h=t.li(i),f=h!=null,this.tk()&&x(h)===x(rl)&&(h=null),s=null,h!=null&&(this.Mj()?(r=u(h,54),s=r.Th(e,At(r.Dh(),this.b),null,s)):this.al()&&(s=u(h,54).Th(e,-1-At(e.Dh(),this.e),null,s))),t.ni(i),e.vh()&&e.wh()?(c=new TD(e,this.tk()?2:1,this.e,h,null,f),s?(s.nj(c),s.oj()):it(e,c)):s&&s.oj()},o.Mj=function(){return!1},o.al=function(){return!1},o.bl=function(){return!1},o.tk=function(){return!1},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObject",410),b(575,410,{},IN),o.al=function(){return!0},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainment",575),b(1359,575,{},vSn),o.bl=function(){return!0},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentResolving",1359),b(787,575,{},nV),o.tk=function(){return!0},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettable",787),b(1361,787,{},kSn),o.bl=function(){return!0},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettableResolving",1361),b(650,575,{},HN),o.Mj=function(){return!0},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverse",650),b(1360,650,{},EPn),o.bl=function(){return!0},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseResolving",1360),b(788,650,{},FV),o.tk=function(){return!0},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettable",788),b(1362,788,{},MPn),o.bl=function(){return!0},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettableResolving",1362),b(651,410,{},eV),o.bl=function(){return!0},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolving",651),b(1363,651,{},ySn),o.tk=function(){return!0},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingUnsettable",1363),b(789,651,{},KV),o.Mj=function(){return!0},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverse",789),b(1364,789,{},TPn),o.tk=function(){return!0},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverseUnsettable",1364),b(1357,410,{},jSn),o.tk=function(){return!0},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectUnsettable",1357),b(786,410,{},BV),o.Mj=function(){return!0},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverse",786),b(1358,786,{},CPn),o.tk=function(){return!0},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverseUnsettable",1358),b(790,576,VP,xW),o.yl=function(e){return new xW(this.a,this.c,e)},o.md=function(){return this.b},o.zl=function(e,t,i){return b4e(this,e,this.b,i)},o.Al=function(e,t,i){return w4e(this,e,this.b,i)},w(qn,"EStructuralFeatureImpl/InverseUpdatingFeatureMapEntry",790),b(1365,1,CF,Eyn),o.Fk=function(e){return this.a},o.Qj=function(){return L(this.a,97)?u(this.a,97).Qj():!this.a.dc()},o.Wb=function(e){this.a.$b(),this.a.Gc(u(e,15))},o.Gk=function(){L(this.a,97)?u(this.a,97).Gk():this.a.$b()},w(qn,"EStructuralFeatureImpl/SettingMany",1365),b(1366,576,VP,VLn),o.xl=function(e){return new LN((at(),R9),this.b.ri(this.a,e))},o.md=function(){return null},o.zl=function(e,t,i){return i},o.Al=function(e,t,i){return i},w(qn,"EStructuralFeatureImpl/SimpleContentFeatureMapEntry",1366),b(652,576,VP,LN),o.xl=function(e){return new LN(this.c,e)},o.md=function(){return this.a},o.zl=function(e,t,i){return i},o.Al=function(e,t,i){return i},w(qn,"EStructuralFeatureImpl/SimpleFeatureMapEntry",652),b(403,506,Mh,W3),o.aj=function(e){return F(Ss,Kn,29,e,0,1)},o.Yi=function(){return!1},w(qn,"ESuperAdapter/1",403),b(457,448,{110:1,94:1,93:1,155:1,197:1,58:1,114:1,850:1,54:1,99:1,158:1,457:1,119:1,120:1},UA),o.Lh=function(e,t,i){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab;case 1:return this.zb;case 2:return!this.a&&(this.a=new K6(this,jr,this)),this.a}return zo(this,e-se((An(),E0)),$n((r=u(Un(this,16),29),r||E0),e),t,i)},o.Uh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),cr(this.Ab,e,i);case 2:return!this.a&&(this.a=new K6(this,jr,this)),cr(this.a,e,i)}return c=u($n((r=u(Un(this,16),29),r||(An(),E0)),t),69),c.wk().Ak(this,iu(this),t-se((An(),E0)),e,i)},o.Wh=function(e){var t;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 Uo(this,e-se((An(),E0)),$n((t=u(Un(this,16),29),t||E0),e))},o.bi=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab),!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Kt(this.Ab,u(t,16));return;case 1:zc(this,Ae(t));return;case 2:!this.a&&(this.a=new K6(this,jr,this)),me(this.a),!this.a&&(this.a=new K6(this,jr,this)),Kt(this.a,u(t,16));return}Jo(this,e-se((An(),E0)),$n((i=u(Un(this,16),29),i||E0),e),t)},o.ii=function(){return An(),E0},o.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab);return;case 1:zc(this,null);return;case 2:!this.a&&(this.a=new K6(this,jr,this)),me(this.a);return}Wo(this,e-se((An(),E0)),$n((t=u(Un(this,16),29),t||E0),e))},w(qn,"ETypeParameterImpl",457),b(458,83,Qr,K6),o.Nj=function(e,t){return Iye(this,u(e,89),t)},o.Oj=function(e,t){return Oye(this,u(e,89),t)},w(qn,"ETypeParameterImpl/1",458),b(647,45,n2,aL),o.ec=function(){return new DE(this)},w(qn,"ETypeParameterImpl/2",647),b(570,Ff,Nu,DE),o.Fc=function(e){return VSn(this,u(e,89))},o.Gc=function(e){var t,i,r;for(r=!1,i=e.Kc();i.Ob();)t=u(i.Pb(),89),Ve(this.a,t,"")==null&&(r=!0);return r},o.$b=function(){Hu(this.a)},o.Hc=function(e){return Zc(this.a,e)},o.Kc=function(){var e;return e=new sd(new Ua(this.a).a),new $E(e)},o.Mc=function(e){return KNn(this,e)},o.gc=function(){return c6(this.a)},w(qn,"ETypeParameterImpl/2/1",570),b(571,1,Pi,$E),o.Nb=function(e){_i(this,e)},o.Pb=function(){return u(Nb(this.a).ld(),89)},o.Ob=function(){return this.a.b},o.Qb=function(){XDn(this.a)},w(qn,"ETypeParameterImpl/2/1/1",571),b(1329,45,n2,djn),o._b=function(e){return Si(e)?SD(this,e):!!wr(this.f,e)},o.xc=function(e){var t,i;return t=Si(e)?Dc(this,e):Fr(wr(this.f,e)),L(t,851)?(i=u(t,851),t=i.Kk(),Ve(this,u(e,241),t),t):t??(e==null?(AL(),Zoe):null)},w(qn,"EValidatorRegistryImpl",1329),b(1349,720,{110:1,94:1,93:1,480:1,155:1,58:1,114:1,2040:1,54:1,99:1,158:1,119:1,120:1},$vn),o.ri=function(e,t){switch(e.hk()){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 t==null?null:Jr(t);case 25:return Cme(t);case 27:return F4e(t);case 28:return _4e(t);case 29:return t==null?null:TCn(A9[0],u(t,206));case 41:return t==null?"":Xa(u(t,297));case 42:return Jr(t);case 50:return Ae(t);default:throw T(new Gn(ev+e.xe()+n0))}},o.si=function(e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P;switch(e.G==-1&&(e.G=(p=jo(e),p?f1(p.vi(),e):-1)),e.G){case 0:return i=new fL,i;case 1:return t=new eG,t;case 2:return r=new cG,r;case 4:return c=new xE,c;case 5:return s=new ajn,s;case 6:return f=new Ryn,f;case 7:return h=new uG,h;case 10:return a=new TE,a;case 11:return d=new hL,d;case 12:return g=new HOn,g;case 13:return m=new lL,m;case 14:return k=new rV,k;case 17:return j=new Tvn,j;case 18:return l=new Jd,l;case 19:return P=new UA,P;default:throw T(new Gn(hF+e.zb+n0))}},o.ti=function(e,t){switch(e.hk()){case 20:return t==null?null:new Cz(t);case 21:return t==null?null:new H1(t);case 23:case 22:return t==null?null:B8e(t);case 26:case 24:return t==null?null:ak(So(t,-128,127)<<24>>24);case 25:return rTe(t);case 27:return C7e(t);case 28:return S7e(t);case 29:return Jye(t);case 32:case 31:return t==null?null:sw(t);case 38:case 37:return t==null?null:new qG(t);case 40:case 39:return t==null?null:Y(So(t,Wi,et));case 41:return null;case 42:return t==null,null;case 44:case 43:return t==null?null:Tl(zS(t));case 49:case 48:return t==null?null:sm(So(t,QP,32767)<<16>>16);case 50:return t;default:throw T(new Gn(ev+e.xe()+n0))}},w(qn,"EcoreFactoryImpl",1349),b(560,184,{110:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,2038:1,54:1,99:1,158:1,184:1,560:1,119:1,120:1,690:1},aOn),o.gb=!1,o.hb=!1;var nbn,Yoe=!1;w(qn,"EcorePackageImpl",560),b(1234,1,{851:1},xvn),o.Kk=function(){return KCn(),nse},w(qn,"EcorePackageImpl/1",1234),b(1243,1,ze,Rvn),o.fk=function(e){return L(e,155)},o.gk=function(e){return F(fE,Kn,155,e,0,1)},w(qn,"EcorePackageImpl/10",1243),b(1244,1,ze,Kvn),o.fk=function(e){return L(e,197)},o.gk=function(e){return F(gU,Kn,197,e,0,1)},w(qn,"EcorePackageImpl/11",1244),b(1245,1,ze,Bvn),o.fk=function(e){return L(e,58)},o.gk=function(e){return F(Aa,Kn,58,e,0,1)},w(qn,"EcorePackageImpl/12",1245),b(1246,1,ze,Fvn),o.fk=function(e){return L(e,411)},o.gk=function(e){return F(Ps,Ucn,62,e,0,1)},w(qn,"EcorePackageImpl/13",1246),b(1247,1,ze,_vn),o.fk=function(e){return L(e,241)},o.gk=function(e){return F(Ef,Kn,241,e,0,1)},w(qn,"EcorePackageImpl/14",1247),b(1248,1,ze,Hvn),o.fk=function(e){return L(e,518)},o.gk=function(e){return F(y0,Kn,2116,e,0,1)},w(qn,"EcorePackageImpl/15",1248),b(1249,1,ze,qvn),o.fk=function(e){return L(e,102)},o.gk=function(e){return F(eg,f2,19,e,0,1)},w(qn,"EcorePackageImpl/16",1249),b(1250,1,ze,Uvn),o.fk=function(e){return L(e,179)},o.gk=function(e){return F(ku,f2,179,e,0,1)},w(qn,"EcorePackageImpl/17",1250),b(1251,1,ze,Gvn),o.fk=function(e){return L(e,481)},o.gk=function(e){return F(Zw,Kn,481,e,0,1)},w(qn,"EcorePackageImpl/18",1251),b(1252,1,ze,zvn),o.fk=function(e){return L(e,561)},o.gk=function(e){return F(pc,nJn,561,e,0,1)},w(qn,"EcorePackageImpl/19",1252),b(1235,1,ze,Xvn),o.fk=function(e){return L(e,331)},o.gk=function(e){return F(ng,f2,35,e,0,1)},w(qn,"EcorePackageImpl/2",1235),b(1253,1,ze,Vvn),o.fk=function(e){return L(e,248)},o.gk=function(e){return F(jr,pJn,89,e,0,1)},w(qn,"EcorePackageImpl/20",1253),b(1254,1,ze,Wvn),o.fk=function(e){return L(e,457)},o.gk=function(e){return F(fu,Kn,850,e,0,1)},w(qn,"EcorePackageImpl/21",1254),b(1255,1,ze,Jvn),o.fk=function(e){return D0(e)},o.gk=function(e){return F(Gt,J,485,e,8,1)},w(qn,"EcorePackageImpl/22",1255),b(1256,1,ze,Qvn),o.fk=function(e){return L(e,195)},o.gk=function(e){return F(Ru,J,195,e,0,2)},w(qn,"EcorePackageImpl/23",1256),b(1257,1,ze,Yvn),o.fk=function(e){return L(e,222)},o.gk=function(e){return F(p3,J,222,e,0,1)},w(qn,"EcorePackageImpl/24",1257),b(1258,1,ze,Zvn),o.fk=function(e){return L(e,180)},o.gk=function(e){return F(S8,J,180,e,0,1)},w(qn,"EcorePackageImpl/25",1258),b(1259,1,ze,n6n),o.fk=function(e){return L(e,206)},o.gk=function(e){return F(oI,J,206,e,0,1)},w(qn,"EcorePackageImpl/26",1259),b(1260,1,ze,e6n),o.fk=function(e){return!1},o.gk=function(e){return F(mbn,Kn,2215,e,0,1)},w(qn,"EcorePackageImpl/27",1260),b(1261,1,ze,t6n),o.fk=function(e){return $0(e)},o.gk=function(e){return F(si,J,345,e,7,1)},w(qn,"EcorePackageImpl/28",1261),b(1262,1,ze,i6n),o.fk=function(e){return L(e,61)},o.gk=function(e){return F(Ndn,kw,61,e,0,1)},w(qn,"EcorePackageImpl/29",1262),b(1236,1,ze,r6n),o.fk=function(e){return L(e,519)},o.gk=function(e){return F(Ue,{3:1,4:1,5:1,2033:1},598,e,0,1)},w(qn,"EcorePackageImpl/3",1236),b(1263,1,ze,c6n),o.fk=function(e){return L(e,582)},o.gk=function(e){return F(xdn,Kn,2039,e,0,1)},w(qn,"EcorePackageImpl/30",1263),b(1264,1,ze,u6n),o.fk=function(e){return L(e,160)},o.gk=function(e){return F(cbn,kw,160,e,0,1)},w(qn,"EcorePackageImpl/31",1264),b(1265,1,ze,o6n),o.fk=function(e){return L(e,76)},o.gk=function(e){return F(MA,CJn,76,e,0,1)},w(qn,"EcorePackageImpl/32",1265),b(1266,1,ze,s6n),o.fk=function(e){return L(e,161)},o.gk=function(e){return F(sv,J,161,e,0,1)},w(qn,"EcorePackageImpl/33",1266),b(1267,1,ze,f6n),o.fk=function(e){return L(e,17)},o.gk=function(e){return F(Gi,J,17,e,0,1)},w(qn,"EcorePackageImpl/34",1267),b(1268,1,ze,h6n),o.fk=function(e){return L(e,297)},o.gk=function(e){return F(iun,Kn,297,e,0,1)},w(qn,"EcorePackageImpl/35",1268),b(1269,1,ze,l6n),o.fk=function(e){return L(e,168)},o.gk=function(e){return F(t0,J,168,e,0,1)},w(qn,"EcorePackageImpl/36",1269),b(1270,1,ze,a6n),o.fk=function(e){return L(e,85)},o.gk=function(e){return F(run,Kn,85,e,0,1)},w(qn,"EcorePackageImpl/37",1270),b(1271,1,ze,d6n),o.fk=function(e){return L(e,599)},o.gk=function(e){return F(ebn,Kn,599,e,0,1)},w(qn,"EcorePackageImpl/38",1271),b(1272,1,ze,b6n),o.fk=function(e){return!1},o.gk=function(e){return F(vbn,Kn,2216,e,0,1)},w(qn,"EcorePackageImpl/39",1272),b(1237,1,ze,w6n),o.fk=function(e){return L(e,90)},o.gk=function(e){return F(Ss,Kn,29,e,0,1)},w(qn,"EcorePackageImpl/4",1237),b(1273,1,ze,g6n),o.fk=function(e){return L(e,191)},o.gk=function(e){return F(i0,J,191,e,0,1)},w(qn,"EcorePackageImpl/40",1273),b(1274,1,ze,p6n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(qn,"EcorePackageImpl/41",1274),b(1275,1,ze,m6n),o.fk=function(e){return L(e,596)},o.gk=function(e){return F($dn,Kn,596,e,0,1)},w(qn,"EcorePackageImpl/42",1275),b(1276,1,ze,v6n),o.fk=function(e){return!1},o.gk=function(e){return F(kbn,J,2217,e,0,1)},w(qn,"EcorePackageImpl/43",1276),b(1277,1,ze,k6n),o.fk=function(e){return L(e,44)},o.gk=function(e){return F(Id,WS,44,e,0,1)},w(qn,"EcorePackageImpl/44",1277),b(1238,1,ze,y6n),o.fk=function(e){return L(e,142)},o.gk=function(e){return F(Mf,Kn,142,e,0,1)},w(qn,"EcorePackageImpl/5",1238),b(1239,1,ze,j6n),o.fk=function(e){return L(e,156)},o.gk=function(e){return F(jU,Kn,156,e,0,1)},w(qn,"EcorePackageImpl/6",1239),b(1240,1,ze,E6n),o.fk=function(e){return L(e,469)},o.gk=function(e){return F(EA,Kn,685,e,0,1)},w(qn,"EcorePackageImpl/7",1240),b(1241,1,ze,M6n),o.fk=function(e){return L(e,582)},o.gk=function(e){return F(Kl,Kn,694,e,0,1)},w(qn,"EcorePackageImpl/8",1241),b(1242,1,ze,T6n),o.fk=function(e){return L(e,480)},o.gk=function(e){return F(O9,Kn,480,e,0,1)},w(qn,"EcorePackageImpl/9",1242),b(1038,2080,ZWn,Djn),o.Mi=function(e,t){b5e(this,u(t,424))},o.Qi=function(e,t){P_n(this,e,u(t,424))},w(qn,"MinimalEObjectImpl/1ArrayDelegatingAdapterList",1038),b(1039,152,Wy,tOn),o.jj=function(){return this.a.a},w(qn,"MinimalEObjectImpl/1ArrayDelegatingAdapterList/1",1039),b(1067,1066,{},gCn),w("org.eclipse.emf.ecore.plugin","EcorePlugin",1067);var ebn=Dt(SJn,"Resource");b(799,1524,PJn),o.Hl=function(e){},o.Il=function(e){},o.El=function(){return!this.a&&(this.a=new iL(this)),this.a},o.Fl=function(e){var t,i,r,c,s;if(r=e.length,r>0)if(zn(0,e.length),e.charCodeAt(0)==47){for(s=new Gc(4),c=1,t=1;t<r;++t)zn(t,e.length),e.charCodeAt(t)==47&&(nn(s,c==t?"":(Ri(c,t,e.length),e.substr(c,t-c))),c=t+1);return nn(s,(zn(c,e.length+1),e.substr(c))),pke(this,s)}else zn(r-1,e.length),e.charCodeAt(r-1)==63&&(i=CV(e,wu(63),r-2),i>0&&(e=(Ri(0,i,e.length),e.substr(0,i))));return qEe(this,e)},o.Gl=function(){return this.c},o.Ib=function(){var e;return Xa(this.Rm)+"@"+(e=mt(this)>>>0,e.toString(16))+" uri='"+this.d+"'"},o.b=!1,w(SF,"ResourceImpl",799),b(1525,799,PJn,Myn),w(SF,"BinaryResourceImpl",1525),b(1190,708,yF),o.bj=function(e){return L(e,58)?Dge(this,u(e,58)):L(e,599)?new ne(u(e,599).El()):x(e)===x(this.f)?u(e,16).Kc():(m4(),aE.a)},o.Ob=function(){return xnn(this)},o.a=!1,w(Ct,"EcoreUtil/ContentTreeIterator",1190),b(1526,1190,yF,LIn),o.bj=function(e){return x(e)===x(this.f)?u(e,15).Kc():new ILn(u(e,58))},w(SF,"ResourceImpl/5",1526),b(658,2092,gJn,iL),o.Hc=function(e){return this.i<=4?km(this,e):L(e,54)&&u(e,54).Jh()==this.a},o.Mi=function(e,t){e==this.i-1&&(this.a.b||(this.a.b=!0))},o.Oi=function(e,t){e==0?this.a.b||(this.a.b=!0):t$(this,e,t)},o.Qi=function(e,t){},o.Ri=function(e,t,i){},o.Lj=function(){return 2},o.jj=function(){return this.a},o.Mj=function(){return!0},o.Nj=function(e,t){var i;return i=u(e,54),t=i.fi(this.a,t),t},o.Oj=function(e,t){var i;return i=u(e,54),i.fi(null,t)},o.Pj=function(){return!1},o.Si=function(){return!0},o.aj=function(e){return F(Aa,Kn,58,e,0,1)},o.Yi=function(){return!1},w(SF,"ResourceImpl/ContentsEList",658),b(970,2062,Bm,Tyn),o.fd=function(e){return this.a.Ki(e)},o.gc=function(){return this.a.gc()},w(Ct,"AbstractSequentialInternalEList/1",970);var tbn,ibn,zi,rbn;b(634,1,{},DPn);var TA,CA;w(Ct,"BasicExtendedMetaData",634),b(1181,1,{},xTn),o.Jl=function(){return null},o.Kl=function(){return this.a==-2&&dfe(this,qye(this.d,this.b)),this.a},o.Ll=function(){return null},o.Ml=function(){return Ln(),Ln(),sr},o.xe=function(){return this.c==rv&&bfe(this,YKn(this.d,this.b)),this.c},o.Nl=function(){return 0},o.a=-2,o.c=rv,w(Ct,"BasicExtendedMetaData/EClassExtendedMetaDataImpl",1181),b(1182,1,{},cLn),o.Jl=function(){return this.a==($4(),TA)&&pfe(this,HSe(this.f,this.b)),this.a},o.Kl=function(){return 0},o.Ll=function(){return this.c==($4(),TA)&&wfe(this,qSe(this.f,this.b)),this.c},o.Ml=function(){return!this.d&&vfe(this,SIe(this.f,this.b)),this.d},o.xe=function(){return this.e==rv&&yfe(this,YKn(this.f,this.b)),this.e},o.Nl=function(){return this.g==-2&&Efe(this,sye(this.f,this.b)),this.g},o.e=rv,o.g=-2,w(Ct,"BasicExtendedMetaData/EDataTypeExtendedMetaDataImpl",1182),b(1180,1,{},RTn),o.b=!1,o.c=!1,w(Ct,"BasicExtendedMetaData/EPackageExtendedMetaDataImpl",1180),b(1183,1,{},uLn),o.c=-2,o.e=rv,o.f=rv,w(Ct,"BasicExtendedMetaData/EStructuralFeatureExtendedMetaDataImpl",1183),b(593,632,Qr,QM),o.Lj=function(){return this.c},o.ol=function(){return!1},o.Wi=function(e,t){return t},o.c=0,w(Ct,"EDataTypeEList",593);var cbn=Dt(Ct,"FeatureMap");b(78,593,{3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1,79:1,160:1,220:1,2036:1,71:1,97:1},Bt),o.bd=function(e,t){oCe(this,e,u(t,76))},o.Fc=function(e){return TTe(this,u(e,76))},o.Hi=function(e){Awe(this,u(e,76))},o.Nj=function(e,t){return Yae(this,u(e,76),t)},o.Oj=function(e,t){return PV(this,u(e,76),t)},o.Ti=function(e,t){return NPe(this,e,t)},o.Wi=function(e,t){return vAe(this,e,u(t,76))},o.hd=function(e,t){return VCe(this,e,u(t,76))},o.Uj=function(e,t){return Zae(this,u(e,76),t)},o.Vj=function(e,t){return fPn(this,u(e,76),t)},o.Wj=function(e,t,i){return Wke(this,u(e,76),u(t,76),i)},o.Zi=function(e,t){return Jx(this,e,u(t,76))},o.Ol=function(e,t){return Sen(this,e,t)},o.cd=function(e,t){var i,r,c,s,f,h,l,a,d;for(a=new Pb(t.gc()),c=t.Kc();c.Ob();)if(r=u(c.Pb(),76),s=r.Lk(),Pl(this.e,s))(!s.Si()||!_T(this,s,r.md())&&!km(a,r))&&ve(a,r);else{for(d=ru(this.e.Dh(),s),i=u(this.g,124),f=!0,h=0;h<this.i;++h)if(l=i[h],d.am(l.Lk())){u(Bg(this,h,r),76),f=!1;break}f&&ve(a,r)}return WQ(this,e,a)},o.Gc=function(e){var t,i,r,c,s,f,h,l,a;for(l=new Pb(e.gc()),r=e.Kc();r.Ob();)if(i=u(r.Pb(),76),c=i.Lk(),Pl(this.e,c))(!c.Si()||!_T(this,c,i.md())&&!km(l,i))&&ve(l,i);else{for(a=ru(this.e.Dh(),c),t=u(this.g,124),s=!0,f=0;f<this.i;++f)if(h=t[f],a.am(h.Lk())){u(Bg(this,f,i),76),s=!1;break}s&&ve(l,i)}return Kt(this,l)},o.Fi=function(e){return this.j=-1,LR(this,this.i,e)},o.Pl=function(e,t,i){return ven(this,e,t,i)},o.Xk=function(e,t){return ly(this,e,t)},o.Ql=function(e,t,i){return Gen(this,e,t,i)},o.Rl=function(){return this},o.Sl=function(e,t){return wy(this,e,t)},o.Tl=function(e){return u(N(this,e),76).Lk()},o.Ul=function(e){return u(N(this,e),76).md()},o.Vl=function(){return this.b},o.Mj=function(){return!0},o.Tj=function(){return!0},o.Wl=function(e){return!Rk(this,e)},o.aj=function(e){return F(Qoe,CJn,343,e,0,1)},o.pl=function(e){return ON(this,e)},o.Wb=function(e){F7(this,e)},o.Xl=function(e,t){HS(this,e,t)},o.Yl=function(e){return oxn(this,e)},o.Zl=function(e){BBn(this,e)},w(Ct,"BasicFeatureMap",78),b(1960,1,Hh),o.Nb=function(e){_i(this,e)},o.Rb=function(e){if(this.g==-1)throw T(new Mu);aT(this);try{mqn(this.e,this.b,this.a,e),this.d=this.e.j,iS(this)}catch(t){throw t=Ot(t),L(t,77)?T(new Ko):T(t)}},o.Ob=function(){return W$(this)},o.Sb=function(){return NRn(this)},o.Pb=function(){return iS(this)},o.Tb=function(){return this.a},o.Ub=function(){var e;if(NRn(this))return aT(this),this.g=--this.a,this.ul()&&(e=N5(this.e,this.b,this.c,this.a,this.j),this.j=e),this.i=0,this.j;throw T(new nc)},o.Vb=function(){return this.a-1},o.Qb=function(){if(this.g==-1)throw T(new Mu);aT(this);try{l_n(this.e,this.b,this.g),this.d=this.e.j,this.g<this.a&&(--this.a,--this.c),--this.g}catch(e){throw e=Ot(e),L(e,77)?T(new Ko):T(e)}},o.ul=function(){return!1},o.Wb=function(e){if(this.g==-1)throw T(new Mu);aT(this);try{HUn(this.e,this.b,this.g,e),this.d=this.e.j}catch(t){throw t=Ot(t),L(t,77)?T(new Ko):T(t)}},o.a=0,o.c=0,o.d=0,o.f=!1,o.g=0,o.i=0,w(Ct,"FeatureMapUtil/BasicFeatureEIterator",1960),b(420,1960,Hh,Y4),o.$l=function(){var e,t,i;for(i=this.e.i,e=u(this.e.g,124);this.c<i;){if(t=e[this.c],this.k.am(t.Lk()))return this.j=this.f?t:t.md(),this.i=2,!0;++this.c}return this.i=1,this.g=-1,!1},o._l=function(){var e,t;for(e=u(this.e.g,124);--this.c>=0;)if(t=e[this.c],this.k.am(t.Lk()))return this.j=this.f?t:t.md(),this.i=-2,!0;return this.i=-1,this.g=-1,!1},w(Ct,"BasicFeatureMap/FeatureEIterator",420),b(676,420,Hh,dN),o.ul=function(){return!0},w(Ct,"BasicFeatureMap/ResolvingFeatureEIterator",676),b(968,496,zP,CCn),o.pj=function(){return this},w(Ct,"EContentsEList/1",968),b(969,496,zP,JTn),o.ul=function(){return!1},w(Ct,"EContentsEList/2",969),b(967,287,XP,SCn),o.wl=function(e){},o.Ob=function(){return!1},o.Sb=function(){return!1},w(Ct,"EContentsEList/FeatureIteratorImpl/1",967),b(840,593,Qr,$X),o.Ni=function(){this.a=!0},o.Qj=function(){return this.a},o.Gk=function(){var e;me(this),fo(this.e)?(e=this.a,this.a=!1,it(this.e,new Bs(this.e,2,this.c,e,!1))):this.a=!1},o.a=!1,w(Ct,"EDataTypeEList/Unsettable",840),b(1958,593,Qr,DCn),o.Si=function(){return!0},w(Ct,"EDataTypeUniqueEList",1958),b(1959,840,Qr,$Cn),o.Si=function(){return!0},w(Ct,"EDataTypeUniqueEList/Unsettable",1959),b(147,83,Qr,Cu),o.nl=function(){return!0},o.Wi=function(e,t){return e3(this,e,u(t,58))},w(Ct,"EObjectContainmentEList/Resolving",147),b(1184,555,Qr,xCn),o.nl=function(){return!0},o.Wi=function(e,t){return e3(this,e,u(t,58))},w(Ct,"EObjectContainmentEList/Unsettable/Resolving",1184),b(766,14,Qr,yV),o.Ni=function(){this.a=!0},o.Qj=function(){return this.a},o.Gk=function(){var e;me(this),fo(this.e)?(e=this.a,this.a=!1,it(this.e,new Bs(this.e,2,this.c,e,!1))):this.a=!1},o.a=!1,w(Ct,"EObjectContainmentWithInverseEList/Unsettable",766),b(1222,766,Qr,WSn),o.nl=function(){return!0},o.Wi=function(e,t){return e3(this,e,u(t,58))},w(Ct,"EObjectContainmentWithInverseEList/Unsettable/Resolving",1222),b(757,505,Qr,xX),o.Ni=function(){this.a=!0},o.Qj=function(){return this.a},o.Gk=function(){var e;me(this),fo(this.e)?(e=this.a,this.a=!1,it(this.e,new Bs(this.e,2,this.c,e,!1))):this.a=!1},o.a=!1,w(Ct,"EObjectEList/Unsettable",757),b(338,505,Qr,Eg),o.nl=function(){return!0},o.Wi=function(e,t){return e3(this,e,u(t,58))},w(Ct,"EObjectResolvingEList",338),b(1844,757,Qr,RCn),o.nl=function(){return!0},o.Wi=function(e,t){return e3(this,e,u(t,58))},w(Ct,"EObjectResolvingEList/Unsettable",1844),b(1527,1,{},C6n);var Zoe;w(Ct,"EObjectValidator",1527),b(559,505,Qr,bT),o.il=function(){return this.d},o.jl=function(){return this.b},o.Mj=function(){return!0},o.ml=function(){return!0},o.b=0,w(Ct,"EObjectWithInverseEList",559),b(1225,559,Qr,JSn),o.ll=function(){return!0},w(Ct,"EObjectWithInverseEList/ManyInverse",1225),b(635,559,Qr,DN),o.Ni=function(){this.a=!0},o.Qj=function(){return this.a},o.Gk=function(){var e;me(this),fo(this.e)?(e=this.a,this.a=!1,it(this.e,new Bs(this.e,2,this.c,e,!1))):this.a=!1},o.a=!1,w(Ct,"EObjectWithInverseEList/Unsettable",635),b(1224,635,Qr,QSn),o.ll=function(){return!0},w(Ct,"EObjectWithInverseEList/Unsettable/ManyInverse",1224),b(767,559,Qr,jV),o.nl=function(){return!0},o.Wi=function(e,t){return e3(this,e,u(t,58))},w(Ct,"EObjectWithInverseResolvingEList",767),b(32,767,Qr,Dn),o.ll=function(){return!0},w(Ct,"EObjectWithInverseResolvingEList/ManyInverse",32),b(768,635,Qr,EV),o.nl=function(){return!0},o.Wi=function(e,t){return e3(this,e,u(t,58))},w(Ct,"EObjectWithInverseResolvingEList/Unsettable",768),b(1223,768,Qr,YSn),o.ll=function(){return!0},w(Ct,"EObjectWithInverseResolvingEList/Unsettable/ManyInverse",1223),b(1185,632,Qr),o.Li=function(){return(this.b&1792)==0},o.Ni=function(){this.b|=1},o.kl=function(){return(this.b&4)!=0},o.Mj=function(){return(this.b&40)!=0},o.ll=function(){return(this.b&16)!=0},o.ml=function(){return(this.b&8)!=0},o.nl=function(){return(this.b&Cw)!=0},o.al=function(){return(this.b&32)!=0},o.ol=function(){return(this.b&Gs)!=0},o.fk=function(e){return this.d?KLn(this.d,e):this.Lk().Hk().fk(e)},o.Qj=function(){return this.b&2?(this.b&1)!=0:this.i!=0},o.Si=function(){return(this.b&128)!=0},o.Gk=function(){var e;me(this),this.b&2&&(fo(this.e)?(e=(this.b&1)!=0,this.b&=-2,t4(this,new Bs(this.e,2,At(this.e.Dh(),this.Lk()),e,!1))):this.b&=-2)},o.Yi=function(){return(this.b&1536)==0},o.b=0,w(Ct,"EcoreEList/Generic",1185),b(1186,1185,Qr,UOn),o.Lk=function(){return this.a},w(Ct,"EcoreEList/Dynamic",1186),b(765,66,Mh,RG),o.aj=function(e){return gk(this.a.a,e)},w(Ct,"EcoreEMap/1",765),b(764,83,Qr,yW),o.Mi=function(e,t){uS(this.b,u(t,136))},o.Oi=function(e,t){_xn(this.b)},o.Pi=function(e,t,i){var r;++(r=this.b,u(t,136),r).e},o.Qi=function(e,t){cx(this.b,u(t,136))},o.Ri=function(e,t,i){cx(this.b,u(i,136)),x(i)===x(t)&&u(i,136).Ci(Jle(u(t,136).ld())),uS(this.b,u(t,136))},w(Ct,"EcoreEMap/DelegateEObjectContainmentEList",764),b(1220,141,qcn,rxn),w(Ct,"EcoreEMap/Unsettable",1220),b(1221,764,Qr,ZSn),o.Ni=function(){this.a=!0},o.Qj=function(){return this.a},o.Gk=function(){var e;me(this),fo(this.e)?(e=this.a,this.a=!1,it(this.e,new Bs(this.e,2,this.c,e,!1))):this.a=!1},o.a=!1,w(Ct,"EcoreEMap/Unsettable/UnsettableDelegateEObjectContainmentEList",1221),b(1189,215,n2,GIn),o.a=!1,o.b=!1,w(Ct,"EcoreUtil/Copier",1189),b(759,1,Pi,ILn),o.Nb=function(e){_i(this,e)},o.Ob=function(){return RKn(this)},o.Pb=function(){var e;return RKn(this),e=this.b,this.b=null,e},o.Qb=function(){this.a.Qb()},w(Ct,"EcoreUtil/ProperContentIterator",759),b(1528,1527,{},C8n);var nse;w(Ct,"EcoreValidator",1528);var ese;Dt(Ct,"FeatureMapUtil/Validator"),b(1295,1,{2041:1},S6n),o.am=function(e){return!0},w(Ct,"FeatureMapUtil/1",1295),b(773,1,{2041:1},itn),o.am=function(e){var t;return this.c==e?!0:(t=un(ee(this.a,e)),t==null?WSe(this,e)?(INn(this.a,e,(_n(),ov)),!0):(INn(this.a,e,(_n(),ga)),!1):t==(_n(),ov))},o.e=!1;var CU;w(Ct,"FeatureMapUtil/BasicValidator",773),b(774,45,n2,NX),w(Ct,"FeatureMapUtil/BasicValidator/Cache",774),b(509,56,{20:1,31:1,56:1,16:1,15:1,61:1,79:1,71:1,97:1},k7),o.bd=function(e,t){mqn(this.c,this.b,e,t)},o.Fc=function(e){return Sen(this.c,this.b,e)},o.cd=function(e,t){return gOe(this.c,this.b,e,t)},o.Gc=function(e){return I6(this,e)},o.Gi=function(e,t){lme(this.c,this.b,e,t)},o.Wk=function(e,t){return ven(this.c,this.b,e,t)},o.$i=function(e){return _S(this.c,this.b,e,!1)},o.Ii=function(){return sCn(this.c,this.b)},o.Ji=function(){return Rle(this.c,this.b)},o.Ki=function(e){return g4e(this.c,this.b,e)},o.Xk=function(e,t){return LSn(this,e,t)},o.$b=function(){cp(this)},o.Hc=function(e){return _T(this.c,this.b,e)},o.Ic=function(e){return wve(this.c,this.b,e)},o.Xb=function(e){return _S(this.c,this.b,e,!0)},o.Fk=function(e){return this},o.dd=function(e){return E3e(this.c,this.b,e)},o.dc=function(){return CM(this)},o.Qj=function(){return!Rk(this.c,this.b)},o.Kc=function(){return eme(this.c,this.b)},o.ed=function(){return tme(this.c,this.b)},o.fd=function(e){return N5e(this.c,this.b,e)},o.Ti=function(e,t){return NUn(this.c,this.b,e,t)},o.Ui=function(e,t){v4e(this.c,this.b,e,t)},o.gd=function(e){return l_n(this.c,this.b,e)},o.Mc=function(e){return mPe(this.c,this.b,e)},o.hd=function(e,t){return HUn(this.c,this.b,e,t)},o.Wb=function(e){jS(this.c,this.b),I6(this,u(e,15))},o.gc=function(){return L5e(this.c,this.b)},o.Pc=function(){return Tpe(this.c,this.b)},o.Qc=function(e){return M3e(this.c,this.b,e)},o.Ib=function(){var e,t;for(t=new Hl,t.a+="[",e=sCn(this.c,this.b);W$(e);)Er(t,A6(iS(e))),W$(e)&&(t.a+=ur);return t.a+="]",t.a},o.Gk=function(){jS(this.c,this.b)},w(Ct,"FeatureMapUtil/FeatureEList",509),b(644,39,Wy,GD),o.hj=function(e){return m5(this,e)},o.mj=function(e){var t,i,r,c,s,f,h;switch(this.d){case 1:case 2:{if(s=e.jj(),x(s)===x(this.c)&&m5(this,null)==e.hj(null))return this.g=e.ij(),e.gj()==1&&(this.d=1),!0;break}case 3:{switch(c=e.gj(),c){case 3:{if(s=e.jj(),x(s)===x(this.c)&&m5(this,null)==e.hj(null))return this.d=5,t=new Pb(2),ve(t,this.g),ve(t,e.ij()),this.g=t,!0;break}}break}case 5:{switch(c=e.gj(),c){case 3:{if(s=e.jj(),x(s)===x(this.c)&&m5(this,null)==e.hj(null))return i=u(this.g,16),i.Fc(e.ij()),!0;break}}break}case 4:{switch(c=e.gj(),c){case 3:{if(s=e.jj(),x(s)===x(this.c)&&m5(this,null)==e.hj(null))return this.d=1,this.g=e.ij(),!0;break}case 4:{if(s=e.jj(),x(s)===x(this.c)&&m5(this,null)==e.hj(null))return this.d=6,h=new Pb(2),ve(h,this.n),ve(h,e.kj()),this.n=h,f=S(C(ye,1),_e,28,15,[this.o,e.lj()]),this.g=f,!0;break}}break}case 6:{switch(c=e.gj(),c){case 4:{if(s=e.jj(),x(s)===x(this.c)&&m5(this,null)==e.hj(null))return i=u(this.n,16),i.Fc(e.kj()),f=u(this.g,53),r=F(ye,_e,28,f.length+1,15,1),Oc(f,0,r,0,f.length),r[f.length]=e.lj(),this.g=r,!0;break}}break}}return!1},w(Ct,"FeatureMapUtil/FeatureENotificationImpl",644),b(564,509,{20:1,31:1,56:1,16:1,15:1,61:1,79:1,160:1,220:1,2036:1,71:1,97:1},eT),o.Ol=function(e,t){return Sen(this.c,e,t)},o.Pl=function(e,t,i){return ven(this.c,e,t,i)},o.Ql=function(e,t,i){return Gen(this.c,e,t,i)},o.Rl=function(){return this},o.Sl=function(e,t){return wy(this.c,e,t)},o.Tl=function(e){return u(_S(this.c,this.b,e,!1),76).Lk()},o.Ul=function(e){return u(_S(this.c,this.b,e,!1),76).md()},o.Vl=function(){return this.a},o.Wl=function(e){return!Rk(this.c,e)},o.Xl=function(e,t){HS(this.c,e,t)},o.Yl=function(e){return oxn(this.c,e)},o.Zl=function(e){BBn(this.c,e)},w(Ct,"FeatureMapUtil/FeatureFeatureMap",564),b(1294,1,CF,$Tn),o.Fk=function(e){return _S(this.b,this.a,-1,e)},o.Qj=function(){return!Rk(this.b,this.a)},o.Wb=function(e){HS(this.b,this.a,e)},o.Gk=function(){jS(this.b,this.a)},w(Ct,"FeatureMapUtil/FeatureValue",1294);var F3,SU,PU,_3,tse,bE=Dt(eI,"AnyType");b(680,63,Il,kL),w(eI,"InvalidDatatypeValueException",680);var SA=Dt(eI,OJn),wE=Dt(eI,AJn),ubn=Dt(eI,LJn),ise,yc,obn,zd,rse,cse,use,ose,sse,fse,hse,lse,ase,dse,bse,G2,wse,z2,$9,gse,M0,gE,pE,pse,x9,R9;b(844,516,{110:1,94:1,93:1,58:1,54:1,99:1,857:1},tz),o.Lh=function(e,t,i){switch(e){case 0:return i?(!this.c&&(this.c=new Bt(this,0)),this.c):(!this.c&&(this.c=new Bt(this,0)),this.c.b);case 1:return i?(!this.c&&(this.c=new Bt(this,0)),u($c(this.c,(at(),zd)),160)):(!this.c&&(this.c=new Bt(this,0)),u(u($c(this.c,(at(),zd)),160),220)).Vl();case 2:return i?(!this.b&&(this.b=new Bt(this,2)),this.b):(!this.b&&(this.b=new Bt(this,2)),this.b.b)}return zo(this,e-se(this.ii()),$n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():this.ii(),e),t,i)},o.Uh=function(e,t,i){var r;switch(t){case 0:return!this.c&&(this.c=new Bt(this,0)),ly(this.c,e,i);case 1:return(!this.c&&(this.c=new Bt(this,0)),u(u($c(this.c,(at(),zd)),160),71)).Xk(e,i);case 2:return!this.b&&(this.b=new Bt(this,2)),ly(this.b,e,i)}return r=u($n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():this.ii(),t),69),r.wk().Ak(this,cQ(this),t-se(this.ii()),e,i)},o.Wh=function(e){switch(e){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new Bt(this,0)),u($c(this.c,(at(),zd)),160)).dc();case 2:return!!this.b&&this.b.i!=0}return Uo(this,e-se(this.ii()),$n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():this.ii(),e))},o.bi=function(e,t){switch(e){case 0:!this.c&&(this.c=new Bt(this,0)),F7(this.c,t);return;case 1:(!this.c&&(this.c=new Bt(this,0)),u(u($c(this.c,(at(),zd)),160),220)).Wb(t);return;case 2:!this.b&&(this.b=new Bt(this,2)),F7(this.b,t);return}Jo(this,e-se(this.ii()),$n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():this.ii(),e),t)},o.ii=function(){return at(),obn},o.ki=function(e){switch(e){case 0:!this.c&&(this.c=new Bt(this,0)),me(this.c);return;case 1:(!this.c&&(this.c=new Bt(this,0)),u($c(this.c,(at(),zd)),160)).$b();return;case 2:!this.b&&(this.b=new Bt(this,2)),me(this.b);return}Wo(this,e-se(this.ii()),$n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():this.ii(),e))},o.Ib=function(){var e;return this.j&4?Hs(this):(e=new ls(Hs(this)),e.a+=" (mixed: ",T6(e,this.c),e.a+=", anyAttribute: ",T6(e,this.b),e.a+=")",e.a)},w(oi,"AnyTypeImpl",844),b(681,516,{110:1,94:1,93:1,58:1,54:1,99:1,2119:1,681:1},K6n),o.Lh=function(e,t,i){switch(e){case 0:return this.a;case 1:return this.b}return zo(this,e-se((at(),G2)),$n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():G2,e),t,i)},o.Wh=function(e){switch(e){case 0:return this.a!=null;case 1:return this.b!=null}return Uo(this,e-se((at(),G2)),$n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():G2,e))},o.bi=function(e,t){switch(e){case 0:Cfe(this,Ae(t));return;case 1:Pfe(this,Ae(t));return}Jo(this,e-se((at(),G2)),$n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():G2,e),t)},o.ii=function(){return at(),G2},o.ki=function(e){switch(e){case 0:this.a=null;return;case 1:this.b=null;return}Wo(this,e-se((at(),G2)),$n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():G2,e))},o.Ib=function(){var e;return this.j&4?Hs(this):(e=new ls(Hs(this)),e.a+=" (data: ",Er(e,this.a),e.a+=", target: ",Er(e,this.b),e.a+=")",e.a)},o.a=null,o.b=null,w(oi,"ProcessingInstructionImpl",681),b(682,844,{110:1,94:1,93:1,58:1,54:1,99:1,857:1,2120:1,682:1},bjn),o.Lh=function(e,t,i){switch(e){case 0:return i?(!this.c&&(this.c=new Bt(this,0)),this.c):(!this.c&&(this.c=new Bt(this,0)),this.c.b);case 1:return i?(!this.c&&(this.c=new Bt(this,0)),u($c(this.c,(at(),zd)),160)):(!this.c&&(this.c=new Bt(this,0)),u(u($c(this.c,(at(),zd)),160),220)).Vl();case 2:return i?(!this.b&&(this.b=new Bt(this,2)),this.b):(!this.b&&(this.b=new Bt(this,2)),this.b.b);case 3:return!this.c&&(this.c=new Bt(this,0)),Ae(wy(this.c,(at(),$9),!0));case 4:return TV(this.a,(!this.c&&(this.c=new Bt(this,0)),Ae(wy(this.c,(at(),$9),!0))));case 5:return this.a}return zo(this,e-se((at(),z2)),$n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():z2,e),t,i)},o.Wh=function(e){switch(e){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new Bt(this,0)),u($c(this.c,(at(),zd)),160)).dc();case 2:return!!this.b&&this.b.i!=0;case 3:return!this.c&&(this.c=new Bt(this,0)),Ae(wy(this.c,(at(),$9),!0))!=null;case 4:return TV(this.a,(!this.c&&(this.c=new Bt(this,0)),Ae(wy(this.c,(at(),$9),!0))))!=null;case 5:return!!this.a}return Uo(this,e-se((at(),z2)),$n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():z2,e))},o.bi=function(e,t){switch(e){case 0:!this.c&&(this.c=new Bt(this,0)),F7(this.c,t);return;case 1:(!this.c&&(this.c=new Bt(this,0)),u(u($c(this.c,(at(),zd)),160),220)).Wb(t);return;case 2:!this.b&&(this.b=new Bt(this,2)),F7(this.b,t);return;case 3:dJ(this,Ae(t));return;case 4:dJ(this,MV(this.a,t));return;case 5:Sfe(this,u(t,156));return}Jo(this,e-se((at(),z2)),$n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():z2,e),t)},o.ii=function(){return at(),z2},o.ki=function(e){switch(e){case 0:!this.c&&(this.c=new Bt(this,0)),me(this.c);return;case 1:(!this.c&&(this.c=new Bt(this,0)),u($c(this.c,(at(),zd)),160)).$b();return;case 2:!this.b&&(this.b=new Bt(this,2)),me(this.b);return;case 3:!this.c&&(this.c=new Bt(this,0)),HS(this.c,(at(),$9),null);return;case 4:dJ(this,MV(this.a,null));return;case 5:this.a=null;return}Wo(this,e-se((at(),z2)),$n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():z2,e))},w(oi,"SimpleAnyTypeImpl",682),b(683,516,{110:1,94:1,93:1,58:1,54:1,99:1,2121:1,683:1},wjn),o.Lh=function(e,t,i){switch(e){case 0:return i?(!this.a&&(this.a=new Bt(this,0)),this.a):(!this.a&&(this.a=new Bt(this,0)),this.a.b);case 1:return i?(!this.b&&(this.b=new Ou((An(),ar),pc,this,1)),this.b):(!this.b&&(this.b=new Ou((An(),ar),pc,this,1)),rk(this.b));case 2:return i?(!this.c&&(this.c=new Ou((An(),ar),pc,this,2)),this.c):(!this.c&&(this.c=new Ou((An(),ar),pc,this,2)),rk(this.c));case 3:return!this.a&&(this.a=new Bt(this,0)),$c(this.a,(at(),gE));case 4:return!this.a&&(this.a=new Bt(this,0)),$c(this.a,(at(),pE));case 5:return!this.a&&(this.a=new Bt(this,0)),$c(this.a,(at(),x9));case 6:return!this.a&&(this.a=new Bt(this,0)),$c(this.a,(at(),R9))}return zo(this,e-se((at(),M0)),$n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():M0,e),t,i)},o.Uh=function(e,t,i){var r;switch(t){case 0:return!this.a&&(this.a=new Bt(this,0)),ly(this.a,e,i);case 1:return!this.b&&(this.b=new Ou((An(),ar),pc,this,1)),UM(this.b,e,i);case 2:return!this.c&&(this.c=new Ou((An(),ar),pc,this,2)),UM(this.c,e,i);case 5:return!this.a&&(this.a=new Bt(this,0)),LSn($c(this.a,(at(),x9)),e,i)}return r=u($n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():(at(),M0),t),69),r.wk().Ak(this,cQ(this),t-se((at(),M0)),e,i)},o.Wh=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 Bt(this,0)),!CM($c(this.a,(at(),gE)));case 4:return!this.a&&(this.a=new Bt(this,0)),!CM($c(this.a,(at(),pE)));case 5:return!this.a&&(this.a=new Bt(this,0)),!CM($c(this.a,(at(),x9)));case 6:return!this.a&&(this.a=new Bt(this,0)),!CM($c(this.a,(at(),R9)))}return Uo(this,e-se((at(),M0)),$n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():M0,e))},o.bi=function(e,t){switch(e){case 0:!this.a&&(this.a=new Bt(this,0)),F7(this.a,t);return;case 1:!this.b&&(this.b=new Ou((An(),ar),pc,this,1)),CC(this.b,t);return;case 2:!this.c&&(this.c=new Ou((An(),ar),pc,this,2)),CC(this.c,t);return;case 3:!this.a&&(this.a=new Bt(this,0)),cp($c(this.a,(at(),gE))),!this.a&&(this.a=new Bt(this,0)),I6($c(this.a,gE),u(t,16));return;case 4:!this.a&&(this.a=new Bt(this,0)),cp($c(this.a,(at(),pE))),!this.a&&(this.a=new Bt(this,0)),I6($c(this.a,pE),u(t,16));return;case 5:!this.a&&(this.a=new Bt(this,0)),cp($c(this.a,(at(),x9))),!this.a&&(this.a=new Bt(this,0)),I6($c(this.a,x9),u(t,16));return;case 6:!this.a&&(this.a=new Bt(this,0)),cp($c(this.a,(at(),R9))),!this.a&&(this.a=new Bt(this,0)),I6($c(this.a,R9),u(t,16));return}Jo(this,e-se((at(),M0)),$n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():M0,e),t)},o.ii=function(){return at(),M0},o.ki=function(e){switch(e){case 0:!this.a&&(this.a=new Bt(this,0)),me(this.a);return;case 1:!this.b&&(this.b=new Ou((An(),ar),pc,this,1)),this.b.c.$b();return;case 2:!this.c&&(this.c=new Ou((An(),ar),pc,this,2)),this.c.c.$b();return;case 3:!this.a&&(this.a=new Bt(this,0)),cp($c(this.a,(at(),gE)));return;case 4:!this.a&&(this.a=new Bt(this,0)),cp($c(this.a,(at(),pE)));return;case 5:!this.a&&(this.a=new Bt(this,0)),cp($c(this.a,(at(),x9)));return;case 6:!this.a&&(this.a=new Bt(this,0)),cp($c(this.a,(at(),R9)));return}Wo(this,e-se((at(),M0)),$n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():M0,e))},o.Ib=function(){var e;return this.j&4?Hs(this):(e=new ls(Hs(this)),e.a+=" (mixed: ",T6(e,this.a),e.a+=")",e.a)},w(oi,"XMLTypeDocumentRootImpl",683),b(2028,720,{110:1,94:1,93:1,480:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1,2122:1},P6n),o.ri=function(e,t){switch(e.hk()){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 t==null?null:Jr(t);case 19:case 28:case 29:case 35:case 38:case 39:case 41:case 46:case 52:case 54:case 5:return Ae(t);case 6:return fae(u(t,195));case 12:case 47:case 49:case 11:return IGn(this,e,t);case 13:return t==null?null:kOe(u(t,247));case 15:case 14:return t==null?null:Twe($(B(t)));case 17:return CFn((at(),t));case 18:return CFn(t);case 21:case 20:return t==null?null:Cwe(u(t,161).a);case 27:return hae(u(t,195));case 30:return FBn((at(),u(t,15)));case 31:return FBn(u(t,15));case 40:return aae((at(),t));case 42:return SFn((at(),t));case 43:return SFn(t);case 59:case 48:return lae((at(),t));default:throw T(new Gn(ev+e.xe()+n0))}},o.si=function(e){var t,i,r,c,s;switch(e.G==-1&&(e.G=(i=jo(e),i?f1(i.vi(),e):-1)),e.G){case 0:return t=new tz,t;case 1:return r=new K6n,r;case 2:return c=new bjn,c;case 3:return s=new wjn,s;default:throw T(new Gn(hF+e.zb+n0))}},o.ti=function(e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O;switch(e.hk()){case 5:case 52:case 4:return t;case 6:return m9e(t);case 8:case 7:return t==null?null:rye(t);case 9:return t==null?null:ak(So((r=Rc(t,!0),r.length>0&&(zn(0,r.length),r.charCodeAt(0)==43)?(zn(1,r.length+1),r.substr(1)):r),-128,127)<<24>>24);case 10:return t==null?null:ak(So((c=Rc(t,!0),c.length>0&&(zn(0,c.length),c.charCodeAt(0)==43)?(zn(1,c.length+1),c.substr(1)):c),-128,127)<<24>>24);case 11:return Ae(zb(this,(at(),use),t));case 12:return Ae(zb(this,(at(),ose),t));case 13:return t==null?null:new Cz(Rc(t,!0));case 15:case 14:return STe(t);case 16:return Ae(zb(this,(at(),sse),t));case 17:return HKn((at(),t));case 18:return HKn(t);case 28:case 29:case 35:case 38:case 39:case 41:case 54:case 19:return Rc(t,!0);case 21:case 20:return RTe(t);case 22:return Ae(zb(this,(at(),fse),t));case 23:return Ae(zb(this,(at(),hse),t));case 24:return Ae(zb(this,(at(),lse),t));case 25:return Ae(zb(this,(at(),ase),t));case 26:return Ae(zb(this,(at(),dse),t));case 27:return u9e(t);case 30:return qKn((at(),t));case 31:return qKn(t);case 32:return t==null?null:Y(So((d=Rc(t,!0),d.length>0&&(zn(0,d.length),d.charCodeAt(0)==43)?(zn(1,d.length+1),d.substr(1)):d),Wi,et));case 33:return t==null?null:new H1((g=Rc(t,!0),g.length>0&&(zn(0,g.length),g.charCodeAt(0)==43)?(zn(1,g.length+1),g.substr(1)):g));case 34:return t==null?null:Y(So((p=Rc(t,!0),p.length>0&&(zn(0,p.length),p.charCodeAt(0)==43)?(zn(1,p.length+1),p.substr(1)):p),Wi,et));case 36:return t==null?null:Tl(zS((m=Rc(t,!0),m.length>0&&(zn(0,m.length),m.charCodeAt(0)==43)?(zn(1,m.length+1),m.substr(1)):m)));case 37:return t==null?null:Tl(zS((k=Rc(t,!0),k.length>0&&(zn(0,k.length),k.charCodeAt(0)==43)?(zn(1,k.length+1),k.substr(1)):k)));case 40:return i7e((at(),t));case 42:return UKn((at(),t));case 43:return UKn(t);case 44:return t==null?null:new H1((j=Rc(t,!0),j.length>0&&(zn(0,j.length),j.charCodeAt(0)==43)?(zn(1,j.length+1),j.substr(1)):j));case 45:return t==null?null:new H1((P=Rc(t,!0),P.length>0&&(zn(0,P.length),P.charCodeAt(0)==43)?(zn(1,P.length+1),P.substr(1)):P));case 46:return Rc(t,!1);case 47:return Ae(zb(this,(at(),bse),t));case 59:case 48:return t7e((at(),t));case 49:return Ae(zb(this,(at(),wse),t));case 50:return t==null?null:sm(So((O=Rc(t,!0),O.length>0&&(zn(0,O.length),O.charCodeAt(0)==43)?(zn(1,O.length+1),O.substr(1)):O),QP,32767)<<16>>16);case 51:return t==null?null:sm(So((s=Rc(t,!0),s.length>0&&(zn(0,s.length),s.charCodeAt(0)==43)?(zn(1,s.length+1),s.substr(1)):s),QP,32767)<<16>>16);case 53:return Ae(zb(this,(at(),gse),t));case 55:return t==null?null:sm(So((f=Rc(t,!0),f.length>0&&(zn(0,f.length),f.charCodeAt(0)==43)?(zn(1,f.length+1),f.substr(1)):f),QP,32767)<<16>>16);case 56:return t==null?null:sm(So((h=Rc(t,!0),h.length>0&&(zn(0,h.length),h.charCodeAt(0)==43)?(zn(1,h.length+1),h.substr(1)):h),QP,32767)<<16>>16);case 57:return t==null?null:Tl(zS((l=Rc(t,!0),l.length>0&&(zn(0,l.length),l.charCodeAt(0)==43)?(zn(1,l.length+1),l.substr(1)):l)));case 58:return t==null?null:Tl(zS((a=Rc(t,!0),a.length>0&&(zn(0,a.length),a.charCodeAt(0)==43)?(zn(1,a.length+1),a.substr(1)):a)));case 60:return t==null?null:Y(So((i=Rc(t,!0),i.length>0&&(zn(0,i.length),i.charCodeAt(0)==43)?(zn(1,i.length+1),i.substr(1)):i),Wi,et));case 61:return t==null?null:Y(So(Rc(t,!0),Wi,et));default:throw T(new Gn(ev+e.xe()+n0))}};var mse,sbn,vse,fbn;w(oi,"XMLTypeFactoryImpl",2028),b(594,184,{110:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,54:1,99:1,158:1,184:1,119:1,120:1,690:1,2044:1,594:1},dOn),o.N=!1,o.O=!1;var kse=!1;w(oi,"XMLTypePackageImpl",594),b(1961,1,{851:1},I6n),o.Kk=function(){return xen(),Ise},w(oi,"XMLTypePackageImpl/1",1961),b(1970,1,ze,O6n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/10",1970),b(1971,1,ze,A6n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/11",1971),b(1972,1,ze,L6n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/12",1972),b(1973,1,ze,N6n),o.fk=function(e){return $0(e)},o.gk=function(e){return F(si,J,345,e,7,1)},w(oi,"XMLTypePackageImpl/13",1973),b(1974,1,ze,D6n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/14",1974),b(1975,1,ze,$6n),o.fk=function(e){return L(e,15)},o.gk=function(e){return F(rs,kw,15,e,0,1)},w(oi,"XMLTypePackageImpl/15",1975),b(1976,1,ze,x6n),o.fk=function(e){return L(e,15)},o.gk=function(e){return F(rs,kw,15,e,0,1)},w(oi,"XMLTypePackageImpl/16",1976),b(1977,1,ze,R6n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/17",1977),b(1978,1,ze,B6n),o.fk=function(e){return L(e,161)},o.gk=function(e){return F(sv,J,161,e,0,1)},w(oi,"XMLTypePackageImpl/18",1978),b(1979,1,ze,F6n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/19",1979),b(1962,1,ze,_6n),o.fk=function(e){return L(e,857)},o.gk=function(e){return F(bE,Kn,857,e,0,1)},w(oi,"XMLTypePackageImpl/2",1962),b(1980,1,ze,H6n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/20",1980),b(1981,1,ze,q6n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/21",1981),b(1982,1,ze,U6n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/22",1982),b(1983,1,ze,G6n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/23",1983),b(1984,1,ze,z6n),o.fk=function(e){return L(e,195)},o.gk=function(e){return F(Ru,J,195,e,0,2)},w(oi,"XMLTypePackageImpl/24",1984),b(1985,1,ze,X6n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/25",1985),b(1986,1,ze,V6n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/26",1986),b(1987,1,ze,W6n),o.fk=function(e){return L(e,15)},o.gk=function(e){return F(rs,kw,15,e,0,1)},w(oi,"XMLTypePackageImpl/27",1987),b(1988,1,ze,J6n),o.fk=function(e){return L(e,15)},o.gk=function(e){return F(rs,kw,15,e,0,1)},w(oi,"XMLTypePackageImpl/28",1988),b(1989,1,ze,Q6n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/29",1989),b(1963,1,ze,Y6n),o.fk=function(e){return L(e,681)},o.gk=function(e){return F(SA,Kn,2119,e,0,1)},w(oi,"XMLTypePackageImpl/3",1963),b(1990,1,ze,Z6n),o.fk=function(e){return L(e,17)},o.gk=function(e){return F(Gi,J,17,e,0,1)},w(oi,"XMLTypePackageImpl/30",1990),b(1991,1,ze,n5n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/31",1991),b(1992,1,ze,e5n),o.fk=function(e){return L(e,168)},o.gk=function(e){return F(t0,J,168,e,0,1)},w(oi,"XMLTypePackageImpl/32",1992),b(1993,1,ze,t5n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/33",1993),b(1994,1,ze,i5n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/34",1994),b(1995,1,ze,r5n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/35",1995),b(1996,1,ze,c5n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/36",1996),b(1997,1,ze,u5n),o.fk=function(e){return L(e,15)},o.gk=function(e){return F(rs,kw,15,e,0,1)},w(oi,"XMLTypePackageImpl/37",1997),b(1998,1,ze,o5n),o.fk=function(e){return L(e,15)},o.gk=function(e){return F(rs,kw,15,e,0,1)},w(oi,"XMLTypePackageImpl/38",1998),b(1999,1,ze,s5n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/39",1999),b(1964,1,ze,f5n),o.fk=function(e){return L(e,682)},o.gk=function(e){return F(wE,Kn,2120,e,0,1)},w(oi,"XMLTypePackageImpl/4",1964),b(2e3,1,ze,h5n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/40",2e3),b(2001,1,ze,l5n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/41",2001),b(2002,1,ze,a5n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/42",2002),b(2003,1,ze,d5n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/43",2003),b(2004,1,ze,b5n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/44",2004),b(2005,1,ze,w5n),o.fk=function(e){return L(e,191)},o.gk=function(e){return F(i0,J,191,e,0,1)},w(oi,"XMLTypePackageImpl/45",2005),b(2006,1,ze,g5n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/46",2006),b(2007,1,ze,p5n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/47",2007),b(2008,1,ze,m5n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/48",2008),b(2009,1,ze,v5n),o.fk=function(e){return L(e,191)},o.gk=function(e){return F(i0,J,191,e,0,1)},w(oi,"XMLTypePackageImpl/49",2009),b(1965,1,ze,k5n),o.fk=function(e){return L(e,683)},o.gk=function(e){return F(ubn,Kn,2121,e,0,1)},w(oi,"XMLTypePackageImpl/5",1965),b(2010,1,ze,y5n),o.fk=function(e){return L(e,168)},o.gk=function(e){return F(t0,J,168,e,0,1)},w(oi,"XMLTypePackageImpl/50",2010),b(2011,1,ze,j5n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/51",2011),b(2012,1,ze,E5n),o.fk=function(e){return L(e,17)},o.gk=function(e){return F(Gi,J,17,e,0,1)},w(oi,"XMLTypePackageImpl/52",2012),b(1966,1,ze,M5n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/6",1966),b(1967,1,ze,T5n),o.fk=function(e){return L(e,195)},o.gk=function(e){return F(Ru,J,195,e,0,2)},w(oi,"XMLTypePackageImpl/7",1967),b(1968,1,ze,C5n),o.fk=function(e){return D0(e)},o.gk=function(e){return F(Gt,J,485,e,8,1)},w(oi,"XMLTypePackageImpl/8",1968),b(1969,1,ze,S5n),o.fk=function(e){return L(e,222)},o.gk=function(e){return F(p3,J,222,e,0,1)},w(oi,"XMLTypePackageImpl/9",1969);var nh,A1,K9,PA,I;b(55,63,Il,Ne),w(p1,"RegEx/ParseException",55),b(836,1,{},iG),o.bm=function(e){return e<this.j&&Xi(this.i,e)==63},o.cm=function(){var e,t,i,r,c;if(this.c!=10)throw T(new Ne($e((Oe(),qP))));switch(e=this.a,e){case 101:e=27;break;case 102:e=12;break;case 110:e=10;break;case 114:e=13;break;case 116:e=9;break;case 120:if(Ze(this),this.c!=0)throw T(new Ne($e((Oe(),g1))));if(this.a==123){c=0,i=0;do{if(Ze(this),this.c!=0)throw T(new Ne($e((Oe(),g1))));if((c=bd(this.a))<0)break;if(i>i*16)throw T(new Ne($e((Oe(),qWn))));i=i*16+c}while(!0);if(this.a!=125)throw T(new Ne($e((Oe(),UWn))));if(i>cv)throw T(new Ne($e((Oe(),GWn))));e=i}else{if(c=0,this.c!=0||(c=bd(this.a))<0)throw T(new Ne($e((Oe(),g1))));if(i=c,Ze(this),this.c!=0||(c=bd(this.a))<0)throw T(new Ne($e((Oe(),g1))));i=i*16+c,e=i}break;case 117:if(r=0,Ze(this),this.c!=0||(r=bd(this.a))<0)throw T(new Ne($e((Oe(),g1))));if(t=r,Ze(this),this.c!=0||(r=bd(this.a))<0)throw T(new Ne($e((Oe(),g1))));if(t=t*16+r,Ze(this),this.c!=0||(r=bd(this.a))<0)throw T(new Ne($e((Oe(),g1))));if(t=t*16+r,Ze(this),this.c!=0||(r=bd(this.a))<0)throw T(new Ne($e((Oe(),g1))));t=t*16+r,e=t;break;case 118:if(Ze(this),this.c!=0||(r=bd(this.a))<0)throw T(new Ne($e((Oe(),g1))));if(t=r,Ze(this),this.c!=0||(r=bd(this.a))<0)throw T(new Ne($e((Oe(),g1))));if(t=t*16+r,Ze(this),this.c!=0||(r=bd(this.a))<0)throw T(new Ne($e((Oe(),g1))));if(t=t*16+r,Ze(this),this.c!=0||(r=bd(this.a))<0)throw T(new Ne($e((Oe(),g1))));if(t=t*16+r,Ze(this),this.c!=0||(r=bd(this.a))<0)throw T(new Ne($e((Oe(),g1))));if(t=t*16+r,Ze(this),this.c!=0||(r=bd(this.a))<0)throw T(new Ne($e((Oe(),g1))));if(t=t*16+r,t>cv)throw T(new Ne($e((Oe(),"parser.descappe.4"))));e=t;break;case 65:case 90:case 122:throw T(new Ne($e((Oe(),zWn))))}return e},o.dm=function(e){var t,i;switch(e){case 100:i=(this.e&32)==32?sa("Nd",!0):(nt(),IA);break;case 68:i=(this.e&32)==32?sa("Nd",!1):(nt(),wbn);break;case 119:i=(this.e&32)==32?sa("IsWord",!0):(nt(),Gv);break;case 87:i=(this.e&32)==32?sa("IsWord",!1):(nt(),pbn);break;case 115:i=(this.e&32)==32?sa("IsSpace",!0):(nt(),H3);break;case 83:i=(this.e&32)==32?sa("IsSpace",!1):(nt(),gbn);break;default:throw T(new ec((t=e,zJn+t.toString(16))))}return i},o.em=function(e){var t,i,r,c,s,f,h,l,a,d,g,p;for(this.b=1,Ze(this),t=null,this.c==0&&this.a==94?(Ze(this),e?d=(nt(),nt(),new yo(5)):(t=(nt(),nt(),new yo(4)),xc(t,0,cv),d=new yo(4))):d=(nt(),nt(),new yo(4)),c=!0;(p=this.c)!=1&&!(p==0&&this.a==93&&!c);){if(c=!1,i=this.a,r=!1,p==10)switch(i){case 100:case 68:case 119:case 87:case 115:case 83:gw(d,this.dm(i)),r=!0;break;case 105:case 73:case 99:case 67:i=this.um(d,i),i<0&&(r=!0);break;case 112:case 80:if(g=Dnn(this,i),!g)throw T(new Ne($e((Oe(),EF))));gw(d,g),r=!0;break;default:i=this.cm()}else if(p==20){if(f=w4(this.i,58,this.d),f<0)throw T(new Ne($e((Oe(),Rcn))));if(h=!0,Xi(this.i,this.d)==94&&(++this.d,h=!1),s=qo(this.i,this.d,f),l=mDn(s,h,(this.e&512)==512),!l)throw T(new Ne($e((Oe(),KWn))));if(gw(d,l),r=!0,f+1>=this.j||Xi(this.i,f+1)!=93)throw T(new Ne($e((Oe(),Rcn))));this.d=f+2}if(Ze(this),!r)if(this.c!=0||this.a!=45)xc(d,i,i);else{if(Ze(this),(p=this.c)==1)throw T(new Ne($e((Oe(),UP))));p==0&&this.a==93?(xc(d,i,i),xc(d,45,45)):(a=this.a,p==10&&(a=this.cm()),Ze(this),xc(d,i,a))}(this.e&Gs)==Gs&&this.c==0&&this.a==44&&Ze(this)}if(this.c==1)throw T(new Ne($e((Oe(),UP))));return t&&(V5(t,d),d=t),Gg(d),z5(d),this.b=0,Ze(this),d},o.fm=function(){var e,t,i,r;for(i=this.em(!1);(r=this.c)!=7;)if(e=this.a,r==0&&(e==45||e==38)||r==4){if(Ze(this),this.c!=9)throw T(new Ne($e((Oe(),FWn))));if(t=this.em(!1),r==4)gw(i,t);else if(e==45)V5(i,t);else if(e==38)TGn(i,t);else throw T(new ec("ASSERT"))}else throw T(new Ne($e((Oe(),_Wn))));return Ze(this),i},o.gm=function(){var e,t;return e=this.a-48,t=(nt(),nt(),new OD(12,null,e)),!this.g&&(this.g=new KE),RE(this.g,new KG(e)),Ze(this),t},o.hm=function(){return Ze(this),nt(),Ese},o.im=function(){return Ze(this),nt(),jse},o.jm=function(){throw T(new Ne($e((Oe(),is))))},o.km=function(){throw T(new Ne($e((Oe(),is))))},o.lm=function(){return Ze(this),y6e()},o.mm=function(){return Ze(this),nt(),Tse},o.nm=function(){return Ze(this),nt(),Sse},o.om=function(){var e;if(this.d>=this.j||((e=Xi(this.i,this.d++))&65504)!=64)throw T(new Ne($e((Oe(),$Wn))));return Ze(this),nt(),nt(),new Dh(0,e-64)},o.pm=function(){return Ze(this),MIe()},o.qm=function(){return Ze(this),nt(),Pse},o.rm=function(){var e;return e=(nt(),nt(),new Dh(0,105)),Ze(this),e},o.sm=function(){return Ze(this),nt(),Cse},o.tm=function(){return Ze(this),nt(),Mse},o.um=function(e,t){return this.cm()},o.vm=function(){return Ze(this),nt(),dbn},o.wm=function(){var e,t,i,r,c;if(this.d+1>=this.j)throw T(new Ne($e((Oe(),LWn))));if(r=-1,t=null,e=Xi(this.i,this.d),49<=e&&e<=57){if(r=e-48,!this.g&&(this.g=new KE),RE(this.g,new KG(r)),++this.d,Xi(this.i,this.d)!=41)throw T(new Ne($e((Oe(),Sd))));++this.d}else switch(e==63&&--this.d,Ze(this),t=otn(this),t.e){case 20:case 21:case 22:case 23:break;case 8:if(this.c!=7)throw T(new Ne($e((Oe(),Sd))));break;default:throw T(new Ne($e((Oe(),NWn))))}if(Ze(this),c=Kb(this),i=null,c.e==2){if(c.Pm()!=2)throw T(new Ne($e((Oe(),DWn))));i=c.Lm(1),c=c.Lm(0)}if(this.c!=7)throw T(new Ne($e((Oe(),Sd))));return Ze(this),nt(),nt(),new ZDn(r,t,c,i)},o.xm=function(){return Ze(this),nt(),bbn},o.ym=function(){var e;if(Ze(this),e=wT(24,Kb(this)),this.c!=7)throw T(new Ne($e((Oe(),Sd))));return Ze(this),e},o.zm=function(){var e;if(Ze(this),e=wT(20,Kb(this)),this.c!=7)throw T(new Ne($e((Oe(),Sd))));return Ze(this),e},o.Am=function(){var e;if(Ze(this),e=wT(22,Kb(this)),this.c!=7)throw T(new Ne($e((Oe(),Sd))));return Ze(this),e},o.Bm=function(){var e,t,i,r,c;for(e=0,i=0,t=-1;this.d<this.j&&(t=Xi(this.i,this.d),c=Fnn(t),c!=0);)e|=c,++this.d;if(this.d>=this.j)throw T(new Ne($e((Oe(),$cn))));if(t==45){for(++this.d;this.d<this.j&&(t=Xi(this.i,this.d),c=Fnn(t),c!=0);)i|=c,++this.d;if(this.d>=this.j)throw T(new Ne($e((Oe(),$cn))))}if(t==58){if(++this.d,Ze(this),r=VIn(Kb(this),e,i),this.c!=7)throw T(new Ne($e((Oe(),Sd))));Ze(this)}else if(t==41)++this.d,Ze(this),r=VIn(Kb(this),e,i);else throw T(new Ne($e((Oe(),AWn))));return r},o.Cm=function(){var e;if(Ze(this),e=wT(21,Kb(this)),this.c!=7)throw T(new Ne($e((Oe(),Sd))));return Ze(this),e},o.Dm=function(){var e;if(Ze(this),e=wT(23,Kb(this)),this.c!=7)throw T(new Ne($e((Oe(),Sd))));return Ze(this),e},o.Em=function(){var e,t;if(Ze(this),e=this.f++,t=rD(Kb(this),e),this.c!=7)throw T(new Ne($e((Oe(),Sd))));return Ze(this),t},o.Fm=function(){var e;if(Ze(this),e=rD(Kb(this),0),this.c!=7)throw T(new Ne($e((Oe(),Sd))));return Ze(this),e},o.Gm=function(e){return Ze(this),this.c==5?(Ze(this),uT(e,(nt(),nt(),new X0(9,e)))):uT(e,(nt(),nt(),new X0(3,e)))},o.Hm=function(e){var t;return Ze(this),t=(nt(),nt(),new P6(2)),this.c==5?(Ze(this),pd(t,F9),pd(t,e)):(pd(t,e),pd(t,F9)),t},o.Im=function(e){return Ze(this),this.c==5?(Ze(this),nt(),nt(),new X0(9,e)):(nt(),nt(),new X0(3,e))},o.a=0,o.b=0,o.c=0,o.d=0,o.e=0,o.f=1,o.g=null,o.j=0,w(p1,"RegEx/RegexParser",836),b(1947,836,{},gjn),o.bm=function(e){return!1},o.cm=function(){return wen(this)},o.dm=function(e){return Om(e)},o.em=function(e){return kzn(this)},o.fm=function(){throw T(new Ne($e((Oe(),is))))},o.gm=function(){throw T(new Ne($e((Oe(),is))))},o.hm=function(){throw T(new Ne($e((Oe(),is))))},o.im=function(){throw T(new Ne($e((Oe(),is))))},o.jm=function(){return Ze(this),Om(67)},o.km=function(){return Ze(this),Om(73)},o.lm=function(){throw T(new Ne($e((Oe(),is))))},o.mm=function(){throw T(new Ne($e((Oe(),is))))},o.nm=function(){throw T(new Ne($e((Oe(),is))))},o.om=function(){return Ze(this),Om(99)},o.pm=function(){throw T(new Ne($e((Oe(),is))))},o.qm=function(){throw T(new Ne($e((Oe(),is))))},o.rm=function(){return Ze(this),Om(105)},o.sm=function(){throw T(new Ne($e((Oe(),is))))},o.tm=function(){throw T(new Ne($e((Oe(),is))))},o.um=function(e,t){return gw(e,Om(t)),-1},o.vm=function(){return Ze(this),nt(),nt(),new Dh(0,94)},o.wm=function(){throw T(new Ne($e((Oe(),is))))},o.xm=function(){return Ze(this),nt(),nt(),new Dh(0,36)},o.ym=function(){throw T(new Ne($e((Oe(),is))))},o.zm=function(){throw T(new Ne($e((Oe(),is))))},o.Am=function(){throw T(new Ne($e((Oe(),is))))},o.Bm=function(){throw T(new Ne($e((Oe(),is))))},o.Cm=function(){throw T(new Ne($e((Oe(),is))))},o.Dm=function(){throw T(new Ne($e((Oe(),is))))},o.Em=function(){var e;if(Ze(this),e=rD(Kb(this),0),this.c!=7)throw T(new Ne($e((Oe(),Sd))));return Ze(this),e},o.Fm=function(){throw T(new Ne($e((Oe(),is))))},o.Gm=function(e){return Ze(this),uT(e,(nt(),nt(),new X0(3,e)))},o.Hm=function(e){var t;return Ze(this),t=(nt(),nt(),new P6(2)),pd(t,e),pd(t,F9),t},o.Im=function(e){return Ze(this),nt(),nt(),new X0(3,e)};var X2=null,qv=null;w(p1,"RegEx/ParserForXMLSchema",1947),b(122,1,uv,Wd),o.Jm=function(e){throw T(new ec("Not supported."))},o.Km=function(){return-1},o.Lm=function(e){return null},o.Mm=function(){return null},o.Nm=function(e){},o.Om=function(e){},o.Pm=function(){return 0},o.Ib=function(){return this.Qm(0)},o.Qm=function(e){return this.e==11?".":""},o.e=0;var hbn,Uv,B9,yse,lbn,rg=null,IA,IU=null,abn,F9,OU=null,dbn,bbn,wbn,gbn,pbn,jse,H3,Ese,Mse,Tse,Cse,Gv,Sse,Pse,DDe=w(p1,"RegEx/Token",122);b(138,122,{3:1,138:1,122:1},yo),o.Qm=function(e){var t,i,r;if(this.e==4)if(this==abn)i=".";else if(this==IA)i="\\d";else if(this==Gv)i="\\w";else if(this==H3)i="\\s";else{for(r=new Hl,r.a+="[",t=0;t<this.b.length;t+=2)e&Gs&&t>0&&(r.a+=","),this.b[t]===this.b[t+1]?Er(r,by(this.b[t])):(Er(r,by(this.b[t])),r.a+="-",Er(r,by(this.b[t+1])));r.a+="]",i=r.a}else if(this==wbn)i="\\D";else if(this==pbn)i="\\W";else if(this==gbn)i="\\S";else{for(r=new Hl,r.a+="[^",t=0;t<this.b.length;t+=2)e&Gs&&t>0&&(r.a+=","),this.b[t]===this.b[t+1]?Er(r,by(this.b[t])):(Er(r,by(this.b[t])),r.a+="-",Er(r,by(this.b[t+1])));r.a+="]",i=r.a}return i},o.a=!1,o.c=!1,w(p1,"RegEx/RangeToken",138),b(592,1,{592:1},KG),o.a=0,w(p1,"RegEx/RegexParser/ReferencePosition",592),b(591,1,{3:1,591:1},AEn),o.Fb=function(e){var t;return e==null||!L(e,591)?!1:(t=u(e,591),Sn(this.b,t.b)&&this.a==t.a)},o.Hb=function(){return t1(this.b+"/"+sen(this.a))},o.Ib=function(){return this.c.Qm(this.a)},o.a=0,w(p1,"RegEx/RegularExpression",591),b(228,122,uv,Dh),o.Km=function(){return this.a},o.Qm=function(e){var t,i,r;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:r="\\"+NN(this.a&ui);break;case 12:r="\\f";break;case 10:r="\\n";break;case 13:r="\\r";break;case 9:r="\\t";break;case 27:r="\\e";break;default:this.a>=hr?(i=(t=this.a>>>0,"0"+t.toString(16)),r="\\v"+qo(i,i.length-6,i.length)):r=""+NN(this.a&ui)}break;case 8:this==dbn||this==bbn?r=""+NN(this.a&ui):r="\\"+NN(this.a&ui);break;default:r=null}return r},o.a=0,w(p1,"RegEx/Token/CharToken",228),b(318,122,uv,X0),o.Lm=function(e){return this.a},o.Nm=function(e){this.b=e},o.Om=function(e){this.c=e},o.Pm=function(){return 1},o.Qm=function(e){var t;if(this.e==3)if(this.c<0&&this.b<0)t=this.a.Qm(e)+"*";else if(this.c==this.b)t=this.a.Qm(e)+"{"+this.c+"}";else if(this.c>=0&&this.b>=0)t=this.a.Qm(e)+"{"+this.c+","+this.b+"}";else if(this.c>=0&&this.b<0)t=this.a.Qm(e)+"{"+this.c+",}";else throw T(new ec("Token#toString(): CLOSURE "+this.c+ur+this.b));else if(this.c<0&&this.b<0)t=this.a.Qm(e)+"*?";else if(this.c==this.b)t=this.a.Qm(e)+"{"+this.c+"}?";else if(this.c>=0&&this.b>=0)t=this.a.Qm(e)+"{"+this.c+","+this.b+"}?";else if(this.c>=0&&this.b<0)t=this.a.Qm(e)+"{"+this.c+",}?";else throw T(new ec("Token#toString(): NONGREEDYCLOSURE "+this.c+ur+this.b));return t},o.b=0,o.c=0,w(p1,"RegEx/Token/ClosureToken",318),b(837,122,uv,SW),o.Lm=function(e){return e==0?this.a:this.b},o.Pm=function(){return 2},o.Qm=function(e){var t;return this.b.e==3&&this.b.Lm(0)==this.a?t=this.a.Qm(e)+"+":this.b.e==9&&this.b.Lm(0)==this.a?t=this.a.Qm(e)+"+?":t=this.a.Qm(e)+(""+this.b.Qm(e)),t},w(p1,"RegEx/Token/ConcatToken",837),b(1945,122,uv,ZDn),o.Lm=function(e){if(e==0)return this.d;if(e==1)return this.b;throw T(new ec("Internal Error: "+e))},o.Pm=function(){return this.b?2:1},o.Qm=function(e){var t;return this.c>0?t="(?("+this.c+")":this.a.e==8?t="(?("+this.a+")":t="(?"+this.a,this.b?t+=this.d+"|"+this.b+")":t+=this.d+")",t},o.c=0,w(p1,"RegEx/Token/ConditionToken",1945),b(1946,122,uv,qAn),o.Lm=function(e){return this.b},o.Pm=function(){return 1},o.Qm=function(e){return"(?"+(this.a==0?"":sen(this.a))+(this.c==0?"":sen(this.c))+":"+this.b.Qm(e)+")"},o.a=0,o.c=0,w(p1,"RegEx/Token/ModifierToken",1946),b(838,122,uv,RW),o.Lm=function(e){return this.a},o.Pm=function(){return 1},o.Qm=function(e){var t;switch(t=null,this.e){case 6:this.b==0?t="(?:"+this.a.Qm(e)+")":t="("+this.a.Qm(e)+")";break;case 20:t="(?="+this.a.Qm(e)+")";break;case 21:t="(?!"+this.a.Qm(e)+")";break;case 22:t="(?<="+this.a.Qm(e)+")";break;case 23:t="(?<!"+this.a.Qm(e)+")";break;case 24:t="(?>"+this.a.Qm(e)+")"}return t},o.b=0,w(p1,"RegEx/Token/ParenToken",838),b(530,122,{3:1,122:1,530:1},OD),o.Mm=function(){return this.b},o.Qm=function(e){return this.e==12?"\\"+this.a:gTe(this.b)},o.a=0,w(p1,"RegEx/Token/StringToken",530),b(477,122,uv,P6),o.Jm=function(e){pd(this,e)},o.Lm=function(e){return u(kb(this.a,e),122)},o.Pm=function(){return this.a?this.a.a.c.length:0},o.Qm=function(e){var t,i,r,c,s;if(this.e==1){if(this.a.a.c.length==2)t=u(kb(this.a,0),122),i=u(kb(this.a,1),122),i.e==3&&i.Lm(0)==t?c=t.Qm(e)+"+":i.e==9&&i.Lm(0)==t?c=t.Qm(e)+"+?":c=t.Qm(e)+(""+i.Qm(e));else{for(s=new Hl,r=0;r<this.a.a.c.length;r++)Er(s,u(kb(this.a,r),122).Qm(e));c=s.a}return c}if(this.a.a.c.length==2&&u(kb(this.a,1),122).e==7)c=u(kb(this.a,0),122).Qm(e)+"?";else if(this.a.a.c.length==2&&u(kb(this.a,0),122).e==7)c=u(kb(this.a,1),122).Qm(e)+"??";else{for(s=new Hl,Er(s,u(kb(this.a,0),122).Qm(e)),r=1;r<this.a.a.c.length;r++)s.a+="|",Er(s,u(kb(this.a,r),122).Qm(e));c=s.a}return c},w(p1,"RegEx/Token/UnionToken",477),b(527,1,{600:1},Y9),o.Ib=function(){return this.a.b},w(JJn,"XMLTypeUtil/PatternMatcherImpl",527),b(1707,1527,{},P5n);var Ise;w(JJn,"XMLTypeValidator",1707),b(270,1,qh,Qa),o.Jc=function(e){qi(this,e)},o.Kc=function(){return(this.b-this.a)*this.c<0?xa:new q1(this)},o.a=0,o.b=0,o.c=0;var xa;w(tun,"ExclusiveRange",270),b(1084,1,Hh,I5n),o.Rb=function(e){u(e,17),Qle()},o.Nb=function(e){_i(this,e)},o.Pb=function(){return Bhe()},o.Ub=function(){return Fhe()},o.Wb=function(e){u(e,17),Zle()},o.Ob=function(){return!1},o.Sb=function(){return!1},o.Tb=function(){return-1},o.Vb=function(){return-1},o.Qb=function(){throw T(new Fl(ZJn))},w(tun,"ExclusiveRange/1",1084),b(258,1,Hh,q1),o.Rb=function(e){u(e,17),Yle()},o.Nb=function(e){_i(this,e)},o.Pb=function(){return z6e(this)},o.Ub=function(){return D4e(this)},o.Wb=function(e){u(e,17),n1e()},o.Ob=function(){return this.c.c<0?this.a>=this.c.b:this.a<=this.c.b},o.Sb=function(){return this.b>0},o.Tb=function(){return this.b},o.Vb=function(){return this.b-1},o.Qb=function(){throw T(new Fl(ZJn))},o.a=0,o.b=0,w(tun,"ExclusiveRange/RangeIterator",258);var fs=S4(GP,"C"),ye=S4(y8,"I"),so=S4(i3,"Z"),Ra=S4(j8,"J"),Ru=S4(m8,"B"),Ii=S4(v8,"D"),cg=S4(k8,"F"),V2=S4(E8,"S"),$De=Dt("org.eclipse.elk.core.labels","ILabelManager"),mbn=Dt(or,"DiagnosticChain"),vbn=Dt(SJn,"ResourceSet"),kbn=w(or,"InvocationTargetException",null),Ose=(HE(),W3e),Ase=Ase=Fke;Hme(Kfe),Kme("permProps",[[["locale","default"],[nQn,"gecko1_8"]],[["locale","default"],[nQn,"safari"]]]),Ase(null,"elk",null)}).call(this)}).call(this,typeof Dse<"u"?Dse:typeof self<"u"?self:typeof window<"u"?window:{})},{}],3:[function(Xt,gt,Pr){function Li(Jt,Xe){if(!(Jt instanceof Xe))throw new TypeError("Cannot call a class as a function")}function y(Jt,Xe){if(!Jt)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Xe&&(typeof Xe=="object"||typeof Xe=="function")?Xe:Jt}function Wt(Jt,Xe){if(typeof Xe!="function"&&Xe!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Xe);Jt.prototype=Object.create(Xe&&Xe.prototype,{constructor:{value:Jt,enumerable:!1,writable:!0,configurable:!0}}),Xe&&(Object.setPrototypeOf?Object.setPrototypeOf(Jt,Xe):Jt.__proto__=Xe)}var Ku=Xt("./elk-api.js").default,Ht=function(Jt){Wt(Xe,Jt);function Xe(){var Yi=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Li(this,Xe);var Bi=Object.assign({},Yi),En=!1;try{Xt.resolve("web-worker"),En=!0}catch{}if(Yi.workerUrl)if(En){var hu=Xt("web-worker");Bi.workerFactory=function(Ir){return new hu(Ir)}}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(!Bi.workerFactory){var Qc=Xt("./elk-worker.min.js"),Bu=Qc.Worker;Bi.workerFactory=function(Ir){return new Bu(Ir)}}return y(this,(Xe.__proto__||Object.getPrototypeOf(Xe)).call(this,Bi))}return Xe}(Ku);Object.defineProperty(gt.exports,"__esModule",{value:!0}),gt.exports=Ht,Ht.default=Ht},{"./elk-api.js":1,"./elk-worker.min.js":2,"web-worker":4}],4:[function(Xt,gt,Pr){gt.exports=Worker},{}]},{},[3])(3)})})(Kse);var WDe=Kse.exports;const JDe=KDe(WDe),$se=new JDe;let S0={};const QDe={};let X3={};const YDe=async function(ct,_t,Xt,gt,Pr,Li,y){const Ku=Xt.select(`[id="${_t}"]`).insert("g").attr("class","nodes"),Ht=Object.keys(ct);return await Promise.all(Ht.map(async function(Jt){const Xe=ct[Jt];let Yi="default";Xe.classes.length>0&&(Yi=Xe.classes.join(" ")),Yi=Yi+" flowchart-label";const Bi=Ebn(Xe.styles);let En=Xe.text!==void 0?Xe.text:Xe.id;const hu={width:0,height:0},Qc=[{id:Xe.id+"-west",layoutOptions:{"port.side":"WEST"}},{id:Xe.id+"-east",layoutOptions:{"port.side":"EAST"}},{id:Xe.id+"-south",layoutOptions:{"port.side":"SOUTH"}},{id:Xe.id+"-north",layoutOptions:{"port.side":"NORTH"}}];let Bu=0,Ir="",Tf={};switch(Xe.type){case"round":Bu=5,Ir="rect";break;case"square":Ir="rect";break;case"diamond":Ir="question",Tf={portConstraints:"FIXED_SIDE"};break;case"hexagon":Ir="hexagon";break;case"odd":Ir="rect_left_inv_arrow";break;case"lean_right":Ir="lean_right";break;case"lean_left":Ir="lean_left";break;case"trapezoid":Ir="trapezoid";break;case"inv_trapezoid":Ir="inv_trapezoid";break;case"odd_right":Ir="rect_left_inv_arrow";break;case"circle":Ir="circle";break;case"ellipse":Ir="ellipse";break;case"stadium":Ir="stadium";break;case"subroutine":Ir="subroutine";break;case"cylinder":Ir="cylinder";break;case"group":Ir="rect";break;case"doublecircle":Ir="doublecircle";break;default:Ir="rect"}const N1={labelStyle:Bi.labelStyle,shape:Ir,labelText:En,labelType:Xe.labelType,rx:Bu,ry:Bu,class:Yi,style:Bi.style,id:Xe.id,link:Xe.link,linkTarget:Xe.linkTarget,tooltip:Pr.db.getTooltip(Xe.id)||"",domId:Pr.db.lookUpDomId(Xe.id),haveCallback:Xe.haveCallback,width:Xe.type==="group"?500:void 0,dir:Xe.dir,type:Xe.type,props:Xe.props,padding:$U().flowchart.padding};let D1,og;if(N1.type!=="group")og=await HDe(Ku,N1,Xe.dir),D1=og.node().getBBox();else{gt.createElementNS("http://www.w3.org/2000/svg","text");const{shapeSvg:$1,bbox:ul}=await qDe(Ku,N1,void 0,!0);hu.width=ul.width,hu.wrappingWidth=$U().flowchart.wrappingWidth,hu.height=ul.height,hu.labelNode=$1.node(),N1.labelData=hu}const V3={id:Xe.id,ports:Xe.type==="diamond"?Qc:[],layoutOptions:Tf,labelText:En,labelData:hu,domId:Pr.db.lookUpDomId(Xe.id),width:D1==null?void 0:D1.width,height:D1==null?void 0:D1.height,type:Xe.type,el:og,parent:Li.parentById[Xe.id]};X3[N1.id]=V3})),y},xse=(ct,_t,Xt)=>{const gt={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 gt.TD=gt.TB,gt[Xt][_t][ct]},Rse=(ct,_t,Xt)=>{if(Ba.info("getNextPort",{node:ct,edgeDirection:_t,graphDirection:Xt}),!S0[ct])switch(Xt){case"TB":case"TD":S0[ct]={inPosition:"north",outPosition:"south"};break;case"BT":S0[ct]={inPosition:"south",outPosition:"north"};break;case"RL":S0[ct]={inPosition:"east",outPosition:"west"};break;case"LR":S0[ct]={inPosition:"west",outPosition:"east"};break}const gt=_t==="in"?S0[ct].inPosition:S0[ct].outPosition;return _t==="in"?S0[ct].inPosition=xse(S0[ct].inPosition,_t,Xt):S0[ct].outPosition=xse(S0[ct].outPosition,_t,Xt),gt},ZDe=(ct,_t)=>{let Xt=ct.start,gt=ct.end;const Pr=Xt,Li=gt,y=X3[Xt],Wt=X3[gt];return!y||!Wt?{source:Xt,target:gt}:(y.type==="diamond"&&(Xt=`${Xt}-${Rse(Xt,"out",_t)}`),Wt.type==="diamond"&&(gt=`${gt}-${Rse(gt,"in",_t)}`),{source:Xt,target:gt,sourceId:Pr,targetId:Li})},n$e=function(ct,_t,Xt,gt){Ba.info("abc78 edges = ",ct);const Pr=gt.insert("g").attr("class","edgeLabels");let Li={},y=_t.db.getDirection(),Wt,Ku;if(ct.defaultStyle!==void 0){const Ht=Ebn(ct.defaultStyle);Wt=Ht.style,Ku=Ht.labelStyle}return ct.forEach(function(Ht){const Jt="L-"+Ht.start+"-"+Ht.end;Li[Jt]===void 0?(Li[Jt]=0,Ba.info("abc78 new entry",Jt,Li[Jt])):(Li[Jt]++,Ba.info("abc78 new entry",Jt,Li[Jt]));let Xe=Jt+"-"+Li[Jt];Ba.info("abc78 new link id to be used is",Jt,Xe,Li[Jt]);const Yi="LS-"+Ht.start,Bi="LE-"+Ht.end,En={style:"",labelStyle:""};switch(En.minlen=Ht.length||1,Ht.type==="arrow_open"?En.arrowhead="none":En.arrowhead="normal",En.arrowTypeStart="arrow_open",En.arrowTypeEnd="arrow_open",Ht.type){case"double_arrow_cross":En.arrowTypeStart="arrow_cross";case"arrow_cross":En.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":En.arrowTypeStart="arrow_point";case"arrow_point":En.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":En.arrowTypeStart="arrow_circle";case"arrow_circle":En.arrowTypeEnd="arrow_circle";break}let hu="",Qc="";switch(Ht.stroke){case"normal":hu="fill:none;",Wt!==void 0&&(hu=Wt),Ku!==void 0&&(Qc=Ku),En.thickness="normal",En.pattern="solid";break;case"dotted":En.thickness="normal",En.pattern="dotted",En.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":En.thickness="thick",En.pattern="solid",En.style="stroke-width: 3.5px;fill:none;";break}if(Ht.style!==void 0){const og=Ebn(Ht.style);hu=og.style,Qc=og.labelStyle}En.style=En.style+=hu,En.labelStyle=En.labelStyle+=Qc,Ht.interpolate!==void 0?En.curve=jbn(Ht.interpolate,DU):ct.defaultInterpolate!==void 0?En.curve=jbn(ct.defaultInterpolate,DU):En.curve=jbn(QDe.curve,DU),Ht.text===void 0?Ht.style!==void 0&&(En.arrowheadStyle="fill: #333"):(En.arrowheadStyle="fill: #333",En.labelpos="c"),En.labelType=Ht.labelType,En.label=Ht.text.replace(FDe.lineBreakRegex,`
`),Ht.style===void 0&&(En.style=En.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),En.labelStyle=En.labelStyle.replace("color:","fill:"),En.id=Xe,En.classes="flowchart-link "+Yi+" "+Bi;const Bu=UDe(Pr,En),{source:Ir,target:Tf,sourceId:N1,targetId:D1}=ZDe(Ht,y);Ba.debug("abc78 source and target",Ir,Tf),Xt.edges.push({id:"e"+Ht.start+Ht.end,sources:[Ir],targets:[Tf],sourceId:N1,targetId:D1,labelEl:Bu,labels:[{width:En.width,height:En.height,orgWidth:En.width,orgHeight:En.height,text:En.label,layoutOptions:{"edgeLabels.inline":"true","edgeLabels.placement":"CENTER"}}],edgeData:En})}),Xt},e$e=function(ct,_t,Xt,gt,Pr){let Li="";gt&&(Li=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,Li=Li.replace(/\(/g,"\\("),Li=Li.replace(/\)/g,"\\)")),zDe(ct,_t,Li,Pr,Xt)},t$e=function(ct,_t){return Ba.info("Extracting classes"),_t.db.getClasses()},i$e=function(ct){const _t={parentById:{},childrenById:{}},Xt=ct.getSubGraphs();return Ba.info("Subgraphs - ",Xt),Xt.forEach(function(gt){gt.nodes.forEach(function(Pr){_t.parentById[Pr]=gt.id,_t.childrenById[gt.id]===void 0&&(_t.childrenById[gt.id]=[]),_t.childrenById[gt.id].push(Pr)})}),Xt.forEach(function(gt){gt.id,_t.parentById[gt.id]!==void 0&&_t.parentById[gt.id]}),_t},r$e=function(ct,_t,Xt){const gt=VDe(ct,_t,Xt);if(gt===void 0||gt==="root")return{x:0,y:0};const Pr=X3[gt].offset;return{x:Pr.posX,y:Pr.posY}},c$e=function(ct,_t,Xt,gt,Pr,Li){const y=r$e(_t.sourceId,_t.targetId,Pr),Wt=_t.sections[0].startPoint,Ku=_t.sections[0].endPoint,Jt=(_t.sections[0].bendPoints?_t.sections[0].bendPoints:[]).map(Tf=>[Tf.x+y.x,Tf.y+y.y]),Xe=[[Wt.x+y.x,Wt.y+y.y],...Jt,[Ku.x+y.x,Ku.y+y.y]],{x:Yi,y:Bi}=GDe(_t.edgeData),En=XDe().x(Yi).y(Bi).curve(DU),hu=ct.insert("path").attr("d",En(Xe)).attr("class","path "+Xt.classes).attr("fill","none"),Qc=ct.insert("g").attr("class","edgeLabel"),Bu=OA(Qc.node().appendChild(_t.labelEl)),Ir=Bu.node().firstChild.getBoundingClientRect();Bu.attr("width",Ir.width),Bu.attr("height",Ir.height),Qc.attr("transform",`translate(${_t.labels[0].x+y.x}, ${_t.labels[0].y+y.y})`),e$e(hu,Xt,gt.type,gt.arrowMarkerAbsolute,Li)},Bse=(ct,_t)=>{ct.forEach(Xt=>{Xt.children||(Xt.children=[]);const gt=_t.childrenById[Xt.id];gt&>.forEach(Pr=>{Xt.children.push(X3[Pr])}),Bse(Xt.children,_t)})},u$e=async function(ct,_t,Xt,gt){var Pr;gt.db.clear(),X3={},S0={},gt.db.setGen("gen-2"),gt.parser.parse(ct);const Li=OA("body").append("div").attr("style","height:400px").attr("id","cy");let y={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(Ba.info("Drawing flowchart using v3 renderer",$se),gt.db.getDirection()){case"BT":y.layoutOptions["elk.direction"]="UP";break;case"TB":y.layoutOptions["elk.direction"]="DOWN";break;case"LR":y.layoutOptions["elk.direction"]="RIGHT";break;case"RL":y.layoutOptions["elk.direction"]="LEFT";break}const{securityLevel:Ku,flowchart:Ht}=$U();let Jt;Ku==="sandbox"&&(Jt=OA("#i"+_t));const Xe=Ku==="sandbox"?OA(Jt.nodes()[0].contentDocument.body):OA("body"),Yi=Ku==="sandbox"?Jt.nodes()[0].contentDocument:document,Bi=Xe.select(`[id="${_t}"]`);_De(Bi,["point","circle","cross"],gt.type,_t);const hu=gt.db.getVertices();let Qc;const Bu=gt.db.getSubGraphs();Ba.info("Subgraphs - ",Bu);for(let $1=Bu.length-1;$1>=0;$1--)Qc=Bu[$1],gt.db.addVertex(Qc.id,{text:Qc.title,type:Qc.labelType},"group",void 0,Qc.classes,Qc.dir);const Ir=Bi.insert("g").attr("class","subgraphs"),Tf=i$e(gt.db);y=await YDe(hu,_t,Xe,Yi,gt,Tf,y);const N1=Bi.insert("g").attr("class","edges edgePath"),D1=gt.db.getEdges();y=n$e(D1,gt,y,Bi),Object.keys(X3).forEach($1=>{const ul=X3[$1];ul.parent||y.children.push(ul),Tf.childrenById[$1]!==void 0&&(ul.labels=[{text:ul.labelText,layoutOptions:{"nodeLabels.placement":"[H_CENTER, V_TOP, INSIDE]"},width:ul.labelData.width,height:ul.labelData.height}],delete ul.x,delete ul.y,delete ul.width,delete ul.height)}),Bse(y.children,Tf),Ba.info("after layout",JSON.stringify(y,null,2));const V3=await $se.layout(y);Fse(0,0,V3.children,Bi,Ir,gt,0),Ba.info("after layout",V3),(Pr=V3.edges)==null||Pr.map($1=>{c$e(N1,$1,$1.edgeData,gt,Tf,_t)}),BDe({},Bi,Ht.diagramPadding,Ht.useMaxWidth),Li.remove()},Fse=(ct,_t,Xt,gt,Pr,Li,y)=>{Xt.forEach(function(Wt){if(Wt)if(X3[Wt.id].offset={posX:Wt.x+ct,posY:Wt.y+_t,x:ct,y:_t,depth:y,width:Wt.width,height:Wt.height},Wt.type==="group"){const Ku=Pr.insert("g").attr("class","subgraph");Ku.insert("rect").attr("class","subgraph subgraph-lvl-"+y%5+" node").attr("x",Wt.x+ct).attr("y",Wt.y+_t).attr("width",Wt.width).attr("height",Wt.height);const Ht=Ku.insert("g").attr("class","label"),Jt=$U().flowchart.htmlLabels?Wt.labelData.width/2:0;Ht.attr("transform",`translate(${Wt.labels[0].x+ct+Wt.x+Jt}, ${Wt.labels[0].y+_t+Wt.y+3})`),Ht.node().appendChild(Wt.labelData.labelNode),Ba.info("Id (UGH)= ",Wt.type,Wt.labels)}else Ba.info("Id (UGH)= ",Wt.id),Wt.el.attr("transform",`translate(${Wt.x+ct+Wt.width/2}, ${Wt.y+_t+Wt.height/2})`)}),Xt.forEach(function(Wt){Wt&&Wt.type==="group"&&Fse(ct+Wt.x,_t+Wt.y,Wt.children,gt,Pr,Li,y+1)})},o$e={getClasses:t$e,draw:u$e},s$e=ct=>{let _t="";for(let Xt=0;Xt<5;Xt++)_t+=`
.subgraph-lvl-${Xt} {
fill: ${ct[`surface${Xt}`]};
stroke: ${ct[`surfacePeer${Xt}`]};
}
`;return _t},f$e=ct=>`.label {
font-family: ${ct.fontFamily};
color: ${ct.nodeTextColor||ct.textColor};
}
.cluster-label text {
fill: ${ct.titleColor};
}
.cluster-label span {
color: ${ct.titleColor};
}
.label text,span {
fill: ${ct.nodeTextColor||ct.textColor};
color: ${ct.nodeTextColor||ct.textColor};
}
.node rect,
.node circle,
.node ellipse,
.node polygon,
.node path {
fill: ${ct.mainBkg};
stroke: ${ct.nodeBorder};
stroke-width: 1px;
}
.node .label {
text-align: center;
}
.node.clickable {
cursor: pointer;
}
.arrowheadPath {
fill: ${ct.arrowheadColor};
}
.edgePath .path {
stroke: ${ct.lineColor};
stroke-width: 2.0px;
}
.flowchart-link {
stroke: ${ct.lineColor};
fill: none;
}
.edgeLabel {
background-color: ${ct.edgeLabelBackground};
rect {
opacity: 0.85;
background-color: ${ct.edgeLabelBackground};
fill: ${ct.edgeLabelBackground};
}
text-align: center;
}
.cluster rect {
fill: ${ct.clusterBkg};
stroke: ${ct.clusterBorder};
stroke-width: 1px;
}
.cluster text {
fill: ${ct.titleColor};
}
.cluster span {
color: ${ct.titleColor};
}
/* .cluster div {
color: ${ct.titleColor};
} */
div.mermaidTooltip {
position: absolute;
text-align: center;
max-width: 200px;
padding: 2px;
font-family: ${ct.fontFamily};
font-size: 12px;
background: ${ct.tertiaryColor};
border: 1px solid ${ct.border2};
border-radius: 2px;
pointer-events: none;
z-index: 100;
}
.flowchartTitleText {
text-anchor: middle;
font-size: 18px;
fill: ${ct.textColor};
}
.subgraph {
stroke-width:2;
rx:3;
}
// .subgraph-lvl-1 {
// fill:#ccc;
// // stroke:black;
// }
.flowchart-label text {
text-anchor: middle;
}
${s$e(ct)}
`,h$e=f$e,M$e={db:xDe,renderer:o$e,parser:RDe,styles:h$e};export{M$e as diagram};
import{p as e,f as o}from"./flowDb-147da10a-DiemYpRj.js";import{f as t,a}from"./styles-c171666c-BORyiMHS.js";import{u as i}from"./slidev/5-BKiUV7YW.js";import"./graph-af3d5df6-DtpoS02a.js";import"./index-c8395ba2-BQkSvmSq.js";import"./layout-6685625a-CnDdhUY9.js";import"./clone-d2e37f8c-CN-809h5.js";import"./edges-1e1ebc73-5f7nvF86.js";import"./createText-f6615236-y76jB5p3.js";import"./line-65d70945-BvyDbe4_.js";import"./array-b7dcf730-BKyUJesY.js";import"./path-39bad7e2-CbwjOpE9.js";import"./channel-d3ac35ac-BPxKiy7g.js";import"./modules/vue-Dn3czbSS.js";import"./index-D2S1x1Oe.js";import"./modules/shiki-CuMFyo6Z.js";import"./modules/file-saver-EUMWMpoS.js";import"./slidev/default-CY-sqYNf.js";import"./slidev/context-CYh2-pv1.js";const D={parser:e,db:o,renderer:t,styles:a,init:r=>{r.flowchart||(r.flowchart={}),r.flowchart.arrowMarkerAbsolute=r.arrowMarkerAbsolute,i({flowchart:{arrowMarkerAbsolute:r.arrowMarkerAbsolute}}),t.setConf(r.flowchart),o.clear(),o.setGen("gen-2")}};export{D as diagram};
import{p as Lt,f as V}from"./flowDb-147da10a-DiemYpRj.js";import{G as _t,h as S,f as tt}from"./graph-af3d5df6-DtpoS02a.js";import{h as x,n as Y,o as et,c as G,r as rt,j as at,l as R,p as z,q as U,t as Et}from"./slidev/5-BKiUV7YW.js";import{u as Tt,r as Nt,p as At,l as Ct,d as M}from"./layout-6685625a-CnDdhUY9.js";import{f as It,a as Bt,b as nt,s as Mt,c as N,i as st,d as E,e as it,g as ot}from"./styles-c171666c-BORyiMHS.js";import{l as Dt}from"./line-65d70945-BvyDbe4_.js";import"./modules/vue-Dn3czbSS.js";import"./index-D2S1x1Oe.js";import"./modules/shiki-CuMFyo6Z.js";import"./modules/file-saver-EUMWMpoS.js";import"./slidev/default-CY-sqYNf.js";import"./slidev/context-CYh2-pv1.js";import"./index-c8395ba2-BQkSvmSq.js";import"./clone-d2e37f8c-CN-809h5.js";import"./edges-1e1ebc73-5f7nvF86.js";import"./createText-f6615236-y76jB5p3.js";import"./channel-d3ac35ac-BPxKiy7g.js";import"./array-b7dcf730-BKyUJesY.js";import"./path-39bad7e2-CbwjOpE9.js";function Rt(r){if(!r.ok)throw new Error(r.status+" "+r.statusText);return r.text()}function Gt(r,e){return fetch(r,e).then(Rt)}function Pt(r){return(e,t)=>Gt(e,t).then(n=>new DOMParser().parseFromString(n,r))}var Ut=Pt("image/svg+xml"),H={normal:Wt,vee:Vt,undirected:zt};function $t(r){H=r}function Wt(r,e,t,n){var a=r.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),s=a.append("path").attr("d","M 0 0 L 10 5 L 0 10 z").style("stroke-width",1).style("stroke-dasharray","1,0");N(s,t[n+"Style"]),t[n+"Class"]&&s.attr("class",t[n+"Class"])}function Vt(r,e,t,n){var a=r.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),s=a.append("path").attr("d","M 0 0 L 10 5 L 0 10 L 4 5 z").style("stroke-width",1).style("stroke-dasharray","1,0");N(s,t[n+"Style"]),t[n+"Class"]&&s.attr("class",t[n+"Class"])}function zt(r,e,t,n){var a=r.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),s=a.append("path").attr("d","M 0 5 L 10 5").style("stroke-width",1).style("stroke-dasharray","1,0");N(s,t[n+"Style"]),t[n+"Class"]&&s.attr("class",t[n+"Class"])}function Yt(r,e){var t=r;return t.node().appendChild(e.label),N(t,e.labelStyle),t}function Ht(r,e){for(var t=r.append("text"),n=Xt(e.label).split(`
`),a=0;a<n.length;a++)t.append("tspan").attr("xml:space","preserve").attr("dy","1em").attr("x","1").text(n[a]);return N(t,e.labelStyle),t}function Xt(r){for(var e="",t=!1,n,a=0;a<r.length;++a)if(n=r[a],t){switch(n){case"n":e+=`
`;break;default:e+=n}t=!1}else n==="\\"?t=!0:e+=n;return e}function J(r,e,t){var n=e.label,a=r.append("g");e.labelType==="svg"?Yt(a,e):typeof n!="string"||e.labelType==="html"?nt(a,e):Ht(a,e);var s=a.node().getBBox(),i;switch(t){case"top":i=-e.height/2;break;case"bottom":i=e.height/2-s.height;break;default:i=-s.height/2}return a.attr("transform","translate("+-s.width/2+","+i+")"),a}var X=function(r,e){var t=e.nodes().filter(function(s){return st(e,s)}),n=r.selectAll("g.cluster").data(t,function(s){return s});E(n.exit(),e).style("opacity",0).remove();var a=n.enter().append("g").attr("class","cluster").attr("id",function(s){var i=e.node(s);return i.id}).style("opacity",0).each(function(s){var i=e.node(s),o=x(this);x(this).append("rect");var c=o.append("g").attr("class","label");J(c,i,i.clusterLabelPos)});return n=n.merge(a),n=E(n,e).style("opacity",1),n.selectAll("rect").each(function(s){var i=e.node(s),o=x(this);N(o,i.style)}),n};function Ft(r){X=r}let F=function(r,e){var t=r.selectAll("g.edgeLabel").data(e.edges(),function(a){return it(a)}).classed("update",!0);t.exit().remove(),t.enter().append("g").classed("edgeLabel",!0).style("opacity",0),t=r.selectAll("g.edgeLabel"),t.each(function(a){var s=x(this);s.select(".label").remove();var i=e.edge(a),o=J(s,e.edge(a),0).classed("label",!0),c=o.node().getBBox();i.labelId&&o.attr("id",i.labelId),S(i,"width")||(i.width=c.width),S(i,"height")||(i.height=c.height)});var n;return t.exit?n=t.exit():n=t.selectAll(null),E(n,e).style("opacity",0).remove(),t};function qt(r){F=r}function O(r,e){return r.intersect(e)}var q=function(r,e,t){var n=r.selectAll("g.edgePath").data(e.edges(),function(i){return it(i)}).classed("update",!0),a=Ot(n,e);jt(n,e);var s=n.merge!==void 0?n.merge(a):n;return E(s,e).style("opacity",1),s.each(function(i){var o=x(this),c=e.edge(i);c.elem=this,c.id&&o.attr("id",c.id),ot(o,c.class,(o.classed("update")?"update ":"")+"edgePath")}),s.selectAll("path.path").each(function(i){var o=e.edge(i);o.arrowheadId=Tt("arrowhead");var c=x(this).attr("marker-end",function(){return"url("+Kt(location.href,o.arrowheadId)+")"}).style("fill","none");E(c,e).attr("d",function(d){return Jt(e,d)}),N(c,o.style)}),s.selectAll("defs *").remove(),s.selectAll("defs").each(function(i){var o=e.edge(i),c=t[o.arrowhead];c(x(this),o.arrowheadId,o,"arrowhead")}),s};function Qt(r){q=r}function Kt(r,e){var t=r.split("#")[0];return t+"#"+e}function Jt(r,e){var t=r.edge(e),n=r.node(e.v),a=r.node(e.w),s=t.points.slice(1,t.points.length-1);return s.unshift(O(n,s[0])),s.push(O(a,s[s.length-1])),lt(t,s)}function lt(r,e){var t=(Dt||Ut.line)().x(function(n){return n.x}).y(function(n){return n.y});return(t.curve||t.interpolate)(r.curve),t(e)}function Zt(r){var e=r.getBBox(),t=r.ownerSVGElement.getScreenCTM().inverse().multiply(r.getScreenCTM()).translate(e.width/2,e.height/2);return{x:t.e,y:t.f}}function Ot(r,e){var t=r.enter().append("g").attr("class","edgePath").style("opacity",0);return t.append("path").attr("class","path").attr("d",function(n){var a=e.edge(n),s=e.node(n.v).elem,i=Nt(a.points.length).map(function(){return Zt(s)});return lt(a,i)}),t.append("defs"),t}function jt(r,e){var t=r.exit();E(t,e).style("opacity",0).remove()}var Q=function(r,e,t){var n=e.nodes().filter(function(i){return!st(e,i)}),a=r.selectAll("g.node").data(n,function(i){return i}).classed("update",!0);a.exit().remove(),a.enter().append("g").attr("class","node").style("opacity",0),a=r.selectAll("g.node"),a.each(function(i){var o=e.node(i),c=x(this);ot(c,o.class,(c.classed("update")?"update ":"")+"node"),c.select("g.label").remove();var d=c.append("g").attr("class","label"),l=J(d,o),v=t[o.shape],h=At(l.node().getBBox(),"width","height");o.elem=this,o.id&&c.attr("id",o.id),o.labelId&&d.attr("id",o.labelId),S(o,"width")&&(h.width=o.width),S(o,"height")&&(h.height=o.height),h.width+=o.paddingLeft+o.paddingRight,h.height+=o.paddingTop+o.paddingBottom,d.attr("transform","translate("+(o.paddingLeft-o.paddingRight)/2+","+(o.paddingTop-o.paddingBottom)/2+")");var u=x(this);u.select(".label-container").remove();var p=v(u,h,o).classed("label-container",!0);N(p,o.style);var y=p.node().getBBox();o.width=y.width,o.height=y.height});var s;return a.exit?s=a.exit():s=a.selectAll(null),E(s,e).style("opacity",0).remove(),a};function te(r){Q=r}function ee(r,e){var t=r.filter(function(){return!x(this).classed("update")});function n(a){var s=e.node(a);return"translate("+s.x+","+s.y+")"}t.attr("transform",n),E(r,e).style("opacity",1).attr("transform",n),E(t.selectAll("rect"),e).attr("width",function(a){return e.node(a).width}).attr("height",function(a){return e.node(a).height}).attr("x",function(a){var s=e.node(a);return-s.width/2}).attr("y",function(a){var s=e.node(a);return-s.height/2})}function re(r,e){var t=r.filter(function(){return!x(this).classed("update")});function n(a){var s=e.edge(a);return S(s,"x")?"translate("+s.x+","+s.y+")":""}t.attr("transform",n),E(r,e).style("opacity",1).attr("transform",n)}function ae(r,e){var t=r.filter(function(){return!x(this).classed("update")});function n(a){var s=e.node(a);return"translate("+s.x+","+s.y+")"}t.attr("transform",n),E(r,e).style("opacity",1).attr("transform",n)}function ct(r,e,t,n){var a=r.x,s=r.y,i=a-n.x,o=s-n.y,c=Math.sqrt(e*e*o*o+t*t*i*i),d=Math.abs(e*t*i/c);n.x<a&&(d=-d);var l=Math.abs(e*t*o/c);return n.y<s&&(l=-l),{x:a+d,y:s+l}}function ne(r,e,t){return ct(r,e,e,t)}function se(r,e,t,n){var a,s,i,o,c,d,l,v,h,u,p,y,f,g,k;if(a=e.y-r.y,i=r.x-e.x,c=e.x*r.y-r.x*e.y,h=a*t.x+i*t.y+c,u=a*n.x+i*n.y+c,!(h!==0&&u!==0&&j(h,u))&&(s=n.y-t.y,o=t.x-n.x,d=n.x*t.y-t.x*n.y,l=s*r.x+o*r.y+d,v=s*e.x+o*e.y+d,!(l!==0&&v!==0&&j(l,v))&&(p=a*o-s*i,p!==0)))return y=Math.abs(p/2),f=i*d-o*c,g=f<0?(f-y)/p:(f+y)/p,f=s*c-a*d,k=f<0?(f-y)/p:(f+y)/p,{x:g,y:k}}function j(r,e){return r*e>0}function T(r,e,t){var n=r.x,a=r.y,s=[],i=Number.POSITIVE_INFINITY,o=Number.POSITIVE_INFINITY;e.forEach(function(p){i=Math.min(i,p.x),o=Math.min(o,p.y)});for(var c=n-r.width/2-i,d=a-r.height/2-o,l=0;l<e.length;l++){var v=e[l],h=e[l<e.length-1?l+1:0],u=se(r,t,{x:c+v.x,y:d+v.y},{x:c+h.x,y:d+h.y});u&&s.push(u)}return s.length?(s.length>1&&s.sort(function(p,y){var f=p.x-t.x,g=p.y-t.y,k=Math.sqrt(f*f+g*g),I=y.x-t.x,_=y.y-t.y,$=Math.sqrt(I*I+_*_);return k<$?-1:k===$?0:1}),s[0]):(console.log("NO INTERSECTION FOUND, RETURN NODE CENTER",r),r)}function Z(r,e){var t=r.x,n=r.y,a=e.x-t,s=e.y-n,i=r.width/2,o=r.height/2,c,d;return Math.abs(s)*i>Math.abs(a)*o?(s<0&&(o=-o),c=s===0?0:o*a/s,d=o):(a<0&&(i=-i),c=i,d=a===0?0:i*s/a),{x:t+c,y:n+d}}var K={rect:oe,ellipse:le,circle:ce,diamond:de};function ie(r){K=r}function oe(r,e,t){var n=r.insert("rect",":first-child").attr("rx",t.rx).attr("ry",t.ry).attr("x",-e.width/2).attr("y",-e.height/2).attr("width",e.width).attr("height",e.height);return t.intersect=function(a){return Z(t,a)},n}function le(r,e,t){var n=e.width/2,a=e.height/2,s=r.insert("ellipse",":first-child").attr("x",-e.width/2).attr("y",-e.height/2).attr("rx",n).attr("ry",a);return t.intersect=function(i){return ct(t,n,a,i)},s}function ce(r,e,t){var n=Math.max(e.width,e.height)/2,a=r.insert("circle",":first-child").attr("x",-e.width/2).attr("y",-e.height/2).attr("r",n);return t.intersect=function(s){return ne(t,n,s)},a}function de(r,e,t){var n=e.width*Math.SQRT2/2,a=e.height*Math.SQRT2/2,s=[{x:0,y:-a},{x:-n,y:0},{x:0,y:a},{x:n,y:0}],i=r.insert("polygon",":first-child").attr("points",s.map(function(o){return o.x+","+o.y}).join(" "));return t.intersect=function(o){return T(t,s,o)},i}function he(){var r=function(e,t){pe(t);var n=D(e,"output"),a=D(n,"clusters"),s=D(n,"edgePaths"),i=F(D(n,"edgeLabels"),t),o=Q(D(n,"nodes"),t,K);Ct(t),ae(o,t),re(i,t),q(s,t,H);var c=X(a,t);ee(c,t),ve(t)};return r.createNodes=function(e){return arguments.length?(te(e),r):Q},r.createClusters=function(e){return arguments.length?(Ft(e),r):X},r.createEdgeLabels=function(e){return arguments.length?(qt(e),r):F},r.createEdgePaths=function(e){return arguments.length?(Qt(e),r):q},r.shapes=function(e){return arguments.length?(ie(e),r):K},r.arrows=function(e){return arguments.length?($t(e),r):H},r}var ue={paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10,rx:0,ry:0,shape:"rect"},fe={arrowhead:"normal",curve:U};function pe(r){r.nodes().forEach(function(e){var t=r.node(e);!S(t,"label")&&!r.children(e).length&&(t.label=e),S(t,"paddingX")&&M(t,{paddingLeft:t.paddingX,paddingRight:t.paddingX}),S(t,"paddingY")&&M(t,{paddingTop:t.paddingY,paddingBottom:t.paddingY}),S(t,"padding")&&M(t,{paddingLeft:t.padding,paddingRight:t.padding,paddingTop:t.padding,paddingBottom:t.padding}),M(t,ue),tt(["paddingLeft","paddingRight","paddingTop","paddingBottom"],function(n){t[n]=Number(t[n])}),S(t,"width")&&(t._prevWidth=t.width),S(t,"height")&&(t._prevHeight=t.height)}),r.edges().forEach(function(e){var t=r.edge(e);S(t,"label")||(t.label=""),M(t,fe)})}function ve(r){tt(r.nodes(),function(e){var t=r.node(e);S(t,"_prevWidth")?t.width=t._prevWidth:delete t.width,S(t,"_prevHeight")?t.height=t._prevHeight:delete t.height,delete t._prevWidth,delete t._prevHeight})}function D(r,e){var t=r.select("g."+e);return t.empty()&&(t=r.append("g").attr("class",e)),t}function dt(r,e,t){const n=e.width,a=e.height,s=(n+a)*.9,i=[{x:s/2,y:0},{x:s,y:-s/2},{x:s/2,y:-s},{x:0,y:-s/2}],o=A(r,s,s,i);return t.intersect=function(c){return T(t,i,c)},o}function ht(r,e,t){const a=e.height,s=a/4,i=e.width+2*s,o=[{x:s,y:0},{x:i-s,y:0},{x:i,y:-a/2},{x:i-s,y:-a},{x:s,y:-a},{x:0,y:-a/2}],c=A(r,i,a,o);return t.intersect=function(d){return T(t,o,d)},c}function ut(r,e,t){const n=e.width,a=e.height,s=[{x:-a/2,y:0},{x:n,y:0},{x:n,y:-a},{x:-a/2,y:-a},{x:0,y:-a/2}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function ft(r,e,t){const n=e.width,a=e.height,s=[{x:-2*a/6,y:0},{x:n-a/6,y:0},{x:n+2*a/6,y:-a},{x:a/6,y:-a}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function pt(r,e,t){const n=e.width,a=e.height,s=[{x:2*a/6,y:0},{x:n+a/6,y:0},{x:n-2*a/6,y:-a},{x:-a/6,y:-a}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function vt(r,e,t){const n=e.width,a=e.height,s=[{x:-2*a/6,y:0},{x:n+2*a/6,y:0},{x:n-a/6,y:-a},{x:a/6,y:-a}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function gt(r,e,t){const n=e.width,a=e.height,s=[{x:a/6,y:0},{x:n-a/6,y:0},{x:n+2*a/6,y:-a},{x:-2*a/6,y:-a}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function yt(r,e,t){const n=e.width,a=e.height,s=[{x:0,y:0},{x:n+a/2,y:0},{x:n,y:-a/2},{x:n+a/2,y:-a},{x:0,y:-a}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function mt(r,e,t){const n=e.height,a=e.width+n/4,s=r.insert("rect",":first-child").attr("rx",n/2).attr("ry",n/2).attr("x",-a/2).attr("y",-n/2).attr("width",a).attr("height",n);return t.intersect=function(i){return Z(t,i)},s}function wt(r,e,t){const n=e.width,a=e.height,s=[{x:0,y:0},{x:n,y:0},{x:n,y:-a},{x:0,y:-a},{x:0,y:0},{x:-8,y:0},{x:n+8,y:0},{x:n+8,y:-a},{x:-8,y:-a},{x:-8,y:0}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function xt(r,e,t){const n=e.width,a=n/2,s=a/(2.5+n/50),i=e.height+s,o="M 0,"+s+" a "+a+","+s+" 0,0,0 "+n+" 0 a "+a+","+s+" 0,0,0 "+-n+" 0 l 0,"+i+" a "+a+","+s+" 0,0,0 "+n+" 0 l 0,"+-i,c=r.attr("label-offset-y",s).insert("path",":first-child").attr("d",o).attr("transform","translate("+-n/2+","+-(i/2+s)+")");return t.intersect=function(d){const l=Z(t,d),v=l.x-t.x;if(a!=0&&(Math.abs(v)<t.width/2||Math.abs(v)==t.width/2&&Math.abs(l.y-t.y)>t.height/2-s)){let h=s*s*(1-v*v/(a*a));h!=0&&(h=Math.sqrt(h)),h=s-h,d.y-t.y>0&&(h=-h),l.y+=h}return l},c}function ge(r){r.shapes().question=dt,r.shapes().hexagon=ht,r.shapes().stadium=mt,r.shapes().subroutine=wt,r.shapes().cylinder=xt,r.shapes().rect_left_inv_arrow=ut,r.shapes().lean_right=ft,r.shapes().lean_left=pt,r.shapes().trapezoid=vt,r.shapes().inv_trapezoid=gt,r.shapes().rect_right_inv_arrow=yt}function ye(r){r({question:dt}),r({hexagon:ht}),r({stadium:mt}),r({subroutine:wt}),r({cylinder:xt}),r({rect_left_inv_arrow:ut}),r({lean_right:ft}),r({lean_left:pt}),r({trapezoid:vt}),r({inv_trapezoid:gt}),r({rect_right_inv_arrow:yt})}function A(r,e,t,n){return r.insert("polygon",":first-child").attr("points",n.map(function(a){return a.x+","+a.y}).join(" ")).attr("transform","translate("+-e/2+","+t/2+")")}const me={addToRender:ge,addToRenderV2:ye},bt={},we=function(r){const e=Object.keys(r);for(const t of e)bt[t]=r[t]},kt=async function(r,e,t,n,a,s){const i=n?n.select(`[id="${t}"]`):x(`[id="${t}"]`),o=a||document,c=Object.keys(r);for(const d of c){const l=r[d];let v="default";l.classes.length>0&&(v=l.classes.join(" "));const h=Y(l.styles);let u=l.text!==void 0?l.text:l.id,p;if(et(G().flowchart.htmlLabels)){const g={label:await rt(u.replace(/fa[blrs]?:fa-[\w-]+/g,k=>`<i class='${k.replace(":"," ")}'></i>`),G())};p=nt(i,g).node(),p.parentNode.removeChild(p)}else{const g=o.createElementNS("http://www.w3.org/2000/svg","text");g.setAttribute("style",h.labelStyle.replace("color:","fill:"));const k=u.split(at.lineBreakRegex);for(const I of k){const _=o.createElementNS("http://www.w3.org/2000/svg","tspan");_.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),_.setAttribute("dy","1em"),_.setAttribute("x","1"),_.textContent=I,g.appendChild(_)}p=g}let y=0,f="";switch(l.type){case"round":y=5,f="rect";break;case"square":f="rect";break;case"diamond":f="question";break;case"hexagon":f="hexagon";break;case"odd":f="rect_left_inv_arrow";break;case"lean_right":f="lean_right";break;case"lean_left":f="lean_left";break;case"trapezoid":f="trapezoid";break;case"inv_trapezoid":f="inv_trapezoid";break;case"odd_right":f="rect_left_inv_arrow";break;case"circle":f="circle";break;case"ellipse":f="ellipse";break;case"stadium":f="stadium";break;case"subroutine":f="subroutine";break;case"cylinder":f="cylinder";break;case"group":f="rect";break;default:f="rect"}R.warn("Adding node",l.id,l.domId),e.setNode(s.db.lookUpDomId(l.id),{labelType:"svg",labelStyle:h.labelStyle,shape:f,label:p,rx:y,ry:y,class:v,style:h.style,id:s.db.lookUpDomId(l.id)})}},St=async function(r,e,t){let n=0,a,s;if(r.defaultStyle!==void 0){const i=Y(r.defaultStyle);a=i.style,s=i.labelStyle}for(const i of r){n++;const o="L-"+i.start+"-"+i.end,c="LS-"+i.start,d="LE-"+i.end,l={};i.type==="arrow_open"?l.arrowhead="none":l.arrowhead="normal";let v="",h="";if(i.style!==void 0){const u=Y(i.style);v=u.style,h=u.labelStyle}else switch(i.stroke){case"normal":v="fill:none",a!==void 0&&(v=a),s!==void 0&&(h=s);break;case"dotted":v="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":v=" stroke-width: 3.5px;fill:none";break}l.style=v,l.labelStyle=h,i.interpolate!==void 0?l.curve=z(i.interpolate,U):r.defaultInterpolate!==void 0?l.curve=z(r.defaultInterpolate,U):l.curve=z(bt.curve,U),i.text===void 0?i.style!==void 0&&(l.arrowheadStyle="fill: #333"):(l.arrowheadStyle="fill: #333",l.labelpos="c",et(G().flowchart.htmlLabels)?(l.labelType="html",l.label=`<span id="L-${o}" class="edgeLabel L-${c}' L-${d}" style="${l.labelStyle}">${await rt(i.text.replace(/fa[blrs]?:fa-[\w-]+/g,u=>`<i class='${u.replace(":"," ")}'></i>`),G())}</span>`):(l.labelType="text",l.label=i.text.replace(at.lineBreakRegex,`
`),i.style===void 0&&(l.style=l.style||"stroke: #333; stroke-width: 1.5px;fill:none"),l.labelStyle=l.labelStyle.replace("color:","fill:"))),l.id=o,l.class=c+" "+d,l.minlen=i.length||1,e.setEdge(t.db.lookUpDomId(i.start),t.db.lookUpDomId(i.end),l,n)}},xe=function(r,e){return R.info("Extracting classes"),e.db.getClasses()},be=async function(r,e,t,n){R.info("Drawing flowchart");const{securityLevel:a,flowchart:s}=G();let i;a==="sandbox"&&(i=x("#i"+e));const o=a==="sandbox"?x(i.nodes()[0].contentDocument.body):x("body"),c=a==="sandbox"?i.nodes()[0].contentDocument:document;let d=n.db.getDirection();d===void 0&&(d="TD");const l=s.nodeSpacing||50,v=s.rankSpacing||50,h=new _t({multigraph:!0,compound:!0}).setGraph({rankdir:d,nodesep:l,ranksep:v,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});let u;const p=n.db.getSubGraphs();for(let m=p.length-1;m>=0;m--)u=p[m],n.db.addVertex(u.id,u.title,"group",void 0,u.classes);const y=n.db.getVertices();R.warn("Get vertices",y);const f=n.db.getEdges();let g=0;for(g=p.length-1;g>=0;g--){u=p[g],Mt("cluster").append("text");for(let m=0;m<u.nodes.length;m++)R.warn("Setting subgraph",u.nodes[m],n.db.lookUpDomId(u.nodes[m]),n.db.lookUpDomId(u.id)),h.setParent(n.db.lookUpDomId(u.nodes[m]),n.db.lookUpDomId(u.id))}await kt(y,h,e,o,c,n),await St(f,h,n);const k=new he;me.addToRender(k),k.arrows().none=function(b,L,w,B){const C=b.append("marker").attr("id",L).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 0 0 L 0 0 z");N(C,w[B+"Style"])},k.arrows().normal=function(b,L){b.append("marker").attr("id",L).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowheadPath").style("stroke-width",1).style("stroke-dasharray","1,0")};const I=o.select(`[id="${e}"]`),_=o.select("#"+e+" g");for(k(_,h),_.selectAll("g.node").attr("title",function(){return n.db.getTooltip(this.id)}),n.db.indexNodes("subGraph"+g),g=0;g<p.length;g++)if(u=p[g],u.title!=="undefined"){const m=c.querySelectorAll("#"+e+' [id="'+n.db.lookUpDomId(u.id)+'"] rect'),b=c.querySelectorAll("#"+e+' [id="'+n.db.lookUpDomId(u.id)+'"]'),L=m[0].x.baseVal.value,w=m[0].y.baseVal.value,B=m[0].width.baseVal.value,C=x(b[0]).select(".label");C.attr("transform",`translate(${L+B/2}, ${w+14})`),C.attr("id",e+"Text");for(let W=0;W<u.classes.length;W++)b[0].classList.add(u.classes[W])}if(!s.htmlLabels){const m=c.querySelectorAll('[id="'+e+'"] .edgeLabel .label');for(const b of m){const L=b.getBBox(),w=c.createElementNS("http://www.w3.org/2000/svg","rect");w.setAttribute("rx",0),w.setAttribute("ry",0),w.setAttribute("width",L.width),w.setAttribute("height",L.height),b.insertBefore(w,b.firstChild)}}Et(h,I,s.diagramPadding,s.useMaxWidth),Object.keys(y).forEach(function(m){const b=y[m];if(b.link){const L=o.select("#"+e+' [id="'+n.db.lookUpDomId(m)+'"]');if(L){const w=c.createElementNS("http://www.w3.org/2000/svg","a");w.setAttributeNS("http://www.w3.org/2000/svg","class",b.classes.join(" ")),w.setAttributeNS("http://www.w3.org/2000/svg","href",b.link),w.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),a==="sandbox"?w.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):b.linkTarget&&w.setAttributeNS("http://www.w3.org/2000/svg","target",b.linkTarget);const B=L.insert(function(){return w},":first-child"),P=L.select(".label-container");P&&B.append(function(){return P.node()});const C=L.select(".label");C&&B.append(function(){return C.node()})}}})},ke={setConf:we,addVertices:kt,addEdges:St,getClasses:xe,draw:be},ze={parser:Lt,db:V,renderer:It,styles:Bt,init:r=>{r.flowchart||(r.flowchart={}),r.flowchart.arrowMarkerAbsolute=r.arrowMarkerAbsolute,ke.setConf(r.flowchart),V.clear(),V.setGen("gen-1")}};export{ze as diagram};
import{c as et,V as me,s as ye,g as ve,a as Ve,b as Le,C as Ie,D as Re,l as J1,v as dt,E as Ne,j as we,h as w1}from"./slidev/5-BKiUV7YW.js";var pt=function(){var e=function(f1,a,o,f){for(o=o||{},f=f1.length;f--;o[f1[f]]=a);return o},u=[1,4],i=[1,3],n=[1,5],c=[1,8,9,10,11,27,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],l=[2,2],h=[1,13],U=[1,14],F=[1,15],w=[1,16],X=[1,23],o1=[1,25],p1=[1,26],A1=[1,27],S=[1,49],k=[1,48],l1=[1,29],U1=[1,30],G1=[1,31],M1=[1,32],K1=[1,33],x=[1,44],B=[1,46],m=[1,42],y=[1,47],v=[1,43],V=[1,50],L=[1,45],I=[1,51],R=[1,52],Y1=[1,34],j1=[1,35],z1=[1,36],X1=[1,37],I1=[1,57],b=[1,8,9,10,11,27,32,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],q=[1,61],Q=[1,60],Z=[1,62],H1=[8,9,11,73,75],k1=[1,88],b1=[1,93],g1=[1,92],D1=[1,89],F1=[1,85],T1=[1,91],C1=[1,87],S1=[1,94],_1=[1,90],x1=[1,95],B1=[1,86],W1=[8,9,10,11,73,75],N=[8,9,10,11,44,73,75],M=[8,9,10,11,29,42,44,46,48,50,52,54,56,58,61,63,65,66,68,73,75,86,99,102,103,106,108,111,112,113],Et=[8,9,11,42,58,73,75,86,99,102,103,106,108,111,112,113],R1=[42,58,86,99,102,103,106,108,111,112,113],kt=[1,121],bt=[1,120],gt=[1,128],Dt=[1,142],Ft=[1,143],Tt=[1,144],Ct=[1,145],St=[1,130],_t=[1,132],xt=[1,136],Bt=[1,137],mt=[1,138],yt=[1,139],vt=[1,140],Vt=[1,141],Lt=[1,146],It=[1,147],Rt=[1,126],Nt=[1,127],wt=[1,134],Ot=[1,129],Pt=[1,133],Ut=[1,131],nt=[8,9,10,11,27,32,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],Gt=[1,149],T=[8,9,11],K=[8,9,10,11,14,42,58,86,102,103,106,108,111,112,113],p=[1,169],O=[1,165],P=[1,166],A=[1,170],d=[1,167],E=[1,168],m1=[75,113,116],g=[8,9,10,11,12,14,27,29,32,42,58,73,81,82,83,84,85,86,87,102,106,108,111,112,113],Mt=[10,103],h1=[31,47,49,51,53,55,60,62,64,65,67,69,113,114,115],J=[1,235],$=[1,233],t1=[1,237],e1=[1,231],s1=[1,232],u1=[1,234],i1=[1,236],r1=[1,238],y1=[1,255],Kt=[8,9,11,103],W=[8,9,10,11,58,81,102,103,106,107,108,109],at={trace:function(){},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,link:39,node:40,styledVertex:41,AMP:42,vertex:43,STYLE_SEPARATOR:44,idString:45,DOUBLECIRCLESTART:46,DOUBLECIRCLEEND:47,PS:48,PE:49,"(-":50,"-)":51,STADIUMSTART:52,STADIUMEND:53,SUBROUTINESTART:54,SUBROUTINEEND:55,VERTEX_WITH_PROPS_START:56,"NODE_STRING[field]":57,COLON:58,"NODE_STRING[value]":59,PIPE:60,CYLINDERSTART:61,CYLINDEREND:62,DIAMOND_START:63,DIAMOND_STOP:64,TAGEND:65,TRAPSTART:66,TRAPEND:67,INVTRAPSTART:68,INVTRAPEND:69,linkStatement:70,arrowText:71,TESTSTR:72,START_LINK:73,edgeText:74,LINK:75,edgeTextToken:76,STR:77,MD_STR:78,textToken:79,keywords:80,STYLE:81,LINKSTYLE:82,CLASSDEF:83,CLASS:84,CLICK:85,DOWN:86,UP:87,textNoTagsToken:88,stylesOpt:89,"idString[vertex]":90,"idString[class]":91,CALLBACKNAME:92,CALLBACKARGS:93,HREF:94,LINK_TARGET:95,"STR[link]":96,"STR[tooltip]":97,alphaNum:98,DEFAULT:99,numList:100,INTERPOLATE:101,NUM:102,COMMA:103,style:104,styleComponent:105,NODE_STRING:106,UNIT:107,BRKT:108,PCT:109,idStringToken:110,MINUS:111,MULT:112,UNICODE_TEXT:113,TEXT:114,TAGSTART:115,EDGE_TEXT:116,alphaNumToken:117,direction_tb:118,direction_bt:119,direction_rl:120,direction_lr:121,$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",42:"AMP",44:"STYLE_SEPARATOR",46:"DOUBLECIRCLESTART",47:"DOUBLECIRCLEEND",48:"PS",49:"PE",50:"(-",51:"-)",52:"STADIUMSTART",53:"STADIUMEND",54:"SUBROUTINESTART",55:"SUBROUTINEEND",56:"VERTEX_WITH_PROPS_START",57:"NODE_STRING[field]",58:"COLON",59:"NODE_STRING[value]",60:"PIPE",61:"CYLINDERSTART",62:"CYLINDEREND",63:"DIAMOND_START",64:"DIAMOND_STOP",65:"TAGEND",66:"TRAPSTART",67:"TRAPEND",68:"INVTRAPSTART",69:"INVTRAPEND",72:"TESTSTR",73:"START_LINK",75:"LINK",77:"STR",78:"MD_STR",81:"STYLE",82:"LINKSTYLE",83:"CLASSDEF",84:"CLASS",85:"CLICK",86:"DOWN",87:"UP",90:"idString[vertex]",91:"idString[class]",92:"CALLBACKNAME",93:"CALLBACKARGS",94:"HREF",95:"LINK_TARGET",96:"STR[link]",97:"STR[tooltip]",99:"DEFAULT",101:"INTERPOLATE",102:"NUM",103:"COMMA",106:"NODE_STRING",107:"UNIT",108:"BRKT",109:"PCT",111:"MINUS",112:"MULT",113:"UNICODE_TEXT",114:"TEXT",115:"TAGSTART",116:"EDGE_TEXT",118:"direction_tb",119:"direction_bt",120:"direction_rl",121:"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],[20,3],[20,4],[20,2],[20,1],[40,1],[40,5],[41,1],[41,3],[43,4],[43,4],[43,6],[43,4],[43,4],[43,4],[43,8],[43,4],[43,4],[43,4],[43,6],[43,4],[43,4],[43,4],[43,4],[43,4],[43,1],[39,2],[39,3],[39,3],[39,1],[39,3],[74,1],[74,2],[74,1],[74,1],[70,1],[71,3],[30,1],[30,2],[30,1],[30,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,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],[100,1],[100,3],[89,1],[89,3],[104,1],[104,2],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[79,1],[79,1],[79,1],[79,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[76,1],[76,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[45,1],[45,2],[98,1],[98,2],[33,1],[33,1],[33,1],[33,1]],performAction:function(a,o,f,r,C,t,N1){var s=t.length-1;switch(C){case 2:this.$=[];break;case 3:(!Array.isArray(t[s])||t[s].length>0)&&t[s-1].push(t[s]),this.$=t[s-1];break;case 4:case 176:this.$=t[s];break;case 11:r.setDirection("TB"),this.$="TB";break;case 12:r.setDirection(t[s-1]),this.$=t[s-1];break;case 27:this.$=t[s-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=r.addSubGraph(t[s-6],t[s-1],t[s-4]);break;case 34:this.$=r.addSubGraph(t[s-3],t[s-1],t[s-3]);break;case 35:this.$=r.addSubGraph(void 0,t[s-1],void 0);break;case 37:this.$=t[s].trim(),r.setAccTitle(this.$);break;case 38:case 39:this.$=t[s].trim(),r.setAccDescription(this.$);break;case 43:r.addLink(t[s-2].stmt,t[s],t[s-1]),this.$={stmt:t[s],nodes:t[s].concat(t[s-2].nodes)};break;case 44:r.addLink(t[s-3].stmt,t[s-1],t[s-2]),this.$={stmt:t[s-1],nodes:t[s-1].concat(t[s-3].nodes)};break;case 45:this.$={stmt:t[s-1],nodes:t[s-1]};break;case 46:this.$={stmt:t[s],nodes:t[s]};break;case 47:this.$=[t[s]];break;case 48:this.$=t[s-4].concat(t[s]);break;case 49:this.$=t[s];break;case 50:this.$=t[s-2],r.setClass(t[s-2],t[s]);break;case 51:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"square");break;case 52:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"doublecircle");break;case 53:this.$=t[s-5],r.addVertex(t[s-5],t[s-2],"circle");break;case 54:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"ellipse");break;case 55:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"stadium");break;case 56:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"subroutine");break;case 57:this.$=t[s-7],r.addVertex(t[s-7],t[s-1],"rect",void 0,void 0,void 0,Object.fromEntries([[t[s-5],t[s-3]]]));break;case 58:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"cylinder");break;case 59:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"round");break;case 60:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"diamond");break;case 61:this.$=t[s-5],r.addVertex(t[s-5],t[s-2],"hexagon");break;case 62:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"odd");break;case 63:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"trapezoid");break;case 64:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"inv_trapezoid");break;case 65:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"lean_right");break;case 66:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"lean_left");break;case 67:this.$=t[s],r.addVertex(t[s]);break;case 68:t[s-1].text=t[s],this.$=t[s-1];break;case 69:case 70:t[s-2].text=t[s-1],this.$=t[s-2];break;case 71:this.$=t[s];break;case 72:var Y=r.destructLink(t[s],t[s-2]);this.$={type:Y.type,stroke:Y.stroke,length:Y.length,text:t[s-1]};break;case 73:this.$={text:t[s],type:"text"};break;case 74:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 75:this.$={text:t[s],type:"string"};break;case 76:this.$={text:t[s],type:"markdown"};break;case 77:var Y=r.destructLink(t[s]);this.$={type:Y.type,stroke:Y.stroke,length:Y.length};break;case 78:this.$=t[s-1];break;case 79:this.$={text:t[s],type:"text"};break;case 80:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 81:this.$={text:t[s],type:"string"};break;case 82:case 97:this.$={text:t[s],type:"markdown"};break;case 94:this.$={text:t[s],type:"text"};break;case 95:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 96:this.$={text:t[s],type:"text"};break;case 98:this.$=t[s-4],r.addClass(t[s-2],t[s]);break;case 99:this.$=t[s-4],r.setClass(t[s-2],t[s]);break;case 100:case 108:this.$=t[s-1],r.setClickEvent(t[s-1],t[s]);break;case 101:case 109:this.$=t[s-3],r.setClickEvent(t[s-3],t[s-2]),r.setTooltip(t[s-3],t[s]);break;case 102:this.$=t[s-2],r.setClickEvent(t[s-2],t[s-1],t[s]);break;case 103:this.$=t[s-4],r.setClickEvent(t[s-4],t[s-3],t[s-2]),r.setTooltip(t[s-4],t[s]);break;case 104:this.$=t[s-2],r.setLink(t[s-2],t[s]);break;case 105:this.$=t[s-4],r.setLink(t[s-4],t[s-2]),r.setTooltip(t[s-4],t[s]);break;case 106:this.$=t[s-4],r.setLink(t[s-4],t[s-2],t[s]);break;case 107:this.$=t[s-6],r.setLink(t[s-6],t[s-4],t[s]),r.setTooltip(t[s-6],t[s-2]);break;case 110:this.$=t[s-1],r.setLink(t[s-1],t[s]);break;case 111:this.$=t[s-3],r.setLink(t[s-3],t[s-2]),r.setTooltip(t[s-3],t[s]);break;case 112:this.$=t[s-3],r.setLink(t[s-3],t[s-2],t[s]);break;case 113:this.$=t[s-5],r.setLink(t[s-5],t[s-4],t[s]),r.setTooltip(t[s-5],t[s-2]);break;case 114:this.$=t[s-4],r.addVertex(t[s-2],void 0,void 0,t[s]);break;case 115:this.$=t[s-4],r.updateLink([t[s-2]],t[s]);break;case 116:this.$=t[s-4],r.updateLink(t[s-2],t[s]);break;case 117:this.$=t[s-8],r.updateLinkInterpolate([t[s-6]],t[s-2]),r.updateLink([t[s-6]],t[s]);break;case 118:this.$=t[s-8],r.updateLinkInterpolate(t[s-6],t[s-2]),r.updateLink(t[s-6],t[s]);break;case 119:this.$=t[s-6],r.updateLinkInterpolate([t[s-4]],t[s]);break;case 120:this.$=t[s-6],r.updateLinkInterpolate(t[s-4],t[s]);break;case 121:case 123:this.$=[t[s]];break;case 122:case 124:t[s-2].push(t[s]),this.$=t[s-2];break;case 126:this.$=t[s-1]+t[s];break;case 174:this.$=t[s];break;case 175:this.$=t[s-1]+""+t[s];break;case 177:this.$=t[s-1]+""+t[s];break;case 178:this.$={stmt:"dir",value:"TB"};break;case 179:this.$={stmt:"dir",value:"BT"};break;case 180:this.$={stmt:"dir",value:"RL"};break;case 181:this.$={stmt:"dir",value:"LR"};break}},table:[{3:1,4:2,9:u,10:i,12:n},{1:[3]},e(c,l,{5:6}),{4:7,9:u,10:i,12:n},{4:8,9:u,10:i,12:n},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:h,9:U,10:F,11:w,20:17,22:18,23:19,24:20,25:21,26:22,27:X,33:24,34:o1,36:p1,38:A1,40:28,41:38,42:S,43:39,45:40,58:k,81:l1,82:U1,83:G1,84:M1,85:K1,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R,118:Y1,119:j1,120:z1,121:X1},e(c,[2,9]),e(c,[2,10]),e(c,[2,11]),{8:[1,54],9:[1,55],10:I1,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:q,9:Q,11:Z,21:58,39:59,70:63,73:[1,64],75:[1,65]},{8:q,9:Q,11:Z,21:66},{8:q,9:Q,11:Z,21:67},{8:q,9:Q,11:Z,21:68},{8:q,9:Q,11:Z,21:69},{8:q,9:Q,11:Z,21:70},{8:q,9:Q,10:[1,71],11:Z,21:72},e(b,[2,36]),{35:[1,73]},{37:[1,74]},e(b,[2,39]),e(H1,[2,46],{18:75,10:I1}),{10:[1,76]},{10:[1,77]},{10:[1,78]},{10:[1,79]},{14:k1,42:b1,58:g1,77:[1,83],86:D1,92:[1,80],94:[1,81],98:82,102:F1,103:T1,106:C1,108:S1,111:_1,112:x1,113:B1,117:84},e(b,[2,178]),e(b,[2,179]),e(b,[2,180]),e(b,[2,181]),e(W1,[2,47]),e(W1,[2,49],{44:[1,96]}),e(N,[2,67],{110:109,29:[1,97],42:S,46:[1,98],48:[1,99],50:[1,100],52:[1,101],54:[1,102],56:[1,103],58:k,61:[1,104],63:[1,105],65:[1,106],66:[1,107],68:[1,108],86:x,99:B,102:m,103:y,106:v,108:V,111:L,112:I,113:R}),e(M,[2,174]),e(M,[2,135]),e(M,[2,136]),e(M,[2,137]),e(M,[2,138]),e(M,[2,139]),e(M,[2,140]),e(M,[2,141]),e(M,[2,142]),e(M,[2,143]),e(M,[2,144]),e(M,[2,145]),e(c,[2,12]),e(c,[2,18]),e(c,[2,19]),{9:[1,110]},e(Et,[2,26],{18:111,10:I1}),e(b,[2,27]),{40:112,41:38,42:S,43:39,45:40,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},e(b,[2,40]),e(b,[2,41]),e(b,[2,42]),e(R1,[2,71],{71:113,60:[1,115],72:[1,114]}),{74:116,76:117,77:[1,118],78:[1,119],113:kt,116:bt},e([42,58,60,72,86,99,102,103,106,108,111,112,113],[2,77]),e(b,[2,28]),e(b,[2,29]),e(b,[2,30]),e(b,[2,31]),e(b,[2,32]),{10:gt,12:Dt,14:Ft,27:Tt,28:122,32:Ct,42:St,58:_t,73:xt,77:[1,124],78:[1,125],80:135,81:Bt,82:mt,83:yt,84:vt,85:Vt,86:Lt,87:It,88:123,102:Rt,106:Nt,108:wt,111:Ot,112:Pt,113:Ut},e(nt,l,{5:148}),e(b,[2,37]),e(b,[2,38]),e(H1,[2,45],{42:Gt}),{42:S,45:150,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},{99:[1,151],100:152,102:[1,153]},{42:S,45:154,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},{42:S,45:155,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},e(T,[2,100],{10:[1,156],93:[1,157]}),{77:[1,158]},e(T,[2,108],{117:160,10:[1,159],14:k1,42:b1,58:g1,86:D1,102:F1,103:T1,106:C1,108:S1,111:_1,112:x1,113:B1}),e(T,[2,110],{10:[1,161]}),e(K,[2,176]),e(K,[2,163]),e(K,[2,164]),e(K,[2,165]),e(K,[2,166]),e(K,[2,167]),e(K,[2,168]),e(K,[2,169]),e(K,[2,170]),e(K,[2,171]),e(K,[2,172]),e(K,[2,173]),{42:S,45:162,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},{30:163,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:171,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:173,48:[1,172],65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:174,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:175,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:176,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{106:[1,177]},{30:178,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:179,63:[1,180],65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:181,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:182,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:183,65:p,77:O,78:P,79:164,113:A,114:d,115:E},e(M,[2,175]),e(c,[2,20]),e(Et,[2,25]),e(H1,[2,43],{18:184,10:I1}),e(R1,[2,68],{10:[1,185]}),{10:[1,186]},{30:187,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{75:[1,188],76:189,113:kt,116:bt},e(m1,[2,73]),e(m1,[2,75]),e(m1,[2,76]),e(m1,[2,161]),e(m1,[2,162]),{8:q,9:Q,10:gt,11:Z,12:Dt,14:Ft,21:191,27:Tt,29:[1,190],32:Ct,42:St,58:_t,73:xt,80:135,81:Bt,82:mt,83:yt,84:vt,85:Vt,86:Lt,87:It,88:192,102:Rt,106:Nt,108:wt,111:Ot,112:Pt,113:Ut},e(g,[2,94]),e(g,[2,96]),e(g,[2,97]),e(g,[2,150]),e(g,[2,151]),e(g,[2,152]),e(g,[2,153]),e(g,[2,154]),e(g,[2,155]),e(g,[2,156]),e(g,[2,157]),e(g,[2,158]),e(g,[2,159]),e(g,[2,160]),e(g,[2,83]),e(g,[2,84]),e(g,[2,85]),e(g,[2,86]),e(g,[2,87]),e(g,[2,88]),e(g,[2,89]),e(g,[2,90]),e(g,[2,91]),e(g,[2,92]),e(g,[2,93]),{6:11,7:12,8:h,9:U,10:F,11:w,20:17,22:18,23:19,24:20,25:21,26:22,27:X,32:[1,193],33:24,34:o1,36:p1,38:A1,40:28,41:38,42:S,43:39,45:40,58:k,81:l1,82:U1,83:G1,84:M1,85:K1,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R,118:Y1,119:j1,120:z1,121:X1},{10:I1,18:194},{10:[1,195],42:S,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:109,111:L,112:I,113:R},{10:[1,196]},{10:[1,197],103:[1,198]},e(Mt,[2,121]),{10:[1,199],42:S,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:109,111:L,112:I,113:R},{10:[1,200],42:S,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:109,111:L,112:I,113:R},{77:[1,201]},e(T,[2,102],{10:[1,202]}),e(T,[2,104],{10:[1,203]}),{77:[1,204]},e(K,[2,177]),{77:[1,205],95:[1,206]},e(W1,[2,50],{110:109,42:S,58:k,86:x,99:B,102:m,103:y,106:v,108:V,111:L,112:I,113:R}),{31:[1,207],65:p,79:208,113:A,114:d,115:E},e(h1,[2,79]),e(h1,[2,81]),e(h1,[2,82]),e(h1,[2,146]),e(h1,[2,147]),e(h1,[2,148]),e(h1,[2,149]),{47:[1,209],65:p,79:208,113:A,114:d,115:E},{30:210,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{49:[1,211],65:p,79:208,113:A,114:d,115:E},{51:[1,212],65:p,79:208,113:A,114:d,115:E},{53:[1,213],65:p,79:208,113:A,114:d,115:E},{55:[1,214],65:p,79:208,113:A,114:d,115:E},{58:[1,215]},{62:[1,216],65:p,79:208,113:A,114:d,115:E},{64:[1,217],65:p,79:208,113:A,114:d,115:E},{30:218,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{31:[1,219],65:p,79:208,113:A,114:d,115:E},{65:p,67:[1,220],69:[1,221],79:208,113:A,114:d,115:E},{65:p,67:[1,223],69:[1,222],79:208,113:A,114:d,115:E},e(H1,[2,44],{42:Gt}),e(R1,[2,70]),e(R1,[2,69]),{60:[1,224],65:p,79:208,113:A,114:d,115:E},e(R1,[2,72]),e(m1,[2,74]),{30:225,65:p,77:O,78:P,79:164,113:A,114:d,115:E},e(nt,l,{5:226}),e(g,[2,95]),e(b,[2,35]),{41:227,42:S,43:39,45:40,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},{10:J,58:$,81:t1,89:228,102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},{10:J,58:$,81:t1,89:239,101:[1,240],102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},{10:J,58:$,81:t1,89:241,101:[1,242],102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},{102:[1,243]},{10:J,58:$,81:t1,89:244,102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},{42:S,45:245,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},e(T,[2,101]),{77:[1,246]},{77:[1,247],95:[1,248]},e(T,[2,109]),e(T,[2,111],{10:[1,249]}),e(T,[2,112]),e(N,[2,51]),e(h1,[2,80]),e(N,[2,52]),{49:[1,250],65:p,79:208,113:A,114:d,115:E},e(N,[2,59]),e(N,[2,54]),e(N,[2,55]),e(N,[2,56]),{106:[1,251]},e(N,[2,58]),e(N,[2,60]),{64:[1,252],65:p,79:208,113:A,114:d,115:E},e(N,[2,62]),e(N,[2,63]),e(N,[2,65]),e(N,[2,64]),e(N,[2,66]),e([10,42,58,86,99,102,103,106,108,111,112,113],[2,78]),{31:[1,253],65:p,79:208,113:A,114:d,115:E},{6:11,7:12,8:h,9:U,10:F,11:w,20:17,22:18,23:19,24:20,25:21,26:22,27:X,32:[1,254],33:24,34:o1,36:p1,38:A1,40:28,41:38,42:S,43:39,45:40,58:k,81:l1,82:U1,83:G1,84:M1,85:K1,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R,118:Y1,119:j1,120:z1,121:X1},e(W1,[2,48]),e(T,[2,114],{103:y1}),e(Kt,[2,123],{105:256,10:J,58:$,81:t1,102:e1,106:s1,107:u1,108:i1,109:r1}),e(W,[2,125]),e(W,[2,127]),e(W,[2,128]),e(W,[2,129]),e(W,[2,130]),e(W,[2,131]),e(W,[2,132]),e(W,[2,133]),e(W,[2,134]),e(T,[2,115],{103:y1}),{10:[1,257]},e(T,[2,116],{103:y1}),{10:[1,258]},e(Mt,[2,122]),e(T,[2,98],{103:y1}),e(T,[2,99],{110:109,42:S,58:k,86:x,99:B,102:m,103:y,106:v,108:V,111:L,112:I,113:R}),e(T,[2,103]),e(T,[2,105],{10:[1,259]}),e(T,[2,106]),{95:[1,260]},{49:[1,261]},{60:[1,262]},{64:[1,263]},{8:q,9:Q,11:Z,21:264},e(b,[2,34]),{10:J,58:$,81:t1,102:e1,104:265,105:230,106:s1,107:u1,108:i1,109:r1},e(W,[2,126]),{14:k1,42:b1,58:g1,86:D1,98:266,102:F1,103:T1,106:C1,108:S1,111:_1,112:x1,113:B1,117:84},{14:k1,42:b1,58:g1,86:D1,98:267,102:F1,103:T1,106:C1,108:S1,111:_1,112:x1,113:B1,117:84},{95:[1,268]},e(T,[2,113]),e(N,[2,53]),{30:269,65:p,77:O,78:P,79:164,113:A,114:d,115:E},e(N,[2,61]),e(nt,l,{5:270}),e(Kt,[2,124],{105:256,10:J,58:$,81:t1,102:e1,106:s1,107:u1,108:i1,109:r1}),e(T,[2,119],{117:160,10:[1,271],14:k1,42:b1,58:g1,86:D1,102:F1,103:T1,106:C1,108:S1,111:_1,112:x1,113:B1}),e(T,[2,120],{117:160,10:[1,272],14:k1,42:b1,58:g1,86:D1,102:F1,103:T1,106:C1,108:S1,111:_1,112:x1,113:B1}),e(T,[2,107]),{31:[1,273],65:p,79:208,113:A,114:d,115:E},{6:11,7:12,8:h,9:U,10:F,11:w,20:17,22:18,23:19,24:20,25:21,26:22,27:X,32:[1,274],33:24,34:o1,36:p1,38:A1,40:28,41:38,42:S,43:39,45:40,58:k,81:l1,82:U1,83:G1,84:M1,85:K1,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R,118:Y1,119:j1,120:z1,121:X1},{10:J,58:$,81:t1,89:275,102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},{10:J,58:$,81:t1,89:276,102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},e(N,[2,57]),e(b,[2,33]),e(T,[2,117],{103:y1}),e(T,[2,118],{103:y1})],defaultActions:{},parseError:function(a,o){if(o.recoverable)this.trace(a);else{var f=new Error(a);throw f.hash=o,f}},parse:function(a){var o=this,f=[0],r=[],C=[null],t=[],N1=this.table,s="",Y=0,Yt=0,Se=2,jt=1,_e=t.slice.call(arguments,1),_=Object.create(this.lexer),d1={yy:{}};for(var ot in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ot)&&(d1.yy[ot]=this.yy[ot]);_.setInput(a,d1.yy),d1.yy.lexer=_,d1.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var lt=_.yylloc;t.push(lt);var xe=_.options&&_.options.ranges;typeof d1.yy.parseError=="function"?this.parseError=d1.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Be(){var a1;return a1=r.pop()||_.lex()||jt,typeof a1!="number"&&(a1 instanceof Array&&(r=a1,a1=r.pop()),a1=o.symbols_[a1]||a1),a1}for(var G,E1,j,ht,v1={},q1,n1,zt,Q1;;){if(E1=f[f.length-1],this.defaultActions[E1]?j=this.defaultActions[E1]:((G===null||typeof G>"u")&&(G=Be()),j=N1[E1]&&N1[E1][G]),typeof j>"u"||!j.length||!j[0]){var ft="";Q1=[];for(q1 in N1[E1])this.terminals_[q1]&&q1>Se&&Q1.push("'"+this.terminals_[q1]+"'");_.showPosition?ft="Parse error on line "+(Y+1)+`:
`+_.showPosition()+`
Expecting `+Q1.join(", ")+", got '"+(this.terminals_[G]||G)+"'":ft="Parse error on line "+(Y+1)+": Unexpected "+(G==jt?"end of input":"'"+(this.terminals_[G]||G)+"'"),this.parseError(ft,{text:_.match,token:this.terminals_[G]||G,line:_.yylineno,loc:lt,expected:Q1})}if(j[0]instanceof Array&&j.length>1)throw new Error("Parse Error: multiple actions possible at state: "+E1+", token: "+G);switch(j[0]){case 1:f.push(G),C.push(_.yytext),t.push(_.yylloc),f.push(j[1]),G=null,Yt=_.yyleng,s=_.yytext,Y=_.yylineno,lt=_.yylloc;break;case 2:if(n1=this.productions_[j[1]][1],v1.$=C[C.length-n1],v1._$={first_line:t[t.length-(n1||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(n1||1)].first_column,last_column:t[t.length-1].last_column},xe&&(v1._$.range=[t[t.length-(n1||1)].range[0],t[t.length-1].range[1]]),ht=this.performAction.apply(v1,[s,Yt,Y,d1.yy,j[1],C,t].concat(_e)),typeof ht<"u")return ht;n1&&(f=f.slice(0,-1*n1*2),C=C.slice(0,-1*n1),t=t.slice(0,-1*n1)),f.push(this.productions_[j[1]][0]),C.push(v1.$),t.push(v1._$),zt=N1[f[f.length-2]][f[f.length-1]],f.push(zt);break;case 3:return!0}}return!0}},Ce=function(){var f1={EOF:1,parseError:function(o,f){if(this.yy.parser)this.yy.parser.parseError(o,f);else throw new Error(o)},setInput:function(a,o){return this.yy=o||this.yy||{},this._input=a,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 a=this._input[0];this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a;var o=a.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),a},unput:function(a){var o=a.length,f=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-o),this.offset-=o;var r=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 C=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===r.length?this.yylloc.first_column:0)+r[r.length-f.length].length-f[0].length:this.yylloc.first_column-o},this.options.ranges&&(this.yylloc.range=[C[0],C[0]+this.yyleng-o]),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(a){this.unput(this.match.slice(a))},pastInput:function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var a=this.pastInput(),o=new Array(a.length+1).join("-");return a+this.upcomingInput()+`
`+o+"^"},test_match:function(a,o){var f,r,C;if(this.options.backtrack_lexer&&(C={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&&(C.yylloc.range=this.yylloc.range.slice(0))),r=a[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,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(a[0].length),this.matched+=a[0],f=this.performAction.call(this,this.yy,this,o,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),f)return f;if(this._backtrack){for(var t in C)this[t]=C[t];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var a,o,f,r;this._more||(this.yytext="",this.match="");for(var C=this._currentRules(),t=0;t<C.length;t++)if(f=this._input.match(this.rules[C[t]]),f&&(!o||f[0].length>o[0].length)){if(o=f,r=t,this.options.backtrack_lexer){if(a=this.test_match(f,C[t]),a!==!1)return a;if(this._backtrack){o=!1;continue}else return!1}else if(!this.options.flex)break}return o?(a=this.test_match(o,C[r]),a!==!1?a:!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 o=this.next();return o||this.lex()},begin:function(o){this.conditionStack.push(o)},popState:function(){var o=this.conditionStack.length-1;return o>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(o){return o=this.conditionStack.length-1-Math.abs(o||0),o>=0?this.conditionStack[o]:"INITIAL"},pushState:function(o){this.begin(o)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(o,f,r,C){switch(r){case 0:return this.begin("acc_title"),34;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),36;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:this.begin("callbackname");break;case 8:this.popState();break;case 9:this.popState(),this.begin("callbackargs");break;case 10:return 92;case 11:this.popState();break;case 12:return 93;case 13:return"MD_STR";case 14:this.popState();break;case 15:this.begin("md_string");break;case 16:return"STR";case 17:this.popState();break;case 18:this.pushState("string");break;case 19:return 81;case 20:return 99;case 21:return 82;case 22:return 101;case 23:return 83;case 24:return 84;case 25:return 94;case 26:this.begin("click");break;case 27:this.popState();break;case 28:return 85;case 29:return o.lex.firstGraph()&&this.begin("dir"),12;case 30:return o.lex.firstGraph()&&this.begin("dir"),12;case 31:return o.lex.firstGraph()&&this.begin("dir"),12;case 32:return 27;case 33:return 32;case 34:return 95;case 35:return 95;case 36:return 95;case 37:return 95;case 38:return this.popState(),13;case 39:return this.popState(),14;case 40:return this.popState(),14;case 41:return this.popState(),14;case 42:return this.popState(),14;case 43:return this.popState(),14;case 44:return this.popState(),14;case 45:return this.popState(),14;case 46:return this.popState(),14;case 47:return this.popState(),14;case 48:return this.popState(),14;case 49:return 118;case 50:return 119;case 51:return 120;case 52:return 121;case 53:return 102;case 54:return 108;case 55:return 44;case 56:return 58;case 57:return 42;case 58:return 8;case 59:return 103;case 60:return 112;case 61:return this.popState(),75;case 62:return this.pushState("edgeText"),73;case 63:return 116;case 64:return this.popState(),75;case 65:return this.pushState("thickEdgeText"),73;case 66:return 116;case 67:return this.popState(),75;case 68:return this.pushState("dottedEdgeText"),73;case 69:return 116;case 70:return 75;case 71:return this.popState(),51;case 72:return"TEXT";case 73:return this.pushState("ellipseText"),50;case 74:return this.popState(),53;case 75:return this.pushState("text"),52;case 76:return this.popState(),55;case 77:return this.pushState("text"),54;case 78:return 56;case 79:return this.pushState("text"),65;case 80:return this.popState(),62;case 81:return this.pushState("text"),61;case 82:return this.popState(),47;case 83:return this.pushState("text"),46;case 84:return this.popState(),67;case 85:return this.popState(),69;case 86:return 114;case 87:return this.pushState("trapText"),66;case 88:return this.pushState("trapText"),68;case 89:return 115;case 90:return 65;case 91:return 87;case 92:return"SEP";case 93:return 86;case 94:return 112;case 95:return 108;case 96:return 42;case 97:return 106;case 98:return 111;case 99:return 113;case 100:return this.popState(),60;case 101:return this.pushState("text"),60;case 102:return this.popState(),49;case 103:return this.pushState("text"),48;case 104:return this.popState(),31;case 105:return this.pushState("text"),29;case 106:return this.popState(),64;case 107:return this.pushState("text"),63;case 108:return"TEXT";case 109:return"QUOTE";case 110:return 9;case 111:return 10;case 112:return 11}},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:{callbackargs:{rules:[11,12,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},callbackname:{rules:[8,9,10,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},href:{rules:[15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},click:{rules:[15,18,27,28,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},dottedEdgeText:{rules:[15,18,67,69,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},thickEdgeText:{rules:[15,18,64,66,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},edgeText:{rules:[15,18,61,63,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},trapText:{rules:[15,18,70,73,75,77,81,83,84,85,86,87,88,101,103,105,107],inclusive:!1},ellipseText:{rules:[15,18,70,71,72,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},text:{rules:[15,18,70,73,74,75,76,77,80,81,82,83,87,88,100,101,102,103,104,105,106,107,108],inclusive:!1},vertex:{rules:[15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},dir:{rules:[15,18,38,39,40,41,42,43,44,45,46,47,48,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},acc_descr_multiline:{rules:[5,6,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},acc_descr:{rules:[3,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},acc_title:{rules:[1,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},md_string:{rules:[13,14,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},string:{rules:[15,16,17,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},INITIAL:{rules:[0,2,4,7,15,18,19,20,21,22,23,24,25,26,29,30,31,32,33,34,35,36,37,49,50,51,52,53,54,55,56,57,58,59,60,61,62,64,65,67,68,70,73,75,77,78,79,81,83,87,88,89,90,91,92,93,94,95,96,97,98,99,101,103,105,107,109,110,111,112],inclusive:!0}}};return f1}();at.lexer=Ce;function ct(){this.yy={}}return ct.prototype=at,at.Parser=ct,new ct}();pt.parser=pt;const Xe=pt,Oe="flowchart-";let Xt=0,L1=et(),D={},H=[],V1={},c1=[],$1={},tt={},Z1=0,At=!0,z,st,ut=[];const it=e=>we.sanitizeText(e,L1),P1=function(e){const u=Object.keys(D);for(const i of u)if(D[i].id===e)return D[i].domId;return e},Ht=function(e,u,i,n,c,l,h={}){let U,F=e;F!==void 0&&F.trim().length!==0&&(D[F]===void 0&&(D[F]={id:F,labelType:"text",domId:Oe+F+"-"+Xt,styles:[],classes:[]}),Xt++,u!==void 0?(L1=et(),U=it(u.text.trim()),D[F].labelType=u.type,U[0]==='"'&&U[U.length-1]==='"'&&(U=U.substring(1,U.length-1)),D[F].text=U):D[F].text===void 0&&(D[F].text=e),i!==void 0&&(D[F].type=i),n!=null&&n.forEach(function(w){D[F].styles.push(w)}),c!=null&&c.forEach(function(w){D[F].classes.push(w)}),l!==void 0&&(D[F].dir=l),D[F].props===void 0?D[F].props=h:h!==void 0&&Object.assign(D[F].props,h))},Wt=function(e,u,i){const l={start:e,end:u,type:void 0,text:"",labelType:"text"};J1.info("abc78 Got edge...",l);const h=i.text;if(h!==void 0&&(l.text=it(h.text.trim()),l.text[0]==='"'&&l.text[l.text.length-1]==='"'&&(l.text=l.text.substring(1,l.text.length-1)),l.labelType=h.type),i!==void 0&&(l.type=i.type,l.stroke=i.stroke,l.length=i.length),(l==null?void 0:l.length)>10&&(l.length=10),H.length<(L1.maxEdges??500))J1.info("abc78 pushing edge..."),H.push(l);else throw new Error(`Edge limit exceeded. ${H.length} edges found, but the limit is ${L1.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.`)},qt=function(e,u,i){J1.info("addLink (abc78)",e,u,i);let n,c;for(n=0;n<e.length;n++)for(c=0;c<u.length;c++)Wt(e[n],u[c],i)},Qt=function(e,u){e.forEach(function(i){i==="default"?H.defaultInterpolate=u:H[i].interpolate=u})},Zt=function(e,u){e.forEach(function(i){if(i>=H.length)throw new Error(`The index ${i} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${H.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);i==="default"?H.defaultStyle=u:(dt.isSubstringInArray("fill",u)===-1&&u.push("fill:none"),H[i].style=u)})},Jt=function(e,u){e.split(",").forEach(function(i){V1[i]===void 0&&(V1[i]={id:i,styles:[],textStyles:[]}),u!=null&&u.forEach(function(n){if(n.match("color")){const c=n.replace("fill","bgFill").replace("color","fill");V1[i].textStyles.push(c)}V1[i].styles.push(n)})})},$t=function(e){z=e,z.match(/.*</)&&(z="RL"),z.match(/.*\^/)&&(z="BT"),z.match(/.*>/)&&(z="LR"),z.match(/.*v/)&&(z="TB"),z==="TD"&&(z="TB")},rt=function(e,u){e.split(",").forEach(function(i){let n=i;D[n]!==void 0&&D[n].classes.push(u),$1[n]!==void 0&&$1[n].classes.push(u)})},Pe=function(e,u){e.split(",").forEach(function(i){u!==void 0&&(tt[st==="gen-1"?P1(i):i]=it(u))})},Ue=function(e,u,i){let n=P1(e);if(et().securityLevel!=="loose"||u===void 0)return;let c=[];if(typeof i=="string"){c=i.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let l=0;l<c.length;l++){let h=c[l].trim();h.charAt(0)==='"'&&h.charAt(h.length-1)==='"'&&(h=h.substr(1,h.length-2)),c[l]=h}}c.length===0&&c.push(e),D[e]!==void 0&&(D[e].haveCallback=!0,ut.push(function(){const l=document.querySelector(`[id="${n}"]`);l!==null&&l.addEventListener("click",function(){dt.runFunc(u,...c)},!1)}))},te=function(e,u,i){e.split(",").forEach(function(n){D[n]!==void 0&&(D[n].link=dt.formatUrl(u,L1),D[n].linkTarget=i)}),rt(e,"clickable")},ee=function(e){if(tt.hasOwnProperty(e))return tt[e]},se=function(e,u,i){e.split(",").forEach(function(n){Ue(n,u,i)}),rt(e,"clickable")},ue=function(e){ut.forEach(function(u){u(e)})},ie=function(){return z.trim()},re=function(){return D},ne=function(){return H},ae=function(){return V1},ce=function(e){let u=w1(".mermaidTooltip");(u._groups||u)[0][0]===null&&(u=w1("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),w1(e).select("svg").selectAll("g.node").on("mouseover",function(){const c=w1(this);if(c.attr("title")===null)return;const h=this.getBoundingClientRect();u.transition().duration(200).style("opacity",".9"),u.text(c.attr("title")).style("left",window.scrollX+h.left+(h.right-h.left)/2+"px").style("top",window.scrollY+h.bottom+"px"),u.html(u.html().replace(/<br\/>/g,"<br/>")),c.classed("hover",!0)}).on("mouseout",function(){u.transition().duration(500).style("opacity",0),w1(this).classed("hover",!1)})};ut.push(ce);const oe=function(e="gen-1"){D={},V1={},H=[],ut=[ce],c1=[],$1={},Z1=0,tt={},At=!0,st=e,L1=et(),Ne()},le=e=>{st=e||"gen-2"},he=function(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"},fe=function(e,u,i){let n=e.text.trim(),c=i.text;e===i&&i.text.match(/\s/)&&(n=void 0);function l(X){const o1={boolean:{},number:{},string:{}},p1=[];let A1;return{nodeList:X.filter(function(k){const l1=typeof k;return k.stmt&&k.stmt==="dir"?(A1=k.value,!1):k.trim()===""?!1:l1 in o1?o1[l1].hasOwnProperty(k)?!1:o1[l1][k]=!0:p1.includes(k)?!1:p1.push(k)}),dir:A1}}let h=[];const{nodeList:U,dir:F}=l(h.concat.apply(h,u));if(h=U,st==="gen-1")for(let X=0;X<h.length;X++)h[X]=P1(h[X]);n=n||"subGraph"+Z1,c=c||"",c=it(c),Z1=Z1+1;const w={id:n,nodes:h,title:c.trim(),classes:[],dir:F,labelType:i.type};return J1.info("Adding",w.id,w.nodes,w.dir),w.nodes=Fe(w,c1).nodes,c1.push(w),$1[n]=w,n},Ge=function(e){for(const[u,i]of c1.entries())if(i.id===e)return u;return-1};let O1=-1;const pe=[],Ae=function(e,u){const i=c1[u].nodes;if(O1=O1+1,O1>2e3)return;if(pe[O1]=u,c1[u].id===e)return{result:!0,count:0};let n=0,c=1;for(;n<i.length;){const l=Ge(i[n]);if(l>=0){const h=Ae(e,l);if(h.result)return{result:!0,count:c+h.count};c=c+h.count}n=n+1}return{result:!1,count:c}},de=function(e){return pe[e]},Ee=function(){O1=-1,c1.length>0&&Ae("none",c1.length-1)},ke=function(){return c1},be=()=>At?(At=!1,!0):!1,Me=e=>{let u=e.trim(),i="arrow_open";switch(u[0]){case"<":i="arrow_point",u=u.slice(1);break;case"x":i="arrow_cross",u=u.slice(1);break;case"o":i="arrow_circle",u=u.slice(1);break}let n="normal";return u.includes("=")&&(n="thick"),u.includes(".")&&(n="dotted"),{type:i,stroke:n}},Ke=(e,u)=>{const i=u.length;let n=0;for(let c=0;c<i;++c)u[c]===e&&++n;return n},Ye=e=>{const u=e.trim();let i=u.slice(0,-1),n="arrow_open";switch(u.slice(-1)){case"x":n="arrow_cross",u[0]==="x"&&(n="double_"+n,i=i.slice(1));break;case">":n="arrow_point",u[0]==="<"&&(n="double_"+n,i=i.slice(1));break;case"o":n="arrow_circle",u[0]==="o"&&(n="double_"+n,i=i.slice(1));break}let c="normal",l=i.length-1;i[0]==="="&&(c="thick"),i[0]==="~"&&(c="invisible");let h=Ke(".",i);return h&&(c="dotted",l=h),{type:n,stroke:c,length:l}},ge=(e,u)=>{const i=Ye(e);let n;if(u){if(n=Me(u),n.stroke!==i.stroke)return{type:"INVALID",stroke:"INVALID"};if(n.type==="arrow_open")n.type=i.type;else{if(n.type!==i.type)return{type:"INVALID",stroke:"INVALID"};n.type="double_"+n.type}return n.type==="double_arrow"&&(n.type="double_arrow_point"),n.length=i.length,n}return i},De=(e,u)=>{let i=!1;return e.forEach(n=>{n.nodes.indexOf(u)>=0&&(i=!0)}),i},Fe=(e,u)=>{const i=[];return e.nodes.forEach((n,c)=>{De(u,n)||i.push(e.nodes[c])}),{nodes:i}},Te={firstGraph:be},je={defaultConfig:()=>me.flowchart,setAccTitle:ye,getAccTitle:ve,getAccDescription:Ve,setAccDescription:Le,addVertex:Ht,lookUpDomId:P1,addLink:qt,updateLinkInterpolate:Qt,updateLink:Zt,addClass:Jt,setDirection:$t,setClass:rt,setTooltip:Pe,getTooltip:ee,setClickEvent:se,setLink:te,bindFunctions:ue,getDirection:ie,getVertices:re,getEdges:ne,getClasses:ae,clear:oe,setGen:le,defaultStyle:he,addSubGraph:fe,getDepthFirstPos:de,indexNodes:Ee,getSubGraphs:ke,destructLink:ge,lex:Te,exists:De,makeUniq:Fe,setDiagramTitle:Ie,getDiagramTitle:Re},He=Object.freeze(Object.defineProperty({__proto__:null,addClass:Jt,addLink:qt,addSingleLink:Wt,addSubGraph:fe,addVertex:Ht,bindFunctions:ue,clear:oe,default:je,defaultStyle:he,destructLink:ge,firstGraph:be,getClasses:ae,getDepthFirstPos:de,getDirection:ie,getEdges:ne,getSubGraphs:ke,getTooltip:ee,getVertices:re,indexNodes:Ee,lex:Te,lookUpDomId:P1,setClass:rt,setClickEvent:se,setDirection:$t,setGen:le,setLink:te,updateLink:Zt,updateLinkInterpolate:Qt},Symbol.toStringTag,{value:"Module"}));export{He as d,je as f,Xe as p};
import{c as Z,s as Et,g as mt,b as gt,a as kt,C as Rt,D as Ot,l as V,E as bt,h as rt,v as Nt,i as xt,F as Tt,G as At}from"./slidev/5-BKiUV7YW.js";import{G as Mt}from"./graph-af3d5df6-DtpoS02a.js";import{l as St}from"./layout-6685625a-CnDdhUY9.js";import{l as wt}from"./line-65d70945-BvyDbe4_.js";import"./modules/vue-Dn3czbSS.js";import"./index-D2S1x1Oe.js";import"./modules/shiki-CuMFyo6Z.js";import"./modules/file-saver-EUMWMpoS.js";import"./slidev/default-CY-sqYNf.js";import"./slidev/context-CYh2-pv1.js";import"./array-b7dcf730-BKyUJesY.js";import"./path-39bad7e2-CbwjOpE9.js";var at=function(){var t=function(S,a,n,c){for(n=n||{},c=S.length;c--;n[S[c]]=a);return n},e=[6,8,10,20,22,24,26,27,28],r=[1,10],u=[1,11],l=[1,12],f=[1,13],y=[1,14],o=[1,15],h=[1,21],_=[1,22],m=[1,23],g=[1,24],R=[1,25],p=[6,8,10,13,15,18,19,20,22,24,26,27,28,41,42,43,44,45],x=[1,34],I=[27,28,46,47],F=[41,42,43,44,45],W=[17,34],C=[1,54],T=[1,53],M=[17,34,36,38],O={trace:function(){},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:function(a,n,c,d,E,i,K){var s=i.length-1;switch(E){case 1:break;case 2:this.$=[];break;case 3:i[s-1].push(i[s]),this.$=i[s-1];break;case 4:case 5:this.$=i[s];break;case 6:case 7:this.$=[];break;case 8:d.addEntity(i[s-4]),d.addEntity(i[s-2]),d.addRelationship(i[s-4],i[s],i[s-2],i[s-3]);break;case 9:d.addEntity(i[s-3]),d.addAttributes(i[s-3],i[s-1]);break;case 10:d.addEntity(i[s-2]);break;case 11:d.addEntity(i[s]);break;case 12:d.addEntity(i[s-6],i[s-4]),d.addAttributes(i[s-6],i[s-1]);break;case 13:d.addEntity(i[s-5],i[s-3]);break;case 14:d.addEntity(i[s-3],i[s-1]);break;case 15:case 16:this.$=i[s].trim(),d.setAccTitle(this.$);break;case 17:case 18:this.$=i[s].trim(),d.setAccDescription(this.$);break;case 19:case 43:this.$=i[s];break;case 20:case 41:case 42:this.$=i[s].replace(/"/g,"");break;case 21:case 29:this.$=[i[s]];break;case 22:i[s].push(i[s-1]),this.$=i[s];break;case 23:this.$={attributeType:i[s-1],attributeName:i[s]};break;case 24:this.$={attributeType:i[s-2],attributeName:i[s-1],attributeKeyTypeList:i[s]};break;case 25:this.$={attributeType:i[s-2],attributeName:i[s-1],attributeComment:i[s]};break;case 26:this.$={attributeType:i[s-3],attributeName:i[s-2],attributeKeyTypeList:i[s-1],attributeComment:i[s]};break;case 27:case 28:case 31:this.$=i[s];break;case 30:i[s-2].push(i[s]),this.$=i[s-2];break;case 32:this.$=i[s].replace(/"/g,"");break;case 33:this.$={cardA:i[s],relType:i[s-1],cardB:i[s-2]};break;case 34:this.$=d.Cardinality.ZERO_OR_ONE;break;case 35:this.$=d.Cardinality.ZERO_OR_MORE;break;case 36:this.$=d.Cardinality.ONE_OR_MORE;break;case 37:this.$=d.Cardinality.ONLY_ONE;break;case 38:this.$=d.Cardinality.MD_PARENT;break;case 39:this.$=d.Identification.NON_IDENTIFYING;break;case 40:this.$=d.Identification.IDENTIFYING;break}},table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,20:r,22:u,24:l,26:f,27:y,28:o},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:16,11:9,20:r,22:u,24:l,26:f,27:y,28:o},t(e,[2,5]),t(e,[2,6]),t(e,[2,11],{12:17,39:20,15:[1,18],18:[1,19],41:h,42:_,43:m,44:g,45:R}),{21:[1,26]},{23:[1,27]},{25:[1,28]},t(e,[2,18]),t(p,[2,19]),t(p,[2,20]),t(e,[2,4]),{11:29,27:y,28:o},{16:30,17:[1,31],29:32,30:33,34:x},{11:35,27:y,28:o},{40:36,46:[1,37],47:[1,38]},t(I,[2,34]),t(I,[2,35]),t(I,[2,36]),t(I,[2,37]),t(I,[2,38]),t(e,[2,15]),t(e,[2,16]),t(e,[2,17]),{13:[1,39]},{17:[1,40]},t(e,[2,10]),{16:41,17:[2,21],29:32,30:33,34:x},{31:42,34:[1,43]},{34:[2,27]},{19:[1,44]},{39:45,41:h,42:_,43:m,44:g,45:R},t(F,[2,39]),t(F,[2,40]),{14:46,27:[1,49],28:[1,48],48:[1,47]},t(e,[2,9]),{17:[2,22]},t(W,[2,23],{32:50,33:51,35:52,37:C,38:T}),t([17,34,37,38],[2,28]),t(e,[2,14],{15:[1,55]}),t([27,28],[2,33]),t(e,[2,8]),t(e,[2,41]),t(e,[2,42]),t(e,[2,43]),t(W,[2,24],{33:56,36:[1,57],38:T}),t(W,[2,25]),t(M,[2,29]),t(W,[2,32]),t(M,[2,31]),{16:58,17:[1,59],29:32,30:33,34:x},t(W,[2,26]),{35:60,37:C},{17:[1,61]},t(e,[2,13]),t(M,[2,30]),t(e,[2,12])],defaultActions:{34:[2,27],41:[2,22]},parseError:function(a,n){if(n.recoverable)this.trace(a);else{var c=new Error(a);throw c.hash=n,c}},parse:function(a){var n=this,c=[0],d=[],E=[null],i=[],K=this.table,s="",Q=0,st=0,yt=2,ot=1,pt=i.slice.call(arguments,1),N=Object.create(this.lexer),G={yy:{}};for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J)&&(G.yy[J]=this.yy[J]);N.setInput(a,G.yy),G.yy.lexer=N,G.yy.parser=this,typeof N.yylloc>"u"&&(N.yylloc={});var $=N.yylloc;i.push($);var ft=N.options&&N.options.ranges;typeof G.yy.parseError=="function"?this.parseError=G.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function _t(){var Y;return Y=d.pop()||N.lex()||ot,typeof Y!="number"&&(Y instanceof Array&&(d=Y,Y=d.pop()),Y=n.symbols_[Y]||Y),Y}for(var w,H,D,tt,z={},j,P,lt,q;;){if(H=c[c.length-1],this.defaultActions[H]?D=this.defaultActions[H]:((w===null||typeof w>"u")&&(w=_t()),D=K[H]&&K[H][w]),typeof D>"u"||!D.length||!D[0]){var et="";q=[];for(j in K[H])this.terminals_[j]&&j>yt&&q.push("'"+this.terminals_[j]+"'");N.showPosition?et="Parse error on line "+(Q+1)+`:
`+N.showPosition()+`
Expecting `+q.join(", ")+", got '"+(this.terminals_[w]||w)+"'":et="Parse error on line "+(Q+1)+": Unexpected "+(w==ot?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(et,{text:N.match,token:this.terminals_[w]||w,line:N.yylineno,loc:$,expected:q})}if(D[0]instanceof Array&&D.length>1)throw new Error("Parse Error: multiple actions possible at state: "+H+", token: "+w);switch(D[0]){case 1:c.push(w),E.push(N.yytext),i.push(N.yylloc),c.push(D[1]),w=null,st=N.yyleng,s=N.yytext,Q=N.yylineno,$=N.yylloc;break;case 2:if(P=this.productions_[D[1]][1],z.$=E[E.length-P],z._$={first_line:i[i.length-(P||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(P||1)].first_column,last_column:i[i.length-1].last_column},ft&&(z._$.range=[i[i.length-(P||1)].range[0],i[i.length-1].range[1]]),tt=this.performAction.apply(z,[s,st,Q,G.yy,D[1],E,i].concat(pt)),typeof tt<"u")return tt;P&&(c=c.slice(0,-1*P*2),E=E.slice(0,-1*P),i=i.slice(0,-1*P)),c.push(this.productions_[D[1]][0]),E.push(z.$),i.push(z._$),lt=K[c[c.length-2]][c[c.length-1]],c.push(lt);break;case 3:return!0}}return!0}},b=function(){var S={EOF:1,parseError:function(n,c){if(this.yy.parser)this.yy.parser.parseError(n,c);else throw new Error(n)},setInput:function(a,n){return this.yy=n||this.yy||{},this._input=a,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 a=this._input[0];this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a;var n=a.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},unput:function(a){var n=a.length,c=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;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 E=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-n},this.options.ranges&&(this.yylloc.range=[E[0],E[0]+this.yyleng-n]),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(a){this.unput(this.match.slice(a))},pastInput:function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var a=this.pastInput(),n=new Array(a.length+1).join("-");return a+this.upcomingInput()+`
`+n+"^"},test_match:function(a,n){var c,d,E;if(this.options.backtrack_lexer&&(E={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&&(E.yylloc.range=this.yylloc.range.slice(0))),d=a[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+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,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(a[0].length),this.matched+=a[0],c=this.performAction.call(this,this.yy,this,n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),c)return c;if(this._backtrack){for(var i in E)this[i]=E[i];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var a,n,c,d;this._more||(this.yytext="",this.match="");for(var E=this._currentRules(),i=0;i<E.length;i++)if(c=this._input.match(this.rules[E[i]]),c&&(!n||c[0].length>n[0].length)){if(n=c,d=i,this.options.backtrack_lexer){if(a=this.test_match(c,E[i]),a!==!1)return a;if(this._backtrack){n=!1;continue}else return!1}else if(!this.options.flex)break}return n?(a=this.test_match(n,E[d]),a!==!1?a:!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 n=this.next();return n||this.lex()},begin:function(n){this.conditionStack.push(n)},popState:function(){var n=this.conditionStack.length-1;return n>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(n){return n=this.conditionStack.length-1-Math.abs(n||0),n>=0?this.conditionStack[n]:"INITIAL"},pushState:function(n){this.begin(n)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(n,c,d,E){switch(d){case 0:return this.begin("acc_title"),22;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),24;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 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;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;case 22:return c.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 c.yytext[0];case 55:return 6}},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 S}();O.lexer=b;function v(){this.yy={}}return v.prototype=O,O.Parser=v,new v}();at.parser=at;const It=at;let U={},nt=[];const Dt={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"},vt={NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},dt=function(t,e=void 0){return U[t]===void 0?(U[t]={attributes:[],alias:e},V.info("Added new entity :",t)):U[t]&&!U[t].alias&&e&&(U[t].alias=e,V.info(`Add alias '${e}' to entity '${t}'`)),U[t]},Lt=()=>U,Bt=function(t,e){let r=dt(t),u;for(u=e.length-1;u>=0;u--)r.attributes.push(e[u]),V.debug("Added attribute ",e[u].attributeName)},Ct=function(t,e,r,u){let l={entityA:t,roleA:e,entityB:r,relSpec:u};nt.push(l),V.debug("Added new relationship :",l)},Pt=()=>nt,Yt=function(){U={},nt=[],bt()},Zt={Cardinality:Dt,Identification:vt,getConfig:()=>Z().er,addEntity:dt,addAttributes:Bt,getEntities:Lt,addRelationship:Ct,getRelationships:Pt,clear:Yt,setAccTitle:Et,getAccTitle:mt,setAccDescription:gt,getAccDescription:kt,setDiagramTitle:Rt,getDiagramTitle:Ot},L={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"},Ft=function(t,e){let r;t.append("defs").append("marker").attr("id",L.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"),t.append("defs").append("marker").attr("id",L.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"),t.append("defs").append("marker").attr("id",L.ONLY_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M9,0 L9,18 M15,0 L15,18"),t.append("defs").append("marker").attr("id",L.ONLY_ONE_END).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M3,0 L3,18 M9,0 L9,18"),r=t.append("defs").append("marker").attr("id",L.ZERO_OR_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto"),r.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),r.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M9,0 L9,18"),r=t.append("defs").append("marker").attr("id",L.ZERO_OR_ONE_END).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto"),r.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),r.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M21,0 L21,18"),t.append("defs").append("marker").attr("id",L.ONE_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),t.append("defs").append("marker").attr("id",L.ONE_OR_MORE_END).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18"),r=t.append("defs").append("marker").attr("id",L.ZERO_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto"),r.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),r.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18"),r=t.append("defs").append("marker").attr("id",L.ZERO_OR_MORE_END).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto"),r.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),r.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},B={ERMarkers:L,insertMarkers:Ft},Wt=/^(?:[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 Ut(t){return typeof t=="string"&&Wt.test(t)}const A=[];for(let t=0;t<256;++t)A.push((t+256).toString(16).slice(1));function Gt(t,e=0){return A[t[e+0]]+A[t[e+1]]+A[t[e+2]]+A[t[e+3]]+"-"+A[t[e+4]]+A[t[e+5]]+"-"+A[t[e+6]]+A[t[e+7]]+"-"+A[t[e+8]]+A[t[e+9]]+"-"+A[t[e+10]]+A[t[e+11]]+A[t[e+12]]+A[t[e+13]]+A[t[e+14]]+A[t[e+15]]}function Ht(t){if(!Ut(t))throw TypeError("Invalid UUID");let e;const r=new Uint8Array(16);return r[0]=(e=parseInt(t.slice(0,8),16))>>>24,r[1]=e>>>16&255,r[2]=e>>>8&255,r[3]=e&255,r[4]=(e=parseInt(t.slice(9,13),16))>>>8,r[5]=e&255,r[6]=(e=parseInt(t.slice(14,18),16))>>>8,r[7]=e&255,r[8]=(e=parseInt(t.slice(19,23),16))>>>8,r[9]=e&255,r[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,r[11]=e/4294967296&255,r[12]=e>>>24&255,r[13]=e>>>16&255,r[14]=e>>>8&255,r[15]=e&255,r}function zt(t){t=unescape(encodeURIComponent(t));const e=[];for(let r=0;r<t.length;++r)e.push(t.charCodeAt(r));return e}const Kt="6ba7b810-9dad-11d1-80b4-00c04fd430c8",Vt="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function Xt(t,e,r){function u(l,f,y,o){var h;if(typeof l=="string"&&(l=zt(l)),typeof f=="string"&&(f=Ht(f)),((h=f)===null||h===void 0?void 0:h.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let _=new Uint8Array(16+l.length);if(_.set(f),_.set(l,f.length),_=r(_),_[6]=_[6]&15|e,_[8]=_[8]&63|128,y){o=o||0;for(let m=0;m<16;++m)y[o+m]=_[m];return y}return Gt(_)}try{u.name=t}catch{}return u.DNS=Kt,u.URL=Vt,u}function Qt(t,e,r,u){switch(t){case 0:return e&r^~e&u;case 1:return e^r^u;case 2:return e&r^e&u^r&u;case 3:return e^r^u}}function it(t,e){return t<<e|t>>>32-e}function jt(t){const e=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof t=="string"){const y=unescape(encodeURIComponent(t));t=[];for(let o=0;o<y.length;++o)t.push(y.charCodeAt(o))}else Array.isArray(t)||(t=Array.prototype.slice.call(t));t.push(128);const u=t.length/4+2,l=Math.ceil(u/16),f=new Array(l);for(let y=0;y<l;++y){const o=new Uint32Array(16);for(let h=0;h<16;++h)o[h]=t[y*64+h*4]<<24|t[y*64+h*4+1]<<16|t[y*64+h*4+2]<<8|t[y*64+h*4+3];f[y]=o}f[l-1][14]=(t.length-1)*8/Math.pow(2,32),f[l-1][14]=Math.floor(f[l-1][14]),f[l-1][15]=(t.length-1)*8&4294967295;for(let y=0;y<l;++y){const o=new Uint32Array(80);for(let p=0;p<16;++p)o[p]=f[y][p];for(let p=16;p<80;++p)o[p]=it(o[p-3]^o[p-8]^o[p-14]^o[p-16],1);let h=r[0],_=r[1],m=r[2],g=r[3],R=r[4];for(let p=0;p<80;++p){const x=Math.floor(p/20),I=it(h,5)+Qt(x,_,m,g)+R+e[x]+o[p]>>>0;R=g,g=m,m=it(_,30)>>>0,_=h,h=I}r[0]=r[0]+h>>>0,r[1]=r[1]+_>>>0,r[2]=r[2]+m>>>0,r[3]=r[3]+g>>>0,r[4]=r[4]+R>>>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]}const qt=Xt("v5",80,jt),Jt=qt,$t=/[^\dA-Za-z](\W)*/g;let k={},X=new Map;const te=function(t){const e=Object.keys(t);for(const r of e)k[r]=t[r]},ee=(t,e,r)=>{const u=k.entityPadding/3,l=k.entityPadding/3,f=k.fontSize*.85,y=e.node().getBBox(),o=[];let h=!1,_=!1,m=0,g=0,R=0,p=0,x=y.height+u*2,I=1;r.forEach(T=>{T.attributeKeyTypeList!==void 0&&T.attributeKeyTypeList.length>0&&(h=!0),T.attributeComment!==void 0&&(_=!0)}),r.forEach(T=>{const M=`${e.node().id}-attr-${I}`;let O=0;const b=At(T.attributeType),v=t.append("text").classed("er entityLabel",!0).attr("id",`${M}-type`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",Z().fontFamily).style("font-size",f+"px").text(b),S=t.append("text").classed("er entityLabel",!0).attr("id",`${M}-name`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",Z().fontFamily).style("font-size",f+"px").text(T.attributeName),a={};a.tn=v,a.nn=S;const n=v.node().getBBox(),c=S.node().getBBox();if(m=Math.max(m,n.width),g=Math.max(g,c.width),O=Math.max(n.height,c.height),h){const d=T.attributeKeyTypeList!==void 0?T.attributeKeyTypeList.join(","):"",E=t.append("text").classed("er entityLabel",!0).attr("id",`${M}-key`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",Z().fontFamily).style("font-size",f+"px").text(d);a.kn=E;const i=E.node().getBBox();R=Math.max(R,i.width),O=Math.max(O,i.height)}if(_){const d=t.append("text").classed("er entityLabel",!0).attr("id",`${M}-comment`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",Z().fontFamily).style("font-size",f+"px").text(T.attributeComment||"");a.cn=d;const E=d.node().getBBox();p=Math.max(p,E.width),O=Math.max(O,E.height)}a.height=O,o.push(a),x+=O+u*2,I+=1});let F=4;h&&(F+=2),_&&(F+=2);const W=m+g+R+p,C={width:Math.max(k.minEntityWidth,Math.max(y.width+k.entityPadding*2,W+l*F)),height:r.length>0?x:Math.max(k.minEntityHeight,y.height+k.entityPadding*2)};if(r.length>0){const T=Math.max(0,(C.width-W-l*F)/(F/2));e.attr("transform","translate("+C.width/2+","+(u+y.height/2)+")");let M=y.height+u*2,O="attributeBoxOdd";o.forEach(b=>{const v=M+u+b.height/2;b.tn.attr("transform","translate("+l+","+v+")");const S=t.insert("rect","#"+b.tn.node().id).classed(`er ${O}`,!0).attr("x",0).attr("y",M).attr("width",m+l*2+T).attr("height",b.height+u*2),a=parseFloat(S.attr("x"))+parseFloat(S.attr("width"));b.nn.attr("transform","translate("+(a+l)+","+v+")");const n=t.insert("rect","#"+b.nn.node().id).classed(`er ${O}`,!0).attr("x",a).attr("y",M).attr("width",g+l*2+T).attr("height",b.height+u*2);let c=parseFloat(n.attr("x"))+parseFloat(n.attr("width"));if(h){b.kn.attr("transform","translate("+(c+l)+","+v+")");const d=t.insert("rect","#"+b.kn.node().id).classed(`er ${O}`,!0).attr("x",c).attr("y",M).attr("width",R+l*2+T).attr("height",b.height+u*2);c=parseFloat(d.attr("x"))+parseFloat(d.attr("width"))}_&&(b.cn.attr("transform","translate("+(c+l)+","+v+")"),t.insert("rect","#"+b.cn.node().id).classed(`er ${O}`,"true").attr("x",c).attr("y",M).attr("width",p+l*2+T).attr("height",b.height+u*2)),M+=b.height+u*2,O=O==="attributeBoxOdd"?"attributeBoxEven":"attributeBoxOdd"})}else C.height=Math.max(k.minEntityHeight,x),e.attr("transform","translate("+C.width/2+","+C.height/2+")");return C},re=function(t,e,r){const u=Object.keys(e);let l;return u.forEach(function(f){const y=le(f,"entity");X.set(f,y);const o=t.append("g").attr("id",y);l=l===void 0?y:l;const h="text-"+y,_=o.append("text").classed("er entityLabel",!0).attr("id",h).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","middle").style("font-family",Z().fontFamily).style("font-size",k.fontSize+"px").text(e[f].alias??f),{width:m,height:g}=ee(o,_,e[f].attributes),p=o.insert("rect","#"+h).classed("er entityBox",!0).attr("x",0).attr("y",0).attr("width",m).attr("height",g).node().getBBox();r.setNode(y,{width:p.width,height:p.height,shape:"rect",id:y})}),l},ie=function(t,e){e.nodes().forEach(function(r){r!==void 0&&e.node(r)!==void 0&&t.select("#"+r).attr("transform","translate("+(e.node(r).x-e.node(r).width/2)+","+(e.node(r).y-e.node(r).height/2)+" )")})},ut=function(t){return(t.entityA+t.roleA+t.entityB).replace(/\s/g,"")},ae=function(t,e){return t.forEach(function(r){e.setEdge(X.get(r.entityA),X.get(r.entityB),{relationship:r},ut(r))}),t};let ct=0;const ne=function(t,e,r,u,l){ct++;const f=r.edge(X.get(e.entityA),X.get(e.entityB),ut(e)),y=wt().x(function(x){return x.x}).y(function(x){return x.y}).curve(Tt),o=t.insert("path","#"+u).classed("er relationshipLine",!0).attr("d",y(f.points)).style("stroke",k.stroke).style("fill","none");e.relSpec.relType===l.db.Identification.NON_IDENTIFYING&&o.attr("stroke-dasharray","8,8");let h="";switch(k.arrowMarkerAbsolute&&(h=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,h=h.replace(/\(/g,"\\("),h=h.replace(/\)/g,"\\)")),e.relSpec.cardA){case l.db.Cardinality.ZERO_OR_ONE:o.attr("marker-end","url("+h+"#"+B.ERMarkers.ZERO_OR_ONE_END+")");break;case l.db.Cardinality.ZERO_OR_MORE:o.attr("marker-end","url("+h+"#"+B.ERMarkers.ZERO_OR_MORE_END+")");break;case l.db.Cardinality.ONE_OR_MORE:o.attr("marker-end","url("+h+"#"+B.ERMarkers.ONE_OR_MORE_END+")");break;case l.db.Cardinality.ONLY_ONE:o.attr("marker-end","url("+h+"#"+B.ERMarkers.ONLY_ONE_END+")");break;case l.db.Cardinality.MD_PARENT:o.attr("marker-end","url("+h+"#"+B.ERMarkers.MD_PARENT_END+")");break}switch(e.relSpec.cardB){case l.db.Cardinality.ZERO_OR_ONE:o.attr("marker-start","url("+h+"#"+B.ERMarkers.ZERO_OR_ONE_START+")");break;case l.db.Cardinality.ZERO_OR_MORE:o.attr("marker-start","url("+h+"#"+B.ERMarkers.ZERO_OR_MORE_START+")");break;case l.db.Cardinality.ONE_OR_MORE:o.attr("marker-start","url("+h+"#"+B.ERMarkers.ONE_OR_MORE_START+")");break;case l.db.Cardinality.ONLY_ONE:o.attr("marker-start","url("+h+"#"+B.ERMarkers.ONLY_ONE_START+")");break;case l.db.Cardinality.MD_PARENT:o.attr("marker-start","url("+h+"#"+B.ERMarkers.MD_PARENT_START+")");break}const _=o.node().getTotalLength(),m=o.node().getPointAtLength(_*.5),g="rel"+ct,p=t.append("text").classed("er relationshipLabel",!0).attr("id",g).attr("x",m.x).attr("y",m.y).style("text-anchor","middle").style("dominant-baseline","middle").style("font-family",Z().fontFamily).style("font-size",k.fontSize+"px").text(e.roleA).node().getBBox();t.insert("rect","#"+g).classed("er relationshipLabelBox",!0).attr("x",m.x-p.width/2).attr("y",m.y-p.height/2).attr("width",p.width).attr("height",p.height)},se=function(t,e,r,u){k=Z().er,V.info("Drawing ER diagram");const l=Z().securityLevel;let f;l==="sandbox"&&(f=rt("#i"+e));const o=(l==="sandbox"?rt(f.nodes()[0].contentDocument.body):rt("body")).select(`[id='${e}']`);B.insertMarkers(o,k);let h;h=new Mt({multigraph:!0,directed:!0,compound:!1}).setGraph({rankdir:k.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}});const _=re(o,u.db.getEntities(),h),m=ae(u.db.getRelationships(),h);St(h),ie(o,h),m.forEach(function(I){ne(o,I,h,_,u)});const g=k.diagramPadding;Nt.insertTitle(o,"entityTitleText",k.titleTopMargin,u.db.getDiagramTitle());const R=o.node().getBBox(),p=R.width+g*2,x=R.height+g*2;xt(o,x,p,k.useMaxWidth),o.attr("viewBox",`${R.x-g} ${R.y-g} ${p} ${x}`)},oe="28e9f9db-3c8d-5aa5-9faf-44286ae5937c";function le(t="",e=""){const r=t.replace($t,"");return`${ht(e)}${ht(r)}${Jt(t,oe)}`}function ht(t=""){return t.length>0?`${t}-`:""}const ce={setConf:te,draw:se},he=t=>`
.entityBox {
fill: ${t.mainBkg};
stroke: ${t.nodeBorder};
}
.attributeBoxOdd {
fill: ${t.attributeBackgroundColorOdd};
stroke: ${t.nodeBorder};
}
.attributeBoxEven {
fill: ${t.attributeBackgroundColorEven};
stroke: ${t.nodeBorder};
}
.relationshipLabelBox {
fill: ${t.tertiaryColor};
opacity: 0.7;
background-color: ${t.tertiaryColor};
rect {
opacity: 0.5;
}
}
.relationshipLine {
stroke: ${t.lineColor};
}
.entityTitleText {
text-anchor: middle;
font-size: 18px;
fill: ${t.textColor};
}
#MD_PARENT_START {
fill: #f5f5f5 !important;
stroke: ${t.lineColor} !important;
stroke-width: 1;
}
#MD_PARENT_END {
fill: #f5f5f5 !important;
stroke: ${t.lineColor} !important;
stroke-width: 1;
}
`,de=he,Ne={parser:It,db:Zt,renderer:ce,styles:de};export{Ne as diagram};
import{o as H,c as b,d as q,aD as Q,h as E,l as g,v as j,F as lt}from"./slidev/5-BKiUV7YW.js";import{c as st}from"./createText-f6615236-y76jB5p3.js";import{l as ct}from"./line-65d70945-BvyDbe4_.js";const ht=(e,t,a,i)=>{t.forEach(l=>{wt[l](e,a,i)})},ot=(e,t,a)=>{g.trace("Making markers for ",a),e.append("defs").append("marker").attr("id",a+"_"+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",a+"_"+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")},yt=(e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+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",a+"_"+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")},pt=(e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+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",a+"_"+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")},ft=(e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+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",a+"_"+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")},dt=(e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+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",a+"_"+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)},xt=(e,t,a)=>{e.append("marker").attr("id",a+"_"+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",a+"_"+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")},gt=(e,t,a)=>{e.append("marker").attr("id",a+"_"+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",a+"_"+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")},ut=(e,t,a)=>{e.append("marker").attr("id",a+"_"+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",a+"_"+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")},bt=(e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+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")},wt={extension:ot,composition:yt,aggregation:pt,dependency:ft,lollipop:dt,point:xt,circle:gt,cross:ut,barb:bt},hr=ht;function mt(e,t){t&&e.attr("style",t)}function kt(e){const t=E(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),a=t.append("xhtml:div"),i=e.label,l=e.isNode?"nodeLabel":"edgeLabel";return a.html('<span class="'+l+'" '+(e.labelStyle?'style="'+e.labelStyle+'"':"")+">"+i+"</span>"),mt(a,e.labelStyle),a.style("display","inline-block"),a.style("white-space","nowrap"),a.attr("xmlns","http://www.w3.org/1999/xhtml"),t.node()}const vt=(e,t,a,i)=>{let l=e||"";if(typeof l=="object"&&(l=l[0]),H(b().flowchart.htmlLabels)){l=l.replace(/\\n|\n/g,"<br />"),g.debug("vertexText"+l);const r={isNode:i,label:Q(l).replace(/fa[blrs]?:fa-[\w-]+/g,n=>`<i class='${n.replace(":"," ")}'></i>`),labelStyle:t.replace("fill:","color:")};return kt(r)}else{const r=document.createElementNS("http://www.w3.org/2000/svg","text");r.setAttribute("style",t.replace("color:","fill:"));let s=[];typeof l=="string"?s=l.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(l)?s=l:s=[];for(const n of s){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"),a?c.setAttribute("class","title-row"):c.setAttribute("class","row"),c.textContent=n.trim(),r.appendChild(c)}return r}},R=vt,M=async(e,t,a,i)=>{let l;const r=t.useHtmlLabels||H(b().flowchart.htmlLabels);a?l=a:l="node default";const s=e.insert("g").attr("class",l).attr("id",t.domId||t.id),n=s.insert("g").attr("class","label").attr("style",t.labelStyle);let c;t.labelText===void 0?c="":c=typeof t.labelText=="string"?t.labelText:t.labelText[0];const o=n.node();let h;t.labelType==="markdown"?h=st(n,q(Q(c),b()),{useHtmlLabels:r,width:t.width||b().flowchart.wrappingWidth,classes:"markdown-node-label"}):h=o.appendChild(R(q(Q(c),b()),t.labelStyle,!1,i));let y=h.getBBox();const f=t.padding/2;if(H(b().flowchart.htmlLabels)){const p=h.children[0],x=E(h),k=p.getElementsByTagName("img");if(k){const d=c.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...k].map(u=>new Promise(S=>{function B(){if(u.style.display="flex",u.style.flexDirection="column",d){const C=b().fontSize?b().fontSize:window.getComputedStyle(document.body).fontSize,D=parseInt(C,10)*5+"px";u.style.minWidth=D,u.style.maxWidth=D}else u.style.width="100%";S(u)}setTimeout(()=>{u.complete&&B()}),u.addEventListener("error",B),u.addEventListener("load",B)})))}y=p.getBoundingClientRect(),x.attr("width",y.width),x.attr("height",y.height)}return r?n.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"):n.attr("transform","translate(0, "+-y.height/2+")"),t.centerLabel&&n.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),n.insert("rect",":first-child"),{shapeSvg:s,bbox:y,halfPadding:f,label:n}},m=(e,t)=>{const a=t.node().getBBox();e.width=a.width,e.height=a.height};function I(e,t,a,i){return e.insert("polygon",":first-child").attr("points",i.map(function(l){return l.x+","+l.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+a/2+")")}function Lt(e,t){return e.intersect(t)}function it(e,t,a,i){var l=e.x,r=e.y,s=l-i.x,n=r-i.y,c=Math.sqrt(t*t*n*n+a*a*s*s),o=Math.abs(t*a*s/c);i.x<l&&(o=-o);var h=Math.abs(t*a*n/c);return i.y<r&&(h=-h),{x:l+o,y:r+h}}function St(e,t,a){return it(e,t,t,a)}function Mt(e,t,a,i){var l,r,s,n,c,o,h,y,f,p,x,k,d,u,S;if(l=t.y-e.y,s=e.x-t.x,c=t.x*e.y-e.x*t.y,f=l*a.x+s*a.y+c,p=l*i.x+s*i.y+c,!(f!==0&&p!==0&&J(f,p))&&(r=i.y-a.y,n=a.x-i.x,o=i.x*a.y-a.x*i.y,h=r*e.x+n*e.y+o,y=r*t.x+n*t.y+o,!(h!==0&&y!==0&&J(h,y))&&(x=l*n-r*s,x!==0)))return k=Math.abs(x/2),d=s*o-n*c,u=d<0?(d-k)/x:(d+k)/x,d=r*c-l*o,S=d<0?(d-k)/x:(d+k)/x,{x:u,y:S}}function J(e,t){return e*t>0}function Tt(e,t,a){var i=e.x,l=e.y,r=[],s=Number.POSITIVE_INFINITY,n=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(x){s=Math.min(s,x.x),n=Math.min(n,x.y)}):(s=Math.min(s,t.x),n=Math.min(n,t.y));for(var c=i-e.width/2-s,o=l-e.height/2-n,h=0;h<t.length;h++){var y=t[h],f=t[h<t.length-1?h+1:0],p=Mt(e,a,{x:c+y.x,y:o+y.y},{x:c+f.x,y:o+f.y});p&&r.push(p)}return r.length?(r.length>1&&r.sort(function(x,k){var d=x.x-a.x,u=x.y-a.y,S=Math.sqrt(d*d+u*u),B=k.x-a.x,C=k.y-a.y,X=Math.sqrt(B*B+C*C);return S<X?-1:S===X?0:1}),r[0]):e}const Bt=(e,t)=>{var a=e.x,i=e.y,l=t.x-a,r=t.y-i,s=e.width/2,n=e.height/2,c,o;return Math.abs(r)*s>Math.abs(l)*n?(r<0&&(n=-n),c=r===0?0:n*l/r,o=n):(l<0&&(s=-s),c=s,o=l===0?0:s*r/l),{x:a+c,y:i+o}},Et=Bt,w={node:Lt,circle:St,ellipse:it,polygon:Tt,rect:Et},Ct=async(e,t)=>{t.useHtmlLabels||b().flowchart.htmlLabels||(t.centerLabel=!0);const{shapeSvg:i,bbox:l,halfPadding:r}=await M(e,t,"node "+t.classes,!0);g.info("Classes = ",t.classes);const s=i.insert("rect",":first-child");return s.attr("rx",t.rx).attr("ry",t.ry).attr("x",-l.width/2-r).attr("y",-l.height/2-r).attr("width",l.width+t.padding).attr("height",l.height+t.padding),m(t,s),t.intersect=function(n){return w.rect(t,n)},i},$t=Ct,_t=e=>{const t=new Set;for(const a of e)switch(a){case"x":t.add("right"),t.add("left");break;case"y":t.add("up"),t.add("down");break;default:t.add(a);break}return t},Rt=(e,t,a)=>{const i=_t(e),l=2,r=t.height+2*a.padding,s=r/l,n=t.width+2*s+a.padding,c=a.padding/2;return i.has("right")&&i.has("left")&&i.has("up")&&i.has("down")?[{x:0,y:0},{x:s,y:0},{x:n/2,y:2*c},{x:n-s,y:0},{x:n,y:0},{x:n,y:-r/3},{x:n+2*c,y:-r/2},{x:n,y:-2*r/3},{x:n,y:-r},{x:n-s,y:-r},{x:n/2,y:-r-2*c},{x:s,y:-r},{x:0,y:-r},{x:0,y:-2*r/3},{x:-2*c,y:-r/2},{x:0,y:-r/3}]:i.has("right")&&i.has("left")&&i.has("up")?[{x:s,y:0},{x:n-s,y:0},{x:n,y:-r/2},{x:n-s,y:-r},{x:s,y:-r},{x:0,y:-r/2}]:i.has("right")&&i.has("left")&&i.has("down")?[{x:0,y:0},{x:s,y:-r},{x:n-s,y:-r},{x:n,y:0}]:i.has("right")&&i.has("up")&&i.has("down")?[{x:0,y:0},{x:n,y:-s},{x:n,y:-r+s},{x:0,y:-r}]:i.has("left")&&i.has("up")&&i.has("down")?[{x:n,y:0},{x:0,y:-s},{x:0,y:-r+s},{x:n,y:-r}]:i.has("right")&&i.has("left")?[{x:s,y:0},{x:s,y:-c},{x:n-s,y:-c},{x:n-s,y:0},{x:n,y:-r/2},{x:n-s,y:-r},{x:n-s,y:-r+c},{x:s,y:-r+c},{x:s,y:-r},{x:0,y:-r/2}]:i.has("up")&&i.has("down")?[{x:n/2,y:0},{x:0,y:-c},{x:s,y:-c},{x:s,y:-r+c},{x:0,y:-r+c},{x:n/2,y:-r},{x:n,y:-r+c},{x:n-s,y:-r+c},{x:n-s,y:-c},{x:n,y:-c}]:i.has("right")&&i.has("up")?[{x:0,y:0},{x:n,y:-s},{x:0,y:-r}]:i.has("right")&&i.has("down")?[{x:0,y:0},{x:n,y:0},{x:0,y:-r}]:i.has("left")&&i.has("up")?[{x:n,y:0},{x:0,y:-s},{x:n,y:-r}]:i.has("left")&&i.has("down")?[{x:n,y:0},{x:0,y:0},{x:n,y:-r}]:i.has("right")?[{x:s,y:-c},{x:s,y:-c},{x:n-s,y:-c},{x:n-s,y:0},{x:n,y:-r/2},{x:n-s,y:-r},{x:n-s,y:-r+c},{x:s,y:-r+c},{x:s,y:-r+c}]:i.has("left")?[{x:s,y:0},{x:s,y:-c},{x:n-s,y:-c},{x:n-s,y:-r+c},{x:s,y:-r+c},{x:s,y:-r},{x:0,y:-r/2}]:i.has("up")?[{x:s,y:-c},{x:s,y:-r+c},{x:0,y:-r+c},{x:n/2,y:-r},{x:n,y:-r+c},{x:n-s,y:-r+c},{x:n-s,y:-c}]:i.has("down")?[{x:n/2,y:0},{x:0,y:-c},{x:s,y:-c},{x:s,y:-r+c},{x:n-s,y:-r+c},{x:n-s,y:-c},{x:n,y:-c}]:[{x:0,y:0}]},K=e=>e?" "+e:"",_=(e,t)=>`${t||"node default"}${K(e.classes)} ${K(e.class)}`,P=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t,void 0),!0),l=i.width+t.padding,r=i.height+t.padding,s=l+r,n=[{x:s/2,y:0},{x:s,y:-s/2},{x:s/2,y:-s},{x:0,y:-s/2}];g.info("Question main (Circle)");const c=I(a,s,s,n);return c.attr("style",t.style),m(t,c),t.intersect=function(o){return g.warn("Intersect called"),w.polygon(t,n,o)},a},Ht=(e,t)=>{const a=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),i=28,l=[{x:0,y:i/2},{x:i/2,y:0},{x:0,y:-i/2},{x:-i/2,y:0}];return a.insert("polygon",":first-child").attr("points",l.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 w.circle(t,14,s)},a},It=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t,void 0),!0),l=4,r=i.height+t.padding,s=r/l,n=i.width+2*s+t.padding,c=[{x:s,y:0},{x:n-s,y:0},{x:n,y:-r/2},{x:n-s,y:-r},{x:s,y:-r},{x:0,y:-r/2}],o=I(a,n,r,c);return o.attr("style",t.style),m(t,o),t.intersect=function(h){return w.polygon(t,c,h)},a},Nt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,void 0,!0),l=2,r=i.height+2*t.padding,s=r/l,n=i.width+2*s+t.padding,c=Rt(t.directions,i,t),o=I(a,n,r,c);return o.attr("style",t.style),m(t,o),t.intersect=function(h){return w.polygon(t,c,h)},a},Ot=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t,void 0),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:-r/2,y:0},{x:l,y:0},{x:l,y:-r},{x:-r/2,y:-r},{x:0,y:-r/2}];return I(a,l,r,s).attr("style",t.style),t.width=l+r,t.height=r,t.intersect=function(c){return w.polygon(t,s,c)},a},Wt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:-2*r/6,y:0},{x:l-r/6,y:0},{x:l+2*r/6,y:-r},{x:r/6,y:-r}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},Xt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t,void 0),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:2*r/6,y:0},{x:l+r/6,y:0},{x:l-2*r/6,y:-r},{x:-r/6,y:-r}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},Yt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t,void 0),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:-2*r/6,y:0},{x:l+2*r/6,y:0},{x:l-r/6,y:-r},{x:r/6,y:-r}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},Dt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t,void 0),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:r/6,y:0},{x:l-r/6,y:0},{x:l+2*r/6,y:-r},{x:-2*r/6,y:-r}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},At=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t,void 0),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:0,y:0},{x:l+r/2,y:0},{x:l,y:-r/2},{x:l+r/2,y:-r},{x:0,y:-r}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},jt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t,void 0),!0),l=i.width+t.padding,r=l/2,s=r/(2.5+l/50),n=i.height+s+t.padding,c="M 0,"+s+" a "+r+","+s+" 0,0,0 "+l+" 0 a "+r+","+s+" 0,0,0 "+-l+" 0 l 0,"+n+" a "+r+","+s+" 0,0,0 "+l+" 0 l 0,"+-n,o=a.attr("label-offset-y",s).insert("path",":first-child").attr("style",t.style).attr("d",c).attr("transform","translate("+-l/2+","+-(n/2+s)+")");return m(t,o),t.intersect=function(h){const y=w.rect(t,h),f=y.x-t.x;if(r!=0&&(Math.abs(f)<t.width/2||Math.abs(f)==t.width/2&&Math.abs(y.y-t.y)>t.height/2-s)){let p=s*s*(1-f*f/(r*r));p!=0&&(p=Math.sqrt(p)),p=s-p,h.y-t.y>0&&(p=-p),y.y+=p}return y},a},Ut=async(e,t)=>{const{shapeSvg:a,bbox:i,halfPadding:l}=await M(e,t,"node "+t.classes+" "+t.class,!0),r=a.insert("rect",":first-child"),s=t.positioned?t.width:i.width+t.padding,n=t.positioned?t.height:i.height+t.padding,c=t.positioned?-s/2:-i.width/2-l,o=t.positioned?-n/2:-i.height/2-l;if(r.attr("class","basic label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",c).attr("y",o).attr("width",s).attr("height",n),t.props){const h=new Set(Object.keys(t.props));t.props.borders&&(V(r,t.props.borders,s,n),h.delete("borders")),h.forEach(y=>{g.warn(`Unknown node property ${y}`)})}return m(t,r),t.intersect=function(h){return w.rect(t,h)},a},zt=async(e,t)=>{const{shapeSvg:a,bbox:i,halfPadding:l}=await M(e,t,"node "+t.classes,!0),r=a.insert("rect",":first-child"),s=t.positioned?t.width:i.width+t.padding,n=t.positioned?t.height:i.height+t.padding,c=t.positioned?-s/2:-i.width/2-l,o=t.positioned?-n/2:-i.height/2-l;if(r.attr("class","basic cluster composite label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",c).attr("y",o).attr("width",s).attr("height",n),t.props){const h=new Set(Object.keys(t.props));t.props.borders&&(V(r,t.props.borders,s,n),h.delete("borders")),h.forEach(y=>{g.warn(`Unknown node property ${y}`)})}return m(t,r),t.intersect=function(h){return w.rect(t,h)},a},Zt=async(e,t)=>{const{shapeSvg:a}=await M(e,t,"label",!0);g.trace("Classes = ",t.class);const i=a.insert("rect",":first-child"),l=0,r=0;if(i.attr("width",l).attr("height",r),a.attr("class","label edgeLabel"),t.props){const s=new Set(Object.keys(t.props));t.props.borders&&(V(i,t.props.borders,l,r),s.delete("borders")),s.forEach(n=>{g.warn(`Unknown node property ${n}`)})}return m(t,i),t.intersect=function(s){return w.rect(t,s)},a};function V(e,t,a,i){const l=[],r=n=>{l.push(n,0)},s=n=>{l.push(0,n)};t.includes("t")?(g.debug("add top border"),r(a)):s(a),t.includes("r")?(g.debug("add right border"),r(i)):s(i),t.includes("b")?(g.debug("add bottom border"),r(a)):s(a),t.includes("l")?(g.debug("add left border"),r(i)):s(i),e.attr("stroke-dasharray",l.join(" "))}const Ft=(e,t)=>{let a;t.classes?a="node "+t.classes:a="node default";const i=e.insert("g").attr("class",a).attr("id",t.domId||t.id),l=i.insert("rect",":first-child"),r=i.insert("line"),s=i.insert("g").attr("class","label"),n=t.labelText.flat?t.labelText.flat():t.labelText;let c="";typeof n=="object"?c=n[0]:c=n,g.info("Label text abc79",c,n,typeof n=="object");const o=s.node().appendChild(R(c,t.labelStyle,!0,!0));let h={width:0,height:0};if(H(b().flowchart.htmlLabels)){const k=o.children[0],d=E(o);h=k.getBoundingClientRect(),d.attr("width",h.width),d.attr("height",h.height)}g.info("Text 2",n);const y=n.slice(1,n.length);let f=o.getBBox();const p=s.node().appendChild(R(y.join?y.join("<br/>"):y,t.labelStyle,!0,!0));if(H(b().flowchart.htmlLabels)){const k=p.children[0],d=E(p);h=k.getBoundingClientRect(),d.attr("width",h.width),d.attr("height",h.height)}const x=t.padding/2;return E(p).attr("transform","translate( "+(h.width>f.width?0:(f.width-h.width)/2)+", "+(f.height+x+5)+")"),E(o).attr("transform","translate( "+(h.width<f.width?0:-(f.width-h.width)/2)+", 0)"),h=s.node().getBBox(),s.attr("transform","translate("+-h.width/2+", "+(-h.height/2-x+3)+")"),l.attr("class","outer title-state").attr("x",-h.width/2-x).attr("y",-h.height/2-x).attr("width",h.width+t.padding).attr("height",h.height+t.padding),r.attr("class","divider").attr("x1",-h.width/2-x).attr("x2",h.width/2+x).attr("y1",-h.height/2-x+f.height+x).attr("y2",-h.height/2-x+f.height+x),m(t,l),t.intersect=function(k){return w.rect(t,k)},i},Gt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t,void 0),!0),l=i.height+t.padding,r=i.width+l/4+t.padding,s=a.insert("rect",":first-child").attr("style",t.style).attr("rx",l/2).attr("ry",l/2).attr("x",-r/2).attr("y",-l/2).attr("width",r).attr("height",l);return m(t,s),t.intersect=function(n){return w.rect(t,n)},a},Qt=async(e,t)=>{const{shapeSvg:a,bbox:i,halfPadding:l}=await M(e,t,_(t,void 0),!0),r=a.insert("circle",":first-child");return r.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",i.width/2+l).attr("width",i.width+t.padding).attr("height",i.height+t.padding),g.info("Circle main"),m(t,r),t.intersect=function(s){return g.info("Circle intersect",t,i.width/2+l,s),w.circle(t,i.width/2+l,s)},a},Vt=async(e,t)=>{const{shapeSvg:a,bbox:i,halfPadding:l}=await M(e,t,_(t,void 0),!0),r=5,s=a.insert("g",":first-child"),n=s.insert("circle"),c=s.insert("circle");return s.attr("class",t.class),n.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",i.width/2+l+r).attr("width",i.width+t.padding+r*2).attr("height",i.height+t.padding+r*2),c.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",i.width/2+l).attr("width",i.width+t.padding).attr("height",i.height+t.padding),g.info("DoubleCircle main"),m(t,n),t.intersect=function(o){return g.info("DoubleCircle intersect",t,i.width/2+l+r,o),w.circle(t,i.width/2+l+r,o)},a},qt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t,void 0),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:0,y:0},{x:l,y:0},{x:l,y:-r},{x:0,y:-r},{x:0,y:0},{x:-8,y:0},{x:l+8,y:0},{x:l+8,y:-r},{x:-8,y:-r},{x:-8,y:0}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},Jt=(e,t)=>{const a=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),i=a.insert("circle",":first-child");return i.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),m(t,i),t.intersect=function(l){return w.circle(t,7,l)},a},tt=(e,t,a)=>{const i=e.insert("g").attr("class","node default").attr("id",t.domId||t.id);let l=70,r=10;a==="LR"&&(l=10,r=70);const s=i.append("rect").attr("x",-1*l/2).attr("y",-1*r/2).attr("width",l).attr("height",r).attr("class","fork-join");return m(t,s),t.height=t.height+t.padding/2,t.width=t.width+t.padding/2,t.intersect=function(n){return w.rect(t,n)},i},Kt=(e,t)=>{const a=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),i=a.insert("circle",":first-child"),l=a.insert("circle",":first-child");return l.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),i.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),m(t,l),t.intersect=function(r){return w.circle(t,7,r)},a},Pt=(e,t)=>{const a=t.padding/2,i=4,l=8;let r;t.classes?r="node "+t.classes:r="node default";const s=e.insert("g").attr("class",r).attr("id",t.domId||t.id),n=s.insert("rect",":first-child"),c=s.insert("line"),o=s.insert("line");let h=0,y=i;const f=s.insert("g").attr("class","label");let p=0;const x=t.classData.annotations&&t.classData.annotations[0],k=t.classData.annotations[0]?"«"+t.classData.annotations[0]+"»":"",d=f.node().appendChild(R(k,t.labelStyle,!0,!0));let u=d.getBBox();if(H(b().flowchart.htmlLabels)){const v=d.children[0],L=E(d);u=v.getBoundingClientRect(),L.attr("width",u.width),L.attr("height",u.height)}t.classData.annotations[0]&&(y+=u.height+i,h+=u.width);let S=t.classData.label;t.classData.type!==void 0&&t.classData.type!==""&&(b().flowchart.htmlLabels?S+="<"+t.classData.type+">":S+="<"+t.classData.type+">");const B=f.node().appendChild(R(S,t.labelStyle,!0,!0));E(B).attr("class","classTitle");let C=B.getBBox();if(H(b().flowchart.htmlLabels)){const v=B.children[0],L=E(B);C=v.getBoundingClientRect(),L.attr("width",C.width),L.attr("height",C.height)}y+=C.height+i,C.width>h&&(h=C.width);const X=[];t.classData.members.forEach(v=>{const L=v.getDisplayDetails();let W=L.displayText;b().flowchart.htmlLabels&&(W=W.replace(/</g,"<").replace(/>/g,">"));const N=f.node().appendChild(R(W,L.cssStyle?L.cssStyle:t.labelStyle,!0,!0));let $=N.getBBox();if(H(b().flowchart.htmlLabels)){const G=N.children[0],A=E(N);$=G.getBoundingClientRect(),A.attr("width",$.width),A.attr("height",$.height)}$.width>h&&(h=$.width),y+=$.height+i,X.push(N)}),y+=l;const D=[];if(t.classData.methods.forEach(v=>{const L=v.getDisplayDetails();let W=L.displayText;b().flowchart.htmlLabels&&(W=W.replace(/</g,"<").replace(/>/g,">"));const N=f.node().appendChild(R(W,L.cssStyle?L.cssStyle:t.labelStyle,!0,!0));let $=N.getBBox();if(H(b().flowchart.htmlLabels)){const G=N.children[0],A=E(N);$=G.getBoundingClientRect(),A.attr("width",$.width),A.attr("height",$.height)}$.width>h&&(h=$.width),y+=$.height+i,D.push(N)}),y+=l,x){let v=(h-u.width)/2;E(d).attr("transform","translate( "+(-1*h/2+v)+", "+-1*y/2+")"),p=u.height+i}let nt=(h-C.width)/2;return E(B).attr("transform","translate( "+(-1*h/2+nt)+", "+(-1*y/2+p)+")"),p+=C.height+i,c.attr("class","divider").attr("x1",-h/2-a).attr("x2",h/2+a).attr("y1",-y/2-a+l+p).attr("y2",-y/2-a+l+p),p+=l,X.forEach(v=>{E(v).attr("transform","translate( "+-h/2+", "+(-1*y/2+p+l/2)+")");const L=v==null?void 0:v.getBBox();p+=((L==null?void 0:L.height)??0)+i}),p+=l,o.attr("class","divider").attr("x1",-h/2-a).attr("x2",h/2+a).attr("y1",-y/2-a+l+p).attr("y2",-y/2-a+l+p),p+=l,D.forEach(v=>{E(v).attr("transform","translate( "+-h/2+", "+(-1*y/2+p)+")");const L=v==null?void 0:v.getBBox();p+=((L==null?void 0:L.height)??0)+i}),n.attr("style",t.style).attr("class","outer title-state").attr("x",-h/2-a).attr("y",-(y/2)-a).attr("width",h+t.padding).attr("height",y+t.padding),m(t,n),t.intersect=function(v){return w.rect(t,v)},s},rt={rhombus:P,composite:zt,question:P,rect:Ut,labelRect:Zt,rectWithTitle:Ft,choice:Ht,circle:Qt,doublecircle:Vt,stadium:Gt,hexagon:It,block_arrow:Nt,rect_left_inv_arrow:Ot,lean_right:Wt,lean_left:Xt,trapezoid:Yt,inv_trapezoid:Dt,rect_right_inv_arrow:At,cylinder:jt,start:Jt,end:Kt,note:$t,subroutine:qt,fork:tt,join:tt,class_box:Pt};let Y={};const or=async(e,t,a)=>{let i,l;if(t.link){let r;b().securityLevel==="sandbox"?r="_top":t.linkTarget&&(r=t.linkTarget||"_blank"),i=e.insert("svg:a").attr("xlink:href",t.link).attr("target",r),l=await rt[t.shape](i,t,a)}else l=await rt[t.shape](e,t,a),i=l;return t.tooltip&&l.attr("title",t.tooltip),t.class&&l.attr("class","node default "+t.class),i.attr("data-node","true"),i.attr("data-id",t.id),Y[t.id]=i,t.haveCallback&&Y[t.id].attr("class",Y[t.id].attr("class")+" clickable"),i},yr=(e,t)=>{Y[t.id]=e},pr=()=>{Y={}},fr=e=>{const t=Y[e.id];g.trace("Transforming node",e.diff,e,"translate("+(e.x-e.width/2-5)+", "+e.width/2+")");const a=8,i=e.diff||0;return e.clusterNode?t.attr("transform","translate("+(e.x+i-e.width/2)+", "+(e.y-e.height/2-a)+")"):t.attr("transform","translate("+e.x+", "+e.y+")"),i},tr=({flowchart:e})=>{var t,a;const i=((t=e==null?void 0:e.subGraphTitleMargin)==null?void 0:t.top)??0,l=((a=e==null?void 0:e.subGraphTitleMargin)==null?void 0:a.bottom)??0,r=i+l;return{subGraphTitleTopMargin:i,subGraphTitleBottomMargin:l,subGraphTitleTotalMargin:r}},O={aggregation:18,extension:18,composition:18,dependency:6,lollipop:13.5,arrow_point:5.3};function U(e,t){if(e===void 0||t===void 0)return{angle:0,deltaX:0,deltaY:0};e=Z(e),t=Z(t);const[a,i]=[e.x,e.y],[l,r]=[t.x,t.y],s=l-a,n=r-i;return{angle:Math.atan(n/s),deltaX:s,deltaY:n}}const Z=e=>Array.isArray(e)?{x:e[0],y:e[1]}:e,rr=e=>({x:function(t,a,i){let l=0;if(a===0&&Object.hasOwn(O,e.arrowTypeStart)){const{angle:r,deltaX:s}=U(i[0],i[1]);l=O[e.arrowTypeStart]*Math.cos(r)*(s>=0?1:-1)}else if(a===i.length-1&&Object.hasOwn(O,e.arrowTypeEnd)){const{angle:r,deltaX:s}=U(i[i.length-1],i[i.length-2]);l=O[e.arrowTypeEnd]*Math.cos(r)*(s>=0?1:-1)}return Z(t).x+l},y:function(t,a,i){let l=0;if(a===0&&Object.hasOwn(O,e.arrowTypeStart)){const{angle:r,deltaY:s}=U(i[0],i[1]);l=O[e.arrowTypeStart]*Math.abs(Math.sin(r))*(s>=0?1:-1)}else if(a===i.length-1&&Object.hasOwn(O,e.arrowTypeEnd)){const{angle:r,deltaY:s}=U(i[i.length-1],i[i.length-2]);l=O[e.arrowTypeEnd]*Math.abs(Math.sin(r))*(s>=0?1:-1)}return Z(t).y+l}}),ar=(e,t,a,i,l)=>{t.arrowTypeStart&&at(e,"start",t.arrowTypeStart,a,i,l),t.arrowTypeEnd&&at(e,"end",t.arrowTypeEnd,a,i,l)},er={arrow_cross:"cross",arrow_point:"point",arrow_barb:"barb",arrow_circle:"circle",aggregation:"aggregation",extension:"extension",composition:"composition",dependency:"dependency",lollipop:"lollipop"},at=(e,t,a,i,l,r)=>{const s=er[a];if(!s){g.warn(`Unknown arrow type: ${a}`);return}const n=t==="start"?"Start":"End";e.attr(`marker-${t}`,`url(${i}#${l}_${r}-${s}${n})`)};let F={},T={};const dr=()=>{F={},T={}},xr=(e,t)=>{const a=H(b().flowchart.htmlLabels),i=t.labelType==="markdown"?st(e,t.label,{style:t.labelStyle,useHtmlLabels:a,addSvgBackground:!0}):R(t.label,t.labelStyle),l=e.insert("g").attr("class","edgeLabel"),r=l.insert("g").attr("class","label");r.node().appendChild(i);let s=i.getBBox();if(a){const c=i.children[0],o=E(i);s=c.getBoundingClientRect(),o.attr("width",s.width),o.attr("height",s.height)}r.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"),F[t.id]=l,t.width=s.width,t.height=s.height;let n;if(t.startLabelLeft){const c=R(t.startLabelLeft,t.labelStyle),o=e.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");n=h.node().appendChild(c);const y=c.getBBox();h.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),T[t.id]||(T[t.id]={}),T[t.id].startLeft=o,z(n,t.startLabelLeft)}if(t.startLabelRight){const c=R(t.startLabelRight,t.labelStyle),o=e.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");n=o.node().appendChild(c),h.node().appendChild(c);const y=c.getBBox();h.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),T[t.id]||(T[t.id]={}),T[t.id].startRight=o,z(n,t.startLabelRight)}if(t.endLabelLeft){const c=R(t.endLabelLeft,t.labelStyle),o=e.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");n=h.node().appendChild(c);const y=c.getBBox();h.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),o.node().appendChild(c),T[t.id]||(T[t.id]={}),T[t.id].endLeft=o,z(n,t.endLabelLeft)}if(t.endLabelRight){const c=R(t.endLabelRight,t.labelStyle),o=e.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");n=h.node().appendChild(c);const y=c.getBBox();h.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),o.node().appendChild(c),T[t.id]||(T[t.id]={}),T[t.id].endRight=o,z(n,t.endLabelRight)}return i};function z(e,t){b().flowchart.htmlLabels&&e&&(e.style.width=t.length*9+"px",e.style.height="12px")}const gr=(e,t)=>{g.debug("Moving label abc88 ",e.id,e.label,F[e.id],t);let a=t.updatedPath?t.updatedPath:t.originalPath;const i=b(),{subGraphTitleTotalMargin:l}=tr(i);if(e.label){const r=F[e.id];let s=e.x,n=e.y;if(a){const c=j.calcLabelPosition(a);g.debug("Moving label "+e.label+" from (",s,",",n,") to (",c.x,",",c.y,") abc88"),t.updatedPath&&(s=c.x,n=c.y)}r.attr("transform",`translate(${s}, ${n+l/2})`)}if(e.startLabelLeft){const r=T[e.id].startLeft;let s=e.x,n=e.y;if(a){const c=j.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_left",a);s=c.x,n=c.y}r.attr("transform",`translate(${s}, ${n})`)}if(e.startLabelRight){const r=T[e.id].startRight;let s=e.x,n=e.y;if(a){const c=j.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_right",a);s=c.x,n=c.y}r.attr("transform",`translate(${s}, ${n})`)}if(e.endLabelLeft){const r=T[e.id].endLeft;let s=e.x,n=e.y;if(a){const c=j.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_left",a);s=c.x,n=c.y}r.attr("transform",`translate(${s}, ${n})`)}if(e.endLabelRight){const r=T[e.id].endRight;let s=e.x,n=e.y;if(a){const c=j.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",a);s=c.x,n=c.y}r.attr("transform",`translate(${s}, ${n})`)}},sr=(e,t)=>{const a=e.x,i=e.y,l=Math.abs(t.x-a),r=Math.abs(t.y-i),s=e.width/2,n=e.height/2;return l>=s||r>=n},ir=(e,t,a)=>{g.debug(`intersection calc abc89:
outsidePoint: ${JSON.stringify(t)}
insidePoint : ${JSON.stringify(a)}
node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);const i=e.x,l=e.y,r=Math.abs(i-a.x),s=e.width/2;let n=a.x<t.x?s-r:s+r;const c=e.height/2,o=Math.abs(t.y-a.y),h=Math.abs(t.x-a.x);if(Math.abs(l-t.y)*s>Math.abs(i-t.x)*c){let y=a.y<t.y?t.y-c-l:l-c-t.y;n=h*y/o;const f={x:a.x<t.x?a.x+n:a.x-h+n,y:a.y<t.y?a.y+o-y:a.y-o+y};return n===0&&(f.x=t.x,f.y=t.y),h===0&&(f.x=t.x),o===0&&(f.y=t.y),g.debug(`abc89 topp/bott calc, Q ${o}, q ${y}, R ${h}, r ${n}`,f),f}else{a.x<t.x?n=t.x-s-i:n=i-s-t.x;let y=o*n/h,f=a.x<t.x?a.x+h-n:a.x-h+n,p=a.y<t.y?a.y+y:a.y-y;return g.debug(`sides calc abc89, Q ${o}, q ${y}, R ${h}, r ${n}`,{_x:f,_y:p}),n===0&&(f=t.x,p=t.y),h===0&&(f=t.x),o===0&&(p=t.y),{x:f,y:p}}},et=(e,t)=>{g.debug("abc88 cutPathAtIntersect",e,t);let a=[],i=e[0],l=!1;return e.forEach(r=>{if(!sr(t,r)&&!l){const s=ir(t,i,r);let n=!1;a.forEach(c=>{n=n||c.x===s.x&&c.y===s.y}),a.some(c=>c.x===s.x&&c.y===s.y)||a.push(s),l=!0}else i=r,l||a.push(r)}),a},ur=function(e,t,a,i,l,r,s){let n=a.points;g.debug("abc88 InsertEdge: edge=",a,"e=",t);let c=!1;const o=r.node(t.v);var h=r.node(t.w);h!=null&&h.intersect&&(o!=null&&o.intersect)&&(n=n.slice(1,a.points.length-1),n.unshift(o.intersect(n[0])),n.push(h.intersect(n[n.length-1]))),a.toCluster&&(g.debug("to cluster abc88",i[a.toCluster]),n=et(a.points,i[a.toCluster].node),c=!0),a.fromCluster&&(g.debug("from cluster abc88",i[a.fromCluster]),n=et(n.reverse(),i[a.fromCluster].node).reverse(),c=!0);const y=n.filter(C=>!Number.isNaN(C.y));let f=lt;a.curve&&(l==="graph"||l==="flowchart")&&(f=a.curve);const{x:p,y:x}=rr(a),k=ct().x(p).y(x).curve(f);let d;switch(a.thickness){case"normal":d="edge-thickness-normal";break;case"thick":d="edge-thickness-thick";break;case"invisible":d="edge-thickness-thick";break;default:d=""}switch(a.pattern){case"solid":d+=" edge-pattern-solid";break;case"dotted":d+=" edge-pattern-dotted";break;case"dashed":d+=" edge-pattern-dashed";break}const u=e.append("path").attr("d",k(y)).attr("id",a.id).attr("class"," "+d+(a.classes?" "+a.classes:"")).attr("style",a.style);let S="";(b().flowchart.arrowMarkerAbsolute||b().state.arrowMarkerAbsolute)&&(S=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,S=S.replace(/\(/g,"\\("),S=S.replace(/\)/g,"\\)")),ar(u,a,S,s,l);let B={};return c&&(B.updatedPath=n),B.originalPath=a.points,B};export{or as a,xr as b,ur as c,gr as d,pr as e,dr as f,tr as g,R as h,hr as i,Et as j,rr as k,M as l,ar as m,fr as p,yr as s,m as u};
import{l as At,aD as zt,aE as It}from"./slidev/5-BKiUV7YW.js";const Tt={};function Bt(n,r){const t=r||Tt,e=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,u=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return et(n,e,u)}function et(n,r,t){if(Lt(n)){if("value"in n)return n.type==="html"&&!t?"":n.value;if(r&&"alt"in n&&n.alt)return n.alt;if("children"in n)return Vn(n.children,r,t)}return Array.isArray(n)?Vn(n,r,t):""}function Vn(n,r,t){const e=[];let u=-1;for(;++u<n.length;)e[u]=et(n[u],r,t);return e.join("")}function Lt(n){return!!(n&&typeof n=="object")}function tn(n,r,t,e){const u=n.length;let i=0,l;if(r<0?r=-r>u?0:u+r:r=r>u?u:r,t=t>0?t:0,e.length<1e4)l=Array.from(e),l.unshift(r,t),n.splice(...l);else for(t&&n.splice(r,t);i<e.length;)l=e.slice(i,i+1e4),l.unshift(r,0),n.splice(...l),i+=1e4,r+=1e4}function Z(n,r){return n.length>0?(tn(n,n.length,0,r),n):r}const Wn={}.hasOwnProperty;function Ot(n){const r={};let t=-1;for(;++t<n.length;)Dt(r,n[t]);return r}function Dt(n,r){let t;for(t in r){const u=(Wn.call(n,t)?n[t]:void 0)||(n[t]={}),i=r[t];let l;if(i)for(l in i){Wn.call(u,l)||(u[l]=[]);const a=i[l];Pt(u[l],Array.isArray(a)?a:a?[a]:[])}}}function Pt(n,r){let t=-1;const e=[];for(;++t<r.length;)(r[t].add==="after"?n:e).push(r[t]);tn(n,0,0,e)}const _t=/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,nn=cn(/[A-Za-z]/),X=cn(/[\dA-Za-z]/),Mt=cn(/[#-'*+\--9=?A-Z^-~]/);function An(n){return n!==null&&(n<32||n===127)}const zn=cn(/\d/),jt=cn(/[\dA-Fa-f]/),Rt=cn(/[!-/:-@[-`{-~]/);function C(n){return n!==null&&n<-2}function v(n){return n!==null&&(n<0||n===32)}function z(n){return n===-2||n===-1||n===32}const qt=cn(_t),Ht=cn(/\s/);function cn(n){return r;function r(t){return t!==null&&n.test(String.fromCharCode(t))}}function O(n,r,t,e){const u=e?e-1:Number.POSITIVE_INFINITY;let i=0;return l;function l(f){return z(f)?(n.enter(t),a(f)):r(f)}function a(f){return z(f)&&i++<u?(n.consume(f),a):(n.exit(t),r(f))}}const Nt={tokenize:Vt};function Vt(n){const r=n.attempt(this.parser.constructs.contentInitial,e,u);let t;return r;function e(a){if(a===null){n.consume(a);return}return n.enter("lineEnding"),n.consume(a),n.exit("lineEnding"),O(n,r,"linePrefix")}function u(a){return n.enter("paragraph"),i(a)}function i(a){const f=n.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=f),t=f,l(a)}function l(a){if(a===null){n.exit("chunkText"),n.exit("paragraph"),n.consume(a);return}return C(a)?(n.consume(a),n.exit("chunkText"),i):(n.consume(a),l)}}const Wt={tokenize:Qt},Qn={tokenize:Ut};function Qt(n){const r=this,t=[];let e=0,u,i,l;return a;function a(F){if(e<t.length){const D=t[e];return r.containerState=D[1],n.attempt(D[0].continuation,f,c)(F)}return c(F)}function f(F){if(e++,r.containerState._closeFlow){r.containerState._closeFlow=void 0,u&&j();const D=r.events.length;let _=D,k;for(;_--;)if(r.events[_][0]==="exit"&&r.events[_][1].type==="chunkFlow"){k=r.events[_][1].end;break}y(e);let T=D;for(;T<r.events.length;)r.events[T][1].end=Object.assign({},k),T++;return tn(r.events,_+1,0,r.events.slice(D)),r.events.length=T,c(F)}return a(F)}function c(F){if(e===t.length){if(!u)return x(F);if(u.currentConstruct&&u.currentConstruct.concrete)return A(F);r.interrupt=!!(u.currentConstruct&&!u._gfmTableDynamicInterruptHack)}return r.containerState={},n.check(Qn,p,m)(F)}function p(F){return u&&j(),y(e),x(F)}function m(F){return r.parser.lazy[r.now().line]=e!==t.length,l=r.now().offset,A(F)}function x(F){return r.containerState={},n.attempt(Qn,h,A)(F)}function h(F){return e++,t.push([r.currentConstruct,r.containerState]),x(F)}function A(F){if(F===null){u&&j(),y(0),n.consume(F);return}return u=u||r.parser.flow(r.now()),n.enter("chunkFlow",{contentType:"flow",previous:i,_tokenizer:u}),I(F)}function I(F){if(F===null){M(n.exit("chunkFlow"),!0),y(0),n.consume(F);return}return C(F)?(n.consume(F),M(n.exit("chunkFlow")),e=0,r.interrupt=void 0,a):(n.consume(F),I)}function M(F,D){const _=r.sliceStream(F);if(D&&_.push(null),F.previous=i,i&&(i.next=F),i=F,u.defineSkip(F.start),u.write(_),r.parser.lazy[F.start.line]){let k=u.events.length;for(;k--;)if(u.events[k][1].start.offset<l&&(!u.events[k][1].end||u.events[k][1].end.offset>l))return;const T=r.events.length;let H=T,N,V;for(;H--;)if(r.events[H][0]==="exit"&&r.events[H][1].type==="chunkFlow"){if(N){V=r.events[H][1].end;break}N=!0}for(y(e),k=T;k<r.events.length;)r.events[k][1].end=Object.assign({},V),k++;tn(r.events,H+1,0,r.events.slice(T)),r.events.length=k}}function y(F){let D=t.length;for(;D-- >F;){const _=t[D];r.containerState=_[1],_[0].exit.call(r,n)}t.length=F}function j(){u.write([null]),i=void 0,u=void 0,r.containerState._closeFlow=void 0}}function Ut(n,r,t){return O(n,n.attempt(this.parser.constructs.document,r,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Un(n){if(n===null||v(n)||Ht(n))return 1;if(qt(n))return 2}function Ln(n,r,t){const e=[];let u=-1;for(;++u<n.length;){const i=n[u].resolveAll;i&&!e.includes(i)&&(r=i(r,t),e.push(i))}return r}const In={name:"attention",tokenize:vt,resolveAll:$t};function $t(n,r){let t=-1,e,u,i,l,a,f,c,p;for(;++t<n.length;)if(n[t][0]==="enter"&&n[t][1].type==="attentionSequence"&&n[t][1]._close){for(e=t;e--;)if(n[e][0]==="exit"&&n[e][1].type==="attentionSequence"&&n[e][1]._open&&r.sliceSerialize(n[e][1]).charCodeAt(0)===r.sliceSerialize(n[t][1]).charCodeAt(0)){if((n[e][1]._close||n[t][1]._open)&&(n[t][1].end.offset-n[t][1].start.offset)%3&&!((n[e][1].end.offset-n[e][1].start.offset+n[t][1].end.offset-n[t][1].start.offset)%3))continue;f=n[e][1].end.offset-n[e][1].start.offset>1&&n[t][1].end.offset-n[t][1].start.offset>1?2:1;const m=Object.assign({},n[e][1].end),x=Object.assign({},n[t][1].start);$n(m,-f),$n(x,f),l={type:f>1?"strongSequence":"emphasisSequence",start:m,end:Object.assign({},n[e][1].end)},a={type:f>1?"strongSequence":"emphasisSequence",start:Object.assign({},n[t][1].start),end:x},i={type:f>1?"strongText":"emphasisText",start:Object.assign({},n[e][1].end),end:Object.assign({},n[t][1].start)},u={type:f>1?"strong":"emphasis",start:Object.assign({},l.start),end:Object.assign({},a.end)},n[e][1].end=Object.assign({},l.start),n[t][1].start=Object.assign({},a.end),c=[],n[e][1].end.offset-n[e][1].start.offset&&(c=Z(c,[["enter",n[e][1],r],["exit",n[e][1],r]])),c=Z(c,[["enter",u,r],["enter",l,r],["exit",l,r],["enter",i,r]]),c=Z(c,Ln(r.parser.constructs.insideSpan.null,n.slice(e+1,t),r)),c=Z(c,[["exit",i,r],["enter",a,r],["exit",a,r],["exit",u,r]]),n[t][1].end.offset-n[t][1].start.offset?(p=2,c=Z(c,[["enter",n[t][1],r],["exit",n[t][1],r]])):p=0,tn(n,e-1,t-e+3,c),t=e+c.length-p-2;break}}for(t=-1;++t<n.length;)n[t][1].type==="attentionSequence"&&(n[t][1].type="data");return n}function vt(n,r){const t=this.parser.constructs.attentionMarkers.null,e=this.previous,u=Un(e);let i;return l;function l(f){return i=f,n.enter("attentionSequence"),a(f)}function a(f){if(f===i)return n.consume(f),a;const c=n.exit("attentionSequence"),p=Un(f),m=!p||p===2&&u||t.includes(f),x=!u||u===2&&p||t.includes(e);return c._open=!!(i===42?m:m&&(u||!x)),c._close=!!(i===42?x:x&&(p||!m)),r(f)}}function $n(n,r){n.column+=r,n.offset+=r,n._bufferIndex+=r}const Zt={name:"autolink",tokenize:Yt};function Yt(n,r,t){let e=0;return u;function u(h){return n.enter("autolink"),n.enter("autolinkMarker"),n.consume(h),n.exit("autolinkMarker"),n.enter("autolinkProtocol"),i}function i(h){return nn(h)?(n.consume(h),l):c(h)}function l(h){return h===43||h===45||h===46||X(h)?(e=1,a(h)):c(h)}function a(h){return h===58?(n.consume(h),e=0,f):(h===43||h===45||h===46||X(h))&&e++<32?(n.consume(h),a):(e=0,c(h))}function f(h){return h===62?(n.exit("autolinkProtocol"),n.enter("autolinkMarker"),n.consume(h),n.exit("autolinkMarker"),n.exit("autolink"),r):h===null||h===32||h===60||An(h)?t(h):(n.consume(h),f)}function c(h){return h===64?(n.consume(h),p):Mt(h)?(n.consume(h),c):t(h)}function p(h){return X(h)?m(h):t(h)}function m(h){return h===46?(n.consume(h),e=0,p):h===62?(n.exit("autolinkProtocol").type="autolinkEmail",n.enter("autolinkMarker"),n.consume(h),n.exit("autolinkMarker"),n.exit("autolink"),r):x(h)}function x(h){if((h===45||X(h))&&e++<63){const A=h===45?x:m;return n.consume(h),A}return t(h)}}const Sn={tokenize:Gt,partial:!0};function Gt(n,r,t){return e;function e(i){return z(i)?O(n,u,"linePrefix")(i):u(i)}function u(i){return i===null||C(i)?r(i):t(i)}}const rt={name:"blockQuote",tokenize:Jt,continuation:{tokenize:Kt},exit:Xt};function Jt(n,r,t){const e=this;return u;function u(l){if(l===62){const a=e.containerState;return a.open||(n.enter("blockQuote",{_container:!0}),a.open=!0),n.enter("blockQuotePrefix"),n.enter("blockQuoteMarker"),n.consume(l),n.exit("blockQuoteMarker"),i}return t(l)}function i(l){return z(l)?(n.enter("blockQuotePrefixWhitespace"),n.consume(l),n.exit("blockQuotePrefixWhitespace"),n.exit("blockQuotePrefix"),r):(n.exit("blockQuotePrefix"),r(l))}}function Kt(n,r,t){const e=this;return u;function u(l){return z(l)?O(n,i,"linePrefix",e.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):i(l)}function i(l){return n.attempt(rt,r,t)(l)}}function Xt(n){n.exit("blockQuote")}const it={name:"characterEscape",tokenize:ne};function ne(n,r,t){return e;function e(i){return n.enter("characterEscape"),n.enter("escapeMarker"),n.consume(i),n.exit("escapeMarker"),u}function u(i){return Rt(i)?(n.enter("characterEscapeValue"),n.consume(i),n.exit("characterEscapeValue"),n.exit("characterEscape"),r):t(i)}}const vn=document.createElement("i");function On(n){const r="&"+n+";";vn.innerHTML=r;const t=vn.textContent;return t.charCodeAt(t.length-1)===59&&n!=="semi"||t===r?!1:t}const ut={name:"characterReference",tokenize:te};function te(n,r,t){const e=this;let u=0,i,l;return a;function a(m){return n.enter("characterReference"),n.enter("characterReferenceMarker"),n.consume(m),n.exit("characterReferenceMarker"),f}function f(m){return m===35?(n.enter("characterReferenceMarkerNumeric"),n.consume(m),n.exit("characterReferenceMarkerNumeric"),c):(n.enter("characterReferenceValue"),i=31,l=X,p(m))}function c(m){return m===88||m===120?(n.enter("characterReferenceMarkerHexadecimal"),n.consume(m),n.exit("characterReferenceMarkerHexadecimal"),n.enter("characterReferenceValue"),i=6,l=jt,p):(n.enter("characterReferenceValue"),i=7,l=zn,p(m))}function p(m){if(m===59&&u){const x=n.exit("characterReferenceValue");return l===X&&!On(e.sliceSerialize(x))?t(m):(n.enter("characterReferenceMarker"),n.consume(m),n.exit("characterReferenceMarker"),n.exit("characterReference"),r)}return l(m)&&u++<i?(n.consume(m),p):t(m)}}const Zn={tokenize:re,partial:!0},Yn={name:"codeFenced",tokenize:ee,concrete:!0};function ee(n,r,t){const e=this,u={tokenize:_,partial:!0};let i=0,l=0,a;return f;function f(k){return c(k)}function c(k){const T=e.events[e.events.length-1];return i=T&&T[1].type==="linePrefix"?T[2].sliceSerialize(T[1],!0).length:0,a=k,n.enter("codeFenced"),n.enter("codeFencedFence"),n.enter("codeFencedFenceSequence"),p(k)}function p(k){return k===a?(l++,n.consume(k),p):l<3?t(k):(n.exit("codeFencedFenceSequence"),z(k)?O(n,m,"whitespace")(k):m(k))}function m(k){return k===null||C(k)?(n.exit("codeFencedFence"),e.interrupt?r(k):n.check(Zn,I,D)(k)):(n.enter("codeFencedFenceInfo"),n.enter("chunkString",{contentType:"string"}),x(k))}function x(k){return k===null||C(k)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),m(k)):z(k)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),O(n,h,"whitespace")(k)):k===96&&k===a?t(k):(n.consume(k),x)}function h(k){return k===null||C(k)?m(k):(n.enter("codeFencedFenceMeta"),n.enter("chunkString",{contentType:"string"}),A(k))}function A(k){return k===null||C(k)?(n.exit("chunkString"),n.exit("codeFencedFenceMeta"),m(k)):k===96&&k===a?t(k):(n.consume(k),A)}function I(k){return n.attempt(u,D,M)(k)}function M(k){return n.enter("lineEnding"),n.consume(k),n.exit("lineEnding"),y}function y(k){return i>0&&z(k)?O(n,j,"linePrefix",i+1)(k):j(k)}function j(k){return k===null||C(k)?n.check(Zn,I,D)(k):(n.enter("codeFlowValue"),F(k))}function F(k){return k===null||C(k)?(n.exit("codeFlowValue"),j(k)):(n.consume(k),F)}function D(k){return n.exit("codeFenced"),r(k)}function _(k,T,H){let N=0;return V;function V(w){return k.enter("lineEnding"),k.consume(w),k.exit("lineEnding"),d}function d(w){return k.enter("codeFencedFence"),z(w)?O(k,S,"linePrefix",e.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(w):S(w)}function S(w){return w===a?(k.enter("codeFencedFenceSequence"),P(w)):H(w)}function P(w){return w===a?(N++,k.consume(w),P):N>=l?(k.exit("codeFencedFenceSequence"),z(w)?O(k,R,"whitespace")(w):R(w)):H(w)}function R(w){return w===null||C(w)?(k.exit("codeFencedFence"),T(w)):H(w)}}}function re(n,r,t){const e=this;return u;function u(l){return l===null?t(l):(n.enter("lineEnding"),n.consume(l),n.exit("lineEnding"),i)}function i(l){return e.parser.lazy[e.now().line]?t(l):r(l)}}const Cn={name:"codeIndented",tokenize:ue},ie={tokenize:le,partial:!0};function ue(n,r,t){const e=this;return u;function u(c){return n.enter("codeIndented"),O(n,i,"linePrefix",5)(c)}function i(c){const p=e.events[e.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?l(c):t(c)}function l(c){return c===null?f(c):C(c)?n.attempt(ie,l,f)(c):(n.enter("codeFlowValue"),a(c))}function a(c){return c===null||C(c)?(n.exit("codeFlowValue"),l(c)):(n.consume(c),a)}function f(c){return n.exit("codeIndented"),r(c)}}function le(n,r,t){const e=this;return u;function u(l){return e.parser.lazy[e.now().line]?t(l):C(l)?(n.enter("lineEnding"),n.consume(l),n.exit("lineEnding"),u):O(n,i,"linePrefix",5)(l)}function i(l){const a=e.events[e.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?r(l):C(l)?u(l):t(l)}}const ae={name:"codeText",tokenize:ce,resolve:oe,previous:se};function oe(n){let r=n.length-4,t=3,e,u;if((n[t][1].type==="lineEnding"||n[t][1].type==="space")&&(n[r][1].type==="lineEnding"||n[r][1].type==="space")){for(e=t;++e<r;)if(n[e][1].type==="codeTextData"){n[t][1].type="codeTextPadding",n[r][1].type="codeTextPadding",t+=2,r-=2;break}}for(e=t-1,r++;++e<=r;)u===void 0?e!==r&&n[e][1].type!=="lineEnding"&&(u=e):(e===r||n[e][1].type==="lineEnding")&&(n[u][1].type="codeTextData",e!==u+2&&(n[u][1].end=n[e-1][1].end,n.splice(u+2,e-u-2),r-=e-u-2,e=u+2),u=void 0);return n}function se(n){return n!==96||this.events[this.events.length-1][1].type==="characterEscape"}function ce(n,r,t){let e=0,u,i;return l;function l(m){return n.enter("codeText"),n.enter("codeTextSequence"),a(m)}function a(m){return m===96?(n.consume(m),e++,a):(n.exit("codeTextSequence"),f(m))}function f(m){return m===null?t(m):m===32?(n.enter("space"),n.consume(m),n.exit("space"),f):m===96?(i=n.enter("codeTextSequence"),u=0,p(m)):C(m)?(n.enter("lineEnding"),n.consume(m),n.exit("lineEnding"),f):(n.enter("codeTextData"),c(m))}function c(m){return m===null||m===32||m===96||C(m)?(n.exit("codeTextData"),f(m)):(n.consume(m),c)}function p(m){return m===96?(n.consume(m),u++,p):u===e?(n.exit("codeTextSequence"),n.exit("codeText"),r(m)):(i.type="codeTextData",c(m))}}function lt(n){const r={};let t=-1,e,u,i,l,a,f,c;for(;++t<n.length;){for(;t in r;)t=r[t];if(e=n[t],t&&e[1].type==="chunkFlow"&&n[t-1][1].type==="listItemPrefix"&&(f=e[1]._tokenizer.events,i=0,i<f.length&&f[i][1].type==="lineEndingBlank"&&(i+=2),i<f.length&&f[i][1].type==="content"))for(;++i<f.length&&f[i][1].type!=="content";)f[i][1].type==="chunkText"&&(f[i][1]._isInFirstContentOfListItem=!0,i++);if(e[0]==="enter")e[1].contentType&&(Object.assign(r,he(n,t)),t=r[t],c=!0);else if(e[1]._container){for(i=t,u=void 0;i--&&(l=n[i],l[1].type==="lineEnding"||l[1].type==="lineEndingBlank");)l[0]==="enter"&&(u&&(n[u][1].type="lineEndingBlank"),l[1].type="lineEnding",u=i);u&&(e[1].end=Object.assign({},n[u][1].start),a=n.slice(u,t),a.unshift(e),tn(n,u,t-u+1,a))}}return!c}function he(n,r){const t=n[r][1],e=n[r][2];let u=r-1;const i=[],l=t._tokenizer||e.parser[t.contentType](t.start),a=l.events,f=[],c={};let p,m,x=-1,h=t,A=0,I=0;const M=[I];for(;h;){for(;n[++u][1]!==h;);i.push(u),h._tokenizer||(p=e.sliceStream(h),h.next||p.push(null),m&&l.defineSkip(h.start),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(p),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),m=h,h=h.next}for(h=t;++x<a.length;)a[x][0]==="exit"&&a[x-1][0]==="enter"&&a[x][1].type===a[x-1][1].type&&a[x][1].start.line!==a[x][1].end.line&&(I=x+1,M.push(I),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(l.events=[],h?(h._tokenizer=void 0,h.previous=void 0):M.pop(),x=M.length;x--;){const y=a.slice(M[x],M[x+1]),j=i.pop();f.unshift([j,j+y.length-1]),tn(n,j,2,y)}for(x=-1;++x<f.length;)c[A+f[x][0]]=A+f[x][1],A+=f[x][1]-f[x][0]-1;return c}const pe={tokenize:xe,resolve:fe},me={tokenize:ge,partial:!0};function fe(n){return lt(n),n}function xe(n,r){let t;return e;function e(a){return n.enter("content"),t=n.enter("chunkContent",{contentType:"content"}),u(a)}function u(a){return a===null?i(a):C(a)?n.check(me,l,i)(a):(n.consume(a),u)}function i(a){return n.exit("chunkContent"),n.exit("content"),r(a)}function l(a){return n.consume(a),n.exit("chunkContent"),t.next=n.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,u}}function ge(n,r,t){const e=this;return u;function u(l){return n.exit("chunkContent"),n.enter("lineEnding"),n.consume(l),n.exit("lineEnding"),O(n,i,"linePrefix")}function i(l){if(l===null||C(l))return t(l);const a=e.events[e.events.length-1];return!e.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?r(l):n.interrupt(e.parser.constructs.flow,t,r)(l)}}function at(n,r,t,e,u,i,l,a,f){const c=f||Number.POSITIVE_INFINITY;let p=0;return m;function m(y){return y===60?(n.enter(e),n.enter(u),n.enter(i),n.consume(y),n.exit(i),x):y===null||y===32||y===41||An(y)?t(y):(n.enter(e),n.enter(l),n.enter(a),n.enter("chunkString",{contentType:"string"}),I(y))}function x(y){return y===62?(n.enter(i),n.consume(y),n.exit(i),n.exit(u),n.exit(e),r):(n.enter(a),n.enter("chunkString",{contentType:"string"}),h(y))}function h(y){return y===62?(n.exit("chunkString"),n.exit(a),x(y)):y===null||y===60||C(y)?t(y):(n.consume(y),y===92?A:h)}function A(y){return y===60||y===62||y===92?(n.consume(y),h):h(y)}function I(y){return!p&&(y===null||y===41||v(y))?(n.exit("chunkString"),n.exit(a),n.exit(l),n.exit(e),r(y)):p<c&&y===40?(n.consume(y),p++,I):y===41?(n.consume(y),p--,I):y===null||y===32||y===40||An(y)?t(y):(n.consume(y),y===92?M:I)}function M(y){return y===40||y===41||y===92?(n.consume(y),I):I(y)}}function ot(n,r,t,e,u,i){const l=this;let a=0,f;return c;function c(h){return n.enter(e),n.enter(u),n.consume(h),n.exit(u),n.enter(i),p}function p(h){return a>999||h===null||h===91||h===93&&!f||h===94&&!a&&"_hiddenFootnoteSupport"in l.parser.constructs?t(h):h===93?(n.exit(i),n.enter(u),n.consume(h),n.exit(u),n.exit(e),r):C(h)?(n.enter("lineEnding"),n.consume(h),n.exit("lineEnding"),p):(n.enter("chunkString",{contentType:"string"}),m(h))}function m(h){return h===null||h===91||h===93||C(h)||a++>999?(n.exit("chunkString"),p(h)):(n.consume(h),f||(f=!z(h)),h===92?x:m)}function x(h){return h===91||h===92||h===93?(n.consume(h),a++,m):m(h)}}function st(n,r,t,e,u,i){let l;return a;function a(x){return x===34||x===39||x===40?(n.enter(e),n.enter(u),n.consume(x),n.exit(u),l=x===40?41:x,f):t(x)}function f(x){return x===l?(n.enter(u),n.consume(x),n.exit(u),n.exit(e),r):(n.enter(i),c(x))}function c(x){return x===l?(n.exit(i),f(l)):x===null?t(x):C(x)?(n.enter("lineEnding"),n.consume(x),n.exit("lineEnding"),O(n,c,"linePrefix")):(n.enter("chunkString",{contentType:"string"}),p(x))}function p(x){return x===l||x===null||C(x)?(n.exit("chunkString"),c(x)):(n.consume(x),x===92?m:p)}function m(x){return x===l||x===92?(n.consume(x),p):p(x)}}function bn(n,r){let t;return e;function e(u){return C(u)?(n.enter("lineEnding"),n.consume(u),n.exit("lineEnding"),t=!0,e):z(u)?O(n,e,t?"linePrefix":"lineSuffix")(u):r(u)}}function xn(n){return n.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ke={name:"definition",tokenize:ye},be={tokenize:de,partial:!0};function ye(n,r,t){const e=this;let u;return i;function i(h){return n.enter("definition"),l(h)}function l(h){return ot.call(e,n,a,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function a(h){return u=xn(e.sliceSerialize(e.events[e.events.length-1][1]).slice(1,-1)),h===58?(n.enter("definitionMarker"),n.consume(h),n.exit("definitionMarker"),f):t(h)}function f(h){return v(h)?bn(n,c)(h):c(h)}function c(h){return at(n,p,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function p(h){return n.attempt(be,m,m)(h)}function m(h){return z(h)?O(n,x,"whitespace")(h):x(h)}function x(h){return h===null||C(h)?(n.exit("definition"),e.parser.defined.push(u),r(h)):t(h)}}function de(n,r,t){return e;function e(a){return v(a)?bn(n,u)(a):t(a)}function u(a){return st(n,i,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function i(a){return z(a)?O(n,l,"whitespace")(a):l(a)}function l(a){return a===null||C(a)?r(a):t(a)}}const Se={name:"hardBreakEscape",tokenize:Fe};function Fe(n,r,t){return e;function e(i){return n.enter("hardBreakEscape"),n.consume(i),u}function u(i){return C(i)?(n.exit("hardBreakEscape"),r(i)):t(i)}}const Ee={name:"headingAtx",tokenize:we,resolve:Ce};function Ce(n,r){let t=n.length-2,e=3,u,i;return n[e][1].type==="whitespace"&&(e+=2),t-2>e&&n[t][1].type==="whitespace"&&(t-=2),n[t][1].type==="atxHeadingSequence"&&(e===t-1||t-4>e&&n[t-2][1].type==="whitespace")&&(t-=e+1===t?2:4),t>e&&(u={type:"atxHeadingText",start:n[e][1].start,end:n[t][1].end},i={type:"chunkText",start:n[e][1].start,end:n[t][1].end,contentType:"text"},tn(n,e,t-e+1,[["enter",u,r],["enter",i,r],["exit",i,r],["exit",u,r]])),n}function we(n,r,t){let e=0;return u;function u(p){return n.enter("atxHeading"),i(p)}function i(p){return n.enter("atxHeadingSequence"),l(p)}function l(p){return p===35&&e++<6?(n.consume(p),l):p===null||v(p)?(n.exit("atxHeadingSequence"),a(p)):t(p)}function a(p){return p===35?(n.enter("atxHeadingSequence"),f(p)):p===null||C(p)?(n.exit("atxHeading"),r(p)):z(p)?O(n,a,"whitespace")(p):(n.enter("atxHeadingText"),c(p))}function f(p){return p===35?(n.consume(p),f):(n.exit("atxHeadingSequence"),a(p))}function c(p){return p===null||p===35||v(p)?(n.exit("atxHeadingText"),a(p)):(n.consume(p),c)}}const Ae=["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","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Gn=["pre","script","style","textarea"],ze={name:"htmlFlow",tokenize:Le,resolveTo:Be,concrete:!0},Ie={tokenize:De,partial:!0},Te={tokenize:Oe,partial:!0};function Be(n){let r=n.length;for(;r--&&!(n[r][0]==="enter"&&n[r][1].type==="htmlFlow"););return r>1&&n[r-2][1].type==="linePrefix"&&(n[r][1].start=n[r-2][1].start,n[r+1][1].start=n[r-2][1].start,n.splice(r-2,2)),n}function Le(n,r,t){const e=this;let u,i,l,a,f;return c;function c(s){return p(s)}function p(s){return n.enter("htmlFlow"),n.enter("htmlFlowData"),n.consume(s),m}function m(s){return s===33?(n.consume(s),x):s===47?(n.consume(s),i=!0,I):s===63?(n.consume(s),u=3,e.interrupt?r:o):nn(s)?(n.consume(s),l=String.fromCharCode(s),M):t(s)}function x(s){return s===45?(n.consume(s),u=2,h):s===91?(n.consume(s),u=5,a=0,A):nn(s)?(n.consume(s),u=4,e.interrupt?r:o):t(s)}function h(s){return s===45?(n.consume(s),e.interrupt?r:o):t(s)}function A(s){const J="CDATA[";return s===J.charCodeAt(a++)?(n.consume(s),a===J.length?e.interrupt?r:S:A):t(s)}function I(s){return nn(s)?(n.consume(s),l=String.fromCharCode(s),M):t(s)}function M(s){if(s===null||s===47||s===62||v(s)){const J=s===47,hn=l.toLowerCase();return!J&&!i&&Gn.includes(hn)?(u=1,e.interrupt?r(s):S(s)):Ae.includes(l.toLowerCase())?(u=6,J?(n.consume(s),y):e.interrupt?r(s):S(s)):(u=7,e.interrupt&&!e.parser.lazy[e.now().line]?t(s):i?j(s):F(s))}return s===45||X(s)?(n.consume(s),l+=String.fromCharCode(s),M):t(s)}function y(s){return s===62?(n.consume(s),e.interrupt?r:S):t(s)}function j(s){return z(s)?(n.consume(s),j):V(s)}function F(s){return s===47?(n.consume(s),V):s===58||s===95||nn(s)?(n.consume(s),D):z(s)?(n.consume(s),F):V(s)}function D(s){return s===45||s===46||s===58||s===95||X(s)?(n.consume(s),D):_(s)}function _(s){return s===61?(n.consume(s),k):z(s)?(n.consume(s),_):F(s)}function k(s){return s===null||s===60||s===61||s===62||s===96?t(s):s===34||s===39?(n.consume(s),f=s,T):z(s)?(n.consume(s),k):H(s)}function T(s){return s===f?(n.consume(s),f=null,N):s===null||C(s)?t(s):(n.consume(s),T)}function H(s){return s===null||s===34||s===39||s===47||s===60||s===61||s===62||s===96||v(s)?_(s):(n.consume(s),H)}function N(s){return s===47||s===62||z(s)?F(s):t(s)}function V(s){return s===62?(n.consume(s),d):t(s)}function d(s){return s===null||C(s)?S(s):z(s)?(n.consume(s),d):t(s)}function S(s){return s===45&&u===2?(n.consume(s),U):s===60&&u===1?(n.consume(s),W):s===62&&u===4?(n.consume(s),G):s===63&&u===3?(n.consume(s),o):s===93&&u===5?(n.consume(s),en):C(s)&&(u===6||u===7)?(n.exit("htmlFlowData"),n.check(Ie,rn,P)(s)):s===null||C(s)?(n.exit("htmlFlowData"),P(s)):(n.consume(s),S)}function P(s){return n.check(Te,R,rn)(s)}function R(s){return n.enter("lineEnding"),n.consume(s),n.exit("lineEnding"),w}function w(s){return s===null||C(s)?P(s):(n.enter("htmlFlowData"),S(s))}function U(s){return s===45?(n.consume(s),o):S(s)}function W(s){return s===47?(n.consume(s),l="",Y):S(s)}function Y(s){if(s===62){const J=l.toLowerCase();return Gn.includes(J)?(n.consume(s),G):S(s)}return nn(s)&&l.length<8?(n.consume(s),l+=String.fromCharCode(s),Y):S(s)}function en(s){return s===93?(n.consume(s),o):S(s)}function o(s){return s===62?(n.consume(s),G):s===45&&u===2?(n.consume(s),o):S(s)}function G(s){return s===null||C(s)?(n.exit("htmlFlowData"),rn(s)):(n.consume(s),G)}function rn(s){return n.exit("htmlFlow"),r(s)}}function Oe(n,r,t){const e=this;return u;function u(l){return C(l)?(n.enter("lineEnding"),n.consume(l),n.exit("lineEnding"),i):t(l)}function i(l){return e.parser.lazy[e.now().line]?t(l):r(l)}}function De(n,r,t){return e;function e(u){return n.enter("lineEnding"),n.consume(u),n.exit("lineEnding"),n.attempt(Sn,r,t)}}const Pe={name:"htmlText",tokenize:_e};function _e(n,r,t){const e=this;let u,i,l;return a;function a(o){return n.enter("htmlText"),n.enter("htmlTextData"),n.consume(o),f}function f(o){return o===33?(n.consume(o),c):o===47?(n.consume(o),_):o===63?(n.consume(o),F):nn(o)?(n.consume(o),H):t(o)}function c(o){return o===45?(n.consume(o),p):o===91?(n.consume(o),i=0,A):nn(o)?(n.consume(o),j):t(o)}function p(o){return o===45?(n.consume(o),h):t(o)}function m(o){return o===null?t(o):o===45?(n.consume(o),x):C(o)?(l=m,W(o)):(n.consume(o),m)}function x(o){return o===45?(n.consume(o),h):m(o)}function h(o){return o===62?U(o):o===45?x(o):m(o)}function A(o){const G="CDATA[";return o===G.charCodeAt(i++)?(n.consume(o),i===G.length?I:A):t(o)}function I(o){return o===null?t(o):o===93?(n.consume(o),M):C(o)?(l=I,W(o)):(n.consume(o),I)}function M(o){return o===93?(n.consume(o),y):I(o)}function y(o){return o===62?U(o):o===93?(n.consume(o),y):I(o)}function j(o){return o===null||o===62?U(o):C(o)?(l=j,W(o)):(n.consume(o),j)}function F(o){return o===null?t(o):o===63?(n.consume(o),D):C(o)?(l=F,W(o)):(n.consume(o),F)}function D(o){return o===62?U(o):F(o)}function _(o){return nn(o)?(n.consume(o),k):t(o)}function k(o){return o===45||X(o)?(n.consume(o),k):T(o)}function T(o){return C(o)?(l=T,W(o)):z(o)?(n.consume(o),T):U(o)}function H(o){return o===45||X(o)?(n.consume(o),H):o===47||o===62||v(o)?N(o):t(o)}function N(o){return o===47?(n.consume(o),U):o===58||o===95||nn(o)?(n.consume(o),V):C(o)?(l=N,W(o)):z(o)?(n.consume(o),N):U(o)}function V(o){return o===45||o===46||o===58||o===95||X(o)?(n.consume(o),V):d(o)}function d(o){return o===61?(n.consume(o),S):C(o)?(l=d,W(o)):z(o)?(n.consume(o),d):N(o)}function S(o){return o===null||o===60||o===61||o===62||o===96?t(o):o===34||o===39?(n.consume(o),u=o,P):C(o)?(l=S,W(o)):z(o)?(n.consume(o),S):(n.consume(o),R)}function P(o){return o===u?(n.consume(o),u=void 0,w):o===null?t(o):C(o)?(l=P,W(o)):(n.consume(o),P)}function R(o){return o===null||o===34||o===39||o===60||o===61||o===96?t(o):o===47||o===62||v(o)?N(o):(n.consume(o),R)}function w(o){return o===47||o===62||v(o)?N(o):t(o)}function U(o){return o===62?(n.consume(o),n.exit("htmlTextData"),n.exit("htmlText"),r):t(o)}function W(o){return n.exit("htmlTextData"),n.enter("lineEnding"),n.consume(o),n.exit("lineEnding"),Y}function Y(o){return z(o)?O(n,en,"linePrefix",e.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):en(o)}function en(o){return n.enter("htmlTextData"),l(o)}}const Dn={name:"labelEnd",tokenize:Ne,resolveTo:He,resolveAll:qe},Me={tokenize:Ve},je={tokenize:We},Re={tokenize:Qe};function qe(n){let r=-1;for(;++r<n.length;){const t=n[r][1];(t.type==="labelImage"||t.type==="labelLink"||t.type==="labelEnd")&&(n.splice(r+1,t.type==="labelImage"?4:2),t.type="data",r++)}return n}function He(n,r){let t=n.length,e=0,u,i,l,a;for(;t--;)if(u=n[t][1],i){if(u.type==="link"||u.type==="labelLink"&&u._inactive)break;n[t][0]==="enter"&&u.type==="labelLink"&&(u._inactive=!0)}else if(l){if(n[t][0]==="enter"&&(u.type==="labelImage"||u.type==="labelLink")&&!u._balanced&&(i=t,u.type!=="labelLink")){e=2;break}}else u.type==="labelEnd"&&(l=t);const f={type:n[i][1].type==="labelLink"?"link":"image",start:Object.assign({},n[i][1].start),end:Object.assign({},n[n.length-1][1].end)},c={type:"label",start:Object.assign({},n[i][1].start),end:Object.assign({},n[l][1].end)},p={type:"labelText",start:Object.assign({},n[i+e+2][1].end),end:Object.assign({},n[l-2][1].start)};return a=[["enter",f,r],["enter",c,r]],a=Z(a,n.slice(i+1,i+e+3)),a=Z(a,[["enter",p,r]]),a=Z(a,Ln(r.parser.constructs.insideSpan.null,n.slice(i+e+4,l-3),r)),a=Z(a,[["exit",p,r],n[l-2],n[l-1],["exit",c,r]]),a=Z(a,n.slice(l+1)),a=Z(a,[["exit",f,r]]),tn(n,i,n.length,a),n}function Ne(n,r,t){const e=this;let u=e.events.length,i,l;for(;u--;)if((e.events[u][1].type==="labelImage"||e.events[u][1].type==="labelLink")&&!e.events[u][1]._balanced){i=e.events[u][1];break}return a;function a(x){return i?i._inactive?m(x):(l=e.parser.defined.includes(xn(e.sliceSerialize({start:i.end,end:e.now()}))),n.enter("labelEnd"),n.enter("labelMarker"),n.consume(x),n.exit("labelMarker"),n.exit("labelEnd"),f):t(x)}function f(x){return x===40?n.attempt(Me,p,l?p:m)(x):x===91?n.attempt(je,p,l?c:m)(x):l?p(x):m(x)}function c(x){return n.attempt(Re,p,m)(x)}function p(x){return r(x)}function m(x){return i._balanced=!0,t(x)}}function Ve(n,r,t){return e;function e(m){return n.enter("resource"),n.enter("resourceMarker"),n.consume(m),n.exit("resourceMarker"),u}function u(m){return v(m)?bn(n,i)(m):i(m)}function i(m){return m===41?p(m):at(n,l,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(m)}function l(m){return v(m)?bn(n,f)(m):p(m)}function a(m){return t(m)}function f(m){return m===34||m===39||m===40?st(n,c,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(m):p(m)}function c(m){return v(m)?bn(n,p)(m):p(m)}function p(m){return m===41?(n.enter("resourceMarker"),n.consume(m),n.exit("resourceMarker"),n.exit("resource"),r):t(m)}}function We(n,r,t){const e=this;return u;function u(a){return ot.call(e,n,i,l,"reference","referenceMarker","referenceString")(a)}function i(a){return e.parser.defined.includes(xn(e.sliceSerialize(e.events[e.events.length-1][1]).slice(1,-1)))?r(a):t(a)}function l(a){return t(a)}}function Qe(n,r,t){return e;function e(i){return n.enter("reference"),n.enter("referenceMarker"),n.consume(i),n.exit("referenceMarker"),u}function u(i){return i===93?(n.enter("referenceMarker"),n.consume(i),n.exit("referenceMarker"),n.exit("reference"),r):t(i)}}const Ue={name:"labelStartImage",tokenize:$e,resolveAll:Dn.resolveAll};function $e(n,r,t){const e=this;return u;function u(a){return n.enter("labelImage"),n.enter("labelImageMarker"),n.consume(a),n.exit("labelImageMarker"),i}function i(a){return a===91?(n.enter("labelMarker"),n.consume(a),n.exit("labelMarker"),n.exit("labelImage"),l):t(a)}function l(a){return a===94&&"_hiddenFootnoteSupport"in e.parser.constructs?t(a):r(a)}}const ve={name:"labelStartLink",tokenize:Ze,resolveAll:Dn.resolveAll};function Ze(n,r,t){const e=this;return u;function u(l){return n.enter("labelLink"),n.enter("labelMarker"),n.consume(l),n.exit("labelMarker"),n.exit("labelLink"),i}function i(l){return l===94&&"_hiddenFootnoteSupport"in e.parser.constructs?t(l):r(l)}}const wn={name:"lineEnding",tokenize:Ye};function Ye(n,r){return t;function t(e){return n.enter("lineEnding"),n.consume(e),n.exit("lineEnding"),O(n,r,"linePrefix")}}const yn={name:"thematicBreak",tokenize:Ge};function Ge(n,r,t){let e=0,u;return i;function i(c){return n.enter("thematicBreak"),l(c)}function l(c){return u=c,a(c)}function a(c){return c===u?(n.enter("thematicBreakSequence"),f(c)):e>=3&&(c===null||C(c))?(n.exit("thematicBreak"),r(c)):t(c)}function f(c){return c===u?(n.consume(c),e++,f):(n.exit("thematicBreakSequence"),z(c)?O(n,a,"whitespace")(c):a(c))}}const $={name:"list",tokenize:Xe,continuation:{tokenize:nr},exit:er},Je={tokenize:rr,partial:!0},Ke={tokenize:tr,partial:!0};function Xe(n,r,t){const e=this,u=e.events[e.events.length-1];let i=u&&u[1].type==="linePrefix"?u[2].sliceSerialize(u[1],!0).length:0,l=0;return a;function a(h){const A=e.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(A==="listUnordered"?!e.containerState.marker||h===e.containerState.marker:zn(h)){if(e.containerState.type||(e.containerState.type=A,n.enter(A,{_container:!0})),A==="listUnordered")return n.enter("listItemPrefix"),h===42||h===45?n.check(yn,t,c)(h):c(h);if(!e.interrupt||h===49)return n.enter("listItemPrefix"),n.enter("listItemValue"),f(h)}return t(h)}function f(h){return zn(h)&&++l<10?(n.consume(h),f):(!e.interrupt||l<2)&&(e.containerState.marker?h===e.containerState.marker:h===41||h===46)?(n.exit("listItemValue"),c(h)):t(h)}function c(h){return n.enter("listItemMarker"),n.consume(h),n.exit("listItemMarker"),e.containerState.marker=e.containerState.marker||h,n.check(Sn,e.interrupt?t:p,n.attempt(Je,x,m))}function p(h){return e.containerState.initialBlankLine=!0,i++,x(h)}function m(h){return z(h)?(n.enter("listItemPrefixWhitespace"),n.consume(h),n.exit("listItemPrefixWhitespace"),x):t(h)}function x(h){return e.containerState.size=i+e.sliceSerialize(n.exit("listItemPrefix"),!0).length,r(h)}}function nr(n,r,t){const e=this;return e.containerState._closeFlow=void 0,n.check(Sn,u,i);function u(a){return e.containerState.furtherBlankLines=e.containerState.furtherBlankLines||e.containerState.initialBlankLine,O(n,r,"listItemIndent",e.containerState.size+1)(a)}function i(a){return e.containerState.furtherBlankLines||!z(a)?(e.containerState.furtherBlankLines=void 0,e.containerState.initialBlankLine=void 0,l(a)):(e.containerState.furtherBlankLines=void 0,e.containerState.initialBlankLine=void 0,n.attempt(Ke,r,l)(a))}function l(a){return e.containerState._closeFlow=!0,e.interrupt=void 0,O(n,n.attempt($,r,t),"linePrefix",e.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function tr(n,r,t){const e=this;return O(n,u,"listItemIndent",e.containerState.size+1);function u(i){const l=e.events[e.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===e.containerState.size?r(i):t(i)}}function er(n){n.exit(this.containerState.type)}function rr(n,r,t){const e=this;return O(n,u,"listItemPrefixWhitespace",e.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function u(i){const l=e.events[e.events.length-1];return!z(i)&&l&&l[1].type==="listItemPrefixWhitespace"?r(i):t(i)}}const Jn={name:"setextUnderline",tokenize:ur,resolveTo:ir};function ir(n,r){let t=n.length,e,u,i;for(;t--;)if(n[t][0]==="enter"){if(n[t][1].type==="content"){e=t;break}n[t][1].type==="paragraph"&&(u=t)}else n[t][1].type==="content"&&n.splice(t,1),!i&&n[t][1].type==="definition"&&(i=t);const l={type:"setextHeading",start:Object.assign({},n[u][1].start),end:Object.assign({},n[n.length-1][1].end)};return n[u][1].type="setextHeadingText",i?(n.splice(u,0,["enter",l,r]),n.splice(i+1,0,["exit",n[e][1],r]),n[e][1].end=Object.assign({},n[i][1].end)):n[e][1]=l,n.push(["exit",l,r]),n}function ur(n,r,t){const e=this;let u;return i;function i(c){let p=e.events.length,m;for(;p--;)if(e.events[p][1].type!=="lineEnding"&&e.events[p][1].type!=="linePrefix"&&e.events[p][1].type!=="content"){m=e.events[p][1].type==="paragraph";break}return!e.parser.lazy[e.now().line]&&(e.interrupt||m)?(n.enter("setextHeadingLine"),u=c,l(c)):t(c)}function l(c){return n.enter("setextHeadingLineSequence"),a(c)}function a(c){return c===u?(n.consume(c),a):(n.exit("setextHeadingLineSequence"),z(c)?O(n,f,"lineSuffix")(c):f(c))}function f(c){return c===null||C(c)?(n.exit("setextHeadingLine"),r(c)):t(c)}}const lr={tokenize:ar};function ar(n){const r=this,t=n.attempt(Sn,e,n.attempt(this.parser.constructs.flowInitial,u,O(n,n.attempt(this.parser.constructs.flow,u,n.attempt(pe,u)),"linePrefix")));return t;function e(i){if(i===null){n.consume(i);return}return n.enter("lineEndingBlank"),n.consume(i),n.exit("lineEndingBlank"),r.currentConstruct=void 0,t}function u(i){if(i===null){n.consume(i);return}return n.enter("lineEnding"),n.consume(i),n.exit("lineEnding"),r.currentConstruct=void 0,t}}const or={resolveAll:ht()},sr=ct("string"),cr=ct("text");function ct(n){return{tokenize:r,resolveAll:ht(n==="text"?hr:void 0)};function r(t){const e=this,u=this.parser.constructs[n],i=t.attempt(u,l,a);return l;function l(p){return c(p)?i(p):a(p)}function a(p){if(p===null){t.consume(p);return}return t.enter("data"),t.consume(p),f}function f(p){return c(p)?(t.exit("data"),i(p)):(t.consume(p),f)}function c(p){if(p===null)return!0;const m=u[p];let x=-1;if(m)for(;++x<m.length;){const h=m[x];if(!h.previous||h.previous.call(e,e.previous))return!0}return!1}}}function ht(n){return r;function r(t,e){let u=-1,i;for(;++u<=t.length;)i===void 0?t[u]&&t[u][1].type==="data"&&(i=u,u++):(!t[u]||t[u][1].type!=="data")&&(u!==i+2&&(t[i][1].end=t[u-1][1].end,t.splice(i+2,u-i-2),u=i+2),i=void 0);return n?n(t,e):t}}function hr(n,r){let t=0;for(;++t<=n.length;)if((t===n.length||n[t][1].type==="lineEnding")&&n[t-1][1].type==="data"){const e=n[t-1][1],u=r.sliceStream(e);let i=u.length,l=-1,a=0,f;for(;i--;){const c=u[i];if(typeof c=="string"){for(l=c.length;c.charCodeAt(l-1)===32;)a++,l--;if(l)break;l=-1}else if(c===-2)f=!0,a++;else if(c!==-1){i++;break}}if(a){const c={type:t===n.length||f||a<2?"lineSuffix":"hardBreakTrailing",start:{line:e.end.line,column:e.end.column-a,offset:e.end.offset-a,_index:e.start._index+i,_bufferIndex:i?l:e.start._bufferIndex+l},end:Object.assign({},e.end)};e.end=Object.assign({},c.start),e.start.offset===e.end.offset?Object.assign(e,c):(n.splice(t,0,["enter",c,r],["exit",c,r]),t+=2)}t++}return n}function pr(n,r,t){let e=Object.assign(t?Object.assign({},t):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const u={},i=[];let l=[],a=[];const f={consume:j,enter:F,exit:D,attempt:T(_),check:T(k),interrupt:T(k,{interrupt:!0})},c={previous:null,code:null,containerState:{},events:[],parser:n,sliceStream:h,sliceSerialize:x,now:A,defineSkip:I,write:m};let p=r.tokenize.call(c,f);return r.resolveAll&&i.push(r),c;function m(d){return l=Z(l,d),M(),l[l.length-1]!==null?[]:(H(r,0),c.events=Ln(i,c.events,c),c.events)}function x(d,S){return fr(h(d),S)}function h(d){return mr(l,d)}function A(){const{line:d,column:S,offset:P,_index:R,_bufferIndex:w}=e;return{line:d,column:S,offset:P,_index:R,_bufferIndex:w}}function I(d){u[d.line]=d.column,V()}function M(){let d;for(;e._index<l.length;){const S=l[e._index];if(typeof S=="string")for(d=e._index,e._bufferIndex<0&&(e._bufferIndex=0);e._index===d&&e._bufferIndex<S.length;)y(S.charCodeAt(e._bufferIndex));else y(S)}}function y(d){p=p(d)}function j(d){C(d)?(e.line++,e.column=1,e.offset+=d===-3?2:1,V()):d!==-1&&(e.column++,e.offset++),e._bufferIndex<0?e._index++:(e._bufferIndex++,e._bufferIndex===l[e._index].length&&(e._bufferIndex=-1,e._index++)),c.previous=d}function F(d,S){const P=S||{};return P.type=d,P.start=A(),c.events.push(["enter",P,c]),a.push(P),P}function D(d){const S=a.pop();return S.end=A(),c.events.push(["exit",S,c]),S}function _(d,S){H(d,S.from)}function k(d,S){S.restore()}function T(d,S){return P;function P(R,w,U){let W,Y,en,o;return Array.isArray(R)?rn(R):"tokenize"in R?rn([R]):G(R);function G(Q){return pn;function pn(an){const mn=an!==null&&Q[an],fn=an!==null&&Q.null,Fn=[...Array.isArray(mn)?mn:mn?[mn]:[],...Array.isArray(fn)?fn:fn?[fn]:[]];return rn(Fn)(an)}}function rn(Q){return W=Q,Y=0,Q.length===0?U:s(Q[Y])}function s(Q){return pn;function pn(an){return o=N(),en=Q,Q.partial||(c.currentConstruct=Q),Q.name&&c.parser.constructs.disable.null.includes(Q.name)?hn():Q.tokenize.call(S?Object.assign(Object.create(c),S):c,f,J,hn)(an)}}function J(Q){return d(en,o),w}function hn(Q){return o.restore(),++Y<W.length?s(W[Y]):U}}}function H(d,S){d.resolveAll&&!i.includes(d)&&i.push(d),d.resolve&&tn(c.events,S,c.events.length-S,d.resolve(c.events.slice(S),c)),d.resolveTo&&(c.events=d.resolveTo(c.events,c))}function N(){const d=A(),S=c.previous,P=c.currentConstruct,R=c.events.length,w=Array.from(a);return{restore:U,from:R};function U(){e=d,c.previous=S,c.currentConstruct=P,c.events.length=R,a=w,V()}}function V(){e.line in u&&e.column<2&&(e.column=u[e.line],e.offset+=u[e.line]-1)}}function mr(n,r){const t=r.start._index,e=r.start._bufferIndex,u=r.end._index,i=r.end._bufferIndex;let l;if(t===u)l=[n[t].slice(e,i)];else{if(l=n.slice(t,u),e>-1){const a=l[0];typeof a=="string"?l[0]=a.slice(e):l.shift()}i>0&&l.push(n[u].slice(0,i))}return l}function fr(n,r){let t=-1;const e=[];let u;for(;++t<n.length;){const i=n[t];let l;if(typeof i=="string")l=i;else switch(i){case-5:{l="\r";break}case-4:{l=`
`;break}case-3:{l=`\r
`;break}case-2:{l=r?" ":" ";break}case-1:{if(!r&&u)continue;l=" ";break}default:l=String.fromCharCode(i)}u=i===-2,e.push(l)}return e.join("")}const xr={42:$,43:$,45:$,48:$,49:$,50:$,51:$,52:$,53:$,54:$,55:$,56:$,57:$,62:rt},gr={91:ke},kr={[-2]:Cn,[-1]:Cn,32:Cn},br={35:Ee,42:yn,45:[Jn,yn],60:ze,61:Jn,95:yn,96:Yn,126:Yn},yr={38:ut,92:it},dr={[-5]:wn,[-4]:wn,[-3]:wn,33:Ue,38:ut,42:In,60:[Zt,Pe],91:ve,92:[Se,it],93:Dn,95:In,96:ae},Sr={null:[In,or]},Fr={null:[42,95]},Er={null:[]},Cr=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Fr,contentInitial:gr,disable:Er,document:xr,flow:br,flowInitial:kr,insideSpan:Sr,string:yr,text:dr},Symbol.toStringTag,{value:"Module"}));function wr(n){const t=Ot([Cr,...(n||{}).extensions||[]]),e={defined:[],lazy:{},constructs:t,content:u(Nt),document:u(Wt),flow:u(lr),string:u(sr),text:u(cr)};return e;function u(i){return l;function l(a){return pr(e,i,a)}}}const Kn=/[\0\t\n\r]/g;function Ar(){let n=1,r="",t=!0,e;return u;function u(i,l,a){const f=[];let c,p,m,x,h;for(i=r+i.toString(l),m=0,r="",t&&(i.charCodeAt(0)===65279&&m++,t=void 0);m<i.length;){if(Kn.lastIndex=m,c=Kn.exec(i),x=c&&c.index!==void 0?c.index:i.length,h=i.charCodeAt(x),!c){r=i.slice(m);break}if(h===10&&m===x&&e)f.push(-3),e=void 0;else switch(e&&(f.push(-5),e=void 0),m<x&&(f.push(i.slice(m,x)),n+=x-m),h){case 0:{f.push(65533),n++;break}case 9:{for(p=Math.ceil(n/4)*4,f.push(-2);n++<p;)f.push(-1);break}case 10:{f.push(-4),n=1;break}default:e=!0,n=1}m=x+1}return a&&(e&&f.push(-5),r&&f.push(r),f.push(null)),f}}function zr(n){for(;!lt(n););return n}function pt(n,r){const t=Number.parseInt(n,r);return t<9||t===11||t>13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"�":String.fromCharCode(t)}const Ir=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Tr(n){return n.replace(Ir,Br)}function Br(n,r,t){if(r)return r;if(t.charCodeAt(0)===35){const u=t.charCodeAt(1),i=u===120||u===88;return pt(t.slice(i?2:1),i?16:10)}return On(t)||n}function dn(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?Xn(n.position):"start"in n||"end"in n?Xn(n):"line"in n||"column"in n?Tn(n):""}function Tn(n){return nt(n&&n.line)+":"+nt(n&&n.column)}function Xn(n){return Tn(n&&n.start)+"-"+Tn(n&&n.end)}function nt(n){return n&&typeof n=="number"?n:1}const mt={}.hasOwnProperty,ft=function(n,r,t){return typeof r!="string"&&(t=r,r=void 0),Lr(t)(zr(wr(t).document().write(Ar()(n,r,!0))))};function Lr(n){const r={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(Hn),autolinkProtocol:d,autolinkEmail:d,atxHeading:a(jn),blockQuote:a(Fn),characterEscape:d,characterReference:d,codeFenced:a(Mn),codeFencedFenceInfo:f,codeFencedFenceMeta:f,codeIndented:a(Mn,f),codeText:a(kt,f),codeTextData:d,data:d,codeFlowValue:d,definition:a(bt),definitionDestinationString:f,definitionLabelString:f,definitionTitleString:f,emphasis:a(yt),hardBreakEscape:a(Rn),hardBreakTrailing:a(Rn),htmlFlow:a(qn,f),htmlFlowData:d,htmlText:a(qn,f),htmlTextData:d,image:a(dt),label:f,link:a(Hn),listItem:a(St),listItemValue:A,listOrdered:a(Nn,h),listUnordered:a(Nn),paragraph:a(Ft),reference:hn,referenceString:f,resourceDestinationString:f,resourceTitleString:f,setextHeading:a(jn),strong:a(Et),thematicBreak:a(wt)},exit:{atxHeading:p(),atxHeadingSequence:T,autolink:p(),autolinkEmail:fn,autolinkProtocol:mn,blockQuote:p(),characterEscapeValue:S,characterReferenceMarkerHexadecimal:pn,characterReferenceMarkerNumeric:pn,characterReferenceValue:an,codeFenced:p(j),codeFencedFence:y,codeFencedFenceInfo:I,codeFencedFenceMeta:M,codeFlowValue:S,codeIndented:p(F),codeText:p(W),codeTextData:S,data:S,definition:p(),definitionDestinationString:k,definitionLabelString:D,definitionTitleString:_,emphasis:p(),hardBreakEscape:p(R),hardBreakTrailing:p(R),htmlFlow:p(w),htmlFlowData:S,htmlText:p(U),htmlTextData:S,image:p(en),label:G,labelText:o,lineEnding:P,link:p(Y),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:Q,resourceDestinationString:rn,resourceTitleString:s,resource:J,setextHeading:p(V),setextHeadingLineSequence:N,setextHeadingText:H,strong:p(),thematicBreak:p()}};xt(r,(n||{}).mdastExtensions||[]);const t={};return e;function e(g){let b={type:"root",children:[]};const E={stack:[b],tokenStack:[],config:r,enter:c,exit:m,buffer:f,resume:x,setData:i,getData:l},B=[];let L=-1;for(;++L<g.length;)if(g[L][1].type==="listOrdered"||g[L][1].type==="listUnordered")if(g[L][0]==="enter")B.push(L);else{const K=B.pop();L=u(g,K,L)}for(L=-1;++L<g.length;){const K=r[g[L][0]];mt.call(K,g[L][1].type)&&K[g[L][1].type].call(Object.assign({sliceSerialize:g[L][2].sliceSerialize},E),g[L][1])}if(E.tokenStack.length>0){const K=E.tokenStack[E.tokenStack.length-1];(K[1]||tt).call(E,void 0,K[0])}for(b.position={start:sn(g.length>0?g[0][1].start:{line:1,column:1,offset:0}),end:sn(g.length>0?g[g.length-2][1].end:{line:1,column:1,offset:0})},L=-1;++L<r.transforms.length;)b=r.transforms[L](b)||b;return b}function u(g,b,E){let B=b-1,L=-1,K=!1,on,un,gn,kn;for(;++B<=E;){const q=g[B];if(q[1].type==="listUnordered"||q[1].type==="listOrdered"||q[1].type==="blockQuote"?(q[0]==="enter"?L++:L--,kn=void 0):q[1].type==="lineEndingBlank"?q[0]==="enter"&&(on&&!kn&&!L&&!gn&&(gn=B),kn=void 0):q[1].type==="linePrefix"||q[1].type==="listItemValue"||q[1].type==="listItemMarker"||q[1].type==="listItemPrefix"||q[1].type==="listItemPrefixWhitespace"||(kn=void 0),!L&&q[0]==="enter"&&q[1].type==="listItemPrefix"||L===-1&&q[0]==="exit"&&(q[1].type==="listUnordered"||q[1].type==="listOrdered")){if(on){let En=B;for(un=void 0;En--;){const ln=g[En];if(ln[1].type==="lineEnding"||ln[1].type==="lineEndingBlank"){if(ln[0]==="exit")continue;un&&(g[un][1].type="lineEndingBlank",K=!0),ln[1].type="lineEnding",un=En}else if(!(ln[1].type==="linePrefix"||ln[1].type==="blockQuotePrefix"||ln[1].type==="blockQuotePrefixWhitespace"||ln[1].type==="blockQuoteMarker"||ln[1].type==="listItemIndent"))break}gn&&(!un||gn<un)&&(on._spread=!0),on.end=Object.assign({},un?g[un][1].start:q[1].end),g.splice(un||B,0,["exit",on,q[2]]),B++,E++}q[1].type==="listItemPrefix"&&(on={type:"listItem",_spread:!1,start:Object.assign({},q[1].start),end:void 0},g.splice(B,0,["enter",on,q[2]]),B++,E++,gn=void 0,kn=!0)}}return g[b][1]._spread=K,E}function i(g,b){t[g]=b}function l(g){return t[g]}function a(g,b){return E;function E(B){c.call(this,g(B),B),b&&b.call(this,B)}}function f(){this.stack.push({type:"fragment",children:[]})}function c(g,b,E){return this.stack[this.stack.length-1].children.push(g),this.stack.push(g),this.tokenStack.push([b,E]),g.position={start:sn(b.start)},g}function p(g){return b;function b(E){g&&g.call(this,E),m.call(this,E)}}function m(g,b){const E=this.stack.pop(),B=this.tokenStack.pop();if(B)B[0].type!==g.type&&(b?b.call(this,g,B[0]):(B[1]||tt).call(this,g,B[0]));else throw new Error("Cannot close `"+g.type+"` ("+dn({start:g.start,end:g.end})+"): it’s not open");return E.position.end=sn(g.end),E}function x(){return Bt(this.stack.pop())}function h(){i("expectingFirstListItemValue",!0)}function A(g){if(l("expectingFirstListItemValue")){const b=this.stack[this.stack.length-2];b.start=Number.parseInt(this.sliceSerialize(g),10),i("expectingFirstListItemValue")}}function I(){const g=this.resume(),b=this.stack[this.stack.length-1];b.lang=g}function M(){const g=this.resume(),b=this.stack[this.stack.length-1];b.meta=g}function y(){l("flowCodeInside")||(this.buffer(),i("flowCodeInside",!0))}function j(){const g=this.resume(),b=this.stack[this.stack.length-1];b.value=g.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),i("flowCodeInside")}function F(){const g=this.resume(),b=this.stack[this.stack.length-1];b.value=g.replace(/(\r?\n|\r)$/g,"")}function D(g){const b=this.resume(),E=this.stack[this.stack.length-1];E.label=b,E.identifier=xn(this.sliceSerialize(g)).toLowerCase()}function _(){const g=this.resume(),b=this.stack[this.stack.length-1];b.title=g}function k(){const g=this.resume(),b=this.stack[this.stack.length-1];b.url=g}function T(g){const b=this.stack[this.stack.length-1];if(!b.depth){const E=this.sliceSerialize(g).length;b.depth=E}}function H(){i("setextHeadingSlurpLineEnding",!0)}function N(g){const b=this.stack[this.stack.length-1];b.depth=this.sliceSerialize(g).charCodeAt(0)===61?1:2}function V(){i("setextHeadingSlurpLineEnding")}function d(g){const b=this.stack[this.stack.length-1];let E=b.children[b.children.length-1];(!E||E.type!=="text")&&(E=Ct(),E.position={start:sn(g.start)},b.children.push(E)),this.stack.push(E)}function S(g){const b=this.stack.pop();b.value+=this.sliceSerialize(g),b.position.end=sn(g.end)}function P(g){const b=this.stack[this.stack.length-1];if(l("atHardBreak")){const E=b.children[b.children.length-1];E.position.end=sn(g.end),i("atHardBreak");return}!l("setextHeadingSlurpLineEnding")&&r.canContainEols.includes(b.type)&&(d.call(this,g),S.call(this,g))}function R(){i("atHardBreak",!0)}function w(){const g=this.resume(),b=this.stack[this.stack.length-1];b.value=g}function U(){const g=this.resume(),b=this.stack[this.stack.length-1];b.value=g}function W(){const g=this.resume(),b=this.stack[this.stack.length-1];b.value=g}function Y(){const g=this.stack[this.stack.length-1];if(l("inReference")){const b=l("referenceType")||"shortcut";g.type+="Reference",g.referenceType=b,delete g.url,delete g.title}else delete g.identifier,delete g.label;i("referenceType")}function en(){const g=this.stack[this.stack.length-1];if(l("inReference")){const b=l("referenceType")||"shortcut";g.type+="Reference",g.referenceType=b,delete g.url,delete g.title}else delete g.identifier,delete g.label;i("referenceType")}function o(g){const b=this.sliceSerialize(g),E=this.stack[this.stack.length-2];E.label=Tr(b),E.identifier=xn(b).toLowerCase()}function G(){const g=this.stack[this.stack.length-1],b=this.resume(),E=this.stack[this.stack.length-1];if(i("inReference",!0),E.type==="link"){const B=g.children;E.children=B}else E.alt=b}function rn(){const g=this.resume(),b=this.stack[this.stack.length-1];b.url=g}function s(){const g=this.resume(),b=this.stack[this.stack.length-1];b.title=g}function J(){i("inReference")}function hn(){i("referenceType","collapsed")}function Q(g){const b=this.resume(),E=this.stack[this.stack.length-1];E.label=b,E.identifier=xn(this.sliceSerialize(g)).toLowerCase(),i("referenceType","full")}function pn(g){i("characterReferenceType",g.type)}function an(g){const b=this.sliceSerialize(g),E=l("characterReferenceType");let B;E?(B=pt(b,E==="characterReferenceMarkerNumeric"?10:16),i("characterReferenceType")):B=On(b);const L=this.stack.pop();L.value+=B,L.position.end=sn(g.end)}function mn(g){S.call(this,g);const b=this.stack[this.stack.length-1];b.url=this.sliceSerialize(g)}function fn(g){S.call(this,g);const b=this.stack[this.stack.length-1];b.url="mailto:"+this.sliceSerialize(g)}function Fn(){return{type:"blockquote",children:[]}}function Mn(){return{type:"code",lang:null,meta:null,value:""}}function kt(){return{type:"inlineCode",value:""}}function bt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function yt(){return{type:"emphasis",children:[]}}function jn(){return{type:"heading",depth:void 0,children:[]}}function Rn(){return{type:"break"}}function qn(){return{type:"html",value:""}}function dt(){return{type:"image",title:null,url:"",alt:null}}function Hn(){return{type:"link",title:null,url:"",children:[]}}function Nn(g){return{type:"list",ordered:g.type==="listOrdered",start:null,spread:g._spread,children:[]}}function St(g){return{type:"listItem",spread:g._spread,checked:null,children:[]}}function Ft(){return{type:"paragraph",children:[]}}function Et(){return{type:"strong",children:[]}}function Ct(){return{type:"text",value:""}}function wt(){return{type:"thematicBreak"}}}function sn(n){return{line:n.line,column:n.column,offset:n.offset}}function xt(n,r){let t=-1;for(;++t<r.length;){const e=r[t];Array.isArray(e)?xt(n,e):Or(n,e)}}function Or(n,r){let t;for(t in r)if(mt.call(r,t)){if(t==="canContainEols"){const e=r[t];e&&n[t].push(...e)}else if(t==="transforms"){const e=r[t];e&&n[t].push(...e)}else if(t==="enter"||t==="exit"){const e=r[t];e&&Object.assign(n[t],e)}}}function tt(n,r){throw n?new Error("Cannot close `"+n.type+"` ("+dn({start:n.start,end:n.end})+"): a different token (`"+r.type+"`, "+dn({start:r.start,end:r.end})+") is open"):new Error("Cannot close document, a token (`"+r.type+"`, "+dn({start:r.start,end:r.end})+") is still open")}function Dr(n){const r=n.replace(/\n{2,}/g,`
`);return It(r)}function Pr(n){const r=Dr(n),{children:t}=ft(r),e=[[]];let u=0;function i(l,a="normal"){l.type==="text"?l.value.split(`
`).forEach((c,p)=>{p!==0&&(u++,e.push([])),c.split(" ").forEach(m=>{m&&e[u].push({content:m,type:a})})}):(l.type==="strong"||l.type==="emphasis")&&l.children.forEach(f=>{i(f,l.type)})}return t.forEach(l=>{l.type==="paragraph"&&l.children.forEach(a=>{i(a)})}),e}function _r(n){const{children:r}=ft(n);function t(e){return e.type==="text"?e.value.replace(/\n/g,"<br/>"):e.type==="strong"?`<strong>${e.children.map(t).join("")}</strong>`:e.type==="emphasis"?`<em>${e.children.map(t).join("")}</em>`:e.type==="paragraph"?`<p>${e.children.map(t).join("")}</p>`:`Unsupported markdown: ${e.type}`}return r.map(t).join("")}function Mr(n){return Intl.Segmenter?[...new Intl.Segmenter().segment(n)].map(r=>r.segment):[...n]}function jr(n,r){const t=Mr(r.content);return gt(n,[],t,r.type)}function gt(n,r,t,e){if(t.length===0)return[{content:r.join(""),type:e},{content:"",type:e}];const[u,...i]=t,l=[...r,u];return n([{content:l.join(""),type:e}])?gt(n,l,i,e):(r.length===0&&u&&(r.push(u),t.shift()),[{content:r.join(""),type:e},{content:t.join(""),type:e}])}function Rr(n,r){if(n.some(({content:t})=>t.includes(`
`)))throw new Error("splitLineToFitWidth does not support newlines in the line");return Bn(n,r)}function Bn(n,r,t=[],e=[]){if(n.length===0)return e.length>0&&t.push(e),t.length>0?t:[];let u="";n[0].content===" "&&(u=" ",n.shift());const i=n.shift()??{content:" ",type:"normal"},l=[...e];if(u!==""&&l.push({content:u,type:"normal"}),l.push(i),r(l))return Bn(n,r,t,l);if(e.length>0)t.push(e),n.unshift(i);else if(i.content){const[a,f]=jr(r,i);t.push([a]),f.content&&n.unshift(f)}return Bn(n,r,t)}function qr(n,r){r&&n.attr("style",r)}function Hr(n,r,t,e,u=!1){const i=n.append("foreignObject"),l=i.append("xhtml:div"),a=r.label,f=r.isNode?"nodeLabel":"edgeLabel";l.html(`
<span class="${f} ${e}" `+(r.labelStyle?'style="'+r.labelStyle+'"':"")+">"+a+"</span>"),qr(l,r.labelStyle),l.style("display","table-cell"),l.style("white-space","nowrap"),l.style("max-width",t+"px"),l.attr("xmlns","http://www.w3.org/1999/xhtml"),u&&l.attr("class","labelBkg");let c=l.node().getBoundingClientRect();return c.width===t&&(l.style("display","table"),l.style("white-space","break-spaces"),l.style("width",t+"px"),c=l.node().getBoundingClientRect()),i.style("width",c.width),i.style("height",c.height),i.node()}function Pn(n,r,t){return n.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",r*t-.1+"em").attr("dy",t+"em")}function Nr(n,r,t){const e=n.append("text"),u=Pn(e,1,r);_n(u,t);const i=u.node().getComputedTextLength();return e.remove(),i}function Qr(n,r,t){var e;const u=n.append("text"),i=Pn(u,1,r);_n(i,[{content:t,type:"normal"}]);const l=(e=i.node())==null?void 0:e.getBoundingClientRect();return l&&u.remove(),l}function Vr(n,r,t,e=!1){const i=r.append("g"),l=i.insert("rect").attr("class","background"),a=i.append("text").attr("y","-10.1");let f=0;for(const c of t){const p=x=>Nr(i,1.1,x)<=n,m=p(c)?[c]:Rr(c,p);for(const x of m){const h=Pn(a,f,1.1);_n(h,x),f++}}if(e){const c=a.node().getBBox(),p=2;return l.attr("x",-p).attr("y",-p).attr("width",c.width+2*p).attr("height",c.height+2*p),i.node()}else return a.node()}function _n(n,r){n.text(""),r.forEach((t,e)=>{const u=n.append("tspan").attr("font-style",t.type==="emphasis"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",t.type==="strong"?"bold":"normal");e===0?u.text(t.content):u.text(" "+t.content)})}const Ur=(n,r="",{style:t="",isTitle:e=!1,classes:u="",useHtmlLabels:i=!0,isNode:l=!0,width:a=200,addSvgBackground:f=!1}={})=>{if(At.info("createText",r,t,e,u,i,l,f),i){const c=_r(r),p={isNode:l,label:zt(c).replace(/fa[blrs]?:fa-[\w-]+/g,x=>`<i class='${x.replace(":"," ")}'></i>`),labelStyle:t.replace("fill:","color:")};return Hr(n,p,a,u,f)}else{const c=Pr(r);return Vr(a,n,c,f)}};export{Qr as a,Ur as c};
import{j as r}from"./graph-af3d5df6-DtpoS02a.js";var e=4;function a(o){return r(o,e)}export{a as c};
import{p as M,d as _,s as R}from"./styles-d48462a7-Cp72T330.js";import{l as d,c,h as w,v as B,t as G,n as D,p as E,q as C,j as A}from"./slidev/5-BKiUV7YW.js";import{G as q}from"./graph-af3d5df6-DtpoS02a.js";import{r as z}from"./index-c8395ba2-BQkSvmSq.js";import"./modules/vue-Dn3czbSS.js";import"./index-D2S1x1Oe.js";import"./modules/shiki-CuMFyo6Z.js";import"./modules/file-saver-EUMWMpoS.js";import"./slidev/default-CY-sqYNf.js";import"./slidev/context-CYh2-pv1.js";import"./layout-6685625a-CnDdhUY9.js";import"./clone-d2e37f8c-CN-809h5.js";import"./edges-1e1ebc73-5f7nvF86.js";import"./createText-f6615236-y76jB5p3.js";import"./line-65d70945-BvyDbe4_.js";import"./array-b7dcf730-BKyUJesY.js";import"./path-39bad7e2-CbwjOpE9.js";const S=s=>A.sanitizeText(s,c());let k={dividerMargin:10,padding:5,textHeight:10,curve:void 0};const P=function(s,e,y,a){const t=Object.keys(s);d.info("keys:",t),d.info(s),t.forEach(function(i){var o,r;const l=s[i],p={shape:"rect",id:l.id,domId:l.domId,labelText:S(l.id),labelStyle:"",style:"fill: none; stroke: black",padding:((o=c().flowchart)==null?void 0:o.padding)??((r=c().class)==null?void 0:r.padding)};e.setNode(l.id,p),$(l.classes,e,y,a,l.id),d.info("setNode",p)})},$=function(s,e,y,a,t){const i=Object.keys(s);d.info("keys:",i),d.info(s),i.filter(o=>s[o].parent==t).forEach(function(o){var r,l;const n=s[o],p=n.cssClasses.join(" "),f=D(n.styles),m=n.label??n.id,u=0,b={labelStyle:f.labelStyle,shape:"class_box",labelText:S(m),classData:n,rx:u,ry:u,class:p,style:f.style,id:n.id,domId:n.domId,tooltip:a.db.getTooltip(n.id,t)||"",haveCallback:n.haveCallback,link:n.link,width:n.type==="group"?500:void 0,type:n.type,padding:((r=c().flowchart)==null?void 0:r.padding)??((l=c().class)==null?void 0:l.padding)};e.setNode(n.id,b),t&&e.setParent(n.id,t),d.info("setNode",b)})},F=function(s,e,y,a){d.info(s),s.forEach(function(t,i){var o,r;const l=t,n="",p={labelStyle:"",style:""},f=l.text,m=0,h={labelStyle:p.labelStyle,shape:"note",labelText:S(f),noteData:l,rx:m,ry:m,class:n,style:p.style,id:l.id,domId:l.id,tooltip:"",type:"note",padding:((o=c().flowchart)==null?void 0:o.padding)??((r=c().class)==null?void 0:r.padding)};if(e.setNode(l.id,h),d.info("setNode",h),!l.class||!(l.class in a))return;const b=y+i,x={id:`edgeNote${b}`,classes:"relation",pattern:"dotted",arrowhead:"none",startLabelRight:"",endLabelLeft:"",arrowTypeStart:"none",arrowTypeEnd:"none",style:"fill:none",labelStyle:"",curve:E(k.curve,C)};e.setEdge(l.id,l.class,x,b)})},H=function(s,e){const y=c().flowchart;let a=0;s.forEach(function(t){var i;a++;const o={classes:"relation",pattern:t.relation.lineType==1?"dashed":"solid",id:`id_${t.id1}_${t.id2}_${a}`,arrowhead:t.type==="arrow_open"?"none":"normal",startLabelRight:t.relationTitle1==="none"?"":t.relationTitle1,endLabelLeft:t.relationTitle2==="none"?"":t.relationTitle2,arrowTypeStart:N(t.relation.type1),arrowTypeEnd:N(t.relation.type2),style:"fill:none",labelStyle:"",curve:E(y==null?void 0:y.curve,C)};if(d.info(o,t),t.style!==void 0){const r=D(t.style);o.style=r.style,o.labelStyle=r.labelStyle}t.text=t.title,t.text===void 0?t.style!==void 0&&(o.arrowheadStyle="fill: #333"):(o.arrowheadStyle="fill: #333",o.labelpos="c",((i=c().flowchart)==null?void 0:i.htmlLabels)??c().htmlLabels?(o.labelType="html",o.label='<span class="edgeLabel">'+t.text+"</span>"):(o.labelType="text",o.label=t.text.replace(A.lineBreakRegex,`
`),t.style===void 0&&(o.style=o.style||"stroke: #333; stroke-width: 1.5px;fill:none"),o.labelStyle=o.labelStyle.replace("color:","fill:"))),e.setEdge(t.id1,t.id2,o,a)})},V=function(s){k={...k,...s}},W=async function(s,e,y,a){d.info("Drawing class - ",e);const t=c().flowchart??c().class,i=c().securityLevel;d.info("config:",t);const o=(t==null?void 0:t.nodeSpacing)??50,r=(t==null?void 0:t.rankSpacing)??50,l=new q({multigraph:!0,compound:!0}).setGraph({rankdir:a.db.getDirection(),nodesep:o,ranksep:r,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),n=a.db.getNamespaces(),p=a.db.getClasses(),f=a.db.getRelations(),m=a.db.getNotes();d.info(f),P(n,l,e,a),$(p,l,e,a),H(f,l),F(m,l,f.length+1,p);let u;i==="sandbox"&&(u=w("#i"+e));const h=i==="sandbox"?w(u.nodes()[0].contentDocument.body):w("body"),b=h.select(`[id="${e}"]`),x=h.select("#"+e+" g");if(await z(x,l,["aggregation","extension","composition","dependency","lollipop"],"classDiagram",e),B.insertTitle(b,"classTitleText",(t==null?void 0:t.titleTopMargin)??5,a.db.getDiagramTitle()),G(l,b,t==null?void 0:t.diagramPadding,t==null?void 0:t.useMaxWidth),!(t!=null&&t.htmlLabels)){const T=i==="sandbox"?u.nodes()[0].contentDocument:document,I=T.querySelectorAll('[id="'+e+'"] .edgeLabel .label');for(const g of I){const L=g.getBBox(),v=T.createElementNS("http://www.w3.org/2000/svg","rect");v.setAttribute("rx",0),v.setAttribute("ry",0),v.setAttribute("width",L.width),v.setAttribute("height",L.height),g.insertBefore(v,g.firstChild)}}};function N(s){let e;switch(s){case 0:e="aggregation";break;case 1:e="extension";break;case 2:e="composition";break;case 3:e="dependency";break;case 4:e="lollipop";break;default:e="none"}return e}const J={setConf:V,draw:W},ct={parser:M,db:_,renderer:J,styles:R,init:s=>{s.class||(s.class={}),s.class.arrowMarkerAbsolute=s.arrowMarkerAbsolute,_.clear()}};export{ct as diagram};
import{p as G,d as v,s as A}from"./styles-d48462a7-Cp72T330.js";import{c as S,l as y,h as B,i as W,F as $,v as M,G as I}from"./slidev/5-BKiUV7YW.js";import{G as O}from"./graph-af3d5df6-DtpoS02a.js";import{l as P}from"./layout-6685625a-CnDdhUY9.js";import{l as X}from"./line-65d70945-BvyDbe4_.js";import"./modules/vue-Dn3czbSS.js";import"./index-D2S1x1Oe.js";import"./modules/shiki-CuMFyo6Z.js";import"./modules/file-saver-EUMWMpoS.js";import"./slidev/default-CY-sqYNf.js";import"./slidev/context-CYh2-pv1.js";import"./array-b7dcf730-BKyUJesY.js";import"./path-39bad7e2-CbwjOpE9.js";let H=0;const Y=function(i,a,t,o,p){const g=function(e){switch(e){case p.db.relationType.AGGREGATION:return"aggregation";case p.db.relationType.EXTENSION:return"extension";case p.db.relationType.COMPOSITION:return"composition";case p.db.relationType.DEPENDENCY:return"dependency";case p.db.relationType.LOLLIPOP:return"lollipop"}};a.points=a.points.filter(e=>!Number.isNaN(e.y));const s=a.points,c=X().x(function(e){return e.x}).y(function(e){return e.y}).curve($),n=i.append("path").attr("d",c(s)).attr("id","edge"+H).attr("class","relation");let r="";o.arrowMarkerAbsolute&&(r=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,r=r.replace(/\(/g,"\\("),r=r.replace(/\)/g,"\\)")),t.relation.lineType==1&&n.attr("class","relation dashed-line"),t.relation.lineType==10&&n.attr("class","relation dotted-line"),t.relation.type1!=="none"&&n.attr("marker-start","url("+r+"#"+g(t.relation.type1)+"Start)"),t.relation.type2!=="none"&&n.attr("marker-end","url("+r+"#"+g(t.relation.type2)+"End)");let f,h;const x=a.points.length;let b=M.calcLabelPosition(a.points);f=b.x,h=b.y;let u,m,w,k;if(x%2!==0&&x>1){let e=M.calcCardinalityPosition(t.relation.type1!=="none",a.points,a.points[0]),d=M.calcCardinalityPosition(t.relation.type2!=="none",a.points,a.points[x-1]);y.debug("cardinality_1_point "+JSON.stringify(e)),y.debug("cardinality_2_point "+JSON.stringify(d)),u=e.x,m=e.y,w=d.x,k=d.y}if(t.title!==void 0){const e=i.append("g").attr("class","classLabel"),d=e.append("text").attr("class","label").attr("x",f).attr("y",h).attr("fill","red").attr("text-anchor","middle").text(t.title);window.label=d;const l=d.node().getBBox();e.insert("rect",":first-child").attr("class","box").attr("x",l.x-o.padding/2).attr("y",l.y-o.padding/2).attr("width",l.width+o.padding).attr("height",l.height+o.padding)}y.info("Rendering relation "+JSON.stringify(t)),t.relationTitle1!==void 0&&t.relationTitle1!=="none"&&i.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",u).attr("y",m).attr("fill","black").attr("font-size","6").text(t.relationTitle1),t.relationTitle2!==void 0&&t.relationTitle2!=="none"&&i.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",w).attr("y",k).attr("fill","black").attr("font-size","6").text(t.relationTitle2),H++},J=function(i,a,t,o){y.debug("Rendering class ",a,t);const p=a.id,g={id:p,label:a.id,width:0,height:0},s=i.append("g").attr("id",o.db.lookUpDomId(p)).attr("class","classGroup");let c;a.link?c=s.append("svg:a").attr("xlink:href",a.link).attr("target",a.linkTarget).append("text").attr("y",t.textHeight+t.padding).attr("x",0):c=s.append("text").attr("y",t.textHeight+t.padding).attr("x",0);let n=!0;a.annotations.forEach(function(d){const l=c.append("tspan").text("«"+d+"»");n||l.attr("dy",t.textHeight),n=!1});let r=C(a);const f=c.append("tspan").text(r).attr("class","title");n||f.attr("dy",t.textHeight);const h=c.node().getBBox().height;let x,b,u;if(a.members.length>0){x=s.append("line").attr("x1",0).attr("y1",t.padding+h+t.dividerMargin/2).attr("y2",t.padding+h+t.dividerMargin/2);const d=s.append("text").attr("x",t.padding).attr("y",h+t.dividerMargin+t.textHeight).attr("fill","white").attr("class","classText");n=!0,a.members.forEach(function(l){_(d,l,n,t),n=!1}),b=d.node().getBBox()}if(a.methods.length>0){u=s.append("line").attr("x1",0).attr("y1",t.padding+h+t.dividerMargin+b.height).attr("y2",t.padding+h+t.dividerMargin+b.height);const d=s.append("text").attr("x",t.padding).attr("y",h+2*t.dividerMargin+b.height+t.textHeight).attr("fill","white").attr("class","classText");n=!0,a.methods.forEach(function(l){_(d,l,n,t),n=!1})}const m=s.node().getBBox();var w=" ";a.cssClasses.length>0&&(w=w+a.cssClasses.join(" "));const e=s.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",m.width+2*t.padding).attr("height",m.height+t.padding+.5*t.dividerMargin).attr("class",w).node().getBBox().width;return c.node().childNodes.forEach(function(d){d.setAttribute("x",(e-d.getBBox().width)/2)}),a.tooltip&&c.insert("title").text(a.tooltip),x&&x.attr("x2",e),u&&u.attr("x2",e),g.width=e,g.height=m.height+t.padding+.5*t.dividerMargin,g},C=function(i){let a=i.id;return i.type&&(a+="<"+I(i.type)+">"),a},Z=function(i,a,t,o){y.debug("Rendering note ",a,t);const p=a.id,g={id:p,text:a.text,width:0,height:0},s=i.append("g").attr("id",p).attr("class","classGroup");let c=s.append("text").attr("y",t.textHeight+t.padding).attr("x",0);const n=JSON.parse(`"${a.text}"`).split(`
`);n.forEach(function(x){y.debug(`Adding line: ${x}`),c.append("tspan").text(x).attr("class","title").attr("dy",t.textHeight)});const r=s.node().getBBox(),h=s.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",r.width+2*t.padding).attr("height",r.height+n.length*t.textHeight+t.padding+.5*t.dividerMargin).node().getBBox().width;return c.node().childNodes.forEach(function(x){x.setAttribute("x",(h-x.getBBox().width)/2)}),g.width=h,g.height=r.height+n.length*t.textHeight+t.padding+.5*t.dividerMargin,g},_=function(i,a,t,o){const{displayText:p,cssStyle:g}=a.getDisplayDetails(),s=i.append("tspan").attr("x",o.padding).text(p);g!==""&&s.attr("style",a.cssStyle),t||s.attr("dy",o.textHeight)},N={getClassTitleString:C,drawClass:J,drawEdge:Y,drawNote:Z};let T={};const E=20,L=function(i){const a=Object.entries(T).find(t=>t[1].label===i);if(a)return a[0]},R=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")},F=function(i,a,t,o){const p=S().class;T={},y.info("Rendering diagram "+i);const g=S().securityLevel;let s;g==="sandbox"&&(s=B("#i"+a));const c=g==="sandbox"?B(s.nodes()[0].contentDocument.body):B("body"),n=c.select(`[id='${a}']`);R(n);const r=new O({multigraph:!0});r.setGraph({isMultiGraph:!0}),r.setDefaultEdgeLabel(function(){return{}});const f=o.db.getClasses(),h=Object.keys(f);for(const e of h){const d=f[e],l=N.drawClass(n,d,p,o);T[l.id]=l,r.setNode(l.id,l),y.info("Org height: "+l.height)}o.db.getRelations().forEach(function(e){y.info("tjoho"+L(e.id1)+L(e.id2)+JSON.stringify(e)),r.setEdge(L(e.id1),L(e.id2),{relation:e},e.title||"DEFAULT")}),o.db.getNotes().forEach(function(e){y.debug(`Adding note: ${JSON.stringify(e)}`);const d=N.drawNote(n,e,p,o);T[d.id]=d,r.setNode(d.id,d),e.class&&e.class in f&&r.setEdge(e.id,L(e.class),{relation:{id1:e.id,id2:e.class,relation:{type1:"none",type2:"none",lineType:10}}},"DEFAULT")}),P(r),r.nodes().forEach(function(e){e!==void 0&&r.node(e)!==void 0&&(y.debug("Node "+e+": "+JSON.stringify(r.node(e))),c.select("#"+(o.db.lookUpDomId(e)||e)).attr("transform","translate("+(r.node(e).x-r.node(e).width/2)+","+(r.node(e).y-r.node(e).height/2)+" )"))}),r.edges().forEach(function(e){e!==void 0&&r.edge(e)!==void 0&&(y.debug("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(r.edge(e))),N.drawEdge(n,r.edge(e),r.edge(e).relation,p,o))});const u=n.node().getBBox(),m=u.width+E*2,w=u.height+E*2;W(n,w,m,p.useMaxWidth);const k=`${u.x-E} ${u.y-E} ${m} ${w}`;y.debug(`viewBox ${k}`),n.attr("viewBox",k)},U={draw:F},dt={parser:G,db:v,renderer:U,styles:A,init:i=>{i.class||(i.class={}),i.class.arrowMarkerAbsolute=i.arrowMarkerAbsolute,v.clear()}};export{dt as diagram};
import{aB as o,aC as r}from"./slidev/5-BKiUV7YW.js";const s=(a,n)=>o.lang.round(r.parse(a)[n]),e=s;export{e as c};
import{s as we,g as Oe,a as Te,b as Re,c as Dt,d as ue,e as De,f as wt,h as Nt,l as le,i as Se,w as Pe,j as Kt,k as oe,m as Me}from"./slidev/5-BKiUV7YW.js";import{d as Le,g as Ne}from"./svgDrawCommon-99ae2c94-qFiheePO.js";import"./modules/vue-Dn3czbSS.js";import"./index-D2S1x1Oe.js";import"./modules/shiki-CuMFyo6Z.js";import"./modules/file-saver-EUMWMpoS.js";import"./slidev/default-CY-sqYNf.js";import"./slidev/context-CYh2-pv1.js";var Yt=function(){var e=function(bt,_,x,m){for(x=x||{},m=bt.length;m--;x[bt[m]]=_);return x},t=[1,24],a=[1,25],o=[1,26],l=[1,27],i=[1,28],s=[1,63],r=[1,64],n=[1,65],h=[1,66],f=[1,67],d=[1,68],p=[1,69],E=[1,29],O=[1,30],R=[1,31],S=[1,32],L=[1,33],Y=[1,34],Q=[1,35],H=[1,36],q=[1,37],G=[1,38],K=[1,39],J=[1,40],Z=[1,41],$=[1,42],tt=[1,43],et=[1,44],it=[1,45],nt=[1,46],st=[1,47],at=[1,48],rt=[1,50],lt=[1,51],ot=[1,52],ct=[1,53],ht=[1,54],ut=[1,55],dt=[1,56],ft=[1,57],pt=[1,58],yt=[1,59],gt=[1,60],At=[14,42],Vt=[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],Ot=[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],v=[1,82],k=[1,83],A=[1,84],C=[1,85],w=[12,14,42],ne=[12,14,33,42],Pt=[12,14,33,42,76,77,79,80],mt=[12,33],zt=[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],Xt={trace:function(){},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:function(_,x,m,g,T,u,Tt){var y=u.length-1;switch(T){case 3:g.setDirection("TB");break;case 4:g.setDirection("BT");break;case 5:g.setDirection("RL");break;case 6:g.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:g.setC4Type(u[y-3]);break;case 19:g.setTitle(u[y].substring(6)),this.$=u[y].substring(6);break;case 20:g.setAccDescription(u[y].substring(15)),this.$=u[y].substring(15);break;case 21:this.$=u[y].trim(),g.setTitle(this.$);break;case 22:case 23:this.$=u[y].trim(),g.setAccDescription(this.$);break;case 28:case 29:u[y].splice(2,0,"ENTERPRISE"),g.addPersonOrSystemBoundary(...u[y]),this.$=u[y];break;case 30:g.addPersonOrSystemBoundary(...u[y]),this.$=u[y];break;case 31:u[y].splice(2,0,"CONTAINER"),g.addContainerBoundary(...u[y]),this.$=u[y];break;case 32:g.addDeploymentNode("node",...u[y]),this.$=u[y];break;case 33:g.addDeploymentNode("nodeL",...u[y]),this.$=u[y];break;case 34:g.addDeploymentNode("nodeR",...u[y]),this.$=u[y];break;case 35:g.popBoundaryParseStack();break;case 39:g.addPersonOrSystem("person",...u[y]),this.$=u[y];break;case 40:g.addPersonOrSystem("external_person",...u[y]),this.$=u[y];break;case 41:g.addPersonOrSystem("system",...u[y]),this.$=u[y];break;case 42:g.addPersonOrSystem("system_db",...u[y]),this.$=u[y];break;case 43:g.addPersonOrSystem("system_queue",...u[y]),this.$=u[y];break;case 44:g.addPersonOrSystem("external_system",...u[y]),this.$=u[y];break;case 45:g.addPersonOrSystem("external_system_db",...u[y]),this.$=u[y];break;case 46:g.addPersonOrSystem("external_system_queue",...u[y]),this.$=u[y];break;case 47:g.addContainer("container",...u[y]),this.$=u[y];break;case 48:g.addContainer("container_db",...u[y]),this.$=u[y];break;case 49:g.addContainer("container_queue",...u[y]),this.$=u[y];break;case 50:g.addContainer("external_container",...u[y]),this.$=u[y];break;case 51:g.addContainer("external_container_db",...u[y]),this.$=u[y];break;case 52:g.addContainer("external_container_queue",...u[y]),this.$=u[y];break;case 53:g.addComponent("component",...u[y]),this.$=u[y];break;case 54:g.addComponent("component_db",...u[y]),this.$=u[y];break;case 55:g.addComponent("component_queue",...u[y]),this.$=u[y];break;case 56:g.addComponent("external_component",...u[y]),this.$=u[y];break;case 57:g.addComponent("external_component_db",...u[y]),this.$=u[y];break;case 58:g.addComponent("external_component_queue",...u[y]),this.$=u[y];break;case 60:g.addRel("rel",...u[y]),this.$=u[y];break;case 61:g.addRel("birel",...u[y]),this.$=u[y];break;case 62:g.addRel("rel_u",...u[y]),this.$=u[y];break;case 63:g.addRel("rel_d",...u[y]),this.$=u[y];break;case 64:g.addRel("rel_l",...u[y]),this.$=u[y];break;case 65:g.addRel("rel_r",...u[y]),this.$=u[y];break;case 66:g.addRel("rel_b",...u[y]),this.$=u[y];break;case 67:u[y].splice(0,1),g.addRel("rel",...u[y]),this.$=u[y];break;case 68:g.updateElStyle("update_el_style",...u[y]),this.$=u[y];break;case 69:g.updateRelStyle("update_rel_style",...u[y]),this.$=u[y];break;case 70:g.updateLayoutConfig("update_layout_config",...u[y]),this.$=u[y];break;case 71:this.$=[u[y]];break;case 72:u[y].unshift(u[y-1]),this.$=u[y];break;case 73:case 75:this.$=u[y].trim();break;case 74:let Et={};Et[u[y-1].trim()]=u[y].trim(),this.$=Et;break;case 76:this.$="";break}},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:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{13:70,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{13:71,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{13:72,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{13:73,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{14:[1,74]},e(At,[2,13],{43:23,29:49,30:61,32:62,20:75,34:s,36:r,37:n,38:h,39:f,40:d,41:p,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt}),e(At,[2,14]),e(Vt,[2,16],{12:[1,76]}),e(At,[2,36],{12:[1,77]}),e(Ot,[2,19]),e(Ot,[2,20]),{25:[1,78]},{27:[1,79]},e(Ot,[2,23]),{35:80,75:81,76:v,77:k,79:A,80:C},{35:86,75:81,76:v,77:k,79:A,80:C},{35:87,75:81,76:v,77:k,79:A,80:C},{35:88,75:81,76:v,77:k,79:A,80:C},{35:89,75:81,76:v,77:k,79:A,80:C},{35:90,75:81,76:v,77:k,79:A,80:C},{35:91,75:81,76:v,77:k,79:A,80:C},{35:92,75:81,76:v,77:k,79:A,80:C},{35:93,75:81,76:v,77:k,79:A,80:C},{35:94,75:81,76:v,77:k,79:A,80:C},{35:95,75:81,76:v,77:k,79:A,80:C},{35:96,75:81,76:v,77:k,79:A,80:C},{35:97,75:81,76:v,77:k,79:A,80:C},{35:98,75:81,76:v,77:k,79:A,80:C},{35:99,75:81,76:v,77:k,79:A,80:C},{35:100,75:81,76:v,77:k,79:A,80:C},{35:101,75:81,76:v,77:k,79:A,80:C},{35:102,75:81,76:v,77:k,79:A,80:C},{35:103,75:81,76:v,77:k,79:A,80:C},{35:104,75:81,76:v,77:k,79:A,80:C},e(w,[2,59]),{35:105,75:81,76:v,77:k,79:A,80:C},{35:106,75:81,76:v,77:k,79:A,80:C},{35:107,75:81,76:v,77:k,79:A,80:C},{35:108,75:81,76:v,77:k,79:A,80:C},{35:109,75:81,76:v,77:k,79:A,80:C},{35:110,75:81,76:v,77:k,79:A,80:C},{35:111,75:81,76:v,77:k,79:A,80:C},{35:112,75:81,76:v,77:k,79:A,80:C},{35:113,75:81,76:v,77:k,79:A,80:C},{35:114,75:81,76:v,77:k,79:A,80:C},{35:115,75:81,76:v,77:k,79:A,80:C},{20:116,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{12:[1,118],33:[1,117]},{35:119,75:81,76:v,77:k,79:A,80:C},{35:120,75:81,76:v,77:k,79:A,80:C},{35:121,75:81,76:v,77:k,79:A,80:C},{35:122,75:81,76:v,77:k,79:A,80:C},{35:123,75:81,76:v,77:k,79:A,80:C},{35:124,75:81,76:v,77:k,79:A,80:C},{35:125,75:81,76:v,77:k,79:A,80:C},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(At,[2,15]),e(Vt,[2,17],{21:22,19:130,22:t,23:a,24:o,26:l,28:i}),e(At,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:t,23:a,24:o,26:l,28:i,34:s,36:r,37:n,38:h,39:f,40:d,41:p,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt}),e(Ot,[2,21]),e(Ot,[2,22]),e(w,[2,39]),e(ne,[2,71],{75:81,35:132,76:v,77:k,79:A,80:C}),e(Pt,[2,73]),{78:[1,133]},e(Pt,[2,75]),e(Pt,[2,76]),e(w,[2,40]),e(w,[2,41]),e(w,[2,42]),e(w,[2,43]),e(w,[2,44]),e(w,[2,45]),e(w,[2,46]),e(w,[2,47]),e(w,[2,48]),e(w,[2,49]),e(w,[2,50]),e(w,[2,51]),e(w,[2,52]),e(w,[2,53]),e(w,[2,54]),e(w,[2,55]),e(w,[2,56]),e(w,[2,57]),e(w,[2,58]),e(w,[2,60]),e(w,[2,61]),e(w,[2,62]),e(w,[2,63]),e(w,[2,64]),e(w,[2,65]),e(w,[2,66]),e(w,[2,67]),e(w,[2,68]),e(w,[2,69]),e(w,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(mt,[2,28]),e(mt,[2,29]),e(mt,[2,30]),e(mt,[2,31]),e(mt,[2,32]),e(mt,[2,33]),e(mt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(Vt,[2,18]),e(At,[2,38]),e(ne,[2,72]),e(Pt,[2,74]),e(w,[2,24]),e(w,[2,35]),e(zt,[2,25]),e(zt,[2,26],{12:[1,138]}),e(zt,[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:function(_,x){if(x.recoverable)this.trace(_);else{var m=new Error(_);throw m.hash=x,m}},parse:function(_){var x=this,m=[0],g=[],T=[null],u=[],Tt=this.table,y="",Et=0,se=0,ve=2,ae=1,ke=u.slice.call(arguments,1),D=Object.create(this.lexer),vt={yy:{}};for(var Qt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Qt)&&(vt.yy[Qt]=this.yy[Qt]);D.setInput(_,vt.yy),vt.yy.lexer=D,vt.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var Ht=D.yylloc;u.push(Ht);var Ae=D.options&&D.options.ranges;typeof vt.yy.parseError=="function"?this.parseError=vt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ce(){var X;return X=g.pop()||D.lex()||ae,typeof X!="number"&&(X instanceof Array&&(g=X,X=g.pop()),X=x.symbols_[X]||X),X}for(var M,kt,N,qt,Ct={},Mt,z,re,Lt;;){if(kt=m[m.length-1],this.defaultActions[kt]?N=this.defaultActions[kt]:((M===null||typeof M>"u")&&(M=Ce()),N=Tt[kt]&&Tt[kt][M]),typeof N>"u"||!N.length||!N[0]){var Gt="";Lt=[];for(Mt in Tt[kt])this.terminals_[Mt]&&Mt>ve&&Lt.push("'"+this.terminals_[Mt]+"'");D.showPosition?Gt="Parse error on line "+(Et+1)+`:
`+D.showPosition()+`
Expecting `+Lt.join(", ")+", got '"+(this.terminals_[M]||M)+"'":Gt="Parse error on line "+(Et+1)+": Unexpected "+(M==ae?"end of input":"'"+(this.terminals_[M]||M)+"'"),this.parseError(Gt,{text:D.match,token:this.terminals_[M]||M,line:D.yylineno,loc:Ht,expected:Lt})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+kt+", token: "+M);switch(N[0]){case 1:m.push(M),T.push(D.yytext),u.push(D.yylloc),m.push(N[1]),M=null,se=D.yyleng,y=D.yytext,Et=D.yylineno,Ht=D.yylloc;break;case 2:if(z=this.productions_[N[1]][1],Ct.$=T[T.length-z],Ct._$={first_line:u[u.length-(z||1)].first_line,last_line:u[u.length-1].last_line,first_column:u[u.length-(z||1)].first_column,last_column:u[u.length-1].last_column},Ae&&(Ct._$.range=[u[u.length-(z||1)].range[0],u[u.length-1].range[1]]),qt=this.performAction.apply(Ct,[y,se,Et,vt.yy,N[1],T,u].concat(ke)),typeof qt<"u")return qt;z&&(m=m.slice(0,-1*z*2),T=T.slice(0,-1*z),u=u.slice(0,-1*z)),m.push(this.productions_[N[1]][0]),T.push(Ct.$),u.push(Ct._$),re=Tt[m[m.length-2]][m[m.length-1]],m.push(re);break;case 3:return!0}}return!0}},Ee=function(){var bt={EOF:1,parseError:function(x,m){if(this.yy.parser)this.yy.parser.parseError(x,m);else throw new Error(x)},setInput:function(_,x){return this.yy=x||this.yy||{},this._input=_,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 _=this._input[0];this.yytext+=_,this.yyleng++,this.offset++,this.match+=_,this.matched+=_;var x=_.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),_},unput:function(_){var x=_.length,m=_.split(/(?:\r\n?|\n)/g);this._input=_+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-x),this.offset-=x;var g=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),m.length-1&&(this.yylineno-=m.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:m?(m.length===g.length?this.yylloc.first_column:0)+g[g.length-m.length].length-m[0].length:this.yylloc.first_column-x},this.options.ranges&&(this.yylloc.range=[T[0],T[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(_){this.unput(this.match.slice(_))},pastInput:function(){var _=this.matched.substr(0,this.matched.length-this.match.length);return(_.length>20?"...":"")+_.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var _=this.match;return _.length<20&&(_+=this._input.substr(0,20-_.length)),(_.substr(0,20)+(_.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var _=this.pastInput(),x=new Array(_.length+1).join("-");return _+this.upcomingInput()+`
`+x+"^"},test_match:function(_,x){var m,g,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))),g=_[0].match(/(?:\r\n?|\n).*/g),g&&(this.yylineno+=g.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:g?g[g.length-1].length-g[g.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+_[0].length},this.yytext+=_[0],this.match+=_[0],this.matches=_,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(_[0].length),this.matched+=_[0],m=this.performAction.call(this,this.yy,this,x,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),m)return m;if(this._backtrack){for(var u in T)this[u]=T[u];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var _,x,m,g;this._more||(this.yytext="",this.match="");for(var T=this._currentRules(),u=0;u<T.length;u++)if(m=this._input.match(this.rules[T[u]]),m&&(!x||m[0].length>x[0].length)){if(x=m,g=u,this.options.backtrack_lexer){if(_=this.test_match(m,T[u]),_!==!1)return _;if(this._backtrack){x=!1;continue}else return!1}else if(!this.options.flex)break}return x?(_=this.test_match(x,T[g]),_!==!1?_:!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:{},performAction:function(x,m,g,T){switch(g){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;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),26;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: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;case 23:return this.begin("person"),44;case 24:return this.begin("system_ext_queue"),51;case 25:return this.begin("system_ext_db"),50;case 26:return this.begin("system_ext"),49;case 27:return this.begin("system_queue"),48;case 28:return this.begin("system_db"),47;case 29:return this.begin("system"),46;case 30:return this.begin("boundary"),37;case 31:return this.begin("enterprise_boundary"),34;case 32:return this.begin("system_boundary"),36;case 33:return this.begin("container_ext_queue"),57;case 34:return this.begin("container_ext_db"),56;case 35:return this.begin("container_ext"),55;case 36:return this.begin("container_queue"),54;case 37:return this.begin("container_db"),53;case 38:return this.begin("container"),52;case 39:return this.begin("container_boundary"),38;case 40:return this.begin("component_ext_queue"),63;case 41:return this.begin("component_ext_db"),62;case 42:return this.begin("component_ext"),61;case 43:return this.begin("component_queue"),60;case 44:return this.begin("component_db"),59;case 45:return this.begin("component"),58;case 46:return this.begin("node"),39;case 47:return this.begin("node"),39;case 48:return this.begin("node_l"),40;case 49:return this.begin("node_r"),41;case 50:return this.begin("rel"),64;case 51:return this.begin("birel"),65;case 52:return this.begin("rel_u"),66;case 53:return this.begin("rel_u"),66;case 54:return this.begin("rel_d"),67;case 55:return this.begin("rel_d"),67;case 56:return this.begin("rel_l"),68;case 57:return this.begin("rel_l"),68;case 58:return this.begin("rel_r"),69;case 59:return this.begin("rel_r"),69;case 60:return this.begin("rel_b"),70;case 61:return this.begin("rel_index"),71;case 62:return this.begin("update_el_style"),72;case 63:return this.begin("update_rel_style"),73;case 64:return this.begin("update_layout_config"),74;case 65:return"EOF_IN_STRUCT";case 66:return this.begin("attribute"),"ATTRIBUTE_EMPTY";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";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}},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 bt}();Xt.lexer=Ee;function Wt(){this.yy={}}return Wt.prototype=Xt,Xt.Parser=Wt,new Wt}();Yt.parser=Yt;const Be=Yt;let U=[],_t=[""],P="global",j="",V=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],St=[],te="",ee=!1,It=4,jt=2;var de;const Ye=function(){return de},Ie=function(e){de=ue(e,Dt())},je=function(e,t,a,o,l,i,s,r,n){if(e==null||t===void 0||t===null||a===void 0||a===null||o===void 0||o===null)return;let h={};const f=St.find(d=>d.from===t&&d.to===a);if(f?h=f:St.push(h),h.type=e,h.from=t,h.to=a,h.label={text:o},l==null)h.techn={text:""};else if(typeof l=="object"){let[d,p]=Object.entries(l)[0];h[d]={text:p}}else h.techn={text:l};if(i==null)h.descr={text:""};else if(typeof i=="object"){let[d,p]=Object.entries(i)[0];h[d]={text:p}}else h.descr={text:i};if(typeof s=="object"){let[d,p]=Object.entries(s)[0];h[d]=p}else h.sprite=s;if(typeof r=="object"){let[d,p]=Object.entries(r)[0];h[d]=p}else h.tags=r;if(typeof n=="object"){let[d,p]=Object.entries(n)[0];h[d]=p}else h.link=n;h.wrap=xt()},Ue=function(e,t,a,o,l,i,s){if(t===null||a===null)return;let r={};const n=U.find(h=>h.alias===t);if(n&&t===n.alias?r=n:(r.alias=t,U.push(r)),a==null?r.label={text:""}:r.label={text:a},o==null)r.descr={text:""};else if(typeof o=="object"){let[h,f]=Object.entries(o)[0];r[h]={text:f}}else r.descr={text:o};if(typeof l=="object"){let[h,f]=Object.entries(l)[0];r[h]=f}else r.sprite=l;if(typeof i=="object"){let[h,f]=Object.entries(i)[0];r[h]=f}else r.tags=i;if(typeof s=="object"){let[h,f]=Object.entries(s)[0];r[h]=f}else r.link=s;r.typeC4Shape={text:e},r.parentBoundary=P,r.wrap=xt()},Fe=function(e,t,a,o,l,i,s,r){if(t===null||a===null)return;let n={};const h=U.find(f=>f.alias===t);if(h&&t===h.alias?n=h:(n.alias=t,U.push(n)),a==null?n.label={text:""}:n.label={text:a},o==null)n.techn={text:""};else if(typeof o=="object"){let[f,d]=Object.entries(o)[0];n[f]={text:d}}else n.techn={text:o};if(l==null)n.descr={text:""};else if(typeof l=="object"){let[f,d]=Object.entries(l)[0];n[f]={text:d}}else n.descr={text:l};if(typeof i=="object"){let[f,d]=Object.entries(i)[0];n[f]=d}else n.sprite=i;if(typeof s=="object"){let[f,d]=Object.entries(s)[0];n[f]=d}else n.tags=s;if(typeof r=="object"){let[f,d]=Object.entries(r)[0];n[f]=d}else n.link=r;n.wrap=xt(),n.typeC4Shape={text:e},n.parentBoundary=P},Ve=function(e,t,a,o,l,i,s,r){if(t===null||a===null)return;let n={};const h=U.find(f=>f.alias===t);if(h&&t===h.alias?n=h:(n.alias=t,U.push(n)),a==null?n.label={text:""}:n.label={text:a},o==null)n.techn={text:""};else if(typeof o=="object"){let[f,d]=Object.entries(o)[0];n[f]={text:d}}else n.techn={text:o};if(l==null)n.descr={text:""};else if(typeof l=="object"){let[f,d]=Object.entries(l)[0];n[f]={text:d}}else n.descr={text:l};if(typeof i=="object"){let[f,d]=Object.entries(i)[0];n[f]=d}else n.sprite=i;if(typeof s=="object"){let[f,d]=Object.entries(s)[0];n[f]=d}else n.tags=s;if(typeof r=="object"){let[f,d]=Object.entries(r)[0];n[f]=d}else n.link=r;n.wrap=xt(),n.typeC4Shape={text:e},n.parentBoundary=P},ze=function(e,t,a,o,l){if(e===null||t===null)return;let i={};const s=V.find(r=>r.alias===e);if(s&&e===s.alias?i=s:(i.alias=e,V.push(i)),t==null?i.label={text:""}:i.label={text:t},a==null)i.type={text:"system"};else if(typeof a=="object"){let[r,n]=Object.entries(a)[0];i[r]={text:n}}else i.type={text:a};if(typeof o=="object"){let[r,n]=Object.entries(o)[0];i[r]=n}else i.tags=o;if(typeof l=="object"){let[r,n]=Object.entries(l)[0];i[r]=n}else i.link=l;i.parentBoundary=P,i.wrap=xt(),j=P,P=e,_t.push(j)},Xe=function(e,t,a,o,l){if(e===null||t===null)return;let i={};const s=V.find(r=>r.alias===e);if(s&&e===s.alias?i=s:(i.alias=e,V.push(i)),t==null?i.label={text:""}:i.label={text:t},a==null)i.type={text:"container"};else if(typeof a=="object"){let[r,n]=Object.entries(a)[0];i[r]={text:n}}else i.type={text:a};if(typeof o=="object"){let[r,n]=Object.entries(o)[0];i[r]=n}else i.tags=o;if(typeof l=="object"){let[r,n]=Object.entries(l)[0];i[r]=n}else i.link=l;i.parentBoundary=P,i.wrap=xt(),j=P,P=e,_t.push(j)},We=function(e,t,a,o,l,i,s,r){if(t===null||a===null)return;let n={};const h=V.find(f=>f.alias===t);if(h&&t===h.alias?n=h:(n.alias=t,V.push(n)),a==null?n.label={text:""}:n.label={text:a},o==null)n.type={text:"node"};else if(typeof o=="object"){let[f,d]=Object.entries(o)[0];n[f]={text:d}}else n.type={text:o};if(l==null)n.descr={text:""};else if(typeof l=="object"){let[f,d]=Object.entries(l)[0];n[f]={text:d}}else n.descr={text:l};if(typeof s=="object"){let[f,d]=Object.entries(s)[0];n[f]=d}else n.tags=s;if(typeof r=="object"){let[f,d]=Object.entries(r)[0];n[f]=d}else n.link=r;n.nodeType=e,n.parentBoundary=P,n.wrap=xt(),j=P,P=t,_t.push(j)},Qe=function(){P=j,_t.pop(),j=_t.pop(),_t.push(j)},He=function(e,t,a,o,l,i,s,r,n,h,f){let d=U.find(p=>p.alias===t);if(!(d===void 0&&(d=V.find(p=>p.alias===t),d===void 0))){if(a!=null)if(typeof a=="object"){let[p,E]=Object.entries(a)[0];d[p]=E}else d.bgColor=a;if(o!=null)if(typeof o=="object"){let[p,E]=Object.entries(o)[0];d[p]=E}else d.fontColor=o;if(l!=null)if(typeof l=="object"){let[p,E]=Object.entries(l)[0];d[p]=E}else d.borderColor=l;if(i!=null)if(typeof i=="object"){let[p,E]=Object.entries(i)[0];d[p]=E}else d.shadowing=i;if(s!=null)if(typeof s=="object"){let[p,E]=Object.entries(s)[0];d[p]=E}else d.shape=s;if(r!=null)if(typeof r=="object"){let[p,E]=Object.entries(r)[0];d[p]=E}else d.sprite=r;if(n!=null)if(typeof n=="object"){let[p,E]=Object.entries(n)[0];d[p]=E}else d.techn=n;if(h!=null)if(typeof h=="object"){let[p,E]=Object.entries(h)[0];d[p]=E}else d.legendText=h;if(f!=null)if(typeof f=="object"){let[p,E]=Object.entries(f)[0];d[p]=E}else d.legendSprite=f}},qe=function(e,t,a,o,l,i,s){const r=St.find(n=>n.from===t&&n.to===a);if(r!==void 0){if(o!=null)if(typeof o=="object"){let[n,h]=Object.entries(o)[0];r[n]=h}else r.textColor=o;if(l!=null)if(typeof l=="object"){let[n,h]=Object.entries(l)[0];r[n]=h}else r.lineColor=l;if(i!=null)if(typeof i=="object"){let[n,h]=Object.entries(i)[0];r[n]=parseInt(h)}else r.offsetX=parseInt(i);if(s!=null)if(typeof s=="object"){let[n,h]=Object.entries(s)[0];r[n]=parseInt(h)}else r.offsetY=parseInt(s)}},Ge=function(e,t,a){let o=It,l=jt;if(typeof t=="object"){const i=Object.values(t)[0];o=parseInt(i)}else o=parseInt(t);if(typeof a=="object"){const i=Object.values(a)[0];l=parseInt(i)}else l=parseInt(a);o>=1&&(It=o),l>=1&&(jt=l)},Ke=function(){return It},Je=function(){return jt},Ze=function(){return P},$e=function(){return j},fe=function(e){return e==null?U:U.filter(t=>t.parentBoundary===e)},t0=function(e){return U.find(t=>t.alias===e)},e0=function(e){return Object.keys(fe(e))},pe=function(e){return e==null?V:V.filter(t=>t.parentBoundary===e)},i0=pe,n0=function(){return St},s0=function(){return te},a0=function(e){ee=e},xt=function(){return ee},r0=function(){U=[],V=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],j="",P="global",_t=[""],St=[],_t=[""],te="",ee=!1,It=4,jt=2},l0={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},o0={FILLED:0,OPEN:1},c0={LEFTOF:0,RIGHTOF:1,OVER:2},h0=function(e){te=ue(e,Dt())},Jt={addPersonOrSystem:Ue,addPersonOrSystemBoundary:ze,addContainer:Fe,addContainerBoundary:Xe,addComponent:Ve,addDeploymentNode:We,popBoundaryParseStack:Qe,addRel:je,updateElStyle:He,updateRelStyle:qe,updateLayoutConfig:Ge,autoWrap:xt,setWrap:a0,getC4ShapeArray:fe,getC4Shape:t0,getC4ShapeKeys:e0,getBoundaries:pe,getBoundarys:i0,getCurrentBoundaryParse:Ze,getParentBoundaryParse:$e,getRels:n0,getTitle:s0,getC4Type:Ye,getC4ShapeInRow:Ke,getC4BoundaryInRow:Je,setAccTitle:we,getAccTitle:Oe,getAccDescription:Te,setAccDescription:Re,getConfig:()=>Dt().c4,clear:r0,LINETYPE:l0,ARROWTYPE:o0,PLACEMENT:c0,setTitle:h0,setC4Type:Ie},ie=function(e,t){return Le(e,t)},ye=function(e,t,a,o,l,i){const s=e.append("image");s.attr("width",t),s.attr("height",a),s.attr("x",o),s.attr("y",l);let r=i.startsWith("data:image/png;base64")?i:Me.sanitizeUrl(i);s.attr("xlink:href",r)},u0=(e,t,a)=>{const o=e.append("g");let l=0;for(let i of t){let s=i.textColor?i.textColor:"#444444",r=i.lineColor?i.lineColor:"#444444",n=i.offsetX?parseInt(i.offsetX):0,h=i.offsetY?parseInt(i.offsetY):0,f="";if(l===0){let p=o.append("line");p.attr("x1",i.startPoint.x),p.attr("y1",i.startPoint.y),p.attr("x2",i.endPoint.x),p.attr("y2",i.endPoint.y),p.attr("stroke-width","1"),p.attr("stroke",r),p.style("fill","none"),i.type!=="rel_b"&&p.attr("marker-end","url("+f+"#arrowhead)"),(i.type==="birel"||i.type==="rel_b")&&p.attr("marker-start","url("+f+"#arrowend)"),l=-1}else{let p=o.append("path");p.attr("fill","none").attr("stroke-width","1").attr("stroke",r).attr("d","Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx",i.startPoint.x).replaceAll("starty",i.startPoint.y).replaceAll("controlx",i.startPoint.x+(i.endPoint.x-i.startPoint.x)/2-(i.endPoint.x-i.startPoint.x)/4).replaceAll("controly",i.startPoint.y+(i.endPoint.y-i.startPoint.y)/2).replaceAll("stopx",i.endPoint.x).replaceAll("stopy",i.endPoint.y)),i.type!=="rel_b"&&p.attr("marker-end","url("+f+"#arrowhead)"),(i.type==="birel"||i.type==="rel_b")&&p.attr("marker-start","url("+f+"#arrowend)")}let d=a.messageFont();W(a)(i.label.text,o,Math.min(i.startPoint.x,i.endPoint.x)+Math.abs(i.endPoint.x-i.startPoint.x)/2+n,Math.min(i.startPoint.y,i.endPoint.y)+Math.abs(i.endPoint.y-i.startPoint.y)/2+h,i.label.width,i.label.height,{fill:s},d),i.techn&&i.techn.text!==""&&(d=a.messageFont(),W(a)("["+i.techn.text+"]",o,Math.min(i.startPoint.x,i.endPoint.x)+Math.abs(i.endPoint.x-i.startPoint.x)/2+n,Math.min(i.startPoint.y,i.endPoint.y)+Math.abs(i.endPoint.y-i.startPoint.y)/2+a.messageFontSize+5+h,Math.max(i.label.width,i.techn.width),i.techn.height,{fill:s,"font-style":"italic"},d))}},d0=function(e,t,a){const o=e.append("g");let l=t.bgColor?t.bgColor:"none",i=t.borderColor?t.borderColor:"#444444",s=t.fontColor?t.fontColor:"black",r={"stroke-width":1,"stroke-dasharray":"7.0,7.0"};t.nodeType&&(r={"stroke-width":1});let n={x:t.x,y:t.y,fill:l,stroke:i,width:t.width,height:t.height,rx:2.5,ry:2.5,attrs:r};ie(o,n);let h=a.boundaryFont();h.fontWeight="bold",h.fontSize=h.fontSize+2,h.fontColor=s,W(a)(t.label.text,o,t.x,t.y+t.label.Y,t.width,t.height,{fill:"#444444"},h),t.type&&t.type.text!==""&&(h=a.boundaryFont(),h.fontColor=s,W(a)(t.type.text,o,t.x,t.y+t.type.Y,t.width,t.height,{fill:"#444444"},h)),t.descr&&t.descr.text!==""&&(h=a.boundaryFont(),h.fontSize=h.fontSize-2,h.fontColor=s,W(a)(t.descr.text,o,t.x,t.y+t.descr.Y,t.width,t.height,{fill:"#444444"},h))},f0=function(e,t,a){var o;let l=t.bgColor?t.bgColor:a[t.typeC4Shape.text+"_bg_color"],i=t.borderColor?t.borderColor:a[t.typeC4Shape.text+"_border_color"],s=t.fontColor?t.fontColor:"#FFFFFF",r="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":r="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":r="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 n=e.append("g");n.attr("class","person-man");const h=Ne();switch(t.typeC4Shape.text){case"person":case"external_person":case"system":case"external_system":case"container":case"external_container":case"component":case"external_component":h.x=t.x,h.y=t.y,h.fill=l,h.width=t.width,h.height=t.height,h.stroke=i,h.rx=2.5,h.ry=2.5,h.attrs={"stroke-width":.5},ie(n,h);break;case"system_db":case"external_system_db":case"container_db":case"external_container_db":case"component_db":case"external_component_db":n.append("path").attr("fill",l).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)),n.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":n.append("path").attr("fill",l).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)),n.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 f=v0(a,t.typeC4Shape.text);switch(n.append("text").attr("fill",s).attr("font-family",f.fontFamily).attr("font-size",f.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":ye(n,48,48,t.x+t.width/2-24,t.y+t.image.Y,r);break}let d=a[t.typeC4Shape.text+"Font"]();return d.fontWeight="bold",d.fontSize=d.fontSize+2,d.fontColor=s,W(a)(t.label.text,n,t.x,t.y+t.label.Y,t.width,t.height,{fill:s},d),d=a[t.typeC4Shape.text+"Font"](),d.fontColor=s,t.techn&&((o=t.techn)==null?void 0:o.text)!==""?W(a)(t.techn.text,n,t.x,t.y+t.techn.Y,t.width,t.height,{fill:s,"font-style":"italic"},d):t.type&&t.type.text!==""&&W(a)(t.type.text,n,t.x,t.y+t.type.Y,t.width,t.height,{fill:s,"font-style":"italic"},d),t.descr&&t.descr.text!==""&&(d=a.personFont(),d.fontColor=s,W(a)(t.descr.text,n,t.x,t.y+t.descr.Y,t.width,t.height,{fill:s},d)),t.height},p0=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")},y0=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")},g0=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")},b0=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")},_0=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")},x0=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")},m0=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)},E0=function(e){const a=e.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);a.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"),a.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")},v0=(e,t)=>({fontFamily:e[t+"FontFamily"],fontSize:e[t+"FontSize"],fontWeight:e[t+"FontWeight"]}),W=function(){function e(l,i,s,r,n,h,f){const d=i.append("text").attr("x",s+n/2).attr("y",r+h/2+5).style("text-anchor","middle").text(l);o(d,f)}function t(l,i,s,r,n,h,f,d){const{fontSize:p,fontFamily:E,fontWeight:O}=d,R=l.split(Kt.lineBreakRegex);for(let S=0;S<R.length;S++){const L=S*p-p*(R.length-1)/2,Y=i.append("text").attr("x",s+n/2).attr("y",r).style("text-anchor","middle").attr("dominant-baseline","middle").style("font-size",p).style("font-weight",O).style("font-family",E);Y.append("tspan").attr("dy",L).text(R[S]).attr("alignment-baseline","mathematical"),o(Y,f)}}function a(l,i,s,r,n,h,f,d){const p=i.append("switch"),O=p.append("foreignObject").attr("x",s).attr("y",r).attr("width",n).attr("height",h).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");O.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(l),t(l,p,s,r,n,h,f,d),o(O,f)}function o(l,i){for(const s in i)i.hasOwnProperty(s)&&l.attr(s,i[s])}return function(l){return l.textPlacement==="fo"?a:l.textPlacement==="old"?e:t}}(),F={drawRect:ie,drawBoundary:d0,drawC4Shape:f0,drawRels:u0,drawImage:ye,insertArrowHead:b0,insertArrowEnd:_0,insertArrowFilledHead:x0,insertDynamicNumber:m0,insertArrowCrossHead:E0,insertDatabaseIcon:p0,insertComputerIcon:y0,insertClockIcon:g0};let Ut=0,Ft=0,ge=4,Zt=2;Yt.yy=Jt;let b={};class be{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,$t(t.db.getConfig())}setData(t,a,o,l){this.nextData.startx=this.data.startx=t,this.nextData.stopx=this.data.stopx=a,this.nextData.starty=this.data.starty=o,this.nextData.stopy=this.data.stopy=l}updateVal(t,a,o,l){t[a]===void 0?t[a]=o:t[a]=l(o,t[a])}insert(t){this.nextData.cnt=this.nextData.cnt+1;let a=this.nextData.startx===this.nextData.stopx?this.nextData.stopx+t.margin:this.nextData.stopx+t.margin*2,o=a+t.width,l=this.nextData.starty+t.margin*2,i=l+t.height;(a>=this.data.widthLimit||o>=this.data.widthLimit||this.nextData.cnt>ge)&&(a=this.nextData.startx+t.margin+b.nextLinePaddingX,l=this.nextData.stopy+t.margin*2,this.nextData.stopx=o=a+t.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=i=l+t.height,this.nextData.cnt=1),t.x=a,t.y=l,this.updateVal(this.data,"startx",a,Math.min),this.updateVal(this.data,"starty",l,Math.min),this.updateVal(this.data,"stopx",o,Math.max),this.updateVal(this.data,"stopy",i,Math.max),this.updateVal(this.nextData,"startx",a,Math.min),this.updateVal(this.nextData,"starty",l,Math.min),this.updateVal(this.nextData,"stopx",o,Math.max),this.updateVal(this.nextData,"stopy",i,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},$t(t.db.getConfig())}bumpLastMargin(t){this.data.stopx+=t,this.data.stopy+=t}}const $t=function(e){De(b,e),e.fontFamily&&(b.personFontFamily=b.systemFontFamily=b.messageFontFamily=e.fontFamily),e.fontSize&&(b.personFontSize=b.systemFontSize=b.messageFontSize=e.fontSize),e.fontWeight&&(b.personFontWeight=b.systemFontWeight=b.messageFontWeight=e.fontWeight)},Rt=(e,t)=>({fontFamily:e[t+"FontFamily"],fontSize:e[t+"FontSize"],fontWeight:e[t+"FontWeight"]}),Bt=e=>({fontFamily:e.boundaryFontFamily,fontSize:e.boundaryFontSize,fontWeight:e.boundaryFontWeight}),k0=e=>({fontFamily:e.messageFontFamily,fontSize:e.messageFontSize,fontWeight:e.messageFontWeight});function I(e,t,a,o,l){if(!t[e].width)if(a)t[e].text=Pe(t[e].text,l,o),t[e].textLines=t[e].text.split(Kt.lineBreakRegex).length,t[e].width=l,t[e].height=oe(t[e].text,o);else{let i=t[e].text.split(Kt.lineBreakRegex);t[e].textLines=i.length;let s=0;t[e].height=0,t[e].width=0;for(const r of i)t[e].width=Math.max(wt(r,o),t[e].width),s=oe(r,o),t[e].height=t[e].height+s}}const _e=function(e,t,a){t.x=a.data.startx,t.y=a.data.starty,t.width=a.data.stopx-a.data.startx,t.height=a.data.stopy-a.data.starty,t.label.y=b.c4ShapeMargin-35;let o=t.wrap&&b.wrap,l=Bt(b);l.fontSize=l.fontSize+2,l.fontWeight="bold";let i=wt(t.label.text,l);I("label",t,o,l,i),F.drawBoundary(e,t,b)},xe=function(e,t,a,o){let l=0;for(const i of o){l=0;const s=a[i];let r=Rt(b,s.typeC4Shape.text);switch(r.fontSize=r.fontSize-2,s.typeC4Shape.width=wt("«"+s.typeC4Shape.text+"»",r),s.typeC4Shape.height=r.fontSize+2,s.typeC4Shape.Y=b.c4ShapePadding,l=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=l,l=s.image.Y+s.image.height;break}s.sprite&&(s.image.width=48,s.image.height=48,s.image.Y=l,l=s.image.Y+s.image.height);let n=s.wrap&&b.wrap,h=b.width-b.c4ShapePadding*2,f=Rt(b,s.typeC4Shape.text);if(f.fontSize=f.fontSize+2,f.fontWeight="bold",I("label",s,n,f,h),s.label.Y=l+8,l=s.label.Y+s.label.height,s.type&&s.type.text!==""){s.type.text="["+s.type.text+"]";let E=Rt(b,s.typeC4Shape.text);I("type",s,n,E,h),s.type.Y=l+5,l=s.type.Y+s.type.height}else if(s.techn&&s.techn.text!==""){s.techn.text="["+s.techn.text+"]";let E=Rt(b,s.techn.text);I("techn",s,n,E,h),s.techn.Y=l+5,l=s.techn.Y+s.techn.height}let d=l,p=s.label.width;if(s.descr&&s.descr.text!==""){let E=Rt(b,s.typeC4Shape.text);I("descr",s,n,E,h),s.descr.Y=l+20,l=s.descr.Y+s.descr.height,p=Math.max(s.label.width,s.descr.width),d=l-s.descr.textLines*5}p=p+b.c4ShapePadding,s.width=Math.max(s.width||b.width,p,b.width),s.height=Math.max(s.height||b.height,d,b.height),s.margin=s.margin||b.c4ShapeMargin,e.insert(s),F.drawC4Shape(t,s,b)}e.bumpLastMargin(b.c4ShapeMargin)};class B{constructor(t,a){this.x=t,this.y=a}}let ce=function(e,t){let a=e.x,o=e.y,l=t.x,i=t.y,s=a+e.width/2,r=o+e.height/2,n=Math.abs(a-l),h=Math.abs(o-i),f=h/n,d=e.height/e.width,p=null;return o==i&&a<l?p=new B(a+e.width,r):o==i&&a>l?p=new B(a,r):a==l&&o<i?p=new B(s,o+e.height):a==l&&o>i&&(p=new B(s,o)),a>l&&o<i?d>=f?p=new B(a,r+f*e.width/2):p=new B(s-n/h*e.height/2,o+e.height):a<l&&o<i?d>=f?p=new B(a+e.width,r+f*e.width/2):p=new B(s+n/h*e.height/2,o+e.height):a<l&&o>i?d>=f?p=new B(a+e.width,r-f*e.width/2):p=new B(s+e.height/2*n/h,o):a>l&&o>i&&(d>=f?p=new B(a,r-e.width/2*f):p=new B(s-e.height/2*n/h,o)),p},A0=function(e,t){let a={x:0,y:0};a.x=t.x+t.width/2,a.y=t.y+t.height/2;let o=ce(e,a);a.x=e.x+e.width/2,a.y=e.y+e.height/2;let l=ce(t,a);return{startPoint:o,endPoint:l}};const C0=function(e,t,a,o){let l=0;for(let i of t){l=l+1;let s=i.wrap&&b.wrap,r=k0(b);o.db.getC4Type()==="C4Dynamic"&&(i.label.text=l+": "+i.label.text);let h=wt(i.label.text,r);I("label",i,s,r,h),i.techn&&i.techn.text!==""&&(h=wt(i.techn.text,r),I("techn",i,s,r,h)),i.descr&&i.descr.text!==""&&(h=wt(i.descr.text,r),I("descr",i,s,r,h));let f=a(i.from),d=a(i.to),p=A0(f,d);i.startPoint=p.startPoint,i.endPoint=p.endPoint}F.drawRels(e,t,b)};function me(e,t,a,o,l){let i=new be(l);i.data.widthLimit=a.data.widthLimit/Math.min(Zt,o.length);for(let[s,r]of o.entries()){let n=0;r.image={width:0,height:0,Y:0},r.sprite&&(r.image.width=48,r.image.height=48,r.image.Y=n,n=r.image.Y+r.image.height);let h=r.wrap&&b.wrap,f=Bt(b);if(f.fontSize=f.fontSize+2,f.fontWeight="bold",I("label",r,h,f,i.data.widthLimit),r.label.Y=n+8,n=r.label.Y+r.label.height,r.type&&r.type.text!==""){r.type.text="["+r.type.text+"]";let O=Bt(b);I("type",r,h,O,i.data.widthLimit),r.type.Y=n+5,n=r.type.Y+r.type.height}if(r.descr&&r.descr.text!==""){let O=Bt(b);O.fontSize=O.fontSize-2,I("descr",r,h,O,i.data.widthLimit),r.descr.Y=n+20,n=r.descr.Y+r.descr.height}if(s==0||s%Zt===0){let O=a.data.startx+b.diagramMarginX,R=a.data.stopy+b.diagramMarginY+n;i.setData(O,O,R,R)}else{let O=i.data.stopx!==i.data.startx?i.data.stopx+b.diagramMarginX:i.data.startx,R=i.data.starty;i.setData(O,O,R,R)}i.name=r.alias;let d=l.db.getC4ShapeArray(r.alias),p=l.db.getC4ShapeKeys(r.alias);p.length>0&&xe(i,e,d,p),t=r.alias;let E=l.db.getBoundarys(t);E.length>0&&me(e,t,i,E,l),r.alias!=="global"&&_e(e,r,i),a.data.stopy=Math.max(i.data.stopy+b.c4ShapeMargin,a.data.stopy),a.data.stopx=Math.max(i.data.stopx+b.c4ShapeMargin,a.data.stopx),Ut=Math.max(Ut,a.data.stopx),Ft=Math.max(Ft,a.data.stopy)}}const w0=function(e,t,a,o){b=Dt().c4;const l=Dt().securityLevel;let i;l==="sandbox"&&(i=Nt("#i"+t));const s=l==="sandbox"?Nt(i.nodes()[0].contentDocument.body):Nt("body");let r=o.db;o.db.setWrap(b.wrap),ge=r.getC4ShapeInRow(),Zt=r.getC4BoundaryInRow(),le.debug(`C:${JSON.stringify(b,null,2)}`);const n=l==="sandbox"?s.select(`[id="${t}"]`):Nt(`[id="${t}"]`);F.insertComputerIcon(n),F.insertDatabaseIcon(n),F.insertClockIcon(n);let h=new be(o);h.setData(b.diagramMarginX,b.diagramMarginX,b.diagramMarginY,b.diagramMarginY),h.data.widthLimit=screen.availWidth,Ut=b.diagramMarginX,Ft=b.diagramMarginY;const f=o.db.getTitle();let d=o.db.getBoundarys("");me(n,"",h,d,o),F.insertArrowHead(n),F.insertArrowEnd(n),F.insertArrowCrossHead(n),F.insertArrowFilledHead(n),C0(n,o.db.getRels(),o.db.getC4Shape,o),h.data.stopx=Ut,h.data.stopy=Ft;const p=h.data;let O=p.stopy-p.starty+2*b.diagramMarginY;const S=p.stopx-p.startx+2*b.diagramMarginX;f&&n.append("text").text(f).attr("x",(p.stopx-p.startx)/2-4*b.diagramMarginX).attr("y",p.starty+b.diagramMarginY),Se(n,O,S,b.useMaxWidth);const L=f?60:0;n.attr("viewBox",p.startx-b.diagramMarginX+" -"+(b.diagramMarginY+L)+" "+S+" "+(O+L)),le.debug("models:",p)},he={drawPersonOrSystemArray:xe,drawBoundary:_e,setConf:$t,draw:w0},O0=e=>`.person {
stroke: ${e.personBorder};
fill: ${e.personBkg};
}
`,T0=O0,Y0={parser:Be,db:Jt,renderer:he,styles:T0,init:({c4:e,wrap:t})=>{he.setConf(e),Jt.setWrap(t)}};export{Y0 as diagram};
.disable-view-transition[data-v-026ee359] *{view-transition-name:none!important}
import{c as _e,b0 as se,h as H,i as Ee,l as S,E as ye,z as we,n as De}from"./slidev/5-BKiUV7YW.js";import{c as ve}from"./clone-d2e37f8c-CN-809h5.js";import{c as Ne}from"./channel-d3ac35ac-BPxKiy7g.js";import{i as ke,c as Ie,b as Oe,d as Te,a as he,p as ze}from"./edges-1e1ebc73-5f7nvF86.js";import{G as Ce}from"./graph-af3d5df6-DtpoS02a.js";import{o as Ae}from"./ordinal-475e0c0c-BmOJQ37o.js";import{d as Re}from"./Tableau10-31042135-CvOaoHrI.js";import"./modules/vue-Dn3czbSS.js";import"./index-D2S1x1Oe.js";import"./modules/shiki-CuMFyo6Z.js";import"./modules/file-saver-EUMWMpoS.js";import"./slidev/default-CY-sqYNf.js";import"./slidev/context-CYh2-pv1.js";import"./createText-f6615236-y76jB5p3.js";import"./line-65d70945-BvyDbe4_.js";import"./array-b7dcf730-BKyUJesY.js";import"./path-39bad7e2-CbwjOpE9.js";import"./init-cc95ec8e-Gi6I4Gst.js";var oe,le,ee=function(){var e=function(D,l,s,i){for(s=s||{},i=D.length;i--;s[D[i]]=l);return s},a=[1,7],d=[1,13],c=[1,14],n=[1,15],g=[1,19],o=[1,16],f=[1,17],b=[1,18],p=[8,30],x=[8,21,28,29,30,31,32,40,44,47],E=[1,23],T=[1,24],v=[8,15,16,21,28,29,30,31,32,40,44,47],N=[8,15,16,21,27,28,29,30,31,32,40,44,47],y=[1,49],L={trace:function(){},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:function(l,s,i,u,h,t,m){var r=t.length-1;switch(h){case 4:u.getLogger().debug("Rule: separator (NL) ");break;case 5:u.getLogger().debug("Rule: separator (Space) ");break;case 6:u.getLogger().debug("Rule: separator (EOF) ");break;case 7:u.getLogger().debug("Rule: hierarchy: ",t[r-1]),u.setHierarchy(t[r-1]);break;case 8:u.getLogger().debug("Stop NL ");break;case 9:u.getLogger().debug("Stop EOF ");break;case 10:u.getLogger().debug("Stop NL2 ");break;case 11:u.getLogger().debug("Stop EOF2 ");break;case 12:u.getLogger().debug("Rule: statement: ",t[r]),typeof t[r].length=="number"?this.$=t[r]:this.$=[t[r]];break;case 13:u.getLogger().debug("Rule: statement #2: ",t[r-1]),this.$=[t[r-1]].concat(t[r]);break;case 14:u.getLogger().debug("Rule: link: ",t[r],l),this.$={edgeTypeStr:t[r],label:""};break;case 15:u.getLogger().debug("Rule: LABEL link: ",t[r-3],t[r-1],t[r]),this.$={edgeTypeStr:t[r],label:t[r-1]};break;case 18:const R=parseInt(t[r]),Y=u.generateId();this.$={id:Y,type:"space",label:"",width:R,children:[]};break;case 23:u.getLogger().debug("Rule: (nodeStatement link node) ",t[r-2],t[r-1],t[r]," typestr: ",t[r-1].edgeTypeStr);const F=u.edgeStrToEdgeData(t[r-1].edgeTypeStr);this.$=[{id:t[r-2].id,label:t[r-2].label,type:t[r-2].type,directions:t[r-2].directions},{id:t[r-2].id+"-"+t[r].id,start:t[r-2].id,end:t[r].id,label:t[r-1].label,type:"edge",directions:t[r].directions,arrowTypeEnd:F,arrowTypeStart:"arrow_open"},{id:t[r].id,label:t[r].label,type:u.typeStr2Type(t[r].typeStr),directions:t[r].directions}];break;case 24:u.getLogger().debug("Rule: nodeStatement (abc88 node size) ",t[r-1],t[r]),this.$={id:t[r-1].id,label:t[r-1].label,type:u.typeStr2Type(t[r-1].typeStr),directions:t[r-1].directions,widthInColumns:parseInt(t[r],10)};break;case 25:u.getLogger().debug("Rule: nodeStatement (node) ",t[r]),this.$={id:t[r].id,label:t[r].label,type:u.typeStr2Type(t[r].typeStr),directions:t[r].directions,widthInColumns:1};break;case 26:u.getLogger().debug("APA123",this?this:"na"),u.getLogger().debug("COLUMNS: ",t[r]),this.$={type:"column-setting",columns:t[r]==="auto"?-1:parseInt(t[r])};break;case 27:u.getLogger().debug("Rule: id-block statement : ",t[r-2],t[r-1]),u.generateId(),this.$={...t[r-2],type:"composite",children:t[r-1]};break;case 28:u.getLogger().debug("Rule: blockStatement : ",t[r-2],t[r-1],t[r]);const C=u.generateId();this.$={id:C,type:"composite",label:"",children:t[r-1]};break;case 29:u.getLogger().debug("Rule: node (NODE_ID separator): ",t[r]),this.$={id:t[r]};break;case 30:u.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",t[r-1],t[r]),this.$={id:t[r-1],label:t[r].label,typeStr:t[r].typeStr,directions:t[r].directions};break;case 31:u.getLogger().debug("Rule: dirList: ",t[r]),this.$=[t[r]];break;case 32:u.getLogger().debug("Rule: dirList: ",t[r-1],t[r]),this.$=[t[r-1]].concat(t[r]);break;case 33:u.getLogger().debug("Rule: nodeShapeNLabel: ",t[r-2],t[r-1],t[r]),this.$={typeStr:t[r-2]+t[r],label:t[r-1]};break;case 34:u.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",t[r-3],t[r-2]," #3:",t[r-1],t[r]),this.$={typeStr:t[r-3]+t[r],label:t[r-2],directions:t[r-1]};break;case 35:case 36:this.$={type:"classDef",id:t[r-1].trim(),css:t[r].trim()};break;case 37:this.$={type:"applyClass",id:t[r-1].trim(),styleClass:t[r].trim()};break;case 38:this.$={type:"applyStyles",id:t[r-1].trim(),stylesStr:t[r].trim()};break}},table:[{9:1,10:[1,2]},{1:[3]},{11:3,13:4,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:d,29:c,31:n,32:g,40:o,44:f,47:b},{8:[1,20]},e(p,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,21:a,28:d,29:c,31:n,32:g,40:o,44:f,47:b}),e(x,[2,16],{14:22,15:E,16:T}),e(x,[2,17]),e(x,[2,18]),e(x,[2,19]),e(x,[2,20]),e(x,[2,21]),e(x,[2,22]),e(v,[2,25],{27:[1,25]}),e(x,[2,26]),{19:26,26:12,32:g},{11:27,13:4,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:d,29:c,31:n,32:g,40:o,44:f,47:b},{41:[1,28],43:[1,29]},{45:[1,30]},{48:[1,31]},e(N,[2,29],{33:32,36:[1,33],38:[1,34]}),{1:[2,7]},e(p,[2,13]),{26:35,32:g},{32:[2,14]},{17:[1,36]},e(v,[2,24]),{11:37,13:4,14:22,15:E,16:T,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:d,29:c,31:n,32:g,40:o,44:f,47:b},{30:[1,38]},{42:[1,39]},{42:[1,40]},{46:[1,41]},{49:[1,42]},e(N,[2,30]),{18:[1,43]},{18:[1,44]},e(v,[2,23]),{18:[1,45]},{30:[1,46]},e(x,[2,28]),e(x,[2,35]),e(x,[2,36]),e(x,[2,37]),e(x,[2,38]),{37:[1,47]},{34:48,35:y},{15:[1,50]},e(x,[2,27]),e(N,[2,33]),{39:[1,51]},{34:52,35:y,39:[2,31]},{32:[2,15]},e(N,[2,34]),{39:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:function(l,s){if(s.recoverable)this.trace(l);else{var i=new Error(l);throw i.hash=s,i}},parse:function(l){var s=this,i=[0],u=[],h=[null],t=[],m=this.table,r="",R=0,Y=0,F=2,C=1,Se=t.slice.call(arguments,1),w=Object.create(this.lexer),K={yy:{}};for(var Z in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Z)&&(K.yy[Z]=this.yy[Z]);w.setInput(l,K.yy),K.yy.lexer=w,K.yy.parser=this,typeof w.yylloc>"u"&&(w.yylloc={});var J=w.yylloc;t.push(J);var Le=w.options&&w.options.ranges;typeof K.yy.parseError=="function"?this.parseError=K.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function me(){var P;return P=u.pop()||w.lex()||C,typeof P!="number"&&(P instanceof Array&&(u=P,P=u.pop()),P=s.symbols_[P]||P),P}for(var I,M,z,Q,W={},X,B,ae,G;;){if(M=i[i.length-1],this.defaultActions[M]?z=this.defaultActions[M]:((I===null||typeof I>"u")&&(I=me()),z=m[M]&&m[M][I]),typeof z>"u"||!z.length||!z[0]){var $="";G=[];for(X in m[M])this.terminals_[X]&&X>F&&G.push("'"+this.terminals_[X]+"'");w.showPosition?$="Parse error on line "+(R+1)+`:
`+w.showPosition()+`
Expecting `+G.join(", ")+", got '"+(this.terminals_[I]||I)+"'":$="Parse error on line "+(R+1)+": Unexpected "+(I==C?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError($,{text:w.match,token:this.terminals_[I]||I,line:w.yylineno,loc:J,expected:G})}if(z[0]instanceof Array&&z.length>1)throw new Error("Parse Error: multiple actions possible at state: "+M+", token: "+I);switch(z[0]){case 1:i.push(I),h.push(w.yytext),t.push(w.yylloc),i.push(z[1]),I=null,Y=w.yyleng,r=w.yytext,R=w.yylineno,J=w.yylloc;break;case 2:if(B=this.productions_[z[1]][1],W.$=h[h.length-B],W._$={first_line:t[t.length-(B||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(B||1)].first_column,last_column:t[t.length-1].last_column},Le&&(W._$.range=[t[t.length-(B||1)].range[0],t[t.length-1].range[1]]),Q=this.performAction.apply(W,[r,Y,R,K.yy,z[1],h,t].concat(Se)),typeof Q<"u")return Q;B&&(i=i.slice(0,-1*B*2),h=h.slice(0,-1*B),t=t.slice(0,-1*B)),i.push(this.productions_[z[1]][0]),h.push(W.$),t.push(W._$),ae=m[i[i.length-2]][i[i.length-1]],i.push(ae);break;case 3:return!0}}return!0}},A=function(){var D={EOF:1,parseError:function(s,i){if(this.yy.parser)this.yy.parser.parseError(s,i);else throw new Error(s)},setInput:function(l,s){return this.yy=s||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},input:function(){var l=this._input[0];this.yytext+=l,this.yyleng++,this.offset++,this.match+=l,this.matched+=l;var s=l.match(/(?:\r\n?|\n).*/g);return s?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),l},unput:function(l){var s=l.length,i=l.split(/(?:\r\n?|\n)/g);this._input=l+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;var u=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),i.length-1&&(this.yylineno-=i.length-1);var h=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:i?(i.length===u.length?this.yylloc.first_column:0)+u[u.length-i.length].length-i[0].length:this.yylloc.first_column-s},this.options.ranges&&(this.yylloc.range=[h[0],h[0]+this.yyleng-s]),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(l){this.unput(this.match.slice(l))},pastInput:function(){var l=this.matched.substr(0,this.matched.length-this.match.length);return(l.length>20?"...":"")+l.substr(-20).replace(/\n/g,"")},upcomingInput: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,"")},showPosition:function(){var l=this.pastInput(),s=new Array(l.length+1).join("-");return l+this.upcomingInput()+`
`+s+"^"},test_match:function(l,s){var i,u,h;if(this.options.backtrack_lexer&&(h={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&&(h.yylloc.range=this.yylloc.range.slice(0))),u=l[0].match(/(?:\r\n?|\n).*/g),u&&(this.yylineno+=u.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:u?u[u.length-1].length-u[u.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],i=this.performAction.call(this,this.yy,this,s,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack){for(var t in h)this[t]=h[t];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var l,s,i,u;this._more||(this.yytext="",this.match="");for(var h=this._currentRules(),t=0;t<h.length;t++)if(i=this._input.match(this.rules[h[t]]),i&&(!s||i[0].length>s[0].length)){if(s=i,u=t,this.options.backtrack_lexer){if(l=this.test_match(i,h[t]),l!==!1)return l;if(this._backtrack){s=!1;continue}else return!1}else if(!this.options.flex)break}return s?(l=this.test_match(s,h[u]),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})},lex:function(){var s=this.next();return s||this.lex()},begin:function(s){this.conditionStack.push(s)},popState:function(){var s=this.conditionStack.length-1;return s>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(s){return s=this.conditionStack.length-1-Math.abs(s||0),s>=0?this.conditionStack[s]:"INITIAL"},pushState:function(s){this.begin(s)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(s,i,u,h){switch(u){case 0:return 10;case 1:return s.getLogger().debug("Found space-block"),31;case 2:return s.getLogger().debug("Found nl-block"),31;case 3:return s.getLogger().debug("Found space-block"),29;case 4:s.getLogger().debug(".",i.yytext);break;case 5:s.getLogger().debug("_",i.yytext);break;case 6:return 5;case 7:return i.yytext=-1,28;case 8:return i.yytext=i.yytext.replace(/columns\s+/,""),s.getLogger().debug("COLUMNS (LEX)",i.yytext),28;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:s.getLogger().debug("LEX: POPPING STR:",i.yytext),this.popState();break;case 14:return s.getLogger().debug("LEX: STR end:",i.yytext),"STR";case 15:return i.yytext=i.yytext.replace(/space\:/,""),s.getLogger().debug("SPACE NUM (LEX)",i.yytext),21;case 16:return i.yytext="1",s.getLogger().debug("COLUMNS (LEX)",i.yytext),21;case 17:return 43;case 18:return"LINKSTYLE";case 19:return"INTERPOLATE";case 20:return this.pushState("CLASSDEF"),40;case 21:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 22:return this.popState(),this.pushState("CLASSDEFID"),41;case 23:return this.popState(),42;case 24:return this.pushState("CLASS"),44;case 25:return this.popState(),this.pushState("CLASS_STYLE"),45;case 26:return this.popState(),46;case 27:return this.pushState("STYLE_STMNT"),47;case 28:return this.popState(),this.pushState("STYLE_DEFINITION"),48;case 29:return this.popState(),49;case 30:return this.pushState("acc_title"),"acc_title";case 31:return this.popState(),"acc_title_value";case 32:return this.pushState("acc_descr"),"acc_descr";case 33:return this.popState(),"acc_descr_value";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(),s.getLogger().debug("Lex: (("),"NODE_DEND";case 39:return this.popState(),s.getLogger().debug("Lex: (("),"NODE_DEND";case 40:return this.popState(),s.getLogger().debug("Lex: ))"),"NODE_DEND";case 41:return this.popState(),s.getLogger().debug("Lex: (("),"NODE_DEND";case 42:return this.popState(),s.getLogger().debug("Lex: (("),"NODE_DEND";case 43:return this.popState(),s.getLogger().debug("Lex: (-"),"NODE_DEND";case 44:return this.popState(),s.getLogger().debug("Lex: -)"),"NODE_DEND";case 45:return this.popState(),s.getLogger().debug("Lex: (("),"NODE_DEND";case 46:return this.popState(),s.getLogger().debug("Lex: ]]"),"NODE_DEND";case 47:return this.popState(),s.getLogger().debug("Lex: ("),"NODE_DEND";case 48:return this.popState(),s.getLogger().debug("Lex: ])"),"NODE_DEND";case 49:return this.popState(),s.getLogger().debug("Lex: /]"),"NODE_DEND";case 50:return this.popState(),s.getLogger().debug("Lex: /]"),"NODE_DEND";case 51:return this.popState(),s.getLogger().debug("Lex: )]"),"NODE_DEND";case 52:return this.popState(),s.getLogger().debug("Lex: )"),"NODE_DEND";case 53:return this.popState(),s.getLogger().debug("Lex: ]>"),"NODE_DEND";case 54:return this.popState(),s.getLogger().debug("Lex: ]"),"NODE_DEND";case 55:return s.getLogger().debug("Lexa: -)"),this.pushState("NODE"),36;case 56:return s.getLogger().debug("Lexa: (-"),this.pushState("NODE"),36;case 57:return s.getLogger().debug("Lexa: ))"),this.pushState("NODE"),36;case 58:return s.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 59:return s.getLogger().debug("Lex: ((("),this.pushState("NODE"),36;case 60:return s.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 61:return s.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 62:return s.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 63:return s.getLogger().debug("Lexc: >"),this.pushState("NODE"),36;case 64:return s.getLogger().debug("Lexa: (["),this.pushState("NODE"),36;case 65:return s.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 66:return this.pushState("NODE"),36;case 67:return this.pushState("NODE"),36;case 68:return this.pushState("NODE"),36;case 69:return this.pushState("NODE"),36;case 70:return this.pushState("NODE"),36;case 71:return this.pushState("NODE"),36;case 72:return this.pushState("NODE"),36;case 73:return s.getLogger().debug("Lexa: ["),this.pushState("NODE"),36;case 74:return this.pushState("BLOCK_ARROW"),s.getLogger().debug("LEX ARR START"),38;case 75:return s.getLogger().debug("Lex: NODE_ID",i.yytext),32;case 76:return s.getLogger().debug("Lex: EOF",i.yytext),8;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:s.getLogger().debug("Lex: Starting string"),this.pushState("string");break;case 82:s.getLogger().debug("LEX ARR: Starting string"),this.pushState("string");break;case 83:return s.getLogger().debug("LEX: NODE_DESCR:",i.yytext),"NODE_DESCR";case 84:s.getLogger().debug("LEX POPPING"),this.popState();break;case 85:s.getLogger().debug("Lex: =>BAE"),this.pushState("ARROW_DIR");break;case 86:return i.yytext=i.yytext.replace(/^,\s*/,""),s.getLogger().debug("Lex (right): dir:",i.yytext),"DIR";case 87:return i.yytext=i.yytext.replace(/^,\s*/,""),s.getLogger().debug("Lex (left):",i.yytext),"DIR";case 88:return i.yytext=i.yytext.replace(/^,\s*/,""),s.getLogger().debug("Lex (x):",i.yytext),"DIR";case 89:return i.yytext=i.yytext.replace(/^,\s*/,""),s.getLogger().debug("Lex (y):",i.yytext),"DIR";case 90:return i.yytext=i.yytext.replace(/^,\s*/,""),s.getLogger().debug("Lex (up):",i.yytext),"DIR";case 91:return i.yytext=i.yytext.replace(/^,\s*/,""),s.getLogger().debug("Lex (down):",i.yytext),"DIR";case 92:return i.yytext="]>",s.getLogger().debug("Lex (ARROW_DIR end):",i.yytext),this.popState(),this.popState(),"BLOCK_ARROW_END";case 93:return s.getLogger().debug("Lex: LINK","#"+i.yytext+"#"),15;case 94:return s.getLogger().debug("Lex: LINK",i.yytext),15;case 95:return s.getLogger().debug("Lex: LINK",i.yytext),15;case 96:return s.getLogger().debug("Lex: LINK",i.yytext),15;case 97:return s.getLogger().debug("Lex: START_LINK",i.yytext),this.pushState("LLABEL"),16;case 98:return s.getLogger().debug("Lex: START_LINK",i.yytext),this.pushState("LLABEL"),16;case 99:return s.getLogger().debug("Lex: START_LINK",i.yytext),this.pushState("LLABEL"),16;case 100:this.pushState("md_string");break;case 101:return s.getLogger().debug("Lex: Starting string"),this.pushState("string"),"LINK_LABEL";case 102:return this.popState(),s.getLogger().debug("Lex: LINK","#"+i.yytext+"#"),15;case 103:return this.popState(),s.getLogger().debug("Lex: LINK",i.yytext),15;case 104:return this.popState(),s.getLogger().debug("Lex: LINK",i.yytext),15;case 105:return s.getLogger().debug("Lex: COLON",i.yytext),i.yytext=i.yytext.slice(1),27}},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 D}();L.lexer=A;function k(){this.yy={}}return k.prototype=L,L.Parser=k,new k}();ee.parser=ee;const Be=ee;let O={},ie=[],V={};const ce="color",ue="fill",Pe="bgFill",ge=",";let j={};const Fe=function(e,a=""){j[e]===void 0&&(j[e]={id:e,styles:[],textStyles:[]});const d=j[e];a!=null&&a.split(ge).forEach(c=>{const n=c.replace(/([^;]*);/,"$1").trim();if(c.match(ce)){const o=n.replace(ue,Pe).replace(ce,ue);d.textStyles.push(o)}d.styles.push(n)})},Ke=function(e,a=""){const d=O[e];a!=null&&(d.styles=a.split(ge))},Me=function(e,a){e.split(",").forEach(function(d){let c=O[d];if(c===void 0){const n=d.trim();O[n]={id:n,type:"na",children:[]},c=O[n]}c.classes||(c.classes=[]),c.classes.push(a)})},pe=(e,a)=>{const d=e.flat(),c=[];for(const n of d){if(n.type==="classDef"){Fe(n.id,n.css);continue}if(n.type==="applyClass"){Me(n.id,(n==null?void 0:n.styleClass)||"");continue}if(n.type==="applyStyles"){n!=null&&n.stylesStr&&Ke(n.id,n==null?void 0:n.stylesStr);continue}if(n.type==="column-setting")a.columns=n.columns||-1;else if(n.type==="edge")V[n.id]?V[n.id]++:V[n.id]=1,n.id=V[n.id]+"-"+n.id,ie.push(n);else{n.label||(n.type==="composite"?n.label="":n.label=n.id);const g=!O[n.id];if(g?O[n.id]=n:(n.type!=="na"&&(O[n.id].type=n.type),n.label!==n.id&&(O[n.id].label=n.label)),n.children&&pe(n.children,n),n.type==="space"){const o=n.width||1;for(let f=0;f<o;f++){const b=ve(n);b.id=b.id+"-"+f,O[b.id]=b,c.push(b)}}else g&&c.push(n)}}a.children=c};let re=[],U={id:"root",type:"composite",children:[],columns:-1};const Ye=()=>{S.debug("Clear called"),ye(),U={id:"root",type:"composite",children:[],columns:-1},O={root:U},re=[],j={},ie=[],V={}};function We(e){switch(S.debug("typeStr2Type",e),e){case"[]":return"square";case"()":return S.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 Ve(e){switch(S.debug("typeStr2Type",e),e){case"==":return"thick";default:return"normal"}}function je(e){switch(e.trim()){case"--x":return"arrow_cross";case"--o":return"arrow_circle";default:return"arrow_point"}}let de=0;const Ue=()=>(de++,"id-"+Math.random().toString(36).substr(2,12)+"-"+de),Xe=e=>{U.children=e,pe(e,U),re=U.children},Ge=e=>{const a=O[e];return a?a.columns?a.columns:a.children?a.children.length:-1:-1},He=()=>[...Object.values(O)],qe=()=>re||[],Ze=()=>ie,Je=e=>O[e],Qe=e=>{O[e.id]=e},$e=()=>console,et=function(){return j},tt={getConfig:()=>se().block,typeStr2Type:We,edgeTypeStr2Type:Ve,edgeStrToEdgeData:je,getLogger:$e,getBlocksFlat:He,getBlocks:qe,getEdges:Ze,setHierarchy:Xe,getBlock:Je,setBlock:Qe,getColumns:Ge,getClasses:et,clear:Ye,generateId:Ue},st=tt,q=(e,a)=>{const d=Ne,c=d(e,"r"),n=d(e,"g"),g=d(e,"b");return we(c,n,g,a)},it=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: ${q(e.edgeLabelBackground,.5)};
// background-color:
}
.node .cluster {
// fill: ${q(e.mainBkg,.5)};
fill: ${q(e.clusterBkg,.5)};
stroke: ${q(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};
}
`,rt=it;function fe(e,a,d=!1){var c,n,g;const o=e;let f="default";(((c=o==null?void 0:o.classes)==null?void 0:c.length)||0)>0&&(f=((o==null?void 0:o.classes)||[]).join(" ")),f=f+" flowchart-label";let b=0,p="",x;switch(o.type){case"round":b=5,p="rect";break;case"composite":b=0,p="composite",x=0;break;case"square":p="rect";break;case"diamond":p="question";break;case"hexagon":p="hexagon";break;case"block_arrow":p="block_arrow";break;case"odd":p="rect_left_inv_arrow";break;case"lean_right":p="lean_right";break;case"lean_left":p="lean_left";break;case"trapezoid":p="trapezoid";break;case"inv_trapezoid":p="inv_trapezoid";break;case"rect_left_inv_arrow":p="rect_left_inv_arrow";break;case"circle":p="circle";break;case"ellipse":p="ellipse";break;case"stadium":p="stadium";break;case"subroutine":p="subroutine";break;case"cylinder":p="cylinder";break;case"group":p="rect";break;case"doublecircle":p="doublecircle";break;default:p="rect"}const E=De((o==null?void 0:o.styles)||[]),T=o.label,v=o.size||{width:0,height:0,x:0,y:0};return{labelStyle:E.labelStyle,shape:p,labelText:T,rx:b,ry:b,class:f,style:E.style,id:o.id,directions:o.directions,width:v.width,height:v.height,x:v.x,y:v.y,positioned:d,intersect:void 0,type:o.type,padding:x??(((g=(n=se())==null?void 0:n.block)==null?void 0:g.padding)||0)}}async function nt(e,a,d){const c=fe(a,d,!1);if(c.type==="group")return;const n=await he(e,c),g=n.node().getBBox(),o=d.getBlock(c.id);o.size={width:g.width,height:g.height,x:0,y:0,node:n},d.setBlock(o),n.remove()}async function at(e,a,d){const c=fe(a,d,!0);d.getBlock(c.id).type!=="space"&&(await he(e,c),a.intersect=c==null?void 0:c.intersect,ze(c))}async function ne(e,a,d,c){for(const n of a)await c(e,n,d),n.children&&await ne(e,n.children,d,c)}async function ot(e,a,d){await ne(e,a,d,nt)}async function lt(e,a,d){await ne(e,a,d,at)}async function ct(e,a,d,c,n){const g=new Ce({multigraph:!0,compound:!0});g.setGraph({rankdir:"TB",nodesep:10,ranksep:10,marginx:8,marginy:8});for(const o of d)o.size&&g.setNode(o.id,{width:o.size.width,height:o.size.height,intersect:o.intersect});for(const o of a)if(o.start&&o.end){const f=c.getBlock(o.start),b=c.getBlock(o.end);if(f!=null&&f.size&&(b!=null&&b.size)){const p=f.size,x=b.size,E=[{x:p.x,y:p.y},{x:p.x+(x.x-p.x)/2,y:p.y+(x.y-p.y)/2},{x:x.x,y:x.y}];await Ie(e,{v:o.start,w:o.end,name:o.id},{...o,arrowTypeEnd:o.arrowTypeEnd,arrowTypeStart:o.arrowTypeStart,points:E,classes:"edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"},void 0,"block",g,n),o.label&&(await Oe(e,{...o,label:o.label,labelStyle:"stroke: #333; stroke-width: 1.5px;fill:none;",arrowTypeEnd:o.arrowTypeEnd,arrowTypeStart:o.arrowTypeStart,points:E,classes:"edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"}),await Te({...o,x:E[1].x,y:E[1].y},{originalPath:E}))}}}const _=((le=(oe=_e())==null?void 0:oe.block)==null?void 0:le.padding)||8;function ut(e,a){if(e===0||!Number.isInteger(e))throw new Error("Columns must be an integer !== 0.");if(a<0||!Number.isInteger(a))throw new Error("Position must be a non-negative integer."+a);if(e<0)return{px:a,py:0};if(e===1)return{px:0,py:a};const d=a%e,c=Math.floor(a/e);return{px:d,py:c}}const dt=e=>{let a=0,d=0;for(const c of e.children){const{width:n,height:g,x:o,y:f}=c.size||{width:0,height:0,x:0,y:0};S.debug("getMaxChildSize abc95 child:",c.id,"width:",n,"height:",g,"x:",o,"y:",f,c.type),c.type!=="space"&&(n>a&&(a=n/(e.widthInColumns||1)),g>d&&(d=g))}return{width:a,height:d}};function te(e,a,d=0,c=0){var n,g,o,f,b,p,x,E,T,v,N;S.debug("setBlockSizes abc95 (start)",e.id,(n=e==null?void 0:e.size)==null?void 0:n.x,"block width =",e==null?void 0:e.size,"sieblingWidth",d),(g=e==null?void 0:e.size)!=null&&g.width||(e.size={width:d,height:c,x:0,y:0});let y=0,L=0;if(((o=e.children)==null?void 0:o.length)>0){for(const h of e.children)te(h,a);const A=dt(e);y=A.width,L=A.height,S.debug("setBlockSizes abc95 maxWidth of",e.id,":s children is ",y,L);for(const h of e.children)h.size&&(S.debug(`abc95 Setting size of children of ${e.id} id=${h.id} ${y} ${L} ${h.size}`),h.size.width=y*(h.widthInColumns||1)+_*((h.widthInColumns||1)-1),h.size.height=L,h.size.x=0,h.size.y=0,S.debug(`abc95 updating size of ${e.id} children child:${h.id} maxWidth:${y} maxHeight:${L}`));for(const h of e.children)te(h,a,y,L);const k=e.columns||-1;let D=0;for(const h of e.children)D+=h.widthInColumns||1;let l=e.children.length;k>0&&k<D&&(l=k),e.widthInColumns;const s=Math.ceil(D/l);let i=l*(y+_)+_,u=s*(L+_)+_;if(i<d){S.debug(`Detected to small siebling: abc95 ${e.id} sieblingWidth ${d} sieblingHeight ${c} width ${i}`),i=d,u=c;const h=(d-l*_-_)/l,t=(c-s*_-_)/s;S.debug("Size indata abc88",e.id,"childWidth",h,"maxWidth",y),S.debug("Size indata abc88",e.id,"childHeight",t,"maxHeight",L),S.debug("Size indata abc88 xSize",l,"padding",_);for(const m of e.children)m.size&&(m.size.width=h,m.size.height=t,m.size.x=0,m.size.y=0)}if(S.debug(`abc95 (finale calc) ${e.id} xSize ${l} ySize ${s} columns ${k}${e.children.length} width=${Math.max(i,((f=e.size)==null?void 0:f.width)||0)}`),i<(((b=e==null?void 0:e.size)==null?void 0:b.width)||0)){i=((p=e==null?void 0:e.size)==null?void 0:p.width)||0;const h=k>0?Math.min(e.children.length,k):e.children.length;if(h>0){const t=(i-h*_-_)/h;S.debug("abc95 (growing to fit) width",e.id,i,(x=e.size)==null?void 0:x.width,t);for(const m of e.children)m.size&&(m.size.width=t)}}e.size={width:i,height:u,x:0,y:0}}S.debug("setBlockSizes abc94 (done)",e.id,(E=e==null?void 0:e.size)==null?void 0:E.x,(T=e==null?void 0:e.size)==null?void 0:T.width,(v=e==null?void 0:e.size)==null?void 0:v.y,(N=e==null?void 0:e.size)==null?void 0:N.height)}function be(e,a){var d,c,n,g,o,f,b,p,x,E,T,v,N,y,L,A,k;S.debug(`abc85 layout blocks (=>layoutBlocks) ${e.id} x: ${(d=e==null?void 0:e.size)==null?void 0:d.x} y: ${(c=e==null?void 0:e.size)==null?void 0:c.y} width: ${(n=e==null?void 0:e.size)==null?void 0:n.width}`);const D=e.columns||-1;if(S.debug("layoutBlocks columns abc95",e.id,"=>",D,e),e.children&&e.children.length>0){const l=((o=(g=e==null?void 0:e.children[0])==null?void 0:g.size)==null?void 0:o.width)||0,s=e.children.length*l+(e.children.length-1)*_;S.debug("widthOfChildren 88",s,"posX");let i=0;S.debug("abc91 block?.size?.x",e.id,(f=e==null?void 0:e.size)==null?void 0:f.x);let u=(b=e==null?void 0:e.size)!=null&&b.x?((p=e==null?void 0:e.size)==null?void 0:p.x)+(-((x=e==null?void 0:e.size)==null?void 0:x.width)/2||0):-_,h=0;for(const t of e.children){const m=e;if(!t.size)continue;const{width:r,height:R}=t.size,{px:Y,py:F}=ut(D,i);if(F!=h&&(h=F,u=(E=e==null?void 0:e.size)!=null&&E.x?((T=e==null?void 0:e.size)==null?void 0:T.x)+(-((v=e==null?void 0:e.size)==null?void 0:v.width)/2||0):-_,S.debug("New row in layout for block",e.id," and child ",t.id,h)),S.debug(`abc89 layout blocks (child) id: ${t.id} Pos: ${i} (px, py) ${Y},${F} (${(N=m==null?void 0:m.size)==null?void 0:N.x},${(y=m==null?void 0:m.size)==null?void 0:y.y}) parent: ${m.id} width: ${r}${_}`),m.size){const C=r/2;t.size.x=u+_+C,S.debug(`abc91 layout blocks (calc) px, pyid:${t.id} startingPos=X${u} new startingPosX${t.size.x} ${C} padding=${_} width=${r} halfWidth=${C} => x:${t.size.x} y:${t.size.y} ${t.widthInColumns} (width * (child?.w || 1)) / 2 ${r*((t==null?void 0:t.widthInColumns)||1)/2}`),u=t.size.x+C,t.size.y=m.size.y-m.size.height/2+F*(R+_)+R/2+_,S.debug(`abc88 layout blocks (calc) px, pyid:${t.id}startingPosX${u}${_}${C}=>x:${t.size.x}y:${t.size.y}${t.widthInColumns}(width * (child?.w || 1)) / 2${r*((t==null?void 0:t.widthInColumns)||1)/2}`)}t.children&&be(t),i+=(t==null?void 0:t.widthInColumns)||1,S.debug("abc88 columnsPos",t,i)}}S.debug(`layout blocks (<==layoutBlocks) ${e.id} x: ${(L=e==null?void 0:e.size)==null?void 0:L.x} y: ${(A=e==null?void 0:e.size)==null?void 0:A.y} width: ${(k=e==null?void 0:e.size)==null?void 0:k.width}`)}function xe(e,{minX:a,minY:d,maxX:c,maxY:n}={minX:0,minY:0,maxX:0,maxY:0}){if(e.size&&e.id!=="root"){const{x:g,y:o,width:f,height:b}=e.size;g-f/2<a&&(a=g-f/2),o-b/2<d&&(d=o-b/2),g+f/2>c&&(c=g+f/2),o+b/2>n&&(n=o+b/2)}if(e.children)for(const g of e.children)({minX:a,minY:d,maxX:c,maxY:n}=xe(g,{minX:a,minY:d,maxX:c,maxY:n}));return{minX:a,minY:d,maxX:c,maxY:n}}function ht(e){const a=e.getBlock("root");if(!a)return;te(a,e,0,0),be(a),S.debug("getBlocks",JSON.stringify(a,null,2));const{minX:d,minY:c,maxX:n,maxY:g}=xe(a),o=g-c,f=n-d;return{x:d,y:c,width:f,height:o}}const gt=function(e,a){return a.db.getClasses()},pt=async function(e,a,d,c){const{securityLevel:n,block:g}=se(),o=c.db;let f;n==="sandbox"&&(f=H("#i"+a));const b=n==="sandbox"?H(f.nodes()[0].contentDocument.body):H("body"),p=n==="sandbox"?b.select(`[id="${a}"]`):H(`[id="${a}"]`);ke(p,["point","circle","cross"],c.type,a);const E=o.getBlocks(),T=o.getBlocksFlat(),v=o.getEdges(),N=p.insert("g").attr("class","block");await ot(N,E,o);const y=ht(o);if(await lt(N,E,o),await ct(N,v,T,o,a),y){const L=y,A=Math.max(1,Math.round(.125*(L.width/L.height))),k=L.height+A+10,D=L.width+10,{useMaxWidth:l}=g;Ee(p,k,D,!!l),S.debug("Here Bounds",y,L),p.attr("viewBox",`${L.x-5} ${L.y-5} ${L.width+10} ${L.height+10}`)}Ae(Re)},ft={draw:pt,getClasses:gt},At={parser:Be,db:st,renderer:ft,styles:rt};export{At as diagram};
function t(r){return typeof r=="object"&&"length"in r?r:Array.from(r)}export{t as a};
import{w as ln,c as V}from"./path-39bad7e2-CbwjOpE9.js";import{aP as an,aQ as Z,aR as O,aS as rn,aT as y,aO as on,aU as z,aV as _,aW as un,aX as t,aY as sn,aZ as tn,a_ as fn}from"./slidev/5-BKiUV7YW.js";function cn(l){return l.innerRadius}function yn(l){return l.outerRadius}function gn(l){return l.startAngle}function mn(l){return l.endAngle}function pn(l){return l&&l.padAngle}function dn(l,h,D,S,v,R,W,a){var E=D-l,i=S-h,n=W-v,m=a-R,r=m*E-n*i;if(!(r*r<y))return r=(n*(h-R)-m*(l-v))/r,[l+r*E,h+r*i]}function J(l,h,D,S,v,R,W){var a=l-D,E=h-S,i=(W?R:-R)/z(a*a+E*E),n=i*E,m=-i*a,r=l+n,s=h+m,f=D+n,c=S+m,X=(r+f)/2,o=(s+c)/2,p=f-r,g=c-s,A=p*p+g*g,T=v-R,P=r*c-f*s,I=(g<0?-1:1)*z(fn(0,T*T*A-P*P)),Q=(P*g-p*I)/A,U=(-P*p-g*I)/A,w=(P*g+p*I)/A,d=(-P*p+g*I)/A,x=Q-X,e=U-o,u=w-X,Y=d-o;return x*x+e*e>u*u+Y*Y&&(Q=w,U=d),{cx:Q,cy:U,x01:-n,y01:-m,x11:Q*(v/T-1),y11:U*(v/T-1)}}function vn(){var l=cn,h=yn,D=V(0),S=null,v=gn,R=mn,W=pn,a=null,E=ln(i);function i(){var n,m,r=+l.apply(this,arguments),s=+h.apply(this,arguments),f=v.apply(this,arguments)-rn,c=R.apply(this,arguments)-rn,X=un(c-f),o=c>f;if(a||(a=n=E()),s<r&&(m=s,s=r,r=m),!(s>y))a.moveTo(0,0);else if(X>on-y)a.moveTo(s*Z(f),s*O(f)),a.arc(0,0,s,f,c,!o),r>y&&(a.moveTo(r*Z(c),r*O(c)),a.arc(0,0,r,c,f,o));else{var p=f,g=c,A=f,T=c,P=X,I=X,Q=W.apply(this,arguments)/2,U=Q>y&&(S?+S.apply(this,arguments):z(r*r+s*s)),w=_(un(s-r)/2,+D.apply(this,arguments)),d=w,x=w,e,u;if(U>y){var Y=sn(U/r*O(Q)),B=sn(U/s*O(Q));(P-=Y*2)>y?(Y*=o?1:-1,A+=Y,T-=Y):(P=0,A=T=(f+c)/2),(I-=B*2)>y?(B*=o?1:-1,p+=B,g-=B):(I=0,p=g=(f+c)/2)}var $=s*Z(p),j=s*O(p),C=r*Z(T),F=r*O(T);if(w>y){var G=s*Z(g),H=s*O(g),K=r*Z(A),L=r*O(A),q;if(X<an)if(q=dn($,j,K,L,G,H,C,F)){var M=$-q[0],N=j-q[1],k=G-q[0],b=H-q[1],nn=1/O(tn((M*k+N*b)/(z(M*M+N*N)*z(k*k+b*b)))/2),en=z(q[0]*q[0]+q[1]*q[1]);d=_(w,(r-en)/(nn-1)),x=_(w,(s-en)/(nn+1))}else d=x=0}I>y?x>y?(e=J(K,L,$,j,s,x,o),u=J(G,H,C,F,s,x,o),a.moveTo(e.cx+e.x01,e.cy+e.y01),x<w?a.arc(e.cx,e.cy,x,t(e.y01,e.x01),t(u.y01,u.x01),!o):(a.arc(e.cx,e.cy,x,t(e.y01,e.x01),t(e.y11,e.x11),!o),a.arc(0,0,s,t(e.cy+e.y11,e.cx+e.x11),t(u.cy+u.y11,u.cx+u.x11),!o),a.arc(u.cx,u.cy,x,t(u.y11,u.x11),t(u.y01,u.x01),!o))):(a.moveTo($,j),a.arc(0,0,s,p,g,!o)):a.moveTo($,j),!(r>y)||!(P>y)?a.lineTo(C,F):d>y?(e=J(C,F,G,H,r,-d,o),u=J($,j,K,L,r,-d,o),a.lineTo(e.cx+e.x01,e.cy+e.y01),d<w?a.arc(e.cx,e.cy,d,t(e.y01,e.x01),t(u.y01,u.x01),!o):(a.arc(e.cx,e.cy,d,t(e.y01,e.x01),t(e.y11,e.x11),!o),a.arc(0,0,r,t(e.cy+e.y11,e.cx+e.x11),t(u.cy+u.y11,u.cx+u.x11),o),a.arc(u.cx,u.cy,d,t(u.y11,u.x11),t(u.y01,u.x01),!o))):a.arc(0,0,r,T,A,o)}if(a.closePath(),n)return a=null,n+""||null}return i.centroid=function(){var n=(+l.apply(this,arguments)+ +h.apply(this,arguments))/2,m=(+v.apply(this,arguments)+ +R.apply(this,arguments))/2-an/2;return[Z(m)*n,O(m)*n]},i.innerRadius=function(n){return arguments.length?(l=typeof n=="function"?n:V(+n),i):l},i.outerRadius=function(n){return arguments.length?(h=typeof n=="function"?n:V(+n),i):h},i.cornerRadius=function(n){return arguments.length?(D=typeof n=="function"?n:V(+n),i):D},i.padRadius=function(n){return arguments.length?(S=n==null?null:typeof n=="function"?n:V(+n),i):S},i.startAngle=function(n){return arguments.length?(v=typeof n=="function"?n:V(+n),i):v},i.endAngle=function(n){return arguments.length?(R=typeof n=="function"?n:V(+n),i):R},i.padAngle=function(n){return arguments.length?(W=typeof n=="function"?n:V(+n),i):W},i.context=function(n){return arguments.length?(a=n??null,i):a},i}export{vn as d};
function o(e){for(var c=e.length/6|0,n=new Array(c),a=0;a<c;)n[a]="#"+e.slice(a*6,++a*6);return n}const r=o("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");export{r as d};
#slide-container{position:relative;break-after:page;overflow:hidden}#slide-content{position:relative;position:absolute;left:50%;top:50%;overflow:hidden;--un-bg-opacity:1;background-color:rgb(255 255 255 / var(--un-bg-opacity))}.dark #slide-content{--un-bg-opacity:1;background-color:rgb(18 18 18 / var(--un-bg-opacity))}.select-list[data-v-3f89fa11]{padding-top:.5rem;padding-bottom:.5rem}.item[data-v-3f89fa11]{display:flex;cursor:default;white-space:nowrap;border-radius:.25rem;padding:.25rem 1rem}.item svg[data-v-3f89fa11]{margin-top:auto;margin-bottom:auto;margin-right:.25rem;margin-left:-.5rem}.item[data-v-3f89fa11]:hover{--un-bg-opacity:1;background-color:rgb(156 163 175 / var(--un-bg-opacity));--un-bg-opacity:.1}.title[data-v-3f89fa11]{padding:.25rem 1.75rem;font-size:.75rem;line-height:1rem;letter-spacing:.1em;text-transform:uppercase;opacity:.5}.autocomplete-list[data-v-f5ee02a7]{margin-top:.25rem;--un-bg-opacity:1;background-color:rgb(255 255 255 / var(--un-bg-opacity));overflow:auto;max-height:calc(100vh - 100px)}.dark .autocomplete-list[data-v-f5ee02a7]{--un-bg-opacity:1;background-color:rgb(18 18 18 / var(--un-bg-opacity))}.autocomplete[data-v-f5ee02a7]{cursor:pointer}#slideshow[data-v-afb4231e]{height:100%}#slideshow>div[data-v-afb4231e]{position:absolute;height:100%;width:100%}
.slidev-note :first-child{margin-top:0}
.v-popper--theme-menu .v-popper__arrow-inner{border-color:#9ca3af33}
import{o as a,b as _,e,f as c,c as d,k as u,q as m,s as p,A as s}from"./modules/vue-Dn3czbSS.js";import{u as n,p as f,f as h}from"./slidev/context-CYh2-pv1.js";import{b as r,D as o}from"./index-D2S1x1Oe.js";import"./modules/shiki-CuMFyo6Z.js";const v={class:"slidev-layout cover"},x={class:"my-auto w-full text-center"},B={__name:"cover",setup(i){return n(),(t,l)=>(a(),_("div",v,[e("div",x,[c(t.$slots,"default")])]))}},k=r(B,[["__file","/home/alex/notes/slides/node_modules/slidev-theme-frankfurt/layouts/cover.vue"]]),y=e("h1",null,"BisonEx",-1),$=e("h2",null,"Un pipeline bioinformatique de ré-interprétation d’analyses constitutionnelles d’exome",-1),b=e("p",null,"CHU Minjoz, Besançon",-1),C={__name:"1",setup(i){return f(o),n(),(t,l)=>(a(),d(k,m(p(s(h)(s(o),0))),{default:u(()=>[y,$,b]),_:1},16))}},z=r(C,[["__file","/@slidev/slides/1.md"]]);export{z as default};
/slides/bisonex/* /slides/bisonex/index.html 200
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bisonex</title>
<meta name="author" content="Alexis Praga">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="https://cdn.jsdelivr.net/gh/slidevjs/slidev/assets/favicon.png">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@200;400;600&family=Fira+Code:wght@200;400;600&display=swap" type="text/css">
<script type="module" crossorigin src="/slides/bisonex/assets/index-D2S1x1Oe.js"></script>
<link rel="modulepreload" crossorigin href="/slides/bisonex/assets/modules/vue-Dn3czbSS.js">
<link rel="modulepreload" crossorigin href="/slides/bisonex/assets/modules/shiki-CuMFyo6Z.js">
<link rel="stylesheet" crossorigin href="/slides/bisonex/assets/modules/shiki-BSchMNmt.css">
<link rel="stylesheet" crossorigin href="/slides/bisonex/assets/index-Dw67r9kT.css">
</head>
<body>
<div id="app"></div>
<div id="mermaid-rendering-container"></div>
</body>
</html>